>     }((a0ccdda7a016e2d4a0fe5704168b3d088325b775}(sha(a0ccdda7a016e2d4a0fe5704168b3d088325b775node_idEC_kwDOAjP5fdoAKGEwY2NkZGE3YTAxNmUyZDRhMGZlNTcwNDE2OGIzZDA4ODMyNWI3NzUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-23T23:27:02Zu	committer}(h
Ahmed Alouaneh
aalouane@palantir.comh2023-04-23T23:27:02Zumessagechangetree}(h(8162fa6bfcb891ec7bef6a161cda9878f5cbca86url`https://api.github.com/repos/palantir/atlasdb/git/trees/8162fa6bfcb891ec7bef6a161cda9878f5cbca86uhbhttps://api.github.com/repos/palantir/atlasdb/git/commits/a0ccdda7a016e2d4a0fe5704168b3d088325b775
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRFvsYACgkQPlMHVIT1
yhpSrwf6A0lcAYQPmBtS/M01EIfhRRh+MU+Go3rGNhJQ4zvhRttfx/aziRK5DwWx
UzzcBkxkkVJgeaq4a+4+dWf4htYszl3xg8Ulw9WWcx9iVKNF/UAYHeWjSmn2s+6h
mU1ZzExgHS1tQu8t7jjL/29HmvPxy5tA7/KiuBhaOBqksgzeN8clZFSXOdC0qquS
LWzLn4i42QX04bzhxMm+fqu2OUzFw13v7gqL8wlTNit+jU+dBa01ZxCYlGChyLqd
i9+cbMGCWEFnWNbnhOLNU/3LBel/ZY181vERe17Y0BLZISJ2Cmf1toc8AKPiT64L
F6ng/vVWK9IUzTyMseQ5wSY51KDpKw==
=D5G2
-----END PGP SIGNATURE-----payloadtree 8162fa6bfcb891ec7bef6a161cda9878f5cbca86
parent 0d41772d1bd63d1feac146ac307c87f0b439d2c2
author Ahmed Alouane <aalouane@palantir.com> 1682292422 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682292422 +0100

change
uuh^https://api.github.com/repos/palantir/atlasdb/commits/a0ccdda7a016e2d4a0fe5704168b3d088325b775html_urlShttps://github.com/palantir/atlasdb/commit/a0ccdda7a016e2d4a0fe5704168b3d088325b775comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a0ccdda7a016e2d4a0fe5704168b3d088325b775/commentsh	}(loginergo14idJhMDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_id h#https://api.github.com/users/ergo14h)https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuh}(h.ergo14h0JhMDQ6VXNlcjMwOTAzNzM2h24https://avatars.githubusercontent.com/u/30903736?v=4h4h5h#https://api.github.com/users/ergo14h)https://github.com/ergo14h8-https://api.github.com/users/ergo14/followersh::https://api.github.com/users/ergo14/following{/other_user}h<3https://api.github.com/users/ergo14/gists{/gist_id}h>:https://api.github.com/users/ergo14/starred{/owner}{/repo}h@1https://api.github.com/users/ergo14/subscriptionshB(https://api.github.com/users/ergo14/orgshD)https://api.github.com/users/ergo14/reposhF4https://api.github.com/users/ergo14/events{/privacy}hH3https://api.github.com/users/ergo14/received_eventshJUserhLuparents]}(h(0d41772d1bd63d1feac146ac307c87f0b439d2c2h^https://api.github.com/repos/palantir/atlasdb/commits/0d41772d1bd63d1feac146ac307c87f0b439d2c2h)Shttps://github.com/palantir/atlasdb/commit/0d41772d1bd63d1feac146ac307c87f0b439d2c2uastats}(totalK	additionsK	deletionsK ufiles]}(h(4c1b86889ee080573cbb0d73892c0685250ef78ffilenameatlasdb-ete-tests/build.gradlestatusmodifiedhfKhgK changesKblob_urlrhttps://github.com/palantir/atlasdb/blob/a0ccdda7a016e2d4a0fe5704168b3d088325b775/atlasdb-ete-tests%2Fbuild.gradleraw_urlqhttps://github.com/palantir/atlasdb/raw/a0ccdda7a016e2d4a0fe5704168b3d088325b775/atlasdb-ete-tests%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fbuild.gradle?ref=a0ccdda7a016e2d4a0fe5704168b3d088325b775patch@@ -113,6 +113,7 @@ task timeLockTest(type: Test) {
 }
 
 task timeLockMigrationTest(type: Test) {
+    failFast = true
     dependsOn prepareForEteTests, ':timelock-server-distribution:dockerTag'
     include '**/*TimeLockMigration*.class'
 }uau(5f8e13390786093cd2e6c462b42ab0d161eedc2c}(sha(5f8e13390786093cd2e6c462b42ab0d161eedc2cnode_idEC_kwDOAjP5fdoAKDVmOGUxMzM5MDc4NjA5M2NkMmU2YzQ2MmI0MmFiMGQxNjFlZWRjMmMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-03-02T23:31:19Zu	committer}(hJeremy Konghjkong@palantir.comh2023-03-02T23:31:19Zumessageanother one for the agestree}(h{(34bcdf875897ec9f7fe91e18f525fd20fb8d46e6url`https://api.github.com/repos/palantir/atlasdb/git/trees/34bcdf875897ec9f7fe91e18f525fd20fb8d46e6uhbhttps://api.github.com/repos/palantir/atlasdb/git/commits/5f8e13390786093cd2e6c462b42ab0d161eedc2c
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQBMccACgkQTLdFKain
zjwzegf9GXAe4BY3fr3jLlKgKy+aQae3AZ9Qc86PqrdelXr9DZe4KwBMyxauhT8s
9lc3QeaGmnRZh4TDZOv8HBo8IDA+8Svc58KTS68mO5pArlIXLsnZ+ce592bCXUsu
Y8JhiW8P4eUi4cvmq+5ooJgC8gALVNemDHebr96+zS0d7B+1cGCHFMyu/Yw0yA65
a9SZkpMm5V5JPW6Srl9XNKjUmvAu2ePDYQXEU0k7GGRQ2YAYC5qbpWeg0PrbUhe5
klZ+bsBCQeUHYH6GJVUWls/VxLPkVU9GUtmwwhAwshS0E4PQvnV3PDjR7oLL0n1O
6tZBmBdWMvsKMfkccxcnvD8YwFR4uw==
=zFlh
-----END PGP SIGNATURE-----payloadtree 34bcdf875897ec9f7fe91e18f525fd20fb8d46e6
parent adfdc27938ed1206ec6eeeea0432d20daa58a5b8
author Jeremy Kong <jkong@palantir.com> 1677799879 +0000
committer Jeremy Kong <jkong@palantir.com> 1677799879 +0000

another one for the ages
uuh^https://api.github.com/repos/palantir/atlasdb/commits/5f8e13390786093cd2e6c462b42ab0d161eedc2chtml_urlShttps://github.com/palantir/atlasdb/commit/5f8e13390786093cd2e6c462b42ab0d161eedc2ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5f8e13390786093cd2e6c462b42ab0d161eedc2c/commentsh}(login
jeremyk-91idJZ h}MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5h'https://api.github.com/users/jeremyk-91hhttps://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuh}(h
jeremyk-91hJZ h}MDQ6VXNlcjU5NTU1MTA=h3https://avatars.githubusercontent.com/u/5955510?v=4hh5h'https://api.github.com/users/jeremyk-91hhttps://github.com/jeremyk-91h1https://api.github.com/users/jeremyk-91/followersh>https://api.github.com/users/jeremyk-91/following{/other_user}h7https://api.github.com/users/jeremyk-91/gists{/gist_id}h>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}h5https://api.github.com/users/jeremyk-91/subscriptionsh,https://api.github.com/users/jeremyk-91/orgsh-https://api.github.com/users/jeremyk-91/reposh8https://api.github.com/users/jeremyk-91/events{/privacy}h7https://api.github.com/users/jeremyk-91/received_eventshUserhÉuparents]}(h{(adfdc27938ed1206ec6eeeea0432d20daa58a5b8h^https://api.github.com/repos/palantir/atlasdb/commits/adfdc27938ed1206ec6eeeea0432d20daa58a5b8hShttps://github.com/palantir/atlasdb/commit/adfdc27938ed1206ec6eeeea0432d20daa58a5b8uastats}(totalK\	additionsKW	deletionsKufiles](}(h{(1d726d79fa9f2724d395decf58d13c95485d7677filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedhK
hKchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5f8e13390786093cd2e6c462b42ab0d161eedc2c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5f8e13390786093cd2e6c462b42ab0d161eedc2c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=5f8e13390786093cd2e6c462b42ab0d161eedc2cpatchX|  @@ -157,6 +157,7 @@
 import java.util.Optional;
 import java.util.Set;
 import java.util.SortedMap;
+import java.util.SortedSet;
 import java.util.TreeMap;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ConcurrentMap;
@@ -1160,7 +1161,7 @@ private List<Map.Entry<Cell, byte[]>> getPostFilteredWithLocalWrites(
                 postFiltered.entrySet(),
                 Predicates.compose(Predicates.in(prePostFilterCells.keySet()), MapEntries.getKeyFunction()));
         Collection<Map.Entry<Cell, byte[]>> localWritesInRange = getLocalWritesForRange(
-                        tableRef, rangeRequest.getStartInclusive(), endRowExclusive)
+                        tableRef, rangeRequest.getStartInclusive(), endRowExclusive, rangeRequest.getColumnNames())
                 .entrySet();
         return mergeInLocalWrites(
                 tableRef, postFilteredCells.iterator(), localWritesInRange.iterator(), rangeRequest.isReverse());
@@ -1198,9 +1199,9 @@ private <K extends Exception> boolean getBatchingVisitableFromIterator(
             throws K {
         try (ClosableIterator<RowResult<byte[]>> postFilterIterator =
                 postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
-            Iterator<RowResult<byte[]>> localWritesInRange = Cells.createRowView(
-                    getLocalWritesForRange(tableRef, range.getStartInclusive(), range.getEndExclusive())
-                            .entrySet());
+            Iterator<RowResult<byte[]>> localWritesInRange = Cells.createRowView(getLocalWritesForRange(
+                            tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
+                    .entrySet());
             Iterator<RowResult<byte[]>> mergeIterators =
                     mergeInLocalWritesRows(postFilterIterator, localWritesInRange, range.isReverse(), tableRef);
             return BatchingVisitableFromIterable.create(mergeIterators).batchAccept(userRequestedSize, visitor);
@@ -1316,15 +1317,22 @@ private ConcurrentNavigableMap<Cell, byte[]> getLocalWrites(TableReference table
 
     /**
      * This includes deleted writes as zero length byte arrays, be sure to strip them out.
+     *
+     * For the selectedColumns parameter, empty set means all columns. This is unfortunate, but follows the semantics of
+     * {@link RangeRequest}.
      */
-    private SortedMap<Cell, byte[]> getLocalWritesForRange(TableReference tableRef, byte[] startRow, byte[] endRow) {
+    private SortedMap<Cell, byte[]> getLocalWritesForRange(
+            TableReference tableRef, byte[] startRow, byte[] endRow, SortedSet<byte[]> selectedColumns) {
         SortedMap<Cell, byte[]> writes = getLocalWrites(tableRef);
         if (startRow.length != 0) {
             writes = writes.tailMap(Cells.createSmallestCellForRow(startRow));
         }
         if (endRow.length != 0) {
             writes = writes.headMap(Cells.createSmallestCellForRow(endRow));
         }
+        if (!selectedColumns.isEmpty()) {
+            writes = Maps.filterKeys(writes, cell -> selectedColumns.contains(cell.getColumnName()));
+        }
         return writes;
     }
 u}(h{(24aefc7260c66c6c85add659e41f914dceb2d4a7heatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractTransactionTest.javahmodifiedhKJhK hKJhhttps://github.com/palantir/atlasdb/blob/5f8e13390786093cd2e6c462b42ab0d161eedc2c/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.javahhttps://github.com/palantir/atlasdb/raw/5f8e13390786093cd2e6c462b42ab0d161eedc2c/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.javahhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.java?ref=5f8e13390786093cd2e6c462b42ab0d161eedc2chX5  @@ -29,6 +29,7 @@
 import com.google.common.collect.Multimap;
 import com.google.common.collect.Multimaps;
 import com.google.common.collect.Ordering;
+import com.google.common.collect.Streams;
 import com.google.common.io.BaseEncoding;
 import com.google.common.primitives.UnsignedBytes;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -74,6 +75,7 @@
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Random;
 import java.util.Set;
 import java.util.SortedMap;
@@ -688,6 +690,78 @@ public void testRangesTransactionColumnSelection() {
         verifyAllGetRangesImplsRangeSizes(tx, range3, 0);
     }
 
+    @Test
+    public void getRangeRetainsOnlyRelevantColumnsFromLocalWrites() {
+        byte[] row = "row".getBytes(StandardCharsets.UTF_8);
+        byte[] firstColumn = "james".getBytes(StandardCharsets.UTF_8);
+        byte[] secondColumn = "jakub".getBytes(StandardCharsets.UTF_8);
+        byte[] thirdColumn = "jeremy".getBytes(StandardCharsets.UTF_8);
+        byte[] fourthColumn = "jolyon".getBytes(StandardCharsets.UTF_8);
+        Cell firstCell = Cell.create(row, firstColumn);
+        Cell secondCell = Cell.create(row, secondColumn);
+        Cell thirdCell = Cell.create(row, thirdColumn);
+        Cell fourthCell = Cell.create(row, fourthColumn);
+        byte[] value = new byte[1];
+
+        Transaction firstTransaction = startTransaction();
+        firstTransaction.put(TEST_TABLE, ImmutableMap.of(firstCell, value, fourthCell, value));
+        firstTransaction.commit();
+
+        Transaction secondTransaction = startTransaction();
+        secondTransaction.put(TEST_TABLE, ImmutableMap.of(secondCell, value, thirdCell, value));
+
+        BatchingVisitable<RowResult<byte[]>> rowResults = secondTransaction.getRange(
+                TEST_TABLE,
+                RangeRequest.builder()
+                        .retainColumns(ImmutableSet.of(firstColumn, secondColumn))
+                        .build());
+        List<Cell> cellsRead = BatchingVisitables.copyToList(rowResults).stream()
+                .map(RowResult::getCells)
+                .flatMap(Streams::stream)
+                .map(Entry::getKey)
+                .collect(Collectors.toList());
+        assertThat(cellsRead).containsExactly(firstCell, secondCell);
+    }
+
+    @Test
+    public void deprecatedGetRangesRetainsOnlyRelevantColumnsFromLocalWrites() {
+        byte[] row = "row".getBytes(StandardCharsets.UTF_8);
+        byte[] firstColumn = "jack".getBytes(StandardCharsets.UTF_8);
+        byte[] secondColumn = "jill".getBytes(StandardCharsets.UTF_8);
+        byte[] thirdColumn = "joel".getBytes(StandardCharsets.UTF_8);
+        byte[] fourthColumn = "juliet".getBytes(StandardCharsets.UTF_8);
+        Cell firstCell = Cell.create(row, firstColumn);
+        Cell secondCell = Cell.create(row, secondColumn);
+        Cell thirdCell = Cell.create(row, thirdColumn);
+        Cell fourthCell = Cell.create(row, fourthColumn);
+        byte[] value = new byte[1];
+
+        Transaction firstTransaction = startTransaction();
+        firstTransaction.put(TEST_TABLE, ImmutableMap.of(firstCell, value, fourthCell, value));
+        firstTransaction.commit();
+
+        Transaction secondTransaction = startTransaction();
+        secondTransaction.put(TEST_TABLE, ImmutableMap.of(secondCell, value, thirdCell, value));
+
+        Iterable<BatchingVisitable<RowResult<byte[]>>> visitables = secondTransaction.getRanges(
+                TEST_TABLE,
+                ImmutableList.of(
+                        RangeRequest.builder()
+                                .retainColumns(ImmutableSet.of(firstColumn))
+                                .build(),
+                        RangeRequest.builder()
+                                .retainColumns(ImmutableSet.of(secondColumn))
+                                .build()));
+        List<Cell> cellsRead = Streams.stream(visitables)
+                .map(BatchingVisitables::copyToList)
+                .flatMap(List::stream)
+                .map(RowResult::getCells)
+                .flatMap(Streams::stream)
+                .map(Entry::getKey)
+                .collect(Collectors.toList());
+        assertThat(cellsRead).containsExactly(firstCell, secondCell);
+    }
+
     @Test
     public void testRangePaging() {
         int totalPuts = 101;ueu(f0d976b77a594275633b3d73bb45447ae54c1804}(sha(f0d976b77a594275633b3d73bb45447ae54c1804node_idEC_kwDOAjP5fdoAKGYwZDk3NmI3N2E1OTQyNzU2MzNiM2Q3M2JiNDU0NDdhZTU0YzE4MDQcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-20T12:43:47Zu	committer}(j  	Tom Papkej  tpapke@palantir.comj  2023-07-20T12:44:30ZumessageRename to BufferMetricstree}(h(22f1f9a7a316c64d6401aa6e5c4a7a0d15298204url`https://api.github.com/repos/palantir/atlasdb/git/trees/22f1f9a7a316c64d6401aa6e5c4a7a0d15298204uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f0d976b77a594275633b3d73bb45447ae54c1804
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS5LC4ACgkQmF9s0kaF
Iw126Qf+LpmH27Bt+bWSrA/wa+dOTRkU2lNM+v2eYHVnArCB/7MydmBA2BEVMqzv
i6SGIwmyBl54l6nGVvIp7DzGebifV4qLsj2beR5glHayKrrX9toQATe/dJTRmEoI
ud60nc0rHIEWN11gn7q3hLsS+QqikPbHjQiJXi4til/6LUjC8ekTMwvP29IIOP0p
laGcydPs55z9miVvqPE3Hi0vHXvBIzrOvZWjYcsodYbnas+/lHbhIvsV1pKWq47G
VzM03CWZF6eHFvHk7Q69SxEnPfQNt7Le5r3R4bjGYWXC2hPJXKPAKfNXgHSBREHP
wvQnN7DGfjuSBipvWK3nae2inWrSRQ==
=49As
-----END PGP SIGNATURE-----payloadtree 22f1f9a7a316c64d6401aa6e5c4a7a0d15298204
parent 5ed07faa5e19406671f7758321199d090d33459f
author Tom Papke <tpapke@palantir.com> 1689857027 +0100
committer Tom Papke <tpapke@palantir.com> 1689857070 +0100

Rename to BufferMetrics
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/f0d976b77a594275633b3d73bb45447ae54c1804html_urlShttps://github.com/palantir/atlasdb/commit/f0d976b77a594275633b3d73bb45447ae54c1804comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f0d976b77a594275633b3d73bb45447ae54c1804/commentsj   }(login	ToemmscheidJbohMDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j  &https://api.github.com/users/Toemmschej   https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj  }(j%  	Toemmschej'  JbohMDQ6VXNlcjQzNjc1NDkwj)  4https://avatars.githubusercontent.com/u/43675490?v=4j+  h5j  &https://api.github.com/users/Toemmschej   https://github.com/Toemmschej.  0https://api.github.com/users/Toemmsche/followersj0  =https://api.github.com/users/Toemmsche/following{/other_user}j2  6https://api.github.com/users/Toemmsche/gists{/gist_id}j4  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j6  4https://api.github.com/users/Toemmsche/subscriptionsj8  +https://api.github.com/users/Toemmsche/orgsj:  ,https://api.github.com/users/Toemmsche/reposj<  7https://api.github.com/users/Toemmsche/events{/privacy}j>  6https://api.github.com/users/Toemmsche/received_eventsj@  UserjB  uparents]}(h(5ed07faa5e19406671f7758321199d090d33459fj  ^https://api.github.com/repos/palantir/atlasdb/commits/5ed07faa5e19406671f7758321199d090d33459fj   Shttps://github.com/palantir/atlasdb/commit/5ed07faa5e19406671f7758321199d090d33459fuastats}(totalK	additionsKQ	deletionsKVufiles](}(h(9f4ca09c90e7cf8f9a893b182c9bb43cfe0be85ffilenameZtimelock-agent/src/main/java/com/palantir/timelock/paxos/AsyncTimeLockServicesCreator.javastatusmodifiedj\  Kj]  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.java?ref=f0d976b77a594275633b3d73bb45447ae54c1804patchX  @@ -24,7 +24,7 @@
 import com.palantir.atlasdb.timelock.lock.AsyncLockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.atlasdb.timelock.lock.NonTransactionalLockService;
-import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
 import com.palantir.atlasdb.timelock.paxos.LeadershipComponents;
 import com.palantir.atlasdb.util.MetricsManager;
@@ -100,7 +100,7 @@ private AsyncTimelockService createRawAsyncTimelockService(
                         maybeEnhancedLockLog,
                         reaperExecutor,
                         timeoutExecutor,
-                        CurrentMetrics.of(metricsManager.getTaggedRegistry())),
+                        BufferMetrics.of(metricsManager.getTaggedRegistry())),
                 timestampServiceSupplier.get(),
                 maybeEnhancedLockLog,
                 RequestMetrics.of(metricsManager.getTaggedRegistry()));u}(h(a31b55bb26484c1c29dbf7dfa1fb463fb2596558jb  timelock-impl/build.gradlejd  modifiedj\  Kj]  Kjf  Kjg  nhttps://github.com/palantir/atlasdb/blob/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-impl%2Fbuild.gradleji  mhttps://github.com/palantir/atlasdb/raw/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-impl%2Fbuild.gradlejk  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fbuild.gradle?ref=f0d976b77a594275633b3d73bb45447ae54c1804jm  @@ -106,5 +106,5 @@ dependencies {
 
 license {
     exclude '**/RequestMetrics.java'
-    exclude '**/CurrentMetrics.java'
+    exclude '**/BufferMetrics.java'
 }u}(h(d8fdf17d283ce2a18ecc0180c5fd05954b43ce29jb  Ttimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/AsyncLockService.javajd  modifiedj\  Kj]  Kjf  Kjg  https://github.com/palantir/atlasdb/blob/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javaji  https://github.com/palantir/atlasdb/raw/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javajk  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.java?ref=f0d976b77a594275633b3d73bb45447ae54c1804jm  X  @@ -19,7 +19,7 @@
 import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingService;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingServiceImpl;
-import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LeaderTime;
 import com.palantir.lock.v2.LockToken;
@@ -62,12 +62,12 @@ public static AsyncLockService createDefault(
             LockLog lockLog,
             ScheduledExecutorService reaperExecutor,
             ScheduledExecutorService timeoutExecutor,
-            CurrentMetrics metadataMetrics) {
+            BufferMetrics bufferMetrics) {
 
         LeaderClock clock = LeaderClock.create();
 
         HeldLocksCollection heldLocks = HeldLocksCollection.create(clock);
-        LockWatchingService lockWatchingService = new LockWatchingServiceImpl(heldLocks, clock.id(), metadataMetrics);
+        LockWatchingService lockWatchingService = new LockWatchingServiceImpl(heldLocks, clock.id(), bufferMetrics);
         LockAcquirer lockAcquirer = new LockAcquirer(lockLog, timeoutExecutor, clock, lockWatchingService);
 
         return new AsyncLockService(u}(h(5cce128c5d57690a5875d483a761058f6a0b4ceejb  etimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/ArrayLockEventSlidingWindow.javajd  modifiedj\  Kj]  Kjf  K)jg  https://github.com/palantir/atlasdb/blob/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindow.javaji  https://github.com/palantir/atlasdb/raw/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindow.javajk  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindow.java?ref=f0d976b77a594275633b3d73bb45447ae54c1804jm  X,  @@ -19,15 +19,14 @@
 import com.codahale.metrics.Counter;
 import com.google.common.math.LongMath;
 import com.google.common.primitives.Ints;
-import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.lock.watch.LockEvent;
 import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
 import com.palantir.lock.watch.UnlockEvent;
 import java.util.ArrayList;
 import java.util.List;
-import java.util.Map;
 import java.util.Optional;
 import javax.annotation.concurrent.NotThreadSafe;
 
@@ -39,11 +38,11 @@ public class ArrayLockEventSlidingWindow {
     private final Counter changeMetadataCounter;
     private final Counter eventsWithMetadataCounter;
 
-    ArrayLockEventSlidingWindow(int maxSize, CurrentMetrics metadataMetrics) {
+    ArrayLockEventSlidingWindow(int maxSize, BufferMetrics bufferMetrics) {
         this.buffer = new LockWatchEvent[maxSize];
         this.maxSize = maxSize;
-        this.changeMetadataCounter = metadataMetrics.changeMetadata();
-        this.eventsWithMetadataCounter = metadataMetrics.eventsWithMetadata();
+        this.changeMetadataCounter = bufferMetrics.changeMetadata();
+        this.eventsWithMetadataCounter = bufferMetrics.eventsWithMetadata();
     }
 
     long lastVersion() {
@@ -53,28 +52,24 @@ long lastVersion() {
     void add(LockWatchEvent.Builder eventBuilder) {
         LockWatchEvent event = eventBuilder.build(nextSequence);
         int index = LongMath.mod(nextSequence, maxSize);
-        updateCurrentMetadataMetrics(
-                event.accept(LockWatchEventMetadataVisitor.INSTANCE),
-                Optional.ofNullable(buffer[index])
-                        .flatMap(replacedEvent -> replacedEvent.accept(LockWatchEventMetadataVisitor.INSTANCE)));
+
+        Optional.ofNullable(buffer[index])
+                .flatMap(replacedEvent -> replacedEvent.accept(LockWatchEventMetadataVisitor.INSTANCE))
+                .ifPresent(this::decrementMetadataCounters);
+        event.accept(LockWatchEventMetadataVisitor.INSTANCE).ifPresent(this::incrementMetadataCounters);
+
         buffer[index] = event;
         nextSequence++;
     }
 
-    private void updateCurrentMetadataMetrics(
-            Optional<LockRequestMetadata> newMetadata, Optional<LockRequestMetadata> replacedMetadata) {
-        int changeMetadataSizeDiff = newMetadata
-                        .map(LockRequestMetadata::lockDescriptorToChangeMetadata)
-                        .map(Map::size)
-                        .orElse(0)
-                - replacedMetadata
-                        .map(LockRequestMetadata::lockDescriptorToChangeMetadata)
-                        .map(Map::size)
-                        .orElse(0);
-        int numPresentMetadataDiff = newMetadata.map(_unused -> 1).orElse(0)
-                - replacedMetadata.map(_unused -> 1).orElse(0);
-        changeMetadataCounter.inc(changeMetadataSizeDiff);
-        eventsWithMetadataCounter.inc(numPresentMetadataDiff);
+    private void incrementMetadataCounters(LockRequestMetadata metadata) {
+        changeMetadataCounter.inc(metadata.lockDescriptorToChangeMetadata().size());
+        eventsWithMetadataCounter.inc();
+    }
+
+    private void decrementMetadataCounters(LockRequestMetadata metadata) {
+        changeMetadataCounter.dec(metadata.lockDescriptorToChangeMetadata().size());
+        eventsWithMetadataCounter.dec();
     }
 
     public Optional<List<LockWatchEvent>> getNextEvents(long version) {u}(h(bca869f56d71be63d77a6b2c8b65c3bbe2af41c8jb  Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImpl.javajd  modifiedj\  Kj]  Kjf  Kjg  https://github.com/palantir/atlasdb/blob/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javaji  https://github.com/palantir/atlasdb/raw/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javajk  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.java?ref=f0d976b77a594275633b3d73bb45447ae54c1804jm  X  @@ -19,7 +19,7 @@
 import com.google.common.collect.RangeSet;
 import com.palantir.atlasdb.timelock.lock.AsyncLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
-import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.watch.LockEvent;
@@ -47,9 +47,9 @@ public class LockEventLogImpl implements LockEventLog {
             UUID logId,
             Supplier<LockWatches> watchesSupplier,
             HeldLocksCollection heldLocksCollection,
-            CurrentMetrics metadataMetrics) {
+            BufferMetrics bufferMetrics) {
         this.logId = logId;
-        this.slidingWindow = new ArrayLockEventSlidingWindow(1000, metadataMetrics);
+        this.slidingWindow = new ArrayLockEventSlidingWindow(1000, bufferMetrics);
         this.watchesSupplier = watchesSupplier;
         this.heldLocksCollection = heldLocksCollection;
     }u}(h(64e2e75476f17ef9c28864338c16eb43bc5cd443jb  atimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javajd  modifiedj\  Kj]  Kjf  K
jg  https://github.com/palantir/atlasdb/blob/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaji  https://github.com/palantir/atlasdb/raw/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javajk  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=f0d976b77a594275633b3d73bb45447ae54c1804jm  X
  @@ -22,7 +22,7 @@
 import com.google.common.collect.TreeRangeSet;
 import com.palantir.atlasdb.timelock.api.LockWatchRequest;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
-import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LeadershipId;
@@ -74,13 +74,13 @@ public class LockWatchingServiceImpl implements LockWatchingService {
     private final ReadWriteLock watchesLock = new ReentrantReadWriteLock(true);
 
     public LockWatchingServiceImpl(
-            HeldLocksCollection heldLocksCollection, LeadershipId leadershipId, CurrentMetrics metadataMetrics) {
-        this(leadershipId.id(), heldLocksCollection, metadataMetrics);
+            HeldLocksCollection heldLocksCollection, LeadershipId leadershipId, BufferMetrics lockWatchMetrics) {
+        this(leadershipId.id(), heldLocksCollection, lockWatchMetrics);
     }
 
     @VisibleForTesting
-    LockWatchingServiceImpl(UUID logId, HeldLocksCollection heldLocksCollection, CurrentMetrics metadataMetrics) {
-        this.lockEventLog = new LockEventLogImpl(logId, watches::get, heldLocksCollection, metadataMetrics);
+    LockWatchingServiceImpl(UUID logId, HeldLocksCollection heldLocksCollection, BufferMetrics lockWatchMetrics) {
+        this.lockEventLog = new LockEventLogImpl(logId, watches::get, heldLocksCollection, lockWatchMetrics);
     }
 
     @Overrideu}(h(1bda947c93dfade6c8d6e97379c8ca0fa7fed706jb  .timelock-impl/src/main/metrics/lockwatches.ymljd  addedj\  Kj]  K jf  Kjg  https://github.com/palantir/atlasdb/blob/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Flockwatches.ymlji  https://github.com/palantir/atlasdb/raw/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Flockwatches.ymljk  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Flockwatches.yml?ref=f0d976b77a594275633b3d73bb45447ae54c1804jm  X  @@ -0,0 +1,20 @@
+options:
+  javaPackage: 'com.palantir.atlasdb.timelock.lockwatches'
+
+namespaces:
+  request:
+    docs: Metrics tracking LockWatch-related things in requests received by TimeLock
+    metrics:
+      changeMetadata:
+        docs: Number of change metadata objects contained in a lock request
+        type: histogram
+  buffer:
+    docs: Metrics tracking things currently stored in the LockWatchEvent buffer (sliding window)
+    metrics:
+      eventsWithMetadata:
+        docs: Number of events currently stored in the buffer that have non-absent metadata
+        type: counter
+      changeMetadata:
+        docs: Total number of change metadata objects currently stored in the buffer across all events
+        type: counter
+u}(h(a31bdf42575195ef4328f050652c7175fbea6b5ejb  +timelock-impl/src/main/metrics/metadata.ymljd  removedj\  K j]  Kjf  Kjg  https://github.com/palantir/atlasdb/blob/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Fmetadata.ymlji  https://github.com/palantir/atlasdb/raw/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Fmetadata.ymljk  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Fmetadata.yml?ref=5ed07faa5e19406671f7758321199d090d33459fjm  X  @@ -1,20 +0,0 @@
-options:
-  javaPackage: 'com.palantir.atlasdb.timelock.lockwatches'
-
-namespaces:
-  request:
-    docs: Metrics tracking metadata presence in lock requests received by TimeLock
-    metrics:
-      changeMetadata:
-        docs: Number of change metadata objects contained in a lock request
-        type: histogram
-  current:
-    docs: Metrics tracking metadata currently stored in LockEvents in the LockWatchEvent sliding window
-    metrics:
-      eventsWithMetadata:
-        docs: Number of LockEvents currently stored in the sliding window that have non-absent metadata
-        type: counter
-      changeMetadata:
-        docs: Number of change metadata objects currently stored in the sliding window
-        type: counter
-u}(h(b88b9f6eb2608d0c4d5fa96c20f636f1dc76adbdjb  Xtimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/AsyncLockServiceTest.javajd  modifiedj\  Kj]  Kjf  Kjg  https://github.com/palantir/atlasdb/blob/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javaji  https://github.com/palantir/atlasdb/raw/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javajk  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.java?ref=f0d976b77a594275633b3d73bb45447ae54c1804jm  X$  @@ -18,7 +18,7 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
-import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.common.concurrent.PTExecutors;
@@ -36,7 +36,7 @@ public void executorsShutDownAfterClose() {
                 new LockLog(metricsManager.getRegistry(), () -> 1L),
                 reaperExecutor,
                 timeoutExecutor,
-                CurrentMetrics.of(metricsManager.getTaggedRegistry()));
+                BufferMetrics.of(metricsManager.getTaggedRegistry()));
 
         asyncLockService.close();
         assertThat(reaperExecutor.isShutdown()).isTrue();u}(h(0c13092fc00c83738696238a92d74517d8e04852jb  itimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/ArrayLockEventSlidingWindowTest.javajd  modifiedj\  Kj]  Kjf  K jg  https://github.com/palantir/atlasdb/blob/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.javaji  https://github.com/palantir/atlasdb/raw/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.javajk  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.java?ref=f0d976b77a594275633b3d73bb45447ae54c1804jm  X  @@ -21,7 +21,7 @@
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.StringLockDescriptor;
@@ -47,10 +47,10 @@ public class ArrayLockEventSlidingWindowTest {
     private static final LockDescriptor LOCK_3 = StringLockDescriptor.of("ghi");
     private static final LockToken TOKEN = LockToken.of(UUID.randomUUID());
 
-    private final CurrentMetrics metadataMetrics =
-            CurrentMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
+    private final BufferMetrics bufferMetrics =
+            BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
     private final ArrayLockEventSlidingWindow slidingWindow =
-            new ArrayLockEventSlidingWindow(WINDOW_SIZE, metadataMetrics);
+            new ArrayLockEventSlidingWindow(WINDOW_SIZE, bufferMetrics);
 
     @Test
     public void whenLastKnownVersionIsAfterCurrentReturnEmpty() {
@@ -103,16 +103,16 @@ public void countsMetadataCorrectlyStartingFromEmptyBuffer() {
         addLockEventWithMetadata(ImmutableSet.of(LOCK_1, LOCK_2), Optional.of(metadata));
         addLockEventWithMetadata(ImmutableSet.of(LOCK_3), Optional.of(metadata2));
 
-        assertThat(metadataMetrics.changeMetadata().getCount()).isEqualTo(3);
-        assertThat(metadataMetrics.eventsWithMetadata().getCount()).isEqualTo(2);
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(3);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(2);
 
         addLockEventWithMetadata(ImmutableSet.of(LOCK_1), Optional.empty());
         addLockEventWithMetadata(ImmutableSet.of(), Optional.of(LockRequestMetadata.of(ImmutableMap.of())));
 
-        assertThat(metadataMetrics.changeMetadata().getCount())
+        assertThat(bufferMetrics.changeMetadata().getCount())
                 .as("Absent metadata should count for nothing")
                 .isEqualTo(3);
-        assertThat(metadataMetrics.eventsWithMetadata().getCount())
+        assertThat(bufferMetrics.eventsWithMetadata().getCount())
                 .as("Empty metadata map should count for present metadata")
                 .isEqualTo(3);
     }
@@ -127,20 +127,20 @@ public void maintainsCorrectMetadataCountWhenOverwritingBuffer() {
                     ImmutableMap.of(lock, ChangeMetadata.created(PtBytes.toBytes("created" + i))));
             addLockEventWithMetadata(ImmutableSet.of(lock), Optional.of(metadata));
         });
-        assertThat(metadataMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE);
-        assertThat(metadataMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE);
 
         // Counts are maintained if we replace an event with metadata of same size
         addLockEventWithMetadata(
                 ImmutableSet.of(LOCK_1),
                 Optional.of(LockRequestMetadata.of(ImmutableMap.of(LOCK_1, ChangeMetadata.unchanged()))));
-        assertThat(metadataMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE);
-        assertThat(metadataMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE);
 
         // Both counts can decrease
         addLockEventWithMetadata(ImmutableSet.of(LOCK_1), Optional.empty());
-        assertThat(metadataMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
-        assertThat(metadataMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
 
         // ChangeMetadata count can increase
         addLockEventWithMetadata(
@@ -149,8 +149,8 @@ public void maintainsCorrectMetadataCountWhenOverwritingBuffer() {
                         LOCK_1, ChangeMetadata.created(PtBytes.toBytes("created")),
                         LOCK_2, ChangeMetadata.unchanged(),
                         LOCK_3, ChangeMetadata.updated(PtBytes.toBytes("old"), PtBytes.toBytes("new"))))));
-        assertThat(metadataMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE + 1);
-        assertThat(metadataMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE + 1);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
     }
 
     private void whenLogContainsEvents0To4() {u}(h(428343d34d878fec95d1805731488da912fac28ajb  ^timelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImplTest.javajd  modifiedj\  Kj]  Kjf  Kjg  https://github.com/palantir/atlasdb/blob/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.javaji  https://github.com/palantir/atlasdb/raw/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.javajk  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.java?ref=f0d976b77a594275633b3d73bb45447ae54c1804jm  X;  @@ -30,7 +30,7 @@
 import com.palantir.atlasdb.timelock.lock.ExclusiveLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocks;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
-import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
@@ -73,7 +73,7 @@ public class LockEventLogImplTest {
             LOG_ID,
             lockWatches::get,
             heldLocksCollection,
-            CurrentMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
+            BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
 
     @Before
     public void setupMocks() {u}(h(9351b2c3e3ec099a25284148e19fee9daed18290jb  etimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImplTest.javajd  modifiedj\  Kj]  Kjf  Kjg  https://github.com/palantir/atlasdb/blob/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaji  https://github.com/palantir/atlasdb/raw/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javajk  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.java?ref=f0d976b77a594275633b3d73bb45447ae54c1804jm  X  @@ -33,7 +33,7 @@
 import com.palantir.atlasdb.timelock.lock.ExclusiveLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocks;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
-import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.AtlasCellLockDescriptor;
@@ -78,7 +78,7 @@ public class LockWatchingServiceImplTest {
 
     private final HeldLocksCollection locks = mock(HeldLocksCollection.class);
     private final LockWatchingService lockWatcher = new LockWatchingServiceImpl(
-            LOG_ID, locks, CurrentMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
+            LOG_ID, locks, BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
 
     private final HeldLocks heldLocks = mock(HeldLocks.class);
 u}(h(2a9bce4a82a96d5c5b414d9c9e0dcdc2517ed6c3jb  ftimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataTest.javajd  modifiedj\  Kj]  Kjf  K
jg  https://github.com/palantir/atlasdb/blob/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaji  https://github.com/palantir/atlasdb/raw/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javajk  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.java?ref=f0d976b77a594275633b3d73bb45447ae54c1804jm  X	  @@ -31,7 +31,7 @@
 import com.palantir.atlasdb.timelock.api.LockWatchRequest;
 import com.palantir.atlasdb.timelock.lock.AsyncLockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;
-import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
@@ -79,16 +79,16 @@ public class AsyncTimeLockServiceMetadataTest {
             standardRequestWithMetadata(ALL_WATCHED_LOCKS_WITH_METADATA);
 
     private final MetricsManager metricsManager = MetricsManagers.createForTests();
-    private final RequestMetrics metadataMetrics = RequestMetrics.of(metricsManager.getTaggedRegistry());
+    private final RequestMetrics requestMetrics = RequestMetrics.of(metricsManager.getTaggedRegistry());
     private final LockLog lockLog = new LockLog(metricsManager.getRegistry(), () -> 10000L);
     private final ScheduledExecutorService scheduledExecutorService = new DeterministicScheduler();
     private final AsyncLockService asyncLockService = AsyncLockService.createDefault(
             lockLog,
             scheduledExecutorService,
             scheduledExecutorService,
-            CurrentMetrics.of(metricsManager.getTaggedRegistry()));
+            BufferMetrics.of(metricsManager.getTaggedRegistry()));
     private final AsyncTimelockServiceImpl timeLockService =
-            new AsyncTimelockServiceImpl(asyncLockService, new InMemoryTimestampService(), lockLog, metadataMetrics);
+            new AsyncTimelockServiceImpl(asyncLockService, new InMemoryTimestampService(), lockLog, requestMetrics);
     private final ConjureStartTransactionsRequest startTransactionsRequestWithInitialVersion =
             ConjureStartTransactionsRequest.builder()
                     .requestId(UUID.randomUUID())
@@ -163,7 +163,7 @@ public void updatesRequestMetricsCorrectly() {
         timeLockService.lock(ImmutableIdentifiedLockRequest.copyOf(WATCHED_LOCK_REQUEST_WITH_METADATA)
                 .withMetadata(Optional.empty()));
 
-        assertThat(metadataMetrics.changeMetadata().getSnapshot().getValues()).containsOnly(0, 3, 0);
+        assertThat(requestMetrics.changeMetadata().getSnapshot().getValues()).containsOnly(0, 3, 0);
     }
 
     private List<Optional<LockRequestMetadata>> getAllLockEventsMetadata() {u}(h(a1c26b303ce52ac19eaf79c922923c3074b142f2jb  ]timelock-server/src/test/java/com/palantir/atlasdb/timelock/lock/AsyncLockServiceEteTest.javajd  modifiedj\  Kj]  Kjf  Kjg  https://github.com/palantir/atlasdb/blob/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceEteTest.javaji  https://github.com/palantir/atlasdb/raw/f0d976b77a594275633b3d73bb45447ae54c1804/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceEteTest.javajk  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceEteTest.java?ref=f0d976b77a594275633b3d73bb45447ae54c1804jm  X  @@ -22,7 +22,7 @@
 import com.google.common.util.concurrent.Uninterruptibles;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingService;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingServiceImpl;
-import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.flake.FlakeRetryingRule;
 import com.palantir.flake.ShouldRetry;
@@ -68,7 +68,7 @@ public class AsyncLockServiceEteTest {
     private final LockWatchingService lockWatchingService = new LockWatchingServiceImpl(
             heldLocks,
             clock.id(),
-            CurrentMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
+            BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
     private final AsyncLockService service = new AsyncLockService(
             new LockCollection(),
             new ImmutableTimestampTracker(),ueu(26d9ec1241268ae03637958683db658ba575f706}(sha(26d9ec1241268ae03637958683db658ba575f706node_idEC_kwDOAjP5fdoAKDI2ZDllYzEyNDEyNjhhZTAzNjM3OTU4NjgzZGI2NThiYTU3NWY3MDYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-12T15:01:44Zu	committer}(j  
Ahmed Alouanej  aalouane@palantir.comj  2023-05-12T15:01:44Zumessageappliedtree}(j  (1ff7beb1698dbbae13bce164978b824fb262d815url`https://api.github.com/repos/palantir/atlasdb/git/trees/1ff7beb1698dbbae13bce164978b824fb262d815uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/26d9ec1241268ae03637958683db658ba575f706
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmReVNgACgkQPlMHVIT1
yhroJggAikaFec1TWEnIDGMbTMHxTwAgHCWTvkkbZ0+oRO5yUEg3MxvQC9a+wyzY
engfE2sgzK0tNGb2Hohwa558mQ212aY97PP3sgKD1CUwq4Y9+5ijlGVYKso3Elgc
dK/eXoBjocUT+WQ0nrOYw8kwbyYlEN/U+s51/BlZYZ3wVCM+yxkFIVoEje2OYw1E
jSsUhMnhwfBpUfjfYxVwRVOttZNnSfYMDY04dR8dayUwkql+6271P8ZntbbDJyHv
6ueX2VqUs0pWxiCRDRq+HA2H6rP5vIzzZIYOi1YEU/RhH2xwTzUBkqQQXJAjuJO0
FQo1QcxuVGITR8lRgXN6O9yJBXb6yQ==
=1rz2
-----END PGP SIGNATURE-----payloadtree 1ff7beb1698dbbae13bce164978b824fb262d815
parent 0f52e48c1b8cff71852bc77920da133aa57d3a27
author Ahmed Alouane <aalouane@palantir.com> 1683903704 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1683903704 +0100

applied
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/26d9ec1241268ae03637958683db658ba575f706html_urlShttps://github.com/palantir/atlasdb/commit/26d9ec1241268ae03637958683db658ba575f706comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/26d9ec1241268ae03637958683db658ba575f706/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j  ergo14j  Jj  MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j
  h5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14j
  -https://api.github.com/users/ergo14/followersj  :https://api.github.com/users/ergo14/following{/other_user}j  3https://api.github.com/users/ergo14/gists{/gist_id}j  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j  1https://api.github.com/users/ergo14/subscriptionsj  (https://api.github.com/users/ergo14/orgsj  )https://api.github.com/users/ergo14/reposj  4https://api.github.com/users/ergo14/events{/privacy}j  3https://api.github.com/users/ergo14/received_eventsj  Userj!  uparents]}(j  (0f52e48c1b8cff71852bc77920da133aa57d3a27j  ^https://api.github.com/repos/palantir/atlasdb/commits/0f52e48c1b8cff71852bc77920da133aa57d3a27j  Shttps://github.com/palantir/atlasdb/commit/0f52e48c1b8cff71852bc77920da133aa57d3a27uastats}(totalK	additionsK	deletionsKufiles]}(j  (3fb42bd84e07071b1e672d7ecec1f7411cbf26dffilename.circleci/config.ymlstatusmodifiedj;  Kj<  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/26d9ec1241268ae03637958683db658ba575f706/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/26d9ec1241268ae03637958683db658ba575f706/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=26d9ec1241268ae03637958683db658ba575f706patchX  @@ -88,7 +88,7 @@ jobs:
       - run:
           name: "Cancel workflows on failure"
           command: |
-            curl --silent --show-error -X POST https://circleci.com/api/v2/workflow/$CIRCLE_WORKFLOW_ID/cancel?"circle-token=$CIRCLE_TOKEN"
+            curl --silent --show-error -X POST https://circleci.com/api/v2/workflow/$CIRCLE_WORKFLOW_ID/cancel?circle-token=$CIRCLE_TOKEN
           when: on_fail
 
   trial-publish:uau(3cc3fdddf3e11f950caa230f591b940b4fe1853d}(sha(3cc3fdddf3e11f950caa230f591b940b4fe1853dnode_idEC_kwDOAjP5fdoAKDNjYzNmZGRkZjNlMTFmOTUwY2FhMjMwZjU5MWI5NDBiNGZlMTg1M2Qcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-09T12:42:50Zu	committer}(jX  	Tom PapkejZ  tpapke@palantir.comj\  2023-06-09T12:42:50ZumessageAdd allRandom request suppliertree}(jP  (2b0998e1c78d43a91620325c01c342c165fc778furl`https://api.github.com/repos/palantir/atlasdb/git/trees/2b0998e1c78d43a91620325c01c342c165fc778fujh  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3cc3fdddf3e11f950caa230f591b940b4fe1853d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSDHkoACgkQmF9s0kaF
Iw1g6Qf+NS+mii6iMj9uiZ7RZqwMwKlTsYwCW36CwfwnRWX6W83wxK8X/oaTxWcG
0hmoe7etr3LNp1lRON9WjlTcbhDm6wabGGJQ0Gs6Jvl3tDpcKyaat4xsKbgtfiD7
V/OKvuy2xpoOZhn+uJy0DDpLINHQHiphQtaTEDMs7RZr85z0+nMIm7PVhb88QBEo
BtWQKhDbmrG9R6/88hGNYuU2rK9SfmyvJ3q+VOauG9jpQfT7c6K562ym4HE5Ugvr
8netmzarkwaDfUp0ENKMtAo6xcZdtus6+SSgeaCHtNgLrm5eMyrAch6pKgwJqsM4
i4QBE32w5HrZkoBQYhYcixRn9LeWvQ==
=hpta
-----END PGP SIGNATURE-----payloadtree 2b0998e1c78d43a91620325c01c342c165fc778f
parent 0a37561a2a3b13a26ab442f395bc681223f9330a
author Tom Papke <tpapke@palantir.com> 1686314570 +0100
committer Tom Papke <tpapke@palantir.com> 1686314570 +0100

Add allRandom request supplier
uujh  ^https://api.github.com/repos/palantir/atlasdb/commits/3cc3fdddf3e11f950caa230f591b940b4fe1853dhtml_urlShttps://github.com/palantir/atlasdb/commit/3cc3fdddf3e11f950caa230f591b940b4fe1853dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3cc3fdddf3e11f950caa230f591b940b4fe1853d/commentsjV  }(login	ToemmscheidJbojR  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jh  &https://api.github.com/users/Toemmschejv  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj^  }(j{  	Toemmschej}  JbojR  MDQ6VXNlcjQzNjc1NDkwj  4https://avatars.githubusercontent.com/u/43675490?v=4j  h5jh  &https://api.github.com/users/Toemmschejv  https://github.com/Toemmschej  0https://api.github.com/users/Toemmsche/followersj  =https://api.github.com/users/Toemmsche/following{/other_user}j  6https://api.github.com/users/Toemmsche/gists{/gist_id}j  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j  4https://api.github.com/users/Toemmsche/subscriptionsj  +https://api.github.com/users/Toemmsche/orgsj  ,https://api.github.com/users/Toemmsche/reposj  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj  Userj  uparents]}(jP  (0a37561a2a3b13a26ab442f395bc681223f9330ajh  ^https://api.github.com/repos/palantir/atlasdb/commits/0a37561a2a3b13a26ab442f395bc681223f9330ajv  Shttps://github.com/palantir/atlasdb/commit/0a37561a2a3b13a26ab442f395bc681223f9330auastats}(totalK"	additionsK	deletionsKufiles]}(jP  (3e7ab9b1fc79274c38706f92878d851a888bae46filenameUlock-benchmark/src/jmh/java/com/palantir/atlasdb/state/LockServiceBenchmarkState.javastatusmodifiedj  Kj  KchangesK"blob_urlhttps://github.com/palantir/atlasdb/blob/3cc3fdddf3e11f950caa230f591b940b4fe1853d/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.javaraw_urlhttps://github.com/palantir/atlasdb/raw/3cc3fdddf3e11f950caa230f591b940b4fe1853d/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.java?ref=3cc3fdddf3e11f950caa230f591b940b4fe1853dpatchX  @@ -24,15 +24,18 @@
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.StringLockDescriptor;
 import com.palantir.lock.ThreadAwareCloseableLockService;
+import com.palantir.lock.TimeDuration;
 import com.palantir.lock.impl.LockServiceImpl;
 import java.util.List;
 import java.util.Random;
 import java.util.SortedMap;
 import java.util.TreeMap;
 import java.util.concurrent.TimeUnit;
+import java.util.concurrent.locks.Lock;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
+import net.bytebuddy.build.Plugin.Factory.Simple;
 import org.openjdk.jmh.annotations.Param;
 import org.openjdk.jmh.annotations.Scope;
 import org.openjdk.jmh.annotations.Setup;
@@ -67,21 +70,45 @@ public class LockServiceBenchmarkState {
     @Param({"100"})
     public int threadInfoSnapshotIntervalMillis;
 
+    private int maxBlockingDurationMillis = 100;
+
     private List<LockDescriptor> heldLocksAtBeginning;
 
     private List<LockDescriptor> availableLocks;
 
+    @SuppressWarnings("UnusedMethod")
     private LockRequest nonBlocking_asManyAsPossible_randomMode() {
         SortedMap<LockDescriptor, LockMode> locks = new TreeMap<>();
         for (int i = 0; i < locksPerRequest; i++) {
             locks.put(
-                    this.getAvailableLocks()
+                    availableLocks
                             .get(rand.nextInt(getAvailableLocks().size())),
-                    Math.random() > 0.5 ? LockMode.READ : LockMode.WRITE);
+                    rand.nextBoolean() ? LockMode.READ : LockMode.WRITE);
         }
         return LockRequest.builder(locks).lockAsManyAsPossible().doNotBlock().build();
     }
 
+    private LockRequest allRandom() {
+        SortedMap<LockDescriptor, LockMode> locks = new TreeMap<>();
+        final int numLocks = Math.max(1, rand.nextInt(locksPerRequest));
+        for (int i = 0; i < numLocks; i++) {
+            locks.put(
+                    availableLocks
+                            .get(rand.nextInt(getAvailableLocks().size())),
+                    rand.nextBoolean() ? LockMode.READ : LockMode.WRITE);
+        }
+        LockRequest.Builder builder = LockRequest.builder(locks);
+        if (rand.nextBoolean()) {
+            builder.lockAsManyAsPossible();
+        }
+        if (rand.nextBoolean()) {
+            builder.doNotBlock();
+        } else {
+            builder.blockForAtMost(SimpleTimeDuration.of(rand.nextInt(maxBlockingDurationMillis), TimeUnit.MILLISECONDS));
+        }
+        return builder.build();
+    }
+
     @Setup
     public void setup() {
         this.heldLocksAtBeginning = IntStream.range(0, numHeldLocksAtBeginning)
@@ -90,7 +117,8 @@ public void setup() {
         this.availableLocks = IntStream.range(0, numAvailableLocks)
                 .mapToObj(i -> StringLockDescriptor.of(Integer.toString(i)))
                 .collect(Collectors.toUnmodifiableList());
-        this.lockRequestSupplier = this::nonBlocking_asManyAsPossible_randomMode;
+
+        this.lockRequestSupplier = this::allRandom;
         this.lockService = LockServiceImpl.create(LockServerOptions.builder()
                 .collectThreadInfo(collectThreadInfo)
                 .threadInfoSnapshotInterval(uau      (1ff550b17925a18bfe8e13f3abc4cb53731208d5}(sha(1ff550b17925a18bfe8e13f3abc4cb53731208d5node_idEC_kwDOAjP5fdoAKDFmZjU1MGIxNzkyNWExOGJmZThlMTNmM2FiYzRjYjUzNzMxMjA4ZDUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-24T10:29:57Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-07-24T10:29:57Zumessageimportstree}(j  (bf8946998afdd835659353a9d1dc163497703a85url`https://api.github.com/repos/palantir/atlasdb/git/trees/bf8946998afdd835659353a9d1dc163497703a85uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1ff550b17925a18bfe8e13f3abc4cb53731208d5
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmS+UqUACgkQTLdFKain
zjzzeAgAgilki7AguSBRyW0jg1M3ikoPmSonUUw+qiRcQIkphuI4pp2NkRfAg6b5
dtFOUUZlTNT6FCJkBUakZEdZzyr/oKhuHIV6BPzuTZCzvWT69PABiUFkyHhVIZ1i
UcovivXHrSuvzc5kx5A3g8gesn9wzpZNH/gw8NOLr36XNfNyoi/meHw0W7Nrdv7N
VxyjKdncQs+6kl9Cpphflfbiy3TXyBIGXVPWAolzYmdpxlUjnS7+iWzZ/ij+jdQu
gAi1nc3cs2b/iys0BV0FeS4TMQdL0N1mqliwgdWj3LL1GHdohb/o3khVdy9vpqYr
aje8P9UTrkI2EeJVgB456jjHeailEQ==
=7Wiq
-----END PGP SIGNATURE-----payloadtree bf8946998afdd835659353a9d1dc163497703a85
parent 947626837e3ca4b68e57b468d1ffa2c8e7ff3d17
author Jeremy Kong <jkong@palantir.com> 1690194597 +0100
committer Jeremy Kong <jkong@palantir.com> 1690194597 +0100

imports
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/1ff550b17925a18bfe8e13f3abc4cb53731208d5html_urlShttps://github.com/palantir/atlasdb/commit/1ff550b17925a18bfe8e13f3abc4cb53731208d5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1ff550b17925a18bfe8e13f3abc4cb53731208d5/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j  
jeremyk-91j  JZ j  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj	  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj
  Userj  uparents]}(j  (947626837e3ca4b68e57b468d1ffa2c8e7ff3d17j  ^https://api.github.com/repos/palantir/atlasdb/commits/947626837e3ca4b68e57b468d1ffa2c8e7ff3d17j  Shttps://github.com/palantir/atlasdb/commit/947626837e3ca4b68e57b468d1ffa2c8e7ff3d17uastats}(totalK	additionsK	deletionsK ufiles]}(j  (b716f3b51ac733808fb5626ee43299f485b2b3dafilenameXatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraTimeLockTestSuite.javastatusmodifiedj)  Kj*  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/1ff550b17925a18bfe8e13f3abc4cb53731208d5/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1ff550b17925a18bfe8e13f3abc4cb53731208d5/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.java?ref=1ff550b17925a18bfe8e13f3abc4cb53731208d5patchX  @@ -17,6 +17,8 @@
 
 import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.containers.CassandraEnvironment;
+import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
+import com.palantir.atlasdb.ete.coordination.MultipleSchemaVersionsCoordinationEteTest;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;uau(250a057aca122cd1c68480dcb7c7a2fc9ad69850}(sha(250a057aca122cd1c68480dcb7c7a2fc9ad69850node_idEC_kwDOAjP5fdoAKDI1MGEwNTdhY2ExMjJjZDFjNjg0ODBkY2I3YzdhMmZjOWFkNjk4NTAcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-23T16:01:55Zu	committer}(jF  
Sam KramerjH  skramer@palantir.comjJ  2023-05-23T16:01:55ZumessageFCurl endpoint on publish if its config-check; fix docker gradle configtree}(j>  (7005fd270a8e5f538e58b55e06c4b4d3ae3f257eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/7005fd270a8e5f538e58b55e06c4b4d3ae3f257eujV  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/250a057aca122cd1c68480dcb7c7a2fc9ad69850
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRs43QACgkQmPPOpKR4
XS2bAAgAqaYMrkxZCE8OfT0B/cv/QBlXU5IW6nZiQ/XTHQJprXuE4kTYgmeOjA83
1UU7cpaMIUN+iwqYOAAOWbvZjwxevKouUJS+n0tKrhIPUN+zZTQX9EGvZy+ZDFrq
wGn3m4yLjG+DZFhcWQqjgqoI0eTrMhIiyTTtxFIz+0ieoSWKwNDCqXUjdqCQubTx
EEZNzeLAj2/6WQSOsb3o+plTlqys1LmdDQBdXftGSC+JpZsdWqOoq7SBW4gI0dhg
HFYdNvMeJZRkHrEk+6RZQewz2h6wDEvOXNWnTqdb+MaOKpPxGgKC/edjyuSoUtqC
lZpgczPKovq2ZulUrBX0alt3eqLwkw==
=Rhhw
-----END PGP SIGNATURE-----payloadX  tree 7005fd270a8e5f538e58b55e06c4b4d3ae3f257e
parent 4b6627d239e97dbd2e0e406504cadcca9696a15e
author Sam Kramer <skramer@palantir.com> 1684857715 +0100
committer Sam Kramer <skramer@palantir.com> 1684857715 +0100

Curl endpoint on publish if its config-check; fix docker gradle config
uujV  ^https://api.github.com/repos/palantir/atlasdb/commits/250a057aca122cd1c68480dcb7c7a2fc9ad69850html_urlShttps://github.com/palantir/atlasdb/commit/250a057aca122cd1c68480dcb7c7a2fc9ad69850comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/250a057aca122cd1c68480dcb7c7a2fc9ad69850/commentsjD  }(login
Sam-KrameridJ^2_ j@  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jV  'https://api.github.com/users/Sam-Kramerjd  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujL  }(ji  
Sam-Kramerjk  J^2_ j@  MDQ6VXNlcjYyMzg4MTQ=jm  3https://avatars.githubusercontent.com/u/6238814?v=4jo  h5jV  'https://api.github.com/users/Sam-Kramerjd  https://github.com/Sam-Kramerjr  1https://api.github.com/users/Sam-Kramer/followersjt  >https://api.github.com/users/Sam-Kramer/following{/other_user}jv  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jx  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jz  5https://api.github.com/users/Sam-Kramer/subscriptionsj|  ,https://api.github.com/users/Sam-Kramer/orgsj~  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj  uparents]}(j>  (4b6627d239e97dbd2e0e406504cadcca9696a15ejV  ^https://api.github.com/repos/palantir/atlasdb/commits/4b6627d239e97dbd2e0e406504cadcca9696a15ejd  Shttps://github.com/palantir/atlasdb/commit/4b6627d239e97dbd2e0e406504cadcca9696a15euastats}(totalK	additionsK	deletionsKufiles](}(j>  (85652670ee979a2233211267d7b5fb3f877648bafilenamegradle/docker.gradlestatusmodifiedj  Kj  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/250a057aca122cd1c68480dcb7c7a2fc9ad69850/gradle%2Fdocker.gradleraw_urlghttps://github.com/palantir/atlasdb/raw/250a057aca122cd1c68480dcb7c7a2fc9ad69850/gradle%2Fdocker.gradlecontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fdocker.gradle?ref=250a057aca122cd1c68480dcb7c7a2fc9ad69850patchX0  @@ -5,7 +5,7 @@ def imageVersion = "${project.version.toString().replaceAll('\\+', '-')}"
 docker {
     name "palantirtechnologies/${project.name}:${imageVersion}"
     tags 'latest', 'snapshot'
-    labels ['version', imageVersion]
+    labels(['version': imageVersion])
     files distTar.outputs
 }
 u}(j>  (a736f6bd4c461ac86cb0dd1e7f09d7e04bd364baj  *scripts/circle-ci/publish-to-antithesis.shj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/250a057aca122cd1c68480dcb7c7a2fc9ad69850/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj  https://github.com/palantir/atlasdb/raw/250a057aca122cd1c68480dcb7c7a2fc9ad69850/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj  https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=250a057aca122cd1c68480dcb7c7a2fc9ad69850j  X  @@ -37,4 +37,8 @@ docker tag palantirtechnologies/atlasdb-workload-server-distribution:${VERSION}
 docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${$1}
 
 docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${$1}
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${$1}
\ No newline at end of file
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${$1}
+
+if [[ "$1" = "config-check" ]]; then
+  curl -u "palantir:${ANTITHESIS_WEBHOOK_PASSWORD}" -X POST https://palantir.antithesis.com/api/v1/launch_experiment/palantir__configcheck__minimal
+fi
\ No newline at end of fileueu(22a576599c6a371b0a1f2ff63627b0e12da32768}(sha(22a576599c6a371b0a1f2ff63627b0e12da32768node_idEC_kwDOAjP5fdoAKDIyYTU3NjU5OWM2YTM3MWIwYTFmMmZmNjM2MjdiMGUxMmRhMzI3Njgcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-04T14:21:21Zu	committer}(j  
Ahmed Alouanej  aalouane@palantir.comj  2023-04-04T14:21:21Zumessage1Merge branch 'develop' into roomba/update-conjuretree}(j  (c80fa63b310b83344312405679a130f79bda9511url`https://api.github.com/repos/palantir/atlasdb/git/trees/c80fa63b310b83344312405679a130f79bda9511uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/22a576599c6a371b0a1f2ff63627b0e12da32768
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQsMmIACgkQPlMHVIT1
yhphjggAg0UrXopwbV70Tx+iFX0SsbnOXSaxbTXuLxQ12NxXbuJLUDpI4AbAhoh+
SvRcPt8RuAZeemoc+xJBzpVca3PZmBXROKwcTSbaLbXXRq2VJ+80C7mRtZ1F5hUn
Cijo945DIJjhw5rJM2vio/uSR8wEBmadFzQgUT0qU3eZDD5+BYAN7Qb//ZVB50gI
Y3pb+jZCvuTyL30Ezp7ll4JPnh5FPZi8zCMh05whfhRGrSHbG/r4B1joCYqjxB+j
5Wqj3QD5hKkGhwB7leXwGRGCTJqtpP5BjLyQhWpPWf0Q0X+qx/+A+yILZFRyC61M
EjhLK1nZEvX5OI3aSEOsrQOuuXVzFQ==
=wJ/u
-----END PGP SIGNATURE-----payloadX@  tree c80fa63b310b83344312405679a130f79bda9511
parent f61cd54f592c7cc810086c4c7eeea2e3e4c1993a
parent b38d46f704c08520dfa0a1ca08490060a2f1ba00
author Ahmed Alouane <aalouane@palantir.com> 1680618081 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1680618081 +0100

Merge branch 'develop' into roomba/update-conjure
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/22a576599c6a371b0a1f2ff63627b0e12da32768html_urlShttps://github.com/palantir/atlasdb/commit/22a576599c6a371b0a1f2ff63627b0e12da32768comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/22a576599c6a371b0a1f2ff63627b0e12da32768/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j  ergo14j  Jj  MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j  h5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14j  -https://api.github.com/users/ergo14/followersj  :https://api.github.com/users/ergo14/following{/other_user}j  3https://api.github.com/users/ergo14/gists{/gist_id}j  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j  1https://api.github.com/users/ergo14/subscriptionsj  (https://api.github.com/users/ergo14/orgsj  )https://api.github.com/users/ergo14/reposj  4https://api.github.com/users/ergo14/events{/privacy}j  3https://api.github.com/users/ergo14/received_eventsj  Userj  uparents](}(j  (f61cd54f592c7cc810086c4c7eeea2e3e4c1993aj  ^https://api.github.com/repos/palantir/atlasdb/commits/f61cd54f592c7cc810086c4c7eeea2e3e4c1993aj  Shttps://github.com/palantir/atlasdb/commit/f61cd54f592c7cc810086c4c7eeea2e3e4c1993au}(j  (b38d46f704c08520dfa0a1ca08490060a2f1ba00j  ^https://api.github.com/repos/palantir/atlasdb/commits/b38d46f704c08520dfa0a1ca08490060a2f1ba00j  Shttps://github.com/palantir/atlasdb/commit/b38d46f704c08520dfa0a1ca08490060a2f1ba00uestats}(totalK	additionsK	deletionsKufiles](}(j  (b4ee017980d3bf2f40b872865df3d113ba69f56bfilenamegatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RunOnceWorkflowRunner.javastatusmodifiedj#  Kj$  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/22a576599c6a371b0a1f2ff63627b0e12da32768/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRunOnceWorkflowRunner.javaraw_urlhttps://github.com/palantir/atlasdb/raw/22a576599c6a371b0a1f2ff63627b0e12da32768/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRunOnceWorkflowRunner.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRunOnceWorkflowRunner.java?ref=22a576599c6a371b0a1f2ff63627b0e12da32768patchXy  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
@@ -36,5 +37,6 @@ public void run(Workflow workflow, List<InvariantReporter<?>> invariants) {
                 log.error("Caught an exception when running and reporting an invariant.", e);
             }
         });
+        log.info("Dumping transaction log {}", SafeArg.of("transactionLog", workflowHistory.history()));
     }
 }u}(j  (f9527e173d1407deb811ea00448699afa0a4afd1j)  iatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/server/RunOnceWorkflowRunnerTest.javaj+  modifiedj#  Kj$  K j-  Kj.  https://github.com/palantir/atlasdb/blob/22a576599c6a371b0a1f2ff63627b0e12da32768/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.javaj0  https://github.com/palantir/atlasdb/raw/22a576599c6a371b0a1f2ff63627b0e12da32768/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.java?ref=22a576599c6a371b0a1f2ff63627b0e12da32768j4  X  @@ -20,17 +20,21 @@
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
 import com.palantir.atlasdb.workload.workflow.RunOnceWorkflowRunner;
 import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import java.util.List;
 import org.junit.Test;
 
 public class RunOnceWorkflowRunnerTest {
     @Test
     public void runExecutesWorkflowsAndInvokesInvariantReporter() {
         Workflow exampleWorkflow = mock(Workflow.class);
+        WorkflowHistory workflowHistory = mock(WorkflowHistory.class);
+        when(exampleWorkflow.run()).thenReturn(workflowHistory);
         InvariantReporter<Void> exampleInvariantReporterOne = mock(InvariantReporter.class);
         InvariantReporter<Void> exampleInvariantReporterTwo = mock(InvariantReporter.class);
         RunOnceWorkflowRunner.INSTANCE.run(u}(j  (2ba6283c07674f48446c8ddfba713981b3636d9ej)  build.gradlej+  modifiedj#  Kj$  Kj-  Kj.  ^https://github.com/palantir/atlasdb/blob/22a576599c6a371b0a1f2ff63627b0e12da32768/build.gradlej0  ]https://github.com/palantir/atlasdb/raw/22a576599c6a371b0a1f2ff63627b0e12da32768/build.gradlej2  phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=22a576599c6a371b0a1f2ff63627b0e12da32768j4  Xz  @@ -15,7 +15,7 @@ buildscript {
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:2.0.0'
-        classpath 'com.palantir.gradle.jdks:gradle-jdks:0.31.0'
+        classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'ueu(6f0f7c5849e31c772989b9565d870a5ba17cd721}(sha(6f0f7c5849e31c772989b9565d870a5ba17cd721node_idEC_kwDOAjP5fdoAKDZmMGY3YzU4NDllMzFjNzcyOTg5Yjk1NjVkODcwYTViYTE3Y2Q3MjEcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-03-03T16:14:56Zu	committer}(jP  svc-autoreleasejR  -pd-foundry-infrastructure-notify@palantir.comjT  2023-03-03T16:14:56ZumessageAutorelease 0.808.0

[skip ci]tree}(jH  (156b5bf5f57a92ab18cfb7e38172e76d739e6981url`https://api.github.com/repos/palantir/atlasdb/git/trees/156b5bf5f57a92ab18cfb7e38172e76d739e6981uj`  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6f0f7c5849e31c772989b9565d870a5ba17cd721
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQCHQUACgkQhbrR8ip7mDC+XQEAoKDoJkBRacmdn6+ZCy3hbziZ
QgQ8rPpOiyr5mBj7lQwA/3dyguPfdykxw9Y9V++cfYjtkZYOL4fS1U9z/1IEPZKi
=XYEQ
-----END PGP SIGNATURE-----
payloadX0  tree 156b5bf5f57a92ab18cfb7e38172e76d739e6981
parent 11c0372a2ef5cc0a08a598332eeec7d1ee336d2e
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1677860096 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1677860096 +0000

Autorelease 0.808.0

[skip ci]uuj`  ^https://api.github.com/repos/palantir/atlasdb/commits/6f0f7c5849e31c772989b9565d870a5ba17cd721html_urlShttps://github.com/palantir/atlasdb/commit/6f0f7c5849e31c772989b9565d870a5ba17cd721comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6f0f7c5849e31c772989b9565d870a5ba17cd721/commentsjN  }(loginsvc-autoreleaseidJ(jJ  MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j`  ,https://api.github.com/users/svc-autoreleasejn  "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminujV  }(js  svc-autoreleaseju  J(jJ  MDQ6VXNlcjUxNzE4MzQ2jw  4https://avatars.githubusercontent.com/u/51718346?v=4jy  h5j`  ,https://api.github.com/users/svc-autoreleasejn  "https://github.com/svc-autoreleasej|  6https://api.github.com/users/svc-autorelease/followersj~  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j  :https://api.github.com/users/svc-autorelease/subscriptionsj  1https://api.github.com/users/svc-autorelease/orgsj  2https://api.github.com/users/svc-autorelease/reposj  =https://api.github.com/users/svc-autorelease/events{/privacy}j  <https://api.github.com/users/svc-autorelease/received_eventsj  Userj  uparents]}(jH  (11c0372a2ef5cc0a08a598332eeec7d1ee336d2ej`  ^https://api.github.com/repos/palantir/atlasdb/commits/11c0372a2ef5cc0a08a598332eeec7d1ee336d2ejn  Shttps://github.com/palantir/atlasdb/commit/11c0372a2ef5cc0a08a598332eeec7d1ee336d2euastats}(totalK 	additionsK 	deletionsK ufiles]}(jH  (65ffe362769b62fe351cbc6ceac4acd99f1d9599filename changelog/0.808.0/pr-6461.v2.ymlstatusrenamedj  K j  K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/6f0f7c5849e31c772989b9565d870a5ba17cd721/changelog%2F0.808.0%2Fpr-6461.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/6f0f7c5849e31c772989b9565d870a5ba17cd721/changelog%2F0.808.0%2Fpr-6461.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.808.0%2Fpr-6461.v2.yml?ref=6f0f7c5849e31c772989b9565d870a5ba17cd721previous_filename$changelog/@unreleased/pr-6461.v2.ymluau(d6a9a63936550a66d2605f3138b5102e2b28d9c4}(sha(d6a9a63936550a66d2605f3138b5102e2b28d9c4node_idEC_kwDOAjP5fdoAKGQ2YTlhNjM5MzY1NTBhNjZkMjYwNWYzMTM4YjUxMDJlMmIyOGQ5YzQcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-13T10:09:49Zu	committer}(j  	Tom Papkej  tpapke@palantir.comj  2023-06-13T10:09:49ZumessageSpotlesstree}(j  (eac1a0b57a20e14600f313e53fe0eca65ee22cccurl`https://api.github.com/repos/palantir/atlasdb/git/trees/eac1a0b57a20e14600f313e53fe0eca65ee22cccuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d6a9a63936550a66d2605f3138b5102e2b28d9c4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSIQG0ACgkQmF9s0kaF
Iw3UwQf/Y8Iog9sj+zRuloqYWi7d3GW8t9WWQU0/kFGhTXdNhV70A7Tzgs2v6qNI
RyueWCS3WdNoXLo4d+2+lP7fJhoSqZmqbCn6xWydpRP5c3BPMwktk5rVGqYXtTHG
1EUqGV/7N3O69cnppPgjSCh4TO1IVjxVJAyFfIGXU7HGn07U1acefYBeOlA0tWTh
DBCWNL+3pAMiGH9JFXMNfx2cHnkukQt9Ba5MkrrRClE+I4nwo2qJp2TvCveu7a+b
BxiEiBr8xnr/0VVsdWWsMQ+uFA+nW8F7jFneiZdSz3RRD3V9zjbaXgAwphRxUPMq
qEXPbp+vFdXP5xMWV2t8Vj31RfZ+9Q==
=wg1X
-----END PGP SIGNATURE-----payloadtree eac1a0b57a20e14600f313e53fe0eca65ee22ccc
parent cc0e2043daa0a73be841f2b0f18444037e257928
author Tom Papke <tpapke@palantir.com> 1686650989 +0100
committer Tom Papke <tpapke@palantir.com> 1686650989 +0100

Spotless
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/d6a9a63936550a66d2605f3138b5102e2b28d9c4html_urlShttps://github.com/palantir/atlasdb/commit/d6a9a63936550a66d2605f3138b5102e2b28d9c4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d6a9a63936550a66d2605f3138b5102e2b28d9c4/commentsj  }(login	ToemmscheidJboj  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj  }(j  	Toemmschej  Jboj  MDQ6VXNlcjQzNjc1NDkwj  4https://avatars.githubusercontent.com/u/43675490?v=4j  h5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmschej  0https://api.github.com/users/Toemmsche/followersj  =https://api.github.com/users/Toemmsche/following{/other_user}j  6https://api.github.com/users/Toemmsche/gists{/gist_id}j  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j  4https://api.github.com/users/Toemmsche/subscriptionsj  +https://api.github.com/users/Toemmsche/orgsj  ,https://api.github.com/users/Toemmsche/reposj  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj  Userj  uparents]}(j  (cc0e2043daa0a73be841f2b0f18444037e257928j  ^https://api.github.com/repos/palantir/atlasdb/commits/cc0e2043daa0a73be841f2b0f18444037e257928j  Shttps://github.com/palantir/atlasdb/commit/cc0e2043daa0a73be841f2b0f18444037e257928uastats}(totalK	additionsK	deletionsKufiles]}(j  (1a7579f9c47bf04460c294483de9d0120fb63956filenameRlock-impl/src/test/java/com/palantir/lock/impl/ThreadAwareLockServiceImplTest.javastatusmodifiedj!  Kj"  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/d6a9a63936550a66d2605f3138b5102e2b28d9c4/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d6a9a63936550a66d2605f3138b5102e2b28d9c4/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.java?ref=d6a9a63936550a66d2605f3138b5102e2b28d9c4patchX,  @@ -196,8 +196,7 @@ public void recordsUnlockReadLock() throws InterruptedException {
                 .lockAsManyAsPossible()
                 .withCreatingThreadName(TEST_THREAD_1)
                 .build();
-        LockResponse response =
-                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest);
+        LockResponse response = lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest);
         lockService.unlock(response.getToken());
 
         // WE know that the lock is not being held at the momentuau(11c0372a2ef5cc0a08a598332eeec7d1ee336d2e}(sha(11c0372a2ef5cc0a08a598332eeec7d1ee336d2enode_idEC_kwDOAjP5fdoAKDExYzAzNzJhMmVmNWNjMGEwOGE1OTgzMzJlZWVjN2QxZWUzMzZkMmUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-03-03T16:14:49Zu	committer}(j>  GitHubj@  noreply@github.comjB  2023-03-03T16:14:49ZumessageX  [PDS-335555] getRange() and Friends Return Unwanted Columns From Local Writes (#6461)

All versions of `getRange()` and `getRanges()` now correctly longer include locally written columns that do not match the provided `ColumnSelection` in their `RowResult`s.tree}(j6  (3fbafaa2fe35696659b8f9bb07d98c5db45b9e66url`https://api.github.com/repos/palantir/atlasdb/git/trees/3fbafaa2fe35696659b8f9bb07d98c5db45b9e66ujN  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/11c0372a2ef5cc0a08a598332eeec7d1ee336d2e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkAhz5CRBK7hj4Ov3rIwAAfaIIACy3NfqD3PekXywHT88LaZWs
6rt/mPR5adIBSwnLp9lws27BioXCFOLQklfeXhQwTc+dvOzx89OaO/ARuBiKigF/
055Lw4xU1CDcE1jV8+fxRPK14tXELmnpJ8g+ArcxB+2GeWLwrrOlYHd/5PKfQ/+1
R5o1GPlT26R7YzVYjP/CII4OT7hUeh9mF5XR0cPPxvhNwLTam8NuXLN4CjTvUABd
Us01tGKKctb8RuwuL0eowmm2YvUbq/156E4fWW8E7JFTtqTCWrsO2EEIJrSE0vmB
621OvHDT6/roQE8OYvDFTwutsDmIa/6eXDCrht22emwMm5QepdWjIs+aAAjah74=
=5rE/
-----END PGP SIGNATURE-----
payloadX  tree 3fbafaa2fe35696659b8f9bb07d98c5db45b9e66
parent adfdc27938ed1206ec6eeeea0432d20daa58a5b8
author Jeremy Kong <jkong@palantir.com> 1677860089 +0000
committer GitHub <noreply@github.com> 1677860089 +0000

[PDS-335555] getRange() and Friends Return Unwanted Columns From Local Writes (#6461)

All versions of `getRange()` and `getRanges()` now correctly longer include locally written columns that do not match the provided `ColumnSelection` in their `RowResult`s.
uujN  ^https://api.github.com/repos/palantir/atlasdb/commits/11c0372a2ef5cc0a08a598332eeec7d1ee336d2ehtml_urlShttps://github.com/palantir/atlasdb/commit/11c0372a2ef5cc0a08a598332eeec7d1ee336d2ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/11c0372a2ef5cc0a08a598332eeec7d1ee336d2e/commentsj<  }(login
jeremyk-91idJZ j8  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jN  'https://api.github.com/users/jeremyk-91j\  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujD  }(ja  web-flowjc  J/j8  MDQ6VXNlcjE5ODY0NDQ3je  4https://avatars.githubusercontent.com/u/19864447?v=4jg  h5jN  %https://api.github.com/users/web-flowj\  https://github.com/web-flowjj  /https://api.github.com/users/web-flow/followersjl  <https://api.github.com/users/web-flow/following{/other_user}jn  5https://api.github.com/users/web-flow/gists{/gist_id}jp  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jr  3https://api.github.com/users/web-flow/subscriptionsjt  *https://api.github.com/users/web-flow/orgsjv  +https://api.github.com/users/web-flow/reposjx  6https://api.github.com/users/web-flow/events{/privacy}jz  5https://api.github.com/users/web-flow/received_eventsj|  Userj~  uparents]}(j6  (adfdc27938ed1206ec6eeeea0432d20daa58a5b8jN  ^https://api.github.com/repos/palantir/atlasdb/commits/adfdc27938ed1206ec6eeeea0432d20daa58a5b8j\  Shttps://github.com/palantir/atlasdb/commit/adfdc27938ed1206ec6eeeea0432d20daa58a5b8uastats}(totalKc	additionsK^	deletionsKufiles](}(j6  (1d726d79fa9f2724d395decf58d13c95485d7677filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj  K
j  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/11c0372a2ef5cc0a08a598332eeec7d1ee336d2e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/11c0372a2ef5cc0a08a598332eeec7d1ee336d2e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=11c0372a2ef5cc0a08a598332eeec7d1ee336d2epatchX|  @@ -157,6 +157,7 @@
 import java.util.Optional;
 import java.util.Set;
 import java.util.SortedMap;
+import java.util.SortedSet;
 import java.util.TreeMap;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ConcurrentMap;
@@ -1160,7 +1161,7 @@ private List<Map.Entry<Cell, byte[]>> getPostFilteredWithLocalWrites(
                 postFiltered.entrySet(),
                 Predicates.compose(Predicates.in(prePostFilterCells.keySet()), MapEntries.getKeyFunction()));
         Collection<Map.Entry<Cell, byte[]>> localWritesInRange = getLocalWritesForRange(
-                        tableRef, rangeRequest.getStartInclusive(), endRowExclusive)
+                        tableRef, rangeRequest.getStartInclusive(), endRowExclusive, rangeRequest.getColumnNames())
                 .entrySet();
         return mergeInLocalWrites(
                 tableRef, postFilteredCells.iterator(), localWritesInRange.iterator(), rangeRequest.isReverse());
@@ -1198,9 +1199,9 @@ private <K extends Exception> boolean getBatchingVisitableFromIterator(
             throws K {
         try (ClosableIterator<RowResult<byte[]>> postFilterIterator =
                 postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
-            Iterator<RowResult<byte[]>> localWritesInRange = Cells.createRowView(
-                    getLocalWritesForRange(tableRef, range.getStartInclusive(), range.getEndExclusive())
-                            .entrySet());
+            Iterator<RowResult<byte[]>> localWritesInRange = Cells.createRowView(getLocalWritesForRange(
+                            tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
+                    .entrySet());
             Iterator<RowResult<byte[]>> mergeIterators =
                     mergeInLocalWritesRows(postFilterIterator, localWritesInRange, range.isReverse(), tableRef);
             return BatchingVisitableFromIterable.create(mergeIterators).batchAccept(userRequestedSize, visitor);
@@ -1316,15 +1317,22 @@ private ConcurrentNavigableMap<Cell, byte[]> getLocalWrites(TableReference table
 
     /**
      * This includes deleted writes as zero length byte arrays, be sure to strip them out.
+     *
+     * For the selectedColumns parameter, empty set means all columns. This is unfortunate, but follows the semantics of
+     * {@link RangeRequest}.
      */
-    private SortedMap<Cell, byte[]> getLocalWritesForRange(TableReference tableRef, byte[] startRow, byte[] endRow) {
+    private SortedMap<Cell, byte[]> getLocalWritesForRange(
+            TableReference tableRef, byte[] startRow, byte[] endRow, SortedSet<byte[]> selectedColumns) {
         SortedMap<Cell, byte[]> writes = getLocalWrites(tableRef);
         if (startRow.length != 0) {
             writes = writes.tailMap(Cells.createSmallestCellForRow(startRow));
         }
         if (endRow.length != 0) {
             writes = writes.headMap(Cells.createSmallestCellForRow(endRow));
         }
+        if (!selectedColumns.isEmpty()) {
+            writes = Maps.filterKeys(writes, cell -> selectedColumns.contains(cell.getColumnName()));
+        }
         return writes;
     }
 u}(j6  (66779380c83f5cb8ac2fd50cd7bc8d6f740296fej  eatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractTransactionTest.javaj  modifiedj  KJj  K j  KJj  https://github.com/palantir/atlasdb/blob/11c0372a2ef5cc0a08a598332eeec7d1ee336d2e/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.javaj  https://github.com/palantir/atlasdb/raw/11c0372a2ef5cc0a08a598332eeec7d1ee336d2e/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.java?ref=11c0372a2ef5cc0a08a598332eeec7d1ee336d2ej  X5  @@ -29,6 +29,7 @@
 import com.google.common.collect.Multimap;
 import com.google.common.collect.Multimaps;
 import com.google.common.collect.Ordering;
+import com.google.common.collect.Streams;
 import com.google.common.io.BaseEncoding;
 import com.google.common.primitives.UnsignedBytes;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -74,6 +75,7 @@
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Random;
 import java.util.Set;
 import java.util.SortedMap;
@@ -688,6 +690,78 @@ public void testRangesTransactionColumnSelection() {
         verifyAllGetRangesImplsRangeSizes(tx, range3, 0);
     }
 
+    @Test
+    public void getRangeRetainsOnlyRelevantColumnsFromLocalWrites() {
+        byte[] row = "row".getBytes(StandardCharsets.UTF_8);
+        byte[] firstColumn = "jakub".getBytes(StandardCharsets.UTF_8);
+        byte[] secondColumn = "james".getBytes(StandardCharsets.UTF_8);
+        byte[] thirdColumn = "jeremy".getBytes(StandardCharsets.UTF_8);
+        byte[] fourthColumn = "jolyon".getBytes(StandardCharsets.UTF_8);
+        Cell firstCell = Cell.create(row, firstColumn);
+        Cell secondCell = Cell.create(row, secondColumn);
+        Cell thirdCell = Cell.create(row, thirdColumn);
+        Cell fourthCell = Cell.create(row, fourthColumn);
+        byte[] value = new byte[1];
+
+        Transaction firstTransaction = startTransaction();
+        firstTransaction.put(TEST_TABLE, ImmutableMap.of(firstCell, value, fourthCell, value));
+        firstTransaction.commit();
+
+        Transaction secondTransaction = startTransaction();
+        secondTransaction.put(TEST_TABLE, ImmutableMap.of(secondCell, value, thirdCell, value));
+
+        BatchingVisitable<RowResult<byte[]>> rowResults = secondTransaction.getRange(
+                TEST_TABLE,
+                RangeRequest.builder()
+                        .retainColumns(ImmutableSet.of(firstColumn, secondColumn))
+                        .build());
+        List<Cell> cellsRead = BatchingVisitables.copyToList(rowResults).stream()
+                .map(RowResult::getCells)
+                .flatMap(Streams::stream)
+                .map(Entry::getKey)
+                .collect(Collectors.toList());
+        assertThat(cellsRead).containsExactly(firstCell, secondCell);
+    }
+
+    @Test
+    public void deprecatedGetRangesRetainsOnlyRelevantColumnsFromLocalWrites() {
+        byte[] row = "row".getBytes(StandardCharsets.UTF_8);
+        byte[] firstColumn = "jack".getBytes(StandardCharsets.UTF_8);
+        byte[] secondColumn = "jill".getBytes(StandardCharsets.UTF_8);
+        byte[] thirdColumn = "joel".getBytes(StandardCharsets.UTF_8);
+        byte[] fourthColumn = "juliet".getBytes(StandardCharsets.UTF_8);
+        Cell firstCell = Cell.create(row, firstColumn);
+        Cell secondCell = Cell.create(row, secondColumn);
+        Cell thirdCell = Cell.create(row, thirdColumn);
+        Cell fourthCell = Cell.create(row, fourthColumn);
+        byte[] value = new byte[1];
+
+        Transaction firstTransaction = startTransaction();
+        firstTransaction.put(TEST_TABLE, ImmutableMap.of(firstCell, value, fourthCell, value));
+        firstTransaction.commit();
+
+        Transaction secondTransaction = startTransaction();
+        secondTransaction.put(TEST_TABLE, ImmutableMap.of(secondCell, value, thirdCell, value));
+
+        Iterable<BatchingVisitable<RowResult<byte[]>>> visitables = secondTransaction.getRanges(
+                TEST_TABLE,
+                ImmutableList.of(
+                        RangeRequest.builder()
+                                .retainColumns(ImmutableSet.of(firstColumn))
+                                .build(),
+                        RangeRequest.builder()
+                                .retainColumns(ImmutableSet.of(secondColumn))
+                                .build()));
+        List<Cell> cellsRead = Streams.stream(visitables)
+                .map(BatchingVisitables::copyToList)
+                .flatMap(List::stream)
+                .map(RowResult::getCells)
+                .flatMap(Streams::stream)
+                .map(Entry::getKey)
+                .collect(Collectors.toList());
+        assertThat(cellsRead).containsExactly(firstCell, secondCell);
+    }
+
     @Test
     public void testRangePaging() {
         int totalPuts = 101;u}(j6  (65ffe362769b62fe351cbc6ceac4acd99f1d9599j  $changelog/@unreleased/pr-6461.v2.ymlj  addedj  Kj  K j  Kj  |https://github.com/palantir/atlasdb/blob/11c0372a2ef5cc0a08a598332eeec7d1ee336d2e/changelog%2F%40unreleased%2Fpr-6461.v2.ymlj  {https://github.com/palantir/atlasdb/raw/11c0372a2ef5cc0a08a598332eeec7d1ee336d2e/changelog%2F%40unreleased%2Fpr-6461.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6461.v2.yml?ref=11c0372a2ef5cc0a08a598332eeec7d1ee336d2ej  X&  @@ -0,0 +1,7 @@
+type: fix
+fix:
+  description: All versions of `getRange()` and `getRanges()` now correctly no longer
+    include locally written columns that do not match the provided `ColumnSelection`
+    in their `RowResult`s.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6461ueu(ca179137d4337835bf2d666f412d8069c37db941}(sha(ca179137d4337835bf2d666f412d8069c37db941node_idEC_kwDOAjP5fdoAKGNhMTc5MTM3ZDQzMzc4MzViZjJkNjY2ZjQxMmQ4MDY5YzM3ZGI5NDEcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-06-29T16:34:42Zu	committer}(j  
svc-changelogj  svc-changelog@palantir.comj  2023-06-29T16:34:42ZumessageAdd generated changelog entriestree}(j  (7419e30465699861de065b2745e202273d54702curl`https://api.github.com/repos/palantir/atlasdb/git/trees/7419e30465699861de065b2745e202273d54702cuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ca179137d4337835bf2d666f412d8069c37db941
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSdsqIJEHYaJX37fAFQAAAgEwD9Ea0WYmqoME0+4xaovSKBXas6
G3CXTZgF2QHTGJ0IhxsBALmHu4GLmYYHD4iACNJ96Nknmh5ZNox3ibRhgVKpAQeE
=Kol5
-----END PGP SIGNATURE-----payloadX  tree 7419e30465699861de065b2745e202273d54702c
parent 249f2dbb05c8f805af4aeaded7a2c5c096126281
author svc-changelog <svc-changelog@palantir.com> 1688056482 +0000
committer svc-changelog <svc-changelog@palantir.com> 1688056482 +0000

Add generated changelog entriesuuj  ^https://api.github.com/repos/palantir/atlasdb/commits/ca179137d4337835bf2d666f412d8069c37db941html_urlShttps://github.com/palantir/atlasdb/commit/ca179137d4337835bf2d666f412d8069c37db941comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ca179137d4337835bf2d666f412d8069c37db941/commentsj  }(login
svc-changelogidJ#j  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j  *https://api.github.com/users/svc-changelogj   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj  }(j  
svc-changelogj  J#j  MDQ6VXNlcjg0MDc3NjAzj  4https://avatars.githubusercontent.com/u/84077603?v=4j  h5j  *https://api.github.com/users/svc-changelogj   https://github.com/svc-changelogj  4https://api.github.com/users/svc-changelog/followersj  Ahttps://api.github.com/users/svc-changelog/following{/other_user}j  :https://api.github.com/users/svc-changelog/gists{/gist_id}j  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j  8https://api.github.com/users/svc-changelog/subscriptionsj  /https://api.github.com/users/svc-changelog/orgsj  0https://api.github.com/users/svc-changelog/reposj  ;https://api.github.com/users/svc-changelog/events{/privacy}j  :https://api.github.com/users/svc-changelog/received_eventsj  Userj  uparents]}(j  (249f2dbb05c8f805af4aeaded7a2c5c096126281j  ^https://api.github.com/repos/palantir/atlasdb/commits/249f2dbb05c8f805af4aeaded7a2c5c096126281j  Shttps://github.com/palantir/atlasdb/commit/249f2dbb05c8f805af4aeaded7a2c5c096126281uastats}(totalK	additionsK	deletionsK ufiles]}(j  (59a104ba72569b4dfd00ae8626fea6e626f1cc19filename$changelog/@unreleased/pr-6647.v2.ymlstatusaddedj  Kj   K changesKblob_url|https://github.com/palantir/atlasdb/blob/ca179137d4337835bf2d666f412d8069c37db941/changelog%2F%40unreleased%2Fpr-6647.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/ca179137d4337835bf2d666f412d8069c37db941/changelog%2F%40unreleased%2Fpr-6647.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6647.v2.yml?ref=ca179137d4337835bf2d666f412d8069c37db941patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add LockMetadata to IdentifiedLockRequest'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6647uau(f3ecd61f0655f7e2a8aea603f10f91731ac46c50}(sha(f3ecd61f0655f7e2a8aea603f10f91731ac46c50node_idEC_kwDOAjP5fdoAKGYzZWNkNjFmMDY1NWY3ZTJhOGFlYTYwM2YxMGY5MTczMWFjNDZjNTAcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T15:57:10Zu	committer}(j<  
Ahmed Alouanej>  aalouane@palantir.comj@  2023-05-15T15:57:10Zumessagexlargetree}(j4  (ea9cda3a76cbc11642c364d9e3f4e93d6a3d63cfurl`https://api.github.com/repos/palantir/atlasdb/git/trees/ea9cda3a76cbc11642c364d9e3f4e93d6a3d63cfujL  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f3ecd61f0655f7e2a8aea603f10f91731ac46c50
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiVlYACgkQPlMHVIT1
yhqSWQf/fm7zBDXH1orbDTli8KuRGULrrb+0A169fgh3vmrOZoqlmgkpi4uZceKr
XaGLpwkQNG113Kv49HOpFmcs4YRm8uUtxQ8fZ4i/jH+tWUMKYHQn0rnAgNLJ3kuA
s4GT8tGwon+PIRKg8Lv1s6nix2sJErLjVoT7KzSP6zbblYNN9bY+KMnKsRnw81eE
dnlNrMpFL6ltpHBbNZvI4RpymMAJy5Pc2/wvQyKGUVtO8SFy60vK8PxMuhkm2fn2
XESIlg17xK2hea7I5xj6OZiIOrNS2YeKlGnzmdENIAV46eT5vbbLYhmB5ZrHRWhu
0wNCsTGLhB04xiiOVOg4UcKvSNetWA==
=4oDx
-----END PGP SIGNATURE-----payloadtree ea9cda3a76cbc11642c364d9e3f4e93d6a3d63cf
parent 4b82f40527535a0c95dc0e8fd507fd2bb1ab5414
author Ahmed Alouane <aalouane@palantir.com> 1684166230 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684166230 +0100

xlarge
uujL  ^https://api.github.com/repos/palantir/atlasdb/commits/f3ecd61f0655f7e2a8aea603f10f91731ac46c50html_urlShttps://github.com/palantir/atlasdb/commit/f3ecd61f0655f7e2a8aea603f10f91731ac46c50comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f3ecd61f0655f7e2a8aea603f10f91731ac46c50/commentsj:  }(loginergo14idJj6  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jL  #https://api.github.com/users/ergo14jZ  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujB  }(j_  ergo14ja  Jj6  MDQ6VXNlcjMwOTAzNzM2jc  4https://avatars.githubusercontent.com/u/30903736?v=4je  h5jL  #https://api.github.com/users/ergo14jZ  https://github.com/ergo14jh  -https://api.github.com/users/ergo14/followersjj  :https://api.github.com/users/ergo14/following{/other_user}jl  3https://api.github.com/users/ergo14/gists{/gist_id}jn  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jp  1https://api.github.com/users/ergo14/subscriptionsjr  (https://api.github.com/users/ergo14/orgsjt  )https://api.github.com/users/ergo14/reposjv  4https://api.github.com/users/ergo14/events{/privacy}jx  3https://api.github.com/users/ergo14/received_eventsjz  Userj|  uparents]}(j4  (4b82f40527535a0c95dc0e8fd507fd2bb1ab5414jL  ^https://api.github.com/repos/palantir/atlasdb/commits/4b82f40527535a0c95dc0e8fd507fd2bb1ab5414jZ  Shttps://github.com/palantir/atlasdb/commit/4b82f40527535a0c95dc0e8fd507fd2bb1ab5414uastats}(totalK	additionsK	deletionsKufiles]}(j4  (c1941f00cc81dcd9de1430a4e856c07b5ecc3f4dfilename.circleci/config.ymlstatusmodifiedj  Kj  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/f3ecd61f0655f7e2a8aea603f10f91731ac46c50/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/f3ecd61f0655f7e2a8aea603f10f91731ac46c50/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=f3ecd61f0655f7e2a8aea603f10f91731ac46c50patchX  @@ -105,7 +105,7 @@ jobs:
   deploy:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: 2xlarge
+    resource_class: xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"uau(cbd23bf30e8761e6f0e2acaf6616f2c588663b4e}(sha(cbd23bf30e8761e6f0e2acaf6616f2c588663b4enode_idEC_kwDOAjP5fdoAKGNiZDIzYmYzMGU4NzYxZTZmMGUyYWNhZjY2MTZmMmM1ODg2NjNiNGUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T23:34:53Zu	committer}(j  
Ahmed Alouanej  aalouane@palantir.comj  2023-05-15T23:34:53Zumessagewow2tree}(j  (1a8d23a305d93ecda5ff6e406b4451905587f3dcurl`https://api.github.com/repos/palantir/atlasdb/git/trees/1a8d23a305d93ecda5ff6e406b4451905587f3dcuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cbd23bf30e8761e6f0e2acaf6616f2c588663b4e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiwZ0ACgkQPlMHVIT1
yhoA2gf/Z9mf7vmpojafEilNCZfzXeBqRl84LhGccf3FG+9q3S4CAcHXs3mS6vdJ
43Nv4qQ5A/zwZISvYoiUZmFCe3CikkSQSeZGG3J9oSJlFSNrr1bpk3y0lf/72TBf
kzOuwbD9QFggwK3yli5TSJNQyf971V5kh2xqop7dB5LkJZyz2ae9pAvkyH4DUXMr
uBnC6Fpw0jcPSmTNJC9uD96xVPu+ZpG3ynjC1xkbRkLC+GcrI81LVDGCN05fq7db
4XdCops2/xEiKL/Pndj0oCI/1lastUq6GM1d6KLVBDH9hBBAhmkBUDMKJL9yS+zw
Cf6Rg7mElKb2pdPEpHlBWwa2QVXQSg==
=Y59y
-----END PGP SIGNATURE-----payloadtree 1a8d23a305d93ecda5ff6e406b4451905587f3dc
parent f251b1b52d36a14f81512930b9200b695d77602b
author Ahmed Alouane <aalouane@palantir.com> 1684193693 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684193693 +0100

wow2
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/cbd23bf30e8761e6f0e2acaf6616f2c588663b4ehtml_urlShttps://github.com/palantir/atlasdb/commit/cbd23bf30e8761e6f0e2acaf6616f2c588663b4ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cbd23bf30e8761e6f0e2acaf6616f2c588663b4e/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j  ergo14j  Jj  MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j  h5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14j  -https://api.github.com/users/ergo14/followersj  :https://api.github.com/users/ergo14/following{/other_user}j  3https://api.github.com/users/ergo14/gists{/gist_id}j  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j  1https://api.github.com/users/ergo14/subscriptionsj  (https://api.github.com/users/ergo14/orgsj  )https://api.github.com/users/ergo14/reposj  4https://api.github.com/users/ergo14/events{/privacy}j  3https://api.github.com/users/ergo14/received_eventsj  Userj  uparents]}(j  (f251b1b52d36a14f81512930b9200b695d77602bj  ^https://api.github.com/repos/palantir/atlasdb/commits/f251b1b52d36a14f81512930b9200b695d77602bj  Shttps://github.com/palantir/atlasdb/commit/f251b1b52d36a14f81512930b9200b695d77602buastats}(totalK	additionsK	deletionsKufiles]}(j  (b3cace9def88416e367abf262164bf79f1bdf07afilename.circleci/config.ymlstatusmodifiedj
  Kj  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/cbd23bf30e8761e6f0e2acaf6616f2c588663b4e/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/cbd23bf30e8761e6f0e2acaf6616f2c588663b4e/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=cbd23bf30e8761e6f0e2acaf6616f2c588663b4epatchX  @@ -105,7 +105,7 @@ jobs:
   deploy:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: 2xlarge
+    resource_class: 2xlarge+
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"uau(6e38c8ea72f414ed9cfbc6f983bf24f1c62e9123}(sha(6e38c8ea72f414ed9cfbc6f983bf24f1c62e9123node_idEC_kwDOAjP5fdoAKDZlMzhjOGVhNzJmNDE0ZWQ5Y2ZiYzZmOTgzYmYyNGYxYzYyZTkxMjMcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-03-21T20:08:54Zu	committer}(j*  
svc-changelogj,  svc-changelog@palantir.comj.  2023-03-21T20:08:54ZumessageAdd generated changelog entriestree}(j"  (78d53e9410b39a3d5eaa51027c4e1c98cce019e2url`https://api.github.com/repos/palantir/atlasdb/git/trees/78d53e9410b39a3d5eaa51027c4e1c98cce019e2uj:  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6e38c8ea72f414ed9cfbc6f983bf24f1c62e9123
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQaDtYJEHYaJX37fAFQAADgFQEA3OVu6YPpdtmf6/js76jEkLv6
/EE0VJDsjLZOtQReJvkBANhE8jr/92iLebNc1uRPiZACI62mv6FCQtMOr23jz9G2
=HzNb
-----END PGP SIGNATURE-----payloadX  tree 78d53e9410b39a3d5eaa51027c4e1c98cce019e2
parent 1639a589a121cbf2ccf20b142889554ffef8ae59
author svc-changelog <svc-changelog@palantir.com> 1679429334 +0000
committer svc-changelog <svc-changelog@palantir.com> 1679429334 +0000

Add generated changelog entriesuuj:  ^https://api.github.com/repos/palantir/atlasdb/commits/6e38c8ea72f414ed9cfbc6f983bf24f1c62e9123html_urlShttps://github.com/palantir/atlasdb/commit/6e38c8ea72f414ed9cfbc6f983bf24f1c62e9123comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6e38c8ea72f414ed9cfbc6f983bf24f1c62e9123/commentsj(  }(login
svc-changelogidJ#j$  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j:  *https://api.github.com/users/svc-changelogjH   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj0  }(jM  
svc-changelogjO  J#j$  MDQ6VXNlcjg0MDc3NjAzjQ  4https://avatars.githubusercontent.com/u/84077603?v=4jS  h5j:  *https://api.github.com/users/svc-changelogjH   https://github.com/svc-changelogjV  4https://api.github.com/users/svc-changelog/followersjX  Ahttps://api.github.com/users/svc-changelog/following{/other_user}jZ  :https://api.github.com/users/svc-changelog/gists{/gist_id}j\  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j^  8https://api.github.com/users/svc-changelog/subscriptionsj`  /https://api.github.com/users/svc-changelog/orgsjb  0https://api.github.com/users/svc-changelog/reposjd  ;https://api.github.com/users/svc-changelog/events{/privacy}jf  :https://api.github.com/users/svc-changelog/received_eventsjh  Userjj  uparents]}(j"  (1639a589a121cbf2ccf20b142889554ffef8ae59j:  ^https://api.github.com/repos/palantir/atlasdb/commits/1639a589a121cbf2ccf20b142889554ffef8ae59jH  Shttps://github.com/palantir/atlasdb/commit/1639a589a121cbf2ccf20b142889554ffef8ae59uastats}(totalK	additionsK	deletionsK ufiles]}(j"  (7fca922baa74b0bfb3f5fa02e40ca04009e818a0filename$changelog/@unreleased/pr-6476.v2.ymlstatusaddedj  Kj  K changesKblob_url|https://github.com/palantir/atlasdb/blob/6e38c8ea72f414ed9cfbc6f983bf24f1c62e9123/changelog%2F%40unreleased%2Fpr-6476.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/6e38c8ea72f414ed9cfbc6f983bf24f1c62e9123/changelog%2F%40unreleased%2Fpr-6476.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6476.v2.yml?ref=6e38c8ea72f414ed9cfbc6f983bf24f1c62e9123patch@@ -0,0 +1,8 @@
+type: improvement
+improvement:
+  description: |-
+    PDS-344883 abusive-telemetry
+
+    RC only
+  links:
+  - https://github.com/palantir/atlasdb/pull/6476uau(26939f22390efb844f368c0d121b43f2e2ca8098}(sha(26939f22390efb844f368c0d121b43f2e2ca8098node_idEC_kwDOAjP5fdoAKDI2OTM5ZjIyMzkwZWZiODQ0ZjM2OGMwZDEyMWI0M2YyZTJjYTgwOTgcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-08T20:28:31Zu	committer}(j  	Tom Papkej  tpapke@palantir.comj  2023-06-09T08:40:04ZumessageXk  Add background runner to periodically collect snapshots of which locks is held by which client-thread

The runner is OFF by default and cannot be turned on.

Although ScheduledExecutorService is preferred, we use Thread.sleep() since Atlas creates very custom executors. Any change of executors should be considered thoroughly and is out of scope for this change.tree}(j  (a475866dd76e24f3ab76cbfd14acd4e40a5eef54url`https://api.github.com/repos/palantir/atlasdb/git/trees/a475866dd76e24f3ab76cbfd14acd4e40a5eef54uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/26939f22390efb844f368c0d121b43f2e2ca8098
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSC5WQACgkQmF9s0kaF
Iw34lgf9GUNwuOBI893HonHSr9PXSM0lMQRMGSXi30a1N0hoyw6GHgxYy/4LF0Bl
gMJStt63B9KMWbAxSdkuYCiO4faNQp12RqphcXh/o2mAQYTfCA8+ImdDP0TW0iMe
86HyRDxe3vLsflY4NFe49c8aJdqOckPAgw6ycH/65oSFYnWeXscwStQGGgYAM3YX
qg6XRyddoaAL39doG9iNEts1sMz1ujcLkKwe/0DcAfc0HdU8ZwpPztMp+Fyz483T
YEF5Cy8RoAbjtDkmi0IdRGki55vRlXMnMJzoRaS7+JfYLs3pKloLhZa4ixA8Gq7U
87wnfJcgMfGJnWS+PA0oX1bLcFQCAQ==
=hxQN
-----END PGP SIGNATURE-----payloadX>  tree a475866dd76e24f3ab76cbfd14acd4e40a5eef54
parent acdd8b440cf16a635a7163ab8e533e4576073ab9
author Tom Papke <tpapke@palantir.com> 1686256111 +0100
committer Tom Papke <tpapke@palantir.com> 1686300004 +0100

Add background runner to periodically collect snapshots of which locks is held by which client-thread

The runner is OFF by default and cannot be turned on.

Although ScheduledExecutorService is preferred, we use Thread.sleep() since Atlas creates very custom executors. Any change of executors should be considered thoroughly and is out of scope for this change.
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/26939f22390efb844f368c0d121b43f2e2ca8098html_urlShttps://github.com/palantir/atlasdb/commit/26939f22390efb844f368c0d121b43f2e2ca8098comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/26939f22390efb844f368c0d121b43f2e2ca8098/commentsj  }(login	ToemmscheidJboj  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj  }(j  	Toemmschej  Jboj  MDQ6VXNlcjQzNjc1NDkwj  4https://avatars.githubusercontent.com/u/43675490?v=4j  h5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmsche<     j  0https://api.github.com/users/Toemmsche/followersj  =https://api.github.com/users/Toemmsche/following{/other_user}j  6https://api.github.com/users/Toemmsche/gists{/gist_id}j  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j  4https://api.github.com/users/Toemmsche/subscriptionsj  +https://api.github.com/users/Toemmsche/orgsj  ,https://api.github.com/users/Toemmsche/reposj  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj  Userj  uparents]}(j  (acdd8b440cf16a635a7163ab8e533e4576073ab9j  ^https://api.github.com/repos/palantir/atlasdb/commits/acdd8b440cf16a635a7163ab8e533e4576073ab9j  Shttps://github.com/palantir/atlasdb/commit/acdd8b440cf16a635a7163ab8e533e4576073ab9uastats}(totalM	additionsM	deletionsKufiles](}(j  (3b441dbd865c7df09441584db7b96f597bbe7b90filenameKlock-api-objects/src/main/java/com/palantir/lock/ThreadAwareLockClient.javastatusaddedj  K(j  K changesK(blob_urlhttps://github.com/palantir/atlasdb/blob/26939f22390efb844f368c0d121b43f2e2ca8098/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareLockClient.javaraw_urlhttps://github.com/palantir/atlasdb/raw/26939f22390efb844f368c0d121b43f2e2ca8098/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareLockClient.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareLockClient.java?ref=26939f22390efb844f368c0d121b43f2e2ca8098patchXO  @@ -0,0 +1,40 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import javax.annotation.Nullable;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@SuppressWarnings("ClassInitializationDeadlock")
+public interface ThreadAwareLockClient {
+
+    ThreadAwareLockClient UNKNOWN = ThreadAwareLockClient.of(LockClient.ANONYMOUS, "");
+
+    @Nullable
+    LockClient client();
+
+    String requestingThread();
+
+    static ImmutableThreadAwareLockClient.Builder builder() {
+        return ImmutableThreadAwareLockClient.builder();
+    }
+
+    static ThreadAwareLockClient of(LockClient client, String requestingThread) {
+        return builder().client(client).requestingThread(requestingThread).build();
+    }
+}u}(j  (7697b630d78f13f67067d61108fc527897b63663j  Mlock-api/src/main/java/com/palantir/lock/ThreadAwareCloseableLockService.javaj  addedj  K j  K j  K j  https://github.com/palantir/atlasdb/blob/26939f22390efb844f368c0d121b43f2e2ca8098/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareCloseableLockService.javaj  https://github.com/palantir/atlasdb/raw/26939f22390efb844f368c0d121b43f2e2ca8098/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareCloseableLockService.javaj
  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareCloseableLockService.java?ref=26939f22390efb844f368c0d121b43f2e2ca8098j  X  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import java.util.Map;
+
+public interface ThreadAwareCloseableLockService extends CloseableLockService {
+
+    /**
+     * This is a debugging-only method providing a good-effort guess for which lock is currently held
+     * by which client thread.
+     * This guess is likely based on significantly out-of-date information (as old as a few seconds).
+     * Lock descriptors without a mapping (or mapped to null) are assumed to be free at the moment.
+     * The {@link ThreadAwareLockClient#UNKNOWN} sentinel value signals that we cannot provide any information about
+     * which thread currently owns the lock.
+     */
+    Map<LockDescriptor, ThreadAwareLockClient> getLastKnownThreadInfoSnapshot();
+}u}(j  (11798108f5011933229198de0ecd0a9b6b828e68j  lock-impl/build.gradlej  modifiedj  Kj  K j  Kj  jhttps://github.com/palantir/atlasdb/blob/26939f22390efb844f368c0d121b43f2e2ca8098/lock-impl%2Fbuild.gradlej  ihttps://github.com/palantir/atlasdb/raw/26939f22390efb844f368c0d121b43f2e2ca8098/lock-impl%2Fbuild.gradlej
  |https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fbuild.gradle?ref=26939f22390efb844f368c0d121b43f2e2ca8098j  Xb  @@ -22,6 +22,7 @@ dependencies {
   implementation project(':lock-api-objects')
   implementation project(':timestamp-api')
 
+  testImplementation 'org.awaitility:awaitility'
   testImplementation 'com.fasterxml.jackson.core:jackson-databind'
   testImplementation 'com.google.guava:guava'
   testImplementation 'com.palantir.safe-logging:preconditions'u}(j  (5b34540ee68f5dfc3c353220539c7cb5df3e6777j  Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj  modifiedj  Kdj  Kj  Krj  https://github.com/palantir/atlasdb/blob/26939f22390efb844f368c0d121b43f2e2ca8098/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj  https://github.com/palantir/atlasdb/raw/26939f22390efb844f368c0d121b43f2e2ca8098/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj
  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=26939f22390efb844f368c0d121b43f2e2ca8098j  X"  @@ -26,9 +26,11 @@
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.MoreObjects;
 import com.google.common.base.Preconditions;
+import com.google.common.base.Strings;
 import com.google.common.collect.Collections2;
 import com.google.common.collect.HashMultimap;
 import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.ImmutableSortedMap;
 import com.google.common.collect.Iterables;
@@ -70,6 +72,8 @@
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.SortedLockCollection;
 import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.ThreadAwareCloseableLockService;
+import com.palantir.lock.ThreadAwareLockClient;
 import com.palantir.lock.TimeDuration;
 import com.palantir.lock.logger.LockServiceStateLogger;
 import com.palantir.logsafe.Safe;
@@ -92,6 +96,7 @@
 import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.BlockingQueue;
@@ -104,6 +109,7 @@
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicInteger;
 import java.util.function.Supplier;
+import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 import javax.annotation.concurrent.ThreadSafe;
@@ -117,6 +123,7 @@
 @ThreadSafe
 public final class LockServiceImpl
         implements LockService,
+                ThreadAwareCloseableLockService,
                 CloseableRemoteLockService,
                 CloseableLockService,
                 RemoteLockService,
@@ -140,6 +147,8 @@ public final class LockServiceImpl
     @VisibleForTesting
     static final long DEBUG_SLOW_LOG_TRIGGER_MILLIS = 100;
 
+    public static boolean COLLECT_AND_LOG_THREAD_INFO = true;
+
     @Immutable
     public static class HeldLocks<T extends ExpiringToken> {
         final T realToken;
@@ -181,6 +190,21 @@ public String toString() {
     private final SimpleTimeDuration maxAllowedClockDrift;
     private final SimpleTimeDuration maxNormalLockAge;
     private final SimpleTimeDuration stuckTransactionTimeout;
+
+    /** Whether or not to run a background task that periodically takes snapshot of which lock owned by which client-thread */
+    private final boolean collectThreadInfo;
+
+    /** If enabled, the background this will update the snapshot at this rate */
+    private final SimpleTimeDuration threadInfoSnapshotInterval;
+
+    /** If enabled, the background runner that takes snapshots of the current lock state */
+    private final Optional<ThreadInfoSnapshotRunner> threadInfoSnapshotRunner;
+
+    /**
+     * A relatively consistent snapshot of which lock is currently owned by which client-thread
+     */
+    private volatile Map<LockDescriptor, ThreadAwareLockClient> lastKnownThreadInfoSnapshot = ImmutableMap.of();
+
     private final AtomicBoolean isShutDown = new AtomicBoolean(false);
 
     private final LockClientIndices clientIndices = new LockClientIndices();
@@ -256,6 +280,11 @@ private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable
         this.maxNormalLockAge = SimpleTimeDuration.of(options.getMaxNormalLockAge());
         this.stuckTransactionTimeout = SimpleTimeDuration.of(options.getStuckTransactionTimeout());
         this.slowLogTriggerMillis = options.slowLogTriggerMillis();
+
+        // thread info collection is off by default
+        this.collectThreadInfo = false;
+        this.threadInfoSnapshotInterval = SimpleTimeDuration.of(5, TimeUnit.SECONDS);
+        this.threadInfoSnapshotRunner = Optional.empty();
     }
 
     private HeldLocksToken createHeldLocksToken(
@@ -1227,6 +1256,40 @@ public long currentTimeMillis() {
         return System.currentTimeMillis();
     }
 
+    @Override
+    public Map<LockDescriptor, ThreadAwareLockClient> getLastKnownThreadInfoSnapshot() {
+        return this.lastKnownThreadInfoSnapshot;
+    }
+
+    private void updateThreadInfoSnapshotIndefinitely() {
+        while (true) {
+            updateThreadInfoSnapshot();
+            // For benchmarking purposes, we want to retain the ability to run the background task at full load
+            if (threadInfoSnapshotInterval.toMillis() > 0) {
+                try {
+                    Thread.sleep(threadInfoSnapshotInterval.toMillis());
+                } catch (InterruptedException e) {
+                    break;
+                }
+            }
+        }
+    }
+
+    @VisibleForTesting
+    void updateThreadInfoSnapshot() {
+        this.lastKnownThreadInfoSnapshot = heldLocksTokenMap.keySet().stream()
+                .flatMap(token -> {
+                    ThreadAwareLockClient threadAwareLockClient =
+                            token.getClient() == null || Strings.isNullOrEmpty(token.getRequestingThread())
+                                    ? ThreadAwareLockClient.UNKNOWN
+                                    : ThreadAwareLockClient.of(token.getClient(), token.getRequestingThread());
+                    return token.getLockDescriptors().stream()
+                            .map(lockDescriptor -> Map.entry(lockDescriptor, threadAwareLockClient));
+                })
+                // Although a lock can be held by multiple clients/threads, we only remember one to save space
+                .collect(Collectors.toMap(Entry::getKey, Entry::getValue, (existing, replacement) -> existing));
+    }
+
     private static String updateThreadName(LockRequest request) {
         String currentThreadName = Thread.currentThread().getName();
         tryRenameThread(
@@ -1246,12 +1309,31 @@ private static String tokenToId(HeldLocksToken from) {
         return from.getTokenId().toString(Character.MAX_RADIX);
     }
 
-    private final class LockReapRunner implements AutoCloseable {
-        private final Ownable<ExecutorService> executor;
-        private final List<Future<?>> taskFutures;
+    private abstract static class LockServiceRunner implements AutoCloseable {
+        protected final Ownable<ExecutorService> executor;
+        protected List<Future<?>> taskFutures;
 
-        private LockReapRunner(Ownable<ExecutorService> executor) {
+        protected LockServiceRunner(Ownable<ExecutorService> executor) {
             this.executor = executor;
+        }
+
+        @Override
+        public void close() {
+            if (executor.isOwned()) {
+                executor.resource().shutdownNow();
+            } else {
+                // Even if we don't own the executor, these ordinarily run infinitely, and so MUST be interrupted.
+                // It's not enough to simply guard each iteration, because there are calls to blocking methods that may
+                // block infinitely if no further requests come in.
+                taskFutures.forEach(future -> future.cancel(true));
+            }
+        }
+    }
+
+    private final class LockReapRunner extends LockServiceRunner {
+
+        private LockReapRunner(Ownable<ExecutorService> executor) {
+            super(executor);
 
             Future<Void> tokenReaperFuture = executor.resource().submit(() -> {
                 ThreadNames.setThreadName(Thread.currentThread(), "Held Locks Token Reaper");
@@ -1265,17 +1347,21 @@ private LockReapRunner(Ownable<ExecutorService> executor) {
             });
             this.taskFutures = ImmutableList.of(tokenReaperFuture, grantReaperFuture);
         }
+    }
 
-        @Override
-        public void close() {
-            if (executor.isOwned()) {
-                executor.resource().shutdownNow();
-            } else {
-                // Even if we don't own the executor, these ordinarily run infinitely, and so MUST be interrupted.
-                // It's not enough to simply guard each iteration, because there are calls to blocking methods that may
-                // block infinitely if no further requests come in.
-                taskFutures.forEach(future -> future.cancel(true));
-            }
+    private final class ThreadInfoSnapshotRunner extends LockServiceRunner {
+
+        // TODO Remove this suppression once the background runner can be enabled via configuration.
+        @SuppressWarnings("UnusedMethod")
+        private ThreadInfoSnapshotRunner(Ownable<ExecutorService> executor) {
+            super(executor);
+
+            Future<Void> holdingThreadUpdaterFuture = executor.resource().submit(() -> {
+                ThreadNames.setThreadName(Thread.currentThread(), "Holding Thread Updater");
+                updateThreadInfoSnapshotIndefinitely();
+                return null;
+            });
+            this.taskFutures = ImmutableList.of(holdingThreadUpdaterFuture);
         }
     }
 }u}(j  (c6c926d8406a47af5e71083c803aaa054da83fdcj  Rlock-impl/src/test/java/com/palantir/lock/impl/ThreadAwareLockServiceImplTest.javaj  addedj  Mj  K j  Mj  https://github.com/palantir/atlasdb/blob/26939f22390efb844f368c0d121b43f2e2ca8098/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.javaj  https://github.com/palantir/atlasdb/raw/26939f22390efb844f368c0d121b43f2e2ca8098/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.javaj
  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.java?ref=26939f22390efb844f368c0d121b43f2e2ca8098j  X2  @@ -0,0 +1,273 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSortedMap;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.lock.LockClient;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.LockMode;
+import com.palantir.lock.LockRequest;
+import com.palantir.lock.LockResponse;
+import com.palantir.lock.LockServerOptions;
+import com.palantir.lock.SimpleTimeDuration;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.ThreadAwareLockClient;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.concurrent.Callable;
+import java.util.concurrent.CyclicBarrier;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Future;
+import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.awaitility.Awaitility;
+import org.junit.Test;
+
+public class ThreadAwareLockServiceImplTest {
+
+    // Disable background thread info collection by default, it will be invoked manually instead
+    private final LockServiceImpl lockService = LockServiceImpl.create(
+            LockServerOptions.builder().isStandaloneServer(false).build());
+
+    private final ExecutorService executor =
+            PTExecutors.newCachedThreadPool(ThreadAwareLockServiceImplTest.class.getName());
+
+    private static final LockDescriptor TEST_LOCK_1 = StringLockDescriptor.of("lock-1");
+    private static final LockDescriptor TEST_LOCK_2 = StringLockDescriptor.of("lock-2");
+    private static final LockDescriptor TEST_LOCK_3 = StringLockDescriptor.of("lock-3");
+
+    private static final String TEST_THREAD_1 = "thread-1";
+    private static final String TEST_THREAD_2 = "thread-2";
+    private static final String TEST_THREAD_3 = "thread-3";
+
+    private static final LockClient TEST_LOCK_CLIENT = LockClient.ANONYMOUS;
+
+    @Test
+    public void initialSnapShotIsEmpty() {
+        lockService.updateThreadInfoSnapshot();
+        assertThat(lockService.getLastKnownThreadInfoSnapshot()).isEmpty();
+    }
+
+    @Test
+    public void collectsHeldLocks_singleLock() throws InterruptedException {
+        LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+
+        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest);
+        lockService.updateThreadInfoSnapshot();
+
+        assertThat(lockService.getLastKnownThreadInfoSnapshot())
+                .containsExactly(Map.entry(TEST_LOCK_1, ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_1)));
+    }
+
+    @Test
+    public void collectsHeldLocks_multipleUniqueLocks_fromDifferentThreads() throws InterruptedException {
+        final int numThreads = 10;
+        final int numLocksPerThread = 10;
+
+        List<String> threadNames =
+                IntStream.range(0, numThreads).mapToObj(i -> "test-thread-" + i).collect(Collectors.toList());
+        Map<String, List<LockDescriptor>> locksPerThread = new HashMap<>();
+        for (String threadName : threadNames) {
+            List<LockDescriptor> locks = IntStream.range(0, numLocksPerThread)
+                    .mapToObj(i -> StringLockDescriptor.of("test-lock-" + i + "-from-thread-" + threadName))
+                    .collect(Collectors.toList());
+            locksPerThread.put(threadName, locks);
+        }
+
+        for (String threadName : threadNames) {
+            LockRequest lockRequest = LockRequest.builder(
+                            ImmutableSortedMap.copyOf(locksPerThread.get(threadName).stream()
+                                    .collect(Collectors.toMap(lock -> lock, lock -> LockMode.WRITE))))
+                    .withCreatingThreadName(threadName)
+                    .build();
+            lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest);
+        }
+        lockService.updateThreadInfoSnapshot();
+
+        Map<LockDescriptor, ThreadAwareLockClient> expected = locksPerThread.keySet().stream()
+                .flatMap(threadName -> locksPerThread.get(threadName).stream()
+                        .map(lock -> Map.entry(lock, ThreadAwareLockClient.of(TEST_LOCK_CLIENT, threadName))))
+                .collect(Collectors.toMap(Entry::getKey, Entry::getValue));
+        assertThat(lockService.getLastKnownThreadInfoSnapshot()).containsExactlyInAnyOrderEntriesOf(expected);
+    }
+
+    @Test
+    public void collectsHeldLocks_sharedLock_fromDifferentThreads() throws InterruptedException {
+        LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+        LockRequest lockRequest2 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .doNotBlock()
+                .lockAsManyAsPossible()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest1);
+        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest2);
+        lockService.updateThreadInfoSnapshot();
+
+        assertThat(lockService.getLastKnownThreadInfoSnapshot())
+                .hasSize(1)
+                .containsAnyOf(
+                        Map.entry(TEST_LOCK_1, ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_1)),
+                        Map.entry(TEST_LOCK_1, ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_2)));
+    }
+
+    @Test
+    public void doesNotCollectDroppedLocksWithLockAllOrNone() throws InterruptedException {
+        LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+
+        // T2 cannot get lock 1 -> grouping behavior LOCK_ALL_OR_NONE will release lock 2, even though it could have
+        // been locked
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
+                .doNotBlock()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest1);
+        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest2);
+        lockService.updateThreadInfoSnapshot();
+
+        assertThat(lockService.getLastKnownThreadInfoSnapshot())
+                .containsExactly(Map.entry(TEST_LOCK_1, ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_1)));
+    }
+
+    @Test
+    public void doesNotCollectUnlockedLocks() throws InterruptedException {
+        LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+
+        LockResponse response = lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest);
+        lockService.unlock(response.getLockRefreshToken());
+        lockService.updateThreadInfoSnapshot();
+
+        assertThat(lockService.getLastKnownThreadInfoSnapshot()).isEmpty();
+    }
+
+    @Test
+    public void doesNotCollectFailedLocks() throws InterruptedException {
+        LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+        LockRequest lockRequest2 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+                .doNotBlock()
+                .lockAsManyAsPossible()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        LockResponse response = lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest1);
+        // should fail to acquire lock
+        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest2);
+        // After unlocking locks of T1, no more locks should be held by any thread
+        lockService.unlock(response.getLockRefreshToken());
+        lockService.updateThreadInfoSnapshot();
+
+        assertThat(lockService.getLastKnownThreadInfoSnapshot()).isEmpty();
+    }
+
+    @Test
+    public void collectsCorrectStateAfterMultipleOperations() throws Exception {
+        final CyclicBarrier barrier = new CyclicBarrier(2);
+
+        // T1 locks 1 exclusively and locks 2 in shared mode
+        LockResponse response1 = lockService.lockWithFullLockResponse(
+                TEST_LOCK_CLIENT,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_1)
+                        .build());
+
+        // T2 won't get lock 1, but locks 3 in exclusive mode,
+        LockResponse response2 = lockService.lockWithFullLockResponse(
+                TEST_LOCK_CLIENT,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_3, LockMode.WRITE))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_2)
+                        .build());
+
+        executor.submit((Callable<Void>) () -> {
+
+            // T3 will wait 5 seconds to lock 1 in exclusive mode and lock 2 in shared mode
+            LockResponse response3 = lockService.lockWithFullLockResponse(
+                    TEST_LOCK_CLIENT,
+                    LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                            .blockForAtMost(SimpleTimeDuration.of(5, TimeUnit.SECONDS))
+                            .lockAsManyAsPossible()
+                            .withCreatingThreadName(TEST_THREAD_3)
+                            .build());
+            barrier.await();
+            return null;
+        });
+        lockService.unlock(response1.getLockRefreshToken());
+        barrier.await();
+
+        lockService.updateThreadInfoSnapshot();
+
+        // Now T1 should hold nothing, T2 holds 3 in exclusive mode, T3 holds 1 in exclusive and 2 in shared mode
+        Map<LockDescriptor, ThreadAwareLockClient> expected = ImmutableMap.of(
+                TEST_LOCK_1,
+                ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_3),
+                TEST_LOCK_2,
+                ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_3),
+                TEST_LOCK_3,
+                ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_2));
+
+        assertThat(lockService.getLastKnownThreadInfoSnapshot()).containsExactlyInAnyOrderEntriesOf(expected);
+    }
+
+    @Test
+    public void backgroundCollectionWorks() throws InterruptedException {
+        // TODO this simulates the running background snapshotting task and should be replaced with the creation of a
+        // properly configured LockServiceImpl once everything has been wired together
+        Future<Void> future = executor.submit(() -> {
+            while (true) {
+                lockService.updateThreadInfoSnapshot();
+                Thread.sleep(100);
+            }
+        });
+
+        LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest);
+
+        Awaitility.await("wait for background runner to take a snapshot")
+                .atMost(500, TimeUnit.MILLISECONDS)
+                .untilAsserted(() -> {
+                    assertThat(lockService.getLastKnownThreadInfoSnapshot())
+                            .containsExactly(
+                                    Map.entry(TEST_LOCK_1, ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_1)));
+                });
+
+        future.cancel(true);
+    }
+}ueu(07dbddc26a4e1e887680e563318e33867a4a306b}(sha(07dbddc26a4e1e887680e563318e33867a4a306bnode_idEC_kwDOAjP5fdoAKDA3ZGJkZGMyNmE0ZTFlODg3NjgwZTU2MzMxOGUzMzg2N2E0YTMwNmIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-11T15:02:22Zu	committer}(j8  Jeremy Kongj:  jkong@palantir.comj<  2023-04-11T15:02:22Zumessage	primitivetree}(j0  (4b3913e1191151cc0827065781f37ede91876815url`https://api.github.com/repos/palantir/atlasdb/git/trees/4b3913e1191151cc0827065781f37ede91876815ujH  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/07dbddc26a4e1e887680e563318e33867a4a306b
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ1dn4ACgkQTLdFKain
zjyNcQf/Wwbm1YWWheVaML2vAEXcfwLddgD5NKHBSKGbUJJqdcndmCZZYuJ2bE/E
tcqDhEKMDfRUGzycunJXvzQ0Q+cvcrGA6F06xQc85QzfFrT64gUL/jHTVK9nGG3t
3bsYNZBKxBG5Kq1PX4oy31bdveHzPVXXy4z0tVJjPQBhjTHRXc6PajvKNt4IKZSI
Kwhe4gCq7GDrWx8Q2JnEiYZ2dOyGHp3Fb/fsbbudwtDoTg17ITewAMI0BgQLWDm5
5Jn8g/YUvm38PJ5l/GpDHy/gZ31JcA92Epx6iS5FISjaLu/p/aUEJH9MYA5xQAF/
dinQZAlbCrQIabzrV7bpE/32VSCxyw==
=qDhX
-----END PGP SIGNATURE-----payloadtree 4b3913e1191151cc0827065781f37ede91876815
parent faee9535bb8690539f0a6906dd0a1923d17288c7
author Jeremy Kong <jkong@palantir.com> 1681225342 +0800
committer Jeremy Kong <jkong@palantir.com> 1681225342 +0800

primitive
uujH  ^https://api.github.com/repos/palantir/atlasdb/commits/07dbddc26a4e1e887680e563318e33867a4a306bhtml_urlShttps://github.com/palantir/atlasdb/commit/07dbddc26a4e1e887680e563318e33867a4a306bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/07dbddc26a4e1e887680e563318e33867a4a306b/commentsj6  }(login
jeremyk-91idJZ j2  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jH  'https://api.github.com/users/jeremyk-91jV  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj>  }(j[  
jeremyk-91j]  JZ j2  MDQ6VXNlcjU5NTU1MTA=j_  3https://avatars.githubusercontent.com/u/5955510?v=4ja  h5jH  'https://api.github.com/users/jeremyk-91jV  https://github.com/jeremyk-91jd  1https://api.github.com/users/jeremyk-91/followersjf  >https://api.github.com/users/jeremyk-91/following{/other_user}jh  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jj  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jl  5https://api.github.com/users/jeremyk-91/subscriptionsjn  ,https://api.github.com/users/jeremyk-91/orgsjp  -https://api.github.com/users/jeremyk-91/reposjr  8https://api.github.com/users/jeremyk-91/events{/privacy}jt  7https://api.github.com/users/jeremyk-91/received_eventsjv  Userjx  uparents]}(j0  (faee9535bb8690539f0a6906dd0a1923d17288c7jH  ^https://api.github.com/repos/palantir/atlasdb/commits/faee9535bb8690539f0a6906dd0a1923d17288c7jV  Shttps://github.com/palantir/atlasdb/commit/faee9535bb8690539f0a6906dd0a1923d17288c7uastats}(totalK	additionsK	deletionsKufiles]}(j0  (1c4f4967f8030a70b7a15f69299a4d00bafe675ffilenameZtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimestampManagementResource.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/07dbddc26a4e1e887680e563318e33867a4a306b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampManagementResource.javaraw_urlhttps://github.com/palantir/atlasdb/raw/07dbddc26a4e1e887680e563318e33867a4a306b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampManagementResource.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampManagementResource.java?ref=07dbddc26a4e1e887680e563318e33867a4a306bpatchX,  @@ -29,7 +29,7 @@
 import io.undertow.util.Headers;
 import java.io.IOException;
 import java.nio.charset.StandardCharsets;
-import java.util.Optional;
+import java.util.OptionalLong;
 import javax.annotation.CheckReturnValue;
 import javax.annotation.meta.When;
 import javax.ws.rs.DefaultValue;
@@ -64,7 +64,7 @@ public void fastForwardTimestamp(
                     @QueryParam("currentTimestamp")
                     @DefaultValue(SENTINEL_TIMESTAMP_STRING)
                     @Handle.QueryParam(value = "currentTimestamp")
-                    Optional<Long> currentTimestamp) {
+                    OptionalLong currentTimestamp) {
         long timestampToUse = currentTimestamp.orElse(SENTINEL_TIMESTAMP);
         getTimestampManagementService(namespace).fastForwardTimestamp(timestampToUse);
     }uau(e45e38fcb00916552ae4ab6fffcc4276b8256363}(sha(e45e38fcb00916552ae4ab6fffcc4276b8256363node_idEC_kwDOAjP5fdoAKGU0NWUzOGZjYjAwOTE2NTUyYWU0YWI2ZmZmY2M0Mjc2YjgyNTYzNjMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-11T15:05:59Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-05-11T15:05:59ZumessageTMerge remote-tracking branch 'origin/develop' into skramer/bouncy-values-and-buggifytree}(j  (5371fde54c4eba757e9a90a1da2182f2faaf3d93url`https://api.github.com/repos/palantir/atlasdb/git/trees/5371fde54c4eba757e9a90a1da2182f2faaf3d93uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e45e38fcb00916552ae4ab6fffcc4276b8256363
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRdBFkACgkQTLdFKain
zjxI+AgA4G1m4TDJMNFOd2c4eFkEEFNflJUrge2ABDj7BUr+eKwRLIYnS/6TsuHx
qpcy7SuHaepRsSx0r/O0lhRhcq8+Qc90pnY6LbZo3PaUopp3BkuAFeWKB0sIIGXq
REPUZA2RwdfWlYnxQe/Csj10LK2wx0dgM054FtF+952JNrznStjHpsXWQxp+Ak+9
BW48PIOOR+GHtXo7/f3gGsjNqE3HLIXGNxBDwK1JqLUy4OOFEs8tJie3L1bNyBeV
CEh9FAZA3ne/vS5bQaFS1HfNA+A8eQe/IZQzV2Tjj+AQjwkqa1IlDk4LG5ZjNASZ
kZMywbLCCueVPRHDVXwKEaNRFOGP3g==
=SMby
-----END PGP SIGNATURE-----payloadXY  tree 5371fde54c4eba757e9a90a1da2182f2faaf3d93
parent 04475e557117461d9d9cbed1725979320971e2c8
parent 50e05491daed01d64ec4867ce2176b153629246b
author Jeremy Kong <jkong@palantir.com> 1683817559 +0100
committer Jeremy Kong <jkong@palantir.com> 1683817559 +0100

Merge remote-tracking branch 'origin/develop' into skramer/bouncy-values-and-buggify
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/e45e38fcb00916552ae4ab6fffcc4276b8256363html_urlShttps://github.com/palantir/atlasdb/commit/e45e38fcb00916552ae4ab6fffcc4276b8256363comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e45e38fcb00916552ae4ab6fffcc4276b8256363/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j  
jeremyk-91j  JZ j  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents](}(j  (04475e557117461d9d9cbed1725979320971e2c8j  ^https://api.github.com/repos/palantir/atlasdb/commits/04475e557117461d9d9cbed1725979320971e2c8j  Shttps://github.com/palantir/atlasdb/commit/04475e557117461d9d9cbed1725979320971e2c8u}(j  (50e05491daed01d64ec4867ce2176b153629246bj  ^https://api.github.com/repos/palantir/atlasdb/commits/50e05491daed01d64ec4867ce2176b153629246bj  Shttps://github.com/palantir/atlasdb/commit/50e05491daed01d64ec4867ce2176b153629246buestats}(totalK	additionsK	deletionsK!ufiles](}(j  (d8f732c3615aaed89bbf22d2dd57bf2198b25723filename.policy.ymlstatusmodifiedj
	  Kj	  KchangesKblob_url]https://github.com/palantir/atlasdb/blob/e45e38fcb00916552ae4ab6fffcc4276b8256363/.policy.ymlraw_url\https://github.com/palantir/atlasdb/raw/e45e38fcb00916552ae4ab6fffcc4276b8256363/.policy.ymlcontents_urlohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=e45e38fcb00916552ae4ab6fffcc4276b8256363patchX(  @@ -20,21 +20,21 @@ approval_rules:
       allow_contributor: false
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: two admins have approved
     options:
       allow_contributor: true
     requires:
       count: 2
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: changelog only and contributor approval
     options:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       only_changed_files:
         paths:
@@ -45,7 +45,7 @@ approval_rules:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       has_author_in:
         users: [ "svc-excavator-bot" ]u}(j  (b4b3fdb6c8a3dbc046c441a7d9341e93b8857c14j	  Katlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/Buggify.javaj	  modifiedj
	  Kj	  K j	  Kj	  https://github.com/palantir/atlasdb/blob/e45e38fcb00916552ae4ab6fffcc4276b8256363/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaj	  https://github.com/palantir/atlasdb/raw/e45e38fcb00916552ae4ab6fffcc4276b8256363/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaj	  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.java?ref=e45e38fcb00916552ae4ab6fffcc4276b8256363j	  X  @@ -22,6 +22,8 @@
  * downstream users of this class can easily swap out their {@link BuggifyFactory} to change the behavior of their
  * class, without having to change the implementation of their class. This is useful for tests, as we can force the
  * behavior of never running the provided runnable, or always running the provided runnable.
+ * <p>
+ * See https://apple.github.io/foundationdb/client-testing.html for more information.
  */
 public interface Buggify {
     /**u}(j  (0ed48b1c56bc0efc8ac5be656900e3c3a38c67faj	  Ratlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/BuggifyFactory.javaj	  modifiedj
	  Kj	  Kj	  Kj	  https://github.com/palantir/atlasdb/blob/e45e38fcb00916552ae4ab6fffcc4276b8256363/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj	  https://github.com/palantir/atlasdb/raw/e45e38fcb00916552ae4ab6fffcc4276b8256363/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj	  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.java?ref=e45e38fcb00916552ae4ab6fffcc4276b8256363j	  X  @@ -18,7 +18,7 @@
 
 public interface BuggifyFactory {
     /**
-     * A Buggify instance that may or may not perform any actions.
+     * The probability of returning a buggify instance which performs actions.
      */
     Buggify maybe(double probability);
 }u}(j  (c3bbf92469d211a6ab5bde05cefaaba784549d49j	  Zatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactory.javaj	  modifiedj
	  Kj	  Kj	  Kj	  https://github.com/palantir/atlasdb/blob/e45e38fcb00916552ae4ab6fffcc4276b8256363/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj	  https://github.com/palantir/atlasdb/raw/e45e38fcb00916552ae4ab6fffcc4276b8256363/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj	  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.java?ref=e45e38fcb00916552ae4ab6fffcc4276b8256363j	  X  @@ -20,17 +20,17 @@
 import com.palantir.atlasdb.buggify.api.Buggify;
 import com.palantir.atlasdb.buggify.api.BuggifyFactory;
 import java.security.SecureRandom;
-import java.util.function.Supplier;
+import java.util.function.DoubleSupplier;
 
 public final class DefaultBuggifyFactory implements BuggifyFactory {
     private static final SecureRandom SECURE_RANDOM = new SecureRandom();
     public static final BuggifyFactory INSTANCE = new DefaultBuggifyFactory();
 
-    private final Supplier<Double> probabilitySupplier;
+    private final DoubleSupplier doubleSupplier;
 
     @VisibleForTesting
-    DefaultBuggifyFactory(Supplier<Double> probabilitySupplier) {
-        this.probabilitySupplier = probabilitySupplier;
+    DefaultBuggifyFactory(DoubleSupplier doubleSupplier) {
+        this.doubleSupplier = doubleSupplier;
     }
 
     private DefaultBuggifyFactory() {
@@ -39,9 +39,9 @@ private DefaultBuggifyFactory() {
 
     @Override
     public Buggify maybe(double probability) {
-        if (probability <= probabilitySupplier.get()) {
-            return NoOpBuggify.INSTANCE;
+        if (doubleSupplier.getAsDouble() < probability) {
+            return DefaultBuggify.INSTANCE;
         }
-        return DefaultBuggify.INSTANCE;
+        return NoOpBuggify.INSTANCE;
     }
 }u}(j  (2f200762a9c587bece4b4f26652a9d0c930bba0ej	  ^atlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactoryTest.javaj	  modifiedj
	  Kj	  Kj	  Kj	  https://github.com/palantir/atlasdb/blob/e45e38fcb00916552ae4ab6fffcc4276b8256363/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj	  https://github.com/palantir/atlasdb/raw/e45e38fcb00916552ae4ab6fffcc4276b8256363/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj	  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.java?ref=e45e38fcb00916552ae4ab6fffcc4276b8256363j	  @@ -20,7 +20,7 @@
 
 import org.junit.Test;
 
-public final class DefaultBuggifyFactoryTest {
+public class DefaultBuggifyFactoryTest {
 
     @Test
     public void maybeReturnsDefaultWhenMaxProbability() {u}(j  (28a8b18ae59b101e1489b1e086bbac7d63318767j	  Watlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyTest.javaj	  modifiedj
	  Kj	  Kj	  Kj	  https://github.com/palantir/atlasdb/blob/e45e38fcb00916552ae4ab6fffcc4276b8256363/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj	  https://github.com/palantir/atlasdb/raw/e45e38fcb00916552ae4ab6fffcc4276b8256363/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj	  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.java?ref=e45e38fcb00916552ae4ab6fffcc4276b8256363j	  @@ -22,7 +22,7 @@
 
 import org.junit.Test;
 
-public final class DefaultBuggifyTest {
+public class DefaultBuggifyTest {
     @Test
     public void runAlwaysExecutes() {
         Runnable runnable = mock(Runnable.class);u}(j  (c6d5d05237311ecd06793772e3b673f5836c8896j	  Tatlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyTest.javaj	  modifiedj
	  Kj	  Kj	  Kj	  https://github.com/palantir/atlasdb/blob/e45e38fcb00916552ae4ab6fffcc4276b8256363/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj	  https://github.com/palantir/atlasdb/raw/e45e38fcb00916552ae4ab6fffcc4276b8256363/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj	  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.java?ref=e45e38fcb00916552ae4ab6fffcc4276b8256363j	  @@ -23,7 +23,7 @@
 
 import org.junit.Test;
 
-public final class NoOpBuggifyTest {
+public class NoOpBuggifyTest {
     @Test
     public void runNeverExecutes() {
         Runnable runnable = mock(Runnable.class);u}(j  (a1974a0a70f2e9dc1483e8b6fcc59cc3a141917bj	  batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaj	  modifiedj
	  K	j	  K	j	  Kj	  https://github.com/palantir/atlasdb/blob/e45e38fcb00916552ae4ab6fffcc4276b8256363/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj	  https://github.com/palantir/atlasdb/raw/e45e38fcb00916552ae4ab6fffcc4276b8256363/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj	  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=e45e38fcb00916552ae4ab6fffcc4276b8256363j	  X	  @@ -17,7 +17,6 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
-import com.google.common.collect.FluentIterable;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableRangeMap;
@@ -62,13 +61,13 @@
 import java.util.Comparator;
 import java.util.HashMap;
 import java.util.HashSet;
-import java.util.Iterator;
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
 import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Optional;
+import java.util.PrimitiveIterator.OfInt;
 import java.util.Random;
 import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
@@ -77,6 +76,7 @@
 import java.util.function.Predicate;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import java.util.stream.Stream;
 import org.apache.cassandra.thrift.EndpointDetails;
 import org.apache.cassandra.thrift.TokenRange;
@@ -306,16 +306,16 @@ private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) th
     }
 
     private int getKnownPort() throws UnknownHostException {
-        // explicitly not using streams due to allocation overhead
-        return onlyPort(FluentIterable.concat(
-                        FluentIterable.from(currentPools.keySet()).transform(CassandraServer::proxy),
-                        getServersSocketAddressesFromConfig())
-                .transform(InetSocketAddress::getPort));
+        // Avoid allocations and intermediate collection as this is on hot path
+        return only(Stream.concat(
+                        currentPools.keySet().stream().map(CassandraServer::proxy),
+                        getServersSocketAddressesFromConfig().stream())
+                .mapToInt(InetSocketAddress::getPort));
     }
 
     @VisibleForTesting
-    static int onlyPort(Iterable<? extends Integer> iterable) throws UnknownHostException {
-        Iterator<? extends Integer> iterator = iterable.iterator();
+    static int only(IntStream intStream) throws UnknownHostException {
+        OfInt iterator = intStream.iterator();
         if (!iterator.hasNext()) {
             throw new UnknownHostException("No single known port");
         }u}(j  (ea93d4225293149bfc275c742ea245b6b263274fj	  fatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraServiceTest.javaj	  modifiedj
	  Kj	  Kj	  Kj	  https://github.com/palantir/atlasdb/blob/e45e38fcb00916552ae4ab6fffcc4276b8256363/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javaj	  https://github.com/palantir/atlasdb/raw/e45e38fcb00916552ae4ab6fffcc4276b8256363/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javaj	  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.java?ref=e45e38fcb00916552ae4ab6fffcc4276b8256363j	  X  @@ -33,7 +33,6 @@
 import com.palantir.refreshable.Refreshable;
 import java.net.InetSocketAddress;
 import java.net.UnknownHostException;
-import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.ThreadLocalRandom;
@@ -272,12 +271,10 @@ public void getRandomHostByActiveConnectionsReturnsDesiredHost() {
 
     @Test
     public void ports() throws Exception {
-        assertThat(CassandraService.onlyPort(List.of(1, 1, 1))).isEqualTo(1);
-        assertThat(IntStream.generate(() -> 4224).boxed().limit(15).collect(Collectors.toList()))
-                .hasSize(15)
-                .satisfies(cluster ->
-                        assertThat(CassandraService.onlyPort(cluster)).isEqualTo(4224));
-        assertThatThrownBy(() -> CassandraService.onlyPort(List.of(1, 2, 1)))
+        assertThat(CassandraService.only(IntStream.of(1, 1, 1))).isEqualTo(1);
+        assertThat(CassandraService.only(IntStream.generate(() -> 4224).limit(15)))
+                .isEqualTo(4224);
+        assertThatThrownBy(() -> CassandraService.only(IntStream.of(1, 2, 1)))
                 .isInstanceOf(UnknownHostException.class)
                 .hasMessageContaining("No single known port");
     }u}(j  (873fe01fb2bcd122671ed8446a4741d208fbfa02j	  katlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AdvisoryLockConditionSuppliers.javaj	  modifiedj
	  Kj	  Kj	  Kj	  https://github.com/palantir/atlasdb/blob/e45e38fcb00916552ae4ab6fffcc4276b8256363/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javaj	  https://github.com/palantir/atlasdb/raw/e45e38fcb00916552ae4ab6fffcc4276b8256363/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javaj	  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.java?ref=e45e38fcb00916552ae4ab6fffcc4276b8256363j	  X  @@ -79,10 +79,13 @@ private static HeldLocksToken acquireLock(LockService lockService, LockRequest l
                     case BLOCK_UNTIL_TIMEOUT:
                     case BLOCK_INDEFINITELY:
                     case BLOCK_INDEFINITELY_THEN_RELEASE:
-                        log.warn("Could not lock successfully", ex);
                         ++failureCount;
+                        log.warn("Could not lock successfully", SafeArg.of("failureCount", failureCount), ex);
                         if (failureCount >= NUM_RETRIES) {
-                            log.warn("Failing after {} tries", SafeArg.of("failureCount", failureCount), ex);
+                            log.warn(
+                                    "Failing after exceeding maximum tries",
+                                    SafeArg.of("failureCount", failureCount),
+                                    ex);
                             throw ex;
                         }
                         break;u}(j  (b4f0f9cfa1631ef560d32a317b1d9e42a3cac71fj	   changelog/0.849.0/pr-6562.v2.ymlj	  addedj
	  Kj	  K j	  Kj	  vhttps://github.com/palantir/atlasdb/blob/e45e38fcb00916552ae4ab6fffcc4276b8256363/changelog%2F0.849.0%2Fpr-6562.v2.ymlj	  uhttps://github.com/palantir/atlasdb/raw/e45e38fcb00916552ae4ab6fffcc4276b8256363/changelog%2F0.849.0%2Fpr-6562.v2.ymlj	  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.849.0%2Fpr-6562.v2.yml?ref=e45e38fcb00916552ae4ab6fffcc4276b8256363j	  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Avoid boxing for Cassandra known port checks
+  links:
+  - https://github.com/palantir/atlasdb/pull/6562u}(j  (217d9399bdb068283f3ed607c705739151adc8eaj	   changelog/0.850.0/pr-6563.v2.ymlj	  addedj
	  Kj	  K j	  Kj	  vhttps://github.com/palantir/atlasdb/blob/e45e38fcb00916552ae4ab6fffcc4276b8256363/changelog%2F0.850.0%2Fpr-6563.v2.ymlj	  uhttps://github.com/palantir/atlasdb/raw/e45e38fcb00916552ae4ab6fffcc4276b8256363/changelog%2F0.850.0%2Fpr-6563.v2.ymlj	  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.850.0%2Fpr-6563.v2.yml?ref=e45e38fcb00916552ae4ab6fffcc4276b8256363j	  @@ -0,0 +1,6 @@
+type: fix
+fix:
+  description: Fixed a serialization issue for users of `LockServerOptions` and `LockState`
+    endpoints in the legacy lock service.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6563u}(j  (23134b9e8533848c590920b5b3a3ff99b19db234j	   changelog/0.851.0/pr-6551.v2.ymlj	  addedj
	  Kj	  K j	  Kj	  vhttps://github.com/palantir/atlasdb/blob/e45e38fcb00916552ae4ab6fffcc4276b8256363/changelog%2F0.851.0%2Fpr-6551.v2.ymlj	  uhttps://github.com/palantir/atlasdb/raw/e45e38fcb00916552ae4ab6fffcc4276b8256363/changelog%2F0.851.0%2Fpr-6551.v2.ymlj	  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.851.0%2Fpr-6551.v2.yml?ref=e45e38fcb00916552ae4ab6fffcc4276b8256363j	  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Display as safe arg the failureCount in the "Could not lock successfully"
+  links:
+  - https://github.com/palantir/atlasdb/pull/6551u}(j  (c201a75037718ee45a6d24add55ec4992f91ef88j	  lock-api/build.gradlej	  modifiedj
	  Kj	  K j	  Kj	  ihttps://github.com/palantir/atlasdb/blob/e45e38fcb00916552ae4ab6fffcc4276b8256363/lock-api%2Fbuild.gradlej	  hhttps://github.com/palantir/atlasdb/raw/e45e38fcb00916552ae4ab6fffcc4276b8256363/lock-api%2Fbuild.gradlej	  {https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fbuild.gradle?ref=e45e38fcb00916552ae4ab6fffcc4276b8256363j	  X  @@ -46,6 +46,7 @@ dependencies {
     testImplementation 'com.palantir.common:streams'
     testImplementation 'io.dropwizard.metrics:metrics-core'
     testImplementation 'org.slf4j:slf4j-api'
+    testImplementation project(':lock-api-objects')
     testImplementation project(':lock-conjure-api:lock-conjure-api-objects')
     testImplementation project(':timelock-api:timelock-api-objects')
 u}(j  (da3109e146d361ca31d2958b0fc223d0d2334824j	  ?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javaj	  modifiedj
	  Kj	  K j	  Kj	  https://github.com/palantir/atlasdb/blob/e45e38fcb00916552ae4ab6fffcc4276b8256363/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj	  https://github.com/palantir/atlasdb/raw/e45e38fcb00916552ae4ab6fffcc4276b8256363/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj	  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=e45e38fcb00916552ae4ab6fffcc4276b8256363j	  @@ -48,6 +48,7 @@ public class LockServerOptions implements Serializable {
      * client accessing it.
      */
     @Value.Default
+    @JsonProperty("isStandaloneServer")
     public boolean isStandaloneServer() {
         return true;
     }u}(j  (7cd1c34cf31d800e3d13f665c2f83a2f2153b95ej	  7lock-api/src/main/java/com/palantir/lock/LockState.javaj	  modifiedj
	  Kj	  K j	  Kj	  https://github.com/palantir/atlasdb/blob/e45e38fcb00916552ae4ab6fffcc4276b8256363/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.javaj	  https://github.com/palantir/atlasdb/raw/e45e38fcb00916552ae4ab6fffcc4276b8256363/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.javaj	  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.java?ref=e45e38fcb00916552ae4ab6fffcc4276b8256363j	  XD  @@ -16,6 +16,7 @@
 
 package com.palantir.lock;
 
+import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import java.util.List;
@@ -26,8 +27,10 @@
 @JsonSerialize(as = ImmutableLockState.class)
 @JsonDeserialize(as = ImmutableLockState.class)
 public interface LockState {
+    @JsonProperty("isWriteLocked")
     boolean isWriteLocked();
 
+    @JsonProperty("isFrozen")
     boolean isFrozen();
 
     List<LockClient> exactCurrentLockHolders();u}(j  (1926ba4ded622aa9fbfde697ed803a0543ddf1b5j	  Clock-api/src/test/java/com/palantir/lock/LockServerOptionsTest.javaj	  addedj
	  KSj	  K j	  KSj	  https://github.com/palantir/atlasdb/blob/e45e38fcb00916552ae4ab6fffcc4276b8256363/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.javaj	  https://github.com/palantir/atlasdb/raw/e45e38fcb00916552ae4ab6fffcc4276b8256363/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.javaj	  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.java?ref=e45e38fcb00916552ae4ab6fffcc4276b8256363j	  Xh  @@ -0,0 +1,83 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.lock.v2.IdentifiedTimeLockRequest;
+import java.io.File;
+import java.io.IOException;
+import java.util.concurrent.TimeUnit;
+import org.junit.Test;
+
+public class LockServerOptionsTest {
+    private static final File LOCK_SERVER_OPTIONS_JSON = new File(IdentifiedTimeLockRequest.class
+            .getResource("/lock-server-options.json")
+            .getPath());
+    private static final LockServerOptions NON_STANDALONE_OPTIONS =
+            LockServerOptions.builder().isStandaloneServer(false).build();
+
+    private final ObjectMapper serverMapper = ObjectMappers.newServerObjectMapper();
+    private final ObjectMapper clientMapper = ObjectMappers.newClientObjectMapper();
+
+    @Test
+    public void serializationContainsIsStandaloneServerExplicitly() throws Exception {
+        assertThat(serverMapper.writeValueAsString(NON_STANDALONE_OPTIONS))
+                .isNotEmpty()
+                .contains("\"isStandaloneServer\":false");
+        assertThat(serverMapper.writeValueAsString(LockServerOptions.builder().build()))
+                .isNotEmpty()
+                .contains("\"isStandaloneServer\":true");
+    }
+
+    @Test
+    public void serializationIsInverseOfDeserialization() throws JsonProcessingException {
+        assertSerializationIsInverseOfDeserialization(NON_STANDALONE_OPTIONS);
+        assertSerializationIsInverseOfDeserialization(
+                LockServerOptions.builder().build());
+    }
+
+    @Test
+    @SuppressWarnings("deprecation") // These are actual fields users might set that we still support...
+    public void existingOptionsCanBeDeserialized() throws IOException {
+        LockServerOptions lockServerOptions = LockServerOptions.builder()
+                .maxAllowedLockTimeout(SimpleTimeDuration.of(1, TimeUnit.MILLISECONDS))
+                .maxAllowedClockDrift(SimpleTimeDuration.of(2, TimeUnit.SECONDS))
+                .maxAllowedBlockingDuration(SimpleTimeDuration.of(3, TimeUnit.MINUTES))
+                .maxNormalLockAge(SimpleTimeDuration.of(4, TimeUnit.HOURS))
+                .randomBitCount(32)
+                .stuckTransactionTimeout(SimpleTimeDuration.of(5, TimeUnit.DAYS))
+                .slowLogTriggerMillis(12345)
+                .isStandaloneServer(false)
+                .build();
+
+        assertThat(clientMapper.readValue(LOCK_SERVER_OPTIONS_JSON, LockServerOptions.class))
+                .isEqualTo(lockServerOptions);
+        assertThat(serverMapper.readValue(LOCK_SERVER_OPTIONS_JSON, LockServerOptions.class))
+                .isEqualTo(lockServerOptions);
+    }
+
+    private void assertSerializationIsInverseOfDeserialization(LockServerOptions options)
+            throws JsonProcessingException {
+        String json = serverMapper.writeValueAsString(options);
+        assertThat(clientMapper.readValue(json, LockServerOptions.class)).isEqualTo(options);
+        assertThat(serverMapper.readValue(json, LockServerOptions.class)).isEqualTo(options);
+    }
+}u}(j  (efe8f1aaad6365f7c6d18f7a187cf695d298d214j	  4lock-api/src/test/resources/lock-server-options.jsonj	  addedj
	  Kj	  K j	  Kj	  https://github.com/palantir/atlasdb/blob/e45e38fcb00916552ae4ab6fffcc4276b8256363/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.jsonj	  https://github.com/palantir/atlasdb/raw/e45e38fcb00916552ae4ab6fffcc4276b8256363/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.jsonj	  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.json?ref=e45e38fcb00916552ae4ab6fffcc4276b8256363j	  Xa  @@ -0,0 +1 @@
+{"maxAllowedLockTimeout":{"time":1,"unit":"MILLISECONDS"},"maxAllowedClockDrift":{"time":2,"unit":"SECONDS"},"maxAllowedBlockingDuration":{"time":3,"unit":"MINUTES"},"maxNormalLockAge":{"time":4,"unit":"HOURS"},"randomBitCount":32,"stuckTransactionTimeout":{"time":5,"unit":"DAYS"},"slowLogTriggerMillis":12345,"isStandaloneServer":false}ueu(      (466836feacce4fe660e2fe0cde210ee47a3a4680}(sha(466836feacce4fe660e2fe0cde210ee47a3a4680node_idEC_kwDOAjP5fdoAKDQ2NjgzNmZlYWNjZTRmZTY2MGUyZmUwY2RlMjEwZWU0N2EzYTQ2ODAcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-12T13:35:10Zu	committer}(j	  Jeremy Kongj	  jkong@palantir.comj	  2023-04-12T13:35:10Zumessage9Merge branch 'jkong/lock-v1' into jkong/asynchronous-ragetree}(j	  (152b39cfa567cb01c3b930e8a329edae23ac3159url`https://api.github.com/repos/palantir/atlasdb/git/trees/152b39cfa567cb01c3b930e8a329edae23ac3159uj	  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/466836feacce4fe660e2fe0cde210ee47a3a4680
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ2s5EACgkQTLdFKain
zjykfAf+OH1zfXKbfWteKtwu9vTUymoGGmK/zKvooJ90iNYTMhE+9smIQ8kevPby
MUgaiS5wyEDJLBxriXMoZIlVCkJyXG47/+HE+wIXWqTB1qez7vHYdr98ZTjv8MBy
zblDejBHxz2xLXVO2hId3C5k5NlEkEtvQ/8TKPoU6qF/03xRa7Ty4xZ/Kd3gQv9c
ur1U8Kfgs5jEQNtl1E4hLbs4grSlKg6UvhoNfCqYt4dXfqskz84ByNtgcwcFJ9xB
oufvjnnYvPod0f+1zdQUrSDnwOydYmgXPjsBmYRABJuMjDzQ/0whbrYfEVzVbuhu
46I/qXNKU4Z3oykdSvBxsD3noh65Kg==
=5f+n
-----END PGP SIGNATURE-----payloadX>  tree 152b39cfa567cb01c3b930e8a329edae23ac3159
parent 5cc274ce4807cce89e096a32dd6d38c6374ee459
parent 07dbddc26a4e1e887680e563318e33867a4a306b
author Jeremy Kong <jkong@palantir.com> 1681306510 +0100
committer Jeremy Kong <jkong@palantir.com> 1681306510 +0100

Merge branch 'jkong/lock-v1' into jkong/asynchronous-rage
uuj	  ^https://api.github.com/repos/palantir/atlasdb/commits/466836feacce4fe660e2fe0cde210ee47a3a4680html_urlShttps://github.com/palantir/atlasdb/commit/466836feacce4fe660e2fe0cde210ee47a3a4680comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/466836feacce4fe660e2fe0cde210ee47a3a4680/commentsj	  }(login
jeremyk-91idJZ j	  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j	  'https://api.github.com/users/jeremyk-91j	  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj	  }(j	  
jeremyk-91j	  JZ j	  MDQ6VXNlcjU5NTU1MTA=j	  3https://avatars.githubusercontent.com/u/5955510?v=4j	  h5j	  'https://api.github.com/users/jeremyk-91j	  https://github.com/jeremyk-91j	  1https://api.github.com/users/jeremyk-91/followersj	  >https://api.github.com/users/jeremyk-91/following{/other_user}j	  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j	  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j	  5https://api.github.com/users/jeremyk-91/subscriptionsj	  ,https://api.github.com/users/jeremyk-91/orgsj	  -https://api.github.com/users/jeremyk-91/reposj	  8https://api.github.com/users/jeremyk-91/events{/privacy}j	  7https://api.github.com/users/jeremyk-91/received_eventsj	  Userj	  uparents](}(j	  (5cc274ce4807cce89e096a32dd6d38c6374ee459j	  ^https://api.github.com/repos/palantir/atlasdb/commits/5cc274ce4807cce89e096a32dd6d38c6374ee459j	  Shttps://github.com/palantir/atlasdb/commit/5cc274ce4807cce89e096a32dd6d38c6374ee459u}(j	  (07dbddc26a4e1e887680e563318e33867a4a306bj	  ^https://api.github.com/repos/palantir/atlasdb/commits/07dbddc26a4e1e887680e563318e33867a4a306bj	  Shttps://github.com/palantir/atlasdb/commit/07dbddc26a4e1e887680e563318e33867a4a306buestats}(totalK!	additionsK	deletionsKufiles](}(j	  (2204a1bd3b81364b73c8ace8fc31438127caf2e2filenameMtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/LockV1Resource.javastatusmodifiedj
  Kj
  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/466836feacce4fe660e2fe0cde210ee47a3a4680/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.javaraw_urlhttps://github.com/palantir/atlasdb/raw/466836feacce4fe660e2fe0cde210ee47a3a4680/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.java?ref=466836feacce4fe660e2fe0cde210ee47a3a4680patchX  @@ -43,7 +43,7 @@
 import javax.ws.rs.Produces;
 import javax.ws.rs.core.MediaType;
 
-@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}")
+@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}") // Only read by Jersey, not by Undertow
 public class LockV1Resource {
     private final TimelockNamespaces namespaces;
 
@@ -118,8 +118,7 @@ public boolean unlockAndFreeze(
     @Path("lock/get-tokens/{client}")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
-    @CancelableServerCall
-    @NonIdempotent
+    @Idempotent
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/get-tokens/{client}")
     public Set<HeldLocksToken> getTokens(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
@@ -131,8 +130,7 @@ public Set<HeldLocksToken> getTokens(
     @Path("lock/get-tokens")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
-    @CancelableServerCall
-    @NonIdempotent
+    @Idempotent
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/get-tokens")
     public Set<HeldLocksToken> getTokens(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
         return getTokens(namespace, LockClient.ANONYMOUS);
@@ -384,6 +382,18 @@ public Long getMinLockedInVersionId(
         return getLockService(namespace).getMinLockedInVersionId(client);
     }
 
+    @POST
+    @Path("lock/min-locked-in-version")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Idempotent
+    @Nullable
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version")
+    public Long getMinLockedInVersionIdForAnonymousClientString(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        return getMinLockedInVersionId(namespace, LockClient.ANONYMOUS.getClientId());
+    }
+
     @POST
     @Path("lock/get-debugging-lock-state")
     @Idempotentu}(j	  (1c4f4967f8030a70b7a15f69299a4d00bafe675fj
  Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimestampManagementResource.javaj
  modifiedj
  Kj
  Kj
  Kj
  https://github.com/palantir/atlasdb/blob/466836feacce4fe660e2fe0cde210ee47a3a4680/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampManagementResource.javaj
  https://github.com/palantir/atlasdb/raw/466836feacce4fe660e2fe0cde210ee47a3a4680/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampManagementResource.javaj
  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampManagementResource.java?ref=466836feacce4fe660e2fe0cde210ee47a3a4680j!
  X.  @@ -29,6 +29,7 @@
 import io.undertow.util.Headers;
 import java.io.IOException;
 import java.nio.charset.StandardCharsets;
+import java.util.OptionalLong;
 import javax.annotation.CheckReturnValue;
 import javax.annotation.meta.When;
 import javax.ws.rs.DefaultValue;
@@ -40,7 +41,7 @@
 import javax.ws.rs.QueryParam;
 import javax.ws.rs.core.MediaType;
 
-@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}")
+@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}") // Only read by Jersey, not by Undertow
 public class TimestampManagementResource {
     private static final long SENTINEL_TIMESTAMP = Long.MIN_VALUE;
     private static final String SENTINEL_TIMESTAMP_STRING =
@@ -63,8 +64,8 @@ public void fastForwardTimestamp(
                     @QueryParam("currentTimestamp")
                     @DefaultValue(SENTINEL_TIMESTAMP_STRING)
                     @Handle.QueryParam(value = "currentTimestamp")
-                    Long currentTimestamp) {
-        long timestampToUse = currentTimestamp == null ? SENTINEL_TIMESTAMP : currentTimestamp;
+                    OptionalLong currentTimestamp) {
+        long timestampToUse = currentTimestamp.orElse(SENTINEL_TIMESTAMP);
         getTimestampManagementService(namespace).fastForwardTimestamp(timestampToUse);
     }
 
@@ -73,8 +74,8 @@ public void fastForwardTimestamp(
     @Produces(MediaType.TEXT_PLAIN)
     @CheckReturnValue(when = When.NEVER)
     @Handle(
-            method = HttpMethod.POST,
-            path = "/{namespace}/timestamp-management/fast-forward",
+            method = HttpMethod.GET,
+            path = "/{namespace}/timestamp-management/ping",
             produces = TextPlainSerializer.class)
     public String ping(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
         return getTimestampManagementService(namespace).ping();u}(j	  (04e1d4c2a15de9947b70c587bd4dfa39d113bb1ej
  Ptimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimestampResource.javaj
  modifiedj
  Kj
  Kj
  Kj
  https://github.com/palantir/atlasdb/blob/466836feacce4fe660e2fe0cde210ee47a3a4680/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampResource.javaj
  https://github.com/palantir/atlasdb/raw/466836feacce4fe660e2fe0cde210ee47a3a4680/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampResource.javaj
  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampResource.java?ref=466836feacce4fe660e2fe0cde210ee47a3a4680j!
  XA  @@ -28,7 +28,7 @@
 import javax.ws.rs.QueryParam;
 import javax.ws.rs.core.MediaType;
 
-@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}")
+@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}") // Only read by Jersey, not by Undertow
 public final class TimestampResource {
     private final TimelockNamespaces namespaces;
 ueu(b88420e258b82530e6022008ca42e5c4cbe0b25d}(sha(b88420e258b82530e6022008ca42e5c4cbe0b25dnode_idEC_kwDOAjP5fdoAKGI4ODQyMGUyNThiODI1MzBlNjAyMjAwOGNhNDJlNWM0Y2JlMGIyNWQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-22T21:14:57Zu	committer}(j=
  Jeremy Kongj?
  jkong@palantir.comjA
  2023-02-22T21:14:57Zumessagedependenciestree}(j5
  (741b11a4bddfcb03179a3c01f4afeb7f43ce83a8url`https://api.github.com/repos/palantir/atlasdb/git/trees/741b11a4bddfcb03179a3c01f4afeb7f43ce83a8ujM
  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b88420e258b82530e6022008ca42e5c4cbe0b25d
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEuTY+4bHE452z2GUfsC5B2upnoZgFAmP2hdQACgkQsC5B2upn
oZikLAgAnL6ghqqJxcOsCtbcbO2XoHFDqOGNhXMTI7J+PBCBDKC+p7Icjfd1SYrD
bLfm0xLLDN2mltkI//Syf5EqloX/CKym0yZAwpmVuGHm3doCm4VZ0hcYM3Ef4Yuh
9bN+Z8q+KVfneDlz4w22aR0g4zNt41OvD+owwFxYYhtWJgW1EkGIuA7Q1m/EA/kH
074Z30oU8i2eCWxX1z17H4j97tP2KosNczmlfI49KmdAYzREldxikMRoARP8jRXf
jtVn0Tm8HaOlI/SmUtbbaUfrGxY2QpmrPIlbXGp5ozQspYCP+GzLLDm9fBBh8zb1
TDo4DYcBTRFvjYyLCa6yTfiKQgRQPQ==
=AYQm
-----END PGP SIGNATURE-----payloadtree 741b11a4bddfcb03179a3c01f4afeb7f43ce83a8
parent 403e30ca978786d585d07cf7c72639770c6c67cf
author Jeremy Kong <jkong@palantir.com> 1677100497 +0000
committer Jeremy Kong <jkong@palantir.com> 1677100497 +0000

dependencies
uujM
  ^https://api.github.com/repos/palantir/atlasdb/commits/b88420e258b82530e6022008ca42e5c4cbe0b25dhtml_urlShttps://github.com/palantir/atlasdb/commit/b88420e258b82530e6022008ca42e5c4cbe0b25dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b88420e258b82530e6022008ca42e5c4cbe0b25d/commentsj;
  }(login
jeremyk-91idJZ j7
  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jM
  'https://api.github.com/users/jeremyk-91j[
  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujC
  }(j`
  
jeremyk-91jb
  JZ j7
  MDQ6VXNlcjU5NTU1MTA=jd
  3https://avatars.githubusercontent.com/u/5955510?v=4jf
  h5jM
  'https://api.github.com/users/jeremyk-91j[
  https://github.com/jeremyk-91ji
  1https://api.github.com/users/jeremyk-91/followersjk
  >https://api.github.com/users/jeremyk-91/following{/other_user}jm
  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jo
  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jq
  5https://api.github.com/users/jeremyk-91/subscriptionsjs
  ,https://api.github.com/users/jeremyk-91/orgsju
  -https://api.github.com/users/jeremyk-91/reposjw
  8https://api.github.com/users/jeremyk-91/events{/privacy}jy
  7https://api.github.com/users/jeremyk-91/received_eventsj{
  Userj}
  uparents]}(j5
  (403e30ca978786d585d07cf7c72639770c6c67cfjM
  ^https://api.github.com/repos/palantir/atlasdb/commits/403e30ca978786d585d07cf7c72639770c6c67cfj[
  Shttps://github.com/palantir/atlasdb/commit/403e30ca978786d585d07cf7c72639770c6c67cfuastats}(totalK	additionsK	deletionsK ufiles]}(j5
  (3231dd49081481f21492c9af3e913f97038df98afilename$atlasdb-workload-server/build.gradlestatusmodifiedj
  Kj
  K changesKblob_urlxhttps://github.com/palantir/atlasdb/blob/b88420e258b82530e6022008ca42e5c4cbe0b25d/atlasdb-workload-server%2Fbuild.gradleraw_urlwhttps://github.com/palantir/atlasdb/raw/b88420e258b82530e6022008ca42e5c4cbe0b25d/atlasdb-workload-server%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=b88420e258b82530e6022008ca42e5c4cbe0b25dpatchXD  @@ -13,6 +13,7 @@ dependencies {
     implementation 'com.palantir.safe-logging:safe-logging'
     implementation 'one.util:streamex'
 
+    testImplementation project(':commons-executors')
     testImplementation 'org.mockito:mockito-core'
     testImplementation('org.jmock:jmock') {
         exclude group: 'org.hamcrest'uau(cf5036bc3f1fa8134f905e10be57b521fdaae002}(sha(cf5036bc3f1fa8134f905e10be57b521fdaae002node_idEC_kwDOAjP5fdoAKGNmNTAzNmJjM2YxZmE4MTM0ZjkwNWUxMGJlNTdiNTIxZmRhYWUwMDIcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-07-14T15:46:03Zu	committer}(j
  GitHubj
  noreply@github.comj
  2023-07-14T15:46:03ZumessageUpdate docs/source/configuration/key_value_service_configs/oracle_key_value_service_config.rst

Co-authored-by: Jeremy Kong <jkong@palantir.com>tree}(j
  (66d34ca28e6e5be430451947194381170921033furl`https://api.github.com/repos/palantir/atlasdb/git/trees/66d34ca28e6e5be430451947194381170921033fuj
  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cf5036bc3f1fa8134f905e10be57b521fdaae002
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJksW27CRBK7hj4Ov3rIwAALhkIAIngFnB4fztcZXuoD/RScWW5
DGBopMhLGx5RngMVA+gASyy5FTuMuXfwlYQwjRHM3wWkwqdNPu4iG2TU6YGzwvpr
issbAwIAjN5SPKA9kQrwM5g4Z3vw6wJGceJQ/LFLc5l6rWAFmco/Zlxwg7n2h6gu
/rCdx17rdt2ZRUYg7yB5pWtAT6+5PxUMDXBLVma1YxLlDBHkt0XG4790JqYD+WEa
lWF+xvl8CkCjcD9b7vRbUoVMHbHyjHwZuCP+Dz/CfTaSPcMDih6ZNgpcy+YXoKp8
x4km0u+tvnIJN8CRO018mfdGcjmSq+vFVwCT/4A5r6yHzVEq9hkUQwcBLlNgXc4=
=CIc3
-----END PGP SIGNATURE-----
payloadXb  tree 66d34ca28e6e5be430451947194381170921033f
parent 457e2835e1cd8c7f87253d381eefa7b02e82c0a9
author Sam-Kramer <sam.c.kramer@gmail.com> 1689349563 +0100
committer GitHub <noreply@github.com> 1689349563 +0100

Update docs/source/configuration/key_value_service_configs/oracle_key_value_service_config.rst

Co-authored-by: Jeremy Kong <jkong@palantir.com>uuj
  ^https://api.github.com/repos/palantir/atlasdb/commits/cf5036bc3f1fa8134f905e10be57b521fdaae002html_urlShttps://github.com/palantir/atlasdb/commit/cf5036bc3f1fa8134f905e10be57b521fdaae002comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cf5036bc3f1fa8134f905e10be57b521fdaae002/commentsj
  }(login
Sam-KrameridJ^2_ j
  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j
  'https://api.github.com/users/Sam-Kramerj
  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj
  }(j
  web-flowj
  J/j
  MDQ6VXNlcjE5ODY0NDQ3j
  4https://avatars.githubusercontent.com/u/19864447?v=4j
  h5j
  %https://api.github.com/users/web-flowj
  https://github.com/web-flowj
  /https://api.github.com/users/web-flow/followersj
  <https://api.github.com/users/web-flow/following{/other_user}j
  5https://api.github.com/users/web-flow/gists{/gist_id}j
  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j
  3https://api.github.com/users/web-flow/subscriptionsj
  *https://api.github.com/users/web-flow/orgsj
  +https://api.github.com/users/web-flow/reposj
  6https://api.github.com/users/web-flow/events{/privacy}j
  5https://api.github.com/users/web-flow/received_eventsj
  Userj
  uparents]}(j
  (457e2835e1cd8c7f87253d381eefa7b02e82c0a9j
  ^https://api.github.com/repos/palantir/atlasdb/commits/457e2835e1cd8c7f87253d381eefa7b02e82c0a9j
  Shttps://github.com/palantir/atlasdb/commit/457e2835e1cd8c7f87253d381eefa7b02e82c0a9uastats}(totalK	additionsK	deletionsKufiles]}(j
  (f4bbbba90cd94e226dfbc81252308f65e54168d6filenameWdocs/source/configuration/key_value_service_configs/oracle_key_value_service_config.rststatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/cf5036bc3f1fa8134f905e10be57b521fdaae002/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rstraw_urlhttps://github.com/palantir/atlasdb/raw/cf5036bc3f1fa8134f905e10be57b521fdaae002/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rstcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rst?ref=cf5036bc3f1fa8134f905e10be57b521fdaae002patchX  @@ -219,7 +219,7 @@ To resolve, simply add the following configuration to your Oracle ddl configurat
                   name: <namespace>
                 tablename: <table-name>
 
-Note: Table names are case sensitive
+Note: Table names are case sensitive.
 
 Generally speaking the operation is safe to perform, although it's on the operator to determine what the side
 effects are. For example, if the issue arose as two services are configured to use this table, but only one isuau(2b51a0c2e087e06deb5d6681e60f2664e6fd032c}(sha(2b51a0c2e087e06deb5d6681e60f2664e6fd032cnode_idEC_kwDOAjP5fdoAKDJiNTFhMGMyZTA4N2UwNmRlYjVkNjY4MWU2MGYyNjY0ZTZmZDAzMmMcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-11T20:26:30Zu	committer}(j+  	Tom Papkej-  tpapke@palantir.comj/  2023-07-11T21:53:58ZumessageAdd test for empty datatree}(j#  (1a2043417f88dfdd7fce1c00c67f5ac9533fabedurl`https://api.github.com/repos/palantir/atlasdb/git/trees/1a2043417f88dfdd7fce1c00c67f5ac9533fabeduj;  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2b51a0c2e087e06deb5d6681e60f2664e6fd032c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmStz3cACgkQmF9s0kaF
Iw2ALwf8Dodmeg6cocu0aRiq8z0qtbcL1qrKhyv7m5ekyea7ni/SyS2qhj9oRNzH
4pG0XioQOH7wvyTQPRZWv+WDCGVFa6UYgoPt3Aujd+o3Q98QSKPV0B+KxbrtF4W/
i2+mCWynQE6AAGB9PQAJD5V7HP7CR7irW7RiV520GEWSd30nswlgt36IO1nInrzj
XgF9BkyUDuKzjoUtEDoGSnKhaHwxnVvJk8sk5VdSgciDJg3hIHgjLhaujw4K6Ho4
w95wD46ZDjqymfXdfdX7d8TCddldhHt1BChs3iawZ/5Or3zOl/wxqS/eQ6/mTVpL
UA63Km6lf1cJaWJDkVQT7BtdNFS0Nw==
=hwcH
-----END PGP SIGNATURE-----payloadtree 1a2043417f88dfdd7fce1c00c67f5ac9533fabed
parent f9e6b201b1cda37b3c3550547ec4d9100de25dee
author Tom Papke <tpapke@palantir.com> 1689107190 +0100
committer Tom Papke <tpapke@palantir.com> 1689112438 +0100

Add test for empty data
uuj;  ^https://api.github.com/repos/palantir/atlasdb/commits/2b51a0c2e087e06deb5d6681e60f2664e6fd032chtml_urlShttps://github.com/palantir/atlasdb/commit/2b51a0c2e087e06deb5d6681e60f2664e6fd032ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2b51a0c2e087e06deb5d6681e60f2664e6fd032c/commentsj)  }(login	ToemmscheidJboj%  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j;  &https://api.github.com/users/ToemmschejI  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj1  }(jN  	ToemmschejP  Jboj%  MDQ6VXNlcjQzNjc1NDkwjR  4https://avatars.githubusercontent.com/u/43675490?v=4jT  h5j;  &https://api.github.com/users/ToemmschejI  https://github.com/ToemmschejW  0https://api.github.com/users/Toemmsche/followersjY  =https://api.github.com/users/Toemmsche/following{/other_user}j[  6https://api.github.com/users/Toemmsche/gists{/gist_id}j]  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j_  4https://api.github.com/users/Toemmsche/subscriptionsja  +https://api.github.com/users/Toemmsche/orgsjc  ,https://api.github.com/users/Toemmsche/reposje  7https://api.github.com/users/Toemmsche/events{/privacy}jg  6https://api.github.com/users/Toemmsche/received_eventsji  Userjk  uparents]}(j#  (f9e6b201b1cda37b3c3550547ec4d9100de25deej;  ^https://api.github.com/repos/palantir/atlasdb/commits/f9e6b201b1cda37b3c3550547ec4d9100de25deejI  Shttps://github.com/palantir/atlasdb/commit/f9e6b201b1cda37b3c3550547ec4d9100de25deeuastats}(totalK		additionsK		deletionsK ufiles]}(j#  (65dfe70efb30386979cb02fac770b13e1ab4edaffilenameKatlasdb-commons/src/test/java/com/palantir/util/IndexEncodingUtilsTest.javastatusmodifiedj  K	j  K changesK	blob_urlhttps://github.com/palantir/atlasdb/blob/2b51a0c2e087e06deb5d6681e60f2664e6fd032c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2b51a0c2e087e06deb5d6681e60f2664e6fd032c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.java?ref=2b51a0c2e087e06deb5d6681e60f2664e6fd032cpatchXy  @@ -90,6 +90,15 @@ public void canDecodeSimpleData() {
                 .containsExactlyInAnyOrderEntriesOf(VALUES);
     }
 
+    @Test
+    public void canEncodeAndDecodeEmptyData() {
+        assertThat(IndexEncodingUtils.decode(
+                        IndexEncodingUtils.encode(
+                                ImmutableSet.of(), ImmutableMap.of(), Function.identity(), checksumType),
+                        Function.identity()))
+                .isEmpty();
+    }
+
     @Test
     public void canEncodeWithCustomValueMapper() {
         Map<Integer, String> expectedValues = ImmutableMap.of(1, "1327", 2, "-20", 0, "32");uau(9f8e07524f4089259fc5fae79cf0cc578414558b}(sha(9f8e07524f4089259fc5fae79cf0cc578414558bnode_idEC_kwDOAjP5fdoAKDlmOGUwNzUyNGY0MDg5MjU5ZmM1ZmFlNzljZjBjYzU3ODQxNDU1OGIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-20T17:20:26Zu	committer}(j  
Sam Kramerj  skramer@palantir.comj  2023-06-20T17:20:26Zumessagewrite once delete once inittree}(j  (29e461b63e25c7a531ab79d9e4a4a6924c18f531url`https://api.github.com/repos/palantir/atlasdb/git/trees/29e461b63e25c7a531ab79d9e4a4a6924c18f531uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9f8e07524f4089259fc5fae79cf0cc578414558b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSR39oACgkQmPPOpKR4
XS1Z0wgApAsqEHEjJdB5FvRpTwDWWgIy1wH6aLm2Y3QpkUVy2a7GTuE4rPnlhLD1
0fcDNHq4ezHLH95AuW3otXJALALWDeq+bxS3MXBF5O7MEIhNZy/WXVoYPIBmj4yA
+dJY+uIWpAeHlZso7qFOULDDj1MBdt0olLCkAwjPgoIdMwDS3hYu/BVvsAJ58QA2
4JFgNSTIfn2/0BOt2s0Z/U0REn+UX7Zfh7lsKdLwiJ6wPApvNlO3sNo+tVtBgCr9
liCLBYBCWpT3nt9b3zZFuVhZlT0cI3fb/M+n5PfvJ++JfaMfMBWxwPGl8OqbA1i8
cyDU1letK8lPKUcSEqRALs87Cl20Vg==
=ho7A
-----END PGP SIGNATURE-----payloadtree 29e461b63e25c7a531ab79d9e4a4a6924c18f531
parent 4042f72d514d46a48a5326a7c240b54e8eb11149
author Sam Kramer <skramer@palantir.com> 1687281626 +0100
committer Sam Kramer <skramer@palantir.com> 1687281626 +0100

write once delete once init
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/9f8e07524f4089259fc5fae79cf0cc578414558bhtml_urlShttps://github.com/palantir/atlasdb/commit/9f8e07524f4089259fc5fae79cf0cc578414558bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9f8e07524f4089259fc5fae79cf0cc578414558b/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j  
Sam-Kramerj  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j  h5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj  1https://api.github.com/users/Sam-Kramer/followersj  >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j  5https://api.github.com/users/Sam-Kramer/subscriptionsj  ,https://api.github.com/users/Sam-Kramer/orgsj  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj  uparents]}(j  (4042f72d514d46a48a5326a7c240b54e8eb11149j  ^https://api.github.com/repos/palantir/atlasdb/commits/4042f72d514d46a48a5326a7c240b54e8eb11149j  Shttps://github.com/palantir/atlasdb/commit/4042f72d514d46a48a5326a7c240b54e8eb11149uastats}(totalK	additionsK	deletionsKufiles](}(j  (9bd02a66d2263ca962608a237ed4ca6de04a713cfilename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9f8e07524f4089259fc5fae79cf0cc578414558b/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/9f8e07524f4089259fc5fae79cf0cc578414558b/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=9f8e07524f4089259fc5fae79cf0cc578414558bpatchX  @@ -2,7 +2,7 @@ version: '2'
 
 services:
   cassandra1:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
     ports:
       - "9160"
       - "9042"
@@ -20,7 +20,7 @@ services:
         ipv4_address: 10.20.20.2
 
   cassandra2:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
     ports:
       - "9160"
       - "9042"
@@ -38,7 +38,7 @@ services:
         ipv4_address: 10.20.20.3
 
   cassandra3:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
     ports:
       - "9160"
       - "9042"u}(j  (558fd77a7ce63ccb392b0150d65afcf1a9de50dbj  latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj  modifiedj  Kj  Kj  K j  https://github.com/palantir/atlasdb/blob/9f8e07524f4089259fc5fae79cf0cc578414558b/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj	  https://github.com/palantir/atlasdb/raw/9f8e07524f4089259fc5fae79cf0cc578414558b/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=9f8e07524f4089259fc5fae79cf0cc578414558bj
  X:  @@ -48,6 +48,8 @@
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
 import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.WriteOnceDeleteOnceWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.WriteOnceDeleteOnceWorkflows;
 import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflows;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
@@ -124,10 +126,11 @@ private void scheduleBackgroundJobs(Environment environment) {
     }
 
     private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {
-        // This is a single threaded executor; this is intentional, so that we only run one workflow at a time.
         ExecutorService antithesisWorkflowRunnerExecutorService = environment
                 .lifecycle()
                 .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
+                .minThreads(8)
+                .maxThreads(8)
                 .build();
 
         MetricsManager metricsManager = MetricsManagers.of(environment.metrics(), taggedMetricRegistry);
@@ -150,6 +153,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().bankBalanceConfig();
         RandomWorkflowConfiguration randomWorkflowConfig =
                 configuration.install().randomConfig();
+        WriteOnceDeleteOnceWorkflowConfiguration writeOnceDeleteOnceConfig =
+                configuration.install().writeOnceDeleteOnceConfig();
 
         waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
 
@@ -168,7 +173,9 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 singleBusyCellReadNoTouchWorkflowConfiguration,
                                 environment.lifecycle()),
                         createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
-                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
+                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()),
+                        createWriteOnceDeleteOnceWorkflow(
+                                transactionStoreFactory, writeOnceDeleteOnceConfig, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -355,6 +362,27 @@ private WorkflowAndInvariants<Workflow> createRandomWorkflow(
                 .build();
     }
 
+    private WorkflowAndInvariants<Workflow> createWriteOnceDeleteOnceWorkflow(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            WriteOnceDeleteOnceWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService =
+                createExecutorService(workflowConfig, lifecycle, WriteOnceDeleteOnceWorkflows.class);
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(WriteOnceDeleteOnceWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        WriteOnceDeleteOnceWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
     @VisibleForTesting
     CountDownLatch workflowsRanLatch() {
         return workflowsRanLatch;u}(j  (5237f9202d66e63079e2924fcc747ca6dc49a0dbj  atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/9f8e07524f4089259fc5fae79cf0cc578414558b/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj	  https://github.com/palantir/atlasdb/raw/9f8e07524f4089259fc5fae79cf0cc578414558b/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=9f8e07524f4089259fc5fae79cf0cc578414558bj
  XF  @@ -24,6 +24,7 @@
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.WriteOnceDeleteOnceWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
@@ -48,5 +49,7 @@ public interface WorkloadServerInstallConfiguration {
 
     SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadsNoTouchConfig();
 
+    WriteOnceDeleteOnceWorkflowConfiguration writeOnceDeleteOnceConfig();
+
     boolean exitAfterRunning();
 }u}(j  (2baf8823bce4074bf72c7c116fce4b76840bdb9dj  zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflowConfiguration.javaj  addedj  K&j  K j  K&j  https://github.com/palantir/atlasdb/blob/9f8e07524f4089259fc5fae79cf0cc578414558b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowConfiguration.javaj	  https://github.com/palantir/atlasdb/raw/9f8e07524f4089259fc5fae79cf0cc578414558b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowConfiguration.java?ref=9f8e07524f4089259fc5fae79cf0cc578414558bj
  X  @@ -0,0 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableTransientRowsWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableTransientRowsWorkflowConfiguration.class)
+@JsonTypeName(WriteOnceDeleteOnceWorkflowConfiguration.TYPE)
+public interface WriteOnceDeleteOnceWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "write-once-delete-once";
+
+    TableConfiguration tableConfiguration();
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(j  (957658c7b9c9369bbbdea2c6359f0363a4ae5565j  natlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflows.javaj  addedj  K?j  K j  K?j  https://github.com/palantir/atlasdb/blob/9f8e07524f4089259fc5fae79cf0cc578414558b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflows.javaj	  https://github.com/palantir/atlasdb/raw/9f8e07524f4089259fc5fae79cf0cc578414558b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflows.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflows.java?ref=9f8e07524f4089259fc5fae79cf0cc578414558bj
  X
  @@ -0,0 +1,63 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.security.SecureRandom;
+import java.util.Optional;
+
+public final class WriteOnceDeleteOnceWorkflows {
+
+    private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+
+    private static final Integer COLUMN = 0;
+
+    private WriteOnceDeleteOnceWorkflows() {
+        // Utility class
+    }
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            WriteOnceDeleteOnceWorkflowConfiguration configuration,
+            ListeningExecutorService executionExecutor) {
+        return DefaultWorkflow.create(
+                store, (txnStore, index) -> run(txnStore, index, configuration), configuration, executionExecutor);
+    }
+
+    private static Optional<WitnessedTransaction> run(
+            InteractiveTransactionStore store, int taskIndex, WriteOnceDeleteOnceWorkflowConfiguration configuration) {
+        configuration.transactionRateLimiter().acquire();
+        return store.readWrite(txn -> {
+            Integer cellIndex = RANDOM.nextInt(100);
+            if (DefaultBuggifyFactory.INSTANCE.maybe(taskIndex * 0.01).asBoolean()) {
+                txn.delete(configuration.tableConfiguration().tableName(), cell(cellIndex));
+            } else {
+                txn.write(configuration.tableConfiguration().tableName(), cell(cellIndex), RANDOM.nextInt(10000));
+            }
+        });
+    }
+
+    private static WorkloadCell cell(Integer index) {
+        return ImmutableWorkloadCell.of(index, COLUMN);
+    }
+}u}(j  (68e74279ad9eb48b808c38514fa843516385b3c6j  *scripts/circle-ci/publish-to-antithesis.shj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/9f8e07524f4089259fc5fae79cf0cc578414558b/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj	  https://github.com/palantir/atlasdb/raw/9f8e07524f4089259fc5fae79cf0cc578414558b/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj  https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=9f8e07524f4089259fc5fae79cf0cc578414558bj
  X:  @@ -26,9 +26,9 @@ printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://$
 
 VERSION=$(./gradlew -q printVersion)
 
-docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
-docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc5 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
-docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
+docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
+docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc7 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc7
+docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc7
 
 docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}
 docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}ueu(43136fc95acea5ceb1decebcf906e547b21d5a99}(sha(43136fc95acea5ceb1decebcf906e547b21d5a99node_idEC_kwDOAjP5fdoAKDQzMTM2ZmM5NWFjZWE1Y2ViMWRlY2ViY2Y5MDZlNTQ3YjIxZDVhOTkcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-07-14T10:32:57Zu	committer}(jA  GitHubjC  noreply@github.comjE  2023-07-14T10:32:57ZumessagefReduce allocations extracting Cassandra values (#6642)

Reduce allocations extracting Cassandra valuestree}(j9  (585b77c0c14e8084be2e98af4c3d084a3f9cfac4url`https://api.github.com/repos/palantir/atlasdb/git/trees/585b77c0c14e8084be2e98af4c3d084a3f9cfac4ujQ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/43136fc95acea5ceb1decebcf906e547b21d5a99
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJksSRZCRBK7hj4Ov3rIwAAAnEIALIuMrClI7u5DwnhSlMjvspn
B2Jk8kmGZtXzgVKXr6BVn/3SD/cl6hjif5pvQRnAHqF47miDKB1olFsMxEX3CPMj
4wZnKfYBtyAwr0RGdEyS3AFJL8tRYWiF0a3mqCM6neXotz5s++wq8touzDqkL8uL
fCRpli7dqctN0PAcxzTaePJQIX+5OgMqrT83+kEx403Sswt/yk6FFsZO/u2dZxi0
mzoNDFZr1qa2ifR6hHqGEy6+sXofANf3Ext3Fs9YiLvLRbmYCR8e4tA4AM8BQj8i
0zIRvGxa+KnsjnS4EWbEg+Q3FGQCkDgBw81IF40LLkyl4ztnwqwNGNekfRl19zE=
=MDFF
-----END PGP SIGNATURE-----
payloadX=  tree 585b77c0c14e8084be2e98af4c3d084a3f9cfac4
parent d4f15c965b5d5c8ddaef2960069b178b5f63dc2a
author David Schlosnagle <davids@palantir.com> 1689330777 -0400
committer GitHub <noreply@github.com> 1689330777 +0000

Reduce allocations extracting Cassandra values (#6642)

Reduce allocations extracting Cassandra values
uujQ  ^https://api.github.com/repos/palantir/atlasdb/commits/43136fc95acea5ceb1decebcf906e547b21d5a99html_urlShttps://github.com/palantir/atlasdb/commit/43136fc95acea5ceb1decebcf906e547b21d5a99comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/43136fc95acea5ceb1decebcf906e547b21d5a99/commentsj?  }(loginschlosnaidMBj;  MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jQ  %https://api.github.com/users/schlosnaj_  https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujG  }(jd  web-flowjf  J/j;  MDQ6VXNlcjE5ODY0NDQ3jh  4https://avatars.githubusercontent.com/u/19864447?v=4jj  h5jQ  %https://api.github.com/users/web-flowj_  https://github.com/web-flowjm  /https://api.github.com/users/web-flow/followersjo  <https://api.github.com/users/web-flow/following{/other_user}jq  5https://api.github.com/users/web-flow/gists{/gist_id}js  <https://api.github.com/users/web-flow/starred{/owner}{/repo}ju  3https://api.github.com/users/web-flow/subscriptionsjw  *https://api.github.com/users/web-flow/orgsjy  +https://api.github.com/users/web-flow/reposj{  6https://api.github.com/users/web-flow/events{/privacy}j}  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j9  (d4f15c965b5d5c8ddaef2960069b178b5f63dc2ajQ  ^https://api.github.com/repos/palantir/atlasdb/commits/d4f15c965b5d5c8ddaef2960069b178b5f63dc2aj_  Shttps://github.com/palantir/atlasdb/commit/d4f15c965b5d5c8ddaef2960069b178b5f63dc2auastats}(totalK	additionsK}	deletionsK2ufiles](}(j9  (64ceb8b5e885dd8fcf5ecc5cbb31964147a5e35dfilenameEatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/Cell.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/43136fc95acea5ceb1decebcf906e547b21d5a99/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCell.javaraw_urlhttps://github.com/palantir/atlasdb/raw/43136fc95acea5ceb1decebcf906e547b21d5a99/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCell.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCell.java?ref=43136fc95acea5ceb1decebcf906e547b21d5a99patchX  @@ -137,6 +137,9 @@ public boolean equals(Object obj) {
             return false;
         }
         Cell other = (Cell) obj;
+        if (this.hashCode != 0 && other.hashCode != 0 && this.hashCode != other.hashCode) {
+            return false;
+        }
         return Arrays.equals(rowName, other.rowName) && Arrays.equals(columnName, other.columnName);
     }
 
@@ -147,15 +150,17 @@ public int hashCode() {
          * accessed via hash collections, but computation can be expensive, and
          * allow for benign data races.
          */
-        if (hashCode == 0) {
+        int hash = this.hashCode;
+        if (hash == 0) {
             /*
              * This hashCode() implementation has a rather unfortunate case where it is always 0 if the row name and
              * the column name match. We did not want to change it to keep backwards compatibility.
              * See {@link CellReference#goodHash()}
              */
-            hashCode = Arrays.hashCode(rowName) ^ Arrays.hashCode(columnName);
+            hash = Arrays.hashCode(rowName) ^ Arrays.hashCode(columnName);
+            this.hashCode = hash;
         }
-        return hashCode;
+        return hash;
     }
 
     @Overrideu}(j9  (b258440488d99978b8ead154e3fe2ac76efcff9fj  Fatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/Value.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/43136fc95acea5ceb1decebcf906e547b21d5a99/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FValue.javaj  https://github.com/palantir/atlasdb/raw/43136fc95acea5ceb1decebcf906e547b21d5a99/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FValue.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FValue.java?ref=43136fc95acea5ceb1decebcf906e547b21d5a99j  X]  @@ -18,7 +18,6 @@
 import com.fasterxml.jackson.annotation.JsonCreator;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.google.common.base.Function;
-import com.google.common.base.MoreObjects;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.util.Measurable;
 import com.palantir.logsafe.Preconditions;
@@ -38,7 +37,7 @@ public final class Value implements Serializable, Measurable {
 
     @JsonCreator
     public static Value create(@JsonProperty("contents") byte[] contents, @JsonProperty("timestamp") long timestamp) {
-        return new Value(MoreObjects.firstNonNull(contents, PtBytes.EMPTY_BYTE_ARRAY), timestamp);
+        return new Value(Objects.requireNonNullElse(contents, PtBytes.EMPTY_BYTE_ARRAY), timestamp);
     }
 
     public static Value createWithCopyOfData(byte[] contents, long timestamp) {u}(j9  (aa106081adcb5d28ce3ea1dc5396095caa8be759j  iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj  modifiedj  K
j  K	j  Kj  https://github.com/palantir/atlasdb/blob/43136fc95acea5ceb1decebcf906e547b21d5a99/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj  https://github.com/palantir/atlasdb/raw/43136fc95acea5ceb1decebcf906e547b21d5a99/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=43136fc95acea5ceb1decebcf906e547b21d5a99j  X  @@ -71,6 +71,7 @@
 import com.palantir.atlasdb.keyvalue.api.TimestampRangeDelete;
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolImpl.StartupChecks;
+import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServices.ColumnAndTimestamp;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServices.StartTsResultsCollector;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraVerifier.CassandraVerifierConfig;
 import com.palantir.atlasdb.keyvalue.cassandra.RowColumnRangeExtractor.RowColumnRangeResult;
@@ -109,7 +110,6 @@
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
-import com.palantir.util.Pair;
 import com.palantir.util.paging.AbstractPagingIterable;
 import com.palantir.util.paging.SimpleTokenBackedResultsPage;
 import com.palantir.util.paging.TokenBackedBasicResultsPage;
@@ -731,9 +731,9 @@ private SlicePredicate getNextLexicographicalSlicePredicate(List<ColumnOrSuperCo
         Preconditions.checkState(!columns.isEmpty(), "Columns was empty. This is probably an AtlasDb bug");
 
         Column lastColumn = columns.get(columns.size() - 1).getColumn();
-        Pair<byte[], Long> columnNameAndTimestamp = CassandraKeyValueServices.decompose(lastColumn.name);
+        ColumnAndTimestamp columnNameAndTimestamp = CassandraKeyValueServices.decomposeColumn(lastColumn.name);
         ByteBuffer nextLexicographicColumn = CassandraKeyValueServices.makeCompositeBuffer(
-                RangeRequests.nextLexicographicName(columnNameAndTimestamp.lhSide), Long.MAX_VALUE);
+                RangeRequests.nextLexicographicName(columnNameAndTimestamp.columnName()), Long.MAX_VALUE);
 
         return SlicePredicates.create(
                 Range.of(nextLexicographicColumn, Range.UNBOUND_END),
@@ -897,8 +897,8 @@ private Map<byte[], RowColumnRangeIterator> getRowsColumnRangeIteratorForSingleH
             IdentityHashMap<byte[], byte[]> incompleteRowsToNextColumns = new IdentityHashMap<>();
             for (Map.Entry<byte[], Column> e : rowsToLastCompositeColumns.entrySet()) {
                 byte[] row = e.getKey();
-                byte[] col =
-                        CassandraKeyValueServices.decomposeName(e.getValue()).getLhSide();
+                byte[] col = CassandraKeyValueServices.decomposeColumnName(e.getValue())
+                        .columnName();
                 // If we read a version of the cell before our start timestamp, it will be the most recent version
                 // readable to us and we can continue to the next column. Otherwise we have to continue reading
                 // this column.
@@ -1048,8 +1048,9 @@ public TokenBackedBasicResultsPage<Map.Entry<Cell, Value>, byte[]> apply(
                                                 .getResults()
                                                 .getOrDefault(row, Collections.emptyMap());
                                         ColumnOrSuperColumn lastColumn = values.get(values.size() - 1);
-                                        byte[] lastCol = CassandraKeyValueServices.decomposeName(lastColumn.getColumn())
-                                                .getLhSide();
+                                        byte[] lastCol = CassandraKeyValueServices.decomposeColumnName(
+                                                        lastColumn.getColumn())
+                                                .columnName();
                                         // Same idea as the getRows case to handle seeing only newer entries of a column
                                         boolean completedCell = ret.get(Cell.create(row, lastCol)) != null;
                                         if (isEndOfColumnRange(
@@ -1868,7 +1869,8 @@ public void putUnlessExists(final TableReference tableRef, final Map<Cell, byte[
                                 casResult.getCurrent_values().stream()
                                         .map(column -> Cell.create(
                                                 partition.getKey().toByteArray(),
-                                                CassandraKeyValueServices.decompose(column.bufferForName()).lhSide))
+                                                CassandraKeyValueServices.decomposeColumn(column.bufferForName())
+                                                        .columnName()))
                                         .collect(Collectors.toList())));
                     }
                 }
@@ -2001,7 +2003,9 @@ public void multiCheckAndSet(MultiCheckAndSetRequest request) throws MultiCheckA
             if (!casResult.isSuccess()) {
                 Map<Cell, byte[]> currentValues = KeyedStream.of(casResult.getCurrent_values())
                         .mapKeys(column -> Cell.create(
-                                request.rowName(), CassandraKeyValueServices.decompose(column.bufferForName()).lhSide))
+                                request.rowName(),
+                                CassandraKeyValueServices.decomposeColumn(column.bufferForName())
+                                        .columnName()))
                         .map(Column::getValue)
                         .collectToMap();
 u}(j9  (30fa4be28ed9373e33314f351232fafb73880065j  fatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServices.javaj  modifiedj  KDj  Kj  KSj  https://github.com/palantir/atlasdb/blob/43136fc95acea5ceb1decebcf906e547b21d5a99/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javaj  https://github.com/palantir/atlasdb/raw/43136fc95acea5ceb1decebcf906e547b21d5a99/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.java?ref=43136fc95acea5ceb1decebcf906e547b21d5a99j  X  @@ -29,7 +29,6 @@
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.util.MetricsManager;
-import com.palantir.common.annotation.Output;
 import com.palantir.common.base.RunnableCheckedException;
 import com.palantir.common.base.Throwables;
 import com.palantir.common.visitor.Visitor;
@@ -229,7 +228,16 @@ public static ByteBuffer makeCompositeBuffer(byte[] colName, long positiveTimest
         return buffer;
     }
 
+    /**
+     * @deprecated use {@link #decomposeColumn(ByteBuffer)}
+     */
+    @Deprecated
     static Pair<byte[], Long> decompose(ByteBuffer inputComposite) {
+        ColumnAndTimestamp columnAndTimestamp = decomposeColumn(inputComposite);
+        return Pair.create(columnAndTimestamp.columnName(), columnAndTimestamp.timestamp());
+    }
+
+    static ColumnAndTimestamp decomposeColumn(ByteBuffer inputComposite) {
         ByteBuffer composite = inputComposite.slice().order(ByteOrder.BIG_ENDIAN);
 
         short len = composite.getShort();
@@ -243,14 +251,23 @@ static Pair<byte[], Long> decompose(ByteBuffer inputComposite) {
         com.palantir.logsafe.Preconditions.checkArgument(shouldBe8 == 8);
         long ts = composite.getLong();
 
-        return Pair.create(colName, ~ts);
+        return new ColumnAndTimestamp(colName, ~ts);
+    }
+
+    /**
+     * @deprecated use {@link #decomposeColumnName(Column)}
+     */
+    @Deprecated
+    public static Pair<byte[], Long> decomposeName(Column column) {
+        ColumnAndTimestamp columnAndTimestamp = decomposeColumnName(column);
+        return Pair.create(columnAndTimestamp.columnName(), columnAndTimestamp.timestamp());
     }
 
     /**
      * Convenience method to get the name buffer for the specified column and
      * decompose it into the name and timestamp.
      */
-    public static Pair<byte[], Long> decomposeName(Column column) {
+    public static ColumnAndTimestamp decomposeColumnName(Column column) {
         ByteBuffer nameBuffer;
         if (column.isSetName()) {
             nameBuffer = column.bufferForName();
@@ -260,7 +277,7 @@ public static Pair<byte[], Long> decomposeName(Column column) {
             // the transform to bytes and wrap ourselves
             nameBuffer = ByteBuffer.wrap(column.getName());
         }
-        return decompose(nameBuffer);
+        return decomposeColumn(nameBuffer);
     }
 
     public static byte[] getBytesFromByteBuffer(ByteBuffer buffer) {
@@ -402,17 +419,13 @@ public Multimap<Cell, Long> getCollectedResults() {
 
         @Override
         public synchronized void visit(Map<ByteBuffer, List<ColumnOrSuperColumn>> results) {
-            extractTimestampResults(collectedResults, results);
-        }
-    }
-
-    private static void extractTimestampResults(
-            @Output Multimap<Cell, Long> ret, Map<ByteBuffer, List<ColumnOrSuperColumn>> results) {
-        for (Map.Entry<ByteBuffer, List<ColumnOrSuperColumn>> result : results.entrySet()) {
-            byte[] row = CassandraKeyValueServices.getBytesFromByteBuffer(result.getKey());
-            for (ColumnOrSuperColumn col : result.getValue()) {
-                Pair<byte[], Long> pair = CassandraKeyValueServices.decomposeName(col.column);
-                ret.put(Cell.create(row, pair.lhSide), pair.rhSide);
+            for (Map.Entry<ByteBuffer, List<ColumnOrSuperColumn>> result : results.entrySet()) {
+                byte[] row = CassandraKeyValueServices.getBytesFromByteBuffer(result.getKey());
+                for (ColumnOrSuperColumn col : result.getValue()) {
+                    ColumnAndTimestamp columnAndTimestamp = CassandraKeyValueServices.decomposeColumnName(col.column);
+                    Cell cell = Cell.create(row, columnAndTimestamp.columnName());
+                    collectedResults.put(cell, columnAndTimestamp.timestamp());
+                }
             }
         }
     }
@@ -429,4 +442,44 @@ static TableMetadata getMetadataOrDefaultToGeneric(byte[] metadata) {
         }
         return TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(metadata);
     }
+
+    public static class ColumnAndTimestamp {
+        private final long timestamp;
+        private final byte[] columnName;
+
+        ColumnAndTimestamp(byte[] columnName, long timestamp) {
+            this.columnName = columnName;
+            this.timestamp = timestamp;
+        }
+
+        public byte[] columnName() {
+            return columnName;
+        }
+
+        public long timestamp() {
+            return timestamp;
+        }
+
+        @Override
+        public boolean equals(Object obj) {
+            if (this == obj) {
+                return true;
+            }
+            if (obj == null || getClass() != obj.getClass()) {
+                return false;
+            }
+            ColumnAndTimestamp that = (ColumnAndTimestamp) obj;
+            return timestamp == that.timestamp && Arrays.equals(columnName, that.columnName);
+        }
+
+        @Override
+        public int hashCode() {
+            return 31 * Long.hashCode(timestamp) + Arrays.hashCode(columnName);
+        }
+
+        @Override
+        public String toString() {
+            return "ColumnAndTimestamp{columnName=" + Arrays.toString(columnName) + ", timestamp=" + timestamp + '}';
+        }
+    }
 }u}(j9  (5642b359735213f35a666d4a009a48e99cb87d71j  ]atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/ResultsExtractor.javaJ      j  modifiedj  K
j  Kj  Kj  https://github.com/palantir/atlasdb/blob/43136fc95acea5ceb1decebcf906e547b21d5a99/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.javaj  https://github.com/palantir/atlasdb/raw/43136fc95acea5ceb1decebcf906e547b21d5a99/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.java?ref=43136fc95acea5ceb1decebcf906e547b21d5a99j  XQ  @@ -22,11 +22,11 @@
 import com.palantir.atlasdb.keyvalue.api.ColumnSelection;
 import com.palantir.atlasdb.keyvalue.api.RangeRequests;
 import com.palantir.atlasdb.keyvalue.api.RowResult;
+import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServices.ColumnAndTimestamp;
 import com.palantir.atlasdb.keyvalue.impl.Cells;
 import com.palantir.atlasdb.keyvalue.impl.RowResults;
 import com.palantir.atlasdb.tracing.TraceStatistics;
 import com.palantir.atlasdb.util.MetricsManager;
-import com.palantir.util.Pair;
 import com.palantir.util.paging.SimpleTokenBackedResultsPage;
 import com.palantir.util.paging.TokenBackedBasicResultsPage;
 import java.nio.ByteBuffer;
@@ -55,14 +55,20 @@ public final byte[] extractResults(
             maxRow = updatedMaxRow(maxRow, row);
 
             for (ColumnOrSuperColumn c : colEntry.getValue()) {
-                Pair<byte[], Long> pair = CassandraKeyValueServices.decomposeName(c.getColumn());
+                ColumnAndTimestamp columnAndTimestamp = CassandraKeyValueServices.decomposeColumnName(c.getColumn());
                 byte[] value = c.getColumn().getValue();
 
                 // Read the value & the column name size; we're not currently trying to model all the overheads
-                TraceStatistics.incBytesRead(pair.lhSide);
+                TraceStatistics.incBytesRead(columnAndTimestamp.columnName());
                 TraceStatistics.incBytesRead(value);
 
-                internalExtractResult(startTs, selection, row, pair.lhSide, value, pair.rhSide);
+                internalExtractResult(
+                        startTs,
+                        selection,
+                        row,
+                        columnAndTimestamp.columnName(),
+                        value,
+                        columnAndTimestamp.timestamp());
             }
         }
         return maxRow;u}(j9  (99a083b77cf802540499e0f29bf3af47ae1ea5f4j  datlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/RowColumnRangeExtractor.javaj  modifiedj  Kj  Kj  K
j  https://github.com/palantir/atlasdb/blob/43136fc95acea5ceb1decebcf906e547b21d5a99/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRowColumnRangeExtractor.javaj  https://github.com/palantir/atlasdb/raw/43136fc95acea5ceb1decebcf906e547b21d5a99/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRowColumnRangeExtractor.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRowColumnRangeExtractor.java?ref=43136fc95acea5ceb1decebcf906e547b21d5a99j  X  @@ -21,9 +21,9 @@
 import com.palantir.atlasdb.AtlasDbMetricNames.CellFilterMetrics;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.Value;
+import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServices.ColumnAndTimestamp;
 import com.palantir.atlasdb.tracing.TraceStatistics;
 import com.palantir.atlasdb.util.MetricsManager;
-import com.palantir.util.Pair;
 import java.nio.ByteBuffer;
 import java.util.Collection;
 import java.util.Collections;
@@ -110,15 +110,15 @@ static RowColumnRangeResult extract(
             }
             rowsToRawColumnCount.put(row, columns.size());
             for (ColumnOrSuperColumn c : columns) {
-                Pair<byte[], Long> pair = CassandraKeyValueServices.decomposeName(c.getColumn());
+                ColumnAndTimestamp columnAndTimestamp = CassandraKeyValueServices.decomposeColumnName(c.getColumn());
                 // Column name
-                TraceStatistics.incBytesRead(pair.lhSide);
+                TraceStatistics.incBytesRead(columnAndTimestamp.columnName());
                 // Column value
                 TraceStatistics.incBytesRead(c.getColumn().getValue().length);
 
-                long ts = pair.rhSide;
+                long ts = columnAndTimestamp.timestamp();
                 if (ts < startTs) {
-                    Cell cell = Cell.create(row, pair.lhSide);
+                    Cell cell = Cell.create(row, columnAndTimestamp.columnName());
                     LinkedHashMap<Cell, Value> cellToValue =
                             collector.computeIfAbsent(row, _b -> new LinkedHashMap<>(1));
                     if (cellToValue.containsKey(cell)) {u}(j9  (c23d4ed1b56a12e3356ebc24b89c630b5fec3568j  [atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/ValueExtractor.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/43136fc95acea5ceb1decebcf906e547b21d5a99/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javaj  https://github.com/palantir/atlasdb/raw/43136fc95acea5ceb1decebcf906e547b21d5a99/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.java?ref=43136fc95acea5ceb1decebcf906e547b21d5a99j  XP  @@ -43,10 +43,12 @@ public void internalExtractResult(
             long startTs, ColumnSelection selection, byte[] row, byte[] col, byte[] val, long ts) {
         if (ts < startTs && selection.contains(col)) {
             Cell cell = Cell.create(row, col);
-            Value value = collector.computeIfAbsent(cell, _cell -> Value.create(val, ts));
-            if (value.getTimestamp() != ts) {
+            // explicitly not using `collector.computeIfAbsent` to avoid `LambdaForm.linkToTargetMethod` allocation
+            if (collector.containsKey(cell)) {
                 TraceStatistics.incSkippedValues(1L);
                 notLatestVisibleValueCellFilterCounter.inc();
+            } else {
+                collector.put(cell, Value.create(val, ts));
             }
         } else {
             TraceStatistics.incSkippedValues(1L);u}(j9  (5e7f986f7b70e5c550f97a4eafd0ef844c99fe20j  Oatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/util/MeasuringUtils.javaj  modifiedj  Kj  K
j  Kj  https://github.com/palantir/atlasdb/blob/43136fc95acea5ceb1decebcf906e547b21d5a99/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMeasuringUtils.javaj  https://github.com/palantir/atlasdb/raw/43136fc95acea5ceb1decebcf906e547b21d5a99/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMeasuringUtils.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMeasuringUtils.java?ref=43136fc95acea5ceb1decebcf906e547b21d5a99j  X  @@ -24,7 +24,6 @@
 import java.lang.reflect.Array;
 import java.util.Collection;
 import java.util.Map;
-import java.util.Map.Entry;
 import java.util.Set;
 import java.util.function.ToLongFunction;
 
@@ -64,7 +63,7 @@ public static long sizeOf(Multimap<? extends Measurable, Long> map) {
         return sizeOf(map.keys()) + ((long) map.size()) * Long.BYTES;
     }
 
-    public static long sizeOf(Entry<? extends Measurable, ? extends Measurable> entry) {
+    public static long sizeOf(Map.Entry<? extends Measurable, ? extends Measurable> entry) {
         return entry.getKey().sizeInBytes() + entry.getValue().sizeInBytes();
     }
 
@@ -86,16 +85,18 @@ private static <T> long sizeOfCollection(Collection<T> collection, ToLongFunctio
 
     private static <K, V> long sizeOfMap(
             Map<K, V> map, ToLongFunction<K> keyMeasurer, ToLongFunction<V> valueMeasurer) {
-        return map.entrySet().stream()
-                .mapToLong(
-                        entry -> keyMeasurer.applyAsLong(entry.getKey()) + valueMeasurer.applyAsLong(entry.getValue()))
-                .sum();
+        long sum = 0L;
+        for (Map.Entry<K, V> entry : map.entrySet()) {
+            sum += keyMeasurer.applyAsLong(entry.getKey()) + valueMeasurer.applyAsLong(entry.getValue());
+        }
+        return sum;
     }
 
     private static <T> long sizeOfRowResult(RowResult<T> rowResult, ToLongFunction<T> measurer) {
-        return rowResult.getRowNameSize()
-                + rowResult.getColumns().entrySet().stream()
-                        .mapToLong(entry -> entry.getKey().length + measurer.applyAsLong(entry.getValue()))
-                        .sum();
+        long sum = rowResult.getRowNameSize();
+        for (Map.Entry<byte[], T> entry : rowResult.getColumns().entrySet()) {
+            sum += entry.getKey().length + measurer.applyAsLong(entry.getValue());
+        }
+        return sum;
     }
 }u}(j9  (33a2a2d54d648f18cdab6d3f0ba9dad15dbe0a2fj  $changelog/@unreleased/pr-6642.v2.ymlj  addedj  Kj  K j  Kj  |https://github.com/palantir/atlasdb/blob/43136fc95acea5ceb1decebcf906e547b21d5a99/changelog%2F%40unreleased%2Fpr-6642.v2.ymlj  {https://github.com/palantir/atlasdb/raw/43136fc95acea5ceb1decebcf906e547b21d5a99/changelog%2F%40unreleased%2Fpr-6642.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6642.v2.yml?ref=43136fc95acea5ceb1decebcf906e547b21d5a99j  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Reduce allocations extracting Cassandra values
+  links:
+  - https://github.com/palantir/atlasdb/pull/6642ueu(0995b739130e9348c9ed6dbc56b28407ccad2417}(sha(0995b739130e9348c9ed6dbc56b28407ccad2417node_idEC_kwDOAjP5fdoAKDA5OTViNzM5MTMwZTkzNDhjOWVkNmRiYzU2YjI4NDA3Y2NhZDI0MTccommit}(author}(name	Tom Papkeemail+43675490+Toemmsche@users.noreply.github.comdate2023-07-21T14:06:50Zu	committer}(j  GitHubj  noreply@github.comj  2023-07-21T14:06:50Zumessage\[LWMeta] Add metadata metrics to TimeLock (#6665)

[LWMeta] Add metadata metrics to TimeLocktree}(j  (cdcf0211ab44902820a07c37ec761eb1430a0ec3url`https://api.github.com/repos/palantir/atlasdb/git/trees/cdcf0211ab44902820a07c37ec761eb1430a0ec3uj
  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0995b739130e9348c9ed6dbc56b28407ccad2417
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkupD6CRBK7hj4Ov3rIwAAgH8IADIwOXHHBWjlf9wA7Bnjzeaf
JBGdRu6YtFRKcfwAfdan17xXRHpS1NTNNjpwiyy4VQ/aVbPm2eGuGhMVuqctVk90
U4wDN7i2v3x1sstnC2/tnJa/eLKUPxU8Uh6QdDj0NIrEmzixtr5NpEC+0CCqDLKj
x+G9y3Dk0R8lyu0Zjl07HpYatdbTY1AME8l3VBU3WgXoDrIR3dcpU2TgDPGguVcr
di6/FvgShe7J1pBjwRSNQD4VyDjkkj64U1g8DTBoyfAKLPTZzq4Jrh+fmkFZDcAD
2r3q/n3wCMpEZTl784iuEQhv2PX5M+S/XgJcOEqHzA8GowiffVWX2KBmqflFh3U=
=QjYY
-----END PGP SIGNATURE-----
payloadXC  tree cdcf0211ab44902820a07c37ec761eb1430a0ec3
parent 4e050a9cb4f8f2b45b8b700df082f442d2fec694
author Tom Papke <43675490+Toemmsche@users.noreply.github.com> 1689948410 +0100
committer GitHub <noreply@github.com> 1689948410 +0000

[LWMeta] Add metadata metrics to TimeLock (#6665)

[LWMeta] Add metadata metrics to TimeLock
uuj
  ^https://api.github.com/repos/palantir/atlasdb/commits/0995b739130e9348c9ed6dbc56b28407ccad2417html_urlShttps://github.com/palantir/atlasdb/commit/0995b739130e9348c9ed6dbc56b28407ccad2417comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0995b739130e9348c9ed6dbc56b28407ccad2417/commentsj  }(login	ToemmscheidJboj  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j
  &https://api.github.com/users/Toemmschej
  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj  }(j
  web-flowj
  J/j  MDQ6VXNlcjE5ODY0NDQ3j
  4https://avatars.githubusercontent.com/u/19864447?v=4j!
  h5j
  %https://api.github.com/users/web-flowj
  https://github.com/web-flowj$
  /https://api.github.com/users/web-flow/followersj&
  <https://api.github.com/users/web-flow/following{/other_user}j(
  5https://api.github.com/users/web-flow/gists{/gist_id}j*
  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j,
  3https://api.github.com/users/web-flow/subscriptionsj.
  *https://api.github.com/users/web-flow/orgsj0
  +https://api.github.com/users/web-flow/reposj2
  6https://api.github.com/users/web-flow/events{/privacy}j4
  5https://api.github.com/users/web-flow/received_eventsj6
  Userj8
  uparents]}(j  (4e050a9cb4f8f2b45b8b700df082f442d2fec694j
  ^https://api.github.com/repos/palantir/atlasdb/commits/4e050a9cb4f8f2b45b8b700df082f442d2fec694j
  Shttps://github.com/palantir/atlasdb/commit/4e050a9cb4f8f2b45b8b700df082f442d2fec694uastats}(totalM0	additionsM	deletionsK)ufiles](}(j  (95dbc0937d276331c37eb26d73abac99d86081a9filename$changelog/@unreleased/pr-6665.v2.ymlstatusaddedjR
  KjS
  K changesKblob_url|https://github.com/palantir/atlasdb/blob/0995b739130e9348c9ed6dbc56b28407ccad2417/changelog%2F%40unreleased%2Fpr-6665.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/0995b739130e9348c9ed6dbc56b28407ccad2417/changelog%2F%40unreleased%2Fpr-6665.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6665.v2.yml?ref=0995b739130e9348c9ed6dbc56b28407ccad2417patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add metadata metrics to TimeLock'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6665u}(j  (9f4ca09c90e7cf8f9a893b182c9bb43cfe0be85fjX
  Ztimelock-agent/src/main/java/com/palantir/timelock/paxos/AsyncTimeLockServicesCreator.javajZ
  modifiedjR
  K	jS
  Kj\
  Kj]
  https://github.com/palantir/atlasdb/blob/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.javaj_
  https://github.com/palantir/atlasdb/raw/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.javaja
  https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.java?ref=0995b739130e9348c9ed6dbc56b28407ccad2417jc
  X  @@ -24,6 +24,8 @@
 import com.palantir.atlasdb.timelock.lock.AsyncLockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.atlasdb.timelock.lock.NonTransactionalLockService;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
 import com.palantir.atlasdb.timelock.paxos.LeadershipComponents;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.concurrent.NamedThreadFactory;
@@ -94,9 +96,14 @@ private AsyncTimelockService createRawAsyncTimelockService(
                 metricsManager.getRegistry(),
                 "async-lock-timeouts");
         return new AsyncTimelockServiceImpl(
-                AsyncLockService.createDefault(maybeEnhancedLockLog, reaperExecutor, timeoutExecutor),
+                AsyncLockService.createDefault(
+                        maybeEnhancedLockLog,
+                        reaperExecutor,
+                        timeoutExecutor,
+                        BufferMetrics.of(metricsManager.getTaggedRegistry())),
                 timestampServiceSupplier.get(),
-                maybeEnhancedLockLog);
+                maybeEnhancedLockLog,
+                RequestMetrics.of(metricsManager.getTaggedRegistry()));
     }
 
     /**u}(j  (a31b55bb26484c1c29dbf7dfa1fb463fb2596558jX
  timelock-impl/build.gradlejZ
  modifiedjR
  KjS
  K j\
  Kj]
  nhttps://github.com/palantir/atlasdb/blob/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fbuild.gradlej_
  mhttps://github.com/palantir/atlasdb/raw/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fbuild.gradleja
  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fbuild.gradle?ref=0995b739130e9348c9ed6dbc56b28407ccad2417jc
  X  @@ -1,4 +1,5 @@
 apply plugin: 'org.unbroken-dome.test-sets'
+apply plugin: 'com.palantir.metric-schema'
 
 apply from: "../gradle/shared.gradle"
 apply from: "../gradle/tests.gradle"
@@ -102,3 +103,8 @@ dependencies {
     testAnnotationProcessor 'org.immutables:value'
     testCompileOnly 'org.immutables:value::annotations'
 }
+
+license {
+    exclude '**/RequestMetrics.java'
+    exclude '**/BufferMetrics.java'
+}u}(j  (9621a8f2b663bdf3ad29791637809be64ba5a328jX
  Wtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/AsyncTimelockServiceImpl.javajZ
  modifiedjR
  KjS
  Kj\
  Kj]
  https://github.com/palantir/atlasdb/blob/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.javaj_
  https://github.com/palantir/atlasdb/raw/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.javaja
  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.java?ref=0995b739130e9348c9ed6dbc56b28407ccad2417jc
  X	  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.timelock;
 
+import com.codahale.metrics.Histogram;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.SettableFuture;
@@ -29,6 +30,7 @@
 import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.atlasdb.timelock.lock.TimeLimit;
 import com.palantir.atlasdb.timelock.lock.watch.ValueAndLockWatchStateUpdate;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
 import com.palantir.atlasdb.timelock.transaction.timestamp.DelegatingClientAwareManagedTimestampService;
 import com.palantir.atlasdb.timelock.transaction.timestamp.LeadershipGuardedClientAwareManagedTimestampService;
 import com.palantir.lock.LockDescriptor;
@@ -62,9 +64,14 @@ public class AsyncTimelockServiceImpl implements AsyncTimelockService {
     private final AsyncLockService lockService;
     private final LeadershipGuardedClientAwareManagedTimestampService timestampService;
     private final LockLog lockLog;
+    private final Histogram changeMetadataHistogram;
 
     public AsyncTimelockServiceImpl(
-            AsyncLockService lockService, ManagedTimestampService timestampService, LockLog lockLog) {
+            AsyncLockService lockService,
+            ManagedTimestampService timestampService,
+            LockLog lockLog,
+            RequestMetrics metadataMetrics) {
+        this.changeMetadataHistogram = metadataMetrics.changeMetadata();
         this.lockService = lockService;
         this.timestampService = new LeadershipGuardedClientAwareManagedTimestampService(
                 DelegatingClientAwareManagedTimestampService.createDefault(timestampService));
@@ -106,6 +113,9 @@ public ListenableFuture<LockResponseV2> lock(IdentifiedLockRequest request) {
                 request.getLockDescriptors(),
                 TimeLimit.of(request.getAcquireTimeoutMs()),
                 request.getMetadata());
+        changeMetadataHistogram.update(request.getMetadata()
+                .map(metadata -> metadata.lockDescriptorToChangeMetadata().size())
+                .orElse(0));
         lockLog.registerRequest(request, result);
         SettableFuture<LockResponseV2> response = SettableFuture.create();
         result.onComplete(() -> {u}(j  (d8fdf17d283ce2a18ecc0180c5fd05954b43ce29jX
  Ttimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/AsyncLockService.javajZ
  modifiedjR
  KjS
  Kj\
  Kj]
  https://github.com/palantir/atlasdb/blob/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javaj_
  https://github.com/palantir/atlasdb/raw/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javaja
  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.java?ref=0995b739130e9348c9ed6dbc56b28407ccad2417jc
  X^  @@ -19,6 +19,7 @@
 import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingService;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingServiceImpl;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LeaderTime;
 import com.palantir.lock.v2.LockToken;
@@ -58,12 +59,15 @@ public class AsyncLockService implements Closeable {
      * @return an asynchronous lock service
      */
     public static AsyncLockService createDefault(
-            LockLog lockLog, ScheduledExecutorService reaperExecutor, ScheduledExecutorService timeoutExecutor) {
+            LockLog lockLog,
+            ScheduledExecutorService reaperExecutor,
+            ScheduledExecutorService timeoutExecutor,
+            BufferMetrics bufferMetrics) {
 
         LeaderClock clock = LeaderClock.create();
 
         HeldLocksCollection heldLocks = HeldLocksCollection.create(clock);
-        LockWatchingService lockWatchingService = new LockWatchingServiceImpl(heldLocks, clock.id());
+        LockWatchingService lockWatchingService = new LockWatchingServiceImpl(heldLocks, clock.id(), bufferMetrics);
         LockAcquirer lockAcquirer = new LockAcquirer(lockLog, timeoutExecutor, clock, lockWatchingService);
 
         return new AsyncLockService(u}(j  (5cce128c5d57690a5875d483a761058f6a0b4ceejX
  etimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/ArrayLockEventSlidingWindow.javajZ
  modifiedjR
  K0jS
  Kj\
  K2j]
  https://github.com/palantir/atlasdb/blob/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindow.javaj_
  https://github.com/palantir/atlasdb/raw/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindow.javaja
  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindow.java?ref=0995b739130e9348c9ed6dbc56b28407ccad2417jc
  X  @@ -16,9 +16,15 @@
 
 package com.palantir.atlasdb.timelock.lock.watch;
 
+import com.codahale.metrics.Counter;
 import com.google.common.math.LongMath;
 import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
+import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
+import com.palantir.lock.watch.UnlockEvent;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Optional;
@@ -29,10 +35,14 @@ public class ArrayLockEventSlidingWindow {
     private final LockWatchEvent[] buffer;
     private final int maxSize;
     private long nextSequence = 0;
+    private final Counter changeMetadataCounter;
+    private final Counter eventsWithMetadataCounter;
 
-    ArrayLockEventSlidingWindow(int maxSize) {
+    ArrayLockEventSlidingWindow(int maxSize, BufferMetrics bufferMetrics) {
         this.buffer = new LockWatchEvent[maxSize];
         this.maxSize = maxSize;
+        this.changeMetadataCounter = bufferMetrics.changeMetadata();
+        this.eventsWithMetadataCounter = bufferMetrics.eventsWithMetadata();
     }
 
     long lastVersion() {
@@ -41,10 +51,27 @@ long lastVersion() {
 
     void add(LockWatchEvent.Builder eventBuilder) {
         LockWatchEvent event = eventBuilder.build(nextSequence);
-        buffer[LongMath.mod(nextSequence, maxSize)] = event;
+        int index = LongMath.mod(nextSequence, maxSize);
+
+        Optional.ofNullable(buffer[index])
+                .flatMap(replacedEvent -> replacedEvent.accept(LockWatchEventMetadataVisitor.INSTANCE))
+                .ifPresent(this::decrementMetadataCounters);
+        event.accept(LockWatchEventMetadataVisitor.INSTANCE).ifPresent(this::incrementMetadataCounters);
+
+        buffer[index] = event;
         nextSequence++;
     }
 
+    private void incrementMetadataCounters(LockRequestMetadata metadata) {
+        changeMetadataCounter.inc(metadata.lockDescriptorToChangeMetadata().size());
+        eventsWithMetadataCounter.inc();
+    }
+
+    private void decrementMetadataCounters(LockRequestMetadata metadata) {
+        changeMetadataCounter.dec(metadata.lockDescriptorToChangeMetadata().size());
+        eventsWithMetadataCounter.dec();
+    }
+
     public Optional<List<LockWatchEvent>> getNextEvents(long version) {
         if (versionInTheFuture(version) || versionTooOld(version)) {
             return Optional.empty();
@@ -72,4 +99,23 @@ private boolean versionInTheFuture(long version) {
     private boolean versionTooOld(long version) {
         return lastVersion() - version > maxSize;
     }
+
+    private enum LockWatchEventMetadataVisitor implements LockWatchEvent.Visitor<Optional<LockRequestMetadata>> {
+        INSTANCE;
+
+        @Override
+        public Optional<LockRequestMetadata> visit(LockEvent lockEvent) {
+            return lockEvent.metadata();
+        }
+
+        @Override
+        public Optional<LockRequestMetadata> visit(UnlockEvent unlockEvent) {
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<LockRequestMetadata> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
+            return Optional.empty();
+        }
+    }
 }u}(j  (bca869f56d71be63d77a6b2c8b65c3bbe2af41c8jX
  Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImpl.javajZ
  modifiedjR
  K	jS
  Kj\
  Kj]
  https://github.com/palantir/atlasdb/blob/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javaj_
  https://github.com/palantir/atlasdb/raw/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javaja
  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.java?ref=0995b739130e9348c9ed6dbc56b28407ccad2417jc
  Xm  @@ -19,6 +19,7 @@
 import com.google.common.collect.RangeSet;
 import com.palantir.atlasdb.timelock.lock.AsyncLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.watch.LockEvent;
@@ -38,12 +39,17 @@
 
 public class LockEventLogImpl implements LockEventLog {
     private final UUID logId;
-    private final ArrayLockEventSlidingWindow slidingWindow = new ArrayLockEventSlidingWindow(1000);
+    private final ArrayLockEventSlidingWindow slidingWindow;
     private final Supplier<LockWatches> watchesSupplier;
     private final HeldLocksCollection heldLocksCollection;
 
-    LockEventLogImpl(UUID logId, Supplier<LockWatches> watchesSupplier, HeldLocksCollection heldLocksCollection) {
+    LockEventLogImpl(
+            UUID logId,
+            Supplier<LockWatches> watchesSupplier,
+            HeldLocksCollection heldLocksCollection,
+            BufferMetrics bufferMetrics) {
         this.logId = logId;
+        this.slidingWindow = new ArrayLockEventSlidingWindow(1000, bufferMetrics);
         this.watchesSupplier = watchesSupplier;
         this.heldLocksCollection = heldLocksCollection;
     }
@@ -64,6 +70,7 @@ public synchronized <T> ValueAndLockWatchStateUpdate<T> runTask(
     @Override
     public synchronized void logLock(
             Set<LockDescriptor> locksTakenOut, LockToken lockToken, Optional<LockRequestMetadata> metadata) {
+
         slidingWindow.add(LockEvent.builder(locksTakenOut, lockToken, metadata));
     }
 u}(j  (64e2e75476f17ef9c28864338c16eb43bc5cd443jX
  atimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javajZ
  modifiedjR
  KjS
  Kj\
  K
j]
  https://github.com/palantir/atlasdb/blob/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj_
  https://github.com/palantir/atlasdb/raw/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaja
  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=0995b739130e9348c9ed6dbc56b28407ccad2417jc
  X  @@ -22,6 +22,7 @@
 import com.google.common.collect.TreeRangeSet;
 import com.palantir.atlasdb.timelock.api.LockWatchRequest;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LeadershipId;
@@ -72,13 +73,14 @@ public class LockWatchingServiceImpl implements LockWatchingService {
     private final AtomicReference<LockWatches> watches = new AtomicReference<>(LockWatches.create());
     private final ReadWriteLock watchesLock = new ReentrantReadWriteLock(true);
 
-    public LockWatchingServiceImpl(HeldLocksCollection heldLocksCollection, LeadershipId leadershipId) {
-        this(leadershipId.id(), heldLocksCollection);
+    public LockWatchingServiceImpl(
+            HeldLocksCollection heldLocksCollection, LeadershipId leadershipId, BufferMetrics lockWatchMetrics) {
+        this(leadershipId.id(), heldLocksCollection, lockWatchMetrics);
     }
 
     @VisibleForTesting
-    LockWatchingServiceImpl(UUID logId, HeldLocksCollection heldLocksCollection) {
-        this.lockEventLog = new LockEventLogImpl(logId, watches::get, heldLocksCollection);
+    LockWatchingServiceImpl(UUID logId, HeldLocksCollection heldLocksCollection, BufferMetrics lockWatchMetrics) {
+        this.lockEventLog = new LockEventLogImpl(logId, watches::get, heldLocksCollection, lockWatchMetrics);
     }
 
     @Overrideu}(j  (1bda947c93dfade6c8d6e97379c8ca0fa7fed706jX
  .timelock-impl/src/main/metrics/lockwatches.ymljZ
  addedjR
  KjS
  K j\
  Kj]
  https://github.com/palantir/atlasdb/blob/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Flockwatches.ymlj_
  https://github.com/palantir/atlasdb/raw/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Flockwatches.ymlja
  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Flockwatches.yml?ref=0995b739130e9348c9ed6dbc56b28407ccad2417jc
  X  @@ -0,0 +1,20 @@
+options:
+  javaPackage: 'com.palantir.atlasdb.timelock.lockwatches'
+
+namespaces:
+  request:
+    docs: Metrics tracking LockWatch-related things in requests received by TimeLock
+    metrics:
+      changeMetadata:
+        docs: Number of change metadata objects contained in a lock request
+        type: histogram
+  buffer:
+    docs: Metrics tracking things currently stored in the LockWatchEvent buffer (sliding window)
+    metrics:
+      eventsWithMetadata:
+        docs: Number of events currently stored in the buffer that have non-absent metadata
+        type: counter
+      changeMetadata:
+        docs: Total number of change metadata objects currently stored in the buffer across all events
+        type: counter
+u}(j  (d612d1bb1d5eea09655d460bf0f0ad1077579a6djX
  [timelock-impl/src/test/java/com/palantir/atlasdb/timelock/AsyncTimelockServiceImplTest.javajZ
  modifiedjR
  KjS
  Kj\
  Kj]
  https://github.com/palantir/atlasdb/blob/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImplTest.javaj_
  https://github.com/palantir/atlasdb/raw/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImplTest.javaja
  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImplTest.java?ref=0995b739130e9348c9ed6dbc56b28407ccad2417jc
  X  @@ -21,15 +21,16 @@
 
 import com.palantir.atlasdb.timelock.lock.AsyncLockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
 import com.palantir.timestamp.ManagedTimestampService;
 import org.junit.Test;
 
 public class AsyncTimelockServiceImplTest {
     @Test
     public void delegatesInitializationCheck() {
         ManagedTimestampService mockMts = mock(ManagedTimestampService.class);
-        AsyncTimelockServiceImpl service =
-                new AsyncTimelockServiceImpl(mock(AsyncLockService.class), mockMts, mock(LockLog.class));
+        AsyncTimelockServiceImpl service = new AsyncTimelockServiceImpl(
+                mock(AsyncLockService.class), mockMts, mock(LockLog.class), mock(RequestMetrics.class));
         when(mockMts.isInitialized()).thenReturn(false).thenReturn(true);
 
         assertThat(service.isInitialized()).isFalse();u}(j  (b88b9f6eb2608d0c4d5fa96c20f636f1dc76adbdjX
  Xtimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/AsyncLockServiceTest.javajZ
  modifiedjR
  KjS
  Kj\
  Kj]
  https://github.com/palantir/atlasdb/blob/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javaj_
  https://github.com/palantir/atlasdb/raw/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javaja
  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.java?ref=0995b739130e9348c9ed6dbc56b28407ccad2417jc
  X  @@ -18,6 +18,8 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.concurrent.ScheduledExecutorService;
@@ -29,8 +31,12 @@ public class AsyncLockServiceTest {
     public void executorsShutDownAfterClose() {
         ScheduledExecutorService reaperExecutor = PTExecutors.newSingleThreadScheduledExecutor();
         ScheduledExecutorService timeoutExecutor = PTExecutors.newSingleThreadScheduledExecutor();
+        MetricsManager metricsManager = MetricsManagers.createForTests();
         AsyncLockService asyncLockService = AsyncLockService.createDefault(
-                new LockLog(MetricsManagers.createForTests().getRegistry(), () -> 1L), reaperExecutor, timeoutExecutor);
+                new LockLog(metricsManager.getRegistry(), () -> 1L),
+                reaperExecutor,
+                timeoutExecutor,
+                BufferMetrics.of(metricsManager.getTaggedRegistry()));
 
         asyncLockService.close();
         assertThat(reaperExecutor.isShutdown()).isTrue();u}(j  (01d2292522bddd65342f57b0925c5712c567ecbfjX
  itimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/ArrayLockEventSlidingWindowTest.javajZ
  modifiedjR
  KZjS
  Kj\
  Kmj]
  https://github.com/palantir/atlasdb/blob/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.javaj_
  https://github.com/palantir/atlasdb/raw/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.javaja
  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.java?ref=0995b739130e9348c9ed6dbc56b28407ccad2417jc
  X  @@ -18,17 +18,39 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchEvent;
 import java.util.List;
+import java.util.Optional;
+import java.util.Set;
+import java.util.UUID;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import java.util.stream.LongStream;
-import org.immutables.value.Value;
 import org.junit.Test;
 
 public class ArrayLockEventSlidingWindowTest {
     private static final int WINDOW_SIZE = 10;
 
-    private final ArrayLockEventSlidingWindow slidingWindow = new ArrayLockEventSlidingWindow(WINDOW_SIZE);
+    private static final LockDescriptor LOCK_1 = StringLockDescriptor.of("abc");
+    private static final LockDescriptor LOCK_2 = StringLockDescriptor.of("def");
+    private static final LockDescriptor LOCK_3 = StringLockDescriptor.of("ghi");
+    private static final LockToken TOKEN = LockToken.of(UUID.randomUUID());
+
+    private final BufferMetrics bufferMetrics =
+            BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
+    private final ArrayLockEventSlidingWindow slidingWindow =
+            new ArrayLockEventSlidingWindow(WINDOW_SIZE, bufferMetrics);
 
     @Test
     public void whenLastKnownVersionIsAfterCurrentReturnEmpty() {
@@ -72,6 +94,68 @@ public void returnRangeAfterBoundary() {
         assertContainsNextEventsInOrder(10, 11, 14);
     }
 
+    @Test
+    public void countsMetadataCorrectlyStartingFromEmptyBuffer() {
+        LockRequestMetadata metadata = LockRequestMetadata.of(ImmutableMap.of(
+                LOCK_1, ChangeMetadata.unchanged(), LOCK_2, ChangeMetadata.created(PtBytes.toBytes("foo"))));
+        LockRequestMetadata metadata2 =
+                LockRequestMetadata.of(ImmutableMap.of(LOCK_3, ChangeMetadata.deleted(PtBytes.toBytes("bar"))));
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_1, LOCK_2), Optional.of(metadata));
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_3), Optional.of(metadata2));
+
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(3);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(2);
+
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_1), Optional.empty());
+        addLockEventWithMetadata(ImmutableSet.of(), Optional.of(LockRequestMetadata.of(ImmutableMap.of())));
+
+        assertThat(bufferMetrics.changeMetadata().getCount())
+                .as("Absent metadata should count for nothing")
+                .isEqualTo(3);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount())
+                .as("Empty metadata map should count for present metadata")
+                .isEqualTo(3);
+    }
+
+    @Test
+    public void maintainsCorrectMetadataCountWhenOverwritingBuffer() {
+        assertThat(WINDOW_SIZE)
+                .as("This test does not work with small windows since we are going to replace multiple events once"
+                        + " our buffer is full. With small windows, we might overwrite the wrong events.")
+                .isGreaterThanOrEqualTo(5);
+
+        IntStream.range(0, WINDOW_SIZE).forEach(i -> {
+            LockDescriptor lock = StringLockDescriptor.of("lock" + i);
+            LockRequestMetadata metadata = LockRequestMetadata.of(
+                    ImmutableMap.of(lock, ChangeMetadata.created(PtBytes.toBytes("created" + i))));
+            addLockEventWithMetadata(ImmutableSet.of(lock), Optional.of(metadata));
+        });
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+
+        // Counts are maintained if we replace an event with metadata of same size
+        addLockEventWithMetadata(
+                ImmutableSet.of(LOCK_1),
+                Optional.of(LockRequestMetadata.of(ImmutableMap.of(LOCK_1, ChangeMetadata.unchanged()))));
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+
+        // Both counts can decrease
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_1), Optional.empty());
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
+
+        // ChangeMetadata count can increase
+        addLockEventWithMetadata(
+                ImmutableSet.of(LOCK_1, LOCK_2, LOCK_3),
+                Optional.of(LockRequestMetadata.of(ImmutableMap.of(
+                        LOCK_1, ChangeMetadata.created(PtBytes.toBytes("created")),
+                        LOCK_2, ChangeMetadata.unchanged(),
+                        LOCK_3, ChangeMetadata.updated(PtBytes.toBytes("old"), PtBytes.toBytes("new"))))));
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE + 1);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
+    }
+
     private void whenLogContainsEvents0To4() {
         // Log contains events [0,1,2,3,4]
         addEvents(5);
@@ -101,24 +185,11 @@ private void assertContainsNextEventsInOrder(long version, int startInclusive, i
                         .collect(Collectors.toList()));
     }
 
-    private static LockWatchEvent createEvent(long sequence) {
-        return ImmutableFakeLockWatchEvent.of(sequence, 1);
+    private void addLockEventWithMetadata(Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {
+        slidingWindow.add(LockEvent.builder(lockDescriptors, TOKEN, metadata));
     }
 
-    @Value.Immutable
-    abstract static class FakeLockWatchEvent implements LockWatchEvent {
-        @Override
-        @Value.Parameter
-        public abstract long sequence();
-
-        @Override
-        @Value.Parameter
-        public abstract int size();
-
-        @Override
-        public <T> T accept(LockWatchEvent.Visitor<T> visitor) {
-            // do nothing
-            return null;
-        }
+    private static LockWatchEvent createEvent(long sequence) {
+        return LockEvent.builder(ImmutableSet.of(), TOKEN).build(sequence);
     }
 }u}(j  (428343d34d878fec95d1805731488da912fac28ajX
  ^timelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImplTest.javajZ
  modifiedjR
  KjS
  Kj\
  Kj]
  https://github.com/palantir/atlasdb/blob/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.javaj_
  https://github.com/palantir/atlasdb/raw/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.javaja
  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.java?ref=0995b739130e9348c9ed6dbc56b28407ccad2417jc
  X{  @@ -30,6 +30,8 @@
 import com.palantir.atlasdb.timelock.lock.ExclusiveLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocks;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
@@ -67,7 +69,11 @@ public class LockEventLogImplTest {
     private final AtomicReference<LockWatches> lockWatches = new AtomicReference<>(LockWatches.create());
     private final HeldLocksCollection heldLocksCollection = mock(HeldLocksCollection.class);
     private final HeldLocks heldLocks = mock(HeldLocks.class);
-    private final LockEventLog log = new LockEventLogImpl(LOG_ID, lockWatches::get, heldLocksCollection);
+    private final LockEventLog log = new LockEventLogImpl(
+            LOG_ID,
+            lockWatches::get,
+            heldLocksCollection,
+            BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
 
     @Before
     public void setupMocks() {u}(j  (9351b2c3e3ec099a25284148e19fee9daed18290jX
  etimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImplTest.javajZ
  modifiedjR
  KjS
  Kj\
  Kj]
  https://github.com/palantir/atlasdb/blob/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaj_
  https://github.com/palantir/atlasdb/raw/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaja
  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.java?ref=0995b739130e9348c9ed6dbc56b28407ccad2417jc
  X  @@ -33,6 +33,8 @@
 import com.palantir.atlasdb.timelock.lock.ExclusiveLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocks;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.AtlasCellLockDescriptor;
 import com.palantir.lock.AtlasRowLockDescriptor;
@@ -75,7 +77,8 @@ public class LockWatchingServiceImplTest {
     private static final ChangeMetadata DUMMY_METADATA = ChangeMetadata.unchanged();
 
     private final HeldLocksCollection locks = mock(HeldLocksCollection.class);
-    private final LockWatchingService lockWatcher = new LockWatchingServiceImpl(LOG_ID, locks);
+    private final LockWatchingService lockWatcher = new LockWatchingServiceImpl(
+            LOG_ID, locks, BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
 
     private final HeldLocks heldLocks = mock(HeldLocks.class);
 u}(j  (4d9311a79afe49e73ddb3b80bfc770f03af846c4jX
  ftimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataTest.javajZ
  modifiedjR
  KjS
  Kj\
  Kj]
  https://github.com/palantir/atlasdb/blob/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj_
  https://github.com/palantir/atlasdb/raw/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaja
  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.java?ref=0995b739130e9348c9ed6dbc56b28407ccad2417jc
  X  @@ -32,6 +32,10 @@
 import com.palantir.atlasdb.timelock.api.LockWatchRequest;
 import com.palantir.atlasdb.timelock.lock.AsyncLockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
+import com.palantir.atlasdb.util.MetricsManager;
+import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.StringLockDescriptor;
@@ -67,10 +71,16 @@ public class AsyncTimeLockServiceMetadataTest {
 
     private final LockLog lockLog = new LockLog(new MetricRegistry(), () -> 10000L);
     private final ScheduledExecutorService scheduledExecutorService = new DeterministicScheduler();
-    private final AsyncLockService asyncLockService =
-            AsyncLockService.createDefault(lockLog, scheduledExecutorService, scheduledExecutorService);
+
+    private final MetricsManager metricsManager = MetricsManagers.createForTests();
+    private final RequestMetrics requestMetrics = RequestMetrics.of(metricsManager.getTaggedRegistry());
+    private final AsyncLockService asyncLockService = AsyncLockService.createDefault(
+            lockLog,
+            scheduledExecutorService,
+            scheduledExecutorService,
+            BufferMetrics.of(metricsManager.getTaggedRegistry()));
     private final AsyncTimelockServiceImpl timeLockService =
-            new AsyncTimelockServiceImpl(asyncLockService, new InMemoryTimestampService(), lockLog);
+            new AsyncTimelockServiceImpl(asyncLockService, new InMemoryTimestampService(), lockLog, requestMetrics);
     private final ConjureStartTransactionsRequest startTransactionsRequestWithInitialVersion =
             ConjureStartTransactionsRequest.builder()
                     .requestId(UUID.randomUUID())
@@ -135,6 +145,19 @@ public void cannotPassDownMetadataForUnknownLockDescriptors() {
                 .withMessage("Unknown lock descriptor in metadata");
     }
 
+    @Test
+    public void updatesRequestMetricsCorrectly() {
+        timeLockService.lock(standardRequestWithMetadata(ImmutableMap.of()));
+        timeLockService.lock(standardRequestWithMetadata(ImmutableMap.of(
+                StringLockDescriptor.of("1"), ChangeMetadata.unchanged(),
+                StringLockDescriptor.of("2"), ChangeMetadata.unchanged(),
+                StringLockDescriptor.of("3"), ChangeMetadata.unchanged())));
+        timeLockService.lock(ImmutableIdentifiedLockRequest.copyOf(WATCHED_LOCK_REQUEST_WITH_METADATA)
+                .withMetadata(Optional.empty()));
+
+        assertThat(requestMetrics.changeMetadata().getSnapshot().getValues()).containsOnly(0, 3, 0);
+    }
+
     private List<Optional<LockRequestMetadata>> getAllLockEventsMetadata() {
         return LockWatchIntegrationTestUtilities.extractMetadata(getAllLockWatchEvents());
     }u}(j  (a1c26b303ce52ac19eaf79c922923c3074b142f2jX
  ]timelock-server/src/test/java/com/palantir/atlasdb/timelock/lock/AsyncLockServiceEteTest.javajZ
  modifiedjR
  KjS
  Kj\
  Kj]
  https://github.com/palantir/atlasdb/blob/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceEteTest.javaj_
  https://github.com/palantir/atlasdb/raw/0995b739130e9348c9ed6dbc56b28407ccad2417/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceEteTest.javaja
  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceEteTest.java?ref=0995b739130e9348c9ed6dbc56b28407ccad2417jc
  X  @@ -22,6 +22,8 @@
 import com.google.common.util.concurrent.Uninterruptibles;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingService;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingServiceImpl;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.flake.FlakeRetryingRule;
 import com.palantir.flake.ShouldRetry;
 import com.palantir.leader.NotCurrentLeaderException;
@@ -63,7 +65,10 @@ public class AsyncLockServiceEteTest {
 
     private final LockLog lockLog = new LockLog(new MetricRegistry(), () -> 2L);
     private final HeldLocksCollection heldLocks = HeldLocksCollection.create(clock);
-    private final LockWatchingService lockWatchingService = new LockWatchingServiceImpl(heldLocks, clock.id());
+    private final LockWatchingService lockWatchingService = new LockWatchingServiceImpl(
+            heldLocks,
+            clock.id(),
+            BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
     private final AsyncLockService service = new AsyncLockService(
             new LockCollection(),
             new ImmutableTimestampTracker(),ueu(c30defdb9ddec135436100e43c494118c45c9bbb}(sha(c30defdb9ddec135436100e43c494118c45c9bbbnode_idEC_kwDOAjP5fdoAKGMzMGRlZmRiOWRkZWMxMzU0MzYxMDBlNDNjNDk0MTE4YzQ1YzliYmIcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-21T10:19:10Zu	committer}(j
  Lucas Meirelesj
  meireles31@msn.comj
  2023-06-21T10:19:10ZumessageNonEmpty -> Presenttree}(j
  (67fbd97015f0993a7c002ae50d4a2de574b135b3url`https://api.github.com/repos/palantir/atlasdb/git/trees/67fbd97015f0993a7c002ae50d4a2de574b135b3uj
  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c30defdb9ddec135436100e43c494118c45c9bbb
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSSzp4ACgkQJd22kJ7J
Gix1yAf+KULX76UrGOzrD3zVA2qUCtHrjAcT5Tp5wkrNsax5/mqySv4qma6YKOTW
2kWOqbaUu3PTFolWfBtNirVxrcPq/7yyQF/wmec0Pj/UY7h6iJWfLifvPY719kNv
0OugYWLBzbS8278eqoUOGPOkjkvkvN2Em/A2PX9RoAn/ELaUbZ9z93zIC8pU24YO
YZaQbcgvD9+izEbUGmtBfZUslUrAjKeRW4wt4e7ySKAsD+2dBXJweeKAnwIrsVJR
VLxS0QAbaAf63mevXk7acXOQ8uFDYPpFU+V8VqhDZdsjuNekn6iVl/eLnA+wuSSa
M9uEwd31HN/gmVybjBFP6qvch7u2ng==
=Birl
-----END PGP SIGNATURE-----payloadtree 67fbd97015f0993a7c002ae50d4a2de574b135b3
parent cff4e026530a55040e59bf34afc47bb4978c2750
author Lucas Meireles <meireles31@msn.com> 1687342750 +0100
committer Lucas Meireles <meireles31@msn.com> 1687342750 +0100

NonEmpty -> Present
uuj
  ^https://api.github.com/repos/palantir/atlasdb/commits/c30defdb9ddec135436100e43c494118c45c9bbbhtml_urlShttps://github.com/palantir/atlasdb/commit/c30defdb9ddec135436100e43c494118c45c9bbbcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c30defdb9ddec135436100e43c494118c45c9bbb/commentsj
  }(loginLucasIMEidJg j
  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j
  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj
  }(j
  LucasIMEj  Jg j
  MDQ6VXNlcjY3ODczMTE=j  3https://avatars.githubusercontent.com/u/6787311?v=4j  h5j
  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIMEj  /https://api.github.com/users/LucasIME/followersj  <https://api.github.com/users/LucasIME/following{/other_user}j  5https://api.github.com/users/LucasIME/gists{/gist_id}j  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j  3https://api.github.com/users/LucasIME/subscriptionsj  *https://api.github.com/users/LucasIME/orgsj  +https://api.github.com/users/LucasIME/reposj!  6https://api.github.com/users/LucasIME/events{/privacy}j#  5https://api.github.com/users/LucasIME/received_eventsj%  Userj'  uparents]}(j
  (cff4e026530a55040e59bf34afc47bb4978c2750j
  ^https://api.github.com/repos/palantir/atlasdb/commits/cff4e026530a55040e59bf34afc47bb4978c2750j  Shttps://github.com/palantir/atlasdb/commit/cff4e026530a55040e59bf34afc47bb4978c2750uastats}(totalK!	additionsK	deletionsKufiles]}(j
  (e22042c7f395616fc60be8035de6f23d036c05bcfilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedjA  KjB  KchangesK!blob_urlhttps://github.com/palantir/atlasdb/blob/c30defdb9ddec135436100e43c494118c45c9bbb/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c30defdb9ddec135436100e43c494118c45c9bbb/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=c30defdb9ddec135436100e43c494118c45c9bbbpatchX  @@ -730,8 +730,8 @@ private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSor
     }
 
     private Map<Cell, Value> validateBatch(
-            TableReference tableRef, List<Map.Entry<Cell, Value>> batch, boolean allPossibleCellsReadAndNonEmpty) {
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndNonEmpty);
+            TableReference tableRef, List<Map.Entry<Cell, Value>> batch, boolean allPossibleCellsReadAndPresent) {
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
         return ImmutableMap.copyOf(batch);
     }
 
@@ -937,7 +937,7 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
 
         // We don't need to read any cells that were written locally. Making an immutable copy because otherwise adding
         // values to the result map would prevent us from calculating the correct size for
-        // allPossibleCellsReadAndNonEmpty, since Sets.difference gives us a live view.
+        // allPossibleCellsReadAndPresent, since Sets.difference gives us a live view.
         Set<Cell> cellsWithNoLocalWrites = ImmutableSet.copyOf(Sets.difference(cells, result.keySet()));
         return Futures.transform(
                 getFromKeyValueService(tableRef, cellsWithNoLocalWrites, asyncKeyValueService, asyncTransactionService),
@@ -955,10 +955,10 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
                                 SafeArg.of("durationMillis", getMillis));
                     }
 
-                    boolean allPossibleCellsReadAndNonEmpty =
+                    boolean allPossibleCellsReadAndPresent =
                             fromKeyValueService.size() == cellsWithNoLocalWrites.size();
                     validatePreCommitRequirementsOnReadIfNecessary(
-                            tableRef, getStartTimestamp(), allPossibleCellsReadAndNonEmpty);
+                            tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
                     return removeEmptyColumns(result, tableRef);
                 },
                 MoreExecutors.directExecutor());
@@ -980,8 +980,8 @@ public Map<Cell, byte[]> getIgnoringLocalWrites(TableReference tableRef, Set<Cel
 
         TraceStatistics.incEmptyValues(unfiltered.size() - filtered.size());
 
-        boolean allPossibleCellsReadAndNonEmpty = unfiltered.size() == cells.size();
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndNonEmpty);
+        boolean allPossibleCellsReadAndPresent = unfiltered.size() == cells.size();
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
 
         return filtered;
     }
@@ -1184,21 +1184,20 @@ private void validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(TableRe
             lock, but never checked it and values could've been swept under us.
     */
     private void validatePreCommitRequirementsOnReadIfNecessary(
-            TableReference tableRef, long timestamp, boolean allPossibleCellsReadAndNonEmpty) {
-        if (isValidationNecessaryOnReads(tableRef, allPossibleCellsReadAndNonEmpty)) {
+            TableReference tableRef, long timestamp, boolean allPossibleCellsReadAndPresent) {
+        if (isValidationNecessaryOnReads(tableRef, allPossibleCellsReadAndPresent)) {
             throwIfPreCommitRequirementsNotMet(null, timestamp);
-        } else if (!allPossibleCellsReadAndNonEmpty) {
+        } else if (!allPossibleCellsReadAndPresent) {
             hasPossiblyUnvalidatedReads = true;
         }
     }
 
-    private boolean isValidationNecessaryOnReads(TableReference tableRef, boolean allPossibleCellsReadAndNonEmpty) {
-        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef, allPossibleCellsReadAndNonEmpty);
+    private boolean isValidationNecessaryOnReads(TableReference tableRef, boolean allPossibleCellsReadAndPresent) {
+        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef, allPossibleCellsReadAndPresent);
     }
 
-    private boolean requiresImmutableTimestampLocking(
-            TableReference tableRef, boolean allPossibleCellsReadAndNonEmpty) {
-        return sweepStrategyManager.get(tableRef).mustCheckImmutableLock(allPossibleCellsReadAndNonEmpty)
+    private boolean requiresImmutableTimestampLocking(TableReference tableRef, boolean allPossibleCellsReadAndPresent) {
+        return sweepStrategyManager.get(tableRef).mustCheckImmutableLock(allPossibleCellsReadAndPresent)
                 || transactionConfig.get().lockImmutableTsOnReadOnlyTransactions();
     }
 
@@ -1724,9 +1723,9 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
             return Futures.transform(
                     asyncKeyValueService.getAsync(tableRef, keysToReload),
                     nextRawResults -> {
-                        boolean allPossibleCellsReadAndNonEmpty = nextRawResults.size() == keysToReload.size();
+                        boolean allPossibleCellsReadAndPresent = nextRawResults.size() == keysToReload.size();
                         validatePreCommitRequirementsOnReadIfNecessary(
-                                tableRef, getStartTimestamp(), allPossibleCellsReadAndNonEmpty);
+                                tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
                         return getRemainingResults(nextRawResults, keysAddedToResults);
                     },
                     MoreExecutors.directExecutor());uau(b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73}(sha(b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73node_idEC_kwDOAjP5fdoAKGI1ZWQ3YjYyZmM5ZDViYmUyZjE1MzJhOGIxZGM3YWU3MzU3YWVjNzMcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-12T08:08:41Zu	committer}(j^  	Tom Papkej`  tpapke@palantir.comjb  2023-06-12T08:08:41ZumessageImplement prototype 1 (record info on every request)

Due to a race condition, we do not invalidate values in the cache on unlock. Hence, the semantics change to obtaining the "last thread to successfully acquire a lock"&     tree}(jV  (3b942e9991e7adf1f5ac930de19f23d45c8cbcfdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/3b942e9991e7adf1f5ac930de19f23d45c8cbcfdujn  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSG0okACgkQmF9s0kaF
Iw0ehAf/We1fcTEH8RAxnmzJuKFuTNO07Bi9gh2yM5YNg1hKjNIo0wIhIqRTHgFy
H8Il2ipsZbs0Vdjy1I0qOgFV6LRYSsUFjUwi+TjRZ+CDu58V/ZxaTF1kE7xV6wKj
u9QjmCeM3bePUz6Q6UyrdyHK2k/4zvBKgtodAZ2NGngX4Zb4asqHSDu6XsG1k/TW
gYDs3E/+edm5BZ6dv2T8lONoiAxdcNEYjFws40c0QCM/AA+5f1Yx0XysEKWMdIRH
JLN8M/S36iGSd1fFIHOoK0Oz1MkSexoppOwgvBIMdoDHZ4wqhHugBNPPwLkLdanj
Pegt4KjOhujZTPYY9w4/B8smqMmxcQ==
=iNC2
-----END PGP SIGNATURE-----payloadX  tree 3b942e9991e7adf1f5ac930de19f23d45c8cbcfd
parent 8d65a011e35cfff9bbdb38ad706cc252b977467b
author Tom Papke <tpapke@palantir.com> 1686557321 +0100
committer Tom Papke <tpapke@palantir.com> 1686557321 +0100

Implement prototype 1 (record info on every request)

Due to a race condition, we do not invalidate values in the cache on unlock. Hence, the semantics change to obtaining the "last thread to successfully acquire a lock"
uujn  ^https://api.github.com/repos/palantir/atlasdb/commits/b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73html_urlShttps://github.com/palantir/atlasdb/commit/b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73/commentsj\  }(login	ToemmscheidJbojX  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jn  &https://api.github.com/users/Toemmschej|  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujd  }(j  	Toemmschej  JbojX  MDQ6VXNlcjQzNjc1NDkwj  4https://avatars.githubusercontent.com/u/43675490?v=4j  h5jn  &https://api.github.com/users/Toemmschej|  https://github.com/Toemmschej  0https://api.github.com/users/Toemmsche/followersj  =https://api.github.com/users/Toemmsche/following{/other_user}j  6https://api.github.com/users/Toemmsche/gists{/gist_id}j  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j  4https://api.github.com/users/Toemmsche/subscriptionsj  +https://api.github.com/users/Toemmsche/orgsj  ,https://api.github.com/users/Toemmsche/reposj  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj  Userj  uparents]}(jV  (8d65a011e35cfff9bbdb38ad706cc252b977467bjn  ^https://api.github.com/repos/palantir/atlasdb/commits/8d65a011e35cfff9bbdb38ad706cc252b977467bj|  Shttps://github.com/palantir/atlasdb/commit/8d65a011e35cfff9bbdb38ad706cc252b977467buastats}(totalM	additionsM	deletionsKufiles](}(jV  (a2bf04b2640e0d5762f7ff7cf40326a21a8871bffilenameKlock-api-objects/src/main/java/com/palantir/lock/ThreadAwareLockClient.javastatusaddedj  K%j  K changesK%blob_urlhttps://github.com/palantir/atlasdb/blob/b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareLockClient.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareLockClient.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareLockClient.java?ref=b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73patchX  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import javax.annotation.Nullable;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ThreadAwareLockClient {
+
+    @Nullable
+    LockClient client();
+
+    String thread();
+
+    static ImmutableThreadAwareLockClient.Builder builder() {
+        return ImmutableThreadAwareLockClient.builder();
+    }
+
+    static ThreadAwareLockClient of(LockClient client, String requestingThread) {
+        return builder().client(client).thread(requestingThread).build();
+    }
+}u}(jV  (e6ea03ce4258fa57a6e4b03201c099102d2d9d82j  Jlock-api/src/main/java/com/palantir/lock/DebugThreadInfoConfiguration.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj  https://github.com/palantir/atlasdb/raw/b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.java?ref=b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73j  X  @@ -0,0 +1,28 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface DebugThreadInfoConfiguration {
+
+    @Value.Default
+    default boolean recordThreadInfo() {
+        return false;
+    }
+}u}(jV  (86ac19c236c58f1f38c8eec81f1144c0ca40d2edj  ?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj  https://github.com/palantir/atlasdb/raw/b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73j  X  @@ -16,6 +16,7 @@
 package com.palantir.lock;
 
 import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.google.common.base.MoreObjects;
@@ -126,6 +127,17 @@ public long slowLogTriggerMillis() {
         return 10000L;
     }
 
+    /**
+     * Runtime configuration relating the thread info recording
+     * (which lock is held by which client-thread).
+     */
+    @JsonProperty("threadInfoConfiguration")
+    @JsonIgnore
+    @Value.Default
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    }
+
     @Override
     public boolean equals(@Nullable Object obj) {
         if (this == obj) {
@@ -142,7 +154,8 @@ && getRandomBitCount() == other.getRandomBitCount()
                 && Objects.equals(getMaxAllowedClockDrift(), other.getMaxAllowedClockDrift())
                 && Objects.equals(getMaxAllowedBlockingDuration(), other.getMaxAllowedBlockingDuration())
                 && Objects.equals(getMaxNormalLockAge(), other.getMaxNormalLockAge())
-                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout());
+                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout())
+                && Objects.equals(threadInfoConfiguration(), other.threadInfoConfiguration());
     }
 
     @Override
@@ -155,7 +168,8 @@ public int hashCode() {
                 getMaxNormalLockAge(),
                 getRandomBitCount(),
                 getStuckTransactionTimeout(),
-                slowLogTriggerMillis());
+                slowLogTriggerMillis(),
+                threadInfoConfiguration());
     }
 
     @Override
@@ -169,6 +183,7 @@ public String toString() {
                 .add("randomBitCount", getRandomBitCount())
                 .add("stuckTransactionTimeout", getStuckTransactionTimeout())
                 .add("slowLogTriggerMillis", slowLogTriggerMillis())
+                .add("threadInfoConfiguration", threadInfoConfiguration())
                 .toString();
     }
 u}(jV  (274259e1027de430a4ffd597b5a0deebedae3d7dj  Mlock-api/src/main/java/com/palantir/lock/ThreadAwareCloseableLockService.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareCloseableLockService.javaj  https://github.com/palantir/atlasdb/raw/b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareCloseableLockService.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareCloseableLockService.java?ref=b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73j  X  @@ -0,0 +1,28 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+public interface ThreadAwareCloseableLockService extends CloseableLockService {
+
+    /**
+     * This is a debugging-only method providing best-effort information about which client-thread last successfully
+     * acquired a lock. This does not guarantee that the lock is still held by that thread as unlock operations are
+     * not recorded.
+     * Returns null if we have not recorded a thread acquisition for this lock yet.
+     */
+    ThreadAwareLockClient getLastAcquiringThread(LockDescriptor lock);
+}u}(jV  (7e1437f95d05bc8ba40ad3cf2b13aac1173f9ba8j  Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj  modifiedj  K,j  K j  K,j  https://github.com/palantir/atlasdb/blob/b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj  https://github.com/palantir/atlasdb/raw/b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73j  X  @@ -21,6 +21,7 @@
 import static com.palantir.lock.LockGroupBehavior.LOCK_ALL_OR_NONE;
 import static com.palantir.lock.LockGroupBehavior.LOCK_AS_MANY_AS_POSSIBLE;
 
+import com.github.benmanes.caffeine.cache.Cache;
 import com.github.benmanes.caffeine.cache.Caffeine;
 import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.annotations.VisibleForTesting;
@@ -45,6 +46,7 @@
 import com.palantir.lock.BlockingMode;
 import com.palantir.lock.CloseableLockService;
 import com.palantir.lock.CloseableRemoteLockService;
+import com.palantir.lock.DebugThreadInfoConfiguration;
 import com.palantir.lock.ExpiringToken;
 import com.palantir.lock.HeldLocksGrant;
 import com.palantir.lock.HeldLocksToken;
@@ -70,6 +72,8 @@
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.SortedLockCollection;
 import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.ThreadAwareCloseableLockService;
+import com.palantir.lock.ThreadAwareLockClient;
 import com.palantir.lock.TimeDuration;
 import com.palantir.lock.logger.LockServiceStateLogger;
 import com.palantir.logsafe.Safe;
@@ -83,6 +87,7 @@
 import com.palantir.util.JMXUtils;
 import com.palantir.util.Ownable;
 import java.math.BigInteger;
+import java.time.Duration;
 import java.time.Instant;
 import java.util.ArrayDeque;
 import java.util.ArrayList;
@@ -117,6 +122,7 @@
 @ThreadSafe
 public final class LockServiceImpl
         implements LockService,
+                ThreadAwareCloseableLockService,
                 CloseableRemoteLockService,
                 CloseableLockService,
                 RemoteLockService,
@@ -181,6 +187,22 @@ public String toString() {
     private final SimpleTimeDuration maxAllowedClockDrift;
     private final SimpleTimeDuration maxNormalLockAge;
     private final SimpleTimeDuration stuckTransactionTimeout;
+
+    /**
+     * Runtime configuration relating to the collection of information
+     * about which lock is (presumably) held by which thread.
+     */
+    private final DebugThreadInfoConfiguration threadInfoConfiguration;
+
+    private static final long MAX_THREAD_INFO_SIZE = 1_000_000;
+
+    private static final Duration THREAD_INFO_WRITE_EXPIRATION = Duration.ofMinutes(2);
+
+    /**
+     * Mapping of locks to the client thread that last acquired it successfully.
+     */
+    private final Cache<LockDescriptor, ThreadAwareLockClient> lastAcquiringThread;
+
     private final AtomicBoolean isShutDown = new AtomicBoolean(false);
 
     private final LockClientIndices clientIndices = new LockClientIndices();
@@ -256,6 +278,14 @@ private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable
         this.maxNormalLockAge = SimpleTimeDuration.of(options.getMaxNormalLockAge());
         this.stuckTransactionTimeout = SimpleTimeDuration.of(options.getStuckTransactionTimeout());
         this.slowLogTriggerMillis = options.slowLogTriggerMillis();
+
+        // thread info collection is off by default
+        this.threadInfoConfiguration = options.threadInfoConfiguration();
+        this.lastAcquiringThread = Caffeine.newBuilder()
+                .executor(executor.resource())
+                .maximumSize(MAX_THREAD_INFO_SIZE)
+                .expireAfterWrite(THREAD_INFO_WRITE_EXPIRATION)
+                .build();
     }
 
     private HeldLocksToken createHeldLocksToken(
@@ -283,6 +313,10 @@ private HeldLocksToken createHeldLocksToken(
                 if (!client.isAnonymous()) {
                     lockClientMultimap.put(client, token);
                 }
+                if (threadInfoConfiguration.recordThreadInfo()) {
+                    ThreadAwareLockClient lockHolderThread = ThreadAwareLockClient.of(client, requestThread);
+                    lockDescriptorMap.getKeys().forEach(lock -> lastAcquiringThread.put(lock, lockHolderThread));
+                }
                 return token;
             }
             log.error(
@@ -305,6 +339,11 @@ private HeldLocksGrant createHeldLocksGrant(
             HeldLocks<HeldLocksGrant> newHeldLocks = HeldLocks.of(grant, heldLocksMap);
             if (heldLocksGrantMap.putIfAbsent(grant, newHeldLocks) == null) {
                 lockGrantReaperQueue.add(grant);
+                if (threadInfoConfiguration.recordThreadInfo()) {
+                    ThreadAwareLockClient lockHolderThread =
+                            ThreadAwareLockClient.of(INTERNAL_LOCK_GRANT_CLIENT, "N/A");
+                    lockDescriptorMap.getKeys().forEach(lock -> lastAcquiringThread.put(lock, lockHolderThread));
+                }
                 return grant;
             }
             log.error(
@@ -1227,6 +1266,11 @@ public long currentTimeMillis() {
         return System.currentTimeMillis();
     }
 
+    @Override
+    public ThreadAwareLockClient getLastAcquiringThread(LockDescriptor lock) {
+        return lastAcquiringThread.getIfPresent(lock);
+    }
+
     private static String updateThreadName(LockRequest request) {
         String currentThreadName = Thread.currentThread().getName();
         tryRenameThread(u}(jV  (28d169b9a995081b3dcbbe407b592d267dfdedbbj  Rlock-impl/src/test/java/com/palantir/lock/impl/ThreadAwareLockServiceImplTest.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.javaj  https://github.com/palantir/atlasdb/raw/b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.java?ref=b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73j  X-  @@ -0,0 +1,244 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableSortedMap;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
+import com.palantir.lock.LockClient;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.LockMode;
+import com.palantir.lock.LockRequest;
+import com.palantir.lock.LockResponse;
+import com.palantir.lock.LockServerOptions;
+import com.palantir.lock.SimpleTimeDuration;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.ThreadAwareLockClient;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.concurrent.Callable;
+import java.util.concurrent.CyclicBarrier;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.Test;
+
+public class ThreadAwareLockServiceImplTest {
+
+    // Disable background thread info collection by default, it will be invoked manually instead
+    private final LockServiceImpl lockService = LockServiceImpl.create(LockServerOptions.builder()
+            .isStandaloneServer(false)
+            .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                    .recordThreadInfo(true)
+                    .build())
+            .build());
+
+    // default for thread info configuration
+    private final LockServiceImpl defaultLockService = LockServiceImpl.create(
+            LockServerOptions.builder().isStandaloneServer(false).build());
+
+    private final ExecutorService executor =
+            PTExecutors.newCachedThreadPool(ThreadAwareLockServiceImplTest.class.getName());
+
+    private static final LockDescriptor TEST_LOCK_1 = StringLockDescriptor.of("lock-1");
+    private static final LockDescriptor TEST_LOCK_2 = StringLockDescriptor.of("lock-2");
+    private static final LockDescriptor TEST_LOCK_3 = StringLockDescriptor.of("lock-3");
+
+    private static final String TEST_THREAD_1 = "thread-1";
+    private static final String TEST_THREAD_2 = "thread-2";
+    private static final String TEST_THREAD_3 = "thread-3";
+
+    private static final LockClient TEST_LOCK_CLIENT = LockClient.ANONYMOUS;
+
+    @Test
+    public void initialThreadInfoIsEmpty() {
+        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1)).isNull();
+        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_2)).isNull();
+        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_3)).isNull();
+    }
+
+    @Test
+    public void recordsThreadInfo_singleLock() throws InterruptedException {
+        LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+
+        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest);
+
+        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
+                .isEqualTo(ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_1));
+    }
+
+    @Test
+    public void doesNotRecordThreadInfoByDefault() throws InterruptedException {
+        LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+
+        defaultLockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest);
+
+        assertThat(defaultLockService.getLastAcquiringThread(TEST_LOCK_1)).isNull();
+    }
+
+    @Test
+    public void recordsThreadInfo_multipleUniqueLocks_fromDifferentThreads() throws InterruptedException {
+        final int numThreads = 10;
+        final int numLocksPerThread = 10;
+
+        List<String> threadNames =
+                IntStream.range(0, numThreads).mapToObj(i -> "test-thread-" + i).collect(Collectors.toList());
+        Map<String, List<LockDescriptor>> locksPerThread = new HashMap<>();
+        for (String threadName : threadNames) {
+            List<LockDescriptor> locks = IntStream.range(0, numLocksPerThread)
+                    .mapToObj(i -> StringLockDescriptor.of("test-lock-" + i + "-from-thread-" + threadName))
+                    .collect(Collectors.toList());
+            locksPerThread.put(threadName, locks);
+        }
+
+        for (String threadName : threadNames) {
+            LockRequest lockRequest = LockRequest.builder(
+                            ImmutableSortedMap.copyOf(locksPerThread.get(threadName).stream()
+                                    .collect(Collectors.toMap(lock -> lock, lock -> LockMode.WRITE))))
+                    .withCreatingThreadName(threadName)
+                    .build();
+            lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest);
+        }
+
+        Map<LockDescriptor, ThreadAwareLockClient> expected = locksPerThread.keySet().stream()
+                .flatMap(threadName -> locksPerThread.get(threadName).stream()
+                        .map(lock -> Map.entry(lock, ThreadAwareLockClient.of(TEST_LOCK_CLIENT, threadName))))
+                .collect(Collectors.toMap(Entry::getKey, Entry::getValue));
+
+        expected.forEach((lock, clientThread) -> {
+            assertThat(lockService.getLastAcquiringThread(lock)).isEqualTo(clientThread);
+        });
+    }
+
+    @Test
+    public void recordsThreadInfo_sharedLock_fromDifferentThreads() throws InterruptedException {
+        LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+        LockRequest lockRequest2 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .doNotBlock()
+                .lockAsManyAsPossible()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest1);
+        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest2);
+
+        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
+                .isIn(
+                        ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_1),
+                        ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_2));
+    }
+
+    @Test
+    public void doesNotRecordDroppedLocksWithLockAllOrNone() throws InterruptedException {
+        LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+
+        // T2 cannot get lock 1 -> grouping behavior LOCK_ALL_OR_NONE will release lock 2, even though it could have
+        // been locked
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
+                .doNotBlock()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest1);
+        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest2);
+
+        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
+                .isEqualTo(ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_1));
+    }
+
+    @Test
+    public void doesNotRecordFailedLocks() throws InterruptedException {
+        LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+        LockRequest lockRequest2 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+                .doNotBlock()
+                .lockAsManyAsPossible()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        LockResponse response = lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest1);
+        // should fail to acquire lock
+        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest2);
+        // After unlocking locks of T1, no more locks should be held by any thread
+        lockService.unlock(response.getLockRefreshToken());
+
+        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
+                .isEqualTo(ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_1));
+    }
+
+    @Test
+    public void recordsCorrectStateAfterMultipleOperations() throws Exception {
+        final CyclicBarrier barrier = new CyclicBarrier(2);
+
+        // T1 locks 1 exclusively and locks 2 in shared mode
+        LockResponse response1 = lockService.lockWithFullLockResponse(
+                TEST_LOCK_CLIENT,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_1)
+                        .build());
+
+        // T2 won't get lock 1, but locks 3 in exclusive mode,
+        LockResponse response2 = lockService.lockWithFullLockResponse(
+                TEST_LOCK_CLIENT,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_3, LockMode.WRITE))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_2)
+                        .build());
+
+        executor.submit((Callable<Void>) () -> {
+
+            // T3 will wait 5 seconds to lock 1 in exclusive mode and lock 2 in shared mode
+            LockResponse response3 = lockService.lockWithFullLockResponse(
+                    TEST_LOCK_CLIENT,
+                    LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                            .blockForAtMost(SimpleTimeDuration.of(5, TimeUnit.SECONDS))
+                            .lockAsManyAsPossible()
+                            .withCreatingThreadName(TEST_THREAD_3)
+                            .build());
+            barrier.await();
+            return null;
+        });
+        lockService.unlock(response1.getLockRefreshToken());
+        barrier.await();
+
+        // Now T1 should hold nothing, T2 holds 3 in exclusive mode, T3 holds 1 in exclusive and 2 in shared mode
+        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
+                .isEqualTo(ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_3));
+        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_2))
+                .isEqualTo(ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_3));
+        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_3))
+                .isEqualTo(ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_2));
+    }
+}ueu(fc16d6600b046dd77d6d7b90ba9d64a2e74d5f05}(sha(fc16d6600b046dd77d6d7b90ba9d64a2e74d5f05node_idEC_kwDOAjP5fdoAKGZjMTZkNjYwMGIwNDZkZDc3ZDZkN2I5MGJhOWQ2NGEyZTc0ZDVmMDUcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-01T14:18:42Zu	committer}(j  Lucas Meirelesj  meireles31@msn.comj  2023-06-01T14:18:42Zumessagerun my workflow firsttree}(j  (6be3e9d3b330c7d9c8d766e7c6409142240715aburl`https://api.github.com/repos/palantir/atlasdb/git/trees/6be3e9d3b330c7d9c8d766e7c6409142240715abuj
  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fc16d6600b046dd77d6d7b90ba9d64a2e74d5f05
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmR4qMIACgkQJd22kJ7J
GiyzsAf+M2QROaZZ41sjdovki9vVcBRs/pQJem6SUdXxRZY3iUCAN6dH+xsxq7jT
GDwllacqvJiFKedaNtOc7ghiNeJCkgxRzwKjD+MBCuThulY6fmU64It4Jvsbrkb5
pvU9Zc3bW9wtsFQ35wsx1eSWZtKthDHsNgta9EqMjLPkNHKWoJvw5F6fXAsJ/tf8
MBGPG9huUSzV86UGDOlrtcMyDx64CVcCPppvAB/yOfmCb/H86oIjfcskBltijDUJ
tgubeKtWSEkATj/dFW0nsAGnWoOrrjjS9VAsMJKsKN1vLStGjszNT010Ul75iXIc
GI6j9E41KCmZKPJrMOI02Yry8siG1w==
=mhCE
-----END PGP SIGNATURE-----payloadtree 6be3e9d3b330c7d9c8d766e7c6409142240715ab
parent 98091adab346d53919131a239b9759473eea731a
author Lucas Meireles <meireles31@msn.com> 1685629122 +0100
committer Lucas Meireles <meireles31@msn.com> 1685629122 +0100

run my workflow first
uuj
  ^https://api.github.com/repos/palantir/atlasdb/commits/fc16d6600b046dd77d6d7b90ba9d64a2e74d5f05html_urlShttps://github.com/palantir/atlasdb/commit/fc16d6600b046dd77d6d7b90ba9d64a2e74d5f05comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fc16d6600b046dd77d6d7b90ba9d64a2e74d5f05/commentsj  }(loginLucasIMEidJg j  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j
  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj  }(j   LucasIMEj"  Jg j  MDQ6VXNlcjY3ODczMTE=j$  3https://avatars.githubusercontent.com/u/6787311?v=4j&  h5j
  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIMEj)  /https://api.github.com/users/LucasIME/followersj+  <https://api.github.com/users/LucasIME/following{/other_user}j-  5https://api.github.com/users/LucasIME/gists{/gist_id}j/  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j1  3https://api.github.com/users/LucasIME/subscriptionsj3  *https://api.github.com/users/LucasIME/orgsj5  +https://api.github.com/users/LucasIME/reposj7  6https://api.github.com/users/LucasIME/events{/privacy}j9  5https://api.github.com/users/LucasIME/received_eventsj;  Userj=  uparents]}(j  (98091adab346d53919131a239b9759473eea731aj
  ^https://api.github.com/repos/palantir/atlasdb/commits/98091adab346d53919131a239b9759473eea731aj  Shttps://github.com/palantir/atlasdb/commit/98091adab346d53919131a239b9759473eea731auastats}(totalK	additionsK	deletionsKufiles]}(j  (6c6e23d5d84290b4a6b8a0d73cf6b4d0178ce609filenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedjW  KjX  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/fc16d6600b046dd77d6d7b90ba9d64a2e74d5f05/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/fc16d6600b046dd77d6d7b90ba9d64a2e74d5f05/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=fc16d6600b046dd77d6d7b90ba9d64a2e74d5f05patchX
  @@ -134,6 +134,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 Refreshable.only(configuration.runtime().atlas()),
                 USER_AGENT,
                 metricsManager);
+        SingleBusyCellReadsNoTouchWorkflowConfiguration singleBusyCellReadNoTouchWorkflowConfiguration =
+                configuration.install().singleBusyCellReadsNoTouchConfig();
         SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig =
                 configuration.install().singleRowTwoCellsConfig();
         RingWorkflowConfiguration ringWorkflowConfiguration =
@@ -144,13 +146,15 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().singleBusyCellConfig();
         RandomWorkflowConfiguration randomWorkflowConfig =
                 configuration.install().randomConfig();
-        SingleBusyCellReadsNoTouchWorkflowConfiguration singleBusyCellReadNoTouchWorkflowConfiguration =
-                configuration.install().singleBusyCellReadsNoTouchConfig();
 
         waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
 
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
                 .run(
+                        createSingleBusyCellReadNoTouchWorkflowValidator(
+                                transactionStoreFactory,
+                                singleBusyCellReadNoTouchWorkflowConfiguration,
+                                environment.lifecycle()),
                         createSingleRowTwoCellsWorkflowValidator(
                                 transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
                         createRingWorkflowValidator(
@@ -159,11 +163,7 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
                         createSingleBusyCellWorkflowValidator(
                                 transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
-                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()),
-                        createSingleBusyCellReadNoTouchWorkflowValidator(
-                                transactionStoreFactory,
-                                singleBusyCellReadNoTouchWorkflowConfiguration,
-                                environment.lifecycle()));
+                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 uau(30e0e9b97b9e25530f5f56126cb7d56c129c2e1f}(sha(30e0e9b97b9e25530f5f56126cb7d56c129c2e1fnode_idEC_kwDOAjP5fdoAKDMwZTBlOWI5N2I5ZTI1NTMwZjVmNTYxMjZjYjdkNTZjMTI5YzJlMWYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-04T10:36:55Zu	committer}(jt  
Sam Kramerjv  skramer@palantir.comjx  2023-04-04T10:36:55Zumessage	fix teststree}(jl  (2c99037cc80a047d5d78fd030e59db56284608adurl`https://api.github.com/repos/palantir/atlasdb/git/trees/2c99037cc80a047d5d78fd030e59db56284608aduj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/30e0e9b97b9e25530f5f56126cb7d56c129c2e1f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQr/ccACgkQmPPOpKR4
XS3PVwf/WCBCOaXANHXonl1yOIjatI41GLGsYfixMnw9zYuESzqACaFQMVOaVtWD
1ZcgpDQuILrUxwyXKpsrWR3Y0CURDhTCKhJk0ul/F2HZN6V8mD0Tqy1VccrgOGbG
Y6D0VPL6w2fUGmDc7pg7C/SgYl+ctZwJ81iMujlZYFZt8KFbEhjw606rRoJRbsxa
jYhUs306tyvcJeGb+NZvq0NyE47rcESBAs+FAHzZbdYqIaN/7E9S4iJe89Xtdq3Y
W2sjUKLFIBaCrbNNZVdAXeV2/KVRhxo1b+ynw82gNN8N7XRM9ebOut1XOS3F22us
hC+rXIXpXTUdavkQloHoRVYmC51y6w==
=qOuF
-----END PGP SIGNATURE-----payloadtree 2c99037cc80a047d5d78fd030e59db56284608ad
parent c3260588bd4307afc042b07f837352e38d69fff1
author Sam Kramer <skramer@palantir.com> 1680604615 +0100
committer Sam Kramer <skramer@palantir.com> 1680604615 +0100

fix tests
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/30e0e9b97b9e25530f5f56126cb7d56c129c2e1fhtml_urlShttps://github.com/palantir/atlasdb/commit/30e0e9b97b9e25530f5f56126cb7d56c129c2e1fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/30e0e9b97b9e25530f5f56126cb7d56c129c2e1f/commentsjr  }(login
Sam-KrameridJ^2_ jn  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujz  }(j  
Sam-Kramerj  J^2_ jn  MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j  h5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj  1https://api.github.com/users/Sam-Kramer/followersj  >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j  5https://api.github.com/users/Sam-Kramer/subscriptionsj  ,https://api.github.com/users/Sam-Kramer/orgsj  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj  uparents]}(jl  (c3260588bd4307afc042b07f837352e38d69fff1j  ^https://api.github.com/repos/palantir/atlasdb/commits/c3260588bd4307afc042b07f837352e38d69fff1j  Shttps://github.com/palantir/atlasdb/commit/c3260588bd4307afc042b07f837352e38d69fff1uastats}(totalK	additionsK	deletionsK ufiles]}(jl  (f9527e173d1407deb811ea00448699afa0a4afd1filenameiatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/server/RunOnceWorkflowRunnerTest.javastatusmodifiedj  Kj  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/30e0e9b97b9e25530f5f56126cb7d56c129c2e1f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/30e0e9b97b9e25530f5f56126cb7d56c129c2e1f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.java?ref=30e0e9b97b9e25530f5f56126cb7d56c129c2e1fpatchX  @@ -20,17 +20,21 @@
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
 import com.palantir.atlasdb.workload.workflow.RunOnceWorkflowRunner;
 import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import java.util.List;
 import org.junit.Test;
 
 public class RunOnceWorkflowRunnerTest {
     @Test
     public void runExecutesWorkflowsAndInvokesInvariantReporter() {
         Workflow exampleWorkflow = mock(Workflow.class);
+        WorkflowHistory workflowHistory = mock(WorkflowHistory.class);
+        when(exampleWorkflow.run()).thenReturn(workflowHistory);
         InvariantReporter<Void> exampleInvariantReporterOne = mock(InvariantReporter.class);
         InvariantReporter<Void> exampleInvariantReporterTwo = mock(InvariantReporter.class);
         RunOnceWorkflowRunner.INSTANCE.run(uau(8fa96abcf9548ccac318b21343f12e628f85605f}(sha(8fa96abcf9548ccac318b21343f12e628f85605fnode_idEC_kwDOAjP5fdoAKDhmYTk2YWJjZjk1NDhjY2FjMzE4YjIxMzQzZjEyZTYyOGY4NTYwNWYcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-04-29T00:00:07Zu	committer}(j  svc-autoreleasej  -pd-foundry-infrastructure-notify@palantir.comj  2023-04-29T00:00:07Zumessage"Autorelease 0.845.0-rc5

[skip ci]tree}(j  (c97976bd09298ae4dda65f01c9b3944db1dc71c1url`https://api.github.com/repos/palantir/atlasdb/git/trees/c97976bd09298ae4dda65f01c9b3944db1dc71c1uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8fa96abcf9548ccac318b21343f12e628f85605f
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRMXggACgkQhbrR8ip7mDA3IAD/ZZLWHWyb2QKS27aUMSCkd6dN
nDxK0KkXxbr8tZm61P4BALL+HrISGze9WAnnjfhV/KvK6xZaQdJTcUICrBGXEulO
=xRH0
-----END PGP SIGNATURE-----
payloadX(  tree c97976bd09298ae4dda65f01c9b3944db1dc71c1
parent b6c113247659ef9e4e07a19ee3da832fa3f228df
author aalouane <30903736+ergo14@users.noreply.github.com> 1682726407 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1682726407 +0000

Autorelease 0.845.0-rc5

[skip ci]uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/8fa96abcf9548ccac318b21343f12e628f85605fhtml_urlShttps://github.com/palantir/atlasdb/commit/8fa96abcf9548ccac318b21343f12e628f85605fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8fa96abcf9548ccac318b21343f12e628f85605f/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j	  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j  svc-autoreleasej  J(j  MDQ6VXNlcjUxNzE4MzQ2j  4https://avatars.githubusercontent.com/u/51718346?v=4j  h5j  ,https://api.github.com/users/svc-autoreleasej	  "https://github.com/svc-autoreleasej  6https://api.github.com/users/svc-autorelease/followersj  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j  :https://api.github.com/users/svc-autorelease/subscriptionsj!  1https://api.github.com/users/svc-autorelease/orgsj#  2https://api.github.com/users/svc-autorelease/reposj%  =https://api.github.com/users/svc-autorelease/events{/privacy}j'  <https://api.github.com/users/svc-autorelease/received_eventsj)  Userj+  uparents]}(j  (b6c113247659ef9e4e07a19ee3da832fa3f228dfj  ^https://api.github.com/repos/palantir/atlasdb/commits/b6c113247659ef9e4e07a19ee3da832fa3f228dfj	  Shttps://github.com/palantir/atlasdb/commit/b6c113247659ef9e4e07a19ee3da832fa3f228dfuastats}(totalK 	additionsK 	deletionsK ufiles]u(6cb27dbfb51ad66e16f5f59359052c0b9e99916a}(sha(6cb27dbfb51ad66e16f5f59359052c0b9e99916anode_idEC_kwDOAjP5fdoAKDZjYjI3ZGJmYjUxYWQ2NmUxNmY1ZjU5MzU5MDUyYzBiOWU5OTkxNmEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-28T11:27:37Zu	committer}(jS  Jeremy KongjU  jkong@palantir.comjW  2023-02-28T11:27:37Zumessage
la campanellatree}(jK  (b05ac7e77a188293be58518f96836129f2a7cba2url`https://api.github.com/repos/palantir/atlasdb/git/trees/b05ac7e77a188293be58518f96836129f2a7cba2ujc  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6cb27dbfb51ad66e16f5f59359052c0b9e99916a
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmP95SkACgkQTLdFKain
zjzsKAf+L+O2+e3zMbW8dYIkPeEi0KI7hmsbuZW6S98vTgvi10bvETXXXiaLZF1Z
580e+FplhIrbAjLlsPAdbRNoQDYW7xLBm1PdCgRghalopoLBD5JMcf/NbIJ3/Gx6
xeh81Z2Fh4KvCJqVLCM0y56lhbZ8UI4pIIcX+t7Y+oLv4ssrCC/SMz4+RXn0PQgS
pktkYsktbJixCGBz5F/G+l5tFAn8DXyGfmuX9i/+vlr+nCYYwOJDtzXMHIfKbyrW
oIBspOhP0Z/9zajVUDAKJwYZwXc0WucFYciSGsvfixeLGrw5+0F7vEbtDAQTbbS6
0o65tPYsJ7WDi3zkIxXylTCDTSMZsA==
=ZXHS
-----END PGP SIGNATURE-----payloadtree b05ac7e77a188293be58518f96836129f2a7cba2
parent 93e21c80431d269d5e6ea469a36c4604208d2a82
author Jeremy Kong <jkong@palantir.com> 1677583657 +0000
committer Jeremy Kong <jkong@palantir.com> 1677583657 +0000

la campanella
uujc  ^https://api.github.com/repos/palantir/atlasdb/commits/6cb27dbfb51ad66e16f5f59359052c0b9e99916ahtml_urlShttps://github.com/palantir/atlasdb/commit/6cb27dbfb51ad66e16f5f59359052c0b9e99916acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6cb27dbfb51ad66e16f5f59359052c0b9e99916a/commentsjQ  }(login
jeremyk-91idJZ jM  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jc  'https://api.github.com/users/jeremyk-91jq  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujY  }(jv  
jeremyk-91jx  JZ jM  MDQ6VXNlcjU5NTU1MTA=jz  3https://avatars.githubusercontent.com/u/5955510?v=4j|  h5jc  'https://api.github.com/users/jeremyk-91jq  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents]}(jK  (93e21c80431d269d5e6ea469a36c4604208d2a82jc  ^https://api.github.com/repos/palantir/atlasdb/commits/93e21c80431d269d5e6ea469a36c4604208d2a82jq  Shttps://github.com/palantir/atlasdb/commit/93e21c80431d269d5e6ea469a36c4604208d2a82uastats}(totalK	additionsK	deletionsK ufiles]}(jK  (1b5fea66ba2ccc9b66676a9433111f65aa9d5286filename\atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/TransactionConstants.javastatusmodifiedj  Kj  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/6cb27dbfb51ad66e16f5f59359052c0b9e99916a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6cb27dbfb51ad66e16f5f59359052c0b9e99916a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.java?ref=6cb27dbfb51ad66e16f5f59359052c0b9e99916apatchXL  @@ -25,6 +25,7 @@
 import com.palantir.atlasdb.table.description.ValueType;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.logsafe.Preconditions;
 
 public final class TransactionConstants {
     private TransactionConstants() {
@@ -62,6 +63,7 @@ private TransactionConstants() {
     public static final int DIRECT_ENCODING_TRANSACTIONS_SCHEMA_VERSION = 1;
     public static final int TICKETS_ENCODING_TRANSACTIONS_SCHEMA_VERSION = 2;
     public static final int TWO_STAGE_ENCODING_TRANSACTIONS_SCHEMA_VERSION = 3;
+
     public static final int TTS_TRANSACTIONS_SCHEMA_VERSION = 4;
     public static final ImmutableSet<Integer> SUPPORTED_TRANSACTIONS_SCHEMA_VERSIONS = ImmutableSet.of(
             DIRECT_ENCODING_TRANSACTIONS_SCHEMA_VERSION,
@@ -101,4 +103,13 @@ public static long getTimestampForValue(byte[] encodedTimestamp) {
             .explicitCompressionBlockSizeKB(64)
             .denselyAccessedWideRows(true)
             .build();
+
+    static {
+        Preconditions.checkState(
+                !SUPPORTED_TRANSACTIONS_SCHEMA_VERSIONS.contains(TTS_TRANSACTIONS_SCHEMA_VERSION),
+                "Supporting Transactions Table Sweep WILL require changes to internal backup and restore workflows;"
+                    + " failure to do so may only be discoverable at restore time in some implementations. This check"
+                    + " MUST NOT be removed without knowledge that suitable changes have been made to these"
+                    + " workflows.");
+    }
 }uau(149c6eb09b18fb7bf7719b095e476d7825fd7792}(sha(149c6eb09b18fb7bf7719b095e476d7825fd7792node_idEC_kwDOAjP5fdoAKDE0OWM2ZWIwOWIxOGZiN2JmNzcxOWIwOTVlNDc2ZDc4MjVmZDc3OTIcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-04-03T16:53:01Zu	committer}(j  GitHubj  noreply@github.comj  2023-04-03T16:53:01ZumessageqFix printing when durable writes invariant violated (#6501)

Only log durable writes violations if any are found.tree}(j  (a82d646e29ca372be6b2dab3193be7dd1d134c85url`https://api.github.com/repos/palantir/atlasdb/git/trees/a82d646e29ca372be6b2dab3193be7dd1d134c85uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/149c6eb09b18fb7bf7719b095e476d7825fd7792
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkKwRtCRBK7hj4Ov3rIwAAoyEIAIdBhQQh/tFT7aQeXl/hCH/C
8gzvHSL8MhSDkDwjo/0eCX5wFyFpe/qZ0aeq4mEt2MFi+gpOcz3fv5XF9cstGs/j
Sv1z4e/qiSSUjdUTMLK294cSUthj24zJWEpCVY48ZPFsL804L8vvKMuuOvAQci6P
ix4Qd+f9bi5QcKL4XA/gSYp+rczhyCrk1sODaqzX9xSrRyNz2SEuUePaZME95tnW
isCJ/cFbjomfpqe3MO4rY/kxme3IJj0Sjik9GOR7xPNHlaBB4Mk65uDizM49dbkc
Lrt99Ug9hwsuO+rvwU9BblO74UOtEGLP3msTZSO9pqhMqN+k821fQmjW30ZbVSk=
=UsPk
-----END PGP SIGNATURE-----
payloadXD  tree a82d646e29ca372be6b2dab3193be7dd1d134c85
parent eceb15181f0668678cfe5e1e0d91d2d0a20d6366
author Sam-Kramer <sam.c.kramer@gmail.com> 1680540781 +0200
committer GitHub <noreply@github.com> 1680540781 +0000

Fix printing when durable writes invariant violated (#6501)

Only log durable writes violations if any are found.
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/149c6eb09b18fb7bf7719b095e476d7825fd7792html_urlShttps://github.com/palantir/atlasdb/commit/149c6eb09b18fb7bf7719b095e476d7825fd7792comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/149c6eb09b18fb7bf7719b095e476d7825fd7792/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj   *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj
  uparents]}(j  (eceb15181f0668678cfe5e1e0d91d2d0a20d6366j  ^https://api.github.com/repos/palantir/atlasdb/commits/eceb15181f0668678cfe5e1e0d91d2d0a20d6366j  Shttps://github.com/palantir/atlasdb/commit/eceb15181f0668678cfe5e1e0d91d2d0a20d6366uastats}(totalK	additionsK	deletionsKufiles]}(j  (457f6d79b122913be9fac3d78d156cbefead5935filenamewatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporter.javastatusmodifiedj$  Kj%  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/149c6eb09b18fb7bf7719b095e476d7825fd7792/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.javaraw_urlhttps://github.com/palantir/atlasdb/raw/149c6eb09b18fb7bf7719b095e476d7825fd7792/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.java?ref=149c6eb09b18fb7bf7719b095e476d7825fd7792patchXW  @@ -51,7 +51,11 @@ public Consumer<Map<TableAndWorkloadCell, MismatchedValue>> consumer() {
                     .table(tableAndWorkloadCell.tableName())
                     .build()
                     .inc());
-            log.warn("Durable writes invariant violations found!", SafeArg.of("mismatchingValues", mismatchingValues));
+            if (!mismatchingValues.isEmpty()) {
+                log.warn(
+                        "Durable writes invariant violations found: {}",
+                        SafeArg.of("mismatchingValues", mismatchingValues));
+            }
         };
     }
 }uau(0df1d2454a5fec722209f8b835f5e49f69dc6098}(sha(0df1d2454a5fec722209f8b835f5e49f69dc6098node_idEC_kwDOAjP5fdoAKDBkZjFkMjQ1NGE1ZmVjNzIyMjA5ZjhiODM1ZjVlNDlmNjlkYzYwOTgcommit}(author}(nameFabian Windheuseremailmail@fabian.medate2023-07-06T17:35:04Zu	committer}(jA  GitHubjC  noreply@github.comjE  2023-07-06T17:35:04Zumessage"Update Guava (#6656)

Update Guavatree}(j9  (69a7d7be035c9a2dd2cff518462a79b61d29536eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/69a7d7be035c9a2dd2cff518462a79b61d29536eujQ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0df1d2454a5fec722209f8b835f5e49f69dc6098
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkpvtICRBK7hj4Ov3rIwAA5QMIAEYU3ymRt03hSDgB6LxFybGX
OpO6LnMW5OHaB0mEGtxzukXIfGPP8/wxoX32B6aeM0ggOF6NIk86zejJuD+7HULn
vppFlGVrdO99NgGz3MFFVEMj0mE6K8YoYZBHZtZovVxqmPsnUCN9MJN6RbCSaCLJ
60cxbQPbChqZ7a2yVGPfYtksHqhXlAPiM2jC1dCQvroo2gr1SiAENxwvHlJ1kpPc
9YSTMilMwZKwhc1v2KhcLo4A4ofNR33lXNhj23jDz/+MnJpprpyoIMnlIuKGhMJD
Vbt+mAsHWQjkV2AZAgTJfmwJFI6DrmpOshkQFTWvoXSSCAhgKqk76ulMjaKwnt0=
=BeRp
-----END PGP SIGNATURE-----
payloadtree 69a7d7be035c9a2dd2cff518462a79b61d29536e
parent 18dc5570a384c7c4558dbd49d1775c4fd8ef603b
author Fabian Windheuser <mail@fabian.me> 1688664904 +0100
committer GitHub <noreply@github.com> 1688664904 +0000

Update Guava (#6656)

Update Guava
uujQ  ^https://api.github.com/repos/palantir/atlasdb/commits/0df1d2454a5fec722209f8b835f5e49f69dc6098html_urlShttps://github.com/palantir/atlasdb/commit/0df1d2454a5fec722209f8b835f5e49f69dc6098comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0df1d2454a5fec722209f8b835f5e49f69dc6098/commentsj?  }(loginfawindidJb@q j;  MDQ6VXNlcjc0MjIwNTA=
avatar_url3https://avatars.githubusercontent.com/u/7422050?v=4gravatar_idh5jQ  #https://api.github.com/users/fawindj_  https://github.com/fawind
followers_url-https://api.github.com/users/fawind/followers
following_url:https://api.github.com/users/fawind/following{/other_user}	gists_url3https://api.github.com/users/fawind/gists{/gist_id}starred_url:https://api.github.com/users/fawind/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/fawind/subscriptionsorganizations_url(https://api.github.com/users/fawind/orgs	repos_url)https://api.github.com/users/fawind/repos
events_url4https://api.github.com/users/fawind/events{/privacy}received_events_url3https://api.github.com/users/fawind/received_eventstypeUser
site_adminujG  }(jd  web-flowjf  J/j;  MDQ6VXNlcjE5ODY0NDQ3jh  4https://avatars.githubusercontent.com/u/19864447?v=4jj  h5jQ  %https://api.github.com/users/web-flowj_  https://github.com/web-flowjm  /https://api.github.com/users/web-flow/followersjo  <https://api.github.com/users/web-flow/following{/other_user}jq  5https://api.github.com/users/web-flow/gists{/gist_id}js  <https://api.github.com/users/web-flow/starred{/owner}{/repo}ju  3https://api.github.com/users/web-flow/subscriptionsjw  *https://api.github.com/users/web-flow/orgsjy  +https://api.github.com/users/web-flow/reposj{  6https://api.github.com/users/web-flow/events{/privacy}j}  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j9  (18dc5570a384c7c4558dbd49d1775c4fd8ef603bjQ  ^https://api.github.com/repos/palantir/atlasdb/commits/18dc5570a384c7c4558dbd49d1775c4fd8ef603bj_  Shttps://github.com/palantir/atlasdb/commit/18dc5570a384c7c4558dbd49d1775c4fd8ef603buastats}(totalK	additionsK		deletionsKufiles](}(j9  (30239d5d4f11f579d2be533da44b54e474102a2dfilenameOatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/DbKvs.javastatusmodifiedj  Kj  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/0df1d2454a5fec722209f8b835f5e49f69dc6098/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FDbKvs.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0df1d2454a5fec722209f8b835f5e49f69dc6098/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FDbKvs.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FDbKvs.java?ref=0df1d2454a5fec722209f8b835f5e49f69dc6098patchX5  @@ -1369,6 +1369,7 @@ private <T> T runReadWrite(TableReference tableRef, ReadWriteTask<T> runner) {
         }
     }
 
+    @SuppressWarnings("CheckReturnValue")
     private <T> void runWriteForceAutocommit(TableReference tableRef, Function<DbWriteTable, T> runner) {
         try (ConnectionSupplier conns = new ConnectionSupplier(connections)) {
             SqlConnection conn = conns.get();
@@ -1381,6 +1382,7 @@ private <T> void runWriteForceAutocommit(TableReference tableRef, Function<DbWri
             if (!autocommit) {
                 runWriteFreshConnection(conns, tableRef, runner);
             } else {
+                // The return value can be ignored because the operation does a non-conditional write.
                 runner.apply(dbTables.createWrite(tableRef, conns));
             }
         }u}(j9  (9f1fb8e536888de78071bd067b317dbf60414a85j  
versions.lockj  modifiedj  Kj  Kj  K
j  _https://github.com/palantir/atlasdb/blob/0df1d2454a5fec722209f8b835f5e49f69dc6098/versions.lockj  ^https://github.com/palantir/atlasdb/raw/0df1d2454a5fec722209f8b835f5e49f69dc6098/versions.lockj  qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=0df1d2454a5fec722209f8b835f5e49f69dc6098j  X	  @@ -45,13 +45,13 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f2947442)
+com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f994935f)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
-com.google.guava:guava:31.1-jre (48 constraints: a337bcb3)
+com.google.guava:guava:32.1.1-jre (48 constraints: 03383c24)
 com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava (1 constraints: bd17c918)
-com.google.j2objc:j2objc-annotations:1.3 (1 constraints: b809eda0)
+com.google.j2objc:j2objc-annotations:2.8 (1 constraints: be09f5a0)
 com.google.protobuf:protobuf-java:3.21.9 (1 constraints: 4105453b)
 com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4 (1 constraints: 350f7769)
 com.googlecode.json-simple:json-simple:1.1 (1 constraints: 320f7469)
@@ -94,7 +94,7 @@ com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 cons
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
 com.palantir.docker.proxy:docker-proxy-rule-core:1.6.0 (2 constraints: 161ab906)
 com.palantir.docker.proxy:docker-proxy-rule-junit4:1.6.0 (1 constraints: 09050236)
-com.palantir.goethe:goethe:0.9.0 (1 constraints: 0b050636)
+com.palantir.goethe:goethe:0.11.0 (1 constraints: 3405263b)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
 com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
@@ -225,7 +225,7 @@ org.assertj:assertj-guava:3.24.2 (1 constraints: 3d05473b)
 org.awaitility:awaitility:4.2.0 (2 constraints: c71a893b)
 org.caffinitas.ohc:ohc-core:0.3.4 (1 constraints: 950f6988)
 org.checkerframework:checker-compat-qual:2.5.5 (2 constraints: 1f1d1717)
-org.checkerframework:checker-qual:3.32.0 (3 constraints: 6c2607e2)
+org.checkerframework:checker-qual:3.33.0 (3 constraints: 6f2678e2)
 org.clojure:clojure:1.8.0 (1 constraints: 0b050836)
 org.codehaus.groovy:groovy:2.5.14 (23 constraints: b55185ba)
 org.codehaus.groovy:groovy-cli-picocli:2.5.14 (5 constraints: d54e9017)u     }(j9  (d701bfa52ce6217e8aa4eee2d0b14afcd17bce6aj  versions.propsj  modifiedj  Kj  Kj  Kj  `https://github.com/palantir/atlasdb/blob/0df1d2454a5fec722209f8b835f5e49f69dc6098/versions.propsj  _https://github.com/palantir/atlasdb/raw/0df1d2454a5fec722209f8b835f5e49f69dc6098/versions.propsj  rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=0df1d2454a5fec722209f8b835f5e49f69dc6098j  X)  @@ -17,7 +17,7 @@ com.google.dagger:* = 2.44.1
 com.google.devtools.ksp:symbol-processing-api = 1.5.21-1.0.0-beta07
 com.google.errorprone:* = 2.10.0 # upgrading to 2.11.0 is blocked by a google bug
 com.google.errorprone:error_prone_annotations = 2.10.0
-com.google.guava:guava = 31.1-jre
+com.google.guava:guava = 32.1.1-jre
 com.google.protobuf:* = 3.21.9
 com.googlecode.protobuf-java-format:* = 1.4
 com.lmax:disruptor = 3.4.2
@@ -30,7 +30,7 @@ com.palantir.conjure:conjure = 4.36.0
 com.palantir.dialogue:* = 3.78.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
-com.palantir.goethe:* = 0.9.0
+com.palantir.goethe:* = 0.11.0
 com.palantir.nylon:* = 0.3.0
 com.palantir.refreshable:refreshable = 2.2.0
 com.palantir.safe-logging:* = 3.2.0ueu(14e970039ae0091c24293cf796ea2c12834e505e}(sha(14e970039ae0091c24293cf796ea2c12834e505enode_idEC_kwDOAjP5fdoAKDE0ZTk3MDAzOWFlMDA5MWMyNDI5M2NmNzk2ZWEyYzEyODM0ZTUwNWUcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-14T13:04:09Zu	committer}(j  	Tom Papkej  tpapke@palantir.comj  2023-06-14T13:04:09ZumessageUse current() configtree}(j  (e75a0ff7639e995bf4edf37a59eac87e639b7219url`https://api.github.com/repos/palantir/atlasdb/git/trees/e75a0ff7639e995bf4edf37a59eac87e639b7219uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/14e970039ae0091c24293cf796ea2c12834e505e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSJuskACgkQmF9s0kaF
Iw0UcAgAsMQzoGlaA8l02xx9qULF4E/cSDHbLv/wzI/l/KsAIevZwmgX3ooI4dJ8
AKP/8FTXKsx+rmg53NHVL78d6Je/c9ixWHGnUoDe+7IN+dPxOYpBDZIFgfsc0kzD
810txuhh8th5KXWaaujywlMm2jnZzk5zMgUAIpdPjZzqJvJSRelHhSlygCOktcc8
odIeXwgz8u0e4nLdIWte8l07sL3abqNXwB1aqggt1wBMURqm/FC7M2lVT7UauqZj
UNiJ4eJeRBH20GdklkCpb1IxZXF0mtlFpzIVqA3HLHuwh8QoWXSelgIE0dom4VSP
2XV9YQ5Ebd26jLK3SP35uZMocU4p3Q==
=dYq8
-----END PGP SIGNATURE-----payloadtree e75a0ff7639e995bf4edf37a59eac87e639b7219
parent b2633be0299e6092d66c13038584ceed3df89c62
author Tom Papke <tpapke@palantir.com> 1686747849 +0100
committer Tom Papke <tpapke@palantir.com> 1686747849 +0100

Use current() config
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/14e970039ae0091c24293cf796ea2c12834e505ehtml_urlShttps://github.com/palantir/atlasdb/commit/14e970039ae0091c24293cf796ea2c12834e505ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/14e970039ae0091c24293cf796ea2c12834e505e/commentsj  }(login	ToemmscheidJboj  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj  }(j  	Toemmschej  Jboj  MDQ6VXNlcjQzNjc1NDkwj  4https://avatars.githubusercontent.com/u/43675490?v=4j  h5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmschej  0https://api.github.com/users/Toemmsche/followersj  =https://api.github.com/users/Toemmsche/following{/other_user}j  6https://api.github.com/users/Toemmsche/gists{/gist_id}j  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j  4https://api.github.com/users/Toemmsche/subscriptionsj  +https://api.github.com/users/Toemmsche/orgsj   ,https://api.github.com/users/Toemmsche/reposj  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj  Userj  uparents]}(j  (b2633be0299e6092d66c13038584ceed3df89c62j  ^https://api.github.com/repos/palantir/atlasdb/commits/b2633be0299e6092d66c13038584ceed3df89c62j  Shttps://github.com/palantir/atlasdb/commit/b2633be0299e6092d66c13038584ceed3df89c62uastats}(totalK	additionsK	deletionsKufiles]}(j  (195c0534081a32645382616983062ced54176e20filename?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javastatusmodifiedj"  Kj#  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/14e970039ae0091c24293cf796ea2c12834e505e/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaraw_urlhttps://github.com/palantir/atlasdb/raw/14e970039ae0091c24293cf796ea2c12834e505e/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=14e970039ae0091c24293cf796ea2c12834e505epatchX  @@ -170,7 +170,7 @@ public int hashCode() {
                 getRandomBitCount(),
                 getStuckTransactionTimeout(),
                 slowLogTriggerMillis(),
-                threadInfoConfiguration());
+                threadInfoConfiguration().current());
     }
 
     @Override
@@ -184,7 +184,7 @@ public String toString() {
                 .add("randomBitCount", getRandomBitCount())
                 .add("stuckTransactionTimeout", getStuckTransactionTimeout())
                 .add("slowLogTriggerMillis", slowLogTriggerMillis())
-                .add("threadInfoConfiguration", threadInfoConfiguration())
+                .add("threadInfoConfiguration", threadInfoConfiguration().current())
                 .toString();
     }
 uau(fc603e454bd736bdbc4585d62bf87fd90acff87a}(sha(fc603e454bd736bdbc4585d62bf87fd90acff87anode_idEC_kwDOAjP5fdoAKGZjNjAzZTQ1NGJkNzM2YmRiYzQ1ODVkNjJiZjg3ZmQ5MGFjZmY4N2Ecommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-25T12:29:06Zu	committer}(j?  
Ahmed AlouanejA  aalouane@palantir.comjC  2023-05-25T12:29:06Zumessage no license check for new metricstree}(j7  (02abac8bb5d67be65abdd7e1627f75467b231264url`https://api.github.com/repos/palantir/atlasdb/git/trees/02abac8bb5d67be65abdd7e1627f75467b231264ujO  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fc603e454bd736bdbc4585d62bf87fd90acff87a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRvVJIACgkQPlMHVIT1
yhpUTAf/Vknz6LL2iKc7L78gsRJ7VL//b60NvHnD32i5RZgCdJvMJuBkQNYF67Ks
EAJwukjToI7A70uEt+TYjkycJ3Gykv0tLXBkae3QH6VYMlAN47PlclT6IwHqYPSa
+lvTTAA/TSVioeCmCMbh/nVX+nwne4Cv62ma6l5TSN5uDaNrsLhBkofvsvfgWNUK
BbPfsT3sjbN+sn0/LIN9Cij+eoPJI/7fSDb8ZnFlLoXIWveThnSVxw+tDPVobwK9
zLM4Iw9hmIRYXAndFSX+a+M/fjAcb4vNyFEbVCxU8MfmegiUvRtFLXeasfZ6ktU1
dXrIAPRYfIn/JD3xPfp72n2VcjisJg==
=nkf4
-----END PGP SIGNATURE-----payloadtree 02abac8bb5d67be65abdd7e1627f75467b231264
parent c365b148e2264eae44359fb953f25c8121fe7eb2
author Ahmed Alouane <aalouane@palantir.com> 1685017746 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1685017746 +0100

no license check for new metrics
uujO  ^https://api.github.com/repos/palantir/atlasdb/commits/fc603e454bd736bdbc4585d62bf87fd90acff87ahtml_urlShttps://github.com/palantir/atlasdb/commit/fc603e454bd736bdbc4585d62bf87fd90acff87acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fc603e454bd736bdbc4585d62bf87fd90acff87a/commentsj=  }(loginergo14idJj9  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jO  #https://api.github.com/users/ergo14j]  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujE  }(jb  ergo14jd  Jj9  MDQ6VXNlcjMwOTAzNzM2jf  4https://avatars.githubusercontent.com/u/30903736?v=4jh  h5jO  #https://api.github.com/users/ergo14j]  https://github.com/ergo14jk  -https://api.github.com/users/ergo14/followersjm  :https://api.github.com/users/ergo14/following{/other_user}jo  3https://api.github.com/users/ergo14/gists{/gist_id}jq  :https://api.github.com/users/ergo14/starred{/owner}{/repo}js  1https://api.github.com/users/ergo14/subscriptionsju  (https://api.github.com/users/ergo14/orgsjw  )https://api.github.com/users/ergo14/reposjy  4https://api.github.com/users/ergo14/events{/privacy}j{  3https://api.github.com/users/ergo14/received_eventsj}  Userj  uparents]}(j7  (c365b148e2264eae44359fb953f25c8121fe7eb2jO  ^https://api.github.com/repos/palantir/atlasdb/commits/c365b148e2264eae44359fb953f25c8121fe7eb2j]  Shttps://github.com/palantir/atlasdb/commit/c365b148e2264eae44359fb953f25c8121fe7eb2uastats}(totalK	additionsK	deletionsK ufiles]}(j7  (88f8467b9c138fc4cb41ea3c961977dd5dd0f8e4filename atlasdb-impl-shared/build.gradlestatusmodifiedj  Kj  K changesKblob_urlthttps://github.com/palantir/atlasdb/blob/fc603e454bd736bdbc4585d62bf87fd90acff87a/atlasdb-impl-shared%2Fbuild.gradleraw_urlshttps://github.com/palantir/atlasdb/raw/fc603e454bd736bdbc4585d62bf87fd90acff87a/atlasdb-impl-shared%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fbuild.gradle?ref=fc603e454bd736bdbc4585d62bf87fd90acff87apatchX
  @@ -12,6 +12,7 @@ license {
   exclude '**/PutUnlessExistsTableMetrics.java'
   exclude '**/TargetedSweepProgressMetrics.java'
   exclude '**/TimestampCorrectnessMetrics.java'
+  exclude '**/ExpectationsMetrics.java'
   exclude '**/VerificationModeMetrics.java'
 }
 uau(b44f24b10c4b4739df60acc2883e143d85f6241e}(sha(b44f24b10c4b4739df60acc2883e143d85f6241enode_idEC_kwDOAjP5fdoAKGI0NGYyNGIxMGM0YjQ3MzlkZjYwYWNjMjg4M2UxNDNkODVmNjI0MWUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-01T10:25:23Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-06-01T10:25:23Zumessage	insomniactree}(j  (82835bc37b02b9ae78e4de34eea1a035830b5d58url`https://api.github.com/repos/palantir/atlasdb/git/trees/82835bc37b02b9ae78e4de34eea1a035830b5d58uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b44f24b10c4b4739df60acc2883e143d85f6241e
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR4chQACgkQTLdFKain
zjzVTAf/bTby4u75zMlJhvpfRNeg+ICJURefhRJ0veZaDPQIRRbJZrkKBAAYfEvi
6bw88Jkqh9Hmbj4OtHOh3zdSBaasi80LjH5l9w0xBkjlhhtf2geAjGTYCKVmTJxj
RLfAtjujZfGQyxJqCW11kZjVlgVOdvCbycfk3EemaBDMFgiCIUMM0tlp0LQBErOK
jOi64X85FXjgIeuCErdkKkFtOFTw6sm7QGXfaE9r8fGguA3P+FH44GVh9eCiLg4N
vpn4DDk/0ThX/MlltSIV7XhCh3Bwp2p6t/eFhcPQHdUiXpZJCBKZonn03A7Jkm47
bkW5u2MYn48HBj25BPAsAcLfvmrEJw==
=4IQb
-----END PGP SIGNATURE-----payloadtree 82835bc37b02b9ae78e4de34eea1a035830b5d58
parent eeb021e4bfdc28d8c4f2876081cbe944cbebf19e
author Jeremy Kong <jkong@palantir.com> 1685615123 +0100
committer Jeremy Kong <jkong@palantir.com> 1685615123 +0100

insomniac
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/b44f24b10c4b4739df60acc2883e143d85f6241ehtml_urlShttps://github.com/palantir/atlasdb/commit/b44f24b10c4b4739df60acc2883e143d85f6241ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b44f24b10c4b4739df60acc2883e143d85f6241e/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j  
jeremyk-91j  JZ j  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents]}(j  (eeb021e4bfdc28d8c4f2876081cbe944cbebf19ej  ^https://api.github.com/repos/palantir/atlasdb/commits/eeb021e4bfdc28d8c4f2876081cbe944cbebf19ej  Shttps://github.com/palantir/atlasdb/commit/eeb021e4bfdc28d8c4f2876081cbe944cbebf19euastats}(totalM	additionsM	deletionsK:ufiles](}(j  (3efcfbeafb203fd1d50a8fee72be952970f35e91filenameOatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/Transaction.javastatusmodifiedj  K j  KchangesK9blob_urlhttps://github.com/palantir/atlasdb/blob/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.java?ref=b44f24b10c4b4739df60acc2883e143d85f6241epatchX,  @@ -36,11 +36,11 @@
 
 /**
  * Provides the methods for a transaction with the key-value store.
- *
+ * <p>
  * In general: users may assume that if maps (including sorted maps) keyed on byte[] are returned to the user,
  * they may be accessed via any byte array that is equivalent in terms of
  * {@link java.util.Arrays#equals(byte[], byte[])}.
- *
+ * <p>
  * Throughout this class, methods that return structures that may not perform all of their loading upfront (batching
  * visitables, iterables, streams and futures, for instance) _must_ be used strictly within the scope of the
  * transaction. Concretely, this means that results must be retrieved before exiting the transaction - in the case of
@@ -55,10 +55,10 @@ public interface Transaction {
      * Returns a mapping of rows to {@link RowResult}s within {@code tableRef} for the specified {@code rows}, loading
      * columns according to the provided {@link ColumnSelection}. Duplicate rows are permitted (but there will be just
      * one key-value pair for that row in the returned {@link NavigableMap}).
-     *
+     * <p>
      * The returned {@link NavigableMap} is sorted on the byte order of row keys; the ordering of the input parameter
      * {@code rows} is irrelevant.
-     *
+     * <p>
      * If there are rows with no cells matching the provided {@link ColumnSelection}, they will not be present in the
      * {@link Map#keySet()} of the output map at all. This accounts for writes and deletes done in this transaction:
      * a row written to in this transaction will be present, and a row which is deleted in this transaction will be
@@ -77,13 +77,13 @@ NavigableMap<byte[], RowResult<byte[]>> getRows(
      * Returns a mapping of requested {@code rows} to corresponding columns from the queried table.
      * Only columns matching the provided predicate will be returned, and the single predicate provided applies across
      * all of the rows. Users should provide unique rows: behaviour is undefined if this is not the case.
-     *
+     * <p>
      * The returned {@link BatchingVisitable}s are guaranteed to return cells matching the predicate. These are sorted
      * by column on byte ordering.
-     *
+     * <p>
      * It is guaranteed that the {@link Map#keySet()} of the returned map has a corresponding element for each of the
      * input {@code rows}, even if there are rows where no columns match the predicate.
-     *
+     * <p>
      * Batching visitables must be used strictly within the scope of the transaction.
      *
      * @param tableRef table to load values from
@@ -99,13 +99,16 @@ Map<byte[], BatchingVisitable<Map.Entry<Cell, byte[]>>> getRowsColumnRange(
      * Returns a single iterator over the cell-value pairs in {@code tableRef} for the specified {@code rows}, where the
      * columns fall within the provided {@link ColumnRangeSelection}. The single provided {@link ColumnRangeSelection}
      * applies to all of the rows.
-     *
+     * <p>
      * The returned iterator is guaranteed to return cell-value pairs in a lexicographic ordering over rows and columns
      * where rows are sorted according to the provided {@code rows} {@link Iterable} and then columns on byte ordering.
      * If the {@link Iterable} does not have a stable ordering (i.e. iteration order can change across iterators
      * returned) then the returned iterator is sorted lexicographically with columns sorted on byte ordering, but
      * the ordering of rows is undefined.
-     *
+     * <p>
+     * In the event that local writes are performed to cells that would fall in the range of columns indicated for one
+     * (or more) of the provided rows, behaviour is undefined.
+     * <p>
      * Iterators must be used strictly within the scope of the transaction.
      *
      * @param tableRef table to load values from
@@ -123,13 +126,13 @@ Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
      * Returns a mapping of rows to {@link Iterator}s over cell-value pairs within {@code tableRef} for the specified
      * {@code rows}, where the columns fall within the provided {@link BatchColumnRangeSelection}. The single provided
      * {@link BatchColumnRangeSelection} applies to all of the rows.
-     *
+     * <p>
      * The returned iterators are guaranteed to return cells matching the predicate. These are sorted by column on
      * byte ordering.
-     *
+     * <p>
      * It is guaranteed that the {@link Map#keySet()} of the returned map has a corresponding element for each of the
      * input {@code rows}, even if there are rows where no columns match the predicate.
-     *
+     * <p>
      * Iterators must be used strictly within the scope of the transaction.
      *
      * @param tableRef table to load values from
@@ -147,14 +150,14 @@ Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator(
      * columns fall within the provided  {@link BatchColumnRangeSelection}.The single provided
      * {@link BatchColumnRangeSelection} applies to all of the rows. The cells for a row appear exactly once even if
      * the same row is included multiple times in {@code rows}.
-     *
+     * <p>
      * The returned iterator is guaranteed to contain cells sorted first in lexicographical order of column on byte
      * ordering, then in order of row, where rows are sorted according to the provided {@code rows} {@link Iterable}.
      * If the {@link Iterable} does not have a stable ordering (i.e. iteration order can change across iterators
      * returned) then the returned iterator is sorted lexicographically with columns sorted on byte ordering, but the
      * ordering of rows is undefined. In case of duplicate rows, the ordering is based on the first occurrence of
      * the row.
-     *
+     * <p>
      * Iterators must be used strictly within the scope of the transaction.
      *
      * @param tableRef table to load values from
@@ -165,6 +168,7 @@ Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator(
     @Idempotent
     Iterator<Map.Entry<Cell, byte[]>> getSortedColumns(
             TableReference tableRef, Iterable<byte[]> rows, BatchColumnRangeSelection batchColumnRangeSelection);
+
     /**
      * Gets the values associated for each cell in {@code cells} from table specified by {@code tableRef}.
      *
@@ -178,7 +182,7 @@ Iterator<Map.Entry<Cell, byte[]>> getSortedColumns(
     /**
      * Gets the values associated for each cell in {@code cells} from table specified by {@code tableRef}. It is not
      * guaranteed that the actual implementations are in fact asynchronous.
-     *
+     * <p>
      * The future must be used strictly within the scope of the transaction.
      *
      * @param tableRef the table from which to get the values
@@ -190,7 +194,7 @@ Iterator<Map.Entry<Cell, byte[]>> getSortedColumns(
 
     /**
      * Creates a visitable that scans the provided range.
-     *
+     * <p>
      * Batching visitables must be used strictly within the scope of the transaction.
      *
      * @param tableRef the table to scan
@@ -207,7 +211,7 @@ Iterator<Map.Entry<Cell, byte[]>> getSortedColumns(
      * the batch hint in each RangeRequest. If this isn't done then this method may do more work
      * than you need and will be slower than it needs to be.  If the batchHint isn't specified it
      * will default to 1 for the first page in each range.
-     *
+     * <p>
      * Batching visitables must be used strictly within the scope of the transaction.
      *
      * @deprecated Should use either {@link #getRanges(TableReference, Iterable, int, BiFunction)} or
@@ -222,10 +226,10 @@ Iterable<BatchingVisitable<RowResult<byte[]>>> getRanges(
     /**
      * Creates unvisited visitables that scan the provided ranges and then applies the provided visitableProcessor
      * function with concurrency specified by the concurrencyLevel parameter.
-     *
+     * <p>
      * It is guaranteed that the range requests seen by the provided visitable processor are equal to the provided
      * iterable of range requests, though no guarantees are made on the order they are encountered in.
-     *
+     * <p>
      * Streams must be read within the scope of the transaction.
      */
     @Idempotent
@@ -255,7 +259,7 @@ <T> Stream<T> getRanges(
     /**
      * Returns visitibles that scan the provided ranges. This does no pre-fetching so visiting the resulting
      * visitibles will incur database reads on first access.
-     *
+     * <p>
      * Streams and visitables must be read within the scope of this transaction.
      */
     @Idempotent
@@ -265,6 +269,7 @@ Stream<BatchingVisitable<RowResult<byte[]>>> getRangesLazy(
     /**
      * Puts values into the key-value store. If you put a null or the empty byte array, then
      * this is treated like a delete to the store.
+     *
      * @param tableRef the table into which to put the values
      * @param values the values to append to the table
      */
@@ -273,6 +278,7 @@ Stream<BatchingVisitable<RowResult<byte[]>>> getRangesLazy(
 
     /**
      * Deletes values from the key-value store.
+     *
      * @param tableRef the table from which to delete the values
      * @param keys the set of cells to delete from the store
      */
@@ -298,7 +304,7 @@ enum TransactionType {
         /**
          * In addition to queuing cells for "scrubbing", we also:
          * - (a) Scrub earlier than we would have otherwise, even at the cost of possibly
-         *       causing open transactions to abort, and
+         * causing open transactions to abort, and
          * - (b) Block until the scrub is complete.
          */
         AGGRESSIVE_HARD_DELETE
@@ -322,6 +328,7 @@ enum TransactionType {
      * <p>
      * NOTE: only cell-level conflicts are detected.  If another transaction writes to the same row
      * but a different cell, then no conflict occurs.
+     *
      * @throws TransactionConflictException if this transaction had a conflict with another running transaction
      * @throws TransactionCommitFailedException if this transaction failed at commit time.  If this exception
      * is thrown, then this transaction may have been committed, but most likely not.
@@ -344,7 +351,7 @@ enum TransactionType {
      * Gets whether the transaction has not been committed.
      *
      * @return <code>true</code> if neither <code>commit()</code> or <code>abort()</code> have been called,
-     *         otherwise <code>false</code>
+     * otherwise <code>false</code>
      */
     @Idempotent
     boolean isUncommitted();
@@ -368,10 +375,10 @@ enum TransactionType {
 
     /**
      * Registers a callback that will be called after the AtlasDB client perceives a successful commit of a transaction.
-     *
+     * <p>
      * We guarantee that if the provided callback runs, the transaction has definitely committed successfully.
      * The converse is NOT true: it is possible that the callback is NOT called even if the transaction was successful.
-     *
+     * <p>
      * The semantics of callbacks are as follows:
      * <ul>
      *     <li>Callbacks must be registered before a transaction commits or aborts; registration of a callback once
@@ -387,7 +394,7 @@ enum TransactionType {
 
     /**
      * Disables read-write conflict checking for this table for the duration of this transaction only.
-     *
+     * <p>
      * This method should be called before any reads are done on this table.
      */
     @Idempotentu}(j  (7106f71e6d34176f7cb42f951f163b679fb2a10dj  iatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/RowColumnRangeIterator.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FRowColumnRangeIterator.javaj  https://github.com/palantir/atlasdb/raw/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FRowColumnRangeIterator.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FRowColumnRangeIterator.java?ref=b44f24b10c4b4739df60acc2883e143d85f6241ej!  Xb  @@ -0,0 +1,22 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import java.util.Iterator;
+import java.util.Map.Entry;
+
+public interface RowColumnRangeIterator extends Iterator<Entry<WorkloadCell, Integer>> {}u}(j  (e7346178116e9e25cb60c5dc113b7b9abe847d7dj  oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/WorkloadColumnRangeSelection.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FWorkloadColumnRangeSelection.javaj  https://github.com/palantir/atlasdb/raw/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FWorkloadColumnRangeSelection.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FWorkloadColumnRangeSelection.java?ref=b44f24b10c4b4739df60acc2883e143d85f6241ej!  X  @@ -0,0 +1,27 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WorkloadColumnRangeSelection {
+    Optional<Integer> startColumnInclusive();
+
+    Optional<Integer> endColumnExclusive();
+}u}(j  (912814b17f7357958747525d45038e1911cd2693j  oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj  https://github.com/palantir/atlasdb/raw/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=b44f24b10c4b4739df60acc2883e143d85f6241ej!  X  @@ -16,7 +16,9 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
+import com.palantir.atlasdb.workload.store.RowColumnRangeIterator;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import java.util.List;
 import java.util.Optional;
@@ -31,5 +33,8 @@ public interface InteractiveTransaction {
 
     void delete(String table, WorkloadCell workloadCell);
 
+    RowColumnRangeIterator getRowsColumnRange(
+            String table, List<Integer> rows, WorkloadColumnRangeSelection workloadColumnRangeSelection);
+
     List<WitnessedTransactionAction> witness();
 }u}(j  (630e855dc9fed9103a90b17dc454801bac4dec31j  }atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowsColumnRangeReadTransactionAction.javaj  addedj  K:j  K j  K:j  https://github.com/palantir/atlasdb/blob/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowsColumnRangeReadTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowsColumnRangeReadTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowsColumnRangeReadTransactionAction.java?ref=b44f24b10c4b4739df60acc2883e143d85f6241ej!  X	  @@ -0,0 +1,58 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedRowsColumnRangeExhaustionTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedRowsColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeExhaustionTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeReadTransactionAction;
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface RowsColumnRangeReadTransactionAction extends TransactionAction {
+    /** Table to apply the row range read to. */
+    String table();
+
+    /** Rows which should be read. */
+    List<Integer> rows();
+
+    /** Column range which should be read. */
+    WorkloadColumnRangeSelection batchColumnRangeSelection();
+
+    @Override
+    default <T> T accept(TransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    default WitnessedRowsColumnRangeExhaustionTransactionAction exhaustionWitness() {
+        return ImmutableWitnessedRowsColumnRangeExhaustionTransactionAction.builder()
+                .originalAction(this)
+                .build();
+    }
+
+    default WitnessedRowsColumnRangeReadTransactionAction readWitness(WorkloadCell cell, int value) {
+        return ImmutableWitnessedRowsColumnRangeReadTransactionAction.builder()
+                .originalAction(this)
+                .table(this.table())
+                .cell(cell)
+                .value(value)
+                .build();
+    }
+}u}(j  (4e1b57195b4f8ee8f4df62dc9e0567679c50aa62j  qatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionActionVisitor.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj  https://github.com/palantir/atlasdb/raw/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.java?ref=b44f24b10c4b4739df60acc2883e143d85f6241ej!  X  @@ -22,4 +22,6 @@ public interface TransactionActionVisitor<T> {
     T visit(WriteTransactionAction writeTransactionAction);
 
     T visit(DeleteTransactionAction deleteTransactionAction);
+
+    T visit(RowsColumnRangeReadTransactionAction rowsColumnRangeReadTransactionAction);
 }u}(j  (fb07d77e2525700dda0f15d1f5437382f231dae3j  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedRowColumnRangePageReadTransactionAction.javaj  addedj  Kj  K j  Kj  X   https://github.com/palantir/atlasdb/blob/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangePageReadTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangePageReadTransactionAction.javaj  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangePageReadTransactionAction.java?ref=b44f24b10c4b4739df60acc2883e143d85f6241ej!  X  @@ -0,0 +1,23 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+public interface InvalidWitnessedRowColumnRangePageReadTransactionAction extends InvalidWitnessedTransactionAction {
+    WitnessedRowsColumnRangeReadTransactionAction action();
+
+    // TODO (jkong): Add whatever is needed to represent the mismatched value.
+}u}(j  (f311e643064907dd8eeece7fe8fe0069efe51f4ej  ~atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransaction.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.javaj  https://github.com/palantir/atlasdb/raw/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.java?ref=b44f24b10c4b4739df60acc2883e143d85f6241ej!  X  @@ -28,8 +28,7 @@ public interface InvalidWitnessedTransaction {
     List<InvalidWitnessedTransactionAction> invalidActions();
 
     static InvalidWitnessedTransaction of(
-            WitnessedTransaction witnessedTransaction,
-            List<InvalidWitnessedSingleCellTransactionAction> invalidActions) {
+            WitnessedTransaction witnessedTransaction, List<InvalidWitnessedTransactionAction> invalidActions) {
         return ImmutableInvalidWitnessedTransaction.of(witnessedTransaction, invalidActions);
     }
 }u}(j  (acb25a0552f4ba18952449a864de5be696883eaej  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowsColumnRangeExhaustionTransactionAction.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowsColumnRangeExhaustionTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowsColumnRangeExhaustionTransactionAction.javaj  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowsColumnRangeExhaustionTransactionAction.java?ref=b44f24b10c4b4739df60acc2883e143d85f6241ej!  X  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.transaction.RowsColumnRangeReadTransactionAction;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WitnessedRowsColumnRangeExhaustionTransactionAction extends WitnessedTransactionAction {
+    RowsColumnRangeReadTransactionAction originalAction();
+
+    @Override
+    default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+}u}(j  (5b83082953580f65f66433960f8de84d87112559j  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowsColumnRangeReadTransactionAction.javaj  addedj  K'j  K j  K'j  https://github.com/palantir/atlasdb/blob/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowsColumnRangeReadTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowsColumnRangeReadTransactionAction.javaj  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowsColumnRangeReadTransactionAction.java?ref=b44f24b10c4b4739df60acc2883e143d85f6241ej!  X@  @@ -0,0 +1,39 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.RowsColumnRangeReadTransactionAction;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WitnessedRowsColumnRangeReadTransactionAction extends WitnessedSingleCellTransactionAction {
+    RowsColumnRangeReadTransactionAction originalAction();
+
+    @Override
+    String table();
+
+    @Override
+    WorkloadCell cell();
+
+    int value();
+
+    @Override
+    default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+}u}(j  (a3f6dc91181f0af3a4c28d6398297cb25b15e97bj  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionActionVisitor.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj  https://github.com/palantir/atlasdb/raw/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.java?ref=b44f24b10c4b4739df60acc2883e143d85f6241ej!  X  @@ -22,4 +22,8 @@ public interface WitnessedTransactionActionVisitor<T> {
     T visit(WitnessedWriteTransactionAction writeTransactionAction);
 
     T visit(WitnessedDeleteTransactionAction deleteTransactionAction);
+
+    T visit(WitnessedRowsColumnRangeReadTransactionAction rowsColumnRangeReadTransactionAction);
+
+    T visit(WitnessedRowsColumnRangeExhaustionTransactionAction rowsColumnRangeExhaustionTransactionAction);
 }u}(j  (0ea171c843cb6e01a85f287046c3558f917265aaj  hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj  modifiedj  Kj  Kj  K,j  https://github.com/palantir/atlasdb/blob/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj  https://github.com/palantir/atlasdb/raw/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=b44f24b10c4b4739df60acc2883e143d85f6241ej!  X  @@ -16,18 +16,23 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
+import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeExhaustionTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import java.util.List;
 import java.util.Optional;
 import java.util.function.Consumer;
+import java.util.stream.Collectors;
 import one.util.streamex.StreamEx;
 
 public enum SerializableInvariant implements TransactionInvariant {
@@ -39,10 +44,10 @@ public void accept(
         SerializableInvariantVisitor visitor = new SerializableInvariantVisitor();
         List<InvalidWitnessedTransaction> transactions = StreamEx.of(workflowHistory.history())
                 .mapPartial(witnessedTransaction -> {
-                    List<InvalidWitnessedSingleCellTransactionAction> invalidTransactions = StreamEx.of(
+                    List<InvalidWitnessedTransactionAction> invalidTransactions = StreamEx.of(
                                     witnessedTransaction.actions())
-                            .mapPartial(action -> action.accept(visitor))
-                            .toList();
+                            .flatCollection(action -> action.accept(visitor))
+                            .collect(Collectors.toList());
 
                     if (invalidTransactions.isEmpty()) {
                         return Optional.empty();
@@ -55,39 +60,50 @@ public void accept(
     }
 
     private static final class SerializableInvariantVisitor
-            implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedSingleCellTransactionAction>> {
+            implements WitnessedTransactionActionVisitor<List<InvalidWitnessedTransactionAction>> {
 
         private final InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
 
         @Override
-        public Optional<InvalidWitnessedSingleCellTransactionAction> visit(
-                WitnessedReadTransactionAction readTransactionAction) {
+        public List<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
             Optional<Integer> expectedValue = inMemoryTransactionReplayer
                     .getValues()
                     .get(TableAndWorkloadCell.of(readTransactionAction.table(), readTransactionAction.cell()))
                     .toJavaOptional()
                     .orElseGet(Optional::empty);
 
             if (!expectedValue.equals(readTransactionAction.value())) {
-                return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
+                return ImmutableList.of(InvalidWitnessedSingleCellTransactionAction.of(
                         readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expectedValue)));
             }
 
-            return Optional.empty();
+            return ImmutableList.of();
         }
 
         @Override
-        public Optional<InvalidWitnessedSingleCellTransactionAction> visit(
-                WitnessedWriteTransactionAction writeTransactionAction) {
+        public List<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
             inMemoryTransactionReplayer.visit(writeTransactionAction);
-            return Optional.empty();
+            return ImmutableList.of();
         }
 
         @Override
-        public Optional<InvalidWitnessedSingleCellTransactionAction> visit(
-                WitnessedDeleteTransactionAction deleteTransactionAction) {
+        public List<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
             inMemoryTransactionReplayer.visit(deleteTransactionAction);
-            return Optional.empty();
+            return ImmutableList.of();
+        }
+
+        @Override
+        public List<InvalidWitnessedTransactionAction> visit(
+                WitnessedRowsColumnRangeReadTransactionAction rowsColumnRangeReadTransactionAction) {
+            // TODO (jkong): Not implemented yet
+            return ImmutableList.of();
+        }
+
+        @Override
+        public List<InvalidWitnessedTransactionAction> visit(
+                WitnessedRowsColumnRangeExhaustionTransactionAction rowsColumnRangeExhaustionTransactionAction) {
+            // TODO (jkong): Not implemented yet
+            return ImmutableList.of();
         }
     }
 }u}(j  (0fba3c89a1d098d137c2b5a358f93c6ee2e9d3b3j  datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariant.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javaj  https://github.com/palantir/atlasdb/raw/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.java?ref=b44f24b10c4b4739df60acc2883e143d85f6241ej!  X  @@ -19,8 +19,8 @@
 import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -62,13 +62,13 @@ public void accept(
                     latestTableView,
                     tableView.getView(witnessedTransaction.startTimestamp()));
 
-            ImmutableList.Builder<InvalidWitnessedSingleCellTransactionAction> invalidTransactionActionsBuilder =
+            ImmutableList.Builder<InvalidWitnessedTransactionAction> invalidTransactionActionsBuilder =
                     new ImmutableList.Builder<>();
             for (WitnessedTransactionAction action : witnessedTransaction.actions()) {
-                action.accept(visitor).ifPresent(invalidTransactionActionsBuilder::add);
+                invalidTransactionActionsBuilder.addAll(action.accept(visitor));
             }
 
-            List<InvalidWitnessedSingleCellTransactionAction> invalidTransactionActions =
+            List<InvalidWitnessedTransactionAction> invalidTransactionActions =
                     invalidTransactionActionsBuilder.build();
 
             witnessedTransactionu}(j  (2fd31f9542db6f53b24b7f189beb3efb3b855046j  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj  modifiedj  Kj  Kj  K'j  https://github.com/palantir/atlasdb/blob/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj  https://github.com/palantir/atlasdb/raw/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=b44f24b10c4b4739df60acc2883e143d85f6241ej!  X  @@ -16,16 +16,22 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
+import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeExhaustionTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.Map;
+import java.util.List;
 import java.util.Optional;
+import java.util.stream.Collectors;
 
 /**
  * Replays transactions and validates for conflicts on the latest and read view.
@@ -36,7 +42,7 @@
  * Objects created from this class should only be used within a scope of a single transaction.
  */
 final class SnapshotInvariantVisitor
-        implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedSingleCellTransactionAction>> {
+        implements WitnessedTransactionActionVisitor<List<InvalidWitnessedTransactionAction>> {
 
     private final Long startTimestamp;
     private final StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestView;
@@ -52,21 +58,19 @@ final class SnapshotInvariantVisitor
     }
 
     @Override
-    public Optional<InvalidWitnessedSingleCellTransactionAction> visit(
-            WitnessedReadTransactionAction readTransactionAction) {
+    public List<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
         Optional<Integer> expected = fetchValueFromView(
                         readTransactionAction.table(), readTransactionAction.cell(), readView)
                 .value();
         if (!expected.equals(readTransactionAction.value())) {
-            return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
+            return ImmutableList.of(InvalidWitnessedSingleCellTransactionAction.of(
                     readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expected)));
         }
-        return Optional.empty();
+        return ImmutableList.of();
     }
 
     @Override
-    public Optional<InvalidWitnessedSingleCellTransactionAction> visit(
-            WitnessedWriteTransactionAction writeTransactionAction) {
+    public List<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
         Optional<InvalidWitnessedSingleCellTransactionAction> invalidAction = checkForWriteWriteConflicts(
                         writeTransactionAction.table(), writeTransactionAction.cell())
                 .map(mismatchedValue ->
@@ -76,19 +80,32 @@ public Optional<InvalidWitnessedSingleCellTransactionAction> visit(
                 writeTransactionAction.table(),
                 writeTransactionAction.cell(),
                 Optional.of(writeTransactionAction.value()));
-        return invalidAction;
+        return invalidAction.stream().collect(Collectors.toList());
     }
 
     @Override
-    public Optional<InvalidWitnessedSingleCellTransactionAction> visit(
-            WitnessedDeleteTransactionAction deleteTransactionAction) {
+    public List<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         Optional<InvalidWitnessedSingleCellTransactionAction> invalidAction = checkForWriteWriteConflicts(
                         deleteTransactionAction.table(), deleteTransactionAction.cell())
                 .map(mismatchedValue ->
                         InvalidWitnessedSingleCellTransactionAction.of(deleteTransactionAction, mismatchedValue));
 
         applyWrites(deleteTransactionAction.table(), deleteTransactionAction.cell(), Optional.empty());
-        return invalidAction;
+        return invalidAction.stream().collect(Collectors.toList());
+    }
+
+    @Override
+    public List<InvalidWitnessedTransactionAction> visit(
+            WitnessedRowsColumnRangeReadTransactionAction rowsColumnRangeReadTransactionAction) {
+        // TODO(jkong): Not implemented yet
+        return ImmutableList.of();
+    }
+
+    @Override
+    public List<InvalidWitnessedTransactionAction> visit(
+            WitnessedRowsColumnRangeExhaustionTransactionAction rowsColumnRangeExhaustionTransactionAction) {
+        // TODO(jkong): Not implemented yet
+        return ImmutableList.of();
     }
 
     /**u}(j  (96ed9280b5fdd857c16149a1168b6675b97b1492j  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj  modifiedj  K9j  Kj  K;j  https://github.com/palantir/atlasdb/blob/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj  https://github.com/palantir/atlasdb/raw/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=b44f24b10c4b4739df60acc2883e143d85f6241ej!  X  @@ -16,11 +16,14 @@
 
 package com.palantir.atlasdb.workload.store;
 
+import com.google.common.collect.Maps;
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.workload.transaction.ImmutableRowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.RowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -30,11 +33,15 @@
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.ArrayList;
+import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Optional;
 import java.util.Set;
 import java.util.function.BiFunction;
+import java.util.function.Function;
+import java.util.stream.Collectors;
 import javax.annotation.concurrent.NotThreadSafe;
 
 @NotThreadSafe
@@ -91,6 +98,44 @@ public void delete(String table, WorkloadCell workloadCell) {
                 workloadCell);
     }
 
+    @Override
+    public RowColumnRangeIterator getRowsColumnRange(
+            String table, List<Integer> rows, WorkloadColumnRangeSelection workloadColumnRangeSelection) {
+        Iterator<Entry<Cell, byte[]>> rawAtlasDbIterator = run(
+                tableReference -> transaction.getRowsColumnRange(
+                        tableReference,
+                        rows.stream().map(Ints::toByteArray).collect(Collectors.toList()),
+                        AtlasDbUtils.toAtlasDbColumnRangeSelection(workloadColumnRangeSelection),
+                        100), // TODO (jkong): Should this be configurable?
+                table);
+
+        RowsColumnRangeReadTransactionAction transactionAction = ImmutableRowsColumnRangeReadTransactionAction.builder()
+                .table(table)
+                .rows(rows)
+                .batchColumnRangeSelection(workloadColumnRangeSelection)
+                .build();
+        return new RowColumnRangeIterator() {
+            @Override
+            public boolean hasNext() {
+                boolean hasNext = rawAtlasDbIterator.hasNext();
+                if (!hasNext) {
+                    witnessedTransactionActions.add(transactionAction.exhaustionWitness());
+                }
+                return rawAtlasDbIterator.hasNext();
+            }
+
+            @Override
+            public Entry<WorkloadCell, Integer> next() {
+                Entry<Cell, byte[]> atlasDbEntry = rawAtlasDbIterator.next();
+
+                WorkloadCell workloadCell = AtlasDbUtils.toWorkloadCell(atlasDbEntry.getKey());
+                int value = Ints.fromByteArray(atlasDbEntry.getValue()); // TODO (jkong): No!
+                witnessedTransactionActions.add(transactionAction.readWitness(workloadCell, value));
+                return Maps.immutableEntry(workloadCell, value);
+            }
+        };
+    }
+
     @Override
     public List<WitnessedTransactionAction> witness() {
         hasFinished = true;
@@ -106,10 +151,20 @@ private TableReference getTableReferenceOrThrow(String table) {
     }
 
     private <T> T run(BiFunction<TableReference, Cell, T> function, String table, WorkloadCell workloadCell) {
-        Preconditions.checkState(
-                !hasFinished, "Transaction has already been witnessed and can no longer perform any actions.");
+        checkTransactionHasNotFinished();
         Cell atlasCell = AtlasDbUtils.toAtlasCell(workloadCell);
         TableReference tableReference = getTableReferenceOrThrow(table);
         return function.apply(tableReference, atlasCell);
     }
+
+    private <T> T run(Function<TableReference, T> function, String table) {
+        checkTransactionHasNotFinished();
+        TableReference tableReference = getTableReferenceOrThrow(table);
+        return function.apply(tableReference);
+    }
+
+    private void checkTransactionHasNotFinished() {
+        Preconditions.checkState(
+                !hasFinished, "Transaction has already been witnessed and can no longer perform any actions.");
+    }
 }uj     }(j  (17c063e95fe737aa82c73e264239ce222ce48a02j  fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj  modifiedj  K
j  K j  K
j  https://github.com/palantir/atlasdb/blob/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj  https://github.com/palantir/atlasdb/raw/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=b44f24b10c4b4739df60acc2883e143d85f6241ej!  X  @@ -27,6 +27,7 @@
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.RowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
@@ -159,6 +160,15 @@ public Void visit(DeleteTransactionAction deleteTransactionAction) {
             transaction.delete(deleteTransactionAction.table(), deleteTransactionAction.cell());
             return null;
         }
+
+        @Override
+        public Void visit(RowsColumnRangeReadTransactionAction rowsColumnRangeReadTransactionAction) {
+            transaction.getRowsColumnRange(
+                    rowsColumnRangeReadTransactionAction.table(),
+                    rowsColumnRangeReadTransactionAction.rows(),
+                    rowsColumnRangeReadTransactionAction.batchColumnRangeSelection());
+            return null;
+        }
     }
 
     public static AtlasDbTransactionStore create(u}(j  (3f5721ac5226bb3800c5e801118f62fd971051b2j  patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj  https://github.com/palantir/atlasdb/raw/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=b44f24b10c4b4739df60acc2883e143d85f6241ej!  X  @@ -20,6 +20,8 @@
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeExhaustionTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.HashMap;
@@ -55,6 +57,16 @@ public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         return null;
     }
 
+    @Override
+    public Void visit(WitnessedRowsColumnRangeReadTransactionAction _rowsColumnRangeReadTransactionAction) {
+        return null;
+    }
+
+    @Override
+    public Void visit(WitnessedRowsColumnRangeExhaustionTransactionAction _rowsColumnRangeExhaustionTransactionAction) {
+        return null;
+    }
+
     public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
         return values.getSnapshot();
     }u}(j  (69abe901f905e132b7329ea473c9ee4f35f2040dj  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javaj  modifiedj  K
j  K j  K
j  https://github.com/palantir/atlasdb/blob/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj  https://github.com/palantir/atlasdb/raw/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=b44f24b10c4b4739df60acc2883e143d85f6241ej!  X  @@ -18,6 +18,8 @@
 
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeExhaustionTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 
@@ -39,4 +41,15 @@ public WriteTransactionAction visit(WitnessedWriteTransactionAction writeTransac
     public DeleteTransactionAction visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         return ImmutableDeleteTransactionAction.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
     }
+
+    @Override
+    public TransactionAction visit(WitnessedRowsColumnRangeReadTransactionAction rowsColumnRangeReadTransactionAction) {
+        return rowsColumnRangeReadTransactionAction.originalAction();
+    }
+
+    @Override
+    public TransactionAction visit(
+            WitnessedRowsColumnRangeExhaustionTransactionAction rowsColumnRangeExhaustionTransactionAction) {
+        return rowsColumnRangeExhaustionTransactionAction.originalAction();
+    }
 }u}(j  (17aa6bb2e10274d522d90d1ffc992e8848d17707j  Zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/AtlasDbUtils.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj  https://github.com/palantir/atlasdb/raw/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.java?ref=b44f24b10c4b4739df60acc2883e143d85f6241ej!  X  @@ -19,13 +19,16 @@
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
 import com.palantir.atlasdb.table.description.NameMetadataDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadColumnRangeSelection;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
@@ -93,4 +96,21 @@ public static ConflictHandler toIndexConflictHandler(ConflictHandler baseTableCo
     public static byte[] indexMetadata(ConflictHandler baseTableConflictHandler) {
         return tableMetadata(toIndexConflictHandler(baseTableConflictHandler));
     }
+
+    public static ColumnRangeSelection toAtlasDbColumnRangeSelection(
+            WorkloadColumnRangeSelection workloadColumnRangeSelection) {
+        return new ColumnRangeSelection(
+                workloadColumnRangeSelection
+                        .startColumnInclusive()
+                        .map(Ints::toByteArray)
+                        .orElse(null),
+                workloadColumnRangeSelection
+                        .endColumnExclusive()
+                        .map(Ints::toByteArray)
+                        .orElse(null));
+    }
+
+    public static WorkloadCell toWorkloadCell(Cell key) {
+        return ImmutableWorkloadCell.of(Ints.fromByteArray(key.getRowName()), Ints.fromByteArray(key.getColumnName()));
+    }
 }u}(j  (fce607c01de9c42f93ef9f3a6b9361b5022a790cj  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj  https://github.com/palantir/atlasdb/raw/b44f24b10c4b4739df60acc2883e143d85f6241e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=b44f24b10c4b4739df60acc2883e143d85f6241ej!  X'  @@ -111,6 +111,14 @@ public void deleteThrowsWhenInteractiveTransactionAlreadyWitnessed() {
                 transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
     }
 
+    @Test
+    public void getRowsColumnRangeThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(transaction -> transaction.getRowsColumnRange(
+                TABLE_1,
+                List.of(WORKLOAD_CELL_ONE.key()),
+                ImmutableWorkloadColumnRangeSelection.builder().build()));
+    }
+
     private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         return manager.runTaskWithRetry(atlasTransaction -> {
             AtlasDbInteractiveTransaction interactiveTransaction =ueu(ba0f50f579c362467cf518e036ead2904bd2d66c}(sha(ba0f50f579c362467cf518e036ead2904bd2d66cnode_idEC_kwDOAjP5fdoAKGJhMGY1MGY1NzljMzYyNDY3Y2Y1MThlMDM2ZWFkMjkwNGJkMmQ2NmMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-24T17:12:51Zu	committer}(j  
Sam Kramerj  skramer@palantir.comj  2023-03-24T17:12:51Zumessage&add glibc to our images for antithesistree}(j  (6f3b7299ca1f26956eabdbea5b5e99fccaea6423url`https://api.github.com/repos/palantir/atlasdb/git/trees/6f3b7299ca1f26956eabdbea5b5e99fccaea6423uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ba0f50f579c362467cf518e036ead2904bd2d66c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQd2hMACgkQmPPOpKR4
XS1NNQf/Y0IqMIJbzlLEWq8GMr+o8Ma+1wHVCMLSneBG88h15qxH4qRI6F6iM1tt
dPD+TJOgtTFPvTuNNpzVWyQePY2GvOxqg1IKuu4ZhL+v2329P5pFSEVK4iSGpVDR
v8sjP/70hJHjrRe6ZZKKVxkES5IiRwXGA0uamMid28TzAfAyw0XIbrKxlsXQGDYE
wzn6TkKDs2ovnRbHaGPi0GJnKXOFHikLgJk0BSxHTPudVfdDRgZOaWJOu8AijK4d
xwFiCT/XcA7LuBV0Seqa1gaBF3lkEsCAgsvhmvNMuYbfW0+I5RrLajzbq1XsTYet
IWwv2csNWa/J6wgTm8167gbXHcEfGQ==
=zoua
-----END PGP SIGNATURE-----payloadtree 6f3b7299ca1f26956eabdbea5b5e99fccaea6423
parent f522243f82381b53d56d80abd2e7f5c0046d596e
author Sam Kramer <skramer@palantir.com> 1679677971 +0000
committer Sam Kramer <skramer@palantir.com> 1679677971 +0000

add glibc to our images for antithesis
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/ba0f50f579c362467cf518e036ead2904bd2d66chtml_urlShttps://github.com/palantir/atlasdb/commit/ba0f50f579c362467cf518e036ead2904bd2d66ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ba0f50f579c362467cf518e036ead2904bd2d66c/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j  
Sam-Kramerj  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j  h5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj  1https://api.github.com/users/Sam-Kramer/followersj  >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j  5https://api.github.com/users/Sam-Kramer/subscriptionsj  ,https://api.github.com/users/Sam-Kramer/orgsj  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj  uparents]}(j  (f522243f82381b53d56d80abd2e7f5c0046d596ej  ^https://api.github.com/repos/palantir/atlasdb/commits/f522243f82381b53d56d80abd2e7f5c0046d596ej  Shttps://github.com/palantir/atlasdb/commit/f522243f82381b53d56d80abd2e7f5c0046d596euastats}(totalK	additionsK	deletionsKufiles](}(j  (56ec0ba80fc9bb5ce40392de3bd8090292a4b18bfilename/atlasdb-workload-server-distribution/Dockerfilestatusmodifiedj  Kj   KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ba0f50f579c362467cf518e036ead2904bd2d66c/atlasdb-workload-server-distribution%2FDockerfileraw_urlhttps://github.com/palantir/atlasdb/raw/ba0f50f579c362467cf518e036ead2904bd2d66c/atlasdb-workload-server-distribution%2FDockerfilecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2FDockerfile?ref=ba0f50f579c362467cf518e036ead2904bd2d66cpatchX  @@ -4,7 +4,7 @@ MAINTAINER AtlasDB Team
 ENV DOCKERIZE_VERSION v0.2.0
 
 # Bash is useful for monitoring; curl is used by our healthchecks.
-RUN apk update && apk add bash curl procps wget  \
+RUN apk update && apk add bash curl procps wget gcompat  \
     && wget --no-check-certificate http://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
     && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
 u}(j  (a9facbeae89d60a7a1976dd416b02ae85279420fj%  'timelock-server-distribution/Dockerfilej'  modifiedj  Kj   Kj)  Kj*  {https://github.com/palantir/atlasdb/blob/ba0f50f579c362467cf518e036ead2904bd2d66c/timelock-server-distribution%2FDockerfilej,  zhttps://github.com/palantir/atlasdb/raw/ba0f50f579c362467cf518e036ead2904bd2d66c/timelock-server-distribution%2FDockerfilej.  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-distribution%2FDockerfile?ref=ba0f50f579c362467cf518e036ead2904bd2d66cj0  XI  @@ -2,7 +2,7 @@ FROM adoptopenjdk/openjdk11:jre-11.0.9_11.1-alpine
 MAINTAINER AtlasDB Team
 
 # Bash is useful for monitoring; curl is used by our healthchecks.
-RUN apk update && apk add bash curl
+RUN apk update && apk add bash curl gcompat
 
 # Prefer ADD to COPY because it does the tar handling
 ADD timelock-server-*.tgz /ueu(9a3a2dcaf88b0ddb90eed64661bb4d16142978d2}(sha(9a3a2dcaf88b0ddb90eed64661bb4d16142978d2node_idEC_kwDOAjP5fdoAKDlhM2EyZGNhZjg4YjBkZGI5MGVlZDY0NjYxYmI0ZDE2MTQyOTc4ZDIcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-06-26T03:01:19Zu	committer}(jD  David SchlosnaglejF  davids@palantir.comjH  2023-06-26T03:01:19Zumessage9CassandraService presizehostToDatacentersOnThisTokenRangetree}(j<  (f279d8a2c1f98884b5e5e8084feb85066f57d5c8url`https://api.github.com/repos/palantir/atlasdb/git/trees/f279d8a2c1f98884b5e5e8084feb85066f57d5c8ujT  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9a3a2dcaf88b0ddb90eed64661bb4d16142978d2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmSY/4EACgkQR9hsJ74Q
0l9Aqgf/RO1q3Hpt5CMcNUduD8Xkt4Jt08poZ3l5n1Mn3lQbi2ULSiEev+kRSsBI
3AHGIS9OGt9R/tdA4LYSZ7n+/hPsqMYy4h5w2GE7QqmmNebelUond2H+HNwTz/Wn
ELLEdu79utV2OE+UIhhK5EKW9YBG2Vs+Edbs2YOJtSzBlWWUwxx/DlUZKo19JPWS
I4bKKLXPig8+tKVrArQMbZS8UwYrdwSTJErr2qbZsKGXyGwx70ozxmSJwsXP0T06
9sEuc90uE3Wi/Qd2dG5zmpdWL20uvxnq7+hmjAewaiYWIMO3zkFxWoq+RwnBdrKI
pt50Y0yW69S7MthhkrC8edlu3ipoOQ==
=B+Ww
-----END PGP SIGNATURE-----payloadX  tree f279d8a2c1f98884b5e5e8084feb85066f57d5c8
parent 613e115d909748315adbea905ad912518b569b38
author David Schlosnagle <davids@palantir.com> 1687748479 -0400
committer David Schlosnagle <davids@palantir.com> 1687748479 -0400

CassandraService presizehostToDatacentersOnThisTokenRange
uujT  ^https://api.github.com/repos/palantir/atlasdb/commits/9a3a2dcaf88b0ddb90eed64661bb4d16142978d2html_urlShttps://github.com/palantir/atlasdb/commit/9a3a2dcaf88b0ddb90eed64661bb4d16142978d2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9a3a2dcaf88b0ddb90eed64661bb4d16142978d2/commentsjB  }(loginschlosnaidMBj>  MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jT  %https://api.github.com/users/schlosnajb  https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujJ  }(jg  schlosnaji  MBj>  MDQ6VXNlcjU0NTk0jk  1https://avatars.githubusercontent.com/u/54594?v=4jm  h5jT  %https://api.github.com/users/schlosnajb  https://github.com/schlosnajp  /https://api.github.com/users/schlosna/followersjr  <https://api.github.com/users/schlosna/following{/other_user}jt  5https://api.github.com/users/schlosna/gists{/gist_id}jv  <https://api.github.com/users/schlosna/starred{/owner}{/repo}jx  3https://api.github.com/users/schlosna/subscriptionsjz  *https://api.github.com/users/schlosna/orgsj|  +https://api.github.com/users/schlosna/reposj~  6https://api.github.com/users/schlosna/events{/privacy}j  5https://api.github.com/users/schlosna/received_eventsj  Userj  uparents]}(j<  (613e115d909748315adbea905ad912518b569b38jT  ^https://api.github.com/repos/palantir/atlasdb/commits/613e115d909748315adbea905ad912518b569b38jb  Shttps://github.com/palantir/atlasdb/commit/613e115d909748315adbea905ad912518b569b38uastats}(totalK	additionsK	deletionsK	ufiles]}(j<  (a8dc2586dae8bd0288ed7ba1d12ca5d1ef892a57filenamebatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javastatusmodifiedj  Kj  K	changesKblob_urlhttps://github.com/palantir/atlasdb/blob/9a3a2dcaf88b0ddb90eed64661bb4d16142978d2/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9a3a2dcaf88b0ddb90eed64661bb4d16142978d2/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=9a3a2dcaf88b0ddb90eed64661bb4d16142978d2patchX  @@ -148,15 +148,14 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
                 hostToDatacentersThisRefresh.put(onlyHost, onlyEndpoint.getDatacenter());
             } else { // normal case, large cluster with many vnodes
                 for (TokenRange tokenRange : tokenRanges) {
-                    Map<CassandraServer, String> hostToDatacentersOnThisTokenRange = KeyedStream.of(
-                                    tokenRange.getEndpoint_details())
-                            .mapKeys(EndpointDetails::getHost)
-                            .mapKeys(this::getAddressForHostThrowUnchecked)
-                            .map(EndpointDetails::getDatacenter)
-                            .collectToMap();
-
-                    ImmutableSet<CassandraServer> hosts =
-                            ImmutableSet.copyOf(hostToDatacentersOnThisTokenRange.keySet());
+                    List<EndpointDetails> endpointDetails = tokenRange.getEndpoint_details();
+                    ImmutableMap.Builder<CassandraServer, String> builder =
+                            ImmutableMap.builderWithExpectedSize(endpointDetails.size());
+                    for (EndpointDetails endpoint : endpointDetails) {
+                        builder.put(getAddressForHostThrowUnchecked(endpoint.getHost()), endpoint.getDatacenter());
+                    }
+                    ImmutableMap<CassandraServer, String> hostToDatacentersOnThisTokenRange = builder.build();
+                    ImmutableSet<CassandraServer> hosts = hostToDatacentersOnThisTokenRange.keySet();
                     servers.addAll(hosts);
                     hostToDatacentersThisRefresh.putAll(hostToDatacentersOnThisTokenRange);
 uau(d3ec5f87f7f4a247419f85d7ca23afc429f8446b}(sha(d3ec5f87f7f4a247419f85d7ca23afc429f8446bnode_idEC_kwDOAjP5fdoAKGQzZWM1Zjg3ZjdmNGEyNDc0MTlmODVkN2NhMjNhZmM0MjlmODQ0NmIcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-29T00:36:23Zu	committer}(j  
Ahmed Alouanej  aalouane@palantir.comj  2023-04-29T00:36:23Zumessagenowtree}(j  (ae47189e9d029c8c2de4601b980b68a4373a5f2furl`https://api.github.com/repos/palantir/atlasdb/git/trees/ae47189e9d029c8c2de4601b980b68a4373a5f2fuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d3ec5f87f7f4a247419f85d7ca23afc429f8446b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRMZogACgkQPlMHVIT1
yhqpQQgAnGSD5vkdkS1UKj5y3REHHK3PY4rbqQX5ZS+czNw7DjTAMyGSVMoXeFUr
u9dw/zaZvwBu88w7z5RrxNx05LumnAFnI2lQgxqhUgQpbugSO6u/N4hWOYvBYpK/
CqPtRunOlSPSCteHaWcmSoxDZyd9qvIBTNYiill2q5Rd4kjo5OAvzonF9jtEOPVo
X7aKsWaoIOp00v+P3bua/DFedM6zW+ZU7s9RxdCWvVQy9VGltQI3eSbrCKIZWIEb
+X3zG6Nh1Y2pmklB8ICcEzMo1rOl0Vodw8NHl6SS0E82lCFwOn6KHteqZHNQ89ok
gfIGXSuBa40t20xvqjiU4ektzz8PUw==
=Qo+p
-----END PGP SIGNATURE-----payloadtree ae47189e9d029c8c2de4601b980b68a4373a5f2f
parent e6e60e5916ecd3e4f549a14ee71fe79dd8361a93
author Ahmed Alouane <aalouane@palantir.com> 1682728583 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682728583 +0100

now
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/d3ec5f87f7f4a247419f85d7ca23afc429f8446bhtml_urlShttps://github.com/palantir/atlasdb/commit/d3ec5f87f7f4a247419f85d7ca23afc429f8446bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d3ec5f87f7f4a247419f85d7ca23afc429f8446b/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j  ergo14j  Jj  MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j  h5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14j  -https://api.github.com/users/ergo14/followersj  :https://api.github.com/users/ergo14/following{/other_user}j  3https://api.github.com/users/ergo14/gists{/gist_id}j  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j  1https://api.github.com/users/ergo14/subscriptionsj  (https://api.github.com/users/ergo14/orgsj  )https://api.github.com/users/ergo14/reposj  4https://api.github.com/users/ergo14/events{/privacy}j  3https://api.github.com/users/ergo14/received_eventsj  Userj  uparents]}(j  (e6e60e5916ecd3e4f549a14ee71fe79dd8361a93j  ^https://api.github.com/repos/palantir/atlasdb/commits/e6e60e5916ecd3e4f549a14ee71fe79dd8361a93j  Shttps://github.com/palantir/atlasdb/commit/e6e60e5916ecd3e4f549a14ee71fe79dd8361a93uastats}(totalK	additionsK	deletionsKufiles]}(j  (b1a4e4396e99453c7ac4e7e9656c99c04de066cffilename.circleci/config.ymlstatusmodifiedj  Kj  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/d3ec5f87f7f4a247419f85d7ca23afc429f8446b/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/d3ec5f87f7f4a247419f85d7ca23afc429f8446b/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=d3ec5f87f7f4a247419f85d7ca23afc429f8446bpatch@@ -155,7 +155,7 @@ workflows:
               test_suite: [8]
           filters:
             branches:
-              only: aatest23
+              only: /(aatest.*|develop)/
             tags:
               only: /.*/
       - trial-publish:uau(313d10b5f9661ee302e2544ab5efce860de92161}(sha(313d10b5f9661ee302e2544ab5efce860de92161node_idEC_kwDOAjP5fdoAKDMxM2QxMGI1Zjk2NjFlZTMwMmUyNTQ0YWI1ZWZjZTg2MGRlOTIxNjEcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T16:17:05Zu	committer}(j2  
Ahmed Alouanej4  aalouane@palantir.comj6  2023-05-15T16:17:05Zumessageparalleltree}(j*  (60f277f9cfd1546abfe0c2c34daaafccc8f328b4url`https://api.github.com/repos/palantir/atlasdb/git/trees/60f277f9cfd1546abfe0c2c34daaafccc8f328b4ujB  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/313d10b5f9661ee302e2544ab5efce860de92161
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiWwIACgkQPlMHVIT1
yhpo9Af/eK1vcltENp7lmZqr7WKiIVmMiIewtgFog/IIisV2tMlvFif1GruTvYY6
KRmmidD2EX1/eePnrB9V9k1xCcPaD5p4u/iu2U6u+Dmonc3QhwEIBgngyACUy9RZ
6M/Ejjb/4UXHOKTsFBxYtMxaF5bkwTahwXYjp412fyz0QCAObAfJQMsyRpmPMEu9
S4TKwVyqmUNdy9ra5wH9LMU5C2OvUzF3vSSraPC2OkBN/oqnEnmkvyWr23PIV6x3
5ks938nRKJcdqJT6IZ5fYQAhxjobMUeXxblUOnVxIZ+FC7YLpZ1pOvLonPAAOSO0
V3DtV32Qa2iQEJ3nDUmadPyEUt+aaQ==
=opfs
-----END PGP SIGNATURE-----payloadtree 60f277f9cfd1546abfe0c2c34daaafccc8f328b4
parent f51bb1db32daaa27817f51cee4a1f8997e76b430
author Ahmed Alouane <aalouane@palantir.com> 1684167425 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684167425 +0100

parallel
uujB  ^https://api.github.com/repos/palantir/atlasdb/commits/313d10b5f9661ee302e2544ab5efce860de92161html_urlShttps://github.com/palantir/atlasdb/commit/313d10b5f9661ee302e2544ab5efce860de92161comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/313d10b5f9661ee302e2544ab5efce860de92161/commentsj0  }(loginergo14idJj,  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jB  #https://api.github.com/users/ergo14jP  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj8  }(jU  ergo14jW  Jj,  MDQ6VXNlcjMwOTAzNzM2jY  4https://avatars.githubusercontent.com/u/30903736?v=4j[  h5jB  #https://api.github.com/users/ergo14jP  https://github.com/ergo14j^  -https://api.github.com/users/ergo14/followersj`  :https://api.github.com/users/ergo14/following{/other_user}jb  3https://api.github.com/users/ergo14/gists{/gist_id}jd  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jf  1https://api.github.com/users/ergo14/subscriptionsjh  (https://api.github.com/users/ergo14/orgsjj  )https://api.github.com/users/ergo14/reposjl  4https://api.github.com/users/ergo14/events{/privacy}jn  3https://api.github.com/users/ergo14/received_eventsjp  Userjr  uparents]}(j*  (f51bb1db32daaa27817f51cee4a1f8997e76b430jB  ^https://api.github.com/repos/palantir/atlasdb/commits/f51bb1db32daaa27817f51cee4a1f8997e76b430jP  Shttps://github.com/palantir/atlasdb/commit/f51bb1db32daaa27817f51cee4a1f8997e76b430uastats}(totalK	additionsK	deletionsKufiles]}(j*  (a43b26d59668254dd207060b323fdc5d3cbae0f8filename.circleci/config.ymlstatusmodifiedj  Kj  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/313d10b5f9661ee302e2544ab5efce860de92161/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/313d10b5f9661ee302e2544ab5efce860de92161/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=313d10b5f9661ee302e2544ab5efce860de92161patchXy  @@ -123,7 +123,7 @@ jobs:
             # hack - notion of "owners" isn't supported in Circle 2
             if [ $CIRCLE_PROJECT_USERNAME = 'palantir' ] && [ -z $CIRCLE_PR_NUMBER ]; then
               git status
-              ./gradlew --scan --continue publish
+              ./gradlew --scan --continue --parallel publish
             fi
       - run:
           command: |uau(1944e6588c88b49313dbfe4ab4a9c7b5f30af697}(sha(1944e6588c88b49313dbfe4ab4a9c7b5f30af697node_idEC_kwDOAjP5fdoAKDE5NDRlNjU4OGM4OGI0OTMxM2RiZmU0YWI0YTljN2I1ZjMwYWY2OTccommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-21T13:05:28Zu	committer}(j  	Tom Papkej  tpapke@palantir.comj  2023-07-21T13:05:28ZumessageUpdate .as()tree}(j  (cdcf0211ab44902820a07c37ec761eb1430a0ec3url`https://api.github.com/repos/palantir/atlasdb/git/trees/cdcf0211ab44902820a07c37ec761eb1430a0ec3uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1944e6588c88b49313dbfe4ab4a9c7b5f30af697
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS6gpgACgkQmF9s0kaF
Iw0c8Af/YN1azG9ZIACInSLKjuZr+5/lURW0hk3yV146ah2pbJOCb//zWYyJj5QY
h/hNgAVMott85PIj3dUs/FOBt6ve+6Q7I+5Ss9RWc0Tv5wIdE+sl+nhfkCOKoVG2
S6OLkaNr7ENX9kYBliboZdTBknbX0qh3EfvnaH9YJk5HU2U63FfSGzSZJFDbik03
zTelOlZ6INSZdv6KUkEU7Xv28B5CBO/RpdkR8MnZcTg9ND5HbaL3ktSVHZ42f9rj
RgXKSwFgERtRoC5og6FwMYZo6IaLqhmAsDCn3AfcEveh2NyaGx1BLAseST5THUYi
wXNFF//Dcgahcp0AsMcjbWeJPz88QA==
=Bvt+
-----END PGP SIGNATURE-----payloadtree cdcf0211ab44902820a07c37ec761eb1430a0ec3
parent 543638bf2e894417d6665ade17d3aedf41dddade
author Tom Papke <tpapke@palantir.com> 1689944728 +0100
committer Tom Papke <tpapke@palantir.com> 1689944728 +0100

Update .as()
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/1944e6588c88b49313dbfe4ab4a9c7b5f30af697html_urlShttps://github.com/palantir/atlasdb/commit/1944e6588c88b49313dbfe4ab4a9c7b5f30af697comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1944e6588c88b49313dbfe4ab4a9c7b5f30af697/commentsj  }(login	ToemmscheidJboj  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj  }(j  	Toemmschej  Jboj  MDQ6VXNlcjQzNjc1NDkwj  4https://avatars.githubusercontent.com/u/43675490?v=4j  h5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmschej  0https://api.github.com/users/Toemmsche/followersj  =https://api.github.com/users/Toemmsche/following{/other_user}j  6https://api.github.com/users/Toemmsche/gists{/gist_id}j  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j  4https://api.github.com/users/Toemmsche/subscriptionsj  +https://api.github.com/users/Toemmsche/orgsj  ,https://api.github.com/users/Toemmsche/reposj  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj  Userj  uparents]}(j  (543638bf2e894417d6665ade17d3aedf41dddadej  ^https://api.github.com/repos/palantir/atlasdb/commits/543638bf2e894417d6665ade17d3aedf41dddadej  Shttps://github.com/palantir/atlasdb/commit/543638bf2e894417d6665ade17d3aedf41dddadeuastats}(totalK	additionsK	deletionsKufiles]}(j  (01d2292522bddd65342f57b0925c5712c567ecbffilenameitimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/ArrayLockEventSlidingWindowTest.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/1944e6588c88b49313dbfe4ab4a9c7b5f30af697/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1944e6588c88b49313dbfe4ab4a9c7b5f30af697/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.java?ref=1944e6588c88b49313dbfe4ab4a9c7b5f30af697patchX  @@ -119,7 +119,10 @@ public void countsMetadataCorrectlyStartingFromEmptyBuffer() {
 
     @Test
     public void maintainsCorrectMetadataCountWhenOverwritingBuffer() {
-        assertThat(WINDOW_SIZE).as("This test does not work with small windows").isGreaterThanOrEqualTo(5);
+        assertThat(WINDOW_SIZE)
+                .as("This test does not work with small windows since we are going to replace multiple events once"
+                        + " our buffer is full. With small windows, we might overwrite the wrong events.")
+                .isGreaterThanOrEqualTo(5);
 
         IntStream.range(0, WINDOW_SIZE).forEach(i -> {
             LockDescriptor lock = StringLockDescriptor.of("lock" + i);uau(3ba9f37035dab2d33ff59619a23f2114a307e3f3}(sha(3ba9f37035dab2d33ff59619a23f2114a307e3f3node_idEC_kwDOAjP5fdoAKDNiYTlmMzcwMzVkYWIyZDMzZmY1OTYxOWEyM2YyMTE0YTMwN2UzZjMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-03T15:04:35Zu	committer}(j   Jeremy Kongj"  jkong@palantir.comj$  2023-07-03T15:04:35ZumessageOMerge remote-tracking branch 'origin/develop' into jkong/antithesis-range-two-4tree}(j  (4bffa7219aeee976655d140305ba803361035dcdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/4bffa7219aeee976655d140305ba803361035dcduj0  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3ba9f37035dab2d33ff59619a23f2114a307e3f3
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSi44UACgkQTLdFKain
zjzpAQf/UFM6GxVGtZIOjadWazY1otuKj/K4lCD+q5CzbBXVqx46sLQc+XRNU1Lj
5TwHSTbDM/LRO7JB5HH2erVOQlZRv9OAvBZTcCGcqJ9s4meV3XyaJPuerX5b9qb7
4dhzq4ZI2pfPEwnAw/PFmOeP2trAe55KYQRCMIiIv721dtXTRuvf5qKxi8KhhQoP
4v8v8SE/sX5k/n+xncmNU0IvpCaW51Fdrt/Wyvqhx3k8oQHtftJr5+qITo+UpCJN
HlIwOrEuOSckPh0Jl0GdTkjlftdMgQH3KG2p8SLfP3pUgno4rVnuxuX5AanQmACm
cRAZJ2pM08inNzGLWMsvddmOEb0xTA==
=lzC7
-----END PGP SIGNATURE-----payloadXT  tree 4bffa7219aeee976655d140305ba803361035dcd
parent 00234809df1409c29ffcd4b684e380be48545bba
parent 9f563e3ef161dc54659ba5dd33d5297730966e7c
author Jeremy Kong <jkong@palantir.com> 1688396675 +0100
committer Jeremy Kong <jkong@palantir.com> 1688396675 +0100

Merge remote-tracking branch 'origin/develop' into jkong/antithesis-range-two-4
uuj0  ^https://api.github.com/repos/palantir/atlasdb/commits/3ba9f37035dab2d33ff59619a23f2114a307e3f3html_urlShttps://github.com/palantir/atlasdb/commit/3ba9f37035dab2d33ff59619a23f2114a307e3f3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3ba9f37035dab2d33ff59619a23f2114a307e3f3/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j0  'https://api.github.com/users/jeremyk-91j>  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj&  }(jC  
jeremyk-91jE  JZ j  MDQ6VXNlcjU5NTU1MTA=jG  3https://avatars.githubusercontent.com/u/5955510?v=4jI  h5j0  'https://api.github.com/users/jeremyk-91j>  https://github.com/jeremyk-91jL  1https://api.github.com/users/jeremyk-91/followersjN  >https://api.github.com/users/jeremyk-91/following{/other_user}jP  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jR  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jT  5https://api.github.com/users/jeremyk-91/subscriptionsjV  ,https://api.github.com/users/jeremyk-91/orgsjX  -https://api.github.com/users/jeremyk-91/reposjZ  8https://api.github.com/users/jeremyk-91/events{/privacy}j\  7https://api.github.com/users/jeremyk-91/received_eventsj^  Userj`  uparents](}(j  (00234809df1409c29ffcd4b684e380be48545bbaj0  ^https://api.github.com/repos/palantir/atlasdb/commits/00234809df1409c29ffcd4b684e380be48545bbaj>  Shttps://github.com/palantir/atlasdb/commit/00234809df1409c29ffcd4b684e380be48545bbau}(j  (9f563e3ef161dc54659ba5dd33d5297730966e7cj0  ^https://api.github.com/repos/palantir/atlasdb/commits/9f563e3ef161dc54659ba5dd33d5297730966e7cj>  Shttps://github.com/palantir/atlasdb/commit/9f563e3ef161dc54659ba5dd33d5297730966e7cuestats}(totalM	additionsM	deletionsMKufiles](}(j  (7e1fc418d0ab8950f7d0a2c8a9ed46fe72c28ab9filenamePatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/KeyValueService.javastatusmodifiedj~  Kj  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3patchX  @@ -711,4 +711,11 @@ default boolean shouldTriggerCompactions() {
     default boolean isValid() {
         return true;
     }
+
+    @DoDelegate
+    default boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        // This is in general True, but we're setting to false to start rollout only for C* of stopping to check for
+        // immutable timestamp lock on non empty reads on thoroughly swept tables.
+        return false;
+    }
 }u}(j  (783bc3b5467ffef2ad1e64d4a8aefd0da4ee44ddj  jatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/TransactionCommitLockInfo.javaj  addedj~  K%j  K j  K%j  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  Xg  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api.expectations;
+
+import org.immutables.value.Value;
+
+/**
+ * Data about the amount of commit locks requested by a transaction.
+ */
+@Value.Immutable
+public interface TransactionCommitLockInfo {
+
+    /**
+     * The number of cell-level locks requested as part of the commit protocol (excluding any user-defined locking).
+     */
+    long cellCommitLocksRequested();
+
+    /**
+     * The number of row-level locks requested as part of the commit protocol (excluding any user-defined locking).
+     * For write transactions, this includes the single row lock that is requested for the transaction table itself.
+     */
+    long rowCommitLocksRequested();
+}u}(j  (22dc29e0664eb2fea2e0669bb248c2333fbefdd4j  atlasdb-cassandra-integration-tests/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceIntegrationTest.javaj  modifiedj~  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X=  @@ -709,6 +709,12 @@ public void testMultiCheckAndSetIndependentlyFails() {
         verifyMultiCheckAndSet(ImmutableMap.of(firstTestCell, val(0, 0), nextTestCell, val(0, 1)));
     }
 
+    @Test
+    public void cassandraHasStrictlyNonDecreasingSweep() {
+        assertThat(keyValueService.sweepsEntriesInStrictlyNonDecreasingFashion())
+                .isTrue();
+    }
+
     private void verifyMultiCheckAndSet(Map<Cell, byte[]> expectedValues) {
         Multimap<Cell, Long> timestamps = keyValueService.getAllTimestamps(TEST_TABLE, expectedValues.keySet(), 1L);
 u}(j  (d7d2d87671c66d0e3f85762da04755fb7955d5b1j  iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj  modifiedj~  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -2033,6 +2033,11 @@ public ClusterAvailabilityStatus getClusterAvailabilityStatus() {
         return clusterStatus;
     }
 
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return true;
+    }
+
     private static boolean isClusterQuorumAvaialble(ClusterAvailabilityStatus clusterStatus) {
         return clusterStatus.equals(ClusterAvailabilityStatus.ALL_AVAILABLE)
                 || clusterStatus.equals(ClusterAvailabilityStatus.QUORUM_AVAILABLE);u}(j  (4e16bd6856b710e2bea5df31215dec94adb90e6bj  batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaj  modifiedj~  Kj  Kj  K#j  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X
  @@ -148,18 +148,17 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
                 hostToDatacentersThisRefresh.put(onlyHost, onlyEndpoint.getDatacenter());
             } else { // normal case, large cluster with many vnodes
                 for (TokenRange tokenRange : tokenRanges) {
-                    Map<CassandraServer, String> hostToDatacentersOnThisTokenRange = KeyedStream.of(
-                                    tokenRange.getEndpoint_details())
-                            .mapKeys(EndpointDetails::getHost)
-                            .mapKeys(this::getAddressForHostThrowUnchecked)
-                            .map(EndpointDetails::getDatacenter)
-                            .collectToMap();
-
-                    ImmutableSet<CassandraServer> hosts =
-                            ImmutableSet.copyOf(hostToDatacentersOnThisTokenRange.keySet());
-                    servers.addAll(hosts);
-                    hostToDatacentersThisRefresh.putAll(hostToDatacentersOnThisTokenRange);
+                    List<EndpointDetails> endpointDetails = tokenRange.getEndpoint_details();
+                    ImmutableSet.Builder<CassandraServer> hostsBuilder =
+                            ImmutableSet.builderWithExpectedSize(endpointDetails.size());
+                    for (EndpointDetails endpoint : endpointDetails) {
+                        CassandraServer cassandraServer = getAddressForHostThrowUnchecked(endpoint.getHost());
+                        hostToDatacentersThisRefresh.put(cassandraServer, endpoint.getDatacenter());
+                        hostsBuilder.add(cassandraServer);
+                        servers.add(cassandraServer);
+                    }
 
+                    ImmutableSet<CassandraServer> hosts = hostsBuilder.build();
                     LightweightOppToken startToken = LightweightOppToken.fromHex(tokenRange.getStart_token());
                     LightweightOppToken endToken = LightweightOppToken.fromHex(tokenRange.getEnd_token());
                     if (startToken.compareTo(endToken) <= 0) {
@@ -288,17 +287,15 @@ private CassandraServer getAddressForHostThrowUnchecked(String host) {
     CassandraServer getAddressForHost(String inputHost) throws UnknownHostException {
         Map<String, String> hostnamesByIp = hostnameByIpSupplier.get();
         String cassandraHostName = hostnamesByIp.getOrDefault(inputHost, inputHost);
-        return CassandraServer.of(cassandraHostName, getReachableProxies(cassandraHostName));
-    }
-
-    private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) throws UnknownHostException {
-        InetAddress[] resolvedHosts = InetAddress.getAllByName(inputHost);
+        InetAddress[] resolvedHosts = InetAddress.getAllByName(cassandraHostName);
         int knownPort = getKnownPort();
 
         // It is okay to have reachable proxies that do not have a hostname
-        return Stream.of(resolvedHosts)
-                .map(inetAddr -> new InetSocketAddress(inetAddr, knownPort))
-                .collect(ImmutableSet.toImmutableSet());
+        ImmutableSet.Builder<InetSocketAddress> proxies = ImmutableSet.builderWithExpectedSize(resolvedHosts.length);
+        for (InetAddress host : resolvedHosts) {
+            proxies.add(new InetSocketAddress(host, knownPort));
+        }
+        return CassandraServer.of(cassandraHostName, proxies.build());
     }
 
     private int getKnownPort() throws UnknownHostException {u}(j  (502ae947a588e3d9dcebd649967cafd91a08374bj  datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppTokenTest.javaj  modifiedj~  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -46,9 +46,9 @@ public static Collection<Object[]> data() {
     @Test
     public void inputsAreValidBase16Strings() {
         assertThat(input).matches("^[0-9a-fA-F]*$");
-        assertThat(input.length() % 2 == 0)
+        assertThat(input.length() % 2)
                 .as("input must be even length to base16 decode")
-                .isTrue();
+                .isEqualTo(0);
         assertThat(CassandraHex.hexToBytes(input)).hasSize(input.length() / 2);
     }
 u}(j  (a0daffcaa0a4ea862e707fb50afd62871f197c8ej  ]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/DualWriteKeyValueService.javaj  modifiedj~  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -318,4 +318,9 @@ public List<byte[]> getRowKeysInRange(TableReference tableRef, byte[] startRow,
     public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<Cell, Long> timestampByCell) {
         return delegate1.getAsync(tableRef, timestampByCell);
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate1.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(j  (1ab84302f51e4bad9eef3b306d5f224b087a44d4j  \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/InMemoryKeyValueService.javaj  modifiedj~  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X-  @@ -735,6 +735,12 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
         return Futures.immediateFuture(get(tableRef, timestampByCell));
     }
 
+    // Marking this as true as it's only used for tests, so we can better replicate Cassandra behaviour.
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return true;
+    }
+
     /**
      * This takes out a reentrant read lock. It is only exclusive specifically with
      * {@link #multiCheckAndSet(MultiCheckAndSetRequest)}.u}(j  (d41572b88d0c8b10e1042d4d64b59e123b40c6c1j  ]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/ProfilingKeyValueService.javaj  modifiedj~  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X|  @@ -554,4 +554,9 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
                         LoggingArgs.durationMillis(stopwatch)),
                 logCellResultSize(4L));
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(j  (aee4560b5007342d777bb076c6630351e4618aa1j  [atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/TracingKeyValueService.javaj  modifiedj~  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -531,6 +531,11 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
         });
     }
 
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate().sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
+
     @MustBeClosed
     private static CloseableTracer startLocalTrace(@CompileTimeConstant final String operation) {
         TraceStatistic original = TraceStatistics.getCurrentAndClear();u}(j  (b901787debfe08e9dc92324e1ecea39bb182ade1j  Vatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javaj  modifiedj~  K(j  K
j  K2j  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  Xq  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.table.description;
 
+import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
@@ -29,27 +30,40 @@
 public final class SweepStrategy {
 
     public static final SweepStrategy CONSERVATIVE =
-            new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false);
-    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), true);
+            new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false, false);
+    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), false, true);
 
     private final Optional<SweeperStrategy> sweeperStrategy;
-    private final boolean mustCheckImmutableLockAfterReads;
+    private final boolean mustCheckImmutableLockIfAllCellsReadAndPresent;
 
-    private SweepStrategy(Optional<SweeperStrategy> sweeperStrategy, boolean mustCheckImmutableLockAfterReads) {
+    // When we either read an empty value or perform reads like a range-scan, where we can't be certain of how many
+    // values we expect.
+    private final boolean mustCheckImmutableLockIfNonExhaustiveRead;
+
+    private SweepStrategy(
+            Optional<SweeperStrategy> sweeperStrategy,
+            boolean mustCheckImmutableLockIfAllCellsReadAndPresent,
+            boolean mustCheckImmutableLockIfNonExhaustiveRead) {
         this.sweeperStrategy = sweeperStrategy;
-        this.mustCheckImmutableLockAfterReads = mustCheckImmutableLockAfterReads;
+        this.mustCheckImmutableLockIfAllCellsReadAndPresent = mustCheckImmutableLockIfAllCellsReadAndPresent;
+        this.mustCheckImmutableLockIfNonExhaustiveRead = mustCheckImmutableLockIfNonExhaustiveRead;
     }
 
     public Optional<SweeperStrategy> getSweeperStrategy() {
         return sweeperStrategy;
     }
 
-    public boolean mustCheckImmutableLockAfterReads() {
-        return mustCheckImmutableLockAfterReads;
+    public boolean mustCheckImmutableLock(boolean allPossibleCellsReandAndPresent) {
+        return allPossibleCellsReandAndPresent
+                ? mustCheckImmutableLockIfAllCellsReadAndPresent
+                : mustCheckImmutableLockIfNonExhaustiveRead;
     }
 
-    public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy) {
-        return new SweepStrategy(sweeperBehaviour(strategy), mustCheckImmutableLockAfterReads(strategy));
+    public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
+        return new SweepStrategy(
+                sweeperBehaviour(strategy),
+                mustCheckImmutableLockIfAllCellsReadAndPresent(strategy, kvs),
+                mustCheckImmutableLockIfNonExhaustiveRead(strategy));
     }
 
     private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersistence.SweepStrategy strategy) {
@@ -65,7 +79,23 @@ private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersisten
         throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
     }
 
-    private static boolean mustCheckImmutableLockAfterReads(TableMetadataPersistence.SweepStrategy strategy) {
+    private static boolean mustCheckImmutableLockIfAllCellsReadAndPresent(
+            TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
+        if (!kvs.sweepsEntriesInStrictlyNonDecreasingFashion()) {
+            return mustCheckImmutableLockIfNonExhaustiveRead(strategy);
+        }
+
+        switch (strategy) {
+            case CONSERVATIVE:
+            case NOTHING:
+            case THOROUGH_MIGRATION:
+            case THOROUGH:
+                return false;
+        }
+        throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
+    }
+
+    private static boolean mustCheckImmutableLockIfNonExhaustiveRead(TableMetadataPersistence.SweepStrategy strategy) {
         switch (strategy) {
             case CONSERVATIVE:
             case NOTHING:u}(j  (a609938800595c6a4ed1b28154a58151f7d04af3j  datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ExpectationsAwareTransaction.javaj  modifiedj~  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 /**
@@ -32,6 +33,11 @@ public interface ExpectationsAwareTransaction extends Transaction {
      */
     TransactionReadInfo getReadInfo();
 
+    /**
+     * Returns transaction commit lock information.
+     */
+    TransactionCommitLockInfo getCommitLockInfo();
+
     /**
      * Update TEX data collection metrics for (post-mortem) transactions.
      * Expected usage is that this method is called once after the transaction has been committed or aborted.u	     }(j  (6795ea4a937624401807d2b3742ab596ad23984bj  natlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingExpectationsAwareTransaction.javaj  modifiedj~  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.transaction.impl;
 
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 public abstract class ForwardingExpectationsAwareTransaction extends ForwardingTransaction
@@ -34,6 +35,11 @@ public TransactionReadInfo getReadInfo() {
         return delegate().getReadInfo();
     }
 
+    @Override
+    public TransactionCommitLockInfo getCommitLockInfo() {
+        return delegate().getCommitLockInfo();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         delegate().reportExpectationsCollectedData();u}(j  (71e95645f3ae1137fc44efc89c6e3432b42d85ffj  Watlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ReadTransaction.javaj  modifiedj~  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -24,14 +24,15 @@
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.logging.LoggingArgs;
-import com.palantir.atlasdb.table.description.SweepStrategy;
+import com.palantir.atlasdb.table.description.SweeperStrategy;
 import com.palantir.atlasdb.transaction.api.GetRangesQuery;
 import com.palantir.common.base.BatchingVisitable;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
+import java.util.Optional;
 import java.util.Set;
 import java.util.function.BiFunction;
 import java.util.stream.Stream;
@@ -136,11 +137,11 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
     }
 
     private void checkTableName(TableReference tableRef) {
-        SweepStrategy sweepStrategy = sweepStrategies.get(tableRef);
+        Optional<SweeperStrategy> sweepStrategy = sweepStrategies.get(tableRef).getSweeperStrategy();
         Preconditions.checkState(
-                !sweepStrategy.mustCheckImmutableLockAfterReads(),
-                "This table cannot be read from a read-only transaction, because its "
-                        + "sweep strategy is neither NOTHING nor CONSERVATIVE",
+                sweepStrategy.isEmpty() || sweepStrategy.get().equals(SweeperStrategy.CONSERVATIVE),
+                "This table cannot be read from a read-only transaction, because its sweep strategy is neither NOTHING"
+                        + " nor CONSERVATIVE",
                 LoggingArgs.tableRef(tableRef));
     }
 u}(j  (59d37859a318b1646ca6da51436b4720150f7940j  ]atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/SweepStrategyManagers.javaj  modifiedj~  K	j  Kj  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X;  @@ -21,7 +21,6 @@
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
-import com.palantir.atlasdb.table.description.Schema;
 import com.palantir.atlasdb.table.description.SweepStrategy;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.logsafe.Preconditions;
@@ -53,7 +52,7 @@ public static SweepStrategyManager create(KeyValueService kvs, CacheWarming cach
                     // On a cache miss, load metadata only for the relevant table. Helpful when many dynamic tables.
                     LoadingCache<TableReference, SweepStrategy> cache = Caffeine.newBuilder()
                             .expireAfterAccess(Duration.ofDays(1))
-                            .build(tableRef -> getSweepStrategy(kvs.getMetadataForTable(tableRef)));
+                            .build(tableRef -> getSweepStrategy(kvs.getMetadataForTable(tableRef), kvs));
 
                     // Possibly warm the cache.
                     cache.putAll(getSweepStrategiesForWarmingCache(kvs, cacheWarming));
@@ -74,42 +73,34 @@ public void invalidateCaches(Set<TableReference> tableRefs) {
         };
     }
 
-    public static SweepStrategyManager createFromSchema(Schema schema) {
-        return tableRef -> {
-            TableMetadata tableMeta = Preconditions.checkNotNull(
-                    schema.getAllTablesAndIndexMetadata().get(tableRef),
-                    "unknown table",
-                    SafeArg.of("tableRef", tableRef));
-            return SweepStrategy.from(tableMeta.getSweepStrategy());
-        };
-    }
-
     public static SweepStrategyManager fromMap(final Map<TableReference, SweepStrategy> map) {
         return tableRef ->
                 Preconditions.checkNotNull(map.get(tableRef), "unknown table", SafeArg.of("tableRef", tableRef));
     }
 
-    public static SweepStrategyManager completelyConservative() {
-        return tableRef -> SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE);
+    public static SweepStrategyManager completelyConservative(KeyValueService kvs) {
+        return tableRef -> SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE, kvs);
     }
 
     private static Map<TableReference, SweepStrategy> getSweepStrategiesForWarmingCache(
             KeyValueService kvs, CacheWarming cacheWarming) {
         switch (cacheWarming) {
             case FULL:
-                return Maps.transformValues(kvs.getMetadataForTables(), SweepStrategyManagers::getSweepStrategy);
+                return Maps.transformValues(
+                        kvs.getMetadataForTables(),
+                        tableMetadata -> SweepStrategyManagers.getSweepStrategy(tableMetadata, kvs));
             case NONE:
             default:
                 return Collections.emptyMap();
         }
     }
 
-    private static SweepStrategy getSweepStrategy(byte[] tableMeta) {
+    private static SweepStrategy getSweepStrategy(byte[] tableMeta, KeyValueService kvs) {
         if (tableMeta != null && tableMeta.length > 0) {
             return SweepStrategy.from(
-                    TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy());
+                    TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy(), kvs);
         } else {
-            return SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE);
+            return SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE, kvs);
         }
     }
 }u}(j  (07430a7ea8f348014166e1a21707d9a2d6fa0656j  gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableRemappingKeyValueService.javaj  modifiedj~  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  XQ  @@ -482,4 +482,9 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
             throw new IllegalArgumentException(e);
         }
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(j  (5ef033a6ef29cb0e07d55d81f9e01236df5838d0j  gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableSplittingKeyValueService.javaj  modifiedj~  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -413,4 +413,9 @@ public List<byte[]> getRowKeysInRange(TableReference tableRef, byte[] startRow,
     public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<Cell, Long> timestampByCell) {
         return getDelegate(tableRef).getAsync(tableRef, timestampByCell);
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegates.stream().allMatch(KeyValueService::sweepsEntriesInStrictlyNonDecreasingFashion);
+    }
 }u}(j  (f4fc16c9cd18f98e0b88191831c6acfff46d8418j  Qatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweepTaskRunner.javaj  modifiedj~  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -152,7 +152,7 @@ private SweepResults runInternal(
             return SweepResults.createEmptySweepResultWithNoMoreToSweep();
         }
         SweepStrategy sweepStrategy = SweepStrategy.from(
-                TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy());
+                TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy(), keyValueService);
         Optional<Sweeper> maybeSweeper = sweepStrategy.getSweeperStrategy().map(Sweeper::of);
         if (runType == RunType.WAS_CONSERVATIVE_NOW_THOROUGH
                 && sweepStrategy.getSweeperStrategy().equals(Optional.of(SweeperStrategy.CONSERVATIVE))) {u}(j  (8a130c89d1c136ccdceb2117f2543a8cad93b16cj  \atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitioner.javaj  modifiedj~  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -95,9 +95,11 @@ SweeperStrategy getStrategyForTable(TableReference tableRef) {
 
     private SweeperStrategy getStrategyFromKvs(TableReference tableRef) {
         try {
-            return SweepStrategy.from(TableMetadata.BYTES_HYDRATOR
-                            .hydrateFromBytes(kvs.getMetadataForTable(tableRef))
-                            .getSweepStrategy())
+            return SweepStrategy.from(
+                            TableMetadata.BYTES_HYDRATOR
+                                    .hydrateFromBytes(kvs.getMetadataForTable(tableRef))
+                                    .getSweepStrategy(),
+                            kvs)
                     .getSweeperStrategy()
                     .orElse(SweeperStrategy.NON_SWEEPABLE);
         } catch (Exception e) {u}(j  (a754465d028ae56a8b3829de4675ebee0e06762dj  `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj  modifiedj~  Kj  K6j  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X]  @@ -97,6 +97,8 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
@@ -156,6 +158,7 @@
 import java.util.List;
 import java.util.Map;
 import java.util.NavigableMap;
+import java.util.NavigableSet;
 import java.util.NoSuchElementException;
 import java.util.Objects;
 import java.util.Optional;
@@ -207,6 +210,9 @@ public class SnapshotTransaction extends AbstractTransaction
     private static final int BATCH_SIZE_GET_FIRST_PAGE = 1000;
     private static final long TXN_LENGTH_THRESHOLD = Duration.ofMinutes(30).toMillis();
 
+    @VisibleForTesting
+    static final int MAX_POST_FILTERING_ITERATIONS = 200;
+
     @VisibleForTesting
     static final int MIN_BATCH_SIZE_FOR_DISTRIBUTED_LOAD = 100;
 
@@ -267,9 +273,15 @@ private enum State {
     protected final SuccessCallbackManager successCallbackManager = new SuccessCallbackManager();
     private final CommitTimestampLoader commitTimestampLoader;
     private final ExpectationsMetrics expectationsDataCollectionMetrics;
+    private volatile long cellCommitLocksRequested = 0L;
+    private volatile long rowCommitLocksRequested = 0L;
 
     protected volatile boolean hasReads;
 
+    // On thoroughly swept tables, we might require a immutable timestamp lock check if we have performed a
+    // non-exhaustive read.
+    protected volatile boolean hasPossiblyUnvalidatedReads;
+
     protected final TimestampCache timestampCache;
 
     protected final TransactionKnowledgeComponents knowledge;
@@ -333,6 +345,7 @@ private enum State {
         this.sweepQueue = sweepQueue;
         this.deleteExecutor = deleteExecutor;
         this.hasReads = false;
+        this.hasPossiblyUnvalidatedReads = false;
         this.transactionOutcomeMetrics = TransactionOutcomeMetrics.create(metricsManager);
         this.validateLocksOnReads = validateLocksOnReads;
         this.transactionConfig = transactionConfig;
@@ -438,7 +451,9 @@ private NavigableMap<byte[], RowResult<byte[]>> getRowsInternal(
                     SafeArg.of("resultSize", results.size()),
                     SafeArg.of("timeTakenMillis", getRowsMillis));
         }
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+
+        /* can't skip lock check as we don't know how many cells to expect for the column selection */
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return results;
     }
 
@@ -463,7 +478,8 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
         RowColumnRangeIterator rawResults = keyValueService.getRowsColumnRange(
                 tableRef, stableRows, columnRangeSelection, batchHint, getStartTimestamp());
         if (!rawResults.hasNext()) {
-            validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+            // we can't skip checks for range scans
+            validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         } // else the postFiltered iterator will check for each batch.
 
         BatchColumnRangeSelection batchColumnRangeSelection =
@@ -501,7 +517,8 @@ public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator
                 }));
 
         // validate requirements here as the first batch for each of the above iterators will not check
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+        // we can't skip checks on range scans
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return postFilteredResults;
     }
 
@@ -674,7 +691,7 @@ private Iterator<Map.Entry<Cell, byte[]>> filterDeletedValues(
     private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFiltered(
             TableReference tableRef, RowColumnRangeIterator iterator, int batchHint) {
         return Iterators.concat(Iterators.transform(Iterators.partition(iterator, batchHint), batch -> {
-            Map<Cell, Value> raw = validateBatch(tableRef, batch);
+            Map<Cell, Value> raw = validateBatch(tableRef, batch, false /* can't skip lock checks on range scans */);
             if (raw.isEmpty()) {
                 return Collections.emptyIterator();
             }
@@ -696,7 +713,10 @@ private ClosableIterator<Map.Entry<Cell, byte[]>> getRowColumnRangePostFiltered(
                 batchProvider,
                 rawIterator,
                 columnRangeSelection,
-                () -> validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp()),
+                () -> {
+                    // we can't skip lock checks on range scans
+                    validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
+                },
                 raw -> getWithPostFilteringSync(tableRef, raw, Value.GET_VALUE));
     }
 
@@ -706,7 +726,7 @@ private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSor
             int batchHint,
             Comparator<Cell> cellComparator) {
         return Iterators.concat(Iterators.transform(Iterators.partition(iterator, batchHint), batch -> {
-            Map<Cell, Value> raw = validateBatch(tableRef, batch);
+            Map<Cell, Value> raw = validateBatch(tableRef, batch, false /* can't skip lock check on range scans */);
             if (raw.isEmpty()) {
                 return Collections.emptyIterator();
             }
@@ -717,8 +737,9 @@ private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSor
         }));
     }
 
-    private Map<Cell, Value> validateBatch(TableReference tableRef, List<Map.Entry<Cell, Value>> batch) {
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+    private Map<Cell, Value> validateBatch(
+            TableReference tableRef, List<Map.Entry<Cell, Value>> batch, boolean allPossibleCellsReadAndPresent) {
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
         return ImmutableMap.copyOf(batch);
     }
 
@@ -828,7 +849,8 @@ public SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(
         Map<Cell, Value> rawResults =
                 new HashMap<>(keyValueService.getRows(tableRef, rows, ColumnSelection.all(), getStartTimestamp()));
 
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+        // can't skip lock check as we don't know how many cells to expect for the column selection
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return filterRowResults(tableRef, rawResults, ImmutableMap.builderWithExpectedSize(rawResults.size()));
     }
 
@@ -921,13 +943,12 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
             }
         }
 
-        // We don't need to read any cells that were written locally.
+        // We don't need to read any cells that were written locally. Making an immutable copy because otherwise adding
+        // values to the result map would prevent us from calculating the correct size for
+        // allPossibleCellsReadAndPresent, since Sets.difference gives us a live view.
+        Set<Cell> cellsWithNoLocalWrites = ImmutableSet.copyOf(Sets.difference(cells, result.keySet()));
         return Futures.transform(
-                getFromKeyValueService(
-                        tableRef,
-                        Sets.difference(cells, result.keySet()),
-                        asyncKeyValueService,
-                        asyncTransactionService),
+                getFromKeyValueService(tableRef, cellsWithNoLocalWrites, asyncKeyValueService, asyncTransactionService),
                 fromKeyValueService -> {
                     result.putAll(fromKeyValueService);
 
@@ -941,7 +962,11 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
                                 SafeArg.of("getOperation", operationName),
                                 SafeArg.of("durationMillis", getMillis));
                     }
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+
+                    boolean allPossibleCellsReadAndPresent =
+                            fromKeyValueService.size() == cellsWithNoLocalWrites.size();
+                    validatePreCommitRequirementsOnReadIfNecessary(
+                            tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
                     return removeEmptyColumns(result, tableRef);
                 },
                 MoreExecutors.directExecutor());
@@ -957,13 +982,15 @@ public Map<Cell, byte[]> getIgnoringLocalWrites(TableReference tableRef, Set<Cel
 
         ListenableFuture<Map<Cell, byte[]>> result =
                 getFromKeyValueService(tableRef, cells, immediateKeyValueService, immediateTransactionService);
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
 
         Map<Cell, byte[]> unfiltered = Futures.getUnchecked(result);
         Map<Cell, byte[]> filtered = Maps.filterValues(unfiltered, Predicates.not(Value::isTombstone));
 
         TraceStatistics.incEmptyValues(unfiltered.size() - filtered.size());
 
+        boolean allPossibleCellsReadAndPresent = unfiltered.size() == cells.size();
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
+
         return filtered;
     }
 
@@ -1016,7 +1043,8 @@ public Iterable<BatchingVisitable<RowResult<byte[]>>> getRanges(
                     Timer.Context timer = getTimer("processedRangeMillis").time();
                     Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> firstPages =
                             keyValueService.getFirstBatchForRanges(tableRef, input, getStartTimestamp());
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+                    // can't skip lock check for range scans
+                    validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
 
                     SortedMap<Cell, byte[]> postFiltered = postFilterPages(tableRef, firstPages.values());
 
@@ -1142,18 +1170,42 @@ protected <K extends Exception> void batchAcceptSizeHint(
         };
     }
 
-    private void validatePreCommitRequirementsOnReadIfNecessary(TableReference tableRef, long timestamp) {
-        if (isValidationNecessaryOnReads(tableRef)) {
+    private void validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(TableReference tableRef, long timestamp) {
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, timestamp, false);
+    }
+
+    /*
+    We don't have any guarantees that reads and commit will be executed in a single threaded manner, so we could in
+    theory return wrong results if we perform async reads while trying to commit. But our protocol doesn't aim to
+    support such case, and we're OK with having undefined behaviour in these occasions.
+
+    Example of such case:
+       - We're reading a thoroughly swept table with no configuration for immediate validation on reads.
+       - An async range scan is performed, but hasn't started executing yet.
+       - We start commit round on the main thread
+       - Commit doesn't check for immutable timestamp lock because
+           hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound is false
+       - We finish the range scan on the second thread, but validation is skipped due to the configuration and it sets
+           hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound to true, but that is never checked due to
+            the commit round having already happened.
+       - We then risk having returned inconsistent values in this transaction, since we could have lost the immutableT
+            lock, but never checked it and values could've been swept under us.
+    */
+    private void validatePreCommitRequirementsOnReadIfNecessary(
+            TableReference tableRef, long timestamp, boolean allPossibleCellsReadAndPresent) {
+        if (isValidationNecessaryOnReads(tableRef, allPossibleCellsReadAndPresent)) {
             throwIfPreCommitRequirementsNotMet(null, timestamp);
+        } else if (!allPossibleCellsReadAndPresent) {
+            hasPossiblyUnvalidatedReads = true;
         }
     }
 
-    private boolean isValidationNecessaryOnReads(TableReference tableRef) {
-        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef);
+    private boolean isValidationNecessaryOnReads(TableReference tableRef, boolean allPossibleCellsReadAndPresent) {
+        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef, allPossibleCellsReadAndPresent);
     }
 
-    private boolean requiresImmutableTimestampLocking(TableReference tableRef) {
-        return sweepStrategyManager.get(tableRef).mustCheckImmutableLockAfterReads()
+    private boolean requiresImmutableTimestampLocking(TableReference tableRef, boolean allPossibleCellsReadAndPresent) {
+        return sweepStrategyManager.get(tableRef).mustCheckImmutableLock(allPossibleCellsReadAndPresent)
                 || transactionConfig.get().lockImmutableTsOnReadOnlyTransactions();
     }
 
@@ -1302,11 +1354,13 @@ protected <T> ClosableIterator<RowResult<T>> postFilterIterator(
             @Override
             protected Iterator<RowResult<T>> computeNext() {
                 List<RowResult<Value>> batch = results.getBatch().batch();
-                validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
                 if (batch.isEmpty()) {
                     return endOfData();
                 }
                 SortedMap<Cell, T> postFilter = postFilterRows(tableRef, batch, transformer);
+
+                // can't skip lock checks for range scans
+                validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
                 results.markNumResultsNotDeleted(
                         Cells.getRows(postFilter.keySet()).size());
                 return Cells.createRowView(postFilter.entrySet());
@@ -1451,9 +1505,9 @@ private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilterin
 
         return Futures.transformAsync(
                 Futures.immediateFuture(rawResults),
-                remainingResultsToPostFilter -> getWithPostFilteringIterate(
+                resultsToPostFilter -> getWithPostFilteringIterate(
                         tableRef,
-                        remainingResultsToPostFilter,
+                        resultsToPostFilter,
                         resultsAccumulator,
                         transformer,
                         asyncKeyValueService,
@@ -1463,32 +1517,39 @@ private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilterin
 
     private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilteringIterate(
             TableReference tableReference,
-            Map<Cell, Value> remainingResultsToPostFilter,
+            Map<Cell, Value> resultsToPostFilter,
             Collection<Map.Entry<Cell, T>> resultsAccumulator,
             Function<Value, T> transformer,
             AsyncKeyValueService asyncKeyValueService,
             AsyncTransactionService asyncTransactionService) {
-        if (remainingResultsToPostFilter.isEmpty()) {
-            getCounter(AtlasDbMetricNames.SNAPSHOT_TRANSACTION_CELLS_RETURNED, tableReference)
-                    .inc(resultsAccumulator.size());
-            return Futures.immediateFuture(resultsAccumulator);
-        }
-
         return Futures.transformAsync(
-                getWithPostFilteringInternal(
-                        tableReference,
-                        remainingResultsToPostFilter,
-                        resultsAccumulator,
-                        transformer,
-                        asyncKeyValueService,
-                        asyncTransactionService),
-                remaining -> getWithPostFilteringIterate(
-                        tableReference,
-                        remaining,
-                        resultsAccumulator,
-                        transformer,
-                        asyncKeyValueService,
-                        asyncTransactionService),
+                Futures.immediateFuture(resultsToPostFilter),
+                results -> {
+                    int iterations = 0;
+                    Map<Cell, Value> remainingResultsToPostFilter = results;
+                    while (!remainingResultsToPostFilter.isEmpty()) {
+                        remainingResultsToPostFilter = AtlasFutures.getUnchecked(getWithPostFilteringInternal(
+                                tableReference,
+                                remainingResultsToPostFilter,
+                                resultsAccumulator,
+                                transformer,
+                                asyncKeyValueService,
+                                asyncTransactionService));
+                        Preconditions.checkState(
+                                ++iterations < MAX_POST_FILTERING_ITERATIONS,
+                                "Unable to filter cells to find correct result after "
+                                        + "reaching max iterations. This is likely due to aborted cells lying around,"
+                                        + " or in the very rare case, could be due to transactions which constantly "
+                                        + "conflict but never commit. These values will be cleaned up eventually, but"
+                                        + " if the issue persists, ensure that sweep is caught up.",
+                                SafeArg.of("table", tableReference),
+                                SafeArg.of("maxIterations", MAX_POST_FILTERING_ITERATIONS));
+                    }
+                    getCounter(AtlasDbMetricNames.SNAPSHOT_TRANSACTION_CELLS_RETURNED, tableReference)
+                            .inc(resultsAccumulator.size());
+
+                    return Futures.immediateFuture(resultsAccumulator);
+                },
                 MoreExecutors.directExecutor());
     }
 
@@ -1677,7 +1738,9 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
             return Futures.transform(
                     asyncKeyValueService.getAsync(tableRef, keysToReload),
                     nextRawResults -> {
-                        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+                        boolean allPossibleCellsReadAndPresent = nextRawResults.size() == keysToReload.size();
+                        validatePreCommitRequirementsOnReadIfNecessary(
+                                tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
                         return getRemainingResults(nextRawResults, keysAddedToResults);
                     },
                     MoreExecutors.directExecutor());
@@ -2448,20 +2511,25 @@ private void logCommitLockTenureExceeded(
 
     protected Set<LockDescriptor> getLocksForWrites() {
         Set<LockDescriptor> result = new HashSet<>();
+        long cellLockCount = 0L;
+        long rowLockCount = 0L;
         for (TableReference tableRef : writesByTable.keySet()) {
             ConflictHandler conflictHandler = getConflictHandlerForTable(tableRef);
             if (conflictHandler.lockCellsForConflicts()) {
-                for (Cell cell : getLocalWrites(tableRef).keySet()) {
+                NavigableSet<Cell> cellsToLock = getLocalWrites(tableRef).keySet();
+                for (Cell cell : cellsToLock) {
                     result.add(AtlasCellLockDescriptor.of(
                             tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName()));
                 }
+                cellLockCount = cellsToLock.size();
             }
 
             if (conflictHandler.lockRowsForConflicts()) {
                 Cell lastCell = null;
                 for (Cell cell : getLocalWrites(tableRef).keySet()) {
                     if (lastCell == null || !Arrays.equals(lastCell.getRowName(), cell.getRowName())) {
                         result.add(AtlasRowLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName()));
+                        rowLockCount++;
                     }
                     lastCell = cell;
                 }
@@ -2470,6 +2538,8 @@ protected Set<LockDescriptor> getLocksForWrites() {
         result.add(AtlasRowLockDescriptor.of(
                 TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
                 TransactionConstants.getValueForTimestamp(getStartTimestamp())));
+        cellCommitLocksRequested = cellLockCount;
+        rowCommitLocksRequested = rowLockCount + 1;
         return result;
     }
 
@@ -2591,8 +2661,8 @@ private boolean hasAnyInvolvedTables() {
     }
 
     private boolean validationNecessaryForInvolvedTablesOnCommit() {
-        boolean anyTableRequiresImmutableTimestampLocking =
-                involvedTables.stream().anyMatch(this::requiresImmutableTimestampLocking);
+        boolean anyTableRequiresImmutableTimestampLocking = involvedTables.stream()
+                .anyMatch(tableRef -> requiresImmutableTimestampLocking(tableRef, !hasPossiblyUnvalidatedReads));
         boolean needsToValidate = !validateLocksOnReads || !hasReads();
         return anyTableRequiresImmutableTimestampLocking && needsToValidate;
     }
@@ -2607,6 +2677,14 @@ public TransactionReadInfo getReadInfo() {
         return keyValueService.getOverallReadInfo();
     }
 
+    @Override
+    public TransactionCommitLockInfo getCommitLockInfo() {
+        return ImmutableTransactionCommitLockInfo.builder()
+                .cellCommitLocksRequested(cellCommitLocksRequested)
+                .rowCommitLocksRequested(rowCommitLocksRequested)
+                .build();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         if (isStillRunning()) {
@@ -2616,18 +2694,25 @@ public void reportExpectationsCollectedData() {
             return;
         }
 
-        reportExpectationsCollectedData(getAgeMillis(), getReadInfo(), expectationsDataCollectionMetrics);
+        reportExpectationsCollectedData(
+                getAgeMillis(), getReadInfo(), getCommitLockInfo(), expectationsDataCollectionMetrics);
     }
 
     @VisibleForTesting
     static void reportExpectationsCollectedData(
-            long ageMillis, TransactionReadInfo readInfo, ExpectationsMetrics metrics) {
+            long ageMillis,
+            TransactionReadInfo readInfo,
+            TransactionCommitLockInfo commitLockInfo,
+            ExpectationsMetrics metrics) {
         metrics.ageMillis().update(ageMillis);
         metrics.bytesRead().update(readInfo.bytesRead());
         metrics.kvsReads().update(readInfo.kvsCalls());
 
         readInfo.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
                 .update(kvsCallReadInfo.bytesRead()));
+
+        metrics.cellCommitLocksRequested().update(commitLockInfo.cellCommitLocksRequested());
+        metrics.rowCommitLocksRequested().update(commitLockInfo.rowCommitLocksRequested());
     }
 
     private long getStartTimestamp() {u}(j  (89147dc77a01612d3af8f3130ea758e4445537c7j  5atlasdb-impl-shared/src/main/metrics/expectations.ymlj  modifiedj~  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -17,3 +17,9 @@ namespaces:
       mostKvsBytesReadInSingleCall:
         docs: Most bytes read by a transaction in one Atlas kvs read call
         type: histogram
+      cellCommitLocksRequested:
+        docs: Number of cell-level commit locks requested as part of the commit protocol
+        type: histogram
+      rowCommitLocksRequested:
+        docs: Number of row-level commit locks requested as part of the commit protocol
+        type: histogramu}(j  (58455c9fcbd5e41aa2e34c82091e30cd04cd5a51j  `atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitionerTest.javaj  modifiedj~  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  Xf  @@ -105,6 +105,7 @@ public void getStrategyQueriesKvsOnlyOnceForEachTable() {
         }
         verify(mockKvs, times(1)).getMetadataForTable(NOTHING);
         verify(mockKvs, times(1)).getMetadataForTable(CONSERVATIVE);
+        verify(mockKvs, times(2)).sweepsEntriesInStrictlyNonDecreasingFashion();
         verifyNoMoreInteractions(mockKvs);
     }
 u}(j  (283b84abcfb6697b50fee5fa0db0dbc2d58dfab8j  matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javaj  modifiedj~  K&j  Kj  K2j  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  XI  @@ -18,7 +18,9 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.codahale.metrics.Histogram;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
@@ -34,6 +36,12 @@ public final class ExpectationsMetricsReportingTest {
     private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
             ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
 
+    private static final ImmutableTransactionCommitLockInfo BLANK_COMMIT_LOCK_INFO =
+            ImmutableTransactionCommitLockInfo.builder()
+                    .cellCommitLocksRequested(0L)
+                    .rowCommitLocksRequested(0L)
+                    .build();
+
     private ExpectationsMetrics metrics;
 
     @Before
@@ -44,40 +52,58 @@ public void setUp() {
     @Test
     public void ageReported() {
         long age = 129L;
-        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, metrics);
-        assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
+        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, BLANK_COMMIT_LOCK_INFO, metrics);
+        assertHistogramHasSingleValue(metrics.ageMillis(), age);
     }
 
     @Test
     public void bytesReadReported() {
         long bytes = 1290L;
-        reportMetrics(BLANK_READ_INFO.withBytesRead(bytes));
-        assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
+        reportMetricsWithReadInfo(BLANK_READ_INFO.withBytesRead(bytes));
+        assertHistogramHasSingleValue(metrics.bytesRead(), bytes);
     }
 
     @Test
     public void kvsCallsReported() {
         long calls = 12L;
-        reportMetrics(BLANK_READ_INFO.withKvsCalls(calls));
-        assertThat(metrics.kvsReads().getSnapshot().getValues()).containsOnly(calls);
+        reportMetricsWithReadInfo(BLANK_READ_INFO.withKvsCalls(calls));
+        assertHistogramHasSingleValue(metrics.kvsReads(), calls);
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
-        reportMetrics(BLANK_READ_INFO);
+        reportMetricsWithReadInfo(BLANK_READ_INFO);
         assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
                 .isEmpty();
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
         long bytes = 193L;
-        reportMetrics(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
-        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
-                .containsOnly(bytes);
+        reportMetricsWithReadInfo(
+                BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        assertHistogramHasSingleValue(metrics.mostKvsBytesReadInSingleCall(), bytes);
+    }
+
+    @Test
+    public void commitLocksRequestsReported() {
+        SnapshotTransaction.reportExpectationsCollectedData(
+                0L,
+                BLANK_READ_INFO,
+                ImmutableTransactionCommitLockInfo.builder()
+                        .cellCommitLocksRequested(1)
+                        .rowCommitLocksRequested(2)
+                        .build(),
+                metrics);
+        assertHistogramHasSingleValue(metrics.cellCommitLocksRequested(), 1);
+        assertHistogramHasSingleValue(metrics.rowCommitLocksRequested(), 2);
+    }
+
+    private void reportMetricsWithReadInfo(TransactionReadInfo readInfo) {
+        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, BLANK_COMMIT_LOCK_INFO, metrics);
     }
 
-    private void reportMetrics(TransactionReadInfo readInfo) {
-        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, metrics);
+    private void assertHistogramHasSingleValue(Histogram histogram, long expected) {
+        assertThat(histogram.getSnapshot().getValues()).containsOnly(expected);
     }
 }u}(j  (f78ed397c1ab2442f099cc74dd518e30185dd324j  !atlasdb-tests-shared/build.gradlej  modifiedj~  Kj  K j  Kj  uhttps://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-tests-shared%2Fbuild.gradlej  thttps://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-tests-shared%2Fbuild.gradlej  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fbuild.gradle?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -50,6 +50,7 @@ dependencies {
   testImplementation 'com.google.protobuf:protobuf-java'
   testImplementation 'com.palantir.common:streams'
   testImplementation 'com.palantir.safe-logging:safe-logging'
+  testImplementation 'com.palantir.safe-logging:preconditions-assertj'
   testImplementation 'com.palantir.tracing:tracing-api'
   testImplementation 'com.palantir.tritium:tritium-registry'
   testImplementation 'commons-io:commons-io'u}(j  (4ecc8d0029caabad8e99518d16b13fcf35ba33ecj  qatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractSerializableTransactionTest.javaj  modifiedj~  K
j  Kj  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  XL  @@ -1079,17 +1079,19 @@ public void testNoMarkTableInvolvedSkipsLockChecksOnCommit() {
         t1.commit();
     }
 
-    @Test
-    public void testMarkTableInvolvedChecksLocksForExpiryOnCommitWhenRequired() {
-        // Test table is thorough, therefore we check immutable timestamp lock
-        assertThatThrownBy(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
-                .isExactlyInstanceOf(TransactionLockTimeoutException.class);
-    }
-
     @Test
     public void testMarkTableInvolvedDoesNoCheckLocksForExpiryOnCommitWhenNotRequired() {
         // Test table is not thorough, therefore no immutable timestamp lock checking
-        testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE);
+        assertThatCode(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE))
+                .doesNotThrowAnyException();
+
+        if (keyValueService.sweepsEntriesInStrictlyNonDecreasingFashion()) {
+            assertThatCode(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
+                    .doesNotThrowAnyException();
+        } else {
+            assertThatThrownBy(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
+                    .isExactlyInstanceOf(TransactionLockTimeoutException.class);
+        }
     }
 
     @Testu}(j  (ddec50c29546659d961c4897e7ecbcde3efe9efbj  Latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/AtlasDbTestCase.javaj  modifiedj~  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X;  @@ -77,11 +77,14 @@ public class AtlasDbTestCase {
 
     protected TransactionKnowledgeComponents knowledge;
 
+    protected ExecutorService deleteExecutor;
+
     @Rule
     public InMemoryTimeLockRule inMemoryTimeLockRule = new InMemoryTimeLockRule(CLIENT);
 
     @Before
     public void setUp() throws Exception {
+        deleteExecutor = MoreExecutors.newDirectExecutorService();
         lockClient = LockClient.of(CLIENT);
         lockService = inMemoryTimeLockRule.getLockService();
         timelockService = inMemoryTimeLockRule.getLegacyTimelockService();u}(j  (864d8b372d38e6bbe575244e1b439a23398db117j  Uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/TableMigratorTest.javaj  modifiedj~  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -89,7 +89,7 @@ public void testMigrationToDifferentKvs() throws TableMappingNotFoundException {
 
         final InMemoryKeyValueService kvs2 = new InMemoryKeyValueService(false);
         final ConflictDetectionManager cdm2 = ConflictDetectionManagers.createWithNoConflictDetection();
-        final SweepStrategyManager ssm2 = SweepStrategyManagers.completelyConservative();
+        final SweepStrategyManager ssm2 = SweepStrategyManagers.completelyConservative(kvs2);
         final MetricsManager metricsManager = MetricsManagers.createForTests();
         final TestTransactionManagerImpl txManager2 = new TestTransactionManagerImpl(
                 metricsManager,
@@ -128,7 +128,7 @@ public void testMigrationToDifferentKvs() throws TableMappingNotFoundException {
         checkpointer.deleteCheckpoints();
 
         final ConflictDetectionManager verifyCdm = ConflictDetectionManagers.createWithNoConflictDetection();
-        final SweepStrategyManager verifySsm = SweepStrategyManagers.completelyConservative();
+        final SweepStrategyManager verifySsm = SweepStrategyManagers.completelyConservative(kvs2);
         final TestTransactionManagerImpl verifyTxManager = new TestTransactionManagerImpl(
                 metricsManager,
                 kvs2,u}(j  (25c1bb6a752a65ce98d2dc58adc485085adacef9j  latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javaj  modifiedj~  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -240,7 +240,9 @@ public void registersMetrics() throws InterruptedException {
                 .contains(FINISH_TASK_METRIC_NAME)
                 .contains("expectations.bytesRead")
                 .contains("expectations.kvsReads")
-                .contains("expectations.ageMillis");
+                .contains("expectations.ageMillis")
+                .contains("expectations.cellCommitLocksRequested")
+                .contains("expectations.rowCommitLocksRequested");
         assertThat(registry.timer(MetricName.builder()
                                 .safeName(SETUP_TASK_METRIC_NAME)
                                 .build())u}(j  (6a539c73f46339e398e128a8c5ba8e32e8ea9869j  eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj  modifiedj~  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X0  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
@@ -94,6 +95,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.impl.metrics.DefaultMetricsFilterEvaluationContext;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.ToplistDeltaFilteringTableLevelMetricsController;
@@ -121,6 +123,7 @@
 import com.palantir.lock.v2.LockImmutableTimestampResponse;
 import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.TimelockService;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.math.BigInteger;
 import java.nio.ByteBuffer;
@@ -316,6 +319,8 @@ public void cleanup() {}
     static final TableReference TABLE_SWEPT_THOROUGH_MIGRATION =
             TableReference.createFromFullyQualifiedName("default.table5");
 
+    static final TableReference TABLE_NO_SWEEP = TableReference.createFromFullyQualifiedName("default.table6");
+
     private static final byte[] ROW_FOO = "foo".getBytes(StandardCharsets.UTF_8);
     private static final byte[] ROW_BAR = "bar".getBytes(StandardCharsets.UTF_8);
     private static final byte[] COL_A = "a".getBytes(StandardCharsets.UTF_8);
@@ -346,6 +351,9 @@ public void setUp() throws Exception {
                 TABLE_SWEPT_THOROUGH_MIGRATION,
                 getTableMetadataForSweepStrategy(SweepStrategy.THOROUGH_MIGRATION)
                         .persistToBytes());
+        keyValueService.createTable(
+                TABLE_NO_SWEEP,
+                getTableMetadataForSweepStrategy(SweepStrategy.NOTHING).persistToBytes());
     }
 
     @Override
@@ -360,7 +368,7 @@ protected TestTransactionManager constructTestTransactionManager() {
                 sweepStrategyManager,
                 timestampCache,
                 sweepQueue,
-                MoreExecutors.newDirectExecutorService(),
+                deleteExecutor,
                 transactionWrapper,
                 keyValueServiceWrapper,
                 knowledge);
@@ -1552,7 +1560,22 @@ public void commitDoesNotThrowIfAlreadySuccessfullyCommitted() {
     }
 
     @Test
-    public void validateLocksOnReadsIfThoroughlySwept() {
+    public void doNotValidateLocksOnNonEmptyReadsIfThoroughlySwept() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        assertThatCode(() -> transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL)))
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void validateLocksOnEmptyReadsIfThoroughlySwept() {
         long transactionTs = timelockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
         Transaction transaction =
@@ -1564,6 +1587,22 @@ public void validateLocksOnReadsIfThoroughlySwept() {
                 .isThrownBy(() -> transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL)));
     }
 
+    @Test
+    public void doNotValidateLocksOnCommitIfValidationFlagIsFalseAndOnlyReadNonEmptyValuesOnThoroughlySweptTable() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+
+        assertThatCode(transaction::commit).doesNotThrowAnyException();
+    }
+
     @Test
     public void validateLocksOnlyOnCommitIfValidationFlagIsFalse() {
         long transactionTs = timelockService.getFreshTimestamp();
@@ -1579,7 +1618,45 @@ public void validateLocksOnlyOnCommitIfValidationFlagIsFalse() {
     }
 
     @Test
-    public void checkImmutableTsLockOnceIfThoroughlySwept_WithValidationOnReads() {
+    public void validateLocksOnCommitIfEmptyReadsFollowedByNonEmptyReadsIfValidationFlagIsFalse() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        // First reading empty value
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL_2));
+        // Then reading non-empty value.
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+
+        // Make sure that lock is still validated in the end due to the initial empty read
+        assertThatExceptionOfType(TransactionLockTimeoutException.class).isThrownBy(transaction::commit);
+    }
+
+    @Test
+    public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithValidationOnReads() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        Transaction transaction = getSnapshotTransactionWith(
+                spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+        transaction.commit();
+        spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
+
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+    }
+
+    @Test
+    public void checkImmutableTsLockOnceIfEmptyReadOnThoroughlySwept_WithValidationOnReads() {
         TimelockService spiedTimeLockService = spy(timelockService);
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
@@ -1595,7 +1672,25 @@ public void checkImmutableTsLockOnceIfThoroughlySwept_WithValidationOnReads() {
     }
 
     @Test
-    public void checkImmutableTsLockOnceIfThoroughlySwept_WithoutValidationOnReads() {
+    public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithoutValidationOnReads() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        Transaction transaction = getSnapshotTransactionWith(
+                spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+        transaction.commit();
+        spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
+
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+    }
+
+    @Test
+    public void checkImmutableTsLockOnceIfEmptyReadOnThoroughlySwept_WithoutValidationOnReads() {
         TimelockService spiedTimeLockService = spy(timelockService);
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
@@ -2371,6 +2466,76 @@ public void testConstraintsViolated() {
                         eq(AtlasDbConstraintCheckingMode.FULL_CONSTRAINT_CHECKING_THROWS_EXCEPTIONS));
     }
 
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializableCell() {
+        // Will request commit locks for cells, but not rows
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_CELL);
+
+        // We can only get the commit info from a snapshot transaction
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        // For write transactions, we always lock an additional row in the transaction table
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(0 + 1);
+    }
+
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializable() {
+        // Will request commit locks for rows, but not cells
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(0);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(2 + 1);
+    }
+
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigration_sameRow() {
+        // Will request commit locks for cells and rows
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_LOCK_LEVEL_MIGRATION);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(
+                TABLE,
+                ImmutableMap.of(Cell.create(PtBytes.toBytes("same_row"), PtBytes.toBytes("column1")), TEST_VALUE));
+        txn.put(
+                TABLE,
+                ImmutableMap.of(
+                        Cell.create(
+                                PtBytes.toBytes("same_row"),
+                                // Writing to the same row, but different column/cell
+                                PtBytes.toBytes("column2")),
+                        TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
+    }
+
+    @Test
+    public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
+        for (int idx = 0; idx < SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS; idx++) {
+            putUncommittedAtFreshTimestamp(TABLE_NO_SWEEP, TEST_CELL);
+        }
+        assertThatLoggableExceptionThrownBy(
+                        () -> txManager.runTaskThrowOnConflict(txn -> txn.get(TABLE_NO_SWEEP, Set.of(TEST_CELL))))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageStartingWith("Unable to filter cells")
+                .hasExactlyArgs(
+                        SafeArg.of("table", TABLE_NO_SWEEP),
+                        SafeArg.of("maxIterations", SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS));
+    }
+
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,u      }(j  (6fff522b93c2fac008381bf889fb8bd37ac6b462j  matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelection.javaj  modifiedj~  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  Xm  @@ -60,6 +60,10 @@ default void check() {
                 SafeArg.of("endColumnExclusive", endColumnExclusive()));
     }
 
+    static ColumnRangeSelection all() {
+        return ImmutableColumnRangeSelection.builder().build();
+    }
+
     static ImmutableColumnRangeSelection.Builder builder() {
         return ImmutableColumnRangeSelection.builder();
     }u}(j  (813978dd1860b6fe6d1edf472c0e66a8bd3a02a9j  oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javaj  modifiedj~  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -32,7 +32,7 @@ public interface InteractiveTransaction {
 
     void delete(String table, WorkloadCell workloadCell);
 
-    List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection);
+    List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection);
 
     List<WitnessedTransactionAction> witness();
 }u}(j  (20b31cf76e2133d94ff55a28f70c6c66e2677ee1j  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj  modifiedj~  Kj  K	j  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X	  @@ -101,7 +101,7 @@ public void delete(String table, WorkloadCell workloadCell) {
     }
 
     @Override
-    public List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection) {
+    public List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection) {
         return run(
                 tableReference -> {
                     // Having a non-configurable batch hint is a bit iffy, but suffices as this won't be used in
@@ -111,20 +111,22 @@ public List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRang
                             List.of(AtlasDbUtils.toAtlasKey(row)),
                             BatchColumnRangeSelection.create(
                                     AtlasDbUtils.toAtlasColumnRangeSelection(columnRangeSelection), 100));
+                    Preconditions.checkState(
+                            iterators.size() == 1,
+                            "Expected exactly one iterator to be returned",
+                            SafeArg.of("iteratorsReturned", iterators.size()));
                     List<ColumnValue> columnsAndValues = EntryStream.of(iterators.get(AtlasDbUtils.toAtlasKey(row)))
                             .mapKeys(Cell::getColumnName)
                             .mapKeys(AtlasDbUtils::fromAtlasColumn)
                             .mapValues(AtlasDbUtils::fromAtlasValue)
                             .map(entry -> ColumnValue.of(entry.getKey(), entry.getValue()))
                             .collect(Collectors.toList());
-                    witnessedTransactionActions.add(WitnessedRowColumnRangeReadTransactionAction.builder()
-                            .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                                    .table(table)
-                                    .row(row)
-                                    .columnRangeSelection(columnRangeSelection)
-                                    .build())
-                            .columnsAndValues(columnsAndValues)
-                            .build());
+                    witnessedTransactionActions.add(RowColumnRangeReadTransactionAction.builder()
+                            .table(table)
+                            .row(row)
+                            .columnRangeSelection(columnRangeSelection)
+                            .build()
+                            .witness(columnsAndValues));
                     return columnsAndValues;
                 },
                 table);u}(j  (c8018ac7639c00059b53f6ab1525b9304eba6674j  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj  modifiedj~  K,j  K5j  Kaj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X'  @@ -59,10 +59,10 @@ public void before() {
     @Test
     public void witnessRecordsAllSingleCellActions() {
         assertThat(readWrite(transaction -> {
-                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-                    transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
-                }))
+            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+            transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
+        }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
@@ -72,10 +72,10 @@ public void witnessRecordsAllSingleCellActions() {
     @Test
     public void readHandlesEmptyAndPresentValue() {
         assertThat(readWrite(transaction -> {
-                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-                    transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
-                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-                }))
+            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+            transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+        }))
                 .containsExactly(
                         WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
@@ -85,20 +85,16 @@ public void readHandlesEmptyAndPresentValue() {
     @Test
     public void witnessRecordsColumnRangeActions() {
         assertThat(readWrite(transaction -> {
-                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            WORKLOAD_CELL_TWO.key(),
-                            ColumnRangeSelection.builder().build());
-                }))
+            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+            transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+        }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedRowColumnRangeReadTransactionAction.builder()
                                 .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                         .table(TABLE_1)
                                         .row(WORKLOAD_CELL_TWO.key())
-                                        .columnRangeSelection(
-                                                ColumnRangeSelection.builder().build())
+                                        .columnRangeSelection(ColumnRangeSelection.all())
                                         .build())
                                 .addColumnsAndValues(ColumnValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
                                 .build());
@@ -107,17 +103,13 @@ public void witnessRecordsColumnRangeActions() {
     @Test
     public void emptyColumnRangeReadsAreRecorded() {
         assertThat(readWrite(transaction -> {
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            WORKLOAD_CELL_TWO.key(),
-                            ColumnRangeSelection.builder().build());
-                }))
+            transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+        }))
                 .containsExactly(WitnessedRowColumnRangeReadTransactionAction.builder()
                         .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                 .table(TABLE_1)
                                 .row(WORKLOAD_CELL_TWO.key())
-                                .columnRangeSelection(
-                                        ColumnRangeSelection.builder().build())
+                                .columnRangeSelection(ColumnRangeSelection.all())
                                 .build())
                         .build());
     }
@@ -126,12 +118,11 @@ public void emptyColumnRangeReadsAreRecorded() {
     public void allRelevantCellsAreRecordedForFullColumnScan() {
         int iterationCount = 1000;
         assertThat(readWrite(transaction -> {
-                    IntStream.range(0, iterationCount)
-                            .forEach(column ->
-                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-                    transaction.getRowColumnRange(
-                            TABLE_1, 1, ColumnRangeSelection.builder().build());
-                }))
+            IntStream.range(0, iterationCount)
+                    .forEach(column ->
+                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+            transaction.getRowColumnRange(TABLE_1, 1, ColumnRangeSelection.all());
+        }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
@@ -149,17 +140,17 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
         int startInclusive = 313;
         int endExclusive = 855;
         assertThat(readWrite(transaction -> {
-                    IntStream.range(0, iterationCount)
-                            .forEach(column ->
-                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            1,
-                            ColumnRangeSelection.builder()
-                                    .startColumnInclusive(startInclusive)
-                                    .endColumnExclusive(endExclusive)
-                                    .build());
-                }))
+            IntStream.range(0, iterationCount)
+                    .forEach(column ->
+                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+            transaction.getRowColumnRange(
+                    TABLE_1,
+                    1,
+                    ColumnRangeSelection.builder()
+                            .startColumnInclusive(startInclusive)
+                            .endColumnExclusive(endExclusive)
+                            .build());
+        }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
@@ -189,8 +180,8 @@ public void deleteThrowsWhenTableDoesNotExist() {
 
     @Test
     public void getRowsColumnRangeThrowsWhenTableDoesNotExist() {
-        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.getRowColumnRange(
-                TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.builder().build()));
+        assertThatThrownWhenUnknownTableReferenced(transaction ->
+                transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.all()));
     }
 
     @Test
@@ -213,8 +204,8 @@ public void deleteThrowsWhenInteractiveTransactionAlreadyWitnessed() {
 
     @Test
     public void getRowColumnRangeThrowsWhenInteractiveTransactionAlreadyWitnessed() {
-        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(transaction -> transaction.getRowColumnRange(
-                TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.builder().build()));
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(transaction ->
+                transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.all()));
     }
 
     private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
@@ -229,22 +220,22 @@ private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTr
     private void assertThatThrownWhenUnknownTableReferenced(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-                    transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
-                    return null;
-                }))
+            transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
+            return null;
+        }))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Transaction action has unknown table.");
     }
 
     private void assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-                    AtlasDbInteractiveTransaction transaction =
-                            new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
-                    transaction.witness();
-                    transactionConsumer.accept(transaction);
-                    return null;
-                }))
+            AtlasDbInteractiveTransaction transaction =
+                    new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
+            transaction.witness();
+            transactionConsumer.accept(transaction);
+            return null;
+        }))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Transaction has already been witnessed and can no longer perform any actions.");
     }u}(j  (64a306509b8c4df3ad24f99c149bfd057264b29aj  oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReaderTest.javaj  modifiedj~  Kj  Kj  K&j  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X	  @@ -38,10 +38,10 @@ public void doesNotReadCellsFromDifferentTable() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                        .table(WorkloadTestHelpers.TABLE_2)
-                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
-                        .columnRangeSelection(ColumnRangeSelection.builder().build())
-                        .build()))
+                .table(WorkloadTestHelpers.TABLE_2)
+                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                .columnRangeSelection(ColumnRangeSelection.all())
+                .build()))
                 .isEmpty();
     }
 
@@ -51,10 +51,10 @@ public void doesNotReadCellsFromDifferentRow() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                        .table(WorkloadTestHelpers.TABLE_1)
-                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
-                        .columnRangeSelection(ColumnRangeSelection.builder().build())
-                        .build()))
+                .table(WorkloadTestHelpers.TABLE_1)
+                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
+                .columnRangeSelection(ColumnRangeSelection.builder().build())
+                .build()))
                 .isEmpty();
     }
 
@@ -67,13 +67,13 @@ public void readsCellsFromRangeInOrder() {
                     Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         }
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                        .table(WorkloadTestHelpers.TABLE_1)
-                        .row(1)
-                        .columnRangeSelection(ColumnRangeSelection.builder()
-                                .startColumnInclusive(2)
-                                .endColumnExclusive(4)
-                                .build())
-                        .build()))
+                .table(WorkloadTestHelpers.TABLE_1)
+                .row(1)
+                .columnRangeSelection(ColumnRangeSelection.builder()
+                        .startColumnInclusive(2)
+                        .endColumnExclusive(4)
+                        .build())
+                .build()))
                 .containsExactly(
                         ColumnValue.of(2, WorkloadTestHelpers.VALUE_ONE),
                         ColumnValue.of(3, WorkloadTestHelpers.VALUE_ONE));
@@ -85,10 +85,10 @@ public void doesNotReturnExplicitlyEmptyValues() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.empty()));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                        .table(WorkloadTestHelpers.TABLE_1)
-                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
-                        .columnRangeSelection(ColumnRangeSelection.builder().build())
-                        .build()))
+                .table(WorkloadTestHelpers.TABLE_1)
+                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                .columnRangeSelection(ColumnRangeSelection.all())
+                .build()))
                 .isEmpty();
     }
 }u}(j  (a982645e9685b7e2b328546bb927b2c415ad29bfj  latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj  modifiedj~  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -130,7 +130,7 @@ public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
         transactionStore.readWrite(txn -> txn.delete(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 1, 1)));
         invariant.accept(history, reference::set);
         assertThat(reference.get())
-                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                .containsExactly(CrossCellInconsistency.builder()
                         .putInconsistentValues(
                                 TableAndWorkloadCell.of(
                                         TABLE_NAME,
@@ -142,7 +142,7 @@ public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
                                         ImmutableWorkloadCell.of(
                                                 TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 1)),
                                 Optional.of(0))
-                        .build()));
+                        .build());
     }
 
     @Test
@@ -155,7 +155,7 @@ public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
                 TransientRowsWorkflows.VALUE));
         invariant.accept(history, reference::set);
         assertThat(reference.get())
-                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                .containsExactly(CrossCellInconsistency.builder()
                         .putInconsistentValues(
                                 TableAndWorkloadCell.of(
                                         TABLE_NAME,
@@ -167,7 +167,7 @@ public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
                                         ImmutableWorkloadCell.of(
                                                 TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 2)),
                                 Optional.empty())
-                        .build()));
+                        .build());
     }
 
     @Testu}(j  (fe0267e6f697a967a6133f2554009d8a0be04d4cj  katlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtilsTest.javaj  modifiedj~  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -67,7 +67,7 @@ public void performTransfersReturnsBalancesWithCorrectSum() {
         when(random.nextInt(anyInt())).thenReturn(0, 1);
         Map<Integer, Integer> balances = Map.of(0, 1, 1, 1);
         Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
-        assertThat(newBalances).isEqualTo(Map.of(0, 0, 1, 2));
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(Map.of(0, 0, 1, 2));
         assertThat(newBalances.values().stream().mapToInt(Integer::intValue).sum())
                 .isEqualTo(2);
     }
@@ -77,6 +77,6 @@ public void performsTransfersOnlyIfValueWouldNotBeBelowZero() {
         when(random.nextInt(anyInt())).thenReturn(0, 1);
         Map<Integer, Integer> balances = Map.of(0, 0, 1, 2);
         Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
-        assertThat(newBalances).isEqualTo(balances);
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(balances);
     }
 }u}(j  (7ae440730798415742814c38fb59d0707273036ej  datlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingGraphTest.javaj  modifiedj~  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X=  @@ -101,6 +101,6 @@ public void generateNewRingReturnsValidRing() {
 
     @Test
     public void asMapConvertsCorrectly() {
-        assertThat(RingGraph.from(VALID_RING).asMap()).isEqualTo(VALID_RING);
+        assertThat(RingGraph.from(VALID_RING).asMap()).containsExactlyInAnyOrderEntriesOf(VALID_RING);
     }
 }u}(j  (022221727d6f2d598a0016a225e75264c9780625j  build.gradlej  modifiedj~  Kj  Kj  K
j  ^https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/build.gradlej  ]https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/build.gradlej  phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -7,20 +7,20 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.0'
-        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.2.0'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.4'
+        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.3.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.38.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.39.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
-        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
+        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
-        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'
+        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.3'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
         classpath 'gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1'
         classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'
@@ -113,8 +113,7 @@ allprojects {
                 'Slf4jLogsafeArgs',
                 'StaticAssignmentInConstructor',
                 'StrictUnusedVariable'
-        options.errorprone.error 'DefaultLocale',
-                'SafeLoggingPropagation'
+        options.errorprone.error 'SafeLoggingPropagation'
     }
 }
 u}(j  (ffd47f177c27dd39d87fb4cd84339ad7d1911c1cj   changelog/0.874.0/pr-6625.v2.ymlj  addedj~  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.874.0%2Fpr-6625.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.874.0%2Fpr-6625.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.874.0%2Fpr-6625.v2.yml?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LockV1] Add async thread info snapshotting (disabled by default)'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6625u}(j  (a6c9d3dd239346b5de33d708683efcea7ca6e0d1j   changelog/0.875.0/pr-6623.v2.ymlj  addedj~  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.875.0%2Fpr-6623.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.875.0%2Fpr-6623.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.875.0%2Fpr-6623.v2.yml?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Log lock holder thread info on timeout, slow lock acquisition and contention
+  links:
+  - https://github.com/palantir/atlasdb/pull/6623u}(j  (34c425f71f242ce114bab888f8034960c6b716e7j   changelog/0.877.0/pr-6602.v2.ymlj  addedj~  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.877.0%2Fpr-6602.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.877.0%2Fpr-6602.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.877.0%2Fpr-6602.v2.yml?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Add metrics for number of requested cell/row-level commit locks
+  links:
+  - https://github.com/palantir/atlasdb/pull/6602u}(j  (46b215e4664b4438f038bf048c14656f6fb089e1j   changelog/0.878.0/pr-6630.v2.ymlj  addedj~  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.878.0%2Fpr-6630.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.878.0%2Fpr-6630.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.878.0%2Fpr-6630.v2.yml?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Remove recursive loop when filtering out cells that are not applicable
+    to our transaction.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6630u}(j  (9914bf81d7b0081790e5b357d977f35947ad8b60j   changelog/0.879.0/pr-6626.v2.ymlj  addedj~  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.879.0%2Fpr-6626.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.879.0%2Fpr-6626.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.879.0%2Fpr-6626.v2.yml?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LockV1] Pass refreshable thread info configuration'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6626u}(j  (a17f90ec5d7c8dabd4b8d110ace6016af8cfad9cj   changelog/0.880.0/pr-6641.v2.ymlj  addedj~  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.880.0%2Fpr-6641.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.880.0%2Fpr-6641.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.880.0%2Fpr-6641.v2.yml?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize CassandraService#refreshTokenRangesAndGetServers
+  links:
+  - https://github.com/palantir/atlasdb/pull/6641u}(j  (7afdb03a2af8b0138cc1524e0d39e84990810e28j   changelog/0.881.0/pr-6624.v2.ymlj  addedj~  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.881.0%2Fpr-6624.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.881.0%2Fpr-6624.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.881.0%2Fpr-6624.v2.yml?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Stopped checking immutable timestamp lock on thoroughly swept tables
+    when reading an empty value.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6624u}(j  (3750fb7fc4996863b5345b1cb6cbf683dd8cfc1fj   changelog/0.882.0/pr-6648.v2.ymlj  addedj~  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.882.0%2Fpr-6648.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.882.0%2Fpr-6648.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.882.0%2Fpr-6648.v2.yml?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize CassandraService#getAddressForHost
+  links:
+  - https://github.com/palantir/atlasdb/pull/6648u}(j  (aa4df8d917755227eec390dd5e0d424aebabf4c7j   changelog/0.882.0/pr-6649.v2.ymlj  addedj~  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.882.0%2Fpr-6649.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.882.0%2Fpr-6649.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.882.0%2Fpr-6649.v2.yml?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: bump snappy-java to 1.1.10.1
+  links:
+  - https://github.com/palantir/atlasdb/pull/6649u}(j  (d7951f643174772a855f4d861eeddb8fc504150aj   changelog/0.883.0/pr-6644.v2.ymlj  addedj~  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.883.0%2Fpr-6644.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.883.0%2Fpr-6644.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6644.v2.yml?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Create LockRequestMetadata and ChangeMetadata
+  links:
+  - https://github.com/palantir/atlasdb/pull/6644u}(j  (f502755b47a5379d145593d6f6a21b6d0ff20be9j   changelog/0.883.0/pr-6646.v2.ymlj  addedj~  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.883.0%2Fpr-6646.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.883.0%2Fpr-6646.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6646.v2.yml?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add metadata to LockEvent'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6646u}(j  (59a104ba72569b4dfd00ae8626fea6e626f1cc19j   changelog/0.883.0/pr-6647.v2.ymlj  addedj~  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.883.0%2Fpr-6647.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/changelog%2F0.883.0%2Fpr-6647.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6647.v2.yml?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add LockMetadata to IdentifiedLockRequest'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6647u}(j  (689da2f7264afbb03bb06b6a430723bd1dcbbf4bj  lock-api-objects/build.gradlej  modifiedj~  Kj  K j  Kj  qhttps://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api-objects%2Fbuild.gradlej  phttps://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api-objects%2Fbuild.gradlej  https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fbuild.gradle?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X_  @@ -16,6 +16,7 @@ dependencies {
     implementation 'com.google.errorprone:error_prone_annotations'
     implementation 'com.google.guava:guava'
     implementation project(':commons-annotations')
+    testImplementation project(path: ':lock-api')
 
     annotationProcessor 'org.immutables:value'
     compileOnly 'org.immutables:value::annotations'u}(j  (933965abbab2686a96a62a6ac504123076081ec8j  Ilock-api-objects/src/main/java/com/palantir/lock/LockClientAndThread.javaj  addedj~  K$j  K j  K$j  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface LockClientAndThread {
+    LockClientAndThread UNKNOWN = LockClientAndThread.of(LockClient.ANONYMOUS, "unknown-thread");
+
+    LockClient client();
+
+    String thread();
+
+    static ImmutableLockClientAndThread.Builder builder() {
+        return ImmutableLockClientAndThread.builder();
+    }
+
+    static LockClientAndThread of(LockClient client, String requestingThread) {
+        return builder().client(client).thread(requestingThread).build();
+    }
+}u}(j  (4305d649486aabcf97ca07976c286654204cf825j  Jlock-api-objects/src/main/java/com/palantir/lock/watch/ChangeMetadata.javaj  addedj~  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -0,0 +1,137 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.palantir.lock.watch.ChangeMetadata.Created;
+import com.palantir.lock.watch.ChangeMetadata.Deleted;
+import com.palantir.lock.watch.ChangeMetadata.Unchanged;
+import com.palantir.lock.watch.ChangeMetadata.Updated;
+import org.immutables.value.Value;
+import org.immutables.value.Value.Immutable;
+
+/**
+ * The subtypes of this class can be used to document CRUD-like operations that were applied to a value.
+ * However, the READ case is not accounted for as no locks are taken out for reads.
+ * Every instance should be associated with a {@link com.palantir.lock.LockDescriptor}.
+ * It is up to the users of metadata to know the type of value it refers to
+ * and how to interpret the different subtypes.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
+@JsonSubTypes({
+    @JsonSubTypes.Type(value = Unchanged.class, name = Unchanged.TYPE),
+    @JsonSubTypes.Type(value = Updated.class, name = Updated.TYPE),
+    @JsonSubTypes.Type(value = Deleted.class, name = Deleted.TYPE),
+    @JsonSubTypes.Type(value = Created.class, name = Created.TYPE),
+})
+public interface ChangeMetadata {
+    <T> T accept(Visitor<T> visitor);
+
+    static Unchanged unchanged() {
+        return ImmutableUnchanged.builder().build();
+    }
+
+    static Updated updated(byte[] oldValue, byte[] newValue) {
+        return ImmutableUpdated.of(oldValue, newValue);
+    }
+
+    static Deleted deleted(byte[] oldValue) {
+        return ImmutableDeleted.of(oldValue);
+    }
+
+    static Created created(byte[] newValue) {
+        return ImmutableCreated.of(newValue);
+    }
+
+    interface Visitor<T> {
+        T visit(Unchanged unchanged);
+
+        T visit(Updated updated);
+
+        T visit(Deleted deleted);
+
+        T visit(Created created);
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableUnchanged.class)
+    @JsonDeserialize(as = ImmutableUnchanged.class)
+    @JsonTypeName(Unchanged.TYPE)
+    interface Unchanged extends ChangeMetadata {
+        String TYPE = "unchanged";
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableUpdated.class)
+    @JsonDeserialize(as = ImmutableUpdated.class)
+    @JsonTypeName(Updated.TYPE)
+    interface Updated extends ChangeMetadata {
+        String TYPE = "updated";
+
+        @Value.Parameter
+        byte[] oldValue();
+
+        @Value.Parameter
+        byte[] newValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableDeleted.class)
+    @JsonDeserialize(as = ImmutableDeleted.class)
+    @JsonTypeName(Deleted.TYPE)
+    interface Deleted extends ChangeMetadata {
+        String TYPE = "deleted";
+
+        @Value.Parameter
+        byte[] oldValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableCreated.class)
+    @JsonDeserialize(as = ImmutableCreated.class)
+    @JsonTypeName(Created.TYPE)
+    interface Created extends ChangeMetadata {
+        String TYPE = "created";
+
+        @Value.Parameter
+        byte[] newValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+}u}(j  (9ef6441b1ec7d185a6b25c242d1d64524dbaadc5j  Elock-api-objects/src/main/java/com/palantir/lock/watch/LockEvent.javaj  modifiedj~  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  Xa  @@ -16,12 +16,14 @@
 
 package com.palantir.lock.watch;
 
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonTypeName;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.logsafe.Unsafe;
+import java.util.Optional;
 import java.util.Set;
 import org.immutables.value.Value;
 
@@ -37,6 +39,9 @@ public abstract class LockEvent implements LockWatchEvent {
 
     public abstract LockToken lockToken();
 
+    @JsonIgnore
+    public abstract Optional<LockRequestMetadata> metadata();
+
     @Override
     public int size() {
         return lockDescriptors().size();
@@ -48,8 +53,15 @@ public <T> T accept(Visitor<T> visitor) {
     }
 
     public static LockWatchEvent.Builder builder(Set<LockDescriptor> lockDescriptors, LockToken lockToken) {
-        ImmutableLockEvent.Builder builder =
-                ImmutableLockEvent.builder().lockDescriptors(lockDescriptors).lockToken(lockToken);
+        return builder(lockDescriptors, lockToken, Optional.empty());
+    }
+
+    public static LockWatchEvent.Builder builder(
+            Set<LockDescriptor> lockDescriptors, LockToken lockToken, Optional<LockRequestMetadata> metadata) {
+        ImmutableLockEvent.Builder builder = ImmutableLockEvent.builder()
+                .lockDescriptors(lockDescriptors)
+                .lockToken(lockToken)
+                .metadata(metadata);
         return seq -> builder.sequence(seq).build();
     }
 }u}(j  (baa29a11aad2762f424acb1d510175b8849ecba2j  Olock-api-objects/src/main/java/com/palantir/lock/watch/LockRequestMetadata.javaj  addedj~  K'j  K j  K'j  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X0  @@ -0,0 +1,39 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import com.palantir.lock.LockDescriptor;
+import com.palantir.logsafe.Unsafe;
+import java.util.Map;
+import org.immutables.value.Value;
+
+/**
+ * Metadata attached to a lock request and to any {@link LockEvent} created as a result of that request.
+ * Ideally, this class is not serialized as-is to JSON due to the repetition of {@link LockDescriptor} values
+ * in {@link LockRequestMetadata#lockDescriptorToChangeMetadata()} and the parent object.
+ */
+@Unsafe
+@Value.Immutable
+public interface LockRequestMetadata {
+    Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata();
+
+    static LockRequestMetadata of(Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata) {
+        return ImmutableLockRequestMetadata.builder()
+                .lockDescriptorToChangeMetadata(lockDescriptorToChangeMetadata)
+                .build();
+    }
+}u}(j  (8e3edb51b7ae6b3309b255039a0a6dd18134f32dj  Jlock-api/src/main/java/com/palantir/lock/DebugThreadInfoConfiguration.javaj  addedj~  K(j  K j  K(j  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -0,0 +1,40 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@JsonDeserialize(as = ImmutableDebugThreadInfoConfiguration.class)
+@JsonSerialize(as = ImmutableDebugThreadInfoConfiguration.class)
+@Value.Immutable
+public interface DebugThreadInfoConfiguration {
+
+    @JsonProperty("record-thread-info")
+    @Value.Default
+    default boolean recordThreadInfo() {
+        return false;
+    }
+
+    @JsonProperty("thread-info-snapshot-interval-millis")
+    @Value.Default
+    default long threadInfoSnapshotIntervalMillis() {
+        return 300000L;
+    }
+}u}(j  (24a4a395982dfe44421aaba5d136f4694950815fj  ?lock-api/src/main/java/com/palantir/lock/LockServerConfigs.javaj  modifiedj~  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  XV  @@ -20,4 +20,7 @@ public final class LockServerConfigs {
     private LockServerConfigs() {}
 
     public static final LockServerOptions DEFAULT = LockServerOptions.builder().build();
+
+    public static final DebugThreadInfoConfiguration DEFAULT_THREAD_INFO_CONFIG =
+            ImmutableDebugThreadInfoConfiguration.builder().build();
 }u}(j  (da50ee7393b93c8d71153140ffe86ba6c40366fcj  ?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javaj  modifiedj~  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -16,6 +16,7 @@
 package com.palantir.lock;
 
 import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.google.common.base.MoreObjects;
@@ -126,6 +127,15 @@ public long slowLogTriggerMillis() {
         return 10000L;
     }
 
+    /**
+     * Runtime configuration relating to thread info recording (which lock is held by which client-thread).
+     */
+    @JsonIgnore
+    @Value.Default
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    }
+
     @Override
     public boolean equals(@Nullable Object obj) {
         if (this == obj) {
@@ -142,7 +152,8 @@ && getRandomBitCount() == other.getRandomBitCount()
                 && Objects.equals(getMaxAllowedClockDrift(), other.getMaxAllowedClockDrift())
                 && Objects.equals(getMaxAllowedBlockingDuration(), other.getMaxAllowedBlockingDuration())
                 && Objects.equals(getMaxNormalLockAge(), other.getMaxNormalLockAge())
-                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout());
+                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout())
+                && Objects.equals(threadInfoConfiguration(), other.threadInfoConfiguration());
     }
 
     @Override
@@ -155,7 +166,8 @@ public int hashCode() {
                 getMaxNormalLockAge(),
                 getRandomBitCount(),
                 getStuckTransactionTimeout(),
-                slowLogTriggerMillis());
+                slowLogTriggerMillis(),
+                threadInfoConfiguration());
     }
 
     @Override
@@ -169,6 +181,7 @@ public String toString() {
                 .add("randomBitCount", getRandomBitCount())
                 .add("stuckTransactionTimeout", getStuckTransactionTimeout())
                 .add("slowLogTriggerMillis", slowLogTriggerMillis())
+                .add("threadInfoConfiguration", threadInfoConfiguration())
                 .toString();
     }
 u}(j  (6ad04228eeb384671486cf32446155659b4c354ej  Jlock-api/src/main/java/com/palantir/lock/client/IdentifiedLockRequest.javaj  modifiedj~  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -15,10 +15,12 @@
  */
 package com.palantir.lock.client;
 
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.Unsafe;
 import java.util.Optional;
 import java.util.Set;
@@ -43,15 +45,32 @@ public interface IdentifiedLockRequest {
     @Value.Parameter
     Optional<String> getClientDescription();
 
+    @Value.Parameter
+    @JsonIgnore
+    Optional<LockRequestMetadata> getMetadata();
+
     static IdentifiedLockRequest of(Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs) {
         return ImmutableIdentifiedLockRequest.of(
-                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.empty());
+                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.empty(), Optional.empty());
     }
 
     static IdentifiedLockRequest of(
             Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs, String clientDescription) {
         return ImmutableIdentifiedLockRequest.of(
-                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription));
+                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription), Optional.empty());
+    }
+
+    static IdentifiedLockRequest of(
+            Set<LockDescriptor> lockDescriptors,
+            long acquireTimeoutMs,
+            String clientDescription,
+            LockRequestMetadata metadata) {
+        return ImmutableIdentifiedLockRequest.of(
+                UUID.randomUUID(),
+                lockDescriptors,
+                acquireTimeoutMs,
+                Optional.of(clientDescription),
+                Optional.of(metadata));
     }
 
     static IdentifiedLockRequest from(LockRequest lockRequest) {u}(j  (9f55ad6d5a91523f5133238f9b39ba8002664e51j  Nlock-api/src/test/java/com/palantir/lock/client/IdentifiedLockRequestTest.javaj  modifiedj~  KIj  Kj  KTj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -19,24 +19,86 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
 import com.fasterxml.jackson.datatype.guava.GuavaModule;
 import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockRequestMetadata;
+import java.nio.charset.StandardCharsets;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.UUID;
 import org.junit.Test;
 
 public class IdentifiedLockRequestTest {
-    private static final String SERIALIZED_LOCK_REQUEST = "{"
-            + "\"requestId\":\"885afd9c-de62-44ff-a517-5db14b71bfaa\","
-            + "\"lockDescriptors\":[{\"bytes\":\"Zm9v\"}],"
-            + "\"acquireTimeoutMs\":123,"
-            + "\"clientDescription\":\"Thread: main\"}";
+    private static final String BASE = "src/test/resources/identified-lock-request-wire-format/";
+    private static final boolean REWRITE_JSON_BLOBS = false;
+    private static final IdentifiedLockRequest BASELINE_REQUEST = ImmutableIdentifiedLockRequest.builder()
+            .requestId(new UUID(1337, 42))
+            .lockDescriptors(ImmutableSet.of(StringLockDescriptor.of("lock1"), StringLockDescriptor.of("lock2")))
+            .acquireTimeoutMs(100)
+            .clientDescription("client: test, thread: test")
+            .build();
+    private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(ImmutableMap.of(
+            StringLockDescriptor.of("lock1"), ChangeMetadata.created("something".getBytes(StandardCharsets.UTF_8))));
+    private static final ObjectMapper MAPPER = new ObjectMapper()
+            .enable(SerializationFeature.INDENT_OUTPUT)
+            .registerModule(new Jdk8Module())
+            .registerModule(new GuavaModule());
 
-    private static final ObjectMapper mapper =
-            new ObjectMapper().registerModule(new Jdk8Module()).registerModule(new GuavaModule());
+    @Test
+    public void baselineRequestIsFullCompat() {
+        assertSerializedEquals(BASELINE_REQUEST, "baseline");
+        assertDeserializedEquals("baseline", BASELINE_REQUEST);
+    }
 
     @Test
-    public void ensureSerdeBackcompat() throws Exception {
-        IdentifiedLockRequest request = mapper.readValue(SERIALIZED_LOCK_REQUEST, IdentifiedLockRequest.class);
-        String deserialized = mapper.writeValueAsString(request);
-        assertThat(mapper.readTree(deserialized)).isEqualTo(mapper.readTree(SERIALIZED_LOCK_REQUEST));
+    public void baselineRequestWithMetadataIsBackCompat() {
+        assertSerializedEquals(
+                ImmutableIdentifiedLockRequest.copyOf(BASELINE_REQUEST).withMetadata(LOCK_REQUEST_METADATA),
+                "baseline");
+    }
+
+    private static void assertSerializedEquals(IdentifiedLockRequest request, String jsonFileName) {
+        try {
+            Path path = getJsonPath(jsonFileName);
+            if (REWRITE_JSON_BLOBS) {
+                MAPPER.writeValue(path.toFile(), request);
+            }
+            String serialized = serialize(request);
+            assertThat(MAPPER.readTree(serialized))
+                    .as("Serialization yields identical JSON representation")
+                    .isEqualTo(MAPPER.readTree(Files.readString(path)));
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static void assertDeserializedEquals(String jsonFileName, IdentifiedLockRequest request) {
+        assertThat(deserialize(jsonFileName)).isEqualTo(request);
+    }
+
+    private static String serialize(IdentifiedLockRequest request) {
+        try {
+            return MAPPER.writeValueAsString(request);
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static IdentifiedLockRequest deserialize(String jsonFileName) {
+        try {
+            return MAPPER.readValue(Files.readString(getJsonPath(jsonFileName)), IdentifiedLockRequest.class);
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static Path getJsonPath(String jsonFileName) {
+        return Paths.get(BASE + jsonFileName + ".json");
     }
 }u}(j  (88f329985fc4d91067bebcd353b56f20d58b75bej  Mlock-api/src/test/resources/identified-lock-request-wire-format/baseline.jsonj  addedj~  K
j  K j  K
j  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.json      j  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.jsonj  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.json?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -0,0 +1,10 @@
+{
+  "requestId" : "00000000-0000-0539-0000-00000000002a",
+  "lockDescriptors" : [ {
+    "bytes" : "bG9jazE="
+  }, {
+    "bytes" : "bG9jazI="
+  } ],
+  "acquireTimeoutMs" : 100,
+  "clientDescription" : "client: test, thread: test"
+}
\ No newline at end of fileu}(j  (dfc342440e6b1fcac63ded5134e926da137e5418j  lock-impl/build.gradlej  modifiedj~  Kj  K j  Kj  jhttps://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-impl%2Fbuild.gradlej  ihttps://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-impl%2Fbuild.gradlej  |https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fbuild.gradle?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -10,6 +10,7 @@ dependencies {
   implementation 'com.google.guava:guava'
   implementation 'com.palantir.common:streams'
   implementation 'com.palantir.nylon:nylon-threads'
+  implementation 'com.palantir.refreshable:refreshable'
   implementation 'com.palantir.safe-logging:preconditions'
   implementation 'com.palantir.safe-logging:safe-logging'
   implementation 'joda-time:joda-time'
@@ -22,6 +23,7 @@ dependencies {
   implementation project(':lock-api-objects')
   implementation project(':timestamp-api')
 
+  testImplementation 'org.awaitility:awaitility'
   testImplementation 'com.fasterxml.jackson.core:jackson-databind'
   testImplementation 'com.google.guava:guava'
   testImplementation 'com.palantir.safe-logging:preconditions'u}(j  (ccf79fc6208425b23884007b50ffc458e3a26bd5j  Llock-impl/src/main/java/com/palantir/lock/impl/AdjustableBackgroundTask.javaj  addedj~  Kej  K j  Kej  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -0,0 +1,101 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.io.Closeable;
+import java.time.Duration;
+import java.util.concurrent.RejectedExecutionException;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
+import java.util.function.Supplier;
+
+public final class AdjustableBackgroundTask implements Closeable {
+
+    /**
+     * A minimum duration between invocations if the task is not actually enabled.
+     * This is to prevent having a blocking thread in the background that does nothing.
+     */
+    @VisibleForTesting
+    static final Duration MINIMUM_INTERVAL_IF_NOT_RUNNING = Duration.ofSeconds(1);
+
+    private static final SafeLogger log = SafeLoggerFactory.get(AdjustableBackgroundTask.class);
+
+    private final ScheduledExecutorService scheduledExecutor;
+    private final Supplier<Boolean> shouldRunSupplier;
+    private final Supplier<Duration> intervalSupplier;
+    private final Runnable task;
+
+    public static AdjustableBackgroundTask create(
+            Supplier<Boolean> shouldRunSupplier, Supplier<Duration> delaySupplier, Runnable task) {
+        return new AdjustableBackgroundTask(
+                shouldRunSupplier, delaySupplier, task, PTExecutors.newSingleThreadScheduledExecutor());
+    }
+
+    @VisibleForTesting
+    AdjustableBackgroundTask(
+            Supplier<Boolean> shouldRunSupplier,
+            Supplier<Duration> intervalSupplier,
+            Runnable task,
+            ScheduledExecutorService scheduledExecutor) {
+        this.shouldRunSupplier = shouldRunSupplier;
+        this.intervalSupplier = intervalSupplier;
+        this.task = task;
+        this.scheduledExecutor = scheduledExecutor;
+        run();
+    }
+
+    private void run() {
+        boolean shouldRun = shouldRunSupplier.get();
+        if (shouldRun) {
+            try {
+                task.run();
+            } catch (Exception e) {
+                if (Thread.interrupted()) {
+                    log.error("Task was interrupted. Stopping background execution.", e);
+                    Thread.currentThread().interrupt();
+                    return;
+                }
+                log.error("Exception occurred during task", e);
+            } catch (Error e) {
+                log.error("Error occurred during task. Stopping background execution.", e);
+                return;
+            }
+        }
+        try {
+            long intervalMillis = intervalSupplier.get().toMillis();
+            scheduledExecutor.schedule(
+                    this::run,
+                    shouldRun ? intervalMillis : Math.max(MINIMUM_INTERVAL_IF_NOT_RUNNING.toMillis(), intervalMillis),
+                    TimeUnit.MILLISECONDS);
+        } catch (RejectedExecutionException e) {
+            log.warn(
+                    "Scheduler rejected execution",
+                    SafeArg.of("schedulerIsShutdown", scheduledExecutor.isShutdown()),
+                    e);
+        }
+    }
+
+    @Override
+    public void close() {
+        scheduledExecutor.shutdown();
+    }
+}u}(j  (d46677bd60efd12dee64f1090e49358ef304d8d9j  Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj  modifiedj~  K.j  Kj  K>j  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X$  @@ -80,6 +80,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.nylon.threads.ThreadNames;
+import com.palantir.refreshable.Refreshable;
 import com.palantir.util.JMXUtils;
 import com.palantir.util.Ownable;
 import java.math.BigInteger;
@@ -92,6 +93,7 @@
 import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.BlockingQueue;
@@ -104,6 +106,7 @@
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicInteger;
 import java.util.function.Supplier;
+import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 import javax.annotation.concurrent.ThreadSafe;
@@ -183,6 +186,9 @@ public String toString() {
     private final SimpleTimeDuration stuckTransactionTimeout;
     private final AtomicBoolean isShutDown = new AtomicBoolean(false);
 
+    /** Configurable background task that periodically collects snapshots about the current lock state */
+    private final LockThreadInfoSnapshotManager threadInfoSnapshotManager;
+
     private final LockClientIndices clientIndices = new LockClientIndices();
 
     /** The backing client-aware read write lock for each lock descriptor. */
@@ -228,15 +234,21 @@ public static LockServiceImpl create() {
     public static LockServiceImpl create(LockServerOptions options) {
         com.palantir.logsafe.Preconditions.checkNotNull(options);
         ExecutorService newExecutor = PTExecutors.newCachedThreadPool(LockServiceImpl.class.getName());
-        return create(options, Ownable.owned(newExecutor));
+        return create(Refreshable.only(options), Ownable.owned(newExecutor));
     }
 
-    public static LockServiceImpl create(LockServerOptions options, ExecutorService injectedExecutor) {
+    public static LockServiceImpl create(Refreshable<LockServerOptions> options, ExecutorService injectedExecutor) {
         com.palantir.logsafe.Preconditions.checkNotNull(options);
+        com.palantir.logsafe.Preconditions.checkNotNull(options.current());
         return create(options, Ownable.notOwned(injectedExecutor));
     }
 
-    private static LockServiceImpl create(LockServerOptions options, Ownable<ExecutorService> executor) {
+    public static LockServiceImpl create(LockServerOptions options, ExecutorService injectedExecutor) {
+        com.palantir.logsafe.Preconditions.checkNotNull(options);
+        return create(Refreshable.only(options), Ownable.notOwned(injectedExecutor));
+    }
+
+    private static LockServiceImpl create(Refreshable<LockServerOptions> options, Ownable<ExecutorService> executor) {
         if (log.isTraceEnabled()) {
             log.trace("Creating LockService with options={}", SafeArg.of("options", options));
         }
@@ -247,15 +259,22 @@ private static LockServiceImpl create(LockServerOptions options, Ownable<Executo
         return lockService;
     }
 
-    private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable<ExecutorService> executor) {
+    /**
+     * Only {@link LockServerOptions#threadInfoConfiguration()} is actually reloadable
+     */
+    private LockServiceImpl(
+            Refreshable<LockServerOptions> options, Runnable callOnClose, Ownable<ExecutorService> executor) {
+        LockServerOptions currentOptions = options.current();
         this.lockReapRunner = new LockReapRunner(executor);
         this.callOnClose = callOnClose;
-        this.isStandaloneServer = options.isStandaloneServer();
-        this.maxAllowedLockTimeout = SimpleTimeDuration.of(options.getMaxAllowedLockTimeout());
-        this.maxAllowedClockDrift = SimpleTimeDuration.of(options.getMaxAllowedClockDrift());
-        this.maxNormalLockAge = SimpleTimeDuration.of(options.getMaxNormalLockAge());
-        this.stuckTransactionTimeout = SimpleTimeDuration.of(options.getStuckTransactionTimeout());
-        this.slowLogTriggerMillis = options.slowLogTriggerMillis();
+        this.isStandaloneServer = currentOptions.isStandaloneServer();
+        this.maxAllowedLockTimeout = SimpleTimeDuration.of(currentOptions.getMaxAllowedLockTimeout());
+        this.maxAllowedClockDrift = SimpleTimeDuration.of(currentOptions.getMaxAllowedClockDrift());
+        this.maxNormalLockAge = SimpleTimeDuration.of(currentOptions.getMaxNormalLockAge());
+        this.stuckTransactionTimeout = SimpleTimeDuration.of(currentOptions.getStuckTransactionTimeout());
+        this.slowLogTriggerMillis = currentOptions.slowLogTriggerMillis();
+        this.threadInfoSnapshotManager = new LockThreadInfoSnapshotManager(
+                options.map(LockServerOptions::threadInfoConfiguration), () -> heldLocksTokenMap);
     }
 
     private HeldLocksToken createHeldLocksToken(
@@ -465,7 +484,7 @@ private void logLockAcquisitionFailure(Map<LockDescriptor, LockClient> failedLoc
         final String logMessage = "Current holders of the first {} of {} total failed locks were: {}";
 
         List<String> lockDescriptions = new ArrayList<>();
-        Iterator<Map.Entry<LockDescriptor, LockClient>> entries =
+        Iterator<Entry<LockDescriptor, LockClient>> entries =
                 failedLocks.entrySet().iterator();
         for (int i = 0; i < MAX_FAILED_LOCKS_TO_LOG && entries.hasNext(); i++) {
             Map.Entry<LockDescriptor, LockClient> entry = entries.next();
@@ -477,7 +496,10 @@ private void logLockAcquisitionFailure(Map<LockDescriptor, LockClient> failedLoc
                 logMessage,
                 SafeArg.of("numLocksLogged", Math.min(MAX_FAILED_LOCKS_TO_LOG, failedLocks.size())),
                 SafeArg.of("numLocksFailed", failedLocks.size()),
-                UnsafeArg.of("lockDescriptions", lockDescriptions));
+                UnsafeArg.of("lockDescriptions", lockDescriptions),
+                threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(failedLocks.keySet().stream()
+                        .limit(MAX_FAILED_LOCKS_TO_LOG)
+                        .collect(Collectors.toSet())));
     }
 
     private boolean isBlocking(BlockingMode blockingMode) {
@@ -523,7 +545,7 @@ private void tryLocks(
                 LockClient currentHolder = tryLock(lock.get(client, entry.getValue()), blockingMode, deadline);
                 if (log.isDebugEnabled() || isSlowLogEnabled()) {
                     long responseTimeMillis = System.currentTimeMillis() - startTime;
-                    logSlowLockAcquisition(entry.getKey().toString(), currentHolder, responseTimeMillis);
+                    logSlowLockAcquisition(entry.getKey(), currentHolder, responseTimeMillis);
                 }
                 if (currentHolder == null) {
                     locks.put(lock, entry.getValue());
@@ -542,22 +564,25 @@ private void tryLocks(
     }
 
     @VisibleForTesting
-    void logSlowLockAcquisition(String lockId, LockClient currentHolder, long durationMillis) {
+    void logSlowLockAcquisition(LockDescriptor lockDescriptor, LockClient currentHolder, long durationMillis) {
         final String slowLockLogMessage = "Blocked for {} ms to acquire lock {} {}.";
+        final String lockId = lockDescriptor.getLockIdAsString();
 
         // Note: The construction of params is pushed into the branches, as it may be expensive.
         if (isSlowLogEnabled() && durationMillis >= slowLogTriggerMillis) {
             SlowLockLogger.logger.warn(
                     slowLockLogMessage,
                     SafeArg.of("durationMillis", durationMillis),
                     UnsafeArg.of("lockId", lockId),
-                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"));
+                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"),
+                    threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(Set.of(lockDescriptor)));
         } else if (log.isDebugEnabled() && durationMillis > DEBUG_SLOW_LOG_TRIGGER_MILLIS) {
             log.debug(
                     slowLockLogMessage,
                     SafeArg.of("durationMillis", durationMillis),
                     UnsafeArg.of("lockId", lockId),
-                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"));
+                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"),
+                    threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(Set.of(lockDescriptor)));
         }
     }
 
@@ -1217,6 +1242,7 @@ private String safeLockStats() {
     public void close() {
         if (isShutDown.compareAndSet(false, true)) {
             lockReapRunner.close();
+            threadInfoSnapshotManager.close();
             blockingThreads.forEach(Thread::interrupt);
             callOnClose.run();
         }
@@ -1227,6 +1253,10 @@ public long currentTimeMillis() {
         return System.currentTimeMillis();
     }
 
+    public LockThreadInfoSnapshotManager getSnapshotManager() {
+        return threadInfoSnapshotManager;
+    }
+
     private static String updateThreadName(LockRequest request) {
         String currentThreadName = Thread.currentThread().getName();
         tryRenameThread(u}(j  (8fe141cc254985903635606c7c4d0fb75eae629bj  Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javaj  addedj~  Krj  K j  Krj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -0,0 +1,114 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableMap;
+import com.palantir.lock.DebugThreadInfoConfiguration;
+import com.palantir.lock.HeldLocksToken;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.refreshable.Refreshable;
+import java.time.Duration;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.ConcurrentMap;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+
+public class LockThreadInfoSnapshotManager implements AutoCloseable {
+    private static final SafeLogger log = SafeLoggerFactory.get(LockThreadInfoSnapshotManager.class);
+    private final Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration;
+
+    private final Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
+
+    private volatile Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot = ImmutableMap.of();
+
+    private final AdjustableBackgroundTask backgroundTask;
+
+    public LockThreadInfoSnapshotManager(
+            Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration,
+            Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> mapSupplier) {
+        this.threadInfoConfiguration = threadInfoConfiguration;
+        this.tokenMapSupplier = mapSupplier;
+        this.backgroundTask = AdjustableBackgroundTask.create(
+                threadInfoConfiguration.map(DebugThreadInfoConfiguration::recordThreadInfo),
+                threadInfoConfiguration.map(config -> Duration.ofMillis(config.threadInfoSnapshotIntervalMillis())),
+                this::takeSnapshot);
+    }
+
+    @VisibleForTesting
+    Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot() {
+        return lastKnownThreadInfoSnapshot;
+    }
+
+    /**
+     * Returns a consistent snapshot of thread information restricted to the given lock descriptors wrapped in an
+     * unsafe logging argument.
+     */
+    public UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> getRestrictedSnapshotAsOptionalLogArg(
+            Set<LockDescriptor> lockDescriptors) {
+        String argName = "presumedClientThreadHoldersIfEnabled";
+        if (!threadInfoConfiguration.current().recordThreadInfo()) {
+            // Avoids keeping the value alive even though we are never returning it
+            lastKnownThreadInfoSnapshot = Map.of();
+            return UnsafeArg.of(argName, Optional.empty());
+        }
+        Map<LockDescriptor, LockClientAndThread> latestSnapshot = lastKnownThreadInfoSnapshot;
+        Map<LockDescriptor, LockClientAndThread> restrictedSnapshot = new HashMap<>();
+        for (LockDescriptor lock : lockDescriptors) {
+            restrictedSnapshot.put(lock, latestSnapshot.get(lock));
+        }
+        return UnsafeArg.of(argName, Optional.of(restrictedSnapshot));
+    }
+
+    @VisibleForTesting
+    void takeSnapshot() {
+        lastKnownThreadInfoSnapshot = tokenMapSupplier.get().keySet().stream()
+                .flatMap(token -> {
+                    LockClientAndThread clientThread = LockClientAndThread.of(
+                            Objects.requireNonNullElse(token.getClient(), LockClientAndThread.UNKNOWN.client()),
+                            Objects.requireNonNullElse(
+                                    token.getRequestingThread(), LockClientAndThread.UNKNOWN.thread()));
+                    return token.getLockDescriptors().stream()
+                            .map(lockDescriptor -> Map.entry(lockDescriptor, clientThread));
+                })
+                // Although a lock can be held by multiple clients/threads, we only remember one to save space
+                .collect(Collectors.toMap(Entry::getKey, Entry::getValue, (existing, replacement) -> existing));
+
+        log.info(
+                "Took thread info snapshot of {} locks. Next snapshot due in {}ms",
+                SafeArg.of("snapshotSize", lastKnownThreadInfoSnapshot.size()),
+                SafeArg.of(
+                        "snapshotIntervalMillis",
+                        threadInfoConfiguration.current().threadInfoSnapshotIntervalMillis()));
+    }
+
+    @Override
+    public void close() {
+        backgroundTask.close();
+    }
+}u}(j  (97ae55956450814bf5146499495e54f469faa960j  Plock-impl/src/test/java/com/palantir/lock/impl/AdjustableBackgroundTaskTest.javaj  addedj~  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -0,0 +1,142 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.refreshable.Refreshable;
+import com.palantir.refreshable.SettableRefreshable;
+import java.time.Duration;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.concurrent.atomic.AtomicLong;
+import org.jmock.lib.concurrent.DeterministicScheduler;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class AdjustableBackgroundTaskTest {
+    private static final Duration DEFAULT_INTERVAL = Duration.ofSeconds(10);
+    private final AtomicLong field = new AtomicLong(0);
+    private final AtomicBoolean shouldRun = new AtomicBoolean(false);
+    private final SettableRefreshable<Duration> interval = Refreshable.create(DEFAULT_INTERVAL);
+    private final DeterministicScheduler scheduledExecutor = new DeterministicScheduler();
+    private final AtomicLong numCallsToShouldRunSupplier = new AtomicLong(0);
+    private final AtomicLong numCallsToIntervalSupplier = new AtomicLong(0);
+    private final AdjustableBackgroundTask adjustableBackgroundTask = new AdjustableBackgroundTask(
+            () -> {
+                numCallsToShouldRunSupplier.incrementAndGet();
+                return shouldRun.get();
+            },
+            () -> {
+                numCallsToIntervalSupplier.incrementAndGet();
+                return interval.current();
+            },
+            field::incrementAndGet,
+            scheduledExecutor);
+
+    @BeforeClass
+    public static void testDelayShouldNotExceedMinimumDelay() {
+        // We have to ensure that our default interval is higher than MINIMUM_INTERVAL_IF_NOT_RUNNING
+        // so our tests are actually meaningful
+        assertThat(DEFAULT_INTERVAL).isGreaterThanOrEqualTo(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING);
+    }
+
+    @Test
+    public void doesNotRunTaskDuringConstruction() {
+        assertThat(field.get()).isEqualTo(0);
+    }
+
+    @Test
+    public void doesNotRunTaskByDefault() {
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(0);
+    }
+
+    @Test
+    public void canBeEnabledDisabledAndReEnabled() {
+        shouldRun.set(true);
+        tick(DEFAULT_INTERVAL);
+        long after = field.get();
+        assertThat(after).isEqualTo(1);
+
+        shouldRun.set(false);
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(after);
+
+        shouldRun.set(true);
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(after + 1);
+    }
+
+    @Test
+    public void canAdjustInterval() {
+        Duration newInterval = Duration.ofMinutes(1);
+        interval.update(newInterval);
+        shouldRun.set(true);
+        // initial run was scheduled at default interval
+        tick(DEFAULT_INTERVAL);
+        tick(Duration.ofMinutes(42 - 1));
+        assertThat(field.get()).isEqualTo(42);
+    }
+
+    @Test
+    public void canAdjustIntervalBelowMinimumDelayIfRunning() {
+        Duration newInterval = Duration.ofMillis(1);
+        interval.update(newInterval);
+        shouldRun.set(true);
+        // initial run was scheduled at default interval
+        tick(DEFAULT_INTERVAL);
+        tick(Duration.ofMillis(10 - 1));
+        assertThat(field.get()).isEqualTo(10);
+    }
+
+    @Test
+    public void runsSuppliersAtReducedIntervalIfNotRunning() {
+        Duration newInterval = Duration.ofMillis(1);
+        interval.update(newInterval);
+        Duration elapsedDuration = Duration.ofSeconds(10);
+        // initial run was scheduled at default interval, this will run suppliers once
+        tick(DEFAULT_INTERVAL);
+        tick(elapsedDuration);
+        assertThat(field.get()).isEqualTo(0);
+        // suppliers are also called once when running the constructor
+        assertThat(numCallsToShouldRunSupplier.get())
+                .as("Ensure the number of times we checked if we should run is at most the number of times"
+                        + " MINIMUM_INTERVAL_IF_NOT_RUNNING has elapsed")
+                .isLessThanOrEqualTo(
+                        elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
+        assertThat(numCallsToIntervalSupplier.get())
+                .as("Ensure the number of times we checked at what interval we should run is at most the number of"
+                        + " times MINIMUM_INTERVAL_IF_NOT_RUNNING has elapsed")
+                .isLessThanOrEqualTo(
+                        elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
+    }
+
+    @Test
+    public void suppliersAreCalledTogetherWithTask() {
+        shouldRun.set(true);
+        tick(Duration.ofSeconds(10 * DEFAULT_INTERVAL.toSeconds()));
+        assertThat(field.get()).isEqualTo(10);
+        // suppliers are also called once when running the constructor
+        assertThat(numCallsToShouldRunSupplier.get()).isEqualTo(11);
+        assertThat(numCallsToIntervalSupplier.get()).isEqualTo(11);
+    }
+
+    private void tick(Duration duration) {
+        scheduledExecutor.tick(duration.toMillis(), TimeUnit.MILLISECONDS);
+    }
+}u}(j  (aa47bbbffda9b68b9a93e2e31755530993156e4fj  Glock-impl/src/test/java/com/palantir/lock/impl/LockServiceImplTest.javaj  modifiedj~  Kj  Kj  K%j  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X!  @@ -22,16 +22,21 @@
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.lock.LockClient;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRefreshToken;
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.StringLockDescriptor;
 import com.palantir.lock.client.LockRefreshingLockService;
+import com.palantir.logsafe.UnsafeArg;
 import java.io.IOException;
 import java.util.HashSet;
 import java.util.List;
+import java.util.Map;
+import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.TimeUnit;
@@ -49,6 +54,9 @@
 public final class LockServiceImplTest {
     public static final long SLOW_LOG_TRIGGER_MILLIS = LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS + 10;
     private static final String TEST_LOCKID = "test_lockId";
+    private static final LockDescriptor TEST_LOCK = StringLockDescriptor.of(TEST_LOCKID);
+    private static final UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> THREAD_INFO_SNAPSHOT_ARG =
+            UnsafeArg.of("presumedClientThreadHoldersIfEnabled", Optional.empty());
     private static LockServiceImpl lockServiceWithSlowLogEnabled;
     private static LockServiceImpl lockServiceWithSlowLogDisabled;
 
@@ -94,48 +102,63 @@ public void slowLogShouldNotBeEnabledIfSlowLogTriggerMillisIsSetToZero() {
     @Test
     public void slowLogShouldBeLoggedWhenLockResponseIsSlowButShouldNotBeLoggedAtDebug() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS + 5;
-        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertThat(testLockServiceImplLogger.getLoggingEvents()).isEmpty();
 
         assertThat(testSlowLogger.getLoggingEvents()).hasSize(1);
         assertContainsMatchingLoggingEvent(
                 testSlowLogger.getLoggingEvents(),
-                warn("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                warn(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
     }
 
     @Test
     public void debugLogShouldBeLoggedWhenLockResponseIsSlowButSlowLogIsDisabled() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS + 5;
-        lockServiceWithSlowLogDisabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogDisabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertThat(testLockServiceImplLogger.getLoggingEvents()).hasSize(1);
         assertContainsMatchingLoggingEvent(
                 testLockServiceImplLogger.getLoggingEvents(),
-                debug("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                debug(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }
 
     @Test
     public void debugLogShouldBeLoggedIfLockResponseTimeIsBetweenDebugTriggerTimeAndSlowLogTriggerMillis() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS - 5;
-        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertContainsMatchingLoggingEvent(
                 testLockServiceImplLogger.getLoggingEvents(),
-                debug("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                debug(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }
 
     @Test
     public void debugOrSlowLogShouldNotBeLoggedWhenLockResponseIsNotSlow() {
         lockServiceWithSlowLogEnabled.logSlowLockAcquisition(
-                TEST_LOCKID, LockClient.ANONYMOUS, LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS - 5);
+                TEST_LOCK, LockClient.ANONYMOUS, LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS - 5);
         assertThat(testLockServiceImplLogger.getLoggingEvents()).isEmpty();
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }u}(j  (0ff14400f99f0f97c0494b5db923ebce2e42263dj  Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javaj  addedj~  MHj  K j  MHj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  XP:  @@ -0,0 +1,328 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableSortedMap;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.common.streams.KeyedStream;
+import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
+import com.palantir.lock.LockClient;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.LockMode;
+import com.palantir.lock.LockRequest;
+import com.palantir.lock.LockResponse;
+import com.palantir.lock.LockServerOptions;
+import com.palantir.lock.SimpleTimeDuration;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.logsafe.UnsafeArg;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Future;
+import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.After;
+import org.junit.Test;
+
+public class ThreadInfoLockServiceImplTest {
+    private static final LockDescriptor TEST_LOCK_1 = StringLockDescriptor.of("lock-1");
+    private static final LockDescriptor TEST_LOCK_2 = StringLockDescriptor.of("lock-2");
+    private static final LockDescriptor TEST_LOCK_3 = StringLockDescriptor.of("lock-3");
+
+    private static final String TEST_THREAD_1 = "thread-1";
+    private static final String TEST_THREAD_2 = "thread-2";
+    private static final String TEST_THREAD_3 = "thread-3";
+
+    private static final LockRequest LOCK_1_THREAD_1_WRITE_REQUEST = LockRequest.builder(
+                    ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+            .withCreatingThreadName(TEST_THREAD_1)
+            .build();
+
+    private static final LockClientAndThread ANONYMOUS_TEST_THREAD_1 =
+            LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1);
+
+    private final ExecutorService executor =
+            PTExecutors.newCachedThreadPool(ThreadInfoLockServiceImplTest.class.getName());
+
+    // Disable background snapshotting, invoke explicitly instead
+    private final LockServiceImpl lockService = LockServiceImpl.create(LockServerOptions.builder()
+            .isStandaloneServer(false)
+            .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                    .recordThreadInfo(false)
+                    .build())
+            .build());
+
+    @Test
+    public void initialThreadInfoIsEmpty() {
+        forceSnapshot();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+    }
+
+    @Test
+    public void recordsThreadInfoForLock() throws InterruptedException {
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+    }
+
+    @Test
+    public void recordsThreadInfoForUnlock() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+
+        lockService.unlock(response.getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+    }
+
+    @Test
+    public void recordsThreadInfoForMultipleLocks() throws InterruptedException {
+        int numThreads = 10;
+        int numLocksPerThread = 10;
+
+        List<String> threadNames =
+                IntStream.range(0, numThreads).mapToObj(i -> "test-thread-" + i).collect(Collectors.toList());
+
+        Map<String, Set<LockDescriptor>> locksPerThread = KeyedStream.of(threadNames)
+                .map(threadName -> IntStream.range(0, numLocksPerThread)
+                        .mapToObj(i -> StringLockDescriptor.of("test-lock-" + i + "-from-thread-" + threadName))
+                        .collect(Collectors.toSet()))
+                .collectToMap();
+
+        for (Map.Entry<String, Set<LockDescriptor>> entry : locksPerThread.entrySet()) {
+            LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.copyOf(
+                            entry.getValue().stream().collect(Collectors.toMap(lock -> lock, lock -> LockMode.WRITE))))
+                    .withCreatingThreadName(entry.getKey())
+                    .build();
+            lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest);
+        }
+
+        forceSnapshot();
+
+        locksPerThread.forEach((threadName, lockDescriptors) ->
+                lockDescriptors.forEach(lock -> assertThat(getLatestThreadInfoForLock(lock))
+                        .contains(LockClientAndThread.of(LockClient.ANONYMOUS, threadName))));
+    }
+
+    @Test
+    public void recordsThreadInfoForSharedLock() throws InterruptedException {
+        LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+        LockRequest lockRequest2 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .doNotBlock()
+                .lockAsManyAsPossible()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        LockResponse lockResponse = lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest1);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1).get())
+                .isIn(ANONYMOUS_TEST_THREAD_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+
+        lockService.unlock(lockResponse.getToken());
+
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+    }
+
+    @Test
+    public void doesNotRecordDroppedLocksWithLockAllOrNone() throws InterruptedException {
+        // T2 cannot get lock 1 -> grouping behavior LOCK_ALL_OR_NONE will release lock 2, even though it could have
+        // been locked
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
+                .doNotBlock()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+    }
+
+    @Test
+    public void recordsUnlockAndFreezeForNonAnonymousClient() throws InterruptedException {
+        LockClient client = LockClient.of("non-anonymous-client");
+
+        LockResponse response = lockService.lockWithFullLockResponse(client, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(LockClientAndThread.of(client, TEST_THREAD_1));
+
+        lockService.unlockAndFreeze(response.getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+    }
+
+    @Test
+    public void recordsCorrectStateAfterMultipleOperations() throws Exception {
+        CountDownLatch latch = new CountDownLatch(1);
+
+        // T1 locks 1 exclusively and locks 2 in shared mode
+        LockResponse response1 = lockService.lockWithFullLockResponse(
+                LockClient.ANONYMOUS,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_1)
+                        .build());
+
+        // T2 shouldn't get 1, but locks 3 in exclusive mode,
+        LockResponse response2 = lockService.lockWithFullLockResponse(
+                LockClient.ANONYMOUS,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_3, LockMode.WRITE))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_2)
+                        .build());
+
+        Future<LockResponse> response3 = executor.submit(() -> {
+
+            // T3 will wait at most 5 seconds to lock 1 in exclusive mode and lock 2 in shared mode
+            LockResponse response = lockService.lockWithFullLockResponse(
+                    LockClient.ANONYMOUS,
+                    LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                            .blockForAtMost(SimpleTimeDuration.of(5, TimeUnit.SECONDS))
+                            .lockAsManyAsPossible()
+                            .withCreatingThreadName(TEST_THREAD_3)
+                            .build());
+            latch.countDown();
+            return response;
+        });
+        lockService.unlock(response1.getToken());
+        latch.await();
+
+        forceSnapshot();
+
+        // T1 should hold nothing, T2 holds 3 in exclusive mode, T3 holds 1 in exclusive and 2 in shared mode
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+
+        lockService.unlock(response2.getToken());
+        forceSnapshot();
+
+        // Only T3 should hold locks
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+
+        lockService.unlock(response3.get().getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+    }
+
+    @Test
+    public void refreshDoesNotChangeSnapshot() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+
+        lockService.refreshTokens(List.of(response.getToken()));
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+    }
+
+    @Test
+    public void logArgIsUnsafeAndContainsEmptyOptionalIfNotRecordingThreadInfo() throws InterruptedException {
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+        assertThat(lockService.getSnapshotManager().getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
+                .isEqualTo(UnsafeArg.of("presumedClientThreadHoldersIfEnabled", Optional.empty()));
+    }
+
+    @Test
+    public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() throws InterruptedException {
+        LockServiceImpl lockServiceWithRecordingEnabled = LockServiceImpl.create(LockServerOptions.builder()
+                .isStandaloneServer(false)
+                .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                        .recordThreadInfo(true)
+                        .build())
+                .build());
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
+                .doNotBlock()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockServiceWithRecordingEnabled.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockServiceWithRecordingEnabled.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+
+        lockServiceWithRecordingEnabled.getSnapshotManager().takeSnapshot();
+
+        assertThat(lockServiceWithRecordingEnabled
+                        .getSnapshotManager()
+                        .getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
+                .isEqualTo(UnsafeArg.of(
+                        "presumedClientThreadHoldersIfEnabled",
+                        // Snapshot should be restricted to TEST_LOCK_1
+                        Optional.of(Map.of(TEST_LOCK_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1)))));
+
+        lockServiceWithRecordingEnabled.close();
+    }
+
+    @After
+    public void tearDown() {
+        lockService.close();
+    }
+
+    private void forceSnapshot() {
+        lockService.getSnapshotManager().takeSnapshot();
+    }
+
+    private Optional<LockClientAndThread> getLatestThreadInfoForLock(LockDescriptor lock) {
+        return Optional.ofNullable(lockService
+                .getSnapshotManager()
+                .getLastKnownThreadInfoSnapshot()
+                .get(lock));
+    }
+}u}(j  (8c5d010b813c3904a027f75049590aef2a7eb16aj  %scripts/circle-ci/run-circle-tests.shj  modifiedj~  Kj  Kj  Kj  {https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/scripts%2Fcircle-ci%2Frun-circle-tests.shj  zhttps://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/scripts%2Fcircle-ci%2Frun-circle-tests.shj  https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -2,7 +2,7 @@
 
 set -x
 
-BASE_GRADLE_ARGS="--profile"
+BASE_GRADLE_ARGS="--scan --profile --continue"
 
 function checkDocsBuild {
      pyenv install 3.5.4
@@ -77,12 +77,14 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 # External builds have a 16gb limit.
 if [ "$test_suite_index" -eq "14" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
+elif [ "$test_suite_index" -eq "4" ]; then
+    export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 elif [ "$test_suite_index" -eq "3" ]; then
     export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
     BASE_GRADLE_ARGS+=" --scan --parallel"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
-    BASE_GRADLE_ARGS+=" --scan --parallel"
+    BASE_GRADLE_ARGS+=" --parallel"
 fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64mu}(j  (2d3777830cee23df595f18bcd0f7378a07e49ebej  etimelock-agent/src/main/java/com/palantir/timelock/config/RestrictedTimeLockRuntimeConfiguration.javaj  modifiedj~  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  Xb  @@ -16,6 +16,7 @@
 
 package com.palantir.timelock.config;
 
+import com.palantir.lock.DebugThreadInfoConfiguration;
 import java.util.Optional;
 
 public class RestrictedTimeLockRuntimeConfiguration extends TimeLockRuntimeConfiguration {
@@ -54,4 +55,9 @@ public TimeLockAdjudicationConfiguration adjudication() {
     public Optional<TsBoundPersisterRuntimeConfiguration> timestampBoundPersistence() {
         return runtime.timestampBoundPersistence();
     }
+
+    @Override
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return runtime.threadInfoConfiguration();
+    }
 }u}(j  (d8d2a7c36eb3321b137f488acb279decabb46ac6j  [timelock-agent/src/main/java/com/palantir/timelock/config/TimeLockRuntimeConfiguration.javaj  modifiedj~  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -20,6 +20,8 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.google.common.base.Preconditions;
+import com.palantir.lock.DebugThreadInfoConfiguration;
+import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
 import com.palantir.logsafe.DoNotLog;
 import java.util.Optional;
 import org.immutables.value.Value;
@@ -78,6 +80,12 @@ public TimeLockAdjudicationConfiguration adjudication() {
     @JsonProperty("timestamp-bound-persistence")
     public abstract Optional<TsBoundPersisterRuntimeConfiguration> timestampBoundPersistence();
 
+    @JsonProperty("debug-thread-info-config")
+    @Value.Default
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    }
+
     @Value.Check
     public void check() {
         Preconditions.checkState(u}(j  (a168b555f03c27ec1cf6a6780262110e71867bedj  Itimelock-agent/src/main/java/com/palantir/timelock/paxos/LockCreator.javaj  modifiedj~  K	j  Kj  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -21,30 +21,32 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.impl.LockServiceImpl;
 import com.palantir.lock.impl.ThreadPooledLockService;
+import com.palantir.refreshable.Refreshable;
 import com.palantir.timelock.config.TimeLockRuntimeConfiguration;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Semaphore;
-import java.util.function.Supplier;
 
 public class LockCreator {
-    private final Supplier<TimeLockRuntimeConfiguration> runtime;
+    private final Refreshable<TimeLockRuntimeConfiguration> runtime;
     private final long blockingTimeoutMs;
     private final Semaphore sharedThreadPool;
     private final ExecutorService sharedExecutor = PTExecutors.newCachedThreadPool(LockServiceImpl.class.getName());
 
-    public LockCreator(Supplier<TimeLockRuntimeConfiguration> runtime, int threadPoolSize, long blockingTimeoutMs) {
+    public LockCreator(Refreshable<TimeLockRuntimeConfiguration> runtime, int threadPoolSize, long blockingTimeoutMs) {
         this.runtime = runtime;
         this.sharedThreadPool = new Semaphore(threadPoolSize);
         this.blockingTimeoutMs = blockingTimeoutMs;
     }
 
     public CloseableLockService createThreadPoolingLockService() {
-        LockServerOptions lockServerOptions = LockServerOptions.builder()
-                .slowLogTriggerMillis(runtime.get().slowLockLogTriggerMillis())
-                .build();
+        Refreshable<LockServerOptions> lockServerOptions = runtime.map(rt -> LockServerOptions.builder()
+                .slowLogTriggerMillis(rt.slowLockLogTriggerMillis())
+                .threadInfoConfiguration(rt.threadInfoConfiguration())
+                .build());
 
         LockServiceImpl rawLockService = LockServiceImpl.create(lockServerOptions, sharedExecutor);
-        CloseableLockService lockService = BlockingTimeLimitedLockService.create(rawLockService, blockingTimeoutMs);
+        CloseableLockService lockService = BlockingTimeLimitedLockService.create(
+                rawLockService, blockingTimeoutMs, rawLockService.getSnapshotManager());
 
         return new ThreadPooledLockService(lockService, -1, sharedThreadPool);
     }u}(j  (cba6348015c254aa9ba5c6b6a2f959d6673f27dcj  btimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockService.javaj  modifiedj~  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X/
  @@ -32,6 +32,7 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.LockState;
 import com.palantir.lock.SimpleHeldLocksToken;
+import com.palantir.lock.impl.LockThreadInfoSnapshotManager;
 import com.palantir.lock.remoting.BlockingTimeoutException;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
@@ -44,31 +45,45 @@
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.TimeoutException;
+import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import javax.ws.rs.PathParam;
 import org.immutables.value.Value;
 
 public class BlockingTimeLimitedLockService implements CloseableLockService {
     private static final SafeLogger log = SafeLoggerFactory.get(BlockingTimeLimitedLockService.class);
 
+    private static final int MAX_THREADINFO_TO_LOG = 20;
+
     private final CloseableLockService delegate;
     private final TimeLimiter timeLimiter;
     private final long blockingTimeLimitMillis;
 
+    private final LockThreadInfoSnapshotManager threadInfoSnapshotManager;
+
     @VisibleForTesting
     BlockingTimeLimitedLockService(
-            CloseableLockService delegate, TimeLimiter timeLimiter, long blockingTimeLimitMillis) {
+            CloseableLockService delegate,
+            TimeLimiter timeLimiter,
+            long blockingTimeLimitMillis,
+            LockThreadInfoSnapshotManager threadInfoSnapshotManager) {
         this.delegate = delegate;
         this.timeLimiter = timeLimiter;
         this.blockingTimeLimitMillis = blockingTimeLimitMillis;
+        this.threadInfoSnapshotManager = threadInfoSnapshotManager;
     }
 
     public static BlockingTimeLimitedLockService create(
-            CloseableLockService lockService, long blockingTimeLimitMillis) {
+            CloseableLockService lockService,
+            long blockingTimeLimitMillis,
+            LockThreadInfoSnapshotManager threadInfoSnapshotManager) {
         // TODO (jkong): Inject the executor to allow application lifecycle managed executors.
         // Currently maintaining existing behaviour.
         return new BlockingTimeLimitedLockService(
-                lockService, SimpleTimeLimiter.create(PTExecutors.newCachedThreadPool()), blockingTimeLimitMillis);
+                lockService,
+                SimpleTimeLimiter.create(PTExecutors.newCachedThreadPool()),
+                blockingTimeLimitMillis,
+                threadInfoSnapshotManager);
     }
 
     @Nullable
@@ -234,7 +249,11 @@ private BlockingTimeoutException logAndHandleTimeout(LockRequestSpecification sp
                 SafeArg.of("timeoutDurationMillis", blockingTimeLimitMillis),
                 SafeArg.of("method", specification.method()),
                 SafeArg.of("client", specification.client()),
-                UnsafeArg.of("lockRequest", specification.lockRequest()));
+                UnsafeArg.of("lockRequest", specification.lockRequest()),
+                threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(
+                        specification.lockRequest().getLockDescriptors().stream()
+                                .limit(MAX_THREADINFO_TO_LOG)
+                                .collect(Collectors.toSet())));
 
         String errorMessage = String.format(
                 logMessage.replace("{}", "%s"),u}(j  (ba84282c91e1c85c2d25288ffc78e1895ce61edej  ftimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockServiceTest.javaj  modifiedj~  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.javaj  https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.java?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X:  @@ -33,6 +33,7 @@
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.impl.LockThreadInfoSnapshotManager;
 import com.palantir.lock.remoting.BlockingTimeoutException;
 import java.io.IOException;
 import java.util.concurrent.ExecutionException;
@@ -57,6 +58,8 @@ public class BlockingTimeLimitedLockServiceTest {
 
     private final CloseableLockService delegate = mock(CloseableLockService.class);
 
+    private final LockThreadInfoSnapshotManager snapshotManager = mock(LockThreadInfoSnapshotManager.class);
+
     private final BlockingTimeLimitedLockService acceptingService = createService(acceptingLimiter);
     private final BlockingTimeLimitedLockService timingOutService = createService(timingOutLimiter);
     private final BlockingTimeLimitedLockService interruptingService = createService(interruptingLimiter);
@@ -130,6 +133,6 @@ private void verifyCurrentTimeMillisDelegates(BlockingTimeLimitedLockService ser
     }
 
     private BlockingTimeLimitedLockService createService(TimeLimiter limiter) {
-        return new BlockingTimeLimitedLockService(delegate, limiter, BLOCKING_TIME_LIMIT_MILLIS);
+        return new BlockingTimeLimitedLockService(delegate, limiter, BLOCKING_TIME_LIMIT_MILLIS, snapshotManager);
     }
 }u}(j  (d3392a1c1b4cebd374d23f72a1c5cd73c77b3bc2j  
versions.lockj  modified      j~  K%j  K%j  KJj  _https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/versions.lockj  ^https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/versions.lockj  qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X*+  @@ -10,22 +10,22 @@ com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
 com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c38132bb)
 com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bbb5dd72)
-com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 03bafb2e)
-com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e133df00)
-com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7e1c9da4)
+com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 06bad036)
+com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e233e000)
+com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7f1c9ea4)
 com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2 (4 constraints: 2244332b)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 333f21b0)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6b30665e)
-com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 312bccaf)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6b30665e)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 343f76b0)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6c30915e)
+com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 322bf7af)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6c30915e)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 40197abb)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 41197bbb)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.2 (2 constraints: 251d9309)
-com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9a1c98a6)
+com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9b1c99a6)
 com.fasterxml.jackson.module:jackson-module-blackbird:2.14.2 (1 constraints: b40e625e)
 com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.2 (2 constraints: db2e8469)
 com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 24cec010)
+com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 2dce2620)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -45,7 +45,7 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (23 constraints: a3788bf6)
+com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f2947442)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
@@ -67,28 +67,28 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:6.77.0 (5 constraints: ad546073)
-com.palantir.conjure.java:conjure-undertow-annotations:6.77.0 (1 constraints: 4605743b)
-com.palantir.conjure.java:conjure-undertow-lib:6.77.0 (2 constraints: 8d1cfdb0)
+com.palantir.conjure.java:conjure-lib:7.5.0 (5 constraints: cd530c72)
+com.palantir.conjure.java:conjure-undertow-annotations:7.5.0 (1 constraints: 0e051d36)
+com.palantir.conjure.java:conjure-undertow-lib:7.5.0 (2 constraints: 1d1c4081)
 com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 3d696e70)
 com.palantir.conjure.java.api:service-config:2.34.0 (5 constraints: 724d79ca)
 com.palantir.conjure.java.api:ssl-config:2.34.0 (3 constraints: e22a0da5)
-com.palantir.conjure.java.runtime:client-config:7.40.0 (6 constraints: a46bdb28)
-com.palantir.conjure.java.runtime:conjure-java-annotations:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.40.0 (2 constraints: c521007b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.40.0 (6 constraints: 306e1085)
-com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.40.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.40.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:keystores:7.40.0 (3 constraints: 162a3e5f)
-com.palantir.conjure.java.runtime:refresh-utils:7.40.0 (2 constraints: 051e6045)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.77.0 (2 constraints: 7f29c101)
-com.palantir.dialogue:dialogue-blocking-channels:3.77.0 (2 constraints: e12335b4)
-com.palantir.dialogue:dialogue-clients:3.77.0 (1 constraints: 4305623b)
-com.palantir.dialogue:dialogue-core:3.77.0 (3 constraints: 833de5e1)
-com.palantir.dialogue:dialogue-futures:3.77.0 (3 constraints: da3348c0)
-com.palantir.dialogue:dialogue-serde:3.77.0 (3 constraints: c12e6ba4)
-com.palantir.dialogue:dialogue-target:3.77.0 (7 constraints: 9e760764)
+com.palantir.conjure.java.runtime:client-config:7.45.0 (6 constraints: bd6b2133)
+com.palantir.conjure.java.runtime:conjure-java-annotations:7.45.0 (1 constraints: c6188d9e)
+com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.45.0 (2 constraints: ca210f7b)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.45.0 (6 constraints: 3f6ee88e)
+com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.45.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.45.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.45.0 (1 constraints: c6188d9e)
+com.palantir.conjure.java.runtime:keystores:7.45.0 (3 constraints: 202a4c60)
+com.palantir.conjure.java.runtime:refresh-utils:7.45.0 (2 constraints: 0a1e6f45)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.78.0 (2 constraints: 83295d02)
+com.palantir.dialogue:dialogue-blocking-channels:3.78.0 (2 constraints: e32369b4)
+com.palantir.dialogue:dialogue-clients:3.78.0 (1 constraints: 4405653b)
+com.palantir.dialogue:dialogue-core:3.78.0 (3 constraints: 883d62e3)
+com.palantir.dialogue:dialogue-futures:3.78.0 (3 constraints: dd33dac0)
+com.palantir.dialogue:dialogue-serde:3.78.0 (3 constraints: c62e7fa5)
+com.palantir.dialogue:dialogue-target:3.78.0 (7 constraints: a7763c6a)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -98,7 +98,7 @@ com.palantir.goethe:goethe:0.9.0 (1 constraints: 0b050636)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
 com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
-com.palantir.safe-logging:logger:3.2.0 (23 constraints: 4e88492a)
+com.palantir.safe-logging:logger:3.2.0 (24 constraints: 98a4d6fa)
 com.palantir.safe-logging:logger-slf4j:3.2.0 (1 constraints: 000e5942)
 com.palantir.safe-logging:logger-spi:3.2.0 (2 constraints: 0f1e997a)
 com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: f7178aeb)
@@ -108,14 +108,14 @@ com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
 com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 485c7290)
 com.palantir.tracing:tracing:6.17.0 (8 constraints: f97d045e)
 com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 1745b4f5)
-com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 441994bb)
+com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 46199abb)
 com.palantir.tritium:tritium-api:0.64.0 (6 constraints: 5052c7ce)
 com.palantir.tritium:tritium-caffeine:0.64.0 (1 constraints: 3c05433b)
 com.palantir.tritium:tritium-core:0.64.0 (5 constraints: 5d43281d)
 com.palantir.tritium:tritium-lib:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f16b49d8)
+com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f96b65dd)
 com.palantir.tritium:tritium-proxy:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-registry:0.64.0 (12 constraints: f6d27f35)
+com.palantir.tritium:tritium-registry:0.64.0 (13 constraints: 88ef0d92)
 com.palantir.tritium:tritium-slf4j:0.64.0 (2 constraints: bd138370)
 com.palantir.tritium:tritium-time:0.64.0 (1 constraints: 820e8359)
 com.palantir.tritium:tritium-tracing:0.64.0 (1 constraints: 820e8359)
@@ -186,7 +186,7 @@ io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf
 io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
-io.undertow:undertow-core:2.2.24.Final (2 constraints: 361dd006)
+io.undertow:undertow-core:2.2.25.Final (2 constraints: 331dfa06)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
@@ -195,7 +195,7 @@ jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 26793e31)
 jakarta.inject:jakarta.inject-api:1.0.5 (13 constraints: decbc9f9)
 jakarta.servlet:jakarta.servlet-api:4.0.4 (10 constraints: 7b9def70)
 jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
-jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (18 constraints: 5a38d98d)
+jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (17 constraints: 6f283f6d)
 jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.5 (6 constraints: 845987f4)
@@ -313,7 +313,7 @@ org.slf4j:slf4j-api:1.7.36 (44 constraints: 8180995b)
 org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
 org.wildfly.common:wildfly-common:1.6.0.Final (4 constraints: 3f390b3d)
 org.xerial:sqlite-jdbc:3.42.0.0 (1 constraints: 99054946)
-org.xerial.snappy:snappy-java:1.1.8 (2 constraints: 011529cb)
+org.xerial.snappy:snappy-java:1.1.10.1 (2 constraints: 891546f4)
 org.yaml:snakeyaml:1.33 (5 constraints: 0a4c5570)
 
 [Test dependencies]u}(j  (04244236509f194bcfe0d83350f2346909da1318j  versions.propsj  modifiedj~  Kj  Kj  K
j  `https://github.com/palantir/atlasdb/blob/3ba9f37035dab2d33ff59619a23f2114a307e3f3/versions.propsj  _https://github.com/palantir/atlasdb/raw/3ba9f37035dab2d33ff59619a23f2114a307e3f3/versions.propsj  rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=3ba9f37035dab2d33ff59619a23f2114a307e3f3j  X  @@ -25,9 +25,9 @@ com.palantir.common:streams = 2.1.0
 com.palantir.config.crypto:* = 5.1.0
 com.palantir.conjure.java.api:* = 2.29.0
 com.palantir.conjure.java.runtime:* = 7.39.0
-com.palantir.conjure.java:* = 6.77.0
-com.palantir.conjure:conjure = 4.35.0
-com.palantir.dialogue:* = 3.77.0
+com.palantir.conjure.java:* = 7.5.0
+com.palantir.conjure:conjure = 4.36.0
+com.palantir.dialogue:* = 3.78.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
 com.palantir.goethe:* = 0.9.0
@@ -46,7 +46,7 @@ commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
 io.netty:* = 4.1.90.Final
-io.undertow:* = 2.2.24.Final
+io.undertow:* = 2.2.25.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2
@@ -78,7 +78,7 @@ org.reflections:reflections = 0.10.2
 org.rocksdb:rocksdbjni = 7.9.2
 org.slf4j:* = 1.7.36
 org.wildfly.common:wildfly-common = 1.6.0.Final
-org.xerial.snappy:snappy-java = 1.1.8
+org.xerial.snappy:snappy-java = 1.1.10.1
 org.xerial:sqlite-jdbc = 3.42.0.0
 org.yaml:snakeyaml = 1.33
 uk.org.lidalia:slf4j-test = 1.1.0ueu(e97498ebb3760104f5e883e9d76c4f79bf193673}(sha(e97498ebb3760104f5e883e9d76c4f79bf193673node_idEC_kwDOAjP5fdoAKGU5NzQ5OGViYjM3NjAxMDRmNWU4ODNlOWQ3NmM0Zjc5YmYxOTM2NzMcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-04-17T10:10:19Zu	committer}(j  
svc-changelogj  svc-changelog@palantir.comj  2023-04-17T10:10:19ZumessageAdd generated changelog entriestree}(j  (9426062d53c0017d06b866046cbcc8860e6d30a8url`https://api.github.com/repos/palantir/atlasdb/git/trees/9426062d53c0017d06b866046cbcc8860e6d30a8uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e97498ebb3760104f5e883e9d76c4f79bf193673
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQ9GwsJEHYaJX37fAFQAABZgQD9Ed3G3zo5F7Gihk9KtVS0hSJb
quoZTyLRaS8E3OjG+JgA/R8KLApQ2aqRevqhaNik9UZD155zdmkELAL3Q+ix6n6a
=9MQV
-----END PGP SIGNATURE-----payloadX  tree 9426062d53c0017d06b866046cbcc8860e6d30a8
parent e6dea799f37e089792bb611a6a3e927d51d02e21
author svc-changelog <svc-changelog@palantir.com> 1681726219 +0000
committer svc-changelog <svc-changelog@palantir.com> 1681726219 +0000

Add generated changelog entriesuuj  ^https://api.github.com/repos/palantir/atlasdb/commits/e97498ebb3760104f5e883e9d76c4f79bf193673html_urlShttps://github.com/palantir/atlasdb/commit/e97498ebb3760104f5e883e9d76c4f79bf193673comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e97498ebb3760104f5e883e9d76c4f79bf193673/commentsj  }(login
svc-changelogidJ#j  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j  *https://api.github.com/users/svc-changelogj   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj  }(j  
svc-changelogj  J#j  MDQ6VXNlcjg0MDc3NjAzj  4https://avatars.githubusercontent.com/u/84077603?v=4j  h5j  *https://api.github.com/users/svc-changelogj   https://github.com/svc-changelogj  4https://api.github.com/users/svc-changelog/followersj!  Ahttps://api.github.com/users/svc-changelog/following{/other_user}j#  :https://api.github.com/users/svc-changelog/gists{/gist_id}j%  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j'  8https://api.github.com/users/svc-changelog/subscriptionsj)  /https://api.github.com/users/svc-changelog/orgsj+  0https://api.github.com/users/svc-changelog/reposj-  ;https://api.github.com/users/svc-changelog/events{/privacy}j/  :https://api.github.com/users/svc-changelog/received_eventsj1  Userj3  uparents]}(j  (e6dea799f37e089792bb611a6a3e927d51d02e21j  ^https://api.github.com/repos/palantir/atlasdb/commits/e6dea799f37e089792bb611a6a3e927d51d02e21j  Shttps://github.com/palantir/atlasdb/commit/e6dea799f37e089792bb611a6a3e927d51d02e21uastats}(totalK	additionsK	deletionsK ufiles]}(j  (c822ef68c4ddbb417971592d568f0a9d209eaa87filename$changelog/@unreleased/pr-6528.v2.ymlstatusaddedjM  KjN  K changesKblob_url|https://github.com/palantir/atlasdb/blob/e97498ebb3760104f5e883e9d76c4f79bf193673/changelog%2F%40unreleased%2Fpr-6528.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/e97498ebb3760104f5e883e9d76c4f79bf193673/changelog%2F%40unreleased%2Fpr-6528.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6528.v2.yml?ref=e97498ebb3760104f5e883e9d76c4f79bf193673patch@@ -0,0 +1,6 @@
+type: fix
+fix:
+  description: The Conjure Undertow handled lock resource now uses Optionals to correctly
+    return 204s with no content.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6528uau(645d977d00439c823bf4adff7b63a6f6bedb76e4}(sha(645d977d00439c823bf4adff7b63a6f6bedb76e4node_idEC_kwDOAjP5fdoAKDY0NWQ5NzdkMDA0MzljODIzYmY0YWRmZjdiNjNhNmY2YmVkYjc2ZTQcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-19T15:28:28Zu	committer}(jj  	Tom Papkejl  tpapke@palantir.comjn  2023-07-19T15:28:28ZumessageAddress commentstree}(jb  (c7320a557682fbc08f3d5577c805e57b8251f68curl`https://api.github.com/repos/palantir/atlasdb/git/trees/c7320a557682fbc08f3d5577c805e57b8251f68cujz  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/645d977d00439c823bf4adff7b63a6f6bedb76e4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS4ARwACgkQmF9s0kaF
Iw29oAgArtcasoE9HqoPS3D+cbDviC/L0kvXNmX23Nrf+4Z4WqfWBWSnqic9I46H
y3okwY+WAOwJuVDX3k8Dndq2caHn8o7kqRJHXGyvoY66jM6sLciAgjucIHK+lLuK
YLeT20k3urVJWqIilTXqcuG4Z+oMpNmuARH8iFeE9g7DKRPLyQh3vohMes+iBvmG
eARZItWRwL/e9X/JtgMkmL4OVaFcVJAgdWpi6My1soTBlct3S/kBIKfDDZVoJjhY
CPRmwRGmn3i8CLn5vhu+M2v9UwvWPltDNWft2eUgrXKi44/NeOCYwzohwBB0a47D
eJ7ShG5lOt0PgCXBK/KMgJg3ksDR8g==
=RUaz
-----END PGP SIGNATURE-----payloadtree c7320a557682fbc08f3d5577c805e57b8251f68c
parent 57a1fe4947fec1e4977cd0a565628d563a2fe629
author Tom Papke <tpapke@palantir.com> 1689780508 +0100
committer Tom Papke <tpapke@palantir.com> 1689780508 +0100

Address comments
uujz  ^https://api.github.com/repos/palantir/atlasdb/commits/645d977d00439c823bf4adff7b63a6f6bedb76e4html_urlShttps://github.com/palantir/atlasdb/commit/645d977d00439c823bf4adff7b63a6f6bedb76e4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/645d977d00439c823bf4adff7b63a6f6bedb76e4/commentsjh  }(login	ToemmscheidJbojd  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jz  &https://api.github.com/users/Toemmschej  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujp  }(j  	Toemmschej  Jbojd  MDQ6VXNlcjQzNjc1NDkwj  4https://avatars.githubusercontent.com/u/43675490?v=4j  h5jz  &https://api.github.com/users/Toemmschej  https://github.com/Toemmschej  0https://api.github.com/users/Toemmsche/followersj  =https://api.github.com/users/Toemmsche/following{/other_user}j  6https://api.github.com/users/Toemmsche/gists{/gist_id}j  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j  4https://api.github.com/users/Toemmsche/subscriptionsj  +https://api.github.com/users/Toemmsche/orgsj  ,https://api.github.com/users/Toemmsche/reposj  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj  Userj  uparents]}(jb  (57a1fe4947fec1e4977cd0a565628d563a2fe629jz  ^https://api.github.com/repos/palantir/atlasdb/commits/57a1fe4947fec1e4977cd0a565628d563a2fe629j  Shttps://github.com/palantir/atlasdb/commit/57a1fe4947fec1e4977cd0a565628d563a2fe629uastats}(totalK6	additionsK	deletionsKufiles](}(jb  (1522dc897a36eda3f1b700a22a62be524baa1b0dfilenameXtimelock-api/src/test/java/com/palantir/atlasdb/timelock/api/ConjureLockRequestTest.javastatusmodifiedj  Kj  K
changesKblob_urlhttps://github.com/palantir/atlasdb/blob/645d977d00439c823bf4adff7b63a6f6bedb76e4/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FConjureLockRequestTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/645d977d00439c823bf4adff7b63a6f6bedb76e4/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FConjureLockRequestTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FConjureLockRequestTest.java?ref=645d977d00439c823bf4adff7b63a6f6bedb76e4patchX
  @@ -35,7 +35,7 @@
 
 public class ConjureLockRequestTest {
     private static final String BASE = "src/test/resources/conjure-lock-request-wire-format/";
-    private static final String OLD_CONJURE_LOCK_REQUEST_FILE = "old";
+    private static final String LEGACY_CONJURE_LOCK_REQUEST_FILE = "old";
     private static final String WITH_METADATA_FILE = "with-metadata";
     private static final boolean REWRITE_JSON_BLOBS = false;
 
@@ -46,7 +46,7 @@ public class ConjureLockRequestTest {
     private static final UUID REQUEST_ID = new UUID(1337, 42);
     private static final int ACQUIRE_TIMEOUT_MS = 100;
     private static final String CLIENT_DESCRIPTION = "client: test, thread: test";
-    private static final OldConjureLockRequest OLD_CONJURE_LOCK_REQUEST = OldConjureLockRequest.builder()
+    private static final LegacyConjureLockRequest LEGACY_CONJURE_LOCK_REQUEST = LegacyConjureLockRequest.builder()
             .requestId(REQUEST_ID)
             .lockDescriptors(ImmutableSet.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4))
             .acquireTimeoutMs(ACQUIRE_TIMEOUT_MS)
@@ -89,15 +89,18 @@ public class ConjureLockRequestTest {
 
     @Test
     public void oldConjureLockRequestSerializesDeserializes() {
-        assertSerializedEquals(OLD_CONJURE_LOCK_REQUEST, OLD_CONJURE_LOCK_REQUEST_FILE);
-        assertDeserializedEquals(OLD_CONJURE_LOCK_REQUEST_FILE, OLD_CONJURE_LOCK_REQUEST, OldConjureLockRequest.class);
+        assertSerializedEquals(LEGACY_CONJURE_LOCK_REQUEST, LEGACY_CONJURE_LOCK_REQUEST_FILE);
+        assertDeserializedEquals(
+                LEGACY_CONJURE_LOCK_REQUEST_FILE, LEGACY_CONJURE_LOCK_REQUEST, LegacyConjureLockRequest.class);
     }
 
-    // Requires excludeEmptyOptionals = true
     @Test
     public void absentMetadataSerializesDeserializes() {
-        assertSerializedEquals(DEFAULT_CONJURE_LOCK_REQUEST, OLD_CONJURE_LOCK_REQUEST_FILE);
-        assertDeserializedEquals(OLD_CONJURE_LOCK_REQUEST_FILE, DEFAULT_CONJURE_LOCK_REQUEST, ConjureLockRequest.class);
+        // Because we use the Conjure configuration "excludeEmptyOptionals = true", we omit fields with empty optionals
+        // during serialization instead of setting them to null.
+        assertSerializedEquals(DEFAULT_CONJURE_LOCK_REQUEST, LEGACY_CONJURE_LOCK_REQUEST_FILE);
+        assertDeserializedEquals(
+                LEGACY_CONJURE_LOCK_REQUEST_FILE, DEFAULT_CONJURE_LOCK_REQUEST, ConjureLockRequest.class);
     }
 
     @Test
@@ -112,13 +115,15 @@ public void presentMetadataSerializesDeserializes() {
 
     @Test
     public void newServerCanHandleMissingMetadata() {
-        assertDeserializedEquals(OLD_CONJURE_LOCK_REQUEST_FILE, DEFAULT_CONJURE_LOCK_REQUEST, ConjureLockRequest.class);
+        assertDeserializedEquals(
+                LEGACY_CONJURE_LOCK_REQUEST_FILE, DEFAULT_CONJURE_LOCK_REQUEST, ConjureLockRequest.class);
     }
 
-    // Possible because we do not use strict objects
     @Test
     public void oldServerCanHandlePresentMetadata() {
-        assertDeserializedEquals(WITH_METADATA_FILE, OLD_CONJURE_LOCK_REQUEST, OldConjureLockRequest.class);
+        // Because we use the Conjure configuration "strictObjects = false", our Conjure objects actually ignore
+        // unknown properties, even on the server side.
+        assertDeserializedEquals(WITH_METADATA_FILE, LEGACY_CONJURE_LOCK_REQUEST, LegacyConjureLockRequest.class);
     }
 
     private static <T> void assertSerializedEquals(T object, String jsonFileName) {u}(jb  (4b6b7e1a40067dbc572e6bd05e38e2b7a38abef2j  Ztimelock-api/src/test/java/com/palantir/atlasdb/timelock/api/LegacyConjureLockRequest.javaj  renamedj  K
j  K	j  Kj  https://github.com/palantir/atlasdb/blob/645d977d00439c823bf4adff7b63a6f6bedb76e4/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FLegacyConjureLockRequest.javaj  https://github.com/palantir/atlasdb/raw/645d977d00439c823bf4adff7b63a6f6bedb76e4/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FLegacyConjureLockRequest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FLegacyConjureLockRequest.java?ref=645d977d00439c823bf4adff7b63a6f6bedb76e4j  XV
  @@ -38,11 +38,11 @@
 import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
-// Copy of Conjure-generated file and prefixed with "Old" to avoid conflicts
+// Copy of Conjure-generated file and prefixed with "Legcacy" to avoid conflicts
 @Unsafe
-@JsonDeserialize(builder = OldConjureLockRequest.Builder.class)
+@JsonDeserialize(builder = LegacyConjureLockRequest.Builder.class)
 @Generated("com.palantir.conjure.java.types.BeanGenerator")
-public final class OldConjureLockRequest {
+public final class LegacyConjureLockRequest {
     private final UUID requestId;
 
     private final Set<ConjureLockDescriptor> lockDescriptors;
@@ -53,7 +53,7 @@ public final class OldConjureLockRequest {
 
     private int memoizedHashCode;
 
-    private OldConjureLockRequest(
+    private LegacyConjureLockRequest(
             UUID requestId,
             Set<ConjureLockDescriptor> lockDescriptors,
             int acquireTimeoutMs,
@@ -90,10 +90,11 @@ public Optional<String> getClientDescription() {
 
     @Override
     public boolean equals(@Nullable Object other) {
-        return this == other || (other instanceof OldConjureLockRequest && equalTo((OldConjureLockRequest) other));
+        return this == other
+                || (other instanceof LegacyConjureLockRequest && equalTo((LegacyConjureLockRequest) other));
     }
 
-    private boolean equalTo(OldConjureLockRequest other) {
+    private boolean equalTo(LegacyConjureLockRequest other) {
         if (this.memoizedHashCode != 0
                 && other.memoizedHashCode != 0
                 && this.memoizedHashCode != other.memoizedHashCode) {
@@ -171,7 +172,7 @@ public static final class Builder {
 
         private Builder() {}
 
-        public Builder from(OldConjureLockRequest other) {
+        public Builder from(LegacyConjureLockRequest other) {
             checkNotBuilt();
             requestId(other.getRequestId());
             lockDescriptors(other.getLockDescriptors());
@@ -251,11 +252,11 @@ private static List<String> addFieldIfMissing(List<String> prev, boolean initial
             return missingFields;
         }
 
-        public OldConjureLockRequest build() {
+        public LegacyConjureLockRequest build() {
             checkNotBuilt();
             this._buildInvoked = true;
             validatePrimitiveFieldsHaveBeenInitialized();
-            return new OldConjureLockRequest(requestId, lockDescriptors, acquireTimeoutMs, clientDescription);
+            return new LegacyConjureLockRequest(requestId, lockDescriptors, acquireTimeoutMs, clientDescription);
         }
 
         private void checkNotBuilt() {previous_filenameWtimelock-api/src/test/java/com/palantir/atlasdb/timelock/api/OldConjureLockRequest.javau}(jb  (e1b7813afcfedd61b6686b1bab138e5f151ea739j  Ltimelock-api/src/test/resources/conjure-lock-request-wire-format/legacy.jsonj  renamedj  K j  K j  K j  https://github.com/palantir/atlasdb/blob/645d977d00439c823bf4adff7b63a6f6bedb76e4/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Flegacy.jsonj  https://github.com/palantir/atlasdb/raw/645d977d00439c823bf4adff7b63a6f6bedb76e4/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Flegacy.jsonj  https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Flegacy.json?ref=645d977d00439c823bf4adff7b63a6f6bedb76e4j  Itimelock-api/src/test/resources/conjure-lock-request-wire-format/old.jsonu}(jb  (b8c7fe17976b2dba7ec9f678d87a104b61a8622dj  Vtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/ConjureTimelockResource.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/645d977d00439c823bf4adff7b63a6f6bedb76e4/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FConjureTimelockResource.javaj  https://github.com/palantir/atlasdb/raw/645d977d00439c823bf4adff7b63a6f6bedb76e4/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FConjureTimelockResource.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FConjureTimelockResource.java?ref=645d977d00439c823bf4adff7b63a6f6bedb76e4j  Xa  @@ -196,7 +196,8 @@ public ListenableFuture<ConjureWaitForLocksResponse> waitForLocks(
     }
 
     private static List<LockDescriptor> fromConjureLockDescriptors(List<ConjureLockDescriptor> lockDescriptors) {
-        ImmutableList.Builder<LockDescriptor> descriptors = ImmutableList.builder();
+        ImmutableList.Builder<LockDescriptor> descriptors =
+                ImmutableList.builderWithExpectedSize(lockDescriptors.size());
         for (ConjureLockDescriptor descriptor : lockDescriptors) {
             descriptors.add(ByteArrayLockDescriptor.of(descriptor.get().asNewByteArray()));
         }u}(jb  (a53bb3d2a880d13bb9bd0d8c9e81026a524a4962j  atimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/645d977d00439c823bf4adff7b63a6f6bedb76e4/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj  https://github.com/palantir/atlasdb/raw/645d977d00439c823bf4adff7b63a6f6bedb76e4/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=645d977d00439c823bf4adff7b63a6f6bedb76e4j  X  @@ -201,9 +201,10 @@ private static Optional<LockRequestMetadata> filterMetadataBasedOnFilteredLocks(
                                 return filteredLocks.contains(lockDescriptor);
                             })
                             .collectToMap();
-                    return filteredLockMetadata.isEmpty()
-                            ? Optional.empty()
-                            : Optional.of(LockRequestMetadata.of(filteredLockMetadata));
+                    if (filteredLocks.isEmpty()) {
+                        return Optional.empty();
+                    }
+                    return Optional.of(LockRequestMetadata.of(filteredLockMetadata));
                 });
     }
 }ueu(4c727de2dc774e5ce448b94c957c04295253bf3e}(sha(4c727de2dc774e5ce448b94c957c04295253bf3enode_idEC_kwDOAjP5fdoAKDRjNzI3ZGUyZGM3NzRlNWNlNDQ4Yjk0Yzk1N2MwNDI5NTI1M2JmM2Ucommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-04-14T11:30:04Zu	committer}(j  David Schlosnaglej  davids@palantir.comj  2023-04-17T19:31:31ZumessageAExplicitly pin guava versions to avoid slow dependency resolutiontree}(j  (4a2211bcdc4ea91fa172109086e18f69f2e5b0bburl`https://api.github.com/repos/palantir/atlasdb/git/trees/4a2211bcdc4ea91fa172109086e18f69f2e5b0bbuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4c727de2dc774e5ce448b94c957c04295253bf3e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmQ9npUACgkQR9hsJ74Q
0l9OFAgAobvfJhOCdsjKS0r3QPN1/OABEJqozCo/pZm0+BSknfYZW9luoxHpMg52
UWaOw2cHycmwvb7ifotmksbNx80v80xSPeDRtbM4lW4NeiuPR31hfFjRzq5bqPqn
d3yD4KpT53s7QWjusXcIWUFIrDxq/xDgoTKAbcOatRpOg6fMUrEgP+F559e74sjm
mGWsEm4OSdeV5g/5i+34f1glrhAHpuvKDKDqQ27wluJlt58zyvX+sUXV6g80sTYq
0CfrlTyNYAqJx3ZQhZzJ3tInuZ+o7LayBx63Y3WSZGpmhsNubg5Ot2a/k+U2hpMR
Cvj0aoQUEBPsUGJqIA2T6GEH1fRlqQ==
=nTzy
-----END PGP SIGNATURE-----payloadX$  tree 4a2211bcdc4ea91fa172109086e18f69f2e5b0bb
parent 0e14f67617dd788589625ee19cec2170efae2ee4
author David Schlosnagle <davids@palantir.com> 1681471804 -0400
committer David Schlosnagle <davids@palantir.com> 1681759891 -0400

Explicitly pin guava versions to avoid slow dependency resolution
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/4c727de2dc774e5ce448b94c957c04295253bf3ehtml_urlShttps://github.com/palantir/atlasdb/commit/4c727de2dc774e5ce448b94c957c04295253bf3ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4c727de2dc774e5ce448b94c957c04295253bf3e/commentsj  }(loginschlosnaidMBj  MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j  %https://api.github.com/users/schlosnaj!  https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj	  }(j&  schlosnaj(  MBj  MDQ6VXNlcjU0NTk0j*  1https://avatars.githubusercontent.com/u/54594?v=4j,  h5j  %https://api.github.com/users/schlosnaj!  https://github.com/schlosnaj/  /https://api.github.com/users/schlosna/followersj1  <https://api.github.com/users/schlosna/following{/other_user}j3  5https://api.github.com/users/schlosna/gists{/gist_id}j5  <https://api.github.com/users/schlosna/starred{/owner}{/repo}j7  3https://api.github.com/users/schlosna/subscriptionsj9  *https://api.github.com/users/schlosna/orgsj;  +https://api.github.com/users/schlosna/reposj=  6https://api.github.com/users/schlosna/events{/privacy}j?  5https://api.github.com/users/schlosna/received_eventsjA  UserjC  uparents]}(j  (0e14f67617dd788589625ee19cec2170efae2ee4j  ^https://api.github.com/repos/palantir/atlasdb/commits/0e14f67617dd788589625ee19cec2170efae2ee4j!  Shttps://github.com/palantir/atlasdb/commit/0e14f67617dd788589625ee19cec2170efae2ee4uastats}(totalK	additionsK	deletionsKufiles]}(j  (a510647b74daa828dda4e74270e1dbeaa363e859filenameversions.propsstatusmodifiedj]  Kj^  KchangesKblob_url`https://github.com/palantir/atlasdb/blob/4c727de2dc774e5ce448b94c957c04295253bf3e/versions.propsraw_url_https://github.com/palantir/atlasdb/raw/4c727de2dc774e5ce448b94c957c04295253bf3e/versions.propscontents_urlrhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=4c727de2dc774e5ce448b94c957c04295253bf3epatchX  @@ -17,7 +17,7 @@ com.google.dagger:* = 2.44.1
 com.google.devtools.ksp:symbol-processing-api = 1.5.21-1.0.0-beta07
 com.google.errorprone:* = 2.10.0 # upgrading to 2.11.0 is blocked by a google bug
 com.google.errorprone:error_prone_annotations = 2.10.0
-com.google.guava:* = 31.1-jre
+com.google.guava:guava = 31.1-jre
 com.google.protobuf:* = 3.21.9
 com.googlecode.protobuf-java-format:* = 1.4
 com.lmax:disruptor = 3.4.2uau(128ff50e96bf0f77b9fed5b057a32f474d2ccc7c}(sha(128ff50e96bf0f77b9fed5b057a32f474d2ccc7cnode_idEC_kwDOAjP5fdoAKDEyOGZmNTBlOTZiZjBmNzdiOWZlZDViMDU3YTMyZjQ3NGQyY2NjN2Mcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-07-24T18:33:30Zu	committer}(jz  GitHubj|  noreply@github.comj~  2023-07-24T18:33:30ZumessageADon't register endpoints when using raw embedded timelock (#6673)tree}(jr  (84f2ffcd4f530edeac30691acda4cc93b9c1497furl`https://api.github.com/repos/palantir/atlasdb/git/trees/84f2ffcd4f530edeac30691acda4cc93b9c1497fuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/128ff50e96bf0f77b9fed5b057a32f474d2ccc7c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkvsP6CRBK7hj4Ov3rIwAAfKYIAEir6Cw4s5BOQqxEZKeMU8bu
KKrwTDgi7mJq6B3VeVLKPBnDogOCSxaJ3DVxDz0V1zrDwVmOwE7M3GUXdOLuDBdY
v7bOFuH1vE9FyGokrWb3bwr+k4cC0mBujWSnIb/Wxi/gdmfDqPQiVqFsz+s16Xbd
ZOz8X9cfJHHCRcEPwRNGF0M7OhWXXE12DPhlws01wrWhZCSRb+Hhk2DT7VSiIXs3
div1KVASApBs7Q31PBRUcJkmFFS1Synf7XBoLV4CxCf7ddLoL2vTX79MKpZaIxNd
MqZmLznq3EGlzbNzFo9Tuvp9joZGSWPsrm0lRKWP2XnhZrHPXF3Pfs8V/FNDzJs=
=RIPx
-----END PGP SIGNATURE-----
payloadX  tree 84f2ffcd4f530edeac30691acda4cc93b9c1497f
parent 1ea8f076c2264a7462fd59c0962fc327f816597f
author Patrick Koenig <pkoenig10@gmail.com> 1690223610 -0700
committer GitHub <noreply@github.com> 1690223610 +0000

Don't register endpoints when using raw embedded timelock (#6673)

 uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/128ff50e96bf0f77b9fed5b057a32f474d2ccc7chtml_urlShttps://github.com/palantir/atlasdb/commit/128ff50e96bf0f77b9fed5b057a32f474d2ccc7ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/128ff50e96bf0f77b9fed5b057a32f474d2ccc7c/commentsjx  }(login	pkoenig10idJLvP jt  MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5j  &https://api.github.com/users/pkoenig10j  https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/jt  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(jr  (1ea8f076c2264a7462fd59c0962fc327f816597fj  ^https://api.github.com/repos/palantir/atlasdb/commits/1ea8f076c2264a7462fd59c0962fc327f816597fj  Shttps://github.com/palantir/atlasdb/commit/1ea8f076c2264a7462fd59c0962fc327f816597fuastats}(totalK	additionsK	deletionsK{ufiles](}(jr  (b173565d678b7b542b83a400be83c1df5712c1cbfilenamedatlasdb-config/src/main/java/com/palantir/atlasdb/factory/DefaultLockAndTimestampServiceFactory.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/128ff50e96bf0f77b9fed5b057a32f474d2ccc7c/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/128ff50e96bf0f77b9fed5b057a32f474d2ccc7c/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java?ref=128ff50e96bf0f77b9fed5b057a32f474d2ccc7cpatchX?  @@ -262,7 +262,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
                     timelockRequestBatcherProviders,
                     knownSchemas);
         } else {
-            return createRawEmbeddedServices(metricsManager, registrar, lock, time);
+            return createRawEmbeddedServices(metricsManager, lock, time);
         }
     }
 
@@ -621,7 +621,6 @@ private static LockAndTimestampServices createRawRemoteServices(
 
     private static LockAndTimestampServices createRawEmbeddedServices(
             MetricsManager metricsManager,
-            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> managedTimestampServiceSupplier) {
         LockService lockService =
@@ -634,10 +633,6 @@ private static LockAndTimestampServices createRawEmbeddedServices(
         TimestampManagementService timestampManagementService = ServiceCreator.instrumentService(
                 metricsManager.getRegistry(), managedTimestampService, TimestampManagementService.class);
 
-        registrar.accept(lockService);
-        registrar.accept(timeService);
-        registrar.accept(timestampManagementService);
-
         return ImmutableLockAndTimestampServices.builder()
                 .lock(lockService)
                 .timestamp(timeService)u}(jr  (90edeba1b42bea88433fe9a153bd7dee8c778e39j  8atlasdb-ete-tests/docker-compose.no-leader.cassandra.ymlj  removedj  K j  K j  K j  https://github.com/palantir/atlasdb/blob/1ea8f076c2264a7462fd59c0962fc327f816597f/atlasdb-ete-tests%2Fdocker-compose.no-leader.cassandra.ymlj  https://github.com/palantir/atlasdb/raw/1ea8f076c2264a7462fd59c0962fc327f816597f/atlasdb-ete-tests%2Fdocker-compose.no-leader.cassandra.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.no-leader.cassandra.yml?ref=1ea8f076c2264a7462fd59c0962fc327f816597fj  Xg  @@ -1,32 +0,0 @@
-version: '2'
-
-services:
-  cassandra:
-    image: palantirtechnologies/docker-cassandra-atlasdb:$CASSANDRA_VERSION
-    ports:
-      - "9160"
-      - "9042"
-      - "7199"
-    environment:
-      - MAX_HEAP_SIZE=$CASSANDRA_MAX_HEAP_SIZE
-      - HEAP_NEWSIZE=$CASSANDRA_HEAP_NEWSIZE
-      - LOCAL_JMX=no
-
-  ete1:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.no-leader.cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console'
-    depends_on:
-      - cassandra
-    environment:
-      - ME=ete1
-    ports:
-      - "3828"
-
-  ete-cli:
-    build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.no-leader.cassandra.client.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
-    environment:
-      - ME=ete1
-    depends_on:
-      - ete1u}(jr  (34ea6c0b5ef5dbd5272880f34171baede31d5a1bj  Hatlasdb-ete-tests/docker/conf/atlasdb-ete.no-leader.cassandra.client.ymlj  removedj  K j  K'j  K'j  https://github.com/palantir/atlasdb/blob/1ea8f076c2264a7462fd59c0962fc327f816597f/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.no-leader.cassandra.client.ymlj  https://github.com/palantir/atlasdb/raw/1ea8f076c2264a7462fd59c0962fc327f816597f/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.no-leader.cassandra.client.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.no-leader.cassandra.client.yml?ref=1ea8f076c2264a7462fd59c0962fc327f816597fj  X  @@ -1,39 +0,0 @@
-server:
-  #rootPath: /api/*
-  #applicationContextPath: /
-  #adminContextPath: /
-  applicationConnectors:
-    - type: http
-      port: 3828
-  adminConnectors:
-    - type: http
-      port: 3829
-
-atlasdb:
-  keyValueService:
-    type: cassandra
-    servers:
-      - cassandra:9160
-    poolSize: 20
-    keyspace: atlasete
-    credentials:
-      username: cassandra
-      password: cassandra
-    ssl: false
-    replicationFactor: 1
-    mutationBatchCount: 10000
-    mutationBatchSizeBytes: 10000000
-    fetchBatchCount: 1000
-    autoRefreshNodes: false
-
-  leader:
-    quorumSize: 1
-    learnerLogDir: var/data/paxosLog/learner1
-    acceptorLogDir: var/data/paxosLog/acceptor1
-    localServer: http://${ME}:3828
-    leaders:
-      - http://ete1:3828
-    sslConfiguration:
-      keyStorePath: "var/security/keyStore.jks"
-      keyStorePassword: "keystore"
-      trustStorePath: "var/security/trustStore.jks"u}(jr  (5717012391f5914faa1531b59bde36cee3aa6a6fj  Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraNoLeaderTestSuite.javaj  removedj  K j  K.j  K.j  https://github.com/palantir/atlasdb/blob/1ea8f076c2264a7462fd59c0962fc327f816597f/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraNoLeaderTestSuite.javaj  https://github.com/palantir/atlasdb/raw/1ea8f076c2264a7462fd59c0962fc327f816597f/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraNoLeaderTestSuite.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraNoLeaderTestSuite.java?ref=1ea8f076c2264a7462fd59c0962fc327f816597fj  X#  @@ -1,46 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.ete;
-
-import com.google.common.collect.ImmutableList;
-import com.palantir.atlasdb.containers.CassandraEnvironment;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import com.palantir.atlasdb.ete.coordination.MultipleSchemaVersionsCoordinationEteTest;
-import org.junit.ClassRule;
-import org.junit.rules.RuleChain;
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-
-@RunWith(Suite.class)
-@Suite.SuiteClasses({
-    TodoEteTest.class,
-    ServiceExposureEteTest.class,
-    CassandraTimestampsEteTest.class,
-    TimestampManagementEteTest.class,
-    CoordinationEteTest.class,
-    MultipleSchemaVersionsCoordinationEteTest.class,
-    LockWithoutTimelockEteTest.class
-})
-public class CassandraNoLeaderTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");
-
-    @ClassRule
-    public static final RuleChain COMPOSITION_SETUP = EteSetup.setupComposition(
-            CassandraNoLeaderTestSuite.class,
-            "docker-compose.no-leader.cassandra.yml",
-            CLIENTS,
-            CassandraEnvironment.get());
-}u}(jr  (cff52dc50fc6337a027d771d49cd4ea9c634d6ecj  $changelog/@unreleased/pr-6673.v2.ymlj  addedj  Kj  K j  Kj  |https://github.com/palantir/atlasdb/blob/128ff50e96bf0f77b9fed5b057a32f474d2ccc7c/changelog%2F%40unreleased%2Fpr-6673.v2.ymlj  {https://github.com/palantir/atlasdb/raw/128ff50e96bf0f77b9fed5b057a32f474d2ccc7c/changelog%2F%40unreleased%2Fpr-6673.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6673.v2.yml?ref=128ff50e96bf0f77b9fed5b057a32f474d2ccc7cj  @@ -0,0 +1,6 @@
+type: feature
+feature:
+  description: AtlasDB no longer register timelock endpoints when using single-node
+    embedded timelock.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6673ueu(50701cbcfb63302a5c097ba8d2dd5b12dc20cec9}(sha(50701cbcfb63302a5c097ba8d2dd5b12dc20cec9node_idEC_kwDOAjP5fdoAKDUwNzAxY2JjZmI2MzMwMmE1YzA5N2JhOGQyZGQ1YjEyZGMyMGNlYzkcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-24T13:56:43Zu	committer}(j  
Sam Kramerj  skramer@palantir.comj  2023-04-24T13:56:43Zumessagelets actually use threadstree}(j	  (a0e0771a24d3c84fa493d8d6e064e650b07313dfurl`https://api.github.com/repos/palantir/atlasdb/git/trees/a0e0771a24d3c84fa493d8d6e064e650b07313dfuj!  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/50701cbcfb63302a5c097ba8d2dd5b12dc20cec9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRGipsACgkQmPPOpKR4
XS2DMQgAx45DbpIYx3JnuANaTlKJ5KgnMx8JlOXz1kjn6k+4mSy6itEFYjl7dNXF
WGy4NTEu9/yogclDWyuBTgOtSCNNSaxHOguL84UZSN/l5awhw5vmVVihwO3Wnqa+
CEHXoLmX5QQilBSB1DmlpaY8qaEK7al9j550XDleznyxyBSkjHOyFRU8GGrvteVZ
JIP0XV2Llbn9CINhPKrteXROsN6joMNtnkMdJNC/NEXKo40kXc94xLKqLzpVBKM8
DZo4LugPtFWz9Hp00TRJjiEIfBmuGmAjGvcvwZB1NVdAmnoVSSquz+HDLEKBJUhs
t2GgOeb/S0S7DFNibvlnFIqkl+GVoA==
=zazV
-----END PGP SIGNATURE-----payloadtree a0e0771a24d3c84fa493d8d6e064e650b07313df
parent cde3f0e4a94e34705ec3f4e0d74ff888155b8f93
author Sam Kramer <skramer@palantir.com> 1682344603 +0100
committer Sam Kramer <skramer@palantir.com> 1682344603 +0100

lets actually use threads
uuj!  ^https://api.github.com/repos/palantir/atlasdb/commits/50701cbcfb63302a5c097ba8d2dd5b12dc20cec9html_urlShttps://github.com/palantir/atlasdb/commit/50701cbcfb63302a5c097ba8d2dd5b12dc20cec9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/50701cbcfb63302a5c097ba8d2dd5b12dc20cec9/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j!  'https://api.github.com/users/Sam-Kramerj/  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j4  
Sam-Kramerj6  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=j8  3https://avatars.githubusercontent.com/u/6238814?v=4j:  h5j!  'https://api.github.com/users/Sam-Kramerj/  https://github.com/Sam-Kramerj=  1https://api.github.com/users/Sam-Kramer/followersj?  >https://api.github.com/users/Sam-Kramer/following{/other_user}jA  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jC  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jE  5https://api.github.com/users/Sam-Kramer/subscriptionsjG  ,https://api.github.com/users/Sam-Kramer/orgsjI  -https://api.github.com/users/Sam-Kramer/reposjK  8https://api.github.com/users/Sam-Kramer/events{/privacy}jM  7https://api.github.com/users/Sam-Kramer/received_eventsjO  UserjQ  uparents]}(j	  (cde3f0e4a94e34705ec3f4e0d74ff888155b8f93j!  ^https://api.github.com/repos/palantir/atlasdb/commits/cde3f0e4a94e34705ec3f4e0d74ff888155b8f93j/  Shttps://github.com/palantir/atlasdb/commit/cde3f0e4a94e34705ec3f4e0d74ff888155b8f93uastats}(totalK	additionsK	deletionsK ufiles]}(j	  (87c67b5df91f3feb3532e6811d91c8939eb5432cfilenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedjk  Kjl  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/50701cbcfb63302a5c097ba8d2dd5b12dc20cec9/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/50701cbcfb63302a5c097ba8d2dd5b12dc20cec9/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=50701cbcfb63302a5c097ba8d2dd5b12dc20cec9patchX7  @@ -85,6 +85,7 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         ExecutorService singleRowTwoCellsExecutorService = environment
                 .lifecycle()
                 .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
+                .maxThreads(1024)
                 .build();
         MetricsManager metricsManager = MetricsManagers.of(environment.metrics(), taggedMetricRegistry);
         AtlasDbTransactionStoreFactory transactionStoreFactory = AtlasDbTransactionStoreFactory.createFromConfig(uau(a9991c18e0bcb2a0729a21d6568df6bf7ba3e3a1}(sha(a9991c18e0bcb2a0729a21d6568df6bf7ba3e3a1node_idEC_kwDOAjP5fdoAKGE5OTkxYzE4ZTBiY2IyYTA3MjlhMjFkNjU2OGRmNmJmN2JhM2UzYTEcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-04-26T01:39:52Zu	committer}(j  GitHubj  noreply@github.comj  2023-04-26T01:39:52Zumessage%Excavator:  Format Java files (#6523)tree}(j  (8e7113824bef259cd450dd53e115b3e4a59e3915url`https://api.github.com/repos/palantir/atlasdb/git/trees/8e7113824bef259cd450dd53e115b3e4a59e3915uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a9991c18e0bcb2a0729a21d6568df6bf7ba3e3a1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkSIDoCRBK7hj4Ov3rIwAAhZwIABiMp1Xf9FDzysvPJSD2gNil
6qsNPDRYMjryajS+bdCK1ytBfVyF+JjUaE0/V98tRUqr7XyJQuqnp6fCm56hzL+E
XCg4JjJKQJ3TqbztMNqHT/YJpJo4kt41X+ZxBaiQXMK/ZODoaasSthGDUxNHSBGa
zMaQOFOyAN8mF6FVLSGWqQsYAs82tDArqHu5VXNfOcAdrybpbh4zQqgjTnuruJcL
9UgTv8FNDuziEdmloIOyoRBTV75Aa3fulYWfWvvhMkOq5g5vyjgwth0BRpafoHkW
zpa1yfXLoQxNBgYQbPvRnfyXOiVX02B/yB9UzvKkmui+PtjUwj+9k2xN1tdgkGQ=
=8PA5
-----END PGP SIGNATURE-----
payloadX  tree 8e7113824bef259cd450dd53e115b3e4a59e3915
parent 0e042c5db32fd526cc9e1506788bee2cda4f3a43
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1682473192 +0100
committer GitHub <noreply@github.com> 1682473192 +0000

Excavator:  Format Java files (#6523)

 uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/a9991c18e0bcb2a0729a21d6568df6bf7ba3e3a1html_urlShttps://github.com/palantir/atlasdb/commit/a9991c18e0bcb2a0729a21d6568df6bf7ba3e3a1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a9991c18e0bcb2a0729a21d6568df6bf7ba3e3a1/commentsj  }(loginsvc-excavator-botidJj  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j  .https://api.github.com/users/svc-excavator-botj  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j  (0e042c5db32fd526cc9e1506788bee2cda4f3a43j  ^https://api.github.com/repos/palantir/atlasdb/commits/0e042c5db32fd526cc9e1506788bee2cda4f3a43j  Shttps://github.com/palantir/atlasdb/commit/0e042c5db32fd526cc9e1506788bee2cda4f3a43uastats}(totalK	additionsK	deletionsKufiles]}(j  (fd74865ae5dbce637d1193e9c89e5bfa0e17c398filenamebuild.gradlestatusmodifiedj  Kj  KchangesKblob_url^https://github.com/palantir/atlasdb/blob/a9991c18e0bcb2a0729a21d6568df6bf7ba3e3a1/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/a9991c18e0bcb2a0729a21d6568df6bf7ba3e3a1/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=a9991c18e0bcb2a0729a21d6568df6bf7ba3e3a1patchXw  @@ -17,7 +17,7 @@ buildscript {
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.30.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
         classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'uau(2e052d36ee9ed8a772e6f7639e03e42f95f4d9b7}(sha(2e052d36ee9ed8a772e6f7639e03e42f95f4d9b7node_idEC_kwDOAjP5fdoAKDJlMDUyZDM2ZWU5ZWQ4YTc3MmU2Zjc2MzllMDNlNDJmOTVmNGQ5Yjccommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-02-27T13:44:06Zu	committer}(j  
Sam Kramerj  skramer@palantir.comj  2023-02-27T13:44:06Zumessage
intellij woestree}(j  (ed496e9ef251709f44df6c990d779f021c7b83f4url`https://api.github.com/repos/palantir/atlasdb/git/trees/ed496e9ef251709f44df6c990d779f021c7b83f4uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2e052d36ee9ed8a772e6f7639e03e42f95f4d9b7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmP8s6YACgkQmPPOpKR4
XS2CIggAxjcgKrM5Hh78+Ab1hVkPOxWeD/QCCtH/ggiyygc5CkxC1NMA2NgW/N6E
msrpVOq1v9PfN2rYjMT6rKOK2CHu1mfee/wlCiJLc94RFN/QrWJMwnVmMVct2NJ/
zrYHchgYatiwxssUz4SGE8vWSP8THuYlJzAEbxoDXfAIcqS2XBNJu9CtW8HJbc4v
Qm2+/kiXZ7A8ciCdIqUDChRUlm4pqG/2ZoNyCsH3QaOdEWXhzStMHT4EVzpkbRXi
3bNwmJqSlhuIg1OS1RKGOnkhiUQ3gNwTHXkJ4F9GWL1njbRTjXHxx0CPBnZbLNbf
zoBnkO8j7Fvr0HZdJzEFKznd3NcPEQ==
=jjcu
-----END PGP SIGNATURE-----payloadtree ed496e9ef251709f44df6c990d779f021c7b83f4
parent 45b74da0decdebdd8612eb6fb4a4117041cbe46a
author Sam Kramer <skramer@palantir.com> 1677505446 +0000
committer Sam Kramer <skramer@palantir.com> 1677505446 +0000

intellij woes
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/2e052d36ee9ed8a772e6f7639e03e42f95f4d9b7html_urlShttps://github.com/palantir/atlasdb/commit/2e052d36ee9ed8a772e6f7639e03e42f95f4d9b7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2e052d36ee9ed8a772e6f7639e03e42f95f4d9b7/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j"  
Sam-Kramerj$  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=j&  3https://avatars.githubusercontent.com/u/6238814?v=4j(  h5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj+  1https://api.github.com/users/Sam-Kramer/followersj-  >https://api.github.com/users/Sam-Kramer/following{/other_user}j/  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j1  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j3  5https://api.github.com/users/Sam-Kramer/subscriptionsj5  ,https://api.github.com/users/Sam-Kramer/orgsj7  -https://api.github.com/users/Sam-Kramer/reposj9  8https://api.github.com/users/Sam-Kramer/events{/privacy}j;  7https://api.github.com/users/Sam-Kramer/received_eventsj=  Userj?  uparents]}(j  (45b74da0decdebdd8612eb6fb4a4117041cbe46aj  ^https://api.github.com/repos/palantir/atlasdb/commits/45b74da0decdebdd8612eb6fb4a4117041cbe46aj  Shttps://github.com/palantir/atlasdb/commit/45b74da0decdebdd8612eb6fb4a4117041cbe46auastats}(totalK	additionsK 	deletionsKufiles]}(j  (739c4fc897f1565734993e27a768c77c15e97138filenameQatlasdb-commons/src/main/java/com/palantir/exception/NotInitializedException.javastatusmodifiedjY  K jZ  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/2e052d36ee9ed8a772e6f7639e03e42f95f4d9b7/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2e052d36ee9ed8a772e6f7639e03e42f95f4d9b7/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.java?ref=2e052d36ee9ed8a772e6f7639e03e42f95f4d9b7patchX  @@ -20,7 +20,6 @@
 import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.SafeLoggable;
-
 import java.util.List;
 
 public class NotInitializedException extends AtlasDbDependencyException implements SafeLoggable {uau_     (fbb9a1ec7f4df11d5143c74ea3874843b379e789}(sha(fbb9a1ec7f4df11d5143c74ea3874843b379e789node_idEC_kwDOAjP5fdoAKGZiYjlhMWVjN2Y0ZGYxMWQ1MTQzYzc0ZWEzODc0ODQzYjM3OWU3ODkcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-05-15T15:25:38Zu	committer}(jv  
svc-changelogjx  svc-changelog@palantir.comjz  2023-05-15T15:25:38ZumessageAdd generated changelog entriestree}(jn  (35ca53cd30ded47147dfde89da89bcdc4930af26url`https://api.github.com/repos/palantir/atlasdb/git/trees/35ca53cd30ded47147dfde89da89bcdc4930af26uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fbb9a1ec7f4df11d5143c74ea3874843b379e789
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmRiTvIJEHYaJX37fAFQAADqIwEA0QOhNDxJRJ/2H6MqYqvB3bto
9OxhJITqdITwj6mQtTcBAPvDH5bQhuJrlPXOMtWX0AeRpwYj+DwkpICxMBx5gXRG
=Fdfa
-----END PGP SIGNATURE-----payloadX  tree 35ca53cd30ded47147dfde89da89bcdc4930af26
parent 76351d395490aed06e6dc553b508e77d800761b6
author svc-changelog <svc-changelog@palantir.com> 1684164338 +0000
committer svc-changelog <svc-changelog@palantir.com> 1684164338 +0000

Add generated changelog entriesuuj  ^https://api.github.com/repos/palantir/atlasdb/commits/fbb9a1ec7f4df11d5143c74ea3874843b379e789html_urlShttps://github.com/palantir/atlasdb/commit/fbb9a1ec7f4df11d5143c74ea3874843b379e789comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fbb9a1ec7f4df11d5143c74ea3874843b379e789/commentsjt  }(login
svc-changelogidJ#jp  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j  *https://api.github.com/users/svc-changelogj   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj|  }(j  
svc-changelogj  J#jp  MDQ6VXNlcjg0MDc3NjAzj  4https://avatars.githubusercontent.com/u/84077603?v=4j  h5j  *https://api.github.com/users/svc-changelogj   https://github.com/svc-changelogj  4https://api.github.com/users/svc-changelog/followersj  Ahttps://api.github.com/users/svc-changelog/following{/other_user}j  :https://api.github.com/users/svc-changelog/gists{/gist_id}j  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j  8https://api.github.com/users/svc-changelog/subscriptionsj  /https://api.github.com/users/svc-changelog/orgsj  0https://api.github.com/users/svc-changelog/reposj  ;https://api.github.com/users/svc-changelog/events{/privacy}j  :https://api.github.com/users/svc-changelog/received_eventsj  Userj  uparents]}(jn  (76351d395490aed06e6dc553b508e77d800761b6j  ^https://api.github.com/repos/palantir/atlasdb/commits/76351d395490aed06e6dc553b508e77d800761b6j  Shttps://github.com/palantir/atlasdb/commit/76351d395490aed06e6dc553b508e77d800761b6uastats}(totalK	additionsK	deletionsK ufiles]}(jn  (8dec3b76640ffbcc9b9795bc2408b874d1f25be9filename$changelog/@unreleased/pr-6569.v2.ymlstatusaddedj  Kj  K changesKblob_url|https://github.com/palantir/atlasdb/blob/fbb9a1ec7f4df11d5143c74ea3874843b379e789/changelog%2F%40unreleased%2Fpr-6569.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/fbb9a1ec7f4df11d5143c74ea3874843b379e789/changelog%2F%40unreleased%2Fpr-6569.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6569.v2.yml?ref=fbb9a1ec7f4df11d5143c74ea3874843b379e789patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[CBT] Split test into multiple workflows'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6569uau(7ad8c3c238e29fe892676dc377e356481d3fd67f}(sha(7ad8c3c238e29fe892676dc377e356481d3fd67fnode_idEC_kwDOAjP5fdoAKDdhZDhjM2MyMzhlMjlmZTg5MjY3NmRjMzc3ZTM1NjQ4MWQzZmQ2N2Ycommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-23T12:47:05Zu	committer}(j  
Sam Kramerj  skramer@palantir.comj  2023-06-23T12:47:05Zumessage#compact / flush have proper shebangtree}(j  (ba58cbcd65a43c6f9779bdb5f9c62e4f25105a6burl`https://api.github.com/repos/palantir/atlasdb/git/trees/ba58cbcd65a43c6f9779bdb5f9c62e4f25105a6buj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7ad8c3c238e29fe892676dc377e356481d3fd67f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSVlEkACgkQmPPOpKR4
XS2AyAgAuxsTrOcg9+jArkFcfS4tCZwApRDeZZT0LmrxrDN4ywnkzIODYrLtfSx1
VPBAtC1mVhDpVUpw+8tswY+54MvxZtn32YUZzSFMjFLa+76iXhgrkriqqWBI/5sT
LXXBnaOnQZAyI3YTx1hzoDwhhILiQqW5Xe3+6/MmLtNUtOxAN4xIt0VGV6uGKzAD
3YTDRtUrPJzIBx6LCo7ayyi6NXH++zPWMh/kUZlRMwR6BgVDjhqo+V3Ablw5dPDQ
c72KHmf6IHqTThbcLXf02D2l6jkZCM8kTmOqUBowU07tl/arOXkh3nIbnRvxCVFd
wqMzsTh6J2PhA3UNljClNvjjgXZDJw==
=gBcz
-----END PGP SIGNATURE-----payloadtree ba58cbcd65a43c6f9779bdb5f9c62e4f25105a6b
parent 84bd2ee3686bc6bfd7e8497a8efd48454fd861d9
author Sam Kramer <skramer@palantir.com> 1687524425 +0100
committer Sam Kramer <skramer@palantir.com> 1687524425 +0100

compact / flush have proper shebang
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/7ad8c3c238e29fe892676dc377e356481d3fd67fhtml_urlShttps://github.com/palantir/atlasdb/commit/7ad8c3c238e29fe892676dc377e356481d3fd67fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7ad8c3c238e29fe892676dc377e356481d3fd67f/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j  
Sam-Kramerj  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j  h5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj  1https://api.github.com/users/Sam-Kramer/followersj  >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j!  5https://api.github.com/users/Sam-Kramer/subscriptionsj#  ,https://api.github.com/users/Sam-Kramer/orgsj%  -https://api.github.com/users/Sam-Kramer/reposj'  8https://api.github.com/users/Sam-Kramer/events{/privacy}j)  7https://api.github.com/users/Sam-Kramer/received_eventsj+  Userj-  uparents]}(j  (84bd2ee3686bc6bfd7e8497a8efd48454fd861d9j  ^https://api.github.com/repos/palantir/atlasdb/commits/84bd2ee3686bc6bfd7e8497a8efd48454fd861d9j  Shttps://github.com/palantir/atlasdb/commit/84bd2ee3686bc6bfd7e8497a8efd48454fd861d9uastats}(totalK	additionsK	deletionsKufiles](}(j  (8e01dc169dd1d074d67132ff3814a65e9ef487f0filename1atlasdb-workload-server-antithesis/var/compact.shstatusmodifiedjG  KjH  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7ad8c3c238e29fe892676dc377e356481d3fd67f/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shraw_urlhttps://github.com/palantir/atlasdb/raw/7ad8c3c238e29fe892676dc377e356481d3fd67f/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.sh?ref=7ad8c3c238e29fe892676dc377e356481d3fd67fpatch}@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 ##
 # (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.u}(j  (f91ee5ba5579e07f5e1e9948bf32e02918dd8185jM  /atlasdb-workload-server-antithesis/var/flush.shjO  modifiedjG  KjH  KjQ  KjR  https://github.com/palantir/atlasdb/blob/7ad8c3c238e29fe892676dc377e356481d3fd67f/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shjT  https://github.com/palantir/atlasdb/raw/7ad8c3c238e29fe892676dc377e356481d3fd67f/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shjV  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fflush.sh?ref=7ad8c3c238e29fe892676dc377e356481d3fd67fjX  }@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 ##
 # (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.ueu(767ed7851feaefcd212104e0aa7b899cd8f207b7}(sha(767ed7851feaefcd212104e0aa7b899cd8f207b7node_idEC_kwDOAjP5fdoAKDc2N2VkNzg1MWZlYWVmY2QyMTIxMDRlMGFhN2I4OTljZDhmMjA3Yjccommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-06T19:40:26Zu	committer}(jl  Jeremy Kongjn  jkong@palantir.comjp  2023-06-06T19:40:26ZumessageMore testingtree}(jd  (4f15d44b9d87f5ed17e8f6b3a36c90cbd4ce45caurl`https://api.github.com/repos/palantir/atlasdb/git/trees/4f15d44b9d87f5ed17e8f6b3a36c90cbd4ce45cauj|  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/767ed7851feaefcd212104e0aa7b899cd8f207b7
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR/i6oACgkQTLdFKain
zjydKggAkzy1CuAxY67A5KqLFXA2kAIFk3GKW/KF+kfvRcEHq33V4E3nO3KfltRY
ymJKjVkBtx5cwuzOTLZ2H8zxVNDf1W96vBn1oVXaEmZcE0Rd5G1vx4KctE5emMvR
o0mDYnmearY0Mvqo75yFESwnVMmKCHkP/XfTIzjzJ8y5I0SJycRIB72PkiRB5t+P
Fq8iuybXXrlBUOy4s5ZpWKY/P/nZ9JkMfg7H05PtfhqgLOA8ZHbIVxdzASySlvIe
thgQQdZg9j3gF5utRSw6t4cbaeDju/31HYSn/6HSxqyon3zTy2I2NFLaBQni0jYz
9yQEVqg1QR/nSjScKhEr1MUiho+NkQ==
=d12R
-----END PGP SIGNATURE-----payloadtree 4f15d44b9d87f5ed17e8f6b3a36c90cbd4ce45ca
parent 28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5f
author Jeremy Kong <jkong@palantir.com> 1686080426 +0100
committer Jeremy Kong <jkong@palantir.com> 1686080426 +0100

More testing
uuj|  ^https://api.github.com/repos/palantir/atlasdb/commits/767ed7851feaefcd212104e0aa7b899cd8f207b7html_urlShttps://github.com/palantir/atlasdb/commit/767ed7851feaefcd212104e0aa7b899cd8f207b7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/767ed7851feaefcd212104e0aa7b899cd8f207b7/commentsjj  }(login
jeremyk-91idJZ jf  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j|  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujr  }(j  
jeremyk-91j  JZ jf  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5j|  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents]}(jd  (28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5fj|  ^https://api.github.com/repos/palantir/atlasdb/commits/28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5fj  Shttps://github.com/palantir/atlasdb/commit/28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5fuastats}(totalKc	additionsK^	deletionsKufiles](}(jd  (4c7f8532708ff0c28bb96abdd924c2e935a0a455filenamehatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/767ed7851feaefcd212104e0aa7b899cd8f207b7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaraw_urlhttps://github.com/palantir/atlasdb/raw/767ed7851feaefcd212104e0aa7b899cd8f207b7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=767ed7851feaefcd212104e0aa7b899cd8f207b7patchX  @@ -64,7 +64,7 @@ private static final class SerializableInvariantVisitor
             implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
 
         private final InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
-        private final RangeQueryReader rangeQueryReader = new SimpleRangeQueryReader(inMemoryTransactionReplayer);
+        private final RangeQueryReader rangeQueryReader = SimpleRangeQueryReader.create(inMemoryTransactionReplayer);
 
         @Override
         public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {u}(jd  (4dfac264225b5f4676a57b5b2d57a192de1380a3j  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReader.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/767ed7851feaefcd212104e0aa7b899cd8f207b7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj  https://github.com/palantir/atlasdb/raw/767ed7851feaefcd212104e0aa7b899cd8f207b7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.java?ref=767ed7851feaefcd212104e0aa7b899cd8f207b7j  X  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.logsafe.SafeArg;
@@ -25,21 +26,27 @@
 import io.vavr.collection.Map;
 import java.util.List;
 import java.util.Optional;
+import java.util.function.Supplier;
 
 public final class SimpleRangeQueryReader implements RangeQueryReader {
     private static final SafeLogger log = SafeLoggerFactory.get(SimpleRangeQueryReader.class);
 
     private static final int LARGE_HISTORY_LIMIT = 30_000;
 
-    private final InMemoryTransactionReplayer transactionReplayer;
+    private final Supplier<Map<TableAndWorkloadCell, Optional<Integer>>> rawValueSupplier;
 
-    public SimpleRangeQueryReader(InMemoryTransactionReplayer transactionReplayer) {
-        this.transactionReplayer = transactionReplayer;
+    @VisibleForTesting
+    SimpleRangeQueryReader(Supplier<Map<TableAndWorkloadCell, Optional<Integer>>> rawValueSupplier) {
+        this.rawValueSupplier = rawValueSupplier;
+    }
+
+    public static RangeQueryReader create(InMemoryTransactionReplayer replayer) {
+        return new SimpleRangeQueryReader(replayer::getValues);
     }
 
     @Override
     public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction) {
-        Map<TableAndWorkloadCell, Optional<Integer>> allValues = transactionReplayer.getValues();
+        Map<TableAndWorkloadCell, Optional<Integer>> allValues = rawValueSupplier.get();
         if (allValues.size() > LARGE_HISTORY_LIMIT) {
             log.error(
                     "Attempted to do range queries in a simple way, even though the history is large ({} entries)! If"
@@ -65,6 +72,7 @@ public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTrans
                         entry._2()
                                 .orElseThrow(() -> new SafeRuntimeException(
                                         "Empty values should already have been filtered out!"))))
+                .sortBy(ColumnValue::column)
                 .toJavaList();
     }
 }u}(jd  (d694bed206c3ee3370285a42b80c32785c5eb985j  oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReaderTest.javaj  addedj  KQj  K j  KQj  https://github.com/palantir/atlasdb/blob/767ed7851feaefcd212104e0aa7b899cd8f207b7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj  https://github.com/palantir/atlasdb/raw/767ed7851feaefcd212104e0aa7b899cd8f207b7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.java?ref=767ed7851feaefcd212104e0aa7b899cd8f207b7j  X  @@ -0,0 +1,81 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.Optional;
+import org.junit.Test;
+
+public class SimpleRangeQueryReaderTest {
+    private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> valueMap =
+            StructureHolder.create(HashMap::empty);
+    private final SimpleRangeQueryReader reader = new SimpleRangeQueryReader(valueMap::getSnapshot);
+
+    @Test
+    public void doesNotReadCellsFromDifferentTable() {
+        valueMap.with(map -> map.put(
+                TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
+                Optional.of(WorkloadTestHelpers.VALUE_ONE)));
+        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_2)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                        .columnRangeSelection(ColumnRangeSelection.builder().build())
+                        .build()))
+                .isEmpty();
+    }
+
+    @Test
+    public void doesNotReadCellsFromDifferentRow() {
+        valueMap.with(map -> map.put(
+                TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
+                Optional.of(WorkloadTestHelpers.VALUE_ONE)));
+        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
+                        .columnRangeSelection(ColumnRangeSelection.builder().build())
+                        .build()))
+                .isEmpty();
+    }
+
+    @Test
+    public void readsCellsFromRangeInOrder() {
+        for (int column = 0; column < 10; column++) {
+            int finalColumn = column;
+            valueMap.with(map -> map.put(
+                    TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, ImmutableWorkloadCell.of(1, finalColumn)),
+                    Optional.of(WorkloadTestHelpers.VALUE_ONE)));
+        }
+        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(1)
+                        .columnRangeSelection(ColumnRangeSelection.builder()
+                                .startColumnInclusive(2)
+                                .endColumnExclusive(4)
+                                .build())
+                        .build()))
+                .containsExactly(
+                        ColumnValue.of(2, WorkloadTestHelpers.VALUE_ONE),
+                        ColumnValue.of(3, WorkloadTestHelpers.VALUE_ONE));
+    }
+}ueu(49e00af92484798a532bcca40356ad27ebbcc9e8}(sha(49e00af92484798a532bcca40356ad27ebbcc9e8node_idEC_kwDOAjP5fdoAKDQ5ZTAwYWY5MjQ4NDc5OGE1MzJiY2NhNDAzNTZhZDI3ZWJiY2M5ZTgcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-09T16:28:47Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-05-09T16:28:47Zumessagespotlesstree}(j  (db94b88784dd8339674b86c88c7de9b92f049888url`https://api.github.com/repos/palantir/atlasdb/git/trees/db94b88784dd8339674b86c88c7de9b92f049888uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/49e00af92484798a532bcca40356ad27ebbcc9e8
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRadL8ACgkQTLdFKain
zjzhygf/bNUnl3hwi2p2nlpecx14yIEee+xKzJDvK9cgSO+rChLxJKrEolnKTukD
YW07eyt7IgdqMlTJT82Q3q277keg3ObbbmsjFLABHSNPtLI3RIqeIZvUVjphtX0a
mYAHiV8RYgha8tSugoZYL6F5rf/gIja5anI4c8IkiemjC9eg/DakZkKfYzThF6Kk
LAwsfl3Dmbr0HSbMS+ZAe3ssZFFlnvoBzT4OF9EMjN2iosss0a+UY9LT5tp+cYc8
0C9CAQivDMAHhkAPF/SxgQUa1N0UIt3McXQ0sIFW04DFsfekSCg6Xnmo5LDdM59P
958wzj3pwsENX44UNVInjL6JwZePdg==
=QIaB
-----END PGP SIGNATURE-----payloadtree db94b88784dd8339674b86c88c7de9b92f049888
parent 76d935a200ac8692f41b5f97061c9dbbdbd56492
author Jeremy Kong <jkong@palantir.com> 1683649727 +0100
committer Jeremy Kong <jkong@palantir.com> 1683649727 +0100

spotless
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/49e00af92484798a532bcca40356ad27ebbcc9e8html_urlShttps://github.com/palantir/atlasdb/commit/49e00af92484798a532bcca40356ad27ebbcc9e8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/49e00af92484798a532bcca40356ad27ebbcc9e8/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j  
jeremyk-91j  JZ j  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj!  >https://api.github.com/users/jeremyk-91/following{/other_user}j#  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j%  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j'  5https://api.github.com/users/jeremyk-91/subscriptionsj)  ,https://api.github.com/users/jeremyk-91/orgsj+  -https://api.github.com/users/jeremyk-91/reposj-  8https://api.github.com/users/jeremyk-91/events{/privacy}j/  7https://api.github.com/users/jeremyk-91/received_eventsj1  Userj3  uparents]}(j  (76d935a200ac8692f41b5f97061c9dbbdbd56492j  ^https://api.github.com/repos/palantir/atlasdb/commits/76d935a200ac8692f41b5f97061c9dbbdbd56492j  Shttps://github.com/palantir/atlasdb/commit/76d935a200ac8692f41b5f97061c9dbbdbd56492uastats}(totalK	additionsK	deletionsKufiles]}(j  (1926ba4ded622aa9fbfde697ed803a0543ddf1b5filenameClock-api/src/test/java/com/palantir/lock/LockServerOptionsTest.javastatusmodifiedjM  KjN  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/49e00af92484798a532bcca40356ad27ebbcc9e8/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/49e00af92484798a532bcca40356ad27ebbcc9e8/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.java?ref=49e00af92484798a532bcca40356ad27ebbcc9e8patchX  @@ -50,7 +50,8 @@ public void serializationContainsIsStandaloneServerExplicitly() throws Exception
     @Test
     public void serializationIsInverseOfDeserialization() throws JsonProcessingException {
         assertSerializationIsInverseOfDeserialization(NON_STANDALONE_OPTIONS);
-        assertSerializationIsInverseOfDeserialization(LockServerOptions.builder().build());
+        assertSerializationIsInverseOfDeserialization(
+                LockServerOptions.builder().build());
     }
 
     @Testuau(2852a25d67bcdcaaf6aed336b5fb3fa23746b0c1}(sha(2852a25d67bcdcaaf6aed336b5fb3fa23746b0c1node_idEC_kwDOAjP5fdoAKDI4NTJhMjVkNjdiY2RjYWFmNmFlZDMzNmI1ZmIzZmEyMzc0NmIwYzEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-31T19:48:16Zu	committer}(jj  Jeremy Kongjl  jkong@palantir.comjn  2023-05-31T19:48:16Zumessage!cross check and disarm the slidestree}(jb  (db1ad1014d5aa05444f26d70112745fcba3fe519url`https://api.github.com/repos/palantir/atlasdb/git/trees/db1ad1014d5aa05444f26d70112745fcba3fe519ujz  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2852a25d67bcdcaaf6aed336b5fb3fa23746b0c1
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR3pIAACgkQTLdFKain
zjwwqwgAhP8I5nKHWqNnRf2bVkbxeda8e/02p8SijjOZtl24fXhVdWP6BgVZEa4Q
fPg53AXK3is8mnw2CHGhQyGQHtXkE0sfL1hYQKg53WmnBjww6/L2Nhz9OlLF6erE
kFGmuHI54cEow7lqtj64JV9mGXH6WCXZ+/YhWmPuE3KQb3qglK3HNNlLH0zUHYVi
n/DJuEpWG1qxkVnXDWFVyllpu2M2MM7Az+0cDPAjBKfsQdJyHSk1AbK3LJYSnlyi
bVfAnorL3bxCRKh6pheCvhyyPdSLpCwNnxVboIbGU+kDu8aLVSDrE3Ooq09CDT6X
1oBkhc1LAoRtr0z9OWcCj0G/C+jGdw==
=ZViy
-----END PGP SIGNATURE-----payloadtree db1ad1014d5aa05444f26d70112745fcba3fe519
parent 5b1d8f7aca163d24d017e12af916e7c4af87b7a6
author Jeremy Kong <jkong@palantir.com> 1685562496 +0100
committer Jeremy Kong <jkong@palantir.com> 1685562496 +0100

cross check and disarm the slides
uujz  ^https://api.github.com/repos/palantir/atlasdb/commits/2852a25d67bcdcaaf6aed336b5fb3fa23746b0c1html_urlShttps://github.com/palantir/atlasdb/commit/2852a25d67bcdcaaf6aed336b5fb3fa23746b0c1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2852a25d67bcdcaaf6aed336b5fb3fa23746b0c1/commentsjh  }(login
jeremyk-91idJZ jd  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jz  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujp  }(j  
jeremyk-91j  JZ jd  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5jz  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents]}(jb  (5b1d8f7aca163d24d017e12af916e7c4af87b7a6jz  ^https://api.github.com/repos/palantir/atlasdb/commits/5b1d8f7aca163d24d017e12af916e7c4af87b7a6j  Shttps://github.com/palantir/atlasdb/commit/5b1d8f7aca163d24d017e12af916e7c4af87b7a6uastats}(totalK	additionsK	deletionsKufiles](}(jb  (9002a5ed3382a35694d630c784b417cd15befa46filenamehatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/2852a25d67bcdcaaf6aed336b5fb3fa23746b0c1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2852a25d67bcdcaaf6aed336b5fb3fa23746b0c1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=2852a25d67bcdcaaf6aed336b5fb3fa23746b0c1patchXA  @@ -38,6 +38,7 @@
 import java.security.SecureRandom;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Objects;
 import java.util.Optional;
 import java.util.Set;
 import java.util.stream.Collectors;
@@ -141,10 +142,12 @@ private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActi
                 .orElseThrow(() -> new SafeIllegalStateException(
                         "Expected to find a read of the summary row", SafeArg.of("actions", actions)));
         WitnessedReadTransactionAction normalRowRead = readTransactionActions.stream()
-                .filter(action -> action.cell().key() != SUMMARY_ROW)
+                .filter(action -> Objects.equals(
+                                action.cell().key(), summaryRowRead.cell().column())
+                        && action.cell().column() == COLUMN)
                 .findAny()
                 .orElseThrow(() -> new SafeIllegalStateException(
-                        "Expected to find a read of a normal row", SafeArg.of("actions", actions)));
+                        "Expected to find a read of a corresponding normal row", SafeArg.of("actions", actions)));
         if (!summaryRowRead.value().equals(normalRowRead.value())) {
             return Stream.of(CrossCellInconsistency.builder()
                     .putInconsistentValues(u}(jb  (5b7d3d84e4800b135d04dea80f3e7924009a9efdj  latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/2852a25d67bcdcaaf6aed336b5fb3fa23746b0c1/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj  https://github.com/palantir/atlasdb/raw/2852a25d67bcdcaaf6aed336b5fb3fa23746b0c1/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=2852a25d67bcdcaaf6aed336b5fb3fa23746b0c1j  X  @@ -41,8 +41,10 @@
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.stream.Collectors;
@@ -185,7 +187,25 @@ public void invariantReportsViolationsFromTransactionHistory() {
                 .build();
         invariant.accept(falseHistory, reference::set);
 
-        assertThat(reference.get()).hasSize(ITERATION_COUNT - 1);
+        assertThat(reference.get())
+                .hasSize(ITERATION_COUNT - 1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    private static void inconsistencyInvolvesPairOfPrimaryAndSummaryCells(CrossCellInconsistency inconsistency) {
+        Map<TableAndWorkloadCell, Optional<Integer>> readValues = inconsistency.inconsistentValues();
+        TableAndWorkloadCell summaryCell = readValues.keySet().stream()
+                .filter(tableAndWorkloadCell -> tableAndWorkloadCell.cell().key() == TransientRowsWorkflows.SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of the summary row", SafeArg.of("readValues", readValues)));
+        TableAndWorkloadCell primaryCell = TableAndWorkloadCell.of(
+                summaryCell.tableName(),
+                ImmutableWorkloadCell.of(summaryCell.cell().column(), TransientRowsWorkflows.COLUMN));
+
+        assertThat(readValues.keySet()).containsExactlyInAnyOrder(summaryCell, primaryCell);
+        assertThat(readValues.values())
+                .containsExactlyInAnyOrder(Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
     }
 
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(ueu(e2d68abf1e984adbb139ed8db51fb3ee4c54a481}(sha(e2d68abf1e984adbb139ed8db51fb3ee4c54a481node_idEC_kwDOAjP5fdoAKGUyZDY4YWJmMWU5ODRhZGJiMTM5ZWQ4ZGI1MWZiM2VlNGM1NGE0ODEcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-06-14T11:24:56Zu	committer}(j  svc-excavator-botj  svc-excavator-bot@palantir.comj  2023-06-14T11:24:56Zumessage#Excavator:  Upgrade Undertow Servertree}(j  (a75a7611b5c26ca85c84573fbcc15a8e0d6d7893url`https://api.github.com/repos/palantir/atlasdb/git/trees/a75a7611b5c26ca85c84573fbcc15a8e0d6d7893uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e2d68abf1e984adbb139ed8db51fb3ee4c54a481
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSJo4gJEMmvEkpISILgAADQ0gEA1qYbiEOEdQHgPyv9YPPxFx14
DSYZotVVAeBBy75u9aoBAM+WNy4CVcQDGe9QAgqVoateZf2AOj02Dg99BMx1Ibqm
=BZ0z
-----END PGP SIGNATURE-----
payloadX  tree a75a7611b5c26ca85c84573fbcc15a8e0d6d7893
parent b4f5ea7955bd88083f488244a5895d0b48319268
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1686741896 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1686741896 +0000

Excavator:  Upgrade Undertow Serveruuj  ^https://api.github.com/repos/palantir/atlasdb/commits/e2d68abf1e984adbb139ed8db51fb3ee4c54a481html_urlShttps://github.com/palantir/atlasdb/commit/e2d68abf1e984adbb139ed8db51fb3ee4c54a481comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e2d68abf1e984adbb139ed8db51fb3ee4c54a481/commentsj  }(loginsvc-excavator-botidJj  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j  .https://api.github.com/users/svc-excavator-botj  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj  }(j  svc-excavator-botj  Jj  MDQ6VXNlcjMzMjY2MzY4j  4https://avatars.githubusercontent.com/u/33266368?v=4j  h5j  .https://api.github.com/users/svc-excavator-botj  $https://github.com/svc-excavator-botj  8https://api.github.com/users/svc-excavator-bot/followersj  Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}j  >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}j  Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}j  <https://api.github.com/users/svc-excavator-bot/subscriptionsj  3https://api.github.com/users/svc-excavator-bot/orgsj!  4https://api.github.com/users/svc-excavator-bot/reposj#  ?https://api.github.com/users/svc-excavator-bot/events{/privacy}j%  >https://api.github.com/users/svc-excavator-bot/received_eventsj'  Userj)  uparents]}(j  (b4f5ea7955bd88083f488244a5895d0b48319268j  ^https://api.github.com/repos/palantir/atlasdb/commits/b4f5ea7955bd88083f488244a5895d0b48319268j  Shttps://github.com/palantir/atlasdb/commit/b4f5ea7955bd88083f488244a5895d0b48319268uastats}(totalK	additionsK	deletionsKufiles](}(j  (2564ea500b6338a43400c91cf967575c455c5d84filename
versions.lockstatusmodifiedjC  KjD  KchangesKblob_url_https://github.com/palantir/atlasdb/blob/e2d68abf1e984adbb139ed8db51fb3ee4c54a481/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/e2d68abf1e984adbb139ed8db51fb3ee4c54a481/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=e2d68abf1e984adbb139ed8db51fb3ee4c54a481patchXT  @@ -186,7 +186,7 @@ io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf
 io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
-io.undertow:undertow-core:2.2.24.Final (2 constraints: 361dd006)
+io.undertow:undertow-core:2.2.25.Final (2 constraints: 371d1507)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)u}(j  (28f72a95c03b5438e26e005f70f18b75aee63554jI  versions.propsjK  modifiedjC  KjD  KjM  KjN  `https://github.com/palantir/atlasdb/blob/e2d68abf1e984adbb139ed8db51fb3ee4c54a481/versions.propsjP  _https://github.com/palantir/atlasdb/raw/e2d68abf1e984adbb139ed8db51fb3ee4c54a481/versions.propsjR  rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=e2d68abf1e984adbb139ed8db51fb3ee4c54a481jT  X'  @@ -46,7 +46,7 @@ commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
 io.netty:* = 4.1.90.Final
-io.undertow:* = 2.2.24.Final
+io.undertow:* = 2.2.25.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2ueu(38e5906ccac8d7a4f69d855787d818cfb5baab9e}(sha(38e5906ccac8d7a4f69d855787d818cfb5baab9enode_idEC_kwDOAjP5fdoAKDM4ZTU5MDZjY2FjOGQ3YTRmNjlkODU1Nzg3ZDgxOGNmYjViYWFiOWUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-06T16:14:11Zu	committer}(jh  Jeremy Kongjj  jkong@palantir.comjl  2023-06-06T16:14:11Zumessage'Actually support row column range readstree}(j`  (f0aa186b3847200294f2a67004938c0d2e6572f8url`https://api.github.com/repos/palantir/atlasdb/git/trees/f0aa186b3847200294f2a67004938c0d2e6572f8ujx  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/38e5906ccac8d7a4f69d855787d818cfb5baab9e
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR/W1MACgkQTLdFKain
zjwR2gf+NUJyKH9tUHHOp2IE97M/5eGvDPbtL+8C924S1LHBCsR/LBcVt/SoDaC2
Ay7j6IF7SLYrCrNNfzKd57uSdS0xWNlO+XSCGo+MiP05UYhV7Dmql8Yydmcok0ht
wPMSbGlNZujqpCv2cYvYA9HIf2Gg87+LBVTcpKrVaMg8fCa+aTjAJ31dCRKTwINo
lyUFA5U5i+rjlSQ2rJ2ery+zgyMT5PG4z4JpCv7jz5VcKPXJWKEDHMzTsPnXv6mk
fj0FQyrmAoc7JL/r98DfvCBtIYd/NaGfcPTMe0es8NwYFDapp1Mxnv2k91kJA+tR
nJ/bkG6619CktB8JsR6tRPPLjAva0w==
=yVMq
-----END PGP SIGNATURE-----payloadtree f0aa186b3847200294f2a67004938c0d2e6572f8
parent 75b40e96d6b1647f3a56252237eebafc96c11f56
author Jeremy Kong <jkong@palantir.com> 1686068051 +0100
committer Jeremy Kong <jkong@palantir.com> 1686068051 +0100

Actually support row column range reads
uujx  ^https://api.github.com/repos/palantir/atlasdb/commits/38e5906ccac8d7a4f69d855787d818cfb5baab9ehtml_urlShttps://github.com/palantir/atlasdb/commit/38e5906ccac8d7a4f69d855787d818cfb5baab9ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/38e5906ccac8d7a4f69d855787d818cfb5baab9e/commentsjf  }(login
jeremyk-91idJZ jb  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jx  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujn  }(j  
jeremyk-91j  JZ jb  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5jx  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents]}(j`  (75b40e96d6b1647f3a56252237eebafc96c11f56jx  ^https://api.github.com/repos/palantir/atlasdb/commits/75b40e96d6b1647f3a56252237eebafc96c11f56j  Shttps://github.com/palantir/atlasdb/commit/75b40e96d6b1647f3a56252237eebafc96c11f56uastats}(totalK	additionsK	deletionsKufiles](}(j`  (c17e93e14ee6daa95acf3b2ea3d70c9f8c501ac4filenameoatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javastatusmodifiedj  Kj  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/38e5906ccac8d7a4f69d855787d818cfb5baab9e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/38e5906ccac8d7a4f69d855787d818cfb5baab9e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=38e5906ccac8d7a4f69d855787d818cfb5baab9epatchX.  @@ -20,6 +20,7 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import java.util.List;
 import java.util.Optional;
+import java.util.SortedMap;
 
 /**
  * Allows for convenient interaction with a transactional store.
@@ -31,5 +32,7 @@ public interface InteractiveTransaction {
 
     void delete(String table, WorkloadCell workloadCell);
 
+    SortedMap<Integer, Integer> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection);
+
     List<WitnessedTransactionAction> witness();
 }u}(j`  (1b3e41f05a0d72698beeedfb2ef18ada2bde6d61j  |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowColumnRangeReadTransactionAction.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/38e5906ccac8d7a4f69d855787d818cfb5baab9e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/38e5906ccac8d7a4f69d855787d818cfb5baab9e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.java?ref=38e5906ccac8d7a4f69d855787d818cfb5baab9ej  X  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
-import io.vavr.collection.Map;
+import java.util.SortedMap;
 import org.immutables.value.Value;
 
 /**
@@ -41,7 +41,11 @@ default <T> T accept(TransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-    default WitnessedRowColumnRangeReadTransactionAction witness(Map<Integer, Integer> columnsAndValues) {
+    static ImmutableRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableRowColumnRangeReadTransactionAction.builder();
+    }
+
+    default WitnessedRowColumnRangeReadTransactionAction witness(SortedMap<Integer, Integer> columnsAndValues) {
         return WitnessedRowColumnRangeReadTransactionAction.builder()
                 .originalQuery(this)
                 .columnsAndValues(columnsAndValues)u}(j`  (b0ebbc268bebf19316c4924e59dd4212903641f5j  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/38e5906ccac8d7a4f69d855787d818cfb5baab9e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/38e5906ccac8d7a4f69d855787d818cfb5baab9e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=38e5906ccac8d7a4f69d855787d818cfb5baab9ej  X~  @@ -17,14 +17,14 @@
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
-import io.vavr.collection.Map;
+import java.util.SortedMap;
 import org.immutables.value.Value;
 
 @Value.Immutable
 public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedTransactionAction {
     RowColumnRangeReadTransactionAction originalQuery();
 
-    Map<Integer, Integer> columnsAndValues();
+    SortedMap<Integer, Integer> columnsAndValues();
 
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {u}(j`  (ee3593b3bee23967ab1ac1c0312ee9c8e8382a48j  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj  modifiedj  K4j  Kj  K6j  https://github.com/palantir/atlasdb/blob/38e5906ccac8d7a4f69d855787d818cfb5baab9e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj  https://github.com/palantir/atlasdb/raw/38e5906ccac8d7a4f69d855787d818cfb5baab9e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=38e5906ccac8d7a4f69d855787d818cfb5baab9ej  X  @@ -17,25 +17,34 @@
 package com.palantir.atlasdb.workload.store;
 
 import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.keyvalue.api.BatchColumnRangeSelection;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.ArrayList;
+import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Optional;
 import java.util.Set;
+import java.util.SortedMap;
 import java.util.function.BiFunction;
+import java.util.function.Function;
 import javax.annotation.concurrent.NotThreadSafe;
+import one.util.streamex.EntryStream;
 
 @NotThreadSafe
 final class AtlasDbInteractiveTransaction implements InteractiveTransaction {
@@ -91,6 +100,37 @@ public void delete(String table, WorkloadCell workloadCell) {
                 workloadCell);
     }
 
+    @Override
+    public SortedMap<Integer, Integer> getRowColumnRange(
+            String table, Integer row, ColumnRangeSelection columnRangeSelection) {
+        return run(
+                tableReference -> {
+                    // Having a non-configurable batch hint is a bit iffy, but suffices as this won't be used in
+                    // production.
+                    Map<byte[], Iterator<Entry<Cell, byte[]>>> iterators = transaction.getRowsColumnRangeIterator(
+                            tableReference,
+                            List.of(AtlasDbUtils.toAtlasKey(row)),
+                            BatchColumnRangeSelection.create(
+                                    AtlasDbUtils.toAtlasColumnRangeSelection(columnRangeSelection), 100));
+                    SortedMap<Integer, Integer> columnsAndValues = EntryStream.of(
+                                    iterators.get(AtlasDbUtils.toAtlasKey(row)))
+                            .mapKeys(Cell::getColumnName)
+                            .mapKeys(AtlasDbUtils::fromAtlasColumn)
+                            .mapValues(AtlasDbUtils::fromAtlasValue)
+                            .toSortedMap();
+                    witnessedTransactionActions.add(WitnessedRowColumnRangeReadTransactionAction.builder()
+                            .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                    .table(table)
+                                    .row(row)
+                                    .columnRangeSelection(columnRangeSelection)
+                                    .build())
+                            .columnsAndValues(columnsAndValues)
+                            .build());
+                    return columnsAndValues;
+                },
+                table);
+    }
+
     @Override
     public List<WitnessedTransactionAction> witness() {
         hasFinished = true;
@@ -106,10 +146,20 @@ private TableReference getTableReferenceOrThrow(String table) {
     }
 
     private <T> T run(BiFunction<TableReference, Cell, T> function, String table, WorkloadCell workloadCell) {
-        Preconditions.checkState(
-                !hasFinished, "Transaction has already been witnessed and can no longer perform any actions.");
+        checkTransactionHasNotFinished();
         Cell atlasCell = AtlasDbUtils.toAtlasCell(workloadCell);
         TableReference tableReference = getTableReferenceOrThrow(table);
         return function.apply(tableReference, atlasCell);
     }
+
+    private <T> T run(Function<TableReference, T> function, String table) {
+        checkTransactionHasNotFinished();
+        TableReference tableReference = getTableReferenceOrThrow(table);
+        return function.apply(tableReference);
+    }
+
+    private void checkTransactionHasNotFinished() {
+        Preconditions.checkState(
+                !hasFinished, "Transaction has already been witnessed and can no longer perform any actions.");
+    }
 }u}(j`  (dc79b6b8b54010688b81381eec4180aa1c57f56ej  fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj  modifiedj  K
j  K j  K
j  https://github.com/palantir/atlasdb/blob/38e5906ccac8d7a4f69d855787d818cfb5baab9e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj  https://github.com/palantir/atlasdb/raw/38e5906ccac8d7a4f69d855787d818cfb5baab9e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=38e5906ccac8d7a4f69d855787d818cfb5baab9ej  X  @@ -27,6 +27,7 @@
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
@@ -159,6 +160,15 @@ public Void visit(DeleteTransactionAction deleteTransactionAction) {
             transaction.delete(deleteTransactionAction.table(), deleteTransactionAction.cell());
             return null;
         }
+
+        @Override
+        public Void visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+            transaction.getRowColumnRange(
+                    rowColumnRangeReadTransactionAction.table(),
+                    rowColumnRangeReadTransactionAction.row(),
+                    rowColumnRangeReadTransactionAction.columnRangeSelection());
+            return null;
+        }
     }
 
     public static AtlasDbTransactionStore create(u}(j`  (45188926753c546106aea8c33667dbc777075297j  Zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/AtlasDbUtils.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/38e5906ccac8d7a4f69d855787d818cfb5baab9e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj  https://github.com/palantir/atlasdb/raw/38e5906ccac8d7a4f69d855787d818cfb5baab9e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.java?ref=38e5906ccac8d7a4f69d855787d818cfb5baab9ej  X  @@ -26,6 +26,7 @@
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
@@ -50,8 +51,20 @@ public static ConflictHandler toConflictHandler(IsolationLevel isolationLevel) {
         }
     }
 
+    public static byte[] toAtlasKey(int key) {
+        return Ints.toByteArray(key);
+    }
+
+    public static int fromAtlasColumn(byte[] bytes) {
+        return Ints.fromByteArray(bytes);
+    }
+
+    public static int fromAtlasValue(byte[] value) {
+        return Ints.fromByteArray(value);
+    }
+
     public static Cell toAtlasCell(WorkloadCell cell) {
-        return Cell.create(Ints.toByteArray(cell.key()), Ints.toByteArray(cell.column()));
+        return Cell.create(toAtlasKey(cell.key()), Ints.toByteArray(cell.column()));
     }
 
     public static byte[] tableMetadata(ConflictHandler conflictHandler) {
@@ -93,4 +106,17 @@ public static ConflictHandler toIndexConflictHandler(ConflictHandler baseTableCo
     public static byte[] indexMetadata(ConflictHandler baseTableConflictHandler) {
         return tableMetadata(toIndexConflictHandler(baseTableConflictHandler));
     }
+
+    public static com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection toAtlasColumnRangeSelection(
+            ColumnRangeSelection columnRangeSelection) {
+        return new com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection(
+                columnRangeSelection
+                        .startColumnInclusive()
+                        .map(AtlasDbUtils::toAtlasKey)
+                        .orElse(null),
+                columnRangeSelection
+                        .endColumnExclusive()
+                        .map(AtlasDbUtils::toAtlasKey)
+                        .orElse(null));
+    }
 }u}(j`  (c77dc4513689743611b4a5be23f924e85c727218j  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj  modifiedj  KQj  Kj  KRj  https://github.com/palantir/atlasdb/blob/38e5906ccac8d7a4f69d855787d818cfb5baab9e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj  https://github.com/palantir/atlasdb/raw/38e5906ccac8d7a4f69d855787d818cfb5baab9e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=38e5906ccac8d7a4f69d855787d818cfb5baab9ej  X9  @@ -25,10 +25,14 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
+import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
@@ -38,6 +42,8 @@
 import java.util.Optional;
 import java.util.Set;
 import java.util.function.Consumer;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -52,7 +58,7 @@ public void before() {
     }
 
     @Test
-    public void witnessRecordAllActions() {
+    public void witnessRecordsAllSingleCellActions() {
         assertThat(readWrite(transaction -> {
                     transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
                     transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
@@ -77,6 +83,68 @@ public void readHandlesEmptyAndPresentValue() {
                         WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
     }
 
+    @Test
+    public void witnessRecordsColumnRangeActions() {
+        assertThat(readWrite(transaction -> {
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.getRowColumnRange(
+                            TABLE_1,
+                            WORKLOAD_CELL_TWO.key(),
+                            ColumnRangeSelection.builder().build());
+                }))
+                .containsExactly(
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
+                        WitnessedRowColumnRangeReadTransactionAction.builder()
+                                .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                        .table(TABLE_1)
+                                        .row(WORKLOAD_CELL_TWO.key())
+                                        .columnRangeSelection(
+                                                ColumnRangeSelection.builder().build())
+                                        .build())
+                                .columnsAndValues(ImmutableSortedMap.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
+                                .build());
+    }
+
+    @Test
+    public void emptyColumnRangeReadsAreRecorded() {
+        assertThat(readWrite(transaction -> {
+                    transaction.getRowColumnRange(
+                            TABLE_1,
+                            WORKLOAD_CELL_TWO.key(),
+                            ColumnRangeSelection.builder().build());
+                }))
+                .containsExactly(WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table(TABLE_1)
+                                .row(WORKLOAD_CELL_TWO.key())
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
+                        .columnsAndValues(ImmutableSortedMap.of())
+                        .build());
+    }
+
+    @Test
+    public void allRelevantCellsAreRecorded() {
+        int iterationCount = 1000;
+        assertThat(readWrite(transaction -> {
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(
+                            TABLE_1, 1, ColumnRangeSelection.builder().build());
+                }))
+                .hasSize(iterationCount + 1)
+                .element(iterationCount)
+                .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
+                        .isInstanceOfSatisfying(
+                                WitnessedRowColumnRangeReadTransactionAction.class,
+                                witness -> assertThat(witness.columnsAndValues())
+                                        .containsExactlyEntriesOf(IntStream.range(0, iterationCount)
+                                                .boxed()
+                                                .collect(Collectors.toMap(index -> index, unused -> VALUE_ONE)))));
+    }
+
     @Test
     public void readThrowsWhenTableDoesNotExist() {
         assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.read(TABLE_1, WORKLOAD_CELL_ONE));
@@ -93,6 +161,12 @@ public void deleteThrowsWhenTableDoesNotExist() {
         assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
     }
 
+    @Test
+    public void getRowsColumnRangeThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.getRowColumnRange(
+                TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.builder().build()));
+    }
+
     @Test
     public void readThrowsWhenInteractiveTransactionAlreadyWitnessed() {
         assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
@@ -111,6 +185,12 @@ public void deleteThrowsWhenInteractiveTransactionAlreadyWitnessed() {
                 transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
     }
 
+    @Test
+    public void getRowColumnRangeThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(transaction -> transaction.getRowColumnRange(
+                TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.builder().build()));
+    }
+
     private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         return manager.runTaskWithRetry(atlasTransaction -> {
             AtlasDbInteractiveTransaction interactiveTransaction =ueu     (dae9a671871aa70d30dc64d6d667b51bceaccb29}(sha(dae9a671871aa70d30dc64d6d667b51bceaccb29node_idEC_kwDOAjP5fdoAKGRhZTlhNjcxODcxYWE3MGQzMGRjNjRkNmQ2NjdiNTFiY2VhY2NiMjkcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-02-27T19:02:44Zu	committer}(j   GitHubj   noreply@github.comj   2023-02-27T19:02:44ZumessageX  Optimize CassandraService::getKnownPort (#6451)

While reviewing JFR from some high volume AtlasDB client services (think mountains), I noticed they spend a significant amount of time verifying that the Cassandra ports are the same in
`com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService.getKnownPort():300`.

We can optimize this for the happy path where the port is known and consistent for a ~10x improvement.tree}(j   (dc24d4553e0eda64addcbed7267e9e874c3c1ef3url`https://api.github.com/repos/palantir/atlasdb/git/trees/dc24d4553e0eda64addcbed7267e9e874c3c1ef3uj   bhttps://api.github.com/repos/palantir/atlasdb/git/commits/dae9a671871aa70d30dc64d6d667b51bceaccb29
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJj/P5UCRBK7hj4Ov3rIwAAlRoIAA8V/BLYNao03EKVide/AABL
AFbwMxqmK21VPP1ElwTw0FvVgQEseFkKMCqDYTtDxjVXof50HPpGlr32WnhvLzWC
0rUc1Ko61xNUDjnqE27UojgZcRtDgFtwqyq8KX50PG2vZ5CZxJXmGsRqxbZfxxtG
vIwiLI8XrSfEEoTsQhsh83yPYAEaMO5JVY5xelWEVg2SYXykIdUPQeqLpvcpBdX5
Cu/KcxsyqWc6xI3sAriuzrEroUx6uUaiUsVbpW73URKw2UjcBhWZ4zU0koXqO/aD
5izUFejsfFFvRlRBYhw1hPtYx7dexrCdVSKnOTM//vybypz0eNQXEy8JKDSGmRU=
=27Fa
-----END PGP SIGNATURE-----
payloadX  tree dc24d4553e0eda64addcbed7267e9e874c3c1ef3
parent b7bd71b1613b2f202643beb52e0cb60f95a164e2
author David Schlosnagle <davids@palantir.com> 1677524564 -0500
committer GitHub <noreply@github.com> 1677524564 +0000

Optimize CassandraService::getKnownPort (#6451)

While reviewing JFR from some high volume AtlasDB client services (think mountains), I noticed they spend a significant amount of time verifying that the Cassandra ports are the same in
`com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService.getKnownPort():300`.

We can optimize this for the happy path where the port is known and consistent for a ~10x improvement.
uuj   ^https://api.github.com/repos/palantir/atlasdb/commits/dae9a671871aa70d30dc64d6d667b51bceaccb29html_urlShttps://github.com/palantir/atlasdb/commit/dae9a671871aa70d30dc64d6d667b51bceaccb29comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/dae9a671871aa70d30dc64d6d667b51bceaccb29/commentsj
   }(loginschlosnaidMBj	   MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j   %https://api.github.com/users/schlosnaj-   https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj   }(j2   web-flowj4   J/j	   MDQ6VXNlcjE5ODY0NDQ3j6   4https://avatars.githubusercontent.com/u/19864447?v=4j8   h5j   %https://api.github.com/users/web-flowj-   https://github.com/web-flowj;   /https://api.github.com/users/web-flow/followersj=   <https://api.github.com/users/web-flow/following{/other_user}j?   5https://api.github.com/users/web-flow/gists{/gist_id}jA   <https://api.github.com/users/web-flow/starred{/owner}{/repo}jC   3https://api.github.com/users/web-flow/subscriptionsjE   *https://api.github.com/users/web-flow/orgsjG   +https://api.github.com/users/web-flow/reposjI   6https://api.github.com/users/web-flow/events{/privacy}jK   5https://api.github.com/users/web-flow/received_eventsjM   UserjO   uparents]}(j   (b7bd71b1613b2f202643beb52e0cb60f95a164e2j   ^https://api.github.com/repos/palantir/atlasdb/commits/b7bd71b1613b2f202643beb52e0cb60f95a164e2j-   Shttps://github.com/palantir/atlasdb/commit/b7bd71b1613b2f202643beb52e0cb60f95a164e2uastats}(totalK1	additionsK)	deletionsKufiles](}(j   (4228354f0b61970c1539f87ae8231ea1ab2d8c73filenamebatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javastatusmodifiedji   Kjj   KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/dae9a671871aa70d30dc64d6d667b51bceaccb29/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/dae9a671871aa70d30dc64d6d667b51bceaccb29/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=dae9a671871aa70d30dc64d6d667b51bceaccb29patchX^  @@ -17,6 +17,7 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
+import com.google.common.collect.FluentIterable;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableRangeMap;
@@ -56,6 +57,7 @@
 import java.util.Comparator;
 import java.util.HashMap;
 import java.util.HashSet;
+import java.util.Iterator;
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
@@ -293,17 +295,26 @@ private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) th
     }
 
     private int getKnownPort() throws UnknownHostException {
-        Set<Integer> allKnownPorts = Stream.concat(
-                        currentPools.keySet().stream().map(CassandraServer::proxy),
-                        getServersSocketAddressesFromConfig().stream())
-                .map(InetSocketAddress::getPort)
-                .collect(Collectors.toSet());
+        // explicitly not using streams due to allocation overhead
+        return onlyPort(FluentIterable.concat(
+                        FluentIterable.from(currentPools.keySet()).transform(CassandraServer::proxy),
+                        getServersSocketAddressesFromConfig())
+                .transform(InetSocketAddress::getPort));
+    }
 
-        if (allKnownPorts.size() == 1) { // if everyone is on one port, try and use that
-            return Iterables.getOnlyElement(allKnownPorts);
-        } else {
+    @VisibleForTesting
+    static int onlyPort(Iterable<? extends Integer> iterable) throws UnknownHostException {
+        Iterator<? extends Integer> iterator = iterable.iterator();
+        if (!iterator.hasNext()) {
             throw new UnknownHostException("No single known port");
         }
+        int port = iterator.next();
+        while (iterator.hasNext()) {
+            if (port != iterator.next()) {
+                throw new UnknownHostException("No single known port");
+            }
+        }
+        return port;
     }
 
     private ImmutableSet<CassandraServer> getHostsFor(byte[] key) {u}(j   (263551e0d877ee028f36c8295ff2ae5fd69a9f79jo   fatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraServiceTest.javajq   modifiedji   K
jj   K js   K
jt   https://github.com/palantir/atlasdb/blob/dae9a671871aa70d30dc64d6d667b51bceaccb29/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javajv   https://github.com/palantir/atlasdb/raw/dae9a671871aa70d30dc64d6d667b51bceaccb29/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javajx   https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.java?ref=dae9a671871aa70d30dc64d6d667b51bceaccb29jz   X  @@ -33,6 +33,7 @@
 import com.palantir.refreshable.Refreshable;
 import java.net.InetSocketAddress;
 import java.net.UnknownHostException;
+import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.ThreadLocalRandom;
@@ -269,6 +270,18 @@ public void getRandomHostByActiveConnectionsReturnsDesiredHost() {
         }
     }
 
+    @Test
+    public void ports() throws Exception {
+        assertThat(CassandraService.onlyPort(List.of(1, 1, 1))).isEqualTo(1);
+        assertThat(IntStream.generate(() -> 4224).boxed().limit(15).collect(Collectors.toList()))
+                .hasSize(15)
+                .satisfies(cluster ->
+                        assertThat(CassandraService.onlyPort(cluster)).isEqualTo(4224));
+        assertThatThrownBy(() -> CassandraService.onlyPort(List.of(1, 2, 1)))
+                .isInstanceOf(UnknownHostException.class)
+                .hasMessageContaining("No single known port");
+    }
+
     private Set<CassandraServer> getRecommendedHostsFromAThousandTrials(
             CassandraService cassandra, Set<CassandraServer> hosts) {
         return IntStream.range(0, 1_000)u}(j   (d93664ff214c9077aa41febf718e69648167c087jo   $changelog/@unreleased/pr-6451.v2.ymljq   addedji   K	jj   K js   K	jt   |https://github.com/palantir/atlasdb/blob/dae9a671871aa70d30dc64d6d667b51bceaccb29/changelog%2F%40unreleased%2Fpr-6451.v2.ymljv   {https://github.com/palantir/atlasdb/raw/dae9a671871aa70d30dc64d6d667b51bceaccb29/changelog%2F%40unreleased%2Fpr-6451.v2.ymljx   https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6451.v2.yml?ref=dae9a671871aa70d30dc64d6d667b51bceaccb29jz   X  @@ -0,0 +1,9 @@
+type: improvement
+improvement:
+  description: |-
+    While reviewing JFR from some high volume AtlasDB client services (think mountains), I noticed they spend a significant amount of time verifying that the Cassandra ports are the same in
+    `com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService.getKnownPort():300`.
+
+    We can optimize this for the happy path where the port is known and consistent for a ~10x improvement.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6451ueu(894015703bf87db017f6be94af85691aa1eceb66}(sha(894015703bf87db017f6be94af85691aa1eceb66node_idEC_kwDOAjP5fdoAKDg5NDAxNTcwM2JmODdkYjAxN2Y2YmU5NGFmODU2OTFhYTFlY2ViNjYcommit}(author}(nameJeremy Kongemailjeremykong@hotmail.comdate2023-04-25T17:30:43Zu	committer}(j   svc-autoreleasej   -pd-foundry-infrastructure-notify@palantir.comj   2023-04-25T17:30:43Zumessage"Autorelease 0.842.0-rc2

[skip ci]tree}(j   (fefb58df483e4b165918cb364318a8af217cda86url`https://api.github.com/repos/palantir/atlasdb/git/trees/fefb58df483e4b165918cb364318a8af217cda86uj   bhttps://api.github.com/repos/palantir/atlasdb/git/commits/894015703bf87db017f6be94af85691aa1eceb66
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRIDkMACgkQhbrR8ip7mDBeygD+Mja1q5W/5XZlE9pXG5T1y7/F
U3dt4TIzcRl3E1A4qRgBAMh3LeTmRXBMNbYf+EgnPcFTi00PUOWOsXrbAEdoAsu1
=iFpc
-----END PGP SIGNATURE-----
payloadX  tree fefb58df483e4b165918cb364318a8af217cda86
parent d37428dcf5c3aaf1e839b30645d1d8822831efa8
author Jeremy Kong <jeremykong@hotmail.com> 1682443843 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1682443843 +0000

Autorelease 0.842.0-rc2

[skip ci]uuj   ^https://api.github.com/repos/palantir/atlasdb/commits/894015703bf87db017f6be94af85691aa1eceb66html_urlShttps://github.com/palantir/atlasdb/commit/894015703bf87db017f6be94af85691aa1eceb66comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/894015703bf87db017f6be94af85691aa1eceb66/commentsj   }(login
jeremyk-91idJZ j   MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j   'https://api.github.com/users/jeremyk-91j   https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj   }(j   svc-autoreleasej   J(j   MDQ6VXNlcjUxNzE4MzQ2j   4https://avatars.githubusercontent.com/u/51718346?v=4j   h5j   ,https://api.github.com/users/svc-autoreleasej   "https://github.com/svc-autoreleasej   6https://api.github.com/users/svc-autorelease/followersj   Chttps://api.github.com/users/svc-autorelease/following{/other_user}j   <https://api.github.com/users/svc-autorelease/gists{/gist_id}j   Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j   :https://api.github.com/users/svc-autorelease/subscriptionsj   1https://api.github.com/users/svc-autorelease/orgsj   2https://api.github.com/users/svc-autorelease/reposj   =https://api.github.com/users/svc-autorelease/events{/privacy}j   <https://api.github.com/users/svc-autorelease/received_eventsj   Userj   uparents]}(j   (d37428dcf5c3aaf1e839b30645d1d8822831efa8j   ^https://api.github.com/repos/palantir/atlasdb/commits/d37428dcf5c3aaf1e839b30645d1d8822831efa8j   Shttps://github.com/palantir/atlasdb/commit/d37428dcf5c3aaf1e839b30645d1d8822831efa8uastats}(totalK 	additionsK 	deletionsK ufiles]u(89123b8c4e29b0b8096a8fa3463b9beaeb95b0fd}(sha(89123b8c4e29b0b8096a8fa3463b9beaeb95b0fdnode_idEC_kwDOAjP5fdoAKDg5MTIzYjhjNGUyOWIwYjgwOTZhOGZhMzQ2M2I5YmVhZWI5NWIwZmQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-22T22:51:58Zu	committer}(j   Jeremy Kongj !  jkong@palantir.comj!  2023-02-22T22:51:58Zumessageexplanationstree}(j   (4f2e2b9b72bc4b1eed3d5d0d65e2ad8376e08533url`https://api.github.com/repos/palantir/atlasdb/git/trees/4f2e2b9b72bc4b1eed3d5d0d65e2ad8376e08533uj!  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/89123b8c4e29b0b8096a8fa3463b9beaeb95b0fd
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEuTY+4bHE452z2GUfsC5B2upnoZgFAmP2nI4ACgkQsC5B2upn
oZi7qQf/WAqcF7YTdfDX30ucr/pCdlZqJ6DwvSlK/at9yzmTeTWqpfOKpWVrkCHI
zLiLihmHZ0kiAFrNCkRV64qV3f0FCerLK7p6pqI1AhqG+iPz62DnWjJg5uKeNXgD
J9MvzU9zLMrUorqtLZsiFG2Rs9RBsnNmXlD69zwTJAlFlW6oRr/DjGWAT3A4rIC3
dtylurIq38s7jAto3SqI4UpO4OKIp+8olrAwqm1+2T/Wy2QF37NWcTFzCVk3y/5C
hEB6SJ5C9pNhOtXHebO5GUgSX7uD+iBUHrI3rWQGpjHIe6xaBC/qg9b/qA5OddrI
J4byvnRjGe0HRmHJG7QAG6DHNLTelQ==
=Lool
-----END PGP SIGNATURE-----payloadtree 4f2e2b9b72bc4b1eed3d5d0d65e2ad8376e08533
parent 0d1f5821b2eb2aef8400177aa48c06623074a687
author Jeremy Kong <jkong@palantir.com> 1677106318 +0000
committer Jeremy Kong <jkong@palantir.com> 1677106318 +0000

explanations
uuj!  ^https://api.github.com/repos/palantir/atlasdb/commits/89123b8c4e29b0b8096a8fa3463b9beaeb95b0fdhtml_urlShttps://github.com/palantir/atlasdb/commit/89123b8c4e29b0b8096a8fa3463b9beaeb95b0fdcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/89123b8c4e29b0b8096a8fa3463b9beaeb95b0fd/commentsj   }(login
jeremyk-91idJZ j   MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j!  'https://api.github.com/users/jeremyk-91j!  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj!  }(j!!  
jeremyk-91j#!  JZ j   MDQ6VXNlcjU5NTU1MTA=j%!  3https://avatars.githubusercontent.com/u/5955510?v=4j'!  h5j!  'https://api.github.com/users/jeremyk-91j!  https://github.com/jeremyk-91j*!  1https://api.github.com/users/jeremyk-91/followersj,!  >https://api.github.com/users/jeremyk-91/following{/other_user}j.!  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j0!  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j2!  5https://api.github.com/users/jeremyk-91/subscriptionsj4!  ,https://api.github.com/users/jeremyk-91/orgsj6!  -https://api.github.com/users/jeremyk-91/reposj8!  8https://api.github.com/users/jeremyk-91/events{/privacy}j:!  7https://api.github.com/users/jeremyk-91/received_eventsj<!  Userj>!  uparents]}(j   (0d1f5821b2eb2aef8400177aa48c06623074a687j!  ^https://api.github.com/repos/palantir/atlasdb/commits/0d1f5821b2eb2aef8400177aa48c06623074a687j!  Shttps://github.com/palantir/atlasdb/commit/0d1f5821b2eb2aef8400177aa48c06623074a687uastats}(totalK	additionsK	deletionsK ufiles]}(j   (ec87f3c5ceb665c09a639e417b960b4c8d9c395bfilenamelatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javastatusmodifiedjX!  KjY!  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/89123b8c4e29b0b8096a8fa3463b9beaeb95b0fd/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/89123b8c4e29b0b8096a8fa3463b9beaeb95b0fd/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=89123b8c4e29b0b8096a8fa3463b9beaeb95b0fdpatchX^  @@ -31,6 +31,12 @@
 import java.util.Optional;
 import java.util.stream.Collectors;
 
+/**
+ * Consider a single row in a database that has two cells, which should between them maintain the invariant that
+ * at most one cell has a value (this workflow is extremely common in AtlasDB Proxy). This workflow maintains
+ * concurrent transactions that read the row (both cells), and then sends an update to one of the cells and attempts
+ * to delete the other.
+ */
 public final class SingleRowTwoCellsWorkflows {
     private static final int SINGLE_ROW = 1;
     private static final int FIRST_COLUMN = 1;uau(1ea8f076c2264a7462fd59c0962fc327f816597f}(sha(1ea8f076c2264a7462fd59c0962fc327f816597fnode_idEC_kwDOAjP5fdoAKDFlYThmMDc2YzIyNjRhNzQ2MmZkNTljMDk2MmZjMzI3ZjgxNjU5N2Ycommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-07-24T15:33:33Zu	committer}(ju!  GitHubjw!  noreply@github.comjy!  2023-07-24T15:33:33Zumessage4Excavator:  Upgrade buildscript dependencies (#6632)tree}(jm!  (42126ee0368f7e4333ac417fea2b5d3357d69ef5url`https://api.github.com/repos/palantir/atlasdb/git/trees/42126ee0368f7e4333ac417fea2b5d3357d69ef5uj!  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1ea8f076c2264a7462fd59c0962fc327f816597f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkvpnNCRBK7hj4Ov3rIwAA2TwIAAOcjLWujDf4IF9aGhMIXzLe
DSDDFOkvo6hMD6UG1bfUxRSHlFLTitztDeXUOEqtiVLXESb0iKHr/3YxicD2FkLD
ICcH0DGxAqgHXJtyxGCdqP26N6EN0ShN/V52HmDTxc0PFB3y+L9zEghxMXvhi3Mi
k065R0L0HkPbWFtpjrDSV9x9oQ0Cl6ioPmb7JJTS/AtRNciFDnmE+bjcF8R9lWAq
xw0Plw1RtBLjvGXN1/aQa/kK1mCw4We3HFtdhRxmlzutg8VpVQkhfpkSneeAnxyw
ljWUbA4+8pR8umpeLaUkKlDXwNDQiAkoF6uxyNK6VBiLkSBDQpoiDC4uqCNXhkA=
=43N4
-----END PGP SIGNATURE-----
payloadX)  tree 42126ee0368f7e4333ac417fea2b5d3357d69ef5
parent f4fb5e1383b7fa0a444f54f9883b98a5a8e55494
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1690212813 -0700
committer GitHub <noreply@github.com> 1690212813 +0000

Excavator:  Upgrade buildscript dependencies (#6632)

 uuj!  ^https://api.github.com/repos/palantir/atlasdb/commits/1ea8f076c2264a7462fd59c0962fc327f816597fhtml_urlShttps://github.com/palantir/atlasdb/commit/1ea8f076c2264a7462fd59c0962fc327f816597fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1ea8f076c2264a7462fd59c0962fc327f816597f/commentsjs!  }(loginsvc-excavator-botidJjo!  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j!  .https://api.github.com/users/svc-excavator-botj!  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj{!  }(j!  web-flowj!  J/jo!  MDQ6VXNlcjE5ODY0NDQ3j!  4https://avatars.githubusercontent.com/u/19864447?v=4j!  h5j!  %https://api.github.com/users/web-flowj!  https://github.com/web-flowj!  /https://api.github.com/users/web-flow/followersj!  <https://api.github.com/users/web-flow/following{/other_user}j!  5https://api.github.com/users/web-flow/gists{/gist_id}j!  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j!  3https://api.github.com/users/web-flow/subscriptionsj!  *https://api.github.com/users/web-flow/orgsj!  +https://api.github.com/users/web-flow/reposj!  6https://api.github.com/users/web-flow/events{/privacy}j!  5https://api.github.com/users/web-flow/received_eventsj!  Userj!  uparents]}(jm!  (f4fb5e1383b7fa0a444f54f9883b98a5a8e55494j!  ^https://api.github.com/repos/palantir/atlasdb/commits/f4fb5e1383b7fa0a444f54f9883b98a5a8e55494j!  Shttps://github.com/palantir/atlasdb/commit/f4fb5e1383b7fa0a444f54f9883b98a5a8e55494uastats}(totalK
	additionsK	deletionsKufiles]}(jm!  (fa9346dc0a734448076b71694e9b6a65592e5ae3filenamebuild.gradlestatusmodifiedj!  Kj!  KchangesK
blob_url^https://github.com/palantir/atlasdb/blob/1ea8f076c2264a7462fd59c0962fc327f816597f/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/1ea8f076c2264a7462fd59c0962fc327f816597f/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=1ea8f076c2264a7462fd59c0962fc327f816597fpatchX  @@ -7,20 +7,20 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.4'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.6'
         classpath 'com.netflix.nebula:nebula-publishing-plugin:20.3.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.39.0'
-        classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.41.0'
+        classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.13.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.33.0'
-        classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
+        classpath 'com.palantir.metricschema:gradle-metric-schema:0.22.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
-        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.3'
+        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.4'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
         classpath 'gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1'
         classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'uau(818a67c798d6aeee18491472b3483ab4905fd093}(sha(818a67c798d6aeee18491472b3483ab4905fd093node_idEC_kwDOAjP5fdoAKDgxOGE2N2M3OThkNmFlZWUxODQ5MTQ3MmIzNDgzYWI0OTA1ZmQwOTMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-05T18:24:42Zu	committer}(j!  
Sam Kramerj!  skramer@palantir.comj!  2023-04-05T18:24:42ZumessageIFix bug where getting the commit timestamp can fail due to network errorstree}(j!  (ca129d4cd2481c35eb1ab6bbffcfd3350138c071url`https://api.github.com/repos/palantir/atlasdb/git/trees/ca129d4cd2481c35eb1ab6bbffcfd3350138c071uj!  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/818a67c798d6aeee18491472b3483ab4905fd093
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQtvOwACgkQmPPOpKR4
XS28ogf/fyXY3I/jQ99cDMtkfbpz9vmEMJ+V+K+P3cOQx2CJ4ff09CcY7TZfhd0x
BmIR79VPDt6ASP7xoDqoUNyAXbZY0UbudEYMtIUYbmy/MJeSbazFKbfCAD+k/bYK
DJPMqm4KVwBQDEjP0MGbSqVsizeetUDX02f+855b26MMphsoEu7gHshig4FFfeBS
N5ek/wbqpSyz1e8o6pslt83XIoMncwVdmxYItRxbp0+aJ8q8o2WwV+OwEnYJrQIi
48TnY06BwEnWI/gO9nOkefzfYdrldWTJkOFO2ipZ8uUcgoBg49S5VI6632aw8NH6
aN+Pbw4MFv7ln3VORYiU9uK6g9UJ9w==
=n8/r
-----END PGP SIGNATURE-----payloadX   tree ca129d4cd2481c35eb1ab6bbffcfd3350138c071
parent 037dd3c00910e8d68932e9274aa79dab0dce86ba
author Sam Kramer <skramer@palantir.com> 1680719082 +0100
committer Sam Kramer <skramer@palantir.com> 1680719082 +0100

Fix bug where getting the commit timestamp can fail due to network errors
uuj!  ^https://api.github.com/repos/palantir/atlasdb/commits/818a67c798d6aeee18491472b3483ab4905fd093html_urlShttps://github.com/palantir/atlasdb/commit/818a67c798d6aeee18491472b3483ab4905fd093comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/818a67c798d6aeee18491472b3483ab4905fd093/commentsj!  }(login
Sam-KrameridJ^2_ j!  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j!  'https://api.github.com/users/Sam-Kramerj
"  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj!  }(j"  
Sam-Kramerj"  J^2_ j!  MDQ6VXNlcjYyMzg4MTQ=j"  3https://avatars.githubusercontent.com/u/6238814?v=4j"  h5j!  'https://api.github.com/users/Sam-Kramerj
"  https://github.com/Sam-Kramerj"  1https://api.github.com/users/Sam-Kramer/followersj"  >https://api.github.com/users/Sam-Kramer/following{/other_user}j"  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j"  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j "  5https://api.github.com/users/Sam-Kramer/subscriptionsj""  ,https://api.github.com/users/Sam-Kramer/orgsj$"  -https://api.github.com/users/Sam-Kramer/reposj&"  8https://api.github.com/users/Sam-Kramer/events{/privacy}j("  7https://api.github.com/users/Sam-Kramer/received_eventsj*"  Userj,"  uparents]}(j!  (037dd3c00910e8d68932e9274aa79dab0dce86baj!  ^https://api.github.com/repos/palantir/atlasdb/commits/037dd3c00910e8d68932e9274aa79dab0dce86baj
"  Shttps://github.com/palantir/atlasdb/commit/037dd3c00910e8d68932e9274aa79dab0dce86bauastats}(totalKI	additionsK@	deletionsK	ufiles](}(j!  (3ac4d5f0ff9ed0cc6dca9848cc16002faa802fa1filenamefatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javastatusmodifiedjF"  K#jG"  K	changesK,blob_urlhttps://github.com/palantir/atlasdb/blob/818a67c798d6aeee18491472b3483ab4905fd093/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/818a67c798d6aeee18491472b3483ab4905fd093/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=818a67c798d6aeee18491472b3483ab4905fd093patchX   @@ -16,12 +16,14 @@
 
 package com.palantir.atlasdb.workload.store;
 
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.base.Suppliers;
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.PreCommitCondition;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
-import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
@@ -33,6 +35,7 @@
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
@@ -41,7 +44,9 @@
 import java.util.Set;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.function.Function;
+import java.util.function.Supplier;
 import java.util.stream.Collectors;
+import javax.annotation.concurrent.NotThreadSafe;
 import one.util.streamex.EntryStream;
 
 public final class AtlasDbTransactionStore implements TransactionStore {
@@ -70,8 +75,10 @@ public Optional<Integer> get(String table, WorkloadCell cell) {
     public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
         AtomicReference<Long> startTimestampReference = new AtomicReference<>();
         AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
+        Supplier<CommitTimestampProvider> commitTimestampProvider =
+                Suppliers.memoize(() -> new CommitTimestampProvider());
         try {
-            transactionManager.runTaskWithRetry(txn -> {
+            transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
                 AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
                 startTimestampReference.set(txn.getTimestamp());
                 witnessedActionsReference.set(actions.stream()
@@ -80,15 +87,11 @@ public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions)
                         .collect(Collectors.toList()));
                 return null;
             });
-
-            TransactionStatus status =
-                    transactionManager.getTransactionService().getV2(startTimestampReference.get());
-
-            Optional<Long> commitTimestamp = TransactionStatus.getCommitTimestamp(status);
-
             return Optional.of(ImmutableWitnessedTransaction.builder()
                     .startTimestamp(startTimestampReference.get())
-                    .commitTimestamp(commitTimestamp)
+                    .commitTimestamp(commitTimestampProvider
+                            .get()
+                            .getCommitTimestampOrThrowIfMaybeNotCommitted(startTimestampReference.get()))
                     .actions(witnessedActionsReference.get())
                     .build());
         } catch (SafeIllegalArgumentException e) {
@@ -158,4 +161,27 @@ public static AtlasDbTransactionStore create(
                 .toMap();
         return new AtlasDbTransactionStore(transactionManager, tableMapping);
     }
+
+    @VisibleForTesting
+    @NotThreadSafe
+    static final class CommitTimestampProvider implements PreCommitCondition {
+
+        private Optional<Long> maybeCommitOrStartTimestamp = Optional.empty();
+
+        @Override
+        public void throwIfConditionInvalid(long timestamp) {
+            maybeCommitOrStartTimestamp = Optional.of(timestamp);
+        }
+
+        public Optional<Long> getCommitTimestampOrThrowIfMaybeNotCommitted(long startTimestamp) {
+            long commitOrStartTimestamp = maybeCommitOrStartTimestamp.orElseThrow(() -> new SafeIllegalStateException(
+                    "Timestamp has not been set, which means the pre commit condition has never been executed,"
+                            + " thus the transaction never committed."));
+            if (startTimestamp == commitOrStartTimestamp) {
+                return Optional.empty();
+            }
+
+            return Optional.of(commitOrStartTimestamp);
+        }
+    }
 }u}(j!  (eb8d72869dafa80cce2ed33659ca7688bd6450abjL"  jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javajN"  modifiedjF"  KjG"  K jP"  KjQ"  https://github.com/palantir/atlasdb/blob/818a67c798d6aeee18491472b3483ab4905fd093/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajS"  https://github.com/palantir/atlasdb/raw/818a67c798d6aeee18491472b3483ab4905fd093/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajU"  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=818a67c798d6aeee18491472b3483ab4905fd093jW"  X
  @@ -35,6 +35,7 @@
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore.CommitTimestampProvider;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
@@ -45,6 +46,7 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
@@ -55,6 +57,9 @@
 
 public final class AtlasDbTransactionStoreTest {
 
+    private static final long START_TS = 1;
+    private static final long COMMIT_TS = 2;
+
     private TransactionManager manager;
 
     private AtlasDbTransactionStore store;
@@ -145,4 +150,28 @@ public void readWriteHandlesReadOnlyTransaction() {
         assertThat(witnessedTransaction).isPresent();
         assertThat(witnessedTransaction.get().commitTimestamp()).isEmpty();
     }
+
+    @Test
+    public void getCommitTimestampIsEmptyWhenMatchesStartTimestamp() {
+        CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();
+        commitTimestampProvider.throwIfConditionInvalid(START_TS);
+        assertThat(commitTimestampProvider.getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .isEmpty();
+    }
+
+    @Test
+    public void getCommitTimestampThrowsWhenNoTimestampSet() {
+        assertThatThrownBy(() -> new CommitTimestampProvider().getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining(
+                        "Timestamp has not been set, which means the pre commit condition has never been executed");
+    }
+
+    @Test
+    public void getCommitTimestampReturnsPresentWhenCommitAndStartTimestampMismatch() {
+        CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();
+        commitTimestampProvider.throwIfConditionInvalid(COMMIT_TS);
+        assertThat(commitTimestampProvider.getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .hasValue(COMMIT_TS);
+    }
 }ueu(36d2e0586eb1972f0cac8d0167a909609c0275f9}(sha(36d2e0586eb1972f0cac8d0167a909609c0275f9node_idEC_kwDOAjP5fdoAKDM2ZDJlMDU4NmViMTk3MmYwY2FjOGQwMTY3YTkwOTYwOWMwMjc1Zjkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-24T15:28:10Zu	committer}(jk"  
Ahmed Alouanejm"  aalouane@palantir.comjo"  2023-04-24T15:28:10Zumessagenot againnntree}(jc"  (013130cf8af59767057a9bf839587fe708f8289furl`https://api.github.com/repos/palantir/atlasdb/git/trees/013130cf8af59767057a9bf839587fe708f8289fuj{"  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/36d2e0586eb1972f0cac8d0167a909609c0275f9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRGoAoACgkQPlMHVIT1
yhrIEQf9EbPfaeln6tRXnh2pz9drCuBjOl6iyqxGncBATUh0y2TVvyLA2bEuDvc1
Z+aFuKdkIJXUtSe6x11nr1ooGqT5jEj43VzxbRwreK1Auuc7UlndxT2JVtW+o06V
SpWyh/h1f6pAH1EfcxOnvj/5FKNpbzFS9d02Ji7rT5LPxBXxWS8uMsNbLsrdIU8o
uP7whvLjv5kBpvbMQe+wwhlRrn9fbOvj8VgPwc6jYRv83jPJuxrIGN2JdWuhudeB
HTstKl8M940aZR15iaJpjHyNnObC2PdSPpOlUHQ45sF2OVPt5iSdKwFKE800Zpwq
xl8WFcVUtuWxp0TJBip2wUqn9qODsA==
=G71x
-----END PGP SIGNATURE-----payloadtree 013130cf8af59767057a9bf839587fe708f8289f
parent 42946d8eb3f479956aa4ce8b9c4e4e595c9f5954
author Ahmed Alouane <aalouane@palantir.com> 1682350090 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682350090 +0100

not againnn
uuj{"  ^https://api.github.com/repos/palantir/atlasdb/commits/36d2e0586eb1972f0cac8d0167a909609c0275f9html_urlShttps://github.com/palantir/atlasdb/commit/36d2e0586eb1972f0cac8d0167a909609c0275f9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/36d2e0586eb1972f0cac8d0167a909609c0275f9/commentsji"  }(loginergo14idJje"  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j{"  #https://api.github.com/users/ergo14j"  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujq"  }(j"  ergo14j"  Jje"  MDQ6VXNlcjMwOTAzNzM2j"  4https://avatars.githubusercontent.com/u/30903736?v=4j"  h5j{"  #https://api.github.com/users/ergo14j"  https://github.com/ergo14j"  -https://api.github.com/users/ergo14/followersj"  :https://api.github.com/users/ergo14/following{/other_user}j"  3https://api.github.com/users/ergo14/gists{/gist_id}j"  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j"  1https://api.github.com/users/ergo14/subscriptionsj"  (https://api.github.com/users/ergo14/orgsj"  )https://api.github.com/users/ergo14/reposj"  4https://api.github.com/users/ergo14/events{/privacy}j"  3https://api.github.com/users/ergo14/received_eventsj"  Userj"  uparents]}(jc"  (42946d8eb3f479956aa4ce8b9c4e4e595c9f5954j{"  ^https://api.github.com/repos/palantir/atlasdb/commits/42946d8eb3f479956aa4ce8b9c4e4e595c9f5954j"  Shttps://github.com/palantir/atlasdb/commit/42946d8eb3f479956aa4ce8b9c4e4e595c9f5954uastats}(totalK	additionsK	deletionsKufiles]}(jc"  (23613a7958bfb2b4675761086d136a62f5638d1efilename%scripts/circle-ci/run-circle-tests.shstatusmodifiedj"  Kj"  KchangesKblob_url{https://github.com/palantir/atlasdb/blob/36d2e0586eb1972f0cac8d0167a909609c0275f9/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/36d2e0586eb1972f0cac8d0167a909609c0275f9/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=36d2e0586eb1972f0cac8d0167a909609c0275f9patchX
  @@ -55,7 +55,8 @@ CONTAINER_17=(':atlasdb-perf:check')
 IGNORED=(':atlasdb-ete-tests:timeLockMigrationTest' ':atlasdb-cassandra-integration-tests:check')
 
 # Container 0 - runs tasks not found in the below containers
-CONTAINER_0_EXCLUDE=("${IGNORED}" "${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}" "${CONTAINER_11[@]}" "${CONTAINER_12[@]}" "${CONTAINER_13[@]}" "${CONTAINER_14[@]}" "${CONTAINER_15[@]}" "${CONTAINER_16[@]}" "${CONTAINER_17[@]}")
+CONTAINER_0_EXCLUDE=("${IGNORED[@]}" "${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}" "${CONTAINER_11[@]}" "${CONTAINER_12[@]}" "${CONTAINER_13[@]}" "${CONTAINER_14[@]}" "${CONTAINER_15[@]}" "${CONTAINER_16[@]}" "${CONTAINER_17[@]}")
+
 
 for task in "${CONTAINER_0_EXCLUDE[@]}"
 douau(40bd99fb7ac1441b5345c620c8664b8bb0e928ac}(sha(40bd99fb7ac1441b5345c620c8664b8bb0e928acnode_idEC_kwDOAjP5fdoAKDQwYmQ5OWZiN2FjMTQ0MWI1MzQ1YzYyMGM4NjY0YjhiYjBlOTI4YWMcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-08T20:52:37Zu	committer}(j"  	Tom Papkej"  tpapke@palantir.comj"  2023-06-09T09:09:02ZumessageAdd optional lock server option to enable thread info snapshotter and set interval duration

Add initial microbenchmark to measure performance impact of background runner.tree}(j"  (722ffbaa58f12d190ba090bb0d01907ade353a3eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/722ffbaa58f12d190ba090bb0d01907ade353a3euj"  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/40bd99fb7ac1441b5345c620c8664b8bb0e928ac
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSC7C4ACgkQmF9s0kaF
Iw3nfAf/TSrh8Ld4jKzwsSZxV4gPJUPEEXr2GGYFH+JIg29n5xIJTuo8V11ynD5l
XMX/3EKzFLaNVTRoM6JqJnv7wgn3SpZtOzDgX4IZS1WQzx/K5pfdgIow4VsaaZNR
67aE79yWASnmw17CM3XedyOWs39uf0lTiB9S1SqzjVdwUU4nCYzK6i7YRSeLF+WV
NznmOW4JFwUXjtfXXKMvFjV2J4jFTQ1Mgvs/sRl/QP7LoW5YwA8+Id2CqCg+aLFD
6PethAB56PA0UfZQirgeWSfA//nQoxMDuz+wM1YoKADWzGXAVM/lPTwHPW301xao
syp+MlRT9pVQc4jL7f3U+W8950+Yjg==
=nqzN
-----END PGP SIGNATURE-----payloadX~  tree 722ffbaa58f12d190ba090bb0d01907ade353a3e
parent 69c94cfcbad0a24999a43b2ff3884ddad671e8a1
author Tom Papke <tpapke@palantir.com> 1686257557 +0100
committer Tom Papke <tpapke@palantir.com> 1686301742 +0100

Add optional lock server option to enable thread info snapshotter and set interval duration

Add initial microbenchmark to measure performance impact of background runner.
uuj"  ^https://api.github.com/repos/palantir/atlasdb/commits/40bd99fb7ac1441b5345c620c8664b8bb0e928achtml_urlShttps://github.com/palantir/atlasdb/commit/40bd99fb7ac1441b5345c620c8664b8bb0e928accomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/40bd99fb7ac1441b5345c620c8664b8bb0e928ac/commentsj"  }(login	ToemmscheidJboj"  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j"  &https://api.github.com/users/Toemmschej #  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj"  }(j#  	Toemmschej#  Jboj"  MDQ6VXNlcjQzNjc1NDkwj	#  4https://avatars.githubusercontent.com/u/43675490?v=4j#  h5j"  &https://api.github.com/users/Toemmschej #  https://github.com/Toemmschej#  0https://api.github.com/users/Toemmsche/followersj#  =https://api.github.com/users/Toemmsche/following{/other_user}j#  6https://api.github.com/users/Toemmsche/gists{/gist_id}j#  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j#  4https://api.github.com/users/Toemmsche/subscriptionsj#  +https://api.github.com/users/Toemmsche/orgsj#  ,https://api.github.com/users/Toemmsche/reposj#  7https://api.github.com/users/Toemmsche/events{/privacy}j#  6https://api.github.com/users/Toemmsche/received_eventsj #  Userj"#  uparents]}(j"  (69c94cfcbad0a24999a43b2ff3884ddad671e8a1j"  ^https://api.github.com/repos/palantir/atlasdb/commits/69c94cfcbad0a24999a43b2ff3884ddad671e8a1j #  Shttps://github.com/palantir/atlasdb/commit/69c94cfcbad0a24999a43b2ff3884ddad671e8a1uastats}(totalM5	additionsM	deletionsKufiles](}(j"  (d0fc5280ef1d4b2466d0f6986d92aa2a5f4e126ffilenamebuild.gradlestatusmodifiedj<#  Kj=#  K changesKblob_url^https://github.com/palantir/atlasdb/blob/40bd99fb7ac1441b5345c620c8664b8bb0e928ac/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/40bd99fb7ac1441b5345c620c8664b8bb0e928ac/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=40bd99fb7ac1441b5345c620c8664b8bb0e928acpatchXG  @@ -26,6 +26,7 @@ buildscript {
         classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'
         classpath 'org.unbroken-dome.gradle-plugins:gradle-testsets-plugin:4.0.0'
         classpath 'com.palantir.gradle.revapi:gradle-revapi:1.7.0'
+        classpath 'me.champeau.jmh:jmh-gradle-plugin:0.6.6'
     }
 }
 u}(j"  (ea2bcf8dc255e0bed5d47cf7a3625ab6ddc42777jB#  ?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javajD#  modifiedj<#  Kj=#  KjF#  K jG#  https://github.com/palantir/atlasdb/blob/40bd99fb7ac1441b5345c620c8664b8bb0e928ac/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javajI#  https://github.com/palantir/atlasdb/raw/40bd99fb7ac1441b5345c620c8664b8bb0e928ac/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javajK#  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=40bd99fb7ac1441b5345c620c8664b8bb0e928acjM#  X
  @@ -16,6 +16,7 @@
 package com.palantir.lock;
 
 import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.google.common.base.MoreObjects;
@@ -126,6 +127,27 @@ public long slowLogTriggerMillis() {
         return 10000L;
     }
 
+    /**
+     * Whether the lock server should asynchronously collect information
+     * about which lock is currently owned by which client-thread.
+     */
+    @JsonProperty("collectThreadInfo")
+    @JsonIgnore
+    @Value.Default
+    public boolean collectThreadInfo() {
+        return false;
+    }
+
+    /**
+     * If collection is enabled, returns the interval at which snapshots about the current lock state are created.
+     */
+    @JsonProperty("threadInfoSnapshotInterval")
+    @JsonIgnore
+    @Value.Default
+    public TimeDuration threadInfoSnapshotInterval() {
+        return SimpleTimeDuration.of(5, TimeUnit.SECONDS);
+    }
+
     @Override
     public boolean equals(@Nullable Object obj) {
         if (this == obj) {
@@ -142,7 +164,9 @@ && getRandomBitCount() == other.getRandomBitCount()
                 && Objects.equals(getMaxAllowedClockDrift(), other.getMaxAllowedClockDrift())
                 && Objects.equals(getMaxAllowedBlockingDuration(), other.getMaxAllowedBlockingDuration())
                 && Objects.equals(getMaxNormalLockAge(), other.getMaxNormalLockAge())
-                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout());
+                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout())
+                && collectThreadInfo() == other.collectThreadInfo()
+                && Objects.equals(threadInfoSnapshotInterval(), other.threadInfoSnapshotInterval());
     }
 
     @Override
@@ -155,7 +179,9 @@ public int hashCode() {
                 getMaxNormalLockAge(),
                 getRandomBitCount(),
                 getStuckTransactionTimeout(),
-                slowLogTriggerMillis());
+                slowLogTriggerMillis(),
+                collectThreadInfo(),
+                threadInfoSnapshotInterval());
     }
 
     @Override
@@ -169,6 +195,8 @@ public String toString() {
                 .add("randomBitCount", getRandomBitCount())
                 .add("stuckTransactionTimeout", getStuckTransactionTimeout())
                 .add("slowLogTriggerMillis", slowLogTriggerMillis())
+                .add("collectThreadInfo", collectThreadInfo())
+                .add("threadInfoSnapshotInterval", threadInfoSnapshotInterval())
                 .toString();
     }
 u}(j"  (af91993fdd3f1b0aae5ac31d34f90f6564ae8023jB#  lock-benchmark/build.gradlejD#  addedj<#  Kj=#  K jF#  KjG#  ohttps://github.com/palantir/atlasdb/blob/40bd99fb7ac1441b5345c620c8664b8bb0e928ac/lock-benchmark%2Fbuild.gradlejI#  nhttps://github.com/palantir/atlasdb/raw/40bd99fb7ac1441b5345c620c8664b8bb0e928ac/lock-benchmark%2Fbuild.gradlejK#  https://api.github.com/repos/palantir/atlasdb/contents/lock-benchmark%2Fbuild.gradle?ref=40bd99fb7ac1441b5345c620c8664b8bb0e928acjM#  X9  @@ -0,0 +1,17 @@
+apply from: "../gradle/shared.gradle"
+apply plugin: 'me.champeau.jmh'
+
+dependencies {
+    jmhImplementation project(path: ':lock-impl')
+    jmhImplementation project(path: ':lock-api')
+
+    jmhAnnotationProcessor 'org.immutables:value'
+    jmhAnnotationProcessor 'org.openjdk.jmh:jmh-generator-annprocess'
+
+    compileOnly 'org.openjdk.jmh:jmh-generator-annprocess'
+}
+
+tasks.jmhCompileGeneratedClasses {
+    options.annotationProcessorPath = configurations.errorprone
+    options.errorprone.enabled = true
+}
\ No newline at end of fileu}(j"  (d6e2ee873a135661fd5e02efeaf6155f30904b19jB#  Jlock-benchmark/src/jmh/java/com/palantir/atlasdb/LockServiceBenchmark.javajD#  addedj<#  KAj=#  K jF#  KAjG#  https://github.com/palantir/atlasdb/blob/40bd99fb7ac1441b5345c620c8664b8bb0e928ac/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FLockServiceBenchmark.javajI#  https://github.com/palantir/atlasdb/raw/40bd99fb7ac1441b5345c620c8664b8bb0e928ac/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FLockServiceBenchmark.javajK#  https://api.github.com/repos/palantir/atlasdb/contents/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FLockServiceBenchmark.java?ref=40bd99fb7ac1441b5345c620c8664b8bb0e928acjM#  X	  @@ -0,0 +1,65 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb;
+
+import com.palantir.atlasdb.state.LockServiceBenchmarkState;
+import com.palantir.atlasdb.state.ThreadIndex;
+import com.palantir.lock.LockClient;
+import com.palantir.lock.LockRequest;
+import com.palantir.lock.LockResponse;
+import com.palantir.lock.LockService;
+import org.openjdk.jmh.annotations.Benchmark;
+import org.openjdk.jmh.annotations.BenchmarkMode;
+import org.openjdk.jmh.annotations.Fork;
+import org.openjdk.jmh.annotations.Measurement;
+import org.openjdk.jmh.annotations.Mode;
+import org.openjdk.jmh.annotations.Threads;
+import org.openjdk.jmh.annotations.Warmup;
+
+@SuppressWarnings("checkstyle:HideUtilityClassConstructor")
+@Measurement(iterations = 2)
+@Warmup(iterations = 1)
+@Fork(2)
+public class LockServiceBenchmark {
+
+    @BenchmarkMode(Mode.Throughput)
+    @Benchmark
+    @Threads(4)
+    public int lockSleepUnlockMultiThreaded(LockServiceBenchmarkState state, ThreadIndex threadIndex) {
+        final LockClient client = LockClient.of("Benchmark Client " + threadIndex.getThreadId());
+        final LockService lockService = state.getLockService();
+        final LockRequest lockRequest = state.generateLockRequest();
+        try {
+            // acquire some locks
+            LockResponse lockResponse = lockService.lockWithFullLockResponse(client, lockRequest);
+
+            // pretend we are doing something with them ...
+            if (state.sleepMs > 0) {
+                Thread.sleep(state.sleepMs);
+            }
+
+            // give them back
+            if (lockResponse.getLockRefreshToken() != null) {
+                lockService.unlock(lockResponse.getLockRefreshToken());
+            }
+        } catch (InterruptedException e) {
+            throw new RuntimeException(e);
+        }
+
+        return lockRequest.getLocks().size();
+    }
+}u}(j"  (1c84958406b03b423a0072173464c9ca4e9eaaf5jB#  Ulock-benchmark/src/jmh/java/com/palantir/atlasdb/state/LockServiceBenchmarkState.javajD#  addedj<#  Kzj=#  K jF#  KzjG#  https://github.com/palantir/atlasdb/blob/40bd99fb7ac1441b5345c620c8664b8bb0e928ac/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.javajI#  https://github.com/palantir/atlasdb/raw/40bd99fb7ac1441b5345c620c8664b8bb0e928ac/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.javajK#  https://api.github.com/repos/palantir/atlasdb/contents/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.java?ref=40bd99fb7ac1441b5345c620c8664b8bb0e928acjM#  X  @@ -0,0 +1,122 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.state;
+
+import com.palantir.lock.LockClient;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.LockMode;
+import com.palantir.lock.LockRequest;
+import com.palantir.lock.LockServerOptions;
+import com.palantir.lock.SimpleTimeDuration;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.ThreadAwareCloseableLockService;
+import com.palantir.lock.impl.LockServiceImpl;
+import java.util.List;
+import java.util.Random;
+import java.util.SortedMap;
+import java.util.TreeMap;
+import java.util.concurrent.TimeUnit;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.openjdk.jmh.annotations.Param;
+import org.openjdk.jmh.annotations.Scope;
+import org.openjdk.jmh.annotations.Setup;
+import org.openjdk.jmh.annotations.State;
+
+@State(Scope.Benchmark)
+public class LockServiceBenchmarkState {
+    @Param({"true", "false"})
+    public boolean collectAndLogThreadInfo;
+
+    @Param("20")
+    public int locksPerRequest;
+
+    @Param({"50", "5", "0"})
+    public int sleepMs;
+
+    private Supplier<LockRequest> lockRequestSupplier;
+
+    public Random rand = new Random();
+
+    private ThreadAwareCloseableLockService lockService;
+
+    @Param("1000000")
+    public int numHeldLocksAtBeginning;
+
+    @Param("10000")
+    public int numAvailableLocks;
+
+    private List<LockDescriptor> heldLocksAtBeginning;
+
+    private List<LockDescriptor> availableLocks;
+
+    private LockRequest nonBlocking_asManyAsPossible_randomMode() {
+        SortedMap<LockDescriptor, LockMode> locks = new TreeMap<>();
+        for (int i = 0; i < locksPerRequest; i++) {
+            locks.put(
+                    this.getAvailableLocks()
+                            .get(rand.nextInt(getAvailableLocks().size())),
+                    Math.random() > 0.5 ? LockMode.READ : LockMode.WRITE);
+        }
+        return LockRequest.builder(locks).lockAsManyAsPossible().doNotBlock().build();
+    }
+
+    public void lockExclusively(LockDescriptor lockDescriptor) {
+        SortedMap<LockDescriptor, LockMode> locks = new TreeMap<>();
+        locks.put(lockDescriptor, LockMode.WRITE);
+        LockRequest lockRequest =
+                LockRequest.builder(locks).lockAsManyAsPossible().doNotBlock().build();
+        try {
+            lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest);
+        } catch (InterruptedException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    @Setup
+    public void setup() {
+        this.heldLocksAtBeginning = IntStream.range(0, numHeldLocksAtBeginning)
+                .mapToObj(i -> StringLockDescriptor.of(Integer.toString(i)))
+                .collect(Collectors.toList());
+        this.availableLocks = IntStream.range(0, numAvailableLocks)
+                .mapToObj(i -> StringLockDescriptor.of(Integer.toString(i)))
+                .collect(Collectors.toUnmodifiableList());
+        this.lockRequestSupplier = this::nonBlocking_asManyAsPossible_randomMode;
+        this.lockService = LockServiceImpl.create(LockServerOptions.builder()
+                .collectThreadInfo(collectAndLogThreadInfo)
+                // We want to measure the worst-case scenario where our background task is constantly running
+                .threadInfoSnapshotInterval(SimpleTimeDuration.of(0, TimeUnit.MILLISECONDS))
+                .isStandaloneServer(false)
+                .build());
+        for (LockDescriptor lock : heldLocksAtBeginning) {
+            lockExclusively(lock);
+        }
+    }
+
+    public ThreadAwareCloseableLockService getLockService() {
+        return this.lockService;
+    }
+
+    public List<LockDescriptor> getAvailableLocks() {
+        return this.availableLocks;
+    }
+
+    public LockRequest generateLockRequest() {
+        return this.lockRequestSupplier.get();
+    }
+}u}(j"  (e8124e8a312da672e91eac0772ee0b55d5a6f09ajB#  Glock-benchmark/src/jmh/java/com/palantir/atlasdb/state/ThreadIndex.javajD#  addedj<#  Kj=#  K jF#  KjG#  https://github.com/palantir/atlasdb/blob/40bd99fb7ac1441b5345c620c8664b8bb0e928ac/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FThreadIndex.javajI#  https://github.com/palantir/atlasdb/raw/40bd99fb7ac1441b5345c620c8664b8bb0e928ac/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FThreadIndex.javajK#  https://api.github.com/repos/palantir/atlasdb/contents/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FThreadIndex.java?ref=40bd99fb7ac1441b5345c620c8664b8bb0e928acjM#  XN  @@ -0,0 +1,31 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.state;
+
+import java.util.concurrent.atomic.AtomicInteger;
+import org.openjdk.jmh.annotations.Scope;
+import org.openjdk.jmh.annotations.State;
+
+@State(Scope.Thread)
+public class ThreadIndex {
+    private static final AtomicInteger THREAD_INDEX = new AtomicInteger(0);
+    private final int id = THREAD_INDEX.getAndIncrement();
+
+    public int getThreadId() {
+        return this.id;
+    }
+}u}(j"  (b92687edde97ea4de7e4a7ec085c4f60ae9f1e81jB#  Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javajD#  modifiedj<#  Kj=#  KjF#  K
jG#  https://github.com/palantir/atlasdb/blob/40bd99fb7ac1441b5345c620c8664b8bb0e928ac/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javajI#  https://github.com/palantir/atlasdb/raw/40bd99fb7ac1441b5345c620c8664b8bb0e928ac/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javajK#  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=40bd99fb7ac1441b5345c620c8664b8bb0e928acjM#  X  @@ -86,6 +86,7 @@
 import com.palantir.nylon.threads.ThreadNames;
 import com.palantir.util.JMXUtils;
 import com.palantir.util.Ownable;
+import com.palantir.util.Pair;
 import java.math.BigInteger;
 import java.time.Instant;
 import java.util.ArrayDeque;
@@ -280,9 +281,10 @@ private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable
         this.slowLogTriggerMillis = options.slowLogTriggerMillis();
 
         // thread info collection is off by default
-        this.collectThreadInfo = false;
-        this.threadInfoSnapshotInterval = SimpleTimeDuration.of(5, TimeUnit.SECONDS);
-        this.threadInfoSnapshotRunner = Optional.empty();
+        this.collectThreadInfo = options.collectThreadInfo();
+        this.threadInfoSnapshotInterval = SimpleTimeDuration.of(options.threadInfoSnapshotInterval());
+        this.threadInfoSnapshotRunner =
+                collectThreadInfo ? Optional.of(new ThreadInfoSnapshotRunner(executor)) : Optional.empty();
     }
 
     private HeldLocksToken createHeldLocksToken(
@@ -1349,8 +1351,6 @@ private LockReapRunner(Ownable<ExecutorService> executor) {
 
     private final class ThreadInfoSnapshotRunner extends LockServiceRunner {
 
-        // TODO Remove this suppression once the background runner can be enabled via configuration.
-        @SuppressWarnings("UnusedMethod")
         private ThreadInfoSnapshotRunner(Ownable<ExecutorService> executor) {
             super(executor);
 u     }(j"  (90f3f2bf8a4753f9c32b3573d74d519599635940jB#  Rlock-impl/src/test/java/com/palantir/lock/impl/ThreadAwareLockServiceImplTest.javajD#  modifiedj<#  Kj=#  KjF#  KjG#  https://github.com/palantir/atlasdb/blob/40bd99fb7ac1441b5345c620c8664b8bb0e928ac/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.javajI#  https://github.com/palantir/atlasdb/raw/40bd99fb7ac1441b5345c620c8664b8bb0e928ac/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.javajK#  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.java?ref=40bd99fb7ac1441b5345c620c8664b8bb0e928acjM#  X  @@ -29,6 +29,7 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.ThreadAwareCloseableLockService;
 import com.palantir.lock.ThreadAwareLockClient;
 import java.util.HashMap;
 import java.util.List;
@@ -37,7 +38,6 @@
 import java.util.concurrent.Callable;
 import java.util.concurrent.CyclicBarrier;
 import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Future;
 import java.util.concurrent.TimeUnit;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
@@ -47,8 +47,10 @@
 public class ThreadAwareLockServiceImplTest {
 
     // Disable background thread info collection by default, it will be invoked manually instead
-    private final LockServiceImpl lockService = LockServiceImpl.create(
-            LockServerOptions.builder().isStandaloneServer(false).build());
+    private final LockServiceImpl lockService = LockServiceImpl.create(LockServerOptions.builder()
+            .isStandaloneServer(false)
+            .collectThreadInfo(false)
+            .build());
 
     private final ExecutorService executor =
             PTExecutors.newCachedThreadPool(ThreadAwareLockServiceImplTest.class.getName());
@@ -246,28 +248,25 @@ public void collectsCorrectStateAfterMultipleOperations() throws Exception {
 
     @Test
     public void backgroundCollectionWorks() throws InterruptedException {
-        // TODO this simulates the running background snapshotting task and should be replaced with the creation of a
-        // properly configured LockServiceImpl once everything has been wired together
-        Future<Void> future = executor.submit(() -> {
-            while (true) {
-                lockService.updateThreadInfoSnapshot();
-                Thread.sleep(100);
-            }
-        });
+        final ThreadAwareCloseableLockService lockWithServiceWithBackgroundRunner =
+                LockServiceImpl.create(LockServerOptions.builder()
+                        .isStandaloneServer(false)
+                        .collectThreadInfo(true)
+                        .threadInfoSnapshotInterval(SimpleTimeDuration.of(100, TimeUnit.MILLISECONDS))
+                        .build());
 
         LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
                 .withCreatingThreadName(TEST_THREAD_1)
                 .build();
-        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest);
+
+        lockWithServiceWithBackgroundRunner.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest);
 
         Awaitility.await("wait for background runner to take a snapshot")
                 .atMost(500, TimeUnit.MILLISECONDS)
                 .untilAsserted(() -> {
-                    assertThat(lockService.getLastKnownThreadInfoSnapshot())
+                    assertThat(lockWithServiceWithBackgroundRunner.getLastKnownThreadInfoSnapshot())
                             .containsExactly(
                                     Map.entry(TEST_LOCK_1, ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_1)));
                 });
-
-        future.cancel(true);
     }
 }u}(j"  (64532f4aa46d1ff81f1c4b7559611549c717d445jB#  settings.gradlejD#  modifiedj<#  Kj=#  K jF#  KjG#  ahttps://github.com/palantir/atlasdb/blob/40bd99fb7ac1441b5345c620c8664b8bb0e928ac/settings.gradlejI#  `https://github.com/palantir/atlasdb/raw/40bd99fb7ac1441b5345c620c8664b8bb0e928ac/settings.gradlejK#  shttps://api.github.com/repos/palantir/atlasdb/contents/settings.gradle?ref=40bd99fb7ac1441b5345c620c8664b8bb0e928acjM#  X  @@ -54,6 +54,7 @@ include ":leader-election-api-protobufs"
 include ":leader-election-impl"
 include ":lock-api"
 include ":lock-api-objects"
+include ":lock-benchmark"
 include ":lock-conjure-api"
 include ":lock-conjure-api:lock-conjure-api-undertow"
 include ":lock-conjure-api:lock-conjure-api-jersey"
@@ -94,3 +95,4 @@ gradleEnterprise {
         uploadInBackground = !isCiServer
     }
 }
+ueu(f392ec2dbef414a4c90f416b777f13ed7d07d10d}(sha(f392ec2dbef414a4c90f416b777f13ed7d07d10dnode_idEC_kwDOAjP5fdoAKGYzOTJlYzJkYmVmNDE0YTRjOTBmNDE2Yjc3N2YxM2VkN2QwN2QxMGQcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-08-08T11:16:27Zu	committer}(j#  GitHubj#  noreply@github.comj#  2023-08-08T11:16:27ZumessageUpdate atlasdb-commons/src/main/java/com/palantir/leader/MaybeNotCurrentLeaderException.java

Co-authored-by: David Schlosnagle <davids@palantir.com>tree}(j#  (53abbc522b5f80b04e1f705c3ee0794d2198288aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/53abbc522b5f80b04e1f705c3ee0794d2198288auj#  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f392ec2dbef414a4c90f416b777f13ed7d07d10d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk0iQLCRBK7hj4Ov3rIwAApEMIABzMiH3qLOHr6xVYFvb9BhsL
nvSKtlVsBxe7512+RtUdwFGNuzAIissgOO8ARlE1YI2emsaUJZzC2QOk6FqKs/IM
DhhWH8y80VfFYvcx3XXAPn0IKYXcoXQRlAlHI36oefpVFdkpRu6cd7ECHqgQB0ve
RErUyXsl8WiDbnVaVduGWrfqElKmDtlkeOWzLWKsppnvEW9AqGHxk3c8yIMMfvPe
gd2yweiS6Dy0VbC6bOAKWkjh5lymbinPtWKMiToM0aU7BusIfff+JRaBtBJH+9Yr
Oe5IQx4+U1K9o/ns93OUgn6bs9v3TyPTvUwkoPvadb+yI/bHTm2Ro+4bE4sVAZw=
=Qec6
-----END PGP SIGNATURE-----
payloadXg  tree 53abbc522b5f80b04e1f705c3ee0794d2198288a
parent 2416ac46311282fa603c4713308c311f2dc6f712
author Sam-Kramer <sam.c.kramer@gmail.com> 1691493387 +0100
committer GitHub <noreply@github.com> 1691493387 +0100

Update atlasdb-commons/src/main/java/com/palantir/leader/MaybeNotCurrentLeaderException.java

Co-authored-by: David Schlosnagle <davids@palantir.com>uuj#  ^https://api.github.com/repos/palantir/atlasdb/commits/f392ec2dbef414a4c90f416b777f13ed7d07d10dhtml_urlShttps://github.com/palantir/atlasdb/commit/f392ec2dbef414a4c90f416b777f13ed7d07d10dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f392ec2dbef414a4c90f416b777f13ed7d07d10d/commentsj#  }(login
Sam-KrameridJ^2_ j#  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j#  'https://api.github.com/users/Sam-Kramerj#  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj#  }(j#  web-flowj#  J/j#  MDQ6VXNlcjE5ODY0NDQ3j#  4https://avatars.githubusercontent.com/u/19864447?v=4j#  h5j#  %https://api.github.com/users/web-flowj#  https://github.com/web-flowj#  /https://api.github.com/users/web-flow/followersj#  <https://api.github.com/users/web-flow/following{/other_user}j#  5https://api.github.com/users/web-flow/gists{/gist_id}j#  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j#  3https://api.github.com/users/web-flow/subscriptionsj#  *https://api.github.com/users/web-flow/orgsj#  +https://api.github.com/users/web-flow/reposj#  6https://api.github.com/users/web-flow/events{/privacy}j#  5https://api.github.com/users/web-flow/received_eventsj#  Userj#  uparents]}(j#  (2416ac46311282fa603c4713308c311f2dc6f712j#  ^https://api.github.com/repos/palantir/atlasdb/commits/2416ac46311282fa603c4713308c311f2dc6f712j#  Shttps://github.com/palantir/atlasdb/commit/2416ac46311282fa603c4713308c311f2dc6f712uastats}(totalK	additionsK	deletionsKufiles]}(j#  (c975ac1def1f4843dc98071313e3453f682e1c2bfilenameUatlasdb-commons/src/main/java/com/palantir/leader/MaybeNotCurrentLeaderException.javastatusmodifiedj#  Kj#  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/f392ec2dbef414a4c90f416b777f13ed7d07d10d/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2FMaybeNotCurrentLeaderException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f392ec2dbef414a4c90f416b777f13ed7d07d10d/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2FMaybeNotCurrentLeaderException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2FMaybeNotCurrentLeaderException.java?ref=f392ec2dbef414a4c90f416b777f13ed7d07d10dpatchX  @@ -35,7 +35,7 @@ public final class MaybeNotCurrentLeaderException extends NotCurrentLeaderExcept
     public MaybeNotCurrentLeaderException(@CompileTimeConstant String message, List<Arg<?>> args) {
         super(message);
         this.message = message;
-        this.args = args;
+        this.args = ImmutableList.copyOf(args);
     }
 
     public MaybeNotCurrentLeaderException(@CompileTimeConstant String message, Arg<?>... args) {uau(7362f2f8b3b1b8a6ebb9a9cdd1fe6b80505b9a88}(sha(7362f2f8b3b1b8a6ebb9a9cdd1fe6b80505b9a88node_idEC_kwDOAjP5fdoAKDczNjJmMmY4YjNiMWI4YTZlYmI5YTljZGQxZmU2YjgwNTA1YjlhODgcommit}(author}(name
jumi99-githubemail0117930732+jumi99-github@users.noreply.github.comdate2023-03-31T13:02:15Zu	committer}(j$  GitHubj$  noreply@github.comj$  2023-03-31T13:02:15Zumessagebump postgres (#6496)tree}(j$  (ed8a985ad85c55aa45c8e0489689fe1423b12988url`https://api.github.com/repos/palantir/atlasdb/git/trees/ed8a985ad85c55aa45c8e0489689fe1423b12988uj $  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7362f2f8b3b1b8a6ebb9a9cdd1fe6b80505b9a88
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkJtnXCRBK7hj4Ov3rIwAAyMkIAHDWACXrIy3qdpv5+pHOirKq
zDxb/2l+/Ab/ra/3Pb2xTh/hw93pAbZKf9ojdcvAEsuX7tXhX3cZ9gX4nqV1N9rd
bOHYJeZyOK9Qc6Q/TW0MFYcawIEql/acIHjyoqnBLmvb0ZxIe7oGNI2HlGeOKJbI
4sAxrqZw00J6s18PbKhxJApx7gfNKOSLR35bj6duae7E9Syp9CESJMN9Tu/yZKS9
4iI7GGqrwYBlBQpQ1O57M1jOib5W/gb1vNtoUtYDdC4uI0Y+yBCDCNIH4UgeUpcp
m2/7K649ox3gsVuxTLBhvpFLZfnoBDENS55DboGewMGBRegLRylC/5shWjgVnBI=
=H+Bg
-----END PGP SIGNATURE-----
payloadX  tree ed8a985ad85c55aa45c8e0489689fe1423b12988
parent 7cc5501bd242badcf433815b00b31d3574efa99c
author jumi99-github <117930732+jumi99-github@users.noreply.github.com> 1680267735 +0200
committer GitHub <noreply@github.com> 1680267735 +0000

bump postgres (#6496)

 uuj $  ^https://api.github.com/repos/palantir/atlasdb/commits/7362f2f8b3b1b8a6ebb9a9cdd1fe6b80505b9a88html_urlShttps://github.com/palantir/atlasdb/commit/7362f2f8b3b1b8a6ebb9a9cdd1fe6b80505b9a88comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7362f2f8b3b1b8a6ebb9a9cdd1fe6b80505b9a88/commentsj$  }(login
jumi99-githubidJzj
$  U_kgDOBwd67A
avatar_url5https://avatars.githubusercontent.com/u/117930732?v=4gravatar_idh5j $  *https://api.github.com/users/jumi99-githubj.$   https://github.com/jumi99-github
followers_url4https://api.github.com/users/jumi99-github/followers
following_urlAhttps://api.github.com/users/jumi99-github/following{/other_user}	gists_url:https://api.github.com/users/jumi99-github/gists{/gist_id}starred_urlAhttps://api.github.com/users/jumi99-github/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/jumi99-github/subscriptionsorganizations_url/https://api.github.com/users/jumi99-github/orgs	repos_url0https://api.github.com/users/jumi99-github/repos
events_url;https://api.github.com/users/jumi99-github/events{/privacy}received_events_url:https://api.github.com/users/jumi99-github/received_eventstypeUser
site_adminuj$  }(j3$  web-flowj5$  J/j
$  MDQ6VXNlcjE5ODY0NDQ3j7$  4https://avatars.githubusercontent.com/u/19864447?v=4j9$  h5j $  %https://api.github.com/users/web-flowj.$  https://github.com/web-flowj<$  /https://api.github.com/users/web-flow/followersj>$  <https://api.github.com/users/web-flow/following{/other_user}j@$  5https://api.github.com/users/web-flow/gists{/gist_id}jB$  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jD$  3https://api.github.com/users/web-flow/subscriptionsjF$  *https://api.github.com/users/web-flow/orgsjH$  +https://api.github.com/users/web-flow/reposjJ$  6https://api.github.com/users/web-flow/events{/privacy}jL$  5https://api.github.com/users/web-flow/received_eventsjN$  UserjP$  uparents]}(j$  (7cc5501bd242badcf433815b00b31d3574efa99cj $  ^https://api.github.com/repos/palantir/atlasdb/commits/7cc5501bd242badcf433815b00b31d3574efa99cj.$  Shttps://github.com/palantir/atlasdb/commit/7cc5501bd242badcf433815b00b31d3574efa99cuastats}(totalK		additionsK	deletionsKufiles](}(j$  (362f242519ecfa9cf598fb9dcff80dc55b91c4b9filename$changelog/@unreleased/pr-6496.v2.ymlstatusaddedjj$  Kjk$  K changesKblob_url|https://github.com/palantir/atlasdb/blob/7362f2f8b3b1b8a6ebb9a9cdd1fe6b80505b9a88/changelog%2F%40unreleased%2Fpr-6496.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/7362f2f8b3b1b8a6ebb9a9cdd1fe6b80505b9a88/changelog%2F%40unreleased%2Fpr-6496.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6496.v2.yml?ref=7362f2f8b3b1b8a6ebb9a9cdd1fe6b80505b9a88patch@@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: Upgraded Postgres from 42.4.1 -> 42.4.3 to resolve a CVE.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6496u}(j$  (525fdb350bc2f8468190f9bf23e6e9e078f1e0ddjp$  
versions.lockjr$  modifiedjj$  Kjk$  Kjt$  Kju$  _https://github.com/palantir/atlasdb/blob/7362f2f8b3b1b8a6ebb9a9cdd1fe6b80505b9a88/versions.lockjw$  ^https://github.com/palantir/atlasdb/raw/7362f2f8b3b1b8a6ebb9a9cdd1fe6b80505b9a88/versions.lockjy$  qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=7362f2f8b3b1b8a6ebb9a9cdd1fe6b80505b9a88j{$  X  @@ -302,7 +302,7 @@ org.ow2.asm:asm-analysis:5.0.3 (1 constraints: ee09d4b2)
 org.ow2.asm:asm-commons:5.0.3 (1 constraints: ee09d4b2)
 org.ow2.asm:asm-tree:5.0.3 (4 constraints: d8272223)
 org.ow2.asm:asm-util:5.0.3 (1 constraints: ee09d4b2)
-org.postgresql:postgresql:42.4.1 (1 constraints: 3d05503b)
+org.postgresql:postgresql:42.4.3 (1 constraints: 3f05523b)
 org.reflections:reflections:0.10.2 (1 constraints: 3505253b)
 org.rocksdb:rocksdbjni:7.7.3 (1 constraints: 13052636)
 org.slf4j:jcl-over-slf4j:1.7.36 (3 constraints: 492febed)u}(j$  (29db6add2c347830a5429215a06b16b4c54fe914jp$  versions.propsjr$  modifiedjj$  Kjk$  Kjt$  Kju$  `https://github.com/palantir/atlasdb/blob/7362f2f8b3b1b8a6ebb9a9cdd1fe6b80505b9a88/versions.propsjw$  _https://github.com/palantir/atlasdb/raw/7362f2f8b3b1b8a6ebb9a9cdd1fe6b80505b9a88/versions.propsjy$  rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=7362f2f8b3b1b8a6ebb9a9cdd1fe6b80505b9a88j{$  XU  @@ -96,7 +96,7 @@ ch.qos.logback:* = 1.2.11
 com.datastax.cassandra:cassandra-driver-core = 3.8.0
 com.oracle.database.jdbc:ojdbc11 = 21.5.0.0
 com.palantir.cassandra:* = 2.2.18-1.108.0
-org.postgresql:postgresql = 42.4.1
+org.postgresql:postgresql = 42.4.3
 
 # transitive dep with API breaks in 0.14.0
 org.apache.thrift:libthrift = 0.17.0ueu(13e7f7b901ffa9d684e50e5df34aa961977351b0}(sha(13e7f7b901ffa9d684e50e5df34aa961977351b0node_idEC_kwDOAjP5fdoAKDEzZTdmN2I5MDFmZmE5ZDY4NGU1MGU1ZGYzNGFhOTYxOTc3MzUxYjAcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-16T21:58:15Zu	committer}(j$  Jeremy Kongj$  jkong@palantir.comj$  2023-05-16T21:58:15Zumessagesingle busy celltree}(j$  (4610b1e3e51092b33b47df71a1cc791b36a993b0url`https://api.github.com/repos/palantir/atlasdb/git/trees/4610b1e3e51092b33b47df71a1cc791b36a993b0uj$  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/13e7f7b901ffa9d684e50e5df34aa961977351b0
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRj/HcACgkQTLdFKain
zjzsyQgAqNj66WbLeCbqg4szGNbM1GhtYIizQlQ+CS8WkMxEUXlnviwoFcCY5nMG
qxY3YNbqJ/xta3EOqPKyn1P3PhPnfbj4eaF5WmlRKRizxPtb1FPJrezcBoSjDfg4
xpyRAddLtcWW8s8WaMfbNr9oTeG5pm816HvcnL330/kO3iUALYQlNuB3mThu6bDr
CZIPpuTxjdzctJj109Eqj9hpY6do0uPTyC/Z/iP9y/lKhW1j1rqs+v7Nnl8FZXSA
yhVvoNu1iW3SUpYobiZvDI5Tv7aatgZx0P+/E7bmiTTBVeuYZzvcMnoBvVhCwerG
9FeATNmc0Jlda5qOHKaUe+hUDvlQ7g==
=Q3u7
-----END PGP SIGNATURE-----payloadtree 4610b1e3e51092b33b47df71a1cc791b36a993b0
parent c59f74d9034a87abc8743ecf69c8ff5e88058ed1
author Jeremy Kong <jkong@palantir.com> 1684274295 +0100
committer Jeremy Kong <jkong@palantir.com> 1684274295 +0100

single busy cell
uuj$  ^https://api.github.com/repos/palantir/atlasdb/commits/13e7f7b901ffa9d684e50e5df34aa961977351b0html_urlShttps://github.com/palantir/atlasdb/commit/13e7f7b901ffa9d684e50e5df34aa961977351b0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/13e7f7b901ffa9d684e50e5df34aa961977351b0/commentsj$  }(login
jeremyk-91idJZ j$  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j$  'https://api.github.com/users/jeremyk-91j$  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj$  }(j$  
jeremyk-91j$  JZ j$  MDQ6VXNlcjU5NTU1MTA=j$  3https://avatars.githubusercontent.com/u/5955510?v=4j$  h5j$  'https://api.github.com/users/jeremyk-91j$  https://github.com/jeremyk-91j$  1https://api.github.com/users/jeremyk-91/followersj$  >https://api.github.com/users/jeremyk-91/following{/other_user}j$  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j$  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j$  5https://api.github.com/users/jeremyk-91/subscriptionsj$  ,https://api.github.com/users/jeremyk-91/orgsj$  -https://api.github.com/users/jeremyk-91/reposj$  8https://api.github.com/users/jeremyk-91/events{/privacy}j$  7https://api.github.com/users/jeremyk-91/received_eventsj$  Userj$  uparents]}(j$  (c59f74d9034a87abc8743ecf69c8ff5e88058ed1j$  ^https://api.github.com/repos/palantir/atlasdb/commits/c59f74d9034a87abc8743ecf69c8ff5e88058ed1j$  Shttps://github.com/palantir/atlasdb/commit/c59f74d9034a87abc8743ecf69c8ff5e88058ed1uastats}(totalM	additionsM	deletionsK ufiles](}(j$  (c0b3881cb15e0ba7b72700e3a80768b2c77a4b32filenametatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactions.javastatusaddedj$  K-j$  K changesK-blob_urlhttps://github.com/palantir/atlasdb/blob/13e7f7b901ffa9d684e50e5df34aa961977351b0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.javaraw_urlhttps://github.com/palantir/atlasdb/raw/13e7f7b901ffa9d684e50e5df34aa961977351b0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.java?ref=13e7f7b901ffa9d684e50e5df34aa961977351b0patchX  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.Comparator;
+import java.util.List;
+import one.util.streamex.StreamEx;
+
+public final class WitnessedTransactions {
+    private WitnessedTransactions() {
+        // utility
+    }
+
+    /**
+     * Sorts transactions by their effective timestamp and filters out transactions that are not fully committed.
+     */
+    public static List<FullyWitnessedTransaction> sortAndFilterTransactions(
+            ReadOnlyTransactionStore readOnlyTransactionStore, List<WitnessedTransaction> unorderedTransactions) {
+        OnlyCommittedWitnessedTransactionVisitor visitor =
+                new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
+        return StreamEx.of(unorderedTransactions)
+                .mapPartial(transaction -> transaction.accept(visitor))
+                .sorted(Comparator.comparingLong(WitnessedTransactions::effectiveTimestamp))
+                .toList();
+    }
+
+    private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
+        return witnessedTransaction.commitTimestamp().orElseGet(witnessedTransaction::startTimestamp);
+    }
+}u}(j$  (4ca9777a60bba46b458d814677435f4e29d93675j$  uatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowConfiguration.javaj$  addedj$  K j$  K j$  K j$  https://github.com/palantir/atlasdb/blob/13e7f7b901ffa9d684e50e5df34aa961977351b0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.javaj$  https://github.com/palantir/atlasdb/raw/13e7f7b901ffa9d684e50e5df34aa961977351b0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.javaj %  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.java?ref=13e7f7b901ffa9d684e50e5df34aa961977351b0j%  X?  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellWorkflowConfiguration.TYPE)
+public interface SingleBusyCellWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell";
+
+    TableConfiguration tableConfiguration();
+}u}(j$  (5ea1a2dda6276ad7ae61aceea3657037b7c50189j$  iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflows.javaj$  addedj$  Knj$  K j$  Knj$  https://github.com/palantir/atlasdb/blob/13e7f7b901ffa9d684e50e5df34aa961977351b0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.javaj$  https://github.com/palantir/atlasdb/raw/13e7f7b901ffa9d684e50e5df34aa961977351b0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.javaj %  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.java?ref=13e7f7b901ffa9d684e50e5df34aa961977351b0j%  X  @@ -0,0 +1,110 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+import org.jetbrains.annotations.NotNull;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions.
+ */
+public final class SingleBusyCellWorkflows {
+    private SingleBusyCellWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReadsAndTouches(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    @NotNull
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReadsAndTouches(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(txn -> {
+                    Optional<Integer> value =
+                            txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL);
+                    txn.write(configuration.tableConfiguration().tableName(), BUSY_CELL, value.orElse(-1));
+                })))
+                .collect(Collectors.toList());
+    }
+
+    @NotNull
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        List<ListenableFuture<Optional<WitnessedTransaction>>> writes = new ArrayList<>();
+        for (int index = 0; index < configuration.iterationCount() / 4; index++) {
+            int stableIndex = index;
+            writes.add(writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                    configuration.tableConfiguration().tableName(), BUSY_CELL, stableIndex)))));
+            writes.add(writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                    configuration.tableConfiguration().tableName(), BUSY_CELL)))));
+        }
+        return writes;
+    }
+}u}(j$  (8d66c8f87d793b350b8243e9fca3184fa3189e98j$  xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionsTest.javaj$  addedj$  Kj$  K j$  Kj$  https://github.com/palantir/atlasdb/blob/13e7f7b901ffa9d684e50e5df34aa961977351b0/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javaj$  https://github.com/palantir/atlasdb/raw/13e7f7b901ffa9d684e50e5df34aa961977351b0/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javaj %  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.java?ref=13e7f7b901ffa9d684e50e5df34aa961977351b0j%  X@  @@ -0,0 +1,128 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.List;
+import org.junit.Test;
+import org.mockito.Mock;
+
+public class WitnessedTransactionsTest {
+    @Mock
+    private ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    @Test
+    public void returnsUnderlyingWitnessedTransactions() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(twoToEight)))
+                .containsExactly(twoToEight);
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(readOnlyAtFive)))
+                .containsExactly(readOnlyAtFive);
+    }
+
+    @Test
+    public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
+                .containsExactly(fourToSix, threeToSeven, twoToEight);
+    }
+
+    @Test
+    public void sortsReadOnlyTransactionsByStartTimestamp() {
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
+                .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
+    }
+
+    @Test
+    public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        ImmutableList.of(
+                                twoToEight,
+                                readOnlyAtNine,
+                                fourToSix,
+                                readOnlyAtFive,
+                                readOnlyAtThree,
+                                readOnlyAtSeven)))
+                .containsExactly(
+                        readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
+    }
+
+    @Test
+    public void filterRemovesUncommittedTransactions() {
+        MaybeWitnessedTransaction committedMaybeWitnessedTransaction =
+                createMaybeWitnessedTransactionWithoutActions(1, 3, true);
+        MaybeWitnessedTransaction notCommittedTransaction = createMaybeWitnessedTransactionWithoutActions(2, 8, false);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        List.of(
+                                committedMaybeWitnessedTransaction,
+                                notCommittedTransaction,
+                                readOnlyAtFive,
+                                fourToSix)))
+                .containsExactly(committedMaybeWitnessedTransaction.toFullyWitnessed(), readOnlyAtFive, fourToSix);
+    }
+
+    private MaybeWitnessedTransaction createMaybeWitnessedTransactionWithoutActions(
+            long start, long commit, boolean committed) {
+        when(readOnlyTransactionStore.isCommitted(eq(start))).thenReturn(committed);
+        return MaybeWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+
+    private static FullyWitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
+        return FullyWitnessedTransaction.builder().startTimestamp(start).build();
+    }
+
+    private static FullyWitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+}u}(j$  (e59f7106f764d2cc17782913c12fd98dc7d271b6j$  matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowsTest.javaj$  addedj$  Kej$  K j$  Kej$  https://github.com/palantir/atlasdb/blob/13e7f7b901ffa9d684e50e5df34aa961977351b0/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javaj$  https://github.com/palantir/atlasdb/raw/13e7f7b901ffa9d684e50e5df34aa961977351b0/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javaj %  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.java?ref=13e7f7b901ffa9d684e50e5df34aa961977351b0j%  X=  @@ -0,0 +1,101 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Collection;
+import java.util.List;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class SingleBusyCellWorkflowsTest {
+    private static final String TABLE_NAME = "busy.cell";
+    private static final int ITERATION_COUNT = 1_000;
+    private static final SingleBusyCellWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow workflow = SingleBusyCellWorkflows.create(
+            transactionStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newSingleThreadExecutor()),
+            MoreExecutors.listeningDecorator(PTExecutors.newSingleThreadExecutor()));
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void transactionsDoNotConflictExcessively() {
+        WorkflowHistory workflowHistory = workflow.run();
+        assertThat(workflowHistory.history()).hasSizeBetween(ITERATION_COUNT / 2, ITERATION_COUNT);
+    }
+
+    @Test
+    public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.table().equals(TABLE_NAME));
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.cell().equals(SingleBusyCellWorkflows.BUSY_CELL));
+    }
+
+    @Test
+    public void targetCellIsReadModifiedAndDeleted() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).anyMatch(action -> action instanceof WitnessedReadTransactionAction);
+        assertThat(witnessedTransactionActions).anyMatch(action -> action instanceof WitnessedWriteTransactionAction);
+        assertThat(witnessedTransactionActions).anyMatch(action -> action instanceof WitnessedDeleteTransactionAction);
+    }
+}ueu(e1653099ac0144df3a1c2fda0fd28a34202ce3ca}(sha(e1653099ac0144df3a1c2fda0fd28a34202ce3canode_idEC_kwDOAjP5fdoAKGUxNjUzMDk5YWMwMTQ0ZGYzYTFjMmZkYTBmZDI4YTM0MjAyY2UzY2Ecommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-01T13:20:09Zu	committer}(j.%  Jeremy Kongj0%  jkong@palantir.comj2%  2023-06-01T13:20:09ZumessageWe are n00bstree}(j&%  (54c9c07d4469a3396a5abf59bb1eac24a2320977url`https://api.github.com/repos/palantir/atlasdb/git/trees/54c9c07d4469a3396a5abf59bb1eac24a2320977uj>%  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e1653099ac0144df3a1c2fda0fd28a34202ce3ca
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR4mwkACgkQTLdFKain
zjwUrggAmCjLLtEjqL/sMTE5f7Rup1V3DSGvtMiW3D6eDLTfSui5NZCXtLoRnbdV
mpa7bSfHH5acl5kkBwsL3a1GWtSbJzeaIlZW+ZT3E/qoKAyAPLjhrO8APAMQVRod
0saYLFO74tBY+h6hOvMGVsY+lD9dzLY/WVqjYuoaf/JOscl0y86721muS7x9HjQr
9YyuIRCPxUYiFCSB5oPKFlXNPUYOhXPu3tkvoC50nOiZw3tGK1MVBTUP7ZXMZEkz
SzTwaAbvhFgXoSOmK8BRi34L8hktrwvHfkc2u4yHHyeafzv0WqP42CJKqfCEW7+R
l6XQh5WFZkSLjVbfmTBu5KRPfnCWBg==
=iDnU
-----END PGP SIGNATURE-----payloadtree 54c9c07d4469a3396a5abf59bb1eac24a2320977
parent 5b1d8f7aca163d24d017e12af916e7c4af87b7a6
author Jeremy Kong <jkong@palantir.com> 1685625609 +0100
committer Jeremy Kong <jkong@palantir.com> 1685625609 +0100

We are n00bs
uuj>%  ^https://api.github.com/repos/palantir/atlasdb/commits/e1653099ac0144df3a1c2fda0fd28a34202ce3cahtml_urlShttps://github.com/palantir/atlasdb/commit/e1653099ac0144df3a1c2fda0fd28a34202ce3cacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e1653099ac0144df3a1c2fda0fd28a34202ce3ca/commentsj,%  }(login
jeremyk-91idJZ j(%  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j>%  'https://api.github.com/users/jeremyk-91jL%  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj4%  }(jQ%  
jeremyk-91jS%  JZ j(%  MDQ6VXNlcjU5NTU1MTA=jU%  3https://avatars.githubusercontent.com/u/5955510?v=4jW%  h5j>%  'https://api.github.com/users/jeremyk-91jL%  https://github.com/jeremyk-91jZ%  1https://api.github.com/users/jeremyk-91/followersj\%  >https://api.github.com/users/jeremyk-91/following{/other_user}j^%  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j`%  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jb%  5https://api.github.com/users/jeremyk-91/subscriptionsjd%  ,https://api.github.com/users/jeremyk-91/orgsjf%  -https://api.github.com/users/jeremyk-91/reposjh%  8https://api.github.com/users/jeremyk-91/events{/privacy}jj%  7https://api.github.com/users/jeremyk-91/received_eventsjl%  Userjn%  uparents]}(j&%  (5b1d8f7aca163d24d017e12af916e7c4af87b7a6j>%  ^https://api.github.com/repos/palantir/atlasdb/commits/5b1d8f7aca163d24d017e12af916e7c4af87b7a6jL%  Shttps://github.com/palantir/atlasdb/commit/5b1d8f7aca163d24d017e12af916e7c4af87b7a6uastats}(totalK	additionsK	deletionsK ufiles]}(j&%  (a47bdaf7b62829220b46b23f604be5fdccf13f2dfilenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj%  Kj%  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/e1653099ac0144df3a1c2fda0fd28a34202ce3ca/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e1653099ac0144df3a1c2fda0fd28a34202ce3ca/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=e1653099ac0144df3a1c2fda0fd28a34202ce3capatchX@  @@ -120,10 +120,12 @@ private void scheduleBackgroundJobs(Environment environment) {
     }
 
     private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {
+        // This is a single threaded executor; this is intentional, so that we only run one workflow at a time.
         ExecutorService antithesisWorkflowRunnerExecutorService = environment
                 .lifecycle()
                 .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
                 .build();
+
         MetricsManager metricsManager = MetricsManagers.of(environment.metrics(), taggedMetricRegistry);
         AtlasDbTransactionStoreFactory transactionStoreFactory = AtlasDbTransactionStoreFactory.createFromConfig(
                 configuration.install().atlas(),
@@ -213,10 +215,12 @@ private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
             LifecycleEnvironment lifecycle) {
         ExecutorService readExecutor = lifecycle
                 .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-read")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
                 .maxThreads(workflowConfig.maxThreadCount() / 2)
                 .build();
         ExecutorService writeExecutor = lifecycle
                 .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-write")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
                 .maxThreads(workflowConfig.maxThreadCount() / 2)
                 .build();
         InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
@@ -303,6 +307,7 @@ private static <T> ExecutorService createExecutorService(
             WorkflowConfiguration workflowConfig, LifecycleEnvironment lifecycle, Class<T> workflowFactoryClass) {
         return lifecycle
                 .executorService(workflowFactoryClass.getSimpleName())
+                .minThreads(workflowConfig.maxThreadCount())
                 .maxThreads(workflowConfig.maxThreadCount())
                 .build();
     }uau(d3fa67649997f2213ae5d06f23a26c20e19c534e}(sha(d3fa67649997f2213ae5d06f23a26c20e19c534enode_idEC_kwDOAjP5fdoAKGQzZmE2NzY0OTk5N2YyMjEzYWU1ZDA2ZjIzYTI2YzIwZTE5YzUzNGUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-04T13:45:29Zu	committer}(j%  
Ahmed Alouanej%  aalouane@palantir.comj%  2023-04-04T13:45:29Zumessagewrite lockstree}(j%  (e9dc5540ed2cf398cd68d2f5bf69e2ad0fab4ec2url`https://api.github.com/repos/palantir/atlasdb/git/trees/e9dc5540ed2cf398cd68d2f5bf69e2ad0fab4ec2uj%  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d3fa67649997f2213ae5d06f23a26c20e19c534e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQsKfkACgkQPlMHVIT1
yhq6DwgArvzOzsdfXynJUk7/qUucQf5sOXyOKo1vL2l/MSt5Vry1yUTUQ3rgyDWt
eEoeoIgk3cOHBnEbWjVCaLCu1mnO1s5k8xK0JGF/uyybl/DR8ucsXCtdhYlxXZQG
4ePmMipXKi1MGg2bKqAVk+DRa46pEC0WK89q7aAqfHCfUKQ3nom2Hz9z4ByB+Rv8
L5LCX7j5KqmuBAoa2zST/Cn2jDUFgEK8eWhAraAZfN9aRBMM765QFwORMe7Y7Cqz
+kiY9g8K3eB/bo52GVRbHC/gRviPXadRPOajU1pa6pQc9swqAdshMUY0JmkHparc
N3kHF7PFqd11C/YnAfxZV8FLJ337mw==
=3Zom
-----END PGP SIGNATURE-----payloadX  tree e9dc5540ed2cf398cd68d2f5bf69e2ad0fab4ec2
parent 2ee0a1cc31181dc5b3d8d8f1ef9569a8e9d5ae89
parent b38d46f704c08520dfa0a1ca08490060a2f1ba00
author Ahmed Alouane <aalouane@palantir.com> 1680615929 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1680615929 +0100

write locks
uuj%  ^https://api.github.com/repos/palantir/atlasdb/commits/d3fa67649997f2213ae5d06f23a26c20e19c534ehtml_urlShttps://github.com/palantir/atlasdb/commit/d3fa67649997f2213ae5d06f23a26c20e19c534ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d3fa67649997f2213ae5d06f23a26c20e19c534e/commentsj%  }(loginergo14idJj%  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j%  #https://api.github.com/users/ergo14j%  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj%  }(j%  ergo14j%  Jj%  MDQ6VXNlcjMwOTAzNzM2j%  4https://avatars.githubusercontent.com/u/30903736?v=4j%  h5j%  #https://api.github.com/users/ergo14j%  https://github.com/ergo14j%  -https://api.github.com/users/ergo14/followersj%  :https://api.github.com/users/ergo14/following{/other_user}j%  3https://api.github.com/users/ergo14/gists{/gist_id}j%  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j%  1https://api.github.com/users/ergo14/subscriptionsj%  (https://api.github.com/users/ergo14/orgsj%  )https://api.github.com/users/ergo14/reposj%  4https://api.github.com/users/ergo14/events{/privacy}j%  3https://api.github.com/users/ergo14/received_eventsj%  Userj%  uparents](}(j%  (2ee0a1cc31181dc5b3d8d8f1ef9569a8e9d5ae89j%  ^https://api.github.com/repos/palantir/atlasdb/commits/2ee0a1cc31181dc5b3d8d8f1ef9569a8e9d5ae89j%  Shttps://github.com/palantir/atlasdb/commit/2ee0a1cc31181dc5b3d8d8f1ef9569a8e9d5ae89u}(j%  (b38d46f704c08520dfa0a1ca08490060a2f1ba00j%  ^https://api.github.com/repos/palantir/atlasdb/commits/b38d46f704c08520dfa0a1ca08490060a2f1ba00j%  Shttps://github.com/palantir/atlasdb/commit/b38d46f704c08520dfa0a1ca08490060a2f1ba00uestats}(totalK	additionsK	deletionsKufiles](}(j%  (b4ee017980d3bf2f40b872865df3d113ba69f56bfilenamegatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RunOnceWorkflowRunner.javastatusmodifiedj&  Kj&  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/d3fa67649997f2213ae5d06f23a26c20e19c534e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRunOnceWorkflowRunner.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d3fa67649997f2213ae5d06f23a26c20e19c534e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRunOnceWorkflowRunner.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRunOnceWorkflowRunner.java?ref=d3fa67649997f2213ae5d06f23a26c20e19c534epatchXy  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
@@ -36,5 +37,6 @@ public void run(Workflow workflow, List<InvariantReporter<?>> invariants) {
                 log.error("Caught an exception when running and reporting an invariant.", e);
             }
         });
+        log.info("Dumping transaction log {}", SafeArg.of("transactionLog", workflowHistory.history()));
     }
 }u}(j%  (f9527e173d1407deb811ea00448699afa0a4afd1j	&  iatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/server/RunOnceWorkflowRunnerTest.javaj&  modifiedj&  Kj&  K j
&  Kj&  https://github.com/palantir/atlasdb/blob/d3fa67649997f2213ae5d06f23a26c20e19c534e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.javaj&  https://github.com/palantir/atlasdb/raw/d3fa67649997f2213ae5d06f23a26c20e19c534e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.java?ref=d3fa67649997f2213ae5d06f23a26c20e19c534ej&  X  @@ -20,17 +20,21 @@
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
 import com.palantir.atlasdb.workload.workflow.RunOnceWorkflowRunner;
 import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import java.util.List;
 import org.junit.Test;
 
 public class RunOnceWorkflowRunnerTest {
     @Test
     public void runExecutesWorkflowsAndInvokesInvariantReporter() {
         Workflow exampleWorkflow = mock(Workflow.class);
+        WorkflowHistory workflowHistory = mock(WorkflowHistory.class);
+        when(exampleWorkflow.run()).thenReturn(workflowHistory);
         InvariantReporter<Void> exampleInvariantReporterOne = mock(InvariantReporter.class);
         InvariantReporter<Void> exampleInvariantReporterTwo = mock(InvariantReporter.class);
         RunOnceWorkflowRunner.INSTANCE.run(u}(j%  (ef0d73d69ab34f4fca46440223eb0e3c2aad0d01j	&  build.gradlej&  modifiedj&  Kj&  Kj
&  Kj&  ^https://github.com/palantir/atlasdb/blob/d3fa67649997f2213ae5d06f23a26c20e19c534e/build.gradlej&  ]https://github.com/palantir/atlasdb/raw/d3fa67649997f2213ae5d06f23a26c20e19c534e/build.gradlej&  phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=d3fa67649997f2213ae5d06f23a26c20e19c534ej&  Xz  @@ -15,7 +15,7 @@ buildscript {
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
-        classpath 'com.palantir.gradle.jdks:gradle-jdks:0.31.0'
+        classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'ueu(46037f23331b3225be37f2bde2c49edaef74b913}(sha(46037f23331b3225be37f2bde2c49edaef74b913node_idEC_kwDOAjP5fdoAKDQ2MDM3ZjIzMzMxYjMyMjViZTM3ZjJiZGUyYzQ5ZWRhZWY3NGI5MTMcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-16T13:55:12Zu	committer}(j0&  svc-autoreleasej2&  -pd-foundry-infrastructure-notify@palantir.comj4&  2023-05-16T13:55:12Zumessage"Autorelease 0.855.0-rc1

[skip ci]tree}(j(&  (438e5f0f1fccf9cc5ed27057cdde200ae6045f3eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/438e5f0f1fccf9cc5ed27057cdde200ae6045f3euj@&  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/46037f23331b3225be37f2bde2c49edaef74b913
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRji0AACgkQhbrR8ip7mDBDtwD+NQrwdJU1qjeyKCQjUDfsd4hl
86rrkedJY9ELpBmj2Y4A/jBOAlZHLV2E+a2ZDdqTuD0gc1CYUoRa04tb580TkwU4
=afdv
-----END PGP SIGNATURE-----
payloadX(  tree 438e5f0f1fccf9cc5ed27057cdde200ae6045f3e
parent 8fe1ba9180883846f22d44b206ef345e178fe9c5
author aalouane <30903736+ergo14@users.noreply.github.com> 1684245312 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684245312 +0000

Autorelease 0.855.0-rc1

[skip ci]uuj@&  ^https://api.github.com/repos/palantir/atlasdb/commits/46037f23331b3225be37f2bde2c49edaef74b913html_urlShttps://github.com/palantir/atlasdb/commit/46037f23331b3225be37f2bde2c49edaef74b913comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/46037f23331b3225be37f2bde2c49edaef74b913/commentsj.&  }(loginergo14idJj*&  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j@&  #https://api.github.com/users/ergo14jN&  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj6&  }(jS&  svc-autoreleasejU&  J(j*&  MDQ6VXNlcjUxNzE4MzQ2jW&  4https://avatars.githubusercontent.com/u/51718346?v=4jY&  h5j@&  ,https://api.github.com/users/svc-autoreleasejN&  "https://github.com/svc-autoreleasej\&  6https://api.github.com/users/svc-autorelease/followersj^&  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j`&  <https://api.github.com/users/svc-autorelease/gists{/gist_id}jb&  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jd&  :https://api.github.com/users/svc-autorelease/subscriptionsjf&  1https://api.github.com/users/svc-autorelease/orgsjh&  2https://api.github.com/users/svc-autorelease/reposjj&  =https://api.github.com/users/svc-autorelease/events{/privacy}jl&  <https://api.github.com/users/svc-autorelease/received_eventsjn&  Userjp&  uparents]}(j(&  (8fe1ba9180883846f22d44b206ef345e178fe9c5j@&  ^https://api.github.com/repos/palantir/atlasdb/commits/8fe1ba9180883846f22d44b206ef345e178fe9c5jN&  Shttps://github.com/palantir/atlasdb/commit/8fe1ba9180883846f22d44b206ef345e178fe9c5uastats}(totalK 	additionsK 	deletionsK ufiles]u(9fcbd0e5cd52c19c710d72f70f1236407377a24d}(sha(9fcbd0e5cd52c19c710d72f70f1236407377a24dnode_idEC_kwDOAjP5fdoAKDlmY2JkMGU1Y2Q1MmMxOWM3MTBkNzJmNzBmMTIzNjQwNzM3N2EyNGQcommit}(author}(name
Louis Bembergemaillbemberg@palantir.comdate2023-05-05T15:29:32Zu	committer}(j&  
Louis Bembergj&  lbemberg@palantir.comj&  2023-05-05T15:29:32ZumessageIMerge branch 'develop' into lb/better-logging-lock-retries
merge develop.tree}(j&  (620f83f4e31112f994ba3d65c924ce0537efbb83url`https://api.github.com/repos/palantir/atlasdb/git/trees/620f83f4e31112f994ba3d65c924ce0537efbb83uj&  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9fcbd0e5cd52c19c710d72f70f1236407377a24d
comment_countK verification}(verifiedreasonno_user	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEWASyGscg/aE7qfKTryYcV6eKVuAFAmRVIOcACgkQryYcV6eK
VuCB7gf7Bxr39/swkNd95zmsNjhljDzktvyB6zuTuxnY8c21+gDT3bZRvKuDLw2r
JWt4wsFgqhr5WhtqA3jcxUR3O0dKAVfStH+DfNCAg6Oe+TVk9ZtBAtacz6hl1mdB
SDlbuahJdoXFxP3sch1svg7rTR2pCuIQ11Ar+b1YR7pgM1lW6W51jB+e1LAcqmFX
1l5dzwbifTOiaYKnJZGg1BF9/Q/fhz+vqIox7rSoxgeRqaayTaxvF/mg+6uVKs0I
L35U3AK4/rithrG/1vilcLYe82w2Oj64fUlgAtLpDEUz2V7Tfh0qD/JeTr1TNhby
KIcyZ3DihngAUqQX87kF0pF3hHVRbw==
=6bgD
-----END PGP SIGNATURE-----
      payloadXX  tree 620f83f4e31112f994ba3d65c924ce0537efbb83
parent 4739f3e7e80219a2028cb2fbf155b1ebae43571f
parent 89301daada3aa480a1d2baae560213a3292c52b9
author Louis Bemberg <lbemberg@palantir.com> 1683300572 -0400
committer Louis Bemberg <lbemberg@palantir.com> 1683300572 -0400

Merge branch 'develop' into lb/better-logging-lock-retries
merge develop.
uuj&  ^https://api.github.com/repos/palantir/atlasdb/commits/9fcbd0e5cd52c19c710d72f70f1236407377a24dhtml_urlShttps://github.com/palantir/atlasdb/commit/9fcbd0e5cd52c19c710d72f70f1236407377a24dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9fcbd0e5cd52c19c710d72f70f1236407377a24d/commentsj&  Nj&  Nparents](}(j&  (4739f3e7e80219a2028cb2fbf155b1ebae43571fj&  ^https://api.github.com/repos/palantir/atlasdb/commits/4739f3e7e80219a2028cb2fbf155b1ebae43571fj&  Shttps://github.com/palantir/atlasdb/commit/4739f3e7e80219a2028cb2fbf155b1ebae43571fu}(j&  (89301daada3aa480a1d2baae560213a3292c52b9j&  ^https://api.github.com/repos/palantir/atlasdb/commits/89301daada3aa480a1d2baae560213a3292c52b9j&  Shttps://github.com/palantir/atlasdb/commit/89301daada3aa480a1d2baae560213a3292c52b9uestats}(totalM	additionsM	deletionsKufiles](}(j&  (d712c836408b8b983fda0502a1815c19270ae9e1filename.palantir/revapi.ymlstatusmodifiedj&  Kj&  K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dpatchX_  @@ -115,3 +115,9 @@ acceptedBreaks:
     - code: "java.class.removed"
       old: "interface com.palantir.atlasdb.transaction.api.expectations.ExpectationsAwareTransaction"
       justification: "moving out of API"
+  "0.824.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.removed"
+      old: "method java.util.concurrent.ExecutorService com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService::createThreadPoolWihtoutSpans(java.lang.String,\
+        \ int, int) @ com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl"
+      justification: "Protected method"u}(j&  (d8f732c3615aaed89bbf22d2dd57bf2198b25723j&  .policy.ymlj&  modifiedj&  Kj&  Kj&  Kj&  ]https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/.policy.ymlj&  \https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/.policy.ymlj&  ohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X(  @@ -20,21 +20,21 @@ approval_rules:
       allow_contributor: false
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: two admins have approved
     options:
       allow_contributor: true
     requires:
       count: 2
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: changelog only and contributor approval
     options:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       only_changed_files:
         paths:
@@ -45,7 +45,7 @@ approval_rules:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       has_author_in:
         users: [ "svc-excavator-bot" ]u}(j&  (69f581236b5f107c22a46408a061b07dd50fd1bcj&  iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj&  modifiedj&  Kj&  Kj&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X2  @@ -108,8 +108,6 @@
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
-import com.palantir.tracing.Tracers;
-import com.palantir.tritium.metrics.MetricRegistries;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import com.palantir.util.Pair;
 import com.palantir.util.paging.AbstractPagingIterable;
@@ -485,10 +483,7 @@ private static Supplier<ExecutorService> instrumentedFixedThreadPoolSupplier(
             int numberOfThriftHosts = serversConfig.numberOfThriftHosts();
             int corePoolSize = poolSize * numberOfThriftHosts;
             int maxPoolSize = maxConnectionBurstSize * numberOfThriftHosts;
-            return Tracers.wrap(MetricRegistries.instrument(
-                    registry,
-                    createThreadPoolWihtoutSpans("Atlas Cassandra KVS", corePoolSize, maxPoolSize),
-                    "Atlas Cassandra KVS"));
+            return createThreadPoolWithoutSpans("Atlas Cassandra KVS", corePoolSize, maxPoolSize);
         };
     }
 u}(j&  (605212243716ab96bbbde3a8b0fd9ec3aa421b48j&  \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/AbstractKeyValueService.javaj&  modifiedj&  K	j&  K
j&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X^	  @@ -70,38 +70,37 @@ public AbstractKeyValueService(ExecutorService executor) {
     /**
      * Creates a fixed thread pool.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param corePoolSize size of the core pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createFixedThreadPool(String threadNamePrefix, int corePoolSize) {
-        return createThreadPool(threadNamePrefix, corePoolSize, corePoolSize);
+    protected static ExecutorService createFixedThreadPool(String name, int corePoolSize) {
+        return createThreadPool(name, corePoolSize, corePoolSize);
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPool(String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPool(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPool(String name, int _corePoolSize, int maxPoolSize) {
+        return PTExecutors.newFixedThreadPool(maxPoolSize, name);
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      * It does not create a span.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPoolWihtoutSpans(
-            String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPoolWithoutSpans(String name, int _corePoolSize, int maxPoolSize) {
+        return PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, name);
     }
 
     @Overrideu}(j&  (348ab9498e34371d3ebb51cdb40a63a7df14a211j&  9atlasdb-workload-server-antithesis/var/docker-compose.ymlj&  modifiedj&  K#j&  Kj&  K)j&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  XF	  @@ -52,30 +52,59 @@ services:
       antithesis-net:
         ipv4_address: 10.20.20.4
 
-  timelock:
+  timelock1.palantir.pt:
     image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [ bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
     ports:
       - "8421"
       - "8422"
-    container_name: timelock
+    container_name: timelock1.palantir.pt
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.5
 
+  timelock2.palantir.pt:
+    image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [ bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
+    ports:
+      - "8421"
+      - "8422"
+    container_name: timelock2.palantir.pt
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.6
+
+  timelock3.palantir.pt:
+    image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
+    ports:
+      - "8421"
+      - "8422"
+    container_name: timelock3.palantir.pt
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.7
+
+
   workload-server:
     image: palantirtechnologies/atlasdb-workload-server-distribution:unspecified
-    command: [bash, -c, 'cp var/conf/workload-server.timelock.cassandra.yml var/conf/workload-server.yml 
-                         && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160 
+    command: [bash, -c, 'cp var/conf/workload-server.timelock.cassandra.yml var/conf/workload-server.yml
+                         && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160
                          && service/bin/init.sh console']
     container_name: workload-server
     depends_on:
       - cassandra1
       - cassandra2
       - cassandra3
-      - timelock
+      - timelock1.palantir.pt
+      - timelock2.palantir.pt
+      - timelock3.palantir.pt
     networks:
       antithesis-net:
-        ipv4_address: 10.20.20.6
+        ipv4_address: 10.20.20.8
 
 networks:
   antithesis-net:u}(j&  (b7485353a77f6bf0cd6c937bff58416577e13b1dj&  (atlasdb-workload-server-api/build.gradlej&  modifiedj&  Kj&  K j&  Kj&  |https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fbuild.gradlej&  {https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fbuild.gradlej&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fbuild.gradle?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  @@ -13,4 +13,5 @@ dependencies {
     annotationProcessor 'org.immutables:value'
 
     testImplementation 'com.palantir.safe-logging:preconditions-assertj'
+    testImplementation 'org.mockito:mockito-core'
 }
\ No newline at end of fileu}(j&  (72396cbd183a5589ac7b3cf6593e07b9c5de2fd0j&  katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ReadableTransactionStore.javaj&  modifiedj&  Kj&  K j&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  XY  @@ -28,4 +28,9 @@ public interface ReadableTransactionStore {
      * @return The value of the cell for a given table.
      */
     Optional<Integer> get(String table, WorkloadCell cell);
+
+    /**
+     * Checks whether the transaction with the provided startTimestamp has committed.
+     */
+    boolean isCommitted(long startTimestamp);
 }u}(j&  (9a3b7a7060c8f72d6a97bc2c347571b698b81c47j&  jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStoreFactory.javaj&  modifiedj&  Kj&  Kj&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -22,6 +22,6 @@
 /**
  * Creates transaction stores of a certain type which are bounded to the provided tables/indexes.
  */
-public interface TransactionStoreFactory {
-    TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
+public interface TransactionStoreFactory<T extends TransactionStore> {
+    T create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
 }u}(j&  (574a86c53458c2bbb5f43c19c269eb2ee52679c7j&  |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/FullyWitnessedTransaction.javaj&  addedj&  K"j&  K j&  K"j&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we know for certain we've witnessed.
+ */
+@Value.Immutable
+public interface FullyWitnessedTransaction extends WitnessedTransaction {
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableFullyWitnessedTransaction.Builder builder() {
+        return ImmutableFullyWitnessedTransaction.builder();
+    }
+}u}(j&  (5a66280426c78d83ed7001fc4ee1aebb894f7578j&  |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransaction.javaj&  addedj&  K4j&  K j&  K4j&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.logsafe.Preconditions;
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we witnessed, but are in a state which we are
+ * unsure if they have committed or not due to failures.
+ */
+@Value.Immutable
+public interface MaybeWitnessedTransaction extends WitnessedTransaction {
+    @Value.Check
+    default void check() {
+        Preconditions.checkArgument(
+                commitTimestamp().isPresent(),
+                "Given how the transaction protocol works, a transaction for which we haven't retrieved the commit "
+                        + "timestamp has not written anything of significance to the database");
+    }
+
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableMaybeWitnessedTransaction.Builder builder() {
+        return ImmutableMaybeWitnessedTransaction.builder();
+    }
+
+    default FullyWitnessedTransaction toFullyWitnessed() {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(startTimestamp())
+                .commitTimestamp(commitTimestamp())
+                .actions(actions())
+                .build();
+    }
+}u}(j&  (525e82582d3affac4608bebfe366141f3088a716j&  watlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransaction.javaj&  modifiedj&  Kj&  Kj&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X
  @@ -18,9 +18,7 @@
 
 import java.util.List;
 import java.util.Optional;
-import org.immutables.value.Value;
 
-@Value.Immutable
 public interface WitnessedTransaction {
     /** Start timestamp of the transaction. */
     long startTimestamp();
@@ -30,4 +28,6 @@ public interface WitnessedTransaction {
 
     /** Provides an in-order list of actions that were performed during the transaction's execution. */
     List<WitnessedTransactionAction> actions();
+
+    <T> T accept(WitnessedTransactionVisitor<T> visitor);
 }u}(j&  (33682bf649e7b87408367a7f23d4995c94c96d98j&  ~atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionVisitor.javaj&  addedj&  Kj&  K j&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -0,0 +1,23 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+public interface WitnessedTransactionVisitor<T> {
+    T visit(FullyWitnessedTransaction witnessedTransaction);
+
+    T visit(MaybeWitnessedTransaction maybeWitnessedTransaction);
+}u}(j&  (521eb86ec62e39c42dea4234b11b2f742d9a8e1dj&  katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowAndInvariants.javaj&  addedj&  K-j&  K j&  K-j&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import java.util.Arrays;
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WorkflowAndInvariants<WorkflowTypeT extends Workflow> {
+    @Value.Parameter
+    WorkflowTypeT workflow();
+
+    @Value.Parameter
+    List<InvariantReporter<?>> invariantReporters();
+
+    static <WorkflowTypeT extends Workflow> WorkflowAndInvariants<WorkflowTypeT> of(
+            WorkflowTypeT workflow, List<InvariantReporter<?>> invariants) {
+        return ImmutableWorkflowAndInvariants.of(workflow, invariants);
+    }
+
+    static <WorkflowTypeT extends Workflow> WorkflowAndInvariants<WorkflowTypeT> of(
+            WorkflowTypeT workflow, InvariantReporter<?>... invariants) {
+        return ImmutableWorkflowAndInvariants.of(workflow, Arrays.asList(invariants));
+    }
+
+    static <WorkflowTypeT extends Workflow> ImmutableWorkflowAndInvariants.Builder<WorkflowTypeT> builder() {
+        return ImmutableWorkflowAndInvariants.builder();
+    }
+}u}(j&  (47b4109802a3529a585cdba06bb50cbe3fb2a098j&  katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowConfiguration.javaj&  modifiedj&  Kj&  K j&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -17,8 +17,19 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import org.immutables.value.Value;
 
 @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
 public interface WorkflowConfiguration {
     int iterationCount();
+
+    @Value.Default
+    default double rateLimit() {
+        return 100;
+    }
+
+    @Value.Default
+    default Integer maxThreadCount() {
+        return 100;
+    }
 }u}(j&  (ffbc895344923f90f2a9fbedaca2f32929339b6cj&  eatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowHistory.javaj&  modifiedj&  Kj&  K j&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -26,5 +26,10 @@ public interface WorkflowHistory {
     // We may want to query the KVS during verification.
     ReadableTransactionStore transactionStore();
 
+    /**
+     * TODO: This should only be a list of
+     * {@link com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction} rather than the general
+     * purpose type.
+     */
     List<WitnessedTransaction> history();
 }u}(j&  (3b0f830372ef64835a492324722b2b2019546854j&  natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowHistoryValidator.javaj&  renamedj&  Kj&  Kj&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -18,13 +18,17 @@
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
 import java.util.List;
+import org.immutables.value.Value;
 
-/**
- * Run the provided workflow and execute the provided invariant reporters.
- *
- * The idea of this class is that long-term we will want to have multiple ways to run/execute workflows,
- * rather than biasing towards the present case (just once).
- */
-public interface WorkflowRunner<WorkflowTypeT extends Workflow> {
-    void run(WorkflowTypeT workflow, List<InvariantReporter<?>> invariantReporters);
+@Value.Immutable
+public interface WorkflowHistoryValidator {
+    @Value.Parameter
+    WorkflowHistory history();
+
+    @Value.Parameter
+    List<InvariantReporter<?>> invariants();
+
+    static WorkflowHistoryValidator of(WorkflowHistory history, List<InvariantReporter<?>> invariants) {
+        return ImmutableWorkflowHistoryValidator.of(history, invariants);
+    }
 }previous_filenamedatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowRunner.javau}(j&  (7bda1b5a5ae5fcf4035a9bcb3a8979da682b9deaj&  matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowValidatorRunner.javaj&  addedj&  K#j&  K j&  K#j&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X(  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * Run the provided workflow and validate that it is correct with the provided invariants.
+ */
+public interface WorkflowValidatorRunner<WorkflowTypeT extends Workflow> {
+    void run(List<WorkflowAndInvariants<WorkflowTypeT>> workflowAndInvariants);
+
+    default void run(WorkflowAndInvariants<WorkflowTypeT>... workflowAndInvariants) {
+        run(Arrays.asList(workflowAndInvariants));
+    }
+
+    default void run(WorkflowAndInvariants<WorkflowTypeT> workflowAndInvariants) {
+        run(List.of(workflowAndInvariants));
+    }
+}u}(j&  (98c826c9208fca80e3a6f1f1efcf8240c030d9ffj&  atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javaj&  addedj&  KDj&  K j&  KDj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X\  @@ -0,0 +1,68 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+import static org.mockito.Mockito.mock;
+
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import org.junit.Test;
+
+public class MaybeWitnessedTransactionTest {
+
+    private static final Long START_TIMESTAMP = 100L;
+    private static final Long COMMIT_TIMESTAMP = 200L;
+
+    @Test
+    public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
+        assertThatLoggableExceptionThrownBy(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining(
+                        "Given how the transaction protocol works, a transaction for which we haven't retrieved the"
+                                + " commit timestamp");
+    }
+
+    @Test
+    public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
+        assertThatCode(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .commitTimestamp(COMMIT_TIMESTAMP)
+                        .build())
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void toFullyWitnessedCopiesArgumentsCorrectly() {
+        WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
+        WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
+        List<WitnessedTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
+        FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
+                .startTimestamp(START_TIMESTAMP)
+                .commitTimestamp(COMMIT_TIMESTAMP)
+                .actions(actions)
+                .build()
+                .toFullyWitnessed();
+        assertThat(fullyWitnessedTransaction.startTimestamp()).isEqualTo(START_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.commitTimestamp()).contains(COMMIT_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.actions()).containsExactlyElementsOf(actions);
+    }
+}u}(j&  (657030222c223cabc3af02a6cfa9a51829ab3112j&  latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj&  modifiedj&  K;j&  Kj&  KNj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -27,10 +27,16 @@
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
 import com.palantir.atlasdb.workload.invariant.DurableWritesInvariantMetricReporter;
 import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
-import com.palantir.atlasdb.workload.runner.AntithesisWorkflowRunner;
+import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
 import com.palantir.conjure.java.serialization.ObjectMappers;
@@ -41,9 +47,9 @@
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import io.dropwizard.Application;
 import io.dropwizard.jackson.DiscoverableSubtypeResolver;
+import io.dropwizard.lifecycle.setup.LifecycleEnvironment;
 import io.dropwizard.setup.Bootstrap;
 import io.dropwizard.setup.Environment;
-import java.util.List;
 import java.util.Map;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
@@ -82,7 +88,7 @@ public void run(WorkloadServerConfiguration configuration, Environment environme
     }
 
     private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {
-        ExecutorService singleRowTwoCellsExecutorService = environment
+        ExecutorService antithesisWorkflowRunnerExecutorService = environment
                 .lifecycle()
                 .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
                 .build();
@@ -92,24 +98,18 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 Refreshable.only(configuration.runtime().atlas()),
                 USER_AGENT,
                 metricsManager);
-        SingleRowTwoCellsWorkflowConfiguration workflowConfig =
+        SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig =
                 configuration.install().singleRowTwoCellsConfig();
+        RingWorkflowConfiguration ringWorkflowConfiguration =
+                configuration.install().ringConfig();
+
+        new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
+                .run(
+                        createSingleRowTwoCellsWorkflowValidator(
+                                transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
+                        createRingWorkflowValidator(
+                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()));
 
-        log.info("antithesis: start_faults");
-        AntithesisWorkflowRunner.INSTANCE.run(
-                SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
-                        transactionStoreFactory.create(
-                                Map.of(
-                                        workflowConfig.tableConfiguration().tableName(),
-                                        workflowConfig.tableConfiguration().isolationLevel()),
-                                Set.of()),
-                        workflowConfig,
-                        MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)),
-                List.of(
-                        new DurableWritesInvariantMetricReporter(
-                                SingleRowTwoCellsWorkflows.class.getSimpleName(),
-                                DurableWritesMetrics.of(taggedMetricRegistry)),
-                        SerializableInvariantLogReporter.INSTANCE));
         log.info("antithesis: terminate");
 
         workflowsRanLatch.countDown();
@@ -119,6 +119,46 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
+    private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            RingWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = lifecycle
+                .executorService(RingWorkflows.class.getSimpleName())
+                .maxThreads(workflowConfig.maxThreadCount())
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(RingWorkflows.create(
+                transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)));
+    }
+
+    private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleRowTwoCellsWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = lifecycle
+                .executorService(RingWorkflows.class.getSimpleName())
+                .maxThreads(workflowConfig.maxThreadCount())
+                .build();
+        TransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
     @VisibleForTesting
     CountDownLatch workflowsRanLatch() {
         return workflowsRanLatch;u}(j&  (899459cdb3b709b73bdaa6f88501e36e980580c8j&  atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj&  modifiedj&  Kj&  K j&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -20,6 +20,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
 
 @JsonDeserialize(as = ImmutableWorkloadServerInstallConfiguration.class)
@@ -30,5 +31,7 @@ public interface WorkloadServerInstallConfiguration {
 
     SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig();
 
+    RingWorkflowConfiguration ringConfig();
+
     boolean exitAfterRunning();
 }u}(j&  (b92811220a5a77616324333bfc9e02b6ac0ca989j&  Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj&  modifiedj&  Kj&  K j&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X=  @@ -10,4 +10,10 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
   exitAfterRunning: false
\ No newline at end of fileu}(j&  (d30bb12eccd163f3ff27a1f16336e27031b0e847j&  Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj&  modifiedj&  K	j&  Kj&  K
j&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -10,7 +10,9 @@ runtime:
     timelockRuntime:
       serversList:
         servers:
-          - 'http://timelock:8421'
+          - 'https://timelock1.palantir.pt:8421'
+          - 'https://timelock2.palantir.pt:8421'
+          - 'https://timelock3.palantir.pt:8421'
         sslConfiguration:
           keyStorePath: "var/security/keyStore.jks"
           keyStorePassword: "keystore"
@@ -43,4 +45,10 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
   exitAfterRunning: trueu}(j&  (f0ef6a7b2a2ff03f260d5e5b1a833d0f4a509161j&  Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj&  modifiedj&  Kj&  K j&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X<  @@ -10,4 +10,10 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
   exitAfterRunning: true
\ No newline at end of fileu}(j&  (47c1c58dc5ec09e6991e1b15ffa1c7e7c13a1b46j&  hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowRunner.javaj&  removedj&  K j&  K.j&  K.j&  https://github.com/palantir/atlasdb/blob/4739f3e7e80219a2028cb2fbf155b1ebae43571f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.javaj&  https://github.com/palantir/atlasdb/raw/4739f3e7e80219a2028cb2fbf155b1ebae43571f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.java?ref=4739f3e7e80219a2028cb2fbf155b1ebae43571fj&  X  @@ -1,46 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.runner;
-
-import com.palantir.atlasdb.workload.invariant.InvariantReporter;
-import com.palantir.atlasdb.workload.workflow.Workflow;
-import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
-import com.palantir.atlasdb.workload.workflow.WorkflowRunner;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.List;
-
-public enum AntithesisWorkflowRunner implements WorkflowRunner<Workflow> {
-    INSTANCE;
-
-    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisWorkflowRunner.class);
-
-    @Override
-    public void run(Workflow workflow, List<InvariantReporter<?>> invariants) {
-        WorkflowHistory workflowHistory = workflow.run();
-        log.info("antithesis: stop_faults");
-        invariants.forEach(reporter -> {
-            try {
-                reporter.report(workflowHistory);
-            } catch (RuntimeException e) {
-                log.error("Caught an exception when running and reporting an invariant.", e);
-            }
-        });
-        log.info("Dumping transaction log {}", SafeArg.of("transactionLog", workflowHistory.history()));
-    }
-}u}(j&  (7746b1901d37ab005efb2fedddecc226a6be376dj&  qatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunner.javaj&  addedj&  KNj&  K j&  KNj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  XL  @@ -0,0 +1,78 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.runner;
+
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistoryValidator;
+import com.palantir.atlasdb.workload.workflow.WorkflowValidatorRunner;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.concurrent.ExecutionException;
+import java.util.stream.Collectors;
+
+public final class AntithesisWorkflowValidatorRunner implements WorkflowValidatorRunner<Workflow> {
+    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisWorkflowValidatorRunner.class);
+    private final ListeningExecutorService listeningExecutorService;
+
+    public AntithesisWorkflowValidatorRunner(ListeningExecutorService listeningExecutorService) {
+        this.listeningExecutorService = listeningExecutorService;
+    }
+
+    @Override
+    public void run(List<WorkflowAndInvariants<Workflow>> workflowAndInvariants) {
+        try {
+            log.info("antithesis: start_faults");
+            List<WorkflowHistoryValidator> workflowHistoryValidators = Futures.allAsList(
+                            submitWorkflowValidators(workflowAndInvariants))
+                    .get();
+            log.info("antithesis: stop_faults");
+            workflowHistoryValidators.forEach(this::checkAndReportInvariantViolations);
+        } catch (InterruptedException e) {
+            Thread.currentThread().interrupt();
+            throw new RuntimeException(e);
+        } catch (ExecutionException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private void checkAndReportInvariantViolations(WorkflowHistoryValidator validator) {
+        validator.invariants().forEach(invariantReporter -> {
+            try {
+                invariantReporter.report(validator.history());
+            } catch (RuntimeException e) {
+                log.error("Caught an exception when running and reporting an invariant.", e);
+            }
+        });
+        log.info(
+                "Dumping transaction log {}",
+                SafeArg.of("transactionLog", validator.history().history()));
+    }
+
+    private List<ListenableFuture<WorkflowHistoryValidator>> submitWorkflowValidators(
+            List<WorkflowAndInvariants<Workflow>> workflowAndInvariants) {
+        return workflowAndInvariants.stream()
+                .map(workflowValidator -> listeningExecutorService.submit(() -> WorkflowHistoryValidator.of(
+                        workflowValidator.workflow().run(), workflowValidator.invariantReporters())))
+                .collect(Collectors.toList());
+    }
+}u}(j&  (6871e6633db3c7f6293f93c4496e8f449116f688j&  fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj&  modifiedj&  K'j&  Kj&  K3j&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X(  @@ -21,16 +21,20 @@
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.PreCommitCondition;
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.TransactionCommitFailedException;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -63,6 +67,13 @@ public Optional<Integer> get(String table, WorkloadCell cell) {
                 transaction -> new AtlasDbInteractiveTransaction(transaction, tables).read(table, cell));
     }
 
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return TransactionStatus.getCommitTimestamp(
+                        transactionManager.getTransactionService().getV2(startTimestamp))
+                .isPresent();
+    }
+
     @Override
     public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
         return readWrite(txn -> {
@@ -74,23 +85,26 @@ public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions)
     @Override
     public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer) {
         AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
+        AtomicReference<Transaction> transactionReference = new AtomicReference<>();
         Supplier<CommitTimestampProvider> commitTimestampProvider =
                 Suppliers.memoize(() -> new CommitTimestampProvider());
         try {
-            Transaction transaction =
-                    transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
-                        AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
-                                new AtlasDbInteractiveTransaction(txn, tables);
-                        interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
-                        witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
-                        return txn;
-                    });
+            transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
+                transactionReference.set(txn);
+                AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
+                        new AtlasDbInteractiveTransaction(txn, tables);
+                interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
+                witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
+                return null;
+            });
+
+            Transaction transaction = transactionReference.get();
 
             if (transaction.isAborted()) {
                 return Optional.empty();
             }
 
-            return Optional.of(ImmutableWitnessedTransaction.builder()
+            return Optional.of(FullyWitnessedTransaction.builder()
                     .startTimestamp(transaction.getTimestamp())
                     .commitTimestamp(commitTimestampProvider
                             .get()
@@ -99,9 +113,22 @@ public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction>
                     .build());
         } catch (SafeIllegalArgumentException e) {
             throw e;
+        } catch (TransactionCommitFailedException e) {
+            Transaction transaction = transactionReference.get();
+            return Optional.of(MaybeWitnessedTransaction.builder()
+                    .startTimestamp(transaction.getTimestamp())
+                    .commitTimestamp(commitTimestampProvider
+                            .get()
+                            .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
+                    .actions(witnessedActionsReference.get())
+                    .build());
         } catch (Exception e) {
-            // TODO: Need to eventually handle PuE exceptions, as they could've succeeded in committing.
-            log.info("Failed to record transaction due to an exception", e);
+            Optional<Long> startTimestamp =
+                    Optional.ofNullable(transactionReference.get()).map(Transaction::getTimestamp);
+            log.info(
+                    "Failed to record transaction due to an exception for startTimestamp {}",
+                    SafeArg.of("startTimestamp", startTimestamp),
+                    e);
             return Optional.empty();
         }
     }u}(j&  (6c1f4a7a8436891c6ea5ad47054652ed82549811j&  matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javaj&  modifiedj&  Kj&  Kj&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  XW  @@ -39,7 +39,7 @@
 import one.util.streamex.EntryStream;
 import one.util.streamex.StreamEx;
 
-public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory {
+public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory<InteractiveTransactionStore> {
 
     private final TransactionManager transactionManager;
     private final Optional<Namespace> maybeNamespace;
@@ -50,7 +50,7 @@ public AtlasDbTransactionStoreFactory(TransactionManager transactionManager, Opt
     }
 
     @Override
-    public TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
+    public InteractiveTransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
         return AtlasDbTransactionStore.create(transactionManager, toAtlasTables(tables, indexes));
     }
 u}(j&  (cb6dfce8a01b80d7f3c5368970de60190ce81ddcj&  gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/ReadOnlyTransactionStore.javaj&  modified
      j&  Kj&  K j&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  XU  @@ -33,4 +33,9 @@ public ReadOnlyTransactionStore(ReadableTransactionStore delegate) {
     public Optional<Integer> get(String table, WorkloadCell cell) {
         return delegate.get(table, cell);
     }
+
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return delegate.isCommitted(startTimestamp);
+    }
 }u}(j&  (0ba18e00eabc917a1fd7025d0f9113112c9b8615j&  atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitor.javaj&  addedj&  K*j&  K j&  K*j&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.Optional;
+
+public final class OnlyCommittedWitnessedTransactionVisitor
+        implements WitnessedTransactionVisitor<Optional<FullyWitnessedTransaction>> {
+
+    private final ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    public OnlyCommittedWitnessedTransactionVisitor(ReadOnlyTransactionStore readOnlyTransactionStore) {
+        this.readOnlyTransactionStore = readOnlyTransactionStore;
+    }
+
+    @Override
+    public Optional<FullyWitnessedTransaction> visit(FullyWitnessedTransaction witnessedTransaction) {
+        return Optional.of(witnessedTransaction);
+    }
+
+    @Override
+    public Optional<FullyWitnessedTransaction> visit(MaybeWitnessedTransaction maybeWitnessedTransaction) {
+        return readOnlyTransactionStore.isCommitted(maybeWitnessedTransaction.startTimestamp())
+                ? Optional.of(maybeWitnessedTransaction.toFullyWitnessed())
+                : Optional.empty();
+    }
+}u}(j&  (54b290f2339c2518740eb0ba35e08de26406b945j&  aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javaj&  modifiedj&  Kj&  Kj&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X
  @@ -20,13 +20,15 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.OnlyCommittedWitnessedTransactionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import java.util.Comparator;
 import java.util.List;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
-import java.util.stream.Collectors;
+import one.util.streamex.StreamEx;
 
 public final class DefaultWorkflow<T extends TransactionStore> implements Workflow {
     private final ConcurrentTransactionRunner<T> concurrentTransactionRunner;
@@ -45,7 +47,7 @@ private DefaultWorkflow(
         this.readOnlyTransactionStore = readOnlyTransactionStore;
     }
 
-    public static <T extends TransactionStore> Workflow create(
+    public static <T extends TransactionStore> DefaultWorkflow<T> create(
             T store,
             KeyedTransactionTask<T> transactionTask,
             WorkflowConfiguration configuration,
@@ -60,7 +62,7 @@ public static <T extends TransactionStore> Workflow create(
     @Override
     public WorkflowHistory run() {
         return ImmutableWorkflowHistory.builder()
-                .history(sortByEffectiveTimestamp(runTransactionTask()))
+                .history(sortAndFilterTransactions(runTransactionTask()))
                 .transactionStore(readOnlyTransactionStore)
                 .build();
     }
@@ -79,11 +81,17 @@ private List<WitnessedTransaction> runTransactionTask() {
         }
     }
 
+    /**
+     * Sorts transactions by their effective timestamp and filters out transactions that are not fully committed.
+     */
     @VisibleForTesting
-    static List<WitnessedTransaction> sortByEffectiveTimestamp(List<WitnessedTransaction> unorderedTransactions) {
-        return unorderedTransactions.stream()
+    List<FullyWitnessedTransaction> sortAndFilterTransactions(List<WitnessedTransaction> unorderedTransactions) {
+        OnlyCommittedWitnessedTransactionVisitor visitor =
+                new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
+        return StreamEx.of(unorderedTransactions)
+                .mapPartial(transaction -> transaction.accept(visitor))
                 .sorted(Comparator.comparingLong(DefaultWorkflow::effectiveTimestamp))
-                .collect(Collectors.toList());
+                .toList();
     }
 
     private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {u}(j&  (caadf187b4d5e22652f2a830ce77923c1b876143j&  xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javaj&  modifiedj&  K j&  Kj&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X_  @@ -31,11 +31,6 @@ public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfigur
 
     TableConfiguration tableConfiguration();
 
-    @Value.Default
-    default double rateLimit() {
-        return 100;
-    }
-
     @Value.Lazy
     default RateLimiter transactionRateLimiter() {
         return RateLimiter.create(rateLimit());u}(j&  (8db9245638b72b40f73f9ae3c427c4ccb2c69053j&  patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowConfiguration.javaj&  modifiedj&  Kj&  Kj&  K
j&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -20,14 +20,13 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.google.common.util.concurrent.RateLimiter;
-import com.palantir.atlasdb.workload.workflow.ImmutableSingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TableConfiguration;
 import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
 import org.immutables.value.Value;
 
 @Value.Immutable
-@JsonSerialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
-@JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonSerialize(as = ImmutableRingWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableRingWorkflowConfiguration.class)
 @JsonTypeName(RingWorkflowConfiguration.TYPE)
 public interface RingWorkflowConfiguration extends WorkflowConfiguration {
     String TYPE = "ring";
@@ -38,11 +37,6 @@ default Integer ringSize() {
         return 3;
     }
 
-    @Value.Default
-    default double rateLimit() {
-        return 100;
-    }
-
     @Value.Lazy
     default RateLimiter transactionRateLimiter() {
         return RateLimiter.create(rateLimit());u}(j&  (b786a95bef1effb5bd44f53eed786d588b38a9b0j&  datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflows.javaj&  modifiedj&  K
j&  K j&  K
j&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -51,6 +51,19 @@ private RingWorkflows() {
     }
 
     public static Workflow create(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration ringWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        AtomicBoolean skipRunning = new AtomicBoolean(false);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
+                ringWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
             InteractiveTransactionStore store,
             RingWorkflowConfiguration ringWorkflowConfiguration,
             ListeningExecutorService executionExecutor,u}(j&  (3d12ec12a07e0b90193451a34a6dccfcfa6f8e76j&  {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporterTest.javaj&  modifiedj&  Kj&  Kj&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -25,7 +25,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -60,7 +60,7 @@ public void runIncreasesMetricsIfViolationsFound() {
                         .build()));
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
                 .transactionStore(store)
-                .history(List.of(ImmutableWitnessedTransaction.builder()
+                .history(List.of(FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(u}(j&  (39cc7f77a28bd84fc271bbca23d8e9195abf6fd6j&  matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantTest.javaj&  modifiedj&  Kj&  Kj&  K
j&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X
  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -59,12 +59,12 @@ public void before() {
     public void cellsExpectedToBeDeletedAreFound() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)
@@ -86,12 +86,12 @@ public void cellsExpectedToBeDeletedAreFound() {
     public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)u}(j&  (398677d5ff242f5cee92de9c2737a0843621c59dj&  watlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporterTest.javaj&  modifiedj&  Kj&  Kj&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -19,7 +19,7 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import java.util.List;
 import org.junit.Test;
@@ -35,7 +35,7 @@ public void consumerDoesNotThrowWhenAcceptingViolations() {
         assertThatCode(() -> SerializableInvariantLogReporter.INSTANCE
                         .consumer()
                         .accept(List.of(InvalidWitnessedTransaction.of(
-                                ImmutableWitnessedTransaction.builder()
+                                FullyWitnessedTransaction.builder()
                                         .startTimestamp(1)
                                         .build(),
                                 List.of()))))u}(j&  (7a5e8dd4c01ddc761284d5c5bdc9c0345ddd2826j&  latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowRunnerTest.javaj&  removedj&  K j&  K-j&  K-j&  https://github.com/palantir/atlasdb/blob/4739f3e7e80219a2028cb2fbf155b1ebae43571f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.javaj&  https://github.com/palantir/atlasdb/raw/4739f3e7e80219a2028cb2fbf155b1ebae43571f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.java?ref=4739f3e7e80219a2028cb2fbf155b1ebae43571fj&  X  @@ -1,45 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.runner;
-
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.when;
-
-import com.palantir.atlasdb.workload.invariant.InvariantReporter;
-import com.palantir.atlasdb.workload.workflow.Workflow;
-import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
-import java.util.List;
-import org.junit.Test;
-
-public class AntithesisWorkflowRunnerTest {
-    @Test
-    public void runExecutesWorkflowsAndInvokesInvariantReporter() {
-        Workflow exampleWorkflow = mock(Workflow.class);
-        WorkflowHistory workflowHistory = mock(WorkflowHistory.class);
-        when(exampleWorkflow.run()).thenReturn(workflowHistory);
-        InvariantReporter<Void> exampleInvariantReporterOne = mock(InvariantReporter.class);
-        InvariantReporter<Void> exampleInvariantReporterTwo = mock(InvariantReporter.class);
-        AntithesisWorkflowRunner.INSTANCE.run(
-                exampleWorkflow, List.of(exampleInvariantReporterOne, exampleInvariantReporterTwo));
-        verify(exampleWorkflow, times(1)).run();
-        verify(exampleInvariantReporterOne, times(1)).report(any());
-        verify(exampleInvariantReporterTwo, times(1)).report(any());
-    }
-}u}(j&  (6c7f1d05425e8759d68b71073e9525eaf8f11057j&  uatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunnerTest.javaj&  addedj&  Kj&  K j&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  Xb  @@ -0,0 +1,140 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.runner;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doAnswer;
+import static org.mockito.Mockito.doThrow;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.times;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
+
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.Future;
+import java.util.concurrent.atomic.AtomicBoolean;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class AntithesisWorkflowValidatorRunnerTest {
+
+    private static final ListeningExecutorService EXECUTOR_SERVICE =
+            MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(8));
+
+    @Mock
+    private Workflow workflow;
+
+    @Mock
+    private WorkflowHistory workflowHistory;
+
+    @Mock
+    private InvariantReporter<Void> invariantReporterOne;
+
+    @Mock
+    private InvariantReporter<Void> invariantReporterTwo;
+
+    private WorkflowAndInvariants<Workflow> workflowAndInvariants;
+
+    @Before
+    public void before() {
+        when(workflow.run()).thenReturn(workflowHistory);
+        workflowAndInvariants = WorkflowAndInvariants.of(workflow, invariantReporterOne, invariantReporterTwo);
+    }
+
+    @Test
+    public void runExecutesWorkflowAndInvokesInvariantReporters() {
+        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(workflowAndInvariants);
+        verify(workflow, times(1)).run();
+        verify(invariantReporterOne, times(1)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+
+    @Test
+    public void runValidatesAllInvariantsIgnoringExceptions() {
+        doThrow(new RuntimeException()).when(invariantReporterOne).report(any());
+        doThrow(new RuntimeException()).when(invariantReporterTwo).report(any());
+        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(workflowAndInvariants);
+        verify(workflow, times(1)).run();
+        verify(invariantReporterOne, times(1)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+
+    @Test
+    public void runExecutesMultipleWorkflowsAndWaitsForAllToFinishBeforeInvokingInvariantReporter() {
+        CountDownLatch slowWorkflowCanMakeProgress = new CountDownLatch(1);
+        AtomicBoolean slowWorkflowIsDone = new AtomicBoolean(false);
+
+        Workflow slowWorkflow = mock(Workflow.class);
+        when(slowWorkflow.run()).thenAnswer(_input -> {
+            try {
+                slowWorkflowCanMakeProgress.await();
+                slowWorkflowIsDone.set(true);
+                return workflowHistory;
+            } catch (InterruptedException e) {
+                Thread.currentThread().interrupt();
+                throw new RuntimeException(e);
+            }
+        });
+
+        doAnswer(_invocation -> {
+                    assertThat(slowWorkflowIsDone.get())
+                            .as("the invariant reporter ran, even though the slow workflow was not done yet")
+                            .isTrue();
+                    return null;
+                })
+                .when(invariantReporterOne)
+                .report(any());
+
+        ExecutorService backgroundExecutor = PTExecutors.newSingleThreadExecutor();
+        try {
+            Future<Void> validation = backgroundExecutor.submit(() -> {
+                WorkflowAndInvariants<Workflow> slowWorkflowAndInvariants =
+                        WorkflowAndInvariants.of(slowWorkflow, invariantReporterOne);
+                new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE)
+                        .run(slowWorkflowAndInvariants, workflowAndInvariants);
+                return null;
+            });
+
+            assertThat(validation).as("the slow workflow was not actually slow").isNotDone();
+
+            slowWorkflowCanMakeProgress.countDown();
+            Futures.getUnchecked(validation);
+        } finally {
+            backgroundExecutor.shutdown();
+        }
+
+        verify(workflow, times(1)).run();
+        verify(slowWorkflow, times(1)).run();
+        verify(invariantReporterOne, times(2)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+}u}(j&  (5ec56f77b39005e45c63e6495f68b817646fecc6j&  jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj&  modifiedj&  K&j&  K j&  K&j&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -28,22 +28,28 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doAnswer;
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
 
 import com.google.common.collect.Iterables;
+import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
+import com.palantir.atlasdb.transaction.api.ConditionAwareTransactionTask;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.encoding.V1EncodingStrategy;
+import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore.CommitTimestampProvider;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -162,6 +168,38 @@ public void abortedTransactionsReturnEmpty() {
                 .isEmpty();
     }
 
+    @Test
+    public void keyAlreadyExistExceptionResultsInMaybeWitnessedTransaction() {
+        WriteTransactionAction writeTransactionAction =
+                WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+        TransactionManager keyAlreadyExistsExceptionThrowingStore = spy(manager);
+        doAnswer(invocation -> {
+                    Supplier<CommitTimestampProvider> commitTimestampFetcher = invocation.getArgument(0);
+                    ConditionAwareTransactionTask<Void, CommitTimestampProvider, Exception> task =
+                            invocation.getArgument(1);
+                    return manager.runTaskWithConditionWithRetry(commitTimestampFetcher, (txn, condition) -> {
+                        manager.getKeyValueService()
+                                .putUnlessExists(
+                                        TransactionConstants.TRANSACTION_TABLE,
+                                        Map.of(
+                                                V1EncodingStrategy.INSTANCE.encodeStartTimestampAsCell(
+                                                        txn.getTimestamp()),
+                                                Ints.toByteArray(-1)));
+                        task.execute(txn, condition);
+                        return null;
+                    });
+                })
+                .when(keyAlreadyExistsExceptionThrowingStore)
+                .runTaskWithConditionWithRetry(any(Supplier.class), any());
+        AtlasDbTransactionStore onlyKeyAlreadyExistsThrowingStore =
+                AtlasDbTransactionStore.create(keyAlreadyExistsExceptionThrowingStore, TABLES_TO_ATLAS_METADATA);
+        assertThat(onlyKeyAlreadyExistsThrowingStore.readWrite(List.of(writeTransactionAction)))
+                .hasValueSatisfying(witnessedTransaction -> {
+                    assertThat(witnessedTransaction).isInstanceOf(MaybeWitnessedTransaction.class);
+                    assertThat(witnessedTransaction.actions()).containsExactly(writeTransactionAction.witness());
+                });
+    }
+
     @Test
     public void getCommitTimestampIsEmptyWhenMatchesStartTimestamp() {
         CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();u}(j&  (d2773b68972e300a262ebb1f8c2a24f280280cfdj&  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javaj&  modifiedj&  Kj&  Kj&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -27,7 +27,7 @@
 
 import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.store.ValidationStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import java.util.List;
@@ -40,12 +40,12 @@ public final class InMemoryValidationStoreTest {
     @Test
     public void writeActionsPersistValues() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
@@ -61,13 +61,13 @@ public void writeActionsPersistValues() {
     @Test
     public void deleteActionsPutsEmptyOptionalForCell() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
@@ -80,17 +80,17 @@ public void deleteActionsPutsEmptyOptionalForCell() {
     @Test
     public void writesDeletesAreProcessedInOrder() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(5)
                         .commitTimestamp(6)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_TWO))u}(j&  (2b067a134a06d3e605fca8d36dacf3678a76ffcej&  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj&  modifiedj&  Kj&  Kj&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -103,7 +103,7 @@ public WitnessedTransactionsBuilder endTransaction(Optional<Long> commitTimestam
                         startTimestamp < commitTimestamp.get(),
                         "Commit timestamp must be greater than the start timestamp.");
             }
-            witnessedTransactions.add(ImmutableWitnessedTransaction.builder()
+            witnessedTransactions.add(FullyWitnessedTransaction.builder()
                     .startTimestamp(startTimestamp)
                     .actions(actions)
                     .commitTimestamp(commitTimestamp)u}(j&  (d495a71c18ca7b125092f092c371e0a4a455ad73j&  atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitorTest.javaj&  addedj&  KAj&  K j&  KAj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javaj&  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X
  @@ -0,0 +1,65 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyLong;
+import static org.mockito.Mockito.verifyNoInteractions;
+import static org.mockito.Mockito.when;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class OnlyCommittedWitnessedTransactionVisitorTest {
+
+    private static final FullyWitnessedTransaction READ_ONLY_WITNESSED_TRANSACTION =
+            FullyWitnessedTransaction.builder().startTimestamp(100L).build();
+
+    private static final MaybeWitnessedTransaction MAYBE_WITNESSED_TRANSACTION = MaybeWitnessedTransaction.builder()
+            .startTimestamp(100L)
+            .commitTimestamp(101L)
+            .build();
+
+    @Mock
+    private ReadOnlyTransactionStore transactionStore;
+
+    @Test
+    public void fullyCommittedTransactionsAreNeverChecked() {
+        assertThat(READ_ONLY_WITNESSED_TRANSACTION.accept(
+                        new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(READ_ONLY_WITNESSED_TRANSACTION);
+        verifyNoInteractions(transactionStore);
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsEmptyWhenNotCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(false);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .isEmpty();
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsFullyWitnessedWhenCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(true);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(MAYBE_WITNESSED_TRANSACTION.toFullyWitnessed());
+    }
+}u}(j&  (c661ec5533851b62afb963d1f472d967b8a67e83j&  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunnerTest.javaj&  modifiedj&  Kj&  Kj&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -33,7 +33,7 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.List;
@@ -126,7 +126,7 @@ public void storePassedThroughToIndividualTasks() {
     }
 
     private static WitnessedTransaction createWitnessedTransactionWithStartTimestamp(int startTimestamp) {
-        return ImmutableWitnessedTransaction.builder()
+        return FullyWitnessedTransaction.builder()
                 .startTimestamp(startTimestamp)
                 .build();
     }u}(j&  (f8a19900eee6cf1226affe562f3f1ad73f58040dj&  eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javaj&  modifiedj&  K2j&  Kj&  KNj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X!  @@ -27,9 +27,10 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.common.concurrent.PTExecutors;
+import java.util.List;
 import java.util.concurrent.ScheduledExecutorService;
 import org.junit.Test;
 
@@ -41,66 +42,78 @@ public class DefaultWorkflowTest {
     private final ScheduledExecutorService scheduler = PTExecutors.newSingleThreadScheduledExecutor();
     private final ListeningExecutorService executionExecutor = MoreExecutors.listeningDecorator(scheduler);
 
+    private final DefaultWorkflow<TransactionStore> workflow =
+            DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
+
     @Test
     public void handlesExceptionsInUnderlyingTasks() {
         RuntimeException transactionException = new RuntimeException("boo");
         when(transactionTask.apply(eq(store), anyInt())).thenThrow(transactionException);
-
-        Workflow workflow =
-                DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
         assertThatThrownBy(workflow::run)
                 .hasMessage("Error when running workflow task")
                 .hasCause(transactionException);
     }
 
     @Test
     public void returnsUnderlyingWitnessedTransactions() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight)))
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight)))
                 .containsExactly(twoToEight);
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(readOnlyAtFive)))
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(readOnlyAtFive)))
                 .containsExactly(readOnlyAtFive);
     }
 
     @Test
     public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
-        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
                 .containsExactly(fourToSix, threeToSeven, twoToEight);
     }
 
     @Test
     public void sortsReadOnlyTransactionsByStartTimestamp() {
-        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        WitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(
+        assertThat(workflow.sortAndFilterTransactions(
                         ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
                 .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
     }
 
     @Test
     public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
 
-        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        WitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(
                         twoToEight, readOnlyAtNine, fourToSix, readOnlyAtFive, readOnlyAtThree, readOnlyAtSeven)))
                 .containsExactly(
                         readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
     }
 
+    @Test
+    public void filterRemovesUncommittedTransactions() {
+        MaybeWitnessedTransaction committedMaybeWitnessedTransaction =
+                createMaybeWitnessedTransactionWithoutActions(1, 3, true);
+        MaybeWitnessedTransaction notCommittedTransaction = createMaybeWitnessedTransactionWithoutActions(2, 8, false);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        assertThat(workflow.sortAndFilterTransactions(List.of(
+                        committedMaybeWitnessedTransaction, notCommittedTransaction, readOnlyAtFive, fourToSix)))
+                .containsExactly(committedMaybeWitnessedTransaction.toFullyWitnessed(), readOnlyAtFive, fourToSix);
+    }
+
     private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
         return new WorkflowConfiguration() {
             @Override
@@ -110,12 +123,21 @@ public int iterationCount() {
         };
     }
 
-    private static WitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
-        return ImmutableWitnessedTransaction.builder().startTimestamp(start).build();
+    private MaybeWitnessedTransaction createMaybeWitnessedTransactionWithoutActions(
+            long start, long commit, boolean committed) {
+        when(store.isCommitted(eq(start))).thenReturn(committed);
+        return MaybeWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+
+    private static FullyWitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
+        return FullyWitnessedTransaction.builder().startTimestamp(start).build();
     }
 
-    private static WitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
-        return ImmutableWitnessedTransaction.builder()
+    private static FullyWitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
+        return FullyWitnessedTransaction.builder()
                 .startTimestamp(start)
                 .commitTimestamp(commit)
                 .build();u}(j&  (7704c4f40f9407a6ec34cfd4976c31f5757d7911j&   changelog/0.844.0/pr-6541.v2.ymlj&  renamedj&  K j&  K j&  K j&  vhttps://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/changelog%2F0.844.0%2Fpr-6541.v2.ymlj&  uhttps://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/changelog%2F0.844.0%2Fpr-6541.v2.ymlj&  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.844.0%2Fpr-6541.v2.yml?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24djR'  $changelog/@unreleased/pr-6541.v2.ymlu}(j&  (8c7080dd5d4974fb88000981969ccef6b2528af2j&   changelog/0.844.0/pr-6548.v2.ymlj&  renamedj&  K j&  K j&  K j&  vhttps://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/changelog%2F0.844.0%2Fpr-6548.v2.ymlj&  uhttps://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/changelog%2F0.844.0%2Fpr-6548.v2.ymlj&  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.844.0%2Fpr-6548.v2.yml?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24djR'  $changelog/@unreleased/pr-6548.v2.ymlu}(j&  (be35f6935babe6fd6f3078a75090f80835e5f244j&  Ocommons-executors/src/main/java/com/palantir/common/concurrent/PTExecutors.javaj&  modifiedj&  Kj&  K	j&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutors.javaj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutors.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutors.java?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -295,10 +295,12 @@ public static ThreadPoolExecutor newFixedThreadPool(int numThreads, ThreadFactor
      * @throws IllegalArgumentException if <tt>numThreads &lt;= 0</tt>
      */
     public static ExecutorService newFixedThreadPool(int numThreads, String name) {
-        return MetricRegistries.instrument(
-                SharedTaggedMetricRegistries.getSingleton(),
-                PTExecutors.wrap(name, getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())),
-                name);
+        return MetricRegistries.executor()
+                .registry(SharedTaggedMetricRegistries.getSingleton())
+                .name(name)
+                .executor(PTExecutors.wrap(
+                        name, getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())))
+                .build();
     }
 
     /**
@@ -316,11 +318,12 @@ public static ExecutorService newFixedThreadPool(int numThreads, String name) {
      * @throws IllegalArgumentException if <tt>numThreads &lt;= 0</tt>
      */
     public static ExecutorService newFixedThreadPoolWithoutSpan(int numThreads, String name) {
-        return MetricRegistries.instrument(
-                SharedTaggedMetricRegistries.getSingleton(),
-                PTExecutors.wrapWithoutSpan(
-                        getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())),
-                name);
+        return MetricRegistries.executor()
+                .registry(SharedTaggedMetricRegistries.getSingleton())
+                .name(name)
+                .executor(PTExecutors.wrapWithoutSpan(
+                        getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())))
+                .build();
     }
 
     public static ExecutorService getViewExecutor(u}(j&  (eaeb2c0f0e5d188b45c25cd7a8276be5f686ca0dj&  *scripts/circle-ci/publish-to-antithesis.shj&  modifiedj&  K	j&  Kj&  Kj&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj&  https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  Xs  @@ -12,18 +12,19 @@ fi
 
 printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://${ANTITHESIS_REPO_URL} --password-stdin
 
-./gradlew --scan docker
+./gradlew --scan dockerTag
+
+VERSION=$(./gradlew -q printVersion)
 
 docker pull palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
 docker tag palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra ${ANTITHESIS_REPO_URL}/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
 docker push ${ANTITHESIS_REPO_URL}/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
 
-docker tag palantirtechnologies/timelock-server-distribution:unspecified ${ANTITHESIS_REPO_URL}/timelock-server-distribution:unspecified
-docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:unspecified
+docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${VERSION}
+docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${VERSION}
 
-docker tag palantirtechnologies/atlasdb-workload-server-distribution:unspecified ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:unspecified
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:unspecified
+docker tag palantirtechnologies/atlasdb-workload-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${VERSION}
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${VERSION}
 
-LATEST_ANTITHESIS_TAG=$(docker image ls palantirtechnologies/atlasdb-workload-server-antithesis --format "{{.Tag}}")
-docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}
+docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${VERSION}
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${VERSION}
\ No newline at end of fileu}(j&  (436b0a5b41be9609f93c54d0c8fca21c38fded84j&  >timelock-server-distribution/var/conf/timelock.distributed.ymlj&  addedj&  K2j&  K j&  K2j&  https://github.com/palantir/atlasdb/blob/9fcbd0e5cd52c19c710d72f70f1236407377a24d/timelock-server-distribution%2Fvar%2Fconf%2Ftimelock.distributed.ymlj&  https://github.com/palantir/atlasdb/raw/9fcbd0e5cd52c19c710d72f70f1236407377a24d/timelock-server-distribution%2Fvar%2Fconf%2Ftimelock.distributed.ymlj&  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-distribution%2Fvar%2Fconf%2Ftimelock.distributed.yml?ref=9fcbd0e5cd52c19c710d72f70f1236407377a24dj&  X  @@ -0,0 +1,50 @@
+install:
+  paxos:
+    data-directory: "var/data/paxos"
+    is-new-service: false
+  timestampBoundPersistence:
+
+runtime:
+  cluster-config-not-live-reloaded:
+    cluster:
+      uris:
+        - "localhost:8421"
+        - "timelock1.palantir.pt:8421"
+        - "timelock2.palantir.pt:8421"
+        - "timelock3.palantir.pt:8421"
+      security:
+        keyStorePath: "var/security/keyStore.jks"
+        keyStorePassword: "keystore"
+        trustStorePath: "var/security/trustStore.jks"
+    local-server: "localhost:8421"
+    enableNonstandardAndPossiblyDangerousTopology: true
+  paxos:
+  permitted-backup-token: "test-auth"
+
+server:
+  applicationConnectors:
+    - type: https
+      port: 8421
+      keyStorePath: var/security/keyStore.jks
+      keyStorePassword: keystore
+      trustStorePath: var/security/trustStore.jks
+      validateCerts: false
+      supportedCipherSuites:
+        - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
+        - TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
+        - TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
+        - TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
+        - TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384
+        - TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256
+        - TLS_RSA_WITH_AES_128_CBC_SHA256
+        - TLS_RSA_WITH_AES_256_CBC_SHA256
+        - TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
+        - TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
+        - TLS_ECDH_RSA_WITH_AES_256_CBC_SHA
+        - TLS_ECDH_RSA_WITH_AES_128_CBC_SHA
+        - TLS_RSA_WITH_AES_256_CBC_SHA
+        - TLS_RSA_WITH_AES_128_CBC_SHA
+        - TLS_EMPTY_RENEGOTIATION_INFO_SCSV
+  adminConnectors:
+    - type: http
+      port: 8422ueu(f543584dc5a49d081d16f535500baff12f56075e}(sha(f543584dc5a49d081d16f535500baff12f56075enode_idEC_kwDOAjP5fdoAKGY1NDM1ODRkYzVhNDlkMDgxZDE2ZjUzNTUwMGJhZmYxMmY1NjA3NWUcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-04-06T17:50:13Zu	committer}(jf(  GitHubjh(  noreply@github.comjj(  2023-04-06T17:50:13ZumessageAdd JNA and instrumentation jar to classpaths for timelock/workload server (#6512)

Adds references to jars which will give us instrumentation for our antithesis worktree}(j^(  (0b3fd444ca1ad30a697be9ffe2829b226f6e55fburl`https://api.github.com/repos/palantir/atlasdb/git/trees/0b3fd444ca1ad30a697be9ffe2829b226f6e55fbu     jv(  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f543584dc5a49d081d16f535500baff12f56075e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkLwZVCRBK7hj4Ov3rIwAAH0QIACA5hXqUnuLcX8upDjVSh9N+
rB8bC2j3wDGPClDfhV5Ho1tBqk4H4oePCdzJ8F1lxluEx0e2rjCD7d3D0ESndvLM
dndJadu8vRovAFNMVXHW+3T0DGzzhWeZ5rZxIR1mSLlmLSrHySuJ5uIrvduJP1rU
Dwe8zmsHPYBT/E8zzNzeOomUDsDZIu+IPsOlKpelZHAf/a6sMu2ikbE9dmJ9Vtjo
WwfOih2DFrsF1LFAh1jQNpbaS5ZBcOhcGaLEvifOJ3zzgI2S3QWm9WPoAOoAawEw
IrQBrK2xbhOPZoSbsi1ipdpfFrN+7VsXHNMUU+M2weJdDDnbzAS+RrkVHQmzamc=
=7XwL
-----END PGP SIGNATURE-----
payloadXz  tree 0b3fd444ca1ad30a697be9ffe2829b226f6e55fb
parent b48b80fc886b4054e26e30b37c1280ecfa2d2a93
author Sam-Kramer <sam.c.kramer@gmail.com> 1680803413 +0100
committer GitHub <noreply@github.com> 1680803413 +0000

Add JNA and instrumentation jar to classpaths for timelock/workload server (#6512)

Adds references to jars which will give us instrumentation for our antithesis work 
uujv(  ^https://api.github.com/repos/palantir/atlasdb/commits/f543584dc5a49d081d16f535500baff12f56075ehtml_urlShttps://github.com/palantir/atlasdb/commit/f543584dc5a49d081d16f535500baff12f56075ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f543584dc5a49d081d16f535500baff12f56075e/commentsjd(  }(login
Sam-KrameridJ^2_ j`(  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jv(  'https://api.github.com/users/Sam-Kramerj(  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujl(  }(j(  web-flowj(  J/j`(  MDQ6VXNlcjE5ODY0NDQ3j(  4https://avatars.githubusercontent.com/u/19864447?v=4j(  h5jv(  %https://api.github.com/users/web-flowj(  https://github.com/web-flowj(  /https://api.github.com/users/web-flow/followersj(  <https://api.github.com/users/web-flow/following{/other_user}j(  5https://api.github.com/users/web-flow/gists{/gist_id}j(  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j(  3https://api.github.com/users/web-flow/subscriptionsj(  *https://api.github.com/users/web-flow/orgsj(  +https://api.github.com/users/web-flow/reposj(  6https://api.github.com/users/web-flow/events{/privacy}j(  5https://api.github.com/users/web-flow/received_eventsj(  Userj(  uparents]}(j^(  (b48b80fc886b4054e26e30b37c1280ecfa2d2a93jv(  ^https://api.github.com/repos/palantir/atlasdb/commits/b48b80fc886b4054e26e30b37c1280ecfa2d2a93j(  Shttps://github.com/palantir/atlasdb/commit/b48b80fc886b4054e26e30b37c1280ecfa2d2a93uastats}(totalK	additionsK	deletionsKufiles](}(j^(  (cc7e69bad989ea6a9cdfb46c4ad566a80eb21afbfilename/atlasdb-workload-server-distribution/Dockerfilestatusmodifiedj(  K	j(  KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/f543584dc5a49d081d16f535500baff12f56075e/atlasdb-workload-server-distribution%2FDockerfileraw_urlhttps://github.com/palantir/atlasdb/raw/f543584dc5a49d081d16f535500baff12f56075e/atlasdb-workload-server-distribution%2FDockerfilecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2FDockerfile?ref=f543584dc5a49d081d16f535500baff12f56075epatchX  @@ -4,7 +4,7 @@ MAINTAINER AtlasDB Team
 ENV DOCKERIZE_VERSION v0.2.0
 
 # Bash is useful for monitoring; curl is used by our healthchecks.
-RUN apk update && apk add bash curl procps wget  \
+RUN apk update && apk add bash curl procps wget \
     && wget --no-check-certificate http://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
     && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
 
@@ -15,4 +15,12 @@ RUN mv /atlasdb-workload-server-* /atlasdb-workload-server
 
 WORKDIR /atlasdb-workload-server
 
+# Needed for Antithesis
+RUN curl -o /usr/bin/yq -kLf https://github.com/mikefarah/yq/releases/download/v4.33.2/yq_linux_amd64 && \
+    chmod +x /usr/bin/yq
+RUN yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-static.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-static.yml
+
 CMD ["service/bin/init.sh", "console"]u}(j^(  (359974e9fa7aa3a572d6a83f664860a450f6b32fj(  'timelock-server-distribution/Dockerfilej(  modifiedj(  Kj(  K j(  Kj(  {https://github.com/palantir/atlasdb/blob/f543584dc5a49d081d16f535500baff12f56075e/timelock-server-distribution%2FDockerfilej(  zhttps://github.com/palantir/atlasdb/raw/f543584dc5a49d081d16f535500baff12f56075e/timelock-server-distribution%2FDockerfilej(  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-distribution%2FDockerfile?ref=f543584dc5a49d081d16f535500baff12f56075ej(  Xt  @@ -13,6 +13,14 @@ WORKDIR /timelock-server
 
 RUN mkdir -p var/data/paxos
 
+# Needed for Antithesis
+RUN curl -o /usr/bin/yq -kLf https://github.com/mikefarah/yq/releases/download/v4.33.2/yq_linux_amd64 && \
+    chmod +x /usr/bin/yq
+RUN yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-static.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-static.yml
+
 EXPOSE 8421 \
        8422
 ueu(322d411dda306a37227fef474f81edf205aa7f0b}(sha(322d411dda306a37227fef474f81edf205aa7f0bnode_idEC_kwDOAjP5fdoAKDMyMmQ0MTFkZGEzMDZhMzcyMjdmZWY0NzRmODFlZGYyMDVhYTdmMGIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-16T12:28:16Zu	committer}(j(  
Sam Kramerj(  skramer@palantir.comj(  2023-06-19T15:17:50ZumessageLess invasive changetree}(j(  (1a1b185971ae1cc420c81ebd19a453e4a84e7320url`https://api.github.com/repos/palantir/atlasdb/git/trees/1a1b185971ae1cc420c81ebd19a453e4a84e7320uj(  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/322d411dda306a37227fef474f81edf205aa7f0b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSQcZ4ACgkQmPPOpKR4
XS2w1QgAlwK1id4xtn4MffQ6aB5jcfsLPmlNvepNoCG+1Uf3SpHfaiU/+EXqWoHA
U8qMnze9lXZqBAPSAhhhXCydOSzlIAQXpnWSStTdOK0rkyR6xdEtywoT/4X7Tu+o
gJqXYyZgSQKfSNDP6Z48kcRC/qCbAxDn0QE1BFfX7613RogYmkU8QmY5jbwd/k2o
2asuN3tWSkWDRjMUUneRQsNpwp4477TzkVIDGEElVNARF7XmcWVnVSO+3v1JWjo/
NqyC0VKc/YCITwd2WOwkAqJliA8GXTW849zOR7ekWYnIpb3toHFgiiY+oYSJffTV
yoLNU9cv3KrnWNPAQy9FPTakdAB7wg==
=LT/j
-----END PGP SIGNATURE-----payloadtree 1a1b185971ae1cc420c81ebd19a453e4a84e7320
parent 4a2ad6196ff52c8959d0c08bb5e929ca5db71666
author Sam Kramer <skramer@palantir.com> 1686918496 +0100
committer Sam Kramer <skramer@palantir.com> 1687187870 +0100

Less invasive change
uuj(  ^https://api.github.com/repos/palantir/atlasdb/commits/322d411dda306a37227fef474f81edf205aa7f0bhtml_urlShttps://github.com/palantir/atlasdb/commit/322d411dda306a37227fef474f81edf205aa7f0bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/322d411dda306a37227fef474f81edf205aa7f0b/commentsj(  }(login
Sam-KrameridJ^2_ j(  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j(  'https://api.github.com/users/Sam-Kramerj)  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj(  }(j)  
Sam-Kramerj
)  J^2_ j(  MDQ6VXNlcjYyMzg4MTQ=j)  3https://avatars.githubusercontent.com/u/6238814?v=4j)  h5j(  'https://api.github.com/users/Sam-Kramerj)  https://github.com/Sam-Kramerj)  1https://api.github.com/users/Sam-Kramer/followersj)  >https://api.github.com/users/Sam-Kramer/following{/other_user}j)  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j)  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j)  5https://api.github.com/users/Sam-Kramer/subscriptionsj)  ,https://api.github.com/users/Sam-Kramer/orgsj)  -https://api.github.com/users/Sam-Kramer/reposj)  8https://api.github.com/users/Sam-Kramer/events{/privacy}j!)  7https://api.github.com/users/Sam-Kramer/received_eventsj#)  Userj%)  uparents]}(j(  (4a2ad6196ff52c8959d0c08bb5e929ca5db71666j(  ^https://api.github.com/repos/palantir/atlasdb/commits/4a2ad6196ff52c8959d0c08bb5e929ca5db71666j)  Shttps://github.com/palantir/atlasdb/commit/4a2ad6196ff52c8959d0c08bb5e929ca5db71666uastats}(totalKb	additionsKA	deletionsK!ufiles]}(j(  (91d6d9e53d476abdf96b677c9f1bb2964fa06c21filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj?)  KAj@)  K!changesKbblob_urlhttps://github.com/palantir/atlasdb/blob/322d411dda306a37227fef474f81edf205aa7f0b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/322d411dda306a37227fef474f81edf205aa7f0b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=322d411dda306a37227fef474f81edf205aa7f0bpatchX  @@ -210,6 +210,8 @@ public class SnapshotTransaction extends AbstractTransaction
     private static final int BATCH_SIZE_GET_FIRST_PAGE = 1000;
     private static final long TXN_LENGTH_THRESHOLD = Duration.ofMinutes(30).toMillis();
 
+    private static final int MAX_POST_FILTERING_ITERATIONS = 100_000;
+
     @VisibleForTesting
     static final int MIN_BATCH_SIZE_FOR_DISTRIBUTED_LOAD = 100;
 
@@ -1456,30 +1458,52 @@ private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilterin
 
         return Futures.transformAsync(
                 Futures.immediateFuture(rawResults),
-                remainingResultsToPostFilter -> getWithPostFilteringIterate(
-                        tableRef, remainingResultsToPostFilter, resultsAccumulator, transformer, asyncKeyValueService),
+                resultsToPostFilter -> getWithPostFilteringIterate(
+                        tableRef,
+                        resultsToPostFilter,
+                        resultsAccumulator,
+                        transformer,
+                        asyncKeyValueService,
+                        asyncTransactionService),
                 MoreExecutors.directExecutor());
     }
 
     private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilteringIterate(
             TableReference tableReference,
-            Map<Cell, Value> remainingResultsToPostFilter,
+            Map<Cell, Value> resultsToPostFilter,
             Collection<Map.Entry<Cell, T>> resultsAccumulator,
             Function<Value, T> transformer,
-            AsyncKeyValueService asyncKeyValueService) {
-        Map<Cell, Value> results = remainingResultsToPostFilter;
-        while (!results.isEmpty()) {
-            results = getWithPostFilteringInternal(
-                    tableReference,
-                    remainingResultsToPostFilter,
-                    resultsAccumulator,
-                    transformer,
-                    asyncKeyValueService);
-        }
+            AsyncKeyValueService asyncKeyValueService,
+            AsyncTransactionService asyncTransactionService) {
+        return Futures.transformAsync(
+                Futures.immediateFuture(resultsToPostFilter),
+                results -> {
+                    int iterations = 0;
+                    Map<Cell, Value> remainingResultsToPostFilter = results;
+                    while (!remainingResultsToPostFilter.isEmpty()) {
+                        remainingResultsToPostFilter = AtlasFutures.getUnchecked(getWithPostFilteringInternal(
+                                tableReference,
+                                remainingResultsToPostFilter,
+                                resultsAccumulator,
+                                transformer,
+                                asyncKeyValueService,
+                                asyncTransactionService));
+                        Preconditions.checkState(
+                                iterations++ < MAX_POST_FILTERING_ITERATIONS,
+                                "Unable to filter cells to find correct result after "
+                                        + "reaching max iterations. This is likely due to aborted cells lying around,"
+                                        + " or in the very rare case, could be due to transactions which constantly "
+                                        + "conflict but never commit. These values will be cleaned up eventually, but"
+                                        + " if the issue persists, ensure that sweep is caught up.",
+                                SafeArg.of("table", tableReference),
+                                SafeArg.of("maxIterations", MAX_POST_FILTERING_ITERATIONS));
+                    }
+                    getCounter(AtlasDbMetricNames.SNAPSHOT_TRANSACTION_CELLS_RETURNED, tableReference)
+                            .inc(resultsAccumulator.size());
 
-        getCounter(AtlasDbMetricNames.SNAPSHOT_TRANSACTION_CELLS_RETURNED, tableReference)
-                .inc(resultsAccumulator.size());
-        return Futures.immediateFuture(resultsAccumulator);
+                    return Futures.immediateFuture(resultsAccumulator);
+                },
+                MoreExecutors.directExecutor());
     }
 
     /**
@@ -1567,26 +1591,29 @@ private static boolean isSweepSentinel(Value value) {
      * This will return all the key-value pairs that still need to be postFiltered.  It will output properly post
      * filtered keys to the {@code resultsCollector} output param.
      */
-    private <T> Map<Cell, Value> getWithPostFilteringInternal(
+    private <T> ListenableFuture<Map<Cell, Value>> getWithPostFilteringInternal(
             TableReference tableRef,
             Map<Cell, Value> rawResults,
             @Output Collection<Map.Entry<Cell, T>> resultsCollector,
             Function<Value, T> transformer,
-            AsyncKeyValueService asyncKeyValueService) {
+            AsyncKeyValueService asyncKeyValueService,
+            AsyncTransactionService asyncTransactionService) {
         Set<Cell> orphanedSentinels = findOrphanedSweepSentinels(tableRef, rawResults);
         Set<Long> valuesStartTimestamps = getStartTimestampsForValues(rawResults.values());
-        Map<Long, Long> commitTimestamps = getCommitTimestampsSync(tableRef, valuesStartTimestamps, true);
-        return collectCellsToPostFilter(
-                tableRef,
-                rawResults,
-                resultsCollector,
-                transformer,
-                asyncKeyValueService,
-                orphanedSentinels,
-                commitTimestamps);
+        return Futures.transformAsync(
+                getCommitTimestamps(tableRef, valuesStartTimestamps, true, asyncTransactionService),
+                commitTimestamps -> collectCellsToPostFilter(
+                        tableRef,
+                        rawResults,
+                        resultsCollector,
+                        transformer,
+                        asyncKeyValueService,
+                        orphanedSentinels,
+                        commitTimestamps),
+                MoreExecutors.directExecutor());
     }
 
-    private <T> Map<Cell, Value> collectCellsToPostFilter(
+    private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
             TableReference tableRef,
             Map<Cell, Value> rawResults,
             @Output Collection<Map.Entry<Cell, T>> resultsCollector,
@@ -1655,15 +1682,20 @@ private <T> Map<Cell, Value> collectCellsToPostFilter(
         if (!keysToDelete.isEmpty()) {
             // if we can't roll back the failed transactions, we should just try again
             if (!rollbackFailedTransactions(tableRef, keysToDelete, commitTimestamps, defaultTransactionService)) {
-                return getRemainingResults(rawResults, keysAddedToResults);
+                return Futures.immediateFuture(getRemainingResults(rawResults, keysAddedToResults));
             }
         }
 
         if (!keysToReload.isEmpty()) {
-            validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
-            return getRemainingResults(keyValueService.get(tableRef, keysToReload), keysAddedToResults);
-        }
-        return ImmutableMap.of();
+            return Futures.transform(
+                    asyncKeyValueService.getAsync(tableRef, keysToReload),
+                    nextRawResults -> {
+                        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+                        return getRemainingResults(nextRawResults, keysAddedToResults);
+                    },
+                    MoreExecutors.directExecutor());
+        }
+        return Futures.immediateFuture(ImmutableMap.of());
     }
 
     private Map<Cell, Value> getRemainingResults(Map<Cell, Value> rawResults, Set<Cell> keysAddedToResults) {uau(90477bd0a16681c6415030719d9ecf2a27df0611}(sha(90477bd0a16681c6415030719d9ecf2a27df0611node_idEC_kwDOAjP5fdoAKDkwNDc3YmQwYTE2NjgxYzY0MTUwMzA3MTlkOWVjZjJhMjdkZjA2MTEcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-20T15:16:19Zu	committer}(j\)  Lucas Meirelesj^)  meireles31@msn.comj`)  2023-07-20T15:16:19Zumessagetest for not reducingtree}(jT)  (9858d19459adb06b37ec49a83c7ea6f09ddb3b54url`https://api.github.com/repos/palantir/atlasdb/git/trees/9858d19459adb06b37ec49a83c7ea6f09ddb3b54ujl)  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/90477bd0a16681c6415030719d9ecf2a27df0611
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS5T8MACgkQJd22kJ7J
GizulwgAgJfDXQS/Zmr1IIkJsVcFACm5HSTaAAPy23jgQ5WU3o6pLu3z+pd+vJPK
QXuwh1iTymqm9zPqio4kfBKq1gIVvuhZnfOuad9t3u9Dt2DCGstF6B0en0zvh5bl
bei+nVNnGhx6wl+gXOa72jPR2gXiRlL+zAkFekZt8x8Kgr3yI5DhIloJfqMpkApF
59Nr07sbf/SNecjnyIXgU0rCv9Qyhc8mIY7J9Nvmj/8GcDP2QByWbDII20B0BpJK
D6vesAarXR7qSUhtMCg4jPAEBkx4bkZxr7TC15dpZ/IZ21uerT3NpA4AzRWpawhy
KqOH5AD1E0K/gIv1rVwle0PW+fMpSg==
=ErZp
-----END PGP SIGNATURE-----payloadtree 9858d19459adb06b37ec49a83c7ea6f09ddb3b54
parent b557bc7d7e2d0a010131c6e2f3ee3927b4d3e7a9
author Lucas Meireles <meireles31@msn.com> 1689866179 +0100
committer Lucas Meireles <meireles31@msn.com> 1689866179 +0100

test for not reducing
uujl)  ^https://api.github.com/repos/palantir/atlasdb/commits/90477bd0a16681c6415030719d9ecf2a27df0611html_urlShttps://github.com/palantir/atlasdb/commit/90477bd0a16681c6415030719d9ecf2a27df0611comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/90477bd0a16681c6415030719d9ecf2a27df0611/commentsjZ)  }(loginLucasIMEidJg jV)  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jl)  %https://api.github.com/users/LucasIMEjz)  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujb)  }(j)  LucasIMEj)  Jg jV)  MDQ6VXNlcjY3ODczMTE=j)  3https://avatars.githubusercontent.com/u/6787311?v=4j)  h5jl)  %https://api.github.com/users/LucasIMEjz)  https://github.com/LucasIMEj)  /https://api.github.com/users/LucasIME/followersj)  <https://api.github.com/users/LucasIME/following{/other_user}j)  5https://api.github.com/users/LucasIME/gists{/gist_id}j)  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j)  3https://api.github.com/users/LucasIME/subscriptionsj)  *https://api.github.com/users/LucasIME/orgsj)  +https://api.github.com/users/LucasIME/reposj)  6https://api.github.com/users/LucasIME/events{/privacy}j)  5https://api.github.com/users/LucasIME/received_eventsj)  Userj)  uparents]}(jT)  (b557bc7d7e2d0a010131c6e2f3ee3927b4d3e7a9jl)  ^https://api.github.com/repos/palantir/atlasdb/commits/b557bc7d7e2d0a010131c6e2f3ee3927b4d3e7a9jz)  Shttps://github.com/palantir/atlasdb/commit/b557bc7d7e2d0a010131c6e2f3ee3927b4d3e7a9uastats}(totalK)	additionsK)	deletionsK ufiles]}(jT)  (fdfda2d3aa6c90d52239ee66bd34b5012b90e36afilenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedj)  K)j)  K changesK)blob_urlhttps://github.com/palantir/atlasdb/blob/90477bd0a16681c6415030719d9ecf2a27df0611/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/90477bd0a16681c6415030719d9ecf2a27df0611/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=90477bd0a16681c6415030719d9ecf2a27df0611patchXZ
  @@ -1705,6 +1705,47 @@ public void throwsIfReadingMoreThanExpectedNumberOfValues() {
         verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
     }
 
+    @Test
+    public void keepNumberOfExpectedCellsTheSameIfNoneCached() {
+        putCellsInTable(List.of(TEST_CELL, TEST_CELL_2, TEST_CELL_4), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        CacheMetrics metrics = mock(CacheMetrics.class);
+        TransactionScopedCache emptyCache = TransactionScopedCacheImpl.create(
+                ValueCacheSnapshotImpl.of(
+                        HashMap.empty(), HashSet.of(TABLE_SWEPT_THOROUGH), ImmutableSet.of(TABLE_SWEPT_THOROUGH)),
+                metrics);
+        LockWatchManagerInternal mockLockWatchManager = mock(LockWatchManagerInternal.class);
+        when(mockLockWatchManager.getTransactionScopedCache(anyLong())).thenReturn(emptyCache);
+
+        PathTypeTracker pathTypeTracker = PathTypeTrackers.constructSynchronousTracker();
+        SnapshotTransaction spiedSnapshotTransaction =
+                spy(getSnapshotTransactionWith(transactionTs, res, mockLockWatchManager, pathTypeTracker));
+        Transaction transaction = transactionWrapper.apply(spiedSnapshotTransaction, pathTypeTracker);
+
+        // Fetching 3 cells, but expect only 2 to be present.
+        assertThatCode(() -> transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2))
+                .doesNotThrowAnyException();
+
+        // We shouldn't check for locks even though we haven't fetched all 3 cells, because we fetched 2 and passed
+        // that as the expected value
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+
+        // Since one cell is cached, should only expect 1 to be present on internal call
+        verify(spiedSnapshotTransaction)
+                .getInternal(
+                        eq("getWithExpectedNumberOfCells"),
+                        eq(TABLE_SWEPT_THOROUGH),
+                        eq(Set.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3)),
+                        eq(2),
+                        any(),
+                        any());
+    }
+
     @Test
     public void reduceCachedCellsFromNumberOfExpectedCells() {
         putCellsInTable(List.of(TEST_CELL, TEST_CELL_2, TEST_CELL_4), TABLE_SWEPT_THOROUGH);uau(791ec1326a3ff7b0ca2b6be273b1dbf012b74139}(sha(791ec1326a3ff7b0ca2b6be273b1dbf012b74139node_idEC_kwDOAjP5fdoAKDc5MWVjMTMyNmEzZmY3YjBjYTJiNmJlMjczYjFkYmYwMTJiNzQxMzkcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-08T10:09:46Zu	committer}(j)  Lucas Meirelesj)  meireles31@msn.comj)  2023-06-08T10:09:46Zumessageainitial implementation of no immutableT lock check on non empty reads on thoroughly swept tables.tree}(j)  (b95a43dd79998a8f7763926e3cb943bce5888385url`https://api.github.com/repos/palantir/atlasdb/git/trees/b95a43dd79998a8f7763926e3cb943bce5888385uj)  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/791ec1326a3ff7b0ca2b6be273b1dbf012b74139
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSBqOoACgkQJd22kJ7J
Giy3/ggA61kVueulHu279Oo+5P3oK2kJ6Mdpk2kUJyGY9tmpqRJzKJMd/fU8er1J
C5WPP9i/5vqBkiZwzEdHol9FC4KFLR+w1o40i5jOPi0DtMSRrzndy0gM5pMLeR4z
yi/aLwiXe2GfPjHIAod1vSFzpovkq8vAZT2d7hwNbuDUbwmutC6vul/Dt4iqnjt/
/98QA7q75Kv4VnVwvc1vDN8DHR13puq7YyPjKTHxDNEAPpg0tJzCWy2RFSU0G1l8
Qm3Dn0i6PBYleSq4e5Bi3MovMPB7Gfq/plLrFekl2uM3eU1cST/kJkIEbeU2G69N
HvnT7yB6BjRotsk1IxlQXK1xdR125Q==
=tsK1
-----END PGP SIGNATURE-----payloadX<  tree b95a43dd79998a8f7763926e3cb943bce5888385
parent f1ef11cad1dae47d0a34b10e019c62c89e94a01b
author Lucas Meireles <meireles31@msn.com> 1686218986 +0100
committer Lucas Meireles <meireles31@msn.com> 1686218986 +0100

initial implementation of no immutableT lock check on non empty reads on thoroughly swept tables.
uuj)  ^https://api.github.com/repos/palantir/atlasdb/commits/791ec1326a3ff7b0ca2b6be273b1dbf012b74139html_urlShttps://github.com/palantir/atlasdb/commit/791ec1326a3ff7b0ca2b6be273b1dbf012b74139comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/791ec1326a3ff7b0ca2b6be273b1dbf012b74139/commentsj)  }(loginLucasIMEidJg j)  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j)  %https://api.github.com/users/LucasIMEj)  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj)  }(j)  LucasIMEj)  Jg j)  MDQ6VXNlcjY3ODczMTE=j)  3https://avatars.githubusercontent.com/u/6787311?v=4j)  h5j)  %https://api.github.com/users/LucasIMEj)  https://github.com/LucasIMEj)  /https://api.github.com/users/LucasIME/followersj*  <https://api.github.com/users/LucasIME/following{/other_user}j*  5https://api.github.com/users/LucasIME/gists{/gist_id}j*  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j*  3https://api.github.com/users/LucasIME/subscriptionsj	*  *https://api.github.com/users/LucasIME/orgsj*  +https://api.github.com/users/LucasIME/reposj
*  6https://api.github.com/users/LucasIME/events{/privacy}j*  5https://api.github.com/users/LucasIME/received_eventsj*  Userj*  uparents]}(j)  (f1ef11cad1dae47d0a34b10e019c62c89e94a01bj)  ^https://api.github.com/repos/palantir/atlasdb/commits/f1ef11cad1dae47d0a34b10e019c62c89e94a01bj)  Shttps://github.com/palantir/atlasdb/commit/f1ef11cad1dae47d0a34b10e019c62c89e94a01buastats}(totalKq	additionsKG	deletionsK*ufiles](}(j)  (d532a5292992cb0fd392d50f351f9afc6f776ef9filenameaatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/ConstraintCheckingTransaction.javastatusmodifiedj-*  Kj.*  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/791ec1326a3ff7b0ca2b6be273b1dbf012b74139/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FConstraintCheckingTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/791ec1326a3ff7b0ca2b6be273b1dbf012b74139/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FConstraintCheckingTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FConstraintCheckingTransaction.java?ref=791ec1326a3ff7b0ca2b6be273b1dbf012b74139patchX  @@ -18,6 +18,7 @@
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
+import java.util.Collection;
 import java.util.Map;
 import java.util.Set;
 import java.util.SortedMap;
@@ -31,5 +32,5 @@ public interface ConstraintCheckingTransaction extends Transaction {
     /**
      * Returns the row result values in the key-value service, ignoring the cache of local writes.
      */
-    SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(TableReference tableRef, Iterable<byte[]> rows);
+    SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(TableReference tableRef, Collection<byte[]> rows);
 }u}(j)  (c7c9d1849113d1fd7930eb7c370b61e19476b3d5j3*  Vatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javaj5*  modifiedj-*  Kj.*  K	j7*  Kj8*  https://github.com/palantir/atlasdb/blob/791ec1326a3ff7b0ca2b6be273b1dbf012b74139/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaj:*  https://github.com/palantir/atlasdb/raw/791ec1326a3ff7b0ca2b6be273b1dbf012b74139/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaj<*  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=791ec1326a3ff7b0ca2b6be273b1dbf012b74139j>*  X  @@ -29,27 +29,29 @@
 public final class SweepStrategy {
 
     public static final SweepStrategy CONSERVATIVE =
-            new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false);
-    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), true);
+            new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false, false);
+    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), false, true);
 
     private final Optional<SweeperStrategy> sweeperStrategy;
-    private final boolean mustCheckImmutableLockAfterReads;
+    private final boolean mustCheckImmutableLockAfterNonEmptyReads;
+    private final boolean mustCheckImmutableLockAfterEmptyReads;
 
-    private SweepStrategy(Optional<SweeperStrategy> sweeperStrategy, boolean mustCheckImmutableLockAfterReads) {
+    private SweepStrategy(Optional<SweeperStrategy> sweeperStrategy, boolean mustCheckImmutableLockAfterNonEmptyReads, boolean mustCheckImmutableLockAfterEmptyReads) {
         this.sweeperStrategy = sweeperStrategy;
-        this.mustCheckImmutableLockAfterReads = mustCheckImmutableLockAfterReads;
+        this.mustCheckImmutableLockAfterNonEmptyReads = mustCheckImmutableLockAfterNonEmptyReads;
+        this.mustCheckImmutableLockAfterEmptyReads = mustCheckImmutableLockAfterEmptyReads;
     }
 
     public Optional<SweeperStrategy> getSweeperStrategy() {
         return sweeperStrategy;
     }
 
-    public boolean mustCheckImmutableLockAfterReads() {
-        return mustCheckImmutableLockAfterReads;
+    public boolean mustCheckImmutableLock(boolean hasReadEmptyCells) {
+        return hasReadEmptyCells ? mustCheckImmutableLockAfterEmptyReads : mustCheckImmutableLockAfterNonEmptyReads;
     }
 
     public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy) {
-        return new SweepStrategy(sweeperBehaviour(strategy), mustCheckImmutableLockAfterReads(strategy));
+        return new SweepStrategy(sweeperBehaviour(strategy), mustCheckImmutableLockAfterNonEmptyReads(strategy), mustCheckImmutableLockAfterEmptyReads(strategy));
     }
 
     private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersistence.SweepStrategy strategy) {
@@ -65,7 +67,18 @@ private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersisten
         throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
     }
 
-    private static boolean mustCheckImmutableLockAfterReads(TableMetadataPersistence.SweepStrategy strategy) {
+    private static boolean mustCheckImmutableLockAfterNonEmptyReads(TableMetadataPersistence.SweepStrategy strategy) {
+        switch (strategy) {
+            case CONSERVATIVE:
+            case NOTHING:
+            case THOROUGH_MIGRATION:
+            case THOROUGH:
+                return false;
+        }
+        throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
+    }
+
+    private static boolean mustCheckImmutableLockAfterEmptyReads(TableMetadataPersistence.SweepStrategy strategy) {
         switch (strategy) {
             case CONSERVATIVE:
             case NOTHING:u}(j)  (b0b7290c03b402a4d6551f6296f84b1bf9960142j3*  Watlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ReadTransaction.javaj5*  modifiedj-*  Kj.*  Kj7*  Kj8*  https://github.com/palantir/atlasdb/blob/791ec1326a3ff7b0ca2b6be273b1dbf012b74139/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj:*  https://github.com/palantir/atlasdb/raw/791ec1326a3ff7b0ca2b6be273b1dbf012b74139/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj<*  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.java?ref=791ec1326a3ff7b0ca2b6be273b1dbf012b74139j>*  Xs  @@ -138,7 +138,7 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
     private void checkTableName(TableReference tableRef) {
         SweepStrategy sweepStrategy = sweepStrategies.get(tableRef);
         Preconditions.checkState(
-                !sweepStrategy.mustCheckImmutableLockAfterReads(),
+                !sweepStrategy.mustCheckImmutableLock(false /* no read was actually done */),
                 "This table cannot be read from a read-only transaction, because its "
                         + "sweep strategy is neither NOTHING nor CONSERVATIVE",
                 LoggingArgs.tableRef(tableRef));u}(j)  (4d55a0aea195718f30873a0de61ab6932f0c275cj3*  `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj5*  modifiedj-*  K.j.*  Kj7*  KMj8*  https://github.com/palantir/atlasdb/blob/791ec1326a3ff7b0ca2b6be273b1dbf012b74139/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj:*  https://github.com/palantir/atlasdb/raw/791ec1326a3ff7b0ca2b6be273b1dbf012b74139/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj<*  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=791ec1326a3ff7b0ca2b6be273b1dbf012b74139j>*  X`4  @@ -416,11 +416,15 @@ private NavigableMap<byte[], RowResult<byte[]>> getRowsInternal(
         }
         hasReads = true;
         ImmutableSortedMap.Builder<Cell, byte[]> result = ImmutableSortedMap.naturalOrder();
+        // Materializing Iterable to List explicitly here because we were already iterating through it twice, not
+        // respecting the fact that we might have exhausted the underlying iterator.
+        List<byte[]> rowsList = ImmutableList.copyOf(rows);
         Map<Cell, Value> rawResults =
-                new HashMap<>(keyValueService.getRows(tableRef, rows, columnSelection, getStartTimestamp()));
+                new HashMap<>(keyValueService.getRows(tableRef, rowsList, columnSelection, getStartTimestamp()));
+        boolean hasReadEmptyCells = rawResults.size() < rowsList.size();
         NavigableMap<Cell, byte[]> writes = writesByTable.get(tableRef);
         if (writes != null && !writes.isEmpty()) {
-            for (byte[] row : rows) {
+            for (byte[] row : rowsList) {
                 extractLocalWritesForRow(result, writes, row, columnSelection);
             }
         }
@@ -434,11 +438,11 @@ private NavigableMap<byte[], RowResult<byte[]>> getRowsInternal(
             perfLogger.debug(
                     "getRows({}, {} rows) found {} rows, took {} ms",
                     LoggingArgs.tableRef(tableRef),
-                    SafeArg.of("numRows", Iterables.size(rows)),
+                    SafeArg.of("numRows", rowsList.size()),
                     SafeArg.of("resultSize", results.size()),
                     SafeArg.of("timeTakenMillis", getRowsMillis));
         }
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), hasReadEmptyCells);
         return results;
     }
 
@@ -463,7 +467,8 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
         RowColumnRangeIterator rawResults = keyValueService.getRowsColumnRange(
                 tableRef, stableRows, columnRangeSelection, batchHint, getStartTimestamp());
         if (!rawResults.hasNext()) {
-            validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+            validatePreCommitRequirementsOnReadIfNecessary(
+                    tableRef, getStartTimestamp(), true /* we can't skip checks for range scans*/);
         } // else the postFiltered iterator will check for each batch.
 
         BatchColumnRangeSelection batchColumnRangeSelection =
@@ -501,7 +506,8 @@ public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator
                 }));
 
         // validate requirements here as the first batch for each of the above iterators will not check
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+        validatePreCommitRequirementsOnReadIfNecessary(
+                tableRef, getStartTimestamp(), true /* we can't skip checks on range scans */);
         return postFilteredResults;
     }
 
@@ -674,7 +680,7 @@ private Iterator<Map.Entry<Cell, byte[]>> filterDeletedValues(
     private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFiltered(
             TableReference tableRef, RowColumnRangeIterator iterator, int batchHint) {
         return Iterators.concat(Iterators.transform(Iterators.partition(iterator, batchHint), batch -> {
-            Map<Cell, Value> raw = validateBatch(tableRef, batch);
+            Map<Cell, Value> raw = validateBatch(tableRef, batch, true /* can't skip lock checks on range scans */);
             if (raw.isEmpty()) {
                 return Collections.emptyIterator();
             }
@@ -696,7 +702,8 @@ private ClosableIterator<Map.Entry<Cell, byte[]>> getRowColumnRangePostFiltered(
                 batchProvider,
                 rawIterator,
                 columnRangeSelection,
-                () -> validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp()),
+                () -> validatePreCommitRequirementsOnReadIfNecessary(
+                        tableRef, getStartTimestamp(), true /* we can't skip lock checks on range scans */),
                 raw -> getWithPostFilteringSync(tableRef, raw, Value.GET_VALUE));
     }
 
@@ -706,7 +713,7 @@ private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSor
             int batchHint,
             Comparator<Cell> cellComparator) {
         return Iterators.concat(Iterators.transform(Iterators.partition(iterator, batchHint), batch -> {
-            Map<Cell, Value> raw = validateBatch(tableRef, batch);
+            Map<Cell, Value> raw = validateBatch(tableRef, batch, true /* can't skip lock check on range scans */);
             if (raw.isEmpty()) {
                 return Collections.emptyIterator();
             }
@@ -717,8 +724,9 @@ private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSor
         }));
     }
 
-    private Map<Cell, Value> validateBatch(TableReference tableRef, List<Map.Entry<Cell, Value>> batch) {
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+    private Map<Cell, Value> validateBatch(
+            TableReference tableRef, List<Map.Entry<Cell, Value>> batch, boolean hasReadEmptyCells) {
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), hasReadEmptyCells);
         return ImmutableMap.copyOf(batch);
     }
 
@@ -818,7 +826,7 @@ public Map.Entry<Cell, Value> next() {
 
     @Override
     public SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(
-            TableReference tableRef, Iterable<byte[]> rows) {
+            TableReference tableRef, Collection<byte[]> rows) {
         checkGetPreconditions(tableRef);
         if (Iterables.isEmpty(rows)) {
             return AbstractTransaction.EMPTY_SORTED_ROWS;
@@ -828,7 +836,8 @@ public SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(
         Map<Cell, Value> rawResults =
                 new HashMap<>(keyValueService.getRows(tableRef, rows, ColumnSelection.all(), getStartTimestamp()));
 
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+        boolean hasReadEmptyCells = rawResults.size() < rows.size();
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), hasReadEmptyCells);
         return filterRowResults(tableRef, rawResults, ImmutableMap.builderWithExpectedSize(rawResults.size()));
     }
 
@@ -922,12 +931,9 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
         }
 
         // We don't need to read any cells that were written locally.
+        Set<Cell> cellsWithNoLocalWrites = Sets.difference(cells, result.keySet());
         return Futures.transform(
-                getFromKeyValueService(
-                        tableRef,
-                        Sets.difference(cells, result.keySet()),
-                        asyncKeyValueService,
-                        asyncTransactionService),
+                getFromKeyValueService(tableRef, cellsWithNoLocalWrites, asyncKeyValueService, asyncTransactionService),
                 fromKeyValueService -> {
                     result.putAll(fromKeyValueService);
 
@@ -941,7 +947,8 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
                                 SafeArg.of("getOperation", operationName),
                                 SafeArg.of("durationMillis", getMillis));
                     }
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+                    boolean hasReadEmptyCells = fromKeyValueService.size() < cellsWithNoLocalWrites.size();
+                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), hasReadEmptyCells);
                     return removeEmptyColumns(result, tableRef);
                 },
                 MoreExecutors.directExecutor());
@@ -957,12 +964,13 @@ public Map<Cell, byte[]> getIgnoringLocalWrites(TableReference tableRef, Set<Cel
 
         ListenableFuture<Map<Cell, byte[]>> result =
                 getFromKeyValueService(tableRef, cells, immediateKeyValueService, immediateTransactionService);
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
 
         Map<Cell, byte[]> unfiltered = Futures.getUnchecked(result);
         Map<Cell, byte[]> filtered = Maps.filterValues(unfiltered, Predicates.not(Value::isTombstone));
 
         TraceStatistics.incEmptyValues(unfiltered.size() - filtered.size());
+        boolean hasReadEmptyCells = unfiltered.size() < cells.size();
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), hasReadEmptyCells);
 
         return filtered;
     }
@@ -1016,7 +1024,8 @@ public Iterable<BatchingVisitable<RowResult<byte[]>>> getRanges(
                     Timer.Context timer = getTimer("processedRangeMillis").time();
                     Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> firstPages =
                             keyValueService.getFirstBatchForRanges(tableRef, input, getStartTimestamp());
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+                    validatePreCommitRequirementsOnReadIfNecessary(
+                            tableRef, getStartTimestamp(), true /* can't skip lock check for range scans */);
 
                     SortedMap<Cell, byte[]> postFiltered = postFilterPages(tableRef, firstPages.values());
 
@@ -1142,18 +1151,19 @@ protected <K extends Exception> void batchAcceptSizeHint(
         };
     }
 
-    private void validatePreCommitRequirementsOnReadIfNecessary(TableReference tableRef, long timestamp) {
-        if (isValidationNecessaryOnReads(tableRef)) {
+    private void validatePreCommitRequirementsOnReadIfNecessary(
+            TableReference tableRef, long timestamp, boolean hasReadEmptyCells) {
+        if (isValidationNecessaryOnReads(tableRef, hasReadEmptyCells)) {
             throwIfPreCommitRequirementsNotMet(null, timestamp);
         }
     }
 
-    private boolean isValidationNecessaryOnReads(TableReference tableRef) {
-        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef);
+    private boolean isValidationNecessaryOnReads(TableReference tableRef, boolean hasReadEmptyCells) {
+        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef, hasReadEmptyCells);
     }
 
-    private boolean requiresImmutableTimestampLocking(TableReference tableRef) {
-        return sweepStrategyManager.get(tableRef).mustCheckImmutableLockAfterReads()
+    private boolean requiresImmutableTimestampLocking(TableReference tableRef, boolean hasReadEmptyCells) {
+        return sweepStrategyManager.get(tableRef).mustCheckImmutableLock(hasReadEmptyCells)
                 || transactionConfig.get().lockImmutableTsOnReadOnlyTransactions();
     }
 
@@ -1302,11 +1312,13 @@ protected <T> ClosableIterator<RowResult<T>> postFilterIterator(
             @Override
             protected Iterator<RowResult<T>> computeNext() {
                 List<RowResult<Value>> batch = results.getBatch().batch();
-                validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
                 if (batch.isEmpty()) {
                     return endOfData();
                 }
                 SortedMap<Cell, T> postFilter = postFilterRows(tableRef, batch, transformer);
+
+                validatePreCommitRequirementsOnReadIfNecessary(
+                        tableRef, getStartTimestamp(), true /* can't skip lock checks for range scans */);
                 results.markNumResultsNotDeleted(
                         Cells.getRows(postFilter.keySet()).size());
                 return Cells.createRowView(postFilter.entrySet());
@@ -1677,7 +1689,9 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
             return Futures.transform(
                     asyncKeyValueService.getAsync(tableRef, keysToReload),
                     nextRawResults -> {
-                        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+                        boolean hasReadEmptyCells = nextRawResults.size() < keysToReload.size();
+                        validatePreCommitRequirementsOnReadIfNecessary(
+                                tableRef, getStartTimestamp(), hasReadEmptyCells);
                         return getRemainingResults(nextRawResults, keysAddedToResults);
                     },
                     MoreExecutors.directExecutor());
@@ -2591,8 +2605,9 @@ private boolean hasAnyInvolvedTables() {
     }
 
     private boolean validationNecessaryForInvolvedTablesOnCommit() {
-        boolean anyTableRequiresImmutableTimestampLocking =
-                involvedTables.stream().anyMatch(this::requiresImmutableTimestampLocking);
+        boolean anyTableRequiresImmutableTimestampLocking = involvedTables.stream()
+                .anyMatch(tableRef ->
+                        requiresImmutableTimestampLocking(tableRef, false /* we're not doing any read here */));
         boolean needsToValidate = !validateLocksOnReads || !hasReads();
         return anyTableRequiresImmutableTimestampLocking && needsToValidate;
     }ueu(33e43ca6699658a2e38159e3fe61a488a457fcc3}(sha(33e43ca6699658a2e38159e3fe61a488a457fcc3node_idEC_kwDOAjP5fdoAKDMzZTQzY2E2Njk5NjU4YTJlMzgxNTllM2ZlNjFhNDg4YTQ1N2ZjYzMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-14T16:33:09Zu	committer}(jb*  
Sam Kramerjd*  skramer@palantir.comjf*  2023-04-14T16:33:09Zumessageaddress nitstree}(jZ*  (23133c127adbff242c48371160ccb0d8ee421acaurl`https://api.github.com/repos/palantir/atlasdb/git/trees/23133c127adbff242c48371160ccb0d8ee421acaujr*  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/33e43ca6699658a2e38159e3fe61a488a457fcc3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ5gEUACgkQmPPOpKR4
XS2czQgAnVVHRcU7Qg88MSKWrtyb51G4kZGqALdMXkGjkRJ/vzArvP58M4ZsKoek
U3fcQ17X01zmnU9ajrTgiu8AgWG5Zf2ReltDE3uFZQzFwDg6EHyHTcrwnTmaC0yA
XnIqJ2EHIkVXkkSE2Sb/zulkyEG/ikt7yg18UX2nRVWglEz5jep4P+wIrxdXcyIg
Ecwr0kJNDn6fmqHk1Y5HX1hP2c+rjnmwGJOlKul3p+CU0bScAk+iaSEDlnHPIy8k
/2TNPnQsMafjJsW/BbFJYjud5yrY1q+rw8XxTSxc0pnUqxYwBzJMjCIfdo8UEkXD
aa3Yw8j3WH4deelRy7mrTQXw/JBgQw==
=0V9p
-----END PGP SIGNATURE-----payloadtree 23133c127adbff242c48371160ccb0d8ee421aca
parent c6417a05aced7076d312f04114aa59e5bed2a539
author Sam Kramer <skramer@palantir.com> 1681489989 +0100
committer Sam Kramer <skramer@palantir.com> 1681489989 +0100

address nits
uujr*  ^https://api.github.com/repos/palantir/atlasdb/commits/33e43ca6699658a2e38159e3fe61a488a457fcc3html_urlShttps://github.com/palantir/atlasdb/commit/33e43ca6699658a2e38159e3fe61a488a457fcc3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/33e43ca6699658a2e38159e3fe61a488a457fcc3/commentsj`*  }(login
Sam-KrameridJ^2_ j\*  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jr*  'https://api.github.com/users/Sam-Kramerj*  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujh*  }(j*  
Sam-Kramerj*  J^2_ j\*  MDQ6VXNlcjYyMzg4MTQ=j*  3https://avatars.githubusercontent.com/u/6238814?v=4j*  h5jr*  'https://api.github.com/users/Sam-Kramerj*  https://github.com/Sam-Kramerj*  1https://api.github.com/users/Sam-Kramer/followersj*  >https://api.github.com/users/Sam-Kramer/following{/other_user}j*  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j*  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j*  5https://api.github.com/users/Sam-Kramer/subscriptionsj*  ,https://api.github.com/users/Sam-Kramer/orgsj*  -https://api.github.com/users/Sam-Kramer/reposj*  8https://api.github.com/users/Sam-Kramer/events{/privacy}j*  7https://api.github.com/users/Sam-Kramer/received_eventsj*  Userj*  uparents]}(jZ*  (c6417a05aced7076d312f04114aa59e5bed2a539jr*  ^https://api.github.com/repos/palantir/atlasdb/commits/c6417a05aced7076d312f04114aa59e5bed2a539j*  Shttps://github.com/palantir/atlasdb/commit/c6417a05aced7076d312f04114aa59e5bed2a539uastats}(totalK2	additionsK	deletionsKufiles](}(jZ*  (42c9022acb53a72eea92413c05355dd9e46a328afilename`atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingGraph.javastatusmodifiedj*  Kj*  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/33e43ca6699658a2e38159e3fe61a488a457fcc3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaraw_urlhttps://github.com/palantir/atlasdb/raw/33e43ca6699658a2e38159e3fe61a488a457fcc3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.java?ref=33e43ca6699658a2e38159e3fe61a488a457fcc3patchX  @@ -19,6 +19,7 @@
 import com.google.common.collect.Iterators;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
+import java.util.ArrayList;
 import java.util.Collections;
 import java.util.HashSet;
 import java.util.Iterator;
@@ -83,7 +84,7 @@ public static void validateGraphIsRing(Map<Integer, Integer> ring) throws RingVa
 
             // If the node already has been visited, it means we're in a cycle within our ring
             if (!remainingNodes.remove(nextNode)) {
-                RingValidationException.throwCycle(ring);
+                RingValidationException.throwEarlyCycle(ring);
             }
 
             nextNode = ring.get(nextNode);
@@ -98,7 +99,7 @@ public RingGraph generateNewRing() {
      * Returns a valid new ring with the same nodes but randomly generated edges.
      */
     private static RingGraph generateNewRing(Set<Integer> nodes) {
-        List<Integer> keys = nodes.stream().collect(Collectors.toList());
+        List<Integer> keys = new ArrayList<>(nodes);
         Collections.shuffle(keys);
         Iterator<Integer> valuesIterator = Iterators.cycle(keys);
         valuesIterator.next();u}(jZ*  (109ed2a6c2ef9753e6500d3ea6827a032511da81j*  natlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingValidationException.javaj*  modifiedj*  Kj*  Kj*  Kj*  https://github.com/palantir/atlasdb/blob/33e43ca6699658a2e38159e3fe61a488a457fcc3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javaj*  https://github.com/palantir/atlasdb/raw/33e43ca6699658a2e38159e3fe61a488a457fcc3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javaj*  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.java?ref=33e43ca6699658a2e38159e3fe61a488a457fcc3j*  X  @@ -43,16 +43,21 @@ public List<Arg<?>> getArgs() {
         return List.of(SafeArg.of("ring", ring), SafeArg.of("type", type));
     }
 
-    public static void throwCycle(Map<Integer, Integer> ring) throws RingValidationException {
-        throw new RingValidationException(ring, Type.CYCLE);
+    public static void throwEarlyCycle(Map<Integer, Integer> ring) throws RingValidationException {
+        throw new RingValidationException(ring, Type.EARLY_CYCLE);
     }
 
     public static void throwMissingEntries(Map<Integer, Integer> ring) throws RingValidationException {
         throw new RingValidationException(ring, Type.MISSING_ENTRIES);
     }
 
     enum Type {
-        CYCLE,
+        // Detected a cycle in our ring before visiting all nodes,
+        // indicating the integrity of our ring has been compromised.
+        EARLY_CYCLE,
+
+        // Detected a reference to a node that does not exist,
+        // indicating the integrity of our ring has been compromised.
         MISSING_ENTRIES;
     }
 }u}(jZ*  (c1f634d4126720aa2ed7f3a586024740f66c9ab0j*  datlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingGraphTest.javaj*  modifiedj*  Kj*  Kj*  Kj*  https://github.com/palantir/atlasdb/blob/33e43ca6699658a2e38159e3fe61a488a457fcc3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj*  https://github.com/palantir/atlasdb/raw/33e43ca6699658a2e38159e3fe61a488a457fcc3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj*  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.java?ref=33e43ca6699658a2e38159e3fe61a488a457fcc3j*  X  @@ -20,6 +20,7 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 
+import com.google.common.collect.ImmutableMap;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Map;
@@ -28,17 +29,17 @@
 
 public final class RingGraphTest {
 
-    private static final Map<Integer, Integer> VALID_RING = Map.of(0, 2, 1, 0, 2, 1);
+    private static final Map<Integer, Integer> VALID_RING = ImmutableMap.of(0, 2, 1, 0, 2, 1);
 
     @Test
     public void fromPartialGeneratesRandomRingWhenAllKeysEmpty() {
-        Map<Integer, Optional<Integer>> emptyEdges = Map.of(1, Optional.empty(), 2, Optional.empty());
+        Map<Integer, Optional<Integer>> emptyEdges = ImmutableMap.of(1, Optional.empty(), 2, Optional.empty());
         assertThatCode(() -> RingGraph.fromPartial(emptyEdges)).doesNotThrowAnyException();
     }
 
     @Test
     public void fromPartialThrowsWhenSomeEntriesAreEmpty() {
-        Map<Integer, Optional<Integer>> partiallyEmptyRing = Map.of(0, Optional.of(1), 1, Optional.empty());
+        Map<Integer, Optional<Integer>> partiallyEmptyRing = ImmutableMap.of(0, Optional.of(1), 1, Optional.empty());
         assertThatLoggableExceptionThrownBy(() -> RingGraph.fromPartial(partiallyEmptyRing))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Graph contains missing entries, thus cannot be made into a ring.")
@@ -47,7 +48,7 @@ public void fromPartialThrowsWhenSomeEntriesAreEmpty() {
 
     @Test
     public void fromThrowsMissingEntriesWhenNodeReferencedDoesNotExist() {
-        Map<Integer, Integer> missingNodesRing = Map.of(0, 2, 1, 0);
+        Map<Integer, Integer> missingNodesRing = ImmutableMap.of(0, 2, 1, 0);
         assertThatLoggableExceptionThrownBy(() -> RingGraph.from(missingNodesRing))
                 .isInstanceOf(RingValidationException.class)
                 .hasExactlyArgs(
@@ -57,25 +58,27 @@ public void fromThrowsMissingEntriesWhenNodeReferencedDoesNotExist() {
 
     @Test
     public void fromThrowsCycleExceptionWhenUnableToReachEveryNode() {
-        Map<Integer, Integer> incompleteRing = Map.of(0, 1, 1, 1, 2, 0);
+        Map<Integer, Integer> incompleteRing = ImmutableMap.of(0, 1, 1, 1, 2, 0);
         assertThatLoggableExceptionThrownBy(() -> RingGraph.from(incompleteRing))
                 .isInstanceOf(RingValidationException.class)
                 .hasExactlyArgs(
-                        SafeArg.of("type", RingValidationException.Type.CYCLE), SafeArg.of("ring", incompleteRing));
+                        SafeArg.of("type", RingValidationException.Type.EARLY_CYCLE),
+                        SafeArg.of("ring", incompleteRing));
     }
 
     @Test
-    public void fromThrowsCycleExceptionWhenRootNodeNotRevisited() {
-        Map<Integer, Integer> incompleteRing = Map.of(0, 1, 1, 1);
+    public void fromThrowsCycleExceptionWhenEntryNodeNotRevisited() {
+        Map<Integer, Integer> incompleteRing = ImmutableMap.of(0, 1, 1, 1);
         assertThatLoggableExceptionThrownBy(() -> RingGraph.from(incompleteRing))
                 .isInstanceOf(RingValidationException.class)
                 .hasExactlyArgs(
-                        SafeArg.of("type", RingValidationException.Type.CYCLE), SafeArg.of("ring", incompleteRing));
+                        SafeArg.of("type", RingValidationException.Type.EARLY_CYCLE),
+                        SafeArg.of("ring", incompleteRing));
     }
 
     @Test
-    public void fromReturnsRandomlyGeneratedRingForEmptyRing() {
-        RingGraph ringGraph = RingGraph.from(VALID_RING);
+    public void generateNewRingCreatesDifferentRing() {
+        RingGraph ringGraph = RingGraph.create(8);
         boolean uniqueAtLeastOnce = false;
         for (int iteration = 0; iteration < 10; iteration++) {
             if (!ringGraph.generateNewRing().asMap().equals(ringGraph.asMap())) {
@@ -96,11 +99,6 @@ public void generateNewRingReturnsValidRing() {
         }
     }
 
-    @Test
-    public void generateNewRingChangesRing() {
-        RingGraph.from(VALID_RING);
-    }
-
     @Test
     public void asMapConvertsCorrectly() {
         assertThat(RingGraph.from(VALID_RING).asMap()).isEqualTo(VALID_RING);u}(jZ*  (b76eb98bf9ca3cc3502b229247cd0eb65cd5a3cej*  hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowsTest.javaj*  modifiedj*  Kj*  Kj*  Kj*  https://github.com/palantir/atlasdb/blob/33e43ca6699658a2e38159e3fe61a488a457fcc3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj*  https://github.com/palantir/atlasdb/raw/33e43ca6699658a2e38159e3fe61a488a457fcc3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj*  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.java?ref=33e43ca6699658a2e38159e3fe61a488a457fcc3j*  X  @@ -50,7 +50,7 @@ public class RingWorkflowsTest {
     private static final RingWorkflowConfiguration CONFIGURATION = ImmutableRingWorkflowConfiguration.builder()
             .tableConfiguration(ImmutableTableConfiguration.builder()
                     .tableName(TABLE_NAME)
-                    .isolationLevel(IsolationLevel.SERIALIZABLE)
+                    .isolationLevel(IsolationLevel.SNAPSHOT)
                     .build())
             .iterationCount(1)
             .build();
@@ -59,7 +59,7 @@ public class RingWorkflowsTest {
             TransactionManagers.createInMemory(ImmutableSet.of()),
             ImmutableMap.of(
                     TableReference.createWithEmptyNamespace(TABLE_NAME),
-                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SNAPSHOT)));
 
     private final AtomicBoolean skipRunning = new AtomicBoolean(false);
 ueu     (c3d937dc9a5c2b413e8b21a60479c4c60d7d5aab}(sha(c3d937dc9a5c2b413e8b21a60479c4c60d7d5aabnode_idEC_kwDOAjP5fdoAKGMzZDkzN2RjOWE1YzJiNDEzZThiMjFhNjA0NzljNGM2MGQ3ZDVhYWIcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-03-06T16:21:34Zu	committer}(j*  
Ahmed Alouanej*  aalouane@palantir.comj*  2023-03-06T16:21:34Zumessage@Merge branch 'aaccpi' of github.com:palantir/atlasdb into aaccpitree}(j*  (326c29468b98ecc7c6b923dc85aeb95cca36545curl`https://api.github.com/repos/palantir/atlasdb/git/trees/326c29468b98ecc7c6b923dc85aeb95cca36545cuj+  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c3d937dc9a5c2b413e8b21a60479c4c60d7d5aab
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQGEw8ACgkQPlMHVIT1
yhrxwQf+M044C5mv8XRkD9k7oUm+HUUJg8lfyolVO5Mgd9h15veMMQRpZK+lzh1Z
qh+GXq3dlcv0dJjb2HDu0rLpQrR/vleAJgHwfLejIVL6oFJ5Vxxmacqfrz5+xjuB
zeDZiOr3RkcjbMjJ9+lR0NGQwCG9E/2+YJ71tsonYADOKoj4dByj/zSvyzwT7hmY
eNkiA4jGS4RELGOz/gbFC3JGWZfpFbuqpHRQWkPdNFdSLWTua2YdIzE5/yaFwRmy
abUGNFJftrY2xCegjFsaq7aSkk4+UrDy3YcV6a1SUNCrsUJQHH5Rjsvcv/ODxylR
3wZbSvRc4ItcwGJlq0+gjXjNgIuFWg==
=p1Wv
-----END PGP SIGNATURE-----payloadXO  tree 326c29468b98ecc7c6b923dc85aeb95cca36545c
parent fcb088a3eef39057108127b13632e26e80d6097f
parent 6e842acb44f1f559d0a260a6d6d6f0f724c9b85e
author Ahmed Alouane <aalouane@palantir.com> 1678119694 +0000
committer Ahmed Alouane <aalouane@palantir.com> 1678119694 +0000

Merge branch 'aaccpi' of github.com:palantir/atlasdb into aaccpi
uuj+  ^https://api.github.com/repos/palantir/atlasdb/commits/c3d937dc9a5c2b413e8b21a60479c4c60d7d5aabhtml_urlShttps://github.com/palantir/atlasdb/commit/c3d937dc9a5c2b413e8b21a60479c4c60d7d5aabcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c3d937dc9a5c2b413e8b21a60479c4c60d7d5aab/commentsj*  }(loginergo14idJj*  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j+  #https://api.github.com/users/ergo14j+  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj*  }(j+  ergo14j+  Jj*  MDQ6VXNlcjMwOTAzNzM2j+  4https://avatars.githubusercontent.com/u/30903736?v=4j+  h5j+  #https://api.github.com/users/ergo14j+  https://github.com/ergo14j+  -https://api.github.com/users/ergo14/followersj+  :https://api.github.com/users/ergo14/following{/other_user}j!+  3https://api.github.com/users/ergo14/gists{/gist_id}j#+  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j%+  1https://api.github.com/users/ergo14/subscriptionsj'+  (https://api.github.com/users/ergo14/orgsj)+  )https://api.github.com/users/ergo14/reposj++  4https://api.github.com/users/ergo14/events{/privacy}j-+  3https://api.github.com/users/ergo14/received_eventsj/+  Userj1+  uparents](}(j*  (fcb088a3eef39057108127b13632e26e80d6097fj+  ^https://api.github.com/repos/palantir/atlasdb/commits/fcb088a3eef39057108127b13632e26e80d6097fj+  Shttps://github.com/palantir/atlasdb/commit/fcb088a3eef39057108127b13632e26e80d6097fu}(j*  (6e842acb44f1f559d0a260a6d6d6f0f724c9b85ej+  ^https://api.github.com/repos/palantir/atlasdb/commits/6e842acb44f1f559d0a260a6d6d6f0f724c9b85ej+  Shttps://github.com/palantir/atlasdb/commit/6e842acb44f1f559d0a260a6d6d6f0f724c9b85euestats}(totalK	additionsK	deletionsK ufiles]}(j*  (bc64692f16e707b561a8379f3f0058ed44b4c10afilename$changelog/@unreleased/pr-6462.v2.ymlstatusaddedjO+  KjP+  K changesKblob_url|https://github.com/palantir/atlasdb/blob/c3d937dc9a5c2b413e8b21a60479c4c60d7d5aab/changelog%2F%40unreleased%2Fpr-6462.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/c3d937dc9a5c2b413e8b21a60479c4c60d7d5aab/changelog%2F%40unreleased%2Fpr-6462.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6462.v2.yml?ref=c3d937dc9a5c2b413e8b21a60479c4c60d7d5aabpatch@@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: mapAllServersToOrigin accounts for duplicates in map construction
+  links:
+  - https://github.com/palantir/atlasdb/pull/6462uau(c32b72d753a6a1e2181f49bab28bd911763189d4}(sha(c32b72d753a6a1e2181f49bab28bd911763189d4node_idEC_kwDOAjP5fdoAKGMzMmI3MmQ3NTNhNmExZTIxODFmNDliYWIyOGJkOTExNzYzMTg5ZDQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-12T10:03:42Zu	committer}(jl+  Jeremy Kongjn+  jkong@palantir.comjp+  2023-05-12T10:03:42ZumessageCR feedbacktree}(jd+  (c393ec4674c3ea37537cf94297013ce3c5f4a00curl`https://api.github.com/repos/palantir/atlasdb/git/trees/c393ec4674c3ea37537cf94297013ce3c5f4a00cuj|+  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c32b72d753a6a1e2181f49bab28bd911763189d4
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmReDv4ACgkQTLdFKain
zjwIAgf9GqJOcFsZtbtytf7Hx31tvu3eGqkeQ4vn+esFh6sJqqKoq4lqjDoeJ8t4
w2j6wNzNj65GhHHbxX0ZQfF4OEx3p+NLUYfXdLaGVgUd1XL0NqpnbR7AxANul21C
+AP8f9c5IeP5qU0Wx8CimF+wGVFLJLmztEYWgDQFxfr6QR8oiSVgOBi/7typxVX7
1m9MGDyFRULDFOhKqbXXpi13EcLLBqVxHpF4KcboPdImexrg4FmWdX85FMovLuBh
cHLyunc6O+Mtljz9THA7tJqRHZPLh9LNI9H9QltKIC4SpCQtwx6vbhDAZI57QUlo
rfgdi07eXp6old7toZrtF9p2xas6dQ==
=Nofv
-----END PGP SIGNATURE-----payloadtree c393ec4674c3ea37537cf94297013ce3c5f4a00c
parent 1465f8df704fd033774c9e5b7dcb4655667779b3
author Jeremy Kong <jkong@palantir.com> 1683885822 +0100
committer Jeremy Kong <jkong@palantir.com> 1683885822 +0100

CR feedback
uuj|+  ^https://api.github.com/repos/palantir/atlasdb/commits/c32b72d753a6a1e2181f49bab28bd911763189d4html_urlShttps://github.com/palantir/atlasdb/commit/c32b72d753a6a1e2181f49bab28bd911763189d4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c32b72d753a6a1e2181f49bab28bd911763189d4/commentsjj+  }(login
jeremyk-91idJZ jf+  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j|+  'https://api.github.com/users/jeremyk-91j+  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujr+  }(j+  
jeremyk-91j+  JZ jf+  MDQ6VXNlcjU5NTU1MTA=j+  3https://avatars.githubusercontent.com/u/5955510?v=4j+  h5j|+  'https://api.github.com/users/jeremyk-91j+  https://github.com/jeremyk-91j+  1https://api.github.com/users/jeremyk-91/followersj+  >https://api.github.com/users/jeremyk-91/following{/other_user}j+  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j+  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j+  5https://api.github.com/users/jeremyk-91/subscriptionsj+  ,https://api.github.com/users/jeremyk-91/orgsj+  -https://api.github.com/users/jeremyk-91/reposj+  8https://api.github.com/users/jeremyk-91/events{/privacy}j+  7https://api.github.com/users/jeremyk-91/received_eventsj+  Userj+  uparents]}(jd+  (1465f8df704fd033774c9e5b7dcb4655667779b3j|+  ^https://api.github.com/repos/palantir/atlasdb/commits/1465f8df704fd033774c9e5b7dcb4655667779b3j+  Shttps://github.com/palantir/atlasdb/commit/1465f8df704fd033774c9e5b7dcb4655667779b3uastats}(totalKa	additionsKN	deletionsKufiles](}(jd+  (6f3353a1c06e3518031faa27f5e05286e635a2dbfilenameeatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/NativeSamplingSecureRandomFactory.javastatusaddedj+  K!j+  K changesK!blob_urlhttps://github.com/palantir/atlasdb/blob/c32b72d753a6a1e2181f49bab28bd911763189d4/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FNativeSamplingSecureRandomFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c32b72d753a6a1e2181f49bab28bd911763189d4/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FNativeSamplingSecureRandomFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FNativeSamplingSecureRandomFactory.java?ref=c32b72d753a6a1e2181f49bab28bd911763189d4patchX  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+import java.security.SecureRandom;
+
+public interface NativeSamplingSecureRandomFactory {
+    /**
+     * Creates an instance of {@link SecureRandom} that, as far as is supported by the system, produces both seed and
+     * random numbers from an external source.
+     * <p>
+     * The motivation for this is for running tests in an environment (such as that provided by Antithesis) where
+     * system-provided randomness is deterministic, and can be dynamically controlled by the fuzzer to explore the
+     * state space of the system more efficiently. We thus want to ensure that the random number generator we use
+     * makes queries to the system-provided randomness source not just for seeding, but also on every generation
+     * of a random number.
+     */
+    SecureRandom create();
+}u}(jd+  (1641b0d7450801217b27249a943a030ade56864dj+  Zatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactory.javaj+  modifiedj+  Kj+  Kj+  Kj+  https://github.com/palantir/atlasdb/blob/c32b72d753a6a1e2181f49bab28bd911763189d4/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj+  https://github.com/palantir/atlasdb/raw/c32b72d753a6a1e2181f49bab28bd911763189d4/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj+  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.java?ref=c32b72d753a6a1e2181f49bab28bd911763189d4j+  X  @@ -25,27 +25,9 @@
 import java.util.function.DoubleSupplier;
 
 public final class DefaultBuggifyFactory implements BuggifyFactory {
-    private static final SafeLogger log = SafeLoggerFactory.get(DefaultBuggifyFactory.class);
-    private static final SecureRandom SECURE_RANDOM;
+    private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
     public static final BuggifyFactory INSTANCE = new DefaultBuggifyFactory();
 
-    static {
-        SecureRandom randomInstance;
-        try {
-            // Antithesis's implementation of /dev/urandom is deterministic and something controlled by their fuzzer,
-            // which allows them to explore the state space. We thus choose the NativePRNG algorithm which is backed by
-            // /dev/urandom. This string is a reserved identifier for the algorithm, following
-            // https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html#securerandom-number-generation-algorithms
-            randomInstance = SecureRandom.getInstance("NativePRNG");
-        } catch (Exception e) {
-            log.warn(
-                    "Failed to initialize fully native secure random instance, letting the Java runtime select for us",
-                    e);
-            randomInstance = new SecureRandom();
-        }
-        SECURE_RANDOM = randomInstance;
-    }
-
     private final DoubleSupplier doubleSupplier;
 
     @VisibleForTestingu}(jd+  (1f3a1114799a4b99ced3a549da79307fe3e7b204j+  matlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultNativeSamplingSecureRandomFactory.javaj+  addedj+  K,j+  K j+  K,j+  https://github.com/palantir/atlasdb/blob/c32b72d753a6a1e2181f49bab28bd911763189d4/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultNativeSamplingSecureRandomFactory.javaj+  https://github.com/palantir/atlasdb/raw/c32b72d753a6a1e2181f49bab28bd911763189d4/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultNativeSamplingSecureRandomFactory.javaj+  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultNativeSamplingSecureRandomFactory.java?ref=c32b72d753a6a1e2181f49bab28bd911763189d4j+  X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.NativeSamplingSecureRandomFactory;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.security.SecureRandom;
+
+public enum DefaultNativeSamplingSecureRandomFactory implements NativeSamplingSecureRandomFactory {
+    INSTANCE;
+
+    private static final SafeLogger log = SafeLoggerFactory.get(DefaultNativeSamplingSecureRandomFactory.class);
+
+    @Override
+    public SecureRandom create() {
+        try {
+            // The NativePRNG algorithm reads from /dev/random or /dev/urandom for generating both seed and random
+            // numbers, which satisfies the requirements of the interface (and both of these files are fuzzer-controlled
+            // in Antithesis). This string is a reserved identifier for the algorithm, following
+            // https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html#securerandom-number-generation-algorithms
+            return SecureRandom.getInstance("NativePRNG");
+        } catch (Exception e) {
+            log.warn(
+                    "Failed to initialize fully native secure random instance, letting the Java runtime select for us",
+                    e);
+            return new SecureRandom();
+        }
+    }
+}ueu(188f73b744c3616b1597253b6187c0914b6c3854}(sha(188f73b744c3616b1597253b6187c0914b6c3854node_idEC_kwDOAjP5fdoAKDE4OGY3M2I3NDRjMzYxNmIxNTk3MjUzYjYxODdjMDkxNGI2YzM4NTQcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-03-06T18:57:10Zu	committer}(j+  GitHubj+  noreply@github.comj+  2023-03-06T18:57:10Zumessage>Avoid lambda allocations when using transaction status (#6400)tree}(j+  (9d3979d55e45c251b8fa6bc70892670d8bbb25aeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/9d3979d55e45c251b8fa6bc70892670d8bbb25aeuj,  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/188f73b744c3616b1597253b6187c0914b6c3854
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkBjeHCRBK7hj4Ov3rIwAAEYkIAA0knHQ78FunrUq5t9aivwuH
SxJZ9d/PmQbTcCtBEPD7cywZTfZl7KSOzi0SAhhfTYHvRBVTN21AJGQnbp7r7x/7
dFACQOrgl4wB+I0+zimb8nRgtGzr6rr8fsiPWBPEbqjeZ/KZzEd/jbhZWiVfsDFm
RwV1ec3SdmVLeT94Z/2KaBgBag/mh7WAS2jnJNCKp/Mc8FTurWYS2+jgJXzJwU3f
V0QJc3oss3Q+ccmQm8zwzSnjbLWye3xpSAUbolJaUVAhyV530+8WroP4gsU5LeM1
J0770SEQaysBcoDu/VMNfNzTM9pn9mX8czNdjF9uiGJZbIMhpZpi1Wou+Wm6mww=
=mt3C
-----END PGP SIGNATURE-----
payloadX  tree 9d3979d55e45c251b8fa6bc70892670d8bbb25ae
parent 11d5b37c69746e9366fccc43c84a69d84279f5a2
author Patrick Koenig <pkoenig10@gmail.com> 1678129030 -0800
committer GitHub <noreply@github.com> 1678129030 +0000

Avoid lambda allocations when using transaction status (#6400)

 uuj,  ^https://api.github.com/repos/palantir/atlasdb/commits/188f73b744c3616b1597253b6187c0914b6c3854html_urlShttps://github.com/palantir/atlasdb/commit/188f73b744c3616b1597253b6187c0914b6c3854comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/188f73b744c3616b1597253b6187c0914b6c3854/commentsj+  }(login	pkoenig10idJLvP j+  MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5j,  &https://api.github.com/users/pkoenig10j,  https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminuj+  }(j,  web-flowj,  J/j+  MDQ6VXNlcjE5ODY0NDQ3j,  4https://avatars.githubusercontent.com/u/19864447?v=4j,  h5j,  %https://api.github.com/users/web-flowj,  https://github.com/web-flowj,  /https://api.github.com/users/web-flow/followersj!,  <https://api.github.com/users/web-flow/following{/other_user}j#,  5https://api.github.com/users/web-flow/gists{/gist_id}j%,  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j',  3https://api.github.com/users/web-flow/subscriptionsj),  *https://api.github.com/users/web-flow/orgsj+,  +https://api.github.com/users/web-flow/reposj-,  6https://api.github.com/users/web-flow/events{/privacy}j/,  5https://api.github.com/users/web-flow/received_eventsj1,  Userj3,  uparents]}(j+  (11d5b37c69746e9366fccc43c84a69d84279f5a2j,  ^https://api.github.com/repos/palantir/atlasdb/commits/11d5b37c69746e9366fccc43c84a69d84279f5a2j,  Shttps://github.com/palantir/atlasdb/commit/11d5b37c69746e9366fccc43c84a69d84279f5a2uastats}(totalM	additionsK	deletionsKufiles](}(j+  (bbba7d7df9b785fec01bf20efe6f2553f4e30dbbfilename.palantir/revapi.ymlstatusmodifiedjM,  KjN,  K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=188f73b744c3616b1597253b6187c0914b6c3854patchX  @@ -95,3 +95,18 @@ acceptedBreaks:
       new: "method com.google.common.collect.ImmutableMap<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
         \ com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin> com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::refreshTokenRangesAndGetServers()"
       justification: "Internal Cassandra KVS APIs"
+  "0.808.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.transaction.service.TransactionStatuses"
+      justification: "Internal methods"
+    - code: "java.class.removed"
+      old: "interface com.palantir.atlasdb.transaction.service.TransactionStatus.Cases<R\
+        \ extends java.lang.Object>"
+      justification: "Internal methods"
+    - code: "java.method.removed"
+      old: "method <R> R com.palantir.atlasdb.transaction.service.TransactionStatus::match(com.palantir.atlasdb.transaction.service.TransactionStatus.Cases<R>)"
+      justification: "Internal methods"
+    - code: "java.method.removed"
+      old: "method boolean com.palantir.atlasdb.transaction.service.TransactionStatus::equals(java.lang.Object)"
+      justification: "Internal methods"u}(j+  (198777a0d5f59dbca9c418c827b918a2ff4645c8jS,  Yatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/service/TransactionStatus.javajU,  modifiedjM,  K.jN,  K"jW,  KPjX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionStatus.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionStatus.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionStatus.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X]  @@ -16,42 +16,54 @@
 
 package com.palantir.atlasdb.transaction.service;
 
-import org.derive4j.Data;
-
-/**
- * Status of a transaction can be one of the following -
- * 1. IN_PROGRESS, if that the transaction with this start timestamp has started but has not committed yet,
- * 2. COMMITTED (with a commit timestamp), if the transaction with this start timestamp has been committed,
- * 3. ABORTED, if the transaction with this start timestamp has been aborted,
- * 4. UNKNOWN, if the transactions table does not have information about the start timestamp. (This may,
- *    for example, be because the transaction is known to have concluded and the transactions table has been swept).
- * */
-@Data
+import com.palantir.common.annotations.ImmutablesStyles.PackageVisibleImmutablesStyle;
+import java.util.Optional;
+import org.immutables.value.Value;
+
 public interface TransactionStatus {
-    interface Cases<R> {
-        /**
-         * For transactions on schema version >= 4, an inProgress state has been introduced. The state will be set in
-         * the transactions table against the start timestamp. The state will be written before writing to the kvs.
-         *
-         * Previously, absence of any state for a transaction would indicate that it is in progress.
-         * */
-        R inProgress();
-
-        R committed(long commitTimestamp);
-
-        R aborted();
-
-        /**
-         * From transaction schema version 4, we have added the ability to truncate the transactions table i.e. it
-         * would be possible that the transactions table is not the source of truth for state of a transaction.
-         *
-         * Note that this state is not expected for transaction schema versions < 4.
-         * */
-        R unknown();
+
+    static TransactionStatus inProgress() {
+        return ImmutableInProgress.of();
+    }
+
+    static TransactionStatus aborted() {
+        return ImmutableAborted.of();
+    }
+
+    static TransactionStatus committed(long commitTimestamp) {
+        return ImmutableCommitted.of(commitTimestamp);
+    }
+
+    static TransactionStatus unknown() {
+        return ImmutableUnknown.of();
+    }
+
+    static Optional<Long> getCommitTimestamp(TransactionStatus status) {
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return Optional.of(committed.commitTimestamp());
+        } else {
+            return Optional.empty();
+        }
     }
 
-    <R> R match(Cases<R> cases);
+    @Value.Immutable(singleton = true)
+    @PackageVisibleImmutablesStyle
+    interface InProgress extends TransactionStatus {}
+
+    @Value.Immutable(singleton = true)
+    @PackageVisibleImmutablesStyle
+    interface Aborted extends TransactionStatus {}
+
+    @Value.Immutable(builder = false)
+    @PackageVisibleImmutablesStyle
+    interface Committed extends TransactionStatus {
+
+        @Value.Parameter
+        long commitTimestamp();
+    }
 
-    @Override
-    boolean equals(Object other);
+    @Value.Immutable(singleton = true)
+    @PackageVisibleImmutablesStyle
+    interface Unknown extends TransactionStatus {}
 }u}(j+  (617049a9e7ba3c0f72ea61d2d980892baf478d89jS,  zatlasdb-cassandra-integration-tests/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraBackedPueTableTest.javajU,  modifiedjM,  KjN,  K
jW,  KjX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraBackedPueTableTest.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraBackedPueTableTest.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraBackedPueTableTest.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X  @@ -35,13 +35,12 @@
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
-import java.util.Optional;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.ExecutorService;
 import java.util.stream.Collectors;
@@ -93,16 +92,12 @@ public void getDoesNotLeakExceptionsInRaceConditions() throws ExecutionException
             }
             Futures.allAsList(reads).get().forEach(singleResult -> {
                 for (long ts : singlePartition) {
-                    assertCommitTimestampAbsentOrEqualToStartTimestamp(singleResult, ts);
+                    TransactionStatus status = singleResult.get(ts);
+                    if (status instanceof Committed) {
+                        assertThat(status).isEqualTo(TransactionStatus.committed(ts));
+                    }
                 }
             });
         }
     }
-
-    private static void assertCommitTimestampAbsentOrEqualToStartTimestamp(
-            Map<Long, TransactionStatus> result, long ts) {
-        Optional.ofNullable(result.get(ts))
-                .flatMap(TransactionStatuses::getCommitTimestamp)
-                .ifPresent(commitTs -> assertThat(ts).isEqualTo(commitTs));
-    }
 }u}(j+  (728c30ccb37b7e8e5eb4d85803b92b65d26e741bjS,  qatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/transaction/TransactionTableEntryUtils.javajU,  modifiedjM,  KjN,  K	jW,  KjX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactionTableEntryUtils.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactionTableEntryUtils.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactionTableEntryUtils.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X  @@ -17,20 +17,22 @@
 package com.palantir.atlasdb.cassandra.backup.transaction;
 
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Aborted;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 
 public final class TransactionTableEntryUtils {
     private TransactionTableEntryUtils() {}
 
-    public static TransactionTableEntry fromStatus(long startTimestamp, TransactionStatus commitStatus) {
-        return TransactionStatuses.caseOf(commitStatus)
-                .committed(commitTs -> TransactionTableEntries.committedLegacy(startTimestamp, commitTs))
-                .aborted(() -> TransactionTableEntries.explicitlyAborted(startTimestamp))
-                .otherwise(() -> {
-                    throw new SafeIllegalStateException(
-                            "Illegal transaction status", SafeArg.of("status", commitStatus));
-                });
+    public static TransactionTableEntry fromStatus(long startTimestamp, TransactionStatus status) {
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return TransactionTableEntries.committedLegacy(startTimestamp, committed.commitTimestamp());
+        } else if (status instanceof Aborted) {
+            return TransactionTableEntries.explicitlyAborted(startTimestamp);
+        } else {
+            throw new SafeIllegalStateException("Illegal transaction status", SafeArg.of("status", status));
+        }
     }
 }u}(j+  (cfeb9f02aeb926b035c4fcf5695b3b16d519d450jS,  tatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions1TableInteraction.javajU,  modifiedjM,  KjN,  KjW,  KjX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteraction.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteraction.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteraction.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X  @@ -49,7 +49,7 @@ public Transactions1TableInteraction(FullyBoundedTimestampRange timestampRange,
 
     private static final byte[] DUMMY = new byte[] {1};
     private static final byte[] ABORT_COMMIT_TS_ENCODED =
-            V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(0, TransactionConstants.ABORTED);
+            V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(0, TransactionStatus.aborted());
     static final ByteBuffer COLUMN_NAME_BB = ByteBuffer.wrap(TransactionConstants.COMMIT_TS_COLUMN);
 
     @Overrideu}(j+  (b151ce954511712c43c8cff621e8d600fc587c56jS,  tatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions3TableInteraction.javajU,  modifiedjM,  KjN,  KjW,  KjX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteraction.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteraction.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteraction.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X  @@ -93,7 +93,7 @@ public TransactionTableEntry extractTimestamps(Row row) {
         AtomicValue<TransactionStatus> commitValue = encodingStrategy.decodeValueAsCommitStatus(
                 startTimestamp, Bytes.getArray(row.getBytes(CassandraConstants.VALUE)));
 
-        if (commitValue.value() == TransactionConstants.ABORTED) {
+        if (commitValue.value() == TransactionStatus.aborted()) {
             return TransactionTableEntries.explicitlyAborted(startTimestamp);
         }
 u}(j+  (078fdebb7aa6ebff214d94e219894401b3973ddajS,  xatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions1TableInteractionTest.javajU,  modifiedjM,  KjN,  KjW,  KjX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteractionTest.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteractionTest.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteractionTest.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  Xg  @@ -33,6 +33,7 @@
 import com.palantir.atlasdb.transaction.encoding.V1EncodingStrategy;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.timestamp.FullyBoundedTimestampRange;
 import java.nio.ByteBuffer;
 import org.apache.commons.codec.binary.Hex;
@@ -57,7 +58,7 @@ public void cellEncodingTest() {
     public void valueEncodingTest() {
         byte[] actualValue =
                 V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(111L, TransactionStatusUtils.fromTimestamp(222L));
-        byte[] abort = V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(1L, TransactionConstants.ABORTED);
+        byte[] abort = V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(1L, TransactionStatus.aborted());
 
         assertThat(Transactions1TableInteraction.encodeCommitTimestamp(222L)).isEqualTo(ByteBuffer.wrap(actualValue));
         assertThat(Transactions1TableInteraction.encodeCommitTimestamp(TransactionConstants.FAILED_COMMIT_TS))u}(j+  (665255398e90af7633b7ed78d422f68bbdb494e2jS,  xatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions2TableInteractionTest.javajU,  modifiedjM,  KjN,  KjW,  KjX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions2TableInteractionTest.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions2TableInteractionTest.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions2TableInteractionTest.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X  @@ -33,7 +33,7 @@
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraConstants;
 import com.palantir.atlasdb.transaction.encoding.TicketsEncodingStrategy;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.timestamp.FullyBoundedTimestampRange;
 import java.nio.ByteBuffer;
 import java.util.ArrayList;
@@ -128,7 +128,7 @@ private static Row createRow(long start, long commit) {
         when(row.getBytes(CassandraConstants.COLUMN)).thenReturn(ByteBuffer.wrap(cell.getColumnName()));
         when(row.getBytes(CassandraConstants.VALUE))
                 .thenReturn(ByteBuffer.wrap(TicketsEncodingStrategy.INSTANCE.encodeCommitStatusAsValue(
-                        start, TransactionStatuses.committed(commit))));
+                        start, TransactionStatus.committed(commit))));
         return row;
     }
 u}(j+  (6c8488c0b734a2196aa6268e3b1b4e173ea36688jS,  xatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions3TableInteractionTest.javajU,  modifiedjM,  KjN,  KjW,  KjX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteractionTest.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteractionTest.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteractionTest.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X  @@ -37,7 +37,6 @@
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.timestamp.FullyBoundedTimestampRange;
 import java.nio.ByteBuffer;
 import java.util.ArrayList;
@@ -68,8 +67,7 @@ public void extractCommittedTimestampTest() {
         TransactionTableEntryAssertions.assertTwoPhase(entry, (startTs, commitValue) -> {
             assertThat(startTs).isEqualTo(150L);
             assertThat(commitValue.isCommitted()).isTrue();
-            assertThat(TransactionStatuses.getCommitTimestamp(commitValue.value()))
-                    .hasValue(200L);
+            assertThat(commitValue.value()).isEqualTo(TransactionStatus.committed(200L));
         });
     }
 
@@ -80,8 +78,7 @@ public void extractStagingCommitTimestampTest() {
         TransactionTableEntryAssertions.assertTwoPhase(entry, (startTs, commitValue) -> {
             assertThat(startTs).isEqualTo(150L);
             assertThat(commitValue.isCommitted()).isFalse();
-            assertThat(TransactionStatuses.getCommitTimestamp(commitValue.value()))
-                    .hasValue(200L);
+            assertThat(commitValue.value()).isEqualTo(TransactionStatus.committed(200L));
         });
     }
 u}(j+  (5f795e54adce9a66821695cbd1b7903855070846jS,  \atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/TransactionConstants.javajU,  modifiedjM,  KjN,  KjW,  KjX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X  @@ -24,7 +24,6 @@
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.table.description.ValueType;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 
@@ -46,13 +45,10 @@ private TransactionConstants() {
     public static final byte[] DIRECT_ENCODING_ABORTED_TRANSACTION_VALUE = getValueForTimestamp(FAILED_COMMIT_TS);
     public static final byte[] TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE = PtBytes.EMPTY_BYTE_ARRAY;
 
-    public static final TransactionStatus ABORTED = TransactionStatuses.aborted();
-    public static final TransactionStatus IN_PROGRESS = TransactionStatuses.inProgress();
-    public static final TransactionStatus UNKNOWN = TransactionStatuses.unknown();
     public static final byte[] TTS_IN_PROGRESS_MARKER = getTtsInProgressMarker();
     public static final long LOWEST_POSSIBLE_START_TS = 1L;
     public static long PRE_START_COMMITTED_TS = TransactionConstants.LOWEST_POSSIBLE_START_TS - 1;
-    public static final TransactionStatus PRE_START_COMMITTED = TransactionStatuses.committed(PRE_START_COMMITTED_TS);
+    public static final TransactionStatus PRE_START_COMMITTED = TransactionStatus.committed(PRE_START_COMMITTED_TS);
 
     public static final long WARN_LEVEL_FOR_QUEUED_BYTES = 10 * 1024 * 1024;
 u}(j+  (d6ee97d6e0da719997ae5b3ffa7c377ce74a2186jS,  ^atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/TransactionStatusUtils.javajU,  modifiedjM,  KjN,  KjW,  K*jX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionStatusUtils.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionStatusUtils.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionStatusUtils.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X  @@ -18,51 +18,61 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Aborted;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.Optional;
 import java.util.function.Function;
 
 public final class TransactionStatusUtils {
+
     private TransactionStatusUtils() {}
 
     public static TransactionStatus fromTimestamp(long timestamp) {
         if (timestamp == TransactionConstants.FAILED_COMMIT_TS) {
-            return TransactionConstants.ABORTED;
+            return TransactionStatus.aborted();
         }
-        return TransactionStatuses.committed(timestamp);
+        return TransactionStatus.committed(timestamp);
     }
 
     /**
      * This helper is only meant to be used for transactions with schema < 4. For schemas >= 4,
      * use {@link #getCommitTsFromStatus(long, TransactionStatus, Function)}
      * */
     public static long getCommitTimestampIfKnown(TransactionStatus status) {
-        return TransactionStatuses.caseOf(status)
-                .committed(Function.identity())
-                .aborted_(TransactionConstants.FAILED_COMMIT_TS)
-                .otherwise(() -> {
-                    throw new SafeIllegalStateException("Illegal transaction status", SafeArg.of("status", status));
-                });
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return committed.commitTimestamp();
+        } else if (status instanceof Aborted) {
+            return TransactionConstants.FAILED_COMMIT_TS;
+        } else {
+            throw new SafeIllegalStateException("Illegal transaction status", SafeArg.of("status", status));
+        }
     }
 
     /**
      * This helper is only meant to be used for transactions with schema < 4. For schemas >= 4,
      * use {@link #getCommitTsFromStatus(long, TransactionStatus, Function)}
      * */
     public static Optional<Long> maybeGetCommitTs(TransactionStatus status) {
-        return TransactionStatuses.caseOf(status)
-                .committed(Function.identity())
-                .aborted_(TransactionConstants.FAILED_COMMIT_TS)
-                .otherwiseEmpty();
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return Optional.of(committed.commitTimestamp());
+        } else if (status instanceof Aborted) {
+            return Optional.of(TransactionConstants.FAILED_COMMIT_TS);
+        } else {
+            return Optional.empty();
+        }
     }
 
     public static Long getCommitTsFromStatus(
             long startTs, TransactionStatus status, Function<Long, Boolean> abortedCheck) {
-        return TransactionStatuses.caseOf(status)
-                .unknown(() -> getCommitTsForConcludedTransaction(startTs, abortedCheck))
-                .otherwise(() -> TransactionStatusUtils.maybeGetCommitTs(status).orElse(null));
+        if (status instanceof TransactionStatus.Unknown) {
+            return getCommitTsForConcludedTransaction(startTs, abortedCheck);
+        } else {
+            return TransactionStatusUtils.maybeGetCommitTs(status).orElse(null);
+        }
     }
 
     public static long getCommitTsForConcludedTransaction(long startTs, Function<Long, Boolean> isAborted) {u}(j+  (7ffa2fefee8958ba1a2ce1a90aef690293f911a2jS,  fatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTable.javajU,  modifiedjM,  KjN,  KjW,  KjX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X0  @@ -32,7 +32,6 @@
 import com.palantir.atlasdb.transaction.encoding.TwoPhaseEncodingStrategy;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.exception.AtlasDbDependencyException;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.common.time.Clock;
@@ -177,13 +176,10 @@ private FollowUpAction touchAndReturn(CellInfo cellAndValue) {
         } catch (CheckAndSetException e) {
             long startTs = cellAndValue.startTs();
             AtomicValue<TransactionStatus> currentValue = encodingStrategy.decodeValueAsCommitStatus(startTs, actual);
-            TransactionStatus commitStatus = currentValue.value();
             AtomicValue<TransactionStatus> kvsValue =
                     encodingStrategy.decodeValueAsCommitStatus(startTs, Iterables.getOnlyElement(e.getActualValues()));
             Preconditions.checkState(
-                    kvsValue.isCommitted()
-                            && TransactionStatuses.getCommitTimestamp(kvsValue.value())
-                                    .equals(TransactionStatuses.getCommitTimestamp(commitStatus)),
+                    kvsValue.isCommitted() && kvsValue.value().equals(currentValue.value()),
                     "Failed to persist a staging value for commit timestamp because an unexpected value "
                             + "was found in the KVS",
                     SafeArg.of("kvsValue", kvsValue),u}(j+  (1240bb172017e3e15ccf95f6e1f3ed08b526e789jS,  aatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/atomic/TimestampExtractingAtomicTable.javajU,  modifiedjM,  KjN,  KjW,  KjX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTable.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTable.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTable.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X]  @@ -22,7 +22,6 @@
 import com.palantir.atlasdb.keyvalue.api.KeyAlreadyExistsException;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.Map;
@@ -63,7 +62,7 @@ public ListenableFuture<Map<Long, Long>> get(Iterable<Long> keys) {
         return Futures.transform(
                 delegate.get(keys),
                 statuses -> {
-                    if (statuses.values().stream().anyMatch(TransactionStatuses.unknown()::equals)) {
+                    if (statuses.values().stream().anyMatch(TransactionStatus.unknown()::equals)) {
                         throw new SafeIllegalStateException("There has been a mistake in the wiring as "
                                 + "transactions that do not support transaction table sweep should not be seeing "
                                 + "`unknown` transaction status.");u}(j+  (98088205de8d1e7b8472112b1ed3c692920135c1jS,  hatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/encoding/TicketsEncodingStrategy.javajU,  modifiedjM,  KjN,  KjW,  KjX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategy.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategy.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategy.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X2
  @@ -20,7 +20,8 @@
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Aborted;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Arrays;
@@ -59,25 +60,26 @@ public long decodeCellAsStartTimestamp(Cell cell) {
     }
 
     @Override
-    public byte[] encodeCommitStatusAsValue(long startTimestamp, TransactionStatus commitStatus) {
-        return TransactionStatuses.caseOf(commitStatus)
-                .committed(ts -> TransactionConstants.getValueForTimestamp(ts - startTimestamp))
-                .aborted_(TransactionConstants.TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE)
-                .otherwise(() -> {
-                    throw new SafeIllegalArgumentException(
-                            "Unexpected transaction status", SafeArg.of("status", commitStatus));
-                });
+    public byte[] encodeCommitStatusAsValue(long startTimestamp, TransactionStatus status) {
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return TransactionConstants.getValueForTimestamp(committed.commitTimestamp() - startTimestamp);
+        } else if (status instanceof Aborted) {
+            return TransactionConstants.TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE;
+        } else {
+            throw new SafeIllegalArgumentException("Unexpected transaction status", SafeArg.of("status", status));
+        }
     }
 
     @Override
     public TransactionStatus decodeValueAsCommitStatus(long startTimestamp, byte[] value) {
         if (value == null) {
-            return TransactionConstants.IN_PROGRESS;
+            return TransactionStatus.inProgress();
         }
         if (Arrays.equals(value, TransactionConstants.TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE)) {
-            return TransactionConstants.ABORTED;
+            return TransactionStatus.aborted();
         }
-        return TransactionStatuses.committed(startTimestamp + TransactionConstants.getTimestampForValue(value));
+        return TransactionStatus.committed(startTimestamp + TransactionConstants.getTimestampForValue(value));
     }
 
     public Stream<byte[]> getRowSetCoveringTimestampRange(long fromInclusive, long toInclusive) {u}(j+  (48ed8037c90f16ac56dce747642fb90047ae4127jS,  iatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/encoding/TwoPhaseEncodingStrategy.javajU,  modifiedjM,  KjN,  KjW,  KjX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTwoPhaseEncodingStrategy.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTwoPhaseEncodingStrategy.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTwoPhaseEncodingStrategy.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X  @@ -22,7 +22,6 @@
 import com.palantir.atlasdb.ptobject.EncodingUtils;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
@@ -35,7 +34,7 @@ public final class TwoPhaseEncodingStrategy
     private static final byte[] COMMITTED = new byte[] {1};
 
     private static final AtomicValue<TransactionStatus> IN_PROGRESS_COMMITTED =
-            AtomicValue.committed(TransactionConstants.IN_PROGRESS);
+            AtomicValue.committed(TransactionStatus.inProgress());
     public static final byte[] ABORTED_TRANSACTION_COMMITTED_VALUE =
             EncodingUtils.add(TransactionConstants.TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE, COMMITTED);
     public static final byte[] ABORTED_TRANSACTION_STAGING_VALUE =
@@ -69,7 +68,7 @@ public AtomicValue<TransactionStatus> decodeNullValueAsCommitStatus() {
         }
         // `null` value is the in_progress marker for transaction schema <= 3. For transaction schema > 3, we have an
         // explicit in-progress marker and a null values represents that the table has been swept.
-        return AtomicValue.committed(TransactionStatuses.unknown());
+        return AtomicValue.committed(TransactionStatus.unknown());
     }
 
     @Overrideu}(j+  (332546bb3f57de279d692beddd67f9a12bbff65fjS,  catlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/encoding/V1EncodingStrategy.javajU,  modifiedjM,  KjN,  K
jW,  KjX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FV1EncodingStrategy.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FV1EncodingStrategy.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FV1EncodingStrategy.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  XT  @@ -20,7 +20,8 @@
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Aborted;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 
@@ -39,20 +40,21 @@ public long decodeCellAsStartTimestamp(Cell cell) {
     }
 
     @Override
-    public byte[] encodeCommitStatusAsValue(long _ignoredStartTimestamp, TransactionStatus commitStatus) {
-        return TransactionStatuses.caseOf(commitStatus)
-                .committed(TransactionConstants::getValueForTimestamp)
-                .aborted_(TransactionConstants.DIRECT_ENCODING_ABORTED_TRANSACTION_VALUE)
-                .otherwise(() -> {
-                    throw new SafeIllegalStateException(
-                            "Illegal transaction status", SafeArg.of("status", commitStatus));
-                });
+    public byte[] encodeCommitStatusAsValue(long _ignoredStartTimestamp, TransactionStatus status) {
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return TransactionConstants.getValueForTimestamp(committed.commitTimestamp());
+        } else if (status instanceof Aborted) {
+            return TransactionConstants.DIRECT_ENCODING_ABORTED_TRANSACTION_VALUE;
+        } else {
+            throw new SafeIllegalStateException("Illegal transaction status", SafeArg.of("status", status));
+        }
     }
 
     @Override
     public TransactionStatus decodeValueAsCommitStatus(long _ignoredStartTimestamp, byte[] value) {
         if (value == null) {
-            return TransactionConstants.IN_PROGRESS;
+            return TransactionStatus.inProgress();
         }
 
         return TransactionStatusUtils.fromTimestamp(TransactionConstants.getTimestampForValue(value));u}(j+  (b360e6e7298b91b238d9122bff9320bf177b827fjS,  batlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoader.javajU,  modifiedjM,  KjN,  KjW,  KjX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X  @@ -31,7 +31,6 @@
 import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
 import com.palantir.atlasdb.transaction.service.AsyncTransactionService;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
@@ -141,13 +140,13 @@ private Map<Long, Long> cacheKnownLoadedValuesAndValidate(Map<Long, TransactionS
             long start = entry.getKey();
             TransactionStatus commitStatus = entry.getValue();
 
-            if (commitStatus.equals(TransactionStatuses.inProgress())) {
+            if (commitStatus.equals(TransactionStatus.inProgress())) {
                 continue;
             }
 
             long commitTs = TransactionStatusUtils.getCommitTsFromStatus(
                     start, commitStatus, abortedTransactionsCache::isKnownAbandoned);
-            if (commitStatus.equals(TransactionStatuses.unknown())) {
+            if (commitStatus.equals(TransactionStatus.unknown())) {
                 shouldValidate = true;
             } else {
                 timestampCache.putAlreadyCommittedTransaction(start, commitTs);u}(j+  (6145cc9af0bd5b4fcbcfc599ba7616db926d9a99jS,  ratlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/KnowledgeableTimestampExtractingAtomicTableTest.javajU,  modifiedjM,  KjN,  K
jW,  KjX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FKnowledgeableTimestampExtractingAtomicTableTest.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FKnowledgeableTimestampExtractingAtomicTableTest.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FKnowledgeableTimestampExtractingAtomicTableTest.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X@  @@ -32,7 +32,6 @@
 import com.palantir.atlasdb.transaction.knowledge.KnownConcludedTransactions.Consistency;
 import com.palantir.atlasdb.transaction.knowledge.VerificationModeMetrics;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.util.concurrent.ExecutionException;
 import org.junit.Test;
@@ -79,7 +78,7 @@ public void canGetTsOfNonConcludedTxn() throws ExecutionException, InterruptedEx
         long commitTs = 127L;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.committed(commitTs)));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.committed(commitTs)));
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isEqualTo(commitTs);
     }
@@ -89,7 +88,7 @@ public void canGetTsOfNonConcludedAbortedTxn() throws ExecutionException, Interr
         long startTs = 27l;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.aborted()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.aborted()));
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isEqualTo(TransactionConstants.FAILED_COMMIT_TS);
     }
@@ -99,7 +98,7 @@ public void canGetTsOfNonConcludedInProgressTxn() throws ExecutionException, Int
         long startTs = 27l;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.inProgress()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.inProgress()));
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isNull();
     }
@@ -109,7 +108,7 @@ public void canGetTsOfRemotelyConcludedTxn() throws ExecutionException, Interrup
         long startTs = 27l;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.unknown()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.unknown()));
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(false);
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isEqualTo(startTs);
@@ -120,7 +119,7 @@ public void canGetTsOfRemotelyConcludedAbortedTxn() throws ExecutionException, I
         long startTs = 27l;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.unknown()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.unknown()));
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(true);
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isEqualTo(TransactionConstants.FAILED_COMMIT_TS);
@@ -130,7 +129,7 @@ public void canGetTsOfRemotelyConcludedAbortedTxn() throws ExecutionException, I
     @Test
     public void noVerificationIfTransactionInProgress() {
         long startTs = 27l;
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.inProgress()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.inProgress()));
         tsExtractingTable.get(startTs);
 
         verifyNoInteractions(knownAbandonedTransactions);
@@ -142,7 +141,7 @@ public void noVerificationIfTransactionInProgress() {
     public void noVerificationInBatchedGetIfTransactionInProgress() {
         long startTs = 27l;
         when(delegate.get(ImmutableSet.of(startTs)))
-                .thenReturn(Futures.immediateFuture(ImmutableMap.of(startTs, TransactionStatuses.inProgress())));
+                .thenReturn(Futures.immediateFuture(ImmutableMap.of(startTs, TransactionStatus.inProgress())));
         tsExtractingTable.get(ImmutableSet.of(startTs));
 
         verifyNoInteractions(knownAbandonedTransactions);
@@ -154,7 +153,7 @@ public void noVerificationInBatchedGetIfTransactionInProgress() {
     public void noVerificationIfTransactionNotConcluded() {
         long startTs = 27l;
         long commitTs = 35l;
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.committed(commitTs)));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.committed(commitTs)));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(false);
 
@@ -169,7 +168,7 @@ public void noVerificationIfTransactionNotConcluded() {
     public void verifiesConcludedTransaction() {
         long startTs = 27l;
         long commitTs = 35l;
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.committed(commitTs)));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.committed(commitTs)));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(true);
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(false);
@@ -186,7 +185,7 @@ public void verifiesConcludedTransaction() {
     public void verifiesConcludedAbandonedTransaction() {
         long startTs = 27l;
 
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.aborted()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.aborted()));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(true);
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(true);
@@ -204,7 +203,7 @@ public void catchesInconsistencyIfCommittedTransactionIsMarkedAbandoned() {
         long startTs = 27l;
         long commitTs = 35l;
 
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.committed(commitTs)));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.committed(commitTs)));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(true);
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(true);
@@ -221,7 +220,7 @@ public void catchesInconsistencyIfCommittedTransactionIsMarkedAbandoned() {
     public void catchesInconsistencyIfAbortedTransactionIsNotMarkedAbandoned() {
         long startTs = 27l;
 
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.aborted()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.aborted()));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(true);
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(false);uD      }(j+  (de47f4b61de48b3d358e06301facd8a4098aae44jS,  uatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTableIntegrationTest.javajU,  modifiedjM,  KjN,  KjW,  KjX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableIntegrationTest.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableIntegrationTest.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableIntegrationTest.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X  @@ -25,7 +25,6 @@
 import com.palantir.atlasdb.transaction.encoding.BaseProgressEncodingStrategy;
 import com.palantir.atlasdb.transaction.encoding.TwoPhaseEncodingStrategy;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.time.Duration;
@@ -90,7 +89,7 @@ private void submitWriteTask(
                 writeExecutionLatch.await();
                 Uninterruptibles.sleepUninterruptibly(
                         Duration.ofMillis(ThreadLocalRandom.current().nextInt(10)));
-                pueTable.update(startTimestamp, TransactionStatuses.committed(startTimestamp + writerIndex));
+                pueTable.update(startTimestamp, TransactionStatus.committed(startTimestamp + writerIndex));
             } catch (RuntimeException e) {
                 // Expected - some failures will happen as part of our test.
             }
@@ -154,7 +153,7 @@ private TimestampReader(long startTimestamp, AtomicTable<Long, TransactionStatus
 
         public List<Optional<Long>> getTimestampReads() {
             return timestampReads.stream()
-                    .map(TransactionStatuses::getCommitTimestamp)
+                    .map(TransactionStatus::getCommitTimestamp)
                     .collect(Collectors.toList());
         }
 u}(j+  (22a536520a6a833dfdb825d32190bc03183fad7ejS,  jatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTableTest.javajU,  modifiedjM,  K#jN,  K7jW,  KZjX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableTest.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableTest.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableTest.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X-  @@ -43,7 +43,6 @@
 import com.palantir.atlasdb.transaction.encoding.TicketsEncodingStrategy;
 import com.palantir.atlasdb.transaction.encoding.TwoPhaseEncodingStrategy;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.time.Clock;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.time.Duration;
@@ -101,67 +100,58 @@ public static Collection<Object[]> data() {
 
     @Test
     public void canPutAndGet() throws ExecutionException, InterruptedException {
-        atomicTable.update(1L, TransactionStatuses.committed(2L));
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(2L);
+        atomicTable.update(1L, TransactionStatus.committed(2L));
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(2L));
         verify(spiedStore).batchAtomicUpdate(anyMap());
         verify(spiedStore, atLeastOnce()).put(anyMap());
         verify(spiedStore).getMultiple(any());
     }
 
     @Test
     public void emptyReturnsInProgress() throws ExecutionException, InterruptedException {
-        assertThat(TransactionStatuses.caseOf(atomicTable.get(3L).get())
-                        .inProgress_(true)
-                        .otherwise_(false))
-                .isTrue();
+        assertThat(atomicTable.get(3L).get()).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Test
     public void canPutAndGetAbortedTransactions() throws ExecutionException, InterruptedException {
-        atomicTable.update(1L, TransactionStatuses.aborted());
-        assertThat(TransactionStatuses.caseOf(atomicTable.get(1L).get())
-                        .aborted_(true)
-                        .otherwise_(false))
-                .isTrue();
+        atomicTable.update(1L, TransactionStatus.aborted());
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.aborted());
     }
 
     @Test
     public void cannotPueTwice() {
-        atomicTable.update(1L, TransactionStatuses.committed(2L));
-        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatuses.committed(2L)))
+        atomicTable.update(1L, TransactionStatus.committed(2L));
+        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatus.committed(2L)))
                 .isInstanceOf(KeyAlreadyExistsException.class);
     }
 
     @Test
     public void canPutAndGetMultiple() throws ExecutionException, InterruptedException {
         ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(
                 1L,
-                TransactionStatuses.committed(2L),
+                TransactionStatus.committed(2L),
                 3L,
-                TransactionStatuses.committed(4L),
+                TransactionStatus.committed(4L),
                 7L,
-                TransactionStatuses.committed(8L));
+                TransactionStatus.committed(8L));
         atomicTable.updateMultiple(inputs);
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 3L, 5L, 7L)).get();
         assertThat(result).hasSize(4);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(3L))).hasValue(4L);
-        assertThat(TransactionStatuses.caseOf(result.get(5L)).inProgress_(true).otherwise_(false))
-                .isTrue();
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(7L))).hasValue(8L);
+        assertThat(result.get(1L)).isEqualTo(TransactionStatus.committed(2L));
+        assertThat(result.get(3L)).isEqualTo(TransactionStatus.committed(4L));
+        assertThat(result.get(5L)).isEqualTo(TransactionStatus.inProgress());
+        assertThat(result.get(7L)).isEqualTo(TransactionStatus.committed(8L));
     }
 
     @Test
     public void pueThatThrowsIsCorrectedOnGet() throws ExecutionException, InterruptedException {
         spiedStore.startFailingPuts();
-        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatuses.committed(2L)))
+        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatus.committed(2L)))
                 .isInstanceOf(RuntimeException.class);
         spiedStore.stopFailingPuts();
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(2L);
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(2L));
         verify(spiedStore, times(2)).put(anyMap());
     }
 
@@ -170,7 +160,7 @@ public void getReturnsStagingValuesThatWereCommittedBySomeoneElse()
             throws ExecutionException, InterruptedException {
 
         long startTimestamp = 1L;
-        TransactionStatus commitStatus = TransactionStatuses.committed(2L);
+        TransactionStatus commitStatus = TransactionStatus.committed(2L);
         Cell timestampAsCell = encodingStrategy.encodeStartTimestampAsCell(startTimestamp);
         byte[] stagingValue =
                 encodingStrategy.encodeCommitStatusAsValue(startTimestamp, AtomicValue.staging(commitStatus));
@@ -184,9 +174,7 @@ public void getReturnsStagingValuesThatWereCommittedBySomeoneElse()
                 .when(spiedStore)
                 .checkAndTouch(timestampAsCell, stagingValue);
 
-        assertThat(TransactionStatuses.getCommitTimestamp(
-                        atomicTable.get(startTimestamp).get()))
-                .isEqualTo(TransactionStatuses.getCommitTimestamp(commitStatus));
+        assertThat(atomicTable.get(startTimestamp).get()).isEqualTo(commitStatus);
     }
 
     @Test
@@ -209,14 +197,14 @@ public void onceNonNullValueIsReturnedItIsAlwaysReturned() {
             for (int i = 0; i < 30; i++) {
                 TransactionStatus valueRead = firstSuccessfulRead(putUnlessExistsTable, startTs);
                 onlyAllowedCommitTs.ifPresentOrElse(
-                        commit -> assertThat(TransactionStatuses.getCommitTimestamp(valueRead))
-                                .hasValue(commit),
-                        () -> assertThat(TransactionStatuses.caseOf(valueRead)
-                                        .inProgress_(true)
-                                        .committed(commitTs -> commitTs >= ts && commitTs <= ts + 2)
-                                        .otherwise_(false))
-                                .isTrue());
-                onlyAllowedCommitTs = TransactionStatuses.getCommitTimestamp(valueRead);
+                        commit -> assertThat(valueRead).isEqualTo(TransactionStatus.committed(commit)),
+                        () -> assertThat(valueRead)
+                                .satisfiesAnyOf(
+                                        status -> assertThat(status).isEqualTo(TransactionStatus.inProgress()),
+                                        status -> assertThat(status).isEqualTo(TransactionStatus.committed(ts)),
+                                        status -> assertThat(status).isEqualTo(TransactionStatus.committed(ts + 1)),
+                                        status -> assertThat(status).isEqualTo(TransactionStatus.committed(ts + 2))));
+                onlyAllowedCommitTs = TransactionStatus.getCommitTimestamp(valueRead);
             }
         }
     }
@@ -242,9 +230,7 @@ public void inAbsenceOfConcurrencyGetRetriesBothTouchAndPut() throws ExecutionEx
 
         spiedStore.stopFailingPuts();
         for (long i = 0; i < 100; i++) {
-            assertThat(TransactionStatuses.getCommitTimestamp(
-                            atomicTable.get(0L).get()))
-                    .hasValue(0L);
+            assertThat(atomicTable.get(0L).get()).isEqualTo(TransactionStatus.committed(0L));
         }
 
         if (validating) {
@@ -343,8 +329,7 @@ public void doNotPutIfAlreadyCommitted() throws ExecutionException, InterruptedE
         setupStagingValues(1);
         spiedStore.enableCommittingUnderUs();
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(0L).get()))
-                .hasValue(0L);
+        assertThat(atomicTable.get(0L).get()).isEqualTo(TransactionStatus.committed(0L));
         verify(spiedKvs, times(1)).checkAndSet(any());
         // only the put from the original PUE was registered
         verify(spiedStore, times(1)).put(anyMap());
@@ -357,18 +342,15 @@ public void acceptStagingAsCommittedWhenCommittingIsSlow() throws ExecutionExcep
         spiedStore.stopFailingPuts();
         spiedStore.startSlowPue();
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(0L).get()))
-                .hasValue(0L);
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(1L);
+        assertThat(atomicTable.get(0L).get()).isEqualTo(TransactionStatus.committed(0L));
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(1L));
 
         verify(spiedKvs, times(1)).checkAndSet(any());
         verify(spiedStore, times(1 + 2)).put(anyMap());
 
         clockLong.accumulateAndGet(Duration.ofSeconds(62).toMillis(), Long::sum);
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(2L).get()))
-                .hasValue(2L);
+        assertThat(atomicTable.get(2L).get()).isEqualTo(TransactionStatus.committed(2L));
         verify(spiedKvs, times(2)).checkAndSet(any());
         verify(spiedStore, times(1 + 3)).put(anyMap());
     }
@@ -384,23 +366,21 @@ public void acceptStagingAsCommittedWhenRetryingTooMuch() throws ExecutionExcept
                 .hasCauseInstanceOf(RetryLimitReachedException.class);
         spiedStore.stopFailingPuts();
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(1L);
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(1L));
         verify(spiedKvs, times(1)).checkAndSet(any());
         verify(spiedStore, times(1 + 2)).put(anyMap());
 
         clockLong.accumulateAndGet(Duration.ofSeconds(62).toMillis(), Long::sum);
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(2L).get()))
-                .hasValue(2L);
+        assertThat(atomicTable.get(2L).get()).isEqualTo(TransactionStatus.committed(2L));
         verify(spiedKvs, times(2)).checkAndSet(any());
         verify(spiedStore, times(1 + 3)).put(anyMap());
     }
 
     private void setupStagingValues(int num) {
         spiedStore.startFailingPuts();
         Map<Long, TransactionStatus> initialWrites =
-                LongStream.range(0, num).boxed().collect(Collectors.toMap(x -> x, TransactionStatuses::committed));
+                LongStream.range(0, num).boxed().collect(Collectors.toMap(x -> x, TransactionStatus::committed));
         assertThatThrownBy(() -> atomicTable.updateMultiple(initialWrites))
                 .isInstanceOf(RuntimeException.class)
                 .hasMessageContaining("Failed to set value");
@@ -409,7 +389,7 @@ private void setupStagingValues(int num) {
     private static Optional<Long> tryPue(
             AtomicTable<Long, TransactionStatus> atomicTable, long startTs, long commitTs) {
         try {
-            atomicTable.update(startTs, TransactionStatuses.committed(commitTs));
+            atomicTable.update(startTs, TransactionStatus.committed(commitTs));
             return Optional.of(commitTs);
         } catch (Exception e) {
             // this is ok, we may have failed because it already exists or randomly. Either way, continue.u}(j+  (09cfb417a9a7f8920f5c480e8b9a3bd3be73fe0cjS,  gatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/SimpleCommitTimestampAtomicTableTest.javajU,  modifiedjM,  KjN,  KjW,  K+jX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FSimpleCommitTimestampAtomicTableTest.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FSimpleCommitTimestampAtomicTableTest.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FSimpleCommitTimestampAtomicTableTest.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X  @@ -27,9 +27,7 @@
 import com.palantir.atlasdb.transaction.encoding.TicketsEncodingStrategy;
 import com.palantir.atlasdb.transaction.encoding.TransactionStatusEncodingStrategy;
 import com.palantir.atlasdb.transaction.encoding.V1EncodingStrategy;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import java.util.Arrays;
 import java.util.Collection;
 import java.util.Map;
@@ -58,74 +56,75 @@ public void setup() {
 
     @Test
     public void canPutAndGet() throws ExecutionException, InterruptedException {
-        atomicTable.update(1L, TransactionStatuses.committed(2L));
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(2L);
+        atomicTable.update(1L, TransactionStatus.committed(2L));
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(2L));
     }
 
     @Test
     public void emptyReturnsInProgress() throws ExecutionException, InterruptedException {
-        assertThat(atomicTable.get(3L).get()).isEqualTo(TransactionConstants.IN_PROGRESS);
+        assertThat(atomicTable.get(3L).get()).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Test
     public void cannotPueTwice() {
-        atomicTable.update(1L, TransactionStatuses.committed(2L));
-        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatuses.committed(2L)))
+        atomicTable.update(1L, TransactionStatus.committed(2L));
+        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatus.committed(2L)))
                 .isInstanceOf(KeyAlreadyExistsException.class);
     }
 
     @Test
     public void canPutAndGetMultiple() throws ExecutionException, InterruptedException {
         ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(
                 1L,
-                TransactionStatuses.committed(2L),
+                TransactionStatus.committed(2L),
                 3L,
-                TransactionStatuses.committed(4L),
+                TransactionStatus.committed(4L),
                 7L,
-                TransactionStatuses.committed(8L));
+                TransactionStatus.committed(8L));
         atomicTable.updateMultiple(inputs);
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 3L, 5L, 7L)).get();
         assertThat(result).hasSize(4);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(3L))).hasValue(4L);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(7L))).hasValue(8L);
+        assertThat(result.get(1L)).isEqualTo(TransactionStatus.committed(2L));
+        assertThat(result.get(3L)).isEqualTo(TransactionStatus.committed(4L));
+        assertThat(result.get(7L)).isEqualTo(TransactionStatus.committed(8L));
     }
 
     @Test
     public void canPutAndGetAbortedTransactions() throws ExecutionException, InterruptedException {
-        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatuses.aborted());
+        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatus.aborted());
         atomicTable.updateMultiple(inputs);
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L)).get();
         assertThat(result).hasSize(1);
-        assertThat(result).containsEntry(1L, TransactionConstants.ABORTED);
+        assertThat(result).containsEntry(1L, TransactionStatus.aborted());
     }
 
     @Test
     public void getsAllTimestamps() throws ExecutionException, InterruptedException {
-        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatuses.committed(2L));
+        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatus.committed(2L));
         atomicTable.updateMultiple(inputs);
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 3L)).get();
         assertThat(result).hasSize(2);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(result).containsEntry(3L, TransactionConstants.IN_PROGRESS);
+        assertThat(result)
+                .containsEntry(1L, TransactionStatus.committed(2L))
+                .containsEntry(3L, TransactionStatus.inProgress());
     }
 
     @Test
     public void doesNotThrowForDuplicateValues() throws ExecutionException, InterruptedException {
-        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatuses.committed(2L));
+        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatus.committed(2L));
         atomicTable.updateMultiple(inputs);
 
         // does not throw any exception
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 1L, 3L)).get();
 
         assertThat(result).hasSize(2);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(result).containsEntry(3L, TransactionConstants.IN_PROGRESS);
+        assertThat(result)
+                .containsEntry(1L, TransactionStatus.committed(2L))
+                .containsEntry(3L, TransactionStatus.inProgress());
     }
 
     private AtomicTable<Long, TransactionStatus> createPueTable() {u}(j+  (17c2d2d99fcc56873eb8e3c9724337a5187746f8jS,  eatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/TimestampExtractingAtomicTableTest.javajU,  modifiedjM,  KjN,  K	jW,  KjX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTableTest.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTableTest.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTableTest.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X  @@ -26,7 +26,6 @@
 import com.google.common.util.concurrent.Futures;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.Map;
@@ -42,7 +41,7 @@ public class TimestampExtractingAtomicTableTest {
     public void canExtractCommittedTransaction() throws ExecutionException, InterruptedException {
         Iterable<Long> keys = ImmutableList.of(1L, 2L, 3L);
         Map<Long, TransactionStatus> commits = KeyedStream.of(keys)
-                .map(key -> TransactionStatuses.committed(commitTs(key)))
+                .map(key -> TransactionStatus.committed(commitTs(key)))
                 .collectToMap();
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
@@ -54,7 +53,7 @@ public void canExtractCommittedTransaction() throws ExecutionException, Interrup
     public void canExtractAbortedTransaction() throws ExecutionException, InterruptedException {
         Iterable<Long> keys = ImmutableList.of(1L);
         Map<Long, TransactionStatus> commits =
-                KeyedStream.of(keys).map(_key -> TransactionConstants.ABORTED).collectToMap();
+                KeyedStream.of(keys).map(_key -> TransactionStatus.aborted()).collectToMap();
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
         Map<Long, Long> expected = KeyedStream.of(keys)
@@ -70,9 +69,9 @@ public void canExtractCommittedOrAbortedTransaction() throws ExecutionException,
         Iterable<Long> keys = ImmutableList.of(committedTs, abortedTs);
         Map<Long, TransactionStatus> commits = ImmutableMap.of(
                 committedTs,
-                TransactionStatuses.committed(commitTs(committedTs)),
+                TransactionStatus.committed(commitTs(committedTs)),
                 abortedTs,
-                TransactionConstants.ABORTED);
+                TransactionStatus.aborted());
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
         Map<Long, Long> expected =
@@ -83,9 +82,8 @@ public void canExtractCommittedOrAbortedTransaction() throws ExecutionException,
     @Test
     public void ignoresInProgressTransaction() throws ExecutionException, InterruptedException {
         Iterable<Long> keys = ImmutableList.of(1L);
-        Map<Long, TransactionStatus> commits = KeyedStream.of(keys)
-                .map(_key -> TransactionConstants.IN_PROGRESS)
-                .collectToMap();
+        Map<Long, TransactionStatus> commits =
+                KeyedStream.of(keys).map(_key -> TransactionStatus.inProgress()).collectToMap();
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
         assertThat(timestampExtractingAtomicTable.get(keys).get()).isEmpty();
@@ -95,7 +93,7 @@ public void ignoresInProgressTransaction() throws ExecutionException, Interrupte
     public void throwsOnUnknownTransaction() {
         Iterable<Long> keys = ImmutableList.of(1L);
         Map<Long, TransactionStatus> commits =
-                KeyedStream.of(keys).map(_key -> TransactionConstants.UNKNOWN).collectToMap();
+                KeyedStream.of(keys).map(_key -> TransactionStatus.unknown()).collectToMap();
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
         assertThatThrownBy(() -> timestampExtractingAtomicTable.get(keys).get())u}(j+  (f83731cd3f3f8b3be5c5f506cb85afad40f4ec7bjS,  latlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/encoding/TicketsEncodingStrategyTest.javajU,  modifiedjM,  KjN,  KjW,  K!jX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategyTest.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategyTest.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategyTest.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  XN  @@ -24,8 +24,7 @@
 import com.google.protobuf.ByteString;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.Cell;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Arrays;
 import java.util.List;
@@ -87,22 +86,20 @@ public void commitTimestampEncodeAndDecodeAreInverses() {
             long startTimestamp = ThreadLocalRandom.current().nextLong(0, Long.MAX_VALUE - 1);
             long commitTimestamp = ThreadLocalRandom.current().nextLong(startTimestamp, Long.MAX_VALUE);
             byte[] encoded =
-                    STRATEGY.encodeCommitStatusAsValue(startTimestamp, TransactionStatuses.committed(commitTimestamp));
-            assertThat(TransactionStatuses.getCommitTimestamp(
-                            STRATEGY.decodeValueAsCommitStatus(startTimestamp, encoded)))
-                    .hasValue(commitTimestamp);
+                    STRATEGY.encodeCommitStatusAsValue(startTimestamp, TransactionStatus.committed(commitTimestamp));
+            assertThat(STRATEGY.decodeValueAsCommitStatus(startTimestamp, encoded))
+                    .isEqualTo(TransactionStatus.committed(commitTimestamp));
         });
     }
 
     @Test
     public void storesLargeCommitTimestampsCompactly() {
         long highTimestamp = Long.MAX_VALUE - 1;
         byte[] commitTimestampEncoding =
-                STRATEGY.encodeCommitStatusAsValue(highTimestamp, TransactionStatuses.committed(highTimestamp + 1));
+                STRATEGY.encodeCommitStatusAsValue(highTimestamp, TransactionStatus.committed(highTimestamp + 1));
         assertThat(commitTimestampEncoding).hasSize(1);
-        assertThat(TransactionStatuses.getCommitTimestamp(
-                        STRATEGY.decodeValueAsCommitStatus(highTimestamp, commitTimestampEncoding)))
-                .hasValue(highTimestamp + 1);
+        assertThat(STRATEGY.decodeValueAsCommitStatus(highTimestamp, commitTimestampEncoding))
+                .isEqualTo(TransactionStatus.committed(highTimestamp + 1));
     }
 
     @Test
@@ -151,36 +148,36 @@ public void distributesRowsEvenlyAcrossBitSpace() {
 
     @Test
     public void canStoreTransactionsCommittingInstantaneously() {
-        assertThatCode(() -> STRATEGY.encodeCommitStatusAsValue(10, TransactionStatuses.committed(10L)))
+        assertThatCode(() -> STRATEGY.encodeCommitStatusAsValue(10, TransactionStatus.committed(10L)))
                 .doesNotThrowAnyException();
     }
 
     @Test
     public void canStoreAbortedTransactionCompactly() {
-        assertThat(STRATEGY.encodeCommitStatusAsValue(537369, TransactionConstants.ABORTED))
+        assertThat(STRATEGY.encodeCommitStatusAsValue(537369, TransactionStatus.aborted()))
                 .hasSize(0);
     }
 
     @Test
     public void encodingIllegalCommitThrows() {
-        assertThatThrownBy(() -> STRATEGY.encodeCommitStatusAsValue(12327758, TransactionStatuses.inProgress()))
+        assertThatThrownBy(() -> STRATEGY.encodeCommitStatusAsValue(12327758, TransactionStatus.inProgress()))
                 .isInstanceOf(SafeIllegalArgumentException.class);
-        assertThatThrownBy(() -> STRATEGY.encodeCommitStatusAsValue(12327758, TransactionStatuses.unknown()))
+        assertThatThrownBy(() -> STRATEGY.encodeCommitStatusAsValue(12327758, TransactionStatus.unknown()))
                 .isInstanceOf(SafeIllegalArgumentException.class);
     }
 
     @Test
     public void canDecodeEmptyByteArrayAsAbortedTransaction() {
         assertThat(STRATEGY.decodeValueAsCommitStatus(1, PtBytes.EMPTY_BYTE_ARRAY))
-                .isEqualTo(TransactionConstants.ABORTED);
+                .isEqualTo(TransactionStatus.aborted());
         assertThat(STRATEGY.decodeValueAsCommitStatus(862846378267L, PtBytes.EMPTY_BYTE_ARRAY))
-                .isEqualTo(TransactionConstants.ABORTED);
+                .isEqualTo(TransactionStatus.aborted());
     }
 
     @Test
     public void canDecodeNullAsInProgressTransaction() {
-        assertThat(STRATEGY.decodeValueAsCommitStatus(1, null)).isEqualTo(TransactionConstants.IN_PROGRESS);
-        assertThat(STRATEGY.decodeValueAsCommitStatus(862846378267L, null)).isEqualTo(TransactionConstants.IN_PROGRESS);
+        assertThat(STRATEGY.decodeValueAsCommitStatus(1, null)).isEqualTo(TransactionStatus.inProgress());
+        assertThat(STRATEGY.decodeValueAsCommitStatus(862846378267L, null)).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Testu}(j+  (f4c51432c4b246954b0fa6a7bcbfe0fa602255ecjS,  fatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoaderTest.javajU,  modifiedjM,  KjN,  KjW,  KjX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X  @@ -35,7 +35,6 @@
 import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
 import com.palantir.atlasdb.transaction.service.AsyncTransactionService;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.lock.v2.LockToken;
@@ -59,7 +58,7 @@ public class CommitTimestampLoaderTest {
     private final KnownConcludedTransactions knownConcludedTransactions = mock(KnownConcludedTransactions.class);
 
     private void setup(long startTs, long commitTs) {
-        TransactionStatus commitStatus = TransactionStatuses.committed(commitTs);
+        TransactionStatus commitStatus = TransactionStatus.committed(commitTs);
         setup(startTs, commitStatus, false);
     }
 
@@ -87,7 +86,7 @@ public void readOnlyDoesNotThrowForUnsweptTTSCell() throws ExecutionException, I
     public void throwIfTTSBeyondReadOnlyForSweptTTSCell() {
         long transactionTs = 27l;
         long startTs = 5l;
-        TransactionStatus commitStatus = TransactionStatuses.unknown();
+        TransactionStatus commitStatus = TransactionStatus.unknown();
 
         setup(startTs, commitStatus, true);
 
@@ -160,7 +159,7 @@ public void doesNotCacheUnknownTransactions() throws ExecutionException, Interru
         long commitTsKnown = startTsKnown + 1;
 
         long startTsUnknown = 7l;
-        TransactionStatus commitUnknown = TransactionStatuses.unknown();
+        TransactionStatus commitUnknown = TransactionStatus.unknown();
 
         CommitTimestampLoader commitTimestampLoader =
                 getCommitTsLoader(Optional.empty(), transactionTs, transactionTs - 1);u}(j+  (065284f020ede2cc6279444cf58d921a7a7e099fjS,  hatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/service/TransactionServicesTest.javajU,  modifiedjM,  KjN,  KjW,  K
jX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionServicesTest.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionServicesTest.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionServicesTest.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X  @@ -191,7 +191,7 @@ public void canReadInProgressStatusV4Transaction() {
         initializeTimestamps();
         transactionService.markInProgress(startTs);
         assertThat(transactionService.get(startTs)).isNull();
-        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatuses.inProgress());
+        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Test
@@ -216,8 +216,8 @@ public void canCommitV4Transaction() {
 
         TwoPhaseEncodingStrategy strategy = new TwoPhaseEncodingStrategy(V4ProgressEncodingStrategy.INSTANCE);
         Cell cell = strategy.encodeStartTimestampAsCell(startTs);
-        byte[] update = strategy.encodeCommitStatusAsValue(
-                startTs, AtomicValue.staging(TransactionStatuses.committed(commitTs)));
+        byte[] update =
+                strategy.encodeCommitStatusAsValue(startTs, AtomicValue.staging(TransactionStatus.committed(commitTs)));
 
         MultiCheckAndSetRequest actualMcasRequest = verifyMcasInTableAndReturnArgument();
         assertThat(actualMcasRequest.tableRef()).isEqualTo(TransactionConstants.TRANSACTIONS2_TABLE);
@@ -244,14 +244,14 @@ public void canReadCommittedV4Transaction() {
     public void emptyValueReadsAsInProgressInV3() {
         forceInstallV3();
         initializeTimestamps();
-        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatuses.inProgress());
+        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Test
     public void emptyValueReadsAsUnknownInV4() {
         forceInstallV4();
         initializeTimestamps();
-        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatuses.unknown());
+        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatus.unknown());
     }
 
     private void initializeTimestamps() {u}(j+  (f5325ab250288de7492dba17e669a167978c832ajS,  fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javajU,  modifiedjM,  KjN,  KjW,  KjX,  https://github.com/palantir/atlasdb/blob/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javajZ,  https://github.com/palantir/atlasdb/raw/188f73b744c3616b1597253b6187c0914b6c3854/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj\,  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=188f73b744c3616b1597253b6187c0914b6c3854j^,  X*  @@ -22,7 +22,6 @@
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
@@ -85,7 +84,7 @@ public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions)
             TransactionStatus status =
                     transactionManager.getTransactionService().getV2(startTimestampReference.get());
 
-            Optional<Long> commitTimestamp = TransactionStatuses.getCommitTimestamp(status);
+            Optional<Long> commitTimestamp = TransactionStatus.getCommitTimestamp(status);
 
             return Optional.of(ImmutableWitnessedTransaction.builder()
                     .startTimestamp(startTimestampReference.get())ueu(e35dab0e65bd69707c57be7741e71569889b0229}(sha(e35dab0e65bd69707c57be7741e71569889b0229node_idEC_kwDOAjP5fdoAKGUzNWRhYjBlNjViZDY5NzA3YzU3YmU3NzQxZTcxNTY5ODg5YjAyMjkcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-08T12:43:59Zu	committer}(j2-  
Sam Kramerj4-  skramer@palantir.comj6-  2023-08-08T12:43:59Zumessageaddress comments round Itree}(j*-  (34c4d8e4326d91b9d5efa9f0b9498680e53c0009url`https://api.github.com/repos/palantir/atlasdb/git/trees/34c4d8e4326d91b9d5efa9f0b9498680e53c0009ujB-  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e35dab0e65bd69707c57be7741e71569889b0229
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTSOJAACgkQmPPOpKR4
XS3ckwf/RaPKMTGsdfaOqUiEQ90B+z9IRufzVzYA7WapWD7de8twY6q9FjI5B8Si
qMyjdTF6oAqK0iHbtMQ9RudH/KBrRXciSzrZHE7nx5XutX1Tk7GMFDrwgQRELZLZ
s0BmOjF+NwIKqjCsXZQp8xVOWgNI/6O7qTN7j/1tjl+oZAGx8DeG3s6Zicy9bWAQ
lv3eqOju9CnoJXpEbH5Paw5epWtfy2baQGpUDDU3alWpUJmtooNgMjKPGN8vdfH4
qxhb6CgqbNPWGq0BEZ0/rt+HKEghj6OLRJhd+G5aNtiyXkgVB2wANdM0k0PPjvJX
EGkbWDFxIpkKOa+dAxLAEIh4iXTNsg==
=qXF/
-----END PGP SIGNATURE-----payloadtree 34c4d8e4326d91b9d5efa9f0b9498680e53c0009
parent ee89de1fc94f739690d75f4607d1fed58fd6b373
author Sam Kramer <skramer@palantir.com> 1691498639 +0100
committer Sam Kramer <skramer@palantir.com> 1691498639 +0100

address comments round I
uujB-  ^https://api.github.com/repos/palantir/atlasdb/commits/e35dab0e65bd69707c57be7741e71569889b0229html_urlShttps://github.com/palantir/atlasdb/commit/e35dab0e65bd69707c57be7741e71569889b0229comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e35dab0e65bd69707c57be7741e71569889b0229/commentsj0-  }(login
Sam-KrameridJ^2_ j,-  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jB-  'https://api.github.com/users/Sam-KramerjP-  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj8-  }(jU-  
Sam-KramerjW-  J^2_ j,-  MDQ6VXNlcjYyMzg4MTQ=jY-  3https://avatars.githubusercontent.com/u/6238814?v=4j[-  h5jB-  'https://api.github.com/users/Sam-KramerjP-  https://github.com/Sam-Kramerj^-  1https://api.github.com/users/Sam-Kramer/followersj`-  >https://api.github.com/users/Sam-Kramer/following{/other_user}jb-  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jd-  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jf-  5https://api.github.com/users/Sam-Kramer/subscriptionsjh-  ,https://api.github.com/users/Sam-Kramer/orgsjj-  -https://api.github.com/users/Sam-Kramer/reposjl-  8https://api.github.com/users/Sam-Kramer/events{/privacy}jn-  7https://api.github.com/users/Sam-Kramer/received_eventsjp-  Userjr-  uparents]}(j*-  (ee89de1fc94f739690d75f4607d1fed58fd6b373jB-  ^https://api.github.com/repos/palantir/atlasdb/commits/ee89de1fc94f739690d75f4607d1fed58fd6b373jP-  Shttps://github.com/palantir/atlasdb/commit/ee89de1fc94f739690d75f4607d1fed58fd6b373uastats}(totalK	additionsK	deletionsKufiles](}(j*-  (3afae67e66c995e48d5ffe2287f9c6f2030961cdfilenameYleader-election-impl/src/main/java/com/palantir/leader/proxy/AwaitingLeadershipProxy.javastatusmodifiedj-  Kj-  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e35dab0e65bd69707c57be7741e71569889b0229/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e35dab0e65bd69707c57be7741e71569889b0229/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.java?ref=e35dab0e65bd69707c57be7741e71569889b0229patchX'  @@ -161,7 +161,7 @@ private RuntimeException handleDelegateThrewException(
         Throwable cause = exception.getCause();
 
         if (cause instanceof ServiceNotAvailableException) {
-            handleLeadershipChangeException(leadershipToken, (ServiceNotAvailableException) cause);
+            handlePossibleLeadershipChangeException(leadershipToken, (ServiceNotAvailableException) cause);
         }
 
         // Prevent blocked lock requests from receiving a non-retryable 500 on interrupts
@@ -179,7 +179,7 @@ private RuntimeException handleDelegateThrewException(
      * If it is, check and see if we are still leading, as we may still be, but contending with ourselves. Otherwise,
      * assume we are not, and invalidate our leadership state.
      */
-    private void handleLeadershipChangeException(
+    private void handlePossibleLeadershipChangeException(
             LeadershipToken leadershipToken, ServiceNotAvailableException exception)
             throws ExecutionException, InterruptedException {
         boolean notLeading = true;u}(j*-  (11cd39cba652299ef3cff89075a816608206a2a3j-  ]timelock-impl/src/main/java/com/palantir/atlasdb/timelock/paxos/PaxosTimestampBoundStore.javaj-  modifiedj-  Kj-  Kj-  Kj-  https://github.com/palantir/atlasdb/blob/e35dab0e65bd69707c57be7741e71569889b0229/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javaj-  https://github.com/palantir/atlasdb/raw/e35dab0e65bd69707c57be7741e71569889b0229/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javaj-  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.java?ref=e35dab0e65bd69707c57be7741e71569889b0229j-  X-  @@ -283,7 +283,8 @@ private void checkAgreedBoundIsOurs(long limit, long newSeq, PaxosValue value) t
                     SafeArg.of("newSeq", newSeq),
                     SafeArg.of("leaderUuid", value.getLeaderUUID()),
                     SafeArg.of("ourUuid", proposer.getUuid()),
-                    SafeArg.of("limit", limit),
+                    SafeArg.of("newLimit", PtBytes.toLong(value.getData())),
+                    SafeArg.of("target", limit),
                     SafeArg.of("value", value));
         }
         DebugLogger.logger.info(ueu(88d9d0aba86032cd90a07d47a804c370741b57d6}(sha(88d9d0aba86032cd90a07d47a804c370741b57d6node_idEC_kwDOAjP5fdoAKDg4ZDlkMGFiYTg2MDMyY2Q5MGEwN2Q0N2E4MDRjMzcwNzQxYjU3ZDYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-26T11:12:25Zu	committer}(j-  
Ahmed Alouanej-  aalouane@palantir.comj-  2023-05-26T11:12:25Zumessagecompile in buildtree}(j-  (feddb07befc68bec4d595b153edee792afb56622url`https://api.github.com/repos/palantir/atlasdb/git/trees/feddb07befc68bec4d595b153edee792afb56622uj-  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/88d9d0aba86032cd90a07d47a804c370741b57d6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRwlBkACgkQPlMHVIT1
yhqNvgf5ARq8t1+9RlX2X4UcSrmq3dJUN26p83PadWXt+CGrkvQzi5IW8LCNkKZe
er+0ypWQhlGBBxkeA9B3pHc5RruXGzRZTL/JIY6j1QldpFstG4nwNq4rx1g6854I
C2L1WfObXrZj7dkk75e9VTX7g5+q93MJckmVYUApuJSKG/vzrmgH+mS5sT1pWuDC
MX69uJE2+ZurHv9dC03S3R80nu5a4aBJ3mkKRS1zuYJwlMY3LPg0RM3gNdhOWuF0
aFcOqq+qkcIS7nkVLztPPCWLBmVQ/QDOl23e3dlSXGSvwDtGjPC0QKP3OBdPOg2A
Eir9Rm/0kf51NtU0OOlnpWqneZwTPw==
=+BF8
-----END PGP SIGNATURE-----payloadtree feddb07befc68bec4d595b153edee792afb56622
parent 86b8e9ba03548cac49c1319f05f11f9596b4662f
author Ahmed Alouane <aalouane@palantir.com> 1685099545 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1685099545 +0100

compile in build
uuj-  ^https://api.github.com/repos/palantir/atlasdb/commits/88d9d0aba86032cd90a07d47a804c370741b57d6html_urlShttps://github.com/palantir/atlasdb/commit/88d9d0aba86032cd90a07d47a804c370741b57d6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/88d9d0aba86032cd90a07d47a804c370741b57d6/commentsj-  }(loginergo14idJj-  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j-  #https://api.github.com/users/ergo14j-  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj-  }(j-  ergo14j-  Jj-  MDQ6VXNlcjMwOTAzNzM2j-  4https://avatars.githubusercontent.com/u/30903736?v=4j-  h5j-  #https://api.github.com/users/ergo14j-  https://github.com/ergo14j-  -https://api.github.com/users/ergo14/followersj-  :https://api.github.com/users/ergo14/following{/other_user}j-  3https://api.github.com/users/ergo14/gists{/gist_id}j-  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j-  1https://api.github.com/users/ergo14/subscriptionsj-  (https://api.github.com/users/ergo14/orgsj-  )https://api.github.com/users/ergo14/reposj-  4https://api.github.com/users/ergo14/events{/privacy}j-  3https://api.github.com/users/ergo14/received_eventsj-  Userj-  uparents]}(j-  (86b8e9ba03548cac49c1319f05f11f9596b4662fj-  ^https://api.github.com/repos/palantir/atlasdb/commits/86b8e9ba03548cac49c1319f05f11f9596b4662fj-  Shttps://github.com/palantir/atlasdb/commit/86b8e9ba03548cac49c1319f05f11f9596b4662fuastats}(totalK	additionsK	deletionsKufiles](}(j-  (7daa338ee98cc65210956ecbdf98dc61b97dcc5efilename.circleci/config.ymlstatusmodifiedj.  Kj.  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/88d9d0aba86032cd90a07d47a804c370741b57d6/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/88d9d0aba86032cd90a07d47a804c370741b57d6/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=88d9d0aba86032cd90a07d47a804c370741b57d6patchX  @@ -17,7 +17,7 @@ jobs:
           key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
 
       - run: git tag -l | xargs git tag -d && git fetch -t # ensure all tags are fetched and up-to-date
-      - run: ./gradlew --scan --profile --parallel --stacktrace classes testClasses
+      - run: ./gradlew --scan --profile --parallel --stacktrace -PenableErrorProne=true classes testClasses compileJava compileTestJava
 
       - save_cache:
           key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
@@ -155,7 +155,7 @@ workflows:
             alias: test-no-tl
             parameters:
               # intentionally excluding 13 (TimeLock migration ETE test) from this collection
-              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14]
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
           filters:
             tags:
               only: /.*/u}(j-  (7d06aa3edd06371e83564769116c2f1c7bd74d56j.  %scripts/circle-ci/run-circle-tests.shj.  modifiedj.  Kj.  K
j.  Kj.  {https://github.com/palantir/atlasdb/blob/88d9d0aba86032cd90a07d47a804c370741b57d6/scripts%2Fcircle-ci%2Frun-circle-tests.shj.  zhttps://github.com/palantir/atlasdb/raw/88d9d0aba86032cd90a07d47a804c370741b57d6/scripts%2Fcircle-ci%2Frun-circle-tests.shj.  https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=88d9d0aba86032cd90a07d47a804c370741b57d6j.  X"  @@ -39,8 +39,6 @@ CONTAINER_12=(':atlasdb-dbkvs:check' ':atlasdb-cassandra:check' )
 
 CONTAINER_13=(':atlasdb-ete-tests:timeLockMigrationTest')
 
-CONTAINER_14=('compileJava' 'compileTestJava')
-
 # Excluded as it is split into two subsets
 EXCLUDED=(':atlasdb-cassandra-integration-tests:check')
 
@@ -75,20 +73,19 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
 # External builds have a 16gb limit.
-if [ "$test_suite_index" -eq "14" ]; then
-    export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
-elif [ "$test_suite_index" -eq "3" ]; then
+if [ "$test_suite_index" -eq "3" ]; then
     export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
-    BASE_GRADLE_ARGS+=" --scan --parallel"
 else
-    export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
-    BASE_GRADLE_ARGS+=" --scan --parallel"
+    export _JAVA_OPTIONS="-Xms4g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 fi
+
+BASE_GRADLE_ARGS+=" --scan --parallel"
+
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64m
 
 case "$test_suite_index" in
-    0) ./gradlew $BASE_GRADLE_ARGS check $CONTAINER_0_EXCLUDE_ARGS -x :atlasdb-jepsen-tests:check;;
+    0) ./gradlew $BASE_GRADLE_ARGS check $CONTAINER_0_EXCLUDE_ARGS -x :atlasdb-jepsen-tests:check && checkDocsBuild;;
     1) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_1[@]} ;;
     2) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_2[@]} -x :atlasdb-ete-tests:longTest -x atlasdb-ete-tests:dbkvsTest -x :atlasdb-ete-tests:timeLockMigrationTest ;;
     3) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_3[@]} ;;
@@ -102,5 +99,4 @@ case "$test_suite_index" in
     11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} ;;
     12) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_12[@]} ;;
     13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_13[@]} ;;
-    14) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_14[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
 esacueu(ec875d3b438f09856428f7b8789b5dd86f291476}(sha(ec875d3b438f09856428f7b8789b5dd86f291476node_idEC_kwDOAjP5fdoAKGVjODc1ZDNiNDM4ZjA5ODU2NDI4ZjdiODc4OWI1ZGQ4NmYyOTE0NzYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-23T13:49:44Zu	committer}(j0.  
Sam Kramerj2.  skramer@palantir.comj4.  2023-05-23T13:49:44Zumessagespotlesstree}(j(.  (2e51c961631887e25ddf08f7d90053fbee378dfcurl`https://api.github.com/repos/palantir/atlasdb/git/trees/2e51c961631887e25ddf08f7d90053fbee378dfcuj@.  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ec875d3b438f09856428f7b8789b5dd86f291476
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRsxHgACgkQmPPOpKR4
XS2Z5Qf/TBY8OaHWTkZUNOPkGW1xODusmDz4vWwoIqINuzVFiHZUmuwn1FrvE4se
CRpLEWQmKPPJGrPtjuGVZZOlFO4pBBKcajYVwbuYX7g4AtWgF8x2OcDkedEegK3K
GS4rqUe4MrCa9BXkH/DDGwxEfwDk1vw0ar4C59nf0RdNQdiuiLnwekfQevMKqCfu
sQsLiB5ROGQ+yOpngi5sxN4pHfQwP4aRJMEU5cRDyKk+7JSVjJOUpoo9qhVrmWrz
HVKqyzZ7bOUyPDoJicOY3Y7Gs2GrcAvUMfHrJf6q3JomGwrDDWyiNdS1NehLrL1b
Mei4I3o4VeQ0zT0icLzKCHKhU8B7Fw==
=y2nb
-----END PGP SIGNATURE-----payloadtree 2e51c961631887e25ddf08f7d90053fbee378dfc
parent 8475920a2fdea75ec5e32191b77dd0468713bd77
author Sam Kramer <skramer@palantir.com> 1684849784 +0100
committer Sam Kramer <skramer@palantir.com> 1684849784 +0100

spotless
uuj@.  ^https://api.github.com/repos/palantir/atlasdb/commits/ec875d3b438f09856428f7b8789b5dd86f291476html_urlShttps://github.com/palantir/atlasdb/commit/ec875d3b438f09856428f7b8789b5dd86f291476comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ec875d3b438f09856428f7b8789b5dd86f291476/commentsj..  }(login
Sam-KrameridJ^2_ j*.  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j@.  'https://api.github.com/users/Sam-KramerjN.  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj6.  }(jS.  
Sam-KramerjU.  J^2_ j*.  MDQ6VXNlcjYyMzg4MTQ=jW.  3https://avatars.githubusercontent.com/u/6238814?v=4jY.  h5j@.  'https://api.github.com/users/Sam-KramerjN.  https://github.com/Sam-Kramerj\.  1https://api.github.com/users/Sam-Kramer/followersj^.  >https://api.github.com/users/Sam-Kramer/following{/other_user}j`.  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jb.  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jd.  5https://api.github.com/users/Sam-Kramer/subscriptionsjf.  ,https://api.github.com/users/Sam-Kramer/orgsjh.  -https://api.github.com/users/Sam-Kramer/reposjj.  8https://api.github.com/users/Sam-Kramer/events{/privacy}jl.  7https://api.github.com/users/Sam-Kramer/received_eventsjn.  Userjp.  uparents]}(j(.  (8475920a2fdea75ec5e32191b77dd0468713bd77j@.  ^https://api.github.com/repos/palantir/atlasdb/commits/8475920a2fdea75ec5e32191b77dd0468713bd77jN.  Shttps://github.com/palantir/atlasdb/commit/8475920a2fdea75ec5e32191b77dd0468713bd77uastats}(totalK	additionsK	deletionsKufiles]}(j(.  (4070f53a1fe32fff1205f946858d747ab540e48bfilenamedatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javastatusmodifiedj.  Kj.  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ec875d3b438f09856428f7b8789b5dd86f291476/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ec875d3b438f09856428f7b8789b5dd86f291476/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=ec875d3b438f09856428f7b8789b5dd86f291476patchX  @@ -365,9 +365,9 @@ void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> des
         Preconditions.checkState(
                 !getCurrentPools().isEmpty() || serversToAdd.isEmpty(),
                 "No servers were successfully added to the pool. This means we could not come to a consensus on"
-                        + " cluster topology, and the client cannot connect as there are no valid hosts. This state should"
-                        + " be transient (<5 minutes), and if it is not, indicates that the user may have accidentally"
-                        + " configured AltasDB to use two separate Cassandra clusters (i.e., user-led split brain).",
+                    + " cluster topology, and the client cannot connect as there are no valid hosts. This state should"
+                    + " be transient (<5 minutes), and if it is not, indicates that the user may have accidentally"
+                    + " configured AltasDB to use two separate Cassandra clusters (i.e., user-led split brain).",
                 SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())));
 
         logRefreshedHosts(validatedServersToAdd, serversToShutdown, absentServers);uau(01e15d4e137d34495e6f00820689da84865d263e}(sha(01e15d4e137d34495e6f00820689da84865d263enode_idEC_kwDOAjP5fdoAKDAxZTE1ZDRlMTM3ZDM0NDk1ZTZmMDA4MjA2ODlkYTg0ODY1ZDI2M2Ucommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-07-24T14:56:44Zu	committer}(j.  GitHubj.  noreply@github.comj.  2023-07-24T14:56:44Zumessage7Excavator:  Update Undertow Server Version Pins (#6635)tree}(j.  (27db157b1fcdb4f436cc7b56b5e59ad9daf96450url`https://api.github.com/repos/palantir/atlasdb/git/trees/27db157b1fcdb4f436cc7b56b5e59ad9daf96450uj.  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/01e15d4e137d34495e6f00820689da84865d263e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkvpEsCRBK7hj4Ov3rIwAAdXAIAJ1FN9248eQ9rDJeeK+MvybP
GEQy2qCeQZjFuQgaR5thrpX9vMjCAYvY1Urnh0KMwAAEPyRz8Ip0FvyMUSXuH0b5
4vtw30oE0Q+2YdnDXY4e5pUMgN6Kn46ch95QsSPoShsJ6uwcjbcSUF5MIo2RGmxY
20E4ImqxvtSPOHYgRHewnSClbc0zNQchvpkdeJJX/r0gRpxHRCHzi9upLgjpF5NU
CwABWbaM2AlqWAhBMaWt5rnjaUlceTQUAY1a19FrxMq85b9aFzMnYiVhG8wJ9uuo
GTzQFPAUL+QEDkasa3nL8292VIsFOXijqFj1u222s+6vDKVhwZdY7C6r57cUD5A=
=7lwf
-----END PGP SIGNATURE-----
payloadX,  tree 27db157b1fcdb4f436cc7b56b5e59ad9daf96450
parent 031cf862dff7fed53bbfb12f4609fd62b68769b2
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1690210604 -0700
committer GitHub <noreply@github.com> 1690210604 +0000

Excavator:  Update Undertow Server Version Pins (#6635)

 uuj.  ^https://api.github.com/repos/palantir/atlasdb/commits/01e15d4e137d34495e6f00820689da84865d263ehtml_urlShttps://github.com/palantir/atlasdb/commit/01e15d4e137d34495e6f00820689da84865d263ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/01e15d4e137d34495e6f00820689da84865d263e/commentsj.  }(loginsvc-excavator-botidJj.  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j.  .https://api.github.com/users/svc-excavator-botj.  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj.  }(j.  web-flowj.  J/j.  MDQ6VXNlcjE5ODY0NDQ3j.  4https://avatars.githubusercontent.com/u/19864447?v=4j.  h5j.  %https://api.github.com/users/web-flowj.  https://github.com/web-flowj.  /https://api.github.com/users/web-flow/followersj.  <https://api.github.com/users/web-flow/following{/other_user}j.  5https://api.github.com/users/web-flow/gists{/gist_id}j.  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j.  3https://api.github.com/users/web-flow/subscriptionsj.  *https://api.github.com/users/web-flow/orgsj.  +https://api.github.com/users/web-flow/reposj.  6https://api.github.com/users/web-flow/events{/privacy}j.  5https://api.github.com/users/web-flow/received_eventsj.  Userj.  uparents]}(j.  (031cf862dff7fed53bbfb12f4609fd62b68769b2j.  ^https://api.github.com/repos/palantir/atlasdb/commits/031cf862dff7fed53bbfb12f4609fd62b68769b2j.  Shttps://github.com/palantir/atlasdb/commit/031cf862dff7fed53bbfb12f4609fd62b68769b2uastats}(totalK	additionsK	deletionsKufiles](}(j.  (0e3179989ede29f92bc5bce81cd23ace6ba42d17filename
versions.lockstatusmodifiedj/  Kj/  KchangesKblob_url_https://github.com/palantir/atlasdb/blob/01e15d4e137d34495e6f00820689da84865d263e/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/01e15d4e137d34495e6f00820689da84865d263e/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=01e15d4e137d34495e6f00820689da84865d263epatchXT  @@ -186,7 +186,7 @@ io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf
 io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
-io.undertow:undertow-core:2.2.25.Final (2 constraints: 331dfa06)
+io.undertow:undertow-core:2.2.24.Final (2 constraints: 321db506)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)u}(j.  (3ac0cb3acdc90040bcd03d3af504bcb446e9204aj/  versions.propsj	/  modifiedj/  Kj/  Kj/  Kj/  `https://github.com/palantir/atlasdb/blob/01e15d4e137d34495e6f00820689da84865d263e/versions.propsj/  _https://github.com/palantir/atlasdb/raw/01e15d4e137d34495e6f00820689da84865d263e/versions.propsj/  rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=01e15d4e137d34495e6f00820689da84865d263ej/  X'  @@ -46,7 +46,7 @@ commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
 io.netty:* = 4.1.90.Final
-io.undertow:* = 2.2.25.Final
+io.undertow:* = 2.2.24.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2ueu(63c4728f270b522a9363d04b31e83b2eb02d5f24}(sha(63c4728f270b522a9363d04b31e83b2eb02d5f24node_idEC_kwDOAjP5fdoAKDYzYzQ3MjhmMjcwYjUyMmE5MzYzZDA0YjMxZTgzYjJlYjAyZDVmMjQA      commit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-03T15:46:34Zu	committer}(j&/  GitHubj(/  noreply@github.comj*/  2023-07-03T15:46:34ZumessageX  [Antithesis | Range Queries] Part 4: Serializable Range Query Validation (#6608)

* Refactor TransactionActions to have explicitly named single cell variants

* broken tests

* Row column range read APIs

* Actually support row column range reads

* patchy patch

* add one more test

* change typing

* The Eagle has Landed

* More testing

* CR feedback

* spotless applytree}(j/  (cb106cec1be6b2c5cf5dbd9670f1ba02ce966fa2url`https://api.github.com/repos/palantir/atlasdb/git/trees/cb106cec1be6b2c5cf5dbd9670f1ba02ce966fa2uj6/  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/63c4728f270b522a9363d04b31e83b2eb02d5f24
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkou1aCRBK7hj4Ov3rIwAA9UIIAGKfq11pg9mGsPrMVWeZHi+B
BlX+Tmh1+7qgHhkEUyIfEAgh6FJH7gg9XjrBLNuMtrsQ6IpeYvweT6gKT8EHrpnV
hPzzZqQPHYLQJjkGPoZGs47KYveK+F+tqwtLZlEVU8JQ1WDoHjUNzwpb0iDqt8zM
Np7eWeL5p+QPu+f/77Sa6RjCXfHnSz83Lsz39Eo2fOJwwDGlUFrrY6YQS8D+NSx7
haV2UpDatxYvOUPrsE87JOgl+4cs4+aFHYvnOV/1MMGcWzKgohLaHH1KyIDJtdIA
29wsnD0A8bwTv5pXLHzOjafm8CZQ/MK2bb0i56LF4oXH3RaPsf6cWCXBntVEirI=
=sDaU
-----END PGP SIGNATURE-----
payloadXX  tree cb106cec1be6b2c5cf5dbd9670f1ba02ce966fa2
parent 9f563e3ef161dc54659ba5dd33d5297730966e7c
author Jeremy Kong <jkong@palantir.com> 1688399194 +0100
committer GitHub <noreply@github.com> 1688399194 +0100

[Antithesis | Range Queries] Part 4: Serializable Range Query Validation (#6608)

* Refactor TransactionActions to have explicitly named single cell variants

* broken tests

* Row column range read APIs

* Actually support row column range reads

* patchy patch

* add one more test

* change typing

* The Eagle has Landed

* More testing

* CR feedback

* spotless applyuuj6/  ^https://api.github.com/repos/palantir/atlasdb/commits/63c4728f270b522a9363d04b31e83b2eb02d5f24html_urlShttps://github.com/palantir/atlasdb/commit/63c4728f270b522a9363d04b31e83b2eb02d5f24comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/63c4728f270b522a9363d04b31e83b2eb02d5f24/commentsj$/  }(login
jeremyk-91idJZ j /  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j6/  'https://api.github.com/users/jeremyk-91jD/  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj,/  }(jI/  web-flowjK/  J/j /  MDQ6VXNlcjE5ODY0NDQ3jM/  4https://avatars.githubusercontent.com/u/19864447?v=4jO/  h5j6/  %https://api.github.com/users/web-flowjD/  https://github.com/web-flowjR/  /https://api.github.com/users/web-flow/followersjT/  <https://api.github.com/users/web-flow/following{/other_user}jV/  5https://api.github.com/users/web-flow/gists{/gist_id}jX/  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jZ/  3https://api.github.com/users/web-flow/subscriptionsj\/  *https://api.github.com/users/web-flow/orgsj^/  +https://api.github.com/users/web-flow/reposj`/  6https://api.github.com/users/web-flow/events{/privacy}jb/  5https://api.github.com/users/web-flow/received_eventsjd/  Userjf/  uparents]}(j/  (9f563e3ef161dc54659ba5dd33d5297730966e7cj6/  ^https://api.github.com/repos/palantir/atlasdb/commits/9f563e3ef161dc54659ba5dd33d5297730966e7cjD/  Shttps://github.com/palantir/atlasdb/commit/9f563e3ef161dc54659ba5dd33d5297730966e7cuastats}(totalM	additionsM	deletionsKufiles](}(j/  (78bcc16bdfdda15e4755fae24de94221f4434855filenameatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedRowColumnRangeReadTransactionAction.javastatusaddedj/  K+j/  K changesK+blob_urlhttps://github.com/palantir/atlasdb/blob/63c4728f270b522a9363d04b31e83b2eb02d5f24/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/63c4728f270b522a9363d04b31e83b2eb02d5f24/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.javacontents_urlX  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.java?ref=63c4728f270b522a9363d04b31e83b2eb02d5f24patchX&  @@ -0,0 +1,43 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedRowColumnRangeReadTransactionAction extends InvalidWitnessedTransactionAction {
+    WitnessedRowColumnRangeReadTransactionAction witness();
+
+    List<ColumnValue> expectedColumnsAndValues();
+
+    @Value.Check
+    default void check() {
+        Preconditions.checkState(
+                !expectedColumnsAndValues().equals(witness().columnsAndValues()),
+                "If the witness and expected columns and values match, this should not be an invalid action",
+                SafeArg.of("witnessedColumnsAndValues", witness().columnsAndValues()),
+                SafeArg.of("expectedColumnsAndValues", expectedColumnsAndValues()));
+    }
+
+    static ImmutableInvalidWitnessedRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableInvalidWitnessedRowColumnRangeReadTransactionAction.builder();
+    }
+}u}(j/  (4c7f8532708ff0c28bb96abdd924c2e935a0a455j/  hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj/  modifiedj/  K
j/  Kj/  Kj/  https://github.com/palantir/atlasdb/blob/63c4728f270b522a9363d04b31e83b2eb02d5f24/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj/  https://github.com/palantir/atlasdb/raw/63c4728f270b522a9363d04b31e83b2eb02d5f24/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj/  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=63c4728f270b522a9363d04b31e83b2eb02d5f24j/  X  @@ -16,8 +16,12 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.RangeQueryReader;
+import com.palantir.atlasdb.workload.transaction.SimpleRangeQueryReader;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
@@ -60,6 +64,7 @@ private static final class SerializableInvariantVisitor
             implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
 
         private final InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        private final RangeQueryReader rangeQueryReader = SimpleRangeQueryReader.create(inMemoryTransactionReplayer);
 
         @Override
         public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
@@ -94,7 +99,14 @@ public Optional<InvalidWitnessedTransactionAction> visit(
         @Override
         public Optional<InvalidWitnessedTransactionAction> visit(
                 WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
-            // TODO (jkong): Not implemented yet
+            List<ColumnValue> expectedReads =
+                    rangeQueryReader.readRange(rowColumnRangeReadTransactionAction.originalQuery());
+            if (!expectedReads.equals(rowColumnRangeReadTransactionAction.columnsAndValues())) {
+                return Optional.of(InvalidWitnessedRowColumnRangeReadTransactionAction.builder()
+                        .witness(rowColumnRangeReadTransactionAction)
+                        .expectedColumnsAndValues(expectedReads)
+                        .build());
+            }
             return Optional.empty();
         }
     }u}(j/  (a8e93ad88b71640602cbfdc37f9d5086290fbe6dj/  eatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/RangeQueryReader.javaj/  addedj/  Kj/  K j/  Kj/  https://github.com/palantir/atlasdb/blob/63c4728f270b522a9363d04b31e83b2eb02d5f24/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.javaj/  https://github.com/palantir/atlasdb/raw/63c4728f270b522a9363d04b31e83b2eb02d5f24/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.javaj/  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.java?ref=63c4728f270b522a9363d04b31e83b2eb02d5f24j/  X  @@ -0,0 +1,24 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import java.util.List;
+
+public interface RangeQueryReader {
+    List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction);
+}u}(j/  (599f2bf4f9d6f0c2f5ccb34ad02843ac95a3c7edj/  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReader.javaj/  addedj/  KJj/  K j/  KJj/  https://github.com/palantir/atlasdb/blob/63c4728f270b522a9363d04b31e83b2eb02d5f24/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj/  https://github.com/palantir/atlasdb/raw/63c4728f270b522a9363d04b31e83b2eb02d5f24/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj/  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.java?ref=63c4728f270b522a9363d04b31e83b2eb02d5f24j/  X+
  @@ -0,0 +1,74 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.Optional;
+import java.util.function.Supplier;
+
+public final class SimpleRangeQueryReader implements RangeQueryReader {
+    private static final SafeLogger log = SafeLoggerFactory.get(SimpleRangeQueryReader.class);
+
+    private static final int LARGE_HISTORY_LIMIT = 30_000;
+
+    private final Supplier<Map<TableAndWorkloadCell, Optional<Integer>>> rawValueSupplier;
+
+    @VisibleForTesting
+    SimpleRangeQueryReader(Supplier<Map<TableAndWorkloadCell, Optional<Integer>>> rawValueSupplier) {
+        this.rawValueSupplier = rawValueSupplier;
+    }
+
+    public static RangeQueryReader create(InMemoryTransactionReplayer replayer) {
+        return new SimpleRangeQueryReader(replayer::getValues);
+    }
+
+    @Override
+    public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction) {
+        Map<TableAndWorkloadCell, Optional<Integer>> allValues = rawValueSupplier.get();
+        if (allValues.size() > LARGE_HISTORY_LIMIT) {
+            log.error(
+                    "Attempted to do range queries in a simple way, even though the history is large ({} entries)! If"
+                        + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
+                        + " efficient range query implementation.",
+                    SafeArg.of("size", allValues.size()));
+        }
+        return allValues
+                .filterKeys(tableAndWorkloadCell -> {
+                    if (!tableAndWorkloadCell.tableName().equals(readTransactionAction.table())) {
+                        return false;
+                    }
+                    if (tableAndWorkloadCell.cell().key() != readTransactionAction.row()) {
+                        return false;
+                    }
+                    return readTransactionAction
+                            .columnRangeSelection()
+                            .contains(tableAndWorkloadCell.cell().column());
+                })
+                .filterValues(Optional::isPresent)
+                .mapValues(Optional::get)
+                .map(entry -> ColumnValue.of(entry._1().cell().column(), entry._2()))
+                .sortBy(ColumnValue::column)
+                .toJavaList();
+    }
+}u}(j/  (b63546bce1abf29ed000b790176f73d0186b4abfj/  latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj/  modifiedj/  Kj/  Kj/  Kj/  https://github.com/palantir/atlasdb/blob/63c4728f270b522a9363d04b31e83b2eb02d5f24/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj/  https://github.com/palantir/atlasdb/raw/63c4728f270b522a9363d04b31e83b2eb02d5f24/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj/  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=63c4728f270b522a9363d04b31e83b2eb02d5f24j/  X4  @@ -18,10 +18,14 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
@@ -111,11 +115,8 @@ public void catchesWriteSkew() {
                 .transactionStore(readableTransactionStore)
                 .build();
         SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
-        InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);
-
-        assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
         InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
-                Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
 
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(
@@ -155,4 +156,229 @@ public void handlesDeletes() {
         SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
         assertThat(invalidTransactions).isEmpty();
     }
+
+    @Test
+    public void readsEmptyRowRangeIfNoCellsInRange() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder()
+                                .startColumnInclusive(8888888)
+                                .build(),
+                        ImmutableList.of())
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void readsEmptyRowRangeIfNoCellsInRow() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(10, ColumnRangeSelection.builder().build(), ImmutableList.of())
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void readsRowRangeToExhaustion() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(15, 21)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void incorporatesLocalWritesIntoRowColumnRangeQueries() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .write(5, 20, 34)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(15, 21), ColumnValue.of(20, 34)))
+                .write(5, 10, 99)
+                .write(5, 13, 24)
+                .delete(5, 15)
+                .write(5, 18, 36)
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(
+                                ColumnValue.of(10, 99),
+                                ColumnValue.of(13, 24),
+                                ColumnValue.of(18, 36),
+                                ColumnValue.of(20, 34)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void identifiesUnexpectedMissingCellInRowColumnRangeRead() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .write(5, 20, 34)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(20, 34)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
+                                action.expectedColumnsAndValues())
+                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(15, 21), ColumnValue.of(20, 34)));
+    }
+
+    @Test
+    public void identifiesUnexpectedAdditionalCellInRowColumnRangeRead() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 20, 34)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(15, 24), ColumnValue.of(20, 34)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
+                                action.expectedColumnsAndValues())
+                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
+    }
+
+    @Test
+    public void identifiesIncorrectCellValuesInRowColumnRangeRead() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 20, 34)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnValue.of(10, 8888888), ColumnValue.of(20, 34)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
+                                action.expectedColumnsAndValues())
+                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
+    }
+
+    @Test
+    public void identifiesIncorrectOrderingInRowColumnRangeRead() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 20, 34)
+                .write(5, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnValue.of(20, 34), ColumnValue.of(10, 15)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
+                                action.expectedColumnsAndValues())
+                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
+    }
+
+    private static InvalidWitnessedTransactionAction getSingularFinalInvalidAction(
+            List<InvalidWitnessedTransaction> invalidTransactions, List<WitnessedTransaction> transactions) {
+        InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);
+
+        assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
+        return Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
+    }
 }u}(j/  (3a7aebde56bb23390c1e2c8534beaae39c6e3ab4j/  oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReaderTest.javaj/  addedj/  K^j/  K j/  K^j/  https://github.com/palantir/atlasdb/blob/63c4728f270b522a9363d04b31e83b2eb02d5f24/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj/  https://github.com/palantir/atlasdb/raw/63c4728f270b522a9363d04b31e83b2eb02d5f24/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj/  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.java?ref=63c4728f270b522a9363d04b31e83b2eb02d5f24j/  X@  @@ -0,0 +1,94 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.Optional;
+import org.junit.Test;
+
+public class SimpleRangeQueryReaderTest {
+    private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> valueMap =
+            StructureHolder.create(HashMap::empty);
+    private final SimpleRangeQueryReader reader = new SimpleRangeQueryReader(valueMap::getSnapshot);
+
+    @Test
+    public void doesNotReadCellsFromDifferentTable() {
+        valueMap.with(map -> map.put(
+                TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
+                Optional.of(WorkloadTestHelpers.VALUE_ONE)));
+        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_2)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                        .columnRangeSelection(ColumnRangeSelection.all())
+                        .build()))
+                .isEmpty();
+    }
+
+    @Test
+    public void doesNotReadCellsFromDifferentRow() {
+        valueMap.with(map -> map.put(
+                TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
+                Optional.of(WorkloadTestHelpers.VALUE_ONE)));
+        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
+                        .columnRangeSelection(ColumnRangeSelection.builder().build())
+                        .build()))
+                .isEmpty();
+    }
+
+    @Test
+    public void readsCellsFromRangeInOrder() {
+        for (int column = 0; column < 10; column++) {
+            int finalColumn = column;
+            valueMap.with(map -> map.put(
+                    TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, ImmutableWorkloadCell.of(1, finalColumn)),
+                    Optional.of(WorkloadTestHelpers.VALUE_ONE)));
+        }
+        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(1)
+                        .columnRangeSelection(ColumnRangeSelection.builder()
+                                .startColumnInclusive(2)
+                                .endColumnExclusive(4)
+                                .build())
+                        .build()))
+                .containsExactly(
+                        ColumnValue.of(2, WorkloadTestHelpers.VALUE_ONE),
+                        ColumnValue.of(3, WorkloadTestHelpers.VALUE_ONE));
+    }
+
+    @Test
+    public void doesNotReturnExplicitlyEmptyValues() {
+        valueMap.with(map -> map.put(
+                TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
+                Optional.empty()));
+        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                        .columnRangeSelection(ColumnRangeSelection.all())
+                        .build()))
+                .isEmpty();
+    }
+}u}(j/  (9a0127534a3d94444fd74526c1be680a9eff55a3j/  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj/  modifiedj/  Kj/  K j/  Kj/  https://github.com/palantir/atlasdb/blob/63c4728f270b522a9363d04b31e83b2eb02d5f24/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj/  https://github.com/palantir/atlasdb/raw/63c4728f270b522a9363d04b31e83b2eb02d5f24/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj/  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=63c4728f270b522a9363d04b31e83b2eb02d5f24j/  X  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
@@ -91,6 +92,17 @@ public WitnessedTransactionBuilder delete(Integer row, Integer column) {
             return this;
         }
 
+        public WitnessedTransactionBuilder rowColumnRangeRead(
+                Integer row, ColumnRangeSelection columnRangeSelection, List<ColumnValue> valuesRead) {
+            RowColumnRangeReadTransactionAction transactionAction = RowColumnRangeReadTransactionAction.builder()
+                    .table(table)
+                    .row(row)
+                    .columnRangeSelection(columnRangeSelection)
+                    .build();
+            actions.add(transactionAction.witness(valuesRead));
+            return this;
+        }
+
         public WitnessedTransactionsBuilder endTransaction() {
             Optional<Long> commitTimestamp =
                     needsCommitTimestamp ? Optional.of(timestampCounter.incrementAndGet()) : Optional.empty();ueu(424eaa5ff4a739dbe0807495c7bfcc316c2d7868}(sha(424eaa5ff4a739dbe0807495c7bfcc316c2d7868node_idEC_kwDOAjP5fdoAKDQyNGVhYTVmZjRhNzM5ZGJlMDgwNzQ5NWM3YmZjYzMxNmMyZDc4Njgcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-23T12:47:59Zu	committer}(j/  
Sam Kramerj/  skramer@palantir.comj/  2023-06-23T12:47:59Zumessageremove typotree}(j/  (582b0aa4441078c84edbab5c566b7107e504f40curl`https://api.github.com/repos/palantir/atlasdb/git/trees/582b0aa4441078c84edbab5c566b7107e504f40cuj/  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/424eaa5ff4a739dbe0807495c7bfcc316c2d7868
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSVlH8ACgkQmPPOpKR4
XS3DlQgAhCeIx9zg7rwoRgyjq2PRe6bNvo0zVzrPjKteueH2LJ0IIkDhNgg58yb0
QRmAsGmfdqK8mctIS4uDLD/QrhHHIUFKKNUF+6mn8N0iiagqMeedKFFYBmedP18J
ZxDYYoCb7A/JUzT7NREW2TTCkZurr8mmf3NyVjMrhdOtvTKf/dwyH+Tq1brpicfQ
PjEIP2x5GqqawoP9ozLPSGodszM2w1A2zHgTupLMPd885pwXHb4vPQDFj525ZqOI
yw14UVaItUkcv6bNsgylocFRyg0TshUo74jBmfpVn2gGKgtLOaOsBIIocz0zx3B2
i++vLRhr+mU3qiKYcj2401zzaz4ncA==
=n12x
-----END PGP SIGNATURE-----payloadtree 582b0aa4441078c84edbab5c566b7107e504f40c
parent 7ad8c3c238e29fe892676dc377e356481d3fd67f
author Sam Kramer <skramer@palantir.com> 1687524479 +0100
committer Sam Kramer <skramer@palantir.com> 1687524479 +0100

remove typo
uuj/  ^https://api.github.com/repos/palantir/atlasdb/commits/424eaa5ff4a739dbe0807495c7bfcc316c2d7868html_urlShttps://github.com/palantir/atlasdb/commit/424eaa5ff4a739dbe0807495c7bfcc316c2d7868comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/424eaa5ff4a739dbe0807495c7bfcc316c2d7868/commentsj/  }(login
Sam-KrameridJ^2_ j/  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j/  'https://api.github.com/users/Sam-Kramerj/  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj/  }(j/  
Sam-Kramerj/  J^2_ j/  MDQ6VXNlcjYyMzg4MTQ=j/  3https://avatars.githubusercontent.com/u/6238814?v=4j/  h5j/  'https://api.github.com/users/Sam-Kramerj/  https://github.com/Sam-Kramerj/  1https://api.github.com/users/Sam-Kramer/followersj/  >https://api.github.com/users/Sam-Kramer/following{/other_user}j/  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j/  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j0  5https://api.github.com/users/Sam-Kramer/subscriptionsj0  ,https://api.github.com/users/Sam-Kramer/orgsj0  -https://api.github.com/users/Sam-Kramer/reposj0  8https://api.github.com/users/Sam-Kramer/events{/privacy}j	0  7https://api.github.com/users/Sam-Kramer/received_eventsj0  Userj
0  uparents]}(j/  (7ad8c3c238e29fe892676dc377e356481d3fd67fj/  ^https://api.github.com/repos/palantir/atlasdb/commits/7ad8c3c238e29fe892676dc377e356481d3fd67fj/  Shttps://github.com/palantir/atlasdb/commit/7ad8c3c238e29fe892676dc377e356481d3fd67fuastats}(totalK	additionsK	deletionsKufiles]}(j/  (5a5556860449da126adc5f8a0981453e801987cafilename1atlasdb-workload-server-antithesis/var/compact.shstatusmodifiedj'0  Kj(0  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/424eaa5ff4a739dbe0807495c7bfcc316c2d7868/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shraw_urlhttps://github.com/palantir/atlasdb/raw/424eaa5ff4a739dbe0807495c7bfcc316c2d7868/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.sh?ref=424eaa5ff4a739dbe0807495c7bfcc316c2d7868patch@@ -16,4 +16,4 @@
 # limitations under the License.
 #
 
-podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool compact'¡
\ No newline at end of file
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool compact'
\ No newline at end of fileuau(4660bd7ba06860ed5062c0351253682bfd1a3704}(sha(4660bd7ba06860ed5062c0351253682bfd1a3704node_idEC_kwDOAjP5fdoAKDQ2NjBiZDdiYTA2ODYwZWQ1MDYyYzAzNTEyNTM2ODJiZmQxYTM3MDQcommit}(author}(nameMichael Wintermeyeremailmichaelw@palantir.comdate2023-01-20T15:18:45Zu	committer}(jD0  Michael WintermeyerjF0  michaelw@palantir.comjH0  2023-03-17T00:25:17Zumessage Add getActiveNamespaces endpointtree}(j<0  (aec7800c4b2d7437524443b7ef892c56500a4917url`https://api.github.com/repos/palantir/atlasdb/git/trees/aec7800c4b2d7437524443b7ef892c56500a4917ujT0  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4660bd7ba06860ed5062c0351253682bfd1a3704
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE8lX9sA3B6yGcd/5kEyeP7w0U/hEFAmQTs20ACgkQEyeP7w0U
/hGQyggAlijnqvOqfCaS95QJXBeQKdhrMI91+s3fhlxlDrOp6oC2xrsPfDPbjgwu
AOWyNrRTE3JLwVp0alFhaIfS+EPHkvHOAG/MjDkyNkrJGvSSVHt9r/rdo/Flm6T5
puN/xgmJRbF9zmuH3SsABfYvujGlONpqJQuDwWEY6EGWUksBavcCyQp/bGB0KsDb
6fl239r1orLZ8ckj6QyT6vrOG+HTJaUVl7pRFypZWOIXXrEK+zzxgOdwmfQK8wZI
O/i9xB+fnDWqzH5qPLZsSDBa1Qnu85BKxMUnMZt55rwwD9CwK23eQmf4haOUDDoK
mMhkoRtIelG95EhnQLdc3xjssHDIfw==
=yzKi
-----END PGP SIGNATURE-----payloadX  tree aec7800c4b2d7437524443b7ef892c56500a4917
parent 82c974208a8c9b802173e8cfe1ee01a349c12e2c
author Michael Wintermeyer <michaelw@palantir.com> 1674227925 -0500
committer Michael Wintermeyer <michaelw@palantir.com> 1679012717 -0400

Add getActiveNamespaces endpoint
uujT0  ^https://api.github.com/repos/palantir/atlasdb/commits/4660bd7ba06860ed5062c0351253682bfd1a3704html_urlShttps://github.com/palantir/atlasdb/commit/4660bd7ba06860ed5062c0351253682bfd1a3704comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4660bd7ba06860ed5062c0351253682bfd1a3704/commentsjB0  }(login
mswintermeyeridJX% j>0  MDQ6VXNlcjI0MzIwODg=
avatar_url3https://avatars.githubusercontent.com/u/2432088?v=4gravatar_idh5jT0  *https://api.github.com/users/mswintermeyerjb0   https://github.com/mswintermeyer
followers_url4https://api.github.com/users/mswintermeyer/followers
following_urlAhttps://api.github.com/users/mswintermeyer/following{/other_user}	gists_url:https://api.github.com/users/mswintermeyer/gists{/gist_id}starred_urlAhttps://api.github.com/users/mswintermeyer/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/mswintermeyer/subscriptionsorganizations_url/https://api.github.com/users/mswintermeyer/orgs	repos_url0https://api.github.com/users/mswintermeyer/repos
events_url;https://api.github.com/users/mswintermeyer/events{/privacy}received_events_url:https://api.github.com/users/mswintermeyer/received_eventstypeUser
site_adminujJ0  }(jg0  
mswintermeyerji0  JX% j>0  MDQ6VXNlcjI0MzIwODg=jk0  3https://avatars.githubusercontent.com/u/2432088?v=4jm0  h5jT0  *https://api.github.com/users/mswintermeyerjb0   https://github.com/mswintermeyerjp0  4https://api.github.com/users/mswintermeyer/followersjr0  Ahttps://api.github.com/users/mswintermeyer/following{/other_user}jt0  :https://api.github.com/users/mswintermeyer/gists{/gist_id}jv0  Ahttps://api.github.com/users/mswintermeyer/starred{/owner}{/repo}jx0  8https://api.github.com/users/mswintermeyer/subscriptionsjz0  /https://api.github.com/users/mswintermeyer/orgsj|0  0https://api.github.com/users/mswintermeyer/reposj~0  ;https://api.github.com/users/mswintermeyer/events{/privacy}j0  :https://api.github.com/users/mswintermeyer/received_eventsj0  Userj0  uparents]}(j<0  (82c974208a8c9b802173e8cfe1ee01a349c12e2cjT0  ^https://api.github.com/repos/palantir/atlasdb/commits/82c974208a8c9b802173e8cfe1ee01a349c12e2cjb0  Shttps://github.com/palantir/atlasdb/commit/82c974208a8c9b802173e8cfe1ee01a349c12e2cuastats}(totalK,	additionsK(	deletionsKufiles](}(j<0  (8fd2fe20d1f63dc3cf67e6824314aa0af5ca53e5filename9timelock-api/src/main/conjure/timelock-management-api.ymlstatusmodifiedj0  Kj0  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/4660bd7ba06860ed5062c0351253682bfd1a3704/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/4660bd7ba06860ed5062c0351253682bfd1a3704/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.yml?ref=4660bd7ba06860ed5062c0351253682bfd1a3704patchX  @@ -12,6 +12,13 @@ services:
           The endpoint loads all persisted namespaces. ``leaderPaxos`` is filtered out from the set
           as it is not a namespace.
 
+      getActiveNamespaces:
+        http: POST /getActiveNamespaces
+        returns: set<string>
+        docs: |
+          The endpoint loads all namespaces with new timestamps since the last restart. 
+          ``leaderPaxos`` is filtered out from the set as it is not a namespace.
+
       achieveConsensus:
         http: POST /achieveConsensus
         args:u}(j<0  (db8e543d064af243a5fbd464e34cf61ea0efd369j0  dtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/TimeLockManagementResource.javaj0  modifiedj0  Kj0  K j0  Kj0  https://github.com/palantir/atlasdb/blob/4660bd7ba06860ed5062c0351253682bfd1a3704/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.javaj0  https://github.com/palantir/atlasdb/raw/4660bd7ba06860ed5062c0351253682bfd1a3704/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.javaj0  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.java?ref=4660bd7ba06860ed5062c0351253682bfd1a3704j0  X  @@ -87,6 +87,15 @@ public static TimeLockManagementService jersey(
                 persistentNamespaceContext, timelockNamespaces, redirectRetryTargeter, serviceLifecycleController));
     }
 
+    @Override
+    public ListenableFuture<Set<String>> getActiveNamespaces(AuthHeader authHeader) {
+        // This endpoint is not used frequently (only called by migration cli), so it's okay to NOT make it async.
+        return Futures.immediateFuture(timelockNamespaces.getActiveClients().stream()
+                .map(Client::value)
+                .filter(value -> !value.equals(PaxosTimeLockConstants.LEADER_PAXOS_NAMESPACE))
+                .collect(Collectors.toSet()));
+    }
+
     @Override
     public ListenableFuture<Set<String>> getNamespaces(AuthHeader authHeader) {
         // This endpoint is not used frequently (only called by migration cli), so it's okay to NOT make it async.
@@ -158,6 +167,11 @@ public Set<String> getNamespaces(AuthHeader authHeader) {
             return unwrap(resource.getNamespaces(authHeader));
         }
 
+        @Override
+        public Set<String> getActiveNamespaces(AuthHeader authHeader) {
+            return unwrap(resource.getActiveNamespaces(authHeader));
+        }
+
         @Override
         public void achieveConsensus(AuthHeader authHeader, Set<String> namespaces) {
             unwrap(resource.achieveConsensus(authHeader, namespaces));u}(j<0  (5704a16e512d491c2e0bf73bfe07097eefb660f4j0  qtimelock-server/src/suiteTest/java/com/palantir/atlasdb/timelock/MultiNodePaxosTimeLockServerIntegrationTest.javaj0  modifiedj0  Kj0  Kj0  Kj0  https://github.com/palantir/atlasdb/blob/4660bd7ba06860ed5062c0351253682bfd1a3704/timelock-server%2Fsrc%2FsuiteTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FMultiNodePaxosTimeLockServerIntegrationTest.javaj0  https://github.com/palantir/atlasdb/raw/4660bd7ba06860ed5062c0351253682bfd1a3704/timelock-server%2Fsrc%2FsuiteTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FMultiNodePaxosTimeLockServerIntegrationTest.javaj0  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FsuiteTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FMultiNodePaxosTimeLockServerIntegrationTest.java?ref=4660bd7ba06860ed5062c0351253682bfd1a3704j0  X  @@ -340,6 +340,8 @@ public void canGetAllNamespaces() {
 
         Set<String> knownNamespaces = getKnownNamespaces();
         assertThat(knownNamespaces).contains(randomNamespace);
+        Set<String> activeNamespaces = getActiveNamespaces();
+        assertThat(activeNamespaces).contains(randomNamespace);
 
         for (TestableTimelockServer server : cluster.servers()) {
             server.killSync();
@@ -349,10 +351,15 @@ public void canGetAllNamespaces() {
         cluster.waitUntilAllServersOnlineAndReadyToServeNamespaces(
                 ImmutableList.of(cluster.clientForRandomNamespace().namespace()));
 
-        Set<String> namespacesAfterRestart = getKnownNamespaces();
-        assertThat(namespacesAfterRestart).contains(randomNamespace);
-        assertThat(namespacesAfterRestart).doesNotContain("learner", "acceptor");
-        assertThat(Sets.difference(knownNamespaces, namespacesAfterRestart)).isEmpty();
+        Set<String> knownNamespacesAfterRestart = getKnownNamespaces();
+        assertThat(knownNamespacesAfterRestart).contains(randomNamespace);
+        assertThat(knownNamespacesAfterRestart).contains(randomNamespace);
+        assertThat(knownNamespacesAfterRestart).doesNotContain("learner", "acceptor");
+        assertThat(Sets.difference(knownNamespaces, knownNamespacesAfterRestart))
+                .isEmpty();
+
+        Set<String> activeNamespacesAfterRestart = getActiveNamespaces();
+        assertThat(activeNamespacesAfterRestart).doesNotContain(randomNamespace);
     }
 
     private Set<String> getKnownNamespaces() {
@@ -363,6 +370,14 @@ private Set<String> getKnownNamespaces() {
                 .collect(Collectors.toSet());
     }
 
+    private Set<String> getActiveNamespaces() {
+        return cluster.servers().stream()
+                .map(TestableTimelockServer::timeLockManagementService)
+                .map(resource -> resource.getActiveNamespaces(AuthHeader.valueOf("Bearer omitted")))
+                .flatMap(Set::stream)
+                .collect(Collectors.toSet());
+    }
+
     @Test
     public void directLegacyAndConjureLockServicesInteractCorrectly() throws InterruptedException {
         LockRefreshToken token = client.legacyLockService()ueu(081511c27837c3dc934a43d4fcf069fd998bbf5b}(sha(081511c27837c3dc934a43d4fcf069fd998bbf5bnode_idEC_kwDOAjP5fdoAKDA4MTUxMWMyNzgzN2MzZGM5MzRhNDNkNGZjZjA2OWZkOTk4YmJmNWIcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-12T15:38:36Zu	committer}(j0  Lucas Meirelesj0  meireles31@msn.comj0  2023-06-12T15:38:36Zumessagebetter commenttree}(j0  (776a3c95c8e6faaf32fe5ccc52df32da38bc2bacurl`https://api.github.com/repos/palantir/atlasdb/git/trees/776a3c95c8e6faaf32fe5ccc52df32da38bc2bacuj0  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/081511c27837c3dc934a43d4fcf069fd998bbf5b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSHO/wACgkQJd22kJ7J
Giwicwf/e7xK9Ztzn7QnMLKb3Pqpsde3HkZbSngmwJfKnvH+hyT/7eWicmaD7Mse
IBLed8SCSlXjw+S5RneW6R/aGCvGDlGaiVrOU+7Vp9Is4zvDbx5IZHpSSXAvC1I9
YXUkOkuUuMGth65gfjfgOHEJTbSHy5m3Hd31JhhM1HyoyFMPClEc3xpsTVqu4C3K
eCKkUFJvOCpJlHxo33Y4+EjF/qb/dLz1GeOBVgKqy/HuMZ2EcnYPk++yAv9ux6lG
GhF5p8CDLeb0jlYqhtnnWnIus5hbI3g+hKhZx6cj5MEELS7DKoAXMzEEST72vqT/
INd11HMInQVFzkH9O0IR1L9jPXTWtA==
=mmXH
-----END PGP SIGNATURE-----payloadtree 776a3c95c8e6faaf32fe5ccc52df32da38bc2bac
parent 6ea0bbaf45f90805c37c71061f5b39a4d813bea8
author Lucas Meireles <meireles31@msn.com> 1686584316 +0100
committer Lucas Meireles <meireles31@msn.com> 1686584316 +0100

better comment
uuj0  ^https://api.github.com/repos/palantir/atlasdb/commits/081511c27837c3dc934a43d4fcf069fd998bbf5bhtml_urlShttps://github.com/palantir/atlasdb/commit/081511c27837c3dc934a43d4fcf069fd998bbf5bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/081511c27837c3dc934a43d4fcf069fd998bbf5b/commentsj0  }(loginLucasIMEidJg j0  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j0  %https://api.github.com/users/LucasIMEj0  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj0  }(j0  LucasIMEj0  Jg j0  MDQ6VXNlcjY3ODczMTE=j0  3https://avatars.githubusercontent.com/u/6787311?v=4j0  h5j0  %https://api.github.com/users/LucasIMEj0  https://github.com/LucasIMEj0  /https://api.github.com/users/LucasIME/followersj0  <https://api.github.com/users/LucasIME/following{/other_user}j0  5https://api.github.com/users/LucasIME/gists{/gist_id}j0  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j0  3https://api.github.com/users/LucasIME/subscriptionsj1  *https://api.github.com/users/LucasIME/orgsj1  +https://api.github.com/users/LucasIME/reposj1  6https://api.github.com/users/LucasIME/events{/privacy}j1  5https://api.github.com/users/LucasIME/received_eventsj	1  Userj1  uparents]}(j0  (6ea0bbaf45f90805c37c71061f5b39a4d813bea8j0  ^https://api.github.com/repos/palantir/atlasdb/commits/6ea0bbaf45f90805c37c71061f5b39a4d813bea8j0  Shttps://github.com/palantir/atlasdb/commit/6ea0bbaf45f90805c37c71061f5b39a4d813bea8uastats}(totalK	additionsK	deletionsKufiles]}(j0  (54ee23180f822c959cd1208eedc1c3c18676c4bffilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj%1  Kj&1  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/081511c27837c3dc934a43d4fcf069fd998bbf5b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/081511c27837c3dc934a43d4fcf069fd998bbf5b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=081511c27837c3dc934a43d4fcf069fd998bbf5bpatchX  @@ -441,7 +441,7 @@ private NavigableMap<byte[], RowResult<byte[]>> getRowsInternal(
         validatePreCommitRequirementsOnReadIfNecessary(
                 tableRef,
                 getStartTimestamp(),
-                true /* can't skip lock check as we don't know how many columns we're fetching */);
+                true /* can't skip lock check as we don't know how many cells to expect for the column selection */);
         return results;
     }
 uau(a64e4dcad03a212e0b49672fb1c4733f11730c1a}(sha(a64e4dcad03a212e0b49672fb1c4733f11730c1anode_idEC_kwDOAjP5fdoAKGE2NGU0ZGNhZDAzYTIxMmUwYjQ5NjcyZmIxYzQ3MzNmMTE3MzBjMWEcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-25T12:47:06Zu	committer}(jB1  
Ahmed AlouanejD1  aalouane@palantir.comjF1  2023-05-25T12:47:06ZumessagehMerge branch 'aalouane/tex/reportMetrics' of github.com:palantir/atlasdb into aalouane/tex/reportMetricstree}(j:1  (4ca192649834be493c74416d63b44fd9b7236f2eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/4ca192649834be493c74416d63b44fd9b7236f2eujR1  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a64e4dcad03a212e0b49672fb1c4733f11730c1a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRvWWQACgkQPlMHVIT1
yhrOawf/U8vPrt3yolg49STdlHYGLieIq7FvUHKiu/KImlvuWVMLBvaGzeVgb7Ld
s+MKqKE58U9ev40asBRNrK5xNZMe+viG+mqFgJyixPtER2NsjQ+ad/wPxAFBlzWO
qSp3OI+6nyJv9InFcm5aYlXfeq+2d9ZCr/U9cqxjaVJ6ffwikJsYosTWVqQIyqOY
rMHkUWbdaVLu7FIkFTF4dEHLOpy0cngWGs9ZEv60gIV3MabomP2qHxv53+EsMRXj
6kMhCGUMbXJIeAxl+SGb8cPgPrL/VFTX7oNu3LwuJGuphKzMnk/93h/VN8LYRoq6
F27WM60ZpPNA1mp2ziC5nrUMDDkQkA==
=WKpl
-----END PGP SIGNATURE-----payloadXw  tree 4ca192649834be493c74416d63b44fd9b7236f2e
parent ede77397056bd705464e548168bd95407c287a9c
parent da6069d1c463d725ddea27f27ce1503f05e08bee
author Ahmed Alouane <aalouane@palantir.com> 1685018826 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1685018826 +0100

Merge branch 'aalouane/tex/reportMetrics' of github.com:palantir/atlasdb into aalouane/tex/reportMetrics
uujR1  ^https://api.github.com/repos/palantir/atlasdb/commits/a64e4dcad03a212e0b49672fb1c4733f11730c1ahtml_urlShttps://github.com/palantir/atlasdb/commit/a64e4dcad03a212e0b49672fb1c4733f11730c1acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a64e4dcad03a212e0b49672fb1c4733f11730c1a/commentsj@1  }(loginergo14idJj<1  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jR1  #https://api.github.com/users/ergo14j`1  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujH1  }(je1  ergo14jg1  Jj<1  MDQ6VXNlcjMwOTAzNzM2ji1  4https://avatars.githubusercontent.com/u/30903736?v=4jk1  h5jR1  #https://api.github.com/users/ergo14j`1  https://github.com/ergo14jn1  -https://api.github.com/users/ergo14/followersjp1  :https://api.github.com/users/ergo14/following{/other_user}jr1  3https://api.github.com/users/ergo14/gists{/gist_id}jt1  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jv1  1https://api.github.com/users/ergo14/subscriptionsjx1  (https://api.github.com/users/ergo14/orgsjz1  )https://api.github.com/users/ergo14/reposj|1  4https://api.github.com/users/ergo14/events{/privacy}j~1  3https://api.github.com/users/ergo14/received_eventsj1  Userj1  uparents](}(j:1  (ede77397056bd705464e548168bd95407c287a9cjR1  ^https://api.github.com/repos/palantir/atlasdb/commits/ede77397056bd705464e548168bd95407c287a9cj`1  Shttps://github.com/palantir/atlasdb/commit/ede77397056bd705464e548168bd95407c287a9cu}(j:1  (da6069d1c463d725ddea27f27ce1503f05e08beejR1  ^https://api.github.com/repos/palantir/atlasdb/commits/da6069d1c463d725ddea27f27ce1503f05e08beej`1  Shttps://github.com/palantir/atlasdb/commit/da6069d1c463d725ddea27f27ce1503f05e08beeuestats}(totalK	additionsK	deletionsK ufiles]}(j:1  (b92e0f6636b00a68d6b900daa1da10ff5cbb9a1efilename$changelog/@unreleased/pr-6595.v2.ymlstatusaddedj1  Kj1  K changesKblob_url|https://github.com/palantir/atlasdb/blob/a64e4dcad03a212e0b49672fb1c4733f11730c1a/changelog%2F%40unreleased%2Fpr-6595.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/a64e4dcad03a212e0b49672fb1c4733f11730c1a/changelog%2F%40unreleased%2Fpr-6595.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6595.v2.yml?ref=a64e4dcad03a212e0b49672fb1c4733f11730c1apatch@@ -0,0 +1,5 @@
+type: feature
+feature:
+  description: '[TEX] Report transaction level metrics'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6595uau(16f56f1aea2b94ff4880c17e8a5d152b085dff40}(sha(16f56f1aea2b94ff4880c17e8a5d152b085dff40node_idEC_kwDOAjP5fdoAKDE2ZjU2ZjFhZWEyYjk0ZmY0ODgwYzE3ZThhNWQxNTJiMDg1ZGZmNDAcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-07-26T18:11:45Zu	committer}(j1  GitHubj1  noreply@github.comj1  2023-07-26T18:11:45Zumessage;Excavator:  Update conjure plugins and dependencies (#6638)tree}(j1  (48bd7a02bc5658e329de9ab1b352eb66d3568d9furl`https://api.github.com/repos/palantir/atlasdb/git/trees/48bd7a02bc5658e329de9ab1b352eb66d3568d9fuj1  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/16f56f1aea2b94ff4880c17e8a5d152b085dff40
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkwWHhCRBK7hj4Ov3rIwAAkfQIADF9uLO2n8F7sVSeBtXPFZN6
P8R6S4kFf4bbmFk8kPq+AOTiTrK+5zpgCyOST2TzSm8VpJNh03W9tsJ+PP/gmztU
1WTgh6pPvXzpQx4dBadPcivNN22nL2dVJXtIqFpvZfZcZgMJshSBGkPLTRae16oq
0uMDjEVZsJV3gqzQyP260u//0X+e8smK4kAeJS8e/Cus8KSmyvETe1RiyI9hUie5
NatsRpV88JVW+2vmm1JhI3P8eT//xwtMdRMvxEdlvUjpn0IUtdHtdAF4VKAim9kQ
9nE0OsPQeqYHMOGkia6r8n2QiVc/1adDWFPvgheiyKIDX59IAV0edWy4ZIXOm+4=
=zrRz
-----END PGP SIGNATURE-----
payloadX0  tree 48bd7a02bc5658e329de9ab1b352eb66d3568d9f
parent a22f5c5cdd00985e3f129884654c1fe4b6e70e2b
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1690395105 -0700
committer GitHub <noreply@github.com> 1690395105 +0000

Excavator:  Update conjure plugins and dependencies (#6638)

 uuj1  ^https://api.github.com/repos/palantir/atlasdb/commits/16f56f1aea2b94ff4880c17e8a5d152b085dff40html_urlShttps://github.com/palantir/atlasdb/commit/16f56f1aea2b94ff4880c17e8a5d152b085dff40comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/16f56f1aea2b94ff4880c17e8a5d152b085dff40/commentsd     j1  }(loginsvc-excavator-botidJj1  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j1  .https://api.github.com/users/svc-excavator-botj1  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj1  }(j1  web-flowj1  J/j1  MDQ6VXNlcjE5ODY0NDQ3j1  4https://avatars.githubusercontent.com/u/19864447?v=4j1  h5j1  %https://api.github.com/users/web-flowj1  https://github.com/web-flowj1  /https://api.github.com/users/web-flow/followersj1  <https://api.github.com/users/web-flow/following{/other_user}j1  5https://api.github.com/users/web-flow/gists{/gist_id}j1  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j1  3https://api.github.com/users/web-flow/subscriptionsj1  *https://api.github.com/users/web-flow/orgsj1  +https://api.github.com/users/web-flow/reposj1  6https://api.github.com/users/web-flow/events{/privacy}j1  5https://api.github.com/users/web-flow/received_eventsj1  Userj1  uparents]}(j1  (a22f5c5cdd00985e3f129884654c1fe4b6e70e2bj1  ^https://api.github.com/repos/palantir/atlasdb/commits/a22f5c5cdd00985e3f129884654c1fe4b6e70e2bj1  Shttps://github.com/palantir/atlasdb/commit/a22f5c5cdd00985e3f129884654c1fe4b6e70e2buastats}(totalK	additionsKJ	deletionsKJufiles](}(j1  (988990f8bb872675390ec90c8312f5b430bc49d8filename
versions.lockstatusmodifiedj2  KGj2  KGchangesKblob_url_https://github.com/palantir/atlasdb/blob/16f56f1aea2b94ff4880c17e8a5d152b085dff40/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/16f56f1aea2b94ff4880c17e8a5d152b085dff40/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=16f56f1aea2b94ff4880c17e8a5d152b085dff40patchXjE  @@ -8,24 +8,24 @@ com.boundary:high-scale-lib:1.0.6 (2 constraints: 9d14d4a0)
 com.clearspring.analytics:stream:2.5.2 (1 constraints: 970f7788)
 com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
-com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c38132bb)
-com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bbb5dd72)
-com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 06bad036)
-com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e233e000)
-com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7f1c9ea4)
-com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2 (4 constraints: 2244332b)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 343f76b0)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6c30915e)
-com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 322bf7af)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6c30915e)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 41197bbb)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.2 (2 constraints: 251d9309)
-com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9b1c99a6)
-com.fasterxml.jackson.module:jackson-module-blackbird:2.14.2 (1 constraints: b40e625e)
-com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 2dce2620)
+com.fasterxml.jackson.core:jackson-annotations:2.15.2 (24 constraints: c88127cc)
+com.fasterxml.jackson.core:jackson-core:2.15.2 (22 constraints: c8b5699a)
+com.fasterxml.jackson.core:jackson-databind:2.15.2 (37 constraints: 16baa088)
+com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.15.2 (2 constraints: e3333101)
+com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.15.2 (1 constraints: 7f1c9ea4)
+com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.15.2 (4 constraints: 2244332b)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.15.2 (4 constraints: 343f76b0)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.2 (3 constraints: 6c30915e)
+com.fasterxml.jackson.datatype:jackson-datatype-joda:2.15.2 (2 constraints: 322bf7af)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.2 (3 constraints: 6c30915e)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.15.2 (2 constraints: dd2ecb69)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.15.2 (1 constraints: 41197bbb)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.15.2 (2 constraints: 251d9309)
+com.fasterxml.jackson.module:jackson-module-afterburner:2.15.2 (1 constraints: 9b1c99a6)
+com.fasterxml.jackson.module:jackson-module-blackbird:2.15.2 (1 constraints: b40e625e)
+com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.15.2 (2 constraints: dd2ecb69)
+com.fasterxml.jackson.module:jackson-module-parameter-names:2.15.2 (1 constraints: b40e625e)
+com.github.ben-manes.caffeine:caffeine:3.1.6 (13 constraints: 34ce7029)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -45,11 +45,11 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f994935f)
+com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: 1595607f)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
-com.google.guava:guava:32.1.1-jre (48 constraints: 03383c24)
+com.google.guava:guava:32.1.1-jre (48 constraints: d13c9656)
 com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava (1 constraints: bd17c918)
 com.google.j2objc:j2objc-annotations:2.8 (1 constraints: be09f5a0)
 com.google.protobuf:protobuf-java:3.21.9 (1 constraints: 4105453b)
@@ -67,28 +67,28 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:7.5.0 (5 constraints: cd530c72)
-com.palantir.conjure.java:conjure-undertow-annotations:7.5.0 (1 constraints: 0e051d36)
-com.palantir.conjure.java:conjure-undertow-lib:7.5.0 (2 constraints: 1d1c4081)
-com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 3d696e70)
-com.palantir.conjure.java.api:service-config:2.34.0 (5 constraints: 724d79ca)
-com.palantir.conjure.java.api:ssl-config:2.34.0 (3 constraints: e22a0da5)
-com.palantir.conjure.java.runtime:client-config:7.45.0 (6 constraints: bd6b2133)
-com.palantir.conjure.java.runtime:conjure-java-annotations:7.45.0 (1 constraints: c6188d9e)
-com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.45.0 (2 constraints: ca210f7b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.45.0 (6 constraints: 3f6ee88e)
-com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.45.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.45.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.45.0 (1 constraints: c6188d9e)
-com.palantir.conjure.java.runtime:keystores:7.45.0 (3 constraints: 202a4c60)
-com.palantir.conjure.java.runtime:refresh-utils:7.45.0 (2 constraints: 0a1e6f45)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.78.0 (2 constraints: 83295d02)
-com.palantir.dialogue:dialogue-blocking-channels:3.78.0 (2 constraints: e32369b4)
-com.palantir.dialogue:dialogue-clients:3.78.0 (1 constraints: 4405653b)
-com.palantir.dialogue:dialogue-core:3.78.0 (3 constraints: 883d62e3)
-com.palantir.dialogue:dialogue-futures:3.78.0 (3 constraints: dd33dac0)
-com.palantir.dialogue:dialogue-serde:3.78.0 (3 constraints: c62e7fa5)
-com.palantir.dialogue:dialogue-target:3.78.0 (7 constraints: a7763c6a)
+com.palantir.conjure.java:conjure-lib:7.14.0 (5 constraints: 8754055e)
+com.palantir.conjure.java:conjure-undertow-annotations:7.14.0 (1 constraints: 3e05593b)
+com.palantir.conjure.java:conjure-undertow-lib:7.14.0 (2 constraints: 7d1cc7ae)
+com.palantir.conjure.java.api:errors:2.35.0 (6 constraints: 4269c872)
+com.palantir.conjure.java.api:service-config:2.35.0 (5 constraints: 764da6cb)
+com.palantir.conjure.java.api:ssl-config:2.35.0 (4 constraints: 983b9c6e)
+com.palantir.conjure.java.runtime:client-config:7.57.0 (6 constraints: cc6b5039)
+com.palantir.conjure.java.runtime:conjure-java-annotations:7.57.0 (1 constraints: c918979e)
+com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.57.0 (2 constraints: cd21197b)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.57.0 (6 constraints: 486ed394)
+com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.57.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.57.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.57.0 (1 constraints: c918979e)
+com.palantir.conjure.java.runtime:keystores:7.57.0 (3 constraints: 262af060)
+com.palantir.conjure.java.runtime:refresh-utils:7.57.0 (2 constraints: 0d1e7945)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.86.0 (2 constraints: 7f29c301)
+com.palantir.dialogue:dialogue-blocking-channels:3.86.0 (2 constraints: e12337b4)
+com.palantir.dialogue:dialogue-clients:3.86.0 (1 constraints: 4305633b)
+com.palantir.dialogue:dialogue-core:3.86.0 (3 constraints: 833de8e1)
+com.palantir.dialogue:dialogue-futures:3.86.0 (3 constraints: da334bc0)
+com.palantir.dialogue:dialogue-serde:3.86.0 (3 constraints: c12e6ea4)
+com.palantir.dialogue:dialogue-target:3.86.0 (7 constraints: 9e760e64)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -97,28 +97,28 @@ com.palantir.docker.proxy:docker-proxy-rule-junit4:1.6.0 (1 constraints: 0905023
 com.palantir.goethe:goethe:0.11.0 (1 constraints: 3405263b)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
-com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
-com.palantir.safe-logging:logger:3.2.0 (24 constraints: 98a4d6fa)
-com.palantir.safe-logging:logger-slf4j:3.2.0 (1 constraints: 000e5942)
-com.palantir.safe-logging:logger-spi:3.2.0 (2 constraints: 0f1e997a)
-com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: f7178aeb)
-com.palantir.safe-logging:safe-logging:3.2.0 (28 constraints: 0cd34fc4)
+com.palantir.ri:resource-identifier:2.6.0 (3 constraints: aa2f1337)
+com.palantir.safe-logging:logger:3.5.0 (24 constraints: c4a4cd59)
+com.palantir.safe-logging:logger-slf4j:3.5.0 (1 constraints: 030e6242)
+com.palantir.safe-logging:logger-spi:3.5.0 (2 constraints: 151e387b)
+com.palantir.safe-logging:preconditions:3.5.0 (31 constraints: 30182f82)
+com.palantir.safe-logging:safe-logging:3.5.0 (28 constraints: 0ed394c2)
 com.palantir.safethreadlocalrandom:safe-thread-local-random:0.1.0 (3 constraints: 933225f9)
 com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
-com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 485c7290)
+com.palantir.tokens:auth-tokens:3.18.0 (5 constraints: 4d5c8992)
 com.palantir.tracing:tracing:6.17.0 (8 constraints: f97d045e)
 com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 1745b4f5)
 com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 46199abb)
-com.palantir.tritium:tritium-api:0.64.0 (6 constraints: 5052c7ce)
-com.palantir.tritium:tritium-caffeine:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-core:0.64.0 (5 constraints: 5d43281d)
-com.palantir.tritium:tritium-lib:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f96b65dd)
-com.palantir.tritium:tritium-proxy:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-registry:0.64.0 (13 constraints: 88ef0d92)
-com.palantir.tritium:tritium-slf4j:0.64.0 (2 constraints: bd138370)
-com.palantir.tritium:tritium-time:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-tracing:0.64.0 (1 constraints: 820e8359)
+com.palantir.tritium:tritium-api:0.68.0 (6 constraints: 64520bd6)
+com.palantir.tritium:tritium-caffeine:0.68.0 (1 constraints: 3c05433b)
+com.palantir.tritium:tritium-core:0.68.0 (5 constraints: 6d439821)
+com.palantir.tritium:tritium-lib:0.68.0 (1 constraints: 3c05433b)
+com.palantir.tritium:tritium-metrics:0.68.0 (7 constraints: 116c5de8)
+com.palantir.tritium:tritium-proxy:0.68.0 (1 constraints: 860e8f59)
+com.palantir.tritium:tritium-registry:0.68.0 (13 constraints: b4efdfbd)
+com.palantir.tritium:tritium-slf4j:0.68.0 (2 constraints: c1138f70)
+com.palantir.tritium:tritium-time:0.68.0 (1 constraints: 860e8f59)
+com.palantir.tritium:tritium-tracing:0.68.0 (1 constraints: 860e8f59)
 com.squareup:javapoet:1.13.0 (4 constraints: 102cc1ed)
 com.squareup:kotlinpoet:1.11.0 (1 constraints: 6a0c7f0d)
 com.thinkaurelius.thrift:thrift-server:0.3.7 (1 constraints: 980f6c88)
@@ -145,7 +145,7 @@ io.dropwizard:dropwizard-util:2.1.2 (12 constraints: 6eb0fdf0)
 io.dropwizard:dropwizard-validation:2.1.2 (8 constraints: 85778aa6)
 io.dropwizard.logback:logback-throttling-appender:1.1.9 (1 constraints: 830ed74f)
 io.dropwizard.metrics:metrics-annotation:4.2.12 (3 constraints: 6c2e5a89)
-io.dropwizard.metrics:metrics-core:4.2.12 (29 constraints: 2fcff7c9)
+io.dropwizard.metrics:metrics-core:4.2.19 (29 constraints: f5d02e7e)
 io.dropwizard.metrics:metrics-healthchecks:4.2.12 (5 constraints: 4b4964b0)
 io.dropwizard.metrics:metrics-jersey2:4.2.12 (1 constraints: 5c0e744e)
 io.dropwizard.metrics:metrics-jetty9:4.2.12 (3 constraints: 2729b8ff)
@@ -191,16 +191,16 @@ io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
 jakarta.activation:jakarta.activation-api:1.2.2 (3 constraints: 4e3741b6)
-jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 26793e31)
+jakarta.annotation:jakarta.annotation-api:1.3.5 (7 constraints: 396987f4)
 jakarta.inject:jakarta.inject-api:1.0.5 (13 constraints: decbc9f9)
 jakarta.servlet:jakarta.servlet-api:4.0.4 (10 constraints: 7b9def70)
 jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
 jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (17 constraints: 6f283f6d)
 jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
-joda-time:joda-time:2.12.5 (6 constraints: 845987f4)
+joda-time:joda-time:2.12.5 (6 constraints: b1596f2f)
 junit:junit:4.13.2 (8 constraints: 5a9c5baf)
-net.bytebuddy:byte-buddy:1.14.4 (3 constraints: 4025da91)
+net.bytebuddy:byte-buddy:1.14.4 (3 constraints: 41252092)
 net.bytebuddy:byte-buddy-agent:1.14.4 (1 constraints: 440b42de)
 net.java.dev.jna:jna:4.1.0 (2 constraints: 6e1bbbad)
 net.jpountz.lz4:lz4:1.3.0 (2 constraints: 971453a0)
@@ -217,15 +217,15 @@ org.apache.commons:commons-math3:3.2 (2 constraints: 90196ff8)
 org.apache.commons:commons-pool2:2.11.1 (1 constraints: 3705333b)
 org.apache.commons:commons-text:1.9 (1 constraints: b5102f9b)
 org.apache.httpcomponents.client5:httpclient5:5.2.1 (2 constraints: d518b1c3)
-org.apache.httpcomponents.core5:httpcore5:5.2.1 (3 constraints: 9f383c39)
+org.apache.httpcomponents.core5:httpcore5:5.2.2 (3 constraints: a038a439)
 org.apache.httpcomponents.core5:httpcore5-h2:5.2 (1 constraints: dd12c315)
 org.apache.thrift:libthrift:0.17.0 (4 constraints: 00372854)
-org.assertj:assertj-core:3.24.2 (4 constraints: a136076b)
+org.assertj:assertj-core:3.24.2 (4 constraints: a5360d6c)
 org.assertj:assertj-guava:3.24.2 (1 constraints: 3d05473b)
 org.awaitility:awaitility:4.2.0 (2 constraints: c71a893b)
 org.caffinitas.ohc:ohc-core:0.3.4 (1 constraints: 950f6988)
 org.checkerframework:checker-compat-qual:2.5.5 (2 constraints: 1f1d1717)
-org.checkerframework:checker-qual:3.33.0 (3 constraints: 6f2678e2)
+org.checkerframework:checker-qual:3.33.0 (3 constraints: 7026bde2)
 org.clojure:clojure:1.8.0 (1 constraints: 0b050836)
 org.codehaus.groovy:groovy:2.5.14 (23 constraints: b55185ba)
 org.codehaus.groovy:groovy-cli-picocli:2.5.14 (5 constraints: d54e9017)
@@ -284,7 +284,7 @@ org.jboss.xnio:xnio-api:3.8.7.Final (2 constraints: 771a3146)
 org.jboss.xnio:xnio-nio:3.8.7.Final (1 constraints: c80dcb30)
 org.jdbi:jdbi3-core:3.30.0 (2 constraints: 0e10d5bf)
 org.jdbi:jdbi3-sqlobject:3.30.0 (1 constraints: 38053d3b)
-org.jetbrains:annotations:23.0.0 (4 constraints: 0c35f637)
+org.jetbrains:annotations:24.0.1 (4 constraints: 10350c39)
 org.jetbrains.kotlin:kotlin-reflect:1.6.10 (1 constraints: 360b7dd6)
 org.jetbrains.kotlin:kotlin-stdlib:1.7.0 (7 constraints: 07713968)
 org.jetbrains.kotlin:kotlin-stdlib-common:1.7.0 (1 constraints: 110f8b6b)
@@ -293,7 +293,7 @@ org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.0 (3 constraints: c125b5a3)
 org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.5.0 (1 constraints: 4b0ea44e)
 org.jvnet:animal-sniffer-annotation:1.0 (1 constraints: f20b95eb)
 org.mindrot:jbcrypt:0.4 (2 constraints: 4714f171)
-org.mockito:mockito-core:5.3.1 (2 constraints: 5316c412)
+org.mockito:mockito-core:5.3.1 (2 constraints: 26166bfc)
 org.mpierce.metrics.reservoir:hdrhistogram-metrics-reservoir:1.1.3 (1 constraints: 0d10f991)
 org.objenesis:objenesis:3.3 (2 constraints: c71412ab)
 org.openjdk.jmh:jmh-core:1.36 (2 constraints: f51525d9)
@@ -314,7 +314,7 @@ org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
 org.wildfly.common:wildfly-common:1.6.0.Final (4 constraints: 3f390b3d)
 org.xerial:sqlite-jdbc:3.42.0.0 (1 constraints: 99054946)
 org.xerial.snappy:snappy-java:1.1.10.1 (2 constraints: 891546f4)
-org.yaml:snakeyaml:1.33 (5 constraints: 0a4c5570)
+org.yaml:snakeyaml:2.0 (5 constraints: d54b952a)
 
 [Test dependencies]
 cglib:cglib:3.2.8 (1 constraints: 1f0a62b5)
@@ -324,8 +324,8 @@ com.github.peterwippermann.junit4:parameterized-suite:1.1.0 (1 constraints: 0405
 com.github.stefanbirkner:system-rules:1.19.0 (1 constraints: 3d05443b)
 com.github.tomakehurst:wiremock-standalone:2.27.2 (1 constraints: 3f054a3b)
 com.google.code.findbugs:annotations:3.0.1 (1 constraints: 9e0aafc3)
-com.palantir.conjure.java.api:test-utils:2.34.0 (1 constraints: 3f054e3b)
-com.palantir.safe-logging:preconditions-assertj:3.2.0 (1 constraints: 07050036)
+com.palantir.conjure.java.api:test-utils:2.35.0 (1 constraints: 3f054e3b)
+com.palantir.safe-logging:preconditions-assertj:3.5.0 (1 constraints: 07050036)
 com.palantir.tracing:tracing-test-utils:6.17.0 (1 constraints: 3e05563b)
 com.spotify.dataenum:dataenum:1.4.1 (1 constraints: e9105ac1)
 com.thoughtworks.qdox:qdox:1.12.1 (1 constraints: 6d11f7d9)u}(j1  (661fe88dbac6c0abeea7597392a1891c7cfceb01j2  versions.propsj2  modifiedj2  Kj2  Kj!2  Kj"2  `https://github.com/palantir/atlasdb/blob/16f56f1aea2b94ff4880c17e8a5d152b085dff40/versions.propsj$2  _https://github.com/palantir/atlasdb/raw/16f56f1aea2b94ff4880c17e8a5d152b085dff40/versions.propsj&2  rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=16f56f1aea2b94ff4880c17e8a5d152b085dff40j(2  X   @@ -25,9 +25,9 @@ com.palantir.common:streams = 2.1.0
 com.palantir.config.crypto:* = 5.1.0
 com.palantir.conjure.java.api:* = 2.29.0
 com.palantir.conjure.java.runtime:* = 7.39.0
-com.palantir.conjure.java:* = 7.5.0
-com.palantir.conjure:conjure = 4.36.0
-com.palantir.dialogue:* = 3.78.0
+com.palantir.conjure.java:* = 7.14.0
+com.palantir.conjure:conjure = 4.38.0
+com.palantir.dialogue:* = 3.86.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
 com.palantir.goethe:* = 0.11.0ueu(c7e35a106b2a95aa43c3b8a2107177b3218c6ec3}(sha(c7e35a106b2a95aa43c3b8a2107177b3218c6ec3node_idEC_kwDOAjP5fdoAKGM3ZTM1YTEwNmIyYTk1YWE0M2MzYjhhMjEwNzE3N2IzMjE4YzZlYzMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-15T13:53:13Zu	committer}(j<2  Jeremy Kongj>2  jkong@palantir.comj@2  2023-06-15T13:53:13Zumessagecompaction bluestree}(j42  (41affc9c1238331be36cbac313b4305b221c243furl`https://api.github.com/repos/palantir/atlasdb/git/trees/41affc9c1238331be36cbac313b4305b221c243fujL2  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c7e35a106b2a95aa43c3b8a2107177b3218c6ec3
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSLF8oACgkQTLdFKain
zjxIHAf8D5xE2fwfj5b+4Im9qS1DGOPnY7U30uVpt1+y1cDy4kNSL643u8SdzzBl
frWcYLogRhrg/mP91YDGQt9RsZXM7HPCjMt+XiI8u9I/LUVCsTbx1ZklepePi6hh
TAcSE1wUwqJ+e2OT0LQ2hx2GQpZ9DVDHE8ygoCPomn1zPfOtIO4gxuOHmZRCiAYD
E+7hMmO89Sh9sM4vXqHSPRiuh8aupLYlczqojAArsb+hM1E6+ZteTG/zCTOTinb0
kNq3SHNzmtLII/W6Khs+whugYLUwabk+ehKFPsu5sVmNopJNEnG67bkVZkEPX9hQ
Vf5ptCDWSa6vuUidURyrszm1OUfi7Q==
=qQ0H
-----END PGP SIGNATURE-----payloadtree 41affc9c1238331be36cbac313b4305b221c243f
parent 6a69665bd9771950fafd8f5f28001ca15ac96cbc
author Jeremy Kong <jkong@palantir.com> 1686837193 +0800
committer Jeremy Kong <jkong@palantir.com> 1686837193 +0800

compaction blues
uujL2  ^https://api.github.com/repos/palantir/atlasdb/commits/c7e35a106b2a95aa43c3b8a2107177b3218c6ec3html_urlShttps://github.com/palantir/atlasdb/commit/c7e35a106b2a95aa43c3b8a2107177b3218c6ec3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c7e35a106b2a95aa43c3b8a2107177b3218c6ec3/commentsj:2  }(login
jeremyk-91idJZ j62  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jL2  'https://api.github.com/users/jeremyk-91jZ2  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujB2  }(j_2  
jeremyk-91ja2  JZ j62  MDQ6VXNlcjU5NTU1MTA=jc2  3https://avatars.githubusercontent.com/u/5955510?v=4je2  h5jL2  'https://api.github.com/users/jeremyk-91jZ2  https://github.com/jeremyk-91jh2  1https://api.github.com/users/jeremyk-91/followersjj2  >https://api.github.com/users/jeremyk-91/following{/other_user}jl2  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jn2  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jp2  5https://api.github.com/users/jeremyk-91/subscriptionsjr2  ,https://api.github.com/users/jeremyk-91/orgsjt2  -https://api.github.com/users/jeremyk-91/reposjv2  8https://api.github.com/users/jeremyk-91/events{/privacy}jx2  7https://api.github.com/users/jeremyk-91/received_eventsjz2  Userj|2  uparents]}(j42  (6a69665bd9771950fafd8f5f28001ca15ac96cbcjL2  ^https://api.github.com/repos/palantir/atlasdb/commits/6a69665bd9771950fafd8f5f28001ca15ac96cbcjZ2  Shttps://github.com/palantir/atlasdb/commit/6a69665bd9771950fafd8f5f28001ca15ac96cbcuastats}(totalK
	additionsK	deletionsKufiles](}(j42  (acff56fc75dcedba2317a0baf228fb478fd19366filename-atlasdb-workload-server-antithesis/Dockerfilestatusmodifiedj2  Kj2  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/c7e35a106b2a95aa43c3b8a2107177b3218c6ec3/atlasdb-workload-server-antithesis%2FDockerfileraw_urlhttps://github.com/palantir/atlasdb/raw/c7e35a106b2a95aa43c3b8a2107177b3218c6ec3/atlasdb-workload-server-antithesis%2FDockerfilecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2FDockerfile?ref=c7e35a106b2a95aa43c3b8a2107177b3218c6ec3patch@@ -3,4 +3,6 @@ MAINTAINER AtlasDB Team
 
 ADD docker-compose.yml /
 ADD compact.sh /
-ADD flush.sh /
\ No newline at end of file
+ADD flush.sh /
+CMD chmod 555 compact.sh /
+CMD chmod 555 flush.sh /u}(j42  (5a5556860449da126adc5f8a0981453e801987caj2  1atlasdb-workload-server-antithesis/var/compact.shj2  modifiedj2  Kj2  Kj2  Kj2  https://github.com/palantir/atlasdb/blob/c7e35a106b2a95aa43c3b8a2107177b3218c6ec3/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shj2  https://github.com/palantir/atlasdb/raw/c7e35a106b2a95aa43c3b8a2107177b3218c6ec3/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.sh?ref=c7e35a106b2a95aa43c3b8a2107177b3218c6ec3j2  Xx  @@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 ##
 # (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
@@ -16,4 +16,4 @@
 # limitations under the License.
 #
 
-podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool compact'¡
\ No newline at end of file
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool compact'
\ No newline at end of fileu}(j42  (f91ee5ba5579e07f5e1e9948bf32e02918dd8185j2  /atlasdb-workload-server-antithesis/var/flush.shj2  modifiedj2  Kj2  Kj2  Kj2  https://github.com/palantir/atlasdb/blob/c7e35a106b2a95aa43c3b8a2107177b3218c6ec3/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shj2  https://github.com/palantir/atlasdb/raw/c7e35a106b2a95aa43c3b8a2107177b3218c6ec3/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fflush.sh?ref=c7e35a106b2a95aa43c3b8a2107177b3218c6ec3j2  }@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 ##
 # (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.ueu(cc88001d8304284fb79ae4ed84be31237c673bd1}(sha(cc88001d8304284fb79ae4ed84be31237c673bd1node_idEC_kwDOAjP5fdoAKGNjODgwMDFkODMwNDI4NGZiNzlhZTRlZDg0YmUzMTIzN2M2NzNiZDEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-06T16:27:37Zu	committer}(j2  Jeremy Kongj2  jkong@palantir.comj2  2023-06-06T16:27:37Zumessageadd one more testtree}(j2  (aa49b7b3c89cd9a21c94daa1b883a1d79df994d9url`https://api.github.com/repos/palantir/atlasdb/git/trees/aa49b7b3c89cd9a21c94daa1b883a1d79df994d9uj2  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cc88001d8304284fb79ae4ed84be31237c673bd1
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR/XnkACgkQTLdFKain
zjzM2Qf+KAZu2BIxiEa3xONUag6ifPF/wzCk1VOWpbScSoSwdWwlpPDKDfScSwL/
EAEwNlY4sRZiLBCHROm995f1gO0ElVjDNlK16THmK6fFflHTjAF2iNUVu7TEgSi2
BaZlkdW4ORstBpRPO0O6o8wiCpuqgQ2QvLsuL/fnf56K3V3g/gRJ7O/2t9ix2P0x
zsgHNswIH12a47k5e8gn9ZGFQQjavOfXFJF7xqFp2Ra+M8imGRz+zbztf4wTc0KN
k3Vvo5gN7CG0tLD9JRORDdvIzGpUkNQwedc+J0hwcXKbgZVytosvWrxafZW8JcUT
1ToCzJyf2wbL1XpXyFCDOnadtcQFOg==
=M5q4
-----END PGP SIGNATURE-----payloadtree aa49b7b3c89cd9a21c94daa1b883a1d79df994d9
parent c40b85ef3b12ad1e26d11b2ac3a798d25be1c12d
author Jeremy Kong <jkong@palantir.com> 1686068857 +0100
committer Jeremy Kong <jkong@palantir.com> 1686068857 +0100

add one more test
uuj2  ^https://api.github.com/repos/palantir/atlasdb/commits/cc88001d8304284fb79ae4ed84be31237c673bd1html_urlShttps://github.com/palantir/atlasdb/commit/cc88001d8304284fb79ae4ed84be31237c673bd1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cc88001d8304284fb79ae4ed84be31237c673bd1/commentsj2  }(login
jeremyk-91idJZ j2  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j2  'https://api.github.com/users/jeremyk-91j2  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj2  }(j2  
jeremyk-91j2  JZ j2  MDQ6VXNlcjU5NTU1MTA=j2  3https://avatars.githubusercontent.com/u/5955510?v=4j2  h5j2  'https://api.github.com/users/jeremyk-91j2  https://github.com/jeremyk-91j2  1https://api.github.com/users/jeremyk-91/followersj2  >https://api.github.com/users/jeremyk-91/following{/other_user}j2  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j2  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j2  5https://api.github.com/users/jeremyk-91/subscriptionsj2  ,https://api.github.com/users/jeremyk-91/orgsj2  -https://api.github.com/users/jeremyk-91/reposj2  8https://api.github.com/users/jeremyk-91/events{/privacy}j2  7https://api.github.com/users/jeremyk-91/received_eventsj3  Userj3  uparents]}(j2  (c40b85ef3b12ad1e26d11b2ac3a798d25be1c12dj2  ^https://api.github.com/repos/palantir/atlasdb/commits/c40b85ef3b12ad1e26d11b2ac3a798d25be1c12dj2  Shttps://github.com/palantir/atlasdb/commit/c40b85ef3b12ad1e26d11b2ac3a798d25be1c12duastats}(totalK	additionsK	deletionsKufiles]}(j2  (66eb65f990864b7ecd71b82cd97e6ffa71bb019cfilenamepatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javastatusmodifiedj3  Kj3  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/cc88001d8304284fb79ae4ed84be31237c673bd1/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/cc88001d8304284fb79ae4ed84be31237c673bd1/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=cc88001d8304284fb79ae4ed84be31237c673bd1patchX  @@ -125,7 +125,7 @@ public void emptyColumnRangeReadsAreRecorded() {
     }
 
     @Test
-    public void allRelevantCellsAreRecorded() {
+    public void allRelevantCellsAreRecordedForFullColumnScan() {
         int iterationCount = 1000;
         assertThat(readWrite(transaction -> {
                     IntStream.range(0, iterationCount)
@@ -145,6 +145,34 @@ public void allRelevantCellsAreRecorded() {
                                                 .collect(Collectors.toMap(index -> index, unused -> VALUE_ONE)))));
     }
 
+    @Test
+    public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
+        int iterationCount = 1000;
+        int startInclusive = 313;
+        int endExclusive = 855;
+        assertThat(readWrite(transaction -> {
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(
+                            TABLE_1,
+                            1,
+                            ColumnRangeSelection.builder()
+                                    .startColumnInclusive(startInclusive)
+                                    .endColumnExclusive(endExclusive)
+                                    .build());
+                }))
+                .hasSize(iterationCount + 1)
+                .element(iterationCount)
+                .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
+                        .isInstanceOfSatisfying(
+                                WitnessedRowColumnRangeReadTransactionAction.class,
+                                witness -> assertThat(witness.columnsAndValues())
+                                        .containsExactlyEntriesOf(IntStream.range(startInclusive, endExclusive)
+                                                .boxed()
+                                                .collect(Collectors.toMap(index -> index, unused -> VALUE_ONE)))));
+    }
+
     @Test
     public void readThrowsWhenTableDoesNotExist() {
         assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.read(TABLE_1, WORKLOAD_CELL_ONE));uau(31396508c229b7d0f3ef77e6b9361e854784ed07}(sha(31396508c229b7d0f3ef77e6b9361e854784ed07node_idEC_kwDOAjP5fdoAKDMxMzk2NTA4YzIyOWI3ZDBmM2VmNzdlNmI5MzYxZTg1NDc4NGVkMDccommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-28T12:55:28Zu	committer}(j:3  
Ahmed Alouanej<3  aalouane@palantir.comj>3  2023-04-28T12:55:28Zumessagehelllotree}(j23  (fbc2e279f4a84215a7aca9e1d8450b223a49f016url`https://api.github.com/repos/palantir/atlasdb/git/trees/fbc2e279f4a84215a7aca9e1d8450b223a49f016ujJ3  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/31396508c229b7d0f3ef77e6b9361e854784ed07
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRLwkAACgkQPlMHVIT1
yhq/mAf+N/O8a2HERFtOEL6/PiL0lUXdOLPIE2yMqwI75QYU45hmh0FznSwnRiGY
gKWypUbc7ONuCl/p68tcnZ04fQBEWdG1DOj3nLIByCuh94li9eNJ/uyX2VgAytap
Rx1TqFKrSeNVGKZwO5oct0CXQd9idVWWb3yVkMUyJdUmgzr3X8fpkD5UNFhWyUPG
LSyskgOfp7B2QXAfdZ/gUyv2hF6VAapVyQR6bQehZs7Tflqx/n2n5ni1vwh8b0PP
uyiz1cPN1dZQxOSDBo1OzdEKhpPGRsoU7DgR22JeGrp+H+sqgI/vC+aqev1uXdAP
jB789rGjcc2tnPZMkzgPpVVrIDg+bg==
=LyQv
-----END PGP SIGNATURE-----payloadtree fbc2e279f4a84215a7aca9e1d8450b223a49f016
parent 5077f5dcb2e12eb11a23d47a6efd2f5169d25715
author Ahmed Alouane <aalouane@palantir.com> 1682686528 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682686528 +0100

helllo
uujJ3  ^https://api.github.com/repos/palantir/atlasdb/commits/31396508c229b7d0f3ef77e6b9361e854784ed07html_urlShttps://github.com/palantir/atlasdb/commit/31396508c229b7d0f3ef77e6b9361e854784ed07comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/31396508c229b7d0f3ef77e6b9361e854784ed07/commentsj83  }(loginergo14idJj43  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jJ3  #https://api.github.com/users/ergo14jX3  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj@3  }(j]3  ergo14j_3  Jj43  MDQ6VXNlcjMwOTAzNzM2ja3  4https://avatars.githubusercontent.com/u/30903736?v=4jc3  h5jJ3  #https://api.github.com/users/ergo14jX3  https://github.com/ergo14jf3  -https://api.github.com/users/ergo14/followersjh3  :https://api.github.com/users/ergo14/following{/other_user}jj3  3https://api.github.com/users/ergo14/gists{/gist_id}jl3  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jn3  1https://api.github.com/users/ergo14/subscriptionsjp3  (https://api.github.com/users/ergo14/orgsjr3  )https://api.github.com/users/ergo14/reposjt3  4https://api.github.com/users/ergo14/events{/privacy}jv3  3https://api.github.com/users/ergo14/received_eventsjx3  Userjz3  uparents]}(j23  (5077f5dcb2e12eb11a23d47a6efd2f5169d25715jJ3  ^https://api.github.com/repos/palantir/atlasdb/commits/5077f5dcb2e12eb11a23d47a6efd2f5169d25715jX3  Shttps://github.com/palantir/atlasdb/commit/5077f5dcb2e12eb11a23d47a6efd2f5169d25715uastats}(totalK	additionsK	deletionsK ufiles]}(j23  (a6769d69f680891c237b17cb599cfe7363977e1bfilenamebuild.gradlestatusmodifiedj3  Kj3  K changesKblob_url^https://github.com/palantir/atlasdb/blob/31396508c229b7d0f3ef77e6b9361e854784ed07/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/31396508c229b7d0f3ef77e6b9361e854784ed07/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=31396508c229b7d0f3ef77e6b9361e854784ed07patch@@ -1,5 +1,9 @@
 import org.gradle.plugins.ide.idea.model.IdeaModel
 
+
+
+
+
 buildscript {
     repositories {
         mavenCentral() { metadataSources { mavenPom(); ignoreGradleMetadataRedirection() } }uau(55384b3a6efbfe0f29d93230125c6e811092a293}(sha(55384b3a6efbfe0f29d93230125c6e811092a293node_idEC_kwDOAjP5fdoAKDU1Mzg0YjNhNmVmYmZlMGYyOWQ5MzIzMDEyNWM2ZTgxMTA5MmEyOTMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-03T16:16:21Zu	committer}(j3  
Sam Kramerj3  skramer@palantir.comj3  2023-05-03T16:16:21Zumessageremove buggify stufftree}(j3  (24a74f05d6a8093ee13d08c865057c2349d1cd84url`https://api.github.com/repos/palantir/atlasdb/git/trees/24a74f05d6a8093ee13d08c865057c2349d1cd84uj3  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/55384b3a6efbfe0f29d93230125c6e811092a293
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRSiNUACgkQmPPOpKR4
XS0Wxgf/XV13Pp5pkOEFs5yEpvjrnlT20YbFU1TtgehsNELaiLNVbOjvUbWxgvGf
DoOIY+Wn+IF8TvYFbgk35JxWhVYZ7OnZxkVnMB8L4Y3L4RZI0V5zl076ZcVKIqqZ
owss2i66UEzqSY05fwpY28Am7Q+YcrXDGxlfLLM1Pz3YPxwrxvqhqNvDXCzHXD/J
Vvjx6aae/UQxR+YSZfz99LvYqi8EqiN7QKXeEgOuCzaoiYMocGWCOI1+KgSBCOXJ
NlN7u9ny4HwLVUbKeOLqfjUefN18OETY8P5W7xgpxf7vQ4dHyyvLsKh+sIWH4zZ9
TLOcuANjqCzgB2gvD3WYAYzg28it9g==
=AZzQ
-----END PGP SIGNATURE-----payloadtree 24a74f05d6a8093ee13d08c865057c2349d1cd84
parent cd625690380b3d869a4b60e23c04967b1ca962c5
author Sam Kramer <skramer@palantir.com> 1683130581 +0100
committer Sam Kramer <skramer@palantir.com> 1683130581 +0100

remove buggify stuff
uuj3  ^https://api.github.com/repos/palantir/atlasdb/commits/55384b3a6efbfe0f29d93230125c6e811092a293html_urlShttps://github.com/palantir/atlasdb/commit/55384b3a6efbfe0f29d93230125c6e811092a293comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/55384b3a6efbfe0f29d93230125c6e811092a293/commentsj3  }(login
Sam-KrameridJ^2_ j3  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j3  'https://api.github.com/users/Sam-Kramerj3  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj3  }(j3  
Sam-Kramerj3  J^2_ j3  MDQ6VXNlcjYyMzg4MTQ=j3  3https://avatars.githubusercontent.com/u/6238814?v=4j3  h5j3  'https://api.github.com/users/Sam-Kramerj3  https://github.com/Sam-Kramerj3  1https://api.github.com/users/Sam-Kramer/followersj3  >https://api.github.com/users/Sam-Kramer/following{/other_user}j3  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j3  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j3  5https://api.github.com/users/Sam-Kramer/subscriptionsj3  ,https://api.github.com/users/Sam-Kramer/orgsj3  -https://api.github.com/users/Sam-Kramer/reposj3  8https://api.github.com/users/Sam-Kramer/events{/privacy}j3  7https://api.github.com/users/Sam-Kramer/received_eventsj3  Userj3  uparents]}(j3  (cd625690380b3d869a4b60e23c04967b1ca962c5j3  ^https://api.github.com/repos/palantir/atlasdb/commits/cd625690380b3d869a4b60e23c04967b1ca962c5j3  Shttps://github.com/palantir/atlasdb/commit/cd625690380b3d869a4b60e23c04967b1ca962c5uastats}(totalK	additionsK 	deletionsKufiles]}(j3  (b5e69d27078edfde8ce095c0b7955cbbe919a804filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj4  K j4  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/55384b3a6efbfe0f29d93230125c6e811092a293/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/55384b3a6efbfe0f29d93230125c6e811092a293/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=55384b3a6efbfe0f29d93230125c6e811092a293patchXc  @@ -2015,13 +2015,6 @@ private void commitWrites(TransactionService transactionService) {
                 // timed.
                 traced("preCommitLockCheck", () -> throwIfImmutableTsOrCommitLocksExpired(commitLocksToken));
 
-                // Buggify stuff
-                Set<LockToken> tokensToUnlock = new HashSet<>();
-                tokensToUnlock.add(commitLocksToken);
-                immutableTimestampLock.ifPresent(tokensToUnlock::add);
-                Uninterruptibles.sleepUninterruptibly(
-                        Duration.ofMillis(ThreadLocalRandom.current().nextInt(60_000)));
-
                 // This can fail :(
                 // Serializable transactions need to check their reads haven't changed, by reading again at
                 // commitTs + 1. This must happen before the lock check for thorough tables, because the lock checkuau(5be6e5aecb42dd274608a2c325d3cba2cd0a6625}(sha(5be6e5aecb42dd274608a2c325d3cba2cd0a6625node_idEC_kwDOAjP5fdoAKDViZTZlNWFlY2I0MmRkMjc0NjA4YTJjMzI1ZDNjYmEyY2QwYTY2MjUcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-03-13T22:38:23Zu	committer}(j(4  
svc-changelogj*4  svc-changelog@palantir.comj,4  2023-03-13T22:38:23ZumessageAdd generated changelog entriestree}(j 4  (b866c754758fd91a2cd32e87f29596d7eebf86c8url`https://api.github.com/repos/palantir/atlasdb/git/trees/b866c754758fd91a2cd32e87f29596d7eebf86c8uj84  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5be6e5aecb42dd274608a2c325d3cba2cd0a6625
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQPpd8JEHYaJX37fAFQAACSgwEA+851J9jKYGaByps+rO6ssrcC
KtoyQ0v25pBvmY5QgT4BAKTfIXagLvrUtSVSkmZ8Yj4hfV4x14/Gr8+xvWU8cKMw
=DKjx
-----END PGP SIGNATURE-----payloadX  tree b866c754758fd91a2cd32e87f29596d7eebf86c8
parent 1f03ac899ef84bcddc5827b1f85835ff90ca3c24
author svc-changelog <svc-changelog@palantir.com> 1678747103 +0000
committer svc-changelog <svc-changelog@palantir.com> 1678747103 +0000

Add generated changelog entriesuuj84  ^https://api.github.com/repos/palantir/atlasdb/commits/5be6e5aecb42dd274608a2c325d3cba2cd0a6625html_urlShttps://github.com/palantir/atlasdb/commit/5be6e5aecb42dd274608a2c325d3cba2cd0a6625comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5be6e5aecb42dd274608a2c325d3cba2cd0a6625/commentsj&4  }(login
svc-changelogidJ#j"4  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j84  *https://api.github.com/users/svc-changelogjF4   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj.4  }(jK4  
svc-changelogjM4  J#j"4  MDQ6VXNlcjg0MDc3NjAzjO4  4https://avatars.githubusercontent.com/u/84077603?v=4jQ4  h5j84  *https://api.github.com/users/svc-changelogjF4   https://github.com/svc-changelogjT4  4https://api.github.com/users/svc-changelog/followersjV4  Ahttps://api.github.com/users/svc-changelog/following{/other_user}jX4  :https://api.github.com/users/svc-changelog/gists{/gist_id}jZ4  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j\4  8https://api.github.com/users/svc-changelog/subscriptionsj^4  /https://api.github.com/users/svc-changelog/orgsj`4  0https://api.github.com/users/svc-changelog/reposjb4  ;https://api.github.com/users/svc-changelog/events{/privacy}jd4  :https://api.github.com/users/svc-changelog/received_eventsjf4  Userjh4  uparents]}(j 4  (1f03ac899ef84bcddc5827b1f85835ff90ca3c24j84  ^https://api.github.com/repos/palantir/atlasdb/commits/1f03ac899ef84bcddc5827b1f85835ff90ca3c24jF4  Shttps://github.com/palantir/atlasdb/commit/1f03ac899ef84bcddc5827b1f85835ff90ca3c24uastats}(totalK	additionsK	deletionsKufiles]}(j 4  (910ff9b18328d5969f5dbcc3ae9411d1bcb02878filename$changelog/@unreleased/pr-6473.v2.ymlstatusmodifiedj4  Kj4  KchangesKblob_url|https://github.com/palantir/atlasdb/blob/5be6e5aecb42dd274608a2c325d3cba2cd0a6625/changelog%2F%40unreleased%2Fpr-6473.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/5be6e5aecb42dd274608a2c325d3cba2cd0a6625/changelog%2F%40unreleased%2Fpr-6473.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6473.v2.yml?ref=5be6e5aecb42dd274608a2c325d3cba2cd0a6625patchX-  @@ -1,6 +1,6 @@
 type: improvement
 improvement:
   description: When no Cassandra hosts are available, AtlasDB throws `AtlasDbDependencyException`
-    instead of `SafeIllegalArgumentException`.
+    instead of `SafeIllegalStateException`.
   links:
   - https://github.com/palantir/atlasdb/pull/6473uau(ea54ded107a91029bc5cc006c394943312d39e12}(sha(ea54ded107a91029bc5cc006c394943312d39e12node_idEC_kwDOAjP5fdoAKGVhNTRkZWQxMDdhOTEwMjliYzVjYzAwNmMzOTQ5NDMzMTJkMzllMTIcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T14:08:59Zu	committer}(j4  
Ahmed Alouanej4  aalouane@palantir.comj4  2023-05-15T14:08:59ZumessageXMerge branch 'aalouane/cbt/bloom' of github.com:palantir/atlasdb into aalouane/cbt/bloomtree}(j4  (130f8afc0e9a61eed1eee88df70b7068eaa0b864url`https://api.github.com/repos/palantir/atlasdb/git/trees/130f8afc0e9a61eed1eee88df70b7068eaa0b864uj4  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ea54ded107a91029bc5cc006c394943312d39e12
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiPT8ACgkQPlMHVIT1
yhqo/gf/TRWW1r8BPbENKWeLQ4B1o7aklUQUte4a42cyAAGQF3UPnMiz0vJBUayu
qIj4V7n33X+4iFrWaPBzMf7/7kK/aM7YrdMeZ+MOgSxCaIP43w3cGzijv6Z7qz2b
j2mOcCznrfT0VeuJ1oJjfy7RjIAdBeBDjAlcAsoXU+Z+jWwFzKcQfOsE9IpXQnEX
7GsoFZqz/EZH6A9A3P8Cgsa/usFXL/Elfppfo2KeKQxne8JHkytNUPzKodQmwevJ
+bELh6n/3+Lhd4lltsO+cWuG40jzLa4TS5SxhMVgk8XcKANhVE+W66jjcUIBvgkg
b0etnxMv1b5GzNVHVKg7lcbnQ03WZw==
=3ti4
-----END PGP SIGNATURE-----payloadXg  tree 130f8afc0e9a61eed1eee88df70b7068eaa0b864
parent db9f71760bb11121bad6da1676bd35d66af6ab97
parent 0ce260ac430194e8c8c55df19cafee6943804130
author Ahmed Alouane <aalouane@palantir.com> 1684159739 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684159739 +0100

Merge branch 'aalouane/cbt/bloom' of github.com:palantir/atlasdb into aalouane/cbt/bloom
uuj4  ^https://api.github.com/repos/palantir/atlasdb/commits/ea54ded107a91029bc5cc006c394943312d39e12html_urlShttps://github.com/palantir/atlasdb/commit/ea54ded107a91029bc5cc006c394943312d39e12comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ea54ded107a91029bc5cc006c394943312d39e12/commentsj4  }(loginergo14idJj4  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j4  #https://api.github.com/users/ergo14j4  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj4  }(j4  ergo14j4  Jj4  MDQ6VXNlcjMwOTAzNzM2j4  4https://avatars.githubusercontent.com/u/30903736?v=4j4  h5j4  #https://api.github.com/users/ergo14j4  https://github.com/ergo14j4  -https://api.github.com/users/ergo14/followersj4  :https://api.github.com/users/ergo14/following{/other_user}j4  3https://api.github.com/users/ergo14/gists{/gist_id}j4  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j4  1https://api.github.com/users/ergo14/subscriptionsj4  (https://api.github.com/users/ergo14/orgsj4  )https://api.github.com/users/ergo14/reposj4  4https://api.github.com/users/ergo14/events{/privacy}j4  3https://api.github.com/users/ergo14/received_eventsj4  Userj4  uparents](}(j4  (db9f71760bb11121bad6da1676bd35d66af6ab97j4  ^https://api.github.com/repos/palantir/atlasdb/commits/db9f71760bb11121bad6da1676bd35d66af6ab97j4  Shttps://github.com/palantir/atlasdb/commit/db9f71760bb11121bad6da1676bd35d66af6ab97u}(j4  (0ce260ac430194e8c8c55df19cafee6943804130j4  ^https://api.github.com/repos/palantir/atlasdb/commits/0ce260ac430194e8c8c55df19cafee6943804130j4  Shttps://github.com/palantir/atlasdb/commit/0ce260ac430194e8c8c55df19cafee6943804130uestats}(totalK 	additionsK 	deletionsK ufiles]u(4c892d1511bf54c283179aeb0f616ce936e4738d}(sha(4c892d1511bf54c283179aeb0f616ce936e4738dnode_idEC_kwDOAjP5fdoAKDRjODkyZDE1MTFiZjU0YzI4MzE3OWFlYjBmNjE2Y2U5MzZlNDczOGQcommit}(author}(nameDavid Schlosnagleemailschlosna@gmail.comdate2023-05-23T02:28:56Zu	committer}(j5  David Schlosnaglej
5  schlosna@gmail.comj5  2023-05-23T02:28:58ZumessageUse subclass mock maker in atlasdb-commons

Work around mockito flakes due to BatchingVisitablesTest requiring subclass
MockMaker to mock AbstractBatchingVisitable.tree}(j5  (62f57e6c806aa280451d0eb3ddefe2e82a237b04url`https://api.github.com/repos/palantir/atlasdb/git/trees/62f57e6c806aa280451d0eb3ddefe2e82a237b04uj5  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4c892d1511bf54c283179aeb0f616ce936e4738d
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj5  ^https://api.github.com/repos/palantir/atlasdb/commits/4c892d1511bf54c283179aeb0f616ce936e4738dhtml_urlShttps://github.com/palantir/atlasdb/commit/4c892d1511bf54c283179aeb0f616ce936e4738dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4c892d1511bf54c283179aeb0f616ce936e4738d/commentsj	5  }(loginschlosnaidMBj5  MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j5  %https://api.github.com/users/schlosnaj'5  https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj5  }(j,5  schlosnaj.5  MBj5  MDQ6VXNlcjU0NTk0j05  1https://avatars.githubusercontent.com/u/54594?v=4j25  h5j5  %https://api.github.com/users/schlosnaj'5  https://github.com/schlosnaj55  /https://api.github.com/users/schlosna/followersj75  <https://api.github.com/users/schlosna/following{/other_user}j95  5https://api.github.com/users/schlosna/gists{/gist_id}j;5  <https://api.github.com/users/schlosna/starred{/owner}{/repo}j=5  3https://api.github.com/users/schlosna/subscriptionsj?5  *https://api.github.com/users/schlosna/orgsjA5  +https://api.github.com/users/schlosna/reposjC5  6https://api.github.com/users/schlosna/events{/privacy}jE5  5https://api.github.com/users/schlosna/received_eventsjG5  UserjI5  uparents]}(j5  (1083711b382690fa3e64f57135fe510943c3083cj5  ^https://api.github.com/repos/palantir/atlasdb/commits/1083711b382690fa3e64f57135fe510943c3083cj'5  Shttps://github.com/palantir/atlasdb/commit/1083711b382690fa3e64f57135fe510943c3083cuastats}(totalK_	additionsK@	deletionsKufiles](}(j5  (2dbc24b32d3c1d36a5252a785ef380d28cefa391filename
.java-versionstatusmodifiedjc5  Kjd5  KchangesKblob_url_https://github.com/palantir/atlasdb/blob/4c892d1511bf54c283179aeb0f616ce936e4738d/.java-versionraw_url^https://github.com/palantir/atlasdb/raw/4c892d1511bf54c283179aeb0f616ce936e4738d/.java-versioncontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/.java-version?ref=4c892d1511bf54c283179aeb0f616ce936e4738dpatch@@ -1 +1 @@
-11
+11.0u}(j5  (672b185594aea1aca00c76bd0e6b223aa28720d5ji5  eatlasdb-commons/src/test/java/com/palantir/common/concurrent/CheckedRejectionExecutorServiceTest.javajk5  modifiedjc5  Kjd5  Kjm5  Kjn5  https://github.com/palantir/atlasdb/blob/4c892d1511bf54c283179aeb0f616ce936e4738d/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javajp5  https://github.com/palantir/atlasdb/raw/4c892d1511bf54c283179aeb0f616ce936e4738d/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javajr5  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.java?ref=4c892d1511bf54c283179aeb0f616ce936e4738djt5  X}
  @@ -19,31 +19,37 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.doThrow;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.google.common.util.concurrent.Futures;
 import java.util.concurrent.Callable;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.RejectedExecutionException;
 import org.junit.Test;
+import org.mockito.MockMakers;
 
 public class CheckedRejectionExecutorServiceTest {
-    private static final Runnable DO_NOTHING = () -> {};
-    private static final Callable<Integer> RETURN_ONE = () -> 1;
-    private static final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION = new RejectedExecutionException();
+    private final Runnable DO_NOTHING = () -> {};
+    private final Callable<Integer> RETURN_ONE = () -> 1;
+    private final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION = new RejectedExecutionException("test");
 
-    private final ExecutorService delegate = mock(ExecutorService.class);
+    private final ExecutorService delegate =
+            mock(ExecutorService.class, withSettings().mockMaker(MockMakers.SUBCLASS));
     private final CheckedRejectionExecutorService checkedRejectionExecutor =
             new CheckedRejectionExecutorService(delegate);
 
     @Test
     public void passesCallThroughExecute() throws CheckedRejectedExecutionException {
         checkedRejectionExecutor.execute(DO_NOTHING);
         verify(delegate, times(1)).execute(DO_NOTHING);
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
@@ -52,22 +58,27 @@ public void passesCallThroughSubmit() throws CheckedRejectedExecutionException {
         assertThat(Futures.getUnchecked(checkedRejectionExecutor.submit(RETURN_ONE)))
                 .isEqualTo(1);
         verify(delegate, times(1)).submit(RETURN_ONE);
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
     public void propagatesRejectionThroughExecute() {
-        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).execute(any());
+        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).execute(any(Runnable.class));
         assertThatThrownBy(() -> checkedRejectionExecutor.execute(DO_NOTHING))
                 .isInstanceOf(CheckedRejectedExecutionException.class)
                 .hasCause(REJECTED_EXECUTION_EXCEPTION);
+        verify(delegate).execute(eq(DO_NOTHING));
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
     @SuppressWarnings("unchecked") // Mocks
     public void propagatesRejectionThroughSubmit() {
-        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).submit(any(Callable.class));
+        when(delegate.submit(any(Callable.class))).thenThrow(REJECTED_EXECUTION_EXCEPTION);
         assertThatThrownBy(() -> checkedRejectionExecutor.submit(RETURN_ONE))
                 .isInstanceOf(CheckedRejectedExecutionException.class)
                 .hasCause(REJECTED_EXECUTION_EXCEPTION);
+        verify(delegate).submit(eq(RETURN_ONE));
+        verifyNoMoreInteractions(delegate);
     }
 }u}(j5  (d0f9372cc1f1f0ca2951aae2549e2f3c289903e7ji5  Xatlasdb-commons/src/test/java/com/palantir/common/concurrent/CoalescingSupplierTest.javajk5  modifiedjc5  Kjd5  Kjm5  Kjn5  https://github.com/palantir/atlasdb/blob/4c892d1511bf54c283179aeb0f616ce936e4738d/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.javajp5  https://github.com/palantir/atlasdb/raw/4c892d1511bf54c283179aeb0f616ce936e4738d/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.javajr5  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.java?ref=4c892d1511bf54c283179aeb0f616ce936e4738djt5  X  @@ -24,6 +24,7 @@
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
@@ -49,12 +50,14 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
+import org.mockito.MockMakers;
 
 @RunWith(Parameterized.class)
 public class CoalescingSupplierTest {
     private static final int DEFAULT_VALUE = 123;
 
-    private final Supplier<Integer> delegate = mock(Supplier.class);
+    private final Supplier<Integer> delegate =
+            mock(Supplier.class, withSettings().mockMaker(MockMakers.SUBCLASS));
     private final FreezableSupplier freezableDelegate = new FreezableSupplier(delegate);
     private final CoalescingSupplier<Integer> coalescing = new CoalescingSupplier<>(freezableDelegate);
 u}(j5  (9146e63073d86fe3d770ab7103a6eb65623b8820ji5  Watlasdb-commons/src/test/java/com/palantir/common/proxy/ExperimentRunningProxyTest.javajk5  modifiedjc5  K	jd5  Kjm5  Kjn5  https://github.com/palantir/atlasdb/blob/4c892d1511bf54c283179aeb0f616ce936e4738d/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.javajp5  https://github.com/palantir/atlasdb/raw/4c892d1511bf54c283179aeb0f616ce936e4738d/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.javajr5  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.java?ref=4c892d1511bf54c283179aeb0f616ce936e4738djt5  X-  @@ -21,6 +21,7 @@
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import java.lang.reflect.Proxy;
 import java.time.Clock;
@@ -31,18 +32,21 @@
 import java.util.function.Supplier;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class ExperimentRunningProxyTest {
     private static final int EXPERIMENTAL_RESULT = 123;
     private static final int FALLBACK_RESULT = 1;
     private static final RuntimeException RUNTIME_EXCEPTION = new RuntimeException("foo");
 
-    private final IntSupplier experimentalIntSupplier = mock(IntSupplier.class);
-    private final Supplier<IntSupplier> experimentSupplier = mock(Supplier.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private final IntSupplier experimentalIntSupplier = mock(IntSupplier.class, mockSettings);
+    private final Supplier<IntSupplier> experimentSupplier = mock(Supplier.class, mockSettings);
     private final IntSupplier fallbackIntSupplier = () -> FALLBACK_RESULT;
-    private final BooleanSupplier useExperimental = mock(BooleanSupplier.class);
-    private final BooleanSupplier enableFallback = mock(BooleanSupplier.class);
-    private final Clock clock = mock(Clock.class);
+    private final BooleanSupplier useExperimental = mock(BooleanSupplier.class, mockSettings);
+    private final BooleanSupplier enableFallback = mock(BooleanSupplier.class, mockSettings);
+    private final Clock clock = mock(Clock.class, mockSettings);
     private final AtomicLong errorCounter = new AtomicLong();
 
     private final IntSupplier proxyInstance = intSupplierForProxy(new ExperimentRunningProxy<>(u      }(j5  (b0f2716a61e018a00bbe37c55b0a8985af943d96ji5  Watlasdb-commons/src/test/java/com/palantir/common/proxy/PredicateSwitchedProxyTest.javajk5  modifiedjc5  Kjd5  Kjm5  Kjn5  https://github.com/palantir/atlasdb/blob/4c892d1511bf54c283179aeb0f616ce936e4738d/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.javajp5  https://github.com/palantir/atlasdb/raw/4c892d1511bf54c283179aeb0f616ce936e4738d/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.javajr5  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.java?ref=4c892d1511bf54c283179aeb0f616ce936e4738djt5  X~  @@ -19,14 +19,18 @@
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.withSettings;
 
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.function.IntConsumer;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class PredicateSwitchedProxyTest {
-    private final IntConsumer decorated = mock(IntConsumer.class);
-    private final IntConsumer delegate = mock(IntConsumer.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private final IntConsumer decorated = mock(IntConsumer.class, mockSettings);
+    private final IntConsumer delegate = mock(IntConsumer.class, mockSettings);
 
     private final AtomicBoolean atomicBoolean = new AtomicBoolean(false);
 u}(j5  (afb4f7f151215eb0eb16fab26719c6f0358957e5ji5  `atlasdb-commons/src/test/java/com/palantir/common/proxy/ReplaceIfExceptionMatchingProxyTest.javajk5  modifiedjc5  Kjd5  Kjm5  Kjn5  https://github.com/palantir/atlasdb/blob/4c892d1511bf54c283179aeb0f616ce936e4738d/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.javajp5  https://github.com/palantir/atlasdb/raw/4c892d1511bf54c283179aeb0f616ce936e4738d/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.javajr5  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.java?ref=4c892d1511bf54c283179aeb0f616ce936e4738djt5  Xl  @@ -29,16 +29,17 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.mockito.Mock;
+import org.mockito.MockMakers;
 import org.mockito.junit.MockitoJUnitRunner;
 
 // Mock is used as a convenient supplier, alternatives are rather verbose
 @SuppressWarnings("DirectInvocationOnMock")
 @RunWith(MockitoJUnitRunner.class)
 public class ReplaceIfExceptionMatchingProxyTest {
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private TestInterface delegate;
 
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private Supplier<TestInterface> supplier;
 
     interface TestInterface {u}(j5  (d8fe3c284ed462a646f9db9df6e46865f71c8b7fji5  Oatlasdb-commons/src/test/java/com/palantir/util/CachedComposedSupplierTest.javajk5  modifiedjc5  Kjd5  Kjm5  Kjn5  https://github.com/palantir/atlasdb/blob/4c892d1511bf54c283179aeb0f616ce936e4738d/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.javajp5  https://github.com/palantir/atlasdb/raw/4c892d1511bf54c283179aeb0f616ce936e4738d/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.javajr5  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.java?ref=4c892d1511bf54c283179aeb0f616ce936e4738djt5  X  @@ -16,7 +16,9 @@
 package com.palantir.util;
 
 import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.concurrent.ExecutorService;
@@ -25,7 +27,7 @@
 import java.util.function.Supplier;
 import org.junit.Before;
 import org.junit.Test;
-import org.mockito.Mockito;
+import org.mockito.MockMakers;
 
 public class CachedComposedSupplierTest {
     private long counter;
@@ -37,7 +39,7 @@ public class CachedComposedSupplierTest {
     public void setup() {
         counter = 0;
         supplierCounter = 0;
-        mockVersionedSupplier = Mockito.mock(Supplier.class);
+        mockVersionedSupplier = mock(Supplier.class, withSettings().mockMaker(MockMakers.SUBCLASS));
         testSupplier = new CachedComposedSupplier<>(this::countingFunction, mockVersionedSupplier);
     }
 u}(j5  (21ad962d9f363b09efeaba7f674e27e337cb763aji5  Katlasdb-commons/src/test/java/com/palantir/util/SafeShutdownRunnerTest.javajk5  modifiedjc5  Kjd5  Kjm5  K
jn5  https://github.com/palantir/atlasdb/blob/4c892d1511bf54c283179aeb0f616ce936e4738d/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.javajp5  https://github.com/palantir/atlasdb/raw/4c892d1511bf54c283179aeb0f616ce936e4738d/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.javajr5  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.java?ref=4c892d1511bf54c283179aeb0f616ce936e4738djt5  X  @@ -24,6 +24,7 @@
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import java.time.Duration;
@@ -32,14 +33,17 @@
 import java.util.stream.Stream;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class SafeShutdownRunnerTest {
     private static final RuntimeException EXCEPTION_1 = new RuntimeException("test");
     private static final RuntimeException EXCEPTION_2 = new RuntimeException("bleh");
 
-    private Runnable mockRunnable = mock(Runnable.class);
-    private Runnable throwingRunnable = mock(Runnable.class);
-    private Runnable blockingUninterruptibleRunnable = mock(Runnable.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private Runnable mockRunnable = mock(Runnable.class, mockSettings);
+    private Runnable throwingRunnable = mock(Runnable.class, mockSettings);
+    private Runnable blockingUninterruptibleRunnable = mock(Runnable.class, mockSettings);
 
     @Before
     public void setupMocks() {u}(j5  (66bef959146e2dc5dd5452e6f9606c9e4120c4f4ji5  Datlasdb-commons/src/test/java/com/palantir/util/TimedRunnerTest.javajk5  modifiedjc5  K	jd5  Kjm5  Kjn5  https://github.com/palantir/atlasdb/blob/4c892d1511bf54c283179aeb0f616ce936e4738d/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.javajp5  https://github.com/palantir/atlasdb/raw/4c892d1511bf54c283179aeb0f616ce936e4738d/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.javajr5  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.java?ref=4c892d1511bf54c283179aeb0f616ce936e4738djt5  X	  @@ -23,19 +23,23 @@
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.util.TimedRunner.TaskContext;
 import java.time.Duration;
 import java.util.concurrent.Callable;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public final class TimedRunnerTest {
     private static final RuntimeException EXCEPTION_1 = new RuntimeException("test");
     private static final RuntimeException EXCEPTION_2 = new RuntimeException("bleh");
 
-    private Runnable noOpRunnable = mock(Runnable.class);
-    private Runnable throwingRunnable = mock(Runnable.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private Runnable noOpRunnable = mock(Runnable.class, mockSettings);
+    private Runnable throwingRunnable = mock(Runnable.class, mockSettings);
 
     @Before
     public void setupMocks() {
@@ -46,7 +50,7 @@ public void setupMocks() {
     public void runnerRunsOneTask() throws Exception {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
 
-        Callable<Integer> task = mock(Callable.class);
+        Callable<Integer> task = mock(Callable.class, mockSettings);
         when(task.call()).thenReturn(5);
         int result = runner.run(TaskContext.create(task, noOpRunnable));
 
@@ -58,7 +62,7 @@ public void runnerRunsOneTask() throws Exception {
     @Test
     public void exceptionsAreThrownWhenRunningSingleton() {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
-        Runnable failureHandler = mock(Runnable.class);
+        Runnable failureHandler = mock(Runnable.class, mockSettings);
 
         assertThatThrownBy(() -> runner.run(TaskContext.createRunnable(throwingRunnable, failureHandler)))
                 .isEqualTo(EXCEPTION_1);
@@ -68,7 +72,7 @@ public void exceptionsAreThrownWhenRunningSingleton() {
     @Test
     public void correctSuppressedExceptionsAreThrownIfFailureHandlerThrows() {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
-        Runnable failureHandler = mock(Runnable.class);
+        Runnable failureHandler = mock(Runnable.class, mockSettings);
         doThrow(EXCEPTION_2).when(failureHandler).run();
 
         assertThatThrownBy(() -> runner.run(TaskContext.createRunnable(throwingRunnable, failureHandler)))u}(j5  (196c276969d650b1d6d0e72c152a4a1d49ef5f6eji5  
versions.lockjk5  modifiedjc5  Kjd5  Kjm5  Kjn5  _https://github.com/palantir/atlasdb/blob/4c892d1511bf54c283179aeb0f616ce936e4738d/versions.lockjp5  ^https://github.com/palantir/atlasdb/raw/4c892d1511bf54c283179aeb0f616ce936e4738d/versions.lockjr5  qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=4c892d1511bf54c283179aeb0f616ce936e4738djt5  X  @@ -200,8 +200,8 @@ jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.5 (6 constraints: 845987f4)
 junit:junit:4.13.2 (8 constraints: 5a9c5baf)
-net.bytebuddy:byte-buddy:1.14.3 (3 constraints: 3d25d791)
-net.bytebuddy:byte-buddy-agent:1.14.1 (1 constraints: 410b3fde)
+net.bytebuddy:byte-buddy:1.14.4 (3 constraints: 4025da91)
+net.bytebuddy:byte-buddy-agent:1.14.4 (1 constraints: 440b42de)
 net.java.dev.jna:jna:4.1.0 (2 constraints: 6e1bbbad)
 net.jpountz.lz4:lz4:1.3.0 (2 constraints: 971453a0)
 net.ltgt.gradle.incap:incap:0.2 (1 constraints: ea0d3b32)
@@ -293,7 +293,7 @@ org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.0 (3 constraints: c125b5a3)
 org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.5.0 (1 constraints: 4b0ea44e)
 org.jvnet:animal-sniffer-annotation:1.0 (1 constraints: f20b95eb)
 org.mindrot:jbcrypt:0.4 (2 constraints: 4714f171)
-org.mockito:mockito-core:5.2.0 (2 constraints: 51165c12)
+org.mockito:mockito-core:5.3.1 (2 constraints: 5316c412)
 org.mpierce.metrics.reservoir:hdrhistogram-metrics-reservoir:1.1.3 (1 constraints: 0d10f991)
 org.objenesis:objenesis:3.3 (2 constraints: c71412ab)
 org.openjdk.jmh:jmh-core:1.36 (2 constraints: f51525d9)u}(j5  (089fade66d09b3cbc4c42ee07a5dca286262895cji5  versions.propsjk5  modifiedjc5  Kjd5  Kjm5  Kjn5  `https://github.com/palantir/atlasdb/blob/4c892d1511bf54c283179aeb0f616ce936e4738d/versions.propsjp5  _https://github.com/palantir/atlasdb/raw/4c892d1511bf54c283179aeb0f616ce936e4738d/versions.propsjr5  rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=4c892d1511bf54c283179aeb0f616ce936e4738djt5  X  @@ -72,7 +72,7 @@ org.jboss.threads:jboss-threads = 3.5.0.Final
 org.jdbi:* = 3.30.0
 org.jmock:jmock* = 2.12.0
 org.mindrot:jbcrypt = 0.4
-org.mockito:* = 5.2.0
+org.mockito:* = 5.3.1
 org.openjdk.jmh:* = 1.36
 org.reflections:reflections = 0.10.2
 org.rocksdb:rocksdbjni = 7.9.2ueu(6e3a30e696ee75b5216d90ee061aabfc533cabb5}(sha(6e3a30e696ee75b5216d90ee061aabfc533cabb5node_idEC_kwDOAjP5fdoAKDZlM2EzMGU2OTZlZTc1YjUyMTZkOTBlZTA2MWFhYmZjNTMzY2FiYjUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-20T14:25:29Zu	committer}(j5  
Ahmed Alouanej5  aalouane@palantir.comj5  2023-04-20T14:25:29Zumessage0vanilla, trying to replicate gradle disappearingtree}(j5  (041e383a7370dc1c047517e65883a1c32306a6bfurl`https://api.github.com/repos/palantir/atlasdb/git/trees/041e383a7370dc1c047517e65883a1c32306a6bfuj5  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6e3a30e696ee75b5216d90ee061aabfc533cabb5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRBS1kACgkQPlMHVIT1
yhrAygf6AqKl69hEnkQKR9VP9HYaLqDuiNNEgrolDRwM+3rQw8LlyPjh37umQs1u
CNhR8hG6OlhDHmp77PM/noTCmbr1XpomcvIMKaxGzKTaO4SNBZCZZT663edT9pQ+
WhqZ2eye1woEDJr4G8ZP/RdiJyS7Z/eqMOqRF3kSCtlV+5vhUsAF7m1+jl4Zk0nh
mtVngt8hZVU+GYy3maHjHsG0JElzGhKJ6Wdf1Ltup5/QzVgwRTlUFBgVG4R376Dy
mUQld0Ln6PUEjGsfZmGWzlORcHvKsuwQ1gmFHriapkvMij1hiGZf9uvUKquluHvr
eujJxiQharYsp5SHhkuFTEi3ZoyNEg==
=KZv0
-----END PGP SIGNATURE-----payloadX  tree 041e383a7370dc1c047517e65883a1c32306a6bf
parent 0e042c5db32fd526cc9e1506788bee2cda4f3a43
author Ahmed Alouane <aalouane@palantir.com> 1682000729 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682000729 +0100

vanilla, trying to replicate gradle disappearing
uuj5  ^https://api.github.com/repos/palantir/atlasdb/commits/6e3a30e696ee75b5216d90ee061aabfc533cabb5html_urlShttps://github.com/palantir/atlasdb/commit/6e3a30e696ee75b5216d90ee061aabfc533cabb5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6e3a30e696ee75b5216d90ee061aabfc533cabb5/commentsj5  }(loginergo14idJj5  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j5  #https://api.github.com/users/ergo14j5  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj5  }(j5  ergo14j5  Jj5  MDQ6VXNlcjMwOTAzNzM2j5  4https://avatars.githubusercontent.com/u/30903736?v=4j5  h5j5  #https://api.github.com/users/ergo14j5  https://github.com/ergo14j5  -https://api.github.com/users/ergo14/followersj5  :https://api.github.com/users/ergo14/following{/other_user}j 6  3https://api.github.com/users/ergo14/gists{/gist_id}j6  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j6  1https://api.github.com/users/ergo14/subscriptionsj6  (https://api.github.com/users/ergo14/orgsj6  )https://api.github.com/users/ergo14/reposj
6  4https://api.github.com/users/ergo14/events{/privacy}j6  3https://api.github.com/users/ergo14/received_eventsj6  Userj6  uparents]}(j5  (0e042c5db32fd526cc9e1506788bee2cda4f3a43j5  ^https://api.github.com/repos/palantir/atlasdb/commits/0e042c5db32fd526cc9e1506788bee2cda4f3a43j5  Shttps://github.com/palantir/atlasdb/commit/0e042c5db32fd526cc9e1506788bee2cda4f3a43uastats}(totalK 	additionsK 	deletionsK ufiles]u(ec1e5993b2e3ecc5cb276b555cb66bab8e5e2a93}(sha(ec1e5993b2e3ecc5cb276b555cb66bab8e5e2a93node_idEC_kwDOAjP5fdoAKGVjMWU1OTkzYjJlM2VjYzVjYjI3NmI1NTVjYjY2YmFiOGU1ZTJhOTMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-06T20:35:33Zu	committer}(j86  Jeremy Kongj:6  jkong@palantir.comj<6  2023-06-06T20:35:33Zumessage5b test branchtree}(j06  (633394c7d56a425de5586d0e4aa007f7a248b08aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/633394c7d56a425de5586d0e4aa007f7a248b08aujH6  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ec1e5993b2e3ecc5cb276b555cb66bab8e5e2a93
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR/mJUACgkQTLdFKain
zjyHrwgAl/YhfeDWbXL/u3+ViyKthw+rJlnHLGxnQotPxRAPpj6tjzIPo7MAAqTv
8rqyJblh2Ksbc5YTcAn3isAneLbfKqJFO/N0tKyktVdu7zUiNJyrNKkMK4cW5yEb
j5ptIyZG/w5a1ybgyhcViknHKfdZOTOZZQ+Aq4mt2RuRzO0AVqBkj/p589hLideV
Iso7gzlm2m1iGiWOB9gQQHkW7GojLTLx6IoWvlgFNquHmEOo8/eYEXlKJIGLgYkJ
jKnkAUUSLyIM7wVqoRXYYNKWmKQr2Q8S0HVFYxKIdvhYrkGkki7VPYJ/16cJOIwb
L+JzkBHiuS9FKb896nXrBr5dw8WiGQ==
=7xvi
-----END PGP SIGNATURE-----payloadtree 633394c7d56a425de5586d0e4aa007f7a248b08a
parent 65eadc920dbc517358638c195f224ae5c053b20d
author Jeremy Kong <jkong@palantir.com> 1686083733 +0100
committer Jeremy Kong <jkong@palantir.com> 1686083733 +0100

5b test branch
uujH6  ^https://api.github.com/repos/palantir/atlasdb/commits/ec1e5993b2e3ecc5cb276b555cb66bab8e5e2a93html_urlShttps://github.com/palantir/atlasdb/commit/ec1e5993b2e3ecc5cb276b555cb66bab8e5e2a93comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ec1e5993b2e3ecc5cb276b555cb66bab8e5e2a93/commentsj66  }(login
jeremyk-91idJZ j26  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jH6  'https://api.github.com/users/jeremyk-91jV6  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj>6  }(j[6  
jeremyk-91j]6  JZ j26  MDQ6VXNlcjU5NTU1MTA=j_6  3https://avatars.githubusercontent.com/u/5955510?v=4ja6  h5jH6  'https://api.github.com/users/jeremyk-91jV6  https://github.com/jeremyk-91jd6  1https://api.github.com/users/jeremyk-91/followersjf6  >https://api.github.com/users/jeremyk-91/following{/other_user}jh6  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jj6  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jl6  5https://api.github.com/users/jeremyk-91/subscriptionsjn6  ,https://api.github.com/users/jeremyk-91/orgsjp6  -https://api.github.com/users/jeremyk-91/reposjr6  8https://api.github.com/users/jeremyk-91/events{/privacy}jt6  7https://api.github.com/users/jeremyk-91/received_eventsjv6  Userjx6  uparents]}(j06  (65eadc920dbc517358638c195f224ae5c053b20djH6  ^https://api.github.com/repos/palantir/atlasdb/commits/65eadc920dbc517358638c195f224ae5c053b20djV6  Shttps://github.com/palantir/atlasdb/commit/65eadc920dbc517358638c195f224ae5c053b20duastats}(totalK	additionsKy	deletionsKufiles](}(j06  (192b5967ea022866ffdaf2ac687c1310efe817a0filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj6  Kj6  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ec1e5993b2e3ecc5cb276b555cb66bab8e5e2a93/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ec1e5993b2e3ecc5cb276b555cb66bab8e5e2a93/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=ec1e5993b2e3ecc5cb276b555cb66bab8e5e2a93patchX  @@ -278,7 +278,7 @@ private enum State {
 
     /**
      * @param immutableTimestamp If we find a row written before the immutableTimestamp we don't need to grab a read
-     *                           lock for it because we know that no writers exist.
+     * lock for it because we know that no writers exist.
      * @param preCommitCondition This check must pass for this transaction to commit.
      */
     /* package */ SnapshotTransaction(
@@ -578,7 +578,7 @@ private Iterator<Map.Entry<Cell, byte[]>> getSortedColumnsLocalWrites(
     /**
      * Provides comparator to sort cells by columns (sorted lexicographically on byte ordering) and then in the order
      * of input rows.
-     * */
+     */
     @VisibleForTesting
     static Comparator<Cell> columnOrderThenPreserveInputRowOrder(Iterable<byte[]> rows) {
         return Cell.COLUMN_COMPARATOR.thenComparing(
@@ -599,7 +599,7 @@ protected static <V> Iterator<Map.Entry<Cell, V>> mergeByComparator(
      * possibility of needing a second batch of fetching.
      * If the batch hint is large, split batch size across rows to avoid loading too much data, while accepting that
      * second fetches may be needed to get everyone their data.
-     * */
+     */
     private static int getPerRowBatchSize(BatchColumnRangeSelection columnRangeSelection, int distinctRowCount) {
         return Math.max(
                 Math.min(MIN_BATCH_SIZE_FOR_DISTRIBUTED_LOAD, columnRangeSelection.getBatchHint()),
@@ -696,7 +696,11 @@ private ClosableIterator<Map.Entry<Cell, byte[]>> getRowColumnRangePostFiltered(
                 batchProvider,
                 rawIterator,
                 columnRangeSelection,
-                () -> validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp()),
+                () -> {
+                    /*
+                     * Hello. This is a bug.
+                     */
+                },
                 raw -> getWithPostFilteringSync(tableRef, raw, Value.GET_VALUE));
     }
 
@@ -776,7 +780,7 @@ protected Map.Entry<byte[], RowColumnRangeIterator> computeNext() {
                     protected Map.Entry<Cell, Value> computeNext() {
                         if (!peekableRawResults.hasNext()
                                 || !Arrays.equals(
-                                        peekableRawResults.peek().getKey().getRowName(), nextRowName)) {
+                                peekableRawResults.peek().getKey().getRowName(), nextRowName)) {
                             return endOfData();
                         }
                         return peekableRawResults.next();
@@ -1168,7 +1172,7 @@ private List<Map.Entry<Cell, byte[]>> getPostFilteredWithLocalWrites(
                 postFiltered.entrySet(),
                 Predicates.compose(Predicates.in(prePostFilterCells.keySet()), MapEntries.getKeyFunction()));
         Collection<Map.Entry<Cell, byte[]>> localWritesInRange = getLocalWritesForRange(
-                        tableRef, rangeRequest.getStartInclusive(), endRowExclusive, rangeRequest.getColumnNames())
+                tableRef, rangeRequest.getStartInclusive(), endRowExclusive, rangeRequest.getColumnNames())
                 .entrySet();
         return mergeInLocalWrites(
                 tableRef, postFilteredCells.iterator(), localWritesInRange.iterator(), rangeRequest.isReverse());
@@ -1205,9 +1209,9 @@ private <K extends Exception> boolean getBatchingVisitableFromIterator(
             int preFilterBatchSize)
             throws K {
         try (ClosableIterator<RowResult<byte[]>> postFilterIterator =
-                postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
+                     postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
             Iterator<RowResult<byte[]>> localWritesInRange = Cells.createRowView(getLocalWritesForRange(
-                            tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
+                    tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
                     .entrySet());
             Iterator<RowResult<byte[]>> mergeIterators =
                     mergeInLocalWritesRows(postFilterIterator, localWritesInRange, range.isReverse(), tableRef);
@@ -1324,7 +1328,7 @@ private ConcurrentNavigableMap<Cell, byte[]> getLocalWrites(TableReference table
 
     /**
      * This includes deleted writes as zero length byte arrays, be sure to strip them out.
-     *
+     * <p>
      * For the selectedColumns parameter, empty set means all columns. This is unfortunate, but follows the semantics of
      * {@link RangeRequest}.
      */
@@ -1833,7 +1837,7 @@ private boolean isStillRunning() {
 
     /**
      * Returns true iff the transaction is known to have successfully committed.
-     *
+     * <p>
      * Be careful when using this method! A transaction that the client thinks has failed could actually have
      * committed as far as the key-value service is concerned.
      */
@@ -2060,7 +2064,7 @@ private void timedAndTraced(String timerName, Runnable runnable) {
 
     private <T> T timedAndTraced(String timerName, Supplier<T> supplier) {
         try (Timer.Context timer = getTimer(timerName).time();
-                CloseableTracer tracer = CloseableTracer.startSpan(timerName)) {
+             CloseableTracer tracer = CloseableTracer.startSpan(timerName)) {
             return supplier.get();
         }
     }
@@ -2494,7 +2498,7 @@ private Map<Long, Long> getCommitTimestampsSync(
     /**
      * This will attempt to put the commitTimestamp into the DB.
      *
-     * @throws TransactionLockTimeoutException  If our locks timed out while trying to commit.
+     * @throws TransactionLockTimeoutException If our locks timed out while trying to commit.
      * @throws TransactionCommitFailedException failed when committing in a way that isn't retriable
      */
     private void putCommitTimestamp(long commitTimestamp, LockToken locksToken, TransactionService transactionService)u}(j06  (da873e2ccb09d77f8d293764a970389816ee4adaj6  latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj6  modifiedj6  Khj6  Krj6  Kj6  https://github.com/palantir/atlasdb/blob/ec1e5993b2e3ecc5cb276b555cb66bab8e5e2a93/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj6  https://github.com/palantir/atlasdb/raw/ec1e5993b2e3ecc5cb276b555cb66bab8e5e2a93/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj6  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=ec1e5993b2e3ecc5cb276b555cb66bab8e5e2a93j6  X9  @@ -150,17 +150,7 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
 
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
-                .run(
-                        createSingleRowTwoCellsWorkflowValidator(
-                                transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
-                        createRingWorkflowValidator(
-                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()),
-                        createTransientRowsWorkflowValidator(
-                                transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
-                        createSingleBusyCellWorkflowValidator(
-                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
-                        createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
-                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
+                .run(createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -193,109 +183,109 @@ private void waitForTransactionStoreFactoryToBeInitialized(AtlasDbTransactionSto
         System.exit(1);
     }
 
-    private WorkflowAndInvariants<Workflow> createTransientRowsWorkflowValidator(
-            AtlasDbTransactionStoreFactory transactionStoreFactory,
-            TransientRowsWorkflowConfiguration workflowConfig,
-            LifecycleEnvironment lifecycle) {
-        ExecutorService executorService =
-                createExecutorService(workflowConfig, lifecycle, TransientRowsWorkflows.class);
-        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
-                Map.of(
-                        workflowConfig.tableConfiguration().tableName(),
-                        workflowConfig.tableConfiguration().isolationLevel()),
-                Set.of());
-        return WorkflowAndInvariants.builder()
-                .workflow(TransientRowsWorkflows.create(
-                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
-                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
-                        TransientRowsWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
-                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
-                .addInvariantReporters(TransientRowsWorkflows.getSummaryLogInvariantReporter(workflowConfig))
-                .build();
-    }
-
-    private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
-            AtlasDbTransactionStoreFactory transactionStoreFactory,
-            SingleBusyCellWorkflowConfiguration workflowConfig,
-            LifecycleEnvironment lifecycle) {
-        ExecutorService readExecutor = lifecycle
-                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-read")
-                .minThreads(workflowConfig.maxThreadCount() / 2)
-                .maxThreads(workflowConfig.maxThreadCount() / 2)
-                .build();
-        ExecutorService writeExecutor = lifecycle
-                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-write")
-                .minThreads(workflowConfig.maxThreadCount() / 2)
-                .maxThreads(workflowConfig.maxThreadCount() / 2)
-                .build();
-        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
-                Map.of(
-                        workflowConfig.tableConfiguration().tableName(),
-                        workflowConfig.tableConfiguration().isolationLevel()),
-                Set.of());
-        return WorkflowAndInvariants.of(
-                SingleBusyCellWorkflows.create(
-                        transactionStore,
-                        workflowConfig,
-                        MoreExecutors.listeningDecorator(readExecutor),
-                        MoreExecutors.listeningDecorator(writeExecutor)),
-                new DurableWritesInvariantMetricReporter(
-                        SingleBusyCellWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)),
-                SerializableInvariantLogReporter.INSTANCE);
-    }
-
-    private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
-            AtlasDbTransactionStoreFactory transactionStoreFactory,
-            RingWorkflowConfiguration workflowConfig,
-            LifecycleEnvironment lifecycle) {
-        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RingWorkflows.class);
-        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
-                Map.of(
-                        workflowConfig.tableConfiguration().tableName(),
-                        workflowConfig.tableConfiguration().isolationLevel()),
-                Set.of());
-        return WorkflowAndInvariants.of(RingWorkflows.create(
-                transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)));
-    }
-
-    private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator(
-            AtlasDbTransactionStoreFactory transactionStoreFactory,
-            SingleRowTwoCellsWorkflowConfiguration workflowConfig,
-            LifecycleEnvironment lifecycle) {
-        ExecutorService executorService =
-                createExecutorService(workflowConfig, lifecycle, SingleRowTwoCellsWorkflows.class);
-        TransactionStore transactionStore = transactionStoreFactory.create(
-                Map.of(
-                        workflowConfig.tableConfiguration().tableName(),
-                        workflowConfig.tableConfiguration().isolationLevel()),
-                Set.of());
-        return WorkflowAndInvariants.builder()
-                .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
-                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
-                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
-                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
-                        DurableWritesMetrics.of(taggedMetricRegistry)))
-                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
-                .build();
-    }
-
-    private WorkflowAndInvariants<Workflow> createBankBalanceWorkflow(
-            AtlasDbTransactionStoreFactory transactionStoreFactory,
-            BankBalanceWorkflowConfiguration workflowConfig,
-            LifecycleEnvironment lifecycle) {
-        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, BankBalanceWorkflows.class);
-        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
-                Map.of(
-                        workflowConfig.tableConfiguration().tableName(),
-                        workflowConfig.tableConfiguration().isolationLevel()),
-                Set.of());
-        return WorkflowAndInvariants.builder()
-                .workflow(BankBalanceWorkflows.create(
-                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
-                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
-                        BankBalanceWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
-                .build();
-    }
+//    private WorkflowAndInvariants<Workflow> createTransientRowsWorkflowValidator(
+//            AtlasDbTransactionStoreFactory transactionStoreFactory,
+//            TransientRowsWorkflowConfiguration workflowConfig,
+//            LifecycleEnvironment lifecycle) {
+//        ExecutorService executorService =
+//                createExecutorService(workflowConfig, lifecycle, TransientRowsWorkflows.class);
+//        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+//                Map.of(
+//                        workflowConfig.tableConfiguration().tableName(),
+//                        workflowConfig.tableConfiguration().isolationLevel()),
+//                Set.of());
+//        return WorkflowAndInvariants.builder()
+//                .workflow(TransientRowsWorkflows.create(
+//                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+//                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+//                        TransientRowsWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+//                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+//                .addInvariantReporters(TransientRowsWorkflows.getSummaryLogInvariantReporter(workflowConfig))
+//                .build();
+//    }
+//
+//    private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
+//            AtlasDbTransactionStoreFactory transactionStoreFactory,
+//            SingleBusyCellWorkflowConfiguration workflowConfig,
+//            LifecycleEnvironment lifecycle) {
+//        ExecutorService readExecutor = lifecycle
+//                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-read")
+//                .minThreads(workflowConfig.maxThreadCount() / 2)
+//                .maxThreads(workflowConfig.maxThreadCount() / 2)
+//                .build();
+//        ExecutorService writeExecutor = lifecycle
+//                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-write")
+//                .minThreads(workflowConfig.maxThreadCount() / 2)
+//                .maxThreads(workflowConfig.maxThreadCount() / 2)
+//                .build();
+//        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+//                Map.of(
+//                        workflowConfig.tableConfiguration().tableName(),
+//                        workflowConfig.tableConfiguration().isolationLevel()),
+//                Set.of());
+//        return WorkflowAndInvariants.of(
+//                SingleBusyCellWorkflows.create(
+//                        transactionStore,
+//                        workflowConfig,
+//                        MoreExecutors.listeningDecorator(readExecutor),
+//                        MoreExecutors.listeningDecorator(writeExecutor)),
+//                new DurableWritesInvariantMetricReporter(
+//                        SingleBusyCellWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)),
+//                SerializableInvariantLogReporter.INSTANCE);
+//    }
+//
+//    private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
+//            AtlasDbTransactionStoreFactory transactionStoreFactory,
+//            RingWorkflowConfiguration workflowConfig,
+//            LifecycleEnvironment lifecycle) {
+//        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RingWorkflows.class);
+//        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+//                Map.of(
+//                        workflowConfig.tableConfiguration().tableName(),
+//                        workflowConfig.tableConfiguration().isolationLevel()),
+//                Set.of());
+//        return WorkflowAndInvariants.of(RingWorkflows.create(
+//                transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)));
+//    }
+//
+//    private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator(
+//            AtlasDbTransactionStoreFactory transactionStoreFactory,
+//            SingleRowTwoCellsWorkflowConfiguration workflowConfig,
+//            LifecycleEnvironment lifecycle) {
+//        ExecutorService executorService =
+//                createExecutorService(workflowConfig, lifecycle, SingleRowTwoCellsWorkflows.class);
+//        TransactionStore transactionStore = transactionStoreFactory.create(
+//                Map.of(
+//                        workflowConfig.tableConfiguration().tableName(),
+//                        workflowConfig.tableConfiguration().isolationLevel()),
+//                Set.of());
+//        return WorkflowAndInvariants.builder()
+//                .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
+//                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+//                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+//                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
+//                        DurableWritesMetrics.of(taggedMetricRegistry)))
+//                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+//                .build();
+//    }
+//
+//    private WorkflowAndInvariants<Workflow> createBankBalanceWorkflow(
+//            AtlasDbTransactionStoreFactory transactionStoreFactory,
+//            BankBalanceWorkflowConfiguration workflowConfig,
+//            LifecycleEnvironment lifecycle) {
+//        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, BankBalanceWorkflows.class);
+//        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+//                Map.of(
+//                        workflowConfig.tableConfiguration().tableName(),
+//                        workflowConfig.tableConfiguration().isolationLevel()),
+//                Set.of());
+//        return WorkflowAndInvariants.builder()
+//                .workflow(BankBalanceWorkflows.create(
+//                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+//                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+//                        BankBalanceWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+//                .build();
+//    }
 
     private WorkflowAndInvariants<Workflow> createRandomWorkflow(
             AtlasDbTransactionStoreFactory transactionStoreFactory,u}(j06  (8b045b80cc1e5988068701836456c72bc19c4023j6  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj6  modifiedj6  Kj6  Kj6  Kj6  https://github.com/palantir/atlasdb/blob/ec1e5993b2e3ecc5cb276b555cb66bab8e5e2a93/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj6  https://github.com/palantir/atlasdb/raw/ec1e5993b2e3ecc5cb276b555cb66bab8e5e2a93/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj6  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=ec1e5993b2e3ecc5cb276b555cb66bab8e5e2a93j6  X  @@ -110,7 +110,7 @@ public List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRang
                             tableReference,
                             List.of(AtlasDbUtils.toAtlasKey(row)),
                             BatchColumnRangeSelection.create(
-                                    AtlasDbUtils.toAtlasColumnRangeSelection(columnRangeSelection), 100));
+                                    AtlasDbUtils.toAtlasColumnRangeSelection(columnRangeSelection), 1));
                     List<ColumnValue> columnsAndValues = EntryStream.of(iterators.get(AtlasDbUtils.toAtlasKey(row)))
                             .mapKeys(Cell::getColumnName)
                             .mapKeys(AtlasDbUtils::fromAtlasColumn)ueu(6eb27d45a5b008a3acde03089fa4790c6c1ba6d2}(sha(6eb27d45a5b008a3acde03089fa4790c6c1ba6d2node_idEC_kwDOAjP5fdoAKDZlYjI3ZDQ1YTViMDA4YTNhY2RlMDMwODlmYTQ3OTBjNmMxYmE2ZDIcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-13T16:09:13Zu	committer}(j6  	Tom Papkej6  tpapke@palantir.comj6  2023-06-13T16:09:13Zumessage7Don't set to UNKNOWN if we don't have to

Tidy up teststree}(j6  (456961240f43ef0d1a983fd309732c5dc05ae454url`https://api.github.com/repos/palantir/atlasdb/git/trees/456961240f43ef0d1a983fd309732c5dc05ae454uj6  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6eb27d45a5b008a3acde03089fa4790c6c1ba6d2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSIlKkACgkQmF9s0kaF
Iw3WJAf9GxHrlJxn1CRDjLnGjnrZtlVIL2F9ALFBkDDM3/KQsF/1NGuOOP3gukpb
/iXp2Bt6k8BZdCovjblPfdyJPI3urrzlORBcE4DyteZTVkdJsA6XlEg1fbKi8A7v
1jkLXeO3l9yBxizVQJCJBC9dNie/0fmUTzJ60aCp1Ka3liTsAvP3qxRi6yN4EKdU
6q6+dr6K9ALEuzMkKdSPCkZ8dhUdc8tB9gV6WZScKw1Rp0k4ILrs+qR3GH/qiDCo
g1L/QB+wBK7rDDAiSrH2xrYJWY0SPNyA6lJHpz5CtYjFUyZINcgUXik2zbVkIZYa
C5yinMFg1msJPYXjPxSpwd9DSB1ugg==
=nCgH
-----END PGP SIGNATURE-----payloadX
  tree 456961240f43ef0d1a983fd309732c5dc05ae454
parent 98ffafa0c98936bf53e37cb67809ada4bdf6c67b
author Tom Papke <tpapke@palantir.com> 1686672553 +0100
committer Tom Papke <tpapke@palantir.com> 1686672553 +0100

Don't set to UNKNOWN if we don't have to

Tidy up tests
uuj6  ^https://api.github.com/repos/palantir/atlasdb/commits/6eb27d45a5b008a3acde03089fa4790c6c1ba6d2html_urlShttps://github.com/palantir/atlasdb/commit/6eb27d45a5b008a3acde03089fa4790c6c1ba6d2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6eb27d45a5b008a3acde03089fa4790c6c1ba6d2/commentsj6  }(login	ToemmscheidJboj6  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j6  &https://api.github.com/users/Toemmschej6  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj6  }(j6  	Toemmschej6  Jboj6  MDQ6VXNlcjQzNjc1NDkwj6  4https://avatars.githubusercontent.com/u/43675490?v=4j6  h5j6  &https://api.github.com/users/Toemmschej6  https://github.com/Toemmschej6  0https://api.github.com/users/Toemmsche/followersj6  =https://api.github.com/users/Toemmsche/following{/other_user}j6  6https://api.github.com/users/Toemmsche/gists{/gist_id}j6  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j6  4https://api.github.com/users/Toemmsche/subscriptionsj6  +https://api.github.com/users/Toemmsche/orgsj6  ,https://api.github.com/users/Toemmsche/reposj6  7https://api.github.com/users/Toemmsche/events{/privacy}j6  6https://api.github.com/users/Toemmsche/received_eventsj6  Userj6  uparents]}(j6  (98ffafa0c98936bf53e37cb67809ada4bdf6c67bj6  ^https://api.github.com/repos/palantir/atlasdb/commits/98ffafa0c98936bf53e37cb67809ada4bdf6c67bj6  Shttps://github.com/palantir/atlasdb/commit/98ffafa0c98936bf53e37cb67809ada4bdf6c67buastats}(totalK	additionsK	deletionsKufiles](}(j6  (d57cbdea9a08f8acf594a0a01b851c6e364f759efilenameQlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javastatusmodifiedj7  Kj7  KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/6eb27d45a5b008a3acde03089fa4790c6c1ba6d2/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6eb27d45a5b008a3acde03089fa4790c6c1ba6d2/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=6eb27d45a5b008a3acde03089fa4790c6c1ba6d2patchX  @@ -17,7 +17,7 @@
 package com.palantir.lock.impl;
 
 import com.google.common.annotations.VisibleForTesting;
-import com.google.common.base.Strings;
+import com.google.common.base.MoreObjects;
 import com.google.common.collect.ImmutableMap;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.lock.DebugThreadInfoConfiguration;
@@ -84,10 +84,10 @@ public Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot(
     void takeSnapshot() {
         this.lastKnownThreadInfoSnapshot = tokenMapSupplier.get().keySet().stream()
                 .flatMap(token -> {
-                    LockClientAndThread clientThread =
-                            token.getClient() == null || Strings.isNullOrEmpty(token.getRequestingThread())
-                                    ? LockClientAndThread.UNKNOWN
-                                    : LockClientAndThread.of(token.getClient(), token.getRequestingThread());
+                    LockClientAndThread clientThread = LockClientAndThread.of(
+                            MoreObjects.firstNonNull(token.getClient(), LockClientAndThread.UNKNOWN.client()),
+                            MoreObjects.firstNonNull(
+                                    token.getRequestingThread(), LockClientAndThread.UNKNOWN.thread()));
                     return token.getLockDescriptors().stream()
                             .map(lockDescriptor -> Map.entry(lockDescriptor, clientThread));
                 })u}(j6  (23a46c8929d29f340e7f895d579d963c38b9e10bj7  Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javaj!7  modifiedj7  Kj7  Kj#7  Kj$7  https://github.com/palantir/atlasdb/blob/6eb27d45a5b008a3acde03089fa4790c6c1ba6d2/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj&7  https://github.com/palantir/atlasdb/raw/6eb27d45a5b008a3acde03089fa4790c6c1ba6d2/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj(7  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=6eb27d45a5b008a3acde03089fa4790c6c1ba6d2j*7  X	  @@ -33,7 +33,6 @@
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
-import java.util.Map.Entry;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutorService;
@@ -79,7 +78,7 @@ public void initialThreadInfoIsEmpty() {
     }
 
     @Test
-    public void recordsThreadInfo_singleLock() throws InterruptedException {
+    public void recordsThreadInfoOnSingleLock() throws InterruptedException {
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
         snapshotRunner.takeSnapshot();
 
@@ -88,7 +87,7 @@ public void recordsThreadInfo_singleLock() throws InterruptedException {
     }
 
     @Test
-    public void recordsThreadInfo_multipleUniqueLocks_fromDifferentThreads() throws InterruptedException {
+    public void recordsThreadInfoOnMultipleUniqueLocksFromDifferentThreads() throws InterruptedException {
         int numThreads = 10;
         int numLocksPerThread = 10;
 
@@ -113,18 +112,13 @@ public void recordsThreadInfo_multipleUniqueLocks_fromDifferentThreads() throws
 
         snapshotRunner.takeSnapshot();
 
-        Map<LockDescriptor, LockClientAndThread> expected = locksPerThread.keySet().stream()
-                .flatMap(threadName -> locksPerThread.get(threadName).stream()
-                        .map(lock -> Map.entry(lock, LockClientAndThread.of(LockClient.ANONYMOUS, threadName))))
-                .collect(Collectors.toMap(Entry::getKey, Entry::getValue));
-
-        expected.forEach((lock, clientThread) -> {
-            assertThat(getLatestThreadInfoForLock(lock)).isEqualTo(clientThread);
-        });
+        locksPerThread.forEach((threadName, lockDescriptors) ->
+                lockDescriptors.forEach(lock -> assertThat(getLatestThreadInfoForLock(lock))
+                        .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, threadName))));
     }
 
     @Test
-    public void recordsThreadInfo_sharedLock_fromDifferentThreads() throws InterruptedException {
+    public void recordsThreadInfoOnSharedLockFromDifferentThreads() throws InterruptedException {
         LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
                 .withCreatingThreadName(TEST_THREAD_1)
                 .build();ueu(c7a555d6f2ef6bfbe3e113b7f1dfaf03d3490019}(sha(c7a555d6f2ef6bfbe3e113b7f1dfaf03d3490019node_idEC_kwDOAjP5fdoAKGM3YTU1NWQ2ZjJlZjZiZmJlM2UxMTNiN2YxZGZhZjAzZDM0OTAwMTkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T23:54:42Zu	committer}(j>7  
Ahmed Alouanej@7  aalouane@palantir.comjB7  2023-05-15T23:54:42Zumessagefootree}(j67  (929e8e488a6cf542c228e2716640938c4b0379d6url`https://api.github.com/repos/palantir/atlasdb/git/trees/929e8e488a6cf542c228e2716640938c4b0379d6ujN7  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c7a555d6f2ef6bfbe3e113b7f1dfaf03d3490019
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRixkIACgkQPlMHVIT1
yhrx6Qf/Vs9BIaXc/vju1ndwpSj2NUyfDUhSxV9mGdss+JIDpyw/dOzVpVhVoxGf
2z5ELASpdVyQxVmfCPtHR8GIzWGZVikkzDYN4gObPlWDepRKtiOrV+MxU/MccIj9
A8BrLQ6tDjVTwJNtO47vmnp7eVqB8h1hiHpP7aomNI5WefKf2HvgpDphQw6+Tc04
V0t1JTEXAhC3gWoMccoi5wuHoHMmQ3bjb8Sl63s07wlaqNgRVpT42iNIsdxWc1/d
hz1pDvFFB/fLD28c4mJ97/0NjwUzPLyLeOZS9MjG5zV16MmBXL6k3CRYQXEJY3Xy
N213LeLka0D8WNzgWyFE+u6VSRJOVQ==
=kc2w
-----END PGP SIGNATURE-----payloadtree 929e8e488a6cf542c228e2716640938c4b0379d6
parent e03a71421c88df6b753355018b374be3a837c5e5
author Ahmed Alouane <aalouane@palantir.com> 1684194882 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684194882 +0100

foo
uujN7  ^https://api.github.com/repos/palantir/atlasdb/commits/c7a555d6f2ef6bfbe3e113b7f1dfaf03d3490019html_urlShttps://github.com/palantir/atlasdb/commit/c7a555d6f2ef6bfbe3e113b7f1dfaf03d3490019comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c7a555d6f2ef6bfbe3e113b7f1dfaf03d3490019/commentsj<7  }(loginergo14idJj87  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jN7  #https://api.github.com/users/ergo14j\7  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujD7  }(ja7  ergo14jc7  Jj87  MDQ6VXNlcjMwOTAzNzM2je7  4https://avatars.githubusercontent.com/u/30903736?v=4jg7  h5jN7  #https://api.github.com/users/ergo14j\7  https://github.com/ergo14jj7  -https://api.github.com/users/ergo14/followersjl7  :https://api.github.com/users/ergo14/following{/other_user}jn7  3https://api.github.com/users/ergo14/gists{/gist_id}jp7  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jr7  1https://api.github.com/users/ergo14/subscriptionsjt7  (https://api.github.com/users/ergo14/orgsjv7  )https://api.github.com/users/ergo14/reposjx7  4https://api.github.com/users/ergo14/events{/privacy}jz7  3https://api.github.com/users/ergo14/received_eventsj|7  Userj~7  uparents]}(j67  (e03a71421c88df6b753355018b374be3a837c5e5jN7  ^https://api.github.com/repos/palantir/atlasdb/commits/e03a71421c88df6b753355018b374be3a837c5e5j\7  Shttps://github.com/palantir/atlasdb/commit/e03a71421c88df6b753355018b374be3a837c5e5uastats}(totalK	additionsK	deletionsKufiles]}(j67  (2ee3c3349870e0392598b86a4bb22f3f527e3bc9filename.circleci/config.ymlstatusmodifiedj7  Kj7  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/c7a555d6f2ef6bfbe3e113b7f1dfaf03d3490019/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/c7a555d6f2ef6bfbe3e113b7f1dfaf03d3490019/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=c7a555d6f2ef6bfbe3e113b7f1dfaf03d3490019patchXk  @@ -117,7 +117,7 @@ jobs:
           fingerprints:
             - "b6:ba:27:37:84:8f:eb:b0:ee:0b:7c:c1:fc:18:32:5f"
       - run: sudo apt-get update
-      - run: sudo apt-get install python python3-pip
+      - run: sudo apt-get install python2 python3-pip
       - run:
           command: |
             # hack - notion of "owners" isn't supported in Circle 2uau(fc29518ef561cd0425a5d912a68ae8ef5602f195}(sha(fc29518ef561cd0425a5d912a68ae8ef5602f195node_idEC_kwDOAjP5fdoAKGZjMjk1MThlZjU2MWNkMDQyNWE1ZDkxMmE2OGFlOGVmNTYwMmYxOTUcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-03-09T17:51:04Zu	committer}(j7  GitHubj7  noreply@github.comj7  2023-03-09T17:51:04ZumessageaDurableWrites invariant check  (#6459)

Workload server now has a durables writes invariant checktree}(j7  (0e1f941ee2b5dc129392dcdf21eb7c7909d27333url`https://api.github.com/repos/palantir/atlasdb/git/trees/0e1f941ee2b5dc129392dcdf21eb7c7909d27333uj7  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fc29518ef561cd0425a5d912a68ae8ef5602f195
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkChyICRBK7hj4Ov3rIwAAJOUIAItFCK4tXww0msECSE3YXFlk
poGwNkT2NSv87dLihlzN2+4nahC484SYz8INb6491boRRGPoH0OT04ygtess/oRQ
nz7fhjRVSeBP0c2EDLH2VxxjPJ7oZauG4BP4Yrsjm83Zwny+gXal/dobdbSy44d5
OV3nAukjgJK6JeoaX5m6VM++Q2bAxtocL54qSTTxu4fih1neJfsHBHj9pfSRAoA/
hGBs0yM/cOj1vvNJDlWtNBNVdsJOzEqt689xhFv+5fFPf7YyJmcvFWpNL1KlICcz
/GiLTmTxszbIUnazUvkNH+lQM3JtL6Ud9AdzV/cmSxrKGf2rJiZrlxgenktQlI4=
=I17k
-----END PGP SIGNATURE-----
payloadX4  tree 0e1f941ee2b5dc129392dcdf21eb7c7909d27333
parent 188f73b744c3616b1597253b6187c0914b6c3854
author Sam-Kramer <sam.c.kramer@gmail.com> 1678384264 +0000
committer GitHub <noreply@github.com> 1678384264 +0000

DurableWrites invariant check  (#6459)

Workload server now has a durables writes invariant check
uuj7  ^https://api.github.com/repos/palantir/atlasdb/commits/fc29518ef561cd0425a5d912a68ae8ef5602f195html_urlShttps://github.com/palantir/atlasdb/commit/fc29518ef561cd0425a5d912a68ae8ef5602f195comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fc29518ef561cd0425a5d912a68ae8ef5602f195/commentsj7  }(login
Sam-KrameridJ^2_ j7  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j7  'https://api.github.com/users/Sam-Kramerj7  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj7  }(j7  web-flowj7  J/j7  MDQ6VXNlcjE5ODY0NDQ3j7  4https://avatars.githubusercontent.com/u/19864447?v=4j7  h5j7  %https://api.github.com/users/web-flowj7  https://github.com/web-flowj7  /https://api.github.com/users/web-flow/followersj7  <https://api.github.com/users/web-flow/following{/other_user}j7  5https://api.github.com/users/web-flow/gists{/gist_id}j7  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j7  3https://api.github.com/users/web-flow/subscriptionsj7  *https://api.github.com/users/web-flow/orgsj7  +https://api.github.com/users/web-flow/reposj7  6https://api.github.com/users/web-flow/events{/privacy}j7  5https://api.github.com/users/web-flow/received_eventsj7  Userj7  uparents]}(j7  (188f73b744c3616b1597253b6187c0914b6c3854j7  ^https://api.github.com/repos/palantir/atlasdb/commits/188f73b744c3616b1597253b6187c0914b6c3854j7  Shttps://github.com/palantir/atlasdb/commit/188f73b744c3616b1597253b6187c0914b6c3854uastats}(totalM}	additionsMf	deletionsKufiles](}(j7  (7cec9291798ecfcf36a78c28f59165b6af8b6a10filename^atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/cache/StructureHolder.javastatusmodifiedj8  Kj8  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FStructureHolder.javaraw_urlhttps://github.com/palantir/atlasdb/raw/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FStructureHolder.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FStructureHolder.java?ref=fc29518ef561cd0425a5d912a68ae8ef5602f195patchX=  @@ -23,7 +23,7 @@
  * Utility class to make manipulating {@link io.vavr.collection.Map} and {@link io.vavr.collection.Set} less
  * error-prone as all methods that modify state return a *new* instance in vavr.
  */
-final class StructureHolder<V> {
+public final class StructureHolder<V> {
     private final Supplier<V> initialValueSupplier;
     private V structure;
 
@@ -32,23 +32,23 @@ private StructureHolder(Supplier<V> initialValueSupplier) {
         this.structure = initialValueSupplier.get();
     }
 
-    synchronized void with(Function<V, V> mutator) {
+    public synchronized void with(Function<V, V> mutator) {
         structure = mutator.apply(structure);
     }
 
-    synchronized V getSnapshot() {
+    public synchronized V getSnapshot() {
         return structure;
     }
 
-    synchronized <K> K apply(Function<V, K> function) {
+    public synchronized <K> K apply(Function<V, K> function) {
         return function.apply(structure);
     }
 
-    synchronized void resetToInitialValue() {
+    public synchronized void resetToInitialValue() {
         structure = initialValueSupplier.get();
     }
 
-    static <V> StructureHolder<V> create(Supplier<V> initialValue) {
+    public static <V> StructureHolder<V> create(Supplier<V> initialValue) {
         return new StructureHolder<>(initialValue);
     }
 }u}(j7  (1f63a5aabe3670ea91b1274d0ae9a9ec9bf2652bj8  (atlasdb-workload-server-api/build.gradlej8  modifiedj8  Kj8  K j8  Kj8  |https://github.com/palantir/atlasdb/blob/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server-api%2Fbuild.gradlej8  {https://github.com/palantir/atlasdb/raw/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server-api%2Fbuild.gradlej8  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fbuild.gradle?ref=fc29518ef561cd0425a5d912a68ae8ef5602f195j 8  Xf  @@ -1,10 +1,16 @@
 apply from: "../gradle/shared.gradle"
 
 dependencies {
+    api 'io.vavr:vavr'
+
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'
     implementation 'com.fasterxml.jackson.core:jackson-databind'
+    implementation 'com.palantir.safe-logging:preconditions'
     implementation 'com.google.guava:guava'
+
     compileOnly 'org.immutables:value::annotations'
     annotationProcessor 'org.immutables:value'
+
+    testImplementation 'com.palantir.safe-logging:preconditions-assertj'
 }
\ No newline at end of fileu}(j7  (9341ade66f468191734830b7f9339ad48f69d5d1j8  `atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/Invariant.java      j8  addedj8  Kj8  K j8  Kj8  https://github.com/palantir/atlasdb/blob/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariant.javaj8  https://github.com/palantir/atlasdb/raw/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariant.javaj8  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariant.java?ref=fc29518ef561cd0425a5d912a68ae8ef5602f195j 8  Xf  @@ -0,0 +1,27 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+
+/**
+ * Check for an invariant given the provided {@link WorkflowHistory},
+ * and call the provided consumer after checking if any violations are detected.
+ */
+public interface Invariant<Violations> extends BiConsumer<WorkflowHistory, Consumer<Violations>> {}u}(j7  (60ba075ecd63d073e9efed58b8eff668e319f9a2j8  fatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/MismatchedValue.javaj8  addedj8  K,j8  K j8  K,j8  https://github.com/palantir/atlasdb/blob/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javaj8  https://github.com/palantir/atlasdb/raw/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javaj8  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.java?ref=fc29518ef561cd0425a5d912a68ae8ef5602f195j 8  X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface MismatchedValue {
+    @Value.Parameter
+    Optional<Integer> actual();
+
+    @Value.Parameter
+    Optional<Integer> expected();
+
+    @Value.Check
+    default void actualAndExpectedAreNotEqualToEachOther() {
+        Preconditions.checkArgument(
+                !actual().equals(expected()),
+                "Cannot construct MismatchedValues for two values which are equal.",
+                SafeArg.of("actual", actual()),
+                SafeArg.of("expected", expected()));
+    }
+
+    static MismatchedValue of(Optional<Integer> actual, Optional<Integer> expected) {
+        return ImmutableMismatchedValue.of(actual, expected);
+    }
+}u}(j7  (e052c88622c80f46ac62138a0ae4f3f6f267d5d7j8  gatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TableAndWorkloadCell.javaj8  addedj8  K$j8  K j8  K$j8  https://github.com/palantir/atlasdb/blob/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTableAndWorkloadCell.javaj8  https://github.com/palantir/atlasdb/raw/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTableAndWorkloadCell.javaj8  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTableAndWorkloadCell.java?ref=fc29518ef561cd0425a5d912a68ae8ef5602f195j 8  X  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import org.immutables.value.Value;
+
+/**
+ * Convenient class which combines table name and cell, for convenient usage in {@link java.util.Map} or other similar interfaces.
+ */
+@Value.Immutable
+public interface TableAndWorkloadCell {
+
+    @Value.Parameter
+    String tableName();
+
+    @Value.Parameter
+    WorkloadCell cell();
+
+    static TableAndWorkloadCell of(String tableName, WorkloadCell workloadCell) {
+        return ImmutableTableAndWorkloadCell.of(tableName, workloadCell);
+    }
+}u}(j7  (b7286928106b877bf88cb2eb9d1a7c176af42092j8  batlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ValidationStore.javaj8  addedj8  Kj8  K j8  Kj8  https://github.com/palantir/atlasdb/blob/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.javaj8  https://github.com/palantir/atlasdb/raw/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.javaj8  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.java?ref=fc29518ef561cd0425a5d912a68ae8ef5602f195j 8  X|  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import io.vavr.collection.Map;
+import java.util.Optional;
+
+/**
+ * Store used for replaying witnessed transactions, and ultimately being used as the 'source-of-truth' when validating
+ * our {@link TransactionStore}.
+ */
+public interface ValidationStore {
+
+    /** Return all cells and values for all tables. Value is expected to be empty for deleted cells. */
+    Map<TableAndWorkloadCell, Optional<Integer>> values();
+}u}(j7  (b5081c6bb7f68583aaaa52e1552a694d90b69641j8  jatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/invariant/MismatchedValueTest.javaj8  addedj8  K2j8  K j8  K2j8  https://github.com/palantir/atlasdb/blob/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javaj8  https://github.com/palantir/atlasdb/raw/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javaj8  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.java?ref=fc29518ef561cd0425a5d912a68ae8ef5602f195j 8  X;  @@ -0,0 +1,50 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.palantir.logsafe.SafeArg;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class MismatchedValueTest {
+
+    private static final Optional<Integer> VALUE_ONE = Optional.of(15);
+    private static final Optional<Integer> VALUE_TWO = Optional.of(25);
+
+    @Test
+    public void canConstructMismatchedValueFromTwoDifferentValues() {
+        assertThatCode(() -> MismatchedValue.of(VALUE_ONE, VALUE_TWO)).doesNotThrowAnyException();
+    }
+
+    @Test
+    public void actualIsFirstArgumentAndExpectedIsSecondArgument() {
+        MismatchedValue mismatchedValue = MismatchedValue.of(VALUE_ONE, VALUE_TWO);
+        assertThat(mismatchedValue.actual()).isEqualTo(VALUE_ONE);
+        assertThat(mismatchedValue.expected()).isEqualTo(VALUE_TWO);
+    }
+
+    @Test
+    public void throwsWhenActualAndExpectedAreTheSame() {
+        assertThatLoggableExceptionThrownBy(() -> MismatchedValue.of(VALUE_ONE, VALUE_ONE))
+                .hasMessageContaining("Cannot construct MismatchedValues for two values which are equal.")
+                .hasExactlyArgs(SafeArg.of("actual", VALUE_ONE), SafeArg.of("expected", VALUE_ONE));
+    }
+}u}(j7  (79750fff00065612bcb1c8c7aea080ef63c1ed89j8  $atlasdb-workload-server/build.gradlej8  modifiedj8  Kj8  K j8  Kj8  xhttps://github.com/palantir/atlasdb/blob/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server%2Fbuild.gradlej8  whttps://github.com/palantir/atlasdb/raw/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server%2Fbuild.gradlej8  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=fc29518ef561cd0425a5d912a68ae8ef5602f195j 8  X{  @@ -5,16 +5,19 @@ dependencies {
     implementation project(':atlasdb-api')
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-config')
+    implementation project(':atlasdb-impl-shared')
 
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'
     implementation 'com.fasterxml.jackson.core:jackson-databind'
     implementation 'com.palantir.safe-logging:preconditions'
     implementation 'com.palantir.safe-logging:safe-logging'
     implementation 'one.util:streamex'
+    implementation 'io.vavr:vavr'
 
     testImplementation project(':commons-executors')
     testImplementation 'org.mockito:mockito-core'
+    testImplementation 'com.palantir.safe-logging:preconditions-assertj'
     testImplementation('org.jmock:jmock') {
         exclude group: 'org.hamcrest'
     }u}(j7  (fb9a37a5c70b18ac637240f0acb3338f8f255e8aj8  iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariant.javaj8  addedj8  K6j8  K j8  K6j8  https://github.com/palantir/atlasdb/blob/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj8  https://github.com/palantir/atlasdb/raw/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj8  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.java?ref=fc29518ef561cd0425a5d912a68ae8ef5602f195j 8  X	  @@ -0,0 +1,54 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.ValidationStore;
+import com.palantir.atlasdb.workload.transaction.InMemoryValidationStore;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import io.vavr.Tuple;
+import java.util.Map;
+import java.util.Optional;
+import java.util.function.Consumer;
+
+public enum DurableWritesInvariant implements Invariant<Map<TableAndWorkloadCell, MismatchedValue>> {
+    INSTANCE;
+
+    @Override
+    public void accept(
+            WorkflowHistory workflowHistory, Consumer<Map<TableAndWorkloadCell, MismatchedValue>> invariantListener) {
+        ValidationStore expectedState = InMemoryValidationStore.create(workflowHistory.history());
+        ReadableTransactionStore storeToValidate = workflowHistory.transactionStore();
+        Map<TableAndWorkloadCell, MismatchedValue> cellsThatDoNotMatch = expectedState
+                .values()
+                .map((writtenCell, expectedValue) -> {
+                    Optional<MismatchedValue> maybeMismatchedValue = Optional.empty();
+                    Optional<Integer> actualValue = storeToValidate.get(writtenCell.tableName(), writtenCell.cell());
+
+                    if (!actualValue.equals(expectedValue)) {
+                        maybeMismatchedValue = Optional.of(MismatchedValue.of(actualValue, expectedValue));
+                    }
+
+                    return Tuple.of(writtenCell, maybeMismatchedValue);
+                })
+                .filterValues(Optional::isPresent)
+                .mapValues(Optional::get)
+                .toJavaMap();
+        invariantListener.accept(cellsThatDoNotMatch);
+    }
+}u}(j7  (301fd225038dc758fb5af7d2c0a7b9fd364ca74dj8  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStore.javaj8  addedj8  KTj8  K j8  KTj8  https://github.com/palantir/atlasdb/blob/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javaj8  https://github.com/palantir/atlasdb/raw/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javaj8  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.java?ref=fc29518ef561cd0425a5d912a68ae8ef5602f195j 8  X  @@ -0,0 +1,84 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.ValidationStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.Optional;
+
+public final class InMemoryValidationStore implements ValidationStore {
+
+    private final Map<TableAndWorkloadCell, Optional<Integer>> values;
+
+    private InMemoryValidationStore(Map<TableAndWorkloadCell, Optional<Integer>> values) {
+        this.values = values;
+    }
+
+    public static InMemoryValidationStore create(List<WitnessedTransaction> history) {
+        InMemoryTransactionReplayer replayer = new InMemoryTransactionReplayer();
+        history.stream()
+                .map(WitnessedTransaction::actions)
+                .forEach(witnessedTransactionActions ->
+                        witnessedTransactionActions.forEach(action -> action.accept(replayer)));
+        return new InMemoryValidationStore(replayer.getValues());
+    }
+
+    @Override
+    public Map<TableAndWorkloadCell, Optional<Integer>> values() {
+        return values;
+    }
+
+    private static final class InMemoryTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
+
+        private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> values =
+                StructureHolder.create(HashMap::empty);
+
+        @Override
+        public Void visit(WitnessedReadTransactionAction readTransactionAction) {
+            return null;
+        }
+
+        @Override
+        public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
+            TableAndWorkloadCell tableAndWorkloadCell =
+                    TableAndWorkloadCell.of(writeTransactionAction.table(), writeTransactionAction.cell());
+            values.with(map -> map.put(tableAndWorkloadCell, Optional.of(writeTransactionAction.value())));
+            return null;
+        }
+
+        @Override
+        public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+            TableAndWorkloadCell tableAndWorkloadCell =
+                    TableAndWorkloadCell.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
+            values.with(map -> map.put(tableAndWorkloadCell, Optional.empty()));
+            return null;
+        }
+
+        public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
+            return values.getSnapshot();
+        }
+    }
+}u}(j7  (8b7da5872a1e39ff253467d56f6f09dfacbe6bf3j8  matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantTest.javaj8  addedj8  Kqj8  K j8  Kqj8  https://github.com/palantir/atlasdb/blob/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj8  https://github.com/palantir/atlasdb/raw/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj8  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.java?ref=fc29518ef561cd0425a5d912a68ae8ef5602f195j 8  X  @@ -0,0 +1,113 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.atomic.AtomicReference;
+import org.junit.Before;
+import org.junit.Test;
+
+public final class DurableWritesInvariantTest {
+
+    private AtlasDbTransactionStore store;
+
+    @Before
+    public void before() {
+        store = AtlasDbTransactionStore.create(
+                TransactionManagers.createInMemory(Set.of()),
+                Map.of(TABLE_REFERENCE, AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
+    }
+
+    @Test
+    public void cellsExpectedToBeDeletedAreFound() {
+        AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
+        List<WitnessedTransaction> witnessedTransactions = List.of(
+                ImmutableWitnessedTransaction.builder()
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .build(),
+                ImmutableWitnessedTransaction.builder()
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO))
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .build());
+        WorkflowHistory history = ImmutableWorkflowHistory.builder()
+                .history(witnessedTransactions)
+                .transactionStore(store)
+                .build();
+
+        store.readWrite(List.of(WriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_ONE)));
+        DurableWritesInvariant.INSTANCE.accept(history, mismatchingCells::set);
+        assertThat(mismatchingCells.get())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_TWO),
+                        MismatchedValue.of(Optional.of(VALUE_ONE), Optional.empty())));
+    }
+
+    @Test
+    public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
+        AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
+        List<WitnessedTransaction> witnessedTransactions = List.of(
+                ImmutableWitnessedTransaction.builder()
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .build(),
+                ImmutableWitnessedTransaction.builder()
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_TWO))
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .build());
+        WorkflowHistory history = ImmutableWorkflowHistory.builder()
+                .history(witnessedTransactions)
+                .transactionStore(store)
+                .build();
+
+        store.readWrite(List.of(
+                WriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE),
+                WriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_ONE)));
+        DurableWritesInvariant.INSTANCE.accept(history, mismatchingCells::set);
+        assertThat(mismatchingCells.get())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_TWO),
+                        MismatchedValue.of(Optional.of(VALUE_ONE), Optional.of(VALUE_TWO))));
+    }
+}u}(j7  (d5a1453ae0ff1289f42895870113a7c420e954f3j8  jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj8  modifiedj8  Kj8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj8  https://github.com/palantir/atlasdb/raw/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj8  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=fc29518ef561cd0425a5d912a68ae8ef5602f195j 8  X	  @@ -16,6 +16,14 @@
 
 package com.palantir.atlasdb.workload.store;
 
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.INDEX_REFERENCE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.INDEX_TABLE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_THREE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
@@ -25,8 +33,6 @@
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.Namespace;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
@@ -49,21 +55,6 @@
 
 public final class AtlasDbTransactionStoreTest {
 
-    private static final String TABLE = "foo";
-    private static final String INDEX_TABLE = TABLE + "_index";
-    private static final TableReference TABLE_REFERENCE = TableReference.create(Namespace.DEFAULT_NAMESPACE, TABLE);
-    private static final TableReference INDEX_REFERENCE =
-            TableReference.create(TABLE_REFERENCE.getNamespace(), INDEX_TABLE);
-
-    private static final WorkloadCell WORKLOAD_CELL_ONE =
-            ImmutableWorkloadCell.builder().key(50).column(10).build();
-    private static final WorkloadCell WORKLOAD_CELL_TWO =
-            ImmutableWorkloadCell.builder().key(1257).column(521).build();
-    private static final WorkloadCell WORKLOAD_CELL_THREE =
-            ImmutableWorkloadCell.builder().key(567).column(405234).build();
-
-    private static final Integer VALUE_ONE = 100;
-
     private TransactionManager manager;
 
     private AtlasDbTransactionStore store;u}(j7  (b5bb3abf60ade20d3f002dfac2663a905ccbef1ej8  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javaj8  addedj8  Kkj8  K j8  Kkj8  https://github.com/palantir/atlasdb/blob/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj8  https://github.com/palantir/atlasdb/raw/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj8  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=fc29518ef561cd0425a5d912a68ae8ef5602f195j 8  X  @@ -0,0 +1,107 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.workload.store.ValidationStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class InMemoryValidationStoreTest {
+
+    @Test
+    public void writeActionsPersistValues() {
+        InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
+                ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .build(),
+                ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_TWO))
+                        .build()));
+        assertThat(store.values().toJavaMap())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        TABLE_WORKLOAD_CELL_ONE,
+                        Optional.of(VALUE_ONE),
+                        TABLE_WORKLOAD_CELL_TWO,
+                        Optional.of(VALUE_TWO)));
+    }
+
+    @Test
+    public void deleteActionsPutsEmptyOptionalForCell() {
+        InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
+                ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_ONE))
+                        .build(),
+                ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))
+                        .build()));
+        assertThat(store.values().toJavaMap())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        TABLE_WORKLOAD_CELL_ONE, Optional.empty(), TABLE_WORKLOAD_CELL_TWO, Optional.of(VALUE_ONE)));
+    }
+
+    @Test
+    public void writesDeletesAreProcessedInOrder() {
+        InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
+                ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .build(),
+                ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))
+                        .build(),
+                ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(5)
+                        .commitTimestamp(6)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_TWO))
+                        .build()));
+        assertThat(store.values().toJavaMap())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_TWO)));
+    }
+
+    @Test
+    public void valuesCannotBeModified() {
+        ValidationStore validationStore = InMemoryValidationStore.create(List.of());
+        validationStore.values().put(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_TWO));
+        assertThat(validationStore.values()).isEmpty();
+    }
+}u}(j7  (adb90ee8ed821a15d9bca1af099c7be1399c2665j8  hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javaj8  addedj8  K)j8  K j8  K)j8  https://github.com/palantir/atlasdb/blob/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj8  https://github.com/palantir/atlasdb/raw/fc29518ef561cd0425a5d912a68ae8ef5602f195/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj8  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=fc29518ef561cd0425a5d912a68ae8ef5602f195j 8  XW  @@ -0,0 +1,41 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.keyvalue.api.Namespace;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+
+public final class WorkloadTestHelpers {
+    public static final String TABLE = "foo";
+    public static final String INDEX_TABLE = TABLE + "_index";
+    public static final TableReference TABLE_REFERENCE = TableReference.create(Namespace.DEFAULT_NAMESPACE, TABLE);
+    public static final TableReference INDEX_REFERENCE =
+            TableReference.create(TABLE_REFERENCE.getNamespace(), INDEX_TABLE);
+    public static final WorkloadCell WORKLOAD_CELL_ONE = ImmutableWorkloadCell.of(50, 10);
+    public static final WorkloadCell WORKLOAD_CELL_TWO = ImmutableWorkloadCell.of(1257, 521);
+    public static final WorkloadCell WORKLOAD_CELL_THREE =
+            ImmutableWorkloadCell.builder().key(567).column(405234).build();
+    public static final Integer VALUE_ONE = 541;
+    public static final Integer VALUE_TWO = 334;
+    public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_ONE =
+            TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_ONE);
+    public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
+            TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_TWO);
+}u}(j7  (85ba589854ac34ebd9c8c823c51cf5a3b31cf07dj8  $changelog/@unreleased/pr-6459.v2.ymlj8  addedj8  Kj8  K j8  Kj8  |https://github.com/palantir/atlasdb/blob/fc29518ef561cd0425a5d912a68ae8ef5602f195/changelog%2F%40unreleased%2Fpr-6459.v2.ymlj8  {https://github.com/palantir/atlasdb/raw/fc29518ef561cd0425a5d912a68ae8ef5602f195/changelog%2F%40unreleased%2Fpr-6459.v2.ymlj8  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6459.v2.yml?ref=fc29518ef561cd0425a5d912a68ae8ef5602f195j 8  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Adds a durable writes invariant check to the workload server
+  links:
+  - https://github.com/palantir/atlasdb/pull/6459ueu(e9cf9e508cc818462ef9ec2376dc7797082f39d3}(sha(e9cf9e508cc818462ef9ec2376dc7797082f39d3node_idEC_kwDOAjP5fdoAKGU5Y2Y5ZTUwOGNjODE4NDYyZWY5ZWMyMzc2ZGM3Nzk3MDgyZjM5ZDMcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-07-20T22:00:33Zu	committer}(j8  Tom Petraccaj8  tpetracca@palantir.comj8  2023-07-21T18:47:53Zumessage-unwind dummy leaderconfig being passed aroundtree}(j8  (ff17a6664c0809c74771aa786bce6d8f175bd16durl`https://api.github.com/repos/palantir/atlasdb/git/trees/ff17a6664c0809c74771aa786bce6d8f175bd16duj8  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e9cf9e508cc818462ef9ec2376dc7797082f39d3
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj8  ^https://api.github.com/repos/palantir/atlasdb/commits/e9cf9e508cc818462ef9ec2376dc7797082f39d3html_urlShttps://github.com/palantir/atlasdb/commit/e9cf9e508cc818462ef9ec2376dc7797082f39d3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e9cf9e508cc818462ef9ec2376dc7797082f39d3/commentsj8  }(login	tpetraccaidJ& j8  MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5j8  &https://api.github.com/users/tpetraccaj8  https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminuj8  }(j8  	tpetraccaj8  J& j8  MDQ6VXNlcjI1NTQzMjg=j8  3https://avatars.githubusercontent.com/u/2554328?v=4j8  h5j8  &https://api.github.com/users/tpetraccaj8  https://github.com/tpetraccaj8  0https://api.github.com/users/tpetracca/followersj8  =https://api.github.com/users/tpetracca/following{/other_user}j8  6https://api.github.com/users/tpetracca/gists{/gist_id}j8  =https://api.github.com/users/tpetracca/starred{/owner}{/repo}j8  4https://api.github.com/users/tpetracca/subscriptionsj8  +https://api.github.com/users/tpetracca/orgsj8  ,https://api.github.com/users/tpetracca/reposj8  7https://api.github.com/users/tpetracca/events{/privacy}j8  6https://api.github.com/users/tpetracca/received_eventsj8  Userj8  uparents]}(j8  (ccdd47a65e2c88b87fcd6464a5fec27f710f1146j8  ^https://api.github.com/repos/palantir/atlasdb/commits/ccdd47a65e2c88b87fcd6464a5fec27f710f1146j8  Shttps://github.com/palantir/atlasdb/commit/ccdd47a65e2c88b87fcd6464a5fec27f710f1146uastats}(totalK	additionsK	deletionsKzufiles](}(j8  (5d19f29132dab0ef70f8e200712eb2df5ec1e0bbfilenameFatlasdb-api/src/main/java/com/palantir/atlasdb/spi/AtlasDbFactory.javastatusmodifiedj8  K j8  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fspi%2FAtlasDbFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fspi%2FAtlasDbFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fspi%2FAtlasDbFactory.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3patchX  @@ -15,7 +15,6 @@
  */
 package com.palantir.atlasdb.spi;
 
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.util.MetricsManager;
@@ -44,7 +43,6 @@ public interface AtlasDbFactory {
      *
      * @param config Configuration file.
      * @param runtimeConfig Runtime configuration file.
-     * @param leaderConfig If the implementation supports it, the optional leader configuration.
      * @param namespace If the implementation supports it, this is the namespace to use when the namespace in config is
      * absent. If both are present, they must match.
      * @param freshTimestampSource If present, a source of fresh timestamps, which may be relevant for some KVS
@@ -57,7 +55,6 @@ KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> namespace,
             LongSupplier freshTimestampSource,
             boolean initializeAsync);u}(j8  (3cae3192d54aa786e1fb095808e1aa9205897b46j8  Oatlasdb-api/src/main/java/com/palantir/atlasdb/timestamp/DbTimeLockFactory.javaj8  modifiedj8  K j8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimestamp%2FDbTimeLockFactory.javaj9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimestamp%2FDbTimeLockFactory.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimestamp%2FDbTimeLockFactory.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  X  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.timestamp;
 
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeriesProvider;
@@ -40,7 +39,6 @@ KeyValueService createRawKeyValueService(
             MetricsManager metricManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean initializeAsync);
 
     ManagedTimestampService createManagedTimestampService(u}(j8  (761bd91dae92d2e174e087990b60adf2c381cba3j8  [atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/CassandraAtlasDbFactory.javaj8  modifiedj8  K j8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraAtlasDbFactory.javaj9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraAtlasDbFactory.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraAtlasDbFactory.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  X  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueService;
@@ -48,7 +47,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> unused,
             Optional<String> namespace,
             LongSupplier freshTimestampSource,
             boolean initializeAsync) {u}(j8  (013b7c530f64d79bbe88bf4896edfaea7bbce3c2j8  ^atlasdb-config/src/main/java/com/palantir/atlasdb/factory/ServiceDiscoveringAtlasSupplier.javaj8  modifiedj8  Kj8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplier.javaj9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplier.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplier.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  X  @@ -17,7 +17,6 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.spi.AtlasDbFactory;
@@ -52,7 +51,6 @@ public class ServiceDiscoveringAtlasSupplier {
 
     private static String timestampServiceCreationInfo = null;
 
-    private final Optional<LeaderConfig> leaderConfig;
     private final Supplier<KeyValueService> keyValueService;
     private final Supplier<ManagedTimestampService> timestampService;
     private final Supplier<TimestampStoreInvalidator> timestampStoreInvalidator;
@@ -63,18 +61,16 @@ public ServiceDiscoveringAtlasSupplier(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> namespace,
             Optional<TableReference> tableReferenceOverride,
             boolean initializeAsync,
             boolean collectThreadDumpOnInit,
             LongSupplier timestampSupplier) {
-        this.leaderConfig = leaderConfig;
         this.collectThreadDumps = collectThreadDumpOnInit;
 
         AtlasDbFactory atlasFactory = AtlasDbServiceDiscovery.createAtlasFactoryOfCorrectType(config);
         keyValueService = Suppliers.memoize(() -> atlasFactory.createRawKeyValueService(
-                metricsManager, config, runtimeConfig, leaderConfig, namespace, timestampSupplier, initializeAsync));
+                metricsManager, config, runtimeConfig, namespace, timestampSupplier, initializeAsync));
         timestampService = () -> atlasFactory.createManagedTimestampService(
                 getKeyValueService(), tableReferenceOverride, initializeAsync);
         timestampStoreInvalidator =
@@ -154,23 +150,11 @@ private static String saveThreadDumpsToFile(File file) throws IOException {
     }
 
     private void reportMultipleTimestampFetch(String path) {
-        if (!leaderConfig.isPresent()) {
-            log.warn(
-                    "[timestamp-service-creation] Timestamp service fetched for a second time, and there is no leader"
-                        + " config. This means that you may soon encounter the MultipleRunningTimestampServices error."
-                        + " Thread dumps from both fetches of the timestamp service have been outputted to {}. If you"
-                        + " encounter a MultipleRunningTimestampServices error, please send this file to support.",
-                    UnsafeArg.of("path", path));
-        } else {
-            log.warn(
-                    "[timestamp-service-creation] Timestamp service fetched for a second time. This is only OK if "
-                            + "you are running in an HA configuration and have just had a leadership election. "
-                            + "You do have a leader config, but we're outputting thread dumps from both fetches of the "
-                            + "timestamp service, in case this second service was created in error. "
-                            + "Thread dumps from both fetches of the timestamp service have been outputted to {}. "
-                            + "If you encounter a MultipleRunningTimestampServices error, please send this file to "
-                            + "support.",
-                    UnsafeArg.of("path", path));
-        }
+        log.warn(
+                "[timestamp-service-creation] Timestamp service fetched for a second time. This means that you may"
+                    + " soon encounter the MultipleRunningTimestampServices error. Thread dumps from both fetches of"
+                    + " the timestamp service have been outputted to {}. If you encounter a"
+                    + " MultipleRunningTimestampServices error, please send this file to support.",
+                UnsafeArg.of("path", path));
     }
 }u}(j8  (398e1b5ac85cb92e69b981e591ecefa55b7256a6j8  Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javaj8  modifiedj8  K j8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  X  @@ -366,7 +366,6 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                 metricsManager,
                 installConfig,
                 runtime.map(AtlasDbRuntimeConfig::keyValueService),
-                config().leader(),
                 config().namespace(),
                 Optional.empty(),
                 config().initializeAsync(),u}(j8  (dad98d7c2690becaffda75d8210ca450a905cadaj8  Tatlasdb-config/src/main/java/com/palantir/atlasdb/memory/InMemoryAtlasDbFactory.javaj8  modifiedj8  K j8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactory.javaj9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactory.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactory.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  X^  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.cleaner.api.OnCleanupTask;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.impl.InMemoryKeyValueService;
@@ -57,7 +56,6 @@ public String getType() {
      *
      * @param config Configuration file.
      * @param runtimeConfig unused.
-     * @param leaderConfig unused.
      * @param unused unused.
      * @param unusedLongSupplier unused.
      * @param initializeAsync unused. Async initialization has not been implemented and is not propagated.
@@ -68,7 +66,6 @@ public InMemoryKeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> unused,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(j8  (9d94736c40bc3a7b7c6c4faa07acaa3b2fbfa304j8  Watlasdb-config/src/main/java/com/palantir/atlasdb/memory/InMemoryDbTimeLockFactory.javaj8  modifiedj8  K j8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryDbTimeLockFactory.javaj9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryDbTimeLockFactory.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryDbTimeLockFactory.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  X  @@ -18,7 +18,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
@@ -49,7 +48,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean _initializeAsync) {
         return new InMemoryKeyValueService(true);
     }u}(j8  (1e67bc43b22caa75f6140e38e93e532137da9f8cj8  aatlasdb-config/src/test/java/com/palantir/atlasdb/factory/AutoServiceAnnotatedAtlasDbFactory.javaj8  modifiedj8  K j8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAutoServiceAnnotatedAtlasDbFactory.javaj9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAutoServiceAnnotatedAtlasDbFactory.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAutoServiceAnnotatedAtlasDbFactory.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  X  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.google.common.collect.Lists;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.spi.AtlasDbFactory;
@@ -62,7 +61,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> unused,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(j8  (a49dbe0806cf2c455793e9c38b3290d2549a32a2j8  batlasdb-config/src/test/java/com/palantir/atlasdb/factory/ServiceDiscoveringAtlasSupplierTest.javaj8  modifiedj8  K j8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplierTest.javaj9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplierTest.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplierTest.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  X  @@ -20,7 +20,6 @@
 import static org.mockito.Mockito.mock;
 
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.spi.AtlasDbFactory;
 import com.palantir.atlasdb.spi.KeyValueServiceConfig;
 import com.palantir.atlasdb.spi.KeyValueServiceConfigHelper;
@@ -36,7 +35,6 @@ public class ServiceDiscoveringAtlasSupplierTest {
     private final KeyValueServiceConfigHelper kvsConfig = () -> AutoServiceAnnotatedAtlasDbFactory.TYPE;
     private final KeyValueServiceConfigHelper invalidKvsConfig = () -> "should not be found kvs";
     private final AtlasDbFactory delegate = new AutoServiceAnnotatedAtlasDbFactory();
-    private final Optional<LeaderConfig> leaderConfig = Optional.of(mock(LeaderConfig.class));
     private final MetricsManager metrics = MetricsManagers.createForTests();
 
     @Test
@@ -49,7 +47,6 @@ public void delegateToFactoriesAnnotatedWithAutoService() {
                         metrics,
                         kvsConfig,
                         Refreshable.only(Optional.empty()),
-                        leaderConfig,
                         Optional.empty(),
                         AtlasDbFactory.THROWING_FRESH_TIMESTAMP_SOURCE,
                         AtlasDbFactory.DEFAULT_INITIALIZE_ASYNC));
@@ -94,7 +91,6 @@ private ServiceDiscoveringAtlasSupplier createAtlasSupplier(KeyValueServiceConfi
                 metrics,
                 providedKvsConfig,
                 Refreshable.only(Optional.empty()),
-                leaderConfig,
                 Optional.empty(),
                 Optional.empty(),
                 AtlasDbConstants.DEFAULT_INITIALIZE_ASYNC,u}(j8  (fafced885dba46090538c96c11b8e33ca7a1baf4j8  Yatlasdb-config/src/test/java/com/palantir/atlasdb/memory/InMemoryAsyncAtlasDbFactory.javaj8  modifiedj8  K j8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactory.javaj9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactory.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactory.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  X  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.memory;
 
 import com.google.auto.service.AutoService;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.impl.AsyncInitializeableInMemoryKvs;
@@ -46,7 +45,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager unusedMetricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> unusedRuntimeConfig,
-            Optional<LeaderConfig> unusedLeaderConfig,
             Optional<String> unused,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(j8  (bf61a9d5b6cd91b9f8ee2a9c1680504983d769ddj8  ]atlasdb-config/src/test/java/com/palantir/atlasdb/memory/InMemoryAsyncAtlasDbFactoryTest.javaj8  modifiedj8  K j8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactoryTest.javaj9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactoryTest.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactoryTest.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  Xb  @@ -80,7 +80,6 @@ private KeyValueService createRawKeyValueService(boolean initializeAsync, boolea
                 new InMemoryAsyncAtlasDbConfig(eventuallySucceed),
                 Refreshable.only(Optional.empty()),
                 Optional.empty(),
-                Optional.empty(),
                 null,
                 initializeAsync);
     }u}(j8  (2bb76883abdb0aeefd14bca1e2f5ac642666ff8cj8  Xatlasdb-config/src/test/java/com/palantir/atlasdb/memory/InMemoryAtlasDbFactoryTest.javaj8  modifiedj8  Kj8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactoryTest.javaT      j9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactoryTest.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactoryTest.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  X$  @@ -59,12 +59,6 @@ public void asyncInitTimestampServiceSynchronous() {
 
     private KeyValueService createRawKeyValueService(boolean initializeAsync) {
         return factory.createRawKeyValueService(
-                null,
-                null,
-                Refreshable.only(Optional.empty()),
-                Optional.empty(),
-                Optional.empty(),
-                null,
-                initializeAsync);
+                null, null, Refreshable.only(Optional.empty()), Optional.empty(), null, initializeAsync);
     }
 }u}(j8  (49641fbb8014ea4755f443d2a46dd847148cf6c9j8  batlasdb-container-test-utils/src/main/java/com/palantir/atlasdb/containers/CassandraContainer.javaj8  modifiedj8  K j8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FCassandraContainer.javaj9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FCassandraContainer.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FCassandraContainer.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  Xp  @@ -16,16 +16,13 @@
 package com.palantir.atlasdb.containers;
 
 import com.datastax.driver.core.Cluster;
-import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CqlCapableConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCassandraCredentialsConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCqlCapableConfig;
-import com.palantir.atlasdb.config.ImmutableLeaderConfig;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueService;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl;
 import com.palantir.atlasdb.keyvalue.cassandra.async.DefaultCassandraAsyncKeyValueServiceFactory;
@@ -37,7 +34,6 @@
 import java.net.InetSocketAddress;
 import java.net.SocketAddress;
 import java.util.Map;
-import java.util.Optional;
 import java.util.UUID;
 import java.util.function.Supplier;
 
@@ -49,13 +45,6 @@ public class CassandraContainer extends Container {
     private static final String CONTAINER_NAME = "cassandra";
     private static final String THROWAWAY_CONTAINER_NAME = "cassandra2";
 
-    @SuppressWarnings("OptionalUsedAsFieldOrParameterType")
-    static final Optional<LeaderConfig> LEADER_CONFIG = Optional.of(ImmutableLeaderConfig.builder()
-            .quorumSize(1)
-            .localServer("localhost")
-            .leaders(ImmutableSet.of("localhost"))
-            .build());
-
     private final CassandraKeyValueServiceConfig config;
     private final String dockerComposeFile;
     private final String name;u}(j8  (e7af481eab1762bea3f999752f6d2741324bf145j8  Natlasdb-dagger/src/main/java/com/palantir/atlasdb/services/ServicesConfig.javaj8  modifiedj8  K j8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-dagger%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fservices%2FServicesConfig.javaj9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-dagger%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fservices%2FServicesConfig.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dagger%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fservices%2FServicesConfig.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  X  @@ -46,7 +46,6 @@ public ServiceDiscoveringAtlasSupplier atlasDbSupplier(MetricsManager metrics) {
                 metrics,
                 atlasDbConfig().keyValueService(),
                 Refreshable.only(atlasDbRuntimeConfig().keyValueService()),
-                atlasDbConfig().leader(),
                 atlasDbConfig().namespace(),
                 Optional.empty(),
                 atlasDbConfig().initializeAsync(),u}(j8  (27ef72e8bb9601a68c5a9a8c8b770c691b18b92aj8  atlasdb-dbkvs-tests/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/DbTimestampStoreInvalidatorCreationTest.javaj8  modifiedj8  K j8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-dbkvs-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FDbTimestampStoreInvalidatorCreationTest.javaj9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-dbkvs-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FDbTimestampStoreInvalidatorCreationTest.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FDbTimestampStoreInvalidatorCreationTest.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  X  @@ -19,13 +19,11 @@
 import static com.palantir.atlasdb.spi.AtlasDbFactory.NO_OP_FAST_FORWARD_TIMESTAMP;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.Mockito.mock;
 
 import com.google.common.collect.ImmutableSet;
 import com.google.common.util.concurrent.SimpleTimeLimiter;
 import com.google.common.util.concurrent.TimeLimiter;
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.factory.ServiceDiscoveringAtlasSupplier;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.dbkvs.InvalidationRunner;
@@ -49,7 +47,6 @@
 
 public class DbTimestampStoreInvalidatorCreationTest {
     private final MetricsManager metrics = MetricsManagers.createForTests();
-    private final Optional<LeaderConfig> leaderConfig = Optional.of(mock(LeaderConfig.class));
 
     @ClassRule
     public static final TestResourceManager TRM = new TestResourceManager(DbKvsPostgresTestSuite::createKvs);
@@ -124,7 +121,6 @@ private ServiceDiscoveringAtlasSupplier createAtlasSupplier(
                 metrics,
                 providedKvsConfig,
                 Refreshable.only(Optional.empty()),
-                leaderConfig,
                 Optional.empty(),
                 tableReference,
                 AtlasDbConstants.DEFAULT_INITIALIZE_ASYNC,u}(j8  (0a8f1ae139f220797b9abeebbd4c969fee53e76ej8  Uatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/DbAtlasDbFactory.javaj8  modifiedj8  K j8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FDbAtlasDbFactory.javaj9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FDbAtlasDbFactory.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FDbAtlasDbFactory.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  X*  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.ConnectionManagerAwareDbKvs;
@@ -53,7 +52,6 @@ public String getType() {
      *
      * @param config Configuration file.
      * @param runtimeConfig unused.
-     * @param leaderConfig unused.
      * @param namespace unused.
      * @param unusedLongSupplier unused.
      * @param initializeAsync initialize asynchronously
@@ -64,7 +62,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> namespace,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(j8  (65a0b7f0f54b0b2a052a4cbcb93084d57486a983j8  `atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/RelationalDbTimeLockFactory.javaj8  modifiedj8  K j8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FRelationalDbTimeLockFactory.javaj9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FRelationalDbTimeLockFactory.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FRelationalDbTimeLockFactory.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  X~  @@ -19,7 +19,6 @@
 import com.google.auto.service.AutoService;
 import com.google.common.base.Preconditions;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
@@ -54,13 +53,11 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean initializeAsync) {
         return delegate.createRawKeyValueService(
                 metricsManager,
                 config,
                 runtimeConfig,
-                Optional.of(leaderConfig),
                 Optional.empty(), // This refers to an AtlasDB namespace - we use the config to talk to the db
                 AtlasDbFactory.THROWING_FRESH_TIMESTAMP_SOURCE, // This is how we give out timestamps!
                 initializeAsync);u}(j8  (03e1ff19bb39c0ec79ee29033b2ebfb1c90ec09bj8  btimelock-agent/src/main/java/com/palantir/timelock/ServiceDiscoveringDatabaseTimeLockSupplier.javaj8  modifiedj8  Kj8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplier.javaj9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplier.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplier.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  X  @@ -19,7 +19,6 @@
 import com.google.common.base.Suppliers;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.factory.AtlasDbServiceDiscovery;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
@@ -49,11 +48,10 @@ public ServiceDiscoveringDatabaseTimeLockSupplier(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean initializeAsync) {
         DbTimeLockFactory dbTimeLockFactory = AtlasDbServiceDiscovery.createDbTimeLockFactoryOfCorrectType(config);
-        keyValueService = Suppliers.memoize(() -> dbTimeLockFactory.createRawKeyValueService(
-                metricsManager, config, runtimeConfig, leaderConfig, initializeAsync));
+        keyValueService = Suppliers.memoize(() ->
+                dbTimeLockFactory.createRawKeyValueService(metricsManager, config, runtimeConfig, initializeAsync));
         timestampServiceFactory = creationSetting -> dbTimeLockFactory.createManagedTimestampService(
                 keyValueService.get(), creationSetting, initializeAsync);
         timestampSeriesProvider = tableRef ->u}(j8  (67fff0cb73fea18f882abfc897fad053face2cf4j8  Utimelock-agent/src/main/java/com/palantir/timelock/paxos/DbBoundTimestampCreator.javaj8  modifiedj8  Kj8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FDbBoundTimestampCreator.javaj9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FDbBoundTimestampCreator.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FDbBoundTimestampCreator.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  XB  @@ -18,7 +18,6 @@
 import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
 import com.palantir.paxos.Client;
 import com.palantir.timelock.ServiceDiscoveringDatabaseTimeLockSupplier;
@@ -35,7 +34,7 @@ public DbBoundTimestampCreator(
     }
 
     @Override
-    public Supplier<ManagedTimestampService> createTimestampService(Client client, LeaderConfig leaderConfig) {
+    public Supplier<ManagedTimestampService> createTimestampService(Client client) {
         return () -> serviceDiscoveringDatabaseTimeLockSupplier.getManagedTimestampService(
                 getTimestampCreationParameters(client));
     }u}(j8  (6a079ccf904035895dc3706a491d2647bcd7900dj8  Stimelock-agent/src/main/java/com/palantir/timelock/paxos/PaxosTimestampCreator.javaj8  modifiedj8  Kj8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FPaxosTimestampCreator.javaj9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FPaxosTimestampCreator.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FPaxosTimestampCreator.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  X  @@ -15,7 +15,6 @@
  */
 package com.palantir.timelock.paxos;
 
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.timelock.paxos.NetworkClientFactories;
 import com.palantir.paxos.Client;
 import com.palantir.timestamp.ManagedTimestampService;
@@ -29,7 +28,7 @@ public class PaxosTimestampCreator implements TimestampCreator {
     }
 
     @Override
-    public Supplier<ManagedTimestampService> createTimestampService(Client client, LeaderConfig unused) {
+    public Supplier<ManagedTimestampService> createTimestampService(Client client) {
         return () -> timestampServiceFactory.create(client);
     }
 u}(j8  (26ffe31b9e2575d9a3aee3ac2c3795d73e01dd5cj8  Ktimelock-agent/src/main/java/com/palantir/timelock/paxos/TimeLockAgent.javaj8  modifiedj8  Kj8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javaj9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  X  @@ -15,19 +15,13 @@
  */
 package com.palantir.timelock.paxos;
 
-import static com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants.ACCEPTOR_SUBDIRECTORY_PATH;
-import static com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants.LEADER_PAXOS_NAMESPACE;
-import static com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants.LEARNER_SUBDIRECTORY_PATH;
-
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
 import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
-import com.palantir.atlasdb.config.ImmutableLeaderConfig;
 import com.palantir.atlasdb.config.ImmutableServerListConfig;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.config.RemotingClientConfigs;
 import com.palantir.atlasdb.config.ServerListConfig;
 import com.palantir.atlasdb.http.BlockingTimeoutExceptionMapper;
@@ -93,7 +87,6 @@
 import com.palantir.timestamp.ManagedTimestampService;
 import com.zaxxer.hikari.HikariDataSource;
 import java.net.URL;
-import java.nio.file.Path;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
@@ -287,7 +280,6 @@ private TimestampStorage createDatabaseTimestampStorage(
                 metricsManager,
                 timestampBoundPersistence.keyValueServiceConfig(),
                 runtime.map(TimeLockAgent::getKeyValueServiceRuntimeConfig),
-                createLeaderConfig(),
                 timestampBoundPersistence.initializeAsync());
         return ImmutableTimestampStorage.builder()
                 .timestampCreator(new DbBoundTimestampCreator(dbTimeLockSupplier))
@@ -570,34 +562,14 @@ RedirectRetryTargeter redirectRetryTargeter() {
      * @return Invalidating timestamp and lock services
      */
     public TimeLockServices createInvalidatingTimeLockServices(String client) {
-        LeaderConfig leaderConfig = createLeaderConfig();
-
         Client typedClient = Client.of(client);
 
         Supplier<ManagedTimestampService> rawTimestampServiceSupplier =
-                timestampStorage.timestampCreator().createTimestampService(typedClient, leaderConfig);
+                timestampStorage.timestampCreator().createTimestampService(typedClient);
         Supplier<LockService> rawLockServiceSupplier = lockCreator::createThreadPoolingLockService;
         return timelockCreator.createTimeLockServices(typedClient, rawTimestampServiceSupplier, rawLockServiceSupplier);
     }
 
-    private LeaderConfig createLeaderConfig() {
-        List<String> uris = cluster.clusterMembers();
-        Path leaderPaxosDataDirectory = install.paxos().dataDirectory().toPath().resolve(LEADER_PAXOS_NAMESPACE);
-
-        return ImmutableLeaderConfig.builder()
-                .addLeaders(uris.toArray(new String[0]))
-                .localServer(cluster.localServer())
-                .sslConfiguration(PaxosRemotingUtils.getSslConfigurationOptional(cluster))
-                .quorumSize(PaxosRemotingUtils.getQuorumSize(uris))
-                .learnerLogDir(leaderPaxosDataDirectory
-                        .resolve(LEARNER_SUBDIRECTORY_PATH)
-                        .toFile())
-                .acceptorLogDir(leaderPaxosDataDirectory
-                        .resolve(ACCEPTOR_SUBDIRECTORY_PATH)
-                        .toFile())
-                .build();
-    }
-
     public HealthStatusReport timeLockAdjudicationFeedback() {
         return feedbackHandler.getTimeLockHealthStatus();
     }u}(j8  (0f2c1df56bad08127cb2d5a035c597cdd96e3b20j8  Ntimelock-agent/src/main/java/com/palantir/timelock/paxos/TimestampCreator.javaj8  modifiedj8  Kj8  Kj8  Kj8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimestampCreator.javaj9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimestampCreator.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimestampCreator.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  X
  @@ -15,13 +15,12 @@
  */
 package com.palantir.timelock.paxos;
 
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.paxos.Client;
 import com.palantir.timestamp.ManagedTimestampService;
 import java.util.function.Supplier;
 
 public interface TimestampCreator extends AutoCloseable {
-    Supplier<ManagedTimestampService> createTimestampService(Client client, LeaderConfig leaderConfig);
+    Supplier<ManagedTimestampService> createTimestampService(Client client);
 
     @Override
     void close();u}(j8  (37cb9e1dd5d4d778cebc3d4cd60e5120d14a3a28j8  ftimelock-agent/src/test/java/com/palantir/timelock/ServiceDiscoveringDatabaseTimeLockSupplierTest.javaj8  modifiedj8  Kj8  K	j8  K
j8  https://github.com/palantir/atlasdb/blob/e9cf9e508cc818462ef9ec2376dc7797082f39d3/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplierTest.javaj9  https://github.com/palantir/atlasdb/raw/e9cf9e508cc818462ef9ec2376dc7797082f39d3/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplierTest.javaj9  https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplierTest.java?ref=e9cf9e508cc818462ef9ec2376dc7797082f39d3j9  X  @@ -19,11 +19,8 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
-import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.ImmutableLeaderConfig;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeriesProvider;
@@ -43,15 +40,10 @@ public class ServiceDiscoveringDatabaseTimeLockSupplierTest {
 
     private final MetricsManager metricsManager = MetricsManagers.createForTests();
     private final KeyValueServiceConfig keyValueServiceConfig = new InMemoryAtlasDbConfig();
-    private final LeaderConfig leaderConfig = ImmutableLeaderConfig.builder()
-            .localServer("me")
-            .leaders(ImmutableList.of("me"))
-            .quorumSize(1)
-            .build();
 
     private final ServiceDiscoveringDatabaseTimeLockSupplier timeLockSupplier =
             new ServiceDiscoveringDatabaseTimeLockSupplier(
-                    metricsManager, keyValueServiceConfig, Refreshable.only(Optional.empty()), leaderConfig, false);
+                    metricsManager, keyValueServiceConfig, Refreshable.only(Optional.empty()), false);
 
     @Test
     public void canGetTimestampServiceForDifferentSeries() {ueu(43adb2ed2ed640a3862ee0527e4d5f8ba090356a}(sha(43adb2ed2ed640a3862ee0527e4d5f8ba090356anode_idEC_kwDOAjP5fdoAKDQzYWRiMmVkMmVkNjQwYTM4NjJlZTA1MjdlNGQ1ZjhiYTA5MDM1NmEcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-04-28T10:45:29Zu	committer}(j9  GitHubj9  noreply@github.comj9  2023-04-28T10:45:29Zumessage0Use three timelocks for antithesis tests (#6550)tree}(j9  (1842dee6d72bf9442da52935882cd999c7379f7durl`https://api.github.com/repos/palantir/atlasdb/git/trees/1842dee6d72bf9442da52935882cd999c7379f7duj9  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/43adb2ed2ed640a3862ee0527e4d5f8ba090356a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkS6PJCRBK7hj4Ov3rIwAAvjQIAKW7rBJ3wf7CmYqjQvvhGxo+
q/3jfJ3ghLyB4TCUSLGNax39uU6ORaHHM6CEGMTu9nRBK5+4JtIqsmu8ZUI+pLSk
Q0Ky8B5a1tv5i0eTL3M2JydM3tOqNIlGPh1NLXY0Lyhe7RctraOnBhdTvDsmrrA+
W1TRnRpZf7iINcZ6Ge1va3r7hfN3hzWlqc6PzEZ5Fel1qCM/KE8MNNATNpmA6yRP
/U47OU69gBE5Hldl9taPBRilmfTix/UXAEiGmO6DsN8xADGuoCODzK28E+ix+tzF
mtTS5lG7JNdnGWXYrY+lEx9aUgmT7vItBtudc4X2FdoCs0UahMwuF1H4JKrOyKI=
=g2WC
-----END PGP SIGNATURE-----
payloadX  tree 1842dee6d72bf9442da52935882cd999c7379f7d
parent 9be0bcb6fc58d444e57bd4c235981735b0c0ecb0
author Sam-Kramer <sam.c.kramer@gmail.com> 1682678729 +0100
committer GitHub <noreply@github.com> 1682678729 +0000

Use three timelocks for antithesis tests (#6550)

 uuj9  ^https://api.github.com/repos/palantir/atlasdb/commits/43adb2ed2ed640a3862ee0527e4d5f8ba090356ahtml_urlShttps://github.com/palantir/atlasdb/commit/43adb2ed2ed640a3862ee0527e4d5f8ba090356acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/43adb2ed2ed640a3862ee0527e4d5f8ba090356a/commentsj9  }(login
Sam-KrameridJ^2_ j9  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j9  'https://api.github.com/users/Sam-Kramerj9  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj9  }(j9  web-flowj9  J/j9  MDQ6VXNlcjE5ODY0NDQ3j9  4https://avatars.githubusercontent.com/u/19864447?v=4j9  h5j9  %https://api.github.com/users/web-flowj9  https://github.com/web-flowj9  /https://api.github.com/users/web-flow/followersj9  <https://api.github.com/users/web-flow/following{/other_user}j9  5https://api.github.com/users/web-flow/gists{/gist_id}j9  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j9  3https://api.github.com/users/web-flow/subscriptionsj9  *https://api.github.com/users/web-flow/orgsj9  +https://api.github.com/users/web-flow/reposj9  6https://api.github.com/users/web-flow/events{/privacy}j9  5https://api.github.com/users/web-flow/received_eventsj9  Userj:  uparents]}(j9  (9be0bcb6fc58d444e57bd4c235981735b0c0ecb0j9  ^https://api.github.com/repos/palantir/atlasdb/commits/9be0bcb6fc58d444e57bd4c235981735b0c0ecb0j9  Shttps://github.com/palantir/atlasdb/commit/9be0bcb6fc58d444e57bd4c235981735b0c0ecb0uastats}(totalK_	additionsKX	deletionsKufiles](}(j9  (348ab9498e34371d3ebb51cdb40a63a7df14a211filename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedj:  K#j:  KchangesK)blob_urlhttps://github.com/palantir/atlasdb/blob/43adb2ed2ed640a3862ee0527e4d5f8ba090356a/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/43adb2ed2ed640a3862ee0527e4d5f8ba090356a/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=43adb2ed2ed640a3862ee0527e4d5f8ba090356apatchXF	  @@ -52,30 +52,59 @@ services:
       antithesis-net:
         ipv4_address: 10.20.20.4
 
-  timelock:
+  timelock1.palantir.pt:
     image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [ bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
     ports:
       - "8421"
       - "8422"
-    container_name: timelock
+    container_name: timelock1.palantir.pt
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.5
 
+  timelock2.palantir.pt:
+    image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [ bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
+    ports:
+      - "8421"
+      - "8422"
+    container_name: timelock2.palantir.pt
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.6
+
+  timelock3.palantir.pt:
+    image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
+    ports:
+      - "8421"
+      - "8422"
+    container_name: timelock3.palantir.pt
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.7
+
+
   workload-server:
     image: palantirtechnologies/atlasdb-workload-server-distribution:unspecified
-    command: [bash, -c, 'cp var/conf/workload-server.timelock.cassandra.yml var/conf/workload-server.yml 
-                         && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160 
+    command: [bash, -c, 'cp var/conf/workload-server.timelock.cassandra.yml var/conf/workload-server.yml
+                         && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160
                          && service/bin/init.sh console']
     container_name: workload-server
     depends_on:
       - cassandra1
       - cassandra2
       - cassandra3
-      - timelock
+      - timelock1.palantir.pt
+      - timelock2.palantir.pt
+      - timelock3.palantir.pt
     networks:
       antithesis-net:
-        ipv4_address: 10.20.20.6
+        ipv4_address: 10.20.20.8
 
 networks:
   antithesis-net:u}(j9  (e9233d647ddfb89bc234f3cf5711b40fbb6255c2j!:  Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj#:  modifiedj:  Kj:  Kj%:  Kj&:  https://github.com/palantir/atlasdb/blob/43adb2ed2ed640a3862ee0527e4d5f8ba090356a/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj(:  https://github.com/palantir/atlasdb/raw/43adb2ed2ed640a3862ee0527e4d5f8ba090356a/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj*:  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=43adb2ed2ed640a3862ee0527e4d5f8ba090356aj,:  X  @@ -10,7 +10,9 @@ runtime:
     timelockRuntime:
       serversList:
         servers:
-          - 'http://timelock:8421'
+          - 'https://timelock1.palantir.pt:8421'
+          - 'https://timelock2.palantir.pt:8421'
+          - 'https://timelock3.palantir.pt:8421'
         sslConfiguration:
           keyStorePath: "var/security/keyStore.jks"
           keyStorePassword: "keystore"u}(j9  (436b0a5b41be9609f93c54d0c8fca21c38fded84j!:  >timelock-server-distribution/var/conf/timelock.distributed.ymlj#:  addedj:  K2j:  K j%:  K2j&:  https://github.com/palantir/atlasdb/blob/43adb2ed2ed640a3862ee0527e4d5f8ba090356a/timelock-server-distribution%2Fvar%2Fconf%2Ftimelock.distributed.ymlj(:  https://github.com/palantir/atlasdb/raw/43adb2ed2ed640a3862ee0527e4d5f8ba090356a/timelock-server-distribution%2Fvar%2Fconf%2Ftimelock.distributed.ymlj*:  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-distribution%2Fvar%2Fconf%2Ftimelock.distributed.yml?ref=43adb2ed2ed640a3862ee0527e4d5f8ba090356aj,:  X  @@ -0,0 +1,50 @@
+install:
+  paxos:
+    data-directory: "var/data/paxos"
+    is-new-service: false
+  timestampBoundPersistence:
+
+runtime:
+  cluster-config-not-live-reloaded:
+    cluster:
+      uris:
+        - "localhost:8421"
+        - "timelock1.palantir.pt:8421"
+        - "timelock2.palantir.pt:8421"
+        - "timelock3.palantir.pt:8421"
+      security:
+        keyStorePath: "var/security/keyStore.jks"
+        keyStorePassword: "keystore"
+        trustStorePath: "var/security/trustStore.jks"
+    local-server: "localhost:8421"
+    enableNonstandardAndPossiblyDangerousTopology: true
+  paxos:
+  permitted-backup-token: "test-auth"
+
+server:
+  applicationConnectors:
+    - type: https
+      port: 8421
+      keyStorePath: var/security/keyStore.jks
+      keyStorePassword: keystore
+      trustStorePath: var/security/trustStore.jks
+      validateCerts: false
+      supportedCipherSuites:
+        - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
+        - TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
+        - TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
+        - TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
+        - TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384
+        - TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256
+        - TLS_RSA_WITH_AES_128_CBC_SHA256
+        - TLS_RSA_WITH_AES_256_CBC_SHA256
+        - TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
+        - TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
+        - TLS_ECDH_RSA_WITH_AES_256_CBC_SHA
+        - TLS_ECDH_RSA_WITH_AES_128_CBC_SHA
+        - TLS_RSA_WITH_AES_256_CBC_SHA
+        - TLS_RSA_WITH_AES_128_CBC_SHA
+        - TLS_EMPTY_RENEGOTIATION_INFO_SCSV
+  adminConnectors:
+    - type: http
+      port: 8422ueu(a563dda8deec06188d726e4183970904defc89ab}(sha(a563dda8deec06188d726e4183970904defc89abnode_idEC_kwDOAjP5fdoAKGE1NjNkZGE4ZGVlYzA2MTg4ZDcyNmU0MTgzOTcwOTA0ZGVmYzg5YWIcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-03-21T14:24:59Zu	committer}(jH:  
Ahmed AlouanejJ:  aalouane@palantir.comjL:  2023-03-21T14:24:59Zumessagepicktree}(j@:  (028a22258e650e4626ed9f4d9d94243922449ebburl`https://api.github.com/repos/palantir/atlasdb/git/trees/028a22258e650e4626ed9f4d9d94243922449ebbujX:  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a563dda8deec06188d726e4183970904defc89ab
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQZvjsACgkQPlMHVIT1
yhpQvwf/dp/jXpHV1jXMfwUwAmXWkIyLPedvWEVO2SnMziEeZ67Q5n1zTPhu/BS6
XLZpU9xHWQBDNTDsgf5kJt26z07n0bFMAaUwTd+jgrOlm4EG1K+0/btHq/wcgi7r
BMFwRUc7NDl0zS6EDFGzCSXlQF7vK8PBm4fzea8QXCZ03XIglkOSqxj+Zc+SOaaA
zgT9V0uqMddYumd1bZnUbPKCqYXjYxLkgN/3w88MS6dXVABgkixR8hBBSPma46jf
xLxWKUUOdW/iBHsso9Sqb5xjsM+HSpih7AW0oZTuGuQuFB8gP0GNvJEcW7lx1hH6
2RTRGx770Ass6ZW4LFQ6CGawY0zWDA==
=6xNL
-----END PGP SIGNATURE-----payloadtree 028a22258e650e4626ed9f4d9d94243922449ebb
parent 6d00cf306c229c718347717ead9bc5f90ba743a3
author Ahmed Alouane <aalouane@palantir.com> 1679408699 +0000
committer Ahmed Alouane <aalouane@palantir.com> 1679408699 +0000

pick
uujX:  ^https://api.github.com/repos/palantir/atlasdb/commits/a563dda8deec06188d726e4183970904defc89abhtml_urlShttps://github.com/palantir/atlasdb/commit/a563dda8deec06188d726e4183970904defc89abcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a563dda8deec06188d726e4183970904defc89ab/commentsjF:  }(loginergo14idJjB:  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jX:  #https://api.github.com/users/ergo14jf:  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujN:  }(jk:  ergo14jm:  JjB:  MDQ6VXNlcjMwOTAzNzM2jo:  4https://avatars.githubusercontent.com/u/30903736?v=4jq:  h5jX:  #https://api.github.com/users/ergo14jf:  https://github.com/ergo14jt:  -https://api.github.com/users/ergo14/followersjv:  :https://api.github.com/users/ergo14/following{/other_user}jx:  3https://api.github.com/users/ergo14/gists{/gist_id}jz:  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j|:  1https://api.github.com/users/ergo14/subscriptionsj~:  (https://api.github.com/users/ergo14/orgsj:  )https://api.github.com/users/ergo14/reposj:  4https://api.github.com/users/ergo14/events{/privacy}j:  3https://api.github.com/users/ergo14/received_eventsj:  Userj:  uparents]}(j@:  (6d00cf306c229c718347717ead9bc5f90ba743a3jX:  ^https://api.github.com/repos/palantir/atlasdb/commits/6d00cf306c229c718347717ead9bc5f90ba743a3jf:  Shttps://github.com/palantir/atlasdb/commit/6d00cf306c229c718347717ead9bc5f90ba743a3uastats}(totalKS	additionsKI	deletionsK
ufiles](}(j@:  (b2cafdc6a87f54c1f818962d2801a2edd0ae1f12filename.palantir/revapi.ymlstatusmodifiedj:  Kj:  K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/a563dda8deec06188d726e4183970904defc89ab/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/a563dda8deec06188d726e4183970904defc89ab/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=a563dda8deec06188d726e4183970904defc89abpatchX  @@ -110,3 +110,8 @@ acceptedBreaks:
     - code: "java.method.removed"
       old: "method boolean com.palantir.atlasdb.transaction.service.TransactionStatus::equals(java.lang.Object)"
       justification: "Internal methods"
+  "0.815.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.class.removed"
+      old: "interface com.palantir.atlasdb.transaction.api.expectations.ExpectationsAwareTransaction"
+      justification: "moving out of API"u}(j@:  (17e6e0aeb1b64c151980df0c777b470289e11f67j:  batlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractTransactionManager.javaj:  modifiedj:  Kj:  K j:  Kj:  https://github.com/palantir/atlasdb/blob/a563dda8deec06188d726e4183970904defc89ab/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionManager.javaj:  https://github.com/palantir/atlasdb/raw/a563dda8deec06188d726e4183970904defc89ab/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionManager.javaj:  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionManager.java?ref=a563dda8deec06188d726e4183970904defc89abj:  X&  @@ -81,6 +81,7 @@ protected final <T, E extends Exception> T runTaskThrowOnConflictWithCallback(
             }
         } finally {
             callback.run();
+            txn.reportExpectationsCollectedData();
             txn.runSuccessCallbacksIfDefinitivelyCommitted();
         }
     }u}(j@:  (312e2352c1ff098b40a0bde4a89d1d06d92a2267j:  `atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CallbackAwareTransaction.javaj:  modifiedj:  Kj:  Kj:  Kj:  https://github.com/palantir/atlasdb/blob/a563dda8deec06188d726e4183970904defc89ab/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCallbackAwareTransaction.javaj:  https://github.com/palantir/atlasdb/raw/a563dda8deec06188d726e4183970904defc89ab/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCallbackAwareTransaction.javaj:  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCallbackAwareTransaction.java?ref=a563dda8deec06188d726e4183970904defc89abj:  X,  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.PreCommitCondition;
-import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionFailedException;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 
@@ -26,7 +25,7 @@
  * are run. This can be used to e.g run {@link PreCommitCondition#cleanup()} <i>before</i> the onSuccess callbacks
  * are run.
  */
-public interface CallbackAwareTransaction extends Transaction {
+public interface CallbackAwareTransaction extends ExpectationsAwareTransaction {
     void commitWithoutCallbacks() throws TransactionFailedException;
 
     void commitWithoutCallbacks(TransactionService transactionService) throws TransactionFailedException;u}(j@:  (7e87069870a53942641d65bb9f40d143a983e452j:  datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ExpectationsAwareTransaction.javaj:  renamedj:  Kj:  Kj:  Kj:  https://github.com/palantir/atlasdb/blob/a563dda8deec06188d726e4183970904defc89ab/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj:  https://github.com/palantir/atlasdb/raw/a563dda8deec06188d726e4183970904defc89ab/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj:  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.java?ref=a563dda8deec06188d726e4183970904defc89abj:  XU  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,15 +14,15 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.transaction.api.expectations;
+package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 /**
  * Implementors of this interface provide methods useful for tracking transactional expectations and whether
  * they were breached as well as relevant metrics and alerts. Transactional expectations represent transaction-level
  * limits and rules for proper usage of AtlasDB transactions (e.g. reading too much data overall).
- * Todo(aalouane): move this out of API once part 4 is merged
  */
 public interface ExpectationsAwareTransaction extends Transaction {
     long getAgeMillis();previous_filenamematlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/ExpectationsAwareTransaction.javau}(j@:  (71c4c8f8ff1bba49188c7bece8ec3b1fdebf6e66j:  jatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingCallbackAwareTransaction.javaj:  modifiedj:  Kj:  Kj:  Kj:  https://github.com/palantir/atlasdb/blob/a563dda8deec06188d726e4183970904defc89ab/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingCallbackAwareTransaction.javaj:  https://github.com/palantir/atlasdb/raw/a563dda8deec06188d726e4183970904defc89ab/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingCallbackAwareTransaction.javaj:  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingCallbackAwareTransaction.java?ref=a563dda8deec06188d726e4183970904defc89abj:  X  @@ -19,7 +19,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionFailedException;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 
-public abstract class ForwardingCallbackAwareTransaction extends ForwardingTransaction
+public abstract class ForwardingCallbackAwareTransaction extends ForwardingExpectationsAwareTransaction
         implements CallbackAwareTransaction {
 
     @Overrideu}(j@:  (b0f9e2b48803d8c98708f77f72b9c6d498e1be5aj:  natlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingExpectationsAwareTransaction.javaj:  addedj:  K)j:  K j:  K)j:  https://github.com/palantir/atlasdb/blob/a563dda8deec06188d726e4183970904defc89ab/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj:  https://github.com/palantir/atlasdb/raw/a563dda8deec06188d726e4183970904defc89ab/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj:  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.java?ref=a563dda8deec06188d726e4183970904defc89abj:  X[  @@ -0,0 +1,41 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+
+public abstract class ForwardingExpectationsAwareTransaction extends ForwardingTransaction
+        implements ExpectationsAwareTransaction {
+
+    @Override
+    public abstract ExpectationsAwareTransaction delegate();
+
+    @Override
+    public long getAgeMillis() {
+        return delegate().getAgeMillis();
+    }
+
+    @Override
+    public TransactionReadInfo getReadInfo() {
+        return delegate().getReadInfo();
+    }
+
+    @Override
+    public void reportExpectationsCollectedData() {
+        delegate().reportExpectationsCollectedData();
+    }
+}u}(j@:  (4d13603f168edbd66a401b0f573473fe144b24a4j:  `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj:  modifiedj:  Kj:  Kj:  Kj:  https://github.com/palantir/atlasdb/blob/a563dda8deec06188d726e4183970904defc89ab/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj:  https://github.com/palantir/atlasdb/raw/a563dda8deec06188d726e4183970904defc89ab/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj:  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=a563dda8deec06188d726e4183970904defc89abj:  X
  @@ -97,6 +97,9 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
+import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueServiceImpl;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.TransactionOutcomeMetrics;
 import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
@@ -219,7 +222,7 @@ private enum State {
 
     protected final TimelockService timelockService;
     protected final LockWatchManagerInternal lockWatchManager;
-    final KeyValueService keyValueService;
+    final TrackingKeyValueService keyValueService;
     final AsyncKeyValueService immediateKeyValueService;
     final TransactionService defaultTransactionService;
     private final AsyncTransactionService immediateTransactionService;
@@ -277,7 +280,7 @@ private enum State {
      */
     /* package */ SnapshotTransaction(
             MetricsManager metricsManager,
-            KeyValueService keyValueService,
+            KeyValueService delegateKeyValueService,
             TimelockService timelockService,
             LockWatchManagerInternal lockWatchManager,
             TransactionService transactionService,
@@ -306,7 +309,7 @@ private enum State {
         this.lockWatchManager = lockWatchManager;
         this.conflictTracer = conflictTracer;
         this.transactionTimerContext = getTimer("transactionMillis").time();
-        this.keyValueService = keyValueService;
+        this.keyValueService = new TrackingKeyValueServiceImpl(delegateKeyValueService);
         this.immediateKeyValueService = KeyValueServices.synchronousAsAsyncKeyValueService(keyValueService);
         this.timelockService = timelockService;
         this.defaultTransactionService = transactionService;
@@ -2583,6 +2586,20 @@ private boolean validationNecessaryForInvolvedTablesOnCommit() {
         return anyTableRequiresImmutableTimestampLocking && needsToValidate;
     }
 
+    @Override
+    public long getAgeMillis() {
+        return System.currentTimeMillis() - timeCreated;
+    }
+
+    @Override
+    public TransactionReadInfo getReadInfo() {
+        return keyValueService.getOverallReadInfo();
+    }
+
+    // TODO(aalouane): implement and call this on transaction exit
+    @Override
+    public void reportExpectationsCollectedData() {}
+
     private long getStartTimestamp() {
         return startTimestamp.get();
     }u}(j@:  (0936c8842d9f7738cbd5017afd9659293095521dj:  gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManager.javaj:  modifiedj:  Kj:  Kj:  Kj:  https://github.com/palantir/atlasdb/blob/a563dda8deec06188d726e4183970904defc89ab/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManager.javaj:  https://github.com/palantir/atlasdb/raw/a563dda8deec06188d726e4183970904defc89ab/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManager.javaj:  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManager.java?ref=a563dda8deec06188d726e4183970904defc89abj:  X  @@ -246,7 +246,7 @@ private OpenTransactionImpl(CallbackAwareTransaction delegate, LockToken immutab
         }
 
         @Override
-        public Transaction delegate() {
+        public CallbackAwareTransaction delegate() {
             return delegate;
         }
 ueu(94314992cc28236525ccd36e02bd47e3b9069d96}(sha(94314992cc28236525ccd36e02bd47e3b9069d96node_idEC_kwDOAjP5fdoAKDk0MzE0OTkyY2MyODIzNjUyNWNjZDM2ZTAyYmQ0N2UzYjkwNjlkOTYcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-08-08T19:50:28Zu	committer}(j:  Tom Petraccaj:  tpetracca@palantir.comj:  2023-08-08T19:50:28Zumessagefix TMs abi breaktree}(j:  (ddcacc17500dcab6ac9779d8e6581d2a9f42b9bfurl`https://api.github.com/repos/palantir/atlasdb/git/trees/ddcacc17500dcab6ac9779d8e6581d2a9f42b9bfuj	;  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/94314992cc28236525ccd36e02bd47e3b9069d96
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEHTC5rqjQ6qmsb7sZRnUGJaXvqFMFAmTSnIQACgkQRnUGJaXv
qFOqOQf/dgFb2TKouhK5bn8uED4utPVuQxeRG2R/QVoLlBzIYCeJq25XvhUuM46T
3LZ5AT2x/Jmg7b6/D8bOEdQFzux6pY0gfEuHIciuFPE68Mg2hJ1L8WE5rB/8r72t
Rb/rWe07vKwwJwzdii/qCK4rFV7nbN2p9BVEsoDbjG8YIouj/eAxKaC3PdFxebqN
eouGlzIZ50tbTZqCfRA5Jgb/6dakjdk+XCe3AUYu5k+5QACD8nNidWmqLuKY/3Aq
8cuQ+SgtbA9O9A3bRZiQCpjbEKbunKehuvbDNc+l2tgpXuarYHP9Y4oMFMCuS+9J
6EmSmrRa21ZWBNFgGAjAlrDjjzjFvg==
=MOO1
-----END PGP SIGNATURE-----payloadtree ddcacc17500dcab6ac9779d8e6581d2a9f42b9bf
parent 9970453d639510f15d35a8fae963e600ccbd7d83
author Tom Petracca <tpetracca@palantir.com> 1691524228 -0400
committer Tom Petracca <tpetracca@palantir.com> 1691524228 -0400

fix TMs abi break
uuj	;  ^https://api.github.com/repos/palantir/atlasdb/commits/94314992cc28236525ccd36e02bd47e3b9069d96html_urlShttps://github.com/palantir/atlasdb/commit/94314992cc28236525ccd36e02bd47e3b9069d96comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/94314992cc28236525ccd36e02bd47e3b9069d96/commentsj:  }(login	tpetraccaidJ& j:  MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5j	;  &https://api.github.com/users/tpetraccaj;  https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminuj:  }(j;  	tpetraccaj;  J& j:  MDQ6VXNlcjI1NTQzMjg=j ;  3https://avatars.githubusercontent.com/u/2554328?v=4j";  h5j	;  &https://api.github.com/users/tpetraccaj;  https://github.com/tpetraccaj%;  0https://api.github.com/users/tpetracca/followersj';  =https://api.github.com/users/tpetracca/following{/other_user}j);  6https://api.github.com/users/tpetracca/gists{/gist_id}j+;  =https://api.github.com/users/tpetracca/starred{/owner}{/repo}j-;  4https://api.github.com/users/tpetracca/subscriptionsj/;  +https://api.github.com/users/tpetracca/orgsj1;  ,https://api.github.com/users/tpetracca/reposj3;  7https://api.github.com/users/tpetracca/events{/privacy}j5;  6https://api.github.com/users/tpetracca/received_eventsj7;  Userj9;  uparents]}(j:  (9970453d639510f15d35a8fae963e600ccbd7d83j	;  ^https://api.github.com/repos/palantir/atlasdb/commits/9970453d639510f15d35a8fae963e600ccbd7d83j;  Shttps://github.com/palantir/atlasdb/commit/9970453d639510f15d35a8fae963e600ccbd7d83uastats}(totalK	additionsK	deletionsK ufiles](}(j:  (1fc9ac5c4a1a439011778a07639126259a58e6c5filenameatlasdb-config/build.gradlestatusmodifiedjS;  KjT;  K changesKblob_urlohttps://github.com/palantir/atlasdb/blob/94314992cc28236525ccd36e02bd47e3b9069d96/atlasdb-config%2Fbuild.gradleraw_urlnhttps://github.com/palantir/atlasdb/raw/94314992cc28236525ccd36e02bd47e3b9069d96/atlasdb-config%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fbuild.gradle?ref=94314992cc28236525ccd36e02bd47e3b9069d96patch@@ -1,4 +1,5 @@
 apply from: "../gradle/shared.gradle"
+apply plugin: 'com.palantir.revapi'
 
 dependencies {
     api project(':atlasdb-api')u}(j:  (b7689360d69ada394c8f57da9320c15057d604aajY;  Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javaj[;  modifiedjS;  K
jT;  K j];  K
j^;  https://github.com/palantir/atlasdb/blob/94314992cc28236525ccd36e02bd47e3b9069d96/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj`;  https://github.com/palantir/atlasdb/raw/94314992cc28236525ccd36e02bd47e3b9069d96/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajb;  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=94314992cc28236525ccd36e02bd47e3b9069d96jd;  X  @@ -169,6 +169,16 @@ public abstract class TransactionManagers {
 
     abstract Set<Schema> schemas();
 
+    /**
+     * @deprecated This method is not used and should not be overriden from the default. It only exists because deleting
+     * it would be an ABI break.
+     */
+    @Value.Default
+    @Deprecated
+    Consumer<Object> registrar() {
+        return resource -> {};
+    }
+
     @Value.Default
     LockServerOptions lockServerOptions() {
         return LockServerConfigs.DEFAULT;ueu(80e9be61d3baf5faf10e6ecd98b9a4c1e8a4fd27}(sha(80e9be61d3baf5faf10e6ecd98b9a4c1e8a4fd27node_idEC_kwDOAjP5fdoAKDgwZTliZTYxZDNiYWY1ZmFmMTBlNmVjZDk4YjlhNGMxZThhNGZkMjccommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-05-25T13:32:34Zu	committer}(jx;  Lucas Meirelesjz;  meireles31@msn.comj|;  2023-05-25T13:32:34ZumessageBMerge branch 'develop' into lmeireles/broken-lock-check-on-purposetree}(jp;  (abcfcb523dddaa697f7a711f8e096e69da282d0durl`https://api.github.com/repos/palantir/atlasdb/git/trees/abcfcb523dddaa697f7a711f8e096e69da282d0duj;  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/80e9be61d3baf5faf10e6ecd98b9a4c1e8a4fd27
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmRvY3QACgkQJd22kJ7J
GizPrAf8DDtdOtAP9PJQrMkMA9m+uU9sAFZxp6Lamf5EX+ovBYgCJpUD/xutP2f9
P7xmFpoHhboOYC79cjVzQd4bjGafcfKaUi3Jv5+FSBmA3EJ849Xpwy04xDvjQR0f
2OtA+F0a4VMeoMwG1SsBLm7+5aR2srZGqNEBHrPsGYvR/ClespnsY+kMxLSoZiW2
UQhfC6fOHnFpuRkduRB5fSDk+RGUUcdlCwaeiqFJgKQhKOk/XhuMOKfsKny2c/7c
mK2wu0dnWgJfcOwtXWCkROzv7hP4erQs1VsXLmlaOHQDQnJa7MgSiaIWSOfOZDcv
oBpRyyuRCcUKmTkXPIu3cpxWr51jCA==
=/WxR
-----END PGP SIGNATURE-----payloadXM  tree abcfcb523dddaa697f7a711f8e096e69da282d0d
parent 4b3b2c8e60dd577b5a9c1ce2eae3c0c8608f60ba
parent 3f5847c30c2cd0fed823af2a401bc2159a2e2178
author Lucas Meireles <meireles31@msn.com> 1685021554 +0100
committer Lucas Meireles <meireles31@msn.com> 1685021554 +0100

Merge branch 'develop' into lmeireles/broken-lock-check-on-purpose
uuj;  ^https://api.github.com/repos/palantir/atlasdb/commits/80e9be61d3baf5faf10e6ecd98b9a4c1e8a4fd27html_urlShttps://github.com/palantir/atlasdb/commit/80e9be61d3baf5faf10e6ecd98b9a4c1e8a4fd27comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/80e9be61d3baf5faf10e6ecd98b9a4c1e8a4fd27/commentsjv;  }(loginLucasIMEidJg jr;  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j;  %https://api.github.com/users/LucasIMEj;  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj~;  }(j;  LucasIMEj;  Jg jr;  MDQ6VXNlcjY3ODczMTE=j;  3https://avatars.githubusercontent.com/u/6787311?v=4j;  h5j;  %https://api.github.com/users/LucasIMEj;  https://github.com/LucasIMEj;  /https://api.github.com/users/LucasIME/followersj;  <https://api.github.com/users/LucasIME/following{/other_user}j;  5https://api.github.com/users/LucasIME/gists{/gist_id}j;  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j;  3https://api.github.com/users/LucasIME/subscriptionsj;  *https://api.github.com/users/LucasIME/orgsj;  +https://api.github.com/users/LucasIME/reposj;  6https://api.github.com/users/LucasIME/events{/privacy}j;  5https://api.github.com/users/LucasIME/received_eventsj;  Userj;  uparents](}(jp;  (4b3b2c8e60dd577b5a9c1ce2eae3c0c8608f60baj;  ^https://api.github.com/repos/palantir/atlasdb/commits/4b3b2c8e60dd577b5a9c1ce2eae3c0c8608f60baj;  Shttps://github.com/palantir/atlasdb/commit/4b3b2c8e60dd577b5a9c1ce2eae3c0c8608f60bau}(jp;  (3f5847c30c2cd0fed823af2a401bc2159a2e2178j;  ^https://api.github.com/repos/palantir/atlasdb/commits/3f5847c30c2cd0fed823af2a401bc2159a2e2178j;  Shttps://github.com/palantir/atlasdb/commit/3f5847c30c2cd0fed823af2a401bc2159a2e2178uestats}(totalK	additionsK	deletionsKufiles]}(jp;  (0f82e64a27ea34ae828da5d2e85bdc78bc9148d6filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj;  Kj;  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/80e9be61d3baf5faf10e6ecd98b9a4c1e8a4fd27/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/80e9be61d3baf5faf10e6ecd98b9a4c1e8a4fd27/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=80e9be61d3baf5faf10e6ecd98b9a4c1e8a4fd27patchX  @@ -1950,8 +1950,9 @@ private void commitWrites(TransactionService transactionService) {
                 if (validationNecessaryForInvolvedTablesOnCommit()) {
                     throwIfImmutableTsOrCommitLocksExpired(null);
                 }
-                return;
             }
+            getTimer("nonWriteCommitTotalTimeSinceTxCreation")
+                    .update(Duration.of(transactionTimerContext.stop(), ChronoUnit.NANOS));
             return;
         }
 uau(170af6c0a17c2cb79562b6b24f18e60e24802ff9}(sha(170af6c0a17c2cb79562b6b24f18e60e24802ff9node_idEC_kwDOAjP5fdoAKDE3MGFmNmMwYTE3YzJjYjc5NTYyYjZiMjRmMThlNjBlMjQ4MDJmZjkcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-04-04T03:24:50Zu	committer}(j;  svc-excavator-botj;  svc-excavator-bot@palantir.comj;  2023-04-04T03:24:50Zumessage#Excavator:  Upgrade Undertow Servertree}(j;  (71771e9b3fc87f0523c42b69bcadd8bd2344a9c1url`https://api.github.com/repos/palantir/atlasdb/git/trees/71771e9b3fc87f0523c42b69bcadd8bd2344a9c1uj<  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/170af6c0a17c2cb79562b6b24f18e60e24802ff9
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQrmIIJEMmvEkpISILgAADVygEApdcj58fBBb+rp29BzGfbpj1X
gHx77rwBi5ptlyWU9WsBALSPwEI3fQz+vBL+kmoX+YUI3YC8PfGPIfHbe/FmHlEq
=olJg
-----END PGP SIGNATURE-----
payloadX  tree 71771e9b3fc87f0523c42b69bcadd8bd2344a9c1
parent c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1680578690 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1680578690 +0000

Excavator:  Upgrade Undertow Serveruuj<  ^https://api.github.com/repos/palantir/atlasdb/commits/170af6c0a17c2cb79562b6b24f18e60e24802ff9html_urlShttps://github.com/palantir/atlasdb/commit/170af6c0a17c2cb79562b6b24f18e60e24802ff9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/170af6c0a17c2cb79562b6b24f18e60e24802ff9/comments       j;  }(loginsvc-excavator-botidJj;  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j<  .https://api.github.com/users/svc-excavator-botj<  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj;  }(j<  svc-excavator-botj<  Jj;  MDQ6VXNlcjMzMjY2MzY4j<  4https://avatars.githubusercontent.com/u/33266368?v=4j<  h5j<  .https://api.github.com/users/svc-excavator-botj<  $https://github.com/svc-excavator-botj<  8https://api.github.com/users/svc-excavator-bot/followersj!<  Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}j#<  >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}j%<  Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}j'<  <https://api.github.com/users/svc-excavator-bot/subscriptionsj)<  3https://api.github.com/users/svc-excavator-bot/orgsj+<  4https://api.github.com/users/svc-excavator-bot/reposj-<  ?https://api.github.com/users/svc-excavator-bot/events{/privacy}j/<  >https://api.github.com/users/svc-excavator-bot/received_eventsj1<  Userj3<  uparents]}(j;  (c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263j<  ^https://api.github.com/repos/palantir/atlasdb/commits/c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263j<  Shttps://github.com/palantir/atlasdb/commit/c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263uastats}(totalK	additionsK	deletionsKufiles](}(j;  (beb847c98456507c4d4b1a5a8801accabc1394e4filename
versions.lockstatusmodifiedjM<  KjN<  KchangesKblob_url_https://github.com/palantir/atlasdb/blob/170af6c0a17c2cb79562b6b24f18e60e24802ff9/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/170af6c0a17c2cb79562b6b24f18e60e24802ff9/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=170af6c0a17c2cb79562b6b24f18e60e24802ff9patchXT  @@ -186,7 +186,7 @@ io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf
 io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
-io.undertow:undertow-core:2.2.22.Final (2 constraints: 341d4606)
+io.undertow:undertow-core:2.2.24.Final (2 constraints: 361dd006)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)u}(j;  (4b89bc1a7343e19e2133e9125547fc4f7bbd1800jS<  versions.propsjU<  modifiedjM<  KjN<  KjW<  KjX<  `https://github.com/palantir/atlasdb/blob/170af6c0a17c2cb79562b6b24f18e60e24802ff9/versions.propsjZ<  _https://github.com/palantir/atlasdb/raw/170af6c0a17c2cb79562b6b24f18e60e24802ff9/versions.propsj\<  rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=170af6c0a17c2cb79562b6b24f18e60e24802ff9j^<  X'  @@ -46,7 +46,7 @@ commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
 io.netty:* = 4.1.90.Final
-io.undertow:* = 2.2.22.Final
+io.undertow:* = 2.2.24.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2ueu(fcd41270f16004a6036f37791d9f01f1c3cf4106}(sha(fcd41270f16004a6036f37791d9f01f1c3cf4106node_idEC_kwDOAjP5fdoAKGZjZDQxMjcwZjE2MDA0YTYwMzZmMzc3OTFkOWYwMWYxYzNjZjQxMDYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-03-06T15:52:47Zu	committer}(jr<  
Ahmed Alouanejt<  aalouane@palantir.comjv<  2023-03-06T15:52:47Zumessagefixtree}(jj<  (85a93f7416f6ad8cdb892a622655e11ed2e9a546url`https://api.github.com/repos/palantir/atlasdb/git/trees/85a93f7416f6ad8cdb892a622655e11ed2e9a546uj<  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fcd41270f16004a6036f37791d9f01f1c3cf4106
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQGDE8ACgkQPlMHVIT1
yhpwmAf+LOqn3m13q6Hfq8N1rdnZk6mnRDV+9I+H1d0O8/YGl4opGV95+/YvH1fS
pvmhQYRAESul0o50F8AdxsBY6loJGjzngi8bsdHnk9b7P5pfoxPFOOAEUT1S6g83
tj5vi9iLT0Av+igB38GCzB344GQdHe3ifXVR/2t1/5e24L3ReSFjatpp+3E4UR6g
KVafBbk4QfuYaQJ2Wq2NQPWQ0UZX9mHoDFlwTQrxECWFt6utogG7bEK5Fq8dnnAY
ZWWFQ7PXVfwdsZpQaLXU/EF+wTUdDGNyNTSL3BNjM7JQ2unOuVRY4+HqGgN2PmwH
R5YP/oWrYbYeEWjGMq4y0IKjso0oBQ==
=KyaG
-----END PGP SIGNATURE-----payloadtree 85a93f7416f6ad8cdb892a622655e11ed2e9a546
parent 666a7563a2ce558765e8b574ed7cb05e8a9a8bb8
author Ahmed Alouane <aalouane@palantir.com> 1678117967 +0000
committer Ahmed Alouane <aalouane@palantir.com> 1678117967 +0000

fix
uuj<  ^https://api.github.com/repos/palantir/atlasdb/commits/fcd41270f16004a6036f37791d9f01f1c3cf4106html_urlShttps://github.com/palantir/atlasdb/commit/fcd41270f16004a6036f37791d9f01f1c3cf4106comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fcd41270f16004a6036f37791d9f01f1c3cf4106/commentsjp<  }(loginergo14idJjl<  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j<  #https://api.github.com/users/ergo14j<  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujx<  }(j<  ergo14j<  Jjl<  MDQ6VXNlcjMwOTAzNzM2j<  4https://avatars.githubusercontent.com/u/30903736?v=4j<  h5j<  #https://api.github.com/users/ergo14j<  https://github.com/ergo14j<  -https://api.github.com/users/ergo14/followersj<  :https://api.github.com/users/ergo14/following{/other_user}j<  3https://api.github.com/users/ergo14/gists{/gist_id}j<  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j<  1https://api.github.com/users/ergo14/subscriptionsj<  (https://api.github.com/users/ergo14/orgsj<  )https://api.github.com/users/ergo14/reposj<  4https://api.github.com/users/ergo14/events{/privacy}j<  3https://api.github.com/users/ergo14/received_eventsj<  Userj<  uparents]}(jj<  (666a7563a2ce558765e8b574ed7cb05e8a9a8bb8j<  ^https://api.github.com/repos/palantir/atlasdb/commits/666a7563a2ce558765e8b574ed7cb05e8a9a8bb8j<  Shttps://github.com/palantir/atlasdb/commit/666a7563a2ce558765e8b574ed7cb05e8a9a8bb8uastats}(totalK	additionsK	deletionsKufiles]}(jj<  (43155adf4fd528a37e39e203efebe9820f47ae04filenamefatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraServerOriginTest.javastatusmodifiedj<  Kj<  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/fcd41270f16004a6036f37791d9f01f1c3cf4106/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/fcd41270f16004a6036f37791d9f01f1c3cf4106/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.java?ref=fcd41270f16004a6036f37791d9f01f1c3cf4106patchX  @@ -50,7 +50,7 @@ public void mapAllServersToOriginFromServerSetReturnsMapWithAllSetElementsAsKeys
     @Test
     public void mapAllServersToOriginFromServerStreamWithUniqueElementsReturnsMapWithAllElementsAndAUniqueValue() {
         CassandraServerOrigin origin = CassandraServerOrigin.LAST_KNOWN;
-        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Set.of(SERVER_1, SERVER_2, SERVER_3), origin))
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Stream.of(SERVER_1, SERVER_2, SERVER_3), origin))
                 .containsExactlyInAnyOrderEntriesOf(Map.of(SERVER_1, origin, SERVER_2, origin, SERVER_3, origin));
     }
 uau(b3243ff458eba8c62532f6c844d6c5b998d6d869}(sha(b3243ff458eba8c62532f6c844d6c5b998d6d869node_idEC_kwDOAjP5fdoAKGIzMjQzZmY0NThlYmE4YzYyNTMyZjZjODQ0ZDZjNWI5OThkNmQ4Njkcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-14T14:22:32Zu	committer}(j<  	Tom Papkej<  tpapke@palantir.comj<  2023-06-14T14:23:22ZumessageLog snapshot, start, and stoptree}(j<  (a2b9951a72b339f71f6cbb9018b96ef785a2c2daurl`https://api.github.com/repos/palantir/atlasdb/git/trees/a2b9951a72b339f71f6cbb9018b96ef785a2c2dauj<  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b3243ff458eba8c62532f6c844d6c5b998d6d869
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSJzVoACgkQmF9s0kaF
Iw3X/wgAgo5kTjTMndp63oTaX6/O/D9TLCYHR5QlECjuqvxHS21ubw4oNmBpI69D
aYeK2XzzJAw6qrxJmmiR4OxfK6Q4TLOXWTYpDGsYpNvwjMQg7x2lrKY8/+J3kjjQ
GMYo/JuDDQoCWXQWnht0QAfU/9iGTb1dPBPKzcerhmVkl2Beo7X+KZybvHZgqJnF
qE06oxnkgfIl0e8qDp1X3SCaeu/BwRt+IxsofxZ1CbS4GXFyQFz+Uy704TBX7wJI
5blLgvCorNa6tQ810QlhpLPBMHsz52Cn3XFzdNV25y2ui1NEi37rMqt6/UOdLFN9
aZv6bX9GAOixyNKaXKn5bhqTksEV2A==
=dErc
-----END PGP SIGNATURE-----payloadtree a2b9951a72b339f71f6cbb9018b96ef785a2c2da
parent fa370094fac5252ef12aa91b9622241f57eff096
author Tom Papke <tpapke@palantir.com> 1686752552 +0100
committer Tom Papke <tpapke@palantir.com> 1686752602 +0100

Log snapshot, start, and stop
uuj<  ^https://api.github.com/repos/palantir/atlasdb/commits/b3243ff458eba8c62532f6c844d6c5b998d6d869html_urlShttps://github.com/palantir/atlasdb/commit/b3243ff458eba8c62532f6c844d6c5b998d6d869comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b3243ff458eba8c62532f6c844d6c5b998d6d869/commentsj<  }(login	ToemmscheidJboj<  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j<  &https://api.github.com/users/Toemmschej=  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj<  }(j=  	Toemmschej=  Jboj<  MDQ6VXNlcjQzNjc1NDkwj=  4https://avatars.githubusercontent.com/u/43675490?v=4j=  h5j<  &https://api.github.com/users/Toemmschej=  https://github.com/Toemmschej=  0https://api.github.com/users/Toemmsche/followersj=  =https://api.github.com/users/Toemmsche/following{/other_user}j=  6https://api.github.com/users/Toemmsche/gists{/gist_id}j=  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j=  4https://api.github.com/users/Toemmsche/subscriptionsj=  +https://api.github.com/users/Toemmsche/orgsj!=  ,https://api.github.com/users/Toemmsche/reposj#=  7https://api.github.com/users/Toemmsche/events{/privacy}j%=  6https://api.github.com/users/Toemmsche/received_eventsj'=  Userj)=  uparents]}(j<  (fa370094fac5252ef12aa91b9622241f57eff096j<  ^https://api.github.com/repos/palantir/atlasdb/commits/fa370094fac5252ef12aa91b9622241f57eff096j=  Shttps://github.com/palantir/atlasdb/commit/fa370094fac5252ef12aa91b9622241f57eff096uastats}(totalK	additionsK	deletionsKufiles]}(j<  (3c958f57b1fc322a23b25762401744739d4bca04filenameQlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javastatusmodifiedjC=  KjD=  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b3243ff458eba8c62532f6c844d6c5b998d6d869/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b3243ff458eba8c62532f6c844d6c5b998d6d869/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=b3243ff458eba8c62532f6c844d6c5b998d6d869patchX	  @@ -24,7 +24,10 @@
 import com.palantir.lock.LockClientAndThread;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.refreshable.Disposable;
 import com.palantir.refreshable.Refreshable;
 import java.util.HashMap;
@@ -40,6 +43,7 @@
 import java.util.stream.Collectors;
 
 public class LockThreadInfoSnapshotManager implements AutoCloseable {
+    private static final SafeLogger log = SafeLoggerFactory.get(LockThreadInfoSnapshotManager.class);
     private Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration;
 
     private Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
@@ -72,8 +76,10 @@ public void start() {
 
     private void run() {
         takeSnapshot();
-
-        // schedule next snapshot so this can be enabled/disabled at runtime
+        log.info(
+                "Took lock thread info snapshot of size {}. Next snapshot due in {}",
+                SafeArg.of("snapshotSize", lastKnownThreadInfoSnapshot.size()),
+                SafeArg.of("snapshotInterval", threadInfoConfiguration.current().threadInfoSnapshotIntervalMillis()));
         scheduleRun();
     }
 
@@ -85,13 +91,19 @@ synchronized boolean isRunning() {
     private synchronized void scheduleRun() {
         if (threadInfoConfiguration.current().recordThreadInfo()) {
             if (!isRunning) {
+                log.info(
+                        "Starting to take lock thread info snapshots in the background",
+                        SafeArg.of(
+                                "snapshotInterval",
+                                threadInfoConfiguration.current().threadInfoSnapshotIntervalMillis()));
                 isRunning = true;
             }
             scheduledExecutorService.schedule(
                     this::run,
                     threadInfoConfiguration.current().threadInfoSnapshotIntervalMillis(),
                     TimeUnit.MILLISECONDS);
         } else {
+            log.info("Stopping background lock thread info snapshots");
             isRunning = false;
         }
     }uau(58f4c695f95104cef91ace9620346e12993fc560}(sha(58f4c695f95104cef91ace9620346e12993fc560node_idEC_kwDOAjP5fdoAKDU4ZjRjNjk1Zjk1MTA0Y2VmOTFhY2U5NjIwMzQ2ZTEyOTkzZmM1NjAcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-03T10:01:08Zu	committer}(j`=  
Sam Kramerjb=  skramer@palantir.comjd=  2023-05-03T10:01:08Zumessage[buggify-timelock] fix rebasetree}(jX=  (f923a6345b521b2e5070111a77f106129bbaf55durl`https://api.github.com/repos/palantir/atlasdb/git/trees/f923a6345b521b2e5070111a77f106129bbaf55dujp=  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/58f4c695f95104cef91ace9620346e12993fc560
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRSMOQACgkQmPPOpKR4
XS3E2AgAx0ygDyBvTvYIKu6mw6zRQfxVU77FSChdGnhdLL2FDveOkWP2DIVbO3fu
0nypMZ8eT+7v5UhF9qQPSxEdtaMct/hhV6Ki1PA/1LCNo0YZ5J4Ot+svcya8pYek
zNCk32K149kPEmyQb0aYydse54o6LlCeLPFbftscbdoVXkN0FIzL+2sKc1dEj/T6
VndHrnvZI+/ioKKItOJbmI+F07imgwyFD672xglYD75btcV94HHyotlqZzRfmati
0BRX/rGtU2bpp7LWx6Kc840xKp+fOib0gRoZV/F3h162O9ZLEzviCwF4QqIxOMJc
Gq3ZurqnJ6NWLZJPeTIciH3+AIjnQQ==
=0POE
-----END PGP SIGNATURE-----payloadtree f923a6345b521b2e5070111a77f106129bbaf55d
parent ed5d0b6e9c289a0bba39d0b3c104f91446c9392d
author Sam Kramer <skramer@palantir.com> 1683108068 +0100
committer Sam Kramer <skramer@palantir.com> 1683108068 +0100

[buggify-timelock] fix rebase
uujp=  ^https://api.github.com/repos/palantir/atlasdb/commits/58f4c695f95104cef91ace9620346e12993fc560html_urlShttps://github.com/palantir/atlasdb/commit/58f4c695f95104cef91ace9620346e12993fc560comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/58f4c695f95104cef91ace9620346e12993fc560/commentsj^=  }(login
Sam-KrameridJ^2_ jZ=  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jp=  'https://api.github.com/users/Sam-Kramerj~=  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujf=  }(j=  
Sam-Kramerj=  J^2_ jZ=  MDQ6VXNlcjYyMzg4MTQ=j=  3https://avatars.githubusercontent.com/u/6238814?v=4j=  h5jp=  'https://api.github.com/users/Sam-Kramerj~=  https://github.com/Sam-Kramerj=  1https://api.github.com/users/Sam-Kramer/followersj=  >https://api.github.com/users/Sam-Kramer/following{/other_user}j=  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j=  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j=  5https://api.github.com/users/Sam-Kramer/subscriptionsj=  ,https://api.github.com/users/Sam-Kramer/orgsj=  -https://api.github.com/users/Sam-Kramer/reposj=  8https://api.github.com/users/Sam-Kramer/events{/privacy}j=  7https://api.github.com/users/Sam-Kramer/received_eventsj=  Userj=  uparents]}(jX=  (ed5d0b6e9c289a0bba39d0b3c104f91446c9392djp=  ^https://api.github.com/repos/palantir/atlasdb/commits/ed5d0b6e9c289a0bba39d0b3c104f91446c9392dj~=  Shttps://github.com/palantir/atlasdb/commit/ed5d0b6e9c289a0bba39d0b3c104f91446c9392duastats}(totalK	additionsK	deletionsKufiles](}(jX=  (bf47a2abcceffe92e42715b2377315e57a40f763filenameSatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggify.javastatusmodifiedj=  K j=  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/58f4c695f95104cef91ace9620346e12993fc560/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javaraw_urlhttps://github.com/palantir/atlasdb/raw/58f4c695f95104cef91ace9620346e12993fc560/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.java?ref=58f4c695f95104cef91ace9620346e12993fc560patch@@ -30,9 +30,4 @@ public void run(Runnable runnable) {
     public boolean asBoolean() {
         return true;
     }
-
-    @Override
-    public boolean asBoolean() {
-        return true;
-    }
 }u}(jX=  (7ffdf499b3babaa3d0997abc88e28cb57de2aa01j=  Patlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggify.javaj=  modifiedj=  K j=  Kj=  Kj=  https://github.com/palantir/atlasdb/blob/58f4c695f95104cef91ace9620346e12993fc560/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javaj=  https://github.com/palantir/atlasdb/raw/58f4c695f95104cef91ace9620346e12993fc560/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javaj=  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.java?ref=58f4c695f95104cef91ace9620346e12993fc560j=  @@ -30,9 +30,4 @@ public void run(Runnable _runnable) {
     public boolean asBoolean() {
         return false;
     }
-
-    @Override
-    public boolean asBoolean() {
-        return false;
-    }
 }u}(jX=  (bf4172a8a7e4e4576cacc81f228d95963322a41dj=  Watlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyFactory.javaj=  modifiedj=  K j=  Kj=  Kj=  https://github.com/palantir/atlasdb/blob/58f4c695f95104cef91ace9620346e12993fc560/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javaj=  https://github.com/palantir/atlasdb/raw/58f4c695f95104cef91ace9620346e12993fc560/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javaj=  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.java?ref=58f4c695f95104cef91ace9620346e12993fc560j=  X
  @@ -26,9 +26,4 @@ public enum NoOpBuggifyFactory implements BuggifyFactory {
     public Buggify maybe(double _probability) {
         return NoOpBuggify.INSTANCE;
     }
-
-    @Override
-    public Buggify always() {
-        return NoOpBuggify.INSTANCE;
-    }
 }u}(jX=  (81f8c75fd356d1d930c35c5e89d74a891d3afb5bj=  ^atlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactoryTest.javaj=  modifiedj=  Kj=  Kj=  Kj=  https://github.com/palantir/atlasdb/blob/58f4c695f95104cef91ace9620346e12993fc560/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj=  https://github.com/palantir/atlasdb/raw/58f4c695f95104cef91ace9620346e12993fc560/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj=  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.java?ref=58f4c695f95104cef91ace9620346e12993fc560j=  @@ -20,7 +20,7 @@
 
 import org.junit.Test;
 
-public class DefaultBuggifyFactoryTest {
+public final class DefaultBuggifyFactoryTest {
 
     @Test
     public void maybeReturnsDefaultWhenMaxProbability() {u}(jX=  (9a32821f685530dd341a579b939b91a308b71207j=  Watlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyTest.javaj=  modifiedj=  Kj=  Kj=  Kj=  https://github.com/palantir/atlasdb/blob/58f4c695f95104cef91ace9620346e12993fc560/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj=  https://github.com/palantir/atlasdb/raw/58f4c695f95104cef91ace9620346e12993fc560/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj=  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.java?ref=58f4c695f95104cef91ace9620346e12993fc560j=  @@ -22,7 +22,7 @@
 
 import org.junit.Test;
 
-public class DefaultBuggifyTest {
+public final class DefaultBuggifyTest {
     @Test
     public void runAlwaysExecutes() {
         Runnable runnable = mock(Runnable.class);u}(jX=  (8bbbe40c153a19d589d463e6cf40e027197f95d5j=  Tatlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyTest.javaj=  modifiedj=  Kj=  Kj=  Kj=  https://github.com/palantir/atlasdb/blob/58f4c695f95104cef91ace9620346e12993fc560/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj=  https://github.com/palantir/atlasdb/raw/58f4c695f95104cef91ace9620346e12993fc560/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj=  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.java?ref=58f4c695f95104cef91ace9620346e12993fc560j=  X  @@ -23,7 +23,7 @@
 
 import org.junit.Test;
 
-public class NoOpBuggifyTest {
+public final class NoOpBuggifyTest {
     @Test
     public void runNeverExecutes() {
         Runnable runnable = mock(Runnable.class);
@@ -33,6 +33,6 @@ public void runNeverExecutes() {
 
     @Test
     public void asBooleanReturnsFalse() {
-        assertThat(DefaultBuggify.INSTANCE.asBoolean()).isFalse();
+        assertThat(NoOpBuggify.INSTANCE.asBoolean()).isFalse();
     }
 }ueu(077d1b715a95cda54326509f956bd44406f78ff8}(sha(077d1b715a95cda54326509f956bd44406f78ff8node_idEC_kwDOAjP5fdoAKDA3N2QxYjcxNWE5NWNkYTU0MzI2NTA5Zjk1NmJkNDQ0MDZmNzhmZjgcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-21T13:51:04Zu	committer}(j=  Lucas Meirelesj>  meireles31@msn.comj>  2023-06-21T13:51:04ZumessageAadd test to guarantee cassandra has strictly non decreasing sweeptree}(j=  (f063ade84b5e0d41d2992239daa6f4c08c5971d1url`https://api.github.com/repos/palantir/atlasdb/git/trees/f063ade84b5e0d41d2992239daa6f4c08c5971d1uj>  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/077d1b715a95cda54326509f956bd44406f78ff8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSTAEgACgkQJd22kJ7J
GiwyyQgA2rbFBaRsBposWVIOljI10548FrcVKxDa9IxkE/X3pcrtJ6cu3VhieajH
thvpVT72+kcrp6JkmWi7yiR/s18+eDttff/gdjEt1C6P9QWG5OOSOiCvJQ0t15OQ
RAIauTvTctwlaItZDcUqbo0HvX/joBV9sTgCNAsUSh7typcCEZ1Oat42N095gsSx
Lunj1wcLXtAdJr3Uj5uQnXoZSjvFn+kE5FEa/4HkSI3jaUZgWBEDLlVEc4wGTE2g
a8XsnZNTnVK+fRlm0gGGGf9lYXAZBIfnJxmhqlgIHcQrx9rJlM3DsMG+Ol0OO23W
qG05MjCtvj/asNhq7IZx8lc+XmcxcQ==
=2fFr
-----END PGP SIGNATURE-----payloadX  tree f063ade84b5e0d41d2992239daa6f4c08c5971d1
parent 737b525a3dbc6cecd1acbe4987020ef77230b6f8
author Lucas Meireles <meireles31@msn.com> 1687355464 +0100
committer Lucas Meireles <meireles31@msn.com> 1687355464 +0100

add test to guarantee cassandra has strictly non decreasing sweep
uuj>  ^https://api.github.com/repos/palantir/atlasdb/commits/077d1b715a95cda54326509f956bd44406f78ff8html_urlShttps://github.com/palantir/atlasdb/commit/077d1b715a95cda54326509f956bd44406f78ff8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/077d1b715a95cda54326509f956bd44406f78ff8/commentsj=  }(loginLucasIMEidJg j=  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j>  %https://api.github.com/users/LucasIMEj>  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj>  }(j">  LucasIMEj$>  Jg j=  MDQ6VXNlcjY3ODczMTE=j&>  3https://avatars.githubusercontent.com/u/6787311?v=4j(>  h5j>  %https://api.github.com/users/LucasIMEj>  https://github.com/LucasIMEj+>  /https://api.github.com/users/LucasIME/followersj->  <https://api.github.com/users/LucasIME/following{/other_user}j/>  5https://api.github.com/users/LucasIME/gists{/gist_id}j1>  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j3>  3https://api.github.com/users/LucasIME/subscriptionsj5>  *https://api.github.com/users/LucasIME/orgsj7>  +https://api.github.com/users/LucasIME/reposj9>  6https://api.github.com/users/LucasIME/events{/privacy}j;>  5https://api.github.com/users/LucasIME/received_eventsj=>  Userj?>  uparents]}(j=  (737b525a3dbc6cecd1acbe4987020ef77230b6f8j>  ^https://api.github.com/repos/palantir/atlasdb/commits/737b525a3dbc6cecd1acbe4987020ef77230b6f8j>  Shttps://github.com/palantir/atlasdb/commit/737b525a3dbc6cecd1acbe4987020ef77230b6f8uastats}(totalK	additionsK	deletionsK ufiles]}(j=  (22dc29e0664eb2fea2e0669bb248c2333fbefdd4filenameatlasdb-cassandra-integration-tests/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceIntegrationTest.javastatusmodifiedjY>  KjZ>  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/077d1b715a95cda54326509f956bd44406f78ff8/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/077d1b715a95cda54326509f956bd44406f78ff8/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.java?ref=077d1b715a95cda54326509f956bd44406f78ff8patchX=  @@ -709,6 +709,12 @@ public void testMultiCheckAndSetIndependentlyFails() {
         verifyMultiCheckAndSet(ImmutableMap.of(firstTestCell, val(0, 0), nextTestCell, val(0, 1)));
     }
 
+    @Test
+    public void cassandraHasStrictlyNonDecreasingSweep() {
+        assertThat(keyValueService.sweepsEntriesInStrictlyNonDecreasingFashion())
+                .isTrue();
+    }
+
     private void verifyMultiCheckAndSet(Map<Cell, byte[]> expectedValues) {
         Multimap<Cell, Long> timestamps = keyValueService.getAllTimestamps(TEST_TABLE, expectedValues.keySet(), 1L);
 uau(54d2aff21b50431f7f3397e2083890be771c896f}(sha(54d2aff21b50431f7f3397e2083890be771c896fnode_idEC_kwDOAjP5fdoAKDU0ZDJhZmYyMWI1MDQzMWY3ZjMzOTdlMjA4Mzg5MGJlNzcxYzg5NmYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-12T12:55:28Zu	committer}(jv>  Jeremy Kongjx>  jkong@palantir.comjz>  2023-04-12T12:55:28ZumessageCR feedbacktree}(jn>  (ba7db2bc546ea210f4df531bda43c47d2e885e9durl`https://api.github.com/repos/palantir/atlasdb/git/trees/ba7db2bc546ea210f4df531bda43c47d2e885e9duj>  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/54d2aff21b50431f7f3397e2083890be771c896f
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ2qkAACgkQTLdFKain
zjw6eAf+LKf6TFg48wG8uwcOvRKl2MOXj8VelthwxB0v54lpoWwRcgtojmvuFnkS
v5tjooUDiW4+XErfOsMYVjYbKKX6wTR3qYEDMo/qnKiPaMRWbt8K4THGgwPOGtQr
beg8gyf+4Doa+yX7lz7+DWrjFACvQDMpQzt+B4KhypxFn9utgjVAx/sLMm+pQ0Ya
+IKq/0jhsA1kHgHL01PRwUbvyLq8xYPsJcQuGMTkCwKAF3RDd8ntHi9qlMg+y4cK
dp6MiUQUk9ES6mkFZucIV+A7XO9lt539hTh2Od8/KcDyzVVoygWqy3dU1ZCsWBhk
eUAEy9rVxpoG4h5PG9KxuG9Pl0Bddg==
=6JFp
-----END PGP SIGNATURE-----payloadtree ba7db2bc546ea210f4df531bda43c47d2e885e9d
parent ed1757e27de26ff7e8ff2a022fbc5831360f6efd
author Jeremy Kong <jkong@palantir.com> 1681304128 +0100
committer Jeremy Kong <jkong@palantir.com> 1681304128 +0100

CR feedback
uuj>  ^https://api.github.com/repos/palantir/atlasdb/commits/54d2aff21b50431f7f3397e2083890be771c896fhtml_urlShttps://github.com/palantir/atlasdb/commit/54d2aff21b50431f7f3397e2083890be771c896fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/54d2aff21b50431f7f3397e2083890be771c896f/commentsjt>  }(login
jeremyk-91idJZ jp>  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j>  'https://api.github.com/users/jeremyk-91j>  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj|>  }(j>  
jeremyk-91j>  JZ jp>  MDQ6VXNlcjU5NTU1MTA=j>  3https://avatars.githubusercontent.com/u/5955510?v=4j>  h5j>  'https://api.github.com/users/jeremyk-91j>  https://github.com/jeremyk-91j>  1https://api.github.com/users/jeremyk-91/followersj>  >https://api.github.com/users/jeremyk-91/following{/other_user}j>  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j>  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j>  5https://api.github.com/users/jeremyk-91/subscriptionsj>  ,https://api.github.com/users/jeremyk-91/orgsj>  -https://api.github.com/users/jeremyk-91/reposj>  8https://api.github.com/users/jeremyk-91/events{/privacy}j>  7https://api.github.com/users/jeremyk-91/received_eventsj>  Userj>  uparents]}(jn>  (ed1757e27de26ff7e8ff2a022fbc5831360f6efdj>  ^https://api.github.com/repos/palantir/atlasdb/commits/ed1757e27de26ff7e8ff2a022fbc5831360f6efdj>  Shttps://github.com/palantir/atlasdb/commit/ed1757e27de26ff7e8ff2a022fbc5831360f6efduastats}(totalK2	additionsK	deletionsKufiles](}(jn>  (e55aa2f2e0a07c96f0a2052e2f3a6559d088abbcfilenameZtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/JerseyAsyncTimelockResource.javastatusmodifiedj>  Kj>  KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/54d2aff21b50431f7f3397e2083890be771c896f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FJerseyAsyncTimelockResource.javaraw_urlhttps://github.com/palantir/atlasdb/raw/54d2aff21b50431f7f3397e2083890be771c896f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FJerseyAsyncTimelockResource.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FJerseyAsyncTimelockResource.java?ref=54d2aff21b50431f7f3397e2083890be771c896fpatchX  @@ -52,10 +52,10 @@
 @Produces(MediaType.APPLICATION_JSON)
 public class JerseyAsyncTimelockResource {
     private static final ExecutorService asyncResponseExecutor = PTExecutors.newFixedThreadPool(64);
-    private final TimelockNamespaces timelockNamespaces;
+    private final TimelockNamespaces namespaces;
 
-    public JerseyAsyncTimelockResource(TimelockNamespaces timelockNamespaces) {
-        this.timelockNamespaces = timelockNamespaces;
+    public JerseyAsyncTimelockResource(TimelockNamespaces namespaces) {
+        this.namespaces = namespaces;
     }
 
     @POST
@@ -192,7 +192,7 @@ public long currentTimeMillis(@PathParam("namespace") String namespace) {
     @Path("do-not-use-without-explicit-atlasdb-authorisation/lock-diagnostic-config")
     public Optional<LockDiagnosticInfo> getEnhancedLockDiagnosticInfo(
             @PathParam("namespace") String namespace, Set<UUID> requestIds) {
-        return timelockNamespaces.get(namespace).getLockLog().getAndLogLockDiagnosticInfo(requestIds);
+        return namespaces.get(namespace).getLockLog().getAndLogLockDiagnosticInfo(requestIds);
     }
 
     private void addJerseyCallback(ListenableFuture<?> result, AsyncResponse response) {
@@ -213,6 +213,6 @@ public void onFailure(Throwable thrown) {
     }
 
     private AsyncTimelockService getAsyncTimelockService(String namespace) {
-        return timelockNamespaces.get(namespace).getTimelockService();
+        return namespaces.get(namespace).getTimelockService();
     }
 }u}(jn>  (68300112477637160e1c7952a4d87b188afda4abj>  Otimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimeLockServices.javaj>  modifiedj>  Kj>  Kj>  Kj>  https://github.com/palantir/atlasdb/blob/54d2aff21b50431f7f3397e2083890be771c896f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServices.javaj>  https://github.com/palantir/atlasdb/raw/54d2aff21b50431f7f3397e2083890be771c896f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServices.javaj>  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServices.java?ref=54d2aff21b50431f7f3397e2083890be771c896fj>  X)  @@ -51,7 +51,10 @@ static TimeLockServices create(
 
     TimestampManagementService getTimestampManagementService();
 
-    // Do not use without atlasdb team guidance
+    /**
+     * Do not use without AtlasDB team guidance.
+     */
+    @Deprecated
     LockLog getLockLog();
 
     @Overrideu}(jn>  (14d7b623c713195e6a115c1b73f4a02fb42ef8daj>  \timelock-impl/src/main/java/com/palantir/atlasdb/timelock/UndertowAsyncTimelockResource.javaj>  modifiedj>  Kj>  Kj>  K#j>  https://github.com/palantir/atlasdb/blob/54d2aff21b50431f7f3397e2083890be771c896f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FUndertowAsyncTimelockResource.javaj>  https://github.com/palantir/atlasdb/raw/54d2aff21b50431f7f3397e2083890be771c896f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FUndertowAsyncTimelockResource.javaj>  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FUndertowAsyncTimelockResource.java?ref=54d2aff21b50431f7f3397e2083890be771c896fj>  X  @@ -51,107 +51,108 @@ public UndertowAsyncTimelockResource(TimelockNamespaces namespaces) {
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/fresh-timestamp")
     public ListenableFuture<Long> getFreshTimestamp(@Safe @Handle.PathParam String namespace) {
-        return getTimelockService(namespace).getFreshTimestampAsync();
+        return getAsyncTimelockService(namespace).getFreshTimestampAsync();
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/fresh-timestamps")
     public ListenableFuture<TimestampRange> getFreshTimestamps(
             @Safe @Handle.PathParam String namespace,
             @Safe @Handle.QueryParam(value = "number") int numTimestampsRequested) {
-        return getTimelockService(namespace).getFreshTimestampsAsync(numTimestampsRequested);
+        return getAsyncTimelockService(namespace).getFreshTimestampsAsync(numTimestampsRequested);
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/lock-immutable-timestamp")
     public LockImmutableTimestampResponse lockImmutableTimestamp(
             @Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedTimeLockRequest request) {
-        return getTimelockService(namespace).lockImmutableTimestamp(request);
+        return getAsyncTimelockService(namespace).lockImmutableTimestamp(request);
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-atlasdb-transaction")
     public StartAtlasDbTransactionResponse deprecatedStartTransactionV1(
             @Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedTimeLockRequest request) {
-        return getTimelockService(namespace).deprecatedStartTransaction(request);
+        return getAsyncTimelockService(namespace).deprecatedStartTransaction(request);
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-identified-atlasdb-transaction")
     public StartIdentifiedAtlasDbTransactionResponse deprecatedStartTransactionV2(
             @Safe @Handle.PathParam String namespace, @Handle.Body StartIdentifiedAtlasDbTransactionRequest request) {
-        return getTimelockService(namespace).startTransaction(request).toStartTransactionResponse();
+        return getAsyncTimelockService(namespace).startTransaction(request).toStartTransactionResponse();
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-atlasdb-transaction-v3")
     public StartAtlasDbTransactionResponseV3 deprecatedStartTransactionV3(
             @Safe @Handle.PathParam String namespace, @Handle.Body StartIdentifiedAtlasDbTransactionRequest request) {
-        return getTimelockService(namespace).startTransaction(request);
+        return getAsyncTimelockService(namespace).startTransaction(request);
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-atlasdb-transaction-v4")
     public ListenableFuture<StartTransactionResponseV4> startTransactions(
             @Safe @Handle.PathParam String namespace, @Handle.Body StartTransactionRequestV4 request) {
-        return getTimelockService(namespace).startTransactionsAsync(request);
+        return getAsyncTimelockService(namespace).startTransactionsAsync(request);
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/immutable-timestamp")
     public long getImmutableTimestamp(@Safe @Handle.PathParam String namespace) {
-        return getTimelockService(namespace).getImmutableTimestamp();
+        return getAsyncTimelockService(namespace).getImmutableTimestamp();
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/lock")
     public ListenableFuture<LockResponse> deprecatedLock(
             @Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedLockRequest request) {
-        return getTimelockService(namespace).deprecatedLock(request);
+        return getAsyncTimelockService(namespace).deprecatedLock(request);
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/lock-v2")
     public ListenableFuture<LockResponseV2> lock(
             @Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedLockRequest request) {
-        return getTimelockService(namespace).lock(request);
+        return getAsyncTimelockService(namespace).lock(request);
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/await-locks")
     public ListenableFuture<WaitForLocksResponse> waitForLocks(
             @Safe @Handle.PathParam String namespace, @Handle.Body WaitForLocksRequest request) {
-        return getTimelockService(namespace).waitForLocks(request);
+        return getAsyncTimelockService(namespace).waitForLocks(request);
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/refresh-locks")
     public ListenableFuture<Set<LockToken>> deprecatedRefreshLockLeases(
             @Safe @Handle.PathParam String namespace, @Handle.Body Set<LockToken> tokens) {
-        return getTimelockService(namespace).deprecatedRefreshLockLeases(tokens);
+        return getAsyncTimelockService(namespace).deprecatedRefreshLockLeases(tokens);
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/refresh-locks-v2")
     public ListenableFuture<RefreshLockResponseV2> refreshLockLeases(
             @Safe @Handle.PathParam String namespace, @Handle.Body Set<LockToken> tokens) {
-        return getTimelockService(namespace).refreshLockLeases(tokens);
+        return getAsyncTimelockService(namespace).refreshLockLeases(tokens);
     }
 
     @Handle(method = HttpMethod.GET, path = "/{namespace}/timelock/leader-time")
     public ListenableFuture<LeaderTime> getLeaderTime(@Safe @Handle.PathParam String namespace) {
-        return getTimelockService(namespace).leaderTime();
+        return getAsyncTimelockService(namespace).leaderTime();
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/unlock")
     public ListenableFuture<Set<LockToken>> unlock(
             @Safe @Handle.PathParam String namespace, @Handle.Body Set<LockToken> tokens) {
-        return getTimelockService(namespace).unlock(tokens);
+        return getAsyncTimelockService(namespace).unlock(tokens);
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/current-time-millis")
     public long currentTimeMillis(@Safe @Handle.PathParam String namespace) {
-        return getTimelockService(namespace).currentTimeMillis();
+        return getAsyncTimelockService(namespace).currentTimeMillis();
     }
 
     // TODO(jkong): Remove this once PDS-95791 is resolved.
     @Handle(
             method = HttpMethod.POST,
             path = "/{namespace}/timelock/do-not-use-without-explicit-atlasdb-authorisation/lock-diagnostic-config")
+    @Deprecated
     public Optional<LockDiagnosticInfo> getEnhancedLockDiagnosticInfo(
             @Safe @Handle.PathParam String namespace, @Handle.Body Set<UUID> requestIds) {
         return namespaces.get(namespace).getLockLog().getAndLogLockDiagnosticInfo(requestIds);
     }
 
-    private AsyncTimelockService getTimelockService(String namespace) {
+    private AsyncTimelockService getAsyncTimelockService(String namespace) {
         return namespaces.get(namespace).getTimelockService();
     }
 }ueu(c23d99e290325fb551f322d046def72b6f5ae7bf}(sha(c23d99e290325fb551f322d046def72b6f5ae7bfnode_idEC_kwDOAjP5fdoAKGMyM2Q5OWUyOTAzMjVmYjU1MWYzMjJkMDQ2ZGVmNzJiNmY1YWU3YmYcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-06-29T16:33:23Zu	committer}(j>  GitHubj>  noreply@github.comj?  2023-06-29T16:33:23ZumessageUpdate atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIterator.java

Co-authored-by: Patrick Koenig <pkoenig10@gmail.com>tree}(j>  (b8b8e696989be05c6ea0c98463867ef0c81fdd38url`https://api.github.com/repos/palantir/atlasdb/git/trees/b8b8e696989be05c6ea0c98463867ef0c81fdd38uj
?  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c23d99e290325fb551f322d046def72b6f5ae7bf
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJknbJTCRBK7hj4Ov3rIwAAoKoIAEDfXZCs98DjFGJ7TuItHq+b
dAamMboWB3QqY+41tyx9wa4S3zM6ViB87UAVpTw/p9GDmuJ18URtIyufxIJhp+U/
U2Qsw/tGUhNvD2BGKdgGVj5OP1IN+IueFyQHQL+YaemwC6VgyXHBARwtjZ+au1kH
NRkxgJ/8JVJRd9dh0OBcar/2q19i1TiMVewN5F2Tc2wUp6Y5cKDo7CzFRzRwJA1f
RAyNrd4N9/meAWyXDYPFoNLXi7zGNXUE0I6ugrHSjeDW18XDHdVt7Pl3rahHQRFO
WJYMfeTWtIYQnlNRThMkWlALJsp8lNfPnvSAyLS3ck0ycNKKKdS+lxVwb+WGIUo=
=0kj7
-----END PGP SIGNATURE-----
payloadXw  tree b8b8e696989be05c6ea0c98463867ef0c81fdd38
parent 7901e13240b519c79aef86373c67b020be9ae024
author Sam-Kramer <sam.c.kramer@gmail.com> 1688056403 +0100
committer GitHub <noreply@github.com> 1688056403 +0100

Update atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIterator.java

Co-authored-by: Patrick Koenig <pkoenig10@gmail.com>uuj
?  ^https://api.github.com/repos/palantir/atlasdb/commits/c23d99e290325fb551f322d046def72b6f5ae7bfhtml_urlShttps://github.com/palantir/atlasdb/commit/c23d99e290325fb551f322d046def72b6f5ae7bfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c23d99e290325fb551f322d046def72b6f5ae7bf/commentsj>  }(login
Sam-KrameridJ^2_ j>  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j
?  'https://api.github.com/users/Sam-Kramerj?  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj?  }(j ?  web-flowj"?  J/j>  MDQ6VXNlcjE5ODY0NDQ3j$?  4https://avatars.githubusercontent.com/u/19864447?v=4j&?  h5j
?  %https://api.github.com/users/web-flowj?  https://github.com/web-flowj)?  /https://api.github.com/users/web-flow/followersj+?  <https://api.github.com/users/web-flow/following{/other_user}j-?  5https://api.github.com/users/web-flow/gists{/gist_id}j/?  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j1?  3https://api.github.com/users/web-flow/subscriptionsj3?  *https://api.github.com/users/web-flow/orgsj5?  +https://api.github.com/users/web-flow/reposj7?  6https://api.github.com/users/web-flow/events{/privacy}j9?  5https://api.github.com/users/web-flow/received_eventsj;?  Userj=?  uparents]}(j>  (7901e13240b519c79aef86373c67b020be9ae024j
?  ^https://api.github.com/repos/palantir/atlasdb/commits/7901e13240b519c79aef86373c67b020be9ae024j?  Shttps://github.com/palantir/atlasdb/commit/7901e13240b519c79aef86373c67b020be9ae024uastats}(totalK	additionsK	deletionsKufiles]}(j>  (b421394e94fd00b495995a98963903f108b0cec9filenamehatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIterator.javastatusmodifiedjW?  KjX?  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/c23d99e290325fb551f322d046def72b6f5ae7bf/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c23d99e290325fb551f322d046def72b6f5ae7bf/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.java?ref=c23d99e290325fb551f322d046def72b6f5ae7bfpatchX  @@ -53,7 +53,7 @@ public BatchSizeIncreasingIterator(
         if (currentResults != null) {
             this.lastBatchSize = originalBatchSize;
         }
-        this.maxBatchSize = originalBatchSize * 8;
+        this.maxBatchSize = Math.min(originalBatchSize * 8, AtlasDbPerformanceConstants.MAX_BATCH_SIZE);
     }
 
     public void markNumResultsNotDeleted(int resultsInBatch) {uau(6a15660757df219caa1b89da233e201f3405c621}(sha(6a15660757df219caa1b89da233e201f3405c621node_idEC_kwDOAjP5fdoAKDZhMTU2NjA3NTdkZjIxOWNhYTFiODlkYTIzM2UyMDFmMzQwNWM2MjEcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-06-01T14:33:19Zu	committer}(jt?  GitHubjv?  noreply@github.comjx?  2023-06-01T14:33:19Zumessage1Add bank workflow for snapshot isolation  (#6593)tree}(jl?  (81bd9a01b2e98fe76d39801e7add160c9f5eaf9aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/81bd9a01b2e98fe76d39801e7add160c9f5eaf9auj?  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6a15660757df219caa1b89da233e201f3405c621
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkeKwvCRBK7hj4Ov3rIwAAHnkIAKxcojpErPqJ2t0mXhUcDdUk
PGQpE/pmgD4Zm1JSKTDkm/Vpfeyl27qKdy4rAWPIuBerK8kEa4mvKC0i9gLTtqyY
hLfkHGL+WfG/INHqmZS4uQDO9SerxOsb1QPpenGHI6isb2Z7jMMEdujzVHLBU+27
DoxBdRID+phvw9CFhmMhaJuXsIjFIoTdE+R8VO16ORd61moORx7ex0sNN6TO8amG
mBeUE/ciueLL03gV9U57X2IVv+RrOMhYp6LQSrwRUwMicZcQadj5D2TCGBl92nJ0
23RTvLaY4NU8DTDPcd35p63LZXrUsRjxWMKs+bRFX1MQfq0ZVtA5r1EZI0OUANw=
=l20m
-----END PGP SIGNATURE-----
payloadX  tree 81bd9a01b2e98fe76d39801e7add160c9f5eaf9a
parent 5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1
author Sam-Kramer <sam.c.kramer@gmail.com> 1685629999 +0100
committer GitHub <noreply@github.com> 1685629999 +0000

Add bank workflow for snapshot isolation  (#6593)

 uuj?  ^https://api.github.com/repos/palantir/atlasdb/commits/6a15660757df219caa1b89da233e201f3405c621html_urlShttps://github.com/palantir/atlasdb/commit/6a15660757df219caa1b89da233e201f3405c621comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6a15660757df219caa1b89da233e201f3405c621/commentsjr?  }(login
Sam-KrameridJ^2_ jn?  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j?  'https://api.github.com/users/Sam-Kramerj?  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujz?  }(j?  web-flowj?  J/jn?  MDQ6VXNlcjE5ODY0NDQ3j?  4https://avatars.githubusercontent.com/u/19864447?v=4j?  h5j?  %https://api.github.com/users/web-flowj?  https://github.com/web-flowj?  /https://api.github.com/users/web-flow/followersj?  <https://api.github.com/users/web-flow/following{/other_user}j?  5https://api.github.com/users/web-flow/gists{/gist_id}j?  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j?  3https://api.github.com/users/web-flow/subscriptionsj?  *https://api.github.com/users/web-flow/orgsj?  +https://api.github.com/users/web-flow/reposj?  6https://api.github.com/users/web-flow/events{/privacy}j?  5https://api.github.com/users/web-flow/received_eventsj?  Userj?  uparents]}(jl?  (5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1j?  ^https://api.github.com/repos/palantir/atlasdb/commits/5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1j?  Shttps://github.com/palantir/atlasdb/commit/5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1uastats}(totalM	additionsM	deletionsK ufiles](}(jl?  (bc31d27900115be081baf19cc837aafa21d931acfilenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj?  Kj?  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/6a15660757df219caa1b89da233e201f3405c621/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6a15660757df219caa1b89da233e201f3405c621/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=6a15660757df219caa1b89da233e201f3405c621patchX  @@ -46,6 +46,8 @@
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
 import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflows;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;
@@ -140,6 +142,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().transientRowsConfig();
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
+        BankBalanceWorkflowConfiguration bankBalanceConfig =
+                configuration.install().bankBalanceConfig();
         RandomWorkflowConfiguration randomWorkflowConfig =
                 configuration.install().randomConfig();
 
@@ -155,6 +159,7 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
                         createSingleBusyCellWorkflowValidator(
                                 transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
+                        createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
                         createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
 
         log.info("antithesis: terminate");
@@ -274,6 +279,24 @@ private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator
                 .build();
     }
 
+    private WorkflowAndInvariants<Workflow> createBankBalanceWorkflow(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            BankBalanceWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, BankBalanceWorkflows.class);
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(BankBalanceWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        BankBalanceWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+                .build();
+    }
+
     private WorkflowAndInvariants<Workflow> createRandomWorkflow(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             RandomWorkflowConfiguration workflowConfig,u}(jl?  (bc69acd52d73dc58fff6ef1b1ca4cf77787a00c0j?  atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj?  modifiedj?  Kj?  K j?  Kj?  https://github.com/palantir/atlasdb/blob/6a15660757df219caa1b89da233e201f3405c621/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj?  https://github.com/palantir/atlasdb/raw/6a15660757df219caa1b89da233e201f3405c621/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=6a15660757df219caa1b89da233e201f3405c621j?  X  @@ -23,6 +23,7 @@
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
 
@@ -40,6 +41,8 @@ public interface WorkloadServerInstallConfiguration {
 
     SingleBusyCellWorkflowConfiguration singleBusyCellConfig();
 
+    BankBalanceWorkflowConfiguration bankBalanceConfig();
+
     RandomWorkflowConfiguration randomConfig();
 
     boolean exitAfterRunning();u}(jl?  (04f864e5b876d33a808c51102f6b056e8d71f759j?  Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj?  modifiedj?  Kj?  K j?  Kj?  https://github.com/palantir/atlasdb/blob/6a15660757df219caa1b89da233e201f3405c621/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj?  https://github.com/palantir/atlasdb/raw/6a15660757df219caa1b89da233e201f3405c621/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=6a15660757df219caa1b89da233e201f3405c621j?  XS  @@ -29,6 +29,12 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  bankBalanceConfig:
+    tableConfiguration:
+      tableName: bank-balance-test
+      isolationLevel: SNAPSHOT
+    iterationCount: 100
+    type: bank-balance
   randomConfig:
     tableConfiguration:
       tableName: random-testu}(jl?  (96d6b94c3febb7e87d33cfa10b94341467124c1ej?  Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj?  modifiedj?  Kj?  K j?  Kj?  https://github.com/palantir/atlasdb/blob/6a15660757df219caa1b89da233e201f3405c621/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj?  https://github.com/palantir/atlasdb/raw/6a15660757df219caa1b89da233e201f3405c621/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=6a15660757df219caa1b89da233e201f3405c621j?  XS  @@ -66,6 +66,12 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  bankBalanceConfig:
+    tableConfiguration:
+      tableName: bank_balance_test
+      isolationLevel: SNAPSHOT
+    iterationCount: 100
+    type: bank-balance
   randomConfig:
     tableConfiguration:
       tableName: random_testu}(jl?  (c7ff15738ad384c45f45dde3e9cfe6ff811f27ecj?  Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj?  modifiedj?  Kj?  K j?  Kj?  https://github.com/palantir/atlasdb/blob/6a15660757df219caa1b89da233e201f3405c621/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj?  https://github.com/palantir/atlasdb/raw/6a15660757df219caa1b89da233e201f3405c621/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=6a15660757df219caa1b89da233e201f3405c621j?  XS  @@ -30,6 +30,12 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  bankBalanceConfig:
+    tableConfiguration:
+      tableName: bank-balance-test
+      isolationLevel: SNAPSHOT
+    iterationCount: 100
+    type: bank-balance
   randomConfig:
     tableConfiguration:
       tableName: random-testu/      }(jl?  (4c009ebe4699e6665fa0c9590874f7ead9b2f33fj?  gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtils.javaj?  addedj?  K^j?  K j?  K^j?  https://github.com/palantir/atlasdb/blob/6a15660757df219caa1b89da233e201f3405c621/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.javaj?  https://github.com/palantir/atlasdb/raw/6a15660757df219caa1b89da233e201f3405c621/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.javaj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.java?ref=6a15660757df219caa1b89da233e201f3405c621j?  X  @@ -0,0 +1,94 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import com.google.common.collect.ImmutableMap;
+import java.security.SecureRandom;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Optional;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import one.util.streamex.EntryStream;
+
+public final class BankBalanceUtils {
+
+    private BankBalanceUtils() {}
+
+    /**
+     * Validates all the bank balances provided. If all are empty, we will generate a new set of bank balances. If
+     * any are missing, an empty optional is returned to indicate failure state. If balances do not total to the
+     * expected amount, an empty optional is returned.
+     *
+     * @return An empty optional when validation has failed for bank balances. Otherwise, the optional will contain
+     * the validated (or generated) balances.
+     */
+    public static Optional<Map<Integer, Integer>> validateOrGenerateBalances(
+            Map<Integer, Optional<Integer>> maybeBalances, Integer numberOfAccounts, Integer balancePerAccount) {
+        if (allValuesPresent(maybeBalances)) {
+            Integer total = numberOfAccounts * balancePerAccount;
+            Map<Integer, Integer> balances =
+                    EntryStream.of(maybeBalances).mapValues(Optional::get).toMap();
+            if (!sumOfBalancesMatchTotal(balances, total)) {
+                return Optional.empty();
+            }
+            return Optional.of(balances);
+        }
+
+        if (allValuesEmpty(maybeBalances)) {
+            return Optional.of(generateBalances(numberOfAccounts, balancePerAccount));
+        }
+
+        return Optional.empty();
+    }
+
+    public static Map<Integer, Integer> performTransfers(
+            Map<Integer, Integer> balances, int numberOfTransfers, int transferAmount, SecureRandom random) {
+        Map<Integer, Integer> newBalances = new HashMap<>(balances);
+        for (int idx = 0; idx < numberOfTransfers; idx++) {
+            int from = random.nextInt(newBalances.size());
+            int to = random.nextInt(newBalances.size());
+
+            if (newBalances.get(from) - transferAmount < 0) {
+                continue;
+            }
+
+            newBalances.compute(from, (k, v) -> v - transferAmount);
+            newBalances.compute(to, (k, v) -> v + transferAmount);
+        }
+        return ImmutableMap.copyOf(newBalances);
+    }
+
+    private static boolean sumOfBalancesMatchTotal(Map<Integer, Integer> balances, Integer totalBalance) {
+        return balances.values().stream().mapToInt(Integer::intValue).sum() == totalBalance;
+    }
+
+    private static boolean allValuesPresent(Map<Integer, Optional<Integer>> balances) {
+        return balances.values().stream().allMatch(Optional::isPresent);
+    }
+
+    private static boolean allValuesEmpty(Map<Integer, Optional<Integer>> balances) {
+        return balances.values().stream().allMatch(Optional::isEmpty);
+    }
+
+    private static Map<Integer, Integer> generateBalances(Integer numberOfAccounts, Integer balancePerAccount) {
+        return IntStream.range(0, numberOfAccounts)
+                .boxed()
+                .collect(Collectors.toMap(Function.identity(), index -> balancePerAccount));
+    }
+}u}(jl?  (dd8ae4bd5d9bdf4ebb6f459b4fc1771835066b3ej?  watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowConfiguration.javaj?  addedj?  K7j?  K j?  K7j?  https://github.com/palantir/atlasdb/blob/6a15660757df219caa1b89da233e201f3405c621/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.javaj?  https://github.com/palantir/atlasdb/raw/6a15660757df219caa1b89da233e201f3405c621/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.javaj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.java?ref=6a15660757df219caa1b89da233e201f3405c621j?  X  @@ -0,0 +1,55 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import com.palantir.atlasdb.workload.workflow.TableConfiguration;
+import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableBankBalanceWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableBankBalanceWorkflowConfiguration.class)
+@JsonTypeName(BankBalanceWorkflowConfiguration.TYPE)
+public interface BankBalanceWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "bank-balance";
+
+    TableConfiguration tableConfiguration();
+
+    @Value.Default
+    default Integer numberOfAccounts() {
+        return 10;
+    }
+
+    @Value.Default
+    default Integer initialBalancePerAccount() {
+        return 100;
+    }
+
+    @Value.Default
+    default Integer transferAmount() {
+        return 75;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jl?  (2394a7f410f2773d697a6ff47e5911c814eba351j?  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflows.javaj?  addedj?  Kj?  K j?  Kj?  https://github.com/palantir/atlasdb/blob/6a15660757df219caa1b89da233e201f3405c621/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaj?  https://github.com/palantir/atlasdb/raw/6a15660757df219caa1b89da233e201f3405c621/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.java?ref=6a15660757df219caa1b89da233e201f3405c621j?  X  @@ -0,0 +1,136 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.security.SecureRandom;
+import java.util.Map;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.jetbrains.annotations.VisibleForTesting;
+
+/**
+ * A workflow which performs a number of account balance transfers between accounts.
+ */
+public final class BankBalanceWorkflows {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(BankBalanceWorkflows.class);
+    private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+
+    private static final Integer COLUMN = 0;
+
+    private BankBalanceWorkflows() {
+        // utility
+    }
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            BankBalanceWorkflowConfiguration bankBalanceWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        BankBalanceRunTask runTask = new BankBalanceRunTask(bankBalanceWorkflowConfiguration);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> runTask.run(txnStore),
+                bankBalanceWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            InteractiveTransactionStore store,
+            BankBalanceWorkflowConfiguration bankBalanceWorkflowConfiguration,
+            ListeningExecutorService executionExecutor,
+            AtomicBoolean skipRunning) {
+        BankBalanceRunTask runTask = new BankBalanceRunTask(skipRunning, bankBalanceWorkflowConfiguration);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> runTask.run(txnStore),
+                bankBalanceWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    private static class BankBalanceRunTask {
+        private final AtomicBoolean skipRunning;
+
+        private final BankBalanceWorkflowConfiguration workflowConfiguration;
+
+        public BankBalanceRunTask(BankBalanceWorkflowConfiguration workflowConfiguration) {
+            this(new AtomicBoolean(), workflowConfiguration);
+        }
+
+        @VisibleForTesting
+        BankBalanceRunTask(AtomicBoolean skipRunning, BankBalanceWorkflowConfiguration workflowConfiguration) {
+            this.skipRunning = skipRunning;
+            this.workflowConfiguration = workflowConfiguration;
+        }
+
+        public Optional<WitnessedTransaction> run(InteractiveTransactionStore store) {
+            if (skipRunning.get()) {
+                return Optional.empty();
+            }
+            workflowConfiguration.transactionRateLimiter().acquire();
+            return store.readWrite(txn -> {
+                Map<Integer, Optional<Integer>> maybeBalances = getAccountBalances(txn);
+                BankBalanceUtils.validateOrGenerateBalances(
+                                maybeBalances,
+                                workflowConfiguration.numberOfAccounts(),
+                                workflowConfiguration.initialBalancePerAccount())
+                        .ifPresentOrElse(balances -> performTransfers(txn, balances), () -> {
+                            if (skipRunning.compareAndSet(false, true)) {
+                                log.error(
+                                        "Balance validation failed, indicating we have violated snapshot isolation.",
+                                        SafeArg.of("maybeBalances", maybeBalances));
+                            }
+                        });
+            });
+        }
+
+        private void performTransfers(InteractiveTransaction transaction, Map<Integer, Integer> balances) {
+            Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(
+                    balances, RANDOM.nextInt(balances.size()), workflowConfiguration.transferAmount(), RANDOM);
+            newBalances.forEach((account, balance) -> transaction.write(
+                    workflowConfiguration.tableConfiguration().tableName(), getCellForAccount(account), balance));
+        }
+
+        private Map<Integer, Optional<Integer>> getAccountBalances(InteractiveTransaction transaction) {
+            return IntStream.range(0, workflowConfiguration.numberOfAccounts())
+                    .boxed()
+                    .collect(Collectors.toMap(
+                            Function.identity(),
+                            index -> transaction.read(
+                                    workflowConfiguration.tableConfiguration().tableName(), getCellForAccount(index))));
+        }
+    }
+
+    public static WorkloadCell getCellForAccount(int accountIndex) {
+        return ImmutableWorkloadCell.of(accountIndex, COLUMN);
+    }
+}u}(jl?  (be670ac429d852d3616d81f322aac96b14c7e53cj?  katlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtilsTest.javaj?  addedj?  KRj?  K j?  KRj?  https://github.com/palantir/atlasdb/blob/6a15660757df219caa1b89da233e201f3405c621/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj?  https://github.com/palantir/atlasdb/raw/6a15660757df219caa1b89da233e201f3405c621/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.java?ref=6a15660757df219caa1b89da233e201f3405c621j?  X  @@ -0,0 +1,82 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.Mockito.when;
+
+import java.security.SecureRandom;
+import java.util.Map;
+import java.util.Optional;
+import one.util.streamex.EntryStream;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class BankBalanceUtilsTest {
+
+    private static final Map<Integer, Optional<Integer>> VALID_BALANCES = Map.of(0, Optional.of(1), 1, Optional.of(1));
+
+    @Mock
+    private SecureRandom random;
+
+    @Test
+    public void validateOrGenerateBalancesReturnsEmptyWhenOnlyOneAccountMissing() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(Map.of(0, Optional.of(1), 1, Optional.empty()), 2, 1))
+                .isEmpty();
+    }
+
+    @Test
+    public void validateOrGenerateBalancesGeneratesWhenAllEmpty() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(Map.of(0, Optional.empty(), 1, Optional.empty()), 2, 1))
+                .contains(Map.of(0, 1, 1, 1));
+    }
+
+    @Test
+    public void validateOrGenerateBalancesEmptyWhenSumOfBalancesDoNotMatchTotal() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(VALID_BALANCES, 2, 3))
+                .isEmpty();
+    }
+
+    @Test
+    public void validateOrGenerateBalancesReturnsBalancesWhenTotalsMatch() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(VALID_BALANCES, 2, 1))
+                .contains(
+                        EntryStream.of(VALID_BALANCES).mapValues(Optional::get).toMap());
+    }
+
+    @Test
+    public void performTransfersReturnsBalancesWithCorrectSum() {
+        when(random.nextInt(anyInt())).thenReturn(0, 1);
+        Map<Integer, Integer> balances = Map.of(0, 1, 1, 1);
+        Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
+        assertThat(newBalances).isEqualTo(Map.of(0, 0, 1, 2));
+        assertThat(newBalances.values().stream().mapToInt(Integer::intValue).sum())
+                .isEqualTo(2);
+    }
+
+    @Test
+    public void performsTransfersOnlyIfValueWouldNotBeBelowZero() {
+        when(random.nextInt(anyInt())).thenReturn(0, 1);
+        Map<Integer, Integer> balances = Map.of(0, 0, 1, 2);
+        Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
+        assertThat(newBalances).isEqualTo(balances);
+    }
+}u}(jl?  (fc68dc8666083ad7dff19f7cab2825390f18a38aj?  oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowsTest.javaj?  addedj?  Kj?  K j?  Kj?  https://github.com/palantir/atlasdb/blob/6a15660757df219caa1b89da233e201f3405c621/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javaj?  https://github.com/palantir/atlasdb/raw/6a15660757df219caa1b89da233e201f3405c621/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javaj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.java?ref=6a15660757df219caa1b89da233e201f3405c621j?  X  @@ -0,0 +1,129 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.atlasdb.workload.workflow.ImmutableTableConfiguration;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.Test;
+
+public final class BankBalanceWorkflowsTest {
+    private static final String TABLE_NAME = "bank.bank";
+    private static final BankBalanceWorkflowConfiguration CONFIGURATION =
+            ImmutableBankBalanceWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SNAPSHOT)
+                            .build())
+                    .iterationCount(1)
+                    .build();
+
+    private final AtomicBoolean skipRunning = new AtomicBoolean();
+
+    private final InteractiveTransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SNAPSHOT)));
+
+    private final Workflow workflow = BankBalanceWorkflows.create(
+            memoryStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)),
+            skipRunning);
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore())
+                .as("should return a read only transaction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void bankWorkflowContainsInitialReadsForBalances() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.numberOfAccounts())
+                .boxed()
+                .map(index -> WitnessedReadTransactionAction.of(
+                        TABLE_NAME, BankBalanceWorkflows.getCellForAccount(index), Optional.empty()))
+                .collect(Collectors.toList());
+        assertThat(actions).containsAll(initialReadActions);
+    }
+
+    @Test
+    public void bankWorkflowContainsInitialWritesForBalances() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WorkloadCell> actualWrittenCells = actions.stream()
+                .filter(WitnessedWriteTransactionAction.class::isInstance)
+                .map(WitnessedWriteTransactionAction.class::cast)
+                .map(WitnessedWriteTransactionAction::cell)
+                .collect(Collectors.toList());
+
+        List<WorkloadCell> expectedWrittenCells = IntStream.range(0, CONFIGURATION.numberOfAccounts())
+                .boxed()
+                .map(BankBalanceWorkflows::getCellForAccount)
+                .collect(Collectors.toList());
+
+        assertThat(actualWrittenCells).containsAll(expectedWrittenCells);
+    }
+
+    @Test
+    public void bankWorkflowSetsSkipRunningToTrueWhenInvalidBalanceSet() {
+        assertThat(skipRunning).isFalse();
+        memoryStore.readWrite(txn -> txn.write(TABLE_NAME, BankBalanceWorkflows.getCellForAccount(0), 1));
+        workflow.run();
+        assertThat(skipRunning).isTrue();
+    }
+
+    @Test
+    public void bankWorkflowDoesNotWitnessTransactionWhenSkipRunningSetToTrue() {
+        skipRunning.set(true);
+        assertThat(workflow.run().history()).isEmpty();
+    }
+}ueu(7855da7be463ca7221030a62cd3401cb2180c96f}(sha(7855da7be463ca7221030a62cd3401cb2180c96fnode_idEC_kwDOAjP5fdoAKDc4NTVkYTdiZTQ2M2NhNzIyMTAzMGE2MmNkMzQwMWNiMjE4MGM5NmYcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-03T15:42:02Zu	committer}(j3@  	Tom Papkej5@  tpapke@palantir.comj7@  2023-07-03T15:42:02Zumessage(Only filter metadata if set is not emptytree}(j+@  (af49b5573485c470b414fd67b1cb3ef50ed54db1url`https://api.github.com/repos/palantir/atlasdb/git/trees/af49b5573485c470b414fd67b1cb3ef50ed54db1ujC@  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7855da7be463ca7221030a62cd3401cb2180c96f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSi7EoACgkQmF9s0kaF
Iw3Dpgf/Sfjgldzric8bALKWwtsNuqs+rhyAVvmyNFrhg2AxhM8Fw/ejn8GrSFWv
iG89EPHZzDsvm50j4TTnN0zjaXISWemGDFWCnNLjDRZ/k/avuKB6U8EDQg1YMJOd
wrQM/aubGCSdG/3idWSoIQfP4AqxasCIvCMaPqiuxGOzA/x7rh/FMdZd6HFSk4RC
l1PuorCLwhTx/Se4wsb2+mQsq7DewyotzLLAe0WuqX7MaeF4NWBCVw+R5Ihdkcj4
UhpfzgE2MqooTeOnf5UrAM41zjgeVBG0u2iyC9/+Rq9vc20iogDEEGUv80kXwUdG
P6X17HQKIn3qe+Y1MI6bHjAhz6mDdQ==
=3jFl
-----END PGP SIGNATURE-----payloadtree af49b5573485c470b414fd67b1cb3ef50ed54db1
parent 6971b7a880d38bea7a410b9ca3324a688237577e
author Tom Papke <tpapke@palantir.com> 1688398922 +0100
committer Tom Papke <tpapke@palantir.com> 1688398922 +0100

Only filter metadata if set is not empty
uujC@  ^https://api.github.com/repos/palantir/atlasdb/commits/7855da7be463ca7221030a62cd3401cb2180c96fhtml_urlShttps://github.com/palantir/atlasdb/commit/7855da7be463ca7221030a62cd3401cb2180c96fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7855da7be463ca7221030a62cd3401cb2180c96f/commentsj1@  }(login	ToemmscheidJboj-@  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jC@  &https://api.github.com/users/ToemmschejQ@  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj9@  }(jV@  	ToemmschejX@  Jboj-@  MDQ6VXNlcjQzNjc1NDkwjZ@  4https://avatars.githubusercontent.com/u/43675490?v=4j\@  h5jC@  &https://api.github.com/users/ToemmschejQ@  https://github.com/Toemmschej_@  0https://api.github.com/users/Toemmsche/followersja@  =https://api.github.com/users/Toemmsche/following{/other_user}jc@  6https://api.github.com/users/Toemmsche/gists{/gist_id}je@  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jg@  4https://api.github.com/users/Toemmsche/subscriptionsji@  +https://api.github.com/users/Toemmsche/orgsjk@  ,https://api.github.com/users/Toemmsche/reposjm@  7https://api.github.com/users/Toemmsche/events{/privacy}jo@  6https://api.github.com/users/Toemmsche/received_eventsjq@  Userjs@  uparents]}(j+@  (6971b7a880d38bea7a410b9ca3324a688237577ejC@  ^https://api.github.com/repos/palantir/atlasdb/commits/6971b7a880d38bea7a410b9ca3324a688237577ejQ@  Shttps://github.com/palantir/atlasdb/commit/6971b7a880d38bea7a410b9ca3324a688237577euastats}(totalK	additionsK	deletionsKufiles](}(j+@  (4cb9f3ee112da74860e1d22286316e9c15c8504afilenameatimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javastatusmodifiedj@  Kj@  KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/7855da7be463ca7221030a62cd3401cb2180c96f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7855da7be463ca7221030a62cd3401cb2180c96f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=7855da7be463ca7221030a62cd3401cb2180c96fpatchX"  @@ -169,6 +169,10 @@ private void runIfDescriptorsMatchLockWatchesWithMetadata(
             RangeSet<LockDescriptor> ranges = watches.get().ranges();
             Set<LockDescriptor> filteredLocks =
                     unfilteredLocks.stream().filter(ranges::contains).collect(Collectors.toSet());
+            if (filteredLocks.isEmpty()) {
+                return;
+            }
+            // Filtering metadata after deciding if we should even proceed might save us some computation
             Optional<LockRequestMetadata> filteredMetadata = unfilteredMetadata
                     .map(LockRequestMetadata::lockDescriptorToChangeMetadata)
                     .map(unfilteredLockMetadata -> {
@@ -178,10 +182,7 @@ private void runIfDescriptorsMatchLockWatchesWithMetadata(
                                 .collectToMap();
                         return LockRequestMetadata.of(filteredLockMetadata);
                     });
-            // Even if our metadata is non-empty after filtering, but our locks are, we do not proceed.
-            if (!filteredLocks.isEmpty()) {
-                biConsumer.accept(filteredLocks, filteredMetadata);
-            }
+            biConsumer.accept(filteredLocks, filteredMetadata);
         } finally {
             watchesLock.readLock().unlock();
         }u}(j+@  (c499fef9645e7b70cb44fd58273b1ceff0a65422j@  qtimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataIntegrationTest.javaj@  modifiedj@  Kj@  Kj@  Kj@  https://github.com/palantir/atlasdb/blob/7855da7be463ca7221030a62cd3401cb2180c96f/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataIntegrationTest.javaj@  https://github.com/palantir/atlasdb/raw/7855da7be463ca7221030a62cd3401cb2180c96f/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataIntegrationTest.javaj@  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataIntegrationTest.java?ref=7855da7be463ca7221030a62cd3401cb2180c96fj@  X  @@ -123,7 +123,6 @@ public void lockEventContainsMetadataFromRequestIfWatched() {
 
     @Test
     public void lockEventDoesNotContainMetadataThatIsNotWatched() {
-
         IdentifiedLockRequest mixedRequest =
                 standardRequestWithMetadata(ImmutableMap.<LockDescriptor, ChangeMetadata>builder()
                         .putAll(ALL_WATCHED_LOCKS_WITH_METADATA)
@@ -146,6 +145,7 @@ public void noLockEventIsPublishedIfNothingIsWatched() {
                 ChangeMetadata.updated(
                         "bla".getBytes(StandardCharsets.UTF_8), "blabla".getBytes(StandardCharsets.UTF_8))));
         waitForFuture(timeLockService.lock(mixedRequest));
+
         assertThat(getAllLockEventsMetadata()).isEmpty();
     }
 ueu(aae42d0326b3625157f6c427524c568f225a7cc6}(sha(aae42d0326b3625157f6c427524c568f225a7cc6node_idEC_kwDOAjP5fdoAKGFhZTQyZDAzMjZiMzYyNTE1N2Y2YzQyNzUyNGM1NjhmMjI1YTdjYzYcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-03-23T23:08:50Zu	committer}(j@  GitHubj@  noreply@github.comj@  2023-03-23T23:08:50ZumessageHAdd docker-compose file for workload server / antithesis testing (#6480)tree}(j@  (c972955dc6ece00e945b62a5611c393aed96b759url`https://api.github.com/repos/palantir/atlasdb/git/trees/c972955dc6ece00e945b62a5611c393aed96b759uj@  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/aae42d0326b3625157f6c427524c568f225a7cc6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkHNwCCRBK7hj4Ov3rIwAA0gUIABfyKhEm+v4DQUhFtbcgolOr
P+JitRQqtmL+2TIeO21Qoi2jGlVSRBidnufvlLRT2+mHNm4ctdL+6GtMPfcDbHTx
P6cfuLLVzb5O/UPiC5B7UWxqESHv8GcUp+ZhEv7+KAK7yXiWmIBtKf+d2rBoOQT9
cMJZd1HkAgLxTPyVJ1enOE5G9iawBQg2zCQrPKbqCxIrVlbdex4IMj1U2Oh2SEVG
wc9l78lyQfG3AKXuss/juDWZc/bnoFbtGSvPvJgzwNiZ1WAaF8zpbovwj6xzcyfp
DhN//0aBqFQ35WnTo2WC1CeUAeS66dKQp3XMCIr2dmT9FkmMotsWKzmWbaAis54=
=Qhs7
-----END PGP SIGNATURE-----
payloadX  tree c972955dc6ece00e945b62a5611c393aed96b759
parent 50419c145d9169ff9e70a17a1da56a33a420b9a9
author Sam-Kramer <sam.c.kramer@gmail.com> 1679612930 +0000
committer GitHub <noreply@github.com> 1679612930 +0000

Add docker-compose file for workload server / antithesis testing (#6480)

 uuj@  ^https://api.github.com/repos/palantir/atlasdb/commits/aae42d0326b3625157f6c427524c568f225a7cc6html_urlShttps://github.com/palantir/atlasdb/commit/aae42d0326b3625157f6c427524c568f225a7cc6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/aae42d0326b3625157f6c427524c568f225a7cc6/commentsj@  }(login
Sam-KrameridJ^2_ j@  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j@  'https://api.github.com/users/Sam-Kramerj@  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj@  }(j@  web-flowj@  J/j@  MDQ6VXNlcjE5ODY0NDQ3j@  4https://avatars.githubusercontent.com/u/19864447?v=4j@  h5j@  %https://api.github.com/users/web-flowj@  https://github.com/web-flowj@  /https://api.github.com/users/web-flow/followersj@  <https://api.github.com/users/web-flow/following{/other_user}j@  5https://api.github.com/users/web-flow/gists{/gist_id}j@  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j@  3https://api.github.com/users/web-flow/subscriptionsj@  *https://api.github.com/users/web-flow/orgsj@  +https://api.github.com/users/web-flow/reposj@  6https://api.github.com/users/web-flow/events{/privacy}j@  5https://api.github.com/users/web-flow/received_eventsj@  Userj@  uparents]}(j@  (50419c145d9169ff9e70a17a1da56a33a420b9a9j@  ^https://api.github.com/repos/palantir/atlasdb/commits/50419c145d9169ff9e70a17a1da56a33a420b9a9j@  Shttps://github.com/palantir/atlasdb/commit/50419c145d9169ff9e70a17a1da56a33a420b9a9uastats}(totalK	additionsK	deletionsKufiles](}(j@  (671326e1cd73c65a3f8964ddc722ba78dcce8e92filename-atlasdb-workload-server-antithesis/DockerfilestatusaddedjA  Kj
A  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/aae42d0326b3625157f6c427524c568f225a7cc6/atlasdb-workload-server-antithesis%2FDockerfileraw_urlhttps://github.com/palantir/atlasdb/raw/aae42d0326b3625157f6c427524c568f225a7cc6/atlasdb-workload-server-antithesis%2FDockerfilecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2FDockerfile?ref=aae42d0326b3625157f6c427524c568f225a7cc6patch@@ -0,0 +1,4 @@
+FROM adoptopenjdk/openjdk11:jre-11.0.9_11.1-alpine
+MAINTAINER AtlasDB Team
+
+ADD docker-compose.yml /
\ No newline at end of fileu}(j@  (3fe03f84c4a9ef10137f13d2f0bfe773525ba2b7jA  /atlasdb-workload-server-antithesis/build.gradlejA  addedjA  Kj
A  K jA  KjA  https://github.com/palantir/atlasdb/blob/aae42d0326b3625157f6c427524c568f225a7cc6/atlasdb-workload-server-antithesis%2Fbuild.gradlejA  https://github.com/palantir/atlasdb/raw/aae42d0326b3625157f6c427524c568f225a7cc6/atlasdb-workload-server-antithesis%2Fbuild.gradlejA  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fbuild.gradle?ref=aae42d0326b3625157f6c427524c568f225a7cc6jA  X  @@ -0,0 +1,11 @@
+apply plugin: 'com.palantir.docker'
+apply from: "../gradle/shared.gradle"
+apply from: "../gradle/non-client-dist.gradle"
+
+def imageVersion = "${project.version.toString().replaceAll('\\+', '-')}"
+
+docker {
+    name "palantirtechnologies/${project.name}:${imageVersion}"
+    tags 'latest', 'snapshot'
+    files 'var/docker-compose.yml'
+}
\ No newline at end of fileu}(j@  (6f2b6f9d3ae996b58f2ea52287ef51f41458e3fbjA  9atlasdb-workload-server-antithesis/var/docker-compose.ymljA  addedjA  KPj
A  K jA  KPjA  https://github.com/palantir/atlasdb/blob/aae42d0326b3625157f6c427524c568f225a7cc6/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymljA  https://github.com/palantir/atlasdb/raw/aae42d0326b3625157f6c427524c568f225a7cc6/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymljA  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=aae42d0326b3625157f6c427524c568f225a7cc6jA  X 	  @@ -0,0 +1,80 @@
+version: '2'
+
+services:
+  cassandra1:
+    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    ports:
+      - "9160"
+      - "9042"
+      - "7199"
+    environment:
+      - CASSANDRA_SEEDS=cassandra1,cassandra2,cassandra3
+      - CASSANDRA_ENDPOINT_SNITCH=PropertyFileSnitch
+      - MAX_HEAP_SIZE=512m
+      - HEAP_NEWSIZE=64m
+      - LOCAL_JMX=no
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.2
+
+  cassandra2:
+    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    ports:
+      - "9160"
+      - "9042"
+      - "7199"
+    environment:
+      - CASSANDRA_SEEDS=cassandra1,cassandra2,cassandra3
+      - CASSANDRA_ENDPOINT_SNITCH=PropertyFileSnitch
+      - MAX_HEAP_SIZE=512m
+      - HEAP_NEWSIZE=64m
+      - LOCAL_JMX=no
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.3
+
+  cassandra3:
+    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    ports:
+      - "9160"
+      - "9042"
+      - "7199"
+    environment:
+      - CASSANDRA_SEEDS=cassandra1,cassandra2,cassandra3
+      - CASSANDRA_ENDPOINT_SNITCH=PropertyFileSnitch
+      - MAX_HEAP_SIZE=512m
+      - HEAP_NEWSIZE=64m
+      - LOCAL_JMX=no
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.4
+
+  timelock:
+    image: palantirtechnologies/timelock-server-distribution:unspecified
+    ports:
+      - "8421"
+      - "8422"
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.5
+
+  workload-server:
+    image: palantirtechnologies/atlasdb-workload-server-distribution:unspecified
+    command: [bash, -c, 'cp var/conf/workload-server.timelock.cassandra.yml var/conf/workload-server.yml 
+                         && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160 
+                         && service/bin/init.sh console']
+    depends_on:
+      - cassandra1
+      - cassandra2
+      - cassandra3
+      - timelock
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.6
+
+networks:
+  antithesis-net:
+    driver: bridge
+    ipam:
+      config:
+        - subnet: 10.20.20.0/24
\ No newline at end of fileu}(j@  (1b2d452e3c07bb6f7e7dcbd97b739698e0817c15jA  /atlasdb-workload-server-distribution/DockerfilejA  modifiedjA  Kj
A  KjA  KjA  https://github.com/palantir/atlasdb/blob/aae42d0326b3625157f6c427524c568f225a7cc6/atlasdb-workload-server-distribution%2FDockerfilejA  https://github.com/palantir/atlasdb/raw/aae42d0326b3625157f6c427524c568f225a7cc6/atlasdb-workload-server-distribution%2FDockerfilejA  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2FDockerfile?ref=aae42d0326b3625157f6c427524c568f225a7cc6jA  X  @@ -1,8 +1,12 @@
 FROM adoptopenjdk/openjdk11:jre-11.0.9_11.1-alpine
 MAINTAINER AtlasDB Team
 
-# Bash and curl are convenient for monitoring and debugging
-RUN apk update && apk add bash curl
+ENV DOCKERIZE_VERSION v0.2.0
+
+# Bash is useful for monitoring; curl is used by our healthchecks.
+RUN apk update && apk add bash curl procps wget  \
+    && wget --no-check-certificate http://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
+    && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
 
 # Prefer ADD to COPY because it does the tar handling
 ADD atlasdb-workload-server-*.tgz /u}(j@  (77aa082a3f56273b255cc5a16f5dfd48dbf64a7ajA  1atlasdb-workload-server-distribution/build.gradlejA  modifiedjA  K j
A  KjA  KjA  https://github.com/palantir/atlasdb/blob/aae42d0326b3625157f6c427524c568f225a7cc6/atlasdb-workload-server-distribution%2Fbuild.gradlejA  https://github.com/palantir/atlasdb/raw/aae42d0326b3625157f6c427524c568f225a7cc6/atlasdb-workload-server-distribution%2Fbuild.gradlejA  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=aae42d0326b3625157f6c427524c568f225a7cc6jA  X=  @@ -20,7 +20,6 @@ dependencies {
     implementation 'com.palantir.conjure.java.runtime:conjure-java-jersey-server'
     implementation 'com.google.guava:guava'
 
-
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-cassandra')
     implementation project(':atlasdb-workload-server')u}(j@  (85cb331280d6f96e3eedd1c99343b3a58af383ebjA  Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymljA  addedjA  K.j
A  K jA  K.jA  https://github.com/palantir/atlasdb/blob/aae42d0326b3625157f6c427524c568f225a7cc6/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljA  https://github.com/palantir/atlasdb/raw/aae42d0326b3625157f6c427524c568f225a7cc6/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljA  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=aae42d0326b3625157f6c427524c568f225a7cc6jA  X  @@ -0,0 +1,46 @@
+runtime:
+  atlas:
+    internalSchema:
+      targetTransactionsSchemaVersion: 3
+    sweep:
+      enabled: false
+    targetedSweep:
+      enabled: true
+      shards: 1
+    timelockRuntime:
+      serversList:
+        servers:
+          - 'http://timelock:8421'
+        sslConfiguration:
+          keyStorePath: "var/security/keyStore.jks"
+          keyStorePassword: "keystore"
+          trustStorePath: "var/security/trustStore.jks"
+install:
+  atlas:
+    keyValueService:
+      type: cassandra
+      servers:
+        type: cqlCapable
+        cqlHosts:
+          - cassandra1:9042
+          - cassandra2:9042
+          - cassandra3:9042
+        thriftHosts:
+          - cassandra1:9160
+          - cassandra2:9160
+          - cassandra3:9160
+      credentials:
+        username: cassandra
+        password: cassandra
+      ssl: false
+      replicationFactor: 3
+    targetedSweep:
+      enableSweepQueueWrites: true
+    namespace: workload_server
+  singleRowTwoCellsConfig:
+    tableConfiguration:
+      tableName: two_cells_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: singleRowTwoCells
+  exitAfterRunning: trueu}(j@  (e664a780b53fd2efd5cd47e97de07608604db988jA  Aatlasdb-workload-server-distribution/var/conf/workload-server.ymljA  addedjA  K
j
A  K jA  K
jA  https://github.com/palantir/atlasdb/blob/aae42d0326b3625157f6c427524c568f225a7cc6/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljA  https://github.com/palantir/atlasdb/raw/aae42d0326b3625157f6c427524c568f225a7cc6/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljA  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=aae42d0326b3625157f6c427524c568f225a7cc6jA  X`  @@ -0,0 +1,13 @@
+runtime: {}
+install:
+  atlas:
+    namespace: test
+    keyValueService:
+      type: memory
+  single-row-two-cells-config:
+    table-configuration:
+      table-name: two-cells-test
+      isolation-level: SERIALIZABLE
+    iteration-count: 100
+    type: singleRowTwoCells
+  exit-after-running: true
\ No newline at end of fileu}(j@  (7d7c58d85db7aec41551dce0fc7be0a3e2d22fb1jA  >atlasdb-workload-server-distribution/var/security/keyStore.jksjA  addedjA  K j
A  K jA  K jA  https://github.com/palantir/atlasdb/blob/aae42d0326b3625157f6c427524c568f225a7cc6/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FkeyStore.jksjA  https://github.com/palantir/atlasdb/raw/aae42d0326b3625157f6c427524c568f225a7cc6/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FkeyStore.jksjA  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FkeyStore.jks?ref=aae42d0326b3625157f6c427524c568f225a7cc6u}(j@  (49dd792296e2678272e6b07df09e286ff5b8879ejA  @atlasdb-workload-server-distribution/var/security/trustStore.jksjA  addedjA  K j
A  K jA  K jA  https://github.com/palantir/atlasdb/blob/aae42d0326b3625157f6c427524c568f225a7cc6/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FtrustStore.jksjA  https://github.com/palantir/atlasdb/raw/aae42d0326b3625157f6c427524c568f225a7cc6/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FtrustStore.jksjA  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FtrustStore.jks?ref=aae42d0326b3625157f6c427524c568f225a7cc6u}(j@  (30ae8194254f4d9e5df10537828fed52ef8a5635jA  settings.gradlejA  modifiedjA  Kj
A  K jA  KjA  ahttps://github.com/palantir/atlasdb/blob/aae42d0326b3625157f6c427524c568f225a7cc6/settings.gradlejA  `https://github.com/palantir/atlasdb/raw/aae42d0326b3625157f6c427524c568f225a7cc6/settings.gradlejA  shttps://api.github.com/repos/palantir/atlasdb/contents/settings.gradle?ref=aae42d0326b3625157f6c427524c568f225a7cc6jA  X,  @@ -32,6 +32,7 @@ include ":atlasdb-tests-shared"
 include ":atlasdb-workload-server"
 include ":atlasdb-workload-server-api"
 include ":atlasdb-workload-server-distribution"
+include ":atlasdb-workload-server-antithesis"
 include ":commons-annotations"
 include ":commons-api"
 include ":commons-db"ueu(8b633648d727e63f353ff21c5f8c0ea46336e9b7}(sha(8b633648d727e63f353ff21c5f8c0ea46336e9b7node_idEC_kwDOAjP5fdoAKDhiNjMzNjQ4ZDcyN2U2M2YzNTNmZjIxYzVmOGMwZWE0NjMzNmU5Yjccommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-15T19:13:09Zu	committer}(joA  Jeremy KongjqA  jkong@palantir.comjsA  2023-06-15T19:13:09Zumessage
la campanellatree}(jgA  (dc6c480f726e1e1af744b3096069629ea155030curl`https://api.github.com/repos/palantir/atlasdb/git/trees/dc6c480f726e1e1af744b3096069629ea155030cujA  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8b633648d727e63f353ff21c5f8c0ea46336e9b7
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSLYsUACgkQTLdFKain
zjy+xQgA0YPzLe7tzoU1TjUYNMOIXqVHRnAK41X+6lMf7Qg7O20jLVQ2jrwy9cZY
/MbejQYZ+tfm1jyV1+k1Nn6bRUmpqSpyv0eIqUH8tXss5/vid/jR7ht8aS+/evih
WZhvJEXSl4QCwtCLi7ls+7QV/WpXGmgBfhZtBCHieXCu9ePs0WGzRQBf+IdMFqhB
3zk7i32b8+VlMfAeE5QF5fIKKUo1CuOOGTzfZUbwFTGnHE4hwzXruxjp3vxlPkY+
J52ag+Gu77QQxfPQN/DS+7zXaLQOSmbjcwAiz59iVvHPNZHs8rlxRZd/Sdv+JDSp
JQc+VOQ/1Uxrnb1aLXMsSnwTaPceSw==
=ezdV
-----END PGP SIGNATURE-----payloadtree dc6c480f726e1e1af744b3096069629ea155030c
parent 899d6f697e47528c580c9f890d80f3b9d6f9db90
author Jeremy Kong <jkong@palantir.com> 1686856389 +0800
committer Jeremy Kong <jkong@palantir.com> 1686856389 +0800

la campanella
uujA  ^https://api.github.com/repos/palantir/atlasdb/commits/8b633648d727e63f353ff21c5f8c0ea46336e9b7html_urlShttps://github.com/palantir/atlasdb/commit/8b633648d727e63f353ff21c5f8c0ea46336e9b7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8b633648d727e63f353ff21c5f8c0ea46336e9b7/commentsjmA  }(login
jeremyk-91idJZ jiA  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jA  'https://api.github.com/users/jeremyk-91jA  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujuA  }(jA  
jeremyk-91jA  JZ jiA  MDQ6VXNlcjU5NTU1MTA=jA  3https://avatars.githubusercontent.com/u/5955510?v=4jA  h5jA  'https://api.github.com/users/jeremyk-91jA  https://github.com/jeremyk-91jA  1https://api.github.com/users/jeremyk-91/followersjA  >https://api.github.com/users/jeremyk-91/following{/other_user}jA  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jA  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jA  5https://api.github.com/users/jeremyk-91/subscriptionsjA  ,https://api.github.com/users/jeremyk-91/orgsjA  -https://api.github.com/users/jeremyk-91/reposjA  8https://api.github.com/users/jeremyk-91/events{/privacy}jA  7https://api.github.com/users/jeremyk-91/received_eventsjA  UserjA  uparents]}(jgA  (899d6f697e47528c580c9f890d80f3b9d6f9db90jA  ^https://api.github.com/repos/palantir/atlasdb/commits/899d6f697e47528c580c9f890d80f3b9d6f9db90jA  Shttps://github.com/palantir/atlasdb/commit/899d6f697e47528c580c9f890d80f3b9d6f9db90uastats}(totalK
	additionsK	deletionsKufiles]}(jgA  (e1858c5574fade5944ae1f1370057a6475b453a1filenamelatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javastatusmodifiedjA  KjA  KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/8b633648d727e63f353ff21c5f8c0ea46336e9b7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/8b633648d727e63f353ff21c5f8c0ea46336e9b7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=8b633648d727e63f353ff21c5f8c0ea46336e9b7patchX  @@ -86,7 +86,10 @@ private static Optional<WitnessedTransaction> run(
             Map<Integer, Integer> tableState =
                     values.stream().collect(Collectors.toMap(ColumnValue::column, ColumnValue::value));
             if (tableState.size() != 1) {
-                log.error("Detected transactions that violated our serializable isolation invariant {}", SafeArg.of("tableState", tableState));
+                log.error(
+                        "Detected transactions that violated our serializable isolation invariant {}",
+                        SafeArg.of("tableState", tableState));
+                log.error("This is a hack null null null null null null {}", SafeArg.of("tableState", tableState));
             }
 
             if (tableState.containsKey(FIRST_COLUMN)) {
@@ -123,11 +126,11 @@ static boolean shouldWriteToFirstCell(int taskIndex) {
     private static List<TransactionAction> createCellUpdateActions(int taskIndex, String tableName) {
         return shouldWriteToFirstCell(taskIndex)
                 ? ImmutableList.of(
-                WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
-                DeleteTransactionAction.of(tableName, SECOND_CELL))
+                        WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
+                        DeleteTransactionAction.of(tableName, SECOND_CELL))
                 : ImmutableList.of(
-                DeleteTransactionAction.of(tableName, FIRST_CELL),
-                WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
+                        DeleteTransactionAction.of(tableName, FIRST_CELL),
+                        WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
     }
 
     private static List<TransactionAction> createCellReadActions(String tableName) {uau(f1122a43e8aa35d314c30a514c34ed8c28c32f5a}(sha(f1122a43e8aa35d314c30a514c34ed8c28c32f5anode_idEC_kwDOAjP5fdoAKGYxMTIyYTQzZThhYTM1ZDMxNGMzMGE1MTRjMzRlZDhjMjhjMzJmNWEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-01T13:51:14Zu	committer}(jA  GitHubjA  noreply@github.comjA  2023-06-01T13:51:14Zumessage0[Antithesis] Actually be concurrent 😱 (#6601)tree}(jA  (54c9c07d4469a3396a5abf59bb1eac24a2320977url`https://api.github.com/repos/palantir/atlasdb/git/trees/54c9c07d4469a3396a5abf59bb1eac24a2320977ujA  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f1122a43e8aa35d314c30a514c34ed8c28c32f5a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkeKJSCRBK7hj4Ov3rIwAADVMIAF9BaGCDkGnH8R+G9aPdvpnr
sv4XUKidluJXUtymLwXLBcytb5vktuhCMfQh16dnDUo2aQ+OtDuPGEqzIQtEmC+9
zfA4eU3U9ws0NcW0YTT6+WzD2Y76bG2OE3xy24M2MZj1vxcTVtDp1ozNEetBt9Md
8QhwpMIPJZ2Hq/SUXstTXe0SM6gmb+gBFIIrpmlsKyACdRpRVBi1EggDXxsontdL
GI8OVzafgO/CiFMk8WhIN4r8iTY1SdiEeHUlbSw4U+bZS64yj3T9AzLLaBi14PV4
0Cd7OWlJ9GfiJe6EXEAFQp+bP3DDjBRrGBd9VRuk7wBSPD0jUYc0JZNSve7MjeQ=
=Derg
-----END PGP SIGNATURE-----
payloadX  tree 54c9c07d4469a3396a5abf59bb1eac24a2320977
parent 5b1d8f7aca163d24d017e12af916e7c4af87b7a6
author Jeremy Kong <jkong@palantir.com> 1685627474 +0100
committer GitHub <noreply@github.com> 1685627474 +0100

[Antithesis] Actually be concurrent 😱 (#6601)

uujA  ^https://api.github.com/repos/palantir/atlasdb/commits/f1122a43e8aa35d314c30a514c34ed8c28c32f5ahtml_urlShttps://github.com/palantir/atlasdb/commit/f1122a43e8aa35d314c30a514c34ed8c28c32f5acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f1122a43e8aa35d314c30a514c34ed8c28c32f5a/commentsjA  }(login
jeremyk-91idJZ jA  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jA  'https://api.github.com/users/jeremyk-91jB  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujA  }(j	B  web-flowjB  J/jA  MDQ6VXNlcjE5ODY0NDQ3j
B  4https://avatars.githubusercontent.com/u/19864447?v=4jB  h5jA  %https://api.github.com/users/web-flowjB  https://github.com/web-flowjB  /https://api.github.com/users/web-flow/followersjB  <https://api.github.com/users/web-flow/following{/other_user}jB  5https://api.github.com/users/web-flow/gists{/gist_id}jB  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jB  3https://api.github.com/users/web-flow/subscriptionsjB  *https://api.github.com/users/web-flow/orgsjB  +https://api.github.com/users/web-flow/reposj B  6https://api.github.com/users/web-flow/events{/privacy}j"B  5https://api.github.com/users/web-flow/received_eventsj$B  Userj&B  uparents]}(jA  (5b1d8f7aca163d24d017e12af916e7c4af87b7a6jA  ^https://api.github.com/repos/palantir/atlasdb/commits/5b1d8f7aca163d24d017e12af916e7c4af87b7a6jB  Shttps://github.com/palantir/atlasdb/commit/5b1d8f7aca163d24d017e12af916e7c4af87b7a6uastats}(totalK	additionsK	deletionsK ufiles]}(jA  (a47bdaf7b62829220b46b23f604be5fdccf13f2dfilenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj@B  KjAB  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/f1122a43e8aa35d314c30a514c34ed8c28c32f5a/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f1122a43e8aa35d314c30a514c34ed8c28c32f5a/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=f1122a43e8aa35d314c30a514c34ed8c28c32f5apatchX@  @@ -120,10 +120,12 @@ private void scheduleBackgroundJobs(Environment environment) {
     }
 
     private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {
+        // This is a single threaded executor; this is intentional, so that we only run one workflow at a time.
         ExecutorService antithesisWorkflowRunnerExecutorService = environment
                 .lifecycle()
                 .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
                 .build();
+
         MetricsManager metricsManager = MetricsManagers.of(environment.metrics(), taggedMetricRegistry);
         AtlasDbTransactionStoreFactory transactionStoreFactory = AtlasDbTransactionStoreFactory.createFromConfig(
                 configuration.install().atlas(),
@@ -213,10 +215,12 @@ private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
             LifecycleEnvironment lifecycle) {
         ExecutorService readExecutor = lifecycle
                 .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-read")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
                 .maxThreads(workflowConfig.maxThreadCount() / 2)
                 .build();
         ExecutorService writeExecutor = lifecycle
                 .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-write")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
                 .maxThreads(workflowConfig.maxThreadCount() / 2)
                 .build();
         InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
@@ -303,6 +307,7 @@ private static <T> ExecutorService createExecutorService(
             WorkflowConfiguration workflowConfig, LifecycleEnvironment lifecycle, Class<T> workflowFactoryClass) {
         return lifecycle
                 .executorService(workflowFactoryClass.getSimpleName())
+                .minThreads(workflowConfig.maxThreadCount())
                 .maxThreads(workflowConfig.maxThreadCount())
                 .build();
     }uau(e0b8210ee3564fc21b6608419b22a93efe2ba6f2}(sha(e0b8210ee3564fc21b6608419b22a93efe2ba6f2node_idEC_kwDOAjP5fdoAKGUwYjgyMTBlZTM1NjRmYzIxYjY2MDg0MTliMjJhOTNlZmUyYmE2ZjIcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-02-24T15:15:40Zu	committer}(j]B  GitHubj_B  noreply@github.comjaB  2023-02-24T15:15:40Zumessage4Excavator:  Upgrade buildscript dependencies (#6444)tree}(jUB  (3c133ef69f80cbb8415a30d318363d4db197edcfurl`https://api.github.com/repos/palantir/atlasdb/git/trees/3c133ef69f80cbb8415a30d318363d4db197edcfujmB  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e0b8210ee3564fc21b6608419b22a93efe2ba6f2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJj+NScCRBK7hj4Ov3rIwAANYwIACvdBxJTSd0kgWpi0rA4QXB1
mt6796jmCXEwlfqkBNSvW4n6UyfVd6JsY1s4FbFD3QhQz2MvtwTvtcYB5nkv35HL
dhoa6KTFOzoRmJ5llGoXTeo4MlDH+gtkhMXmajwu35bp3T39k0zBATIHL55prGYo
VDNA3wun3rbmhu6mqthBgulI0hl209Sz46XFkoOYHQKf/2ti9kO/uD9Hmcp2HLtJ
vrET3MFbOwaeaDPpu34ZCuO0+J/c2028GEoOtdGR12JAy9mpM42W1juv2SisXvi1
H8BpWVPPIu192pDJS1O26pyBO0Ob44biKt+gPFRcMwfMUTo11O+zNcPLitj/6AE=
=vE6j
-----END PGP SIGNATURE-----
payloadX)  tree 3c133ef69f80cbb8415a30d318363d4db197edcf
parent 5a1845eed26712cd2eeb8775b1d0a4dd30f35ead
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1677251740 +0000
committer GitHub <noreply@github.com> 1677251740 +0000

Excavator:  Upgrade buildscript dependencies (#6444)

 uujmB  ^https://api.github.com/repos/palantir/atlasdb/commits/e0b8210ee3564fc21b6608419b22a93efe2ba6f2html_urlShttps://github.com/palantir/atlasdb/commit/e0b8210ee3564fc21b6608419b22a93efe2ba6f2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e0b8210ee3564fc21b6608419b22a93efe2ba6f2/commentsj[B  }(loginsvc-excavator-botidJjWB  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5jmB  .https://api.github.com/users/svc-excavator-botj{B  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventsC      typeUser
site_adminujcB  }(jB  web-flowjB  J/jWB  MDQ6VXNlcjE5ODY0NDQ3jB  4https://avatars.githubusercontent.com/u/19864447?v=4jB  h5jmB  %https://api.github.com/users/web-flowj{B  https://github.com/web-flowjB  /https://api.github.com/users/web-flow/followersjB  <https://api.github.com/users/web-flow/following{/other_user}jB  5https://api.github.com/users/web-flow/gists{/gist_id}jB  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jB  3https://api.github.com/users/web-flow/subscriptionsjB  *https://api.github.com/users/web-flow/orgsjB  +https://api.github.com/users/web-flow/reposjB  6https://api.github.com/users/web-flow/events{/privacy}jB  5https://api.github.com/users/web-flow/received_eventsjB  UserjB  uparents]}(jUB  (5a1845eed26712cd2eeb8775b1d0a4dd30f35eadjmB  ^https://api.github.com/repos/palantir/atlasdb/commits/5a1845eed26712cd2eeb8775b1d0a4dd30f35eadj{B  Shttps://github.com/palantir/atlasdb/commit/5a1845eed26712cd2eeb8775b1d0a4dd30f35eaduastats}(totalK
	additionsK	deletionsKufiles](}(jUB  (8e080ab39272adb9262b248c9333fdaf0d71e2ebfilenamebuild.gradlestatusmodifiedjB  KjB  KchangesKblob_url^https://github.com/palantir/atlasdb/blob/e0b8210ee3564fc21b6608419b22a93efe2ba6f2/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/e0b8210ee3564fc21b6608419b22a93efe2ba6f2/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=e0b8210ee3564fc21b6608419b22a93efe2ba6f2patchXY  @@ -7,14 +7,14 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.0.0'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.0.1'
         classpath 'com.netflix.nebula:nebula-publishing-plugin:20.0.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.33.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.34.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.11.0'
-        classpath 'com.palantir.gradle.gitversion:gradle-git-version:0.15.0'
+        classpath 'com.palantir.gradle.gitversion:gradle-git-version:1.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.31.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'u}(jUB  (551155a0e558a91829f7167ce7426447df29a0e0jB  
versions.lockjB  modifiedjB  KjB  KjB  KjB  _https://github.com/palantir/atlasdb/blob/e0b8210ee3564fc21b6608419b22a93efe2ba6f2/versions.lockjB  ^https://github.com/palantir/atlasdb/raw/e0b8210ee3564fc21b6608419b22a93efe2ba6f2/versions.lockjB  qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=e0b8210ee3564fc21b6608419b22a93efe2ba6f2jB  X  @@ -190,11 +190,11 @@ io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
 jakarta.activation:jakarta.activation-api:1.2.2 (3 constraints: 4e3741b6)
-jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 2c797c38)
+jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 29799834)
 jakarta.inject:jakarta.inject-api:1.0.5 (13 constraints: decbc9f9)
 jakarta.servlet:jakarta.servlet-api:4.0.4 (10 constraints: 7b9def70)
 jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
-jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (18 constraints: fe4212ce)
+jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (19 constraints: 0348c6c3)
 jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.1 (6 constraints: 8059c3f0)ueu(88d243e6231bf013a9b1000fe2a4b2d0de3bc699}(sha(88d243e6231bf013a9b1000fe2a4b2d0de3bc699node_idEC_kwDOAjP5fdoAKDg4ZDI0M2U2MjMxYmYwMTNhOWIxMDAwZmUyYTRiMmQwZGUzYmM2OTkcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-14T16:02:12Zu	committer}(jB  
Sam KramerjB  skramer@palantir.comjB  2023-04-14T18:19:27Zumessagestashtree}(jB  (7c7c66d567177631a64eb64beb0ec8e42f279da3url`https://api.github.com/repos/palantir/atlasdb/git/trees/7c7c66d567177631a64eb64beb0ec8e42f279da3ujB  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/88d243e6231bf013a9b1000fe2a4b2d0de3bc699
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ5mS8ACgkQmPPOpKR4
XS1yyQgAvHxRfhJtkHGgv2J26ewrDLTD9bQjmhmLmc+MiOvy88cuMgpPPBii7nGW
z+qOuXA8FG/0Y2OrY8OK8Bs76ZX1Q/LYV1tNYtR49ZNv1NEaH07ltm0WEv2sPTIn
sYMb1BKVds0VzRGzbA8yMrxqFS2B9mQeKNaKCrwfEv62BbKtMDDsRo/5pdLeRrKn
TCLlCRS75b2A7a5d50z9EoF8S4skYyYe2kffE0jPdzyNgpfA9DU5YquPdNC4fF0z
ZwJSM0ibzNbdfhdShziGWOR5+7yjEmg/v/seQPnxAwaPsmsg5A6NC/iu+4CSrm5A
MWu2a0jAAzU5Ddi/Gpe6s5SGTlJfEw==
=bOf6
-----END PGP SIGNATURE-----payloadtree 7c7c66d567177631a64eb64beb0ec8e42f279da3
parent 1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9
author Sam Kramer <skramer@palantir.com> 1681488132 +0100
committer Sam Kramer <skramer@palantir.com> 1681496367 +0100

stash
uujB  ^https://api.github.com/repos/palantir/atlasdb/commits/88d243e6231bf013a9b1000fe2a4b2d0de3bc699html_urlShttps://github.com/palantir/atlasdb/commit/88d243e6231bf013a9b1000fe2a4b2d0de3bc699comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/88d243e6231bf013a9b1000fe2a4b2d0de3bc699/commentsjB  }(login
Sam-KrameridJ^2_ jB  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jB  'https://api.github.com/users/Sam-KramerjB  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujB  }(jB  
Sam-KramerjC  J^2_ jB  MDQ6VXNlcjYyMzg4MTQ=jC  3https://avatars.githubusercontent.com/u/6238814?v=4jC  h5jB  'https://api.github.com/users/Sam-KramerjB  https://github.com/Sam-KramerjC  1https://api.github.com/users/Sam-Kramer/followersj
C  >https://api.github.com/users/Sam-Kramer/following{/other_user}jC  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jC  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jC  5https://api.github.com/users/Sam-Kramer/subscriptionsjC  ,https://api.github.com/users/Sam-Kramer/orgsjC  -https://api.github.com/users/Sam-Kramer/reposjC  8https://api.github.com/users/Sam-Kramer/events{/privacy}jC  7https://api.github.com/users/Sam-Kramer/received_eventsjC  UserjC  uparents]}(jB  (1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9jB  ^https://api.github.com/repos/palantir/atlasdb/commits/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9jB  Shttps://github.com/palantir/atlasdb/commit/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9uastats}(totalKC	additionsK9	deletionsK
ufiles](}(jB  (fbb5322ae664441b1bedd54893aa053b93e91edefilenamecatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowGroup.javastatusaddedj6C  K#j7C  K changesK#blob_urlhttps://github.com/palantir/atlasdb/blob/88d243e6231bf013a9b1000fe2a4b2d0de3bc699/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowGroup.javaraw_urlhttps://github.com/palantir/atlasdb/raw/88d243e6231bf013a9b1000fe2a4b2d0de3bc699/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowGroup.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowGroup.java?ref=88d243e6231bf013a9b1000fe2a4b2d0de3bc699patchX  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WorkflowGroup<WorkflowTypeT extends Workflow> {
+    @Value.Parameter
+    WorkflowTypeT workflow();
+
+    @Value.Parameter
+    List<InvariantReporter<?>> invariants();
+
+    static <WorkflowTypeT extends Workflow> WorkflowGroup<WorkflowTypeT> of(
+            WorkflowTypeT workflow, List<InvariantReporter<?>> invariants) {
+        return ImmutableWorkflowGroup.of(workflow, invariants);
+    }
+}u}(jB  (b671bf1ce79398ada027bd9424a2ea8eb542e89bj<C  datlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowRunner.javaj>C  modifiedj6C  Kj7C  Kj@C  KjAC  https://github.com/palantir/atlasdb/blob/88d243e6231bf013a9b1000fe2a4b2d0de3bc699/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowRunner.javajCC  https://github.com/palantir/atlasdb/raw/88d243e6231bf013a9b1000fe2a4b2d0de3bc699/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowRunner.javajEC  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowRunner.java?ref=88d243e6231bf013a9b1000fe2a4b2d0de3bc699jGC  X  @@ -16,7 +16,6 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import com.palantir.atlasdb.workload.invariant.InvariantReporter;
 import java.util.List;
 
 /**
@@ -26,5 +25,5 @@
  * rather than biasing towards the present case (just once).
  */
 public interface WorkflowRunner<WorkflowTypeT extends Workflow> {
-    void run(WorkflowTypeT workflow, List<InvariantReporter<?>> invariantReporters);
+    void run(List<WorkflowGroup<Workflow>> workflowGroups);
 }u}(jB  (01d9fae6a408dad5ed23ee9d847ff703deb22882j<C  hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowRunner.javaj>C  modifiedj6C  Kj7C  Kj@C  KjAC  https://github.com/palantir/atlasdb/blob/88d243e6231bf013a9b1000fe2a4b2d0de3bc699/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.javajCC  https://github.com/palantir/atlasdb/raw/88d243e6231bf013a9b1000fe2a4b2d0de3bc699/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.javajEC  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.java?ref=88d243e6231bf013a9b1000fe2a4b2d0de3bc699jGC  X	  @@ -16,31 +16,44 @@
 
 package com.palantir.atlasdb.workload.runner;
 
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
 import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowGroup;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowRunner;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
+import java.util.Map;
+import one.util.streamex.StreamEx;
 
-public enum AntithesisWorkflowRunner implements WorkflowRunner<Workflow> {
-    INSTANCE;
-
+public final class AntithesisWorkflowRunner implements WorkflowRunner<Workflow> {
     private static final SafeLogger log = SafeLoggerFactory.get(AntithesisWorkflowRunner.class);
+    private final ListeningExecutorService listeningExecutorService;
+
+    public AntithesisWorkflowRunner(ListeningExecutorService listeningExecutorService) {
+        this.listeningExecutorService = listeningExecutorService;
+    }
 
     @Override
-    public void run(Workflow workflow, List<InvariantReporter<?>> invariants) {
-        WorkflowHistory workflowHistory = workflow.run();
+    public void run(List<WorkflowGroup<Workflow>> workflowGroups) {
+        Map<ListenableFuture<WorkflowHistory>, List<InvariantReporter<?>>> workflowGroupFutures = StreamEx.of(
+                        workflowGroups)
+                .mapToEntry(WorkflowGroup::workflow, WorkflowGroup::invariants)
+                .mapKeys(workflow -> listeningExecutorService.submit(workflow::run))
+                .toMap();
+
         log.info("antithesis: stop_faults");
-        invariants.forEach(reporter -> {
+        workflowGroupFutures.forEach((workflowHistory, invariants) -> invariants.forEach(reporter -> {
             try {
                 reporter.report(workflowHistory);
             } catch (RuntimeException e) {
                 log.error("Caught an exception when running and reporting an invariant.", e);
             }
-        });
-        log.info("Dumping transaction log {}", SafeArg.of("transactionLog", workflowHistory.history()));
+            log.info("Dumping transaction log {}", SafeArg.of("transactionLog", workflowHistory.history()));
+        }));
     }
 }ueu(58d00b30b4de38edcfa20545735818a1f663e799}(sha(58d00b30b4de38edcfa20545735818a1f663e799node_idEC_kwDOAjP5fdoAKDU4ZDAwYjMwYjRkZTM4ZWRjZmEyMDU0NTczNTgxOGExZjY2M2U3OTkcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-28T16:19:45Zu	committer}(jcC  Jeremy KongjeC  jkong@palantir.comjgC  2023-02-28T16:19:45Zumessagerevapitree}(j[C  (f0e869a73ca327efd836dc9dfd09fdbbd714af8burl`https://api.github.com/repos/palantir/atlasdb/git/trees/f0e869a73ca327efd836dc9dfd09fdbbd714af8bujsC  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/58d00b30b4de38edcfa20545735818a1f663e799
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmP+KaEACgkQTLdFKain
zjy4xwf/TDD051pY4qL95vS4d7KbvQtiFcuH1W/pynMmLO662dzMqNfdg5pwLEey
veeBQD9FO/lS+keadZxSdBeyChLhMYEtS59EedkvskZvmsR2fj7DE88d2S/91r08
yTPXQ0igeGGqnDQ6ouEgY9uzvVMuz27YwACmDaWPTQL4FydEQTqYWbTjrM6ify2S
9fvPHhIakqL+xy8DK+Yq94HvgeDSjyEu7YlvoPZgfyu9kcz5bJob5GD1fbergHVx
V3k5akNPZrwn1V3nba8jqf1Eu1dezypqoavSzLzyUJjXzfZYmMAzdKtVHIbSXnRx
l/NQyGZutNLVYgemHyUZmYit8SWXLg==
=DRCZ
-----END PGP SIGNATURE-----payloadtree f0e869a73ca327efd836dc9dfd09fdbbd714af8b
parent 233ed16c5431fed0a85878f170f3093d2776e1b8
author Jeremy Kong <jkong@palantir.com> 1677601185 +0000
committer Jeremy Kong <jkong@palantir.com> 1677601185 +0000

revapi
uujsC  ^https://api.github.com/repos/palantir/atlasdb/commits/58d00b30b4de38edcfa20545735818a1f663e799html_urlShttps://github.com/palantir/atlasdb/commit/58d00b30b4de38edcfa20545735818a1f663e799comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/58d00b30b4de38edcfa20545735818a1f663e799/commentsjaC  }(login
jeremyk-91idJZ j]C  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jsC  'https://api.github.com/users/jeremyk-91jC  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujiC  }(jC  
jeremyk-91jC  JZ j]C  MDQ6VXNlcjU5NTU1MTA=jC  3https://avatars.githubusercontent.com/u/5955510?v=4jC  h5jsC  'https://api.github.com/users/jeremyk-91jC  https://github.com/jeremyk-91jC  1https://api.github.com/users/jeremyk-91/followersjC  >https://api.github.com/users/jeremyk-91/following{/other_user}jC  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jC  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jC  5https://api.github.com/users/jeremyk-91/subscriptionsjC  ,https://api.github.com/users/jeremyk-91/orgsjC  -https://api.github.com/users/jeremyk-91/reposjC  8https://api.github.com/users/jeremyk-91/events{/privacy}jC  7https://api.github.com/users/jeremyk-91/received_eventsjC  UserjC  uparents]}(j[C  (233ed16c5431fed0a85878f170f3093d2776e1b8jsC  ^https://api.github.com/repos/palantir/atlasdb/commits/233ed16c5431fed0a85878f170f3093d2776e1b8jC  Shttps://github.com/palantir/atlasdb/commit/233ed16c5431fed0a85878f170f3093d2776e1b8uastats}(totalK	additionsK	deletionsK ufiles]}(j[C  (1fa864867f27a9845ae246ee67ceca75bed1e629filename.palantir/revapi.ymlstatusmodifiedjC  KjC  K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/58d00b30b4de38edcfa20545735818a1f663e799/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/58d00b30b4de38edcfa20545735818a1f663e799/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=58d00b30b4de38edcfa20545735818a1f663e799patchXx  @@ -69,3 +69,29 @@ acceptedBreaks:
         \ com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig, com.palantir.refreshable.Refreshable<com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig>,\
         \ com.palantir.atlasdb.keyvalue.cassandra.Blacklist, com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraClientPoolMetrics)"
       justification: "Removing unused ABR code"
+  "0.801.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter java.util.Set<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraTopologyValidator::getNewHostsWithInconsistentTopologiesAndRetry(===java.util.Set<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>===,\
+        \ java.util.Map<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer>,\
+        \ java.time.Duration, java.time.Duration)"
+      new: "parameter java.util.Set<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraTopologyValidator::getNewHostsWithInconsistentTopologiesAndRetry(===java.util.Map<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin>===, java.util.Map<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer>,\
+        \ java.time.Duration, java.time.Duration)"
+      justification: "Internal Cassandra KVS APIs"
+    - code: "java.method.returnTypeChanged"
+      old: "method com.google.common.collect.ImmutableSet<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>\
+        \ com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::getCurrentServerListFromConfig()"
+      new: "method com.google.common.collect.ImmutableMap<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin> com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::getCurrentServerListFromConfig()"
+      justification: "Internal Cassandra KVS APIs"
+    - code: "java.method.returnTypeChanged"
+      old: "method com.google.common.collect.ImmutableSet<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>\
+        \ com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::refreshTokenRangesAndGetServers()"
+      new: "method com.google.common.collect.ImmutableMap<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin> com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::refreshTokenRangesAndGetServers()"
+      justification: "Internal Cassandra KVS APIs"uau(0fd7eb2ee28662c5cba00f8d21a79d6bc9e25916}(sha(0fd7eb2ee28662c5cba00f8d21a79d6bc9e25916node_idEC_kwDOAjP5fdoAKDBmZDdlYjJlZTI4NjYyYzVjYmEwMGY4ZDIxYTc5ZDZiYzllMjU5MTYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-15T18:52:18Zu	committer}(jC  Jeremy KongjC  jkong@palantir.comjC  2023-06-15T18:52:18Zumessage2even the best laid plans of mice and men go astraytree}(jC  (25b244d26b43bf61cf850594efdf4661f7b10166url`https://api.github.com/repos/palantir/atlasdb/git/trees/25b244d26b43bf61cf850594efdf4661f7b10166ujC  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0fd7eb2ee28662c5cba00f8d21a79d6bc9e25916
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSLXeIACgkQTLdFKain
zjzjbwgA3DbvrmeLcFZrl8BkYJRm6v6Rht6O4Pbz/peYRpgrT7uRTvStYqeN/yYn
e4bNGMmuSaDTp8LQb4U3ulbGHTjRsn+0cqwDeYn6evsANXTA5jy8GmSQZeMSOCkP
RkO9Fyf8JmA9f8KCiy9KjsXAqVi/NItIJHJCGIpJ5P/vGLjYMW24L2WS9hg6XFbA
+tOid4aioQXqrKt21I20jCAS6ZkShahApp35et1zPzX2hqBjY9HubBGLbdUqRwPP
mN9W9RgHOLjx/cCSR6xCMSIMP7udpe+WT2o6uftO/nj2HhMKUOVGDGRaaBAP26gR
2QPjwPf3CWed7ybdcJ4zogfLMIq1hQ==
=xRex
-----END PGP SIGNATURE-----payloadX  tree 25b244d26b43bf61cf850594efdf4661f7b10166
parent 9bc8d9d9214b4d9ba19ae58767d4bf1bd790ef91
author Jeremy Kong <jkong@palantir.com> 1686855138 +0800
committer Jeremy Kong <jkong@palantir.com> 1686855138 +0800

even the best laid plans of mice and men go astray
uujC  ^https://api.github.com/repos/palantir/atlasdb/commits/0fd7eb2ee28662c5cba00f8d21a79d6bc9e25916html_urlShttps://github.com/palantir/atlasdb/commit/0fd7eb2ee28662c5cba00f8d21a79d6bc9e25916comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0fd7eb2ee28662c5cba00f8d21a79d6bc9e25916/commentsjC  }(login
jeremyk-91idJZ jC  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jC  'https://api.github.com/users/jeremyk-91jC  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujC  }(jC  
jeremyk-91jC  JZ jC  MDQ6VXNlcjU5NTU1MTA=jD  3https://avatars.githubusercontent.com/u/5955510?v=4jD  h5jC  'https://api.github.com/users/jeremyk-91jC  https://github.com/jeremyk-91jD  1https://api.github.com/users/jeremyk-91/followersjD  >https://api.github.com/users/jeremyk-91/following{/other_user}j
D  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jD  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jD  5https://api.github.com/users/jeremyk-91/subscriptionsjD  ,https://api.github.com/users/jeremyk-91/orgsjD  -https://api.github.com/users/jeremyk-91/reposjD  8https://api.github.com/users/jeremyk-91/events{/privacy}jD  7https://api.github.com/users/jeremyk-91/received_eventsjD  UserjD  uparents]}(jC  (9bc8d9d9214b4d9ba19ae58767d4bf1bd790ef91jC  ^https://api.github.com/repos/palantir/atlasdb/commits/9bc8d9d9214b4d9ba19ae58767d4bf1bd790ef91jC  Shttps://github.com/palantir/atlasdb/commit/9bc8d9d9214b4d9ba19ae58767d4bf1bd790ef91uastats}(totalKf	additionsK1	deletionsK5ufiles](}(jC  (438bc5bf9de62ffe0f2a7f9122c19ff9ee57c5d7filenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj4D  Kj5D  KchangesK)blob_urlhttps://github.com/palantir/atlasdb/blob/0fd7eb2ee28662c5cba00f8d21a79d6bc9e25916/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0fd7eb2ee28662c5cba00f8d21a79d6bc9e25916/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=0fd7eb2ee28662c5cba00f8d21a79d6bc9e25916patchX  @@ -34,9 +34,7 @@
 import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
-import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
-import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
@@ -146,7 +144,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
 
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
-                .run(createSingleRowTwoCellsWorkflowValidator(transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()));
+                .run(createSingleRowTwoCellsWorkflowValidator(
+                        transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -287,24 +286,24 @@ private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator
     //                .build();
     //    }
 
-//    private WorkflowAndInvariants<Workflow> createRandomWorkflow(
-//            AtlasDbTransactionStoreFactory transactionStoreFactory,
-//            RandomWorkflowConfiguration workflowConfig,
-//            LifecycleEnvironment lifecycle) {
-//        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RandomWorkflows.class);
-//        TransactionStore transactionStore = transactionStoreFactory.create(
-//                Map.of(
-//                        workflowConfig.tableConfiguration().tableName(),
-//                        workflowConfig.tableConfiguration().isolationLevel()),
-//                Set.of());
-//        return WorkflowAndInvariants.builder()
-//                .workflow(RandomWorkflows.create(
-//                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
-//                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
-//                        RandomWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
-//                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
-//                .build();
-//    }
+    //    private WorkflowAndInvariants<Workflow> createRandomWorkflow(
+    //            AtlasDbTransactionStoreFactory transactionStoreFactory,
+    //            RandomWorkflowConfiguration workflowConfig,
+    //            LifecycleEnvironment lifecycle) {
+    //        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RandomWorkflows.class);
+    //        TransactionStore transactionStore = transactionStoreFactory.create(
+    //                Map.of(
+    //                        workflowConfig.tableConfiguration().tableName(),
+    //                        workflowConfig.tableConfiguration().isolationLevel()),
+    //                Set.of());
+    //        return WorkflowAndInvariants.builder()
+    //                .workflow(RandomWorkflows.create(
+    //                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+    //                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+    //                        RandomWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+    //                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+    //                .build();
+    //    }
 
     @VisibleForTesting
     CountDownLatch workflowsRanLatch() {u}(jC  (f95cbc1a37131b261e9a22def5d47d0fefb66147j:D  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javaj<D  modifiedj4D  Kj5D  Kj>D  Kj?D  https://github.com/palantir/atlasdb/blob/0fd7eb2ee28662c5cba00f8d21a79d6bc9e25916/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javajAD  https://github.com/palantir/atlasdb/raw/0fd7eb2ee28662c5cba00f8d21a79d6bc9e25916/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javajCD  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=0fd7eb2ee28662c5cba00f8d21a79d6bc9e25916jED  X  @@ -23,7 +23,6 @@
 import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
-import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
@@ -65,7 +64,8 @@ public static Workflow createSingleRowTwoCell(
             InteractiveTransactionStore store,
             SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsWorkflowConfiguration,
             ListeningExecutorService executionExecutor) {
-        store.readWrite(txn -> txn.write(singleRowTwoCellsWorkflowConfiguration.tableConfiguration().tableName(), FIRST_CELL, 1));
+        store.readWrite(txn -> txn.write(
+                singleRowTwoCellsWorkflowConfiguration.tableConfiguration().tableName(), FIRST_CELL, 1));
         return DefaultWorkflow.create(
                 store,
                 (txnStore, index) -> run(txnStore, index, singleRowTwoCellsWorkflowConfiguration),
@@ -74,18 +74,19 @@ public static Workflow createSingleRowTwoCell(
     }
 
     private static Optional<WitnessedTransaction> run(
-            InteractiveTransactionStore store, int taskIndex, SingleRowTwoCellsWorkflowConfiguration workflowConfiguration) {
+            InteractiveTransactionStore store,
+            int taskIndex,
+            SingleRowTwoCellsWorkflowConfiguration workflowConfiguration) {
         workflowConfiguration.transactionRateLimiter().acquire();
         Optional<WitnessedTransaction> maybeTransaction = store.readWrite(txn -> {
             List<ColumnValue> values = txn.getRowColumnRange(
                     workflowConfiguration.tableConfiguration().tableName(),
                     SINGLE_ROW,
                     ColumnRangeSelection.builder().build());
-            Map<Integer, Integer> tableState = values.stream()
-                    .collect(Collectors.toMap(ColumnValue::column, ColumnValue::value));
+            Map<Integer, Integer> tableState =
+                    values.stream().collect(Collectors.toMap(ColumnValue::column, ColumnValue::value));
             if (tableState.size() != 1) {
-                log.error("Wrong number of values found in table state {}",
-                        SafeArg.of("tableState", tableState));
+                log.error("Wrong number of values found in table state {}", SafeArg.of("tableState", tableState));
             }
 
             if (tableState.containsKey(FIRST_COLUMN)) {
@@ -97,9 +98,9 @@ private static Optional<WitnessedTransaction> run(
             }
         });
 
-//        List<TransactionAction> transactionActions = createTransactionActions(
-//                taskIndex, workflowConfiguration.tableConfiguration().tableName());
-//        Optional<WitnessedTransaction> maybeTransaction = store.readWrite(transactionActions);
+        //        List<TransactionAction> transactionActions = createTransactionActions(
+        //                taskIndex, workflowConfiguration.tableConfiguration().tableName());
+        //        Optional<WitnessedTransaction> maybeTransaction = store.readWrite(transactionActions);
         maybeTransaction.ifPresent(_transaction -> log.info(
                 "Transaction successfully committed for single row two cells workflow for task index {}.",
                 SafeArg.of("taskIndex", taskIndex)));
@@ -122,11 +123,11 @@ static boolean shouldWriteToFirstCell(int taskIndex) {
     private static List<TransactionAction> createCellUpdateActions(int taskIndex, String tableName) {
         return shouldWriteToFirstCell(taskIndex)
                 ? ImmutableList.of(
-                WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
-                DeleteTransactionAction.of(tableName, SECOND_CELL))
+                        WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
+                        DeleteTransactionAction.of(tableName, SECOND_CELL))
                 : ImmutableList.of(
-                DeleteTransactionAction.of(tableName, FIRST_CELL),
-                WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
+                        DeleteTransactionAction.of(tableName, FIRST_CELL),
+                        WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
     }
 
     private static List<TransactionAction> createCellReadActions(String tableName) {u}(jC  (e9aa32bd94e8782ad975eeb254f7a50c0343a8b9j:D  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javaj<D  modifiedj4D  Kj5D  Kj>D  K j?D  https://github.com/palantir/atlasdb/blob/0fd7eb2ee28662c5cba00f8d21a79d6bc9e25916/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javajAD  https://github.com/palantir/atlasdb/raw/0fd7eb2ee28662c5cba00f8d21a79d6bc9e25916/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javajCD  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=0fd7eb2ee28662c5cba00f8d21a79d6bc9e25916jED  X  @@ -20,24 +20,18 @@
 
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Iterables;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
-import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.common.concurrent.PTExecutors;
-import java.util.Optional;
 import org.junit.Test;
 
 public class SingleRowTwoCellsWorkflowsTest {
@@ -120,17 +114,19 @@ public void workflowHistoryPreservesStoreAndCapturesWitnessedActions() {
         assertThat(history.transactionStore())
                 .as("should return a read only tranasction store")
                 .isInstanceOf(ReadOnlyTransactionStore.class);
-//        assertThat(Iterables.getOnlyElement(history.history()).actions())
-//                .containsExactly(
-//                        WitnessedReadTransactionAction.of(
-//                                TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.empty()),
-//                        WitnessedReadTransactionAction.of(
-//                                TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()),
-//                        WitnessedWriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
-//                        WitnessedDeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
-//                        WitnessedReadTransactionAction.of(
-//                                TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.of(0)),
-//                        WitnessedReadTransactionAction.of(
-//                                TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()));
+        //        assertThat(Iterables.getOnlyElement(history.history()).actions())
+        //                .containsExactly(
+        //                        WitnessedReadTransactionAction.of(
+        //                                TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.empty()),
+        //                        WitnessedReadTransactionAction.of(
+        //                                TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()),
+        //                        WitnessedWriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL,
+        // 0),
+        //                        WitnessedDeleteTransactionAction.of(TABLE_NAME,
+        // SingleRowTwoCellsWorkflows.SECOND_CELL),
+        //                        WitnessedReadTransactionAction.of(
+        //                                TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.of(0)),
+        //                        WitnessedReadTransactionAction.of(
+        //                                TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()));
     }
 }ueu(0e84f4bfca9e4d561c19216b0a459fcac0d8cbd7}(sha(0e84f4bfca9e4d561c19216b0a459fcac0d8cbd7node_idEC_kwDOAjP5fdoAKDBlODRmNGJmY2E5ZTRkNTYxYzE5MjE2YjBhNDU5ZmNhYzBkOGNiZDccommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-25T19:47:04Zu	committer}(jaD  
Ahmed AlouanejcD  aalouane@palantir.comjeD  2023-05-25T19:47:04Zumessagespotlesstree}(jYD  (869ad9fc01d40510617bba9d3c627eb207448d0durl`https://api.github.com/repos/palantir/atlasdb/git/trees/869ad9fc01d40510617bba9d3c627eb207448d0dujqD  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0e84f4bfca9e4d561c19216b0a459fcac0d8cbd7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRvuzgACgkQPlMHVIT1
yhpCnwf/SDQeJt5j9OtCxdo8ZZvPsBwZk7LsCtcdHwQyTMr657HZGm3PnnfmSNOz
bkTbpWWylbWXliqlnv4hwUD6AJPqNYt6NnUR3UJQu+VS4mmtxs5qTbl/cspv0kE6
xs/azMOYDIsZSDKa/YZ4KOfMjpz+26fGAsqYXwaC2R7kS+aYw9hO2rr7gkXvSqEP
XpmHffSV+L665a7KZPslvkvOQBILplaiWoB+4UG+P0sil3glhfUdE3fDULCsihLW
f0jayehToyomcK0J31SqzgFt39FPiQ7oy97yeSuIIcbfT6Lh8u2u86PEd2Gscp1z
zZrGXt008ZlQHt9FrbEd3aFV64Jqcg==
=V2Ps
-----END PGP SIGNATURE-----payloadtree 869ad9fc01d40510617bba9d3c627eb207448d0d
parent 4e6c9cae810656d2f94ab2c98ce0c45a41b4bfd5
author Ahmed Alouane <aalouane@palantir.com> 1685044024 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1685044024 +0100

spotless
uujqD  ^https://api.github.com/repos/palantir/atlasdb/commits/0e84f4bfca9e4d561c19216b0a459fcac0d8cbd7html_urlShttps://github.com/palantir/atlasdb/commit/0e84f4bfca9e4d561c19216b0a459fcac0d8cbd7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0e84f4bfca9e4d561c19216b0a459fcac0d8cbd7/commentsj_D  }(loginergo14idJj[D  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jqD  #https://api.github.com/users/ergo14jD  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujgD  }(jD  ergo14jD  Jj[D  MDQ6VXNlcjMwOTAzNzM2jD  4https://avatars.githubusercontent.com/u/30903736?v=4jD  h5jqD  #https://api.github.com/users/ergo14jD  https://github.com/ergo14jD  -https://api.github.com/users/ergo14/followersjD  :https://api.github.com/users/ergo14/following{/other_user}jD  3https://api.github.com/users/ergo14/gists{/gist_id}jD  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jD  1https://api.github.com/users/ergo14/subscriptionsjD  (https://api.github.com/users/ergo14/orgsjD  )https://api.github.com/users/ergo14/reposjD  4https://api.github.com/users/ergo14/events{/privacy}jD  3https://api.github.com/users/ergo14/received_eventsjD  UserjD  uparents]}(jYD  (4e6c9cae810656d2f94ab2c98ce0c45a41b4bfd5jqD  ^https://api.github.com/repos/palantir/atlasdb/commits/4e6c9cae810656d2f94ab2c98ce0c45a41b4bfd5jD  Shttps://github.com/palantir/atlasdb/commit/4e6c9cae810656d2f94ab2c98ce0c45a41b4bfd5uastats}(totalK	additionsK 	deletionsKufiles](}(jYD  (c8823c29da58eca2fbdcdf7fc98f8ab892c82d54filenamematlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javastatusmodifiedjD  K jD  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/0e84f4bfca9e4d561c19216b0a459fcac0d8cbd7/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0e84f4bfca9e4d561c19216b0a459fcac0d8cbd7/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=0e84f4bfca9e4d561c19216b0a459fcac0d8cbd7patchX1  @@ -17,19 +17,15 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.Mockito.spy;
-import static org.mockito.Mockito.when;
 
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.util.MetricsManagers;
-import jdk.jfr.SettingDefinition;
 import org.junit.Before;
 import org.junit.Test;
 import org.junit.runner.RunWith;
-import org.mockito.Mock;
 import org.mockito.junit.MockitoJUnitRunner;
 
 @RunWith(MockitoJUnitRunner.class)u}(jYD  (18e3bf26bf01f5384536788e145f8e8f37200656jD  latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javajD  modifiedjD  K jD  KjD  KjD  https://github.com/palantir/atlasdb/blob/0e84f4bfca9e4d561c19216b0a459fcac0d8cbd7/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javajD  https://github.com/palantir/atlasdb/raw/0e84f4bfca9e4d561c19216b0a459fcac0d8cbd7/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javajD  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=0e84f4bfca9e4d561c19216b0a459fcac0d8cbd7jD  @@ -59,7 +59,6 @@
 import java.util.Optional;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Executors;
-import java.util.stream.Collectors;
 import org.junit.Before;
 import org.junit.ClassRule;
 import org.junit.Test;ueu(08f8e4b2397f3e602a2df2595043e0aa2b9cf328}(sha(08f8e4b2397f3e602a2df2595043e0aa2b9cf328node_idEC_kwDOAjP5fdoAKDA4ZjhlNGIyMzk3ZjNlNjAyYTJkZjI1OTUwNDNlMGFhMmI5Y2YzMjgcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-28T15:11:14Zu	committer}(jD  Jeremy KongjD  jkong@palantir.comjD  2023-04-28T15:11:14Zumessageslow txn loggertree}(jD  (9c841288954aa4a5b25363b07a693b5612755b94url`https://api.github.com/repos/palantir/atlasdb/git/trees/9c841288954aa4a5b25363b07a693b5612755b94ujD  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/08f8e4b2397f3e602a2df2595043e0aa2b9cf328
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRL4hIACgkQTLdFKain
zjwJEAf+L7lv+EjeCxu6yGFJqjeCCMjPeMEn0oSgREk0Ng8UEeFxuMUOLCKt7UgB
RhNw5qYn09qT+uZb5WoOW1hagrPkGVABu6kPrc+uFRlpMMrBnx+gpukVPzgCc+1h
0xelX7Qk5FrZkC9cXEXTmKRA7ORLOo8pzcsWHoLkAyN0jj/ehEx/BrhF0nXrQLzj
ERsf0GgMXx0XEwwTBUdz1O6lRbEezxe5TIRrHsb+W5dKz4jhzW2IJwRThvglps2H
2cg/0UXbaleAso2R0q2xctihjQrgYeAAX433uM/KIJmtosO9jPOPOeZsB7FQj0vR
ZnLdDijMmmUwCLIaccT0n0sP4Zy83A==
=fyc2
-----END PGP SIGNATURE-----payloadtree 9c841288954aa4a5b25363b07a693b5612755b94
parent d37428dcf5c3aaf1e839b30645d1d8822831efa8
author Jeremy Kong <jkong@palantir.com> 1682694674 +0100
committer Jeremy Kong <jkong@palantir.com> 1682694674 +0100

slow txn logger
uujD  ^https://api.github.com/repos/palantir/atlasdb/commits/08f8e4b2397f3e602a2df2595043e0aa2b9cf328html_urlShttps://github.com/palantir/atlasdb/commit/08f8e4b2397f3e602a2df2595043e0aa2b9cf328comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/08f8e4b2397f3e602a2df2595043e0aa2b9cf328/commentsjD  }(login
jeremyk-91idJZ jD  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jD  'https://api.github.com/users/jeremyk-91jD  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujD  }(jE  
jeremyk-91jE  JZ jD  MDQ6VXNlcjU5NTU1MTA=jE  3https://avatars.githubusercontent.com/u/5955510?v=4j	E  h5jD  'https://api.github.com/users/jeremyk-91jD  https://github.com/jeremyk-91jE  1https://api.github.com/users/jeremyk-91/followersjE  >https://api.github.com/users/jeremyk-91/following{/other_user}jE  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jE  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jE  5https://api.github.com/users/jeremyk-91/subscriptionsjE  ,https://api.github.com/users/jeremyk-91/orgsjE  -https://api.github.com/users/jeremyk-91/reposjE  8https://api.github.com/users/jeremyk-91/events{/privacy}jE  7https://api.github.com/users/jeremyk-91/received_eventsjE  Userj E  uparents]}(jD  (d37428dcf5c3aaf1e839b30645d1d8822831efa8jD  ^https://api.github.com/repos/palantir/atlasdb/commits/d37428dcf5c3aaf1e839b30645d1d8822831efa8jD  Shttps://github.com/palantir/atlasdb/commit/d37428dcf5c3aaf1e839b30645d1d8822831efa8uastats}(totalK		additionsK	deletionsKufiles]}(jD  (888a65f08ff60b753cf0c5cfe2e52d472ca4a56afilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj:E  Kj;E  KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/08f8e4b2397f3e602a2df2595043e0aa2b9cf328/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/08f8e4b2397f3e602a2df2595043e0aa2b9cf328/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=08f8e4b2397f3e602a2df2595043e0aa2b9cf328patchX  @@ -1892,12 +1892,13 @@ public void commitWithoutCallbacks(TransactionService transactionService) {
 
             checkConstraints();
             commitWrites(transactionService);
-            if (perfLogger.isDebugEnabled()) {
-                long transactionMillis = TimeUnit.NANOSECONDS.toMillis(transactionTimerContext.stop());
-                perfLogger.debug(
+            long transactionMillis = TimeUnit.NANOSECONDS.toMillis(transactionTimerContext.stop());
+            if (transactionMillis >= Duration.ofMinutes(1).toMillis()) {
+                log.info(
                         "Committed transaction {} in {}ms",
                         SafeArg.of("startTimestamp", getStartTimestamp()),
-                        SafeArg.of("transactionTimeMillis", transactionMillis));
+                        SafeArg.of("transactionTimeMillis", transactionMillis),
+                        new SafeRuntimeException("I exist to show you the stack trace"));
             }
             success = true;
         } finally {uau(0fdf162aa062a21ae0c2327997a53ef91c7383ed}(sha(0fdf162aa062a21ae0c2327997a53ef91c7383ednode_idEC_kwDOAjP5fdoAKDBmZGYxNjJhYTA2MmEyMWFlMGMyMzI3OTk3YTUzZWY5MWM3MzgzZWQcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T14:30:08Zu	committer}(jWE  
Ahmed AlouanejYE  aalouane@palantir.comj[E  2023-05-15T14:30:08ZumessageJMerge branch 'tlmetexxxxx' of github.com:palantir/atlasdb into tlmetexxxxxtree}(jOE  (d2f7a5ff202e9c8be14ac83d785cce0cc99c6455url`https://api.github.com/repos/palantir/atlasdb/git/trees/d2f7a5ff202e9c8be14ac83d785cce0cc99c6455ujgE  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0fdf162aa062a21ae0c2327997a53ef91c7383ed
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiQhAACgkQPlMHVIT1
yhpANggAnyH2Et2MhzMgvi0pGmmCYMPyrUb2M4PorXgpgguiFYziXX8Xw6VSinvv
jXtP5yKC4QplcE9UTTGMcXGzn68dz03NuJgEvV6BsuAWXHQ4rol0T8EZDDlTZBHD
M5xPGwO9y2Fute/WxFlqlLiz0YRYMENp4SxXvRrA2BRTI6PF0xEkZPWEQ/pneuwi
JEQpXw7Feckc1SMob7ayoh9HVPjF9/kXcBI73+B8Oaf1I/eFJ1lsots15saX+p0s
bIirXs5cMxeJOZ1J8jUOEuZnQrGQHCQC5eqZZk20/Rkb7VyP0XP22If9A+7nRRNc
iRMn6a/ZIAhW/umFEHaqeGVNy/S7yQ==
=atzp
-----END PGP SIGNATURE-----payloadXY  tree d2f7a5ff202e9c8be14ac83d785cce0cc99c6455
parent b37500f7c840d1dbc25072777aeb9a5fc0c30639
parent 498db690c29e4f86d2df02b0868bfed9bf90aca4
author Ahmed Alouane <aalouane@palantir.com> 1684161008 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684161008 +0100

Merge branch 'tlmetexxxxx' of github.com:palantir/atlasdb into tlmetexxxxx
uujgE  ^https://api.github.com/repos/palantir/atlasdb/commits/0fdf162aa062a21ae0c2327997a53ef91c7383edhtml_urlShttps://github.com/palantir/atlasdb/commit/0fdf162aa062a21ae0c2327997a53ef91c7383edcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0fdf162aa062a21ae0c2327997a53ef91c7383ed/commentsjUE  }(loginergo14idJjQE  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jgE  #https://api.github.com/users/ergo14juE  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj]E  }(jzE  ergo14j|E  JjQE  MDQ6VXNlcjMwOTAzNzM2j~E  4https://avatars.githubusercontent.com/u/30903736?v=4jE  h5jgE  #https://api.github.com/users/ergo14juE  https://github.com/ergo14jE  -https://api.github.com/users/ergo14/followersjE  :https://api.github.com/users/ergo14/following{/other_user}jE  3https://api.github.com/users/ergo14/gists{/gist_id}jE  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jE  1https://api.github.com/users/ergo14/subscriptionsjE  (https://api.github.com/users/ergo14/orgsjE  )https://api.github.com/users/ergo14/reposjE  4https://api.github.com/users/ergo14/events{/privacy}jE  3https://api.github.com/users/ergo14/received_eventsjE  UserjE  uparents](}(jOE  (b37500f7c840d1dbc25072777aeb9a5fc0c30639jgE  ^https://api.github.com/repos/palantir/atlasdb/commits/b37500f7c840d1dbc25072777aeb9a5fc0c30639juE  Shttps://github.com/palantir/atlasdb/commit/b37500f7c840d1dbc25072777aeb9a5fc0c30639u}(jOE  (498db690c29e4f86d2df02b0868bfed9bf90aca4jgE  ^https://api.github.com/repos/palantir/atlasdb/commits/498db690c29e4f86d2df02b0868bfed9bf90aca4juE  Shttps://github.com/palantir/atlasdb/commit/498db690c29e4f86d2df02b0868bfed9bf90aca4uestats}(totalK 	additionsK 	deletionsK ufiles]u(79b272629750fff0cfa1b8c925fc0ea49059b1c8}(sha(79b272629750fff0cfa1b8c925fc0ea49059b1c8node_idEC_kwDOAjP5fdoAKDc5YjI3MjYyOTc1MGZmZjBjZmExYjhjOTI1ZmMwZWE0OTA1OWIxYzgcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-28T23:16:26Zu	committer}(jE  
Ahmed AlouanejE  aalouane@palantir.comjE  2023-04-28T23:16:26Zumessageparalleltree}(jE  (d46f5135f424d12ab60d951eddbc0ed16e5aaf96url`https://api.github.com/repos/palantir/atlasdb/git/trees/d46f5135f424d12ab60d951eddbc0ed16e5aaf96ujE  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/79b272629750fff0cfa1b8c925fc0ea49059b1c8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRMU8oACgkQPlMHVIT1
yhrY5wgArreMCTAtYBpG294VGoHWPJgrnF1pPaQE38kPtgHdUGlJbnqSe75abIzr
iIU2nn1d8QBegQ0BortKGTgvqQLxbANisRPaa0C7LGoYvSvB+cwV3d0/ajxJYN9F
Bt+xNhyn8PvXVYyADCOZSPKH+hYN1mjVsKoqRiIpkC7CtZmHlgzv0Wf024r1saQ7
eXZEg13zrMpk2wbNFBZzt5w/12X9wtYC4TnqUNHjP0TpRxVqpHf8o+2AtO/DaJZB
l5WkaPLoxKcF1aIQ62Jgj1+QAtautFvwPwpXPtvG/+AmNnDUTh74ESjzC2O5As1W
oQ9r0STCy5XFBnWm1/dk/lhWtBx6pA==
=P/av
-----END PGP SIGNATURE-----payloadtree d46f5135f424d12ab60d951eddbc0ed16e5aaf96
parent 4d59f10f1e745f7523e23a8b418b3a05074d7132
author Ahmed Alouane <aalouane@palantir.com> 1682723786 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682723786 +0100

parallel
uujE  ^https://api.github.com/repos/palantir/atlasdb/commits/79b272629750fff0cfa1b8c925fc0ea49059b1c8html_urlShttps://github.com/palantir/atlasdb/commit/79b272629750fff0cfa1b8c925fc0ea49059b1c8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/79b272629750fff0cfa1b8c925fc0ea49059b1c8/commentsjE  }(loginergo14idJjE  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jE  #https://api.github.com/users/ergo14jE  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujE  }(jE  ergo14jE  JjE  MDQ6VXNlcjMwOTAzNzM2jE  4https://avatars.githubusercontent.com/u/30903736?v=4jE  h5jE  #https://api.github.com/users/ergo14jE  https://github.com/ergo14jE  -https://api.github.com/users/ergo14/followersjE  :https://api.github.com/users/ergo14/following{/other_user}jE  3https://api.github.com/users/ergo14/gists{/gist_id}jE  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jE  1https://api.github.com/users/ergo14/subscriptionsjE  (https://api.github.com/users/ergo14/orgsjE  )https://api.github.com/users/ergo14/reposjE  4https://api.github.com/users/ergo14/events{/privacy}jE  3https://api.github.com/users/ergo14/received_eventsjF  UserjF  uparents]}(jE  (4d59f10f1e745f7523e23a8b418b3a05074d7132jE  ^https://api.github.com/repos/palantir/atlasdb/commits/4d59f10f1e745f7523e23a8b418b3a05074d7132jE  Shttps://github.com/palantir/atlasdb/commit/4d59f10f1e745f7523e23a8b418b3a05074d7132uastats}(totalK	additionsK	deletionsKufiles](}(jE  (0fb2788e258a9f3c5cf6c796a81e9d8d8b01a132filename.circleci/config.ymlstatusmodifiedjF  KjF  KchangesK	blob_urlhhttps://github.com/palantir/atlasdb/blob/79b272629750fff0cfa1b8c925fc0ea49059b1c8/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/79b272629750fff0cfa1b8c925fc0ea49059b1c8/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=79b272629750fff0cfa1b8c925fc0ea49059b1c8patchX7  @@ -32,7 +32,9 @@ jobs:
           paths: [ . ]
 
   test:
-    parallelism: 14
+    parameters:
+      test_suite:
+        type: integer
     machine:
       image: ubuntu-2004:202111-02
     resource_class: xlarge
@@ -66,7 +68,7 @@ jobs:
               curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
               sudo ln -s /opt/java/zulu*/ /opt/java8
       - run:
-          command: ./scripts/circle-ci/run-circle-tests.sh
+          command: ./scripts/circle-ci/run-circle-tests.sh << parameters.test_suite >>
           no_output_timeout: 900
       - run: ./scripts/circle-ci/ensure-repo-clean.sh
       - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
@@ -138,6 +140,9 @@ workflows:
               only: /.*/
       - test:
           requires: [build]
+          matrix:
+            parameters:
+              test_suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
           filters:
             tags:
               only: /.*/u}(jE  (90568e275a43fac350195cc279c7584d8f7b00adj#F  %scripts/circle-ci/run-circle-tests.shj%F  modifiedjF  KjF  Kj'F  Kj(F  {https://github.com/palantir/atlasdb/blob/79b272629750fff0cfa1b8c925fc0ea49059b1c8/scripts%2Fcircle-ci%2Frun-circle-tests.shj*F  zhttps://github.com/palantir/atlasdb/raw/79b272629750fff0cfa1b8c925fc0ea49059b1c8/scripts%2Fcircle-ci%2Frun-circle-tests.shj,F  https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=79b272629750fff0cfa1b8c925fc0ea49059b1c8j.F  X  @@ -52,14 +52,14 @@ done
 
 # Short circuit the build if it's docs only
 if ./scripts/circle-ci/check-only-docs-changes.sh; then
-    if [ $CIRCLE_NODE_INDEX -eq 0 ]; then
+    if [ $1 -eq 0 ]; then
         checkDocsBuild
         exit $?
     fi
     exit 0
 fi
 
-if [ $CIRCLE_NODE_INDEX -eq 9 ] || [ $CIRCLE_NODE_INDEX -eq 10 ]; then
+if [ $1 -eq 9 ] || [ $1 -eq 10 ]; then
     printenv DOCKERHUB_PASSWORD | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
     # The oracle container is very large and takes a long time to pull.
     # If this image is not pulled here, the circle build usually times out.
@@ -71,7 +71,7 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
 # External builds have a 16gb limit.
-if [ "$CIRCLE_NODE_INDEX" -eq "13" ]; then
+if [ "$1" -eq "13" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
@@ -80,7 +80,7 @@ fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64m
 
-case $CIRCLE_NODE_INDEX in
+case $1 in
     0) ./gradlew $BASE_GRADLE_ARGS check $CONTAINER_0_EXCLUDE_ARGS -x :atlasdb-jepsen-tests:check;;
     1) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_1[@]} ;;
     2) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_2[@]} -x :atlasdb-ete-tests:longTest -x atlasdb-ete-tests:dbkvsTest -x :atlasdb-ete-tests:timeLockMigrationTest ;;ueu(c6417a05aced7076d312f04114aa59e5bed2a539}(sha(c6417a05aced7076d312f04114aa59e5bed2a539node_idEC_kwDOAjP5fdoAKGM2NDE3YTA1YWNlZDcwNzZkMzEyZjA0MTE0YWE1OWU1YmVkMmE1Mzkcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-14T15:28:19Zu	committer}(jBF  
Sam KramerjDF  skramer@palantir.comjFF  2023-04-14T15:28:19Zumessage	test nitstree}(j:F  (40e560cb5d5480ef0c7377d251723ee7ad304f27url`https://api.github.com/repos/palantir/atlasdb/git/trees/40e560cb5d5480ef0c7377d251723ee7ad304f27ujRF  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c6417a05aced7076d312f04114aa59e5bed2a539(      
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ5cRQACgkQmPPOpKR4
XS1jJAgAzavR/kQDJuqsoVEjaC6vzJD5rhdaW+DG/3dmGLoUbGArevvWKVYTwIWQ
jsBEZnN3m+u5rVOk3wdL5wTooEtIrcVZQZo+kJdbAtHo1LCcChFH8evULI2VF+TQ
meLFm/eBWs8oTOWt9dUmbnga1P92LvJcaAUtOjPkazOZVffj3acRtrHM/58VdUzH
/36PX54X5a267XjzUoNzgbAiBohJDOKqFYWVto8X4+ug8bx7KgD7JpRGxKq0Qz7U
UIyBxTQpNAuHtfNSlpqyQ8jIjo8aKp24AxdaQhycJmWmbgIdjpaZiy9BAja8IvS1
M+isLDs9Q/4tfCuQtGrzpzsMOjLs7g==
=1vLx
-----END PGP SIGNATURE-----payloadtree 40e560cb5d5480ef0c7377d251723ee7ad304f27
parent a95c8c2cf2d30c63d07539610429a3935e4a03b4
author Sam Kramer <skramer@palantir.com> 1681486099 +0100
committer Sam Kramer <skramer@palantir.com> 1681486099 +0100

test nits
uujRF  ^https://api.github.com/repos/palantir/atlasdb/commits/c6417a05aced7076d312f04114aa59e5bed2a539html_urlShttps://github.com/palantir/atlasdb/commit/c6417a05aced7076d312f04114aa59e5bed2a539comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c6417a05aced7076d312f04114aa59e5bed2a539/commentsj@F  }(login
Sam-KrameridJ^2_ j<F  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jRF  'https://api.github.com/users/Sam-Kramerj`F  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujHF  }(jeF  
Sam-KramerjgF  J^2_ j<F  MDQ6VXNlcjYyMzg4MTQ=jiF  3https://avatars.githubusercontent.com/u/6238814?v=4jkF  h5jRF  'https://api.github.com/users/Sam-Kramerj`F  https://github.com/Sam-KramerjnF  1https://api.github.com/users/Sam-Kramer/followersjpF  >https://api.github.com/users/Sam-Kramer/following{/other_user}jrF  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jtF  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jvF  5https://api.github.com/users/Sam-Kramer/subscriptionsjxF  ,https://api.github.com/users/Sam-Kramer/orgsjzF  -https://api.github.com/users/Sam-Kramer/reposj|F  8https://api.github.com/users/Sam-Kramer/events{/privacy}j~F  7https://api.github.com/users/Sam-Kramer/received_eventsjF  UserjF  uparents]}(j:F  (a95c8c2cf2d30c63d07539610429a3935e4a03b4jRF  ^https://api.github.com/repos/palantir/atlasdb/commits/a95c8c2cf2d30c63d07539610429a3935e4a03b4j`F  Shttps://github.com/palantir/atlasdb/commit/a95c8c2cf2d30c63d07539610429a3935e4a03b4uastats}(totalK	additionsK	deletionsKufiles]}(j:F  (b905b828e2ffb62f8c4ddf06ea1c657b74a86b64filenamehatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowsTest.javastatusmodifiedjF  KjF  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/c6417a05aced7076d312f04114aa59e5bed2a539/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c6417a05aced7076d312f04114aa59e5bed2a539/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.java?ref=c6417a05aced7076d312f04114aa59e5bed2a539patchX  @@ -73,7 +73,7 @@ public class RingWorkflowsTest {
     public void workflowHistoryTransactionStoreShouldBeReadOnly() {
         WorkflowHistory history = workflow.run();
         assertThat(history.transactionStore())
-                .as("should return a read only tranasction store")
+                .as("should return a read only transaction store")
                 .isInstanceOf(ReadOnlyTransactionStore.class);
     }
 
@@ -115,6 +115,7 @@ public void ringWorkflowContainsInitialWritesForRing() {
 
     @Test
     public void ringWorkflowSetsSkipRunningToTrueWhenInvalidRingPresent() {
+        assertThat(skipRunning).isFalse();
         memoryStore.readWrite(txn -> txn.write(TABLE_NAME, RingWorkflows.cell(0), 99));
         workflow.run();
         assertThat(skipRunning).isTrue();uau(2d29f38d962eac726791049d035b5d266219c3aa}(sha(2d29f38d962eac726791049d035b5d266219c3aanode_idEC_kwDOAjP5fdoAKDJkMjlmMzhkOTYyZWFjNzI2NzkxMDQ5ZDAzNWI1ZDI2NjIxOWMzYWEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-17T16:28:17Zu	committer}(jF  
Sam KramerjF  skramer@palantir.comjF  2023-08-17T16:28:17Zumessagefix intellij madnesstree}(jF  (4759b717c0fa28a958e68513b6cd6c906aac3b17url`https://api.github.com/repos/palantir/atlasdb/git/trees/4759b717c0fa28a958e68513b6cd6c906aac3b17ujF  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2d29f38d962eac726791049d035b5d266219c3aa
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTeSqEACgkQmPPOpKR4
XS0sAAf+KIhENHI6gKw/goqPAI2o5bnLDazV7gC4MP+TTz6liN7A6DHVF2TICBgH
02FnRUiI06kNljUl061DQv1YWNVgXCpmzI8d6DZ/vL+nbGR/2fChEPbeNwUHBiAW
mapQmJ4oNGaBVPgFinOqpdp0byoo87SRiEApH1OcJta4+EIBB4YIkJssXcr6lad2
mXnV3Ag3XPf6oaHhZj8l5gUphjg248G0vvRIBcp4PzxwiatdsBZSiC8+EA021S3n
fWcf6RbgmSL4K4ARm9gMXH30+HZOCNGC7k+MioQa2ZazDifkPryLL4iuydm0oQgL
Acu4Ba5owcvlyAN/YBUGJky+LyqXnA==
=cyx9
-----END PGP SIGNATURE-----payloadtree 4759b717c0fa28a958e68513b6cd6c906aac3b17
parent 0b76f35489bead64a6b6c6c613bb0556dcfd714b
author Sam Kramer <skramer@palantir.com> 1692289697 +0100
committer Sam Kramer <skramer@palantir.com> 1692289697 +0100

fix intellij madness
uujF  ^https://api.github.com/repos/palantir/atlasdb/commits/2d29f38d962eac726791049d035b5d266219c3aahtml_urlShttps://github.com/palantir/atlasdb/commit/2d29f38d962eac726791049d035b5d266219c3aacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2d29f38d962eac726791049d035b5d266219c3aa/commentsjF  }(login
Sam-KrameridJ^2_ jF  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jF  'https://api.github.com/users/Sam-KramerjF  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujF  }(jF  
Sam-KramerjF  J^2_ jF  MDQ6VXNlcjYyMzg4MTQ=jF  3https://avatars.githubusercontent.com/u/6238814?v=4jF  h5jF  'https://api.github.com/users/Sam-KramerjF  https://github.com/Sam-KramerjF  1https://api.github.com/users/Sam-Kramer/followersjF  >https://api.github.com/users/Sam-Kramer/following{/other_user}jF  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jF  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jF  5https://api.github.com/users/Sam-Kramer/subscriptionsjF  ,https://api.github.com/users/Sam-Kramer/orgsjF  -https://api.github.com/users/Sam-Kramer/reposjF  8https://api.github.com/users/Sam-Kramer/events{/privacy}jF  7https://api.github.com/users/Sam-Kramer/received_eventsjF  UserjF  uparents]}(jF  (0b76f35489bead64a6b6c6c613bb0556dcfd714bjF  ^https://api.github.com/repos/palantir/atlasdb/commits/0b76f35489bead64a6b6c6c613bb0556dcfd714bjF  Shttps://github.com/palantir/atlasdb/commit/0b76f35489bead64a6b6c6c613bb0556dcfd714buastats}(totalK	additionsK	deletionsKufiles]}(jF  (26afaf80434e1995475f0609860bafd96cbe03b7filename]timelock-impl/src/main/java/com/palantir/atlasdb/timelock/paxos/PaxosTimestampBoundStore.javastatusmodifiedjG  KjG  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/2d29f38d962eac726791049d035b5d266219c3aa/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2d29f38d962eac726791049d035b5d266219c3aa/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.java?ref=2d29f38d962eac726791049d035b5d266219c3aapatchX  @@ -39,12 +39,10 @@
 import com.palantir.timestamp.DebugLogger;
 import com.palantir.timestamp.MultipleRunningTimestampServiceError;
 import com.palantir.timestamp.TimestampBoundStore;
-
 import java.util.List;
 import java.util.Optional;
 import javax.annotation.Nullable;
 import javax.annotation.concurrent.GuardedBy;
-
 import org.immutables.value.Value;
 
 public class PaxosTimestampBoundStore implements TimestampBoundStore {
@@ -115,14 +113,14 @@ private List<PaxosLong> getLatestSequenceNumbersFromAcceptors() {
     /**
      * Obtains agreement for a given sequence number, pulling in values from previous sequence numbers
      * if needed.
-     * <p>
+     *
      * The semantics of this method are as follows:
-     * - If any learner knows that a value has already been agreed for this sequence number, return said value.
-     * - Otherwise, poll learners for the state of the previous sequence number.
-     * - If this is unavailable, the cluster must have agreed on (seq - 2), so read it and then force (seq - 1)
-     * to that value.
-     * - Finally, force agreement for seq to be the same value as that agreed for (seq - 1).
-     * <p>
+     *  - If any learner knows that a value has already been agreed for this sequence number, return said value.
+     *  - Otherwise, poll learners for the state of the previous sequence number.
+     *     - If this is unavailable, the cluster must have agreed on (seq - 2), so read it and then force (seq - 1)
+     *       to that value.
+     *  - Finally, force agreement for seq to be the same value as that agreed for (seq - 1).
+     *
      * This method has a precondition that (seq - 2) must be agreed upon; note that numbers up to and including
      * PaxosAcceptor.NO_LOG_ENTRY are always considered agreed upon.
      *
@@ -151,16 +149,16 @@ SequenceAndBound getAgreedState(long seq) {
      * Forces agreement to be reached for a given sequence number; if the cluster hasn't reached agreement yet,
      * attempts to propose a given value. This method only returns when a value has been agreed upon for the provided
      * sequence number (though there are no guarantees as to whether said value is proposed by this node).
-     * <p>
+     *
      * The semantics of this method are as follows:
-     * - If any learner knows that a value has already been agreed for this sequence number, return said value.
-     * - Otherwise, propose the value oldState to the cluster. This call returns the value accepted by a
-     * quorum of nodes; return that value.
-     * <p>
+     *  - If any learner knows that a value has already been agreed for this sequence number, return said value.
+     *  - Otherwise, propose the value oldState to the cluster. This call returns the value accepted by a
+     *    quorum of nodes; return that value.
+     *
      * Callers of this method that supply a null oldState are responsible for ensuring that the cluster has already
      * agreed on a value with the provided sequence number.
      *
-     * @param seq      Sequence number to obtain agreement on
+     * @param seq Sequence number to obtain agreement on
      * @param oldState Value to propose, provided no learner has learned a value for this sequence number
      * @return Sequence and bound for the given sequence number; guaranteed nonnull
      * @throws NullPointerException if oldState is null and the cluster hasn't agreed on a value for seq yet
@@ -180,7 +178,8 @@ SequenceAndBound forceAgreedState(long seq, @Nullable Long oldState) {
             try {
                 byte[] acceptedValue = proposer.propose(seq, oldState == null ? null : PtBytes.toBytes(oldState));
                 // propose must never return null.  We only pass in null for things we know are agreed upon already.
-                Preconditions.checkNotNull(acceptedValue, "Proposed value can't be null, but was in sequence", SafeArg.of("seq", seq));
+                Preconditions.checkNotNull(
+                        acceptedValue, "Proposed value can't be null, but was in sequence", SafeArg.of("seq", seq));
                 return ImmutableSequenceAndBound.of(seq, PtBytes.toLong(acceptedValue));
             } catch (PaxosRoundFailureException e) {
                 waitForRandomBackoff(e, Thread::sleep);uau(70c440b42cfe3ca4ac43f1dc0eb83087500c165c}(sha(70c440b42cfe3ca4ac43f1dc0eb83087500c165cnode_idEC_kwDOAjP5fdoAKDcwYzQ0MGI0MmNmZTNjYTRhYzQzZjFkYzBlYjgzMDg3NTAwYzE2NWMcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-03-30T20:30:49Zu	committer}(j0G  svc-excavator-botj2G  svc-excavator-bot@palantir.comj4G  2023-03-30T20:30:49Zumessage$Excavator:  Update policy-bot configtree}(j(G  (da46b7ac9c6e3c56093dde742a228d9ac3b37227url`https://api.github.com/repos/palantir/atlasdb/git/trees/da46b7ac9c6e3c56093dde742a228d9ac3b37227uj@G  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/70c440b42cfe3ca4ac43f1dc0eb83087500c165c
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQl8XkJEMmvEkpISILgAADFBgEAhzRnnDwC6g/SJwHFObjQgc+b
nz1AhUVDL+M+Nl1VX3kBAJyj9Y8afrwN0fjlJg4lhmhYDgU7uH6HzPP/7v3EPVzM
=F0KI
-----END PGP SIGNATURE-----
payloadX  tree da46b7ac9c6e3c56093dde742a228d9ac3b37227
parent 44a6930443bb70b40ca00f76d282a73d2681dc7a
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1680208249 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1680208249 +0000

Excavator:  Update policy-bot configuuj@G  ^https://api.github.com/repos/palantir/atlasdb/commits/70c440b42cfe3ca4ac43f1dc0eb83087500c165chtml_urlShttps://github.com/palantir/atlasdb/commit/70c440b42cfe3ca4ac43f1dc0eb83087500c165ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/70c440b42cfe3ca4ac43f1dc0eb83087500c165c/commentsj.G  }(loginsvc-excavator-botidJj*G  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j@G  .https://api.github.com/users/svc-excavator-botjNG  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj6G  }(jSG  svc-excavator-botjUG  Jj*G  MDQ6VXNlcjMzMjY2MzY4jWG  4https://avatars.githubusercontent.com/u/33266368?v=4jYG  h5j@G  .https://api.github.com/users/svc-excavator-botjNG  $https://github.com/svc-excavator-botj\G  8https://api.github.com/users/svc-excavator-bot/followersj^G  Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}j`G  >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}jbG  Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}jdG  <https://api.github.com/users/svc-excavator-bot/subscriptionsjfG  3https://api.github.com/users/svc-excavator-bot/orgsjhG  4https://api.github.com/users/svc-excavator-bot/reposjjG  ?https://api.github.com/users/svc-excavator-bot/events{/privacy}jlG  >https://api.github.com/users/svc-excavator-bot/received_eventsjnG  UserjpG  uparents]}(j(G  (44a6930443bb70b40ca00f76d282a73d2681dc7aj@G  ^https://api.github.com/repos/palantir/atlasdb/commits/44a6930443bb70b40ca00f76d282a73d2681dc7ajNG  Shttps://github.com/palantir/atlasdb/commit/44a6930443bb70b40ca00f76d282a73d2681dc7auastats}(totalK	additionsK	deletionsK ufiles]}(j(G  (b9dc830bb20b031d2b9e0db0007dbe449c528f7afilename.policy.ymlstatusmodifiedjG  KjG  K changesKblob_url]https://github.com/palantir/atlasdb/blob/70c440b42cfe3ca4ac43f1dc0eb83087500c165c/.policy.ymlraw_url\https://github.com/palantir/atlasdb/raw/70c440b42cfe3ca4ac43f1dc0eb83087500c165c/.policy.ymlcontents_urlohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=70c440b42cfe3ca4ac43f1dc0eb83087500c165cpatchX*  @@ -81,6 +81,7 @@ approval_rules:
           - "^versions.lock$"
           - "^internal/generated/.*"
           - "^internal/generated_src/.*"
+          - "^gradle-baseline-java/src/main/resources/checkstyle.version$"
       has_valid_signatures_by_keys:
         key_ids: ["C9AF124A484882E0"]
 uau(727522017abec6d0036f5249bbfaadf80bbec255}(sha(727522017abec6d0036f5249bbfaadf80bbec255node_idEC_kwDOAjP5fdoAKDcyNzUyMjAxN2FiZWM2ZDAwMzZmNTI0OWJiZmFhZGY4MGJiZWMyNTUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T14:17:58Zu	committer}(jG  
Ahmed AlouanejG  aalouane@palantir.comjG  2023-05-15T14:17:58Zumessagestuffftree}(jG  (60a9b09999bbc278f62da60f99ed20c6192976f2url`https://api.github.com/repos/palantir/atlasdb/git/trees/60a9b09999bbc278f62da60f99ed20c6192976f2ujG  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/727522017abec6d0036f5249bbfaadf80bbec255
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiPxYACgkQPlMHVIT1
yhpQvQf7Bgjf/TLfLdE0z6MC4QXviB56ZJs93EhMn/EIdVc04ymmmGcqB5aoWkB9
/sGcEmEnOWEheIGxd1HdjFKtMUEXPmww/Q3r7ITJH3EZhgapShDcniMBfFGGAiSZ
FuP0IsOrrBHx/pJYKVoxyTBAgd99vp1kdFNEojGt2gO5VTjTwuzEamYEBuk/tKb4
jr+W0oFja40TvkaFhecwFbD6NRj6UewiDwOw3QVoVMoeaiQTOYSkAghEYDAc+VYG
45hFRQ379xfWMrGDrS7H0rAGCy7ZyqBXjislJxWgC7/8ojPAJesgrNC4WywGuunm
pjizBZRLKFikr8z4swd1spEXPBsR9w==
=31hS
-----END PGP SIGNATURE-----payloadtree 60a9b09999bbc278f62da60f99ed20c6192976f2
parent 75e811c802f52834962b027c0ff599a1d00d205e
author Ahmed Alouane <aalouane@palantir.com> 1684160278 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684160278 +0100

stufff
uujG  ^https://api.github.com/repos/palantir/atlasdb/commits/727522017abec6d0036f5249bbfaadf80bbec255html_urlShttps://github.com/palantir/atlasdb/commit/727522017abec6d0036f5249bbfaadf80bbec255comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/727522017abec6d0036f5249bbfaadf80bbec255/commentsjG  }(loginergo14idJjG  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jG  #https://api.github.com/users/ergo14jG  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujG  }(jG  ergo14jG  JjG  MDQ6VXNlcjMwOTAzNzM2jG  4https://avatars.githubusercontent.com/u/30903736?v=4jG  h5jG  #https://api.github.com/users/ergo14jG  https://github.com/ergo14jG  -https://api.github.com/users/ergo14/followersjG  :https://api.github.com/users/ergo14/following{/other_user}jG  3https://api.github.com/users/ergo14/gists{/gist_id}jG  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jG  1https://api.github.com/users/ergo14/subscriptionsjG  (https://api.github.com/users/ergo14/orgsjG  )https://api.github.com/users/ergo14/reposjG  4https://api.github.com/users/ergo14/events{/privacy}jG  3https://api.github.com/users/ergo14/received_eventsjG  UserjG  uparents]}(jG  (75e811c802f52834962b027c0ff599a1d00d205ejG  ^https://api.github.com/repos/palantir/atlasdb/commits/75e811c802f52834962b027c0ff599a1d00d205ejG  Shttps://github.com/palantir/atlasdb/commit/75e811c802f52834962b027c0ff599a1d00d205euastats}(totalK	additionsK	deletionsKufiles]}(jG  (e3d04598013de61ebb581ac64fed4cb8306407ebfilename.circleci/config.ymlstatusmodifiedjH  KjH  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/727522017abec6d0036f5249bbfaadf80bbec255/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/727522017abec6d0036f5249bbfaadf80bbec255/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=727522017abec6d0036f5249bbfaadf80bbec255patch@@ -176,7 +176,7 @@ workflows:
             branches:
               ignore: [develop]
       - deploy:
-          requires: [build, test]
+          requires: []
           filters:
             branches:
               only: developuau(7f1620cfb6bdbf12c133c40a0a81cc3da669a925}(sha(7f1620cfb6bdbf12c133c40a0a81cc3da669a925node_idEC_kwDOAjP5fdoAKDdmMTYyMGNmYjZiZGJmMTJjMTMzYzQwYTBhODFjYzNkYTY2OWE5MjUcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-03-13T18:36:24Zu	committer}(jH  Patrick Koenigj H  pkoenig10@gmail.comj"H  2023-03-13T18:43:27Zumessage6Use AtlasDbDependencyException when no hosts availabletree}(jH  (476aa80d14f8ee0af64f2acd9e6aa1b65685c507url`https://api.github.com/repos/palantir/atlasdb/git/trees/476aa80d14f8ee0af64f2acd9e6aa1b65685c507uj.H  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7f1620cfb6bdbf12c133c40a0a81cc3da669a925
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAAhcAAAAHc3NoLXJzYQAAAAMBAAEAAAIBAOLBVI00yZaP7395xCyqzy
aD/kgGj5GS8qP2f4Q0hM5gFbEYaTLwKvZTgcFMKJEw/3tOlCyuFoQChwrZ+YjoX3ZcTdIs
QnoGeYlwKUGY4x3QXLvrURZtGaXWggfEc+UKHT3mnGXM9FpX9CSdpTopg7KhxDlx3/Jv90
zimWImFPxKFUSZrhVGqD8qAQibPTFDs+JhK0cqllhsvm0PR9PilTde++NKLCQUNrRJi2+f
BjLBjJMJshRwXkkM6J8hDvyjiLJz4Bg9hq+5QLnO1fYaetU7aP4bsCs6ix5pyD4WO6cr6T
SMCtJThNdHvOVuOaCCHBOQrdVGjbMH9lmW5FL5oMsTZ86p24rZOFD9ly44mMJWYGk6F81y
japNgWorhR0tSZMSZPVlisGQQsRnsqQidrVPe3IR4MTUsKx39CAutxgk6N+BseeByXKw+H
aBKmd75u/FU7IoxEbXX7EuDq2TCtUmujYXiY7SY4T0DQDjNpHq+vrEUsKyi5mbRTdNahvt
eFWJU5UIwO7Ao+HdsqfUjGN6zw2HSkiHEG3iOj5OY+byI/ykoYGMQ40w6w7shCt7XDbUXa
/kGqIyicthBGQ7Y4/TtquH5Ag2UPSlN9C0Rt/ZBolkTfoLz4wCtTMzd7hdixs5yuocVTn7
njhSYSXRyRbbVcF/q56x1NAAsVOe9epxAAAAA2dpdAAAAAAAAAAGc2hhNTEyAAACFAAAAA
xyc2Etc2hhMi01MTIAAAIAtMVWj8fZB3OjaEZZi6F3Ta0zLXRpJKJ0F9x6/hGTYNPFeX4d
s/77d6OvMzRrX4ZIIiy58AsR5nDcOvpov10lAqOfAWRrmpbaP31Pxqdwee3sB06grYSOY3
YqwNs0UcJd8SSaez0DMvnMRZkTZ3/TvFzGmseG9U76R2rb0k7qdztK604xM8SJGrX1HbZl
2KQVHQuiLCdjWpRPcF0H3SCmP/d4szAbPPXjY271BLm/Xt/NRIJ/rwPC/vcM5mo+9xEyCN
4ncvllcS9/367z5DeccDalDsrvNJXPk8vpljy7ne1CpQ6uSkcbtBpEeVWH9GeefiG1uQEU
c7vnSxHeDk5SLsAlPRGHZDBGskWtWCU8+B8ieeRfsth9KLDTBxnOcrzvJ0ruGhY6yVuN5B
JHK7exsBehOdyx1UAGuq0kEAmL5TrLIPZtFX00nTGL0MAgei0M78VUhklIG9VJ/eMpDwM9
4s447wQ+mD4JVX1NiAKzZNRMJZ5GXohLNXnSOF+IkSu80yHlPhexXc50WEsFMOSwJPKLh6
wrUNzfA9s+p8L8ArZSYsXkkxhiy6RI2jmLXJZRfXc6kZjqW0GN19DrBdQnaD5Mh6tMnHhD
aK8WzUj1U85SglMb5LzWAW62TZEEA0GIyvDH8Id/RFUUym6IDZaDz63XYUcw0O7AB9g2ot
B0EgU=
-----END SSH SIGNATURE-----payloadX  tree 476aa80d14f8ee0af64f2acd9e6aa1b65685c507
parent 82c974208a8c9b802173e8cfe1ee01a349c12e2c
author Patrick Koenig <pkoenig10@gmail.com> 1678732584 -0700
committer Patrick Koenig <pkoenig10@gmail.com> 1678733007 -0700

Use AtlasDbDependencyException when no hosts available
uuj.H  ^https://api.github.com/repos/palantir/atlasdb/commits/7f1620cfb6bdbf12c133c40a0a81cc3da669a925html_urlShttps://github.com/palantir/atlasdb/commit/7f1620cfb6bdbf12c133c40a0a81cc3da669a925comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7f1620cfb6bdbf12c133c40a0a81cc3da669a925/commentsjH  }(login	pkoenig10idJLvP jH  MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5j.H  &https://api.github.com/users/pkoenig10j<H  https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminuj$H  }(jAH  	pkoenig10jCH  JLvP jH  MDQ6VXNlcjUyNzMxNjQ=jEH  3https://avatars.githubusercontent.com/u/5273164?v=4jGH  h5j.H  &https://api.github.com/users/pkoenig10j<H  https://github.com/pkoenig10jJH  0https://api.github.com/users/pkoenig10/followersjLH  =https://api.github.com/users/pkoenig10/following{/other_user}jNH  6https://api.github.com/users/pkoenig10/gists{/gist_id}jPH  =https://api.github.com/users/pkoenig10/starred{/owner}{/repo}jRH  4https://api.github.com/users/pkoenig10/subscriptionsjTH  +https://api.github.com/users/pkoenig10/orgsjVH  ,https://api.github.com/users/pkoenig10/reposjXH  7https://api.github.com/users/pkoenig10/events{/privacy}jZH  6https://api.github.com/users/pkoenig10/received_eventsj\H  Userj^H  uparents]}(jH  (82c974208a8c9b802173e8cfe1ee01a349c12e2cj.H  ^https://api.github.com/repos/palantir/atlasdb/commits/82c974208a8c9b802173e8cfe1ee01a349c12e2cj<H  Shttps://github.com/palantir/atlasdb/commit/82c974208a8c9b802173e8cfe1ee01a349c12e2cuastats}(totalK0	additionsK!	deletionsKufiles](}(jH  (3119f655157ee521b742eccfb81bf4fbbda595d2filename[atlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/RetryLimitReachedException.javastatusmodifiedjxH  KjyH  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/7f1620cfb6bdbf12c133c40a0a81cc3da669a925/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRetryLimitReachedException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7f1620cfb6bdbf12c133c40a0a81cc3da669a925/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRetryLimitReachedException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRetryLimitReachedException.java?ref=7f1620cfb6bdbf12c133c40a0a81cc3da669a925patchX   @@ -25,6 +25,7 @@
 import java.util.List;
 
 public class RetryLimitReachedException extends AtlasDbDependencyException implements SafeLoggable {
+
     private static final String MESSAGE = "Request was retried and failed each time for the request.";
 
     private final int numRetries;u}(jH  (849885796051302ae2255080efd29ca7c50eddc8j~H  catlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientFactory.javajH  modifiedjxH  KjyH  KjH  KjH  https://github.com/palantir/atlasdb/blob/7f1620cfb6bdbf12c133c40a0a81cc3da669a925/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientFactory.javajH  https://github.com/palantir/atlasdb/raw/7f1620cfb6bdbf12c133c40a0a81cc3da669a925/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientFactory.javajH  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientFactory.java?ref=7f1620cfb6bdbf12c133c40a0a81cc3da669a925jH  X  @@ -303,17 +303,12 @@ public void destroyObject(PooledObject<CassandraClient> client) {
         }
     }
 
-    static class ClientCreationFailedException extends AtlasDbDependencyException {
+    static final class ClientCreationFailedException extends AtlasDbDependencyException {
         private static final long serialVersionUID = 1L;
 
         ClientCreationFailedException(String message, Exception cause) {
             super(message, cause);
         }
-
-        @Override
-        public Exception getCause() {
-            return (Exception) super.getCause();
-        }
     }
 
     private static void setSocketOptions(TSocket thriftSocket, SocketConsumer consumer, InetSocketAddress addr) {u}(jH  (8dc5cfb3bdba96fc8c1896859651e04d79218056j~H  batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javajH  modifiedjxH  KjyH  KjH  KjH  https://github.com/palantir/atlasdb/blob/7f1620cfb6bdbf12c133c40a0a81cc3da669a925/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javajH  https://github.com/palantir/atlasdb/raw/7f1620cfb6bdbf12c133c40a0a81cc3da669a925/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javajH  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=7f1620cfb6bdbf12c133c40a0a81cc3da669a925jH  XN  @@ -42,9 +42,13 @@
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.base.FunctionCheckedException;
 import com.palantir.common.base.Throwables;
+import com.palantir.common.exception.AtlasDbDependencyException;
 import com.palantir.common.pooling.PoolingContainer;
 import com.palantir.common.streams.KeyedStream;
+import com.palantir.logsafe.Arg;
+import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.SafeLoggable;
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -386,8 +390,7 @@ public List<PoolingContainer<CassandraClient>> getAllNonBlacklistedHosts() {
     }
 
     public CassandraClientPoolingContainer getRandomGoodHost() {
-        return getRandomGoodHostForPredicate(address -> true)
-                .orElseThrow(() -> new SafeIllegalStateException("No hosts available."));
+        return getRandomGoodHostForPredicate(address -> true).orElseThrow(NoHostsAvailableException::new);
     }
 
     private String getRingViewDescription() {
@@ -526,4 +529,23 @@ public void clearInitialCassandraHosts() {
     void overrideHostToDatacenterMapping(ImmutableMap<CassandraServer, String> hostToDatacenterOverride) {
         this.hostToDatacenter = hostToDatacenterOverride;
     }
+
+    private static final class NoHostsAvailableException extends AtlasDbDependencyException implements SafeLoggable {
+
+        private static final String MESSAGE = "No hosts available.";
+
+        NoHostsAvailableException() {
+            super(MESSAGE);
+        }
+
+        @Override
+        public @Safe String getLogMessage() {
+            return MESSAGE;
+        }
+
+        @Override
+        public List<Arg<?>> getArgs() {
+            return List.of();
+        }
+    }
 }u}(jH  (3f12cc30de4b2565eb5b519d76b28f4a643de42cj~H  Qatlasdb-commons/src/main/java/com/palantir/exception/NotInitializedException.javajH  modifiedjxH  KjyH  KjH  KjH  https://github.com/palantir/atlasdb/blob/7f1620cfb6bdbf12c133c40a0a81cc3da669a925/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javajH  https://github.com/palantir/atlasdb/raw/7f1620cfb6bdbf12c133c40a0a81cc3da669a925/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javajH  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.java?ref=7f1620cfb6bdbf12c133c40a0a81cc3da669a925jH  X"  @@ -24,7 +24,7 @@
 
 public class NotInitializedException extends AtlasDbDependencyException implements SafeLoggable {
 
-    private static final String EXCEPTION_MESSAGE =
+    private static final String MESSAGE =
             "The object is not yet initialized, and as a result, all calls to it will fail. Interactions with this"
                     + " object should not take place until after initialization has completed. For example, if your"
                     + " service that handles REST requests relies on this object, it should not service REST requests"
@@ -33,19 +33,19 @@ public class NotInitializedException extends AtlasDbDependencyException implemen
     private final String objectNotInitialized;
 
     public NotInitializedException(@Safe String objectNotInitialized) {
-        super(EXCEPTION_MESSAGE);
+        super(MESSAGE);
         this.objectNotInitialized = objectNotInitialized;
     }
 
     public NotInitializedException(@Safe String objectNotInitialized, Throwable throwable) {
-        super(EXCEPTION_MESSAGE, throwable);
+        super(MESSAGE, throwable);
         this.objectNotInitialized = objectNotInitialized;
     }
 
     @Override
     @Safe
     public String getLogMessage() {
-        return EXCEPTION_MESSAGE;
+        return MESSAGE;
     }
 
     @Overrideu}(jH  (e4aeffa4b79ab211ecca045642ba7166133fe5b6j~H  etimelock-impl/src/main/java/com/palantir/atlasdb/timelock/paxos/InvalidAcceptorCacheKeyException.javajH  modifiedjxH  KjyH  KjH  KjH  https://github.com/palantir/atlasdb/blob/7f1620cfb6bdbf12c133c40a0a81cc3da669a925/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FInvalidAcceptorCacheKeyException.javajH  https://github.com/palantir/atlasdb/raw/7f1620cfb6bdbf12c133c40a0a81cc3da669a925/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FInvalidAcceptorCacheKeyException.javajH  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FInvalidAcceptorCacheKeyException.java?ref=7f1620cfb6bdbf12c133c40a0a81cc3da669a925jH  X  @@ -24,18 +24,18 @@
 
 public class InvalidAcceptorCacheKeyException extends Exception implements SafeLoggable {
 
-    private static final String ERROR_MESSAGE = "Provided acceptor cache key is either invalid/expired.";
+    private static final String MESSAGE = "Provided acceptor cache key is either invalid/expired.";
 
     private final AcceptorCacheKey cacheKey;
 
     public InvalidAcceptorCacheKeyException(AcceptorCacheKey cacheKey) {
-        super(ERROR_MESSAGE);
+        super(MESSAGE);
         this.cacheKey = cacheKey;
     }
 
     @Override
     public String getLogMessage() {
-        return ERROR_MESSAGE;
+        return MESSAGE;
     }
 
     @Overrideueu(ad18ca62cc74168498c066c7b456a14737c16eae}(sha(ad18ca62cc74168498c066c7b456a14737c16eaenode_idEC_kwDOAjP5fdoAKGFkMThjYTYyY2M3NDE2ODQ5OGMwNjZjN2I0NTZhMTQ3MzdjMTZlYWUcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-07-07T10:18:02Zu	committer}(jH  GitHubjH  noreply@github.comjH  2023-07-07T10:18:02ZumessagePrefer ZoneOffset.UTC (#6637)tree}(jH  (b7d9248fddc1197073b70acad6108e8a65acf8aburl`https://api.github.com/repos/palantir/atlasdb/git/trees/b7d9248fddc1197073b70acad6108e8a65acf8abujH  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ad18ca62cc74168498c066c7b456a14737c16eae
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkp+ZaCRBK7hj4Ov3rIwAAiisIAFPaReoXoiWxd8DAxTFavklN
NklIbq1NMDXWARP/IGgK+OHZFJNMAe2zMb7QY4wB1OFgiGWJuH3FiyF6ypgzZwqG
th0vJsqvvL5FdyRuQC0eTWIG6arIu+ROWL2kY8YuSG0DILBKKPYV0PAJ0yiPMP03
rYJl8DQNJ12gY0GknFCNbCgaKp/YbZMD5+LkeCp1OfBIbOxpH3MJV0CXG2cAlqOm
Yk14ZYi0Nf9lNq1eXzGrYvy634xsKNOj1rIzdKQbLTrUbEO4KdVn2dZkiWE+/SA7
W5n5sGTywYv342SIBznTr5SlXCJKA6tAF1Xpj5PvGQ3RrGDFJU2JskI/Y44ky1E=
=ceCK
-----END PGP SIGNATURE-----
payloadtree b7d9248fddc1197073b70acad6108e8a65acf8ab
parent 7b124537f11a895e26e3c176241b15a72deb65c1
author Patrick Koenig <pkoenig10@gmail.com> 1688725082 -0700
committer GitHub <noreply@github.com> 1688725082 +0000

Prefer ZoneOffset.UTC (#6637)

 uujH  ^https://api.github.com/repos/palantir/atlasdb/commits/ad18ca62cc74168498c066c7b456a14737c16eaehtml_urlShttps://github.com/palantir/atlasdb/commit/ad18ca62cc74168498c066c7b456a14737c16eaecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ad18ca62cc74168498c066c7b456a14737c16eae/commentsjH  }(login	pkoenig10idJLvP jH  MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5jH  &https://api.github.com/users/pkoenig10jH  https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminujH  }(jH  web-flowjH  J/jH  MDQ6VXNlcjE5ODY0NDQ3jH  4https://avatars.githubusercontent.com/u/19864447?v=4jH  h5jH  %https://api.github.com/users/web-flowjH  https://github.com/web-flowjH  /https://api.github.com/users/web-flow/followersjH  <https://api.github.com/users/web-flow/following{/other_user}jH  5https://api.github.com/users/web-flow/gists{/gist_id}jH  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jH  3https://api.github.com/users/web-flow/subscriptionsjH  *https://api.github.com/users/web-flow/orgsjH  +https://api.github.com/users/web-flow/reposjH  6https://api.github.com/users/web-flow/events{/privacy}jH  5https://api.github.com/users/web-flow/received_eventsjH  UserjH  uparents]}(jH  (7b124537f11a895e26e3c176241b15a72deb65c1jH  ^https://api.github.com/repos/palantir/atlasdb/commits/7b124537f11a895e26e3c176241b15a72deb65c1jH  Shttps://github.com/palantir/atlasdb/commit/7b124537f11a895e26e3c176241b15a72deb65c1uastats}(totalK	additionsK	deletionsKufiles]}(jH  (970150ceb69466af2115ad6aa21eb8a845799996filenameQatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfo.javastatusmodifiedjI  KjI  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ad18ca62cc74168498c066c7b456a14737c16eae/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfo.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ad18ca62cc74168498c066c7b456a14737c16eae/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfo.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfo.java?ref=ad18ca62cc74168498c066c7b456a14737c16eaepatchX  @@ -22,7 +22,7 @@
 import com.palantir.atlasdb.keyvalue.api.WriteReference;
 import com.palantir.atlasdb.sweep.Sweeper;
 import java.time.LocalDate;
-import java.time.ZoneId;
+import java.time.ZoneOffset;
 import java.util.Optional;
 import org.immutables.value.Value;
 
@@ -55,7 +55,7 @@ default int dayRotatingHash() {
         int hash = 5381;
         hash = hash * 1439
                 + writeRef().orElse(SweepQueueUtils.DUMMY).cellReference().goodHash();
-        hash = hash * 1439 + LocalDate.now(ZoneId.of("UTC")).hashCode();
+        hash = hash * 1439 + LocalDate.now(ZoneOffset.UTC).hashCode();
         return hash;
     }
 uau(2a517f8aa89af8d806bc3c4d3916dab9926339f7}(sha(2a517f8aa89af8d806bc3c4d3916dab9926339f7node_idEC_kwDOAjP5fdoAKDJhNTE3ZjhhYTg5YWY4ZDgwNmJjM2M0ZDM5MTZkYWI5OTI2MzM5Zjccommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-15T12:01:00Zu	committer}(j,I  Lucas Meirelesj.I  meireles31@msn.comj0I  2023-06-15T12:01:00Zumessage,clearer name for SweepStrategy read booleanstree}(j$I  (6d4548208d6c917f78b62a352b95ed866b5e2511url`https://api.github.com/repos/palantir/atlasdb/git/trees/6d4548208d6c917f78b62a352b95ed866b5e2511uj<I  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2a517f8aa89af8d806bc3c4d3916dab9926339f7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSK/XwACgkQJd22kJ7J
GiztRgf8CULCW30UsrjvO267p0vTS548yfv59LVPasxluk4CVfrQonhcvj091QXy
mliq+EzD+c1JkWQS8miIMxj9rlSrq7VGMh/6E3MoU25nLha7jUdSPJjhPemoGKXu
hq7BRXvmthSGk+kclfptUJoVw3RdwfAIMxu/sFjzst2VYztoM/SEiWYlTjHdobSG
C2cxA8xaZavUfu+gtXZRYCPoBMYoZAbt2zQhjCEwcsl9y/oj8ZEhUjwfhM26NW9e
WoE5Qe1o0Gl7EW6wEGMGNFbqKR0SwejqTF2c3mi5ArXuF+4xaj+a8VDg04xdX/DM
uo2ESi/Bth1TlseHu+OCYLFwg9FMgw==
=cIj9
-----END PGP SIGNATURE-----payloadX  tree 6d4548208d6c917f78b62a352b95ed866b5e2511
parent dc13552feb7f94875cb125fb6a354b1182bc0cc1
author Lucas Meireles <meireles31@msn.com> 1686830460 +0100
committer Lucas Meireles <meireles31@msn.com> 1686830460 +0100

clearer name for SweepStrategy read booleans
uuj<I  ^https://api.github.com/repos/palantir/atlasdb/commits/2a517f8aa89af8d806bc3c4d3916dab9926339f7html_urlShttps://github.com/palantir/atlasdb/commit/2a517f8aa89af8d806bc3c4d3916dab9926339f7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2a517f8aa89af8d806bc3c4d3916dab9926339f7/commentsj*I  }(loginLucasIMEidJg j&I  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j<I  %https://api.github.com/users/LucasIMEjJI  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj2I  }(jOI  LucasIMEjQI  Jg j&I  MDQ6VXNlcjY3ODczMTE=jSI  3https://avatars.githubusercontent.com/u/6787311?v=4jUI  h5j<I  %https://api.github.com/users/LucasIMEjJI  https://github.com/LucasIMEjXI  /https://api.github.com/users/LucasIME/followersjZI  <https://api.github.com/users/LucasIME/following{/other_user}j\I  5https://api.github.com/users/LucasIME/gists{/gist_id}j^I  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j`I  3https://api.github.com/users/LucasIME/subscriptionsjbI  *https://api.github.com/users/LucasIME/orgsjdI  +https://api.github.com/users/LucasIME/reposjfI  6https://api.github.com/users/LucasIME/events{/privacy}jhI  5https://api.github.com/users/LucasIME/received_eventsjjI  UserjlI  uparents]}(j$I  (dc13552feb7f94875cb125fb6a354b1182bc0cc1j<I  ^https://api.github.com/repos/palantir/atlasdb/commits/dc13552feb7f94875cb125fb6a354b1182bc0cc1jJI  Shttps://github.com/palantir/atlasdb/commit/dc13552feb7f94875cb125fb6a354b1182bc0cc1uastats}(totalK	additionsK		deletionsKufiles]}(j$I  (368832ef9cd23615ba51fda4745fcb2a974346acfilenameVatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javastatusmodifiedjI  K	jI  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/2a517f8aa89af8d806bc3c4d3916dab9926339f7/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2a517f8aa89af8d806bc3c4d3916dab9926339f7/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=2a517f8aa89af8d806bc3c4d3916dab9926339f7patchX{  @@ -33,24 +33,26 @@ public final class SweepStrategy {
     public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), false, true);
 
     private final Optional<SweeperStrategy> sweeperStrategy;
-    private final boolean mustCheckImmutableLockAfterNonEmptyReads;
-    private final boolean mustCheckImmutableLockAfterEmptyReads;
+    private final boolean mustCheckImmutableLockIfAllCellsReadAndPresent;
+    private final boolean mustCheckImmutableLockIfEmptyCellWasPossiblyRead;
 
     private SweepStrategy(
             Optional<SweeperStrategy> sweeperStrategy,
-            boolean mustCheckImmutableLockAfterNonEmptyReads,
-            boolean mustCheckImmutableLockAfterEmptyReads) {
+            boolean mustCheckImmutableLockIfAllCellsReadAndPresent,
+            boolean mustCheckImmutableLockIfEmptyCellWasPossiblyRead) {
         this.sweeperStrategy = sweeperStrategy;
-        this.mustCheckImmutableLockAfterNonEmptyReads = mustCheckImmutableLockAfterNonEmptyReads;
-        this.mustCheckImmutableLockAfterEmptyReads = mustCheckImmutableLockAfterEmptyReads;
+        this.mustCheckImmutableLockIfAllCellsReadAndPresent = mustCheckImmutableLockIfAllCellsReadAndPresent;
+        this.mustCheckImmutableLockIfEmptyCellWasPossiblyRead = mustCheckImmutableLockIfEmptyCellWasPossiblyRead;
     }
 
     public Optional<SweeperStrategy> getSweeperStrategy() {
         return sweeperStrategy;
     }
 
     public boolean mustCheckImmutableLock(boolean hasReadEmptyCells) {
-        return hasReadEmptyCells ? mustCheckImmutableLockAfterEmptyReads : mustCheckImmutableLockAfterNonEmptyReads;
+        return hasReadEmptyCells
+                ? mustCheckImmutableLockIfEmptyCellWasPossiblyRead
+                : mustCheckImmutableLockIfAllCellsReadAndPresent;
     }
 
     public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy) {uau(e4fa25dfb44b029b890e998b292a3db1cdbb3a22}(sha(e4fa25dfb44b029b890e998b292a3db1cdbb3a22node_idEC_kwDOAjP5fdoAKGU0ZmEyNWRmYjQ0YjAyOWI4OTBlOTk4YjI5MmEzZGIxY2RiYjNhMjIcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-02-27T14:56:29Zu	committer}(jI  GitHubjI  noreply@github.comjI  2023-02-27T14:56:29ZumessagexMake the message for async init not completed a lot clearer. (#6450)

Improved NotInitializedException exception messagetree}(jI  (0a8d9214eb117e824fb5304ed281748459aa97a5url`https://api.github.com/repos/palantir/atlasdb/git/trees/0a8d9214eb117e824fb5304ed281748459aa97a5ujI  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e4fa25dfb44b029b890e998b292a3db1cdbb3a22
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJj/MSdCRBK7hj4Ov3rIwAAnecIAEJHCQN8O3GCKqUvkn9UdIfR
3Gm9x84EV2uPAppZE/9WXuII74TJ+Q3gyx35AeYodHe2K0uDRM9fjswGdXgKbGVn
zw7MoRUWDbZeu1YDCr/CTNmmHDm5mGMibhgtavvD9ie9bRUpyrKXkwixCKlXTqRZ
In9zNZ6Pf0U+aIN2eGJrPNGz/h/g48rZVtaTO5QZOdHu5T4WhcppaUOJVOIE6mVq
I5S1D0cZ9V26bZktw06/ytISZon7yUiN1n+eomr1He5OrFlivVjFpyGq6fqOrCn4
zK+waxd/8I3OfNHtXgOZStdWcgFnvzbwzMu9rj7oS29P+3R7P2UBvZNZojj0Ptc=
=oJXJ
-----END PGP SIGNATURE-----
payloadXK  tree 0a8d9214eb117e824fb5304ed281748459aa97a5
parent e0b8210ee3564fc21b6608419b22a93efe2ba6f2
author Sam-Kramer <sam.c.kramer@gmail.com> 1677509789 +0000
committer GitHub <noreply@github.com> 1677509789 +0000

Make the message for async init not completed a lot clearer. (#6450)

Improved NotInitializedException exception message
uujI  ^https://api.github.com/repos/palantir/atlasdb/commits/e4fa25dfb44b029b890e998b292a3db1cdbb3a22html_urlShttps://github.com/palantir/atlasdb/commit/e4fa25dfb44b029b890e998b292a3db1cdbb3a22comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e4fa25dfb44b029b890e998b292a3db1cdbb3a22/commentsjI  }(login
Sam-KrameridJ^2_ jI  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jI  'https://api.github.com/users/Sam-KramerjI  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujI  }(jI  web-flowjI  J/jI  MDQ6VXNlcjE5ODY0NDQ3jI  4https://avatars.githubusercontent.com/u/19864447?v=4jI  h5jI  %https://api.github.com/users/web-flowjI  https://github.com/web-flowjI  /https://api.github.com/users/web-flow/followersjI  <https://api.github.com/users/web-flow/following{/other_user}jI  5https://api.github.com/users/web-flow/gists{/gist_id}jI  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jI  3https://api.github.com/users/web-flow/subscriptionsjI  *https://api.github.com/users/web-flow/orgsjI  +https://api.github.com/users/web-flow/reposjI  6https://api.github.com/users/web-flow/events{/privacy}jI  5https://api.github.com/users/web-flow/received_eventsjI  UserjI  uparents]}(jI  (e0b8210ee3564fc21b6608419b22a93efe2ba6f2jI  ^https://api.github.com/repos/palantir/atlasdb/commits/e0b8210ee3564fc21b6608419b22a93efe2ba6f2jI  Shttps://github.com/palantir/atlasdb/commit/e0b8210ee3564fc21b6608419b22a93efe2ba6f2uastats}(totalKT	additionsKI	deletionsKufiles](}(jI  (739c4fc897f1565734993e27a768c77c15e97138filenameQatlasdb-commons/src/main/java/com/palantir/exception/NotInitializedException.javastatusmodifiedjI  KjI  KchangesK$blob_urlhttps://github.com/palantir/atlasdb/blob/e4fa25dfb44b029b890e998b292a3db1cdbb3a22/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e4fa25dfb44b029b890e998b292a3db1cdbb3a22/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.java?ref=e4fa25dfb44b029b890e998b292a3db1cdbb3a22patchX  @@ -16,18 +16,40 @@
 package com.palantir.exception;
 
 import com.palantir.common.exception.AtlasDbDependencyException;
+import com.palantir.logsafe.Arg;
+import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.SafeLoggable;
+import java.util.List;
 
-public class NotInitializedException extends AtlasDbDependencyException {
-    public NotInitializedException(String objectNotInitialized) {
-        super(exceptionMessage(objectNotInitialized));
+public class NotInitializedException extends AtlasDbDependencyException implements SafeLoggable {
+
+    private static final String EXCEPTION_MESSAGE =
+            "The object is not yet initialized, and as a result, all calls to it will fail. Interactions with this"
+                    + " object should not take place until after initialization has completed. For example, if your"
+                    + " service that handles REST requests relies on this object, it should not service REST requests"
+                    + " until initialization has completed, as otherwise all calls are guaranteed to fail. It is"
+                    + " expected that initialization of some object types do take some time.";
+    private final String objectNotInitialized;
+
+    public NotInitializedException(@Safe String objectNotInitialized) {
+        super(EXCEPTION_MESSAGE);
+        this.objectNotInitialized = objectNotInitialized;
+    }
+
+    public NotInitializedException(@Safe String objectNotInitialized, Throwable throwable) {
+        super(EXCEPTION_MESSAGE, throwable);
+        this.objectNotInitialized = objectNotInitialized;
     }
 
-    public NotInitializedException(String objectNotInitialized, Throwable throwable) {
-        super(exceptionMessage(objectNotInitialized), throwable);
+    @Override
+    @Safe
+    public String getLogMessage() {
+        return EXCEPTION_MESSAGE;
     }
 
-    private static String exceptionMessage(String objectNotInitialized) {
-        return String.format("The %s is not initialized yet", SafeArg.of("objectName", objectNotInitialized));
+    @Override
+    public List<Arg<?>> getArgs() {
+        return List.of(SafeArg.of("objectName", objectNotInitialized));
     }
 }u}(jI  (dfa91458329ff1875fb4ec6215218af5871f6e1fjJ  Uatlasdb-commons/src/test/java/com/palantir/exception/NotInitializedExceptionTest.javajJ  addedjI  KjI  K jJ  KjJ  https://github.com/palantir/atlasdb/blob/e4fa25dfb44b029b890e998b292a3db1cdbb3a22/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedExceptionTest.javaj
J  https://github.com/palantir/atlasdb/raw/e4fa25dfb44b029b890e998b292a3db1cdbb3a22/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedExceptionTest.javajJ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedExceptionTest.java?ref=e4fa25dfb44b029b890e998b292a3db1cdbb3a22jJ  X  @@ -0,0 +1,31 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.exception;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import org.junit.Test;
+
+public final class NotInitializedExceptionTest {
+    @Test
+    public void getArgsHasObjectNameAsSafe() {
+        String objectName = "foo";
+        NotInitializedException exception = new NotInitializedException(objectName);
+        assertThat(exception.getArgs()).containsExactly(SafeArg.of("objectName", objectName));
+    }
+}u}(jI  (d472c8f932207eb4899afe98ed0ccfe92e678cfdjJ  [atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/TargetedSweeperTest.javajJ  modifiedjI  KjI  KjJ  KjJ  https://github.com/palantir/atlasdb/blob/e4fa25dfb44b029b890e998b292a3db1cdbb3a22/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FTargetedSweeperTest.javaj
J  https://github.com/palantir/atlasdb/raw/e4fa25dfb44b029b890e998b292a3db1cdbb3a22/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FTargetedSweeperTest.javajJ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FTargetedSweeperTest.java?ref=e4fa25dfb44b029b890e998b292a3db1cdbb3a22jJ  X  @@ -27,6 +27,7 @@
 import static com.palantir.atlasdb.sweep.queue.SweepQueueUtils.tsPartitionFine;
 import static com.palantir.atlasdb.table.description.SweeperStrategy.CONSERVATIVE;
 import static com.palantir.atlasdb.table.description.SweeperStrategy.THOROUGH;
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
@@ -81,6 +82,7 @@
 import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.v2.TimelockService;
+import com.palantir.logsafe.SafeArg;
 import java.time.Duration;
 import java.util.ArrayList;
 import java.util.List;
@@ -228,13 +230,15 @@ public void increaseInShardsReflectedOnLastSweptTimestamp() {
 
     @Test
     public void callingEnqueueAndSweepOnUninitializedSweeperThrows() {
+        SafeArg<String> objectNameSafeArg = SafeArg.of("objectName", "Targeted Sweeper");
         TargetedSweeper uninitializedSweeper = TargetedSweeper.createUninitializedForTest(() -> 1);
-        assertThatThrownBy(() -> uninitializedSweeper.enqueue(ImmutableList.of()))
+        assertThatLoggableExceptionThrownBy(() -> uninitializedSweeper.enqueue(ImmutableList.of()))
                 .isInstanceOf(NotInitializedException.class)
-                .hasMessageContaining("Targeted Sweeper");
-        assertThatThrownBy(() -> uninitializedSweeper.sweepNextBatch(ShardAndStrategy.conservative(0), 1L))
+                .hasExactlyArgs(objectNameSafeArg);
+        assertThatLoggableExceptionThrownBy(
+                        () -> uninitializedSweeper.sweepNextBatch(ShardAndStrategy.conservative(0), 1L))
                 .isInstanceOf(NotInitializedException.class)
-                .hasMessageContaining("Targeted Sweeper");
+                .hasExactlyArgs(objectNameSafeArg);
     }
 
     @Testu}(jI  (13dfd77db0f46236b04de3278feb263f5f8427cajJ  $changelog/@unreleased/pr-6450.v2.ymljJ  addedjI  KjI  K jJ  KjJ  |https://github.com/palantir/atlasdb/blob/e4fa25dfb44b029b890e998b292a3db1cdbb3a22/changelog%2F%40unreleased%2Fpr-6450.v2.ymlj
J  {https://github.com/palantir/atlasdb/raw/e4fa25dfb44b029b890e998b292a3db1cdbb3a22/changelog%2F%40unreleased%2Fpr-6450.v2.ymljJ  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6450.v2.yml?ref=e4fa25dfb44b029b890e998b292a3db1cdbb3a22jJ  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Improved NotInitializedException exception message
+  links:
+  - https://github.com/palantir/atlasdb/pull/6450ueu(7cc5501bd242badcf433815b00b31d3574efa99c}(sha(7cc5501bd242badcf433815b00b31d3574efa99cnode_idEC_kwDOAjP5fdoAKDdjYzU1MDFiZDI0MmJhZGNmNDMzODE1YjAwYjMxZDM1NzRlZmE5OWMcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-03-31T08:58:49Zu	committer}(j2J  GitHubj4J  noreply@github.comj6J  2023-03-31T08:58:49Zumessage0Bump tritium 0.64.0 (#6493)

Bump tritium 0.64.0tree}(j*J  (36b9d527a5c1a8ba22580746411e2bca5c1bc18burl`https://api.github.com/repos/palantir/atlasdb/git/trees/36b9d527a5c1a8ba22580746411e2bca5c1bc18bujBJ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7cc5501bd242badcf433815b00b31d3574efa99c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkJqDJCRBK7hj4Ov3rIwAAzAAIAArmAmrOqPyWgcNOmzCs2IKB
1O46kphv20ZW6nAuR1+tBQ4KnZuhd88sMfss0w90k8Sa3ooEBvgtt9oaYszFILXv
XdZiyDy1eLpuQHVWNolKq/bHuLUzFdbu8ajfywhf2V9wY1RT45rccao7T/rn/toB
Z1G1vcDs/C6F65NdnNmsd8H3VgR5OuXcbOVB51Ry4x83xzUv6Q7cIGYalbbnC/SA
977TuRZTyPUcMn8e32c/tjYVYVwkuJoIEN5ytZc5OQFX1XZ2xX8WxCL41VaAyQuk
ts6mUoj8Vc4XMwIkFnJPrqAZ+dSUPzPWaT0E/90ClaQGLu6YCeQ94Ju/uSiZoCA=
=uQ7e
-----END PGP SIGNATURE-----
payloadX  tree 36b9d527a5c1a8ba22580746411e2bca5c1bc18b
parent 44a6930443bb70b40ca00f76d282a73d2681dc7a
author David Schlosnagle <davids@palantir.com> 1680253129 -0400
committer GitHub <noreply@github.com> 1680253129 +0000

Bump tritium 0.64.0 (#6493)

Bump tritium 0.64.0
uujBJ  ^https://api.github.com/repos/palantir/atlasdb/commits/7cc5501bd242badcf433815b00b31d3574efa99chtml_urlShttps://github.com/palantir/atlasdb/commit/7cc5501bd242badcf433815b00b31d3574efa99ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7cc5501bd242badcf433815b00b31d3574efa99c/commentsj0J  }(loginschlosnaidMBj,J  MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jBJ  %https://api.github.com/users/schlosnajPJ  https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj8J  }(jUJ  web-flowjWJ  J/j,J  MDQ6VXNlcjE5ODY0NDQ3jYJ  4https://avatars.githubusercontent.com/u/19864447?v=4j[J  h5jBJ  %https://api.github.com/users/web-flowjPJ  https://github.com/web-flowj^J  /https://api.github.com/users/web-flow/followersj`J  <https://api.github.com/users/web-flow/following{/other_user}jbJ  5https://api.github.com/users/web-flow/gists{/gist_id}jdJ  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jfJ  3https://api.github.com/users/web-flow/subscriptionsjhJ  *https://api.github.com/users/web-flow/orgsjjJ  +https://api.github.com/users/web-flow/reposjlJ  6https://api.github.com/users/web-flow/events{/privacy}jnJ  5https://api.github.com/users/web-flow/received_eventsjpJ  UserjrJ  uparents]}(j*J  (44a6930443bb70b40ca00f76d282a73d2681dc7ajBJ  ^https://api.github.com/repos/palantir/atlasdb/commits/44a6930443bb70b40ca00f76d282a73d2681dc7ajPJ  Shttps://github.com/palantir/atlasdb/commit/44a6930443bb70b40ca00f76d282a73d2681dc7auastats}(totalK	additionsK	deletionsKcufiles](}(j*J  (63285014148e1955618c0b9c9c8fa5df70e05e2afilenameRatlasdb-commons/src/test/java/com/palantir/common/base/BatchingVisitablesTest.javastatusmodifiedjJ  KjJ  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7cc5501bd242badcf433815b00b31d3574efa99c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fbase%2FBatchingVisitablesTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7cc5501bd242badcf433815b00b31d3574efa99c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fbase%2FBatchingVisitablesTest.java     contents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fbase%2FBatchingVisitablesTest.java?ref=7cc5501bd242badcf433815b00b31d3574efa99cpatchX  @@ -41,12 +41,13 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.mockito.Mock;
+import org.mockito.MockMakers;
 import org.mockito.junit.MockitoJUnitRunner;
 
 @RunWith(MockitoJUnitRunner.class)
 @SuppressWarnings("Guava") // BatchingVisitables uses Guava.
 public class BatchingVisitablesTest {
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private AbstractBatchingVisitable<Void> bv;
 
     @Testu}(j*J  (a4d7e0bf2840561582e23f5dd2c6582df9f5bdfejJ  `atlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/OracleTableNameUnmapperTest.javajJ  modifiedjJ  KjJ  KjJ  K,jJ  https://github.com/palantir/atlasdb/blob/7cc5501bd242badcf433815b00b31d3574efa99c/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javajJ  https://github.com/palantir/atlasdb/raw/7cc5501bd242badcf433815b00b31d3574efa99c/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javajJ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.java?ref=7cc5501bd242badcf433815b00b31d3574efa99cjJ  X  @@ -46,6 +46,7 @@
 import com.palantir.nexus.db.sql.AgnosticResultSetImpl;
 import com.palantir.nexus.db.sql.SqlConnection;
 import java.sql.Connection;
+import java.util.Arrays;
 import java.util.Collections;
 import java.util.List;
 import java.util.Map;
@@ -55,9 +56,14 @@
 import java.util.stream.IntStream;
 import org.junit.Before;
 import org.junit.Test;
+import org.junit.runner.RunWith;
 import org.mockito.ArgumentCaptor;
+import org.mockito.Mock;
+import org.mockito.Mock.Strictness;
+import org.mockito.junit.MockitoJUnitRunner;
 import org.mockito.stubbing.OngoingStubbing;
 
+@RunWith(MockitoJUnitRunner.class)
 public class OracleTableNameUnmapperTest {
 
     private static final String TEST_PREFIX = "a_";
@@ -68,21 +74,24 @@ public class OracleTableNameUnmapperTest {
     private static final TableReference TABLE_REF = TableReference.create(TEST_NAMESPACE, LONG_TABLE_NAME);
     private static final TableReference TABLE_REF_2 = TableReference.create(TEST_NAMESPACE, LONG_TABLE_NAME + "2");
 
-    private OracleTableNameUnmapper oracleTableNameUnmapper;
-    private AgnosticResultSet shortNameResultSet;
-    private ConnectionSupplier connectionSupplier;
-    private SqlConnection sqlConnection;
+    private final OracleTableNameUnmapper oracleTableNameUnmapper = new OracleTableNameUnmapper();
+
+    @Mock
+    AgnosticResultSet shortNameResultSet;
+
+    @Mock
+    ConnectionSupplier connectionSupplier;
+
+    @Mock(strictness = Strictness.LENIENT)
+    SqlConnection sqlConnection;
+
+    @Mock
+    Connection connection;
 
     @Before
     public void setup() {
-        connectionSupplier = mock(ConnectionSupplier.class);
-        oracleTableNameUnmapper = new OracleTableNameUnmapper();
-        sqlConnection = mock(SqlConnection.class);
-        Connection connection = mock(Connection.class);
         when(sqlConnection.getUnderlyingConnection()).thenReturn(connection);
         when(connectionSupplier.get()).thenReturn(sqlConnection);
-
-        shortNameResultSet = mock(AgnosticResultSet.class);
         when(sqlConnection.selectResultSetUnregisteredQuery(
                         startsWith("SELECT short_table_name FROM atlasdb_table_names WHERE table_name"), any()))
                 .thenReturn(shortNameResultSet);
@@ -135,7 +144,7 @@ public void cacheIsActuallyUsed() throws TableMappingNotFoundException {
 
     @Test
     public void getShortToLongTableNamesFromMappingTableReturnsLongNames() {
-        ArgumentCaptor<Object> tableNameCaptor = ArgumentCaptor.forClass(Object.class);
+        ArgumentCaptor<Object[]> tableNameCaptor = ArgumentCaptor.forClass(Object[].class);
         Map<String, String> shortNamesToLongNames = ImmutableMap.<String, String>builder()
                 .put("shortNameOne", "superLongNameOne")
                 .put("shortNameTwo", "superLongNameTwo")
@@ -153,7 +162,8 @@ public void getShortToLongTableNamesFromMappingTableReturnsLongNames() {
                                 + "(short_table_name) IN (" + generatePlaceholders(3) + ")"),
                         tableNameCaptor.capture());
 
-        assertThat(tableNameCaptor.getAllValues()).containsExactlyInAnyOrderElementsOf(shortNamesToLongNames.keySet());
+        assertThat(tableNameCaptor.getAllValues().stream().flatMap(Arrays::stream))
+                .containsExactlyInAnyOrderElementsOf(shortNamesToLongNames.keySet());
         verifyNoMoreInteractions(sqlConnection);
     }
 
@@ -174,15 +184,15 @@ public void getShortToLongTableNamesFromMappingTableDoesMultipleQueriesIfMoreTab
                         eq("SELECT short_table_name, table_name FROM atlasdb_table_names WHERE LOWER"
                                 + "(short_table_name) IN ("
                                 + generatePlaceholders(AtlasDbConstants.MINIMUM_IN_CLAUSE_EXPRESSION_LIMIT) + ")"),
-                        any());
+                        any(Object[].class));
         verify(sqlConnection)
                 .selectResultSetUnregisteredQuery(
                         eq("SELECT short_table_name, table_name FROM atlasdb_table_names WHERE LOWER"
                                 + "(short_table_name) IN ("
                                 + generatePlaceholders(
                                         numberOfEntries - AtlasDbConstants.MINIMUM_IN_CLAUSE_EXPRESSION_LIMIT)
                                 + ")"),
-                        any());
+                        any(Object[].class));
         verifyNoMoreInteractions(sqlConnection);
     }
 
@@ -221,11 +231,12 @@ public void getShortToLongTableNamesFromMappingReturnsEmptyMapIfMappingTableNotP
                 .isEmpty();
     }
 
-    private void mockShortNamesToLongNamesQuery(Map<String, String> shortTableNamesToLongTableNames) {
+    private OngoingStubbing<AgnosticResultSet> mockShortNamesToLongNamesQuery(
+            Map<String, String> shortTableNamesToLongTableNames) {
         OngoingStubbing<AgnosticResultSet> ongoingStubbing = when(sqlConnection.selectResultSetUnregisteredQuery(
                 startsWith("SELECT short_table_name, table_name FROM " + AtlasDbConstants.ORACLE_NAME_MAPPING_TABLE
                         + " WHERE LOWER(short_table_name)"),
-                any()));
+                any(Object[].class)));
 
         for (List<Entry<String, String>> batch : Iterables.partition(
                 shortTableNamesToLongTableNames.entrySet(), AtlasDbConstants.MINIMUM_IN_CLAUSE_EXPRESSION_LIMIT)) {
@@ -236,6 +247,7 @@ private void mockShortNamesToLongNamesQuery(Map<String, String> shortTableNamesT
                     DBType.ORACLE,
                     Map.of("short_table_name", 0, "SHORT_TABLE_NAME", 0, "table_name", 1, "TABLE_NAME", 1)));
         }
+        return ongoingStubbing;
     }
 
     private String generatePlaceholders(int numberOfPlaceholders) {u}(j*J  (8d3be841271bd5b738aeb04915dfea33129f9ecfjJ  tatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/knowledge/KnownAbandonedTransactionsImplTest.javajJ  modifiedjJ  KjJ  KjJ  K&jJ  https://github.com/palantir/atlasdb/blob/7cc5501bd242badcf433815b00b31d3574efa99c/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fknowledge%2FKnownAbandonedTransactionsImplTest.javajJ  https://github.com/palantir/atlasdb/raw/7cc5501bd242badcf433815b00b31d3574efa99c/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fknowledge%2FKnownAbandonedTransactionsImplTest.javajJ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fknowledge%2FKnownAbandonedTransactionsImplTest.java?ref=7cc5501bd242badcf433815b00b31d3574efa99cjJ  X{  @@ -18,8 +18,8 @@
 
 import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
 import static org.mockito.ArgumentMatchers.anyLong;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.times;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.atLeastOnce;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
@@ -32,16 +32,30 @@
 import java.util.Set;
 import java.util.stream.Collectors;
 import java.util.stream.LongStream;
+import org.junit.Before;
 import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
 
+@RunWith(MockitoJUnitRunner.class)
 public final class KnownAbandonedTransactionsImplTest {
-    private final AbandonedTimestampStore abandonedTimestampStore = mock(AbandonedTimestampStore.class);
-    private final AbandonedTransactionSoftCache softCache = mock(AbandonedTransactionSoftCache.class);
-    private final KnownAbandonedTransactionsImpl knownAbortedTransactions = new KnownAbandonedTransactionsImpl(
-            abandonedTimestampStore,
-            softCache,
-            new DefaultTaggedMetricRegistry(),
-            KnownAbandonedTransactionsImpl.MAXIMUM_CACHE_WEIGHT);
+    @Mock
+    AbandonedTimestampStore abandonedTimestampStore;
+
+    @Mock
+    AbandonedTransactionSoftCache softCache;
+
+    private KnownAbandonedTransactionsImpl knownAbortedTransactions;
+
+    @Before
+    public void before() {
+        knownAbortedTransactions = new KnownAbandonedTransactionsImpl(
+                abandonedTimestampStore,
+                softCache,
+                new DefaultTaggedMetricRegistry(),
+                KnownAbandonedTransactionsImpl.MAXIMUM_CACHE_WEIGHT);
+    }
 
     @Test
     public void testIsKnownAbortedReturnsTrueIfAbortedInSoftCache() {
@@ -141,7 +155,7 @@ public void testReliableCacheEvictsIfWeightLimitReached() {
         // First query for bucket 1 goes to the store
         knownAbortedTransactions.isKnownAbandoned(rangeForBucket.lowerEndpoint());
         verify(abandonedTimestampStore)
-                .getAbandonedTimestampsInRange(rangeForBucket.lowerEndpoint(), rangeForBucket.upperEndpoint());
+                .getAbandonedTimestampsInRange(eq(rangeForBucket.lowerEndpoint()), eq(rangeForBucket.upperEndpoint()));
 
         // Subsequent queries for bucket 1 are resolved from cache
         knownAbortedTransactions.isKnownAbandoned(rangeForBucket.lowerEndpoint());
@@ -155,8 +169,8 @@ public void testReliableCacheEvictsIfWeightLimitReached() {
 
         // Now the query for bucket 1 will go to the futile store due to cache eviction
         knownAbortedTransactions.isKnownAbandoned(rangeForBucket.lowerEndpoint());
-        verify(abandonedTimestampStore, times(2))
-                .getAbandonedTimestampsInRange(rangeForBucket.lowerEndpoint(), rangeForBucket.upperEndpoint());
+        verify(abandonedTimestampStore, atLeastOnce())
+                .getAbandonedTimestampsInRange(eq(rangeForBucket.lowerEndpoint()), eq(rangeForBucket.upperEndpoint()));
     }
 
     @Testu}(j*J  (c197825eb345ab238d541f81b6461fa6f76f3729jJ  \timelock-agent/src/test/java/com/palantir/atlasdb/timelock/paxos/PaxosRemoteClientsTest.javajJ  modifiedjJ  KjJ  KjJ  KjJ  https://github.com/palantir/atlasdb/blob/7cc5501bd242badcf433815b00b31d3574efa99c/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosRemoteClientsTest.javajJ  https://github.com/palantir/atlasdb/raw/7cc5501bd242badcf433815b00b31d3574efa99c/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosRemoteClientsTest.javajJ  https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosRemoteClientsTest.java?ref=7cc5501bd242badcf433815b00b31d3574efa99cjJ  X?  @@ -42,32 +42,33 @@
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.TemporaryFolder;
+import org.junit.runner.RunWith;
+import org.mockito.junit.MockitoJUnitRunner;
 
+@RunWith(MockitoJUnitRunner.class)
 @SuppressWarnings("DangerousIdentityKey")
 public class PaxosRemoteClientsTest {
     @Rule
     public final TemporaryFolder temporaryFolder = new TemporaryFolder();
 
-    private PaxosInstallConfiguration paxosInstallConfiguration;
-    private TimeLockInstallConfiguration installConfiguration;
     private PaxosResourcesFactory.TimelockPaxosInstallationContext context;
 
     @Before
     public void setUp() {
-        paxosInstallConfiguration = PaxosInstallConfiguration.builder()
+        PaxosInstallConfiguration paxosInstallConfiguration = PaxosInstallConfiguration.builder()
                 .isNewService(false)
                 .dataDirectory(temporaryFolder.getRoot())
                 .sqlitePersistence(SqlitePaxosPersistenceConfigurations.DEFAULT)
                 .leaderMode(PaxosInstallConfiguration.PaxosLeaderMode.SINGLE_LEADER)
                 .build();
-        installConfiguration = TimeLockInstallConfiguration.builder()
+        TimeLockInstallConfiguration installConfiguration = TimeLockInstallConfiguration.builder()
                 .paxos(paxosInstallConfiguration) // Normally awful, but too onerous to set up
                 .timestampBoundPersistence(
                         ImmutablePaxosTsBoundPersisterConfiguration.builder().build())
                 .build();
         TimeLockDialogueServiceProvider dialogueServiceProvider = mock(TimeLockDialogueServiceProvider.class);
         when(dialogueServiceProvider.createSingleNodeInstrumentedProxy(anyString(), any(), anyBoolean()))
-                .thenAnswer(invocation -> mock(invocation.getArgument(1)));
+                .thenAnswer(invocation -> mock(invocation.<Class<?>>getArgument(1)));
         context = ImmutableTimelockPaxosInstallationContext.builder()
                 .install(installConfiguration)
                 .cluster(ImmutableDefaultClusterConfiguration.builder()u}(j*J  (bd9f498a39c800f0e821ac0c3be99ee698af2e3ejJ  
versions.lockjJ  modifiedjJ  K?jJ  K?jJ  K~jJ  _https://github.com/palantir/atlasdb/blob/7cc5501bd242badcf433815b00b31d3574efa99c/versions.lockjJ  ^https://github.com/palantir/atlasdb/raw/7cc5501bd242badcf433815b00b31d3574efa99c/versions.lockjJ  qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=7cc5501bd242badcf433815b00b31d3574efa99cjJ  X5?  @@ -8,24 +8,24 @@ com.boundary:high-scale-lib:1.0.6 (2 constraints: 9d14d4a0)
 com.clearspring.analytics:stream:2.5.2 (1 constraints: 970f7788)
 com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
-com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c281d1b7)
-com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: b9b52971)
-com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 68ba1e86)
-com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e233de00)
-com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7f1c9ca4)
+com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c28159b8)
+com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bab50372)
+com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 01ba3a29)
+com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e133df00)
+com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7e1c9da4)
 com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2 (4 constraints: 2244332b)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 343f74b0)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6c308f5e)
-com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 322bf5af)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6c308f5e)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 333f21b0)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6b30665e)
+com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 312bccaf)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6b30665e)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 411979bb)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 40197abb)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.2 (2 constraints: 251d9309)
-com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9b1c97a6)
+com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9a1c98a6)
 com.fasterxml.jackson.module:jackson-module-blackbird:2.14.2 (1 constraints: b40e625e)
 com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.2 (2 constraints: db2e8469)
 com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.1 (13 constraints: 0dce07f2)
+com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 17cea3fd)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -45,11 +45,11 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (23 constraints: 8f781fe2)
+com.google.errorprone:error_prone_annotations:2.10.0 (23 constraints: a3788bf6)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
-com.google.guava:guava:31.1-jre (48 constraints: ad379dcf)
+com.google.guava:guava:31.1-jre (48 constraints: a337bcb3)
 com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava (1 constraints: bd17c918)
 com.google.j2objc:j2objc-annotations:1.3 (1 constraints: b809eda0)
 com.google.protobuf:protobuf-java:3.21.9 (1 constraints: 4105453b)
@@ -67,28 +67,28 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:6.66.0 (5 constraints: a554a26e)
-com.palantir.conjure.java:conjure-undertow-annotations:6.66.0 (1 constraints: 44056d3b)
-com.palantir.conjure.java:conjure-undertow-lib:6.66.0 (2 constraints: 891c6fb0)
-com.palantir.conjure.java.api:errors:2.29.0 (6 constraints: 5169d179)
-com.palantir.conjure.java.api:service-config:2.29.0 (5 constraints: 824d29cf)
-com.palantir.conjure.java.api:ssl-config:2.29.0 (3 constraints: ea2af7a5)
-com.palantir.conjure.java.runtime:client-config:7.39.0 (6 constraints: cc6b4639)
-com.palantir.conjure.java.runtime:conjure-java-annotations:7.39.0 (1 constraints: c918959e)
-com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.39.0 (2 constraints: cd21177b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.39.0 (6 constraints: 4a6ed294)
-com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.39.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.39.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.39.0 (1 constraints: c918959e)
-com.palantir.conjure.java.runtime:keystores:7.39.0 (3 constraints: 262aec60)
-com.palantir.conjure.java.runtime:refresh-utils:7.39.0 (2 constraints: 0d1e7745)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.71.0 (2 constraints: 7c294702)
-com.palantir.dialogue:dialogue-blocking-channels:3.71.0 (2 constraints: d523fdb2)
-com.palantir.dialogue:dialogue-clients:3.71.0 (1 constraints: 3d05503b)
-com.palantir.dialogue:dialogue-core:3.71.0 (3 constraints: 7a3de7e1)
-com.palantir.dialogue:dialogue-futures:3.71.0 (3 constraints: c833dcbc)
-com.palantir.dialogue:dialogue-serde:3.71.0 (3 constraints: b82e21a2)
-com.palantir.dialogue:dialogue-target:3.71.0 (7 constraints: 7d76f253)
+com.palantir.conjure.java:conjure-lib:6.68.0 (5 constraints: ab549471)
+com.palantir.conjure.java:conjure-undertow-annotations:6.68.0 (1 constraints: 44056d3b)
+com.palantir.conjure.java:conjure-undertow-lib:6.68.0 (2 constraints: 8b1c75b0)
+com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 41692d74)
+com.palantir.conjure.java.api:service-config:2.34.0 (5 constraints: 724d79ca)
+com.palantir.conjure.java.api:ssl-config:2.34.0 (3 constraints: e22a0da5)
+com.palantir.conjure.java.runtime:client-config:7.40.0 (6 constraints: bc6b702d)
+com.palantir.conjure.java.runtime:conjure-java-annotations:7.40.0 (1 constraints: c1187e9e)
+com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.40.0 (2 constraints: c521007b)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.40.0 (6 constraints: 386e9f88)
+com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.40.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.40.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.40.0 (1 constraints: c1187e9e)
+com.palantir.conjure.java.runtime:keystores:7.40.0 (3 constraints: 1e2a555f)
+com.palantir.conjure.java.runtime:refresh-utils:7.40.0 (2 constraints: 051e6045)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.74.0 (2 constraints: 7c29b801)
+com.palantir.dialogue:dialogue-blocking-channels:3.74.0 (2 constraints: db2399b3)
+com.palantir.dialogue:dialogue-clients:3.74.0 (1 constraints: 3d05503b)
+com.palantir.dialogue:dialogue-core:3.74.0 (3 constraints: 7d3d43e1)
+com.palantir.dialogue:dialogue-futures:3.74.0 (3 constraints: d13392be)
+com.palantir.dialogue:dialogue-serde:3.74.0 (3 constraints: b82e92a1)
+com.palantir.dialogue:dialogue-target:3.74.0 (7 constraints: 8976a556)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -98,27 +98,27 @@ com.palantir.goethe:goethe:0.9.0 (1 constraints: 0b050636)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
 com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
-com.palantir.safe-logging:logger:3.2.0 (23 constraints: 74886d78)
+com.palantir.safe-logging:logger:3.2.0 (23 constraints: 4e88492a)
 com.palantir.safe-logging:logger-slf4j:3.2.0 (1 constraints: 000e5942)
 com.palantir.safe-logging:logger-spi:3.2.0 (2 constraints: 0f1e997a)
-com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: 191828aa)
-com.palantir.safe-logging:safe-logging:3.2.0 (28 constraints: 34d3cb53)
+com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: f7178aeb)
+com.palantir.safe-logging:safe-logging:3.2.0 (28 constraints: 0cd34fc4)
 com.palantir.safethreadlocalrandom:safe-thread-local-random:0.1.0 (3 constraints: 933225f9)
 com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
-com.palantir.tokens:auth-tokens:3.16.0 (5 constraints: 445c018f)
-com.palantir.tracing:tracing:6.15.0 (8 constraints: eb7d2456)
-com.palantir.tracing:tracing-api:6.15.0 (5 constraints: 0f459cf3)
-com.palantir.tracing:tracing-jersey:6.15.0 (1 constraints: 441994bb)
-com.palantir.tritium:tritium-api:0.57.0 (6 constraints: 5c5223d4)
-com.palantir.tritium:tritium-caffeine:0.57.0 (1 constraints: 3e05483b)
-com.palantir.tritium:tritium-core:0.57.0 (5 constraints: 6743c520)
-com.palantir.tritium:tritium-lib:0.57.0 (1 constraints: 3e05483b)
-com.palantir.tritium:tritium-metrics:0.57.0 (7 constraints: 076c30e5)
-com.palantir.tritium:tritium-proxy:0.57.0 (1 constraints: 840e8859)
-com.palantir.tritium:tritium-registry:0.57.0 (12 constraints: 21d37368)
-com.palantir.tritium:tritium-slf4j:0.57.0 (2 constraints: c113e170)
-com.palantir.tritium:tritium-time:0.57.0 (1 constraints: 840e8859)
-com.palantir.tritium:tritium-tracing:0.57.0 (1 constraints: 840e8859)
+com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 455c618f)
+com.palantir.tracing:tracing:6.17.0 (8 constraints: f17d5057)
+com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 134502f4)
+com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 441994bb)
+com.palantir.tritium:tritium-api:0.64.0 (6 constraints: 5052c7ce)
+com.palantir.tritium:tritium-caffeine:0.64.0 (1 constraints: 3c05433b)
+com.palantir.tritium:tritium-core:0.64.0 (5 constraints: 5d43281d)
+com.palantir.tritium:tritium-lib:0.64.0 (1 constraints: 3c05433b)
+com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: e96b2dd3)
+com.palantir.tritium:tritium-proxy:0.64.0 (1 constraints: 820e8359)
+com.palantir.tritium:tritium-registry:0.64.0 (12 constraints: ecd2692c)
+com.palantir.tritium:tritium-slf4j:0.64.0 (2 constraints: bd138370)
+com.palantir.tritium:tritium-time:0.64.0 (1 constraints: 820e8359)
+com.palantir.tritium:tritium-tracing:0.64.0 (1 constraints: 820e8359)
 com.squareup:javapoet:1.13.0 (4 constraints: 102cc1ed)
 com.squareup:kotlinpoet:1.11.0 (1 constraints: 6a0c7f0d)
 com.thinkaurelius.thrift:thrift-server:0.3.7 (1 constraints: 980f6c88)
@@ -199,8 +199,8 @@ jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.1 (6 constraints: 8059c3f0)
 junit:junit:4.13.2 (8 constraints: 5a9c5baf)
-net.bytebuddy:byte-buddy:1.12.18 (3 constraints: a325ded3)
-net.bytebuddy:byte-buddy-agent:1.12.16 (1 constraints: 750baee9)
+net.bytebuddy:byte-buddy:1.14.3 (3 constraints: 3b259091)
+net.bytebuddy:byte-buddy-agent:1.14.1 (1 constraints: 410b3fde)
 net.java.dev.jna:jna:4.1.0 (2 constraints: 6e1bbbad)
 net.jpountz.lz4:lz4:1.3.0 (2 constraints: 971453a0)
 net.ltgt.gradle.incap:incap:0.2 (1 constraints: ea0d3b32)
@@ -215,7 +215,7 @@ org.apache.commons:commons-lang3:3.12.0 (8 constraints: 5873a6cf)
 org.apache.commons:commons-math3:3.2 (2 constraints: 90196ff8)
 org.apache.commons:commons-pool2:2.11.1 (1 constraints: 3705333b)
 org.apache.commons:commons-text:1.9 (1 constraints: b5102f9b)
-org.apache.httpcomponents.client5:httpclient5:5.2 (2 constraints: 1718ec73)
+org.apache.httpcomponents.client5:httpclient5:5.2.1 (2 constraints: 7618a7a4)
 org.apache.httpcomponents.core5:httpcore5:5.2 (3 constraints: 40388deb)
 org.apache.httpcomponents.core5:httpcore5-h2:5.2 (1 constraints: dd12c315)
 org.apache.thrift:libthrift:0.17.0 (4 constraints: 00372854)
@@ -224,7 +224,7 @@ org.assertj:assertj-guava:3.4.0 (1 constraints: 09050636)
 org.awaitility:awaitility:4.2.0 (2 constraints: c71a893b)
 org.caffinitas.ohc:ohc-core:0.3.4 (1 constraints: 950f6988)
 org.checkerframework:checker-compat-qual:2.5.5 (2 constraints: 1f1d1717)
-org.checkerframework:checker-qual:3.22.0 (3 constraints: 6b26c1e1)
+org.checkerframework:checker-qual:3.32.0 (3 constraints: 6c2607e2)
 org.clojure:clojure:1.8.0 (1 constraints: 0b050836)
 org.codehaus.groovy:groovy:2.5.14 (23 constraints: b55185ba)
 org.codehaus.groovy:groovy-cli-picocli:2.5.14 (5 constraints: d54e9017)
@@ -283,7 +283,7 @@ org.jboss.xnio:xnio-api:3.8.7.Final (2 constraints: 771a3146)
 org.jboss.xnio:xnio-nio:3.8.7.Final (1 constraints: c80dcb30)
 org.jdbi:jdbi3-core:3.30.0 (2 constraints: 0e10d5bf)
 org.jdbi:jdbi3-sqlobject:3.30.0 (1 constraints: 38053d3b)
-org.jetbrains:annotations:23.0.0 (3 constraints: 45257f15)
+org.jetbrains:annotations:23.0.0 (4 constraints: 0c35f637)
 org.jetbrains.kotlin:kotlin-reflect:1.6.10 (1 constraints: 360b7dd6)
 org.jetbrains.kotlin:kotlin-stdlib:1.7.0 (7 constraints: 07713968)
 org.jetbrains.kotlin:kotlin-stdlib-common:1.7.0 (1 constraints: 110f8b6b)
@@ -292,9 +292,9 @@ org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.0 (3 constraints: c125b5a3)
 org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.5.0 (1 constraints: 4b0ea44e)
 org.jvnet:animal-sniffer-annotation:1.0 (1 constraints: f20b95eb)
 org.mindrot:jbcrypt:0.4 (2 constraints: 4714f171)
-org.mockito:mockito-core:4.8.1 (2 constraints: 2e1643fd)
+org.mockito:mockito-core:5.2.0 (2 constraints: 51165c12)
 org.mpierce.metrics.reservoir:hdrhistogram-metrics-reservoir:1.1.3 (1 constraints: 0d10f991)
-org.objenesis:objenesis:3.2 (2 constraints: c61411ab)
+org.objenesis:objenesis:3.3 (2 constraints: c71412ab)
 org.openjdk.jmh:jmh-core:1.36 (2 constraints: f51525d9)
 org.openjdk.jmh:jmh-generator-annprocess:1.36 (1 constraints: de04fb30)
 org.ow2.asm:asm:7.1 (4 constraints: d71f9495)
@@ -308,7 +308,7 @@ org.rocksdb:rocksdbjni:7.7.3 (1 constraints: 13052636)
 org.slf4j:jcl-over-slf4j:1.7.36 (3 constraints: 492febed)
 org.slf4j:jul-to-slf4j:1.7.36 (1 constraints: b90e9c5e)
 org.slf4j:log4j-over-slf4j:1.7.36 (3 constraints: 492febed)
-org.slf4j:slf4j-api:1.7.36 (44 constraints: 79807531)
+org.slf4j:slf4j-api:1.7.36 (44 constraints: 8180995b)
 org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
 org.wildfly.common:wildfly-common:1.6.0.Final (3 constraints: 94236ea3)
 org.xerial:sqlite-jdbc:3.36.0 (1 constraints: 3e054f3b)
@@ -323,9 +323,9 @@ com.github.peterwippermann.junit4:parameterized-suite:1.1.0 (1 constraints: 0405
 com.github.stefanbirkner:system-rules:1.19.0 (1 constraints: 3d05443b)
 com.github.tomakehurst:wiremock-standalone:2.27.2 (1 constraints: 3f054a3b)
 com.google.code.findbugs:annotations:3.0.1 (1 constraints: 9e0aafc3)
-com.palantir.conjure.java.api:test-utils:2.29.0 (1 constraints: 3f054e3b)
+com.palantir.conjure.java.api:test-utils:2.34.0 (1 constraints: 3f054e3b)
 com.palantir.safe-logging:preconditions-assertj:3.2.0 (1 constraints: 07050036)
-com.palantir.tracing:tracing-test-utils:6.15.0 (1 constraints: 3e05563b)
+com.palantir.tracing:tracing-test-utils:6.17.0 (1 constraints: 3e05563b)
 com.spotify.dataenum:dataenum:1.4.1 (1 constraints: e9105ac1)
 com.thoughtworks.qdox:qdox:1.12.1 (1 constraints: 6d11f7d9)
 io.dropwizard:dropwizard-testing:2.1.2 (1 constraints: 0705fa35)u}(j*J  (4fcb3a69829d7035b7cb6c9b36591544f2d55a2djJ  versions.propsjJ  modifiedjJ  KjJ  KjJ  KjJ  `https://github.com/palantir/atlasdb/blob/7cc5501bd242badcf433815b00b31d3574efa99c/versions.propsjJ  _https://github.com/palantir/atlasdb/raw/7cc5501bd242badcf433815b00b31d3574efa99c/versions.propsjJ  rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=7cc5501bd242badcf433815b00b31d3574efa99cjJ  X`  @@ -36,7 +36,7 @@ com.palantir.refreshable:refreshable = 2.2.0
 com.palantir.safe-logging:* = 3.2.0
 com.palantir.sls.versions:* = 1.4.0
 com.palantir.tracing:* = 6.15.0
-com.palantir.tritium:* = 0.57.0
+com.palantir.tritium:* = 0.64.0
 com.squareup:javapoet = 1.13.0
 com.zaxxer:HikariCP = 5.0.1
 commons-cli:* = 1.5.0
@@ -73,7 +73,7 @@ org.jboss.threads:jboss-threads = 3.5.0.Final
 org.jdbi:* = 3.30.0
 org.jmock:jmock* = 2.12.0
 org.mindrot:jbcrypt = 0.4
-org.mockito:mockito-* = 4.8.1
+org.mockito:* = 5.2.0
 org.openjdk.jmh:* = 1.36
 org.reflections:reflections = 0.10.2
 org.rocksdb:rocksdbjni = 7.7.3ueu(6296cfa09fe5c25379df483505cba31f5ea01d03}(sha(6296cfa09fe5c25379df483505cba31f5ea01d03node_idEC_kwDOAjP5fdoAKDYyOTZjZmEwOWZlNWMyNTM3OWRmNDgzNTA1Y2JhMzFmNWVhMDFkMDMcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-03-24T09:14:20Zu	committer}(jJ  svc-autoreleasejJ  -pd-foundry-infrastructure-notify@palantir.comjJ  2023-03-24T09:14:20ZumessageAutorelease 0.821.0

[skip ci]tree}(jJ  (c972955dc6ece00e945b62a5611c393aed96b759url`https://api.github.com/repos/palantir/atlasdb/git/trees/c972955dc6ece00e945b62a5611c393aed96b759ujJ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6296cfa09fe5c25379df483505cba31f5ea01d03
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQdafIACgkQhbrR8ip7mDBTcwEA0o+0Bc75rxy96w7BII69quP/
S+ApcpIT+JBDxmWhxY8BALOa+5cU/Tc/NfcnTFZ9QiQoIFQ+EcQYCQIA8qlSk4B2
=lQPm
-----END PGP SIGNATURE-----
payloadX  tree c972955dc6ece00e945b62a5611c393aed96b759
parent aae42d0326b3625157f6c427524c568f225a7cc6
author Sam-Kramer <sam.c.kramer@gmail.com> 1679649260 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1679649260 +0000

Autorelease 0.821.0

[skip ci]uujJ  ^https://api.github.com/repos/palantir/atlasdb/commits/6296cfa09fe5c25379df483505cba31f5ea01d03html_urlShttps://github.com/palantir/atlasdb/commit/6296cfa09fe5c25379df483505cba31f5ea01d03comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6296cfa09fe5c25379df483505cba31f5ea01d03/commentsjJ  }(login
Sam-KrameridJ^2_ jJ  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jJ  'https://api.github.com/users/Sam-KramerjJ  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujJ  }(jJ  svc-autoreleasejJ  J(jJ  MDQ6VXNlcjUxNzE4MzQ2jJ  4https://avatars.githubusercontent.com/u/51718346?v=4jJ  h5jJ  ,https://api.github.com/users/svc-autoreleasejJ  "https://github.com/svc-autoreleasejJ  6https://api.github.com/users/svc-autorelease/followersjJ  Chttps://api.github.com/users/svc-autorelease/following{/other_user}jK  <https://api.github.com/users/svc-autorelease/gists{/gist_id}jK  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jK  :https://api.github.com/users/svc-autorelease/subscriptionsjK  1https://api.github.com/users/svc-autorelease/orgsj	K  2https://api.github.com/users/svc-autorelease/reposjK  =https://api.github.com/users/svc-autorelease/events{/privacy}j
K  <https://api.github.com/users/svc-autorelease/received_eventsjK  UserjK  uparents]}(jJ  (aae42d0326b3625157f6c427524c568f225a7cc6jJ  ^https://api.github.com/repos/palantir/atlasdb/commits/aae42d0326b3625157f6c427524c568f225a7cc6jJ  Shttps://github.com/palantir/atlasdb/commit/aae42d0326b3625157f6c427524c568f225a7cc6uastats}(totalK 	additionsK 	deletionsK ufiles]u(74f3aed48111437375e495a6adc2c39ba425ae89}(sha(74f3aed48111437375e495a6adc2c39ba425ae89node_idEC_kwDOAjP5fdoAKDc0ZjNhZWQ0ODExMTQzNzM3NWU0OTVhNmFkYzJjMzliYTQyNWFlODkcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-07-25T14:16:09Zu	committer}(j9K  Tom Petraccaj;K  tpetracca@palantir.comj=K  2023-07-25T14:16:09Zumessage-sigh, need to fix my intellij formatter setuptree}(j1K  (e9fc7554ec3167f53e41252eaf101a08a02f0b1aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/e9fc7554ec3167f53e41252eaf101a08a02f0b1aujIK  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/74f3aed48111437375e495a6adc2c39ba425ae89
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEHTC5rqjQ6qmsb7sZRnUGJaXvqFMFAmS/2SoACgkQRnUGJaXv
qFP6Agf+KMN/5JMgTqYCDqIScchLB7q0jYJP7qNfp75QQsMiN+xGOavE0alU0Any
4pZ6e5WEG/LapCnv8bfDSZvdRHu8PLs2MriQEVPPss6/4pFzKqOG4UO2GTFEFn5h
VphUiI8q+0R5kmSLbAloErhL8Djijl+H8tYxQer3tdBxKwEf40C7Syjm8a0cdT+M
AYTq0k9/Kk75QU+eBNFG156mRFa4co95DKGCdt7ENhIGCBNGjS1Z/9T/9Vr5kczY
GPVBhaje5JvZ1TzEnBGV6JkgUFXtm2EStWiejT7esuppNQhHe57shXSQODmcujcg
dSCeSkrcxODqlHdzBfNq3M0UVI+kNw==
=6ak/
-----END PGP SIGNATURE-----payloadX  tree e9fc7554ec3167f53e41252eaf101a08a02f0b1a
parent ddda5e7b273c35a17ded122a72211ed4d4032f67
author Tom Petracca <tpetracca@palantir.com> 1690294569 -0400
committer Tom Petracca <tpetracca@palantir.com> 1690294569 -0400

sigh, need to fix my intellij formatter setup
uujIK  ^https://api.github.com/repos/palantir/atlasdb/commits/74f3aed48111437375e495a6adc2c39ba425ae89html_urlShttps://github.com/palantir/atlasdb/commit/74f3aed48111437375e495a6adc2c39ba425ae89comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/74f3aed48111437375e495a6adc2c39ba425ae89/commentsj7K  }(login	tpetraccaidJ& j3K  MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5jIK  &https://api.github.com/users/tpetraccajWK  https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminuj?K  }(j\K  	tpetraccaj^K  J& j3K  MDQ6VXNlcjI1NTQzMjg=j`K  3https://avatars.githubusercontent.com/u/2554328?v=4jbK  h5jIK  &https://api.github.com/users/tpetraccajWK  https://github.com/tpetraccajeK  0https://api.github.com/users/tpetracca/followersjgK  =https://api.github.com/users/tpetracca/following{/other_user}jiK  6https://api.github.com/users/tpetracca/gists{/gist_id}jkK  =https://api.github.com/users/tpetracca/starred{/owner}{/repo}jmK  4https://api.github.com/users/tpetracca/subscriptionsjoK  +https://api.github.com/users/tpetracca/orgsjqK  ,https://api.github.com/users/tpetracca/reposjsK  7https://api.github.com/users/tpetracca/events{/privacy}juK  6https://api.github.com/users/tpetracca/received_eventsjwK  UserjyK  uparents]}(j1K  (ddda5e7b273c35a17ded122a72211ed4d4032f67jIK  ^https://api.github.com/repos/palantir/atlasdb/commits/ddda5e7b273c35a17ded122a72211ed4d4032f67jWK  Shttps://github.com/palantir/atlasdb/commit/ddda5e7b273c35a17ded122a72211ed4d4032f67uastats}(totalK	additionsK 	deletionsKufiles]}(j1K  (7ae9628a1aa681a335a310ddda27b83ca7bea00ffilenameratlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/SingleClientWithEmbeddedAndCassandraTestSuite.javastatusmodifiedjK  K jK  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/74f3aed48111437375e495a6adc2c39ba425ae89/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndCassandraTestSuite.javaraw_urlhttps://github.com/palantir/atlasdb/raw/74f3aed48111437375e495a6adc2c39ba425ae89/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndCassandraTestSuite.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndCassandraTestSuite.java?ref=74f3aed48111437375e495a6adc2c39ba425ae89patchX  @@ -17,9 +17,6 @@
 
 import com.palantir.atlasdb.containers.CassandraEnvironment;
 import com.palantir.atlasdb.ete.EteSetup;
-import com.palantir.atlasdb.ete.LockWithoutTimelockEteTest;
-import com.palantir.atlasdb.ete.MultiCassandraDoubleNodeDownEteTest;
-import com.palantir.atlasdb.ete.MultiCassandraSingleNodeDownEteTest;
 import com.palantir.atlasdb.ete.TimestampManagementEteTest;
 import com.palantir.atlasdb.ete.TodoEteTest;
 import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;uau(8ef3eec721ca9d99f65cda315f889069cf587b76}(sha(8ef3eec721ca9d99f65cda315f889069cf587b76node_idEC_kwDOAjP5fdoAKDhlZjNlZWM3MjFjYTlkOTlmNjVjZGEzMTVmODg5MDY5Y2Y1ODdiNzYcommit}(author}(nameMohammed Daudaliemailmdaudali@palantir.comdate2023-02-24T14:48:31Zu	committer}(jK  Mohammed DaudalijK  mdaudali@palantir.comjK  2023-02-24T14:48:31Zumessageupdate the commenttree}(jK  (39c36cd2c6700f6fd3ad784e3b0dfdc5764fe3d9url`https://api.github.com/repos/palantir/atlasdb/git/trees/39c36cd2c6700f6fd3ad784e3b0dfdc5764fe3d9ujK  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8ef3eec721ca9d99f65cda315f889069cf587b76
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE85NpmxiQII63+jWv1DJ7K5YIya0FAmP4zj8ACgkQ1DJ7K5YI
ya0wSwgAg2nuxiiQhvXHxbYR1V8Nxs5qfOE3Ldpx4PCEkgxcQybN6onUV4Ih8UQ8
Ia97Q7oofTuQKdWkzM51VyfcNrhwytkHlCqInhoaSX6/MYo4DPhRf6+pwiPtGOAt
SrAM275EecwPH7ZPcSWq4sKAVsUsYgJAHnQ5k+83hRGhfvPI+vLhgpDGFNUjIkpj
GAZil4BEyIeyzh1x8fUC7fNNKK0ROjdiidV1IttVvAT2U9aB8uq5YZM1i6F6oCEW
jOvhRnK/TnjShigqaqCEi5JqzELA9thMdmYsiTfQtj2jQPwd7254OdEaJSkc1Lw0
rhrlFW9MtDLuxVSb+OtklaUix0kDqA==
=3po/
-----END PGP SIGNATURE-----payloadtree 39c36cd2c6700f6fd3ad784e3b0dfdc5764fe3d9
parent e3164a479aa6dfd4338efeb8ffda57d10479aa54
author Mohammed Daudali <mdaudali@palantir.com> 1677250111 +0000
committer Mohammed Daudali <mdaudali@palantir.com> 1677250111 +0000

update the comment
uujK  ^https://api.github.com/repos/palantir/atlasdb/commits/8ef3eec721ca9d99f65cda315f889069cf587b76html_urlShttps://github.com/palantir/atlasdb/commit/8ef3eec721ca9d99f65cda315f889069cf587b76comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8ef3eec721ca9d99f65cda315f889069cf587b76/commentsjK  }(loginmdaudaliidJ jK  MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5jK  %https://api.github.com/users/mdaudalijK  https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminujK  }(jK  mdaudalijK  J jK  MDQ6VXNlcjE4MTI3NjQ=jK  3https://avatars.githubusercontent.com/u/1812764?v=4jK  h5jK  %https://api.github.com/users/mdaudalijK  https://github.com/mdaudalijK  /https://api.github.com/users/mdaudali/followersjK  <https://api.github.com/users/mdaudali/following{/other_user}jK  5https://api.github.com/users/mdaudali/gists{/gist_id}jK  <https://api.github.com/users/mdaudali/starred{/owner}{/repo}jK  3https://api.github.com/users/mdaudali/subscriptionsjK  *https://api.github.com/users/mdaudali/orgsjK  +https://api.github.com/users/mdaudali/reposjK  6https://api.github.com/users/mdaudali/events{/privacy}jK  5https://api.github.com/users/mdaudali/received_eventsjK  UserjK  uparents]}(jK  (e3164a479aa6dfd4338efeb8ffda57d10479aa54jK  ^https://api.github.com/repos/palantir/atlasdb/commits/e3164a479aa6dfd4338efeb8ffda57d10479aa54jK  Shttps://github.com/palantir/atlasdb/commit/e3164a479aa6dfd4338efeb8ffda57d10479aa54uastats}(totalK	additionsK	deletionsKufiles]}(jK  (7dc2c972817e9da2ea3e94da563a926776a4b435filenamegatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraTopologyValidator.javastatusmodifiedj
L  KjL  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/8ef3eec721ca9d99f65cda315f889069cf587b76/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.javaraw_urlhttps://github.com/palantir/atlasdb/raw/8ef3eec721ca9d99f65cda315f889069cf587b76/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.java?ref=8ef3eec721ca9d99f65cda315f889069cf587b76patchX;  @@ -170,7 +170,8 @@ Set<CassandraServer> getNewHostsWithInconsistentTopologies(
         }
 
         // If a consensus can be reached from the current servers, filter all new servers which have the same set of
-        // host ids. Accept dissent as such, but permit
+        // host ids. Accept dissent as such, but permit new servers if they are in quorum _and_ match the previously
+        // accepted set of host IDs
         ClusterTopologyResult topologyFromCurrentServers =
                 maybeGetConsistentClusterTopology(currentServersWithoutSoftFailures);
 uau(29630061b245c95b695009d55870f1b6bbf9414a}(sha(29630061b245c95b695009d55870f1b6bbf9414anode_idEC_kwDOAjP5fdoAKDI5NjMwMDYxYjI0NWM5NWI2OTUwMDlkNTU4NzBmMWI2YmJmOTQxNGEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-16T12:59:13Zu	committer}(j'L  
Sam Kramerj)L  skramer@palantir.comj+L  2023-03-21T12:43:34Zumessagenitstree}(jL  (7fa6680b62db8b69bf82aa2088d6758aff8e134durl`https://api.github.com/repos/palantir/atlasdb/git/trees/7fa6680b62db8b69bf82aa2088d6758aff8e134duj7L  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/29630061b245c95b695009d55870f1b6bbf9414a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQZpnYACgkQmPPOpKR4
XS2Ptwf/WU/Tju1K34jSIOF3x035Jt2B8S8f7w31gg0n8/qc/3jhwBQm/wZK0mEU
2GIIp03YFo7bq9HY1+gtXhc49fdqsdmi1WvWTU61TvaCGNY8nosLf6B+DMzMbzdQ
HzipHr+9RtFgthpdeX0s+6Y5v9RSKgU8zcrsgF8OSjSCM1TWQSSrMCAIH08aFHzO
iXv7RK+YHWcCdFChQLEGJdURPUx4MGuQ/ScVJ2zn0oZnG3KDoSMIDsPBkcXA0mTo
e+aNhtuQsrMK6EmV6JIJPlPcyRfJnnIhe3id9TsfhvDOPTqCQIfCtxG+WJME/xAg
W/uzQtpvrXeyZ7vmPM15iQiR/gmjuA==
=ozJX
-----END PGP SIGNATURE-----payloadtree 7fa6680b62db8b69bf82aa2088d6758aff8e134d
parent 01ee1fa08a8011685e5dba2a16ca05a5c1d93a9b
author Sam Kramer <skramer@palantir.com> 1678971553 +0000
committer Sam Kramer <skramer@palantir.com> 1679402614 +0000

nits
uuj7L  ^https://api.github.com/repos/palantir/atlasdb/commits/29630061b245c95b695009d55870f1b6bbf9414ahtml_urlShttps://github.com/palantir/atlasdb/commit/29630061b245c95b695009d55870f1b6bbf9414acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/29630061b245c95b695009d55870f1b6bbf9414a/commentsj%L  }(login
Sam-KrameridJ^2_ j!L  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j7L  'https://api.github.com/users/Sam-KramerjEL  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj-L  }(jJL  
Sam-KramerjLL  J^2_ j!L  MDQ6VXNlcjYyMzg4MTQ=jNL  3https://avatars.githubusercontent.com/u/6238814?v=4jPL  h5j7L  'https://api.github.com/users/Sam-KramerjEL  https://github.com/Sam-KramerjSL  1https://api.github.com/users/Sam-Kramer/followersjUL  >https://api.github.com/users/Sam-Kramer/following{/other_user}jWL  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jYL  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j[L  5https://api.github.com/users/Sam-Kramer/subscriptionsj]L  ,https://api.github.com/users/Sam-Kramer/orgsj_L  -https://api.github.com/users/Sam-Kramer/reposjaL  8https://api.github.com/users/Sam-Kramer/events{/privacy}jcL  7https://api.github.com/users/Sam-Kramer/received_eventsjeL  UserjgL  uparents]}(jL  (01ee1fa08a8011685e5dba2a16ca05a5c1d93a9bj7L  ^https://api.github.com/repos/palantir/atlasdb/commits/01ee1fa08a8011685e5dba2a16ca05a5c1d93a9bjEL  Shttps://github.com/palantir/atlasdb/commit/01ee1fa08a8011685e5dba2a16ca05a5c1d93a9buastats}(totalK،	additionsK~	deletionsKZufiles](}(jL  (0f96f3cf844228516724ba6130a17af48d9f6187filenamematlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javastatusmodifiedjL  KjL  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/29630061b245c95b695009d55870f1b6bbf9414a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/29630061b245c95b695009d55870f1b6bbf9414a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=29630061b245c95b695009d55870f1b6bbf9414apatchX  @@ -60,17 +60,19 @@ Map<TableReference, byte[]> toAtlasTables(Map<String, IsolationLevel> tables, Se
         checkIndexAndPrimaryTableNamesDoNotConflict(tables, indexTables);
         checkIndexesDoNotHaveDuplicateNames(indexTables);
 
-        Map<TableReference, ConflictHandler> atlasTables = EntryStream.of(tables)
+        Map<TableReference, ConflictHandler> atlasPrimaryTables = EntryStream.of(tables)
                 .mapKeys(this::createTableReference)
                 .mapValues(AtlasDbUtils::toConflictHandler)
                 .toMap();
-        return StreamEx.of(indexTables)
-                .mapToEntry(IndexTable::name, IndexTable::primaryTable)
+        Map<TableReference, ConflictHandler> atlasIndexTables = StreamEx.of(indexTables)
+                .mapToEntry(IndexTable::indexTableName, IndexTable::primaryTableName)
                 .mapKeys(this::createTableReference)
                 .mapValues(tables::get)
                 .mapValues(AtlasDbUtils::toConflictHandler)
                 .mapValues(AtlasDbUtils::toIndexConflictHandler)
-                .append(atlasTables)
+                .toMap();
+        return EntryStream.of(atlasPrimaryTables)
+                .append(atlasIndexTables)
                 .mapValues(AtlasDbUtils::tableMetadata)
                 .toMap();
     }
@@ -83,8 +85,10 @@ TableReference createTableReference(String tableName) {
     }
 
     private static void checkIndexesDoNotHaveDuplicateNames(Set<IndexTable> indexTables) {
-        Map<String, Long> countOfIndexNames =
-                StreamEx.of(indexTables).map(IndexTable::name).groupingBy(Function.identity(), Collectors.counting());
+        Map<String, Long> countOfIndexNames = indexTables.stream()
+                .map(IndexTable::indexTableName)
+                .map(String::toLowerCase)
+                .collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
         Set<String> duplicateTableIndexNames = EntryStream.of(countOfIndexNames)
                 .removeValues(value -> value <= 1)
                 .keys()
@@ -100,7 +104,7 @@ private static void checkIndexAndPrimaryTableNamesDoNotConflict(
             Map<String, IsolationLevel> tables, Set<IndexTable> indexTables) {
         Set<String> tableNames = tables.keySet();
         Set<String> indexTableNames =
-                StreamEx.of(indexTables).map(IndexTable::name).toSet();
+                StreamEx.of(indexTables).map(IndexTable::indexTableName).toSet();
         Set<String> conflictingTableNames = Sets.intersection(tableNames, indexTableNames);
         Preconditions.checkArgument(
                 conflictingTableNames.isEmpty(),
@@ -111,7 +115,7 @@ private static void checkIndexAndPrimaryTableNamesDoNotConflict(
     private static void checkIndexesReferenceExistingPrimaryTable(
             Map<String, IsolationLevel> tables, Set<IndexTable> indexTables) {
         Set<IndexTable> indexesWithUnknownPrimaryTables = StreamEx.of(indexTables)
-                .remove(indexTable -> tables.containsKey(indexTable.primaryTable()))
+                .remove(indexTable -> tables.containsKey(indexTable.primaryTableName()))
                 .toSet();
 
         Preconditions.checkArgument(u}(jL  (c48fdacd4f6f2f9005df823d2caca2b9b55acdbajL  gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RunOnceWorkflowRunner.javajL  modifiedjL  KjL  KjL  KjL  https://github.com/palantir/atlasdb/blob/29630061b245c95b695009d55870f1b6bbf9414a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRunOnceWorkflowRunner.javajL  https://github.com/palantir/atlasdb/raw/29630061b245c95b695009d55870f1b6bbf9414a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRunOnceWorkflowRunner.javajL  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRunOnceWorkflowRunner.java?ref=29630061b245c95b695009d55870f1b6bbf9414ajL  X  @@ -17,14 +17,24 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
 
 public enum RunOnceWorkflowRunner implements WorkflowRunner<Workflow> {
     INSTANCE;
 
+    private static final SafeLogger log = SafeLoggerFactory.get(RunOnceWorkflowRunner.class);
+
     @Override
     public void run(Workflow workflow, List<InvariantReporter<?>> invariants) {
         WorkflowHistory workflowHistory = workflow.run();
-        invariants.forEach(reporter -> reporter.report(workflowHistory));
+        invariants.forEach(reporter -> {
+            try {
+                reporter.report(workflowHistory);
+            } catch (RuntimeException e) {
+                log.error("Caught an exception when running and reporting an invariant.", e);
+            }
+        });
     }
 }u}(jL  (d23431ac2f81324533af6cc3914b2abc3a0b2e69jL  matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantTest.javajL  modifiedjL  K
jL  K
jL  KjL  https://github.com/palantir/atlasdb/blob/29630061b245c95b695009d55870f1b6bbf9414a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javajL  https://github.com/palantir/atlasdb/raw/29630061b245c95b695009d55870f1b6bbf9414a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javajL  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.java?ref=29630061b245c95b695009d55870f1b6bbf9414ajL  X  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
-import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
@@ -60,12 +60,12 @@ public void cellsExpectedToBeDeletedAreFound() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
                 ImmutableWitnessedTransaction.builder()
-                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
                 ImmutableWitnessedTransaction.builder()
-                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO))
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .build());
@@ -74,11 +74,11 @@ public void cellsExpectedToBeDeletedAreFound() {
                 .transactionStore(store)
                 .build();
 
-        store.readWrite(List.of(WriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_ONE)));
+        store.readWrite(List.of(WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE)));
         DurableWritesInvariant.INSTANCE.accept(history, mismatchingCells::set);
         assertThat(mismatchingCells.get())
                 .containsExactlyInAnyOrderEntriesOf(Map.of(
-                        TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_TWO),
+                        TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO),
                         MismatchedValue.of(Optional.of(VALUE_ONE), Optional.empty())));
     }
 
@@ -87,12 +87,12 @@ public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
                 ImmutableWitnessedTransaction.builder()
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
                 ImmutableWitnessedTransaction.builder()
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_TWO))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .build());
@@ -102,12 +102,12 @@ public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
                 .build();
 
         store.readWrite(List.of(
-                WriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE),
-                WriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_ONE)));
+                WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
+                WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE)));
         DurableWritesInvariant.INSTANCE.accept(history, mismatchingCells::set);
         assertThat(mismatchingCells.get())
                 .containsExactlyInAnyOrderEntriesOf(Map.of(
-                        TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_TWO),
+                        TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO),
                         MismatchedValue.of(Optional.of(VALUE_ONE), Optional.of(VALUE_TWO))));
     }
 }u}(jL  (51f41ef65396c2c3af8a2123ae8817095f01bbc9jL  {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporterTest.javajL  modifiedjL  KjL  KjL  K
jL  https://github.com/palantir/atlasdb/blob/29630061b245c95b695009d55870f1b6bbf9414a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporterTest.javajL  https://github.com/palantir/atlasdb/raw/29630061b245c95b695009d55870f1b6bbf9414a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporterTest.javajL  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporterTest.java?ref=29630061b245c95b695009d55870f1b6bbf9414ajL  X	  @@ -50,18 +50,21 @@ public void runIncreasesMetricsIfViolationsFound() {
                 TransactionManagers.createInMemory(Set.of()), Optional.of("keyspace"));
         TransactionStore store = factory.create(
                 Map.of(
-                        WorkloadTestHelpers.TABLE,
+                        WorkloadTestHelpers.TABLE_1,
                         IsolationLevel.SERIALIZABLE,
                         WorkloadTestHelpers.TABLE_2,
                         IsolationLevel.SERIALIZABLE),
-                Set.of(IndexTable.of(WorkloadTestHelpers.INDEX_TABLE, WorkloadTestHelpers.TABLE)));
+                Set.of(IndexTable.builder()
+                        .indexTableName(WorkloadTestHelpers.TABLE_1_INDEX_1)
+                        .primaryTableName(WorkloadTestHelpers.TABLE_1)
+                        .build()));
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
                 .transactionStore(store)
                 .history(List.of(ImmutableWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(
-                                WorkloadTestHelpers.TABLE,
+                                WorkloadTestHelpers.TABLE_1,
                                 WorkloadTestHelpers.WORKLOAD_CELL_ONE,
                                 WorkloadTestHelpers.VALUE_ONE))
                         .addActions(WitnessedWriteTransactionAction.of(
@@ -71,11 +74,11 @@ public void runIncreasesMetricsIfViolationsFound() {
                         .build()))
                 .build();
         reporter.report(workflowHistory);
-        assertThat(getViolationCount(WorkloadTestHelpers.WORKFLOW, WorkloadTestHelpers.TABLE))
+        assertThat(getViolationCount(WorkloadTestHelpers.WORKFLOW, WorkloadTestHelpers.TABLE_1))
                 .isEqualTo(1);
         assertThat(getViolationCount(WorkloadTestHelpers.WORKFLOW, WorkloadTestHelpers.TABLE_2))
                 .isEqualTo(1);
-        assertThat(getViolationCount(WorkloadTestHelpers.WORKFLOW, WorkloadTestHelpers.INDEX_TABLE))
+        assertThat(getViolationCount(WorkloadTestHelpers.WORKFLOW, WorkloadTestHelpers.TABLE_1_INDEX_1))
                 .isEqualTo(0);
     }
 u}(jL  (8e1683d6cb1dd253a8b3fa9f8cf0783d3e779d76jL  iatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/server/RunOnceWorkflowRunnerTest.javajL  modifiedjL  KjL  KjL  K	jL  https://github.com/palantir/atlasdb/blob/29630061b245c95b695009d55870f1b6bbf9414a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.javajL  https://github.com/palantir/atlasdb/raw/29630061b245c95b695009d55870f1b6bbf9414a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.javajL  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.java?ref=29630061b245c95b695009d55870f1b6bbf9414ajL  X  @@ -31,9 +31,12 @@ public class RunOnceWorkflowRunnerTest {
     @Test
     public void runExecutesWorkflowsAndInvokesInvariantReporter() {
         Workflow exampleWorkflow = mock(Workflow.class);
-        InvariantReporter<Void> exampleInvariantReporter = mock(InvariantReporter.class);
-        RunOnceWorkflowRunner.INSTANCE.run(exampleWorkflow, List.of(exampleInvariantReporter));
+        InvariantReporter<Void> exampleInvariantReporterOne = mock(InvariantReporter.class);
+        InvariantReporter<Void> exampleInvariantReporterTwo = mock(InvariantReporter.class);
+        RunOnceWorkflowRunner.INSTANCE.run(
+                exampleWorkflow, List.of(exampleInvariantReporterOne, exampleInvariantReporterTwo));
         verify(exampleWorkflow, times(1)).run();
-        verify(exampleInvariantReporter, times(1)).report(any());
+        verify(exampleInvariantReporterOne, times(1)).report(any());
+        verify(exampleInvariantReporterTwo, times(1)).report(any());
     }
 }u(     }(jL  (616a80ba5c7bdf17efd3898b48f3da19e70b7952jL  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactoryTest.javajL  modifiedjL  K$jL  KjL  KAjL  https://github.com/palantir/atlasdb/blob/29630061b245c95b695009d55870f1b6bbf9414a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactoryTest.javajL  https://github.com/palantir/atlasdb/raw/29630061b245c95b695009d55870f1b6bbf9414a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactoryTest.javajL  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactoryTest.java?ref=29630061b245c95b695009d55870f1b6bbf9414ajL  X&  @@ -42,16 +42,16 @@ public void createWillCreateProvidedTablesAndIndexes() {
                 transactionManager,
                 Optional.of(WorkloadTestHelpers.TABLE_REFERENCE.getNamespace().getName()));
         factory.create(
-                Map.of(WorkloadTestHelpers.TABLE, IsolationLevel.SERIALIZABLE),
-                Set.of(IndexTable.of(WorkloadTestHelpers.INDEX_TABLE, WorkloadTestHelpers.TABLE)));
+                Map.of(WorkloadTestHelpers.TABLE_1, IsolationLevel.SERIALIZABLE),
+                Set.of(createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_1)));
         assertThat(transactionManager.getKeyValueService().getAllTableNames())
                 .contains(WorkloadTestHelpers.TABLE_REFERENCE, WorkloadTestHelpers.INDEX_REFERENCE);
     }
 
     @Test
     public void createTableReferenceWithEmptyNamespaceIfNoNamespaceProvided() {
         assertThat(defaultFactory
-                        .createTableReference(WorkloadTestHelpers.TABLE)
+                        .createTableReference(WorkloadTestHelpers.TABLE_1)
                         .getNamespace()
                         .isEmptyNamespace())
                 .isTrue();
@@ -61,62 +61,62 @@ public void createTableReferenceWithEmptyNamespaceIfNoNamespaceProvided() {
     public void createTableReferenceHasNamespaceWhenProvided() {
         AtlasDbTransactionStoreFactory factory = new AtlasDbTransactionStoreFactory(
                 transactionManager, Optional.of(WorkloadTestHelpers.NAMESPACE.getName()));
-        assertThat(factory.createTableReference(WorkloadTestHelpers.TABLE).getNamespace())
+        assertThat(factory.createTableReference(WorkloadTestHelpers.TABLE_1).getNamespace())
                 .isEqualTo(WorkloadTestHelpers.NAMESPACE);
     }
 
     @Test
     public void toAtlasTablesConvertsSerializableTablesCorrectly() {
         assertThat(defaultFactory.toAtlasTables(
-                        Map.of(WorkloadTestHelpers.TABLE, IsolationLevel.SERIALIZABLE), Set.of()))
+                        Map.of(WorkloadTestHelpers.TABLE_1, IsolationLevel.SERIALIZABLE), Set.of()))
                 .containsExactlyInAnyOrderEntriesOf(Map.of(
-                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1),
                         AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
     }
 
     @Test
     public void toAtlasTablesConvertsSerializableIndexTablesCorrectly() {
         assertThat(defaultFactory.toAtlasTables(
-                        Map.of(WorkloadTestHelpers.TABLE, IsolationLevel.SERIALIZABLE),
-                        Set.of(IndexTable.of(WorkloadTestHelpers.INDEX_TABLE, WorkloadTestHelpers.TABLE))))
+                        Map.of(WorkloadTestHelpers.TABLE_1, IsolationLevel.SERIALIZABLE),
+                        Set.of(createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_1))))
                 .containsExactlyInAnyOrderEntriesOf(Map.of(
-                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1),
                         AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
-                        defaultFactory.createTableReference(WorkloadTestHelpers.INDEX_TABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1_INDEX_1),
                         AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE)));
     }
 
     @Test
     public void toAtlasTablesHandlesMultipleTablesAndIndexesCorrectly() {
         assertThat(defaultFactory.toAtlasTables(
                         Map.of(
-                                WorkloadTestHelpers.TABLE,
+                                WorkloadTestHelpers.TABLE_1,
                                 IsolationLevel.SERIALIZABLE,
                                 WorkloadTestHelpers.TABLE_2,
                                 IsolationLevel.SNAPSHOT),
                         Set.of(
-                                IndexTable.of(WorkloadTestHelpers.INDEX_TABLE, WorkloadTestHelpers.TABLE),
-                                IndexTable.of(WorkloadTestHelpers.INDEX_2_TABLE, WorkloadTestHelpers.TABLE),
-                                IndexTable.of(WorkloadTestHelpers.INDEX_TABLE_2, WorkloadTestHelpers.TABLE_2))))
+                                createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_1),
+                                createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_2, WorkloadTestHelpers.TABLE_1),
+                                createIndexTable(WorkloadTestHelpers.TABLE_2_INDEX_1, WorkloadTestHelpers.TABLE_2))))
                 .containsExactlyInAnyOrderEntriesOf(Map.of(
-                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1),
                         AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
-                        defaultFactory.createTableReference(WorkloadTestHelpers.INDEX_TABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1_INDEX_1),
                         AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE),
-                        defaultFactory.createTableReference(WorkloadTestHelpers.INDEX_2_TABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1_INDEX_2),
                         AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE),
                         defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_2),
                         AtlasDbUtils.tableMetadata(ConflictHandler.RETRY_ON_WRITE_WRITE),
-                        defaultFactory.createTableReference(WorkloadTestHelpers.INDEX_TABLE_2),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_2_INDEX_1),
                         AtlasDbUtils.tableMetadata(ConflictHandler.IGNORE_ALL)));
     }
 
     @Test
     public void throwsWhenIndexReferencesUnknownPrimaryTable() {
-        IndexTable goodIndexTable = IndexTable.of(WorkloadTestHelpers.INDEX_2_TABLE, WorkloadTestHelpers.TABLE);
-        IndexTable badIndexTable = IndexTable.of(WorkloadTestHelpers.INDEX_TABLE, "blah");
+        IndexTable goodIndexTable = createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_2, WorkloadTestHelpers.TABLE_1);
+        IndexTable badIndexTable = createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, "blah");
         assertThatLoggableExceptionThrownBy(() -> defaultFactory.create(
-                        Map.of(WorkloadTestHelpers.TABLE, IsolationLevel.SERIALIZABLE),
+                        Map.of(WorkloadTestHelpers.TABLE_1, IsolationLevel.SERIALIZABLE),
                         Set.of(goodIndexTable, badIndexTable)))
                 .hasMessageContaining("Found indexes which reference an unknown primary table")
                 .hasExactlyArgs(SafeArg.of("indexesWithUnknownPrimaryTables", Set.of(badIndexTable)));
@@ -126,27 +126,34 @@ public void throwsWhenIndexReferencesUnknownPrimaryTable() {
     public void throwsWhenPrimaryAndIndexTableHaveConflictingNames() {
         assertThatLoggableExceptionThrownBy(() -> defaultFactory.create(
                         Map.of(
-                                WorkloadTestHelpers.TABLE,
+                                WorkloadTestHelpers.TABLE_1,
                                 IsolationLevel.SERIALIZABLE,
-                                WorkloadTestHelpers.INDEX_TABLE,
+                                WorkloadTestHelpers.TABLE_1_INDEX_1,
                                 IsolationLevel.SERIALIZABLE),
-                        Set.of(IndexTable.of(WorkloadTestHelpers.TABLE, WorkloadTestHelpers.INDEX_TABLE))))
+                        Set.of(createIndexTable(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.TABLE_1_INDEX_1))))
                 .hasMessageContaining("Found indexes which have the same name as primary tables")
-                .hasExactlyArgs(SafeArg.of("conflictingTableNames", Set.of(WorkloadTestHelpers.TABLE)));
+                .hasExactlyArgs(SafeArg.of("conflictingTableNames", Set.of(WorkloadTestHelpers.TABLE_1)));
     }
 
     @Test
     public void throwsWhenIndexTablesHaveDuplicateNames() {
         assertThatLoggableExceptionThrownBy(() -> defaultFactory.create(
                         Map.of(
-                                WorkloadTestHelpers.TABLE,
+                                WorkloadTestHelpers.TABLE_1,
                                 IsolationLevel.SERIALIZABLE,
                                 WorkloadTestHelpers.TABLE_2,
                                 IsolationLevel.SERIALIZABLE),
                         Set.of(
-                                IndexTable.of(WorkloadTestHelpers.INDEX_TABLE, WorkloadTestHelpers.TABLE),
-                                IndexTable.of(WorkloadTestHelpers.INDEX_TABLE, WorkloadTestHelpers.TABLE_2))))
+                                createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_1),
+                                createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_2))))
                 .hasMessageContaining("Found index tables with the same name")
-                .hasExactlyArgs(SafeArg.of("duplicateTableIndexNames", Set.of(WorkloadTestHelpers.INDEX_TABLE)));
+                .hasExactlyArgs(SafeArg.of("duplicateTableIndexNames", Set.of(WorkloadTestHelpers.TABLE_1_INDEX_1)));
+    }
+
+    private IndexTable createIndexTable(String indexTableName, String primaryTableName) {
+        return IndexTable.builder()
+                .indexTableName(indexTableName)
+                .primaryTableName(primaryTableName)
+                .build();
     }
 }u}(jL  (3ebff159b66faf4e21287665a710c5af8e995ae5jL  jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javajL  modifiedjL  KjL  KjL  K"jL  https://github.com/palantir/atlasdb/blob/29630061b245c95b695009d55870f1b6bbf9414a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajL  https://github.com/palantir/atlasdb/raw/29630061b245c95b695009d55870f1b6bbf9414a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajL  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=29630061b245c95b695009d55870f1b6bbf9414ajL  X  @@ -17,8 +17,8 @@
 package com.palantir.atlasdb.workload.store;
 
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.INDEX_REFERENCE;
-import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.INDEX_TABLE;
-import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1_INDEX_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
@@ -79,23 +79,23 @@ public void createsTables() {
     @Test
     public void canWriteDataToStore() {
         Optional<WitnessedTransaction> witnessedTransactionPrimaryTable =
-                store.readWrite(List.of(WriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE)));
+                store.readWrite(List.of(WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE)));
         Optional<WitnessedTransaction> witnessedTransactionIndexTable =
-                store.readWrite(List.of(WriteTransactionAction.of(INDEX_TABLE, WORKLOAD_CELL_TWO, VALUE_ONE)));
+                store.readWrite(List.of(WriteTransactionAction.of(TABLE_1_INDEX_1, WORKLOAD_CELL_TWO, VALUE_ONE)));
         assertThat(witnessedTransactionPrimaryTable).isPresent();
         assertThat(witnessedTransactionIndexTable).isPresent();
-        assertThat(store.get(TABLE, WORKLOAD_CELL_ONE)).contains(VALUE_ONE);
-        assertThat(store.get(INDEX_TABLE, WORKLOAD_CELL_TWO)).contains(VALUE_ONE);
+        assertThat(store.get(TABLE_1, WORKLOAD_CELL_ONE)).contains(VALUE_ONE);
+        assertThat(store.get(TABLE_1_INDEX_1, WORKLOAD_CELL_TWO)).contains(VALUE_ONE);
     }
 
     @Test
     public void witnessedTransactionMaintainsOrder() {
         List<WitnessedTransactionAction> actions = List.of(
-                WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, 100),
-                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, Optional.of(100)),
-                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL_THREE, Optional.empty()),
-                WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, 24),
-                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, Optional.of(24)));
+                WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, 100),
+                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, Optional.of(100)),
+                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_THREE, Optional.empty()),
+                WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, 24),
+                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(24)));
         Optional<WitnessedTransaction> maybeTransaction = store.readWrite(actions.stream()
                 .map(action -> action.accept(WitnessToActionVisitor.INSTANCE))
                 .collect(Collectors.toList()));
@@ -107,16 +107,16 @@ public void witnessedTransactionMaintainsOrder() {
 
     @Test
     public void readWriteHandlesAllTransactionTypes() {
-        store.readWrite(List.of(WriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE)));
-        assertThat(store.readWrite(List.of(ReadTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))))
+        store.readWrite(List.of(WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE)));
+        assertThat(store.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isPresent()
                 .map(WitnessedTransaction::actions)
                 .map(Iterables::getOnlyElement)
                 .map(WitnessedReadTransactionAction.class::cast)
                 .map(WitnessedReadTransactionAction::value)
                 .contains(Optional.of(VALUE_ONE));
-        store.readWrite(List.of(DeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE)));
-        assertThat(store.get(TABLE, WORKLOAD_CELL_ONE)).isEmpty();
+        store.readWrite(List.of(DeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
+        assertThat(store.get(TABLE_1, WORKLOAD_CELL_ONE)).isEmpty();
     }
 
     @Test
@@ -134,14 +134,14 @@ public void readWriteReturnsEmptyWhenExceptionThrown() {
         when(transactionManager.runTaskWithRetry(any())).thenThrow(new RuntimeException());
         AtlasDbTransactionStore transactionStore = AtlasDbTransactionStore.create(
                 transactionManager, Map.of(TABLE_REFERENCE, AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
-        assertThat(transactionStore.readWrite(List.of(ReadTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))))
+        assertThat(transactionStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isEmpty();
     }
 
     @Test
     public void readWriteHandlesReadOnlyTransaction() {
         Optional<WitnessedTransaction> witnessedTransaction =
-                store.readWrite(List.of(ReadTransactionAction.of(TABLE, WORKLOAD_CELL_ONE)));
+                store.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
         assertThat(witnessedTransaction).isPresent();
         assertThat(witnessedTransaction.get().commitTimestamp()).isEmpty();
     }u}(jL  (304e65e341fff032a9ecbda7327c1b4af412990ejL  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javajL  modifiedjL  K	jL  K	jL  KjL  https://github.com/palantir/atlasdb/blob/29630061b245c95b695009d55870f1b6bbf9414a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javajL  https://github.com/palantir/atlasdb/raw/29630061b245c95b695009d55870f1b6bbf9414a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javajL  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=29630061b245c95b695009d55870f1b6bbf9414ajL  X  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_ONE;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_TWO;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
@@ -42,12 +42,12 @@ public void writeActionsPersistValues() {
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_TWO))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
                         .build()));
         assertThat(store.values().toJavaMap())
                 .containsExactlyInAnyOrderEntriesOf(Map.of(
@@ -63,13 +63,13 @@ public void deleteActionsPutsEmptyOptionalForCell() {
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE))
                         .build(),
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
-                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .build()));
         assertThat(store.values().toJavaMap())
                 .containsExactlyInAnyOrderEntriesOf(Map.of(
@@ -82,17 +82,17 @@ public void writesDeletesAreProcessedInOrder() {
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
-                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .build(),
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(5)
                         .commitTimestamp(6)
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_TWO))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_TWO))
                         .build()));
         assertThat(store.values().toJavaMap())
                 .containsExactlyInAnyOrderEntriesOf(Map.of(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_TWO)));u}(jL  (955d7f7215e9fbbffa22ce353aa014fca3e1849cjL  hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javajL  modifiedjL  KjL  KjL  KjL  https://github.com/palantir/atlasdb/blob/29630061b245c95b695009d55870f1b6bbf9414a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javajL  https://github.com/palantir/atlasdb/raw/29630061b245c95b695009d55870f1b6bbf9414a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javajL  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=29630061b245c95b695009d55870f1b6bbf9414ajL  X  @@ -23,16 +23,16 @@
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 
 public final class WorkloadTestHelpers {
-    public static final String TABLE = "foo";
+    public static final String TABLE_1 = "foo";
 
     public static final String TABLE_2 = "bar";
-    public static final String INDEX_TABLE = TABLE + "_index";
+    public static final String TABLE_1_INDEX_1 = TABLE_1 + "_index";
 
-    public static final String INDEX_2_TABLE = TABLE + "_index_2";
-    public static final String INDEX_TABLE_2 = TABLE_2 + "_index";
-    public static final TableReference TABLE_REFERENCE = TableReference.create(Namespace.DEFAULT_NAMESPACE, TABLE);
+    public static final String TABLE_1_INDEX_2 = TABLE_1 + "_index_2";
+    public static final String TABLE_2_INDEX_1 = TABLE_2 + "_index";
+    public static final TableReference TABLE_REFERENCE = TableReference.create(Namespace.DEFAULT_NAMESPACE, TABLE_1);
     public static final TableReference INDEX_REFERENCE =
-            TableReference.create(TABLE_REFERENCE.getNamespace(), INDEX_TABLE);
+            TableReference.create(TABLE_REFERENCE.getNamespace(), TABLE_1_INDEX_1);
 
     public static final Namespace NAMESPACE = Namespace.create("workload");
     public static final WorkloadCell WORKLOAD_CELL_ONE = ImmutableWorkloadCell.of(50, 10);
@@ -42,8 +42,8 @@ public final class WorkloadTestHelpers {
     public static final Integer VALUE_ONE = 541;
     public static final Integer VALUE_TWO = 334;
     public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_ONE =
-            TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_ONE);
+            TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_ONE);
     public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
-            TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_TWO);
+            TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO);
     public static final String WORKFLOW = "example-workflow";
 }u}(jL  (c09467b6d6f4e762d6c4c365ffa0ba54a464e80ejL  ^atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/util/AtlasDbUtilsTest.javajL  modifiedjL  K	jL  K jL  K	jL  https://github.com/palantir/atlasdb/blob/29630061b245c95b695009d55870f1b6bbf9414a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtilsTest.javajL  https://github.com/palantir/atlasdb/raw/29630061b245c95b695009d55870f1b6bbf9414a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtilsTest.javajL  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtilsTest.java?ref=29630061b245c95b695009d55870f1b6bbf9414ajL  X  @@ -21,6 +21,7 @@
 import com.google.protobuf.InvalidProtocolBufferException;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
 import org.junit.Test;
 
 public class AtlasDbUtilsTest {
@@ -43,4 +44,12 @@ public void indexMetadataUsesTheCorrectConflictHandler() throws InvalidProtocolB
                         .getConflictHandler())
                 .isEqualTo(TableMetadataPersistence.TableConflictHandler.IGNORE_ALL);
     }
+
+    @Test
+    public void toConflictHandlerHandlesAllIsolationLevelCases() {
+        assertThat(AtlasDbUtils.toConflictHandler(IsolationLevel.NONE)).isEqualTo(ConflictHandler.IGNORE_ALL);
+        assertThat(AtlasDbUtils.toConflictHandler(IsolationLevel.SNAPSHOT))
+                .isEqualTo(ConflictHandler.RETRY_ON_WRITE_WRITE);
+        assertThat(AtlasDbUtils.toConflictHandler(IsolationLevel.SERIALIZABLE)).isEqualTo(ConflictHandler.SERIALIZABLE);
+    }
 }ueu(917643bf256eb5be972c391aaf8502a993fa7c5e}(sha(917643bf256eb5be972c391aaf8502a993fa7c5enode_idEC_kwDOAjP5fdoAKDkxNzY0M2JmMjU2ZWI1YmU5NzJjMzkxYWFmODUwMmE5OTNmYTdjNWUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-11T14:20:15Zu	committer}(jL  
Sam KramerjL  skramer@palantir.comjL  2023-04-11T14:20:15Zumessage$Make SerializableInvariantTest finaltree}(jL  (ea16cb100464cc270f5abe6b2a203df47656e450url`https://api.github.com/repos/palantir/atlasdb/git/trees/ea16cb100464cc270f5abe6b2a203df47656e450ujL  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/917643bf256eb5be972c391aaf8502a993fa7c5e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ1bJ8ACgkQmPPOpKR4
XS0MYwf+Pyqt1pom799AfkvbFDoHJvTE5X9U0aUX+lYQMUk+vDT98KYd+TuRRaHS
u+8BQaGShlTJX9LX5fN1LDxc6egCDoIrDoUdNn9sLCpMvnMwB1ZXqY4SQKPUuBCm
gF2AcMElg2VRHl0SlXOxz7nsgEOdfLqvFDouCOMeTzN/UzyRq1RaYSINzIhqZFDW
ZGebb5U5o0oCbrd3zGW1t4swqjx2PwIntHQCWmhfZJ6Au1MNSbEZRlW2T1pyY4lQ
H6wx6E0wFQyOTCBy6y9qROY1ZOq7eBvO/vQ+z+z/+s8BaY0bIZeUbmtJmfq1Bqup
L4uVY222l8ojxAXavX1LYIlIzSdrFw==
=pJ/a
-----END PGP SIGNATURE-----payloadtree ea16cb100464cc270f5abe6b2a203df47656e450
parent 8d02ab680106302835a8b062d0f4377a407e6e0e
author Sam Kramer <skramer@palantir.com> 1681222815 +0100
committer Sam Kramer <skramer@palantir.com> 1681222815 +0100

Make SerializableInvariantTest final
uujL  ^https://api.github.com/repos/palantir/atlasdb/commits/917643bf256eb5be972c391aaf8502a993fa7c5ehtml_urlShttps://github.com/palantir/atlasdb/commit/917643bf256eb5be972c391aaf8502a993fa7c5ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/917643bf256eb5be972c391aaf8502a993fa7c5e/commentsjL  }(login
Sam-KrameridJ^2_ jL  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jL  'https://api.github.com/users/Sam-KramerjM  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujL  }(j	M  
Sam-KramerjM  J^2_ jL  MDQ6VXNlcjYyMzg4MTQ=j
M  3https://avatars.githubusercontent.com/u/6238814?v=4jM  h5jL  'https://api.github.com/users/Sam-KramerjM  https://github.com/Sam-KramerjM  1https://api.github.com/users/Sam-Kramer/followersjM  >https://api.github.com/users/Sam-Kramer/following{/other_user}jM  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jM  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jM  5https://api.github.com/users/Sam-Kramer/subscriptionsjM  ,https://api.github.com/users/Sam-Kramer/orgsjM  -https://api.github.com/users/Sam-Kramer/reposj M  8https://api.github.com/users/Sam-Kramer/events{/privacy}j"M  7https://api.github.com/users/Sam-Kramer/received_eventsj$M  Userj&M  uparents]}(jL  (8d02ab680106302835a8b062d0f4377a407e6e0ejL  ^https://api.github.com/repos/palantir/atlasdb/commits/8d02ab680106302835a8b062d0f4377a407e6e0ejM  Shttps://github.com/palantir/atlasdb/commit/8d02ab680106302835a8b062d0f4377a407e6e0euastats}(totalK	additionsK	deletionsKufiles]}(jL  (33769b4f632f61bca23f0dee13f3c5dd24a8b0bbfilenamelatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javastatusmodifiedj@M  KjAM  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/917643bf256eb5be972c391aaf8502a993fa7c5e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/917643bf256eb5be972c391aaf8502a993fa7c5e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=917643bf256eb5be972c391aaf8502a993fa7c5epatchX  @@ -35,7 +35,7 @@
 import org.mockito.junit.MockitoJUnitRunner;
 
 @RunWith(MockitoJUnitRunner.class)
-public class SerializableInvariantTest {
+public final class SerializableInvariantTest {
 
     @Mock
     private ReadableTransactionStore readableTransactionStore;uau(4cf7532845968136b0ce456458e94fca49042c7d}(sha(4cf7532845968136b0ce456458e94fca49042c7dnode_idEC_kwDOAjP5fdoAKDRjZjc1MzI4NDU5NjgxMzZiMGNlNDU2NDU4ZTk0ZmNhNDkwNDJjN2Qcommit}(author}(name
Samuel Krameremailskramer@palantir.comdate2023-04-14T14:44:27Zu	committer}(j]M  
Samuel Kramerj_M  skramer@palantir.comjaM  2023-04-14T14:44:27Zumessagestashtree}(jUM  (f9e6b0b512acc3e851c9cf69090e71d929689286url`https://api.github.com/repos/palantir/atlasdb/git/trees/f9e6b0b512acc3e851c9cf69090e71d929689286ujmM  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4cf7532845968136b0ce456458e94fca49042c7d
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujmM  ^https://api.github.com/repos/palantir/atlasdb/commits/4cf7532845968136b0ce456458e94fca49042c7dhtml_urlShttps://github.com/palantir/atlasdb/commit/4cf7532845968136b0ce456458e94fca49042c7dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4cf7532845968136b0ce456458e94fca49042c7d/commentsj[M  }(login
Sam-KrameridJ^2_ jWM  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jmM  'https://api.github.com/users/Sam-KramerjyM  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujcM  }(j~M  
Sam-KramerjM  J^2_ jWM  MDQ6VXNlcjYyMzg4MTQ=jM  3https://avatars.githubusercontent.com/u/6238814?v=4jM  h5jmM  'https://api.github.com/users/Sam-KramerjyM  https://github.com/Sam-KramerjM  1https://api.github.com/users/Sam-Kramer/followersjM  >https://api.github.com/users/Sam-Kramer/following{/other_user}jM  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jM  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jM  5https://api.github.com/users/Sam-Kramer/subscriptionsjM  ,https://api.github.com/users/Sam-Kramer/orgsjM  -https://api.github.com/users/Sam-Kramer/reposjM  8https://api.github.com/users/Sam-Kramer/events{/privacy}jM  7https://api.github.com/users/Sam-Kramer/received_eventsjM  UserjM  uparents]}(jUM  (f4759f8351fe208942a33e983b847c2e963ae3bfjmM  ^https://api.github.com/repos/palantir/atlasdb/commits/f4759f8351fe208942a33e983b847c2e963ae3bfjyM  Shttps://github.com/palantir/atlasdb/commit/f4759f8351fe208942a33e983b847c2e963ae3bfuastats}(totalK	additionsK	deletionsKufiles]}(jUM  (6ffb03a40018b57b1fc7779249d4f83ddc2a39defilename/atlasdb-workload-server-distribution/DockerfilestatusmodifiedjM  KjM  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/4cf7532845968136b0ce456458e94fca49042c7d/atlasdb-workload-server-distribution%2FDockerfileraw_urlhttps://github.com/palantir/atlasdb/raw/4cf7532845968136b0ce456458e94fca49042c7d/atlasdb-workload-server-distribution%2FDockerfilecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2FDockerfile?ref=4cf7532845968136b0ce456458e94fca49042c7dpatch@@ -1,4 +1,5 @@
-FROM adoptopenjdk/openjdk11:jre-11.0.9_11.1-alpine
+FROM amazoncorretto:11-alpine3.17-jdk
+
 MAINTAINER AtlasDB Team
 
 ENV DOCKERIZE_VERSION v0.2.0uau(3d913ff286ee2e82b85f341a36496f4468199cc0}(sha(3d913ff286ee2e82b85f341a36496f4468199cc0node_idEC_kwDOAjP5fdoAKDNkOTEzZmYyODZlZTJlODJiODVmMzQxYTM2NDk2ZjQ0NjgxOTljYzAcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-24T14:47:19Zu	committer}(jM  Lucas MeirelesjM  meireles31@msn.comjM  2023-07-24T14:47:19Zumessageskip lock check and not locktree}(jM  (4950ef9de802415c2f32278ecb76a42aa0b16eacurl`https://api.github.com/repos/palantir/atlasdb/git/trees/4950ef9de802415c2f32278ecb76a42aa0b16eacujM  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3d913ff286ee2e82b85f341a36496f4468199cc0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS+jvcACgkQJd22kJ7J
GiwiVggA3YLkquT4i6+n3eRVDcW6oC8p9u2D2YTcEwZnCEAnRGTe/hy9RR2cDSSc
B6N+qek917YRZZLNMM68IuR0qVraPI5WIT9OIZZLi8m3QENE+XSVt+YQCseuxWmR
Kq/QXo9o+pN5l6d+IXbu5pRYIF++N6kiaAZ1CC9xsBSM9guDmVtkGIuGIJsx6M4X
KD0mMqj5P9Qjwhk9SlDoQW4kAad/XSmEJIUmmP4LSaS8Ggvq2Z9ug/Bauk+W5Lw9
xIgqkT1M03e5GqfMgUEQewcybhmPmvvmIkVLYVDkg4XM9y6EKeVsInVBU5WfwwIe
2d8V2sdkNA5QFMeNoTVBv4lDwl5wXA==
=5Xl/
-----END PGP SIGNATURE-----payloadtree 4950ef9de802415c2f32278ecb76a42aa0b16eac
parent d54908e0b53ccee4ebcf5b21929d25b4f68edf78
author Lucas Meireles <meireles31@msn.com> 1690210039 +0100
committer Lucas Meireles <meireles31@msn.com> 1690210039 +0100

skip lock check and not lock
uujM  ^https://api.github.com/repos/palantir/atlasdb/commits/3d913ff286ee2e82b85f341a36496f4468199cc0html_urlShttps://github.com/palantir/atlasdb/commit/3d913ff286ee2e82b85f341a36496f4468199cc0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3d913ff286ee2e82b85f341a36496f4468199cc0/commentsjM  }(loginLucasIMEidJg jM  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jM  %https://api.github.com/users/LucasIMEjM  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujM  }(jM  LucasIMEjM  Jg jM  MDQ6VXNlcjY3ODczMTE=jM  3https://avatars.githubusercontent.com/u/6787311?v=4jM  h5jM  %https://api.github.com/users/LucasIMEjM  https://github.com/LucasIMEjM  /https://api.github.com/users/LucasIME/followersj N  <https://api.github.com/users/LucasIME/following{/other_user}jN  5https://api.github.com/users/LucasIME/gists{/gist_id}jN  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jN  3https://api.github.com/users/LucasIME/subscriptionsjN  *https://api.github.com/users/LucasIME/orgsj
N  +https://api.github.com/users/LucasIME/reposjN  6https://api.github.com/users/LucasIME/events{/privacy}jN  5https://api.github.com/users/LucasIME/received_eventsjN  UserjN  uparents]}(jM  (d54908e0b53ccee4ebcf5b21929d25b4f68edf78jM  ^https://api.github.com/repos/palantir/atlasdb/commits/d54908e0b53ccee4ebcf5b21929d25b4f68edf78jM  Shttps://github.com/palantir/atlasdb/commit/d54908e0b53ccee4ebcf5b21929d25b4f68edf78uastats}(totalK	additionsK	deletionsKufiles]}(jM  (47fa17f32f55bf55de11a5fe512c5bd34fe3f078filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedj,N  Kj-N  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/3d913ff286ee2e82b85f341a36496f4468199cc0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/3d913ff286ee2e82b85f341a36496f4468199cc0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=3d913ff286ee2e82b85f341a36496f4468199cc0patchX  @@ -1650,7 +1650,7 @@ public void validateLocksOnCommitIfEmptyReadsFollowedByNonEmptyReadsIfValidation
     }
 
     @Test
-    public void skipImmutableTimestampLocksIfReadingEqualsExpectedNumberOfValuesEvenWhenRequestedMore() {
+    public void skipImmutableTimestampLockCheckIfReadingEqualsExpectedNumberOfValuesEvenWhenRequestedMore() {
         putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
 
         TimelockService spiedTimeLockService = spy(timelockService);uau(ec90a7f0da664b77ed09bddf48a926210f3c8096}(sha(ec90a7f0da664b77ed09bddf48a926210f3c8096node_idEC_kwDOAjP5fdoAKGVjOTBhN2YwZGE2NjRiNzdlZDA5YmRkZjQ4YTkyNjIxMGYzYzgwOTYcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-08-09T16:15:50Zu	committer}(jIN  	Tom PapkejKN  tpapke@palantir.comjMN  2023-08-09T16:15:50ZumessageShould be gooooodtree}(jAN  (2264d076e58cb87e63f880b199f6179f02b2aebeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/2264d076e58cb87e63f880b199f6179f02b2aebeujYN  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ec90a7f0da664b77ed09bddf48a926210f3c8096
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTTu7YACgkQmF9s0kaF
Iw1k2AgAi2Q7uRCdU2++vYxVy9C8zajI8U18WWVH9/thnh0AbHnJQKlwDsaNhMMC
2WFtxbj/WIhrNSg1ARxwMa8hk758sn/FEv3jvahIHklizx3PdbADvUIQfMxbqG+r
B91fvKzVZEfeNe+UvsQfByGWO2TjQQYV3rVdNw9eYoBMN6OacfxnNtAjuQTjYTkp
xyMah1nG1zEwS+0G9LqicJV0ayREuwGdItzEfJ33Us6lyHMRVRBxvh+3XSHUUEvK
uJo2ZqtJWR8z61ng0ajQIKSjUoMPHqYO8oxE7lmNuDHM2eM0QxzuPVt4RHEHOwId
Xu9cu7ZNwN0QxXgZi/VKhTUhYv3kDw==
=VlLq
-----END PGP SIGNATURE-----payloadtree 2264d076e58cb87e63f880b199f6179f02b2aebe
parent 65fe1b88c257c1055665107081622e98f4002012
author Tom Papke <tpapke@palantir.com> 1691597750 +0100
committer Tom Papke <tpapke@palantir.com> 1691597750 +0100

Should be goooood
uujYN  ^https://api.github.com/repos/palantir/atlasdb/commits/ec90a7f0da664b77ed09bddf48a926210f3c8096html_urlShttps://github.com/palantir/atlasdb/commit/ec90a7f0da664b77ed09bddf48a926210f3c8096comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ec90a7f0da664b77ed09bddf48a926210f3c8096/commentsjGN  }(login	ToemmscheidJbojCN  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jYN  &https://api.github.com/users/ToemmschejgN  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujON  }(jlN  	ToemmschejnN  JbojCN  MDQ6VXNlcjQzNjc1NDkwjpN  4https://avatars.githubusercontent.com/u/43675490?v=4jrN  h5jYN  &https://api.github.com/users/ToemmschejgN  https://github.com/ToemmschejuN  0https://api.github.com/users/Toemmsche/followersjwN  =https://api.github.com/users/Toemmsche/following{/other_user}jyN  6https://api.github.com/users/Toemmsche/gists{/gist_id}j{N  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j}N  4https://api.github.com/users/Toemmsche/subscriptionsjN  +https://api.github.com/users/Toemmsche/orgsjN  ,https://api.github.com/users/Toemmsche/reposjN  7https://api.github.com/users/Toemmsche/events{/privacy}jN  6https://api.github.com/users/Toemmsche/received_eventsjN  UserjN  uparents]}(jAN  (65fe1b88c257c1055665107081622e98f4002012jYN  ^https://api.github.com/repos/palantir/atlasdb/commits/65fe1b88c257c1055665107081622e98f4002012jgN  Shttps://github.com/palantir/atlasdb/commit/65fe1b88c257c1055665107081622e98f4002012uastats}(totalKی	additionsK	deletionsKMufiles](}(jAN  (60fa163e334483c2a97457a57c04c3fc8ba8b2ecfilenamectimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchEventIntegrationTest.javastatusmodifiedjN  KjN  KMchangesKЌblob_urlhttps://github.com/palantir/atlasdb/blob/ec90a7f0da664b77ed09bddf48a926210f3c8096/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ec90a7f0da664b77ed09bddf48a926210f3c8096/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.java?ref=ec90a7f0da664b77ed09bddf48a926210f3c8096patchX}Q  @@ -25,10 +25,6 @@
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Iterables;
-import com.google.common.util.concurrent.Futures;
-import com.google.common.util.concurrent.ListenableFuture;
-import com.google.common.util.concurrent.ListeningExecutorService;
-import com.google.common.util.concurrent.MoreExecutors;
 import com.google.common.util.concurrent.Uninterruptibles;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.AtlasLockDescriptorUtils;
@@ -47,6 +43,7 @@
 import com.palantir.atlasdb.transaction.impl.PreCommitConditions;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.common.streams.KeyedStream;
+import com.palantir.conjure.java.lib.Bytes;
 import com.palantir.lock.AtlasCellLockDescriptor;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
@@ -68,18 +65,15 @@
 import com.palantir.timelock.config.PaxosInstallConfiguration;
 import java.nio.charset.StandardCharsets;
 import java.util.Collection;
+import java.util.HashSet;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
 import java.util.Random;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
-import java.util.concurrent.ExecutionException;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.ThreadLocalRandom;
-import java.util.concurrent.TimeUnit;
-import java.util.concurrent.TimeoutException;
-import java.util.function.Predicate;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 import java.util.stream.Stream;
@@ -110,6 +104,8 @@ public final class LockWatchEventIntegrationTest {
     private static final TableReference TABLE_REF = TableReference.create(Namespace.DEFAULT_NAMESPACE, TABLE);
     private static final TableReference TABLE_2_REF =
             TableReference.create(Namespace.DEFAULT_NAMESPACE, LockWatchIntegrationTestUtilities.TABLE_2);
+    private static final TableReference SERIALIZABLE_WATCHED_TABLE_REF =
+            TableReference.create(Namespace.DEFAULT_NAMESPACE, LockWatchIntegrationTestUtilities.SERIALIZABLE_TABLE);
     private static final String NAMESPACE =
             String.valueOf(ThreadLocalRandom.current().nextLong());
     private static final TestableTimelockCluster CLUSTER = new TestableTimelockCluster(
@@ -120,7 +116,6 @@ public final class LockWatchEventIntegrationTest {
                     builder -> builder.clientPaxosBuilder(
                                     builder.clientPaxosBuilder().isUseBatchPaxosTimestamp(false))
                             .leaderMode(PaxosInstallConfiguration.PaxosLeaderMode.SINGLE_LEADER)));
-    private static final ExecutorService DIRECT_EXECUTOR = MoreExecutors.newDirectExecutorService();
 
     @ClassRule
     public static final RuleChain ruleChain = CLUSTER.getRuleChain();
@@ -131,6 +126,13 @@ public final class LockWatchEventIntegrationTest {
     public void setUpAndAwaitTableWatched() {
         txnManager = LockWatchIntegrationTestUtilities.createTransactionManager(0.0, CLUSTER, NAMESPACE);
         LockWatchIntegrationTestUtilities.awaitTableWatched(txnManager, TABLE_REF);
+
+        // Register watch for TABLE_3 manually since we cannot enable caching for it as it uses the SERIALIZABLE
+        // conflict handler
+        LockWatchReference entireTableReference =
+                LockWatchReferences.entireTable(SERIALIZABLE_WATCHED_TABLE_REF.getQualifiedName());
+        txnManager.getLockWatchManager().registerPreciselyWatches(ImmutableSet.of(entireTableReference));
+        LockWatchIntegrationTestUtilities.awaitTableWatched(txnManager, SERIALIZABLE_WATCHED_TABLE_REF);
     }
 
     @Test
@@ -291,14 +293,10 @@ public void absentMetadataIsVisibleToTransaction() {
 
     @Test
     public void nonEmptyMetadataIsVisibleToTransactionForWatchedTable() {
-        LockDescriptor lock1 =
-                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_1.getRowName(), CELL_1.getColumnName());
-        LockDescriptor lock2 =
-                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_2.getRowName(), CELL_2.getColumnName());
-        LockDescriptor lock3 =
-                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_3.getRowName(), CELL_3.getColumnName());
-        LockDescriptor lock4 =
-                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_4.getRowName(), CELL_4.getColumnName());
+        LockDescriptor lock1 = getDescriptor(TABLE_REF, CELL_1);
+        LockDescriptor lock2 = getDescriptor(TABLE_REF, CELL_2);
+        LockDescriptor lock3 = getDescriptor(TABLE_REF, CELL_3);
+        LockDescriptor lock4 = getDescriptor(TABLE_REF, CELL_4);
         LockRequestMetadata metadata = LockRequestMetadata.of(ImmutableMap.of(
                 lock1, CREATE_CHANGE_METADATA,
                 lock2, DELETE_CHANGE_METADATA,
@@ -319,12 +317,19 @@ public void transactionUpdateIncludesMetadataFromPutWithMetadata() {
                         CELL_1,
                         ValueAndChangeMetadata.of(DATA_1, CREATE_CHANGE_METADATA),
                         CELL_2,
-                        ValueAndChangeMetadata.of(DATA_2, DELETE_CHANGE_METADATA),
-                        CELL_3,
+                        ValueAndChangeMetadata.of(DATA_2, DELETE_CHANGE_METADATA)));
+        performWriteTransactionLockingAndUnlockingCells(TABLE_REF, ImmutableMap.of(CELL_1, DATA_1));
+
+        // Would throw if cells were in the same row due to SERIALIZABLE conflict handler
+        Cell cell = Cell.create(PtBytes.toBytes("row"), PtBytes.toBytes("col"));
+        Cell cellInOtherRow = Cell.create(PtBytes.toBytes("otherRow"), PtBytes.toBytes("col"));
+        performWriteMetadataTransactionLockingAndUnlockingCells(
+                SERIALIZABLE_WATCHED_TABLE_REF,
+                ImmutableMap.of(
+                        cell,
                         ValueAndChangeMetadata.of(DATA_3, UNCHANGED_CHANGE_METADATA),
-                        CELL_4,
+                        cellInOtherRow,
                         ValueAndChangeMetadata.of(DATA_4, UPDATE_CHANGE_METADATA)));
-        performWriteTransactionLockingAndUnlockingCells(TABLE_REF, ImmutableMap.of(CELL_1, DATA_1));
 
         OpenTransaction thirdTxn = startSingleTransaction();
         TransactionsLockWatchUpdate update = getUpdateForTransactions(Optional.of(currentVersion), thirdTxn);
@@ -336,13 +341,15 @@ public void transactionUpdateIncludesMetadataFromPutWithMetadata() {
                                 getDescriptor(TABLE_REF, CELL_1),
                                 CREATE_CHANGE_METADATA,
                                 getDescriptor(TABLE_REF, CELL_2),
-                                DELETE_CHANGE_METADATA,
-                                getDescriptor(TABLE_REF, CELL_3),
-                                UNCHANGED_CHANGE_METADATA,
-                                getDescriptor(TABLE_REF, CELL_4),
-                                UPDATE_CHANGE_METADATA))),
+                                DELETE_CHANGE_METADATA))),
                         // From the second txn
-                        Optional.empty());
+                        Optional.empty(),
+                        // From the third txn
+                        Optional.of(LockRequestMetadata.of(ImmutableMap.of(
+                                getDescriptor(SERIALIZABLE_WATCHED_TABLE_REF, cell),
+                                UNCHANGED_CHANGE_METADATA,
+                                getDescriptor(SERIALIZABLE_WATCHED_TABLE_REF, cellInOtherRow),
+                                UPDATE_CHANGE_METADATA))));
     }
 
     @Test
@@ -358,8 +365,8 @@ public void transactionUpdateIncludesMetadataFromDeleteWithMetadata() {
             return null;
         });
 
-        OpenTransaction secondTxn = startSingleTransaction();
-        TransactionsLockWatchUpdate update = getUpdateForTransactions(Optional.of(currentVersion), secondTxn);
+        TransactionsLockWatchUpdate update =
+                getUpdateForTransactions(Optional.of(currentVersion), startSingleTransaction());
 
         assertThat(LockWatchIntegrationTestUtilities.extractMetadata(update.events()))
                 .containsExactly(
@@ -389,58 +396,52 @@ public void metadataFilteredAccordingToWatches() {
         });
         performWriteMetadataTransactionLockingAndUnlockingCells(
                 TABLE_2_REF, ImmutableMap.of(CELL_3, ValueAndChangeMetadata.of(DATA_3, UNCHANGED_CHANGE_METADATA)));
+        performWriteMetadataTransactionLockingAndUnlockingCells(
+                SERIALIZABLE_WATCHED_TABLE_REF,
+                ImmutableMap.of(CELL_4, ValueAndChangeMetadata.of(DATA_3, UPDATE_CHANGE_METADATA)));
 
-        OpenTransaction fourthTxn = startSingleTransaction();
-        TransactionsLockWatchUpdate update = getUpdateForTransactions(Optional.of(currentVersion), fourthTxn);
+        TransactionsLockWatchUpdate update =
+                getUpdateForTransactions(Optional.of(currentVersion), startSingleTransaction());
 
         assertThat(LockWatchIntegrationTestUtilities.extractMetadata(update.events()))
                 .containsExactly(
                         // From the first txn
                         Optional.of(LockRequestMetadata.of(
                                 ImmutableMap.of(getDescriptor(TABLE_REF, CELL_1), CREATE_CHANGE_METADATA))),
                         // From the second txn
-                        Optional.empty()
+                        Optional.empty(),
                         // No lock event for the third txn since no locks were watched
-                        );
+                        // ...
+                        // From the fourth txn
+                        Optional.of(LockRequestMetadata.of(ImmutableMap.of(
+                                getDescriptor(SERIALIZABLE_WATCHED_TABLE_REF, CELL_4), UPDATE_CHANGE_METADATA))));
     }
 
     @Test
-    public void randomMetadataPassedAndFilteredCorrectlyForConcurrentTransactions()
-            throws ExecutionException, InterruptedException, TimeoutException {
+    public void randomMetadataPassedAndFilteredCorrectly() {
         long randomSeed = System.currentTimeMillis();
-        int numberOfThreads = 3;
         int numberOfIterations = 3;
         int numberOfRowsPerTransaction = 10;
         int numberOfCellsPerRow = 100;
+        int maxWritesPerTransaction = 200;
 
         Random random = new Random(randomSeed);
         LockWatchVersion currentVersion = getCurrentVersion();
-        ImmutableList.Builder<LockRequestMetadata> expectedMetadataBuilder = ImmutableList.builder();
-        ListeningExecutorService executor =
-                MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(numberOfThreads));
-        ImmutableList.Builder<ListenableFuture<?>> futures = ImmutableList.builder();
+        ImmutableList.Builder<Optional<LockRequestMetadata>> expectedMetadataBuilder = ImmutableList.builder();
         for (int i = 0; i < numberOfIterations; i++) {
-            Map<TableReference, Map<Cell, ValueAndChangeMetadata>> values =
-                    generatedRandomValuesAndChangeMetadata(numberOfRowsPerTransaction, numberOfCellsPerRow, random);
-            expectedMetadataBuilder.add(getLockRequestForValues(values, TABLE_REF::equals));
-            futures.add(executor.submit(() -> performTransactionTaskLockingAndUnlockingCells(txn -> {
-                values.forEach(txn::putWithMetadata);
-                return null;
-            })));
+            Map<TableReference, Map<Cell, Optional<ChangeMetadata>>> values = generatedRandomCellsAndChangeMetadata(
+                    numberOfRowsPerTransaction, numberOfCellsPerRow, maxWritesPerTransaction, random);
+            expectedMetadataBuilder.add(getLockRequestMetadataForValues(values));
+            putOrDeleteValuesMaybeWithMetadata(values, random);
         }
 
-        TransactionsLockWatchUpdate update = Futures.whenAllComplete(futures.build())
-                .call(
-                        () -> getUpdateForTransactions(Optional.of(currentVersion), startSingleTransaction()),
-                        DIRECT_EXECUTOR)
-                .get(20, TimeUnit.SECONDS);
-        List<Optional<LockRequestMetadata>> expectedMetadata =
-                expectedMetadataBuilder.build().stream().map(Optional::of).collect(Collectors.toList());
+        TransactionsLockWatchUpdate update =
+                getUpdateForTransactions(Optional.of(currentVersion), startSingleTransaction());
         assertThat(LockWatchIntegrationTestUtilities.extractMetadata(update.events()))
                 .as("Expect to receive back the metadata we specified on previous transactions. Random seed: "
                         + randomSeed)
                 // Order does NOT matter as this test is multithreaded
-                .containsExactlyInAnyOrderElementsOf(expectedMetadata);
+                .containsExactlyInAnyOrderElementsOf(expectedMetadataBuilder.build());
     }
 
     private Runnable performWriteTransactionThatBlocksAfterLockingCells() {
@@ -603,33 +604,82 @@ public Set<LockDescriptor> invalidateSome(Set<LockDescriptor> invalidatedLocks)
         }));
     }
 
-    private static Map<TableReference, Map<Cell, ValueAndChangeMetadata>> generatedRandomValuesAndChangeMetadata(
-            int numberOfRowsPerTransaction, int numberOfCellsPerRow, Random random) {
+    private void putOrDeleteValuesMaybeWithMetadata(
+            Map<TableReference, Map<Cell, Optional<ChangeMetadata>>> values, Random random) {
+        performTransactionTaskLockingAndUnlockingCells(txn -> {
+            values.forEach((tableRef, tableValues) ->
+                    tableValues.forEach((cell, optChangeMetadata) -> optChangeMetadata.ifPresentOrElse(
+                            changeMetadata -> {
+                                if (random.nextBoolean()) {
+                                    txn.putWithMetadata(
+                                            tableRef,
+                                            ImmutableMap.of(
+                                                    cell,
+                                                    ValueAndChangeMetadata.of(
+                                                            PtBytes.toBytes(random.nextLong()), changeMetadata)));
+                                } else {
+                                    txn.deleteWithMetadata(tableRef, ImmutableMap.of(cell, changeMetadata));
+                                }
+                            },
+                            () -> {
+                                if (random.nextBoolean()) {
+                                    txn.put(tableRef, ImmutableMap.of(cell, PtBytes.toBytes(random.nextLong())));
+                                } else {
+                                    txn.delete(tableRef, ImmutableSet.of(cell));
+                                }
+                            })));
+            return null;
+        });
+    }
+
+    private static boolean isWatchedTable(TableReference tableRef) {
+        return ImmutableSet.of(TABLE_REF, SERIALIZABLE_WATCHED_TABLE_REF).contains(tableRef);
+    }
 
-        List<Cell> cells = IntStream.range(0, numberOfRowsPerTransaction)
+    private static Map<TableReference, Map<Cell, Optional<ChangeMetadata>>> generatedRandomCellsAndChangeMetadata(
+            int numberOfRowsPerTransaction, int numberOfCellsPerRow, int maxWritesPerTransaction, Random random) {
+        List<Cell> availableCells = IntStream.range(0, numberOfRowsPerTransaction)
                 .boxed()
                 .flatMap(rowIndex -> IntStream.range(0, numberOfCellsPerRow)
                         .boxed()
                         .map(cellIndex ->
                                 Cell.create(PtBytes.toBytes("row" + rowIndex), PtBytes.toBytes("col" + cellIndex))))
                 .collect(Collectors.toList());
-
-        // 50/50 split of cells between the watched and unwatched table
-        List<Cell> tableOneCells =
-                cells.stream().filter(_cell -> random.nextBoolean()).collect(Collectors.toList());
-        List<Cell> tableTwoCells =
-                cells.stream().filter(cell -> !tableOneCells.contains(cell)).collect(Collectors.toList());
+        Set<Cell> chosenCells = IntStream.range(0, maxWritesPerTransaction)
+                .mapToObj(_unused -> availableCells.get(random.nextInt(availableCells.size())))
+                .collect(Collectors.toUnmodifiableSet());
+
+        // 50/25/25 split of cells between the watched, unwatched, and serializable watched table
+        Set<Cell> tableOneCells =
+                chosenCells.stream().filter(_cell -> random.nextBoolean()).collect(Collectors.toUnmodifiableSet());
+        Set<Cell> tableTwoCells = chosenCells.stream()
+                .filter(cell -> random.nextBoolean() && !tableOneCells.contains(cell))
+                .collect(Collectors.toUnmodifiableSet());
+
+        // Ensure unique rows to prevent commit from failing due to SERIALIZABLE conflict handler
+        Set<Cell> serializableTableCells = chosenCells.stream()
+                .filter(cell -> !tableOneCells.contains(cell) && !tableTwoCells.contains(cell))
+                .collect(Collectors.toUnmodifiableSet());
+        Set<Bytes> seenRows = new HashSet<>();
+        Map<Cell, Optional<ChangeMetadata>> serializableTableCellsUniqueRows = KeyedStream.ofEntries(
+                        maybeAssociateMetadata(ImmutableSet.copyOf(serializableTableCells), random).entrySet().stream())
+                .filterKeys(cell -> seenRows.add(Bytes.from(cell.getRowName())))
+                .collectToMap();
+        // For each cell, 50/50 split on whether it should have metadata
         return ImmutableMap.of(
                 TABLE_REF,
-                KeyedStream.of(tableOneCells.stream())
-                        .map(_cell -> ValueAndChangeMetadata.of(
-                                PtBytes.toBytes(random.nextInt()), generateRandomChangeMetadata(random)))
-                        .collectToMap(),
+                maybeAssociateMetadata(tableOneCells, random),
                 TABLE_2_REF,
-                KeyedStream.of(tableTwoCells.stream())
-                        .map(_cell -> ValueAndChangeMetadata.of(
-                                PtBytes.toBytes(random.nextInt()), generateRandomChangeMetadata(random)))
-                        .collectToMap());
+                maybeAssociateMetadata(tableTwoCells, random),
+                SERIALIZABLE_WATCHED_TABLE_REF,
+                serializableTableCellsUniqueRows);
+    }
+
+    private static Map<Cell, Optional<ChangeMetadata>> maybeAssociateMetadata(Set<Cell> cells, Random random) {
+        return KeyedStream.of(cells.stream())
+                .<Optional<ChangeMetadata>>map(_cell ->
+                        random.nextBoolean() ? Optional.of(generateRandomChangeMetadata(random)) : Optional.empty())
+                .collectToMap();
     }
 
     private static ChangeMetadata generateRandomChangeMetadata(Random random) {
@@ -647,19 +697,23 @@ private static ChangeMetadata generateRandomChangeMetadata(Random random) {
         throw new RuntimeException("unreachable");
     }
 
-    private static LockRequestMetadata getLockRequestForValues(
-            Map<TableReference, Map<Cell, ValueAndChangeMetadata>> values, Predicate<TableReference> isWatched) {
+    private static Optional<LockRequestMetadata> getLockRequestMetadataForValues(
+            Map<TableReference, Map<Cell, Optional<ChangeMetadata>>> values) {
         Map<LockDescriptor, ChangeMetadata> locks = KeyedStream.ofEntries(values.entrySet().stream())
-                .filterKeys(isWatched)
+                .filterKeys(LockWatchEventIntegrationTest::isWatchedTable)
                 .flatMapEntries((table, cellToMetadata) -> KeyedStream.ofEntries(cellToMetadata.entrySet().stream())
+                        .flatMap(Optional::stream)
                         .mapKeys(cell -> getDescriptor(table, cell))
-                        .map(ValueAndChangeMetadata::metadata)
                         .entries())
                 .collectToMap();
-        return LockRequestMetadata.of(locks);
+        return locks.isEmpty() ? Optional.empty() : Optional.of(LockRequestMetadata.of(locks));
     }
 
     private static LockDescriptor getDescriptor(TableReference tableRef, Cell cell) {
+        // SERIALIZABLE conflict handler uses row-level locks only
+        if (tableRef.equals(SERIALIZABLE_WATCHED_TABLE_REF)) {
+            return AtlasRowLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName());
+        }
         return AtlasCellLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName());
     }
 uo
     }(jAN  (f50b4ffc074446fe608e0f34a50d981abe058498jN  gtimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchIntegrationTestUtilities.javajN  modifiedjN  KjN  K jN  KjN  https://github.com/palantir/atlasdb/blob/ec90a7f0da664b77ed09bddf48a926210f3c8096/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchIntegrationTestUtilities.javajN  https://github.com/palantir/atlasdb/raw/ec90a7f0da664b77ed09bddf48a926210f3c8096/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchIntegrationTestUtilities.javajN  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchIntegrationTestUtilities.java?ref=ec90a7f0da664b77ed09bddf48a926210f3c8096jN  X  @@ -51,6 +51,7 @@ public final class LockWatchIntegrationTestUtilities {
     private static final String TEST_PACKAGE = "package";
     static final String TABLE = "table";
     static final String TABLE_2 = "rowLevelTable";
+    static final String SERIALIZABLE_TABLE = "serializableTable";
 
     private LockWatchIntegrationTestUtilities() {
         // no-op
@@ -174,6 +175,16 @@ private static Schema createSchema() {
         };
         schema.addTableDefinition(TABLE_2, tableWithoutCaching);
 
+        TableDefinition tableWithRowConflictHandler = new TableDefinition() {
+            {
+                rowName();
+                rowComponent("key", ValueType.BLOB);
+                noColumns();
+                conflictHandler(ConflictHandler.SERIALIZABLE);
+            }
+        };
+        schema.addTableDefinition(SERIALIZABLE_TABLE, tableWithRowConflictHandler);
+
         return schema;
     }
 ueu(62b719d512fb3e48b558173d42d798be77bdd43d}(sha(62b719d512fb3e48b558173d42d798be77bdd43dnode_idEC_kwDOAjP5fdoAKDYyYjcxOWQ1MTJmYjNlNDhiNTU4MTczZDQyZDc5OGJlNzdiZGQ0M2Qcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-19T12:54:24Zu	committer}(jN  Lucas MeirelesjN  meireles31@msn.comjN  2023-06-19T12:54:24Zumessagefixing teststree}(jN  (b26ac05483dbea1adcf25425723ae201d274c832url`https://api.github.com/repos/palantir/atlasdb/git/trees/b26ac05483dbea1adcf25425723ae201d274c832ujN  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/62b719d512fb3e48b558173d42d798be77bdd43d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSQUAAACgkQJd22kJ7J
GiyHIAgAk8F+sgvYMtoXjAikNPqm7aAJADnibalEmY2yzd38Hylg+s9nGL63IoLK
QgSxIqVhpsxQFx49CVPhkp425+653B02eG5uUDLdKPW0T29QaB2CZAjzpu3qf9Zx
n5zyKT6qQgUiclwEipWyMleLnJImeQDh4pvNIqf5ORp/pXcc8E1N5spCk/fkfnOy
gDV6V/ZVFp4XG8nJzy8Z1FgOlb3wz7krr1cZrFVPZD+6FJfDSUCMgtglEAHEw47W
JTNL7dMoWvwvxm9Fus8FeX4oJRgsABGcFQbidncK4gISBTofkR7t19/IUtNVIC6S
SoGvC9qFx10cNstciIYTqKnDEKgyMw==
=4EU4
-----END PGP SIGNATURE-----payloadtree b26ac05483dbea1adcf25425723ae201d274c832
parent 518e916f663d7c531cee4db852a92ca77eb96153
author Lucas Meireles <meireles31@msn.com> 1687179264 +0100
committer Lucas Meireles <meireles31@msn.com> 1687179264 +0100

fixing tests
uujN  ^https://api.github.com/repos/palantir/atlasdb/commits/62b719d512fb3e48b558173d42d798be77bdd43dhtml_urlShttps://github.com/palantir/atlasdb/commit/62b719d512fb3e48b558173d42d798be77bdd43dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/62b719d512fb3e48b558173d42d798be77bdd43d/commentsjN  }(loginLucasIMEidJg jN  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jN  %https://api.github.com/users/LucasIMEjN  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujN  }(jN  LucasIMEjN  Jg jN  MDQ6VXNlcjY3ODczMTE=jN  3https://avatars.githubusercontent.com/u/6787311?v=4jN  h5jN  %https://api.github.com/users/LucasIMEjN  https://github.com/LucasIMEjN  /https://api.github.com/users/LucasIME/followersjN  <https://api.github.com/users/LucasIME/following{/other_user}jN  5https://api.github.com/users/LucasIME/gists{/gist_id}jN  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jN  3https://api.github.com/users/LucasIME/subscriptionsjN  *https://api.github.com/users/LucasIME/orgsj O  +https://api.github.com/users/LucasIME/reposjO  6https://api.github.com/users/LucasIME/events{/privacy}jO  5https://api.github.com/users/LucasIME/received_eventsjO  UserjO  uparents]}(jN  (518e916f663d7c531cee4db852a92ca77eb96153jN  ^https://api.github.com/repos/palantir/atlasdb/commits/518e916f663d7c531cee4db852a92ca77eb96153jN  Shttps://github.com/palantir/atlasdb/commit/518e916f663d7c531cee4db852a92ca77eb96153uastats}(totalK
	additionsK	deletionsKufiles](}(jN  (58455c9fcbd5e41aa2e34c82091e30cd04cd5a51filename`atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitionerTest.javastatusmodifiedj"O  Kj#O  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/62b719d512fb3e48b558173d42d798be77bdd43d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/62b719d512fb3e48b558173d42d798be77bdd43d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.java?ref=62b719d512fb3e48b558173d42d798be77bdd43dpatchXf  @@ -105,6 +105,7 @@ public void getStrategyQueriesKvsOnlyOnceForEachTable() {
         }
         verify(mockKvs, times(1)).getMetadataForTable(NOTHING);
         verify(mockKvs, times(1)).getMetadataForTable(CONSERVATIVE);
+        verify(mockKvs, times(2)).sweepsEntriesInStrictlyNonDecreasingFashion();
         verifyNoMoreInteractions(mockKvs);
     }
 u}(jN  (43d3682d1425af138fd1d14802d2508e0bc1a920j(O  qatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractSerializableTransactionTest.javaj*O  modifiedj"O  Kj#O  Kj,O  K	j-O  https://github.com/palantir/atlasdb/blob/62b719d512fb3e48b558173d42d798be77bdd43d/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj/O  https://github.com/palantir/atlasdb/raw/62b719d512fb3e48b558173d42d798be77bdd43d/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj1O  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.java?ref=62b719d512fb3e48b558173d42d798be77bdd43dj3O  Xc  @@ -60,6 +60,7 @@
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionFailedNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionFailedRetriableException;
+import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.TransactionSerializableConflictException;
@@ -1083,8 +1084,12 @@ public void testMarkTableInvolvedDoesNoCheckLocksForExpiryOnCommitWhenNotRequire
         // Test table is not thorough, therefore no immutable timestamp lock checking
         testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE);
 
-        // Test table is thorough, but still no immutable timestamp lock checking
-        testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH);
+        if (keyValueService.sweepsEntriesInStrictlyNonDecreasingFashion()) {
+            testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH);
+        } else {
+            assertThatThrownBy(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
+                    .isExactlyInstanceOf(TransactionLockTimeoutException.class);
+        }
     }
 
     @Testueu(faee9535bb8690539f0a6906dd0a1923d17288c7}(sha(faee9535bb8690539f0a6906dd0a1923d17288c7node_idEC_kwDOAjP5fdoAKGZhZWU5NTM1YmI4NjkwNTM5ZjBhNjkwNmRkMGExOTIzZDE3Mjg4Yzccommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-11T14:57:08Zu	committer}(jGO  Jeremy KongjIO  jkong@palantir.comjKO  2023-04-11T14:57:08ZumessageCR commentstree}(j?O  (65f8ef4b060f7461e9ec551be24b68eb329a8897url`https://api.github.com/repos/palantir/atlasdb/git/trees/65f8ef4b060f7461e9ec551be24b68eb329a8897ujWO  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/faee9535bb8690539f0a6906dd0a1923d17288c7
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ1dUQACgkQTLdFKain
zjyHoAgAihf6BlX7eeaR6rahTjgA8bQ3qxaosO+3GwIVoO1UNSP5goByUIGzVbzb
DGsL5MOIgd4as80VZ9OIIKnhZwf912ctzUGb4i2DHxoTms7QJecUgk4NcE/JfjOJ
/dDycCevDxSkkuTIHIJ+SA8YO0HN+wckZohQTsXOk5qyPcauCnth8HZh+GHKO7JI
C1ozE/sH6UXtUyfW3JLpFFDDn6XBc4pQgAHyU6UYAiK8VTuTrEeWMoLBqSf98ycF
KSXZTGGXQdrpAuLB6rrn1PwusWDXhHKgOqDBDVo/dKJe60oAgQPllfAijbva/RoS
mZqm5fvO+f1HxwlihDfregYkzzc6Gw==
=HvXy
-----END PGP SIGNATURE-----payloadtree 65f8ef4b060f7461e9ec551be24b68eb329a8897
parent 90531de377e9e0c58adf3f64d503e1bfead472cd
author Jeremy Kong <jkong@palantir.com> 1681225028 +0800
committer Jeremy Kong <jkong@palantir.com> 1681225028 +0800

CR comments
uujWO  ^https://api.github.com/repos/palantir/atlasdb/commits/faee9535bb8690539f0a6906dd0a1923d17288c7html_urlShttps://github.com/palantir/atlasdb/commit/faee9535bb8690539f0a6906dd0a1923d17288c7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/faee9535bb8690539f0a6906dd0a1923d17288c7/commentsjEO  }(login
jeremyk-91idJZ jAO  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jWO  'https://api.github.com/users/jeremyk-91jeO  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujMO  }(jjO  
jeremyk-91jlO  JZ jAO  MDQ6VXNlcjU5NTU1MTA=jnO  3https://avatars.githubusercontent.com/u/5955510?v=4jpO  h5jWO  'https://api.github.com/users/jeremyk-91jeO  https://github.com/jeremyk-91jsO  1https://api.github.com/users/jeremyk-91/followersjuO  >https://api.github.com/users/jeremyk-91/following{/other_user}jwO  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jyO  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j{O  5https://api.github.com/users/jeremyk-91/subscriptionsj}O  ,https://api.github.com/users/jeremyk-91/orgsjO  -https://api.github.com/users/jeremyk-91/reposjO  8https://api.github.com/users/jeremyk-91/events{/privacy}jO  7https://api.github.com/users/jeremyk-91/received_eventsjO  UserjO  uparents]}(j?O  (90531de377e9e0c58adf3f64d503e1bfead472cdjWO  ^https://api.github.com/repos/palantir/atlasdb/commits/90531de377e9e0c58adf3f64d503e1bfead472cdjeO  Shttps://github.com/palantir/atlasdb/commit/90531de377e9e0c58adf3f64d503e1bfead472cduastats}(totalK!	additionsK	deletionsKufiles](}(j?O  (2204a1bd3b81364b73c8ace8fc31438127caf2e2filenameMtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/LockV1Resource.javastatusmodifiedjO  KjO  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/faee9535bb8690539f0a6906dd0a1923d17288c7/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.javaraw_urlhttps://github.com/palantir/atlasdb/raw/faee9535bb8690539f0a6906dd0a1923d17288c7/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.java?ref=faee9535bb8690539f0a6906dd0a1923d17288c7patchX  @@ -43,7 +43,7 @@
 import javax.ws.rs.Produces;
 import javax.ws.rs.core.MediaType;
 
-@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}")
+@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}") // Only read by Jersey, not by Undertow
 public class LockV1Resource {
     private final TimelockNamespaces namespaces;
 
@@ -118,8 +118,7 @@ public boolean unlockAndFreeze(
     @Path("lock/get-tokens/{client}")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
-    @CancelableServerCall
-    @NonIdempotent
+    @Idempotent
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/get-tokens/{client}")
     public Set<HeldLocksToken> getTokens(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
@@ -131,8 +130,7 @@ public Set<HeldLocksToken> getTokens(
     @Path("lock/get-tokens")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
-    @CancelableServerCall
-    @NonIdempotent
+    @Idempotent
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/get-tokens")
     public Set<HeldLocksToken> getTokens(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
         return getTokens(namespace, LockClient.ANONYMOUS);
@@ -384,6 +382,18 @@ public Long getMinLockedInVersionId(
         return getLockService(namespace).getMinLockedInVersionId(client);
     }
 
+    @POST
+    @Path("lock/min-locked-in-version")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Idempotent
+    @Nullable
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version")
+    public Long getMinLockedInVersionIdForAnonymousClientString(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        return getMinLockedInVersionId(namespace, LockClient.ANONYMOUS.getClientId());
+    }
+
     @POST
     @Path("lock/get-debugging-lock-state")
     @Idempotentu}(j?O  (6e163d8fc651a8b9e64f701bb9ae56346cda2ab7jO  Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimestampManagementResource.javajO  modifiedjO  KjO  KjO  KjO  https://github.com/palantir/atlasdb/blob/faee9535bb8690539f0a6906dd0a1923d17288c7/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampManagementResource.javajO  https://github.com/palantir/atlasdb/raw/faee9535bb8690539f0a6906dd0a1923d17288c7/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampManagementResource.javajO  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampManagementResource.java?ref=faee9535bb8690539f0a6906dd0a1923d17288c7jO  X,  @@ -29,6 +29,7 @@
 import io.undertow.util.Headers;
 import java.io.IOException;
 import java.nio.charset.StandardCharsets;
+import java.util.Optional;
 import javax.annotation.CheckReturnValue;
 import javax.annotation.meta.When;
 import javax.ws.rs.DefaultValue;
@@ -40,7 +41,7 @@
 import javax.ws.rs.QueryParam;
 import javax.ws.rs.core.MediaType;
 
-@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}")
+@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}") // Only read by Jersey, not by Undertow
 public class TimestampManagementResource {
     private static final long SENTINEL_TIMESTAMP = Long.MIN_VALUE;
     private static final String SENTINEL_TIMESTAMP_STRING =
@@ -63,8 +64,8 @@ public void fastForwardTimestamp(
                     @QueryParam("currentTimestamp")
                     @DefaultValue(SENTINEL_TIMESTAMP_STRING)
                     @Handle.QueryParam(value = "currentTimestamp")
-                    Long currentTimestamp) {
-        long timestampToUse = currentTimestamp == null ? SENTINEL_TIMESTAMP : currentTimestamp;
+                    Optional<Long> currentTimestamp) {
+        long timestampToUse = currentTimestamp.orElse(SENTINEL_TIMESTAMP);
         getTimestampManagementService(namespace).fastForwardTimestamp(timestampToUse);
     }
 
@@ -73,8 +74,8 @@ public void fastForwardTimestamp(
     @Produces(MediaType.TEXT_PLAIN)
     @CheckReturnValue(when = When.NEVER)
     @Handle(
-            method = HttpMethod.POST,
-            path = "/{namespace}/timestamp-management/fast-forward",
+            method = HttpMethod.GET,
+            path = "/{namespace}/timestamp-management/ping",
             produces = TextPlainSerializer.class)
     public String ping(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
         return getTimestampManagementService(namespace).ping();u}(j?O  (04e1d4c2a15de9947b70c587bd4dfa39d113bb1ejO  Ptimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimestampResource.javajO  modifiedjO  KjO  KjO  KjO  https://github.com/palantir/atlasdb/blob/faee9535bb8690539f0a6906dd0a1923d17288c7/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampResource.javajO  https://github.com/palantir/atlasdb/raw/faee9535bb8690539f0a6906dd0a1923d17288c7/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampResource.javajO  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampResource.java?ref=faee9535bb8690539f0a6906dd0a1923d17288c7jO  XA  @@ -28,7 +28,7 @@
 import javax.ws.rs.QueryParam;
 import javax.ws.rs.core.MediaType;
 
-@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}")
+@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}") // Only read by Jersey, not by Undertow
 public final class TimestampResource {
     private final TimelockNamespaces namespaces;
 ueu(3c42bc81a8b18d1834308a92db97e69111ec1663}(sha(3c42bc81a8b18d1834308a92db97e69111ec1663node_idEC_kwDOAjP5fdoAKDNjNDJiYzgxYThiMThkMTgzNDMwOGE5MmRiOTdlNjkxMTFlYzE2NjMcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-02-20T16:10:55Zu	committer}(jO  GitHubjO  noreply@github.comjO  2023-02-20T16:10:55Zumessage=Excavator:  Update gradle-jdks infrastructure plugins (#6447)tree}(jO  (0bbde841a9b34e0ee094d84e50adf1e65b3fccd6url`https://api.github.com/repos/palantir/atlasdb/git/trees/0bbde841a9b34e0ee094d84e50adf1e65b3fccd6ujO  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3c42bc81a8b18d1834308a92db97e69111ec1663
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJj85uPCRBK7hj4Ov3rIwAAmCoIAIfxkoXOj3s0JSxSi+JPcwtn
tF4niz9J19ztyjjPIrN/cvbxER5O0fclzVlWGvVXd7TiJ5KLG1ssA9MP84sFfSVQ
PNOTsTwdeO8aRF+qFeYTQpW1tTGDqmOZgkGPD5zpf6C9fXGADwGzOgWZM4FKGkgC
tdCPNQ6maYAAu/AIZ9EMpVzg/BGDDYOvAexHU0lz/BnmvZzi8ilITZJoNVMJneLv
+OXwOipvwn4n5lj1lvcWJ+CbRF6V0Hosa4UAYRkBox8QevmTghKbATlINCDqj2r4
L7ZbQX7JEh8pqLGY5rV+3pkdLHDqL0eAqw4rErj4N36Ap/fQCl+IrSwjnRkrNEU=
=7FjX
-----END PGP SIGNATURE-----
payloadX2  tree 0bbde841a9b34e0ee094d84e50adf1e65b3fccd6
parent 147f6832f0783ce14ccadca175fccecb306f95bb
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1676909455 +0000
committer GitHub <noreply@github.com> 1676909455 +0000

Excavator:  Update gradle-jdks infrastructure plugins (#6447)

 uujO  ^https://api.github.com/repos/palantir/atlasdb/commits/3c42bc81a8b18d1834308a92db97e69111ec1663html_urlShttps://github.com/palantir/atlasdb/commit/3c42bc81a8b18d1834308a92db97e69111ec1663comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3c42bc81a8b18d1834308a92db97e69111ec1663/commentsjO  }(loginsvc-excavator-botidJjO  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5jO  .https://api.github.com/users/svc-excavator-botjO  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminujO  }(jO  web-flowjO  J/jO  MDQ6VXNlcjE5ODY0NDQ3jO  4https://avatars.githubusercontent.com/u/19864447?v=4jO  h5jO  %https://api.github.com/users/web-flowjO  https://github.com/web-flowjO  /https://api.github.com/users/web-flow/followersjO  <https://api.github.com/users/web-flow/following{/other_user}jO  5https://api.github.com/users/web-flow/gists{/gist_id}j P  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jP  3https://api.github.com/users/web-flow/subscriptionsjP  *https://api.github.com/users/web-flow/orgsjP  +https://api.github.com/users/web-flow/reposjP  6https://api.github.com/users/web-flow/events{/privacy}j
P  5https://api.github.com/users/web-flow/received_eventsjP  UserjP  uparents]}(jO  (147f6832f0783ce14ccadca175fccecb306f95bbjO  ^https://api.github.com/repos/palantir/atlasdb/commits/147f6832f0783ce14ccadca175fccecb306f95bbjO  Shttps://github.com/palantir/atlasdb/commit/147f6832f0783ce14ccadca175fccecb306f95bbuastats}(totalK	additionsK	deletionsKufiles]}(jO  (146dba7b78cc5da09a06a376fb8644bcf689aff4filenamebuild.gradlestatusmodifiedj(P  Kj)P  KchangesKblob_url^https://github.com/palantir/atlasdb/blob/3c42bc81a8b18d1834308a92db97e69111ec1663/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/3c42bc81a8b18d1834308a92db97e69111ec1663/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=3c42bc81a8b18d1834308a92db97e69111ec1663patchX  @@ -15,8 +15,8 @@ buildscript {
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.11.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:0.15.0'
-        classpath 'com.palantir.gradle.jdks:gradle-jdks:0.28.0'
-        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.6.0'
+        classpath 'com.palantir.gradle.jdks:gradle-jdks:0.31.0'
+        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.19.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'uau(30cd082b141761013cb9cd7cbb397eb0151d3d52}(sha(30cd082b141761013cb9cd7cbb397eb0151d3d52node_idEC_kwDOAjP5fdoAKDMwY2QwODJiMTQxNzYxMDEzY2I5Y2Q3Y2JiMzk3ZWIwMTUxZDNkNTIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-16T09:32:00Zu	committer}(jEP  Jeremy KongjGP  jkong@palantir.comjIP  2023-06-16T09:32:00Zumessagemore drastic stufftree}(j=P  (b25ddf504c32fd76e81bde1fb9879cbdc82751f3url`https://api.github.com/repos/palantir/atlasdb/git/trees/b25ddf504c32fd76e81bde1fb9879cbdc82751f3ujUP  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/30cd082b141761013cb9cd7cbb397eb0151d3d52
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSMLBEACgkQTLdFKain
zjyZBQf/bSO3qkLenkXojY7gFTmUtYFKAgJI+FKCI2xGjE9PW6qBz9gxumuwjyFd
BBXYGW+K99/WdqPjDPy7W7pu2zk/LlS67TTDHeFkTceWMKClVnEC2/Mv34lvK8Ff
y939LyUrliW/CZojwU0GvV6GtPWk+LSEhwy2WUE4Vf08t4HRJdA7TBcVcO2LJsfY
L4WQFWGd80N8/OPoQxD6vIK+J52oWxqy8lTfyi0ZEfb7tNRIHu123mTxAaja6pDl
egPG754jT/XNkiFN/8R7KO/fP4Recu3HG2+6TljeY/OEOfASCKjzJ90uzbbXSnmi
ht5NfAo+o2DneH+lw9+860qxJpQ32Q==
=zUUA
-----END PGP SIGNATURE-----payloadtree b25ddf504c32fd76e81bde1fb9879cbdc82751f3
parent 8b633648d727e63f353ff21c5f8c0ea46336e9b7
author Jeremy Kong <jkong@palantir.com> 1686907920 +0800
committer Jeremy Kong <jkong@palantir.com> 1686907920 +0800

more drastic stuff
uujUP  ^https://api.github.com/repos/palantir/atlasdb/commits/30cd082b141761013cb9cd7cbb397eb0151d3d52html_urlShttps://github.com/palantir/atlasdb/commit/30cd082b141761013cb9cd7cbb397eb0151d3d52comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/30cd082b141761013cb9cd7cbb397eb0151d3d52/commentsjCP  }(login
jeremyk-91idJZ j?P  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jUP  'https://api.github.com/users/jeremyk-91jcP  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujKP  }(jhP  
jeremyk-91jjP  JZ j?P  MDQ6VXNlcjU5NTU1MTA=jlP  3https://avatars.githubusercontent.com/u/5955510?v=4jnP  h5jUP  'https://api.github.com/users/jeremyk-91jcP  https://github.com/jeremyk-91jqP  1https://api.github.com/users/jeremyk-91/followersjsP  >https://api.github.com/users/jeremyk-91/following{/other_user}juP  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jwP  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jyP  5https://api.github.com/users/jeremyk-91/subscriptionsj{P  ,https://api.github.com/users/jeremyk-91/orgsj}P  -https://api.github.com/users/jeremyk-91/reposjP  8https://api.github.com/users/jeremyk-91/events{/privacy}jP  7https://api.github.com/users/jeremyk-91/received_eventsjP  UserjP  uparents]}(j=P  (8b633648d727e63f353ff21c5f8c0ea46336e9b7jUP  ^https://api.github.com/repos/palantir/atlasdb/commits/8b633648d727e63f353ff21c5f8c0ea46336e9b7jcP  Shttps://github.com/palantir/atlasdb/commit/8b633648d727e63f353ff21c5f8c0ea46336e9b7uastats}(totalK2	additionsK&	deletionsKufiles](}(j=P  (138b999e5f261307af6d7fc7911d1b3ad81b5006filenameaatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javastatusmodifiedjP  KjP  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/30cd082b141761013cb9cd7cbb397eb0151d3d52/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaraw_urlhttps://github.com/palantir/atlasdb/raw/30cd082b141761013cb9cd7cbb397eb0151d3d52/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=30cd082b141761013cb9cd7cbb397eb0151d3d52patchX
  @@ -23,43 +23,63 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import java.util.List;
+import java.util.Optional;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
 
 public final class DefaultWorkflow<T extends TransactionStore> implements Workflow {
     private final ConcurrentTransactionRunner<T> concurrentTransactionRunner;
     private final KeyedTransactionTask<T> transactionTask;
     private final WorkflowConfiguration workflowConfiguration;
     private final ReadOnlyTransactionStore readOnlyTransactionStore;
+    private final Supplier<Optional<WitnessedTransaction>> bootstrap;
 
     private DefaultWorkflow(
             ConcurrentTransactionRunner<T> concurrentTransactionRunner,
             KeyedTransactionTask<T> transactionTask,
             WorkflowConfiguration workflowConfiguration,
-            ReadOnlyTransactionStore readOnlyTransactionStore) {
+            ReadOnlyTransactionStore readOnlyTransactionStore,
+            Supplier<Optional<WitnessedTransaction>> bootstrap) {
         this.concurrentTransactionRunner = concurrentTransactionRunner;
         this.transactionTask = transactionTask;
         this.workflowConfiguration = workflowConfiguration;
         this.readOnlyTransactionStore = readOnlyTransactionStore;
+        this.bootstrap = bootstrap;
     }
 
     public static <T extends TransactionStore> DefaultWorkflow<T> create(
             T store,
             KeyedTransactionTask<T> transactionTask,
             WorkflowConfiguration configuration,
-            ListeningExecutorService executionExecutor) {
+            ListeningExecutorService executionExecutor,
+            KeyedTransactionTask<T> setupTask) {
         return new DefaultWorkflow<>(
                 new ConcurrentTransactionRunner<>(store, executionExecutor),
                 transactionTask,
                 configuration,
-                new ReadOnlyTransactionStore(store));
+                new ReadOnlyTransactionStore(store),
+                () -> setupTask.apply(store, 0));
+    }
+
+    public static <T extends TransactionStore> DefaultWorkflow<T> create(
+            T store,
+            KeyedTransactionTask<T> transactionTask,
+            WorkflowConfiguration configuration,
+            ListeningExecutorService executionExecutor) {
+        return create(store, transactionTask, configuration, executionExecutor, (s, i) -> Optional.empty());
     }
 
     @Override
     public WorkflowHistory run() {
+        Optional<WitnessedTransaction> bootstrapWitness = bootstrap.get();
         return ImmutableWorkflowHistory.builder()
-                .history(
-                        WitnessedTransactions.sortAndFilterTransactions(readOnlyTransactionStore, runTransactionTask()))
+                .history(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        Stream.concat(bootstrapWitness.stream(), runTransactionTask().stream())
+                                .collect(Collectors.toList())))
                 .transactionStore(readOnlyTransactionStore)
                 .build();
     }u}(j=P  (107030aced620b9b3eabd9d2d220e792841a540ejP  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javajP  modifiedjP  K
jP  KjP  KjP  https://github.com/palantir/atlasdb/blob/30cd082b141761013cb9cd7cbb397eb0151d3d52/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javajP  https://github.com/palantir/atlasdb/raw/30cd082b141761013cb9cd7cbb397eb0151d3d52/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javajP  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=30cd082b141761013cb9cd7cbb397eb0151d3d52jP  X  @@ -64,13 +64,17 @@ public static Workflow createSingleRowTwoCell(
             InteractiveTransactionStore store,
             SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsWorkflowConfiguration,
             ListeningExecutorService executionExecutor) {
-        store.readWrite(txn -> txn.write(
-                singleRowTwoCellsWorkflowConfiguration.tableConfiguration().tableName(), FIRST_CELL, 1));
         return DefaultWorkflow.create(
                 store,
                 (txnStore, index) -> run(txnStore, index, singleRowTwoCellsWorkflowConfiguration),
                 singleRowTwoCellsWorkflowConfiguration,
-                executionExecutor);
+                executionExecutor,
+                (st, idx) -> store.readWrite(txn -> txn.write(
+                        singleRowTwoCellsWorkflowConfiguration
+                                .tableConfiguration()
+                                .tableName(),
+                        FIRST_CELL,
+                        1)));
     }
 
     private static Optional<WitnessedTransaction> run(
@@ -86,10 +90,7 @@ private static Optional<WitnessedTransaction> run(
             Map<Integer, Integer> tableState =
                     values.stream().collect(Collectors.toMap(ColumnValue::column, ColumnValue::value));
             if (tableState.size() != 1) {
-                log.error(
-                        "Detected transactions that violated our serializable isolation invariant {}",
-                        SafeArg.of("tableState", tableState));
-                log.error("This is a hack null null null null null null {}", SafeArg.of("tableState", tableState));
+                flagViolation();
             }
 
             if (tableState.containsKey(FIRST_COLUMN)) {
@@ -110,6 +111,11 @@ private static Optional<WitnessedTransaction> run(
         return maybeTransaction;
     }
 
+    private static void flagViolation() {
+        log.error("Illegal table state observed!");
+        throw new NullPointerException("boom");
+    }
+
     @VisibleForTesting
     static List<TransactionAction> createTransactionActions(int taskIndex, String tableName) {
         List<TransactionAction> cellReads = createCellReadActions(tableName);ueu(2116c40ff8c52d8fde537bc25b1b08b85162b17a}(sha(2116c40ff8c52d8fde537bc25b1b08b85162b17anode_idEC_kwDOAjP5fdoAKDIxMTZjNDBmZjhjNTJkOGZkZTUzN2JjMjViMWIwOGI4NTE2MmIxN2Ecommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-15T17:44:33Zu	committer}(jP  Jeremy KongjP  jkong@palantir.comjP  2023-06-15T17:44:33Zumessagesteinwaytree}(jP  (17a74c1e4c5ebd8135d7175e7b7b04476e008c06url`https://api.github.com/repos/palantir/atlasdb/git/trees/17a74c1e4c5ebd8135d7175e7b7b04476e008c06ujP  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2116c40ff8c52d8fde537bc25b1b08b85162b17a
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSLTgEACgkQTLdFKain
zjxvNwgA6Ov90QHFU9UmwMsxNAfNzLBmsu7P6oI5m2ewv8o5xNSTahLM3lKcuV8J
K/9gUZ0PIw9ohvwcBfloTiYbraTOg7sU9TedNcdlQbWUZoU5lT/lXmtFDuwiqyeH
AKeM/2ofgmjyYqFJdJ3Pd67gj2tb1vnC67ahY/z7q+HmOsHSWeN3xWF9NdcV4pLp
/Urhp6c/xlbqikY8wbpMm0HOUa5BOnAiopdmPhlWOdmXEitUgAHQGO5B+ENy17Yj
H7MmdtZu7PR5lrpU1vgwE8crmVt/VF6GNLgLSDySVM0MzckAIcl0usRWCF+epERv
64xQHMzGpHrpNgPWeF2wvGJxoAQLRg==
=iD0i
-----END PGP SIGNATURE-----payloadtree 17a74c1e4c5ebd8135d7175e7b7b04476e008c06
parent f22b05bd52aac9378e3ac1f7ae49e0feb7d4dcac
author Jeremy Kong <jkong@palantir.com> 1686851073 +0800
committer Jeremy Kong <jkong@palantir.com> 1686851073 +0800

steinway
uujP  ^https://api.github.com/repos/palantir/atlasdb/commits/2116c40ff8c52d8fde537bc25b1b08b85162b17ahtml_urlShttps://github.com/palantir/atlasdb/commit/2116c40ff8c52d8fde537bc25b1b08b85162b17acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2116c40ff8c52d8fde537bc25b1b08b85162b17a/commentsjP  }(login
jeremyk-91idJZ jP  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jP  'https://api.github.com/users/jeremyk-91jP  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujP  }(jP  
jeremyk-91jP  JZ jP  MDQ6VXNlcjU5NTU1MTA=jP  3https://avatars.githubusercontent.com/u/5955510?v=4jP  h5jP  'https://api.github.com/users/jeremyk-91jP  https://github.com/jeremyk-91jP  1https://api.github.com/users/jeremyk-91/followersjP  >https://api.github.com/users/jeremyk-91/following{/other_user}jP  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jP  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jP  5https://api.github.com/users/jeremyk-91/subscriptionsjP  ,https://api.github.com/users/jeremyk-91/orgsjP  -https://api.github.com/users/jeremyk-91/reposjP  8https://api.github.com/users/jeremyk-91/events{/privacy}j Q  7https://api.github.com/users/jeremyk-91/received_eventsjQ  UserjQ  uparents]}(jP  (f22b05bd52aac9378e3ac1f7ae49e0feb7d4dcacjP  ^https://api.github.com/repos/palantir/atlasdb/commits/f22b05bd52aac9378e3ac1f7ae49e0feb7d4dcacjP  Shttps://github.com/palantir/atlasdb/commit/f22b05bd52aac9378e3ac1f7ae49e0feb7d4dcacuastats}(totalK	additionsK	deletionsK ufiles]}(jP  (6d1b3b2dbf902fef7ecfaeb49bbd527d97fad4f9filenamefatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/timestamp/InDbTimestampBoundStore.javastatusmodifiedjQ  KjQ  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/2116c40ff8c52d8fde537bc25b1b08b85162b17a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Ftimestamp%2FInDbTimestampBoundStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2116c40ff8c52d8fde537bc25b1b08b85162b17a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Ftimestamp%2FInDbTimestampBoundStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Ftimestamp%2FInDbTimestampBoundStore.java?ref=2116c40ff8c52d8fde537bc25b1b08b85162b17apatchXu  @@ -131,6 +131,7 @@ private InDbTimestampBoundStore(
         this.physicalBoundStoreStrategy = physicalBoundStoreStrategy;
     }
 
+    @SuppressWarnings("GuardedBy") // TODO (jkong): synchronize?
     private void init() {
         try (Connection conn = connManager.getConnection()) {
             physicalBoundStoreStrategy.createTimestampTable(conn, this::getDbType);uau(f92590426de0780734ad9e62b694c9df84b24bd5}(sha(f92590426de0780734ad9e62b694c9df84b24bd5node_idEC_kwDOAjP5fdoAKGY5MjU5MDQyNmRlMDc4MDczNGFkOWU2MmI2OTRjOWRmODRiMjRiZDUcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-07-21T18:47:17Zu	committer}(j;Q  Tom Petraccaj=Q  tpetracca@palantir.comj?Q  2023-07-21T18:48:56Zumessageaccept CKVS revapitree}(j3Q  (0d7c8e32c73749755e0188df20392a5f3d84e076url`https://api.github.com/repos/palantir/atlasdb/git/trees/0d7c8e32c73749755e0188df20392a5f3d84e076ujKQ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f92590426de0780734ad9e62b694c9df84b24bd5
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujKQ  ^https://api.github.com/repos/palantir/atlasdb/commits/f92590426de0780734ad9e62b694c9df84b24bd5html_urlShttps://github.com/palantir/atlasdb/commit/f92590426de0780734ad9e62b694c9df84b24bd5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f92590426de0780734ad9e62b694c9df84b24bd5/commentsj9Q  }(login	tpetraccaidJ& j5Q  MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5jKQ  &https://api.github.com/users/tpetraccajWQ  https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminujAQ  }(j\Q  	tpetraccaj^Q  J& j5Q  MDQ6VXNlcjI1NTQzMjg=j`Q  3https://avatars.githubusercontent.com/u/2554328?v=4jbQ  h5jKQ  &https://api.github.com/users/tpetraccajWQ  https://github.com/tpetraccajeQ  0https://api.github.com/users/tpetracca/followersjgQ  =https://api.github.com/users/tpetracca/following{/other_user}jiQ  6https://api.github.com/users/tpetracca/gists{/gist_id}jkQ  =https://api.github.com/users/tpetracca/starred{/owner}{/repo}jmQ  4https://api.github.com/users/tpetracca/subscriptionsjoQ  +https://api.github.com/users/tpetracca/orgsjqQ  ,https://api.github.com/users/tpetracca/reposjsQ  7https://api.github.com/users/tpetracca/events{/privacy}juQ  6https://api.github.com/users/tpetracca/received_eventsjwQ  UserjyQ  uparents]}(j3Q  (40213f18b411d6255cb4f24c229ce03e40c8fb6cjKQ  ^https://api.github.com/repos/palantir/atlasdb/commits/40213f18b411d6255cb4f24c229ce03e40c8fb6cjWQ  Shttps://github.com/palantir/atlasdb/commit/40213f18b411d6255cb4f24c229ce03e40c8fb6cuastats}(totalK
	additionsK
	deletionsK ufiles]}(j3Q  (854555223c62aceef604d50b4a81b95af84187bcfilename.palantir/revapi.ymlstatusmodifiedjQ  K
jQ  K changesK
blob_urlhhttps://github.com/palantir/atlasdb/blob/f92590426de0780734ad9e62b694c9df84b24bd5/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/f92590426de0780734ad9e62b694c9df84b24bd5/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=f92590426de0780734ad9e62b694c9df84b24bd5patchXt  @@ -173,3 +173,13 @@ acceptedBreaks:
         \ boolean)"
       justification: "all usage or implementations of the two broken methods are entirely\
         \ at compile time of the consumer or within this repo itself"
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.numberOfParametersChanged"
+      old: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.cassandra.CassandraAtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<com.palantir.atlasdb.config.LeaderConfig>, java.util.Optional<java.lang.String>,\
+        \ java.util.function.LongSupplier, boolean)"
+      new: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.cassandra.CassandraAtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<java.lang.String>, java.util.function.LongSupplier, boolean)"
+      justification: "will only be a compile break at worst for users and consumers"uau(dbc262a895756265a813f5400f231e497a9af783}(sha(dbc262a895756265a813f5400f231e497a9af783node_idEC_kwDOAjP5fdoAKGRiYzI2MmE4OTU3NTYyNjVhODEzZjU0MDBmMjMxZTQ5N2E5YWY3ODMcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-13T10:43:55Zu	committer}(jQ  	Tom PapkejQ  tpapke@palantir.comjQ  2023-07-13T10:43:55Zumessage3Use multiple metadata types in sparse metadata testtree}(jQ  (a1eddf50c29bc1ed45e4945edcb2bebf2b3a79b4url`https://api.github.com/repos/palantir/atlasdb/git/trees/a1eddf50c29bc1ed45e4945edcb2bebf2b3a79b4ujQ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/dbc262a895756265a813f5400f231e497a9af783
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSv1WsACgkQmF9s0kaF
Iw2RhQgAqk8apfi6FeyxQKvJQgBibVRDr2rryF30MDPlKl8YP5DnQT0HcXFl2Bzu
tYoIP8ZzGXFHOdg7JpEzkBiir2h5bLgv5viw2FvhYwcKzH4bwXlFFNWfYlGsF/c5
1et4mHffwsJBH4yF146GDadkwZ0ybPCZ6G+KC04xq5oeTcdrIXsjbrL2zKlJEjcm
y1rxnSbtA03Tqp/T0KZIupsYe82eX1h8npURfCuKxR+wSODsAfGmFW/UJ/SczdyJ
c7+OAUuAc5XNLH8BXpIoKO5uHSz4J6L5ecLIgzXs9JU2YiBU7OjQmLWjhmmxnVeY
RPWCRjIbDhYVgGnCjWqDUBqY+5aR3A==
=aNjq
-----END PGP SIGNATURE-----payloadX  tree a1eddf50c29bc1ed45e4945edcb2bebf2b3a79b4
parent 2adaa1ae8b6b0fc3a84a73596174a9686ec3042d
author Tom Papke <tpapke@palantir.com> 1689245035 +0100
committer Tom Papke <tpapke@palantir.com> 1689245035 +0100

Use multiple metadata types in sparse metadata test
uujQ  ^https://api.github.com/repos/palantir/atlasdb/commits/dbc262a895756265a813f5400f231e497a9af783html_urlShttps://github.com/palantir/atlasdb/commit/dbc262a895756265a813f5400f231e497a9af783comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/dbc262a895756265a813f5400f231e497a9af783/commentsjQ  }(login	ToemmscheidJbojQ  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jQ  &https://api.github.com/users/ToemmschejQ  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujQ  }(jQ  	ToemmschejQ  JbojQ  MDQ6VXNlcjQzNjc1NDkwjQ  4https://avatars.githubusercontent.com/u/43675490?v=4jQ  h5jQ  &https://api.github.com/users/ToemmschejQ  https://github.com/ToemmschejQ  0https://api.github.com/users/Toemmsche/followersjQ  =https://api.github.com/users/Toemmsche/following{/other_user}jQ  6https://api.github.com/users/Toemmsche/gists{/gist_id}jQ  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jQ  4https://api.github.com/users/Toemmsche/subscriptionsjQ  +https://api.github.com/users/Toemmsche/orgsjQ  ,https://api.github.com/users/Toemmsche/reposjQ  7https://api.github.com/users/Toemmsche/events{/privacy}jQ  6https://api.github.com/users/Toemmsche/received_eventsjQ  UserjQ  uparents]}(jQ  (2adaa1ae8b6b0fc3a84a73596174a9686ec3042djQ  ^https://api.github.com/repos/palantir/atlasdb/commits/2adaa1ae8b6b0fc3a84a73596174a9686ec3042djQ  Shttps://github.com/palantir/atlasdb/commit/2adaa1ae8b6b0fc3a84a73596174a9686ec3042duastats}(totalK	additionsK
	deletionsKufiles](}(jQ  (04139c5c6a94302d7c0326ccbdc2ab53683820e5filenameSlock-api/src/main/java/com/palantir/lock/watch/ConjureLockRequestMetadataUtils.javastatusmodifiedj
R  KjR  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/dbc262a895756265a813f5400f231e497a9af783/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtils.javaraw_urlhttps://github.com/palantir/atlasdb/raw/dbc262a895756265a813f5400f231e497a9af783/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtils.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtils.java?ref=dbc262a895756265a813f5400f231e497a9af783patchX  @@ -166,7 +166,10 @@ public Optional<ChangeMetadata> visitCreated(ConjureCreatedChangeMetadata create
 
         @Override
         public Optional<ChangeMetadata> visitUnknown(String unknownType) {
-            log.trace("Unknown ConjureChangeMetadata type", SafeArg.of("unknownType", unknownType));
+            log.trace(
+                    "Encountered an unknown ConjureChangeMetadata type. This is likely a new type that was added in a"
+                            + " future version. This ChangeMetadata will be discarded",
+                    SafeArg.of("unknownType", unknownType));
             return Optional.empty();
         }
     }u}(jQ  (c0d1025cfe51e19db09fc5399c40d1efe6257dbajR  Wlock-api/src/test/java/com/palantir/lock/watch/ConjureLockRequestMetadataUtilsTest.javajR  modifiedj
R  K	jR  K
jR  KjR  https://github.com/palantir/atlasdb/blob/dbc262a895756265a813f5400f231e497a9af783/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.javajR  https://github.com/palantir/atlasdb/raw/dbc262a895756265a813f5400f231e497a9af783/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.javajR  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.java?ref=dbc262a895756265a813f5400f231e497a9af783jR  X
  @@ -56,22 +56,17 @@ public class ConjureLockRequestMetadataUtilsTest {
     private static final byte[] BYTES_DELETED = PtBytes.toBytes("deleted");
     private static final byte[] BYTES_CREATED = PtBytes.toBytes("created");
     private static final List<LockDescriptor> LOCK_LIST = ImmutableList.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4);
-    private static final List<ChangeMetadata> CHANGE_METADATA_LIST = ImmutableList.of(
-            ChangeMetadata.unchanged(),
-            ChangeMetadata.updated(BYTES_OLD, BYTES_NEW),
-            ChangeMetadata.deleted(BYTES_DELETED),
-            ChangeMetadata.created(BYTES_CREATED));
     // Although this is quite verbose, we explicitly want to test all possible types of change metadata and ensure
     // that we do the conversion right for each of them.
     private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(ImmutableMap.of(
             LOCK_1,
-            CHANGE_METADATA_LIST.get(0),
+            ChangeMetadata.unchanged(),
             LOCK_2,
-            CHANGE_METADATA_LIST.get(1),
+            ChangeMetadata.updated(BYTES_OLD, BYTES_NEW),
             LOCK_3,
-            CHANGE_METADATA_LIST.get(2),
+            ChangeMetadata.deleted(BYTES_DELETED),
             LOCK_4,
-            CHANGE_METADATA_LIST.get(3)));
+            ChangeMetadata.created(BYTES_CREATED)));
     private static final Map<Integer, ConjureChangeMetadata> CONJURE_LOCKS_WITH_METADATA = ImmutableMap.of(
             0,
             ConjureChangeMetadata.unchanged(ConjureUnchangedChangeMetadata.of()),
@@ -124,10 +119,11 @@ public void canConvertSparseMetadata() {
                 .collect(Collectors.toList());
         // Unique metadata on some locks, but not all
         Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata = ImmutableMap.of(
-                lockDescriptors.get(0), ChangeMetadata.created(PtBytes.toBytes(0)),
-                lockDescriptors.get(4), ChangeMetadata.created(PtBytes.toBytes(4)),
-                lockDescriptors.get(9), ChangeMetadata.created(PtBytes.toBytes(9)),
-                lockDescriptors.get(5), ChangeMetadata.created(PtBytes.toBytes(5)));
+                lockDescriptors.get(0), ChangeMetadata.created(BYTES_CREATED),
+                lockDescriptors.get(4), ChangeMetadata.deleted(BYTES_DELETED),
+                lockDescriptors.get(9), ChangeMetadata.unchanged(),
+                lockDescriptors.get(5), ChangeMetadata.updated(BYTES_OLD, BYTES_NEW),
+                lockDescriptors.get(7), ChangeMetadata.unchanged());
         LockRequestMetadata metadata = LockRequestMetadata.of(lockDescriptorToChangeMetadata);
 
         assertThat(ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(ueu(2a0ececba68ffd9d01c3512db1eb8fd6e8feb369}(sha(2a0ececba68ffd9d01c3512db1eb8fd6e8feb369node_idEC_kwDOAjP5fdoAKDJhMGVjZWNiYTY4ZmZkOWQwMWMzNTEyZGIxZWI4ZmQ2ZThmZWIzNjkcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-06T22:06:12Zu	committer}(j/R  
Sam Kramerj1R  skramer@palantir.comj3R  2023-03-06T22:06:12Zumessageremove unneeded booleantree}(j'R  (ac1ed0d5e6f0c2e6250a0ec549f10f245e787c18url`https://api.github.com/repos/palantir/atlasdb/git/trees/ac1ed0d5e6f0c2e6250a0ec549f10f245e787c18uj?R  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2a0ececba68ffd9d01c3512db1eb8fd6e8feb369
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQGY9QACgkQmPPOpKR4
XS0g0QgAo5t8J4HfeaYaXNN7T2Ff81OC2R7eswn1WLq41GabHYEieloqUyccDv6P
1GdPNic1sWmKZfEgKPqSR+zSac+JteyIQZvHHr5FvwKd5RzGmcy7aJTTg+ZncFLC
VVmGzE7bKNbvFl3rVib5q8uakWRgug2z2ZPmO8l4qdfKGmGIxAL9BHvhgZEcUW3l
z+i9OMzyYsv8/nwb3FnkQ1k8Dbi3NBspGSrDPmfh0i6KJ+cQr518R6F2uDPQlMmd
TNODSU4twwWMRSn9ML6VYS1jKf/PaxYxnbluhpKSM3ekiDUXHiYl6MPO5QQU3BTu
Fb8weQCCulvOw6HbGCX7LyxMby0s3A==
=VKGC
-----END PGP SIGNATURE-----payloadtree ac1ed0d5e6f0c2e6250a0ec549f10f245e787c18
parent f8d6e0b618006dde21ea94f2c6ec94b0422a31a7
author Sam Kramer <skramer@palantir.com> 1678140372 +0000
committer Sam Kramer <skramer@palantir.com> 1678140372 +0000

remove unneeded boolean
uuj?R  ^https://api.github.com/repos/palantir/atlasdb/commits/2a0ececba68ffd9d01c3512db1eb8fd6e8feb369html_urlShttps://github.com/palantir/atlasdb/commit/2a0ececba68ffd9d01c3512db1eb8fd6e8feb369comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2a0ececba68ffd9d01c3512db1eb8fd6e8feb369/commentsj-R  }(login
Sam-KrameridJ^2_ j)R  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j?R  'https://api.github.com/users/Sam-KramerjMR  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj5R  }(jRR  
Sam-KramerjTR  J^2_ j)R  MDQ6VXNlcjYyMzg4MTQ=jVR  3https://avatars.githubusercontent.com/u/6238814?v=4jXR  h5j?R  'https://api.github.com/users/Sam-KramerjMR  https://github.com/Sam-Kramerj[R  1https://api.github.com/users/Sam-Kramer/followersj]R  >https://api.github.com/users/Sam-Kramer/following{/other_user}j_R  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jaR  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jcR  5https://api.github.com/users/Sam-Kramer/subscriptionsjeR  ,https://api.github.com/users/Sam-Kramer/orgsjgR  -https://api.github.com/users/Sam-Kramer/reposjiR  8https://api.github.com/users/Sam-Kramer/events{/privacy}jkR  7https://api.github.com/users/Sam-Kramer/received_eventsjmR  UserjoR  uparents]}(j'R  (f8d6e0b618006dde21ea94f2c6ec94b0422a31a7j?R  ^https://api.github.com/repos/palantir/atlasdb/commits/f8d6e0b618006dde21ea94f2c6ec94b0422a31a7jMR  Shttps://github.com/palantir/atlasdb/commit/f8d6e0b618006dde21ea94f2c6ec94b0422a31a7uastats}(totalK	additionsK	deletionsKufiles]}(j'R  (ef54f8e35927e4fe5e624cd9ebaf9f546b9c1e64filenamedatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javastatusmodifiedjR  KjR  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/2a0ececba68ffd9d01c3512db1eb8fd6e8feb369/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2a0ececba68ffd9d01c3512db1eb8fd6e8feb369/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=2a0ececba68ffd9d01c3512db1eb8fd6e8feb369patchX  @@ -355,9 +355,7 @@ void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> des
         Set<CassandraServer> validatedServersToAdd =
                 validateNewHostsTopologiesAndMaybeAddToPool(currentPoolWithoutAbsentServers, serversToAdd);
 
-        boolean poolEmpty = currentPoolWithoutAbsentServers.isEmpty() && validatedServersToAdd.isEmpty();
-
-        if (poolEmpty) {
+        if (currentPoolWithoutAbsentServers.isEmpty() && validatedServersToAdd.isEmpty()) {
             metrics.recordEmptyPool();
             throw new SafeIllegalStateException(
                     "No servers were successfully added to the pool. This means we could not come to a consensus on"uau(726ba9de882e3956f0e0f1a20d32b9c462b59d26}(sha(726ba9de882e3956f0e0f1a20d32b9c462b59d26node_idEC_kwDOAjP5fdoAKDcyNmJhOWRlODgyZTM5NTZmMGUwZjFhMjBkMzJiOWM0NjJiNTlkMjYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-19T12:04:43Zu	committer}(jR  GitHubjR  noreply@github.comjR  2023-05-19T12:04:43Zumessage[Antithesis] Single Busy Cell Workflow aka "Bouncing Value" (#6573)

* cleaning

* single busy cell

* fix

* womp

* CR feedbacktree}(jR  (23fa91eb67069c476633f4bbefe382dc991ffe5aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/23fa91eb67069c476633f4bbefe382dc991ffe5aujR  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/726ba9de882e3956f0e0f1a20d32b9c462b59d26
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkZ2XbCRBK7hj4Ov3rIwAAEWAIAGQvrTb9MwWLNs993AiVk/14
Egy8bZmawzVFY51EW6pmRBOjdNiwWtseW00NaRwG/qrGrQaxrVTjob1OezcHx0so
YvApgZgOHKApNfqPtCO6UukdikaaIrehoni4l+fh3uKIWT34VFYF6PMRmIs74qZg
U40bPivELD+/33UE/odbQdLrdoXLv3L/0lZgR0n09wJJij4G5Ax9DatYTAa5u3fZ
XaSGoIrwwEtRR3BYYc3WluN4N3XF+A1LiyBPfm3Gn/o0RTFitpLeiKdcUz84nBP2
AdgiS5SA/lVVsBaR8Q0o5JEYKF0g/5Jp0tC4pYiCuJFYexMeOBq5DbGxKr4U5Ho=
=h32n
-----END PGP SIGNATURE-----
payloadXX  tree 23fa91eb67069c476633f4bbefe382dc991ffe5a
parent 46e621c018f0c87fc21c8bd7d7a4e773e88a03af
author Jeremy Kong <jkong@palantir.com> 1684497883 +0100
committer GitHub <noreply@github.com> 1684497883 +0100

[Antithesis] Single Busy Cell Workflow aka "Bouncing Value" (#6573)

* cleaning

* single busy cell

* fix

* womp

* CR feedbackuujR  ^https://api.github.com/repos/palantir/atlasdb/commits/726ba9de882e3956f0e0f1a20d32b9c462b59d26html_urlShttps://github.com/palantir/atlasdb/commit/726ba9de882e3956f0e0f1a20d32b9c462b59d26comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/726ba9de882e3956f0e0f1a20d32b9c462b59d26/commentsjR  }(login
jeremyk-91idJZ jR  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jR  'https://api.github.com/users/jeremyk-91jR  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujR  }(jR  web-flowjR  J/jR  MDQ6VXNlcjE5ODY0NDQ3jR  4https://avatars.githubusercontent.com/u/19864447?v=4jR  h5jR  %https://api.github.com/users/web-flowjR  https://github.com/web-flowjR  /https://api.github.com/users/web-flow/followersjR  <https://api.github.com/users/web-flow/following{/other_user}jR  5https://api.github.com/users/web-flow/gists{/gist_id}jR  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jR  3https://api.github.com/users/web-flow/subscriptionsjR  *https://api.github.com/users/web-flow/orgsjR  +https://api.github.com/users/web-flow/reposjR  6https://api.github.com/users/web-flow/events{/privacy}jR  5https://api.github.com/users/web-flow/received_eventsjR  UserjR  uparents]}(jR  (46e621c018f0c87fc21c8bd7d7a4e773e88a03afjR  ^https://api.github.com/repos/palantir/atlasdb/commits/46e621c018f0c87fc21c8bd7d7a4e773e88a03afjR  Shttps://github.com/palantir/atlasdb/commit/46e621c018f0c87fc21c8bd7d7a4e773e88a03afuastats}(totalMI	additionsM	deletionsKmufiles](}(jR  (74c7d07fed075804723d8ff542d22d49e1953cb8filenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj S  K#jS  KchangesK$blob_urlhttps://github.com/palantir/atlasdb/blob/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=726ba9de882e3956f0e0f1a20d32b9c462b59d26patchX  @@ -34,6 +34,8 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
 import com.palantir.atlasdb.workload.workflow.Workflow;
@@ -124,13 +126,17 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().singleRowTwoCellsConfig();
         RingWorkflowConfiguration ringWorkflowConfiguration =
                 configuration.install().ringConfig();
+        SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
+                configuration.install().singleBusyCellConfig();
 
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
                 .run(
                         createSingleRowTwoCellsWorkflowValidator(
                                 transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
                         createRingWorkflowValidator(
-                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()));
+                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellWorkflowValidator(
+                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -141,6 +147,34 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-read")
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-write")
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
     private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             RingWorkflowConfiguration workflowConfig,ug     }(jR  (e066585ffc82825e55fda21d1909dcc38bb9b518jS  atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javajS  modifiedj S  KjS  K j
S  KjS  https://github.com/palantir/atlasdb/blob/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj
S  https://github.com/palantir/atlasdb/raw/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javajS  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=726ba9de882e3956f0e0f1a20d32b9c462b59d26jS  X  @@ -19,6 +19,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
@@ -33,5 +34,7 @@ public interface WorkloadServerInstallConfiguration {
 
     RingWorkflowConfiguration ringConfig();
 
+    SingleBusyCellWorkflowConfiguration singleBusyCellConfig();
+
     boolean exitAfterRunning();
 }u}(jR  (d8121b0b815f2fb3134e788ecc38e1fba194cf2ejS  Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymljS  modifiedj S  KjS  K j
S  KjS  https://github.com/palantir/atlasdb/blob/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj
S  https://github.com/palantir/atlasdb/raw/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymljS  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=726ba9de882e3956f0e0f1a20d32b9c462b59d26jS  Xi  @@ -16,4 +16,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: ring
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
   exitAfterRunning: false
\ No newline at end of fileu}(jR  (6cf182d6892424ba60d6899cdd9f14024074a62bjS  Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymljS  modifiedj S  KjS  K j
S  KjS  https://github.com/palantir/atlasdb/blob/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj
S  https://github.com/palantir/atlasdb/raw/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljS  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=726ba9de882e3956f0e0f1a20d32b9c462b59d26jS  XL  @@ -51,4 +51,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: ring
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
   exitAfterRunning: trueu}(jR  (e7a39b321f9030a001b4fc428fdefbb6eaeb7280jS  Aatlasdb-workload-server-distribution/var/conf/workload-server.ymljS  modifiedj S  KjS  K j
S  KjS  https://github.com/palantir/atlasdb/blob/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj
S  https://github.com/palantir/atlasdb/raw/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljS  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=726ba9de882e3956f0e0f1a20d32b9c462b59d26jS  Xh  @@ -16,4 +16,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: ring
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
   exitAfterRunning: true
\ No newline at end of fileu}(jR  (c0b3881cb15e0ba7b72700e3a80768b2c77a4b32jS  tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactions.javajS  addedj S  K-jS  K j
S  K-jS  https://github.com/palantir/atlasdb/blob/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.javaj
S  https://github.com/palantir/atlasdb/raw/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.javajS  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.java?ref=726ba9de882e3956f0e0f1a20d32b9c462b59d26jS  X  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.Comparator;
+import java.util.List;
+import one.util.streamex.StreamEx;
+
+public final class WitnessedTransactions {
+    private WitnessedTransactions() {
+        // utility
+    }
+
+    /**
+     * Sorts transactions by their effective timestamp and filters out transactions that are not fully committed.
+     */
+    public static List<FullyWitnessedTransaction> sortAndFilterTransactions(
+            ReadOnlyTransactionStore readOnlyTransactionStore, List<WitnessedTransaction> unorderedTransactions) {
+        OnlyCommittedWitnessedTransactionVisitor visitor =
+                new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
+        return StreamEx.of(unorderedTransactions)
+                .mapPartial(transaction -> transaction.accept(visitor))
+                .sorted(Comparator.comparingLong(WitnessedTransactions::effectiveTimestamp))
+                .toList();
+    }
+
+    private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
+        return witnessedTransaction.commitTimestamp().orElseGet(witnessedTransaction::startTimestamp);
+    }
+}u}(jR  (f4ad0b8dddc43f5cd0380760c6cfdc9c58c273e1jS  aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javajS  modifiedj S  KjS  Kj
S  KjS  https://github.com/palantir/atlasdb/blob/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj
S  https://github.com/palantir/atlasdb/raw/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajS  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=726ba9de882e3956f0e0f1a20d32b9c462b59d26jS  Xf
  @@ -16,19 +16,15 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.OnlyCommittedWitnessedTransactionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
-import java.util.Comparator;
 import java.util.List;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
-import one.util.streamex.StreamEx;
 
 public final class DefaultWorkflow<T extends TransactionStore> implements Workflow {
     private final ConcurrentTransactionRunner<T> concurrentTransactionRunner;
@@ -62,7 +58,8 @@ public static <T extends TransactionStore> DefaultWorkflow<T> create(
     @Override
     public WorkflowHistory run() {
         return ImmutableWorkflowHistory.builder()
-                .history(sortAndFilterTransactions(runTransactionTask()))
+                .history(
+                        WitnessedTransactions.sortAndFilterTransactions(readOnlyTransactionStore, runTransactionTask()))
                 .transactionStore(readOnlyTransactionStore)
                 .build();
     }
@@ -80,21 +77,4 @@ private List<WitnessedTransaction> runTransactionTask() {
             throw new SafeRuntimeException("Error when running workflow task", e.getCause());
         }
     }
-
-    /**
-     * Sorts transactions by their effective timestamp and filters out transactions that are not fully committed.
-     */
-    @VisibleForTesting
-    List<FullyWitnessedTransaction> sortAndFilterTransactions(List<WitnessedTransaction> unorderedTransactions) {
-        OnlyCommittedWitnessedTransactionVisitor visitor =
-                new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
-        return StreamEx.of(unorderedTransactions)
-                .mapPartial(transaction -> transaction.accept(visitor))
-                .sorted(Comparator.comparingLong(DefaultWorkflow::effectiveTimestamp))
-                .toList();
-    }
-
-    private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
-        return witnessedTransaction.commitTimestamp().orElseGet(witnessedTransaction::startTimestamp);
-    }
 }u}(jR  (4ca9777a60bba46b458d814677435f4e29d93675jS  uatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowConfiguration.javajS  addedj S  K jS  K j
S  K jS  https://github.com/palantir/atlasdb/blob/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.javaj
S  https://github.com/palantir/atlasdb/raw/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.javajS  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.java?ref=726ba9de882e3956f0e0f1a20d32b9c462b59d26jS  X?  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellWorkflowConfiguration.TYPE)
+public interface SingleBusyCellWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell";
+
+    TableConfiguration tableConfiguration();
+}u}(jR  (c82f3d3c2182e14e8f2d6630ac1cb719f0cd3c4cjS  iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflows.javajS  addedj S  KijS  K j
S  KijS  https://github.com/palantir/atlasdb/blob/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.javaj
S  https://github.com/palantir/atlasdb/raw/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.javajS  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.java?ref=726ba9de882e3956f0e0f1a20d32b9c462b59d26jS  X  @@ -0,0 +1,105 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions.
+ */
+public final class SingleBusyCellWorkflows {
+    private SingleBusyCellWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReadsAndTouches(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReadsAndTouches(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(txn -> {
+                    Optional<Integer> value =
+                            txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL);
+                    txn.write(configuration.tableConfiguration().tableName(), BUSY_CELL, value.orElse(-1));
+                })))
+                .collect(Collectors.toList());
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
+    }
+}u}(jR  (c5349645dc81bf0c8bc33bc720961e281110a64fjS  xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionsTest.javajS  addedj S  KjS  K j
S  KjS  https://github.com/palantir/atlasdb/blob/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javaj
S  https://github.com/palantir/atlasdb/raw/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javajS  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.java?ref=726ba9de882e3956f0e0f1a20d32b9c462b59d26jS  X  @@ -0,0 +1,131 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.List;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class WitnessedTransactionsTest {
+    @Mock
+    private ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    @Test
+    public void returnsUnderlyingWitnessedTransactions() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(twoToEight)))
+                .containsExactly(twoToEight);
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(readOnlyAtFive)))
+                .containsExactly(readOnlyAtFive);
+    }
+
+    @Test
+    public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
+                .containsExactly(fourToSix, threeToSeven, twoToEight);
+    }
+
+    @Test
+    public void sortsReadOnlyTransactionsByStartTimestamp() {
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
+                .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
+    }
+
+    @Test
+    public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        ImmutableList.of(
+                                twoToEight,
+                                readOnlyAtNine,
+                                fourToSix,
+                                readOnlyAtFive,
+                                readOnlyAtThree,
+                                readOnlyAtSeven)))
+                .containsExactly(
+                        readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
+    }
+
+    @Test
+    public void filterRemovesUncommittedTransactions() {
+        MaybeWitnessedTransaction committedMaybeWitnessedTransaction =
+                createMaybeWitnessedTransactionWithoutActions(1, 3, true);
+        MaybeWitnessedTransaction notCommittedTransaction = createMaybeWitnessedTransactionWithoutActions(2, 8, false);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        List.of(
+                                committedMaybeWitnessedTransaction,
+                                notCommittedTransaction,
+                                readOnlyAtFive,
+                                fourToSix)))
+                .containsExactly(committedMaybeWitnessedTransaction.toFullyWitnessed(), readOnlyAtFive, fourToSix);
+    }
+
+    private MaybeWitnessedTransaction createMaybeWitnessedTransactionWithoutActions(
+            long start, long commit, boolean committed) {
+        when(readOnlyTransactionStore.isCommitted(eq(start))).thenReturn(committed);
+        return MaybeWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+
+    private static FullyWitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
+        return FullyWitnessedTransaction.builder().startTimestamp(start).build();
+    }
+
+    private static FullyWitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+}u}(jR  (84316bacac0bff7ed7e0091b3a88e14381eec0f0jS  eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javajS  modifiedj S  K jS  KUj
S  KUjS  https://github.com/palantir/atlasdb/blob/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj
S  https://github.com/palantir/atlasdb/raw/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javajS  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=726ba9de882e3956f0e0f1a20d32b9c462b59d26jS  X  @@ -16,21 +16,16 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.anyInt;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
-import com.google.common.collect.ImmutableList;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.common.concurrent.PTExecutors;
-import java.util.List;
 import java.util.concurrent.ScheduledExecutorService;
 import org.junit.Test;
 
@@ -54,66 +49,6 @@ public void handlesExceptionsInUnderlyingTasks() {
                 .hasCause(transactionException);
     }
 
-    @Test
-    public void returnsUnderlyingWitnessedTransactions() {
-        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-
-        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight)))
-                .containsExactly(twoToEight);
-        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(readOnlyAtFive)))
-                .containsExactly(readOnlyAtFive);
-    }
-
-    @Test
-    public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
-        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        FullyWitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
-        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
-
-        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
-                .containsExactly(fourToSix, threeToSeven, twoToEight);
-    }
-
-    @Test
-    public void sortsReadOnlyTransactionsByStartTimestamp() {
-        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        FullyWitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
-
-        assertThat(workflow.sortAndFilterTransactions(
-                        ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
-                .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
-    }
-
-    @Test
-    public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
-        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
-
-        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        FullyWitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
-
-        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(
-                        twoToEight, readOnlyAtNine, fourToSix, readOnlyAtFive, readOnlyAtThree, readOnlyAtSeven)))
-                .containsExactly(
-                        readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
-    }
-
-    @Test
-    public void filterRemovesUncommittedTransactions() {
-        MaybeWitnessedTransaction committedMaybeWitnessedTransaction =
-                createMaybeWitnessedTransactionWithoutActions(1, 3, true);
-        MaybeWitnessedTransaction notCommittedTransaction = createMaybeWitnessedTransactionWithoutActions(2, 8, false);
-        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
-        assertThat(workflow.sortAndFilterTransactions(List.of(
-                        committedMaybeWitnessedTransaction, notCommittedTransaction, readOnlyAtFive, fourToSix)))
-                .containsExactly(committedMaybeWitnessedTransaction.toFullyWitnessed(), readOnlyAtFive, fourToSix);
-    }
-
     private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
         return new WorkflowConfiguration() {
             @Override
@@ -122,24 +57,4 @@ public int iterationCount() {
             }
         };
     }
-
-    private MaybeWitnessedTransaction createMaybeWitnessedTransactionWithoutActions(
-            long start, long commit, boolean committed) {
-        when(store.isCommitted(eq(start))).thenReturn(committed);
-        return MaybeWitnessedTransaction.builder()
-                .startTimestamp(start)
-                .commitTimestamp(commit)
-                .build();
-    }
-
-    private static FullyWitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
-        return FullyWitnessedTransaction.builder().startTimestamp(start).build();
-    }
-
-    private static FullyWitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
-        return FullyWitnessedTransaction.builder()
-                .startTimestamp(start)
-                .commitTimestamp(commit)
-                .build();
-    }
 }u}(jR  (051afb2dbe0f301ea8ff0ca03da0e8f1a9387a2ajS  matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowsTest.javajS  addedj S  KejS  K j
S  KejS  https://github.com/palantir/atlasdb/blob/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javaj
S  https://github.com/palantir/atlasdb/raw/726ba9de882e3956f0e0f1a20d32b9c462b59d26/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javajS  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.java?ref=726ba9de882e3956f0e0f1a20d32b9c462b59d26jS  X  @@ -0,0 +1,101 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Collection;
+import java.util.List;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class SingleBusyCellWorkflowsTest {
+    private static final String TABLE_NAME = "busy.cell";
+    private static final int ITERATION_COUNT = 1_000;
+    private static final SingleBusyCellWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow workflow = SingleBusyCellWorkflows.create(
+            transactionStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)),
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)));
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void transactionsDoNotConflictExcessively() {
+        WorkflowHistory workflowHistory = workflow.run();
+        assertThat(workflowHistory.history()).hasSizeBetween(ITERATION_COUNT / 2, ITERATION_COUNT);
+    }
+
+    @Test
+    public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.table().equals(TABLE_NAME));
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.cell().equals(SingleBusyCellWorkflows.BUSY_CELL));
+    }
+
+    @Test
+    public void targetCellIsReadModifiedAndDeleted() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+}ueu(01ac3b6729f6062d205c91e6bd6631355c40bf2f}(sha(01ac3b6729f6062d205c91e6bd6631355c40bf2fnode_idEC_kwDOAjP5fdoAKDAxYWMzYjY3MjlmNjA2MmQyMDVjOTFlNmJkNjYzMTM1NWM0MGJmMmYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-10T09:51:54Zu	committer}(juS  
Sam KramerjwS  skramer@palantir.comjyS  2023-08-10T09:51:54Zumessagerefactor ring testtree}(jmS  (d7bc252ed1c4814137bf9bd7b0db3ffc78cc2eddurl`https://api.github.com/repos/palantir/atlasdb/git/trees/d7bc252ed1c4814137bf9bd7b0db3ffc78cc2eddujS  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/01ac3b6729f6062d205c91e6bd6631355c40bf2f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTUszoACgkQmPPOpKR4
XS1lMQgAv8gFxjEUt0Af2Ga4ErCYXFyJ7uhQzQqIM2Fa62KwiVa+jxqUUzWI3/wo
l/Uuj+8nKdT8u8LqV5P3HAcsxLptxk6IbjKovMYxKb5f1kPGfRQODgLLGvHUvqMC
v4zuFxTVLOk9wX/PA6+7tVxE8rHYcwqr2eG7sfGwltroYCgxI1mhM1S4iRLmJ0rA
jjZcqHwG5CPRnBN/1EGjEs7bVT+vb4Iz/R2HrwuMrnDvXKItvVApnnzew89mXj/U
eAuNKDMi6Y0D2Rt+8K/6ZH2nSs0PgBtxlHdn1kQrsyHttiUK4fZ9CyIXLSCh3eCL
Lxr54iLHB1mIK49M6qvEHYpuNCReFA==
=arWp
-----END PGP SIGNATURE-----payloadtree d7bc252ed1c4814137bf9bd7b0db3ffc78cc2edd
parent 99e2c16fb38f05280b1081eaa6e15da4fca051e9
author Sam Kramer <skramer@palantir.com> 1691661114 +0100
committer Sam Kramer <skramer@palantir.com> 1691661114 +0100

refactor ring test
uujS  ^https://api.github.com/repos/palantir/atlasdb/commits/01ac3b6729f6062d205c91e6bd6631355c40bf2fhtml_urlShttps://github.com/palantir/atlasdb/commit/01ac3b6729f6062d205c91e6bd6631355c40bf2fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/01ac3b6729f6062d205c91e6bd6631355c40bf2f/commentsjsS  }(login
Sam-KrameridJ^2_ joS  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jS  'https://api.github.com/users/Sam-KramerjS  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj{S  }(jS  
Sam-KramerjS  J^2_ joS  MDQ6VXNlcjYyMzg4MTQ=jS  3https://avatars.githubusercontent.com/u/6238814?v=4jS  h5jS  'https://api.github.com/users/Sam-KramerjS  https://github.com/Sam-KramerjS  1https://api.github.com/users/Sam-Kramer/followersjS  >https://api.github.com/users/Sam-Kramer/following{/other_user}jS  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jS  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jS  5https://api.github.com/users/Sam-Kramer/subscriptionsjS  ,https://api.github.com/users/Sam-Kramer/orgsjS  -https://api.github.com/users/Sam-Kramer/reposjS  8https://api.github.com/users/Sam-Kramer/events{/privacy}jS  7https://api.github.com/users/Sam-Kramer/received_eventsjS  UserjS  uparents]}(jmS  (99e2c16fb38f05280b1081eaa6e15da4fca051e9jS  ^https://api.github.com/repos/palantir/atlasdb/commits/99e2c16fb38f05280b1081eaa6e15da4fca051e9jS  Shttps://github.com/palantir/atlasdb/commit/99e2c16fb38f05280b1081eaa6e15da4fca051e9uastats}(totalK	additionsKf	deletionsK5ufiles](}(jmS  (173eceacf2fc344be6144d9d1c95b404db4913e9filename`atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingGraph.javastatusmodifiedjS  KjS  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/01ac3b6729f6062d205c91e6bd6631355c40bf2f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaraw_urlhttps://github.com/palantir/atlasdb/raw/01ac3b6729f6062d205c91e6bd6631355c40bf2f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.java?ref=01ac3b6729f6062d205c91e6bd6631355c40bf2fpatchX  @@ -18,8 +18,6 @@
 
 import com.google.common.collect.Iterators;
 import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
-import com.palantir.logsafe.Preconditions;
-import com.palantir.logsafe.SafeArg;
 import java.security.SecureRandom;
 import java.util.ArrayList;
 import java.util.Collections;
@@ -52,10 +50,9 @@ public static RingGraph fromPartial(Map<Integer, Optional<Integer>> ring) throws
             return RingGraph.generateNewRing(ring.keySet());
         }
 
-        Preconditions.checkArgument(
-                !anyEmpty(ring),
-                "Graph contains missing entries, thus cannot be made into a ring.",
-                SafeArg.of("ring", ring));
+        if (anyEmpty(ring)) {
+            RingValidationException.throwIncompleteRing(ring);
+        }
 
         return from(EntryStream.of(ring).mapValues(Optional::get).toMap());
     }
@@ -82,7 +79,7 @@ public static void validateGraphIsRing(Map<Integer, Integer> ring) throws RingVa
         for (int iterations = 0; iterations < maxIterations; iterations++) {
             // If we reference a node that does not exist in our ring, it means we are missing data
             if (!ring.containsKey(nextNode)) {
-                RingValidationException.throwMissingEntries(ring);
+                RingValidationException.throwMissingReference(ring);
             }
 
             // If the node already has been visited, it means we're in a cycle within our ringu}(jmS  (1af0211800e026a9e79e5afbbf3c41a93b009fd3jS  natlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingValidationException.javajS  modifiedjS  KjS  KjS  KjS  https://github.com/palantir/atlasdb/blob/01ac3b6729f6062d205c91e6bd6631355c40bf2f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javajS  https://github.com/palantir/atlasdb/raw/01ac3b6729f6062d205c91e6bd6631355c40bf2f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javajS  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.java?ref=01ac3b6729f6062d205c91e6bd6631355c40bf2fjS  X  @@ -22,13 +22,15 @@
 import com.palantir.logsafe.SafeLoggable;
 import java.util.List;
 import java.util.Map;
+import java.util.Optional;
+import java.util.stream.Collectors;
 
 public final class RingValidationException extends IllegalArgumentException implements SafeLoggable {
 
-    private final Map<Integer, Integer> ring;
+    private final Map<Integer, Optional<Integer>> ring;
     private final Type type;
 
-    private RingValidationException(Map<Integer, Integer> ring, Type type) {
+    private RingValidationException(Map<Integer, Optional<Integer>> ring, Type type) {
         this.ring = ring;
         this.type = type;
     }
@@ -43,12 +45,24 @@ public List<Arg<?>> getArgs() {
         return List.of(SafeArg.of("ring", ring), SafeArg.of("type", type));
     }
 
+    public Map<Integer, Optional<Integer>> getRing() {
+        return ring;
+    }
+
     public static void throwEarlyCycle(Map<Integer, Integer> ring) throws RingValidationException {
-        throw new RingValidationException(ring, Type.EARLY_CYCLE);
+        throw new RingValidationException(wrapMap(ring), Type.EARLY_CYCLE);
+    }
+
+    public static void throwMissingReference(Map<Integer, Integer> ring) throws RingValidationException {
+        throw new RingValidationException(wrapMap(ring), Type.MISSING_REFERENCE);
     }
 
-    public static void throwMissingEntries(Map<Integer, Integer> ring) throws RingValidationException {
-        throw new RingValidationException(ring, Type.MISSING_ENTRIES);
+    public static void throwIncompleteRing(Map<Integer, Optional<Integer>> ring) throws RingValidationException {
+        throw new RingValidationException(ring, Type.INCOMPLETE_RING);
+    }
+
+    private static Map<Integer, Optional<Integer>> wrapMap(Map<Integer, Integer> map) {
+        return map.entrySet().stream().collect(Collectors.toMap(Map.Entry::getKey, e -> Optional.of(e.getValue())));
     }
 
     enum Type {
@@ -58,6 +72,9 @@ enum Type {
 
         // Detected a reference to a node that does not exist,
         // indicating the integrity of our ring has been compromised.
-        MISSING_ENTRIES;
+        MISSING_REFERENCE,
+
+        // Missing entries that are expected to exist.
+        INCOMPLETE_RING;
     }
 }u}(jmS  (f6d49f4e6cae4ab9a0e13982104077a486805064jS  datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflows.javajS  modifiedjS  K>jS  K&jS  KdjS  https://github.com/palantir/atlasdb/blob/01ac3b6729f6062d205c91e6bd6631355c40bf2f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javajS  https://github.com/palantir/atlasdb/raw/01ac3b6729f6062d205c91e6bd6631355c40bf2f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javajS  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.java?ref=01ac3b6729f6062d205c91e6bd6631355c40bf2fjS  XP  @@ -23,12 +23,14 @@
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
+import com.palantir.atlasdb.workload.workflow.KeyedTransactionTask;
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.function.Consumer;
 import java.util.function.Function;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
@@ -50,63 +52,85 @@ private RingWorkflows() {
         // static factory
     }
 
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration ringWorkflowConfiguration,
+            ListeningExecutorService executionExecutor,
+            Consumer<RingValidationException> onFailure) {
+        return create(store, ringWorkflowConfiguration, executionExecutor, new AtomicBoolean(false), onFailure);
+    }
+
     public static Workflow create(
             InteractiveTransactionStore store,
             RingWorkflowConfiguration ringWorkflowConfiguration,
             ListeningExecutorService executionExecutor) {
-        AtomicBoolean skipRunning = new AtomicBoolean(false);
-        return DefaultWorkflow.create(
+        return create(
                 store,
-                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
                 ringWorkflowConfiguration,
-                executionExecutor);
+                executionExecutor,
+                new AtomicBoolean(false),
+                error -> log.error("Detected violation with our ring.", error));
     }
 
     @VisibleForTesting
     static Workflow create(
             InteractiveTransactionStore store,
             RingWorkflowConfiguration ringWorkflowConfiguration,
             ListeningExecutorService executionExecutor,
-            AtomicBoolean skipRunning) {
-        return DefaultWorkflow.create(
-                store,
-                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
-                ringWorkflowConfiguration,
-                executionExecutor);
+            AtomicBoolean skipRunning,
+            Consumer<RingValidationException> onFailure) {
+        RingWorkflowTask task = new RingWorkflowTask(skipRunning, onFailure, ringWorkflowConfiguration);
+        return DefaultWorkflow.create(store, task, ringWorkflowConfiguration, executionExecutor);
     }
 
-    private static Optional<WitnessedTransaction> run(
-            InteractiveTransactionStore store,
-            RingWorkflowConfiguration workflowConfiguration,
-            AtomicBoolean skipRunning) {
-        if (skipRunning.get()) {
-            return Optional.empty();
+    private static final class RingWorkflowTask implements KeyedTransactionTask<InteractiveTransactionStore> {
+
+        private final AtomicBoolean skipRunning;
+        private final Consumer<RingValidationException> onFailure;
+        private final RingWorkflowConfiguration workflowConfiguration;
+
+        public RingWorkflowTask(
+                AtomicBoolean skipRunning,
+                Consumer<RingValidationException> onFailure,
+                RingWorkflowConfiguration workflowConfiguration) {
+            this.skipRunning = skipRunning;
+            this.onFailure = onFailure;
+            this.workflowConfiguration = workflowConfiguration;
         }
 
-        workflowConfiguration.transactionRateLimiter().acquire();
-        String table = workflowConfiguration.tableConfiguration().tableName();
-        Integer ringSize = workflowConfiguration.ringSize();
-        return store.readWrite(txn -> {
-            Map<Integer, Optional<Integer>> data = fetchData(table, ringSize, txn);
-            try {
-                RingGraph ringGraph = RingGraph.fromPartial(data);
-                ringGraph
-                        .generateNewRing()
-                        .asMap()
-                        .forEach((rootNode, nextNode) -> txn.write(table, cell(rootNode), nextNode));
-            } catch (IllegalArgumentException e) {
-                if (skipRunning.compareAndSet(false, true)) {
-                    log.error("Detected violation with our ring.", e);
-                }
+        @Override
+        public Optional<WitnessedTransaction> apply(InteractiveTransactionStore store, Integer integer) {
+            if (skipRunning.get()) {
+                return Optional.empty();
             }
-        });
-    }
 
-    private static Map<Integer, Optional<Integer>> fetchData(
-            String table, int ringSize, InteractiveTransaction transaction) {
-        return IntStream.range(0, ringSize)
-                .boxed()
-                .collect(Collectors.toMap(Function.identity(), index -> transaction.read(table, cell(index))));
+            workflowConfiguration.transactionRateLimiter().acquire();
+            String table = workflowConfiguration.tableConfiguration().tableName();
+            Integer ringSize = workflowConfiguration.ringSize();
+            return store.readWrite(txn -> {
+                Map<Integer, Optional<Integer>> data = fetchData(ringSize, txn);
+                try {
+                    RingGraph ringGraph = RingGraph.fromPartial(data);
+                    ringGraph
+                            .generateNewRing()
+                            .asMap()
+                            .forEach((rootNode, nextNode) -> txn.write(table, cell(rootNode), nextNode));
+                } catch (RingValidationException e) {
+                    if (skipRunning.compareAndSet(false, true)) {
+                        onFailure.accept(e);
+                    }
+                }
+            });
+        }
+
+        private Map<Integer, Optional<Integer>> fetchData(int ringSize, InteractiveTransaction transaction) {
+            return IntStream.range(0, ringSize)
+                    .boxed()
+                    .collect(Collectors.toMap(
+                            Function.identity(),
+                            index -> transaction.read(
+                                    workflowConfiguration.tableConfiguration().tableName(), cell(index))));
+        }
     }
 
     @VisibleForTestingu}(jmS  (525648d647b02863ed90686872004e61f6dde478jS  datlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingGraphTest.javajS  modifiedjS  KjS  KjS  KjS  https://github.com/palantir/atlasdb/blob/01ac3b6729f6062d205c91e6bd6631355c40bf2f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javajS  https://github.com/palantir/atlasdb/raw/01ac3b6729f6062d205c91e6bd6631355c40bf2f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javajS  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.java?ref=01ac3b6729f6062d205c91e6bd6631355c40bf2fjS  X  @@ -52,7 +52,7 @@ public void fromThrowsMissingEntriesWhenNodeReferencedDoesNotExist() {
         assertThatLoggableExceptionThrownBy(() -> RingGraph.from(missingNodesRing))
                 .isInstanceOf(RingValidationException.class)
                 .hasExactlyArgs(
-                        SafeArg.of("type", RingValidationException.Type.MISSING_ENTRIES),
+                        SafeArg.of("type", RingValidationException.Type.MISSING_REFERENCE),
                         SafeArg.of("ring", missingNodesRing));
     }
 u}(jmS  (0aadb5f50466e50ee5b560d0a06da6bf1c07d67cjS  hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowsTest.javajS  modifiedjS  KjS  KjS  K
jS  https://github.com/palantir/atlasdb/blob/01ac3b6729f6062d205c91e6bd6631355c40bf2f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javajS  https://github.com/palantir/atlasdb/raw/01ac3b6729f6062d205c91e6bd6631355c40bf2f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javajS  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.java?ref=01ac3b6729f6062d205c91e6bd6631355c40bf2fjS  X  @@ -40,6 +40,7 @@
 import java.util.List;
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.concurrent.atomic.AtomicReference;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 import org.junit.Test;
@@ -62,12 +63,14 @@ public class RingWorkflowsTest {
                     AtlasDbUtils.tableMetadata(IsolationLevel.SNAPSHOT)));
 
     private final AtomicBoolean skipRunning = new AtomicBoolean(false);
+    private final AtomicReference<RingValidationException> failure = new AtomicReference<>();
 
     private final Workflow workflow = RingWorkflows.create(
             memoryStore,
             CONFIGURATION,
             MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)),
-            skipRunning);
+            skipRunning,
+            failure::set);
 
     @Test
     public void workflowHistoryTransactionStoreShouldBeReadOnly() {
@@ -126,4 +129,12 @@ public void ringWorkflowDoesNotWitnessTransactionWhenSkipRunningSetToTrue() {
         skipRunning.set(true);
         assertThat(workflow.run().history()).isEmpty();
     }
+
+    @Test
+    public void ringWorkflowAllowsCustomConsumersOfFailures() {
+        assertThat(failure.get()).isNull();
+        memoryStore.readWrite(txn -> txn.write(TABLE_NAME, RingWorkflows.cell(0), 99));
+        workflow.run();
+        assertThat(failure.get()).isNotNull();
+    }
 }ueu(9a8372fe4584ebb5ff8d6614d0f5f5eaa20d912e}(sha(9a8372fe4584ebb5ff8d6614d0f5f5eaa20d912enode_idEC_kwDOAjP5fdoAKDlhODM3MmZlNDU4NGViYjVmZjhkNjYxNGQwZjVmNWVhYTIwZDkxMmUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-25T16:42:30Zu	committer}(jT  
Sam KramerjT  skramer@palantir.comjT  2023-04-25T16:42:30Zumessagedo less iterationstree}(jT  (f0d4db0ad250c0dc9931adce578ae3d3cb539a49url`https://api.github.com/repos/palantir/atlasdb/git/trees/f0d4db0ad250c0dc9931adce578ae3d3cb539a49ujT  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9a8372fe4584ebb5ff8d6614d0f5f5eaa20d912e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRIAvYACgkQmPPOpKR4
XS0tcwf/SKLsaj/Tf0vwE0BmXZ96VUvXVcWIds0+Jjl6RAmVNYlYMJ3QCZ9DvHz/
WLhe9fejasNrP/af7n0kGlQrIeCIhsSOPCpoFS8glg5oyIQ9zq3RslqZVRq/Y9s2
cEFMDKd6vjQiqCshFqv9urpkJh1H8nQsx/jsHmMeWIPrTj280ZuwOyPWqakrGpZb
BHEwD2NU6xv7GQqhX1Pb+8AX7hQu26ebA40oiCk7C/hxim3TUiEqwxNgXPWkliX4
uJ65YjiaXuIQXDgQNHnYwR3lqC5JI1Cc3ZRFZqYqV552xEG2VyqLJEgRgZl4a5O/
1q1mYGbVTOwihFCKdzwqdxkqvJs7cw==
=u5Uh
-----END PGP SIGNATURE-----payloadtree f0d4db0ad250c0dc9931adce578ae3d3cb539a49
parent 5af53a38afcfd0b2ed341a1bbc67711c6907d30e
author Sam Kramer <skramer@palantir.com> 1682440950 +0100
committer Sam Kramer <skramer@palantir.com> 1682440950 +0100

do less iterations
uujT  ^https://api.github.com/repos/palantir/atlasdb/commits/9a8372fe4584ebb5ff8d6614d0f5f5eaa20d912ehtml_urlShttps://github.com/palantir/atlasdb/commit/9a8372fe4584ebb5ff8d6614d0f5f5eaa20d912ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9a8372fe4584ebb5ff8d6614d0f5f5eaa20d912e/commentsj
T  }(login
Sam-KrameridJ^2_ jT  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jT  'https://api.github.com/users/Sam-Kramerj*T  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujT  }(j/T  
Sam-Kramerj1T  J^2_ jT  MDQ6VXNlcjYyMzg4MTQ=j3T  3https://avatars.githubusercontent.com/u/6238814?v=4j5T  h5jT  'https://api.github.com/users/Sam-Kramerj*T  https://github.com/Sam-Kramerj8T  1https://api.github.com/users/Sam-Kramer/followersj:T  >https://api.github.com/users/Sam-Kramer/following{/other_user}j<T  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j>T  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j@T  5https://api.github.com/users/Sam-Kramer/subscriptionsjBT  ,https://api.github.com/users/Sam-Kramer/orgsjDT  -https://api.github.com/users/Sam-Kramer/reposjFT  8https://api.github.com/users/Sam-Kramer/events{/privacy}jHT  7https://api.github.com/users/Sam-Kramer/received_eventsjJT  UserjLT  uparents]}(jT  (5af53a38afcfd0b2ed341a1bbc67711c6907d30ejT  ^https://api.github.com/repos/palantir/atlasdb/commits/5af53a38afcfd0b2ed341a1bbc67711c6907d30ej*T  Shttps://github.com/palantir/atlasdb/commit/5af53a38afcfd0b2ed341a1bbc67711c6907d30euastats}(totalK	additionsK	deletionsKufiles]}(jT  (40df0d7eb031de73e8f3e2a865ac1b21fb289b99filenamegatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/BouncingValueWorkflow.javastatusmodifiedjfT  KjgT  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9a8372fe4584ebb5ff8d6614d0f5f5eaa20d912e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FBouncingValueWorkflow.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9a8372fe4584ebb5ff8d6614d0f5f5eaa20d912e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FBouncingValueWorkflow.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FBouncingValueWorkflow.java?ref=9a8372fe4584ebb5ff8d6614d0f5f5eaa20d912epatchX  @@ -52,7 +52,7 @@ public WorkflowHistory run() {
                         MoreExecutors.listeningDecorator(Executors.newSingleThreadExecutor());
                 ListeningExecutorService writeExecutor =
                         MoreExecutors.listeningDecorator(Executors.newSingleThreadExecutor());
-                List<ListenableFuture<Optional<WitnessedTransaction>>> reads = IntStream.range(0, 200)
+                List<ListenableFuture<Optional<WitnessedTransaction>>> reads = IntStream.range(0, 66)
                         .mapToObj(idx -> readExecutor.submit(() -> {
                             return store.readWrite(txn -> {
                                 Optional<Integer> value = txn.read(TEST_TABLE, BUSY_CELL);
@@ -62,7 +62,7 @@ public WorkflowHistory run() {
                         .collect(Collectors.toList());
 
                 List<ListenableFuture<Optional<WitnessedTransaction>>> writes = new ArrayList<>();
-                for (int i = 0; i < 100; i++) {
+                for (int i = 0; i < 33; i++) {
                     int stableI = i;
                     writes.add(writeExecutor.submit(
                             () -> store.readWrite(List.of(WriteTransactionAction.of(TEST_TABLE, BUSY_CELL, stableI)))));uau     (93f060ab2b7642c15e1d1bc184ecc952406941ae}(sha(93f060ab2b7642c15e1d1bc184ecc952406941aenode_idEC_kwDOAjP5fdoAKDkzZjA2MGFiMmI3NjQyYzE1ZTFkMWJjMTg0ZWNjOTUyNDA2OTQxYWUcommit}(author}(nameMohammed Daudaliemailmdaudali@palantir.comdate2023-02-28T15:03:28Zu	committer}(jT  Mohammed DaudalijT  mdaudali@palantir.comjT  2023-02-28T15:03:28Zumessagecleaned up version of thetree}(j{T  (fb0b2833d25d27ba3bdfce0eb580c43b017a630burl`https://api.github.com/repos/palantir/atlasdb/git/trees/fb0b2833d25d27ba3bdfce0eb580c43b017a630bujT  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/93f060ab2b7642c15e1d1bc184ecc952406941ae
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE85NpmxiQII63+jWv1DJ7K5YIya0FAmP+F8AACgkQ1DJ7K5YI
ya2BgQgAmxh5NaUku+XrvsKUGVfmGRJiA8XJa+YtzCP11VGdpsOF8m7hnEhs7hYT
nqlpoodbwH+89c2qG1kyChc7/oPW7UDPgvuZE50ympNRD4bx3zE0vIA40ZIMv21Z
gBTsWc+xZKAjuQHA+TGG9VYHgrxNXkKEqxeQkLe55bSZwmSM0l5XW+9uvz+QXbgm
P/4bzz6IkY8oeox9Iyg/R/qgOgV8axmodfN43g+Fn4aSStRQiU5LQG35CALyeZEI
D4f95dmS7Ju4p5L6zUlpyVjucpG967hs+wwX2hNnBDaEvEzDzQYQGKQtLKjVTtfH
pTT+kUClivLs1+mJ06KdsJpBadu1rg==
=/l4Y
-----END PGP SIGNATURE-----payloadtree fb0b2833d25d27ba3bdfce0eb580c43b017a630b
parent 1b65392beb769754cbf0f8cc6b05e8dd239fd694
author Mohammed Daudali <mdaudali@palantir.com> 1677596608 +0000
committer Mohammed Daudali <mdaudali@palantir.com> 1677596608 +0000

cleaned up version of the
uujT  ^https://api.github.com/repos/palantir/atlasdb/commits/93f060ab2b7642c15e1d1bc184ecc952406941aehtml_urlShttps://github.com/palantir/atlasdb/commit/93f060ab2b7642c15e1d1bc184ecc952406941aecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/93f060ab2b7642c15e1d1bc184ecc952406941ae/commentsjT  }(loginmdaudaliidJ j}T  MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5jT  %https://api.github.com/users/mdaudalijT  https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminujT  }(jT  mdaudalijT  J j}T  MDQ6VXNlcjE4MTI3NjQ=jT  3https://avatars.githubusercontent.com/u/1812764?v=4jT  h5jT  %https://api.github.com/users/mdaudalijT  https://github.com/mdaudalijT  /https://api.github.com/users/mdaudali/followersjT  <https://api.github.com/users/mdaudali/following{/other_user}jT  5https://api.github.com/users/mdaudali/gists{/gist_id}jT  <https://api.github.com/users/mdaudali/starred{/owner}{/repo}jT  3https://api.github.com/users/mdaudali/subscriptionsjT  *https://api.github.com/users/mdaudali/orgsjT  +https://api.github.com/users/mdaudali/reposjT  6https://api.github.com/users/mdaudali/events{/privacy}jT  5https://api.github.com/users/mdaudali/received_eventsjT  UserjT  uparents]}(j{T  (1b65392beb769754cbf0f8cc6b05e8dd239fd694jT  ^https://api.github.com/repos/palantir/atlasdb/commits/1b65392beb769754cbf0f8cc6b05e8dd239fd694jT  Shttps://github.com/palantir/atlasdb/commit/1b65392beb769754cbf0f8cc6b05e8dd239fd694uastats}(totalK	additionsK{	deletionsK5ufiles](}(j{T  (529a212f012bb0c4e5ee817aef0a48154babf697filenamebatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraServerOrigin.javastatusmodifiedjT  KjT  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/93f060ab2b7642c15e1d1bc184ecc952406941ae/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.javaraw_urlhttps://github.com/palantir/atlasdb/raw/93f060ab2b7642c15e1d1bc184ecc952406941ae/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.java?ref=93f060ab2b7642c15e1d1bc184ecc952406941aepatchX  @@ -1,7 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package com.palantir.atlasdb.keyvalue.cassandra;
 
+import com.google.common.collect.ImmutableMap;
+import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
+import java.util.Set;
+import java.util.function.Function;
+import java.util.stream.Stream;
+
 public enum CassandraServerOrigin {
     CONFIG,
     LAST_KNOWN,
     TOKEN_RANGE;
+
+    public static ImmutableMap<CassandraServer, CassandraServerOrigin> mapAllServersToOrigin(
+            Set<CassandraServer> servers, CassandraServerOrigin origin) {
+        return mapAllServersToOrigin(servers.stream(), origin);
+    }
+
+    public static ImmutableMap<CassandraServer, CassandraServerOrigin> mapAllServersToOrigin(
+            Stream<CassandraServer> servers, CassandraServerOrigin origin) {
+        return servers.collect(ImmutableMap.toImmutableMap(Function.identity(), _v -> origin));
+    }
 }u}(j{T  (10dccf74f3186a2c4a4b523a206c95ccef82b213jT  gatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraTopologyValidator.javajT  modifiedjT  KjT  KjT  KjT  https://github.com/palantir/atlasdb/blob/93f060ab2b7642c15e1d1bc184ecc952406941ae/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.javajT  https://github.com/palantir/atlasdb/raw/93f060ab2b7642c15e1d1bc184ecc952406941ae/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.javajT  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.java?ref=93f060ab2b7642c15e1d1bc184ecc952406941aejT  Xy  @@ -166,7 +166,7 @@ Set<CassandraServer> getNewHostsWithInconsistentTopologies(
                     topologyResultFromNewServers,
                     newServersWithoutSoftFailures,
                     newServersFromConfig,
-                    newlyAddedHosts.keySet(),
+                    newlyAddedHostsWithoutOrigin,
                     allHosts.keySet());
         }
 u}(j{T  (e9b204931aed5e3669e477514865bc1067a62e37jT  batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javajT  modifiedjT  K	jT  K
jT  KjT  https://github.com/palantir/atlasdb/blob/93f060ab2b7642c15e1d1bc184ecc952406941ae/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javajT  https://github.com/palantir/atlasdb/raw/93f060ab2b7642c15e1d1bc184ecc952406941ae/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javajT  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=93f060ab2b7642c15e1d1bc184ecc952406941aejT  X
  @@ -172,8 +172,7 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
             tokenMap = tokensInterner.intern(newTokenRing.build());
             hostToDatacenter = ImmutableMap.copyOf(hostToDatacentersThisRefresh);
             logHostToDatacenterMapping(hostToDatacenter);
-            return servers.stream()
-                    .collect(ImmutableMap.toImmutableMap(server -> server, _v -> CassandraServerOrigin.LAST_KNOWN));
+            return CassandraServerOrigin.mapAllServersToOrigin(servers, CassandraServerOrigin.TOKEN_RANGE);
         } catch (Exception e) {
             log.info(
                     "Couldn't grab new token ranges for token aware cassandra mapping. We will retry in {} seconds.",
@@ -186,15 +185,14 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
                     getCurrentServerListFromConfig();
 
             ImmutableMap<CassandraServer, CassandraServerOrigin> lastKnownAddresses =
-                    tokenMap.asMapOfRanges().values().stream()
-                            .flatMap(Collection::stream)
-                            .collect(ImmutableMap.toImmutableMap(
-                                    server -> server, _v -> CassandraServerOrigin.LAST_KNOWN));
+                    CassandraServerOrigin.mapAllServersToOrigin(
+                            tokenMap.asMapOfRanges().values().stream().flatMap(Collection::stream),
+                            CassandraServerOrigin.LAST_KNOWN);
 
             return ImmutableMap.<CassandraServer, CassandraServerOrigin>builder()
                     .putAll(lastKnownAddresses)
                     .putAll(resolvedConfigAddresses)
-                    .build();
+                    .buildKeepingLast();
         }
     }
 
@@ -203,9 +201,10 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
      * resolution.
      * */
     public ImmutableMap<CassandraServer, CassandraServerOrigin> getCurrentServerListFromConfig() {
-        return getServersSocketAddressesFromConfig().stream()
-                .map(cassandraHost -> CassandraServer.of(cassandraHost.getHostString(), cassandraHost))
-                .collect(ImmutableMap.toImmutableMap(server -> server, _v -> CassandraServerOrigin.CONFIG));
+        return CassandraServerOrigin.mapAllServersToOrigin(
+                getServersSocketAddressesFromConfig().stream()
+                        .map(cassandraHost -> CassandraServer.of(cassandraHost.getHostString(), cassandraHost)),
+                CassandraServerOrigin.CONFIG);
     }
 
     private ImmutableSet<InetSocketAddress> getServersSocketAddressesFromConfig() {u}(j{T  (e3ef3fb701b183d875542153f099ec8e766d6ae1jT  datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolTest.javajT  modifiedjT  K	jT  KjT  KjT  https://github.com/palantir/atlasdb/blob/93f060ab2b7642c15e1d1bc184ecc952406941ae/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javajT  https://github.com/palantir/atlasdb/raw/93f060ab2b7642c15e1d1bc184ecc952406941ae/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javajT  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.java?ref=93f060ab2b7642c15e1d1bc184ecc952406941aejT  X  @@ -448,14 +448,15 @@ public void throwsWhenTryingToAddServerPresentInCurrentServers() {
         setCassandraServersTo(CASS_SERVER_1, CASS_SERVER_2);
 
         CassandraClientPoolImpl pool = createClientPool();
-        Set<CassandraServer> serversToAdd = Set.of(CASS_SERVER_1);
+        ImmutableMap<CassandraServer, CassandraServerOrigin> serversToAdd =
+                ImmutableMap.of(CASS_SERVER_1, CassandraServerOrigin.TOKEN_RANGE);
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2);
         assertThatLoggableExceptionThrownBy(
                         () -> pool.validateNewHostsTopologiesAndMaybeAddToPool(poolServers, serversToAdd))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("The current pool of servers should not have any server(s) that are being added.")
                 .hasExactlyArgs(
-                        SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd)),
+                        SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())),
                         SafeArg.of("currentServers", CassandraLogHelper.collectionOfHosts(poolServers.keySet())));
     }
 
@@ -470,9 +471,9 @@ public void shutsDownHostsBeyondAbsenceTolerance() {
         CassandraClientPoolingContainer container1 = currentPoolSnapshot.get(CASS_SERVER_1);
         verifyNoInteractions(container1);
 
-        cassandraClientPool.setServersInPoolTo(ImmutableSet.of(CASS_SERVER_3));
+        cassandraClientPool.setServersInPoolTo(ImmutableMap.of(CASS_SERVER_3, CassandraServerOrigin.TOKEN_RANGE));
         // The refresh will mark absence of host1 beyond limit of tolerance
-        cassandraClientPool.setServersInPoolTo(ImmutableSet.of(CASS_SERVER_3));
+        cassandraClientPool.setServersInPoolTo(ImmutableMap.of(CASS_SERVER_3, CassandraServerOrigin.TOKEN_RANGE));
         assertThat(cassandraClientPool.getCurrentPools()).containsOnlyKeys(CASS_SERVER_3);
         verify(container1).shutdownPooling();
     }
@@ -487,7 +488,9 @@ private CassandraClientPoolingContainer getCassandraContainerFromInvocation(Invo
 
     private void setCassandraServersTo(CassandraServer... servers) {
         when(cassandra.refreshTokenRangesAndGetServers())
-                .thenReturn(Arrays.stream(servers).collect(ImmutableSet.toImmutableSet()));
+                .thenReturn(Arrays.stream(servers)
+                        .collect(ImmutableMap.toImmutableMap(
+                                Function.identity(), _v -> CassandraServerOrigin.TOKEN_RANGE)));
     }
 
     private CassandraClientPoolImpl createClientPool() {
@@ -667,7 +670,7 @@ private void setupThriftServers(Set<InetSocketAddress> servers) {
         when(cassandra.getCurrentServerListFromConfig())
                 .thenReturn(config.accept(CassandraServersConfigs.ThriftHostsExtractingVisitor.INSTANCE).stream()
                         .map(CassandraServer::of)
-                        .collect(ImmutableSet.toImmutableSet()));
+                        .collect(ImmutableMap.toImmutableMap(Function.identity(), _v -> CassandraServerOrigin.CONFIG)));
     }
 
     private void setupHostsWithConsistentTopology() {u}(j{T  (8d2ff4da6ac18e6af83281cb4d417a32370058e3jT  katlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraTopologyValidatorTest.javajT  modifiedjT  KIjT  K$jT  KmjT  https://github.com/palantir/atlasdb/blob/93f060ab2b7642c15e1d1bc184ecc952406941ae/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.javajT  https://github.com/palantir/atlasdb/raw/93f060ab2b7642c15e1d1bc184ecc952406941ae/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.javajT  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.java?ref=93f060ab2b7642c15e1d1bc184ecc952406941aejT  XGW  @@ -81,7 +81,10 @@ public void retriesUntilNoNewHostsReturned() {
                         HostIdResult.success(Set.of(uuidIterator.next())),
                         HostIdResult.success(UUIDS)));
         assertThat(validator.getNewHostsWithInconsistentTopologiesAndRetry(
-                        allHosts.keySet(), allHosts, Duration.ofMillis(1), Duration.ofSeconds(20)))
+                        mapToTokenRangeOrigin(allHosts.keySet()),
+                        allHosts,
+                        Duration.ofMillis(1),
+                        Duration.ofSeconds(20)))
                 .isEmpty();
     }
 
@@ -93,7 +96,7 @@ public void retriesMarksFailureWhenNeverResolves() {
                 .values()
                 .forEach(container -> setHostIds(Set.of(container), HostIdResult.success(Set.of(uuidIterator.next()))));
         assertThat(validator.getNewHostsWithInconsistentTopologiesAndRetry(
-                        allHosts.keySet(), allHosts, Duration.ofMillis(1), Duration.ofMillis(1)))
+                        mapToTokenRangeOrigin(allHosts.keySet()), allHosts, Duration.ofMillis(1), Duration.ofMillis(1)))
                 .isNotEmpty();
         assertThat(metrics.validationFailures().getCount()).isEqualTo(1);
         assertThat(metrics.validationLatency().getCount()).isEqualTo(1);
@@ -104,7 +107,10 @@ public void retriesAndReturnsFailingHosts() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(NEW_HOSTS);
         doReturn(allHosts.keySet()).when(validator).getNewHostsWithInconsistentTopologies(any(), any());
         assertThat(validator.getNewHostsWithInconsistentTopologiesAndRetry(
-                        allHosts.keySet(), setupHosts(NEW_HOSTS), Duration.ofMillis(1), Duration.ofMillis(1)))
+                        mapToTokenRangeOrigin(allHosts.keySet()),
+                        setupHosts(NEW_HOSTS),
+                        Duration.ofMillis(1),
+                        Duration.ofMillis(1)))
                 .containsExactlyInAnyOrderElementsOf(allHosts.keySet());
     }
 
@@ -114,29 +120,32 @@ public void retriesAtLeastTwoTimes() {
         doReturn(allHosts.keySet()).when(validator).getNewHostsWithInconsistentTopologies(any(), any());
         when(validator.getNewHostsWithInconsistentTopologies(any(), any())).thenReturn(allHosts.keySet());
         assertThat(validator.getNewHostsWithInconsistentTopologiesAndRetry(
-                        allHosts.keySet(), setupHosts(NEW_HOSTS), Duration.ofMillis(1), Duration.ofMillis(1)))
+                        mapToTokenRangeOrigin(allHosts.keySet()),
+                        setupHosts(NEW_HOSTS),
+                        Duration.ofMillis(1),
+                        Duration.ofMillis(1)))
                 .isNotEmpty();
         verify(validator, atLeast(2)).getNewHostsWithInconsistentTopologies(any(), any());
     }
 
     @Test
     public void returnsEmptyWhenGivenNoServers() {
-        assertThat(validator.getNewHostsWithInconsistentTopologies(ImmutableSet.of(), ImmutableMap.of()))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(ImmutableMap.of(), ImmutableMap.of()))
                 .isEmpty();
     }
 
     @Test
     public void throwsWhenAllHostsDoesNotContainNewHosts() {
         assertThatThrownBy(() -> validator.getNewHostsWithInconsistentTopologies(
-                        ImmutableSet.of(createCassandraServer("foo")), ImmutableMap.of()))
+                        mapToTokenRangeOrigin(ImmutableSet.of(createCassandraServer("foo"))), ImmutableMap.of()))
                 .isInstanceOf(SafeIllegalArgumentException.class);
     }
 
     @Test
     public void returnsEmptyWhenOnlyNewServersAndAllHaveSameHostIds() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(NEW_HOSTS);
         setHostIds(allHosts.values(), DEFAULT_RESULT);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .isEmpty();
     }
 
@@ -149,7 +158,7 @@ public void returnsNewHostsWhenOnlyNewServersAndOneMismatch() {
         setHostIds(
                 filterContainers(allHosts, NEW_HOST_ONE::equals),
                 HostIdResult.success(ImmutableSet.of("uuid3", "uuid2")));
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .containsExactlyElementsOf(allHosts.keySet());
     }
 
@@ -163,7 +172,7 @@ public void returnsNewHostsWhenNewServersMismatchOldServers() {
         setHostIds(
                 filterContainers(allHosts, OLD_HOSTS::contains),
                 HostIdResult.success(ImmutableSet.of("uuid3", "uuid2")));
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newServers, allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(newServers), allHosts))
                 .containsExactlyElementsOf(newServers);
     }
 
@@ -175,15 +184,15 @@ public void validateNewlyAddedHostsReturnsOnlyMismatchingNewHosts() {
         setHostIds(filterContainers(allHosts, badHostFilter), HostIdResult.success(ImmutableSet.of("uuid3", "uuid2")));
         Set<CassandraServer> newServers = filterServers(allHosts, NEW_HOSTS::contains);
         Set<CassandraServer> badNewHosts = filterServers(allHosts, badHostFilter);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newServers, allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(newServers), allHosts))
                 .containsExactlyElementsOf(badNewHosts);
     }
 
     @Test
     public void validateNewlyAddedHostsAddsAllHostsIfNoHostHasEndpoint() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(NEW_HOSTS);
         setHostIds(allHosts.values(), HostIdResult.softFailure());
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .isEmpty();
     }
 
@@ -194,7 +203,7 @@ public void validateNewlyAddedHostsAddsAllHostsIfOneHostHasEndpoint() {
         setHostIds(
                 filterContainers(allHosts, server -> !hostWithEndpoint.contains(server)), HostIdResult.softFailure());
         setHostIds(filterContainers(allHosts, hostWithEndpoint::contains), DEFAULT_RESULT);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .isEmpty();
     }
 
@@ -206,7 +215,7 @@ public void validateNewlyAddedHostsAddsAllHostsIfEndpointExistingHostIdsMatch()
                 filterContainers(allHosts, server -> !hostsWithEndpoints.contains(server)), HostIdResult.softFailure());
         setHostIds(filterContainers(allHosts, hostsWithEndpoints::contains), DEFAULT_RESULT);
         assertThat(validator.getNewHostsWithInconsistentTopologies(
-                        filterServers(allHosts, NEW_HOSTS::contains), allHosts))
+                        mapToTokenRangeOrigin(filterServers(allHosts, NEW_HOSTS::contains)), allHosts))
                 .isEmpty();
     }
 
@@ -219,7 +228,7 @@ public void validateNewlyAddedHostsReturnsNewHostsUnlessEndpointExistAndDoesMatc
         setHostIds(filterContainers(allHosts, NEW_HOST_ONE::equals), HostIdResult.success(Set.of("uuid")));
         setHostIds(filterContainers(allHosts, OLD_HOST_ONE::equals), DEFAULT_RESULT);
         assertThat(validator.getNewHostsWithInconsistentTopologies(
-                        filterServers(allHosts, NEW_HOSTS::contains), allHosts))
+                        mapToTokenRangeOrigin(filterServers(allHosts, NEW_HOSTS::contains)), allHosts))
                 .containsExactlyElementsOf(filterServers(allHosts, NEW_HOST_ONE::equals));
     }
 
@@ -230,7 +239,8 @@ public void validateNewlyAddedHostsNoNewHostsAddedIfOldHostsDoNotHaveQuorumAndNo
         Set<String> hostsOffline = ImmutableSet.of(OLD_HOST_ONE, OLD_HOST_TWO);
         setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
         setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newCassandraServers, allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
                 .as("no new hosts added if old hosts do not have quorum")
                 .containsExactlyElementsOf(newCassandraServers);
     }
@@ -246,8 +256,9 @@ public void validateNewlyAddedHostsNewHostsAddedIfTheyAgreeWithOldHostsOnPreviou
         setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
         setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
 
-        validator.getNewHostsWithInconsistentTopologies(oldCassandraServers, oldHosts);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newCassandraServers, allHosts))
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
                 .as("accepts quorum from new hosts if they have the same host IDs")
                 .isEmpty();
     }
@@ -272,8 +283,9 @@ public void validateNewlyAddedHostsNewHostsAddedIfTheyAgreeWithOldHostsOnPreviou
                 filterContainers(oldHosts, Predicate.not(hostsOffline::contains)),
                 HostIdResult.success(DIFFERENT_UUIDS));
 
-        validator.getNewHostsWithInconsistentTopologies(oldCassandraServers, oldHosts);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newCassandraServers, allHosts))
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
                 .as("does not accept quorum from new hosts if they have different host IDs")
                 .containsExactlyElementsOf(newCassandraServers);
     }
@@ -288,7 +300,7 @@ public void returnsAllNewHostsIfNoConsensusOnNewHostsWhenNoQuorumAndCurrentServe
         Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
 
         setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
-        validator.getNewHostsWithInconsistentTopologies(oldCassandraServers, oldHosts);
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
 
         Set<String> hostsOffline = OLD_HOSTS;
         setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
@@ -297,7 +309,8 @@ public void returnsAllNewHostsIfNoConsensusOnNewHostsWhenNoQuorumAndCurrentServe
                         setHostIds(ImmutableSet.of(container), HostIdResult.success(Set.of(uuidIterator.next()))));
 
         assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newCassandraServers, allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
                 .as("rejects all servers when no quorum from all hosts and no quorum on new hosts")
                 .isEqualTo(newCassandraServers);
     }
@@ -311,7 +324,7 @@ public void returnsAllNewHostsIfConsensusOnNewHostsDiffersFromPreviousWhenNoQuor
         Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
 
         setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
-        validator.getNewHostsWithInconsistentTopologies(oldCassandraServers, oldHosts);
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
 
         Set<String> hostsOffline = OLD_HOSTS;
         setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
@@ -320,7 +333,8 @@ public void returnsAllNewHostsIfConsensusOnNewHostsDiffersFromPreviousWhenNoQuor
                 HostIdResult.success(DIFFERENT_UUIDS));
 
         assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newCassandraServers, allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
                 .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
                 .isEqualTo(newCassandraServers);
     }
@@ -334,14 +348,15 @@ public void validateNewlyAddedHostsAddedIfAgreedWithOldHostsOnPreviousTopologyWh
         Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
 
         setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
-        validator.getNewHostsWithInconsistentTopologies(oldCassandraServers, oldHosts);
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
 
         Set<String> hostsOffline = OLD_HOSTS;
         setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
         setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
 
         assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newCassandraServers, allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
                 .as("accepts quorum from new hosts if they have the same host IDs as old topology")
                 .isEmpty();
     }
@@ -355,21 +370,24 @@ public void validateNewlyAddedHostsAddedIfAgreedWithOldTopologyWhenNoQuorumAndNo
         Set<CassandraServer> allCassandraServers = allHosts.keySet();
 
         setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
-        validator.getNewHostsWithInconsistentTopologies(oldCassandraServers, oldHosts);
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
 
         Set<String> hostsOffline = OLD_HOSTS;
         setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
         setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
 
         assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allCassandraServers, allHosts))
-                .as("accepts quorum from new hosts if they have the same host IDs as old topology when no current"
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        splitHostOriginBetweenLastKnownAndConfig(
+                                oldCassandraServers, Sets.difference(allCassandraServers, oldCassandraServers)),
+                        allHosts))
+                .as("accepts quorum from config hosts if they have the same host IDs as old topology when no current"
                         + " servers")
                 .isEqualTo(oldCassandraServers);
     }
 
     @Test
-    public void returnsAllNewHostsIfNoConsensusOnAvailableHostsWhenNoQuorumAndNoCurrentServers() {
+    public void returnsAllNewHostsIfNoConsensusOnConfigHostsWhenNoQuorumAndNoCurrentServers() {
         Iterator<String> uuidIterator = UUIDS.iterator();
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
         Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
@@ -378,7 +396,7 @@ public void returnsAllNewHostsIfNoConsensusOnAvailableHostsWhenNoQuorumAndNoCurr
         Set<CassandraServer> allCassandraServers = allHosts.keySet();
 
         setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
-        validator.getNewHostsWithInconsistentTopologies(oldCassandraServers, oldHosts);
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
 
         Set<String> hostsOffline = OLD_HOSTS;
         setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
@@ -387,21 +405,24 @@ public void returnsAllNewHostsIfNoConsensusOnAvailableHostsWhenNoQuorumAndNoCurr
                         setHostIds(ImmutableSet.of(container), HostIdResult.success(Set.of(uuidIterator.next()))));
 
         assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allCassandraServers, allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        splitHostOriginBetweenLastKnownAndConfig(
+                                oldCassandraServers, Sets.difference(allCassandraServers, oldCassandraServers)),
+                        allHosts))
                 .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
                 .isEqualTo(allCassandraServers);
     }
 
     @Test
-    public void returnsAllNewHostsIfConsensusOnAvailableHostsDiffersFromPreviousWhenNoQuorumAndNoCurrentServers() {
+    public void returnsAllNewHostsIfConsensusOnConfigHostsDiffersFromPreviousWhenNoQuorumAndNoCurrentServers() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
         Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
                 filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
         Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
         Set<CassandraServer> allCassandraServers = allHosts.keySet();
 
         setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
-        validator.getNewHostsWithInconsistentTopologies(oldCassandraServers, oldHosts);
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
 
         Set<String> hostsOffline = OLD_HOSTS;
         setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
@@ -410,7 +431,11 @@ public void returnsAllNewHostsIfConsensusOnAvailableHostsDiffersFromPreviousWhen
                 HostIdResult.success(DIFFERENT_UUIDS));
 
         assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allCassandraServers, allHosts))
+
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        splitHostOriginBetweenLastKnownAndConfig(
+                                oldCassandraServers, Sets.difference(allCassandraServers, oldCassandraServers)),
+                        allHosts))
                 .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
                 .isEqualTo(allCassandraServers);
     }
@@ -425,7 +450,7 @@ public void validateNewlyAddedHostsNoNewHostsAddedIfNewHostsDoNotHaveQuorumAndNo
         Set<String> hostsOffline = ImmutableSet.of(NEW_HOST_ONE, NEW_HOST_TWO);
         setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
         setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .containsExactlyElementsOf(allHosts.keySet());
     }
 
@@ -435,7 +460,7 @@ public void validateNewlyAddedHostsAddsAllNewHostsIfCurrentServersDoNotHaveEndpo
         setHostIds(filterContainers(allHosts, NEW_HOSTS::contains), HostIdResult.success(UUIDS));
         setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.softFailure());
         assertThat(validator.getNewHostsWithInconsistentTopologies(
-                        filterServers(allHosts, NEW_HOSTS::contains), allHosts))
+                        mapToTokenRangeOrigin(filterServers(allHosts, NEW_HOSTS::contains)), allHosts))
                 .isEmpty();
     }
 
@@ -508,4 +533,16 @@ private static Map<CassandraServer, CassandraClientPoolingContainer> setupHosts(
                 .mapToEntry(server -> mock(CassandraClientPoolingContainer.class))
                 .toMap();
     }
+
+    private static Map<CassandraServer, CassandraServerOrigin> splitHostOriginBetweenLastKnownAndConfig(
+            Set<CassandraServer> lastKnownHosts, Set<CassandraServer> configHosts) {
+        return ImmutableMap.<CassandraServer, CassandraServerOrigin>builder()
+                .putAll(CassandraServerOrigin.mapAllServersToOrigin(lastKnownHosts, CassandraServerOrigin.LAST_KNOWN))
+                .putAll(CassandraServerOrigin.mapAllServersToOrigin(configHosts, CassandraServerOrigin.CONFIG))
+                .buildOrThrow();
+    }
+
+    private static Map<CassandraServer, CassandraServerOrigin> mapToTokenRangeOrigin(Set<CassandraServer> servers) {
+        return CassandraServerOrigin.mapAllServersToOrigin(servers, CassandraServerOrigin.TOKEN_RANGE);
+    }
 }ueu(a874f84093e25da6d594d8454175fbc4316dfb88}(sha(a874f84093e25da6d594d8454175fbc4316dfb88node_idEC_kwDOAjP5fdoAKGE4NzRmODQwOTNlMjVkYTZkNTk0ZDg0NTQxNzVmYmM0MzE2ZGZiODgcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-05-23T16:24:41Zu	committer}(jU  GitHubjU  noreply@github.comjU  2023-05-23T16:24:41Zumessage%Excavator:  Format Java files (#6583)tree}(jU  (21deddd772a93696d621d78db6bff27f456c93feurl`https://api.github.com/repos/palantir/atlasdb/git/trees/21deddd772a93696d621d78db6bff27f456c93feuj*U  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a874f84093e25da6d594d8454175fbc4316dfb88
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkbOjJCRBK7hj4Ov3rIwAAXYoIAH97NyfHAKaxkJ0t+rMrnhYF
lnAd48YsFsOhlOm1HVyR164sjTIMlJg3p7EEQMbalzcvnZ/WDTjtUZcrD2/aIM3B
aYGV63cxlbol7hdASmAcYzWsHKAtgaDFVBonppVwdjZPkDFSXxPDbp0YPhi09n85
cGoFBEBoChfm9tPyJ9c7qJ/jxXMi2zzDB11k6RYPtDXlMTRrUry1Jgw93aPcEb1E
nzEWMMJvkvdpyHD6+/vuDXLjlnkcMZyXPcNDUD6463qUfWX+TUTnimEapOdIGIyF
h6g5PXFWiVfeibKtvlY8FOYRcSl65y0vu9ad9UBNZtdKP9XcfXTragn6ehpvDrw=
=ka57
-----END PGP SIGNATURE-----
payloadX  tree 21deddd772a93696d621d78db6bff27f456c93fe
parent 629316c8b93bd3cfc7a27ab34c40fc28fecb997b
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1684859081 +0100
committer GitHub <noreply@github.com> 1684859081 +0000

Excavator:  Format Java files (#6583)

 uuj*U  ^https://api.github.com/repos/palantir/atlasdb/commits/a874f84093e25da6d594d8454175fbc4316dfb88html_urlShttps://github.com/palantir/atlasdb/commit/a874f84093e25da6d594d8454175fbc4316dfb88comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a874f84093e25da6d594d8454175fbc4316dfb88/commentsjU  }(loginsvc-excavator-botidJjU  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j*U  .https://api.github.com/users/svc-excavator-botj8U  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj U  }(j=U  web-flowj?U  J/jU  MDQ6VXNlcjE5ODY0NDQ3jAU  4https://avatars.githubusercontent.com/u/19864447?v=4jCU  h5j*U  %https://api.github.com/users/web-flowj8U  https://github.com/web-flowjFU  /https://api.github.com/users/web-flow/followersjHU  <https://api.github.com/users/web-flow/following{/other_user}jJU  5https://api.github.com/users/web-flow/gists{/gist_id}jLU  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jNU  3https://api.github.com/users/web-flow/subscriptionsjPU  *https://api.github.com/users/web-flow/orgsjRU  +https://api.github.com/users/web-flow/reposjTU  6https://api.github.com/users/web-flow/events{/privacy}jVU  5https://api.github.com/users/web-flow/received_eventsjXU  UserjZU  uparents]}(jU  (629316c8b93bd3cfc7a27ab34c40fc28fecb997bj*U  ^https://api.github.com/repos/palantir/atlasdb/commits/629316c8b93bd3cfc7a27ab34c40fc28fecb997bj8U  Shttps://github.com/palantir/atlasdb/commit/629316c8b93bd3cfc7a27ab34c40fc28fecb997buastats}(totalK	additionsK	deletionsKufiles]}(jU  (0a67965f248dc6c77872217a9f2d26da88537b99filenamebuild.gradlestatusmodifiedjtU  KjuU  KchangesKblob_url^https://github.com/palantir/atlasdb/blob/a874f84093e25da6d594d8454175fbc4316dfb88/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/a874f84093e25da6d594d8454175fbc4316dfb88/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=a874f84093e25da6d594d8454175fbc4316dfb88patchXw  @@ -17,7 +17,7 @@ buildscript {
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.30.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
         classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'uau(e66bbcb67070fbc719f9bc2288c96b5474e71132}(sha(e66bbcb67070fbc719f9bc2288c96b5474e71132node_idEC_kwDOAjP5fdoAKGU2NmJiY2I2NzA3MGZiYzcxOWY5YmMyMjg4Yzk2YjU0NzRlNzExMzIcommit}(author}(nameasvobodaemailasvoboda@palantir.comdate2023-04-11T13:29:42Zu	committer}(jU  asvobodajU  asvoboda@palantir.comjU  2023-04-11T13:29:42Zumessage%Add scans to more gradlew invocationstree}(jU  (c69cd7a4d3a8fc16eee10bf459bf19c09135ff36url`https://api.github.com/repos/palantir/atlasdb/git/trees/c69cd7a4d3a8fc16eee10bf459bf19c09135ff36ujU  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e66bbcb67070fbc719f9bc2288c96b5474e71132
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEdIuwDD6Smj9zmaar22lbkXKAY5EFAmQ1YMYACgkQ22lbkXKA
Y5EhGQgA1T194vmYBDcrChaFO6/iIbeefcHf8du73o5FvmIMuxGKqSGD9TUNcjBV
8KDEOhBaeryZ7x8eM6ujej0RUjy74yBfMq/Xuz0Aa1A10NuEPkNZaxh+xWHJJUuz
sBjbSrIhqcdlvnwv1964oWl6IgkPKQagJOtKkSS4kHCeSA70dG6Kffvdqh352MWK
m+kIlp3dy89puJEJyTzA0p4dqAHx70GJXAcIGEEYvhhByl8X2FOF5F60Q0gXnF+3
xVtF8V026lKWX65sNU1GjW9cSAjV6ZGszDW5rhMhYmHEpaJthNzoi86S2i8gtH1F
kTbZkWKXJxBUOjSNPbdD/Apv433PkQ==
=SG2x
-----END PGP SIGNATURE-----payloadtree c69cd7a4d3a8fc16eee10bf459bf19c09135ff36
parent 3dd63e3f2da8f889f2e5019da3d9a4c4591510c1
author asvoboda <asvoboda@palantir.com> 1681219782 +0100
committer asvoboda <asvoboda@palantir.com> 1681219782 +0100

Add scans to more gradlew invocations
uujU  ^https://api.github.com/repos/palantir/atlasdb/commits/e66bbcb67070fbc719f9bc2288c96b5474e71132html_urlShttps://github.com/palantir/atlasdb/commit/e66bbcb67070fbc719f9bc2288c96b5474e71132comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e66bbcb67070fbc719f9bc2288c96b5474e71132/commentsjU  }(loginasvobodaidJ$ jU  MDQ6VXNlcjEzMTk5NDQ=
avatar_url3https://avatars.githubusercontent.com/u/1319944?v=4gravatar_idh5jU  %https://api.github.com/users/asvobodajU  https://github.com/asvoboda
followers_url/https://api.github.com/users/asvoboda/followers
following_url<https://api.github.com/users/asvoboda/following{/other_user}	gists_url5https://api.github.com/users/asvoboda/gists{/gist_id}starred_url<https://api.github.com/users/asvoboda/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/asvoboda/subscriptionsorganizations_url*https://api.github.com/users/asvoboda/orgs	repos_url+https://api.github.com/users/asvoboda/repos
events_url6https://api.github.com/users/asvoboda/events{/privacy}received_events_url5https://api.github.com/users/asvoboda/received_eventstypeUser
site_adminujU  }(jU  asvobodajU  J$ jU  MDQ6VXNlcjEzMTk5NDQ=jU  3https://avatars.githubusercontent.com/u/1319944?v=4jU  h5jU  %https://api.github.com/users/asvobodajU  https://github.com/asvobodajU  /https://api.github.com/users/asvoboda/followersjU  <https://api.github.com/users/asvoboda/following{/other_user}jU  5https://api.github.com/users/asvoboda/gists{/gist_id}jU  <https://api.github.com/users/asvoboda/starred{/owner}{/repo}jU  3https://api.github.com/users/asvoboda/subscriptionsjU  *https://api.github.com/users/asvoboda/orgsjU  +https://api.github.com/users/asvoboda/reposjU  6https://api.github.com/users/asvoboda/events{/privacy}jU  5https://api.github.com/users/asvoboda/received_eventsjU  UserjU  uparents]}(jU  (3dd63e3f2da8f889f2e5019da3d9a4c4591510c1jU  ^https://api.github.com/repos/palantir/atlasdb/commits/3dd63e3f2da8f889f2e5019da3d9a4c4591510c1jU  Shttps://github.com/palantir/atlasdb/commit/3dd63e3f2da8f889f2e5019da3d9a4c4591510c1uastats}(totalK	additionsK	deletionsKufiles](}(jU  (06197f4756b7bc8f69989b875b83d9bab86d64d0filename*scripts/circle-ci/publish-to-antithesis.shstatusmodifiedjU  KjU  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e66bbcb67070fbc719f9bc2288c96b5474e71132/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shraw_urlhttps://github.com/palantir/atlasdb/raw/e66bbcb67070fbc719f9bc2288c96b5474e71132/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=e66bbcb67070fbc719f9bc2288c96b5474e71132patchX2  @@ -12,7 +12,7 @@ fi
 
 printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://${ANTITHESIS_REPO_URL} --password-stdin
 
-./gradlew docker
+./gradlew --scan docker
 
 docker pull palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
 docker tag palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra ${ANTITHESIS_REPO_URL}/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
@@ -26,4 +26,4 @@ docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:unspecif
 
 LATEST_ANTITHESIS_TAG=$(docker image ls palantirtechnologies/atlasdb-workload-server-antithesis --format "{{.Tag}}")
 docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}
\ No newline at end of file
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}u}(jU  (a7f8e6bf1b22ad9488b7b86d01c7e73e5c2aa5c7jU  %scripts/circle-ci/run-circle-tests.shjU  modifiedjU  KjU  KjU  KjU  {https://github.com/palantir/atlasdb/blob/e66bbcb67070fbc719f9bc2288c96b5474e71132/scripts%2Fcircle-ci%2Frun-circle-tests.shjU  zhttps://github.com/palantir/atlasdb/raw/e66bbcb67070fbc719f9bc2288c96b5474e71132/scripts%2Fcircle-ci%2Frun-circle-tests.shjU  https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=e66bbcb67070fbc719f9bc2288c96b5474e71132jU  X}  @@ -68,7 +68,7 @@ if [ "$CIRCLE_NODE_INDEX" -eq "11" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
-    BASE_GRADLE_ARGS+=" --parallel"
+    BASE_GRADLE_ARGS+=" --scan --parallel"
 fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64mueu(1b79eb8cb4e8c177cadabfa174a7364a8adaaf2d}(sha(1b79eb8cb4e8c177cadabfa174a7364a8adaaf2dnode_idEC_kwDOAjP5fdoAKDFiNzllYjhjYjRlOGMxNzdjYWRhYmZhMTc0YTczNjRhOGFkYWFmMmQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-21T08:48:54Zu	committer}(jV  Jeremy KongjV  jkong@palantir.comjV  2023-06-21T08:48:54Zumessagebuggifytree}(jV  (79a3fb8754145ff9f00df032f3c91e7f39ba02d7url`https://api.github.com/repos/palantir/atlasdb/git/trees/79a3fb8754145ff9f00df032f3c91e7f39ba02d7uj V  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1b79eb8cb4e8c177cadabfa174a7364a8adaaf2d
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSSuXcACgkQTLdFKain
zjxUSggAvW+MWpl1V6y3l6dWacHSByqf4pchBwddf/gzW7mXxZAzbH7pc1CqfnPI
jJyuaalpsSJePeH3Bqp+oUTwEfz0j90m1EubWvzjsA2CEqBc7I1gGY7wXa7rW1Ut
XNhJHaYYIMzoMF7L1WephWED+OKVkQS/hJly7jCearQutG9/bv5NroCXadtLAL5T
mp3EC6aNQwVojPeemWkfDuA7Nz5GOZSdvjALSWIrgzBbZGRigsAq0QtrYiny2PhJ
PgBlqJjS2Uu9IltIM3pQNK2zVCjgCItjfpZa5/piYY0YXWcHJuokKbM56jh0/d+V
W3f1/OCrUke+3eb6ND0FLDTkIpA06Q==
=oC0N
-----END PGP SIGNATURE-----payloadtree 79a3fb8754145ff9f00df032f3c91e7f39ba02d7
parent 4c46cf3ba7be6d87288a2362eb96173f80c36ac0
author Jeremy Kong <jkong@palantir.com> 1687337334 +0800
committer Jeremy Kong <jkong@palantir.com> 1687337334 +0800

buggify
uuj V  ^https://api.github.com/repos/palantir/atlasdb/commits/1b79eb8cb4e8c177cadabfa174a7364a8adaaf2dhtml_urlShttps://github.com/palantir/atlasdb/commit/1b79eb8cb4e8c177cadabfa174a7364a8adaaf2dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1b79eb8cb4e8c177cadabfa174a7364a8adaaf2d/commentsjV  }(login
jeremyk-91idJZ j
V  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j V  'https://api.github.com/users/jeremyk-91j.V  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujV  }(j3V  
jeremyk-91j5V  JZ j
V  MDQ6VXNlcjU5NTU1MTA=j7V  3https://avatars.githubusercontent.com/u/5955510?v=4j9V  h5j V  'https://api.github.com/users/jeremyk-91j.V  https://github.com/jeremyk-91j<V  1https://api.github.com/users/jeremyk-91/followersj>V  >https://api.github.com/users/jeremyk-91/following{/other_user}j@V  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jBV  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jDV  5https://api.github.com/users/jeremyk-91/subscriptionsjFV  ,https://api.github.com/users/jeremyk-91/orgsjHV  -https://api.github.com/users/jeremyk-91/reposjJV  8https://api.github.com/users/jeremyk-91/events{/privacy}jLV  7https://api.github.com/users/jeremyk-91/received_eventsjNV  UserjPV  uparents]}(jV  (4c46cf3ba7be6d87288a2362eb96173f80c36ac0j V  ^https://api.github.com/repos/palantir/atlasdb/commits/4c46cf3ba7be6d87288a2362eb96173f80c36ac0j.V  Shttps://github.com/palantir/atlasdb/commit/4c46cf3ba7be6d87288a2362eb96173f80c36ac0uastats}(totalK	additionsK	deletionsKufiles]}(jV  (93f9c01df1241f259a4ee89434bdd80961d2af09filenamelatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javastatusmodifiedjjV  KjkV  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/1b79eb8cb4e8c177cadabfa174a7364a8adaaf2d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1b79eb8cb4e8c177cadabfa174a7364a8adaaf2d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=1b79eb8cb4e8c177cadabfa174a7364a8adaaf2dpatchX	  @@ -17,6 +17,8 @@
 package com.palantir.atlasdb.workload.store;
 
 import com.google.common.primitives.Ints;
+import com.google.common.util.concurrent.Uninterruptibles;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
 import com.palantir.atlasdb.keyvalue.api.BatchColumnRangeSelection;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
@@ -40,6 +42,7 @@
 import java.util.Map.Entry;
 import java.util.Optional;
 import java.util.Set;
+import java.util.concurrent.TimeUnit;
 import java.util.function.BiFunction;
 import java.util.function.Function;
 import java.util.stream.Collectors;
@@ -111,12 +114,18 @@ public List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRang
                             List.of(AtlasDbUtils.toAtlasKey(row)),
                             BatchColumnRangeSelection.create(
                                     AtlasDbUtils.toAtlasColumnRangeSelection(columnRangeSelection), 1));
-                    List<ColumnValue> columnsAndValues = EntryStream.of(iterators.get(AtlasDbUtils.toAtlasKey(row)))
-                            .mapKeys(Cell::getColumnName)
-                            .mapKeys(AtlasDbUtils::fromAtlasColumn)
-                            .mapValues(AtlasDbUtils::fromAtlasValue)
-                            .map(entry -> ColumnValue.of(entry.getKey(), entry.getValue()))
-                            .collect(Collectors.toList());
+
+                    List<ColumnValue> columnsAndValues = new ArrayList<>();
+                    Iterator<Entry<Cell, byte[]>> relevantIterator = iterators.get(AtlasDbUtils.toAtlasKey(row));
+                    while (relevantIterator.hasNext()) {
+                        Entry<Cell, byte[]> entry = relevantIterator.next();
+                        columnsAndValues.add(ColumnValue.of(
+                                AtlasDbUtils.fromAtlasColumn(entry.getKey().getColumnName()),
+                                AtlasDbUtils.fromAtlasValue(entry.getValue())));
+                        DefaultBuggifyFactory.INSTANCE.maybe(0.5)
+                                .run(() -> Uninterruptibles.sleepUninterruptibly(3, TimeUnit.SECONDS));
+                    }
+
                     witnessedTransactionActions.add(WitnessedRowColumnRangeReadTransactionAction.builder()
                             .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                     .table(table)uau(6faca3dd2fc4aa48b6478f296161b633fd3738e6}(sha(6faca3dd2fc4aa48b6478f296161b633fd3738e6node_idEC_kwDOAjP5fdoAKDZmYWNhM2RkMmZjNGFhNDhiNjQ3OGYyOTYxNjFiNjMzZmQzNzM4ZTYcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-05-23T15:26:55Zu	committer}(jV  David SchlosnaglejV  davids@palantir.comjV  2023-05-23T15:26:55ZumessageAddress commentstree}(jV  (a0ab6382c7c9c58eede2aa7b1cf348eaab3531f1url`https://api.github.com/repos/palantir/atlasdb/git/trees/a0ab6382c7c9c58eede2aa7b1cf348eaab3531f1ujV  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6faca3dd2fc4aa48b6478f296161b633fd3738e6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmRs2z8ACgkQR9hsJ74Q
0l8IlwgAo3IyvoRddujdJhFn9xYGv37eD0EigIRk3GzjbzG0QSIx1HUmQwoiz4rh
qjItG3nI3C4KUk1GxWexocpJ0w47iCuMdG5y+5XyZXu6G3ic49xXc9JE8ialRhxn
jlEzD7uw16e3/Wr/GVgYimGQRGBIwr6d3q9BTEU6nEf4+wbQDE18cL2v+lhv0vjK
hfOcbxVMW/jEhMI3v5kFxAmIOPKC8LoDNV0Quzzpc8dBbIZ/hMALg79+E8v950p1
HZaMRxyyxlXC4pWMRxNpMMXNQLhiV+XVqf1pbgyc6LdZshN+bUnl2S+r/TxRBkyr
k0kKu4VdUMZjoKDYTOSDkixcx4mmtg==
=XhDB
-----END PGP SIGNATURE-----payloadtree a0ab6382c7c9c58eede2aa7b1cf348eaab3531f1
parent 37f2f725f964386eaacf1840a1293eec6dffe3ad
author David Schlosnagle <davids@palantir.com> 1684855615 -0400
committer David Schlosnagle <davids@palantir.com> 1684855615 -0400

Address comments
uujV  ^https://api.github.com/repos/palantir/atlasdb/commits/6faca3dd2fc4aa48b6478f296161b633fd3738e6html_urlShttps://github.com/palantir/atlasdb/commit/6faca3dd2fc4aa48b6478f296161b633fd3738e6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6faca3dd2fc4aa48b6478f296161b633fd3738e6/commentsjV  }(loginschlosnaidMBjV  MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jV  %https://api.github.com/users/schlosnajV  https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujV  }(jV  schlosnajV  MBjV  MDQ6VXNlcjU0NTk0jV  1https://avatars.githubusercontent.com/u/54594?v=4jV  h5jV  %https://api.github.com/users/schlosnajV  https://github.com/schlosnajV  /https://api.github.com/users/schlosna/followersjV  <https://api.github.com/users/schlosna/following{/other_user}jV  5https://api.github.com/users/schlosna/gists{/gist_id}jV  <https://api.github.com/users/schlosna/starred{/owner}{/repo}jV  3https://api.github.com/users/schlosna/subscriptionsjV  *https://api.github.com/users/schlosna/orgsjV  +https://api.github.com/users/schlosna/reposjV  6https://api.github.com/users/schlosna/events{/privacy}jV  5https://api.github.com/users/schlosna/received_eventsjV  UserjV  uparents]}(jV  (37f2f725f964386eaacf1840a1293eec6dffe3adjV  ^https://api.github.com/repos/palantir/atlasdb/commits/37f2f725f964386eaacf1840a1293eec6dffe3adjV  Shttps://github.com/palantir/atlasdb/commit/37f2f725f964386eaacf1840a1293eec6dffe3aduastats}(totalK	additionsKA	deletionsK@ufiles](}(jV  (b6e36b890415f2534eb284b773e57dbc27d4313bfilenameSatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/Tokens.javastatusmodifiedjV  KjV  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/6faca3dd2fc4aa48b6478f296161b633fd3738e6/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6faca3dd2fc4aa48b6478f296161b633fd3738e6/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.java?ref=6faca3dd2fc4aa48b6478f296161b633fd3738e6patchXs  @@ -26,14 +26,10 @@ final class Tokens {
     private static final BaseEncoding LOWER_CASE_HEX = BaseEncoding.base16().lowerCase();
 
     static byte[] hexDecode(String token) {
-        // OPP tokens should be lowercase already, use upper if needed, and convert mixed to uppercase if needed
-        byte[] decoded;
-        if (Tokens.isAllLowercaseOrDigits(token)) {
-            decoded = LOWER_CASE_HEX.decode(token);
-        } else {
-            decoded = BaseEncoding.base16().decode(token.toUpperCase(Locale.ROOT));
-        }
-        return decoded;
+        // OPP tokens should be lowercase -- fast path assumes this; slow fallback converts to uppercase
+        return Tokens.isAllLowercaseOrDigits(token)
+                ? LOWER_CASE_HEX.decode(token)
+                : BaseEncoding.base16().decode(token.toUpperCase(Locale.ROOT));
     }
 
     @VisibleForTestingu}(jV  (3753c37f1661486b791e667b00225ee922b75441jV  datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppTokenTest.javajV  modifiedjV  KjV  KjV  K$jV  https://github.com/palantir/atlasdb/blob/6faca3dd2fc4aa48b6478f296161b633fd3738e6/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javajV  https://github.com/palantir/atlasdb/raw/6faca3dd2fc4aa48b6478f296161b633fd3738e6/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javajV  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.java?ref=6faca3dd2fc4aa48b6478f296161b633fd3738e6jV  X
  @@ -18,15 +18,11 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
-import com.google.common.io.BaseEncoding;
-import com.google.common.primitives.Longs;
 import com.palantir.conjure.java.lib.Bytes;
 import java.nio.ByteBuffer;
 import java.util.Collection;
 import java.util.Locale;
-import java.util.concurrent.ThreadLocalRandom;
 import java.util.stream.Collectors;
-import java.util.stream.IntStream;
 import java.util.stream.Stream;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -41,39 +37,19 @@ public class LightweightOppTokenTest {
 
     @Parameters(name = "{index}: input=\"{0}\"")
     public static Collection<Object[]> data() {
-        return Stream.concat(
-                        Stream.of(
-                                "0F",
-                                "decafbad",
-                                "0123456789ABCDEF",
-                                "0123456789abcdef",
-                                "0123456789Abcdef",
-                                "0123456789aBcdef",
-                                "0123456789abCdef",
-                                "0123456789abcDef",
-                                "0123456789abcdEf",
-                                "0123456789abcdeF",
-                                Long.toHexString(Long.MIN_VALUE),
-                                Long.toHexString(Long.MAX_VALUE)),
-                        Stream.concat(
-                                IntStream.range(0, 32).mapToObj(i -> {
-                                    byte[] bytes = new byte[i * 2];
-                                    ThreadLocalRandom.current().nextBytes(bytes);
-                                    return BaseEncoding.base16().encode(bytes);
-                                }),
-                                IntStream.range(0, 1000).mapToObj(_i -> BaseEncoding.base16()
-                                        .encode(Longs.toByteArray(
-                                                ThreadLocalRandom.current().nextLong())))))
+        return TokensTest.generateTokens()
                 .flatMap(input -> Stream.of(input, input.toLowerCase(Locale.ROOT), input.toUpperCase(Locale.ROOT)))
                 .map(input -> new Object[] {input})
                 .collect(Collectors.toList());
     }
 
     @Test
-    public void inputsAreValid() {
+    public void inputsAreValidBase16Strings() {
+        assertThat(input).matches("^[0-9a-fA-F]*$");
         assertThat(input.length() % 2 == 0)
                 .as("input must be even length to base16 decode")
                 .isTrue();
+        assertThat(CassandraHex.hexToBytes(input)).hasSize(input.length() / 2);
     }
 
     @Test
@@ -87,7 +63,7 @@ public void createFromHexEncodedStringRegardlessOfCase() {
                 .hasSize(input.length() / 2)
                 .isEqualTo(tokenFromLowerCase.bytes)
                 .isEqualTo(tokenFromUpperCase.bytes)
-                .isEqualTo(tokenFromBytes);
+                .isEqualTo(tokenFromBytes.bytes);
         assertThat(token)
                 .isNotNull()
                 .isEqualTo(tokenFromLowerCase)
@@ -99,7 +75,7 @@ public void createFromHexEncodedStringRegardlessOfCase() {
     }
 
     @Test
-    public void createFromHex() throws Exception {
+    public void fromHexCorrectlyDeserializesStrings() throws Exception {
         LightweightOppToken token = LightweightOppToken.fromHex(input);
         Bytes expectedBytes = Bytes.from(org.apache.commons.codec.binary.Hex.decodeHex(input));
         assertThat(token.bytes).contains(expectedBytes.asNewByteArray());u     }(jV  (db57abd4b23910bc5e3468db860764b587878808jV  Watlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/TokensTest.javajV  modifiedjV  K1jV  KjV  KKjV  https://github.com/palantir/atlasdb/blob/6faca3dd2fc4aa48b6478f296161b633fd3738e6/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.javajV  https://github.com/palantir/atlasdb/raw/6faca3dd2fc4aa48b6478f296161b633fd3738e6/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.javajV  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.java?ref=6faca3dd2fc4aa48b6478f296161b633fd3738e6jV  X*  @@ -29,7 +29,35 @@
 public final class TokensTest {
     @Test
     public void decodeHex() {
-        Stream.concat(
+        generateTokens().forEach(input -> assertThat(Tokens.hexDecode(input))
+                .as("token '%s'", input)
+                .hasSize(input.length() / 2));
+    }
+
+    @Test
+    public void isAllLowercaseOrDigits() {
+        assertThat(Tokens.isAllLowercaseOrDigits("abcdef01234567890")).isTrue();
+        assertThat(Tokens.isAllLowercaseOrDigits("01234567890abcdef")).isTrue();
+        assertThat(Tokens.isAllLowercaseOrDigits("Abcdef01234567890")).isFalse();
+        assertThat(Tokens.isAllLowercaseOrDigits("01234567890ABCDEF")).isFalse();
+    }
+
+    @Test
+    public void allMatch() {
+        assertThat(Tokens.allMatch("01234567890", Character::isDigit)).isTrue();
+        assertThat(Tokens.allMatch("0123456789A", Character::isDigit)).isFalse();
+        assertThat(Tokens.allMatch("ABCEFGHIJKLMNOPQRSTUVWXYZ", Character::isUpperCase))
+                .isTrue();
+        assertThat(Tokens.allMatch("ABCEFGHIJKLMNOPQRSTUVWXYZ", Character::isLowerCase))
+                .isFalse();
+        assertThat(Tokens.allMatch("abcefghijklmnopqrstuvwxyz", Character::isLowerCase))
+                .isTrue();
+        assertThat(Tokens.allMatch("abcefghijklmnopqrstuvwxyz", Character::isUpperCase))
+                .isFalse();
+    }
+
+    static Stream<String> generateTokens() {
+        return Stream.concat(
                         Stream.of(
                                 "",
                                 "0F",
@@ -50,34 +78,29 @@ public void decodeHex() {
                                     ThreadLocalRandom.current().nextBytes(bytes);
                                     return BaseEncoding.base16().encode(bytes);
                                 }),
-                                IntStream.range(0, 10_000).mapToObj(_i -> BaseEncoding.base16()
+                                IntStream.range(0, 1_000).mapToObj(_i -> BaseEncoding.base16()
                                         .encode(Longs.toByteArray(
                                                 ThreadLocalRandom.current().nextLong())))))
-                .flatMap(input -> Stream.of(input, input.toLowerCase(Locale.ROOT), input.toUpperCase(Locale.ROOT)))
-                .forEach(input -> assertThat(Tokens.hexDecode(input))
-                        .as("token '%s'", input)
-                        .hasSize(input.length() / 2));
+                .flatMap(input -> Stream.of(
+                        input, input.toLowerCase(Locale.ROOT), input.toUpperCase(Locale.ROOT), shuffleCase(input)));
     }
 
-    @Test
-    public void isAllLowercaseOrDigits() {
-        assertThat(Tokens.isAllLowercaseOrDigits("abcdef01234567890")).isTrue();
-        assertThat(Tokens.isAllLowercaseOrDigits("01234567890abcdef")).isTrue();
-        assertThat(Tokens.isAllLowercaseOrDigits("Abcdef01234567890")).isFalse();
-        assertThat(Tokens.isAllLowercaseOrDigits("01234567890ABCDEF")).isFalse();
-    }
-
-    @Test
-    public void allMatch() {
-        assertThat(Tokens.allMatch("01234567890", Character::isDigit)).isTrue();
-        assertThat(Tokens.allMatch("0123456789A", Character::isDigit)).isFalse();
-        assertThat(Tokens.allMatch("ABCEFGHIJKLMNOPQRSTUVWXYZ", Character::isUpperCase))
-                .isTrue();
-        assertThat(Tokens.allMatch("ABCEFGHIJKLMNOPQRSTUVWXYZ", Character::isLowerCase))
-                .isFalse();
-        assertThat(Tokens.allMatch("abcefghijklmnopqrstuvwxyz", Character::isLowerCase))
-                .isTrue();
-        assertThat(Tokens.allMatch("abcefghijklmnopqrstuvwxyz", Character::isUpperCase))
-                .isFalse();
+    private static String shuffleCase(String input) {
+        if (input == null || input.isEmpty()) {
+            return input;
+        }
+        StringBuilder sb = new StringBuilder(input.length());
+        for (int i = 0; i < input.length(); i++) {
+            char ch = input.charAt(i);
+            if (Character.isAlphabetic(ch) && ThreadLocalRandom.current().nextBoolean()) {
+                if (Character.isLowerCase(ch)) {
+                    ch = Character.toUpperCase(ch);
+                } else {
+                    ch = Character.toLowerCase(ch);
+                }
+            }
+            sb.append(ch);
+        }
+        return sb.toString();
     }
 }u}(jV  (accf41e869d53eedaf4f54d948e2b5260617a8cbjV  $changelog/@unreleased/pr-6468.v2.ymljV  addedjV  KjV  K jV  KjV  |https://github.com/palantir/atlasdb/blob/6faca3dd2fc4aa48b6478f296161b633fd3738e6/changelog%2F%40unreleased%2Fpr-6468.v2.ymljV  {https://github.com/palantir/atlasdb/raw/6faca3dd2fc4aa48b6478f296161b633fd3738e6/changelog%2F%40unreleased%2Fpr-6468.v2.ymljV  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6468.v2.yml?ref=6faca3dd2fc4aa48b6478f296161b633fd3738e6jV  @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Avoid string case conversion when parsing token ring
+  links:
+  - https://github.com/palantir/atlasdb/pull/6468
+ueu(b43fda437830085914d846dddc38492c81fe7f83}(sha(b43fda437830085914d846dddc38492c81fe7f83node_idEC_kwDOAjP5fdoAKGI0M2ZkYTQzNzgzMDA4NTkxNGQ4NDZkZGRjMzg0OTJjODFmZTdmODMcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-25T16:55:10Zu	committer}(jW  
Ahmed AlouanejW  aalouane@palantir.comjW  2023-05-25T16:55:10Zumessagerefactortree}(jW  (ac93d88f05c267d12cbcbae548343b851d4eca53url`https://api.github.com/repos/palantir/atlasdb/git/trees/ac93d88f05c267d12cbcbae548343b851d4eca53uj&W  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b43fda437830085914d846dddc38492c81fe7f83
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRvku8ACgkQPlMHVIT1
yhrcwwf/ZbnuaHDX896fvKpr4utiqu6mquRlSCituR9RXLnJ299UqAIOFepMhX61
zbG5KMo4q3hHCTD52aJTCljHqbLPfwscpQsrs8TwZglMEXsVpyDCHhfEHksjMC0Y
WWvQXDQkNu2rZqsC19poVIG+Q2oOkNOWASbrrXXRjOHn6BTGAYwvw2jHpo/lcu93
IBHGwHukBMdZ967nOcGrmeBQh4GDz4IGo6DZ3STUHLTa8RS1k5qkrkJYRMb5gFHr
TlpOkdKVpMTh5smDb+cmNZWZEJujad1YXoTJZkq63L1ziVQK6ebU+owedUEQIve4
bSQoNgRLYl25S1ZvuPhf+HXZ7AxTlA==
=Lsea
-----END PGP SIGNATURE-----payloadtree ac93d88f05c267d12cbcbae548343b851d4eca53
parent 79c8fd6b229d9ac2275ced0903cfa042d9f74a9c
author Ahmed Alouane <aalouane@palantir.com> 1685033710 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1685033710 +0100

refactor
uuj&W  ^https://api.github.com/repos/palantir/atlasdb/commits/b43fda437830085914d846dddc38492c81fe7f83html_urlShttps://github.com/palantir/atlasdb/commit/b43fda437830085914d846dddc38492c81fe7f83comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b43fda437830085914d846dddc38492c81fe7f83/commentsjW  }(loginergo14idJjW  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j&W  #https://api.github.com/users/ergo14j4W  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujW  }(j9W  ergo14j;W  JjW  MDQ6VXNlcjMwOTAzNzM2j=W  4https://avatars.githubusercontent.com/u/30903736?v=4j?W  h5j&W  #https://api.github.com/users/ergo14j4W  https://github.com/ergo14jBW  -https://api.github.com/users/ergo14/followersjDW  :https://api.github.com/users/ergo14/following{/other_user}jFW  3https://api.github.com/users/ergo14/gists{/gist_id}jHW  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jJW  1https://api.github.com/users/ergo14/subscriptionsjLW  (https://api.github.com/users/ergo14/orgsjNW  )https://api.github.com/users/ergo14/reposjPW  4https://api.github.com/users/ergo14/events{/privacy}jRW  3https://api.github.com/users/ergo14/received_eventsjTW  UserjVW  uparents]}(jW  (79c8fd6b229d9ac2275ced0903cfa042d9f74a9cj&W  ^https://api.github.com/repos/palantir/atlasdb/commits/79c8fd6b229d9ac2275ced0903cfa042d9f74a9cj4W  Shttps://github.com/palantir/atlasdb/commit/79c8fd6b229d9ac2275ced0903cfa042d9f74a9cuastats}(totalK6	additionsK	deletionsK ufiles](}(jW  (59b89279e48db9325c3a8288b44f184baf56e602filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedjpW  KjqW  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b43fda437830085914d846dddc38492c81fe7f83/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b43fda437830085914d846dddc38492c81fe7f83/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=b43fda437830085914d846dddc38492c81fe7f83patchX  @@ -2614,19 +2614,17 @@ public void reportExpectationsCollectedData() {
             return;
         }
 
-        reportExpectationsCollectedData(this, expectationsDataCollectionMetrics);
+        reportExpectationsCollectedData(getAgeMillis(), getReadInfo(), expectationsDataCollectionMetrics);
     }
 
     @VisibleForTesting
-    static void reportExpectationsCollectedData(ExpectationsAwareTransaction transaction, ExpectationsMetrics metrics) {
-        long ageMillis = transaction.getAgeMillis();
-        TransactionReadInfo info = transaction.getReadInfo();
-
+    static void reportExpectationsCollectedData(
+            long ageMillis, TransactionReadInfo readInfo, ExpectationsMetrics metrics) {
         metrics.ageMillis().update(ageMillis);
-        metrics.bytesRead().update(info.bytesRead());
-        metrics.kvsReads().update(info.kvsCalls());
+        metrics.bytesRead().update(readInfo.bytesRead());
+        metrics.kvsReads().update(readInfo.kvsCalls());
 
-        info.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
+        readInfo.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
                 .update(kvsCallReadInfo.bytesRead()));
     }
 u}(jW  (72ece7b67a1492f134e199afdf95492cb159d4dajvW  matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javajxW  modifiedjpW  KjqW  KjzW  K(j{W  https://github.com/palantir/atlasdb/blob/b43fda437830085914d846dddc38492c81fe7f83/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj}W  https://github.com/palantir/atlasdb/raw/b43fda437830085914d846dddc38492c81fe7f83/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajW  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=b43fda437830085914d846dddc38492c81fe7f83jW  XV  @@ -22,8 +22,10 @@
 
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.util.MetricsManagers;
+import jdk.jfr.SettingDefinition;
 import org.junit.Before;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -36,60 +38,50 @@ public final class ExpectationsMetricsReportingTest {
     private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
             ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
 
-    private static final ExpectationsMetrics METRICS =
-            ExpectationsMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
-
-    @Mock
-    ExpectationsAwareTransaction transaction;
+    private ExpectationsMetrics metrics;
 
     @Before
     public void setUp() {
-        // avoids stub/mock NPEs
-        when(transaction.getReadInfo()).thenReturn(BLANK_READ_INFO);
+        metrics = ExpectationsMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
     }
 
     @Test
     public void ageReported() {
         long age = 129L;
-        when(transaction.getAgeMillis()).thenReturn(age);
-        reportMetrics();
-        assertThat(METRICS.ageMillis().getSnapshot().getValues()).containsOnly(age);
+        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, metrics);
+        assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
     }
 
     @Test
     public void bytesReadReported() {
         long bytes = 1290L;
-        when(transaction.getReadInfo()).thenReturn(BLANK_READ_INFO.withBytesRead(bytes));
-        reportMetrics();
-        assertThat(METRICS.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
+        reportMetrics(BLANK_READ_INFO.withBytesRead(bytes));
+        assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
     }
 
     @Test
     public void kvsCallsReported() {
         long calls = 12L;
-        when(transaction.getReadInfo()).thenReturn(BLANK_READ_INFO.withKvsCalls(calls));
-        reportMetrics();
-        assertThat(METRICS.kvsReads().getSnapshot().getValues()).containsOnly(calls);
+        reportMetrics(BLANK_READ_INFO.withKvsCalls(calls));
+        assertThat(metrics.kvsReads().getSnapshot().getValues()).containsOnly(calls);
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
-        reportMetrics();
-        assertThat(METRICS.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+        reportMetrics(BLANK_READ_INFO);
+        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
                 .isEmpty();
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
         long bytes = 193L;
-        when(transaction.getReadInfo())
-                .thenReturn(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
-        reportMetrics();
-        assertThat(METRICS.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+        reportMetrics(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
                 .containsOnly(bytes);
     }
 
-    private void reportMetrics() {
-        SnapshotTransaction.reportExpectationsCollectedData(transaction, METRICS);
+    private void reportMetrics(TransactionReadInfo readInfo) {
+        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, metrics);
     }
 }ueu(3521a7f14cba2bd5c840ecdedfcb6f459e1a6cf1}(sha(3521a7f14cba2bd5c840ecdedfcb6f459e1a6cf1node_idEC_kwDOAjP5fdoAKDM1MjFhN2YxNGNiYTJiZDVjODQwZWNkZWRmY2I2ZjQ1OWUxYTZjZjEcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-04-25T10:31:38Zu	committer}(jW  
svc-changelogjW  svc-changelog@palantir.comjW  2023-04-25T10:31:38ZumessageAdd generated changelog entriestree}(jW  (7faf11284df24493264c13b70923dce148f6c355url`https://api.github.com/repos/palantir/atlasdb/git/trees/7faf11284df24493264c13b70923dce148f6c355ujW  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3521a7f14cba2bd5c840ecdedfcb6f459e1a6cf1
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmRHrAoJEHYaJX37fAFQAACLggD/SHErQhD6wDf2vx2gyNwsNRZ/
m5kG/c0rGFY6yFeO870BALGrpVXs2hiKz+83qbEi7XuUJ5cJ2SPewMCCjGh9tw2K
=pSy4
-----END PGP SIGNATURE-----payloadX  tree 7faf11284df24493264c13b70923dce148f6c355
parent deee841088e4d44ed58d1613cb1f3d59d371b716
author svc-changelog <svc-changelog@palantir.com> 1682418698 +0000
committer svc-changelog <svc-changelog@palantir.com> 1682418698 +0000

Add generated changelog entriesuujW  ^https://api.github.com/repos/palantir/atlasdb/commits/3521a7f14cba2bd5c840ecdedfcb6f459e1a6cf1html_urlShttps://github.com/palantir/atlasdb/commit/3521a7f14cba2bd5c840ecdedfcb6f459e1a6cf1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3521a7f14cba2bd5c840ecdedfcb6f459e1a6cf1/commentsjW  }(login
svc-changelogidJ#jW  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jW  *https://api.github.com/users/svc-changelogjW   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujW  }(jW  
svc-changelogjW  J#jW  MDQ6VXNlcjg0MDc3NjAzjW  4https://avatars.githubusercontent.com/u/84077603?v=4jW  h5jW  *https://api.github.com/users/svc-changelogjW   https://github.com/svc-changelogjW  4https://api.github.com/users/svc-changelog/followersjW  Ahttps://api.github.com/users/svc-changelog/following{/other_user}jW  :https://api.github.com/users/svc-changelog/gists{/gist_id}jW  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jW  8https://api.github.com/users/svc-changelog/subscriptionsjW  /https://api.github.com/users/svc-changelog/orgsjW  0https://api.github.com/users/svc-changelog/reposjW  ;https://api.github.com/users/svc-changelog/events{/privacy}jW  :https://api.github.com/users/svc-changelog/received_eventsjW  UserjW  uparents]}(jW  (deee841088e4d44ed58d1613cb1f3d59d371b716jW  ^https://api.github.com/repos/palantir/atlasdb/commits/deee841088e4d44ed58d1613cb1f3d59d371b716jW  Shttps://github.com/palantir/atlasdb/commit/deee841088e4d44ed58d1613cb1f3d59d371b716uastats}(totalK	additionsK	deletionsK ufiles]}(jW  (7704c4f40f9407a6ec34cfd4976c31f5757d7911filename$changelog/@unreleased/pr-6541.v2.ymlstatusaddedjW  KjW  K changesKblob_url|https://github.com/palantir/atlasdb/blob/3521a7f14cba2bd5c840ecdedfcb6f459e1a6cf1/changelog%2F%40unreleased%2Fpr-6541.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/3521a7f14cba2bd5c840ecdedfcb6f459e1a6cf1/changelog%2F%40unreleased%2Fpr-6541.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6541.v2.yml?ref=3521a7f14cba2bd5c840ecdedfcb6f459e1a6cf1patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[CBT] Retry flaky tests'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6541uau(975bc6f1b09954754df8b311193f45c17d2d0b0e}(sha(975bc6f1b09954754df8b311193f45c17d2d0b0enode_idEC_kwDOAjP5fdoAKDk3NWJjNmYxYjA5OTU0NzU0ZGY4YjMxMTE5M2Y0NWMxN2QyZDBiMGUcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-12T11:36:53Zu	committer}(jX  Lucas MeirelesjX  meireles31@msn.comjX  2023-06-12T11:36:53Zumessageaccept abi breaktree}(jX  (9d1e541899e9d1fed7ce671ede13b9e5d54bf9d1url`https://api.github.com/repos/palantir/atlasdb/git/trees/9d1e541899e9d1fed7ce671ede13b9e5d54bf9d1ujX  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/975bc6f1b09954754df8b311193f45c17d2d0b0e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSHA1YACgkQJd22kJ7J
GiwC+gf/Qaw6MxxScLqVRL6cw2iGrJe/83Z/laPEdytGsSNOuCc/iqWwotKGFx5Q
3PjyYSmGnzN0iRBiqOZcdIh3G5lS3I8PBQ+4nidcvMfbxDgtUM9s33XO15jOd1e/
FWVYw8ZDqWYqlT2WtZAbV+g5ae3Pq5LHmSMUUm+F2pLBQQF8WgkcqZX0gCfNQHLr
GRqksBdzGjbDOCxi3YHfvtqrBu/LBEVmXcbsNJ8yV50YUo0j61bZJNkAB4hbWA/0
oledXLBy39drkhuhh6faEPI2vXMZmSsrvqsMjjpGcVrNJT8e6KDSeeQrpk/UuZZO
U+n8SqgK1qfkSkS6kgbF5g5B0lD5lg==
=M1Wy
-----END PGP SIGNATURE-----payloadtree 9d1e541899e9d1fed7ce671ede13b9e5d54bf9d1
parent e195356e267fd78e9c58d957df3555f53d43a0e1
author Lucas Meireles <meireles31@msn.com> 1686569813 +0100
committer Lucas Meireles <meireles31@msn.com> 1686569813 +0100

accept abi break
uujX  ^https://api.github.com/repos/palantir/atlasdb/commits/975bc6f1b09954754df8b311193f45c17d2d0b0ehtml_urlShttps://github.com/palantir/atlasdb/commit/975bc6f1b09954754df8b311193f45c17d2d0b0ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/975bc6f1b09954754df8b311193f45c17d2d0b0e/commentsj
X  }(loginLucasIMEidJg jX  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jX  %https://api.github.com/users/LucasIMEj*X  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujX  }(j/X  LucasIMEj1X  Jg jX  MDQ6VXNlcjY3ODczMTE=j3X  3https://avatars.githubusercontent.com/u/6787311?v=4j5X  h5jX  %https://api.github.com/users/LucasIMEj*X  https://github.com/LucasIMEj8X  /https://api.github.com/users/LucasIME/followersj:X  <https://api.github.com/users/LucasIME/following{/other_user}j<X  5https://api.github.com/users/LucasIME/gists{/gist_id}j>X  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j@X  3https://api.github.com/users/LucasIME/subscriptionsjBX  *https://api.github.com/users/LucasIME/orgsjDX  +https://api.github.com/users/LucasIME/reposjFX  6https://api.github.com/users/LucasIME/events{/privacy}jHX  5https://api.github.com/users/LucasIME/received_eventsjJX  UserjLX  uparents]}(jX  (e195356e267fd78e9c58d957df3555f53d43a0e1jX  ^https://api.github.com/repos/palantir/atlasdb/commits/e195356e267fd78e9c58d957df3555f53d43a0e1j*X  Shttps://github.com/palantir/atlasdb/commit/e195356e267fd78e9c58d957df3555f53d43a0e1uastats}(totalK
	additionsK
	deletionsK ufiles]}(jX  (ab3b63e8ffb5160b3295d1203427b859aa565b18filename.palantir/revapi.ymlstatusmodifiedjfX  K
jgX  K changesK
blob_urlhhttps://github.com/palantir/atlasdb/blob/975bc6f1b09954754df8b311193f45c17d2d0b0e/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/975bc6f1b09954754df8b311193f45c17d2d0b0e/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=975bc6f1b09954754df8b311193f45c17d2d0b0epatchXU  @@ -121,3 +121,13 @@ acceptedBreaks:
       old: "method java.util.concurrent.ExecutorService com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService::createThreadPoolWihtoutSpans(java.lang.String,\
         \ int, int) @ com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl"
       justification: "Protected method"
+  "0.871.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter java.util.SortedMap<byte[], com.palantir.atlasdb.keyvalue.api.RowResult<byte[]>>\
+        \ com.palantir.atlasdb.transaction.api.ConstraintCheckingTransaction::getRowsIgnoringLocalWrites(com.palantir.atlasdb.keyvalue.api.TableReference,\
+        \ ===java.lang.Iterable<byte[]>===)"
+      new: "parameter java.util.SortedMap<byte[], com.palantir.atlasdb.keyvalue.api.RowResult<byte[]>>\
+        \ com.palantir.atlasdb.transaction.api.ConstraintCheckingTransaction::getRowsIgnoringLocalWrites(com.palantir.atlasdb.keyvalue.api.TableReference,\
+        \ ===java.util.Collection<byte[]>===)"
+      justification: "Method is only used internally"uau(e03e6bb89d59b73630eb5ae5f60f04df177b7752}(sha(e03e6bb89d59b73630eb5ae5f60f04df177b7752node_idEC_kwDOAjP5fdoAKGUwM2U2YmI4OWQ1OWI3MzYzMGViNWFlNWY2MGYwNGRmMTc3Yjc3NTIcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-12T15:35:56Zu	committer}(jX  	Tom PapkejX  tpapke@palantir.comjX  2023-06-12T15:35:56ZumessageDRemove readOnlyTransaction test as somehow this is breaking CI (???)tree}(j{X  (ebd1911f85b5a9149d7056cd694ef03bd15e005aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/ebd1911f85b5a9149d7056cd694ef03bd15e005aujX  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e03e6bb89d59b73630eb5ae5f60f04df177b7752
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSHO1wACgkQmF9s0kaF
Iw0uAQgAtx323hHnvUKGuJaYpBRJWesrsu2VkFkAqhyMfDp6XnrBJLhcN7VVhXbK
Qm4xF/PGGRxNFGG9TijOwUrjdkFxVNta9k2Hpizdio0CX78AjD0AOnEVKvKKX9pB
/PIl0+uqjpL675oqRMutM8krqSheE1H7YUAGhSQgajknLg2dA28TgV7cDaeu4Ed/
FUbIhIz9AzMXoC4bs+KRCRqGLgRY/pVSR9cOBaLxCEPAfRtm3rP2LfettYHjX38M
boCWahmZ4D1U9hxmIVR/NtIqz3N88MDG1KG8KAnf7cSraNRsXEMyvoECwnawzeem
ckONU/a0iQyphJ8w8CDao9qp7A8hmQ==
=rh9s
-----END PGP SIGNATURE-----payloadX  tree ebd1911f85b5a9149d7056cd694ef03bd15e005a
parent 2bb657238bc800d98119bd67cf74b0488cb21362
author Tom Papke <tpapke@palantir.com> 1686584156 +0100
committer Tom Papke <tpapke@palantir.com> 1686584156 +0100

Remove readOnlyTransaction test as somehow this is breaking CI (???)
uujX  ^https://api.github.com/repos/palantir/atlasdb/commits/e03e6bb89d59b73630eb5ae5f60f04df177b7752html_urlShttps://github.com/palantir/atlasdb/commit/e03e6bb89d59b73630eb5ae5f60f04df177b7752comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e03e6bb89d59b73630eb5ae5f60f04df177b7752/commentsjX  }(login	ToemmscheidJboj}X  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jX  &https://api.github.com/users/ToemmschejX  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujX  }(jX  	ToemmschejX  Jboj}X  MDQ6VXNlcjQzNjc1NDkwjX  4https://avatars.githubusercontent.com/u/43675490?v=4jX  h5jX  &https://api.github.com/users/ToemmschejX  https://github.com/ToemmschejX  0https://api.github.com/users/Toemmsche/followersjX  =https://api.github.com/users/Toemmsche/following{/other_user}jX  6https://api.github.com/users/Toemmsche/gists{/gist_id}jX  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jX  4https://api.github.com/users/Toemmsche/subscriptionsjX  +https://api.github.com/users/Toemmsche/orgsjX  ,https://api.github.com/users/Toemmsche/reposjX  7https://api.github.com/users/Toemmsche/events{/privacy}jX  6https://api.github.com/users/Toemmsche/received_eventsjX  UserjX  uparents]}(j{X  (2bb657238bc800d98119bd67cf74b0488cb21362jX  ^https://api.github.com/repos/palantir/atlasdb/commits/2bb657238bc800d98119bd67cf74b0488cb21362jX  Shttps://github.com/palantir/atlasdb/commit/2bb657238bc800d98119bd67cf74b0488cb21362uastats}(totalK
	additionsK 	deletionsK
ufiles]}(j{X  (fba51b35002bb4c872397d2c09bc57b02ddd8136filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedjX  K jX  K
changesK
blob_urlhttps://github.com/palantir/atlasdb/blob/e03e6bb89d59b73630eb5ae5f60f04df177b7752/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e03e6bb89d59b73630eb5ae5f60f04df177b7752/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=e03e6bb89d59b73630eb5ae5f60f04df177b7752patchX  @@ -2428,19 +2428,6 @@ public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigratio
         assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
     }
 
-    @Test
-    public void setsRequestedCommitLocksCountCorrectly_readOnlyTransaction() {
-        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
-        txn.get(TABLE, ImmutableSet.of(TEST_CELL));
-        txn.commit();
-
-        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
-
-        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(0);
-        // Since this is a read-only transaction, we should not even lock a row in the transaction table itself
-        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(0);
-    }
-
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,uau(4a0d9bb9024e1dc8ada49fc9f19064dfb0d4aa7d}(sha(4a0d9bb9024e1dc8ada49fc9f19064dfb0d4aa7dnode_idEC_kwDOAjP5fdoAKDRhMGQ5YmI5MDI0ZTFkYzhhZGE0OWZjOWYxOTA2NGRmYjBkNGFhN2Qcommit}(author}(nameCVdV-auemail)69226052+CVdV-au@users.noreply.github.comdate2023-07-24T14:30:36Zu	committer}(jX  GitHubjX  noreply@github.comjX  2023-07-24T14:30:36ZumessageBump CI to Oracle 19.20 (#6678)tree}(jX  (e940491c560fb15cf6ce72a12b5b699db4c32b40url`https://api.github.com/repos/palantir/atlasdb/git/trees/e940491c560fb15cf6ce72a12b5b699db4c32b40uj
Y  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4a0d9bb9024e1dc8ada49fc9f19064dfb0d4aa7d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkvosMCRBK7hj4Ov3rIwAA2fMIAJZXw/2eH5dALfi38iTrOs++
XVrwUMHyxeW90j1gagC0NGy5kuJl/snSk9tvg7wPchojib6XN72UupBFu5pYjYlv
s5hte7cNlQEvc8m7sFMqWE/13mUtR1bU4tQedFLsqLkQ9/VSZXcU8cvkuMaoc38t
Usnh6mGEu1KoL5L7GUFRWJBl9hX5zL086LMSD4V1G2NVfYu+QiX90BblfYijt+O8
alPm042aHN9M7Vpf3Soi/MiC2QLLeUbrWe5us0lOtiPOqrZjlB46S/di5VKdy9y9
zeVlJAGIVv1bRJi7/jleVJPnGig9upbfXo2yS8iIKoCrg8dgK+xzDL5MAR/A6BY=
=BB46
-----END PGP SIGNATURE-----
payloadX  tree e940491c560fb15cf6ce72a12b5b699db4c32b40
parent 8b10152e066488cd8226106bbf4105200ae03336
author CVdV-au <69226052+CVdV-au@users.noreply.github.com> 1690209036 +1000
committer GitHub <noreply@github.com> 1690209036 +0000

Bump CI to Oracle 19.20 (#6678)

 uuj
Y  ^https://api.github.com/repos/palantir/atlasdb/commits/4a0d9bb9024e1dc8ada49fc9f19064dfb0d4aa7dhtml_urlShttps://github.com/palantir/atlasdb/commit/4a0d9bb9024e1dc8ada49fc9f19064dfb0d4aa7dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4a0d9bb9024e1dc8ada49fc9f19064dfb0d4aa7d/commentsjX  }(loginCVdV-auidJDN jX  MDQ6VXNlcjY5MjI2MDUy
avatar_url4https://avatars.githubusercontent.com/u/69226052?v=4gravatar_idh5j
Y  $https://api.github.com/users/CVdV-aujY  https://github.com/CVdV-au
followers_url.https://api.github.com/users/CVdV-au/followers
following_url;https://api.github.com/users/CVdV-au/following{/other_user}	gists_url4https://api.github.com/users/CVdV-au/gists{/gist_id}starred_url;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/CVdV-au/subscriptionsorganizations_url)https://api.github.com/users/CVdV-au/orgs	repos_url*https://api.github.com/users/CVdV-au/repos
events_url5https://api.github.com/users/CVdV-au/events{/privacy}received_events_url4https://api.github.com/users/CVdV-au/received_eventstypeUser
site_adminuj Y  }(jY  web-flowjY  J/jX  MDQ6VXNlcjE5ODY0NDQ3j!Y  4https://avatars.githubusercontent.com/u/19864447?v=4j#Y  h5j
Y  %https://api.github.com/users/web-flowjY  https://github.com/web-flowj&Y  /https://api.github.com/users/web-flow/followersj(Y  <https://api.github.com/users/web-flow/following{/other_user}j*Y  5https://api.github.com/users/web-flow/gists{/gist_id}j,Y  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j.Y  3https://api.github.com/users/web-flow/subscriptionsj0Y  *https://api.github.com/users/web-flow/orgsj2Y  +https://api.github.com/users/web-flow/reposj4Y  6https://api.github.com/users/web-flow/events{/privacy}j6Y  5https://api.github.com/users/web-flow/received_eventsj8Y  Userj:Y  uparents]}(jX  (8b10152e066488cd8226106bbf4105200ae03336j
Y  ^https://api.github.com/repos/palantir/atlasdb/commits/8b10152e066488cd8226106bbf4105200ae03336jY  Shttps://github.com/palantir/atlasdb/commit/8b10152e066488cd8226106bbf4105200ae03336uastats}(totalK	additionsK	deletionsKufiles](}(jX  (1302da74efe18e84324e9d1b29b32b97d32d2286filename+atlasdb-ete-tests/docker-compose.oracle.ymlstatusmodifiedjTY  KjUY  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/4a0d9bb9024e1dc8ada49fc9f19064dfb0d4aa7d/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlraw_url~https://github.com/palantir/atlasdb/raw/4a0d9bb9024e1dc8ada49fc9f19064dfb0d4aa7d/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.oracle.yml?ref=4a0d9bb9024e1dc8ada49fc9f19064dfb0d4aa7dpatch@@ -2,7 +2,7 @@ version: '2'
 
 services:
   oracle:
-    image: palantirtechnologies/oracle-atlasdb:19.19.0.0-se
+    image: palantirtechnologies/oracle-atlasdb:19.20.0.0-se
     ports:
       - "1521"
 u}(jX  (fee58d12969ff103787c5364360b6099175e95ebjZY  $changelog/@unreleased/pr-6678.v2.ymlj\Y  addedjTY  KjUY  K j^Y  Kj_Y  |https://github.com/palantir/atlasdb/blob/4a0d9bb9024e1dc8ada49fc9f19064dfb0d4aa7d/changelog%2F%40unreleased%2Fpr-6678.v2.ymljaY  {https://github.com/palantir/atlasdb/raw/4a0d9bb9024e1dc8ada49fc9f19064dfb0d4aa7d/changelog%2F%40unreleased%2Fpr-6678.v2.ymljcY  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6678.v2.yml?ref=4a0d9bb9024e1dc8ada49fc9f19064dfb0d4aa7djeY  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Bump CI to Oracle 19.20
+  links:
+  - https://github.com/palantir/atlasdb/pull/6678ueu(29cb01242c87bacfdd759d16cc3862b14aec33d8}(sha(29cb01242c87bacfdd759d16cc3862b14aec33d8node_idEC_kwDOAjP5fdoAKDI5Y2IwMTI0MmM4N2JhY2ZkZDc1OWQxNmNjMzg2MmIxNGFlYzMzZDgcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-07-17T15:23:22Zu	committer}(jyY  
Sam Kramerj{Y  skramer@palantir.comj}Y  2023-07-17T15:23:22Zumessage)add tests and checks for negative numberstree}(jqY  (d619dc5854b4bc37cf15fb527b789477c6a114a8url`https://api.github.com/repos/palantir/atlasdb/git/trees/d619dc5854b4bc37cf15fb527b789477c6a114a8ujY  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/29cb01242c87bacfdd759d16cc3862b14aec33d8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmS1XOoACgkQmPPOpKR4
XS0nGAgAn+YV9E6NKpW8c/dtXDvjZ3PtznSyGWbUJeEuZijYkrAYnNrQGT5xQjAF
iOD0iARSUaFk+83sW3FjFtq4Sr7P9HHb3HAY1j9eJnnrd/CYuu5vGKN7FEcOEHJU
RbhBEdcRVytYKEIBmr2pbRIbuMITZ21AM/PiAcB3WkXQ62wEfFQQr5CyIQ6Q1vJx
I7Se7IYeiLZMh20Vhc2o+pRniRbu27tRLaCQ3hIK7IygCA0hC17z0LxHew02N6iR
Jvyo4Gh7Y+il7BCd/weC5Jj5vvc47qBg94GZInnyfPRkZNq8fu+mJBu9prjI8gSI
5zHcBt6pkCdJJFgjF2H9l+X65wsBHw==
=NOO2
-----END PGP SIGNATURE-----payloadX   tree d619dc5854b4bc37cf15fb527b789477c6a114a8
parent e1bc361791e118294de932dd1be84916b6f7a2c5
author Sam Kramer <skramer@palantir.com> 1689607402 +0100
committer Sam Kramer <skramer@palantir.com> 1689607402 +0100

add tests and checks for negative numbers
uujY  ^https://api.github.com/repos/palantir/atlasdb/commits/29cb01242c87bacfdd759d16cc3862b14aec33d8html_urlShttps://github.com/palantir/atlasdb/commit/29cb01242c87bacfdd759d16cc3862b14aec33d8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/29cb01242c87bacfdd759d16cc3862b14aec33d8/commentsjwY  }(login
Sam-KrameridJ^2_ jsY  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jY  'https://api.github.com/users/Sam-KramerjY  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujY  }(jY  
Sam-KramerjY  J^2_ jsY  MDQ6VXNlcjYyMzg4MTQ=jY  3https://avatars.githubusercontent.com/u/6238814?v=4jY  h5jY  'https://api.github.com/users/Sam-KramerjY  https://github.com/Sam-KramerjY  1https://api.github.com/users/Sam-Kramer/followersjY  >https://api.github.com/users/Sam-Kramer/following{/other_user}jY  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jY  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jY  5https://api.github.com/users/Sam-Kramer/subscriptionsjY  ,https://api.github.com/users/Sam-Kramer/orgsjY  -https://api.github.com/users/Sam-Kramer/reposjY  8https://api.github.com/users/Sam-Kramer/events{/privacy}jY  7https://api.github.com/users/Sam-Kramer/received_eventsjY  UserjY  uparents]}(jqY  (e1bc361791e118294de932dd1be84916b6f7a2c5jY  ^https://api.github.com/repos/palantir/atlasdb/commits/e1bc361791e118294de932dd1be84916b6f7a2c5jY  Shttps://github.com/palantir/atlasdb/commit/e1bc361791e118294de932dd1be84916b6f7a2c5uastats}(totalK-	additionsK-	deletionsK ufiles](}(jqY  (53af2e9611188c97355cd99f9e4eef66033dd731filenameOatlasdb-commons/src/main/java/com/palantir/util/io/AvailabilityRequirement.javastatusmodifiedjY  K
jY  K changesK
blob_urlhttps://github.com/palantir/atlasdb/blob/29cb01242c87bacfdd759d16cc3862b14aec33d8/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirement.javaraw_urlhttps://github.com/palantir/atlasdb/raw/29cb01242c87bacfdd759d16cc3862b14aec33d8/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirement.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirement.java?ref=29cb01242c87bacfdd759d16cc3862b14aec33d8patchX  @@ -16,6 +16,9 @@
 
 package com.palantir.util.io;
 
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+
 public enum AvailabilityRequirement {
     ANY {
         @Override
@@ -33,6 +36,16 @@ protected int calculateRequired(int total) {
     protected abstract int calculateRequired(int total);
 
     public boolean satisfies(int available, int total) {
+        Preconditions.checkArgument(
+                available >= 0 && total >= 0,
+                "Available and total must be non-negative.",
+                SafeArg.of("available", available),
+                SafeArg.of("total", total));
+        Preconditions.checkArgument(
+                available <= total,
+                "Available must be less than or equal to total.",
+                SafeArg.of("available", available),
+                SafeArg.of("total", total));
         return available >= calculateRequired(total);
     }
 }u}(jqY  (4dc5a35e9ba62436566ba07b54d28595508b0febjY  Satlasdb-commons/src/test/java/com/palantir/util/io/AvailabilityRequirementTest.javajY  modifiedjY  K jY  K jY  K jY  https://github.com/palantir/atlasdb/blob/29cb01242c87bacfdd759d16cc3862b14aec33d8/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirementTest.javajY  https://github.com/palantir/atlasdb/raw/29cb01242c87bacfdd759d16cc3862b14aec33d8/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirementTest.javajY  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirementTest.java?ref=29cb01242c87bacfdd759d16cc3862b14aec33d8jY  X`  @@ -16,8 +16,10 @@
 
 package com.palantir.util.io;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.logsafe.SafeArg;
 import org.junit.Test;
 
 public final class AvailabilityRequirementTest {
@@ -53,4 +55,34 @@ public void quorumDoesNotSatisfyWhenItDoesNotHaveMajority() {
     public void quorumSatisfiesWhenHasTotal() {
         assertThat(AvailabilityRequirement.QUORUM.satisfies(10, 10)).isTrue();
     }
+
+    @Test
+    public void satisfiesThrowsWhenAvailableIsNegative() {
+        assertThatNegativeArgumentsExceptionThrowsForArguments(-1, 10);
+    }
+
+    @Test
+    public void satisfiesThrowsWhenTotalIsNegative() {
+        assertThatNegativeArgumentsExceptionThrowsForArguments(1, -10);
+    }
+
+    @Test
+    public void satisfiesThrowsWhenBothAreNegative() {
+        assertThatNegativeArgumentsExceptionThrowsForArguments(-1, -10);
+    }
+
+    @Test
+    public void satisfiesThrowsWhenAvailableIsGreaterThanTotal() {
+        assertThatLoggableExceptionThrownBy(() -> AvailabilityRequirement.ANY.satisfies(11, 10))
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("Available must be less than or equal to total.")
+                .hasExactlyArgs(SafeArg.of("available", 11), SafeArg.of("total", 10));
+    }
+
+    private static void assertThatNegativeArgumentsExceptionThrowsForArguments(int available, int total) {
+        assertThatLoggableExceptionThrownBy(() -> AvailabilityRequirement.ANY.satisfies(available, total))
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("Available and total must be non-negative.")
+                .hasExactlyArgs(SafeArg.of("available", available), SafeArg.of("total", total));
+    }
 }ueu(9d3b419972f969d98a2e09c33312f005c2725460}(sha(9d3b419972f969d98a2e09c33312f005c2725460node_idEC_kwDOAjP5fdoAKDlkM2I0MTk5NzJmOTY5ZDk4YTJlMDljMzMzMTJmMDA1YzI3MjU0NjAcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-05-18T15:38:07Zu	committer}(jY  GitHubjY  noreply@github.comjY  2023-05-18T15:38:07ZumessageaSkramer/buggify timelock (#6557)

Add a timelock service which has a high chance of losing locks.tree}(jY  (689a4501ad4caf55ba0760bc80ba1ebaf79de174url`https://api.github.com/repos/palantir/atlasdb/git/trees/689a4501ad4caf55ba0760bc80ba1ebaf79de174ujZ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9d3b419972f969d98a2e09c33312f005c2725460
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkZkZfCRBK7hj4Ov3rIwAAg78IAEAarPQGFC9vGj0F8PO/e1cg
Htso34CZ9xLtIoOYCrp0ULTmLpHss3JOvPTIRD629hLdNoBZ5FH5co/YiAnQlhL4
ah9CZ8F+E9A0JBTelZVdYpMlN7VpQchgslXQjGDDkR3GxPkQRlLcCia0mDM8VHUg
+0Um0R0aTUU6A6z54FWp8K95rmx5/T05qBiI9Vry3bohcUD2ZQQ51mb5WBVUNXNm
HSwIWTjv6FRv8YJMNZRJsRBpZuATr0Y4SKscByndfiI7Ecl7lGNQ6ZcLIIXbmT8z
WxGOOiOrcsOm0rVp3EkUv7z3QouGuPlt1oXJZacS7e4bEhsbUZZAQj6kyy+fU2Q=
=p1VO
-----END PGP SIGNATURE-----
payloadX4  tree 689a4501ad4caf55ba0760bc80ba1ebaf79de174
parent d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02
author Sam-Kramer <sam.c.kramer@gmail.com> 1684424287 +0100
committer GitHub <noreply@github.com> 1684424287 +0000

Skramer/buggify timelock (#6557)

Add a timelock service which has a high chance of losing locks.
uujZ  ^https://api.github.com/repos/palantir/atlasdb/commits/9d3b419972f969d98a2e09c33312f005c2725460html_urlShttps://github.com/palantir/atlasdb/commit/9d3b419972f969d98a2e09c33312f005c2725460comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9d3b419972f969d98a2e09c33312f005c2725460/commentsjY  }(login
Sam-KrameridJ^2_ jY  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jZ  'https://api.github.com/users/Sam-KramerjZ  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujY  }(jZ  web-flowjZ  J/jY  MDQ6VXNlcjE5ODY0NDQ3jZ  4https://avatars.githubusercontent.com/u/19864447?v=4j!Z  h5jZ  %https://api.github.com/users/web-flowjZ  https://github.com/web-flowj$Z  /https://api.github.com/users/web-flow/followersj&Z  <https://api.github.com/users/web-flow/following{/other_user}j(Z  5https://api.github.com/users/web-flow/gists{/gist_id}j*Z  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j,Z  3https://api.github.com/users/web-flow/subscriptionsj.Z  *https://api.github.com/users/web-flow/orgsj0Z  +https://api.github.com/users/web-flow/reposj2Z  6https://api.github.com/users/web-flow/events{/privacy}j4Z  5https://api.github.com/users/web-flow/received_eventsj6Z  Userj8Z  uparents]}(jY  (d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02jZ  ^https://api.github.com/repos/palantir/atlasdb/commits/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02jZ  Shttps://github.com/palantir/atlasdb/commit/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02uastats}(totalM	additionsM	deletionsKufiles](}(jY  (b4b3fdb6c8a3dbc046c441a7d9341e93b8857c14filenameKatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/Buggify.javastatusmodifiedjRZ  KjSZ  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9d3b419972f969d98a2e09c33312f005c2725460/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9d3b419972f969d98a2e09c33312f005c2725460/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.java?ref=9d3b419972f969d98a2e09c33312f005c2725460patchX  @@ -22,7 +22,7 @@
  * downstream users of this class can easily swap out their {@link BuggifyFactory} to change the behavior of their
  * class, without having to change the implementation of their class. This is useful for tests, as we can force the
  * behavior of never running the provided runnable, or always running the provided runnable.
- *
+ * <p>
  * See https://apple.github.io/foundationdb/client-testing.html for more information.
  */
 public interface Buggify {u}(jY  (bf4172a8a7e4e4576cacc81f228d95963322a41djXZ  Watlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyFactory.javajZZ  addedjRZ  KjSZ  K j\Z  Kj]Z  https://github.com/palantir/atlasdb/blob/9d3b419972f969d98a2e09c33312f005c2725460/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javaj_Z  https://github.com/palantir/atlasdb/raw/9d3b419972f969d98a2e09c33312f005c2725460/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javajaZ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.java?ref=9d3b419972f969d98a2e09c33312f005c2725460jcZ  X  @@ -0,0 +1,29 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+
+public enum NoOpBuggifyFactory implements BuggifyFactory {
+    INSTANCE;
+
+    @Override
+    public Buggify maybe(double _probability) {
+        return NoOpBuggify.INSTANCE;
+    }
+}u}(jY  (a7db5aa15eb7d98f2bcc738671a8f30fdfb489adjXZ  ^atlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactoryTest.javajZZ  modifiedjRZ  K jSZ  Kj\Z  Kj]Z  https://github.com/palantir/atlasdb/blob/9d3b419972f969d98a2e09c33312f005c2725460/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj_Z  https://github.com/palantir/atlasdb/raw/9d3b419972f969d98a2e09c33312f005c2725460/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javajaZ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.java?ref=9d3b419972f969d98a2e09c33312f005c2725460jcZ  @@ -21,7 +21,6 @@
 import org.junit.Test;
 
 public class DefaultBuggifyFactoryTest {
-
     @Test
     public void maybeReturnsDefaultWhenMaxProbability() {
         assertThat(DefaultBuggifyFactory.INSTANCE.maybe(1.0)).isSameAs(DefaultBuggify.INSTANCE);u}(jY  (df57e9fd3c6376b49fd3c1adb77db41b476aeffejXZ  datlasdb-config/src/main/java/com/palantir/atlasdb/factory/DefaultLockAndTimestampServiceFactory.javajZZ  modifiedjRZ  K&jSZ  Kj\Z  K)j]Z  https://github.com/palantir/atlasdb/blob/9d3b419972f969d98a2e09c33312f005c2725460/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javaj_Z  https://github.com/palantir/atlasdb/raw/9d3b419972f969d98a2e09c33312f005c2725460/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javajaZ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java?ref=9d3b419972f969d98a2e09c33312f005c2725460jcZ  X4  @@ -96,6 +96,7 @@
 import java.util.Set;
 import java.util.concurrent.CompletableFuture;
 import java.util.function.Consumer;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import javax.ws.rs.ClientErrorException;
 
@@ -118,6 +119,8 @@ public final class DefaultLockAndTimestampServiceFactory implements LockAndTimes
     private final Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders;
     private final Set<Schema> schemas;
 
+    private final Function<TimelockService, TimeLockClient> timelockClientFactory;
+
     public DefaultLockAndTimestampServiceFactory(
             MetricsManager metricsManager,
             AtlasDbConfig config,
@@ -132,6 +135,38 @@ public DefaultLockAndTimestampServiceFactory(
             Optional<TimeLockFeedbackBackgroundTask> timeLockFeedbackBackgroundTask,
             Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders,
             Set<Schema> schemas) {
+        this(
+                metricsManager,
+                config,
+                runtimeConfig,
+                registrar,
+                lock,
+                time,
+                invalidator,
+                userAgent,
+                lockDiagnosticComponents,
+                reloadingFactory,
+                timeLockFeedbackBackgroundTask,
+                timelockRequestBatcherProviders,
+                schemas,
+                TimeLockClient::createDefault);
+    }
+
+    public DefaultLockAndTimestampServiceFactory(
+            MetricsManager metricsManager,
+            AtlasDbConfig config,
+            Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
+            Consumer<Object> registrar,
+            Supplier<LockService> lock,
+            Supplier<ManagedTimestampService> time,
+            TimestampStoreInvalidator invalidator,
+            UserAgent userAgent,
+            Optional<LockDiagnosticComponents> lockDiagnosticComponents,
+            ReloadingFactory reloadingFactory,
+            Optional<TimeLockFeedbackBackgroundTask> timeLockFeedbackBackgroundTask,
+            Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders,
+            Set<Schema> schemas,
+            Function<TimelockService, TimeLockClient> timelockClientFactory) {
         this.metricsManager = metricsManager;
         this.config = config;
         this.runtimeConfig = runtimeConfig;
@@ -145,6 +180,7 @@ public DefaultLockAndTimestampServiceFactory(
         this.timeLockFeedbackBackgroundTask = timeLockFeedbackBackgroundTask;
         this.timelockRequestBatcherProviders = timelockRequestBatcherProviders;
         this.schemas = schemas;
+        this.timelockClientFactory = timelockClientFactory;
     }
 
     @Override
@@ -166,9 +202,8 @@ public LockAndTimestampServices createLockAndTimestampServices() {
         return withMetrics(metricsManager, withRefreshingLockService(lockAndTimestampServices));
     }
 
-    private static LockAndTimestampServices withRefreshingLockService(
-            LockAndTimestampServices lockAndTimestampServices) {
-        TimeLockClient timeLockClient = TimeLockClient.createDefault(lockAndTimestampServices.timelock());
+    private LockAndTimestampServices withRefreshingLockService(LockAndTimestampServices lockAndTimestampServices) {
+        TimeLockClient timeLockClient = timelockClientFactory.apply(lockAndTimestampServices.timelock());
         ProfilingTimelockService profilingService = ProfilingTimelockService.create(timeLockClient);
         return ImmutableLockAndTimestampServices.builder()
                 .from(lockAndTimestampServices)u}(jY  (37473508e06c194b315e01d89ff08da1a5152705jXZ  Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javajZZ  modifiedjRZ  KjSZ  Kj\Z  K	j]Z  https://github.com/palantir/atlasdb/blob/9d3b419972f969d98a2e09c33312f005c2725460/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj_Z  https://github.com/palantir/atlasdb/raw/9d3b419972f969d98a2e09c33312f005c2725460/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajaZ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=9d3b419972f969d98a2e09c33312f005c2725460jcZ  X+  @@ -129,6 +129,7 @@
 import com.palantir.lock.client.TimeLockClient;
 import com.palantir.lock.client.metrics.TimeLockFeedbackBackgroundTask;
 import com.palantir.lock.impl.LockServiceImpl;
+import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -198,6 +199,11 @@ boolean allSafeForLogging() {
         return false;
     }
 
+    @Value.Default
+    Function<TimelockService, TimeLockClient> defaultTimelockClientFactory() {
+        return TimeLockClient::createDefault;
+    }
+
     abstract Optional<LockAndTimestampServiceFactory> lockAndTimestampServiceFactory();
 
     abstract UserAgent userAgent();
@@ -385,7 +391,8 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                         reloadingFactory(),
                         timeLockFeedbackBackgroundTask,
                         timelockRequestBatcherProviders(),
-                        schemas()));
+                        schemas(),
+                        defaultTimelockClientFactory()));
         LockAndTimestampServices lockAndTimestampServices = factory.createLockAndTimestampServices();
         adapter.setTimestampService(lockAndTimestampServices.managedTimestampService());
 u}(jY  (a1646b6ee093076187da250847d896517a6e93a1jXZ  $atlasdb-workload-server/build.gradlejZZ  modifiedjRZ  KjSZ  K j\Z  Kj]Z  xhttps://github.com/palantir/atlasdb/blob/9d3b419972f969d98a2e09c33312f005c2725460/atlasdb-workload-server%2Fbuild.gradlej_Z  whttps://github.com/palantir/atlasdb/raw/9d3b419972f969d98a2e09c33312f005c2725460/atlasdb-workload-server%2Fbuild.gradlejaZ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=9d3b419972f969d98a2e09c33312f005c2725460jcZ  X  @@ -12,6 +12,8 @@ dependencies {
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-config')
     implementation project(':atlasdb-impl-shared')
+    implementation project(':lock-api')
+    implementation project(':lock-impl')
 
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'u}(jY  (58de979ef6729009e31e1f6cca6d03970cc101b3jXZ  matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javajZZ  modifiedjRZ  KjSZ  K j\Z  Kj]Z  https://github.com/palantir/atlasdb/blob/9d3b419972f969d98a2e09c33312f005c2725460/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj_Z  https://github.com/palantir/atlasdb/raw/9d3b419972f969d98a2e09c33312f005c2725460/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javajaZ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=9d3b419972f969d98a2e09c33312f005c2725460jcZ  Xm  @@ -28,6 +28,8 @@
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.conjure.java.api.config.service.UserAgent;
+import com.palantir.lock.client.TimeLockClient;
+import com.palantir.lock.client.UnreliableTimeLockService;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
@@ -41,6 +43,9 @@
 
 public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory<InteractiveTransactionStore> {
 
+    // Purposefully override the lock refresh interval to increase our chances of losing locks.
+    private static final int LOCK_REFRESH_INTERVAL_MS = 200;
+
     private final TransactionManager transactionManager;
     private final Optional<Namespace> maybeNamespace;
 
@@ -138,6 +143,8 @@ public static AtlasDbTransactionStoreFactory createFromConfig(
                 .globalMetricsRegistry(metricsManager.getRegistry())
                 .globalTaggedMetricRegistry(metricsManager.getTaggedRegistry())
                 .runtimeConfigSupplier(atlasDbRuntimeConfig)
+                .defaultTimelockClientFactory(lockService -> TimeLockClient.createDefault(
+                        UnreliableTimeLockService.create(lockService), LOCK_REFRESH_INTERVAL_MS))
                 .build()
                 .serializable();
 u}(jY  (c201a75037718ee45a6d24add55ec4992f91ef88jXZ  lock-api/build.gradlejZZ  modifiedjRZ  KjSZ  K j\Z  Kj]Z  ihttps://github.com/palantir/atlasdb/blob/9d3b419972f969d98a2e09c33312f005c2725460/lock-api%2Fbuild.gradlej_Z  hhttps://github.com/palantir/atlasdb/raw/9d3b419972f969d98a2e09c33312f005c2725460/lock-api%2Fbuild.gradlejaZ  {https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fbuild.gradle?ref=9d3b419972f969d98a2e09c33312f005c2725460jcZ  Xq  @@ -19,6 +19,7 @@ dependencies {
 
     implementation project(":atlasdb-autobatch")
     implementation project(":atlasdb-commons")
+    implementation project(":atlasdb-buggify")
     implementation 'jakarta.ws.rs:jakarta.ws.rs-api'
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-databind'u}(jY  (fd5b31c1b0e6208a7f9308a03fa062d1b4247527jXZ  Clock-api/src/main/java/com/palantir/lock/client/TimeLockClient.javajZZ  modifiedjRZ  KjSZ  K j\Z  Kj]Z  https://github.com/palantir/atlasdb/blob/9d3b419972f969d98a2e09c33312f005c2725460/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.javaj_Z  https://github.com/palantir/atlasdb/raw/9d3b419972f969d98a2e09c33312f005c2725460/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.javajaZ  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.java?ref=9d3b419972f969d98a2e09c33312f005c2725460jcZ  XZ  @@ -62,6 +62,17 @@ public static TimeLockClient createDefault(TimelockService timelockService) {
                 timelockService, timestampService, createLockRefresher(timelockService), asyncUnlocker);
     }
 
+    public static TimeLockClient createDefault(TimelockService timelockService, long lockRefreshIntervalMillis) {
+        AsyncTimeLockUnlocker asyncUnlocker = AsyncTimeLockUnlocker.create(timelockService);
+        RequestBatchingTimestampService timestampService =
+                RequestBatchingTimestampService.create(new TimelockServiceErrorDecorator(timelockService));
+        return new TimeLockClient(
+                timelockService,
+                timestampService,
+                createLockRefresher(timelockService, lockRefreshIntervalMillis),
+                asyncUnlocker);
+    }
+
     public static TimeLockClient withSynchronousUnlocker(TimelockService timelockService) {
         CloseableTimestampService timestampService = new TimelockServiceErrorDecorator(timelockService);
         return new TimeLockClient(
@@ -206,6 +217,12 @@ private static LockRefresher<LockToken> createLockRefresher(TimelockService time
         return new LockRefresher<>(refreshExecutor, lockTokenRefresher, REFRESH_INTERVAL_MILLIS);
     }
 
+    private static LockRefresher<LockToken> createLockRefresher(
+            TimelockService timelockService, long lockRefreshIntervalMillis) {
+        LockLeaseRefresher<LockToken> lockTokenRefresher = timelockService::refreshLockLeases;
+        return new LockRefresher<>(refreshExecutor, lockTokenRefresher, lockRefreshIntervalMillis);
+    }
+
     private static ScheduledExecutorService createSingleThreadScheduledExecutor(String operation) {
         return PTExecutors.newSingleThreadScheduledExecutor(
                 new NamedThreadFactory(TimeLockClient.class.getSimpleName() + "-" + operation, true));u      }(jY  (f5eafd4efa22db15cffb486b29e1a8e16e9cfbc4jXZ  Nlock-api/src/main/java/com/palantir/lock/client/UnreliableTimeLockService.javajZZ  addedjRZ  KjSZ  K j\Z  Kj]Z  https://github.com/palantir/atlasdb/blob/9d3b419972f969d98a2e09c33312f005c2725460/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javaj_Z  https://github.com/palantir/atlasdb/raw/9d3b419972f969d98a2e09c33312f005c2725460/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javajaZ  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.java?ref=9d3b419972f969d98a2e09c33312f005c2725460jcZ  Xn  @@ -0,0 +1,147 @@
+/*
+ * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.palantir.lock.client;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.Sets;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
+import com.palantir.lock.v2.ClientLockingOptions;
+import com.palantir.lock.v2.LockImmutableTimestampResponse;
+import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.v2.LockResponse;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.v2.StartIdentifiedAtlasDbTransactionResponse;
+import com.palantir.lock.v2.TimelockService;
+import com.palantir.lock.v2.WaitForLocksRequest;
+import com.palantir.lock.v2.WaitForLocksResponse;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.timestamp.TimestampRange;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+
+/**
+ * A version of timelock service that has a chance to randomly lose locks during refresh or immediately after
+ * acquiring. This is useful for testing the behavior of clients when locks are lost.
+ */
+public final class UnreliableTimeLockService implements TimelockService {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(UnreliableTimeLockService.class);
+
+    private final TimelockService delegate;
+    private final BuggifyFactory buggify;
+
+    public static UnreliableTimeLockService create(TimelockService timelockService) {
+        return new UnreliableTimeLockService(timelockService, DefaultBuggifyFactory.INSTANCE);
+    }
+
+    @VisibleForTesting
+    UnreliableTimeLockService(TimelockService delegate, BuggifyFactory buggifyFactory) {
+        this.delegate = delegate;
+        this.buggify = buggifyFactory;
+    }
+
+    @Override
+    public boolean isInitialized() {
+        return delegate.isInitialized();
+    }
+
+    @Override
+    public long getFreshTimestamp() {
+        return delegate.getFreshTimestamp();
+    }
+
+    @Override
+    public long getCommitTimestamp(long startTs, LockToken commitLocksToken) {
+        return delegate.getCommitTimestamp(startTs, commitLocksToken);
+    }
+
+    @Override
+    public TimestampRange getFreshTimestamps(int numTimestampsRequested) {
+        return delegate.getFreshTimestamps(numTimestampsRequested);
+    }
+
+    @Override
+    public LockImmutableTimestampResponse lockImmutableTimestamp() {
+        return delegate.lockImmutableTimestamp();
+    }
+
+    @Override
+    public List<StartIdentifiedAtlasDbTransactionResponse> startIdentifiedAtlasDbTransactionBatch(int count) {
+        return delegate.startIdentifiedAtlasDbTransactionBatch(count);
+    }
+
+    @Override
+    public long getImmutableTimestamp() {
+        return delegate.getImmutableTimestamp();
+    }
+
+    @Override
+    public LockResponse lock(LockRequest request) {
+        LockResponse response = delegate.lock(request);
+        buggify.maybe(0.05).run(() -> {
+            log.info("BUGGIFY: Unlocking lock token {} after acquiring", SafeArg.of("token", response.getToken()));
+            delegate.unlock(Set.of(response.getToken()));
+        });
+        return response;
+    }
+
+    @Override
+    public LockResponse lock(LockRequest lockRequest, ClientLockingOptions options) {
+        LockResponse response = delegate.lock(lockRequest, options);
+        buggify.maybe(0.05).run(() -> {
+            log.info("BUGGIFY: Unlocking lock token {} after acquiring", SafeArg.of("token", response.getToken()));
+            delegate.unlock(Set.of(response.getToken()));
+        });
+        return response;
+    }
+
+    @Override
+    public WaitForLocksResponse waitForLocks(WaitForLocksRequest request) {
+        return delegate.waitForLocks(request);
+    }
+
+    @Override
+    public Set<LockToken> refreshLockLeases(Set<LockToken> tokens) {
+        Set<LockToken> tokensToRefresh = tokens.stream()
+                .filter(_token -> !buggify.maybe(0.01).asBoolean())
+                .collect(Collectors.toSet());
+        Set<LockToken> tokensToUnlock = Sets.difference(tokens, tokensToRefresh);
+        if (!tokensToUnlock.isEmpty()) {
+            log.info("BUGGIFY: Unlocking tokens on refresh: {}", SafeArg.of("tokens", tokensToUnlock));
+            delegate.unlock(tokensToUnlock);
+        }
+        return delegate.refreshLockLeases(tokensToRefresh);
+    }
+
+    @Override
+    public Set<LockToken> unlock(Set<LockToken> tokens) {
+        return delegate.unlock(tokens);
+    }
+
+    @Override
+    public void tryUnlock(Set<LockToken> tokens) {
+        delegate.tryUnlock(tokens);
+    }
+
+    @Override
+    public long currentTimeMillis() {
+        return delegate.currentTimeMillis();
+    }
+}u}(jY  (fcb51a9d2957bb45c95e4bf848d1dd2da8eb2547jXZ  Qlock-api/src/test/java/com/palantir/lock/client/UnreliableTimelockClientTest.javajZZ  addedjRZ  KjSZ  K j\Z  Kj]Z  https://github.com/palantir/atlasdb/blob/9d3b419972f969d98a2e09c33312f005c2725460/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimelockClientTest.javaj_Z  https://github.com/palantir/atlasdb/raw/9d3b419972f969d98a2e09c33312f005c2725460/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimelockClientTest.javajaZ  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimelockClientTest.java?ref=9d3b419972f969d98a2e09c33312f005c2725460jcZ  Xd  @@ -0,0 +1,179 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.client;
+
+import static org.mockito.ArgumentMatchers.anyDouble;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
+
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggify;
+import com.palantir.atlasdb.buggify.impl.NoOpBuggify;
+import com.palantir.atlasdb.buggify.impl.NoOpBuggifyFactory;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.v2.ClientLockingOptions;
+import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.v2.LockResponse;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.v2.WaitForLocksRequest;
+import java.util.LinkedHashSet;
+import java.util.List;
+import java.util.Set;
+import java.util.UUID;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class UnreliableTimelockClientTest {
+
+    private static final LockToken LOCK_TOKEN = LockToken.of(UUID.fromString("00000000-0000-0000-0000-000000000000"));
+
+    private static final LockToken LOCK_TOKEN_2 = LockToken.of(UUID.fromString("00000000-0000-0000-0000-000000000001"));
+    private static final LockDescriptor LOCK_DESCRIPTOR = StringLockDescriptor.of("foo");
+    private static final LockRequest LOCK_REQUEST = LockRequest.of(Set.of(LOCK_DESCRIPTOR), 1);
+
+    @Mock
+    private TimeLockClient timeLockClient;
+
+    private UnreliableTimeLockService unreliableTimeLockService;
+
+    @Before
+    public void before() {
+        unreliableTimeLockService = new UnreliableTimeLockService(timeLockClient, NoOpBuggifyFactory.INSTANCE);
+    }
+
+    @Test
+    public void verifyIsInitializedCallsDelegate() {
+        unreliableTimeLockService.isInitialized();
+        verify(timeLockClient).isInitialized();
+    }
+
+    @Test
+    public void verifyGetFreshTimestampCallsDelegate() {
+        unreliableTimeLockService.getFreshTimestamp();
+        verify(timeLockClient).getFreshTimestamp();
+    }
+
+    @Test
+    public void verifyGetCommitTimestampsCallsDelegate() {
+        unreliableTimeLockService.getCommitTimestamp(1, LOCK_TOKEN);
+        verify(timeLockClient).getCommitTimestamp(1, LOCK_TOKEN);
+    }
+
+    @Test
+    public void verifyGetFreshTimestampsCallsDelegate() {
+        unreliableTimeLockService.getFreshTimestamps(1);
+        verify(timeLockClient).getFreshTimestamps(1);
+    }
+
+    @Test
+    public void verifyLockImmutableTimestampCallsDelegate() {
+        unreliableTimeLockService.lockImmutableTimestamp();
+        verify(timeLockClient).lockImmutableTimestamp();
+    }
+
+    @Test
+    public void verifyStartIdentifiedAtlasDbTransactionCallsDelegate() {
+        unreliableTimeLockService.startIdentifiedAtlasDbTransactionBatch(1);
+        verify(timeLockClient).startIdentifiedAtlasDbTransactionBatch(1);
+    }
+
+    @Test
+    public void verifyGetImmutableTimestampCallsDelegate() {
+        unreliableTimeLockService.getImmutableTimestamp();
+        verify(timeLockClient).getImmutableTimestamp();
+    }
+
+    @Test
+    public void verifyLockCallsDelegate() {
+        unreliableTimeLockService.lock(LOCK_REQUEST);
+        verify(timeLockClient).lock(LOCK_REQUEST);
+    }
+
+    @Test
+    public void lockMayUnlockImmediately() {
+        when(timeLockClient.lock(LOCK_REQUEST)).thenReturn(LockResponse.successful(LOCK_TOKEN));
+        new UnreliableTimeLockService(timeLockClient, createAlwaysBuggyFactory()).lock(LOCK_REQUEST);
+        verify(timeLockClient).unlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void lockWithOptionMayUnlockImmediately() {
+        ClientLockingOptions lockingOptions = ClientLockingOptions.getDefault();
+        when(timeLockClient.lock(LOCK_REQUEST, lockingOptions)).thenReturn(LockResponse.successful(LOCK_TOKEN));
+        new UnreliableTimeLockService(timeLockClient, createAlwaysBuggyFactory()).lock(LOCK_REQUEST, lockingOptions);
+        verify(timeLockClient).unlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyLockWithOptionsCallsDelegate() {
+        unreliableTimeLockService.lock(LOCK_REQUEST, ClientLockingOptions.getDefault());
+        verify(timeLockClient).lock(LOCK_REQUEST, ClientLockingOptions.getDefault());
+    }
+
+    @Test
+    public void verifyWaitForLocksCallsDelegate() {
+        WaitForLocksRequest waitForLocksRequest = WaitForLocksRequest.of(Set.of(LOCK_DESCRIPTOR), 1);
+        unreliableTimeLockService.waitForLocks(waitForLocksRequest);
+        verify(timeLockClient).waitForLocks(waitForLocksRequest);
+    }
+
+    @Test
+    public void refreshLockLeasesMaybeUnlocksLocks() {
+        BuggifyFactory factory = mock(BuggifyFactory.class);
+        when(factory.maybe(anyDouble())).thenReturn(DefaultBuggify.INSTANCE, NoOpBuggify.INSTANCE);
+        new UnreliableTimeLockService(timeLockClient, factory)
+                .refreshLockLeases(new LinkedHashSet<>(List.of(LOCK_TOKEN, LOCK_TOKEN_2)));
+        verify(timeLockClient).refreshLockLeases(Set.of(LOCK_TOKEN_2));
+        verify(timeLockClient).unlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyRefreshLockLeasesCallsDelegate() {
+        unreliableTimeLockService.refreshLockLeases(Set.of(LOCK_TOKEN));
+        verify(timeLockClient).refreshLockLeases(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyUnlockCallsDelegate() {
+        unreliableTimeLockService.unlock(Set.of(LOCK_TOKEN));
+        verify(timeLockClient).unlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyTryUnlockCallsDelegate() {
+        unreliableTimeLockService.tryUnlock(Set.of(LOCK_TOKEN));
+        verify(timeLockClient).tryUnlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyCurrentTimeMillisCallsDelegate() {
+        unreliableTimeLockService.currentTimeMillis();
+        verify(timeLockClient).currentTimeMillis();
+    }
+
+    private static BuggifyFactory createAlwaysBuggyFactory() {
+        BuggifyFactory factory = mock(BuggifyFactory.class);
+        when(factory.maybe(anyDouble())).thenReturn(DefaultBuggify.INSTANCE);
+        return factory;
+    }
+}ueu(d455e35c787d975611982d8d7e422c34f45cae43}(sha(d455e35c787d975611982d8d7e422c34f45cae43node_idEC_kwDOAjP5fdoAKGQ0NTVlMzVjNzg3ZDk3NTYxMTk4MmQ4ZDdlNDIyYzM0ZjQ1Y2FlNDMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-16T10:16:45Zu	committer}(jZ  Jeremy KongjZ  jkong@palantir.comjZ  2023-06-16T10:16:45Zumessage
some hintstree}(jZ  (b6678cc5fbd4a049fd7665edbd86ebd85f3dd17burl`https://api.github.com/repos/palantir/atlasdb/git/trees/b6678cc5fbd4a049fd7665edbd86ebd85f3dd17bujZ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d455e35c787d975611982d8d7e422c34f45cae43
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSMNo0ACgkQTLdFKain
zjx+zQgAsW+PDHT/YWaGhqk1VTsGBxRoyT2KQ/WGMwN8X7HUO/DBbcxLSo4LVHiF
6tK1D/TCDxtoe2ODERTVCRAQLcMQwwADGAMb4KhTb7KenrSUggHNdnNokNrlyqUQ
IuCXUWtcWieioqJhnO78LJEdZQFoamO4VJbVhK2Jf/KafNCrVgOTu+YUFUK9PzGh
/sDIhe7T83nhL+D/9O5Y1/GawvBeyZeohQt5mr0VidwsXebs2GeR6LPJXb5l/ygG
BcBRX1HMui2o259/E9hRMDtAgaZ5uzmi6YDafLf2Lk+8xhyw66yNA+w63SAxkt+t
5dwHXSU3vsVYidNjwirDxD/qRx8MRw==
=34K2
-----END PGP SIGNATURE-----payloadtree b6678cc5fbd4a049fd7665edbd86ebd85f3dd17b
parent 0005592fb848f09b00557aa1ec207cd7eea3cee5
author Jeremy Kong <jkong@palantir.com> 1686910605 +0800
committer Jeremy Kong <jkong@palantir.com> 1686910605 +0800

some hints
uujZ  ^https://api.github.com/repos/palantir/atlasdb/commits/d455e35c787d975611982d8d7e422c34f45cae43html_urlShttps://github.com/palantir/atlasdb/commit/d455e35c787d975611982d8d7e422c34f45cae43comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d455e35c787d975611982d8d7e422c34f45cae43/commentsjZ  }(login
jeremyk-91idJZ jZ  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jZ  'https://api.github.com/users/jeremyk-91jZ  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujZ  }(jZ  
jeremyk-91jZ  JZ jZ  MDQ6VXNlcjU5NTU1MTA=jZ  3https://avatars.githubusercontent.com/u/5955510?v=4jZ  h5jZ  'https://api.github.com/users/jeremyk-91jZ  https://github.com/jeremyk-91jZ  1https://api.github.com/users/jeremyk-91/followersjZ  >https://api.github.com/users/jeremyk-91/following{/other_user}jZ  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jZ  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jZ  5https://api.github.com/users/jeremyk-91/subscriptionsjZ  ,https://api.github.com/users/jeremyk-91/orgsjZ  -https://api.github.com/users/jeremyk-91/reposjZ  8https://api.github.com/users/jeremyk-91/events{/privacy}jZ  7https://api.github.com/users/jeremyk-91/received_eventsjZ  UserjZ  uparents]}(jZ  (0005592fb848f09b00557aa1ec207cd7eea3cee5jZ  ^https://api.github.com/repos/palantir/atlasdb/commits/0005592fb848f09b00557aa1ec207cd7eea3cee5jZ  Shttps://github.com/palantir/atlasdb/commit/0005592fb848f09b00557aa1ec207cd7eea3cee5uastats}(totalK	additionsK	deletionsKufiles](}(jZ  (1764215d3c7a2566095ffc1c7e8c9d205812d7eafilenameTatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlstatusmodifiedj[  Kj[  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/d455e35c787d975611982d8d7e422c34f45cae43/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/d455e35c787d975611982d8d7e422c34f45cae43/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=d455e35c787d975611982d8d7e422c34f45cae43patch@@ -45,7 +45,7 @@ install:
     tableConfiguration:
       tableName: two_cells_test
       isolationLevel: SERIALIZABLE
-    iterationCount: 100
+    iterationCount: 3
     type: single-row-two-cells
   ringConfig:
     tableConfiguration:u}(jZ  (23f59634bf9f394ab6ee77a4b9069ead9cfc28fdj[  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javaj![  modifiedj[  Kj[  Kj#[  Kj$[  https://github.com/palantir/atlasdb/blob/d455e35c787d975611982d8d7e422c34f45cae43/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj&[  https://github.com/palantir/atlasdb/raw/d455e35c787d975611982d8d7e422c34f45cae43/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj([  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=d455e35c787d975611982d8d7e422c34f45cae43j*[  XY  @@ -73,7 +73,7 @@ public static Workflow createSingleRowTwoCell(
                         singleRowTwoCellsWorkflowConfiguration
                                 .tableConfiguration()
                                 .tableName(),
-                        FIRST_CELL,
+                        SECOND_CELL,
                         1)));
     }
 ueu(e7c36e9bc08f35736688903b36d22f3a8c001d16}(sha(e7c36e9bc08f35736688903b36d22f3a8c001d16node_idEC_kwDOAjP5fdoAKGU3YzM2ZTliYzA4ZjM1NzM2Njg4OTAzYjM2ZDIyZjNhOGMwMDFkMTYcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-04-14T15:57:48Zu	committer}(j>[  GitHubj@[  noreply@github.comjB[  2023-04-14T15:57:48ZumessageCheck for serializable invariant for the single row two cells workflow (#6526)

Check for serializable invariant violations for the single row two cells workflow.tree}(j6[  (2fac9008858111277ccbae349cdf89079586ed0durl`https://api.github.com/repos/palantir/atlasdb/git/trees/2fac9008858111277ccbae349cdf89079586ed0dujN[  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e7c36e9bc08f35736688903b36d22f3a8c001d16
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkOXf9CRBK7hj4Ov3rIwAAZCYIAGsi6kn/yj04l6HUXH8wq+dI
jjvZl9LCHSVg2zeKAbGz5YvsvOAFr91GqpvakruU6LKX1WjzaqJSbfeVhJY4RYn/
/lX46ppz8fLL8xFFZfoFsyUAVJdXZZ4V9eXe8kmMvtAAOLTPtQt+mZMtkbEUSqkn
y7jPXpFkcg8Txtkpr3BIlEtBHCwNwtpeaB6wJERDnKWICsQSCm3qecbt5vRmTyPk
MU9QUtCJPysP9c1hBXA7QtM9HrzzymNUN4UEkKpr4k0hrkgG1PIgo8cwdZe7uebh
P412VajjU7zaZM1HUeeig5F4zjph7EDg/Zhsty8jFUsI1RJ7yKs7S4iQnOVcea4=
=rZI/
-----END PGP SIGNATURE-----
payloadXv  tree 2fac9008858111277ccbae349cdf89079586ed0d
parent 372b69d1ce52b60f2c3efe8078446da266e3221b
author Sam-Kramer <sam.c.kramer@gmail.com> 1681487868 +0100
committer GitHub <noreply@github.com> 1681487868 +0000

Check for serializable invariant for the single row two cells workflow (#6526)

Check for serializable invariant violations for the single row two cells workflow. 
uujN[  ^https://api.github.com/repos/palantir/atlasdb/commits/e7c36e9bc08f35736688903b36d22f3a8c001d16html_urlShttps://github.com/palantir/atlasdb/commit/e7c36e9bc08f35736688903b36d22f3a8c001d16comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e7c36e9bc08f35736688903b36d22f3a8c001d16/commentsj<[  }(login
Sam-KrameridJ^2_ j8[  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jN[  'https://api.github.com/users/Sam-Kramerj\[  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujD[  }(ja[  web-flowjc[  J/j8[  MDQ6VXNlcjE5ODY0NDQ3je[  4https://avatars.githubusercontent.com/u/19864447?v=4jg[  h5jN[  %https://api.github.com/users/web-flowj\[  https://github.com/web-flowjj[  /https://api.github.com/users/web-flow/followersjl[  <https://api.github.com/users/web-flow/following{/other_user}jn[  5https://api.github.com/users/web-flow/gists{/gist_id}jp[  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jr[  3https://api.github.com/users/web-flow/subscriptionsjt[  *https://api.github.com/users/web-flow/orgsjv[  +https://api.github.com/users/web-flow/reposjx[  6https://api.github.com/users/web-flow/events{/privacy}jz[  5https://api.github.com/users/web-flow/received_eventsj|[  Userj~[  uparents]}(j6[  (372b69d1ce52b60f2c3efe8078446da266e3221bjN[  ^https://api.github.com/repos/palantir/atlasdb/commits/372b69d1ce52b60f2c3efe8078446da266e3221bj\[  Shttps://github.com/palantir/atlasdb/commit/372b69d1ce52b60f2c3efe8078446da266e3221buastats}(totalKw	additionsKm	deletionsK
ufiles](}(j6[  (b870e40056d44cb7c1e844730a97bc94774a820afilenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj[  Kj[  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e7c36e9bc08f35736688903b36d22f3a8c001d16/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e7c36e9bc08f35736688903b36d22f3a8c001d16/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=e7c36e9bc08f35736688903b36d22f3a8c001d16patchX7  @@ -25,7 +25,8 @@
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
-import com.palantir.atlasdb.workload.invariant.DurableWritesMetricInvariantReporter;
+import com.palantir.atlasdb.workload.invariant.DurableWritesInvariantMetricReporter;
+import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
 import com.palantir.atlasdb.workload.runner.AntithesisWorkflowRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
@@ -104,9 +105,11 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 Set.of()),
                         workflowConfig,
                         MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)),
-                List.of(new DurableWritesMetricInvariantReporter(
-                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
-                        DurableWritesMetrics.of(taggedMetricRegistry))));
+                List.of(
+                        new DurableWritesInvariantMetricReporter(
+                                SingleRowTwoCellsWorkflows.class.getSimpleName(),
+                                DurableWritesMetrics.of(taggedMetricRegistry)),
+                        SerializableInvariantLogReporter.INSTANCE));
         log.info("antithesis: terminate");
 
         workflowsRanLatch.countDown();u}(j6[  (79aa8cfd57984c9bdea2aaf3249996fe3fa9f4d7j[  watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporter.javaj[  renamedj[  Kj[  Kj[  Kj[  https://github.com/palantir/atlasdb/blob/e7c36e9bc08f35736688903b36d22f3a8c001d16/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.javaj[  https://github.com/palantir/atlasdb/raw/e7c36e9bc08f35736688903b36d22f3a8c001d16/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.javaj[  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.java?ref=e7c36e9bc08f35736688903b36d22f3a8c001d16j[  X  @@ -24,15 +24,15 @@
 import java.util.Map;
 import java.util.function.Consumer;
 
-public final class DurableWritesMetricInvariantReporter
+public final class DurableWritesInvariantMetricReporter
         implements InvariantReporter<Map<TableAndWorkloadCell, MismatchedValue>> {
 
-    private static final SafeLogger log = SafeLoggerFactory.get(DurableWritesMetricInvariantReporter.class);
+    private static final SafeLogger log = SafeLoggerFactory.get(DurableWritesInvariantMetricReporter.class);
 
     private final String workflow;
     private final DurableWritesMetrics durableWritesMetrics;
 
-    public DurableWritesMetricInvariantReporter(String workflow, DurableWritesMetrics durableWritesMetrics) {
+    public DurableWritesInvariantMetricReporter(String workflow, DurableWritesMetrics durableWritesMetrics) {
         this.workflow = workflow;
         this.durableWritesMetrics = durableWritesMetrics;
     }previous_filenamewatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporter.javau}(j6[  (0f489a908a062dc89f3e2a38f2be28d193d61511j[  satlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporter.javaj[  addedj[  K-j[  K j[  K-j[  https://github.com/palantir/atlasdb/blob/e7c36e9bc08f35736688903b36d22f3a8c001d16/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.javaj[  https://github.com/palantir/atlasdb/raw/e7c36e9bc08f35736688903b36d22f3a8c001d16/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.javaj[  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.java?ref=e7c36e9bc08f35736688903b36d22f3a8c001d16j[  X>  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.function.Consumer;
+
+public enum SerializableInvariantLogReporter implements InvariantReporter<List<InvalidWitnessedTransaction>> {
+    INSTANCE;
+    private static final SafeLogger log = SafeLoggerFactory.get(SerializableInvariantLogReporter.class);
+
+    @Override
+    public Invariant<List<InvalidWitnessedTransaction>> invariant() {
+        return SerializableInvariant.INSTANCE;
+    }
+
+    @Override
+    public Consumer<List<InvalidWitnessedTransaction>> consumer() {
+        return invalidWitnessedTransactions -> {
+            if (!invalidWitnessedTransactions.isEmpty()) {
+                log.error(
+                        "Detected transactions that violated our serializable isolation invariant {}",
+                        SafeArg.of("invalidWitnessedTransactions", invalidWitnessedTransactions));
+            }
+        };
+    }
+}u}(j6[  (95f6220e03fd5f14e9922f8b70989e0b8dad5a69j[  {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporterTest.javaj[  renamedj[  Kj[  Kj[  Kj[  https://github.com/palantir/atlasdb/blob/e7c36e9bc08f35736688903b36d22f3a8c001d16/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj[  https://github.com/palantir/atlasdb/raw/e7c36e9bc08f35736688903b36d22f3a8c001d16/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj[  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.java?ref=e7c36e9bc08f35736688903b36d22f3a8c001d16j[  X  @@ -37,15 +37,15 @@
 import java.util.Set;
 import org.junit.Test;
 
-public final class DurableWritesMetricInvariantReporterTest {
+public final class DurableWritesInvariantMetricReporterTest {
 
     private final TaggedMetricRegistry taggedMetricRegistry = new DefaultTaggedMetricRegistry();
     private final DurableWritesMetrics metrics = DurableWritesMetrics.of(taggedMetricRegistry);
 
     @Test
     public void runIncreasesMetricsIfViolationsFound() {
-        DurableWritesMetricInvariantReporter reporter =
-                new DurableWritesMetricInvariantReporter(WorkloadTestHelpers.WORKFLOW, metrics);
+        DurableWritesInvariantMetricReporter reporter =
+                new DurableWritesInvariantMetricReporter(WorkloadTestHelpers.WORKFLOW, metrics);
         AtlasDbTransactionStoreFactory factory = new AtlasDbTransactionStoreFactory(
                 TransactionManagers.createInMemory(Set.of()), Optional.of("keyspace"));
         TransactionStore store = factory.create(j[  {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporterTest.javau}(j6[  (61f1a620b29aa305c11b38dca9efc4bfd03fa771j[  watlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporterTest.javaj[  addedj[  K3j[  K j[  K3j[  https://github.com/palantir/atlasdb/blob/e7c36e9bc08f35736688903b36d22f3a8c001d16/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj[  https://github.com/palantir/atlasdb/raw/e7c36e9bc08f35736688903b36d22f3a8c001d16/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj[  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.java?ref=e7c36e9bc08f35736688903b36d22f3a8c001d16j[  XC  @@ -0,0 +1,51 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import java.util.List;
+import org.junit.Test;
+
+public class SerializableInvariantLogReporterTest {
+    @Test
+    public void invariantIsSerializable() {
+        assertThat(SerializableInvariantLogReporter.INSTANCE.invariant()).isEqualTo(SerializableInvariant.INSTANCE);
+    }
+
+    @Test
+    public void consumerDoesNotThrowWhenAcceptingViolations() {
+        assertThatCode(() -> SerializableInvariantLogReporter.INSTANCE
+                        .consumer()
+                        .accept(List.of(InvalidWitnessedTransaction.of(
+                                ImmutableWitnessedTransaction.builder()
+                                        .startTimestamp(1)
+                                        .build(),
+                                List.of()))))
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void consumerDoesNotThrowWhenAcceptingNoViolations() {
+        assertThatCode(() ->
+                        SerializableInvariantLogReporter.INSTANCE.consumer().accept(List.of()))
+                .doesNotThrowAnyException();
+    }
+}ueu(a684ef6513438aecd84a2ae28ae98d798a0cb04b}(sha(a684ef6513438aecd84a2ae28ae98d798a0cb04bnode_idEC_kwDOAjP5fdoAKGE2ODRlZjY1MTM0MzhhZWNkODRhMmFlMjhhZTk4ZDc5OGEwY2IwNGIcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T15:57:22Zu	committer}(j[  
Ahmed Alouanej[  aalouane@palantir.comj[  2023-05-15T15:57:22ZumessageJMerge branch 'tlmetexxxxx' of github.com:palantir/atlasdb into tlmetexxxxxtree}(j[  (ea9cda3a76cbc11642c364d9e3f4e93d6a3d63cfurl`https://api.github.com/repos/palantir/atlasdb/git/trees/ea9cda3a76cbc11642c364d9e3f4e93d6a3d63cfuj[  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a684ef6513438aecd84a2ae28ae98d798a0cb04b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiVmcACgkQPlMHVIT1
yhrGzgf+J/bhtG+8bsdGWMBnT0mWap3Uw3MQJ8JqG1HeKQy6PBfecd0pp3QJT95V
Tmkp8PU2lqGZDWhkTLqPxOfTh+C0XnZN01sps5iKfiL4NU5rai/fHlMTvsuHEuKE
wxctcd9fTQQZLB1Gtbih2mkZ8P84MYDM7+nZXrkrEcpFPES9bdQwCr/M1Gix2G3+
IvAMC4jPGkz9O8g56EoaN4FNC90a+QMFQ3nSSM5PdHkbfYWwBIQ0xvCg+YQMOO5B
F6OzQr5o9bik5Duo0myqK+VXO9i/PgAZPDbmS/vdgscTtvlC11FBFiVuMcvqh60P
Z9FtxzlnVrFk/jn8NZ5ufoP4fK3Omw==
=B7e4
-----END PGP SIGNATURE-----payloadXY  tree ea9cda3a76cbc11642c364d9e3f4e93d6a3d63cf
parent f3ecd61f0655f7e2a8aea603f10f91731ac46c50
parent a65068895ef1818b3c838f4bb99bbe51a6e2335d
author Ahmed Alouane <aalouane@palantir.com> 1684166242 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684166242 +0100

Merge branch 'tlmetexxxxx' of github.com:palantir/atlasdb into tlmetexxxxx
uuj[  ^https://api.github.com/repos/palantir/atlasdb/commits/a684ef6513438aecd84a2ae28ae98d798a0cb04bhtml_urlShttps://github.com/palantir/atlasdb/commit/a684ef6513438aecd84a2ae28ae98d798a0cb04bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a684ef6513438aecd84a2ae28ae98d798a0cb04b/commentsj[  }(loginergo14idJj[  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j[  #https://api.github.com/users/ergo14j[  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj[  }(j[  ergo14j[  Jj[  MDQ6VXNlcjMwOTAzNzM2j[  4https://avatars.githubusercontent.com/u/30903736?v=4j\  h5j[  #https://api.github.com/users/ergo14j[  https://github.com/ergo14j\  -https://api.github.com/users/ergo14/followersj\  :https://api.github.com/users/ergo14/following{/other_user}j\  3https://api.github.com/users/ergo14/gists{/gist_id}j
\  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j\  1https://api.github.com/users/ergo14/subscriptionsj\  (https://api.github.com/users/ergo14/orgsj\  )https://api.github.com/users/ergo14/reposj\  4https://api.github.com/users/ergo14/events{/privacy}j\  3https://api.github.com/users/ergo14/received_eventsj\  Userj\  uparents](}(j[  (f3ecd61f0655f7e2a8aea603f10f91731ac46c50j[  ^https://api.github.com/repos/palantir/atlasdb/commits/f3ecd61f0655f7e2a8aea603f10f91731ac46c50j[  Shttps://github.com/palantir/atlasdb/commit/f3ecd61f0655f7e2a8aea603f10f91731ac46c50u}(j[  (a65068895ef1818b3c838f4bb99bbe51a6e2335dj[  ^https://api.github.com/repos/palantir/atlasdb/commits/a65068895ef1818b3c838f4bb99bbe51a6e2335dj[  Shttps://github.com/palantir/atlasdb/commit/a65068895ef1818b3c838f4bb99bbe51a6e2335duestats}(totalK 	additionsK 	deletionsK ufiles]u(52c30316bb91740a27276d3bbc888cecba814153}(sha(52c30316bb91740a27276d3bbc888cecba814153node_idEC_kwDOAjP5fdoAKDUyYzMwMzE2YmI5MTc0MGEyNzI3NmQzYmJjODg4Y2VjYmE4MTQxNTMcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-07-19T21:09:11Zu	committer}(jD\  
svc-changelogjF\  svc-changelog@palantir.comjH\  2023-07-19T21:09:11ZumessageAdd generated changelog entriestree}(j<\  (9315c02e84d3bc10cf662211de8cfe5f5c26dedaurl`https://api.github.com/repos/palantir/atlasdb/git/trees/9315c02e84d3bc10cf662211de8cfe5f5c26dedaujT\  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/52c30316bb91740a27276d3bbc888cecba814153
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmS4UPcJEHYaJX37fAFQAACOOQD9GXJ5XWP8J1ZGnM+G4VLYbZHh
7m4zEDqs0ruTwm9rb5oBAI6yDSqVZ3eIS8H5mX/m1CowmPfIo7U4Ph8fM022e5fS
=ya19
-----END PGP SIGNATURE-----payloadX  tree 9315c02e84d3bc10cf662211de8cfe5f5c26deda
parent a20fe9b3853c42055f191d62a8cc948845b68681
author svc-changelog <svc-changelog@palantir.com> 1689800951 +0000
committer svc-changelog <svc-changelog@palantir.com> 1689800951 +0000

Add generated changelog entriesuujT\  ^https://api.github.com/repos/palantir/atlasdb/commits/52c30316bb91740a27276d3bbc888cecba814153html_urlShttps://github.com/palantir/atlasdb/commit/52c30316bb91740a27276d3bbc888cecba814153comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/52c30316bb91740a27276d3bbc888cecba814153/commentsjB\  }(login
svc-changelogidJ#j>\  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jT\  *https://api.github.com/users/svc-changelogjb\   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujJ\  }(jg\  
svc-changelogji\  J#j>\  MDQ6VXNlcjg0MDc3NjAzjk\  4https://avatars.githubusercontent.com/u/84077603?v=4jm\  h5jT\  *https://api.github.com/users/svc-changelogjb\   https://github.com/svc-changelogjp\  4https://api.github.com/users/svc-changelog/followersjr\  Ahttps://api.github.com/users/svc-changelog/following{/other_user}jt\  :https://api.github.com/users/svc-changelog/gists{/gist_id}jv\  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jx\  8https://api.github.com/users/svc-changelog/subscriptionsjz\  /https://api.github.com/users/svc-changelog/orgsj|\  0https://api.github.com/users/svc-changelog/reposj~\  ;https://api.github.com/users/svc-changelog/events{/privacy}j\  :https://api.github.com/users/svc-changelog/received_eventsj\  Userj\  uparents]}(j<\  (a20fe9b3853c42055f191d62a8cc948845b68681jT\  ^https://api.github.com/repos/palantir/atlasdb/commits/a20fe9b3853c42055f191d62a8cc948845b68681jb\  Shttps://github.com/palantir/atlasdb/commit/a20fe9b3853c42055f191d62a8cc948845b68681uastats}(totalK	additionsK	deletionsK ufiles]}(j<\  (cff52dc50fc6337a027d771d49cd4ea9c634d6ecfilename$changelog/@unreleased/pr-6673.v2.ymlstatusaddedj\  Kj\  K changesKblob_url|https://github.com/palantir/atlasdb/blob/52c30316bb91740a27276d3bbc888cecba814153/changelog%2F%40unreleased%2Fpr-6673.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/52c30316bb91740a27276d3bbc888cecba814153/changelog%2F%40unreleased%2Fpr-6673.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6673.v2.yml?ref=52c30316bb91740a27276d3bbc888cecba814153patch@@ -0,0 +1,6 @@
+type: feature
+feature:
+  description: AtlasDB no longer register timelock endpoints when using single-node
+    embedded timelock.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6673uau(6995d5bda087c27443757730313dd8bbec608959}(sha(6995d5bda087c27443757730313dd8bbec608959node_idEC_kwDOAjP5fdoAKDY5OTVkNWJkYTA4N2MyNzQ0Mzc1NzczMDMxM2RkOGJiZWM2MDg5NTkcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-05T14:03:38Zu	committer}(j\  	Tom Papkej\  tpapke@palantir.comj\  2023-07-05T14:03:38Zumessage|Remove isDone from futures
Add assert to alarm developers that try to break the invariant, also test that this "alert" workstree}(j\  (ad3abb50b5350c9df7a2cd740cd15d6057d583fburl`https://api.github.com/repos/palantir/atlasdb/git/trees/ad3abb50b5350c9df7a2cd740cd15d6057d583fbuj\  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6995d5bda087c27443757730313dd8bbec608959
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSleDoACgkQmF9s0kaF
Iw2+EggAxgWfVv/J+sT3dacYyuDxu6BH2cqi9BQBJNFGqe7owVKIdJvChTeSNyvO
Yd+RY7NYoIAF/6y2F3W4issiqaYKRDiGUyCZjclxl7ZmpaXLlajxRScaLMi4UoCK
jkqKQaszQzHz/FIzxYDItMc0New74njZ83c7msTN/sU+jXWbrMPL0yYeW4IpA/Ja
pGEI8NgatD3r3SP6dW4IsSiQ1dQ8dJsaMOZ7H09io5ymNAvwfMWv3KSfU6+G23bD
VbrJAGzFyiOnUkL92rWXN7SuSCQvpf4Lzsf6yfWcL2ucisO9SdEv9q4aj1CYJNCb
J6LN8chensEX0r2ZqelU7iE8LneOFw==
=HXs0
-----END PGP SIGNATURE-----payloadXO  tree ad3abb50b5350c9df7a2cd740cd15d6057d583fb
parent 7c93ee5c0438f258aed0e12e251404572447d313
author Tom Papke <tpapke@palantir.com> 1688565818 +0100
committer Tom Papke <tpapke@palantir.com> 1688565818 +0100

Remove isDone from futures
Add assert to alarm developers that try to break the invariant, also test that this "alert" works
uuj\  ^https://api.github.com/repos/palantir/atlasdb/commits/6995d5bda087c27443757730313dd8bbec608959html_urlShttps://github.com/palantir/atlasdb/commit/6995d5bda087c27443757730313dd8bbec608959comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6995d5bda087c27443757730313dd8bbec608959/commentsj\  }(login	ToemmscheidJboj\  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j\  &https://api.github.com/users/Toemmschej\  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj\  }(j\  	Toemmschej\  Jboj\  MDQ6VXNlcjQzNjc1NDkwj\  4https://avatars.githubusercontent.com/u/43675490?v=4j\  h5j\  &https://api.github.com/users/Toemmschej\  https://github.com/Toemmschej\  0https://api.github.com/users/Toemmsche/followersj\  =https://api.github.com/users/Toemmsche/following{/other_user}j\  6https://api.github.com/users/Toemmsche/gists{/gist_id}j\  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j\  4https://api.github.com/users/Toemmsche/subscriptionsj\  +https://api.github.com/users/Toemmsche/orgsj\  ,https://api.github.com/users/Toemmsche/reposj\  7https://api.github.com/users/Toemmsche/events{/privacy}j\  6https://api.github.com/users/Toemmsche/received_eventsj\  Userj\  uparents]}(j\  (7c93ee5c0438f258aed0e12e251404572447d313j\  ^https://api.github.com/repos/palantir/atlasdb/commits/7c93ee5c0438f258aed0e12e251404572447d313j\  Shttps://github.com/palantir/atlasdb/commit/7c93ee5c0438f258aed0e12e251404572447d313uastats}(totalK6	additionsK*	deletionsKufiles](}(j\  (acad0fe5e89078152845c5019485c1c88c7996c0filenameatimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javastatusmodifiedj]  Kj]  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/6995d5bda087c27443757730313dd8bbec608959/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6995d5bda087c27443757730313dd8bbec608959/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=6995d5bda087c27443757730313dd8bbec608959patchX	  @@ -173,24 +173,33 @@ private void runIfDescriptorsMatchLockWatchesWithMetadata(
                 return;
             }
             // Filtering metadata after deciding if we should even proceed might save us some computation
-            biConsumer.accept(filteredLocks, filterMetadataBasedOnFilteredLocks(filteredLocks, unfilteredMetadata));
+            biConsumer.accept(
+                    filteredLocks,
+                    filterMetadataBasedOnFilteredLocks(unfilteredLocks, filteredLocks, unfilteredMetadata));
         } finally {
             watchesLock.readLock().unlock();
         }
     }
 
     // For an efficient encoding, we expect that metadata is never attached to a lock descriptor that is not contained
-    // in the original request, so filtering metadata based on the already filtered locks is sufficient and enforces
-    // this invariant.
-    // It is also cheaper than calling RangeSet::contains.
+    // in the original request, so filtering metadata based on the already filtered locks is sufficient and even
+    // enforces this invariant. It is also cheaper than calling RangeSet::contains.
+    // We assert that the invariant holds for non-production code to catch any attempts of violating that invariant
+    // early.
+    @SuppressWarnings("BadAssert")
     private static Optional<LockRequestMetadata> filterMetadataBasedOnFilteredLocks(
-            Set<LockDescriptor> filteredLocks, Optional<LockRequestMetadata> unfilteredMetadata) {
+            Set<LockDescriptor> unfilteredLocks,
+            Set<LockDescriptor> filteredLocks,
+            Optional<LockRequestMetadata> unfilteredMetadata) {
         return unfilteredMetadata
                 .map(LockRequestMetadata::lockDescriptorToChangeMetadata)
                 .map(unfilteredLockMetadata -> {
                     Map<LockDescriptor, ChangeMetadata> filteredLockMetadata = KeyedStream.ofEntries(
                                     unfilteredLockMetadata.entrySet().stream())
-                            .filterKeys(filteredLocks::contains)
+                            .filterKeys(lockDescriptor -> {
+                                assert unfilteredLocks.contains(lockDescriptor) : "Unknown lock descriptor in metadata";
+                                return filteredLocks.contains(lockDescriptor);
+                            })
                             .collectToMap();
                     return LockRequestMetadata.of(filteredLockMetadata);
                 });u}(j\  (fb460280ffa23175590cd51c5cd0ff56b8139991j]  ftimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataTest.javaj]  modifiedj]  Kj]  Kj]  K!j ]  https://github.com/palantir/atlasdb/blob/6995d5bda087c27443757730313dd8bbec608959/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj"]  https://github.com/palantir/atlasdb/raw/6995d5bda087c27443757730313dd8bbec608959/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj$]  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.java?ref=6995d5bda087c27443757730313dd8bbec608959j&]  X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.timelock;
 
 import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatException;
 
 import com.codahale.metrics.MetricRegistry;
 import com.google.common.collect.ImmutableList;
@@ -33,6 +34,7 @@
 import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
 import com.palantir.lock.client.IdentifiedLockRequest;
 import com.palantir.lock.client.ImmutableIdentifiedLockRequest;
 import com.palantir.lock.watch.ChangeMetadata;
@@ -50,6 +52,7 @@
 import java.util.Map;
 import java.util.Optional;
 import java.util.UUID;
+import java.util.concurrent.ExecutionException;
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.stream.Collectors;
 import org.jmock.lib.concurrent.DeterministicScheduler;
@@ -67,7 +70,7 @@ public class AsyncTimeLockServiceMetadataTest {
     private static final Map<LockDescriptor, ChangeMetadata> ALL_WATCHED_LOCKS_WITH_METADATA =
             ImmutableMap.of(WATCHED_LOCK, ChangeMetadata.updated(PtBytes.toBytes("old"), PtBytes.toBytes("new")));
     private static final String UNWATCHED_TABLE_NAME = "a-random-unwatched-table";
-    private static final LockDescriptor UNWATCHED_LOCK_1 =
+    private static final LockDescriptor UNWATCHED_LOCK =
             AtlasRowLockDescriptor.of(UNWATCHED_TABLE_NAME, PtBytes.toBytes("lock1"));
     private static final IdentifiedLockRequest WATCHED_LOCK_REQUEST_WITH_METADATA =
             standardRequestWithMetadata(ALL_WATCHED_LOCKS_WITH_METADATA);
@@ -99,14 +102,14 @@ public void absentMetadataIsPassedThrough() {
         IdentifiedLockRequest requestWithoutMetadata = ImmutableIdentifiedLockRequest.copyOf(
                         standardRequestWithMetadata(ALL_WATCHED_LOCKS_WITH_METADATA))
                 .withMetadata(Optional.empty());
-        assertThat(timeLockService.lock(requestWithoutMetadata)).isDone();
+        timeLockService.lock(requestWithoutMetadata);
 
         assertThat(getAllLockEventsMetadata()).containsExactly(Optional.empty());
     }
 
     @Test
     public void metadataIsPassedThroughForWatchedTable() {
-        assertThat(timeLockService.lock(WATCHED_LOCK_REQUEST_WITH_METADATA)).isDone();
+        timeLockService.lock(WATCHED_LOCK_REQUEST_WITH_METADATA);
 
         assertThat(getAllLockEventsMetadata())
                 .containsExactly(Optional.of(LockRequestMetadata.of(ALL_WATCHED_LOCKS_WITH_METADATA)));
@@ -117,12 +120,31 @@ public void metadataIsPassedThroughForWatchedTable() {
     @Test
     public void noLockEventIsPublishedIfNothingIsWatched() {
         IdentifiedLockRequest mixedRequest = standardRequestWithMetadata(ImmutableMap.of(
-                UNWATCHED_LOCK_1, ChangeMetadata.updated(PtBytes.toBytes("bla"), PtBytes.toBytes("blabla"))));
-        assertThat(timeLockService.lock(mixedRequest)).isDone();
+                UNWATCHED_LOCK, ChangeMetadata.updated(PtBytes.toBytes("bla"), PtBytes.toBytes("blabla"))));
+        timeLockService.lock(mixedRequest);
 
         assertThat(getAllLockEventsMetadata()).isEmpty();
     }
 
+    // This test verifies that future developers are alerted when they break the metadata invariant by trying to pass
+    // metadata that is not attached to a lock descriptor that is part of the original request.
+    @Test
+    public void cannotPassDownMetadataForUnknownLockDescriptors() {
+        IdentifiedLockRequest goodRequest =
+                standardRequestWithMetadata(ImmutableMap.of(WATCHED_LOCK, ChangeMetadata.unchanged()));
+        IdentifiedLockRequest badRequest = ImmutableIdentifiedLockRequest.builder()
+                .from(goodRequest)
+                .metadata(LockRequestMetadata.of(
+                        ImmutableMap.of(StringLockDescriptor.of("some-random-lock"), ChangeMetadata.unchanged())))
+                .build();
+        assertThatException()
+                .isThrownBy(() -> timeLockService.lock(badRequest).get())
+                .isInstanceOf(ExecutionException.class)
+                .havingCause()
+                .isInstanceOf(AssertionError.class)
+                .withMessage("Unknown lock descriptor in metadata");
+    }
+
     private List<Optional<LockRequestMetadata>> getAllLockEventsMetadata() {
         return getAllLockWatchEvents().stream()
                 .map(event -> event.accept(LOCK_WATCH_EVENT_VISITOR))
@@ -134,7 +156,6 @@ private List<Optional<LockRequestMetadata>> getAllLockEventsMetadata() {
     private List<LockWatchEvent> getAllLockWatchEvents() {
         ListenableFuture<ConjureStartTransactionsResponse> responseFuture =
                 timeLockService.startTransactionsWithWatches(startTransactionsRequestWithInitialVersion);
-        assertThat(responseFuture).isDone();
         return AtlasFutures.getUnchecked(responseFuture).getLockWatchUpdate().accept(LOCK_WATCH_STATE_UPDATE_VISITOR);
     }
 ueu(422a0cc58827de1f80677754fa56e21ac5295e26}(sha(422a0cc58827de1f80677754fa56e21ac5295e26node_idEC_kwDOAjP5fdoAKDQyMmEwY2M1ODgyN2RlMWY4MDY3Nzc1NGZhNTZlMjFhYzUyOTVlMjYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-26T18:05:43Zu	committer}(j:]  
Ahmed Alouanej<]  aalouane@palantir.comj>]  2023-05-26T18:05:43ZumessageEmpty-Committree}(j2]  (feddb07befc68bec4d595b153edee792afb56622url`https://api.github.com/repos/palantir/atlasdb/git/trees/feddb07befc68bec4d595b153edee792afb56622ujJ]  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/422a0cc58827de1f80677754fa56e21ac5295e26
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRw9PcACgkQPlMHVIT1
yhqW7Af/YDLCRGlSZZttr3VwJW3uc3/47HJEtx0L2tHrLdnfiMB5h3P31D/+HaZO
FpqDVpbG0/A0v4Z/tVY3ieGm4BFV7i/y7gMyGyStVPMAwcNn2H8twq8ybtLKxV5K
/FWubiu8fOb3bMSMeKp6ayQCGHf3J+FCVXZ7Sg4r4EPGhwgJ1dMecHUYz99e0Nye
/t5OTqMa4lLO1MqxM5s9TLWdwOzwbNUrWhNw/kJVZxawiSBh5UQCLy545hCPh6Kf
EeF4dKwbqaFoWIrdaKn8TsFi2mcYpB0xD3yi4xYl5AOsMfaw2Ij2B3+SQD82+MOB
rRpw00mgyn5yjmQnaDSFpx4aZU3nuw==
=pkas
-----END PGP SIGNATURE-----payloadtree feddb07befc68bec4d595b153edee792afb56622
parent 88d9d0aba86032cd90a07d47a804c370741b57d6
author Ahmed Alouane <aalouane@palantir.com> 1685124343 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1685124343 +0100

Empty-Commit
uujJ]  ^https://api.github.com/repos/palantir/atlasdb/commits/422a0cc58827de1f80677754fa56e21ac5295e26html_urlShttps://github.com/palantir/atlasdb/commit/422a0cc58827de1f80677754fa56e21ac5295e26comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/422a0cc58827de1f80677754fa56e21ac5295e26/commentsj8]  }(loginergo14idJj4]  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jJ]  #https://api.github.com/users/ergo14jX]  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj@]  }(j]]  ergo14j_]  Jj4]  MDQ6VXNlcjMwOTAzNzM2ja]  4https://avatars.githubusercontent.com/u/30903736?v=4jc]  h5jJ]  #https://api.github.com/users/ergo14jX]  https://github.com/ergo14jf]  -https://api.github.com/users/ergo14/followersjh]  :https://api.github.com/users/ergo14/following{/other_user}jj]  3https://api.github.com/users/ergo14/gists{/gist_id}jl]  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jn]  1https://api.github.com/users/ergo14/subscriptionsjp]  (https://api.github.com/users/ergo14/orgsjr]  )https://api.github.com/users/ergo14/reposjt]  4https://api.github.com/users/ergo14/events{/privacy}jv]  3https://api.github.com/users/ergo14/received_eventsjx]  Userjz]  uparents]}(j2]  (88d9d0aba86032cd90a07d47a804c370741b57d6jJ]  ^https://api.github.com/repos/palantir/atlasdb/commits/88d9d0aba86032cd90a07d47a804c370741b57d6jX]  Shttps://github.com/palantir/atlasdb/commit/88d9d0aba86032cd90a07d47a804c370741b57d6uastats}(totalK 	additionsK 	deletionsK ufiles]u(f918ded5196b553bedc95a076d4871d8f5652047}(sha(f918ded5196b553bedc95a076d4871d8f5652047node_idEC_kwDOAjP5fdoAKGY5MThkZWQ1MTk2YjU1M2JlZGM5NWEwNzZkNDg3MWQ4ZjU2NTIwNDccommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-02-28T17:34:57Zu	committer}(j]  
Sam Kramerj]  skramer@palantir.comj]  2023-02-28T17:34:57Zumessage-add comments about validation store interfacetree}(j]  (0d8a3dabf8d32c3a0607a47fc461ddca8b462d66url`https://api.github.com/repos/palantir/atlasdb/git/trees/0d8a3dabf8d32c3a0607a47fc461ddca8b462d66uj]  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f918ded5196b553bedc95a076d4871d8f5652047
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmP+O0EACgkQmPPOpKR4
XS16DQgAiyaoDK+d3TPid7R2r8ddJjMMA2xGl9m7HzPDxH5k8n+n/dLUcXX5wEpx
8eWJmRMgjQDjOClAC4lSzYEtVSPIqbHr4kfBrGcYOMXqRQnuvokhzl4InzZaFMfk
ALDgkSzocrETtdFnwTaLhmKlQoGaO6XOZCcwNWanMW1NvLkcSqoju3l2HFaKKft4
F4Wh8O9oKXXO8ij366AkFXsAyG8n82n+zmKtIZ/eNHLghAVrLRV8N8C65anmKeWP
AqnHflW251BrOjiOduX0asVfH3SMQrjjgG6X3/8Du57UZZFQ+k9TCQEoodEewgCE
eHpNOjglHSStWEl4edX4Eh+l9EdpiQ==
=1+3k
-----END PGP SIGNATURE-----payloadX  tree 0d8a3dabf8d32c3a0607a47fc461ddca8b462d66
parent 0129536831f9513b0e404a193354dea8742b2908
author Sam Kramer <skramer@palantir.com> 1677605697 +0000
committer Sam Kramer <skramer@palantir.com> 1677605697 +0000

add comments about validation store interface
uuj]  ^https://api.github.com/repos/palantir/atlasdb/commits/f918ded5196b553bedc95a076d4871d8f5652047html_urlShttps://github.com/palantir/atlasdb/commit/f918ded5196b553bedc95a076d4871d8f5652047comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f918ded5196b553bedc95a076d4871d8f5652047/commentsj]  }(login
Sam-KrameridJ^2_ j]  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j]  'https://api.github.com/users/Sam-Kramerj]  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj]  }(j]  
Sam-Kramerj]  J^2_ j]  MDQ6VXNlcjYyMzg4MTQ=j]  3https://avatars.githubusercontent.com/u/6238814?v=4j]  h5j]  'https://api.github.com/users/Sam-Kramerj]  https://github.com/Sam-Kramerj]  1https://api.github.com/users/Sam-Kramer/followersj]  >https://api.github.com/users/Sam-Kramer/following{/other_user}j]  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j]  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j]  5https://api.github.com/users/Sam-Kramer/subscriptionsj]  ,https://api.github.com/users/Sam-Kramer/orgs     j]  -https://api.github.com/users/Sam-Kramer/reposj]  8https://api.github.com/users/Sam-Kramer/events{/privacy}j]  7https://api.github.com/users/Sam-Kramer/received_eventsj]  Userj]  uparents]}(j]  (0129536831f9513b0e404a193354dea8742b2908j]  ^https://api.github.com/repos/palantir/atlasdb/commits/0129536831f9513b0e404a193354dea8742b2908j]  Shttps://github.com/palantir/atlasdb/commit/0129536831f9513b0e404a193354dea8742b2908uastats}(totalK	additionsK	deletionsK ufiles]}(j]  (d4ed2c1b7468a7b178a11fbc9755532208317c92filenamebatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ValidationStore.javastatusmodifiedj]  Kj]  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/f918ded5196b553bedc95a076d4871d8f5652047/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f918ded5196b553bedc95a076d4871d8f5652047/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.java?ref=f918ded5196b553bedc95a076d4871d8f5652047patchX  @@ -19,8 +19,15 @@
 import java.util.Map;
 import java.util.Set;
 
+/**
+ * Store used for replaying witnessed transactions, and ultimately being used as the 'source-of-truth' when validating
+ * our {@link TransactionStore}.
+ */
 public interface ValidationStore {
+
+    /** Return all cells and values for all tables. */
     Map<TableWorkloadCell, Integer> values();
 
+    /** Returns all cells that have been deleted, and have stayed deleted. */
     Set<TableWorkloadCell> deletedCells();
 }uau(0f4be7858850d55c104989b4cf2637dadc36c954}(sha(0f4be7858850d55c104989b4cf2637dadc36c954node_idEC_kwDOAjP5fdoAKDBmNGJlNzg1ODg1MGQ1NWMxMDQ5ODliNGNmMjYzN2RhZGMzNmM5NTQcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-07-24T19:42:59Zu	committer}(j^  Tom Petraccaj^  tpetracca@palantir.comj^  2023-07-24T19:48:16Zumessagepostgres-timelock and postgrestree}(j^  (8e9be8bb7079a5155f3cf8327c9e6fbe5543c1dcurl`https://api.github.com/repos/palantir/atlasdb/git/trees/8e9be8bb7079a5155f3cf8327c9e6fbe5543c1dcuj)^  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0f4be7858850d55c104989b4cf2637dadc36c954
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEHTC5rqjQ6qmsb7sZRnUGJaXvqFMFAmS+1YAACgkQRnUGJaXv
qFO64ggAr6MrUiSZUZmSBecI29SOjrAbC1WfF+wN++7k4GqX9J863SNwGJuYMLF/
kDiFRYZQD9sUfMxd3RoerSgI9yS465pmnqmDv6FNoNqMr8Kx3SCaRLjJVYunOnlp
jgM+kfbW2okcYHFQF+D3M5IX9cD7cLJwn/9qBtgC1EpY4elZ26ttAxNznvV0JZNk
c/TtgoG2efvOcfUKduhZYalxgr6BgL1RLdTmaFXwHHD4fYOOPMfQ8OUCyukzys5g
ATZMgp0PnxDMqOu9rwvQl0Y+qkVVQSd5IbMJj4R7/ye64nIQe+3KZnduCKGqk2ct
gU6FWaENXJNdssc+XLXIXq6pfE1/ag==
=BYPF
-----END PGP SIGNATURE-----payloadtree 8e9be8bb7079a5155f3cf8327c9e6fbe5543c1dc
parent b9f73ad37ec1593ba45789912521c82c3b8bda78
author Tom Petracca <tpetracca@palantir.com> 1690227779 -0400
committer Tom Petracca <tpetracca@palantir.com> 1690228096 -0400

postgres-timelock and postgres
uuj)^  ^https://api.github.com/repos/palantir/atlasdb/commits/0f4be7858850d55c104989b4cf2637dadc36c954html_urlShttps://github.com/palantir/atlasdb/commit/0f4be7858850d55c104989b4cf2637dadc36c954comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0f4be7858850d55c104989b4cf2637dadc36c954/commentsj^  }(login	tpetraccaidJ& j^  MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5j)^  &https://api.github.com/users/tpetraccaj7^  https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminuj^  }(j<^  	tpetraccaj>^  J& j^  MDQ6VXNlcjI1NTQzMjg=j@^  3https://avatars.githubusercontent.com/u/2554328?v=4jB^  h5j)^  &https://api.github.com/users/tpetraccaj7^  https://github.com/tpetraccajE^  0https://api.github.com/users/tpetracca/followersjG^  =https://api.github.com/users/tpetracca/following{/other_user}jI^  6https://api.github.com/users/tpetracca/gists{/gist_id}jK^  =https://api.github.com/users/tpetracca/starred{/owner}{/repo}jM^  4https://api.github.com/users/tpetracca/subscriptionsjO^  +https://api.github.com/users/tpetracca/orgsjQ^  ,https://api.github.com/users/tpetracca/reposjS^  7https://api.github.com/users/tpetracca/events{/privacy}jU^  6https://api.github.com/users/tpetracca/received_eventsjW^  UserjY^  uparents]}(j^  (b9f73ad37ec1593ba45789912521c82c3b8bda78j)^  ^https://api.github.com/repos/palantir/atlasdb/commits/b9f73ad37ec1593ba45789912521c82c3b8bda78j7^  Shttps://github.com/palantir/atlasdb/commit/b9f73ad37ec1593ba45789912521c82c3b8bda78uastats}(totalK 	additionsK	deletionsK
ufiles](}(j^  (07187320b13fc117cd4600f52f413c997120b078filenameUatlasdb-ete-tests/docker-compose.multi-client-with-postgres-timelock-and-postgres.ymlstatusrenamedjs^  K	jt^  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/0f4be7858850d55c104989b4cf2637dadc36c954/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-postgres-timelock-and-postgres.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/0f4be7858850d55c104989b4cf2637dadc36c954/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-postgres-timelock-and-postgres.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-postgres-timelock-and-postgres.yml?ref=0f4be7858850d55c104989b4cf2637dadc36c954patchX	  @@ -21,7 +21,7 @@ services:
 
   ete1:
     build: .
-    command: [bash, -c, 'cp var/conf/atlasdb-ete.timelock.dbkvs.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console']
+    command: [bash, -c, 'cp var/conf/atlasdb-ete.postgres-timelock-and-postgres.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console']
     ports:
       - "3828"
     environment:
@@ -30,9 +30,13 @@ services:
       - postgres
       - timelock
 
-  ete-cli:
+  ete2:
     build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.timelock.dbkvs.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
+    command: [bash, -c, 'cp var/conf/atlasdb-ete.postgres-timelock-and-postgres.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console']
+    ports:
+      - "3828"
+    environment:
+      - ME=ete2
     depends_on:
-      - ete1
+      - postgres
+      - timelockprevious_filenameEatlasdb-ete-tests/docker-compose.timelock.database.bound.postgres.ymlu}(j^  (9addcfbf688c010f290472ca32822e97cdb84b49jy^  Latlasdb-ete-tests/docker/conf/atlasdb-ete.postgres-timelock-and-postgres.ymlj{^  renamedjs^  K jt^  K j}^  K j~^  https://github.com/palantir/atlasdb/blob/0f4be7858850d55c104989b4cf2637dadc36c954/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.postgres-timelock-and-postgres.ymlj^  https://github.com/palantir/atlasdb/raw/0f4be7858850d55c104989b4cf2637dadc36c954/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.postgres-timelock-and-postgres.ymlj^  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.postgres-timelock-and-postgres.yml?ref=0f4be7858850d55c104989b4cf2637dadc36c954j^  <atlasdb-ete-tests/docker/conf/atlasdb-ete.timelock.dbkvs.ymlu}(j^  (c4456baed268429873976763e5a9d68596c8f8a5jy^  xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/MultiClientWithPostgresTimelockAndPostgresTestSuite.javaj{^  modifiedjs^  K
jt^  Kj}^  Kj~^  https://github.com/palantir/atlasdb/blob/0f4be7858850d55c104989b4cf2637dadc36c954/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithPostgresTimelockAndPostgresTestSuite.javaj^  https://github.com/palantir/atlasdb/raw/0f4be7858850d55c104989b4cf2637dadc36c954/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithPostgresTimelockAndPostgresTestSuite.javaj^  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithPostgresTimelockAndPostgresTestSuite.java?ref=0f4be7858850d55c104989b4cf2637dadc36c954j^  X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,10 +13,14 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suites;
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
+import com.palantir.atlasdb.ete.EteSetup;
+import com.palantir.atlasdb.ete.LockWithTimelockEteTest;
+import com.palantir.atlasdb.ete.TimestampManagementEteTest;
+import com.palantir.atlasdb.ete.TodoEteTest;
 import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
@@ -30,13 +34,11 @@
     CoordinationEteTest.class,
     LockWithTimelockEteTest.class
 })
-public class MultiClientWithPostgresTimelockAndPostgres extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");
-
+public class MultiClientWithPostgresTimelockAndPostgresTestSuite extends EteSetup {
     @ClassRule
     public static final RuleChain COMPOSITION_SETUP = EteSetup.setupCompositionWithTimelock(
-            MultiClientWithPostgresTimelockAndPostgres.class,
-            "docker-compose.timelock.database.bound.postgres.yml",
-            CLIENTS,
+            MultiClientWithPostgresTimelockAndPostgresTestSuite.class,
+            "docker-compose.multi-client-with-postgres-timelock-and-postgres.yml",
+            TestSuites.MULTI_CLIENT,
             ImmutableMap.of());
 }ueu(9e83bf1f0c22a14fc0de4c53aba6af73df1bc1ff}(sha(9e83bf1f0c22a14fc0de4c53aba6af73df1bc1ffnode_idEC_kwDOAjP5fdoAKDllODNiZjFmMGMyMmExNGZjMGRlNGM1M2FiYTZhZjczZGYxYmMxZmYcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-05-22T11:06:53Zu	committer}(j^  GitHubj^  noreply@github.comj^  2023-05-22T11:06:53Zumessageadd flush and compact to antithesis config image (#6580)

Add flush and compact scripts for Cassandra to antithesis config imagetree}(j^  (24740da2765ddf0e0f12a405d4260eae64f43878url`https://api.github.com/repos/palantir/atlasdb/git/trees/24740da2765ddf0e0f12a405d4260eae64f43878uj^  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9e83bf1f0c22a14fc0de4c53aba6af73df1bc1ff
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJka0zNCRBK7hj4Ov3rIwAAd8cIAC3ZH6564zpqTuLzZ9JW/yEu
00+/tkD7kDR6Jsz4msr4u7TQHKyOyZ6V7CtZkVtdVh3XwbowA1JAzD0R1ZVfxy1d
WhH9LmJKMo7i6j0q5PZ2OBnu6X0Cc3EU+2HZpIgFnO32cWV6QrMSBPPkSOVpqPJa
rVYrMM2njj5iYfmMd4aQkEozVyWrNcoYredJ//CB4Rc77DzZqYtBziyjE/I6wJEL
nFBq4HDWP5pMHGiHpMqbRpDyzMozhQmxf0k7yJ9DmzNsY+XbZDqmNapSEkBIKdC5
RL071lavUWz9FukLB47+PfKbcq7R1521azHaTkjnwzk/8w8t4o3cxJkWu+FzZKI=
=aO/f
-----END PGP SIGNATURE-----
payloadXS  tree 24740da2765ddf0e0f12a405d4260eae64f43878
parent 2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30
author Sam-Kramer <sam.c.kramer@gmail.com> 1684753613 +0100
committer GitHub <noreply@github.com> 1684753613 +0000

add flush and compact to antithesis config image (#6580)

Add flush and compact scripts for Cassandra to antithesis config image
uuj^  ^https://api.github.com/repos/palantir/atlasdb/commits/9e83bf1f0c22a14fc0de4c53aba6af73df1bc1ffhtml_urlShttps://github.com/palantir/atlasdb/commit/9e83bf1f0c22a14fc0de4c53aba6af73df1bc1ffcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9e83bf1f0c22a14fc0de4c53aba6af73df1bc1ff/commentsj^  }(login
Sam-KrameridJ^2_ j^  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j^  'https://api.github.com/users/Sam-Kramerj^  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj^  }(j^  web-flowj^  J/j^  MDQ6VXNlcjE5ODY0NDQ3j^  4https://avatars.githubusercontent.com/u/19864447?v=4j^  h5j^  %https://api.github.com/users/web-flowj^  https://github.com/web-flowj^  /https://api.github.com/users/web-flow/followersj^  <https://api.github.com/users/web-flow/following{/other_user}j^  5https://api.github.com/users/web-flow/gists{/gist_id}j^  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j^  3https://api.github.com/users/web-flow/subscriptionsj^  *https://api.github.com/users/web-flow/orgsj^  +https://api.github.com/users/web-flow/reposj^  6https://api.github.com/users/web-flow/events{/privacy}j^  5https://api.github.com/users/web-flow/received_eventsj^  Userj^  uparents]}(j^  (2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30j^  ^https://api.github.com/repos/palantir/atlasdb/commits/2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30j^  Shttps://github.com/palantir/atlasdb/commit/2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30uastats}(totalK	additionsK	deletionsKufiles](}(j^  (9ce74a5cd2c6d02324dae753b39d4472d7e0fcadfilename-atlasdb-workload-server-antithesis/Dockerfilestatusmodifiedj^  Kj^  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9e83bf1f0c22a14fc0de4c53aba6af73df1bc1ff/atlasdb-workload-server-antithesis%2FDockerfileraw_urlhttps://github.com/palantir/atlasdb/raw/9e83bf1f0c22a14fc0de4c53aba6af73df1bc1ff/atlasdb-workload-server-antithesis%2FDockerfilecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2FDockerfile?ref=9e83bf1f0c22a14fc0de4c53aba6af73df1bc1ffpatch@@ -1,4 +1,6 @@
 FROM scratch
 MAINTAINER AtlasDB Team
 
-ADD docker-compose.yml /
\ No newline at end of file
+ADD docker-compose.yml /
+ADD compact.sh /
+ADD flush.sh /
\ No newline at end of fileu}(j^  (b284936b64cae7e6b461c14a3b7d116eadd96a23j_  /atlasdb-workload-server-antithesis/build.gradlej_  modifiedj^  Kj^  Kj_  Kj_  https://github.com/palantir/atlasdb/blob/9e83bf1f0c22a14fc0de4c53aba6af73df1bc1ff/atlasdb-workload-server-antithesis%2Fbuild.gradlej	_  https://github.com/palantir/atlasdb/raw/9e83bf1f0c22a14fc0de4c53aba6af73df1bc1ff/atlasdb-workload-server-antithesis%2Fbuild.gradlej_  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fbuild.gradle?ref=9e83bf1f0c22a14fc0de4c53aba6af73df1bc1ffj
_  XL  @@ -7,5 +7,5 @@ def imageVersion = "${project.version.toString().replaceAll('\\+', '-')}"
 docker {
     name "palantirtechnologies/${project.name}:${imageVersion}"
     tags 'latest', 'snapshot'
-    files 'var/docker-compose.yml'
+    files 'var/docker-compose.yml', 'var/compact.sh', 'var/flush.sh'
 }
\ No newline at end of fileueu(660351f26a875c70d0ee20e62488550dc8e6cf0d}(sha(660351f26a875c70d0ee20e62488550dc8e6cf0dnode_idEC_kwDOAjP5fdoAKDY2MDM1MWYyNmE4NzVjNzBkMGVlMjBlNjI0ODg1NTBkYzhlNmNmMGQcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-07-19T04:14:48Zu	committer}(j!_  svc-excavator-botj#_  svc-excavator-bot@palantir.comj%_  2023-07-19T04:14:48Zumessage/Excavator:  Update Undertow Server Version Pinstree}(j_  (361a191c52839a32bbad581524ae005acbee5e34url`https://api.github.com/repos/palantir/atlasdb/git/trees/361a191c52839a32bbad581524ae005acbee5e34uj1_  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/660351f26a875c70d0ee20e62488550dc8e6cf0d
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmS3YzgJEMmvEkpISILgAAA09gEA+FZQr4rB9NZ/nfIyRJEgvxQ/
xVVqZWcJIcKTrrFP2qsBAMxKw1XS2l5+RHOWAyHDWxc+w4O9KypY6qE0eE2CDFjL
=4vZn
-----END PGP SIGNATURE-----
payloadX'  tree 361a191c52839a32bbad581524ae005acbee5e34
parent ce30466603b4041b56400dea78e01588e4ba3369
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1689740088 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1689740088 +0000

Excavator:  Update Undertow Server Version Pinsuuj1_  ^https://api.github.com/repos/palantir/atlasdb/commits/660351f26a875c70d0ee20e62488550dc8e6cf0dhtml_urlShttps://github.com/palantir/atlasdb/commit/660351f26a875c70d0ee20e62488550dc8e6cf0dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/660351f26a875c70d0ee20e62488550dc8e6cf0d/commentsj_  }(loginsvc-excavator-botidJj_  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j1_  .https://api.github.com/users/svc-excavator-botj?_  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj'_  }(jD_  svc-excavator-botjF_  Jj_  MDQ6VXNlcjMzMjY2MzY4jH_  4https://avatars.githubusercontent.com/u/33266368?v=4jJ_  h5j1_  .https://api.github.com/users/svc-excavator-botj?_  $https://github.com/svc-excavator-botjM_  8https://api.github.com/users/svc-excavator-bot/followersjO_  Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}jQ_  >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}jS_  Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}jU_  <https://api.github.com/users/svc-excavator-bot/subscriptionsjW_  3https://api.github.com/users/svc-excavator-bot/orgsjY_  4https://api.github.com/users/svc-excavator-bot/reposj[_  ?https://api.github.com/users/svc-excavator-bot/events{/privacy}j]_  >https://api.github.com/users/svc-excavator-bot/received_eventsj__  Userja_  uparents]}(j_  (ce30466603b4041b56400dea78e01588e4ba3369j1_  ^https://api.github.com/repos/palantir/atlasdb/commits/ce30466603b4041b56400dea78e01588e4ba3369j?_  Shttps://github.com/palantir/atlasdb/commit/ce30466603b4041b56400dea78e01588e4ba3369uastats}(totalK	additionsK	deletionsKufiles](}(j_  (0e3179989ede29f92bc5bce81cd23ace6ba42d17filename
versions.lockstatusmodifiedj{_  Kj|_  KchangesKblob_url_https://github.com/palantir/atlasdb/blob/660351f26a875c70d0ee20e62488550dc8e6cf0d/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/660351f26a875c70d0ee20e62488550dc8e6cf0d/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=660351f26a875c70d0ee20e62488550dc8e6cf0dpatchXT  @@ -186,7 +186,7 @@ io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf
 io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
-io.undertow:undertow-core:2.2.25.Final (2 constraints: 331dfa06)
+io.undertow:undertow-core:2.2.24.Final (2 constraints: 321db506)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)u}(j_  (3ac0cb3acdc90040bcd03d3af504bcb446e9204aj_  versions.propsj_  modifiedj{_  Kj|_  Kj_  Kj_  `https://github.com/palantir/atlasdb/blob/660351f26a875c70d0ee20e62488550dc8e6cf0d/versions.propsj_  _https://github.com/palantir/atlasdb/raw/660351f26a875c70d0ee20e62488550dc8e6cf0d/versions.propsj_  rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=660351f26a875c70d0ee20e62488550dc8e6cf0dj_  X'  @@ -46,7 +46,7 @@ commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
 io.netty:* = 4.1.90.Final
-io.undertow:* = 2.2.25.Final
+io.undertow:* = 2.2.24.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2ueu(7d6683af043633019b63fdb6f2b334db5e8a8054}(sha(7d6683af043633019b63fdb6f2b334db5e8a8054node_idEC_kwDOAjP5fdoAKDdkNjY4M2FmMDQzNjMzMDE5YjYzZmRiNmYyYjMzNGRiNWU4YTgwNTQcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-06-22T14:37:48Zu	committer}(j_  
svc-changelogj_  svc-changelog@palantir.comj_  2023-06-22T14:37:48ZumessageAdd generated changelog entriestree}(j_  (2a325ba158a621db4d04826c0e66abed37dd07d7url`https://api.github.com/repos/palantir/atlasdb/git/trees/2a325ba158a621db4d04826c0e66abed37dd07d7uj_  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7d6683af043633019b63fdb6f2b334db5e8a8054
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSUXLwJEHYaJX37fAFQAAAc6QD/T7bOlmIuvH3weHlnOuFte/HS
nKnupC99uNnnh+u+L4QA/0Xg7bu+7VFAvzlsb5f9YcVwNRtFpsqCmkKm2blgvMcx
=CGHQ
-----END PGP SIGNATURE-----payloadX  tree 2a325ba158a621db4d04826c0e66abed37dd07d7
parent e1cc8800ec1356ed5d561b59acc26970977e10d7
author svc-changelog <svc-changelog@palantir.com> 1687444668 +0000
committer svc-changelog <svc-changelog@palantir.com> 1687444668 +0000

Add generated changelog entriesuuj_  ^https://api.github.com/repos/palantir/atlasdb/commits/7d6683af043633019b63fdb6f2b334db5e8a8054html_urlShttps://github.com/palantir/atlasdb/commit/7d6683af043633019b63fdb6f2b334db5e8a8054comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7d6683af043633019b63fdb6f2b334db5e8a8054/commentsj_  }(login
svc-changelogidJ#j_  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j_  *https://api.github.com/users/svc-changelogj_   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj_  }(j_  
svc-changelogj_  J#j_  MDQ6VXNlcjg0MDc3NjAzj_  4https://avatars.githubusercontent.com/u/84077603?v=4j_  h5j_  *https://api.github.com/users/svc-changelogj_   https://github.com/svc-changelogj_  4https://api.github.com/users/svc-changelog/followersj_  Ahttps://api.github.com/users/svc-changelog/following{/other_user}j_  :https://api.github.com/users/svc-changelog/gists{/gist_id}j_  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j_  8https://api.github.com/users/svc-changelog/subscriptionsj_  /https://api.github.com/users/svc-changelog/orgsj_  0https://api.github.com/users/svc-changelog/reposj_  ;https://api.github.com/users/svc-changelog/events{/privacy}j_  :https://api.github.com/users/svc-changelog/received_eventsj_  Userj_  uparents]}(j_  (e1cc8800ec1356ed5d561b59acc26970977e10d7j_  ^https://api.github.com/repos/palantir/atlasdb/commits/e1cc8800ec1356ed5d561b59acc26970977e10d7j_  Shttps://github.com/palantir/atlasdb/commit/e1cc8800ec1356ed5d561b59acc26970977e10d7uastats}(totalK	additionsK	deletionsK ufiles]}(j_  (46b215e4664b4438f038bf048c14656f6fb089e1filename$changelog/@unreleased/pr-6630.v2.ymlstatusaddedj_  Kj_  K changesKblob_url|https://github.com/palantir/atlasdb/blob/7d6683af043633019b63fdb6f2b334db5e8a8054/changelog%2F%40unreleased%2Fpr-6630.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/7d6683af043633019b63fdb6f2b334db5e8a8054/changelog%2F%40unreleased%2Fpr-6630.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6630.v2.yml?ref=7d6683af043633019b63fdb6f2b334db5e8a8054patch@@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Remove recursive loop when filtering out cells that are not applicable
+    to our transaction.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6630uau(69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4}(sha(69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4node_idEC_kwDOAjP5fdoAKDY5YTk3Y2UwZDIxOTRjN2ZkZDI5ZTZhZDJjOWQ3OGJlYmIwMjI1ZjQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-08T17:32:18Zu	committer}(j`  Jeremy Kongj`  jkong@palantir.comj`  2023-06-08T17:32:18Zumessagepushtree}(j`  (5bcd72a436d2f7d42b49d02107fd33de4699859curl`https://api.github.com/repos/palantir/atlasdb/git/trees/5bcd72a436d2f7d42b49d02107fd33de4699859cuj'`  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSCEKMACgkQTLdFKain
zjy9VAgA0izrslp1PvCC6/55TiZmceNumxD+DlFKErzgWsboVEgZMzBEmiX5eVcO
0dgvPOsDnsVy5mbBTPuf1+pj8zVKbsPasm+4eo6v0PxbKl+XdczY4xOlLTsbIBdf
zCjasAdkYc9Hg6oKdChLLfxWP+oNGwtveAyVlGjGlAoFvmZC/tz1VSlu0IUx/71w
IyNx8n5TY/ujNmFrkNKxqQDukLm4QSIVYHGmlUd/S0owPmMUjmIv29Gm2jXzWl+7
OscCdwANPbLcTkjPa0tghKhsp/i6OM7KfvGP4WZDebA1z6ATcoMx+J0GAhlMpVe/
pjzRegFjZtQRyAzZB3Pd4a2lUcxuZA==
=OhmE
-----END PGP SIGNATURE-----payloadtree 5bcd72a436d2f7d42b49d02107fd33de4699859c
parent 52a14290334d3af76d847ef393b1b3ce25d6b463
author Jeremy Kong <jkong@palantir.com> 1686245538 +0100
committer Jeremy Kong <jkong@palantir.com> 1686245538 +0100

push
uuj'`  ^https://api.github.com/repos/palantir/atlasdb/commits/69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4html_urlShttps://github.com/palantir/atlasdb/commit/69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4/commentsj`  }(login
jeremyk-91idJZ j`  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j'`  'https://api.github.com/users/jeremyk-91j5`  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj`  }(j:`  
jeremyk-91j<`  JZ j`  MDQ6VXNlcjU5NTU1MTA=j>`  3https://avatars.githubusercontent.com/u/5955510?v=4j@`  h5j'`  'https://api.github.com/users/jeremyk-91j5`  https://github.com/jeremyk-91jC`  1https://api.github.com/users/jeremyk-91/followersjE`  >https://api.github.com/users/jeremyk-91/following{/other_user}jG`  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jI`  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jK`  5https://api.github.com/users/jeremyk-91/subscriptionsjM`  ,https://api.github.com/users/jeremyk-91/orgsjO`  -https://api.github.com/users/jeremyk-91/reposjQ`  8https://api.github.com/users/jeremyk-91/events{/privacy}jS`  7https://api.github.com/users/jeremyk-91/received_eventsjU`  UserjW`  uparents]}(j`  (52a14290334d3af76d847ef393b1b3ce25d6b463j'`  ^https://api.github.com/repos/palantir/atlasdb/commits/52a14290334d3af76d847ef393b1b3ce25d6b463j5`  Shttps://github.com/palantir/atlasdb/commit/52a14290334d3af76d847ef393b1b3ce25d6b463uastats}(totalK6	additionsK	deletionsKufiles](}(j`  (6fff522b93c2fac008381bf889fb8bd37ac6b462filenamematlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelection.javastatusmodifiedjq`  Kjr`  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaraw_urlhttps://github.com/palantir/atlasdb/raw/69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.java?ref=69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4patchXm  @@ -60,6 +60,10 @@ default void check() {
                 SafeArg.of("endColumnExclusive", endColumnExclusive()));
     }
 
+    static ColumnRangeSelection all() {
+        return ImmutableColumnRangeSelection.builder().build();
+    }
+
     static ImmutableColumnRangeSelection.Builder builder() {
         return ImmutableColumnRangeSelection.builder();
     }u}(j`  (813978dd1860b6fe6d1edf472c0e66a8bd3a02a9jw`  oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javajy`  modifiedjq`  Kjr`  Kj{`  Kj|`  https://github.com/palantir/atlasdb/blob/69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj~`  https://github.com/palantir/atlasdb/raw/69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj`  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4j`  X  @@ -32,7 +32,7 @@ public interface InteractiveTransaction {
 
     void delete(String table, WorkloadCell workloadCell);
 
-    List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection);
+    List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection);
 
     List<WitnessedTransactionAction> witness();
 }u}(j`  (bad62fdfc0f4e5f5e54e27631b446f28ca159cc1jw`  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javajy`  modifiedjq`  Kjr`  K
j{`  Kj|`  https://github.com/palantir/atlasdb/blob/69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj~`  https://github.com/palantir/atlasdb/raw/69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj`  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4j`  Xr  @@ -26,7 +26,6 @@
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
@@ -101,7 +100,7 @@ public void delete(String table, WorkloadCell workloadCell) {
     }
 
     @Override
-    public List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection) {
+    public List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection) {
         return run(
                 tableReference -> {
                     // Having a non-configurable batch hint is a bit iffy, but suffices as this won't be used in
@@ -111,20 +110,22 @@ public List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRang
                             List.of(AtlasDbUtils.toAtlasKey(row)),
                             BatchColumnRangeSelection.create(
                                     AtlasDbUtils.toAtlasColumnRangeSelection(columnRangeSelection), 100));
+                    Preconditions.checkState(
+                            iterators.size() == 1,
+                            "Expected exactly one iterator to be returned",
+                            SafeArg.of("iteratorsReturned", iterators.size()));
                     List<ColumnValue> columnsAndValues = EntryStream.of(iterators.get(AtlasDbUtils.toAtlasKey(row)))
                             .mapKeys(Cell::getColumnName)
                             .mapKeys(AtlasDbUtils::fromAtlasColumn)
                             .mapValues(AtlasDbUtils::fromAtlasValue)
                             .map(entry -> ColumnValue.of(entry.getKey(), entry.getValue()))
                             .collect(Collectors.toList());
-                    witnessedTransactionActions.add(WitnessedRowColumnRangeReadTransactionAction.builder()
-                            .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                                    .table(table)
-                                    .row(row)
-                                    .columnRangeSelection(columnRangeSelection)
-                                    .build())
-                            .columnsAndValues(columnsAndValues)
-                            .build());
+                    witnessedTransactionActions.add(RowColumnRangeReadTransactionAction.builder()
+                            .table(table)
+                            .row(row)
+                            .columnRangeSelection(columnRangeSelection)
+                            .build()
+                            .witness(columnsAndValues));
                     return columnsAndValues;
                 },
                 table);u}(j`  (461cdd058f7b1d94f60003aa74ed1f6caed5e9b0jw`  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javajy`  modifiedjq`  K	jr`  Kj{`  Kj|`  https://github.com/palantir/atlasdb/blob/69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj~`  https://github.com/palantir/atlasdb/raw/69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj`  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4j`  X  @@ -86,19 +86,15 @@ public void readHandlesEmptyAndPresentValue() {
     public void witnessRecordsColumnRangeActions() {
         assertThat(readWrite(transaction -> {
                     transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            WORKLOAD_CELL_TWO.key(),
-                            ColumnRangeSelection.builder().build());
+                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
                 }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedRowColumnRangeReadTransactionAction.builder()
                                 .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                         .table(TABLE_1)
                                         .row(WORKLOAD_CELL_TWO.key())
-                                        .columnRangeSelection(
-                                                ColumnRangeSelection.builder().build())
+                                        .columnRangeSelection(ColumnRangeSelection.all())
                                         .build())
                                 .addColumnsAndValues(ColumnValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
                                 .build());
@@ -107,17 +103,13 @@ public void witnessRecordsColumnRangeActions() {
     @Test
     public void emptyColumnRangeReadsAreRecorded() {
         assertThat(readWrite(transaction -> {
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            WORKLOAD_CELL_TWO.key(),
-                            ColumnRangeSelection.builder().build());
+                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
                 }))
                 .containsExactly(WitnessedRowColumnRangeReadTransactionAction.builder()
                         .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                 .table(TABLE_1)
                                 .row(WORKLOAD_CELL_TWO.key())
-                                .columnRangeSelection(
-                                        ColumnRangeSelection.builder().build())
+                                .columnRangeSelection(ColumnRangeSelection.all())
                                 .build())
                         .build());
     }
@@ -129,8 +121,7 @@ public void allRelevantCellsAreRecordedForFullColumnScan() {
                     IntStream.range(0, iterationCount)
                             .forEach(column ->
                                     transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-                    transaction.getRowColumnRange(
-                            TABLE_1, 1, ColumnRangeSelection.builder().build());
+                    transaction.getRowColumnRange(TABLE_1, 1, ColumnRangeSelection.all());
                 }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
@@ -189,8 +180,8 @@ public void deleteThrowsWhenTableDoesNotExist() {
 
     @Test
     public void getRowsColumnRangeThrowsWhenTableDoesNotExist() {
-        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.getRowColumnRange(
-                TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.builder().build()));
+        assertThatThrownWhenUnknownTableReferenced(transaction ->
+                transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.all()));
     }
 
     @Test
@@ -213,8 +204,8 @@ public void deleteThrowsWhenInteractiveTransactionAlreadyWitnessed() {
 
     @Test
     public void getRowColumnRangeThrowsWhenInteractiveTransactionAlreadyWitnessed() {
-        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(transaction -> transaction.getRowColumnRange(
-                TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.builder().build()));
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(transaction ->
+                transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.all()));
     }
 
     private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {ueu(9890d0f689b9f016270927b870e362d1cdbbbdb9}(sha(9890d0f689b9f016270927b870e362d1cdbbbdb9node_idEC_kwDOAjP5fdoAKDk4OTBkMGY2ODliOWYwMTYyNzA5MjdiODcwZTM2MmQxY2RiYmJkYjkcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-13T09:20:32Zu	committer}(j`  	Tom Papkej`  tpapke@palantir.comj`  2023-06-13T09:20:32ZumessageAlso record thread info in unlock and unlockAndFreeze (before calling .unlock() on the lock)

Add unit tests for grant-related methods, unlock, and unlockAndFreezetree}(j`  (7947264a3b12b6be7b0b00abff41eed45a1c2e91url`https://api.github.com/repos/palantir/atlasdb/git/trees/7947264a3b12b6be7b0b00abff41eed45a1c2e91uj`  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9890d0f689b9f016270927b870e362d1cdbbbdb9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSINOAACgkQmF9s0kaF
Iw2nCAgAvFDhwKuDp2SicXjlW2LhWePSfsKXjNGR2FxFaauMI5MLfBnOpepefglY
y0nSJ/g6/n82IraQ9zJ8KXUCc9zR2hSgbtihLW8wq+ayewDcGo0bJiIw7v1+ZdOQ
WM6TLODSNeLAB2tIvs+o1s9NgGzHuP6vGQoumABxmiUyy6od4/ZA2LDHXhITCou8
dbSkbubMmog8HZewRQGsbvFVm4sCRJMyiuak0J3irp1UtbjLSRUWhu05S4hkYG8C
WWUrZXTWVTuQY7P5wnLq39aleUSEwr8VW1mNOh60/jHsAejgGEnQEVQLJ4s2LjUd
B7TFd9tFWQAr/RQZmEJdEbdI8gpEiQ==
=kyrN
-----END PGP SIGNATURE-----payloadXv  tree 7947264a3b12b6be7b0b00abff41eed45a1c2e91
parent 779e43f495612e720a8f70c0d32a39443634f190
author Tom Papke <tpapke@palantir.com> 1686648032 +0100
committer Tom Papke <tpapke@palantir.com> 1686648032 +0100

Also record thread info in unlock and unlockAndFreeze (before calling .unlock() on the lock)

Add unit tests for grant-related methods, unlock, and unlockAndFreeze
uuj`  ^https://api.github.com/repos/palantir/atlasdb/commits/9890d0f689b9f016270927b870e362d1cdbbbdb9html_urlShttps://github.com/palantir/atlasdb/commit/9890d0f689b9f016270927b870e362d1cdbbbdb9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9890d0f689b9f016270927b870e362d1cdbbbdb9/commentsj`  }(login	ToemmscheidJboj`  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j`  &https://api.github.com/users/Toemmschej`  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj`  }(j`  	Toemmschej`  Jboj`  MDQ6VXNlcjQzNjc1NDkwj`  4https://avatars.githubusercontent.com/u/43675490?v=4j`  h5j`  &https://api.github.com/users/Toemmschej`  https://github.com/Toemmschej`  0https://api.github.com/users/Toemmsche/followersj`  =https://api.github.com/users/Toemmsche/following{/other_user}j`  6https://api.github.com/users/Toemmsche/gists{/gist_id}j`  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j`  4https://api.github.com/users/Toemmsche/subscriptionsj`  +https://api.github.com/users/Toemmsche/orgsj`  ,https://api.github.com/users/Toemmsche/reposj`  7https://api.github.com/users/Toemmsche/events{/privacy}j`  6https://api.github.com/users/Toemmsche/received_eventsj`  Userj`  uparents]}(j`  (779e43f495612e720a8f70c0d32a39443634f190j`  ^https://api.github.com/repos/palantir/atlasdb/commits/779e43f495612e720a8f70c0d32a39443634f190j`  Shttps://github.com/palantir/atlasdb/commit/779e43f495612e720a8f70c0d32a39443634f190uastats}(totalK	additionsKr	deletionsK4ufiles](}(j`  (e75c9b3bf86bee2fe73b8d9547d8cbdf453f39a3filenameClock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javastatusmodifiedj a  Kja  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/9890d0f689b9f016270927b870e362d1cdbbbdb9/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9890d0f689b9f016270927b870e362d1cdbbbdb9/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=9890d0f689b9f016270927b870e362d1cdbbbdb9patchX  @@ -676,6 +676,10 @@ public boolean unlockAndFreeze(HeldLocksToken token) {
             throw new IllegalArgumentException(MessageFormatter.format(UNLOCK_AND_FREEZE, heldLocks.realToken)
                     .getMessage());
         }
+        if (threadInfoConfiguration.recordThreadInfo()) {
+            // unlockAndFreeze will succeed
+            invalidateThreadInfoForHeldLocks(heldLocks.realToken);
+        }
         for (ClientAwareReadWriteLock lock : heldLocks.locks.getKeys()) {
             lock.get(client, LockMode.WRITE).unlockAndFreeze();
         }
@@ -694,6 +698,10 @@ private <T extends ExpiringToken> boolean unlockInternal(T token, ConcurrentMap<
         if (heldLocks == null) {
             return false;
         }
+        if (threadInfoConfiguration.recordThreadInfo()) {
+            // we can assume that unlock will succeed at this point
+            invalidateThreadInfoForHeldLocks(heldLocks.realToken);
+        }
 
         long heldDuration = System.currentTimeMillis() - token.getCreationDateMs();
         if (requestLogger.isDebugEnabled()) {
@@ -1261,6 +1269,12 @@ public long currentTimeMillis() {
         return System.currentTimeMillis();
     }
 
+    private void invalidateThreadInfoForHeldLocks(ExpiringToken token) {
+        for (LockDescriptor lock : token.getLockDescriptors()) {
+            lastAcquiringThread.invalidate(lock);
+        }
+    }
+
     @Override
     public ThreadAwareLockClient getLastAcquiringThread(LockDescriptor lock) {
         return lastAcquiringThread.getIfPresent(lock);u}(j`  (947f7c9a24f0a29b0b576e92bf4d810389f821a3ja  Rlock-impl/src/test/java/com/palantir/lock/impl/ThreadAwareLockServiceImplTest.javaja  modifiedj a  Kdja  K4j
a  Kja  https://github.com/palantir/atlasdb/blob/9890d0f689b9f016270927b870e362d1cdbbbdb9/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.javaj
a  https://github.com/palantir/atlasdb/raw/9890d0f689b9f016270927b870e362d1cdbbbdb9/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.javaja  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.java?ref=9890d0f689b9f016270927b870e362d1cdbbbdb9ja  XE9  @@ -20,6 +20,7 @@
 
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.lock.HeldLocksGrant;
 import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
 import com.palantir.lock.LockClient;
 import com.palantir.lock.LockDescriptor;
@@ -34,28 +35,23 @@
 import java.util.List;
 import java.util.Map;
 import java.util.Map.Entry;
-import java.util.concurrent.Callable;
 import java.util.concurrent.CyclicBarrier;
 import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Future;
 import java.util.concurrent.TimeUnit;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 import org.junit.Test;
 
 public class ThreadAwareLockServiceImplTest {
 
-    // Disable background thread info collection by default, it will be invoked manually instead
     private final LockServiceImpl lockService = LockServiceImpl.create(LockServerOptions.builder()
             .isStandaloneServer(false)
             .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
                     .recordThreadInfo(true)
                     .build())
             .build());
 
-    // default for thread info configuration
-    private final LockServiceImpl defaultLockService = LockServiceImpl.create(
-            LockServerOptions.builder().isStandaloneServer(false).build());
-
     private final ExecutorService executor =
             PTExecutors.newCachedThreadPool(ThreadAwareLockServiceImplTest.class.getName());
 
@@ -67,7 +63,10 @@ public class ThreadAwareLockServiceImplTest {
     private static final String TEST_THREAD_2 = "thread-2";
     private static final String TEST_THREAD_3 = "thread-3";
 
-    private static final LockClient TEST_LOCK_CLIENT = LockClient.ANONYMOUS;
+    private static final LockRequest LOCK_1_THREAD_1_WRITE_REQUEST = LockRequest.builder(
+                    ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+            .withCreatingThreadName(TEST_THREAD_1)
+            .build();
 
     @Test
     public void initialThreadInfoIsEmpty() {
@@ -78,23 +77,18 @@ public void initialThreadInfoIsEmpty() {
 
     @Test
     public void recordsThreadInfo_singleLock() throws InterruptedException {
-        LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
-                .withCreatingThreadName(TEST_THREAD_1)
-                .build();
-
-        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
 
         assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
-                .isEqualTo(ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_1));
+                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1));
     }
 
     @Test
     public void doesNotRecordThreadInfoByDefault() throws InterruptedException {
-        LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
-                .withCreatingThreadName(TEST_THREAD_1)
-                .build();
+        final LockServiceImpl defaultLockService = LockServiceImpl.create(
+                LockServerOptions.builder().isStandaloneServer(false).build());
 
-        defaultLockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest);
+        defaultLockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
 
         assertThat(defaultLockService.getLastAcquiringThread(TEST_LOCK_1)).isNull();
     }
@@ -120,12 +114,12 @@ public void recordsThreadInfo_multipleUniqueLocks_fromDifferentThreads() throws
                                     .collect(Collectors.toMap(lock -> lock, lock -> LockMode.WRITE))))
                     .withCreatingThreadName(threadName)
                     .build();
-            lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest);
+            lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest);
         }
 
         Map<LockDescriptor, ThreadAwareLockClient> expected = locksPerThread.keySet().stream()
                 .flatMap(threadName -> locksPerThread.get(threadName).stream()
-                        .map(lock -> Map.entry(lock, ThreadAwareLockClient.of(TEST_LOCK_CLIENT, threadName))))
+                        .map(lock -> Map.entry(lock, ThreadAwareLockClient.of(LockClient.ANONYMOUS, threadName))))
                 .collect(Collectors.toMap(Entry::getKey, Entry::getValue));
 
         expected.forEach((lock, clientThread) -> {
@@ -144,21 +138,17 @@ public void recordsThreadInfo_sharedLock_fromDifferentThreads() throws Interrupt
                 .withCreatingThreadName(TEST_THREAD_2)
                 .build();
 
-        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest1);
-        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest2);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest1);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
 
         assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
                 .isIn(
-                        ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_1),
-                        ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_2));
+                        ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1),
+                        ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_2));
     }
 
     @Test
     public void doesNotRecordDroppedLocksWithLockAllOrNone() throws InterruptedException {
-        LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
-                .withCreatingThreadName(TEST_THREAD_1)
-                .build();
-
         // T2 cannot get lock 1 -> grouping behavior LOCK_ALL_OR_NONE will release lock 2, even though it could have
         // been locked
         LockRequest lockRequest2 = LockRequest.builder(
@@ -167,32 +157,44 @@ public void doesNotRecordDroppedLocksWithLockAllOrNone() throws InterruptedExcep
                 .withCreatingThreadName(TEST_THREAD_2)
                 .build();
 
-        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest1);
-        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest2);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
 
         assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
-                .isEqualTo(ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_1));
+                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1));
     }
 
     @Test
     public void doesNotRecordFailedLocks() throws InterruptedException {
-        LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
-                .withCreatingThreadName(TEST_THREAD_1)
-                .build();
         LockRequest lockRequest2 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
                 .doNotBlock()
                 .lockAsManyAsPossible()
                 .withCreatingThreadName(TEST_THREAD_2)
                 .build();
 
-        LockResponse response = lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest1);
-        // should fail to acquire lock
-        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest2);
-        // After unlocking locks of T1, no more locks should be held by any thread
-        lockService.unlock(response.getLockRefreshToken());
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
 
         assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
-                .isEqualTo(ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_1));
+                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1));
+    }
+
+    @Test
+    public void recordsUnlock() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockService.unlock(response.getToken());
+
+        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1)).isNull();
+    }
+
+    @Test
+    public void recordsUnlockAndFreezeForNonAnonymousClient() throws InterruptedException {
+        LockResponse response = lockService.lockWithFullLockResponse(
+                LockClient.of("non-anonymous-client"), LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockService.unlockAndFreeze(response.getToken());
+
+        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1)).isNull();
     }
 
     @Test
@@ -201,44 +203,90 @@ public void recordsCorrectStateAfterMultipleOperations() throws Exception {
 
         // T1 locks 1 exclusively and locks 2 in shared mode
         LockResponse response1 = lockService.lockWithFullLockResponse(
-                TEST_LOCK_CLIENT,
+                LockClient.ANONYMOUS,
                 LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
                         .doNotBlock()
                         .lockAsManyAsPossible()
                         .withCreatingThreadName(TEST_THREAD_1)
                         .build());
 
-        // T2 won't get lock 1, but locks 3 in exclusive mode,
+        // T2 shouldn't get 1, but locks 3 in exclusive mode,
         LockResponse response2 = lockService.lockWithFullLockResponse(
-                TEST_LOCK_CLIENT,
+                LockClient.ANONYMOUS,
                 LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_3, LockMode.WRITE))
                         .doNotBlock()
                         .lockAsManyAsPossible()
                         .withCreatingThreadName(TEST_THREAD_2)
                         .build());
 
-        executor.submit((Callable<Void>) () -> {
+        Future<LockResponse> response3 = executor.submit(() -> {
 
-            // T3 will wait 5 seconds to lock 1 in exclusive mode and lock 2 in shared mode
-            LockResponse response3 = lockService.lockWithFullLockResponse(
-                    TEST_LOCK_CLIENT,
+            // T3 will wait at most 5 seconds to lock 1 in exclusive mode and lock 2 in shared mode
+            LockResponse response = lockService.lockWithFullLockResponse(
+                    LockClient.ANONYMOUS,
                     LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
                             .blockForAtMost(SimpleTimeDuration.of(5, TimeUnit.SECONDS))
                             .lockAsManyAsPossible()
                             .withCreatingThreadName(TEST_THREAD_3)
                             .build());
             barrier.await();
-            return null;
+            return response;
         });
-        lockService.unlock(response1.getLockRefreshToken());
+        lockService.unlock(response1.getToken());
         barrier.await();
 
-        // Now T1 should hold nothing, T2 holds 3 in exclusive mode, T3 holds 1 in exclusive and 2 in shared mode
+        // T1 should hold nothing, T2 holds 3 in exclusive mode, T3 holds 1 in exclusive and 2 in shared mode
         assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
-                .isEqualTo(ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_3));
+                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_3));
         assertThat(lockService.getLastAcquiringThread(TEST_LOCK_2))
-                .isEqualTo(ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_3));
+                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_3));
         assertThat(lockService.getLastAcquiringThread(TEST_LOCK_3))
-                .isEqualTo(ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_2));
+                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+
+        lockService.unlock(response2.getToken());
+
+        // Only T3 should hold locks
+        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
+                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_2))
+                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_3)).isNull();
+
+        lockService.unlock(response3.get().getToken());
+
+        // No more locks should be held
+        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1)).isNull();
+        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_2)).isNull();
+        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_3)).isNull();
+    }
+
+    @Test
+    public void recordsConvertToGrant() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockService.convertToGrant(response.getToken());
+
+        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
+                .isEqualTo(ThreadAwareLockClient.of(LockClient.INTERNAL_LOCK_GRANT_CLIENT, "N/A"));
+    }
+
+    @Test
+    public void recordsUseGrant() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        HeldLocksGrant grant = lockService.convertToGrant(response.getToken());
+        lockService.useGrant(LockClient.ANONYMOUS, grant);
+
+        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
+                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, "Converted from Grant, Missing Thread Name"));
+    }
+
+    @Test
+    public void refreshDoesNotChangeLastAcquiringThread() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockService.refreshTokens(List.of(response.getToken()));
+        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
+                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1));
     }
 }ueu(1ee9ae83fb7df9d66b2a3d1afebc2ec7ee470ab3}(sha(1ee9ae83fb7df9d66b2a3d1afebc2ec7ee470ab3node_idEC_kwDOAjP5fdoAKDFlZTlhZTgzZmI3ZGY5ZDY2YjJhM2QxYWZlYmMyZWM3ZWU0NzBhYjMcommit}(author}(nameMohammed Daudaliemailmdaudali@palantir.comdate2023-02-28T15:11:00Zu	committer}(j%a  Mohammed Daudalij'a  mdaudali@palantir.comj)a  2023-02-28T15:11:00Zumessagecleanuptree}(ja  (6cc8384620f66930cfc528781724ed85dbfcd38eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/6cc8384620f66930cfc528781724ed85dbfcd38euj5a  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1ee9ae83fb7df9d66b2a3d1afebc2ec7ee470ab3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE85NpmxiQII63+jWv1DJ7K5YIya0FAmP+GYQACgkQ1DJ7K5YI
ya0c1wgArKprV6mnrOPTkWQCzWMMtr+C00DNn4tmV3c3ATZQt7uH+P7P9o5GhHk+
LCt34MyV93D3shxBUzgY+QjUpXigXn7XmAS+Hb6Te6iVPGXEwLnVMkfig/Ug6aPG
+fPnpbM4IUm8X+NTO0T+6xNoBw9sQObVnk4EXW6jkR9RvVfep2m99wQAob/UT/cw
MgGTClaEJWfNTrk1wmREmaA0NRccsMwSq2avITSr2BPQUGAzkxdyWQ0ygxbmltSc
3anLPB5YctbHrX1JB+aHv11X2NK/bc6lsx7EGLO/CoaETbe4fDw8cazJY6yuWJJR
BMJ8s4abz++YdNDTrp+LPvV/8j01xQ==
=dv58
-----END PGP SIGNATURE-----      payloadtree 6cc8384620f66930cfc528781724ed85dbfcd38e
parent e776f01feced6142121dde259ba4dd7125c8ef51
author Mohammed Daudali <mdaudali@palantir.com> 1677597060 +0000
committer Mohammed Daudali <mdaudali@palantir.com> 1677597060 +0000

cleanup
uuj5a  ^https://api.github.com/repos/palantir/atlasdb/commits/1ee9ae83fb7df9d66b2a3d1afebc2ec7ee470ab3html_urlShttps://github.com/palantir/atlasdb/commit/1ee9ae83fb7df9d66b2a3d1afebc2ec7ee470ab3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1ee9ae83fb7df9d66b2a3d1afebc2ec7ee470ab3/commentsj#a  }(loginmdaudaliidJ ja  MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5j5a  %https://api.github.com/users/mdaudalijCa  https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminuj+a  }(jHa  mdaudalijJa  J ja  MDQ6VXNlcjE4MTI3NjQ=jLa  3https://avatars.githubusercontent.com/u/1812764?v=4jNa  h5j5a  %https://api.github.com/users/mdaudalijCa  https://github.com/mdaudalijQa  /https://api.github.com/users/mdaudali/followersjSa  <https://api.github.com/users/mdaudali/following{/other_user}jUa  5https://api.github.com/users/mdaudali/gists{/gist_id}jWa  <https://api.github.com/users/mdaudali/starred{/owner}{/repo}jYa  3https://api.github.com/users/mdaudali/subscriptionsj[a  *https://api.github.com/users/mdaudali/orgsj]a  +https://api.github.com/users/mdaudali/reposj_a  6https://api.github.com/users/mdaudali/events{/privacy}jaa  5https://api.github.com/users/mdaudali/received_eventsjca  Userjea  uparents]}(ja  (e776f01feced6142121dde259ba4dd7125c8ef51j5a  ^https://api.github.com/repos/palantir/atlasdb/commits/e776f01feced6142121dde259ba4dd7125c8ef51jCa  Shttps://github.com/palantir/atlasdb/commit/e776f01feced6142121dde259ba4dd7125c8ef51uastats}(totalK
	additionsK	deletionsKufiles](}(ja  (45ab8df8c5897569a9513ef70c6303ec9283a96bfilenamedatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javastatusmodifiedja  Kja  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/1ee9ae83fb7df9d66b2a3d1afebc2ec7ee470ab3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1ee9ae83fb7df9d66b2a3d1afebc2ec7ee470ab3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=1ee9ae83fb7df9d66b2a3d1afebc2ec7ee470ab3patchX   @@ -387,9 +387,9 @@ Set<CassandraServer> validateNewHostsTopologiesAndMaybeAddToPool(
         if (serversToAdd.isEmpty()) {
             return Set.of();
         }
-
+        Set<CassandraServer> serversToAddWithoutOrigin = serversToAdd.keySet();
         Map<CassandraServer, CassandraClientPoolingContainer> serversToAddContainers =
-                getContainerForNewServers(serversToAdd.keySet());
+                getContainerForNewServers(serversToAddWithoutOrigin);
 
         Preconditions.checkArgument(
                 Sets.intersection(currentContainers.keySet(), serversToAddContainers.keySet())
@@ -412,7 +412,7 @@ Set<CassandraServer> validateNewHostsTopologiesAndMaybeAddToPool(
                         serversToAdd, allContainers, Duration.ofSeconds(5), Duration.ofMinutes(1));
 
         Set<CassandraServer> validatedServersToAdd =
-                Sets.difference(serversToAdd.keySet(), newHostsWithDifferingTopology);
+                Sets.difference(serversToAddWithoutOrigin, newHostsWithDifferingTopology);
         validatedServersToAdd.forEach(server -> cassandra.addPool(server, serversToAddContainers.get(server)));
         newHostsWithDifferingTopology.forEach(
                 server -> absentHostTracker.trackAbsentCassandraServer(server, serversToAddContainers.get(server)));u}(ja  (81558f1f4edc8bff964c4e8ca571ba37e5f3d881ja  datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolTest.javaja  modifiedja  Kja  Kja  Kja  https://github.com/palantir/atlasdb/blob/1ee9ae83fb7df9d66b2a3d1afebc2ec7ee470ab3/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaja  https://github.com/palantir/atlasdb/raw/1ee9ae83fb7df9d66b2a3d1afebc2ec7ee470ab3/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaja  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.java?ref=1ee9ae83fb7df9d66b2a3d1afebc2ec7ee470ab3ja  X  @@ -668,9 +668,10 @@ private void setupThriftServers(Set<InetSocketAddress> servers) {
                 ImmutableDefaultConfig.builder().addAllThriftHosts(servers).build();
         when(runtimeConfig.servers()).thenReturn(config);
         when(cassandra.getCurrentServerListFromConfig())
-                .thenReturn(config.accept(CassandraServersConfigs.ThriftHostsExtractingVisitor.INSTANCE).stream()
-                        .map(CassandraServer::of)
-                        .collect(ImmutableMap.toImmutableMap(Function.identity(), _v -> CassandraServerOrigin.CONFIG)));
+                .thenReturn(CassandraServerOrigin.mapAllServersToOrigin(
+                        config.accept(CassandraServersConfigs.ThriftHostsExtractingVisitor.INSTANCE).stream()
+                                .map(CassandraServer::of),
+                        CassandraServerOrigin.CONFIG));
     }
 
     private void setupHostsWithConsistentTopology() {ueu(3bdc589a81b2625cb6bfbff19f0f6cd644e472d2}(sha(3bdc589a81b2625cb6bfbff19f0f6cd644e472d2node_idEC_kwDOAjP5fdoAKDNiZGM1ODlhODFiMjYyNWNiNmJmYmZmMTlmMGY2Y2Q2NDRlNDcyZDIcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-25T19:50:18Zu	committer}(ja  
Ahmed Alouaneja  aalouane@palantir.comja  2023-04-25T19:50:18Zumessageunit test parallelism: 5tree}(ja  (3fbb4127cb9ede600f5d4003a82fef52bc7f51c8url`https://api.github.com/repos/palantir/atlasdb/git/trees/3fbb4127cb9ede600f5d4003a82fef52bc7f51c8uja  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3bdc589a81b2625cb6bfbff19f0f6cd644e472d2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRILvoACgkQPlMHVIT1
yhpQ9Qf+NPArkLpT6lKtSCZBD5S8eQqby/0vNy2jBgqaWrsgr6ua/0QnXcbAzHrE
D2o8AOFGIHl1sDlrlB04H+9Zwnet0KcMz4vBGV/bP0j6jjzi3Fw1v5/8ZuQwHhGE
M7mvNM3VuaO5oQ8P4UelKxNH9bEHfmDRscGw6Z82cjrEMsfKnprRMPuSwtDOiJDJ
E6FK7d87p8QN2dnLKn+GDH+mhMOePmszp5HMiAUHUpvPxe5nx+2WM3tPPMYFPIYt
A5pe5v+jYApQU8L5e8i7PJpgRmGU3qgt0OTnGGLEqA+L/PzvPl27sqOb1qE6Vuwm
CVkw2z1tgW3EZTMJcMPWe/yUxQ8hsw==
=JTgn
-----END PGP SIGNATURE-----payloadtree 3fbb4127cb9ede600f5d4003a82fef52bc7f51c8
parent 58969d9d95212a8b0480473d5db342ee5223ffd9
author Ahmed Alouane <aalouane@palantir.com> 1682452218 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682452218 +0100

unit test parallelism: 5
uuja  ^https://api.github.com/repos/palantir/atlasdb/commits/3bdc589a81b2625cb6bfbff19f0f6cd644e472d2html_urlShttps://github.com/palantir/atlasdb/commit/3bdc589a81b2625cb6bfbff19f0f6cd644e472d2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3bdc589a81b2625cb6bfbff19f0f6cd644e472d2/commentsja  }(loginergo14idJja  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5ja  #https://api.github.com/users/ergo14ja  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuja  }(ja  ergo14ja  Jja  MDQ6VXNlcjMwOTAzNzM2ja  4https://avatars.githubusercontent.com/u/30903736?v=4ja  h5ja  #https://api.github.com/users/ergo14ja  https://github.com/ergo14ja  -https://api.github.com/users/ergo14/followersja  :https://api.github.com/users/ergo14/following{/other_user}ja  3https://api.github.com/users/ergo14/gists{/gist_id}ja  :https://api.github.com/users/ergo14/starred{/owner}{/repo}ja  1https://api.github.com/users/ergo14/subscriptionsja  (https://api.github.com/users/ergo14/orgsja  )https://api.github.com/users/ergo14/reposja  4https://api.github.com/users/ergo14/events{/privacy}ja  3https://api.github.com/users/ergo14/received_eventsja  Userja  uparents]}(ja  (58969d9d95212a8b0480473d5db342ee5223ffd9ja  ^https://api.github.com/repos/palantir/atlasdb/commits/58969d9d95212a8b0480473d5db342ee5223ffd9ja  Shttps://github.com/palantir/atlasdb/commit/58969d9d95212a8b0480473d5db342ee5223ffd9uastats}(totalK	additionsK	deletionsK ufiles]}(ja  (7add1ceda42b48a00deba687e5fb88cff691254ffilename.circleci/config.ymlstatusmodifiedja  Kja  K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/3bdc589a81b2625cb6bfbff19f0f6cd644e472d2/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/3bdc589a81b2625cb6bfbff19f0f6cd644e472d2/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=3bdc589a81b2625cb6bfbff19f0f6cd644e472d2patchXZ  @@ -42,6 +42,7 @@ jobs:
       _JAVA_OPTIONS: "-XX:ActiveProcessorCount=8 -Xmx8g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
       CIRCLE_TEST_REPORTS: /home/circleci/junit
       CIRCLE_ARTIFACTS: /home/circleci/artifacts
+      UNIT_TEST_PARALLELISM: 5
 
     steps:
       - attach_workspace: { at: . }uau(80d4bd900e20d43656c45050bdd2b576586e2061}(sha(80d4bd900e20d43656c45050bdd2b576586e2061node_idEC_kwDOAjP5fdoAKDgwZDRiZDkwMGUyMGQ0MzY1NmM0NTA1MGJkZDJiNTc2NTg2ZTIwNjEcommit}(author}(nameJeremy Kongemailjeremykong@hotmail.comdate2023-05-05T17:38:30Zu	committer}(jb  svc-autoreleasejb  -pd-foundry-infrastructure-notify@palantir.comjb  2023-05-05T17:38:30Zumessage"Autorelease 0.849.0-rc1

[skip ci]tree}(jb  (3b82dad780ee553e2c20525346c6c8af5e0e06daurl`https://api.github.com/repos/palantir/atlasdb/git/trees/3b82dad780ee553e2c20525346c6c8af5e0e06dauj+b  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/80d4bd900e20d43656c45050bdd2b576586e2061
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRVPxcACgkQhbrR8ip7mDCRTgD9GTZKyMfL08fTfss/kU5xy7XP
WeZdWmec8J9ifMgaiXIBAI1piaIS9EEngWDiQYdn0IQ2MHlLNuehKnffklkWT5BX
=hnRY
-----END PGP SIGNATURE-----
payloadX  tree 3b82dad780ee553e2c20525346c6c8af5e0e06da
parent 7e9359cf72077244a3b2baee847b257577fb21b5
author Jeremy Kong <jeremykong@hotmail.com> 1683308310 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1683308310 +0000

Autorelease 0.849.0-rc1

[skip ci]uuj+b  ^https://api.github.com/repos/palantir/atlasdb/commits/80d4bd900e20d43656c45050bdd2b576586e2061html_urlShttps://github.com/palantir/atlasdb/commit/80d4bd900e20d43656c45050bdd2b576586e2061comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/80d4bd900e20d43656c45050bdd2b576586e2061/commentsjb  }(login
jeremyk-91idJZ jb  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j+b  'https://api.github.com/users/jeremyk-91j9b  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj!b  }(j>b  svc-autoreleasej@b  J(jb  MDQ6VXNlcjUxNzE4MzQ2jBb  4https://avatars.githubusercontent.com/u/51718346?v=4jDb  h5j+b  ,https://api.github.com/users/svc-autoreleasej9b  "https://github.com/svc-autoreleasejGb  6https://api.github.com/users/svc-autorelease/followersjIb  Chttps://api.github.com/users/svc-autorelease/following{/other_user}jKb  <https://api.github.com/users/svc-autorelease/gists{/gist_id}jMb  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jOb  :https://api.github.com/users/svc-autorelease/subscriptionsjQb  1https://api.github.com/users/svc-autorelease/orgsjSb  2https://api.github.com/users/svc-autorelease/reposjUb  =https://api.github.com/users/svc-autorelease/events{/privacy}jWb  <https://api.github.com/users/svc-autorelease/received_eventsjYb  Userj[b  uparents]}(jb  (7e9359cf72077244a3b2baee847b257577fb21b5j+b  ^https://api.github.com/repos/palantir/atlasdb/commits/7e9359cf72077244a3b2baee847b257577fb21b5j9b  Shttps://github.com/palantir/atlasdb/commit/7e9359cf72077244a3b2baee847b257577fb21b5uastats}(totalK 	additionsK 	deletionsK ufiles]u(d3afa8d65c2865b7503edb05aa5825832ad86ebe}(sha(d3afa8d65c2865b7503edb05aa5825832ad86ebenode_idEC_kwDOAjP5fdoAKGQzYWZhOGQ2NWMyODY1Yjc1MDNlZGIwNWFhNTgyNTgzMmFkODZlYmUcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-06T10:09:35Zu	committer}(jb  Lucas Meirelesjb  meireles31@msn.comjb  2023-07-06T10:09:35Zumessagefix documentation typotree}(j{b  (435558d57689eabf0ecf7d0271b64ff7d3af3753url`https://api.github.com/repos/palantir/atlasdb/git/trees/435558d57689eabf0ecf7d0271b64ff7d3af3753ujb  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d3afa8d65c2865b7503edb05aa5825832ad86ebe
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSmkt8ACgkQJd22kJ7J
GiybeAf/a4FjDqlmcr+zfr+elR+ubyIRrLn5jrffUrG52t+fVf/9tCNkwlMrEWjj
eaLoKX3gPu9aGNGxNprKSWo+YcO1KjjPzgOPzLNVqS2h1ELF0xqh4h0R77PjOXgP
q2mkaw0/yfMub+MQ92JYoocUK3KblptFj2m9tTuY1SD/Nqjw7Rw/a7OQmnGwkGoN
MfockaWCfwwfOCVJLxGYZ20/jb4WQGvf2Kk5HSiK8Bvn1DLkw+1AueMAldsC2KjI
MapWrGCCLS9CxFpUEspvLO/9R2xZ/NyD5/eFWweTn6W/l3Ttps2MpFyLuYauSrRm
UPnjV+lyTH6c18AuHfTCifp6KRUWug==
=jpfy
-----END PGP SIGNATURE-----payloadtree 435558d57689eabf0ecf7d0271b64ff7d3af3753
parent 8d5320db6a051494695af6323199a0d23761f5d5
author Lucas Meireles <meireles31@msn.com> 1688638175 +0100
committer Lucas Meireles <meireles31@msn.com> 1688638175 +0100

fix documentation typo
uujb  ^https://api.github.com/repos/palantir/atlasdb/commits/d3afa8d65c2865b7503edb05aa5825832ad86ebehtml_urlShttps://github.com/palantir/atlasdb/commit/d3afa8d65c2865b7503edb05aa5825832ad86ebecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d3afa8d65c2865b7503edb05aa5825832ad86ebe/commentsjb  }(loginLucasIMEidJg j}b  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jb  %https://api.github.com/users/LucasIMEjb  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujb  }(jb  LucasIMEjb  Jg j}b  MDQ6VXNlcjY3ODczMTE=jb  3https://avatars.githubusercontent.com/u/6787311?v=4jb  h5jb  %https://api.github.com/users/LucasIMEjb  https://github.com/LucasIMEjb  /https://api.github.com/users/LucasIME/followersjb  <https://api.github.com/users/LucasIME/following{/other_user}jb  5https://api.github.com/users/LucasIME/gists{/gist_id}jb  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jb  3https://api.github.com/users/LucasIME/subscriptionsjb  *https://api.github.com/users/LucasIME/orgsjb  +https://api.github.com/users/LucasIME/reposjb  6https://api.github.com/users/LucasIME/events{/privacy}jb  5https://api.github.com/users/LucasIME/received_eventsjb  Userjb  uparents]}(j{b  (8d5320db6a051494695af6323199a0d23761f5d5jb  ^https://api.github.com/repos/palantir/atlasdb/commits/8d5320db6a051494695af6323199a0d23761f5d5jb  Shttps://github.com/palantir/atlasdb/commit/8d5320db6a051494695af6323199a0d23761f5d5uastats}(totalK	additionsK	deletionsKufiles]}(j{b  (97156d2ffee5ea8f7a62a4b7e29534d7639dc8c8filenameOatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/Transaction.javastatusmodifiedjb  Kjb  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/d3afa8d65c2865b7503edb05aa5825832ad86ebe/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d3afa8d65c2865b7503edb05aa5825832ad86ebe/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.java?ref=d3afa8d65c2865b7503edb05aa5825832ad86ebepatchXX	  @@ -176,24 +176,24 @@ Iterator<Map.Entry<Cell, byte[]>> getSortedColumns(
     Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells);
 
     /**
-     * Similar to {@link #get(TableReference, Set)}, but allows the caller to specify the number of  expected present
+     * Similar to {@link #get(TableReference, Set)}, but allows the caller to specify the number of expected present
      * cells. This is important to allow clients that might have schemas that guarantees only a subset of the columns
-     * are present to still benefit from being able to skip the immutable timestamp lock check on non empty
-     * reads of thoroughly swept tables.
+     * are present to still benefit from being able to skip the immutable timestamp lock check on non-empty reads of
+     * thoroughly swept tables.
      *
      * If we find values for the exact number of expected present cells, we'll skip the immutable timestamp lock check.
      * If we find less values, we'll perform the immutable timestamp lock check.
-     * If we find more value, we'll throw an exception, as it means that either:
+     * If we find more values, we'll throw an exception, as it means that either:
      *  1 - There is a bug in the implementation of this method.
-     *  2 - The client is making an incorrect assumption about the maximum number of values that will be present and
+     *  2 - The client is making an incorrect assumption about the maximum number of values that will be present, and
      *      we could have returned empty values in the past when we should have not.
      *
-     * WARNING: This method should only be used if you REALLY know what you're doing. Otherwise you could have
+     * WARNING: This method should only be used if you REALLY know what you're doing. Otherwise, you could have
      * correctness issues by reading empty values when one is actually present if you don't use this method correctly.
      *
      * @param tableRef the table from which to get the values
      * @param cells the cells for which we want to get the values
-     * @param expectedNumberOfPresentCells the number of cells that are expected to be present.
+     * @param expectedNumberOfPresentCells the maximum number of cells that are expected to be present.
      * @return a {@link Map} from {@link Cell} to {@code byte[]} representing cell/value pairs
      */
     @Idempotentuau(2a8cbe1d641d2fca16bfbab9eab6046ac44eb7f0}(sha(2a8cbe1d641d2fca16bfbab9eab6046ac44eb7f0node_idEC_kwDOAjP5fdoAKDJhOGNiZTFkNjQxZDJmY2ExNmJmYmFiOWVhYjYwNDZhYzQ0ZWI3ZjAcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-17T09:27:44Zu	committer}(jb  
Sam Kramerjb  skramer@palantir.comjb  2023-05-17T09:27:44Zumessagedecrease lock refresh issuestree}(jb  (5a2ee87b45f733a27282f28861b5e7593ac90dedurl`https://api.github.com/repos/palantir/atlasdb/git/trees/5a2ee87b45f733a27282f28861b5e7593ac90deduj
c  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2a8cbe1d641d2fca16bfbab9eab6046ac44eb7f0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRknhEACgkQmPPOpKR4
XS2LjAgAgHCpSAoe7ivh4U4hF32UVDJGKVs/6BKS0LlzzvIiLbITPxk6vwICNCvN
cmG7MQDh0wXRzOmj8hIaU7J0wk3ucoiSHml2DUYxlCGe5WXw7459Ecaebacl7SNU
9FFVbYS5ckRsi2vY62kA8Yy1cRHPQ7GY4Uo7bwcubU/ZhNxvYNQzLRquejIQom86
wSHO3FLzxm569oGi1hyFif6ppLPUy2lMnRyKyjI6O2kBTnB8z5qcEhQfuypD7JcX
TmLIgFCAebTwlh2oyXjl+W+71bgfYSAua/jhU3zt0VjSwKpKq7dwUaXgQDsT4h3E
3aJtvkUaMvcIIHXrNiOnzVnzBaVzLA==
=Rg0R
-----END PGP SIGNATURE-----payloadtree 5a2ee87b45f733a27282f28861b5e7593ac90ded
parent 74d1c8d43219ef78bccbb7402ae7479502e40044
author Sam Kramer <skramer@palantir.com> 1684315664 +0100
committer Sam Kramer <skramer@palantir.com> 1684315664 +0100

decrease lock refresh issues
uuj
c  ^https://api.github.com/repos/palantir/atlasdb/commits/2a8cbe1d641d2fca16bfbab9eab6046ac44eb7f0html_urlShttps://github.com/palantir/atlasdb/commit/2a8cbe1d641d2fca16bfbab9eab6046ac44eb7f0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2a8cbe1d641d2fca16bfbab9eab6046ac44eb7f0/commentsjb  }(login
Sam-KrameridJ^2_ jb  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j
c  'https://api.github.com/users/Sam-Kramerjc  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj c  }(jc  
Sam-Kramerjc  J^2_ jb  MDQ6VXNlcjYyMzg4MTQ=j!c  3https://avatars.githubusercontent.com/u/6238814?v=4j#c  h5j
c  'https://api.github.com/users/Sam-Kramerjc  https://github.com/Sam-Kramerj&c  1https://api.github.com/users/Sam-Kramer/followersj(c  >https://api.github.com/users/Sam-Kramer/following{/other_user}j*c  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j,c  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j.c  5https://api.github.com/users/Sam-Kramer/subscriptionsj0c  ,https://api.github.com/users/Sam-Kramer/orgsj2c  -https://api.github.com/users/Sam-Kramer/reposj4c  8https://api.github.com/users/Sam-Kramer/events{/privacy}j6c  7https://api.github.com/users/Sam-Kramer/received_eventsj8c  Userj:c  uparents]}(jb  (74d1c8d43219ef78bccbb7402ae7479502e40044j
c  ^https://api.github.com/repos/palantir/atlasdb/commits/74d1c8d43219ef78bccbb7402ae7479502e40044jc  Shttps://github.com/palantir/atlasdb/commit/74d1c8d43219ef78bccbb7402ae7479502e40044uastats}(totalK	additionsK	deletionsKufiles](}(jb  (232e4880851ccb4ed18619d27ad7d68516c706b2filenamematlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javastatusmodifiedjTc  KjUc  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/2a8cbe1d641d2fca16bfbab9eab6046ac44eb7f0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2a8cbe1d641d2fca16bfbab9eab6046ac44eb7f0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=2a8cbe1d641d2fca16bfbab9eab6046ac44eb7f0patchXC  @@ -141,7 +141,7 @@ public static AtlasDbTransactionStoreFactory createFromConfig(
                 .globalTaggedMetricRegistry(metricsManager.getTaggedRegistry())
                 .runtimeConfigSupplier(atlasDbRuntimeConfig)
                 .defaultTimelockClientFactory(
-                        lockService -> TimeLockClient.createDefault(UnreliableTimeLockService.create(lockService), 100))
+                        lockService -> TimeLockClient.createDefault(UnreliableTimeLockService.create(lockService), 200))
                 .build()
                 .serializable();
 u}(jb  (b382d635d1bc75c85ca54225695722e301a220b2jZc  Nlock-api/src/main/java/com/palantir/lock/client/UnreliableTimeLockService.javaj\c  modifiedjTc  KjUc  Kj^c  Kj_c  https://github.com/palantir/atlasdb/blob/2a8cbe1d641d2fca16bfbab9eab6046ac44eb7f0/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javajac  https://github.com/palantir/atlasdb/raw/2a8cbe1d641d2fca16bfbab9eab6046ac44eb7f0/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javajcc  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.java?ref=2a8cbe1d641d2fca16bfbab9eab6046ac44eb7f0jec  X!  @@ -120,7 +120,7 @@ public WaitForLocksResponse waitForLocks(WaitForLocksRequest request) {
     @Override
     public Set<LockToken> refreshLockLeases(Set<LockToken> tokens) {
         Set<LockToken> tokensToRefresh = tokens.stream()
-                .filter(_token -> !buggify.maybe(0.025).asBoolean())
+                .filter(_token -> !buggify.maybe(0.01).asBoolean())
                 .collect(Collectors.toSet());
         Set<LockToken> tokensToUnlock = Sets.difference(tokens, tokensToRefresh);
         if (!tokensToUnlock.isEmpty()) {ueu(02208b25084200e80d9504f487d7d8f9512e3aa0}(sha(02208b25084200e80d9504f487d7d8f9512e3aa0node_idEC_kwDOAjP5fdoAKDAyMjA4YjI1MDg0MjAwZTgwZDk1MDRmNDg3ZDdkOGY5NTEyZTNhYTAcommit}(author}(nameChris Van de Veldeemailcvandevelde@palantir.comdate2023-05-22T11:00:38Zu	committer}(jyc  Chris Van de Veldej{c  cvandevelde@palantir.comj}c  2023-05-22T11:00:38ZumessageOther instancestree}(jqc  (a2e1eb03f85e0aab166a631672821b21e370645curl`https://api.github.com/repos/palantir/atlasdb/git/trees/a2e1eb03f85e0aab166a631672821b21e370645cujc  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/02208b25084200e80d9504f487d7d8f9512e3aa0
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEfsytHu2QbUsz5QamhCdbnbxuCwoFAmRrS10ACgkQhCdbnbxu
CwqtOgf+LrjwDoFtCyNCqjjybUw3fWO+LtooQTKE4r8tgE0O9RCyKoeRP2FG+dgx
Ym1wGPGV66x7/QFqjY/pZlyjVDGhTcmXWNwCSCGZTQUomuyioEWcYz/4jKWfuzaF
3r4I1mcXeEI5v2EK5YfRXLmlYY1f/L5F68S3qgvtDMgcUp7G7NElGaVmXBZFu35R
39len/n+RRq4uUI7qQt0BJDFqcBbLG0btzdaokdE5bKzSSyEU50dwJxWZMfFwOLL
+DctMJlZPBkk024a+5d8AXSMMb4Yn1mMaa6tw3eEICf8pD8iqW5gLON1Kao7Umsw
lIw8tsY2VJYVC+BTfQHZDPQiB+JZeQ==
=TJ8t
-----END PGP SIGNATURE-----payloadtree a2e1eb03f85e0aab166a631672821b21e370645c
parent 1a82430516296fd90b6f6c9a87b235b2ec250f70
author Chris Van de Velde <cvandevelde@palantir.com> 1684753238 +1000
committer Chris Van de Velde <cvandevelde@palantir.com> 1684753238 +1000

Other instances
uujc  ^https://api.github.com/repos/palantir/atlasdb/commits/02208b25084200e80d9504f487d7d8f9512e3aa0html_urlShttps://github.com/palantir/atlasdb/commit/02208b25084200e80d9504f487d7d8f9512e3aa0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/02208b25084200e80d9504f487d7d8f9512e3aa0/commentsjwc  }(loginCVdV-auidJDN jsc  MDQ6VXNlcjY5MjI2MDUy
avatar_url4https://avatars.githubusercontent.com/u/69226052?v=4gravatar_idh5jc  $https://api.github.com/users/CVdV-aujc  https://github.com/CVdV-au
followers_url.https://api.github.com/users/CVdV-au/followers
following_url;https://api.github.com/users/CVdV-au/following{/other_user}	gists_url4https://api.github.com/users/CVdV-au/gists{/gist_id}starred_url;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/CVdV-au/subscriptionsorganizations_url)https://api.github.com/users/CVdV-au/orgs	repos_url*https://api.github.com/users/CVdV-au/repos
events_url5https://api.github.com/users/CVdV-au/events{/privacy}received_events_url4https://api.github.com/users/CVdV-au/received_eventstypeUser
site_adminujc  }(jc  CVdV-aujc  JDN jsc  MDQ6VXNlcjY5MjI2MDUyjc  4https://avatars.githubusercontent.com/u/69226052?v=4jc  h5jc  $https://api.github.com/users/CVdV-aujc  https://github.com/CVdV-aujc  .https://api.github.com/users/CVdV-au/followersjc  ;https://api.github.com/users/CVdV-au/following{/other_user}jc  4https://api.github.com/users/CVdV-au/gists{/gist_id}jc  ;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}jc  2https://api.github.com/users/CVdV-au/subscriptionsjc  )https://api.github.com/users/CVdV-au/orgsjc  *https://api.github.com/users/CVdV-au/reposjc  5https://api.github.com/users/CVdV-au/events{/privacy}jc  4https://api.github.com/users/CVdV-au/received_eventsjc  Userjc  uparents]}(jqc  (1a82430516296fd90b6f6c9a87b235b2ec250f70jc  ^https://api.github.com/repos/palantir/atlasdb/commits/1a82430516296fd90b6f6c9a87b235b2ec250f70jc  Shttps://github.com/palantir/atlasdb/commit/1a82430516296fd90b6f6c9a87b235b2ec250f70uastats}(totalK	additionsK	deletionsKufiles]}(jqc  (425f63e3014596dfbd1797f171e6d89cd7416e24filenameiatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleOverflowWriteTable.javastatusmodifiedjc  Kjc  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/02208b25084200e80d9504f487d7d8f9512e3aa0/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javaraw_urlhttps://github.com/palantir/atlasdb/raw/02208b25084200e80d9504f487d7d8f9512e3aa0/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.java?ref=02208b25084200e80d9504f487d7d8f9512e3aa0patchXM
  @@ -352,8 +352,9 @@ private void deleteOverflow(String overflowTable, List<Object[]> args) {
         conns.get()
                 .updateManyUnregisteredQuery(
                         " /* DELETE_ONE_OVERFLOW (" + overflowTable + ") */ "
-                                + " DELETE /*+ INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */ "
-                                + "   FROM " + overflowTable + " m "
+                                + " DELETE /*+ INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") "
+                                + "            NO_INDEX_FFS(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */ "
+                                + "  FROM " + overflowTable + " m "
                                 + "  WHERE m.id IN (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName)
                                 + ") */ "
                                 + "                        i.overflow "
@@ -368,8 +369,9 @@ private void deleteOverflow(String overflowTable, List<Object[]> args) {
     private void deleteOverflowRange(String overflowTable, String shortTableName, RangeRequest range) {
         StringBuilder query = new StringBuilder();
         query.append(" /* DELETE_RANGE_OVERFLOW (").append(overflowTable).append(") */ ");
-        query.append(" DELETE /*+ INDEX(m pk_").append(overflowTable).append(") */ ");
-        query.append("   FROM ").append(overflowTable).append(" m ");
+        query.append(" DELETE /*+ INDEX(m pk_").append(overflowTable).append(") ");
+        query.append("            NO_INDEX_FFS(m pk_").append(overflowTable).append(") */ ");
+        query.append(" FROM ").append(overflowTable).append(" m ");
         query.append(" WHERE m.id IN (");
 
         // subquery for finding rows in the short table
@@ -400,7 +402,7 @@ private void deleteAllTimestampsOverflow(String overflowTable, List<Object[]> ar
                 .updateManyUnregisteredQuery(
                         " /* DELETE_ALL_TS_OVERFLOW (" + overflowTable + ") */ "
                                 + " DELETE /*+ INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ")"
-                                + "            NO_INDEX_FFS(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */ß"
+                                + "            NO_INDEX_FFS(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */"
                                 + " FROM " + overflowTable + " m "
                                 + " WHERE m.id IN (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName)
                                 + "   ) */ "uau(65fe1b88c257c1055665107081622e98f4002012}(sha(65fe1b88c257c1055665107081622e98f4002012node_idEC_kwDOAjP5fdoAKDY1ZmUxYjg4YzI1N2MxMDU1NjY1MTA3MDgxNjIyZTk4ZjQwMDIwMTIcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-08-08T13:02:59Zu	committer}(jc  	Tom Papkejc  tpapke@palantir.comjc  2023-08-09T08:49:51Zumessage$Random integration test for metadatatree}(jc  (03c4c6f45274ce7d7989a73bfb1d2123cab539e7url`https://api.github.com/repos/palantir/atlasdb/git/trees/03c4c6f45274ce7d7989a73bfb1d2123cab539e7uj d  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/65fe1b88c257c1055665107081622e98f4002012
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTTUy8ACgkQmF9s0kaF
Iw3sagf9FNrzx20nCACAb46hRlwEHCYa0YTf8vUfbOgGyX+XdFMB7P8Q3MCQVF5t
zyjLx3lGsNCchv2/2Io3zqymLkNJMoN75QKnpy9J8kGZ5pY6XOQtTq91UTrrnK/D
6vyXtsKOdzCTz4aoCoEeG7IsDxPo+bHtghddEwNyeho4grDPx+nwMT14pGkIf73O
GNdFk9jpZ8ciOMl5F3MZykTwNsNt1a6rWE6QnJw5yGdVbvbebkoCXignwKdcwAZF
kVAKnr6+FtzNI6pszPPz9L3u2Xzgdv/1zncCkAEqivKftyFbuvRY9HAptwBryB8/
SbR9/UF+9klnFe4oiLUu1IGJiEiRAA==
=FGSJ
-----END PGP SIGNATURE-----payloadtree 03c4c6f45274ce7d7989a73bfb1d2123cab539e7
parent d04ff4a19366637694f234ec45ff273546be9019
author Tom Papke <tpapke@palantir.com> 1691499779 +0100
committer Tom Papke <tpapke@palantir.com> 1691570991 +0100

Random integration test for metadata
uuj d  ^https://api.github.com/repos/palantir/atlasdb/commits/65fe1b88c257c1055665107081622e98f4002012html_urlShttps://github.com/palantir/atlasdb/commit/65fe1b88c257c1055665107081622e98f4002012comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/65fe1b88c257c1055665107081622e98f4002012/commentsjc  }(login	ToemmscheidJbojc  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j d  &https://api.github.com/users/Toemmschejd  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujc  }(jd  	Toemmschejd  Jbojc  MDQ6VXNlcjQzNjc1NDkwjd  4https://avatars.githubusercontent.com/u/43675490?v=4jd  h5j d  &https://api.github.com/users/Toemmschejd  https://github.com/Toemmschejd  0https://api.github.com/users/Toemmsche/followersjd  =https://api.github.com/users/Toemmsche/following{/other_user}j d  6https://api.github.com/users/Toemmsche/gists{/gist_id}j"d  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j$d  4https://api.github.com/users/Toemmsche/subscriptionsj&d  +https://api.github.com/users/Toemmsche/orgsj(d  ,https://api.github.com/users/Toemmsche/reposj*d  7https://api.github.com/users/Toemmsche/events{/privacy}j,d  6https://api.github.com/users/Toemmsche/received_eventsj.d  Userj0d  uparents]}(jc  (d04ff4a19366637694f234ec45ff273546be9019j d  ^https://api.github.com/repos/palantir/atlasdb/commits/d04ff4a19366637694f234ec45ff273546be9019jd  Shttps://github.com/palantir/atlasdb/commit/d04ff4a19366637694f234ec45ff273546be9019uastats}(totalKu	additionsKq	deletionsKufiles](}(jc  (2d8bcc7b01c3cc87d830dd8148f487fd40e78a01filenametimelock-server/build.gradlestatusmodifiedjJd  KjKd  K changesKblob_urlphttps://github.com/palantir/atlasdb/blob/65fe1b88c257c1055665107081622e98f4002012/timelock-server%2Fbuild.gradleraw_urlohttps://github.com/palantir/atlasdb/raw/65fe1b88c257c1055665107081622e98f4002012/timelock-server%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fbuild.gradle?ref=65fe1b88c257c1055665107081622e98f4002012patchX  @@ -195,6 +195,7 @@ dependencies {
     integTestImplementation 'com.palantir.tritium:tritium-registry'
     integTestImplementation 'io.dropwizard.metrics:metrics-core'
     integTestImplementation 'org.awaitility:awaitility'
+    integTestImplementation 'com.palantir.common:streams'
     integTestImplementation project(':atlasdb-api')
     integTestImplementation project(':atlasdb-client')
     integTestImplementation project(':atlasdb-commons')u}(jc  (90e8d39ed822689891902211d9581ff7887ba8ccjPd  ctimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchEventIntegrationTest.javajRd  modifiedjJd  KpjKd  KjTd  KtjUd  https://github.com/palantir/atlasdb/blob/65fe1b88c257c1055665107081622e98f4002012/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javajWd  https://github.com/palantir/atlasdb/raw/65fe1b88c257c1055665107081622e98f4002012/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javajYd  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.java?ref=65fe1b88c257c1055665107081622e98f4002012j[d  X"  @@ -25,7 +25,12 @@
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
 import com.google.common.util.concurrent.Uninterruptibles;
+import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.AtlasLockDescriptorUtils;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.Namespace;
@@ -41,6 +46,7 @@
 import com.palantir.atlasdb.transaction.api.ValueAndChangeMetadata;
 import com.palantir.atlasdb.transaction.impl.PreCommitConditions;
 import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.AtlasCellLockDescriptor;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
@@ -65,11 +71,17 @@
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
+import java.util.Random;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutionException;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.ThreadLocalRandom;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.TimeoutException;
+import java.util.function.Predicate;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import java.util.stream.Stream;
 import org.junit.Before;
 import org.junit.ClassRule;
@@ -108,6 +120,7 @@ public final class LockWatchEventIntegrationTest {
                     builder -> builder.clientPaxosBuilder(
                                     builder.clientPaxosBuilder().isUseBatchPaxosTimestamp(false))
                             .leaderMode(PaxosInstallConfiguration.PaxosLeaderMode.SINGLE_LEADER)));
+    private static final ExecutorService DIRECT_EXECUTOR = MoreExecutors.newDirectExecutorService();
 
     @ClassRule
     public static final RuleChain ruleChain = CLUSTER.getRuleChain();
@@ -391,6 +404,45 @@ public void metadataFilteredAccordingToWatches() {
                         );
     }
 
+    @Test
+    public void randomMetadataPassedAndFilteredCorrectlyForConcurrentTransactions()
+            throws ExecutionException, InterruptedException, TimeoutException {
+        long randomSeed = System.currentTimeMillis();
+        int numberOfThreads = 3;
+        int numberOfIterations = 3;
+        int numberOfRowsPerTransaction = 10;
+        int numberOfCellsPerRow = 100;
+
+        Random random = new Random(randomSeed);
+        LockWatchVersion currentVersion = getCurrentVersion();
+        ImmutableList.Builder<LockRequestMetadata> expectedMetadataBuilder = ImmutableList.builder();
+        ListeningExecutorService executor =
+                MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(numberOfThreads));
+        ImmutableList.Builder<ListenableFuture<?>> futures = ImmutableList.builder();
+        for (int i = 0; i < numberOfIterations; i++) {
+            Map<TableReference, Map<Cell, ValueAndChangeMetadata>> values =
+                    generatedRandomValuesAndChangeMetadata(numberOfRowsPerTransaction, numberOfCellsPerRow, random);
+            expectedMetadataBuilder.add(getLockRequestForValues(values, TABLE_REF::equals));
+            futures.add(executor.submit(() -> performTransactionTaskLockingAndUnlockingCells(txn -> {
+                values.forEach(txn::putWithMetadata);
+                return null;
+            })));
+        }
+
+        TransactionsLockWatchUpdate update = Futures.whenAllComplete(futures.build())
+                .call(
+                        () -> getUpdateForTransactions(Optional.of(currentVersion), startSingleTransaction()),
+                        DIRECT_EXECUTOR)
+                .get(20, TimeUnit.SECONDS);
+        List<Optional<LockRequestMetadata>> expectedMetadata =
+                expectedMetadataBuilder.build().stream().map(Optional::of).collect(Collectors.toList());
+        assertThat(LockWatchIntegrationTestUtilities.extractMetadata(update.events()))
+                .as("Expect to receive back the metadata we specified on previous transactions. Random seed: "
+                        + randomSeed)
+                // Order does NOT matter as this test is multithreaded
+                .containsExactlyInAnyOrderElementsOf(expectedMetadata);
+    }
+
     private Runnable performWriteTransactionThatBlocksAfterLockingCells() {
         CountDownLatch endOfTest = new CountDownLatch(1);
         CountDownLatch inCommitBlock = new CountDownLatch(1);
@@ -512,10 +564,6 @@ private Set<LockDescriptor> getDescriptors(TableReference tableRef, Cell... cell
         return Stream.of(cells).map(cell -> getDescriptor(tableRef, cell)).collect(Collectors.toSet());
     }
 
-    private LockDescriptor getDescriptor(TableReference tableRef, Cell cell) {
-        return AtlasCellLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName());
-    }
-
     private Optional<LockRequestMetadata> lockAndGetEventMetadataFromLockWatchLog(LockRequest lockRequest) {
         LockWatchVersion currentVersion = getCurrentVersion();
         LockResponse response = txnManager.getTimelockService().lock(lockRequest);
@@ -555,6 +603,66 @@ public Set<LockDescriptor> invalidateSome(Set<LockDescriptor> invalidatedLocks)
         }));
     }
 
+    private static Map<TableReference, Map<Cell, ValueAndChangeMetadata>> generatedRandomValuesAndChangeMetadata(
+            int numberOfRowsPerTransaction, int numberOfCellsPerRow, Random random) {
+
+        List<Cell> cells = IntStream.range(0, numberOfRowsPerTransaction)
+                .boxed()
+                .flatMap(rowIndex -> IntStream.range(0, numberOfCellsPerRow)
+                        .boxed()
+                        .map(cellIndex ->
+                                Cell.create(PtBytes.toBytes("row" + rowIndex), PtBytes.toBytes("col" + cellIndex))))
+                .collect(Collectors.toList());
+
+        // 50/50 split of cells between the watched and unwatched table
+        List<Cell> tableOneCells =
+                cells.stream().filter(_cell -> random.nextBoolean()).collect(Collectors.toList());
+        List<Cell> tableTwoCells =
+                cells.stream().filter(cell -> !tableOneCells.contains(cell)).collect(Collectors.toList());
+        return ImmutableMap.of(
+                TABLE_REF,
+                KeyedStream.of(tableOneCells.stream())
+                        .map(_cell -> ValueAndChangeMetadata.of(
+                                PtBytes.toBytes(random.nextInt()), generateRandomChangeMetadata(random)))
+                        .collectToMap(),
+                TABLE_2_REF,
+                KeyedStream.of(tableTwoCells.stream())
+                        .map(_cell -> ValueAndChangeMetadata.of(
+                                PtBytes.toBytes(random.nextInt()), generateRandomChangeMetadata(random)))
+                        .collectToMap());
+    }
+
+    private static ChangeMetadata generateRandomChangeMetadata(Random random) {
+        int index = random.nextInt(4);
+        switch (index) {
+            case 0:
+                return ChangeMetadata.created(PtBytes.toBytes(random.nextLong()));
+            case 1:
+                return ChangeMetadata.unchanged();
+            case 2:
+                return ChangeMetadata.updated(PtBytes.toBytes(random.nextLong()), PtBytes.toBytes(random.nextLong()));
+            case 3:
+                return ChangeMetadata.deleted(PtBytes.toBytes(random.nextLong()));
+        }
+        throw new RuntimeException("unreachable");
+    }
+
+    private static LockRequestMetadata getLockRequestForValues(
+            Map<TableReference, Map<Cell, ValueAndChangeMetadata>> values, Predicate<TableReference> isWatched) {
+        Map<LockDescriptor, ChangeMetadata> locks = KeyedStream.ofEntries(values.entrySet().stream())
+                .filterKeys(isWatched)
+                .flatMapEntries((table, cellToMetadata) -> KeyedStream.ofEntries(cellToMetadata.entrySet().stream())
+                        .mapKeys(cell -> getDescriptor(table, cell))
+                        .map(ValueAndChangeMetadata::metadata)
+                        .entries())
+                .collectToMap();
+        return LockRequestMetadata.of(locks);
+    }
+
+    private static LockDescriptor getDescriptor(TableReference tableRef, Cell cell) {
+        return AtlasCellLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName());
+    }
+
     private static final class LockEventVisitor implements LockWatchEvent.Visitor<Set<LockDescriptor>> {
         static final LockEventVisitor INSTANCE = new LockEventVisitor();
 ueu(059e05ec71254f582db47692b1e1d7ff75f0c885}(sha(059e05ec71254f582db47692b1e1d7ff75f0c885node_idEC_kwDOAjP5fdoAKDA1OWUwNWVjNzEyNTRmNTgyZGI0NzY5MmIxZTFkN2ZmNzVmMGM4ODUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-09T16:19:37Zu	committer}(jod  
Sam Kramerjqd  skramer@palantir.comjsd  2023-03-09T16:19:37Zumessagenitstree}(jgd  (e7d345d6cc5ff7c7e126c4e3b793e315c51992f9url`https://api.github.com/repos/palantir/atlasdb/git/trees/e7d345d6cc5ff7c7e126c4e3b793e315c51992f9ujd  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/059e05ec71254f582db47692b1e1d7ff75f0c885
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQKBxkACgkQmPPOpKR4
XS0HfQf/ZqFSHzUrnbQrGht2ab+7dvNedSABbkJV/Y/mJm0ApkCDpQZpRhky8ClU
uoMsAMT39pksnI/Wc6T97MT+gS/Fyy4BgMms7pcLiXjdreXCGYvqi3RMGXHoEIdO
PF/l3O6iPdsadBAspWHFgIO9xQSGr/jCXsiRjYd7tbdsv7Pa8W4ytXmbieBsCntz
WUlspETBh7SsGsUFyHbLo00G0VFhmSHDOk55lir2QL47uJQ6FsCwK9laMnkGIMQs
MJMa7gw9ygH4oNsivcG4aQQnLOqlBf1RJuJ2ZG7GF9SAtf+H+cU4Vj3QdoV8Fqn/
YNR87Yb4QfDrUJgj6q+ZfkTj0+kZiQ==
=yyZG
-----END PGP SIGNATURE-----payloadtree e7d345d6cc5ff7c7e126c4e3b793e315c51992f9
parent 39b056cb1b105545e84f93ffe4c1291b6f432168
author Sam Kramer <skramer@palantir.com> 1678378777 +0000
committer Sam Kramer <skramer@palantir.com> 1678378777 +0000

nits
uujd  ^https://api.github.com/repos/palantir/atlasdb/commits/059e05ec71254f582db47692b1e1d7ff75f0c885html_urlShttps://github.com/palantir/atlasdb/commit/059e05ec71254f582db47692b1e1d7ff75f0c885comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/059e05ec71254f582db47692b1e1d7ff75f0c885/commentsjmd  }(login
Sam-KrameridJ^2_ jid  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jd  'https://api.github.com/users/Sam-Kramerjd  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujud  }(jd  
Sam-Kramerjd  J^2_ jid  MDQ6VXNlcjYyMzg4MTQ=jd  3https://avatars.githubusercontent.com/u/6238814?v=4jd  h5jd  'https://api.github.com/users/Sam-Kramerjd  https://github.com/Sam-Kramerjd  1https://api.github.com/users/Sam-Kramer/followersjd  >https://api.github.com/users/Sam-Kramer/following{/other_user}jd  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jd  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jd  5https://api.github.com/users/Sam-Kramer/subscriptionsjd  ,https://api.github.com/users/Sam-Kramer/orgsjd  -https://api.github.com/users/Sam-Kramer/reposjd  8https://api.github.com/users/Sam-Kramer/events{/privacy}jd  7https://api.github.com/users/Sam-Kramer/received_eventsjd  Userjd  uparents]}(jgd  (39b056cb1b105545e84f93ffe4c1291b6f432168jd  ^https://api.github.com/repos/palantir/atlasdb/commits/39b056cb1b105545e84f93ffe4c1291b6f432168jd  Shttps://github.com/palantir/atlasdb/commit/39b056cb1b105545e84f93ffe4c1291b6f432168uastats}(totalK	additionsK	deletionsKufiles](}(jgd  (1f63a5aabe3670ea91b1274d0ae9a9ec9bf2652bfilename(atlasdb-workload-server-api/build.gradlestatusmodifiedjd  Kjd  KchangesKblob_url|https://github.com/palantir/atlasdb/blob/059e05ec71254f582db47692b1e1d7ff75f0c885/atlasdb-workload-server-api%2Fbuild.gradleraw_url{https://github.com/palantir/atlasdb/raw/059e05ec71254f582db47692b1e1d7ff75f0c885/atlasdb-workload-server-api%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fbuild.gradle?ref=059e05ec71254f582db47692b1e1d7ff75f0c885patchX   @@ -1,12 +1,14 @@
 apply from: "../gradle/shared.gradle"
 
 dependencies {
+    api 'io.vavr:vavr'
+
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'
     implementation 'com.fasterxml.jackson.core:jackson-databind'
     implementation 'com.palantir.safe-logging:preconditions'
     implementation 'com.google.guava:guava'
-    implementation 'io.vavr:vavr'
+
     compileOnly 'org.immutables:value::annotations'
     annotationProcessor 'org.immutables:value'
 u}(jgd  (301fd225038dc758fb5af7d2c0a7b9fd364ca74djd  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStore.javajd  modifiedjd  K jd  Kjd  Kjd  https://github.com/palantir/atlasdb/blob/059e05ec71254f582db47692b1e1d7ff75f0c885/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javajd  https://github.com/palantir/atlasdb/raw/059e05ec71254f582db47692b1e1d7ff75f0c885/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javajd  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.java?ref=059e05ec71254f582db47692b1e1d7ff75f0c885jd  X<  @@ -28,7 +28,6 @@
 import io.vavr.collection.Map;
 import java.util.List;
 import java.util.Optional;
-import javax.annotation.concurrent.NotThreadSafe;
 
 public final class InMemoryValidationStore implements ValidationStore {
 
@@ -52,7 +51,6 @@ public Map<TableAndWorkloadCell, Optional<Integer>> values() {
         return values;
     }
 
-    @NotThreadSafe
     private static final class InMemoryTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
 
         private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> values =u}(jgd  (8b7da5872a1e39ff253467d56f6f09dfacbe6bf3jd  matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantTest.javajd  modifiedjd  Kjd  Kjd  Kjd  https://github.com/palantir/atlasdb/blob/059e05ec71254f582db47692b1e1d7ff75f0c885/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javajd  https://github.com/palantir/atlasdb/raw/059e05ec71254f582db47692b1e1d7ff75f0c885/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javajd  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.java?ref=059e05ec71254f582db47692b1e1d7ff75f0c885jd  XF  @@ -106,7 +106,7 @@ public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
                 WriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_ONE)));
         DurableWritesInvariant.INSTANCE.accept(history, mismatchingCells::set);
         assertThat(mismatchingCells.get())
-                .containsExactlyEntriesOf(Map.of(
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
                         TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_TWO),
                         MismatchedValue.of(Optional.of(VALUE_ONE), Optional.of(VALUE_TWO))));
     }ueu(4fde9c28d33959623b4f61d2bccf7577dc9a64ad}(sha(4fde9c28d33959623b4f61d2bccf7577dc9a64adnode_idEC_kwDOAjP5fdoAKDRmZGU5YzI4ZDMzOTU5NjIzYjRmNjFkMmJjY2Y3NTc3ZGM5YTY0YWQcommit}(author}(nameChris Van de Veldeemailcvandevelde@palantir.comdate2023-03-28T07:55:18Zu	committer}(jd  Chris Van de Veldejd  cvandevelde@palantir.comjd  2023-03-28T07:55:18Zumessage9Atlas is append only, so leave no space for row expansiontree}(jd  (5c2c4098ecfef582c6e7751b4d3d0aca42a2bec8url`https://api.github.com/repos/palantir/atlasdb/git/trees/5c2c4098ecfef582c6e7751b4d3d0aca42a2bec8uje  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4fde9c28d33959623b4f61d2bccf7577dc9a64ad
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEfsytHu2QbUsz5QamhCdbnbxuCwoFAmQinYQACgkQhCdbnbxu
Cwo/lAgAjgPFZhEZwMgyOtvUnPYs9q4WBCV5CC5F3TGeuPwEe0nvhlHTm79bwvt/
KbDlmp4WbcHcS1wAfpXyHiJeyV/4M3OYxQaK5VEjMwNr8qs0EgUlYeUwIImGyXEP
78pHZAKEgfE/BgWocGGeIGoSu7BMX6CMCuF1Zd+StDfbnYbtUL4vzm2YkQZNfRC2
bp05iWzKGM7ypfuRSDSnnfkEP9hrjxvfWQhvc0KRAbrNmvW2XIWI25c6AQuvhA8n
ZsBbP2O+H2S8Sf9+AFasIYrPjFqTyXIQ74+/U9jl2cCzk+iqWb8WyffNy2C60SIo
ncmOQMPsIkhGebABGCTIdwwT9Lkbrw==
=yErY
-----END PGP SIGNATURE-----payloadX(  tree 5c2c4098ecfef582c6e7751b4d3d0aca42a2bec8
parent f522243f82381b53d56d80abd2e7f5c0046d596e
author Chris Van de Velde <cvandevelde@palantir.com> 1679990118 +1100
committer Chris Van de Velde <cvandevelde@palantir.com> 1679990118 +1100

Atlas is append only, so leave no space for row expansion
uuje  ^https://api.github.com/repos/palantir/atlasdb/commits/4fde9c28d33959623b4f61d2bccf7577dc9a64adhtml_urlShttps://github.com/palantir/atlasdb/commit/4fde9c28d33959623b4f61d2bccf7577dc9a64adcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4fde9c28d33959623b4f61d2bccf7577dc9a64ad/commentsjd  }(loginCVdV-auidJDN jd  MDQ6VXNlcjY5MjI2MDUy
avatar_url4https://avatars.githubusercontent.com/u/69226052?v=4gravatar_idh5je  $https://api.github.com/users/CVdV-auje  https://github.com/CVdV-au
followers_url.https://api.github.com/users/CVdV-au/followers
following_url;https://api.github.com/users/CVdV-au/following{/other_user}	gists_url4https://api.github.com/users/CVdV-au/gists{/gist_id}starred_url;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/CVdV-au/subscriptionsorganizations_url)https://api.github.com/users/CVdV-au/orgs	repos_url*https://api.github.com/users/CVdV-au/repos
events_url5https://api.github.com/users/CVdV-au/events{/privacy}received_events_url4https://api.github.com/users/CVdV-au/received_eventstypeUser
site_adminujd  }(je  CVdV-auje  JDN jd  MDQ6VXNlcjY5MjI2MDUyje  4https://avatars.githubusercontent.com/u/69226052?v=4je  h5je  $https://api.github.com/users/CVdV-auje  https://github.com/CVdV-auj"e  .https://api.github.com/users/CVdV-au/followersj$e  ;https://api.github.com/users/CVdV-au/following{/other_user}j&e  4https://api.github.com/users/CVdV-au/gists{/gist_id}j(e  ;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}j*e  2https://api.github.com/users/CVdV-au/subscriptionsj,e  )https://api.github.com/users/CVdV-au/orgsj.e  *https://api.github.com/users/CVdV-au/reposj0e  5https://api.github.com/users/CVdV-au/events{/privacy}j2e  4https://api.github.com/users/CVdV-au/received_eventsj4e  Userj6e  uparents]}(jd  (f522243f82381b53d56d80abd2e7f5c0046d596eje  ^https://api.github.com/repos/palantir/atlasdb/commits/f522243f82381b53d56d80abd2e7f5c0046d596eje  Shttps://github.com/palantir/atlasdb/commit/f522243f82381b53d56d80abd2e7f5c0046d596euastats}(totalK
	additionsK	deletionsKufiles]}(jd  (153cc9f5a50cf8d5bb2ac47f996e74337e29723afilename_atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTable.javastatusmodifiedjPe  KjQe  KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/4fde9c28d33959623b4f61d2bccf7577dc9a64ad/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4fde9c28d33959623b4f61d2bccf7577dc9a64ad/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.java?ref=4fde9c28d33959623b4f61d2bccf7577dc9a64adpatchX  @@ -196,7 +196,11 @@ private String createTable(boolean needsOverflow) {
                         + (needsOverflow ? "overflow   NUMBER(38), " : "")
                         + "  CONSTRAINT " + PrimaryKeyConstraintNames.get(shortTableName)
                         + " PRIMARY KEY (row_name, col_name, ts) "
-                        + ") organization index compress overflow",
+                        + ") "
+                        + "organization index compress "
+                        // Since append only
+                        + "PCTFREE 0 "
+                        + "overflow",
                 OracleErrorConstants.ORACLE_ALREADY_EXISTS_ERROR);
         putTableNameMapping(oracleTableNameGetter.getPrefixedTableName(tableRef), shortTableName);
         return shortTableName;
@@ -209,7 +213,9 @@ private void createOverflowTable() {
                         + "  id  NUMBER(38) NOT NULL, "
                         + "  val BLOB NOT NULL,"
                         + "  CONSTRAINT " + PrimaryKeyConstraintNames.get(shortOverflowTableName) + " PRIMARY KEY (id)"
-                        + ")",
+                        + ") "
+                        // Since append only
+                        + "PCTFREE 0",
                 OracleErrorConstants.ORACLE_ALREADY_EXISTS_ERROR);
         putTableNameMapping(oracleTableNameGetter.getPrefixedOverflowTableName(tableRef), shortOverflowTableName);
     }uau(b1dfe8f8f9cb59884c44e3f626c518fe884d9708}(sha(b1dfe8f8f9cb59884c44e3f626c518fe884d9708node_idEC_kwDOAjP5fdoAKGIxZGZlOGY4ZjljYjU5ODg0YzQ0ZTNmNjI2YzUxOGZlODg0ZDk3MDgcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-03T16:54:06Zu	committer}(jme  GitHubjoe  noreply@github.comjqe  2023-07-03T16:54:06ZumessageX  [Antithesis | Range Queries] Part 6: Snapshot Validation for Row Column Range Queries (#6611)

* Refactor TransactionActions to have explicitly named single cell variants

* broken tests

* Row column range read APIs

* Actually support row column range reads

* patchy patch

* add one more test

* change typing

* The Eagle has Landed

* More testing

* update random workflow

* CR notes

* snapshot support

* spot sopt psot post stop opts pots topstree}(jee  (13f0a422f591d98856eef8e413bd7c7ce9095224t      url`https://api.github.com/repos/palantir/atlasdb/git/trees/13f0a422f591d98856eef8e413bd7c7ce9095224uj}e  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b1dfe8f8f9cb59884c44e3f626c518fe884d9708
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkov0uCRBK7hj4Ov3rIwAA96cIAGPpqLe4aF8sFjwOigG1+1KI
5RcOKZgKek417GsJb4Q7Ch/TYLImoFFpUTsiWoa/pwvsgk4xBGoZwZKaowfPYpI5
AXEOrKjcSJZ6QL+gmEZ+SQ1UWtn0CVVLwXhvc+m/SyBhNPkH4Q/akbwvTef5C7jb
JYlwsGoR/cXXvBMDxrVWnEIgO4kFCaUk1U+KxUjJwDEJ1uAKnB+OB7b4VEomxool
a8Qy+KWWB3uYrEfDfKDd+tBFysj4iQw3oJmRZfRrQIO+YscixHDgPS8yej/D5SGg
DWPfN99AgGy9JSjAbTU9I79Ltjt7It4r1EV+S7fhWLnQ1I4jQRnwjVWiW/AoQDM=
=v/lA
-----END PGP SIGNATURE-----
payloadX  tree 13f0a422f591d98856eef8e413bd7c7ce9095224
parent 7f8f1fd7639fecbcf3bac49f4697743fd5336068
author Jeremy Kong <jkong@palantir.com> 1688403246 +0100
committer GitHub <noreply@github.com> 1688403246 +0100

[Antithesis | Range Queries] Part 6: Snapshot Validation for Row Column Range Queries (#6611)

* Refactor TransactionActions to have explicitly named single cell variants

* broken tests

* Row column range read APIs

* Actually support row column range reads

* patchy patch

* add one more test

* change typing

* The Eagle has Landed

* More testing

* update random workflow

* CR notes

* snapshot support

* spot sopt psot post stop opts pots topsuuj}e  ^https://api.github.com/repos/palantir/atlasdb/commits/b1dfe8f8f9cb59884c44e3f626c518fe884d9708html_urlShttps://github.com/palantir/atlasdb/commit/b1dfe8f8f9cb59884c44e3f626c518fe884d9708comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b1dfe8f8f9cb59884c44e3f626c518fe884d9708/commentsjke  }(login
jeremyk-91idJZ jge  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j}e  'https://api.github.com/users/jeremyk-91je  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujse  }(je  web-flowje  J/jge  MDQ6VXNlcjE5ODY0NDQ3je  4https://avatars.githubusercontent.com/u/19864447?v=4je  h5j}e  %https://api.github.com/users/web-flowje  https://github.com/web-flowje  /https://api.github.com/users/web-flow/followersje  <https://api.github.com/users/web-flow/following{/other_user}je  5https://api.github.com/users/web-flow/gists{/gist_id}je  <https://api.github.com/users/web-flow/starred{/owner}{/repo}je  3https://api.github.com/users/web-flow/subscriptionsje  *https://api.github.com/users/web-flow/orgsje  +https://api.github.com/users/web-flow/reposje  6https://api.github.com/users/web-flow/events{/privacy}je  5https://api.github.com/users/web-flow/received_eventsje  Userje  uparents]}(jee  (7f8f1fd7639fecbcf3bac49f4697743fd5336068j}e  ^https://api.github.com/repos/palantir/atlasdb/commits/7f8f1fd7639fecbcf3bac49f4697743fd5336068je  Shttps://github.com/palantir/atlasdb/commit/7f8f1fd7639fecbcf3bac49f4697743fd5336068uastats}(totalKf	additionsKe	deletionsKufiles](}(jee  (df44cd86caf6c1ec9443e1f5727908ddeee85561filenamekatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javastatusmodifiedje  Kje  KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/b1dfe8f8f9cb59884c44e3f626c518fe884d9708/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b1dfe8f8f9cb59884c44e3f626c518fe884d9708/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=b1dfe8f8f9cb59884c44e3f626c518fe884d9708patchX  @@ -17,8 +17,11 @@
 package com.palantir.atlasdb.workload.invariant;
 
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.SimpleRangeQueryReader;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
@@ -27,6 +30,7 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.Map;
+import java.util.List;
 import java.util.Optional;
 
 /**
@@ -93,7 +97,14 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransact
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(
             WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
-        // TODO (jkong): Not implemented yet
+        List<ColumnValue> expectedReads = SimpleRangeQueryReader.createForSnapshot(readView)
+                .readRange(rowColumnRangeReadTransactionAction.originalQuery());
+        if (!expectedReads.equals(rowColumnRangeReadTransactionAction.columnsAndValues())) {
+            return Optional.of(InvalidWitnessedRowColumnRangeReadTransactionAction.builder()
+                    .witness(rowColumnRangeReadTransactionAction)
+                    .expectedColumnsAndValues(expectedReads)
+                    .build());
+        }
         return Optional.empty();
     }
 u}(jee  (fa09be03657e9803b074bbd56a9b7fd8b045da62je  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReader.javaje  modifiedje  Kje  K je  Kje  https://github.com/palantir/atlasdb/blob/b1dfe8f8f9cb59884c44e3f626c518fe884d9708/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaje  https://github.com/palantir/atlasdb/raw/b1dfe8f8f9cb59884c44e3f626c518fe884d9708/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaje  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.java?ref=b1dfe8f8f9cb59884c44e3f626c518fe884d9708je  X2  @@ -17,6 +17,8 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.invariant.ValueAndMaybeTimestamp;
 import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.logsafe.SafeArg;
@@ -43,6 +45,11 @@ public static RangeQueryReader create(InMemoryTransactionReplayer replayer) {
         return new SimpleRangeQueryReader(replayer::getValues);
     }
 
+    public static RangeQueryReader createForSnapshot(
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> readView) {
+        return new SimpleRangeQueryReader(() -> readView.getSnapshot().mapValues(ValueAndMaybeTimestamp::value));
+    }
+
     @Override
     public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction) {
         Map<TableAndWorkloadCell, Optional<Integer>> allValues = rawValueSupplier.get();u}(jee  (c51ae3380a67f519f6e9a882625f2a22fa5a1c9dje  hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javaje  modifiedje  KRje  K je  KRje  https://github.com/palantir/atlasdb/blob/b1dfe8f8f9cb59884c44e3f626c518fe884d9708/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaje  https://github.com/palantir/atlasdb/raw/b1dfe8f8f9cb59884c44e3f626c518fe884d9708/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaje  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=b1dfe8f8f9cb59884c44e3f626c518fe884d9708je  X  @@ -18,13 +18,19 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
 import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -167,4 +173,80 @@ public void properlyReplaysReadsAndWrites() {
         SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
         assertThat(invalidTransactions).isEmpty();
     }
+
+    @Test
+    public void rowColumnRangeScanNotExpectedToReadColumnsCommittingAfterOurStart() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .write(5, 20, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(15L)
+                .startTransaction(12L)
+                .write(5, 30, WorkloadTestHelpers.VALUE_ONE + WorkloadTestHelpers.VALUE_TWO)
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(
+                                ColumnValue.of(10, WorkloadTestHelpers.VALUE_ONE),
+                                ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE + WorkloadTestHelpers.VALUE_TWO)))
+                .endTransaction(21L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void rowColumnRangeScanFlagsColumnCommittingAfterOurStartAsViolating() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(5L)
+                .write(5, 20, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(15L)
+                .startTransaction(12L)
+                .write(5, 30, WorkloadTestHelpers.VALUE_ONE)
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(
+                                ColumnValue.of(20, WorkloadTestHelpers.VALUE_TWO),
+                                ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
+                .endTransaction(21L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidTransaction.transaction().startTimestamp()).isEqualTo(12L);
+        assertThat(invalidTransaction.transaction().commitTimestamp()).contains(21L);
+
+        InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(
+                        InvalidWitnessedRowColumnRangeReadTransactionAction.class, invalidRowColumnRangeRead -> {
+                            assertThat(invalidRowColumnRangeRead.witness())
+                                    .isEqualTo(WitnessedRowColumnRangeReadTransactionAction.builder()
+                                            .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                                    .table(WorkloadTestHelpers.TABLE_1)
+                                                    .row(5)
+                                                    .columnRangeSelection(ColumnRangeSelection.builder()
+                                                            .build())
+                                                    .build())
+                                            .columnsAndValues(ImmutableList.of(
+                                                    ColumnValue.of(20, WorkloadTestHelpers.VALUE_TWO),
+                                                    ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
+                                            .build());
+                            assertThat(invalidRowColumnRangeRead.expectedColumnsAndValues())
+                                    .containsExactly(ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE));
+                        });
+    }
 }ueu(b1a9573ad4dce1787cfc6a573c9ff60c841528e9}(sha(b1a9573ad4dce1787cfc6a573c9ff60c841528e9node_idEC_kwDOAjP5fdoAKGIxYTk1NzNhZDRkY2UxNzg3Y2ZjNmE1NzNjOWZmNjBjODQxNTI4ZTkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-28T10:56:45Zu	committer}(je  
Ahmed Alouaneje  aalouane@palantir.comje  2023-04-28T10:56:45Zumessagetesttree}(je  (cd97b11814cea08381e8da9d2cb0b122fe306957url`https://api.github.com/repos/palantir/atlasdb/git/trees/cd97b11814cea08381e8da9d2cb0b122fe306957ujf  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b1a9573ad4dce1787cfc6a573c9ff60c841528e9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRLpm0ACgkQPlMHVIT1
yhrJIAf/Z28FYROuxtaP+F7tagnubcntjPBgv+2N0jDmtKNgt2Din2WB4gyeU98d
u6V8PFnRJa3RAjykWt7Ux5KrHpumlrYGHDeqRB5aFr7qkvBuXml5/+mlaLyJ5ZVD
zrPzNbcB4KMdRbuuvwbHM6W86mVcG6AoWJrhXMV3NOP2nRqepL7UN7NBG4J3eHQL
lq3bzPxFXP6Sp3lFUrZCE/+/mz21lQ1VP8QNAyd0ep9c2ZzfrcRhNjf0gKkYE7LH
V8SIwbAJJsNqURfdAU8Y67R+3ya8eg4iuy5NqqNnfSfBEWJfvE8f697GWAUdS3hm
ZMfMZJsAaBQ6zSp2EmPAoji6uVCLfA==
=iv6U
-----END PGP SIGNATURE-----payloadtree cd97b11814cea08381e8da9d2cb0b122fe306957
parent 43adb2ed2ed640a3862ee0527e4d5f8ba090356a
author Ahmed Alouane <aalouane@palantir.com> 1682679405 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682679405 +0100

test
uujf  ^https://api.github.com/repos/palantir/atlasdb/commits/b1a9573ad4dce1787cfc6a573c9ff60c841528e9html_urlShttps://github.com/palantir/atlasdb/commit/b1a9573ad4dce1787cfc6a573c9ff60c841528e9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b1a9573ad4dce1787cfc6a573c9ff60c841528e9/commentsje  }(loginergo14idJje  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jf  #https://api.github.com/users/ergo14jf  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuje  }(jf  ergo14jf  Jje  MDQ6VXNlcjMwOTAzNzM2jf  4https://avatars.githubusercontent.com/u/30903736?v=4jf  h5jf  #https://api.github.com/users/ergo14jf  https://github.com/ergo14j f  -https://api.github.com/users/ergo14/followersj"f  :https://api.github.com/users/ergo14/following{/other_user}j$f  3https://api.github.com/users/ergo14/gists{/gist_id}j&f  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j(f  1https://api.github.com/users/ergo14/subscriptionsj*f  (https://api.github.com/users/ergo14/orgsj,f  )https://api.github.com/users/ergo14/reposj.f  4https://api.github.com/users/ergo14/events{/privacy}j0f  3https://api.github.com/users/ergo14/received_eventsj2f  Userj4f  uparents]}(je  (43adb2ed2ed640a3862ee0527e4d5f8ba090356ajf  ^https://api.github.com/repos/palantir/atlasdb/commits/43adb2ed2ed640a3862ee0527e4d5f8ba090356ajf  Shttps://github.com/palantir/atlasdb/commit/43adb2ed2ed640a3862ee0527e4d5f8ba090356auastats}(totalK	additionsK	deletionsK ufiles]}(je  (bb3da12d9da59c0fb7a2e88f7d3b506e08a1f9fafilename%scripts/circle-ci/run-circle-tests.shstatusmodifiedjNf  KjOf  K changesKblob_url{https://github.com/palantir/atlasdb/blob/b1a9573ad4dce1787cfc6a573c9ff60c841528e9/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/b1a9573ad4dce1787cfc6a573c9ff60c841528e9/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=b1a9573ad4dce1787cfc6a573c9ff60c841528e9patchXa  @@ -50,6 +50,13 @@ do
     CONTAINER_0_EXCLUDE_ARGS="$CONTAINER_0_EXCLUDE_ARGS -x $task"
 done
 
+echo "start"
+printenv CIRCLE_TAG
+printenv CIRCLE_BRANCH
+echo $CIRCLE_TAG
+echo $cIRCLE_BRANCH
+echo "end"
+
 # Short circuit the build if it's docs only
 if ./scripts/circle-ci/check-only-docs-changes.sh; then
     if [ $CIRCLE_NODE_INDEX -eq 0 ]; thenuau(c31b25e62176cfb4ea8f821a972908bc016dad7c}(sha(c31b25e62176cfb4ea8f821a972908bc016dad7cnode_idEC_kwDOAjP5fdoAKGMzMWIyNWU2MjE3NmNmYjRlYThmODIxYTk3MjkwOGJjMDE2ZGFkN2Mcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-08T17:13:15Zu	committer}(jkf  Jeremy Kongjmf  jkong@palantir.comjof  2023-06-08T17:13:15ZumessageCR feedbacktree}(jcf  (f94c2bd04bc273a7c9f0e5e751fa3ab964a968c6url`https://api.github.com/repos/palantir/atlasdb/git/trees/f94c2bd04bc273a7c9f0e5e751fa3ab964a968c6uj{f  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c31b25e62176cfb4ea8f821a972908bc016dad7c
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSCDCwACgkQTLdFKain
zjzx3AgA4zpsTjhUsuCmwWRKsWWe2dSAgfYFn57N/xW+XFwK+JOBA5O3EAvpUR52
y/ImGVmptCeMqyal1nynWhZWEvO0fbYyFTmzz8vvzwJ3bO8q371dpikN2lc/ux0h
ZQ0WC/i49Idj0FkYbbCnyDG9BagyLHtd11YVQPXaIxXrSGDZcxpA8MO2LyEFSNXH
IbPJ+a+7LEAqOwAWAqpuy3s4icA+bYh1yQ1tZqxDWEn+juM1pmJKylJsPM6SSlWl
kgs7MA48JuMALZMbSAfwPW4Jt+QFYnIEMH0zWXGtND05jE9+y/vgkERwq7otruCp
FiwAul2TCLlADN2rHOVz1R/CdCKaoQ==
=EleX
-----END PGP SIGNATURE-----payloadtree f94c2bd04bc273a7c9f0e5e751fa3ab964a968c6
parent 245d01b734ea0dac52bc8d37757bbe12f8b35c22
author Jeremy Kong <jkong@palantir.com> 1686244395 +0100
committer Jeremy Kong <jkong@palantir.com> 1686244395 +0100

CR feedback
uuj{f  ^https://api.github.com/repos/palantir/atlasdb/commits/c31b25e62176cfb4ea8f821a972908bc016dad7chtml_urlShttps://github.com/palantir/atlasdb/commit/c31b25e62176cfb4ea8f821a972908bc016dad7ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c31b25e62176cfb4ea8f821a972908bc016dad7c/commentsjif  }(login
jeremyk-91idJZ jef  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j{f  'https://api.github.com/users/jeremyk-91jf  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujqf  }(jf  
jeremyk-91jf  JZ jef  MDQ6VXNlcjU5NTU1MTA=jf  3https://avatars.githubusercontent.com/u/5955510?v=4jf  h5j{f  'https://api.github.com/users/jeremyk-91jf  https://github.com/jeremyk-91jf  1https://api.github.com/users/jeremyk-91/followersjf  >https://api.github.com/users/jeremyk-91/following{/other_user}jf  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jf  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jf  5https://api.github.com/users/jeremyk-91/subscriptionsjf  ,https://api.github.com/users/jeremyk-91/orgsjf  -https://api.github.com/users/jeremyk-91/reposjf  8https://api.github.com/users/jeremyk-91/events{/privacy}jf  7https://api.github.com/users/jeremyk-91/received_eventsjf  Userjf  uparents]}(jcf  (245d01b734ea0dac52bc8d37757bbe12f8b35c22j{f  ^https://api.github.com/repos/palantir/atlasdb/commits/245d01b734ea0dac52bc8d37757bbe12f8b35c22jf  Shttps://github.com/palantir/atlasdb/commit/245d01b734ea0dac52bc8d37757bbe12f8b35c22uastats}(totalK>	additionsK%	deletionsKufiles](}(jcf  (2cd6cfe9f8b3b0e78ec919a33f7e70a6787ec204filenameatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javastatusmodifiedjf  Kjf  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/c31b25e62176cfb4ea8f821a972908bc016dad7c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c31b25e62176cfb4ea8f821a972908bc016dad7c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javacontents_urlX  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=c31b25e62176cfb4ea8f821a972908bc016dad7cpatchX#  @@ -23,12 +23,15 @@
 import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
+import java.util.stream.Collectors;
 import org.immutables.value.Value;
 
 @Value.Immutable
 public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedTransactionAction {
     RowColumnRangeReadTransactionAction originalQuery();
 
+    // This is a List rather than a Set or Map because the ordering in which the columns and values are returned is
+    // important (it must match the ordering specified by the contract of row column range reads).
     List<ColumnValue> columnsAndValues();
 
     @Override
@@ -39,14 +42,14 @@ default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
     @Value.Check
     default void check() {
         Set<Integer> knownColumns = new HashSet<>();
-        for (ColumnValue columnValue : columnsAndValues()) {
-            Preconditions.checkState(
-                    !knownColumns.contains(columnValue.column()),
-                    "Duplicate column in columnsAndValues",
-                    SafeArg.of("duplicatedColumn", columnValue.column()),
-                    SafeArg.of("columnsAndValues", columnsAndValues()));
-            knownColumns.add(columnValue.column());
-        }
+        Set<Integer> duplicateColumns = columnsAndValues().stream()
+                .map(ColumnValue::column)
+                .filter(column -> !knownColumns.add(column))
+                .collect(Collectors.toSet());
+        Preconditions.checkState(duplicateColumns.isEmpty(),
+                "Duplicate columns in columnsAndValues",
+                SafeArg.of("duplicateColumns", duplicateColumns),
+                SafeArg.of("columnsAndValues", columnsAndValues()));
     }
 
     static ImmutableWitnessedRowColumnRangeReadTransactionAction.Builder builder() {u}(jcf  (ea0e1778a4254a936cf71d0dee6648746c32672bjf  atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javajf  modifiedjf  Kjf  Kjf  K+jf  https://github.com/palantir/atlasdb/blob/c31b25e62176cfb4ea8f821a972908bc016dad7c/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javajf  https://github.com/palantir/atlasdb/raw/c31b25e62176cfb4ea8f821a972908bc016dad7c/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javajf  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=c31b25e62176cfb4ea8f821a972908bc016dad7cjf  X]  @@ -20,45 +20,54 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 
 import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
 import org.junit.Test;
 
 public class WitnessedRowColumnRangeReadTransactionActionTest {
     @Test
     public void canCreateWitness() {
         assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
-                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                                .table("foo")
-                                .row(1)
-                                .columnRangeSelection(
-                                        ColumnRangeSelection.builder().build())
-                                .build())
+                .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
+                .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                        .table("foo")
+                        .row(1)
+                        .columnRangeSelection(
+                                ColumnRangeSelection.builder().build())
                         .build())
+                .build())
                 .doesNotThrowAnyException();
     }
 
     @Test
     public void cannotCreateWitnessWithDuplicateColumns() {
+        List<ColumnValue> columnsAndValues = ImmutableList.of(
+                ColumnValue.of(1, 5),
+                ColumnValue.of(5, 1),
+                ColumnValue.of(1, 3),
+                ColumnValue.of(5, 8),
+                ColumnValue.of(9, 99));
+
         assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))
-                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                                .table("foo")
-                                .row(1)
-                                .columnRangeSelection(
-                                        ColumnRangeSelection.builder().build())
-                                .build())
+                .addAllColumnsAndValues(columnsAndValues)
+                .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                        .table("foo")
+                        .row(1)
+                        .columnRangeSelection(
+                                ColumnRangeSelection.builder().build())
                         .build())
+                .build())
                 .isInstanceOf(SafeIllegalStateException.class)
-                .hasMessageContaining("Duplicate column in columnsAndValues")
+                .hasMessageContaining("Duplicate columns in columnsAndValues")
                 .hasExactlyArgs(
-                        SafeArg.of("duplicatedColumn", 1),
+                        SafeArg.of("duplicateColumns", ImmutableSet.of(1, 5)),
                         SafeArg.of(
                                 "columnsAndValues",
-                                ImmutableList.of(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))));
+                                columnsAndValues));
     }
 }ueu(445a32913feeb73eac9d7567d6354ac945cecab4}(sha(445a32913feeb73eac9d7567d6354ac945cecab4node_idEC_kwDOAjP5fdoAKDQ0NWEzMjkxM2ZlZWI3M2VhYzlkNzU2N2Q2MzU0YWM5NDVjZWNhYjQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-11T09:41:23Zu	committer}(jf  Jeremy Kongjf  jkong@palantir.comjf  2023-07-11T09:41:23Zumessagespotlesstree}(jf  (66944e29b9e56fde7629267a27db40f00c2ea564url`https://api.github.com/repos/palantir/atlasdb/git/trees/66944e29b9e56fde7629267a27db40f00c2ea564ujf  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/445a32913feeb73eac9d7567d6354ac945cecab4
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmStI8MACgkQTLdFKain
zjxy7ggAmysFxgLAOc3zoLWpxcRSbzt6zW3YRX6JOfSie38MkIl3wkff+PnRIlLU
4tiUSyZ6oowuEgNXtH49pqS0++W2hN/bMA+a2fnXPr//W7SVT7wy2WJSdsconFyc
u58SbUg9ef/dBGrTOuAP/giSLKaXoRi4w6K0oAcW3wJYBNn03jeVIZL4i5P/JFg2
V6qaw3opPvaSLr1qoV6Z+CG2+d7iJvqUn2ANZPBLsNb6NfR7KTB0NZA9WDKKax3O
gnXT5F6U1qLjY6b7/AemOrgMu7l53YqaBIeDh6yWxMtGcqMJQu8l5D5Srltj0DNO
z8qHd8qcSyyM9eSSAqoyGCzTjmO+0Q==
=ya8H
-----END PGP SIGNATURE-----payloadtree 66944e29b9e56fde7629267a27db40f00c2ea564
parent e6e23f7bd8b53a5628527ff0e374588338e3eb5c
author Jeremy Kong <jkong@palantir.com> 1689068483 +0100
committer Jeremy Kong <jkong@palantir.com> 1689068483 +0100

spotless
uujf  ^https://api.github.com/repos/palantir/atlasdb/commits/445a32913feeb73eac9d7567d6354ac945cecab4html_urlShttps://github.com/palantir/atlasdb/commit/445a32913feeb73eac9d7567d6354ac945cecab4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/445a32913feeb73eac9d7567d6354ac945cecab4/commentsjf  }(login
jeremyk-91idJZ jf  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jf  'https://api.github.com/users/jeremyk-91jg  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujf  }(j
g  
jeremyk-91jg  JZ jf  MDQ6VXNlcjU5NTU1MTA=jg  3https://avatars.githubusercontent.com/u/5955510?v=4jg  h5jf  'https://api.github.com/users/jeremyk-91jg  https://github.com/jeremyk-91jg  1https://api.github.com/users/jeremyk-91/followersjg  >https://api.github.com/users/jeremyk-91/following{/other_user}jg  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jg  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jg  5https://api.github.com/users/jeremyk-91/subscriptionsj g  ,https://api.github.com/users/jeremyk-91/orgsj"g  -https://api.github.com/users/jeremyk-91/reposj$g  8https://api.github.com/users/jeremyk-91/events{/privacy}j&g  7https://api.github.com/users/jeremyk-91/received_eventsj(g  Userj*g  uparents]}(jf  (e6e23f7bd8b53a5628527ff0e374588338e3eb5cjf  ^https://api.github.com/repos/palantir/atlasdb/commits/e6e23f7bd8b53a5628527ff0e374588338e3eb5cjg  Shttps://github.com/palantir/atlasdb/commit/e6e23f7bd8b53a5628527ff0e374588338e3eb5cuastats}(totalK	additionsKV	deletionsKSufiles](}(jf  (16d6781c2707fdd741a02ac1bb0a6552f8711c0ffilenameatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javastatusmodifiedjDg  KjEg  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/445a32913feeb73eac9d7567d6354ac945cecab4/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/445a32913feeb73eac9d7567d6354ac945cecab4/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javacontents_urlX  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=445a32913feeb73eac9d7567d6354ac945cecab4patchXl	  @@ -33,14 +33,14 @@ public class WitnessedRowColumnRangeReadTransactionActionTest {
     @Test
     public void canCreateWitness() {
         assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                .addColumnsAndValues(ColumnAndValue.of(1, 5), ColumnAndValue.of(5, 1), ColumnAndValue.of(3, 3))
-                .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                        .table("foo")
-                        .row(1)
-                        .columnRangeSelection(
-                                ColumnRangeSelection.builder().build())
+                        .addColumnsAndValues(ColumnAndValue.of(1, 5), ColumnAndValue.of(5, 1), ColumnAndValue.of(3, 3))
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
                         .build())
-                .build())
                 .doesNotThrowAnyException();
     }
 
@@ -54,14 +54,14 @@ public void cannotCreateWitnessWithDuplicateColumns() {
                 ColumnAndValue.of(9, 99));
 
         assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                .addAllColumnsAndValues(columnsAndValues)
-                .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                        .table("foo")
-                        .row(1)
-                        .columnRangeSelection(
-                                ColumnRangeSelection.builder().build())
+                        .addAllColumnsAndValues(columnsAndValues)
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
                         .build())
-                .build())
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Duplicate columns in columnsAndValues")
                 .hasExactlyArgs(u}(jf  (9e5e992be69401120b03691540fd57f1a95b93b8jJg  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javajLg  modifiedjDg  KjEg  KjNg  KjOg  https://github.com/palantir/atlasdb/blob/445a32913feeb73eac9d7567d6354ac945cecab4/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajQg  https://github.com/palantir/atlasdb/raw/445a32913feeb73eac9d7567d6354ac945cecab4/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajSg  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=445a32913feeb73eac9d7567d6354ac945cecab4jUg  Xu  @@ -61,7 +61,7 @@ final class SnapshotInvariantVisitor
     public Optional<InvalidWitnessedTransactionAction> visit(
             WitnessedSingleCellReadTransactionAction readTransactionAction) {
         Optional<Integer> expected = fetchValueFromView(
-                readTransactionAction.table(), readTransactionAction.cell(), readView)
+                        readTransactionAction.table(), readTransactionAction.cell(), readView)
                 .value();
         if (!expected.equals(readTransactionAction.value())) {
             return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
@@ -73,7 +73,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
-                writeTransactionAction.table(), writeTransactionAction.cell())
+                        writeTransactionAction.table(), writeTransactionAction.cell())
                 .map(mismatchedValue ->
                         InvalidWitnessedSingleCellTransactionAction.of(writeTransactionAction, mismatchedValue));
 
@@ -87,7 +87,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransacti
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
-                deleteTransactionAction.table(), deleteTransactionAction.cell())
+                        deleteTransactionAction.table(), deleteTransactionAction.cell())
                 .map(mismatchedValue ->
                         InvalidWitnessedSingleCellTransactionAction.of(deleteTransactionAction, mismatchedValue));
 u}(jf  (5862ed5f30754a3c64cc032f5b08ffe3e9a56b22jJg  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReader.javajLg  modifiedjDg  KjEg  KjNg  KjOg  https://github.com/palantir/atlasdb/blob/445a32913feeb73eac9d7567d6354ac945cecab4/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javajQg  https://github.com/palantir/atlasdb/raw/445a32913feeb73eac9d7567d6354ac945cecab4/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javajSg  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.java?ref=445a32913feeb73eac9d7567d6354ac945cecab4jUg  X  @@ -56,8 +56,8 @@ public List<ColumnAndValue> readRange(RowColumnRangeReadTransactionAction readTr
         if (allValues.size() > LARGE_HISTORY_LIMIT) {
             log.error(
                     "Attempted to do range queries in a simple way, even though the history is large ({} entries)! If"
-                            + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
-                            + " efficient range query implementation.",
+                        + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
+                        + " efficient range query implementation.",
                     SafeArg.of("size", allValues.size()));
         }
         return allValuesu}(jf  (4b3679c7c82dc1219afbf7dcf075bce3b3ace5c3jJg  latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javajLg  modifiedjDg  K
jEg  KjNg  KjOg  https://github.com/palantir/atlasdb/blob/445a32913feeb73eac9d7567d6354ac945cecab4/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajQg  https://github.com/palantir/atlasdb/raw/445a32913feeb73eac9d7567d6354ac945cecab4/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajSg  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=445a32913feeb73eac9d7567d6354ac945cecab4jUg  X  @@ -238,7 +238,8 @@ public void incorporatesLocalWritesIntoRowColumnRangeQueries() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21), ColumnAndValue.of(20, 34)))
+                        ImmutableList.of(
+                                ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21), ColumnAndValue.of(20, 34)))
                 .write(5, 10, 99)
                 .write(5, 13, 24)
                 .delete(5, 15)
@@ -286,8 +287,9 @@ public void identifiesUnexpectedMissingCellInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                        action.expectedColumnsAndValues())
-                        .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21), ColumnAndValue.of(20, 34)));
+                                action.expectedColumnsAndValues())
+                        .containsExactly(
+                                ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21), ColumnAndValue.of(20, 34)));
     }
 
     @Test
@@ -302,7 +304,8 @@ public void identifiesUnexpectedAdditionalCellInRowColumnRangeRead() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 24), ColumnAndValue.of(20, 34)))
+                        ImmutableList.of(
+                                ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 24), ColumnAndValue.of(20, 34)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -314,7 +317,7 @@ public void identifiesUnexpectedAdditionalCellInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                        action.expectedColumnsAndValues())
+                                action.expectedColumnsAndValues())
                         .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
     }
 
@@ -342,7 +345,7 @@ public void identifiesIncorrectCellValuesInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                        action.expectedColumnsAndValues())
+                                action.expectedColumnsAndValues())
                         .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
     }
 
@@ -370,7 +373,7 @@ public void identifiesIncorrectOrderingInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                        action.expectedColumnsAndValues())
+                                action.expectedColumnsAndValues())
                         .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
     }
 u}(jf  (266e55cdc424d018bda3ec031339e3e34cfa9eafjJg  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javajLg  modifiedjDg  K&jEg  K&jNg  KLjOg  https://github.com/palantir/atlasdb/blob/445a32913feeb73eac9d7567d6354ac945cecab4/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajQg  https://github.com/palantir/atlasdb/raw/445a32913feeb73eac9d7567d6354ac945cecab4/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajSg  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=445a32913feeb73eac9d7567d6354ac945cecab4jUg  X?  @@ -59,10 +59,10 @@ public void before() {
     @Test
     public void witnessRecordsAllSingleCellActions() {
         assertThat(readWrite(transaction -> {
-            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-            transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
-        }))
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
@@ -72,10 +72,10 @@ public void witnessRecordsAllSingleCellActions() {
     @Test
     public void readHandlesEmptyAndPresentValue() {
         assertThat(readWrite(transaction -> {
-            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-            transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
-            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-        }))
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
                 .containsExactly(
                         WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
@@ -86,9 +86,9 @@ public void readHandlesEmptyAndPresentValue() {
     @Test
     public void witnessRecordsColumnRangeActions() {
         assertThat(readWrite(transaction -> {
-            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-            transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
-        }))
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+                }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedRowColumnRangeReadTransactionAction.builder()
@@ -104,8 +104,8 @@ public void witnessRecordsColumnRangeActions() {
     @Test
     public void emptyColumnRangeReadsAreRecorded() {
         assertThat(readWrite(transaction -> {
-            transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
-        }))
+                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+                }))
                 .containsExactly(WitnessedRowColumnRangeReadTransactionAction.builder()
                         .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                 .table(TABLE_1)
@@ -119,11 +119,11 @@ public void emptyColumnRangeReadsAreRecorded() {
     public void allRelevantCellsAreRecordedForFullColumnScan() {
         int iterationCount = 1000;
         assertThat(readWrite(transaction -> {
-            IntStream.range(0, iterationCount)
-                    .forEach(column ->
-                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-            transaction.getRowColumnRange(TABLE_1, 1, ColumnRangeSelection.all());
-        }))
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(TABLE_1, 1, ColumnRangeSelection.all());
+                }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
@@ -141,17 +141,17 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
         int startInclusive = 313;
         int endExclusive = 855;
         assertThat(readWrite(transaction -> {
-            IntStream.range(0, iterationCount)
-                    .forEach(column ->
-                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-            transaction.getRowColumnRange(
-                    TABLE_1,
-                    1,
-                    ColumnRangeSelection.builder()
-                            .startColumnInclusive(startInclusive)
-                            .endColumnExclusive(endExclusive)
-                            .build());
-        }))
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(
+                            TABLE_1,
+                            1,
+                            ColumnRangeSelection.builder()
+                                    .startColumnInclusive(startInclusive)
+                                    .endColumnExclusive(endExclusive)
+                                    .build());
+                }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
@@ -221,22 +221,22 @@ private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTr
     private void assertThatThrownWhenUnknownTableReferenced(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-            transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
-            return null;
-        }))
+                    transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
+                    return null;
+                }))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Transaction action has unknown table.");
     }
 
     private void assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-            AtlasDbInteractiveTransaction transaction =
-                    new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
-            transaction.witness();
-            transactionConsumer.accept(transaction);
-            return null;
-        }))
+                    AtlasDbInteractiveTransaction transaction =
+                            new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
+                    transaction.witness();
+                    transactionConsumer.accept(transaction);
+                    return null;
+                }))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Transaction has already been witnessed and can no longer perform any actions.");
     }u}(jf  (ffb3e2fbc7c39ab5d7801cf2deec03b703b46b32jJg  oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReaderTest.javajLg  modifiedjDg  KjEg  KjNg  K&jOg  https://github.com/palantir/atlasdb/blob/445a32913feeb73eac9d7567d6354ac945cecab4/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javajQg  https://github.com/palantir/atlasdb/raw/445a32913feeb73eac9d7567d6354ac945cecab4/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javajSg  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.java?ref=445a32913feeb73eac9d7567d6354ac945cecab4jUg  X
  @@ -38,10 +38,10 @@ public void doesNotReadCellsFromDifferentTable() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                .table(WorkloadTestHelpers.TABLE_2)
-                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
-                .columnRangeSelection(ColumnRangeSelection.all())
-                .build()))
+                        .table(WorkloadTestHelpers.TABLE_2)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                        .columnRangeSelection(ColumnRangeSelection.all())
+                        .build()))
                 .isEmpty();
     }
 
@@ -51,10 +51,10 @@ public void doesNotReadCellsFromDifferentRow() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                .table(WorkloadTestHelpers.TABLE_1)
-                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
-                .columnRangeSelection(ColumnRangeSelection.builder().build())
-                .build()))
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
+                        .columnRangeSelection(ColumnRangeSelection.builder().build())
+                        .build()))
                 .isEmpty();
     }
 
@@ -67,13 +67,13 @@ public void readsCellsFromRangeInOrder() {
                     Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         }
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                .table(WorkloadTestHelpers.TABLE_1)
-                .row(1)
-                .columnRangeSelection(ColumnRangeSelection.builder()
-                        .startColumnInclusive(2)
-                        .endColumnExclusive(4)
-                        .build())
-                .build()))
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(1)
+                        .columnRangeSelection(ColumnRangeSelection.builder()
+                                .startColumnInclusive(2)
+                                .endColumnExclusive(4)
+                                .build())
+                        .build()))
                 .containsExactly(
                         ColumnAndValue.of(2, WorkloadTestHelpers.VALUE_ONE),
                         ColumnAndValue.of(3, WorkloadTestHelpers.VALUE_ONE));
@@ -85,10 +85,10 @@ public void doesNotReturnExplicitlyEmptyValues() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.empty()));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                .table(WorkloadTestHelpers.TABLE_1)
-                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
-                .columnRangeSelection(ColumnRangeSelection.all())
-                .build()))
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                        .columnRangeSelection(ColumnRangeSelection.all())
+                        .build()))
                 .isEmpty();
     }
 }ueu(09d316c51979f2dfe1f39e35935fd5282085419d}(sha(09d316c51979f2dfe1f39e35935fd5282085419dnode_idEC_kwDOAjP5fdoAKDA5ZDMxNmM1MTk3OWYyZGZlMWYzOWUzNTkzNWZkNTI4MjA4NTQxOWQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-07-14T15:46:25Zu	committer}(jg  
Sam Kramerjg  skramer@palantir.comjg  2023-07-14T15:46:44Zumessageremove new linestree}(jg  (4add37cb795b4549cf90ac51227ff50251175123url`https://api.github.com/repos/palantir/atlasdb/git/trees/4add37cb795b4549cf90ac51227ff50251175123ujg  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/09d316c51979f2dfe1f39e35935fd5282085419d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSxbeQACgkQmPPOpKR4
XS0FiAf9E3bW6p8XzyauweEJgXOaZQx+RtpuSeGbH6Dz31EfYmqwdmDueG7m8EAJ
w3x5PFZYo9L7FHPk23PifxQdgJBQM57E76ieJUk796KU9A3tsGZU/SUbzdUVPE8j
bUeEnoQ5X3k4HLaJja3iPMVBDULjrzcckHCwCZna1k+EBn58dnxVKBehwMTI2QjV
HcEi4WUA7ZNYMvsgd3GeHQo8BaaBdv0WXWlVDu/jYMtlde5bZV/C6/L8U4B8JvOl
/0UFUwG1+2h8V/2OFTl6YjMKFmbQ3TpF1N8K/rrKiW87ATeFZEnnAighBu4SRYQA
PWsDanbGSxCJbMjh9Ov/fYev7g2o2g==
=ztEW
-----END PGP SIGNATURE-----payloadtree 4add37cb795b4549cf90ac51227ff50251175123
parent cf5036bc3f1fa8134f905e10be57b521fdaae002
author Sam Kramer <skramer@palantir.com> 1689349585 +0100
committer Sam Kramer <skramer@palantir.com> 1689349604 +0100

remove new lines
uujg  ^https://api.github.com/repos/palantir/atlasdb/commits/09d316c51979f2dfe1f39e35935fd5282085419dhtml_urlShttps://github.com/palantir/atlasdb/commit/09d316c51979f2dfe1f39e35935fd5282085419dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/09d316c51979f2dfe1f39e35935fd5282085419d/commentsjg  }(login
Sam-KrameridJ^2_ jg  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jg  'https://api.github.com/users/Sam-Kramerjg  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujg  }(jg  
Sam-Kramerjg  J^2_ jg  MDQ6VXNlcjYyMzg4MTQ=jg  3https://avatars.githubusercontent.com/u/6238814?v=4jg  h5jg  'https://api.github.com/users/Sam-Kramerjg  https://github.com/Sam-Kramerjg  1https://api.github.com/users/Sam-Kramer/followersjg  >https://api.github.com/users/Sam-Kramer/following{/other_user}jg  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jg  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jg  5https://api.github.com/users/Sam-Kramer/subscriptionsjg  ,https://api.github.com/users/Sam-Kramer/orgsjg  -https://api.github.com/users/Sam-Kramer/reposjg  8https://api.github.com/users/Sam-Kramer/events{/privacy}jg  7https://api.github.com/users/Sam-Kramer/received_eventsjg  Userjg  uparents]}(jg  (cf5036bc3f1fa8134f905e10be57b521fdaae002jg  ^https://api.github.com/repos/palantir/atlasdb/commits/cf5036bc3f1fa8134f905e10be57b521fdaae002jg  Shttps://github.com/palantir/atlasdb/commit/cf5036bc3f1fa8134f905e10be57b521fdaae002uastats}(totalK	additionsK	deletionsKufiles]}(jg  (6d81d856dcfcfde488238b25a5d5367e13bd6f75filenameWdocs/source/configuration/key_value_service_configs/oracle_key_value_service_config.rststatusmodifiedjg  Kjg  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/09d316c51979f2dfe1f39e35935fd5282085419d/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rstraw_urlhttps://github.com/palantir/atlasdb/raw/09d316c51979f2dfe1f39e35935fd5282085419d/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rstcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rst?ref=09d316c51979f2dfe1f39e35935fd5282085419d*      patchX  @@ -228,10 +228,4 @@ still satisfies the status quo, thus it's on the configurator to determine if th
 
 Although the alter action is idempotent, it is recommended to remove the configuration after it has ran. Check the logs
 for ``Altering table to have overflow column to match metadata.`` and that there were no error logs printed to ensure that
-has successfully ran.
-
-
-
-
-
-
+has successfully ran.
\ No newline at end of fileuau(4d40fa1e7ff9dd21862fcc66b14b5bc818a8d609}(sha(4d40fa1e7ff9dd21862fcc66b14b5bc818a8d609node_idEC_kwDOAjP5fdoAKDRkNDBmYTFlN2ZmOWRkMjE4NjJmY2M2NmIxNGI1YmM4MThhOGQ2MDkcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-04-14T15:36:13Zu	committer}(j h  GitHubjh  noreply@github.comjh  2023-04-14T15:36:13Zumessage Make test query optional (#6521)tree}(jg  (8c391190be91fa91d84fe385b6c76b4036b66e9eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/8c391190be91fa91d84fe385b6c76b4036b66e9eujh  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4d40fa1e7ff9dd21862fcc66b14b5bc818a8d609
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkOXLtCRBK7hj4Ov3rIwAAw7cIABN21bG7ear6J59zUDS3g9wR
qhGBO6c65PC8ki//zQoV/hHzJTSQHjh14xo4x5etLeo7Eq2R7ZFf+S9EycUA/dQx
6d5Rh65O2DBj4u0R8qgqXITYnSlgAZRTNBQHjmiCskMm60iAd1K55RsFhisB46F2
Z1VcltFkpB0Y4IHIMcs2gzP8cbreMjzFQGae0xrB4ImEXYPNbFTcA+75kwbD8Qv7
NBEoj0eQHSHcUIc+j9pGeiiSaZKKVdtPNS8uEj4ahFCoZYr9vS8WrbOXeJRRLoNu
8drAWI2kl1s8I7YxDaiGpw780lV2bsVd+gtsIzxDmr/E5REry3p51aCwFOv49lI=
=1tRj
-----END PGP SIGNATURE-----
payloadtree 8c391190be91fa91d84fe385b6c76b4036b66e9e
parent a732d2ad19db9312e9d3ef7b01079b81616c950d
author Patrick Koenig <pkoenig10@gmail.com> 1681486573 -0700
committer GitHub <noreply@github.com> 1681486573 +0000

Make test query optional (#6521)

 uujh  ^https://api.github.com/repos/palantir/atlasdb/commits/4d40fa1e7ff9dd21862fcc66b14b5bc818a8d609html_urlShttps://github.com/palantir/atlasdb/commit/4d40fa1e7ff9dd21862fcc66b14b5bc818a8d609comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4d40fa1e7ff9dd21862fcc66b14b5bc818a8d609/commentsjg  }(login	pkoenig10idJLvP jg  MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5jh  &https://api.github.com/users/pkoenig10jh  https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminujh  }(j#h  web-flowj%h  J/jg  MDQ6VXNlcjE5ODY0NDQ3j'h  4https://avatars.githubusercontent.com/u/19864447?v=4j)h  h5jh  %https://api.github.com/users/web-flowjh  https://github.com/web-flowj,h  /https://api.github.com/users/web-flow/followersj.h  <https://api.github.com/users/web-flow/following{/other_user}j0h  5https://api.github.com/users/web-flow/gists{/gist_id}j2h  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j4h  3https://api.github.com/users/web-flow/subscriptionsj6h  *https://api.github.com/users/web-flow/orgsj8h  +https://api.github.com/users/web-flow/reposj:h  6https://api.github.com/users/web-flow/events{/privacy}j<h  5https://api.github.com/users/web-flow/received_eventsj>h  Userj@h  uparents]}(jg  (a732d2ad19db9312e9d3ef7b01079b81616c950djh  ^https://api.github.com/repos/palantir/atlasdb/commits/a732d2ad19db9312e9d3ef7b01079b81616c950djh  Shttps://github.com/palantir/atlasdb/commit/a732d2ad19db9312e9d3ef7b01079b81616c950duastats}(totalK	additionsK	deletionsK
ufiles](}(jg  (9c5d0752d26338a6bd7a12031a481f8b1013f2d0filename\atlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/HikariCPConnectionManager.javastatusmodifiedjZh  Kj[h  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/4d40fa1e7ff9dd21862fcc66b14b5bc818a8d609/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4d40fa1e7ff9dd21862fcc66b14b5bc818a8d609/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.java?ref=4d40fa1e7ff9dd21862fcc66b14b5bc818a8d609patchX  @@ -246,20 +246,21 @@ private void testDataSource(HikariDataSource dataSourcePool) throws SQLException
      * @throws SQLException if connection is invalid and cannot be used.
      */
     private void testConnection(Connection connection) throws SQLException {
-        if (connConfig.getTestQuery().isEmpty()) {
-            if (!connection.isValid(connConfig.getSocketTimeoutSeconds())) {
-                throw new SQLException(String.format("Connection %s is not valid", connection));
-            }
-        } else {
-            try (PreparedStatement stmt = connection.prepareStatement(connConfig.getTestQuery())) {
+        if (connConfig.getTestQuery().isPresent()) {
+            try (PreparedStatement stmt =
+                    connection.prepareStatement(connConfig.getTestQuery().get())) {
                 stmt.setFetchSize(1); // only need first row result
                 ResultSet rs = stmt.executeQuery();
                 if (!rs.next()) {
                     throw new SQLException(String.format(
                             "Connection %s could not be validated as it did not return any results for test query %s",
-                            connection, connConfig.getTestQuery()));
+                            connection, connConfig.getTestQuery().get()));
                 }
             }
+        } else {
+            if (!connection.isValid(connConfig.getSocketTimeoutSeconds())) {
+                throw new SQLException(String.format("Connection %s is not valid", connection));
+            }
         }
     }
 u}(jg  (e1fd2afeb410162c7eb111eb2ed045144d3511afj`h  Zatlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/ConnectionConfig.javajbh  modifiedjZh  Kj[h  Kjdh  K	jeh  https://github.com/palantir/atlasdb/blob/4d40fa1e7ff9dd21862fcc66b14b5bc818a8d609/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javajgh  https://github.com/palantir/atlasdb/raw/4d40fa1e7ff9dd21862fcc66b14b5bc818a8d609/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javajih  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.java?ref=4d40fa1e7ff9dd21862fcc66b14b5bc818a8d609jkh  X  @@ -58,10 +58,7 @@ public MaskedValue getDbPassword() {
 
     public abstract String getDriverClass();
 
-    @Value.Default
-    public String getTestQuery() {
-        return "";
-    }
+    public abstract Optional<String> getTestQuery();
 
     @JsonIgnore
     @Value.Derived
@@ -185,8 +182,8 @@ public HikariConfig getHikariConfig() {
 
         initializeFailTimeoutMillis().ifPresent(config::setInitializationFailTimeout);
 
-        if (!getTestQuery().isEmpty()) {
-            config.setConnectionTestQuery(getTestQuery());
+        if (getTestQuery().isPresent()) {
+            config.setConnectionTestQuery(getTestQuery().get());
         }
 
         if (getSqlExceptionOverrideClass().isPresent()) {ueu(7365b309d8fa07e6a318d8bd2764abfcb88fb7c2}(sha(7365b309d8fa07e6a318d8bd2764abfcb88fb7c2node_idEC_kwDOAjP5fdoAKDczNjViMzA5ZDhmYTA3ZTZhMzE4ZDhiZDI3NjRhYmZjYjg4ZmI3YzIcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-06-14T09:53:48Zu	committer}(jh  
svc-changelogjh  svc-changelog@palantir.comjh  2023-06-14T09:53:48ZumessageAdd generated changelog entriestree}(jwh  (100d515aead4c973e79cb25d2bcb5820dd4b1a40url`https://api.github.com/repos/palantir/atlasdb/git/trees/100d515aead4c973e79cb25d2bcb5820dd4b1a40ujh  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7365b309d8fa07e6a318d8bd2764abfcb88fb7c2
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSJjiwJEHYaJX37fAFQAADwEQD/QuKYgnM2IkBpU5qrtQLKLt9f
7KvAoBJ8W4Dxh6KqPDYBAN4ernbkHIo5glzoGvvMzaprV2KJaaq1FZNK8IzIbgNl
=C6kt
-----END PGP SIGNATURE-----payloadX  tree 100d515aead4c973e79cb25d2bcb5820dd4b1a40
parent b206658b6de1fa87ee097e4d076d7eb6697a7cb6
author svc-changelog <svc-changelog@palantir.com> 1686736428 +0000
committer svc-changelog <svc-changelog@palantir.com> 1686736428 +0000

Add generated changelog entriesuujh  ^https://api.github.com/repos/palantir/atlasdb/commits/7365b309d8fa07e6a318d8bd2764abfcb88fb7c2html_urlShttps://github.com/palantir/atlasdb/commit/7365b309d8fa07e6a318d8bd2764abfcb88fb7c2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7365b309d8fa07e6a318d8bd2764abfcb88fb7c2/commentsj}h  }(login
svc-changelogidJ#jyh  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jh  *https://api.github.com/users/svc-changelogjh   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujh  }(jh  
svc-changelogjh  J#jyh  MDQ6VXNlcjg0MDc3NjAzjh  4https://avatars.githubusercontent.com/u/84077603?v=4jh  h5jh  *https://api.github.com/users/svc-changelogjh   https://github.com/svc-changelogjh  4https://api.github.com/users/svc-changelog/followersjh  Ahttps://api.github.com/users/svc-changelog/following{/other_user}jh  :https://api.github.com/users/svc-changelog/gists{/gist_id}jh  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jh  8https://api.github.com/users/svc-changelog/subscriptionsjh  /https://api.github.com/users/svc-changelog/orgsjh  0https://api.github.com/users/svc-changelog/reposjh  ;https://api.github.com/users/svc-changelog/events{/privacy}jh  :https://api.github.com/users/svc-changelog/received_eventsjh  Userjh  uparents]}(jwh  (b206658b6de1fa87ee097e4d076d7eb6697a7cb6jh  ^https://api.github.com/repos/palantir/atlasdb/commits/b206658b6de1fa87ee097e4d076d7eb6697a7cb6jh  Shttps://github.com/palantir/atlasdb/commit/b206658b6de1fa87ee097e4d076d7eb6697a7cb6uastats}(totalK	additionsK	deletionsK ufiles]}(jwh  (a6c9d3dd239346b5de33d708683efcea7ca6e0d1filename$changelog/@unreleased/pr-6623.v2.ymlstatusaddedjh  Kjh  K changesKblob_url|https://github.com/palantir/atlasdb/blob/7365b309d8fa07e6a318d8bd2764abfcb88fb7c2/changelog%2F%40unreleased%2Fpr-6623.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/7365b309d8fa07e6a318d8bd2764abfcb88fb7c2/changelog%2F%40unreleased%2Fpr-6623.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6623.v2.yml?ref=7365b309d8fa07e6a318d8bd2764abfcb88fb7c2patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Log lock holder thread info on timeout, slow lock acquisition and contention
+  links:
+  - https://github.com/palantir/atlasdb/pull/6623uau(ab89db6a50540024580e102021afaee083b82a20}(sha(ab89db6a50540024580e102021afaee083b82a20node_idEC_kwDOAjP5fdoAKGFiODlkYjZhNTA1NDAwMjQ1ODBlMTAyMDIxYWZhZWUwODNiODJhMjAcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-23T15:17:36Zu	committer}(jh  
Sam Kramerjh  skramer@palantir.comjh  2023-05-23T15:17:36ZumessageHPrint index for single row two cell workflow for successful transactionstree}(jh  (69dcf4ec2cbb6b7896373b5109e069a7f1748ac7url`https://api.github.com/repos/palantir/atlasdb/git/trees/69dcf4ec2cbb6b7896373b5109e069a7f1748ac7uji  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ab89db6a50540024580e102021afaee083b82a20
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRs2REACgkQmPPOpKR4
XS3pUAf+JFjQdXxwnEFfqDhpzNGyY7HtoHQDPZVQ5P+A6ExZ2kJRTTbjoE1Lq0b/
PiC2Mcd4eWV9eQIQR/nJ5KIOXkEXRS+l1k/RKHEvVwPn1wFuAd8ZqixRMtL2qtd0
SHjbGfZ1x71vpz2LZTvkVGAdimVoUU3qeEFIMTtBNAivvD/wmkHKxwD53Kqh1gVq
hOlNao6yoP/f6KS3cDyhCXH6Tf7aZv5elKtgRZMKfvQHMkBHe59IhdTZ0Kg1xI27
MJLzjIFUEkRmnmb9a86yTvdOy/XgiCulqiMWFgtMWYIXAIK5ZVMlYeD1+gGz+jes
eC5SqEdB9yXriQcgRD9KIOgsSYjQ5Q==
=15eK
-----END PGP SIGNATURE-----payloadX  tree 69dcf4ec2cbb6b7896373b5109e069a7f1748ac7
parent 556a0a85a7424531ce43b62423c44e2571bd3c83
author Sam Kramer <skramer@palantir.com> 1684855056 +0100
committer Sam Kramer <skramer@palantir.com> 1684855056 +0100

Print index for single row two cell workflow for successful transactions
uuji  ^https://api.github.com/repos/palantir/atlasdb/commits/ab89db6a50540024580e102021afaee083b82a20html_urlShttps://github.com/palantir/atlasdb/commit/ab89db6a50540024580e102021afaee083b82a20comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ab89db6a50540024580e102021afaee083b82a20/commentsjh  }(login
Sam-KrameridJ^2_ jh  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5ji  'https://api.github.com/users/Sam-Kramerji  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujh  }(ji  
Sam-Kramerji  J^2_ jh  MDQ6VXNlcjYyMzg4MTQ=ji  3https://avatars.githubusercontent.com/u/6238814?v=4ji  h5ji  'https://api.github.com/users/Sam-Kramerji  https://github.com/Sam-Kramerj"i  1https://api.github.com/users/Sam-Kramer/followersj$i  >https://api.github.com/users/Sam-Kramer/following{/other_user}j&i  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j(i  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j*i  5https://api.github.com/users/Sam-Kramer/subscriptionsj,i  ,https://api.github.com/users/Sam-Kramer/orgsj.i  -https://api.github.com/users/Sam-Kramer/reposj0i  8https://api.github.com/users/Sam-Kramer/events{/privacy}j2i  7https://api.github.com/users/Sam-Kramer/received_eventsj4i  Userj6i  uparents]}(jh  (556a0a85a7424531ce43b62423c44e2571bd3c83ji  ^https://api.github.com/repos/palantir/atlasdb/commits/556a0a85a7424531ce43b62423c44e2571bd3c83ji  Shttps://github.com/palantir/atlasdb/commit/556a0a85a7424531ce43b62423c44e2571bd3c83uastats}(totalK
	additionsK		deletionsKufiles]}(jh  (32ce774d4a8fd320c1af7af7c838de4f7f6065e3filenamelatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javastatusmodifiedjPi  K	jQi  KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/ab89db6a50540024580e102021afaee083b82a20/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ab89db6a50540024580e102021afaee083b82a20/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=ab89db6a50540024580e102021afaee083b82a20patchX  @@ -28,6 +28,9 @@
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
 import java.util.Optional;
 import java.util.stream.Collectors;
@@ -39,6 +42,7 @@
  * to delete the other.
  */
 public final class SingleRowTwoCellsWorkflows {
+    private static final SafeLogger log = SafeLoggerFactory.get(SingleRowTwoCellsWorkflows.class);
     private static final int SINGLE_ROW = 1;
     private static final int FIRST_COLUMN = 1;
     private static final int SECOND_COLUMN = 2;
@@ -70,7 +74,11 @@ private static Optional<WitnessedTransaction> run(
 
         List<TransactionAction> transactionActions = createTransactionActions(
                 taskIndex, workflowConfiguration.tableConfiguration().tableName());
-        return store.readWrite(transactionActions);
+        Optional<WitnessedTransaction> maybeTransaction = store.readWrite(transactionActions);
+        maybeTransaction.ifPresent(_transaction -> log.info(
+                "Transaction successfully committed for single row two cells workflow for task index {}.",
+                SafeArg.of("taskIndex", taskIndex)));
+        return maybeTransaction;
     }
 
     @VisibleForTestinguau(3acebd8df13965d4829f7cf2e3208d4ebae27f0e}(sha(3acebd8df13965d4829f7cf2e3208d4ebae27f0enode_idEC_kwDOAjP5fdoAKDNhY2ViZDhkZjEzOTY1ZDQ4MjlmN2NmMmUzMjA4ZDRlYmFlMjdmMGUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-21T01:59:18Zu	committer}(jmi  
Ahmed Alouanejoi  aalouane@palantir.comjqi  2023-04-21T01:59:18Zumessagewuuuttree}(jei  (569b399e15c0d67270bc0afacd50a1fe44f542acurl`https://api.github.com/repos/palantir/atlasdb/git/trees/569b399e15c0d67270bc0afacd50a1fe44f542acuj}i  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3acebd8df13965d4829f7cf2e3208d4ebae27f0e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRB7fYACgkQPlMHVIT1
yhp1UQgAlHSbk6mQgnaRuZbZ3vkFbZVS0DPrnDDdLcqgtFpMokRiJS3RmtSrLvcy
E0ysKHaRCAArK4GQ7sz1hMwLHaZDRhKf1dEc/gfMVndfrid82Drh5iMV9TsAMGZc
QewCVLtIsT3EyAME84v+vRTI0VZ82X9YfzlkbErntxyXZ5Zezye7GOPzo8tXDX9d
QTNVo161jCnWUehqG5c/X8ifAUY4aVWHbKG/AhNj8gCA1Vsqr4qdSRaXkRiAL8Fh
NscBqaXxY2j1teKHY5DGhDpxVvH+PkM6NaGfJ+8c/Djpy4wkzyRg1HzwV2Yire7w
AwGAeWMlicl6aOB4cyyC/Ug28B5byw==
=FTz3
-----END PGP SIGNATURE-----payloadtree 569b399e15c0d67270bc0afacd50a1fe44f542ac
parent f5ecbdca1c46da835c50cee1e4249e7fa4421863
author Ahmed Alouane <aalouane@palantir.com> 1682042358 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682042358 +0100

wuuut
uuj}i  ^https://api.github.com/repos/palantir/atlasdb/commits/3acebd8df13965d4829f7cf2e3208d4ebae27f0ehtml_urlShttps://github.com/palantir/atlasdb/commit/3acebd8df13965d4829f7cf2e3208d4ebae27f0ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3acebd8df13965d4829f7cf2e3208d4ebae27f0e/commentsjki  }(loginergo14idJjgi  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j}i  #https://api.github.com/users/ergo14ji  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujsi  }(ji  ergo14ji  Jjgi  MDQ6VXNlcjMwOTAzNzM2ji  4https://avatars.githubusercontent.com/u/30903736?v=4ji  h5j}i  #https://api.github.com/users/ergo14ji  https://github.com/ergo14ji  -https://api.github.com/users/ergo14/followersji  :https://api.github.com/users/ergo14/following{/other_user}ji  3https://api.github.com/users/ergo14/gists{/gist_id}ji  :https://api.github.com/users/ergo14/starred{/owner}{/repo}ji  1https://api.github.com/users/ergo14/subscriptionsji  (https://api.github.com/users/ergo14/orgsji  )https://api.github.com/users/ergo14/reposji  4https://api.github.com/users/ergo14/events{/privacy}ji  3https://api.github.com/users/ergo14/received_eventsji  Userji  uparents]}(jei  (f5ecbdca1c46da835c50cee1e4249e7fa4421863j}i  ^https://api.github.com/repos/palantir/atlasdb/commits/f5ecbdca1c46da835c50cee1e4249e7fa4421863ji  Shttps://github.com/palantir/atlasdb/commit/f5ecbdca1c46da835c50cee1e4249e7fa4421863uastats}(totalK	additionsK	deletionsKufiles]}(jei  (daa3ec06791920880b9fdc44d6a5958475931086filename%scripts/circle-ci/run-circle-tests.shstatusmodifiedji  Kji  KchangesKblob_url{https://github.com/palantir/atlasdb/blob/3acebd8df13965d4829f7cf2e3208d4ebae27f0e/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/3acebd8df13965d4829f7cf2e3208d4ebae27f0e/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=3acebd8df13965d4829f7cf2e3208d4ebae27f0epatch@@ -2,7 +2,7 @@
 
 set -x
 
-BASE_GRADLE_ARGS="--profile --fail-fast"
+BASE_GRADLE_ARGS="--profile"
 
 function checkDocsBuild {
      pyenv install 3.5.4uau(c1edfa1e764e67831269965caa6052f9c53f05b0}(sha(c1edfa1e764e67831269965caa6052f9c53f05b0node_idEC_kwDOAjP5fdoAKGMxZWRmYTFlNzY0ZTY3ODMxMjY5OTY1Y2FhNjA1MmY5YzUzZjA1YjAcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-07-19T12:05:35Zu	committer}(ji  svc-excavator-botji  svc-excavator-bot@palantir.comji  2023-07-19T12:05:35ZumessageExcavator:  Format Java filestree}(ji  (12e8fbb90d2d2a9d46a7ae8460216e3154fe9ceburl`https://api.github.com/repos/palantir/atlasdb/git/trees/12e8fbb90d2d2a9d46a7ae8460216e3154fe9cebuji  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c1edfa1e764e67831269965caa6052f9c53f05b0
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmS30Y8JEMmvEkpISILgAAD/UQEA2Y2mK7s9pk6KXOa/y1yfMhf+
KPuiWJNa9gCxomZ+Tj4A/0HzVGRtF4fqzAImQ/Aq6lbpU2tYwiX7SiKv2BG+eADs
=x1yo
-----END PGP SIGNATURE-----
payloadX  tree 12e8fbb90d2d2a9d46a7ae8460216e3154fe9ceb
parent 46f8ba918722e9153e09b4c9385812631f685207
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1689768335 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1689768335 +0000

Excavator:  Format Java filesuuji  ^https://api.github.com/repos/palantir/atlasdb/commits/c1edfa1e764e67831269965caa6052f9c53f05b0html_urlShttps://github.com/palantir/atlasdb/commit/c1edfa1e764e67831269965caa6052f9c53f05b0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c1edfa1e764e67831269965caa6052f9c53f05b0/commentsji  }(loginsvc-excavator-botidJji  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5ji  .https://api.github.com/users/svc-excavator-botjj  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuji  }(jj  svc-excavator-botj	j  Jji  MDQ6VXNlcjMzMjY2MzY4jj  4https://avatars.githubusercontent.com/u/33266368?v=4j
j  h5ji  .https://api.github.com/users/svc-excavator-botjj  $https://github.com/svc-excavator-botjj  8https://api.github.com/users/svc-excavator-bot/followersjj  Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}jj  >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}jj  Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}jj  <https://api.github.com/users/svc-excavator-bot/subscriptionsjj  3https://api.github.com/users/svc-excavator-bot/orgsjj  4https://api.github.com/users/svc-excavator-bot/reposjj  ?https://api.github.com/users/svc-excavator-bot/events{/privacy}j j  >https://api.github.com/users/svc-excavator-bot/received_eventsj"j  Userj$j  uparents]}(ji  (46f8ba918722e9153e09b4c9385812631f685207ji  ^https://api.github.com/repos/palantir/atlasdb/commits/46f8ba918722e9153e09b4c9385812631f685207jj  Shttps://github.com/palantir/atlasdb/commit/46f8ba918722e9153e09b4c9385812631f685207uastats}(totalK	additionsK	deletionsKufiles]}(ji  (ebf20a208b87726f6e94b4e8b4361258f42810aefilenamebuild.gradlestatusmodifiedj>j  Kj?j  KchangesKblob_url^https://github.com/palantir/atlasdb/blob/c1edfa1e764e67831269965caa6052f9c53f05b0/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/c1edfa1e764e67831269965caa6052f9c53f05b0/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=c1edfa1e764e67831269965caa6052f9c53f05b0patchXw  @@ -17,7 +17,7 @@ buildscript {
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.33.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
         classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.3'uau(b0b25b88284141ca3729494caadeaf1033f9cf76}(sha(b0b25b88284141ca3729494caadeaf1033f9cf76node_idEC_kwDOAjP5fdoAKGIwYjI1Yjg4Mjg0MTQxY2EzNzI5NDk0Y2FhZGVhZjEwMzNmOWNmNzYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-27T13:48:19Zu	committer}(j[j  Jeremy Kongj]j  jkong@palantir.comj_j  2023-02-27T13:48:19ZumessageSlash and burntree}(jSj  (9438c0bcb65fc19a809ef07b5a7f53a04e401a4eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/9438c0bcb65fc19a809ef07b5a7f53a04e401a4eujkj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b0b25b88284141ca3729494caadeaf1033f9cf76
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmP8tKQACgkQTLdFKain
zjwEZQgAhTzeID1mkAeMPG4FASrixNRqOyiKKKYleEKN0WB5oOh7hhOQE3Gf0pTX
yL2BG8MIJkZ4nIvc5eNX4yfXr/DfLvm21eOz/8vbk6q9j1Z7MXkwaKMulsFT+gxH
lYnBu2siFBA3nF1+eUQJXU9sNiZUjgaApMgE3VDqGhihYuA+XoH/ghOb0jzPO+oU
J5DJBt3yX4MzTYU7QD1h4fUMZJT15gWo4ZCfic3Qaxh8r+uIb0i5a/jjzUrPQq6r
HWPcZoisWQPwL3GSK0IyB/pzVwu2Vjt1Tc3HE1/lX0hKTI1/x+Otn/5MESH7zyvj
/vWUoZPKkSfHssMWrIYjM+iDZ5izxg==
=wHgL
-----END PGP SIGNATURE-----payloadtree 9438c0bcb65fc19a809ef07b5a7f53a04e401a4e
parent e1ffe47bb8740d1cb9ec1cbfa108d353ae287181
author Jeremy Kong <jkong@palantir.com> 1677505699 +0000
committer Jeremy Kong <jkong@palantir.com> 1677505699 +0000

Slash and burn
uujkj  ^https://api.github.com/repos/palantir/atlasdb/commits/b0b25b88284141ca3729494caadeaf1033f9cf76html_urlShttps://github.com/palantir/atlasdb/commit/b0b25b88284141ca3729494caadeaf1033f9cf76comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b0b25b88284141ca3729494caadeaf1033f9cf76/commentsjYj  }(login
jeremyk-91idJZ jUj  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jkj  'https://api.github.com/users/jeremyk-91jyj  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujaj  }(j~j  
jeremyk-91jj  JZ jUj  MDQ6VXNlcjU5NTU1MTA=jj  3https://avatars.githubusercontent.com/u/5955510?v=4jj  h5jkj  'https://api.github.com/users/jeremyk-91jyj  https://github.com/jeremyk-91jj  1https://api.github.com/users/jeremyk-91/followersjj  >https://api.github.com/users/jeremyk-91/following{/other_user}jj  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jj  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jj  5https://api.github.com/users/jeremyk-91/subscriptionsjj  ,https://api.github.com/users/jeremyk-91/orgsjj  -https://api.github.com/users/jeremyk-91/reposjj  8https://api.github.com/users/jeremyk-91/events{/privacy}jj  7https://api.github.com/users/jeremyk-91/received_eventsjj  Userjj  uparents]}(jSj  (e1ffe47bb8740d1cb9ec1cbfa108d353ae287181jkj  ^https://api.github.com/repos/palantir/atlasdb/commits/e1ffe47bb8740d1cb9ec1cbfa108d353ae287181jyj  Shttps://github.com/palantir/atlasdb/commit/e1ffe47bb8740d1cb9ec1cbfa108d353ae287181uastats}(totalM~	additionsKƌ	deletionsKufiles](}(jSj  (9891f60d67299ccc96e2e1505697622b429cd956filenamejatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/KeyedTransactionTask.javastatusrenamedjj  Kjj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b0b25b88284141ca3729494caadeaf1033f9cf76/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b0b25b88284141ca3729494caadeaf1033f9cf76/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.java?ref=b0b25b88284141ca3729494caadeaf1033f9cf76patchX  @@ -26,6 +26,8 @@
  * as an input, and returns an {@link Optional} of {@link WitnessedTransaction}. Here, "index" refers to an integer
  * between 0 and the {@link WorkflowConfiguration#iterationCount()} - each copy of the task will receive a different
  * integer.
+ * If the transaction does not succeed, then the task should return an {@link Optional#empty()}. It should not throw
+ * an exception.
  */
 @FunctionalInterface
-public interface IndexedTransactionTask extends BiFunction<TransactionStore, Integer, Optional<WitnessedTransaction>> {}
+public interface KeyedTransactionTask extends BiFunction<TransactionStore, Integer, Optional<WitnessedTransaction>> {}previous_filenamelatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/IndexedTransactionTask.javau}(jSj  (f1fc2d0dbca1835573ea2d40a263c5e433b57888jj  ^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/Workflow.javajj  modifiedjj  Kjj  Kjj  Kjj  https://github.com/palantir/atlasdb/blob/b0b25b88284141ca3729494caadeaf1033f9cf76/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.javajj  https://github.com/palantir/atlasdb/raw/b0b25b88284141ca3729494caadeaf1033f9cf76/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.javajj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.java?ref=b0b25b88284141ca3729494caadeaf1033f9cf76jj  X  @@ -16,20 +16,15 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import java.util.function.Consumer;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.List;
 
 public interface Workflow {
     /**
-     * Runs desired workflow until completion.
+     * Runs desired workflow until completion. Returns a list of {@link WitnessedTransaction}, that corresponds to
+     * transactions that were known to be completed.
+     * This list is sorted by ascending "timeline timestamp", which is taken to be the commit timestamp in the case
+     * of read-write transactions, and the start timestamp in the case of read-only transactions.
      */
-    void run();
-
-    /**
-     * Registers a callback that will be called synchronously when the workflow has completed.
-     * If multiple callbacks are registered, there are no guarantees on the order in which they execute, or that they
-     * will execute sequentially or in parallel.
-     *
-     * Behaviour if consumers are added after a call of {@link #run()} has started are undefined.
-     */
-    Workflow onComplete(Consumer<WorkflowHistory> consumer);
+    List<WitnessedTransaction> run();
 }u}(jSj  (b4d783dbb2dd31f37be8e3b44482b52a6583de01jj  gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/ReadOnlyTransactionStore.javajj  addedjj  K$jj  K jj  K$jj  https://github.com/palantir/atlasdb/blob/b0b25b88284141ca3729494caadeaf1033f9cf76/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javajj  https://github.com/palantir/atlasdb/raw/b0b25b88284141ca3729494caadeaf1033f9cf76/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javajj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.java?ref=b0b25b88284141ca3729494caadeaf1033f9cf76jj  X  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import java.util.Optional;
+
+/**
+ * Facade around {@link ReadableTransactionStore}, to prevent users from casting to retrieve an underlying store that
+ * may implement more functionality.
+ */
+public final class ReadOnlyTransactionStore implements ReadableTransactionStore {
+    private final ReadableTransactionStore delegate;
+
+    public ReadOnlyTransactionStore(ReadableTransactionStore delegate) {
+        this.delegate = delegate;
+    }
+
+    @Override
+    public Optional<Integer> get(String table, WorkloadCell cell) {
+        return delegate.get(table, cell);
+    }
+}u}(jSj  (b204272a176a774b133f28a9d6c4aef2b38af775jj  matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunner.javajj  modifiedjj  Kjj  Kjj  Kjj  https://github.com/palantir/atlasdb/blob/b0b25b88284141ca3729494caadeaf1033f9cf76/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javajj  https://github.com/palantir/atlasdb/raw/b0b25b88284141ca3729494caadeaf1033f9cf76/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javajj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.java?ref=b0b25b88284141ca3729494caadeaf1033f9cf76jj  X  @@ -41,7 +41,7 @@ public ConcurrentTransactionRunner(
     }
 
     public Future<List<WitnessedTransaction>> runConcurrentTransactionTask(
-            IndexedTransactionTask transactionTask, int taskMultiplicity) {
+            KeyedTransactionTask transactionTask, int taskMultiplicity) {
         Preconditions.checkArgument(
                 taskMultiplicity >= 0,
                 "Tasks must be run a non-negative number of times",u}(jSj  (ac2169ba03ac1a299bca1373b1001f180fb6da4bjj  aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javajj  modifiedjj  Kjj  Kjj  K.jj  https://github.com/palantir/atlasdb/blob/b0b25b88284141ca3729494caadeaf1033f9cf76/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajj  https://github.com/palantir/atlasdb/raw/b0b25b88284141ca3729494caadeaf1033f9cf76/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=b0b25b88284141ca3729494caadeaf1033f9cf76jj  X  @@ -16,49 +16,65 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.logsafe.exceptions.SafeRuntimeException;
+import java.util.Comparator;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
-import java.util.function.Consumer;
+import java.util.stream.Collectors;
 
 public final class DefaultWorkflow implements Workflow {
     private final ConcurrentTransactionRunner concurrentTransactionRunner;
-    private final HistoryConsumptionRegistrar historyConsumptionRegistrar;
-    private final IndexedTransactionTask transactionTask;
+    private final KeyedTransactionTask transactionTask;
     private final WorkflowConfiguration workflowConfiguration;
 
     private DefaultWorkflow(
             ConcurrentTransactionRunner concurrentTransactionRunner,
-            HistoryConsumptionRegistrar historyConsumptionRegistrar,
-            IndexedTransactionTask transactionTask,
+            KeyedTransactionTask transactionTask,
             WorkflowConfiguration workflowConfiguration) {
         this.concurrentTransactionRunner = concurrentTransactionRunner;
-        this.historyConsumptionRegistrar = historyConsumptionRegistrar;
         this.transactionTask = transactionTask;
         this.workflowConfiguration = workflowConfiguration;
     }
 
     public static Workflow create(
-            TransactionStore store, IndexedTransactionTask transactionTask, WorkflowConfiguration configuration) {
+            TransactionStore store, KeyedTransactionTask transactionTask, WorkflowConfiguration configuration) {
         return new DefaultWorkflow(
                 new ConcurrentTransactionRunner(store, configuration.executionExecutor()),
-                new HistoryConsumptionRegistrar(store),
                 transactionTask,
                 configuration);
     }
 
     @Override
-    public void run() {
-        Future<List<WitnessedTransaction>> witnessedTransactions =
+    public List<WitnessedTransaction> run() {
+        return sortByEffectiveTimestamp(runTransactionTask());
+    }
+
+    private List<WitnessedTransaction> runTransactionTask() {
+        Future<List<WitnessedTransaction>> transactionsFuture =
                 concurrentTransactionRunner.runConcurrentTransactionTask(
                         transactionTask, workflowConfiguration.iterationCount());
-        historyConsumptionRegistrar.runOnConsumersBlocking(witnessedTransactions);
+        try {
+            return transactionsFuture.get();
+        } catch (InterruptedException e) {
+            Thread.currentThread().interrupt();
+            throw new SafeRuntimeException(e);
+        } catch (ExecutionException e) {
+            throw new SafeRuntimeException("Error when running workflow task", e.getCause());
+        }
     }
 
-    @Override
-    public Workflow onComplete(Consumer<WorkflowHistory> consumer) {
-        historyConsumptionRegistrar.addConsumer(consumer);
-        return this;
+    @VisibleForTesting
+    static List<WitnessedTransaction> sortByEffectiveTimestamp(List<WitnessedTransaction> unorderedTransactions) {
+        return unorderedTransactions.stream()
+                .sorted(Comparator.comparingLong(DefaultWorkflow::effectiveTimestamp))
+                .collect(Collectors.toList());
+    }
+
+    private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
+        return witnessedTransaction.commitTimestamp().orElse(witnessedTransaction.startTimestamp());
     }
 }u}(jSj  (c34e27f91c4724a99a625bf6454478cab9cc662ejj  matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/HistoryConsumptionRegistrar.javajj  removedjj  K jj  K>jj  K>jj  https://github.com/palantir/atlasdb/blob/e1ffe47bb8740d1cb9ec1cbfa108d353ae287181/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FHistoryConsumptionRegistrar.javajj  https://github.com/palantir/atlasdb/raw/e1ffe47bb8740d1cb9ec1cbfa108d353ae287181/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FHistoryConsumptionRegistrar.javajj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FHistoryConsumptionRegistrar.java?ref=e1ffe47bb8740d1cb9ec1cbfa108d353ae287181jj  X
  @@ -1,62 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.workflow;
-
-import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
-import com.palantir.logsafe.exceptions.SafeRuntimeException;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.Deque;
-import java.util.List;
-import java.util.concurrent.ConcurrentLinkedDeque;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.Future;
-import java.util.function.Consumer;
-
-public final class HistoryConsumptionRegistrar {
-    private static final SafeLogger log = SafeLoggerFactory.get(HistoryConsumptionRegistrar.class);
-
-    private final ReadableTransactionStore readableTransactionStore;
-    private final Deque<Consumer<WorkflowHistory>> consumers = new ConcurrentLinkedDeque<>();
-
-    public HistoryConsumptionRegistrar(ReadableTransactionStore readableTransactionStore) {
-        this.readableTransactionStore = readableTransactionStore;
-    }
-
-    public void addConsumer(Consumer<WorkflowHistory> consumer) {
-        consumers.add(consumer);
-    }
-
-    public void runOnConsumersBlocking(Future<List<WitnessedTransaction>> witnessedTransactions) {
-        try {
-            WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
-                    .history(witnessedTransactions.get())
-                    .transactionStore(readableTransactionStore)
-                    .build();
-            for (Consumer<WorkflowHistory> consumer : consumers) {
-                consumer.accept(workflowHistory);
-            }
-        } catch (ExecutionException e) {
-            log.warn("Error when running workflow.", e);
-            throw new SafeRuntimeException("Error when running workflow.", e.getCause());
-        } catch (InterruptedException e) {
-            Thread.currentThread().interrupt();
-            throw new SafeRuntimeException(e);
-        }
-    }
-}u}(jSj  (cee8db449033a3a13c0b2fe1f413db0e41bcf1c1jj  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunnerTest.javajj  modifiedjj  Kjj  Kjj  Kjj  https://github.com/palantir/atlasdb/blob/b0b25b88284141ca3729494caadeaf1033f9cf76/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javajj  https://github.com/palantir/atlasdb/raw/b0b25b88284141ca3729494caadeaf1033f9cf76/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javajj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.java?ref=b0b25b88284141ca3729494caadeaf1033f9cf76jj  X  @@ -49,7 +49,7 @@
 public class ConcurrentTransactionRunnerTest {
     private static final int DEFAULT_TASK_MULTIPLICITY = 100;
 
-    private final IndexedTransactionTask task = mock(IndexedTransactionTask.class);
+    private final KeyedTransactionTask task = mock(KeyedTransactionTask.class);
     private final TransactionStore store = mock(TransactionStore.class);
     private final DeterministicScheduler scheduler = new DeterministicScheduler();
     private final ListeningExecutorService executorService = MoreExecutors.listeningDecorator(scheduler);
@@ -95,7 +95,7 @@ public void resultFiltersOutTransactionsThatCouldNotBeWitnessed() {
         scheduler.runUntilIdle();
         List<WitnessedTransaction> witnessedTransactions = Futures.getUnchecked(witnessedTransactionsFuture);
         assertThat(witnessedTransactions)
-                .containsExactlyElementsOf(IntStream.range(0, DEFAULT_TASK_MULTIPLICITY)
+                .containsExactlyInAnyOrderElementsOf(IntStream.range(0, DEFAULT_TASK_MULTIPLICITY)
                         .filter(index -> !failingTasks.contains(index))
                         .mapToObj(ConcurrentTransactionRunnerTest::createWitnessedTransactionWithStartTimestamp)
                         .collect(Collectors.toList()));u}(jSj  (b1d358eeb4d730c38e271a30bf8342dde1c07049jj  eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javajj  addedjj  Kvjj  K jj  Kvjj  https://github.com/palantir/atlasdb/blob/b0b25b88284141ca3729494caadeaf1033f9cf76/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javajj  https://github.com/palantir/atlasdb/raw/b0b25b88284141ca3729494caadeaf1033f9cf76/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javajj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=b0b25b88284141ca3729494caadeaf1033f9cf76jj  X  @@ -0,0 +1,118 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.concurrent.ScheduledExecutorService;
+import org.junit.Test;
+
+public class DefaultWorkflowTest {
+    private final TransactionStore store = mock(TransactionStore.class);
+
+    private final KeyedTransactionTask transactionTask = mock(KeyedTransactionTask.class);
+
+    private final ScheduledExecutorService scheduler = PTExecutors.newSingleThreadScheduledExecutor();
+
+    @Test
+    public void handlesExceptionsInUnderlyingTasks() {
+        RuntimeException transactionException = new RuntimeException("boo");
+        when(transactionTask.apply(eq(store), anyInt())).thenThrow(transactionException);
+
+        Workflow workflow = DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2));
+        assertThatThrownBy(workflow::run)
+                .hasMessage("Error when running workflow task")
+                .hasCause(transactionException);
+    }
+
+    @Test
+    public void returnsUnderlyingWitnessedTransactions() {
+        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+
+        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight)))
+                .containsExactly(twoToEight);
+        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(readOnlyAtFive)))
+                .containsExactly(readOnlyAtFive);
+    }
+
+    @Test
+    public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
+        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        WitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
+        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
+                .containsExactly(fourToSix, threeToSeven, twoToEight);
+    }
+
+    @Test
+    public void sortsReadOnlyTransactionsByStartTimestamp() {
+        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        WitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
+
+        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(
+                        ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
+                .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
+    }
+
+    @Test
+    public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
+        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        WitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
+
+        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(
+                        twoToEight, readOnlyAtNine, fourToSix, readOnlyAtFive, readOnlyAtThree, readOnlyAtSeven)))
+                .containsExactly(
+                        readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
+    }
+
+    private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
+        return ImmutableWorkflowConfiguration.builder()
+                .iterationCount(iterationCount)
+                .executionExecutor(MoreExecutors.listeningDecorator(scheduler))
+                .build();
+    }
+
+    private static WitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
+        return ImmutableWitnessedTransaction.builder().startTimestamp(start).build();
+    }
+
+    private static WitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
+        return ImmutableWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+}u}(jSj  (c0137d798d6fc7fa58c4619528cebd66af596c67jj  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/HistoryConsumptionRegistrarTest.javajj  removedjj  K jj  K[jj  K[jj  https://github.com/palantir/atlasdb/blob/e1ffe47bb8740d1cb9ec1cbfa108d353ae287181/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FHistoryConsumptionRegistrarTest.javajj  https://github.com/palantir/atlasdb/raw/e1ffe47bb8740d1cb9ec1cbfa108d353ae287181/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FHistoryConsumptionRegistrarTest.javajj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FHistoryConsumptionRegistrarTest.java?ref=e1ffe47bb8740d1cb9ec1cbfa108d353ae287181jj  X{  @@ -1,91 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.workflow;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.never;
-import static org.mockito.Mockito.verify;
-
-import com.google.common.collect.ImmutableList;
-import com.google.common.util.concurrent.Futures;
-import com.google.common.util.concurrent.SettableFuture;
-import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
-import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
-import com.palantir.common.concurrent.PTExecutors;
-import com.palantir.logsafe.exceptions.SafeRuntimeException;
-import java.util.List;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Future;
-import java.util.function.Consumer;
-import org.junit.Test;
-
-@SuppressWarnings("unchecked") // Mocks of known types
-public class HistoryConsumptionRegistrarTest {
-    private final ReadableTransactionStore readableTransactionStore = mock(ReadableTransactionStore.class);
-    private final Consumer<WorkflowHistory> historyConsumerOne = mock(Consumer.class);
-    private final Consumer<WorkflowHistory> historyConsumerTwo = mock(Consumer.class);
-    private final HistoryConsumptionRegistrar registrar = new HistoryConsumptionRegistrar(readableTransactionStore);
-
-    @Test
-    public void passesArgumentsAndStoreToAllConsumers() throws ExecutionException, InterruptedException {
-        SettableFuture<List<WitnessedTransaction>> witnessedTransactionsFuture = SettableFuture.create();
-        ExecutorService separateThreadExecutor = PTExecutors.newSingleThreadExecutor();
-
-        registrar.addConsumer(historyConsumerOne);
-        registrar.addConsumer(historyConsumerTwo);
-        Future<?> blockingTaskFuture =
-                separateThreadExecutor.submit(() -> registrar.runOnConsumersBlocking(witnessedTransactionsFuture));
-
-        assertThat(blockingTaskFuture).isNotDone();
-        verify(historyConsumerOne, never()).accept(any());
-        verify(historyConsumerTwo, never()).accept(any());
-
-        List<WitnessedTransaction> witnessedTransactions = ImmutableList.of(ImmutableWitnessedTransaction.builder()
-                .startTimestamp(5)
-                .commitTimestamp(9)
-                .addActions(WitnessedDeleteTransactionAction.of("foo", ImmutableWorkloadCell.of(1, 2)))
-                .build());
-        WorkflowHistory history = ImmutableWorkflowHistory.builder()
-                .transactionStore(readableTransactionStore)
-                .history(witnessedTransactions)
-                .build();
-        witnessedTransactionsFuture.set(witnessedTransactions);
-        blockingTaskFuture.get();
-
-        verify(historyConsumerOne).accept(history);
-        verify(historyConsumerTwo).accept(history);
-    }
-
-    @Test
-    public void propagatesExceptionsFromTransactionTasks() {
-        RuntimeException taskException = new RuntimeException("boom");
-
-        registrar.addConsumer(historyConsumerOne);
-        registrar.addConsumer(historyConsumerTwo);
-        assertThatThrownBy(() -> registrar.runOnConsumersBlocking(Futures.immediateFailedFuture(taskException)))
-                .isInstanceOf(SafeRuntimeException.class)
-                .hasMessageContaining("Error when running workflow.")
-                .hasCause(taskException);
-    }
-}ueu(b83ae229260e8cdd9f1ebe2929e4ea31bd029362}(sha(b83ae229260e8cdd9f1ebe2929e4ea31bd029362node_idEC_kwDOAjP5fdoAKGI4M2FlMjI5MjYwZThjZGQ5ZjFlYmUyOTI5ZTRlYTMxYmQwMjkzNjIcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-03-28T14:41:47Zu	committer}(jk  
Ahmed Alouanejk  aalouane@palantir.comjk  2023-03-28T14:41:47Zumessagethat it?tree}(jk  (11792cc8db825001cdf16dcc74c5c6176628b43aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/11792cc8db825001cdf16dcc74c5c6176628b43auj$k  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b83ae229260e8cdd9f1ebe2929e4ea31bd029362
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQi/K0ACgkQPlMHVIT1
yhpsaQf8DEp8FyqJ7+cbQ7vwOeGL73zbl4TFfQscUQTJrkfeUK/wqmAU8/gseMAR
m0S+RxN4FeNPRoMDJO+SAMrMQHdZoSnotQs9OMh+Uu9WKLHgvuhLS++MwN+5kC0I
uX3QImOPBmz1PuXrOZnb+jH6pBxa1l3SojSTiOVU4FQ6bO6JvzOjQmYCm1Igzvky
ouMfiGuZz+0mtAcVNSQ4ec31teeL1U4MCMapTPxWlfXnqm4OGpeyJA6BBPkfndOa
logaTMD0WIeX1s3SnPqTwHdDWcHwksb4AmKCT8LV9XXtc2XSd7cHl0ELQRm5DJL8
RVkDpklAG+fqsMnlm3RyGNJHAumxXA==
=bUT3
-----END PGP SIGNATURE-----payloadtree 11792cc8db825001cdf16dcc74c5c6176628b43a
parent f4ba2346a0736e4f029339f4d676ad31d164b2a3
author Ahmed Alouane <aalouane@palantir.com> 1680014507 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1680014507 +0100

that it?
uuj$k  ^https://api.github.com/repos/palantir/atlasdb/commits/b83ae229260e8cdd9f1ebe2929e4ea31bd029362html_urlShttps://github.com/palantir/atlasdb/commit/b83ae229260e8cdd9f1ebe2929e4ea31bd029362comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b83ae229260e8cdd9f1ebe2929e4ea31bd029362/commentsjk  }(loginergo14idJjk  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j$k  #https://api.github.com/users/ergo14j2k  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujk  }(j7k  ergo14j9k  Jjk  MDQ6VXNlcjMwOTAzNzM2j;k  4https://avatars.githubusercontent.com/u/30903736?v=4j=k  h5j$k  #https://api.github.com/users/ergo14j2k  https://github.com/ergo14j@k  -https://api.github.com/users/ergo14/followersjBk  :https://api.github.com/users/ergo14/following{/other_user}jDk  3https://api.github.com/users/ergo14/gists{/gist_id}jFk  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jHk  1https://api.github.com/users/ergo14/subscriptionsjJk  (https://api.github.com/users/ergo14/orgsjLk  )https://api.github.com/users/ergo14/reposjNk  4https://api.github.com/users/ergo14/events{/privacy}jPk  3https://api.github.com/users/ergo14/received_eventsjRk  UserjTk  uparents]}(jk  (f4ba2346a0736e4f029339f4d676ad31d164b2a3j$k  ^https://api.github.com/repos/palantir/atlasdb/commits/f4ba2346a0736e4f029339f4d676ad31d164b2a3j2k  Shttps://github.com/palantir/atlasdb/commit/f4ba2346a0736e4f029339f4d676ad31d164b2a3ua      stats}(totalK%	additionsK	deletionsK	ufiles](}(jk  (54fdc04d81eaac3d33477549a1b2cd7ca1953648filenameNleader-election-impl/src/main/java/com/palantir/paxos/SqlitePaxosStateLog.javastatusmodifiedjnk  Kjok  KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/b83ae229260e8cdd9f1ebe2929e4ea31bd029362/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FSqlitePaxosStateLog.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b83ae229260e8cdd9f1ebe2929e4ea31bd029362/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FSqlitePaxosStateLog.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FSqlitePaxosStateLog.java?ref=b83ae229260e8cdd9f1ebe2929e4ea31bd029362patchXx  @@ -17,8 +17,8 @@
 package com.palantir.paxos;
 
 import com.palantir.common.persist.Persistable;
+import java.util.Optional;
 import java.util.OptionalLong;
-import java.util.Set;
 import java.util.function.Function;
 import javax.sql.DataSource;
 import org.jdbi.v3.core.Jdbi;
@@ -138,7 +138,10 @@ <V extends Persistable & Versionable> boolean[] writeBatchOfRounds(
                 @Bind("useCase") String useCase,
                 @BindPojo("round") Iterable<PaxosRound<V>> rounds);
 
-        @SqlQuery("SELECT DISTINCT(namespace) FROM paxosLog")
-        Set<String> getAllNamespaces();
+        @SqlQuery("SELECT MIN(namespace) FROM paxosLog")
+        Optional<String> getSmallestNamespace();
+
+        @SqlQuery("SELECT MIN(namespace) FROM paxosLog WHERE namespace > :namespace")
+        Optional<String> getNextSmallestNamespace(@Bind("namespace") String namespace);
     }
 }u}(jk  (dea761525d77213942ede0f28a3651838e18a2cdjtk  ctimelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/PersistentNamespaceLoader.javajvk  modifiedjnk  Kjok  K jxk  Kjyk  https://github.com/palantir/atlasdb/blob/b83ae229260e8cdd9f1ebe2929e4ea31bd029362/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FPersistentNamespaceLoader.javaj{k  https://github.com/palantir/atlasdb/raw/b83ae229260e8cdd9f1ebe2929e4ea31bd029362/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FPersistentNamespaceLoader.javaj}k  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FPersistentNamespaceLoader.java?ref=b83ae229260e8cdd9f1ebe2929e4ea31bd029362jk  X  @@ -22,6 +22,7 @@
 public interface PersistentNamespaceLoader {
     /**
      * Gets all namespaces that have been persisted (via the persistence method under question).
+     * No transactionality guarantees are given.
      */
     Set<Client> getAllPersistedNamespaces();
 }u}(jk  (5a9ad6a1581daba7e238f4a193d5071413db7158jtk  _timelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/SqliteNamespaceLoader.javajvk  modifiedjnk  Kjok  Kjxk  Kjyk  https://github.com/palantir/atlasdb/blob/b83ae229260e8cdd9f1ebe2929e4ea31bd029362/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FSqliteNamespaceLoader.javaj{k  https://github.com/palantir/atlasdb/raw/b83ae229260e8cdd9f1ebe2929e4ea31bd029362/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FSqliteNamespaceLoader.javaj}k  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FSqliteNamespaceLoader.java?ref=b83ae229260e8cdd9f1ebe2929e4ea31bd029362jk  X  @@ -18,8 +18,9 @@
 
 import com.palantir.paxos.Client;
 import com.palantir.paxos.SqlitePaxosStateLog;
+import java.util.HashSet;
+import java.util.Optional;
 import java.util.Set;
-import java.util.stream.Collectors;
 import javax.sql.DataSource;
 import org.jdbi.v3.core.Jdbi;
 import org.jdbi.v3.sqlobject.SqlObjectPlugin;
@@ -39,10 +40,24 @@ public static PersistentNamespaceLoader create(DataSource dataSource) {
 
     @Override
     public Set<Client> getAllPersistedNamespaces() {
-        return jdbi
-                .withExtension(SqlitePaxosStateLog.Queries.class, SqlitePaxosStateLog.Queries::getAllNamespaces)
-                .stream()
-                .map(Client::of)
-                .collect(Collectors.toSet());
+        Set<Client> clients = new HashSet<>();
+
+        Optional<String> currentNamespace = getSmallestNamespace();
+        while (currentNamespace.isPresent()) {
+            String namespaceString = currentNamespace.get();
+            clients.add(Client.of(namespaceString));
+            currentNamespace = getNextSmallestNamespace(namespaceString);
+        }
+
+        return clients;
+    }
+
+    private Optional<String> getSmallestNamespace() {
+        return jdbi.withExtension(SqlitePaxosStateLog.Queries.class, SqlitePaxosStateLog.Queries::getSmallestNamespace);
+    }
+
+    private Optional<String> getNextSmallestNamespace(String lastReadNamespace) {
+        return jdbi.withExtension(
+                SqlitePaxosStateLog.Queries.class, dao -> dao.getNextSmallestNamespace(lastReadNamespace));
     }
 }ueu(f61cd54f592c7cc810086c4c7eeea2e3e4c1993a}(sha(f61cd54f592c7cc810086c4c7eeea2e3e4c1993anode_idEC_kwDOAjP5fdoAKGY2MWNkNTRmNTkyYzdjYzgxMDA4NmM0YzdlZWVhMmUzZTRjMTk5M2Ecommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-04-04T02:37:36Zu	committer}(jk  svc-excavator-botjk  svc-excavator-bot@palantir.comjk  2023-04-04T02:37:36Zumessage3Excavator:  Update conjure plugins and dependenciestree}(jk  (e8e3d049ce5bf3a8bb179960750d5e16ac5bd0a1url`https://api.github.com/repos/palantir/atlasdb/git/trees/e8e3d049ce5bf3a8bb179960750d5e16ac5bd0a1ujk  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f61cd54f592c7cc810086c4c7eeea2e3e4c1993a
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQrjXAJEMmvEkpISILgAADaVAEAqcYbMJUbkcN6XQmCLow2S8V4
x1SOfvkwmhFIV/GKimYA/j+MJGntt14hIBicWxigczHPntpN4Sc1ne7u58LR+7iS
=X1ap
-----END PGP SIGNATURE-----
payloadX+  tree e8e3d049ce5bf3a8bb179960750d5e16ac5bd0a1
parent c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1680575856 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1680575856 +0000

Excavator:  Update conjure plugins and dependenciesuujk  ^https://api.github.com/repos/palantir/atlasdb/commits/f61cd54f592c7cc810086c4c7eeea2e3e4c1993ahtml_urlShttps://github.com/palantir/atlasdb/commit/f61cd54f592c7cc810086c4c7eeea2e3e4c1993acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f61cd54f592c7cc810086c4c7eeea2e3e4c1993a/commentsjk  }(loginsvc-excavator-botidJjk  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5jk  .https://api.github.com/users/svc-excavator-botjk  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminujk  }(jk  svc-excavator-botjk  Jjk  MDQ6VXNlcjMzMjY2MzY4jk  4https://avatars.githubusercontent.com/u/33266368?v=4jk  h5jk  .https://api.github.com/users/svc-excavator-botjk  $https://github.com/svc-excavator-botjk  8https://api.github.com/users/svc-excavator-bot/followersjk  Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}jk  >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}jk  Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}jk  <https://api.github.com/users/svc-excavator-bot/subscriptionsjk  3https://api.github.com/users/svc-excavator-bot/orgsjk  4https://api.github.com/users/svc-excavator-bot/reposjk  ?https://api.github.com/users/svc-excavator-bot/events{/privacy}jk  >https://api.github.com/users/svc-excavator-bot/received_eventsjk  Userjk  uparents]}(jk  (c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263jk  ^https://api.github.com/repos/palantir/atlasdb/commits/c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263jk  Shttps://github.com/palantir/atlasdb/commit/c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263uastats}(totalKN	additionsK'	deletionsK'ufiles](}(jk  (aafae0d9201c6117b1bb915691989da694dfdb1ffilename
versions.lockstatusmodifiedjk  K$jk  K$changesKHblob_url_https://github.com/palantir/atlasdb/blob/f61cd54f592c7cc810086c4c7eeea2e3e4c1993a/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/f61cd54f592c7cc810086c4c7eeea2e3e4c1993a/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=f61cd54f592c7cc810086c4c7eeea2e3e4c1993apatchXA)  @@ -10,22 +10,22 @@ com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
 com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c38132bb)
 com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bbb5dd72)
-com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 03bafb2e)
-com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e133df00)
-com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7e1c9da4)
+com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 06bad036)
+com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e233e000)
+com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7f1c9ea4)
 com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2 (4 constraints: 2244332b)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 333f21b0)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6b30665e)
-com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 312bccaf)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6b30665e)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 343f76b0)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6c30915e)
+com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 322bf7af)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6c30915e)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 40197abb)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 41197bbb)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.2 (2 constraints: 251d9309)
-com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9a1c98a6)
+com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9b1c99a6)
 com.fasterxml.jackson.module:jackson-module-blackbird:2.14.2 (1 constraints: b40e625e)
 com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.2 (2 constraints: db2e8469)
 com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 24cec010)
+com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 2dce2620)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -45,7 +45,7 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (23 constraints: a3788bf6)
+com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f2947442)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
@@ -67,28 +67,28 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:6.77.0 (5 constraints: ad546073)
-com.palantir.conjure.java:conjure-undertow-annotations:6.77.0 (1 constraints: 4605743b)
-com.palantir.conjure.java:conjure-undertow-lib:6.77.0 (2 constraints: 8d1cfdb0)
+com.palantir.conjure.java:conjure-lib:7.5.0 (5 constraints: cd530c72)
+com.palantir.conjure.java:conjure-undertow-annotations:7.5.0 (1 constraints: 0e051d36)
+com.palantir.conjure.java:conjure-undertow-lib:7.5.0 (2 constraints: 1d1c4081)
 com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 3d696e70)
 com.palantir.conjure.java.api:service-config:2.34.0 (5 constraints: 724d79ca)
 com.palantir.conjure.java.api:ssl-config:2.34.0 (3 constraints: e22a0da5)
-com.palantir.conjure.java.runtime:client-config:7.40.0 (6 constraints: a46bdb28)
-com.palantir.conjure.java.runtime:conjure-java-annotations:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.40.0 (2 constraints: c521007b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.40.0 (6 constraints: 306e1085)
-com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.40.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.40.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:keystores:7.40.0 (3 constraints: 162a3e5f)
-com.palantir.conjure.java.runtime:refresh-utils:7.40.0 (2 constraints: 051e6045)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.77.0 (2 constraints: 7f29c101)
-com.palantir.dialogue:dialogue-blocking-channels:3.77.0 (2 constraints: e12335b4)
-com.palantir.dialogue:dialogue-clients:3.77.0 (1 constraints: 4305623b)
-com.palantir.dialogue:dialogue-core:3.77.0 (3 constraints: 833de5e1)
-com.palantir.dialogue:dialogue-futures:3.77.0 (3 constraints: da3348c0)
-com.palantir.dialogue:dialogue-serde:3.77.0 (3 constraints: c12e6ba4)
-com.palantir.dialogue:dialogue-target:3.77.0 (7 constraints: 9e760764)
+com.palantir.conjure.java.runtime:client-config:7.45.0 (6 constraints: bd6b2133)
+com.palantir.conjure.java.runtime:conjure-java-annotations:7.45.0 (1 constraints: c6188d9e)
+com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.45.0 (2 constraints: ca210f7b)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.45.0 (6 constraints: 3f6ee88e)
+com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.45.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.45.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.45.0 (1 constraints: c6188d9e)
+com.palantir.conjure.java.runtime:keystores:7.45.0 (3 constraints: 202a4c60)
+com.palantir.conjure.java.runtime:refresh-utils:7.45.0 (2 constraints: 0a1e6f45)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.78.0 (2 constraints: 83295d02)
+com.palantir.dialogue:dialogue-blocking-channels:3.78.0 (2 constraints: e32369b4)
+com.palantir.dialogue:dialogue-clients:3.78.0 (1 constraints: 4405653b)
+com.palantir.dialogue:dialogue-core:3.78.0 (3 constraints: 883d62e3)
+com.palantir.dialogue:dialogue-futures:3.78.0 (3 constraints: dd33dac0)
+com.palantir.dialogue:dialogue-serde:3.78.0 (3 constraints: c62e7fa5)
+com.palantir.dialogue:dialogue-target:3.78.0 (7 constraints: a7763c6a)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -98,7 +98,7 @@ com.palantir.goethe:goethe:0.9.0 (1 constraints: 0b050636)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
 com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
-com.palantir.safe-logging:logger:3.2.0 (23 constraints: 4e88492a)
+com.palantir.safe-logging:logger:3.2.0 (24 constraints: 98a4d6fa)
 com.palantir.safe-logging:logger-slf4j:3.2.0 (1 constraints: 000e5942)
 com.palantir.safe-logging:logger-spi:3.2.0 (2 constraints: 0f1e997a)
 com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: f7178aeb)
@@ -108,14 +108,14 @@ com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
 com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 485c7290)
 com.palantir.tracing:tracing:6.17.0 (8 constraints: f97d045e)
 com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 1745b4f5)
-com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 441994bb)
+com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 46199abb)
 com.palantir.tritium:tritium-api:0.64.0 (6 constraints: 5052c7ce)
 com.palantir.tritium:tritium-caffeine:0.64.0 (1 constraints: 3c05433b)
 com.palantir.tritium:tritium-core:0.64.0 (5 constraints: 5d43281d)
 com.palantir.tritium:tritium-lib:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f16b49d8)
+com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f96b65dd)
 com.palantir.tritium:tritium-proxy:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-registry:0.64.0 (12 constraints: f6d27f35)
+com.palantir.tritium:tritium-registry:0.64.0 (13 constraints: 88ef0d92)
 com.palantir.tritium:tritium-slf4j:0.64.0 (2 constraints: bd138370)
 com.palantir.tritium:tritium-time:0.64.0 (1 constraints: 820e8359)
 com.palantir.tritium:tritium-tracing:0.64.0 (1 constraints: 820e8359)
@@ -186,7 +186,7 @@ io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf
 io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
-io.undertow:undertow-core:2.2.22.Final (2 constraints: 341d4606)
+io.undertow:undertow-core:2.2.24.Final (2 constraints: 301d2b06)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
@@ -195,7 +195,7 @@ jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 26793e31)
 jakarta.inject:jakarta.inject-api:1.0.5 (13 constraints: decbc9f9)
 jakarta.servlet:jakarta.servlet-api:4.0.4 (10 constraints: 7b9def70)
 jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
-jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (18 constraints: 5a38d98d)
+jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (17 constraints: 6f283f6d)
 jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.5 (6 constraints: 845987f4)u}(jk  (81ee8caf770475f35e8671f9c9529a480b3bb3f5jk  versions.propsjk  modifiedjk  Kjk  Kjk  Kj l  `https://github.com/palantir/atlasdb/blob/f61cd54f592c7cc810086c4c7eeea2e3e4c1993a/versions.propsjl  _https://github.com/palantir/atlasdb/raw/f61cd54f592c7cc810086c4c7eeea2e3e4c1993a/versions.propsjl  rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=f61cd54f592c7cc810086c4c7eeea2e3e4c1993ajl  X  @@ -25,9 +25,9 @@ com.palantir.common:streams = 2.1.0
 com.palantir.config.crypto:* = 5.1.0
 com.palantir.conjure.java.api:* = 2.29.0
 com.palantir.conjure.java.runtime:* = 7.39.0
-com.palantir.conjure.java:* = 6.77.0
-com.palantir.conjure:conjure = 4.35.0
-com.palantir.dialogue:* = 3.77.0
+com.palantir.conjure.java:* = 7.5.0
+com.palantir.conjure:conjure = 4.36.0
+com.palantir.dialogue:* = 3.78.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
 com.palantir.goethe:* = 0.9.0ueu(45b74da0decdebdd8612eb6fb4a4117041cbe46a}(sha(45b74da0decdebdd8612eb6fb4a4117041cbe46anode_idEC_kwDOAjP5fdoAKDQ1Yjc0ZGEwZGVjZGViZGQ4NjEyZWI2ZmI0YTQxMTcwNDFjYmU0NmEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-02-27T13:12:49Zu	committer}(jl  
Sam Kramerjl  skramer@palantir.comjl  2023-02-27T13:12:49Zumessage)use @Safe instead of @CompileTimeConstanttree}(jl  (d7e6d280c316e00790d86810e4235c95849ff30burl`https://api.github.com/repos/palantir/atlasdb/git/trees/d7e6d280c316e00790d86810e4235c95849ff30buj*l  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/45b74da0decdebdd8612eb6fb4a4117041cbe46a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmP8rFEACgkQmPPOpKR4
XS0xgwgAictEzDqK2aJXFq5jJKQKhw6r7UdB7DwOgV8cUHEpwhsKDyNAEs/INeXU
aXY2GKq8c/gvfgMGB18s4AsGlWU8/TZxT2vDXn97lJLjuDNhjbsC0FVz/qLxMkg0
0epf6HF0DIU8RDVInzUgP29fFZqufUVTy0MltpFUjSNG8EbV787NZ5YyBP4oTBAF
BHIwvLY+l4j01mU0hsVmLOi5GFhMKOQUDXv//26daGL90SNQ/8zCYDE6Jjn8SAAI
tHujmVCjYimEvv5NM8sTQEptH95PfsLdBwVK6l6RLMQ0pMopGCYPK/gfusWjcWy8
yUS5u2YNdVMExZH7Rf0RVhbe7LVIxw==
=RKlk
-----END PGP SIGNATURE-----payloadX   tree d7e6d280c316e00790d86810e4235c95849ff30b
parent 00b74facedb23468f14b7cc419950a174c9bfc01
author Sam Kramer <skramer@palantir.com> 1677503569 +0000
committer Sam Kramer <skramer@palantir.com> 1677503569 +0000

use @Safe instead of @CompileTimeConstant
uuj*l  ^https://api.github.com/repos/palantir/atlasdb/commits/45b74da0decdebdd8612eb6fb4a4117041cbe46ahtml_urlShttps://github.com/palantir/atlasdb/commit/45b74da0decdebdd8612eb6fb4a4117041cbe46acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/45b74da0decdebdd8612eb6fb4a4117041cbe46a/commentsjl  }(login
Sam-KrameridJ^2_ jl  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j*l  'https://api.github.com/users/Sam-Kramerj8l  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj l  }(j=l  
Sam-Kramerj?l  J^2_ jl  MDQ6VXNlcjYyMzg4MTQ=jAl  3https://avatars.githubusercontent.com/u/6238814?v=4jCl  h5j*l  'https://api.github.com/users/Sam-Kramerj8l  https://github.com/Sam-KramerjFl  1https://api.github.com/users/Sam-Kramer/followersjHl  >https://api.github.com/users/Sam-Kramer/following{/other_user}jJl  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jLl  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jNl  5https://api.github.com/users/Sam-Kramer/subscriptionsjPl  ,https://api.github.com/users/Sam-Kramer/orgsjRl  -https://api.github.com/users/Sam-Kramer/reposjTl  8https://api.github.com/users/Sam-Kramer/events{/privacy}jVl  7https://api.github.com/users/Sam-Kramer/received_eventsjXl  UserjZl  uparents]}(jl  (00b74facedb23468f14b7cc419950a174c9bfc01j*l  ^https://api.github.com/repos/palantir/atlasdb/commits/00b74facedb23468f14b7cc419950a174c9bfc01j8l  Shttps://github.com/palantir/atlasdb/commit/00b74facedb23468f14b7cc419950a174c9bfc01uastats}(totalK	additionsK	deletionsKufiles]}(jl  (324cb2dc0c8a5785bf8cd628811647f21fe1215dfilenameQatlasdb-commons/src/main/java/com/palantir/exception/NotInitializedException.javastatusmodifiedjtl  Kjul  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/45b74da0decdebdd8612eb6fb4a4117041cbe46a/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/45b74da0decdebdd8612eb6fb4a4117041cbe46a/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.java?ref=45b74da0decdebdd8612eb6fb4a4117041cbe46apatchX  @@ -15,12 +15,12 @@
  */
 package com.palantir.exception;
 
-import com.google.errorprone.annotations.CompileTimeConstant;
 import com.palantir.common.exception.AtlasDbDependencyException;
 import com.palantir.logsafe.Arg;
 import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.SafeLoggable;
+
 import java.util.List;
 
 public class NotInitializedException extends AtlasDbDependencyException implements SafeLoggable {
@@ -33,12 +33,12 @@ public class NotInitializedException extends AtlasDbDependencyException implemen
                     + " expected that initialization of some object types do take some time.";
     private final String objectNotInitialized;
 
-    public NotInitializedException(@CompileTimeConstant String objectNotInitialized) {
+    public NotInitializedException(@Safe String objectNotInitialized) {
         super(EXCEPTION_MESSAGE);
         this.objectNotInitialized = objectNotInitialized;
     }
 
-    public NotInitializedException(@CompileTimeConstant String objectNotInitialized, Throwable throwable) {
+    public NotInitializedException(@Safe String objectNotInitialized, Throwable throwable) {
         super(EXCEPTION_MESSAGE, throwable);
         this.objectNotInitialized = objectNotInitialized;
     }uau(10d53a8ce97d28994616633b78f5cbe960060cac}(sha(10d53a8ce97d28994616633b78f5cbe960060cacnode_idEC_kwDOAjP5fdoAKDEwZDUzYThjZTk3ZDI4OTk0NjE2NjMzYjc4ZjVjYmU5NjAwNjBjYWMcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-08-14T13:57:43Zu	committer}(jl  
svc-changelogjl  svc-changelog@palantir.comjl  2023-08-14T13:57:43ZumessageAdd generated changelog entriestree}(jl  (2349cf3ed732c4dc522087c7d71ed913bd344777url`https://api.github.com/repos/palantir/atlasdb/git/trees/2349cf3ed732c4dc522087c7d71ed913bd344777ujl  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/10d53a8ce97d28994616633b78f5cbe960060cac
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmTaMtcJEHYaJX37fAFQAAC6XgEA22kvUhGuffjAI1r664YPeNxp
o8bp69HxuIs3uJTFbtABALrteWYwvJ7ZxgaXV2Dv6yPrKP8g66rearOOkbf81PFz
=Ocw6
-----END PGP SIGNATURE-----payloadX  tree 2349cf3ed732c4dc522087c7d71ed913bd344777
parent 6c65d6c4335ed78aa03305404c9421d74e2931c4
author svc-changelog <svc-changelog@palantir.com> 1692021463 +0000
committer svc-changelog <svc-changelog@palantir.com> 1692021463 +0000

Add generated changelog entriesuujl  ^https://api.github.com/repos/palantir/atlasdb/commits/10d53a8ce97d28994616633b78f5cbe960060cachtml_urlShttps://github.com/palantir/atlasdb/commit/10d53a8ce97d28994616633b78f5cbe960060caccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/10d53a8ce97d28994616633b78f5cbe960060cac/commentsjl  }(login
svc-changelogidJ#jl  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jl  *https://api.github.com/users/svc-changelogjl   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujl  }(jl  
svc-changelogjl  J#jl  MDQ6VXNlcjg0MDc3NjAzjl  4https://avatars.githubusercontent.com/u/84077603?v=4jl  h5jl  *https://api.github.com/users/svc-changelogjl   https://github.com/svc-changelogjl  4https://api.github.com/users/svc-changelog/followersjl  Ahttps://api.github.com/users/svc-changelog/following{/other_user}jl  :https://api.github.com/users/svc-changelog/gists{/gist_id}jl  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jl  8https://api.github.com/users/svc-changelog/subscriptionsjl  /https://api.github.com/users/svc-changelog/orgsjl  0https://api.github.com/users/svc-changelog/reposjl  ;https://api.github.com/users/svc-changelog/events{/privacy}jl  :https://api.github.com/users/svc-changelog/received_eventsjl  Userjl  uparents]}(jl  (6c65d6c4335ed78aa03305404c9421d74e2931c4jl  ^https://api.github.com/repos/palantir/atlasdb/commits/6c65d6c4335ed78aa03305404c9421d74e2931c4jl  Shttps://github.com/palantir/atlasdb/commit/6c65d6c4335ed78aa03305404c9421d74e2931c4uastats}(totalK	additionsK	deletionsK ufiles]}(jl  (bab8c102a32d01255fec953a96fe6a4437d14328filename$changelog/@unreleased/pr-6707.v2.ymlstatusaddedjl  Kjl  K changesKblob_url|https://github.com/palantir/atlasdb/blob/10d53a8ce97d28994616633b78f5cbe960060cac/changelog%2F%40unreleased%2Fpr-6707.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/10d53a8ce97d28994616633b78f5cbe960060cac/changelog%2F%40unreleased%2Fpr-6707.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6707.v2.yml?ref=10d53a8ce97d28994616633b78f5cbe960060cacpatch@@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: Reverts fix for paxos contending with itself.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6707uau(dba07cd0b2c5404dd38cff0050382795d5d5fe19}(sha(dba07cd0b2c5404dd38cff0050382795d5d5fe19node_idEC_kwDOAjP5fdoAKGRiYTA3Y2QwYjJjNTQwNGRkMzhjZmYwMDUwMzgyNzk1ZDVkNWZlMTkcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-27T18:59:35Zu	committer}(jm  Jeremy Kongj
m  jkong@palantir.comjm  2023-02-27T18:59:35Zumessage	orelsegettree}(j m  (a10251c824a10643ef6d720711e4479b52ea0896url`https://api.github.com/repos/palantir/atlasdb/git/trees/a10251c824a10643ef6d720711e4479b52ea0896ujm  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/dba07cd0b2c5404dd38cff0050382795d5d5fe19
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmP8/ZcACgkQTLdFKain
zjzq0gf+OrqHTxvoPe6SjnQwA+hGugA745ByItLX3QKwytedJX5CWR33j5zTVyC8
Qfr0fbnBlFp69x6WcrhiAQqe4UbIqxUnyqc/MQb5M9drDUpVjGR8LfndZSeos0Y4
14d+OYEjOXAPHDq5mGEfpTxn4+ykoNdj8tu5bCSaVhBGW32K5FxjRG++wtZojb4J
SuSvkRilVTYKqRM3zDia23b4Msj0C5NzdTky4CAFoaB8TCqlPghb5T0/1XcOfRhN
O+byspFBq9ghvXUFAzsxEwQbAB+a6TZp8BvepktN1LUw8r7CD0x6rzdPhxcuFcuM
RCEXd2zrAyU7/YxaFk03i3nf8g7V6w==
=PWrT
-----END PGP SIGNATURE-----payloadtree a10251c824a10643ef6d720711e4479b52ea0896
parent 84f6111b8bb65226027d3e147bda70c1c0128650
author Jeremy Kong <jkong@palantir.com> 1677524375 +0000
committer Jeremy Kong <jkong@palantir.com> 1677524375 +0000

orelseget
uujm  ^https://api.github.com/repos/palantir/atlasdb/commits/dba07cd0b2c5404dd38cff0050382795d5d5fe19html_urlShttps://github.com/palantir/atlasdb/commit/dba07cd0b2c5404dd38cff0050382795d5d5fe19comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/dba07cd0b2c5404dd38cff0050382795d5d5fe19/commentsjm  }(login
jeremyk-91idJZ jm  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jm  'https://api.github.com/users/jeremyk-91j&m  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujm  }(j+m  
jeremyk-91j-m  JZ jm  MDQ6VXNlcjU5NTU1MTA=j/m  3https://avatars.githubusercontent.com/u/5955510?v=4j1m  h5jm  'https://api.github.com/users/jeremyk-91j&m  https://github.com/jeremyk-91j4m  1https://api.github.com/users/jeremyk-91/followersj6m  >https://api.github.com/users/jeremyk-91/following{/other_user}j8m  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j:m  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j<m  5https://api.github.com/users/jeremyk-91/subscriptionsj>m  ,https://api.github.com/users/jeremyk-91/orgsj@m  -https://api.github.com/users/jeremyk-91/reposjBm  8https://api.github.com/users/jeremyk-91/events{/privacy}jDm  7https://api.github.com/users/jeremyk-91/received_eventsjFm  UserjHm  uparents]}(j m  (84f6111b8bb65226027d3e147bda70c1c0128650jm  ^https://api.github.com/repos/palantir/atlasdb/commits/84f6111b8bb65226027d3e147bda70c1c0128650j&m  Shttps://github.com/palantir/atlasdb/commit/84f6111b8bb65226027d3e147bda70c1c0128650uastats}(totalK	additionsK	deletionsKufiles]}(j m  (66ec2c1b9a5bc5b64bf7d82f62f0c606e28450f2filenameaatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javastatusmodifiedjbm  Kjcm  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/dba07cd0b2c5404dd38cff0050382795d5d5fe19/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaraw_urlhttps://github.com/palantir/atlasdb/raw/dba07cd0b2c5404dd38cff0050382795d5d5fe19/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=dba07cd0b2c5404dd38cff0050382795d5d5fe19patchX  @@ -83,6 +83,6 @@ static List<WitnessedTransaction> sortByEffectiveTimestamp(List<WitnessedTransac
     }
 
     private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
-        return witnessedTransaction.commitTimestamp().orElse(witnessedTransaction.startTimestamp());
+        return witnessedTransaction.commitTimestamp().orElseGet(witnessedTransaction::startTimestamp);
     }
 }uau(89cb06619d2a2523c2462eeb5cfb42f0eb477f34}(sha(89cb06619d2a2523c2462eeb5cfb42f0eb477f34node_idEC_kwDOAjP5fdoAKDg5Y2IwNjYxOWQyYTI1MjNjMjQ2MmVlYjVjZmI0MmYwZWI0NzdmMzQcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-25T13:23:14Zu	committer}(jm  Lucas Meirelesjm  meireles31@msn.comjm  2023-07-25T13:23:14Zumessageupdate expected exception classtree}(jwm  (b82d3ffc6f6342ed2db981b666688c5dd10eadf2url`https://api.github.com/repos/palantir/atlasdb/git/trees/b82d3ffc6f6342ed2db981b666688c5dd10eadf2ujm  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/89cb06619d2a2523c2462eeb5cfb42f0eb477f34
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS/zMIACgkQJd22kJ7J
GizDqQf9E1T084C5IaNT4RHqs6vfAvfkhUQgxQRlEG7iQfzHNIxfEYtIT/vRn7SQ
ef9cKSWHPHuzILtFKOaDI+OfgkSEwE/R5hyEy3BxXV+1eNRKwgQ1+AHBv6YxzbG0
h0UB2isOk7mzsgdKC0Cve2em33UAaeDHLgT/ITY4S5PbYeQF4HnjNw7dpGQ1OTQv
2xN+2XMiInv4MYBWvcuhqby70ijO5Uy3E2D36n3YBKPyTP5sLFIhpntkJoKiXk6N
MUY5JLqnn+rkkRC+93ct9W+TboF7M7vc1uqSIoYbzU9p2A5QflQipQxR6qAbIHlb
5m59yOiK0Uz8+gtd9FwDxZcGpShLew==
=yYA0
-----END PGP SIGNATURE-----payloadtree b82d3ffc6f6342ed2db981b666688c5dd10eadf2
parent f48fd14b39f734c8018bf31503926cc5d051d1fc
author Lucas Meireles <meireles31@msn.com> 1690291394 +0100
committer Lucas Meireles <meireles31@msn.com> 1690291394 +0100

update expected exception class
uujm  ^https://api.github.com/repos/palantir/atlasdb/commits/89cb06619d2a2523c2462eeb5cfb42f0eb477f34html_urlShttps://github.com/palantir/atlasdb/commit/89cb06619d2a2523c2462eeb5cfb42f0eb477f34comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/89cb06619d2a2523c2462eeb5cfb42f0eb477f34/commentsj}m  }(loginLucasIMEidJg jym  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jm  %https://api.github.com/users/LucasIMEjm  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujm  }(jm  LucasIMEjm  Jg jym  MDQ6VXNlcjY3ODczMTE=jm  3https://avatars.githubusercontent.com/u/6787311?v=4jm  h5jm  %https://api.github.com/users/LucasIMEjm  https://github.com/LucasIMEjm  /https://api.github.com/users/LucasIME/followersjm  <https://api.github.com/users/LucasIME/following{/other_user}jm  5https://api.github.com/users/LucasIME/gists{/gist_id}jm  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jm  3https://api.github.com/users/LucasIME/subscriptionsjm  *https://api.github.com/users/LucasIME/orgsjm  +https://api.github.com/users/LucasIME/reposjm  6https://api.github.com/users/LucasIME/events{/privacy}jm  5https://api.github.com/users/LucasIME/received_eventsjm  Userjm  uparents]}(jwm  (f48fd14b39f734c8018bf31503926cc5d051d1fcjm  ^https://api.github.com/repos/palantir/atlasdb/commits/f48fd14b39f734c8018bf31503926cc5d051d1fcjm  Shttps://github.com/palantir/atlasdb/commit/f48fd14b39f734c8018bf31503926cc5d051d1fcuastats}(totalK	additionsK	deletionsKufiles]}(jwm  (52b1429bc219c17159425f89334cb4cfb118aee8filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedjm  Kjm  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/89cb06619d2a2523c2462eeb5cfb42f0eb477f34/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/89cb06619d2a2523c2462eeb5cfb42f0eb477f34/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=89cb06619d2a2523c2462eeb5cfb42f0eb477f34patchX  @@ -104,6 +104,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.impl.expectations.ExpectedCellsContainingValueValidator.MoreCellsPresentThanExpectedException;
 import com.palantir.atlasdb.transaction.impl.metrics.DefaultMetricsFilterEvaluationContext;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.ToplistDeltaFilteringTableLevelMetricsController;
@@ -1699,7 +1700,7 @@ public void throwsIfReadingMoreThanExpectedNumberOfValues() {
 
         assertThatThrownBy(() -> transaction.getWithExpectedNumberOfCells(
                         TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 1))
-                .isInstanceOf(SafeIllegalStateException.class)
+                .isInstanceOf(MoreCellsPresentThanExpectedException.class)
                 .hasMessageContaining("KeyValueService returned more results than Get expected");
 
         verify(spiedTimeLockService, never()).refreshLockLeases(any());uau(51fb6b826446ff4f1a2776fae823df611f407fce}(sha(51fb6b826446ff4f1a2776fae823df611f407fcenode_idEC_kwDOAjP5fdoAKDUxZmI2YjgyNjQ0NmZmNGYxYTI3NzZmYWU4MjNkZjYxMWY0MDdmY2Ucommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-11T07:43:56Zu	committer}(jm  Jeremy Kongjm  jkong@palantir.comjm  2023-04-11T07:43:56Zumessage
checkpointtree}(jm  (74c6a1b7a4de8d795d9e84f0171703174d6f9065url`https://api.github.com/repos/palantir/atlasdb/git/trees/74c6a1b7a4de8d795d9e84f0171703174d6f9065ujn  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/51fb6b826446ff4f1a2776fae823df611f407fce
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ1D7wACgkQTLdFKain
zjzcIwf/dm7FWcg602V4JXXD1rA2C6C1CfEfW6Een47eUiMuLnWCPMvyuPvfGsgB
kmKpVOAxvSwwwcAGu9KGQ0eZRoOWjh32JSG84SwYWnuXhX+ohC3r3SorKPJT/Fdw
jkB51KWituEJN3/iDfrQRCIXqX5psXMmW31zTlYdiq8J0hbbp9cpK+RtEkI8GEFG
PK7MgcBnVazYjD0BYeyhIevMGM+7LAEzEqlGuBarfypxoJiPMu0Y1gn7bygQayEM
KTFP1FxmxBPb7wtSjMROFVin3LpTLI5/4EvgvA+t2AKpl1FOekaYgRGbNK/AXygE
Hf3r69Sxltfh368PTCsR61zYBjy5lA==
=ZuDq
-----END PGP SIGNATURE-----payloadtree 74c6a1b7a4de8d795d9e84f0171703174d6f9065
parent 99b87f5e8db8523d1358bf2d1d21a1a1604fb292
author Jeremy Kong <jkong@palantir.com> 1681199036 +0800
committer Jeremy Kong <jkong@palantir.com> 1681199036 +0800

checkpoint
uujn  ^https://api.github.com/repos/palantir/atlasdb/commits/51fb6b826446ff4f1a2776fae823df611f407fcehtml_urlShttps://github.com/palantir/atlasdb/commit/51fb6b826446ff4f1a2776fae823df611f407fcecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/51fb6b826446ff4f1a2776fae823df611f407fce/commentsjm  }(login
jeremyk-91idJZ jm  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jn  'https://api.github.com/users/jeremyk-91jn  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujm  }(jn  
jeremyk-91jn  JZ jm  MDQ6VXNlcjU5NTU1MTA=jn  3https://avatars.githubusercontent.com/u/5955510?v=4jn  h5jn  'https://api.github.com/users/jeremyk-91jn  https://github.com/jeremyk-91j"n  1https://api.github.com/users/jeremyk-91/followersj$n  >https://api.github.com/users/jeremyk-91/following{/other_user}j&n  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j(n  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j*n  5https://api.github.com/users/jeremyk-91/subscriptionsj,n  ,https://api.github.com/users/jeremyk-91/orgsj.n  -https://api.github.com/users/jeremyk-91/reposj0n  8https://api.github.com/users/jeremyk-91/events{/privacy}j2n  7https://api.github.com/users/jeremyk-91/received_eventsj4n  Userj6n  uparents]}(jm  (99b87f5e8db8523d1358bf2d1d21a1a1604fb292jn  ^https://api.github.com/repos/palantir/atlasdb/commits/99b87f5e8db8523d1358bf2d1d21a1a1604fb292jn  Shttps://github.com/palantir/atlasdb/commit/99b87f5e8db8523d1358bf2d1d21a1a1604fb292uastats}(totalK	additionsK	deletionsKufiles](}(jm  (b73b49ec39f7779b8ebb749546d7e0c22fa38b58filenameKtimelock-agent/src/main/java/com/palantir/timelock/paxos/TimeLockAgent.javastatusmodifiedjPn  KjQn  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/51fb6b826446ff4f1a2776fae823df611f407fce/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javaraw_urlhttps://github.com/palantir/atlasdb/raw/51fb6b826446ff4f1a2776fae823df611f407fce/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.java?ref=51fb6b826446ff4f1a2776fae823df611f407fcepatchX  @@ -337,6 +337,8 @@ private void createAndRegisterResources() {
         Function<String, AsyncTimelockService> asyncTimelockServiceGetter =
                 namespace -> namespaces.get(namespace).getTimelockService();
 
+        LegacyAggregatedTimelockResource aggregatedTimelockResource = new LegacyAggregatedTimelockResource(namespaces);
+
         if (undertowRegistrar.isPresent()) {
             Consumer<UndertowService> presentUndertowRegistrar = undertowRegistrar.get();
             registerCorruptionHandlerWrappedService(
@@ -353,23 +355,19 @@ private void createAndRegisterResources() {
             registerCorruptionHandlerWrappedService(
                     presentUndertowRegistrar,
                     MultiClientConjureTimelockResource.undertow(redirectRetryTargeter, asyncTimelockServiceGetter));
-
-            LegacyAggregatedTimelockResource aggregatedTimelockResource =
-                    LegacyAggregatedTimelockResource.create(namespaces);
             registerCorruptionHandlerWrappedService(
                     presentUndertowRegistrar,
                     new TimelockUndertowExceptionWrapper(
                             LegacyAggregatedTimelockResourceEndpoints.of(aggregatedTimelockResource),
                             redirectRetryTargeter));
         } else {
-            registrar.accept(LegacyAggregatedTimelockResource.create(namespaces));
-
             registrar.accept(ConjureTimelockResource.jersey(redirectRetryTargeter, asyncTimelockServiceGetter));
             registrar.accept(ConjureLockWatchingResource.jersey(redirectRetryTargeter, asyncTimelockServiceGetter));
             registrar.accept(ConjureLockV1Resource.jersey(redirectRetryTargeter, lockServiceGetter));
             registrar.accept(TimeLockPaxosHistoryProviderResource.jersey(corruptionComponents.localHistoryLoader()));
             registrar.accept(
                     MultiClientConjureTimelockResource.jersey(redirectRetryTargeter, asyncTimelockServiceGetter));
+            registrar.accept(aggregatedTimelockResource);
         }
     }
 u}(jm  (9b2461774c2e81eea95d989611bec822a2e073e9jVn  _timelock-impl/src/main/java/com/palantir/atlasdb/timelock/LegacyAggregatedTimelockResource.javajXn  modifiedjPn  KjQn  KjZn  Kj[n  https://github.com/palantir/atlasdb/blob/51fb6b826446ff4f1a2776fae823df611f407fce/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAggregatedTimelockResource.javaj]n  https://github.com/palantir/atlasdb/raw/51fb6b826446ff4f1a2776fae823df611f407fce/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAggregatedTimelockResource.javaj_n  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAggregatedTimelockResource.java?ref=51fb6b826446ff4f1a2776fae823df611f407fcejan  X  @@ -36,6 +36,7 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.LockState;
 import com.palantir.lock.SimpleHeldLocksToken;
+import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.Safe;
 import com.palantir.timestamp.TimestampRange;
 import io.undertow.server.HttpServerExchange;
@@ -73,15 +74,10 @@ public final class LegacyAggregatedTimelockResource {
 
     private final TimelockNamespaces namespaces;
 
-    // why did we go for a static factory again?
-    private LegacyAggregatedTimelockResource(TimelockNamespaces namespaces) {
+    public LegacyAggregatedTimelockResource(TimelockNamespaces namespaces) {
         this.namespaces = namespaces;
     }
 
-    public static LegacyAggregatedTimelockResource create(TimelockNamespaces namespaces) {
-        return new LegacyAggregatedTimelockResource(namespaces);
-    }
-
     // Legacy timestamp
     @POST // This has to be POST because we can't allow caching.
     @Path("/timestamp/fresh-timestamp")ueu(3c0dd9a09ebb8f00d7a353e0d515f7c5156472d3}(sha(3c0dd9a09ebb8f00d7a353e0d515f7c5156472d3node_idEC_kwDOAjP5fdoAKDNjMGRkOWEwOWViYjhmMDBkN2EzNTNlMGQ1MTVmN2M1MTU2NDcyZDMcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-04-06T11:02:32Zu	committer}(jun  svc-autoreleasejwn  -pd-foundry-infrastructure-notify@palantir.comjyn  2023-04-06T11:02:32ZumessageAutorelease 0.756.1

[skip ci]tree}(jmn  (c2cc2b2bae3a9b58a06cb33c9d8f2ee8dce4d1b6url`https://api.github.com/repos/palantir/atlasdb/git/trees/c2cc2b2bae3a9b58a06cb33c9d8f2ee8dce4d1b6ujn  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3c0dd9a09ebb8f00d7a353e0d515f7c5156472d3
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQups0ACgkQhbrR8ip7mDDl2wEAj57gGUezD7pnEnCDbszWxWUE
z41MfPXSlhqPR4ybow8A/0JagcESdxrhOYtBtUJ0SAAtf3Ro0NFYvqfiM1Ui0ZYb
=1DOK
-----END PGP SIGNATURE-----
payloadX$  tree c2cc2b2bae3a9b58a06cb33c9d8f2ee8dce4d1b6
parent 97c6673b2b148eaa17833b669f8853854e35a0aa
author aalouane <30903736+ergo14@users.noreply.github.com> 1680778952 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1680778952 +0000

Autorelease 0.756.1

[skip ci]uujn  ^https://api.github.com/repos/palantir/atlasdb/commits/3c0dd9a09ebb8f00d7a353e0d515f7c5156472d3html_urlShttps://github.com/palantir/atlasdb/commit/3c0dd9a09ebb8f00d7a353e0d515f7c5156472d3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3c0dd9a09ebb8f00d7a353e0d515f7c5156472d3/commentsjsn  }(loginergo14idJjon  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jn  #https://api.github.com/users/ergo14jn  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj{n  }(jn  svc-autoreleasejn  J(jon  MDQ6VXNlcjUxNzE4MzQ2jn  4https://avatars.githubusercontent.com/u/51718346?v=4jn  h5jn  ,https://api.github.com/users/svc-autoreleasejn  "https://github.com/svc-autoreleasejn  6https://api.github.com/users/svc-autorelease/followersjn  Chttps://api.github.com/users/svc-autorelease/following{/other_user}jn  <https://api.github.com/users/svc-autorelease/gists{/gist_id}jn  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jn  :https://api.github.com/users/svc-autorelease/subscriptionsjn  1https://api.github.com/users/svc-autorelease/orgsjn  2https://api.github.com/users/svc-autorelease/reposjn  =https://api.github.com/users/svc-autorelease/events{/privacy}jn  <https://api.github.com/users/svc-autorelease/received_eventsjn  Userjn  uparents]}(jmn  (97c6673b2b148eaa17833b669f8853854e35a0aajn  ^https://api.github.com/repos/palantir/atlasdb/commits/97c6673b2b148eaa17833b669f8853854e35a0aajn  Shttps://github.com/palantir/atlasdb/commit/97c6673b2b148eaa17833b669f8853854e35a0aauastats}(totalK 	additionsK 	deletionsK ufiles]}(jmn  (d950412e3468eb3c6435b88c85e31c8234c831c5filename changelog/0.756.1/pr-6488.v2.ymlstatusrenamedjn  K jn  K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/3c0dd9a09ebb8f00d7a353e0d515f7c5156472d3/changelog%2F0.756.1%2Fpr-6488.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/3c0dd9a09ebb8f00d7a353e0d515f7c5156472d3/changelog%2F0.756.1%2Fpr-6488.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.756.1%2Fpr-6488.v2.yml?ref=3c0dd9a09ebb8f00d7a353e0d515f7c5156472d3previous_filename$changelog/@unreleased/pr-6488.v2.ymluau(f522243f82381b53d56d80abd2e7f5c0046d596e}(sha(f522243f82381b53d56d80abd2e7f5c0046d596enode_idEC_kwDOAjP5fdoAKGY1MjIyNDNmODIzODFiNTNkNTZkODBhYmQyZTdmNWMwMDQ2ZDU5NmUcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-03-24T16:56:59Zu	committer}(jn  GitHubjn  noreply@github.comjn  2023-03-24T16:56:59Zumessage%log durable writes violations (#6484)tree}(jn  (1346f6f00add8b6dad020a046086e3d53d725b95url`https://api.github.com/repos/palantir/atlasdb/git/trees/1346f6f00add8b6dad020a046086e3d53d725b95ujn  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f522243f82381b53d56d80abd2e7f5c0046d596e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkHdZbCRBK7hj4Ov3rIwAALwUIAJvO3zIt81bjqzy20nTr4v2m
cuAdfrD/m+VicCZqThCB3xmKgD6gv0piJGY2qybolWM7Jyeg1BM8PizPshPSii+b
dk7z2YpSwXDbKzQur8tNVJHQ4jDdXxxeA3cQqaeE30WXj1UWzgHyqyzqpzwVeTF8
jTi710YrIwtTPW3grcxXKbMcPM7gweVP0ek3F/z3ts8nkk5BCBaCw1UWMr9cRO2p
zEk3crlwvkSagfNoGidYlBxiVkmm4KUSKTzBgR35Ijb2kXa3Oke55xazfDzsJyiy
vf05aD79e+WI/CRcxuusil5EOXyKQCzLf8wwLVeGSyinzHcGJc92blwnFirDy+E=
=BySC
-----END PGP SIGNATURE-----
payloadtree 1346f6f00add8b6dad020a046086e3d53d725b95
parent f4ba2346a0736e4f029339f4d676ad31d164b2a3
author Sam-Kramer <sam.c.kramer@gmail.com> 1679677019 +0000
committer GitHub <noreply@github.com> 1679677019 +0000

log durable writes violations (#6484)

 uujn  ^https://api.github.com/repos/palantir/atlasdb/commits/f522243f82381b53d56d80abd2e7f5c0046d596ehtml_urlShttps://github.com/palantir/atlasdb/commit/f522243f82381b53d56d80abd2e7f5c0046d596ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f522243f82381b53d56d80abd2e7f5c0046d596e/commentsjn  }(login
Sam-KrameridJ^2_ jn  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jn  'https://api.github.com/users/Sam-Kramerj
o  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujn  }(jo  web-flowjo  J/jn  MDQ6VXNlcjE5ODY0NDQ3jo  4https://avatars.githubusercontent.com/u/19864447?v=4jo  h5jn  %https://api.github.com/users/web-flowj
o  https://github.com/web-flowjo  /https://api.github.com/users/web-flow/followersjo  <https://api.github.com/users/web-flow/following{/other_user}jo  5https://api.github.com/users/web-flow/gists{/gist_id}jo  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j o  3https://api.github.com/users/web-flow/subscriptionsj"o  *https://api.github.com/users/web-flow/orgsj$o  +https://api.github.com/users/web-flow/reposj&o  6https://api.github.com/users/web-flow/events{/privacy}j(o  5https://api.github.com/users/web-flow/received_eventsj*o  Userj,o  uparents]}(jn  (f4ba2346a0736e4f029339f4d676ad31d164b2a3jn  ^https://api.github.com/repos/palantir/atlasdb/commits/f4ba2346a0736e4f029339f4d676ad31d164b2a3j
o  Shttps://github.com/palantir/atlasdb/commit/f4ba2346a0736e4f029339f4d676ad31d164b2a3uastats}(totalK	additionsK	deletionsKufiles]}(jn  (90b0893e2e1b4c1c77c064fb363b2dff1d8c9bd4filenamewatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporter.javastatusmodifiedjFo  KjGo  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/f522243f82381b53d56d80abd2e7f5c0046d596e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f522243f82381b53d56d80abd2e7f5c0046d596e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.java?ref=f522243f82381b53d56d80abd2e7f5c0046d596epatchX  @@ -18,12 +18,17 @@
 
 import com.palantir.atlasdb.workload.DurableWritesMetrics;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.Map;
 import java.util.function.Consumer;
 
 public final class DurableWritesMetricInvariantReporter
         implements InvariantReporter<Map<TableAndWorkloadCell, MismatchedValue>> {
 
+    private static final SafeLogger log = SafeLoggerFactory.get(DurableWritesMetricInvariantReporter.class);
+
     private final String workflow;
     private final DurableWritesMetrics durableWritesMetrics;
 
@@ -39,12 +44,14 @@ public Invariant<Map<TableAndWorkloadCell, MismatchedValue>> invariant() {
 
     @Override
     public Consumer<Map<TableAndWorkloadCell, MismatchedValue>> consumer() {
-        return mismatchingValues ->
-                mismatchingValues.forEach((tableAndWorkloadCell, _mismatchedValue) -> durableWritesMetrics
-                        .numberOfViolations()
-                        .workflow(workflow)
-                        .table(tableAndWorkloadCell.tableName())
-                        .build()
-                        .inc());
+        return mismatchingValues -> {
+            mismatchingValues.forEach((tableAndWorkloadCell, _mismatchedValue) -> durableWritesMetrics
+                    .numberOfViolations()
+                    .workflow(workflow)
+                    .table(tableAndWorkloadCell.tableName())
+                    .build()
+                    .inc());
+            log.warn("Durable writes invariant violations found!", SafeArg.of("mismatchingValues", mismatchingValues));
+        };
     }
 }uau(cee9e13f53bcf0622ffef2769c19b73f389bcb6d}(sha(cee9e13f53bcf0622ffef2769c19b73f389bcb6dnode_idEC_kwDOAjP5fdoAKGNlZTllMTNmNTNiY2YwNjIyZmZlZjI3NjljMTliNzNmMzg5YmNiNmQcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-14T10:11:35Zu	committer}(jco  	Tom Papkejeo  tpapke@palantir.comjgo  2023-06-14T10:11:35Zumessage
merge developtree}(j[o  (1466c4c74123d10725076fe78a53b3da1e40414eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/1466c4c74123d10725076fe78a53b3da1e40414eujso  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cee9e13f53bcf0622ffef2769c19b73f389bcb6d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSJklcACgkQmF9s0kaF
Iw2z/wf/RHUrKk0dAMxOoCvxT1b/Z1E/NAEsXWtV2lEJ/Lr8SJEBKsHaFUDUW4YF
JwEpIB6CfCgF4cRUxT///FzMKEG/miZ7cAsQwdLJqKpoAgSVza5KIu7FNWORyyry
YcQeeEIBPxtiZzEPqjEsPX6TleA5gS2nxDCtfVRbqBaMQ/RdKM6s2XJz3wa89e0J
Pa/jhl6NkblIRA9qIbDFVg9pH7KJb6R0ADGxYosc6o5ItWewHqhW8uQU0SHC0MCF
qSZsGdwemlWQO1DzSWe+XAOBdCi9eiURPlxYPhN60lEARFob7wOYbzSLXP047k0U
hdgUkm+VqTq+t5idqZ0eji2FGxVpfw==
=phRP
-----END PGP SIGNATURE-----payloadX  tree 1466c4c74123d10725076fe78a53b3da1e40414e
parent 4b87b970991d4b7edc671b759b5774de10872708
parent 207838a4830e3f0a11e7754cc93cdfe36cd0190a
author Tom Papke <tpapke@palantir.com> 1686737495 +0100
committer Tom Papke <tpapke@palantir.com> 1686737495 +0100

merge develop
uujso  ^https://api.github.com/repos/palantir/atlasdb/commits/cee9e13f53bcf0622ffef2769c19b73f389bcb6dhtml_urlShttps://github.com/palantir/atlasdb/commit/cee9e13f53bcf0622ffef2769c19b73f389bcb6dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cee9e13f53bcf0622ffef2769c19b73f389bcb6d/commentsjao  }(login	ToemmscheidJboj]o  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jso  &https://api.github.com/users/Toemmschejo  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujio  }(jo  	Toemmschejo  Jboj]o  MDQ6VXNlcjQzNjc1NDkwjo  4https://avatars.githubusercontent.com/u/43675490?v=4jo  h5jso  &https://api.github.com/users/Toemmschejo  https://github.com/Toemmschejo  0https://api.github.com/users/Toemmsche/followersjo  =https://api.github.com/users/Toemmsche/following{/other_user}jo  6https://api.github.com/users/Toemmsche/gists{/gist_id}jo  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jo  4https://api.github.com/users/Toemmsche/subscriptionsjo  +https://api.github.com/users/Toemmsche/orgsjo  ,https://api.github.com/users/Toemmsche/reposjo  7https://api.github.com/users/Toemmsche/events{/privacy}jo  6https://api.github.com/users/Toemmsche/received_eventsjo  Userjo  uparents](}(j[o  (4b87b970991d4b7edc671b759b5774de10872708      jso  ^https://api.github.com/repos/palantir/atlasdb/commits/4b87b970991d4b7edc671b759b5774de10872708jo  Shttps://github.com/palantir/atlasdb/commit/4b87b970991d4b7edc671b759b5774de10872708u}(j[o  (207838a4830e3f0a11e7754cc93cdfe36cd0190ajso  ^https://api.github.com/repos/palantir/atlasdb/commits/207838a4830e3f0a11e7754cc93cdfe36cd0190ajo  Shttps://github.com/palantir/atlasdb/commit/207838a4830e3f0a11e7754cc93cdfe36cd0190auestats}(totalK 	additionsK 	deletionsK ufiles]u(35d03f713288cb8bc3ec561a7eb13f53c06f9beb}(sha(35d03f713288cb8bc3ec561a7eb13f53c06f9bebnode_idEC_kwDOAjP5fdoAKDM1ZDAzZjcxMzI4OGNiOGJjM2VjNTYxYTdlYjEzZjUzYzA2ZjliZWIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-15T15:20:10Zu	committer}(jo  Jeremy Kongjo  jkong@palantir.comjo  2023-05-18T15:14:15Zumessagebootree}(jo  (283cc5d23a512eb17e8cc77e2f6a56351277bbfcurl`https://api.github.com/repos/palantir/atlasdb/git/trees/283cc5d23a512eb17e8cc77e2f6a56351277bbfcujo  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/35d03f713288cb8bc3ec561a7eb13f53c06f9beb
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRmQMkACgkQTLdFKain
zjxoUggA1RivYYjMBgRioZQYiJt9W7Uy1YrKMwcqwrThvnnjrtusXAsKUaQpd3ib
hr6VZE2u9FoORtjmZG7iymbefRDUR/e3cu1hwdGXPON/jBO+6mhQBsnj57QbrcyR
LiMWY4FMDW71oRDdRip0Jbg+5dqkUMmn6EuTdwuaHc74Y3usBVotVbm0QYLsOyBP
sT4fj1+TlzyF2HLWjZtiDgptA0H/i9D9BrVQ5oOKjBAxAeswQ0qIV5N6c0gZYeRp
KQRTnqAtzEuWjZfMHFnwhc5JD/CsjeX65Va/9r8eXdfJ9xdcMmBogg09M8JUkjIl
U+vdR3ZZHBaNqv00vsp1Mlo1/MwilA==
=8Q35
-----END PGP SIGNATURE-----payloadtree 283cc5d23a512eb17e8cc77e2f6a56351277bbfc
parent a9383e57656160eff54f907479a199cbf8529520
author Jeremy Kong <jkong@palantir.com> 1684164010 +0100
committer Jeremy Kong <jkong@palantir.com> 1684422855 +0100

boo
uujo  ^https://api.github.com/repos/palantir/atlasdb/commits/35d03f713288cb8bc3ec561a7eb13f53c06f9bebhtml_urlShttps://github.com/palantir/atlasdb/commit/35d03f713288cb8bc3ec561a7eb13f53c06f9bebcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/35d03f713288cb8bc3ec561a7eb13f53c06f9beb/commentsjo  }(login
jeremyk-91idJZ jo  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jo  'https://api.github.com/users/jeremyk-91jo  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujo  }(jo  
jeremyk-91jo  JZ jo  MDQ6VXNlcjU5NTU1MTA=jo  3https://avatars.githubusercontent.com/u/5955510?v=4jo  h5jo  'https://api.github.com/users/jeremyk-91jo  https://github.com/jeremyk-91jo  1https://api.github.com/users/jeremyk-91/followersjo  >https://api.github.com/users/jeremyk-91/following{/other_user}jo  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jp  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jp  5https://api.github.com/users/jeremyk-91/subscriptionsjp  ,https://api.github.com/users/jeremyk-91/orgsjp  -https://api.github.com/users/jeremyk-91/reposj	p  8https://api.github.com/users/jeremyk-91/events{/privacy}jp  7https://api.github.com/users/jeremyk-91/received_eventsj
p  Userjp  uparents]}(jo  (a9383e57656160eff54f907479a199cbf8529520jo  ^https://api.github.com/repos/palantir/atlasdb/commits/a9383e57656160eff54f907479a199cbf8529520jo  Shttps://github.com/palantir/atlasdb/commit/a9383e57656160eff54f907479a199cbf8529520uastats}(totalK/	additionsK	deletionsKufiles]}(jo  (5aebaf1419c29a8ce48ee92b793412cf85e3f2e4filenameXatlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/OracleDdlConfigTest.javastatusmodifiedj)p  Kj*p  KchangesK/blob_urlhttps://github.com/palantir/atlasdb/blob/35d03f713288cb8bc3ec561a7eb13f53c06f9beb/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleDdlConfigTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/35d03f713288cb8bc3ec561a7eb13f53c06f9beb/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleDdlConfigTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleDdlConfigTest.java?ref=35d03f713288cb8bc3ec561a7eb13f53c06f9bebpatchXO  @@ -23,6 +23,8 @@
 import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.databind.json.JsonMapper;
 import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.keyvalue.api.Namespace;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.OverflowMigrationState;
 import com.palantir.conjure.java.serialization.ObjectMappers;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
@@ -78,10 +80,10 @@ public void overflowTablePrefixesMustNotBeginWithUnderscore() {
     @Test
     public void overflowPrefixHasMaximumLengthSix() {
         assertThatCode(() ->
-                        createLegacyCompatibleOracleConfigWithPrefixes(getPrefixWithLength(7), getPrefixWithLength(6)))
+                createLegacyCompatibleOracleConfigWithPrefixes(getPrefixWithLength(7), getPrefixWithLength(6)))
                 .doesNotThrowAnyException();
         assertThatThrownBy(() ->
-                        createLegacyCompatibleOracleConfigWithPrefixes(getPrefixWithLength(7), getPrefixWithLength(7)))
+                createLegacyCompatibleOracleConfigWithPrefixes(getPrefixWithLength(7), getPrefixWithLength(7)))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("'overflowTablePrefix' exceeds the length limit")
                 .hasMessageContaining("6");
@@ -90,7 +92,7 @@ public void overflowPrefixHasMaximumLengthSix() {
     @Test
     public void tablePrefixHasMaximumLengthSeven() {
         assertThatThrownBy(() ->
-                        createLegacyCompatibleOracleConfigWithPrefixes(getPrefixWithLength(8), getPrefixWithLength(6)))
+                createLegacyCompatibleOracleConfigWithPrefixes(getPrefixWithLength(8), getPrefixWithLength(6)))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("'tablePrefix' exceeds the length limit")
                 .hasMessageContaining("7");
@@ -99,36 +101,36 @@ public void tablePrefixHasMaximumLengthSeven() {
     @Test
     public void longPrefixesAllowedIfConfigSpecificallyAllowsThem() {
         assertThatCode(() -> createLongNameSupportingOracleConfigWithPrefixes(
-                        getPrefixWithLength(42), getPrefixWithLength(41)))
+                getPrefixWithLength(42), getPrefixWithLength(41)))
                 .doesNotThrowAnyException();
         assertThatCode(() -> createLongNameSupportingOracleConfigWithPrefixes(
-                        getPrefixWithLength(41), getPrefixWithLength(42)))
+                getPrefixWithLength(41), getPrefixWithLength(42)))
                 .doesNotThrowAnyException();
     }
 
     @Test
     @SuppressWarnings("ResultOfMethodCallIgnored") // We're interested in whether this throws an exception or not!
     public void tableMappingAndLongNameSupportNotAllowedTogether() {
         assertThatThrownBy(() -> ImmutableOracleDdlConfig.builder()
-                        .tablePrefix(getPrefixWithLength(5))
-                        .overflowTablePrefix(getPrefixWithLength(4))
-                        .overflowMigrationState(OverflowMigrationState.FINISHED)
-                        .longIdentifierNamesSupported(true)
-                        .useTableMapping(true)
-                        .build())
+                .tablePrefix(getPrefixWithLength(5))
+                .overflowTablePrefix(getPrefixWithLength(4))
+                .overflowMigrationState(OverflowMigrationState.FINISHED)
+                .longIdentifierNamesSupported(true)
+                .useTableMapping(true)
+                .build())
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("The table mapper does not support long identifier names");
     }
 
     @Test
     public void excessivelyLongPrefixesStillDisallowedEvenWithLongNameSupport() {
         assertThatThrownBy(() -> createLongNameSupportingOracleConfigWithPrefixes(
-                        getPrefixWithLength(57), getPrefixWithLength(14)))
+                getPrefixWithLength(57), getPrefixWithLength(14)))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("'tablePrefix' exceeds the length limit")
                 .hasMessageContaining("56");
         assertThatThrownBy(() -> createLongNameSupportingOracleConfigWithPrefixes(
-                        getPrefixWithLength(22), getPrefixWithLength(57)))
+                getPrefixWithLength(22), getPrefixWithLength(57)))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("'overflowTablePrefix' exceeds the length limit")
                 .hasMessageContaining("56");
@@ -137,9 +139,9 @@ public void excessivelyLongPrefixesStillDisallowedEvenWithLongNameSupport() {
     @Test
     public void tableMappingIsByDefaultOn() {
         assertThat(ImmutableOracleDdlConfig.builder()
-                        .overflowMigrationState(OverflowMigrationState.FINISHED)
-                        .build()
-                        .useTableMapping())
+                .overflowMigrationState(OverflowMigrationState.FINISHED)
+                .build()
+                .useTableMapping())
                 .isTrue();
     }
 
@@ -148,10 +150,10 @@ public void canSetTableMappingExplicitly() {
         List<Boolean> values = ImmutableList.of(false, true);
         for (boolean value : values) {
             assertThat(ImmutableOracleDdlConfig.builder()
-                            .overflowMigrationState(OverflowMigrationState.FINISHED)
-                            .forceTableMapping(value)
-                            .build()
-                            .useTableMapping())
+                    .overflowMigrationState(OverflowMigrationState.FINISHED)
+                    .forceTableMapping(value)
+                    .build()
+                    .useTableMapping())
                     .isEqualTo(value);
         }
     }
@@ -171,6 +173,11 @@ public void serializeAndDeserializeIsNoOp() throws JsonProcessingException {
 
         OracleDdlConfig config =
                 createLongNameSupportingOracleConfigWithPrefixes(getPrefixWithLength(44), getPrefixWithLength(33));
+        config = ImmutableOracleDdlConfig.copyOf(config).withAlterTablesOrMetadataToMatch(
+                TableReference.create(Namespace.create("ns"), "table"),
+                TableReference.createWithEmptyNamespace("iDoNotHaveOne")
+        );
+        System.out.println(jsonMapper.writeValueAsString(config));
         assertThat(jsonMapper.readValue(jsonMapper.writeValueAsString(config), OracleDdlConfig.class))
                 .isEqualTo(config);
     }uau(f7b40432ba59e00466550ae9a8e8b6ecf5122a3b}(sha(f7b40432ba59e00466550ae9a8e8b6ecf5122a3bnode_idEC_kwDOAjP5fdoAKGY3YjQwNDMyYmE1OWUwMDQ2NjU1MGFlOWE4ZThiNmVjZjUxMjJhM2Icommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-07-19T09:57:53Zu	committer}(jFp  
svc-changelogjHp  svc-changelog@palantir.comjJp  2023-07-19T09:57:53ZumessageAdd generated changelog entriestree}(j>p  (3954a927fa114e27025c3fb5338a9f028cee8fbaurl`https://api.github.com/repos/palantir/atlasdb/git/trees/3954a927fa114e27025c3fb5338a9f028cee8fbaujVp  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f7b40432ba59e00466550ae9a8e8b6ecf5122a3b
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmS3s6EJEHYaJX37fAFQAACEIgEAvDoKgrfVwnQfsC0QgjgcGKWN
LO2NQI9yPBh9wZ16DNYBALcDbzTjZb2wRneqUJxnGYJps73UAdW3aU6lCaBjjPcb
=syWu
-----END PGP SIGNATURE-----payloadX  tree 3954a927fa114e27025c3fb5338a9f028cee8fba
parent 29c8bf68ec82a39025cf333b6bb6b6f8f89443da
author svc-changelog <svc-changelog@palantir.com> 1689760673 +0000
committer svc-changelog <svc-changelog@palantir.com> 1689760673 +0000

Add generated changelog entriesuujVp  ^https://api.github.com/repos/palantir/atlasdb/commits/f7b40432ba59e00466550ae9a8e8b6ecf5122a3bhtml_urlShttps://github.com/palantir/atlasdb/commit/f7b40432ba59e00466550ae9a8e8b6ecf5122a3bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f7b40432ba59e00466550ae9a8e8b6ecf5122a3b/commentsjDp  }(login
svc-changelogidJ#j@p  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jVp  *https://api.github.com/users/svc-changelogjdp   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujLp  }(jip  
svc-changelogjkp  J#j@p  MDQ6VXNlcjg0MDc3NjAzjmp  4https://avatars.githubusercontent.com/u/84077603?v=4jop  h5jVp  *https://api.github.com/users/svc-changelogjdp   https://github.com/svc-changelogjrp  4https://api.github.com/users/svc-changelog/followersjtp  Ahttps://api.github.com/users/svc-changelog/following{/other_user}jvp  :https://api.github.com/users/svc-changelog/gists{/gist_id}jxp  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jzp  8https://api.github.com/users/svc-changelog/subscriptionsj|p  /https://api.github.com/users/svc-changelog/orgsj~p  0https://api.github.com/users/svc-changelog/reposjp  ;https://api.github.com/users/svc-changelog/events{/privacy}jp  :https://api.github.com/users/svc-changelog/received_eventsjp  Userjp  uparents]}(j>p  (29c8bf68ec82a39025cf333b6bb6b6f8f89443dajVp  ^https://api.github.com/repos/palantir/atlasdb/commits/29c8bf68ec82a39025cf333b6bb6b6f8f89443dajdp  Shttps://github.com/palantir/atlasdb/commit/29c8bf68ec82a39025cf333b6bb6b6f8f89443dauastats}(totalK	additionsK	deletionsK ufiles]}(j>p  (614dd934205ad0c9252ed3ff35d0e4a6e6315be2filename$changelog/@unreleased/pr-6660.v2.ymlstatusaddedjp  Kjp  K changesKblob_url|https://github.com/palantir/atlasdb/blob/f7b40432ba59e00466550ae9a8e8b6ecf5122a3b/changelog%2F%40unreleased%2Fpr-6660.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/f7b40432ba59e00466550ae9a8e8b6ecf5122a3b/changelog%2F%40unreleased%2Fpr-6660.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6660.v2.yml?ref=f7b40432ba59e00466550ae9a8e8b6ecf5122a3bpatch@@ -0,0 +1,5 @@
+type: feature
+feature:
+  description: '[LWMeta] TimeLock API changes'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6660uau(a79fdc9687c6c04494d67e143469f241ee42d810}(sha(a79fdc9687c6c04494d67e143469f241ee42d810node_idEC_kwDOAjP5fdoAKGE3OWZkYzk2ODdjNmMwNDQ5NGQ2N2UxNDM0NjlmMjQxZWU0MmQ4MTAcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-24T15:04:59Zu	committer}(jp  
Ahmed Alouanejp  aalouane@palantir.comjp  2023-04-24T15:04:59Zumessagebalaahtree}(jp  (32ca362da768b8c99964f2c9718d810adc548e72url`https://api.github.com/repos/palantir/atlasdb/git/trees/32ca362da768b8c99964f2c9718d810adc548e72ujp  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a79fdc9687c6c04494d67e143469f241ee42d810
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRGmpsACgkQPlMHVIT1
yho4Ygf9FJfoUa1SQt8Ta5Pp9tHbH9KI+TW1JMCUP1EdS8dPZqJ869XUMUseEEwX
6ZDBk63b+d6R5Avrm7w1EMDrRiJvRF6vXpwlIyu9HCieEsMnVEscG4GSU6fa18+h
1bySJQPH3aESkw6o4PqNLriwk7YSP/0d0V5yPCa7z4IOCio3qnyz9kSDad/CWWIc
cE4vg4ZkmsLySEG7sF1Io29TcmKWUi0uhBRqxttmSpRb0Qdphz5oUi7I6NV8ycgs
HfgH1Z6RSl/Zriy5uN6CdFtUPknyF3JIAS+WqUTUOg4yy3GdiuKrOgPJl5hxEhJe
Ictq4g5qzDwtiuXm1giA4hDOt8UT8Q==
=Nnt2
-----END PGP SIGNATURE-----payloadtree 32ca362da768b8c99964f2c9718d810adc548e72
parent 0e042c5db32fd526cc9e1506788bee2cda4f3a43
author Ahmed Alouane <aalouane@palantir.com> 1682348699 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682348699 +0100

balaah
uujp  ^https://api.github.com/repos/palantir/atlasdb/commits/a79fdc9687c6c04494d67e143469f241ee42d810html_urlShttps://github.com/palantir/atlasdb/commit/a79fdc9687c6c04494d67e143469f241ee42d810comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a79fdc9687c6c04494d67e143469f241ee42d810/commentsjp  }(loginergo14idJjp  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jp  #https://api.github.com/users/ergo14jp  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujp  }(jp  ergo14jp  Jjp  MDQ6VXNlcjMwOTAzNzM2jp  4https://avatars.githubusercontent.com/u/30903736?v=4jp  h5jp  #https://api.github.com/users/ergo14jp  https://github.com/ergo14jp  -https://api.github.com/users/ergo14/followersjp  :https://api.github.com/users/ergo14/following{/other_user}jp  3https://api.github.com/users/ergo14/gists{/gist_id}jp  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jp  1https://api.github.com/users/ergo14/subscriptionsjp  (https://api.github.com/users/ergo14/orgsjp  )https://api.github.com/users/ergo14/reposjp  4https://api.github.com/users/ergo14/events{/privacy}jp  3https://api.github.com/users/ergo14/received_eventsjp  Userjp  uparents]}(jp  (0e042c5db32fd526cc9e1506788bee2cda4f3a43jp  ^https://api.github.com/repos/palantir/atlasdb/commits/0e042c5db32fd526cc9e1506788bee2cda4f3a43jp  Shttps://github.com/palantir/atlasdb/commit/0e042c5db32fd526cc9e1506788bee2cda4f3a43uastats}(totalK	additionsK	deletionsK ufiles]}(jp  (60cdb0ce3a6d3b7e0f33ef5db604dcdc3d074529filenamebuild.gradlestatusmodifiedjq  Kjq  K changesKblob_url^https://github.com/palantir/atlasdb/blob/a79fdc9687c6c04494d67e143469f241ee42d810/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/a79fdc9687c6c04494d67e143469f241ee42d810/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=a79fdc9687c6c04494d67e143469f241ee42d810patch@@ -1,5 +1,6 @@
 import org.gradle.plugins.ide.idea.model.IdeaModel
 
+
 buildscript {
     repositories {
         mavenCentral() { metadataSources { mavenPom(); ignoreGradleMetadataRedirection() } }uau(4a26cf652c2edced996278c207940c54cb6f4b2f}(sha(4a26cf652c2edced996278c207940c54cb6f4b2fnode_idEC_kwDOAjP5fdoAKDRhMjZjZjY1MmMyZWRjZWQ5OTYyNzhjMjA3OTQwYzU0Y2I2ZjRiMmYcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-04-02T18:34:45Zu	committer}(j4q  David Schlosnaglej6q  davids@palantir.comj8q  2023-04-02T18:34:45ZumessageCR commentstree}(j,q  (9aff8668fb27aa08e820e8ab3ceff27338cb2bb2url`https://api.github.com/repos/palantir/atlasdb/git/trees/9aff8668fb27aa08e820e8ab3ceff27338cb2bb2ujDq  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4a26cf652c2edced996278c207940c54cb6f4b2f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmQpysUACgkQR9hsJ74Q
0l94NQf9GHV/WzCQiBLxqlVqqaJBYzunqLLwPK99tGnaMGOdCykG1SiBeib00LC6
lzmfYKp6bgHHUJZ61gLXXbvYG8GfXXINcbo3p8dbux4rMQq7z59l9VneCHCBUsLU
lclebvSTWW56xWON8vTKkh9AqCOM5fvLzTFlHrOeV1LWKvkojeCxpYKuo60ntB4z
9hhGJp0T8QZvbcUAi6xeiex2e+xNyY8enOe3B0kAoP7ASZBABFrxuc55EH8QA0fP
kYQvhCOkjI3jy6ZecKiBBoV7EglBnLd5ZH1JFPg1ZyiGJoSkUWz9zg6rqWWYTlRp
8BjMYSYvpGP01111x1izpAaWzq+Hvw==
=orbM
-----END PGP SIGNATURE-----payloadtree 9aff8668fb27aa08e820e8ab3ceff27338cb2bb2
parent af0f5dd0455619c38e9514749ed9ebfa31437b62
author David Schlosnagle <davids@palantir.com> 1680460485 -0400
committer David Schlosnagle <davids@palantir.com> 1680460485 -0400

CR comments
uujDq  ^https://api.github.com/repos/palantir/atlasdb/commits/4a26cf652c2edced996278c207940c54cb6f4b2fhtml_urlShttps://github.com/palantir/atlasdb/commit/4a26cf652c2edced996278c207940c54cb6f4b2fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4a26cf652c2edced996278c207940c54cb6f4b2f/commentsj2q  }(loginschlosnaidMBj.q  MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jDq  %https://api.github.com/users/schlosnajRq  https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj:q  }(jWq  schlosnajYq  MBj.q  MDQ6VXNlcjU0NTk0j[q  1https://avatars.githubusercontent.com/u/54594?v=4j]q  h5jDq  %https://api.github.com/users/schlosnajRq  https://github.com/schlosnaj`q  /https://api.github.com/users/schlosna/followersjbq  <https://api.github.com/users/schlosna/following{/other_user}jdq  5https://api.github.com/users/schlosna/gists{/gist_id}jfq  <https://api.github.com/users/schlosna/starred{/owner}{/repo}jhq  3https://api.github.com/users/schlosna/subscriptionsjjq  *https://api.github.com/users/schlosna/orgsjlq  +https://api.github.com/users/schlosna/reposjnq  6https://api.github.com/users/schlosna/events{/privacy}jpq  5https://api.github.com/users/schlosna/received_eventsjrq  Userjtq  uparents]}(j,q  (af0f5dd0455619c38e9514749ed9ebfa31437b62jDq  ^https://api.github.com/repos/palantir/atlasdb/commits/af0f5dd0455619c38e9514749ed9ebfa31437b62jRq  Shttps://github.com/palantir/atlasdb/commit/af0f5dd0455619c38e9514749ed9ebfa31437b62uastats}(totalKs	additionsKn	deletionsKufiles](}(j,q  (37f614609e9364110222b476f105aa43bbb7f628filenamebatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/ColumnMetadataDescription.javastatusmodifiedjq  Kjq  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/4a26cf652c2edced996278c207940c54cb6f4b2f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4a26cf652c2edced996278c207940c54cb6f4b2f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.java?ref=4a26cf652c2edced996278c207940c54cb6f4b2fpatchX  @@ -22,11 +22,15 @@
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Set;
+import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 
 @Immutable
 public class ColumnMetadataDescription {
+    @Nullable
     final ImmutableSet<NamedColumnDescription> namedColumns;
+
+    @Nullable
     final DynamicColumnDescription dynamicColumn;
 
     public ColumnMetadataDescription() {
@@ -44,10 +48,12 @@ public ColumnMetadataDescription(DynamicColumnDescription dynamicColumn) {
         this.dynamicColumn = dynamicColumn;
     }
 
+    @Nullable
     public Set<NamedColumnDescription> getNamedColumns() {
         return namedColumns;
     }
 
+    @Nullable
     public DynamicColumnDescription getDynamicColumn() {
         return dynamicColumn;
     }u}(j,q  (c1bfeabe203bba1d733629bf0500e496c4eb24ebjq  _atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTable.javajq  modifiedjq  Kjq  Kjq  Kjq  https://github.com/palantir/atlasdb/blob/4a26cf652c2edced996278c207940c54cb6f4b2f/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javajq  https://github.com/palantir/atlasdb/raw/4a26cf652c2edced996278c207940c54cb6f4b2f/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javajq  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.java?ref=4a26cf652c2edced996278c207940c54cb6f4b2fjq  XT
  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Stopwatch;
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -31,6 +32,8 @@
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyleCache;
 import com.palantir.atlasdb.logging.LoggingArgs;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.NamedColumnDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.common.base.RunnableCheckedException;
 import com.palantir.common.base.Throwables;
@@ -48,6 +51,7 @@
 import com.palantir.util.VersionStrings;
 import java.sql.SQLException;
 import java.util.Locale;
+import java.util.Set;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.TimeUnit;
 import org.apache.commons.lang3.StringUtils;
@@ -175,14 +179,26 @@ private boolean needsOverflow(TableMetadata metadata) {
      * - Finally, if the sweep strategy is not CONSERVATIVE, there are no sentinels, and if there is only one named
      *   column then there will be no rows that share { row } so compression should be disabled.
      */
-    private int getOptimalIndexCompression(TableMetadata metadata) {
+    @VisibleForTesting
+    static int getOptimalIndexCompression(TableMetadata metadata) {
         if (metadata.getSweepStrategy() == SweepStrategy.CONSERVATIVE) {
+            // the table's sweep strategy is CONSERVATIVE, then every { row, col } will have at least two rows
             return 2;
-        } else if (!metadata.getColumns().hasDynamicColumns() || metadata.getColumns().getNamedColumns().size() > 1) {
-            return 1;
-        } else {
-            return 0;
         }
+        ColumnMetadataDescription columns = metadata.getColumns();
+        if (columns != null) {
+            // there will be reuse of the { row } if there is more than one named column
+            // or the table uses dynamic columns, which would be generally be expected to have multiple row values
+            if (columns.hasDynamicColumns()) {
+                return 1;
+            }
+            Set<NamedColumnDescription> namedColumns = columns.getNamedColumns();
+            if (namedColumns != null && namedColumns.size() > 1) {
+                return 1;
+            }
+        }
+
+        return 0;
     }
 
     private boolean overflowColumnExists(String shortTableName) {u}(j,q  (268d9697749621e80d70fd324309f7f6f1dc4303jq  catlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTableTest.javajq  modifiedjq  KSjq  K jq  KSjq  https://github.com/palantir/atlasdb/blob/4a26cf652c2edced996278c207940c54cb6f4b2f/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javajq  https://github.com/palantir/atlasdb/raw/4a26cf652c2edced996278c207940c54cb6f4b2f/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javajq  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.java?ref=4a26cf652c2edced996278c207940c54cb6f4b2fjq  X[  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle;
 
 import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
@@ -41,6 +42,11 @@
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.OverflowMigrationState;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyle;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyleCache;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.ColumnValueDescription;
+import com.palantir.atlasdb.table.description.NameComponentDescription;
+import com.palantir.atlasdb.table.description.NamedColumnDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.table.description.ValueType;
 import com.palantir.common.concurrent.PTExecutors;
@@ -50,9 +56,12 @@
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.nexus.db.sql.SqlConnection;
+import java.util.ArrayList;
+import java.util.List;
 import java.util.Locale;
 import java.util.Set;
 import java.util.concurrent.ExecutorService;
+import java.util.concurrent.ThreadLocalRandom;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
@@ -348,6 +357,80 @@ public void createDoesNotThrowWhenOverflowColumnAlreadyExistsAndAlterIsRan() thr
         verifyTableAltered();
     }
 
+    @Test
+    public void testIndexStrategy_conservative_sweep() {
+        for (int col = 0; col < 10; col++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.CONSERVATIVE);
+            for (int colName = 0; colName < col; colName++) {
+                boolean hasOverflow = ThreadLocalRandom.current().nextBoolean();
+                metadataBuilder.singleNamedColumn(
+                        "foo" + colName, "foobar" + colName, hasOverflow ? ValueType.STRING : ValueType.FIXED_LONG);
+            }
+            TableMetadata metadata = metadataBuilder.build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(2);
+        }
+    }
+
+    @Test
+    public void testIndexStrategy_dynamic_columns() {
+        for (int col = 1; col <= 10; col++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+            List<NameComponentDescription> dynamicColumns = new ArrayList<>();
+            for (int colDesc = 1; colDesc <= col; colDesc++) {
+                boolean hasOverflow = ThreadLocalRandom.current().nextBoolean();
+                ValueType valueType =
+                        colDesc == col ? (hasOverflow ? ValueType.STRING : ValueType.FIXED_LONG) : ValueType.SHA256HASH;
+                dynamicColumns.add(NameComponentDescription.of("foo" + colDesc, valueType));
+            }
+            TableMetadata metadata = metadataBuilder
+                    .dynamicColumns(dynamicColumns, ValueType.STRING)
+                    .build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(1);
+        }
+    }
+
+    @Test
+    public void testIndexStrategy_named_columns() {
+        for (int col = 2; col <= 10; col++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+            List<NamedColumnDescription> columns = new ArrayList<>();
+            for (int colDesc = 1; colDesc <= col; colDesc++) {
+                boolean hasOverflow = ThreadLocalRandom.current().nextBoolean();
+                ColumnValueDescription type = ColumnValueDescription.forType(
+                        colDesc == col
+                                ? (hasOverflow ? ValueType.STRING : ValueType.FIXED_LONG)
+                                : ValueType.SHA256HASH);
+                columns.add(new NamedColumnDescription("foo" + colDesc, "foo_bar_baz" + colDesc, type));
+            }
+            TableMetadata metadata = metadataBuilder
+                    .columns(new ColumnMetadataDescription(columns))
+                    .build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata))
+                    .as("%d named columns", col)
+                    .isEqualTo(1);
+        }
+    }
+
+    @Test
+    public void testIndexStrategy_no_columns() {
+        for (int col = 0; col <= 1; col++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+            List<NamedColumnDescription> columns = new ArrayList<>();
+            for (int colDesc = 1; colDesc <= col; colDesc++) {
+                boolean hasOverflow = ThreadLocalRandom.current().nextBoolean();
+                ColumnValueDescription type = ColumnValueDescription.forType(
+                        colDesc == col
+                                ? (hasOverflow ? ValueType.STRING : ValueType.FIXED_LONG)
+                                : ValueType.SHA256HASH);
+                columns.add(new NamedColumnDescription("foo" + colDesc, "foo_bar_baz" + colDesc, type));
+            }
+            TableMetadata metadata = metadataBuilder
+                    .columns(new ColumnMetadataDescription(columns))
+                    .build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(0);
+        }
+    }
+
     private void createTable() throws TableMappingNotFoundException {
         // Not all tests will call OracleDdlTable#createTable, which makes sense as this test "creates" it for them!
         lenient()ueu(fae383805fe9e172faf790d85a518f68671bbcb0}(sha(fae383805fe9e172faf790d85a518f68671bbcb0node_idEC_kwDOAjP5fdoAKGZhZTM4MzgwNWZlOWUxNzJmYWY3OTBkODVhNTE4ZjY4NjcxYmJjYjAcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-23T13:41:21Zu	committer}(jq  	Tom Papkejq  tpapke@palantir.comjq  2023-06-23T13:41:21ZumessageEncapsulate background task logic in AdjustableBackgroundTask

Add dedicated tests for background task, remove tests for background snapshottingtree}(jq  (a5246d0525c86d3f9cc2925d8a9ecfb93051044eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/a5246d0525c86d3f9cc2925d8a9ecfb93051044eujq  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fae383805fe9e172faf790d85a518f68671bbcb0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSVoQEACgkQmF9s0kaF
Iw1UcQf/SupeiT/jlJLduLoYPi0PIAvtGRfCiQz+dZO3EbX+wC35oa6ZygfMx4Tj
AOtrngIw/ZLGFVWcpXMhaKVsPqglEKxNqEddgMWpaefH0ABOWkXhqsGgl3hUPMim
uib22d2Cy7QEQRvO81+CZatqpCiwyThTvI5CZXrvSmrbT6SJ97oSyPEXfhDSMxlH
oNtONk1WljboCGN6S+INkH/KnALzxvtSEY1Ba5p8ik7g9NSSzrvvv2kA40CsWlic
5jAQEmP//DTQv7EuAgkb92sQDaREqji0PWp/Kmhsw0BwhyjJN8wWJMlI/FGGwHix
TyxgpCRdV8eA46jDXmmMWkEyV7pxbQ==
=6mV7
-----END PGP SIGNATURE-----payloadXc  tree a5246d0525c86d3f9cc2925d8a9ecfb93051044e
parent 724bac50f91a55c8254b11d683a5142491ef980a
author Tom Papke <tpapke@palantir.com> 1687527681 +0100
committer Tom Papke <tpapke@palantir.com> 1687527681 +0100

Encapsulate background task logic in AdjustableBackgroundTask

Add dedicated tests for background task, remove tests for background snapshotting
uujq  ^https://api.github.com/repos/palantir/atlasdb/commits/fae383805fe9e172faf790d85a518f68671bbcb0html_urlShttps://github.com/palantir/atlasdb/commit/fae383805fe9e172faf790d85a518f68671bbcb0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fae383805fe9e172faf790d85a518f68671bbcb0/commentsjq  }(login	ToemmscheidJbojq  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jq  &https://api.github.com/users/Toemmschejq  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujq  }(jq  	Toemmschejq  Jbojq  MDQ6VXNlcjQzNjc1NDkwjq  4https://avatars.githubusercontent.com/u/43675490?v=4jq  h5jq  &https://api.github.com/users/Toemmschejq  https://github.com/Toemmschejq  0https://api.github.com/users/Toemmsche/followersjq  =https://api.github.com/users/Toemmsche/following{/other_user}jq  6https://api.github.com/users/Toemmsche/gists{/gist_id}jq  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jq  4https://api.github.com/users/Toemmsche/subscriptionsjq  +https://api.github.com/users/Toemmsche/orgsjq  ,https://api.github.com/users/Toemmsche/reposjq  7https://api.github.com/users/Toemmsche/events{/privacy}jq  6https://api.github.com/users/Toemmsche/received_eventsjq  Userjq  uparents]}(jq  (724bac50f91a55c8254b11d683a5142491ef980ajq  ^https://api.github.com/repos/palantir/atlasdb/commits/724bac50f91a55c8254b11d683a5142491ef980ajq  Shttps://github.com/palantir/atlasdb/commit/724bac50f91a55c8254b11d683a5142491ef980auastats}(totalMj	additionsKɌ	deletionsKufiles](}(jq  (195a2a6c7c8e0ceccae6600d14b1c1420cbb964afilenameLlock-impl/src/main/java/com/palantir/lock/impl/AdjustableBackgroundTask.javastatusaddedjr  KMjr  K changesKMblob_urlhttps://github.com/palantir/atlasdb/blob/fae383805fe9e172faf790d85a518f68671bbcb0/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javaraw_urlhttps://github.com/palantir/atlasdb/raw/fae383805fe9e172faf790d85a518f68671bbcb0/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.java?ref=fae383805fe9e172faf790d85a518f68671bbcb0patchX  @@ -0,0 +1,77 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.lock.SimpleTimeDuration;
+import com.palantir.lock.TimeDuration;
+import java.io.Closeable;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
+import java.util.function.Supplier;
+
+public final class AdjustableBackgroundTask implements Closeable {
+    /** A minimum duration between invocations if the task is not actually enabled.
+     * This is to prevent having a blocking thread in the background that does nothing.
+     */
+    @VisibleForTesting
+    static final TimeDuration MINIMUM_DELAY_IF_NOT_RUNNING = SimpleTimeDuration.of(1, TimeUnit.SECONDS);
+
+    private final ScheduledExecutorService scheduledExecutor;
+    private final Supplier<Boolean> shouldRunSupplier;
+    private final Supplier<TimeDuration> intervalSupplier;
+    private final Runnable task;
+
+    public static AdjustableBackgroundTask create(
+            Supplier<Boolean> shouldRunSupplier, Supplier<TimeDuration> delaySupplier, Runnable task) {
+        return new AdjustableBackgroundTask(
+                shouldRunSupplier, delaySupplier, task, PTExecutors.newSingleThreadScheduledExecutor());
+    }
+
+    @VisibleForTesting
+    AdjustableBackgroundTask(
+            Supplier<Boolean> shouldRunSupplier,
+            Supplier<TimeDuration> intervalSupplier,
+            Runnable task,
+            ScheduledExecutorService scheduledExecutor) {
+        this.shouldRunSupplier = shouldRunSupplier;
+        this.intervalSupplier = intervalSupplier;
+        this.task = task;
+        this.scheduledExecutor = scheduledExecutor;
+        run();
+    }
+
+    private synchronized void run() {
+        if (shouldRunSupplier.get()) {
+            task.run();
+        }
+        if (!scheduledExecutor.isShutdown()) {
+            scheduledExecutor.schedule(
+                    this::run,
+                    Math.max(
+                            MINIMUM_DELAY_IF_NOT_RUNNING.toMillis(),
+                            intervalSupplier.get().toMillis()),
+                    TimeUnit.MILLISECONDS);
+        }
+    }
+
+    @Override
+    public synchronized void close() {
+        scheduledExecutor.shutdown();
+    }
+}u}(jq  (d46677bd60efd12dee64f1090e49358ef304d8d9jr  Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javajr  modifiedjr  K jr  Kjr  Kj r  https://github.com/palantir/atlasdb/blob/fae383805fe9e172faf790d85a518f68671bbcb0/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj"r  https://github.com/palantir/atlasdb/raw/fae383805fe9e172faf790d85a518f68671bbcb0/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj$r  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=fae383805fe9e172faf790d85a518f68671bbcb0j&r  X  @@ -275,7 +275,6 @@ private LockServiceImpl(
         this.slowLogTriggerMillis = currentOptions.slowLogTriggerMillis();
         this.threadInfoSnapshotManager = new LockThreadInfoSnapshotManager(
                 options.map(LockServerOptions::threadInfoConfiguration), () -> heldLocksTokenMap);
-        threadInfoSnapshotManager.start();
     }
 
     private HeldLocksToken createHeldLocksToken(u}(jq  (fd7a37d380a4e4817d260cd09ef994d6947ed6b5jr  Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javajr  modifiedjr  Kjr  KFjr  KUj r  https://github.com/palantir/atlasdb/blob/fae383805fe9e172faf790d85a518f68671bbcb0/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj"r  https://github.com/palantir/atlasdb/raw/fae383805fe9e172faf790d85a518f68671bbcb0/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj$r  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=fae383805fe9e172faf790d85a518f68671bbcb0j&r  X  @@ -18,17 +18,16 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableMap;
-import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.lock.DebugThreadInfoConfiguration;
 import com.palantir.lock.HeldLocksToken;
 import com.palantir.lock.LockClientAndThread;
 import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
-import com.palantir.refreshable.Disposable;
 import com.palantir.refreshable.Refreshable;
 import java.util.HashMap;
 import java.util.Map;
@@ -37,11 +36,9 @@
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.ConcurrentMap;
-import java.util.concurrent.ScheduledExecutorService;
 import java.util.concurrent.TimeUnit;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
-import javax.annotation.concurrent.GuardedBy;
 
 public class LockThreadInfoSnapshotManager implements AutoCloseable {
     private static final SafeLogger log = SafeLoggerFactory.get(LockThreadInfoSnapshotManager.class);
@@ -51,71 +48,18 @@ public class LockThreadInfoSnapshotManager implements AutoCloseable {
 
     private volatile Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot = ImmutableMap.of();
 
-    private final ScheduledExecutorService scheduledExecutorService = PTExecutors.newSingleThreadScheduledExecutor();
-
-    private Optional<Disposable> disposable;
-
-    @GuardedBy("this")
-    private boolean isRunning = false;
+    private final AdjustableBackgroundTask backgroundTask;
 
     public LockThreadInfoSnapshotManager(
             Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration,
             Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> mapSupplier) {
         this.threadInfoConfiguration = threadInfoConfiguration;
         this.tokenMapSupplier = mapSupplier;
-    }
-
-    public synchronized void start() {
-        if (isRunning || isClosed()) {
-            return;
-        }
-        scheduleRun();
-        disposable = Optional.of(threadInfoConfiguration.subscribe(newThreadInfoConfiguration -> {
-            synchronized (this) {
-                if (!isRunning) {
-                    scheduleRun();
-                }
-            }
-        }));
-    }
-
-    private void run() {
-        takeSnapshot();
-        log.info(
-                "Took thread info snapshot of {} locks. Next snapshot due in {}ms",
-                SafeArg.of("snapshotSize", lastKnownThreadInfoSnapshot.size()),
-                SafeArg.of(
-                        "snapshotIntervalMillis",
-                        threadInfoConfiguration.current().threadInfoSnapshotIntervalMillis()));
-        scheduleRun();
-    }
-
-    @VisibleForTesting
-    synchronized boolean isRunning() {
-        return isRunning;
-    }
-
-    private synchronized void scheduleRun() {
-        if (isClosed()) {
-            return;
-        }
-        if (threadInfoConfiguration.current().recordThreadInfo()) {
-            if (!isRunning) {
-                log.info(
-                        "Starting to take lock thread info snapshots in the background",
-                        SafeArg.of(
-                                "snapshotIntervalMillis",
-                                threadInfoConfiguration.current().threadInfoSnapshotIntervalMillis()));
-                isRunning = true;
-            }
-            scheduledExecutorService.schedule(
-                    this::run,
-                    threadInfoConfiguration.current().threadInfoSnapshotIntervalMillis(),
-                    TimeUnit.MILLISECONDS);
-        } else {
-            log.info("Stopping background lock thread info snapshots");
-            isRunning = false;
-        }
+        this.backgroundTask = AdjustableBackgroundTask.create(
+                threadInfoConfiguration.map(DebugThreadInfoConfiguration::recordThreadInfo),
+                threadInfoConfiguration.map(config ->
+                        SimpleTimeDuration.of(config.threadInfoSnapshotIntervalMillis(), TimeUnit.MILLISECONDS)),
+                this::takeSnapshot);
     }
 
     @VisibleForTesting
@@ -154,16 +98,17 @@ void takeSnapshot() {
                 })
                 // Although a lock can be held by multiple clients/threads, we only remember one to save space
                 .collect(Collectors.toMap(Entry::getKey, Entry::getValue, (existing, replacement) -> existing));
-    }
 
-    @VisibleForTesting
-    boolean isClosed() {
-        return scheduledExecutorService.isShutdown();
+        log.info(
+                "Took thread info snapshot of {} locks. Next snapshot due in {}ms",
+                SafeArg.of("snapshotSize", lastKnownThreadInfoSnapshot.size()),
+                SafeArg.of(
+                        "snapshotIntervalMillis",
+                        threadInfoConfiguration.current().threadInfoSnapshotIntervalMillis()));
     }
 
     @Override
-    public synchronized void close() {
-        scheduledExecutorService.shutdown();
-        disposable.ifPresent(Disposable::dispose);
+    public void close() {
+        backgroundTask.close();
     }
 }u}(jq  (f42bb920684a5b29b464c54ce94fefa14805cda5jr  Plock-impl/src/test/java/com/palantir/lock/impl/AdjustableBackgroundTaskTest.javajr  addedjr  Kbjr  K jr  Kbj r  https://github.com/palantir/atlasdb/blob/fae383805fe9e172faf790d85a518f68671bbcb0/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaj"r  https://github.com/palantir/atlasdb/raw/fae383805fe9e172faf790d85a518f68671bbcb0/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaj$r  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.java?ref=fae383805fe9e172faf790d85a518f68671bbcb0j&r  X
  @@ -0,0 +1,98 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.lock.SimpleTimeDuration;
+import com.palantir.lock.TimeDuration;
+import com.palantir.refreshable.Refreshable;
+import com.palantir.refreshable.SettableRefreshable;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicInteger;
+import org.jmock.lib.concurrent.DeterministicScheduler;
+import org.junit.Test;
+
+public class AdjustableBackgroundTaskTest {
+
+    static class NeverShutdownDeterministicScheduler extends DeterministicScheduler {
+        @Override
+        public boolean isShutdown() {
+            return false;
+        }
+    }
+
+    /** We have to ensure all of our delays are higher than
+     * {@link com.palantir.lock.impl.AdjustableBackgroundTask#MINIMUM_DELAY_IF_NOT_RUNNING}
+     * so it doesn't interfere.
+     */
+    private static final TimeDuration DEFAULT_DELAY = SimpleTimeDuration.of(10, TimeUnit.SECONDS);
+
+    private final AtomicInteger field = new AtomicInteger(0);
+
+    private final SettableRefreshable<Boolean> shouldRun = Refreshable.create(false);
+
+    private final SettableRefreshable<TimeDuration> interval = Refreshable.create(DEFAULT_DELAY);
+
+    private final NeverShutdownDeterministicScheduler scheduledExecutor = new NeverShutdownDeterministicScheduler();
+
+    private final AdjustableBackgroundTask adjustableBackgroundTask =
+            new AdjustableBackgroundTask(shouldRun, interval, field::incrementAndGet, scheduledExecutor);
+
+    @Test
+    public void doesNotRunTaskDuringConstruction() {
+        assertThat(field.get()).isEqualTo(0);
+    }
+
+    @Test
+    public void doesNotRunTaskByDefault() {
+        int before = field.get();
+        tick(DEFAULT_DELAY);
+        assertThat(field.get()).isEqualTo(before);
+    }
+
+    @Test
+    public void canBeEnabledDisabledAndReEnabled() {
+        int before = field.get();
+        shouldRun.update(true);
+        tick(DEFAULT_DELAY);
+        int after = field.get();
+        assertThat(after).isEqualTo(before + 1);
+
+        shouldRun.update(false);
+        tick(DEFAULT_DELAY);
+        assertThat(field.get()).isEqualTo(after);
+
+        shouldRun.update(true);
+        tick(DEFAULT_DELAY);
+        assertThat(field.get()).isEqualTo(after + 1);
+    }
+
+    @Test
+    public void canAdjustDuration() {
+        int before = field.get();
+        TimeDuration newInterval = SimpleTimeDuration.of(42, TimeUnit.SECONDS);
+        interval.update(newInterval);
+        shouldRun.update(true);
+        tick(SimpleTimeDuration.of(10 * newInterval.toMillis(), TimeUnit.MILLISECONDS));
+        assertThat(field.get()).isEqualTo(before + 10);
+    }
+
+    private void tick(TimeDuration duration) {
+        scheduledExecutor.tick(duration.toMillis(), TimeUnit.MILLISECONDS);
+    }
+}u}(jq  (0ff14400f99f0f97c0494b5db923ebce2e42263djr  Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javajr  modifiedjr  Kjr  KZjr  Kej r  https://github.com/palantir/atlasdb/blob/fae383805fe9e172faf790d85a518f68671bbcb0/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj"r  https://github.com/palantir/atlasdb/raw/fae383805fe9e172faf790d85a518f68671bbcb0/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj$r  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=fae383805fe9e172faf790d85a518f68671bbcb0j&r  X  @@ -21,7 +21,6 @@
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.common.streams.KeyedStream;
-import com.palantir.lock.DebugThreadInfoConfiguration;
 import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
 import com.palantir.lock.LockClient;
 import com.palantir.lock.LockClientAndThread;
@@ -33,8 +32,6 @@
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.StringLockDescriptor;
 import com.palantir.logsafe.UnsafeArg;
-import com.palantir.refreshable.Refreshable;
-import com.palantir.refreshable.SettableRefreshable;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
@@ -45,7 +42,7 @@
 import java.util.concurrent.TimeUnit;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
-import org.awaitility.Awaitility;
+import org.junit.After;
 import org.junit.Test;
 
 public class ThreadInfoLockServiceImplTest {
@@ -275,31 +272,6 @@ public void refreshDoesNotChangeSnapshot() throws InterruptedException {
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
     }
 
-    @Test
-    public void backgroundSnapshotRunnerWorks() throws InterruptedException {
-        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
-                .isStandaloneServer(false)
-                .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
-                        .recordThreadInfo(true)
-                        .threadInfoSnapshotIntervalMillis(50L)
-                        .build())
-                .build());
-        LockThreadInfoSnapshotManager backgroundSnapshotRunner = lockServiceWithBackgroundRunner.getSnapshotManager();
-
-        LockResponse response = lockServiceWithBackgroundRunner.lockWithFullLockResponse(
-                LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
-
-        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
-                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
-                .containsExactly(Map.entry(TEST_LOCK_1, ANONYMOUS_TEST_THREAD_1)));
-
-        lockServiceWithBackgroundRunner.unlock(response.getToken());
-
-        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
-                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
-                .doesNotContainKey(TEST_LOCK_1));
-    }
-
     @Test
     public void logArgIsUnsafeAndContainsEmptyOptionalIfNotRecordingThreadInfo() throws InterruptedException {
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
@@ -310,11 +282,10 @@ public void logArgIsUnsafeAndContainsEmptyOptionalIfNotRecordingThreadInfo() thr
 
     @Test
     public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() throws InterruptedException {
-        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
+        LockServiceImpl lockServiceWithRecordingEnabled = LockServiceImpl.create(LockServerOptions.builder()
                 .isStandaloneServer(false)
                 .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
                         .recordThreadInfo(true)
-                        .threadInfoSnapshotIntervalMillis(50L)
                         .build())
                 .build());
         LockRequest lockRequest2 = LockRequest.builder(
@@ -323,75 +294,25 @@ public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() t
                 .withCreatingThreadName(TEST_THREAD_2)
                 .build();
 
-        lockServiceWithBackgroundRunner.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
-        lockServiceWithBackgroundRunner.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+        lockServiceWithRecordingEnabled.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockServiceWithRecordingEnabled.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+
+        lockServiceWithRecordingEnabled.getSnapshotManager().takeSnapshot();
 
-        Awaitility.waitAtMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(lockServiceWithBackgroundRunner
+        assertThat(lockServiceWithRecordingEnabled
                         .getSnapshotManager()
                         .getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
                 .isEqualTo(UnsafeArg.of(
                         "presumedClientThreadHoldersIfEnabled",
                         // Snapshot should be restricted to TEST_LOCK_1
-                        Optional.of(
-                                Map.of(TEST_LOCK_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1))))));
-    }
-
-    @Test
-    public void willRestartWhenConfigIsUpdated() throws InterruptedException {
-        SettableRefreshable<DebugThreadInfoConfiguration> refreshableThreadInfoConfiguration =
-                Refreshable.create(ImmutableDebugThreadInfoConfiguration.builder()
-                        .recordThreadInfo(true)
-                        .threadInfoSnapshotIntervalMillis(50L)
-                        .build());
-        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(
-                refreshableThreadInfoConfiguration.map(threadInfoConfig -> LockServerOptions.builder()
-                        .isStandaloneServer(false)
-                        .threadInfoConfiguration(threadInfoConfig)
-                        .build()),
-                executor);
-        LockThreadInfoSnapshotManager backgroundSnapshotRunner = lockServiceWithBackgroundRunner.getSnapshotManager();
-
-        LockResponse lockResponse = lockServiceWithBackgroundRunner.lockWithFullLockResponse(
-                LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
-
-        // background task is running and should take a snapshot
-        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
-                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
-                .containsExactly(Map.entry(TEST_LOCK_1, ANONYMOUS_TEST_THREAD_1)));
-
-        // turn off background task
-        refreshableThreadInfoConfiguration.update(ImmutableDebugThreadInfoConfiguration.builder()
-                .recordThreadInfo(false)
-                .threadInfoSnapshotIntervalMillis(50L)
-                .build());
-
-        Awaitility.await().until(() -> !backgroundSnapshotRunner.isRunning());
+                        Optional.of(Map.of(TEST_LOCK_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1)))));
 
-        lockServiceWithBackgroundRunner.unlock(lockResponse.getToken());
-
-        // If background task was still running, it would take a snapshot at this moment
-        Awaitility.await().atLeast(200, TimeUnit.MILLISECONDS);
-
-        // ...but we expect it to do nothing
-        assertThat(lockServiceWithBackgroundRunner.getSnapshotManager().getLastKnownThreadInfoSnapshot())
-                .containsExactly(Map.entry(TEST_LOCK_1, ANONYMOUS_TEST_THREAD_1));
-
-        // turn background task back on
-        refreshableThreadInfoConfiguration.update(ImmutableDebugThreadInfoConfiguration.builder()
-                .recordThreadInfo(true)
-                .threadInfoSnapshotIntervalMillis(50L)
-                .build());
-
-        // Now the unlock request should be reflected in the snapshot
-        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
-                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
-                .doesNotContainKey(TEST_LOCK_1));
+        lockServiceWithRecordingEnabled.close();
     }
 
-    @Test
-    public void closesWithLockService() {
+    @After
+    public void tearDown() {
         lockService.close();
-        assertThat(lockService.getSnapshotManager().isClosed()).isTrue();
     }
 
     private void forceSnapshot() {ueu(f48fd14b39f734c8018bf31503926cc5d051d1fc}(sha(f48fd14b39f734c8018bf31503926cc5d051d1fcnode_idEC_kwDOAjP5fdoAKGY0OGZkMTRiMzlmNzM0YzgwMThiZjMxNTAzOTI2Y2M1ZDA1MWQxZmMcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-25T13:12:34Zu	committer}(jRr  Lucas MeirelesjTr  meireles31@msn.comjVr  2023-07-25T13:12:34Zumessage!Extract validor to separate classtree}(jJr  (0c9ef056a17bf879559ea3d26e32883809d78a77url`https://api.github.com/repos/palantir/atlasdb/git/trees/0c9ef056a17bf879559ea3d26e32883809d78a77ujbr  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f48fd14b39f734c8018bf31503926cc5d051d1fc;     
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS/ykIACgkQJd22kJ7J
GiwAGQgAo0U7B7+OwK/vBoo0sBrorP8GFpwlQimlJ/GuAWJbypunS8YjbRtmmqE6
x4Q2JxsS6Jc5SsaQyVSaXl4tnrsL/TgrPfYuA9W5cu12NO87NHrAYBfRY3VTOpqs
75XKpyAgLD1hhRyGueTtou0NlVAGYWJoxZEvIO7QyORjgslNM1MRsRHgBUtg/RgI
VzPqgQsGA4QRm2g+MgsBzdi6JGELypncbavx2i840X38Rhy2gPR0cDW2ftxSgh8Y
2+FBgPSh84APxyUzLp18E6GQYHeMhk/IcyeKyeKBRFkTnAdBvrOBz7BvJwcarY9o
CsyI5rlRA6HIH6tElIFv6P1aHLUCPw==
=nGb0
-----END PGP SIGNATURE-----payloadtree 0c9ef056a17bf879559ea3d26e32883809d78a77
parent e8c08c730beff2a6a8c739a74f7d5bca8e353d94
author Lucas Meireles <meireles31@msn.com> 1690290754 +0100
committer Lucas Meireles <meireles31@msn.com> 1690290754 +0100

Extract validor to separate class
uujbr  ^https://api.github.com/repos/palantir/atlasdb/commits/f48fd14b39f734c8018bf31503926cc5d051d1fchtml_urlShttps://github.com/palantir/atlasdb/commit/f48fd14b39f734c8018bf31503926cc5d051d1fccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f48fd14b39f734c8018bf31503926cc5d051d1fc/commentsjPr  }(loginLucasIMEidJg jLr  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jbr  %https://api.github.com/users/LucasIMEjpr  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujXr  }(jur  LucasIMEjwr  Jg jLr  MDQ6VXNlcjY3ODczMTE=jyr  3https://avatars.githubusercontent.com/u/6787311?v=4j{r  h5jbr  %https://api.github.com/users/LucasIMEjpr  https://github.com/LucasIMEj~r  /https://api.github.com/users/LucasIME/followersjr  <https://api.github.com/users/LucasIME/following{/other_user}jr  5https://api.github.com/users/LucasIME/gists{/gist_id}jr  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jr  3https://api.github.com/users/LucasIME/subscriptionsjr  *https://api.github.com/users/LucasIME/orgsjr  +https://api.github.com/users/LucasIME/reposjr  6https://api.github.com/users/LucasIME/events{/privacy}jr  5https://api.github.com/users/LucasIME/received_eventsjr  Userjr  uparents]}(jJr  (e8c08c730beff2a6a8c739a74f7d5bca8e353d94jbr  ^https://api.github.com/repos/palantir/atlasdb/commits/e8c08c730beff2a6a8c739a74f7d5bca8e353d94jpr  Shttps://github.com/palantir/atlasdb/commit/e8c08c730beff2a6a8c739a74f7d5bca8e353d94uastats}(totalK_	additionsKM	deletionsKufiles](}(jJr  (337e095e58291eff12f03e8dc603aadc4b63051cfilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedjr  Kjr  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/f48fd14b39f734c8018bf31503926cc5d051d1fc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f48fd14b39f734c8018bf31503926cc5d051d1fc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=f48fd14b39f734c8018bf31503926cc5d051d1fcpatchXn
  @@ -101,6 +101,7 @@
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
+import com.palantir.atlasdb.transaction.impl.expectations.ExpectedCellsContainingValueValidator;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueServiceImpl;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
@@ -922,10 +923,9 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
     public Map<Cell, byte[]> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {
         return getCache().getWithCachedRef(tableRef, cells, cacheLookupResult -> {
-            long cachedCellsWithNonEmptyValue = cacheLookupResult.cacheHits().values().stream()
-                    .filter(value -> value.value().isPresent()
-                            && !Arrays.equals(value.value().get(), PtBytes.EMPTY_BYTE_ARRAY))
-                    .count();
+            long cachedCellsWithNonEmptyValue =
+                    ExpectedCellsContainingValueValidator.validateCacheAndGetNonEmptyValuesCount(
+                            expectedNumberOfPresentCells, cacheLookupResult.cacheHits());
             long numberOfCellsExpectingValuePostCache = expectedNumberOfPresentCells - cachedCellsWithNonEmptyValue;
 
             return getInternal(
@@ -1002,7 +1002,8 @@ ListenableFuture<Map<Cell, byte[]>> getInternal(
                                 SafeArg.of("durationMillis", getMillis));
                     }
 
-                    validateFetchedLessOrEqualToExpected(expectedNumberOfPresentCellsToFetch, fromKeyValueService);
+                    ExpectedCellsContainingValueValidator.validateFetchedLessOrEqualToExpected(
+                            expectedNumberOfPresentCellsToFetch, fromKeyValueService);
                     boolean allPossibleCellsReadAndPresent =
                             fromKeyValueService.size() == expectedNumberOfPresentCellsToFetch;
                     validatePreCommitRequirementsOnReadIfNecessary(
@@ -1012,19 +1013,6 @@ ListenableFuture<Map<Cell, byte[]>> getInternal(
                 MoreExecutors.directExecutor());
     }
 
-    private static void validateFetchedLessOrEqualToExpected(
-            long expectedNumberOfPresentCellsToFetch, Map<Cell, byte[]> fromKeyValueService) {
-        if (fromKeyValueService.size() > expectedNumberOfPresentCellsToFetch) {
-            throw new SafeIllegalStateException(
-                    "KeyValueService returned more results than Get expected. This means there is a bug"
-                            + "either in the SnapshotTransaction implementation or in how the client is "
-                            + "using such method.",
-                    SafeArg.of("expectedNumberOfCells", expectedNumberOfPresentCellsToFetch),
-                    SafeArg.of("numberOfCellsRetrieved", fromKeyValueService.size()),
-                    UnsafeArg.of("retrievedCells", fromKeyValueService));
-        }
-    }
-
     @Override
     public Map<Cell, byte[]> getIgnoringLocalWrites(TableReference tableRef, Set<Cell> cells) {
         checkGetPreconditions(tableRef);u}(jJr  (e634c52b8115d266f95e8102dc9c58fdf2435684jr  atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/expectations/ExpectedCellsContainingValueValidator.javajr  addedjr  KGjr  K jr  KGjr  https://github.com/palantir/atlasdb/blob/f48fd14b39f734c8018bf31503926cc5d051d1fc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FExpectedCellsContainingValueValidator.javajr  https://github.com/palantir/atlasdb/raw/f48fd14b39f734c8018bf31503926cc5d051d1fc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FExpectedCellsContainingValueValidator.javajr  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FExpectedCellsContainingValueValidator.java?ref=f48fd14b39f734c8018bf31503926cc5d051d1fcjr  X  @@ -0,0 +1,71 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl.expectations;
+
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.keyvalue.api.cache.CacheValue;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.Arrays;
+import java.util.Map;
+import one.util.streamex.EntryStream;
+
+public final class ExpectedCellsContainingValueValidator {
+
+    private ExpectedCellsContainingValueValidator() {}
+
+    public static long validateCacheAndGetNonEmptyValuesCount(
+            long expectedNumberOfPresentCellsToFetch, Map<Cell, CacheValue> cachedLookup) {
+        Map<Cell, byte[]> cachedCellsWithNonEmptyValue = EntryStream.of(cachedLookup)
+                .filterValues(value -> value.value().isPresent()
+                        && !Arrays.equals(value.value().get(), PtBytes.EMPTY_BYTE_ARRAY))
+                .mapValues(value -> value.value().get())
+                .toMap();
+
+        validateFetchedLessOrEqualToExpected(expectedNumberOfPresentCellsToFetch, cachedCellsWithNonEmptyValue);
+
+        return cachedCellsWithNonEmptyValue.size();
+    }
+
+    public static void validateFetchedLessOrEqualToExpected(
+            long expectedNumberOfPresentCellsToFetch, Map<Cell, byte[]> fetchedCells) {
+        if (fetchedCells.size() > expectedNumberOfPresentCellsToFetch) {
+            throw new MoreCellsPresentThanExpectedException(fetchedCells, expectedNumberOfPresentCellsToFetch);
+        }
+    }
+
+    public static class MoreCellsPresentThanExpectedException extends IllegalStateException {
+        private final Map<Cell, byte[]> fetchedCells;
+
+        public MoreCellsPresentThanExpectedException(Map<Cell, byte[]> fetchedCells, long expectedNumberOfCells) {
+            super(new SafeIllegalStateException(
+                    "KeyValueService returned more results than Get expected. This means there is a bug"
+                            + "either in the SnapshotTransaction implementation or in how the client is "
+                            + "using such method.",
+                    SafeArg.of("expectedNumberOfCells", expectedNumberOfCells),
+                    SafeArg.of("numberOfCellsRetrieved", fetchedCells.size()),
+                    UnsafeArg.of("retrievedCells", fetchedCells)));
+            this.fetchedCells = fetchedCells;
+        }
+
+        public Map<Cell, byte[]> getFetchedCells() {
+            return fetchedCells;
+        }
+    }
+}ueu(3d35f51937485b2d7f35647f112307eaae750c8c}(sha(3d35f51937485b2d7f35647f112307eaae750c8cnode_idEC_kwDOAjP5fdoAKDNkMzVmNTE5Mzc0ODViMmQ3ZjM1NjQ3ZjExMjMwN2VhYWU3NTBjOGMcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-16T12:04:44Zu	committer}(jr  
Ahmed Alouanejr  aalouane@palantir.comjr  2023-05-16T12:04:44ZumessageJMerge branch 'tlmetexxxxx' of github.com:palantir/atlasdb into tlmetexxxxxtree}(jr  (a18ca3c47d19bb53eaf4a075537d45f4ac27b690url`https://api.github.com/repos/palantir/atlasdb/git/trees/a18ca3c47d19bb53eaf4a075537d45f4ac27b690ujr  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3d35f51937485b2d7f35647f112307eaae750c8c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRjcWQACgkQPlMHVIT1
yhpZ0Af+IZ47gj+ZOsI2YJwH+CKwcG/lacMXKKIS3j/3yqp6i9q6GpsbZe9TIOhy
gT/RvIpuHvMjV2TzqltYJBrjhWBxmeHTWnQadYS/Hk/aUGeRC/1lAKyA9n3gzJtP
IYxOp0c+FUK3n014lPgHu3ThRnqUzg8utaNWuBK0aetX/Cv2FqrC/tqvoskL45LH
a7BKaD3OTpsA/ahcQZYRKwm9/PCvSTHy0M4PslAL1bbEAUCiRgli+DkbvVnH3jcK
ZHlHJErucYXqFvdib7io341b7+adKFaKrxt+xwDt41605c42biPT3+NaL4gQ9Oj0
mh16nGzQCyc07gFN6qVoqELbPKn//w==
=wSbK
-----END PGP SIGNATURE-----payloadXY  tree a18ca3c47d19bb53eaf4a075537d45f4ac27b690
parent baa6f7df112edb5789cc9bbc688e1e6fe3d80fde
parent 1338241f6bb85070f803671085f848ccb3cd5b67
author Ahmed Alouane <aalouane@palantir.com> 1684238684 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684238684 +0100

Merge branch 'tlmetexxxxx' of github.com:palantir/atlasdb into tlmetexxxxx
uujr  ^https://api.github.com/repos/palantir/atlasdb/commits/3d35f51937485b2d7f35647f112307eaae750c8chtml_urlShttps://github.com/palantir/atlasdb/commit/3d35f51937485b2d7f35647f112307eaae750c8ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3d35f51937485b2d7f35647f112307eaae750c8c/commentsjr  }(loginergo14idJjr  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jr  #https://api.github.com/users/ergo14jr  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujr  }(jr  ergo14jr  Jjr  MDQ6VXNlcjMwOTAzNzM2jr  4https://avatars.githubusercontent.com/u/30903736?v=4jr  h5jr  #https://api.github.com/users/ergo14jr  https://github.com/ergo14jr  -https://api.github.com/users/ergo14/followersjr  :https://api.github.com/users/ergo14/following{/other_user}js  3https://api.github.com/users/ergo14/gists{/gist_id}js  :https://api.github.com/users/ergo14/starred{/owner}{/repo}js  1https://api.github.com/users/ergo14/subscriptionsjs  (https://api.github.com/users/ergo14/orgsj	s  )https://api.github.com/users/ergo14/reposjs  4https://api.github.com/users/ergo14/events{/privacy}j
s  3https://api.github.com/users/ergo14/received_eventsjs  Userjs  uparents](}(jr  (baa6f7df112edb5789cc9bbc688e1e6fe3d80fdejr  ^https://api.github.com/repos/palantir/atlasdb/commits/baa6f7df112edb5789cc9bbc688e1e6fe3d80fdejr  Shttps://github.com/palantir/atlasdb/commit/baa6f7df112edb5789cc9bbc688e1e6fe3d80fdeu}(jr  (1338241f6bb85070f803671085f848ccb3cd5b67jr  ^https://api.github.com/repos/palantir/atlasdb/commits/1338241f6bb85070f803671085f848ccb3cd5b67jr  Shttps://github.com/palantir/atlasdb/commit/1338241f6bb85070f803671085f848ccb3cd5b67uestats}(totalK 	additionsK 	deletionsK ufiles]u(a42131ee33a515014880678858e8d2769c4968d0}(sha(a42131ee33a515014880678858e8d2769c4968d0node_idEC_kwDOAjP5fdoAKGE0MjEzMWVlMzNhNTE1MDE0ODgwNjc4ODU4ZThkMjc2OWM0OTY4ZDAcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-03-21T19:55:00Zu	committer}(j=s  Jeremy Kongj?s  jkong@palantir.comjAs  2023-03-21T19:55:00Zumessageabusive-telemetrytree}(j5s  (8e5e5b4a68cbac2ddc41a293da03efe02ad7b8d0url`https://api.github.com/repos/palantir/atlasdb/git/trees/8e5e5b4a68cbac2ddc41a293da03efe02ad7b8d0ujMs  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a42131ee33a515014880678858e8d2769c4968d0
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQaC5QACgkQTLdFKain
zjwPQAgAqyMchdg0GF47T+3tCSDGb/yj3udlHwP006ml/a3+S9SwuFMFehwdmoZm
koLpG8BAsnXJL2QrZBgriEWv786LMf6gNs6sY6kTovEz5MSeEvs3rRzfYzCGLakk
ge/r1u+oqgF6Eir9GYpzMIUIWwzaA8zRuNuJZByTAdQOiuWS2010U3whZKgpXjTi
nl/GhQMNYJu83LbGMGcc7pPPIDuRSAdGPtKPRrADsUKxEkweQNd2deUT08RZMjlh
cLHneLqmT3+QbSMTiEuFg0L3VpYpB9s1CNiL9/brifjc1JAbroY/7YboIi3JopAT
RMqpUgE1/iftUohSVfydZ5Rsdaba/A==
=TUtE
-----END PGP SIGNATURE-----payloadtree 8e5e5b4a68cbac2ddc41a293da03efe02ad7b8d0
parent 0cd12b5e875be6f1adc25da6049d811d4ef06710
author Jeremy Kong <jkong@palantir.com> 1679428500 +0000
committer Jeremy Kong <jkong@palantir.com> 1679428500 +0000

abusive-telemetry
uujMs  ^https://api.github.com/repos/palantir/atlasdb/commits/a42131ee33a515014880678858e8d2769c4968d0html_urlShttps://github.com/palantir/atlasdb/commit/a42131ee33a515014880678858e8d2769c4968d0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a42131ee33a515014880678858e8d2769c4968d0/commentsj;s  }(login
jeremyk-91idJZ j7s  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jMs  'https://api.github.com/users/jeremyk-91j[s  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujCs  }(j`s  
jeremyk-91jbs  JZ j7s  MDQ6VXNlcjU5NTU1MTA=jds  3https://avatars.githubusercontent.com/u/5955510?v=4jfs  h5jMs  'https://api.github.com/users/jeremyk-91j[s  https://github.com/jeremyk-91jis  1https://api.github.com/users/jeremyk-91/followersjks  >https://api.github.com/users/jeremyk-91/following{/other_user}jms  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jos  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jqs  5https://api.github.com/users/jeremyk-91/subscriptionsjss  ,https://api.github.com/users/jeremyk-91/orgsjus  -https://api.github.com/users/jeremyk-91/reposjws  8https://api.github.com/users/jeremyk-91/events{/privacy}jys  7https://api.github.com/users/jeremyk-91/received_eventsj{s  Userj}s  uparents]}(j5s  (0cd12b5e875be6f1adc25da6049d811d4ef06710jMs  ^https://api.github.com/repos/palantir/atlasdb/commits/0cd12b5e875be6f1adc25da6049d811d4ef06710j[s  Shttps://github.com/palantir/atlasdb/commit/0cd12b5e875be6f1adc25da6049d811d4ef06710uastats}(totalK	additionsK	deletionsK ufiles](}(j5s  (72666dbda24f20a8981e7c7a1c4388a9ed3577e5filenamedatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javastatusmodifiedjs  Kjs  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/a42131ee33a515014880678858e8d2769c4968d0/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a42131ee33a515014880678858e8d2769c4968d0/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=a42131ee33a515014880678858e8d2769c4968d0patchX  @@ -243,7 +243,9 @@ private CassandraClientPoolImpl(
     }
 
     private void tryInitialize() {
+        log.info("<1>");
         cassandra.cacheInitialCassandraHosts();
+        log.info("<2>");
 
         refreshPoolFuture = refreshDaemon.scheduleWithFixedDelay(
                 () -> {
@@ -260,12 +262,18 @@ private void tryInitialize() {
                 config.poolRefreshIntervalSeconds(),
                 TimeUnit.SECONDS);
 
+        log.info("<3>");
         // for testability, mock/spy are bad at mockability of things called in constructors
         if (startupChecks == StartupChecks.RUN) {
             runOneTimeStartupChecks();
         }
+        log.info("<4>");
+
         refreshPool(); // ensure we've initialized before returning
+        log.info("<5>");
+
         metrics.registerAggregateMetrics(blacklist::size);
+        log.info("<6>");
     }
 
     private void cleanUpOnInitFailure() {
@@ -328,14 +336,17 @@ Set<CassandraServer> getLocalHosts() {
     }
 
     private synchronized void refreshPool() {
+        log.info("<4.1>");
         blacklist.checkAndUpdate(cassandra.getPools());
 
         if (config.autoRefreshNodes()) {
+            log.info("<4.2>");
             setServersInPoolTo(cassandra.refreshTokenRangesAndGetServers());
         } else {
             setServersInPoolTo(cassandra.getCurrentServerListFromConfig());
         }
 
+        log.info("<4.3>");
         cassandra.debugLogStateOfPool();
     }
 
@@ -517,6 +528,7 @@ void runOneTimeStartupChecks() {
         }
 
         if (atLeastOneHostResponded && aliveButInvalidPartitionerNodes.size() == 0) {
+            log.info("Performed routine startup checks. All seemed good.");
             return;
         } else {
             throw new RuntimeException(errorBuilderForEntireCluster.toString());u}(j5s  (a41a9fe1e7f479fe106386557a5ff1bf291797aajs  Ratlasdb-commons/src/main/java/com/palantir/async/initializer/AsyncInitializer.javajs  modifiedjs  Kjs  K js  Kjs  https://github.com/palantir/atlasdb/blob/a42131ee33a515014880678858e8d2769c4968d0/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.javajs  https://github.com/palantir/atlasdb/raw/a42131ee33a515014880678858e8d2769c4968d0/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.javajs  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.java?ref=a42131ee33a515014880678858e8d2769c4968d0js  X  @@ -60,11 +60,19 @@ public final void initialize(boolean initializeAsync) {
 
     private void tryInitializationLoop() {
         if (state.isCancelled()) {
+            log.info("Shutting down executor associated with asynchronous initialisation, as it was cancelled",
+                    SafeArg.of("className", getInitializingClassName()),
+                    SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
+                    SafeArg.of("durationbeforeCancellation", System.currentTimeMillis() - initializationStartTime));
             singleThreadedExecutor.shutdown();
             return;
         }
 
         try {
+            log.info("Attempting to initialize {} on the attempt {}. The amount of time elapsed since we began was {} ms.",
+                    SafeArg.of("className", getInitializingClassName()),
+                    SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
+                    SafeArg.of("initializationDuration", System.currentTimeMillis() - initializationStartTime));
             tryInitializeInternal();
             log.info(
                     "Initialized {} on the attempt {} in {} milliseconds",ueu(9ce0a7c20d102a5dde895970471fa6f8708ff5e6}(sha(9ce0a7c20d102a5dde895970471fa6f8708ff5e6node_idEC_kwDOAjP5fdoAKDljZTBhN2MyMGQxMDJhNWRkZTg5NTk3MDQ3MWZhNmY4NzA4ZmY1ZTYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T23:43:09Zu	committer}(js  
Ahmed Alouanejs  aalouane@palantir.comjs  2023-05-15T23:43:09Zumessagewow44tree}(js  (bea7c72f62c435938a630e020c1d60a07a01edc1url`https://api.github.com/repos/palantir/atlasdb/git/trees/bea7c72f62c435938a630e020c1d60a07a01edc1ujs  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9ce0a7c20d102a5dde895970471fa6f8708ff5e6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiw40ACgkQPlMHVIT1
yhoVcAgAjOXw7Vf4rrZT/pjA9O4vI57Q4DfvT1788mC5jTDgKkOsEB0G9BNizmHg
ip4WJEE2wxjmDRGjICtc4sKQdNa9pJj2gNwM7oLeD+5RSC3C4ULCzHFo5AVzXAxD
w/0Ie9LQdos2G0KU8ekY2hLKmiQKXOZL6Yihf7f/Ty+alQ8rR44VVO/Evjse0XuI
AEI/9UtrddI5iWsuDuF2UFkOdvRogzmhHA14y2WqXVfgVyUAXJjbO8+3e3wrakgH
zk+zIeR+LOj3WyWIXGNIzrR6v2vbA7SPvqf7I57AJ86pwRL1L3yp7633M7ufw9TT
fUp2jlTRbLZhgCEnLYJnijoDZfntLQ==
=8Xvc
-----END PGP SIGNATURE-----payloadtree bea7c72f62c435938a630e020c1d60a07a01edc1
parent 8754b06666adcc5485cbbb1e031f9ce76d4db879
author Ahmed Alouane <aalouane@palantir.com> 1684194189 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684194189 +0100

wow44
uujs  ^https://api.github.com/repos/palantir/atlasdb/commits/9ce0a7c20d102a5dde895970471fa6f8708ff5e6html_urlShttps://github.com/palantir/atlasdb/commit/9ce0a7c20d102a5dde895970471fa6f8708ff5e6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9ce0a7c20d102a5dde895970471fa6f8708ff5e6/commentsjs  }(loginergo14idJjs  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5js  #https://api.github.com/users/ergo14js  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujs  }(js  ergo14js  Jjs  MDQ6VXNlcjMwOTAzNzM2js  4https://avatars.githubusercontent.com/u/30903736?v=4js  h5js  #https://api.github.com/users/ergo14js  https://github.com/ergo14js  -https://api.github.com/users/ergo14/followersjs  :https://api.github.com/users/ergo14/following{/other_user}js  3https://api.github.com/users/ergo14/gists{/gist_id}js  :https://api.github.com/users/ergo14/starred{/owner}{/repo}js  1https://api.github.com/users/ergo14/subscriptionsjs  (https://api.github.com/users/ergo14/orgsjs  )https://api.github.com/users/ergo14/reposjs  4https://api.github.com/users/ergo14/events{/privacy}js  3https://api.github.com/users/ergo14/received_eventsjs  Userjs  uparents]}(js  (8754b06666adcc5485cbbb1e031f9ce76d4db879js  ^https://api.github.com/repos/palantir/atlasdb/commits/8754b06666adcc5485cbbb1e031f9ce76d4db879js  Shttps://github.com/palantir/atlasdb/commit/8754b06666adcc5485cbbb1e031f9ce76d4db879uastats}(totalK	additionsK	deletionsKufiles]}(js  (a4926f48449b3a897b5a777dbb919a750fce46d4filename.circleci/config.ymlstatusmodifiedjt  Kjt  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/9ce0a7c20d102a5dde895970471fa6f8708ff5e6/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/9ce0a7c20d102a5dde895970471fa6f8708ff5e6/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=9ce0a7c20d102a5dde895970471fa6f8708ff5e6patchX  @@ -105,7 +105,7 @@ jobs:
   deploy:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: 2xlarge+
+    resource_class: xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
@@ -141,32 +141,6 @@ workflows:
           filters:
             tags:
               only: /.*/
-      - test-suite:
-          requires: [build]
-          matrix:
-            alias: test-no-tl
-            parameters:
-              # intentionally excluding 12 (TimeLock migration ETE test) from this collection
-              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13]
-          filters:
-            tags:
-              only: /.*/
-      - test-suite:
-          requires: [build]
-          matrix:
-            alias: test-tl
-            parameters:
-              suite: [12]
-          filters:
-            branches:
-              only: /(tlmete.*|develop)/
-            tags:
-              only: /.*/
-      - test:
-          requires: [test-tl, test-no-tl]
-          filters:
-            tags:
-              only: /.*/
       - trial-publish:
           requires: [build]
           filters:uau(eb224fd7ee39ccd076d56d506423b0bb527d5ca6}(sha(eb224fd7ee39ccd076d56d506423b0bb527d5ca6node_idEC_kwDOAjP5fdoAKGViMjI0ZmQ3ZWUzOWNjZDA3NmQ1NmQ1MDY0MjNiMGJiNTI3ZDVjYTYcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-07-19T09:58:47Zu	committer}(j3t  
svc-changelogj5t  svc-changelog@palantir.comj7t  2023-07-19T09:58:47ZumessageAdd generated changelog entriestree}(j+t  (2129d9be87f4ee245cc0c97f3a317462ada033c5url`https://api.github.com/repos/palantir/atlasdb/git/trees/2129d9be87f4ee245cc0c97f3a317462ada033c5ujCt  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/eb224fd7ee39ccd076d56d506423b0bb527d5ca6
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmS3s9cJEHYaJX37fAFQAAC8hgEAsfHOny76hSYkZP3hl+ILpZuE
abautnphdNNUGTwuSmYBAOXwTlu6qOlCZ1cbyyG3xxCzsfmMEf4q/nSk/s8zcvlN
=9O8g
-----END PGP SIGNATURE-----payloadX  tree 2129d9be87f4ee245cc0c97f3a317462ada033c5
parent f7b40432ba59e00466550ae9a8e8b6ecf5122a3b
author svc-changelog <svc-changelog@palantir.com> 1689760727 +0000
committer svc-changelog <svc-changelog@palantir.com> 1689760727 +0000

Add generated changelog entriesuujCt  ^https://api.github.com/repos/palantir/atlasdb/commits/eb224fd7ee39ccd076d56d506423b0bb527d5ca6html_urlShttps://github.com/palantir/atlasdb/commit/eb224fd7ee39ccd076d56d506423b0bb527d5ca6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/eb224fd7ee39ccd076d56d506423b0bb527d5ca6/commentsj1t  }(login
svc-changelogidJ#j-t  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jCt  *https://api.github.com/users/svc-changelogjQt   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj9t  }(jVt  
svc-changelogjXt  J#j-t  MDQ6VXNlcjg0MDc3NjAzjZt  4https://avatars.githubusercontent.com/u/84077603?v=4j\t  h5jCt  *https://api.github.com/users/svc-changelogjQt   https://github.com/svc-changelogj_t  4https://api.github.com/users/svc-changelog/followersjat  Ahttps://api.github.com/users/svc-changelog/following{/other_user}jct  :https://api.github.com/users/svc-changelog/gists{/gist_id}jet  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jgt  8https://api.github.com/users/svc-changelog/subscriptionsjit  /https://api.github.com/users/svc-changelog/orgsjkt  0https://api.github.com/users/svc-changelog/reposjmt  ;https://api.github.com/users/svc-changelog/events{/privacy}jot  :https://api.github.com/users/svc-changelog/received_eventsjqt  Userjst  uparents]}(j+t  (f7b40432ba59e00466550ae9a8e8b6ecf5122a3bjCt  ^https://api.github.com/repos/palantir/atlasdb/commits/f7b40432ba59e00466550ae9a8e8b6ecf5122a3bjQt  Shttps://github.com/palantir/atlasdb/commit/f7b40432ba59e00466550ae9a8e8b6ecf5122a3buastats}(totalK	additionsK	deletionsKufiles]}(j+t  (5f02ea670ebe579e2fc7dbfcda201cb6c125b07efilename$changelog/@unreleased/pr-6660.v2.ymlstatusmodifiedjt  Kjt  KchangesKblob_url|https://github.com/palantir/atlasdb/blob/eb224fd7ee39ccd076d56d506423b0bb527d5ca6/changelog%2F%40unreleased%2Fpr-6660.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/eb224fd7ee39ccd076d56d506423b0bb527d5ca6/changelog%2F%40unreleased%2Fpr-6660.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6660.v2.yml?ref=eb224fd7ee39ccd076d56d506423b0bb527d5ca6patch@@ -1,5 +1,5 @@
 type: feature
 feature:
-  description: '[LWMeta] TimeLock API changes'
+  description: '[LWMeta] Add metadata to ConjureLockRequest'
   links:
   - https://github.com/palantir/atlasdb/pull/6660uau(6c2aa5f4fa82713fe7e465445fb416642a8b4ee3}(sha(6c2aa5f4fa82713fe7e465445fb416642a8b4ee3node_idEC_kwDOAjP5fdoAKDZjMmFhNWY0ZmE4MjcxM2ZlN2U0NjU0NDVmYjQxNjY0MmE4YjRlZTMcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-04T15:02:18Zu	committer}(jt  Lucas Meirelesjt  meireles31@msn.comjt  2023-07-04T15:02:18Zumessage9Expose API to let client define number of expected valuestree}(jt  (c5711b8ef3e6a065c7e2ba038556f98134611646url`https://api.github.com/repos/palantir/atlasdb/git/trees/c5711b8ef3e6a065c7e2ba038556f98134611646ujt  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6c2aa5f4fa82713fe7e465445fb416642a8b4ee3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSkNHoACgkQJd22kJ7J
Giw/HQgAkv9jQN8/19ANIw/6SbTwRi/jghYlHiArZ1SW7fzzFSjeBh9Ts/8F8pnf
MZ8a0hGXiyzMtJ27ibD4jZ34gntP/R1oyABreQXsfEvldPbeLHa/yrv7r5OPqcTY
1igYen1YFK7LsGKlVX4wV6M+YTJL0FRe+/waq/bOU5B7GitVNUPHrc4bRxI12csi
LlizdH2+AO7n8VTLfDjX9kKRuBy0IVz3FrB+sujRWA9s9QzxsfWmAus4FbcWIPzu
7bXnCKJQWKS50EZCn8JX7iCQesYk/cnoev4vGprzV7I3IgVSjb0Xlk7jBpH7WJYY
sf8gy6/AjXeFqhMVav+qYJX9lHw/iQ==
=qknF
-----END PGP SIGNATURE-----payloadX  tree c5711b8ef3e6a065c7e2ba038556f98134611646
parent 9988301a91b9c55408f2b0c9b544a7c70730fd95
author Lucas Meireles <meireles31@msn.com> 1688482938 +0100
committer Lucas Meireles <meireles31@msn.com> 1688482938 +0100

Expose API to let client define number of expected values
uujt  ^https://api.github.com/repos/palantir/atlasdb/commits/6c2aa5f4fa82713fe7e465445fb416642a8b4ee3html_urlShttps://github.com/palantir/atlasdb/commit/6c2aa5f4fa82713fe7e465445fb416642a8b4ee3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6c2aa5f4fa82713fe7e465445fb416642a8b4ee3/commentsjt  }(loginLucasIMEidJg jt  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jt  %https://api.github.com/users/LucasIMEjt  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujt  }(jt  LucasIMEjt  Jg jt  MDQ6VXNlcjY3ODczMTE=jt  3https://avatars.githubusercontent.com/u/6787311?v=4jt  h5jt  %https://api.github.com/users/LucasIMEjt  https://github.com/LucasIMEjt  /https://api.github.com/users/LucasIME/followersjt  <https://api.github.com/users/LucasIME/following{/other_user}jt  5https://api.github.com/users/LucasIME/gists{/gist_id}jt  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jt  3https://api.github.com/users/LucasIME/subscriptionsjt  *https://api.github.com/users/LucasIME/orgsjt  +https://api.github.com/users/LucasIME/reposjt  6https://api.github.com/users/LucasIME/events{/privacy}jt  5https://api.github.com/users/LucasIME/received_eventsjt  Userjt  uparents]}(jt  (9988301a91b9c55408f2b0c9b544a7c70730fd95jt  ^https://api.github.com/repos/palantir/atlasdb/commits/9988301a91b9c55408f2b0c9b544a7c70730fd95jt  Shttps://github.com/palantir/atlasdb/commit/9988301a91b9c55408f2b0c9b544a7c70730fd95uastats}(totalKÌ	additionsK	deletionsK	ufiles](}(jt  (b4cd54c1ca65e9a5dde02034f9b149ce77eb5688filenameOatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/Transaction.javastatusmodifiedju  Kju  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/6c2aa5f4fa82713fe7e465445fb416642a8b4ee3/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6c2aa5f4fa82713fe7e465445fb416642a8b4ee3/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.java?ref=6c2aa5f4fa82713fe7e465445fb416642a8b4ee3patchX  @@ -175,6 +175,31 @@ Iterator<Map.Entry<Cell, byte[]>> getSortedColumns(
     @Idempotent
     Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells);
 
+    /**
+     * Similar to {@link #get(TableReference, Set)}, but allows the caller to specify the number of  expected present
+     * cells. This is important to allow clients that might have schemas that guarantees only a subset of the columns
+     * are present to still benefit from being able to skip the immutable timestamp lock check on non empty
+     * reads of thoroughly swept tables.
+     *
+     * If we find values for the exact number of expected present cells, we'll skip the immutable timestamp lock check.
+     * If we find less values, we'll perform the immutable timestamp lock check.
+     * If we find more value, we'll throw an exception, as it means that either:
+     *  1 - There is a bug in the implementation of this method.
+     *  2 - The client is making an incorrect assumption about the maximum number of values that will be present and
+     *      we could have returned empty values in the past when we should have not.
+     *
+     * WARNING: This method should only be used if you REALLY know what you're doing. Otherwise you could have
+     * correctness issues by reading empty values when one is actually present if you don't use this method correctly.
+     *
+     * @param tableRef the table from which to get the values
+     * @param cells the cells for which we want to get the values
+     * @param expectedNumberOfPresentCells the number of cells that are expected to be present.
+     * @return a {@link Map} from {@link Cell} to {@code byte[]} representing cell/value pairs
+     */
+    @Idempotent
+    Map<Cell, byte[]> getWithExpectedNumberOfCells(
+            TableReference tableRef, Set<Cell> cells, int expectedNumberOfPresentCells);
+
     /**
      * Gets the values associated for each cell in {@code cells} from table specified by {@code tableRef}. It is not
      * guaranteed that the actual implementations are in fact asynchronous.u}(jt  (cf790c0c8da2f9a29dc7dcf6c8a2306b33612a92j
u  Zatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CachingTransaction.javaju  modifiedju  Kju  K ju  Kju  https://github.com/palantir/atlasdb/blob/6c2aa5f4fa82713fe7e465445fb416642a8b4ee3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javaju  https://github.com/palantir/atlasdb/raw/6c2aa5f4fa82713fe7e465445fb416642a8b4ee3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javaju  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.java?ref=6c2aa5f4fa82713fe7e465445fb416642a8b4ee3ju  X|  @@ -131,6 +131,23 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
         }
     }
 
+    @Override
+    public Map<Cell, byte[]> getWithExpectedNumberOfCells(
+            TableReference tableRef, Set<Cell> cells, int expectedNumberOfPresentCells) {
+        try {
+            return getWithLoader(tableRef, cells, (tableReference, toRead) -> {
+                        int cachedCells = cells.size() - toRead.size();
+                        int numberOfCellsExpectingValuePostCache = expectedNumberOfPresentCells - cachedCells;
+
+                        return Futures.immediateFuture(super.getWithExpectedNumberOfCells(
+                                tableReference, toRead, numberOfCellsExpectingValuePostCache));
+                    })
+                    .get();
+        } catch (InterruptedException | ExecutionException e) {
+            throw Throwables.rewrapAndThrowUncheckedException(e.getCause());
+        }
+    }
+
     @Override
     public ListenableFuture<Map<Cell, byte[]>> getAsync(TableReference tableRef, Set<Cell> cells) {
         return getWithLoader(tableRef, cells, super::getAsync);u}(jt  (67dae0db08285427a7f25f9003ac106060cc482ej
u  ]atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingTransaction.javaju  modifiedju  Kju  K ju  Kju  https://github.com/palantir/atlasdb/blob/6c2aa5f4fa82713fe7e465445fb416642a8b4ee3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.javaju  https://github.com/palantir/atlasdb/raw/6c2aa5f4fa82713fe7e465445fb416642a8b4ee3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.javaju  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.java?ref=6c2aa5f4fa82713fe7e465445fb416642a8b4ee3ju  Xh  @@ -83,6 +83,12 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
         return delegate().get(tableRef, cells);
     }
 
+    @Override
+    public Map<Cell, byte[]> getWithExpectedNumberOfCells(
+            TableReference tableRef, Set<Cell> cells, int expectedNumberOfPresentCells) {
+        return delegate().getWithExpectedNumberOfCells(tableRef, cells, expectedNumberOfPresentCells);
+    }
+
     @Override
     public BatchingVisitable<RowResult<byte[]>> getRange(TableReference tableRef, RangeRequest rangeRequest) {
         return delegate().getRange(tableRef, rangeRequest);u}(jt  (b396b1938a2544f12d9394f0308d176bb2d67932j
u  Watlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ReadTransaction.javaju  modifiedju  Kju  K ju  Kju  https://github.com/palantir/atlasdb/blob/6c2aa5f4fa82713fe7e465445fb416642a8b4ee3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaju  https://github.com/palantir/atlasdb/raw/6c2aa5f4fa82713fe7e465445fb416642a8b4ee3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaju  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.java?ref=6c2aa5f4fa82713fe7e465445fb416642a8b4ee3ju  Xo  @@ -64,6 +64,13 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
         return delegate().get(tableRef, cells);
     }
 
+    @Override
+    public Map<Cell, byte[]> getWithExpectedNumberOfCells(
+            TableReference tableRef, Set<Cell> cells, int expectedNumberOfPresentCells) {
+        checkTableName(tableRef);
+        return delegate.getWithExpectedNumberOfCells(tableRef, cells, expectedNumberOfPresentCells);
+    }
+
     @Override
     public BatchingVisitable<RowResult<byte[]>> getRange(TableReference tableRef, RangeRequest rangeRequest) {
         checkTableName(tableRef);u}(jt  (3cbf6e1bdb12dfd6c9463b32a1ce70db44dac70bj
u  datlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.javaju  modifiedju  Kju  K ju  Kju  https://github.com/palantir/atlasdb/blob/6c2aa5f4fa82713fe7e465445fb416642a8b4ee3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaju  https://github.com/palantir/atlasdb/raw/6c2aa5f4fa82713fe7e465445fb416642a8b4ee3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaju  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.java?ref=6c2aa5f4fa82713fe7e465445fb416642a8b4ee3ju  X  @@ -320,12 +320,33 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
         }
     }
 
+    @Override
+    @Idempotent
+    public Map<Cell, byte[]> getWithExpectedNumberOfCells(
+            TableReference tableRef, Set<Cell> cells, int expectedNumberOfPresentCells) {
+        try {
+            return getWithLoader(
+                            tableRef,
+                            cells,
+                            (tableReference, toRead) -> Futures.immediateFuture(super.getWithExpectedNumberOfCells(
+                                    tableReference, toRead, expectedNumberOfPresentCells)))
+                    .get();
+        } catch (InterruptedException | ExecutionException e) {
+            throw Throwables.rewrapAndThrowUncheckedException(e.getCause());
+        }
+    }
+
     @Override
     @Idempotent
     public ListenableFuture<Map<Cell, byte[]>> getAsync(TableReference tableRef, Set<Cell> cells) {
         return getWithLoader(tableRef, cells, super::getAsync);
     }
 
+    /**
+     * If we ever update getWithLoader to filter down the cells before calling the cellLoader, we'll need to update the
+     * {@link #getWithExpectedNumberOfCells(TableReference, Set, int)} implementation to take intro account the
+     * filtering and change the number of expect cells it sends to the super class.
+     */
     private ListenableFuture<Map<Cell, byte[]>> getWithLoader(
             TableReference tableRef, Set<Cell> cells, CellLoader cellLoader) {
         return Futures.transform(u}(jt  (dd9d6daafdafcb940c44208533937c3191ae0f75j
u  `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaju  modifiedju  K5ju  K	ju  K>ju  https://github.com/palantir/atlasdb/blob/6c2aa5f4fa82713fe7e465445fb416642a8b4ee3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaju  https://github.com/palantir/atlasdb/raw/6c2aa5f4fa82713fe7e465445fb416642a8b4ee3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaju  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=6c2aa5f4fa82713fe7e465445fb416642a8b4ee3ju  X
  @@ -416,7 +416,12 @@ public NavigableMap<byte[], RowResult<byte[]>> getRows(
                         rows,
                         columnSelection,
                         cells -> AtlasFutures.getUnchecked(getInternal(
-                                "getRows", tableRef, cells, immediateKeyValueService, immediateTransactionService)),
+                                "getRows",
+                                tableRef,
+                                cells,
+                                cells.size(),
+                                immediateKeyValueService,
+                                immediateTransactionService)),
                         unCachedRows -> getRowsInternal(tableRef, unCachedRows, columnSelection));
     }
 
@@ -905,7 +910,29 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
                         tableRef,
                         cells,
                         uncached -> getInternal(
-                                "get", tableRef, uncached, immediateKeyValueService, immediateTransactionService));
+                                "get",
+                                tableRef,
+                                uncached,
+                                uncached.size(),
+                                immediateKeyValueService,
+                                immediateTransactionService));
+    }
+
+    @Override
+    public Map<Cell, byte[]> getWithExpectedNumberOfCells(
+            TableReference tableRef, Set<Cell> cells, int expectedNumberOfPresentCells) {
+        return getCache().get(tableRef, cells, uncached -> {
+            int cachedCells = cells.size() - uncached.size();
+            int numberOfCellsExpectingValuePostCache = expectedNumberOfPresentCells - cachedCells;
+
+            return getInternal(
+                    "get",
+                    tableRef,
+                    uncached,
+                    numberOfCellsExpectingValuePostCache,
+                    immediateKeyValueService,
+                    immediateTransactionService);
+        });
     }
 
     @Override
@@ -916,13 +943,19 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(TableReference tableRef, Set
                         tableRef,
                         cells,
                         uncached -> getInternal(
-                                "getAsync", tableRef, uncached, keyValueService, defaultTransactionService)));
+                                "getAsync",
+                                tableRef,
+                                uncached,
+                                uncached.size(),
+                                keyValueService,
+                                defaultTransactionService)));
     }
 
     private ListenableFuture<Map<Cell, byte[]>> getInternal(
             String operationName,
             TableReference tableRef,
             Set<Cell> cells,
+            int numberOfExpectedPresentCells,
             AsyncKeyValueService asyncKeyValueService,
             AsyncTransactionService asyncTransactionService) {
         Timer.Context timer = getTimer(operationName).time();
@@ -943,12 +976,14 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
             }
         }
 
-        // We don't need to read any cells that were written locally. Making an immutable copy because otherwise adding
-        // values to the result map would prevent us from calculating the correct size for
-        // allPossibleCellsReadAndPresent, since Sets.difference gives us a live view.
-        Set<Cell> cellsWithNoLocalWrites = ImmutableSet.copyOf(Sets.difference(cells, result.keySet()));
+        // We don't need to read any cells that were written locally.
+        int expectedNumberOfPresentCellsToFetch = numberOfExpectedPresentCells - result.size();
         return Futures.transform(
-                getFromKeyValueService(tableRef, cellsWithNoLocalWrites, asyncKeyValueService, asyncTransactionService),
+                getFromKeyValueService(
+                        tableRef,
+                        Sets.difference(cells, result.keySet()),
+                        asyncKeyValueService,
+                        asyncTransactionService),
                 fromKeyValueService -> {
                     result.putAll(fromKeyValueService);
 
@@ -963,8 +998,17 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
                                 SafeArg.of("durationMillis", getMillis));
                     }
 
+                    if (fromKeyValueService.size() > expectedNumberOfPresentCellsToFetch) {
+                        throw new SafeIllegalStateException(
+                                "KeyValueService returned more results than Get expected. This means there is a bug"
+                                        + "either in the SnapshotTransaction implementation or in how the client is "
+                                        + "using such method.",
+                                SafeArg.of("expectedNumberOfCells", expectedNumberOfPresentCellsToFetch),
+                                SafeArg.of("numberOfCellsRetrieved", fromKeyValueService.size()));
+                    }
+
                     boolean allPossibleCellsReadAndPresent =
-                            fromKeyValueService.size() == cellsWithNoLocalWrites.size();
+                            fromKeyValueService.size() == expectedNumberOfPresentCellsToFetch;
                     validatePreCommitRequirementsOnReadIfNecessary(
                             tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
                     return removeEmptyColumns(result, tableRef);u}(jt  (ff0bd4a17a6f4879034554463c2d22fd581aedbcj
u  eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaju  modifiedju  K9ju  K ju  K9ju  https://github.com/palantir/atlasdb/blob/6c2aa5f4fa82713fe7e465445fb416642a8b4ee3/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaju  https://github.com/palantir/atlasdb/raw/6c2aa5f4fa82713fe7e465445fb416642a8b4ee3/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaju  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=6c2aa5f4fa82713fe7e465445fb416642a8b4ee3ju  Xh  @@ -328,6 +328,7 @@ public void cleanup() {}
 
     private static final Cell TEST_CELL = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("column1"));
     private static final Cell TEST_CELL_2 = Cell.create(PtBytes.toBytes("row2"), PtBytes.toBytes("column2"));
+    private static final Cell TEST_CELL_3 = Cell.create(PtBytes.toBytes("row3"), PtBytes.toBytes("column3"));
 
     private static final byte[] TEST_VALUE = PtBytes.toBytes("value");
 
@@ -1637,6 +1638,62 @@ public void validateLocksOnCommitIfEmptyReadsFollowedByNonEmptyReadsIfValidation
         assertThatExceptionOfType(TransactionLockTimeoutException.class).isThrownBy(transaction::commit);
     }
 
+    @Test
+    public void skipImmutableTLocksIfReadingEqualsExpectedNumberOfValuesEvenWhenRequestedMore() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        Transaction transaction = getSnapshotTransactionWith(
+                spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        transaction.getWithExpectedNumberOfCells(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 1);
+        transaction.commit();
+        spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
+
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+    }
+
+    @Test
+    public void performImmutableTLocksIfReadingLessThanExpectedNumberOfValues() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        Transaction transaction = getSnapshotTransactionWith(
+                spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        transaction.getWithExpectedNumberOfCells(
+                TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2);
+        transaction.commit();
+        spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
+
+        verify(spiedTimeLockService, times(1)).refreshLockLeases(ImmutableSet.of(res.getLock()));
+    }
+
+    @Test
+    public void throwsIfReadingMoreThanExpectedNumberOfValues() {
+        putCellsInTable(List.of(TEST_CELL, TEST_CELL_2), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        Transaction transaction = getSnapshotTransactionWith(
+                spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        assertThatThrownBy(() -> transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 1))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("KeyValueService returned more results than Get expected");
+
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+    }
+
     @Test
     public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithValidationOnReads() {
         putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);ueu(b92b43aa06ef7ff35b0ba2a730940639b3c1156e}(sha(b92b43aa06ef7ff35b0ba2a730940639b3c1156enode_idEC_kwDOAjP5fdoAKGI5MmI0M2FhMDZlZjdmZjM1YjBiYTJhNzMwOTQwNjM5YjNjMTE1NmUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-24T14:43:15Zu	committer}(jQu  
Sam KramerjSu  skramer@palantir.comjUu  2023-04-24T14:43:15Zumessagemin 100 threadstree}(jIu  (a4dda889d890f6ae6c923db62cd5ebdc47336090url`https://api.github.com/repos/palantir/atlasdb/git/trees/a4dda889d890f6ae6c923db62cd5ebdc47336090ujau  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b92b43aa06ef7ff35b0ba2a730940639b3c1156e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRGlYMACgkQmPPOpKR4
XS2CeQgAx9xvsAWZuFJQW8KbsIUgy4fI7+5UI+/zLeKtAkW8fbR5T62/VhwLVr2g
7vjeKNmzDwbYu748/TGCu+DMvN2fDy0YaGOvNa5lL3pZRvY5z3xqYrcuex59Q+Dg
Su7VJuBEf5n6jGwEL6GDnyGeMZFMcZouo2Ess/LHzQWFIgRfTgxYd0zZ9aTDF8mb
jOW1wFeaNVj7imsh9+btmUWZs7XP3oIS0jC7rJE3DqQ+m+kShcFBz/HM8oL0+yhV
UW38SMMn6o6/NTrYyWtJ28ibMA42UDz6LhRFASg3YHbDNJ5ybVcaHq/z7PGNDUsD
dgNuOCuC36T5/jSokUiie1bEDzCs5A==
=ktYI
-----END PGP SIGNATURE-----payloadtree a4dda889d890f6ae6c923db62cd5ebdc47336090
parent 50701cbcfb63302a5c097ba8d2dd5b12dc20cec9
author Sam Kramer <skramer@palantir.com> 1682347395 +0100
committer Sam Kramer <skramer@palantir.com> 1682347395 +0100

min 100 threads
uujau  ^https://api.github.com/repos/palantir/atlasdb/commits/b92b43aa06ef7ff35b0ba2a730940639b3c1156ehtml_urlShttps://github.com/palantir/atlasdb/commit/b92b43aa06ef7ff35b0ba2a730940639b3c1156ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b92b43aa06ef7ff35b0ba2a730940639b3c1156e/commentsjOu  }(login
Sam-KrameridJ^2_ jKu  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jau  'https://api.github.com/users/Sam-Kramerjou  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujWu  }(jtu  
Sam-Kramerjvu  J^2_ jKu  MDQ6VXNlcjYyMzg4MTQ=jxu  3https://avatars.githubusercontent.com/u/6238814?v=4jzu  h5jau  'https://api.github.com/users/Sam-Kramerjou  https://github.com/Sam-Kramerj}u  1https://api.github.com/users/Sam-Kramer/followersju  >https://api.github.com/users/Sam-Kramer/following{/other_user}ju  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}ju  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}ju  5https://api.github.com/users/Sam-Kramer/subscriptionsju  ,https://api.github.com/users/Sam-Kramer/orgsju  -https://api.github.com/users/Sam-Kramer/reposju  8https://api.github.com/users/Sam-Kramer/events{/privacy}ju  7https://api.github.com/users/Sam-Kramer/received_eventsju  Userju  uparents]}(jIu  (50701cbcfb63302a5c097ba8d2dd5b12dc20cec9jau  ^https://api.github.com/repos/palantir/atlasdb/commits/50701cbcfb63302a5c097ba8d2dd5b12dc20cec9jou  Shttps://github.com/palantir/atlasdb/commit/50701cbcfb63302a5c097ba8d2dd5b12dc20cec9uastats}(totalK	additionsK	deletionsK ufiles]}(jIu  (6f72c84b60142bd14784a1be3b178b7d7b5e7835filenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedju  Kju  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/b92b43aa06ef7ff35b0ba2a730940639b3c1156e/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b92b43aa06ef7ff35b0ba2a730940639b3c1156e/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=b92b43aa06ef7ff35b0ba2a730940639b3c1156epatchX  @@ -85,6 +85,7 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         ExecutorService singleRowTwoCellsExecutorService = environment
                 .lifecycle()
                 .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
+                .minThreads(100)
                 .maxThreads(1024)
                 .build();
         MetricsManager metricsManager = MetricsManagers.of(environment.metrics(), taggedMetricRegistry);uau(04475e557117461d9d9cbed1725979320971e2c8}(sha(04475e557117461d9d9cbed1725979320971e2c8node_idEC_kwDOAjP5fdoAKDA0NDc1ZTU1NzExNzQ2MWQ5ZDljYmVkMTcyNTk3OTMyMDk3MWUyYzgcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-03T16:16:51Zu	committer}(ju  
Sam Kramerju  skramer@palantir.comju  2023-05-03T16:16:51ZumessageNMerge branch 'skramer/buggify-timelock' into skramer/bouncy-values-and-buggifytree}(ju  (ac934bd0cdc287bd58875f1247eb04158c9ad97burl`https://api.github.com/repos/palantir/atlasdb/git/trees/ac934bd0cdc287bd58875f1247eb04158c9ad97buju  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/04475e557117461d9d9cbed1725979320971e2c8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRSiPoACgkQmPPOpKR4
XS3cfQgAha1OcvcyPMbEhWhskwS2+mdZkvWy1SQvHb58kIP/IG4uJAsMOUdbWglS
R9YqIAbzm9gVNttrBIk1m9jZp7f0/kQTq+Nd145mXVHfvfEyX6MJee/FZqWi+/by
XBS3bUZlYFdUihEbog+UL1/AJ/Fjt0olJSrhKHtZ47JtjiynXgg1mzxfT/kkhGHE
G5JKfzIxll/Z6XhvKEIlEdP5w1s8aLoby2azt93puIv2ldmGlXiGtSxzJNhoWn6h
dmPCQsoYOqazAWY4iHwCqlEv8xM+bITNn6CTohi+slgryvsgUcJwytC8zI/43354
wwaL+y1fjPagjbzNBov7tdPwfrpQ2g==
=prN/
-----END PGP SIGNATURE-----
     payloadXU  tree ac934bd0cdc287bd58875f1247eb04158c9ad97b
parent 55384b3a6efbfe0f29d93230125c6e811092a293
parent c2e1a5d113b002cdb8d54775be01f0a2bd7526e5
author Sam Kramer <skramer@palantir.com> 1683130611 +0100
committer Sam Kramer <skramer@palantir.com> 1683130611 +0100

Merge branch 'skramer/buggify-timelock' into skramer/bouncy-values-and-buggify
uuju  ^https://api.github.com/repos/palantir/atlasdb/commits/04475e557117461d9d9cbed1725979320971e2c8html_urlShttps://github.com/palantir/atlasdb/commit/04475e557117461d9d9cbed1725979320971e2c8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/04475e557117461d9d9cbed1725979320971e2c8/commentsju  }(login
Sam-KrameridJ^2_ ju  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5ju  'https://api.github.com/users/Sam-Kramerju  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuju  }(ju  
Sam-Kramerju  J^2_ ju  MDQ6VXNlcjYyMzg4MTQ=ju  3https://avatars.githubusercontent.com/u/6238814?v=4ju  h5ju  'https://api.github.com/users/Sam-Kramerju  https://github.com/Sam-Kramerju  1https://api.github.com/users/Sam-Kramer/followersju  >https://api.github.com/users/Sam-Kramer/following{/other_user}ju  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}ju  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}ju  5https://api.github.com/users/Sam-Kramer/subscriptionsju  ,https://api.github.com/users/Sam-Kramer/orgsj v  -https://api.github.com/users/Sam-Kramer/reposjv  8https://api.github.com/users/Sam-Kramer/events{/privacy}jv  7https://api.github.com/users/Sam-Kramer/received_eventsjv  Userjv  uparents](}(ju  (55384b3a6efbfe0f29d93230125c6e811092a293ju  ^https://api.github.com/repos/palantir/atlasdb/commits/55384b3a6efbfe0f29d93230125c6e811092a293ju  Shttps://github.com/palantir/atlasdb/commit/55384b3a6efbfe0f29d93230125c6e811092a293u}(ju  (c2e1a5d113b002cdb8d54775be01f0a2bd7526e5ju  ^https://api.github.com/repos/palantir/atlasdb/commits/c2e1a5d113b002cdb8d54775be01f0a2bd7526e5ju  Shttps://github.com/palantir/atlasdb/commit/c2e1a5d113b002cdb8d54775be01f0a2bd7526e5uestats}(totalM	additionsM	deletionsKufiles](}(ju  (c8f5ec6d41d45b1db43cb98d871dd8aaff4fbe06filenameatlasdb-buggify/build.gradlestatusaddedj&v  Kj'v  K changesKblob_urlphttps://github.com/palantir/atlasdb/blob/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-buggify%2Fbuild.gradleraw_urlohttps://github.com/palantir/atlasdb/raw/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-buggify%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fbuild.gradle?ref=04475e557117461d9d9cbed1725979320971e2c8patchX`  @@ -0,0 +1,12 @@
+
+apply from: "../gradle/shared.gradle"
+
+dependencies {
+    implementation 'com.google.guava:guava'
+    testImplementation 'junit:junit'
+    testImplementation 'org.assertj:assertj-core'
+    testImplementation('org.jmock:jmock') {
+      exclude group: 'org.hamcrest'
+    }
+    testImplementation 'org.mockito:mockito-core'
+}u}(ju  (7a7e96879c9d029ece4e0cb9922a515234507665j,v  Katlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/Buggify.javaj.v  addedj&v  K%j'v  K j0v  K%j1v  https://github.com/palantir/atlasdb/blob/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaj3v  https://github.com/palantir/atlasdb/raw/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaj5v  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.java?ref=04475e557117461d9d9cbed1725979320971e2c8j7v  X  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+/**
+ * Instances of this class could vary in implementation, such that they may perform no action {@link com.palantir.atlasdb.buggify.impl.NoOpBuggify} or
+ * always perform the action {@link com.palantir.atlasdb.buggify.impl.DefaultBuggify}. The idea here is that a
+ * downstream users of this class can easily swap out their {@link BuggifyFactory} to change the behavior of their
+ * class, without having to change the implementation of their class. This is useful for tests, as we can force the
+ * behavior of never running the provided runnable, or always running the provided runnable.
+ */
+public interface Buggify {
+    /**
+     * Maybe runs the provided runnable, depending on the instance of the class.
+     */
+    void run(Runnable runnable);
+
+    /**
+     * Returns true if this instance of buggify would perform an action if {@link #run Run} would execute the
+     * provided runnable. This is useful if you wish to produce a boolean that will be skewed towards true or false.
+     */
+    boolean asBoolean();
+}u}(ju  (909ba3b6edf631651ce0504e5d0f8ffe5740cd23j,v  Ratlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/BuggifyFactory.javaj.v  addedj&v  Kj'v  K j0v  Kj1v  https://github.com/palantir/atlasdb/blob/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj3v  https://github.com/palantir/atlasdb/raw/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj5v  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.java?ref=04475e557117461d9d9cbed1725979320971e2c8j7v  Xm  @@ -0,0 +1,24 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+public interface BuggifyFactory {
+    /**
+     * A Buggify instance that may or may not perform any actions.
+     */
+    Buggify maybe(double probability);
+}u}(ju  (bf47a2abcceffe92e42715b2377315e57a40f763j,v  Satlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggify.javaj.v  addedj&v  K!j'v  K j0v  K!j1v  https://github.com/palantir/atlasdb/blob/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javaj3v  https://github.com/palantir/atlasdb/raw/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javaj5v  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.java?ref=04475e557117461d9d9cbed1725979320971e2c8j7v  X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+
+public enum DefaultBuggify implements Buggify {
+    INSTANCE;
+
+    @Override
+    public void run(Runnable runnable) {
+        runnable.run();
+    }
+
+    @Override
+    public boolean asBoolean() {
+        return true;
+    }
+}u}(ju  (b42105d946c995e73b626ae411a16b146c1e1379j,v  Zatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactory.javaj.v  addedj&v  K/j'v  K j0v  K/j1v  https://github.com/palantir/atlasdb/blob/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj3v  https://github.com/palantir/atlasdb/raw/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj5v  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.java?ref=04475e557117461d9d9cbed1725979320971e2c8j7v  X  @@ -0,0 +1,47 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import java.security.SecureRandom;
+import java.util.function.Supplier;
+
+public final class DefaultBuggifyFactory implements BuggifyFactory {
+    private static final SecureRandom SECURE_RANDOM = new SecureRandom();
+    public static final BuggifyFactory INSTANCE = new DefaultBuggifyFactory();
+
+    private final Supplier<Double> probabilitySupplier;
+
+    @VisibleForTesting
+    DefaultBuggifyFactory(Supplier<Double> probabilitySupplier) {
+        this.probabilitySupplier = probabilitySupplier;
+    }
+
+    private DefaultBuggifyFactory() {
+        this(SECURE_RANDOM::nextDouble);
+    }
+
+    @Override
+    public Buggify maybe(double probability) {
+        if (probability <= probabilitySupplier.get()) {
+            return NoOpBuggify.INSTANCE;
+        }
+        return DefaultBuggify.INSTANCE;
+    }
+}u}(ju  (7ffdf499b3babaa3d0997abc88e28cb57de2aa01j,v  Patlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggify.javaj.v  addedj&v  K!j'v  K j0v  K!j1v  https://github.com/palantir/atlasdb/blob/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javaj3v  https://github.com/palantir/atlasdb/raw/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javaj5v  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.java?ref=04475e557117461d9d9cbed1725979320971e2c8j7v  X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+
+public enum NoOpBuggify implements Buggify {
+    INSTANCE;
+
+    @Override
+    public void run(Runnable _runnable) {
+        // do nothing
+    }
+
+    @Override
+    public boolean asBoolean() {
+        return false;
+    }
+}u}(ju  (bf4172a8a7e4e4576cacc81f228d95963322a41dj,v  Watlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyFactory.javaj.v  addedj&v  Kj'v  K j0v  Kj1v  https://github.com/palantir/atlasdb/blob/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javaj3v  https://github.com/palantir/atlasdb/raw/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javaj5v  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.java?ref=04475e557117461d9d9cbed1725979320971e2c8j7v  X  @@ -0,0 +1,29 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+
+public enum NoOpBuggifyFactory implements BuggifyFactory {
+    INSTANCE;
+
+    @Override
+    public Buggify maybe(double _probability) {
+        return NoOpBuggify.INSTANCE;
+    }
+}u}(ju  (81f8c75fd356d1d930c35c5e89d74a891d3afb5bj,v  ^atlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactoryTest.javaj.v  addedj&v  K,j'v  K j0v  K,j1v  https://github.com/palantir/atlasdb/blob/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj3v  https://github.com/palantir/atlasdb/raw/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj5v  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.java?ref=04475e557117461d9d9cbed1725979320971e2c8j7v  X+  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import org.junit.Test;
+
+public final class DefaultBuggifyFactoryTest {
+
+    @Test
+    public void maybeReturnsDefaultWhenMaxProbability() {
+        assertThat(DefaultBuggifyFactory.INSTANCE.maybe(1.0)).isSameAs(DefaultBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsNoOpWhenNeverProbability() {
+        assertThat(DefaultBuggifyFactory.INSTANCE.maybe(0.0)).isSameAs(NoOpBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsNoOpWhenBelowOrEqualToProbability() {
+        assertThat(new DefaultBuggifyFactory(() -> 0.50).maybe(0.50)).isSameAs(NoOpBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsDefaultWhenAboveProbability() {
+        assertThat(new DefaultBuggifyFactory(() -> 0.49).maybe(0.50)).isSameAs(DefaultBuggify.INSTANCE);
+    }
+}u}(ju  (cc0daee58b86914cb90ce35dca307a652ee183c6j,v  Watlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyTest.javaj.v  addedj&v  K%j'v  K j0v  K%j1v  https://github.com/palantir/atlasdb/blob/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj3v  https://github.com/palantir/atlasdb/raw/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj5v  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.java?ref=04475e557117461d9d9cbed1725979320971e2c8j7v  X  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.verify;
+
+import org.junit.Test;
+
+public final class DefaultBuggifyTest {
+    @Test
+    public void runAlwaysExecutes() {
+        Runnable runnable = mock(Runnable.class);
+        DefaultBuggify.INSTANCE.run(runnable);
+        verify(runnable).run();
+    }
+
+    @Test
+    public void asBooleanReturnsTrue() {
+        assertThat(DefaultBuggify.INSTANCE.asBoolean()).isTrue();
+    }
+}u}(ju  (8bbbe40c153a19d589d463e6cf40e027197f95d5j,v  Tatlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyTest.javaj.v  addedj&v  K&j'v  K j0v  K&j1v  https://github.com/palantir/atlasdb/blob/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj3v  https://github.com/palantir/atlasdb/raw/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj5v  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.java?ref=04475e557117461d9d9cbed1725979320971e2c8j7v  X
  @@ -0,0 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.never;
+import static org.mockito.Mockito.verify;
+
+import org.junit.Test;
+
+public final class NoOpBuggifyTest {
+    @Test
+    public void runNeverExecutes() {
+        Runnable runnable = mock(Runnable.class);
+        NoOpBuggify.INSTANCE.run(runnable);
+        verify(runnable, never()).run();
+    }
+
+    @Test
+    public void asBooleanReturnsFalse() {
+        assertThat(NoOpBuggify.INSTANCE.asBoolean()).isFalse();
+    }
+}u}(ju  (df57e9fd3c6376b49fd3c1adb77db41b476aeffej,v  datlasdb-config/src/main/java/com/palantir/atlasdb/factory/DefaultLockAndTimestampServiceFactory.javaj.v  modifiedj&v  K&j'v  Kj0v  K)j1v  https://github.com/palantir/atlasdb/blob/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javaj3v  https://github.com/palantir/atlasdb/raw/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javaj5v  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java?ref=04475e557117461d9d9cbed1725979320971e2c8j7v  X4  @@ -96,6 +96,7 @@
 import java.util.Set;
 import java.util.concurrent.CompletableFuture;
 import java.util.function.Consumer;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import javax.ws.rs.ClientErrorException;
 
@@ -118,6 +119,8 @@ public final class DefaultLockAndTimestampServiceFactory implements LockAndTimes
     private final Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders;
     private final Set<Schema> schemas;
 
+    private final Function<TimelockService, TimeLockClient> timelockClientFactory;
+
     public DefaultLockAndTimestampServiceFactory(
             MetricsManager metricsManager,
             AtlasDbConfig config,
@@ -132,6 +135,38 @@ public DefaultLockAndTimestampServiceFactory(
             Optional<TimeLockFeedbackBackgroundTask> timeLockFeedbackBackgroundTask,
             Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders,
             Set<Schema> schemas) {
+        this(
+                metricsManager,
+                config,
+                runtimeConfig,
+                registrar,
+                lock,
+                time,
+                invalidator,
+                userAgent,
+                lockDiagnosticComponents,
+                reloadingFactory,
+                timeLockFeedbackBackgroundTask,
+                timelockRequestBatcherProviders,
+                schemas,
+                TimeLockClient::createDefault);
+    }
+
+    public DefaultLockAndTimestampServiceFactory(
+            MetricsManager metricsManager,
+            AtlasDbConfig config,
+            Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
+            Consumer<Object> registrar,
+            Supplier<LockService> lock,
+            Supplier<ManagedTimestampService> time,
+            TimestampStoreInvalidator invalidator,
+            UserAgent userAgent,
+            Optional<LockDiagnosticComponents> lockDiagnosticComponents,
+            ReloadingFactory reloadingFactory,
+            Optional<TimeLockFeedbackBackgroundTask> timeLockFeedbackBackgroundTask,
+            Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders,
+            Set<Schema> schemas,
+            Function<TimelockService, TimeLockClient> timelockClientFactory) {
         this.metricsManager = metricsManager;
         this.config = config;
         this.runtimeConfig = runtimeConfig;
@@ -145,6 +180,7 @@ public DefaultLockAndTimestampServiceFactory(
         this.timeLockFeedbackBackgroundTask = timeLockFeedbackBackgroundTask;
         this.timelockRequestBatcherProviders = timelockRequestBatcherProviders;
         this.schemas = schemas;
+        this.timelockClientFactory = timelockClientFactory;
     }
 
     @Override
@@ -166,9 +202,8 @@ public LockAndTimestampServices createLockAndTimestampServices() {
         return withMetrics(metricsManager, withRefreshingLockService(lockAndTimestampServices));
     }
 
-    private static LockAndTimestampServices withRefreshingLockService(
-            LockAndTimestampServices lockAndTimestampServices) {
-        TimeLockClient timeLockClient = TimeLockClient.createDefault(lockAndTimestampServices.timelock());
+    private LockAndTimestampServices withRefreshingLockService(LockAndTimestampServices lockAndTimestampServices) {
+        TimeLockClient timeLockClient = timelockClientFactory.apply(lockAndTimestampServices.timelock());
         ProfilingTimelockService profilingService = ProfilingTimelockService.create(timeLockClient);
         return ImmutableLockAndTimestampServices.builder()
                 .from(lockAndTimestampServices)u}(ju  (37473508e06c194b315e01d89ff08da1a5152705j,v  Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javaj.v  modifiedj&v  Kj'v  Kj0v  K	j1v  https://github.com/palantir/atlasdb/blob/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj3v  https://github.com/palantir/atlasdb/raw/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj5v  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=04475e557117461d9d9cbed1725979320971e2c8j7v  X+  @@ -129,6 +129,7 @@
 import com.palantir.lock.client.TimeLockClient;
 import com.palantir.lock.client.metrics.TimeLockFeedbackBackgroundTask;
 import com.palantir.lock.impl.LockServiceImpl;
+import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -198,6 +199,11 @@ boolean allSafeForLogging() {
         return false;
     }
 
+    @Value.Default
+    Function<TimelockService, TimeLockClient> defaultTimelockClientFactory() {
+        return TimeLockClient::createDefault;
+    }
+
     abstract Optional<LockAndTimestampServiceFactory> lockAndTimestampServiceFactory();
 
     abstract UserAgent userAgent();
@@ -385,7 +391,8 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                         reloadingFactory(),
                         timeLockFeedbackBackgroundTask,
                         timelockRequestBatcherProviders(),
-                        schemas()));
+                        schemas(),
+                        defaultTimelockClientFactory()));
         LockAndTimestampServices lockAndTimestampServices = factory.createLockAndTimestampServices();
         adapter.setTimestampService(lockAndTimestampServices.managedTimestampService());
 u}(ju  (d9ea2be1085dee3aeee007ec848d0c60b713e0fcj,v  $atlasdb-workload-server/build.gradlej.v  modifiedj&v  Kj'v  K j0v  Kj1v  xhttps://github.com/palantir/atlasdb/blob/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-workload-server%2Fbuild.gradlej3v  whttps://github.com/palantir/atlasdb/raw/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-workload-server%2Fbuild.gradlej5v  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=04475e557117461d9d9cbed1725979320971e2c8j7v  X  @@ -11,6 +11,8 @@ dependencies {
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-config')
     implementation project(':atlasdb-impl-shared')
+    implementation project(':lock-api')
+    implementation project(':lock-impl')
 
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'u}(ju  (f0245c07a4ac6185212172813b1974b1fb10d598j,v  matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javaj.v  modifiedj&v  Kj'v  K j0v  Kj1v  https://github.com/palantir/atlasdb/blob/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj3v  https://github.com/palantir/atlasdb/raw/04475e557117461d9d9cbed1725979320971e2c8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj5v  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=04475e557117461d9d9cbed1725979320971e2c8j7v  X  @@ -28,6 +28,8 @@
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.conjure.java.api.config.service.UserAgent;
+import com.palantir.lock.client.TimeLockClient;
+import com.palantir.lock.client.UnreliableTimeLockService;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
@@ -138,6 +140,8 @@ public static AtlasDbTransactionStoreFactory createFromConfig(
                 .globalMetricsRegistry(metricsManager.getRegistry())
                 .globalTaggedMetricRegistry(metricsManager.getTaggedRegistry())
                 .runtimeConfigSupplier(atlasDbRuntimeConfig)
+                .defaultTimelockClientFactory(
+                        lockService -> TimeLockClient.createDefault(UnreliableTimeLockService.create(lockService), 100))
                 .build()
                 .serializable();
 u}(ju  (af5516bf477692b9272a197b0df9f1328e09c136j,v  lock-api/build.gradlej.v  modifiedj&v  Kj'v  K j0v  Kj1v  ihttps://github.com/palantir/atlasdb/blob/04475e557117461d9d9cbed1725979320971e2c8/lock-api%2Fbuild.gradlej3v  hhttps://github.com/palantir/atlasdb/raw/04475e557117461d9d9cbed1725979320971e2c8/lock-api%2Fbuild.gradlej5v  {https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fbuild.gradle?ref=04475e557117461d9d9cbed1725979320971e2c8j7v  Xq  @@ -19,6 +19,7 @@ dependencies {
 
     implementation project(":atlasdb-autobatch")
     implementation project(":atlasdb-commons")
+    implementation project(":atlasdb-buggify")
     implementation 'jakarta.ws.rs:jakarta.ws.rs-api'
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-databind'u}(ju  (fd5b31c1b0e6208a7f9308a03fa062d1b4247527j,v  Clock-api/src/main/java/com/palantir/lock/client/TimeLockClient.javaj.v  modifiedj&v  Kj'v  K j0v  Kj1v  https://github.com/palantir/atlasdb/blob/04475e557117461d9d9cbed1725979320971e2c8/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.javaj3v  https://github.com/palantir/atlasdb/raw/04475e557117461d9d9cbed1725979320971e2c8/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.javaj5v  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.java?ref=04475e557117461d9d9cbed1725979320971e2c8j7v  XZ  @@ -62,6 +62,17 @@ public static TimeLockClient createDefault(TimelockService timelockService) {
                 timelockService, timestampService, createLockRefresher(timelockService), asyncUnlocker);
     }
 
+    public static TimeLockClient createDefault(TimelockService timelockService, long lockRefreshIntervalMillis) {
+        AsyncTimeLockUnlocker asyncUnlocker = AsyncTimeLockUnlocker.create(timelockService);
+        RequestBatchingTimestampService timestampService =
+                RequestBatchingTimestampService.create(new TimelockServiceErrorDecorator(timelockService));
+        return new TimeLockClient(
+                timelockService,
+                timestampService,
+                createLockRefresher(timelockService, lockRefreshIntervalMillis),
+                asyncUnlocker);
+    }
+
     public static TimeLockClient withSynchronousUnlocker(TimelockService timelockService) {
         CloseableTimestampService timestampService = new TimelockServiceErrorDecorator(timelockService);
         return new TimeLockClient(
@@ -206,6 +217,12 @@ private static LockRefresher<LockToken> createLockRefresher(TimelockService time
         return new LockRefresher<>(refreshExecutor, lockTokenRefresher, REFRESH_INTERVAL_MILLIS);
     }
 
+    private static LockRefresher<LockToken> createLockRefresher(
+            TimelockService timelockService, long lockRefreshIntervalMillis) {
+        LockLeaseRefresher<LockToken> lockTokenRefresher = timelockService::refreshLockLeases;
+        return new LockRefresher<>(refreshExecutor, lockTokenRefresher, lockRefreshIntervalMillis);
+    }
+
     private static ScheduledExecutorService createSingleThreadScheduledExecutor(String operation) {
         return PTExecutors.newSingleThreadScheduledExecutor(
                 new NamedThreadFactory(TimeLockClient.class.getSimpleName() + "-" + operation, true));u}(ju  (d29d478bd4d200ee34caabdaf35a0ec2f2afb98dj,v  Nlock-api/src/main/java/com/palantir/lock/client/UnreliableTimeLockService.javaj.v  addedj&v  Kj'v  K j0v  Kj1v  https://github.com/palantir/atlasdb/blob/04475e557117461d9d9cbed1725979320971e2c8/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javaj3v  https://github.com/palantir/atlasdb/raw/04475e557117461d9d9cbed1725979320971e2c8/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javaj5v  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.java?ref=04475e557117461d9d9cbed1725979320971e2c8j7v  Xe  @@ -0,0 +1,147 @@
+/*
+ * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.palantir.lock.client;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.Sets;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
+import com.palantir.lock.v2.ClientLockingOptions;
+import com.palantir.lock.v2.LockImmutableTimestampResponse;
+import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.v2.LockResponse;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.v2.StartIdentifiedAtlasDbTransactionResponse;
+import com.palantir.lock.v2.TimelockService;
+import com.palantir.lock.v2.WaitForLocksRequest;
+import com.palantir.lock.v2.WaitForLocksResponse;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.timestamp.TimestampRange;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+
+/**
+ * A version of timelock service that has a chance to randomly lose locks during refresh or immediately after
+ * acquiring. This is useful for testing the behavior of clients when locks are lost.
+ */
+public final class UnreliableTimeLockService implements TimelockService {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(UnreliableTimeLockService.class);
+
+    private final TimelockService delegate;
+    private final BuggifyFactory buggify;
+
+    public static UnreliableTimeLockService create(TimelockService timelockService) {
+        return new UnreliableTimeLockService(timelockService, DefaultBuggifyFactory.INSTANCE);
+    }
+
+    @VisibleForTesting
+    UnreliableTimeLockService(TimelockService delegate, BuggifyFactory buggifyFactory) {
+        this.delegate = delegate;
+        this.buggify = buggifyFactory;
+    }
+
+    @Override
+    public boolean isInitialized() {
+        return delegate.isInitialized();
+    }
+
+    @Override
+    public long getFreshTimestamp() {
+        return delegate.getFreshTimestamp();
+    }
+
+    @Override
+    public long getCommitTimestamp(long startTs, LockToken commitLocksToken) {
+        return delegate.getCommitTimestamp(startTs, commitLocksToken);
+    }
+
+    @Override
+    public TimestampRange getFreshTimestamps(int numTimestampsRequested) {
+        return delegate.getFreshTimestamps(numTimestampsRequested);
+    }
+
+    @Override
+    public LockImmutableTimestampResponse lockImmutableTimestamp() {
+        return delegate.lockImmutableTimestamp();
+    }
+
+    @Override
+    public List<StartIdentifiedAtlasDbTransactionResponse> startIdentifiedAtlasDbTransactionBatch(int count) {
+        return delegate.startIdentifiedAtlasDbTransactionBatch(count);
+    }
+
+    @Override
+    public long getImmutableTimestamp() {
+        return delegate.getImmutableTimestamp();
+    }
+
+    @Override
+    public LockResponse lock(LockRequest request) {
+        LockResponse response = delegate.lock(request);
+        buggify.maybe(0.25).run(() -> {
+            log.info("BUGGIFY: Unlocking lock token {} after acquiring", SafeArg.of("token", response.getToken()));
+            delegate.unlock(Set.of(response.getToken()));
+        });
+        return response;
+    }
+
+    @Override
+    public LockResponse lock(LockRequest lockRequest, ClientLockingOptions options) {
+        LockResponse response = delegate.lock(lockRequest, options);
+        buggify.maybe(0.25).run(() -> {
+            log.info("BUGGIFY: Unlocking lock token {} after acquiring", SafeArg.of("token", response.getToken()));
+            delegate.unlock(Set.of(response.getToken()));
+        });
+        return response;
+    }
+
+    @Override
+    public WaitForLocksResponse waitForLocks(WaitForLocksRequest request) {
+        return delegate.waitForLocks(request);
+    }
+
+    @Override
+    public Set<LockToken> refreshLockLeases(Set<LockToken> tokens) {
+        Set<LockToken> tokensToRefresh = tokens.stream()
+                .filter(_token -> !buggify.maybe(0.10).asBoolean())
+                .collect(Collectors.toSet());
+        Set<LockToken> tokensToUnlock = Sets.difference(tokens, tokensToRefresh);
+        if (!tokensToUnlock.isEmpty()) {
+            log.info("BUGGIFY: Unlocking tokens on refresh: {}", SafeArg.of("tokens", tokensToUnlock));
+            unlock(tokensToUnlock);
+        }
+        return delegate.refreshLockLeases(tokensToRefresh);
+    }
+
+    @Override
+    public Set<LockToken> unlock(Set<LockToken> tokens) {
+        return delegate.unlock(tokens);
+    }
+
+    @Override
+    public void tryUnlock(Set<LockToken> tokens) {
+        delegate.tryUnlock(tokens);
+    }
+
+    @Override
+    public long currentTimeMillis() {
+        return delegate.currentTimeMillis();
+    }
+}u}(ju  (6c72c5854e133d15d7a4707c12042590d55e0695j,v  Qlock-api/src/test/java/com/palantir/lock/client/UnreliableTimelockClientTest.javaj.v  addedj&v  Kj'v  K j0v  Kj1v  https://github.com/palantir/atlasdb/blob/04475e557117461d9d9cbed1725979320971e2c8/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimelockClientTest.javaj3v  https://github.com/palantir/atlasdb/raw/04475e557117461d9d9cbed1725979320971e2c8/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimelockClientTest.javaj5v  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimelockClientTest.java?ref=04475e557117461d9d9cbed1725979320971e2c8j7v  XG  @@ -0,0 +1,137 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.client;
+
+import static org.mockito.Mockito.verify;
+
+import com.palantir.atlasdb.buggify.impl.NoOpBuggifyFactory;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.v2.ClientLockingOptions;
+import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.v2.WaitForLocksRequest;
+import java.util.Set;
+import java.util.UUID;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class UnreliableTimelockClientTest {
+
+    private static final LockToken LOCK_TOKEN = LockToken.of(UUID.fromString("00000000-0000-0000-0000-000000000000"));
+    private static final LockDescriptor LOCK_DESCRIPTOR = StringLockDescriptor.of("foo");
+    private static final LockRequest LOCK_REQUEST = LockRequest.of(Set.of(LOCK_DESCRIPTOR), 1);
+
+    @Mock
+    private TimeLockClient timeLockClient;
+
+    private UnreliableTimeLockService unreliableTimeLockService;
+
+    @Before
+    public void before() {
+        unreliableTimeLockService = new UnreliableTimeLockService(timeLockClient, NoOpBuggifyFactory.INSTANCE);
+    }
+
+    @Test
+    public void verifyIsInitializedCallsDelegate() {
+        unreliableTimeLockService.isInitialized();
+        verify(timeLockClient).isInitialized();
+    }
+
+    @Test
+    public void verifyGetFreshTimestampCallsDelegate() {
+        unreliableTimeLockService.getFreshTimestamp();
+        verify(timeLockClient).getFreshTimestamp();
+    }
+
+    @Test
+    public void verifyGetCommitTimestampsCallsDelegate() {
+        unreliableTimeLockService.getCommitTimestamp(1, LOCK_TOKEN);
+        verify(timeLockClient).getCommitTimestamp(1, LOCK_TOKEN);
+    }
+
+    @Test
+    public void verifyGetFreshTimestampsCallsDelegate() {
+        unreliableTimeLockService.getFreshTimestamps(1);
+        verify(timeLockClient).getFreshTimestamps(1);
+    }
+
+    @Test
+    public void verifyLockImmutableTimestampCallsDelegate() {
+        unreliableTimeLockService.lockImmutableTimestamp();
+        verify(timeLockClient).lockImmutableTimestamp();
+    }
+
+    @Test
+    public void verifyStartIdentifiedAtlasDbTransactionCallsDelegate() {
+        unreliableTimeLockService.startIdentifiedAtlasDbTransactionBatch(1);
+        verify(timeLockClient).startIdentifiedAtlasDbTransactionBatch(1);
+    }
+
+    @Test
+    public void verifyGetImmutableTimestampCallsDelegate() {
+        unreliableTimeLockService.getImmutableTimestamp();
+        verify(timeLockClient).getImmutableTimestamp();
+    }
+
+    @Test
+    public void verifyLockCallsDelegate() {
+        unreliableTimeLockService.lock(LOCK_REQUEST);
+        verify(timeLockClient).lock(LOCK_REQUEST);
+    }
+
+    @Test
+    public void verifyLockWithOptionsCallsDelegate() {
+        unreliableTimeLockService.lock(LOCK_REQUEST, ClientLockingOptions.getDefault());
+        verify(timeLockClient).lock(LOCK_REQUEST, ClientLockingOptions.getDefault());
+    }
+
+    @Test
+    public void verifyWaitForLocksCallsDelegate() {
+        WaitForLocksRequest waitForLocksRequest = WaitForLocksRequest.of(Set.of(LOCK_DESCRIPTOR), 1);
+        unreliableTimeLockService.waitForLocks(waitForLocksRequest);
+        verify(timeLockClient).waitForLocks(waitForLocksRequest);
+    }
+
+    @Test
+    public void verifyRefreshLockLeasesCallsDelegate() {
+        unreliableTimeLockService.refreshLockLeases(Set.of(LOCK_TOKEN));
+        verify(timeLockClient).refreshLockLeases(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyUnlockCallsDelegate() {
+        unreliableTimeLockService.unlock(Set.of(LOCK_TOKEN));
+        verify(timeLockClient).unlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyTryUnlockCallsDelegate() {
+        unreliableTimeLockService.tryUnlock(Set.of(LOCK_TOKEN));
+        verify(timeLockClient).tryUnlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyCurrentTimeMillisCallsDelegate() {
+        unreliableTimeLockService.currentTimeMillis();
+        verify(timeLockClient).currentTimeMillis();
+    }
+}u}(ju  (92b41a4f3220d1bdf849b4024cc98b1a38f996dej,v  settings.gradlej.v  modifiedj&v  Kj'v  K j0v  Kj1v  ahttps://github.com/palantir/atlasdb/blob/04475e557117461d9d9cbed1725979320971e2c8/settings.gradlej3v  `https://github.com/palantir/atlasdb/raw/04475e557117461d9d9cbed1725979320971e2c8/settings.gradlej5v  shttps://api.github.com/repos/palantir/atlasdb/contents/settings.gradle?ref=04475e557117461d9d9cbed1725979320971e2c8j7v  @@ -6,6 +6,7 @@ rootProject.name = 'atlasdb'
 
 include ":atlasdb-api"
 include ":atlasdb-autobatch"
+include ":atlasdb-buggify"
 include ":atlasdb-cassandra"
 include ":atlasdb-cassandra-integration-tests"
 include ":atlasdb-cassandra-multinode-tests"ueu(f0a45c32cdedbd2389f59fd5275b229f08568c47}(sha(f0a45c32cdedbd2389f59fd5275b229f08568c47node_idEC_kwDOAjP5fdoAKGYwYTQ1YzMyY2RlZGJkMjM4OWY1OWZkNTI3NWIyMjlmMDg1NjhjNDccommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-12T14:39:30Zu	committer}(jv  	Tom Papkejv  tpapke@palantir.comjv  2023-07-12T14:39:30Zumessageuse hasLogMessagetree}(jv  (883403cf65131aca1c0099df4db2d411d0244962url`https://api.github.com/repos/palantir/atlasdb/git/trees/883403cf65131aca1c0099df4db2d411d0244962ujv  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f0a45c32cdedbd2389f59fd5275b229f08568c47
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSuuyIACgkQmF9s0kaF
Iw0jCggAses/hlu9PWRA/N4YOin6bpqcXy227R3ublITDlCrRKJ8jqekLf1FghOf
8ZB4bBqh9N0KLQsTyjWWvE64+e8lcVBIHzJNTWeFf4iY77ipUIS4b9DOJ527m4N0
ac0pW/Em5ySdIN4sE39skU4AMsB4A6fED0OCSDDCn9LqpsQEwQVDa9Z3kTignS85
Zncd/AFhUyUic1TlbX+PEU6iKc15ligEaB0vyfCzaOqkbXdrAdfxw227DEHwJvgT
VHRiPEtcBBs4hslHIzszVEkd14kVBanhG8kijWr1JpGW44xQHMIBovKs31Mi1z1j
/XVqJryi/VIvGUEjfhHS3/M3wIxtHQ==
=Pr6d
-----END PGP SIGNATURE-----payloadtree 883403cf65131aca1c0099df4db2d411d0244962
parent 4be234f4e535819287bcf3fb5360ffe5a0d5d9c5
author Tom Papke <tpapke@palantir.com> 1689172770 +0100
committer Tom Papke <tpapke@palantir.com> 1689172770 +0100

use hasLogMessage
uujv  ^https://api.github.com/repos/palantir/atlasdb/commits/f0a45c32cdedbd2389f59fd5275b229f08568c47html_urlShttps://github.com/palantir/atlasdb/commit/f0a45c32cdedbd2389f59fd5275b229f08568c47comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f0a45c32cdedbd2389f59fd5275b229f08568c47/commentsjv  }(login	ToemmscheidJbojv  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jv  &https://api.github.com/users/Toemmschejv  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujv  }(jv  	Toemmschejv  Jbojv  MDQ6VXNlcjQzNjc1NDkwjv  4https://avatars.githubusercontent.com/u/43675490?v=4jv  h5jv  &https://api.github.com/users/Toemmschejv  https://github.com/Toemmschejv  0https://api.github.com/users/Toemmsche/followersjw  =https://api.github.com/users/Toemmsche/following{/other_user}jw  6https://api.github.com/users/Toemmsche/gists{/gist_id}jw  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jw  4https://api.github.com/users/Toemmsche/subscriptionsj	w  +https://api.github.com/users/Toemmsche/orgsjw  ,https://api.github.com/users/Toemmsche/reposj
w  7https://api.github.com/users/Toemmsche/events{/privacy}jw  6https://api.github.com/users/Toemmsche/received_eventsjw  Userjw  uparents]}(jv  (4be234f4e535819287bcf3fb5360ffe5a0d5d9c5jv  ^https://api.github.com/repos/palantir/atlasdb/commits/4be234f4e535819287bcf3fb5360ffe5a0d5d9c5jv  Shttps://github.com/palantir/atlasdb/commit/4be234f4e535819287bcf3fb5360ffe5a0d5d9c5uastats}(totalK
	additionsK	deletionsKufiles]}(jv  (3862647184940478e79099116e78da7f6038c515filenameKatlasdb-commons/src/test/java/com/palantir/util/IndexEncodingUtilsTest.javastatusmodifiedj-w  Kj.w  KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/f0a45c32cdedbd2389f59fd5275b229f08568c47/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f0a45c32cdedbd2389f59fd5275b229f08568c47/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.java?ref=f0a45c32cdedbd2389f59fd5275b229f08568c47patchX]  @@ -74,7 +74,7 @@ public void canLookupValidChecksumType() {
     public void cannotLookupUnknownChecksumType() {
         assertThatLoggableExceptionThrownBy(() -> ChecksumType.valueOf(-1))
                 .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageStartingWith("Unknown checksum type ID")
+                .hasLogMessage("Unknown checksum type ID")
                 .hasExactlyArgs(SafeArg.of("checksumTypeId", -1));
     }
 
@@ -120,7 +120,7 @@ public void encodeFailsForUnknownKeysInValueMap() {
         assertThatLoggableExceptionThrownBy(() -> IndexEncodingUtils.encode(
                         KEYS, ImmutableMap.of(wrap("unknown-key"), 0L), Function.identity(), checksumType))
                 .isExactlyInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageStartingWith("Value map uses keys that are not in the provided set of keys")
+                .hasLogMessage("Value map uses keys that are not in the provided set of keys")
                 .hasExactlyArgs(UnsafeArg.of("unknownKeys", ImmutableSet.of(wrap("unknown-key"))));
     }
 
@@ -132,7 +132,7 @@ public void decodeFailsForInvalidIndices() {
         assertThatLoggableExceptionThrownBy(
                         () -> IndexEncodingUtils.decode(encodedWithInvalidIndices, Function.identity()))
                 .isExactlyInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageStartingWith("Index map contains invalid index")
+                .hasLogMessage("Index map contains invalid index")
                 .hasExactlyArgs(SafeArg.of("index", KEYS.size()), SafeArg.of("keyListSize", KEYS.size()));
     }
 
@@ -147,7 +147,7 @@ public void integrityCheckFailsForDifferentKeyList() {
         assertThatLoggableExceptionThrownBy(
                         () -> IndexEncodingUtils.decode(encodedWithModifiedKeyList, Function.identity()))
                 .isExactlyInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageStartingWith("Key list integrity check failed")
+                .hasLogMessage("Key list integrity check failed")
                 .hasExactlyArgs(
                         UnsafeArg.of("keyList", modifiedKeyList),
                         SafeArg.of("actualChecksum", actualChecksum),
@@ -165,7 +165,7 @@ public void integrityCheckFailsForDifferentChecksum() {
         assertThatLoggableExceptionThrownBy(
                         () -> IndexEncodingUtils.decode(encodedWithModifiedChecksum, Function.identity()))
                 .isExactlyInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageStartingWith("Key list integrity check failed")
+                .hasLogMessage("Key list integrity check failed")
                 .hasExactlyArgs(
                         UnsafeArg.of("keyList", encoded.keyList()),
                         SafeArg.of("actualChecksum", encoded.keyListChecksum()),uau(54545b6d33158c18f41df0d7b85a4536c946e72f}(sha(54545b6d33158c18f41df0d7b85a4536c946e72fnode_idEC_kwDOAjP5fdoAKDU0NTQ1YjZkMzMxNThjMThmNDFkZjBkN2I4NWE0NTM2Yzk0NmU3MmYcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-04-14T19:42:09Zu	committer}(jJw  svc-autoreleasejLw  -pd-foundry-infrastructure-notify@palantir.comjNw  2023-04-14T19:42:09ZumessageAutorelease 0.837.0

[skip ci]tree}(jBw  (67ad97528c8b87f1dd051c37de594c30a7e3583burl`https://api.github.com/repos/palantir/atlasdb/git/trees/67ad97528c8b87f1dd051c37de594c30a7e3583bujZw  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/54545b6d33158c18f41df0d7b85a4536c946e72f
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmQ5rJYACgkQhbrR8ip7mDDS6QEAp9YCB/yvSKHTrm19zhcvne8b
4Wjb3mk2JG9sQVxdizEA/2i+FHPaVNsexcvdhS5RQ/vLIoxYKdDfYEjS+vLxz4x3
=+QAE
-----END PGP SIGNATURE-----
payloadX0  tree 67ad97528c8b87f1dd051c37de594c30a7e3583b
parent 1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1681501329 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1681501329 +0000

Autorelease 0.837.0

[skip ci]uujZw  ^https://api.github.com/repos/palantir/atlasdb/commits/54545b6d33158c18f41df0d7b85a4536c946e72fhtml_urlShttps://github.com/palantir/atlasdb/commit/54545b6d33158c18f41df0d7b85a4536c946e72fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/54545b6d33158c18f41df0d7b85a4536c946e72f/commentsjHw  }(loginsvc-autoreleaseidJ(jDw  MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5jZw  ,https://api.github.com/users/svc-autoreleasejhw  "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminujPw  }(jmw  svc-autoreleasejow  J(jDw  MDQ6VXNlcjUxNzE4MzQ2jqw  4https://avatars.githubusercontent.com/u/51718346?v=4jsw  h5jZw  ,https://api.github.com/users/svc-autoreleasejhw  "https://github.com/svc-autoreleasejvw  6https://api.github.com/users/svc-autorelease/followersjxw  Chttps://api.github.com/users/svc-autorelease/following{/other_user}jzw  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j|w  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j~w  :https://api.github.com/users/svc-autorelease/subscriptionsjw  1https://api.github.com/users/svc-autorelease/orgsjw  2https://api.github.com/users/svc-autorelease/reposjw  =https://api.github.com/users/svc-autorelease/events{/privacy}jw  <https://api.github.com/users/svc-autorelease/received_eventsjw  Userjw  uparents]}(jBw  (1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9jZw  ^https://api.github.com/repos/palantir/atlasdb/commits/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9jhw  Shttps://github.com/palantir/atlasdb/commit/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9uastats}(totalK 	additionsK 	deletionsK ufiles]}(jBw  (7cd0781ff20be0bdee6ed7080da226fe65bc85c7filename changelog/0.837.0/pr-6527.v2.ymlstatusrenamedjw  K jw  K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/54545b6d33158c18f41df0d7b85a4536c946e72f/changelog%2F0.837.0%2Fpr-6527.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/54545b6d33158c18f41df0d7b85a4536c946e72f/changelog%2F0.837.0%2Fpr-6527.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.837.0%2Fpr-6527.v2.yml?ref=54545b6d33158c18f41df0d7b85a4536c946e72fprevious_filename$changelog/@unreleased/pr-6527.v2.ymluau(55a63fcbd4fe8849ad0850dd9ebe1fde671071b5}(sha(55a63fcbd4fe8849ad0850dd9ebe1fde671071b5node_idEC_kwDOAjP5fdoAKDU1YTYzZmNiZDRmZTg4NDlhZDA4NTBkZDllYmUxZmRlNjcxMDcxYjUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-16T21:00:23Zu	committer}(jw  Jeremy Kongjw  jkong@palantir.comjw  2023-05-18T15:14:43Zumessageblehtree}(jw  (61254f67dafe85efc642883f385788c060397eccurl`https://api.github.com/repos/palantir/atlasdb/git/trees/61254f67dafe85efc642883f385788c060397eccujw  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/55a63fcbd4fe8849ad0850dd9ebe1fde671071b5
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRmQOMACgkQTLdFKain
zjx+wAf/cuj2ACg1ZUU6FwmHKCuNuh4qk1rEpn/ucJvhZCPSa45hkbPzqA42u8t6
x7hk3OnJQD02sGhU9Uc+q7cyS7YM4u/z1bf7ypRkzpbruyvy0cGC+bnyMSA9bPgt
T2qtf1oy+Mu6D+TVN1TjKXsC6E5aOy/5mbj689UE/XiR8zQUU+O5jC/KPIeOKwXe
61RIfoE6LzZcN3PB9rpBRfSzx5WL2P6nZH7rpEQd3uitjkwzWdDdyjY949F29MA6
5uLjGqzDwXEryWBhHbnLJEc3uT0Vw9kZcPdqdXLfH9YuxOgmOSasnbC2ygYuIUIA
Z6iDOB5SYmT9Xk7MueoHBP9FKpgVCQ==
=3ITd
-----END PGP SIGNATURE-----payloadtree 61254f67dafe85efc642883f385788c060397ecc
parent ffb3de76c86ad818025ddf735ec2a2259dd0d443
author Jeremy Kong <jkong@palantir.com> 1684270823 +0100
committer Jeremy Kong <jkong@palantir.com> 1684422883 +0100

bleh
uujw  ^https://api.github.com/repos/palantir/atlasdb/commits/55a63fcbd4fe8849ad0850dd9ebe1fde671071b5html_urlShttps://github.com/palantir/atlasdb/commit/55a63fcbd4fe8849ad0850dd9ebe1fde671071b5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/55a63fcbd4fe8849ad0850dd9ebe1fde671071b5/commentsjw  }(login
jeremyk-91idJZ jw  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jw  'https://api.github.com/users/jeremyk-91jw  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujw  }(jw  
jeremyk-91jw  JZ jw  MDQ6VXNlcjU5NTU1MTA=jw  3https://avatars.githubusercontent.com/u/5955510?v=4jw  h5jw  'https://api.github.com/users/jeremyk-91jw  https://github.com/jeremyk-91jw  1https://api.github.com/users/jeremyk-91/followersjw  >https://api.github.com/users/jeremyk-91/following{/other_user}jw  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jw  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jw  5https://api.github.com/users/jeremyk-91/subscriptionsjw  ,https://api.github.com/users/jeremyk-91/orgsjw  -https://api.github.com/users/jeremyk-91/reposjw  8https://api.github.com/users/jeremyk-91/events{/privacy}jw  7https://api.github.com/users/jeremyk-91/received_eventsjw  Userjx  uparents]}(jw  (ffb3de76c86ad818025ddf735ec2a2259dd0d443jw  ^https://api.github.com/repos/palantir/atlasdb/commits/ffb3de76c86ad818025ddf735ec2a2259dd0d443jw  Shttps://github.com/palantir/atlasdb/commit/ffb3de76c86ad818025ddf735ec2a2259dd0d443uastats}(totalK*	additionsK	deletionsKufiles]}(jw  (029e07eab36ffb73637229689a3d778d876d6ad4filenameXatlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/OracleDdlConfigTest.javastatusmodifiedjx  Kjx  KchangesK*blob_urlhttps://github.com/palantir/atlasdb/blob/55a63fcbd4fe8849ad0850dd9ebe1fde671071b5/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleDdlConfigTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/55a63fcbd4fe8849ad0850dd9ebe1fde671071b5/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleDdlConfigTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleDdlConfigTest.java?ref=55a63fcbd4fe8849ad0850dd9ebe1fde671071b5patchX  @@ -23,8 +23,6 @@
 import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.databind.json.JsonMapper;
 import com.google.common.collect.ImmutableList;
-import com.palantir.atlasdb.keyvalue.api.Namespace;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.OverflowMigrationState;
 import com.palantir.conjure.java.serialization.ObjectMappers;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
@@ -80,10 +78,10 @@ public void overflowTablePrefixesMustNotBeginWithUnderscore() {
     @Test
     public void overflowPrefixHasMaximumLengthSix() {
         assertThatCode(() ->
-                createLegacyCompatibleOracleConfigWithPrefixes(getPrefixWithLength(7), getPrefixWithLength(6)))
+                        createLegacyCompatibleOracleConfigWithPrefixes(getPrefixWithLength(7), getPrefixWithLength(6)))
                 .doesNotThrowAnyException();
         assertThatThrownBy(() ->
-                createLegacyCompatibleOracleConfigWithPrefixes(getPrefixWithLength(7), getPrefixWithLength(7)))
+                        createLegacyCompatibleOracleConfigWithPrefixes(getPrefixWithLength(7), getPrefixWithLength(7)))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("'overflowTablePrefix' exceeds the length limit")
                 .hasMessageContaining("6");
@@ -92,7 +90,7 @@ public void overflowPrefixHasMaximumLengthSix() {
     @Test
     public void tablePrefixHasMaximumLengthSeven() {
         assertThatThrownBy(() ->
-                createLegacyCompatibleOracleConfigWithPrefixes(getPrefixWithLength(8), getPrefixWithLength(6)))
+                        createLegacyCompatibleOracleConfigWithPrefixes(getPrefixWithLength(8), getPrefixWithLength(6)))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("'tablePrefix' exceeds the length limit")
                 .hasMessageContaining("7");
@@ -101,36 +99,36 @@ public void tablePrefixHasMaximumLengthSeven() {
     @Test
     public void longPrefixesAllowedIfConfigSpecificallyAllowsThem() {
         assertThatCode(() -> createLongNameSupportingOracleConfigWithPrefixes(
-                getPrefixWithLength(42), getPrefixWithLength(41)))
+                        getPrefixWithLength(42), getPrefixWithLength(41)))
                 .doesNotThrowAnyException();
         assertThatCode(() -> createLongNameSupportingOracleConfigWithPrefixes(
-                getPrefixWithLength(41), getPrefixWithLength(42)))
+                        getPrefixWithLength(41), getPrefixWithLength(42)))
                 .doesNotThrowAnyException();
     }
 
     @Test
     @SuppressWarnings("ResultOfMethodCallIgnored") // We're interested in whether this throws an exception or not!
     public void tableMappingAndLongNameSupportNotAllowedTogether() {
         assertThatThrownBy(() -> ImmutableOracleDdlConfig.builder()
-                .tablePrefix(getPrefixWithLength(5))
-                .overflowTablePrefix(getPrefixWithLength(4))
-                .overflowMigrationState(OverflowMigrationState.FINISHED)
-                .longIdentifierNamesSupported(true)
-                .useTableMapping(true)
-                .build())
+                        .tablePrefix(getPrefixWithLength(5))
+                        .overflowTablePrefix(getPrefixWithLength(4))
+                        .overflowMigrationState(OverflowMigrationState.FINISHED)
+                        .longIdentifierNamesSupported(true)
+                        .useTableMapping(true)
+                        .build())
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("The table mapper does not support long identifier names");
     }
 
     @Test
     public void excessivelyLongPrefixesStillDisallowedEvenWithLongNameSupport() {
         assertThatThrownBy(() -> createLongNameSupportingOracleConfigWithPrefixes(
-                getPrefixWithLength(57), getPrefixWithLength(14)))
+                        getPrefixWithLength(57), getPrefixWithLength(14)))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("'tablePrefix' exceeds the length limit")
                 .hasMessageContaining("56");
         assertThatThrownBy(() -> createLongNameSupportingOracleConfigWithPrefixes(
-                getPrefixWithLength(22), getPrefixWithLength(57)))
+                        getPrefixWithLength(22), getPrefixWithLength(57)))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("'overflowTablePrefix' exceeds the length limit")
                 .hasMessageContaining("56");
@@ -139,9 +137,9 @@ public void excessivelyLongPrefixesStillDisallowedEvenWithLongNameSupport() {
     @Test
     public void tableMappingIsByDefaultOn() {
         assertThat(ImmutableOracleDdlConfig.builder()
-                .overflowMigrationState(OverflowMigrationState.FINISHED)
-                .build()
-                .useTableMapping())
+                        .overflowMigrationState(OverflowMigrationState.FINISHED)
+                        .build()
+                        .useTableMapping())
                 .isTrue();
     }
 
@@ -150,10 +148,10 @@ public void canSetTableMappingExplicitly() {
         List<Boolean> values = ImmutableList.of(false, true);
         for (boolean value : values) {
             assertThat(ImmutableOracleDdlConfig.builder()
-                    .overflowMigrationState(OverflowMigrationState.FINISHED)
-                    .forceTableMapping(value)
-                    .build()
-                    .useTableMapping())
+                            .overflowMigrationState(OverflowMigrationState.FINISHED)
+                            .forceTableMapping(value)
+                            .build()
+                            .useTableMapping())
                     .isEqualTo(value);
         }
     }uauu      (4460b0be63853d1a2490cef11f6bcb58660f5625}(sha(4460b0be63853d1a2490cef11f6bcb58660f5625node_idEC_kwDOAjP5fdoAKDQ0NjBiMGJlNjM4NTNkMWEyNDkwY2VmMTFmNmJjYjU4NjYwZjU2MjUcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-08-15T17:33:18Zu	committer}(j8x  GitHubj:x  noreply@github.comj<x  2023-08-15T17:33:18Zumessage;Excavator:  Update conjure plugins and dependencies (#6690)tree}(j0x  (2881b0e17685321ebee8e732dfee48f15c7f7a12url`https://api.github.com/repos/palantir/atlasdb/git/trees/2881b0e17685321ebee8e732dfee48f15c7f7a12ujHx  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4460b0be63853d1a2490cef11f6bcb58660f5625
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk27beCRBK7hj4Ov3rIwAAVlgIAI6Ugkf3Y8k3QjXO8b3gVixw
xkP0XXHp/x9Rfq4iYMGTB41nNLrJ/e/EfNmMijxmI3UZeyRxrCdAguBu8G+8LEXm
I6Sj2W1BBldDfcB9A+hzjl6hUf4c0q2jNpiPUozgsZz6T4NBuUusD2WjfPHow3bB
LIFfK01H/hGU83HBmRKAkaU4DF2N5TPrX2YPGeFSEBTF3o0vvEpsPET9vXq2f96c
26mo2rNAEflR5f2Jg94vQaCQK0VpvzVlOQ4CCGED3vOqiP1PjSEQGJO/47M+0bga
Y1lUUbVtCZnzdNmdMgEbOpsmQ/yP5JBo+dkfADhJFKLweDCrt9sGiBpnuIiHKdY=
=cIOR
-----END PGP SIGNATURE-----
payloadX0  tree 2881b0e17685321ebee8e732dfee48f15c7f7a12
parent e822564137fd950a66e9ec863f7b8b864c1fc9d2
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1692120798 -0700
committer GitHub <noreply@github.com> 1692120798 +0000

Excavator:  Update conjure plugins and dependencies (#6690)

 uujHx  ^https://api.github.com/repos/palantir/atlasdb/commits/4460b0be63853d1a2490cef11f6bcb58660f5625html_urlShttps://github.com/palantir/atlasdb/commit/4460b0be63853d1a2490cef11f6bcb58660f5625comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4460b0be63853d1a2490cef11f6bcb58660f5625/commentsj6x  }(loginsvc-excavator-botidJj2x  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5jHx  .https://api.github.com/users/svc-excavator-botjVx  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj>x  }(j[x  web-flowj]x  J/j2x  MDQ6VXNlcjE5ODY0NDQ3j_x  4https://avatars.githubusercontent.com/u/19864447?v=4jax  h5jHx  %https://api.github.com/users/web-flowjVx  https://github.com/web-flowjdx  /https://api.github.com/users/web-flow/followersjfx  <https://api.github.com/users/web-flow/following{/other_user}jhx  5https://api.github.com/users/web-flow/gists{/gist_id}jjx  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jlx  3https://api.github.com/users/web-flow/subscriptionsjnx  *https://api.github.com/users/web-flow/orgsjpx  +https://api.github.com/users/web-flow/reposjrx  6https://api.github.com/users/web-flow/events{/privacy}jtx  5https://api.github.com/users/web-flow/received_eventsjvx  Userjxx  uparents]}(j0x  (e822564137fd950a66e9ec863f7b8b864c1fc9d2jHx  ^https://api.github.com/repos/palantir/atlasdb/commits/e822564137fd950a66e9ec863f7b8b864c1fc9d2jVx  Shttps://github.com/palantir/atlasdb/commit/e822564137fd950a66e9ec863f7b8b864c1fc9d2uastats}(totalKt	additionsK:	deletionsK:ufiles](}(j0x  (ad27cc6a6d47b92783708218dd0e8e63c600102afilename
versions.lockstatusmodifiedjx  K8jx  K8changesKpblob_url_https://github.com/palantir/atlasdb/blob/4460b0be63853d1a2490cef11f6bcb58660f5625/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/4460b0be63853d1a2490cef11f6bcb58660f5625/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=4460b0be63853d1a2490cef11f6bcb58660f5625patchXY6  @@ -8,24 +8,24 @@ com.boundary:high-scale-lib:1.0.6 (2 constraints: 9d14d4a0)
 com.clearspring.analytics:stream:2.5.2 (1 constraints: 970f7788)
 com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
-com.fasterxml.jackson.core:jackson-annotations:2.15.2 (24 constraints: c98164d0)
-com.fasterxml.jackson.core:jackson-core:2.15.2 (22 constraints: c9b52a9f)
-com.fasterxml.jackson.core:jackson-databind:2.15.2 (37 constraints: 17ba4690)
-com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.15.2 (2 constraints: e3333101)
-com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.15.2 (1 constraints: 7f1c9ea4)
+com.fasterxml.jackson.core:jackson-annotations:2.15.2 (24 constraints: ca813fd3)
+com.fasterxml.jackson.core:jackson-core:2.15.2 (22 constraints: cab506a0)
+com.fasterxml.jackson.core:jackson-databind:2.15.2 (37 constraints: 1bba549a)
+com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.15.2 (2 constraints: e4333401)
+com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.15.2 (1 constraints: 801ca1a4)
 com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.15.2 (4 constraints: 2344e62b)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.15.2 (4 constraints: 353f1bb1)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.2 (3 constraints: 6d300c5f)
-com.fasterxml.jackson.datatype:jackson-datatype-joda:2.15.2 (2 constraints: 322bf7af)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.2 (3 constraints: 6d300c5f)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.15.2 (4 constraints: 363f72b1)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.2 (3 constraints: 6e30395f)
+com.fasterxml.jackson.datatype:jackson-datatype-joda:2.15.2 (2 constraints: 332b24b0)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.2 (3 constraints: 6e30395f)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.15.2 (2 constraints: dd2ecb69)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.15.2 (1 constraints: 41197bbb)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.15.2 (1 constraints: 42197ebb)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.15.2 (2 constraints: 251d9309)
-com.fasterxml.jackson.module:jackson-module-afterburner:2.15.2 (1 constraints: 9b1c99a6)
+com.fasterxml.jackson.module:jackson-module-afterburner:2.15.2 (1 constraints: 9c1c9ca6)
 com.fasterxml.jackson.module:jackson-module-blackbird:2.15.2 (1 constraints: b40e625e)
 com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.15.2 (2 constraints: dd2ecb69)
 com.fasterxml.jackson.module:jackson-module-parameter-names:2.15.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.6 (13 constraints: 34ce7029)
+com.github.ben-manes.caffeine:caffeine:3.1.7 (13 constraints: 35ce362a)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -45,11 +45,11 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: 1595607f)
+com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f994805e)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
-com.google.guava:guava:32.1.1-jre (48 constraints: d13c9656)
+com.google.guava:guava:32.1.2-jre (48 constraints: 6c41de7a)
 com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava (1 constraints: bd17c918)
 com.google.j2objc:j2objc-annotations:2.8 (1 constraints: be09f5a0)
 com.google.protobuf:protobuf-java:3.21.9 (1 constraints: 4105453b)
@@ -67,28 +67,28 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:7.14.0 (5 constraints: 8754055e)
-com.palantir.conjure.java:conjure-undertow-annotations:7.14.0 (1 constraints: 3e05593b)
-com.palantir.conjure.java:conjure-undertow-lib:7.14.0 (2 constraints: 7d1cc7ae)
+com.palantir.conjure.java:conjure-lib:7.17.0 (5 constraints: 93541c65)
+com.palantir.conjure.java:conjure-undertow-annotations:7.17.0 (1 constraints: 4105623b)
+com.palantir.conjure.java:conjure-undertow-lib:7.17.0 (2 constraints: 831c99af)
 com.palantir.conjure.java.api:errors:2.35.0 (6 constraints: 4269c872)
 com.palantir.conjure.java.api:service-config:2.35.0 (5 constraints: 764da6cb)
 com.palantir.conjure.java.api:ssl-config:2.35.0 (4 constraints: 983b9c6e)
-com.palantir.conjure.java.runtime:client-config:7.57.0 (6 constraints: cc6b5039)
-com.palantir.conjure.java.runtime:conjure-java-annotations:7.57.0 (1 constraints: c918979e)
-com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.57.0 (2 constraints: cd21197b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.57.0 (6 constraints: 486ed394)
-com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.57.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.57.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.57.0 (1 constraints: c918979e)
-com.palantir.conjure.java.runtime:keystores:7.57.0 (3 constraints: 262af060)
-com.palantir.conjure.java.runtime:refresh-utils:7.57.0 (2 constraints: 0d1e7945)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.86.0 (2 constraints: 7f29c301)
-com.palantir.dialogue:dialogue-blocking-channels:3.86.0 (2 constraints: e12337b4)
-com.palantir.dialogue:dialogue-clients:3.86.0 (1 constraints: 4305633b)
-com.palantir.dialogue:dialogue-core:3.86.0 (3 constraints: 833de8e1)
-com.palantir.dialogue:dialogue-futures:3.86.0 (3 constraints: da334bc0)
-com.palantir.dialogue:dialogue-serde:3.86.0 (3 constraints: c12e6ea4)
-com.palantir.dialogue:dialogue-target:3.86.0 (7 constraints: 9e760e64)
+com.palantir.conjure.java.runtime:client-config:7.60.0 (6 constraints: ae6b012d)
+com.palantir.conjure.java.runtime:conjure-java-annotations:7.60.0 (1 constraints: c318869e)
+com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.60.0 (2 constraints: c721087b)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.60.0 (6 constraints: 3f6e2289)
+com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.60.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.60.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.60.0 (1 constraints: c318869e)
+com.palantir.conjure.java.runtime:keystores:7.60.0 (3 constraints: 1a2aae5f)
+com.palantir.conjure.java.runtime:refresh-utils:7.60.0 (2 constraints: 071e6845)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.90.0 (2 constraints: 8029e702)
+com.palantir.dialogue:dialogue-blocking-channels:3.90.0 (2 constraints: d72335b3)
+com.palantir.dialogue:dialogue-clients:3.90.0 (1 constraints: 3e05553b)
+com.palantir.dialogue:dialogue-core:3.90.0 (3 constraints: 7f3d6ae3)
+com.palantir.dialogue:dialogue-futures:3.90.0 (3 constraints: cb3374bd)
+com.palantir.dialogue:dialogue-serde:3.90.0 (3 constraints: bd2e3ba3)
+com.palantir.dialogue:dialogue-target:3.90.0 (7 constraints: 8676355a)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -98,27 +98,27 @@ com.palantir.goethe:goethe:0.11.0 (1 constraints: 3405263b)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
 com.palantir.ri:resource-identifier:2.6.0 (3 constraints: aa2f1337)
-com.palantir.safe-logging:logger:3.5.0 (24 constraints: c4a4cd59)
-com.palantir.safe-logging:logger-slf4j:3.5.0 (1 constraints: 030e6242)
-com.palantir.safe-logging:logger-spi:3.5.0 (2 constraints: 151e387b)
-com.palantir.safe-logging:preconditions:3.5.0 (31 constraints: 30182f82)
-com.palantir.safe-logging:safe-logging:3.5.0 (28 constraints: 0ed394c2)
+com.palantir.safe-logging:logger:3.6.0 (24 constraints: e3a4ad96)
+com.palantir.safe-logging:logger-slf4j:3.6.0 (1 constraints: 040e6542)
+com.palantir.safe-logging:logger-spi:3.6.0 (2 constraints: 171e6d7b)
+com.palantir.safe-logging:preconditions:3.6.0 (31 constraints: 52187ec7)
+com.palantir.safe-logging:safe-logging:3.6.0 (28 constraints: 2dd327f7)
 com.palantir.safethreadlocalrandom:safe-thread-local-random:0.1.0 (3 constraints: 933225f9)
 com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
 com.palantir.tokens:auth-tokens:3.18.0 (5 constraints: 4d5c8992)
-com.palantir.tracing:tracing:6.17.0 (8 constraints: f97d045e)
-com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 1745b4f5)
-com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 46199abb)
-com.palantir.tritium:tritium-api:0.68.0 (6 constraints: 64520bd6)
-com.palantir.tritium:tritium-caffeine:0.68.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-core:0.68.0 (5 constraints: 6d439821)
-com.palantir.tritium:tritium-lib:0.68.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-metrics:0.68.0 (7 constraints: 116c5de8)
-com.palantir.tritium:tritium-proxy:0.68.0 (1 constraints: 860e8f59)
-com.palantir.tritium:tritium-registry:0.68.0 (13 constraints: b4efdfbd)
-com.palantir.tritium:tritium-slf4j:0.68.0 (2 constraints: c1138f70)
-com.palantir.tritium:tritium-time:0.68.0 (1 constraints: 860e8f59)
-com.palantir.tritium:tritium-tracing:0.68.0 (1 constraints: 860e8f59)
+com.palantir.tracing:tracing:6.18.0 (8 constraints: 007ef461)
+com.palantir.tracing:tracing-api:6.18.0 (5 constraints: 1b45c0f6)
+com.palantir.tracing:tracing-jersey:6.18.0 (1 constraints: 47199dbb)
+com.palantir.tritium:tritium-api:0.72.0 (6 constraints: 4b52fbcc)
+com.palantir.tritium:tritium-caffeine:0.72.0 (1 constraints: 3c05433b)
+com.palantir.tritium:tritium-core:0.72.0 (5 constraints: 5943101c)
+com.palantir.tritium:tritium-lib:0.72.0 (1 constraints: 3c05433b)
+com.palantir.tritium:tritium-metrics:0.72.0 (7 constraints: f36badda)
+com.palantir.tritium:tritium-proxy:0.72.0 (1 constraints: 810e8159)
+com.palantir.tritium:tritium-registry:0.72.0 (13 constraints: 7cef3185)
+com.palantir.tritium:tritium-slf4j:0.72.0 (2 constraints: bc138170)
+com.palantir.tritium:tritium-time:0.72.0 (1 constraints: 810e8159)
+com.palantir.tritium:tritium-tracing:0.72.0 (1 constraints: 810e8159)
 com.squareup:javapoet:1.13.0 (4 constraints: 102cc1ed)
 com.squareup:kotlinpoet:1.11.0 (1 constraints: 6a0c7f0d)
 com.thinkaurelius.thrift:thrift-server:0.3.7 (1 constraints: 980f6c88)
@@ -145,7 +145,7 @@ io.dropwizard:dropwizard-util:2.1.2 (12 constraints: 6eb0fdf0)
 io.dropwizard:dropwizard-validation:2.1.2 (8 constraints: 85778aa6)
 io.dropwizard.logback:logback-throttling-appender:1.1.9 (1 constraints: 830ed74f)
 io.dropwizard.metrics:metrics-annotation:4.2.12 (3 constraints: 6c2e5a89)
-io.dropwizard.metrics:metrics-core:4.2.19 (29 constraints: f5d02e7e)
+io.dropwizard.metrics:metrics-core:4.2.19 (29 constraints: fad0e18f)
 io.dropwizard.metrics:metrics-healthchecks:4.2.12 (5 constraints: 4b4964b0)
 io.dropwizard.metrics:metrics-jersey2:4.2.12 (1 constraints: 5c0e744e)
 io.dropwizard.metrics:metrics-jetty9:4.2.12 (3 constraints: 2729b8ff)
@@ -200,7 +200,7 @@ jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.5 (6 constraints: b1596f2f)
 junit:junit:4.13.2 (8 constraints: 5a9c5baf)
-net.bytebuddy:byte-buddy:1.14.4 (3 constraints: 41252092)
+net.bytebuddy:byte-buddy:1.14.5 (3 constraints: 42256692)
 net.bytebuddy:byte-buddy-agent:1.14.4 (1 constraints: 440b42de)
 net.java.dev.jna:jna:4.1.0 (2 constraints: 6e1bbbad)
 net.jpountz.lz4:lz4:1.3.0 (2 constraints: 971453a0)
@@ -225,7 +225,7 @@ org.assertj:assertj-guava:3.24.2 (1 constraints: 3d05473b)
 org.awaitility:awaitility:4.2.0 (2 constraints: c71a893b)
 org.caffinitas.ohc:ohc-core:0.3.4 (1 constraints: 950f6988)
 org.checkerframework:checker-compat-qual:2.5.5 (2 constraints: 1f1d1717)
-org.checkerframework:checker-qual:3.33.0 (3 constraints: 7026bde2)
+org.checkerframework:checker-qual:3.36.0 (3 constraints: 73268ce3)
 org.clojure:clojure:1.8.0 (1 constraints: 0b050836)
 org.codehaus.groovy:groovy:2.5.14 (23 constraints: b55185ba)
 org.codehaus.groovy:groovy-cli-picocli:2.5.14 (5 constraints: d54e9017)
@@ -325,8 +325,8 @@ com.github.stefanbirkner:system-rules:1.19.0 (1 constraints: 3d05443b)
 com.github.tomakehurst:wiremock-standalone:2.27.2 (1 constraints: 3f054a3b)
 com.google.code.findbugs:annotations:3.0.1 (1 constraints: 9e0aafc3)
 com.palantir.conjure.java.api:test-utils:2.35.0 (1 constraints: 3f054e3b)
-com.palantir.safe-logging:preconditions-assertj:3.5.0 (1 constraints: 07050036)
-com.palantir.tracing:tracing-test-utils:6.17.0 (1 constraints: 3e05563b)
+com.palantir.safe-logging:preconditions-assertj:3.6.0 (1 constraints: 07050036)
+com.palantir.tracing:tracing-test-utils:6.18.0 (1 constraints: 3e05563b)
 com.spotify.dataenum:dataenum:1.4.1 (1 constraints: e9105ac1)
 com.thoughtworks.qdox:qdox:1.12.1 (1 constraints: 6d11f7d9)
 io.dropwizard:dropwizard-testing:2.1.2 (1 constraints: 0705fa35)u}(j0x  (b42dd0714eb595b742597c1f650dbec7b2666829jx  versions.propsjx  modifiedjx  Kjx  Kjx  Kjx  `https://github.com/palantir/atlasdb/blob/4460b0be63853d1a2490cef11f6bcb58660f5625/versions.propsjx  _https://github.com/palantir/atlasdb/raw/4460b0be63853d1a2490cef11f6bcb58660f5625/versions.propsjx  rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=4460b0be63853d1a2490cef11f6bcb58660f5625jx  X  @@ -25,9 +25,9 @@ com.palantir.common:streams = 2.1.0
 com.palantir.config.crypto:* = 5.1.0
 com.palantir.conjure.java.api:* = 2.29.0
 com.palantir.conjure.java.runtime:* = 7.39.0
-com.palantir.conjure.java:* = 7.14.0
+com.palantir.conjure.java:* = 7.17.0
 com.palantir.conjure:conjure = 4.38.0
-com.palantir.dialogue:* = 3.86.0
+com.palantir.dialogue:* = 3.90.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
 com.palantir.goethe:* = 0.11.0ueu(93898d301737cf69e2d10efe6a6a9f7c40ce6360}(sha(93898d301737cf69e2d10efe6a6a9f7c40ce6360node_idEC_kwDOAjP5fdoAKDkzODk4ZDMwMTczN2NmNjllMmQxMGVmZTZhNmE5ZjdjNDBjZTYzNjAcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-07-14T01:05:22Zu	committer}(jx  David Schlosnaglejx  davids@palantir.comjx  2023-07-14T01:05:31Zumessagesimplifytree}(jx  (71fa1e14a25b67e82b1cde577ea4294c80836933url`https://api.github.com/repos/palantir/atlasdb/git/trees/71fa1e14a25b67e82b1cde577ea4294c80836933ujx  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/93898d301737cf69e2d10efe6a6a9f7c40ce6360
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmSwn1sACgkQR9hsJ74Q
0l8Zzgf/fkPLDPMGLuZYPSLy5uUsnOUq45VL6KA6QiPzVvwRjMN09XnrtyajN3B/
B5Qy+hcIF2zBKn0PGta4nPp455Xwa/XYqwJdoyQnm/QdTW+iMa4qKcMEbE+CL2Pf
ToRBS4cjaXI1Zomc1EZO2IInKJilc2Z6eAOsPoM/H9A0KtLJ3IHvIdiwtksnRyVb
emo+PbH8bcantXLhQxcobi6EAusWGB+xSZsKsH1/IlNU9Nz6L0xzmOtjDyTSaR5A
odvT2TN5ukZpRE0lHRGDnvFlidHX632cYrphjmgOtdf2UDx5SBhIX0oUWWaVlHLH
yhTp5SgnBxwwjF2/bDk/QFbn/lFnLQ==
=f894
-----END PGP SIGNATURE-----payloadtree 71fa1e14a25b67e82b1cde577ea4294c80836933
parent 881f637ed63aa7f05a62b4e348d9bbf484e3e80f
author David Schlosnagle <davids@palantir.com> 1689296722 -0400
committer David Schlosnagle <davids@palantir.com> 1689296731 -0400

simplify
uujx  ^https://api.github.com/repos/palantir/atlasdb/commits/93898d301737cf69e2d10efe6a6a9f7c40ce6360html_urlShttps://github.com/palantir/atlasdb/commit/93898d301737cf69e2d10efe6a6a9f7c40ce6360comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/93898d301737cf69e2d10efe6a6a9f7c40ce6360/commentsjx  }(loginschlosnaidMBjx  MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jx  %https://api.github.com/users/schlosnajx  https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujx  }(jx  schlosnajx  MBjx  MDQ6VXNlcjU0NTk0jx  1https://avatars.githubusercontent.com/u/54594?v=4jx  h5jx  %https://api.github.com/users/schlosnajx  https://github.com/schlosnajx  /https://api.github.com/users/schlosna/followersjx  <https://api.github.com/users/schlosna/following{/other_user}jx  5https://api.github.com/users/schlosna/gists{/gist_id}jx  <https://api.github.com/users/schlosna/starred{/owner}{/repo}jx  3https://api.github.com/users/schlosna/subscriptionsjx  *https://api.github.com/users/schlosna/orgsjx  +https://api.github.com/users/schlosna/reposjx  6https://api.github.com/users/schlosna/events{/privacy}jx  5https://api.github.com/users/schlosna/received_eventsjx  Userjx  uparents]}(jx  (881f637ed63aa7f05a62b4e348d9bbf484e3e80fjx  ^https://api.github.com/repos/palantir/atlasdb/commits/881f637ed63aa7f05a62b4e348d9bbf484e3e80fjx  Shttps://github.com/palantir/atlasdb/commit/881f637ed63aa7f05a62b4e348d9bbf484e3e80fuastats}(totalK	additionsK	deletionsKufiles]}(jx  (42ef2a5e1eb4062a13dd8911ac457a773c876302filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedjy  Kjy  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/93898d301737cf69e2d10efe6a6a9f7c40ce6360/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/93898d301737cf69e2d10efe6a6a9f7c40ce6360/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=93898d301737cf69e2d10efe6a6a9f7c40ce6360patchX  @@ -2402,11 +2402,10 @@ private boolean rollbackFailedTransactions(
                             SafeArg.of("startTs", startTs),
                             SafeArg.of("commitTs", commitTs));
                 }
-            } else {
-                log.warn("Rolling back transaction: {}", SafeArg.of("startTs", startTs));
-                return rollbackOtherTransaction(startTs, transactionService);
+                return true;
             }
-            return true;
+            log.warn("Rolling back transaction: {}", SafeArg.of("startTs", startTs));
+            return rollbackOtherTransaction(startTs, transactionService);
         });
 
         if (allRolledBack) {uau(79d853def7736f22e64f5a2ff4c88f458214b8ec}(sha(79d853def7736f22e64f5a2ff4c88f458214b8ecnode_idEC_kwDOAjP5fdoAKDc5ZDg1M2RlZjc3MzZmMjJlNjRmNWEyZmY0Yzg4ZjQ1ODIxNGI4ZWMcommit}(author}(nameAndrew Svobodaemailsvoboda.andrew@gmail.comdate2023-04-24T12:30:34Zu	committer}(j.y  GitHubj0y  noreply@github.comj2y  2023-04-24T12:30:34Zumessage'always run gradlew with --scan in teststree}(j&y  (91ea6859a736a8f862c5e7a43abeaa9bb4ecd4c4url`https://api.github.com/repos/palantir/atlasdb/git/trees/91ea6859a736a8f862c5e7a43abeaa9bb4ecd4c4uj>y  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/79d853def7736f22e64f5a2ff4c88f458214b8ec
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkRnZqCRBK7hj4Ov3rIwAAidwIAByikt+d0CHVqA3nuCeamjRm
YqJH7v4UEx3eepBNRghhagTomThayOXGCFE1oBvIA0+8uFKhkTx60g/byxgV+ozU
P3/dhwweWfz5ydd80YLnBIA8RXKYpfP/OattxvU1Kr6RObbCmJ72MpeqVduw/voI
38cCJi5y3pfrQH8qMO+rsEbNyZpDj1iu16AIh/OG//3okqk4JGThdxmZn4wcxmsn
cRk7QgQA6Y+VM6aLofN2uf06U7zPDYcKWXq8orAnv7n7k+0pIEAns3XI+7+YpmLm
Rur4iSGxrn53DhFSbfLlC34Pean6PBsDEZ5uH3yTwiocEV3AYiyCtedcOded16E=
=5/v6
-----END PGP SIGNATURE-----
payloadtree 91ea6859a736a8f862c5e7a43abeaa9bb4ecd4c4
parent 0e042c5db32fd526cc9e1506788bee2cda4f3a43
author Andrew Svoboda <svoboda.andrew@gmail.com> 1682339434 +0100
committer GitHub <noreply@github.com> 1682339434 +0100

always run gradlew with --scan in testsuuj>y  ^https://api.github.com/repos/palantir/atlasdb/commits/79d853def7736f22e64f5a2ff4c88f458214b8echtml_urlShttps://github.com/palantir/atlasdb/commit/79d853def7736f22e64f5a2ff4c88f458214b8eccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/79d853def7736f22e64f5a2ff4c88f458214b8ec/commentsj,y  }(loginasvobodaidJ$ j(y  MDQ6VXNlcjEzMTk5NDQ=
avatar_url3https://avatars.githubusercontent.com/u/1319944?v=4gravatar_idh5j>y  %https://api.github.com/users/asvobodajLy  https://github.com/asvoboda
followers_url/https://api.github.com/users/asvoboda/followers
following_url<https://api.github.com/users/asvoboda/following{/other_user}	gists_url5https://api.github.com/users/asvoboda/gists{/gist_id}starred_url<https://api.github.com/users/asvoboda/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/asvoboda/subscriptionsorganizations_url*https://api.github.com/users/asvoboda/orgs	repos_url+https://api.github.com/users/asvoboda/repos
events_url6https://api.github.com/users/asvoboda/events{/privacy}received_events_url5https://api.github.com/users/asvoboda/received_eventstypeUser
site_adminuj4y  }(jQy  web-flowjSy  J/j(y  MDQ6VXNlcjE5ODY0NDQ3jUy  4https://avatars.githubusercontent.com/u/19864447?v=4jWy  h5j>y  %https://api.github.com/users/web-flowjLy  https://github.com/web-flowjZy  /https://api.github.com/users/web-flow/followersj\y  <https://api.github.com/users/web-flow/following{/other_user}j^y  5https://api.github.com/users/web-flow/gists{/gist_id}j`y  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jby  3https://api.github.com/users/web-flow/subscriptionsjdy  *https://api.github.com/users/web-flow/orgsjfy  +https://api.github.com/users/web-flow/reposjhy  6https://api.github.com/users/web-flow/events{/privacy}jjy  5https://api.github.com/users/web-flow/received_eventsjly  Userjny  uparents]}(j&y  (0e042c5db32fd526cc9e1506788bee2cda4f3a43j>y  ^https://api.github.com/repos/palantir/atlasdb/commits/0e042c5db32fd526cc9e1506788bee2cda4f3a43jLy  Shttps://github.com/palantir/atlasdb/commit/0e042c5db32fd526cc9e1506788bee2cda4f3a43uastats}(totalK	additionsK	deletionsKufiles]}(j&y  (f0a22e73186ef023e2f9be96eb49fc2c2c1999f4filename%scripts/circle-ci/run-circle-tests.shstatusmodifiedjy  Kjy  KchangesKblob_url{https://github.com/palantir/atlasdb/blob/79d853def7736f22e64f5a2ff4c88f458214b8ec/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/79d853def7736f22e64f5a2ff4c88f458214b8ec/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=79d853def7736f22e64f5a2ff4c88f458214b8ecpatchX)  @@ -2,7 +2,7 @@
 
 set -x
 
-BASE_GRADLE_ARGS="--profile --continue"
+BASE_GRADLE_ARGS="--scan --profile --continue"
 
 function checkDocsBuild {
      pyenv install 3.5.4
@@ -68,7 +68,7 @@ if [ "$CIRCLE_NODE_INDEX" -eq "11" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
-    BASE_GRADLE_ARGS+=" --scan --parallel"
+    BASE_GRADLE_ARGS+=" --parallel"
 fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64muau(19574d917f826df457f993ce8f74cae8a261b26d}(sha(19574d917f826df457f993ce8f74cae8a261b26dnode_idEC_kwDOAjP5fdoAKDE5NTc0ZDkxN2Y4MjZkZjQ1N2Y5OTNjZThmNzRjYWU4YTI2MWIyNmQcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-06-01T11:40:37Zu	committer}(jy  
svc-changelogjy  svc-changelog@palantir.comjy  2023-06-01T11:40:37ZumessageAdd generated changelog entriestree}(jy  (cd684b82ec6bee631d33b8d61d35f6d7cff68416url`https://api.github.com/repos/palantir/atlasdb/git/trees/cd684b82ec6bee631d33b8d61d35f6d7cff68416ujy  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/19574d917f826df457f993ce8f74cae8a261b26d
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmR4g7UJEHYaJX37fAFQAAAVsAD/fB16VztZQrnMT1vnl+EXAex3
gsCF2b13QlBN1bfo12oBAIbDs01zdnJ56yQTH+1j7x98/KZjGyYWwgjoSEI8V+AA
=pIgA
-----END PGP SIGNATURE-----payloadX  tree cd684b82ec6bee631d33b8d61d35f6d7cff68416
parent d76a43981b51f7ef07a33a9170c18797ed08c3f4
author svc-changelog <svc-changelog@palantir.com> 1685619637 +0000
committer svc-changelog <svc-changelog@palantir.com> 1685619637 +0000

Add generated changelog entriesuujy  ^https://api.github.com/repos/palantir/atlasdb/commits/19574d917f826df457f993ce8f74cae8a261b26dhtml_urlShttps://github.com/palantir/atlasdb/commit/19574d917f826df457f993ce8f74cae8a261b26dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/19574d917f826df457f993ce8f74cae8a261b26d/commentsjy  }(login
svc-changelogidJ#jy  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jy  *https://api.github.com/users/svc-changelogjy   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujy  }(jy  
svc-changelogjy  J#jy  MDQ6VXNlcjg0MDc3NjAzjy  4https://avatars.githubusercontent.com/u/84077603?v=4jy  h5jy  *https://api.github.com/users/svc-changelogjy   https://github.com/svc-changelogjy  4https://api.github.com/users/svc-changelog/followersjy  Ahttps://api.github.com/users/svc-changelog/following{/other_user}jy  :https://api.github.com/users/svc-changelog/gists{/gist_id}jy  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jy  8https://api.github.com/users/svc-changelog/subscriptionsjy  /https://api.github.com/users/svc-changelog/orgsjy  0https://api.github.com/users/svc-changelog/reposjy  ;https://api.github.com/users/svc-changelog/events{/privacy}jy  :https://api.github.com/users/svc-changelog/received_eventsjy  Userjy  uparents]}(jy  (d76a43981b51f7ef07a33a9170c18797ed08c3f4jy  ^https://api.github.com/repos/palantir/atlasdb/commits/d76a43981b51f7ef07a33a9170c18797ed08c3f4jy  Shttps://github.com/palantir/atlasdb/commit/d76a43981b51f7ef07a33a9170c18797ed08c3f4uastats}(totalK	additionsK	deletionsK ufiles]}(jy  (088ecb3494e3094a7ce37361e9ec8cf8f2816acafilename$changelog/@unreleased/pr-6598.v2.ymlstatusaddedjy  Kj z  K changesKblob_url|https://github.com/palantir/atlasdb/blob/19574d917f826df457f993ce8f74cae8a261b26d/changelog%2F%40unreleased%2Fpr-6598.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/19574d917f826df457f993ce8f74cae8a261b26d/changelog%2F%40unreleased%2Fpr-6598.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6598.v2.yml?ref=19574d917f826df457f993ce8f74cae8a261b26dpatch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Add metric for number of commit lock acquisition failures
+  links:
+  - https://github.com/palantir/atlasdb/pull/6598uau(90b6d200480efc0d2941b34c691562e5a21c4ab4}(sha(90b6d200480efc0d2941b34c691562e5a21c4ab4node_idEC_kwDOAjP5fdoAKDkwYjZkMjAwNDgwZWZjMGQyOTQxYjM0YzY5MTU2MmU1YTIxYzRhYjQcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-03-14T11:01:00Zu	committer}(jz  svc-autoreleasejz  -pd-foundry-infrastructure-notify@palantir.comj z  2023-03-14T11:01:00Zumessage"Autorelease 0.813.0-rc1

[skip ci]tree}(jz  (35d82fcc76fb39d05b8195513fcaffac64ed2606url`https://api.github.com/repos/palantir/atlasdb/git/trees/35d82fcc76fb39d05b8195513fcaffac64ed2606uj,z  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/90b6d200480efc0d2941b34c691562e5a21c4ab4
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQQU/EACgkQhbrR8ip7mDAKdAD/Zqmy0p9fIoUAq24oiTwMrANS
P3uIqkXPYyXtjjdOz+IA/2CNF8jwinekpj5PAyYoxxMyP/2J+P54DWtt0OFM4QEq
=1E1V
-----END PGP SIGNATURE-----
payloadX  tree 35d82fcc76fb39d05b8195513fcaffac64ed2606
parent a270fe42cd351019057d5897f46b4aa31140ae7b
author Sam-Kramer <sam.c.kramer@gmail.com> 1678791660 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1678791660 +0000

Autorelease 0.813.0-rc1

[skip ci]uuj,z  ^https://api.github.com/repos/palantir/atlasdb/commits/90b6d200480efc0d2941b34c691562e5a21c4ab4html_urlShttps://github.com/palantir/atlasdb/commit/90b6d200480efc0d2941b34c691562e5a21c4ab4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/90b6d200480efc0d2941b34c691562e5a21c4ab4/commentsjz  }(login
Sam-KrameridJ^2_ jz  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j,z  'https://api.github.com/users/Sam-Kramerj:z  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj"z  }(j?z  svc-autoreleasejAz  J(jz  MDQ6VXNlcjUxNzE4MzQ2jCz  4https://avatars.githubusercontent.com/u/51718346?v=4jEz  h5j,z  ,https://api.github.com/users/svc-autoreleasej:z  "https://github.com/svc-autoreleasejHz  6https://api.github.com/users/svc-autorelease/followersjJz  Chttps://api.github.com/users/svc-autorelease/following{/other_user}jLz  <https://api.github.com/users/svc-autorelease/gists{/gist_id}jNz  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jPz  :https://api.github.com/users/svc-autorelease/subscriptionsjRz  1https://api.github.com/users/svc-autorelease/orgsjTz  2https://api.github.com/users/svc-autorelease/reposjVz  =https://api.github.com/users/svc-autorelease/events{/privacy}jXz  <https://api.github.com/users/svc-autorelease/received_eventsjZz  Userj\z  uparents]}(jz  (a270fe42cd351019057d5897f46b4aa31140ae7bj,z  ^https://api.github.com/repos/palantir/atlasdb/commits/a270fe42cd351019057d5897f46b4aa31140ae7bj:z  Shttps://github.com/palantir/atlasdb/commit/a270fe42cd351019057d5897f46b4aa31140ae7buastats}(totalK	additionsK	deletionsK ufiles]}(jz  (1c40c26a2b7f255ced582014ba59023261e207c9filename$changelog/0.813.0-rc1/pr-6463.v2.ymlstatusaddedjvz  Kjwz  K changesKblob_urlzhttps://github.com/palantir/atlasdb/blob/90b6d200480efc0d2941b34c691562e5a21c4ab4/changelog%2F0.813.0-rc1%2Fpr-6463.v2.ymlraw_urlyhttps://github.com/palantir/atlasdb/raw/90b6d200480efc0d2941b34c691562e5a21c4ab4/changelog%2F0.813.0-rc1%2Fpr-6463.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.813.0-rc1%2Fpr-6463.v2.yml?ref=90b6d200480efc0d2941b34c691562e5a21c4ab4patch@@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Never completely empty the Cassandra client pool, even if a new list
+    of hosts are provided.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6463uau(8c97c5fb24eedde36cef5207dc6887cff4a6ebcd}(sha(8c97c5fb24eedde36cef5207dc6887cff4a6ebcdnode_idEC_kwDOAjP5fdoAKDhjOTdjNWZiMjRlZWRkZTM2Y2VmNTIwN2RjNjg4N2NmZjRhNmViY2Qcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T23:45:54Zu	committer}(jz  
Ahmed Alouanejz  aalouane@palantir.comjz  2023-05-15T23:45:54Zumessageblaahtree}(jz  (63206dcac6ec389c75ea26922a54d27c667e3b5aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/63206dcac6ec389c75ea26922a54d27c667e3b5aujz  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8c97c5fb24eedde36cef5207dc6887cff4a6ebcd
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRixDIACgkQPlMHVIT1
yhrzNAgAqPzxpZ825kXdBP/xvOAtye2n3clH8i7oLQzzFCx10lIriJpH92c9nuBd
Q5O0KGCObpw40DZZlyNHGrVxr/2K7bgKknLz/NfIoqZWZXkufdGKWiZFfpE6o8kS
bDD59qu9Z9/cyefROt1akyr3jMoq4KFaimxTCRoHXEQwaAvPIRPvf6naGtBbT91I
Vzjuw/X6R2t7URpcbmCSQzfVbalwGVS/s2BR8Br8IhW19A8SszApmN1deAFlp1Me
5DX8drD/Us+S1/lTmY+psiaryCLLQ1z74qP8uh29UEuVatf3KjS7z9KUW77lx7l+
7E2MuPjEbAvjkZO4r+DTxOkTevONiA==
=BNm4
-----END PGP SIGNATURE-----payloadtree 63206dcac6ec389c75ea26922a54d27c667e3b5a
parent 9ce0a7c20d102a5dde895970471fa6f8708ff5e6
author Ahmed Alouane <aalouane@palantir.com> 1684194354 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684194354 +0100

blaah
uujz  ^https://api.github.com/repos/palantir/atlasdb/commits/8c97c5fb24eedde36cef5207dc6887cff4a6ebcdhtml_urlShttps://github.com/palantir/atlasdb/commit/8c97c5fb24eedde36cef5207dc6887cff4a6ebcdcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8c97c5fb24eedde36cef5207dc6887cff4a6ebcd/commentsjz  }(loginergo14idJjz  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jz  #https://api.github.com/users/ergo14jz  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujz  }(jz  ergo14jz  Jjz  MDQ6VXNlcjMwOTAzNzM2jz  4https://avatars.githubusercontent.com/u/30903736?v=4jz  h5jz  #https://api.github.com/users/ergo14jz  https://github.com/ergo14jz  -https://api.github.com/users/ergo14/followersjz  :https://api.github.com/users/ergo14/following{/other_user}jz  3https://api.github.com/users/ergo14/gists{/gist_id}jz  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jz  1https://api.github.com/users/ergo14/subscriptionsjz  (https://api.github.com/users/ergo14/orgsjz  )https://api.github.com/users/ergo14/reposjz  4https://api.github.com/users/ergo14/events{/privacy}jz  3https://api.github.com/users/ergo14/received_eventsjz  Userjz  uparents]}(jz  (9ce0a7c20d102a5dde895970471fa6f8708ff5e6jz  ^https://api.github.com/repos/palantir/atlasdb/commits/9ce0a7c20d102a5dde895970471fa6f8708ff5e6jz  Shttps://github.com/palantir/atlasdb/commit/9ce0a7c20d102a5dde895970471fa6f8708ff5e6uastats}(totalK	additionsK	deletionsKufiles]}(jz  (6fdd8a9c5c92ccda526422483bd9585360cab2aafilename.circleci/config.ymlstatusmodifiedjz  Kjz  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/8c97c5fb24eedde36cef5207dc6887cff4a6ebcd/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/8c97c5fb24eedde36cef5207dc6887cff4a6ebcd/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=8c97c5fb24eedde36cef5207dc6887cff4a6ebcdpatchX  @@ -104,7 +104,7 @@ jobs:
 
   deploy:
     docker:
-      - image: cimg/openjdk:11.0.10-node
+      - image: cimg/openjdk:11.0.19-node
     resource_class: xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=falseuau(314af27ccfa736f9a80c768885a8d6ca6e86bd2e}(sha(314af27ccfa736f9a80c768885a8d6ca6e86bd2enode_idEC_kwDOAjP5fdoAKDMxNGFmMjdjY2ZhNzM2ZjlhODBjNzY4ODg1YThkNmNhNmU4NmJkMmUcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-16T08:24:16Zu	committer}(j
{  svc-autoreleasej{  -pd-foundry-infrastructure-notify@palantir.comj{  2023-05-16T08:24:16Zumessage#Autorelease 0.854.0-rc22

[skip ci]tree}(j{  (f5521ddd550cada7d3f1eae7720a2c41b7fc2a03url`https://api.github.com/repos/palantir/atlasdb/git/trees/f5521ddd550cada7d3f1eae7720a2c41b7fc2a03uj{  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/314af27ccfa736f9a80c768885a8d6ca6e86bd2e
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRjPbEACgkQhbrR8ip7mDCnbQD/ahDX1QDAcnX7tPFMRnlCitJK
VWCKqTDlDurcx5NPYPkA/1xP3GUrQggANcClDcoAskyfFEnmsTq6VxnB+6pyTmxy
=LpRU
-----END PGP SIGNATURE-----
payloadX)  tree f5521ddd550cada7d3f1eae7720a2c41b7fc2a03
parent 3d877c5c7bc7202ab2b180034e36e36fd00a82c1
author aalouane <30903736+ergo14@users.noreply.github.com> 1684225456 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684225456 +0000

Autorelease 0.854.0-rc22

[skip ci]uuj{  ^https://api.github.com/repos/palantir/atlasdb/commits/314af27ccfa736f9a80c768885a8d6ca6e86bd2ehtml_urlShttps://github.com/palantir/atlasdb/commit/314af27ccfa736f9a80c768885a8d6ca6e86bd2ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/314af27ccfa736f9a80c768885a8d6ca6e86bd2e/commentsj{  }(loginergo14idJj{  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j{  #https://api.github.com/users/ergo14j({  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj{  }(j-{  svc-autoreleasej/{  J(j{  MDQ6VXNlcjUxNzE4MzQ2j1{  4https://avatars.githubusercontent.com/u/51718346?v=4j3{  h5j{  ,https://api.github.com/users/svc-autoreleasej({  "https://github.com/svc-autoreleasej6{  6https://api.github.com/users/svc-autorelease/followersj8{  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j:{  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j<{  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j>{  :https://api.github.com/users/svc-autorelease/subscriptionsj@{  1https://api.github.com/users/svc-autorelease/orgsjB{  2https://api.github.com/users/svc-autorelease/reposjD{  =https://api.github.com/users/svc-autorelease/events{/privacy}jF{  <https://api.github.com/users/svc-autorelease/received_eventsjH{  UserjJ{  uparents]}(j{  (3d877c5c7bc7202ab2b180034e36e36fd00a82c1j{  ^https://api.github.com/repos/palantir/atlasdb/commits/3d877c5c7bc7202ab2b180034e36e36fd00a82c1j({  Shttps://github.com/palantir/atlasdb/commit/3d877c5c7bc7202ab2b180034e36e36fd00a82c1uastats}(totalK 	additionsK 	deletionsK ufiles]u(56a599123896e0136f81a3c59a8a5a6b02b3d14d}(sha(56a599123896e0136f81a3c59a8a5a6b02b3d14dnode_idEC_kwDOAjP5fdoAKDU2YTU5OTEyMzg5NmUwMTM2ZjgxYTNjNTlhOGE1YTZiMDJiM2QxNGQcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-06-26T03:43:26Zu	committer}(jr{  David Schlosnaglejt{  davids@palantir.comjv{  2023-06-26T03:43:26ZumessageRevert ValueExtractortree}(jj{  (6127ab52009d146ee8b1f0c6f93521f231d8cbffurl`https://api.github.com/repos/palantir/atlasdb/git/trees/6127ab52009d146ee8b1f0c6f93521f231d8cbffuj{  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/56a599123896e0136f81a3c59a8a5a6b02b3d14d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmSZCV8ACgkQR9hsJ74Q
0l9MyQf/XDeA6FIoiLRZiIqPxFt9Trnme1Y8WgAhsv6UqGky2NuI3KL8NxTsh6kc
Nef/Tq83Q9XHE8NLeUeIjakNRMPEssQFWBtJrHEoQSthFUMrNsZeNUD/5XRWQjWK
nShYRZo5+ZmtdeKtWpY3/cIMFSjbYsgDCVyy8aiClQ+cnWjAe0hi8aznloNHO9su
9PLt3ySRe/yMlPr4HYYvdyQk0hjRo3N8b84f4L3f7ECOnIryHi2b+sw6E+GDufxg
7YB4F9ytVrnFAxOpMQ2GAxuOxLh+U3AKJTc6rPVC7gT3eZdqU/2XGZ8/TmxaEOIw
UiIA5Z4k7azSpVkvU6txeJM+qFk6Dw==
=CEem
-----END PGP SIGNATURE-----payloadtree 6127ab52009d146ee8b1f0c6f93521f231d8cbff
parent e47d0550d598210f770d9ea3730ff298db75d319
author David Schlosnagle <davids@palantir.com> 1687751006 -0400
committer David Schlosnagle <davids@palantir.com> 1687751006 -0400

Revert ValueExtractor
uuj{  ^https://api.github.com/repos/palantir/atlasdb/commits/56a599123896e0136f81a3c59a8a5a6b02b3d14dhtml_urlShttps://github.com/palantir/atlasdb/commit/56a599123896e0136f81a3c59a8a5a6b02b3d14dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/56a599123896e0136f81a3c59a8a5a6b02b3d14d/commentsjp{  }(loginschlosnaidMBjl{  MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j{  %https://api.github.com/users/schlosnaj{  https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujx{  }(j{  schlosnaj{  MBjl{  MDQ6VXNlcjU0NTk0j{  1https://avatars.githubusercontent.com/u/54594?v=4j{  h5j{  %https://api.github.com/users/schlosnaj{  https://github.com/schlosnaj{  /https://api.github.com/users/schlosna/followersj{  <https://api.github.com/users/schlosna/following{/other_user}j{  5https://api.github.com/users/schlosna/gists{/gist_id}j{  <https://api.github.com/users/schlosna/starred{/owner}{/repo}j{  3https://api.github.com/users/schlosna/subscriptionsj{  *https://api.github.com/users/schlosna/orgsj{  +https://api.github.com/users/schlosna/reposj{  6https://api.github.com/users/schlosna/events{/privacy}j{  5https://api.github.com/users/schlosna/received_eventsj{  Userj{  uparents]}(jj{  (e47d0550d598210f770d9ea3730ff298db75d319j{  ^https://api.github.com/repos/palantir/atlasdb/commits/e47d0550d598210f770d9ea3730ff298db75d319j{  Shttps://github.com/palantir/atlasdb/commit/e47d0550d598210f770d9ea3730ff298db75d319uastats}(totalK	additionsK	deletionsKufiles]}(jj{  (c23d4ed1b56a12e3356ebc24b89c630b5fec3568filename[atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/ValueExtractor.javastatusmodifiedj{  Kj{  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/56a599123896e0136f81a3c59a8a5a6b02b3d14d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javaraw_urlhttps://github.com/palantir/atlasdb/raw/56a599123896e0136f81a3c59a8a5a6b02b3d14d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.java?ref=56a599123896e0136f81a3c59a8a5a6b02b3d14dpatchX  @@ -44,14 +44,9 @@ public void internalExtractResult(
         if (ts < startTs && selection.contains(col)) {
             Cell cell = Cell.create(row, col);
             // explicitly not using `collector.computeIfAbsent` to avoid `LambdaForm.linkToTargetMethod` allocation
-            Value existing = collector.get(cell);
-            if (existing != null) {
-                if (existing.getTimestamp() < ts) {
-                    TraceStatistics.incSkippedValues(1L);
-                    notLatestVisibleValueCellFilterCounter.inc();
-                } else {
-                    collector.put(cell, Value.create(val, ts));
-                }
+            if (collector.containsKey(cell)) {
+                TraceStatistics.incSkippedValues(1L);
+                notLatestVisibleValueCellFilterCounter.inc();
             } else {
                 collector.put(cell, Value.create(val, ts));
             }uau(b6c837782db2b39b206708942890b4c72dd96d97}(sha(b6c837782db2b39b206708942890b4c72dd96d97node_idEC_kwDOAjP5fdoAKGI2YzgzNzc4MmRiMmIzOWIyMDY3MDg5NDI4OTBiNGM3MmRkOTZkOTccommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-07-21T14:47:37Zu	committer}(j{  svc-excavator-botj{  svc-excavator-bot@palantir.comj{  2023-07-21T14:47:37Zumessage8Excavator:  Upgrade gradle wrapper to the latest versiontree}(j{  (d71ad06a0e9938a9bd7b8a0ccc9ff91c9bd337bdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/d71ad06a0e9938a9bd7b8a0ccc9ff91c9bd337bduj{  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b6c837782db2b39b206708942890b4c72dd96d97
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmS6mokJEMmvEkpISILgAADKyAEAnaJAs9xK6rVwyGYL3gOdQrgC
xIVaynEqwKlZdpxEJQgBAOrF/2zl4DuLbWlRADk++gN9me9Xe94jKXLeiAuNqCbJ
=6Jmn
-----END PGP SIGNATURE-----
payloadX0  tree d71ad06a0e9938a9bd7b8a0ccc9ff91c9bd337bd
parent 4a00adc18ee71aa582dc6f726268c1e54b0e43fa
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1689950857 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1689950857 +0000

Excavator:  Upgrade gradle wrapper to the latest versionuuj{  ^https://api.github.com/repos/palantir/atlasdb/commits/b6c837782db2b39b206708942890b4c72dd96d97html_urlShttps://github.com/palantir/atlasdb/commit/b6c837782db2b39b206708942890b4c72dd96d97comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b6c837782db2b39b206708942890b4c72dd96d97/commentsj{  }(loginsvc-excavator-botidJj{  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j{  .https://api.github.com/users/svc-excavator-botj|  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj{  }(j|  svc-excavator-botj|  Jj{  MDQ6VXNlcjMzMjY2MzY4j|  4https://avatars.githubusercontent.com/u/33266368?v=4j|  h5j{  .https://api.github.com/users/svc-excavator-botj|  $https://github.com/svc-excavator-botj|  8https://api.github.com/users/svc-excavator-bot/followersj|  Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}j|  >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}j|  Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}j|  <https://api.github.com/users/svc-excavator-bot/subscriptionsj|  3https://api.github.com/users/svc-excavator-bot/orgsj!|  4https://api.github.com/users/svc-excavator-bot/reposj#|  ?https://api.github.com/users/svc-excavator-bot/events{/privacy}j%|  >https://api.github.com/users/svc-excavator-bot/received_eventsj'|  Userj)|  uparents]}(j{  (4a00adc18ee71aa582dc6f726268c1e54b0e43faj{  ^https://api.github.com/repos/palantir/atlasdb/commits/4a00adc18ee71aa582dc6f726268c1e54b0e43faj|  Shttps://github.com/palantir/atlasdb/commit/4a00adc18ee71aa582dc6f726268c1e54b0e43fauastats}(totalK	additionsK	deletionsKufiles](}(j{  (afba109285af78dbd2a1d187e33ac4f87c76e392filename!gradle/wrapper/gradle-wrapper.jarstatusmodifiedjC|  K jD|  K changesK blob_urlwhttps://github.com/palantir/atlasdb/blob/b6c837782db2b39b206708942890b4c72dd96d97/gradle%2Fwrapper%2Fgradle-wrapper.jarraw_urlvhttps://github.com/palantir/atlasdb/raw/b6c837782db2b39b206708942890b4c72dd96d97/gradle%2Fwrapper%2Fgradle-wrapper.jarcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fwrapper%2Fgradle-wrapper.jar?ref=b6c837782db2b39b206708942890b4c72dd96d97u}(j{  (4e86b9270786fb25deb2931bfa2e777799ec2a25jI|  (gradle/wrapper/gradle-wrapper.propertiesjK|  modifiedjC|  KjD|  KjM|  KjN|  ~https://github.com/palantir/atlasdb/blob/b6c837782db2b39b206708942890b4c72dd96d97/gradle%2Fwrapper%2Fgradle-wrapper.propertiesjP|  }https://github.com/palantir/atlasdb/raw/b6c837782db2b39b206708942890b4c72dd96d97/gradle%2Fwrapper%2Fgradle-wrapper.propertiesjR|  https://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fwrapper%2Fgradle-wrapper.properties?ref=b6c837782db2b39b206708942890b4c72dd96d97patchXC  @@ -1,6 +1,6 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip
 networkTimeout=10000
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/distsueu(5a1865e6187212a51d00b15863fde363264e499a}(sha(5a1865e6187212a51d00b15863fde363264e499anode_idEC_kwDOAjP5fdoAKDVhMTg2NWU2MTg3MjEyYTUxZDAwYjE1ODYzZmRlMzYzMjY0ZTQ5OWEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-14T12:48:00Zu	committer}(jg|  
Sam Kramerji|  skramer@palantir.comjk|  2023-04-14T12:48:00Zumessagecommentstree}(j_|  (2917bd1f7359349b4277c90544c1365b52f9d464url`https://api.github.com/repos/palantir/atlasdb/git/trees/2917bd1f7359349b4277c90544c1365b52f9d464ujw|  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5a1865e6187212a51d00b15863fde363264e499a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ5S4AACgkQmPPOpKR4
XS2ZaAgAjNpIEHkSlpgvugdhnE6c0c1ffq+WFTCFRXvRDl4MJa5demOJqULV4WnR
w1rgtcNVMys88jvfYel0avT2EcYAx0nEzKCfgl1XLebEYHRVXZmBpTTNDKBwNA4R
+QSsiFgiBidkjnlRkzXE5byLJLFZqQP0ZRgH07MGQTYeo7IdAZMF94Vxjtma7xCy
xeGERt7cxaAhIm3/CtwojiY0hEHam6e90JOQ8pVBqAkYoV/sVhXOIyzS8X9bPIsA
Fg+8FaHmDMkPrFuq/VI1Nb8Vu6KmI2j5dtPK5mzF5hsIBTC187RbM97X9H3tl62m
8oUQx8puQlrUYbOU2CIQPAvky0QE5g==
=IZZe
-----END PGP SIGNATURE-----payloadtree 2917bd1f7359349b4277c90544c1365b52f9d464
parent c57926b0c7dc5e60ddd40670e20b6486f07baa81
author Sam Kramer <skramer@palantir.com> 1681476480 +0100
committer Sam Kramer <skramer@palantir.com> 1681476480 +0100

comments
uujw|  ^https://api.github.com/repos/palantir/atlasdb/commits/5a1865e6187212a51d00b15863fde363264e499ahtml_urlShttps://github.com/palantir/atlasdb/commit/5a1865e6187212a51d00b15863fde363264e499acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5a1865e6187212a51d00b15863fde363264e499a/commentsje|  }(login
Sam-KrameridJ^2_ ja|  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jw|  'https://api.github.com/users/Sam-Kramerj|  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujm|  }(j|  
Sam-Kramerj|  J^2_ ja|  MDQ6VXNlcjYyMzg4MTQ=j|  3https://avatars.githubusercontent.com/u/6238814?v=4j|  h5jw|  'https://api.github.com/users/Sam-Kramerj|  https://github.com/Sam-Kramerj|  1https://api.github.com/users/Sam-Kramer/followersj|  >https://api.github.com/users/Sam-Kramer/following{/other_user}j|  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j|  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j|  5https://api.github.com/users/Sam-Kramer/subscriptionsj|  ,https://api.github.com/users/Sam-Kramer/orgsj|  -https://api.github.com/users/Sam-Kramer/reposj|  8https://api.github.com/users/Sam-Kramer/events{/privacy}j|  7https://api.github.com/users/Sam-Kramer/received_eventsj|  Userj|  uparents]}(j_|  (c57926b0c7dc5e60ddd40670e20b6486f07baa81jw|  ^https://api.github.com/repos/palantir/atlasdb/commits/c57926b0c7dc5e60ddd40670e20b6486f07baa81j|  Shttps://github.com/palantir/atlasdb/commit/c57926b0c7dc5e60ddd40670e20b6486f07baa81uastats}(totalM'	additionsK	deletionsKufiles](}(j_|  (c852afbb5ada25c05d1126818d128fa8dce0b123filenameaatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javastatusmodifiedj|  Kj|  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5a1865e6187212a51d00b15863fde363264e499a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5a1865e6187212a51d00b15863fde363264e499a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=5a1865e6187212a51d00b15863fde363264e499apatchX  @@ -50,7 +50,7 @@ public static <T extends TransactionStore> Workflow create(
             KeyedTransactionTask<T> transactionTask,
             WorkflowConfiguration configuration,
             ListeningExecutorService executionExecutor) {
-        return new DefaultWorkflow<T>(
+        return new DefaultWorkflow<>(
                 new ConcurrentTransactionRunner<>(store, executionExecutor),
                 transactionTask,
                 configuration,u}(j_|  (532547dc4d382d1a8a719b6e3e03d206d7ffe4d7j|  `atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingError.javaj|  removedj|  K j|  K+j|  K+j|  https://github.com/palantir/atlasdb/blob/c57926b0c7dc5e60ddd40670e20b6486f07baa81/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingError.javaj|  https://github.com/palantir/atlasdb/raw/c57926b0c7dc5e60ddd40670e20b6486f07baa81/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingError.javaj|  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingError.java?ref=c57926b0c7dc5e60ddd40670e20b6486f07baa81j|  X/  @@ -1,43 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.workflow.ring;
-
-import java.util.Map;
-import java.util.Optional;
-import org.immutables.value.Value;
-
-@Value.Immutable
-public interface RingError {
-    enum Type {
-        MISSING_ENTRIES,
-        CYCLE
-    }
-
-    @Value.Parameter
-    Type type();
-
-    @Value.Parameter
-    Map<Integer, Optional<Integer>> ring();
-
-    static RingError missingEntries(Map<Integer, Optional<Integer>> ring) {
-        return ImmutableRingError.of(Type.MISSING_ENTRIES, ring);
-    }
-
-    static RingError cycle(Map<Integer, Optional<Integer>> ring) {
-        return ImmutableRingError.of(Type.CYCLE, ring);
-    }
-}u}(j_|  (51c4c38711bdbe0a17cb3dbc9d9532911addaa36j|  `atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingGraph.javaj|  modifiedj|  K#j|  K,j|  KOj|  https://github.com/palantir/atlasdb/blob/5a1865e6187212a51d00b15863fde363264e499a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaj|  https://github.com/palantir/atlasdb/raw/5a1865e6187212a51d00b15863fde363264e499a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.java      j|  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.java?ref=5a1865e6187212a51d00b15863fde363264e499aj|  X  @@ -28,29 +28,36 @@
 import java.util.Set;
 import java.util.function.Function;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import one.util.streamex.EntryStream;
-import one.util.streamex.IntStreamEx;
 
 public final class RingGraph {
-    private final Map<Integer, Optional<Integer>> ring;
+    private final Map<Integer, Integer> ring;
 
-    private RingGraph(Map<Integer, Optional<Integer>> ring) {
+    private RingGraph(Map<Integer, Integer> ring) {
         this.ring = ring;
     }
 
-    public static RingGraph init(int size) {
-        return new RingGraph(IntStreamEx.range(size)
-                .boxed()
-                .mapToEntry(_value -> Optional.<Integer>empty())
-                .toMap());
+    public static RingGraph from(Map<Integer, Integer> ring) throws RingValidationException {
+        validateGraphIsRing(ring);
+        return new RingGraph(ring);
     }
 
-    public static RingGraph from(Map<Integer, Integer> ring) {
-        return new RingGraph(EntryStream.of(ring).mapValues(Optional::of).toMap());
+    public static RingGraph fromPartial(Map<Integer, Optional<Integer>> ring) throws RingValidationException {
+        if (isEmpty(ring)) {
+            return RingGraph.generateNewRing(ring.keySet());
+        }
+
+        Preconditions.checkArgument(
+                !anyEmpty(ring),
+                "Graph contains missing entries, thus cannot be made into a ring.",
+                SafeArg.of("ring", ring));
+
+        return from(EntryStream.of(ring).mapValues(Optional::get).toMap());
     }
 
-    public static RingGraph fromPartial(Map<Integer, Optional<Integer>> ring) {
-        return new RingGraph(ring);
+    public static RingGraph create(int size) {
+        return generateNewRing(IntStream.range(0, size).boxed().collect(Collectors.toSet()));
     }
 
     /**
@@ -63,68 +70,52 @@ public static RingGraph fromPartial(Map<Integer, Optional<Integer>> ring) {
      * To ensure that the ring is connected, we do not track our entry into the ring (i.e. the first node we visit),
      * as we expect to have it be visited again as the last node.
      */
-    public Optional<RingError> validate() {
-        if (isEmpty()) {
-            return Optional.empty();
-        }
-
+    public static void validateGraphIsRing(Map<Integer, Integer> ring) throws RingValidationException {
         Integer initialNode = ring.keySet().iterator().next();
         Set<Integer> remainingNodes = new HashSet<>(ring.keySet());
         int maxIterations = ring.keySet().size();
-        Optional<Integer> maybeNextNode = ring.get(initialNode);
+        Integer nextNode = ring.get(initialNode);
         for (int iterations = 0; iterations < maxIterations; iterations++) {
-            // If we do not have a next node, we are missing data, as a ring should cycle
-            if (maybeNextNode.isEmpty()) {
-                return Optional.of(RingError.missingEntries(ring));
-            }
-
-            Integer nextNode = maybeNextNode.get();
-
             // If we reference a node that does not exist in our ring, it means we are missing data
             if (!ring.containsKey(nextNode)) {
-                return Optional.of(RingError.missingEntries(ring));
+                RingValidationException.throwMissingEntries(ring);
             }
 
             // If the node already has been visited, it means we're in a cycle within our ring
             if (!remainingNodes.remove(nextNode)) {
-                return Optional.of(RingError.cycle(ring));
+                RingValidationException.throwCycle(ring);
             }
 
-            maybeNextNode = ring.get(nextNode);
+            nextNode = ring.get(nextNode);
         }
+    }
 
-        return Optional.empty();
+    public RingGraph generateNewRing() {
+        return generateNewRing(ring.keySet());
     }
 
     /**
      * Returns a valid new ring with the same nodes but randomly generated edges.
      */
-    public RingGraph generateNewRing() {
-        List<Integer> keys = ring.keySet().stream().collect(Collectors.toList());
+    private static RingGraph generateNewRing(Set<Integer> nodes) {
+        List<Integer> keys = nodes.stream().collect(Collectors.toList());
         Collections.shuffle(keys);
         Iterator<Integer> valuesIterator = Iterators.cycle(keys);
         valuesIterator.next();
-        return RingGraph.from(keys.stream()
+        return new RingGraph(keys.stream()
                 .sequential()
                 .collect(Collectors.toMap(Function.identity(), _node -> valuesIterator.next())));
     }
 
-    /**
-     * Returns the current map of the ring.
-     * @throws com.palantir.logsafe.exceptions.SafeIllegalStateException When one or more edges are
-     * missing from the ring.
-     */
     public Map<Integer, Integer> asMap() {
-        Preconditions.checkState(
-                !anyEmpty(), "Cannot convert ring to map as some edges are missing", SafeArg.of("ring", ring));
-        return EntryStream.of(ring).mapValues(Optional::get).toMap();
+        return ring;
     }
 
-    private boolean anyEmpty() {
-        return ring.values().stream().anyMatch(Optional::isEmpty);
+    private static boolean isEmpty(Map<Integer, Optional<Integer>> ring) {
+        return ring.values().stream().allMatch(Optional::isEmpty);
     }
 
-    private boolean isEmpty() {
-        return ring.values().stream().allMatch(Optional::isEmpty);
+    private static boolean anyEmpty(Map<Integer, Optional<Integer>> ring) {
+        return ring.values().stream().anyMatch(Optional::isEmpty);
     }
 }u}(j_|  (b61a147fa915d9d9bc6a1c067dc9062846f62cf4j|  natlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingValidationException.javaj|  addedj|  K:j|  K j|  K:j|  https://github.com/palantir/atlasdb/blob/5a1865e6187212a51d00b15863fde363264e499a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javaj|  https://github.com/palantir/atlasdb/raw/5a1865e6187212a51d00b15863fde363264e499a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javaj|  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.java?ref=5a1865e6187212a51d00b15863fde363264e499aj|  X  @@ -0,0 +1,58 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.palantir.logsafe.Arg;
+import com.palantir.logsafe.Safe;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.SafeLoggable;
+import java.util.List;
+import java.util.Map;
+
+public final class RingValidationException extends IllegalArgumentException implements SafeLoggable {
+
+    private final Map<Integer, Integer> ring;
+    private final Type type;
+
+    private RingValidationException(Map<Integer, Integer> ring, Type type) {
+        this.ring = ring;
+        this.type = type;
+    }
+
+    @Override
+    public @Safe String getLogMessage() {
+        return "Detected an error in the graph when attempting to validate as a ring.";
+    }
+
+    @Override
+    public List<Arg<?>> getArgs() {
+        return List.of(SafeArg.of("ring", ring), SafeArg.of("type", type));
+    }
+
+    public static void throwCycle(Map<Integer, Integer> ring) throws RingValidationException {
+        throw new RingValidationException(ring, Type.CYCLE);
+    }
+
+    public static void throwMissingEntries(Map<Integer, Integer> ring) throws RingValidationException {
+        throw new RingValidationException(ring, Type.MISSING_ENTRIES);
+    }
+
+    enum Type {
+        CYCLE,
+        MISSING_ENTRIES;
+    }
+}u}(j_|  (36f38d7b266c2551464a3e585d644d013c773621j|  datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflows.javaj|  modifiedj|  Kj|  Kj|  Kj|  https://github.com/palantir/atlasdb/blob/5a1865e6187212a51d00b15863fde363264e499a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj|  https://github.com/palantir/atlasdb/raw/5a1865e6187212a51d00b15863fde363264e499a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj|  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.java?ref=5a1865e6187212a51d00b15863fde363264e499aj|  X
  @@ -24,11 +24,11 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
 import com.palantir.atlasdb.workload.workflow.Workflow;
-import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.Map;
 import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.function.Function;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
@@ -56,27 +56,34 @@ public static Workflow create(
             ListeningExecutorService executionExecutor) {
         return DefaultWorkflow.create(
                 store,
-                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration),
+                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, new AtomicBoolean(false)),
                 ringWorkflowConfiguration,
                 executionExecutor);
     }
 
     private static Optional<WitnessedTransaction> run(
-            InteractiveTransactionStore store, RingWorkflowConfiguration workflowConfiguration) {
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration workflowConfiguration,
+            AtomicBoolean skipRunning) {
+        if (skipRunning.get()) {
+            return Optional.empty();
+        }
+
         workflowConfiguration.transactionRateLimiter().acquire();
         String table = workflowConfiguration.tableConfiguration().tableName();
         Integer ringSize = workflowConfiguration.ringSize();
         return store.readWrite(txn -> {
             Map<Integer, Optional<Integer>> data = fetchData(table, ringSize, txn);
-            RingGraph ringGraph = RingGraph.fromPartial(data);
-            ringGraph
-                    .validate()
-                    .ifPresent(ringError ->
-                            log.error("Detected violation with our ring {}", SafeArg.of("ringError", ringError)));
-            ringGraph
-                    .generateNewRing()
-                    .asMap()
-                    .forEach((rootNode, nextNode) -> txn.write(table, cell(rootNode), nextNode));
+            try {
+                RingGraph ringGraph = RingGraph.fromPartial(data);
+                ringGraph
+                        .generateNewRing()
+                        .asMap()
+                        .forEach((rootNode, nextNode) -> txn.write(table, cell(rootNode), nextNode));
+            } catch (IllegalArgumentException e) {
+                skipRunning.set(true);
+                log.error("Detected violation with our ring.", e);
+            }
         });
     }
 u}(j_|  (2639dcaa47d6c01ba5ea51f4e390d8ac17aef589j|  datlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingGraphTest.javaj|  modifiedj|  K/j|  K#j|  KRj|  https://github.com/palantir/atlasdb/blob/5a1865e6187212a51d00b15863fde363264e499a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj|  https://github.com/palantir/atlasdb/raw/5a1865e6187212a51d00b15863fde363264e499a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj|  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.java?ref=5a1865e6187212a51d00b15863fde363264e499aj|  X-  @@ -16,77 +16,89 @@
 
 package com.palantir.atlasdb.workload.workflow.ring;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatThrownBy;
+import static org.assertj.core.api.Assertions.assertThatCode;
 
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Map;
 import java.util.Optional;
 import org.junit.Test;
 
-public class RingGraphTest {
+public final class RingGraphTest {
 
     private static final Map<Integer, Integer> VALID_RING = Map.of(0, 2, 1, 0, 2, 1);
 
     @Test
-    public void validateReturnsOptionalWhenEntireRingEmpty() {
-        assertThat(RingGraph.fromPartial(Map.of()).validate()).isEmpty();
+    public void fromPartialGeneratesRandomRingWhenAllKeysEmpty() {
+        Map<Integer, Optional<Integer>> emptyEdges = Map.of(1, Optional.empty(), 2, Optional.empty());
+        assertThatCode(() -> RingGraph.fromPartial(emptyEdges)).doesNotThrowAnyException();
     }
 
     @Test
-    public void validateReturnsMissingEntriesErrorWhenSomeValuesEmpty() {
+    public void fromPartialThrowsWhenSomeEntriesAreEmpty() {
         Map<Integer, Optional<Integer>> partiallyEmptyRing = Map.of(0, Optional.of(1), 1, Optional.empty());
-        assertThat(RingGraph.fromPartial(partiallyEmptyRing).validate())
-                .hasValue(RingError.missingEntries(partiallyEmptyRing));
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.fromPartial(partiallyEmptyRing))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Graph contains missing entries, thus cannot be made into a ring.")
+                .hasExactlyArgs(SafeArg.of("ring", partiallyEmptyRing));
     }
 
     @Test
-    public void validateReturnsMissingEntriesErrorWhenNonExistentNodesReferenced() {
-        Map<Integer, Optional<Integer>> missingNodesRing = Map.of(0, Optional.of(2), 1, Optional.of(0));
-        assertThat(RingGraph.fromPartial(missingNodesRing).validate())
-                .hasValue(RingError.missingEntries(missingNodesRing));
+    public void fromThrowsMissingEntriesWhenNodeReferencedDoesNotExist() {
+        Map<Integer, Integer> missingNodesRing = Map.of(0, 2, 1, 0);
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(missingNodesRing))
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.MISSING_ENTRIES),
+                        SafeArg.of("ring", missingNodesRing));
     }
 
     @Test
-    public void validateReturnsCycleErrorWhenUnableToReachEveryNode() {
-        Map<Integer, Optional<Integer>> incompleteRing =
-                Map.of(0, Optional.of(1), 1, Optional.of(1), 2, Optional.of(0));
-        assertThat(RingGraph.fromPartial(incompleteRing).validate()).hasValue(RingError.cycle(incompleteRing));
+    public void fromThrowsCycleExceptionWhenUnableToReachEveryNode() {
+        Map<Integer, Integer> incompleteRing = Map.of(0, 1, 1, 1, 2, 0);
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(incompleteRing))
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.CYCLE), SafeArg.of("ring", incompleteRing));
     }
 
     @Test
-    public void validateReturnsCycleErrorWhenRootNodeNotRevisited() {
-        Map<Integer, Optional<Integer>> incompleteRing = Map.of(0, Optional.of(1), 1, Optional.of(1));
-        assertThat(RingGraph.fromPartial(incompleteRing).validate()).hasValue(RingError.cycle(incompleteRing));
+    public void fromThrowsCycleExceptionWhenRootNodeNotRevisited() {
+        Map<Integer, Integer> incompleteRing = Map.of(0, 1, 1, 1);
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(incompleteRing))
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.CYCLE), SafeArg.of("ring", incompleteRing));
     }
 
     @Test
-    public void validateReturnsEmptyForValidRing() {
-        assertThat(RingGraph.from(VALID_RING).validate()).isEmpty();
+    public void fromReturnsRandomlyGeneratedRingForEmptyRing() {
+        RingGraph ringGraph = RingGraph.from(VALID_RING);
+        boolean uniqueAtLeastOnce = false;
+        for (int iteration = 0; iteration < 10; iteration++) {
+            if (!ringGraph.generateNewRing().asMap().equals(ringGraph.asMap())) {
+                uniqueAtLeastOnce = true;
+                break;
+            }
+        }
+        assertThat(uniqueAtLeastOnce)
+                .as("Check ring generation multiple times as we could randomly generate an identical ring")
+                .isTrue();
     }
 
     @Test
     public void generateNewRingReturnsValidRing() {
-        RingGraph ring = RingGraph.init(8);
+        RingGraph ring = RingGraph.create(8);
         for (int count = 0; count < 1000; count++) {
-            ring = ring.generateNewRing();
-            assertThat(ring.validate()).isEmpty();
+            assertThatCode(() -> RingGraph.from(ring.generateNewRing().asMap())).doesNotThrowAnyException();
         }
     }
 
     @Test
     public void generateNewRingChangesRing() {
-        RingGraph ring = RingGraph.from(Map.of(0, 1, 1, 1));
-        assertThat(ring.validate()).isNotEmpty();
-        assertThat(ring.generateNewRing().validate()).isEmpty();
-    }
-
-    @Test
-    public void asMapThrowsWhenMissingEdge() {
-        Map<Integer, Optional<Integer>> missingEdge = Map.of(0, Optional.of(1), 1, Optional.empty());
-        assertThatThrownBy(() -> RingGraph.fromPartial(missingEdge).asMap())
-                .isInstanceOf(SafeIllegalStateException.class)
-                .hasMessageContaining("Cannot convert ring to map as some edges are missing");
+        RingGraph.from(VALID_RING);
     }
 
     @Testueu(1dd28dd9ba6e0f819e477a13efaed58f00ed6027}(sha(1dd28dd9ba6e0f819e477a13efaed58f00ed6027node_idEC_kwDOAjP5fdoAKDFkZDI4ZGQ5YmE2ZTBmODE5ZTQ3N2ExM2VmYWVkNThmMDBlZDYwMjccommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-04-03T14:16:41Zu	committer}(j}  
Ahmed Alouanej}  aalouane@palantir.comj
}  2023-04-05T12:48:46Zumessage|Improve Sqlite namespace loader implementation (#6488)

(cherry picked from commit 1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7)tree}(j|  (52c5313e65c41cc466d7e5a75f095cb0326777ddurl`https://api.github.com/repos/palantir/atlasdb/git/trees/52c5313e65c41cc466d7e5a75f095cb0326777dduj}  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1dd28dd9ba6e0f819e477a13efaed58f00ed6027
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQtbi4ACgkQPlMHVIT1
yhq2Qwf8CJL3qUxEa/A1t0mz4bT/jVZbeWQS42d8Ftz6/Mcsgp+acbAYYlwLA2uW
6QXhkGdB4/AVR+uU4C1m5PxYiktwu/rMBKD2YWSCEhHLQdbHq6Bi/1G1iElcxe+A
i3JSmmbK32GwV1jtSH90OqmdPnZlAFAhs7NUG50O7Ebtusrsbd276MyTBfX5wuqU
k90FViF32Xv80/1x3rzME9EftaJhH22exhFs6TcVRBvBPj1b0R1EbLiW8xVUBKUI
ahJNYoCXUCJ/m8b/qckj5MWD5/7zeWlcmdO2tztHW4A6osxH75R2RfGv/u0D+0UV
KwAMKei0K+ZiEboIqQMduWWdGoQT8A==
=E04u
-----END PGP SIGNATURE-----payloadXi  tree 52c5313e65c41cc466d7e5a75f095cb0326777dd
parent 587ad6c017a84adb5495125d1eb63434a90fb8be
author aalouane <30903736+ergo14@users.noreply.github.com> 1680531401 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1680698926 +0100

Improve Sqlite namespace loader implementation (#6488)

(cherry picked from commit 1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7)
uuj}  ^https://api.github.com/repos/palantir/atlasdb/commits/1dd28dd9ba6e0f819e477a13efaed58f00ed6027html_urlShttps://github.com/palantir/atlasdb/commit/1dd28dd9ba6e0f819e477a13efaed58f00ed6027comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1dd28dd9ba6e0f819e477a13efaed58f00ed6027/commentsj}  }(loginergo14idJj }  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j}  #https://api.github.com/users/ergo14j$}  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj}  }(j)}  ergo14j+}  Jj }  MDQ6VXNlcjMwOTAzNzM2j-}  4https://avatars.githubusercontent.com/u/30903736?v=4j/}  h5j}  #https://api.github.com/users/ergo14j$}  https://github.com/ergo14j2}  -https://api.github.com/users/ergo14/followersj4}  :https://api.github.com/users/ergo14/following{/other_user}j6}  3https://api.github.com/users/ergo14/gists{/gist_id}j8}  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j:}  1https://api.github.com/users/ergo14/subscriptionsj<}  (https://api.github.com/users/ergo14/orgsj>}  )https://api.github.com/users/ergo14/reposj@}  4https://api.github.com/users/ergo14/events{/privacy}jB}  3https://api.github.com/users/ergo14/received_eventsjD}  UserjF}  uparents]}(j|  (587ad6c017a84adb5495125d1eb63434a90fb8bej}  ^https://api.github.com/repos/palantir/atlasdb/commits/587ad6c017a84adb5495125d1eb63434a90fb8bej$}  Shttps://github.com/palantir/atlasdb/commit/587ad6c017a84adb5495125d1eb63434a90fb8beuastats}(totalK.	additionsK$	deletionsK
ufiles](}(j|  (d950412e3468eb3c6435b88c85e31c8234c831c5filename$changelog/@unreleased/pr-6488.v2.ymlstatusaddedj`}  Kja}  K changesKblob_url|https://github.com/palantir/atlasdb/blob/1dd28dd9ba6e0f819e477a13efaed58f00ed6027/changelog%2F%40unreleased%2Fpr-6488.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/1dd28dd9ba6e0f819e477a13efaed58f00ed6027/changelog%2F%40unreleased%2Fpr-6488.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6488.v2.yml?ref=1dd28dd9ba6e0f819e477a13efaed58f00ed6027patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Improve Sqlite namespace loader implementation
+  links:
+  - https://github.com/palantir/atlasdb/pull/6488u}(j|  (88bd214a5821cbc0c51c4de2bb7212dc6f8ae78cjf}  Nleader-election-impl/src/main/java/com/palantir/paxos/SqlitePaxosStateLog.javajh}  modifiedj`}  Kja}  Kjj}  Kjk}  https://github.com/palantir/atlasdb/blob/1dd28dd9ba6e0f819e477a13efaed58f00ed6027/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FSqlitePaxosStateLog.javajm}  https://github.com/palantir/atlasdb/raw/1dd28dd9ba6e0f819e477a13efaed58f00ed6027/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FSqlitePaxosStateLog.javajo}  https://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FSqlitePaxosStateLog.java?ref=1dd28dd9ba6e0f819e477a13efaed58f00ed6027jq}  X  @@ -17,8 +17,8 @@
 package com.palantir.paxos;
 
 import com.palantir.common.persist.Persistable;
+import java.util.Optional;
 import java.util.OptionalLong;
-import java.util.Set;
 import java.util.function.Function;
 import javax.sql.DataSource;
 import org.jdbi.v3.core.Jdbi;
@@ -138,7 +138,9 @@ <V extends Persistable & Versionable> boolean[] writeBatchOfRounds(
                 @Bind("useCase") String useCase,
                 @BindPojo("round") Iterable<PaxosRound<V>> rounds);
 
-        @SqlQuery("SELECT DISTINCT(namespace) FROM paxosLog")
-        Set<String> getAllNamespaces();
+        // This is performant as long as the query plan is SEARCH.
+        @SqlQuery("SELECT MIN(namespace) FROM paxosLog WHERE namespace > :maybeLastReadNamespace")
+        Optional<String> getNextLexicographicallySmallestNamespace(
+                @Bind("maybeLastReadNamespace") String maybeLastReadNamespace);
     }
 }u}(j|  (baf227911b652b66b8cea30d134f4695a43cf96ejf}  9timelock-api/src/main/conjure/timelock-management-api.ymljh}  modifiedj`}  Kja}  Kjj}  Kjk}  https://github.com/palantir/atlasdb/blob/1dd28dd9ba6e0f819e477a13efaed58f00ed6027/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymljm}  https://github.com/palantir/atlasdb/raw/1dd28dd9ba6e0f819e477a13efaed58f00ed6027/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymljo}  https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.yml?ref=1dd28dd9ba6e0f819e477a13efaed58f00ed6027jq}  X  @@ -88,7 +88,8 @@ services:
         returns: set<string>
         docs: |
           The endpoint loads all persisted namespaces. ``leaderPaxos`` is filtered out from the set
-          as it is not a namespace.
+          as it is not a namespace. No transactionality guarantees are given: namespace additions and
+          deletions while the request is running may or may not be reflected in the output.
 
       achieveConsensus:
         http: POST /achieveConsensusu}(j|  (f51d42df113edf4565c16d14a214a1259f59b6ecjf}  ctimelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/PersistentNamespaceLoader.javajh}  modifiedj`}  Kja}  K jj}  Kjk}  https://github.com/palantir/atlasdb/blob/1dd28dd9ba6e0f819e477a13efaed58f00ed6027/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FPersistentNamespaceLoader.javajm}  https://github.com/palantir/atlasdb/raw/1dd28dd9ba6e0f819e477a13efaed58f00ed6027/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FPersistentNamespaceLoader.javajo}  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FPersistentNamespaceLoader.java?ref=1dd28dd9ba6e0f819e477a13efaed58f00ed6027jq}  X  @@ -22,6 +22,8 @@
 public interface PersistentNamespaceLoader {
     /**
      * Gets all namespaces that have been persisted (via the persistence method under question).
+     * No transactionality guarantees are given: namespace additions and deletions while the
+     * request is running may or may not be reflected in the output.
      */
     Set<Client> getAllPersistedNamespaces();
 }u}(j|  (9fe3888160a6f9940e4ac562b73f4e9b808e9a3cjf}  _timelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/SqliteNamespaceLoader.javajh}  modifiedj`}  Kja}  Kjj}  Kjk}  https://github.com/palantir/atlasdb/blob/1dd28dd9ba6e0f819e477a13efaed58f00ed6027/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FSqliteNamespaceLoader.javajm}  https://github.com/palantir/atlasdb/raw/1dd28dd9ba6e0f819e477a13efaed58f00ed6027/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FSqliteNamespaceLoader.javajo}  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FSqliteNamespaceLoader.java?ref=1dd28dd9ba6e0f819e477a13efaed58f00ed6027jq}  X7  @@ -18,13 +18,16 @@
 
 import com.palantir.paxos.Client;
 import com.palantir.paxos.SqlitePaxosStateLog;
+import java.util.HashSet;
+import java.util.Optional;
 import java.util.Set;
-import java.util.stream.Collectors;
 import javax.sql.DataSource;
 import org.jdbi.v3.core.Jdbi;
 import org.jdbi.v3.sqlobject.SqlObjectPlugin;
 
 final class SqliteNamespaceLoader implements PersistentNamespaceLoader {
+    private static final String EMPTY_STRING = "";
+
     private final Jdbi jdbi;
 
     private SqliteNamespaceLoader(Jdbi jdbi) {
@@ -39,10 +42,23 @@ public static PersistentNamespaceLoader create(DataSource dataSource) {
 
     @Override
     public Set<Client> getAllPersistedNamespaces() {
-        return jdbi
-                .withExtension(SqlitePaxosStateLog.Queries.class, SqlitePaxosStateLog.Queries::getAllNamespaces)
-                .stream()
-                .map(Client::of)
-                .collect(Collectors.toSet());
+        Set<Client> clients = new HashSet<>();
+
+        // Namespaces contain at least one character implying the empty string is lexicographically strictly smaller
+        // than any namespace.
+        Optional<String> currentNamespace = getNextLexicographicallySmallestNamespace(EMPTY_STRING);
+        while (currentNamespace.isPresent()) {
+            String namespaceString = currentNamespace.get();
+            clients.add(Client.of(namespaceString));
+            currentNamespace = getNextLexicographicallySmallestNamespace(namespaceString);
+        }
+
+        return clients;
+    }
+
+    private Optional<String> getNextLexicographicallySmallestNamespace(String maybeLastReadNamespace) {
+        return jdbi.withExtension(
+                SqlitePaxosStateLog.Queries.class,
+                dao -> dao.getNextLexicographicallySmallestNamespace(maybeLastReadNamespace));
     }
 }ueu(0b14a8a2c5f892efbb2e63eef22316b0015b4ad9}(sha(0b14a8a2c5f892efbb2e63eef22316b0015b4ad9node_idEC_kwDOAjP5fdoAKDBiMTRhOGEyYzVmODkyZWZiYjJlNjNlZWYyMjMxNmIwMDE1YjRhZDkcommit}(author}(name	Tom Papkeemail+43675490+Toemmsche@users.noreply.github.comdate2023-07-18T15:01:00Zu	committer}(j}  svc-autoreleasej}  -pd-foundry-infrastructure-notify@palantir.comj}  2023-07-18T15:01:00Zumessage"Autorelease 0.898.0-rc1

[skip ci]tree}(j}  (8f3280db1082ff386304fce127deaf4a0c1075a8url`https://api.github.com/repos/palantir/atlasdb/git/trees/8f3280db1082ff386304fce127deaf4a0c1075a8uj}  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0b14a8a2c5f892efbb2e63eef22316b0015b4ad9
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmS2qS0ACgkQhbrR8ip7mDCNdQD/cLRDsWhGHOYGWUcD1Az4IMeh
VgnfTBS2gAwcnHOznnEBAPFkxayLRuH9LhAYHCRqWbnKfeYAVA5K9HIUeYv8FhMj
=i3u1
-----END PGP SIGNATURE-----
payloadX,  tree 8f3280db1082ff386304fce127deaf4a0c1075a8
parent 7e0e841143aefa1be36bb797e74282d75505a61b
author Tom Papke <43675490+Toemmsche@users.noreply.github.com> 1689692460 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1689692460 +0000

Autorelease 0.898.0-rc1

[skip ci]uuj}  ^https://api.github.com/repos/palantir/atlasdb/commits/0b14a8a2c5f892efbb2e63eef22316b0015b4ad9html_urlShttps://github.com/palantir/atlasdb/commit/0b14a8a2c5f892efbb2e63eef22316b0015b4ad9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0b14a8a2c5f892efbb2e63eef22316b0015b4ad9/commentsj}  }(login	ToemmscheidJboj}  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j}  &https://api.github.com/users/Toemmschej}  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj}  }(j}  svc-autoreleasej}  J(j}  MDQ6VXNlcjUxNzE4MzQ2j}  4https://avatars.githubusercontent.com/u/51718346?v=4j}  h5j}  ,https://api.github.com/users/svc-autoreleasej}  "https://github.com/svc-autoreleasej}  6https://api.github.com/users/svc-autorelease/followersj}  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j}  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j}  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j}  :https://api.github.com/users/svc-autorelease/subscriptionsj}  1https://api.github.com/users/svc-autorelease/orgsj}  2https://api.github.com/users/svc-autorelease/reposj}  =https://api.github.com/users/svc-autorelease/events{/privacy}j}  <https://api.github.com/users/svc-autorelease/received_eventsj}  Userj}  uparents]}(j}  (7e0e841143aefa1be36bb797e74282d75505a61bj}  ^https://api.github.com/repos/palantir/atlasdb/commits/7e0e841143aefa1be36bb797e74282d75505a61bj}  Shttps://github.com/palantir/atlasdb/commit/7e0e841143aefa1be36bb797e74282d75505a61buastats}(totalK 	additionsK 	deletionsK ufiles]u(95c8c250a8302f33c0d69c0c67b435dbf42f4ec4}(sha(95c8c250a8302f33c0d69c0c67b435dbf42f4ec4node_idEC_kwDOAjP5fdoAKDk1YzhjMjUwYTgzMDJmMzNjMGQ2OWMwYzY3YjQzNWRiZjQyZjRlYzQcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-22T12:19:11Zu	committer}(j~  
Ahmed Alouanej~  aalouane@palantir.comj	~  2023-05-22T12:19:11ZumessageZRevert "compile no compile"

This reverts commit 526225736500fdd12ad840a285a43f87114e1d7a.tree}(j}  (513f3ca80c853421e6198d8fd0b383d4b5bf2740url`https://api.github.com/repos/palantir/atlasdb/git/trees/513f3ca80c853421e6198d8fd0b383d4b5bf2740uj~  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/95c8c250a8302f33c0d69c0c67b435dbf42f4ec4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRrXcEACgkQPlMHVIT1
yhoPjQf+JToVjXXqPHCmFzC1q72qcbrVEvvw7G7rXAMyCJWGgnv0WGvWAvmRbI0u
R5IEjBiUPdjgvfw1PUh6mS29tEWqiADsO0bZid6ebZ6ZvQTjjdkCyGbQtSpnL2TL
V+IS8lHPz9ReKpuN9N9g3UNk1aYto+Od50/ssKYlt+k4MYBt2TVYu5nHUFNIG/Kg
KdXuiTxLjJOyvZ8HG4C36ryyTkRklJJaO6zj40NWONLECvoUUZSCN14TCLwZyjjE
NIJZBcdebeGEqZm2Q73bm4UsNeNd3uF04gJUOTSDAHDM0u6tc8DPHBLy/7ZlN35z
cigfA+OS3wHViHSfdmhoOK4xevv0JQ==
=XsOi
-----END PGP SIGNATURE-----payloadX9  tree 513f3ca80c853421e6198d8fd0b383d4b5bf2740
parent 526225736500fdd12ad840a285a43f87114e1d7a
author Ahmed Alouane <aalouane@palantir.com> 1684757951 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684757951 +0100

Revert "compile no compile"

This reverts commit 526225736500fdd12ad840a285a43f87114e1d7a.
uuj~  ^https://api.github.com/repos/palantir/atlasdb/commits/95c8c250a8302f33c0d69c0c67b435dbf42f4ec4html_urlShttps://github.com/palantir/atlasdb/commit/95c8c250a8302f33c0d69c0c67b435dbf42f4ec4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/95c8c250a8302f33c0d69c0c67b435dbf42f4ec4/commentsj~  }(loginergo14idJj}  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j~  #https://api.github.com/users/ergo14j#~  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj~  }(j(~  ergo14j*~  Jj}  MDQ6VXNlcjMwOTAzNzM2j,~  4https://avatars.githubusercontent.com/u/30903736?v=4j.~  h5j~  #https://api.github.com/users/ergo14j#~  https://github.com/ergo14j1~  -https://api.github.com/users/ergo14/followersj3~  :https://api.github.com/users/ergo14/following{/other_user}j5~  3https://api.github.com/users/ergo14/gists{/gist_id}j7~  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j9~  1https://api.github.com/users/ergo14/subscriptionsj;~  (https://api.github.com/users/ergo14/orgsj=~  )https://api.github.com/users/ergo14/reposj?~  4https://api.github.com/users/ergo14/events{/privacy}jA~  3https://api.github.com/users/ergo14/received_eventsjC~  UserjE~  uparents]}(j}  (526225736500fdd12ad840a285a43f87114e1d7aj~  ^https://api.github.com/repos/palantir/atlasdb/commits/526225736500fdd12ad840a285a43f87114e1d7aj#~  Shttps://github.com/palantir/atlasdb/commit/526225736500fdd12ad840a285a43f87114e1d7auastats}(totalK	additionsK	deletionsKufiles]}(j}  (2d070de9f2347fae910c495c00df2d88e302557dfilename.circleci/config.ymlstatusmodifiedj_~  Kj`~  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/95c8c250a8302f33c0d69c0c67b435dbf42f4ec4/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/95c8c250a8302f33c0d69c0c67b435dbf42f4ec4/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=95c8c250a8302f33c0d69c0c67b435dbf42f4ec4patchX  @@ -159,7 +159,7 @@ workflows:
             tags:
               only: /.*/
       - test-suite:
-          requires: [build]
+          requires: [build, compile]
           matrix:
             alias: test-no-tl
             parameters:
@@ -169,7 +169,7 @@ workflows:
             tags:
               only: /.*/
       - test-suite:
-          requires: [build]
+          requires: [build, compile]
           matrix:
             alias: test-tl
             parameters:uau(796f648e308d4853b8c997f40cf1fc16d9c39b90}(sha(796f648e308d4853b8c997f40cf1fc16d9c39b90node_idEC_kwDOAjP5fdoAKDc5NmY2NDhlMzA4ZDQ4NTNiOGM5OTdmNDBjZjFmYzE2ZDljMzliOTAcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-03-13T19:38:16Zu	committer}(j|~  Jeremy Kongj~~  jkong@palantir.comj~  2023-03-13T19:38:16ZumessageCRtree}(jt~  (003e3e24b6d199ac73af73bfc678b0f69b379683url`https://api.github.com/repos/palantir/atlasdb/git/trees/003e3e24b6d199ac73af73bfc678b0f69b379683uj~  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/796f648e308d4853b8c997f40cf1fc16d9c39b90
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQPe6kACgkQTLdFKain
zjyZVAgAzbDd/J0++sVAg8pg9+ajq6APM2dCJxT7Hm6zDGzlfwYFozcaexXkJqsG
Gx/UjQR3E4bFHP8YxecvYUhc2B7aqiOf+69U9VYMAuOT+6YH9GopI9KqGrPJIK1X
edlWZwjeSK6pweQfR6TX1Qoo2phOgYj6wJ5TlHeR6kmdRTRHLQeVTsYRrrf38jQb
xe6tQCO3rUCnaSCm2tREtfNig4ktCsWK2p1IpWHhQvAGw5UOieN2qWHfs8MGKLFG
jmGCaHPPI6gJUXnHiWvszjPTyQygOEYPYFntiOxE+5Agn+y6LG9MthMh4hCWp3N+
Y21GUVLnvenv5Gwy6cymHyF5Hkz86A==
=wCfk
-----END PGP SIGNATURE-----payloadtree 003e3e24b6d199ac73af73bfc678b0f69b379683
parent a39068f79dc804bafc968783d0d32ab20cfe813d
author Jeremy Kong <jkong@palantir.com> 1678736296 +0000
committer Jeremy Kong <jkong@palantir.com> 1678736296 +0000

CR
uuj~  ^https://api.github.com/repos/palantir/atlasdb/commits/796f648e308d4853b8c997f40cf1fc16d9c39b90html_urlShttps://github.com/palantir/atlasdb/commit/796f648e308d4853b8c997f40cf1fc16d9c39b90comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/796f648e308d4853b8c997f40cf1fc16d9c39b90/commentsjz~  }(login
jeremyk-91idJZ jv~  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j~  'https://api.github.com/users/jeremyk-91j~  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj~  }(j~  
jeremyk-91j~  JZ jv~  MDQ6VXNlcjU5NTU1MTA=j~  3https://avatars.githubusercontent.com/u/5955510?v=4j~  h5j~  'https://api.github.com/users/jeremyk-91j~  https://github.com/jeremyk-91j~  1https://api.github.com/users/jeremyk-91/followersj~  >https://api.github.com/users/jeremyk-91/following{/other_user}j~  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j~  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j~  5https://api.github.com/users/jeremyk-91/subscriptionsj~  ,https://api.github.com/users/jeremyk-91/orgsj~  -https://api.github.com/users/jeremyk-91/reposj~  8https://api.github.com/users/jeremyk-91/events{/privacy}j~  7https://api.github.com/users/jeremyk-91/received_eventsj~  Userj~  uparents]}(jt~  (a39068f79dc804bafc968783d0d32ab20cfe813dj~  ^https://api.github.com/repos/palantir/atlasdb/commits/a39068f79dc804bafc968783d0d32ab20cfe813dj~  Shttps://github.com/palantir/atlasdb/commit/a39068f79dc804bafc968783d0d32ab20cfe813duastats}(totalK	additionsK+	deletionsKufiles](}(jt~  (ac4293772d658c9c2577d6fd4745c72d17334021filenameaatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/IsolationLevel.javastatusaddedj~  Kj~  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/796f648e308d4853b8c997f40cf1fc16d9c39b90/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIsolationLevel.javaraw_urlhttps://github.com/palantir/atlasdb/raw/796f648e308d4853b8c997f40cf1fc16d9c39b90/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIsolationLevel.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIsolationLevel.java?ref=796f648e308d4853b8c997f40cf1fc16d9c39b90patchX6  @@ -0,0 +1,23 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+public enum IsolationLevel {
+    SERIALIZABLE,
+    SNAPSHOT,
+    NONE;
+}
\ No newline at end of fileu}(jt~  (f3b4e04f4d4358c82e503f82cffa59f41a139357j~  hatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/TableConfiguration.javaj~  renamedj~  Kj~  Kj~  Kj~  https://github.com/palantir/atlasdb/blob/796f648e308d4853b8c997f40cf1fc16d9c39b90/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.javaj~  https://github.com/palantir/atlasdb/raw/796f648e308d4853b8c997f40cf1fc16d9c39b90/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.javaj~  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.java?ref=796f648e308d4853b8c997f40cf1fc16d9c39b90j~  X  @@ -18,7 +18,7 @@
 
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
 import org.immutables.value.Value;
 
 @Value.Immutable
@@ -27,5 +27,5 @@
 public interface TableConfiguration {
     String tableName();
 
-    ConflictHandler conflictHandler();
+    IsolationLevel isolationLevel();
 }previous_filenamedatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TableConfiguration.javau}(jt~  (254d7da9eefa44345d44d447ac5005b5f7bf33aej~  katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowConfiguration.javaj~  modifiedj~  K j~  Kj~  Kj~  https://github.com/palantir/atlasdb/blob/796f648e308d4853b8c997f40cf1fc16d9c39b90/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj~  https://github.com/palantir/atlasdb/raw/796f648e308d4853b8c997f40cf1fc16d9c39b90/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj~  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.java?ref=796f648e308d4853b8c997f40cf1fc16d9c39b90j~  @@ -24,9 +24,6 @@
 import org.immutables.value.Value;
 
 @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
-@JsonSubTypes({
-        @JsonSubTypes.Type(value = SRTCW)
-})
 public interface WorkflowConfiguration {
     int iterationCount();
 u}(jt~  (085e9eb74303507b9ef67fd35c3a0f43cfc34832j~  Zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/AtlasDbUtils.javaj~  modifiedj~  Kj~  K j~  Kj~  https://github.com/palantir/atlasdb/blob/796f648e308d4853b8c997f40cf1fc16d9c39b90/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj~  https://github.com/palantir/atlasdb/raw/796f648e308d4853b8c997f40cf1fc16d9c39b90/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj~  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.java?ref=796f648e308d4853b8c997f40cf1fc16d9c39b90j~  X  @@ -24,7 +24,10 @@
 import com.palantir.atlasdb.table.description.NameMetadataDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 
 public final class AtlasDbUtils {
 
@@ -50,6 +53,19 @@ public static byte[] tableMetadata(ConflictHandler conflictHandler) {
                 .persistToBytes();
     }
 
+    public static byte[] tableMetadata(IsolationLevel isolationLevel) {
+        switch (isolationLevel) {
+            case SERIALIZABLE:
+                return tableMetadata(ConflictHandler.SERIALIZABLE);
+            case SNAPSHOT:
+                return tableMetadata(ConflictHandler.RETRY_ON_WRITE_WRITE);
+            case NONE:
+                return tableMetadata(ConflictHandler.IGNORE_ALL);
+            default:
+                throw new SafeIllegalStateException("Unknown isolation level", SafeArg.of("isolationLevel", isolationLevel));
+        }
+    }
+
     public static byte[] indexMetadata(ConflictHandler baseTableConflictHandler) {
         ConflictHandler conflictHandler = baseTableConflictHandler.checkReadWriteConflicts()
                 ? ConflictHandler.SERIALIZABLE_INDEXu}(jt~  (29d9311b098d5b68dd132eaf63bcfae11b9fecc7j~  xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javaj~  modifiedj~  Kj~  Kj~  Kj~  https://github.com/palantir/atlasdb/blob/796f648e308d4853b8c997f40cf1fc16d9c39b90/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj~  https://github.com/palantir/atlasdb/raw/796f648e308d4853b8c997f40cf1fc16d9c39b90/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj~  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=796f648e308d4853b8c997f40cf1fc16d9c39b90j~  X:  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import com.fasterxml.jackson.annotation.JsonTypeName;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.google.common.util.concurrent.RateLimiter;
@@ -24,13 +25,10 @@
 @Value.Immutable
 @JsonSerialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
 @JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonTypeName(SingleRowTwoCellsWorkflowConfiguration.TYPE)
 public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfiguration {
     String TYPE = "SINGLE_ROW_TWO_CELLS";
 
-    default String type() {
-        return TYPE;
-    }
-
     TableConfiguration tableConfiguration();
 
     @Value.Defaultu}(jt~  (ca58a22c2fa41aca61e88a8fd75c6ec5ef55f5f9j~  satlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsExample.javaj~  removedj~  K j~  Kj~  Kj~  https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsExample.javaj~  https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsExample.javaj~  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsExample.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj~  X!  @@ -1,177 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.workflow;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatThrownBy;
-
-import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.util.concurrent.MoreExecutors;
-import com.palantir.atlasdb.factory.TransactionManagers;
-import com.palantir.atlasdb.keyvalue.api.Namespace;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
-import com.palantir.atlasdb.transaction.api.ConflictHandler;
-import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
-import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
-import com.palantir.atlasdb.workload.util.AtlasDbUtils;
-import com.palantir.common.concurrent.PTExecutors;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import java.util.stream.Stream;
-import org.junit.Test;
-
-public class SingleRowTwoCellsWorkflowsExample {
-    private static final TableReference TEST_TABLE =
-            TableReference.create(Namespace.create("test"), "singleRowTwoCells");
-    private static final int ITERATION_COUNT = 1_000;
-
-    @Test
-    public void workflowPassesWithSerializableConflictChecking() {
-        runWorkflowWithConflictHandler(ConflictHandler.SERIALIZABLE, ITERATION_COUNT);
-    }
-
-    @Test
-    public void workflowDoesNotPassWhenConflictsAreNotHandled() {
-        assertThatThrownBy(() -> runWorkflowWithConflictHandler(ConflictHandler.IGNORE_ALL, 100))
-                .isInstanceOf(AssertionError.class);
-    }
-
-    private void runWorkflowWithConflictHandler(ConflictHandler conflictHandler, int iterations) {
-        SingleRowTwoCellsWorkflowConfiguration configuration = ImmutableSingleRowTwoCellsWorkflowConfiguration.builder()
-                .iterationCount(iterations)
-                .executionExecutor(MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(100)))
-                .tableConfiguration(ImmutableTableConfiguration.builder()
-                        .tableName(TEST_TABLE.getTableName())
-                        .conflictHandler(conflictHandler)
-                        .build())
-                .build();
-
-        TransactionStore transactionStore = AtlasDbTransactionStore.create(
-                TransactionManagers.createInMemory(ImmutableSet.of()),
-                ImmutableMap.of(
-                        TEST_TABLE,
-                        AtlasDbUtils.tableMetadata(
-                                configuration.tableConfiguration().conflictHandler())));
-        Workflow workflow = SingleRowTwoCellsWorkflows.createSingleRowTwoCell(transactionStore, configuration);
-        assertWorkflowHistoryConsistent(workflow.run());
-    }
-
-    // This is basically a very simple invariant checker
-    private void assertWorkflowHistoryConsistent(WorkflowHistory workflowHistory) {
-        List<WitnessedTransaction> transactionsByCommitTime = workflowHistory.history();
-        CellStateCheckingVisitor cellStateCheckingVisitor = new CellStateCheckingVisitor();
-
-        transactionsByCommitTime.forEach(witnessedTransaction -> {
-            LocalWriteWitnessVisitor localWriteWitnessVisitor = new LocalWriteWitnessVisitor();
-            witnessedTransaction.actions().forEach(action -> {
-                action.accept(localWriteWitnessVisitor);
-                action.accept(cellStateCheckingVisitor);
-            });
-        });
-
-        // Start from 1 intentional as we want to look at pairs of transactions
-        for (int index = 1; index < transactionsByCommitTime.size(); index++) {
-            WitnessedTransaction predecessor = transactionsByCommitTime.get(index - 1);
-            WitnessedTransaction successor = transactionsByCommitTime.get(index);
-
-            assertThat(predecessor.commitTimestamp())
-                    .hasValueSatisfying(predecessorCommitTimestamp ->
-                            assertThat(predecessorCommitTimestamp).isLessThan(successor.startTimestamp()))
-                    .as("given all transactions touch the same cells, overlapping transactions should conflict and so "
-                            + "they should not be allowed");
-        }
-
-        validateFinalTableState(workflowHistory);
-    }
-
-    private static void validateFinalTableState(WorkflowHistory workflowHistory) {
-        Optional<Integer> firstCellState = workflowHistory
-                .transactionStore()
-                .get(TEST_TABLE.getTableName(), SingleRowTwoCellsWorkflows.FIRST_CELL);
-        Optional<Integer> secondCellState = workflowHistory
-                .transactionStore()
-                .get(TEST_TABLE.getTableName(), SingleRowTwoCellsWorkflows.SECOND_CELL);
-        assertThat(firstCellState.isPresent() ^ secondCellState.isPresent())
-                .as("exactly one of the cells should be present")
-                .isTrue();
-        int cellValue = Stream.of(firstCellState, secondCellState)
-                .flatMap(Optional::stream)
-                .findAny()
-                .orElseThrow();
-        assertThat(cellValue)
-                .as("cell value must correspond with the ID of a writer")
-                .isBetween(0, ITERATION_COUNT);
-    }
-
-    private static final class LocalWriteWitnessVisitor implements WitnessedTransactionActionVisitor<Void> {
-        private final Map<WorkloadCell, Optional<Integer>> localWriteMap = new HashMap<>();
-
-        @Override
-        public Void visit(WitnessedReadTransactionAction readTransactionAction) {
-            if (localWriteMap.containsKey(readTransactionAction.cell())) {
-                assertThat(readTransactionAction.value()).isEqualTo(localWriteMap.get(readTransactionAction.cell()));
-            }
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
-            localWriteMap.put(writeTransactionAction.cell(), Optional.of(writeTransactionAction.value()));
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
-            localWriteMap.put(deleteTransactionAction.cell(), Optional.empty());
-            return null;
-        }
-    }
-
-    private static final class CellStateCheckingVisitor implements WitnessedTransactionActionVisitor<Void> {
-        private final Map<WorkloadCell, Integer> tableState = new HashMap<>();
-
-        @Override
-        public Void visit(WitnessedReadTransactionAction readTransactionAction) {
-            Optional<Integer> expected = Optional.ofNullable(tableState.get(readTransactionAction.cell()));
-            assertThat(readTransactionAction.value())
-                    .as("read a cell that does not match the expected table state")
-                    .isEqualTo(expected);
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
-            tableState.put(writeTransactionAction.cell(), writeTransactionAction.value());
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
-            tableState.remove(deleteTransactionAction.cell());
-            return null;
-        }
-    }
-}u}(jt~  (e9f865b8ddc188db6e06f14353cf3a2b64a09520j~  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javaj~  modifiedj~  K j~  Kj~  Kj~  https://github.com/palantir/atlasdb/blob/796f648e308d4853b8c997f40cf1fc16d9c39b90/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj~  https://github.com/palantir/atlasdb/raw/796f648e308d4853b8c997f40cf1fc16d9c39b90/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj~  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=796f648e308d4853b8c997f40cf1fc16d9c39b90j~  X  @@ -62,7 +62,6 @@ public void createsCorrectTransactionActions() {
 
     @Test
     public void writesValueCorrespondingToTaskIndexInRelevantCell() {
-        // This test makes sense in relation to createCorrectTransactionActionsForIndex().
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(31415926, TABLE_NAME))
                 .containsExactly(
                         ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),ueu(c2e1a5d113b002cdb8d54775be01f0a2bd7526e5}(sha(c2e1a5d113b002cdb8d54775be01f0a2bd7526e5node_idEC_kwDOAjP5fdoAKGMyZTFhNWQxMTNiMDAyY2RiOGQ1NDc3NWJlMDFmMGEyYmQ3NTI2ZTUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-03T10:11:07Zu	committer}(j%  
Sam Kramerj'  skramer@palantir.comj)  2023-05-03T10:11:07Zumessageadd logstree}(j  (ab6a33c40a9ff8ef790312f8f8627338c2ff8f64url`https://api.github.com/repos/palantir/atlasdb/git/trees/ab6a33c40a9ff8ef790312f8f8627338c2ff8f64uj5  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c2e1a5d113b002cdb8d54775be01f0a2bd7526e5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRSMzsACgkQmPPOpKR4
XS22IAf7Bs4CIVkM7tP3PdI/H5xDDIY8vA4krYa7Hxq5qn7GWYhJw+PJ3ZtgFIK3
bhhLYqJo90dLRurAIb5XqT2RyuUSso9uaHH7/VKjAGBvPT4bBKAuAqHaVLJAwmfJ
VKPS1nPblBKubwz1O+mQqPKOo4vCWpELSQe3SWcchLZYPe61PHDwBM2Ub8isUIl0
dzjxUGtaQBzXvRTVKf8rkkw3ezLegC0NUPzZkW88qJg7RQft1kxTJpxpjrRNhttG
8DQpgELGgI61Lz8EdNGJwWk++XoK3Bl/h9Of0i48kyYT8RLKW8joL1KEhRhptiZW
5xwEoFo5Bi9jlB6dmtr6YK1QVLk63Q==
=fhzT
-----END PGP SIGNATURE-----payloadtree ab6a33c40a9ff8ef790312f8f8627338c2ff8f64
parent 58f4c695f95104cef91ace9620346e12993fc560
author Sam Kramer <skramer@palantir.com> 1683108667 +0100
committer Sam Kramer <skramer@palantir.com> 1683108667 +0100

add logs
uuj5  ^https://api.github.com/repos/palantir/atlasdb/commits/c2e1a5d113b002cdb8d54775be01f0a2bd7526e5html_urlShttps://github.com/palantir/atlasdb/commit/c2e1a5d113b002cdb8d54775be01f0a2bd7526e5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c2e1a5d113b002cdb8d54775be01f0a2bd7526e5/commentsj#  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j5  'https://api.github.com/users/Sam-KramerjC  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj+  }(jH  
Sam-KramerjJ  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=jL  3https://avatars.githubusercontent.com/u/6238814?v=4jN  h5j5  'https://api.github.com/users/Sam-KramerjC  https://github.com/Sam-KramerjQ  1https://api.github.com/users/Sam-Kramer/followersjS  >https://api.github.com/users/Sam-Kramer/following{/other_user}jU  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jW  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo})      jY  5https://api.github.com/users/Sam-Kramer/subscriptionsj[  ,https://api.github.com/users/Sam-Kramer/orgsj]  -https://api.github.com/users/Sam-Kramer/reposj_  8https://api.github.com/users/Sam-Kramer/events{/privacy}ja  7https://api.github.com/users/Sam-Kramer/received_eventsjc  Userje  uparents]}(j  (58f4c695f95104cef91ace9620346e12993fc560j5  ^https://api.github.com/repos/palantir/atlasdb/commits/58f4c695f95104cef91ace9620346e12993fc560jC  Shttps://github.com/palantir/atlasdb/commit/58f4c695f95104cef91ace9620346e12993fc560uastats}(totalK	additionsK	deletionsKufiles](}(j  (cc0daee58b86914cb90ce35dca307a652ee183c6filenameWatlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyTest.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/c2e1a5d113b002cdb8d54775be01f0a2bd7526e5/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c2e1a5d113b002cdb8d54775be01f0a2bd7526e5/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.java?ref=c2e1a5d113b002cdb8d54775be01f0a2bd7526e5patchX'  @@ -16,9 +16,9 @@
 
 package com.palantir.atlasdb.buggify.impl;
 
+import static org.assertj.core.api.Assertions.assertThat;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.verify;
-import static org.assertj.core.api.Assertions.assertThat;
 
 import org.junit.Test;
 u}(j  (d29d478bd4d200ee34caabdaf35a0ec2f2afb98dj  Nlock-api/src/main/java/com/palantir/lock/client/UnreliableTimeLockService.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/c2e1a5d113b002cdb8d54775be01f0a2bd7526e5/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javaj  https://github.com/palantir/atlasdb/raw/c2e1a5d113b002cdb8d54775be01f0a2bd7526e5/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.java?ref=c2e1a5d113b002cdb8d54775be01f0a2bd7526e5j  X  @@ -16,6 +16,7 @@
 package com.palantir.lock.client;
 
 import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.Sets;
 import com.palantir.atlasdb.buggify.api.BuggifyFactory;
 import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
 import com.palantir.lock.v2.ClientLockingOptions;
@@ -27,6 +28,9 @@
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.lock.v2.WaitForLocksRequest;
 import com.palantir.lock.v2.WaitForLocksResponse;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.timestamp.TimestampRange;
 import java.util.List;
 import java.util.Set;
@@ -38,6 +42,8 @@
  */
 public final class UnreliableTimeLockService implements TimelockService {
 
+    private static final SafeLogger log = SafeLoggerFactory.get(UnreliableTimeLockService.class);
+
     private final TimelockService delegate;
     private final BuggifyFactory buggify;
 
@@ -89,14 +95,20 @@ public long getImmutableTimestamp() {
     @Override
     public LockResponse lock(LockRequest request) {
         LockResponse response = delegate.lock(request);
-        buggify.maybe(0.25).run(() -> delegate.unlock(Set.of(response.getToken())));
+        buggify.maybe(0.25).run(() -> {
+            log.info("BUGGIFY: Unlocking lock token {} after acquiring", SafeArg.of("token", response.getToken()));
+            delegate.unlock(Set.of(response.getToken()));
+        });
         return response;
     }
 
     @Override
     public LockResponse lock(LockRequest lockRequest, ClientLockingOptions options) {
         LockResponse response = delegate.lock(lockRequest, options);
-        buggify.maybe(0.25).run(() -> delegate.unlock(Set.of(response.getToken())));
+        buggify.maybe(0.25).run(() -> {
+            log.info("BUGGIFY: Unlocking lock token {} after acquiring", SafeArg.of("token", response.getToken()));
+            delegate.unlock(Set.of(response.getToken()));
+        });
         return response;
     }
 
@@ -108,8 +120,13 @@ public WaitForLocksResponse waitForLocks(WaitForLocksRequest request) {
     @Override
     public Set<LockToken> refreshLockLeases(Set<LockToken> tokens) {
         Set<LockToken> tokensToRefresh = tokens.stream()
-                .filter(_token -> !buggify.maybe(0.25).asBoolean())
+                .filter(_token -> !buggify.maybe(0.10).asBoolean())
                 .collect(Collectors.toSet());
+        Set<LockToken> tokensToUnlock = Sets.difference(tokens, tokensToRefresh);
+        if (!tokensToUnlock.isEmpty()) {
+            log.info("BUGGIFY: Unlocking tokens on refresh: {}", SafeArg.of("tokens", tokensToUnlock));
+            unlock(tokensToUnlock);
+        }
         return delegate.refreshLockLeases(tokensToRefresh);
     }
 ueu(985af7ddf096eca0cab974ab5f5f6ae346ceb425}(sha(985af7ddf096eca0cab974ab5f5f6ae346ceb425node_idEC_kwDOAjP5fdoAKDk4NWFmN2RkZjA5NmVjYTBjYWI5NzRhYjVmNWY2YWUzNDZjZWI0MjUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-03-06T15:45:12Zu	committer}(j  
Ahmed Alouanej  aalouane@palantir.comj  2023-03-06T15:45:12Zumessagepurely for ci2tree}(j  (d59d41e87ddd2a68205ad640114a1bd74ae02e12url`https://api.github.com/repos/palantir/atlasdb/git/trees/d59d41e87ddd2a68205ad640114a1bd74ae02e12uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/985af7ddf096eca0cab974ab5f5f6ae346ceb425
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQGCogACgkQPlMHVIT1
yhprfAf/dxRNBV91c/knMPCLb6PnO4iW4cZwRE36RHZin4dQIn6De1LcjyJ2EhUd
04zaaxUfhc1zVv83ccWAcYWN5rV/d41E4PRCQ9LGjZb48UxXlSvzS1kK0qWDzabt
045mxJYel37zIe5zFq4PsRRFFwIavjcZJCrpLcwIgt74orv65fd/M3aO8rS7Hrfn
B+Cil2ef+pxIE40OOYKDW6WstFVbhpeguVSKDDvRbgvePoxXEyv2wcdWWv5RCZjG
jdteFtukxghJRNHayL/TIQEDAVxmMqlAGiMBUmDoIaA2eVyx0+T3IB4/khj9XW0L
SCm3T5A5LbAcV28O4wxyF7PfgBeaxA==
=2hoq
-----END PGP SIGNATURE-----payloadtree d59d41e87ddd2a68205ad640114a1bd74ae02e12
parent 84642431dd64f791650d986693a4b28f78c41908
author Ahmed Alouane <aalouane@palantir.com> 1678117512 +0000
committer Ahmed Alouane <aalouane@palantir.com> 1678117512 +0000

purely for ci2
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/985af7ddf096eca0cab974ab5f5f6ae346ceb425html_urlShttps://github.com/palantir/atlasdb/commit/985af7ddf096eca0cab974ab5f5f6ae346ceb425comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/985af7ddf096eca0cab974ab5f5f6ae346ceb425/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j  ergo14j  Jj  MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j  h5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14j  -https://api.github.com/users/ergo14/followersj  :https://api.github.com/users/ergo14/following{/other_user}j  3https://api.github.com/users/ergo14/gists{/gist_id}j  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j  1https://api.github.com/users/ergo14/subscriptionsj  (https://api.github.com/users/ergo14/orgsj  )https://api.github.com/users/ergo14/reposj  4https://api.github.com/users/ergo14/events{/privacy}j  3https://api.github.com/users/ergo14/received_eventsj  Userj  uparents]}(j  (84642431dd64f791650d986693a4b28f78c41908j  ^https://api.github.com/repos/palantir/atlasdb/commits/84642431dd64f791650d986693a4b28f78c41908j  Shttps://github.com/palantir/atlasdb/commit/84642431dd64f791650d986693a4b28f78c41908uastats}(totalK	additionsK	deletionsKufiles]}(j  (8d1f1ceb01567915c58f3ee20a7717d57f39e9b3filenamefatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraServerOriginTest.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/985af7ddf096eca0cab974ab5f5f6ae346ceb425/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/985af7ddf096eca0cab974ab5f5f6ae346ceb425/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.java?ref=985af7ddf096eca0cab974ab5f5f6ae346ceb425patchX  @@ -12,7 +12,7 @@
 public final class CassandraServerOriginTest {
 
     private static final CassandraServer SERVER_1 = createCassandraServer("serverOne");
-    private static final CassandraServer SERVER_2 = createCassandraServer("serverTwoo");
+    private static final CassandraServer SERVER_2 = createCassandraServer("serverTwo");
     private static final CassandraServer SERVER_3 = createCassandraServer("serverThree");
 
     @Testuau(e3bca9520510edd735fce6fe15c4ccf67f289962}(sha(e3bca9520510edd735fce6fe15c4ccf67f289962node_idEC_kwDOAjP5fdoAKGUzYmNhOTUyMDUxMGVkZDczNWZjZTZmZTE1YzRjY2Y2N2YyODk5NjIcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-07-21T03:31:33Zu	committer}(j  
svc-changelogj  svc-changelog@palantir.comj  2023-07-21T03:31:33ZumessageAdd generated changelog entriestree}(j  (be47bfcd7556223b20cc2eef94e2fef5430c2f37url`https://api.github.com/repos/palantir/atlasdb/git/trees/be47bfcd7556223b20cc2eef94e2fef5430c2f37uj+  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e3bca9520510edd735fce6fe15c4ccf67f289962
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmS5/BUJEHYaJX37fAFQAABbcAD/dTrMRjdBz+N//ZzaHQAZA/cp
5ee9ERdk2MeOt4eWMTYA/2kiqhigpHEoXN8ExSv0Q2NcVcO+OX0EyuCQs17WakIR
=3IWu
-----END PGP SIGNATURE-----payloadX  tree be47bfcd7556223b20cc2eef94e2fef5430c2f37
parent 2ce769ae9f042f1e0601295fef4b31fd3ec36937
author svc-changelog <svc-changelog@palantir.com> 1689910293 +0000
committer svc-changelog <svc-changelog@palantir.com> 1689910293 +0000

Add generated changelog entriesuuj+  ^https://api.github.com/repos/palantir/atlasdb/commits/e3bca9520510edd735fce6fe15c4ccf67f289962html_urlShttps://github.com/palantir/atlasdb/commit/e3bca9520510edd735fce6fe15c4ccf67f289962comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e3bca9520510edd735fce6fe15c4ccf67f289962/commentsj  }(login
svc-changelogidJ#j  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j+  *https://api.github.com/users/svc-changelogj9   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj!  }(j>  
svc-changelogj@  J#j  MDQ6VXNlcjg0MDc3NjAzjB  4https://avatars.githubusercontent.com/u/84077603?v=4jD  h5j+  *https://api.github.com/users/svc-changelogj9   https://github.com/svc-changelogjG  4https://api.github.com/users/svc-changelog/followersjI  Ahttps://api.github.com/users/svc-changelog/following{/other_user}jK  :https://api.github.com/users/svc-changelog/gists{/gist_id}jM  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jO  8https://api.github.com/users/svc-changelog/subscriptionsjQ  /https://api.github.com/users/svc-changelog/orgsjS  0https://api.github.com/users/svc-changelog/reposjU  ;https://api.github.com/users/svc-changelog/events{/privacy}jW  :https://api.github.com/users/svc-changelog/received_eventsjY  Userj[  uparents]}(j  (2ce769ae9f042f1e0601295fef4b31fd3ec36937j+  ^https://api.github.com/repos/palantir/atlasdb/commits/2ce769ae9f042f1e0601295fef4b31fd3ec36937j9  Shttps://github.com/palantir/atlasdb/commit/2ce769ae9f042f1e0601295fef4b31fd3ec36937uastats}(totalK		additionsK		deletionsK ufiles]}(j  (c496eeef07c431ee355d88f1ca7abecdff679476filename$changelog/@unreleased/pr-6677.v2.ymlstatusaddedju  K	jv  K changesK	blob_url|https://github.com/palantir/atlasdb/blob/e3bca9520510edd735fce6fe15c4ccf67f289962/changelog%2F%40unreleased%2Fpr-6677.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/e3bca9520510edd735fce6fe15c4ccf67f289962/changelog%2F%40unreleased%2Fpr-6677.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6677.v2.yml?ref=e3bca9520510edd735fce6fe15c4ccf67f289962patchX/  @@ -0,0 +1,9 @@
+type: improvement
+improvement:
+  description: "Reuse notLatestVisibleValueCellFilterCounter \n\nAvoid expensive metric
+    name computation for each value extraction by\nregistering the notLatestVisibleValueCellFilterCounter
+    once and reusing\nit throughout the lifetime.\n\nNote that this includes several
+    internal API changes; however, these\nshould not be an issue for any known AtlasDB
+    consumers.\n\nCellLoader.loadWithTs minimizes unobserved tracing overhead"
+  links:
+  - https://github.com/palantir/atlasdb/pull/6677uau(b4511779c6673304e2f9164bc4a53a41d28f374a}(sha(b4511779c6673304e2f9164bc4a53a41d28f374anode_idEC_kwDOAjP5fdoAKGI0NTExNzc5YzY2NzMzMDRlMmY5MTY0YmM0YTUzYTQxZDI4ZjM3NGEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-08-03T14:44:01Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-08-03T14:44:01Zumessage
specialisttree}(j  (24e01579e8bef989d6c3c91e360cbc2b2545c11aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/24e01579e8bef989d6c3c91e360cbc2b2545c11auj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b4511779c6673304e2f9164bc4a53a41d28f374a
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmTLvTEACgkQTLdFKain
zjw7jQf+MEfqJiVsxUBiJD3zmdfFWukjMu3Sj62P5oXosY6Z+Eu9IKKVuBpGbRWF
57DKgynYhv6sRIgiJu3n3OBYhVCZqZh95GuxXRNLPl7jNSwrsfbQC/dB4LhJU+ep
zjBfEka0dHN1ipBHMcKLJ9kBjVCd+5X1FZDCu+eV8OI6q1mC2tCugpMGaEtg2Apk
ShZ81zqog3gsnx/SDTnv43bqjAosJhb6A2K1TeLiAE2MWL2g79pJSqFWzsc03POH
4jGvggA0nZJ4XYTIOQ6x0ZjabiQbR8h5GDCSjbyaLEgiPu/9vT5w3+1oIBLKkRhr
X0tbETD3SSzOyysWvyVEZqBTd22IFw==
=Sl+k
-----END PGP SIGNATURE-----payloadtree 24e01579e8bef989d6c3c91e360cbc2b2545c11a
parent cf84babd5564ce0cb16deb135f1158eb01123aca
author Jeremy Kong <jkong@palantir.com> 1691073841 +0100
committer Jeremy Kong <jkong@palantir.com> 1691073841 +0100

specialist
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/b4511779c6673304e2f9164bc4a53a41d28f374ahtml_urlShttps://github.com/palantir/atlasdb/commit/b4511779c6673304e2f9164bc4a53a41d28f374acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b4511779c6673304e2f9164bc4a53a41d28f374a/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j  
jeremyk-91j  JZ j  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jĀ  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jƀ  5https://api.github.com/users/jeremyk-91/subscriptionsjȀ  ,https://api.github.com/users/jeremyk-91/orgsjʀ  -https://api.github.com/users/jeremyk-91/reposj̀  8https://api.github.com/users/jeremyk-91/events{/privacy}j΀  7https://api.github.com/users/jeremyk-91/received_eventsjЀ  UserjҀ  uparents]}(j  (cf84babd5564ce0cb16deb135f1158eb01123acaj  ^https://api.github.com/repos/palantir/atlasdb/commits/cf84babd5564ce0cb16deb135f1158eb01123acaj  Shttps://github.com/palantir/atlasdb/commit/cf84babd5564ce0cb16deb135f1158eb01123acauastats}(totalK	additionsK	deletionsKufiles]}(j  (bcd32c34a44921abc80cf6333c324e9a203a32a1filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b4511779c6673304e2f9164bc4a53a41d28f374a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b4511779c6673304e2f9164bc4a53a41d28f374a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=b4511779c6673304e2f9164bc4a53a41d28f374apatchX
  @@ -379,12 +379,14 @@ protected TransactionScopedCache getCache() {
 
     // Note: The purity declaration is intended as documentation, and possibly for static analysis (eventually, this
     // makes more sense as an annotation on the transaction task.
+    @Override
     public void declareTransactionAsPure(PurityDeclaration unused) {
         transactionPurity = TransactionPurity.pure();
         // TODO (jkong): How can we validate this? Can we do some kind of static analysis?
     }
 
     // Note: Transactions for which true is returned will not commit. False transactions can still fail.
+    @Override
     public boolean isTransactionKnownToBeDoomed() {
         Set<LockToken> expiredLocks = refreshCommitAndImmutableTsLocks(null); // During transaction
         return expiredLocks.isEmpty();
@@ -819,7 +821,7 @@ protected Map.Entry<byte[], RowColumnRangeIterator> computeNext() {
                     protected Map.Entry<Cell, Value> computeNext() {
                         if (!peekableRawResults.hasNext()
                                 || !Arrays.equals(
-                                        peekableRawResults.peek().getKey().getRowName(), nextRowName)) {
+                                peekableRawResults.peek().getKey().getRowName(), nextRowName)) {
                             return endOfData();
                         }
                         return peekableRawResults.next();
@@ -1244,7 +1246,7 @@ private List<Map.Entry<Cell, byte[]>> getPostFilteredWithLocalWrites(
                 postFiltered.entrySet(),
                 Predicates.compose(Predicates.in(prePostFilterCells.keySet()), MapEntries.getKeyFunction()));
         Collection<Map.Entry<Cell, byte[]>> localWritesInRange = getLocalWritesForRange(
-                        tableRef, rangeRequest.getStartInclusive(), endRowExclusive, rangeRequest.getColumnNames())
+                tableRef, rangeRequest.getStartInclusive(), endRowExclusive, rangeRequest.getColumnNames())
                 .entrySet();
         return mergeInLocalWrites(
                 tableRef, postFilteredCells.iterator(), localWritesInRange.iterator(), rangeRequest.isReverse());
@@ -1281,9 +1283,9 @@ private <K extends Exception> boolean getBatchingVisitableFromIterator(
             int preFilterBatchSize)
             throws K {
         try (ClosableIterator<RowResult<byte[]>> postFilterIterator =
-                postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
+                     postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
             Iterator<RowResult<byte[]>> localWritesInRange = Cells.createRowView(getLocalWritesForRange(
-                            tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
+                    tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
                     .entrySet());
             Iterator<RowResult<byte[]>> mergeIterators =
                     mergeInLocalWritesRows(postFilterIterator, localWritesInRange, range.isReverse(), tableRef);
@@ -2148,7 +2150,7 @@ private void timedAndTraced(String timerName, Runnable runnable) {
 
     private <T> T timedAndTraced(String timerName, Supplier<T> supplier) {
         try (Timer.Context timer = getTimer(timerName).time();
-                CloseableTracer tracer = CloseableTracer.startSpan(timerName)) {
+             CloseableTracer tracer = CloseableTracer.startSpan(timerName)) {
             return supplier.get();
         }
     }uau(f22b05bd52aac9378e3ac1f7ae49e0feb7d4dcac}(sha(f22b05bd52aac9378e3ac1f7ae49e0feb7d4dcacnode_idEC_kwDOAjP5fdoAKGYyMmIwNWJkNTJhYWM5Mzc4ZTNhYzFmN2FlNDllMGZlYjdkNGRjYWMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-15T16:11:08Zu	committer}(j	  Jeremy Kongj  jkong@palantir.comj
  2023-06-15T16:11:08ZumessageLWVSCItree}(j  (c6b2ec3524cb9c2c546462688ace021b7d1173a1url`https://api.github.com/repos/palantir/atlasdb/git/trees/c6b2ec3524cb9c2c546462688ace021b7d1173a1uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f22b05bd52aac9378e3ac1f7ae49e0feb7d4dcac
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSLOBwACgkQTLdFKain
zjykWAf/XQSZoiWVn0Ult268AspUZ0X7PVEly4OXQeYEtKrhZLz+0nuI8jSU4vUD
qAVLJ5o4PPEl/pWrKzNlmRh1lvdF8tSREran4dnrmny+kKrBTSl+zW22sNOKZP29
L3Z0IQHHqICDNQAf2Oryyuh9I/FWSgqhBObzltHZNk1wUdW/40tUnWUJKi1/f4Py
CUTCJ4CQN3lUW3D+83fjB454imXoiX3lGDFAfoeKfqqJ8HR0eTmw/M+nC9P0tLKG
KtexR557jCvAJLZh4Z55GOJCgT2I32xRUSbgwLg5YXPlmddoXfK0YEzbDGO8UQ7t
5StV4QqrIZzltqu1dOKIn28D5zqeiQ==
=zurF
-----END PGP SIGNATURE-----payloadtree c6b2ec3524cb9c2c546462688ace021b7d1173a1
parent 64b317a6eb698f0a80750ffc665082831c2d2c8f
author Jeremy Kong <jkong@palantir.com> 1686845468 +0800
committer Jeremy Kong <jkong@palantir.com> 1686845468 +0800

LWVSCI
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/f22b05bd52aac9378e3ac1f7ae49e0feb7d4dcachtml_urlShttps://github.com/palantir/atlasdb/commit/f22b05bd52aac9378e3ac1f7ae49e0feb7d4dcaccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f22b05bd52aac9378e3ac1f7ae49e0feb7d4dcac/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j'  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j,  
jeremyk-91j.  JZ j  MDQ6VXNlcjU5NTU1MTA=j0  3https://avatars.githubusercontent.com/u/5955510?v=4j2  h5j  'https://api.github.com/users/jeremyk-91j'  https://github.com/jeremyk-91j5  1https://api.github.com/users/jeremyk-91/followersj7  >https://api.github.com/users/jeremyk-91/following{/other_user}j9  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j;  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j=  5https://api.github.com/users/jeremyk-91/subscriptionsj?  ,https://api.github.com/users/jeremyk-91/orgsjA  -https://api.github.com/users/jeremyk-91/reposjC  8https://api.github.com/users/jeremyk-91/events{/privacy}jE  7https://api.github.com/users/jeremyk-91/received_eventsjG  UserjI  uparents]}(j  (64b317a6eb698f0a80750ffc665082831c2d2c8fj  ^https://api.github.com/repos/palantir/atlasdb/commits/64b317a6eb698f0a80750ffc665082831c2d2c8fj'  Shttps://github.com/palantir/atlasdb/commit/64b317a6eb698f0a80750ffc665082831c2d2c8fuastats}(totalK	additionsK
	deletionsK	ufiles]}(j  (3248a77af9214841c71ed7255702ffa379e380d2filenamematlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/cache/LockWatchValueScopingCacheImpl.javastatusmodifiedjc  K
jd  K	changesKblob_urlhttps://github.com/palantir/atlasdb/blob/f22b05bd52aac9378e3ac1f7ae49e0feb7d4dcac/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FLockWatchValueScopingCacheImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f22b05bd52aac9378e3ac1f7ae49e0feb7d4dcac/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FLockWatchValueScopingCacheImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FLockWatchValueScopingCacheImpl.java?ref=f22b05bd52aac9378e3ac1f7ae49e0feb7d4dcacpatchX
  @@ -198,15 +198,15 @@ private synchronized void processCommitUpdate(long startTimestamp) {
     /**
      * In order to maintain the necessary invariants, we need to do the following:
      * <p>
-     *  1. For each new event, we apply it to the cache. The effects of this application is described in
-     *     {@link LockWatchValueScopingCache}.
-     *  2. For each transaction, we must ensure that we store a snapshot of the cache at the sequence corresponding
-     *     to the transaction's start timestamp. Note that not every sequence will have a corresponding timestamp, so we
-     *     don't bother storing a snapshot for those sequences. Also note that we know that each call here will only
-     *     ever have new events, and that consecutive calls to this method will *always* have increasing sequences
-     *     (without this last guarantee, we'd need to store snapshots for all sequences).
-     *  3. For each transaction, we must create a transaction scoped cache. We do this now as we have tighter guarantees
-     *     around when the cache is created, and thus deleted.
+     * 1. For each new event, we apply it to the cache. The effects of this application is described in
+     * {@link LockWatchValueScopingCache}.
+     * 2. For each transaction, we must ensure that we store a snapshot of the cache at the sequence corresponding
+     * to the transaction's start timestamp. Note that not every sequence will have a corresponding timestamp, so we
+     * don't bother storing a snapshot for those sequences. Also note that we know that each call here will only
+     * ever have new events, and that consecutive calls to this method will *always* have increasing sequences
+     * (without this last guarantee, we'd need to store snapshots for all sequences).
+     * 3. For each transaction, we must create a transaction scoped cache. We do this now as we have tighter guarantees
+     * around when the cache is created, and thus deleted.
      */
     private synchronized void updateStores(TransactionsLockWatchUpdate updateForTransactions) {
         Multimap<Sequence, StartTimestamp> reversedMap = createSequenceTimestampMultimap(updateForTransactions);
@@ -244,6 +244,7 @@ private synchronized boolean isNewEvent(LockWatchEvent event) {
                 .orElse(true);
     }
 
+    @SuppressWarnings("GuardedBy") // The stream operation is terminal within this synchronized method.
     private synchronized void assertNoSnapshotsMissing(Multimap<Sequence, StartTimestamp> reversedMap) {
         Set<Sequence> sequences = reversedMap.keySet();
         if (sequences.stream().map(snapshotStore::getSnapshotForSequence).anyMatch(Optional::isEmpty)) {uau(a42100a11fe15c1a606d08a3810b2c28f0677069}(sha(a42100a11fe15c1a606d08a3810b2c28f0677069node_idEC_kwDOAjP5fdoAKGE0MjEwMGExMWZlMTVjMWE2MDZkMDhhMzgxMGIyYzI4ZjA2NzcwNjkcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-08-01T13:41:54Zu	committer}(j  Lucas Meirelesj  meireles31@msn.comj  2023-08-01T13:41:54Zumessageassert args in exceptiontree}(jx  (b83afee1fef236deed2ee6a715fcdac05c4c46a5url`https://api.github.com/repos/palantir/atlasdb/git/trees/b83afee1fef236deed2ee6a715fcdac05c4c46a5uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a42100a11fe15c1a606d08a3810b2c28f0677069
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmTJC6IACgkQJd22kJ7J
GizJhQf/cGk3SZjFR9b0u3zuvWDwrnm8rWuCcrmHp00j4t84Nol56ZexebKLzaY6
YXB5Xj0XPR1td3vQd9KCCBpiSNfUPTgaWib/WOkgHi1H9v09yvBMLSN3uuvfevOP
bvJwEo7oA3S7VTXq7VIsAFm59rvevcdfdtThfJhe+Gyp5KBrLIqaWk82uyXm5uLb
EqlI4Q0+PtRtKalOdR7FN9gigZDk/07ODKlBwdvtp9O9lSNcM+ldVheLjRXNzlVR
7EkqYDGOeqmE/1vDRbRYtq3NJeCwLuc4cBq/a8WIyb3mchCa7aPqpIlIGAgF0mWf
ENCCEaaPRK2hnXrRPZO71WEfq8Lx0Q==
=y7NA
-----END PGP SIGNATURE-----payloadtree b83afee1fef236deed2ee6a715fcdac05c4c46a5
parent 2ab80f953b402de71813333655631d3f75bfb411
author Lucas Meireles <meireles31@msn.com> 1690897314 +0100
committer Lucas Meireles <meireles31@msn.com> 1690897314 +0100

assert args in exception
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/a42100a11fe15c1a606d08a3810b2c28f0677069html_urlShttps://github.com/palantir/atlasdb/commit/a42100a11fe15c1a606d08a3810b2c28f0677069comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a42100a11fe15c1a606d08a3810b2c28f0677069/commentsj~  }(loginLucasIMEidJg jz  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj  }(j  LucasIMEj  Jg jz  MDQ6VXNlcjY3ODczMTE=j  3https://avatars.githubusercontent.com/u/6787311?v=4j  h5j  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIMEj  /https://api.github.com/users/LucasIME/followersj  <https://api.github.com/users/LucasIME/following{/other_user}j  5https://api.github.com/users/LucasIME/gists{/gist_id}j  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j  3https://api.github.com/users/LucasIME/subscriptionsj  *https://api.github.com/users/LucasIME/orgsj  +https://api.github.com/users/LucasIME/reposj  6https://api.github.com/users/LucasIME/events{/privacy}j  5https://api.github.com/users/LucasIME/received_eventsj  Userj  uparents]}(jx  (2ab80f953b402de71813333655631d3f75bfb411j  ^https://api.github.com/repos/palantir/atlasdb/commits/2ab80f953b402de71813333655631d3f75bfb411j  Shttps://github.com/palantir/atlasdb/commit/2ab80f953b402de71813333655631d3f75bfb411uastats}(totalK	additionsK	deletionsK	ufiles]}(jx  (7e06dc94cc7ad9a9b73c055d2d488f4de6f4659efilenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedjځ  Kjہ  K	changesKblob_urlhttps://github.com/palantir/atlasdb/blob/a42100a11fe15c1a606d08a3810b2c28f0677069/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a42100a11fe15c1a606d08a3810b2c28f0677069/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=a42100a11fe15c1a606d08a3810b2c28f0677069patchX  @@ -1870,13 +1870,12 @@ public void throwsIfAllValuesCachedButMoreThanExpectedPresent() {
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
 
-        TransactionScopedCache txnCache = createCacheWithEntries(
-                TABLE_SWEPT_THOROUGH,
-                Map.of(
-                        TEST_CELL,
-                        "someValue".getBytes(StandardCharsets.UTF_8),
-                        TEST_CELL_2,
-                        "someOtherValue".getBytes(StandardCharsets.UTF_8)));
+        Map<Cell, byte[]> cachedValues = Map.of(
+                TEST_CELL,
+                "someValue".getBytes(StandardCharsets.UTF_8),
+                TEST_CELL_2,
+                "someOtherValue".getBytes(StandardCharsets.UTF_8));
+        TransactionScopedCache txnCache = createCacheWithEntries(TABLE_SWEPT_THOROUGH, cachedValues);
 
         LockWatchManagerInternal mockLockWatchManager = mock(LockWatchManagerInternal.class);
         when(mockLockWatchManager.getTransactionScopedCache(anyLong())).thenReturn(txnCache);
@@ -1886,9 +1885,13 @@ public void throwsIfAllValuesCachedButMoreThanExpectedPresent() {
                 spy(getSnapshotTransactionWith(transactionTs, res, mockLockWatchManager, pathTypeTracker));
         Transaction transaction = transactionWrapper.apply(spiedSnapshotTransaction, pathTypeTracker);
 
-        assertThatThrownBy(() -> transaction.getWithExpectedNumberOfCells(
+        assertThatLoggableExceptionThrownBy(() -> transaction.getWithExpectedNumberOfCells(
                         TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 1))
-                .isInstanceOf(MoreCellsPresentThanExpectedException.class);
+                .isInstanceOf(MoreCellsPresentThanExpectedException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("expectedNumberOfCells", 1L),
+                        SafeArg.of("numberOfCellsRetrieved", 2),
+                        UnsafeArg.of("retrievedCells", cachedValues));
 
         verify(spiedTimeLockService, never()).refreshLockLeases(any());
         verify(spiedSnapshotTransaction, never())uau(10910999da15654c469f26269b058022aa927881}(sha(10910999da15654c469f26269b058022aa927881node_idEC_kwDOAjP5fdoAKDEwOTEwOTk5ZGExNTY1NGM0NjlmMjYyNjliMDU4MDIyYWE5Mjc4ODEcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-06-15T16:11:28Zu	committer}(j  GitHubj  noreply@github.comj  2023-06-15T16:11:28ZumessageExcavator:  Update conjure plugins and dependencies (#6386)

Co-authored-by: Ahmed Alouane <aalouane@palantir.com>
Co-authored-by: Jeremy Kong <jkong@palantir.com>tree}(j  (df1613bb95cf308601f9ccdff2a500c985291b47url`https://api.github.com/repos/palantir/atlasdb/git/trees/df1613bb95cf308601f9ccdff2a500c985291b47uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/10910999da15654c469f26269b058022aa927881
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkizgwCRBK7hj4Ov3rIwAAYy8IAGy44yZQ3MRAjetD00MZ9blz
S1wCcDYFJbztRWdO73l08B8oaMeorrbDJy0Jcd/7agulXOR9+D91VHg0eMbL1oOZ
/IkorJG1arJjNuaeKdyf1Appv6Cjt1mkKvLNHBZjKDVd4XmQ1kqKkSFlNDtfmjdW
25jN269nfvZKERruqzmtnBVWQtE2geyiJe1JdRnUAa8ixXFQd3fAp9a2lsRGPKNk
BdzcCvi2bUaHEomJ46sN0Gi1zturFwFqPUDxbQcF5sYtqAJkYLHhCrPPtfhzVvm9
MeHceJHvlxVyvVifWClHOuYJQh2z2Gyr1d6tdEcvqc+0rJ+dM/u8HOU8nkEiFIg=
=2Hww
-----END PGP SIGNATURE-----
payloadX  tree df1613bb95cf308601f9ccdff2a500c985291b47
parent f73d7daa353c1ebec707abfc1f6bf19a5a03066b
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1686845488 +0100
committer GitHub <noreply@github.com> 1686845488 +0800

Excavator:  Update conjure plugins and dependencies (#6386)

Co-authored-by: Ahmed Alouane <aalouane@palantir.com>
Co-authored-by: Jeremy Kong <jkong@palantir.com>uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/10910999da15654c469f26269b058022aa927881html_urlShttps://github.com/palantir/atlasdb/commit/10910999da15654c469f26269b058022aa927881comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/10910999da15654c469f26269b058022aa927881/commentsj  }(loginsvc-excavator-botidJj  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j  .https://api.github.com/users/svc-excavator-botj  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j   h5j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj#  /https://api.github.com/users/web-flow/followersj%  <https://api.github.com/users/web-flow/following{/other_user}j'  5https://api.github.com/users/web-flow/gists{/gist_id}j)  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j+  3https://api.github.com/users/web-flow/subscriptionsj-  *https://api.github.com/users/web-flow/orgsj/  +https://api.github.com/users/web-flow/reposj1  6https://api.github.com/users/web-flow/events{/privacy}j3  5https://api.github.com/users/web-flow/received_eventsj5  Userj7  uparents]}(j  (f73d7daa353c1ebec707abfc1f6bf19a5a03066bj  ^https://api.github.com/repos/palantir/atlasdb/commits/f73d7daa353c1ebec707abfc1f6bf19a5a03066bj  Shttps://github.com/palantir/atlasdb/commit/f73d7daa353c1ebec707abfc1f6bf19a5a03066buastats}(totalKN	additionsK'	deletionsK'ufiles](}(j  (7e6db456799d82898cfe8fc79ce89cc6685ae290filename
versions.lockstatusmodifiedjQ  K$jR  K$changesKHblob_url_https://github.com/palantir/atlasdb/blob/10910999da15654c469f26269b058022aa927881/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/10910999da15654c469f26269b058022aa927881/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=10910999da15654c469f26269b058022aa927881patchXA)  @@ -10,22 +10,22 @@ com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
 com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c38132bb)
 com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bbb5dd72)
-com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 03bafb2e)
-com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e133df00)
-com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7e1c9da4)
+com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 06bad036)
+com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e233e000)
+com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7f1c9ea4)
 com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2 (4 constraints: 2244332b)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 333f21b0)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6b30665e)
-com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 312bccaf)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6b30665e)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 343f76b0)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6c30915e)
+com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 322bf7af)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6c30915e)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 40197abb)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 41197bbb)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.2 (2 constraints: 251d9309)
-com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9a1c98a6)
+com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9b1c99a6)
 com.fasterxml.jackson.module:jackson-module-blackbird:2.14.2 (1 constraints: b40e625e)
 com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.2 (2 constraints: db2e8469)
 com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 24cec010)
+com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 2dce2620)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -45,7 +45,7 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (23 constraints: a3788bf6)
+com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f2947442)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
@@ -67,28 +67,28 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:6.77.0 (5 constraints: ad546073)
-com.palantir.conjure.java:conjure-undertow-annotations:6.77.0 (1 constraints: 4605743b)
-com.palantir.conjure.java:conjure-undertow-lib:6.77.0 (2 constraints: 8d1cfdb0)
+com.palantir.conjure.java:conjure-lib:7.5.0 (5 constraints: cd530c72)
+com.palantir.conjure.java:conjure-undertow-annotations:7.5.0 (1 constraints: 0e051d36)
+com.palantir.conjure.java:conjure-undertow-lib:7.5.0 (2 constraints: 1d1c4081)
 com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 3d696e70)
 com.palantir.conjure.java.api:service-config:2.34.0 (5 constraints: 724d79ca)
 com.palantir.conjure.java.api:ssl-config:2.34.0 (3 constraints: e22a0da5)
-com.palantir.conjure.java.runtime:client-config:7.40.0 (6 constraints: a46bdb28)
-com.palantir.conjure.java.runtime:conjure-java-annotations:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.40.0 (2 constraints: c521007b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.40.0 (6 constraints: 306e1085)
-com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.40.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.40.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:keystores:7.40.0 (3 constraints: 162a3e5f)
-com.palantir.conjure.java.runtime:refresh-utils:7.40.0 (2 constraints: 051e6045)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.77.0 (2 constraints: 7f29c101)
-com.palantir.dialogue:dialogue-blocking-channels:3.77.0 (2 constraints: e12335b4)
-com.palantir.dialogue:dialogue-clients:3.77.0 (1 constraints: 4305623b)
-com.palantir.dialogue:dialogue-core:3.77.0 (3 constraints: 833de5e1)
-com.palantir.dialogue:dialogue-futures:3.77.0 (3 constraints: da3348c0)
-com.palantir.dialogue:dialogue-serde:3.77.0 (3 constraints: c12e6ba4)
-com.palantir.dialogue:dialogue-target:3.77.0 (7 constraints: 9e760764)
+com.palantir.conjure.java.runtime:client-config:7.45.0 (6 constraints: bd6b2133)
+com.palantir.conjure.java.runtime:conjure-java-annotations:7.45.0 (1 constraints: c6188d9e)
+com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.45.0 (2 constraints: ca210f7b)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.45.0 (6 constraints: 3f6ee88e)
+com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.45.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.45.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.45.0 (1 constraints: c6188d9e)
+com.palantir.conjure.java.runtime:keystores:7.45.0 (3 constraints: 202a4c60)
+com.palantir.conjure.java.runtime:refresh-utils:7.45.0 (2 constraints: 0a1e6f45)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.78.0 (2 constraints: 83295d02)
+com.palantir.dialogue:dialogue-blocking-channels:3.78.0 (2 constraints: e32369b4)
+com.palantir.dialogue:dialogue-clients:3.78.0 (1 constraints: 4405653b)
+com.palantir.dialogue:dialogue-core:3.78.0 (3 constraints: 883d62e3)
+com.palantir.dialogue:dialogue-futures:3.78.0 (3 constraints: dd33dac0)
+com.palantir.dialogue:dialogue-serde:3.78.0 (3 constraints: c62e7fa5)
+com.palantir.dialogue:dialogue-target:3.78.0 (7 constraints: a7763c6a)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -98,7 +98,7 @@ com.palantir.goethe:goethe:0.9.0 (1 constraints: 0b050636)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
 com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
-com.palantir.safe-logging:logger:3.2.0 (23 constraints: 4e88492a)
+com.palantir.safe-logging:logger:3.2.0 (24 constraints: 98a4d6fa)
 com.palantir.safe-logging:logger-slf4j:3.2.0 (1 constraints: 000e5942)
 com.palantir.safe-logging:logger-spi:3.2.0 (2 constraints: 0f1e997a)
 com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: f7178aeb)
@@ -108,14 +108,14 @@ com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
 com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 485c7290)
 com.palantir.tracing:tracing:6.17.0 (8 constraints: f97d045e)
 com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 1745b4f5)
-com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 441994bb)
+com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 46199abb)
 com.palantir.tritium:tritium-api:0.64.0 (6 constraints: 5052c7ce)
 com.palantir.tritium:tritium-caffeine:0.64.0 (1 constraints: 3c05433b)
 com.palantir.tritium:tritium-core:0.64.0 (5 constraints: 5d43281d)
 com.palantir.tritium:tritium-lib:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f16b49d8)
+com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f96b65dd)
 com.palantir.tritium:tritium-proxy:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-registry:0.64.0 (12 constraints: f6d27f35)
+com.palantir.tritium:tritium-registry:0.64.0 (13 constraints: 88ef0d92)
 com.palantir.tritium:tritium-slf4j:0.64.0 (2 constraints: bd138370)
 com.palantir.tritium:tritium-time:0.64.0 (1 constraints: 820e8359)
 com.palantir.tritium:tritium-tracing:0.64.0 (1 constraints: 820e8359)
@@ -186,7 +186,7 @@ io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf
 io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
-io.undertow:undertow-core:2.2.25.Final (2 constraints: 371d1507)
+io.undertow:undertow-core:2.2.25.Final (2 constraints: 331dfa06)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
@@ -195,7 +195,7 @@ jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 26793e31)
 jakarta.inject:jakarta.inject-api:1.0.5 (13 constraints: decbc9f9)
 jakarta.servlet:jakarta.servlet-api:4.0.4 (10 constraints: 7b9def70)
 jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
-jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (18 constraints: 5a38d98d)
+jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (17 constraints: 6f283f6d)
 jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.5 (6 constraints: 845987f4)u}(j  (2264b52adc181a5229efb8c18e921b0c209e904ajW  versions.propsjY  modifiedjQ  KjR  Kj[  Kj\  `https://github.com/palantir/atlasdb/blob/10910999da15654c469f26269b058022aa927881/versions.propsj^  _https://github.com/palantir/atlasdb/raw/10910999da15654c469f26269b058022aa927881/versions.propsj`  rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=10910999da15654c469f26269b058022aa927881jb  X  @@ -25,9 +25,9 @@ com.palantir.common:streams = 2.1.0
 com.palantir.config.crypto:* = 5.1.0
 com.palantir.conjure.java.api:* = 2.29.0
 com.palantir.conjure.java.runtime:* = 7.39.0
-com.palantir.conjure.java:* = 6.77.0
-com.palantir.conjure:conjure = 4.35.0
-com.palantir.dialogue:* = 3.77.0
+com.palantir.conjure.java:* = 7.5.0
+com.palantir.conjure:conjure = 4.36.0
+com.palantir.dialogue:* = 3.78.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
 com.palantir.goethe:* = 0.9.0ueu(2446a58501c2a285b28b4ae91f532f34a955e934}(sha(2446a58501c2a285b28b4ae91f532f34a955e934node_idEC_kwDOAjP5fdoAKDI0NDZhNTg1MDFjMmEyODViMjhiNGFlOTFmNTMyZjM0YTk1NWU5MzQcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-21T02:07:50Zu	committer}(jv  
Ahmed Alouanejx  aalouane@palantir.comjz  2023-04-21T02:07:50Zumessageheeyootree}(jn  (f9ff35eddfbdf2787212e37a4690f701c6e91581url`https://api.github.com/repos/palantir/atlasdb/git/trees/f9ff35eddfbdf2787212e37a4690f701c6e91581uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2446a58501c2a285b28b4ae91f532f34a955e934
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRB7/YACgkQPlMHVIT1
yhrLAwf7By0g1mj8NB90AdRJnZY5cSWaKc8W1XQoM1pREcUGB9MvAQb4zw5zhu8t
fdvc79LRtFERubYWBAZp/nx1fmguyY69CKAxQsoxBQGN9MKZF919W9N/75QQuXiC
xMMhx8ulcGmBIF1Rbvieqa4GIfo8Wb+9YCEH+sVpqPM36I83kUql5ny9n5d3mJqP
pJkUDJMwS1WS8LXn3maHvJCd6A99vR1pXl4B4bwcQb2Vyo9uTwMSFh1ZFWvo2ax8
8cJaOfNkxOuOff85obtvdapYEw0vNvEHhqRd6uN/Gs3Y+kiMoB0h2rTfVSQ3oZSN
QeHUVN1KIzSu6Ps6/V2UuZjxCvKBtQ==
=RQJv
-----END PGP SIGNATURE-----payloadtree f9ff35eddfbdf2787212e37a4690f701c6e91581
parent 3acebd8df13965d4829f7cf2e3208d4ebae27f0e
author Ahmed Alouane <aalouane@palantir.com> 1682042870 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682042870 +0100

heeyoo
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/2446a58501c2a285b28b4ae91f532f34a955e934html_urlShttps://github.com/palantir/atlasdb/commit/2446a58501c2a285b28b4ae91f532f34a955e934comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2446a58501c2a285b28b4ae91f532f34a955e934/commentsjt  }(loginergo14idJjp  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj|  }(j  ergo14j  Jjp  MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j  h5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14j  -https://api.github.com/users/ergo14/followersj  :https://api.github.com/users/ergo14/following{/other_user}j  3https://api.github.com/users/ergo14/gists{/gist_id}j  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j  1https://api.github.com/users/ergo14/subscriptionsj  (https://api.github.com/users/ergo14/orgsj  )https://api.github.com/users/ergo14/reposj  4https://api.github.com/users/ergo14/events{/privacy}j  3https://api.github.com/users/ergo14/received_eventsj  Userj  uparents]}(jn  (3acebd8df13965d4829f7cf2e3208d4ebae27f0ej  ^https://api.github.com/repos/palantir/atlasdb/commits/3acebd8df13965d4829f7cf2e3208d4ebae27f0ej  Shttps://github.com/palantir/atlasdb/commit/3acebd8df13965d4829f7cf2e3208d4ebae27f0euastats}(totalK	additionsK	deletionsK ufiles]}(jn  (cc47c7dee1ba85d57f187ae18b768259dc1aa8eafilenameatlasdb-ete-tests/build.gradlestatusmodifiedjЂ  Kjт  K changesKblob_urlrhttps://github.com/palantir/atlasdb/blob/2446a58501c2a285b28b4ae91f532f34a955e934/atlasdb-ete-tests%2Fbuild.gradleraw_urlqhttps://github.com/palantir/atlasdb/raw/2446a58501c2a285b28b4ae91f532f34a955e934/atlasdb-ete-tests%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fbuild.gradle?ref=2446a58501c2a285b28b4ae91f532f34a955e934patchX  @@ -113,6 +113,7 @@ task timeLockTest(type: Test) {
 }
 
 task timeLockMigrationTest(type: Test) {
+    failFast = true
     dependsOn prepareForEteTests, ':timelock-server-distribution:dockerTag'
     include '**/*TimeLockMigration*.class'
 }
@@ -128,6 +129,7 @@ task oracleTest(type: Test) {
 }
 
 test {
+    failFast = true
     dependsOn longTest, prepareForEteTests, timeLockTest, dbkvsTest
     exclude '**/MultiCassandraTestSuite.class'
 uau(44154f521627bc2064fca179e35967fdab8c1fb5}(sha(44154f521627bc2064fca179e35967fdab8c1fb5node_idEC_kwDOAjP5fdoAKDQ0MTU0ZjUyMTYyN2JjMjA2NGZjYTE3OWUzNTk2N2ZkYWI4YzFmYjUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-25T20:41:43Zu	committer}(j  
Ahmed Alouanej  aalouane@palantir.comj  2023-04-25T20:41:43Zumessage4unit test parallelism: 7; docker test parallelism: 7tree}(j  (62ac0f124ecd26ad46dfb169ca5b672440345160url`https://api.github.com/repos/palantir/atlasdb/git/trees/62ac0f124ecd26ad46dfb169ca5b672440345160uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/44154f521627bc2064fca179e35967fdab8c1fb5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRIOwgACgkQPlMHVIT1
yho+Lwf/fupK9VeW37Sp1fC5azdLyyhSzvtPu0wEVqmGZ/D2hz0fqGZs+EwOj1IT
Zl9vFd14SLIxCVKNpNr3bOWAM382oiR31kiB02Y5vFMXMdbiOxgXiaG2D3/fZXuZ
yNkO1LFJVYEqum4SM1bClrYoHiIg5hOm4M9z8qlYoLSXP8F5rRX6i4uiXdT6hQwy
SAZ8JPD55mj998rdSDmRf520t6jYuKoZiGfmNFFjVjPoqjfy32RhsMmIeqgKKyIO
pZ4ePOXCJ4FRG8gd1YMZDDN6dwv4bDvv0p2AjyCrkzO17IqAdkswucNfg9FF4FpK
BwAUOG7khh4/cz43rihPHq7Div3cyA==
=3KPM
-----END PGP SIGNATURE-----payloadX  tree 62ac0f124ecd26ad46dfb169ca5b672440345160
parent 3bdc589a81b2625cb6bfbff19f0f6cd644e472d2
author Ahmed Alouane <aalouane@palantir.com> 1682455303 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682455303 +0100

unit test parallelism: 7; docker test parallelism: 7
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/44154f521627bc2064fca179e35967fdab8c1fb5html_urlShttps://github.com/palantir/atlasdb/commit/44154f521627bc2064fca179e35967fdab8c1fb5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/44154f521627bc2064fca179e35967fdab8c1fb5/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j  ergo14j  Jj  MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j  h5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14j  -https://api.github.com/users/ergo14/followersj  :https://api.github.com/users/ergo14/following{/other_user}j  3https://api.github.com/users/ergo14/gists{/gist_id}j  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j!  1https://api.github.com/users/ergo14/subscriptionsj#  (https://api.github.com/users/ergo14/orgsj%  )https://api.github.com/users/ergo14/reposj'  4https://api.github.com/users/ergo14/events{/privacy}j)  3https://api.github.com/users/ergo14/received_eventsj+  Userj-  uparents]}(j  (3bdc589a81b2625cb6bfbff19f0f6cd644e472d2j  ^https://api.github.com/repos/palantir/atlasdb/commits/3bdc589a81b2625cb6bfbff19f0f6cd644e472d2j  Shttps://github.com/palantir/atlasdb/commit/3bdc589a81b2625cb6bfbff19f0f6cd644e472d2uastats}(totalK	additionsK	deletionsKufiles]}(j  (e72caa79a7f9ad98c2a5271bd41685602ae22009filename.circleci/config.ymlstatusmodifiedjG  KjH  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/44154f521627bc2064fca179e35967fdab8c1fb5/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/44154f521627bc2064fca179e35967fdab8c1fb5/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=44154f521627bc2064fca179e35967fdab8c1fb5patchX  @@ -42,7 +42,8 @@ jobs:
       _JAVA_OPTIONS: "-XX:ActiveProcessorCount=8 -Xmx8g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
       CIRCLE_TEST_REPORTS: /home/circleci/junit
       CIRCLE_ARTIFACTS: /home/circleci/artifacts
-      UNIT_TEST_PARALLELISM: 5
+      UNIT_TEST_PARALLELISM: 7
+      DOCKER_TEST_PARALLELISM: 7
 
     steps:
       - attach_workspace: { at: . }uau(806abe0a8b35316659916f698c47714449463b88}(sha(806abe0a8b35316659916f698c47714449463b88node_idEC_kwDOAjP5fdoAKDgwNmFiZTBhOGIzNTMxNjY1OTkxNmY2OThjNDc3MTQ0NDk0NjNiODgcommit}(author}(nameLucas Sousa Meirelesemailmeireles31@msn.comdate2023-08-07T14:16:00Zu	committer}(jd  svc-autoreleasejf  -pd-foundry-infrastructure-notify@palantir.comjh  2023-08-07T14:16:00Zumessage"Autorelease 0.908.0-rc1

[skip ci]tree}(j\  (45863b41e2124380da3883ff67852b19a97cf755url`https://api.github.com/repos/palantir/atlasdb/git/trees/45863b41e2124380da3883ff67852b19a97cf755ujt  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/806abe0a8b35316659916f698c47714449463b88
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmTQ/KEACgkQhbrR8ip7mDDV9AD+KfztTMW/YjKIkTKITAIn1dtq
JNuRS6+orDYA3fQzYH8A/0XPcHwD+E7WMkpjsDwSPgvXwOfZxo61Ch1k3NDmT+VF
=83qh
-----END PGP SIGNATURE-----
payloadX  tree 45863b41e2124380da3883ff67852b19a97cf755
parent 3227916d28f222e7520c184989ef679b7335af31
author Lucas Sousa Meireles <meireles31@msn.com> 1691417760 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1691417760 +0000

Autorelease 0.908.0-rc1

[skip ci]uujt  ^https://api.github.com/repos/palantir/atlasdb/commits/806abe0a8b35316659916f698c47714449463b88html_urlShttps://github.com/palantir/atlasdb/commit/806abe0a8b35316659916f698c47714449463b88comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/806abe0a8b35316659916f698c47714449463b88/commentsjb  }(loginLucasIMEidJg j^  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jt  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers       
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujj  }(j  svc-autoreleasej  J(j^  MDQ6VXNlcjUxNzE4MzQ2j  4https://avatars.githubusercontent.com/u/51718346?v=4j  h5jt  ,https://api.github.com/users/svc-autoreleasej  "https://github.com/svc-autoreleasej  6https://api.github.com/users/svc-autorelease/followersj  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j  :https://api.github.com/users/svc-autorelease/subscriptionsj  1https://api.github.com/users/svc-autorelease/orgsj  2https://api.github.com/users/svc-autorelease/reposj  =https://api.github.com/users/svc-autorelease/events{/privacy}j  <https://api.github.com/users/svc-autorelease/received_eventsj  Userj  uparents]}(j\  (3227916d28f222e7520c184989ef679b7335af31jt  ^https://api.github.com/repos/palantir/atlasdb/commits/3227916d28f222e7520c184989ef679b7335af31j  Shttps://github.com/palantir/atlasdb/commit/3227916d28f222e7520c184989ef679b7335af31uastats}(totalK 	additionsK 	deletionsK ufiles]u(f4ba2346a0736e4f029339f4d676ad31d164b2a3}(sha(f4ba2346a0736e4f029339f4d676ad31d164b2a3node_idEC_kwDOAjP5fdoAKGY0YmEyMzQ2YTA3MzZlNGYwMjkzMzlmNGQ2NzZhZDMxZDE2NGIyYTMcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-03-24T13:07:46Zu	committer}(j̃  GitHubj΃  noreply@github.comjЃ  2023-03-24T13:07:46Zumessage=Add container names and use scratch image for config  (#6483)tree}(jă  (b09233b738dca3ac08f6fc3432d61e5509850b5eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/b09233b738dca3ac08f6fc3432d61e5509850b5euj܃  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f4ba2346a0736e4f029339f4d676ad31d164b2a3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkHaCiCRBK7hj4Ov3rIwAA55cIABGxi6iPoIuRq7AKcv5Gn2V0
5m2iJwuP8whv9H+eU+UIBwrayElJTeDsRPM5xZHLbi4shRVZvPvuqxO381y+l+rY
WIHDRXUTO6QXdkL0xU4Na1ljmUkhptlIpM+Vz+ZBGxaSLZagt6b6hX/WEK7KcP4j
gAZjDlQGbAOj5aB/DVzzeNr1WuGpw2SL3DRhagGWOnUtBlBA1VjBbydDAbBKDRgz
J1v8NiIcDqLG/ynFwtssUyjPme6BIIg0b+xaa6JnmG67y/LwCYfK0G8OCDdL2ZdU
ALOg2+2cE0TWlribDrtJvZQvgBCT0R10W2HOoD55rlvS5BLb5wUwURTLj0SQ9LQ=
=Ah23
-----END PGP SIGNATURE-----
payloadX  tree b09233b738dca3ac08f6fc3432d61e5509850b5e
parent 96c269d3191b1f411f0dc575a6e89dc08834da68
author Sam-Kramer <sam.c.kramer@gmail.com> 1679663266 +0000
committer GitHub <noreply@github.com> 1679663266 +0000

Add container names and use scratch image for config  (#6483)

 uuj܃  ^https://api.github.com/repos/palantir/atlasdb/commits/f4ba2346a0736e4f029339f4d676ad31d164b2a3html_urlShttps://github.com/palantir/atlasdb/commit/f4ba2346a0736e4f029339f4d676ad31d164b2a3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f4ba2346a0736e4f029339f4d676ad31d164b2a3/commentsjʃ  }(login
Sam-KrameridJ^2_ jƃ  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j܃  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj҃  }(j  web-flowj  J/jƃ  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5j܃  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j   3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj
  Userj  uparents]}(jă  (96c269d3191b1f411f0dc575a6e89dc08834da68j܃  ^https://api.github.com/repos/palantir/atlasdb/commits/96c269d3191b1f411f0dc575a6e89dc08834da68j  Shttps://github.com/palantir/atlasdb/commit/96c269d3191b1f411f0dc575a6e89dc08834da68uastats}(totalK	additionsK	deletionsKufiles](}(jă  (d1bf1debf194d0e7d439b60289e1831101bbfa6ffilename-atlasdb-workload-server-antithesis/Dockerfilestatusmodifiedj&  Kj'  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/f4ba2346a0736e4f029339f4d676ad31d164b2a3/atlasdb-workload-server-antithesis%2FDockerfileraw_urlhttps://github.com/palantir/atlasdb/raw/f4ba2346a0736e4f029339f4d676ad31d164b2a3/atlasdb-workload-server-antithesis%2FDockerfilecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2FDockerfile?ref=f4ba2346a0736e4f029339f4d676ad31d164b2a3patch@@ -1,4 +1,4 @@
-FROM adoptopenjdk/openjdk11:jre-11.0.9_11.1-alpine
+FROM scratch
 MAINTAINER AtlasDB Team
 
 ADD docker-compose.yml /
\ No newline at end of fileu}(jă  (00359012166e4ba56e683294b97132670a929abdj,  9atlasdb-workload-server-antithesis/var/docker-compose.ymlj.  modifiedj&  Kj'  K j0  Kj1  https://github.com/palantir/atlasdb/blob/f4ba2346a0736e4f029339f4d676ad31d164b2a3/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj3  https://github.com/palantir/atlasdb/raw/f4ba2346a0736e4f029339f4d676ad31d164b2a3/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj5  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=f4ba2346a0736e4f029339f4d676ad31d164b2a3j7  X  @@ -13,6 +13,7 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+    container_name: cassandra1
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
@@ -29,6 +30,7 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+    container_name: cassandra2
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
@@ -45,6 +47,7 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+    container_name: cassandra3
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.4
@@ -54,6 +57,7 @@ services:
     ports:
       - "8421"
       - "8422"
+    container_name: timelock
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.5
@@ -63,6 +67,7 @@ services:
     command: [bash, -c, 'cp var/conf/workload-server.timelock.cassandra.yml var/conf/workload-server.yml 
                          && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160 
                          && service/bin/init.sh console']
+    container_name: workload-server
     depends_on:
       - cassandra1
       - cassandra2ueu(3824a97b89fdd75569c2645e28b8b2095e5dde37}(sha(3824a97b89fdd75569c2645e28b8b2095e5dde37node_idEC_kwDOAjP5fdoAKDM4MjRhOTdiODlmZGQ3NTU2OWMyNjQ1ZTI4YjhiMjA5NWU1ZGRlMzccommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-12T12:54:38Zu	committer}(jK  
Ahmed AlouanejM  aalouane@palantir.comjO  2023-05-12T12:54:38Zumessageaddtree}(jC  (80b3588c53db8dff4b5de8b3143462e133979a04url`https://api.github.com/repos/palantir/atlasdb/git/trees/80b3588c53db8dff4b5de8b3143462e133979a04uj[  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3824a97b89fdd75569c2645e28b8b2095e5dde37
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmReNw4ACgkQPlMHVIT1
yhr9cwf+JBkGMKMyB21+3EYlzMTVAtrW62+dqfIofL1mN5FlEpqiABpDyDBjvsco
IDn/B7c2Nb2xkmqM3NOPECykLJ6htvmTYu3EUf5lYoYGI3OrxQwLJf+OlXlv/1CJ
e5X8I0fjL4yu4weh4JljqXDqQCjQF5h+0KyyDOoIsc2F2P05Od1nN9Sx3trTvsd4
E+9F/KvLUXb2gN3S9odfoBcTlo2cHciq/qHlpKw72GaEbDYHlXW44zHnMqRyXRfG
ya5SDq1wuhqBIjiqMoQkEO9Fndg3g3QMef6OyoZ1Ibn9TcTMLz3wYifLk3aYaP/J
R9ExM4k3Yu0pZv9bX0GxzbRiX3J+PA==
=A1JT
-----END PGP SIGNATURE-----payloadtree 80b3588c53db8dff4b5de8b3143462e133979a04
parent 59fc94b0f334eff33650807aa4121f46f4369339
author Ahmed Alouane <aalouane@palantir.com> 1683896078 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1683896078 +0100

add
uuj[  ^https://api.github.com/repos/palantir/atlasdb/commits/3824a97b89fdd75569c2645e28b8b2095e5dde37html_urlShttps://github.com/palantir/atlasdb/commit/3824a97b89fdd75569c2645e28b8b2095e5dde37comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3824a97b89fdd75569c2645e28b8b2095e5dde37/commentsjI  }(loginergo14idJjE  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j[  #https://api.github.com/users/ergo14ji  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujQ  }(jn  ergo14jp  JjE  MDQ6VXNlcjMwOTAzNzM2jr  4https://avatars.githubusercontent.com/u/30903736?v=4jt  h5j[  #https://api.github.com/users/ergo14ji  https://github.com/ergo14jw  -https://api.github.com/users/ergo14/followersjy  :https://api.github.com/users/ergo14/following{/other_user}j{  3https://api.github.com/users/ergo14/gists{/gist_id}j}  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j  1https://api.github.com/users/ergo14/subscriptionsj  (https://api.github.com/users/ergo14/orgsj  )https://api.github.com/users/ergo14/reposj  4https://api.github.com/users/ergo14/events{/privacy}j  3https://api.github.com/users/ergo14/received_eventsj  Userj  uparents]}(jC  (59fc94b0f334eff33650807aa4121f46f4369339j[  ^https://api.github.com/repos/palantir/atlasdb/commits/59fc94b0f334eff33650807aa4121f46f4369339ji  Shttps://github.com/palantir/atlasdb/commit/59fc94b0f334eff33650807aa4121f46f4369339uastats}(totalK	additionsK	deletionsKufiles]}(jC  (3845648c63885fc4a6b103e15e9c30b689189817filename.circleci/config.ymlstatusmodifiedj  Kj  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/3824a97b89fdd75569c2645e28b8b2095e5dde37/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/3824a97b89fdd75569c2645e28b8b2095e5dde37/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=3824a97b89fdd75569c2645e28b8b2095e5dde37patchX  @@ -88,7 +88,7 @@ jobs:
       - run:
           name: "Cancel workflows on failure"
           command: |
-            curl --request POST --url https://circleci.com/api/v2/workflow/$CIRCLE_WORKFLOW_ID/cancel --header 'authorization: Basic REPLACE_BASIC_AUTH'
+            curl --request POST --url https://circleci.com/api/v2/workflow/$CIRCLE_WORKFLOW_ID/cancel -u "$CIRCLE_WORKFLOW_ID:"
           when: on_fail
 
   trial-publish:uau(b002ac6eabcf0fcfb643b9071a7434191fa6615d}(sha(b002ac6eabcf0fcfb643b9071a7434191fa6615dnode_idEC_kwDOAjP5fdoAKGIwMDJhYzZlYWJjZjBmY2ZiNjQzYjkwNzFhNzQzNDE5MWZhNjYxNWQcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-16T00:22:23Zu	committer}(j  svc-autoreleasejĄ  -pd-foundry-infrastructure-notify@palantir.comjƄ  2023-05-16T00:22:23Zumessage#Autorelease 0.854.0-rc20

[skip ci]tree}(j  (ce7865bf0edfa04bea4d05f5def6ab86c20d82faurl`https://api.github.com/repos/palantir/atlasdb/git/trees/ce7865bf0edfa04bea4d05f5def6ab86c20d82fauj҄  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b002ac6eabcf0fcfb643b9071a7434191fa6615d
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRizMAACgkQhbrR8ip7mDCYbgD+I3AbyMmgyVAxjhyKU+wUSTQt
qWbnueoql0wkKsq6yNoA/2DyJ/wpWyafXq+JYS2ErHPIi77hFKD/zVilPGchs6nd
=Si1W
-----END PGP SIGNATURE-----
payloadX)  tree ce7865bf0edfa04bea4d05f5def6ab86c20d82fa
parent b2b645ef11a7fb8f1ab565f8ea2bf680157f1fbb
author aalouane <30903736+ergo14@users.noreply.github.com> 1684196543 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684196543 +0000

Autorelease 0.854.0-rc20

[skip ci]uuj҄  ^https://api.github.com/repos/palantir/atlasdb/commits/b002ac6eabcf0fcfb643b9071a7434191fa6615dhtml_urlShttps://github.com/palantir/atlasdb/commit/b002ac6eabcf0fcfb643b9071a7434191fa6615dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b002ac6eabcf0fcfb643b9071a7434191fa6615d/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j҄  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujȄ  }(j  svc-autoreleasej  J(j  MDQ6VXNlcjUxNzE4MzQ2j  4https://avatars.githubusercontent.com/u/51718346?v=4j  h5j҄  ,https://api.github.com/users/svc-autoreleasej  "https://github.com/svc-autoreleasej  6https://api.github.com/users/svc-autorelease/followersj  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j  :https://api.github.com/users/svc-autorelease/subscriptionsj  1https://api.github.com/users/svc-autorelease/orgsj  2https://api.github.com/users/svc-autorelease/reposj  =https://api.github.com/users/svc-autorelease/events{/privacy}j  <https://api.github.com/users/svc-autorelease/received_eventsj   Userj  uparents]}(j  (b2b645ef11a7fb8f1ab565f8ea2bf680157f1fbbj҄  ^https://api.github.com/repos/palantir/atlasdb/commits/b2b645ef11a7fb8f1ab565f8ea2bf680157f1fbbj  Shttps://github.com/palantir/atlasdb/commit/b2b645ef11a7fb8f1ab565f8ea2bf680157f1fbbuastats}(totalK 	additionsK 	deletionsK ufiles]u(a20fe9b3853c42055f191d62a8cc948845b68681}(sha(a20fe9b3853c42055f191d62a8cc948845b68681node_idEC_kwDOAjP5fdoAKGEyMGZlOWIzODUzYzQyMDU1ZjE5MWQ2MmE4Y2M5NDg4NDViNjg2ODEcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-07-19T19:28:17Zu	committer}(j*  Patrick Koenigj,  pkoenig10@gmail.comj.  2023-07-19T20:42:34ZumessageADon't register endpoints when using single-node embedded timelocktree}(j"  (b842ff06359dd0d292b9ec0b1c5d263771102719url`https://api.github.com/repos/palantir/atlasdb/git/trees/b842ff06359dd0d292b9ec0b1c5d263771102719uj:  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a20fe9b3853c42055f191d62a8cc948845b68681
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAAhcAAAAHc3NoLXJzYQAAAAMBAAEAAAIBAOLBVI00yZaP7395xCyqzy
aD/kgGj5GS8qP2f4Q0hM5gFbEYaTLwKvZTgcFMKJEw/3tOlCyuFoQChwrZ+YjoX3ZcTdIs
QnoGeYlwKUGY4x3QXLvrURZtGaXWggfEc+UKHT3mnGXM9FpX9CSdpTopg7KhxDlx3/Jv90
zimWImFPxKFUSZrhVGqD8qAQibPTFDs+JhK0cqllhsvm0PR9PilTde++NKLCQUNrRJi2+f
BjLBjJMJshRwXkkM6J8hDvyjiLJz4Bg9hq+5QLnO1fYaetU7aP4bsCs6ix5pyD4WO6cr6T
SMCtJThNdHvOVuOaCCHBOQrdVGjbMH9lmW5FL5oMsTZ86p24rZOFD9ly44mMJWYGk6F81y
japNgWorhR0tSZMSZPVlisGQQsRnsqQidrVPe3IR4MTUsKx39CAutxgk6N+BseeByXKw+H
aBKmd75u/FU7IoxEbXX7EuDq2TCtUmujYXiY7SY4T0DQDjNpHq+vrEUsKyi5mbRTdNahvt
eFWJU5UIwO7Ao+HdsqfUjGN6zw2HSkiHEG3iOj5OY+byI/ykoYGMQ40w6w7shCt7XDbUXa
/kGqIyicthBGQ7Y4/TtquH5Ag2UPSlN9C0Rt/ZBolkTfoLz4wCtTMzd7hdixs5yuocVTn7
njhSYSXRyRbbVcF/q56x1NAAsVOe9epxAAAAA2dpdAAAAAAAAAAGc2hhNTEyAAACFAAAAA
xyc2Etc2hhMi01MTIAAAIACqblbKUrp1AMFfBieXBQkrchu8lFhQZjFBPJYN4X/DpoZKqC
wlSA2s4mjS7CCQMO2A0TZlz27W4RIeUwZHc6B4nn2yl0PCHp38OPQi2mH5LvweA3MQTQgK
iX/mIH6aMkDLzIJQhzIrp2ERLi2hItjEavFEKHs8eplowffHf3uit3oZiKWNG19dWk1iwP
oeyyfZgRZ0C3uJ7Cue2Gtruzy4RE/RDrrkoBQXj4cX5KAQDiGsSxdLClVY21BFb2zVzjMW
a5hMUmsAssp/fi5SasaW+ZzEJ74PQYjS99GhpO9CurrScFoFpncKeHRKCeIaCP2bmA9Wir
HFzwIWOfNQEXqr7nsjwPk4ywN222LDfCylyrPNxtZHHgUNAGWaYI/NjiK+LYA1bzdRoF+w
uH2U3NjTOV++7eAHtTVOUxH8OZvgDUw5lX4A2v7+FAl69tHMFzae/mEdHj5riDxTI50S7I
rOAjyiJiEyIOR1QK4g5Uv0V9cBp0wjQjIglA8R68U+pW0lvWFD7P0v/QFuiYfaXqNNz7XT
+sz9PbWOXh9hcVkFFavxAsk6YXPkQBnw/nSWCAqTX+pBhcy2WaedeEI0OczDUp+Oks80q2
GRrgE2LOZtDfEqyay/1ghcNAF86uFNGJ1N7QCZDop19TB+HAkO2adNxk3s8e7ObICMUAoc
WitAw=
-----END SSH SIGNATURE-----payloadX  tree b842ff06359dd0d292b9ec0b1c5d263771102719
parent bfe7051211ad42fc0f3f59928e8602f422bf630b
author Patrick Koenig <pkoenig10@gmail.com> 1689794897 -0700
committer Patrick Koenig <pkoenig10@gmail.com> 1689799354 -0700

Don't register endpoints when using single-node embedded timelock
uuj:  ^https://api.github.com/repos/palantir/atlasdb/commits/a20fe9b3853c42055f191d62a8cc948845b68681html_urlShttps://github.com/palantir/atlasdb/commit/a20fe9b3853c42055f191d62a8cc948845b68681comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a20fe9b3853c42055f191d62a8cc948845b68681/commentsj(  }(login	pkoenig10idJLvP j$  MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5j:  &https://api.github.com/users/pkoenig10jH  https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminuj0  }(jM  	pkoenig10jO  JLvP j$  MDQ6VXNlcjUyNzMxNjQ=jQ  3https://avatars.githubusercontent.com/u/5273164?v=4jS  h5j:  &https://api.github.com/users/pkoenig10jH  https://github.com/pkoenig10jV  0https://api.github.com/users/pkoenig10/followersjX  =https://api.github.com/users/pkoenig10/following{/other_user}jZ  6https://api.github.com/users/pkoenig10/gists{/gist_id}j\  =https://api.github.com/users/pkoenig10/starred{/owner}{/repo}j^  4https://api.github.com/users/pkoenig10/subscriptionsj`  +https://api.github.com/users/pkoenig10/orgsjb  ,https://api.github.com/users/pkoenig10/reposjd  7https://api.github.com/users/pkoenig10/events{/privacy}jf  6https://api.github.com/users/pkoenig10/received_eventsjh  Userjj  uparents]}(j"  (bfe7051211ad42fc0f3f59928e8602f422bf630bj:  ^https://api.github.com/repos/palantir/atlasdb/commits/bfe7051211ad42fc0f3f59928e8602f422bf630bjH  Shttps://github.com/palantir/atlasdb/commit/bfe7051211ad42fc0f3f59928e8602f422bf630buastats}(totalK|	additionsK	deletionsK{ufiles](}(j"  (b173565d678b7b542b83a400be83c1df5712c1cbfilenamedatlasdb-config/src/main/java/com/palantir/atlasdb/factory/DefaultLockAndTimestampServiceFactory.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/a20fe9b3853c42055f191d62a8cc948845b68681/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a20fe9b3853c42055f191d62a8cc948845b68681/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java?ref=a20fe9b3853c42055f191d62a8cc948845b68681patchX?  @@ -262,7 +262,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
                     timelockRequestBatcherProviders,
                     knownSchemas);
         } else {
-            return createRawEmbeddedServices(metricsManager, registrar, lock, time);
+            return createRawEmbeddedServices(metricsManager, lock, time);
         }
     }
 
@@ -621,7 +621,6 @@ private static LockAndTimestampServices createRawRemoteServices(
 
     private static LockAndTimestampServices createRawEmbeddedServices(
             MetricsManager metricsManager,
-            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> managedTimestampServiceSupplier) {
         LockService lockService =
@@ -634,10 +633,6 @@ private static LockAndTimestampServices createRawEmbeddedServices(
         TimestampManagementService timestampManagementService = ServiceCreator.instrumentService(
                 metricsManager.getRegistry(), managedTimestampService, TimestampManagementService.class);
 
-        registrar.accept(lockService);
-        registrar.accept(timeService);
-        registrar.accept(timestampManagementService);
-
         return ImmutableLockAndTimestampServices.builder()
                 .lock(lockService)
                 .timestamp(timeService)u}(j"  (90edeba1b42bea88433fe9a153bd7dee8c778e39j  8atlasdb-ete-tests/docker-compose.no-leader.cassandra.ymlj  removedj  K j  K j  K j  https://github.com/palantir/atlasdb/blob/bfe7051211ad42fc0f3f59928e8602f422bf630b/atlasdb-ete-tests%2Fdocker-compose.no-leader.cassandra.ymlj  https://github.com/palantir/atlasdb/raw/bfe7051211ad42fc0f3f59928e8602f422bf630b/atlasdb-ete-tests%2Fdocker-compose.no-leader.cassandra.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.no-leader.cassandra.yml?ref=bfe7051211ad42fc0f3f59928e8602f422bf630bj  Xg  @@ -1,32 +0,0 @@
-version: '2'
-
-services:
-  cassandra:
-    image: palantirtechnologies/docker-cassandra-atlasdb:$CASSANDRA_VERSION
-    ports:
-      - "9160"
-      - "9042"
-      - "7199"
-    environment:
-      - MAX_HEAP_SIZE=$CASSANDRA_MAX_HEAP_SIZE
-      - HEAP_NEWSIZE=$CASSANDRA_HEAP_NEWSIZE
-      - LOCAL_JMX=no
-
-  ete1:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.no-leader.cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console'
-    depends_on:
-      - cassandra
-    environment:
-      - ME=ete1
-    ports:
-      - "3828"
-
-  ete-cli:
-    build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.no-leader.cassandra.client.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
-    environment:
-      - ME=ete1
-    depends_on:
-      - ete1u}(j"  (34ea6c0b5ef5dbd5272880f34171baede31d5a1bj  Hatlasdb-ete-tests/docker/conf/atlasdb-ete.no-leader.cassandra.client.ymlj  removedj  K j  K'j  K'j  https://github.com/palantir/atlasdb/blob/bfe7051211ad42fc0f3f59928e8602f422bf630b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.no-leader.cassandra.client.ymlj  https://github.com/palantir/atlasdb/raw/bfe7051211ad42fc0f3f59928e8602f422bf630b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.no-leader.cassandra.client.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.no-leader.cassandra.client.yml?ref=bfe7051211ad42fc0f3f59928e8602f422bf630bj  X  @@ -1,39 +0,0 @@
-server:
-  #rootPath: /api/*
-  #applicationContextPath: /
-  #adminContextPath: /
-  applicationConnectors:
-    - type: http
-      port: 3828
-  adminConnectors:
-    - type: http
-      port: 3829
-
-atlasdb:
-  keyValueService:
-    type: cassandra
-    servers:
-      - cassandra:9160
-    poolSize: 20
-    keyspace: atlasete
-    credentials:
-      username: cassandra
-      password: cassandra
-    ssl: false
-    replicationFactor: 1
-    mutationBatchCount: 10000
-    mutationBatchSizeBytes: 10000000
-    fetchBatchCount: 1000
-    autoRefreshNodes: false
-
-  leader:
-    quorumSize: 1
-    learnerLogDir: var/data/paxosLog/learner1
-    acceptorLogDir: var/data/paxosLog/acceptor1
-    localServer: http://${ME}:3828
-    leaders:
-      - http://ete1:3828
-    sslConfiguration:
-      keyStorePath: "var/security/keyStore.jks"
-      keyStorePassword: "keystore"
-      trustStorePath: "var/security/trustStore.jks"u}(j"  (5717012391f5914faa1531b59bde36cee3aa6a6fj  Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraNoLeaderTestSuite.javaj  removedj  K j  K.j  K.j  https://github.com/palantir/atlasdb/blob/bfe7051211ad42fc0f3f59928e8602f422bf630b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraNoLeaderTestSuite.javaj  https://github.com/palantir/atlasdb/raw/bfe7051211ad42fc0f3f59928e8602f422bf630b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraNoLeaderTestSuite.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraNoLeaderTestSuite.java?ref=bfe7051211ad42fc0f3f59928e8602f422bf630bj  X#  @@ -1,46 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.ete;
-
-import com.google.common.collect.ImmutableList;
-import com.palantir.atlasdb.containers.CassandraEnvironment;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import com.palantir.atlasdb.ete.coordination.MultipleSchemaVersionsCoordinationEteTest;
-import org.junit.ClassRule;
-import org.junit.rules.RuleChain;
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-
-@RunWith(Suite.class)
-@Suite.SuiteClasses({
-    TodoEteTest.class,
-    ServiceExposureEteTest.class,
-    CassandraTimestampsEteTest.class,
-    TimestampManagementEteTest.class,
-    CoordinationEteTest.class,
-    MultipleSchemaVersionsCoordinationEteTest.class,
-    LockWithoutTimelockEteTest.class
-})
-public class CassandraNoLeaderTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");
-
-    @ClassRule
-    public static final RuleChain COMPOSITION_SETUP = EteSetup.setupComposition(
-            CassandraNoLeaderTestSuite.class,
-            "docker-compose.no-leader.cassandra.yml",
-            CLIENTS,
-            CassandraEnvironment.get());
-}ueu(c49862fa286a6661d238aacc0e13f5de4112090e}(sha(c49862fa286a6661d238aacc0e13f5de4112090enode_idEC_kwDOAjP5fdoAKGM0OTg2MmZhMjg2YTY2NjFkMjM4YWFjYzBlMTNmNWRlNDExMjA5MGUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-12T13:14:11Zu	committer}(j  
Ahmed Alouanej  aalouane@palantir.comj  2023-05-12T13:14:11Zumessagehellooootree}(j  (0d69d450fd72a063ca6341e91c3310a6da0a3d5curl`https://api.github.com/repos/palantir/atlasdb/git/trees/0d69d450fd72a063ca6341e91c3310a6da0a3d5cujɅ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c49862fa286a6661d238aacc0e13f5de4112090e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmReO6MACgkQPlMHVIT1
yhqW9ggAnMHSHIVWJYVMUFaN7K4g42tTKvvTYH8c59jhJidI3SLar3ALDSMNrSu4
LfAL1aYHpjnYqm0j2bevVhpkQbD49Ug1l3/Tcnv2384zSrGRA4K4G53wuH82G22t
mI9zcGAuMzM93EG4vuUc1rdHwnQlHThC0M/KfSyPGlueZJKSoFxuV8qfMlQv44nR
xG1XomEkKo//eCF8N8eKXzB0W4Bwcftb7+pHog+Pxi3qLBHHDjpgvgFUuHQCDhj2
hL5aMrtIatcWTeeSKKEtu2wZqRR+GuUqbWbznWBxItzAEJRtLpD5xmaaiV71xCWQ
3mu10VFMQOsXX9npenlDk5ya4erOQA==
=d147
-----END PGP SIGNATURE-----payloadtree 0d69d450fd72a063ca6341e91c3310a6da0a3d5c
parent 7daafb5faa6f64e8ebb90c5d1a744efa199a882f
author Ahmed Alouane <aalouane@palantir.com> 1683897251 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1683897251 +0100

helloooo
uujɅ  ^https://api.github.com/repos/palantir/atlasdb/commits/c49862fa286a6661d238aacc0e13f5de4112090ehtml_urlShttps://github.com/palantir/atlasdb/commit/c49862fa286a6661d238aacc0e13f5de4112090ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c49862fa286a6661d238aacc0e13f5de4112090e/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jɅ  #https://api.github.com/users/ergo14jׅ  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j܅  ergo14jޅ  Jj  MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j  h5jɅ  #https://api.github.com/users/ergo14jׅ  https://github.com/ergo14j  -https://api.github.com/users/ergo14/followersj  :https://api.github.com/users/ergo14/following{/other_user}j  3https://api.github.com/users/ergo14/gists{/gist_id}j  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j  1https://api.github.com/users/ergo14/subscriptionsj  (https://api.github.com/users/ergo14/orgsj  )https://api.github.com/users/ergo14/reposj  4https://api.github.com/users/ergo14/events{/privacy}j  3https://api.github.com/users/ergo14/received_eventsj  Userj  uparents]}(j  (7daafb5faa6f64e8ebb90c5d1a744efa199a882fjɅ  ^https://api.github.com/repos/palantir/atlasdb/commits/7daafb5faa6f64e8ebb90c5d1a744efa199a882fjׅ  Shttps://github.com/palantir/atlasdb/commit/7daafb5faa6f64e8ebb90c5d1a744efa199a882fuastats}(totalK	additionsK	deletionsKufiles]}(j  (bd4a46238ca91ececb82cd7254936df6ddb773d2filename.circleci/config.ymlstatusmodifiedj  Kj  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/c49862fa286a6661d238aacc0e13f5de4112090e/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/c49862fa286a6661d238aacc0e13f5de4112090e/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=c49862fa286a6661d238aacc0e13f5de4112090epatchX  @@ -88,7 +88,7 @@ jobs:
       - run:
           name: "Cancel workflows on failure"
           command: |
-            curl --request POST --url https://circleci.com/api/v2/workflow/$CIRCLE_WORKFLOW_ID/cancel -u "$CIRCLE_AUTH_TOKEN:"
+            curl --request POST --url https://circleci.com/api/v2/workflow/$CIRCLE_WORKFLOW_ID/cancel -u "$CIRCLE_API_TOKEN:"
           when: on_fail
 
   trial-publish:uau(fc09751e555ba0b106c6b87977afe02a92029295}(sha(fc09751e555ba0b106c6b87977afe02a92029295node_idEC_kwDOAjP5fdoAKGZjMDk3NTFlNTU1YmEwYjEwNmM2Yjg3OTc3YWZlMDJhOTIwMjkyOTUcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-02-28T17:18:14Zu	committer}(j0  svc-autoreleasej2  -pd-foundry-infrastructure-notify@palantir.comj4  2023-02-28T17:18:14ZumessageAutorelease 0.806.0

[skip ci]tree}(j(  (6b747b74e13fd6022b486cebb42e501605676f06url`https://api.github.com/repos/palantir/atlasdb/git/trees/6b747b74e13fd6022b486cebb42e501605676f06uj@  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fc09751e555ba0b106c6b87977afe02a92029295
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmP+N1sACgkQhbrR8ip7mDAvQAD+PrM55z1vmiBCZbmxGmSHozFj
0pfJ5reZz5NNqwbz5pYA/2cGFxswJ+yv/fLERF0mxfHqP8VP5PCjzV2LP9tWyfjR
=Npy9
-----END PGP SIGNATURE-----
payloadX0  tree 6b747b74e13fd6022b486cebb42e501605676f06
parent 82898a844ebf109ee0cc31c02886349247e62ba8
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1677604694 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1677604694 +0000

Autorelease 0.806.0

[skip ci]uuj@  ^https://api.github.com/repos/palantir/atlasdb/commits/fc09751e555ba0b106c6b87977afe02a92029295html_urlShttps://github.com/palantir/atlasdb/commit/fc09751e555ba0b106c6b87977afe02a92029295comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fc09751e555ba0b106c6b87977afe02a92029295/commentsj.  }(loginsvc-autoreleaseidJ(j*  MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j@  ,https://api.github.com/users/svc-autoreleasejN  "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj6  }(jS  svc-autoreleasejU  J(j*  MDQ6VXNlcjUxNzE4MzQ2jW  4https://avatars.githubusercontent.com/u/51718346?v=4jY  h5j@  ,https://api.github.com/users/svc-autoreleasejN  "https://github.com/svc-autoreleasej\  6https://api.github.com/users/svc-autorelease/followersj^  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j`  <https://api.github.com/users/svc-autorelease/gists{/gist_id}jb  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jd  :https://api.github.com/users/svc-autorelease/subscriptionsjf  1https://api.github.com/users/svc-autorelease/orgsjh  2https://api.github.com/users/svc-autorelease/reposjj  =https://api.github.com/users/svc-autorelease/events{/privacy}jl  <https://api.github.com/users/svc-autorelease/received_eventsjn  Userjp  uparents]}(j(  (82898a844ebf109ee0cc31c02886349247e62ba8j@  ^https://api.github.com/repos/palantir/atlasdb/commits/82898a844ebf109ee0cc31c02886349247e62ba8jN  Shttps://github.com/palantir/atlasdb/commit/82898a844ebf109ee0cc31c02886349247e62ba8uastats}(totalK 	additionsK 	deletionsK ufiles]}(j(  (2b7ebf3f2002680b8eeae307892324077aef87b8filename changelog/0.806.0/pr-6455.v2.ymlstatusrenamedj  K j  K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/fc09751e555ba0b106c6b87977afe02a92029295/changelog%2F0.806.0%2Fpr-6455.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/fc09751e555ba0b106c6b87977afe02a92029295/changelog%2F0.806.0%2Fpr-6455.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.806.0%2Fpr-6455.v2.yml?ref=fc09751e555ba0b106c6b87977afe02a92029295previous_filename$changelog/@unreleased/pr-6455.v2.ymluau(0cd2e5980e531bbdd82ffc1b86f024928a35f5b7}(sha(0cd2e5980e531bbdd82ffc1b86f024928a35f5b7node_idEC_kwDOAjP5fdoAKDBjZDJlNTk4MGU1MzFiYmRkODJmZmMxYjg2ZjAyNDkyOGEzNWY1Yjccommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-15T23:46:35Zu	committer}(j  svc-autoreleasej  -pd-foundry-infrastructure-notify@palantir.comj  2023-05-15T23:46:35Zumessage#Autorelease 0.854.0-rc17

[skip ci]tree}(j  (63206dcac6ec389c75ea26922a54d27c667e3b5aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/63206dcac6ec389c75ea26922a54d27c667e3b5auj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0cd2e5980e531bbdd82ffc1b86f024928a35f5b7
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRixFwACgkQhbrR8ip7mDAirAD/VJJ9lxxg+onWc3SGd3Yoh0VL
Nz8WyDTDCIdG7WEsY/cBANJ8ffEOpLDXQzhBkTCW9dHeXhdq/ic5K97TL3Bhjud8
=6VYF
-----END PGP SIGNATURE-----
payloadX)  tree 63206dcac6ec389c75ea26922a54d27c667e3b5a
parent e03a71421c88df6b753355018b374be3a837c5e5
author aalouane <30903736+ergo14@users.noreply.github.com> 1684194395 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684194395 +0000

Autorelease 0.854.0-rc17

[skip ci]uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/0cd2e5980e531bbdd82ffc1b86f024928a35f5b7html_urlShttps://github.com/palantir/atlasdb/commit/0cd2e5980e531bbdd82ffc1b86f024928a35f5b7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0cd2e5980e531bbdd82ffc1b86f024928a35f5b7/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14jņ  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(jʆ  svc-autoreleasej̆  J(j  MDQ6VXNlcjUxNzE4MzQ2jΆ  4https://avatars.githubusercontent.com/u/51718346?v=4jІ  h5j  ,https://api.github.com/users/svc-autoreleasejņ  "https://github.com/svc-autoreleasejӆ  6https://api.github.com/users/svc-autorelease/followersjՆ  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j׆  <https://api.github.com/users/svc-autorelease/gists{/gist_id}jن  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jۆ  :https://api.github.com/users/svc-autorelease/subscriptionsj݆  1https://api.github.com/users/svc-autorelease/orgsj߆  2https://api.github.com/users/svc-autorelease/reposj  =https://api.github.com/users/svc-autorelease/events{/privacy}j  <https://api.github.com/users/svc-autorelease/received_eventsj  Userj  uparents]}(j  (e03a71421c88df6b753355018b374be3a837c5e5j  ^https://api.github.com/repos/palantir/atlasdb/commits/e03a71421c88df6b753355018b374be3a837c5e5jņ  Shttps://github.com/palantir/atlasdb/commit/e03a71421c88df6b753355018b374be3a837c5e5uastats}(totalK 	additionsK 	deletionsK ufiles]u(31c6983c8d528ad207bbe5f06851d561a4e7dc96}(sha(31c6983c8d528ad207bbe5f06851d561a4e7dc96node_idEC_kwDOAjP5fdoAKDMxYzY5ODNjOGQ1MjhhZDIwN2JiZTVmMDY4NTFkNTYxYTRlN2RjOTYcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-06-29T02:28:03Zu	committer}(j  
svc-changelogj  svc-changelog@palantir.comj  2023-06-29T02:28:03ZumessageAdd generated changelog entriestree}(j  (273c04f6b28a974c041971fea07c79601c61f2d6url`https://api.github.com/repos/palantir/atlasdb/git/trees/273c04f6b28a974c041971fea07c79601c61f2d6uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/31c6983c8d528ad207bbe5f06851d561a4e7dc96
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSc7DMJEHYaJX37fAFQAACazwD/dJbhf7e2BIqYofuQpXFXVSQ5
NzQTcXzZ6SZh5WOAkCABAIq2PeEnbHJdVyzRLg1HsMGLfHv5XE7fYDh56Qy8k9lr
=Zl/s
-----END PGP SIGNATURE-----payloadX  tree 273c04f6b28a974c041971fea07c79601c61f2d6
parent b6de10dc29fa9abe3b3cd5e1a0ad85c620332377
author svc-changelog <svc-changelog@palantir.com> 1688005683 +0000
committer svc-changelog <svc-changelog@palantir.com> 1688005683 +0000

Add generated changelog entriesuuj  ^https://api.github.com/repos/palantir/atlasdb/commits/31c6983c8d528ad207bbe5f06851d561a4e7dc96html_urlShttps://github.com/palantir/atlasdb/commit/31c6983c8d528ad207bbe5f06851d561a4e7dc96comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/31c6983c8d528ad207bbe5f06851d561a4e7dc96/commentsj
  }(login
svc-changelogidJ#j	  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j  *https://api.github.com/users/svc-changelogj-   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj  }(j2  
svc-changelogj4  J#j	  MDQ6VXNlcjg0MDc3NjAzj6  4https://avatars.githubusercontent.com/u/84077603?v=4j8  h5j  *https://api.github.com/users/svc-changelogj-   https://github.com/svc-changelogj;  4https://api.github.com/users/svc-changelog/followersj=  Ahttps://api.github.com/users/svc-changelog/following{/other_user}j?  :https://api.github.com/users/svc-changelog/gists{/gist_id}jA  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jC  8https://api.github.com/users/svc-changelog/subscriptionsjE  /https://api.github.com/users/svc-changelog/orgsjG  0https://api.github.com/users/svc-changelog/reposjI  ;https://api.github.com/users/svc-changelog/events{/privacy}jK  :https://api.github.com/users/svc-changelog/received_eventsjM  UserjO  uparents]}(j  (b6de10dc29fa9abe3b3cd5e1a0ad85c620332377j  ^https://api.github.com/repos/palantir/atlasdb/commits/b6de10dc29fa9abe3b3cd5e1a0ad85c620332377j-  Shttps://github.com/palantir/atlasdb/commit/b6de10dc29fa9abe3b3cd5e1a0ad85c620332377uastats}(totalK	additionsK	deletionsK ufiles]}(j  (3750fb7fc4996863b5345b1cb6cbf683dd8cfc1ffilename$changelog/@unreleased/pr-6648.v2.ymlstatusaddedji  Kjj  K changesKblob_url|https://github.com/palantir/atlasdb/blob/31c6983c8d528ad207bbe5f06851d561a4e7dc96/changelog%2F%40unreleased%2Fpr-6648.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/31c6983c8d528ad207bbe5f06851d561a4e7dc96/changelog%2F%40unreleased%2Fpr-6648.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6648.v2.yml?ref=31c6983c8d528ad207bbe5f06851d561a4e7dc96patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize CassandraService#getAddressForHost
+  links:
+  - https://github.com/palantir/atlasdb/pull/6648uau(624a32080ff603362a8e472130f5723986606958}(sha(624a32080ff603362a8e472130f5723986606958node_idEC_kwDOAjP5fdoAKDYyNGEzMjA4MGZmNjAzMzYyYThlNDcyMTMwZjU3MjM5ODY2MDY5NTgcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-08-08T16:21:11Zu	committer}(j  
svc-changelogj  svc-changelog@palantir.comj  2023-08-08T16:21:11ZumessageAdd generated changelog entriestree}(j~  (78b91ad989de9911cb4889fa26a18a244cc7ba39url`https://api.github.com/repos/palantir/atlasdb/git/trees/78b91ad989de9911cb4889fa26a18a244cc7ba39uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/624a32080ff603362a8e472130f5723986606958
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmTSa3cJEHYaJX37fAFQAACJkQEAyxmcE3NC9czGov7SHU+pAF0m
ZVQdJnpw9d8bMk3euH4BAPv5Iv1ZFSTIaUf2Gmmt69JH2VYIJWVEF1EJlh5S5/Qa
=nxbj
-----END PGP SIGNATURE-----payloadX  tree 78b91ad989de9911cb4889fa26a18a244cc7ba39
parent 1db3ec2de3eb6ef300c784c6ad45080a65427451
author svc-changelog <svc-changelog@palantir.com> 1691511671 +0000
committer svc-changelog <svc-changelog@palantir.com> 1691511671 +0000

Add generated changelog entriesuuj  ^https://api.github.com/repos/palantir/atlasdb/commits/624a32080ff603362a8e472130f5723986606958html_urlShttps://github.com/palantir/atlasdb/commit/624a32080ff603362a8e472130f5723986606958comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/624a32080ff603362a8e472130f5723986606958/commentsj  }(login
svc-changelogidJ#j  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j  *https://api.github.com/users/svc-changelogj   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj  }(j  
svc-changelogj  J#j  MDQ6VXNlcjg0MDc3NjAzj  4https://avatars.githubusercontent.com/u/84077603?v=4j  h5j  *https://api.github.com/users/svc-changelogj   https://github.com/svc-changelogj  4https://api.github.com/users/svc-changelog/followersj  Ahttps://api.github.com/users/svc-changelog/following{/other_user}j  :https://api.github.com/users/svc-changelog/gists{/gist_id}j  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j  8https://api.github.com/users/svc-changelog/subscriptionsj  /https://api.github.com/users/svc-changelog/orgsj  0https://api.github.com/users/svc-changelog/reposj  ;https://api.github.com/users/svc-changelog/events{/privacy}j  :https://api.github.com/users/svc-changelog/received_eventsjć  UserjƇ  uparents]}(j~  (1db3ec2de3eb6ef300c784c6ad45080a65427451j  ^https://api.github.com/repos/palantir/atlasdb/commits/1db3ec2de3eb6ef300c784c6ad45080a65427451j  Shttps://github.com/palantir/atlasdb/commit/1db3ec2de3eb6ef300c784c6ad45080a65427451uastats}(totalK	additionsK	deletionsKufiles]}(j~  (85b88858e24587f4a6856741976dc6e584bbe990filename$changelog/@unreleased/pr-6671.v2.ymlstatusmodifiedj  Kj  KchangesKblob_url|https://github.com/palantir/atlasdb/blob/624a32080ff603362a8e472130f5723986606958/changelog%2F%40unreleased%2Fpr-6671.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/624a32080ff603362a8e472130f5723986606958/changelog%2F%40unreleased%2Fpr-6671.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6671.v2.yml?ref=624a32080ff603362a8e472130f5723986606958patchX:  @@ -1,5 +1,6 @@
 type: feature
 feature:
-  description: '[LWMeta] Pass Metadata through SnapshotTransaction'
+  description: Transactions now support putting/deleting values with metadata to be
+    associated with their respective commit lock requests
   links:
   - https://github.com/palantir/atlasdb/pull/6671uau(4e6c9cae810656d2f94ab2c98ce0c45a41b4bfd5}(sha(4e6c9cae810656d2f94ab2c98ce0c45a41b4bfd5node_idEC_kwDOAjP5fdoAKDRlNmM5Y2FlODEwNjU2ZDJmOTRhYjJjOThjZTBjNDVhNDFiNGJmZDUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-25T16:59:37Zu	committer}(j  
Ahmed Alouanej  aalouane@palantir.comj  2023-05-25T16:59:37Zumessagehellotree}(j  (a8565d915d01b7cbacffb7a36e759857fced0b1burl`https://api.github.com/repos/palantir/atlasdb/git/trees/a8565d915d01b7cbacffb7a36e759857fced0b1buj
  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4e6c9cae810656d2f94ab2c98ce0c45a41b4bfd5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRvk/kACgkQPlMHVIT1
yhoxigf/aEDu0X8DzJVDHm4MfhRlxLZikf058m9XFzKqleUmySFG+JJCX/DhzH9R
ox+Yww44sJZ+TY60xSPv+Tmpy9g2PZQ5q8OIjnE/q9vs10PDQymldty/ZD34iuXW
PfplddS0rnsBq4Egx0UAGVUYdE5jbexD3cSvPl+PXdFiClLnxfXTxWLn5jeCOQ/F
sCU84iJ1PAuSKrNnqHbFXSA4rt6pfvoT23zjqGtgnRDy0w1f9oVxqAkTq5xlzWob
2mthygwHf/9ZtURmtP6IwcrXaFNFW+s8Vj71FOpqmbUXu7Eq58RdNKv5ckeTtYUK
UDPjmedhnVnj2Y2F/33TiGIZxbUF9Q==
=H7gw
-----END PGP SIGNATURE-----payloadtree a8565d915d01b7cbacffb7a36e759857fced0b1b
parent b43fda437830085914d846dddc38492c81fe7f83
author Ahmed Alouane <aalouane@palantir.com> 1685033977 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1685033977 +0100

hello
uuj
  ^https://api.github.com/repos/palantir/atlasdb/commits/4e6c9cae810656d2f94ab2c98ce0c45a41b4bfd5html_urlShttps://github.com/palantir/atlasdb/commit/4e6c9cae810656d2f94ab2c98ce0c45a41b4bfd5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4e6c9cae810656d2f94ab2c98ce0c45a41b4bfd5/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j
  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j   ergo14j"  Jj  MDQ6VXNlcjMwOTAzNzM2j$  4https://avatars.githubusercontent.com/u/30903736?v=4j&  h5j
  #https://api.github.com/users/ergo14j  https://github.com/ergo14j)  -https://api.github.com/users/ergo14/followersj+  :https://api.github.com/users/ergo14/following{/other_user}j-  3https://api.github.com/users/ergo14/gists{/gist_id}j/  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j1  1https://api.github.com/users/ergo14/subscriptionsj3  (https://api.github.com/users/ergo14/orgsj5  )https://api.github.com/users/ergo14/reposj7  4https://api.github.com/users/ergo14/events{/privacy}j9  3https://api.github.com/users/ergo14/received_eventsj;  Userj=  uparents]}(j  (b43fda437830085914d846dddc38492c81fe7f83j
  ^https://api.github.com/repos/palantir/atlasdb/commits/b43fda437830085914d846dddc38492c81fe7f83j  Shttps://github.com/palantir/atlasdb/commit/b43fda437830085914d846dddc38492c81fe7f83uastats}(totalK	additionsK	deletionsKufiles]}(j  (7c4fcb1f2b06539c3940170cab529dae222b7a34filenamelatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javastatusmodifiedjW  KjX  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/4e6c9cae810656d2f94ab2c98ce0c45a41b4bfd5/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4e6c9cae810656d2f94ab2c98ce0c45a41b4bfd5/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=4e6c9cae810656d2f94ab2c98ce0c45a41b4bfd5patchX
  @@ -59,6 +59,7 @@
 import java.util.Optional;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Executors;
+import java.util.stream.Collectors;
 import org.junit.Before;
 import org.junit.ClassRule;
 import org.junit.Test;
@@ -240,7 +241,7 @@ public void registersMetrics() throws InterruptedException {
                 .contains(FINISH_TASK_METRIC_NAME)
                 .contains("expectations.bytesRead")
                 .contains("expectations.kvsReads")
-                .contains("expectations.mostKvsBytesReadInSingleCall");
+                .contains("expectations.ageMillis");
         assertThat(registry.timer(MetricName.builder()
                                 .safeName(SETUP_TASK_METRIC_NAME)
                                 .build())uau(71ca43dd4af96fb01b99f475c4770bd92fe7cb3e}(sha(71ca43dd4af96fb01b99f475c4770bd92fe7cb3enode_idEC_kwDOAjP5fdoAKDcxY2E0M2RkNGFmOTZmYjAxYjk5ZjQ3NWM0NzcwYmQ5MmZlN2NiM2Ucommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-05-26T09:56:26Zu	committer}(jt  Lucas Meirelesjv  meireles31@msn.comjx  2023-05-26T09:56:26ZumessagevRevert "Add docker volumes to Cassandra images (#6574)"

This reverts commit 6d014a5f21edd6ca9a7de56b98f94e4875dfa077.tree}(jl  (8f6c676bf05d870ce2abd7f411b5496cecc940f8url`https://api.github.com/repos/palantir/atlasdb/git/trees/8f6c676bf05d870ce2abd7f411b5496cecc940f8uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/71ca43dd4af96fb01b99f475c4770bd92fe7cb3e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmRwgksACgkQJd22kJ7J
GixgkQgA4BQO44HqWDwL1Rl1q2tLTE64BJzHh+CmL3LL76ZzEoGPI+vYDtQ41gFF
h+iPUVmzXNNh5gIM09rU5Uu2l0w36VCf/E11OHYTogYZ5rSi+1qcfPj9QOyUQq+n
Uk80qevjyyTWoJcQTBbl84UKwiCWiIBTeW5m2CaUPIkO/DvBdsAcjV859emRlDlg
SR9U30TlvPl1bk9HMJCdMCP7fROChOqnwuAsDupWmgbkOtVQ6AbDqnI22WleFVXT
Uz24mpjymQf9b41wcBdNCbinwTq7iI5iwpa9dZVGDzONYIx5bQBRUSyrFODlnyhk
n0p4OB/YblWjaO/WXF5m2tbHWh7jiw==
=/x7L
-----END PGP SIGNATURE-----payloadXQ  tree 8f6c676bf05d870ce2abd7f411b5496cecc940f8
parent 80e9be61d3baf5faf10e6ecd98b9a4c1e8a4fd27
author Lucas Meireles <meireles31@msn.com> 1685094986 +0100
committer Lucas Meireles <meireles31@msn.com> 1685094986 +0100

Revert "Add docker volumes to Cassandra images (#6574)"

This reverts commit 6d014a5f21edd6ca9a7de56b98f94e4875dfa077.
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/71ca43dd4af96fb01b99f475c4770bd92fe7cb3ehtml_urlShttps://github.com/palantir/atlasdb/commit/71ca43dd4af96fb01b99f475c4770bd92fe7cb3ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/71ca43dd4af96fb01b99f475c4770bd92fe7cb3e/commentsjr  }(loginLucasIMEidJg jn  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujz  }(j  LucasIMEj  Jg jn  MDQ6VXNlcjY3ODczMTE=j  3https://avatars.githubusercontent.com/u/6787311?v=4j  h5j  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIMEj  /https://api.github.com/users/LucasIME/followersj  <https://api.github.com/users/LucasIME/following{/other_user}j  5https://api.github.com/users/LucasIME/gists{/gist_id}j  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j  3https://api.github.com/users/LucasIME/subscriptionsj  *https://api.github.com/users/LucasIME/orgsj  +https://api.github.com/users/LucasIME/reposj  6https://api.github.com/users/LucasIME/events{/privacy}j  5https://api.github.com/users/LucasIME/received_eventsj  Userj  uparents]}(jl  (80e9be61d3baf5faf10e6ecd98b9a4c1e8a4fd27j  ^https://api.github.com/repos/palantir/atlasdb/commits/80e9be61d3baf5faf10e6ecd98b9a4c1e8a4fd27j  Shttps://github.com/palantir/atlasdb/commit/80e9be61d3baf5faf10e6ecd98b9a4c1e8a4fd27uastats}(totalK	additionsK 	deletionsKufiles]}(jl  (b5c7b9efcec99e2e4e3b5ccc3eb2f13e725dca1afilename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedjΈ  K jψ  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/71ca43dd4af96fb01b99f475c4770bd92fe7cb3e/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/71ca43dd4af96fb01b99f475c4770bd92fe7cb3e/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=71ca43dd4af96fb01b99f475c4770bd92fe7cb3epatchX8  @@ -15,8 +15,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra1
-    volumes:
-      - /opt/config/volumes/cassandra1:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
@@ -35,8 +33,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra2
-    volumes:
-      - /opt/config/volumes/cassandra2:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
@@ -55,8 +51,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra3
-    volumes:
-      - /opt/config/volumes/cassandra3:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.4uau(a2222930957cd842eb796a6602fde16a6e92b3cf}(sha(a2222930957cd842eb796a6602fde16a6e92b3cfnode_idEC_kwDOAjP5fdoAKGEyMjIyOTMwOTU3Y2Q4NDJlYjc5NmE2NjAyZmRlMTZhNmU5MmIzY2Ycommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-25T11:22:25Zu	committer}(j  
Ahmed Alouanej  aalouane@palantir.comj  2023-04-25T11:22:25Zumessagespotlesstree}(j  (f76b08717e75dcce8261e1eaff11354a42238d82url`https://api.github.com/repos/palantir/atlasdb/git/trees/f76b08717e75dcce8261e1eaff11354a42238d82uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a2222930957cd842eb796a6602fde16a6e92b3cf
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRHt/IACgkQPlMHVIT1
yhpA6QgAvAwbf94R97upd2foBTlVqNnr+MWUgj9eBTXWZRt7d8IOcdXYUbQjeGZa
NplZ/2qkUbJoOqjPidj7jXdwrIoOAd9/uqCDr5Q/fX/+ouWQuL4tscJAl9Dg2WzB
XkM2P6G8LU3sFroKpvELDOUQOaz3LzszV+rfDZIbfRUwTFZUQUqpXDQRcvRpDTRs
hf4xuHYheTQ+uLwceydC41M3lbZDIlmX8TNrQ1SIOvZqQCZ+N5z7WvmwKGZoVxng
0Kix9+fLkT7vrbQDVW790S6r8jLrsAE6s592dv1m5l8lXNExGkj1gFs8z/L9veyn
As2bFbx2im3t21iXJ62jgBDocPOhjg==
=MFhS
-----END PGP SIGNATURE-----payloadtree f76b08717e75dcce8261e1eaff11354a42238d82
parent deee841088e4d44ed58d1613cb1f3d59d371b716
author Ahmed Alouane <aalouane@palantir.com> 1682421745 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682421745 +0100

spotless
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/a2222930957cd842eb796a6602fde16a6e92b3cfhtml_urlShttps://github.com/palantir/atlasdb/commit/a2222930957cd842eb796a6602fde16a6e92b3cfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a2222930957cd842eb796a6602fde16a6e92b3cf/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j	  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j  ergo14j  Jj  MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j  h5j  #https://api.github.com/users/ergo14j	  https://github.com/ergo14j  -https://api.github.com/users/ergo14/followersj  :https://api.github.com/users/ergo14/following{/other_user}j  3https://api.github.com/users/ergo14/gists{/gist_id}j  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j  1https://api.github.com/users/ergo14/subscriptionsP     j!  (https://api.github.com/users/ergo14/orgsj#  )https://api.github.com/users/ergo14/reposj%  4https://api.github.com/users/ergo14/events{/privacy}j'  3https://api.github.com/users/ergo14/received_eventsj)  Userj+  uparents]}(j  (deee841088e4d44ed58d1613cb1f3d59d371b716j  ^https://api.github.com/repos/palantir/atlasdb/commits/deee841088e4d44ed58d1613cb1f3d59d371b716j	  Shttps://github.com/palantir/atlasdb/commit/deee841088e4d44ed58d1613cb1f3d59d371b716uastats}(totalK	additionsK	deletionsKufiles]}(j  (5c814c79f7d5453cc794bf2ee8ac2735986be5acfilenamectimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchValueIntegrationTest.javastatusmodifiedjE  KjF  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/a2222930957cd842eb796a6602fde16a6e92b3cf/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a2222930957cd842eb796a6602fde16a6e92b3cf/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.java?ref=a2222930957cd842eb796a6602fde16a6e92b3cfpatchXJ  @@ -75,7 +75,8 @@
 import org.junit.rules.RuleChain;
 import org.junit.rules.TestRule;
 
-@ShouldRetry(numAttempts = 15) // Occasionally there are timeouts when talking to Timelock, which cause a bunch of tests to flake
+// Occasionally there are timeouts when talking to Timelock, which cause a bunch of tests to flake
+@ShouldRetry(numAttempts = 15)
 public final class LockWatchValueIntegrationTest {
     private static final byte[] DATA_1 = "foo".getBytes(StandardCharsets.UTF_8);
     private static final byte[] DATA_2 = "Caecilius est in horto".getBytes(StandardCharsets.UTF_8);uau(bb8939d9a3b63cdb8db20d59ae344ac2e6d959f4}(sha(bb8939d9a3b63cdb8db20d59ae344ac2e6d959f4node_idEC_kwDOAjP5fdoAKGJiODkzOWQ5YTNiNjNjZGI4ZGIyMGQ1OWFlMzQ0YWMyZTZkOTU5ZjQcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-07-24T14:33:36Zu	committer}(jb  GitHubjd  noreply@github.comjf  2023-07-24T14:33:36Zumessage@Excavator:  Upgrade gradle wrapper to the latest version (#6658)tree}(jZ  (db497fc4c65a593ec84914a2bf54968d25e1668aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/db497fc4c65a593ec84914a2bf54968d25e1668aujr  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bb8939d9a3b63cdb8db20d59ae344ac2e6d959f4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkvovACRBK7hj4Ov3rIwAA0J8IAHcnCICsPRzfD0EZMq4T7CQp
DpmCyidYBh9Eiqklv7P6m3IYphJ6xD9INoSm056fh6hTdSOzNzY7gwQ+Wi73RLe6
Px9PjG6l3PVAlWvzScXLAMv850kQcgGjCwWw1LL8PEdEjOBWSYME3wQjT5oVdRZ5
lIV3nkJLHwR6T5s1WhRV330ceZPENzTCuOKhZzKRblUP3Ta7JV8I1n3w1bYCdk7J
Kc12XNRhbS1VZDzse+Bfd7g217VdOo9ispTpjDKvCliI3VguRRItJ/QaEDfX+c+h
5qYcZN1Su/ZRUe5DuhQNzgDrTTWYb1SOeyan5P5txUrV1TcnlmnVb8zeEZO1QN8=
=0H0Y
-----END PGP SIGNATURE-----
payloadX5  tree db497fc4c65a593ec84914a2bf54968d25e1668a
parent 6f0815519abd3518da0b4d2cc561cc07dfab9887
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1690209216 -0700
committer GitHub <noreply@github.com> 1690209216 +0000

Excavator:  Upgrade gradle wrapper to the latest version (#6658)

 uujr  ^https://api.github.com/repos/palantir/atlasdb/commits/bb8939d9a3b63cdb8db20d59ae344ac2e6d959f4html_urlShttps://github.com/palantir/atlasdb/commit/bb8939d9a3b63cdb8db20d59ae344ac2e6d959f4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bb8939d9a3b63cdb8db20d59ae344ac2e6d959f4/commentsj`  }(loginsvc-excavator-botidJj\  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5jr  .https://api.github.com/users/svc-excavator-botj  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminujh  }(j  web-flowj  J/j\  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5jr  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(jZ  (6f0815519abd3518da0b4d2cc561cc07dfab9887jr  ^https://api.github.com/repos/palantir/atlasdb/commits/6f0815519abd3518da0b4d2cc561cc07dfab9887j  Shttps://github.com/palantir/atlasdb/commit/6f0815519abd3518da0b4d2cc561cc07dfab9887uastats}(totalK	additionsK	deletionsKufiles](}(jZ  (afba109285af78dbd2a1d187e33ac4f87c76e392filename!gradle/wrapper/gradle-wrapper.jarstatusmodifiedj  K j  K changesK blob_urlwhttps://github.com/palantir/atlasdb/blob/bb8939d9a3b63cdb8db20d59ae344ac2e6d959f4/gradle%2Fwrapper%2Fgradle-wrapper.jarraw_urlvhttps://github.com/palantir/atlasdb/raw/bb8939d9a3b63cdb8db20d59ae344ac2e6d959f4/gradle%2Fwrapper%2Fgradle-wrapper.jarcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fwrapper%2Fgradle-wrapper.jar?ref=bb8939d9a3b63cdb8db20d59ae344ac2e6d959f4u}(jZ  (4e86b9270786fb25deb2931bfa2e777799ec2a25j  (gradle/wrapper/gradle-wrapper.propertiesjĉ  modifiedj  Kj  KjƉ  Kjǉ  ~https://github.com/palantir/atlasdb/blob/bb8939d9a3b63cdb8db20d59ae344ac2e6d959f4/gradle%2Fwrapper%2Fgradle-wrapper.propertiesjɉ  }https://github.com/palantir/atlasdb/raw/bb8939d9a3b63cdb8db20d59ae344ac2e6d959f4/gradle%2Fwrapper%2Fgradle-wrapper.propertiesjˉ  https://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fwrapper%2Fgradle-wrapper.properties?ref=bb8939d9a3b63cdb8db20d59ae344ac2e6d959f4patchXC  @@ -1,6 +1,6 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip
 networkTimeout=10000
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/distsueu(0cd12b5e875be6f1adc25da6049d811d4ef06710}(sha(0cd12b5e875be6f1adc25da6049d811d4ef06710node_idEC_kwDOAjP5fdoAKDBjZDEyYjVlODc1YmU2ZjFhZGMyNWRhNjA0OWQ4MTFkNGVmMDY3MTAcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-03-21T13:16:20Zu	committer}(j  GitHubj  noreply@github.comj  2023-03-21T13:16:20ZumessagemCreate workflow runner (#6472)

Adds classes which help create stitching up workflows and invariants togethertree}(j؉  (2fc752b7789bc2df8e7476382ef4a6d9afc30911url`https://api.github.com/repos/palantir/atlasdb/git/trees/2fc752b7789bc2df8e7476382ef4a6d9afc30911uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0cd12b5e875be6f1adc25da6049d811d4ef06710
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkGa4kCRBK7hj4Ov3rIwAAL5gIAJOVy5qLSLKtvOlV3KmAeyKj
5hJ/cK0V5CWYDVREd7J10SfRxSPswT/XWONoZsIKWs9zo6aw4Qh3raM/qTaSo666
1l5dhHj92JU9OTEkaXPLKOGvDOldJStMeHwtFfYQRMnezeiveSzrX0Q34TWPvGBV
5QFDj2R254Vuf9MNpPLTrwGysjBbfH7LLJcpsPbE4/hPWmjAILEL4QCEPaNs6j1O
+ndhb/khN/3vkRrPdqnh1vm+TG0E86k0KWNH8hdacqA7e4yTtD+kASeiFR/CWP48
Yx8WS3KgZfgN0UjSH78M4aaXAkc+Lt4ymloD3YWoAa7Z51L584cOooIXxXQjul8=
=YupW
-----END PGP SIGNATURE-----
payloadX@  tree 2fc752b7789bc2df8e7476382ef4a6d9afc30911
parent 6d00cf306c229c718347717ead9bc5f90ba743a3
author Sam-Kramer <sam.c.kramer@gmail.com> 1679404580 +0000
committer GitHub <noreply@github.com> 1679404580 +0000

Create workflow runner (#6472)

Adds classes which help create stitching up workflows and invariants together
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/0cd12b5e875be6f1adc25da6049d811d4ef06710html_urlShttps://github.com/palantir/atlasdb/commit/0cd12b5e875be6f1adc25da6049d811d4ef06710comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0cd12b5e875be6f1adc25da6049d811d4ef06710/commentsjމ  }(login
Sam-KrameridJ^2_ jډ  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/jډ  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j	  h5j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj   uparents]}(j؉  (6d00cf306c229c718347717ead9bc5f90ba743a3j  ^https://api.github.com/repos/palantir/atlasdb/commits/6d00cf306c229c718347717ead9bc5f90ba743a3j  Shttps://github.com/palantir/atlasdb/commit/6d00cf306c229c718347717ead9bc5f90ba743a3uastats}(totalM	additionsM	deletionsK<ufiles](}(j؉  (68e4a118ee1dbb9012da769c64aa3cb5d16096f9filenamedatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowRunner.javastatusmodifiedj:  Kj;  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowRunner.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowRunner.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowRunner.java?ref=0cd12b5e875be6f1adc25da6049d811d4ef06710patchX  @@ -25,6 +25,6 @@
  * The idea of this class is that long-term we will want to have multiple ways to run/execute workflows,
  * rather than biasing towards the present case (just once).
  */
-public interface WorkflowRunner<WorkflowType extends Workflow> {
-    void run(WorkflowType workflow, List<InvariantReporter<?>> invariantReporters);
+public interface WorkflowRunner<WorkflowTypeT extends Workflow> {
+    void run(WorkflowTypeT workflow, List<InvariantReporter<?>> invariantReporters);
 }u}(j؉  (0b023f1d2ff15d80396fa73ae4c1939d24406f3bj@  $atlasdb-workload-server/build.gradlejB  modifiedj:  Kj;  K jD  KjE  xhttps://github.com/palantir/atlasdb/blob/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fbuild.gradlejG  whttps://github.com/palantir/atlasdb/raw/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fbuild.gradlejI  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=0cd12b5e875be6f1adc25da6049d811d4ef06710jK  @@ -1,4 +1,9 @@
 apply from: "../gradle/shared.gradle"
+apply plugin: 'com.palantir.metric-schema'
+
+license {
+    exclude '**/DurableWritesMetrics.java'
+}
 
 dependencies {
     implementation project(':atlasdb-workload-server-api')u}(j؉  (c3b62f1b0954676d2d87c875d1663f0812386f59j@  watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporter.javajB  addedj:  K2j;  K jD  K2jE  https://github.com/palantir/atlasdb/blob/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.javajG  https://github.com/palantir/atlasdb/raw/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.javajI  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.java?ref=0cd12b5e875be6f1adc25da6049d811d4ef06710jK  X  @@ -0,0 +1,50 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.DurableWritesMetrics;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import java.util.Map;
+import java.util.function.Consumer;
+
+public final class DurableWritesMetricInvariantReporter
+        implements InvariantReporter<Map<TableAndWorkloadCell, MismatchedValue>> {
+
+    private final String workflow;
+    private final DurableWritesMetrics durableWritesMetrics;
+
+    public DurableWritesMetricInvariantReporter(String workflow, DurableWritesMetrics durableWritesMetrics) {
+        this.workflow = workflow;
+        this.durableWritesMetrics = durableWritesMetrics;
+    }
+
+    @Override
+    public Invariant<Map<TableAndWorkloadCell, MismatchedValue>> invariant() {
+        return DurableWritesInvariant.INSTANCE;
+    }
+
+    @Override
+    public Consumer<Map<TableAndWorkloadCell, MismatchedValue>> consumer() {
+        return mismatchingValues ->
+                mismatchingValues.forEach((tableAndWorkloadCell, _mismatchedValue) -> durableWritesMetrics
+                        .numberOfViolations()
+                        .workflow(workflow)
+                        .table(tableAndWorkloadCell.tableName())
+                        .build()
+                        .inc());
+    }
+}u}(j؉  (945bd51a9e1af43213942c8be181025324041dd8j@  matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javajB  addedj:  Kj;  K jD  KjE  https://github.com/palantir/atlasdb/blob/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javajG  https://github.com/palantir/atlasdb/raw/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javajI  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=0cd12b5e875be6f1adc25da6049d811d4ef06710jK  Xu  @@ -0,0 +1,147 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.Sets;
+import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.config.AtlasDbRuntimeConfig;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.Namespace;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.util.MetricsManager;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.conjure.java.api.config.service.UserAgent;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.refreshable.Refreshable;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import one.util.streamex.EntryStream;
+import one.util.streamex.StreamEx;
+
+public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory {
+
+    private final TransactionManager transactionManager;
+    private final Optional<Namespace> maybeNamespace;
+
+    public AtlasDbTransactionStoreFactory(TransactionManager transactionManager, Optional<String> maybeNamespace) {
+        this.transactionManager = transactionManager;
+        this.maybeNamespace = maybeNamespace.map(Namespace::create);
+    }
+
+    @Override
+    public TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
+        return AtlasDbTransactionStore.create(transactionManager, toAtlasTables(tables, indexes));
+    }
+
+    @VisibleForTesting
+    Map<TableReference, byte[]> toAtlasTables(Map<String, IsolationLevel> tables, Set<IndexTable> indexTables) {
+        checkIndexesReferenceExistingPrimaryTable(tables, indexTables);
+        checkIndexAndPrimaryTableNamesDoNotConflict(tables, indexTables);
+        checkIndexesDoNotHaveDuplicateNames(indexTables);
+
+        Map<TableReference, ConflictHandler> atlasPrimaryTables = EntryStream.of(tables)
+                .mapKeys(this::createTableReference)
+                .mapValues(AtlasDbUtils::toConflictHandler)
+                .toMap();
+        Map<TableReference, ConflictHandler> atlasIndexTables = StreamEx.of(indexTables)
+                .mapToEntry(IndexTable::indexTableName, IndexTable::primaryTableName)
+                .mapKeys(this::createTableReference)
+                .mapValues(tables::get)
+                .mapValues(AtlasDbUtils::toConflictHandler)
+                .mapValues(AtlasDbUtils::toIndexConflictHandler)
+                .toMap();
+        return EntryStream.of(atlasPrimaryTables)
+                .append(atlasIndexTables)
+                .mapValues(AtlasDbUtils::tableMetadata)
+                .toMap();
+    }
+
+    @VisibleForTesting
+    TableReference createTableReference(String tableName) {
+        return maybeNamespace
+                .map(namespace -> TableReference.create(namespace, tableName))
+                .orElseGet(() -> TableReference.createWithEmptyNamespace(tableName));
+    }
+
+    private static void checkIndexesDoNotHaveDuplicateNames(Set<IndexTable> indexTables) {
+        Map<String, Long> countOfIndexNames = indexTables.stream()
+                .map(IndexTable::indexTableName)
+                .map(String::toLowerCase)
+                .collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
+        Set<String> duplicateTableIndexNames = EntryStream.of(countOfIndexNames)
+                .removeValues(value -> value <= 1)
+                .keys()
+                .toSet();
+
+        Preconditions.checkArgument(
+                duplicateTableIndexNames.isEmpty(),
+                "Found index tables with the same name",
+                SafeArg.of("duplicateTableIndexNames", duplicateTableIndexNames));
+    }
+
+    private static void checkIndexAndPrimaryTableNamesDoNotConflict(
+            Map<String, IsolationLevel> tables, Set<IndexTable> indexTables) {
+        Set<String> primaryTableNames =
+                tables.keySet().stream().map(String::toLowerCase).collect(Collectors.toSet());
+        Set<String> indexTableNames = indexTables.stream()
+                .map(IndexTable::indexTableName)
+                .map(String::toLowerCase)
+                .collect(Collectors.toSet());
+        Set<String> conflictingTableNames = Sets.intersection(primaryTableNames, indexTableNames);
+        Preconditions.checkArgument(
+                conflictingTableNames.isEmpty(),
+                "Found indexes which have the same name as primary tables",
+                SafeArg.of("conflictingTableNames", conflictingTableNames));
+    }
+
+    private static void checkIndexesReferenceExistingPrimaryTable(
+            Map<String, IsolationLevel> tables, Set<IndexTable> indexTables) {
+        Set<IndexTable> indexesWithUnknownPrimaryTables = StreamEx.of(indexTables)
+                .remove(indexTable -> tables.containsKey(indexTable.primaryTableName()))
+                .toSet();
+
+        Preconditions.checkArgument(
+                indexesWithUnknownPrimaryTables.isEmpty(),
+                "Found indexes which reference an unknown primary table",
+                SafeArg.of("indexesWithUnknownPrimaryTables", indexesWithUnknownPrimaryTables));
+    }
+
+    public static AtlasDbTransactionStoreFactory createFromConfig(
+            AtlasDbConfig installConfig,
+            Refreshable<Optional<AtlasDbRuntimeConfig>> atlasDbRuntimeConfig,
+            UserAgent userAgent,
+            MetricsManager metricsManager) {
+        TransactionManager transactionManager = TransactionManagers.builder()
+                .config(installConfig)
+                .userAgent(userAgent)
+                .globalMetricsRegistry(metricsManager.getRegistry())
+                .globalTaggedMetricRegistry(metricsManager.getTaggedRegistry())
+                .runtimeConfigSupplier(atlasDbRuntimeConfig)
+                .build()
+                .serializable();
+
+        return new AtlasDbTransactionStoreFactory(
+                transactionManager, installConfig.namespace().or(installConfig.keyValueService()::namespace));
+    }
+}u}(j؉  (3346534c0f8b833d132668a0d60c525f4cc3b7fbj@  Zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/AtlasDbUtils.javajB  modifiedj:  Kj;  KjD  K&jE  https://github.com/palantir/atlasdb/blob/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javajG  https://github.com/palantir/atlasdb/raw/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javajI  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.java?ref=0cd12b5e875be6f1adc25da6049d811d4ef06710jK  X
  @@ -27,12 +27,29 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 
 public final class AtlasDbUtils {
 
     private AtlasDbUtils() {}
 
+    public static ConflictHandler toConflictHandler(IsolationLevel isolationLevel) {
+        switch (isolationLevel) {
+            case NONE:
+                return ConflictHandler.IGNORE_ALL;
+            case SNAPSHOT:
+                return ConflictHandler.RETRY_ON_WRITE_WRITE;
+            case SERIALIZABLE:
+                return ConflictHandler.SERIALIZABLE;
+            default:
+                throw new SafeIllegalArgumentException(
+                        "Cannot convert isolation level into a AtlasDb conflict handler due to unknown isolation"
+                                + " level.",
+                        SafeArg.of("isolationLevel", isolationLevel.name()));
+        }
+    }
+
     public static Cell toAtlasCell(WorkloadCell cell) {
         return Cell.create(Ints.toByteArray(cell.key()), Ints.toByteArray(cell.column()));
     }
@@ -67,22 +84,13 @@ public static byte[] tableMetadata(IsolationLevel isolationLevel) {
         }
     }
 
-    public static byte[] indexMetadata(ConflictHandler baseTableConflictHandler) {
-        ConflictHandler conflictHandler = baseTableConflictHandler.checkReadWriteConflicts()
+    public static ConflictHandler toIndexConflictHandler(ConflictHandler baseTableConflictHandler) {
+        return baseTableConflictHandler.checkReadWriteConflicts()
                 ? ConflictHandler.SERIALIZABLE_INDEX
                 : ConflictHandler.IGNORE_ALL;
-        return new TableMetadata.Builder()
-                .rowMetadata(new NameMetadataDescription())
-                .columns(new ColumnMetadataDescription())
-                .conflictHandler(conflictHandler)
-                .cachePriority(TableMetadataPersistence.CachePriority.WARM)
-                .rangeScanAllowed(true)
-                .explicitCompressionBlockSizeKB(AtlasDbConstants.DEFAULT_TABLE_COMPRESSION_BLOCK_SIZE_KB)
-                .negativeLookups(true)
-                .sweepStrategy(TableMetadataPersistence.SweepStrategy.THOROUGH)
-                .appendHeavyAndReadLight(false)
-                .nameLogSafety(TableMetadataPersistence.LogSafety.SAFE)
-                .build()
-                .persistToBytes();
+    }
+
+    public static byte[] indexMetadata(ConflictHandler baseTableConflictHandler) {
+        return tableMetadata(toIndexConflictHandler(baseTableConflictHandler));
     }
 }u}(j؉  (c48fdacd4f6f2f9005df823d2caca2b9b55acdbaj@  gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RunOnceWorkflowRunner.javajB  addedj:  K(j;  K jD  K(jE  https://github.com/palantir/atlasdb/blob/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRunOnceWorkflowRunner.javajG  https://github.com/palantir/atlasdb/raw/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRunOnceWorkflowRunner.javajI  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRunOnceWorkflowRunner.java?ref=0cd12b5e875be6f1adc25da6049d811d4ef06710jK  X
  @@ -0,0 +1,40 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+
+public enum RunOnceWorkflowRunner implements WorkflowRunner<Workflow> {
+    INSTANCE;
+
+    private static final SafeLogger log = SafeLoggerFactory.get(RunOnceWorkflowRunner.class);
+
+    @Override
+    public void run(Workflow workflow, List<InvariantReporter<?>> invariants) {
+        WorkflowHistory workflowHistory = workflow.run();
+        invariants.forEach(reporter -> {
+            try {
+                reporter.report(workflowHistory);
+            } catch (RuntimeException e) {
+                log.error("Caught an exception when running and reporting an invariant.", e);
+            }
+        });
+    }
+}u}(j؉  (54dd470d5e4868599f8d83ecf582c00fc31591dcj@  =atlasdb-workload-server/src/main/metrics/workload-metrics.ymljB  addedj:  Kj;  K jD  KjE  https://github.com/palantir/atlasdb/blob/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Fmain%2Fmetrics%2Fworkload-metrics.ymljG  https://github.com/palantir/atlasdb/raw/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Fmain%2Fmetrics%2Fworkload-metrics.ymljI  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fmetrics%2Fworkload-metrics.yml?ref=0cd12b5e875be6f1adc25da6049d811d4ef06710jK  X4  @@ -0,0 +1,16 @@
+options:
+  javaPackage: 'com.palantir.atlasdb.workload'
+
+namespaces:
+  com.palantir.atlasdb.workload.invariant:
+    shortName: DurableWrites
+    docs: Metrics for the durable writes invariant.
+    metrics:
+      numberOfViolations:
+        type: counter
+        tags:
+          - workflow
+          - table
+        docs: >-
+          Number of cells that have a mismatching value from what we expect and what is actually there.
+          This includes cells which have been deleted and have re-appeared.
\ No newline at end of fileu}(j؉  (d23431ac2f81324533af6cc3914b2abc3a0b2e69j@  matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantTest.javajB  modifiedj:  K
j;  K
jD  KjE  https://github.com/palantir/atlasdb/blob/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javajG  https://github.com/palantir/atlasdb/raw/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javajI  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.java?ref=0cd12b5e875be6f1adc25da6049d811d4ef06710jK  X  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
-import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
@@ -60,12 +60,12 @@ public void cellsExpectedToBeDeletedAreFound() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
                 ImmutableWitnessedTransaction.builder()
-                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
                 ImmutableWitnessedTransaction.builder()
-                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO))
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .build());
@@ -74,11 +74,11 @@ public void cellsExpectedToBeDeletedAreFound() {
                 .transactionStore(store)
                 .build();
 
-        store.readWrite(List.of(WriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_ONE)));
+        store.readWrite(List.of(WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE)));
         DurableWritesInvariant.INSTANCE.accept(history, mismatchingCells::set);
         assertThat(mismatchingCells.get())
                 .containsExactlyInAnyOrderEntriesOf(Map.of(
-                        TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_TWO),
+                        TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO),
                         MismatchedValue.of(Optional.of(VALUE_ONE), Optional.empty())));
     }
 
@@ -87,12 +87,12 @@ public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
                 ImmutableWitnessedTransaction.builder()
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
                 ImmutableWitnessedTransaction.builder()
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_TWO))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .build());
@@ -102,12 +102,12 @@ public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
                 .build();
 
         store.readWrite(List.of(
-                WriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE),
-                WriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_ONE)));
+                WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
+                WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE)));
         DurableWritesInvariant.INSTANCE.accept(history, mismatchingCells::set);
         assertThat(mismatchingCells.get())
                 .containsExactlyInAnyOrderEntriesOf(Map.of(
-                        TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_TWO),
+                        TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO),
                         MismatchedValue.of(Optional.of(VALUE_ONE), Optional.of(VALUE_TWO))));
     }
 }u}(j؉  (51f41ef65396c2c3af8a2123ae8817095f01bbc9j@  {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporterTest.javajB  addedj:  K\j;  K jD  K\jE  https://github.com/palantir/atlasdb/blob/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporterTest.javajG  https://github.com/palantir/atlasdb/raw/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporterTest.javajI  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporterTest.java?ref=0cd12b5e875be6f1adc25da6049d811d4ef06710jK  X  @@ -0,0 +1,92 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.workload.DurableWritesMetrics;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.store.IndexTable;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
+import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import org.junit.Test;
+
+public final class DurableWritesMetricInvariantReporterTest {
+
+    private final TaggedMetricRegistry taggedMetricRegistry = new DefaultTaggedMetricRegistry();
+    private final DurableWritesMetrics metrics = DurableWritesMetrics.of(taggedMetricRegistry);
+
+    @Test
+    public void runIncreasesMetricsIfViolationsFound() {
+        DurableWritesMetricInvariantReporter reporter =
+                new DurableWritesMetricInvariantReporter(WorkloadTestHelpers.WORKFLOW, metrics);
+        AtlasDbTransactionStoreFactory factory = new AtlasDbTransactionStoreFactory(
+                TransactionManagers.createInMemory(Set.of()), Optional.of("keyspace"));
+        TransactionStore store = factory.create(
+                Map.of(
+                        WorkloadTestHelpers.TABLE_1,
+                        IsolationLevel.SERIALIZABLE,
+                        WorkloadTestHelpers.TABLE_2,
+                        IsolationLevel.SERIALIZABLE),
+                Set.of(IndexTable.builder()
+                        .indexTableName(WorkloadTestHelpers.TABLE_1_INDEX_1)
+                        .primaryTableName(WorkloadTestHelpers.TABLE_1)
+                        .build()));
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .transactionStore(store)
+                .history(List.of(ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .addActions(WitnessedWriteTransactionAction.of(
+                                WorkloadTestHelpers.TABLE_1,
+                                WorkloadTestHelpers.WORKLOAD_CELL_ONE,
+                                WorkloadTestHelpers.VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(
+                                WorkloadTestHelpers.TABLE_2,
+                                WorkloadTestHelpers.WORKLOAD_CELL_ONE,
+                                WorkloadTestHelpers.VALUE_ONE))
+                        .build()))
+                .build();
+        reporter.report(workflowHistory);
+        assertThat(getViolationCount(WorkloadTestHelpers.WORKFLOW, WorkloadTestHelpers.TABLE_1))
+                .isEqualTo(1);
+        assertThat(getViolationCount(WorkloadTestHelpers.WORKFLOW, WorkloadTestHelpers.TABLE_2))
+                .isEqualTo(1);
+        assertThat(getViolationCount(WorkloadTestHelpers.WORKFLOW, WorkloadTestHelpers.TABLE_1_INDEX_1))
+                .isEqualTo(0);
+    }
+
+    private long getViolationCount(String workflow, String table) {
+        return metrics.numberOfViolations()
+                .workflow(workflow)
+                .table(table)
+                .build()
+                .getCount();
+    }
+}u}(j؉  (8e1683d6cb1dd253a8b3fa9f8cf0783d3e779d76j@  iatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/server/RunOnceWorkflowRunnerTest.javajB  addedj:  K*j;  K jD  K*jE  https://github.com/palantir/atlasdb/blob/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.javajG  https://github.com/palantir/atlasdb/raw/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.javajI  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.java?ref=0cd12b5e875be6f1adc25da6049d811d4ef06710jK  X=  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.server;
+
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.times;
+import static org.mockito.Mockito.verify;
+
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.workflow.RunOnceWorkflowRunner;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import java.util.List;
+import org.junit.Test;
+
+public class RunOnceWorkflowRunnerTest {
+    @Test
+    public void runExecutesWorkflowsAndInvokesInvariantReporter() {
+        Workflow exampleWorkflow = mock(Workflow.class);
+        InvariantReporter<Void> exampleInvariantReporterOne = mock(InvariantReporter.class);
+        InvariantReporter<Void> exampleInvariantReporterTwo = mock(InvariantReporter.class);
+        RunOnceWorkflowRunner.INSTANCE.run(
+                exampleWorkflow, List.of(exampleInvariantReporterOne, exampleInvariantReporterTwo));
+        verify(exampleWorkflow, times(1)).run();
+        verify(exampleInvariantReporterOne, times(1)).report(any());
+        verify(exampleInvariantReporterTwo, times(1)).report(any());
+    }
+}u}(j؉  (fa2b7e0a76d3a58878ebde01fd053f11ba48b28cj@  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactoryTest.javajB  addedj:  Kj;  K jD  KjE  https://github.com/palantir/atlasdb/blob/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactoryTest.javajG  https://github.com/palantir/atlasdb/raw/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactoryTest.javajI  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactoryTest.java?ref=0cd12b5e875be6f1adc25da6049d811d4ef06710jK  X@#  @@ -0,0 +1,164 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.logsafe.SafeArg;
+import java.util.Locale;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import org.junit.Test;
+
+public final class AtlasDbTransactionStoreFactoryTest {
+
+    private final TransactionManager transactionManager = TransactionManagers.createInMemory(Set.of());
+    private final AtlasDbTransactionStoreFactory defaultFactory =
+            new AtlasDbTransactionStoreFactory(transactionManager, Optional.empty());
+
+    @Test
+    public void createWillCreateProvidedTablesAndIndexes() {
+        AtlasDbTransactionStoreFactory factory = new AtlasDbTransactionStoreFactory(
+                transactionManager,
+                Optional.of(WorkloadTestHelpers.TABLE_REFERENCE.getNamespace().getName()));
+        factory.create(
+                Map.of(WorkloadTestHelpers.TABLE_1, IsolationLevel.SERIALIZABLE),
+                Set.of(createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_1)));
+        assertThat(transactionManager.getKeyValueService().getAllTableNames())
+                .contains(WorkloadTestHelpers.TABLE_REFERENCE, WorkloadTestHelpers.INDEX_REFERENCE);
+    }
+
+    @Test
+    public void createTableReferenceWithEmptyNamespaceIfNoNamespaceProvided() {
+        assertThat(defaultFactory
+                        .createTableReference(WorkloadTestHelpers.TABLE_1)
+                        .getNamespace()
+                        .isEmptyNamespace())
+                .isTrue();
+    }
+
+    @Test
+    public void createTableReferenceHasNamespaceWhenProvided() {
+        AtlasDbTransactionStoreFactory factory = new AtlasDbTransactionStoreFactory(
+                transactionManager, Optional.of(WorkloadTestHelpers.NAMESPACE.getName()));
+        assertThat(factory.createTableReference(WorkloadTestHelpers.TABLE_1).getNamespace())
+                .isEqualTo(WorkloadTestHelpers.NAMESPACE);
+    }
+
+    @Test
+    public void toAtlasTablesConvertsSerializableTablesCorrectly() {
+        assertThat(defaultFactory.toAtlasTables(
+                        Map.of(WorkloadTestHelpers.TABLE_1, IsolationLevel.SERIALIZABLE), Set.of()))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1),
+                        AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
+    }
+
+    @Test
+    public void toAtlasTablesConvertsSerializableIndexTablesCorrectly() {
+        assertThat(defaultFactory.toAtlasTables(
+                        Map.of(WorkloadTestHelpers.TABLE_1, IsolationLevel.SERIALIZABLE),
+                        Set.of(createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_1))))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1),
+                        AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1_INDEX_1),
+                        AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE)));
+    }
+
+    @Test
+    public void toAtlasTablesHandlesMultipleTablesAndIndexesCorrectly() {
+        assertThat(defaultFactory.toAtlasTables(
+                        Map.of(
+                                WorkloadTestHelpers.TABLE_1,
+                                IsolationLevel.SERIALIZABLE,
+                                WorkloadTestHelpers.TABLE_2,
+                                IsolationLevel.SNAPSHOT),
+                        Set.of(
+                                createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_1),
+                                createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_2, WorkloadTestHelpers.TABLE_1),
+                                createIndexTable(WorkloadTestHelpers.TABLE_2_INDEX_1, WorkloadTestHelpers.TABLE_2))))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1),
+                        AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1_INDEX_1),
+                        AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1_INDEX_2),
+                        AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_2),
+                        AtlasDbUtils.tableMetadata(ConflictHandler.RETRY_ON_WRITE_WRITE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_2_INDEX_1),
+                        AtlasDbUtils.tableMetadata(ConflictHandler.IGNORE_ALL)));
+    }
+
+    @Test
+    public void throwsWhenIndexReferencesUnknownPrimaryTable() {
+        IndexTable goodIndexTable = createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_2, WorkloadTestHelpers.TABLE_1);
+        IndexTable badIndexTable = createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, "blah");
+        assertThatLoggableExceptionThrownBy(() -> defaultFactory.create(
+                        Map.of(WorkloadTestHelpers.TABLE_1, IsolationLevel.SERIALIZABLE),
+                        Set.of(goodIndexTable, badIndexTable)))
+                .hasMessageContaining("Found indexes which reference an unknown primary table")
+                .hasExactlyArgs(SafeArg.of("indexesWithUnknownPrimaryTables", Set.of(badIndexTable)));
+    }
+
+    @Test
+    public void throwsWhenPrimaryAndIndexTableHaveConflictingNames() {
+        assertThatLoggableExceptionThrownBy(() -> defaultFactory.create(
+                        Map.of(
+                                WorkloadTestHelpers.TABLE_1,
+                                IsolationLevel.SERIALIZABLE,
+                                WorkloadTestHelpers.TABLE_1_INDEX_1,
+                                IsolationLevel.SERIALIZABLE),
+                        Set.of(createIndexTable(
+                                WorkloadTestHelpers.TABLE_1.toUpperCase(Locale.ROOT),
+                                WorkloadTestHelpers.TABLE_1_INDEX_1))))
+                .hasMessageContaining("Found indexes which have the same name as primary tables")
+                .hasExactlyArgs(SafeArg.of("conflictingTableNames", Set.of(WorkloadTestHelpers.TABLE_1)));
+    }
+
+    @Test
+    public void throwsWhenIndexTablesHaveDuplicateNames() {
+        assertThatLoggableExceptionThrownBy(() -> defaultFactory.create(
+                        Map.of(
+                                WorkloadTestHelpers.TABLE_1,
+                                IsolationLevel.SERIALIZABLE,
+                                WorkloadTestHelpers.TABLE_2,
+                                IsolationLevel.SERIALIZABLE),
+                        Set.of(
+                                createIndexTable(
+                                        WorkloadTestHelpers.TABLE_1_INDEX_1.toUpperCase(Locale.ROOT),
+                                        WorkloadTestHelpers.TABLE_1),
+                                createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_2))))
+                .hasMessageContaining("Found index tables with the same name")
+                .hasExactlyArgs(SafeArg.of("duplicateTableIndexNames", Set.of(WorkloadTestHelpers.TABLE_1_INDEX_1)));
+    }
+
+    private IndexTable createIndexTable(String indexTableName, String primaryTableName) {
+        return IndexTable.builder()
+                .indexTableName(indexTableName)
+                .primaryTableName(primaryTableName)
+                .build();
+    }
+}u}(j؉  (3ebff159b66faf4e21287665a710c5af8e995ae5j@  jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javajB  modifiedj:  Kj;  KjD  K"jE  https://github.com/palantir/atlasdb/blob/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajG  https://github.com/palantir/atlasdb/raw/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajI  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=0cd12b5e875be6f1adc25da6049d811d4ef06710jK  X  @@ -17,8 +17,8 @@
 package com.palantir.atlasdb.workload.store;
 
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.INDEX_REFERENCE;
-import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.INDEX_TABLE;
-import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1_INDEX_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
@@ -79,23 +79,23 @@ public void createsTables() {
     @Test
     public void canWriteDataToStore() {
         Optional<WitnessedTransaction> witnessedTransactionPrimaryTable =
-                store.readWrite(List.of(WriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE)));
+                store.readWrite(List.of(WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE)));
         Optional<WitnessedTransaction> witnessedTransactionIndexTable =
-                store.readWrite(List.of(WriteTransactionAction.of(INDEX_TABLE, WORKLOAD_CELL_TWO, VALUE_ONE)));
+                store.readWrite(List.of(WriteTransactionAction.of(TABLE_1_INDEX_1, WORKLOAD_CELL_TWO, VALUE_ONE)));
         assertThat(witnessedTransactionPrimaryTable).isPresent();
         assertThat(witnessedTransactionIndexTable).isPresent();
-        assertThat(store.get(TABLE, WORKLOAD_CELL_ONE)).contains(VALUE_ONE);
-        assertThat(store.get(INDEX_TABLE, WORKLOAD_CELL_TWO)).contains(VALUE_ONE);
+        assertThat(store.get(TABLE_1, WORKLOAD_CELL_ONE)).contains(VALUE_ONE);
+        assertThat(store.get(TABLE_1_INDEX_1, WORKLOAD_CELL_TWO)).contains(VALUE_ONE);
     }
 
     @Test
     public void witnessedTransactionMaintainsOrder() {
         List<WitnessedTransactionAction> actions = List.of(
-                WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, 100),
-                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, Optional.of(100)),
-                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL_THREE, Optional.empty()),
-                WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, 24),
-                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, Optional.of(24)));
+                WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, 100),
+                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, Optional.of(100)),
+                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_THREE, Optional.empty()),
+                WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, 24),
+                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(24)));
         Optional<WitnessedTransaction> maybeTransaction = store.readWrite(actions.stream()
                 .map(action -> action.accept(WitnessToActionVisitor.INSTANCE))
                 .collect(Collectors.toList()));
@@ -107,16 +107,16 @@ public void witnessedTransactionMaintainsOrder() {
 
     @Test
     public void readWriteHandlesAllTransactionTypes() {
-        store.readWrite(List.of(WriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE)));
-        assertThat(store.readWrite(List.of(ReadTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))))
+        store.readWrite(List.of(WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE)));
+        assertThat(store.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isPresent()
                 .map(WitnessedTransaction::actions)
                 .map(Iterables::getOnlyElement)
                 .map(WitnessedReadTransactionAction.class::cast)
                 .map(WitnessedReadTransactionAction::value)
                 .contains(Optional.of(VALUE_ONE));
-        store.readWrite(List.of(DeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE)));
-        assertThat(store.get(TABLE, WORKLOAD_CELL_ONE)).isEmpty();
+        store.readWrite(List.of(DeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
+        assertThat(store.get(TABLE_1, WORKLOAD_CELL_ONE)).isEmpty();
     }
 
     @Test
@@ -134,14 +134,14 @@ public void readWriteReturnsEmptyWhenExceptionThrown() {
         when(transactionManager.runTaskWithRetry(any())).thenThrow(new RuntimeException());
         AtlasDbTransactionStore transactionStore = AtlasDbTransactionStore.create(
                 transactionManager, Map.of(TABLE_REFERENCE, AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
-        assertThat(transactionStore.readWrite(List.of(ReadTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))))
+        assertThat(transactionStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isEmpty();
     }
 
     @Test
     public void readWriteHandlesReadOnlyTransaction() {
         Optional<WitnessedTransaction> witnessedTransaction =
-                store.readWrite(List.of(ReadTransactionAction.of(TABLE, WORKLOAD_CELL_ONE)));
+                store.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
         assertThat(witnessedTransaction).isPresent();
         assertThat(witnessedTransaction.get().commitTimestamp()).isEmpty();
     }u}(j؉  (304e65e341fff032a9ecbda7327c1b4af412990ej@  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javajB  modifiedj:  K	j;  K	jD  KjE  https://github.com/palantir/atlasdb/blob/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javajG  https://github.com/palantir/atlasdb/raw/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javajI  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=0cd12b5e875be6f1adc25da6049d811d4ef06710jK  X  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_ONE;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_TWO;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
@@ -42,12 +42,12 @@ public void writeActionsPersistValues() {
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_TWO))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
                         .build()));
         assertThat(store.values().toJavaMap())
                 .containsExactlyInAnyOrderEntriesOf(Map.of(
@@ -63,13 +63,13 @@ public void deleteActionsPutsEmptyOptionalForCell() {
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE))
                         .build(),
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
-                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .build()));
         assertThat(store.values().toJavaMap())
                 .containsExactlyInAnyOrderEntriesOf(Map.of(
@@ -82,17 +82,17 @@ public void writesDeletesAreProcessedInOrder() {
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
-                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .build(),
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(5)
                         .commitTimestamp(6)
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_TWO))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_TWO))
                         .build()));
         assertThat(store.values().toJavaMap())
                 .containsExactlyInAnyOrderEntriesOf(Map.of(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_TWO)));u     }(j؉  (955d7f7215e9fbbffa22ce353aa014fca3e1849cj@  hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javajB  modifiedj:  Kj;  KjD  KjE  https://github.com/palantir/atlasdb/blob/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javajG  https://github.com/palantir/atlasdb/raw/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javajI  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=0cd12b5e875be6f1adc25da6049d811d4ef06710jK  X  @@ -23,19 +23,27 @@
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 
 public final class WorkloadTestHelpers {
-    public static final String TABLE = "foo";
-    public static final String INDEX_TABLE = TABLE + "_index";
-    public static final TableReference TABLE_REFERENCE = TableReference.create(Namespace.DEFAULT_NAMESPACE, TABLE);
+    public static final String TABLE_1 = "foo";
+
+    public static final String TABLE_2 = "bar";
+    public static final String TABLE_1_INDEX_1 = TABLE_1 + "_index";
+
+    public static final String TABLE_1_INDEX_2 = TABLE_1 + "_index_2";
+    public static final String TABLE_2_INDEX_1 = TABLE_2 + "_index";
+    public static final TableReference TABLE_REFERENCE = TableReference.create(Namespace.DEFAULT_NAMESPACE, TABLE_1);
     public static final TableReference INDEX_REFERENCE =
-            TableReference.create(TABLE_REFERENCE.getNamespace(), INDEX_TABLE);
+            TableReference.create(TABLE_REFERENCE.getNamespace(), TABLE_1_INDEX_1);
+
+    public static final Namespace NAMESPACE = Namespace.create("workload");
     public static final WorkloadCell WORKLOAD_CELL_ONE = ImmutableWorkloadCell.of(50, 10);
     public static final WorkloadCell WORKLOAD_CELL_TWO = ImmutableWorkloadCell.of(1257, 521);
     public static final WorkloadCell WORKLOAD_CELL_THREE =
             ImmutableWorkloadCell.builder().key(567).column(405234).build();
     public static final Integer VALUE_ONE = 541;
     public static final Integer VALUE_TWO = 334;
     public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_ONE =
-            TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_ONE);
+            TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_ONE);
     public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
-            TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_TWO);
+            TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO);
+    public static final String WORKFLOW = "example-workflow";
 }u}(j؉  (c09467b6d6f4e762d6c4c365ffa0ba54a464e80ej@  ^atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/util/AtlasDbUtilsTest.javajB  modifiedj:  K	j;  K jD  K	jE  https://github.com/palantir/atlasdb/blob/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtilsTest.javajG  https://github.com/palantir/atlasdb/raw/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtilsTest.javajI  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtilsTest.java?ref=0cd12b5e875be6f1adc25da6049d811d4ef06710jK  X  @@ -21,6 +21,7 @@
 import com.google.protobuf.InvalidProtocolBufferException;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
 import org.junit.Test;
 
 public class AtlasDbUtilsTest {
@@ -43,4 +44,12 @@ public void indexMetadataUsesTheCorrectConflictHandler() throws InvalidProtocolB
                         .getConflictHandler())
                 .isEqualTo(TableMetadataPersistence.TableConflictHandler.IGNORE_ALL);
     }
+
+    @Test
+    public void toConflictHandlerHandlesAllIsolationLevelCases() {
+        assertThat(AtlasDbUtils.toConflictHandler(IsolationLevel.NONE)).isEqualTo(ConflictHandler.IGNORE_ALL);
+        assertThat(AtlasDbUtils.toConflictHandler(IsolationLevel.SNAPSHOT))
+                .isEqualTo(ConflictHandler.RETRY_ON_WRITE_WRITE);
+        assertThat(AtlasDbUtils.toConflictHandler(IsolationLevel.SERIALIZABLE)).isEqualTo(ConflictHandler.SERIALIZABLE);
+    }
 }u}(j؉  (9f49c914b405f0e6c73f59a556f42bf3df6f83c6j@  |atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfigurationTest.javajB  modifiedj:  Kj;  KjD  KjE  https://github.com/palantir/atlasdb/blob/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfigurationTest.javajG  https://github.com/palantir/atlasdb/raw/0cd12b5e875be6f1adc25da6049d811d4ef06710/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfigurationTest.javajI  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfigurationTest.java?ref=0cd12b5e875be6f1adc25da6049d811d4ef06710jK  X  @@ -28,7 +28,7 @@
 
 public class SingleRowTwoCellsWorkflowConfigurationTest {
     private static final TableConfiguration TABLE_CONFIGURATION = ImmutableTableConfiguration.builder()
-            .tableName(WorkloadTestHelpers.TABLE)
+            .tableName(WorkloadTestHelpers.TABLE_1)
             .isolationLevel(IsolationLevel.SERIALIZABLE)
             .build();
     private static final ObjectMapper OBJECT_MAPPER = ObjectMappers.newServerObjectMapper();ueu(037dd3c00910e8d68932e9274aa79dab0dce86ba}(sha(037dd3c00910e8d68932e9274aa79dab0dce86banode_idEC_kwDOAjP5fdoAKDAzN2RkM2MwMDkxMGU4ZDY4OTMyZTkyNzRhYTc5ZGFiMGRjZTg2YmEcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-04-04T14:18:44Zu	committer}(jϊ  GitHubjъ  noreply@github.comjӊ  2023-04-04T14:18:44Zumessage4Excavator:  Upgrade buildscript dependencies (#6487)tree}(jǊ  (baaa0e37590516767d393d0dfa96f9931de8c5a2url`https://api.github.com/repos/palantir/atlasdb/git/trees/baaa0e37590516767d393d0dfa96f9931de8c5a2ujߊ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/037dd3c00910e8d68932e9274aa79dab0dce86ba
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkLDHECRBK7hj4Ov3rIwAAIloIAJl9hFFgIubmql2kRnfUU/iW
kzsReUYNKkXX9Mv48h6/nva9fVfXYvRcmNIV35v6wS3my9tzdSa0HbBEVCYFbH1J
3sENp/BRghOtUDo08vmwe9H3kLIIXXqMOwT7UwJ+/4GZUj2dMetWUpc6EdGQaJLi
T3DtLafhM40f+XoHwXrwwEQbZSWQ5omV4ThTku9Oy6fMJiyyRSFviCva0EAqNayc
Li2gqiSMLtLW37v6NigUup6G1rrf/sPceleAXOKKoq8qu0QcN2Olrjf+72hnPZ8Z
mIr8uB0W/aRXveyS1kGquf+Un7gVHf1uGunmoMVECOqBw1cZQ1ucrSoPAsaSa+o=
=5m7x
-----END PGP SIGNATURE-----
payloadX)  tree baaa0e37590516767d393d0dfa96f9931de8c5a2
parent a26cd5e822c26e4765ac43dc236f3dfcd559ed36
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1680617924 +0100
committer GitHub <noreply@github.com> 1680617924 +0000

Excavator:  Upgrade buildscript dependencies (#6487)

 uujߊ  ^https://api.github.com/repos/palantir/atlasdb/commits/037dd3c00910e8d68932e9274aa79dab0dce86bahtml_urlShttps://github.com/palantir/atlasdb/commit/037dd3c00910e8d68932e9274aa79dab0dce86bacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/037dd3c00910e8d68932e9274aa79dab0dce86ba/commentsj͊  }(loginsvc-excavator-botidJjɊ  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5jߊ  .https://api.github.com/users/svc-excavator-botj  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminujՊ  }(j  web-flowj  J/jɊ  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5jߊ  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj	  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj
  Userj  uparents]}(jǊ  (a26cd5e822c26e4765ac43dc236f3dfcd559ed36jߊ  ^https://api.github.com/repos/palantir/atlasdb/commits/a26cd5e822c26e4765ac43dc236f3dfcd559ed36j  Shttps://github.com/palantir/atlasdb/commit/a26cd5e822c26e4765ac43dc236f3dfcd559ed36uastats}(totalK	additionsK	deletionsKufiles]}(jǊ  (ef0d73d69ab34f4fca46440223eb0e3c2aad0d01filenamebuild.gradlestatusmodifiedj)  Kj*  KchangesKblob_url^https://github.com/palantir/atlasdb/blob/037dd3c00910e8d68932e9274aa79dab0dce86ba/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/037dd3c00910e8d68932e9274aa79dab0dce86ba/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=037dd3c00910e8d68932e9274aa79dab0dce86bapatchXX  @@ -7,14 +7,14 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.0.1'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.0'
         classpath 'com.netflix.nebula:nebula-publishing-plugin:20.2.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.37.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.38.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
-        classpath 'com.palantir.gradle.gitversion:gradle-git-version:2.0.0'
+        classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'uau(4d5a13e6e2838ef4afdeea6db6340844fc5b1cfe}(sha(4d5a13e6e2838ef4afdeea6db6340844fc5b1cfenode_idEC_kwDOAjP5fdoAKDRkNWExM2U2ZTI4MzhlZjRhZmRlZWE2ZGI2MzQwODQ0ZmM1YjFjZmUcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-12T10:23:23Zu	committer}(jF  Lucas MeirelesjH  meireles31@msn.comjJ  2023-06-12T10:23:23Zumessagespotlesstree}(j>  (ed77ebd22677050472657992601d82c9e302dda7url`https://api.github.com/repos/palantir/atlasdb/git/trees/ed77ebd22677050472657992601d82c9e302dda7ujV  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4d5a13e6e2838ef4afdeea6db6340844fc5b1cfe
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSG8hsACgkQJd22kJ7J
GixKjwgAwC7R8uy2VkwlvuMgvAPKt+6vOq3YZT0SXM1fdBc7z9a2dnwJcxcDHqbS
lfXHL32YlEa2G86Ekjnt1tTYVIOzM+YJYZTsTfI1D5c6UIHg/vLltTJXLaftoUxM
tljFRsC6EEpKYXtDiwZURAmfw1KcVfGaQyM70iG4pkTZFkRm/Nf/VLjzvdjwUnAv
JzKTDGLm9PAr8F0WBd1wqAX7NHBhHuS2RO92slMaO/8Tu5XHXHM3goFKAoK0oK1V
mB9wx14T2a91wVcOLU3eptI5Y98AUAwot/2tLqcAhXlcMzyY2ixYyLJ+uWNZhGXu
+7YzAgWLIHj2XPZiF/ydgzqUdvp63g==
=XlN6
-----END PGP SIGNATURE-----payloadtree ed77ebd22677050472657992601d82c9e302dda7
parent 7ce5f97e376225f397a984b99ef89d66858effa4
author Lucas Meireles <meireles31@msn.com> 1686565403 +0100
committer Lucas Meireles <meireles31@msn.com> 1686565403 +0100

spotless
uujV  ^https://api.github.com/repos/palantir/atlasdb/commits/4d5a13e6e2838ef4afdeea6db6340844fc5b1cfehtml_urlShttps://github.com/palantir/atlasdb/commit/4d5a13e6e2838ef4afdeea6db6340844fc5b1cfecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4d5a13e6e2838ef4afdeea6db6340844fc5b1cfe/commentsjD  }(loginLucasIMEidJg j@  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jV  %https://api.github.com/users/LucasIMEjd  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujL  }(ji  LucasIMEjk  Jg j@  MDQ6VXNlcjY3ODczMTE=jm  3https://avatars.githubusercontent.com/u/6787311?v=4jo  h5jV  %https://api.github.com/users/LucasIMEjd  https://github.com/LucasIMEjr  /https://api.github.com/users/LucasIME/followersjt  <https://api.github.com/users/LucasIME/following{/other_user}jv  5https://api.github.com/users/LucasIME/gists{/gist_id}jx  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jz  3https://api.github.com/users/LucasIME/subscriptionsj|  *https://api.github.com/users/LucasIME/orgsj~  +https://api.github.com/users/LucasIME/reposj  6https://api.github.com/users/LucasIME/events{/privacy}j  5https://api.github.com/users/LucasIME/received_eventsj  Userj  uparents]}(j>  (7ce5f97e376225f397a984b99ef89d66858effa4jV  ^https://api.github.com/repos/palantir/atlasdb/commits/7ce5f97e376225f397a984b99ef89d66858effa4jd  Shttps://github.com/palantir/atlasdb/commit/7ce5f97e376225f397a984b99ef89d66858effa4uastats}(totalK
	additionsK	deletionsKufiles]}(j>  (19b33a8f88df0c27af94f3a4d9d948d61f5a5b16filenameVatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javastatusmodifiedj  Kj  KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/4d5a13e6e2838ef4afdeea6db6340844fc5b1cfe/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4d5a13e6e2838ef4afdeea6db6340844fc5b1cfe/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=4d5a13e6e2838ef4afdeea6db6340844fc5b1cfepatchX  @@ -36,7 +36,10 @@ public final class SweepStrategy {
     private final boolean mustCheckImmutableLockAfterNonEmptyReads;
     private final boolean mustCheckImmutableLockAfterEmptyReads;
 
-    private SweepStrategy(Optional<SweeperStrategy> sweeperStrategy, boolean mustCheckImmutableLockAfterNonEmptyReads, boolean mustCheckImmutableLockAfterEmptyReads) {
+    private SweepStrategy(
+            Optional<SweeperStrategy> sweeperStrategy,
+            boolean mustCheckImmutableLockAfterNonEmptyReads,
+            boolean mustCheckImmutableLockAfterEmptyReads) {
         this.sweeperStrategy = sweeperStrategy;
         this.mustCheckImmutableLockAfterNonEmptyReads = mustCheckImmutableLockAfterNonEmptyReads;
         this.mustCheckImmutableLockAfterEmptyReads = mustCheckImmutableLockAfterEmptyReads;
@@ -51,7 +54,10 @@ public boolean mustCheckImmutableLock(boolean hasReadEmptyCells) {
     }
 
     public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy) {
-        return new SweepStrategy(sweeperBehaviour(strategy), mustCheckImmutableLockAfterNonEmptyReads(strategy), mustCheckImmutableLockAfterEmptyReads(strategy));
+        return new SweepStrategy(
+                sweeperBehaviour(strategy),
+                mustCheckImmutableLockAfterNonEmptyReads(strategy),
+                mustCheckImmutableLockAfterEmptyReads(strategy));
     }
 
     private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersistence.SweepStrategy strategy) {uau(aded4c82dd271513b46e81f988d7367ae49e9031}(sha(aded4c82dd271513b46e81f988d7367ae49e9031node_idEC_kwDOAjP5fdoAKGFkZWQ0YzgyZGQyNzE1MTNiNDZlODFmOTg4ZDczNjdhZTQ5ZTkwMzEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-28T13:58:50Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-02-28T13:58:50Zumessagecleanuptree}(j  (f059d5f21049dacd163684343115cd145c4a5d41url`https://api.github.com/repos/palantir/atlasdb/git/trees/f059d5f21049dacd163684343115cd145c4a5d41uj͋  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/aded4c82dd271513b46e81f988d7367ae49e9031
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmP+CJoACgkQTLdFKain
zjzolgf+MubQUzPt4kjjyBBvVzSesyPnbk5VVMu7XIfem9/I9ZHL8HVRgQ8Oz+SE
Gbz3r3p+1asFXL0kuL/zKozmTUtAZ4gnNtE4lfSudY2Kz9clAVvAxOXzPijH88WL
lHORcjoP2NPpq8NtOj1nvklHoP9XYPAnneURon+ce8449+FHwUoVSK2FHghiVuqz
/Tk/oB6xV+5z6F4aP7op4qZ8OYlxjIwjerLk9tRfce/vD+suE5J5uddL490Qh05s
klKPmOVFNiSI+4d2XQa9UkZfgxYww2Do91dQhlpCWd3Q1thDazz/ZKaGn5LWpQ6z
vrgQaQ8MgUVBd/XU0iZQZ59vthXvfA==
=7HzY
-----END PGP SIGNATURE-----payloadtree f059d5f21049dacd163684343115cd145c4a5d41
parent 6791ce3d305385405cdda718d4f971afe431da14
author Jeremy Kong <jkong@palantir.com> 1677592730 +0000
committer Jeremy Kong <jkong@palantir.com> 1677592730 +0000

cleanup
uuj͋  ^https://api.github.com/repos/palantir/atlasdb/commits/aded4c82dd271513b46e81f988d7367ae49e9031html_urlShttps://github.com/palantir/atlasdb/commit/aded4c82dd271513b46e81f988d7367ae49e9031comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/aded4c82dd271513b46e81f988d7367ae49e9031/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j͋  'https://api.github.com/users/jeremyk-91jۋ  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujË  }(j  
jeremyk-91j  JZ j  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5j͋  'https://api.github.com/users/jeremyk-91jۋ  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents]}(j  (6791ce3d305385405cdda718d4f971afe431da14j͋  ^https://api.github.com/repos/palantir/atlasdb/commits/6791ce3d305385405cdda718d4f971afe431da14jۋ  Shttps://github.com/palantir/atlasdb/commit/6791ce3d305385405cdda718d4f971afe431da14uastats}(totalK_	additionsK"	deletionsK=ufiles]}(j  (8180ad25fbcf0cf3e336b52a426cfc26dbf821c0filenamepatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javastatusmodifiedj  K"j  K=changesK_blob_urlhttps://github.com/palantir/atlasdb/blob/aded4c82dd271513b46e81f988d7367ae49e9031/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/aded4c82dd271513b46e81f988d7367ae49e9031/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=aded4c82dd271513b46e81f988d7367ae49e9031patchX:"  @@ -27,17 +27,17 @@
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.common.concurrent.PTExecutors;
-import com.palantir.logsafe.Preconditions;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.HashMap;
 import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import java.util.stream.Stream;
 import org.junit.Test;
@@ -67,9 +67,16 @@ public void smokeTest() {
 
     // This is basically a very simple invariant checker
     private void assertWorkflowHistoryConsistent(WorkflowHistory workflowHistory) {
-        workflowHistory.history().forEach(SingleRowTwoCellsWorkflowsTest::validateLocalReadsMatchLocalWrites);
-
         List<WitnessedTransaction> transactionsByCommitTime = workflowHistory.history();
+        CellStateCheckingVisitor cellStateCheckingVisitor = new CellStateCheckingVisitor();
+
+        transactionsByCommitTime.forEach(witnessedTransaction -> {
+            LocalWriteWitnessVisitor localWriteWitnessVisitor = new LocalWriteWitnessVisitor();
+            witnessedTransaction.actions().forEach(action -> {
+                action.accept(localWriteWitnessVisitor);
+                action.accept(cellStateCheckingVisitor);
+            });
+        });
 
         // Start from 1 intentional as we want to look at pairs of transactions
         for (int index = 1; index < transactionsByCommitTime.size(); index++) {
@@ -80,36 +87,11 @@ private void assertWorkflowHistoryConsistent(WorkflowHistory workflowHistory) {
                     .as("given all transactions touch the same cells, overlapping transactions should conflict and so "
                             + "they should not be allowed")
                     .isLessThan(successor.startTimestamp());
-
-            validatePredecessorWritesSeenBySuccessor(predecessor, successor);
         }
 
         validateFinalTableState(workflowHistory);
     }
 
-    private static void validateLocalReadsMatchLocalWrites(WitnessedTransaction transaction) {
-        // The indexing is nasty, but I imagine verifiers are always going to be coupled to the implementation of the
-        // task.
-        WitnessedReadTransactionAction firstCellRead =
-                transaction.actions().get(4).accept(ReadWitnessCaster.INSTANCE);
-        WitnessedReadTransactionAction secondCellRead =
-                transaction.actions().get(5).accept(ReadWitnessCaster.INSTANCE);
-        transaction.actions().get(2).accept(new ReadValidationVisitor(firstCellRead));
-        transaction.actions().get(3).accept(new ReadValidationVisitor(secondCellRead));
-    }
-
-    private static void validatePredecessorWritesSeenBySuccessor(
-            WitnessedTransaction predecessor, WitnessedTransaction successor) {
-        // The indexing is nasty, but I imagine verifiers are always going to be coupled to the implementation of the
-        // task.
-        WitnessedReadTransactionAction firstCellRead =
-                successor.actions().get(0).accept(ReadWitnessCaster.INSTANCE);
-        WitnessedReadTransactionAction secondCellRead =
-                successor.actions().get(1).accept(ReadWitnessCaster.INSTANCE);
-        predecessor.actions().get(2).accept(new ReadValidationVisitor(firstCellRead));
-        predecessor.actions().get(3).accept(new ReadValidationVisitor(secondCellRead));
-    }
-
     private static void validateFinalTableState(WorkflowHistory workflowHistory) {
         Optional<Integer> firstCellState = workflowHistory
                 .transactionStore()
@@ -129,61 +111,52 @@ private static void validateFinalTableState(WorkflowHistory workflowHistory) {
                 .isBetween(0, ITERATION_COUNT);
     }
 
-    private static final class ReadValidationVisitor implements WitnessedTransactionActionVisitor<Void> {
-        private final WitnessedReadTransactionAction readWitness;
-
-        private ReadValidationVisitor(WitnessedReadTransactionAction readWitness) {
-            this.readWitness = readWitness;
-        }
+    private static class LocalWriteWitnessVisitor implements WitnessedTransactionActionVisitor<Void> {
+        private final Map<WorkloadCell, Optional<Integer>> localWriteMap = new HashMap<>();
 
         @Override
         public Void visit(WitnessedReadTransactionAction readTransactionAction) {
-            throw new SafeIllegalStateException("Meaningless to validate read against another read");
+            if (localWriteMap.containsKey(readTransactionAction.cell())) {
+                assertThat(readTransactionAction.value()).isEqualTo(localWriteMap.get(readTransactionAction.cell()));
+            }
+            return null;
         }
 
         @Override
         public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
-            Preconditions.checkState(
-                    writeTransactionAction.cell().equals(readWitness.cell()),
-                    "Read validations should only happen in relation to mutations of the same cell",
-                    SafeArg.of("readWitness", readWitness),
-                    SafeArg.of("writeTransactionAction", writeTransactionAction));
-            assertThat(readWitness.value())
-                    .as("reads should match the preceding write")
-                    .contains(writeTransactionAction.value());
+            localWriteMap.put(writeTransactionAction.cell(), Optional.of(writeTransactionAction.value()));
             return null;
         }
 
         @Override
         public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
-            Preconditions.checkState(
-                    deleteTransactionAction.cell().equals(readWitness.cell()),
-                    "Read validations should only happen in relation to mutations of the same cell",
-                    SafeArg.of("readWitness", readWitness),
-                    SafeArg.of("deleteTransactionAction", deleteTransactionAction));
-            assertThat(readWitness.value())
-                    .as("deletions should mean we do not read a value")
-                    .isEmpty();
+            localWriteMap.put(deleteTransactionAction.cell(), Optional.empty());
             return null;
         }
     }
 
-    private enum ReadWitnessCaster implements WitnessedTransactionActionVisitor<WitnessedReadTransactionAction> {
-        INSTANCE;
+    private static class CellStateCheckingVisitor implements WitnessedTransactionActionVisitor<Void> {
+        private final Map<WorkloadCell, Integer> tableState = new HashMap<>();
 
         @Override
-        public WitnessedReadTransactionAction visit(WitnessedReadTransactionAction readTransactionAction) {
-            return readTransactionAction;
+        public Void visit(WitnessedReadTransactionAction readTransactionAction) {
+            Optional<Integer> expected = Optional.ofNullable(tableState.get(readTransactionAction.cell()));
+            assertThat(readTransactionAction.value())
+                    .as("read a cell that does not match the expected table state")
+                    .isEqualTo(expected);
+            return null;
         }
 
         @Override
-        public WitnessedReadTransactionAction visit(WitnessedWriteTransactionAction writeTransactionAction) {
-            throw new SafeIllegalStateException("Expecting a read transaction action, but found a write");
+        public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
+            tableState.put(writeTransactionAction.cell(), writeTransactionAction.value());
+            return null;
         }
 
         @Override
-        public WitnessedReadTransactionAction visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
-            throw new SafeIllegalStateException("Expecting a read transaction action, but found a delete");
+        public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+            tableState.remove(deleteTransactionAction.cell());
+            return null;
         }
     }
 }uau(321c2ea4eb4a44c0a7417dc7700c899ac251fef3}(sha(321c2ea4eb4a44c0a7417dc7700c899ac251fef3node_idEC_kwDOAjP5fdoAKDMyMWMyZWE0ZWI0YTQ0YzBhNzQxN2RjNzcwMGM4OTlhYzI1MWZlZjMcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-12T12:03:05Zu	committer}(j4  	Tom Papkej6  tpapke@palantir.comj8  2023-06-12T12:03:05ZumessageRe-add read only transactiontree}(j,  (d69d3cd900c8b48a845f5fa053156294039f4bbfurl`https://api.github.com/repos/palantir/atlasdb/git/trees/d69d3cd900c8b48a845f5fa053156294039f4bbfujD  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/321c2ea4eb4a44c0a7417dc7700c899ac251fef3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSHCXkACgkQmF9s0kaF
Iw2RLgf8CIAXu3QZvnE9lAXNXc0JVXLH2R/fUCsL/o2uKZfhrNcXGdfLudejl4Il
vCoxAxNw4kpbroceZl6cBZlTh5uWqiLnXiUvwAyKTqvwkkX3U8t+D7opJFYHCFOr
veDgNjx6uHAw3+I6iqkCyJcttWOQl/U1Hc/G8f8iYpBNYzp+mDkfNq/b0ylbbNVB
/g6mJ5G/QNqrb+QpyTAzj+BytK5LudOGQLqls0lLkvktGXtoJH+stvK6sYjhEvaL
vx7YxGsK/4O256ff++0AWWs2eaPvxSSw4KVj64PZkcf7LlXWpJBo9yW5P8iAiTdu
GUeN6RbmFTVuAKft5yWSdTp2AgP0og==
=LuJJ
-----END PGP SIGNATURE-----payloadtree d69d3cd900c8b48a845f5fa053156294039f4bbf
parent 507515d8ab6a4e9ce440bbbeff2d4102d2996117
author Tom Papke <tpapke@palantir.com> 1686571385 +0100
committer Tom Papke <tpapke@palantir.com> 1686571385 +0100

Re-add read only transaction
uujD  ^https://api.github.com/repos/palantir/atlasdb/commits/321c2ea4eb4a44c0a7417dc7700c899ac251fef3html_urlShttps://github.com/palantir/atlasdb/commit/321c2ea4eb4a44c0a7417dc7700c899ac251fef3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/321c2ea4eb4a44c0a7417dc7700c899ac251fef3/commentsj2  }(login	ToemmscheidJboj.  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jD  &https://api.github.com/users/ToemmschejR  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj:  }(jW  	ToemmschejY  Jboj.  MDQ6VXNlcjQzNjc1NDkwj[  4https://avatars.githubusercontent.com/u/43675490?v=4j]  h5jD  &https://api.github.com/users/ToemmschejR  https://github.com/Toemmschej`  0https://api.github.com/users/Toemmsche/followersjb  =https://api.github.com/users/Toemmsche/following{/other_user}jd  6https://api.github.com/users/Toemmsche/gists{/gist_id}jf  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jh  4https://api.github.com/users/Toemmsche/subscriptionsjj  +https://api.github.com/users/Toemmsche/orgsjl  ,https://api.github.com/users/Toemmsche/reposjn  7https://api.github.com/users/Toemmsche/events{/privacy}jp  6https://api.github.com/users/Toemmsche/received_eventsjr  Userjt  uparents]}(j,  (507515d8ab6a4e9ce440bbbeff2d4102d2996117jD  ^https://api.github.com/repos/palantir/atlasdb/commits/507515d8ab6a4e9ce440bbbeff2d4102d2996117jR  Shttps://github.com/palantir/atlasdb/commit/507515d8ab6a4e9ce440bbbeff2d4102d2996117uastats}(totalK
	additionsK
	deletionsK ufiles]}(j,  (bb29f1f5379469e2420cec2f171a4e7f631e047cfilenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedj  K
j  K changesK
blob_urlhttps://github.com/palantir/atlasdb/blob/321c2ea4eb4a44c0a7417dc7700c899ac251fef3/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/321c2ea4eb4a44c0a7417dc7700c899ac251fef3/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=321c2ea4eb4a44c0a7417dc7700c899ac251fef3patchX  @@ -2428,6 +2428,19 @@ public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigratio
         assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
     }
 
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_readOnlyTransaction() {
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.get(TABLE, ImmutableSet.of(TEST_CELL));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(0);
+        // Since this is a read-only transaction, we should not even lock a row in the transaction table itself
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(0);
+    }
+
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,uau(9835ea930a70d02d373efa14b7a2e756a273b99c}(sha(9835ea930a70d02d373efa14b7a2e756a273b99cnode_idEC_kwDOAjP5fdoAKDk4MzVlYTkzMGE3MGQwMmQzNzNlZmExNGI3YTJlNzU2YTI3M2I5OWMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-06T14:53:45Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-06-06T14:53:45ZumessageIRefactor TransactionActions to have explicitly named single cell variantstree}(j  (48c80fef7a49eddf8b2d7997c09e93cbb315aab8url`https://api.github.com/repos/palantir/atlasdb/git/trees/48c80fef7a49eddf8b2d7997c09e93cbb315aab8uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9835ea930a70d02d373efa14b7a2e756a273b99c
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR/SHkACgkQTLdFKain
zjyjzAgA3+QsfGTa+BGjHTXC3PxC2u5wTd+cQPmY8EcCCIBa+VIBoRKZX+iUmqEY
mJp5K5sxNLi0P68Vc2ZaWyGXOAQFxVDaxvDEdUOJTdUlhj1pq9wA2saBJTENQ/Vi
dNIRjJdSUZBNxbEBK8AMK58cTT2lUONsskQ2Q+BVGsSLhL+QqGrAtgAKwEB2+qse
3vgPDg47xOW+JzqnCjdkqv8KU9E2e8f4ke2KIJi9B6wiDQ6LSdee5ymG8YWEBNdU
hUG7E/vbgEN8kjLMVX/FPv2accH2OOKfxTXwAt27Q0WhMihiGa3XzT52CM1AeczQ
ClJMdnJNo/hpQ4OQWu4lA/f8QDselg==
=nnKS
-----END PGP SIGNATURE-----payloadX  tree 48c80fef7a49eddf8b2d7997c09e93cbb315aab8
parent acdd8b440cf16a635a7163ab8e533e4576073ab9
author Jeremy Kong <jkong@palantir.com> 1686063225 +0100
committer Jeremy Kong <jkong@palantir.com> 1686063225 +0100

Refactor TransactionActions to have explicitly named single cell variants
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/9835ea930a70d02d373efa14b7a2e756a273b99chtml_urlShttps://github.com/palantir/atlasdb/commit/9835ea930a70d02d373efa14b7a2e756a273b99ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9835ea930a70d02d373efa14b7a2e756a273b99c/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91jɌ  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(jΌ  
jeremyk-91jЌ  JZ j  MDQ6VXNlcjU5NTU1MTA=jҌ  3https://avatars.githubusercontent.com/u/5955510?v=4jԌ  h5j  'https://api.github.com/users/jeremyk-91jɌ  https://github.com/jeremyk-91j׌  1https://api.github.com/users/jeremyk-91/followersjٌ  >https://api.github.com/users/jeremyk-91/following{/other_user}jی  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j݌  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jߌ  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents]}(j  (acdd8b440cf16a635a7163ab8e533e4576073ab9j  ^https://api.github.com/repos/palantir/atlasdb/commits/acdd8b440cf16a635a7163ab8e533e4576073ab9jɌ  Shttps://github.com/palantir/atlasdb/commit/acdd8b440cf16a635a7163ab8e533e4576073ab9uastats}(totalK	additionsKp	deletionsK4ufiles](}(j  (bd06cc1312715a991167d81bd1ceb940ff719fc1filenamepatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/DeleteTransactionAction.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.java?ref=9835ea930a70d02d373efa14b7a2e756a273b99cpatchX{  @@ -22,7 +22,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface DeleteTransactionAction extends TransactionAction {
+public interface DeleteTransactionAction extends SingleCellTransactionAction {
 
     default WitnessedDeleteTransactionAction witness() {
         return ImmutableWitnessedDeleteTransactionAction.of(table(), cell());u}(j  (e9ae2e08974eda0443281b98d5bc9d2fb9243eccj  natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ReadTransactionAction.javaj
  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.java?ref=9835ea930a70d02d373efa14b7a2e756a273b99cj  X  @@ -23,7 +23,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface ReadTransactionAction extends TransactionAction {
+public interface ReadTransactionAction extends SingleCellTransactionAction {
 
     default WitnessedReadTransactionAction witness(Optional<Integer> value) {
         return ImmutableWitnessedReadTransactionAction.of(table(), cell(), value);u}(j  (47b25ab538c861987aa480e47c2bb08032e32fc0j  tatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/SingleCellTransactionAction.javaj
  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.java?ref=9835ea930a70d02d373efa14b7a2e756a273b99cj  X>  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface SingleCellTransactionAction extends TransactionAction {
+    /** Table to apply transaction to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) to apply the action to. */
+    @Value.Parameter
+    WorkloadCell cell();
+}u}(j  (e6ee57fa3732a9a1984c98b088bfc9a577a7fbe8j  jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionAction.javaj
  modifiedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.java?ref=9835ea930a70d02d373efa14b7a2e756a273b99cj  X  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.WorkloadCell;
-import org.immutables.value.Value;
-
 public interface TransactionAction {
-
-    /** Table to apply transaction to. */
-    @Value.Parameter
-    String table();
-
-    /** Cell (Key, Column) to apply the action to. */
-    @Value.Parameter
-    WorkloadCell cell();
-
     <T> T accept(TransactionActionVisitor<T> visitor);
 }u}(j  (7b9112fa4356eade1fb793e23ca54d962811ccfcj  oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/WriteTransactionAction.javaj
  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.java?ref=9835ea930a70d02d373efa14b7a2e756a273b99cj  X  @@ -22,7 +22,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WriteTransactionAction extends TransactionAction {
+public interface WriteTransactionAction extends SingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(j  (2f66134a6e594e63bdba1ebec482177c03bd9220j  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedSingleCellTransactionAction.javaj
  addedj  K"j  K j  K"j  https://github.com/palantir/atlasdb/blob/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.javaj  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.java?ref=9835ea930a70d02d373efa14b7a2e756a273b99cj  XP  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.invariant.MismatchedValue;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedSingleCellTransactionAction extends InvalidWitnessedTransactionAction {
+    @Value.Parameter
+    WitnessedSingleCellTransactionAction action();
+
+    @Value.Parameter
+    MismatchedValue mismatchedValue();
+
+    static InvalidWitnessedSingleCellTransactionAction of(
+            WitnessedSingleCellTransactionAction action, MismatchedValue mismatchedValue) {
+        return ImmutableInvalidWitnessedSingleCellTransactionAction.of(action, mismatchedValue);
+    }
+}u}(j  (accf0fe147703dd4c2fb6b592893771eb6219719j  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javaj
  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=9835ea930a70d02d373efa14b7a2e756a273b99cj  X  @@ -16,18 +16,4 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.invariant.MismatchedValue;
-import org.immutables.value.Value;
-
-@Value.Immutable
-public interface InvalidWitnessedTransactionAction {
-    @Value.Parameter
-    WitnessedTransactionAction action();
-
-    @Value.Parameter
-    MismatchedValue mismatchedValue();
-
-    static InvalidWitnessedTransactionAction of(WitnessedTransactionAction action, MismatchedValue mismatchedValue) {
-        return ImmutableInvalidWitnessedTransactionAction.of(action, mismatchedValue);
-    }
-}
+public interface InvalidWitnessedTransactionAction {}u}(j  (664e279d4223b1f5897c5f45615e3cdbdaa71ac3j  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedDeleteTransactionAction.javaj
  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.java?ref=9835ea930a70d02d373efa14b7a2e756a273b99cj  Xo  @@ -20,7 +20,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedDeleteTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedDeleteTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {u}(j  (beff6229abcbdbf535af57c09c43ad7c92566201j  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedReadTransactionAction.javaj
  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.java?ref=9835ea930a70d02d373efa14b7a2e756a273b99cj  X7  @@ -21,7 +21,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedReadTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedReadTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(j  (eed34c03b4bd04c09374ca41608cb74986cb40c0j  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedSingleCellTransactionAction.javaj
  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.java?ref=9835ea930a70d02d373efa14b7a2e756a273b99cj  XW  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface WitnessedSingleCellTransactionAction extends WitnessedTransactionAction {
+    /** Table action was applied to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) the action applied to. */
+    @Value.Parameter
+    WorkloadCell cell();
+}u}(j  (3e350184f320b0cd81f7019819c5d83c6a9d8602j  }atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionAction.javaj
  modifiedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.java?ref=9835ea930a70d02d373efa14b7a2e756a273b99cj  X  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.store.WorkloadCell;
-import org.immutables.value.Value;
-
 public interface WitnessedTransactionAction {
-
-    /** Table action was applied to. */
-    @Value.Parameter
-    String table();
-
-    /** Cell (Key, Column) the action applied to. */
-    @Value.Parameter
-    WorkloadCell cell();
-
     <T> T accept(WitnessedTransactionActionVisitor<T> visitor);
 }u}(j  (43687fd4d7dbdc3a1ac0ec26f2f38d0366613022j  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedWriteTransactionAction.javaj
  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.java?ref=9835ea930a70d02d373efa14b7a2e756a273b99cj  X(  @@ -20,7 +20,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WitnessedWriteTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedWriteTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(j  (d8ae0172e04f5d987b18981c085af657a86bf0e4j  atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javaj
  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj  https://github.com/palantir/atlasdb/raw/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=9835ea930a70d02d373efa14b7a2e756a273b99cj  X  @@ -54,7 +54,7 @@ public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
     public void toFullyWitnessedCopiesArgumentsCorrectly() {
         WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
         WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
-        List<WitnessedTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
+        List<WitnessedSingleCellTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
         FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
                 .startTimestamp(START_TIMESTAMP)
                 .commitTimestamp(COMMIT_TIMESTAMP)u}(j  (6f71237c13ff13f35b9cad68086beac2fef6d892j  hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj
  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj  https://github.com/palantir/atlasdb/raw/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=9835ea930a70d02d373efa14b7a2e756a273b99cj  X&  @@ -18,6 +18,7 @@
 
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
@@ -68,7 +69,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactio
                     .orElseGet(Optional::empty);
 
             if (!expectedValue.equals(readTransactionAction.value())) {
-                return Optional.of(InvalidWitnessedTransactionAction.of(
+                return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
                         readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expectedValue)));
             }
 u}(j  (b9426a895989f6b4e308c1467756e3c730061c09j  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj
  modifiedj  Kj  Kj  K
j  https://github.com/palantir/atlasdb/blob/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj  https://github.com/palantir/atlasdb/raw/9835ea930a70d02d373efa14b7a2e756a273b99c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=9835ea930a70d02d373efa14b7a2e756a273b99cj  Xv  @@ -19,6 +19,7 @@
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
@@ -29,10 +30,10 @@
 
 /**
  * Replays transactions and validates for conflicts on the latest and read view.
- *
+ * <p>
  * The latest view will be a view of the database at the commit timestamp, while the read view will be the view of
  * the database at the start timestamp.
- *
+ * <p>
  * Objects created from this class should only be used within a scope of a single transaction.
  */
 final class SnapshotInvariantVisitor
@@ -57,7 +58,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactio
                         readTransactionAction.table(), readTransactionAction.cell(), readView)
                 .value();
         if (!expected.equals(readTransactionAction.value())) {
-            return Optional.of(InvalidWitnessedTransactionAction.of(
+            return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
                     readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expected)));
         }
         return Optional.empty();
@@ -67,7 +68,8 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactio
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
                         writeTransactionAction.table(), writeTransactionAction.cell())
-                .map(mismatchedValue -> InvalidWitnessedTransactionAction.of(writeTransactionAction, mismatchedValue));
+                .map(mismatchedValue ->
+                        InvalidWitnessedSingleCellTransactionAction.of(writeTransactionAction, mismatchedValue));
 
         applyWrites(
                 writeTransactionAction.table(),
@@ -80,7 +82,8 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransacti
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
                         deleteTransactionAction.table(), deleteTransactionAction.cell())
-                .map(mismatchedValue -> InvalidWitnessedTransactionAction.of(deleteTransactionAction, mismatchedValue));
+                .map(mismatchedValue ->
+                        InvalidWitnessedSingleCellTransactionAction.of(deleteTransactionAction, mismatchedValue));
 
         applyWrites(deleteTransactionAction.table(), deleteTransactionAction.cell(), Optional.empty());
         return invalidAction;ueu     (363e6ce6e785d98d547397719b3152feaef2e227}(sha(363e6ce6e785d98d547397719b3152feaef2e227node_idEC_kwDOAjP5fdoAKDM2M2U2Y2U2ZTc4NWQ5OGQ1NDczOTc3MTliMzE1MmZlYWVmMmUyMjccommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-24T13:20:55Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-05-24T13:20:55Zumessagespotlesstree}(j  (eb53b3e9a374236cbe1174c2fd2668549544f485url`https://api.github.com/repos/palantir/atlasdb/git/trees/eb53b3e9a374236cbe1174c2fd2668549544f485uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/363e6ce6e785d98d547397719b3152feaef2e227
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRuDzcACgkQTLdFKain
zjwtBAgA0UVc66Fe8uEgfOcsP7yb8q8OMVSbSA4XqvYzSpR/Y5mXx5Gy6pApsbqe
0QatqTbXfIldsJKhTA+lUrIZG3bDI4OJQZ/othdWh064khtuzJ9n/vOD1Prmrm2L
KYM3FNakIr5oRtwtKf3vnUKmJ1mwr+AleOqgWaK0sfjaGuBH5rYmmypM2dShojKv
mWDTvqtgKWV6zaijGS9uomJfyZY6HlBdWP6qiYkAmlgRpFAYFdbh7gNgtTvTTaf1
v7zWB4WZEMsJQaKv8qZNeI9MGs6TZ4in+XN8F0w+TgJXKzcnXTCqpzJTpWgu3zSZ
87d6qsc9ch2XZyRiebwV++KL0HhpkQ==
=RgKy
-----END PGP SIGNATURE-----payloadtree eb53b3e9a374236cbe1174c2fd2668549544f485
parent e62f84c7936fac099c18eebba4abb782789bc5e0
author Jeremy Kong <jkong@palantir.com> 1684934455 +0100
committer Jeremy Kong <jkong@palantir.com> 1684934455 +0100

spotless
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/363e6ce6e785d98d547397719b3152feaef2e227html_urlShttps://github.com/palantir/atlasdb/commit/363e6ce6e785d98d547397719b3152feaef2e227comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/363e6ce6e785d98d547397719b3152feaef2e227/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j  
jeremyk-91j  JZ j  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jč  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jƍ  5https://api.github.com/users/jeremyk-91/subscriptionsjȍ  ,https://api.github.com/users/jeremyk-91/orgsjʍ  -https://api.github.com/users/jeremyk-91/reposj̍  8https://api.github.com/users/jeremyk-91/events{/privacy}j΍  7https://api.github.com/users/jeremyk-91/received_eventsjЍ  Userjҍ  uparents]}(j  (e62f84c7936fac099c18eebba4abb782789bc5e0j  ^https://api.github.com/repos/palantir/atlasdb/commits/e62f84c7936fac099c18eebba4abb782789bc5e0j  Shttps://github.com/palantir/atlasdb/commit/e62f84c7936fac099c18eebba4abb782789bc5e0uastats}(totalK	additionsK 	deletionsKufiles]}(j  (a7e3be37946c0f08a8a2778a6b3a096b689a7f4cfilenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj  K j  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/363e6ce6e785d98d547397719b3152feaef2e227/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/363e6ce6e785d98d547397719b3152feaef2e227/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=363e6ce6e785d98d547397719b3152feaef2e227patchX{  @@ -159,7 +159,6 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
-
     private void waitForTransactionStoreFactoryToBeInitialized(AtlasDbTransactionStoreFactory factory) {
         // TODO (jkong): This is awful, but sufficient for now.
         Instant deadline = Instant.now().plusSeconds(TimeUnit.MINUTES.toSeconds(5));uau(174bb726c72d9f909fc125b5f001b253330dd1b7}(sha(174bb726c72d9f909fc125b5f001b253330dd1b7node_idEC_kwDOAjP5fdoAKDE3NGJiNzI2YzcyZDlmOTA5ZmMxMjViNWYwMDFiMjUzMzMwZGQxYjccommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-15T12:39:27Zu	committer}(j	  GitHubj  noreply@github.comj
  2023-05-15T12:39:27Zumessage0[CBT] Split test into multiple workflows (#6555)tree}(j  (412ba9ccce910be66383025fb81741b08eb6c0b8url`https://api.github.com/repos/palantir/atlasdb/git/trees/412ba9ccce910be66383025fb81741b08eb6c0b8uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/174bb726c72d9f909fc125b5f001b253330dd1b7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkYif/CRBK7hj4Ov3rIwAAxscIAAlDBg0NEcwP05cNWVxLGDmY
t2OZH3HC7LFAwyo6Df0PH2t9LxUOW/5F1YUZPD+IH2fULkeVJDllJY75GmIjkrJ2
Sx5OM7WOjpdpnOfOLQQXdcyH9JGKU9Ii6j8dxqLk6YIzXOm9bHZOkLSGPpAQbyEZ
S84mAlG7vtSHT887UNucWhBhCoEtBkdmbfXadmjXaG55UNyJ2dn2UNXCMD7ObiM3
neidR+s/c4h59LR01EYf/0qCHN2kTdvoWg1jOFzb5Lx51Sb2KJbIPS2cSqi+gP6s
zRIkYXb8Bp2yIXPKnSRICBm7rs9gKKRuRK5Cjw6K+5hLSEruiRoeL0PHjcvVuL0=
=wZck
-----END PGP SIGNATURE-----
payloadX  tree 412ba9ccce910be66383025fb81741b08eb6c0b8
parent 50e05491daed01d64ec4867ce2176b153629246b
author aalouane <30903736+ergo14@users.noreply.github.com> 1684154367 +0100
committer GitHub <noreply@github.com> 1684154367 +0000

[CBT] Split test into multiple workflows (#6555)

 uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/174bb726c72d9f909fc125b5f001b253330dd1b7html_urlShttps://github.com/palantir/atlasdb/commit/174bb726c72d9f909fc125b5f001b253330dd1b7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/174bb726c72d9f909fc125b5f001b253330dd1b7/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j'  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j,  web-flowj.  J/j  MDQ6VXNlcjE5ODY0NDQ3j0  4https://avatars.githubusercontent.com/u/19864447?v=4j2  h5j  %https://api.github.com/users/web-flowj'  https://github.com/web-flowj5  /https://api.github.com/users/web-flow/followersj7  <https://api.github.com/users/web-flow/following{/other_user}j9  5https://api.github.com/users/web-flow/gists{/gist_id}j;  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j=  3https://api.github.com/users/web-flow/subscriptionsj?  *https://api.github.com/users/web-flow/orgsjA  +https://api.github.com/users/web-flow/reposjC  6https://api.github.com/users/web-flow/events{/privacy}jE  5https://api.github.com/users/web-flow/received_eventsjG  UserjI  uparents]}(j  (50e05491daed01d64ec4867ce2176b153629246bj  ^https://api.github.com/repos/palantir/atlasdb/commits/50e05491daed01d64ec4867ce2176b153629246bj'  Shttps://github.com/palantir/atlasdb/commit/50e05491daed01d64ec4867ce2176b153629246buastats}(totalK&	additionsK	deletionsK
ufiles](}(j  (4fde78f98dadd3cd970e73e1d1494ea970e32e48filename.circleci/config.ymlstatusmodifiedjc  Kjd  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/174bb726c72d9f909fc125b5f001b253330dd1b7/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/174bb726c72d9f909fc125b5f001b253330dd1b7/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=174bb726c72d9f909fc125b5f001b253330dd1b7patchX  @@ -1,4 +1,4 @@
-version: 2
+version: 2.1
 
 jobs:
   build:
@@ -31,8 +31,10 @@ jobs:
           root: .
           paths: [ . ]
 
-  test:
-    parallelism: 14
+  test-suite:
+    parameters:
+      suite:
+        type: integer
     machine:
       image: ubuntu-2004:202111-02
     resource_class: xlarge
@@ -66,7 +68,7 @@ jobs:
               curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
               sudo ln -s /opt/java/zulu*/ /opt/java8
       - run:
-          command: ./scripts/circle-ci/run-circle-tests.sh
+          command: ./scripts/circle-ci/run-circle-tests.sh << parameters.suite >>
           no_output_timeout: 900
       - run: ./scripts/circle-ci/ensure-repo-clean.sh
       - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
@@ -97,6 +99,13 @@ jobs:
       - attach_workspace: { at: . }
       - run: ./gradlew --scan --profile --stacktrace --continue publishToMavenLocal
 
+  # placeholder no-op
+  test:
+    docker: [{ image: 'busybox:1.34.1' }]
+    resource_class: small
+    steps:
+      - run: {command: echo "No op"}
+
   deploy:
     docker:
       - image: cimg/openjdk:11.0.10-node
@@ -130,15 +139,22 @@ jobs:
             fi
 
 workflows:
-  version: 2
   check:
     jobs:
       - build:
           filters:
             tags:
               only: /.*/
-      - test:
+      - test-suite:
           requires: [build]
+          matrix:
+            parameters:
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
+          filters:
+            tags:
+              only: /.*/
+      - test:
+          requires: [test-suite]
           filters:
             tags:
               only: /.*/u}(j  (dd376117c068272bff8de388549f0b737167064aji  %scripts/circle-ci/run-circle-tests.shjk  modifiedjc  Kjd  Kjm  K
jn  {https://github.com/palantir/atlasdb/blob/174bb726c72d9f909fc125b5f001b253330dd1b7/scripts%2Fcircle-ci%2Frun-circle-tests.shjp  zhttps://github.com/palantir/atlasdb/raw/174bb726c72d9f909fc125b5f001b253330dd1b7/scripts%2Fcircle-ci%2Frun-circle-tests.shjr  https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=174bb726c72d9f909fc125b5f001b253330dd1b7jt  X  @@ -50,16 +50,18 @@ do
     CONTAINER_0_EXCLUDE_ARGS="$CONTAINER_0_EXCLUDE_ARGS -x $task"
 done
 
+test_suite_index=$1
+
 # Short circuit the build if it's docs only
 if ./scripts/circle-ci/check-only-docs-changes.sh; then
-    if [ $CIRCLE_NODE_INDEX -eq 0 ]; then
+    if [ "$test_suite_index" -eq 0 ]; then
         checkDocsBuild
         exit $?
     fi
     exit 0
 fi
 
-if [ $CIRCLE_NODE_INDEX -eq 9 ] || [ $CIRCLE_NODE_INDEX -eq 10 ]; then
+if [ "$test_suite_index" -eq 9 ] || [ "$test_suite_index" -eq 10 ]; then
     printenv DOCKERHUB_PASSWORD | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
     # The oracle container is very large and takes a long time to pull.
     # If this image is not pulled here, the circle build usually times out.
@@ -71,7 +73,7 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
 # External builds have a 16gb limit.
-if [ "$CIRCLE_NODE_INDEX" -eq "13" ]; then
+if [ "$test_suite_index" -eq "13" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
@@ -80,7 +82,7 @@ fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64m
 
-case $CIRCLE_NODE_INDEX in
+case "$test_suite_index" in
     0) ./gradlew $BASE_GRADLE_ARGS check $CONTAINER_0_EXCLUDE_ARGS -x :atlasdb-jepsen-tests:check;;
     1) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_1[@]} ;;
     2) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_2[@]} -x :atlasdb-ete-tests:longTest -x atlasdb-ete-tests:dbkvsTest -x :atlasdb-ete-tests:timeLockMigrationTest ;;ueu(7b9ddf867bba22bc8cc91b30b4fff3b81bc248ce}(sha(7b9ddf867bba22bc8cc91b30b4fff3b81bc248cenode_idEC_kwDOAjP5fdoAKDdiOWRkZjg2N2JiYTIyYmM4Y2M5MWIzMGI0ZmZmM2I4MWJjMjQ4Y2Ucommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T13:29:26Zu	committer}(j  
Ahmed Alouanej  aalouane@palantir.comj  2023-05-15T13:29:26ZumessageURevert "test this now"

This reverts commit 11ad27b62dcf8fe3f2f5d69a2cf3dae91b206623.tree}(j  (457e53a9db790a95888dfee93bc403f75388b1b0url`https://api.github.com/repos/palantir/atlasdb/git/trees/457e53a9db790a95888dfee93bc403f75388b1b0uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7b9ddf867bba22bc8cc91b30b4fff3b81bc248ce
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiM7gACgkQPlMHVIT1
yhqhyAgAqW4L94i9uWwMZ1wbcHPAdwrWIEmosOO1biNsuDYkmygYRfDA2J4R/Ids
qN60LjMkwymcXwDtn6nZHqsBzDXKGzE+wpJH+W4k9AxAVcMibVTpZniysr+JG2RB
Z93dCn9srqp58K5qzkhcYXzE/bJA5im6fXohDbddedV3K2wd0kUv/UCxCahxqaoI
Ta++/OAz2xohzlCxVWdIBfgiGZ9JPOWnJexT1V2vPEw6BoWCyXUgTskmqdaeRA5e
+3cxm0jmxmdeyN/lhPLOkLncVeRo7Rv8t8HoZ2RQzpllpWD4aOu6kGOkw3rcgf1u
K96FBXSa9/EYkU986toJDx8o8C6Zqw==
=ovKS
-----END PGP SIGNATURE-----payloadX4  tree 457e53a9db790a95888dfee93bc403f75388b1b0
parent 5fd65c427ec22633d95a5327db931856a5298f09
author Ahmed Alouane <aalouane@palantir.com> 1684157366 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684157366 +0100

Revert "test this now"

This reverts commit 11ad27b62dcf8fe3f2f5d69a2cf3dae91b206623.
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/7b9ddf867bba22bc8cc91b30b4fff3b81bc248cehtml_urlShttps://github.com/palantir/atlasdb/commit/7b9ddf867bba22bc8cc91b30b4fff3b81bc248cecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7b9ddf867bba22bc8cc91b30b4fff3b81bc248ce/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j  ergo14j  Jj  MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j  h5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14j  -https://api.github.com/users/ergo14/followersj  :https://api.github.com/users/ergo14/following{/other_user}j  3https://api.github.com/users/ergo14/gists{/gist_id}j  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j  1https://api.github.com/users/ergo14/subscriptionsj  (https://api.github.com/users/ergo14/orgsj  )https://api.github.com/users/ergo14/reposj  4https://api.github.com/users/ergo14/events{/privacy}jĎ  3https://api.github.com/users/ergo14/received_eventsjƎ  UserjȎ  uparents]}(j  (5fd65c427ec22633d95a5327db931856a5298f09j  ^https://api.github.com/repos/palantir/atlasdb/commits/5fd65c427ec22633d95a5327db931856a5298f09j  Shttps://github.com/palantir/atlasdb/commit/5fd65c427ec22633d95a5327db931856a5298f09uastats}(totalK	additionsK	deletionsK
ufiles]}(j  (ba64936f524e339c02f8b51cfa2ca65146a3612cfilename.circleci/config.ymlstatusmodifiedj  Kj  K
changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/7b9ddf867bba22bc8cc91b30b4fff3b81bc248ce/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/7b9ddf867bba22bc8cc91b30b4fff3b81bc248ce/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=7b9ddf867bba22bc8cc91b30b4fff3b81bc248cepatchX  @@ -168,15 +168,6 @@ workflows:
       - test:
           requires: [test-tl, test-no-tl]
           filters:
-            branches:
-              only: /(tlmete.*|develop)/
-            tags:
-              only: /.*/
-      - test:
-          requires: [test-no-tl]
-          filters:
-            branches:
-              ignore: /(tlmete.*|develop)/
             tags:
               only: /.*/
       - trial-publish:
@@ -185,7 +176,7 @@ workflows:
             branches:
               ignore: [develop]
       - deploy:
-          requires: [build, test-tl, test-no-tl]
+          requires: [build, test]
           filters:
             branches:
               only: developuau(3776ea8e3f014dffab5915f132a8214380138816}(sha(3776ea8e3f014dffab5915f132a8214380138816node_idEC_kwDOAjP5fdoAKDM3NzZlYThlM2YwMTRkZmZhYjU5MTVmMTMyYTgyMTQzODAxMzg4MTYcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-08-08T20:44:03Zu	committer}(j  Tom Petraccaj  tpetracca@palantir.comj  2023-08-08T20:44:03Zumessage'ignore LockWatchValueIT#valueStressTesttree}(j  (a86bb5f94928254b0133885fb9fb0cea733ffa6burl`https://api.github.com/repos/palantir/atlasdb/git/trees/a86bb5f94928254b0133885fb9fb0cea733ffa6buj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3776ea8e3f014dffab5915f132a8214380138816
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEHTC5rqjQ6qmsb7sZRnUGJaXvqFMFAmTSqRMACgkQRnUGJaXv
qFMnUAf9Hg+mkC5vcivhIbz9rDMGLy/Z5VdwPyyi9UMwO8J6xAuaUjbq/KvXqvrI
gfizQ5Zx77lCnyCyezSxHvkWKewghrq7PjKBFhjbj8VLzsWMdGMdBC07yJJ5GsJM
vUT1XKRA0VjOPynlwlTCB4AIx6J+lK8tBUqcIriscI/ualXYNltVyQem38spRWl9
+ebRoDi8MlUkfNT8TvuMKHnNR8IHlXL+IBsAHZitVAeKpG523SnPfutArA1gkmQH
Ool2xEmcO01CCCvyuuJpjWZfJXUg+mmOvqnp1eatQEJ1JWtxqaitcmkzTtXUPYQ9
bIqSKLRLoGFiTGhzNZ+hDvkikom4fw==
=rc3n
-----END PGP SIGNATURE-----payloadX  tree a86bb5f94928254b0133885fb9fb0cea733ffa6b
parent 9970453d639510f15d35a8fae963e600ccbd7d83
author Tom Petracca <tpetracca@palantir.com> 1691527443 -0400
committer Tom Petracca <tpetracca@palantir.com> 1691527443 -0400

ignore LockWatchValueIT#valueStressTest
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/3776ea8e3f014dffab5915f132a8214380138816html_urlShttps://github.com/palantir/atlasdb/commit/3776ea8e3f014dffab5915f132a8214380138816comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3776ea8e3f014dffab5915f132a8214380138816/commentsj  }(login	tpetraccaidJ& j  MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5j  &https://api.github.com/users/tpetraccaj  https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminuj  }(j"  	tpetraccaj$  J& j  MDQ6VXNlcjI1NTQzMjg=j&  3https://avatars.githubusercontent.com/u/2554328?v=4j(  h5j  &https://api.github.com/users/tpetraccaj  https://github.com/tpetraccaj+  0https://api.github.com/users/tpetracca/followersj-  =https://api.github.com/users/tpetracca/following{/other_user}j/  6https://api.github.com/users/tpetracca/gists{/gist_id}j1  =https://api.github.com/users/tpetracca/starred{/owner}{/repo}j3  4https://api.github.com/users/tpetracca/subscriptionsj5  +https://api.github.com/users/tpetracca/orgsj7  ,https://api.github.com/users/tpetracca/reposj9  7https://api.github.com/users/tpetracca/events{/privacy}j;  6https://api.github.com/users/tpetracca/received_eventsj=  Userj?  uparents]}(j  (9970453d639510f15d35a8fae963e600ccbd7d83j  ^https://api.github.com/repos/palantir/atlasdb/commits/9970453d639510f15d35a8fae963e600ccbd7d83j  Shttps://github.com/palantir/atlasdb/commit/9970453d639510f15d35a8fae963e600ccbd7d83uastats}(totalK	additionsK	deletionsK ufiles]}(j  (3b61e22564e83eff963be9e9900c8cfd04d68606filenamectimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchValueIntegrationTest.javastatusmodifiedjY  KjZ  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/3776ea8e3f014dffab5915f132a8214380138816/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/3776ea8e3f014dffab5915f132a8214380138816/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.java?ref=3776ea8e3f014dffab5915f132a8214380138816patchX.  @@ -71,6 +71,7 @@
 import java.util.stream.IntStream;
 import org.junit.Before;
 import org.junit.ClassRule;
+import org.junit.Ignore;
 import org.junit.Test;
 import org.junit.rules.RuleChain;
 import org.junit.rules.TestRule;
@@ -545,6 +546,7 @@ public void lateAbortingTransactionDoesNotFlushValuesToCentralCache() {
         });
     }
 
+    @Ignore
     @Test
     // The test fails when trying to cache a value that is currently locked.
     // The open question is whether this _should_ fail when there is a locked value being cached on top of, or ifuau(6152d7f8f23540af99d23cd5cc53da4c6d927cd0}(sha(6152d7f8f23540af99d23cd5cc53da4c6d927cd0node_idEC_kwDOAjP5fdoAKDYxNTJkN2Y4ZjIzNTQwYWY5OWQyM2NkNWNjNTNkYTRjNmQ5MjdjZDAcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-07T19:53:15Zu	committer}(jv  Jeremy Kongjx  jkong@palantir.comjz  2023-06-07T19:53:15Zumessage
checkpointtree}(jn  (2cf6eb6199349bd987ce079425b89f3f8b02425curl`https://api.github.com/repos/palantir/atlasdb/git/trees/2cf6eb6199349bd987ce079425b89f3f8b02425cuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6152d7f8f23540af99d23cd5cc53da4c6d927cd0
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSA4CsACgkQTLdFKain
zjxZ2QgAkWmJ5vcGtLBHxU4JDnumgB3AZy5th3Vk4RUNVT0uWdGv9EVYh0FyKdCe
LylTW0OQ7uK+gDNA2mQSHnRe3B7ugXLvSzQQ9Ja+1N4Om+WdH1gscON6hZ/hSpP4
q6FNVA3XR792zURHGEY2qw/Equ4JFbbgkPwDBRg8Wkz3ceovbGZPn5MKdzvoTjG6
vU/3XMb+QNaNYAfwSIljvRaAbmc5s05wQXrjTpyWOqdhRSiS0IY7kmycJ6mdx2qb
xZxVQyNywHyruzgrwWMHhJzXh0XDWnFEC3zGN4uZQnHwU/9gEPBRBo/SEmxh80r8
S8rEVBpSyMHaFvbxh1AwGt2BzF9Dcw==
=9hEH
-----END PGP SIGNATURE-----payloadtree 2cf6eb6199349bd987ce079425b89f3f8b02425c
parent a95172b3fa4548d7776eacfa8bc116e8ac47bee1
author Jeremy Kong <jkong@palantir.com> 1686167595 +0100
committer Jeremy Kong <jkong@palantir.com> 1686167595 +0100

checkpoint
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/6152d7f8f23540af99d23cd5cc53da4c6d927cd0html_urlShttps://github.com/palantir/atlasdb/commit/6152d7f8f23540af99d23cd5cc53da4c6d927cd0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/commentsjt  }(login
jeremyk-91idJZ jp  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj|  }(j  
jeremyk-91j  JZ jp  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents]}(jn  (a95172b3fa4548d7776eacfa8bc116e8ac47bee1j  ^https://api.github.com/repos/palantir/atlasdb/commits/a95172b3fa4548d7776eacfa8bc116e8ac47bee1j  Shttps://github.com/palantir/atlasdb/commit/a95172b3fa4548d7776eacfa8bc116e8ac47bee1uastats}(totalK	additionsKٌ	deletionsKufiles](}(jn  (f5576fec11dab7574a66c7a5777068ff72c3b61afilename\atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/RowResult.javastatusaddedjЏ  Kjя  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FRowResult.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FRowResult.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FRowResult.java?ref=6152d7f8f23540af99d23cd5cc53da4c6d927cd0patchX  @@ -0,0 +1,31 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import java.util.Set;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface RowResult {
+    int row();
+
+    Set<ColumnValue> columns();
+
+    static ImmutableRowResult.Builder builder() {
+        return ImmutableRowResult.builder();
+    }
+}u}(jn  (e66c14a0d6a386d85a1459aadf357c73805f2282j֏  matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelection.javaj؏  modifiedjЏ  Kjя  K jڏ  Kjۏ  https://github.com/palantir/atlasdb/blob/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javajݏ  https://github.com/palantir/atlasdb/raw/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javajߏ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.java?ref=6152d7f8f23540af99d23cd5cc53da4c6d927cd0j  Xe  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
+import java.util.Objects;
 import java.util.Optional;
 
 public final class ColumnRangeSelection {
@@ -41,6 +42,19 @@ public static ColumnRangeSelection.Builder builder() {
         return new Builder();
     }
 
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (o == null || getClass() != o.getClass()) return false;
+        ColumnRangeSelection that = (ColumnRangeSelection) o;
+        return Objects.equals(rangeSlice, that.rangeSlice);
+    }
+
+    @Override
+    public int hashCode() {
+        return Objects.hashCode(rangeSlice);
+    }
+
     public static final class Builder {
         private Optional<Integer> startColumnInclusive = Optional.empty();
         private Optional<Integer> endColumnExclusive = Optional.empty();u}(jn  (3f7fd3c53049cefce3e4784ce3db3af2bfb7b1dej֏  oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javaj؏  modifiedjЏ  Kjя  K jڏ  Kjۏ  https://github.com/palantir/atlasdb/blob/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javajݏ  https://github.com/palantir/atlasdb/raw/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javajߏ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=6152d7f8f23540af99d23cd5cc53da4c6d927cd0j  X<  @@ -17,10 +17,12 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.RowResult;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import java.util.List;
 import java.util.Optional;
+import java.util.SortedSet;
 
 /**
  * Allows for convenient interaction with a transactional store.
@@ -34,5 +36,7 @@ public interface InteractiveTransaction {
 
     List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection);
 
+    List<RowResult> getRange(String table, RangeSlice rowsToRead, SortedSet<Integer> columns, boolean reverse);
+
     List<WitnessedTransactionAction> witness();
 }u}(jn  (ef079a1b9722a91d4fd28f740bd05d52c2f78c5bj֏  catlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RangeSlice.javaj؏  modifiedjЏ  Kjя  Kjڏ  Kjۏ  https://github.com/palantir/atlasdb/blob/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeSlice.javajݏ  https://github.com/palantir/atlasdb/raw/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeSlice.javajߏ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeSlice.java?ref=6152d7f8f23540af99d23cd5cc53da4c6d927cd0j  X  @@ -43,8 +43,7 @@ default Range<Integer> asGuavaRange() {
             if (endExclusive().isEmpty()) {
                 return Range.atLeast(startInclusive().get());
             } else {
-                return Range.closedOpen(
-                        startInclusive().get(), endExclusive().get());
+                return Range.closedOpen(startInclusive().get(), endExclusive().get());
             }
         }
     }u}(jn  (d84092d81f257f31552148e466e9ddcfa5bed49dj֏  vatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowRangeReadTransactionAction.javaj؏  modifiedjЏ  Kjя  Kjڏ  Kjۏ  https://github.com/palantir/atlasdb/blob/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowRangeReadTransactionAction.javajݏ  https://github.com/palantir/atlasdb/raw/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowRangeReadTransactionAction.javajߏ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowRangeReadTransactionAction.java?ref=6152d7f8f23540af99d23cd5cc53da4c6d927cd0j  X5  @@ -16,7 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import java.util.Optional;
 import java.util.SortedSet;
 import org.immutables.value.Value;
 
@@ -37,9 +36,12 @@ public interface RowRangeReadTransactionAction extends TransactionAction {
 
     boolean reverse();
 
-
     @Override
     default <T> T accept(TransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
+
+    static ImmutableRowRangeReadTransactionAction.Builder builder() {
+        return ImmutableRowRangeReadTransactionAction.builder();
+    }
 }u}(jn  (47a77393da2fde0041f48c4a7fca53bc9e6bb3f6j֏  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowRangeReadTransactionAction.javaj؏  modifiedjЏ  Kjя  Kjڏ  Kjۏ  https://github.com/palantir/atlasdb/blob/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowRangeReadTransactionAction.javajݏ  https://github.com/palantir/atlasdb/raw/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowRangeReadTransactionAction.javajߏ  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowRangeReadTransactionAction.java?ref=6152d7f8f23540af99d23cd5cc53da4c6d927cd0j  X@  @@ -16,23 +16,23 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.google.common.collect.Multimap;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.RowResult;
 import com.palantir.atlasdb.workload.transaction.RowRangeReadTransactionAction;
+import java.util.List;
 import org.immutables.value.Value;
 
 @Value.Immutable
 public interface WitnessedRowRangeReadTransactionAction extends WitnessedTransactionAction {
     RowRangeReadTransactionAction originalQuery();
 
-    Multimap<Integer, ColumnValue> result();
+    List<RowResult> results();
 
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-//    static ImmutableWitnessedRowReadTransactionAction.Builder builder() {
-//        return ImmutableWitnessedRowReadTransactionAction.builder();
-//    }
+    static ImmutableWitnessedRowRangeReadTransactionAction.Builder builder() {
+        return ImmutableWitnessedRowRangeReadTransactionAction.builder();
+    }
 }u}(jn  (67555ea5778c74945a03f8a99c04f5e5dbdcf04fj֏  gatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/RangeSliceTest.javaj؏  modifiedjЏ  K	jя  Kjڏ  Kjۏ  https://github.com/palantir/atlasdb/blob/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeSliceTest.javajݏ  https://github.com/palantir/atlasdb/raw/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeSliceTest.javajߏ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeSliceTest.java?ref=6152d7f8f23540af99d23cd5cc53da4c6d927cd0j  X  @@ -27,23 +27,18 @@
 public class RangeSliceTest {
     @Test
     public void cannotCreateRangeWithStartColumnGreaterThanEndColumn() {
-        assertThatLoggableExceptionThrownBy(() -> RangeSlice.builder()
-                .startInclusive(5)
-                .endExclusive(4)
-                .build())
+        assertThatLoggableExceptionThrownBy(() ->
+                        RangeSlice.builder().startInclusive(5).endExclusive(4).build())
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Start must be less than or equal to end")
                 .hasExactlyArgs(
-                        SafeArg.of("startInclusive", Optional.of(5)),
-                        SafeArg.of("endExclusive", Optional.of(4)));
+                        SafeArg.of("startInclusive", Optional.of(5)), SafeArg.of("endExclusive", Optional.of(4)));
     }
 
     @Test
     public void emptyRangeDoesNotContainAnyElements() {
-        RangeSlice emptyRange = RangeSlice.builder()
-                .startInclusive(6)
-                .endExclusive(6)
-                .build();
+        RangeSlice emptyRange =
+                RangeSlice.builder().startInclusive(6).endExclusive(6).build();
         assertThat(emptyRange.contains(5)).isFalse();
         assertThat(emptyRange.contains(6)).isFalse();
         assertThat(emptyRange.contains(7)).isFalse();
@@ -53,10 +48,8 @@ public void emptyRangeDoesNotContainAnyElements() {
 
     @Test
     public void singleElementRangeContainsJustItself() {
-        RangeSlice justSeven = RangeSlice.builder()
-                .startInclusive(7)
-                .endExclusive(8)
-                .build();
+        RangeSlice justSeven =
+                RangeSlice.builder().startInclusive(7).endExclusive(8).build();
         assertThat(justSeven.contains(6)).isFalse();
         assertThat(justSeven.contains(7)).isTrue();
         assertThat(justSeven.contains(8)).isFalse();
@@ -76,8 +69,7 @@ public void universalRangeContainsEverything() {
 
     @Test
     public void lowerBoundedRangesContainCorrectElements() {
-        RangeSlice fiveOrGreater =
-                RangeSlice.builder().startInclusive(5).build();
+        RangeSlice fiveOrGreater = RangeSlice.builder().startInclusive(5).build();
         assertThat(fiveOrGreater.contains(4)).isFalse();
         assertThat(fiveOrGreater.contains(5)).isTrue();
         assertThat(fiveOrGreater.contains(6)).isTrue();
@@ -87,8 +79,7 @@ public void lowerBoundedRangesContainCorrectElements() {
 
     @Test
     public void upperBoundedRangesContainCorrectElements() {
-        RangeSlice lessThanFive =
-                RangeSlice.builder().endExclusive(5).build();
+        RangeSlice lessThanFive = RangeSlice.builder().endExclusive(5).build();
         assertThat(lessThanFive.contains(4)).isTrue();
         assertThat(lessThanFive.contains(5)).isFalse();
         assertThat(lessThanFive.contains(6)).isFalse();u}(jn  (2d4846116eb296c365293a848a93e718bf491802j֏  hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj؏  modifiedjЏ  Kjя  K jڏ  Kjۏ  https://github.com/palantir/atlasdb/blob/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajݏ  https://github.com/palantir/atlasdb/raw/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajߏ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=6152d7f8f23540af99d23cd5cc53da4c6d927cd0j  Xg  @@ -27,6 +27,7 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -110,5 +111,12 @@ public Optional<InvalidWitnessedTransactionAction> visit(
             }
             return Optional.empty();
         }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedRowRangeReadTransactionAction rowReadTransactionAction) {
+            // TODO (jkong): Not implemented yet!
+            return Optional.empty();
+        }
     }
 }u}(jn  (406a01e394b615931eedd971bb13783e645fff3cj֏  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj؏  modifiedjЏ  Kjя  K jڏ  Kjۏ  https://github.com/palantir/atlasdb/blob/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajݏ  https://github.com/palantir/atlasdb/raw/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajߏ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=6152d7f8f23540af99d23cd5cc53da4c6d927cd0j  X  @@ -26,6 +26,7 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -109,6 +110,13 @@ public Optional<InvalidWitnessedTransactionAction> visit(
         return Optional.empty();
     }
 
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(
+            WitnessedRowRangeReadTransactionAction rowReadTransactionAction) {
+        // TODO (jkong): Not implemented yet!
+        return Optional.empty();
+    }
+
     /**
      * Applies writes to both our read and latest table view.
      * Latest table view needs to be updated to apply our writes from our transaction,u}(jn  (e7d8e2e80e2f1c721abf845d1e2079db723f02e1j֏  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj؏  modifiedjЏ  K%jя  K jڏ  K%jۏ  https://github.com/palantir/atlasdb/blob/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javajݏ  https://github.com/palantir/atlasdb/raw/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javajߏ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=6152d7f8f23540af99d23cd5cc53da4c6d927cd0j  Xw  @@ -23,13 +23,17 @@
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.RangeSlice;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.RowRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.base.BatchingVisitables;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
@@ -40,6 +44,7 @@
 import java.util.Map.Entry;
 import java.util.Optional;
 import java.util.Set;
+import java.util.SortedSet;
 import java.util.function.BiFunction;
 import java.util.function.Function;
 import java.util.stream.Collectors;
@@ -131,6 +136,38 @@ public List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRang
                 table);
     }
 
+    @Override
+    public List<RowResult> getRange(String table, RangeSlice rowsToRead, SortedSet<Integer> columns, boolean reverse) {
+        return run(
+                tableReference -> {
+                    List<RowResult> rowResults = BatchingVisitables.copyToList(transaction.getRange(
+                                    tableReference, AtlasDbUtils.toAtlasRangeRequest(rowsToRead, columns, reverse)))
+                            .stream()
+                            .map(atlasRowResult -> {
+                                return RowResult.builder()
+                                        .row(AtlasDbUtils.fromAtlasRow(atlasRowResult.getRowName()))
+                                        .addAllColumns(atlasRowResult.getColumns().entrySet().stream()
+                                                .map(entry -> ColumnValue.of(
+                                                        AtlasDbUtils.fromAtlasColumn(entry.getKey()),
+                                                        AtlasDbUtils.fromAtlasValue(entry.getValue())))
+                                                .collect(Collectors.toList()))
+                                        .build();
+                            })
+                            .collect(Collectors.toList());
+                    witnessedTransactionActions.add(WitnessedRowRangeReadTransactionAction.builder()
+                            .originalQuery(RowRangeReadTransactionAction.builder()
+                                    .table(table)
+                                    .rowsToRead(rowsToRead)
+                                    .columns(columns)
+                                    .reverse(reverse)
+                                    .build())
+                            .addAllResults(rowResults)
+                            .build());
+                    return rowResults;
+                },
+                table);
+    }
+
     @Override
     public List<WitnessedTransactionAction> witness() {
         hasFinished = true;u}(jn  (521324f315f6de041ad3b8de8272041d01233b31j֏  fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj؏  modifiedjЏ  Kjя  Kjڏ  Kjۏ  https://github.com/palantir/atlasdb/blob/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javajݏ  https://github.com/palantir/atlasdb/raw/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javajߏ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=6152d7f8f23540af99d23cd5cc53da4c6d927cd0j  XP  @@ -173,7 +173,11 @@ public Void visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransact
 
         @Override
         public Void visit(RowRangeReadTransactionAction rowRangeReadTransactionAction) {
-            // TODO (jkong): Not implemented yet!
+            transaction.getRange(
+                    rowRangeReadTransactionAction.table(),
+                    rowRangeReadTransactionAction.rowsToRead(),
+                    rowRangeReadTransactionAction.columns(),
+                    rowRangeReadTransactionAction.reverse());
             return null;
         }
     }u}(jn  (f935f438d697192e9af96d7f0fc4e8d8d3332c39j֏  patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj؏  modifiedjЏ  Kjя  K jڏ  Kjۏ  https://github.com/palantir/atlasdb/blob/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javajݏ  https://github.com/palantir/atlasdb/raw/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javajߏ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=6152d7f8f23540af99d23cd5cc53da4c6d927cd0j  X   @@ -20,6 +20,7 @@
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -61,6 +62,11 @@ public Void visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeRea
         return null;
     }
 
+    @Override
+    public Void visit(WitnessedRowRangeReadTransactionAction rowReadTransactionAction) {
+        return null;
+    }
+
     public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
         return values.getSnapshot();
     }u}(jn  (2995e1832e3c395e4a1b42f3a55dc9bd7dbed1daj֏  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javaj؏  modifiedjЏ  Kjя  Kjڏ  Kjۏ  https://github.com/palantir/atlasdb/blob/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javajݏ  https://github.com/palantir/atlasdb/raw/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javajߏ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=6152d7f8f23540af99d23cd5cc53da4c6d927cd0j  X  @@ -18,8 +18,8 @@
 
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 
@@ -43,7 +43,8 @@ public DeleteTransactionAction visit(WitnessedDeleteTransactionAction deleteTran
     }
 
     @Override
-    public RowColumnRangeReadTransactionAction visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+    public RowColumnRangeReadTransactionAction visit(
+            WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
         return rowColumnRangeReadTransactionAction.originalQuery();
     }
 u}(jn  (65f0d15c70aa7c97551b817bf2acc50f37464105j֏  Zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/AtlasDbUtils.javaj؏  modifiedjЏ  Kjя  K jڏ  Kjۏ  https://github.com/palantir/atlasdb/blob/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javajݏ  https://github.com/palantir/atlasdb/raw/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javajߏ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.java?ref=6152d7f8f23540af99d23cd5cc53da4c6d927cd0j  X  @@ -19,6 +19,8 @@
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.keyvalue.api.ColumnSelection;
+import com.palantir.atlasdb.keyvalue.api.RangeRequest;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
 import com.palantir.atlasdb.table.description.NameMetadataDescription;
@@ -27,9 +29,12 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RangeSlice;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.SortedSet;
+import java.util.stream.Collectors;
 
 public final class AtlasDbUtils {
 
@@ -55,6 +60,10 @@ public static byte[] toAtlasKey(int key) {
         return Ints.toByteArray(key);
     }
 
+    public static int fromAtlasRow(byte[] rowName) {
+        return Ints.fromByteArray(rowName);
+    }
+
     public static int fromAtlasColumn(byte[] bytes) {
         return Ints.fromByteArray(bytes);
     }
@@ -119,4 +128,14 @@ public static com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection toAtlasColu
                         .map(AtlasDbUtils::toAtlasKey)
                         .orElse(null));
     }
+
+    public static RangeRequest toAtlasRangeRequest(RangeSlice rowsToRead, SortedSet<Integer> columns, boolean reverse) {
+        RangeRequest.Builder builder = RangeRequest.builder(reverse)
+                .retainColumns(ColumnSelection.create(
+                        columns.stream().map(AtlasDbUtils::toAtlasKey).collect(Collectors.toSet())))
+                .batchHint(2);
+        rowsToRead.startInclusive().ifPresent(row -> builder.startRowInclusive(toAtlasKey(row)));
+        rowsToRead.endExclusive().ifPresent(row -> builder.endRowExclusive(toAtlasKey(row)));
+        return builder.build();
+    }
 }u}(jn  (871153ee9555104bd47823cde413da80533a67a0j֏  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj؏  modifiedjЏ  K>jя  K jڏ  K>jۏ  https://github.com/palantir/atlasdb/blob/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajݏ  https://github.com/palantir/atlasdb/raw/6152d7f8f23540af99d23cd5cc53da4c6d927cd0/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajߏ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=6152d7f8f23540af99d23cd5cc53da4c6d927cd0j  X  @@ -25,12 +25,16 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
+import com.google.common.collect.ImmutableSortedSet;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RangeSlice;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.RowRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -172,6 +176,52 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
                                                 .collect(Collectors.toList()))));
     }
 
+    @Test
+    public void witnessRecordsRowRangeScans() {
+        assertThat(readWrite(transaction -> {
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.getRange(
+                            TABLE_1,
+                            RangeSlice.builder().build(),
+                            ImmutableSortedSet.of(WORKLOAD_CELL_TWO.column()),
+                            false);
+                }))
+                .containsExactly(
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
+                        WitnessedRowRangeReadTransactionAction.builder()
+                                .originalQuery(RowRangeReadTransactionAction.builder()
+                                        .table(TABLE_1)
+                                        .rowsToRead(RangeSlice.builder().build())
+                                        .columns(ImmutableSortedSet.of(WORKLOAD_CELL_TWO.column()))
+                                        .reverse(false)
+                                        .build())
+                                .addResults(RowResult.builder()
+                                        .row(WORKLOAD_CELL_TWO.key())
+                                        .addColumns(ColumnValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
+                                        .build())
+                                .build());
+    }
+
+    @Test
+    public void emptyRowRangeScansAreRecorded() {
+        // TODO
+    }
+
+    @Test
+    public void rowRangeScansReturnPreciselyValuesInRange() {
+        // TODO
+    }
+
+    @Test
+    public void rowRangeScansCanBeReversed() {
+        // TODO
+    }
+
+    @Test
+    public void rowRangeScansOnlyReturnNecessaryColumns() {
+        // TODO
+    }
+
     @Test
     public void readThrowsWhenTableDoesNotExist() {
         assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.read(TABLE_1, WORKLOAD_CELL_ONE));
@@ -194,6 +244,12 @@ public void getRowsColumnRangeThrowsWhenTableDoesNotExist() {
                 TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.builder().build()));
     }
 
+    @Test
+    public void getRangeThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.getRange(
+                TABLE_1, RangeSlice.builder().build(), ImmutableSortedSet.of(WORKLOAD_CELL_ONE.column()), false));
+    }
+
     @Test
     public void readThrowsWhenInteractiveTransactionAlreadyWitnessed() {
         assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
@@ -218,6 +274,12 @@ public void getRowColumnRangeThrowsWhenInteractiveTransactionAlreadyWitnessed()
                 TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.builder().build()));
     }
 
+    @Test
+    public void getRangeThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(transaction -> transaction.getRange(
+                TABLE_1, RangeSlice.builder().build(), ImmutableSortedSet.of(WORKLOAD_CELL_ONE.column()), false));
+    }
+
     private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         return manager.runTaskWithRetry(atlasTransaction -> {
             AtlasDbInteractiveTransaction interactiveTransaction =ueu(294519fa6f6dc1183d59fdef9ef3b338849b7679}(sha(294519fa6f6dc1183d59fdef9ef3b338849b7679node_idEC_kwDOAjP5fdoAKDI5NDUxOWZhNmY2ZGMxMTgzZDU5ZmRlZjllZjNiMzM4ODQ5Yjc2Nzkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-16T11:42:27Zu	committer}(j]  
Ahmed Alouanej_  aalouane@palantir.comja  2023-05-16T11:42:27Zumessage2++++tree}(jU  (7c68fd200471ef95463533a968f8754fa65d0e43url`https://api.github.com/repos/palantir/atlasdb/git/trees/7c68fd200471ef95463533a968f8754fa65d0e43ujm  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/294519fa6f6dc1183d59fdef9ef3b338849b7679
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRjbCMACgkQPlMHVIT1
yhpH9AgAp27Yf5YHAQ6W3M9iArrFV3R3t9WI2QcQRNZluetl+3lbLXmVrAxRT10S
YYpK+K0AbeXaI2EhNx3uutwQCRkPiDppz6ax4gkoapdPmbeXYrOpuUcuyyQ/mY6H
njpBwYxXurrrVawLFDdgp7GvR7gD3htYfnaKBepmE4JI0KtNk/cCQxw4OzkCfrBr
zVOTDP5bVCdpjlKd4/l0QoyDicqWP1VgRI9Cv10uP6+/3VtmnPi6ofBGnfJPTzEg
Dntk5g0/7q4fCyo4LCj9cS+1frsZPDhOgjqBjl4Mtoo94ydEPIjYDg7e1HaahKDX
QpngZJtQBUd8nlETr/5dSVBOXjqk8A==
=h4va
-----END PGP SIGNATURE-----     payloadtree 7c68fd200471ef95463533a968f8754fa65d0e43
parent 314af27ccfa736f9a80c768885a8d6ca6e86bd2e
author Ahmed Alouane <aalouane@palantir.com> 1684237347 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684237347 +0100

2++++
uujm  ^https://api.github.com/repos/palantir/atlasdb/commits/294519fa6f6dc1183d59fdef9ef3b338849b7679html_urlShttps://github.com/palantir/atlasdb/commit/294519fa6f6dc1183d59fdef9ef3b338849b7679comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/294519fa6f6dc1183d59fdef9ef3b338849b7679/commentsj[  }(loginergo14idJjW  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jm  #https://api.github.com/users/ergo14j{  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujc  }(j  ergo14j  JjW  MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j  h5jm  #https://api.github.com/users/ergo14j{  https://github.com/ergo14j  -https://api.github.com/users/ergo14/followersj  :https://api.github.com/users/ergo14/following{/other_user}j  3https://api.github.com/users/ergo14/gists{/gist_id}j  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j  1https://api.github.com/users/ergo14/subscriptionsj  (https://api.github.com/users/ergo14/orgsj  )https://api.github.com/users/ergo14/reposj  4https://api.github.com/users/ergo14/events{/privacy}j  3https://api.github.com/users/ergo14/received_eventsj  Userj  uparents]}(jU  (314af27ccfa736f9a80c768885a8d6ca6e86bd2ejm  ^https://api.github.com/repos/palantir/atlasdb/commits/314af27ccfa736f9a80c768885a8d6ca6e86bd2ej{  Shttps://github.com/palantir/atlasdb/commit/314af27ccfa736f9a80c768885a8d6ca6e86bd2euastats}(totalK	additionsK	deletionsKufiles]}(jU  (235551c6a4b8dbb8d9f09184743a9f99d4a6278ffilename.circleci/config.ymlstatusmodifiedj  Kj  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/294519fa6f6dc1183d59fdef9ef3b338849b7679/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/294519fa6f6dc1183d59fdef9ef3b338849b7679/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=294519fa6f6dc1183d59fdef9ef3b338849b7679patchX  @@ -112,7 +112,7 @@ jobs:
   deploy:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: 2xlarge
+    resource_class: 2xlarge+
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"uau(919d571f0de7222781745198478d0286c515df3b}(sha(919d571f0de7222781745198478d0286c515df3bnode_idEC_kwDOAjP5fdoAKDkxOWQ1NzFmMGRlNzIyMjc4MTc0NTE5ODQ3OGQwMjg2YzUxNWRmM2Icommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-01T22:29:15Zu	committer}(jԐ  
Ahmed Alouanej֐  aalouane@palantir.comjؐ  2023-05-01T22:29:15Zumessagerequire fixtree}(j̐  (f1e54b5aaf1c70a3f86fd337f58eb30dcda6ffbdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/f1e54b5aaf1c70a3f86fd337f58eb30dcda6ffbduj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/919d571f0de7222781745198478d0286c515df3b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRQPTsACgkQPlMHVIT1
yho67wf+JRVoPnRI34v0Vi/ii9fLehsEf7W6VY6NJ7+tIDvPL6IikUi4tE+mNh27
pEmJQ9pmp8XRFwZTizjYU2PRRD4leeaL+5o1sgyr/p0HVetRLWBXQUkerH+PdARi
dMSycqh/Aziu76HJos9AlPJUWkAQKvYhqIXrDmSQIK9IpC4RpFsktBx+uqw6HBHs
llGbzL39pIopI8TDWrHgrYQjKdSn84yFUyVr2SNzXQonUXvKZbEH/RwkX4sHRwO1
pIO0qHIxWiBBRw5YiZGEFaphzEtTBPw5jAtYA3DF8ouV37yFBNNOVEZrphop0diD
40Ww9MUsRM+MgJIS3bqP51ZR4ndiPw==
=zREL
-----END PGP SIGNATURE-----payloadtree f1e54b5aaf1c70a3f86fd337f58eb30dcda6ffbd
parent 2e809dfa98b446ac6878b21d5f7b19e733d908c5
author Ahmed Alouane <aalouane@palantir.com> 1682980155 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682980155 +0100

require fix
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/919d571f0de7222781745198478d0286c515df3bhtml_urlShttps://github.com/palantir/atlasdb/commit/919d571f0de7222781745198478d0286c515df3bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/919d571f0de7222781745198478d0286c515df3b/commentsjҐ  }(loginergo14idJjΐ  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujڐ  }(j  ergo14j  Jjΐ  MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j  h5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14j   -https://api.github.com/users/ergo14/followersj  :https://api.github.com/users/ergo14/following{/other_user}j  3https://api.github.com/users/ergo14/gists{/gist_id}j  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j  1https://api.github.com/users/ergo14/subscriptionsj
  (https://api.github.com/users/ergo14/orgsj  )https://api.github.com/users/ergo14/reposj  4https://api.github.com/users/ergo14/events{/privacy}j  3https://api.github.com/users/ergo14/received_eventsj  Userj  uparents]}(j̐  (2e809dfa98b446ac6878b21d5f7b19e733d908c5j  ^https://api.github.com/repos/palantir/atlasdb/commits/2e809dfa98b446ac6878b21d5f7b19e733d908c5j  Shttps://github.com/palantir/atlasdb/commit/2e809dfa98b446ac6878b21d5f7b19e733d908c5uastats}(totalK	additionsK	deletionsKufiles]}(j̐  (21dd35143d6e70c512522e056815abe591dbffc2filename.circleci/config.ymlstatusmodifiedj.  Kj/  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/919d571f0de7222781745198478d0286c515df3b/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/919d571f0de7222781745198478d0286c515df3b/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=919d571f0de7222781745198478d0286c515df3bpatchX  @@ -164,7 +164,7 @@ workflows:
             branches:
               ignore: [develop]
       - deploy:
-          requires: [build, test]
+          requires: [build, test-no-tl, test-tl]
           filters:
             branches:
               only: developuau(8074a9d364d1680530a98df0d6ee5be147a647dc}(sha(8074a9d364d1680530a98df0d6ee5be147a647dcnode_idEC_kwDOAjP5fdoAKDgwNzRhOWQzNjRkMTY4MDUzMGE5OGRmMGQ2ZWU1YmUxNDdhNjQ3ZGMcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-07-11T16:34:46Zu	committer}(jK  svc-autoreleasejM  -pd-foundry-infrastructure-notify@palantir.comjO  2023-07-11T16:34:46ZumessageAutorelease 0.892.0

[skip ci]tree}(jC  (b721f356cf890dd2add12b7bafb4aa74b7e1b54curl`https://api.github.com/repos/palantir/atlasdb/git/trees/b721f356cf890dd2add12b7bafb4aa74b7e1b54cuj[  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8074a9d364d1680530a98df0d6ee5be147a647dc
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmSthKsACgkQhbrR8ip7mDCWvQD/ZY+JxZ/CqSREyNA9mF0Pefsh
j3UTLLkCCOxWyPawwrQBAI1ImZAeNy+nZnZ67XO5ynaHg1p2eyKxxsouuOj0jwv5
=xBu4
-----END PGP SIGNATURE-----
payloadX0  tree b721f356cf890dd2add12b7bafb4aa74b7e1b54c
parent e5b4e3e9687709d4aac0b320fb5b34c9d2d7a46f
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1689093286 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1689093286 +0000

Autorelease 0.892.0

[skip ci]uuj[  ^https://api.github.com/repos/palantir/atlasdb/commits/8074a9d364d1680530a98df0d6ee5be147a647dchtml_urlShttps://github.com/palantir/atlasdb/commit/8074a9d364d1680530a98df0d6ee5be147a647dccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8074a9d364d1680530a98df0d6ee5be147a647dc/commentsjI  }(loginsvc-autoreleaseidJ(jE  MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j[  ,https://api.github.com/users/svc-autoreleaseji  "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminujQ  }(jn  svc-autoreleasejp  J(jE  MDQ6VXNlcjUxNzE4MzQ2jr  4https://avatars.githubusercontent.com/u/51718346?v=4jt  h5j[  ,https://api.github.com/users/svc-autoreleaseji  "https://github.com/svc-autoreleasejw  6https://api.github.com/users/svc-autorelease/followersjy  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j{  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j}  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j  :https://api.github.com/users/svc-autorelease/subscriptionsj  1https://api.github.com/users/svc-autorelease/orgsj  2https://api.github.com/users/svc-autorelease/reposj  =https://api.github.com/users/svc-autorelease/events{/privacy}j  <https://api.github.com/users/svc-autorelease/received_eventsj  Userj  uparents]}(jC  (e5b4e3e9687709d4aac0b320fb5b34c9d2d7a46fj[  ^https://api.github.com/repos/palantir/atlasdb/commits/e5b4e3e9687709d4aac0b320fb5b34c9d2d7a46fji  Shttps://github.com/palantir/atlasdb/commit/e5b4e3e9687709d4aac0b320fb5b34c9d2d7a46fuastats}(totalK 	additionsK 	deletionsK ufiles]}(jC  (ba1c3212ee4a0e25e95569fe719b7b61bd3eec15filename changelog/0.892.0/pr-6650.v2.ymlstatusrenamedj  K j  K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/8074a9d364d1680530a98df0d6ee5be147a647dc/changelog%2F0.892.0%2Fpr-6650.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/8074a9d364d1680530a98df0d6ee5be147a647dc/changelog%2F0.892.0%2Fpr-6650.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.892.0%2Fpr-6650.v2.yml?ref=8074a9d364d1680530a98df0d6ee5be147a647dcprevious_filename$changelog/@unreleased/pr-6650.v2.ymluau(aa1345f19a245d904c77e354e482dacb0be4bc21}(sha(aa1345f19a245d904c77e354e482dacb0be4bc21node_idEC_kwDOAjP5fdoAKGFhMTM0NWYxOWEyNDVkOTA0Yzc3ZTM1NGU0ODJkYWNiMGJlNGJjMjEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-14T14:42:39Zu	committer}(j  
Sam Kramerjđ  skramer@palantir.comjƑ  2023-04-14T14:42:39ZumessageFCheck for serializable invariant for the single row two cells workflowtree}(j  (2248fe2f084c89f4fdd55cea18ce034534aa76e8url`https://api.github.com/repos/palantir/atlasdb/git/trees/2248fe2f084c89f4fdd55cea18ce034534aa76e8ujґ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/aa1345f19a245d904c77e354e482dacb0be4bc21
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ5Zl8ACgkQmPPOpKR4
XS3C+wgAm6jbc6AgunYDFipnPlfR6UvtRJ9RFBIJhCXLdtGfnrjJ2Hl56fCnIUtn
MN+zIEG+9PXhmW9nWzMEDAOYfSW0l7pU1remaoX/+v8KegyP7XLE3J2bRB5xVNlS
yfVCtOc/ZTGsvxRd0G77OTHYJXnrKfBUdtwwI0v/cVqIRibRxEbttAHorrnXkmzG
u5AIF936tzp6IzSQxFI5XZAw2dUKJziLilVprL2BDgZzpd8dRQi9RRY2N14537i5
bpFk04HKLe3e7KN3Tuz4jN0oSHZJPWOP7fAs+0cfEqzp7BJJdDENIU3wthCY3eAJ
TJv1D0YretejCr7w2F/7C8/U+y3wgA==
=Wn4c
-----END PGP SIGNATURE-----payloadX  tree 2248fe2f084c89f4fdd55cea18ce034534aa76e8
parent 0e14f67617dd788589625ee19cec2170efae2ee4
author Sam Kramer <skramer@palantir.com> 1681483359 +0100
committer Sam Kramer <skramer@palantir.com> 1681483359 +0100

Check for serializable invariant for the single row two cells workflow
uujґ  ^https://api.github.com/repos/palantir/atlasdb/commits/aa1345f19a245d904c77e354e482dacb0be4bc21html_urlShttps://github.com/palantir/atlasdb/commit/aa1345f19a245d904c77e354e482dacb0be4bc21comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/aa1345f19a245d904c77e354e482dacb0be4bc21/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jґ  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujȑ  }(j  
Sam-Kramerj  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j  h5jґ  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj  1https://api.github.com/users/Sam-Kramer/followersj  >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j  5https://api.github.com/users/Sam-Kramer/subscriptionsj  ,https://api.github.com/users/Sam-Kramer/orgsj  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj   Userj  uparents]}(j  (0e14f67617dd788589625ee19cec2170efae2ee4jґ  ^https://api.github.com/repos/palantir/atlasdb/commits/0e14f67617dd788589625ee19cec2170efae2ee4j  Shttps://github.com/palantir/atlasdb/commit/0e14f67617dd788589625ee19cec2170efae2ee4uastats}(totalKw	additionsKm	deletionsK
ufiles](}(j  (b870e40056d44cb7c1e844730a97bc94774a820afilenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/aa1345f19a245d904c77e354e482dacb0be4bc21/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/aa1345f19a245d904c77e354e482dacb0be4bc21/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=aa1345f19a245d904c77e354e482dacb0be4bc21patchX7  @@ -25,7 +25,8 @@
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
-import com.palantir.atlasdb.workload.invariant.DurableWritesMetricInvariantReporter;
+import com.palantir.atlasdb.workload.invariant.DurableWritesInvariantMetricReporter;
+import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
 import com.palantir.atlasdb.workload.runner.AntithesisWorkflowRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
@@ -104,9 +105,11 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 Set.of()),
                         workflowConfig,
                         MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)),
-                List.of(new DurableWritesMetricInvariantReporter(
-                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
-                        DurableWritesMetrics.of(taggedMetricRegistry))));
+                List.of(
+                        new DurableWritesInvariantMetricReporter(
+                                SingleRowTwoCellsWorkflows.class.getSimpleName(),
+                                DurableWritesMetrics.of(taggedMetricRegistry)),
+                        SerializableInvariantLogReporter.INSTANCE));
         log.info("antithesis: terminate");
 
         workflowsRanLatch.countDown();u}(j  (79aa8cfd57984c9bdea2aaf3249996fe3fa9f4d7j"  watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporter.javaj$  renamedj  Kj  Kj&  Kj'  https://github.com/palantir/atlasdb/blob/aa1345f19a245d904c77e354e482dacb0be4bc21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.javaj)  https://github.com/palantir/atlasdb/raw/aa1345f19a245d904c77e354e482dacb0be4bc21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.javaj+  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.java?ref=aa1345f19a245d904c77e354e482dacb0be4bc21j-  X  @@ -24,15 +24,15 @@
 import java.util.Map;
 import java.util.function.Consumer;
 
-public final class DurableWritesMetricInvariantReporter
+public final class DurableWritesInvariantMetricReporter
         implements InvariantReporter<Map<TableAndWorkloadCell, MismatchedValue>> {
 
-    private static final SafeLogger log = SafeLoggerFactory.get(DurableWritesMetricInvariantReporter.class);
+    private static final SafeLogger log = SafeLoggerFactory.get(DurableWritesInvariantMetricReporter.class);
 
     private final String workflow;
     private final DurableWritesMetrics durableWritesMetrics;
 
-    public DurableWritesMetricInvariantReporter(String workflow, DurableWritesMetrics durableWritesMetrics) {
+    public DurableWritesInvariantMetricReporter(String workflow, DurableWritesMetrics durableWritesMetrics) {
         this.workflow = workflow;
         this.durableWritesMetrics = durableWritesMetrics;
     }previous_filenamewatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporter.javau}(j  (0f489a908a062dc89f3e2a38f2be28d193d61511j"  satlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporter.javaj$  addedj  K-j  K j&  K-j'  https://github.com/palantir/atlasdb/blob/aa1345f19a245d904c77e354e482dacb0be4bc21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.javaj)  https://github.com/palantir/atlasdb/raw/aa1345f19a245d904c77e354e482dacb0be4bc21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.javaj+  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.java?ref=aa1345f19a245d904c77e354e482dacb0be4bc21j-  X>  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.function.Consumer;
+
+public enum SerializableInvariantLogReporter implements InvariantReporter<List<InvalidWitnessedTransaction>> {
+    INSTANCE;
+    private static final SafeLogger log = SafeLoggerFactory.get(SerializableInvariantLogReporter.class);
+
+    @Override
+    public Invariant<List<InvalidWitnessedTransaction>> invariant() {
+        return SerializableInvariant.INSTANCE;
+    }
+
+    @Override
+    public Consumer<List<InvalidWitnessedTransaction>> consumer() {
+        return invalidWitnessedTransactions -> {
+            if (!invalidWitnessedTransactions.isEmpty()) {
+                log.error(
+                        "Detected transactions that violated our serializable isolation invariant {}",
+                        SafeArg.of("invalidWitnessedTransactions", invalidWitnessedTransactions));
+            }
+        };
+    }
+}u}(j  (95f6220e03fd5f14e9922f8b70989e0b8dad5a69j"  {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporterTest.javaj$  renamedj  Kj  Kj&  Kj'  https://github.com/palantir/atlasdb/blob/aa1345f19a245d904c77e354e482dacb0be4bc21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj)  https://github.com/palantir/atlasdb/raw/aa1345f19a245d904c77e354e482dacb0be4bc21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj+  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.java?ref=aa1345f19a245d904c77e354e482dacb0be4bc21j-  X  @@ -37,15 +37,15 @@
 import java.util.Set;
 import org.junit.Test;
 
-public final class DurableWritesMetricInvariantReporterTest {
+public final class DurableWritesInvariantMetricReporterTest {
 
     private final TaggedMetricRegistry taggedMetricRegistry = new DefaultTaggedMetricRegistry();
     private final DurableWritesMetrics metrics = DurableWritesMetrics.of(taggedMetricRegistry);
 
     @Test
     public void runIncreasesMetricsIfViolationsFound() {
-        DurableWritesMetricInvariantReporter reporter =
-                new DurableWritesMetricInvariantReporter(WorkloadTestHelpers.WORKFLOW, metrics);
+        DurableWritesInvariantMetricReporter reporter =
+                new DurableWritesInvariantMetricReporter(WorkloadTestHelpers.WORKFLOW, metrics);
         AtlasDbTransactionStoreFactory factory = new AtlasDbTransactionStoreFactory(
                 TransactionManagers.createInMemory(Set.of()), Optional.of("keyspace"));
         TransactionStore store = factory.create(j7  {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporterTest.javau}(j  (61f1a620b29aa305c11b38dca9efc4bfd03fa771j"  watlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporterTest.javaj$  addedj  K3j  K j&  K3j'  https://github.com/palantir/atlasdb/blob/aa1345f19a245d904c77e354e482dacb0be4bc21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj)  https://github.com/palantir/atlasdb/raw/aa1345f19a245d904c77e354e482dacb0be4bc21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj+  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.java?ref=aa1345f19a245d904c77e354e482dacb0be4bc21j-  XC  @@ -0,0 +1,51 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import java.util.List;
+import org.junit.Test;
+
+public class SerializableInvariantLogReporterTest {
+    @Test
+    public void invariantIsSerializable() {
+        assertThat(SerializableInvariantLogReporter.INSTANCE.invariant()).isEqualTo(SerializableInvariant.INSTANCE);
+    }
+
+    @Test
+    public void consumerDoesNotThrowWhenAcceptingViolations() {
+        assertThatCode(() -> SerializableInvariantLogReporter.INSTANCE
+                        .consumer()
+                        .accept(List.of(InvalidWitnessedTransaction.of(
+                                ImmutableWitnessedTransaction.builder()
+                                        .startTimestamp(1)
+                                        .build(),
+                                List.of()))))
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void consumerDoesNotThrowWhenAcceptingNoViolations() {
+        assertThatCode(() ->
+                        SerializableInvariantLogReporter.INSTANCE.consumer().accept(List.of()))
+                .doesNotThrowAnyException();
+    }
+}ueu(b40de058c8d34806113f6803cb6f9bd469906455}(sha(b40de058c8d34806113f6803cb6f9bd469906455node_idEC_kwDOAjP5fdoAKGI0MGRlMDU4YzhkMzQ4MDYxMTNmNjgwM2NiNmY5YmQ0Njk5MDY0NTUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-06T19:47:21Zu	committer}(j\  Jeremy Kongj^  jkong@palantir.comj`  2023-06-06T19:47:21Zumessageupdate random workflowtree}(jT  (1639d8d5784fee2a32ba356f686f3552df7db934url`https://api.github.com/repos/palantir/atlasdb/git/trees/1639d8d5784fee2a32ba356f686f3552df7db934ujl  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b40de058c8d34806113f6803cb6f9bd469906455
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR/jUkACgkQTLdFKain
zjx5QAf+MdNQDwdEk2aX6S91FwkBWAOG43saET+HdMlKqhWsw7uR1jpvLfADo213
Ij1GZA0Vyh0qaYGyrV+qeP+YUTiI57/p9DWrb698osqk9YMkSoVffppZcCzvGpMM
hhLvWCod7PfQnAIpxK8DCCcoZQV6NndQ6/PLgxhYKqvzIS7TeVjlxBonfauYDdnw
FSZ4LpatZjWyiz+ADyhLR+x3fBbzmmsxbK88EvpK1hD0fCJQiwkgU/Y6Y+b+xdyQ
huT5r+jq9yItQY+5rv80BtLQbzbgZZ0yeDbUaLHHALYsTO+brEbjyKzr6S5fPqUQ
aWrwOYanmA1ZCyAsfG7+nCpUDRCjug==
=4ilM
-----END PGP SIGNATURE-----payloadtree 1639d8d5784fee2a32ba356f686f3552df7db934
parent 767ed7851feaefcd212104e0aa7b899cd8f207b7
author Jeremy Kong <jkong@palantir.com> 1686080841 +0100
committer Jeremy Kong <jkong@palantir.com> 1686080841 +0100

update random workflow
uujl  ^https://api.github.com/repos/palantir/atlasdb/commits/b40de058c8d34806113f6803cb6f9bd469906455html_urlShttps://github.com/palantir/atlasdb/commit/b40de058c8d34806113f6803cb6f9bd469906455comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b40de058c8d34806113f6803cb6f9bd469906455/commentsjZ  }(login
jeremyk-91idJZ jV  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jl  'https://api.github.com/users/jeremyk-91jz  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujb  }(j  
jeremyk-91j  JZ jV  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5jl  'https://api.github.com/users/jeremyk-91jz  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents]}(jT  (767ed7851feaefcd212104e0aa7b899cd8f207b7jl  ^https://api.github.com/repos/palantir/atlasdb/commits/767ed7851feaefcd212104e0aa7b899cd8f207b7jz  Shttps://github.com/palantir/atlasdb/commit/767ed7851feaefcd212104e0aa7b899cd8f207b7uastats}(totalK0	additionsK,	deletionsKufiles](}(jT  (068772270bb2fa3e428fb2588a4fa5c879332417filenamematlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowConfiguration.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b40de058c8d34806113f6803cb6f9bd469906455/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b40de058c8d34806113f6803cb6f9bd469906455/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.java?ref=b40de058c8d34806113f6803cb6f9bd469906455patchX  @@ -47,8 +47,18 @@ default Integer maxDeletes() {
     }
 
     @Value.Default
-    default Integer maxCells() {
-        return 10;
+    default Integer maxRowRangeScans() {
+        return 3;
+    }
+
+    @Value.Default
+    default Integer maxRows() {
+        return 5;
+    }
+
+    @Value.Default
+    default Integer maxColumns() {
+        return 5;
     }
 
     @Value.Lazyu}(jT  (bb8cb8791842d9875f13f8b21a0594302e5f5099j  aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javaj  modifiedj  K j  Kj  K"j  https://github.com/palantir/atlasdb/blob/b40de058c8d34806113f6803cb6f9bd469906455/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javajÒ  https://github.com/palantir/atlasdb/raw/b40de058c8d34806113f6803cb6f9bd469906455/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javajŒ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=b40de058c8d34806113f6803cb6f9bd469906455jǒ  X+  @@ -21,11 +21,15 @@
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ImmutableDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ImmutableReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableRowColumnRangeReadTransactionAction.Builder;
 import com.palantir.atlasdb.workload.transaction.ImmutableWriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -78,7 +82,7 @@ public RandomWorkflowTask(RandomWorkflowConfiguration workflowConfiguration, Sec
         public Optional<WitnessedTransaction> run(TransactionStore store) {
             workflowConfiguration.transactionRateLimiter().acquire();
             List<TransactionAction> actions = Stream.of(
-                            generateReadActions(), generateWriteActions(), generateDeleteActions())
+                            generateReadActions(), generateWriteActions(), generateDeleteActions(), generateRowColumnRangeReadActions())
                     .flatMap(Collection::stream)
                     .collect(Collectors.toList());
             Collections.shuffle(actions, random);
@@ -111,8 +115,34 @@ private List<DeleteTransactionAction> generateDeleteActions() {
                     .collect(Collectors.toList());
         }
 
+        private List<RowColumnRangeReadTransactionAction> generateRowColumnRangeReadActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxRowRangeScans() + 1))
+                    .boxed()
+                    .map(_index -> {
+                        WorkloadCell startCell = randomCell();
+                        int endColumn = random.nextInt(workflowConfiguration.maxColumns());
+                        Builder builder = ImmutableRowColumnRangeReadTransactionAction.builder()
+                                .table(workflowConfiguration.tableConfiguration().tableName())
+                                .row(startCell.key());
+                        if (startCell.column() < endColumn) {
+                            builder.columnRangeSelection(ColumnRangeSelection.builder()
+                                    .startColumnInclusive(startCell.column())
+                                    .endColumnExclusive(endColumn + 1)
+                                    .build());
+                        } else {
+                            builder.columnRangeSelection(ColumnRangeSelection.builder()
+                                    .startColumnInclusive(endColumn)
+                                    .endColumnExclusive(startCell.column() + 1)
+                                    .build());
+                        }
+                        return builder.build();
+                    })
+                    .collect(Collectors.toList());
+        }
+
         private WorkloadCell randomCell() {
-            return ImmutableWorkloadCell.of(random.nextInt(workflowConfiguration.maxCells()), COLUMN);
+            return ImmutableWorkloadCell.of(random.nextInt(workflowConfiguration.maxRows()),
+                    random.nextInt(workflowConfiguration.maxColumns()));
         }
     }
 }ueu(c7a617269e9c9326691e2926997f2f532894e8e1}(sha(c7a617269e9c9326691e2926997f2f532894e8e1node_idEC_kwDOAjP5fdoAKGM3YTYxNzI2OWU5YzkzMjY2OTFlMjkyNjk5N2YyZjUzMjg5NGU4ZTEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-06T17:14:49Zu	committer}(jے  
Sam Kramerjݒ  skramer@palantir.comjߒ  2023-03-06T17:14:49Zumessage&rename assert name as its confusing aftree}(jӒ  (1878f87db3fbd0edfd783a0b6f797fff7389e55eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/1878f87db3fbd0edfd783a0b6f797fff7389e55euj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c7a617269e9c9326691e2926997f2f532894e8e1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQGH4kACgkQmPPOpKR4
XS0ZuAf/TmjDQT7xKurPjj7rZ9tpFGkiEgMq/jjGz++XALwlYBybJU4gJLNiozI4
sTz+jAvHpd4ZcpL2Dg4BQOi+gN5GAsCSVHJQ+xHnu9X6m8NccuuP8YvcTeaqDyGt
0WdEQGvLkP0M2YTGm4EBrUAbCV/yCkiM7PW5As+FBZtSZ7QUlwK8ct49AebEZ9Pi
FvoQLsit98IhMpvzOP+k1RCR4pllQbQghSVrFVgePWkGu81DL0cz2qCaLXc+izS6
xqeCDnpN0RY+B/i4nSznbRR9wLhU/TwROMyZtjNFNeexYMwTGGCNjBiKL6uVTEm8
wh+dnIVHoU2UtzVqEOypY0jk/dhzWg==
=Yi2P
-----END PGP SIGNATURE-----payloadtree 1878f87db3fbd0edfd783a0b6f797fff7389e55e
parent 51ee44c2c6c7491354803b4007dd3f5591a85dfa
author Sam Kramer <skramer@palantir.com> 1678122889 +0000
committer Sam Kramer <skramer@palantir.com> 1678122889 +0000

rename assert name as its confusing af
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/c7a617269e9c9326691e2926997f2f532894e8e1html_urlShttps://github.com/palantir/atlasdb/commit/c7a617269e9c9326691e2926997f2f532894e8e1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c7a617269e9c9326691e2926997f2f532894e8e1/commentsjْ  }(login
Sam-KrameridJ^2_ jՒ  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j  
Sam-Kramerj   J^2_ jՒ  MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j  h5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj  1https://api.github.com/users/Sam-Kramer/followersj	  >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j
  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j  5https://api.github.com/users/Sam-Kramer/subscriptionsj  ,https://api.github.com/users/Sam-Kramer/orgsj  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj  uparents]}(jӒ  (51ee44c2c6c7491354803b4007dd3f5591a85dfaj  ^https://api.github.com/repos/palantir/atlasdb/commits/51ee44c2c6c7491354803b4007dd3f5591a85dfaj  Shttps://github.com/palantir/atlasdb/commit/51ee44c2c6c7491354803b4007dd3f5591a85dfauastats}(totalK	additionsK	deletionsKufiles]}(jӒ  (20ba7c5e5a81bce9b74958b0533e7c6d8ca04629filenamedatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolTest.javastatusmodifiedj5  Kj6  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/c7a617269e9c9326691e2926997f2f532894e8e1/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c7a617269e9c9326691e2926997f2f532894e8e1/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.java?ref=c7a617269e9c9326691e2926997f2f532894e8e1patchXU  @@ -424,14 +424,14 @@ public void throwsWhenNoServersInPoolAndServersAddedPresentButAreInvalid() {
         setupThriftServers(ImmutableSet.of(CASS_SERVER_1.proxy()));
         when(config.autoRefreshNodes()).thenReturn(true);
         setCassandraServersTo(CASS_SERVER_1);
-        assertNoServersInPoolExceptionThrown(this::createClientPool, Set.of(CASS_SERVER_1), Set.of());
+        assertEmptyConnectionPoolExceptionThrown(this::createClientPool, Set.of(CASS_SERVER_1), Set.of());
     }
 
     @Test
     public void throwsWhenNoServersInPoolAndNoServersAdded() {
         when(config.autoRefreshNodes()).thenReturn(true);
         setCassandraServersTo();
-        assertNoServersInPoolExceptionThrown(this::createClientPool, Set.of(), Set.of());
+        assertEmptyConnectionPoolExceptionThrown(this::createClientPool, Set.of(), Set.of());
     }
 
     @Test
@@ -440,7 +440,7 @@ public void throwsWhenPoolWouldHaveNoServersAndPreviousHostsExists() {
         setCassandraServersTo(CASS_SERVER_1, CASS_SERVER_2);
         CassandraClientPoolImpl pool = createClientPool();
         setupHostsWithInconsistentTopology(CASS_SERVER_3);
-        assertNoServersInPoolExceptionThrown(
+        assertEmptyConnectionPoolExceptionThrown(
                 () -> pool.setServersInPoolTo(ImmutableMap.of(CASS_SERVER_3, CassandraServerOrigin.CONFIG)),
                 Set.of(CASS_SERVER_3),
                 Set.of(CASS_SERVER_1, CASS_SERVER_2));
@@ -747,7 +747,7 @@ private void refreshPool() {
         deterministicExecutor.tick(POOL_REFRESH_INTERVAL_SECONDS, TimeUnit.SECONDS);
     }
 
-    private static void assertNoServersInPoolExceptionThrown(
+    private static void assertEmptyConnectionPoolExceptionThrown(
             ThrowingCallable throwingCallable,
             Set<CassandraServer> serversToAdd,
             Set<CassandraServer> previousCassandraServers) {uau(7d31fbaf7ef3b5d8f817918f0e523338060d7609}(sha(7d31fbaf7ef3b5d8f817918f0e523338060d7609node_idEC_kwDOAjP5fdoAKDdkMzFmYmFmN2VmM2I1ZDhmODE3OTE4ZjBlNTIzMzM4MDYwZDc2MDkcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-06-25T01:37:30Zu	committer}(jR  David SchlosnaglejT  davids@palantir.comjV  2023-07-13T20:26:13ZumessageTransaction impls use Eclipse primitive collections for in-memory transaction tracking

SnapshotTransaction uses primitive committed timestamp lookuptree}(jJ  (ef76d0ad34102d8167778ee4c52c2d8fe43ba9f6url`https://api.github.com/repos/palantir/atlasdb/git/trees/ef76d0ad34102d8167778ee4c52c2d8fe43ba9f6ujb  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7d31fbaf7ef3b5d8f817918f0e523338060d7609
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmSwXe0ACgkQR9hsJ74Q
0l9OeAf9HWZAGL4ZXwUDhaPjnXykEicX2wijgsK8Ij5Wota9k0khEO+2y0xY/Wap
pJeXF9lLit5oI/dNudjkQk6dwtisXt5rslQykDA47Xg6GFw7mxocEe9IqkMG5vv6
oxpBFoS0j+fsc9vJzm71PaC/ckFiWsgrHnohk5nfN6T95pa4ipxaDUkpuRc8E54B
ZKJ+u0Cj9wMJDETNu2qali9w+rtaynjfAW4fgbAZKCJ7u2hSKfnLaepb973Bv20T
PzabvY1zRQxqwe0AIuMwfyd1RlIjhDi4dU8BcmX4T6adBXiFDW3/VvgtfU2Yvyts
pOsZn3IZIjJM8UEG0MpqLImShn2IRw==
=Noo5
-----END PGP SIGNATURE-----payloadXx  tree ef76d0ad34102d8167778ee4c52c2d8fe43ba9f6
parent d4f15c965b5d5c8ddaef2960069b178b5f63dc2a
author David Schlosnagle <davids@palantir.com> 1687657050 -0400
committer David Schlosnagle <davids@palantir.com> 1689279973 -0400

Transaction impls use Eclipse primitive collections for in-memory transaction tracking

SnapshotTransaction uses primitive committed timestamp lookup
uujb  ^https://api.github.com/repos/palantir/atlasdb/commits/7d31fbaf7ef3b5d8f817918f0e523338060d7609html_urlShttps://github.com/palantir/atlasdb/commit/7d31fbaf7ef3b5d8f817918f0e523338060d7609comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7d31fbaf7ef3b5d8f817918f0e523338060d7609/commentsjP  }(loginschlosnaidMBjL  MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jb  %https://api.github.com/users/schlosnajp  https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujX  }(ju  schlosnajw  MBjL  MDQ6VXNlcjU0NTk0jy  1https://avatars.githubusercontent.com/u/54594?v=4j{  h5jb  %https://api.github.com/users/schlosnajp  https://github.com/schlosnaj~  /https://api.github.com/users/schlosna/followersj  <https://api.github.com/users/schlosna/following{/other_user}j  5https://api.github.com/users/schlosna/gists{/gist_id}j  <https://api.github.com/users/schlosna/starred{/owner}{/repo}j  3https://api.github.com/users/schlosna/subscriptionsj  *https://api.github.com/users/schlosna/orgsj  +https://api.github.com/users/schlosna/reposj  6https://api.github.com/users/schlosna/events{/privacy}j  5https://api.github.com/users/schlosna/received_eventsj  Userj  uparents]}(jJ  (d4f15c965b5d5c8ddaef2960069b178b5f63dc2ajb  ^https://api.github.com/repos/palantir/atlasdb/commits/d4f15c965b5d5c8ddaef2960069b178b5f63dc2ajp  Shttps://github.com/palantir/atlasdb/commit/d4f15c965b5d5c8ddaef2960069b178b5f63dc2auastats}(totalM 	additionsK	deletionsKkufiles](}(jJ  (d818b689da94b2df8cc7d03ee10dfe828a3d8b4dfilename atlasdb-impl-shared/build.gradlestatusmodifiedj  Kj  K changesKblob_urlthttps://github.com/palantir/atlasdb/blob/7d31fbaf7ef3b5d8f817918f0e523338060d7609/atlasdb-impl-shared%2Fbuild.gradleraw_urlshttps://github.com/palantir/atlasdb/raw/7d31fbaf7ef3b5d8f817918f0e523338060d7609/atlasdb-impl-shared%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fbuild.gradle?ref=7d31fbaf7ef3b5d8f817918f0e523338060d7609patchX  @@ -50,6 +50,8 @@ dependencies {
   implementation 'jakarta.ws.rs:jakarta.ws.rs-api'
   implementation 'org.apache.commons:commons-lang3'
   implementation 'org.checkerframework:checker-qual'
+  implementation 'org.eclipse.collections:eclipse-collections'
+  implementation 'org.eclipse.collections:eclipse-collections-api'
   implementation 'org.slf4j:slf4j-api'
 
   implementation project(':atlasdb-api')u}(jJ  (be6fbc6e8ce696fafb59c3d25b4a7d665bd2ac80j  _atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/ClientLockDiagnosticCollector.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/7d31fbaf7ef3b5d8f817918f0e523338060d7609/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollector.javaj  https://github.com/palantir/atlasdb/raw/7d31fbaf7ef3b5d8f817918f0e523338060d7609/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollector.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollector.java?ref=7d31fbaf7ef3b5d8f817918f0e523338060d7609j  X  @@ -27,6 +27,7 @@
 import java.util.Set;
 import java.util.UUID;
 import java.util.stream.LongStream;
+import org.eclipse.collections.api.map.primitive.ImmutableLongLongMap;
 import org.immutables.value.Value;
 
 /**
@@ -105,6 +106,6 @@ interface ConflictTrace {
         Map<Cell, Long> latestTimestamps();
 
         @Value.Parameter
-        Map<Long, Long> commitTimestamps();
+        ImmutableLongLongMap commitTimestamps();
     }
 }u}(jJ  (2ba2417016f1307f2e893ab84628481d801dc9e6j  catlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/ClientLockDiagnosticCollectorImpl.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/7d31fbaf7ef3b5d8f817918f0e523338060d7609/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollectorImpl.javaj  https://github.com/palantir/atlasdb/raw/7d31fbaf7ef3b5d8f817918f0e523338060d7609/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollectorImpl.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollectorImpl.java?ref=7d31fbaf7ef3b5d8f817918f0e523338060d7609j  X  @@ -29,6 +29,7 @@
 import java.util.function.UnaryOperator;
 import java.util.stream.LongStream;
 import javax.annotation.Nullable;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
 
 /**
  * TODO(fdesouza): Remove this once PDS-95791 is resolved.
@@ -63,8 +64,9 @@ public void collect(
             long startTimestamp,
             Map<Cell, Long> keysToLoad,
             Map<Cell, Long> latestTimestamps,
-            Map<Long, Long> commitTimestamps) {
-        ConflictTrace conflictTrace = ImmutableConflictTrace.of(keysToLoad, latestTimestamps, commitTimestamps);
+            LongLongMap commitTimestamps) {
+        ConflictTrace conflictTrace =
+                ImmutableConflictTrace.of(keysToLoad, latestTimestamps, commitTimestamps.toImmutable());
         cache.asMap().compute(startTimestamp, mutateDigest(digest -> digest.withNewConflictDigest(conflictTrace)));
     }
 u}(jJ  (a50601f1936696d69de12e1e665ac187788ac034j  Patlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/ConflictTracer.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/7d31fbaf7ef3b5d8f817918f0e523338060d7609/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FConflictTracer.javaj  https://github.com/palantir/atlasdb/raw/7d31fbaf7ef3b5d8f817918f0e523338060d7609/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FConflictTracer.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FConflictTracer.java?ref=7d31fbaf7ef3b5d8f817918f0e523338060d7609j  X  @@ -18,6 +18,7 @@
 
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import java.util.Map;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
 
 /**
  * TODO(fdesouza): Remove this once PDS-95791 is resolved.
@@ -31,5 +32,5 @@ void collect(
             long startTimestamp,
             Map<Cell, Long> keysToLoad,
             Map<Cell, Long> latestTimestamps,
-            Map<Long, Long> commitTimestamps);
+            LongLongMap commitTimestamps);
 }u}(jJ  (19087bbc54d879f15116073134966b2a2365ccd7j  batlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoader.javaj  modifiedj  K"j  Kj  KAj  https://github.com/palantir/atlasdb/blob/7d31fbaf7ef3b5d8f817918f0e523338060d7609/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javaj  https://github.com/palantir/atlasdb/raw/7d31fbaf7ef3b5d8f817918f0e523338060d7609/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.java?ref=7d31fbaf7ef3b5d8f817918f0e523338060d7609j  X  @@ -43,14 +43,21 @@
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.HashMap;
-import java.util.HashSet;
 import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.TimeUnit;
 import java.util.function.Supplier;
 import javax.annotation.Nullable;
+import org.eclipse.collections.api.LongIterable;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
+import org.eclipse.collections.api.map.primitive.MutableLongLongMap;
+import org.eclipse.collections.api.set.ImmutableSet;
+import org.eclipse.collections.api.set.primitive.LongSet;
+import org.eclipse.collections.api.set.primitive.MutableLongSet;
+import org.eclipse.collections.impl.factory.primitive.LongLongMaps;
+import org.eclipse.collections.impl.factory.primitive.LongSets;
+import org.eclipse.collections.impl.map.mutable.primitive.LongLongHashMap;
 
 public final class CommitTimestampLoader {
     private static final SafeLogger log = SafeLoggerFactory.get(CommitTimestampLoader.class);
@@ -90,26 +97,25 @@ public CommitTimestampLoader(
      * Returns a map from start timestamp to commit timestamp. If a start timestamp wasn't committed, then it will be
      * missing from the map. This method will block until the transactions for these start timestamps are complete.
      */
-    ListenableFuture<Map<Long, Long>> getCommitTimestamps(
+    ListenableFuture<LongLongMap> getCommitTimestamps(
             @Nullable TableReference tableRef,
-            Iterable<Long> startTimestamps,
+            LongIterable startTimestamps,
             boolean shouldWaitForCommitterToComplete,
             AsyncTransactionService asyncTransactionService) {
-        if (Iterables.isEmpty(startTimestamps)) {
-            return Futures.immediateFuture(ImmutableMap.of());
+        if (startTimestamps.isEmpty()) {
+            return Futures.immediateFuture(LongLongMaps.immutable.of());
         }
 
-        Set<Long> pendingGets = new HashSet<>();
-        Map<Long, Long> result = new HashMap<>();
-
-        for (Long startTs : startTimestamps) {
+        MutableLongSet pendingGets = LongSets.mutable.of();
+        MutableLongLongMap result = new LongLongHashMap();
+        startTimestamps.each(startTs -> {
             Long commitTs = timestampCache.getCommitTimestampIfPresent(startTs);
             if (commitTs == null) {
                 pendingGets.add(startTs);
             } else {
                 result.put(startTs, commitTs);
             }
-        }
+        });
 
         if (pendingGets.isEmpty()) {
             return Futures.immediateFuture(result);
@@ -123,16 +129,16 @@ ListenableFuture<Map<Long, Long>> getCommitTimestamps(
         return Futures.transform(
                 loadCommitTimestamps(asyncTransactionService, pendingGets),
                 rawResults -> {
-                    Map<Long, Long> loadedCommitTs = cacheKnownLoadedValuesAndValidate(rawResults);
+                    LongLongMap loadedCommitTs = cacheKnownLoadedValuesAndValidate(rawResults);
                     result.putAll(loadedCommitTs);
                     return result;
                 },
                 MoreExecutors.directExecutor());
     }
 
     // We do not cache unknown transactions as they are already being cached at a lower level.
-    private Map<Long, Long> cacheKnownLoadedValuesAndValidate(Map<Long, TransactionStatus> rawResults) {
-        Map<Long, Long> results = new HashMap<>();
+    private LongLongMap cacheKnownLoadedValuesAndValidate(Map<Long, TransactionStatus> rawResults) {
+        MutableLongLongMap results = LongLongMaps.mutable.empty();
         boolean shouldValidate = false;
 
         // The method is written this way to avoid multiple scans on the result set as it is on a hot path.
@@ -158,30 +164,27 @@ private Map<Long, Long> cacheKnownLoadedValuesAndValidate(Map<Long, TransactionS
             throwIfTransactionsTableSweptBeyondReadOnlyTxn();
         }
 
-        return results;
+        return results.asUnmodifiable();
     }
 
     /**
      * We will block here until the passed transactions have released their lock. This means that the committing
      * transaction is either complete or it has failed, and we are allowed to roll it back.
      */
-    private void waitForCommitToComplete(Iterable<Long> startTimestamps) {
-        Set<LockDescriptor> lockDescriptors = new HashSet<>();
-        for (long start : startTimestamps) {
-            if (start < immutableTimestamp) {
-                // We don't need to block in this case because this transaction is already complete
-                continue;
-            }
-            lockDescriptors.add(AtlasRowLockDescriptor.of(
-                    TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
-                    TransactionConstants.getValueForTimestamp(start)));
-        }
+    private void waitForCommitToComplete(LongIterable startTimestamps) {
+        ImmutableSet<LockDescriptor> lockDescriptors = startTimestamps
+                // We only need to block and wait for transactions on or after immutable timestamp
+                .select(start -> start >= immutableTimestamp)
+                .collect(start -> AtlasRowLockDescriptor.of(
+                        TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
+                        TransactionConstants.getValueForTimestamp(start)))
+                .toImmutableSet();
 
         if (lockDescriptors.isEmpty()) {
             return;
         }
 
-        waitFor(lockDescriptors);
+        waitFor(lockDescriptors.castToSet());
     }
 
     private void waitFor(Set<LockDescriptor> lockDescriptors) {
@@ -202,7 +205,7 @@ private void waitFor(Set<LockDescriptor> lockDescriptors) {
         }
     }
 
-    private void waitForCommitterToComplete(@Nullable TableReference tableRef, Iterable<Long> startTimestamps) {
+    private void waitForCommitterToComplete(@Nullable TableReference tableRef, LongIterable startTimestamps) {
         Timer.Context timer = getTimer("waitForCommitTsMillis").time();
         waitForCommitToComplete(startTimestamps);
         long waitForCommitTsMillis = TimeUnit.NANOSECONDS.toMillis(timer.stop());
@@ -222,16 +225,16 @@ private Timer getTimer(String name) {
     }
 
     private static ListenableFuture<Map<Long, TransactionStatus>> loadCommitTimestamps(
-            AsyncTransactionService asyncTransactionService, Set<Long> startTimestamps) {
+            AsyncTransactionService asyncTransactionService, LongSet startTimestamps) {
         // distinguish between a single timestamp and a batch, for more granular metrics
         if (startTimestamps.size() == 1) {
-            Long singleTs = Iterables.getOnlyElement(startTimestamps);
+            long singleTs = startTimestamps.longIterator().next();
             return Futures.transform(
                     asyncTransactionService.getAsyncV2(singleTs),
                     commitState -> ImmutableMap.of(singleTs, commitState),
                     MoreExecutors.directExecutor());
         } else {
-            return asyncTransactionService.getAsyncV2(startTimestamps);
+            return asyncTransactionService.getAsyncV2(startTimestamps.collect(Long::valueOf));
         }
     }
 u}(jJ  (76479dbfe5fb53d1b0583122fda4de393de7e01bj  datlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.javaj  modifiedj  K!j  Kj  K8j  https://github.com/palantir/atlasdb/blob/7d31fbaf7ef3b5d8f817918f0e523338060d7609/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaj  https://github.com/palantir/atlasdb/raw/7d31fbaf7ef3b5d8f817918f0e523338060d7609/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.java?ref=7d31fbaf7ef3b5d8f817918f0e523338060d7609j  X  @@ -109,6 +109,13 @@
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 import javax.annotation.Nullable;
+import org.eclipse.collections.api.LongIterable;
+import org.eclipse.collections.api.factory.primitive.LongLongMaps;
+import org.eclipse.collections.api.factory.primitive.LongSets;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
+import org.eclipse.collections.api.map.primitive.MutableLongLongMap;
+import org.eclipse.collections.api.set.primitive.LongSet;
+import org.eclipse.collections.api.set.primitive.MutableLongSet;
 import org.immutables.value.Value;
 
 /**
@@ -881,42 +888,42 @@ protected TransactionScopedCache getCache() {
             }
 
             @Override
-            protected ListenableFuture<Map<Long, Long>> getCommitTimestamps(
+            protected ListenableFuture<LongLongMap> getCommitTimestamps(
                     TableReference tableRef,
-                    Iterable<Long> startTimestamps,
+                    LongIterable startTimestamps,
                     boolean shouldWaitForCommitterToComplete,
                     AsyncTransactionService asyncTransactionService) {
                 long myStart = SerializableTransaction.this.getTimestamp();
                 PartitionedTimestamps partitionedTimestamps = splitTransactionBeforeAndAfter(myStart, startTimestamps);
 
-                ListenableFuture<Map<Long, Long>> postStartCommitTimestamps =
+                ListenableFuture<LongLongMap> postStartCommitTimestamps =
                         getCommitTimestampsForTransactionsStartedAfterMe(
                                 tableRef, asyncTransactionService, partitionedTimestamps.afterStart());
 
                 // We are ok to block here because if there is a cycle of transactions that could result in a deadlock,
                 // then at least one of them will be in the ab
-                ListenableFuture<Map<Long, Long>> preStartCommitTimestamps = super.getCommitTimestamps(
+                ListenableFuture<LongLongMap> preStartCommitTimestamps = super.getCommitTimestamps(
                         tableRef,
                         partitionedTimestamps.beforeStart(),
                         shouldWaitForCommitterToComplete,
                         asyncTransactionService);
 
                 return Futures.whenAllComplete(postStartCommitTimestamps, preStartCommitTimestamps)
                         .call(
-                                () -> ImmutableMap.<Long, Long>builder()
-                                        .putAll(AtlasFutures.getDone(preStartCommitTimestamps))
-                                        .putAll(AtlasFutures.getDone(postStartCommitTimestamps))
-                                        .putAll(partitionedTimestamps.myCommittedTransaction())
-                                        .buildOrThrow(),
+                                () -> {
+                                    MutableLongLongMap map = LongLongMaps.mutable.withAll(
+                                            AtlasFutures.getDone(preStartCommitTimestamps));
+                                    map.putAll(AtlasFutures.getDone(postStartCommitTimestamps));
+                                    map.putAll(partitionedTimestamps.myCommittedTransaction());
+                                    return map.toImmutable();
+                                },
                                 MoreExecutors.directExecutor());
             }
 
-            private ListenableFuture<Map<Long, Long>> getCommitTimestampsForTransactionsStartedAfterMe(
-                    TableReference tableRef,
-                    AsyncTransactionService asyncTransactionService,
-                    Set<Long> startTimestamps) {
+            private ListenableFuture<LongLongMap> getCommitTimestampsForTransactionsStartedAfterMe(
+                    TableReference tableRef, AsyncTransactionService asyncTransactionService, LongSet startTimestamps) {
                 if (startTimestamps.isEmpty()) {
-                    return Futures.immediateFuture(ImmutableMap.of());
+                    return Futures.immediateFuture(LongLongMaps.immutable.empty());
                 }
 
                 return Futures.transform(
@@ -950,19 +957,22 @@ private ListenableFuture<Map<Long, Long>> getCommitTimestampsForTransactionsStar
              * @param startTimestamps of transactions we are interested in
              * @return a {@link PartitionedTimestamps} object containing split timestamps
              */
-            private PartitionedTimestamps splitTransactionBeforeAndAfter(long myStart, Iterable<Long> startTimestamps) {
+            private PartitionedTimestamps splitTransactionBeforeAndAfter(long myStart, LongIterable startTimestamps) {
                 ImmutablePartitionedTimestamps.Builder builder =
                         ImmutablePartitionedTimestamps.builder().myCommitTimestamp(commitTs);
+                MutableLongSet beforeStart = LongSets.mutable.empty();
+                MutableLongSet afterStart = LongSets.mutable.empty();
                 startTimestamps.forEach(startTimestamp -> {
                     if (startTimestamp == myStart) {
                         builder.splittingStartTimestamp(myStart);
                     } else if (startTimestamp < myStart) {
-                        builder.addBeforeStart(startTimestamp);
+                        beforeStart.add(startTimestamp);
                     } else {
-                        builder.addAfterStart(startTimestamp);
+                        afterStart.add(startTimestamp);
                     }
                 });
-
+                builder.beforeStart(beforeStart.asUnmodifiable());
+                builder.afterStart(afterStart.asUnmodifiable());
                 return builder.build();
             }
         };
@@ -1039,17 +1049,17 @@ public Map.Entry<Cell, byte[]> next() {
     interface PartitionedTimestamps {
         long myCommitTimestamp();
 
-        Set<Long> afterStart();
+        LongSet afterStart();
 
-        Set<Long> beforeStart();
+        LongSet beforeStart();
 
         OptionalLong splittingStartTimestamp();
 
         @Value.Derived
-        default Map<Long, Long> myCommittedTransaction() {
+        default LongLongMap myCommittedTransaction() {
             return splittingStartTimestamp().isPresent()
-                    ? ImmutableMap.of(splittingStartTimestamp().getAsLong(), myCommitTimestamp())
-                    : ImmutableMap.of();
+                    ? LongLongMaps.immutable.of(splittingStartTimestamp().getAsLong(), myCommitTimestamp())
+                    : LongLongMaps.immutable.empty();
         }
     }
 u      }(jJ  (7b54a86f03cfef921e4d7f89ec221675d26e6739j  `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj  modifiedj  KBj  K+j  Kmj  https://github.com/palantir/atlasdb/blob/7d31fbaf7ef3b5d8f817918f0e523338060d7609/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj  https://github.com/palantir/atlasdb/raw/7d31fbaf7ef3b5d8f817918f0e523338060d7609/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=7d31fbaf7ef3b5d8f817918f0e523338060d7609j  X-  @@ -186,6 +186,13 @@
 import javax.annotation.Nullable;
 import org.apache.commons.lang3.Validate;
 import org.apache.commons.lang3.tuple.Pair;
+import org.eclipse.collections.api.LongIterable;
+import org.eclipse.collections.api.factory.primitive.LongLists;
+import org.eclipse.collections.api.factory.primitive.LongSets;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
+import org.eclipse.collections.api.set.primitive.ImmutableLongSet;
+import org.eclipse.collections.api.set.primitive.LongSet;
+import org.eclipse.collections.api.set.primitive.MutableLongSet;
 
 /**
  * This implements snapshot isolation for transactions.
@@ -1646,7 +1653,7 @@ private <T> ListenableFuture<Map<Cell, Value>> getWithPostFilteringInternal(
             AsyncKeyValueService asyncKeyValueService,
             AsyncTransactionService asyncTransactionService) {
         Set<Cell> orphanedSentinels = findOrphanedSweepSentinels(tableRef, rawResults);
-        Set<Long> valuesStartTimestamps = getStartTimestampsForValues(rawResults.values());
+        LongSet valuesStartTimestamps = getStartTimestampsForValues(rawResults.values());
 
         return Futures.transformAsync(
                 getCommitTimestamps(tableRef, valuesStartTimestamps, true, asyncTransactionService),
@@ -1668,7 +1675,7 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
             Function<Value, T> transformer,
             AsyncKeyValueService asyncKeyValueService,
             Set<Cell> orphanedSentinels,
-            Map<Long, Long> commitTimestamps) {
+            LongLongMap commitTimestamps) {
         Map<Cell, Long> keysToReload = Maps.newHashMapWithExpectedSize(0);
         Map<Cell, Long> keysToDelete = Maps.newHashMapWithExpectedSize(0);
         ImmutableSet.Builder<Cell> keysAddedBuilder = ImmutableSet.builder();
@@ -1699,8 +1706,9 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
                         throw new IllegalStateException("Invalid read sentinel behavior " + getReadSentinelBehavior());
                 }
             } else {
-                Long theirCommitTimestamp = commitTimestamps.get(value.getTimestamp());
-                if (theirCommitTimestamp == null || theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
+                long theirCommitTimestamp =
+                        commitTimestamps.getIfAbsent(value.getTimestamp(), TransactionConstants.FAILED_COMMIT_TS);
+                if (theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
                     keysToReload.put(key, value.getTimestamp());
                     if (shouldDeleteAndRollback()) {
                         // This is from a failed transaction so we can roll it back and then reload it.
@@ -2327,33 +2335,37 @@ protected Map<Cell, Long> detectWriteAlreadyCommittedInternal(
             @Output Set<CellConflict> spanningWrites,
             @Output Set<CellConflict> dominatingWrites,
             TransactionService transactionService) {
+        long startTs = getStartTimestamp();
         Map<Cell, Long> rawResults = keyValueService.getLatestTimestamps(tableRef, keysToLoad);
-        Map<Long, Long> commitTimestamps = getCommitTimestampsSync(tableRef, rawResults.values(), false);
+        LongLongMap commitTimestamps =
+                getCommitTimestampsSync(tableRef, LongLists.immutable.ofAll(rawResults.values()), false);
 
         // TODO(fdesouza): Remove this once PDS-95791 is resolved.
-        conflictTracer.collect(getStartTimestamp(), keysToLoad, rawResults, commitTimestamps);
+        conflictTracer.collect(startTs, keysToLoad, rawResults, commitTimestamps);
 
         Map<Cell, Long> keysToDelete = Maps.newHashMapWithExpectedSize(0);
 
         for (Map.Entry<Cell, Long> e : rawResults.entrySet()) {
             Cell key = e.getKey();
             long theirStartTimestamp = e.getValue();
-            AssertUtils.assertAndLog(
-                    log, theirStartTimestamp != getStartTimestamp(), "Timestamp reuse is bad:" + getStartTimestamp());
+            if (theirStartTimestamp == startTs) {
+                AssertUtils.assertAndLog(log, false, "Timestamp reuse is bad:" + startTs);
+            }
 
-            Long theirCommitTimestamp = commitTimestamps.get(theirStartTimestamp);
-            if (theirCommitTimestamp == null || theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
+            long theirCommitTimestamp =
+                    commitTimestamps.getIfAbsent(theirStartTimestamp, TransactionConstants.FAILED_COMMIT_TS);
+            if (theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
                 // The value has no commit timestamp or was explicitly rolled back.
                 // This means the value is garbage from a transaction which didn't commit.
                 keysToDelete.put(key, theirStartTimestamp);
                 continue;
+            } else if (theirCommitTimestamp == startTs) {
+                AssertUtils.assertAndLog(log, false, "Timestamp reuse is bad:" + startTs);
             }
 
-            AssertUtils.assertAndLog(
-                    log, theirCommitTimestamp != getStartTimestamp(), "Timestamp reuse is bad:" + getStartTimestamp());
-            if (theirStartTimestamp > getStartTimestamp()) {
+            if (theirStartTimestamp > startTs) {
                 dominatingWrites.add(Cells.createConflict(key, theirStartTimestamp, theirCommitTimestamp));
-            } else if (theirCommitTimestamp > getStartTimestamp()) {
+            } else if (theirCommitTimestamp > startTs) {
                 spanningWrites.add(Cells.createConflict(key, theirStartTimestamp, theirCommitTimestamp));
             }
         }
@@ -2378,30 +2390,38 @@ protected Map<Cell, Long> detectWriteAlreadyCommittedInternal(
     private boolean rollbackFailedTransactions(
             TableReference tableRef,
             Map<Cell, Long> keysToDelete,
-            Map<Long, Long> commitTimestamps,
+            LongLongMap commitTimestamps,
             TransactionService transactionService) {
-        for (long startTs : new HashSet<>(keysToDelete.values())) {
-            if (commitTimestamps.get(startTs) == null) {
-                log.warn("Rolling back transaction: {}", SafeArg.of("startTs", startTs));
-                if (!rollbackOtherTransaction(startTs, transactionService)) {
-                    return false;
+        ImmutableLongSet timestamps = LongSets.immutable.ofAll(keysToDelete.values());
+        boolean allRolledBack = timestamps.allSatisfy(startTs -> {
+            if (commitTimestamps.containsKey(startTs)) {
+                long commitTs = commitTimestamps.get(startTs);
+                if (commitTs != TransactionConstants.FAILED_COMMIT_TS) {
+                    throw new SafeIllegalArgumentException(
+                            "Cannot rollback already committed transaction",
+                            SafeArg.of("startTs", startTs),
+                            SafeArg.of("commitTs", commitTs));
                 }
             } else {
-                Preconditions.checkArgument(commitTimestamps.get(startTs) == TransactionConstants.FAILED_COMMIT_TS);
+                log.warn("Rolling back transaction: {}", SafeArg.of("startTs", startTs));
+                return rollbackOtherTransaction(startTs, transactionService);
             }
-        }
+            return true;
+        });
 
-        try {
-            runTaskOnDeleteExecutor(kvs -> deleteCells(kvs, tableRef, keysToDelete));
-        } catch (RejectedExecutionException rejected) {
-            deleteExecutorRateLimitedLogger.log(logger -> logger.info(
-                    "Could not delete keys {} for table {}, because the delete executor's queue was full."
-                            + " Sweep should eventually clean these values.",
-                    SafeArg.of("numKeysToDelete", keysToDelete.size()),
-                    LoggingArgs.tableRef(tableRef),
-                    rejected));
+        if (allRolledBack) {
+            try {
+                runTaskOnDeleteExecutor(kvs -> deleteCells(kvs, tableRef, keysToDelete));
+            } catch (RejectedExecutionException rejected) {
+                deleteExecutorRateLimitedLogger.log(logger -> logger.info(
+                        "Could not delete keys {} for table {}, because the delete executor's queue was full."
+                                + " Sweep should eventually clean these values.",
+                        SafeArg.of("numKeysToDelete", keysToDelete.size()),
+                        LoggingArgs.tableRef(tableRef),
+                        rejected));
+            }
         }
-        return true;
+        return allRolledBack;
     }
 
     private static void deleteCells(
@@ -2487,9 +2507,9 @@ protected LockToken acquireLocksForCommit() {
         return lockResponse.getToken();
     }
 
-    protected ListenableFuture<Map<Long, Long>> getCommitTimestamps(
+    protected ListenableFuture<LongLongMap> getCommitTimestamps(
             TableReference tableRef,
-            Iterable<Long> startTimestamps,
+            LongIterable startTimestamps,
             boolean shouldWaitForCommitterToComplete,
             AsyncTransactionService asyncTransactionService) {
         return commitTimestampLoader.getCommitTimestamps(
@@ -2547,16 +2567,16 @@ protected Set<LockDescriptor> getLocksForWrites() {
     /// Commit timestamp management
     ///////////////////////////////////////////////////////////////////////////
 
-    private Set<Long> getStartTimestampsForValues(Iterable<Value> values) {
-        Set<Long> results = new HashSet<>();
+    private LongSet getStartTimestampsForValues(Iterable<Value> values) {
+        MutableLongSet results = LongSets.mutable.empty();
         for (Value v : values) {
             results.add(v.getTimestamp());
         }
-        return results;
+        return results.toImmutable();
     }
 
-    private Map<Long, Long> getCommitTimestampsSync(
-            @Nullable TableReference tableRef, Iterable<Long> startTimestamps, boolean waitForCommitterToComplete) {
+    private LongLongMap getCommitTimestampsSync(
+            @Nullable TableReference tableRef, LongIterable startTimestamps, boolean waitForCommitterToComplete) {
         return AtlasFutures.getUnchecked(getCommitTimestamps(
                 tableRef, startTimestamps, waitForCommitterToComplete, immediateTransactionService));
     }
@@ -2625,11 +2645,14 @@ private void handleKeyAlreadyExistsException(
     }
 
     private boolean wasCommitSuccessful(long commitTs) {
-        Map<Long, Long> commitTimestamps =
-                getCommitTimestampsSync(null, Collections.singleton(getStartTimestamp()), false);
-        long storedCommit = commitTimestamps.get(getStartTimestamp());
+        long startTs = getStartTimestamp();
+        LongLongMap commitTimestamps = getCommitTimestampsSync(null, LongSets.immutable.of(startTs), false);
+        long storedCommit = commitTimestamps.get(startTs);
         if (storedCommit != commitTs && storedCommit != TransactionConstants.FAILED_COMMIT_TS) {
-            Validate.isTrue(false, "Commit value is wrong. startTs %s  commitTs: %s", getStartTimestamp(), commitTs);
+            throw new SafeIllegalArgumentException(
+                    "Commit value is wrong.",
+                    SafeArg.of("startTimestamp", startTs),
+                    SafeArg.of("commitTimestamp", commitTs));
         }
         return storedCommit == commitTs;
     }u}(jJ  (7be5d7230e4143dea05fe8a584a1a0dcb0d8db39j  fatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoaderTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/7d31fbaf7ef3b5d8f817918f0e523338060d7609/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javaj  https://github.com/palantir/atlasdb/raw/7d31fbaf7ef3b5d8f817918f0e523338060d7609/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.java?ref=7d31fbaf7ef3b5d8f817918f0e523338060d7609j  X  @@ -24,7 +24,6 @@
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
 
-import com.google.common.collect.ImmutableList;
 import com.google.common.util.concurrent.Futures;
 import com.palantir.atlasdb.cache.TimestampCache;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
@@ -40,9 +39,10 @@
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.ExecutionException;
+import org.eclipse.collections.api.factory.primitive.LongLists;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
 import org.junit.Test;
 
 public class CommitTimestampLoaderTest {
@@ -96,7 +96,7 @@ public void throwIfTTSBeyondReadOnlyForSweptTTSCell() {
 
         assertThatExceptionOfType(ExecutionException.class)
                 .isThrownBy(() -> commitTimestampLoader
-                        .getCommitTimestamps(TABLE_REF, ImmutableList.of(startTs), false, transactionService)
+                        .getCommitTimestamps(TABLE_REF, LongLists.immutable.of(startTs), false, transactionService)
                         .get())
                 .withRootCauseInstanceOf(SafeIllegalStateException.class)
                 .withMessageContaining("Sweep has swept some entries with a commit TS after us");
@@ -182,10 +182,10 @@ public void doesNotCacheUnknownTransactions() throws ExecutionException, Interru
 
     private void assertCanGetCommitTs(long startTs, long commitTs, CommitTimestampLoader commitTimestampLoader)
             throws InterruptedException, ExecutionException {
-        Map<Long, Long> loadedCommitTs = commitTimestampLoader
-                .getCommitTimestamps(TABLE_REF, ImmutableList.of(startTs), false, transactionService)
+        LongLongMap loadedCommitTs = commitTimestampLoader
+                .getCommitTimestamps(TABLE_REF, LongLists.immutable.of(startTs), false, transactionService)
                 .get();
-        assertThat(loadedCommitTs).hasSize(1);
+        assertThat(loadedCommitTs.size()).isEqualTo(1);
         assertThat(loadedCommitTs.get(startTs)).isEqualTo(commitTs);
     }
 ueu(8a29046bc3b9b3c2d54aac974cdd457d86e04723}(sha(8a29046bc3b9b3c2d54aac974cdd457d86e04723node_idEC_kwDOAjP5fdoAKDhhMjkwNDZiYzNiOWIzYzJkNTRhYWM5NzRjZGQ0NTdkODZlMDQ3MjMcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-06-10T11:04:49Zu	committer}(j  svc-excavator-botj  svc-excavator-bot@palantir.comj  2023-06-10T11:04:49Zumessage5Excavator:  Update gradle-jdks infrastructure pluginstree}(j  (31dbdccb14384614d2baab776b8f4dbde1c9f3eburl`https://api.github.com/repos/palantir/atlasdb/git/trees/31dbdccb14384614d2baab776b8f4dbde1c9f3ebuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8a29046bc3b9b3c2d54aac974cdd457d86e04723
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSEWNEJEMmvEkpISILgAAAfJgEAwskEWu5iwaBXE82cOG6yEhex
EzLH8ypTQ5AVemrk36MBAOb3NyRrMPa3OmJBVkMyRKUYJrDNpCKsOa+thLkVN/nW
=PCTm
-----END PGP SIGNATURE-----
payloadX-  tree 31dbdccb14384614d2baab776b8f4dbde1c9f3eb
parent 8d65a011e35cfff9bbdb38ad706cc252b977467b
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1686395089 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1686395089 +0000

Excavator:  Update gradle-jdks infrastructure pluginsuuj  ^https://api.github.com/repos/palantir/atlasdb/commits/8a29046bc3b9b3c2d54aac974cdd457d86e04723html_urlShttps://github.com/palantir/atlasdb/commit/8a29046bc3b9b3c2d54aac974cdd457d86e04723comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8a29046bc3b9b3c2d54aac974cdd457d86e04723/commentsj  }(loginsvc-excavator-botidJj  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j  .https://api.github.com/users/svc-excavator-botj  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj  }(j$  svc-excavator-botj&  Jj  MDQ6VXNlcjMzMjY2MzY4j(  4https://avatars.githubusercontent.com/u/33266368?v=4j*  h5j  .https://api.github.com/users/svc-excavator-botj  $https://github.com/svc-excavator-botj-  8https://api.github.com/users/svc-excavator-bot/followersj/  Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}j1  >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}j3  Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}j5  <https://api.github.com/users/svc-excavator-bot/subscriptionsj7  3https://api.github.com/users/svc-excavator-bot/orgsj9  4https://api.github.com/users/svc-excavator-bot/reposj;  ?https://api.github.com/users/svc-excavator-bot/events{/privacy}j=  >https://api.github.com/users/svc-excavator-bot/received_eventsj?  UserjA  uparents]}(j  (8d65a011e35cfff9bbdb38ad706cc252b977467bj  ^https://api.github.com/repos/palantir/atlasdb/commits/8d65a011e35cfff9bbdb38ad706cc252b977467bj  Shttps://github.com/palantir/atlasdb/commit/8d65a011e35cfff9bbdb38ad706cc252b977467buastats}(totalK	additionsK	deletionsKufiles]}(j  (54c5131aa10b932b270d2866ad020ae2b4030e95filenamebuild.gradlestatusmodifiedj[  Kj\  KchangesKblob_url^https://github.com/palantir/atlasdb/blob/8a29046bc3b9b3c2d54aac974cdd457d86e04723/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/8a29046bc3b9b3c2d54aac974cdd457d86e04723/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=8a29046bc3b9b3c2d54aac974cdd457d86e04723patchX  @@ -16,7 +16,7 @@ buildscript {
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
-        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
+        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'uau(37f2f725f964386eaacf1840a1293eec6dffe3ad}(sha(37f2f725f964386eaacf1840a1293eec6dffe3adnode_idEC_kwDOAjP5fdoAKDM3ZjJmNzI1Zjk2NDM4NmVhYWNmMTg0MGExMjkzZWVjNmRmZmUzYWQcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-05-20T17:49:31Zu	committer}(jx  David Schlosnaglejz  davids@palantir.comj|  2023-05-23T15:04:18ZumessageAddress review commentstree}(jp  (e38234b0223b59d5ba52942e2a4c36066bf290e7url`https://api.github.com/repos/palantir/atlasdb/git/trees/e38234b0223b59d5ba52942e2a4c36066bf290e7uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/37f2f725f964386eaacf1840a1293eec6dffe3ad
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmRs1fIACgkQR9hsJ74Q
0l/lIgf+Jkh+8nHaWC5ua3Rs6LGh/6JThRrJbHzG5z4scHZEUltuY844E/kXbpQ3
R3ZlBQXkV6Izu9GElVNUuVTdtXHpsJFiJlF53/6NVhqQBTFjXAi/kRX98mdeQVC1
BFTTqSy4AMMV+zNOPVoL57L9yC+RVfGqxI6ZCCurrApmOc9e7TK1/W5pzXRck7AL
nGqHdci7xrFqLJnZWpgs3+6ncMoHDNxwNnVJqexBLQIIvNoxNlr4VdKRwv6fCGEh
wfhHMcZwmHMGYClsPFEg3z2Zmq5OX0SkfxwPlnmym9jJpOjBshegzNj0Zw5GANW3
lHq+hdZhst9spsdypnTs3q2fNL70Bg==
=sNKr
-----END PGP SIGNATURE-----payloadtree e38234b0223b59d5ba52942e2a4c36066bf290e7
parent d7fdb18efdb847caf5eeb1c52aa20acafb5befaa
author David Schlosnagle <davids@palantir.com> 1684604971 -0400
committer David Schlosnagle <davids@palantir.com> 1684854258 -0400

Address review comments
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/37f2f725f964386eaacf1840a1293eec6dffe3adhtml_urlShttps://github.com/palantir/atlasdb/commit/37f2f725f964386eaacf1840a1293eec6dffe3adcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/37f2f725f964386eaacf1840a1293eec6dffe3ad/commentsjv  }(loginschlosnaidMBjr  MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j  %https://api.github.com/users/schlosnaj  https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj~  }(j  schlosnaj  MBjr  MDQ6VXNlcjU0NTk0j  1https://avatars.githubusercontent.com/u/54594?v=4j  h5j  %https://api.github.com/users/schlosnaj  https://github.com/schlosnaj  /https://api.github.com/users/schlosna/followersj  <https://api.github.com/users/schlosna/following{/other_user}j  5https://api.github.com/users/schlosna/gists{/gist_id}j  <https://api.github.com/users/schlosna/starred{/owner}{/repo}j  3https://api.github.com/users/schlosna/subscriptionsj  *https://api.github.com/users/schlosna/orgsj  +https://api.github.com/users/schlosna/reposj  6https://api.github.com/users/schlosna/events{/privacy}j  5https://api.github.com/users/schlosna/received_eventsj  Userj  uparents]}(jp  (d7fdb18efdb847caf5eeb1c52aa20acafb5befaaj  ^https://api.github.com/repos/palantir/atlasdb/commits/d7fdb18efdb847caf5eeb1c52aa20acafb5befaaj  Shttps://github.com/palantir/atlasdb/commit/d7fdb18efdb847caf5eeb1c52aa20acafb5befaauastats}(totalK	additionsK	deletionsK;ufiles](}(jp  (90804433a22ec03af979e3c1e8590efd24af0579filename`atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppToken.javastatusmodifiedjҔ  KjӔ  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/37f2f725f964386eaacf1840a1293eec6dffe3ad/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javaraw_urlhttps://github.com/palantir/atlasdb/raw/37f2f725f964386eaacf1840a1293eec6dffe3ad/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.java?ref=37f2f725f964386eaacf1840a1293eec6dffe3adpatchX  @@ -16,7 +16,6 @@
 package com.palantir.atlasdb.keyvalue.cassandra;
 
 import com.datastax.driver.core.Token;
-import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.BoundType;
 import com.google.common.collect.Range;
 import com.google.common.io.BaseEncoding;
@@ -26,44 +25,16 @@
 import com.palantir.logsafe.SafeArg;
 import java.nio.ByteBuffer;
 import java.util.Arrays;
-import java.util.Locale;
-import java.util.function.IntPredicate;
 
 public class LightweightOppToken implements Comparable<LightweightOppToken> {
-
     final byte[] bytes;
 
     public LightweightOppToken(byte[] bytes) {
         this.bytes = bytes;
     }
 
     public static LightweightOppToken fromHex(String token) {
-        // OPP tokens should be lowercase already, use upper if needed, and convert mixed to uppercase if needed
-        byte[] bytes = isAllLowercaseOrDigits(token)
-                ? BaseEncoding.base16().lowerCase().decode(token)
-                : isAllUppercaseOrDigits(token)
-                        ? BaseEncoding.base16().decode(token)
-                        : BaseEncoding.base16().decode(token.toUpperCase(Locale.ROOT));
-        return new LightweightOppToken(bytes);
-    }
-
-    @VisibleForTesting
-    static boolean isAllLowercaseOrDigits(String token) {
-        return allMatch(token, ch -> Character.isDigit(ch) || Character.isLowerCase(ch));
-    }
-
-    private static boolean isAllUppercaseOrDigits(String token) {
-        return allMatch(token, ch -> Character.isDigit(ch) || Character.isUpperCase(ch));
-    }
-
-    private static boolean allMatch(String token, IntPredicate predicate) {
-        for (int i = 0; i < token.length(); i++) {
-            char ch = token.charAt(i);
-            if (!predicate.test(ch)) {
-                return false;
-            }
-        }
-        return true;
+        return new LightweightOppToken(Tokens.hexDecode(token));
     }
 
     public static LightweightOppToken of(Cell cell) {u}(jp  (9cf1b016a16a160178cebcaf08ef495b3a90eb60jؔ  Satlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/Tokens.javajڔ  addedjҔ  K8jӔ  K jܔ  K8jݔ  https://github.com/palantir/atlasdb/blob/37f2f725f964386eaacf1840a1293eec6dffe3ad/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.javajߔ  https://github.com/palantir/atlasdb/raw/37f2f725f964386eaacf1840a1293eec6dffe3ad/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.java?ref=37f2f725f964386eaacf1840a1293eec6dffe3adj  X  @@ -0,0 +1,56 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.io.BaseEncoding;
+import java.util.Locale;
+import java.util.function.IntPredicate;
+
+final class Tokens {
+
+    private static final BaseEncoding LOWER_CASE_HEX = BaseEncoding.base16().lowerCase();
+
+    static byte[] hexDecode(String token) {
+        // OPP tokens should be lowercase already, use upper if needed, and convert mixed to uppercase if needed
+        byte[] decoded;
+        if (Tokens.isAllLowercaseOrDigits(token)) {
+            decoded = LOWER_CASE_HEX.decode(token);
+        } else {
+            decoded = BaseEncoding.base16().decode(token.toUpperCase(Locale.ROOT));
+        }
+        return decoded;
+    }
+
+    @VisibleForTesting
+    static boolean isAllLowercaseOrDigits(String token) {
+        return allMatch(token, ch -> Character.isLowerCase(ch) || Character.isDigit(ch));
+    }
+
+    @VisibleForTesting
+    static boolean allMatch(String token, IntPredicate predicate) {
+        for (int i = 0; i < token.length(); i++) {
+            char ch = token.charAt(i);
+            if (!predicate.test(ch)) {
+                return false;
+            }
+        }
+        return true;
+    }
+
+    private Tokens() {}
+}u}(jp  (4d5940abbd333747237339123220151ced4d121ajؔ  datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppTokenTest.javajڔ  modifiedjҔ  K)jӔ  Kjܔ  KFjݔ  https://github.com/palantir/atlasdb/blob/37f2f725f964386eaacf1840a1293eec6dffe3ad/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javajߔ  https://github.com/palantir/atlasdb/raw/37f2f725f964386eaacf1840a1293eec6dffe3ad/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.java?ref=37f2f725f964386eaacf1840a1293eec6dffe3adj  Xm  @@ -21,15 +21,13 @@
 import com.google.common.io.BaseEncoding;
 import com.google.common.primitives.Longs;
 import com.palantir.conjure.java.lib.Bytes;
-import java.nio.Buffer;
 import java.nio.ByteBuffer;
 import java.util.Collection;
 import java.util.Locale;
 import java.util.concurrent.ThreadLocalRandom;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 import java.util.stream.Stream;
-import org.assertj.core.api.InstanceOfAssertFactories;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
@@ -72,45 +70,59 @@ public static Collection<Object[]> data() {
     }
 
     @Test
-    public void createFromHex() throws Exception {
+    public void inputsAreValid() {
         assertThat(input.length() % 2 == 0)
                 .as("input must be even length to base16 decode")
                 .isTrue();
-        int expectedByteLength = input.length() / 2;
+    }
 
-        Bytes expectedBytes = Bytes.from(org.apache.commons.codec.binary.Hex.decodeHex(input));
-        LightweightOppToken lowerToken = LightweightOppToken.fromHex(input.toLowerCase(Locale.ROOT));
-        LightweightOppToken upperToken = LightweightOppToken.fromHex(input.toUpperCase(Locale.ROOT));
+    @Test
+    public void createFromHexEncodedStringRegardlessOfCase() {
         LightweightOppToken token = LightweightOppToken.fromHex(input);
-        LightweightOppToken token2 = new LightweightOppToken(Hex.hexToBytes(input));
+        LightweightOppToken tokenFromLowerCase = LightweightOppToken.fromHex(input.toLowerCase(Locale.ROOT));
+        LightweightOppToken tokenFromUpperCase = LightweightOppToken.fromHex(input.toUpperCase(Locale.ROOT));
+        LightweightOppToken tokenFromBytes = new LightweightOppToken(CassandraHex.hexToBytes(input));
+
+        assertThat(token.bytes)
+                .hasSize(input.length() / 2)
+                .isEqualTo(tokenFromLowerCase.bytes)
+                .isEqualTo(tokenFromUpperCase.bytes)
+                .isEqualTo(tokenFromBytes);
         assertThat(token)
                 .isNotNull()
-                .isEqualTo(lowerToken)
-                .isEqualTo(upperToken)
-                .isEqualTo(token2)
-                .isEqualByComparingTo(lowerToken)
-                .isEqualByComparingTo(upperToken)
-                .isEqualByComparingTo(token2);
-        assertThat(token.bytes).hasSize(expectedByteLength).contains(expectedBytes.asNewByteArray());
+                .isEqualTo(tokenFromLowerCase)
+                .isEqualTo(tokenFromUpperCase)
+                .isEqualTo(tokenFromBytes)
+                .isEqualByComparingTo(tokenFromLowerCase)
+                .isEqualByComparingTo(tokenFromUpperCase)
+                .isEqualByComparingTo(tokenFromBytes);
+    }
+
+    @Test
+    public void createFromHex() throws Exception {
+        LightweightOppToken token = LightweightOppToken.fromHex(input);
+        Bytes expectedBytes = Bytes.from(org.apache.commons.codec.binary.Hex.decodeHex(input));
+        assertThat(token.bytes).contains(expectedBytes.asNewByteArray());
         assertThat(token.isEmpty()).isEqualTo(input.length() == 0);
-        assertThat(token.deserialize())
-                .isEqualTo(expectedBytes.asReadOnlyByteBuffer())
-                .asInstanceOf(InstanceOfAssertFactories.type(ByteBuffer.class))
-                .extracting(Buffer::remaining)
-                .asInstanceOf(InstanceOfAssertFactories.INTEGER)
-                .isEqualTo(expectedByteLength);
+        ByteBuffer deserialized = token.deserialize();
+        assertThat(deserialized).isEqualTo(expectedBytes.asReadOnlyByteBuffer());
+        assertThat(deserialized.remaining()).isEqualTo(input.length() / 2);
         assertThat(token.toString()).isEqualToIgnoringCase(input);
+    }
 
+    @Test
+    public void tokenMatchesCassandraImplementation() throws Exception {
         // Test compatibility with Cassandra hex conversions from:
         // https://github.com/palantir/cassandra/blob/palantir-cassandra-2.2.18/src/java/org/apache/cassandra/dht/ByteOrderedPartitioner.java#L74
-        String hex = Hex.bytesToHex(expectedBytes.asNewByteArray());
-        byte[] bytes = Hex.hexToBytes(hex);
-        LightweightOppToken token4 = LightweightOppToken.fromHex(hex);
-        assertThat(LightweightOppToken.isAllLowercaseOrDigits(hex))
-                .as("Expect lowercase hex %s", hex)
+        Bytes expectedBytes = Bytes.from(org.apache.commons.codec.binary.Hex.decodeHex(input));
+        String hexFromCassandra = CassandraHex.bytesToHex(expectedBytes.asNewByteArray());
+        byte[] bytesFromCassandra = CassandraHex.hexToBytes(hexFromCassandra);
+        LightweightOppToken token = LightweightOppToken.fromHex(hexFromCassandra);
+        assertThat(Tokens.isAllLowercaseOrDigits(hexFromCassandra))
+                .as("Expect lowercase hex %s", hexFromCassandra)
                 .isTrue();
-        assertThat(token4).isEqualTo(new LightweightOppToken(expectedBytes.asNewByteArray()));
-        assertThat(token4.bytes).contains(bytes);
+        assertThat(token).isEqualTo(new LightweightOppToken(expectedBytes.asNewByteArray()));
+        assertThat(token.bytes).contains(bytesFromCassandra);
     }
 
     /*
@@ -132,7 +144,7 @@ public void createFromHex() throws Exception {
      */
     // Imported from cassandra to test using their conversions
     // https://github.com/palantir/cassandra/blob/palantir-cassandra-2.2.18/src/java/org/apache/cassandra/utils/Hex.java
-    static final class Hex {
+    static final class CassandraHex {
         private static final byte[] charToByte = new byte[256];
 
         // package protected for use by ByteBufferUtil. Do not modify this array !!u}(jp  (0088eb43fec799b56385d6b6419ce3781584938djؔ  Watlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/TokensTest.javajڔ  addedjҔ  KSjӔ  K jܔ  KSjݔ  https://github.com/palantir/atlasdb/blob/37f2f725f964386eaacf1840a1293eec6dffe3ad/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.javajߔ  https://github.com/palantir/atlasdb/raw/37f2f725f964386eaacf1840a1293eec6dffe3ad/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.java?ref=37f2f725f964386eaacf1840a1293eec6dffe3adj  X'  @@ -0,0 +1,83 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.io.BaseEncoding;
+import com.google.common.primitives.Longs;
+import java.util.Locale;
+import java.util.concurrent.ThreadLocalRandom;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+import org.junit.Test;
+
+public final class TokensTest {
+    @Test
+    public void decodeHex() {
+        Stream.concat(
+                        Stream.of(
+                                "",
+                                "0F",
+                                "decafbad",
+                                "0123456789ABCDEF",
+                                "0123456789abcdef",
+                                "0123456789Abcdef",
+                                "0123456789aBcdef",
+                                "0123456789abCdef",
+                                "0123456789abcDef",
+                                "0123456789abcdEf",
+                                "0123456789abcdeF",
+                                Long.toHexString(Long.MIN_VALUE),
+                                Long.toHexString(Long.MAX_VALUE)),
+                        Stream.concat(
+                                IntStream.range(0, 32).mapToObj(i -> {
+                                    byte[] bytes = new byte[i * 2];
+                                    ThreadLocalRandom.current().nextBytes(bytes);
+                                    return BaseEncoding.base16().encode(bytes);
+                                }),
+                                IntStream.range(0, 10_000).mapToObj(_i -> BaseEncoding.base16()
+                                        .encode(Longs.toByteArray(
+                                                ThreadLocalRandom.current().nextLong())))))
+                .flatMap(input -> Stream.of(input, input.toLowerCase(Locale.ROOT), input.toUpperCase(Locale.ROOT)))
+                .forEach(input -> assertThat(Tokens.hexDecode(input))
+                        .as("token '%s'", input)
+                        .hasSize(input.length() / 2));
+    }
+
+    @Test
+    public void isAllLowercaseOrDigits() {
+        assertThat(Tokens.isAllLowercaseOrDigits("abcdef01234567890")).isTrue();
+        assertThat(Tokens.isAllLowercaseOrDigits("01234567890abcdef")).isTrue();
+        assertThat(Tokens.isAllLowercaseOrDigits("Abcdef01234567890")).isFalse();
+        assertThat(Tokens.isAllLowercaseOrDigits("01234567890ABCDEF")).isFalse();
+    }
+
+    @Test
+    public void allMatch() {
+        assertThat(Tokens.allMatch("01234567890", Character::isDigit)).isTrue();
+        assertThat(Tokens.allMatch("0123456789A", Character::isDigit)).isFalse();
+        assertThat(Tokens.allMatch("ABCEFGHIJKLMNOPQRSTUVWXYZ", Character::isUpperCase))
+                .isTrue();
+        assertThat(Tokens.allMatch("ABCEFGHIJKLMNOPQRSTUVWXYZ", Character::isLowerCase))
+                .isFalse();
+        assertThat(Tokens.allMatch("abcefghijklmnopqrstuvwxyz", Character::isLowerCase))
+                .isTrue();
+        assertThat(Tokens.allMatch("abcefghijklmnopqrstuvwxyz", Character::isUpperCase))
+                .isFalse();
+    }
+}ueu(383156a1d04e571490160fcc3e9ee98db30c579f}(sha(383156a1d04e571490160fcc3e9ee98db30c579fnode_idEC_kwDOAjP5fdoAKDM4MzE1NmExZDA0ZTU3MTQ5MDE2MGZjYzNlOWVlOThkYjMwYzU3OWYcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-02-22T17:22:55Zu	committer}(j  David Schlosnaglej	  davids@palantir.comj  2023-02-22T17:23:05Zumessagesimplify port checktree}(j  (dbb85f14d5e10bbd9b4cfc68a8ea21993f12d067url`https://api.github.com/repos/palantir/atlasdb/git/trees/dbb85f14d5e10bbd9b4cfc68a8ea21993f12d067uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/383156a1d04e571490160fcc3e9ee98db30c579f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmP2T3kACgkQR9hsJ74Q
0l9Bxgf8DsUMlGtN+ZVKfgaHtn9vsHGdOgaNPHFKWRzuM9pW011o1ndvPv//aXFK
lWPGDE5hh/NlojCdlEhpeb6eAIQ4sUKsMw1DdQkyeGtMOsOvItsMTI43fe+LR6SW
yxniQ1DMhSNX9xIDmXWZAfXRSD7cdqzboP1coPoB32tMoG7cLNCzx9IRIqKj2hto
NEcdmfByR7p4Gc7KmU2YmEnqQIIPE6YisUZ1Oxp93BlRz4Kd43lCh2PNVnQtlSk7
yZmbi45Y1UgLDISVvP5+DaNG8RRO9SAgH78j2JWRh9KDVjCk6+64GaDvZ1LgzYaj
k+aJpJuchIzFLxGhqYSh75unOLHTSQ==
=Gl/+
-----END PGP SIGNATURE-----payloadtree dbb85f14d5e10bbd9b4cfc68a8ea21993f12d067
parent 1770710cea3ee27b9d88f02a6488fb8286f84233
author David Schlosnagle <davids@palantir.com> 1677086575 -0500
committer David Schlosnagle <davids@palantir.com> 1677086585 -0500

simplify port check
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/383156a1d04e571490160fcc3e9ee98db30c579fhtml_urlShttps://github.com/palantir/atlasdb/commit/383156a1d04e571490160fcc3e9ee98db30c579fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/383156a1d04e571490160fcc3e9ee98db30c579f/commentsj  }(loginschlosnaidMBj  MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j  %https://api.github.com/users/schlosnaj%  https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj
  }(j*  schlosnaj,  MBj  MDQ6VXNlcjU0NTk0j.  1https://avatars.githubusercontent.com/u/54594?v=4j0  h5j  %https://api.github.com/users/schlosnaj%  https://github.com/schlosnaj3  /https://api.github.com/users/schlosna/followersj5  <https://api.github.com/users/schlosna/following{/other_user}j7  5https://api.github.com/users/schlosna/gists{/gist_id}j9  <https://api.github.com/users/schlosna/starred{/owner}{/repo}j;  3https://api.github.com/users/schlosna/subscriptionsj=  *https://api.github.com/users/schlosna/orgsj?  +https://api.github.com/users/schlosna/reposjA  6https://api.github.com/users/schlosna/events{/privacy}jC  5https://api.github.com/users/schlosna/received_eventsjE  UserjG  uparents]}(j  (1770710cea3ee27b9d88f02a6488fb8286f84233j  ^https://api.github.com/repos/palantir/atlasdb/commits/1770710cea3ee27b9d88f02a6488fb8286f84233j%  Shttps://github.com/palantir/atlasdb/commit/1770710cea3ee27b9d88f02a6488fb8286f84233uastats}(totalK(	additionsK	deletionsKufiles](}(j  (4228354f0b61970c1539f87ae8231ea1ab2d8c73filenamebatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javastatusmodifiedja  Kjb  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/383156a1d04e571490160fcc3e9ee98db30c579f/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/383156a1d04e571490160fcc3e9ee98db30c579f/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=383156a1d04e571490160fcc3e9ee98db30c579fpatchXe  @@ -17,6 +17,7 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
+import com.google.common.collect.FluentIterable;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableRangeMap;
@@ -294,28 +295,26 @@ private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) th
     }
 
     private int getKnownPort() throws UnknownHostException {
-        return onlyPort(Stream.concat(
-                        currentPools.keySet().stream().map(CassandraServer::proxy),
-                        getServersSocketAddressesFromConfig().stream())
-                .map(InetSocketAddress::getPort)
-                .iterator());
+        // explicitly not using streams due to allocation overhead
+        return onlyPort(FluentIterable.concat(
+                        FluentIterable.from(currentPools.keySet()).transform(CassandraServer::proxy),
+                        getServersSocketAddressesFromConfig())
+                .transform(InetSocketAddress::getPort));
     }
 
     @VisibleForTesting
-    static int onlyPort(Iterator<Integer> iterator) throws UnknownHostException {
-        int knownPort = -1;
+    static int onlyPort(Iterable<? extends Integer> iterable) throws UnknownHostException {
+        Iterator<? extends Integer> iterator = iterable.iterator();
+        if (!iterator.hasNext()) {
+            throw new UnknownHostException("No single known port");
+        }
+        int port = iterator.next();
         while (iterator.hasNext()) {
-            int port = iterator.next();
-            if (knownPort == -1) {
-                knownPort = port;
-            } else if (knownPort != port) {
+            if (port != iterator.next()) {
                 throw new UnknownHostException("No single known port");
             }
         }
-        if (knownPort == -1) {
-            throw new UnknownHostException("No single known port");
-        }
-        return knownPort;
+        return port;
     }
 
     private ImmutableSet<CassandraServer> getHostsFor(byte[] key) {u}(j  (263551e0d877ee028f36c8295ff2ae5fd69a9f79jg  fatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraServiceTest.javaji  modifiedja  Kjb  Kjk  Kjl  https://github.com/palantir/atlasdb/blob/383156a1d04e571490160fcc3e9ee98db30c579f/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javajn  https://github.com/palantir/atlasdb/raw/383156a1d04e571490160fcc3e9ee98db30c579f/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javajp  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.java?ref=383156a1d04e571490160fcc3e9ee98db30c579fjr  X  @@ -272,11 +272,12 @@ public void getRandomHostByActiveConnectionsReturnsDesiredHost() {
 
     @Test
     public void ports() throws Exception {
-        assertThat(CassandraService.onlyPort(List.of(1, 1, 1).iterator())).isEqualTo(1);
-        assertThat(CassandraService.onlyPort(
-                        IntStream.generate(() -> 4224).boxed().limit(15).iterator()))
-                .isEqualTo(4224);
-        assertThatThrownBy(() -> CassandraService.onlyPort(List.of(1, 2, 1).iterator()))
+        assertThat(CassandraService.onlyPort(List.of(1, 1, 1))).isEqualTo(1);
+        assertThat(IntStream.generate(() -> 4224).boxed().limit(15).collect(Collectors.toList()))
+                .hasSize(15)
+                .satisfies(cluster ->
+                        assertThat(CassandraService.onlyPort(cluster)).isEqualTo(4224));
+        assertThatThrownBy(() -> CassandraService.onlyPort(List.of(1, 2, 1)))
                 .isInstanceOf(UnknownHostException.class)
                 .hasMessageContaining("No single known port");
     }ueu(cea089afdc604d794c13de0997f976e43597424c}(sha(cea089afdc604d794c13de0997f976e43597424cnode_idEC_kwDOAjP5fdoAKGNlYTA4OWFmZGM2MDRkNzk0YzEzZGUwOTk3Zjk3NmU0MzU5NzQyNGMcommit}(author}(nameJeremy Kongemailjeremykong@hotmail.comdate2023-04-12T10:20:32Zu	committer}(j  svc-autoreleasej  -pd-foundry-infrastructure-notify@palantir.comj  2023-04-12T10:20:32Zumessage"Autorelease 0.833.0-rc1

[skip ci]tree}(j~  (3ea3c493e59407fcf20e560bc00d2533424f3c36url`https://api.github.com/repos/palantir/atlasdb/git/trees/3ea3c493e59407fcf20e560bc00d2533424f3c36uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cea089afdc604d794c13de0997f976e43597424c
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQ2hfEACgkQhbrR8ip7mDCuQQD/cVFtoCq1FdfucvqRQRI3YyDU
B2A+4MMhEuUGqGn62FYBAINiFQxYiVE45Dc5FHGEUfZDdRXSLXkjwLxyDI29G42b
=IacU
-----END PGP SIGNATURE-----
payloadX  tree 3ea3c493e59407fcf20e560bc00d2533424f3c36
parent ed1757e27de26ff7e8ff2a022fbc5831360f6efd
author Jeremy Kong <jeremykong@hotmail.com> 1681294832 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1681294832 +0000

Autorelease 0.833.0-rc1

[skip ci]uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/cea089afdc604d794c13de0997f976e43597424chtml_urlShttps://github.com/palantir/atlasdb/commit/cea089afdc604d794c13de0997f976e43597424ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cea089afdc604d794c13de0997f976e43597424c/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j  svc-autoreleasej  J(j  MDQ6VXNlcjUxNzE4MzQ2j  4https://avatars.githubusercontent.com/u/51718346?v=4j  h5j  ,https://api.github.com/users/svc-autoreleasej  "https://github.com/svc-autoreleasej  6https://api.github.com/users/svc-autorelease/followersj  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j  :https://api.github.com/users/svc-autorelease/subscriptionsj  1https://api.github.com/users/svc-autorelease/orgsj  2https://api.github.com/users/svc-autorelease/reposj  =https://api.github.com/users/svc-autorelease/events{/privacy}j  <https://api.github.com/users/svc-autorelease/received_eventsjĕ  Userjƕ  uparents]}(j~  (ed1757e27de26ff7e8ff2a022fbc5831360f6efdj  ^https://api.github.com/repos/palantir/atlasdb/commits/ed1757e27de26ff7e8ff2a022fbc5831360f6efdj  Shttps://github.com/palantir/atlasdb/commit/ed1757e27de26ff7e8ff2a022fbc5831360f6efduastats}(totalK 	additionsK 	deletionsK ufiles]u(1be1d60e855bbd7d756e718bcced869d95b06eb9}(sha(1be1d60e855bbd7d756e718bcced869d95b06eb9node_idEC_kwDOAjP5fdoAKDFiZTFkNjBlODU1YmJkN2Q3NTZlNzE4YmNjZWQ4NjlkOTViMDZlYjkcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-15T14:40:20Zu	committer}(j  GitHubj  noreply@github.comj  2023-05-15T14:40:20ZumessageExplicitly use NativePRNG for Buggify (#6567)

* use pure numbers

* return four

* CR feedback

* use new DefaultNativeSamplingSecureRandomFactorytree}(j  (9a702d9a12767594cc734c6d925cdd484a8db7b1url`https://api.github.com/repos/palantir/atlasdb/git/trees/9a702d9a12767594cc734c6d925cdd484a8db7b1uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1be1d60e855bbd7d756e718bcced869d95b06eb9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkYkRUCRBK7hj4Ov3rIwAAp6AIAK9/LJmsa7JxFDQ/VDaI9Fa5
etlwCXcR4r8OQvnFy7KqEhQ03Sw+RhG0hTXqZedHXE23QkFfaYfCa6SUKvDqPwCP
5IHNRvvz2ieD02AuJW8pnf2fsUrM8iJpLChyCZ26jjOCt0fcmHSJ96eBwigNNJww
nOYWSF7bk9d2vF6jFJeAgGd4rDDySodbSxHfa4HnaWbxZWiiG0K6bEe1YpzCIly8
KKQxRW1HJYmdQU/frB2+c+bMWGbjmGmFM0O8jW9dd4d+/h4F/YesZTtOKHaQLpbU
UgOtbP6CRuNPARqNvo3FtBTE3QKbXij2tYpzM127YxbEvkUOmmLuVB6ElDlps+A=
=bCho
-----END PGP SIGNATURE-----
payloadXh  tree 9a702d9a12767594cc734c6d925cdd484a8db7b1
parent 174bb726c72d9f909fc125b5f001b253330dd1b7
author Jeremy Kong <jkong@palantir.com> 1684161620 +0100
committer GitHub <noreply@github.com> 1684161620 +0100

Explicitly use NativePRNG for Buggify (#6567)

* use pure numbers

* return four

* CR feedback

* use new DefaultNativeSamplingSecureRandomFactoryuuj  ^https://api.github.com/repos/palantir/atlasdb/commits/1be1d60e855bbd7d756e718bcced869d95b06eb9html_urlShttps://github.com/palantir/atlasdb/commit/1be1d60e855bbd7d756e718bcced869d95b06eb9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1be1d60e855bbd7d756e718bcced869d95b06eb9/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j   <https://api.github.com/users/web-flow/starred{/owner}{/repo}j"  3https://api.github.com/users/web-flow/subscriptionsj$  *https://api.github.com/users/web-flow/orgsj&  +https://api.github.com/users/web-flow/reposj(  6https://api.github.com/users/web-flow/events{/privacy}j*  5https://api.github.com/users/web-flow/received_eventsj,  Userj.  uparents]}(j  (174bb726c72d9f909fc125b5f001b253330dd1b7j  ^https://api.github.com/repos/palantir/atlasdb/commits/174bb726c72d9f909fc125b5f001b253330dd1b7j  Shttps://github.com/palantir/atlasdb/commit/174bb726c72d9f909fc125b5f001b253330dd1b7uastats}(totalKW	additionsKT	deletionsKufiles](}(j  (6f3353a1c06e3518031faa27f5e05286e635a2dbfilenameeatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/NativeSamplingSecureRandomFactory.javastatusaddedjH  K!jI  K changesK!blob_urlhttps://github.com/palantir/atlasdb/blob/1be1d60e855bbd7d756e718bcced869d95b06eb9/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FNativeSamplingSecureRandomFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1be1d60e855bbd7d756e718bcced869d95b06eb9/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FNativeSamplingSecureRandomFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FNativeSamplingSecureRandomFactory.java?ref=1be1d60e855bbd7d756e718bcced869d95b06eb9patchX  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+import java.security.SecureRandom;
+
+public interface NativeSamplingSecureRandomFactory {
+    /**
+     * Creates an instance of {@link SecureRandom} that, as far as is supported by the system, produces both seed and
+     * random numbers from an external source.
+     * <p>
+     * The motivation for this is for running tests in an environment (such as that provided by Antithesis) where
+     * system-provided randomness is deterministic, and can be dynamically controlled by the fuzzer to explore the
+     * state space of the system more efficiently. We thus want to ensure that the random number generator we use
+     * makes queries to the system-provided randomness source not just for seeding, but also on every generation
+     * of a random number.
+     */
+    SecureRandom create();
+}u}(j  (4ca0edd6554c8b49ac329f94f8407ea5328fca20jN  Zatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactory.javajP  modifiedjH  KjI  KjR  KjS  https://github.com/palantir/atlasdb/blob/1be1d60e855bbd7d756e718bcced869d95b06eb9/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javajU  https://github.com/palantir/atlasdb/raw/1be1d60e855bbd7d756e718bcced869d95b06eb9/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javajW  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.java?ref=1be1d60e855bbd7d756e718bcced869d95b06eb9jY  X  @@ -23,7 +23,7 @@
 import java.util.function.DoubleSupplier;
 
 public final class DefaultBuggifyFactory implements BuggifyFactory {
-    private static final SecureRandom SECURE_RANDOM = new SecureRandom();
+    private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
     public static final BuggifyFactory INSTANCE = new DefaultBuggifyFactory();
 
     private final DoubleSupplier doubleSupplier;u}(j  (1f3a1114799a4b99ced3a549da79307fe3e7b204jN  matlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultNativeSamplingSecureRandomFactory.javajP  addedjH  K,jI  K jR  K,jS  https://github.com/palantir/atlasdb/blob/1be1d60e855bbd7d756e718bcced869d95b06eb9/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultNativeSamplingSecureRandomFactory.javajU  https://github.com/palantir/atlasdb/raw/1be1d60e855bbd7d756e718bcced869d95b06eb9/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultNativeSamplingSecureRandomFactory.javajW  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultNativeSamplingSecureRandomFactory.java?ref=1be1d60e855bbd7d756e718bcced869d95b06eb9jY  X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.NativeSamplingSecureRandomFactory;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.security.SecureRandom;
+
+public enum DefaultNativeSamplingSecureRandomFactory implements NativeSamplingSecureRandomFactory {
+    INSTANCE;
+
+    private static final SafeLogger log = SafeLoggerFactory.get(DefaultNativeSamplingSecureRandomFactory.class);
+
+    @Override
+    public SecureRandom create() {
+        try {
+            // The NativePRNG algorithm reads from /dev/random or /dev/urandom for generating both seed and random
+            // numbers, which satisfies the requirements of the interface (and both of these files are fuzzer-controlled
+            // in Antithesis). This string is a reserved identifier for the algorithm, following
+            // https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html#securerandom-number-generation-algorithms
+            return SecureRandom.getInstance("NativePRNG");
+        } catch (Exception e) {
+            log.warn(
+                    "Failed to initialize fully native secure random instance, letting the Java runtime select for us",
+                    e);
+            return new SecureRandom();
+        }
+    }
+}u}(j  (883a7c704fe22f01de7f67dac1f4711a2c75ea74jN  $atlasdb-workload-server/build.gradlejP  modifiedjH  KjI  K jR  KjS  xhttps://github.com/palantir/atlasdb/blob/1be1d60e855bbd7d756e718bcced869d95b06eb9/atlasdb-workload-server%2Fbuild.gradlejU  whttps://github.com/palantir/atlasdb/raw/1be1d60e855bbd7d756e718bcced869d95b06eb9/atlasdb-workload-server%2Fbuild.gradlejW  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=1be1d60e855bbd7d756e718bcced869d95b06eb9jY  XS  @@ -8,6 +8,7 @@ license {
 dependencies {
     implementation project(':atlasdb-workload-server-api')
     implementation project(':atlasdb-api')
+    implementation project(':atlasdb-buggify')
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-config')
     implementation project(':atlasdb-impl-shared')u}(j  (17025a595fb12bc4f0fc9cfc02f250dd06064c6ajN  `atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingGraph.javajP  modifiedjH  KjI  KjR  KjS  https://github.com/palantir/atlasdb/blob/1be1d60e855bbd7d756e718bcced869d95b06eb9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javajU  https://github.com/palantir/atlasdb/raw/1be1d60e855bbd7d756e718bcced869d95b06eb9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.java       jW  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.java?ref=1be1d60e855bbd7d756e718bcced869d95b06eb9jY  XJ  @@ -17,8 +17,10 @@
 package com.palantir.atlasdb.workload.workflow.ring;
 
 import com.google.common.collect.Iterators;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
+import java.security.SecureRandom;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.HashSet;
@@ -33,6 +35,7 @@
 import one.util.streamex.EntryStream;
 
 public final class RingGraph {
+    private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
     private final Map<Integer, Integer> ring;
 
     private RingGraph(Map<Integer, Integer> ring) {
@@ -66,7 +69,7 @@ public static RingGraph create(int size) {
      * (1) There are no missing entries
      * (2) There are no sub-cycles
      * (3) The ring is connected
-     *
+     * <p>
      * This is simply done by iterating over the length of the ring, and validating that we visited each node.
      * To ensure that the ring is connected, we do not track our entry into the ring (i.e. the first node we visit),
      * as we expect to have it be visited again as the last node.
@@ -100,7 +103,7 @@ public RingGraph generateNewRing() {
      */
     private static RingGraph generateNewRing(Set<Integer> nodes) {
         List<Integer> keys = new ArrayList<>(nodes);
-        Collections.shuffle(keys);
+        Collections.shuffle(keys, SECURE_RANDOM);
         Iterator<Integer> valuesIterator = Iterators.cycle(keys);
         valuesIterator.next();
         return new RingGraph(ueu(94f77f494e0a1f2f59662e9d7bcb33f41acad75f}(sha(94f77f494e0a1f2f59662e9d7bcb33f41acad75fnode_idEC_kwDOAjP5fdoAKDk0Zjc3ZjQ5NGUwYTFmMmY1OTY2MmU5ZDdiY2IzM2Y0MWFjYWQ3NWYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-16T13:33:08Zu	committer}(j  
Sam Kramerj  skramer@palantir.comj  2023-03-21T12:43:34Zumessage)ignore case for both primary/index tablestree}(j}  (e82df0b980f8025acd675be72b16cb71f7e03accurl`https://api.github.com/repos/palantir/atlasdb/git/trees/e82df0b980f8025acd675be72b16cb71f7e03accuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/94f77f494e0a1f2f59662e9d7bcb33f41acad75f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQZpnYACgkQmPPOpKR4
XS3yfwf+Jari5StXwOCSXqJoVbE0wpQSNQpXXnzJ9woerJ2MT+4/PoCDSakwTssV
DvefxgBEYbrV1JdgBXf0np8nn8GxH4+MiztTGcRj2U1r7VbKwNUrIgiOWOvh0fNp
TgGmuko1hgT6vlP0S40/xAi8al5Ev+KyU1npgahn4GqTLZVfYYpfKpn7ioEvELJt
2/qxZPldFc7RnS+A/b0DncszmXdXmQDBRw186MNAfKqNQWvbKGAYc8qH8g8COBDC
XssocI+rt0fnuWi1SFZN/5LcFRc2xut4Un9tYq6sZUx86luhu/gC/6LbPGu+zcyC
87tx/Wm7XpBeC4SNGEifyscolHmSQg==
=ilNC
-----END PGP SIGNATURE-----payloadX   tree e82df0b980f8025acd675be72b16cb71f7e03acc
parent 29630061b245c95b695009d55870f1b6bbf9414a
author Sam Kramer <skramer@palantir.com> 1678973588 +0000
committer Sam Kramer <skramer@palantir.com> 1679402614 +0000

ignore case for both primary/index tables
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/94f77f494e0a1f2f59662e9d7bcb33f41acad75fhtml_urlShttps://github.com/palantir/atlasdb/commit/94f77f494e0a1f2f59662e9d7bcb33f41acad75fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/94f77f494e0a1f2f59662e9d7bcb33f41acad75f/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j  
Sam-Kramerj  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j  h5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj  1https://api.github.com/users/Sam-Kramer/followersj  >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j  5https://api.github.com/users/Sam-Kramer/subscriptionsj  ,https://api.github.com/users/Sam-Kramer/orgsj  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsjÖ  UserjŖ  uparents]}(j}  (29630061b245c95b695009d55870f1b6bbf9414aj  ^https://api.github.com/repos/palantir/atlasdb/commits/29630061b245c95b695009d55870f1b6bbf9414aj  Shttps://github.com/palantir/atlasdb/commit/29630061b245c95b695009d55870f1b6bbf9414auastats}(totalK	additionsK	deletionsKufiles](}(j}  (945bd51a9e1af43213942c8be181025324041dd8filenamematlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javastatusmodifiedjߖ  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/94f77f494e0a1f2f59662e9d7bcb33f41acad75f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/94f77f494e0a1f2f59662e9d7bcb33f41acad75f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=94f77f494e0a1f2f59662e9d7bcb33f41acad75fpatchXb  @@ -102,10 +102,13 @@ private static void checkIndexesDoNotHaveDuplicateNames(Set<IndexTable> indexTab
 
     private static void checkIndexAndPrimaryTableNamesDoNotConflict(
             Map<String, IsolationLevel> tables, Set<IndexTable> indexTables) {
-        Set<String> tableNames = tables.keySet();
-        Set<String> indexTableNames =
-                StreamEx.of(indexTables).map(IndexTable::indexTableName).toSet();
-        Set<String> conflictingTableNames = Sets.intersection(tableNames, indexTableNames);
+        Set<String> primaryTableNames =
+                tables.keySet().stream().map(String::toLowerCase).collect(Collectors.toSet());
+        Set<String> indexTableNames = indexTables.stream()
+                .map(IndexTable::indexTableName)
+                .map(String::toLowerCase)
+                .collect(Collectors.toSet());
+        Set<String> conflictingTableNames = Sets.intersection(primaryTableNames, indexTableNames);
         Preconditions.checkArgument(
                 conflictingTableNames.isEmpty(),
                 "Found indexes which have the same name as primary tables",u}(j}  (fa2b7e0a76d3a58878ebde01fd053f11ba48b28cj  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactoryTest.javaj  modifiedjߖ  Kj  Kj  K	j  https://github.com/palantir/atlasdb/blob/94f77f494e0a1f2f59662e9d7bcb33f41acad75f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactoryTest.javaj  https://github.com/palantir/atlasdb/raw/94f77f494e0a1f2f59662e9d7bcb33f41acad75f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactoryTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactoryTest.java?ref=94f77f494e0a1f2f59662e9d7bcb33f41acad75fj  X  @@ -25,6 +25,7 @@
 import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.logsafe.SafeArg;
+import java.util.Locale;
 import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
@@ -130,7 +131,9 @@ public void throwsWhenPrimaryAndIndexTableHaveConflictingNames() {
                                 IsolationLevel.SERIALIZABLE,
                                 WorkloadTestHelpers.TABLE_1_INDEX_1,
                                 IsolationLevel.SERIALIZABLE),
-                        Set.of(createIndexTable(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.TABLE_1_INDEX_1))))
+                        Set.of(createIndexTable(
+                                WorkloadTestHelpers.TABLE_1.toUpperCase(Locale.ROOT),
+                                WorkloadTestHelpers.TABLE_1_INDEX_1))))
                 .hasMessageContaining("Found indexes which have the same name as primary tables")
                 .hasExactlyArgs(SafeArg.of("conflictingTableNames", Set.of(WorkloadTestHelpers.TABLE_1)));
     }
@@ -144,7 +147,9 @@ public void throwsWhenIndexTablesHaveDuplicateNames() {
                                 WorkloadTestHelpers.TABLE_2,
                                 IsolationLevel.SERIALIZABLE),
                         Set.of(
-                                createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_1),
+                                createIndexTable(
+                                        WorkloadTestHelpers.TABLE_1_INDEX_1.toUpperCase(Locale.ROOT),
+                                        WorkloadTestHelpers.TABLE_1),
                                 createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_2))))
                 .hasMessageContaining("Found index tables with the same name")
                 .hasExactlyArgs(SafeArg.of("duplicateTableIndexNames", Set.of(WorkloadTestHelpers.TABLE_1_INDEX_1)));ueu(0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7}(sha(0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7node_idEC_kwDOAjP5fdoAKDBlYzAwZDJkMGE1NjQwNWU2YTdlODRkN2FiYTFhYzJjNzk0MjVlYzccommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-13T22:14:33Zu	committer}(j  	Tom Papkej  tpapke@palantir.comj  2023-06-13T22:14:33ZumessageAddress comments for teststree}(j  (a898aace1bb41fa8e01909c1acb095b24185a3d1url`https://api.github.com/repos/palantir/atlasdb/git/trees/a898aace1bb41fa8e01909c1acb095b24185a3d1uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSI6kkACgkQmF9s0kaF
Iw2zsAf/aV7JtY6Ux4iB20lAFesNWnh62L25Ejf0zr2vP3Y++0kzNXwix067hBH/
e63na/9lqjug1pOkSdWkpxyEJ2l0DTbt3oPz6VMPKzyTwuHs4/lHYFHczLRdYcf2
Q11NN3HVXMxS/8TrN/wGg+jx2EoLDHLij89kA2S5mmXCbqUo/NlpeOSQab2MBC3W
obOK+q0MAuHoNB8RvCEJR0anjcBCQNKzzIvN7NmAUWPWiu5Om5IMb05uXnvU7OGe
WkvPzJMJW2SmmPAmXc+hgMfj324qtbH3nCiYE9qX2kF++ZupxqqlYrRsuHf3DBXm
hP9SAVfyhEHTo76Ns84VP41aRFqupg==
=KfSY
-----END PGP SIGNATURE-----payloadtree a898aace1bb41fa8e01909c1acb095b24185a3d1
parent 633e1a7f0a672f8def1b520eb9738d72718c0c00
author Tom Papke <tpapke@palantir.com> 1686694473 +0100
committer Tom Papke <tpapke@palantir.com> 1686694473 +0100

Address comments for tests
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7html_urlShttps://github.com/palantir/atlasdb/commit/0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7/commentsj  }(login	ToemmscheidJboj  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j  &https://api.github.com/users/Toemmschej"  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj
  }(j'  	Toemmschej)  Jboj  MDQ6VXNlcjQzNjc1NDkwj+  4https://avatars.githubusercontent.com/u/43675490?v=4j-  h5j  &https://api.github.com/users/Toemmschej"  https://github.com/Toemmschej0  0https://api.github.com/users/Toemmsche/followersj2  =https://api.github.com/users/Toemmsche/following{/other_user}j4  6https://api.github.com/users/Toemmsche/gists{/gist_id}j6  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j8  4https://api.github.com/users/Toemmsche/subscriptionsj:  +https://api.github.com/users/Toemmsche/orgsj<  ,https://api.github.com/users/Toemmsche/reposj>  7https://api.github.com/users/Toemmsche/events{/privacy}j@  6https://api.github.com/users/Toemmsche/received_eventsjB  UserjD  uparents]}(j  (633e1a7f0a672f8def1b520eb9738d72718c0c00j  ^https://api.github.com/repos/palantir/atlasdb/commits/633e1a7f0a672f8def1b520eb9738d72718c0c00j"  Shttps://github.com/palantir/atlasdb/commit/633e1a7f0a672f8def1b520eb9738d72718c0c00uastats}(totalKf	additionsK5	deletionsK1ufiles](}(j  (ba23e75afdc6f9f293421471aea0cecb86f2a4e5filenamelock-impl/build.gradlestatusmodifiedj^  Kj_  K changesKblob_urljhttps://github.com/palantir/atlasdb/blob/0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7/lock-impl%2Fbuild.gradleraw_urlihttps://github.com/palantir/atlasdb/raw/0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7/lock-impl%2Fbuild.gradlecontents_url|https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fbuild.gradle?ref=0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7patchX  @@ -13,6 +13,7 @@ dependencies {
   implementation 'com.palantir.safe-logging:preconditions'
   implementation 'com.palantir.safe-logging:safe-logging'
   implementation 'joda-time:joda-time'
+  implementation 'one.util:streamex'
   implementation 'org.eclipse.collections:eclipse-collections'
   implementation 'org.eclipse.collections:eclipse-collections-api'
   implementation 'org.slf4j:slf4j-api'
@@ -22,6 +23,7 @@ dependencies {
   implementation project(':lock-api-objects')
   implementation project(':timestamp-api')
 
+  testImplementation 'org.awaitility:awaitility'
   testImplementation 'com.fasterxml.jackson.core:jackson-databind'
   testImplementation 'com.google.guava:guava'
   testImplementation 'com.palantir.safe-logging:preconditions'u}(j  (3c5ab98bc664bd3624f15c6f8059040c62d968a9jd  Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javajf  modifiedj^  K3j_  K1jh  Kdji  https://github.com/palantir/atlasdb/blob/0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javajk  https://github.com/palantir/atlasdb/raw/0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javajm  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7jo  X.  @@ -30,16 +30,19 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.StringLockDescriptor;
-import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Future;
 import java.util.concurrent.TimeUnit;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
+import one.util.streamex.IntStreamEx;
+import one.util.streamex.StreamEx;
+import org.awaitility.Awaitility;
 import org.junit.Test;
 
 public class ThreadInfoLockServiceImplTest {
@@ -73,17 +76,17 @@ public class ThreadInfoLockServiceImplTest {
     @Test
     public void initialThreadInfoIsEmpty() {
         forceSnapshot();
-        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isNull();
-        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isNull();
-        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isNull();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
     }
 
     @Test
     public void recordsThreadInfoForLock() throws InterruptedException {
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
         forceSnapshot();
 
-        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEqualTo(ANONYMOUS_TEST_THREAD_1);
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
     }
 
     @Test
@@ -92,12 +95,12 @@ public void recordsThreadInfoForUnlock() throws InterruptedException {
                 lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
         forceSnapshot();
 
-        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEqualTo(ANONYMOUS_TEST_THREAD_1);
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
 
         lockService.unlock(response.getToken());
         forceSnapshot();
 
-        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isNull();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
     }
 
     @Test
@@ -107,19 +110,17 @@ public void recordsThreadInfoForMultipleLocks() throws InterruptedException {
 
         List<String> threadNames =
                 IntStream.range(0, numThreads).mapToObj(i -> "test-thread-" + i).collect(Collectors.toList());
-        Map<String, Set<LockDescriptor>> locksPerThread = new HashMap<>();
-        for (String threadName : threadNames) {
-            Set<LockDescriptor> locks = IntStream.range(0, numLocksPerThread)
-                    .mapToObj(i -> StringLockDescriptor.of("test-lock-" + i + "-from-thread-" + threadName))
-                    .collect(Collectors.toSet());
-            locksPerThread.put(threadName, locks);
-        }
 
-        for (String threadName : threadNames) {
-            LockRequest lockRequest = LockRequest.builder(
-                            ImmutableSortedMap.copyOf(locksPerThread.get(threadName).stream()
-                                    .collect(Collectors.toMap(lock -> lock, lock -> LockMode.WRITE))))
-                    .withCreatingThreadName(threadName)
+        Map<String, Set<LockDescriptor>> locksPerThread = StreamEx.of(threadNames)
+                .mapToEntry(threadName -> IntStreamEx.range(0, numLocksPerThread)
+                        .mapToObj(i -> StringLockDescriptor.of("test-lock-" + i + "-from-thread-" + threadName))
+                        .toSet())
+                .toMap();
+
+        for (Map.Entry<String, Set<LockDescriptor>> entry : locksPerThread.entrySet()) {
+            LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.copyOf(
+                            entry.getValue().stream().collect(Collectors.toMap(lock -> lock, lock -> LockMode.WRITE))))
+                    .withCreatingThreadName(entry.getKey())
                     .build();
             lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest);
         }
@@ -128,7 +129,7 @@ public void recordsThreadInfoForMultipleLocks() throws InterruptedException {
 
         locksPerThread.forEach((threadName, lockDescriptors) ->
                 lockDescriptors.forEach(lock -> assertThat(getLatestThreadInfoForLock(lock))
-                        .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, threadName))));
+                        .contains(LockClientAndThread.of(LockClient.ANONYMOUS, threadName))));
     }
 
     @Test
@@ -147,15 +148,15 @@ public void recordsThreadInfoForSharedLock() throws InterruptedException {
 
         forceSnapshot();
 
-        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1).get())
                 .isIn(ANONYMOUS_TEST_THREAD_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
 
         lockService.unlock(lockResponse.getToken());
 
         forceSnapshot();
 
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
-                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
     }
 
     @Test
@@ -172,8 +173,8 @@ public void doesNotRecordDroppedLocksWithLockAllOrNone() throws InterruptedExcep
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
         forceSnapshot();
 
-        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEqualTo(ANONYMOUS_TEST_THREAD_1);
-        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isNull();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
     }
 
     @Test
@@ -183,12 +184,12 @@ public void recordsUnlockAndFreezeForNonAnonymousClient() throws InterruptedExce
         LockResponse response = lockService.lockWithFullLockResponse(client, LOCK_1_THREAD_1_WRITE_REQUEST);
         forceSnapshot();
 
-        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEqualTo(LockClientAndThread.of(client, TEST_THREAD_1));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(LockClientAndThread.of(client, TEST_THREAD_1));
 
         lockService.unlockAndFreeze(response.getToken());
         forceSnapshot();
 
-        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isNull();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
     }
 
     @Test
@@ -233,28 +234,28 @@ public void recordsCorrectStateAfterMultipleOperations() throws Exception {
 
         // T1 should hold nothing, T2 holds 3 in exclusive mode, T3 holds 1 in exclusive and 2 in shared mode
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
-                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
-                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_3))
-                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
 
         lockService.unlock(response2.getToken());
         forceSnapshot();
 
         // Only T3 should hold locks
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
-                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
-                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
-        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isNull();
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
 
         lockService.unlock(response3.get().getToken());
         forceSnapshot();
 
-        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isNull();
-        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isNull();
-        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isNull();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
     }
 
     @Test
@@ -263,46 +264,47 @@ public void refreshDoesNotChangeSnapshot() throws InterruptedException {
                 lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
         forceSnapshot();
 
-        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEqualTo(ANONYMOUS_TEST_THREAD_1);
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
 
         lockService.refreshTokens(List.of(response.getToken()));
         forceSnapshot();
 
-        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEqualTo(ANONYMOUS_TEST_THREAD_1);
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
     }
 
-    @Test(timeout = 500L)
+    @Test
     public void backgroundSnapshotRunnerWorks() throws InterruptedException {
         LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
                 .isStandaloneServer(false)
                 .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
                         .recordThreadInfo(true)
-                        .threadInfoSnapshotIntervalMillis(10L)
+                        .threadInfoSnapshotIntervalMillis(50L)
                         .build())
                 .build());
         LockThreadInfoSnapshotManager backgroundSnapshotRunner = lockServiceWithBackgroundRunner.getSnapshotManager();
 
         LockResponse response = lockServiceWithBackgroundRunner.lockWithFullLockResponse(
                 LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
 
-        Thread.sleep(50L);
-
-        assertThat(backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot().get(TEST_LOCK_1))
-                .isEqualTo(ANONYMOUS_TEST_THREAD_1);
+        Awaitility.waitAtMost(200, TimeUnit.MILLISECONDS)
+                .untilAsserted(() -> assertThat(backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
+                        .containsExactly(Map.entry(TEST_LOCK_1, ANONYMOUS_TEST_THREAD_1)));
 
         lockServiceWithBackgroundRunner.unlock(response.getToken());
 
-        Thread.sleep(50L);
-
-        assertThat(backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot().get(TEST_LOCK_1))
-                .isNull();
+        Awaitility.waitAtMost(200, TimeUnit.MILLISECONDS)
+                .untilAsserted(() -> assertThat(backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
+                        .doesNotContainKey(TEST_LOCK_1));
     }
 
     private void forceSnapshot() {
         this.lockService.getSnapshotManager().takeSnapshot();
     }
 
-    private LockClientAndThread getLatestThreadInfoForLock(LockDescriptor lock) {
-        return lockService.getSnapshotManager().getLastKnownThreadInfoSnapshot().get(lock);
+    private Optional<LockClientAndThread> getLatestThreadInfoForLock(LockDescriptor lock) {
+        return Optional.ofNullable(lockService
+                .getSnapshotManager()
+                .getLastKnownThreadInfoSnapshot()
+                .get(lock));
     }
 }ueu(f1ef11cad1dae47d0a34b10e019c62c89e94a01b}(sha(f1ef11cad1dae47d0a34b10e019c62c89e94a01bnode_idEC_kwDOAjP5fdoAKGYxZWYxMWNhZDFkYWU0N2QwYTM0YjEwZTAxOWM2MmM4OWU5NGEwMWIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-07T19:03:45Zu	committer}(j  GitHubj  noreply@github.comj  2023-06-07T19:03:45Zumessage[Antithesis] Transient Rows Workflow: Fix Inconsistent Reads (#6599)

The transient rows workflow now only checks the summary cell with the correctly corresponding cell.tree}(j{  (0dbc436d66f73f1f62720cbd5f600c4b909151d4url`https://api.github.com/repos/palantir/atlasdb/git/trees/0dbc436d66f73f1f62720cbd5f600c4b909151d4uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f1ef11cad1dae47d0a34b10e019c62c89e94a01b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkgNSRCRBK7hj4Ov3rIwAAzGkIAASJEYRlu4L8WT23iScmlIFt
TOEZ/ajvLISiaWSoyYkn28wE37S1bVnpmCT5EiTRurKMQVn1xfDEQ+xWFnobK6or
rfTOeyW6yJEiuOz8mIe3i+/4DY2T125LGUfV/gddh1f+ARqK4JFmb/tHNZGFA0ST
fUpCZC5nShTw0gpJpbuGXF6iHCv6dcDeeN18X3HUVOhrbbl+p5GptcR+WeeTmyuU
4uPP1nuwOcxtG7bfAxg3iQvdRnd8BIjy/tO2GC2kU7Y0NRTRsezNsvUw/ZMjpVm2
s8sKl488y/yrl2ONyDSY/bCOQ/ugblSMS9+ngEso6zoGx/U0KD2JxnJpLHe1+Tk=
=bVIG
-----END PGP SIGNATURE-----
payloadXy  tree 0dbc436d66f73f1f62720cbd5f600c4b909151d4
parent 3caaa5aa4b2114192d1af78611a4375bb1aa5559
author Jeremy Kong <jkong@palantir.com> 1686164625 +0100
committer GitHub <noreply@github.com> 1686164625 +0000

[Antithesis] Transient Rows Workflow: Fix Inconsistent Reads (#6599)

The transient rows workflow now only checks the summary cell with the correctly corresponding cell.
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/f1ef11cad1dae47d0a34b10e019c62c89e94a01bhtml_urlShttps://github.com/palantir/atlasdb/commit/f1ef11cad1dae47d0a34b10e019c62c89e94a01bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f1ef11cad1dae47d0a34b10e019c62c89e94a01b/commentsj  }(login
jeremyk-91idJZ j}  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j}  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj×  uparents]}(j{  (3caaa5aa4b2114192d1af78611a4375bb1aa5559j  ^https://api.github.com/repos/palantir/atlasdb/commits/3caaa5aa4b2114192d1af78611a4375bb1aa5559j  Shttps://github.com/palantir/atlasdb/commit/3caaa5aa4b2114192d1af78611a4375bb1aa5559uastats}(totalK	additionsK}	deletionsKufiles](}(j{  (9002a5ed3382a35694d630c784b417cd15befa46filenamehatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javastatusmodifiedjݗ  Kjޗ  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/f1ef11cad1dae47d0a34b10e019c62c89e94a01b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f1ef11cad1dae47d0a34b10e019c62c89e94a01b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=f1ef11cad1dae47d0a34b10e019c62c89e94a01bpatchXA  @@ -38,6 +38,7 @@
 import java.security.SecureRandom;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Objects;
 import java.util.Optional;
 import java.util.Set;
 import java.util.stream.Collectors;
@@ -141,10 +142,12 @@ private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActi
                 .orElseThrow(() -> new SafeIllegalStateException(
                         "Expected to find a read of the summary row", SafeArg.of("actions", actions)));
         WitnessedReadTransactionAction normalRowRead = readTransactionActions.stream()
-                .filter(action -> action.cell().key() != SUMMARY_ROW)
+                .filter(action -> Objects.equals(
+                                action.cell().key(), summaryRowRead.cell().column())
+                        && action.cell().column() == COLUMN)
                 .findAny()
                 .orElseThrow(() -> new SafeIllegalStateException(
-                        "Expected to find a read of a normal row", SafeArg.of("actions", actions)));
+                        "Expected to find a read of a corresponding normal row", SafeArg.of("actions", actions)));
         if (!summaryRowRead.value().equals(normalRowRead.value())) {
             return Stream.of(CrossCellInconsistency.builder()
                     .putInconsistentValues(u}(j{  (7a735315ccb4c6f11509bd621df619cc89f3a978j  latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj  modifiedjݗ  Kxjޗ  Kj  Kyj  https://github.com/palantir/atlasdb/blob/f1ef11cad1dae47d0a34b10e019c62c89e94a01b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj  https://github.com/palantir/atlasdb/raw/f1ef11cad1dae47d0a34b10e019c62c89e94a01b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=f1ef11cad1dae47d0a34b10e019c62c89e94a01bj  X  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.google.common.collect.ImmutableList;
@@ -41,8 +42,10 @@
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.stream.Collectors;
@@ -185,7 +188,123 @@ public void invariantReportsViolationsFromTransactionHistory() {
                 .build();
         invariant.accept(falseHistory, reference::set);
 
-        assertThat(reference.get()).hasSize(ITERATION_COUNT - 1);
+        assertThat(reference.get())
+                .hasSize(ITERATION_COUNT - 1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
+        WitnessedReadTransactionAction readWitness = WitnessedReadTransactionAction.of(
+                TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of the summary row")
+                .hasExactlyArgs(SafeArg.of("actions", ImmutableList.of(readWitness)));
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCorrespondingPrimaryRow() {
+        List<WitnessedTransactionAction> actions = ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of a corresponding normal row")
+                .hasExactlyArgs(SafeArg.of("actions", actions));
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothEmpty() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions = getReadWitnessesForSingleTransaction(
+                2, Optional.of(TransientRowsWorkflows.VALUE), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsPresentAndPrimaryIsAbsent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.of(TransientRowsWorkflows.VALUE), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsAbsentAndPrimaryIsPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    private ImmutableWorkflowHistory getWorkflowHistory(List<WitnessedTransactionAction> actions) {
+        return ImmutableWorkflowHistory.builder()
+                .transactionStore(transactionStore)
+                .history(ImmutableList.of(ImmutableFullyWitnessedTransaction.builder()
+                        .addAllActions(actions)
+                        .startTimestamp(0L)
+                        .commitTimestamp(1L)
+                        .build()))
+                .build();
+    }
+
+    private static List<WitnessedTransactionAction> getReadWitnessesForSingleTransaction(
+            int columnIndex, Optional<Integer> summaryValue, Optional<Integer> primaryValue) {
+        return ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, columnIndex),
+                        summaryValue),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(columnIndex, TransientRowsWorkflows.COLUMN),
+                        primaryValue));
+    }
+
+    private static void inconsistencyInvolvesPairOfPrimaryAndSummaryCells(CrossCellInconsistency inconsistency) {
+        Map<TableAndWorkloadCell, Optional<Integer>> readValues = inconsistency.inconsistentValues();
+        TableAndWorkloadCell summaryCell = readValues.keySet().stream()
+                .filter(tableAndWorkloadCell -> tableAndWorkloadCell.cell().key() == TransientRowsWorkflows.SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of the summary row", SafeArg.of("readValues", readValues)));
+        TableAndWorkloadCell primaryCell = getPrimaryCellForSummaryCell(summaryCell);
+
+        assertThat(readValues.keySet()).containsExactlyInAnyOrder(summaryCell, primaryCell);
+        assertThat(readValues.values())
+                .containsExactlyInAnyOrder(Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+    }
+
+    // This workflow uses a single table, where the summary row's columns correspond to rows with primary values.
+    private static TableAndWorkloadCell getPrimaryCellForSummaryCell(TableAndWorkloadCell summaryCell) {
+        return TableAndWorkloadCell.of(
+                summaryCell.tableName(),
+                ImmutableWorkloadCell.of(summaryCell.cell().column(), TransientRowsWorkflows.COLUMN));
     }
 
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(ueu(977edc3248799d60e50f8f52ecc23c73978b80a6}(sha(977edc3248799d60e50f8f52ecc23c73978b80a6node_idEC_kwDOAjP5fdoAKDk3N2VkYzMyNDg3OTlkNjBlNTBmOGY1MmVjYzIzYzczOTc4YjgwYTYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-17T09:32:22Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-04-17T09:32:22Zumessage3Merge branch 'develop' into jkong/asynchronous-ragetree}(j  (863dd11b050020d60bab7268b4a9b52be0241289url`https://api.github.com/repos/palantir/atlasdb/git/trees/863dd11b050020d60bab7268b4a9b52be0241289uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/977edc3248799d60e50f8f52ecc23c73978b80a6
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ9EigACgkQTLdFKain
zjzJWggArmv70K1uvKSIgSAAHvupEFOoQCgF/woBj3TC7HxNZCU1hP4GvIJwh14i
iFEtSiywJyWzWbqQl1yo3/x6coGa4kwSqOyiZMWB80nDrn4dR35DUXH8h+c17Kvx
723cFiGzz1+UoKVWPk5S59GT31kySqf6bIVKjUrmKndQE2GKMqsRiOOqd4MMKW7F
4d7Dt+k6ike9hMJEbPEaZ+cewpfktgHHX5450TfFKESAEhbaTuu/wpvsb72F7gaC
GW7UKruT07TsSvutNTgcIsy21pp2OyvitXW4uCRaDYWL9Izv7iBx7D3Tg+3w2zzJ
OQF1qySWHl9Ds6VBKOugpfRaeoRohw==
=6ARO
-----END PGP SIGNATURE-----payloadX8  tree 863dd11b050020d60bab7268b4a9b52be0241289
parent 8d4ed4c4938648e08afa5fad3ab4db568baff191
parent f543584dc5a49d081d16f535500baff12f56075e
author Jeremy Kong <jkong@palantir.com> 1681723942 +0100
committer Jeremy Kong <jkong@palantir.com> 1681723942 +0100

Merge branch 'develop' into jkong/asynchronous-rage
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/977edc3248799d60e50f8f52ecc23c73978b80a6html_urlShttps://github.com/palantir/atlasdb/commit/977edc3248799d60e50f8f52ecc23c73978b80a6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/977edc3248799d60e50f8f52ecc23c73978b80a6/commentsj   }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j   https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j%  
jeremyk-91j'  JZ j  MDQ6VXNlcjU5NTU1MTA=j)  3https://avatars.githubusercontent.com/u/5955510?v=4j+  h5j  'https://api.github.com/users/jeremyk-91j   https://github.com/jeremyk-91j.  1https://api.github.com/users/jeremyk-91/followersj0  >https://api.github.com/users/jeremyk-91/following{/other_user}j2  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j4  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j6  5https://api.github.com/users/jeremyk-91/subscriptionsj8  ,https://api.github.com/users/jeremyk-91/orgsj:  -https://api.github.com/users/jeremyk-91/reposj<  8https://api.github.com/users/jeremyk-91/events{/privacy}j>  7https://api.github.com/users/jeremyk-91/received_eventsj@  UserjB  uparents](}(j  (8d4ed4c4938648e08afa5fad3ab4db568baff191j  ^https://api.github.com/repos/palantir/atlasdb/commits/8d4ed4c4938648e08afa5fad3ab4db568baff191j   Shttps://github.com/palantir/atlasdb/commit/8d4ed4c4938648e08afa5fad3ab4db568baff191u}(j  (f543584dc5a49d081d16f535500baff12f56075ej  ^https://api.github.com/repos/palantir/atlasdb/commits/f543584dc5a49d081d16f535500baff12f56075ej   Shttps://github.com/palantir/atlasdb/commit/f543584dc5a49d081d16f535500baff12f56075euestats}(totalK	additionsKu	deletionsKufiles](}(j  (cc7e69bad989ea6a9cdfb46c4ad566a80eb21afbfilename/atlasdb-workload-server-distribution/Dockerfilestatusmodifiedj`  K	ja  KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/977edc3248799d60e50f8f52ecc23c73978b80a6/atlasdb-workload-server-distribution%2FDockerfileraw_urlhttps://github.com/palantir/atlasdb/raw/977edc3248799d60e50f8f52ecc23c73978b80a6/atlasdb-workload-server-distribution%2FDockerfilecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2FDockerfile?ref=977edc3248799d60e50f8f52ecc23c73978b80a6patchX  @@ -4,7 +4,7 @@ MAINTAINER AtlasDB Team
 ENV DOCKERIZE_VERSION v0.2.0
 
 # Bash is useful for monitoring; curl is used by our healthchecks.
-RUN apk update && apk add bash curl procps wget  \
+RUN apk update && apk add bash curl procps wget \
     && wget --no-check-certificate http://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
     && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
 
@@ -15,4 +15,12 @@ RUN mv /atlasdb-workload-server-* /atlasdb-workload-server
 
 WORKDIR /atlasdb-workload-server
 
+# Needed for Antithesis
+RUN curl -o /usr/bin/yq -kLf https://github.com/mikefarah/yq/releases/download/v4.33.2/yq_linux_amd64 && \
+    chmod +x /usr/bin/yq
+RUN yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-static.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-static.yml
+
 CMD ["service/bin/init.sh", "console"]u}(j  (c55d1d862a932c01521fd1fbf3812e8a3a91dd9bjf  fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javajh  modifiedj`  K0ja  Kjj  KBjk  https://github.com/palantir/atlasdb/blob/977edc3248799d60e50f8f52ecc23c73978b80a6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javajm  https://github.com/palantir/atlasdb/raw/977edc3248799d60e50f8f52ecc23c73978b80a6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javajo  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=977edc3248799d60e50f8f52ecc23c73978b80a6jq  X  @@ -16,12 +16,14 @@
 
 package com.palantir.atlasdb.workload.store;
 
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.base.Suppliers;
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.PreCommitCondition;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
-import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
@@ -33,6 +35,7 @@
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
@@ -41,7 +44,9 @@
 import java.util.Set;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.function.Function;
+import java.util.function.Supplier;
 import java.util.stream.Collectors;
+import javax.annotation.concurrent.NotThreadSafe;
 import one.util.streamex.EntryStream;
 
 public final class AtlasDbTransactionStore implements TransactionStore {
@@ -68,27 +73,29 @@ public Optional<Integer> get(String table, WorkloadCell cell) {
 
     @Override
     public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
-        AtomicReference<Long> startTimestampReference = new AtomicReference<>();
         AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
+        Supplier<CommitTimestampProvider> commitTimestampProvider =
+                Suppliers.memoize(() -> new CommitTimestampProvider());
         try {
-            transactionManager.runTaskWithRetry(txn -> {
-                AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
-                startTimestampReference.set(txn.getTimestamp());
-                witnessedActionsReference.set(actions.stream()
-                        .sequential()
-                        .map(action -> action.accept(visitor))
-                        .collect(Collectors.toList()));
-                return null;
-            });
-
-            TransactionStatus status =
-                    transactionManager.getTransactionService().getV2(startTimestampReference.get());
-
-            Optional<Long> commitTimestamp = TransactionStatus.getCommitTimestamp(status);
+            Transaction transaction =
+                    transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
+                        AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
+                        witnessedActionsReference.set(actions.stream()
+                                .sequential()
+                                .map(action -> action.accept(visitor))
+                                .collect(Collectors.toList()));
+                        return txn;
+                    });
+
+            if (transaction.isAborted()) {
+                return Optional.empty();
+            }
 
             return Optional.of(ImmutableWitnessedTransaction.builder()
-                    .startTimestamp(startTimestampReference.get())
-                    .commitTimestamp(commitTimestamp)
+                    .startTimestamp(transaction.getTimestamp())
+                    .commitTimestamp(commitTimestampProvider
+                            .get()
+                            .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
                     .actions(witnessedActionsReference.get())
                     .build());
         } catch (SafeIllegalArgumentException e) {
@@ -158,4 +165,27 @@ public static AtlasDbTransactionStore create(
                 .toMap();
         return new AtlasDbTransactionStore(transactionManager, tableMapping);
     }
+
+    @VisibleForTesting
+    @NotThreadSafe
+    static final class CommitTimestampProvider implements PreCommitCondition {
+
+        private Optional<Long> maybeCommitOrStartTimestamp = Optional.empty();
+
+        @Override
+        public void throwIfConditionInvalid(long timestamp) {
+            maybeCommitOrStartTimestamp = Optional.of(timestamp);
+        }
+
+        public Optional<Long> getCommitTimestampOrThrowIfMaybeNotCommitted(long startTimestamp) {
+            long commitOrStartTimestamp = maybeCommitOrStartTimestamp.orElseThrow(() -> new SafeIllegalStateException(
+                    "Timestamp has not been set, which means the pre commit condition has never been executed,"
+                            + " thus the transaction never committed."));
+            if (startTimestamp == commitOrStartTimestamp) {
+                return Optional.empty();
+            }
+
+            return Optional.of(commitOrStartTimestamp);
+        }
+    }
 }u}(j  (7a6977bbe99192a8d37661df68d682abb474eb87jf  jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javajh  modifiedj`  K4ja  Kjj  K;jk  https://github.com/palantir/atlasdb/blob/977edc3248799d60e50f8f52ecc23c73978b80a6/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajm  https://github.com/palantir/atlasdb/raw/977edc3248799d60e50f8f52ecc23c73978b80a6/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajo  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=977edc3248799d60e50f8f52ecc23c73978b80a6jq  Xz  @@ -27,14 +27,19 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
 
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore.CommitTimestampProvider;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
@@ -45,30 +50,35 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
+import java.util.function.Supplier;
 import java.util.stream.Collectors;
 import org.junit.Before;
 import org.junit.Test;
 
 public final class AtlasDbTransactionStoreTest {
 
+    private static final long START_TS = 1;
+    private static final long COMMIT_TS = 2;
+
+    private static final Map<TableReference, byte[]> TABLES = Map.of(
+            TABLE_REFERENCE,
+            AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
+            INDEX_REFERENCE,
+            AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE));
+
     private TransactionManager manager;
 
     private AtlasDbTransactionStore store;
 
     @Before
     public void before() {
         manager = TransactionManagers.createInMemory(Set.of());
-        store = AtlasDbTransactionStore.create(
-                manager,
-                Map.of(
-                        TABLE_REFERENCE,
-                        AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
-                        INDEX_REFERENCE,
-                        AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE)));
+        store = AtlasDbTransactionStore.create(manager, TABLES);
     }
 
     @Test
@@ -145,4 +155,39 @@ public void readWriteHandlesReadOnlyTransaction() {
         assertThat(witnessedTransaction).isPresent();
         assertThat(witnessedTransaction.get().commitTimestamp()).isEmpty();
     }
+
+    @Test
+    public void abortedTransactionsReturnEmpty() {
+        TransactionManager onlyAbortsManager = spy(manager);
+        Transaction abortedTransaction = mock(Transaction.class);
+        when(abortedTransaction.isAborted()).thenReturn(true);
+        doReturn(abortedTransaction).when(onlyAbortsManager).runTaskWithConditionWithRetry(any(Supplier.class), any());
+        AtlasDbTransactionStore onlyAbortsStore = AtlasDbTransactionStore.create(onlyAbortsManager, TABLES);
+        assertThat(onlyAbortsStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+                .isEmpty();
+    }
+
+    @Test
+    public void getCommitTimestampIsEmptyWhenMatchesStartTimestamp() {
+        CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();
+        commitTimestampProvider.throwIfConditionInvalid(START_TS);
+        assertThat(commitTimestampProvider.getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .isEmpty();
+    }
+
+    @Test
+    public void getCommitTimestampThrowsWhenNoTimestampSet() {
+        assertThatThrownBy(() -> new CommitTimestampProvider().getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining(
+                        "Timestamp has not been set, which means the pre commit condition has never been executed");
+    }
+
+    @Test
+    public void getCommitTimestampReturnsPresentWhenCommitAndStartTimestampMismatch() {
+        CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();
+        commitTimestampProvider.throwIfConditionInvalid(COMMIT_TS);
+        assertThat(commitTimestampProvider.getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .hasValue(COMMIT_TS);
+    }
 }u}(j  (359974e9fa7aa3a572d6a83f664860a450f6b32fjf  'timelock-server-distribution/Dockerfilejh  modifiedj`  Kja  K jj  Kjk  {https://github.com/palantir/atlasdb/blob/977edc3248799d60e50f8f52ecc23c73978b80a6/timelock-server-distribution%2FDockerfilejm  zhttps://github.com/palantir/atlasdb/raw/977edc3248799d60e50f8f52ecc23c73978b80a6/timelock-server-distribution%2FDockerfilejo  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-distribution%2FDockerfile?ref=977edc3248799d60e50f8f52ecc23c73978b80a6jq  Xt  @@ -13,6 +13,14 @@ WORKDIR /timelock-server
 
 RUN mkdir -p var/data/paxos
 
+# Needed for Antithesis
+RUN curl -o /usr/bin/yq -kLf https://github.com/mikefarah/yq/releases/download/v4.33.2/yq_linux_amd64 && \
+    chmod +x /usr/bin/yq
+RUN yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-static.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-static.yml
+
 EXPOSE 8421 \
        8422
 ueu(facf72050e4d0721f221bfcc8019ff4094ea4cc5}(sha(facf72050e4d0721f221bfcc8019ff4094ea4cc5node_idEC_kwDOAjP5fdoAKGZhY2Y3MjA1MGU0ZDA3MjFmMjIxYmZjYzgwMTlmZjQwOTRlYTRjYzUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-12T19:35:02Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-06-12T19:35:02Zumessage!the gently guiding invisible handtree}(j  (7bfa4b1ed2a65351d0f1e082ac1795a613870c70url`https://api.github.com/repos/palantir/atlasdb/git/trees/7bfa4b1ed2a65351d0f1e082ac1795a613870c70uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/facf72050e4d0721f221bfcc8019ff4094ea4cc5
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSHc2YACgkQTLdFKain
zjzRsAf+IMVTqM4qFdGxICHL813/+4i1rgNdFv0t0htQaoAqYMO+OK37T5+zMyDb
zI8zld6oUzFHPhd7xIC843iI0XGJCZERnGIKxO+mJNArmMGw3O9M4aKq/BcMKzVj
sf4OOCy1KdYDqVhXa1EFAiX20nwOs8awenrJPk+xaGOyQcKrf3ylxkNV4VN/pl25
JzkOdqW1haDraS+uRQIiEVh9l3KWyZx5vxsHOaPkCB8ShkHVLCPXz1pcJaGVCY2n
gFVgjH8WEYhNspQoipjVwbxLrhQTlsYCcuyVR3wj/uNb+ZBBk/n10Z2+OEpksZ2K
xa05KPze9mbO0RkODlTNag/eUhFKeg==
=Iayk
-----END PGP SIGNATURE-----payloadtree 7bfa4b1ed2a65351d0f1e082ac1795a613870c70
parent ec1e5993b2e3ecc5cb276b555cb66bab8e5e2a93
author Jeremy Kong <jkong@palantir.com> 1686598502 +0200
committer Jeremy Kong <jkong@palantir.com> 1686598502 +0200

the gently guiding invisible hand
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/facf72050e4d0721f221bfcc8019ff4094ea4cc5html_urlShttps://github.com/palantir/atlasdb/commit/facf72050e4d0721f221bfcc8019ff4094ea4cc5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/facf72050e4d0721f221bfcc8019ff4094ea4cc5/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j  
jeremyk-91j  JZ j  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5j  'https://api.github.com/users/jeremyk-91j       https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersjØ  >https://api.github.com/users/jeremyk-91/following{/other_user}jŘ  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jǘ  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jɘ  5https://api.github.com/users/jeremyk-91/subscriptionsj˘  ,https://api.github.com/users/jeremyk-91/orgsj͘  -https://api.github.com/users/jeremyk-91/reposjϘ  8https://api.github.com/users/jeremyk-91/events{/privacy}jј  7https://api.github.com/users/jeremyk-91/received_eventsjӘ  Userj՘  uparents]}(j  (ec1e5993b2e3ecc5cb276b555cb66bab8e5e2a93j  ^https://api.github.com/repos/palantir/atlasdb/commits/ec1e5993b2e3ecc5cb276b555cb66bab8e5e2a93j  Shttps://github.com/palantir/atlasdb/commit/ec1e5993b2e3ecc5cb276b555cb66bab8e5e2a93uastats}(totalK	additionsK
	deletionsKufiles](}(j  (7e25b735218e033c4116ca91107f7aa9d52c7924filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj  Kj  KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/facf72050e4d0721f221bfcc8019ff4094ea4cc5/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/facf72050e4d0721f221bfcc8019ff4094ea4cc5/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=facf72050e4d0721f221bfcc8019ff4094ea4cc5patchX  @@ -78,6 +78,7 @@
 import com.palantir.atlasdb.keyvalue.impl.RowResults;
 import com.palantir.atlasdb.logging.LoggingArgs;
 import com.palantir.atlasdb.sweep.queue.MultiTableSweepQueueWriter;
+import com.palantir.atlasdb.table.description.SweepStrategy;
 import com.palantir.atlasdb.table.description.SweeperStrategy;
 import com.palantir.atlasdb.table.description.exceptions.AtlasDbConstraintException;
 import com.palantir.atlasdb.tracing.TraceStatistics;
@@ -1157,8 +1158,13 @@ private boolean isValidationNecessaryOnReads(TableReference tableRef) {
     }
 
     private boolean requiresImmutableTimestampLocking(TableReference tableRef) {
-        return sweepStrategyManager.get(tableRef).mustCheckImmutableLockAfterReads()
-                || transactionConfig.get().lockImmutableTsOnReadOnlyTransactions();
+        try {
+            return sweepStrategyManager.get(tableRef).mustCheckImmutableLockAfterReads()
+                    || transactionConfig.get().lockImmutableTsOnReadOnlyTransactions();
+        } catch (Exception e) {
+            // Hack because there is a RACE CONDITION (!) in the workload server
+            return true;
+        }
     }
 
     private List<Map.Entry<Cell, byte[]>> getPostFilteredWithLocalWrites(u}(j  (e2e8da4f48b2dcd9d961a26ea8a22b722e1d5529j  matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowConfiguration.javaj  modifiedj  Kj  Kj  K
j  https://github.com/palantir/atlasdb/blob/facf72050e4d0721f221bfcc8019ff4094ea4cc5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javaj  https://github.com/palantir/atlasdb/raw/facf72050e4d0721f221bfcc8019ff4094ea4cc5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.java?ref=facf72050e4d0721f221bfcc8019ff4094ea4cc5j   X  @@ -33,12 +33,12 @@ public interface RandomWorkflowConfiguration extends WorkflowConfiguration {
 
     @Value.Default
     default Integer maxWrites() {
-        return 5;
+        return 2;
     }
 
     @Value.Default
     default Integer maxReads() {
-        return 5;
+        return 2;
     }
 
     @Value.Default
@@ -48,17 +48,17 @@ default Integer maxDeletes() {
 
     @Value.Default
     default Integer maxRowRangeScans() {
-        return 3;
+        return 1;
     }
 
     @Value.Default
     default Integer maxRows() {
-        return 5;
+        return 1;
     }
 
     @Value.Default
     default Integer maxColumns() {
-        return 5;
+        return 3;
     }
 
     @Value.Lazyueu(59fd643f693d4822871d308fd6ef8ce160cfbfd6}(sha(59fd643f693d4822871d308fd6ef8ce160cfbfd6node_idEC_kwDOAjP5fdoAKDU5ZmQ2NDNmNjkzZDQ4MjI4NzFkMzA4ZmQ2ZWY4Y2UxNjBjZmJmZDYcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-07-24T19:48:02Zu	committer}(j  Tom Petraccaj  tpetracca@palantir.comj  2023-07-24T19:48:17Zumessagecleanup and fixestree}(j  (b7183b81bcb8721eb5722b29c9352efd277d8087url`https://api.github.com/repos/palantir/atlasdb/git/trees/b7183b81bcb8721eb5722b29c9352efd277d8087uj$  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/59fd643f693d4822871d308fd6ef8ce160cfbfd6
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEHTC5rqjQ6qmsb7sZRnUGJaXvqFMFAmS+1YEACgkQRnUGJaXv
qFORNwf+NQtWvCZxSjK+faBlqJEFiJnZnXGj8g83W8ijUwV1ojTWOEB6vrn+fCZ5
yaCnIOe6+AKt9kFXMPvT5K2Tt+jPrN/dRG28UeFlu8d8iy0sCO09GCh1ZjPifCr8
J3qOxBq039BeaXo/kJrQfFhEyJkNWk+y/lXt97mIPV7ZdnqbEM+e/2c0cEM6Z/zp
MwHMCrdO6LiCoaWcNnGG3EbsuoFF/OA0E93lL0cWaezSFsVBK5kdF3IWIEDQYkfZ
1cqaANC4OrrC9dwlYgPCXTmCD4tz4oH2/QNqpvcK6N+57xJtP1FDrHsPHStdU+mO
Y/a6p7MbkAMWAYpW7O4eyiqOOkQ/kw==
=ADTk
-----END PGP SIGNATURE-----payloadtree b7183b81bcb8721eb5722b29c9352efd277d8087
parent e8d47fc74a079feaadcb59fb3836f9a060d0bddd
author Tom Petracca <tpetracca@palantir.com> 1690228082 -0400
committer Tom Petracca <tpetracca@palantir.com> 1690228097 -0400

cleanup and fixes
uuj$  ^https://api.github.com/repos/palantir/atlasdb/commits/59fd643f693d4822871d308fd6ef8ce160cfbfd6html_urlShttps://github.com/palantir/atlasdb/commit/59fd643f693d4822871d308fd6ef8ce160cfbfd6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/59fd643f693d4822871d308fd6ef8ce160cfbfd6/commentsj  }(login	tpetraccaidJ& j  MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5j$  &https://api.github.com/users/tpetraccaj2  https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminuj  }(j7  	tpetraccaj9  J& j  MDQ6VXNlcjI1NTQzMjg=j;  3https://avatars.githubusercontent.com/u/2554328?v=4j=  h5j$  &https://api.github.com/users/tpetraccaj2  https://github.com/tpetraccaj@  0https://api.github.com/users/tpetracca/followersjB  =https://api.github.com/users/tpetracca/following{/other_user}jD  6https://api.github.com/users/tpetracca/gists{/gist_id}jF  =https://api.github.com/users/tpetracca/starred{/owner}{/repo}jH  4https://api.github.com/users/tpetracca/subscriptionsjJ  +https://api.github.com/users/tpetracca/orgsjL  ,https://api.github.com/users/tpetracca/reposjN  7https://api.github.com/users/tpetracca/events{/privacy}jP  6https://api.github.com/users/tpetracca/received_eventsjR  UserjT  uparents]}(j  (e8d47fc74a079feaadcb59fb3836f9a060d0bdddj$  ^https://api.github.com/repos/palantir/atlasdb/commits/e8d47fc74a079feaadcb59fb3836f9a060d0bdddj2  Shttps://github.com/palantir/atlasdb/commit/e8d47fc74a079feaadcb59fb3836f9a060d0bddduastats}(totalK	additionsK	deletionsKufiles](}(j  (189ff801c81a26ae0c360df52d27d19636647e82filenamexatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/MultiClientWithPostgresTimelockAndPostgresTestSuite.javastatusmodifiedjn  K jo  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/59fd643f693d4822871d308fd6ef8ce160cfbfd6/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithPostgresTimelockAndPostgresTestSuite.javaraw_urlhttps://github.com/palantir/atlasdb/raw/59fd643f693d4822871d308fd6ef8ce160cfbfd6/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithPostgresTimelockAndPostgresTestSuite.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithPostgresTimelockAndPostgresTestSuite.java?ref=59fd643f693d4822871d308fd6ef8ce160cfbfd6patchX  @@ -15,7 +15,6 @@
  */
 package com.palantir.atlasdb.ete.suites;
 
-import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.palantir.atlasdb.ete.EteSetup;
 import com.palantir.atlasdb.ete.LockWithTimelockEteTest;u}(j  (c594c9c20e7d3670db1e9bf761655ed0351d539ajt  qatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/MultiClientWithTimelockAndCassandraTestSuite.javajv  modifiedjn  K jo  Kjx  Kjy  https://github.com/palantir/atlasdb/blob/59fd643f693d4822871d308fd6ef8ce160cfbfd6/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithTimelockAndCassandraTestSuite.javaj{  https://github.com/palantir/atlasdb/raw/59fd643f693d4822871d308fd6ef8ce160cfbfd6/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithTimelockAndCassandraTestSuite.javaj}  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithTimelockAndCassandraTestSuite.java?ref=59fd643f693d4822871d308fd6ef8ce160cfbfd6j  X
  @@ -15,7 +15,6 @@
  */
 package com.palantir.atlasdb.ete.suites;
 
-import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.containers.CassandraEnvironment;
 import com.palantir.atlasdb.ete.EteSetup;
 import com.palantir.atlasdb.ete.TodoEteTest;u}(j  (a26dc7b72391db6fbcd8f524edb1aaed6fa34478jt  ratlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/SingleClientWithEmbeddedAndCassandraTestSuite.javajv  modifiedjn  K jo  Kjx  Kjy  https://github.com/palantir/atlasdb/blob/59fd643f693d4822871d308fd6ef8ce160cfbfd6/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndCassandraTestSuite.javaj{  https://github.com/palantir/atlasdb/raw/59fd643f693d4822871d308fd6ef8ce160cfbfd6/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndCassandraTestSuite.javaj}  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndCassandraTestSuite.java?ref=59fd643f693d4822871d308fd6ef8ce160cfbfd6j  X  @@ -15,7 +15,6 @@
  */
 package com.palantir.atlasdb.ete.suites;
 
-import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.containers.CassandraEnvironment;
 import com.palantir.atlasdb.ete.EteSetup;
 import com.palantir.atlasdb.ete.LockWithoutTimelockEteTest;u}(j  (5e255887615863b1e848e1e109033f58d98410fejt  oatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/SingleClientWithEmbeddedAndOracleTestSuite.javajv  modifiedjn  K jo  Kjx  Kjy  https://github.com/palantir/atlasdb/blob/59fd643f693d4822871d308fd6ef8ce160cfbfd6/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndOracleTestSuite.javaj{  https://github.com/palantir/atlasdb/raw/59fd643f693d4822871d308fd6ef8ce160cfbfd6/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndOracleTestSuite.javaj}  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndOracleTestSuite.java?ref=59fd643f693d4822871d308fd6ef8ce160cfbfd6j  X  @@ -16,7 +16,6 @@
 
 package com.palantir.atlasdb.ete.suites;
 
-import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.ete.EteSetup;
 import com.palantir.atlasdb.ete.LockWithoutTimelockEteTest;
 import com.palantir.atlasdb.ete.TimestampManagementEteTest;u}(j  (ea7de9451cd5dc361ee58ac5aefa2658cdb4199cjt  qatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/SingleClientWithEmbeddedAndPostgresTestSuite.javajv  modifiedjn  K jo  Kjx  Kjy  https://github.com/palantir/atlasdb/blob/59fd643f693d4822871d308fd6ef8ce160cfbfd6/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndPostgresTestSuite.javaj{  https://github.com/palantir/atlasdb/raw/59fd643f693d4822871d308fd6ef8ce160cfbfd6/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndPostgresTestSuite.javaj}  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndPostgresTestSuite.java?ref=59fd643f693d4822871d308fd6ef8ce160cfbfd6j  X  @@ -15,7 +15,6 @@
  */
 package com.palantir.atlasdb.ete.suites;
 
-import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.ete.EteSetup;
 import com.palantir.atlasdb.ete.LockWithoutTimelockEteTest;
 import com.palantir.atlasdb.ete.TimestampManagementEteTest;u}(j  (2a9ff2e68dd8187135b06f5aba62d560d956474ejt  {atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.javajv  modifiedjn  K jo  Kjx  Kjy  https://github.com/palantir/atlasdb/blob/59fd643f693d4822871d308fd6ef8ce160cfbfd6/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.javaj{  https://github.com/palantir/atlasdb/raw/59fd643f693d4822871d308fd6ef8ce160cfbfd6/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.javaj}  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.java?ref=59fd643f693d4822871d308fd6ef8ce160cfbfd6j  X  @@ -15,7 +15,6 @@
  */
 package com.palantir.atlasdb.ete.suites;
 
-import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.containers.CassandraEnvironment;
 import com.palantir.atlasdb.ete.EteSetup;
 import com.palantir.atlasdb.ete.ServiceExposureEteTest;u}(j  (3ec481bbe7121fc01a468951d4a615d9c5e88a3ajt  Oatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/TestSuites.javajv  modifiedjn  Kjo  Kjx  Kjy  https://github.com/palantir/atlasdb/blob/59fd643f693d4822871d308fd6ef8ce160cfbfd6/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FTestSuites.javaj{  https://github.com/palantir/atlasdb/raw/59fd643f693d4822871d308fd6ef8ce160cfbfd6/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FTestSuites.javaj}  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FTestSuites.java?ref=59fd643f693d4822871d308fd6ef8ce160cfbfd6j  X  @@ -1,2 +1,24 @@
-package com.palantir.atlasdb.ete.suites;public class TestSuites {
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.ete.suites;
+
+import com.google.common.collect.ImmutableList;
+
+final class TestSuites {
+    static final ImmutableList<String> SINGLE_CLIENT = ImmutableList.of("ete1");
+    static final ImmutableList<String> MULTI_CLIENT = ImmutableList.of("ete1", "ete2");
 }ueu(92ee1dc5bc25c7de4aa5b1302c076ca6e546474c}(sha(92ee1dc5bc25c7de4aa5b1302c076ca6e546474cnode_idEC_kwDOAjP5fdoAKDkyZWUxZGM1YmMyNWM3ZGU0YWE1YjEzMDJjMDc2Y2E2ZTU0NjQ3NGMcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-04-06T09:25:44Zu	committer}(j  GitHubj  noreply@github.comj  2023-04-06T09:25:44ZumessagerStop faults when validating invariants in Antithesis (#6511)

Stop faults when validating invariants in Antithesistree}(j  (9e368e5ae80a53d77bb8a85faac0ab4eb5586d9furl`https://api.github.com/repos/palantir/atlasdb/git/trees/9e368e5ae80a53d77bb8a85faac0ab4eb5586d9fuj˙  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/92ee1dc5bc25c7de4aa5b1302c076ca6e546474c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkLpAYCRBK7hj4Ov3rIwAAC6gIABycvcT2vvcGiQJGovYcwK0M
v2xCRP+MTA6/hbls1CKTzU3ZpIisdWDY5OqHsbjuoYaM7FAFnoS2JxndwHoxl2BU
NA+ad7Ja98KjY1xVTO7ZaRN0vesfDAC4kI3NWzUTJsmRiDe1bjI3t4YXlA0fUPj+
ygh+k++pmhDjZwSadC3HJvR4qT4TuI7G8AezHA+uXoZl6M5uaUzp7Tv8fueRtT8w
qLIt12JZM8UF5sNizO1iL5BYbcVnDhWZIhLTWYYEAV2qULk0sTrPqdt4KH442MMz
AaqPfYZ4aDdjb3e/g8Ga6ahAN6A9pdrtfSFNCwntPIkezR/4nmJF41oaeISOrDo=
=JI0s
-----END PGP SIGNATURE-----
payloadXE  tree 9e368e5ae80a53d77bb8a85faac0ab4eb5586d9f
parent 037dd3c00910e8d68932e9274aa79dab0dce86ba
author Sam-Kramer <sam.c.kramer@gmail.com> 1680773144 +0100
committer GitHub <noreply@github.com> 1680773144 +0000

Stop faults when validating invariants in Antithesis (#6511)

Stop faults when validating invariants in Antithesis
uuj˙  ^https://api.github.com/repos/palantir/atlasdb/commits/92ee1dc5bc25c7de4aa5b1302c076ca6e546474chtml_urlShttps://github.com/palantir/atlasdb/commit/92ee1dc5bc25c7de4aa5b1302c076ca6e546474ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/92ee1dc5bc25c7de4aa5b1302c076ca6e546474c/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j˙  'https://api.github.com/users/Sam-Kramerjٙ  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(jޙ  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5j˙  %https://api.github.com/users/web-flowjٙ  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j  (037dd3c00910e8d68932e9274aa79dab0dce86baj˙  ^https://api.github.com/repos/palantir/atlasdb/commits/037dd3c00910e8d68932e9274aa79dab0dce86bajٙ  Shttps://github.com/palantir/atlasdb/commit/037dd3c00910e8d68932e9274aa79dab0dce86bauastats}(totalK	additionsK	deletionsK
ufiles](}(j  (77979a7277305b2add780d08dee3f5d4330cbd87filenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/92ee1dc5bc25c7de4aa5b1302c076ca6e546474c/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/92ee1dc5bc25c7de4aa5b1302c076ca6e546474c/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=92ee1dc5bc25c7de4aa5b1302c076ca6e546474cpatchXI  @@ -27,7 +27,7 @@
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
 import com.palantir.atlasdb.workload.invariant.DurableWritesMetricInvariantReporter;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
-import com.palantir.atlasdb.workload.workflow.RunOnceWorkflowRunner;
+import com.palantir.atlasdb.workload.workflow.AntithesisWorkflowRunner;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;
@@ -95,7 +95,7 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().singleRowTwoCellsConfig();
 
         log.info("antithesis: start_faults");
-        RunOnceWorkflowRunner.INSTANCE.run(
+        AntithesisWorkflowRunner.INSTANCE.run(
                 SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
                         transactionStoreFactory.create(
                                 Map.of(u}(j  (52b29363eb29144bfe3e5854c27432265991fbfaj  jatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/AntithesisWorkflowRunner.javaj  renamedj  Kj  Kj  Kj   https://github.com/palantir/atlasdb/blob/92ee1dc5bc25c7de4aa5b1302c076ca6e546474c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FAntithesisWorkflowRunner.javaj"  https://github.com/palantir/atlasdb/raw/92ee1dc5bc25c7de4aa5b1302c076ca6e546474c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FAntithesisWorkflowRunner.javaj$  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FAntithesisWorkflowRunner.java?ref=92ee1dc5bc25c7de4aa5b1302c076ca6e546474cj&  X  @@ -22,14 +22,15 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
 
-public enum RunOnceWorkflowRunner implements WorkflowRunner<Workflow> {
+public enum AntithesisWorkflowRunner implements WorkflowRunner<Workflow> {
     INSTANCE;
 
-    private static final SafeLogger log = SafeLoggerFactory.get(RunOnceWorkflowRunner.class);
+    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisWorkflowRunner.class);
 
     @Override
     public void run(Workflow workflow, List<InvariantReporter<?>> invariants) {
         WorkflowHistory workflowHistory = workflow.run();
+        log.info("antithesis: stop_faults");
         invariants.forEach(reporter -> {
             try {
                 reporter.report(workflowHistory);previous_filenamegatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RunOnceWorkflowRunner.javau}(j  (12ed18f01fe622ffd74888f82908190fa6442d79j  natlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/AntithesisWorkflowRunnerTest.javaj  renamedj  Kj  Kj  K	j   https://github.com/palantir/atlasdb/blob/92ee1dc5bc25c7de4aa5b1302c076ca6e546474c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FAntithesisWorkflowRunnerTest.javaj"  https://github.com/palantir/atlasdb/raw/92ee1dc5bc25c7de4aa5b1302c076ca6e546474c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FAntithesisWorkflowRunnerTest.javaj$  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FAntithesisWorkflowRunnerTest.java?ref=92ee1dc5bc25c7de4aa5b1302c076ca6e546474cj&  X  @@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.workload.server;
+package com.palantir.atlasdb.workload.workflow;
 
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.mock;
@@ -23,21 +23,18 @@
 import static org.mockito.Mockito.when;
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
-import com.palantir.atlasdb.workload.workflow.RunOnceWorkflowRunner;
-import com.palantir.atlasdb.workload.workflow.Workflow;
-import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import java.util.List;
 import org.junit.Test;
 
-public class RunOnceWorkflowRunnerTest {
+public class AntithesisWorkflowRunnerTest {
     @Test
     public void runExecutesWorkflowsAndInvokesInvariantReporter() {
         Workflow exampleWorkflow = mock(Workflow.class);
         WorkflowHistory workflowHistory = mock(WorkflowHistory.class);
         when(exampleWorkflow.run()).thenReturn(workflowHistory);
         InvariantReporter<Void> exampleInvariantReporterOne = mock(InvariantReporter.class);
         InvariantReporter<Void> exampleInvariantReporterTwo = mock(InvariantReporter.class);
-        RunOnceWorkflowRunner.INSTANCE.run(
+        AntithesisWorkflowRunner.INSTANCE.run(
                 exampleWorkflow, List.of(exampleInvariantReporterOne, exampleInvariantReporterTwo));
         verify(exampleWorkflow, times(1)).run();
         verify(exampleInvariantReporterOne, times(1)).report(any());j0  iatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/server/RunOnceWorkflowRunnerTest.javaueu(5af53a38afcfd0b2ed341a1bbc67711c6907d30e}(sha(5af53a38afcfd0b2ed341a1bbc67711c6907d30enode_idEC_kwDOAjP5fdoAKDVhZjUzYTM4YWZjZmQwYjJlZDM0MWExYmJjNjc3MTFjNjkwN2QzMGUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-25T16:41:23Zu	committer}(jE  
Sam KramerjG  skramer@palantir.comjI  2023-04-25T16:41:23Zumessage	hard modetree}(j=  (0b8993417da64fed96e8d2d2f73cee1d3d86b02burl`https://api.github.com/repos/palantir/atlasdb/git/trees/0b8993417da64fed96e8d2d2f73cee1d3d86b02bujU  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5af53a38afcfd0b2ed341a1bbc67711c6907d30e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRIArMACgkQmPPOpKR4
XS08Lgf+MTkzJJM45x3c1j8BEn5NnFH9eBw2tjs2bkEBZ3/YPvjm5jRVkviveQ00
W3+IwKxnGLY+aR/zZB2EW4UiQCYjEbJsaFDWa2IJBVlFHHSj/jpE3ubwZ03Ik54X
ZchHqgCmRxTbyKOETon/Iben/6/u7QtL7J90xRbPyLdZUwCEEfuhAW/GqGQJB6gc
SF0IYsvxMrJcP0UfU3ekrmuzRVvNoxCTsVWIknDtDfi0o+vO0VahC4FsOelQee6r
l4PF474di323pRGAdBi8WDpxUfuubEkp1oTfYxE0Zg2XEw2oq+wNRtwC1SFd8nZ4
YfloX6HAwHpWInXkxfV8WaMq4wQOhA==
=XWgf
-----END PGP SIGNATURE-----payloadtree 0b8993417da64fed96e8d2d2f73cee1d3d86b02b
parent 771242504b20b7c6e8b6be8f11e2c600877d08a5
author Sam Kramer <skramer@palantir.com> 1682440883 +0100
committer Sam Kramer <skramer@palantir.com> 1682440883 +0100

hard mode
uujU  ^https://api.github.com/repos/palantir/atlasdb/commits/5af53a38afcfd0b2ed341a1bbc67711c6907d30ehtml_urlShttps://github.com/palantir/atlasdb/commit/5af53a38afcfd0b2ed341a1bbc67711c6907d30ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5af53a38afcfd0b2ed341a1bbc67711c6907d30e/commentsjC  }(login
Sam-KrameridJ^2_ j?  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jU  'https://api.github.com/users/Sam-Kramerjc  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujK  }(jh  
Sam-Kramerjj  J^2_ j?  MDQ6VXNlcjYyMzg4MTQ=jl  3https://avatars.githubusercontent.com/u/6238814?v=4jn  h5jU  'https://api.github.com/users/Sam-Kramerjc  https://github.com/Sam-Kramerjq  1https://api.github.com/users/Sam-Kramer/followersjs  >https://api.github.com/users/Sam-Kramer/following{/other_user}ju  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jw  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jy  5https://api.github.com/users/Sam-Kramer/subscriptionsj{  ,https://api.github.com/users/Sam-Kramer/orgsj}  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj  uparents]}(j=  (771242504b20b7c6e8b6be8f11e2c600877d08a5jU  ^https://api.github.com/repos/palantir/atlasdb/commits/771242504b20b7c6e8b6be8f11e2c600877d08a5jc  Shttps://github.com/palantir/atlasdb/commit/771242504b20b7c6e8b6be8f11e2c600877d08a5uastats}(totalK	additionsK 	deletionsKufiles]}(j=  (72ac575ce02e9d43c45816ae2ce9af64afd1e5c1filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj  K j  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5af53a38afcfd0b2ed341a1bbc67711c6907d30e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5af53a38afcfd0b2ed341a1bbc67711c6907d30e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=5af53a38afcfd0b2ed341a1bbc67711c6907d30epatchX  @@ -2013,12 +2013,6 @@ private void commitWrites(TransactionService transactionService) {
                 // timed.
                 traced("preCommitLockCheck", () -> throwIfImmutableTsOrCommitLocksExpired(commitLocksToken));
 
-                // Buggify stuff
-                Set<LockToken> tokensToUnlock = new HashSet<>();
-                tokensToUnlock.add(commitLocksToken);
-                immutableTimestampLock.ifPresent(tokensToUnlock::add);
-                timelockService.tryUnlock(tokensToUnlock);
-
                 // This can fail :(
                 // Serializable transactions need to check their reads haven't changed, by reading again at
                 // commitTs + 1. This must happen before the lock check for thorough tables, because the lockuau(28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5f}(sha(28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5fnode_idEC_kwDOAjP5fdoAKDI4NTkwZjNkNWE3ZWU1ZDhiZTA0N2M5ZmM4ZjRjYmI3YTY2NDVjNWYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-06T18:22:55Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-06-06T18:22:55ZumessageThe Eagle has Landedtree}(j  (6cd5d5cd0daf662298c81f476240bfee096e3796url`https://api.github.com/repos/palantir/atlasdb/git/trees/6cd5d5cd0daf662298c81f476240bfee096e3796uj̚  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5f
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR/eYAACgkQTLdFKain
zjzqaQgAgc7v7oWSr+WWKQBAB0iJm+Tlor+CNmusFH52ldM+r/AxfBm+5CR455+F
yIljXtXURv9Z7cNsXi9NjtHPv+lxvOKkm4/7RRCmqpS9/Yx5U7gOI2ji4fTf6VjW
1pSpPIf7jxavKCAP9THw6gI9EV3+mvSgqV0yiFCSNWrVKX+TwKCumL7kwIKLq/XZ
479PJrZ/2mYiTzaV9Jpshd2XwJPY6WXcG1EwzWczKIHFc9VZCoXXxdJiPqE9qBRs
gMmYg2k38QseCIzCVfvmkF1Ymn2zDrx8M90rzDKLNNu+GuRM5Gtbw7Lr2u11RWtA
CqDyeqtJN4kqpeqZ0zwzawyZAN5snQ==
=4FQg
-----END PGP SIGNATURE-----payloadtree 6cd5d5cd0daf662298c81f476240bfee096e3796
parent 52a14290334d3af76d847ef393b1b3ce25d6b463
author Jeremy Kong <jkong@palantir.com> 1686075775 +0100
committer Jeremy Kong <jkong@palantir.com> 1686075775 +0100

The Eagle has Landed
uuj̚  ^https://api.github.com/repos/palantir/atlasdb/commits/28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5fhtml_urlShttps://github.com/palantir/atlasdb/commit/28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5f/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j̚  'https://api.github.com/users/jeremyk-91jښ  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(jߚ  
jeremyk-91j  JZ j  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5j̚  'https://api.github.com/users/jeremyk-91jښ  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents]}(j  (52a14290334d3af76d847ef393b1b3ce25d6b463j̚  ^https://api.github.com/repos/palantir/atlasdb/commits/52a14290334d3af76d847ef393b1b3ce25d6b463jښ  Shttps://github.com/palantir/atlasdb/commit/52a14290334d3af76d847ef393b1b3ce25d6b463uastats}(totalM	additionsM	deletionsKufiles](}(j  (78bcc16bdfdda15e4755fae24de94221f4434855filenameatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedRowColumnRangeReadTransactionAction.javastatusaddedj  K+j  K changesK+blob_urlhttps://github.com/palantir/atlasdb/blob/28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5f/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5f/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.javacontents_urlX  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.java?ref=28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5fpatchX&  @@ -0,0 +1,43 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedRowColumnRangeReadTransactionAction extends InvalidWitnessedTransactionAction {
+    WitnessedRowColumnRangeReadTransactionAction witness();
+
+    List<ColumnValue> expectedColumnsAndValues();
+
+    @Value.Check
+    default void check() {
+        Preconditions.checkState(
+                !expectedColumnsAndValues().equals(witness().columnsAndValues()),
+                "If the witness and expected columns and values match, this should not be an invalid action",
+                SafeArg.of("witnessedColumnsAndValues", witness().columnsAndValues()),
+                SafeArg.of("expectedColumnsAndValues", expectedColumnsAndValues()));
+    }
+
+    static ImmutableInvalidWitnessedRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableInvalidWitnessedRowColumnRangeReadTransactionAction.builder();
+    }
+}u}(j  (f353ffedc82fe180d4cea58007f1936519a878eaj  hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj  modifiedj  K
j  Kj   Kj!  https://github.com/palantir/atlasdb/blob/28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj#  https://github.com/palantir/atlasdb/raw/28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj%  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5fj'  X  @@ -16,8 +16,12 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.RangeQueryReader;
+import com.palantir.atlasdb.workload.transaction.SimpleRangeQueryReader;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
@@ -60,6 +64,7 @@ private static final class SerializableInvariantVisitor
             implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
 
         private final InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        private final RangeQueryReader rangeQueryReader = new SimpleRangeQueryReader(inMemoryTransactionReplayer);
 
         @Override
         public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
@@ -94,7 +99,14 @@ public Optional<InvalidWitnessedTransactionAction> visit(
         @Override
         public Optional<InvalidWitnessedTransactionAction> visit(
                 WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
-            // TODO (jkong): Not implemented yet
+            List<ColumnValue> expectedReads =
+                    rangeQueryReader.readRange(rowColumnRangeReadTransactionAction.originalQuery());
+            if (!expectedReads.equals(rowColumnRangeReadTransactionAction.columnsAndValues())) {
+                return Optional.of(InvalidWitnessedRowColumnRangeReadTransactionAction.builder()
+                        .witness(rowColumnRangeReadTransactionAction)
+                        .expectedColumnsAndValues(expectedReads)
+                        .build());
+            }
             return Optional.empty();
         }
     }u}(j  (a8e93ad88b71640602cbfdc37f9d5086290fbe6dj  eatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/RangeQueryReader.javaj  addedj  Kj  K j   Kj!  https://github.com/palantir/atlasdb/blob/28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.javaj#  https://github.com/palantir/atlasdb/raw/28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.javaj%  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.java?ref=28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5fj'  X  @@ -0,0 +1,24 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import java.util.List;
+
+public interface RangeQueryReader {
+    List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction);
+}u}(j  (ca20dea1c6c53e14a34902eca8ba54c25bf6d2a6j  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReader.javaj  addedj  KFj  K j   KFj!  https://github.com/palantir/atlasdb/blob/28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj#  https://github.com/palantir/atlasdb/raw/28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj%  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.java?ref=28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5fj'  X  @@ -0,0 +1,70 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeRuntimeException;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.Optional;
+
+public final class SimpleRangeQueryReader implements RangeQueryReader {
+    private static final SafeLogger log = SafeLoggerFactory.get(SimpleRangeQueryReader.class);
+
+    private static final int LARGE_HISTORY_LIMIT = 30_000;
+
+    private final InMemoryTransactionReplayer transactionReplayer;
+
+    public SimpleRangeQueryReader(InMemoryTransactionReplayer transactionReplayer) {
+        this.transactionReplayer = transactionReplayer;
+    }
+
+    @Override
+    public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction) {
+        Map<TableAndWorkloadCell, Optional<Integer>> allValues = transactionReplayer.getValues();
+        if (allValues.size() > LARGE_HISTORY_LIMIT) {
+            log.error(
+                    "Attempted to do range queries in a simple way, even though the history is large ({} entries)! If"
+                        + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
+                        + " efficient range query implementation.",
+                    SafeArg.of("size", allValues.size()));
+        }
+        return allValues
+                .filterKeys(tableAndWorkloadCell -> {
+                    if (!tableAndWorkloadCell.tableName().equals(readTransactionAction.table())) {
+                        return false;
+                    }
+                    if (tableAndWorkloadCell.cell().key() != readTransactionAction.row()) {
+                        return false;
+                    }
+                    return readTransactionAction
+                            .columnRangeSelection()
+                            .contains(tableAndWorkloadCell.cell().column());
+                })
+                .filterValues(Optional::isPresent)
+                .map(entry -> ColumnValue.of(
+                        entry._1().cell().column(),
+                        entry._2()
+                                .orElseThrow(() -> new SafeRuntimeException(
+                                        "Empty values should already have been filtered out!"))))
+                .toJavaList();
+    }
+}u}(j  (b63546bce1abf29ed000b790176f73d0186b4abfj  latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj  modifiedj  Kj  Kj   Kj!  https://github.com/palantir/atlasdb/blob/28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj#  https://github.com/palantir/atlasdb/raw/28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj%  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5fj'  X4  @@ -18,10 +18,14 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
@@ -111,11 +115,8 @@ public void catchesWriteSkew() {
                 .transactionStore(readableTransactionStore)
                 .build();
         SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
-        InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);
-
-        assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
         InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
-                Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
 
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(
@@ -155,4 +156,229 @@ public void handlesDeletes() {
         SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
         assertThat(invalidTransactions).isEmpty();
     }
+
+    @Test
+    public void readsEmptyRowRangeIfNoCellsInRange() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder()
+                                .startColumnInclusive(8888888)
+                                .build(),
+                        ImmutableList.of())
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void readsEmptyRowRangeIfNoCellsInRow() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(10, ColumnRangeSelection.builder().build(), ImmutableList.of())
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void readsRowRangeToExhaustion() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(15, 21)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void incorporatesLocalWritesIntoRowColumnRangeQueries() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .write(5, 20, 34)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(15, 21), ColumnValue.of(20, 34)))
+                .write(5, 10, 99)
+                .write(5, 13, 24)
+                .delete(5, 15)
+                .write(5, 18, 36)
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(
+                                ColumnValue.of(10, 99),
+                                ColumnValue.of(13, 24),
+                                ColumnValue.of(18, 36),
+                                ColumnValue.of(20, 34)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void identifiesUnexpectedMissingCellInRowColumnRangeRead() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .write(5, 20, 34)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(20, 34)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
+                                action.expectedColumnsAndValues())
+                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(15, 21), ColumnValue.of(20, 34)));
+    }
+
+    @Test
+    public void identifiesUnexpectedAdditionalCellInRowColumnRangeRead() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 20, 34)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(15, 24), ColumnValue.of(20, 34)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
+                                action.expectedColumnsAndValues())
+                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
+    }
+
+    @Test
+    public void identifiesIncorrectCellValuesInRowColumnRangeRead() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 20, 34)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnValue.of(10, 8888888), ColumnValue.of(20, 34)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
+                                action.expectedColumnsAndValues())
+                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
+    }
+
+    @Test
+    public void identifiesIncorrectOrderingInRowColumnRangeRead() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 20, 34)
+                .write(5, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnValue.of(20, 34), ColumnValue.of(10, 15)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
+                                action.expectedColumnsAndValues())
+                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
+    }
+
+    private static InvalidWitnessedTransactionAction getSingularFinalInvalidAction(
+            List<InvalidWitnessedTransaction> invalidTransactions, List<WitnessedTransaction> transactions) {
+        InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);
+
+        assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
+        return Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
+    }
 }u}(j  (8396b6d1c0f6fbe9cf29c2fcb72db28d3c19a1edj  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj  modifiedj  Kj  K j   Kj!  https://github.com/palantir/atlasdb/blob/28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj#  https://github.com/palantir/atlasdb/raw/28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj%  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=28590f3d5a7ee5d8be047c9fc8f4cbb7a6645c5fj'  X1  @@ -16,10 +16,12 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -91,6 +93,19 @@ public WitnessedTransactionBuilder delete(Integer row, Integer column) {
             return this;
         }
 
+        public WitnessedTransactionBuilder rowColumnRangeRead(
+                Integer row, ColumnRangeSelection columnRangeSelection, List<ColumnValue> valuesRead) {
+            actions.add(WitnessedRowColumnRangeReadTransactionAction.builder()
+                    .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                            .table(table)
+                            .row(row)
+                            .columnRangeSelection(columnRangeSelection)
+                            .build())
+                    .columnsAndValues(valuesRead)
+                    .build());
+            return this;
+        }
+
         public WitnessedTransactionsBuilder endTransaction() {
             Optional<Long> commitTimestamp =
                     needsCommitTimestamp ? Optional.of(timestampCounter.incrementAndGet()) : Optional.empty();ueu     (fcb088a3eef39057108127b13632e26e80d6097f}(sha(fcb088a3eef39057108127b13632e26e80d6097fnode_idEC_kwDOAjP5fdoAKGZjYjA4OGEzZWVmMzkwNTcxMDgxMjdiMTM2MzJlMjZlODBkNjA5N2Ycommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-03-06T16:18:20Zu	committer}(j[  
Ahmed Alouanej]  aalouane@palantir.comj_  2023-03-06T16:18:20Zumessagespotlesstree}(jS  (65a05f113eb52abb047ca1f2667821c4e50f37b3url`https://api.github.com/repos/palantir/atlasdb/git/trees/65a05f113eb52abb047ca1f2667821c4e50f37b3ujk  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fcb088a3eef39057108127b13632e26e80d6097f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQGEkwACgkQPlMHVIT1
yhoZVQf/TlMBYY6/UxludG1lIygxS1TVa4ZryDlLxgCWkrZZqw9E9XYZK5J7QLlw
4pjUoOPeR3e8Rl7UX/YuBq5NaUj/sEfqAOpB63oq/ZfpjRX2S6UxaELS66e8PwzE
OCOjE3dJEij1UmUcHniP54bU5s7zEve1NPaBb0VA3rZPEa5Krnw8HuJHsJReupym
ZYddM/QFPIJBKpsBwbCTbocTinjYEEjyWFNCyX/j4fkn8h9XGt4OGsYUl9Je4hWU
ogSL/ynZHPdiGiFk27RG/WbqQCD6JNJgzqLhUZdpDVZYaheJI4DWSjjOfMR6MSEG
jaqYXPS1mmBD8jpg3A9/8qH0dwxanQ==
=MBvq
-----END PGP SIGNATURE-----payloadtree 65a05f113eb52abb047ca1f2667821c4e50f37b3
parent fcd41270f16004a6036f37791d9f01f1c3cf4106
author Ahmed Alouane <aalouane@palantir.com> 1678119500 +0000
committer Ahmed Alouane <aalouane@palantir.com> 1678119500 +0000

spotless
uujk  ^https://api.github.com/repos/palantir/atlasdb/commits/fcb088a3eef39057108127b13632e26e80d6097fhtml_urlShttps://github.com/palantir/atlasdb/commit/fcb088a3eef39057108127b13632e26e80d6097fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fcb088a3eef39057108127b13632e26e80d6097f/commentsjY  }(loginergo14idJjU  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jk  #https://api.github.com/users/ergo14jy  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuja  }(j~  ergo14j  JjU  MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j  h5jk  #https://api.github.com/users/ergo14jy  https://github.com/ergo14j  -https://api.github.com/users/ergo14/followersj  :https://api.github.com/users/ergo14/following{/other_user}j  3https://api.github.com/users/ergo14/gists{/gist_id}j  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j  1https://api.github.com/users/ergo14/subscriptionsj  (https://api.github.com/users/ergo14/orgsj  )https://api.github.com/users/ergo14/reposj  4https://api.github.com/users/ergo14/events{/privacy}j  3https://api.github.com/users/ergo14/received_eventsj  Userj  uparents]}(jS  (fcd41270f16004a6036f37791d9f01f1c3cf4106jk  ^https://api.github.com/repos/palantir/atlasdb/commits/fcd41270f16004a6036f37791d9f01f1c3cf4106jy  Shttps://github.com/palantir/atlasdb/commit/fcd41270f16004a6036f37791d9f01f1c3cf4106uastats}(totalK	additionsK	deletionsKufiles]}(jS  (3c2278c182bf5531073adaa0f330188e64592508filenamefatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraServerOriginTest.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/fcb088a3eef39057108127b13632e26e80d6097f/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/fcb088a3eef39057108127b13632e26e80d6097f/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.java?ref=fcb088a3eef39057108127b13632e26e80d6097fpatchX3  @@ -69,4 +69,4 @@ public void mapAllServersToOriginFromSetStreamReturnsEmptyMapOnEmptySet() {
     private static CassandraServer createCassandraServer(String hostname) {
         return CassandraServer.of(hostname, InetSocketAddress.createUnresolved(hostname, 88));
     }
-}
\ No newline at end of file
+}uau(08879f4fa550e02de6361c20d19fa1b28710450f}(sha(08879f4fa550e02de6361c20d19fa1b28710450fnode_idEC_kwDOAjP5fdoAKDA4ODc5ZjRmYTU1MGUwMmRlNjM2MWMyMGQxOWZhMWIyODcxMDQ1MGYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-23T13:13:58Zu	committer}(jқ  
Sam Kramerjԛ  skramer@palantir.comj֛  2023-06-23T13:13:58Zumessagechmod +x bash scriptstree}(jʛ  (66c616a4d05e88f56bd2aa6a7adafd99c9ac42d7url`https://api.github.com/repos/palantir/atlasdb/git/trees/66c616a4d05e88f56bd2aa6a7adafd99c9ac42d7uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/08879f4fa550e02de6361c20d19fa1b28710450f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSVmpYACgkQmPPOpKR4
XS3GzwgAq39h/8Lq/NHsiHxv4yPo/UbfXBVnJBEKQt9E3pzXDlc7eVtlB70Qben5
d/jLuJkRaZE+CGsO2nGS5DEyN/JnjJI0ja5HyeWpzCkkmVvFQ3pgIjN8PPwVhFqa
3tzBYDpAdTwAaQ8KzrSnntLXGfMzWKQOS8mppPMsTKI/sIx0h2El8LB7rCe9Kri6
6npgfGADA/YcQOGgXi85Q71fccNsR/PrzFj2kLxYgreL9mxpqCKTd9YvO1A6gM0f
Gx3iiRPMJQv9zlPASayU5AoSMqpokMY9s8lF6BydyTqIGhhZ3Dhph13UjZVg3quA
bktFPxbn9ljYEMf6CWgIdU29XLmwow==
=OEbV
-----END PGP SIGNATURE-----payloadtree 66c616a4d05e88f56bd2aa6a7adafd99c9ac42d7
parent 424eaa5ff4a739dbe0807495c7bfcc316c2d7868
author Sam Kramer <skramer@palantir.com> 1687526038 +0100
committer Sam Kramer <skramer@palantir.com> 1687526038 +0100

chmod +x bash scripts
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/08879f4fa550e02de6361c20d19fa1b28710450fhtml_urlShttps://github.com/palantir/atlasdb/commit/08879f4fa550e02de6361c20d19fa1b28710450fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/08879f4fa550e02de6361c20d19fa1b28710450f/commentsjЛ  }(login
Sam-KrameridJ^2_ j̛  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj؛  }(j  
Sam-Kramerj  J^2_ j̛  MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j  h5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj  1https://api.github.com/users/Sam-Kramer/followersj   >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j  5https://api.github.com/users/Sam-Kramer/subscriptionsj  ,https://api.github.com/users/Sam-Kramer/orgsj
  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj  uparents]}(jʛ  (424eaa5ff4a739dbe0807495c7bfcc316c2d7868j  ^https://api.github.com/repos/palantir/atlasdb/commits/424eaa5ff4a739dbe0807495c7bfcc316c2d7868j  Shttps://github.com/palantir/atlasdb/commit/424eaa5ff4a739dbe0807495c7bfcc316c2d7868uastats}(totalK 	additionsK 	deletionsK ufiles](}(jʛ  Nfilename1atlasdb-workload-server-antithesis/var/compact.shstatusmodifiedj,  K j-  K changesK blob_urlhttps://github.com/palantir/atlasdb/blob/08879f4fa550e02de6361c20d19fa1b28710450f/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shraw_urlhttps://github.com/palantir/atlasdb/raw/08879f4fa550e02de6361c20d19fa1b28710450f/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.sh?ref=08879f4fa550e02de6361c20d19fa1b28710450fu}(jʛ  Nj1  /atlasdb-workload-server-antithesis/var/flush.shj3  modifiedj,  K j-  K j5  K j6  https://github.com/palantir/atlasdb/blob/08879f4fa550e02de6361c20d19fa1b28710450f/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shj8  https://github.com/palantir/atlasdb/raw/08879f4fa550e02de6361c20d19fa1b28710450f/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shj:  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fflush.sh?ref=08879f4fa550e02de6361c20d19fa1b28710450fueu(1a82430516296fd90b6f6c9a87b235b2ec250f70}(sha(1a82430516296fd90b6f6c9a87b235b2ec250f70node_idEC_kwDOAjP5fdoAKDFhODI0MzA1MTYyOTZmZDkwYjZmNmM5YTg3YjIzNWIyZWMyNTBmNzAcommit}(author}(nameChris Van de Veldeemailcvandevelde@palantir.comdate2023-05-22T10:44:15Zu	committer}(jL  Chris Van de VeldejN  cvandevelde@palantir.comjP  2023-05-22T10:44:15Zumessage$Prevent INDEX_FFS on overflow deletetree}(jD  (f35d5f99f93261be41ab1542621d52cb94ca7e61url`https://api.github.com/repos/palantir/atlasdb/git/trees/f35d5f99f93261be41ab1542621d52cb94ca7e61uj\  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1a82430516296fd90b6f6c9a87b235b2ec250f70
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEfsytHu2QbUsz5QamhCdbnbxuCwoFAmRrR5QACgkQhCdbnbxu
Cwodcwf+PYYihgatoF1DWe5zc8Y6A+T77fpjmMp9PTIV8ZpRRzuDgGcrKa6td42/
YqcJ3jJLMt0rQTmdMvz1lwHy4APR0h4l8XHsnwyJaubsioEu2saCI1YJvK4e8D4o
PN66z2XTJ5RYtfEa1dLyfmtNAI1aJZrP96Zgm5mZ0m1IEYK0Rv+GLvz/OhRTvRIq
kC3S816xfut48DxBcZvJA2+Jx9rRGa4nc7JKFyXcbul977zUuAZ6TRFVoB9dyVex
m9MUqGZM9Y/hUdRZr/MX/4Qp/7AOg2uikNsEjJ1fUhd0EaQuR8wu/GdtHWYlFraq
0c1wQdz1IZXDRdQtziE1mqYRp1j2qg==
=I5aa
-----END PGP SIGNATURE-----payloadX  tree f35d5f99f93261be41ab1542621d52cb94ca7e61
parent 2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30
author Chris Van de Velde <cvandevelde@palantir.com> 1684752255 +1000
committer Chris Van de Velde <cvandevelde@palantir.com> 1684752255 +1000

Prevent INDEX_FFS on overflow delete
uuj\  ^https://api.github.com/repos/palantir/atlasdb/commits/1a82430516296fd90b6f6c9a87b235b2ec250f70html_urlShttps://github.com/palantir/atlasdb/commit/1a82430516296fd90b6f6c9a87b235b2ec250f70comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1a82430516296fd90b6f6c9a87b235b2ec250f70/commentsjJ  }(loginCVdV-auidJDN jF  MDQ6VXNlcjY5MjI2MDUy
avatar_url4https://avatars.githubusercontent.com/u/69226052?v=4gravatar_idh5j\  $https://api.github.com/users/CVdV-aujj  https://github.com/CVdV-au
followers_url.https://api.github.com/users/CVdV-au/followers
following_url;https://api.github.com/users/CVdV-au/following{/other_user}	gists_url4https://api.github.com/users/CVdV-au/gists{/gist_id}starred_url;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/CVdV-au/subscriptionsorganizations_url)https://api.github.com/users/CVdV-au/orgs	repos_url*https://api.github.com/users/CVdV-au/repos
events_url5https://api.github.com/users/CVdV-au/events{/privacy}received_events_url4https://api.github.com/users/CVdV-au/received_eventstypeUser
site_adminujR  }(jo  CVdV-aujq  JDN jF  MDQ6VXNlcjY5MjI2MDUyjs  4https://avatars.githubusercontent.com/u/69226052?v=4ju  h5j\  $https://api.github.com/users/CVdV-aujj  https://github.com/CVdV-aujx  .https://api.github.com/users/CVdV-au/followersjz  ;https://api.github.com/users/CVdV-au/following{/other_user}j|  4https://api.github.com/users/CVdV-au/gists{/gist_id}j~  ;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}j  2https://api.github.com/users/CVdV-au/subscriptionsj  )https://api.github.com/users/CVdV-au/orgsj  *https://api.github.com/users/CVdV-au/reposj  5https://api.github.com/users/CVdV-au/events{/privacy}j  4https://api.github.com/users/CVdV-au/received_eventsj  Userj  uparents]}(jD  (2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30j\  ^https://api.github.com/repos/palantir/atlasdb/commits/2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30jj  Shttps://github.com/palantir/atlasdb/commit/2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30uastats}(totalK		additionsK	deletionsKufiles]}(jD  (279a022905f1069fee1f9dd3c65ce3733c40fde4filenameiatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleOverflowWriteTable.javastatusmodifiedj  Kj  KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/1a82430516296fd90b6f6c9a87b235b2ec250f70/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1a82430516296fd90b6f6c9a87b235b2ec250f70/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.java?ref=1a82430516296fd90b6f6c9a87b235b2ec250f70patchX  @@ -399,10 +399,11 @@ private void deleteAllTimestampsOverflow(String overflowTable, List<Object[]> ar
         conns.get()
                 .updateManyUnregisteredQuery(
                         " /* DELETE_ALL_TS_OVERFLOW (" + overflowTable + ") */ "
-                                + " DELETE /*+ INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */ "
-                                + "   FROM " + overflowTable + " m "
-                                + "  WHERE m.id IN (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName)
-                                + ") */ "
+                                + " DELETE /*+ INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ")"
+                                + "            NO_INDEX_FFS(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */ß"
+                                + " FROM " + overflowTable + " m "
+                                + " WHERE m.id IN (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName)
+                                + "   ) */ "
                                 + "                        i.overflow "
                                 + "                   FROM " + shortTableName + " i "
                                 + "                  WHERE i.row_name = ? "uau(e1ffe47bb8740d1cb9ec1cbfa108d353ae287181}(sha(e1ffe47bb8740d1cb9ec1cbfa108d353ae287181node_idEC_kwDOAjP5fdoAKGUxZmZlNDdiYjg3NDBkMWNiOWVjMWNiZmExMDhkMzUzYWUyODcxODEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-23T00:32:34Zu	committer}(jÜ  Jeremy KongjŜ  jkong@palantir.comjǜ  2023-02-23T00:32:34Zumessageblehtree}(j  (85f54821daa523460269e9d0b6d9d028a9bd67e9url`https://api.github.com/repos/palantir/atlasdb/git/trees/85f54821daa523460269e9d0b6d9d028a9bd67e9ujӜ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e1ffe47bb8740d1cb9ec1cbfa108d353ae287181
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmP2tCUACgkQTLdFKain
zjyAkAgA2bPNxHFacxWTxPzoBphjAIn1aSiGGrRGYsQAkQKoCdO2mrfWzakDjlTF
5DQ8Nuq3wQLzB6JHkRzM6/krAnu6+JAZRBl3Mht4A7prWohk03oV7ubHXBNDwht4
239S7cPx7e+yrDI5T7PSIiXY8DyBPnXbAV9Hzp/yrnTuW5zquLvnGoyj1eaUwBRV
9DXhMbugcD8PhXFtdTPrPH0Ht47IY2cHWUFa1YDbjUGw6q6UCkUMb7KYAw72BdKV
DW9yHzvHGy1MHh5CNf6YypGXc5q2JFUs3ap2YaisEpPx5rLcR8RFt4zP+WUGfuFi
pbpGapWW4D+dGsqhHIkZ40Y0eNEs1w==
=GtJ4
-----END PGP SIGNATURE-----payloadtree 85f54821daa523460269e9d0b6d9d028a9bd67e9
parent 4be7945e46f4c6c32fe0d819fba1d451ef1e5bcc
author Jeremy Kong <jkong@palantir.com> 1677112354 +0000
committer Jeremy Kong <jkong@palantir.com> 1677112354 +0000

bleh
uujӜ  ^https://api.github.com/repos/palantir/atlasdb/commits/e1ffe47bb8740d1cb9ec1cbfa108d353ae287181html_urlShttps://github.com/palantir/atlasdb/commit/e1ffe47bb8740d1cb9ec1cbfa108d353ae287181comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e1ffe47bb8740d1cb9ec1cbfa108d353ae287181/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jӜ  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujɜ  }(j  
jeremyk-91j  JZ j  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5jӜ  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents]}(j  (4be7945e46f4c6c32fe0d819fba1d451ef1e5bccjӜ  ^https://api.github.com/repos/palantir/atlasdb/commits/4be7945e46f4c6c32fe0d819fba1d451ef1e5bccj  Shttps://github.com/palantir/atlasdb/commit/4be7945e46f4c6c32fe0d819fba1d451ef1e5bccuastats}(totalK	additionsK	deletionsKufiles]}(j  (3a88ac9f28a5ac17036f4bd80dae5e25b986de18filenamelatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/IndexedTransactionTask.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e1ffe47bb8740d1cb9ec1cbfa108d353ae287181/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FIndexedTransactionTask.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e1ffe47bb8740d1cb9ec1cbfa108d353ae287181/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FIndexedTransactionTask.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FIndexedTransactionTask.java?ref=e1ffe47bb8740d1cb9ec1cbfa108d353ae287181patchX  @@ -23,8 +23,9 @@
 
 /**
  * A task that performs some operations on a {@link TransactionStore}, possibly using the index of the task
- * as an input, and returns an {@link Optional<WitnessedTransaction>}. Here, "index" refers to an integer between 0
- * and the {@link WorkflowConfiguration#iterationCount()} - each copy of the task will receive a different integer.
+ * as an input, and returns an {@link Optional} of {@link WitnessedTransaction}. Here, "index" refers to an integer
+ * between 0 and the {@link WorkflowConfiguration#iterationCount()} - each copy of the task will receive a different
+ * integer.
  */
 @FunctionalInterface
 public interface IndexedTransactionTask extends BiFunction<TransactionStore, Integer, Optional<WitnessedTransaction>> {}uau(6cd1200704cf2dc6eb809129d7041f04706b568d}(sha(6cd1200704cf2dc6eb809129d7041f04706b568dnode_idEC_kwDOAjP5fdoAKDZjZDEyMDA3MDRjZjJkYzZlYjgwOTEyOWQ3MDQxZjA0NzA2YjU2OGQcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-08-16T13:32:39Zu	committer}(j:  David Schlosnaglej<  davids@palantir.comj>  2023-08-16T13:32:39Zumessage;Fix StreamTest.testStreamMetadataConflictWriteFirst() checktree}(j2  (d235b015d855c1fd7eb48adc9e75e751efadc860url`https://api.github.com/repos/palantir/atlasdb/git/trees/d235b015d855c1fd7eb48adc9e75e751efadc860ujJ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6cd1200704cf2dc6eb809129d7041f04706b568d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmTcz/cACgkQR9hsJ74Q
0l9ZHQf/XYBoLBKUdhlj//tvgt+eNbzIz4koor2rI54CLmGYSbdS9HgiXa8YjeD/
zCadUkAL4AHjoFrYHgyFKgEucT0SP54iwSJHqqz/HCUEbvkzr98RA3kH0cT40loN
3L8xzaiozUmVVTKt9GS/AQruzyszw95Nb2krYJrh6sgSxvK2sQApzGY6NWFBjfJO
At69JT/2NBf63YN9OUe/vyS1xuBeV5/nE53lGzTNKlOU7AcZ3forh02qPaNRnTmK
RvQcwPGdr5WFaaxQ9xTENqqTjOC96t5/tctxzdLhjx7LEXqryymlfPQSFTzYrIJr
BBTfY/rqFyp8/dl1dUUPFdlyAm3e0w==
=ZIN3
-----END PGP SIGNATURE-----payloadX  tree d235b015d855c1fd7eb48adc9e75e751efadc860
parent f1bae4dfce16f824ad64b50e28b7c94db536fb25
author David Schlosnagle <davids@palantir.com> 1692192759 -0400
committer David Schlosnagle <davids@palantir.com> 1692192759 -0400

Fix StreamTest.testStreamMetadataConflictWriteFirst() check
uujJ  ^https://api.github.com/repos/palantir/atlasdb/commits/6cd1200704cf2dc6eb809129d7041f04706b568dhtml_urlShttps://github.com/palantir/atlasdb/commit/6cd1200704cf2dc6eb809129d7041f04706b568dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6cd1200704cf2dc6eb809129d7041f04706b568d/commentsj8  }(loginschlosnaidMBj4  MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jJ  %https://api.github.com/users/schlosnajX  https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj@  }(j]  schlosnaj_  MBj4  MDQ6VXNlcjU0NTk0ja  1https://avatars.githubusercontent.com/u/54594?v=4jc  h5jJ  %https://api.github.com/users/schlosnajX  https://github.com/schlosnajf  /https://api.github.com/users/schlosna/followersjh  <https://api.github.com/users/schlosna/following{/other_user}jj  5https://api.github.com/users/schlosna/gists{/gist_id}jl  <https://api.github.com/users/schlosna/starred{/owner}{/repo}jn  3https://api.github.com/users/schlosna/subscriptionsjp  *https://api.github.com/users/schlosna/orgsjr  +https://api.github.com/users/schlosna/reposjt  6https://api.github.com/users/schlosna/events{/privacy}jv  5https://api.github.com/users/schlosna/received_eventsjx  Userjz  uparents]}(j2  (f1bae4dfce16f824ad64b50e28b7c94db536fb25jJ  ^https://api.github.com/repos/palantir/atlasdb/commits/f1bae4dfce16f824ad64b50e28b7c94db536fb25jX  Shttps://github.com/palantir/atlasdb/commit/f1bae4dfce16f824ad64b50e28b7c94db536fb25uastats}(totalK	additionsK	deletionsKufiles]}(j2  (0007eab28ce54add543496083b31db57291f4e26filenameUatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/StreamTest.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/6cd1200704cf2dc6eb809129d7041f04706b568d/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2FStreamTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6cd1200704cf2dc6eb809129d7041f04706b568d/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2FStreamTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2FStreamTest.java?ref=6cd1200704cf2dc6eb809129d7041f04706b568dpatchX^  @@ -657,13 +657,15 @@ public void startFirstAndFail(Transaction tx, long streamId) {
             @Override
             public void startSecondAndFinish(Transaction tx, long streamId) {
                 StreamTestStreamStore ss = StreamTestStreamStore.of(txManager, StreamTestTableFactory.of());
-                ss.storeStreams(tx, ImmutableMap.of(streamId, new ByteArrayInputStream(new byte[1])));
+                ss.storeStreams(tx, ImmutableMap.of(streamId, new ByteArrayInputStream(new byte[] {0x42})));
             }
         });
 
         Optional<InputStream> stream = getStream(streamId);
         assertThat(stream).isPresent();
-        assertThat(stream.get()).isNotNull();
+        try (InputStream inputStream = stream.get()) {
+            assertThat(inputStream).isNotNull().hasBinaryContent(new byte[] {0x42});
+        }
     }
 
     @Testuau(f51bb1db32daaa27817f51cee4a1f8997e76b430}(sha(f51bb1db32daaa27817f51cee4a1f8997e76b430node_idEC_kwDOAjP5fdoAKGY1MWJiMWRiMzJkYWFhMjc4MTdmNTFjZWU0YTFmODk5N2U3NmI0MzAcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-15T16:06:51Zu	committer}(j  svc-autoreleasej  -pd-foundry-infrastructure-notify@palantir.comj  2023-05-15T16:06:51Zumessage#Autorelease 0.854.0-rc10

[skip ci]tree}(j  (54477e92c73677b82bb985a9edd9fc7e2ab4cc73url`https://api.github.com/repos/palantir/atlasdb/git/trees/54477e92c73677b82bb985a9edd9fc7e2ab4cc73uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f51bb1db32daaa27817f51cee4a1f8997e76b430
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRiWJwACgkQhbrR8ip7mDDR5AD9GxJoXD6zZ/bSrKaEljsgFM1i
fIdLPAJRbwiFcb7Qhr0A/2ypZQYA0lKJWkmdcnVyDWYpAcOhzASUU01kfbTHzGSM
=uw+2
-----END PGP SIGNATURE-----
payloadX)  tree 54477e92c73677b82bb985a9edd9fc7e2ab4cc73
parent 8ca89822556aafab46c6fedea6afc3e8461f5d1f
author aalouane <30903736+ergo14@users.noreply.github.com> 1684166811 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684166811 +0000

Autorelease 0.854.0-rc10

[skip ci]uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/f51bb1db32daaa27817f51cee4a1f8997e76b430html_urlShttps://github.com/palantir/atlasdb/commit/f51bb1db32daaa27817f51cee4a1f8997e76b430comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f51bb1db32daaa27817f51cee4a1f8997e76b430/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14jϝ  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(jԝ  svc-autoreleasej֝  J(j  MDQ6VXNlcjUxNzE4MzQ2j؝  4https://avatars.githubusercontent.com/u/51718346?v=4jڝ  h5j  ,https://api.github.com/users/svc-autoreleasejϝ  "https://github.com/svc-autoreleasejݝ  6https://api.github.com/users/svc-autorelease/followersjߝ  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j  :https://api.github.com/users/svc-autorelease/subscriptionsj  1https://api.github.com/users/svc-autorelease/orgsj  2https://api.github.com/users/svc-autorelease/reposj  =https://api.github.com/users/svc-autorelease/events{/privacy}j  <https://api.github.com/users/svc-autorelease/received_eventsj  Userj  uparents]}(j  (8ca89822556aafab46c6fedea6afc3e8461f5d1fj  ^https://api.github.com/repos/palantir/atlasdb/commits/8ca89822556aafab46c6fedea6afc3e8461f5d1fjϝ  Shttps://github.com/palantir/atlasdb/commit/8ca89822556aafab46c6fedea6afc3e8461f5d1fuastats}(totalK 	additionsK 	deletionsK ufiles]u(4a0c61b4eec7fbef029f1a223a84f1acf57cb6ac}(sha(4a0c61b4eec7fbef029f1a223a84f1acf57cb6acnode_idEC_kwDOAjP5fdoAKDRhMGM2MWI0ZWVjN2ZiZWYwMjlmMWEyMjNhODRmMWFjZjU3Y2I2YWMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-05T10:13:58Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-07-05T10:13:58Zumessagesemantic merge conflicts aretree}(j  (fbc340ba97132d6e9d124266e10761ed3a691366url`https://api.github.com/repos/palantir/atlasdb/git/trees/fbc340ba97132d6e9d124266e10761ed3a691366uj)  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4a0c61b4eec7fbef029f1a223a84f1acf57cb6ac
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSlQmcACgkQTLdFKain
zjzcdQgAtU6klmDLf1PB/v9HLLhLS/7k4EXVuZdbbKZXsQuxNg/+djIOz9Nx6lAu
N9kItFV/flzUkJ53qjARsRNtkSFmDQYUc47cqcdULApI+39+iHfe3QUWRdqW/8ZY
IsRhWH8MCZVtlIQO09dLJnh2th0iBL5k3MZ0+u3ngrwREH40zLDFrLeORyfnDeC1
kBSwCnq2qqVjBK+wbJfd4gHzjYgT4Dkfn2yYOgtweABbvg/XiNcoPmf7iuSOLGYL
kDykjKyPdfMPbYn4Du+557SYMWgPvNmhcXPIjMeLXNzuI7q1Byj0tzcQraynmpGN
20jNoLGN7OyOEC9a1Bzoac44K7F2sA==
=up93
-----END PGP SIGNATURE-----payloadtree fbc340ba97132d6e9d124266e10761ed3a691366
parent 9b15fcc5c729c103608f42c382d5936ab6116e0e
author Jeremy Kong <jkong@palantir.com> 1688552038 +0100
committer Jeremy Kong <jkong@palantir.com> 1688552038 +0100

semantic merge conflicts are
uuj)  ^https://api.github.com/repos/palantir/atlasdb/commits/4a0c61b4eec7fbef029f1a223a84f1acf57cb6achtml_urlShttps://github.com/palantir/atlasdb/commit/4a0c61b4eec7fbef029f1a223a84f1acf57cb6accomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4a0c61b4eec7fbef029f1a223a84f1acf57cb6ac/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j)  'https://api.github.com/users/jeremyk-91j7  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j<  
jeremyk-91j>  JZ j  MDQ6VXNlcjU5NTU1MTA=j@  3https://avatars.githubusercontent.com/u/5955510?v=4jB  h5j)  'https://api.github.com/users/jeremyk-91j7  https://github.com/jeremyk-91jE  1https://api.github.com/users/jeremyk-91/followersjG  >https://api.github.com/users/jeremyk-91/following{/other_user}jI  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jK  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jM  5https://api.github.com/users/jeremyk-91/subscriptionsjO  ,https://api.github.com/users/jeremyk-91/orgsjQ  -https://api.github.com/users/jeremyk-91/reposjS  8https://api.github.com/users/jeremyk-91/events{/privacy}jU  7https://api.github.com/users/jeremyk-91/received_eventsjW  UserjY  uparents]}(j  (9b15fcc5c729c103608f42c382d5936ab6116e0ej)  ^https://api.github.com/repos/palantir/atlasdb/commits/9b15fcc5c729c103608f42c382d5936ab6116e0ej7  Shttps://github.com/palantir/atlasdb/commit/9b15fcc5c729c103608f42c382d5936ab6116e0euastats}(totalKf	additionsK	deletionsK_ufiles](}(j  (3f20f7a70176487ef403ba940f6d80d5be20f457filenamepatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javastatusmodifiedjs  K jt  KYchangesKYblob_urlhttps://github.com/palantir/atlasdb/blob/4a0c61b4eec7fbef029f1a223a84f1acf57cb6ac/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4a0c61b4eec7fbef029f1a223a84f1acf57cb6ac/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=4a0c61b4eec7fbef029f1a223a84f1acf57cb6acpatchX   @@ -83,95 +83,6 @@ public void readHandlesEmptyAndPresentValue() {
                                 TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
     }
 
-    @Test
-    public void witnessRecordsColumnRangeActions() {
-        assertThat(readWrite(transaction -> {
-                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            WORKLOAD_CELL_TWO.key(),
-                            ColumnRangeSelection.builder().build());
-                }))
-                .containsExactly(
-                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
-                        WitnessedRowColumnRangeReadTransactionAction.builder()
-                                .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                                        .table(TABLE_1)
-                                        .row(WORKLOAD_CELL_TWO.key())
-                                        .columnRangeSelection(
-                                                ColumnRangeSelection.builder().build())
-                                        .build())
-                                .addColumnsAndValues(ColumnValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
-                                .build());
-    }
-
-    @Test
-    public void emptyColumnRangeReadsAreRecorded() {
-        assertThat(readWrite(transaction -> {
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            WORKLOAD_CELL_TWO.key(),
-                            ColumnRangeSelection.builder().build());
-                }))
-                .containsExactly(WitnessedRowColumnRangeReadTransactionAction.builder()
-                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                                .table(TABLE_1)
-                                .row(WORKLOAD_CELL_TWO.key())
-                                .columnRangeSelection(
-                                        ColumnRangeSelection.builder().build())
-                                .build())
-                        .build());
-    }
-
-    @Test
-    public void allRelevantCellsAreRecordedForFullColumnScan() {
-        int iterationCount = 1000;
-        assertThat(readWrite(transaction -> {
-                    IntStream.range(0, iterationCount)
-                            .forEach(column ->
-                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-                    transaction.getRowColumnRange(
-                            TABLE_1, 1, ColumnRangeSelection.builder().build());
-                }))
-                .hasSize(iterationCount + 1)
-                .element(iterationCount)
-                .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
-                        .isInstanceOfSatisfying(
-                                WitnessedRowColumnRangeReadTransactionAction.class,
-                                witness -> assertThat(witness.columnsAndValues())
-                                        .isEqualTo(IntStream.range(0, iterationCount)
-                                                .mapToObj(column -> ColumnValue.of(column, VALUE_ONE))
-                                                .collect(Collectors.toList()))));
-    }
-
-    @Test
-    public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
-        int iterationCount = 1000;
-        int startInclusive = 313;
-        int endExclusive = 855;
-        assertThat(readWrite(transaction -> {
-                    IntStream.range(0, iterationCount)
-                            .forEach(column ->
-                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            1,
-                            ColumnRangeSelection.builder()
-                                    .startColumnInclusive(startInclusive)
-                                    .endColumnExclusive(endExclusive)
-                                    .build());
-                }))
-                .hasSize(iterationCount + 1)
-                .element(iterationCount)
-                .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
-                        .isInstanceOfSatisfying(
-                                WitnessedRowColumnRangeReadTransactionAction.class,
-                                witness -> assertThat(witness.columnsAndValues())
-                                        .isEqualTo(IntStream.range(startInclusive, endExclusive)
-                                                .mapToObj(column -> ColumnValue.of(column, VALUE_ONE))
-                                                .collect(Collectors.toList()))));
-    }
-
     @Test
     public void witnessRecordsColumnRangeActions() {
         assertThat(readWrite(transaction -> {u}(j  (02cc3cea18cbb2337e3beb22a5f3250c9b157afdjy  xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javaj{  modifiedjs  Kjt  Kj}  Kj~  https://github.com/palantir/atlasdb/blob/4a0c61b4eec7fbef029f1a223a84f1acf57cb6ac/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj  https://github.com/palantir/atlasdb/raw/4a0c61b4eec7fbef029f1a223a84f1acf57cb6ac/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=4a0c61b4eec7fbef029f1a223a84f1acf57cb6acj  X  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -98,7 +98,7 @@ public void targetCellIsReadModifiedAndDeleted() {
                 .map(WitnessedTransaction::actions)
                 .flatMap(Collection::stream)
                 .collect(Collectors.toList());
-        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedSingleCellReadTransactionAction.class::isInstance);
         assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
         assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
     }
@@ -108,7 +108,8 @@ public void readTransactionsDontDoWrites() {
         WorkflowHistory workflowHistory = workflow.run();
 
         Set<WitnessedTransaction> witnessedTransactionsWithReads = workflowHistory.history().stream()
-                .filter(txn -> txn.actions().stream().anyMatch(WitnessedReadTransactionAction.class::isInstance))
+                .filter(txn ->
+                        txn.actions().stream().anyMatch(WitnessedSingleCellReadTransactionAction.class::isInstance))
                 .collect(Collectors.toSet());
 
         Set<WitnessedTransaction> witnessedTransactionsWithWritesOrDeletes = workflowHistory.history().stream()u}(j  (627b08f01b51b7af793c0a3534d3713d46052dfdjy  latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj{  modifiedjs  Kjt  Kj}  Kj~  https://github.com/palantir/atlasdb/blob/4a0c61b4eec7fbef029f1a223a84f1acf57cb6ac/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj  https://github.com/palantir/atlasdb/raw/4a0c61b4eec7fbef029f1a223a84f1acf57cb6ac/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=4a0c61b4eec7fbef029f1a223a84f1acf57cb6acj  X-  @@ -195,7 +195,7 @@ public void invariantReportsViolationsFromTransactionHistory() {
 
     @Test
     public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
-        WitnessedReadTransactionAction readWitness = WitnessedReadTransactionAction.of(
+        WitnessedSingleCellReadTransactionAction readWitness = WitnessedSingleCellReadTransactionAction.of(
                 TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
         WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
         assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
@@ -207,9 +207,9 @@ public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
     @Test
     public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCorrespondingPrimaryRow() {
         List<WitnessedTransactionAction> actions = ImmutableList.of(
-                WitnessedReadTransactionAction.of(
+                WitnessedSingleCellReadTransactionAction.of(
                         TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()),
-                WitnessedReadTransactionAction.of(
+                WitnessedSingleCellReadTransactionAction.of(
                         TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
         WorkflowHistory history = getWorkflowHistory(actions);
         assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))ueu(5d977f9250977920d62c1ba1a807a6e6da830052}(sha(5d977f9250977920d62c1ba1a807a6e6da830052node_idEC_kwDOAjP5fdoAKDVkOTc3ZjkyNTA5Nzc5MjBkNjJjMWJhMWE4MDdhNmU2ZGE4MzAwNTIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-03T14:52:26Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-07-03T14:52:26Zumessage8Merge branch 'develop' into jkong/antithesis-range-two-4tree}(j  (7d0c2a75ef46fb3704ed35b44acc05a786bb0bd2url`https://api.github.com/repos/palantir/atlasdb/git/trees/7d0c2a75ef46fb3704ed35b44acc05a786bb0bd2uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5d977f9250977920d62c1ba1a807a6e6da830052
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSi4KwACgkQTLdFKain
zjyI6wgAhCHBM6XafT2ZLGYhIduPvpW3B5ru8cCIhVtNypHL532OF6WnWTJr2Ot/
SCfDsWvUlasVv5VoBNNX3saHeozrSR8uCpx9eL6D+5/3wQMkKQ1SDMbUdqETT63l
hDqrJZJRyaIs6zF9XmKkq9wUmEFatihh3n5e0/AP2uQtDAS0Kh7CfmVdIWZkHmdC
RahKWPKtbeMSrx2oX25YwnTbJ3rqYHHpSHJ+d/01NlUe40BtRc52UKLPMMR3Js+7
28ddwOhjjwK9aIjKnSZaTBLX6AVppoob67LlbUr52eaSJYC8kquanZPQrt0zu3br
8JTf4vDbXXDpllvzTycGW2ja+N+Yvw==
=Cg2Q
-----END PGP SIGNATURE-----payloadX=  tree 7d0c2a75ef46fb3704ed35b44acc05a786bb0bd2
parent 767ed7851feaefcd212104e0aa7b899cd8f207b7
parent 8d65a011e35cfff9bbdb38ad706cc252b977467b
author Jeremy Kong <jkong@palantir.com> 1688395946 +0100
committer Jeremy Kong <jkong@palantir.com> 1688395946 +0100

Merge branch 'develop' into jkong/antithesis-range-two-4
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/5d977f9250977920d62c1ba1a807a6e6da830052html_urlShttps://github.com/palantir/atlasdb/commit/5d977f9250977920d62c1ba1a807a6e6da830052comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5d977f9250977920d62c1ba1a807a6e6da830052/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(jÞ  
jeremyk-91jŞ  JZ j  MDQ6VXNlcjU5NTU1MTA=jǞ  3https://avatars.githubusercontent.com/u/5955510?v=4jɞ  h5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91j̞  1https://api.github.com/users/jeremyk-91/followersjΞ  >https://api.github.com/users/jeremyk-91/following{/other_user}jО  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jҞ  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jԞ  5https://api.github.com/users/jeremyk-91/subscriptionsj֞  ,https://api.github.com/users/jeremyk-91/orgsj؞  -https://api.github.com/users/jeremyk-91/reposjڞ  8https://api.github.com/users/jeremyk-91/events{/privacy}jܞ  7https://api.github.com/users/jeremyk-91/received_eventsjޞ  Userj  uparents](}(j  (767ed7851feaefcd212104e0aa7b899cd8f207b7j  ^https://api.github.com/repos/palantir/atlasdb/commits/767ed7851feaefcd212104e0aa7b899cd8f207b7j  Shttps://github.com/palantir/atlasdb/commit/767ed7851feaefcd212104e0aa7b899cd8f207b7u}(j  (8d65a011e35cfff9bbdb38ad706cc252b977467bj  ^https://api.github.com/repos/palantir/atlasdb/commits/8d65a011e35cfff9bbdb38ad706cc252b977467bj  Shttps://github.com/palantir/atlasdb/commit/8d65a011e35cfff9bbdb38ad706cc252b977467buestats}(totalM	additionsM	deletionsK%ufiles](}(j  (b5c7b9efcec99e2e4e3b5ccc3eb2f13e725dca1afilename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedj  K j  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=5d977f9250977920d62c1ba1a807a6e6da830052patchX8  @@ -15,8 +15,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra1
-    volumes:
-      - /opt/config/volumes/cassandra1:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
@@ -35,8 +33,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra2
-    volumes:
-      - /opt/config/volumes/cassandra2:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
@@ -55,8 +51,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra3
-    volumes:
-      - /opt/config/volumes/cassandra3:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.4u}(j  (f2fc56cca46a09c2ef718c3b7cb6b8d4000c1d8fj  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javaj  modifiedj  Kj  Kj  Kj	  https://github.com/palantir/atlasdb/blob/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj
  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=5d977f9250977920d62c1ba1a807a6e6da830052j  @@ -16,4 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-public interface InvalidWitnessedTransactionAction {}
+public interface InvalidWitnessedTransactionAction {
+    // Marker interface
+}u}(j  (284f26075e3ae1ed8320bcbc8402749af631ccddj  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javaj  modifiedj  Kj  Kj  Kj	  https://github.com/palantir/atlasdb/blob/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj
  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=5d977f9250977920d62c1ba1a807a6e6da830052j  X5  @@ -23,12 +23,15 @@
 import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
+import java.util.stream.Collectors;
 import org.immutables.value.Value;
 
 @Value.Immutable
 public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedTransactionAction {
     RowColumnRangeReadTransactionAction originalQuery();
 
+    // This is a List rather than a Set or Map because the ordering in which the columns and values are returned is
+    // important (it must match the ordering specified by the contract of row column range reads).
     List<ColumnValue> columnsAndValues();
 
     @Override
@@ -39,14 +42,15 @@ default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
     @Value.Check
     default void check() {
         Set<Integer> knownColumns = new HashSet<>();
-        for (ColumnValue columnValue : columnsAndValues()) {
-            Preconditions.checkState(
-                    !knownColumns.contains(columnValue.column()),
-                    "Duplicate column in columnsAndValues",
-                    SafeArg.of("duplicatedColumn", columnValue.column()),
-                    SafeArg.of("columnsAndValues", columnsAndValues()));
-            knownColumns.add(columnValue.column());
-        }
+        Set<Integer> duplicateColumns = columnsAndValues().stream()
+                .map(ColumnValue::column)
+                .filter(column -> !knownColumns.add(column))
+                .collect(Collectors.toSet());
+        Preconditions.checkState(
+                duplicateColumns.isEmpty(),
+                "Duplicate columns in columnsAndValues",
+                SafeArg.of("duplicateColumns", duplicateColumns),
+                SafeArg.of("columnsAndValues", columnsAndValues()));
     }
 
     static ImmutableWitnessedRowColumnRangeReadTransactionAction.Builder builder() {u}(j  (b82a1877bfa21ed5ff5d495189902a280d14ea0cj  atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javaj  modifiedj  Kj  Kj  K-j	  https://github.com/palantir/atlasdb/blob/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj  https://github.com/palantir/atlasdb/raw/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj
  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=5d977f9250977920d62c1ba1a807a6e6da830052j  Xt  @@ -20,45 +20,52 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 
 import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
 import org.junit.Test;
 
 public class WitnessedRowColumnRangeReadTransactionActionTest {
     @Test
     public void canCreateWitness() {
         assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
-                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                                .table("foo")
-                                .row(1)
-                                .columnRangeSelection(
-                                        ColumnRangeSelection.builder().build())
-                                .build())
+                .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
+                .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                        .table("foo")
+                        .row(1)
+                        .columnRangeSelection(
+                                ColumnRangeSelection.builder().build())
                         .build())
+                .build())
                 .doesNotThrowAnyException();
     }
 
     @Test
     public void cannotCreateWitnessWithDuplicateColumns() {
+        List<ColumnValue> columnsAndValues = ImmutableList.of(
+                ColumnValue.of(1, 5),
+                ColumnValue.of(5, 1),
+                ColumnValue.of(1, 3),
+                ColumnValue.of(5, 8),
+                ColumnValue.of(9, 99));
+
         assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))
-                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                                .table("foo")
-                                .row(1)
-                                .columnRangeSelection(
-                                        ColumnRangeSelection.builder().build())
-                                .build())
+                .addAllColumnsAndValues(columnsAndValues)
+                .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                        .table("foo")
+                        .row(1)
+                        .columnRangeSelection(
+                                ColumnRangeSelection.builder().build())
                         .build())
+                .build())
                 .isInstanceOf(SafeIllegalStateException.class)
-                .hasMessageContaining("Duplicate column in columnsAndValues")
+                .hasMessageContaining("Duplicate columns in columnsAndValues")
                 .hasExactlyArgs(
-                        SafeArg.of("duplicatedColumn", 1),
-                        SafeArg.of(
-                                "columnsAndValues",
-                                ImmutableList.of(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))));
+                        SafeArg.of("duplicateColumns", ImmutableSet.of(1, 5)),
+                        SafeArg.of("columnsAndValues", columnsAndValues));
     }
 }u}(j  (37e59da7fde3c443b1071e9b0c484c2da4e9f50ej  latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj  modifiedj  K'j  K j  K'j	  https://github.com/palantir/atlasdb/blob/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj  https://github.com/palantir/atlasdb/raw/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj
  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=5d977f9250977920d62c1ba1a807a6e6da830052j  Xk  @@ -37,6 +37,8 @@
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
@@ -142,6 +144,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().transientRowsConfig();
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
+        SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadNoTouchWorkflowConfiguration =
+                configuration.install().singleBusyCellReadsNoTouchConfig();
         BankBalanceWorkflowConfiguration bankBalanceConfig =
                 configuration.install().bankBalanceConfig();
         RandomWorkflowConfiguration randomWorkflowConfig =
@@ -159,6 +163,10 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
                         createSingleBusyCellWorkflowValidator(
                                 transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellReadNoTouchWorkflowValidator(
+                                transactionStoreFactory,
+                                singleBusyCellReadNoTouchWorkflowConfiguration,
+                                environment.lifecycle()),
                         createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
                         createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
 
@@ -244,6 +252,37 @@ private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
                 SerializableInvariantLogReporter.INSTANCE);
     }
 
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellReadNoTouchWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellReadNoTouchWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-read")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-write")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellReadNoTouchWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellReadNoTouchWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
     private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             RingWorkflowConfiguration workflowConfig,u      }(j  (388054e20c18c9c8d612db0e6d9ac1018b7f9b14j  atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj  modifiedj  Kj  K j  Kj	  https://github.com/palantir/atlasdb/blob/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj  https://github.com/palantir/atlasdb/raw/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj
  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=5d977f9250977920d62c1ba1a807a6e6da830052j  X)  @@ -20,6 +20,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
@@ -45,5 +46,7 @@ public interface WorkloadServerInstallConfiguration {
 
     RandomWorkflowConfiguration randomConfig();
 
+    SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadsNoTouchConfig();
+
     boolean exitAfterRunning();
 }u}(j  (da4b728986375bd8565c46e930098c1a684a145cj  Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj  modifiedj  Kj  K j  Kj	  https://github.com/palantir/atlasdb/blob/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj  https://github.com/palantir/atlasdb/raw/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj
  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=5d977f9250977920d62c1ba1a807a6e6da830052j  X  @@ -41,4 +41,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: false
\ No newline at end of fileu}(j  (50dbd20de7876d2a9cb53eef291722b8b19cd0b5j  Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj  modifiedj  Kj  K j  Kj	  https://github.com/palantir/atlasdb/blob/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj  https://github.com/palantir/atlasdb/raw/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj
  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=5d977f9250977920d62c1ba1a807a6e6da830052j  Xr  @@ -78,4 +78,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single_busy_cell_no_touch_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: trueu}(j  (7bd7f984a5ef15a2179c415620f48a0737332c43j  Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj  modifiedj  Kj  K j  Kj	  https://github.com/palantir/atlasdb/blob/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj  https://github.com/palantir/atlasdb/raw/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj
  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=5d977f9250977920d62c1ba1a807a6e6da830052j  X  @@ -42,4 +42,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: true
\ No newline at end of fileu}(j  (cfa7bb7b766851d22237ea49091b9cce6c50c789j  atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowConfiguration.javaj  addedj  K j  K j  K j	  https://github.com/palantir/atlasdb/blob/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javaj  https://github.com/palantir/atlasdb/raw/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javaj
  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.java?ref=5d977f9250977920d62c1ba1a807a6e6da830052j  Xz  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellReadNoTouchWorkflowConfiguration.TYPE)
+public interface SingleBusyCellReadNoTouchWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell-reads-no-touch";
+
+    TableConfiguration tableConfiguration();
+}u}(j  (ae852affb871f77d186c4b71ecca052b5aeeed40j  tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflows.javaj  addedj  Kjj  K j  Kjj	  https://github.com/palantir/atlasdb/blob/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaj  https://github.com/palantir/atlasdb/raw/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaj
  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.java?ref=5d977f9250977920d62c1ba1a807a6e6da830052j  X  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions. This workflow differs
+ * from the {@link SingleBusyCellWorkflows} in the way that its read transaction only does read and doesn't touch the
+ * cell with its current value or -1. This allows us to exercise the code path of read-write transaction that only do
+ * reads, which is necessary to catch bugs like sweep deleting entries under a transaction if it doesn't check for
+ * immutableTimestamp lock.
+ */
+public final class SingleBusyCellReadNoTouchWorkflows {
+    private SingleBusyCellReadNoTouchWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReads(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReads(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(
+                        txn -> txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL))))
+                .collect(Collectors.toList());
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
+    }
+}u}(j  (9002a5ed3382a35694d630c784b417cd15befa46j  hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javaj  modifiedj  Kj  Kj  Kj	  https://github.com/palantir/atlasdb/blob/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj  https://github.com/palantir/atlasdb/raw/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj
  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=5d977f9250977920d62c1ba1a807a6e6da830052j  XA  @@ -38,6 +38,7 @@
 import java.security.SecureRandom;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Objects;
 import java.util.Optional;
 import java.util.Set;
 import java.util.stream.Collectors;
@@ -141,10 +142,12 @@ private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActi
                 .orElseThrow(() -> new SafeIllegalStateException(
                         "Expected to find a read of the summary row", SafeArg.of("actions", actions)));
         WitnessedReadTransactionAction normalRowRead = readTransactionActions.stream()
-                .filter(action -> action.cell().key() != SUMMARY_ROW)
+                .filter(action -> Objects.equals(
+                                action.cell().key(), summaryRowRead.cell().column())
+                        && action.cell().column() == COLUMN)
                 .findAny()
                 .orElseThrow(() -> new SafeIllegalStateException(
-                        "Expected to find a read of a normal row", SafeArg.of("actions", actions)));
+                        "Expected to find a read of a corresponding normal row", SafeArg.of("actions", actions)));
         if (!summaryRowRead.value().equals(normalRowRead.value())) {
             return Stream.of(CrossCellInconsistency.builder()
                     .putInconsistentValues(u}(j  (ce49e27d10355fb6f5b71d88a206899b12b7f25bj  xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javaj  addedj  K}j  K j  K}j	  https://github.com/palantir/atlasdb/blob/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj  https://github.com/palantir/atlasdb/raw/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj
  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=5d977f9250977920d62c1ba1a807a6e6da830052j  X  @@ -0,0 +1,125 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Sets;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Collection;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class SingleBusyCellReadNoTouchWorkflowsTest {
+    private static final String TABLE_NAME = "busy.readnotouch.cell";
+    private static final int ITERATION_COUNT = 1_000;
+    private static final SingleBusyCellReadNoTouchWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow workflow = SingleBusyCellReadNoTouchWorkflows.create(
+            transactionStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)),
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)));
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void transactionsDoNotConflictExcessively() {
+        WorkflowHistory workflowHistory = workflow.run();
+        assertThat(workflowHistory.history()).hasSizeBetween(ITERATION_COUNT / 2, ITERATION_COUNT);
+    }
+
+    @Test
+    public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).allSatisfy(action -> assertThat(action)
+                .isInstanceOfSatisfying(WitnessedSingleCellTransactionAction.class, singleCellAction -> {
+                    assertThat(singleCellAction.table()).isEqualTo(TABLE_NAME);
+                    assertThat(singleCellAction.cell()).isEqualTo(SingleBusyCellReadNoTouchWorkflows.BUSY_CELL);
+                }));
+    }
+
+    @Test
+    public void targetCellIsReadModifiedAndDeleted() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+
+    @Test
+    public void readTransactionsDontDoWrites() {
+        WorkflowHistory workflowHistory = workflow.run();
+
+        Set<WitnessedTransaction> witnessedTransactionsWithReads = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream().anyMatch(WitnessedReadTransactionAction.class::isInstance))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> witnessedTransactionsWithWritesOrDeletes = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream()
+                        .anyMatch(action -> action instanceof WitnessedWriteTransactionAction
+                                || action instanceof WitnessedDeleteTransactionAction))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> transactionsWithReadsAndWritesOrDeletes =
+                Sets.intersection(witnessedTransactionsWithReads, witnessedTransactionsWithWritesOrDeletes);
+
+        assertThat(transactionsWithReadsAndWritesOrDeletes).isEmpty();
+    }
+}u}(j  (67649f06c0f6d4e2b55d3a069e6c8885508b4385j  latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj  modifiedj  Kxj  Kj  Kyj	  https://github.com/palantir/atlasdb/blob/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj  https://github.com/palantir/atlasdb/raw/5d977f9250977920d62c1ba1a807a6e6da830052/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj
  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=5d977f9250977920d62c1ba1a807a6e6da830052j  X  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.google.common.collect.ImmutableList;
@@ -41,8 +42,10 @@
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.stream.Collectors;
@@ -185,7 +188,123 @@ public void invariantReportsViolationsFromTransactionHistory() {
                 .build();
         invariant.accept(falseHistory, reference::set);
 
-        assertThat(reference.get()).hasSize(ITERATION_COUNT - 1);
+        assertThat(reference.get())
+                .hasSize(ITERATION_COUNT - 1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
+        WitnessedReadTransactionAction readWitness = WitnessedReadTransactionAction.of(
+                TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of the summary row")
+                .hasExactlyArgs(SafeArg.of("actions", ImmutableList.of(readWitness)));
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCorrespondingPrimaryRow() {
+        List<WitnessedTransactionAction> actions = ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of a corresponding normal row")
+                .hasExactlyArgs(SafeArg.of("actions", actions));
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothEmpty() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions = getReadWitnessesForSingleTransaction(
+                2, Optional.of(TransientRowsWorkflows.VALUE), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsPresentAndPrimaryIsAbsent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.of(TransientRowsWorkflows.VALUE), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsAbsentAndPrimaryIsPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    private ImmutableWorkflowHistory getWorkflowHistory(List<WitnessedTransactionAction> actions) {
+        return ImmutableWorkflowHistory.builder()
+                .transactionStore(transactionStore)
+                .history(ImmutableList.of(ImmutableFullyWitnessedTransaction.builder()
+                        .addAllActions(actions)
+                        .startTimestamp(0L)
+                        .commitTimestamp(1L)
+                        .build()))
+                .build();
+    }
+
+    private static List<WitnessedTransactionAction> getReadWitnessesForSingleTransaction(
+            int columnIndex, Optional<Integer> summaryValue, Optional<Integer> primaryValue) {
+        return ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, columnIndex),
+                        summaryValue),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(columnIndex, TransientRowsWorkflows.COLUMN),
+                        primaryValue));
+    }
+
+    private static void inconsistencyInvolvesPairOfPrimaryAndSummaryCells(CrossCellInconsistency inconsistency) {
+        Map<TableAndWorkloadCell, Optional<Integer>> readValues = inconsistency.inconsistentValues();
+        TableAndWorkloadCell summaryCell = readValues.keySet().stream()
+                .filter(tableAndWorkloadCell -> tableAndWorkloadCell.cell().key() == TransientRowsWorkflows.SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of the summary row", SafeArg.of("readValues", readValues)));
+        TableAndWorkloadCell primaryCell = getPrimaryCellForSummaryCell(summaryCell);
+
+        assertThat(readValues.keySet()).containsExactlyInAnyOrder(summaryCell, primaryCell);
+        assertThat(readValues.values())
+                .containsExactlyInAnyOrder(Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+    }
+
+    // This workflow uses a single table, where the summary row's columns correspond to rows with primary values.
+    private static TableAndWorkloadCell getPrimaryCellForSummaryCell(TableAndWorkloadCell summaryCell) {
+        return TableAndWorkloadCell.of(
+                summaryCell.tableName(),
+                ImmutableWorkloadCell.of(summaryCell.cell().column(), TransientRowsWorkflows.COLUMN));
     }
 
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(u}(j  (351dc558cfb12f3027ca880f55c00742ee516cbdj   changelog/0.870.0/pr-6613.v2.ymlj  addedj  Kj  K j  Kj	  vhttps://github.com/palantir/atlasdb/blob/5d977f9250977920d62c1ba1a807a6e6da830052/changelog%2F0.870.0%2Fpr-6613.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/5d977f9250977920d62c1ba1a807a6e6da830052/changelog%2F0.870.0%2Fpr-6613.v2.ymlj
  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.870.0%2Fpr-6613.v2.yml?ref=5d977f9250977920d62c1ba1a807a6e6da830052j  @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: There now exists an Antithesis workflow that exercises read-write transactions
+    that only do reads.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6613ueu(e822564137fd950a66e9ec863f7b8b864c1fc9d2}(sha(e822564137fd950a66e9ec863f7b8b864c1fc9d2node_idEC_kwDOAjP5fdoAKGU4MjI1NjQxMzdmZDk1MGE2NmU5ZWM4NjNmN2I4Yjg2NGMxZmM5ZDIcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-08-15T17:32:59Zu	committer}(j  GitHubj  noreply@github.comj  2023-08-15T17:32:59Zumessage%Excavator:  Format Java files (#6694)tree}(j  (92cefd49607db55a71b848cb92579096c10dc831url`https://api.github.com/repos/palantir/atlasdb/git/trees/92cefd49607db55a71b848cb92579096c10dc831uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e822564137fd950a66e9ec863f7b8b864c1fc9d2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk27bLCRBK7hj4Ov3rIwAA+RIIAEAH/7T6dQZCCf9leXIx5Y65
KsJ9XHruTih1a7uWc+TxED2trrzjfaRAoguisYp14d+UOZhz8LVVDurupd22Z3+L
9q0w3iOrYAkaj7d5ZViUQcEybjXIABb2nd25+7nE4Gzht+f6I2IMc5/0cEKU4f3x
fvIKtIHpxVVXP0IJdgcnUlFmVLGbQ0I43FEPw1lrPxosspLuWsvkAXZVUtkvDe6X
beJhAjab14Nm8/vUlrmcbjkbYowFiXWLwakbRD/91LuityMbWX0K74VrTF/iUVpG
JxgZIqwzb5XQmF7PRsleNMdR8HJ7Rqy5ycucqD0cIoh/ezHCdMrgtoYrOEO8nH8=
=fszC
-----END PGP SIGNATURE-----
payloadX  tree 92cefd49607db55a71b848cb92579096c10dc831
parent 4c56a0fe53d8323106ccb416245523463e5bcb79
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1692120779 -0700
committer GitHub <noreply@github.com> 1692120779 +0000

Excavator:  Format Java files (#6694)

 uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/e822564137fd950a66e9ec863f7b8b864c1fc9d2html_urlShttps://github.com/palantir/atlasdb/commit/e822564137fd950a66e9ec863f7b8b864c1fc9d2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e822564137fd950a66e9ec863f7b8b864c1fc9d2/commentsj  }(loginsvc-excavator-botidJj  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j  .https://api.github.com/users/svc-excavator-botj  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsjß  +https://api.github.com/users/web-flow/reposjş  6https://api.github.com/users/web-flow/events{/privacy}jǟ  5https://api.github.com/users/web-flow/received_eventsjɟ  Userj˟  uparents]}(j  (4c56a0fe53d8323106ccb416245523463e5bcb79j  ^https://api.github.com/repos/palantir/atlasdb/commits/4c56a0fe53d8323106ccb416245523463e5bcb79j  Shttps://github.com/palantir/atlasdb/commit/4c56a0fe53d8323106ccb416245523463e5bcb79uastats}(totalK	additionsK	deletionsKufiles]}(j  (037ef39a3092161cfa98a70b59b4823ba704c0e8filenamebuild.gradlestatusmodifiedj  Kj  KchangesKblob_url^https://github.com/palantir/atlasdb/blob/e822564137fd950a66e9ec863f7b8b864c1fc9d2/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/e822564137fd950a66e9ec863f7b8b864c1fc9d2/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=e822564137fd950a66e9ec863f7b8b864c1fc9d2patchXw  @@ -17,7 +17,7 @@ buildscript {
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.34.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.35.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.22.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
         classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.4'uau(af64557b6dd0cc5c022c8d42978287945b280d9e}(sha(af64557b6dd0cc5c022c8d42978287945b280d9enode_idEC_kwDOAjP5fdoAKGFmNjQ1NTdiNmRkMGNjNWMwMjJjOGQ0Mjk3ODI4Nzk0NWIyODBkOWUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-03T09:45:52Zu	committer}(j  
Sam Kramerj  skramer@palantir.comj  2023-05-05T12:20:25Zumessageclarify commenttree}(j  (078b1a990315fc7c683333ed387f27ecdfb4810burl`https://api.github.com/repos/palantir/atlasdb/git/trees/078b1a990315fc7c683333ed387f27ecdfb4810buj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/af64557b6dd0cc5c022c8d42978287945b280d9e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRU9IkACgkQmPPOpKR4
XS1GqQf+LHng6nQ5fPgYXXcpy/Ov8qQPYT+8nPf1HZ6BxIbg+w9BuwamYF251Niq
q7V4djUQEFrMcOmMavS/qXGXnfEB2pchVVhaiYygQcXSMrnLiaPm63TxWt7FVODT
uClfmEb3RywlWz/vZJu/mnyJF0p8U8Q/rO8kQzL5HADJxgTwUSgJs8yKRE8+JMqE
n9FR24FuhSkTOnnuD2cbq1Xkrh0NdvUH+cUstbGV08oVxV8QtxtM7fFdYvTWygf3
5uL8Y3MeFnTGdSz53fv4kxPVj3oz9VnpZ5KUOwkktZnmRFU4unbwGGGOCRDvbPY8
UhhvMsVsFKpunuu2tiSTKlLmvTF5Dw==
=35p2
-----END PGP SIGNATURE-----payloadtree 078b1a990315fc7c683333ed387f27ecdfb4810b
parent 06eb60ccf097791ce667cf2c60bf7b7f89e680df
author Sam Kramer <skramer@palantir.com> 1683107152 +0100
committer Sam Kramer <skramer@palantir.com> 1683289225 +0100

clarify comment
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/af64557b6dd0cc5c022c8d42978287945b280d9ehtml_urlShttps://github.com/palantir/atlasdb/commit/af64557b6dd0cc5c022c8d42978287945b280d9ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/af64557b6dd0cc5c022c8d42978287945b280d9e/commentsj   }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj   https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j%  
Sam-Kramerj'  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=j)  3https://avatars.githubusercontent.com/u/6238814?v=4j+  h5j  'https://api.github.com/users/Sam-Kramerj   https://github.com/Sam-Kramerj.  1https://api.github.com/users/Sam-Kramer/followersj0  >https://api.github.com/users/Sam-Kramer/following{/other_user}j2  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j4  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j6  5https://api.github.com/users/Sam-Kramer/subscriptionsj8  ,https://api.github.com/users/Sam-Kramer/orgsj:  -https://api.github.com/users/Sam-Kramer/reposj<  8https://api.github.com/users/Sam-Kramer/events{/privacy}j>  7https://api.github.com/users/Sam-Kramer/received_eventsj@  UserjB  uparents]}(j  (06eb60ccf097791ce667cf2c60bf7b7f89e680dfj  ^https://api.github.com/repos/palantir/atlasdb/commits/06eb60ccf097791ce667cf2c60bf7b7f89e680dfj   Shttps://github.com/palantir/atlasdb/commit/06eb60ccf097791ce667cf2c60bf7b7f89e680dfuastats}(totalK	additionsK	deletionsKufiles]}(j  (7a7e96879c9d029ece4e0cb9922a515234507665filenameKatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/Buggify.javastatusmodifiedj\  Kj]  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/af64557b6dd0cc5c022c8d42978287945b280d9e/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaraw_urlhttps://github.com/palantir/atlasdb/raw/af64557b6dd0cc5c022c8d42978287945b280d9e/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.java?ref=af64557b6dd0cc5c022c8d42978287945b280d9epatchX  @@ -31,10 +31,7 @@ public interface Buggify {
 
     /**
      * Returns true if this instance of buggify would perform an action if {@link #run Run} would execute the
-     * provided runnable. This is useful if you
-     * wish to
-     * produce
-     * a boolean that will be skewed towards true or false (i.e. not 50%).
+     * provided runnable. This is useful if you wish to produce a boolean that will be skewed towards true or false.
      */
     boolean asBoolean();
 }uau(e3490f89586d7dbec2e831e4c5a5121a329d23e9}(sha(e3490f89586d7dbec2e831e4c5a5121a329d23e9node_idEC_kwDOAjP5fdoAKGUzNDkwZjg5NTg2ZDdkYmVjMmU4MzFlNGM1YTUxMjFhMzI5ZDIzZTkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-21T00:18:14Zu	committer}(jy  
Ahmed Alouanej{  aalouane@palantir.comj}  2023-04-21T00:18:14Zumessage5(a) build with 2xlarge (b) shouldRetry all the thingstree}(jq  (4200463c38f09819ee9c76795aa0822058f94900url`https://api.github.com/repos/palantir/atlasdb/git/trees/4200463c38f09819ee9c76795aa0822058f94900uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e3490f89586d7dbec2e831e4c5a5121a329d23e9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRB1kYACgkQPlMHVIT1
yho8JggAiCOb4ZTDWPES/PeWRsurkMvEmtYiPhokxZH3bMmpQ4nclrnvR4bj4KJN
5y1X2Lp1Mo3Iy+qT7wWmysfwmCF7zzfYHtcGNvYtJClTzJgRv9CglcL/q0NG0cOT
C5PDa856YLV4ngWX3OShwQ33iU02+pDywdHx/Uc1hHLk4/FdytnHGVHN8yAETnsb
CP6tZljURFUi4nN4++x07I3mDSFWEj0dvBUW6FzxtRbcizxy/eRXiNDYYB+CgRJt
/PcWIjAC7Dr3R6h07Zgl7kFBwOdtp5S1jaW00scOY7pYF3sdbyXjfj2KWWdYu8os
mUtBHmNRL1dDJnbHBYZR2DYDp+HnSA==
=Zpgg
-----END PGP SIGNATURE-----payloadX  tree 4200463c38f09819ee9c76795aa0822058f94900
parent 189103902673322c071d2f23072c43ce74dddfb1
author Ahmed Alouane <aalouane@palantir.com> 1682036294 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682036294 +0100

(a) build with 2xlarge (b) shouldRetry all the things
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/e3490f89586d7dbec2e831e4c5a5121a329d23e9html_urlShttps://github.com/palantir/atlasdb/commit/e3490f89586d7dbec2e831e4c5a5121a329d23e9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e3490f89586d7dbec2e831e4c5a5121a329d23e9/commentsjw  }(loginergo14idJjs  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j  ergo14j  Jjs  MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j  h5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14j  -https://api.github.com/users/ergo14/followersj  :https://api.github.com/users/ergo14/following{/other_user}j  3https://api.github.com/users/ergo14/gists{/gist_id}j  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j  1https://api.github.com/users/ergo14/subscriptionsj  (https://api.github.com/users/ergo14/orgsj  )https://api.github.com/users/ergo14/reposj  4https://api.github.com/users/ergo14/events{/privacy}j  3https://api.github.com/users/ergo14/received_eventsj  Userj  uparents]}(jq  (189103902673322c071d2f23072c43ce74dddfb1j  ^https://api.github.com/repos/palantir/atlasdb/commits/189103902673322c071d2f23072c43ce74dddfb1j  Shttps://github.com/palantir/atlasdb/commit/189103902673322c071d2f23072c43ce74dddfb1uastats}(totalK	additionsK	deletionsK ufiles]}(jq  (f693fc9eb1abd160b6ecbcee594e2ec6b096ec68filenamectimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchValueIntegrationTest.javastatusmodifiedjӠ  KjԠ  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/e3490f89586d7dbec2e831e4c5a5121a329d23e9/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e3490f89586d7dbec2e831e4c5a5121a329d23e9/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.java?ref=e3490f89586d7dbec2e831e4c5a5121a329d23e9patchX5  @@ -128,6 +128,7 @@ public void before() {
         LockWatchIntegrationTestUtilities.awaitTableWatched(txnManager, TABLE_REF);
     }
 
+    @ShouldRetry
     @Test
     public void readOnlyTransactionsDoNotUseCaching() {
         putValue();
@@ -142,6 +143,7 @@ public void readOnlyTransactionsDoNotUseCaching() {
         });
     }
 
+    @ShouldRetry
     @Test
     public void effectivelyReadOnlyTransactionsPublishValuesToCentralCache() {
         putValue();
@@ -170,6 +172,7 @@ public void effectivelyReadOnlyTransactionsPublishValuesToCentralCache() {
         assertThat(result).containsExactlyInAnyOrderEntriesOf(result2);
     }
 
+    @ShouldRetry
     @Test
     public void readWriteTransactionsPublishValuesToCentralCache() {
         putValue();
@@ -196,6 +199,7 @@ public void readWriteTransactionsPublishValuesToCentralCache() {
         assertThat(result).containsExactlyInAnyOrderEntriesOf(result2);
     }
 
+    @ShouldRetry
     @Test
     public void serializableTransactionsThrowOnCachedReadWriteConflicts() {
         putValue();
@@ -217,6 +221,7 @@ public void serializableTransactionsThrowOnCachedReadWriteConflicts() {
                 .hasMessageContaining("There was a read-write conflict on table");
     }
 
+    @ShouldRetry
     @Test
     public void serializableTransactionsDoNotThrowWhenOverwritingAPreviouslyCachedValue() {
         putValue();
@@ -230,6 +235,7 @@ public void serializableTransactionsDoNotThrowWhenOverwritingAPreviouslyCachedVa
                 .doesNotThrowAnyException();
     }
 
+    @ShouldRetry
     @Test
     public void serializableTransactionsReadViaTheCacheForConflictChecking() {
         putValue();
@@ -245,6 +251,7 @@ public void serializableTransactionsReadViaTheCacheForConflictChecking() {
         });
     }
 
+    @ShouldRetry
     @Test
     public void putsCauseInvalidationsInSubsequentTransactions() {
         putValue();
@@ -274,6 +281,7 @@ public void putsCauseInvalidationsInSubsequentTransactions() {
         });
     }
 
+    @ShouldRetry
     @Test
     public void leaderElectionFlushesCache() {
         putValue();
@@ -285,6 +293,7 @@ public void leaderElectionFlushesCache() {
         readValueAndAssertLoadedFromRemote();
     }
 
+    @ShouldRetry
     @Test
     public void leaderElectionDuringReadOnlyTransactionDoesNotCauseItToFail() {
         putValue();
@@ -321,6 +330,7 @@ public void leaderElectionDuringReadOnlyTransactionDoesNotCauseItToFail() {
         });
     }
 
+    @ShouldRetry
     @Test
     public void leaderElectionDuringWriteTransactionCausesTransactionToRetry() {
         putValue();
@@ -349,6 +359,7 @@ public void leaderElectionDuringWriteTransactionCausesTransactionToRetry() {
         });
     }
 
+    @ShouldRetry
     @Test
     public void failedValidationCausesNoOpCacheToBeUsed() {
         createTransactionManager(1.0);
@@ -372,6 +383,7 @@ public void failedValidationCausesNoOpCacheToBeUsed() {
         });
     }
 
+    @ShouldRetry
     @Test
     public void getRowsCachedValidatesCorrectly() {
         createTransactionManager(1.0);
@@ -420,6 +432,7 @@ public void getRowsCachedValidatesCorrectly() {
         assertThat(ByteArrayUtilities.areRowResultsEqual(remoteRead, cacheRead)).isTrue();
     }
 
+    @ShouldRetry
     @Test
     public void getRowsUsesCacheAsExpected() {
         txnManager.runTaskThrowOnConflict(txn -> {
@@ -468,6 +481,7 @@ public void getRowsUsesCacheAsExpected() {
         });
     }
 
+    @ShouldRetry
     @Test
     public void nearbyCommitsDoNotAffectResultsPresentInCache() {
         createTransactionManager(1.0);
@@ -498,6 +512,7 @@ public void nearbyCommitsDoNotAffectResultsPresentInCache() {
                 .doesNotThrowAnyException();
     }
 
+    @ShouldRetry
     @Test
     public void lateAbortingTransactionDoesNotFlushValuesToCentralCache() {
         txnManager.runTaskThrowOnConflict(txn -> {uau(ede77397056bd705464e548168bd95407c287a9c}(sha(ede77397056bd705464e548168bd95407c287a9cnode_idEC_kwDOAjP5fdoAKGVkZTc3Mzk3MDU2YmQ3MDU0NjRlNTQ4MTY4YmQ5NTQwN2MyODdhOWMcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-25T12:46:52Zu	committer}(j  
Ahmed Alouanej  aalouane@palantir.comj  2023-05-25T12:46:52Zumessagemove overloaded methodtree}(j  (230a468cc1992c7cfce3dbdbf891589b623c2389url`https://api.github.com/repos/palantir/atlasdb/git/trees/230a468cc1992c7cfce3dbdbf891589b623c2389uj   bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ede77397056bd705464e548168bd95407c287a9c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRvWLwACgkQPlMHVIT1
yhp1Ewf/ZgxK/jFz61cLFEuHhiHSZvPThTbKMBqeeCqyF473B+R8FXxMCUwfeWNA
Qyt6wsQ8kpQKlOaO4lpdRQRSgCnLevNpYiUaiMw8uXGpP+dWrSnXmoSHTeDRFY71
aM2xb1+7ZZhqMv+CSCE8Cskmfpl4bsK4T7ww/jtqJBSSqks2B1fz9RqgaeI+mGDS
q1FD0MnJkaketFBqdSFTxtUldP26sQFxocIa0kKrtzcqOkpFHwEfNSnA8idh6PZi
DLY9CJ4OvjVNPw7UIs4Dj85qBGYMMY4Q8KTrRHHU0h+mAw/2cI9X3I6gCrmNqH4E
6VvsjEmQ7NZU+Tia0W1gfqngyLlYUg==
=CoY6
-----END PGP SIGNATURE-----payloadtree 230a468cc1992c7cfce3dbdbf891589b623c2389
parent fc603e454bd736bdbc4585d62bf87fd90acff87a
author Ahmed Alouane <aalouane@palantir.com> 1685018812 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1685018812 +0100

move overloaded method
uuj   ^https://api.github.com/repos/palantir/atlasdb/commits/ede77397056bd705464e548168bd95407c287a9chtml_urlShttps://github.com/palantir/atlasdb/commit/ede77397056bd705464e548168bd95407c287a9ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ede77397056bd705464e548168bd95407c287a9c/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j   #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j  ergo14j  Jj  MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j  h5j   #https://api.github.com/users/ergo14j  https://github.com/ergo14j  -https://api.github.com/users/ergo14/followersj  :https://api.github.com/users/ergo14/following{/other_user}j   3https://api.github.com/users/ergo14/gists{/gist_id}j"  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j$  1https://api.github.com/users/ergo14/subscriptionsj&  (https://api.github.com/users/ergo14/orgsj(  )https://api.github.com/users/ergo14/reposj*  4https://api.github.com/users/ergo14/events{/privacy}j,  3https://api.github.com/users/ergo14/received_eventsj.  Userj0  uparents]}(j  (fc603e454bd736bdbc4585d62bf87fd90acff87aj   ^https://api.github.com/repos/palantir/atlasdb/commits/fc603e454bd736bdbc4585d62bf87fd90acff87aj  Shttps://github.com/palantir/atlasdb/commit/fc603e454bd736bdbc4585d62bf87fd90acff87auastats}(totalK'	additionsK	deletionsKufiles]}(j  (d75acaaf83aac14ae056e3c9a9e3027a09014c59filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedjJ  KjK  KchangesK'blob_urlhttps://github.com/palantir/atlasdb/blob/ede77397056bd705464e548168bd95407c287a9c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ede77397056bd705464e548168bd95407c287a9c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=ede77397056bd705464e548168bd95407c287a9cpatchXO  @@ -575,25 +575,6 @@ private Iterator<Map.Entry<Cell, byte[]>> getSortedColumnsLocalWrites(
                 cellComparator);
     }
 
-    @VisibleForTesting
-    static void reportExpectationsCollectedData(
-            ExpectationsAwareTransaction transaction, ExpectationsMetrics metrics, boolean isStillRunning) {
-        if (isStillRunning) {
-            log.error("reportExpectationsCollectedData is called on an in-progress transaction");
-            return;
-        }
-
-        long ageMillis = transaction.getAgeMillis();
-        TransactionReadInfo info = transaction.getReadInfo();
-
-        metrics.ageMillis().update(ageMillis);
-        metrics.bytesRead().update(info.bytesRead());
-        metrics.kvsCalls().update(info.kvsCalls());
-
-        info.maximumBytesKvsCallInfo()
-                .ifPresent(kvsCallReadInfo -> metrics.worstKvsBytesRead().update(kvsCallReadInfo.bytesRead()));
-    }
-
     /**
      * Provides comparator to sort cells by columns (sorted lexicographically on byte ordering) and then in the order
      * of input rows.
@@ -2628,6 +2609,26 @@ public void reportExpectationsCollectedData() {
         reportExpectationsCollectedData(this, expectationsDataCollectionMetrics, isStillRunning());
     }
 
+    @VisibleForTesting
+    static void reportExpectationsCollectedData(
+            ExpectationsAwareTransaction transaction, ExpectationsMetrics metrics, boolean isStillRunning) {
+        if (isStillRunning) {
+            log.error("reportExpectationsCollectedData is called on an in-progress transaction");
+            return;
+        }
+
+        long ageMillis = transaction.getAgeMillis();
+        TransactionReadInfo info = transaction.getReadInfo();
+
+        metrics.ageMillis().update(ageMillis);
+        metrics.bytesRead().update(info.bytesRead());
+        metrics.kvsCalls().update(info.kvsCalls());
+
+        info.maximumBytesKvsCallInfo()
+                .ifPresent(kvsCallReadInfo -> metrics.worstKvsBytesRead().update(kvsCallReadInfo.bytesRead()));
+    }
+
+
     private long getStartTimestamp() {
         return startTimestamp.get();
     }uau(f8058b97c4bc8582fbe6d95a58e8bf93a729cdd5}(sha(f8058b97c4bc8582fbe6d95a58e8bf93a729cdd5node_idEC_kwDOAjP5fdoAKGY4MDU4Yjk3YzRiYzg1ODJmYmU2ZDk1YTU4ZThiZjkzYTcyOWNkZDUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-28T13:04:46Zu	committer}(jg  
Sam Kramerji  skramer@palantir.comjk  2023-04-28T13:04:46Zumessagebuggifytree}(j_  (2872ad490e357bbdc38bffb24afc5e8368bcb6e9url`https://api.github.com/repos/palantir/atlasdb/git/trees/2872ad490e357bbdc38bffb24afc5e8368bcb6e9ujw  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f8058b97c4bc8582fbe6d95a58e8bf93a729cdd5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRLxG4ACgkQmPPOpKR4
XS1/jQf9HlWCh3Z/fp08eDgEX/6qrJgUUHCfRwRw1tTx04Th79irEPVYFdxJKKJI
XaAhwYU5LoYYCCNcW69SA1H+NJ2ZzRWR60CJgbxX53eSYE8vpOd9ua8F16P77FDO
nrUQr1bIIzWwC0tTzEDqSGKiLphw47C217OVNsa3w6b6TfubAS7M4fPa+S2d6csW
5loKttlDL+ddmkSyxHwxPN+iURKhPv6qz/q2iRIuvT+F1NYokOD93J0/0shmnXFJ
fQFD/1nDx+XQK5+Dd1sqamhpEUbnSYsCa19aoO6lvZTV6e8oXBy8p4HxPDUi9jnc
1r7qBT72RsvJnXXb3KjlqKY1h34/9Q==
=hy3h
-----END PGP SIGNATURE-----payloadtree 2872ad490e357bbdc38bffb24afc5e8368bcb6e9
parent 2bf70bb4ec0daecd75eb3255d01e41afb2b1c547
author Sam Kramer <skramer@palantir.com> 1682687086 +0100
committer Sam Kramer <skramer@palantir.com> 1682687086 +0100

buggify
uujw  ^https://api.github.com/repos/palantir/atlasdb/commits/f8058b97c4bc8582fbe6d95a58e8bf93a729cdd5html_urlShttps://github.com/palantir/atlasdb/commit/f8058b97c4bc8582fbe6d95a58e8bf93a729cdd5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f8058b97c4bc8582fbe6d95a58e8bf93a729cdd5/commentsje  }(login
Sam-KrameridJ^2_ ja  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jw  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujm  }(j  
Sam-Kramerj  J^2_ ja  MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j  h5jw  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj  1https://api.github.com/users/Sam-Kramer/followersj  >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j  5https://api.github.com/users/Sam-Kramer/subscriptionsj  ,https://api.github.com/users/Sam-Kramer/orgsj  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj  uparents]}(j_  (2bf70bb4ec0daecd75eb3255d01e41afb2b1c547jw  ^https://api.github.com/repos/palantir/atlasdb/commits/2bf70bb4ec0daecd75eb3255d01e41afb2b1c547j  Shttps://github.com/palantir/atlasdb/commit/2bf70bb4ec0daecd75eb3255d01e41afb2b1c547uastats}(totalK	additionsK	deletionsKufiles]}(j_  (471da5c6544158fa92a310bfd507010930ddbc45filenameBlock-api/src/main/java/com/palantir/lock/client/LockRefresher.javastatusmodifiedj  Kj¡  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/f8058b97c4bc8582fbe6d95a58e8bf93a729cdd5/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FLockRefresher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f8058b97c4bc8582fbe6d95a58e8bf93a729cdd5/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FLockRefresher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FLockRefresher.java?ref=f8058b97c4bc8582fbe6d95a58e8bf93a729cdd5patchX  @@ -134,9 +134,9 @@ public void registerLocks(Collection<T> tokens) {
     }
 
     public void registerLocks(Collection<T> tokens, ClientLockingOptions lockingOptions) {
-        tokens = buggify.maybe(0.10)
-                .map(() -> tokens.stream().filter(Random::nextBoolean).collect(Collectors.toCollection()));
-        tokens.forEach(token -> tokensToClientContext.put(
+        Collection<T> filteredTokens = buggify.maybe(0.10)
+                .map(() -> tokens.stream().filter(Random::nextBoolean).collect(Collectors.toList()));
+        filteredTokens.forEach(token -> tokensToClientContext.put(
                 token,
                 ImmutableClientLockingContext.builder()
                         .lockRefreshDeadline(lockingOptionsuau(fa872ce2c305827598d58580fee5aa3866d92b93}(sha(fa872ce2c305827598d58580fee5aa3866d92b93node_idEC_kwDOAjP5fdoAKGZhODcyY2UyYzMwNTgyNzU5OGQ1ODU4MGZlZTVhYTM4NjZkOTJiOTMcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-23T21:56:29Zu	committer}(jޡ  
Ahmed Alouanej  aalouane@palantir.comj  2023-04-23T21:56:29Zumessageretry flaky teststree}(j֡  (84a1ff98d550c91ab8c24942059d8f9e568fb44eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/84a1ff98d550c91ab8c24942059d8f9e568fb44euj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fa872ce2c305827598d58580fee5aa3866d92b93
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRFqY4ACgkQPlMHVIT1
yhrDzwgArzLIyMMj4dPYvgWDRdPfjKmgROhLFzkBLdTIZmpSskqIGHusEcu8G+rU
eGRq26HJqRR4kxbtrtMAMahMMMq8e/rzEQnERJuLOy5LHu5nsPfeJdhJOb+YgD2M
Rc9fI6GR8gyiFfGa6efgL2nDwFshlAkz0CJ9apmzmN+tRfRlFDa5u7Bn/hGKBknI
Ty3f9cdDRNr2pFSE3P/V/+f278vcxhOlfJnI3AY46JrC6AXqaok2Mor6v22JESGp
9qf2r4YoSLoBYnl76Vpw4chZ2qtJ7Xr98ktkiJ9nYSQg3kJXM/mqaMPZI0FhV9o5
KAw1U1DZR69WfVQJtJldk9dSItqJmg==
=Iade
-----END PGP SIGNATURE-----payloadtree 84a1ff98d550c91ab8c24942059d8f9e568fb44e
parent 0e042c5db32fd526cc9e1506788bee2cda4f3a43
author Ahmed Alouane <aalouane@palantir.com> 1682286989 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682286989 +0100

retry flaky tests
uug     j  ^https://api.github.com/repos/palantir/atlasdb/commits/fa872ce2c305827598d58580fee5aa3866d92b93html_urlShttps://github.com/palantir/atlasdb/commit/fa872ce2c305827598d58580fee5aa3866d92b93comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fa872ce2c305827598d58580fee5aa3866d92b93/commentsjܡ  }(loginergo14idJjء  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j  ergo14j  Jjء  MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j  h5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14j
  -https://api.github.com/users/ergo14/followersj  :https://api.github.com/users/ergo14/following{/other_user}j  3https://api.github.com/users/ergo14/gists{/gist_id}j  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j  1https://api.github.com/users/ergo14/subscriptionsj  (https://api.github.com/users/ergo14/orgsj  )https://api.github.com/users/ergo14/reposj  4https://api.github.com/users/ergo14/events{/privacy}j  3https://api.github.com/users/ergo14/received_eventsj  Userj  uparents]}(j֡  (0e042c5db32fd526cc9e1506788bee2cda4f3a43j  ^https://api.github.com/repos/palantir/atlasdb/commits/0e042c5db32fd526cc9e1506788bee2cda4f3a43j  Shttps://github.com/palantir/atlasdb/commit/0e042c5db32fd526cc9e1506788bee2cda4f3a43uastats}(totalK	additionsK	deletionsKufiles](}(j֡  (16209d4d7ab0d584ba01cb1714c9df4852781e1efilenameTatlasdb-cli/src/test/java/com/palantir/atlasdb/cli/command/TestTimestampCommand.javastatusmodifiedj8  Kj9  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/fa872ce2c305827598d58580fee5aa3866d92b93/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.javaraw_urlhttps://github.com/palantir/atlasdb/raw/fa872ce2c305827598d58580fee5aa3866d92b93/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.java?ref=fa872ce2c305827598d58580fee5aa3866d92b93patchXp  @@ -37,6 +37,7 @@
 import com.palantir.atlasdb.services.test.DaggerTestAtlasDbServices;
 import com.palantir.atlasdb.services.test.TestAtlasDbServices;
 import com.palantir.common.time.Clock;
+import com.palantir.flake.ShouldRetry;
 import com.palantir.lock.LockClient;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;
@@ -181,6 +182,7 @@ public void testWithFile() throws Exception {
         runAndVerifyCliForFile(inputFileString);
     }
 
+    @ShouldRetry
     @Test
     public void testWithFileWithDir() throws Exception {
         String inputFileString = "existing-dir/test.timestamp";u}(j֡  (f693fc9eb1abd160b6ecbcee594e2ec6b096ec68j>  ctimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchValueIntegrationTest.javaj@  modifiedj8  Kj9  KjB  KjC  https://github.com/palantir/atlasdb/blob/fa872ce2c305827598d58580fee5aa3866d92b93/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.javajE  https://github.com/palantir/atlasdb/raw/fa872ce2c305827598d58580fee5aa3866d92b93/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.javajG  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.java?ref=fa872ce2c305827598d58580fee5aa3866d92b93jI  X3  @@ -128,6 +128,7 @@ public void before() {
         LockWatchIntegrationTestUtilities.awaitTableWatched(txnManager, TABLE_REF);
     }
 
+    @ShouldRetry
     @Test
     public void readOnlyTransactionsDoNotUseCaching() {
         putValue();
@@ -142,6 +143,7 @@ public void readOnlyTransactionsDoNotUseCaching() {
         });
     }
 
+    @ShouldRetry
     @Test
     public void effectivelyReadOnlyTransactionsPublishValuesToCentralCache() {
         putValue();
@@ -170,6 +172,7 @@ public void effectivelyReadOnlyTransactionsPublishValuesToCentralCache() {
         assertThat(result).containsExactlyInAnyOrderEntriesOf(result2);
     }
 
+    @ShouldRetry
     @Test
     public void readWriteTransactionsPublishValuesToCentralCache() {
         putValue();
@@ -196,6 +199,7 @@ public void readWriteTransactionsPublishValuesToCentralCache() {
         assertThat(result).containsExactlyInAnyOrderEntriesOf(result2);
     }
 
+    @ShouldRetry
     @Test
     public void serializableTransactionsThrowOnCachedReadWriteConflicts() {
         putValue();
@@ -217,6 +221,7 @@ public void serializableTransactionsThrowOnCachedReadWriteConflicts() {
                 .hasMessageContaining("There was a read-write conflict on table");
     }
 
+    @ShouldRetry
     @Test
     public void serializableTransactionsDoNotThrowWhenOverwritingAPreviouslyCachedValue() {
         putValue();
@@ -230,6 +235,7 @@ public void serializableTransactionsDoNotThrowWhenOverwritingAPreviouslyCachedVa
                 .doesNotThrowAnyException();
     }
 
+    @ShouldRetry
     @Test
     public void serializableTransactionsReadViaTheCacheForConflictChecking() {
         putValue();
@@ -245,6 +251,7 @@ public void serializableTransactionsReadViaTheCacheForConflictChecking() {
         });
     }
 
+    @ShouldRetry
     @Test
     public void putsCauseInvalidationsInSubsequentTransactions() {
         putValue();
@@ -274,6 +281,7 @@ public void putsCauseInvalidationsInSubsequentTransactions() {
         });
     }
 
+    @ShouldRetry
     @Test
     public void leaderElectionFlushesCache() {
         putValue();
@@ -285,6 +293,7 @@ public void leaderElectionFlushesCache() {
         readValueAndAssertLoadedFromRemote();
     }
 
+    @ShouldRetry
     @Test
     public void leaderElectionDuringReadOnlyTransactionDoesNotCauseItToFail() {
         putValue();
@@ -321,6 +330,7 @@ public void leaderElectionDuringReadOnlyTransactionDoesNotCauseItToFail() {
         });
     }
 
+    @ShouldRetry
     @Test
     public void leaderElectionDuringWriteTransactionCausesTransactionToRetry() {
         putValue();
@@ -349,6 +359,7 @@ public void leaderElectionDuringWriteTransactionCausesTransactionToRetry() {
         });
     }
 
+    @ShouldRetry
     @Test
     public void failedValidationCausesNoOpCacheToBeUsed() {
         createTransactionManager(1.0);
@@ -372,6 +383,7 @@ public void failedValidationCausesNoOpCacheToBeUsed() {
         });
     }
 
+    @ShouldRetry
     @Test
     public void getRowsCachedValidatesCorrectly() {
         createTransactionManager(1.0);
@@ -420,6 +432,7 @@ public void getRowsCachedValidatesCorrectly() {
         assertThat(ByteArrayUtilities.areRowResultsEqual(remoteRead, cacheRead)).isTrue();
     }
 
+    @ShouldRetry
     @Test
     public void getRowsUsesCacheAsExpected() {
         txnManager.runTaskThrowOnConflict(txn -> {
@@ -468,6 +481,7 @@ public void getRowsUsesCacheAsExpected() {
         });
     }
 
+    @ShouldRetry
     @Test
     public void nearbyCommitsDoNotAffectResultsPresentInCache() {
         createTransactionManager(1.0);
@@ -498,6 +512,7 @@ public void nearbyCommitsDoNotAffectResultsPresentInCache() {
                 .doesNotThrowAnyException();
     }
 
+    @ShouldRetry
     @Test
     public void lateAbortingTransactionDoesNotFlushValuesToCentralCache() {
         txnManager.runTaskThrowOnConflict(txn -> {
@@ -545,7 +560,7 @@ public void lateAbortingTransactionDoesNotFlushValuesToCentralCache() {
     }
 
     @Test
-    @ShouldRetry // The test fails when trying to cache a value that is currently locked.
+    @ShouldRetry(numAttempts = 15) // The test fails when trying to cache a value that is currently locked.
     // The open question is whether this _should_ fail when there is a locked value being cached on top of, or if
     // there is a better way to handle this.
     public void valueStressTest() {ueu(4be7945e46f4c6c32fe0d819fba1d451ef1e5bcc}(sha(4be7945e46f4c6c32fe0d819fba1d451ef1e5bccnode_idEC_kwDOAjP5fdoAKDRiZTc5NDVlNDZmNGM2YzMyZmUwZDgxOWZiYTFkNDUxZWYxZTViY2Mcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-22T22:45:00Zu	committer}(j]  Jeremy Kongj_  jkong@palantir.comja  2023-02-22T22:45:00Zumessage
la campanellatree}(jU  (3192c6277e8be41aef691b7d2f710592342f0100url`https://api.github.com/repos/palantir/atlasdb/git/trees/3192c6277e8be41aef691b7d2f710592342f0100ujm  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4be7945e46f4c6c32fe0d819fba1d451ef1e5bcc
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEuTY+4bHE452z2GUfsC5B2upnoZgFAmP2muwACgkQsC5B2upn
oZjDXgf+OYQ8pCx8BmCZk5qoVj0v7A5ylLpGTfqZyluo9Vdrc/q2eob8ISGCUBo6
BCxvXePKGrelwQp+52J2RA253v4xqcE3mUfA3G0R1e3WHBU2hYPQOWTK5O/stIF7
UKU0cbzbnjWk8S1NIlN6WR21vDzr82zb5WLYb+29Tm0TxVg5CYgCV/wDAAVfhZtK
uiAo6/+zKtn75YOjpTEmslK73T8po8xD0hAO7TTLudp0I2SAT95cj4MRCsABwal0
cB6k2zy2IonCTDiZdsoRXYAwr0CNdOBOolAQtJsA/4F5pjpDHIDTWbKlkgAopr08
pL+iVk/KCkBl7AcDJhpEat6Y88s6Kg==
=hsJ1
-----END PGP SIGNATURE-----payloadtree 3192c6277e8be41aef691b7d2f710592342f0100
parent b88420e258b82530e6022008ca42e5c4cbe0b25d
author Jeremy Kong <jkong@palantir.com> 1677105900 +0000
committer Jeremy Kong <jkong@palantir.com> 1677105900 +0000

la campanella
uujm  ^https://api.github.com/repos/palantir/atlasdb/commits/4be7945e46f4c6c32fe0d819fba1d451ef1e5bcchtml_urlShttps://github.com/palantir/atlasdb/commit/4be7945e46f4c6c32fe0d819fba1d451ef1e5bcccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4be7945e46f4c6c32fe0d819fba1d451ef1e5bcc/commentsj[  }(login
jeremyk-91idJZ jW  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jm  'https://api.github.com/users/jeremyk-91j{  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujc  }(j  
jeremyk-91j  JZ jW  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5jm  'https://api.github.com/users/jeremyk-91j{  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents]}(jU  (b88420e258b82530e6022008ca42e5c4cbe0b25djm  ^https://api.github.com/repos/palantir/atlasdb/commits/b88420e258b82530e6022008ca42e5c4cbe0b25dj{  Shttps://github.com/palantir/atlasdb/commit/b88420e258b82530e6022008ca42e5c4cbe0b25duastats}(totalK	additionsK	deletionsKufiles]}(jU  (553ad07e771baca9b0f785b82615f3a485194b46filenamematlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunner.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/4be7945e46f4c6c32fe0d819fba1d451ef1e5bcc/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4be7945e46f4c6c32fe0d819fba1d451ef1e5bcc/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.java?ref=4be7945e46f4c6c32fe0d819fba1d451ef1e5bccpatchX
  @@ -47,8 +47,8 @@ public Future<List<WitnessedTransaction>> runConcurrentTransactionTask(
                 "Tasks must be run a non-negative number of times",
                 SafeArg.of("providedTaskMultiplicity", taskMultiplicity));
         List<ListenableFuture<Optional<WitnessedTransaction>>> taskFutures = IntStream.range(0, taskMultiplicity)
-                .mapToObj(index ->
-                        listeningExecutorService.submit(() -> transactionTask.apply(transactionStore, index)))
+                .mapToObj(
+                        index -> listeningExecutorService.submit(() -> transactionTask.apply(transactionStore, index)))
                 .collect(Collectors.toList());
         return Futures.transform(
                 Futures.allAsList(taskFutures),uau(b050321ad2db84750e5863b647b71b502f1867fb}(sha(b050321ad2db84750e5863b647b71b502f1867fbnode_idEC_kwDOAjP5fdoAKGIwNTAzMjFhZDJkYjg0NzUwZTU4NjNiNjQ3YjcxYjUwMmYxODY3ZmIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-03-20T15:30:15Zu	committer}(jԢ  Jeremy Kongj֢  jkong@palantir.comjآ  2023-03-20T15:30:15Zumessagefixestree}(j̢  (91ad4f36265dfc229b3402e06e5dd221b8b9abe2url`https://api.github.com/repos/palantir/atlasdb/git/trees/91ad4f36265dfc229b3402e06e5dd221b8b9abe2uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b050321ad2db84750e5863b647b71b502f1867fb
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQYfAcACgkQTLdFKain
zjxMQwgAjAf3GjDpS/XvKhnlaPtUzmVc8oJ+b7bwcsN+scBkDjomCIBc2M3P0DLY
3N19oF38p5Cls6RfVpjBcNoHRPjYjgVCXNvZHJ715JDpEwCbddQCX1lh2rJvCJgD
yD114GXEeMWSyEqnuOlasxmDdN7kfHVwtMVtgG9uH6W2V9yWogh0cr4f8PqxybWq
ujPFOyg/nfj4/cbuIdpczjIFRRrCPPKXfv7ERr/5g+eWFH18p6iSEV5MPwQC+hmu
8C9ypg68lvXA3qnrT6H+/HMDWYyY/2SloFIAjPTdFmH7UJb4nosbHx/KGkuOYHTj
fEO3yYXJpM5Q0YFOad3wcYU4RU2gSQ==
=TDJX
-----END PGP SIGNATURE-----payloadtree 91ad4f36265dfc229b3402e06e5dd221b8b9abe2
parent bbb6e9b27b123bbdd154f28434c9cd972e5f4441
author Jeremy Kong <jkong@palantir.com> 1679326215 +0000
committer Jeremy Kong <jkong@palantir.com> 1679326215 +0000

fixes
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/b050321ad2db84750e5863b647b71b502f1867fbhtml_urlShttps://github.com/palantir/atlasdb/commit/b050321ad2db84750e5863b647b71b502f1867fbcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b050321ad2db84750e5863b647b71b502f1867fb/commentsjҢ  }(login
jeremyk-91idJZ j΢  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujڢ  }(j  
jeremyk-91j  JZ j΢  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91j   1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj
  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents]}(j̢  (bbb6e9b27b123bbdd154f28434c9cd972e5f4441j  ^https://api.github.com/repos/palantir/atlasdb/commits/bbb6e9b27b123bbdd154f28434c9cd972e5f4441j  Shttps://github.com/palantir/atlasdb/commit/bbb6e9b27b123bbdd154f28434c9cd972e5f4441uastats}(totalK	additionsK	deletionsKufiles]}(j̢  (4bc5be54fe26532ca6b52d1b18be46aa4b43832dfilenamepatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javastatusmodifiedj.  Kj/  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b050321ad2db84750e5863b647b71b502f1867fb/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b050321ad2db84750e5863b647b71b502f1867fb/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=b050321ad2db84750e5863b647b71b502f1867fbpatchX2	  @@ -26,6 +26,7 @@
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
 import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
@@ -39,7 +40,7 @@
 import org.junit.Test;
 
 public class SingleRowTwoCellsWorkflowsTest {
-    private static final String TABLE_NAME = "coffee";
+    private static final String TABLE_NAME = "my.coffee";
     private static final SingleRowTwoCellsWorkflowConfiguration CONFIGURATION =
             ImmutableSingleRowTwoCellsWorkflowConfiguration.builder()
                     .tableConfiguration(ImmutableTableConfiguration.builder()
@@ -116,8 +117,8 @@ public void workflowHistoryPreservesStoreAndCapturesWitnessedActions() {
                 .run();
 
         assertThat(history.transactionStore())
-                .as("should return the provided store")
-                .isEqualTo(memoryStore);
+                .as("should return a read only tranasction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
         assertThat(Iterables.getOnlyElement(history.history()).actions())
                 .containsExactly(
                         WitnessedReadTransactionAction.of(
@@ -127,8 +128,8 @@ public void workflowHistoryPreservesStoreAndCapturesWitnessedActions() {
                         WitnessedWriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
                         WitnessedDeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
                         WitnessedReadTransactionAction.of(
-                                TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.empty()),
+                                TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.of(0)),
                         WitnessedReadTransactionAction.of(
-                                TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.of(0)));
+                                TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()));
     }
 }uau(b32a4d0540cc4d431112716aefeac82a3e28a840}(sha(b32a4d0540cc4d431112716aefeac82a3e28a840node_idEC_kwDOAjP5fdoAKGIzMmE0ZDA1NDBjYzRkNDMxMTEyNzE2YWVmZWFjODJhM2UyOGE4NDAcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-18T15:34:44Zu	committer}(jK  Jeremy KongjM  jkong@palantir.comjO  2023-05-18T15:34:44Zumessage
CR feedback 1tree}(jC  (acb0910622a6f5ffd10cfdbcb59dc8280963dd54url`https://api.github.com/repos/palantir/atlasdb/git/trees/acb0910622a6f5ffd10cfdbcb59dc8280963dd54uj[  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b32a4d0540cc4d431112716aefeac82a3e28a840
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRmRZQACgkQTLdFKain
zjyXqQf/Qh/J8WhU2nu/E8m8v9/QL8pK8TwRd7T9dh23XIKRswAElrC4XJo3280D
TzFjReKKrzb+qb5uWWH1laE/ZR/yjfoWdteeJ8GMJWpLPiUoRHDnD/hVrbrNgFLC
utyzH4w8f8H0Z/YxjgQOWnmG/znGpbRrTM/+HZffEPHH8snCqqwwTsya/1vB2EB6
wx1fUdQAJlYe0kQKuhA1uxwYERqaB0nEF3kdMAkMWKeVsX97D0CSXZlrg1PPfJsz
iR/GIoZkYZiCdkm6g8fq5KoI6p64t0w4vwx234m2wGRfIrcQnwkGHg5JwRQPq7SQ
YpuZO9OZVbYb7ENLIUzTcGFROCspTg==
=34Hz
-----END PGP SIGNATURE-----payloadtree acb0910622a6f5ffd10cfdbcb59dc8280963dd54
parent f0a43222e28c8a090c5f40e5d121b50dde3fe404
author Jeremy Kong <jkong@palantir.com> 1684424084 +0100
committer Jeremy Kong <jkong@palantir.com> 1684424084 +0100

CR feedback 1
uuj[  ^https://api.github.com/repos/palantir/atlasdb/commits/b32a4d0540cc4d431112716aefeac82a3e28a840html_urlShttps://github.com/palantir/atlasdb/commit/b32a4d0540cc4d431112716aefeac82a3e28a840comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b32a4d0540cc4d431112716aefeac82a3e28a840/commentsjI  }(login
jeremyk-91idJZ jE  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j[  'https://api.github.com/users/jeremyk-91ji  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujQ  }(jn  
jeremyk-91jp  JZ jE  MDQ6VXNlcjU5NTU1MTA=jr  3https://avatars.githubusercontent.com/u/5955510?v=4jt  h5j[  'https://api.github.com/users/jeremyk-91ji  https://github.com/jeremyk-91jw  1https://api.github.com/users/jeremyk-91/followersjy  >https://api.github.com/users/jeremyk-91/following{/other_user}j{  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j}  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents]}(jC  (f0a43222e28c8a090c5f40e5d121b50dde3fe404j[  ^https://api.github.com/repos/palantir/atlasdb/commits/f0a43222e28c8a090c5f40e5d121b50dde3fe404ji  Shttps://github.com/palantir/atlasdb/commit/f0a43222e28c8a090c5f40e5d121b50dde3fe404uastats}(totalK	additionsK	deletionsKufiles](}(jC  (e241fdc9d3a00c562a7db738e208917cb7511f83filenamehatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b32a4d0540cc4d431112716aefeac82a3e28a840/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b32a4d0540cc4d431112716aefeac82a3e28a840/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=b32a4d0540cc4d431112716aefeac82a3e28a840patchX  @@ -129,7 +129,7 @@ private static List<CrossCellInconsistency> findInconsistencyInTransactionHistor
     private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActions(
             List<WitnessedTransactionAction> actions) {
         Set<WitnessedReadTransactionAction> readTransactionActions = actions.stream()
-                .filter(action -> action instanceof WitnessedReadTransactionAction)
+                .filter(WitnessedReadTransactionAction.class::isInstance)
                 .map(action -> (WitnessedReadTransactionAction) action)
                 .collect(Collectors.toSet());
         if (readTransactionActions.size() == 0) {u}(jC  (2672c96698c08d028bce4343b4a5f14f1b43253cj  latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj  modifiedj  Kj  Kj  K	j  https://github.com/palantir/atlasdb/blob/b32a4d0540cc4d431112716aefeac82a3e28a840/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj  https://github.com/palantir/atlasdb/raw/b32a4d0540cc4d431112716aefeac82a3e28a840/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=b32a4d0540cc4d431112716aefeac82a3e28a840j  X  @@ -107,11 +107,10 @@ public void subsequentTransactionsWriteThenReadThenDelete() {
         WorkflowHistory history = transientRowsWorkflow.run();
         List<WitnessedTransaction> witnessedTransactions = history.history();
         for (int index = 1; index < ITERATION_COUNT; index++) {
-            assertThat(witnessedTransactions.get(index).actions()).hasSize(6).satisfies(actions -> {
-                assertThat(actions.subList(0, 2)).allMatch(action -> action instanceof WitnessedWriteTransactionAction);
-                assertThat(actions.subList(2, 4)).allMatch(action -> action instanceof WitnessedReadTransactionAction);
-                assertThat(actions.subList(4, 6))
-                        .allMatch(action -> action instanceof WitnessedDeleteTransactionAction);
+            assertThat(witnessedTransactions.get(index).actions()).hasSize(7).satisfies(actions -> {
+                assertThat(actions.subList(0, 2)).allMatch(WitnessedWriteTransactionAction.class::isInstance);
+                assertThat(actions.subList(2, 5)).allMatch(WitnessedReadTransactionAction.class::isInstance);
+                assertThat(actions.subList(5, 7)).allMatch(WitnessedDeleteTransactionAction.class::isInstance);
             });
         }
     }ueu(3f8d3a80dfc464896300e54e07ddb4a91baaa095}(sha(3f8d3a80dfc464896300e54e07ddb4a91baaa095node_idEC_kwDOAjP5fdoAKDNmOGQzYTgwZGZjNDY0ODk2MzAwZTU0ZTA3ZGRiNGE5MWJhYWEwOTUcommit}(author}(nameTom Petraccaemail"tpetracca@users.noreply.github.comdate2023-08-09T13:44:42Zu	committer}(jʣ  GitHubj̣  noreply@github.comjΣ  2023-08-09T13:44:42Zumessage<use default revapi config (#6701)

use default revapi configtree}(j£  (25a03eeb38b7edf9ffb63437a8f5a99cd2a13f2burl`https://api.github.com/repos/palantir/atlasdb/git/trees/25a03eeb38b7edf9ffb63437a8f5a99cd2a13f2bujڣ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3f8d3a80dfc464896300e54e07ddb4a91baaa095
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk05hKCRBK7hj4Ov3rIwAAtYsIABs9WrOYqtE5NJgoixKtfaN1
I7MxI7fGUo79v8fMErCQQ6FqlQmVR44V7+rSLrvueWQhiVO2VmJTHfs+JSrlVxoz
SML36hSBw7aVjnGWKgVg+BxQEAHoKz41JAhsM5zeRhzgm8SMnAHt6sAIktZAFKYy
BAaxdl/Jhk21V2CojfCYpVglTzQbqH/bhbemzS5OKRHio+Mpd4+0dkkYw4ddm+9+
CIOVtAnSJUK0kjXKw9UiCwJ9HDRriQpx9fViaF4+FPQppPzlGFw0RZKNWuF2Sl3s
Mt0G1CrjsebnMgd3B5lXF+WG+0usVfUjYXQtz3dJ56dIFqfR92Ep2yKDx4uxKx0=
=eh07
-----END PGP SIGNATURE-----
payloadX  tree 25a03eeb38b7edf9ffb63437a8f5a99cd2a13f2b
parent d04ff4a19366637694f234ec45ff273546be9019
author Tom Petracca <tpetracca@users.noreply.github.com> 1691588682 -0400
committer GitHub <noreply@github.com> 1691588682 +0000

use default revapi config (#6701)

use default revapi config
uujڣ  ^https://api.github.com/repos/palantir/atlasdb/commits/3f8d3a80dfc464896300e54e07ddb4a91baaa095html_urlShttps://github.com/palantir/atlasdb/commit/3f8d3a80dfc464896300e54e07ddb4a91baaa095comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3f8d3a80dfc464896300e54e07ddb4a91baaa095/commentsjȣ  }(login	tpetraccaidJ& jģ  MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5jڣ  &https://api.github.com/users/tpetraccaj  https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminujУ  }(j  web-flowj  J/jģ  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5jڣ  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj   *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj
  uparents]}(j£  (d04ff4a19366637694f234ec45ff273546be9019jڣ  ^https://api.github.com/repos/palantir/atlasdb/commits/d04ff4a19366637694f234ec45ff273546be9019j  Shttps://github.com/palantir/atlasdb/commit/d04ff4a19366637694f234ec45ff273546be9019uastats}(totalK	additionsK 	deletionsKufiles]}(j£  (1fc9ac5c4a1a439011778a07639126259a58e6c5filenameatlasdb-config/build.gradlestatusmodifiedj$  K j%  KchangesKblob_urlohttps://github.com/palantir/atlasdb/blob/3f8d3a80dfc464896300e54e07ddb4a91baaa095/atlasdb-config%2Fbuild.gradleraw_urlnhttps://github.com/palantir/atlasdb/raw/3f8d3a80dfc464896300e54e07ddb4a91baaa095/atlasdb-config%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fbuild.gradle?ref=3f8d3a80dfc464896300e54e07ddb4a91baaa095patch@@ -87,7 +87,3 @@ dependencies {
     // Needed for Jersey Response-based tests
     testImplementation 'org.glassfish.jersey.core:jersey-common'
 }
-
-revapi {
-    oldVersion = '0.909.0'
-}uau(60ae7d960a51e17aac35388cce34c1efd815c287}(sha(60ae7d960a51e17aac35388cce34c1efd815c287node_idEC_kwDOAjP5fdoAKDYwYWU3ZDk2MGE1MWUxN2FhYzM1Mzg4Y2NlMzRjMWVmZDgxNWMyODccommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-29T15:10:37Zu	committer}(jA  	Tom PapkejC  tpapke@palantir.comjE  2023-06-29T15:10:37Zumessagespotless :(tree}(j9  (88ad5aab31d4174536385588db8eb3ebae1ce7aaurl`https://api.github.com/repos/palantir/atlasdb/git/trees/88ad5aab31d4174536385588db8eb3ebae1ce7aaujQ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/60ae7d960a51e17aac35388cce34c1efd815c287
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSdnu0ACgkQmF9s0kaF
Iw3aNwf+NceHODEl/V57BtsNRpiTFrdIsspy3TxErFEzCevxxzB/4kneTVH/ijWe
Lf0BBVqMZAUK9LJXF13Tp9vA/SXlHBNsVoI7hVlxqLX0MQTELldZOYfXssfD0MTg
8gFMHS+hloRnKy0PtTjCmH9NUg7tVHG0upT7xnpR0sDpHzQWoyxuBvVXY/MLNKxs
7yD776slriS5GvW1ZKQKiQquNV+6dBOlt/JnfS4mA4FvIeFYf7y4EmR3D7IsQQdO
a5tA6oTr1M7fLaJE3FmLOYqRm3wbnkvLvC+etJw0314J0SsCCWlRgi9Irt837obC
3mjaZ4aBNynhtB8Q/1cnBinLXfAv4g==
=OoRI
-----END PGP SIGNATURE-----payloadtree 88ad5aab31d4174536385588db8eb3ebae1ce7aa
parent ca20880f0550e7f642807956c9a34acbc4445a04
author Tom Papke <tpapke@palantir.com> 1688051437 +0100
committer Tom Papke <tpapke@palantir.com> 1688051437 +0100

spotless :(
uujQ  ^https://api.github.com/repos/palantir/atlasdb/commits/60ae7d960a51e17aac35388cce34c1efd815c287html_urlShttps://github.com/palantir/atlasdb/commit/60ae7d960a51e17aac35388cce34c1efd815c287comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/60ae7d960a51e17aac35388cce34c1efd815c287/commentsj?  }(login	ToemmscheidJboj;  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jQ  &https://api.github.com/users/Toemmschej_  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujG  }(jd  	Toemmschejf  Jboj;  MDQ6VXNlcjQzNjc1NDkwjh  4https://avatars.githubusercontent.com/u/43675490?v=4jj  h5jQ  &https://api.github.com/users/Toemmschej_  https://github.com/Toemmschejm  0https://api.github.com/users/Toemmsche/followersjo  =https://api.github.com/users/Toemmsche/following{/other_user}jq  6https://api.github.com/users/Toemmsche/gists{/gist_id}js  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}ju  4https://api.github.com/users/Toemmsche/subscriptionsjw  +https://api.github.com/users/Toemmsche/orgsjy  ,https://api.github.com/users/Toemmsche/reposj{  7https://api.github.com/users/Toemmsche/events{/privacy}j}  6https://api.github.com/users/Toemmsche/received_eventsj  Userj  uparents]}(j9  (ca20880f0550e7f642807956c9a34acbc4445a04jQ  ^https://api.github.com/repos/palantir/atlasdb/commits/ca20880f0550e7f642807956c9a34acbc4445a04j_  Shttps://github.com/palantir/atlasdb/commit/ca20880f0550e7f642807956c9a34acbc4445a04uastats}(totalK	additionsK	deletionsKufiles]}(j9  (4305d649486aabcf97ca07976c286654204cf825filenameJlock-api-objects/src/main/java/com/palantir/lock/watch/ChangeMetadata.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/60ae7d960a51e17aac35388cce34c1efd815c287/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javaraw_urlhttps://github.com/palantir/atlasdb/raw/60ae7d960a51e17aac35388cce34c1efd815c287/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.java?ref=60ae7d960a51e17aac35388cce34c1efd815c287patchX  @@ -39,8 +39,8 @@
 @JsonSubTypes({
     @JsonSubTypes.Type(value = Unchanged.class, name = Unchanged.TYPE),
     @JsonSubTypes.Type(value = Updated.class, name = Updated.TYPE),
-        @JsonSubTypes.Type(value = Deleted.class, name = Deleted.TYPE),
-        @JsonSubTypes.Type(value = Created.class, name = Created.TYPE),
+    @JsonSubTypes.Type(value = Deleted.class, name = Deleted.TYPE),
+    @JsonSubTypes.Type(value = Created.class, name = Created.TYPE),
 })
 public interface ChangeMetadata {
     <T> T accept(Visitor<T> visitor);uau(3e3fe325fd591c3cf0616ddb53e508539f6fd824}(sha(3e3fe325fd591c3cf0616ddb53e508539f6fd824node_idEC_kwDOAjP5fdoAKDNlM2ZlMzI1ZmQ1OTFjM2NmMDYxNmRkYjUzZTUwODUzOWY2ZmQ4MjQcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-06-29T14:11:21Zu	committer}(j  
svc-changelogj  svc-changelog@palantir.comj  2023-06-29T14:11:21ZumessageAdd generated changelog entriestree}(j  (c09c248dceca4ae203014e4a10cceee7f227f574url`https://api.github.com/repos/palantir/atlasdb/git/trees/c09c248dceca4ae203014e4a10cceee7f227f574ujȤ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3e3fe325fd591c3cf0616ddb53e508539f6fd824
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSdkQkJEHYaJX37fAFQAAAgPAD9EiH7r4UpWdPwFSIy54XtkNqM
77f0SRCJdNe2EPeEb5MBAKEFP0NgQjy4+cokqdSY2TakJ2CwIrNNfy+WMw6/Z0YO
=Rgal
-----END PGP SIGNATURE-----payloadX  tree c09c248dceca4ae203014e4a10cceee7f227f574
parent faa309861aca5af9da3f8e7b369002945b8f9ec1
author svc-changelog <svc-changelog@palantir.com> 1688047881 +0000
committer svc-changelog <svc-changelog@palantir.com> 1688047881 +0000

Add generated changelog entriesuujȤ  ^https://api.github.com/repos/palantir/atlasdb/commits/3e3fe325fd591c3cf0616ddb53e508539f6fd824html_urlShttps://github.com/palantir/atlasdb/commit/3e3fe325fd591c3cf0616ddb53e508539f6fd824comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3e3fe325fd591c3cf0616ddb53e508539f6fd824/commentsj  }(login
svc-changelogidJ#j  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jȤ  *https://api.github.com/users/svc-changelogj֤   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj  }(jۤ  
svc-changelogjݤ  J#j  MDQ6VXNlcjg0MDc3NjAzjߤ  4https://avatars.githubusercontent.com/u/84077603?v=4j  h5jȤ  *https://api.github.com/users/svc-changelogj֤   https://github.com/svc-changelogj  4https://api.github.com/users/svc-changelog/followersj  Ahttps://api.github.com/users/svc-changelog/following{/other_user}j  :https://api.github.com/users/svc-changelog/gists{/gist_id}j  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j  8https://api.github.com/users/svc-changelog/subscriptionsj  /https://api.github.com/users/svc-changelog/orgsj  0https://api.github.com/users/svc-changelog/reposj  ;https://api.github.com/users/svc-changelog/events{/privacy}j  :https://api.github.com/users/svc-changelog/received_eventsj  Userj  uparents]}(j  (faa309861aca5af9da3f8e7b369002945b8f9ec1jȤ  ^https://api.github.com/repos/palantir/atlasdb/commits/faa309861aca5af9da3f8e7b369002945b8f9ec1j֤  Shttps://github.com/palantir/atlasdb/commit/faa309861aca5af9da3f8e7b369002945b8f9ec1uastats}(totalK	additionsK	deletionsKufiles]}(j  (d7951f643174772a855f4d861eeddb8fc504150afilename$changelog/@unreleased/pr-6644.v2.ymlstatusmodifiedj  Kj  KchangesKblob_url|https://github.com/palantir/atlasdb/blob/3e3fe325fd591c3cf0616ddb53e508539f6fd824/changelog%2F%40unreleased%2Fpr-6644.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/3e3fe325fd591c3cf0616ddb53e508539f6fd824/changelog%2F%40unreleased%2Fpr-6644.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6644.v2.yml?ref=3e3fe325fd591c3cf0616ddb53e508539f6fd824patch@@ -1,5 +1,5 @@
 type: improvement
 improvement:
-  description: Add LockMetadata interface with CRUD-like Metadata events
+  description: Create LockRequestMetadata and ChangeMetadata
   links:
   - https://github.com/palantir/atlasdb/pull/6644uau(e6e23f7bd8b53a5628527ff0e374588338e3eb5c}(sha(e6e23f7bd8b53a5628527ff0e374588338e3eb5cnode_idEC_kwDOAjP5fdoAKGU2ZTIzZjdiZDhiNTNhNTYyODUyN2ZmMGUzNzQ1ODgzMzhlM2ViNWMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-10T18:50:24Zu	committer}(j/  Jeremy Kongj1  jkong@palantir.comj3  2023-07-10T18:50:24ZumessageColumnAndValuetree}(j'  (7bf726e0cf70411d0b480053fc0ae2aab0f315fcurl`https://api.github.com/repos/palantir/atlasdb/git/trees/7bf726e0cf70411d0b480053fc0ae2aab0f315fcuj?  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e6e23f7bd8b53a5628527ff0e374588338e3eb5c
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSsUvAACgkQTLdFKain
zjyLTggAlxOABib+9nuArUFIQC9Np+Z/4GjBjqmBTtYAh9RzelgHv8dYaO++aeYM
s0ZjvT1IvOZM3Vc90ygUXNU7TRgfRwpfJigUFGb6gmZeh/pabvrGFYMbZVMD2/ai
tmPOrJI2+JO7MRWywlc3MjclAEsPfpQUH5qJlnCjcfb7CyOz0QEEb58hGtGrStDM
5UVWS7F/EzQoVxCRqnf749bXV6rHq8DqNY3tr4U1fWLofBKpC/X+Xb+el7fkQ2RB
3rWwMBMTQJH6q7CD0qCXYXTAxD3TxWpZuX7g7x/TZLzC+muerYj5XxEqUWjFyYpE
M33dI9tWz/ZXhG+OMMVNGqTk3jvssQ==
=kTnE
-----END PGP SIGNATURE-----payloadtree 7bf726e0cf70411d0b480053fc0ae2aab0f315fc
parent 9af0e988339a6ae7646624a0b050518a169ec32c
author Jeremy Kong <jkong@palantir.com> 1689015024 +0100
committer Jeremy Kong <jkong@palantir.com> 1689015024 +0100

ColumnAndValue
uuj?  ^https://api.github.com/repos/palantir/atlasdb/commits/e6e23f7bd8b53a5628527ff0e374588338e3eb5chtml_urlShttps://github.com/palantir/atlasdb/commit/e6e23f7bd8b53a5628527ff0e374588338e3eb5ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/commentsj-  }(login
jeremyk-91idJZ j)  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j?  'https://api.github.com/users/jeremyk-91jM  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj5  }(jR  
jeremyk-91jT  JZ j)  MDQ6VXNlcjU5NTU1MTA=jV  3https://avatars.githubusercontent.com/u/5955510?v=4jX  h5j?  'https://api.github.com/users/jeremyk-91jM  https://github.com/jeremyk-91j[  1https://api.github.com/users/jeremyk-91/followersj]  >https://api.github.com/users/jeremyk-91/following{/other_user}j_  7https://api.github.com/users/jeremyk-91/gists{/gist_id}ja  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jc  5https://api.github.com/users/jeremyk-91/subscriptionsje  ,https://api.github.com/users/jeremyk-91/orgsjg  -https://api.github.com/users/jeremyk-91/reposji  8https://api.github.com/users/jeremyk-91/events{/privacy}jk  7https://api.github.com/users/jeremyk-91/received_eventsjm  Userjo  uparents]}(j'  (9af0e988339a6ae7646624a0b050518a169ec32cj?  ^https://api.github.com/repos/palantir/atlasdb/commits/9af0e988339a6ae7646624a0b050518a169ec32cjM  Shttps://github.com/palantir/atlasdb/commit/9af0e988339a6ae7646624a0b050518a169ec32cuastats}(totalM"	additionsK	deletionsKufiles](}(j'  (7688afda0d1babfe3e30b9cb5e95cdef3667ba38filenameaatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ColumnAndValue.javastatusrenamedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnAndValue.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnAndValue.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnAndValue.java?ref=e6e23f7bd8b53a5628527ff0e374588338e3eb5cpatchX  @@ -19,14 +19,14 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface ColumnValue {
+public interface ColumnAndValue {
     @Value.Parameter
     int column();
 
     @Value.Parameter
     int value();
 
-    static ColumnValue of(int column, int value) {
-        return ImmutableColumnValue.of(column, value);
+    static ColumnAndValue of(int column, int value) {
+        return ImmutableColumnAndValue.of(column, value);
     }
 }previous_filename^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ColumnValue.javau}(j'  (ecbd656f159c09a8e2390dc3345bd413af2a1881j  oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj  https://github.com/palantir/atlasdb/raw/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=e6e23f7bd8b53a5628527ff0e374588338e3eb5cj  X  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import java.util.List;
@@ -32,7 +32,7 @@ public interface InteractiveTransaction {
 
     void delete(String table, WorkloadCell workloadCell);
 
-    List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection);
+    List<ColumnAndValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection);
 
     List<WitnessedTransactionAction> witness();
 }u}(j'  (6be89ac577d426cb259ff547d6ed9c8b7a14da63j  |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowColumnRangeReadTransactionAction.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.java?ref=e6e23f7bd8b53a5628527ff0e374588338e3eb5cj  XU  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import java.util.List;
 import org.immutables.value.Value;
@@ -42,7 +42,7 @@ default <T> T accept(TransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-    default WitnessedRowColumnRangeReadTransactionAction witness(List<ColumnValue> columnsAndValues) {
+    default WitnessedRowColumnRangeReadTransactionAction witness(List<ColumnAndValue> columnsAndValues) {
         return WitnessedRowColumnRangeReadTransactionAction.builder()
                 .originalQuery(this)
                 .columnsAndValues(columnsAndValues)u}(j'  (c3f046a1384b93cbb56e4130900d91a35a72ff09j  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedRowColumnRangeReadTransactionAction.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.javaj  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.java?ref=e6e23f7bd8b53a5628527ff0e374588338e3eb5cj  X  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import java.util.List;
@@ -26,7 +26,7 @@
 public interface InvalidWitnessedRowColumnRangeReadTransactionAction extends InvalidWitnessedTransactionAction {
     WitnessedRowColumnRangeReadTransactionAction witness();
 
-    List<ColumnValue> expectedColumnsAndValues();
+    List<ColumnAndValue> expectedColumnsAndValues();
 
     @Value.Check
     default void check() {u}(j'  (1d2e0f348f3a7c6192c356190679330cf4db63d4j  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=e6e23f7bd8b53a5628527ff0e374588338e3eb5cj  X:  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
@@ -32,7 +32,7 @@ public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedT
 
     // This is a List rather than a Set or Map because the ordering in which the columns and values are returned is
     // important (it must match the ordering specified by the contract of row column range reads).
-    List<ColumnValue> columnsAndValues();
+    List<ColumnAndValue> columnsAndValues();
 
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
@@ -43,7 +43,7 @@ default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
     default void check() {
         Set<Integer> knownColumns = new HashSet<>();
         Set<Integer> duplicateColumns = columnsAndValues().stream()
-                .map(ColumnValue::column)
+                .map(ColumnAndValue::column)
                 .filter(column -> !knownColumns.add(column))
                 .collect(Collectors.toSet());
         Preconditions.checkState(u}(j'  (6ebf7abd87471c20bf0c7b31ecefe6fc3136ddf2j  atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javaj  modifiedj  Kj  Kj  K*j  https://github.com/palantir/atlasdb/blob/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj  https://github.com/palantir/atlasdb/raw/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=e6e23f7bd8b53a5628527ff0e374588338e3eb5cj  X  @@ -21,7 +21,7 @@
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.logsafe.SafeArg;
@@ -33,35 +33,35 @@ public class WitnessedRowColumnRangeReadTransactionActionTest {
     @Test
     public void canCreateWitness() {
         assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
-                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                                .table("foo")
-                                .row(1)
-                                .columnRangeSelection(
-                                        ColumnRangeSelection.builder().build())
-                                .build())
+                .addColumnsAndValues(ColumnAndValue.of(1, 5), ColumnAndValue.of(5, 1), ColumnAndValue.of(3, 3))
+                .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                        .table("foo")
+                        .row(1)
+                        .columnRangeSelection(
+                                ColumnRangeSelection.builder().build())
                         .build())
+                .build())
                 .doesNotThrowAnyException();
     }
 
     @Test
     public void cannotCreateWitnessWithDuplicateColumns() {
-        List<ColumnValue> columnsAndValues = ImmutableList.of(
-                ColumnValue.of(1, 5),
-                ColumnValue.of(5, 1),
-                ColumnValue.of(1, 3),
-                ColumnValue.of(5, 8),
-                ColumnValue.of(9, 99));
+        List<ColumnAndValue> columnsAndValues = ImmutableList.of(
+                ColumnAndValue.of(1, 5),
+                ColumnAndValue.of(5, 1),
+                ColumnAndValue.of(1, 3),
+                ColumnAndValue.of(5, 8),
+                ColumnAndValue.of(9, 99));
 
         assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                        .addAllColumnsAndValues(columnsAndValues)
-                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                                .table("foo")
-                                .row(1)
-                                .columnRangeSelection(
-                                        ColumnRangeSelection.builder().build())
-                                .build())
+                .addAllColumnsAndValues(columnsAndValues)
+                .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                        .table("foo")
+                        .row(1)
+                        .columnRangeSelection(
+                                ColumnRangeSelection.builder().build())
                         .build())
+                .build())
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Duplicate columns in columnsAndValues")
                 .hasExactlyArgs(u}(j'  (86ec63b122472809aa991124a48d9c725b6eb031j  hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj  https://github.com/palantir/atlasdb/raw/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=e6e23f7bd8b53a5628527ff0e374588338e3eb5cj  X%  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
 import com.palantir.atlasdb.workload.transaction.RangeQueryReader;
@@ -100,7 +100,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(
         @Override
         public Optional<InvalidWitnessedTransactionAction> visit(
                 WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
-            List<ColumnValue> expectedReads =
+            List<ColumnAndValue> expectedReads =
                     rangeQueryReader.readRange(rowColumnRangeReadTransactionAction.originalQuery());
             if (!expectedReads.equals(rowColumnRangeReadTransactionAction.columnsAndValues())) {
                 return Optional.of(InvalidWitnessedRowColumnRangeReadTransactionAction.builder()u}(j'  (7c2d34603facf921ad8beb7fe8ea07243833c1acj  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj  modifiedj  Kj  Kj  K
j  https://github.com/palantir/atlasdb/blob/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj  https://github.com/palantir/atlasdb/raw/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=e6e23f7bd8b53a5628527ff0e374588338e3eb5cj  X  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.invariant;
 
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.SimpleRangeQueryReader;
@@ -61,7 +61,7 @@ final class SnapshotInvariantVisitor
     public Optional<InvalidWitnessedTransactionAction> visit(
             WitnessedSingleCellReadTransactionAction readTransactionAction) {
         Optional<Integer> expected = fetchValueFromView(
-                        readTransactionAction.table(), readTransactionAction.cell(), readView)
+                readTransactionAction.table(), readTransactionAction.cell(), readView)
                 .value();
         if (!expected.equals(readTransactionAction.value())) {
             return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
@@ -73,7 +73,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
-                        writeTransactionAction.table(), writeTransactionAction.cell())
+                writeTransactionAction.table(), writeTransactionAction.cell())
                 .map(mismatchedValue ->
                         InvalidWitnessedSingleCellTransactionAction.of(writeTransactionAction, mismatchedValue));
 
@@ -87,7 +87,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransacti
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
-                        deleteTransactionAction.table(), deleteTransactionAction.cell())
+                deleteTransactionAction.table(), deleteTransactionAction.cell())
                 .map(mismatchedValue ->
                         InvalidWitnessedSingleCellTransactionAction.of(deleteTransactionAction, mismatchedValue));
 
@@ -98,7 +98,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransact
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(
             WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
-        List<ColumnValue> expectedReads = SimpleRangeQueryReader.createForSnapshot(readView)
+        List<ColumnAndValue> expectedReads = SimpleRangeQueryReader.createForSnapshot(readView)
                 .readRange(rowColumnRangeReadTransactionAction.originalQuery());
         if (!expectedReads.equals(rowColumnRangeReadTransactionAction.columnsAndValues())) {
             return Optional.of(InvalidWitnessedRowColumnRangeReadTransactionAction.builder()uy     }(j'  (a9210a5d7d0c098da089049338a91d83c08b6b53j  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj  https://github.com/palantir/atlasdb/raw/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=e6e23f7bd8b53a5628527ff0e374588338e3eb5cj  Xu  @@ -101,7 +101,7 @@ public void delete(String table, WorkloadCell workloadCell) {
     }
 
     @Override
-    public List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection) {
+    public List<ColumnAndValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection) {
         return run(
                 tableReference -> {
                     // Having a non-configurable batch hint is a bit iffy, but suffices as this won't be used in
@@ -115,11 +115,11 @@ public List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSel
                             iterators.size() == 1,
                             "Expected exactly one iterator to be returned",
                             SafeArg.of("iteratorsReturned", iterators.size()));
-                    List<ColumnValue> columnsAndValues = EntryStream.of(iterators.get(AtlasDbUtils.toAtlasKey(row)))
+                    List<ColumnAndValue> columnsAndValues = EntryStream.of(iterators.get(AtlasDbUtils.toAtlasKey(row)))
                             .mapKeys(Cell::getColumnName)
                             .mapKeys(AtlasDbUtils::fromAtlasColumn)
                             .mapValues(AtlasDbUtils::fromAtlasValue)
-                            .map(entry -> ColumnValue.of(entry.getKey(), entry.getValue()))
+                            .map(entry -> ColumnAndValue.of(entry.getKey(), entry.getValue()))
                             .collect(Collectors.toList());
                     witnessedTransactionActions.add(RowColumnRangeReadTransactionAction.builder()
                             .table(table)u}(j'  (60d3e000f2076c608fd8208ae840c3a81c246f9dj  eatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/RangeQueryReader.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.javaj  https://github.com/palantir/atlasdb/raw/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.java?ref=e6e23f7bd8b53a5628527ff0e374588338e3eb5cj  X  @@ -16,9 +16,9 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import java.util.List;
 
 public interface RangeQueryReader {
-    List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction);
+    List<ColumnAndValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction);
 }u}(j'  (b334c13605b8c199db28b3fb01b01920cbc2a7c4j  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReader.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj  https://github.com/palantir/atlasdb/raw/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.java?ref=e6e23f7bd8b53a5628527ff0e374588338e3eb5cj  X  @@ -19,7 +19,7 @@
 import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.invariant.ValueAndMaybeTimestamp;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -51,13 +51,13 @@ public static RangeQueryReader createForSnapshot(
     }
 
     @Override
-    public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction) {
+    public List<ColumnAndValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction) {
         Map<TableAndWorkloadCell, Optional<Integer>> allValues = rawValueSupplier.get();
         if (allValues.size() > LARGE_HISTORY_LIMIT) {
             log.error(
                     "Attempted to do range queries in a simple way, even though the history is large ({} entries)! If"
-                        + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
-                        + " efficient range query implementation.",
+                            + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
+                            + " efficient range query implementation.",
                     SafeArg.of("size", allValues.size()));
         }
         return allValues
@@ -74,8 +74,8 @@ public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTrans
                 })
                 .filterValues(Optional::isPresent)
                 .mapValues(Optional::get)
-                .map(entry -> ColumnValue.of(entry._1().cell().column(), entry._2()))
-                .sortBy(ColumnValue::column)
+                .map(entry -> ColumnAndValue.of(entry._1().cell().column(), entry._2()))
+                .sortBy(ColumnAndValue::column)
                 .toJavaList();
     }
 }u}(j'  (696e20bfa4e91d86751f7c482791d8f7445b3348j  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflows.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaj  https://github.com/palantir/atlasdb/raw/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.java?ref=e6e23f7bd8b53a5628527ff0e374588338e3eb5cj  XU  @@ -18,7 +18,7 @@
 
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
@@ -132,7 +132,7 @@ private Map<Integer, Optional<Integer>> getAccountBalances(InteractiveTransactio
                                     .endColumnExclusive(workflowConfiguration.numberOfAccounts())
                                     .build())
                     .stream()
-                    .collect(Collectors.toMap(ColumnValue::column, ColumnValue::value));
+                    .collect(Collectors.toMap(ColumnAndValue::column, ColumnAndValue::value));
             return IntStream.range(0, workflowConfiguration.numberOfAccounts())
                     .boxed()
                     .collect(Collectors.toMap(u}(j'  (bb82ed109ab12bf07503eb28f206bb662101d44cj  latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj  modifiedj  Kj  Kj  K&j  https://github.com/palantir/atlasdb/blob/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj  https://github.com/palantir/atlasdb/raw/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=e6e23f7bd8b53a5628527ff0e374588338e3eb5cj  X&  @@ -20,7 +20,7 @@
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterables;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
@@ -214,7 +214,7 @@ public void readsRowRangeToExhaustion() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(15, 21)))
+                        ImmutableList.of(ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -238,7 +238,7 @@ public void incorporatesLocalWritesIntoRowColumnRangeQueries() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(15, 21), ColumnValue.of(20, 34)))
+                        ImmutableList.of(ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21), ColumnAndValue.of(20, 34)))
                 .write(5, 10, 99)
                 .write(5, 13, 24)
                 .delete(5, 15)
@@ -247,10 +247,10 @@ public void incorporatesLocalWritesIntoRowColumnRangeQueries() {
                         5,
                         ColumnRangeSelection.builder().build(),
                         ImmutableList.of(
-                                ColumnValue.of(10, 99),
-                                ColumnValue.of(13, 24),
-                                ColumnValue.of(18, 36),
-                                ColumnValue.of(20, 34)))
+                                ColumnAndValue.of(10, 99),
+                                ColumnAndValue.of(13, 24),
+                                ColumnAndValue.of(18, 36),
+                                ColumnAndValue.of(20, 34)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -274,7 +274,7 @@ public void identifiesUnexpectedMissingCellInRowColumnRangeRead() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(20, 34)))
+                        ImmutableList.of(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -286,8 +286,8 @@ public void identifiesUnexpectedMissingCellInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                                action.expectedColumnsAndValues())
-                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(15, 21), ColumnValue.of(20, 34)));
+                        action.expectedColumnsAndValues())
+                        .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21), ColumnAndValue.of(20, 34)));
     }
 
     @Test
@@ -302,7 +302,7 @@ public void identifiesUnexpectedAdditionalCellInRowColumnRangeRead() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(15, 24), ColumnValue.of(20, 34)))
+                        ImmutableList.of(ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 24), ColumnAndValue.of(20, 34)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -314,8 +314,8 @@ public void identifiesUnexpectedAdditionalCellInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                                action.expectedColumnsAndValues())
-                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
+                        action.expectedColumnsAndValues())
+                        .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
     }
 
     @Test
@@ -330,7 +330,7 @@ public void identifiesIncorrectCellValuesInRowColumnRangeRead() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(10, 8888888), ColumnValue.of(20, 34)))
+                        ImmutableList.of(ColumnAndValue.of(10, 8888888), ColumnAndValue.of(20, 34)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -342,8 +342,8 @@ public void identifiesIncorrectCellValuesInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                                action.expectedColumnsAndValues())
-                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
+                        action.expectedColumnsAndValues())
+                        .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
     }
 
     @Test
@@ -358,7 +358,7 @@ public void identifiesIncorrectOrderingInRowColumnRangeRead() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(20, 34), ColumnValue.of(10, 15)))
+                        ImmutableList.of(ColumnAndValue.of(20, 34), ColumnAndValue.of(10, 15)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -370,8 +370,8 @@ public void identifiesIncorrectOrderingInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                                action.expectedColumnsAndValues())
-                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
+                        action.expectedColumnsAndValues())
+                        .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
     }
 
     private static InvalidWitnessedTransactionAction getSingularFinalInvalidAction(u}(j'  (1dd888be2cbe216b733496bdef850a4e96a0dc2cj  hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj  https://github.com/palantir/atlasdb/raw/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=e6e23f7bd8b53a5628527ff0e374588338e3eb5cj  X*  @@ -20,7 +20,7 @@
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterables;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
@@ -190,8 +190,8 @@ public void rowColumnRangeScanNotExpectedToReadColumnsCommittingAfterOurStart()
                         5,
                         ColumnRangeSelection.builder().build(),
                         ImmutableList.of(
-                                ColumnValue.of(10, WorkloadTestHelpers.VALUE_ONE),
-                                ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE + WorkloadTestHelpers.VALUE_TWO)))
+                                ColumnAndValue.of(10, WorkloadTestHelpers.VALUE_ONE),
+                                ColumnAndValue.of(30, WorkloadTestHelpers.VALUE_ONE + WorkloadTestHelpers.VALUE_TWO)))
                 .endTransaction(21L)
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -215,8 +215,8 @@ public void rowColumnRangeScanFlagsColumnCommittingAfterOurStartAsViolating() {
                         5,
                         ColumnRangeSelection.builder().build(),
                         ImmutableList.of(
-                                ColumnValue.of(20, WorkloadTestHelpers.VALUE_TWO),
-                                ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
+                                ColumnAndValue.of(20, WorkloadTestHelpers.VALUE_TWO),
+                                ColumnAndValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
                 .endTransaction(21L)
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -242,11 +242,11 @@ public void rowColumnRangeScanFlagsColumnCommittingAfterOurStartAsViolating() {
                                                             .build())
                                                     .build())
                                             .columnsAndValues(ImmutableList.of(
-                                                    ColumnValue.of(20, WorkloadTestHelpers.VALUE_TWO),
-                                                    ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
+                                                    ColumnAndValue.of(20, WorkloadTestHelpers.VALUE_TWO),
+                                                    ColumnAndValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
                                             .build());
                             assertThat(invalidRowColumnRangeRead.expectedColumnsAndValues())
-                                    .containsExactly(ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE));
+                                    .containsExactly(ColumnAndValue.of(30, WorkloadTestHelpers.VALUE_ONE));
                         });
     }
 }u}(j'  (a1a0b6532f6d3bc211f311643301a3dc3b55d53aj  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj  modifiedj  K)j  K)j  KRj  https://github.com/palantir/atlasdb/blob/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj  https://github.com/palantir/atlasdb/raw/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=e6e23f7bd8b53a5628527ff0e374588338e3eb5cj  X#  @@ -59,10 +59,10 @@ public void before() {
     @Test
     public void witnessRecordsAllSingleCellActions() {
         assertThat(readWrite(transaction -> {
-                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-                    transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
-                }))
+            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+            transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
+        }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
@@ -72,10 +72,10 @@ public void witnessRecordsAllSingleCellActions() {
     @Test
     public void readHandlesEmptyAndPresentValue() {
         assertThat(readWrite(transaction -> {
-                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-                    transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
-                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-                }))
+            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+            transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+        }))
                 .containsExactly(
                         WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
@@ -86,9 +86,9 @@ public void readHandlesEmptyAndPresentValue() {
     @Test
     public void witnessRecordsColumnRangeActions() {
         assertThat(readWrite(transaction -> {
-                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
-                }))
+            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+            transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+        }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedRowColumnRangeReadTransactionAction.builder()
@@ -97,15 +97,15 @@ public void witnessRecordsColumnRangeActions() {
                                         .row(WORKLOAD_CELL_TWO.key())
                                         .columnRangeSelection(ColumnRangeSelection.all())
                                         .build())
-                                .addColumnsAndValues(ColumnValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
+                                .addColumnsAndValues(ColumnAndValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
                                 .build());
     }
 
     @Test
     public void emptyColumnRangeReadsAreRecorded() {
         assertThat(readWrite(transaction -> {
-                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
-                }))
+            transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+        }))
                 .containsExactly(WitnessedRowColumnRangeReadTransactionAction.builder()
                         .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                 .table(TABLE_1)
@@ -119,19 +119,19 @@ public void emptyColumnRangeReadsAreRecorded() {
     public void allRelevantCellsAreRecordedForFullColumnScan() {
         int iterationCount = 1000;
         assertThat(readWrite(transaction -> {
-                    IntStream.range(0, iterationCount)
-                            .forEach(column ->
-                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-                    transaction.getRowColumnRange(TABLE_1, 1, ColumnRangeSelection.all());
-                }))
+            IntStream.range(0, iterationCount)
+                    .forEach(column ->
+                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+            transaction.getRowColumnRange(TABLE_1, 1, ColumnRangeSelection.all());
+        }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
                         .isInstanceOfSatisfying(
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
                                         .isEqualTo(IntStream.range(0, iterationCount)
-                                                .mapToObj(column -> ColumnValue.of(column, VALUE_ONE))
+                                                .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
                                                 .collect(Collectors.toList()))));
     }
 
@@ -141,25 +141,25 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
         int startInclusive = 313;
         int endExclusive = 855;
         assertThat(readWrite(transaction -> {
-                    IntStream.range(0, iterationCount)
-                            .forEach(column ->
-                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            1,
-                            ColumnRangeSelection.builder()
-                                    .startColumnInclusive(startInclusive)
-                                    .endColumnExclusive(endExclusive)
-                                    .build());
-                }))
+            IntStream.range(0, iterationCount)
+                    .forEach(column ->
+                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+            transaction.getRowColumnRange(
+                    TABLE_1,
+                    1,
+                    ColumnRangeSelection.builder()
+                            .startColumnInclusive(startInclusive)
+                            .endColumnExclusive(endExclusive)
+                            .build());
+        }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
                         .isInstanceOfSatisfying(
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
                                         .isEqualTo(IntStream.range(startInclusive, endExclusive)
-                                                .mapToObj(column -> ColumnValue.of(column, VALUE_ONE))
+                                                .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
                                                 .collect(Collectors.toList()))));
     }
 
@@ -221,22 +221,22 @@ private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTr
     private void assertThatThrownWhenUnknownTableReferenced(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-                    transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
-                    return null;
-                }))
+            transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
+            return null;
+        }))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Transaction action has unknown table.");
     }
 
     private void assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-                    AtlasDbInteractiveTransaction transaction =
-                            new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
-                    transaction.witness();
-                    transactionConsumer.accept(transaction);
-                    return null;
-                }))
+            AtlasDbInteractiveTransaction transaction =
+                    new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
+            transaction.witness();
+            transactionConsumer.accept(transaction);
+            return null;
+        }))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Transaction has already been witnessed and can no longer perform any actions.");
     }u}(j'  (383d95bf11ea23ec640ebb22920f30e32c613416j  oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReaderTest.javaj  modifiedj  Kj  Kj  K,j  https://github.com/palantir/atlasdb/blob/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj  https://github.com/palantir/atlasdb/raw/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.java?ref=e6e23f7bd8b53a5628527ff0e374588338e3eb5cj  XP  @@ -19,7 +19,7 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import io.vavr.collection.HashMap;
@@ -38,10 +38,10 @@ public void doesNotReadCellsFromDifferentTable() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                        .table(WorkloadTestHelpers.TABLE_2)
-                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
-                        .columnRangeSelection(ColumnRangeSelection.all())
-                        .build()))
+                .table(WorkloadTestHelpers.TABLE_2)
+                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                .columnRangeSelection(ColumnRangeSelection.all())
+                .build()))
                 .isEmpty();
     }
 
@@ -51,10 +51,10 @@ public void doesNotReadCellsFromDifferentRow() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                        .table(WorkloadTestHelpers.TABLE_1)
-                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
-                        .columnRangeSelection(ColumnRangeSelection.builder().build())
-                        .build()))
+                .table(WorkloadTestHelpers.TABLE_1)
+                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
+                .columnRangeSelection(ColumnRangeSelection.builder().build())
+                .build()))
                 .isEmpty();
     }
 
@@ -67,16 +67,16 @@ public void readsCellsFromRangeInOrder() {
                     Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         }
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                        .table(WorkloadTestHelpers.TABLE_1)
-                        .row(1)
-                        .columnRangeSelection(ColumnRangeSelection.builder()
-                                .startColumnInclusive(2)
-                                .endColumnExclusive(4)
-                                .build())
-                        .build()))
+                .table(WorkloadTestHelpers.TABLE_1)
+                .row(1)
+                .columnRangeSelection(ColumnRangeSelection.builder()
+                        .startColumnInclusive(2)
+                        .endColumnExclusive(4)
+                        .build())
+                .build()))
                 .containsExactly(
-                        ColumnValue.of(2, WorkloadTestHelpers.VALUE_ONE),
-                        ColumnValue.of(3, WorkloadTestHelpers.VALUE_ONE));
+                        ColumnAndValue.of(2, WorkloadTestHelpers.VALUE_ONE),
+                        ColumnAndValue.of(3, WorkloadTestHelpers.VALUE_ONE));
     }
 
     @Test
@@ -85,10 +85,10 @@ public void doesNotReturnExplicitlyEmptyValues() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.empty()));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                        .table(WorkloadTestHelpers.TABLE_1)
-                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
-                        .columnRangeSelection(ColumnRangeSelection.all())
-                        .build()))
+                .table(WorkloadTestHelpers.TABLE_1)
+                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                .columnRangeSelection(ColumnRangeSelection.all())
+                .build()))
                 .isEmpty();
     }
 }u}(j'  (7b09c57f6cdecf3cc15a946a5fe8f7c9e5648a49j  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj  https://github.com/palantir/atlasdb/raw/e6e23f7bd8b53a5628527ff0e374588338e3eb5c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=e6e23f7bd8b53a5628527ff0e374588338e3eb5cj  X  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
@@ -94,7 +94,7 @@ public WitnessedTransactionBuilder delete(Integer row, Integer column) {
         }
 
         public WitnessedTransactionBuilder rowColumnRangeRead(
-                Integer row, ColumnRangeSelection columnRangeSelection, List<ColumnValue> valuesRead) {
+                Integer row, ColumnRangeSelection columnRangeSelection, List<ColumnAndValue> valuesRead) {
             RowColumnRangeReadTransactionAction transactionAction = RowColumnRangeReadTransactionAction.builder()
                     .table(table)
                     .row(row)ueu(ef1e63807db751f344b2f544547803e17eb7fa69}(sha(ef1e63807db751f344b2f544547803e17eb7fa69node_idEC_kwDOAjP5fdoAKGVmMWU2MzgwN2RiNzUxZjM0NGIyZjU0NDU0NzgwM2UxN2ViN2ZhNjkcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-03-08T10:26:33Zu	committer}(j(  
Sam Kramerj*  skramer@palantir.comj,  2023-03-14T10:55:30ZumessageAdd generated changelog entriestree}(j   (c3f50d8c396744220d8eaad0357b8319589da60aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/c3f50d8c396744220d8eaad0357b8319589da60auj8  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ef1e63807db751f344b2f544547803e17eb7fa69
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQQUqIACgkQmPPOpKR4
XS3w6gf/XANu1TN5D7/3WHlE7wDW6uvEQiLfiRoeTrCvv+IaIeNxGoOymmXj8RlR
FkQ/dc3xb5A6H0uI3OroZTpbKE9NWl5T0VWz/ZtbF5JSl44Yt0C0RIB5QJslUjSK
AMIkcez0J0U0NWXmeH42TSZVKPqqER/N8tZ7LcUt4cVJN6zhrSlnAIr7HG+iC2zf
ecsoEBzVtSpEMyksL9BiJciJvqr2I2c6+boiH+5V2REpZ0VpWNS66ppMZJujLaEy
1Lug4lSsyHmsJ45pUN7tWtKxIa/Dz8HlbdQ8FgQu8d7WSpGkbjyeWRM0lcTVQGdC
O4LRwGtBTvpCcSWHe+vZGFBE/TK9sg==
=R2El
-----END PGP SIGNATURE-----payloadtree c3f50d8c396744220d8eaad0357b8319589da60a
parent 9185e51622876d23398a1f39126c204f1a17a504
author svc-changelog <svc-changelog@palantir.com> 1678271193 +0000
committer Sam Kramer <skramer@palantir.com> 1678791330 +0000

Add generated changelog entriesuuj8  ^https://api.github.com/repos/palantir/atlasdb/commits/ef1e63807db751f344b2f544547803e17eb7fa69html_urlShttps://github.com/palantir/atlasdb/commit/ef1e63807db751f344b2f544547803e17eb7fa69comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ef1e63807db751f344b2f544547803e17eb7fa69/commentsj&  }(login
svc-changelogidJ#j"  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j8  *https://api.github.com/users/svc-changelogjF   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj.  }(jK  
Sam-KramerjM  J^2_ j"  MDQ6VXNlcjYyMzg4MTQ=jO  3https://avatars.githubusercontent.com/u/6238814?v=4jQ  h5j8  'https://api.github.com/users/Sam-KramerjF  https://github.com/Sam-KramerjT  1https://api.github.com/users/Sam-Kramer/followersjV  >https://api.github.com/users/Sam-Kramer/following{/other_user}jX  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jZ  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j\  5https://api.github.com/users/Sam-Kramer/subscriptionsj^  ,https://api.github.com/users/Sam-Kramer/orgsj`  -https://api.github.com/users/Sam-Kramer/reposjb  8https://api.github.com/users/Sam-Kramer/events{/privacy}jd  7https://api.github.com/users/Sam-Kramer/received_eventsjf  Userjh  uparents]}(j   (9185e51622876d23398a1f39126c204f1a17a504j8  ^https://api.github.com/repos/palantir/atlasdb/commits/9185e51622876d23398a1f39126c204f1a17a504jF  Shttps://github.com/palantir/atlasdb/commit/9185e51622876d23398a1f39126c204f1a17a504uastats}(totalK	additionsK	deletionsK ufiles]}(j   (1c40c26a2b7f255ced582014ba59023261e207c9filename$changelog/@unreleased/pr-6463.v2.ymlstatusaddedj  Kj  K changesKblob_url|https://github.com/palantir/atlasdb/blob/ef1e63807db751f344b2f544547803e17eb7fa69/changelog%2F%40unreleased%2Fpr-6463.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/ef1e63807db751f344b2f544547803e17eb7fa69/changelog%2F%40unreleased%2Fpr-6463.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6463.v2.yml?ref=ef1e63807db751f344b2f544547803e17eb7fa69patch@@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Never completely empty the Cassandra client pool, even if a new list
+    of hosts are provided.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6463uau(f4d98b3921d65ced41324368fe3b0b681fd4db0f}(sha(f4d98b3921d65ced41324368fe3b0b681fd4db0fnode_idEC_kwDOAjP5fdoAKGY0ZDk4YjM5MjFkNjVjZWQ0MTMyNDM2OGZlM2IwYjY4MWZkNGRiMGYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-05T14:01:04Zu	committer}(j  
Sam Kramerj  skramer@palantir.comj  2023-05-15T16:25:19Zumessageupdate cassandra imagetree}(j  (7ccc5c9d672ce5f6bb634768ccec80d307091a86url`https://api.github.com/repos/palantir/atlasdb/git/trees/7ccc5c9d672ce5f6bb634768ccec80d307091a86uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f4d98b3921d65ced41324368fe3b0b681fd4db0f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRiXO8ACgkQmPPOpKR4
XS1W0gf+Lqruu63PxPzNRic9dFXksEmipT7LjS4pHfbWjooElg+uXyxKAsoTRqt/
l8z/Vrh8Y0db7OrZLD3NOYuDauvbusmAi3ntHuJOM7lZLeco9TD85bl8XSuO0khy
aLV3XLsd7HbXFjH22JjecAOLnicBD0h6NX9QeDG7FsJAOGEXxoxl8zGqHYE05P51
Bf5j1uZJNPoI2Hpj6QodxI/YYHvgVv15zEAa1/HOag3ZxVQqcdcRlApFrUBb/kPN
lP53xk+c4oWtJviFcdRylM6rB0Onxj2h1ZMgcXtJq1cbU5cGaCd5zBwCOtxo0TtO
CT6AidPjgbcxeaHiNXm7XaXfcEoybQ==
=6zxt
-----END PGP SIGNATURE-----payloadtree 7ccc5c9d672ce5f6bb634768ccec80d307091a86
parent a813e72cb312ead70c99e190a3576a69cc4c9447
author Sam Kramer <skramer@palantir.com> 1683295264 +0100
committer Sam Kramer <skramer@palantir.com> 1684167919 +0100

update cassandra image
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/f4d98b3921d65ced41324368fe3b0b681fd4db0fhtml_urlShttps://github.com/palantir/atlasdb/commit/f4d98b3921d65ced41324368fe3b0b681fd4db0fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f4d98b3921d65ced41324368fe3b0b681fd4db0f/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j¦  
Sam-KramerjĦ  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=jƦ  3https://avatars.githubusercontent.com/u/6238814?v=4jȦ  h5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj˦  1https://api.github.com/users/Sam-Kramer/followersjͦ  >https://api.github.com/users/Sam-Kramer/following{/other_user}jϦ  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jѦ  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jӦ  5https://api.github.com/users/Sam-Kramer/subscriptionsjզ  ,https://api.github.com/users/Sam-Kramer/orgsjצ  -https://api.github.com/users/Sam-Kramer/reposj٦  8https://api.github.com/users/Sam-Kramer/events{/privacy}jۦ  7https://api.github.com/users/Sam-Kramer/received_eventsjݦ  Userjߦ  uparents]}(j  (a813e72cb312ead70c99e190a3576a69cc4c9447j  ^https://api.github.com/repos/palantir/atlasdb/commits/a813e72cb312ead70c99e190a3576a69cc4c9447j  Shttps://github.com/palantir/atlasdb/commit/a813e72cb312ead70c99e190a3576a69cc4c9447uastats}(totalK		additionsK	deletionsKufiles]}(j  (957a35a9ca622014da7944dfedad4133811517fdfilename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedj  Kj  KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/f4d98b3921d65ced41324368fe3b0b681fd4db0f/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/f4d98b3921d65ced41324368fe3b0b681fd4db0f/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=f4d98b3921d65ced41324368fe3b0b681fd4db0fpatchX|  @@ -2,7 +2,7 @@ version: '2'
 
 services:
   cassandra1:
-    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    image: palantirtechnologies/cassandra:1.112.0-rc5
     ports:
       - "9160"
       - "9042"
@@ -13,13 +13,14 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra1
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
 
   cassandra2:
-    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    image: palantirtechnologies/cassandra:1.112.0-rc5
     ports:
       - "9160"
       - "9042"
@@ -30,13 +31,14 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra2
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
 
   cassandra3:
-    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    image: palantirtechnologies/cassandra:1.112.0-rc5
     ports:
       - "9160"
       - "9042"
@@ -47,6 +49,7 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra3
     networks:
       antithesis-net:uau(947626837e3ca4b68e57b468d1ffa2c8e7ff3d17}(sha(947626837e3ca4b68e57b468d1ffa2c8e7ff3d17node_idEC_kwDOAjP5fdoAKDk0NzYyNjgzN2UzY2E0YjY4ZTU3YjQ2OGQxZmZhMmM4ZTdmZjNkMTccommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-24T10:27:26Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-07-24T10:27:26Zumessagetoo much experimentationtree}(j  (2c9979f6cfbec0dfade73fe70b46b0460203fa32url`https://api.github.com/repos/palantir/atlasdb/git/trees/2c9979f6cfbec0dfade73fe70b46b0460203fa32uj&  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/947626837e3ca4b68e57b468d1ffa2c8e7ff3d17
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmS+UhAACgkQTLdFKain
zjzRHwf/aSSJKufpdxo19TVS4QCGDa6YSCKKLMpRxDY7inJZUIng9KE9jtrWYppn
XxO26cv+jFmGf9615T2isN3TrA/ct4eMIC9G7H6f4R+ew9+m/wyHr7v/PgJop3wd
O1Apet3YdfImDS6uGPcqzBADSHWdz43yw4KkxpmWgaNK31QA/sj12s8lWRY73o41
1xmjUJk9sN2bQPsVuZ9Amo25VGQMfNmPTcTBGTm7WK1w3y/ILJ45vXS3axWgbI2S
N3gCZ9N3n9p+0PdpuE6maZR4t4HAuMeS2A5XOn6WOnx30tgdrOcHB47SWD0CPCFR
y/5ynao+yjTA9T9sTrrz6CfWbfMkDw==
=Let1
-----END PGP SIGNATURE-----payloadtree 2c9979f6cfbec0dfade73fe70b46b0460203fa32
parent 8b10152e066488cd8226106bbf4105200ae03336
author Jeremy Kong <jkong@palantir.com> 1690194446 +0100
committer Jeremy Kong <jkong@palantir.com> 1690194446 +0100

too much experimentation
uuj&  ^https://api.github.com/repos/palantir/atlasdb/commits/947626837e3ca4b68e57b468d1ffa2c8e7ff3d17html_urlShttps://github.com/palantir/atlasdb/commit/947626837e3ca4b68e57b468d1ffa2c8e7ff3d17comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/947626837e3ca4b68e57b468d1ffa2c8e7ff3d17/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j&  'https://api.github.com/users/jeremyk-91j4  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j9  
jeremyk-91j;  JZ j  MDQ6VXNlcjU5NTU1MTA=j=  3https://avatars.githubusercontent.com/u/5955510?v=4j?  h5j&  'https://api.github.com/users/jeremyk-91j4  https://github.com/jeremyk-91jB  1https://api.github.com/users/jeremyk-91/followersjD  >https://api.github.com/users/jeremyk-91/following{/other_user}jF  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jH  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jJ  5https://api.github.com/users/jeremyk-91/subscriptionsjL  ,https://api.github.com/users/jeremyk-91/orgsjN  -https://api.github.com/users/jeremyk-91/reposjP  8https://api.github.com/users/jeremyk-91/events{/privacy}jR  7https://api.github.com/users/jeremyk-91/received_eventsjT  UserjV  uparents]}(j  (8b10152e066488cd8226106bbf4105200ae03336j&  ^https://api.github.com/repos/palantir/atlasdb/commits/8b10152e066488cd8226106bbf4105200ae03336j4  Shttps://github.com/palantir/atlasdb/commit/8b10152e066488cd8226106bbf4105200ae03336uastats}(totalK	additionsK	deletionsKufiles]}(j  (ae8dc0ada5c700d826e9af7fa4da1a5d43d336d5filenameXatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraTimeLockTestSuite.javastatusmodifiedjp  Kjq  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/947626837e3ca4b68e57b468d1ffa2c8e7ff3d17/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javaraw_urlhttps://github.com/palantir/atlasdb/raw/947626837e3ca4b68e57b468d1ffa2c8e7ff3d17/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.java?ref=947626837e3ca4b68e57b468d1ffa2c8e7ff3d17patchX>  @@ -23,13 +23,13 @@
 import org.junit.runners.Suite;
 
 @RunWith(Suite.class)
-@Suite.SuiteClasses({TodoEteTest.class
-    //    TargetedSweepEteTest.class,
-    //    CassandraTimestampsEteTest.class,
-    //    TimestampManagementEteTest.class,
-    //    CoordinationEteTest.class,
-    //    MultipleSchemaVersionsCoordinationEteTest.class,
-    //    LockWithTimelockEteTest.class
+@Suite.SuiteClasses({TodoEteTest.class,
+        TargetedSweepEteTest.class,
+        CassandraTimestampsEteTest.class,
+        TimestampManagementEteTest.class,
+        CoordinationEteTest.class,
+        MultipleSchemaVersionsCoordinationEteTest.class,
+        LockWithTimelockEteTest.class
 })
 public class CassandraTimeLockTestSuite extends EteSetup {
     private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");uau(27da2621b362ed817117f1d8fb6c70da7fe9fe93}(sha(27da2621b362ed817117f1d8fb6c70da7fe9fe93node_idEC_kwDOAjP5fdoAKDI3ZGEyNjIxYjM2MmVkODE3MTE3ZjFkOGZiNmM3MGRhN2ZlOWZlOTMcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-05-16T18:52:47Zu	committer}(j  David Schlosnaglej  davids@palantir.comj  2023-05-16T18:52:47Zumessage./gradlew generateSchemastree}(j  (f420d5c808638858635dcd308ef11f48b84e3c38url`https://api.github.com/repos/palantir/atlasdb/git/trees/f420d5c808638858635dcd308ef11f48b84e3c38uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/27da2621b362ed817117f1d8fb6c70da7fe9fe93
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmRj0P8ACgkQR9hsJ74Q
0l8HqAf/QEwBMPGsEJtCkUekF7LKat8/2ZHzDknAJogDiabpda0lU1yMAWLK63PW
ivJUeNY2fLnDI8d4rEPsUJshmD+KM37Hrw/afmBjkP75Q3uh4J+du0VbtPoY93kS
nV6loDTIbDzTGFMwNzbpVNtUFpp8ArZpMQDPFsNccSz9wU6/jPp6bmlKdIUknTeY
lgW1n1dYdbLt+y35o1MimokgIJlJaHQNlPa2WoLTSNMoRF/MI3D0NcOEiQA1BfOR
01w4pFysSZtKUiIpHpcl6IL9px+76xqss79tWkKHhtErccks2JPpM9b1lSmWDkFJ
KciEJJkQZx0K5MDDqqhBPkbi6XsHHA==
=UH0t
-----END PGP SIGNATURE-----payloadtree f420d5c808638858635dcd308ef11f48b84e3c38
parent 7bad649d3c6875d3919d3a8429d239954c4d8c1e
author David Schlosnagle <davids@palantir.com> 1684263167 -0400
committer David Schlosnagle <davids@palantir.com> 1684263167 -0400

./gradlew generateSchemas
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/27da2621b362ed817117f1d8fb6c70da7fe9fe93html_urlShttps://github.com/palantir/atlasdb/commit/27da2621b362ed817117f1d8fb6c70da7fe9fe93comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/27da2621b362ed817117f1d8fb6c70da7fe9fe93/commentsj  }(loginschlosnaidMBj  MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j  %https://api.github.com/users/schlosnaj  https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj  }(j  schlosnaj  MBj  MDQ6VXNlcjU0NTk0j  1https://avatars.githubusercontent.com/u/54594?v=4j  h5j  %https://api.github.com/users/schlosnaj  https://github.com/schlosnaj  /https://api.github.com/users/schlosna/followersj  <https://api.github.com/users/schlosna/following{/other_user}j  5https://api.github.com/users/schlosna/gists{/gist_id}j  <https://api.github.com/users/schlosna/starred{/owner}{/repo}j  3https://api.github.com/users/schlosna/subscriptionsjç  *https://api.github.com/users/schlosna/orgsjŧ  +https://api.github.com/users/schlosna/reposjǧ  6https://api.github.com/users/schlosna/events{/privacy}jɧ  5https://api.github.com/users/schlosna/received_eventsj˧  Userjͧ  uparents]}(j  (7bad649d3c6875d3919d3a8429d239954c4d8c1ej  ^https://api.github.com/repos/palantir/atlasdb/commits/7bad649d3c6875d3919d3a8429d239954c4d8c1ej  Shttps://github.com/palantir/atlasdb/commit/7bad649d3c6875d3919d3a8429d239954c4d8c1euastats}(totalMA	additionsK	deletionsK`ufiles](}(j  (8b6e6cafaf4bfeb159b9821f6b05b34ee3d1bd3bfilename\atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/CompactMetadataTable.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FCompactMetadataTable.javaraw_urlhttps://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FCompactMetadataTable.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FCompactMetadataTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93patchX  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "VridlmiMEcMLIrwQyqcRHQ==";
+    static String __CLASS_HASH = "PSwZcMysyzWemW+V1hGphQ==";
 }u}(j  (a9253d217f7922c43a4719d7eba66ff928fd42c2j  Zatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepIdToNameTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepIdToNameTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepIdToNameTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepIdToNameTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -731,6 +732,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -754,5 +756,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "XhY0sfHU7ygS3NHM1+HK7Q==";
+    static String __CLASS_HASH = "XRAvO+BpbFM1l4QIBkArjA==";
 }u}(j  (92e033f8a02b6af466530e87d3272b1a29f5b16bj  Zatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepNameToIdTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepNameToIdTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepNameToIdTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepNameToIdTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -672,6 +673,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -695,5 +697,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "sJD6WdNMiuuJDNsMwkhsvA==";
+    static String __CLASS_HASH = "ZVl8vtH0bWDeCq5tKMA3Aw==";
 }u}(j  (466585bf6d5f35472abb07bf7c9340d1fec25923j  Zatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepPriorityTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepPriorityTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepPriorityTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepPriorityTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -1228,6 +1229,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -1251,5 +1253,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "SYJq7EPSrqhI5ojA5DS3vQ==";
+    static String __CLASS_HASH = "rABMHBdCo+LhmxyLoeFFwQ==";
 }u}(j  (91aeab67a811c50ed99500a6dbab71f30426896bj  _atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepShardProgressTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepShardProgressTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepShardProgressTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepShardProgressTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -684,6 +685,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -707,5 +709,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "vxDaJU4r7oWggNPDq0Qu6Q==";
+    static String __CLASS_HASH = "2Fj81SsG3WRpPjQ1kYDw3A==";
 }uM      }(j  (e1e792ef2a8d8d17d6dc1f0ebf62edaa5f434f46j  [atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepableCellsTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableCellsTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableCellsTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableCellsTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -766,6 +767,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -789,5 +791,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "0G8vHXvwR/HGZ0ZrAaeqTQ==";
+    static String __CLASS_HASH = "hMikiCT1ysKqkzSOdiKujg==";
 }u}(j  (a0fed777bc3cae52361dd15d5e1f8d185ff33447j  `atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepableTimestampsTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableTimestampsTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableTimestampsTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableTimestampsTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -763,6 +764,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -786,5 +788,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Jw99h/0z3T8JcRN8j6d17w==";
+    static String __CLASS_HASH = "66qq5d5do+PszHk7DehVPA==";
 }u}(j  (04e0abea5b6d71d399ce0be42bf5e788186bb907j  Xatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/TableClearsTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FTableClearsTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FTableClearsTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FTableClearsTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "G5tVqtzNmeGOIdOf4QSySA==";
+    static String __CLASS_HASH = "Wm/9d03F9WHgPC5jjTUOaA==";
 }u}(j  (5c2151332395c0abdd30bf0e9e81f9ea340e0275j  latlasdb-client/src/test/java/com/palantir/atlasdb/table/description/generated/GenericRangeScanTestTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FGenericRangeScanTestTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FGenericRangeScanTestTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FGenericRangeScanTestTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -782,6 +783,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -805,5 +807,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "kqedl2mBeAbedzXlMy+Imw==";
+    static String __CLASS_HASH = "YkaZuzFs8LBGmT3/H/I5eg==";
 }u}(j  (3ca57c907f8e38fa47c80cd5637bb2936c356d75j  eatlasdb-client/src/test/java/com/palantir/atlasdb/table/description/generated/RangeScanTestTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FRangeScanTestTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FRangeScanTestTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FRangeScanTestTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -720,6 +721,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -743,5 +745,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "T2bysa8OZ+/WjRrXnIqCPA==";
+    static String __CLASS_HASH = "1i+tNWsmUREmFNoXh6QUeg==";
 }u}(j  (406ea4c829a8af8841a2d625eb7be180b4deeb1bj  aatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/LatestSnapshotTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FLatestSnapshotTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FLatestSnapshotTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FLatestSnapshotTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "1hXp6wqgn1sn1zvk2FNCsA==";
+    static String __CLASS_HASH = "IGBmCsqLmahL4VNCmymeTA==";
 }u}(j  (691b032f8500c1d98893ea25953a5a1da6159237j  aatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/NamespacedTodoTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FNamespacedTodoTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FNamespacedTodoTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FNamespacedTodoTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "u45FW2313LWExLwSpn1QNQ==";
+    static String __CLASS_HASH = "hQ6/1zRsdc2LBKW0GTYdpw==";
 }u}(j  (8d929951097fa4dd1ed276565d0e054a197030c1j  jatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamHashAidxTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamHashAidxTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamHashAidxTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamHashAidxTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "PCkKiTatC1CKEn6ZH3wovQ==";
+    static String __CLASS_HASH = "D9OdSrGepZI1dcZ5KV7B0g==";
 }u}(j  (c2166395fe0ce40fad624f15a49f97e8082edb87j  eatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamIdxTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamIdxTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamIdxTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamIdxTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "D1MDUfpiS0iyGcBvr58Y8g==";
+    static String __CLASS_HASH = "Ql7tNJ0Z5v0pWFviP9dcuw==";
 }u}(j  (751427a20cec42114f38fb040766075b79fceb85j  jatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamMetadataTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamMetadataTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamMetadataTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamMetadataTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "CYeYrtJK8/cz/1qm4lAQbw==";
+    static String __CLASS_HASH = "AgT8WHSuUvJzkk+inw4twg==";
 }u}(j  (d9eb5e622958eabbadfc64f623d7af4e2b8f6ab2j  batlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamStore.javaj  modifiedj  Kj  Kj  K	j  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamStore.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamStore.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         SnapshotsStreamMetadataTable table = tables.getSnapshotsStreamMetadataTable(t);
         Map<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow, SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow r : m.keySet()) {
             for (SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> rows = new HashSet<>();
+        Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow.of(h));
         }u}(j  (50fe24ebd9570730219ff9c8cabd8b95ef133793j  gatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamValueTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamValueTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamValueTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamValueTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "VELEHtyEvSAidzHk7HUynw==";
+    static String __CLASS_HASH = "9m/lRuE/UHMttmLTS1Q8iQ==";
 }u}(j  (0fc54eda7b5bdfc6e1df2d83a646c1c897f7545dj  Watlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/TodoTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FTodoTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FTodoTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FTodoTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "a41wenQu3aKASLvmOEI8kQ==";
+    static String __CLASS_HASH = "1g5OdW5n4H7icFXg1gG2Xg==";
 }u}(j  (c7df5ab0634529958ebd6f5e9833133b80d6f481j  Yatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/AuditedDataTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FAuditedDataTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FAuditedDataTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FAuditedDataTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "HWEvAR+se/bt6noPrSI5eQ==";
+    static String __CLASS_HASH = "AkImLEM5fv/Ji8qCyRf5dw==";
 }u}(j  (691e7c2e8f8e94ee1c2d708ae8a7265a658fc2d7j  `atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamHashAidxTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamHashAidxTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamHashAidxTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamHashAidxTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "6ODGPI1lqmv77xZs7geJPg==";
+    static String __CLASS_HASH = "4xCW34HnUp0WcB647QLiyQ==";
 }u}(j  (450188be061709cb7be5970d7510cb674fd90334j  [atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamIdxTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamIdxTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamIdxTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamIdxTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -730,6 +731,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -753,5 +755,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Rdk+n2nUmS6yWZK9HAk9OA==";
+    static String __CLASS_HASH = "Cv4WRWZ3CKVWR5IhFRmgLg==";
 }u}(j  (02b71ddbab73ddfa1fb611fe7718aec48202c8f9j  `atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamMetadataTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamMetadataTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamMetadataTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamMetadataTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -697,6 +698,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -720,5 +722,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "RPuWa9/Enf/G4yy7WraKvg==";
+    static String __CLASS_HASH = "AFwooxC06krTqFv58UfkcA==";
 }u}(j  (8c464c6e727d316151fe167fb7023408f8223c1bj  Xatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamStore.javaj  modifiedj  Kj  Kj  K	j  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamStore.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamStore.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         DataStreamMetadataTable table = tables.getDataStreamMetadataTable(t);
         Map<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<DataStreamHashAidxTable.DataStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<DataStreamHashAidxTable.DataStreamHashAidxRow, DataStreamHashAidxTable.DataStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (DataStreamHashAidxTable.DataStreamHashAidxRow r : m.keySet()) {
             for (DataStreamHashAidxTable.DataStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<DataStreamHashAidxTable.DataStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<DataStreamHashAidxTable.DataStreamHashAidxRow> rows = new HashSet<>();
+        Set<DataStreamHashAidxTable.DataStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(DataStreamHashAidxTable.DataStreamHashAidxRow.of(h));
         }u}(j  (339121486a993326e0fab616ee41e6840e0bcdeaj  ]atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamValueTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamValueTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamValueTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamValueTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -685,6 +686,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -708,5 +710,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "DS6SuJzRnFffdUrdtO6Guw==";
+    static String __CLASS_HASH = "hogeDv0tsmrHDkXuhcwteQ==";
 }u}(j  (9ddaa82ed535788ceb2af45646bddc9ef36ee8c1j  iatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamHashAidxTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamHashAidxTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamHashAidxTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamHashAidxTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "SH1UPkfcLa9w8NXZtXW8SQ==";
+    static String __CLASS_HASH = "NOiRKvLXsadPhJ4N/aae6Q==";
 }u}(j  (64418a6885ea388ae8cacfebdee217037e578fbcj  datlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamIdxTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamIdxTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamIdxTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamIdxTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "mpf2q7hm+MfMFLkXqKHb6Q==";
+    static String __CLASS_HASH = "lWy4z6m1ZmwcuY4d/ez8Rw==";
 }u}(j  (db9af2411ac58ba1397ec11aaec3110306b1b1f0j  iatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamMetadataTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamMetadataTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamMetadataTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamMetadataTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Ce61mTEgHfgl6d16rBNwUA==";
+    static String __CLASS_HASH = "KLkPI2rjlr8itPxC4ZWJLg==";
 }u}(j  (dde1b9206472d7a2d64075fe39b94b5e132abc0dj  aatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamStore.javaj  modifiedj  Kj  Kj  K	j  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamStore.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamStore.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         HotspottyDataStreamMetadataTable table = tables.getHotspottyDataStreamMetadataTable(t);
         Map<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow, HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow r : m.keySet()) {
             for (HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> rows = new HashSet<>();
+        Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow.of(h));
         }u}(j  (8883d5d8737eef19a3f25fd258d579ac8e1dbec9j  fatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamValueTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamValueTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamValueTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamValueTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "qpxadEqMHw8NeLcCZ0b7oA==";
+    static String __CLASS_HASH = "9KSCRtbyVXFg2nb/7Wc8OA==";
 }u}(j  (9e9357f8de655d0e17ba1dd9b8acd708782624daj  _atlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/KeyValueTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FKeyValueTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FKeyValueTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FKeyValueTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -720,6 +721,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -743,5 +745,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "hup2zbIPEU3UyNMOfe1YNw==";
+    static String __CLASS_HASH = "EvFEiQbULvhKQD1IWFw9Og==";
 }u}(j  (71133787b090b82a707e49603e186dfa7e9667bbj  jatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamHashAidxTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamHashAidxTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamHashAidxTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamHashAidxTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "5cWqgzNsimsjOXwgH7qMXg==";
+    static String __CLASS_HASH = "JgFB0UN+4Pm4N3LOPvQBgQ==";
 }u}(j  (12c3935195ed70fde95f3887274b533b88339351j  eatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamIdxTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamIdxTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamIdxTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamIdxTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "MkCIg9TK7rahg1mYHQmGVQ==";
+    static String __CLASS_HASH = "bEOuPNCg8sYuyW4OuRhvww==";
 }u}(j  (89e24ea6242c9b9fb14e61ea5dcf01368dfc11ddj  jatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamMetadataTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamMetadataTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamMetadataTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamMetadataTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "C96zzv/xJuD8fFjGUzSd4A==";
+    static String __CLASS_HASH = "lqzqHpNRg+/IVPQNyNYi8w==";
 }u}(j  (131662e5ecd75a9a845b1ada71a5f0caabb1015bj  batlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamStore.javaj  modifiedj  Kj  Kj  K	j  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamStore.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamStore.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X$
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         ValueStreamMetadataTable table = tables.getValueStreamMetadataTable(t);
         Map<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<ValueStreamHashAidxTable.ValueStreamHashAidxRow, ValueStreamHashAidxTable.ValueStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (ValueStreamHashAidxTable.ValueStreamHashAidxRow r : m.keySet()) {
             for (ValueStreamHashAidxTable.ValueStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> rows = new HashSet<>();
+        Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(ValueStreamHashAidxTable.ValueStreamHashAidxRow.of(h));
         }u}(j  (8612b0a582e6b1950385aa6d1574bbac6e20ffa1j  gatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamValueTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamValueTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamValueTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamValueTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "AWqOKaIXG5obDvezpY9QEQ==";
+    static String __CLASS_HASH = "uFwDglAaZjBu9w6E/JkGTA==";
 }u}(j  (8154359d774907dc53f1db528c9656c41f00ad36j  `atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/indexing/generated/DataTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FDataTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FDataTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FDataTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -3605,6 +3606,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -3628,5 +3630,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "rHjWG0+SGxcp7KyF4uN6Tg==";
+    static String __CLASS_HASH = "fgza/c8nH19LqrftPRIqiA==";
 }u}(j  (ee2a5122bea79238ecd27ad1e4ca1456a7f7b835j  fatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/indexing/generated/TwoColumnsTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FTwoColumnsTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FTwoColumnsTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FTwoColumnsTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -2175,6 +2176,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -2198,5 +2200,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "ZLP1HeIjAhSt/NFAlfaFZw==";
+    static String __CLASS_HASH = "KStjuJG0LJnDxQ1sOAdxdg==";
 }u}(j  (c38a44055aef521e0c7a9078ac8e38e1f8f113f3j  batlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/KeyValueTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FKeyValueTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FKeyValueTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FKeyValueTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "FVgUWmuxuVzpOrJIO/DXPQ==";
+    static String __CLASS_HASH = "4kr4uM+Pm0pXXBnI3Rwp/g==";
 }u}(j  (483655cb2596c5c21bca0cbf355078fc452c2f2dj  xatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamHashAidxTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamHashAidxTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamHashAidxTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamHashAidxTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "8WWlkvBZIFpNHwUr7wJuXA==";
+    static String __CLASS_HASH = "QDCK4a9zv6EgLNkYkrAVPQ==";
 }u}(j  (69c2cc77ef0d597921e1c6bf0028a4c9b6da106ej  satlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamIdxTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamIdxTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamIdxTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamIdxTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "fBsgiTVm3m2sJucODfXkrw==";
+    static String __CLASS_HASH = "ZrY7oPqs4lWL5Vm3ZAOfyQ==";
 }u}(j  (a48313725d6bbc0ecd9e5fd285aa2e10742f285dj  xatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamMetadataTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamMetadataTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamMetadataTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamMetadataTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93      j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "YleWz4H842qjJBXcYvLobg==";
+    static String __CLASS_HASH = "k1qnaFkT6dVNCXg3oBI4WQ==";
 }u}(j  (b52156d27108b8235106d6448d277090b0bc34f1j  patlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamStore.javaj  modifiedj  Kj  Kj  K	j  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamStore.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamStore.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  XX  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         StreamTestMaxMemStreamMetadataTable table = tables.getStreamTestMaxMemStreamMetadataTable(t);
         Map<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow, StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow r : m.keySet()) {
             for (StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> rows = new HashSet<>();
+        Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow.of(h));
         }u}(j  (4cc09292a0c881814092e59571bf42259f56cab7j  uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamValueTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamValueTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamValueTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamValueTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "1ctM+vcHEi56Rw7hX+plQg==";
+    static String __CLASS_HASH = "pYIryyxlhArJOo7k0Zv3dA==";
 }u}(j  (f825d53bfb0e6c5d7381ec01f8ecd07240bf379cj  ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamHashAidxTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamHashAidxTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamHashAidxTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamHashAidxTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "A+NE35cfeEnY2MHhBM0Twg==";
+    static String __CLASS_HASH = "aO3hKAuHYd9vJquk5PiY1w==";
 }u}(j  (5502e70c87e613d70db75d4804d811626d434f02j  matlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamIdxTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamIdxTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamIdxTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamIdxTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "eaBakAMUdj76AdcnIf29/Q==";
+    static String __CLASS_HASH = "hWTBrXR/SoJCr/v5CGBp5Q==";
 }u}(j  (ec5dd38ea6150d4b8d92e1084501290f8c0fef27j  ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamMetadataTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamMetadataTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamMetadataTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamMetadataTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "gtouBjIyyNsb/b/qc9pCHA==";
+    static String __CLASS_HASH = "I4QsHKuDj4n21oCZPrbGRw==";
 }u}(j  (003e31d632e6a70db0661c723e695e8a07ef78a2j  jatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamStore.javaj  modifiedj  Kj  Kj  K	j  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamStore.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamStore.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         StreamTestStreamMetadataTable table = tables.getStreamTestStreamMetadataTable(t);
         Map<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow, StreamTestStreamHashAidxTable.StreamTestStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow r : m.keySet()) {
             for (StreamTestStreamHashAidxTable.StreamTestStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> rows = new HashSet<>();
+        Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow.of(h));
         }u}(j  (67cbdf05b137660b3db269c6391c261c8816ea46j  oatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamValueTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamValueTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamValueTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamValueTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Zjb+q9OtKHIGgdeO8BnLSw==";
+    static String __CLASS_HASH = "/Af3nGP1PVa3CpaveqZwGA==";
 }u}(j  (917b574b5d504d1cb1c8bf3fcffd2b3c22519a95j  zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamHashAidxTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamHashAidxTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamHashAidxTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamHashAidxTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "X1hqbiqiEZbDU9agjHYzMA==";
+    static String __CLASS_HASH = "lE3nxoiGnxh9y5ILD8Ji1Q==";
 }u}(j  (303868d7e785a5c1384e703d5a65adf7a26b2a74j  uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamIdxTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamIdxTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamIdxTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamIdxTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -730,6 +731,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -753,5 +755,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "U/6cxNEugWqjJJAs3M94Ew==";
+    static String __CLASS_HASH = "R1lO5ziYaN0Udjl/IakPew==";
 }u}(j  (71ec56a5ce54c4d000801a844aada1339c16a547j  zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamMetadataTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamMetadataTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamMetadataTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamMetadataTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -697,6 +698,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -720,5 +722,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "nfCYOSFgRw9vgCfK8zepPQ==";
+    static String __CLASS_HASH = "ZnMVClEGG1k/Y9BfO/PktA==";
 }u}(j  (b239a11943f978187efeb70a40e27a8726a0f1dbj  ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamStore.javaj  modifiedj  Kj  Kj  K	j  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamStore.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamStore.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         StreamTestWithHashStreamMetadataTable table = tables.getStreamTestWithHashStreamMetadataTable(t);
         Map<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow, StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow r : m.keySet()) {
             for (StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> rows = new HashSet<>();
+        Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow.of(h));
         }u}(j  (c74f7ec43a6341758a168abed0155c4295302fa9j  watlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamValueTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamValueTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamValueTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamValueTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -684,6 +685,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -707,5 +709,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "gK5/dTiV0fnsYG3GkVekCA==";
+    static String __CLASS_HASH = "uywx4Vs+y/rXbP+WoU1Vqg==";
 }u}(j  (01c9c33be5490be859359377b6d7903a04344513j  zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamHashAidxTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamHashAidxTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamHashAidxTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamHashAidxTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Ki6bqIt1Bc7VLmWbBOyz8w==";
+    static String __CLASS_HASH = "52McDDADyoK80XG2PM7xUQ==";
 }u}(j  (693352f35cd8833aee14743963d366a5727e2a75j  uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamIdxTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamIdxTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamIdxTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamIdxTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -730,6 +731,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -753,5 +755,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "1iZU2XfKSsaB+roXMxh1gQ==";
+    static String __CLASS_HASH = "tH6ZP3FAS46/RMntNor6tw==";
 }u}(j  (0d40497726fdeeb4e593498fd2a0b43d8e75e666j  zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamMetadataTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamMetadataTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamMetadataTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamMetadataTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -697,6 +698,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -720,5 +722,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "+eCmpk539lJx0Nvz/T4ltw==";
+    static String __CLASS_HASH = "j3IJu2gsDa9Zov5ZP9X4Mw==";
 }u}(j  (f2eb8a4207166b17b12c7605809b2b0c3d930ff2j  ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamStore.javaj  modifiedj  Kj  Kj  K	j  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamStore.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamStore.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         TestHashComponentsStreamMetadataTable table = tables.getTestHashComponentsStreamMetadataTable(t);
         Map<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow, TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow r : m.keySet()) {
             for (TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> rows = new HashSet<>();
+        Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow.of(h));
         }u}(j  (e7ad00be1ac27e569b3ab9038b9fe44f48f231dbj  watlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamValueTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamValueTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamValueTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamValueTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -685,6 +686,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -708,5 +710,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "lib/FOHtmiJ4apr21C/FRA==";
+    static String __CLASS_HASH = "iDMBVL6YNzaq38VRV2lB/g==";
 }u}(j  (c2fb36880db07b47881646a3cd81e9f271638446j  vexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserPhotosStreamHashAidxTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamHashAidxTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamHashAidxTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamHashAidxTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "iZ+WrjLjlfsRJ+4PXOxllA==";
+    static String __CLASS_HASH = "vICtXgN//uNG/gj7cFWrOQ==";
 }u}(j  (e49d24081d562e00a550119b818f297048d50661j  qexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserPhotosStreamIdxTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamIdxTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamIdxTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamIdxTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "/5EqpAIHVfvrgAAL314Q6g==";
+    static String __CLASS_HASH = "evlQwEFn9nzK+VsNjgPIJA==";
 }u}(j  (08b73ce8b3b9ac1429d38284f07d08d8596984cej  vexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserPhotosStreamMetadataTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamMetadataTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamMetadataTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamMetadataTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "tIyb2ulllUpil2D9Zl4zpA==";
+    static String __CLASS_HASH = "7ViZjlUfW+7BKGwGDvuIww==";
 }u}(j  (72052cf73ef5aa5b32eb5b5b1f6d58c0b9122513j  nexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserPhotosStreamStore.javaj  modifiedj  Kj  Kj  K	j  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamStore.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamStore.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<UserPhotosStreamMetadataTable.UserPhotosStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<UserPhotosStreamMetadataTable.UserPhotosStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         UserPhotosStreamMetadataTable table = tables.getUserPhotosStreamMetadataTable(t);
         Map<UserPhotosStreamMetadataTable.UserPhotosStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<UserPhotosStreamMetadataTable.UserPhotosStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow, UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow r : m.keySet()) {
             for (UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow> rows = new HashSet<>();
+        Set<UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow.of(h));
         }u}(j  (83cd7d93a31541131e10d013afd149bb96a8ba96j  sexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserPhotosStreamValueTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamValueTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamValueTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamValueTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "gyLvhEYvzXXshQvSEEOq3Q==";
+    static String __CLASS_HASH = "vnCpFwiY6zZC+s1UYLuLCw==";
 }u}(j  (0966bf8d91605107a3f820775bb4e4e284a9efb1j  iexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserProfileTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserProfileTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserProfileTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserProfileTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -3317,6 +3318,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -3340,5 +3342,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "3Edl1drru2bGGW0fAmHL/g==";
+    static String __CLASS_HASH = "FUR78HF+b7t9uXpBh7oYCQ==";
 }u}(j  (0b2e25c1efbf2581b0f2ea54e67e8b583c906ac4j  timelock-server-benchmark-client/src/main/java/com/palantir/atlasdb/timelock/benchmarks/schema/generated/BlobsSerializableTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FBlobsSerializableTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FBlobsSerializableTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FBlobsSerializableTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "jpbUef6G6FMHoZjbw+bBKQ==";
+    static String __CLASS_HASH = "X9vlVcKWG1PnG8EugUP/kA==";
 }u}(j  (09a27f561e01b9eb3709f6d67aa6cffeb97e3da4j  xtimelock-server-benchmark-client/src/main/java/com/palantir/atlasdb/timelock/benchmarks/schema/generated/BlobsTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FBlobsTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FBlobsTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FBlobsTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "ebAUSbvXjUAAU8MmEfZdhw==";
+    static String __CLASS_HASH = "RU6CLtTd3DluJLwkYHXzeQ==";
 }u}(j  (3faee9118f858e0ca89e83898a0999931a40e261j  timelock-server-benchmark-client/src/main/java/com/palantir/atlasdb/timelock/benchmarks/schema/generated/KvDynamicColumnsTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FKvDynamicColumnsTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FKvDynamicColumnsTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FKvDynamicColumnsTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -810,6 +811,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -833,5 +835,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "WonqNwl3FFSJcXG3L2uHcA==";
+    static String __CLASS_HASH = "ujWl4A2gAakYQiWxv+hZew==";
 }u}(j  (1370c1cea330883f414f3b9ea89fbad05a2c1487j  ytimelock-server-benchmark-client/src/main/java/com/palantir/atlasdb/timelock/benchmarks/schema/generated/KvRowsTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FKvRowsTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FKvRowsTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FKvRowsTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -776,6 +777,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -799,5 +801,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "G3l1p9aHW8n32yBnhbylTQ==";
+    static String __CLASS_HASH = "E7HBSSSWtvxMljBiJQ/8mg==";
 }u}(j  (3bf5d8d5916fe24a6fc9c5c8898f75c2e2c00d09j  {timelock-server-benchmark-client/src/main/java/com/palantir/atlasdb/timelock/benchmarks/schema/generated/MetadataTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/27da2621b362ed817117f1d8fb6c70da7fe9fe93/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FMetadataTable.javaj  https://github.com/palantir/atlasdb/raw/27da2621b362ed817117f1d8fb6c70da7fe9fe93/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FMetadataTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FMetadataTable.java?ref=27da2621b362ed817117f1d8fb6c70da7fe9fe93j  X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -748,6 +749,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -771,5 +773,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "ZnB3dQeFf2sMuVxmdZI9OQ==";
+    static String __CLASS_HASH = "MVgxOXWoD/e8wdW5v1b6og==";
 }ueu(e46ad42f173156860b0db30229a5a8d789485174}(sha(e46ad42f173156860b0db30229a5a8d789485174node_idEC_kwDOAjP5fdoAKGU0NmFkNDJmMTczMTU2ODYwYjBkYjMwMjI5YTVhOGQ3ODk0ODUxNzQcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-07-21T01:11:46Zu	committer}(j$  David Schlosnaglej&  davids@palantir.comj(  2023-07-21T01:11:46Zumessage;CellLoader.loadWithTs minimizes unobserved tracing overheadtree}(j  (6911d8c5dca6948609c9cbc7f9f02c50586f4b4burl`https://api.github.com/repos/palantir/atlasdb/git/trees/6911d8c5dca6948609c9cbc7f9f02c50586f4b4buj4  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e46ad42f173156860b0db30229a5a8d789485174
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmS5220ACgkQR9hsJ74Q
0l85OQf/be+5jziRF62CEYZ/wV14NRuSUxmVHuelhB5eiajbICIUt5FTiT6uYlMi
DCq7TDTX4nJwX4Q9N4///PnFGoON2j8ZDbV2h25KhXbl68PKhZWXLmSi0sKWGC7g
ZQqX84DqZemv4D4IBFNfoP/8GqRE2UsDGJrBzBPZgmUO7Up2mvGbC6QtDM6HXmje
b8yJL8LTAQLRmAuUttLFHXyuMtW1DGRBI+4Ill2GDo2T51Y8K85z85KAnNP2jWMc
s1QscXAqk1XZ3iEdNhwkbG4wdRM/1pQZocsBE4VUBb032Blich1LEGCgkpanL8Zc
Yuv6loV2eQaEnrrm0NWXBIll/3yU0g==
=/qPE
-----END PGP SIGNATURE-----payloadX  tree 6911d8c5dca6948609c9cbc7f9f02c50586f4b4b
parent 4e050a9cb4f8f2b45b8b700df082f442d2fec694
author David Schlosnagle <davids@palantir.com> 1689901906 -0400
committer David Schlosnagle <davids@palantir.com> 1689901906 -0400

CellLoader.loadWithTs minimizes unobserved tracing overhead
uuj4  ^https://api.github.com/repos/palantir/atlasdb/commits/e46ad42f173156860b0db30229a5a8d789485174html_urlShttps://github.com/palantir/atlasdb/commit/e46ad42f173156860b0db30229a5a8d789485174comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e46ad42f173156860b0db30229a5a8d789485174/commentsj"  }(loginschlosnaidMBj  MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j4  %https://api.github.com/users/schlosnajB  https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj*  }(jG  schlosnajI  MBj  MDQ6VXNlcjU0NTk0jK  1https://avatars.githubusercontent.com/u/54594?v=4jM  h5j4  %https://api.github.com/users/schlosnajB  https://github.com/schlosnajP  /https://api.github.com/users/schlosna/followersjR  <https://api.github.com/users/schlosna/following{/other_user}jT  5https://api.github.com/users/schlosna/gists{/gist_id}jV  <https://api.github.com/users/schlosna/starred{/owner}{/repo}jX  3https://api.github.com/users/schlosna/subscriptionsjZ  *https://api.github.com/users/schlosna/orgsj\  +https://api.github.com/users/schlosna/reposj^  6https://api.github.com/users/schlosna/events{/privacy}j`  5https://api.github.com/users/schlosna/received_eventsjb  Userjd  uparents]}(j  (4e050a9cb4f8f2b45b8b700df082f442d2fec694j4  ^https://api.github.com/repos/palantir/atlasdb/commits/4e050a9cb4f8f2b45b8b700df082f442d2fec694jB  Shttps://github.com/palantir/atlasdb/commit/4e050a9cb4f8f2b45b8b700df082f442d2fec694uastats}(totalK	additionsK	deletionsKufiles]}(j  (ed0533b540582038a030e5a294c22806773961e9filenameWatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CellLoader.javastatusmodifiedj~  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e46ad42f173156860b0db30229a5a8d789485174/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCellLoader.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e46ad42f173156860b0db30229a5a8d789485174/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCellLoader.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCellLoader.java?ref=e46ad42f173156860b0db30229a5a8d789485174patchX  @@ -33,6 +33,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.tracing.CloseableTracer;
+import com.palantir.tracing.Tracer;
 import java.nio.ByteBuffer;
 import java.util.AbstractList;
 import java.util.ArrayList;
@@ -95,17 +96,19 @@ void loadWithTs(
             CassandraKeyValueServices.ThreadSafeResultVisitor visitor,
             ConsistencyLevel consistency) {
         Map<CassandraServer, List<Cell>> hostsAndCells;
-        try (CloseableTracer tracer = CloseableTracer.startSpan(
-                "loadWithTs.partitionByHost",
-                ImmutableMap.of(
+
+        ImmutableMap<String, String> traceContext = Tracer.hasUnobservableTrace()
+                ? ImmutableMap.of()
+                : ImmutableMap.of(
                         "cells",
                         String.valueOf(cells.size()),
                         "tableRef",
                         LoggingArgs.safeInternalTableNameOrPlaceholder(tableRef.toString()),
                         "timestampClause",
                         loadAllTs ? "for all timestamps " : "",
                         "startTs",
-                        String.valueOf(startTs)))) {
+                        String.valueOf(startTs));
+        try (CloseableTracer tracer = CloseableTracer.startSpan("loadWithTs.partitionByHost", traceContext)) {
             hostsAndCells = HostPartitioner.partitionByHost(clientPool, cells, Cell::getRowName);
         }
         int totalPartitions = hostsAndCells.keySet().size();uau(c54edd01ef19163432488b132e1a6195c475f3d3}(sha(c54edd01ef19163432488b132e1a6195c475f3d3node_idEC_kwDOAjP5fdoAKGM1NGVkZDAxZWYxOTE2MzQzMjQ4OGIxMzJlMWE2MTk1YzQ3NWYzZDMcommit}(author}(name
Sam Krameremailskramer@palantir.com	      date2023-03-07T15:16:37Zu	committer}(j  
Sam Kramerj  skramer@palantir.comj  2023-03-07T15:16:37Zumessageadd metric for pool sizetree}(j  (24c84a6e9baf734dc26c007a074cabf04dd35bb8url`https://api.github.com/repos/palantir/atlasdb/git/trees/24c84a6e9baf734dc26c007a074cabf04dd35bb8uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c54edd01ef19163432488b132e1a6195c475f3d3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQHVVUACgkQmPPOpKR4
XS2xQgf/QGtbdzaoxrKI7jMEg+KjEpa3VrAK7UNmOSzK9VYdXFMtc3AuJPPrf1Gj
/S2ka9p1cjYyOKkJLlTEqtkx2yyyABlOXUv2bMPufm/dcIamyETfNnv/VJPdyHxK
iIU8zmFQdxnRQcRJ3V4uWEIHpKij8p4Wr5/kfsipq0dexbXJXdjpeKey2RN4c1jl
43K5OwrTgi6nITZUDjyU1/sk/RX4+0ZG4GQIa87K9Kf4eOoVnF6FFSXUbLYz9mlS
kY8i3jFKLBwFoi6ftJpG3Bls9YfbbfOrEJky4ZnzJLR8p/KwR+LpdyNGEk/gNDiO
Y/UTeJD2OkkTb81KOsjoGIpa8IWzVQ==
=J3jg
-----END PGP SIGNATURE-----payloadtree 24c84a6e9baf734dc26c007a074cabf04dd35bb8
parent 2a0ececba68ffd9d01c3512db1eb8fd6e8feb369
author Sam Kramer <skramer@palantir.com> 1678202197 +0000
committer Sam Kramer <skramer@palantir.com> 1678202197 +0000

add metric for pool size
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/c54edd01ef19163432488b132e1a6195c475f3d3html_urlShttps://github.com/palantir/atlasdb/commit/c54edd01ef19163432488b132e1a6195c475f3d3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c54edd01ef19163432488b132e1a6195c475f3d3/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j  
Sam-Kramerj  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=jª  3https://avatars.githubusercontent.com/u/6238814?v=4jĪ  h5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-KramerjǪ  1https://api.github.com/users/Sam-Kramer/followersjɪ  >https://api.github.com/users/Sam-Kramer/following{/other_user}j˪  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jͪ  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jϪ  5https://api.github.com/users/Sam-Kramer/subscriptionsjѪ  ,https://api.github.com/users/Sam-Kramer/orgsjӪ  -https://api.github.com/users/Sam-Kramer/reposjժ  8https://api.github.com/users/Sam-Kramer/events{/privacy}jת  7https://api.github.com/users/Sam-Kramer/received_eventsj٪  Userj۪  uparents]}(j  (2a0ececba68ffd9d01c3512db1eb8fd6e8feb369j  ^https://api.github.com/repos/palantir/atlasdb/commits/2a0ececba68ffd9d01c3512db1eb8fd6e8feb369j  Shttps://github.com/palantir/atlasdb/commit/2a0ececba68ffd9d01c3512db1eb8fd6e8feb369uastats}(totalK	additionsK*	deletionsKgufiles](}(j  (ca3bca888850a0ce74bf11021d939d1c967ac7fffilenamedatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javastatusmodifiedj  Kj  K
changesKblob_urlhttps://github.com/palantir/atlasdb/blob/c54edd01ef19163432488b132e1a6195c475f3d3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c54edd01ef19163432488b132e1a6195c475f3d3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=c54edd01ef19163432488b132e1a6195c475f3d3patchX@	  @@ -37,7 +37,6 @@
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.refreshable.Refreshable;
@@ -355,19 +354,17 @@ void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> des
         Set<CassandraServer> validatedServersToAdd =
                 validateNewHostsTopologiesAndMaybeAddToPool(currentPoolWithoutAbsentServers, serversToAdd);
 
-        if (currentPoolWithoutAbsentServers.isEmpty() && validatedServersToAdd.isEmpty()) {
-            metrics.recordEmptyPool();
-            throw new SafeIllegalStateException(
-                    "No servers were successfully added to the pool. This means we could not come to a consensus on"
+        metrics.recordPoolSize(currentPoolWithoutAbsentServers.size() + validatedServersToAdd.size());
+
+        Preconditions.checkState(
+                !(currentPoolWithoutAbsentServers.isEmpty() && validatedServersToAdd.isEmpty()),
+                "No servers were successfully added to the pool. This means we could not come to a consensus on"
                         + " cluster topology, or no servers were provided. We will fallback to using our previous"
                         + " Cassandra servers, if any exist. This state should be transient (<5 minutes), and if it is"
                         + " not, indicates that the user may have accidentally configured AltasDB to use two separate"
                         + " Cassandra clusters (i.e., user-led split brain).",
-                    SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())),
-                    SafeArg.of("previousCassandraServers", CassandraLogHelper.collectionOfHosts(currentServers)));
-        }
-
-        metrics.recordHealthyPool();
+                SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())),
+                SafeArg.of("previousCassandraServers", CassandraLogHelper.collectionOfHosts(currentServers)));
 
         absentServers.forEach(cassandraServer -> {
             CassandraClientPoolingContainer container = cassandra.removePool(cassandraServer);u}(j  (ccd16a75d7ff7c3e998f466c472fd78d0b93a4d2j  latlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetrics.javaj  modifiedj  K	j  Kj  Kj   https://github.com/palantir/atlasdb/blob/c54edd01ef19163432488b132e1a6195c475f3d3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javaj  https://github.com/palantir/atlasdb/raw/c54edd01ef19163432488b132e1a6195c475f3d3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.java?ref=c54edd01ef19163432488b132e1a6195c475f3d3j  X	  @@ -27,12 +27,13 @@
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.Map;
+import java.util.concurrent.atomic.AtomicLong;
 import java.util.function.Consumer;
 import java.util.function.Supplier;
 
 public class CassandraClientPoolMetrics {
 
-    public static final String EMPTY_POOL_METRIC_NAME = "empty-pool";
+    public static final String POOL_SIZE_METRIC_NAME = "pool-size";
     private final MetricsManager metricsManager;
     private final RequestMetrics aggregateRequestMetrics;
     private final Map<CassandraServer, RequestMetrics> metricsByHost = new HashMap<>();
@@ -42,16 +43,16 @@ public class CassandraClientPoolMetrics {
     // Not bundled in with request metrics, as we seek to not produce host-level metrics for economic reasons.
     private final Counter poolExhaustionCounter;
 
-    private final Counter emptyPoolCounter;
+    private final AtomicLong poolSize;
 
     public CassandraClientPoolMetrics(MetricsManager metricsManager) {
         this.metricsManager = metricsManager;
         this.aggregateRequestMetrics = new RequestMetrics(metricsManager);
         this.poolExhaustionCounter =
                 metricsManager.registerOrGetCounter(CassandraClientPoolMetrics.class, "pool-exhaustion");
         this.outlierControllers = createOutlierControllers(metricsManager);
-        this.emptyPoolCounter =
-                metricsManager.registerOrGetCounter(CassandraClientPoolMetrics.class, EMPTY_POOL_METRIC_NAME);
+        this.poolSize = new AtomicLong(0L);
+        metricsManager.registerMetric(CassandraClientPoolMetrics.class, POOL_SIZE_METRIC_NAME, poolSize::get);
     }
 
     private static Map<CassandraClientPoolHostLevelMetric, DistributionOutlierController> createOutlierControllers(
@@ -100,21 +101,13 @@ public void recordPoolExhaustion() {
         poolExhaustionCounter.inc();
     }
 
-    public synchronized void recordEmptyPool() {
-        if (emptyPoolCounter.getCount() == 0) {
-            emptyPoolCounter.inc();
-        }
-    }
-
-    public synchronized void recordHealthyPool() {
-        if (emptyPoolCounter.getCount() == 1) {
-            emptyPoolCounter.dec();
-        }
+    public void recordPoolSize(long desiredPoolSize) {
+        poolSize.set(desiredPoolSize);
     }
 
     @VisibleForTesting
-    Counter getEmptyPoolCounter() {
-        return emptyPoolCounter;
+    Long getPoolSize() {
+        return poolSize.get();
     }
 
     @SuppressWarnings("unchecked") // Guaranteed to have the correct typeu}(j  (7ff1e470eb0f9923a3c2dc32d5a5c391f6c82fddj  datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolTest.javaj  modifiedj  Kj  Kj  Kj   https://github.com/palantir/atlasdb/blob/c54edd01ef19163432488b132e1a6195c475f3d3/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaj  https://github.com/palantir/atlasdb/raw/c54edd01ef19163432488b132e1a6195c475f3d3/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.java?ref=c54edd01ef19163432488b132e1a6195c475f3d3j  X
  @@ -354,14 +354,15 @@ public void hostRemovedIfCurrentTopologyInvalidButHasPreviousHosts() {
         setupThriftServers(ImmutableSet.of(CASS_SERVER_1.proxy()));
         when(config.autoRefreshNodes()).thenReturn(true);
         setCassandraServersTo(CASS_SERVER_1, CASS_SERVER_2, CASS_SERVER_3);
-
         createClientPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2, CASS_SERVER_3);
-        setupHostsWithInconsistentTopology(CASS_SERVER_2, CASS_SERVER_3);
+        assertPoolSizeMetricIsEqualTo(3);
 
+        setupHostsWithInconsistentTopology(CASS_SERVER_2, CASS_SERVER_3);
         setCassandraServersTo(CASS_SERVER_2, CASS_SERVER_3);
         refreshPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_2, CASS_SERVER_3);
+        assertPoolSizeMetricIsEqualTo(2);
     }
 
     @Test
@@ -384,18 +385,18 @@ public void oldServersCanBeRemovedAfterFallingBackWhenNewServerIsAdded() {
         when(config.autoRefreshNodes()).thenReturn(true);
         setCassandraServersTo(CASS_SERVER_1);
         createClientPool();
-        assertEmptyPoolMetricIsEqualTo(0);
+        assertPoolSizeMetricIsEqualTo(1);
 
         setupHostsWithInconsistentTopology(CASS_SERVER_2);
         setCassandraServersTo(CASS_SERVER_2);
         refreshPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1);
-        assertEmptyPoolMetricIsEqualTo(1);
+        assertPoolSizeMetricIsEqualTo(0);
 
         setCassandraServersTo(CASS_SERVER_2, CASS_SERVER_3);
         refreshPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_3);
-        assertEmptyPoolMetricIsEqualTo(0);
+        assertPoolSizeMetricIsEqualTo(1);
     }
 
     @Test
@@ -406,11 +407,13 @@ public void onlyValidatedHostsAreAddedOnRefresh() {
 
         createClientPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1);
-        setupHostsWithInconsistentTopology(CASS_SERVER_2);
+        assertPoolSizeMetricIsEqualTo(1);
 
+        setupHostsWithInconsistentTopology(CASS_SERVER_2);
         setCassandraServersTo(CASS_SERVER_1, CASS_SERVER_2, CASS_SERVER_3);
         refreshPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_3);
+        assertPoolSizeMetricIsEqualTo(2);
     }
 
     @Test
@@ -780,17 +783,18 @@ private void assertEmptyConnectionPoolExceptionThrown(
                         SafeArg.of(
                                 "previousCassandraServers",
                                 CassandraLogHelper.collectionOfHosts(previousCassandraServers)));
-        assertEmptyPoolMetricIsEqualTo(1);
+        assertPoolSizeMetricIsEqualTo(0);
     }
 
-    private void assertEmptyPoolMetricIsEqualTo(int expected) {
+    private void assertPoolSizeMetricIsEqualTo(long expected) {
         assertThat(taggedMetricRegistry
-                        .counter(MetricName.builder()
+                        .<Long>gauge(MetricName.builder()
                                 .safeName(MetricRegistry.name(
                                         CassandraClientPoolMetrics.class,
-                                        CassandraClientPoolMetrics.EMPTY_POOL_METRIC_NAME))
+                                        CassandraClientPoolMetrics.POOL_SIZE_METRIC_NAME))
                                 .build())
-                        .getCount())
+                        .get()
+                        .getValue())
                 .isEqualTo(expected);
     }
 }u}(j  (94fd5feb630b6818e6d9e167483d48887d3c7656j  patlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetricsTest.javaj  modifiedj  Kj  Kj  Kj   https://github.com/palantir/atlasdb/blob/c54edd01ef19163432488b132e1a6195c475f3d3/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javaj  https://github.com/palantir/atlasdb/raw/c54edd01ef19163432488b132e1a6195c475f3d3/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.java?ref=c54edd01ef19163432488b132e1a6195c475f3d3j  Xb  @@ -23,7 +23,6 @@
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
-import com.palantir.atlasdb.util.ThreadTestUtils;
 import com.palantir.refreshable.Refreshable;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import com.palantir.tritium.metrics.registry.MetricName;
@@ -34,9 +33,10 @@ public class CassandraClientPoolMetricsTest {
     private final MetricsManager metricsManager =
             MetricsManagers.of(new MetricRegistry(), new DefaultTaggedMetricRegistry(), Refreshable.only(true));
 
+    private final CassandraClientPoolMetrics metrics = new CassandraClientPoolMetrics(metricsManager);
+
     @Test
     public void metricsAreProducedAndFiltered() {
-        CassandraClientPoolMetrics metrics = new CassandraClientPoolMetrics(metricsManager);
         AtomicLong poolOne = new AtomicLong(3);
         AtomicLong poolTwo = new AtomicLong(4);
         AtomicLong poolThree = new AtomicLong(20);
@@ -59,15 +59,15 @@ public void metricsAreProducedAndFiltered() {
     }
 
     @Test
-    public void emptyPoolMetricIsThreadsafe() throws InterruptedException {
-        CassandraClientPoolMetrics metrics = new CassandraClientPoolMetrics(metricsManager);
-        ThreadTestUtils.runTaskOnMultipleThreads(
-                () -> {
-                    metrics.recordEmptyPool();
-                    metrics.recordHealthyPool();
-                },
-                100);
-        assertThat(metrics.getEmptyPoolCounter().getCount()).isEqualTo(0);
+    public void recordPoolSizeCorrectlySetsSize() {
+        metrics.recordPoolSize(100);
+        assertThat(metrics.getPoolSize()).isEqualTo(100);
+        metrics.recordPoolSize(-13);
+        assertThat(metrics.getPoolSize()).isEqualTo(-13);
+        metrics.recordPoolSize(25);
+        assertThat(metrics.getPoolSize()).isEqualTo(25);
+        metrics.recordPoolSize(0);
+        assertThat(metrics.getPoolSize()).isEqualTo(0);
     }
 
     private static MetricName createMeanActiveTimeMillisMetric(String pool) {u}(j  (25d52c12d4a78759ba94fae0d46e129a1879305bj  Natlasdb-cassandra/src/test/java/com/palantir/atlasdb/util/ThreadTestUtils.javaj  removedj  K j  K7j  K7j   https://github.com/palantir/atlasdb/blob/2a0ececba68ffd9d01c3512db1eb8fd6e8feb369/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FThreadTestUtils.javaj  https://github.com/palantir/atlasdb/raw/2a0ececba68ffd9d01c3512db1eb8fd6e8feb369/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FThreadTestUtils.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FThreadTestUtils.java?ref=2a0ececba68ffd9d01c3512db1eb8fd6e8feb369j  XM  @@ -1,55 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.util;
-
-import com.google.common.util.concurrent.Futures;
-import java.util.List;
-import java.util.concurrent.Callable;
-import java.util.concurrent.CountDownLatch;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
-import java.util.concurrent.Future;
-import java.util.concurrent.TimeUnit;
-import java.util.stream.Collectors;
-import java.util.stream.IntStream;
-
-public final class ThreadTestUtils {
-
-    private ThreadTestUtils() {}
-
-    public static void runTaskOnMultipleThreads(Runnable runnable, int numThreads) throws InterruptedException {
-        CountDownLatch startTaskLatch = new CountDownLatch(1);
-        ExecutorService taskExecutor = Executors.newCachedThreadPool();
-
-        List<Future<Void>> futures = IntStream.range(0, numThreads)
-                .mapToObj(index -> taskExecutor.submit((Callable<Void>) () -> {
-                    try {
-                        startTaskLatch.await();
-                    } catch (InterruptedException e) {
-                        throw new RuntimeException(e);
-                    }
-                    runnable.run();
-                    return null;
-                }))
-                .collect(Collectors.toList());
-
-        startTaskLatch.countDown();
-        taskExecutor.shutdown();
-        taskExecutor.awaitTermination(5, TimeUnit.SECONDS);
-        futures.forEach(Futures::getUnchecked);
-    }
-}ueu(6f77cfe0ee84c0c3c0fd4e0bf38e5faefb035620}(sha(6f77cfe0ee84c0c3c0fd4e0bf38e5faefb035620node_idEC_kwDOAjP5fdoAKDZmNzdjZmUwZWU4NGMwYzNjMGZkNGUwYmYzOGU1ZmFlZmIwMzU2MjAcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-25T12:55:13Zu	committer}(j2  
Sam Kramerj4  skramer@palantir.comj6  2023-04-25T12:55:13Zumessagefix accidental renametree}(j*  (1883a9c2d3a7f91b678fd093ee852de5c2419547url`https://api.github.com/repos/palantir/atlasdb/git/trees/1883a9c2d3a7f91b678fd093ee852de5c2419547ujB  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6f77cfe0ee84c0c3c0fd4e0bf38e5faefb035620
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRHzbEACgkQmPPOpKR4
XS3Llgf+KZ4CDpzxq8dVrgtEpoOFNJG28kbVdZ8BR4fZqj7FrwDeIHrrsTB9BOqt
5Gzck2wwaJYefNeVXuChnpw1gVcMuCC6YJiYK7eyqcBxBqAXMW2AUMWR1UxAxMeY
BV0wSQ+upjzwfjFsPkzhF2K4V071rfJlrT4XDwF5QZnmvM4YpspD3gTxtYJq56EO
Wod0PnZrvwKjshKf3O6TaDiI7Zxl2Q2I/gV9A+LOBfjq3i45ZU0SxsKkeNMT+XFu
4xdgSMLqfMFDRsbaBLwc5lzMDGNNEE5mvEHqDhyWbhetCNIS+JG32ZLHVQ1Ph3zI
Pg1q0j0yA9TWD8Ufb3MgUrF7sC+qQA==
=KLtE
-----END PGP SIGNATURE-----payloadtree 1883a9c2d3a7f91b678fd093ee852de5c2419547
parent 0d218d6123f91ef3e1544783ca9de81cf6762b71
author Sam Kramer <skramer@palantir.com> 1682427313 +0100
committer Sam Kramer <skramer@palantir.com> 1682427313 +0100

fix accidental rename
uujB  ^https://api.github.com/repos/palantir/atlasdb/commits/6f77cfe0ee84c0c3c0fd4e0bf38e5faefb035620html_urlShttps://github.com/palantir/atlasdb/commit/6f77cfe0ee84c0c3c0fd4e0bf38e5faefb035620comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6f77cfe0ee84c0c3c0fd4e0bf38e5faefb035620/commentsj0  }(login
Sam-KrameridJ^2_ j,  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jB  'https://api.github.com/users/Sam-KramerjP  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj8  }(jU  
Sam-KramerjW  J^2_ j,  MDQ6VXNlcjYyMzg4MTQ=jY  3https://avatars.githubusercontent.com/u/6238814?v=4j[  h5jB  'https://api.github.com/users/Sam-KramerjP  https://github.com/Sam-Kramerj^  1https://api.github.com/users/Sam-Kramer/followersj`  >https://api.github.com/users/Sam-Kramer/following{/other_user}jb  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jd  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jf  5https://api.github.com/users/Sam-Kramer/subscriptionsjh  ,https://api.github.com/users/Sam-Kramer/orgsjj  -https://api.github.com/users/Sam-Kramer/reposjl  8https://api.github.com/users/Sam-Kramer/events{/privacy}jn  7https://api.github.com/users/Sam-Kramer/received_eventsjp  Userjr  uparents]}(j*  (0d218d6123f91ef3e1544783ca9de81cf6762b71jB  ^https://api.github.com/repos/palantir/atlasdb/commits/0d218d6123f91ef3e1544783ca9de81cf6762b71jP  Shttps://github.com/palantir/atlasdb/commit/0d218d6123f91ef3e1544783ca9de81cf6762b71uastats}(totalK	additionsK	deletionsKufiles]}(j*  (6c7f1d05425e8759d68b71073e9525eaf8f11057filenameuatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunnerTest.javastatusrenamedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/6f77cfe0ee84c0c3c0fd4e0bf38e5faefb035620/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6f77cfe0ee84c0c3c0fd4e0bf38e5faefb035620/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.java?ref=6f77cfe0ee84c0c3c0fd4e0bf38e5faefb035620patchXm  @@ -45,7 +45,7 @@
 import org.mockito.junit.MockitoJUnitRunner;
 
 @RunWith(MockitoJUnitRunner.class)
-public class AntithesisWorkflowAndInvariantsRunnerTest {
+public class AntithesisWorkflowValidatorRunnerTest {
 
     private static final ListeningExecutorService EXECUTOR_SERVICE =
             MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(8));previous_filenameyatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowAndInvariantsRunnerTest.javauau(1c05b3bc58185fe903ceb284e5e03dd4636d1303}(sha(1c05b3bc58185fe903ceb284e5e03dd4636d1303node_idEC_kwDOAjP5fdoAKDFjMDViM2JjNTgxODVmZTkwM2NlYjI4NGU1ZTAzZGQ0NjM2ZDEzMDMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-01T13:55:47Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-06-01T13:55:47ZumessageConcurrencytree}(j  (0b605fd988e904b01af16454ebe06f7d16d0940durl`https://api.github.com/repos/palantir/atlasdb/git/trees/0b605fd988e904b01af16454ebe06f7d16d0940duj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1c05b3bc58185fe903ceb284e5e03dd4636d1303
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR4o2MACgkQTLdFKain
zjxnawf/Z2iGzIZv8H4Wg7KXV6jclV9o6Ay/SGOslr+eldjIbM2qyLlqDUPPRgRA
tjLK33EDZojUBitGWaz+Yd4a9gXqRCfBzSRRrYvTkcMc4JqdQpAh2ez97ZgcTa23
tnqdykwWsQQOBB9OBV92WmCs1Lai30jE8UT9tf865DdNWSREm+m6tsit3h3b6GV0
XYIdiuy4sjV6zHd4Ife0yCcRSsL/+ys4/o2hbRViNOlgM4r0+v8kaj8cSFBq0gRH
qbRido8eqh6yOPWLXWUXKXPbGSG3JtV0m6UJ+AmYbS54+8oGW6agoYfqWC3oWLD2
fwcDVIJA13GQNOIwCvf/+2bTb9thVg==
=bawU
-----END PGP SIGNATURE-----payloadtree 0b605fd988e904b01af16454ebe06f7d16d0940d
parent 3598f630d7a376c88a9edebe1a1b5d19b249a3a5
author Jeremy Kong <jkong@palantir.com> 1685627747 +0100
committer Jeremy Kong <jkong@palantir.com> 1685627747 +0100

Concurrency
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/1c05b3bc58185fe903ceb284e5e03dd4636d1303html_urlShttps://github.com/palantir/atlasdb/commit/1c05b3bc58185fe903ceb284e5e03dd4636d1303comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1c05b3bc58185fe903ceb284e5e03dd4636d1303/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91jɫ  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(jΫ  
jeremyk-91jЫ  JZ j  MDQ6VXNlcjU5NTU1MTA=jҫ  3https://avatars.githubusercontent.com/u/5955510?v=4jԫ  h5j  'https://api.github.com/users/jeremyk-91jɫ  https://github.com/jeremyk-91j׫  1https://api.github.com/users/jeremyk-91/followersj٫  >https://api.github.com/users/jeremyk-91/following{/other_user}j۫  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jݫ  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j߫  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents]}(j  (3598f630d7a376c88a9edebe1a1b5d19b249a3a5j  ^https://api.github.com/repos/palantir/atlasdb/commits/3598f630d7a376c88a9edebe1a1b5d19b249a3a5jɫ  Shttps://github.com/palantir/atlasdb/commit/3598f630d7a376c88a9edebe1a1b5d19b249a3a5uastats}(totalK	additionsK	deletionsKufiles]}(j  (4e4121162214ed4671e3428c21bc78c4ee8d3755filenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/1c05b3bc58185fe903ceb284e5e03dd4636d1303/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1c05b3bc58185fe903ceb284e5e03dd4636d1303/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=1c05b3bc58185fe903ceb284e5e03dd4636d1303patchX  @@ -279,10 +279,7 @@ private WorkflowAndInvariants<Workflow> createBankBalanceWorkflow(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             BankBalanceWorkflowConfiguration workflowConfig,
             LifecycleEnvironment lifecycle) {
-        ExecutorService executorService = lifecycle
-                .executorService(BankBalanceWorkflows.class.getSimpleName())
-                .maxThreads(workflowConfig.maxThreadCount())
-                .build();
+        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, BankBalanceWorkflows.class);
         InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
                 Map.of(
                         workflowConfig.tableConfiguration().tableName(),uau(1a421ae20774b0f7960d037d782db6f92163d09e}(sha(1a421ae20774b0f7960d037d782db6f92163d09enode_idEC_kwDOAjP5fdoAKDFhNDIxYWUyMDc3NGIwZjc5NjBkMDM3ZDc4MmRiNmY5MjE2M2QwOWUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-14T18:19:12Zu	committer}(j"  
Sam Kramerj$  skramer@palantir.comj&  2023-04-14T18:20:52Zumessage#Add v0 of workflow validator runnertree}(j  (597faeeb093316af3f2d52a9417afcc39502aa51url`https://api.github.com/repos/palantir/atlasdb/git/trees/597faeeb093316af3f2d52a9417afcc39502aa51uj2  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1a421ae20774b0f7960d037d782db6f92163d09e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ5mYUACgkQmPPOpKR4
XS1TLQgAiV4ZxKGbv0AKU2RtrIWWnbiAOVySvODzgvm4BP1+Uv9XDi2Zr3zItbGg
O3ITlMtCjWBQKe1anr8xAtfBqL32iRiPHgeF8BG1sPSHVWQ6z5qg7WMf0fZVeWJ2
gd1plVNErQvwg4DgPGycOexkDClkxWWsYrffLDRkGKiy5O3+pteCbIEj46AJ0UbJ
LEfCzHzQ69Xj8dFKfc5RAguNfKOwK48NaglekgiHt+itcT0dwA0NKO5iqSnKNj9l
DqKFKj1I4yGEHfbN/UbddB651G0W6Lj1XuZXUxoWIlinlzr4eptss89Iwcnf6jhT
CII5+0oLsJczGwKabvSg3zbi4mo5Dg==
=Xm4O
-----END PGP SIGNATURE-----payloadtree 597faeeb093316af3f2d52a9417afcc39502aa51
parent 88d243e6231bf013a9b1000fe2a4b2d0de3bc699
author Sam Kramer <skramer@palantir.com> 1681496352 +0100
committer Sam Kramer <skramer@palantir.com> 1681496452 +0100

Add v0 of workflow validator runner
uuj2  ^https://api.github.com/repos/palantir/atlasdb/commits/1a421ae20774b0f7960d037d782db6f92163d09ehtml_urlShttps://github.com/palantir/atlasdb/commit/1a421ae20774b0f7960d037d782db6f92163d09ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1a421ae20774b0f7960d037d782db6f92163d09e/commentsj   }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j2  'https://api.github.com/users/Sam-Kramerj@  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj(  }(jE  
Sam-KramerjG  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=jI  3https://avatars.githubusercontent.com/u/6238814?v=4jK  h5j2  'https://api.github.com/users/Sam-Kramerj@  https://github.com/Sam-KramerjN  1https://api.github.com/users/Sam-Kramer/followersjP  >https://api.github.com/users/Sam-Kramer/following{/other_user}jR  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jT  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jV  5https://api.github.com/users/Sam-Kramer/subscriptionsjX  ,https://api.github.com/users/Sam-Kramer/orgsjZ  -https://api.github.com/users/Sam-Kramer/reposj\  8https://api.github.com/users/Sam-Kramer/events{/privacy}j^  7https://api.github.com/users/Sam-Kramer/received_eventsj`  Userjb  uparents]}(j  (88d243e6231bf013a9b1000fe2a4b2d0de3bc699j2  ^https://api.github.com/repos/palantir/atlasdb/commits/88d243e6231bf013a9b1000fe2a4b2d0de3bc699j@  Shttps://github.com/palantir/atlasdb/commit/88d243e6231bf013a9b1000fe2a4b2d0de3bc699uastats}(totalM	additionsM	deletionsKufiles](}(j  (3b0f830372ef64835a492324722b2b2019546854filenamenatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowHistoryValidator.javastatusrenamedj|  Kj}  KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/1a421ae20774b0f7960d037d782db6f92163d09e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1a421ae20774b0f7960d037d782db6f92163d09e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.java?ref=1a421ae20774b0f7960d037d782db6f92163d09epatchX  @@ -21,15 +21,14 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WorkflowGroup<WorkflowTypeT extends Workflow> {
+public interface WorkflowHistoryValidator {
     @Value.Parameter
-    WorkflowTypeT workflow();
+    WorkflowHistory history();
 
     @Value.Parameter
     List<InvariantReporter<?>> invariants();
 
-    static <WorkflowTypeT extends Workflow> WorkflowGroup<WorkflowTypeT> of(
-            WorkflowTypeT workflow, List<InvariantReporter<?>> invariants) {
-        return ImmutableWorkflowGroup.of(workflow, invariants);
+    static WorkflowHistoryValidator of(WorkflowHistory history, List<InvariantReporter<?>> invariants) {
+        return ImmutableWorkflowHistoryValidator.of(history, invariants);
     }
 }previous_filenamecatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowGroup.javau}(j  (b037e64bcda7bae4bf6ae2e0e77954dd3471e249j  gatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowValidator.javaj  addedj|  K+j}  K j  K+j  https://github.com/palantir/atlasdb/blob/1a421ae20774b0f7960d037d782db6f92163d09e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidator.javaj  https://github.com/palantir/atlasdb/raw/1a421ae20774b0f7960d037d782db6f92163d09e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidator.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidator.java?ref=1a421ae20774b0f7960d037d782db6f92163d09ej  XB  @@ -0,0 +1,43 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WorkflowValidator<WorkflowTypeT extends Workflow> {
+    @Value.Parameter
+    WorkflowTypeT workflow();
+
+    @Value.Parameter
+    List<InvariantReporter<?>> invariants();
+
+    default WorkflowHistoryValidator run() {
+        return WorkflowHistoryValidator.of(workflow().run(), invariants());
+    }
+
+    static <WorkflowTypeT extends Workflow> WorkflowValidator<WorkflowTypeT> of(
+            WorkflowTypeT workflow, List<InvariantReporter<?>> invariants) {
+        return ImmutableWorkflowValidator.of(workflow, invariants);
+    }
+
+    static <WorkflowTypeT extends Workflow> ImmutableWorkflowValidator.Builder<WorkflowTypeT> builder() {
+        return ImmutableWorkflowValidator.builder();
+    }
+}u}(j  (b9a226c6258bcded63690b6c6153d75214078fbej  matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowValidatorRunner.javaj  renamedj|  Kj}  Kj  Kj  https://github.com/palantir/atlasdb/blob/1a421ae20774b0f7960d037d782db6f92163d09e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.javaj  https://github.com/palantir/atlasdb/raw/1a421ae20774b0f7960d037d782db6f92163d09e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.java?ref=1a421ae20774b0f7960d037d782db6f92163d09ej  X  @@ -16,14 +16,20 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import java.util.Arrays;
 import java.util.List;
 
 /**
- * Run the provided workflow and execute the provided invariant reporters.
- *
- * The idea of this class is that long-term we will want to have multiple ways to run/execute workflows,
- * rather than biasing towards the present case (just once).
+ * Run the provided workflow and validate that it is correct with the provided invariants.
  */
-public interface WorkflowRunner<WorkflowTypeT extends Workflow> {
-    void run(List<WorkflowGroup<Workflow>> workflowGroups);
+public interface WorkflowValidatorRunner<WorkflowTypeT extends Workflow> {
+    void run(List<WorkflowValidator<WorkflowTypeT>> workflowValidators);
+
+    default void run(WorkflowValidator<WorkflowTypeT>... workflowValidators) {
+        run(Arrays.asList(workflowValidators));
+    }
+
+    default void run(WorkflowValidator<WorkflowTypeT> workflowValidator) {
+        run(List.of(workflowValidator));
+    }
 }j  datlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowRunner.javau}(j  (bf29b70e61be82fbdf1c9c2b0734953cf229156dj  latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj  modifiedj|  K j}  Kj  K1j  https://github.com/palantir/atlasdb/blob/1a421ae20774b0f7960d037d782db6f92163d09e/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj  https://github.com/palantir/atlasdb/raw/1a421ae20774b0f7960d037d782db6f92163d09e/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=1a421ae20774b0f7960d037d782db6f92163d09ej  Xi  @@ -27,10 +27,12 @@
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
 import com.palantir.atlasdb.workload.invariant.DurableWritesInvariantMetricReporter;
 import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
-import com.palantir.atlasdb.workload.runner.AntithesisWorkflowRunner;
+import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
+import com.palantir.atlasdb.workload.workflow.WorkflowValidator;
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
 import com.palantir.conjure.java.serialization.ObjectMappers;
@@ -41,9 +43,9 @@
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import io.dropwizard.Application;
 import io.dropwizard.jackson.DiscoverableSubtypeResolver;
+import io.dropwizard.lifecycle.setup.LifecycleEnvironment;
 import io.dropwizard.setup.Bootstrap;
 import io.dropwizard.setup.Environment;
-import java.util.List;
 import java.util.Map;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
@@ -82,7 +84,7 @@ public void run(WorkloadServerConfiguration configuration, Environment environme
     }
 
     private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {
-        ExecutorService singleRowTwoCellsExecutorService = environment
+        ExecutorService antithesisWorkflowRunnerExecutorService = environment
                 .lifecycle()
                 .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
                 .build();
@@ -96,20 +98,9 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().singleRowTwoCellsConfig();
 
         log.info("antithesis: start_faults");
-        AntithesisWorkflowRunner.INSTANCE.run(
-                SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
-                        transactionStoreFactory.create(
-                                Map.of(
-                                        workflowConfig.tableConfiguration().tableName(),
-                                        workflowConfig.tableConfiguration().isolationLevel()),
-                                Set.of()),
-                        workflowConfig,
-                        MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)),
-                List.of(
-                        new DurableWritesInvariantMetricReporter(
-                                SingleRowTwoCellsWorkflows.class.getSimpleName(),
-                                DurableWritesMetrics.of(taggedMetricRegistry)),
-                        SerializableInvariantLogReporter.INSTANCE));
+        new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
+                .run(createSingleRowTwoCellsWorkflowGroup(
+                        transactionStoreFactory, workflowConfig, environment.lifecycle()));
         log.info("antithesis: terminate");
 
         workflowsRanLatch.countDown();
@@ -119,6 +110,30 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
+    private WorkflowValidator createSingleRowTwoCellsWorkflowGroup(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleRowTwoCellsWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService singleRowTwoCellsExecutorService = lifecycle
+                .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
+                .build();
+        TransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowValidator.builder()
+                .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)))
+                .addInvariants(new DurableWritesInvariantMetricReporter(
+                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariants(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
     @VisibleForTesting
     CountDownLatch workflowsRanLatch() {
         return workflowsRanLatch;u}(j  (01d9fae6a408dad5ed23ee9d847ff703deb22882j  hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowRunner.javaj  removedj|  K j}  K;j  K;j  https://github.com/palantir/atlasdb/blob/88d243e6231bf013a9b1000fe2a4b2d0de3bc699/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.javaj  https://github.com/palantir/atlasdb/raw/88d243e6231bf013a9b1000fe2a4b2d0de3bc699/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.java?ref=88d243e6231bf013a9b1000fe2a4b2d0de3bc699j  X
  @@ -1,59 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.runner;
-
-import com.google.common.util.concurrent.ListenableFuture;
-import com.google.common.util.concurrent.ListeningExecutorService;
-import com.palantir.atlasdb.workload.invariant.InvariantReporter;
-import com.palantir.atlasdb.workload.workflow.Workflow;
-import com.palantir.atlasdb.workload.workflow.WorkflowGroup;
-import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
-import com.palantir.atlasdb.workload.workflow.WorkflowRunner;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.List;
-import java.util.Map;
-import one.util.streamex.StreamEx;
-
-public final class AntithesisWorkflowRunner implements WorkflowRunner<Workflow> {
-    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisWorkflowRunner.class);
-    private final ListeningExecutorService listeningExecutorService;
-
-    public AntithesisWorkflowRunner(ListeningExecutorService listeningExecutorService) {
-        this.listeningExecutorService = listeningExecutorService;
-    }
-
-    @Override
-    public void run(List<WorkflowGroup<Workflow>> workflowGroups) {
-        Map<ListenableFuture<WorkflowHistory>, List<InvariantReporter<?>>> workflowGroupFutures = StreamEx.of(
-                        workflowGroups)
-                .mapToEntry(WorkflowGroup::workflow, WorkflowGroup::invariants)
-                .mapKeys(workflow -> listeningExecutorService.submit(workflow::run))
-                .toMap();
-
-        log.info("antithesis: stop_faults");
-        workflowGroupFutures.forEach((workflowHistory, invariants) -> invariants.forEach(reporter -> {
-            try {
-                reporter.report(workflowHistory);
-            } catch (RuntimeException e) {
-                log.error("Caught an exception when running and reporting an invariant.", e);
-            }
-            log.info("Dumping transaction log {}", SafeArg.of("transactionLog", workflowHistory.history()));
-        }));
-    }
-}u}(j  (9ce53414f5b0fa782aeca3276c84fe79cbb52b06j  qatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunner.javaj  addedj|  KIj}  K j  KIj  https://github.com/palantir/atlasdb/blob/1a421ae20774b0f7960d037d782db6f92163d09e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javaj  https://github.com/palantir/atlasdb/raw/1a421ae20774b0f7960d037d782db6f92163d09e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.java?ref=1a421ae20774b0f7960d037d782db6f92163d09ej  X
  @@ -0,0 +1,73 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.runner;
+
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistoryValidator;
+import com.palantir.atlasdb.workload.workflow.WorkflowValidator;
+import com.palantir.atlasdb.workload.workflow.WorkflowValidatorRunner;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.concurrent.ExecutionException;
+import java.util.stream.Collectors;
+
+public final class AntithesisWorkflowValidatorRunner implements WorkflowValidatorRunner<Workflow> {
+    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisWorkflowValidatorRunner.class);
+    private final ListeningExecutorService listeningExecutorService;
+
+    public AntithesisWorkflowValidatorRunner(ListeningExecutorService listeningExecutorService) {
+        this.listeningExecutorService = listeningExecutorService;
+    }
+
+    @Override
+    public void run(List<WorkflowValidator<Workflow>> workflowValidators) {
+        try {
+            List<WorkflowHistoryValidator> workflowHistoryValidators = Futures.allAsList(
+                            submitWorkflowValidators(workflowValidators))
+                    .get();
+            log.info("antithesis: stop_faults");
+            workflowHistoryValidators.forEach(this::checkAndReportInvariantViolations);
+        } catch (InterruptedException e) {
+            throw new RuntimeException(e);
+        } catch (ExecutionException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private void checkAndReportInvariantViolations(WorkflowHistoryValidator group) {
+        group.invariants().forEach(invariantReporter -> {
+            try {
+                invariantReporter.report(group.history());
+            } catch (RuntimeException e) {
+                log.error("Caught an exception when running and reporting an invariant.", e);
+            }
+        });
+        log.info("Dumping transaction log {}", SafeArg.of("transactionLog", group.history()));
+    }
+
+    private List<ListenableFuture<WorkflowHistoryValidator>> submitWorkflowValidators(
+            List<WorkflowValidator<Workflow>> workflowValidators) {
+        return workflowValidators.stream()
+                .map(workflowGroup -> listeningExecutorService.submit(workflowGroup::run))
+                .collect(Collectors.toList());
+    }
+}u}(j  (7a5e8dd4c01ddc761284d5c5bdc9c0345ddd2826j  latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowRunnerTest.javaj  removedj|  K j}  K-j  K-j  https://github.com/palantir/atlasdb/blob/88d243e6231bf013a9b1000fe2a4b2d0de3bc699/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.javaj  https://github.com/palantir/atlasdb/raw/88d243e6231bf013a9b1000fe2a4b2d0de3bc699/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.java?ref=88d243e6231bf013a9b1000fe2a4b2d0de3bc699j  X  @@ -1,45 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.runner;
-
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.when;
-
-import com.palantir.atlasdb.workload.invariant.InvariantReporter;
-import com.palantir.atlasdb.workload.workflow.Workflow;
-import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
-import java.util.List;
-import org.junit.Test;
-
-public class AntithesisWorkflowRunnerTest {
-    @Test
-    public void runExecutesWorkflowsAndInvokesInvariantReporter() {
-        Workflow exampleWorkflow = mock(Workflow.class);
-        WorkflowHistory workflowHistory = mock(WorkflowHistory.class);
-        when(exampleWorkflow.run()).thenReturn(workflowHistory);
-        InvariantReporter<Void> exampleInvariantReporterOne = mock(InvariantReporter.class);
-        InvariantReporter<Void> exampleInvariantReporterTwo = mock(InvariantReporter.class);
-        AntithesisWorkflowRunner.INSTANCE.run(
-                exampleWorkflow, List.of(exampleInvariantReporterOne, exampleInvariantReporterTwo));
-        verify(exampleWorkflow, times(1)).run();
-        verify(exampleInvariantReporterOne, times(1)).report(any());
-        verify(exampleInvariantReporterTwo, times(1)).report(any());
-    }
-}u}(j  (3c375623e60cbf1153a9c89b8322acd9f89387f9j  uatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunnerTest.javaj  addedj|  Kqj}  K j  Kqj  https://github.com/palantir/atlasdb/blob/1a421ae20774b0f7960d037d782db6f92163d09e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javaj  https://github.com/palantir/atlasdb/raw/1a421ae20774b0f7960d037d782db6f92163d09e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.java?ref=1a421ae20774b0f7960d037d782db6f92163d09ej  X  @@ -0,0 +1,113 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.runner;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doAnswer;
+import static org.mockito.Mockito.spy;
+import static org.mockito.Mockito.times;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowValidator;
+import java.util.List;
+import java.util.concurrent.Executors;
+import java.util.concurrent.Semaphore;
+import java.util.concurrent.TimeUnit;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class AntithesisWorkflowValidatorRunnerTest {
+
+    private final ListeningExecutorService executorService =
+            MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(2));
+
+    @Mock
+    private Workflow workflow;
+
+    @Mock
+    private WorkflowHistory workflowHistory;
+
+    @Mock
+    private InvariantReporter<Void> exampleInvariantReporterOne;
+
+    @Mock
+    private InvariantReporter<Void> exampleInvariantReporterTwo;
+
+    private WorkflowValidator<Workflow> workflowValidator;
+
+    @Before
+    public void before() {
+        when(workflow.run()).thenReturn(workflowHistory);
+        workflowValidator = WorkflowValidator.builder()
+                .workflow(workflow)
+                .addInvariants(exampleInvariantReporterOne)
+                .addInvariants(exampleInvariantReporterTwo)
+                .build();
+    }
+
+    @Test
+    public void runExecutesWorkflowAndInvokesInvariantReporter() {
+        new AntithesisWorkflowValidatorRunner(executorService).run(workflowValidator);
+        verify(workflow, times(1)).run();
+        verify(exampleInvariantReporterOne, times(1)).report(any());
+        verify(exampleInvariantReporterTwo, times(1)).report(any());
+    }
+
+    @Test
+    public void runExecutesMultipleWorkflowsAndWaitsForAllToFinishBeforeInvokingInvariantReporter() {
+        Semaphore semaphore = new Semaphore(0);
+        Workflow slowWorkflow = spy(new Workflow() {
+            @Override
+            public WorkflowHistory run() {
+                try {
+                    assertThat(semaphore.tryAcquire(5, TimeUnit.SECONDS)).isFalse();
+                } catch (InterruptedException e) {
+                    throw new RuntimeException(e);
+                }
+                return workflowHistory;
+            }
+        });
+
+        WorkflowValidator<Workflow> slowWorkflowValidator =
+                WorkflowValidator.of(slowWorkflow, List.of(exampleInvariantReporterOne));
+
+        doAnswer(_input -> {
+                    semaphore.release();
+                    return null;
+                })
+                .when(exampleInvariantReporterOne)
+                .report(any());
+
+        new AntithesisWorkflowValidatorRunner(executorService).run(workflowValidator, slowWorkflowValidator);
+
+        verify(workflow, times(1)).run();
+        verify(slowWorkflow, times(1)).run();
+        verify(exampleInvariantReporterOne, times(2)).report(any());
+        verify(exampleInvariantReporterTwo, times(1)).report(any());
+    }
+}ueu(58a31e4d48ac138a0ec5e2186c4582a2a89dd72e}(sha(58a31e4d48ac138a0ec5e2186c4582a2a89dd72enode_idEC_kwDOAjP5fdoAKDU4YTMxZTRkNDhhYzEzOGEwZWM1ZTIxODZjNDU4MmEyYTg5ZGQ3MmUcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-04-13T19:17:13Zu	committer}(jԬ  GitHubj֬  noreply@github.comjج  2023-04-13T19:17:13ZumessageDon't register SweeperService (#6516)

* Remove SweeperService

* Add generated changelog entries

---------

Co-authored-by: svc-changelog <svc-changelog@palantir.com>tree}(j̬  (8082d5853e0b1cd57e3483826f49ce8d564bcdeburl`https://api.github.com/repos/palantir/atlasdb/git/trees/8082d5853e0b1cd57e3483826f49ce8d564bcdebuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/58a31e4d48ac138a0ec5e2186c4582a2a89dd72e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkOFU5CRBK7hj4Ov3rIwAAAEcIAI4kmDgEYRbPmZWWci6oDzHF
cvQvulioThjKmz2o16OX87WVtfRQUVfroDoCGY5rRRIWGEmP5GYItAIZ0LSpXBgC
4j5Y3nWHTzbAfkp0Q6+D4CudwnfgEei4wugC+NJioj17fOlekN+I3pSjVvXH1qY5
hbH+iZWnZxZB+rQY1GRqHXQoSe5Tcm4ZWrOaXTZff3zvUZRtw6tuE0mEHdsPOcKG
1SLue2TUH78/18bwJ1cEZS3rVw8NNVa8k8aPaSg4rMKS7WAbmwB3ywuYGCCjU/Y6
dibv5CnKQXBkj95n9fJ1dmUckr+gzc8p6DFgvrO3s0iqsIpIYdvbLpsoiQ182jw=
=jUyA
-----END PGP SIGNATURE-----
payloadX  tree 8082d5853e0b1cd57e3483826f49ce8d564bcdeb
parent f4439832e9bd60ddfcafde5f711bacd8bde20b38
author Patrick Koenig <pkoenig10@gmail.com> 1681413433 -0700
committer GitHub <noreply@github.com> 1681413433 +0100

Don't register SweeperService (#6516)

* Remove SweeperService

* Add generated changelog entries

---------

Co-authored-by: svc-changelog <svc-changelog@palantir.com>uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/58a31e4d48ac138a0ec5e2186c4582a2a89dd72ehtml_urlShttps://github.com/palantir/atlasdb/commit/58a31e4d48ac138a0ec5e2186c4582a2a89dd72ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/58a31e4d48ac138a0ec5e2186c4582a2a89dd72e/commentsjҬ  }(login	pkoenig10idJLvP jά  MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idM      h5j  &https://api.github.com/users/pkoenig10j  https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminujڬ  }(j  web-flowj  J/jά  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj   /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj
  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j̬  (f4439832e9bd60ddfcafde5f711bacd8bde20b38j  ^https://api.github.com/repos/palantir/atlasdb/commits/f4439832e9bd60ddfcafde5f711bacd8bde20b38j  Shttps://github.com/palantir/atlasdb/commit/f4439832e9bd60ddfcafde5f711bacd8bde20b38uastats}(totalM?	additionsK5	deletionsM
ufiles](}(j̬  (5140cb743e991d158d882ff7fb88c203a8ba5c68filenamedatlasdb-config/src/main/java/com/palantir/atlasdb/factory/DefaultLockAndTimestampServiceFactory.javastatusmodifiedj.  Kj/  KchangesK blob_urlhttps://github.com/palantir/atlasdb/blob/58a31e4d48ac138a0ec5e2186c4582a2a89dd72e/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/58a31e4d48ac138a0ec5e2186c4582a2a89dd72e/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java?ref=58a31e4d48ac138a0ec5e2186c4582a2a89dd72epatchX  @@ -107,7 +107,7 @@ public final class DefaultLockAndTimestampServiceFactory implements LockAndTimes
     private final MetricsManager metricsManager;
     private final AtlasDbConfig config;
     private final Refreshable<AtlasDbRuntimeConfig> runtimeConfig;
-    private final Consumer<Object> env;
+    private final Consumer<Object> registrar;
     private final Supplier<LockService> lock;
     private final Supplier<ManagedTimestampService> time;
     private final TimestampStoreInvalidator invalidator;
@@ -122,7 +122,7 @@ public DefaultLockAndTimestampServiceFactory(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -135,7 +135,7 @@ public DefaultLockAndTimestampServiceFactory(
         this.metricsManager = metricsManager;
         this.config = config;
         this.runtimeConfig = runtimeConfig;
-        this.env = env;
+        this.registrar = registrar;
         this.lock = lock;
         this.time = time;
         this.invalidator = invalidator;
@@ -153,7 +153,7 @@ public LockAndTimestampServices createLockAndTimestampServices() {
                 metricsManager,
                 config,
                 runtimeConfig,
-                env,
+                registrar,
                 lock,
                 time,
                 invalidator,
@@ -198,7 +198,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -211,7 +211,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
         AtlasDbRuntimeConfig initialRuntimeConfig = runtimeConfig.get();
         assertNoSpuriousTimeLockBlockInRuntimeConfig(config, initialRuntimeConfig);
         if (config.leader().isPresent()) {
-            return createRawLeaderServices(metricsManager, config.leader().get(), env, lock, time, userAgent);
+            return createRawLeaderServices(metricsManager, config.leader().get(), registrar, lock, time, userAgent);
         } else if (config.timestamp().isPresent() && config.lock().isPresent()) {
             return createRawRemoteServices(metricsManager, config, runtimeConfig, userAgent);
         } else if (TransactionManagers.isUsingTimeLock(config, initialRuntimeConfig)) {
@@ -227,7 +227,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
                     timelockRequestBatcherProviders,
                     knownSchemas);
         } else {
-            return createRawEmbeddedServices(metricsManager, env, lock, time);
+            return createRawEmbeddedServices(metricsManager, registrar, lock, time);
         }
     }
 
@@ -412,13 +412,13 @@ private static Supplier<InternalMultiClientConjureTimelockService> getMultiClien
     private static LockAndTimestampServices createRawLeaderServices(
             MetricsManager metricsManager,
             LeaderConfig leaderConfig,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             UserAgent userAgent) {
         // Create local services, that may or may not end up being registered in an Consumer<Object>.
         LocalPaxosServices localPaxosServices =
-                Leaders.createAndRegisterLocalServices(metricsManager, env, leaderConfig, userAgent);
+                Leaders.createAndRegisterLocalServices(metricsManager, registrar, leaderConfig, userAgent);
 
         LeadershipCoordinator leadershipCoordinator = localPaxosServices.leadershipCoordinator();
         LockService localLock =
@@ -432,9 +432,9 @@ private static LockAndTimestampServices createRawLeaderServices(
         TimestampService localTime = getTimestampFacade(managedTimestampProxy);
         TimestampManagementService localManagement = getTimestampManagementFacade(managedTimestampProxy);
 
-        env.accept(localLock);
-        env.accept(localTime);
-        env.accept(localManagement);
+        registrar.accept(localLock);
+        registrar.accept(localTime);
+        registrar.accept(localManagement);
 
         // Create remote services, that may end up calling our own local services.
         ImmutableServerListConfig serverListConfig = ImmutableServerListConfig.builder()
@@ -586,7 +586,7 @@ private static LockAndTimestampServices createRawRemoteServices(
 
     private static LockAndTimestampServices createRawEmbeddedServices(
             MetricsManager metricsManager,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> managedTimestampServiceSupplier) {
         LockService lockService =
@@ -599,9 +599,9 @@ private static LockAndTimestampServices createRawEmbeddedServices(
         TimestampManagementService timestampManagementService = ServiceCreator.instrumentService(
                 metricsManager.getRegistry(), managedTimestampService, TimestampManagementService.class);
 
-        env.accept(lockService);
-        env.accept(timeService);
-        env.accept(timestampManagementService);
+        registrar.accept(lockService);
+        registrar.accept(timeService);
+        registrar.accept(timestampManagementService);
 
         return ImmutableLockAndTimestampServices.builder()
                 .lock(lockService)u}(j̬  (92cee3c0379971de0a91702380e2b466da96ff6bj4  Fatlasdb-config/src/main/java/com/palantir/atlasdb/factory/Leaders.javaj6  modifiedj.  Kj/  Kj8  K
j9  https://github.com/palantir/atlasdb/blob/58a31e4d48ac138a0ec5e2186c4582a2a89dd72e/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.javaj;  https://github.com/palantir/atlasdb/raw/58a31e4d48ac138a0ec5e2186c4582a2a89dd72e/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.javaj=  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.java?ref=58a31e4d48ac138a0ec5e2186c4582a2a89dd72ej?  X  @@ -79,13 +79,13 @@ private Leaders() {
      * service.
      */
     public static LocalPaxosServices createAndRegisterLocalServices(
-            MetricsManager metricsManager, Consumer<Object> env, LeaderConfig config, UserAgent userAgent) {
+            MetricsManager metricsManager, Consumer<Object> registrar, LeaderConfig config, UserAgent userAgent) {
         LocalPaxosServices localPaxosServices = createInstrumentedLocalServices(metricsManager, config, userAgent);
 
-        env.accept(localPaxosServices.ourAcceptor());
-        env.accept(localPaxosServices.ourLearner());
-        env.accept(localPaxosServices.localPingableLeader());
-        env.accept(new NotCurrentLeaderExceptionMapper());
+        registrar.accept(localPaxosServices.ourAcceptor());
+        registrar.accept(localPaxosServices.ourLearner());
+        registrar.accept(localPaxosServices.localPingableLeader());
+        registrar.accept(new NotCurrentLeaderExceptionMapper());
         return localPaxosServices;
     }
 u}(j̬  (c9e4dada471dee25493cf14881de74df21c3957ej4  Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javaj6  modifiedj.  K	j/  K j8  K)j9  https://github.com/palantir/atlasdb/blob/58a31e4d48ac138a0ec5e2186c4582a2a89dd72e/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj;  https://github.com/palantir/atlasdb/raw/58a31e4d48ac138a0ec5e2186c4582a2a89dd72e/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj=  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=58a31e4d48ac138a0ec5e2186c4582a2a89dd72ej?  X  @@ -79,7 +79,6 @@
 import com.palantir.atlasdb.sweep.SpecificTableSweeper;
 import com.palantir.atlasdb.sweep.SweepBatchConfig;
 import com.palantir.atlasdb.sweep.SweepTaskRunner;
-import com.palantir.atlasdb.sweep.SweeperServiceImpl;
 import com.palantir.atlasdb.sweep.metrics.LegacySweepMetrics;
 import com.palantir.atlasdb.sweep.queue.MultiTableSweepQueueWriter;
 import com.palantir.atlasdb.sweep.queue.TargetedSweeper;
@@ -534,7 +533,7 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
         transactionManager.registerClosingCallback(targetedSweep::close);
 
         initializeCloseable(
-                () -> initializeSweepEndpointAndBackgroundProcess(
+                () -> initializeSweepBackgroundProcess(
                         metricsManager,
                         config(),
                         runtime,
@@ -809,11 +808,11 @@ static boolean timeLockMigrationCompleteIfNeeded(LockAndTimestampServices lockAn
                 .orElse(true);
     }
 
-    private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess(
+    private static BackgroundSweeperImpl initializeSweepBackgroundProcess(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Supplier<AtlasDbRuntimeConfig> runtimeConfigSupplier,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             KeyValueService kvs,
             TransactionService transactionService,
             CleanupFollower follower,
@@ -835,15 +834,14 @@ private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess
                 metricsManager,
                 () -> getSweepBatchConfig(runtimeConfigSupplier.get().sweep()));
 
-        SpecificTableSweeper specificTableSweeper = initializeSweepEndpoint(
-                env,
-                kvs,
+        SpecificTableSweeper specificTableSweeper = SpecificTableSweeper.create(
                 transactionManager,
+                kvs,
                 sweepRunner,
+                SweepTableFactory.of(),
                 sweepPerfLogger,
                 sweepMetrics,
-                config.initializeAsync(),
-                sweepBatchConfigSource);
+                config.initializeAsync());
 
         BackgroundSweeperImpl backgroundSweeper = BackgroundSweeperImpl.create(
                 metricsManager,
@@ -864,27 +862,6 @@ private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess
         return backgroundSweeper;
     }
 
-    private static SpecificTableSweeper initializeSweepEndpoint(
-            Consumer<Object> env,
-            KeyValueService kvs,
-            TransactionManager transactionManager,
-            SweepTaskRunner sweepRunner,
-            BackgroundSweeperPerformanceLogger sweepPerfLogger,
-            LegacySweepMetrics sweepMetrics,
-            boolean initializeAsync,
-            AdjustableSweepBatchConfigSource sweepBatchConfigSource) {
-        SpecificTableSweeper specificTableSweeper = SpecificTableSweeper.create(
-                transactionManager,
-                kvs,
-                sweepRunner,
-                SweepTableFactory.of(),
-                sweepPerfLogger,
-                sweepMetrics,
-                initializeAsync);
-        env.accept(new SweeperServiceImpl(specificTableSweeper, sweepBatchConfigSource));
-        return specificTableSweeper;
-    }
-
     private static SweepBatchConfig getSweepBatchConfig(SweepConfig sweepConfig) {
         return ImmutableSweepBatchConfig.builder()
                 .maxCellTsPairsToExamine(sweepConfig.readLimit())
@@ -940,7 +917,7 @@ public static LockAndTimestampServices createLockAndTimestampServicesForCli(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfigSupplier,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -950,7 +927,7 @@ public static LockAndTimestampServices createLockAndTimestampServicesForCli(
                         metricsManager,
                         config,
                         runtimeConfigSupplier,
-                        env,
+                        registrar,
                         lock,
                         time,
                         invalidator,u}(j̬  (7b553ba97fea29cc28f91d035e5cbe8060e8cae3j4  hatlasdb-config/src/test/java/com/palantir/atlasdb/config/TransactionManagersAsyncInitializationTest.javaj6  modifiedj.  Kj/  Kj8  Kj9  https://github.com/palantir/atlasdb/blob/58a31e4d48ac138a0ec5e2186c4582a2a89dd72e/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.javaj;  https://github.com/palantir/atlasdb/raw/58a31e4d48ac138a0ec5e2186c4582a2a89dd72e/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.javaj=  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.java?ref=58a31e4d48ac138a0ec5e2186c4582a2a89dd72ej?  X  @@ -45,7 +45,7 @@ public class TransactionManagersAsyncInitializationTest {
     private static final String USER_AGENT_VERSION = "3.1415926.5358979";
     private static final UserAgent USER_AGENT = UserAgent.of(UserAgent.Agent.of(USER_AGENT_NAME, USER_AGENT_VERSION));
 
-    private final Consumer<Object> environment = mock(Consumer.class);
+    private final Consumer<Object> registrar = mock(Consumer.class);
 
     @Test
     public void asyncInitializationEventuallySucceeds() {
@@ -59,7 +59,7 @@ public void asyncInitializationEventuallySucceeds() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema())
                 .build()
                 .serializable();
@@ -84,7 +84,7 @@ public void transactionManagersBuilderDoesNotThrowIfAsyncInitialisationFailsRepe
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema());
 
         assertThatCode(() -> build.build().serializable()).doesNotThrowAnyException();u}(j̬  (02fd2f3ca2aca4164d40955a1e90f300421e02dcj4  Patlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweeperService.javaj6  removedj.  K j/  Kbj8  Kbj9  https://github.com/palantir/atlasdb/blob/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperService.javaj;  https://github.com/palantir/atlasdb/raw/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperService.javaj=  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperService.java?ref=f4439832e9bd60ddfcafde5f711bacd8bde20b38j?  X-  @@ -1,98 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import com.palantir.logsafe.Safe;
-import java.util.Optional;
-import javax.ws.rs.Consumes;
-import javax.ws.rs.POST;
-import javax.ws.rs.Path;
-import javax.ws.rs.Produces;
-import javax.ws.rs.QueryParam;
-import javax.ws.rs.core.MediaType;
-
-/**
- * Provides endpoints for sweeping a specific table.
- */
-@Path("/sweep")
-@Produces(MediaType.APPLICATION_JSON)
-@Consumes(MediaType.APPLICATION_JSON)
-public interface SweeperService {
-
-    default SweepTableResponse sweepTableFully(String tableName) {
-        return sweepTable(
-                tableName, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
-    }
-
-    default SweepTableResponse sweepTableFrom(String tableName, String startRow) {
-        return sweepTable(
-                tableName,
-                Optional.of(startRow),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-    }
-
-    /**
-     * Sweeps a particular table.
-     *
-     * @param tableName the table to sweep, in the format namespace.table_name (e.g. myapp.users)
-     * @param startRow (Optional) the row to start from, encoded as a hex string (e.g. 12345abcde)
-     * @param fullSweep (Optional; default true) whether to sweep the full table; if false just runs one batch
-     * @param maxCellTsPairsToExamine (Optional) see {@link SweepBatchConfig#maxCellTsPairsToExamine()}
-     * @param candidateBatchSize (Optional) see {@link SweepBatchConfig#candidateBatchSize()}
-     * @param deleteBatchSize (Optional) see {@link SweepBatchConfig#deleteBatchSize()}
-     */
-    @POST
-    @Path("sweep-table")
-    SweepTableResponse sweepTable(
-            @QueryParam("tablename") String tableName,
-            @QueryParam("startRow") Optional<String> startRow,
-            @Safe @QueryParam("fullSweep") Optional<Boolean> fullSweep,
-            @Safe @QueryParam("maxCellTsPairsToExamine") Optional<Integer> maxCellTsPairsToExamine,
-            @Safe @QueryParam("candidateBatchSize") Optional<Integer> candidateBatchSize,
-            @Safe @QueryParam("deleteBatchSize") Optional<Integer> deleteBatchSize);
-
-    /**
-     * Sweeps a table, but intentionally probabilistically skips a fraction of eligible entries to prevent issues that
-     * might arise from having too many consecutive deletes in the underlying KVS. This is expected to be safe to
-     * invoke at least twice without cleanup at the KVS level, but generally the expected usage is to run once, and
-     * then invoke {@link #sweepTable(String, Optional, Optional, Optional, Optional, Optional)} to clean any
-     * skipped values once KVS cleanup, such as compactions, is done.
-     *
-     * Implementation must respect the usual sweep guarantee: no (possibly in-flight) transaction may as a result of
-     * this operation read a version (or lack of one) of a cell different than it would have read if this operation had
-     * not run, and still succeed. In particular, this means that if any version of a cell is retained, then also the
-     * latest version prior to the sweep timestamp of the same cell must not be removed (even if it is a delete).
-     *
-     * @param tableName the table to sweep, in the format namespace.table_name (e.g. myapp.users)
-     * @param startRow (Optional) the row to start from, encoded as a hex string (e.g. 12345abcde)
-     * @param fullSweep (Optional; default true) whether to sweep the full table; if false just runs one batch
-     * @param maxCellTsPairsToExamine (Optional) see {@link SweepBatchConfig#maxCellTsPairsToExamine()}
-     * @param candidateBatchSize (Optional) see {@link SweepBatchConfig#candidateBatchSize()}
-     * @param deleteBatchSize (Optional) see {@link SweepBatchConfig#deleteBatchSize()}
-     */
-    @POST
-    @Path("sweep-previously-conservative-now-thorough-table")
-    SweepTableResponse sweepPreviouslyConservativeNowThoroughTable(
-            @QueryParam("tablename") String tableName,
-            @QueryParam("startRow") Optional<String> startRow,
-            @Safe @QueryParam("fullSweep") Optional<Boolean> fullSweep,
-            @Safe @QueryParam("maxCellTsPairsToExamine") Optional<Integer> maxCellTsPairsToExamine,
-            @Safe @QueryParam("candidateBatchSize") Optional<Integer> candidateBatchSize,
-            @Safe @QueryParam("deleteBatchSize") Optional<Integer> deleteBatchSize);
-}u}(j̬  (a043b1f465845d038463867d0cef3a602201da50j4  Tatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweeperServiceImpl.javaj6  removedj.  K j/  Kj8  Kj9  https://github.com/palantir/atlasdb/blob/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImpl.javaj;  https://github.com/palantir/atlasdb/raw/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImpl.javaj=  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImpl.java?ref=f4439832e9bd60ddfcafde5f711bacd8bde20b38j?  X.  @@ -1,169 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.SweepResults;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
-import com.palantir.atlasdb.logging.LoggingArgs;
-import com.palantir.logsafe.Preconditions;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.UnsafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.Optional;
-
-public final class SweeperServiceImpl implements SweeperService {
-    private static final SafeLogger log = SafeLoggerFactory.get(SweeperServiceImpl.class);
-
-    private final SpecificTableSweeper specificTableSweeper;
-    private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-
-    public SweeperServiceImpl(
-            SpecificTableSweeper specificTableSweeper, AdjustableSweepBatchConfigSource sweepBatchConfigSource) {
-        this.specificTableSweeper = specificTableSweeper;
-        this.sweepBatchConfigSource = sweepBatchConfigSource;
-    }
-
-    @Override
-    public SweepTableResponse sweepTable(
-            String tableName,
-            Optional<String> startRow,
-            Optional<Boolean> fullSweep,
-            Optional<Integer> maxCellTsPairsToExamine,
-            Optional<Integer> candidateBatchSize,
-            Optional<Integer> deleteBatchSize) {
-        TableReference tableRef = getTableRef(tableName);
-        checkTableExists(tableName, tableRef);
-
-        byte[] decodedStartRow = startRow.map(PtBytes::decodeHexString).orElse(PtBytes.EMPTY_BYTE_ARRAY);
-        SweepBatchConfig config =
-                buildConfigWithOverrides(maxCellTsPairsToExamine, candidateBatchSize, deleteBatchSize);
-
-        return SweepTableResponse.from(
-                runSweep(fullSweep, tableRef, decodedStartRow, config, SweepTaskRunner.RunType.FULL));
-    }
-
-    @Override
-    public SweepTableResponse sweepPreviouslyConservativeNowThoroughTable(
-            String tableName,
-            Optional<String> startRow,
-            Optional<Boolean> fullSweep,
-            Optional<Integer> maxCellTsPairsToExamine,
-            Optional<Integer> candidateBatchSize,
-            Optional<Integer> deleteBatchSize) {
-        TableReference tableRef = getTableRef(tableName);
-        checkTableExists(tableName, tableRef);
-
-        byte[] decodedStartRow = startRow.map(PtBytes::decodeHexString).orElse(PtBytes.EMPTY_BYTE_ARRAY);
-        SweepBatchConfig config =
-                buildConfigWithOverrides(maxCellTsPairsToExamine, candidateBatchSize, deleteBatchSize);
-
-        return SweepTableResponse.from(runSweep(
-                fullSweep, tableRef, decodedStartRow, config, SweepTaskRunner.RunType.WAS_CONSERVATIVE_NOW_THOROUGH));
-    }
-
-    private SweepResults runSweep(
-            Optional<Boolean> fullSweep,
-            TableReference tableRef,
-            byte[] decodedStartRow,
-            SweepBatchConfig config,
-            SweepTaskRunner.RunType runType) {
-        if (!fullSweep.isPresent()) {
-            log.warn("fullSweep parameter was not specified, defaulting to true");
-        }
-
-        if (fullSweep.orElse(true)) {
-            log.info(
-                    "Running sweep of full table {}, "
-                            + "with maxCellTsPairsToExamine: {}, candidateBatchSize: {}, deleteBatchSize: {}, "
-                            + "starting from row {}",
-                    LoggingArgs.tableRef(tableRef),
-                    SafeArg.of("maxCellTsPairsToExamine", config.maxCellTsPairsToExamine()),
-                    SafeArg.of("candidateBatchSize", config.candidateBatchSize()),
-                    SafeArg.of("deleteBatchSize", config.deleteBatchSize()),
-                    UnsafeArg.of("decodedStartRow", decodedStartRow));
-            return runFullSweepWithoutSavingResults(tableRef, decodedStartRow, config, runType);
-        } else {
-            log.info(
-                    "Running sweep of a single batch on table {}, "
-                            + "with maxCellTsPairsToExamine: {}, candidateBatchSize: {}, deleteBatchSize: {}, "
-                            + "starting from row {}",
-                    LoggingArgs.tableRef(tableRef),
-                    SafeArg.of("maxCellTsPairsToExamine", config.maxCellTsPairsToExamine()),
-                    SafeArg.of("candidateBatchSize", config.candidateBatchSize()),
-                    SafeArg.of("deleteBatchSize", config.deleteBatchSize()),
-                    UnsafeArg.of("decodedStartRow", decodedStartRow));
-            return runOneBatchWithoutSavingResults(tableRef, decodedStartRow, config, runType);
-        }
-    }
-
-    private SweepBatchConfig buildConfigWithOverrides(
-            Optional<Integer> maxCellTsPairsToExamine,
-            Optional<Integer> candidateBatchSize,
-            Optional<Integer> deleteBatchSize) {
-        ImmutableSweepBatchConfig.Builder batchConfigBuilder =
-                ImmutableSweepBatchConfig.builder().from(sweepBatchConfigSource.getAdjustedSweepConfig());
-
-        maxCellTsPairsToExamine.ifPresent(batchConfigBuilder::maxCellTsPairsToExamine);
-        candidateBatchSize.ifPresent(batchConfigBuilder::candidateBatchSize);
-        deleteBatchSize.ifPresent(batchConfigBuilder::deleteBatchSize);
-
-        return batchConfigBuilder.build();
-    }
-
-    private TableReference getTableRef(String tableName) {
-        Preconditions.checkArgument(
-                TableReference.isFullyQualifiedName(tableName),
-                "Table name is not fully qualified",
-                LoggingArgs.safeInternalTableName(tableName));
-        return TableReference.createFromFullyQualifiedName(tableName);
-    }
-
-    private void checkTableExists(String tableName, TableReference tableRef) {
-        Preconditions.checkArgument(
-                specificTableSweeper.getKvs().getAllTableNames().contains(tableRef),
-                "Table requested to sweep does not exist",
-                LoggingArgs.safeInternalTableName(tableName));
-    }
-
-    private SweepResults runFullSweepWithoutSavingResults(
-            TableReference tableRef,
-            byte[] startRow,
-            SweepBatchConfig sweepBatchConfig,
-            SweepTaskRunner.RunType runType) {
-        SweepResults cumulativeResults = SweepResults.createEmptySweepResult(Optional.of(startRow));
-
-        while (cumulativeResults.getNextStartRow().isPresent()) {
-            SweepResults results = runOneBatchWithoutSavingResults(
-                    tableRef, cumulativeResults.getNextStartRow().get(), sweepBatchConfig, runType);
-
-            specificTableSweeper.updateTimeMetricsOneIteration(
-                    results.getTimeInMillis(), results.getTimeElapsedSinceStartedSweeping());
-            cumulativeResults = cumulativeResults.accumulateWith(results);
-        }
-
-        return cumulativeResults;
-    }
-
-    private SweepResults runOneBatchWithoutSavingResults(
-            TableReference tableRef,
-            byte[] startRow,
-            SweepBatchConfig sweepBatchConfig,
-            SweepTaskRunner.RunType runType) {
-        return specificTableSweeper.runOneIteration(tableRef, startRow, sweepBatchConfig, runType);
-    }
-}u}(j̬  (dccc318b332ffaa971355af06b94dc51f14199e0j4  Xatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/SweeperServiceImplTest.javaj6  removedj.  K j/  Kj8  Kj9  https://github.com/palantir/atlasdb/blob/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplTest.javaj;  https://github.com/palantir/atlasdb/raw/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplTest.javaj=  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplTest.java?ref=f4439832e9bd60ddfcafde5f711bacd8bde20b38j?  X`!  @@ -1,205 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.never;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoMoreInteractions;
-import static org.mockito.Mockito.when;
-
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.io.BaseEncoding;
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.SweepResults;
-import com.palantir.atlasdb.util.DropwizardClientRule;
-import com.palantir.atlasdb.util.TestJaxRsClientFactory;
-import com.palantir.conjure.java.api.errors.RemoteException;
-import com.palantir.conjure.java.server.jersey.ConjureJerseyFeature;
-import java.util.List;
-import java.util.Optional;
-import javax.ws.rs.core.Response;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Rule;
-import org.junit.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-
-public class SweeperServiceImplTest extends SweeperTestSetup {
-
-    private static final String VALID_START_ROW = "0102030A";
-    private static final String LOWERCASE_BUT_VALID_START_ROW = "abadcafe";
-    private static final String MIXED_CASE_START_ROW = "AaAaAaAaAa1111";
-    private static final String INVALID_START_ROW = "xyz";
-    SweeperService sweeperService;
-
-    private static final SweepResults RESULTS_NO_MORE_TO_SWEEP = SweepResults.createEmptySweepResultWithNoMoreToSweep();
-    private static final SweepResults RESULTS_MORE_TO_SWEEP = SweepResults.createEmptySweepResultWithMoreToSweep();
-
-    @Rule
-    public DropwizardClientRule dropwizardClientRule = new DropwizardClientRule(
-            new SweeperServiceImpl(getSpecificTableSweeperService(), sweepBatchConfigSource),
-            ConjureJerseyFeature.INSTANCE);
-
-    @Override
-    @Before
-    public void setup() {
-        super.setup();
-
-        sweeperService = TestJaxRsClientFactory.createJaxRsClientForTest(
-                SweeperService.class,
-                SweeperServiceImplTest.class,
-                dropwizardClientRule.baseUri().toString());
-
-        setupTaskRunner(RESULTS_NO_MORE_TO_SWEEP);
-        when(kvs.getAllTableNames()).thenReturn(ImmutableSet.of(TABLE_REF));
-    }
-
-    @After
-    public void after() {
-        verifyNoSweepResultsSaved();
-    }
-
-    @Test
-    public void sweepingNonFullyTableShouldNotBeSuccessful() {
-        assertThatExceptionOfType(RemoteException.class)
-                .isThrownBy(() -> sweeperService.sweepTableFully("non_fully_qualified_name"))
-                .matches(ex -> ex.getStatus() == Response.Status.BAD_REQUEST.getStatusCode());
-    }
-
-    @Test
-    public void sweepingNonExistingTableShouldNotBeSuccessful() {
-        assertThatExceptionOfType(RemoteException.class)
-                .isThrownBy(() -> sweeperService.sweepTableFully("ns.non_existing_table"))
-                .matches(ex -> ex.getStatus() == Response.Status.BAD_REQUEST.getStatusCode());
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithValidStartRowShouldBeSuccessful() {
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), VALID_START_ROW);
-    }
-
-    @Test
-    public void sweepTableFromStartRowShouldAcceptLowercaseBase16Encodings() {
-        when(kvs.getAllTableNames()).thenReturn(ImmutableSet.of(TABLE_REF));
-
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), LOWERCASE_BUT_VALID_START_ROW);
-    }
-
-    @Test
-    public void sweepTableFromStartRowShouldAcceptMixedCaseBase16Encodings() {
-        when(kvs.getAllTableNames()).thenReturn(ImmutableSet.of(TABLE_REF));
-
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), MIXED_CASE_START_ROW);
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithInValidStartRowShouldThrow() {
-        assertThatExceptionOfType(RemoteException.class)
-                .isThrownBy(() -> sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), INVALID_START_ROW))
-                .matches(ex -> ex.getStatus() == Response.Status.BAD_REQUEST.getStatusCode());
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithBatchConfigWithNullStartRowShouldBeSuccessful() {
-        sweeperService.sweepTable(
-                TABLE_REF.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.of(1000),
-                Optional.of(1000),
-                Optional.of(500));
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithBatchConfigWithExactlyOneNonNullBatchConfigShouldBeSuccessful() {
-        sweeperService.sweepTable(
-                TABLE_REF.getQualifiedName(),
-                Optional.of(encodeStartRow(new byte[] {1, 2, 3})),
-                Optional.empty(),
-                Optional.of(10),
-                Optional.empty(),
-                Optional.empty());
-    }
-
-    @Test
-    public void testWriteProgressAndPriorityNotUpdatedAfterSweepRunsSuccessfully_butMetricsAre() {
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), encodeStartRow(new byte[] {1, 2, 3}));
-        ArgumentCaptor<Long> sweepTime = ArgumentCaptor.forClass(Long.class);
-        ArgumentCaptor<Long> totalTimeElapsed = ArgumentCaptor.forClass(Long.class);
-
-        Mockito.verify(sweepMetrics, times(1)).updateSweepTime(sweepTime.capture(), totalTimeElapsed.capture());
-        verifyExpectedArgument(sweepTime.getValue(), totalTimeElapsed.getValue());
-    }
-
-    @Test
-    public void sweepsEntireTableByDefault() {
-        List<byte[]> startRows = ImmutableList.of(PtBytes.EMPTY_BYTE_ARRAY, new byte[] {0x10}, new byte[] {0x50});
-
-        for (int i = 0; i < startRows.size(); i++) {
-            byte[] currentRow = startRows.get(i);
-            Optional<byte[]> nextRow =
-                    (i + 1) == startRows.size() ? Optional.empty() : Optional.of(startRows.get(i + 1));
-
-            SweepResults results = SweepResults.createEmptySweepResult(nextRow);
-            when(sweepTaskRunner.run(any(), any(), eq(currentRow), any())).thenReturn(results);
-        }
-
-        sweeperService.sweepTableFully(TABLE_REF.getQualifiedName());
-
-        startRows.forEach(row -> verify(sweepTaskRunner).run(any(), any(), eq(row), any()));
-        verifyNoMoreInteractions(sweepTaskRunner);
-    }
-
-    @Test
-    public void runsOneIterationIfRequested() {
-        setupTaskRunner(RESULTS_MORE_TO_SWEEP);
-
-        sweeperService.sweepTable(
-                TABLE_REF.getQualifiedName(),
-                Optional.empty(),
-                Optional.of(false),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        verify(sweepTaskRunner, times(1)).run(any(), any(), any(), any());
-        verifyNoMoreInteractions(sweepTaskRunner);
-    }
-
-    private void verifyExpectedArgument(long sweepTime, long totalTimeElapsed) {
-        assertThat(RESULTS_NO_MORE_TO_SWEEP.getTimeInMillis()).isEqualTo(sweepTime);
-        assertThat(totalTimeElapsed)
-                .isBetween(
-                        RESULTS_NO_MORE_TO_SWEEP.getTimeElapsedSinceStartedSweeping() - 1000L,
-                        RESULTS_NO_MORE_TO_SWEEP.getTimeElapsedSinceStartedSweeping());
-    }
-
-    private String encodeStartRow(byte[] rowBytes) {
-        return BaseEncoding.base16().encode(rowBytes);
-    }
-
-    private void verifyNoSweepResultsSaved() {
-        verify(progressStore, never()).saveProgress(any());
-        verify(priorityStore, never()).update(any(), any(), any());
-    }
-}u}(j̬  (d030dbed17299b5450443775cf43034372a1ca11j4  datlasdb-tests-shared/src/main/java/com/palantir/atlasdb/sweep/SweeperServiceImplIntegrationTest.javaj6  removedj.  K j/  Kj8  Kj9  https://github.com/palantir/atlasdb/blob/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplIntegrationTest.javaj;  https://github.com/palantir/atlasdb/raw/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplIntegrationTest.javaj=  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplIntegrationTest.java?ref=f4439832e9bd60ddfcafde5f711bacd8bde20b38j?  X&  @@ -1,235 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.Cell;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.Value;
-import com.palantir.atlasdb.keyvalue.impl.InMemoryKeyValueService;
-import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
-import com.palantir.common.streams.KeyedStream;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.concurrent.ThreadLocalRandom;
-import java.util.stream.Collectors;
-import java.util.stream.IntStream;
-import org.junit.Before;
-import org.junit.Test;
-
-public class SweeperServiceImplIntegrationTest extends AbstractBackgroundSweeperIntegrationTest {
-    private SweeperService sweeperService;
-
-    @Before
-    @Override
-    public void setup() {
-        super.setup();
-        sweeperService = new SweeperServiceImpl(specificTableSweeper, sweepBatchConfigSource);
-    }
-
-    @Override
-    @Test
-    public void smokeTest() {
-        createTable(TABLE_1, SweepStrategy.CONSERVATIVE);
-        putManyCells(TABLE_1, 100, 110);
-        putManyCells(TABLE_1, 103, 113);
-        putManyCells(TABLE_1, 105, 115);
-        sweeperService.sweepTableFully(TABLE_1.getQualifiedName());
-        verifyTableSwept(TABLE_1, 75, true);
-    }
-
-    @Test
-    public void previouslyConservativeErasesMostExistingSentinelsInThoroughTable() {
-        skipCellVersion.setPeriod(Integer.MAX_VALUE);
-        createTable(TABLE_1, SweepStrategy.THOROUGH);
-
-        Map<Cell, byte[]> sentinelWrites = IntStream.range(0, 100)
-                .mapToObj(PtBytes::toBytes)
-                .map(bytes -> Cell.create(bytes, bytes))
-                .collect(Collectors.toMap(cell -> cell, _ignore -> PtBytes.EMPTY_BYTE_ARRAY));
-        kvs.put(TABLE_1, sentinelWrites, Value.INVALID_VALUE_TIMESTAMP);
-        Map<Cell, Long> readMap = KeyedStream.stream(sentinelWrites)
-                .map(_ignore -> Long.MAX_VALUE)
-                .collectToMap();
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(100);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(1);
-    }
-
-    @Test
-    public void previouslyConservativeRunsFullSweepIfTableIsStillConservativelySwept() {
-        createTable(TABLE_1, SweepStrategy.CONSERVATIVE);
-
-        Map<Cell, byte[]> writes = KeyedStream.of(IntStream.range(0, 100).boxed())
-                .mapKeys(PtBytes::toBytes)
-                .mapKeys(bytes -> Cell.create(bytes, bytes))
-                .map(PtBytes::toBytes)
-                .collectToMap();
-        kvs.put(TABLE_1, writes, 100L);
-        txService.putUnlessExists(100L, 101L);
-        kvs.put(TABLE_1, writes, 103L);
-        txService.putUnlessExists(103L, 104L);
-        Map<Cell, Long> readMap =
-                KeyedStream.stream(writes).map(_ignore -> 102L).collectToMap();
-
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(100);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        Map<Cell, Value> reads = kvs.get(TABLE_1, readMap);
-        // lower ts entries are swept, but we have sentinels
-        assertThat(reads.values().stream().map(Value::getTimestamp).collect(Collectors.toSet()))
-                .containsExactly(Value.INVALID_VALUE_TIMESTAMP);
-        assertThat(reads).hasSize(100);
-        Map<Cell, Long> readsAtMaxTs =
-                KeyedStream.stream(readMap).map(_ignore -> Long.MAX_VALUE).collectToMap();
-        Map<Cell, Value> maxTsReads = kvs.get(TABLE_1, readsAtMaxTs);
-        assertThat(maxTsReads.values().stream().map(Value::getTimestamp).collect(Collectors.toSet()))
-                .containsExactly(103L);
-        assertThat(maxTsReads).hasSize(100);
-    }
-
-    /**
-     * To help understand the test below, refer to the tables.
-     * Before sweep
-     * +----------+--------+-----------+
-     * | START_TS | VALUES | DELETIONS |
-     * +----------+--------+-----------+
-     * |      100 |    500 |       500 |
-     * |      103 |    500 |       500 |
-     * +----------+--------+-----------+
-     *
-     * After sweep
-     * +----------+--------+-----------+
-     * | START_TS | VALUES | DELETIONS |
-     * +----------+--------+-----------+
-     * |      100 |      6 |         5 |
-     * |      103 |    500 |     5 + 5 |
-     * +----------+--------+-----------+
-     */
-    @Test
-    public void previouslyConservativeRespectsSkipPeriodWhenSweepingNormally() {
-        skipCellVersion.setPeriod(9);
-        createTable(TABLE_1, SweepStrategy.THOROUGH);
-
-        Map<Cell, byte[]> writes = KeyedStream.of(IntStream.range(0, 1000).boxed())
-                .mapKeys(PtBytes::toBytes)
-                .mapKeys(bytes -> Cell.create(bytes, bytes))
-                .map(count -> count < 500 ? PtBytes.toBytes(count) : PtBytes.EMPTY_BYTE_ARRAY)
-                .collectToMap();
-        kvs.put(TABLE_1, writes, 100L);
-        txService.putUnlessExists(100L, 101L);
-        kvs.put(TABLE_1, writes, 103L);
-        txService.putUnlessExists(103L, 104L);
-
-        Map<Cell, Long> readMap =
-                KeyedStream.stream(writes).map(_ignore -> 102L).collectToMap();
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(1000);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        assertThat(kvs.get(TABLE_1, readMap))
-                .as("deletes all but 11 entries at lower timestamp ~ 1%")
-                .hasSize(11);
-        Map<Cell, Long> readsAtMaxTs =
-                KeyedStream.stream(readMap).map(_ignore -> Long.MAX_VALUE).collectToMap();
-        Map<Cell, Value> latestVisibleVersions = kvs.get(TABLE_1, readsAtMaxTs);
-        assertThat(latestVisibleVersions.values().stream()
-                        .map(Value::getTimestamp)
-                        .noneMatch(timestamp -> timestamp == 100L))
-                .as("none of the entries at lower ts are naked")
-                .isTrue();
-        assertThat(latestVisibleVersions)
-                .as("500 non-deletes, 5 deletes skipped normally, and 5 skipped to prevent revealing at lower ts")
-                .hasSize(510);
-    }
-
-    @Test
-    public void sweepPreviouslyConservativeNowThoroughTableFuzzTest() {
-        skipCellVersion.makeNonDeterministic();
-        createTable(TABLE_1, SweepStrategy.THOROUGH);
-
-        Set<Cell> cells = IntStream.range(0, 10_000)
-                .boxed()
-                .map(PtBytes::toBytes)
-                .map(bytes -> Cell.create(bytes, bytes))
-                .collect(Collectors.toSet());
-
-        for (int i = 0; i < 10; i++) {
-            Map<Cell, byte[]> writes = KeyedStream.of(cells)
-                    .map(cell ->
-                            ThreadLocalRandom.current().nextBoolean() ? cell.getRowName() : PtBytes.EMPTY_BYTE_ARRAY)
-                    .collectToMap();
-            kvs.put(TABLE_1, writes, 100L + 2L * i);
-            txService.putUnlessExists(100L + 2L * i, 101L + 2L * i);
-        }
-
-        Map<Cell, Long> readMap = KeyedStream.of(cells).map(_ignore -> 102L).collectToMap();
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(10_000);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        assertThat(kvs.get(TABLE_1, readMap).size())
-                .as("expected number of remaining entries is 1%, ~100")
-                .isBetween(50, 200);
-
-        Map<Cell, Long> readsAtMaxTs =
-                KeyedStream.of(cells).map(_ignore -> Long.MAX_VALUE).collectToMap();
-        Map<Cell, Value> latestVisibleVersions = kvs.get(TABLE_1, readsAtMaxTs);
-        assertThat(latestVisibleVersions.values().stream()
-                        .map(Value::getTimestamp)
-                        .allMatch(ts -> ts == 100 + 2 * 9))
-                .as("every visible cell still has the version at greatest timestamp")
-                .isTrue();
-        assertThat(latestVisibleVersions.size())
-                .as("expected number of cells that are fully deleted is ~45.22%, ~5500 remaining")
-                .isBetween(4500, 6500);
-    }
-
-    @Override
-    protected KeyValueService getKeyValueService() {
-        return new InMemoryKeyValueService(true);
-    }
-}u}(j̬  (b477ac45a67d3461a2afb8a529c94e3055b5291cj4  \atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/factory/TransactionManagersTest.javaj6  modifiedj.  Kj/  Kj8  Kj9  https://github.com/palantir/atlasdb/blob/58a31e4d48ac138a0ec5e2186c4582a2a89dd72e/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javaj;  https://github.com/palantir/atlasdb/raw/58a31e4d48ac138a0ec5e2186c4582a2a89dd72e/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javaj=  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.java?ref=58a31e4d48ac138a0ec5e2186c4582a2a89dd72ej?  X  @@ -165,7 +165,7 @@ public class TransactionManagersTest {
     private AtlasDbConfig config;
     private AtlasDbRuntimeConfig mockAtlasDbRuntimeConfig;
 
-    private Consumer<Object> environment;
+    private Consumer<Object> registrar;
     private TimestampStoreInvalidator invalidator;
     private Consumer<Runnable> originalAsyncMethod;
 
@@ -208,7 +208,7 @@ public void setUp() {
         when(mockAtlasDbRuntimeConfig.timelockRuntime()).thenReturn(Optional.empty());
         when(mockAtlasDbRuntimeConfig.remotingClient()).thenReturn(RemotingClientConfigs.DEFAULT);
 
-        environment = mock(Consumer.class);
+        registrar = mock(Consumer.class);
 
         invalidator = mock(TimestampStoreInvalidator.class);
         when(invalidator.backupAndInvalidate()).thenReturn(EMBEDDED_BOUND);
@@ -236,7 +236,7 @@ public void cannotProvideRuntimeConfigTwice() {
                         .userAgent(USER_AGENT)
                         .globalMetricsRegistry(new MetricRegistry())
                         .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                        .registrar(environment)
+                        .registrar(registrar)
                         .runtimeConfig(Refreshable.only(Optional.empty()))
                         .runtimeConfigSupplier(Optional::empty)
                         .build())
@@ -351,7 +351,7 @@ public void setsGlobalDefaultLockTimeout() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build()
                 .serializable();
 
@@ -412,7 +412,7 @@ public void runsClosingCallbackOnShutdown() throws Exception {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build()
                 .serializable();
         manager.registerClosingCallback(callback);
@@ -432,7 +432,7 @@ public void keyValueServiceMetricsDoNotContainUserAgent() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build()
                 .serializable();
         assertThat(metrics.getNames().stream().anyMatch(metricName -> metricName.contains(USER_AGENT_NAME)))
@@ -453,7 +453,7 @@ public void overriddenServiceNameIsReturned() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .serviceIdentifierOverride("overriden")
                 .build();
 
@@ -473,7 +473,7 @@ public void serviceNameIsFetchedFromAtlasConfig() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build();
         assertThat(transactionManagers.serviceName()).isEqualTo("namespace");
     }
@@ -493,7 +493,7 @@ public void serviceNameIsFetchedFromKvsConfigWhenItIsNotPresentInAtlasConfig() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build();
 
         assertThat(transactionManagers.serviceName()).isEqualTo("namespace");
@@ -510,7 +510,7 @@ public void serviceNameFallsBackToDefaultWhenNamespaceIsNotPresent() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build();
 
         assertThat(transactionManagers.serviceName()).isEqualTo("UNKNOWN");
@@ -520,7 +520,7 @@ public void serviceNameFallsBackToDefaultWhenNamespaceIsNotPresent() {
     public void interruptingLocalLeaderElectionTerminates() throws IOException {
         Leaders.LocalPaxosServices localPaxosServices = Leaders.createAndRegisterLocalServices(
                 metricsManager,
-                environment,
+                registrar,
                 ImmutableLeaderConfig.builder()
                         .localServer("https://example")
                         .quorumSize(1)
@@ -593,7 +593,7 @@ private TransactionManagers withLockImmutableTsOnReadOnlyTransaction(boolean opt
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .lockImmutableTsOnReadOnlyTransactions(option)
                 .build();
     }
@@ -699,7 +699,7 @@ private KeyValueService initializeKeyValueServiceWithSweepSettings(boolean enabl
                 .userAgent(UserAgent.of(UserAgent.Agent.of("test", "0.0.0")))
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema())
                 .runtimeConfigSupplier(() -> Optional.of(atlasDbRuntimeConfig))
                 .build()
@@ -762,7 +762,7 @@ private void setUpForLocalServices() throws IOException {
                             .withBody(("\"" + localPingableLeader.getUUID() + "\"").getBytes(StandardCharsets.UTF_8))));
                     return null;
                 })
-                .when(environment)
+                .when(registrar)
                 .accept(isA(PingableLeader.class));
         setUpLeaderBlockInConfig();
     }
@@ -807,7 +807,7 @@ private LockAndTimestampServices getLockAndTimestampServices() {
                         metricsManager,
                         config,
                         Refreshable.only(mockAtlasDbRuntimeConfig),
-                        environment,
+                        registrar,
                         LockServiceImpl::create,
                         () -> ts,
                         invalidator,u}(j̬  (1d48df051a7627207eae8887272331c4921a8011j4  $changelog/@unreleased/pr-6516.v2.ymlj6  addedj.  Kj/  K j8  Kj9  |https://github.com/palantir/atlasdb/blob/58a31e4d48ac138a0ec5e2186c4582a2a89dd72e/changelog%2F%40unreleased%2Fpr-6516.v2.ymlj;  {https://github.com/palantir/atlasdb/raw/58a31e4d48ac138a0ec5e2186c4582a2a89dd72e/changelog%2F%40unreleased%2Fpr-6516.v2.ymlj=  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6516.v2.yml?ref=58a31e4d48ac138a0ec5e2186c4582a2a89dd72ej?  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: AtlasDB no longer registers the `/sweep` endpoints.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6516ueu(20e92777b54ac5a285338bfac7caf6c222fab994}(sha(20e92777b54ac5a285338bfac7caf6c222fab994node_idEC_kwDOAjP5fdoAKDIwZTkyNzc3YjU0YWM1YTI4NTMzOGJmYWM3Y2FmNmMyMjJmYWI5OTQcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-06-14T10:17:31Zu	committer}(j  svc-autoreleasej  -pd-foundry-infrastructure-notify@palantir.comj  2023-06-14T10:17:31ZumessageAutorelease 0.874.0

[skip ci]tree}(j  (4bad2aacaee4ea25f8a574a83930c9cf034b6f39url`https://api.github.com/repos/palantir/atlasdb/git/trees/4bad2aacaee4ea25f8a574a83930c9cf034b6f39uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/20e92777b54ac5a285338bfac7caf6c222fab994
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmSJk8AACgkQhbrR8ip7mDBJPgD/UP9oBurb4XH5SA1lC7YD+D0E
JfVV6/+whSNQlOoyUEoBAKZ3AH1tI/w8iKMpJ6KJeLyR4KLTuOXVt0EAJ+FD0MmL
=LnnW
-----END PGP SIGNATURE-----
payloadX0  tree 4bad2aacaee4ea25f8a574a83930c9cf034b6f39
parent 207838a4830e3f0a11e7754cc93cdfe36cd0190a
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1686737851 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1686737851 +0000

Autorelease 0.874.0

[skip ci]uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/20e92777b54ac5a285338bfac7caf6c222fab994html_urlShttps://github.com/palantir/atlasdb/commit/20e92777b54ac5a285338bfac7caf6c222fab994comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/20e92777b54ac5a285338bfac7caf6c222fab994/commentsj  }(loginsvc-autoreleaseidJ(j  MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j  ,https://api.github.com/users/svc-autoreleasej  "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj  }(j  svc-autoreleasej  J(j  MDQ6VXNlcjUxNzE4MzQ2j  4https://avatars.githubusercontent.com/u/51718346?v=4j  h5j  ,https://api.github.com/users/svc-autoreleasej  "https://github.com/svc-autoreleasej  6https://api.github.com/users/svc-autorelease/followersj  Chttps://api.github.com/users/svc-autorelease/following{/other_user}jí  <https://api.github.com/users/svc-autorelease/gists{/gist_id}jŭ  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jǭ  :https://api.github.com/users/svc-autorelease/subscriptionsjɭ  1https://api.github.com/users/svc-autorelease/orgsj˭  2https://api.github.com/users/svc-autorelease/reposjͭ  =https://api.github.com/users/svc-autorelease/events{/privacy}jϭ  <https://api.github.com/users/svc-autorelease/received_eventsjѭ  Userjӭ  uparents]}(j  (207838a4830e3f0a11e7754cc93cdfe36cd0190aj  ^https://api.github.com/repos/palantir/atlasdb/commits/207838a4830e3f0a11e7754cc93cdfe36cd0190aj  Shttps://github.com/palantir/atlasdb/commit/207838a4830e3f0a11e7754cc93cdfe36cd0190auastats}(totalK 	additionsK 	deletionsK ufiles]}(j  (ffd47f177c27dd39d87fb4cd84339ad7d1911c1cfilename changelog/0.874.0/pr-6625.v2.ymlstatusrenamedj  K j  K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/20e92777b54ac5a285338bfac7caf6c222fab994/changelog%2F0.874.0%2Fpr-6625.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/20e92777b54ac5a285338bfac7caf6c222fab994/changelog%2F0.874.0%2Fpr-6625.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.874.0%2Fpr-6625.v2.yml?ref=20e92777b54ac5a285338bfac7caf6c222fab994     previous_filename$changelog/@unreleased/pr-6625.v2.ymluau(98ccbd0a612da84b2aa1f0620410b20c736c6655}(sha(98ccbd0a612da84b2aa1f0620410b20c736c6655node_idEC_kwDOAjP5fdoAKDk4Y2NiZDBhNjEyZGE4NGIyYWExZjA2MjA0MTBiMjBjNzM2YzY2NTUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-08T17:51:21Zu	committer}(j
  Jeremy Kongj  jkong@palantir.comj  2023-06-08T17:51:21Zumessageloltree}(j  (6be6c1056a01b3c419a625ab62ddafc8bf9faef6url`https://api.github.com/repos/palantir/atlasdb/git/trees/6be6c1056a01b3c419a625ab62ddafc8bf9faef6uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/98ccbd0a612da84b2aa1f0620410b20c736c6655
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSCFRkACgkQTLdFKain
zjypfAgAsY//PHFp2hW3Um3PY3vByTA0ktFncTwDzHyA6YiYzQzX43i7+Zy8nysi
pDINdgAyr3/lcfuhjcehv8/hKuPz9/d7hbnQuleTi23Kq3DIiLDYCm/JRE36jw6b
24/kRWGPrLbE+Nk2vR0aV/CDLFkWuLRcan2OVocB8kqdhHUE1u4q1cMkwgqhl29l
bTY5DPu0I9BgJCw/0ae4YPOXxSi0FWJXAYzOCMsjQgoBuOo7+PpuQbRsynlhg2ZM
CThp1BJ/Dn+3S9DRu+nSgNYMLKv8CIVIbE3F2Iq091GBj02+Pqj9Ce4JbYvkaEjj
hthDlTtd7xgOsp+ig1gm8TbXaIpN0Q==
=ol15
-----END PGP SIGNATURE-----payloadX  tree 6be6c1056a01b3c419a625ab62ddafc8bf9faef6
parent bb9fe9b189bfdb90a920eb39344354793d5beb0b
parent 9da983498aba984ae0261e10013b6fc08e7d2351
author Jeremy Kong <jkong@palantir.com> 1686246681 +0100
committer Jeremy Kong <jkong@palantir.com> 1686246681 +0100

lol
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/98ccbd0a612da84b2aa1f0620410b20c736c6655html_urlShttps://github.com/palantir/atlasdb/commit/98ccbd0a612da84b2aa1f0620410b20c736c6655comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/98ccbd0a612da84b2aa1f0620410b20c736c6655/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j(  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j-  
jeremyk-91j/  JZ j  MDQ6VXNlcjU5NTU1MTA=j1  3https://avatars.githubusercontent.com/u/5955510?v=4j3  h5j  'https://api.github.com/users/jeremyk-91j(  https://github.com/jeremyk-91j6  1https://api.github.com/users/jeremyk-91/followersj8  >https://api.github.com/users/jeremyk-91/following{/other_user}j:  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j<  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j>  5https://api.github.com/users/jeremyk-91/subscriptionsj@  ,https://api.github.com/users/jeremyk-91/orgsjB  -https://api.github.com/users/jeremyk-91/reposjD  8https://api.github.com/users/jeremyk-91/events{/privacy}jF  7https://api.github.com/users/jeremyk-91/received_eventsjH  UserjJ  uparents](}(j  (bb9fe9b189bfdb90a920eb39344354793d5beb0bj  ^https://api.github.com/repos/palantir/atlasdb/commits/bb9fe9b189bfdb90a920eb39344354793d5beb0bj(  Shttps://github.com/palantir/atlasdb/commit/bb9fe9b189bfdb90a920eb39344354793d5beb0bu}(j  (9da983498aba984ae0261e10013b6fc08e7d2351j  ^https://api.github.com/repos/palantir/atlasdb/commits/9da983498aba984ae0261e10013b6fc08e7d2351j(  Shttps://github.com/palantir/atlasdb/commit/9da983498aba984ae0261e10013b6fc08e7d2351uestats}(totalM	additionsM	deletionsK
ufiles](}(j  (b5c7b9efcec99e2e4e3b5ccc3eb2f13e725dca1afilename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedjh  K ji  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=98ccbd0a612da84b2aa1f0620410b20c736c6655patchX8  @@ -15,8 +15,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra1
-    volumes:
-      - /opt/config/volumes/cassandra1:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
@@ -35,8 +33,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra2
-    volumes:
-      - /opt/config/volumes/cassandra2:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
@@ -55,8 +51,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra3
-    volumes:
-      - /opt/config/volumes/cassandra3:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.4u}(j  (f2fc56cca46a09c2ef718c3b7cb6b8d4000c1d8fjn  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javajp  modifiedjh  Kji  Kjr  Kjs  https://github.com/palantir/atlasdb/blob/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaju  https://github.com/palantir/atlasdb/raw/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javajw  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=98ccbd0a612da84b2aa1f0620410b20c736c6655jy  @@ -16,4 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-public interface InvalidWitnessedTransactionAction {}
+public interface InvalidWitnessedTransactionAction {
+    // Marker interface
+}u}(j  (37e59da7fde3c443b1071e9b0c484c2da4e9f50ejn  latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javajp  modifiedjh  K'ji  K jr  K'js  https://github.com/palantir/atlasdb/blob/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaju  https://github.com/palantir/atlasdb/raw/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajw  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=98ccbd0a612da84b2aa1f0620410b20c736c6655jy  Xk  @@ -37,6 +37,8 @@
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
@@ -142,6 +144,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().transientRowsConfig();
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
+        SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadNoTouchWorkflowConfiguration =
+                configuration.install().singleBusyCellReadsNoTouchConfig();
         BankBalanceWorkflowConfiguration bankBalanceConfig =
                 configuration.install().bankBalanceConfig();
         RandomWorkflowConfiguration randomWorkflowConfig =
@@ -159,6 +163,10 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
                         createSingleBusyCellWorkflowValidator(
                                 transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellReadNoTouchWorkflowValidator(
+                                transactionStoreFactory,
+                                singleBusyCellReadNoTouchWorkflowConfiguration,
+                                environment.lifecycle()),
                         createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
                         createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
 
@@ -244,6 +252,37 @@ private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
                 SerializableInvariantLogReporter.INSTANCE);
     }
 
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellReadNoTouchWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellReadNoTouchWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-read")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-write")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellReadNoTouchWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellReadNoTouchWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
     private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             RingWorkflowConfiguration workflowConfig,u}(j  (388054e20c18c9c8d612db0e6d9ac1018b7f9b14jn  atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javajp  modifiedjh  Kji  K jr  Kjs  https://github.com/palantir/atlasdb/blob/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaju  https://github.com/palantir/atlasdb/raw/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javajw  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=98ccbd0a612da84b2aa1f0620410b20c736c6655jy  X)  @@ -20,6 +20,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
@@ -45,5 +46,7 @@ public interface WorkloadServerInstallConfiguration {
 
     RandomWorkflowConfiguration randomConfig();
 
+    SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadsNoTouchConfig();
+
     boolean exitAfterRunning();
 }u}(j  (da4b728986375bd8565c46e930098c1a684a145cjn  Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymljp  modifiedjh  Kji  K jr  Kjs  https://github.com/palantir/atlasdb/blob/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlju  https://github.com/palantir/atlasdb/raw/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymljw  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=98ccbd0a612da84b2aa1f0620410b20c736c6655jy  X  @@ -41,4 +41,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: false
\ No newline at end of fileu}(j  (50dbd20de7876d2a9cb53eef291722b8b19cd0b5jn  Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymljp  modifiedjh  Kji  K jr  Kjs  https://github.com/palantir/atlasdb/blob/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlju  https://github.com/palantir/atlasdb/raw/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljw  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=98ccbd0a612da84b2aa1f0620410b20c736c6655jy  Xr  @@ -78,4 +78,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single_busy_cell_no_touch_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: trueu}(j  (7bd7f984a5ef15a2179c415620f48a0737332c43jn  Aatlasdb-workload-server-distribution/var/conf/workload-server.ymljp  modifiedjh  Kji  K jr  Kjs  https://github.com/palantir/atlasdb/blob/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlju  https://github.com/palantir/atlasdb/raw/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljw  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=98ccbd0a612da84b2aa1f0620410b20c736c6655jy  X  @@ -42,4 +42,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: true
\ No newline at end of fileu}(j  (cfa7bb7b766851d22237ea49091b9cce6c50c789jn  atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowConfiguration.javajp  addedjh  K ji  K jr  K js  https://github.com/palantir/atlasdb/blob/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javaju  https://github.com/palantir/atlasdb/raw/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javajw  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.java?ref=98ccbd0a612da84b2aa1f0620410b20c736c6655jy  Xz  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellReadNoTouchWorkflowConfiguration.TYPE)
+public interface SingleBusyCellReadNoTouchWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell-reads-no-touch";
+
+    TableConfiguration tableConfiguration();
+}u}(j  (ae852affb871f77d186c4b71ecca052b5aeeed40jn  tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflows.javajp  addedjh  Kjji  K jr  Kjjs  https://github.com/palantir/atlasdb/blob/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaju  https://github.com/palantir/atlasdb/raw/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javajw  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.java?ref=98ccbd0a612da84b2aa1f0620410b20c736c6655jy  X  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions. This workflow differs
+ * from the {@link SingleBusyCellWorkflows} in the way that its read transaction only does read and doesn't touch the
+ * cell with its current value or -1. This allows us to exercise the code path of read-write transaction that only do
+ * reads, which is necessary to catch bugs like sweep deleting entries under a transaction if it doesn't check for
+ * immutableTimestamp lock.
+ */
+public final class SingleBusyCellReadNoTouchWorkflows {
+    private SingleBusyCellReadNoTouchWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReads(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReads(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(
+                        txn -> txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL))))
+                .collect(Collectors.toList());
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
+    }
+}u}(j  (9002a5ed3382a35694d630c784b417cd15befa46jn  hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javajp  modifiedjh  Kji  Kjr  Kjs  https://github.com/palantir/atlasdb/blob/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaju  https://github.com/palantir/atlasdb/raw/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javajw  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=98ccbd0a612da84b2aa1f0620410b20c736c6655jy  XA  @@ -38,6 +38,7 @@
 import java.security.SecureRandom;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Objects;
 import java.util.Optional;
 import java.util.Set;
 import java.util.stream.Collectors;
@@ -141,10 +142,12 @@ private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActi
                 .orElseThrow(() -> new SafeIllegalStateException(
                         "Expected to find a read of the summary row", SafeArg.of("actions", actions)));
         WitnessedReadTransactionAction normalRowRead = readTransactionActions.stream()
-                .filter(action -> action.cell().key() != SUMMARY_ROW)
+                .filter(action -> Objects.equals(
+                                action.cell().key(), summaryRowRead.cell().column())
+                        && action.cell().column() == COLUMN)
                 .findAny()
                 .orElseThrow(() -> new SafeIllegalStateException(
-                        "Expected to find a read of a normal row", SafeArg.of("actions", actions)));
+                        "Expected to find a read of a corresponding normal row", SafeArg.of("actions", actions)));
         if (!summaryRowRead.value().equals(normalRowRead.value())) {
             return Stream.of(CrossCellInconsistency.builder()
                     .putInconsistentValues(u}(j  (582a24e3462c647d3a7fc8712226be1c34707556jn  xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javajp  addedjh  K{ji  K jr  K{js  https://github.com/palantir/atlasdb/blob/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaju  https://github.com/palantir/atlasdb/raw/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javajw  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=98ccbd0a612da84b2aa1f0620410b20c736c6655jy  X  @@ -0,0 +1,123 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Sets;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Collection;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class SingleBusyCellReadNoTouchWorkflowsTest {
+    private static final String TABLE_NAME = "busy.readnotouch.cell";
+    private static final int ITERATION_COUNT = 1_000;
+    private static final SingleBusyCellReadNoTouchWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow workflow = SingleBusyCellReadNoTouchWorkflows.create(
+            transactionStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)),
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)));
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void transactionsDoNotConflictExcessively() {
+        WorkflowHistory workflowHistory = workflow.run();
+        assertThat(workflowHistory.history()).hasSizeBetween(ITERATION_COUNT / 2, ITERATION_COUNT);
+    }
+
+    @Test
+    public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.table().equals(TABLE_NAME));
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.cell().equals(SingleBusyCellReadNoTouchWorkflows.BUSY_CELL));
+    }
+
+    @Test
+    public void targetCellIsReadModifiedAndDeleted() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+
+    @Test
+    public void readTransactionsDontDoWrites() {
+        WorkflowHistory workflowHistory = workflow.run();
+
+        Set<WitnessedTransaction> witnessedTransactionsWithReads = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream().anyMatch(WitnessedReadTransactionAction.class::isInstance))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> witnessedTransactionsWithWritesOrDeletes = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream()
+                        .anyMatch(action -> action instanceof WitnessedWriteTransactionAction
+                                || action instanceof WitnessedDeleteTransactionAction))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> transactionsWithReadsAndWritesOrDeletes =
+                Sets.intersection(witnessedTransactionsWithReads, witnessedTransactionsWithWritesOrDeletes);
+
+        assertThat(transactionsWithReadsAndWritesOrDeletes).isEmpty();
+    }
+}u}(j  (67649f06c0f6d4e2b55d3a069e6c8885508b4385jn  latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javajp  modifiedjh  Kxji  Kjr  Kyjs  https://github.com/palantir/atlasdb/blob/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaju  https://github.com/palantir/atlasdb/raw/98ccbd0a612da84b2aa1f0620410b20c736c6655/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javajw  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=98ccbd0a612da84b2aa1f0620410b20c736c6655jy  X  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.google.common.collect.ImmutableList;
@@ -41,8 +42,10 @@
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.stream.Collectors;
@@ -185,7 +188,123 @@ public void invariantReportsViolationsFromTransactionHistory() {
                 .build();
         invariant.accept(falseHistory, reference::set);
 
-        assertThat(reference.get()).hasSize(ITERATION_COUNT - 1);
+        assertThat(reference.get())
+                .hasSize(ITERATION_COUNT - 1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
+        WitnessedReadTransactionAction readWitness = WitnessedReadTransactionAction.of(
+                TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of the summary row")
+                .hasExactlyArgs(SafeArg.of("actions", ImmutableList.of(readWitness)));
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCorrespondingPrimaryRow() {
+        List<WitnessedTransactionAction> actions = ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of a corresponding normal row")
+                .hasExactlyArgs(SafeArg.of("actions", actions));
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothEmpty() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions = getReadWitnessesForSingleTransaction(
+                2, Optional.of(TransientRowsWorkflows.VALUE), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsPresentAndPrimaryIsAbsent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.of(TransientRowsWorkflows.VALUE), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsAbsentAndPrimaryIsPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    private ImmutableWorkflowHistory getWorkflowHistory(List<WitnessedTransactionAction> actions) {
+        return ImmutableWorkflowHistory.builder()
+                .transactionStore(transactionStore)
+                .history(ImmutableList.of(ImmutableFullyWitnessedTransaction.builder()
+                        .addAllActions(actions)
+                        .startTimestamp(0L)
+                        .commitTimestamp(1L)
+                        .build()))
+                .build();
+    }
+
+    private static List<WitnessedTransactionAction> getReadWitnessesForSingleTransaction(
+            int columnIndex, Optional<Integer> summaryValue, Optional<Integer> primaryValue) {
+        return ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, columnIndex),
+                        summaryValue),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(columnIndex, TransientRowsWorkflows.COLUMN),
+                        primaryValue));
+    }
+
+    private static void inconsistencyInvolvesPairOfPrimaryAndSummaryCells(CrossCellInconsistency inconsistency) {
+        Map<TableAndWorkloadCell, Optional<Integer>> readValues = inconsistency.inconsistentValues();
+        TableAndWorkloadCell summaryCell = readValues.keySet().stream()
+                .filter(tableAndWorkloadCell -> tableAndWorkloadCell.cell().key() == TransientRowsWorkflows.SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of the summary row", SafeArg.of("readValues", readValues)));
+        TableAndWorkloadCell primaryCell = getPrimaryCellForSummaryCell(summaryCell);
+
+        assertThat(readValues.keySet()).containsExactlyInAnyOrder(summaryCell, primaryCell);
+        assertThat(readValues.values())
+                .containsExactlyInAnyOrder(Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+    }
+
+    // This workflow uses a single table, where the summary row's columns correspond to rows with primary values.
+    private static TableAndWorkloadCell getPrimaryCellForSummaryCell(TableAndWorkloadCell summaryCell) {
+        return TableAndWorkloadCell.of(
+                summaryCell.tableName(),
+                ImmutableWorkloadCell.of(summaryCell.cell().column(), TransientRowsWorkflows.COLUMN));
     }
 
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(u}(j  (351dc558cfb12f3027ca880f55c00742ee516cbdjn   changelog/0.870.0/pr-6613.v2.ymljp  addedjh  Kji  K jr  Kjs  vhttps://github.com/palantir/atlasdb/blob/98ccbd0a612da84b2aa1f0620410b20c736c6655/changelog%2F0.870.0%2Fpr-6613.v2.ymlju  uhttps://github.com/palantir/atlasdb/raw/98ccbd0a612da84b2aa1f0620410b20c736c6655/changelog%2F0.870.0%2Fpr-6613.v2.ymljw  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.870.0%2Fpr-6613.v2.yml?ref=98ccbd0a612da84b2aa1f0620410b20c736c6655jy  @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: There now exists an Antithesis workflow that exercises read-write transactions
+    that only do reads.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6613ueu(f0a43222e28c8a090c5f40e5d121b50dde3fe404}(sha(f0a43222e28c8a090c5f40e5d121b50dde3fe404node_idEC_kwDOAjP5fdoAKGYwYTQzMjIyZTI4YzhhMDkwYzVmNDBlNWQxMjFiNTBkZGUzZmU0MDQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-17T23:14:04Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-05-17T23:14:04Zumessagespotlesstree}(jݮ  (446c97b5fb3334291417dc73182703a66ea48f0furl`https://api.github.com/repos/palantir/atlasdb/git/trees/446c97b5fb3334291417dc73182703a66ea48f0fuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f0a43222e28c8a090c5f40e5d121b50dde3fe404
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRlX7wACgkQTLdFKain
zjxVoggApnRzNOOh0xtRq6R8BMgYEF/Hln0TVYOa/9q0B3kHVxUc10ezI7pR1lyX
dT5f9FxZ3qQeqhBYmyfmpMYYVxlclG8479Un6KKUnLkYJw0m/zO1YyZoE1eW9nWC
QxtpLX3PQwlvdF7PcgT+zWJpRIbVAlIPOm3XQtmi1zCyvcuIxgZC78m/WK0SkxOy
MEL4cWsiIVapiMSc0hfzQGQgmWfdZsLuq8PxUCBdOz6Y7Ee7Ht65iGMKbtYl/I7d
ZJKaIGL/aiLGK2xWZkt9G3/q7Sk4+USTZ8AVtGtsC0T7FvQutXzqXgOlfQrW7/y5
hVM9VkGVr4t2hMI35dkYDq3caTr5yQ==
=ztC+
-----END PGP SIGNATURE-----payloadtree 446c97b5fb3334291417dc73182703a66ea48f0f
parent ab84e9466cb0570bbfec1fddf541f0d6259cccff
author Jeremy Kong <jkong@palantir.com> 1684365244 +0100
committer Jeremy Kong <jkong@palantir.com> 1684365244 +0100

spotless
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/f0a43222e28c8a090c5f40e5d121b50dde3fe404html_urlShttps://github.com/palantir/atlasdb/commit/f0a43222e28c8a090c5f40e5d121b50dde3fe404comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f0a43222e28c8a090c5f40e5d121b50dde3fe404/commentsj  }(login
jeremyk-91idJZ j߮  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j  
jeremyk-91j
  JZ j߮  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j!  7https://api.github.com/users/jeremyk-91/received_eventsj#  Userj%  uparents]}(jݮ  (ab84e9466cb0570bbfec1fddf541f0d6259cccffj  ^https://api.github.com/repos/palantir/atlasdb/commits/ab84e9466cb0570bbfec1fddf541f0d6259cccffj  Shttps://github.com/palantir/atlasdb/commit/ab84e9466cb0570bbfec1fddf541f0d6259cccffuastats}(totalK	additionsK	deletionsKufiles]}(jݮ  (9aeac053f37bc120dcfeed98eb901cccc2a0acf8filenamehatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javastatusmodifiedj?  Kj@  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/f0a43222e28c8a090c5f40e5d121b50dde3fe404/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f0a43222e28c8a090c5f40e5d121b50dde3fe404/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=f0a43222e28c8a090c5f40e5d121b50dde3fe404patchX  @@ -58,8 +58,7 @@ public final class TransientRowsWorkflows {
 
     private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
 
-    private TransientRowsWorkflows() {
-    }
+    private TransientRowsWorkflows() {}
 
     public static Workflow create(
             InteractiveTransactionStore store,
@@ -83,7 +82,8 @@ private static Optional<WitnessedTransaction> run(
                 txn.read(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, indexToRead));
                 txn.read(tableName, ImmutableWorkloadCell.of(indexToRead, COLUMN));
 
-                if (txn.read(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN)).isPresent()) {
+                if (txn.read(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN))
+                        .isPresent()) {
                     txn.delete(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex - 1));
                     txn.delete(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN));
                 }uau(c75242a139c2207057ddb45ff0010459fac178e7}(sha(c75242a139c2207057ddb45ff0010459fac178e7node_idEC_kwDOAjP5fdoAKGM3NTI0MmExMzljMjIwNzA1N2RkYjQ1ZmYwMDEwNDU5ZmFjMTc4ZTccommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-05-31T18:50:50Zu	committer}(j\  GitHubj^  noreply@github.comj`  2023-05-31T18:50:50Zumessage(Add snapshot isolation invariant (#6582)tree}(jT  (d52454dc9233487a4dbe8caa6e343dde1dc246a7url`https://api.github.com/repos/palantir/atlasdb/git/trees/d52454dc9233487a4dbe8caa6e343dde1dc246a7ujl  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c75242a139c2207057ddb45ff0010459fac178e7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkd5cKCRBK7hj4Ov3rIwAAxxsIAFaH8lUxaf846QOhlPCDwpoQ
1unWCJeOm2Lj1MJFvlHESEaFhq6MKVQKS0JLQ5gaxnm/NUh7MM65GHDuckKO0z1s
9uaYJ4/p3qpZQRuHbJLfONn1xOXEKAzsEoHmF0cWG6lVNyK97OigIx006Dmu04T4
Emusu+VKcvED4R6KXisARM4m6GJJVZCe6Qm/Xuuv1MJ6DRW+56XXH8ddaHArQ4UR
Gf3VGr8TFyxqzoIOvOgteT/BLgfrn3g1vDbdVEqCFanFN7KitwU7vyjTk5CpG6SC
kXfTrP3fRvh1XjM56wCK3g/egRj2hISCDcZiX3XeM7Ya45cWSZ/uWst0rEukosU=
=9FfC
-----END PGP SIGNATURE-----
payloadtree d52454dc9233487a4dbe8caa6e343dde1dc246a7
parent bf6890433442e3e1661fb64a5ec87a7ffee50c23
author Sam-Kramer <sam.c.kramer@gmail.com> 1685559050 +0100
committer GitHub <noreply@github.com> 1685559050 +0000

Add snapshot isolation invariant (#6582)

 uujl  ^https://api.github.com/repos/palantir/atlasdb/commits/c75242a139c2207057ddb45ff0010459fac178e7html_urlShttps://github.com/palantir/atlasdb/commit/c75242a139c2207057ddb45ff0010459fac178e7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c75242a139c2207057ddb45ff0010459fac178e7/commentsjZ  }(login
Sam-KrameridJ^2_ jV  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jl  'https://api.github.com/users/Sam-Kramerjz  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujb  }(j  web-flowj  J/jV  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5jl  %https://api.github.com/users/web-flowjz  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(jT  (bf6890433442e3e1661fb64a5ec87a7ffee50c23jl  ^https://api.github.com/repos/palantir/atlasdb/commits/bf6890433442e3e1661fb64a5ec87a7ffee50c23jz  Shttps://github.com/palantir/atlasdb/commit/bf6890433442e3e1661fb64a5ec87a7ffee50c23uastats}(totalMf	additionsM`	deletionsKufiles](}(jT  (29fc330cc18e86d9e89097012f497c48a1e6c4b9filenamefatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/MismatchedValue.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.java?ref=c75242a139c2207057ddb45ff0010459fac178e7patchX&  @@ -24,10 +24,10 @@
 @Value.Immutable
 public interface MismatchedValue {
     @Value.Parameter
-    Optional<Integer> actual();
+    ValueAndMaybeTimestamp actual();
 
     @Value.Parameter
-    Optional<Integer> expected();
+    ValueAndMaybeTimestamp expected();
 
     @Value.Check
     default void actualAndExpectedAreNotEqualToEachOther() {
@@ -39,6 +39,10 @@ default void actualAndExpectedAreNotEqualToEachOther() {
     }
 
     static MismatchedValue of(Optional<Integer> actual, Optional<Integer> expected) {
+        return MismatchedValue.of(ValueAndMaybeTimestamp.of(actual), ValueAndMaybeTimestamp.of(expected));
+    }
+
+    static MismatchedValue of(ValueAndMaybeTimestamp actual, ValueAndMaybeTimestamp expected) {
         return ImmutableMismatchedValue.of(actual, expected);
     }
 }u}(jT  (596cccc8bfe0813aaf92d90536ccec5e30931db3j  katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/TransactionInvariant.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.javajï  https://github.com/palantir/atlasdb/raw/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.javajů  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.java?ref=c75242a139c2207057ddb45ff0010459fac178e7jǯ  X  @@ -0,0 +1,22 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import java.util.List;
+
+public interface TransactionInvariant extends Invariant<List<InvalidWitnessedTransaction>> {}u}(jT  (f4cdcb16e74fcf6db212f3bb382ada34382c7076j  matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/ValueAndMaybeTimestamp.javaj  addedj  KEj  K j  KEj  https://github.com/palantir/atlasdb/blob/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.javajï  https://github.com/palantir/atlasdb/raw/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.javajů  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.java?ref=c75242a139c2207057ddb45ff0010459fac178e7jǯ  X	  @@ -0,0 +1,69 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import java.util.Optional;
+import org.immutables.value.Value;
+
+/**
+ * Occasionally, storing just a value might not be enough context needed when validating an invariant.
+ *
+ * For example, to detect that the ABA problem has occurred (ABA problem (https://en.wikipedia.org/wiki/ABA_problem),
+ * values alone would not be sufficient. Storing the timestamp associated with the value, such as the start timestamp,
+ * would be able to catch these sort of cases.
+ */
+@Value.Immutable
+public interface ValueAndMaybeTimestamp {
+    ValueAndMaybeTimestamp EMPTY = of(Optional.empty(), Optional.empty());
+
+    /**
+     * Value, which when empty either indicates it does not exist, or has been deleted.
+     */
+    @Value.Parameter
+    Optional<Integer> value();
+
+    /**
+     * Optional timestamp associated with the value. When empty it means either it does not exist, or it is not needed
+     * for comparison.
+     */
+    @Value.Parameter
+    Optional<Long> timestamp();
+
+    static ValueAndMaybeTimestamp empty() {
+        return EMPTY;
+    }
+
+    static ValueAndMaybeTimestamp of(Integer value) {
+        return of(Optional.of(value));
+    }
+
+    static ValueAndMaybeTimestamp of(Optional<Integer> value) {
+        return of(value, Optional.empty());
+    }
+
+    static ValueAndMaybeTimestamp of(Optional<Integer> value, Long timestamp) {
+        return of(value, Optional.of(timestamp));
+    }
+
+    static ValueAndMaybeTimestamp of(Integer value, Long timestamp) {
+        return of(Optional.of(value), Optional.of(timestamp));
+    }
+
+    static ValueAndMaybeTimestamp of(Optional<Integer> value, Optional<Long> timestamp) {
+        return ImmutableValueAndMaybeTimestamp.of(value, timestamp);
+    }
+}u}(jT  (636e11dbc52b78329590a8ee90644f9728e5fb69j  jatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/invariant/MismatchedValueTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javajï  https://github.com/palantir/atlasdb/raw/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javajů  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.java?ref=c75242a139c2207057ddb45ff0010459fac178e7jǯ  Xz  @@ -21,13 +21,12 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 
 import com.palantir.logsafe.SafeArg;
-import java.util.Optional;
 import org.junit.Test;
 
 public final class MismatchedValueTest {
 
-    private static final Optional<Integer> VALUE_ONE = Optional.of(15);
-    private static final Optional<Integer> VALUE_TWO = Optional.of(25);
+    private static final ValueAndMaybeTimestamp VALUE_ONE = ValueAndMaybeTimestamp.of(25);
+    private static final ValueAndMaybeTimestamp VALUE_TWO = ValueAndMaybeTimestamp.of(15);
 
     @Test
     public void canConstructMismatchedValueFromTwoDifferentValues() {u}(jT  (25eeb2753827a113d65e7a92368037434d429216j  hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajï  https://github.com/palantir/atlasdb/raw/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajů  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=c75242a139c2207057ddb45ff0010459fac178e7jǯ  X  @@ -30,7 +30,7 @@
 import java.util.function.Consumer;
 import one.util.streamex.StreamEx;
 
-public enum SerializableInvariant implements Invariant<List<InvalidWitnessedTransaction>> {
+public enum SerializableInvariant implements TransactionInvariant {
     INSTANCE;
 
     @Overrideu}(jT  (875d7b415beab11ac8c7b5cb94591f3b3a874168j  datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariant.javaj  addedj  KUj  K j  KUj  https://github.com/palantir/atlasdb/blob/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javajï  https://github.com/palantir/atlasdb/raw/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javajů  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.java?ref=c75242a139c2207057ddb45ff0010459fac178e7jǯ  X  @@ -0,0 +1,85 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.function.Consumer;
+
+/**
+ * This invariant checks that the snapshot isolation property is maintained.
+ * <p>
+ * The way this check works, is by replaying all transactions sorted by their effective timestamp. Transactions are
+ * replayed to an immutable map, allowing us to track each table's state at any given time. These table views are
+ * persisted to a {@link java.util.NavigableMap} by the commit timestamp of each transaction, with the value being
+ * the version of the immutable map at that point-in-time.
+ * <p>
+ * Reads are validated by comparing values from the view of a table at the start timestamp (read view),
+ * and comparing to what we've witnessed. Local writes are replayed onto the read view to ensure we
+ * don't flag false-positives, but is not witnessed by other transactions.
+ * <p>
+ * Writes are validated by first checking that the value we're writing to hasn't changed between the read view and the
+ * latest view. This would indicate a write-write conflict miss, as we should've conflicted with this transaction.
+ * Otherwise, once the transaction is replayed on top of the latest view, we persist this new view at the
+ * commit timestamp.
+ */
+public enum SnapshotInvariant implements TransactionInvariant {
+    INSTANCE;
+
+    @Override
+    public void accept(
+            WorkflowHistory workflowHistory, Consumer<List<InvalidWitnessedTransaction>> invalidWitnessedTransactions) {
+        ImmutableList.Builder<InvalidWitnessedTransaction> invalidTransactionsBuilder = new ImmutableList.Builder<>();
+        VersionedTableView<TableAndWorkloadCell, ValueAndMaybeTimestamp> tableView = new VersionedTableView<>();
+        for (WitnessedTransaction witnessedTransaction : workflowHistory.history()) {
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestTableView =
+                    tableView.getLatestTableView();
+
+            SnapshotInvariantVisitor visitor = new SnapshotInvariantVisitor(
+                    witnessedTransaction.startTimestamp(),
+                    latestTableView,
+                    tableView.getView(witnessedTransaction.startTimestamp()));
+
+            ImmutableList.Builder<InvalidWitnessedTransactionAction> invalidTransactionActionsBuilder =
+                    new ImmutableList.Builder<>();
+            for (WitnessedTransactionAction action : witnessedTransaction.actions()) {
+                action.accept(visitor).ifPresent(invalidTransactionActionsBuilder::add);
+            }
+
+            List<InvalidWitnessedTransactionAction> invalidTransactionActions =
+                    invalidTransactionActionsBuilder.build();
+
+            witnessedTransaction
+                    .commitTimestamp()
+                    .ifPresent(commitTimestamp -> tableView.put(commitTimestamp, latestTableView.getSnapshot()));
+
+            if (!invalidTransactionActions.isEmpty()) {
+                invalidTransactionsBuilder.add(
+                        InvalidWitnessedTransaction.of(witnessedTransaction, invalidTransactionActions));
+            }
+        }
+        invalidWitnessedTransactions.accept(invalidTransactionsBuilder.build());
+    }
+}uF      }(jT  (9105d7ebd3f6af94cfaa196d41e9f2263cfb313ej  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj  addedj  K{j  K j  K{j  https://github.com/palantir/atlasdb/blob/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajï  https://github.com/palantir/atlasdb/raw/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajů  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=c75242a139c2207057ddb45ff0010459fac178e7jǯ  X:  @@ -0,0 +1,123 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.collection.Map;
+import java.util.Optional;
+
+/**
+ * Replays transactions and validates for conflicts on the latest and read view.
+ *
+ * The latest view will be a view of the database at the commit timestamp, while the read view will be the view of
+ * the database at the start timestamp.
+ *
+ * Objects created from this class should only be used within a scope of a single transaction.
+ */
+final class SnapshotInvariantVisitor
+        implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
+
+    private final Long startTimestamp;
+    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestView;
+    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> readView;
+
+    SnapshotInvariantVisitor(
+            Long startTimestamp,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestView,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> readView) {
+        this.startTimestamp = startTimestamp;
+        this.latestView = latestView;
+        this.readView = readView;
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+        Optional<Integer> expected = fetchValueFromView(
+                        readTransactionAction.table(), readTransactionAction.cell(), readView)
+                .value();
+        if (!expected.equals(readTransactionAction.value())) {
+            return Optional.of(InvalidWitnessedTransactionAction.of(
+                    readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expected)));
+        }
+        return Optional.empty();
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
+        Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
+                        writeTransactionAction.table(), writeTransactionAction.cell())
+                .map(mismatchedValue -> InvalidWitnessedTransactionAction.of(writeTransactionAction, mismatchedValue));
+
+        applyWrites(
+                writeTransactionAction.table(),
+                writeTransactionAction.cell(),
+                Optional.of(writeTransactionAction.value()));
+        return invalidAction;
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+        Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
+                        deleteTransactionAction.table(), deleteTransactionAction.cell())
+                .map(mismatchedValue -> InvalidWitnessedTransactionAction.of(deleteTransactionAction, mismatchedValue));
+
+        applyWrites(deleteTransactionAction.table(), deleteTransactionAction.cell(), Optional.empty());
+        return invalidAction;
+    }
+
+    /**
+     * Applies writes to both our read and latest table view.
+     * Latest table view needs to be updated to apply our writes from our transaction,
+     * while the read view is updated to reflect local writes.
+     */
+    private void applyWrites(String tableName, WorkloadCell cell, Optional<Integer> value) {
+        readView.with(table ->
+                table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndMaybeTimestamp.of(value, startTimestamp)));
+        latestView.with(table ->
+                table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndMaybeTimestamp.of(value, startTimestamp)));
+    }
+
+    /**
+     * Checks that the value we are writing has not changed from our read view and the latest view. If it has,
+     * that means we have missed a write-write conflict, as it should have conflicted with this transaction.
+     */
+    private Optional<MismatchedValue> checkForWriteWriteConflicts(String table, WorkloadCell cell) {
+        ValueAndMaybeTimestamp previous = fetchValueFromView(table, cell, readView);
+        ValueAndMaybeTimestamp latest = fetchValueFromView(table, cell, latestView);
+
+        if (!previous.equals(latest)) {
+            return Optional.of(MismatchedValue.of(latest, previous));
+        }
+
+        return Optional.empty();
+    }
+
+    private static ValueAndMaybeTimestamp fetchValueFromView(
+            String tableName,
+            WorkloadCell workloadCell,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> view) {
+        TableAndWorkloadCell tableAndWorkloadCell = TableAndWorkloadCell.of(tableName, workloadCell);
+        return view.getSnapshot().get(tableAndWorkloadCell).toJavaOptional().orElseGet(ValueAndMaybeTimestamp::empty);
+    }
+}u}(jT  (0729ad724e2b47dc1415a32180124d780320f58ej  eatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/VersionedTableView.javaj  addedj  K6j  K j  K6j  https://github.com/palantir/atlasdb/blob/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.javajï  https://github.com/palantir/atlasdb/raw/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.javajů  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.java?ref=c75242a139c2207057ddb45ff0010459fac178e7jǯ  XG	  @@ -0,0 +1,54 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.Optional;
+import java.util.TreeMap;
+import javax.annotation.concurrent.NotThreadSafe;
+
+@NotThreadSafe
+public final class VersionedTableView<K, V> {
+    private final java.util.NavigableMap<Long, Map<K, V>> tableViews = new TreeMap<>();
+
+    public void put(Long commitTimestamp, Map<K, V> tableView) {
+        tableViews.put(commitTimestamp, tableView);
+    }
+
+    public StructureHolder<Map<K, V>> getView(Long startTimestamp) {
+        Preconditions.checkArgument(
+                !tableViews.containsKey(startTimestamp),
+                "It is expected when obtaining a view "
+                        + "from the start timestamp, that it should not already exist or be present within the map. "
+                        + "As all keys in this map should be commit timestamps, and all timestamps are immutable.",
+                SafeArg.of("startTimestamp", startTimestamp),
+                SafeArg.of("tableViews", tableViews));
+        return StructureHolder.create(() -> Optional.ofNullable(tableViews.lowerEntry(startTimestamp))
+                .map(java.util.Map.Entry::getValue)
+                .orElseGet(HashMap::empty));
+    }
+
+    public StructureHolder<Map<K, V>> getLatestTableView() {
+        return StructureHolder.create(() -> Optional.ofNullable(tableViews.lastEntry())
+                .map(java.util.Map.Entry::getValue)
+                .orElseGet(HashMap::empty));
+    }
+}u}(jT  (165c14bed2da1c40158e60686d3e57607f512258j  hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javajï  https://github.com/palantir/atlasdb/raw/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javajů  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=c75242a139c2207057ddb45ff0010459fac178e7jǯ  X?  @@ -0,0 +1,162 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class SnapshotInvariantTest {
+    @Mock
+    private ReadableTransactionStore readableTransactionStore;
+
+    @Test
+    public void catchesWriteWriteConflict() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidTransaction.transaction().startTimestamp()).isEqualTo(5L);
+        assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
+
+        InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
+        assertThat(invalidAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+        assertThat(invalidAction.mismatchedValue())
+                .isEqualTo(MismatchedValue.of(
+                        ValueAndMaybeTimestamp.of(WorkloadTestHelpers.VALUE_ONE, 1L), ValueAndMaybeTimestamp.empty()));
+    }
+
+    @Test
+    public void catchesAbaWriteWriteConflictForDeletes() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .delete(5, 10)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidTransaction.transaction().startTimestamp()).isEqualTo(5L);
+        assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
+
+        InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
+        assertThat(invalidAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+        assertThat(invalidAction.mismatchedValue())
+                .isEqualTo(MismatchedValue.of(
+                        ValueAndMaybeTimestamp.of(Optional.empty(), 1L), ValueAndMaybeTimestamp.empty()));
+    }
+
+    @Test
+    public void doesNotCatchWriteSkew() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .read(5, 10)
+                .write(6, 10, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void doesNotCatchReadOnlyTransactionAnomaly() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(11L)
+                .read(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .startTransaction(12L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(13L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void properlyReplaysReadsAndWrites() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .read(5, 10)
+                .endTransaction(15L)
+                .startTransaction(16L)
+                .read(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(17L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+}u}(jT  (536813aeb3973b4b9f9bd25d91bf425cf6efeb37j  iatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/VersionedTableViewTest.javaj  addedj  KHj  K j  KHj  https://github.com/palantir/atlasdb/blob/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.javajï  https://github.com/palantir/atlasdb/raw/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.javajů  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.java?ref=c75242a139c2207057ddb45ff0010459fac178e7jǯ  XU  @@ -0,0 +1,72 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.TreeMap;
+import org.junit.Test;
+
+public final class VersionedTableViewTest {
+    @Test
+    public void putStoresTable() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        tableView.put(1L, HashMap.of(10L, 20L));
+        assertThat(tableView.getLatestTableView().getSnapshot().toJavaMap())
+                .containsExactlyEntriesOf(java.util.Map.of(10L, 20L));
+    }
+
+    @Test
+    public void getLatestTableViewFetchesLargestVersion() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedLastView = HashMap.of(30L, 40L);
+        tableView.put(1L, HashMap.of(10L, 20L));
+        tableView.put(2L, HashMap.of(20L, 30L));
+        tableView.put(3L, HashMap.of(30L, 40L));
+        assertThat(tableView.getLatestTableView().getSnapshot()).isEqualTo(expectedLastView);
+    }
+
+    @Test
+    public void getViewFetchesViewBeforeTimestamp() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedView = HashMap.of(10L, 20L);
+        tableView.put(1L, expectedView);
+        tableView.put(3L, HashMap.of(20L, 30L));
+        assertThat(tableView.getView(2L).getSnapshot()).isEqualTo(expectedView);
+    }
+
+    @Test
+    public void getViewThrowsWhenFetchingViewForTimestampThatExists() {
+        Long timestamp = 1L;
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedView = HashMap.of(10L, 20L);
+        tableView.put(timestamp, expectedView);
+
+        TreeMap<Long, Map<Long, Long>> tableViews = new TreeMap<>();
+        tableViews.put(timestamp, tableView.getLatestTableView().getSnapshot());
+
+        assertThatLoggableExceptionThrownBy(() -> tableView.getView(1L).getSnapshot())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("It is expected when obtaining a view")
+                .hasExactlyArgs(SafeArg.of("startTimestamp", 1L), SafeArg.of("tableViews", tableViews));
+    }
+}u}(jT  (cad53b71091234e55f82b97b4b6e475eebb5559bj  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajï  https://github.com/palantir/atlasdb/raw/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajů  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=c75242a139c2207057ddb45ff0010459fac178e7jǯ  X  @@ -40,6 +40,13 @@ public WitnessedTransactionsBuilder(String table) {
         this.table = table;
     }
 
+    public WitnessedTransactionBuilder startTransaction(long startTimestamp) {
+        if (startTimestamp > timestampCounter.get()) {
+            timestampCounter.set(startTimestamp);
+        }
+        return new WitnessedTransactionBuilder(startTimestamp);
+    }
+
     public WitnessedTransactionBuilder startTransaction() {
         return new WitnessedTransactionBuilder(timestampCounter.incrementAndGet());
     }u}(jT  (bdf9a77b3f524e363e5144842e79d33e09bcbe78j  hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javajï  https://github.com/palantir/atlasdb/raw/c75242a139c2207057ddb45ff0010459fac178e7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javajů  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=c75242a139c2207057ddb45ff0010459fac178e7jǯ  X  @@ -19,6 +19,7 @@
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.invariant.ValueAndMaybeTimestamp;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
@@ -58,5 +59,9 @@ public final class WorkloadTestHelpers {
             TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_ONE);
     public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
             TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO);
+
+    public static final ValueAndMaybeTimestamp VALUE_ONE_AND_TIMESTAMP = ValueAndMaybeTimestamp.of(VALUE_ONE, 1L);
+
+    public static final ValueAndMaybeTimestamp VALUE_TWO_AND_TIMESTAMP = ValueAndMaybeTimestamp.of(VALUE_TWO, 1L);
     public static final String WORKFLOW = "example-workflow";
 }ueu(0ce260ac430194e8c8c55df19cafee6943804130}(sha(0ce260ac430194e8c8c55df19cafee6943804130node_idEC_kwDOAjP5fdoAKDBjZTI2MGFjNDMwMTk0ZThjOGM1NWRmMTljYWZlZTY5NDM4MDQxMzAcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-15T13:40:07Zu	committer}(j+  svc-autoreleasej-  -pd-foundry-infrastructure-notify@palantir.comj/  2023-05-15T13:40:07Zumessage"Autorelease 0.854.0-rc1

[skip ci]tree}(j#  (457e53a9db790a95888dfee93bc403f75388b1b0url`https://api.github.com/repos/palantir/atlasdb/git/trees/457e53a9db790a95888dfee93bc403f75388b1b0uj;  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0ce260ac430194e8c8c55df19cafee6943804130
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRiNjgACgkQhbrR8ip7mDBx/QEAzJNgjryvyir8PAKc/vtlER1p
rvsNEgU8cYE7bfIz4WYBALdB9V63/GFP17s1At/9aJUxYSU5bl88Ys0LXYZ4ZZzq
=+ai4
-----END PGP SIGNATURE-----
payloadX(  tree 457e53a9db790a95888dfee93bc403f75388b1b0
parent 7b9ddf867bba22bc8cc91b30b4fff3b81bc248ce
author aalouane <30903736+ergo14@users.noreply.github.com> 1684158007 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684158007 +0000

Autorelease 0.854.0-rc1

[skip ci]uuj;  ^https://api.github.com/repos/palantir/atlasdb/commits/0ce260ac430194e8c8c55df19cafee6943804130html_urlShttps://github.com/palantir/atlasdb/commit/0ce260ac430194e8c8c55df19cafee6943804130comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0ce260ac430194e8c8c55df19cafee6943804130/commentsj)  }(loginergo14idJj%  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j;  #https://api.github.com/users/ergo14jI  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj1  }(jN  svc-autoreleasejP  J(j%  MDQ6VXNlcjUxNzE4MzQ2jR  4https://avatars.githubusercontent.com/u/51718346?v=4jT  h5j;  ,https://api.github.com/users/svc-autoreleasejI  "https://github.com/svc-autoreleasejW  6https://api.github.com/users/svc-autorelease/followersjY  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j[  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j]  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j_  :https://api.github.com/users/svc-autorelease/subscriptionsja  1https://api.github.com/users/svc-autorelease/orgsjc  2https://api.github.com/users/svc-autorelease/reposje  =https://api.github.com/users/svc-autorelease/events{/privacy}jg  <https://api.github.com/users/svc-autorelease/received_eventsji  Userjk  uparents]}(j#  (7b9ddf867bba22bc8cc91b30b4fff3b81bc248cej;  ^https://api.github.com/repos/palantir/atlasdb/commits/7b9ddf867bba22bc8cc91b30b4fff3b81bc248cejI  Shttps://github.com/palantir/atlasdb/commit/7b9ddf867bba22bc8cc91b30b4fff3b81bc248ceuastats}(totalK 	additionsK 	deletionsK ufiles]u(151ff85f0617e833eafdc8fcbc85b52ce5b96d5b}(sha(151ff85f0617e833eafdc8fcbc85b52ce5b96d5bnode_idEC_kwDOAjP5fdoAKDE1MWZmODVmMDYxN2U4MzNlYWZkYzhmY2JjODViNTJjZTViOTZkNWIcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-04-05T11:50:10Zu	committer}(j  
svc-changelogj  svc-changelog@palantir.comj  2023-04-05T11:50:10ZumessageAdd generated changelog entriestree}(j  (056a3b13198a6389e4b218a73efe0cae6eb7e6e6url`https://api.github.com/repos/palantir/atlasdb/git/trees/056a3b13198a6389e4b218a73efe0cae6eb7e6e6uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/151ff85f0617e833eafdc8fcbc85b52ce5b96d5b
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQtYHIJEHYaJX37fAFQAACJPAD/Q4jF66BrP040hDIrqIby5ocu
8WNqkPmaVlyHwntwqigA/i6iTpQFAZXUdX4XcoeEWvLtGJvKW9936tX2E65jSOIM
=T9x7
-----END PGP SIGNATURE-----payloadX  tree 056a3b13198a6389e4b218a73efe0cae6eb7e6e6
parent be87de53b1f314a1170fdef1734afaf2fed4bef2
author svc-changelog <svc-changelog@palantir.com> 1680695410 +0000
committer svc-changelog <svc-changelog@palantir.com> 1680695410 +0000

Add generated changelog entriesuuj  ^https://api.github.com/repos/palantir/atlasdb/commits/151ff85f0617e833eafdc8fcbc85b52ce5b96d5bhtml_urlShttps://github.com/palantir/atlasdb/commit/151ff85f0617e833eafdc8fcbc85b52ce5b96d5bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/151ff85f0617e833eafdc8fcbc85b52ce5b96d5b/commentsj  }(login
svc-changelogidJ#j  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j  *https://api.github.com/users/svc-changelogj   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj  }(j  
svc-changelogj  J#j  MDQ6VXNlcjg0MDc3NjAzj  4https://avatars.githubusercontent.com/u/84077603?v=4j  h5j  *https://api.github.com/users/svc-changelogj   https://github.com/svc-changelogj  4https://api.github.com/users/svc-changelog/followersj  Ahttps://api.github.com/users/svc-changelog/following{/other_user}jð  :https://api.github.com/users/svc-changelog/gists{/gist_id}jŰ  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jǰ  8https://api.github.com/users/svc-changelog/subscriptionsjɰ  /https://api.github.com/users/svc-changelog/orgsj˰  0https://api.github.com/users/svc-changelog/reposjͰ  ;https://api.github.com/users/svc-changelog/events{/privacy}jϰ  :https://api.github.com/users/svc-changelog/received_eventsjѰ  UserjӰ  uparents]}(j  (be87de53b1f314a1170fdef1734afaf2fed4bef2j  ^https://api.github.com/repos/palantir/atlasdb/commits/be87de53b1f314a1170fdef1734afaf2fed4bef2j  Shttps://github.com/palantir/atlasdb/commit/be87de53b1f314a1170fdef1734afaf2fed4bef2uastats}(totalK	additionsK	deletionsK ufiles]}(j  (fdaa0f14c0403bcf95c1cdd5c0f860c959c67c95filename$changelog/@unreleased/pr-6508.v2.ymlstatusaddedj  Kj  K changesKblob_url|https://github.com/palantir/atlasdb/blob/151ff85f0617e833eafdc8fcbc85b52ce5b96d5b/changelog%2F%40unreleased%2Fpr-6508.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/151ff85f0617e833eafdc8fcbc85b52ce5b96d5b/changelog%2F%40unreleased%2Fpr-6508.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6508.v2.yml?ref=151ff85f0617e833eafdc8fcbc85b52ce5b96d5bpatch@@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: DB queries to Oracle/Postgres now use bind variables for rownum/limit
+    terms.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6508uau(05712089f237cb0af78ac74399f4ae6b805879fb}(sha(05712089f237cb0af78ac74399f4ae6b805879fbnode_idEC_kwDOAjP5fdoAKDA1NzEyMDg5ZjIzN2NiMGFmNzhhYzc0Mzk5ZjRhZTZiODA1ODc5ZmIcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-23T12:55:24Zu	committer}(j
  GitHubj  noreply@github.comj  2023-05-23T12:55:24ZumessageIncrement minimum heap to match maximum heap and set active processor count to 8

Co-authored-by: David Schlosnagle <davids@palantir.com>tree}(j  (4ce313622daae5ce959566189a8dd66652bf7430url`https://api.github.com/repos/palantir/atlasdb/git/trees/4ce313622daae5ce959566189a8dd66652bf7430uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/05712089f237cb0af78ac74399f4ae6b805879fb
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkbLe8CRBK7hj4Ov3rIwAA73MIADz4hAmiCgX3Np4Ejq7STwx7
+eU8CCM4KVkKXKSI2UFPP+c865LGxzpAnvm9ZMwQB5RNmKIJog1jmVBLi1ykXit4
nVUgycoU0oPQ9tyyQUZ03rpOL56UP+tJOD/aRn9zLdnSdz1mSxzlAiU9WMDTd58P
TQ4C8qSUldIcJIBBt9Hkw1IuJlOj34f5AVWajd6NJu2ddwIV+j/Ou/YBCj/Ke2V2
mJcIRp3XykJ2HDojqoXga9ZmxMWMxF4s0A2240P8w2P4PQ+yh4OiXnI5h21nAHYG
hNZ37xlDBTujNvLX8mULEalN7WZ40aPZ0rRU+AMb1rp9Hcj+u/O2FuBgaOHSuGA=
=aTV/
-----END PGP SIGNATURE-----
payloadXk  tree 4ce313622daae5ce959566189a8dd66652bf7430
parent 32952de3fd2437a07c47b26b2bb2501f4f44cc90
author aalouane <30903736+ergo14@users.noreply.github.com> 1684846524 +0100
committer GitHub <noreply@github.com> 1684846524 +0100

Increment minimum heap to match maximum heap and set active processor count to 8

Co-authored-by: David Schlosnagle <davids@palantir.com>uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/05712089f237cb0af78ac74399f4ae6b805879fbhtml_urlShttps://github.com/palantir/atlasdb/commit/05712089f237cb0af78ac74399f4ae6b805879fbcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/05712089f237cb0af78ac74399f4ae6b805879fb/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j(  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j-  web-flowj/  J/j  MDQ6VXNlcjE5ODY0NDQ3j1  4https://avatars.githubusercontent.com/u/19864447?v=4j3  h5j  %https://api.github.com/users/web-flowj(  https://github.com/web-flowj6  /https://api.github.com/users/web-flow/followersj8  <https://api.github.com/users/web-flow/following{/other_user}j:  5https://api.github.com/users/web-flow/gists{/gist_id}j<  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j>  3https://api.github.com/users/web-flow/subscriptionsj@  *https://api.github.com/users/web-flow/orgsjB  +https://api.github.com/users/web-flow/reposjD  6https://api.github.com/users/web-flow/events{/privacy}jF  5https://api.github.com/users/web-flow/received_eventsjH  UserjJ  uparents]}(j  (32952de3fd2437a07c47b26b2bb2501f4f44cc90j  ^https://api.github.com/repos/palantir/atlasdb/commits/32952de3fd2437a07c47b26b2bb2501f4f44cc90j(  Shttps://github.com/palantir/atlasdb/commit/32952de3fd2437a07c47b26b2bb2501f4f44cc90uastats}(totalK	additionsK	deletionsKufiles]}(j  (c26bf39fcadc8784eabff6fd1e20a4ad15b5d344filename%scripts/circle-ci/run-circle-tests.shstatusmodifiedjd  Kje  KchangesKblob_url{https://github.com/palantir/atlasdb/blob/05712089f237cb0af78ac74399f4ae6b805879fb/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/05712089f237cb0af78ac74399f4ae6b805879fb/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=05712089f237cb0af78ac74399f4ae6b805879fbpatchX'  @@ -78,7 +78,7 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 if [ "$test_suite_index" -eq "14" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 elif [ "$test_suite_index" -eq "3" ]; then
-    export _JAVA_OPTIONS="-Xmx8g ${JAVA_GC_LOGGING_OPTIONS}"
+    export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
     BASE_GRADLE_ARGS+=" --scan --parallel"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"uau(9af0e988339a6ae7646624a0b050518a169ec32c}(sha(9af0e988339a6ae7646624a0b050518a169ec32cnode_idEC_kwDOAjP5fdoAKDlhZjBlOTg4MzM5YTZhZTc2NDY2MjRhMGIwNTA1MThhMTY5ZWMzMmMcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-07-10T15:34:43Zu	committer}(j  GitHubj  noreply@github.comj  2023-07-10T15:34:43ZumessageIwrite once delete once init (#6634)

Adds write-once-delete-once workflowtree}(jy  (a69b2a66477a3a0339f8a56ed459d68eef527191url`https://api.github.com/repos/palantir/atlasdb/git/trees/a69b2a66477a3a0339f8a56ed459d68eef527191uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9af0e988339a6ae7646624a0b050518a169ec32c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkrCUUCRBK7hj4Ov3rIwAAkooIAF90rLK7u7yT1PAQuFQfNXEV
HFH/3XQ44whKpP7pNz07GeYTz7fDK1G8OcBPoy98fZJRnkqVYmJ902fgeWazVJt/
F0dSQ1EnMx0xgBy/htPgsAMPufW1NhpnKoeBcpnnRYi387WhZ9PktvL1gX3xrnQi
YyB39f0Tcv9UwN+qjqnIK6e2Vl6uN1hsh3AgBPDGKMX4VYPpw6xnZ234Q9/rw2lL
oMfnTffbeczc16ATsvu/oIrRJchd/0z4aKIffGvqFVxiF6ARah6ds881lnFX1zIa
K7NAyHPq0UeTGdzAoRmPQLafRtjQ/SXGH4qZH99vFWREVdXcgZczUgm7zwPDtxk=
=hSRq
-----END PGP SIGNATURE-----
payloadX  tree a69b2a66477a3a0339f8a56ed459d68eef527191
parent d58fdddb4c50848483ec4948da5cfe4a0bfb85a8
author Sam-Kramer <sam.c.kramer@gmail.com> 1689003283 +0100
committer GitHub <noreply@github.com> 1689003283 +0000

write once delete once init (#6634)

Adds write-once-delete-once workflow
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/9af0e988339a6ae7646624a0b050518a169ec32chtml_urlShttps://github.com/palantir/atlasdb/commit/9af0e988339a6ae7646624a0b050518a169ec32ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9af0e988339a6ae7646624a0b050518a169ec32c/commentsj  }(login
Sam-KrameridJ^2_ j{  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j{  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(jy  (d58fdddb4c50848483ec4948da5cfe4a0bfb85a8j  ^https://api.github.com/repos/palantir/atlasdb/commits/d58fdddb4c50848483ec4948da5cfe4a0bfb85a8j  Shttps://github.com/palantir/atlasdb/commit/d58fdddb4c50848483ec4948da5cfe4a0bfb85a8uastats}(totalMr	additionsMf	deletionsKufiles](}(jy  (5a5556860449da126adc5f8a0981453e801987cafilename1atlasdb-workload-server-antithesis/var/compact.shstatusmodifiedj۱  Kjܱ  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shraw_urlhttps://github.com/palantir/atlasdb/raw/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.sh?ref=9af0e988339a6ae7646624a0b050518a169ec32cpatchXx  @@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 ##
 # (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
@@ -16,4 +16,4 @@
 # limitations under the License.
 #
 
-podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool compact'¡
\ No newline at end of file
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool compact'
\ No newline at end of fileu}(jy  (a1a795aca9d4fd841a4cf6f300b5ad151a32e4ecj  9atlasdb-workload-server-antithesis/var/docker-compose.ymlj  modifiedj۱  Kjܱ  Kj  Kj  https://github.com/palantir/atlasdb/blob/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj  https://github.com/palantir/atlasdb/raw/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=9af0e988339a6ae7646624a0b050518a169ec32cj  X  @@ -2,7 +2,7 @@ version: '2'
 
 services:
   cassandra1:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
     ports:
       - "9160"
       - "9042"
@@ -20,7 +20,7 @@ services:
         ipv4_address: 10.20.20.2
 
   cassandra2:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
     ports:
       - "9160"
       - "9042"
@@ -38,7 +38,7 @@ services:
         ipv4_address: 10.20.20.3
 
   cassandra3:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
     ports:
       - "9160"
       - "9042"u}(jy  (f91ee5ba5579e07f5e1e9948bf32e02918dd8185j  /atlasdb-workload-server-antithesis/var/flush.shj  modifiedj۱  Kjܱ  Kj  Kj  https://github.com/palantir/atlasdb/blob/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shj  https://github.com/palantir/atlasdb/raw/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fflush.sh?ref=9af0e988339a6ae7646624a0b050518a169ec32cj  }@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 ##
 # (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.u}(jy  (43f7db29b1f11285d4780b675a722642fd57ab8cj  latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj  modifiedj۱  Kjܱ  Kj  Kj  https://github.com/palantir/atlasdb/blob/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj  https://github.com/palantir/atlasdb/raw/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=9af0e988339a6ae7646624a0b050518a169ec32cj  X  @@ -48,6 +48,8 @@
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
 import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.WriteOnceDeleteOnceWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.WriteOnceDeleteOnceWorkflows;
 import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflows;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
@@ -119,7 +121,7 @@ private void scheduleBackgroundJobs(Environment environment) {
                         AntithesisCassandraSidecarResource.INSTANCE,
                         DefaultBuggifyFactory.INSTANCE),
                 0,
-                10,
+                2,
                 TimeUnit.SECONDS);
     }
 
@@ -150,6 +152,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().bankBalanceConfig();
         RandomWorkflowConfiguration randomWorkflowConfig =
                 configuration.install().randomConfig();
+        WriteOnceDeleteOnceWorkflowConfiguration writeOnceDeleteOnceConfig =
+                configuration.install().writeOnceDeleteOnceConfig();
 
         waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
 
@@ -168,7 +172,9 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 singleBusyCellReadNoTouchWorkflowConfiguration,
                                 environment.lifecycle()),
                         createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
-                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
+                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()),
+                        createWriteOnceDeleteOnceWorkflow(
+                                transactionStoreFactory, writeOnceDeleteOnceConfig, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -355,6 +361,27 @@ private WorkflowAndInvariants<Workflow> createRandomWorkflow(
                 .build();
     }
 
+    private WorkflowAndInvariants<Workflow> createWriteOnceDeleteOnceWorkflow(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            WriteOnceDeleteOnceWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService =
+                createExecutorService(workflowConfig, lifecycle, WriteOnceDeleteOnceWorkflows.class);
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(WriteOnceDeleteOnceWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        WriteOnceDeleteOnceWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
     @VisibleForTesting
     CountDownLatch workflowsRanLatch() {
         return workflowsRanLatch;u}(jy  (5237f9202d66e63079e2924fcc747ca6dc49a0dbj  atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj  modifiedj۱  Kjܱ  K j  Kj  https://github.com/palantir/atlasdb/blob/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj  https://github.com/palantir/atlasdb/raw/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=9af0e988339a6ae7646624a0b050518a169ec32cj  XF  @@ -24,6 +24,7 @@
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.WriteOnceDeleteOnceWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
@@ -48,5 +49,7 @@ public interface WorkloadServerInstallConfiguration {
 
     SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadsNoTouchConfig();
 
+    WriteOnceDeleteOnceWorkflowConfiguration writeOnceDeleteOnceConfig();
+
     boolean exitAfterRunning();
 }u}(jy  (4cd63bc7a837d9125b78d17a9da0491aa4140ae7j  Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj  modifiedj۱  Kjܱ  K j  Kj  https://github.com/palantir/atlasdb/blob/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj  https://github.com/palantir/atlasdb/raw/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=9af0e988339a6ae7646624a0b050518a169ec32cj  Xq  @@ -48,4 +48,10 @@ install:
     iterationCount: 100
     type: single-busy-cell-reads-no-touch
     maxThreadCount: 2
+  writeOnceDeleteOnceConfig:
+    tableConfiguration:
+      tableName: write-once-delete-once-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: write-once-delete-once
   exitAfterRunning: false
\ No newline at end of fileu}(jy  (fbcdf7aa235656e485c4e3e935f1a5c896be2a0aj  Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj  modifiedj۱  Kjܱ  Kj  Kj  https://github.com/palantir/atlasdb/blob/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj  https://github.com/palantir/atlasdb/raw/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=9af0e988339a6ae7646624a0b050518a169ec32cj  XG  @@ -37,7 +37,7 @@ install:
         password: cassandra
       ssl: false
       replicationFactor: 3
-      gcGraceSeconds: 300
+      gcGraceSeconds: 60
     targetedSweep:
       enableSweepQueueWrites: true
     namespace: workload_server
@@ -85,4 +85,10 @@ install:
     iterationCount: 100
     type: single-busy-cell-reads-no-touch
     maxThreadCount: 2
+  writeOnceDeleteOnceConfig:
+    tableConfiguration:
+      tableName: write_once_delete_once_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: write-once-delete-once
   exitAfterRunning: trueu}(jy  (b98150c940857f6d8db8540b9df25fe3acccc161j  Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj  modifiedj۱  Kjܱ  K j  Kj  https://github.com/palantir/atlasdb/blob/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj  https://github.com/palantir/atlasdb/raw/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=9af0e988339a6ae7646624a0b050518a169ec32cj  Xp  @@ -49,4 +49,10 @@ install:
     iterationCount: 100
     type: single-busy-cell-reads-no-touch
     maxThreadCount: 2
+  writeOnceDeleteOnceConfig:
+    tableConfiguration:
+      tableName: write-once-delete-once-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: write-once-delete-once
   exitAfterRunning: true
\ No newline at end of fileu}(jy  (925f21e6a31c29edd1886e242df8560a69dc50bbj  zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflowConfiguration.javaj  addedj۱  K/jܱ  K j  K/j  https://github.com/palantir/atlasdb/blob/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowConfiguration.javaj  https://github.com/palantir/atlasdb/raw/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowConfiguration.java?ref=9af0e988339a6ae7646624a0b050518a169ec32cj  X  @@ -0,0 +1,47 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableWriteOnceDeleteOnceWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableWriteOnceDeleteOnceWorkflowConfiguration.class)
+@JsonTypeName(WriteOnceDeleteOnceWorkflowConfiguration.TYPE)
+public interface WriteOnceDeleteOnceWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "write-once-delete-once";
+
+    TableConfiguration tableConfiguration();
+
+    /**
+     * The maximum value (exclusive) for the row key.
+     * This is half the iteration count, so we ideally perform two actions per cell.
+     */
+    @Value.Derived
+    default Integer maxKey() {
+        return iterationCount() / 2;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jy  (a850b6cc04da7a2a476c96ad9b2bb3f53843a1a2j  natlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflows.javaj  addedj۱  Kjjܱ  K j  Kjj  https://github.com/palantir/atlasdb/blob/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflows.javaj  https://github.com/palantir/atlasdb/raw/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflows.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflows.java?ref=9af0e988339a6ae7646624a0b050518a169ec32cj  X  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.security.SecureRandom;
+import java.util.Optional;
+import java.util.function.IntFunction;
+
+/**
+ * The idea of this class is to catch bugs around tombstone drops, by having a
+ * workflow which _mostly_ writes once first and then on deletes once for a given cell.
+ * Probability and randomness are used to enforce this behaviour, thus it's possible to have a write without a
+ * delete, or visa versa; some cells may randomly be written or deleted multiple times as well.
+ */
+public final class WriteOnceDeleteOnceWorkflows {
+
+    private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+
+    private static final Integer COLUMN = 0;
+
+    private WriteOnceDeleteOnceWorkflows() {
+        // Utility class
+    }
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            WriteOnceDeleteOnceWorkflowConfiguration configuration,
+            ListeningExecutorService executionExecutor) {
+        return create(store, configuration, executionExecutor, DefaultBuggifyFactory.INSTANCE, RANDOM::nextInt);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            InteractiveTransactionStore store,
+            WriteOnceDeleteOnceWorkflowConfiguration configuration,
+            ListeningExecutorService executionExecutor,
+            BuggifyFactory buggifyFactory,
+            IntFunction<Integer> randomNumberGenerator) {
+        WriteOnceDeleteOnceWorkflow workflow =
+                new WriteOnceDeleteOnceWorkflow(buggifyFactory, randomNumberGenerator, configuration);
+        return DefaultWorkflow.create(store, workflow::run, configuration, executionExecutor);
+    }
+
+    private static class WriteOnceDeleteOnceWorkflow {
+        private final BuggifyFactory buggifyFactory;
+        private final IntFunction<Integer> rowKeyGenerator;
+        private final WriteOnceDeleteOnceWorkflowConfiguration configuration;
+
+        public WriteOnceDeleteOnceWorkflow(
+                BuggifyFactory buggifyFactory,
+                IntFunction<Integer> rowKeyGenerator,
+                WriteOnceDeleteOnceWorkflowConfiguration configuration) {
+            this.buggifyFactory = buggifyFactory;
+            this.rowKeyGenerator = rowKeyGenerator;
+            this.configuration = configuration;
+        }
+
+        public Optional<WitnessedTransaction> run(InteractiveTransactionStore store, Integer taskIndex) {
+            configuration.transactionRateLimiter().acquire();
+            return store.readWrite(txn -> {
+                Integer rowKey = rowKeyGenerator.apply(configuration.maxKey());
+                if (buggifyFactory
+                        .maybe(calculateChanceForDelete(taskIndex, configuration.iterationCount()))
+                        .asBoolean()) {
+                    txn.delete(configuration.tableConfiguration().tableName(), cell(rowKey));
+                } else {
+                    txn.write(configuration.tableConfiguration().tableName(), cell(rowKey), RANDOM.nextInt(10000));
+                }
+            });
+        }
+    }
+
+    @VisibleForTesting
+    static Double calculateChanceForDelete(Integer taskIndex, Integer iterationCount) {
+        // Index generation is [inclusive, exclusive], so we need to add 1 to the task index.
+        return (taskIndex + 1.0) / iterationCount;
+    }
+
+    @VisibleForTesting
+    static WorkloadCell cell(Integer index) {
+        return ImmutableWorkloadCell.of(index, COLUMN);
+    }
+}u}(jy  (d3e04df18f75951b9f97593a2ab7325df69f7bdej  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflowTest.javaj  addedj۱  Kjܱ  K j  Kj  https://github.com/palantir/atlasdb/blob/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.java;     j  https://github.com/palantir/atlasdb/raw/9af0e988339a6ae7646624a0b050518a169ec32c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.java?ref=9af0e988339a6ae7646624a0b050518a169ec32cj  X  @@ -0,0 +1,145 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyDouble;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.buggify.AlwaysBuggifyFactory;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggify;
+import com.palantir.atlasdb.buggify.impl.NoOpBuggify;
+import com.palantir.atlasdb.buggify.impl.NoOpBuggifyFactory;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import java.util.Iterator;
+import java.util.List;
+import java.util.function.IntFunction;
+import org.junit.Test;
+
+public class WriteOnceDeleteOnceWorkflowTest {
+    private static final String TABLE_NAME = "my.latte";
+    private static final WriteOnceDeleteOnceWorkflowConfiguration CONFIGURATION =
+            ImmutableWriteOnceDeleteOnceWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .rateLimit(Double.MAX_VALUE)
+                    .iterationCount(1)
+                    .build();
+
+    private final InteractiveTransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+
+    @Test
+    public void deleteWhenBuggifyTrue() {
+        Workflow workflow = createWorkflow(AlwaysBuggifyFactory.INSTANCE, i -> i);
+        WorkflowHistory history = workflow.run();
+        WitnessedTransaction transaction = Iterables.getOnlyElement(history.history());
+        WitnessedTransactionAction action = Iterables.getOnlyElement(transaction.actions());
+        assertThat(action).isInstanceOf(WitnessedDeleteTransactionAction.class);
+    }
+
+    @Test
+    public void writeWhenBuggifyFalse() {
+        Workflow workflow = createWorkflow(NoOpBuggifyFactory.INSTANCE, i -> i);
+        WorkflowHistory history = workflow.run();
+        WitnessedTransaction transaction = Iterables.getOnlyElement(history.history());
+        WitnessedTransactionAction action = Iterables.getOnlyElement(transaction.actions());
+        assertThat(action).isInstanceOf(WitnessedWriteTransactionAction.class);
+    }
+
+    @Test
+    public void calculateChanceForDeleteHasExpectedValues() {
+        assertThat(WriteOnceDeleteOnceWorkflows.calculateChanceForDelete(0, 100))
+                .isEqualTo(0.01);
+        assertThat(WriteOnceDeleteOnceWorkflows.calculateChanceForDelete(99, 100))
+                .isEqualTo(1.00);
+    }
+
+    @Test
+    public void writesThenDeletes() {
+        Iterator<Integer> keys = List.of(0, 0, 1, 1).iterator();
+        IntFunction<Integer> rowKeyGenerator = _ignore -> keys.next();
+        BuggifyFactory alternatingBuggify = mock(BuggifyFactory.class);
+        when(alternatingBuggify.maybe(anyDouble()))
+                .thenReturn(
+                        NoOpBuggify.INSTANCE, DefaultBuggify.INSTANCE, NoOpBuggify.INSTANCE, DefaultBuggify.INSTANCE);
+        Workflow workflow = createWorkflow(alternatingBuggify, rowKeyGenerator, 4);
+
+        List<WitnessedTransaction> transactions = workflow.run().history();
+
+        assertThat(transactions.size()).isEqualTo(4);
+        assertWriteTransaction(transactions.get(0), 0);
+        assertDeleteTransaction(transactions.get(1), 0);
+        assertWriteTransaction(transactions.get(2), 1);
+        assertDeleteTransaction(transactions.get(3), 1);
+    }
+
+    private static void assertWriteTransaction(WitnessedTransaction transaction, int key) {
+        WitnessedWriteTransactionAction action =
+                getTransactionAction(transaction, WitnessedWriteTransactionAction.class);
+        assertThat(action.cell().key()).isEqualTo(key);
+    }
+
+    private static void assertDeleteTransaction(WitnessedTransaction transaction, int key) {
+        WitnessedDeleteTransactionAction action =
+                getTransactionAction(transaction, WitnessedDeleteTransactionAction.class);
+        assertThat(action.cell().key()).isEqualTo(key);
+    }
+
+    private static <T> T getTransactionAction(WitnessedTransaction transaction, Class<T> clazz) {
+        WitnessedTransactionAction action = Iterables.getOnlyElement(transaction.actions());
+        assertThat(action).isInstanceOf(clazz);
+        return (T) action;
+    }
+
+    private Workflow createWorkflow(BuggifyFactory factory, IntFunction<Integer> randomNumberGenerator) {
+        return createWorkflow(factory, randomNumberGenerator, CONFIGURATION.iterationCount());
+    }
+
+    private Workflow createWorkflow(
+            BuggifyFactory factory, IntFunction<Integer> randomNumberGenerator, int iterationCount) {
+        return WriteOnceDeleteOnceWorkflows.create(
+                memoryStore,
+                ImmutableWriteOnceDeleteOnceWorkflowConfiguration.builder()
+                        .from(CONFIGURATION)
+                        .iterationCount(iterationCount)
+                        .build(),
+                MoreExecutors.newDirectExecutorService(),
+                factory,
+                randomNumberGenerator);
+    }
+}u}(jy  (2ecb3e48963fc66a02ae1c4b4042c97483c1e709j  *scripts/circle-ci/publish-to-antithesis.shj  modifiedj۱  Kjܱ  Kj  Kj  https://github.com/palantir/atlasdb/blob/9af0e988339a6ae7646624a0b050518a169ec32c/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj  https://github.com/palantir/atlasdb/raw/9af0e988339a6ae7646624a0b050518a169ec32c/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj  https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=9af0e988339a6ae7646624a0b050518a169ec32cj  X:  @@ -26,9 +26,9 @@ printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://$
 
 VERSION=$(./gradlew -q printVersion)
 
-docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
-docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc5 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
-docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
+docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
+docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc8 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc8
+docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc8
 
 docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}
 docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}ueu(a120c61b46d29ca5d1a5b02c69c63fd6e7e21510}(sha(a120c61b46d29ca5d1a5b02c69c63fd6e7e21510node_idEC_kwDOAjP5fdoAKGExMjBjNjFiNDZkMjljYTVkMWE1YjAyYzY5YzYzZmQ2ZTdlMjE1MTAcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-04-03T01:39:44Zu	committer}(jP  
svc-changelogjR  svc-changelog@palantir.comjT  2023-04-03T01:39:44ZumessageAdd generated changelog entriestree}(jH  (c4ecc4e368ae784e43c0ac14fe7b707a5885e751url`https://api.github.com/repos/palantir/atlasdb/git/trees/c4ecc4e368ae784e43c0ac14fe7b707a5885e751uj`  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a120c61b46d29ca5d1a5b02c69c63fd6e7e21510
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQqLmAJEHYaJX37fAFQAAD58wEA6m7BNGIBcgSJSDlFbgjD/SUQ
aASxvNiXvbyiJbqRWnoA/24Uh4NuhUwsHheQpsnge8+toDean4w9XF6fcZ53NWlp
=1LRx
-----END PGP SIGNATURE-----payloadX  tree c4ecc4e368ae784e43c0ac14fe7b707a5885e751
parent 73b8f449dccbda2d1a0111b5a99d7459d15b02c1
author svc-changelog <svc-changelog@palantir.com> 1680485984 +0000
committer svc-changelog <svc-changelog@palantir.com> 1680485984 +0000

Add generated changelog entriesuuj`  ^https://api.github.com/repos/palantir/atlasdb/commits/a120c61b46d29ca5d1a5b02c69c63fd6e7e21510html_urlShttps://github.com/palantir/atlasdb/commit/a120c61b46d29ca5d1a5b02c69c63fd6e7e21510comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a120c61b46d29ca5d1a5b02c69c63fd6e7e21510/commentsjN  }(login
svc-changelogidJ#jJ  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j`  *https://api.github.com/users/svc-changelogjn   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujV  }(js  
svc-changelogju  J#jJ  MDQ6VXNlcjg0MDc3NjAzjw  4https://avatars.githubusercontent.com/u/84077603?v=4jy  h5j`  *https://api.github.com/users/svc-changelogjn   https://github.com/svc-changelogj|  4https://api.github.com/users/svc-changelog/followersj~  Ahttps://api.github.com/users/svc-changelog/following{/other_user}j  :https://api.github.com/users/svc-changelog/gists{/gist_id}j  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j  8https://api.github.com/users/svc-changelog/subscriptionsj  /https://api.github.com/users/svc-changelog/orgsj  0https://api.github.com/users/svc-changelog/reposj  ;https://api.github.com/users/svc-changelog/events{/privacy}j  :https://api.github.com/users/svc-changelog/received_eventsj  Userj  uparents]}(jH  (73b8f449dccbda2d1a0111b5a99d7459d15b02c1j`  ^https://api.github.com/repos/palantir/atlasdb/commits/73b8f449dccbda2d1a0111b5a99d7459d15b02c1jn  Shttps://github.com/palantir/atlasdb/commit/73b8f449dccbda2d1a0111b5a99d7459d15b02c1uastats}(totalK	additionsK	deletionsK ufiles]}(jH  (dc8ccab7fb0c3ad8d14f7566ab89d660c8508c47filename$changelog/@unreleased/pr-6498.v2.ymlstatusaddedj  Kj  K changesKblob_url|https://github.com/palantir/atlasdb/blob/a120c61b46d29ca5d1a5b02c69c63fd6e7e21510/changelog%2F%40unreleased%2Fpr-6498.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/a120c61b46d29ca5d1a5b02c69c63fd6e7e21510/changelog%2F%40unreleased%2Fpr-6498.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6498.v2.yml?ref=a120c61b46d29ca5d1a5b02c69c63fd6e7e21510patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Choose optimal IOT compression based on table params
+  links:
+  - https://github.com/palantir/atlasdb/pull/6498uau(cd3abc5e91df1670258a109dc7b7887b9b4dc000}(sha(cd3abc5e91df1670258a109dc7b7887b9b4dc000node_idEC_kwDOAjP5fdoAKGNkM2FiYzVlOTFkZjE2NzAyNThhMTA5ZGM3Yjc4ODdiOWI0ZGMwMDAcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-06T14:40:49Zu	committer}(jǲ  
Sam Kramerjɲ  skramer@palantir.comj˲  2023-03-07T17:13:40Zumessagestash

major cleanuptree}(j  (d344589993117c9d139a51148c33482be1574434url`https://api.github.com/repos/palantir/atlasdb/git/trees/d344589993117c9d139a51148c33482be1574434ujײ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cd3abc5e91df1670258a109dc7b7887b9b4dc000
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQHcMYACgkQmPPOpKR4
XS3Oxwf/X574HOOx1/rlB9wj9mxgdhYtPMQBVTYoruHZp9jKXLZUv3aCotC2jyrd
RDSZgEjqCBjhg1scRFr8o/dY4T9GdVUHgOJYI0xwlCRLEj978nfZW0QbaaswBQom
Gnbq0aZ0WFwhXqGiFa23ht6Youx1RtdsXTq9QQiAB9vREWUhyLPWtSITWiNJfep2
U+LxKz3pP7PfbvjbtTJ1aAktOz4irFirvwKFkOfNa+aASJHrKRMRQSXrWc3HBztS
c/lcAj4jCB9qY5WbwjdaTu1lYtfA+BwREx4FVGDNN0dGsy64x2QIcQLoDzpyE7sn
smGmtW0sqiJkLWZwrD04rCcGmkoGmA==
=oArC
-----END PGP SIGNATURE-----payloadtree d344589993117c9d139a51148c33482be1574434
parent 59b3c30fafe332adb06145bba42343804db0392a
author Sam Kramer <skramer@palantir.com> 1678113649 +0000
committer Sam Kramer <skramer@palantir.com> 1678209220 +0000

stash

major cleanup
uujײ  ^https://api.github.com/repos/palantir/atlasdb/commits/cd3abc5e91df1670258a109dc7b7887b9b4dc000html_urlShttps://github.com/palantir/atlasdb/commit/cd3abc5e91df1670258a109dc7b7887b9b4dc000comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cd3abc5e91df1670258a109dc7b7887b9b4dc000/commentsjŲ  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jײ  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujͲ  }(j  
Sam-Kramerj  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j  h5jײ  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj  1https://api.github.com/users/Sam-Kramer/followersj  >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j  5https://api.github.com/users/Sam-Kramer/subscriptionsj  ,https://api.github.com/users/Sam-Kramer/orgsj  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj  uparents]}(j  (59b3c30fafe332adb06145bba42343804db0392ajײ  ^https://api.github.com/repos/palantir/atlasdb/commits/59b3c30fafe332adb06145bba42343804db0392aj  Shttps://github.com/palantir/atlasdb/commit/59b3c30fafe332adb06145bba42343804db0392auastats}(totalM	additionsǨ	deletionsKufiles](}(j  (7cec9291798ecfcf36a78c28f59165b6af8b6a10filename^atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/cache/StructureHolder.javastatusmodifiedj!  Kj"  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FStructureHolder.javaraw_urlhttps://github.com/palantir/atlasdb/raw/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FStructureHolder.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FStructureHolder.java?ref=cd3abc5e91df1670258a109dc7b7887b9b4dc000patchX=  @@ -23,7 +23,7 @@
  * Utility class to make manipulating {@link io.vavr.collection.Map} and {@link io.vavr.collection.Set} less
  * error-prone as all methods that modify state return a *new* instance in vavr.
  */
-final class StructureHolder<V> {
+public final class StructureHolder<V> {
     private final Supplier<V> initialValueSupplier;
     private V structure;
 
@@ -32,23 +32,23 @@ private StructureHolder(Supplier<V> initialValueSupplier) {
         this.structure = initialValueSupplier.get();
     }
 
-    synchronized void with(Function<V, V> mutator) {
+    public synchronized void with(Function<V, V> mutator) {
         structure = mutator.apply(structure);
     }
 
-    synchronized V getSnapshot() {
+    public synchronized V getSnapshot() {
         return structure;
     }
 
-    synchronized <K> K apply(Function<V, K> function) {
+    public synchronized <K> K apply(Function<V, K> function) {
         return function.apply(structure);
     }
 
-    synchronized void resetToInitialValue() {
+    public synchronized void resetToInitialValue() {
         structure = initialValueSupplier.get();
     }
 
-    static <V> StructureHolder<V> create(Supplier<V> initialValue) {
+    public static <V> StructureHolder<V> create(Supplier<V> initialValue) {
         return new StructureHolder<>(initialValue);
     }
 }u}(j  (5a9055bca46e936af91a8c00bd48fe1aae34e7cdj'  (atlasdb-workload-server-api/build.gradlej)  modifiedj!  Kj"  K j+  Kj,  |https://github.com/palantir/atlasdb/blob/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server-api%2Fbuild.gradlej.  {https://github.com/palantir/atlasdb/raw/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server-api%2Fbuild.gradlej0  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fbuild.gradle?ref=cd3abc5e91df1670258a109dc7b7887b9b4dc000j2  XB  @@ -4,7 +4,11 @@ dependencies {
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'
     implementation 'com.fasterxml.jackson.core:jackson-databind'
+    implementation 'com.palantir.safe-logging:preconditions'
     implementation 'com.google.guava:guava'
+    implementation 'io.vavr:vavr'
     compileOnly 'org.immutables:value::annotations'
     annotationProcessor 'org.immutables:value'
+
+    testImplementation 'com.palantir.safe-logging:preconditions-assertj'
 }
\ No newline at end of fileu}(j  (9341ade66f468191734830b7f9339ad48f69d5d1j'  `atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/Invariant.javaj)  modifiedj!  Kj"  Kj+  Kj,  https://github.com/palantir/atlasdb/blob/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariant.javaj.  https://github.com/palantir/atlasdb/raw/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariant.javaj0  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariant.java?ref=cd3abc5e91df1670258a109dc7b7887b9b4dc000j2  X  @@ -17,10 +17,11 @@
 package com.palantir.atlasdb.workload.invariant;
 
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.function.BiConsumer;
 import java.util.function.Consumer;
 
 /**
- * Check for an invariant given the provided {@link WorkflowHistory}.
- * It's up to the implementing class on how-to handle if an invariant is violated, such as logging or firing a metric.
+ * Check for an invariant given the provided {@link WorkflowHistory},
+ * and call the provided consumer after checking if any violations are detected.
  */
-public interface Invariant extends Consumer<WorkflowHistory> {}
+public interface Invariant<Violations> extends BiConsumer<WorkflowHistory, Consumer<Violations>> {}u}(j  (60ba075ecd63d073e9efed58b8eff668e319f9a2j'  fatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/MismatchedValue.javaj)  modifiedj!  Kj"  K j+  Kj,  https://github.com/palantir/atlasdb/blob/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javaj.  https://github.com/palantir/atlasdb/raw/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javaj0  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.java?ref=cd3abc5e91df1670258a109dc7b7887b9b4dc000j2  XT  @@ -16,6 +16,8 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
 import java.util.Optional;
 import org.immutables.value.Value;
 
@@ -27,6 +29,15 @@ public interface MismatchedValue {
     @Value.Parameter
     Optional<Integer> expected();
 
+    @Value.Check
+    default void actualAndExpectedAreNotEqualToEachOther() {
+        Preconditions.checkArgument(
+                !actual().equals(expected()),
+                "Cannot construct MismatchedValues for two values which are equal.",
+                SafeArg.of("actual", actual()),
+                SafeArg.of("expected", expected()));
+    }
+
     static MismatchedValue of(Optional<Integer> actual, Optional<Integer> expected) {
         return ImmutableMismatchedValue.of(actual, expected);
     }u}(j  (e052c88622c80f46ac62138a0ae4f3f6f267d5d7j'  gatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TableAndWorkloadCell.javaj)  renamedj!  Kj"  Kj+  Kj,  https://github.com/palantir/atlasdb/blob/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTableAndWorkloadCell.javaj.  https://github.com/palantir/atlasdb/raw/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTableAndWorkloadCell.javaj0  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTableAndWorkloadCell.java?ref=cd3abc5e91df1670258a109dc7b7887b9b4dc000j2  X  @@ -22,15 +22,15 @@
  * Convenient class which combines table name and cell, for convenient usage in {@link java.util.Map} or other similar interfaces.
  */
 @Value.Immutable
-public interface TableWorkloadCell {
+public interface TableAndWorkloadCell {
 
     @Value.Parameter
     String tableName();
 
     @Value.Parameter
     WorkloadCell cell();
 
-    static TableWorkloadCell of(String tableName, WorkloadCell workloadCell) {
-        return ImmutableTableWorkloadCell.of(tableName, workloadCell);
+    static TableAndWorkloadCell of(String tableName, WorkloadCell workloadCell) {
+        return ImmutableTableAndWorkloadCell.of(tableName, workloadCell);
     }
 }previous_filenamedatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TableWorkloadCell.javau}(j  (fdc3cd81c9ed15e34163d7cf48dfe6811f95fe05j'  batlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ValidationStore.javaj)  modifiedj!  Kj"  Kj+  K
j,  https://github.com/palantir/atlasdb/blob/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.javaj.  https://github.com/palantir/atlasdb/raw/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.javaj0  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.java?ref=cd3abc5e91df1670258a109dc7b7887b9b4dc000j2  X  @@ -16,18 +16,14 @@
 
 package com.palantir.atlasdb.workload.store;
 
-import java.util.Map;
-import java.util.Set;
+import java.util.Optional;
 
 /**
  * Store used for replaying witnessed transactions, and ultimately being used as the 'source-of-truth' when validating
  * our {@link TransactionStore}.
  */
 public interface ValidationStore {
 
-    /** Return all cells and values for all tables. */
-    Map<TableWorkloadCell, Integer> values();
-
-    /** Returns all cells that have been deleted, and have stayed deleted. */
-    Set<TableWorkloadCell> deletedCells();
+    /** Return all cells and values for all tables. Value is expected to be empty for deleted cells. */
+    io.vavr.collection.Map<TableAndWorkloadCell, Optional<Integer>> values();
 }u}(j  (b5081c6bb7f68583aaaa52e1552a694d90b69641j'  jatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/invariant/MismatchedValueTest.javaj)  addedj!  K2j"  K j+  K2j,  https://github.com/palantir/atlasdb/blob/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javaj.  https://github.com/palantir/atlasdb/raw/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javaj0  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.java?ref=cd3abc5e91df1670258a109dc7b7887b9b4dc000j2  X;  @@ -0,0 +1,50 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.palantir.logsafe.SafeArg;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class MismatchedValueTest {
+
+    private static final Optional<Integer> VALUE_ONE = Optional.of(15);
+    private static final Optional<Integer> VALUE_TWO = Optional.of(25);
+
+    @Test
+    public void canConstructMismatchedValueFromTwoDifferentValues() {
+        assertThatCode(() -> MismatchedValue.of(VALUE_ONE, VALUE_TWO)).doesNotThrowAnyException();
+    }
+
+    @Test
+    public void actualIsFirstArgumentAndExpectedIsSecondArgument() {
+        MismatchedValue mismatchedValue = MismatchedValue.of(VALUE_ONE, VALUE_TWO);
+        assertThat(mismatchedValue.actual()).isEqualTo(VALUE_ONE);
+        assertThat(mismatchedValue.expected()).isEqualTo(VALUE_TWO);
+    }
+
+    @Test
+    public void throwsWhenActualAndExpectedAreTheSame() {
+        assertThatLoggableExceptionThrownBy(() -> MismatchedValue.of(VALUE_ONE, VALUE_ONE))
+                .hasMessageContaining("Cannot construct MismatchedValues for two values which are equal.")
+                .hasExactlyArgs(SafeArg.of("actual", VALUE_ONE), SafeArg.of("expected", VALUE_ONE));
+    }
+}u}(j  (79750fff00065612bcb1c8c7aea080ef63c1ed89j'  $atlasdb-workload-server/build.gradlej)  modifiedj!  Kj"  K j+  Kj,  xhttps://github.com/palantir/atlasdb/blob/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server%2Fbuild.gradlej.  whttps://github.com/palantir/atlasdb/raw/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server%2Fbuild.gradlej0  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=cd3abc5e91df1670258a109dc7b7887b9b4dc000j2  X{  @@ -5,16 +5,19 @@ dependencies {
     implementation project(':atlasdb-api')
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-config')
+    implementation project(':atlasdb-impl-shared')
 
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'
     implementation 'com.fasterxml.jackson.core:jackson-databind'
     implementation 'com.palantir.safe-logging:preconditions'
     implementation 'com.palantir.safe-logging:safe-logging'
     implementation 'one.util:streamex'
+    implementation 'io.vavr:vavr'
 
     testImplementation project(':commons-executors')
     testImplementation 'org.mockito:mockito-core'
+    testImplementation 'com.palantir.safe-logging:preconditions-assertj'
     testImplementation('org.jmock:jmock') {
         exclude group: 'org.hamcrest'
     }u}(j  (fb9a37a5c70b18ac637240f0acb3338f8f255e8aj'  iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariant.javaj)  modifiedj!  Kj"  KDj+  KYj,  https://github.com/palantir/atlasdb/blob/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj.  https://github.com/palantir/atlasdb/raw/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj0  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.java?ref=cd3abc5e91df1670258a109dc7b7887b9b4dc000j2  X&  @@ -16,86 +16,39 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
-import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
-import com.palantir.atlasdb.workload.store.TableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.ValidationStore;
 import com.palantir.atlasdb.workload.transaction.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
+import io.vavr.Tuple;
 import java.util.Map;
 import java.util.Optional;
-import java.util.Set;
 import java.util.function.Consumer;
-import one.util.streamex.EntryStream;
-import one.util.streamex.StreamEx;
 
-public class DurableWritesInvariant implements Invariant {
-
-    private static final SafeLogger log = SafeLoggerFactory.get(DurableWritesInvariant.class);
-
-    private final Consumer<Map<TableWorkloadCell, MismatchedValue>> mismatchingCellsConsumer;
-    private final Consumer<Map<TableWorkloadCell, Integer>> undeletedCellsConsumer;
-
-    public DurableWritesInvariant() {
-        this(DurableWritesInvariant::logMismatchingCells, DurableWritesInvariant::logUndeletedCells);
-    }
-
-    @VisibleForTesting
-    DurableWritesInvariant(
-            Consumer<Map<TableWorkloadCell, MismatchedValue>> mismatchingCellsConsumer,
-            Consumer<Map<TableWorkloadCell, Integer>> undeletedCellsConsumer) {
-        this.mismatchingCellsConsumer = mismatchingCellsConsumer;
-        this.undeletedCellsConsumer = undeletedCellsConsumer;
-    }
+public enum DurableWritesInvariant implements Invariant<Map<TableAndWorkloadCell, MismatchedValue>> {
+    INSTANCE;
 
     @Override
-    public void accept(WorkflowHistory workflowHistory) {
-        InMemoryValidationStore expectedState = InMemoryValidationStore.create(workflowHistory.history());
-        mismatchingCellsConsumer.accept(
-                findCellsThatDoNotMatch(expectedState.values(), workflowHistory.transactionStore()));
-        undeletedCellsConsumer.accept(
-                findCellsThatAreNotDeleted(expectedState.deletedCells(), workflowHistory.transactionStore()));
-    }
-
-    private Map<TableWorkloadCell, MismatchedValue> findCellsThatDoNotMatch(
-            Map<TableWorkloadCell, Integer> expectedCells, ReadableTransactionStore storeToValidate) {
-        return EntryStream.of(expectedCells)
-                .mapToValue((writtenCell, expectedValue) -> {
+    public void accept(
+            WorkflowHistory workflowHistory, Consumer<Map<TableAndWorkloadCell, MismatchedValue>> invariantListener) {
+        ValidationStore expectedState = InMemoryValidationStore.create(workflowHistory.history());
+        ReadableTransactionStore storeToValidate = workflowHistory.transactionStore();
+        Map<TableAndWorkloadCell, MismatchedValue> cellsThatDoNotMatch = expectedState
+                .values()
+                .map((writtenCell, expectedValue) -> {
+                    Optional<MismatchedValue> maybeMismatchedValue = Optional.empty();
                     Optional<Integer> actualValue = storeToValidate.get(writtenCell.tableName(), writtenCell.cell());
-                    if (!actualValue.map(expectedValue::equals).orElse(false)) {
-                        return Optional.of(MismatchedValue.of(actualValue, Optional.of(expectedValue)));
+
+                    if (!actualValue.equals(expectedValue)) {
+                        maybeMismatchedValue = Optional.of(MismatchedValue.of(actualValue, expectedValue));
                     }
-                    return Optional.<MismatchedValue>empty();
-                })
-                .removeValues(Optional::isEmpty)
-                .mapValues(Optional::get)
-                .toMap();
-    }
 
-    private Map<TableWorkloadCell, Integer> findCellsThatAreNotDeleted(
-            Set<TableWorkloadCell> cells, ReadableTransactionStore storeToValidate) {
-        return StreamEx.of(cells)
-                .mapToEntry(cell -> storeToValidate.get(cell.tableName(), cell.cell()))
-                .removeValues(Optional::isEmpty)
+                    return Tuple.of(writtenCell, maybeMismatchedValue);
+                })
+                .filterValues(Optional::isPresent)
                 .mapValues(Optional::get)
-                .toMap();
-    }
-
-    private static void logMismatchingCells(Map<TableWorkloadCell, MismatchedValue> mismatchingCells) {
-        mismatchingCells.forEach((cell, mismatchedValue) -> log.error(
-                "In-memory state does not match external transactional store.",
-                SafeArg.of("table", cell.tableName()),
-                SafeArg.of("cell", cell.cell()),
-                SafeArg.of("mismatchedValue", mismatchedValue)));
-    }
-
-    private static void logUndeletedCells(Map<TableWorkloadCell, Integer> undeletedCells) {
-        undeletedCells.forEach((cell, value) -> log.error(
-                "Cell existed when it is expected to be deleted.",
-                SafeArg.of("tableName", cell.tableName()),
-                SafeArg.of("cell", cell.cell()),
-                SafeArg.of("value", value)));
+                .toJavaMap();
+        invariantListener.accept(cellsThatDoNotMatch);
     }
 }u}(j  (540ddc74aac24155a76f249f1769c86cb32e86f1j'  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStore.javaj)  modifiedj!  Kj"  K#j+  K7j,  https://github.com/palantir/atlasdb/blob/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javaj.  https://github.com/palantir/atlasdb/raw/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javaj0  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.java?ref=cd3abc5e91df1670258a109dc7b7887b9b4dc000j2  X3  @@ -16,30 +16,26 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.TableWorkloadCell;
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.ValidationStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.HashSet;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
 import java.util.List;
-import java.util.Map;
-import java.util.Set;
+import java.util.Optional;
 import javax.annotation.concurrent.NotThreadSafe;
 
 public final class InMemoryValidationStore implements ValidationStore {
 
-    private final Map<TableWorkloadCell, Integer> values;
+    private final Map<TableAndWorkloadCell, Optional<Integer>> values;
 
-    private final Set<TableWorkloadCell> deletedCells;
-
-    private InMemoryValidationStore(Map<TableWorkloadCell, Integer> values, Set<TableWorkloadCell> deletedCells) {
-        this.deletedCells = Collections.unmodifiableSet(deletedCells);
-        this.values = Collections.unmodifiableMap(values);
+    private InMemoryValidationStore(Map<TableAndWorkloadCell, Optional<Integer>> values) {
+        this.values = values;
     }
 
     public static InMemoryValidationStore create(List<WitnessedTransaction> history) {
@@ -48,24 +44,19 @@ public static InMemoryValidationStore create(List<WitnessedTransaction> history)
                 .map(WitnessedTransaction::actions)
                 .forEach(witnessedTransactionActions ->
                         witnessedTransactionActions.forEach(action -> action.accept(replayer)));
-        return new InMemoryValidationStore(replayer.getValues(), replayer.getDeletedCells());
+        return new InMemoryValidationStore(replayer.getValues());
     }
 
     @Override
-    public Map<TableWorkloadCell, Integer> values() {
+    public Map<TableAndWorkloadCell, Optional<Integer>> values() {
         return values;
     }
 
-    @Override
-    public Set<TableWorkloadCell> deletedCells() {
-        return deletedCells;
-    }
-
     @NotThreadSafe
     private static final class InMemoryTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
 
-        private final Map<TableWorkloadCell, Integer> values = new HashMap<>();
-        private final Set<TableWorkloadCell> deletedCells = new HashSet<>();
+        private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> values =
+                StructureHolder.create(HashMap::empty);
 
         @Override
         public Void visit(WitnessedReadTransactionAction readTransactionAction) {
@@ -74,28 +65,22 @@ public Void visit(WitnessedReadTransactionAction readTransactionAction) {
 
         @Override
         public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
-            TableWorkloadCell tableWorkloadCell =
-                    TableWorkloadCell.of(writeTransactionAction.table(), writeTransactionAction.cell());
-            values.put(tableWorkloadCell, writeTransactionAction.value());
-            deletedCells.remove(tableWorkloadCell);
+            TableAndWorkloadCell tableAndWorkloadCell =
+                    TableAndWorkloadCell.of(writeTransactionAction.table(), writeTransactionAction.cell());
+            values.with(map -> map.put(tableAndWorkloadCell, Optional.of(writeTransactionAction.value())));
             return null;
         }
 
         @Override
         public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
-            TableWorkloadCell tableWorkloadCell =
-                    TableWorkloadCell.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
-            values.remove(tableWorkloadCell);
-            deletedCells.add(tableWorkloadCell);
+            TableAndWorkloadCell tableAndWorkloadCell =
+                    TableAndWorkloadCell.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
+            values.with(map -> map.put(tableAndWorkloadCell, Optional.empty()));
             return null;
         }
 
-        public Map<TableWorkloadCell, Integer> getValues() {
-            return values;
-        }
-
-        public Set<TableWorkloadCell> getDeletedCells() {
-            return deletedCells;
+        public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
+            return values.getSnapshot();
         }
     }
 }u}(j  (492707df4f2e056d49e3891576cb84af6a07149dj'  matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantTest.javaj)  modifiedj!  Kj"  K$j+  K>j,  https://github.com/palantir/atlasdb/blob/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj.  https://github.com/palantir/atlasdb/raw/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj0  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.java?ref=cd3abc5e91df1670258a109dc7b7887b9b4dc000j2  X  @@ -16,17 +16,18 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.palantir.atlasdb.factory.TransactionManagers;
-import com.palantir.atlasdb.keyvalue.api.Namespace;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
-import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
-import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
-import com.palantir.atlasdb.workload.store.TableWorkloadCell;
-import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
@@ -45,37 +46,26 @@
 
 public final class DurableWritesInvariantTest {
 
-    private static final String TABLE = "foo";
-    private static final TableReference TABLE_REFERENCE = TableReference.create(Namespace.DEFAULT_NAMESPACE, TABLE);
-
-    private static final WorkloadCell WORKLOAD_CELL_1 = ImmutableWorkloadCell.of(1, 2);
-    private static final WorkloadCell WORKLOAD_CELL_2 = ImmutableWorkloadCell.of(3, 4);
-    private static final Integer VALUE_ONE = 5;
-    private static final Integer VALUE_TWO = 3;
-
-    private TransactionManager manager;
     private AtlasDbTransactionStore store;
 
     @Before
     public void before() {
-        manager = TransactionManagers.createInMemory(Set.of());
         store = AtlasDbTransactionStore.create(
-                manager, Map.of(TABLE_REFERENCE, AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
+                TransactionManagers.createInMemory(Set.of()),
+                Map.of(TABLE_REFERENCE, AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
     }
 
     @Test
-    public void undeletedCellsAreFoundAndDeletedAreIgnored() {
-        AtomicReference<Map<TableWorkloadCell, Integer>> undeletedCells = new AtomicReference<>();
-
-        DurableWritesInvariant durableWritesInvariant = new DurableWritesInvariant(_ignore -> {}, undeletedCells::set);
+    public void cellsExpectedToBeDeletedAreFound() {
+        AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
                 ImmutableWitnessedTransaction.builder()
-                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_1))
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
                 ImmutableWitnessedTransaction.builder()
-                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_2))
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .build());
@@ -84,25 +74,25 @@ public void undeletedCellsAreFoundAndDeletedAreIgnored() {
                 .transactionStore(store)
                 .build();
 
-        store.readWrite(List.of(WriteTransactionAction.of(TABLE, WORKLOAD_CELL_2, VALUE_ONE)));
-        durableWritesInvariant.accept(history);
-        assertThat(undeletedCells.get())
-                .containsExactlyEntriesOf(Map.of(TableWorkloadCell.of(TABLE, WORKLOAD_CELL_2), VALUE_ONE));
+        store.readWrite(List.of(WriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_ONE)));
+        DurableWritesInvariant.INSTANCE.accept(history, mismatchingCells::set);
+        assertThat(mismatchingCells.get())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_TWO),
+                        MismatchedValue.of(Optional.of(VALUE_ONE), Optional.empty())));
     }
 
     @Test
     public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
-        AtomicReference<Map<TableWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
-        DurableWritesInvariant durableWritesInvariant =
-                new DurableWritesInvariant(mismatchingCells::set, _ignore -> {});
+        AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
                 ImmutableWitnessedTransaction.builder()
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_1, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
                 ImmutableWitnessedTransaction.builder()
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_2, VALUE_TWO))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .build());
@@ -112,12 +102,12 @@ public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
                 .build();
 
         store.readWrite(List.of(
-                WriteTransactionAction.of(TABLE, WORKLOAD_CELL_1, VALUE_ONE),
-                WriteTransactionAction.of(TABLE, WORKLOAD_CELL_2, VALUE_ONE)));
-        durableWritesInvariant.accept(history);
+                WriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE),
+                WriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_ONE)));
+        DurableWritesInvariant.INSTANCE.accept(history, mismatchingCells::set);
         assertThat(mismatchingCells.get())
                 .containsExactlyEntriesOf(Map.of(
-                        TableWorkloadCell.of(TABLE, WORKLOAD_CELL_2),
+                        TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_TWO),
                         MismatchedValue.of(Optional.of(VALUE_ONE), Optional.of(VALUE_TWO))));
     }
 }u}(j  (d5a1453ae0ff1289f42895870113a7c420e954f3j'  jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj)  modifiedj!  Kj"  Kj+  Kj,  https://github.com/palantir/atlasdb/blob/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj.  https://github.com/palantir/atlasdb/raw/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj0  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=cd3abc5e91df1670258a109dc7b7887b9b4dc000j2  X	  @@ -16,6 +16,14 @@
 
 package com.palantir.atlasdb.workload.store;
 
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.INDEX_REFERENCE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.INDEX_TABLE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_THREE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
@@ -25,8 +33,6 @@
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.Namespace;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
@@ -49,21 +55,6 @@
 
 public final class AtlasDbTransactionStoreTest {
 
-    private static final String TABLE = "foo";
-    private static final String INDEX_TABLE = TABLE + "_index";
-    private static final TableReference TABLE_REFERENCE = TableReference.create(Namespace.DEFAULT_NAMESPACE, TABLE);
-    private static final TableReference INDEX_REFERENCE =
-            TableReference.create(TABLE_REFERENCE.getNamespace(), INDEX_TABLE);
-
-    private static final WorkloadCell WORKLOAD_CELL_ONE =
-            ImmutableWorkloadCell.builder().key(50).column(10).build();
-    private static final WorkloadCell WORKLOAD_CELL_TWO =
-            ImmutableWorkloadCell.builder().key(1257).column(521).build();
-    private static final WorkloadCell WORKLOAD_CELL_THREE =
-            ImmutableWorkloadCell.builder().key(567).column(405234).build();
-
-    private static final Integer VALUE_ONE = 100;
-
     private TransactionManager manager;
 
     private AtlasDbTransactionStore store;u}(j  (b5bb3abf60ade20d3f002dfac2663a905ccbef1ej'  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javaj)  modifiedj!  Kj"  K%j+  KDj,  https://github.com/palantir/atlasdb/blob/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj.  https://github.com/palantir/atlasdb/raw/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj0  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=cd3abc5e91df1670258a109dc7b7887b9b4dc000j2  X  @@ -17,97 +17,91 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE;
-import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_1;
-import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_2;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_TWO;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
-import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_1;
-import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_2;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
 import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
+import com.palantir.atlasdb.workload.store.ValidationStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import java.util.List;
 import java.util.Map;
+import java.util.Optional;
 import org.junit.Test;
 
 public final class InMemoryValidationStoreTest {
 
     @Test
-    public void writeActionsAreHandled() {
+    public void writeActionsPersistValues() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_1, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_2, VALUE_TWO))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_TWO))
                         .build()));
-        assertThat(store.values())
-                .containsExactlyInAnyOrderEntriesOf(
-                        Map.of(TABLE_WORKLOAD_CELL_1, VALUE_ONE, TABLE_WORKLOAD_CELL_2, VALUE_TWO));
-        assertThat(store.deletedCells()).isEmpty();
+        assertThat(store.values().toJavaMap())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        TABLE_WORKLOAD_CELL_ONE,
+                        Optional.of(VALUE_ONE),
+                        TABLE_WORKLOAD_CELL_TWO,
+                        Optional.of(VALUE_TWO)));
     }
 
     @Test
-    public void deletesAreHandled() {
+    public void deleteActionsPutsEmptyOptionalForCell() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_1, VALUE_ONE))
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_2, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_ONE))
                         .build(),
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
-                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_1))
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))
                         .build()));
-        assertThat(store.values()).containsExactlyEntriesOf(Map.of(TABLE_WORKLOAD_CELL_2, VALUE_ONE));
-        assertThat(store.deletedCells()).containsExactlyInAnyOrder(TABLE_WORKLOAD_CELL_1);
+        assertThat(store.values().toJavaMap())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        TABLE_WORKLOAD_CELL_ONE, Optional.empty(), TABLE_WORKLOAD_CELL_TWO, Optional.of(VALUE_ONE)));
     }
 
     @Test
-    public void writesDeletesAreHandledInOrder() {
+    public void writesDeletesAreProcessedInOrder() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_1, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
-                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_1))
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))
                         .build(),
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(5)
                         .commitTimestamp(6)
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_1, VALUE_TWO))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_TWO))
                         .build()));
-        assertThat(store.values()).containsExactlyEntriesOf(Map.of(TABLE_WORKLOAD_CELL_1, VALUE_TWO));
-        assertThat(store.deletedCells()).isEmpty();
+        assertThat(store.values().toJavaMap())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_TWO)));
     }
 
     @Test
     public void valuesCannotBeModified() {
-        InMemoryValidationStore store = InMemoryValidationStore.create(List.of());
-        assertThatThrownBy(() -> store.values().remove(new Object())).isInstanceOf(UnsupportedOperationException.class);
-        assertThatThrownBy(() -> store.values().put(TABLE_WORKLOAD_CELL_1, 10))
-                .isInstanceOf(UnsupportedOperationException.class);
-    }
-
-    @Test
-    public void deletedCellsCannotBeModified() {
-        InMemoryValidationStore store = InMemoryValidationStore.create(List.of());
-        assertThatThrownBy(() -> store.deletedCells().remove(new Object()))
-                .isInstanceOf(UnsupportedOperationException.class);
-        assertThatThrownBy(() -> store.deletedCells().add(TABLE_WORKLOAD_CELL_1))
-                .isInstanceOf(UnsupportedOperationException.class);
+        ValidationStore validationStore = InMemoryValidationStore.create(List.of());
+        validationStore.values().put(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_TWO));
+        assertThat(validationStore.values()).isEmpty();
     }
 }u}(j  (adb90ee8ed821a15d9bca1af099c7be1399c2665j'  hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javaj)  modifiedj!  Kj"  Kj+  Kj,  https://github.com/palantir/atlasdb/blob/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj.  https://github.com/palantir/atlasdb/raw/cd3abc5e91df1670258a109dc7b7887b9b4dc000/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj0  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=cd3abc5e91df1670258a109dc7b7887b9b4dc000j2  X  @@ -19,17 +19,23 @@
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
-import com.palantir.atlasdb.workload.store.TableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 
 public final class WorkloadTestHelpers {
     public static final String TABLE = "foo";
+    public static final String INDEX_TABLE = TABLE + "_index";
     public static final TableReference TABLE_REFERENCE = TableReference.create(Namespace.DEFAULT_NAMESPACE, TABLE);
-
-    public static final WorkloadCell WORKLOAD_CELL_1 = ImmutableWorkloadCell.of(1, 2);
-    public static final WorkloadCell WORKLOAD_CELL_2 = ImmutableWorkloadCell.of(3, 4);
-    public static final Integer VALUE_ONE = 5;
-    public static final Integer VALUE_TWO = 3;
-    public static final TableWorkloadCell TABLE_WORKLOAD_CELL_1 = TableWorkloadCell.of(TABLE, WORKLOAD_CELL_1);
-    public static final TableWorkloadCell TABLE_WORKLOAD_CELL_2 = TableWorkloadCell.of(TABLE, WORKLOAD_CELL_2);
+    public static final TableReference INDEX_REFERENCE =
+            TableReference.create(TABLE_REFERENCE.getNamespace(), INDEX_TABLE);
+    public static final WorkloadCell WORKLOAD_CELL_ONE = ImmutableWorkloadCell.of(50, 10);
+    public static final WorkloadCell WORKLOAD_CELL_TWO = ImmutableWorkloadCell.of(1257, 521);
+    public static final WorkloadCell WORKLOAD_CELL_THREE =
+            ImmutableWorkloadCell.builder().key(567).column(405234).build();
+    public static final Integer VALUE_ONE = 541;
+    public static final Integer VALUE_TWO = 334;
+    public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_ONE =
+            TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_ONE);
+    public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
+            TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_TWO);
 }ueu(      (d76a43981b51f7ef07a33a9170c18797ed08c3f4}(sha(d76a43981b51f7ef07a33a9170c18797ed08c3f4node_idEC_kwDOAjP5fdoAKGQ3NmE0Mzk4MWI1MWY3ZWYwN2EzM2E5MTcwYzE4Nzk3ZWQwOGMzZjQcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-05-31T15:34:50Zu	committer}(j  	Tom Papkej  tpapke@palantir.comj  2023-05-31T15:43:14Zumessage+Rename test and assert method for alignmenttree}(j  (ec6c83b0b10b3079d960c600c5f8a0d579da4409url`https://api.github.com/repos/palantir/atlasdb/git/trees/ec6c83b0b10b3079d960c600c5f8a0d579da4409uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d76a43981b51f7ef07a33a9170c18797ed08c3f4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmR3axIACgkQmF9s0kaF
Iw121QgAhUbtw54giOOJDxHHhYnXjqrLDgCUqJ0TcgmG3QCzboDxdeQSD/YKp2mE
HyH6PudxQMhzPPGVSxP6+WAyTXMb/kMtIltf6lqZDl+4OR4Dw67lE9OZqclb5wBG
x796i2isiTkE3E7SFX+2LSO9bcfK5DJH4rRhIoe9PhYruSdKPEsj2tXJ/xw1hJ3q
8LcoUGjqkEsTuCIbIfIs4Mj0VuilUZagvPgBY95lhTV2OPqzZKX4d4+v6/ELOKkV
+EbzN65MJBnulcCdelJQcql3IPOMFiXhHNvWntJLf12SByfsPQkaYD0HRpk1PpxW
43lMhrF6HqdRqf+62OtNiXSjvcmPoA==
=N4pH
-----END PGP SIGNATURE-----payloadtree ec6c83b0b10b3079d960c600c5f8a0d579da4409
parent 6432b0da64243c512473b2d8e9ff3115d1403c85
author Tom Papke <tpapke@palantir.com> 1685547290 +0100
committer Tom Papke <tpapke@palantir.com> 1685547794 +0100

Rename test and assert method for alignment
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/d76a43981b51f7ef07a33a9170c18797ed08c3f4html_urlShttps://github.com/palantir/atlasdb/commit/d76a43981b51f7ef07a33a9170c18797ed08c3f4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d76a43981b51f7ef07a33a9170c18797ed08c3f4/commentsj  }(login	ToemmscheidJboj  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j  &https://api.github.com/users/ToemmschejƳ  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj  }(j˳  	Toemmschejͳ  Jboj  MDQ6VXNlcjQzNjc1NDkwjϳ  4https://avatars.githubusercontent.com/u/43675490?v=4jѳ  h5j  &https://api.github.com/users/ToemmschejƳ  https://github.com/ToemmschejԳ  0https://api.github.com/users/Toemmsche/followersjֳ  =https://api.github.com/users/Toemmsche/following{/other_user}jس  6https://api.github.com/users/Toemmsche/gists{/gist_id}jڳ  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jܳ  4https://api.github.com/users/Toemmsche/subscriptionsj޳  +https://api.github.com/users/Toemmsche/orgsj  ,https://api.github.com/users/Toemmsche/reposj  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj  Userj  uparents]}(j  (6432b0da64243c512473b2d8e9ff3115d1403c85j  ^https://api.github.com/repos/palantir/atlasdb/commits/6432b0da64243c512473b2d8e9ff3115d1403c85jƳ  Shttps://github.com/palantir/atlasdb/commit/6432b0da64243c512473b2d8e9ff3115d1403c85uastats}(totalK	additionsK	deletionsKufiles](}(j  (986a05df78eb8f8a50d6f571757c4fb5ff5d1f0efilenameuatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetricsAssert.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/d76a43981b51f7ef07a33a9170c18797ed08c3f4/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d76a43981b51f7ef07a33a9170c18797ed08c3f4/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.java?ref=d76a43981b51f7ef07a33a9170c18797ed08c3f4patchX  @@ -59,7 +59,7 @@ public TransactionOutcomeMetricsAssert hasRollbackOther(long count) {
         return this;
     }
 
-    public TransactionOutcomeMetricsAssert hasLocksAcquisitionFailures(long count) {
+    public TransactionOutcomeMetricsAssert hasLockAcquisitionFailures(long count) {
         checkPresentAndCheckCount(TransactionOutcome.LOCK_ACQUISITION_FAILED, count);
         return this;
     }u}(j  (2d5b6ff8b115e5f6e6aa0e07ba959947c4a90699j  eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj
  modifiedj  Kj  Kj  K
j
  https://github.com/palantir/atlasdb/blob/d76a43981b51f7ef07a33a9170c18797ed08c3f4/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj  https://github.com/palantir/atlasdb/raw/d76a43981b51f7ef07a33a9170c18797ed08c3f4/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=d76a43981b51f7ef07a33a9170c18797ed08c3f4j  X'  @@ -1487,7 +1487,7 @@ public void commitThrowsIfRolledBackAtCommitTime_expiredLocks() {
     }
 
     @Test
-    public void commitThrowsIfLocksAcquisitionFails() {
+    public void commitThrowsIfLockAcquisitionFails() {
         final Cell cell = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("column1"));
 
         TimelockService timelockServiceMock = mock(TimelockService.class);
@@ -1498,18 +1498,18 @@ public void commitThrowsIfLocksAcquisitionFails() {
         LockImmutableTimestampResponse res = conjureResponse.getImmutableTimestamp();
         long transactionTs = conjureResponse.getTimestamps().start();
 
-        Transaction snapshot = getSnapshotTransactionWith(timelockServiceMock, () -> transactionTs, res, unused -> {
-        });
+        Transaction snapshot = getSnapshotTransactionWith(timelockServiceMock, () -> transactionTs, res, unused -> {});
 
         // Need a writer to trigger writer commit protocol
         snapshot.put(TABLE, ImmutableMap.of(cell, PtBytes.toBytes("value")));
 
         // Lock acquisition should fail and be marked as time out
-        assertThatExceptionOfType(TransactionLockAcquisitionTimeoutException.class).isThrownBy(snapshot::commit);
+        assertThatExceptionOfType(TransactionLockAcquisitionTimeoutException.class)
+                .isThrownBy(snapshot::commit);
 
         TransactionOutcomeMetricsAssert.assertThat(transactionOutcomeMetrics)
                 .hasFailedCommits(1)
-                .hasLocksAcquisitionFailures(1);
+                .hasLockAcquisitionFailures(1);
     }
 
     @Testu}(j  (9dacd2da1052917b7b974f21f922c65a407e4f59j  satlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetricsTest.javaj
  modifiedj  Kj  Kj  Kj
  https://github.com/palantir/atlasdb/blob/d76a43981b51f7ef07a33a9170c18797ed08c3f4/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.javaj  https://github.com/palantir/atlasdb/raw/d76a43981b51f7ef07a33a9170c18797ed08c3f4/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.java?ref=d76a43981b51f7ef07a33a9170c18797ed08c3f4j  X4  @@ -85,7 +85,7 @@ public void canMarkVariousOutcomes() {
                 .hasPutUnlessExistsFailures(4)
                 .hasRollbackOther(5)
                 .hasPreCommitCheckFailures(6)
-                .hasLocksAcquisitionFailures(7);
+                .hasLockAcquisitionFailures(7);
     }
 
     @Testueu(ac510abe197b934e76d940bea69a189502954fa4}(sha(ac510abe197b934e76d940bea69a189502954fa4node_idEC_kwDOAjP5fdoAKGFjNTEwYWJlMTk3YjkzNGU3NmQ5NDBiZWE2OWExODk1MDI5NTRmYTQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-15T15:44:36Zu	committer}(j/  Jeremy Kongj1  jkong@palantir.comj3  2023-06-15T15:44:36ZumessageFinalizetree}(j'  (d9a781a88c7d4f4fffd1f5e2d6f0379439ada41curl`https://api.github.com/repos/palantir/atlasdb/git/trees/d9a781a88c7d4f4fffd1f5e2d6f0379439ada41cuj?  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ac510abe197b934e76d940bea69a189502954fa4
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSLMeQACgkQTLdFKain
zjxAYwgAzmxRnxQqsauPqtMArN+20HXfWNSOrdMbKR0NUjUegcsFxwwvM46VY2lZ
jthCDKBSMzBJGyFZ505L/2Z0BVX1n4i+W9o2FJV3LnyNHtahmctaYHh6k+LNFd8d
tPX/zTbwMG+bdIR1m8v9v7cCNnJG7HB3zboG1SWkCO+YvXp+68LPN527ANqXFJhR
FZhFhqq8QQqS00eHvEGWuJjW5c+PEQT16Ay+/6+8gW8x6eKqFxPXL65MRkmJrIKW
7ZKyIxqhhiwY29C8KqEuQcIHCuKdDhWmBhr5I+UsTz6O6inAOmz6f7b7ix3lAcUN
OebbNFyk9kFdkL/mVJvNpevMSBOjdQ==
=pKLY
-----END PGP SIGNATURE-----payloadtree d9a781a88c7d4f4fffd1f5e2d6f0379439ada41c
parent 86d91aa59465ac0960f8f329fb2087653004b555
author Jeremy Kong <jkong@palantir.com> 1686843876 +0800
committer Jeremy Kong <jkong@palantir.com> 1686843876 +0800

Finalize
uuj?  ^https://api.github.com/repos/palantir/atlasdb/commits/ac510abe197b934e76d940bea69a189502954fa4html_urlShttps://github.com/palantir/atlasdb/commit/ac510abe197b934e76d940bea69a189502954fa4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ac510abe197b934e76d940bea69a189502954fa4/commentsj-  }(login
jeremyk-91idJZ j)  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j?  'https://api.github.com/users/jeremyk-91jM  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj5  }(jR  
jeremyk-91jT  JZ j)  MDQ6VXNlcjU5NTU1MTA=jV  3https://avatars.githubusercontent.com/u/5955510?v=4jX  h5j?  'https://api.github.com/users/jeremyk-91jM  https://github.com/jeremyk-91j[  1https://api.github.com/users/jeremyk-91/followersj]  >https://api.github.com/users/jeremyk-91/following{/other_user}j_  7https://api.github.com/users/jeremyk-91/gists{/gist_id}ja  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jc  5https://api.github.com/users/jeremyk-91/subscriptionsje  ,https://api.github.com/users/jeremyk-91/orgsjg  -https://api.github.com/users/jeremyk-91/reposji  8https://api.github.com/users/jeremyk-91/events{/privacy}jk  7https://api.github.com/users/jeremyk-91/received_eventsjm  Userjo  uparents]}(j'  (86d91aa59465ac0960f8f329fb2087653004b555j?  ^https://api.github.com/repos/palantir/atlasdb/commits/86d91aa59465ac0960f8f329fb2087653004b555jM  Shttps://github.com/palantir/atlasdb/commit/86d91aa59465ac0960f8f329fb2087653004b555uastats}(totalK	additionsK	deletionsKufiles]}(j'  (187511889bf75a071e8e33b0f29a87c1f31f931dfilenameTlock-api/src/main/java/com/palantir/lock/client/LockRefreshingRemoteLockService.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ac510abe197b934e76d940bea69a189502954fa4/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FLockRefreshingRemoteLockService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ac510abe197b934e76d940bea69a189502954fa4/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FLockRefreshingRemoteLockService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FLockRefreshingRemoteLockService.java?ref=ac510abe197b934e76d940bea69a189502954fa4patchX  @@ -123,7 +123,8 @@ private void refreshLocks() {
     }
 
     @Override
-    @SuppressWarnings("checkstyle:NoFinalizer") // TODO (jkong): Can we safely remove this without breaking things?
+    @SuppressWarnings({"checkstyle:NoFinalizer", "Finalize"})
+    // TODO (jkong): Can we safely remove this without breaking things?
     protected void finalize() throws Throwable {
         super.finalize();
         if (!isClosed) {uau(9be0bcb6fc58d444e57bd4c235981735b0c0ecb0}(sha(9be0bcb6fc58d444e57bd4c235981735b0c0ecb0node_idEC_kwDOAjP5fdoAKDliZTBiY2I2ZmM1OGQ0NDRlNTdiZDRjMjM1OTgxNzM1YjBjMGVjYjAcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-04-28T02:09:36Zu	committer}(j  svc-autoreleasej  -pd-foundry-infrastructure-notify@palantir.comj  2023-04-28T02:09:36ZumessageAutorelease 0.844.0

[skip ci]tree}(j  (ac88c51366ece6e64f202dbe0ed454582557d704url`https://api.github.com/repos/palantir/atlasdb/git/trees/ac88c51366ece6e64f202dbe0ed454582557d704uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9be0bcb6fc58d444e57bd4c235981735b0c0ecb0
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRLKucACgkQhbrR8ip7mDCfCgD7BpXiEpUpqeOkdyltiJ5FeCrm
6iOpUGdOaJRcyG/aSo0BAMq9M39YFlqsB6AqoF+FSgGQg9CV9bp6dE0Cfb+BUxB9
=hQ+V
-----END PGP SIGNATURE-----
payloadX0  tree ac88c51366ece6e64f202dbe0ed454582557d704
parent b9a867ac9b4981ff75dcd5d8882089c3c7b1e0ee
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1682647776 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1682647776 +0000

Autorelease 0.844.0

[skip ci]uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/9be0bcb6fc58d444e57bd4c235981735b0c0ecb0html_urlShttps://github.com/palantir/atlasdb/commit/9be0bcb6fc58d444e57bd4c235981735b0c0ecb0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9be0bcb6fc58d444e57bd4c235981735b0c0ecb0/commentsj  }(loginsvc-autoreleaseidJ(j  MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j  ,https://api.github.com/users/svc-autoreleasejĴ  "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj  }(jɴ  svc-autoreleasej˴  J(j  MDQ6VXNlcjUxNzE4MzQ2jʹ  4https://avatars.githubusercontent.com/u/51718346?v=4jϴ  h5j  ,https://api.github.com/users/svc-autoreleasejĴ  "https://github.com/svc-autoreleasejҴ  6https://api.github.com/users/svc-autorelease/followersjԴ  Chttps://api.github.com/users/svc-autorelease/following{/other_user}jִ  <https://api.github.com/users/svc-autorelease/gists{/gist_id}jش  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jڴ  :https://api.github.com/users/svc-autorelease/subscriptionsjܴ  1https://api.github.com/users/svc-autorelease/orgsj޴  2https://api.github.com/users/svc-autorelease/reposj  =https://api.github.com/users/svc-autorelease/events{/privacy}j  <https://api.github.com/users/svc-autorelease/received_eventsj  Userj  uparents]}(j  (b9a867ac9b4981ff75dcd5d8882089c3c7b1e0eej  ^https://api.github.com/repos/palantir/atlasdb/commits/b9a867ac9b4981ff75dcd5d8882089c3c7b1e0eejĴ  Shttps://github.com/palantir/atlasdb/commit/b9a867ac9b4981ff75dcd5d8882089c3c7b1e0eeuastats}(totalK 	additionsK 	deletionsK ufiles](}(j  (7704c4f40f9407a6ec34cfd4976c31f5757d7911filename changelog/0.844.0/pr-6541.v2.ymlstatusrenamedj   K j  K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/9be0bcb6fc58d444e57bd4c235981735b0c0ecb0/changelog%2F0.844.0%2Fpr-6541.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/9be0bcb6fc58d444e57bd4c235981735b0c0ecb0/changelog%2F0.844.0%2Fpr-6541.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.844.0%2Fpr-6541.v2.yml?ref=9be0bcb6fc58d444e57bd4c235981735b0c0ecb0previous_filename$changelog/@unreleased/pr-6541.v2.ymlu}(j  (8c7080dd5d4974fb88000981969ccef6b2528af2j   changelog/0.844.0/pr-6548.v2.ymlj  renamedj   K j  K j
  K j  vhttps://github.com/palantir/atlasdb/blob/9be0bcb6fc58d444e57bd4c235981735b0c0ecb0/changelog%2F0.844.0%2Fpr-6548.v2.ymlj
  uhttps://github.com/palantir/atlasdb/raw/9be0bcb6fc58d444e57bd4c235981735b0c0ecb0/changelog%2F0.844.0%2Fpr-6548.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.844.0%2Fpr-6548.v2.yml?ref=9be0bcb6fc58d444e57bd4c235981735b0c0ecb0j  $changelog/@unreleased/pr-6548.v2.ymlueu(4f8e7d6c73c781ce6c13c81718021c347a29aa39}(sha(4f8e7d6c73c781ce6c13c81718021c347a29aa39node_idEC_kwDOAjP5fdoAKDRmOGU3ZDZjNzNjNzgxY2U2YzEzYzgxNzE4MDIxYzM0N2EyOWFhMzkcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-25T16:47:09Zu	committer}(j%  
Sam Kramerj'  skramer@palantir.comj)  2023-05-25T16:47:09Zumessagewhy is my code spaghettitree}(j  (c23d5e3dff652762e687cdc5ceb5bda3e5b79416url`https://api.github.com/repos/palantir/atlasdb/git/trees/c23d5e3dff652762e687cdc5ceb5bda3e5b79416uj5  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4f8e7d6c73c781ce6c13c81718021c347a29aa39
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRvkQ0ACgkQmPPOpKR4
XS1CdQgAp9CUzQVwmE7f2TB5VwQ2igMwfuNrXKqDzOWJQfAm2tB0JApK6l4KmIEF
n1x0Cx5eSxCbp4hq//XS5svbXrEx+n7n8GQX82YaBb6uCJUY5gfIOxR7iwLFXE10
xZr007QjwC2QuPQFPE3pAEhswybuaQAfEoytdg3Q98TU9Glw6YnPrk3C9xwHi9OY
H6eDkF9Oq1lwiJKlLbeISRI5Zpm32Ss85tePazzcxraC8I9Afr0OwJla9pJljy17
bmljwVYSPxUHWvMNHluLxuauGdUNcDPkpOUluiDF+w+AO75PFBBIwEEDuQsVn3JM
KQgXFSymLGsNfz8lOD57hEnKwIqYtw==
=1TvU
-----END PGP SIGNATURE-----payloadtree c23d5e3dff652762e687cdc5ceb5bda3e5b79416
parent cb0583cbf681014c81b0650ee845f9aa3254ac75
author Sam Kramer <skramer@palantir.com> 1685033229 +0100
committer Sam Kramer <skramer@palantir.com> 1685033229 +0100

why is my code spaghetti
uuj5  ^https://api.github.com/repos/palantir/atlasdb/commits/4f8e7d6c73c781ce6c13c81718021c347a29aa39html_urlShttps://github.com/palantir/atlasdb/commit/4f8e7d6c73c781ce6c13c81718021c347a29aa39comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4f8e7d6c73c781ce6c13c81718021c347a29aa39/commentsj#  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j5  'https://api.github.com/users/Sam-KramerjC  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj+  }(jH  
Sam-KramerjJ  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=jL  3https://avatars.githubusercontent.com/u/6238814?v=4jN  h5j5  'https://api.github.com/users/Sam-KramerjC  https://github.com/Sam-KramerjQ  1https://api.github.com/users/Sam-Kramer/followersjS  >https://api.github.com/users/Sam-Kramer/following{/other_user}jU  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jW  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jY  5https://api.github.com/users/Sam-Kramer/subscriptionsj[  ,https://api.github.com/users/Sam-Kramer/orgsj]  -https://api.github.com/users/Sam-Kramer/reposj_  8https://api.github.com/users/Sam-Kramer/events{/privacy}ja  7https://api.github.com/users/Sam-Kramer/received_eventsjc  Userje  uparents]}(j  (cb0583cbf681014c81b0650ee845f9aa3254ac75j5  ^https://api.github.com/repos/palantir/atlasdb/commits/cb0583cbf681014c81b0650ee845f9aa3254ac75jC  Shttps://github.com/palantir/atlasdb/commit/cb0583cbf681014c81b0650ee845f9aa3254ac75uastats}(totalK	additionsK	deletionsKufiles](}(j  (dbc98a10cbd6183d85dbbe780110e5940d9ab99afilenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/4f8e7d6c73c781ce6c13c81718021c347a29aa39/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4f8e7d6c73c781ce6c13c81718021c347a29aa39/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=4f8e7d6c73c781ce6c13c81718021c347a29aa39patchX  @@ -275,7 +275,7 @@ private WorkflowAndInvariants<Workflow> createBankBalanceWorkflow(
             BankBalanceWorkflowConfiguration workflowConfig,
             LifecycleEnvironment lifecycle) {
         ExecutorService executorService = lifecycle
-                .executorService(RingWorkflows.class.getSimpleName())
+                .executorService(BankBalanceWorkflows.class.getSimpleName())
                 .maxThreads(workflowConfig.maxThreadCount())
                 .build();
         InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
@@ -287,8 +287,7 @@ private WorkflowAndInvariants<Workflow> createBankBalanceWorkflow(
                 .workflow(BankBalanceWorkflows.create(
                         transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
                 .addInvariantReporters(new DurableWritesInvariantMetricReporter(
-                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
-                        DurableWritesMetrics.of(taggedMetricRegistry)))
+                        BankBalanceWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
                 .build();
     }
 u}(j  (fc68dc8666083ad7dff19f7cab2825390f18a38aj  oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowsTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/4f8e7d6c73c781ce6c13c81718021c347a29aa39/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javaj  https://github.com/palantir/atlasdb/raw/4f8e7d6c73c781ce6c13c81718021c347a29aa39/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.java?ref=4f8e7d6c73c781ce6c13c81718021c347a29aa39j  X  @@ -45,7 +45,7 @@
 import org.junit.Test;
 
 public final class BankBalanceWorkflowsTest {
-    private static final String TABLE_NAME = "ring.ring";
+    private static final String TABLE_NAME = "bank.bank";
     private static final BankBalanceWorkflowConfiguration CONFIGURATION =
             ImmutableBankBalanceWorkflowConfiguration.builder()
                     .tableConfiguration(ImmutableTableConfiguration.builder()ueu(b206658b6de1fa87ee097e4d076d7eb6697a7cb6}(sha(b206658b6de1fa87ee097e4d076d7eb6697a7cb6node_idEC_kwDOAjP5fdoAKGIyMDY2NThiNmRlMWZhODdlZTA5N2U0ZDA3NmQ3ZWI2Njk3YTdjYjYcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-14T09:53:20Zu	committer}(j  	Tom Papkej  tpapke@palantir.comj  2023-06-14T09:53:20ZumessageaMerge branch 'tpapke/p3/debug-lock-holder-thread-async-snapshotter' into tpapke/p3/log-threadinfotree}(j  (4ff4f5feb36219259c1104ba5c42af4f8eb1b81furl`https://api.github.com/repos/palantir/atlasdb/git/trees/4ff4f5feb36219259c1104ba5c42af4f8eb1b81fuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b206658b6de1fa87ee097e4d076d7eb6697a7cb6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSJjhAACgkQmF9s0kaF
Iw36TwgAhXzLLB7a/27ae60HCdjoF+UEc7uulKrhbKtkduMGjKb7gAfrtnIPGutY
ZMyxQ5dgTdvhMjF9H7CcCTPYk7TeSXC+4RUYxbn0Gn730aFkN2aymwjUvMGxF/Nn
cIC4NZuy2awGhdFlJ7YWhiOJxDmsKEJMv9p+7zyjHOHF0Syy4GJc59G7o0Qd48x9
seet1p9SPJEFo+KSSgMQCLh1AhPvPrYYJt9oYFJYBqakJsW7maqSMrgRsrAlGIeU
nO5CkF9KCHXAxskgc/pECDW+qSsKLIxsJiHBStrGv56K283yhfXbYz25D/cKoiYt
YzASdw0w3HgF8E0YRd42KBQku1YzQA==
=zfK5
-----END PGP SIGNATURE-----payloadXd  tree 4ff4f5feb36219259c1104ba5c42af4f8eb1b81f
parent 477d6e374360b5df66fc4e74628e2dc0a643f12c
parent 2dac58c17d54cc5dc3256dbccca8cff501cfda3e
author Tom Papke <tpapke@palantir.com> 1686736400 +0100
committer Tom Papke <tpapke@palantir.com> 1686736400 +0100

Merge branch 'tpapke/p3/debug-lock-holder-thread-async-snapshotter' into tpapke/p3/log-threadinfo
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/b206658b6de1fa87ee097e4d076d7eb6697a7cb6html_urlShttps://github.com/palantir/atlasdb/commit/b206658b6de1fa87ee097e4d076d7eb6697a7cb6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b206658b6de1fa87ee097e4d076d7eb6697a7cb6/commentsj  }(login	ToemmscheidJboj  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j  &https://api.github.com/users/Toemmschejµ  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj  }(jǵ  	Toemmschejɵ  Jboj  MDQ6VXNlcjQzNjc1NDkwj˵  4https://avatars.githubusercontent.com/u/43675490?v=4j͵  h5j  &https://api.github.com/users/Toemmschejµ  https://github.com/Toemmschejе  0https://api.github.com/users/Toemmsche/followersjҵ  =https://api.github.com/users/Toemmsche/following{/other_user}jԵ  6https://api.github.com/users/Toemmsche/gists{/gist_id}jֵ  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jص  4https://api.github.com/users/Toemmsche/subscriptionsjڵ  +https://api.github.com/users/Toemmsche/orgsjܵ  ,https://api.github.com/users/Toemmsche/reposj޵  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj  Userj  uparents](}(j  (477d6e374360b5df66fc4e74628e2dc0a643f12cj  ^https://api.github.com/repos/palantir/atlasdb/commits/477d6e374360b5df66fc4e74628e2dc0a643f12cjµ  Shttps://github.com/palantir/atlasdb/commit/477d6e374360b5df66fc4e74628e2dc0a643f12cu}(j  (2dac58c17d54cc5dc3256dbccca8cff501cfda3ej  ^https://api.github.com/repos/palantir/atlasdb/commits/2dac58c17d54cc5dc3256dbccca8cff501cfda3ejµ  Shttps://github.com/palantir/atlasdb/commit/2dac58c17d54cc5dc3256dbccca8cff501cfda3euestats}(totalK%	additionsK	deletionsKufiles](}(j  (ffd47f177c27dd39d87fb4cd84339ad7d1911c1cfilename$changelog/@unreleased/pr-6625.v2.ymlstatusaddedj  Kj  K changesKblob_url|https://github.com/palantir/atlasdb/blob/b206658b6de1fa87ee097e4d076d7eb6697a7cb6/changelog%2F%40unreleased%2Fpr-6625.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/b206658b6de1fa87ee097e4d076d7eb6697a7cb6/changelog%2F%40unreleased%2Fpr-6625.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6625.v2.yml?ref=b206658b6de1fa87ee097e4d076d7eb6697a7cb6patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LockV1] Add async thread info snapshotting (disabled by default)'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6625u}(j  (11798108f5011933229198de0ecd0a9b6b828e68j  lock-impl/build.gradlej
  modifiedj  K j  Kj  Kj
  jhttps://github.com/palantir/atlasdb/blob/b206658b6de1fa87ee097e4d076d7eb6697a7cb6/lock-impl%2Fbuild.gradlej  ihttps://github.com/palantir/atlasdb/raw/b206658b6de1fa87ee097e4d076d7eb6697a7cb6/lock-impl%2Fbuild.gradlej  |https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fbuild.gradle?ref=b206658b6de1fa87ee097e4d076d7eb6697a7cb6j  X  @@ -13,7 +13,6 @@ dependencies {
   implementation 'com.palantir.safe-logging:preconditions'
   implementation 'com.palantir.safe-logging:safe-logging'
   implementation 'joda-time:joda-time'
-  implementation 'one.util:streamex'
   implementation 'org.eclipse.collections:eclipse-collections'
   implementation 'org.eclipse.collections:eclipse-collections-api'
   implementation 'org.slf4j:slf4j-api'u}(j  (9176594d62afe9bd2569059f7f344140cd16fbcfj  Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj
  modifiedj  Kj  Kj  Kj
  https://github.com/palantir/atlasdb/blob/b206658b6de1fa87ee097e4d076d7eb6697a7cb6/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj  https://github.com/palantir/atlasdb/raw/b206658b6de1fa87ee097e4d076d7eb6697a7cb6/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=b206658b6de1fa87ee097e4d076d7eb6697a7cb6j  X(  @@ -1235,7 +1235,7 @@ public long currentTimeMillis() {
     }
 
     public LockThreadInfoSnapshotManager getSnapshotManager() {
-        return this.threadInfoSnapshotManager;
+        return threadInfoSnapshotManager;
     }
 
     private static String updateThreadName(LockRequest request) {u}(j  (7892ed77147d2612995ad3caafd70bf40c41aa39j  Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javaj
  modifiedj  Kj  Kj  Kj
  https://github.com/palantir/atlasdb/blob/b206658b6de1fa87ee097e4d076d7eb6697a7cb6/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj  https://github.com/palantir/atlasdb/raw/b206658b6de1fa87ee097e4d076d7eb6697a7cb6/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=b206658b6de1fa87ee097e4d076d7eb6697a7cb6j  X.  @@ -74,7 +74,7 @@ private void scheduleRun() {
 
     @VisibleForTesting
     Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot() {
-        return this.lastKnownThreadInfoSnapshot;
+        return lastKnownThreadInfoSnapshot;
     }
 
     /**
@@ -97,7 +97,7 @@ public UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> getRestrict
 
     @VisibleForTesting
     void takeSnapshot() {
-        this.lastKnownThreadInfoSnapshot = tokenMapSupplier.get().keySet().stream()
+        lastKnownThreadInfoSnapshot = tokenMapSupplier.get().keySet().stream()
                 .flatMap(token -> {
                     LockClientAndThread clientThread = LockClientAndThread.of(
                             Objects.requireNonNullElse(token.getClient(), LockClientAndThread.UNKNOWN.client()),u}(j  (bb40ec0ce734aeef758d1e8bd2b8a0433d7bd1dfj  Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javaj
  modifiedj  Kj  K
j  Kj
  https://github.com/palantir/atlasdb/blob/b206658b6de1fa87ee097e4d076d7eb6697a7cb6/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj  https://github.com/palantir/atlasdb/raw/b206658b6de1fa87ee097e4d076d7eb6697a7cb6/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=b206658b6de1fa87ee097e4d076d7eb6697a7cb6j  X  @@ -20,6 +20,7 @@
 
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
 import com.palantir.lock.LockClient;
 import com.palantir.lock.LockClientAndThread;
@@ -41,8 +42,6 @@
 import java.util.concurrent.TimeUnit;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
-import one.util.streamex.IntStreamEx;
-import one.util.streamex.StreamEx;
 import org.awaitility.Awaitility;
 import org.junit.Test;
 
@@ -112,11 +111,11 @@ public void recordsThreadInfoForMultipleLocks() throws InterruptedException {
         List<String> threadNames =
                 IntStream.range(0, numThreads).mapToObj(i -> "test-thread-" + i).collect(Collectors.toList());
 
-        Map<String, Set<LockDescriptor>> locksPerThread = StreamEx.of(threadNames)
-                .mapToEntry(threadName -> IntStreamEx.range(0, numLocksPerThread)
+        Map<String, Set<LockDescriptor>> locksPerThread = KeyedStream.of(threadNames)
+                .map(threadName -> IntStream.range(0, numLocksPerThread)
                         .mapToObj(i -> StringLockDescriptor.of("test-lock-" + i + "-from-thread-" + threadName))
-                        .toSet())
-                .toMap();
+                        .collect(Collectors.toSet()))
+                .collectToMap();
 
         for (Map.Entry<String, Set<LockDescriptor>> entry : locksPerThread.entrySet()) {
             LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.copyOf(
@@ -287,15 +286,15 @@ public void backgroundSnapshotRunnerWorks() throws InterruptedException {
         LockResponse response = lockServiceWithBackgroundRunner.lockWithFullLockResponse(
                 LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
 
-        Awaitility.waitAtMost(200, TimeUnit.MILLISECONDS)
-                .untilAsserted(() -> assertThat(backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
-                        .containsExactly(Map.entry(TEST_LOCK_1, ANONYMOUS_TEST_THREAD_1)));
+        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
+                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
+                .containsExactly(Map.entry(TEST_LOCK_1, ANONYMOUS_TEST_THREAD_1)));
 
         lockServiceWithBackgroundRunner.unlock(response.getToken());
 
-        Awaitility.waitAtMost(200, TimeUnit.MILLISECONDS)
-                .untilAsserted(() -> assertThat(backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
-                        .doesNotContainKey(TEST_LOCK_1));
+        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
+                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
+                .doesNotContainKey(TEST_LOCK_1));
     }
 
     @Test
@@ -335,7 +334,7 @@ public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() t
     }
 
     private void forceSnapshot() {
-        this.lockService.getSnapshotManager().takeSnapshot();
+        lockService.getSnapshotManager().takeSnapshot();
     }
 
     private Optional<LockClientAndThread> getLatestThreadInfoForLock(LockDescriptor lock) {ueu(fad83e3c7f146b309cd3f471e65060cdedcf7aaa}(sha(fad83e3c7f146b309cd3f471e65060cdedcf7aaanode_idEC_kwDOAjP5fdoAKGZhZDgzZTNjN2YxNDZiMzA5Y2QzZjQ3MWU2NTA2MGNkZWRjZjdhYWEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-03T15:54:16Zu	committer}(j?  Jeremy KongjA  jkong@palantir.comjC  2023-07-03T15:54:16ZumessageSpotlesstree}(j7  (79c36dc79396b57758ef0e66afd69a86ff0857b0url`https://api.github.com/repos/palantir/atlasdb/git/trees/79c36dc79396b57758ef0e66afd69a86ff0857b0ujO  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fad83e3c7f146b309cd3f471e65060cdedcf7aaa
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSi7ygACgkQTLdFKain
zjwGZggA4M/MtCb3vsAiT5HH82A1+8GP9dLhAtcxAF3yH2s2Ol/GBQth+otYK94N
RyC4ptnXuYtUTmPJZvvu7Hr8i0rD9w0Zy51b3uVC8eAc3cdG4lnFYFfQ8lBBeH9z
6dQDFfP5qOew8ISE2J+BBnanv9L2IiKrRocZMVkvssqz7iWVVLyffEBxeDODFrMm
RMlz2VmHnViqhKwywpbd9vkrELfMy6hHtd7iWzGusoRfkTBPWWPUGAoM8g52oHt2
wnGGRXt2WeuPJ2GNkt3rC1ImCy9emQ+irtWpIyQAEfMgPYRZB3eOU4LbhK/bdYE/
m4zpJNXd0FxdMzLmxbYfjKLMotz7gA==
=xkiv
-----END PGP SIGNATURE-----payloadtree 79c36dc79396b57758ef0e66afd69a86ff0857b0
parent 0caf0fea1362941ffb01c4fc852d45f02c6cc81e
author Jeremy Kong <jkong@palantir.com> 1688399656 +0100
committer Jeremy Kong <jkong@palantir.com> 1688399656 +0100

Spotless
uujO  ^https://api.github.com/repos/palantir/atlasdb/commits/fad83e3c7f146b309cd3f471e65060cdedcf7aaahtml_urlShttps://github.com/palantir/atlasdb/commit/fad83e3c7f146b309cd3f471e65060cdedcf7aaacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fad83e3c7f146b309cd3f471e65060cdedcf7aaa/commentsj=  }(login
jeremyk-91idJZ j9  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jO  'https://api.github.com/users/jeremyk-91j]  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujE  }(jb  
jeremyk-91jd  JZ j9  MDQ6VXNlcjU5NTU1MTA=jf  3https://avatars.githubusercontent.com/u/5955510?v=4jh  h5jO  'https://api.github.com/users/jeremyk-91j]  https://github.com/jeremyk-91jk  1https://api.github.com/users/jeremyk-91/followersjm  >https://api.github.com/users/jeremyk-91/following{/other_user}jo  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jq  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}js  5https://api.github.com/users/jeremyk-91/subscriptionsju  ,https://api.github.com/users/jeremyk-91/orgsjw  -https://api.github.com/users/jeremyk-91/reposjy  8https://api.github.com/users/jeremyk-91/events{/privacy}j{  7https://api.github.com/users/jeremyk-91/received_eventsj}  Userj  uparents]}(j7  (0caf0fea1362941ffb01c4fc852d45f02c6cc81ejO  ^https://api.github.com/repos/palantir/atlasdb/commits/0caf0fea1362941ffb01c4fc852d45f02c6cc81ej]  Shttps://github.com/palantir/atlasdb/commit/0caf0fea1362941ffb01c4fc852d45f02c6cc81euastats}(totalK	additionsKI	deletionsKLufiles](}(j7  (b2c905aecbadb5eff96bc5dbc26f890c72dbd00cfilenameatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/fad83e3c7f146b309cd3f471e65060cdedcf7aaa/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/fad83e3c7f146b309cd3f471e65060cdedcf7aaa/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javacontents_urlX  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=fad83e3c7f146b309cd3f471e65060cdedcf7aaapatchXW	  @@ -33,14 +33,14 @@ public class WitnessedRowColumnRangeReadTransactionActionTest {
     @Test
     public void canCreateWitness() {
         assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
-                .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                        .table("foo")
-                        .row(1)
-                        .columnRangeSelection(
-                                ColumnRangeSelection.builder().build())
+                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
                         .build())
-                .build())
                 .doesNotThrowAnyException();
     }
 
@@ -54,14 +54,14 @@ public void cannotCreateWitnessWithDuplicateColumns() {
                 ColumnValue.of(9, 99));
 
         assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                .addAllColumnsAndValues(columnsAndValues)
-                .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                        .table("foo")
-                        .row(1)
-                        .columnRangeSelection(
-                                ColumnRangeSelection.builder().build())
+                        .addAllColumnsAndValues(columnsAndValues)
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
                         .build())
-                .build())
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Duplicate columns in columnsAndValues")
                 .hasExactlyArgs(u}(j7  (bad62fdfc0f4e5f5e54e27631b446f28ca159cc1j  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj  modifiedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/fad83e3c7f146b309cd3f471e65060cdedcf7aaa/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj  https://github.com/palantir/atlasdb/raw/fad83e3c7f146b309cd3f471e65060cdedcf7aaa/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=fad83e3c7f146b309cd3f471e65060cdedcf7aaaj  Xz  @@ -26,7 +26,6 @@
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;u}(j7  (599f2bf4f9d6f0c2f5ccb34ad02843ac95a3c7edj  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReader.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/fad83e3c7f146b309cd3f471e65060cdedcf7aaa/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj  https://github.com/palantir/atlasdb/raw/fad83e3c7f146b309cd3f471e65060cdedcf7aaa/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.java?ref=fad83e3c7f146b309cd3f471e65060cdedcf7aaaj  X  @@ -20,7 +20,6 @@
 import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import io.vavr.collection.Map;
@@ -50,8 +49,8 @@ public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTrans
         if (allValues.size() > LARGE_HISTORY_LIMIT) {
             log.error(
                     "Attempted to do range queries in a simple way, even though the history is large ({} entries)! If"
-                            + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
-                            + " efficient range query implementation.",
+                        + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
+                        + " efficient range query implementation.",
                     SafeArg.of("size", allValues.size()));
         }
         return allValuesu}(j7  (461cdd058f7b1d94f60003aa74ed1f6caed5e9b0j  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj  modifiedj  K&j  K&j  KLj  https://github.com/palantir/atlasdb/blob/fad83e3c7f146b309cd3f471e65060cdedcf7aaa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj  https://github.com/palantir/atlasdb/raw/fad83e3c7f146b309cd3f471e65060cdedcf7aaa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=fad83e3c7f146b309cd3f471e65060cdedcf7aaaj  X+  @@ -59,10 +59,10 @@ public void before() {
     @Test
     public void witnessRecordsAllSingleCellActions() {
         assertThat(readWrite(transaction -> {
-            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-            transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
-        }))
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
@@ -72,10 +72,10 @@ public void witnessRecordsAllSingleCellActions() {
     @Test
     public void readHandlesEmptyAndPresentValue() {
         assertThat(readWrite(transaction -> {
-            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-            transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
-            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-        }))
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
                 .containsExactly(
                         WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
@@ -85,9 +85,9 @@ public void readHandlesEmptyAndPresentValue() {
     @Test
     public void witnessRecordsColumnRangeActions() {
         assertThat(readWrite(transaction -> {
-            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-            transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
-        }))
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+                }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedRowColumnRangeReadTransactionAction.builder()
@@ -103,8 +103,8 @@ public void witnessRecordsColumnRangeActions() {
     @Test
     public void emptyColumnRangeReadsAreRecorded() {
         assertThat(readWrite(transaction -> {
-            transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
-        }))
+                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+                }))
                 .containsExactly(WitnessedRowColumnRangeReadTransactionAction.builder()
                         .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                 .table(TABLE_1)
@@ -118,11 +118,11 @@ public void emptyColumnRangeReadsAreRecorded() {
     public void allRelevantCellsAreRecordedForFullColumnScan() {
         int iterationCount = 1000;
         assertThat(readWrite(transaction -> {
-            IntStream.range(0, iterationCount)
-                    .forEach(column ->
-                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-            transaction.getRowColumnRange(TABLE_1, 1, ColumnRangeSelection.all());
-        }))
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(TABLE_1, 1, ColumnRangeSelection.all());
+                }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
@@ -140,17 +140,17 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
         int startInclusive = 313;
         int endExclusive = 855;
         assertThat(readWrite(transaction -> {
-            IntStream.range(0, iterationCount)
-                    .forEach(column ->
-                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-            transaction.getRowColumnRange(
-                    TABLE_1,
-                    1,
-                    ColumnRangeSelection.builder()
-                            .startColumnInclusive(startInclusive)
-                            .endColumnExclusive(endExclusive)
-                            .build());
-        }))
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(
+                            TABLE_1,
+                            1,
+                            ColumnRangeSelection.builder()
+                                    .startColumnInclusive(startInclusive)
+                                    .endColumnExclusive(endExclusive)
+                                    .build());
+                }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
@@ -220,22 +220,22 @@ private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTr
     private void assertThatThrownWhenUnknownTableReferenced(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-            transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
-            return null;
-        }))
+                    transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
+                    return null;
+                }))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Transaction action has unknown table.");
     }
 
     private void assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-            AtlasDbInteractiveTransaction transaction =
-                    new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
-            transaction.witness();
-            transactionConsumer.accept(transaction);
-            return null;
-        }))
+                    AtlasDbInteractiveTransaction transaction =
+                            new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
+                    transaction.witness();
+                    transactionConsumer.accept(transaction);
+                    return null;
+                }))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Transaction has already been witnessed and can no longer perform any actions.");
     }u}(j7  (3a7aebde56bb23390c1e2c8534beaae39c6e3ab4j  oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReaderTest.javaj  modifiedj  Kj  Kj  K&j  https://github.com/palantir/atlasdb/blob/fad83e3c7f146b309cd3f471e65060cdedcf7aaa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj  https://github.com/palantir/atlasdb/raw/fad83e3c7f146b309cd3f471e65060cdedcf7aaa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.java?ref=fad83e3c7f146b309cd3f471e65060cdedcf7aaaj  X
  @@ -38,10 +38,10 @@ public void doesNotReadCellsFromDifferentTable() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                .table(WorkloadTestHelpers.TABLE_2)
-                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
-                .columnRangeSelection(ColumnRangeSelection.all())
-                .build()))
+                        .table(WorkloadTestHelpers.TABLE_2)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                        .columnRangeSelection(ColumnRangeSelection.all())
+                        .build()))
                 .isEmpty();
     }
 
@@ -51,10 +51,10 @@ public void doesNotReadCellsFromDifferentRow() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                .table(WorkloadTestHelpers.TABLE_1)
-                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
-                .columnRangeSelection(ColumnRangeSelection.builder().build())
-                .build()))
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
+                        .columnRangeSelection(ColumnRangeSelection.builder().build())
+                        .build()))
                 .isEmpty();
     }
 
@@ -67,13 +67,13 @@ public void readsCellsFromRangeInOrder() {
                     Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         }
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                .table(WorkloadTestHelpers.TABLE_1)
-                .row(1)
-                .columnRangeSelection(ColumnRangeSelection.builder()
-                        .startColumnInclusive(2)
-                        .endColumnExclusive(4)
-                        .build())
-                .build()))
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(1)
+                        .columnRangeSelection(ColumnRangeSelection.builder()
+                                .startColumnInclusive(2)
+                                .endColumnExclusive(4)
+                                .build())
+                        .build()))
                 .containsExactly(
                         ColumnValue.of(2, WorkloadTestHelpers.VALUE_ONE),
                         ColumnValue.of(3, WorkloadTestHelpers.VALUE_ONE));
@@ -85,10 +85,10 @@ public void doesNotReturnExplicitlyEmptyValues() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.empty()));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                .table(WorkloadTestHelpers.TABLE_1)
-                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
-                .columnRangeSelection(ColumnRangeSelection.all())
-                .build()))
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                        .columnRangeSelection(ColumnRangeSelection.all())
+                        .build()))
                 .isEmpty();
     }
 }u}(j7  (9a0127534a3d94444fd74526c1be680a9eff55a3j  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj  modifiedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/fad83e3c7f146b309cd3f471e65060cdedcf7aaa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj  https://github.com/palantir/atlasdb/raw/fad83e3c7f146b309cd3f471e65060cdedcf7aaa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=fad83e3c7f146b309cd3f471e65060cdedcf7aaaj  X  @@ -21,7 +21,6 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;ueu(eea4e514753f467c7c48f49a93c390433658c5b9}(sha(eea4e514753f467c7c48f49a93c390433658c5b9node_idEC_kwDOAjP5fdoAKGVlYTRlNTE0NzUzZjQ2N2M3YzQ4ZjQ5YTkzYzM5MDQzMzY1OGM1Yjkcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-07-14T14:19:48Zu	committer}(j޶  
Sam Kramerj  skramer@palantir.comj  2023-07-14T14:24:14Zumessageclean up docs slightlytree}(jֶ  (bb7853730d69759afefd92c91fa5324e9c16ef7aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/bb7853730d69759afefd92c91fa5324e9c16ef7auj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/eea4e514753f467c7c48f49a93c390433658c5b9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSxWo4ACgkQmPPOpKR4
XS2MUQf9G95eIhp7qw6LwEpMviuDqJuxGp+FiTku2jq7vOPqHTvZOfMG+hRWR9/9
MFX1Oxp4f3QEcQ+r/OZri8ukjeVW0OAHEqd8qPiamjUICZ0ts1oYF8fVFIwl26ql
9+Q3rDUHGK0etYJ2NLdpPHtfxl5Uchieo+mzn7Gu4Ykkv5Lrt4pYRAwIFQZhOhfG
fE8KnxdBaObIwH+4RQFWjBAHshrPKM6hfRMOns5UHQAyef1FOTrvzx1U7/ijsdwA
QxoblOmZCtzM1kEuxFbzUnag6y2kgZYDu3TFMt/u5lvtyZjq6ezaLQ5rgVt5Z6yQ
ryErT0ns+47KxtvAXSsTTSCpl4H29A==
=turv
-----END PGP SIGNATURE-----payloadtree bb7853730d69759afefd92c91fa5324e9c16ef7a
parent a62a1aeb42c44c14fec778657fa83248661a73bb
author Sam Kramer <skramer@palantir.com> 1689344388 +0100
committer Sam Kramer <skramer@palantir.com> 1689344654 +0100

clean up docs slightly
uuo     j  ^https://api.github.com/repos/palantir/atlasdb/commits/eea4e514753f467c7c48f49a93c390433658c5b9html_urlShttps://github.com/palantir/atlasdb/commit/eea4e514753f467c7c48f49a93c390433658c5b9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/eea4e514753f467c7c48f49a93c390433658c5b9/commentsjܶ  }(login
Sam-KrameridJ^2_ jض  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j  
Sam-Kramerj  J^2_ jض  MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j  h5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj
  1https://api.github.com/users/Sam-Kramer/followersj  >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j  5https://api.github.com/users/Sam-Kramer/subscriptionsj  ,https://api.github.com/users/Sam-Kramer/orgsj  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj  uparents]}(jֶ  (a62a1aeb42c44c14fec778657fa83248661a73bbj  ^https://api.github.com/repos/palantir/atlasdb/commits/a62a1aeb42c44c14fec778657fa83248661a73bbj  Shttps://github.com/palantir/atlasdb/commit/a62a1aeb42c44c14fec778657fa83248661a73bbuastats}(totalK	additionsK	deletionsKufiles]}(jֶ  (c102d9fcd6f1df1fd41deb05f3f783e36f73b0b4filenameWdocs/source/configuration/key_value_service_configs/oracle_key_value_service_config.rststatusmodifiedj8  Kj9  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/eea4e514753f467c7c48f49a93c390433658c5b9/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rstraw_urlhttps://github.com/palantir/atlasdb/raw/eea4e514753f467c7c48f49a93c390433658c5b9/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rstcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rst?ref=eea4e514753f467c7c48f49a93c390433658c5b9patchXR  @@ -215,7 +215,9 @@ To resolve, simply add the following configuration to your Oracle ddl configurat
         ddl:
           type: oracle
           alterTablesOrMetadataToMatchAndIKnowWhatIAmDoing:
-            - <table name>
+              - namespace:
+                  name: <namespace>
+                tablename: <table-name>
 
 Note: Table names are case sensitive
 
@@ -224,7 +226,7 @@ effects are. For example, if the issue arose as two services are configured to u
 performing table mapping, then it is expected that this could break one of the services. However, that condition
 still satisfies the status quo, thus it's on the configurator to determine if this change is safe to make.
 
-The action that is ran is idempotent
+Although the alter action is idempotent, it is recommended to remove the configuration after it has ran.
 
 
 uau(e862db9d49d773cf500c634774dc80f980f571a0}(sha(e862db9d49d773cf500c634774dc80f980f571a0node_idEC_kwDOAjP5fdoAKGU4NjJkYjlkNDlkNzczY2Y1MDBjNjM0Nzc0ZGM4MGY5ODBmNTcxYTAcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-07-21T04:04:11Zu	committer}(jU  David SchlosnaglejW  davids@palantir.comjY  2023-07-21T04:04:11ZumessageMResilientCommitTimestampAtomicTable updateMultiple uses primitive collectionstree}(jM  (630166dbfbc3fbb2c0e9fd41eb049f096b233fc7url`https://api.github.com/repos/palantir/atlasdb/git/trees/630166dbfbc3fbb2c0e9fd41eb049f096b233fc7uje  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e862db9d49d773cf500c634774dc80f980f571a0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmS6A7sACgkQR9hsJ74Q
0l+fUwf/Q9kQ2DH+PQGU+xgSJRHNnkHCnolUyp2wQrt/ljUepSIKXDuOhFqSDsfc
qhRrcUuP1W6+vJSzbQCD/3avpWc7yAt4x3vtn4DVrzgLiy9cNrGGwkg+c1pdsY9g
SdGDbsFNtGdgYVd/gg6swTNtdwuedVbAi0DwrRKFktX/s2BoIXU88ymIZ7tuOQCa
aDx4/yxt3YFdT0O6v8yRqrm1kQ6pMYSkqiNOMz6dIJl0pmyhweZVXuhTSxBAUjsc
2FaNwhqzpuw3tKOwtd4+94E6UY3lxZ/E9lyf7sOM+Xt+bQQQZxxtl4/GjN50Pssd
TFYiQR35a8NLV91A3ZEZq+AxNVk8Jw==
=SA7o
-----END PGP SIGNATURE-----payloadX0  tree 630166dbfbc3fbb2c0e9fd41eb049f096b233fc7
parent 8c834eaf6846ba849e1c3e93ba28648b5a72271b
author David Schlosnagle <davids@palantir.com> 1689912251 -0400
committer David Schlosnagle <davids@palantir.com> 1689912251 -0400

ResilientCommitTimestampAtomicTable updateMultiple uses primitive collections
uuje  ^https://api.github.com/repos/palantir/atlasdb/commits/e862db9d49d773cf500c634774dc80f980f571a0html_urlShttps://github.com/palantir/atlasdb/commit/e862db9d49d773cf500c634774dc80f980f571a0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e862db9d49d773cf500c634774dc80f980f571a0/commentsjS  }(loginschlosnaidMBjO  MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5je  %https://api.github.com/users/schlosnajs  https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj[  }(jx  schlosnajz  MBjO  MDQ6VXNlcjU0NTk0j|  1https://avatars.githubusercontent.com/u/54594?v=4j~  h5je  %https://api.github.com/users/schlosnajs  https://github.com/schlosnaj  /https://api.github.com/users/schlosna/followersj  <https://api.github.com/users/schlosna/following{/other_user}j  5https://api.github.com/users/schlosna/gists{/gist_id}j  <https://api.github.com/users/schlosna/starred{/owner}{/repo}j  3https://api.github.com/users/schlosna/subscriptionsj  *https://api.github.com/users/schlosna/orgsj  +https://api.github.com/users/schlosna/reposj  6https://api.github.com/users/schlosna/events{/privacy}j  5https://api.github.com/users/schlosna/received_eventsj  Userj  uparents]}(jM  (8c834eaf6846ba849e1c3e93ba28648b5a72271bje  ^https://api.github.com/repos/palantir/atlasdb/commits/8c834eaf6846ba849e1c3e93ba28648b5a72271bjs  Shttps://github.com/palantir/atlasdb/commit/8c834eaf6846ba849e1c3e93ba28648b5a72271buastats}(totalK	additionsK	deletionsK
ufiles]}(jM  (0d8de51ab4362cdda2463fb83c926e38cf12c269filenamefatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTable.javastatusmodifiedj  Kj  K
changesKblob_urlhttps://github.com/palantir/atlasdb/blob/e862db9d49d773cf500c634774dc80f980f571a0/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e862db9d49d773cf500c634774dc80f980f571a0/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.java?ref=e862db9d49d773cf500c634774dc80f980f571a0patchX
  @@ -22,6 +22,7 @@
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.Iterables;
+import com.google.common.collect.Maps;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.MoreExecutors;
@@ -33,7 +34,6 @@
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.common.exception.AtlasDbDependencyException;
-import com.palantir.common.streams.KeyedStream;
 import com.palantir.common.time.Clock;
 import com.palantir.common.time.SystemClock;
 import com.palantir.logsafe.Preconditions;
@@ -52,6 +52,8 @@
 import java.util.stream.Collectors;
 import java.util.stream.StreamSupport;
 import javax.annotation.Nonnull;
+import org.eclipse.collections.api.factory.primitive.ObjectLongMaps;
+import org.eclipse.collections.api.map.primitive.MutableObjectLongMap;
 import org.immutables.value.Value;
 
 public class ResilientCommitTimestampAtomicTable implements AtomicTable<Long, TransactionStatus> {
@@ -141,16 +143,16 @@ public void update(Long key, TransactionStatus value) throws KeyAlreadyExistsExc
 
     @Override
     public void updateMultiple(Map<Long, TransactionStatus> keyValues) throws KeyAlreadyExistsException {
-        Map<Cell, Long> cellToStartTs = keyValues.keySet().stream()
-                .collect(Collectors.toMap(encodingStrategy::encodeStartTimestampAsCell, x -> x));
-        Map<Cell, byte[]> stagingValues = KeyedStream.stream(cellToStartTs)
-                .map(startTs -> encodingStrategy.encodeCommitStatusAsValue(
-                        startTs, AtomicValue.staging(keyValues.get(startTs))))
-                .collectToMap();
+        MutableObjectLongMap<Cell> cellToStartTs = ObjectLongMaps.mutable.withInitialCapacity(keyValues.size());
+        keyValues.keySet().forEach(ts -> cellToStartTs.put(encodingStrategy.encodeStartTimestampAsCell(ts), ts));
+
+        Map<Cell, byte[]> stagingValues = Maps.newHashMapWithExpectedSize(cellToStartTs.size());
+        cellToStartTs.forEachKeyValue((cell, startTs) -> stagingValues.put(
+                cell,
+                encodingStrategy.encodeCommitStatusAsValue(startTs, AtomicValue.staging(keyValues.get(startTs)))));
+
         store.batchAtomicUpdate(stagingValues);
-        store.put(KeyedStream.stream(stagingValues)
-                .map(encodingStrategy::transformStagingToCommitted)
-                .collectToMap());
+        store.put(Maps.transformValues(stagingValues, encodingStrategy::transformStagingToCommitted));
     }
 
     @Overrideuau(b072666aa44be73d77f8ae9498d9372c6d6ef4c8}(sha(b072666aa44be73d77f8ae9498d9372c6d6ef4c8node_idEC_kwDOAjP5fdoAKGIwNzI2NjZhYTQ0YmU3M2Q3N2Y4YWU5NDk4ZDkzNzJjNmQ2ZWY0Yzgcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-08-08T13:53:21Zu	committer}(j̷  	Tom Papkejη  tpapke@palantir.comjз  2023-08-08T13:53:21ZumessageExtract common method for teststree}(jķ  (5c1645ef5891e654a12e490e4a466cc0d78d5deeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/5c1645ef5891e654a12e490e4a466cc0d78d5deeujܷ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b072666aa44be73d77f8ae9498d9372c6d6ef4c8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTSSNEACgkQmF9s0kaF
Iw0IQgf/R80tNJLWgEUTEjwDeRa7+DJ6Nce1/lGvOO2+ht/33/1cI13I0ftednoT
Jl5ab6s3eJVJxwwLeBeXsjQ/L9VcGeZRJ8y92ILID62ZWkrM5XMpnohZbbamRb8a
IKz+8ZyJjp18XMmUldYH3+MDTplPfyAY3x4uGyPZncM6d3lku+0WxId87yQiTFq1
X6fwQNTNC1NWItgiNDYUriIoI/17hXqO38wmZ6urSlzQFD8QGIi0VGhqzMCPpUKt
RCgb5xaISQ3gpwKo2CfBLXCEhVipmIMyUqZ6QblHFzPi+bLpNRtsNHVNVCrOPWj5
GXfDzcniGFscy8JMZCHlq3+g/9xNLg==
=uN2Z
-----END PGP SIGNATURE-----payloadtree 5c1645ef5891e654a12e490e4a466cc0d78d5dee
parent 9534db5ab161bf5f4aedd1c8a809b29f0350390f
author Tom Papke <tpapke@palantir.com> 1691502801 +0100
committer Tom Papke <tpapke@palantir.com> 1691502801 +0100

Extract common method for tests
uujܷ  ^https://api.github.com/repos/palantir/atlasdb/commits/b072666aa44be73d77f8ae9498d9372c6d6ef4c8html_urlShttps://github.com/palantir/atlasdb/commit/b072666aa44be73d77f8ae9498d9372c6d6ef4c8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b072666aa44be73d77f8ae9498d9372c6d6ef4c8/commentsjʷ  }(login	ToemmscheidJbojƷ  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jܷ  &https://api.github.com/users/Toemmschej  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujҷ  }(j  	Toemmschej  JbojƷ  MDQ6VXNlcjQzNjc1NDkwj  4https://avatars.githubusercontent.com/u/43675490?v=4j  h5jܷ  &https://api.github.com/users/Toemmschej  https://github.com/Toemmschej  0https://api.github.com/users/Toemmsche/followersj  =https://api.github.com/users/Toemmsche/following{/other_user}j  6https://api.github.com/users/Toemmsche/gists{/gist_id}j  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j   4https://api.github.com/users/Toemmsche/subscriptionsj  +https://api.github.com/users/Toemmsche/orgsj  ,https://api.github.com/users/Toemmsche/reposj  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj
  Userj  uparents]}(jķ  (9534db5ab161bf5f4aedd1c8a809b29f0350390fjܷ  ^https://api.github.com/repos/palantir/atlasdb/commits/9534db5ab161bf5f4aedd1c8a809b29f0350390fj  Shttps://github.com/palantir/atlasdb/commit/9534db5ab161bf5f4aedd1c8a809b29f0350390fuastats}(totalKQ	additionsK(	deletionsK)ufiles](}(jķ  (b10cc306384a1d732e791f01c66202e4c7c35a84filenameaatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/LocalWriteBufferTest.javastatusmodifiedj&  Kj'  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b072666aa44be73d77f8ae9498d9372c6d6ef4c8/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b072666aa44be73d77f8ae9498d9372c6d6ef4c8/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.java?ref=b072666aa44be73d77f8ae9498d9372c6d6ef4c8patchX  @@ -21,7 +21,6 @@
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableSet;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.ListeningExecutorService;
@@ -38,6 +37,7 @@
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.Arrays;
 import java.util.List;
+import java.util.Map;
 import java.util.Random;
 import java.util.concurrent.Callable;
 import java.util.concurrent.ConcurrentSkipListMap;
@@ -136,22 +136,13 @@ public void canStoreValuesAndMetadataForMultipleCellsAndTables() {
 
     @Test
     public void cannotPutMetadataWithoutAnyWrite() {
-        assertThatLoggableExceptionThrownBy(() ->
-                        buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(), ImmutableMap.of(CELL_1, METADATA_1)))
-                .isInstanceOf(SafeIllegalStateException.class)
-                .hasLogMessage("Every metadata we put must be associated with a write")
-                .hasExactlyArgs(
-                        LoggingArgs.tableRef(TABLE), UnsafeArg.of("cellsWithOnlyMetadata", ImmutableSet.of(CELL_1)));
+        assertThatPutThrowsForAllMetadataDueToMissingWrite(ImmutableMap.of(), ImmutableMap.of(CELL_1, METADATA_1));
     }
 
     @Test
     public void cannotPutMetadataWithoutAssociatedWrite() {
-        assertThatLoggableExceptionThrownBy(() -> buffer.putLocalWritesAndMetadata(
-                        TABLE, ImmutableMap.of(CELL_2, VALUE_1), ImmutableMap.of(CELL_1, METADATA_1)))
-                .isInstanceOf(SafeIllegalStateException.class)
-                .hasLogMessage("Every metadata we put must be associated with a write")
-                .hasExactlyArgs(
-                        LoggingArgs.tableRef(TABLE), UnsafeArg.of("cellsWithOnlyMetadata", ImmutableSet.of(CELL_1)));
+        assertThatPutThrowsForAllMetadataDueToMissingWrite(
+                ImmutableMap.of(CELL_2, VALUE_2), ImmutableMap.of(CELL_1, METADATA_1));
     }
 
     /**
@@ -243,20 +234,28 @@ public void valueByteCountIsUpdatedCorrectlyWhenOverWritingValue() {
     @Test
     public void valueByteCountIsUpdatedCorrectlyWhenDeletingValue() {
         buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of());
-        assertThat(buffer.getByteCount()).isEqualTo(Cells.getApproxSizeOfCell(CELL_1) + VALUE_1.length);
-
         buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, new byte[0]), ImmutableMap.of());
+
         assertThat(buffer.getByteCount()).isEqualTo(Cells.getApproxSizeOfCell(CELL_1));
     }
 
     @Test
     public void valueByteCountIsMaintainedAcrossMultipleTables() {
         buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of());
         buffer.putLocalWritesAndMetadata(TABLE_2, ImmutableMap.of(CELL_2, VALUE_2), ImmutableMap.of());
+
         assertThat(buffer.getByteCount())
                 .isEqualTo(Cells.getApproxSizeOfCell(CELL_1)
                         + VALUE_1.length
                         + Cells.getApproxSizeOfCell(CELL_2)
                         + VALUE_2.length);
     }
+
+    private void assertThatPutThrowsForAllMetadataDueToMissingWrite(
+            Map<Cell, byte[]> values, Map<Cell, ChangeMetadata> metadata) {
+        assertThatLoggableExceptionThrownBy(() -> buffer.putLocalWritesAndMetadata(TABLE, values, metadata))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasLogMessage("Every metadata we put must be associated with a write")
+                .hasExactlyArgs(LoggingArgs.tableRef(TABLE), UnsafeArg.of("cellsWithOnlyMetadata", metadata.keySet()));
+    }
 }u}(jķ  (21372416854789fd12c26281ae620a7c4bae5920j,  ctimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchEventIntegrationTest.javaj.  modifiedj&  Kj'  Kj0  K4j1  https://github.com/palantir/atlasdb/blob/b072666aa44be73d77f8ae9498d9372c6d6ef4c8/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javaj3  https://github.com/palantir/atlasdb/raw/b072666aa44be73d77f8ae9498d9372c6d6ef4c8/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javaj5  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.java?ref=b072666aa44be73d77f8ae9498d9372c6d6ef4c8j7  Xu"  @@ -81,10 +81,10 @@ public final class LockWatchEventIntegrationTest {
     private static final byte[] DATA_2 = "as".getBytes(StandardCharsets.UTF_8);
     private static final byte[] DATA_3 = "usual".getBytes(StandardCharsets.UTF_8);
     private static final byte[] DATA_4 = "I see".getBytes(StandardCharsets.UTF_8);
-    private static final ChangeMetadata CHANGE_METADATA_1 = ChangeMetadata.created(DATA_1);
-    private static final ChangeMetadata CHANGE_METADATA_2 = ChangeMetadata.deleted(DATA_2);
-    private static final ChangeMetadata CHANGE_METADATA_3 = ChangeMetadata.unchanged();
-    private static final ChangeMetadata CHANGE_METADATA_4 = ChangeMetadata.updated(DATA_3, DATA_4);
+    private static final ChangeMetadata CREATE_CHANGE_METADATA = ChangeMetadata.created(DATA_1);
+    private static final ChangeMetadata DELETE_CHANGE_METADATA = ChangeMetadata.deleted(DATA_2);
+    private static final ChangeMetadata UNCHANGED_CHANGE_METADATA = ChangeMetadata.unchanged();
+    private static final ChangeMetadata UPDATE_CHANGE_METADATA = ChangeMetadata.updated(DATA_3, DATA_4);
     private static final Cell CELL_1 =
             Cell.create("never".getBytes(StandardCharsets.UTF_8), "gonna".getBytes(StandardCharsets.UTF_8));
     private static final Cell CELL_2 =
@@ -236,7 +236,7 @@ public void eventsGeneratedForRowLevelLockWatches() {
 
         Cell cell = Cell.create(ROW, "down".getBytes(StandardCharsets.UTF_8));
         performWriteMetadataTransactionLockingAndUnlockingCells(
-                TABLE_2_REF, ImmutableMap.of(cell, ValueAndChangeMetadata.of(DATA_1, CHANGE_METADATA_1)));
+                TABLE_2_REF, ImmutableMap.of(cell, ValueAndChangeMetadata.of(DATA_1, CREATE_CHANGE_METADATA)));
 
         OpenTransaction thirdTxn = startSingleTransaction();
 
@@ -249,8 +249,8 @@ public void eventsGeneratedForRowLevelLockWatches() {
         assertThat(getAllDescriptorsFromLockWatchEvent(update.events(), WatchEventVisitor.INSTANCE))
                 .isEmpty();
         assertThat(LockWatchIntegrationTestUtilities.extractMetadata(update.events()))
-                .containsExactly(Optional.of(
-                        LockRequestMetadata.of(ImmutableMap.of(getDescriptor(TABLE_2_REF, cell), CHANGE_METADATA_1))));
+                .containsExactly(Optional.of(LockRequestMetadata.of(
+                        ImmutableMap.of(getDescriptor(TABLE_2_REF, cell), CREATE_CHANGE_METADATA))));
     }
 
     @Test
@@ -287,10 +287,10 @@ public void nonEmptyMetadataIsVisibleToTransactionForWatchedTable() {
         LockDescriptor lock4 =
                 AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_4.getRowName(), CELL_4.getColumnName());
         LockRequestMetadata metadata = LockRequestMetadata.of(ImmutableMap.of(
-                lock1, CHANGE_METADATA_1,
-                lock2, CHANGE_METADATA_2,
-                lock3, CHANGE_METADATA_3,
-                lock4, CHANGE_METADATA_4));
+                lock1, CREATE_CHANGE_METADATA,
+                lock2, DELETE_CHANGE_METADATA,
+                lock3, UNCHANGED_CHANGE_METADATA,
+                lock4, UPDATE_CHANGE_METADATA));
         LockRequest requestWithMetadata =
                 createTestLockRequest(ImmutableSet.of(lock1, lock2, lock3, lock4), Optional.of(metadata));
         assertThat(lockAndGetEventMetadataFromLockWatchLog(requestWithMetadata)).contains(metadata);
@@ -304,13 +304,13 @@ public void transactionUpdateIncludesMetadataFromPutWithMetadata() {
                 TABLE_REF,
                 ImmutableMap.of(
                         CELL_1,
-                        ValueAndChangeMetadata.of(DATA_1, CHANGE_METADATA_1),
+                        ValueAndChangeMetadata.of(DATA_1, CREATE_CHANGE_METADATA),
                         CELL_2,
-                        ValueAndChangeMetadata.of(DATA_2, CHANGE_METADATA_2),
+                        ValueAndChangeMetadata.of(DATA_2, DELETE_CHANGE_METADATA),
                         CELL_3,
-                        ValueAndChangeMetadata.of(DATA_3, CHANGE_METADATA_3),
+                        ValueAndChangeMetadata.of(DATA_3, UNCHANGED_CHANGE_METADATA),
                         CELL_4,
-                        ValueAndChangeMetadata.of(DATA_4, CHANGE_METADATA_4)));
+                        ValueAndChangeMetadata.of(DATA_4, UPDATE_CHANGE_METADATA)));
         performWriteTransactionLockingAndUnlockingCells(TABLE_REF, ImmutableMap.of(CELL_1, DATA_1));
 
         OpenTransaction thirdTxn = startSingleTransaction();
@@ -321,13 +321,13 @@ public void transactionUpdateIncludesMetadataFromPutWithMetadata() {
                         // From the first txn
                         Optional.of(LockRequestMetadata.of(ImmutableMap.of(
                                 getDescriptor(TABLE_REF, CELL_1),
-                                CHANGE_METADATA_1,
+                                CREATE_CHANGE_METADATA,
                                 getDescriptor(TABLE_REF, CELL_2),
-                                CHANGE_METADATA_2,
+                                DELETE_CHANGE_METADATA,
                                 getDescriptor(TABLE_REF, CELL_3),
-                                CHANGE_METADATA_3,
+                                UNCHANGED_CHANGE_METADATA,
                                 getDescriptor(TABLE_REF, CELL_4),
-                                CHANGE_METADATA_4))),
+                                UPDATE_CHANGE_METADATA))),
                         // From the second txn
                         Optional.empty());
     }
@@ -337,7 +337,7 @@ public void transactionUpdateIncludesMetadataFromDeleteWithMetadata() {
         LockWatchVersion currentVersion = getCurrentVersion();
 
         performTransactionTaskLockingAndUnlockingCells(txn -> {
-            txn.deleteWithMetadata(TABLE_REF, ImmutableMap.of(CELL_1, CHANGE_METADATA_1));
+            txn.deleteWithMetadata(TABLE_REF, ImmutableMap.of(CELL_1, CREATE_CHANGE_METADATA));
             return null;
         });
         performTransactionTaskLockingAndUnlockingCells(txn -> {
@@ -352,7 +352,7 @@ public void transactionUpdateIncludesMetadataFromDeleteWithMetadata() {
                 .containsExactly(
                         // From the first txn
                         Optional.of(LockRequestMetadata.of(
-                                ImmutableMap.of(getDescriptor(TABLE_REF, CELL_1), CHANGE_METADATA_1))),
+                                ImmutableMap.of(getDescriptor(TABLE_REF, CELL_1), CREATE_CHANGE_METADATA))),
                         // From the second txn
                         Optional.empty());
     }
@@ -363,19 +363,19 @@ public void metadataFilteredAccordingToWatches() {
 
         performTransactionTaskLockingAndUnlockingCells(txn -> {
             txn.putWithMetadata(
-                    TABLE_REF, ImmutableMap.of(CELL_1, ValueAndChangeMetadata.of(DATA_1, CHANGE_METADATA_1)));
+                    TABLE_REF, ImmutableMap.of(CELL_1, ValueAndChangeMetadata.of(DATA_1, CREATE_CHANGE_METADATA)));
             txn.putWithMetadata(
-                    TABLE_2_REF, ImmutableMap.of(CELL_2, ValueAndChangeMetadata.of(DATA_2, CHANGE_METADATA_2)));
+                    TABLE_2_REF, ImmutableMap.of(CELL_2, ValueAndChangeMetadata.of(DATA_2, DELETE_CHANGE_METADATA)));
             return null;
         });
         performTransactionTaskLockingAndUnlockingCells(txn -> {
             txn.put(TABLE_REF, ImmutableMap.of(CELL_1, DATA_1));
             txn.putWithMetadata(
-                    TABLE_2_REF, ImmutableMap.of(CELL_2, ValueAndChangeMetadata.of(DATA_2, CHANGE_METADATA_2)));
+                    TABLE_2_REF, ImmutableMap.of(CELL_2, ValueAndChangeMetadata.of(DATA_2, DELETE_CHANGE_METADATA)));
             return null;
         });
         performWriteMetadataTransactionLockingAndUnlockingCells(
-                TABLE_2_REF, ImmutableMap.of(CELL_3, ValueAndChangeMetadata.of(DATA_3, CHANGE_METADATA_3)));
+                TABLE_2_REF, ImmutableMap.of(CELL_3, ValueAndChangeMetadata.of(DATA_3, UNCHANGED_CHANGE_METADATA)));
 
         OpenTransaction fourthTxn = startSingleTransaction();
         TransactionsLockWatchUpdate update = getUpdateForTransactions(Optional.of(currentVersion), fourthTxn);
@@ -384,7 +384,7 @@ public void metadataFilteredAccordingToWatches() {
                 .containsExactly(
                         // From the first txn
                         Optional.of(LockRequestMetadata.of(
-                                ImmutableMap.of(getDescriptor(TABLE_REF, CELL_1), CHANGE_METADATA_1))),
+                                ImmutableMap.of(getDescriptor(TABLE_REF, CELL_1), CREATE_CHANGE_METADATA))),
                         // From the second txn
                         Optional.empty()
                         // No lock event for the third txn since no locks were watchedueu(6971b7a880d38bea7a410b9ca3324a688237577e}(sha(6971b7a880d38bea7a410b9ca3324a688237577enode_idEC_kwDOAjP5fdoAKDY5NzFiN2E4ODBkMzhiZWE3YTQxMGI5Y2EzMzI0YTY4ODIzNzU3N2Ucommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-03T15:07:20Zu	committer}(jK  	Tom PapkejM  tpapke@palantir.comjO  2023-07-03T15:07:20Zumessage4Use singletons for visitors (more resource-friendly)tree}(jC  (68e8443d41d01b5ae5136e3f5870569f192f6675url`https://api.github.com/repos/palantir/atlasdb/git/trees/68e8443d41d01b5ae5136e3f5870569f192f6675uj[  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6971b7a880d38bea7a410b9ca3324a688237577e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSi5CgACgkQmF9s0kaF
Iw2T1QgAvOpZZ7dlnWHLNSJjgIKCWHWqQeqKtqWBjXM8QLk//uXIG5RB6PGdEisf
J9VU/NwOcvUHbZXPny3cWLt1N0Gu3Xc3DeVlC1yUboC+Zb9xx7zwllcFlK0tLFgX
ACSJ3RLw5eVmJNOmKWYDrwTuYyvsJJK0Nrsvxovki9YGrVX0dcJ7B/kbHyBEBax8
RdfoQLO9eTmDvtgFmaU2ji1VoPet7CoI0tfp3ZNjV+yivAFhEWu1l16lVIGp4/62
CRJHnpAXavu2qXEXXLW1UJCoYE/0ZDdMECKAYSR7jS2R4F890Xl5E3gzr8K+fSgw
MeXxXxZsfZ6zXoUnYXUY+B/hVz0xfQ==
=1wgD
-----END PGP SIGNATURE-----payloadX  tree 68e8443d41d01b5ae5136e3f5870569f192f6675
parent 9033d59d8ca510dcfebc1f42a40e5ee1e6d48f4e
author Tom Papke <tpapke@palantir.com> 1688396840 +0100
committer Tom Papke <tpapke@palantir.com> 1688396840 +0100

Use singletons for visitors (more resource-friendly)
uuj[  ^https://api.github.com/repos/palantir/atlasdb/commits/6971b7a880d38bea7a410b9ca3324a688237577ehtml_urlShttps://github.com/palantir/atlasdb/commit/6971b7a880d38bea7a410b9ca3324a688237577ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6971b7a880d38bea7a410b9ca3324a688237577e/commentsjI  }(login	ToemmscheidJbojE  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j[  &https://api.github.com/users/Toemmscheji  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujQ  }(jn  	Toemmschejp  JbojE  MDQ6VXNlcjQzNjc1NDkwjr  4https://avatars.githubusercontent.com/u/43675490?v=4jt  h5j[  &https://api.github.com/users/Toemmscheji  https://github.com/Toemmschejw  0https://api.github.com/users/Toemmsche/followersjy  =https://api.github.com/users/Toemmsche/following{/other_user}j{  6https://api.github.com/users/Toemmsche/gists{/gist_id}j}  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j  4https://api.github.com/users/Toemmsche/subscriptionsj  +https://api.github.com/users/Toemmsche/orgsj  ,https://api.github.com/users/Toemmsche/reposj  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj  Userj  uparents]}(jC  (9033d59d8ca510dcfebc1f42a40e5ee1e6d48f4ej[  ^https://api.github.com/repos/palantir/atlasdb/commits/9033d59d8ca510dcfebc1f42a40e5ee1e6d48f4eji  Shttps://github.com/palantir/atlasdb/commit/9033d59d8ca510dcfebc1f42a40e5ee1e6d48f4euastats}(totalK[	additionsK3	deletionsK(ufiles]}(jC  (1a61991d8334080963ce0dc31ca7a0fbd51717c0filenameqtimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataIntegrationTest.javastatusmodifiedj  K3j  K(changesK[blob_urlhttps://github.com/palantir/atlasdb/blob/6971b7a880d38bea7a410b9ca3324a688237577e/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataIntegrationTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6971b7a880d38bea7a410b9ca3324a688237577e/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataIntegrationTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataIntegrationTest.java?ref=6971b7a880d38bea7a410b9ca3324a688237577epatchXf  @@ -43,9 +43,9 @@
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
 import com.palantir.lock.watch.LockWatchReferences;
+import com.palantir.lock.watch.LockWatchStateUpdate;
 import com.palantir.lock.watch.LockWatchStateUpdate.Snapshot;
 import com.palantir.lock.watch.LockWatchStateUpdate.Success;
-import com.palantir.lock.watch.LockWatchStateUpdate.Visitor;
 import com.palantir.lock.watch.UnlockEvent;
 import com.palantir.timestamp.InMemoryTimestampService;
 import java.nio.charset.StandardCharsets;
@@ -63,6 +63,11 @@
 import org.junit.Test;
 
 public class AsyncTimeLockServiceMetadataIntegrationTest {
+    private static final TokenVisitor TOKEN_VISITOR = new TokenVisitor();
+    private static final LockWatchEventVisitor LOCK_WATCH_EVENT_VISITOR = new LockWatchEventVisitor();
+    private static final LockWatchStateUpdateVisitor LOCK_WATCH_STATE_UPDATE_VISITOR =
+            new LockWatchStateUpdateVisitor();
+
     private static final String WATCHED_TABLE_NAME = "watched-table";
     private static final LockDescriptor WATCHED_LOCK_1 =
             AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, "lock1".getBytes(StandardCharsets.UTF_8));
@@ -202,22 +207,7 @@ public void canMixWithOtherLockWatchEventsAndAbsentMetadata() {
 
     private List<Optional<LockRequestMetadata>> getAllLockEventsMetadata() {
         return getAllLockWatchEvents().stream()
-                .map(event -> event.accept(new LockWatchEvent.Visitor<Optional<LockEvent>>() {
-                    @Override
-                    public Optional<LockEvent> visit(LockEvent lockEvent) {
-                        return Optional.of(lockEvent);
-                    }
-
-                    @Override
-                    public Optional<LockEvent> visit(UnlockEvent unlockEvent) {
-                        return Optional.empty();
-                    }
-
-                    @Override
-                    public Optional<LockEvent> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
-                        return Optional.empty();
-                    }
-                }))
+                .map(event -> event.accept(LOCK_WATCH_EVENT_VISITOR))
                 .flatMap(Optional::stream)
                 .map(LockEvent::metadata)
                 .collect(Collectors.toList());
@@ -227,17 +217,7 @@ private List<LockWatchEvent> getAllLockWatchEvents() {
         ConjureStartTransactionsResponse response =
                 waitForFuture(timeLockService.startTransactionsWithWatches(startTransactionsRequestWithInitialVersion));
 
-        return response.getLockWatchUpdate().accept(new Visitor<>() {
-            @Override
-            public List<LockWatchEvent> visit(Success success) {
-                return success.events();
-            }
-
-            @Override
-            public List<LockWatchEvent> visit(Snapshot snapshot) {
-                return ImmutableList.of();
-            }
-        });
+        return response.getLockWatchUpdate().accept(LOCK_WATCH_STATE_UPDATE_VISITOR);
     }
 
     private static <T> T waitForFuture(Future<T> future) {
@@ -250,21 +230,52 @@ private static <T> T waitForFuture(Future<T> future) {
     }
 
     private static LockToken getToken(LockResponseV2 response) {
-        return response.accept(new LockResponseV2.Visitor<Optional<LockToken>>() {
-                    @Override
-                    public Optional<LockToken> visit(Successful successful) {
-                        return Optional.of(successful.getToken());
-                    }
-
-                    @Override
-                    public Optional<LockToken> visit(Unsuccessful failure) {
-                        return Optional.empty();
-                    }
-                })
-                .orElseThrow();
+        return response.accept(TOKEN_VISITOR).orElseThrow();
     }
 
     private static IdentifiedLockRequest standardRequestWithMetadata(Map<LockDescriptor, ChangeMetadata> metadata) {
         return IdentifiedLockRequest.of(metadata.keySet(), 1000, "testClient", LockRequestMetadata.of(metadata));
     }
+
+    private static final class TokenVisitor implements LockResponseV2.Visitor<Optional<LockToken>> {
+        @Override
+        public Optional<LockToken> visit(Successful successful) {
+            return Optional.of(successful.getToken());
+        }
+
+        @Override
+        public Optional<LockToken> visit(Unsuccessful failure) {
+            return Optional.empty();
+        }
+    }
+
+    private static final class LockWatchEventVisitor implements LockWatchEvent.Visitor<Optional<LockEvent>> {
+        @Override
+        public Optional<LockEvent> visit(LockEvent lockEvent) {
+            return Optional.of(lockEvent);
+        }
+
+        @Override
+        public Optional<LockEvent> visit(UnlockEvent unlockEvent) {
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<LockEvent> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
+            return Optional.empty();
+        }
+    }
+
+    private static final class LockWatchStateUpdateVisitor
+            implements LockWatchStateUpdate.Visitor<List<LockWatchEvent>> {
+        @Override
+        public List<LockWatchEvent> visit(Success success) {
+            return success.events();
+        }
+
+        @Override
+        public List<LockWatchEvent> visit(Snapshot snapshot) {
+            return ImmutableList.of();
+        }
+    }
 }uau(be87de53b1f314a1170fdef1734afaf2fed4bef2}(sha(be87de53b1f314a1170fdef1734afaf2fed4bef2node_idEC_kwDOAjP5fdoAKGJlODdkZTUzYjFmMzE0YTExNzBmZGVmMTczNGFmYWYyZmVkNGJlZjIcommit}(author}(nameChris Van de Veldeemailcvandevelde@palantir.comdate2023-04-05T11:19:32Zu	committer}(j¸  Chris Van de Veldejĸ  cvandevelde@palantir.comjƸ  2023-04-05T11:19:32ZumessageUse bindargs for rownum/limittree}(j  (19b45f8e730b31683e71dfdcf729846bf48d34d2url`https://api.github.com/repos/palantir/atlasdb/git/trees/19b45f8e730b31683e71dfdcf729846bf48d34d2ujҸ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/be87de53b1f314a1170fdef1734afaf2fed4bef2
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEfsytHu2QbUsz5QamhCdbnbxuCwoFAmQtWVMACgkQhCdbnbxu
Cwoeegf+N/k+2ZNUbCYfLD3tUWg421V2wpg0i5fFq7eCoQMp7ccnINOrWkUclRlR
dFp9/5OBEdipqsPybqO1BZ8eNkl6sJ2g7wu5pULCbe4graWVwq+bBd8rWLg5xabr
zLD26bFRk9Ssttt4aqtX9JxBPE1DJRiLj8ybRuMmiEe3Lc/1yNG5r9+OrHynrPT/
h43ItleR1q+wcgPYAsG1R7Rsp0Hte+cWBb7dT1nfritvChPQ9zmQTWSbVlfKzdoA
vBUGZbsOXdks/+4Z8KSfHd3Hw16XwncLRBGSJoorouo8XKYzj/ve6LLeiULFsSPM
VzSos2JDbYSxr3nyv4OdEZaNtrqw7A==
=CeUm
-----END PGP SIGNATURE-----payloadX  tree 19b45f8e730b31683e71dfdcf729846bf48d34d2
parent 037dd3c00910e8d68932e9274aa79dab0dce86ba
author Chris Van de Velde <cvandevelde@palantir.com> 1680693572 +1000
committer Chris Van de Velde <cvandevelde@palantir.com> 1680693572 +1000

Use bindargs for rownum/limit
uujҸ  ^https://api.github.com/repos/palantir/atlasdb/commits/be87de53b1f314a1170fdef1734afaf2fed4bef2html_urlShttps://github.com/palantir/atlasdb/commit/be87de53b1f314a1170fdef1734afaf2fed4bef2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/be87de53b1f314a1170fdef1734afaf2fed4bef2/commentsj  }(loginCVdV-auidJDN j  MDQ6VXNlcjY5MjI2MDUy
avatar_url4https://avatars.githubusercontent.com/u/69226052?v=4gravatar_idh5jҸ  $https://api.github.com/users/CVdV-auj  https://github.com/CVdV-au
followers_url.https://api.github.com/users/CVdV-au/followers
following_url;https://api.github.com/users/CVdV-au/following{/other_user}	gists_url4https://api.github.com/users/CVdV-au/gists{/gist_id}starred_url;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/CVdV-au/subscriptionsorganizations_url)https://api.github.com/users/CVdV-au/orgs	repos_url*https://api.github.com/users/CVdV-au/repos
events_url5https://api.github.com/users/CVdV-au/events{/privacy}received_events_url4https://api.github.com/users/CVdV-au/received_eventstypeUser
site_adminujȸ  }(j  CVdV-auj  JDN j  MDQ6VXNlcjY5MjI2MDUyj  4https://avatars.githubusercontent.com/u/69226052?v=4j  h5jҸ  $https://api.github.com/users/CVdV-auj  https://github.com/CVdV-auj  .https://api.github.com/users/CVdV-au/followersj  ;https://api.github.com/users/CVdV-au/following{/other_user}j  4https://api.github.com/users/CVdV-au/gists{/gist_id}j  ;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}j  2https://api.github.com/users/CVdV-au/subscriptionsj  )https://api.github.com/users/CVdV-au/orgsj  *https://api.github.com/users/CVdV-au/reposj  5https://api.github.com/users/CVdV-au/events{/privacy}j  4https://api.github.com/users/CVdV-au/received_eventsj   Userj  uparents]}(j  (037dd3c00910e8d68932e9274aa79dab0dce86bajҸ  ^https://api.github.com/repos/palantir/atlasdb/commits/037dd3c00910e8d68932e9274aa79dab0dce86baj  Shttps://github.com/palantir/atlasdb/commit/037dd3c00910e8d68932e9274aa79dab0dce86bauastats}(totalK.	additionsK	deletionsKufiles](}(j  (2a91fe0d6e86187e3690c8655b64ea385b2f02fafilenameSatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/FullQuery.javastatusmodifiedj  K j  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/be87de53b1f314a1170fdef1734afaf2fed4bef2/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.javaraw_urlhttps://github.com/palantir/atlasdb/raw/be87de53b1f314a1170fdef1734afaf2fed4bef2/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.java?ref=be87de53b1f314a1170fdef1734afaf2fed4bef2patchXe  @@ -35,11 +35,6 @@ public Builder append(String query) {
             return this;
         }
 
-        public Builder append(long number) {
-            queryBuilder.append(number);
-            return this;
-        }
-
         public Builder append(String query, Object arg) {
             queryBuilder.append(query);
             argsBuilder.add(arg);u}(j  (ddbe99f94fd632341080a204b08994736d8ac8d1j"  gatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleCellTsPageLoader.javaj$  modifiedj  Kj  Kj&  Kj'  https://github.com/palantir/atlasdb/blob/be87de53b1f314a1170fdef1734afaf2fed4bef2/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.javaj)  https://github.com/palantir/atlasdb/raw/be87de53b1f314a1170fdef1734afaf2fed4bef2/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.javaj+  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.java?ref=be87de53b1f314a1170fdef1734afaf2fed4bef2j-  X  @@ -195,8 +195,7 @@ private FullQuery getQuery(boolean singleRow) {
             appendRangePredicates(singleRow, queryBuilder);
             return queryBuilder
                     .append("  ORDER BY row_name, col_name, ts")
-                    .append(") WHERE rownum <= ")
-                    .append(sqlRowLimit)
+                    .append(") WHERE rownum <= ?", sqlRowLimit)
                     .append(" ORDER BY row_name, col_name, ts")
                     .build();
         }u}(j  (570b443f767b2c7f891051709f1bd68ce081d75cj"  _atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleGetRange.javaj$  modifiedj  Kj  Kj&  Kj'  https://github.com/palantir/atlasdb/blob/be87de53b1f314a1170fdef1734afaf2fed4bef2/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.javaj)  https://github.com/palantir/atlasdb/raw/be87de53b1f314a1170fdef1734afaf2fed4bef2/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.javaj+  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.java?ref=be87de53b1f314a1170fdef1734afaf2fed4bef2j-  XF  @@ -316,8 +316,7 @@ private FullQuery getRangeQuery(ConnectionSupplier conns) {
                     .append(shortTableName)
                     .append(" v ON ")
                     .append("    sub.row_name = v.row_name and sub.col_name = v.col_name and sub.ts = v.ts")
-                    .append("  WHERE sub.rn <= ")
-                    .append(maxRowsPerPage)
+                    .append("  WHERE sub.rn <= ?", maxRowsPerPage)
                     .append("  ORDER BY sub.row_name ")
                     .append(direction)
                     .append(", sub.col_name ")u}(j  (68c4ca31f6171bb238d98d2e9cfa5f4ad9e2f919j"  catlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleQueryFactory.javaj$  modifiedj  Kj  Kj&  Kj'  https://github.com/palantir/atlasdb/blob/be87de53b1f314a1170fdef1734afaf2fed4bef2/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.javaj)  https://github.com/palantir/atlasdb/raw/be87de53b1f314a1170fdef1734afaf2fed4bef2/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.javaj+  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.java?ref=be87de53b1f314a1170fdef1734afaf2fed4bef2j-  XW	  @@ -312,8 +312,8 @@ public FullQuery getRangeQuery(RangeRequest range, long ts, int maxRows) {
                 + "     FROM " + tableName + " m "
                 + (bounds.isEmpty() ? "" : " WHERE  " + Joiner.on(" AND ").join(bounds))
                 + "     ORDER BY m.row_name " + (range.isReverse() ? "DESC" : "ASC")
-                + "   ) inner WHERE rownum <= " + maxRows;
-        return new FullQuery(query).withArgs(args);
+                + "   ) inner WHERE rownum <= ?";
+        return new FullQuery(query).withArgs(args).withArg(maxRows);
     }
 
     @Override
@@ -334,10 +334,10 @@ public FullQuery getRowsColumnRangeCountsQuery(
                 + " GROUP BY m.row_name";
         FullQuery fullQuery = new FullQuery(query).withArgs(rowsToOracleArray(rows), ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
         return fullQuery;
     }
@@ -355,14 +355,15 @@ protected FullQuery getRowsColumnRangeSubQuery(
                 + (columnRangeSelection.getStartCol().length > 0 ? " AND m.col_name >= ?" : "")
                 + (columnRangeSelection.getEndCol().length > 0 ? " AND m.col_name < ?" : "")
                 + " GROUP BY m.row_name, m.col_name"
-                + " ORDER BY m.row_name ASC, m.col_name ASC ) s WHERE rownum <= " + columnRangeSelection.getBatchHint();
+                + " ORDER BY m.row_name ASC, m.col_name ASC ) s WHERE rownum <= ?";
         FullQuery fullQuery = new FullQuery(query).withArg(row).withArg(ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
+        fullQuery.withArg(columnRangeSelection.getBatchHint());
         return fullQuery;
     }
 u}(j  (2f1bb8d487f43f4608acaf707e7e6788af473dbdj"  katlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresCellTsPageLoader.javaj$  modifiedj  Kj  Kj&  Kj'  https://github.com/palantir/atlasdb/blob/be87de53b1f314a1170fdef1734afaf2fed4bef2/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.javaj)  https://github.com/palantir/atlasdb/raw/be87de53b1f314a1170fdef1734afaf2fed4bef2/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.javaj+  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.java?ref=be87de53b1f314a1170fdef1734afaf2fed4bef2j-  XR  @@ -154,8 +154,7 @@ private FullQuery getFullQuery() {
                                 token.startRowInclusive(), token.startColInclusive(), token.startTsInclusive());
                 return queryBuilder
                         .append("      ORDER BY row_name, col_name, ts")
-                        .append("      LIMIT ")
-                        .append(sqlRowLimit)
+                        .append("      LIMIT ?", sqlRowLimit)
                         .append("    ) sub")
                         .append("    GROUP BY row_name, col_name")
                         .append("    ORDER BY row_name, col_name")
@@ -183,8 +182,7 @@ private FullQuery getFullQuery() {
                                 token.startRowInclusive(), token.startColInclusive(), token.startTsInclusive());
                 return queryBuilder
                         .append("  ORDER BY row_name, col_name, ts")
-                        .append("  LIMIT ")
-                        .append(sqlRowLimit)
+                        .append("  LIMIT ?", sqlRowLimit)
                         .build();
             }
         }u}(j  (00cafb31e5f67e282a7490f4d2f3b4c4034b0fb5j"  catlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresGetRange.javaj$  modifiedj  Kj  Kj&  Kj'  https://github.com/palantir/atlasdb/blob/be87de53b1f314a1170fdef1734afaf2fed4bef2/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.javaj)  https://github.com/palantir/atlasdb/raw/be87de53b1f314a1170fdef1734afaf2fed4bef2/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.javaj+  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.java?ref=be87de53b1f314a1170fdef1734afaf2fed4bef2j-  X  @@ -288,8 +288,7 @@ private FullQuery getRangeQuery() {
                     .append(direction)
                     .append(", col_name ")
                     .append(direction)
-                    .append("    LIMIT ")
-                    .append(maxCellsPerPage)
+                    .append("    LIMIT ?", maxCellsPerPage)
                     .append("  ) i")
                     .append("  WHERE wrap.row_name = i.row_name")
                     .append("    AND wrap.col_name = i.col_name")u}(j  (09ea7a8a8689d417885286a94aaf8424dfa8b7faj"  gatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresQueryFactory.javaj$  modifiedj  Kj  Kj&  Kj'  https://github.com/palantir/atlasdb/blob/be87de53b1f314a1170fdef1734afaf2fed4bef2/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.javaj)  https://github.com/palantir/atlasdb/raw/be87de53b1f314a1170fdef1734afaf2fed4bef2/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.javaj+  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.java?ref=be87de53b1f314a1170fdef1734afaf2fed4bef2j-  X  @@ -229,8 +229,8 @@ public FullQuery getRangeQuery(RangeRequest range, long ts, int maxRows) {
                 + " FROM " + prefixedTableName() + " m "
                 + (bounds.isEmpty() ? "" : " WHERE  " + Joiner.on(" AND ").join(bounds))
                 + " ORDER BY m.row_name " + (range.isReverse() ? "DESC" : "ASC")
-                + " LIMIT " + maxRows;
-        return new FullQuery(query).withArgs(args);
+                + " LIMIT ?";
+        return new FullQuery(query).withArgs(args).withArg(maxRows);
     }
 
     @Override
@@ -319,16 +319,17 @@ protected FullQuery getRowsColumnRangeSubQuery(
                 + (columnRangeSelection.getStartCol().length > 0 ? " AND m.col_name >= ?" : "")
                 + (columnRangeSelection.getEndCol().length > 0 ? " AND m.col_name < ?" : "")
                 + " GROUP BY m.row_name, m.col_name"
-                + " ORDER BY m.col_name ASC LIMIT " + columnRangeSelection.getBatchHint();
+                + " ORDER BY m.col_name ASC LIMIT ?";
         FullQuery fullQuery = new FullQuery(wrapQueryWithIncludeValue("GET_ROWS_COLUMN_RANGE", query, true))
                 .withArg(row)
                 .withArg(ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
+        fullQuery.withArg(columnRangeSelection.getBatchHint());
         return fullQuery;
     }
 ueu(df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c}(sha(df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cnode_idEC_kwDOAjP5fdoAKGRmM2Q3OGQxZTBhOWI5ZWQxNjYyZGQwY2UyYTk2MWM5NDk1ZDJiM2Mcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-02T10:35:10Zu	committer}(ji  Jeremy Kongjk  jkong@palantir.comjm  2023-06-02T10:35:10Zumessagecall to actiontree}(ja  (f9699430a34c6350b14c521fa1bf2baaffd86341url`https://api.github.com/repos/palantir/atlasdb/git/trees/f9699430a34c6350b14c521fa1bf2baaffd86341ujy  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR5xd4ACgkQTLdFKain
zjwyrggAkAmpC4QpgiyvRg3T2fExQN9akNkQUwEn0XpS/NGTl+kDVrxnd4tVMkZJ
+10WfV+h+pXUU4mn6vlH+0S/aXVCXEqTZ717BB+HbcPJUjgJ2kwVc+FPlioOvqig
INTszJGomVdvQGH/McR2OBjyDDQ40VriMHnFCDHg6Aih5kRpNMllXhV3tGyTZ8kT
wHeBNl3KEf2udZO+ZvuXWuaWnB7sD2Uhb3JrcLNY+kL5PbPqh1qHvQVyPYR205AF
/9vmNt5Es5uGWdSKOtcNaA9NqGfEC5AH2FjZPsVlCRKBihu2c1uKg+uI9thDUsis
mNsScjXzAcDkvaZWXogBcoKWTvpX6g==
=jVFy
-----END PGP SIGNATURE-----payloadtree f9699430a34c6350b14c521fa1bf2baaffd86341
parent 5b2e7a27be9a20d44f2aab8affa0aba5c3623efb
author Jeremy Kong <jkong@palantir.com> 1685702110 +0100
committer Jeremy Kong <jkong@palantir.com> 1685702110 +0100

call to action
uujy  ^https://api.github.com/repos/palantir/atlasdb/commits/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3chtml_urlShttps://github.com/palantir/atlasdb/commit/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/commentsjg  }(login
jeremyk-91idJZ jc  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jy  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujo  }(j  
jeremyk-91j  JZ jc  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5jy  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents]}(ja  (5b2e7a27be9a20d44f2aab8affa0aba5c3623efbjy  ^https://api.github.com/repos/palantir/atlasdb/commits/5b2e7a27be9a20d44f2aab8affa0aba5c3623efbj  Shttps://github.com/palantir/atlasdb/commit/5b2e7a27be9a20d44f2aab8affa0aba5c3623efbuastats}(totalM,	additionsM	deletionsK{ufiles](}(ja  (4e807c172703d521010aa8da541963a6f8601d3ffilenameoatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javastatusmodifiedjù  KjĹ  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cpatchX  @@ -16,12 +16,13 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.RowColumnRangeIterator;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Optional;
 
 /**
@@ -34,7 +35,7 @@ public interface InteractiveTransaction {
 
     void delete(String table, WorkloadCell workloadCell);
 
-    Map<Integer, RowColumnRangeIterator> getRowsColumnRange(
+    Map<Integer, Iterator<Entry<WorkloadCell, Integer>>> getRowsColumnRange(
             String table, List<Integer> rows, WorkloadColumnRangeSelection workloadColumnRangeSelection);
 
     List<WitnessedTransactionAction> witness();u}(ja  (f7735d18bbbba25dfb88240ee5bd67d179b7aadcjɹ  }atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowsColumnRangeReadTransactionAction.javaj˹  modifiedjù  KjĹ  K	j͹  K jι  https://github.com/palantir/atlasdb/blob/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowsColumnRangeReadTransactionAction.javajй  https://github.com/palantir/atlasdb/raw/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowsColumnRangeReadTransactionAction.javajҹ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowsColumnRangeReadTransactionAction.java?ref=df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cjԹ  X
  @@ -18,11 +18,10 @@
 
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadColumnRangeSelection;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedRowsColumnRangeExhaustionTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedRowsColumnRangeReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeExhaustionTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeIteratorCreationTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeReadTransactionAction;
 import java.util.List;
+import java.util.UUID;
 import org.immutables.value.Value;
 
 @Value.Immutable
@@ -41,19 +40,34 @@ default <T> T accept(TransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-    default WitnessedRowsColumnRangeExhaustionTransactionAction exhaustionWitness(int specificRow) {
-        return ImmutableWitnessedRowsColumnRangeExhaustionTransactionAction.builder()
+    default WitnessedRowsColumnRangeIteratorCreationTransactionAction creationWitness(UUID uuid, int specificRow) {
+        return WitnessedRowsColumnRangeIteratorCreationTransactionAction.builder()
                 .originalAction(this)
+                .iteratorIdentifier(uuid)
                 .specificRow(specificRow)
                 .build();
     }
 
-    default WitnessedRowsColumnRangeReadTransactionAction readWitness(int specificRow, WorkloadCell cell, int value) {
-        return ImmutableWitnessedRowsColumnRangeReadTransactionAction.builder()
-                .originalAction(this)
+    default WitnessedRowsColumnRangeReadTransactionAction exhaustionWitness(UUID uuid, int specificRow) {
+        return WitnessedRowsColumnRangeReadTransactionAction.builder()
+                .iteratorIdentifier(uuid)
+                .table(table())
+                .specificRow(specificRow)
+                .build();
+    }
+
+    default WitnessedRowsColumnRangeReadTransactionAction readWitness(
+            UUID uuid, int specificRow, WorkloadCell cell, int value) {
+        return WitnessedRowsColumnRangeReadTransactionAction.builder()
+                .iteratorIdentifier(uuid)
+                .table(table())
                 .cell(cell)
                 .value(value)
                 .specificRow(specificRow)
                 .build();
     }
+
+    static ImmutableRowsColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableRowsColumnRangeReadTransactionAction.builder();
+    }
 }u      }(ja  (602c5f018b462f5e65d08cfe945de835dd397db1jɹ  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedRowColumnRangePageReadTransactionAction.javaj˹  modifiedjù  KjĹ  K j͹  Kjι  X   https://github.com/palantir/atlasdb/blob/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangePageReadTransactionAction.javajй  https://github.com/palantir/atlasdb/raw/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangePageReadTransactionAction.javajҹ  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangePageReadTransactionAction.java?ref=df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cjԹ  X{  @@ -16,6 +16,8 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeReadTransactionAction;
+
 public interface InvalidWitnessedRowColumnRangePageReadTransactionAction extends InvalidWitnessedTransactionAction {
     WitnessedRowsColumnRangeReadTransactionAction action();
 u}(ja  (07af7d0e922326e6fd50ae5b8c3956758bd56af1jɹ  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionActionVisitor.javaj˹  modifiedjù  KjĹ  Kj͹  Kjι  https://github.com/palantir/atlasdb/blob/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javajй  https://github.com/palantir/atlasdb/raw/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javajҹ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.java?ref=df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cjԹ  X]  @@ -16,6 +16,9 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeIteratorCreationTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeReadTransactionAction;
+
 public interface WitnessedTransactionActionVisitor<T> {
     T visit(WitnessedReadTransactionAction readTransactionAction);
 
@@ -25,5 +28,5 @@ public interface WitnessedTransactionActionVisitor<T> {
 
     T visit(WitnessedRowsColumnRangeReadTransactionAction rowsColumnRangeReadTransactionAction);
 
-    T visit(WitnessedRowsColumnRangeExhaustionTransactionAction rowsColumnRangeExhaustionTransactionAction);
+    T visit(WitnessedRowsColumnRangeIteratorCreationTransactionAction rowsColumnRangeIteratorCreationTransactionAction);
 }u}(ja  (7dff5175000d44095e917e403b369d99a3ce85cdjɹ  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/range/WitnessedRowsColumnRangeIteratorCreationTransactionAction.javaj˹  renamedjù  K	jĹ  Kj͹  K
jι  X
  https://github.com/palantir/atlasdb/blob/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2Frange%2FWitnessedRowsColumnRangeIteratorCreationTransactionAction.javajй  X	  https://github.com/palantir/atlasdb/raw/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2Frange%2FWitnessedRowsColumnRangeIteratorCreationTransactionAction.javajҹ  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2Frange%2FWitnessedRowsColumnRangeIteratorCreationTransactionAction.java?ref=df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cjԹ  X}  @@ -14,23 +14,28 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.workload.transaction.witnessed;
+package com.palantir.atlasdb.workload.transaction.witnessed.range;
 
 import com.palantir.atlasdb.workload.transaction.RowsColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import java.util.UUID;
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WitnessedRowsColumnRangeExhaustionTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedRowsColumnRangeIteratorCreationTransactionAction extends WitnessedTransactionAction {
     RowsColumnRangeReadTransactionAction originalAction();
 
+    UUID iteratorIdentifier();
+
     int specificRow();
 
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-    static ImmutableWitnessedRowsColumnRangeExhaustionTransactionAction.Builder builder() {
-        return ImmutableWitnessedRowsColumnRangeExhaustionTransactionAction.builder();
+    static ImmutableWitnessedRowsColumnRangeIteratorCreationTransactionAction.Builder builder() {
+        return ImmutableWitnessedRowsColumnRangeIteratorCreationTransactionAction.builder();
     }
 }previous_filenameatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowsColumnRangeExhaustionTransactionAction.javau}(ja  (f1cd6a59e0e163d8a0719d1fc0dd1a909b25de56jɹ  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/range/WitnessedRowsColumnRangeReadTransactionAction.javaj˹  renamedjù  KjĹ  Kj͹  Kjι  https://github.com/palantir/atlasdb/blob/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2Frange%2FWitnessedRowsColumnRangeReadTransactionAction.javajй  https://github.com/palantir/atlasdb/raw/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2Frange%2FWitnessedRowsColumnRangeReadTransactionAction.javajҹ  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2Frange%2FWitnessedRowsColumnRangeReadTransactionAction.java?ref=df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cjԹ  X  @@ -14,33 +14,39 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.workload.transaction.witnessed;
+package com.palantir.atlasdb.workload.transaction.witnessed.range;
 
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.RowsColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.logsafe.Preconditions;
+import java.util.Optional;
+import java.util.UUID;
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WitnessedRowsColumnRangeReadTransactionAction extends WitnessedSingleCellTransactionAction {
-    RowsColumnRangeReadTransactionAction originalAction();
+public interface WitnessedRowsColumnRangeReadTransactionAction extends WitnessedTransactionAction {
+    UUID iteratorIdentifier();
+
+    String table();
 
     int specificRow();
 
-    @Override
-    default String table() {
-        return originalAction().table();
-    }
+    Optional<WorkloadCell> cell();
 
-    @Override
-    WorkloadCell cell();
-
-    int value();
+    Optional<Integer> value();
 
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
+    @Value.Check
+    default void check() {
+        Preconditions.checkState(
+                cell().isPresent() == value().isPresent(), "Either both or neither of cell and value must be present");
+    }
+
     static ImmutableWitnessedRowsColumnRangeReadTransactionAction.Builder builder() {
         return ImmutableWitnessedRowsColumnRangeReadTransactionAction.builder();
     }j  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowsColumnRangeReadTransactionAction.javau}(ja  (08ce07c9bdf2b2b97d28d4552b16f799a6535f25jɹ  hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj˹  modifiedjù  KjĹ  Kj͹  K	jι  https://github.com/palantir/atlasdb/blob/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajй  https://github.com/palantir/atlasdb/raw/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajҹ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cjԹ  XY  @@ -24,10 +24,10 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeExhaustionTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeIteratorCreationTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import java.util.List;
 import java.util.Optional;
@@ -101,9 +101,10 @@ public List<InvalidWitnessedTransactionAction> visit(
 
         @Override
         public List<InvalidWitnessedTransactionAction> visit(
-                WitnessedRowsColumnRangeExhaustionTransactionAction rowsColumnRangeExhaustionTransactionAction) {
+                WitnessedRowsColumnRangeIteratorCreationTransactionAction
+                        rowsColumnRangeIteratorCreationTransactionAction) {
             // TODO (jkong): Not implemented yet
-            return ImmutableList.of();
+            return null;
         }
     }
 }u}(ja  (62fcdaa8ebf135c929d591917676fab7433855e4jɹ  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj˹  modifiedjù  KjĹ  Kj͹  K	jι  https://github.com/palantir/atlasdb/blob/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajй  https://github.com/palantir/atlasdb/raw/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajҹ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cjԹ  X  @@ -24,10 +24,10 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeExhaustionTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeIteratorCreationTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeReadTransactionAction;
 import io.vavr.collection.Map;
 import java.util.List;
 import java.util.Optional;
@@ -103,9 +103,10 @@ public List<InvalidWitnessedTransactionAction> visit(
 
     @Override
     public List<InvalidWitnessedTransactionAction> visit(
-            WitnessedRowsColumnRangeExhaustionTransactionAction rowsColumnRangeExhaustionTransactionAction) {
+            WitnessedRowsColumnRangeIteratorCreationTransactionAction
+                    rowsColumnRangeIteratorCreationTransactionAction) {
         // TODO(jkong): Not implemented yet
-        return ImmutableList.of();
+        return null;
     }
 
     /**u}(ja  (bff184c61a8312df1710e7e06880b3c75bb0ab88jɹ  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj˹  modifiedjù  KjĹ  Kj͹  K1jι  https://github.com/palantir/atlasdb/blob/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javajй  https://github.com/palantir/atlasdb/raw/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javajҹ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cjԹ  X  @@ -16,20 +16,20 @@
 
 package com.palantir.atlasdb.workload.store;
 
-import com.google.common.collect.Maps;
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.keyvalue.api.BatchColumnRangeSelection;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.Transaction;
-import com.palantir.atlasdb.workload.transaction.ImmutableRowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.RowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.atlasdb.workload.util.RangeIterators;
+import com.palantir.atlasdb.workload.util.RowColumnRangeReadIterationContext;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
@@ -101,44 +101,41 @@ public void delete(String table, WorkloadCell workloadCell) {
     }
 
     @Override
-    public Map<Integer, RowColumnRangeIterator> getRowsColumnRange(
+    public Map<Integer, Iterator<Entry<WorkloadCell, Integer>>> getRowsColumnRange(
             String table, List<Integer> rows, WorkloadColumnRangeSelection workloadColumnRangeSelection) {
         Map<byte[], Iterator<Entry<Cell, byte[]>>> rawAtlasDbResults = run(
                 tableReference -> transaction.getRowsColumnRangeIterator(
                         tableReference,
                         rows.stream().map(Ints::toByteArray).collect(Collectors.toList()),
                         BatchColumnRangeSelection.create(
                                 AtlasDbUtils.toAtlasDbColumnRangeSelection(workloadColumnRangeSelection),
-                                100)), // TODO (jkong): Should this be configurable?
+                                100)), // TODO (jkong): Eventually this should be configurable
                 table);
 
-        RowsColumnRangeReadTransactionAction transactionAction = ImmutableRowsColumnRangeReadTransactionAction.builder()
+        RowsColumnRangeReadTransactionAction transactionAction = RowsColumnRangeReadTransactionAction.builder()
                 .table(table)
                 .rows(rows)
                 .batchColumnRangeSelection(workloadColumnRangeSelection)
                 .build();
+
+        Map<Integer, RowColumnRangeReadIterationContext> iterationContexts = EntryStream.of(rawAtlasDbResults)
+                .mapKeys(AtlasDbUtils::toWorkloadValue)
+                .<RowColumnRangeReadIterationContext>mapToValue(
+                        (row, unused) -> RowColumnRangeReadIterationContext.builder()
+                                .table(table)
+                                .specificRow(row)
+                                .build())
+                .toMap();
+        iterationContexts
+                .values()
+                .forEach(context -> witnessedTransactionActions.add(
+                        transactionAction.creationWitness(context.iteratorIdentifier(), context.specificRow())));
+
         return EntryStream.of(rawAtlasDbResults)
-                .mapKeys(Ints::fromByteArray)
-                .<RowColumnRangeIterator>mapToValue((row, iterator) -> new RowColumnRangeIterator() {
-                    @Override
-                    public boolean hasNext() {
-                        boolean hasNext = iterator.hasNext();
-                        if (!hasNext) {
-                            witnessedTransactionActions.add(transactionAction.exhaustionWitness(row));
-                        }
-                        return hasNext;
-                    }
-
-                    @Override
-                    public Entry<WorkloadCell, Integer> next() {
-                        Entry<Cell, byte[]> atlasDbEntry = iterator.next();
-
-                        WorkloadCell workloadCell = AtlasDbUtils.toWorkloadCell(atlasDbEntry.getKey());
-                        int value = Ints.fromByteArray(atlasDbEntry.getValue()); // TODO (jkong): oof
-                        witnessedTransactionActions.add(transactionAction.readWitness(row, workloadCell, value));
-                        return Maps.immutableEntry(workloadCell, value);
-                    }
-                })
+                .mapKeys(AtlasDbUtils::toWorkloadValue)
+                .<Iterator<Entry<WorkloadCell, Integer>>>mapToValue(
+                        (row, iterator) -> RangeIterators.rowColumnRangeIterator(
+                                iterationContexts.get(row), iterator, witnessedTransactionActions::add))
                 .toMap();
     }
 u}(ja  (fc482b4bc3eed2441a88b70e42f7b7ce2c216116jɹ  patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj˹  modifiedjù  KjĹ  Kj͹  Kjι  https://github.com/palantir/atlasdb/blob/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javajй  https://github.com/palantir/atlasdb/raw/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javajҹ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cjԹ  XN  @@ -20,10 +20,10 @@
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeExhaustionTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeIteratorCreationTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeReadTransactionAction;
 import io.vavr.collection.HashMap;
 import io.vavr.collection.Map;
 import java.util.Optional;
@@ -58,12 +58,12 @@ public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
     }
 
     @Override
-    public Void visit(WitnessedRowsColumnRangeReadTransactionAction _rowsColumnRangeReadTransactionAction) {
+    public Void visit(WitnessedRowsColumnRangeReadTransactionAction unused) {
         return null;
     }
 
     @Override
-    public Void visit(WitnessedRowsColumnRangeExhaustionTransactionAction _rowsColumnRangeExhaustionTransactionAction) {
+    public Void visit(WitnessedRowsColumnRangeIteratorCreationTransactionAction unused) {
         return null;
     }
 u}(ja  (4153033ddb82914b5ebe70f81257a462be588094jɹ  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javaj˹  modifiedjù  KjĹ  Kj͹  K
jι  https://github.com/palantir/atlasdb/blob/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javajй  https://github.com/palantir/atlasdb/raw/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javajҹ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cjԹ  X  @@ -18,10 +18,10 @@
 
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeExhaustionTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeIteratorCreationTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeReadTransactionAction;
 
 public enum WitnessToActionVisitor implements WitnessedTransactionActionVisitor<TransactionAction> {
     INSTANCE;
@@ -44,12 +44,15 @@ public DeleteTransactionAction visit(WitnessedDeleteTransactionAction deleteTran
 
     @Override
     public TransactionAction visit(WitnessedRowsColumnRangeReadTransactionAction rowsColumnRangeReadTransactionAction) {
-        return rowsColumnRangeReadTransactionAction.originalAction();
+        throw new UnsupportedOperationException(
+                "Read transaction actions themselves cannot be directly converted to actions. Please consult with the"
+                        + " iterator creation action to determine what the original action was.");
     }
 
     @Override
     public TransactionAction visit(
-            WitnessedRowsColumnRangeExhaustionTransactionAction rowsColumnRangeExhaustionTransactionAction) {
-        return rowsColumnRangeExhaustionTransactionAction.originalAction();
+            WitnessedRowsColumnRangeIteratorCreationTransactionAction
+                    rowsColumnRangeIteratorCreationTransactionAction) {
+        return rowsColumnRangeIteratorCreationTransactionAction.originalAction();
     }
 }u}(ja  (dfbbfb1de34f2297ae9446d81171b0e768e7c158jɹ  Zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/AtlasDbUtils.javaj˹  modifiedjù  KjĹ  K j͹  Kjι  https://github.com/palantir/atlasdb/blob/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javajй  https://github.com/palantir/atlasdb/raw/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javajҹ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.java?ref=df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cjԹ  X~  @@ -113,4 +113,8 @@ public static ColumnRangeSelection toAtlasDbColumnRangeSelection(
     public static WorkloadCell toWorkloadCell(Cell key) {
         return ImmutableWorkloadCell.of(Ints.fromByteArray(key.getRowName()), Ints.fromByteArray(key.getColumnName()));
     }
+
+    public static int toWorkloadValue(byte[] value) {
+        return Ints.fromByteArray(value);
+    }
 }u}(ja  (6e0c675c6e4c5ef41a54e079b4fa193a34644440jɹ  catlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/RangeIterationContext.javaj˹  addedjù  KjĹ  K j͹  Kjι  https://github.com/palantir/atlasdb/blob/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FRangeIterationContext.javajй  https://github.com/palantir/atlasdb/raw/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FRangeIterationContext.javajҹ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FRangeIterationContext.java?ref=df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cjԹ  XI  @@ -0,0 +1,25 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.util;
+
+import java.util.UUID;
+
+public interface RangeIterationContext {
+    UUID iteratorIdentifier();
+
+    String table();
+}u}(ja  (1c61d5d966e0ecccddc79926d5859ec453a11a25jɹ  \atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/RangeIterators.javaj˹  addedjù  KIjĹ  K j͹  KIjι  https://github.com/palantir/atlasdb/blob/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FRangeIterators.javajй  https://github.com/palantir/atlasdb/raw/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FRangeIterators.javajҹ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FRangeIterators.java?ref=df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cjԹ  X  @@ -0,0 +1,73 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.util;
+
+import com.google.common.collect.Iterators;
+import com.google.common.collect.Maps;
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeReadTransactionAction;
+import java.util.Iterator;
+import java.util.Map.Entry;
+import java.util.function.Consumer;
+
+public final class RangeIterators {
+    private RangeIterators() {
+        // Utility class
+    }
+
+    public static WitnessingIterator<Entry<WorkloadCell, Integer>> rowColumnRangeIterator(
+            RowColumnRangeReadIterationContext context,
+            Iterator<Entry<Cell, byte[]>> rawIterator,
+            Consumer<WitnessedTransactionAction> eventSink) {
+        Iterator<Entry<WorkloadCell, Integer>> rawWorkloadValueIterator =
+                Iterators.transform(rawIterator, RangeIterators::toWorkloadCellAndValue);
+        return new WitnessingIterator<>(
+                context.iteratorIdentifier(),
+                rawWorkloadValueIterator,
+                (uuid, entry) -> RangeIterators.addReadWitness(context, entry, eventSink),
+                uuid -> RangeIterators.addExhaustionWitness(context, eventSink));
+    }
+
+    private static void addReadWitness(
+            RowColumnRangeReadIterationContext context,
+            Entry<WorkloadCell, Integer> next,
+            Consumer<WitnessedTransactionAction> eventSink) {
+        eventSink.accept(WitnessedRowsColumnRangeReadTransactionAction.builder()
+                .iteratorIdentifier(context.iteratorIdentifier())
+                .specificRow(context.specificRow())
+                .table(context.table())
+                .cell(next.getKey())
+                .value(next.getValue())
+                .build());
+    }
+
+    private static void addExhaustionWitness(
+            RowColumnRangeReadIterationContext context, Consumer<WitnessedTransactionAction> eventSink) {
+        eventSink.accept(WitnessedRowsColumnRangeReadTransactionAction.builder()
+                .iteratorIdentifier(context.iteratorIdentifier())
+                .specificRow(context.specificRow())
+                .table(context.table())
+                .build());
+    }
+
+    private static Entry<WorkloadCell, Integer> toWorkloadCellAndValue(Entry<Cell, byte[]> rawEntry) {
+        return Maps.immutableEntry(
+                AtlasDbUtils.toWorkloadCell(rawEntry.getKey()), AtlasDbUtils.toWorkloadValue(rawEntry.getValue()));
+    }
+}u}(ja  (136a8ada3336a9bb3d9fb7353dce59e3c1e07fa7jɹ  patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/RowColumnRangeReadIterationContext.javaj˹  addedjù  KjĹ  K j͹  Kjι  https://github.com/palantir/atlasdb/blob/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FRowColumnRangeReadIterationContext.javajй  https://github.com/palantir/atlasdb/raw/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FRowColumnRangeReadIterationContext.javajҹ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FRowColumnRangeReadIterationContext.java?ref=df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cjԹ  X>  @@ -0,0 +1,28 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.util;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface RowColumnRangeReadIterationContext extends RangeIterationContext {
+    int specificRow();
+
+    static ImmutableRowColumnRangeReadIterationContext.Builder builder() {
+        return ImmutableRowColumnRangeReadIterationContext.builder().iteratorIdentifier(UuidGenerator.randomUUID());
+    }
+}u}(ja  (afcd8ae07a675cdad60f1391083cb72b9d63ff9ajɹ  [atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/UuidGenerator.javaj˹  addedjù  K+jĹ  K j͹  K+jι  https://github.com/palantir/atlasdb/blob/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FUuidGenerator.javajй  https://github.com/palantir/atlasdb/raw/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FUuidGenerator.javajҹ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FUuidGenerator.java?ref=df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cjԹ  Xf  @@ -0,0 +1,43 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.util;
+
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import java.security.SecureRandom;
+import java.util.UUID;
+
+/**
+ * This class is used to generate UUIDs for the workload server. We do not want to use {@link UUID#randomUUID()}
+ * because that is implemented with an internal instance of {@link SecureRandom} that is not guaranteed to natively
+ * draw numbers from the external environment on each invocation.
+ * <p>
+ * {@link UUID#randomUUID()} also has some precautions to ensure that the generated UUID is a type 4 UUID. However,
+ * as we do not expect to propagate these identifiers outside the context of the workload server and only intend to use
+ * them for comparison (as opposed to methods like {@link UUID#timestamp()}, it suffices to simply generate bytes and
+ * use them.
+ */
+public final class UuidGenerator {
+    private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+
+    private UuidGenerator() {
+        // Utility class
+    }
+
+    public static UUID randomUUID() {
+        return new UUID(SECURE_RANDOM.nextLong(), SECURE_RANDOM.nextLong());
+    }
+}u}(ja  (c1416aaf99ccdbbf7f0193550fd0913caddd95e7jɹ  `atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/WitnessingIterator.javaj˹  addedjù  K8jĹ  K j͹  K8jι  https://github.com/palantir/atlasdb/blob/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FWitnessingIterator.javajй  https://github.com/palantir/atlasdb/raw/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FWitnessingIterator.javajҹ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FWitnessingIterator.java?ref=df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cjԹ  X  @@ -0,0 +1,56 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.util;
+
+import java.util.Iterator;
+import java.util.UUID;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+
+public final class WitnessingIterator<T> implements Iterator<T> {
+    private final UUID iteratorIdentifier;
+    private final Iterator<T> delegate;
+    private final BiConsumer<UUID, T> readWitnessCallback;
+    private final Consumer<UUID> exhaustionWitnessCallback;
+
+    public WitnessingIterator(
+            UUID iteratorIdentifier,
+            Iterator<T> delegate,
+            BiConsumer<UUID, T> readWitnessCallback,
+            Consumer<UUID> exhaustionWitnessCallback) {
+        this.iteratorIdentifier = iteratorIdentifier;
+        this.delegate = delegate;
+        this.readWitnessCallback = readWitnessCallback;
+        this.exhaustionWitnessCallback = exhaustionWitnessCallback;
+    }
+
+    @Override
+    public boolean hasNext() {
+        if (delegate.hasNext()) {
+            return true;
+        }
+        exhaustionWitnessCallback.accept(iteratorIdentifier);
+        return false;
+    }
+
+    @Override
+    public T next() {
+        T next = delegate.next();
+        readWitnessCallback.accept(iteratorIdentifier, next);
+        return next;
+    }
+}u}(ja  (992c4bcdf18eb88c43649d939e9a95aec81ae7c8jɹ  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj˹  modifiedjù  KdjĹ  K4j͹  Kjι  https://github.com/palantir/atlasdb/blob/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajй  https://github.com/palantir/atlasdb/raw/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajҹ  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cjԹ  X +  @@ -20,6 +20,7 @@
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLES_TO_ATLAS_METADATA;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
 import static org.assertj.core.api.Assertions.assertThat;
@@ -28,15 +29,15 @@
 import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
-import com.palantir.atlasdb.workload.transaction.ImmutableRowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeExhaustionTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeIteratorCreationTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeReadTransactionAction;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
@@ -69,55 +70,102 @@ public void witnessRecordsAllSingleCellActions() {
     }
 
     @Test
-    public void witnessRecordsRowColumnRangeReads() {
-        Integer keyOne = WORKLOAD_CELL_ONE.key();
-        Integer keyTwo = WORKLOAD_CELL_TWO.key();
-        assertThat(readWrite(transaction -> {
-                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-                    Map<Integer, RowColumnRangeIterator> iteratorMap = transaction.getRowsColumnRange(
-                            TABLE_1,
-                            ImmutableList.of(keyOne, keyTwo),
-                            ImmutableWorkloadColumnRangeSelection.builder().build());
-
-                    RowColumnRangeIterator expectedEmpty = iteratorMap.get(keyOne);
-                    assertThat(expectedEmpty.hasNext()).isFalse();
-
-                    RowColumnRangeIterator expectedPresent = iteratorMap.get(keyTwo);
-                    while (expectedPresent.hasNext()) {
-                        expectedPresent.next();
-                    }
-                }))
-                .containsExactly(
-                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
-                        WitnessedRowsColumnRangeExhaustionTransactionAction.builder()
-                                .originalAction(ImmutableRowsColumnRangeReadTransactionAction.builder()
-                                        .table(TABLE_1)
-                                        .rows(ImmutableList.of(keyOne, keyTwo))
-                                        .batchColumnRangeSelection(ImmutableWorkloadColumnRangeSelection.builder()
-                                                .build())
-                                        .build())
-                                .specificRow(keyOne)
-                                .build(),
-                        WitnessedRowsColumnRangeReadTransactionAction.builder()
-                                .originalAction(ImmutableRowsColumnRangeReadTransactionAction.builder()
-                                        .table(TABLE_1)
-                                        .rows(ImmutableList.of(keyOne, keyTwo))
-                                        .batchColumnRangeSelection(ImmutableWorkloadColumnRangeSelection.builder()
-                                                .build())
-                                        .build())
-                                .cell(WORKLOAD_CELL_TWO)
-                                .specificRow(keyTwo)
-                                .value(VALUE_ONE)
-                                .build(),
-                        WitnessedRowsColumnRangeExhaustionTransactionAction.builder()
-                                .originalAction(ImmutableRowsColumnRangeReadTransactionAction.builder()
-                                        .table(TABLE_1)
-                                        .rows(ImmutableList.of(keyOne, keyTwo))
-                                        .batchColumnRangeSelection(ImmutableWorkloadColumnRangeSelection.builder()
-                                                .build())
-                                        .build())
-                                .specificRow(keyTwo)
-                                .build());
+    public void witnessRecordsEmptyRowColumnRangeRead() {
+        List<WitnessedTransactionAction> witnessedActions = readWrite(transaction -> {
+            Map<Integer, Iterator<Map.Entry<WorkloadCell, Integer>>> iteratorMap = transaction.getRowsColumnRange(
+                    TABLE_1,
+                    ImmutableList.of(WORKLOAD_CELL_ONE.key()),
+                    ImmutableWorkloadColumnRangeSelection.builder().build());
+
+            Iterator<Map.Entry<WorkloadCell, Integer>> iterator = iteratorMap.get(WORKLOAD_CELL_ONE.key());
+            assertThat(iterator.hasNext()).isFalse();
+        });
+
+        assertThat(witnessedActions).hasSize(2);
+
+        WitnessedTransactionAction keyOneIteratorCreation = witnessedActions.get(0);
+        assertThat(keyOneIteratorCreation)
+                .as("the first action created an iterator")
+                .isInstanceOf(WitnessedRowsColumnRangeIteratorCreationTransactionAction.class);
+        WitnessedRowsColumnRangeIteratorCreationTransactionAction keyOneIteratorCreationAction =
+                (WitnessedRowsColumnRangeIteratorCreationTransactionAction) keyOneIteratorCreation;
+        assertThat(keyOneIteratorCreationAction.specificRow()).isEqualTo(WORKLOAD_CELL_ONE.key());
+
+        assertThat(witnessedActions.get(1))
+                .as("the second action exhausted the iterator for the first key")
+                .isInstanceOfSatisfying(WitnessedRowsColumnRangeReadTransactionAction.class, action -> {
+                    assertThat(action.iteratorIdentifier())
+                            .isEqualTo(keyOneIteratorCreationAction.iteratorIdentifier());
+                    assertThat(action.cell()).isEmpty();
+                    assertThat(action.value()).isEmpty();
+                });
+    }
+
+    @Test
+    public void witnessRecordsPresentRowColumnRangeReads() {
+        int keyOne = WORKLOAD_CELL_ONE.key();
+        readWrite(transaction -> {
+            transaction.write(TABLE_1, ImmutableWorkloadCell.of(keyOne, 13), VALUE_ONE);
+            transaction.write(TABLE_1, ImmutableWorkloadCell.of(keyOne, 21), VALUE_TWO);
+        });
+
+        List<WitnessedTransactionAction> witnessedTransactionActions = readWrite(transaction -> {
+            transaction.write(TABLE_1, ImmutableWorkloadCell.of(keyOne, 17), VALUE_ONE + VALUE_TWO);
+
+            Map<Integer, Iterator<Map.Entry<WorkloadCell, Integer>>> iteratorMap = transaction.getRowsColumnRange(
+                    TABLE_1,
+                    ImmutableList.of(keyOne),
+                    ImmutableWorkloadColumnRangeSelection.builder().build());
+
+            Iterator<Map.Entry<WorkloadCell, Integer>> iterator = iteratorMap.get(keyOne);
+            while (iterator.hasNext()) {
+                iterator.next();
+            }
+        });
+
+        assertThat(witnessedTransactionActions).hasSize(6);
+
+        WitnessedTransactionAction keyOneIteratorCreation = witnessedTransactionActions.get(1);
+        assertThat(keyOneIteratorCreation)
+                .as("the second action created an iterator")
+                .isInstanceOf(WitnessedRowsColumnRangeIteratorCreationTransactionAction.class);
+        WitnessedRowsColumnRangeIteratorCreationTransactionAction keyOneIteratorCreationAction =
+                (WitnessedRowsColumnRangeIteratorCreationTransactionAction) keyOneIteratorCreation;
+        assertThat(keyOneIteratorCreationAction.specificRow()).isEqualTo(keyOne);
+
+        assertThat(witnessedTransactionActions.get(2))
+                .as("the third action read the first cell for the row")
+                .isInstanceOfSatisfying(WitnessedRowsColumnRangeReadTransactionAction.class, action -> {
+                    assertThat(action.iteratorIdentifier())
+                            .isEqualTo(keyOneIteratorCreationAction.iteratorIdentifier());
+                    assertThat(action.cell()).contains(ImmutableWorkloadCell.of(keyOne, 13));
+                    assertThat(action.value()).contains(VALUE_ONE);
+                });
+        assertThat(witnessedTransactionActions.get(3))
+                .as("the fourth action read the second cell for the row, which was a local write")
+                .isInstanceOfSatisfying(WitnessedRowsColumnRangeReadTransactionAction.class, action -> {
+                    assertThat(action.iteratorIdentifier())
+                            .isEqualTo(keyOneIteratorCreationAction.iteratorIdentifier());
+                    assertThat(action.cell()).contains(ImmutableWorkloadCell.of(keyOne, 17));
+                    assertThat(action.value()).contains(VALUE_ONE + VALUE_TWO);
+                });
+        assertThat(witnessedTransactionActions.get(4))
+                .as("the fifth action read the third cell for the row")
+                .isInstanceOfSatisfying(WitnessedRowsColumnRangeReadTransactionAction.class, action -> {
+                    assertThat(action.iteratorIdentifier())
+                            .isEqualTo(keyOneIteratorCreationAction.iteratorIdentifier());
+                    assertThat(action.cell()).contains(ImmutableWorkloadCell.of(keyOne, 21));
+                    assertThat(action.value()).contains(VALUE_TWO);
+                });
+
+        assertThat(witnessedTransactionActions.get(5))
+                .as("the sixth action exhausted the iterator")
+                .isInstanceOfSatisfying(WitnessedRowsColumnRangeReadTransactionAction.class, action -> {
+                    assertThat(action.iteratorIdentifier())
+                            .isEqualTo(keyOneIteratorCreationAction.iteratorIdentifier());
+                    assertThat(action.cell()).isEmpty();
+                    assertThat(action.value()).isEmpty();
+                });
     }
 
     @Testueu(3cf512d6c0c085b8e4f029027bdbf076dc4f6320}(sha(3cf512d6c0c085b8e4f029027bdbf076dc4f6320node_idEC_kwDOAjP5fdoAKDNjZjUxMmQ2YzBjMDg1YjhlNGYwMjkwMjdiZGJmMDc2ZGM0ZjYzMjAcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-31T20:14:31Zu	committer}(jk  Jeremy Kongjm  jkong@palantir.comjo  2023-05-31T20:14:31Zumessagecleanuptree}(jc  (1b6d3e5e8a210c487bb4e6fefe2ee3e09d355f5burl`https://api.github.com/repos/palantir/atlasdb/git/trees/1b6d3e5e8a210c487bb4e6fefe2ee3e09d355f5buj{  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3cf512d6c0c085b8e4f029027bdbf076dc4f6320
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR3qqcACgkQTLdFKain
zjxIuQf9HafIu3H4HJuIdw6kBKKDdHoIpxUekJiiMmKueb8l7pO7idWuyhBYiYst
HHyTyB+02aStJ6suEMqFuDoThs3wKE02mILIylaVMAZGT7lfyiI5HCQ594RRGe8y
k/WG/maAgYSbMWNiAup3CIwJRwPfje1uZLAYD+XXtXhlTFW0eCrZyb8+eBrkOGxS
7dz1eAuQgDoknWLj6SBoNFBdjPtNKW44zuQp+BZ06GNn2oCc6YGIHpueKELkLBHp
Psv6B64OQUh4ab6aFzgmS3Awlx82jaSMHSrMllXOKU5pG0GxW20ck2cbN/nHLn9u
WChcwrw9A0oX7afZAJng9NfnDFsunQ==
=7tVg
-----END PGP SIGNATURE-----payloadtree 1b6d3e5e8a210c487bb4e6fefe2ee3e09d355f5b
parent 2852a25d67bcdcaaf6aed336b5fb3fa23746b0c1
author Jeremy Kong <jkong@palantir.com> 1685564071 +0100
committer Jeremy Kong <jkong@palantir.com> 1685564071 +0100

cleanup
uuj{  ^https://api.github.com/repos/palantir/atlasdb/commits/3cf512d6c0c085b8e4f029027bdbf076dc4f6320html_urlShttps://github.com/palantir/atlasdb/commit/3cf512d6c0c085b8e4f029027bdbf076dc4f6320comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3cf512d6c0c085b8e4f029027bdbf076dc4f6320/commentsji  }(login
jeremyk-91idJZ je  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j{  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujq  }(j  
jeremyk-91j  JZ je  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5j{  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents]}(jc  (2852a25d67bcdcaaf6aed336b5fb3fa23746b0c1j{  ^https://api.github.com/repos/palantir/atlasdb/commits/2852a25d67bcdcaaf6aed336b5fb3fa23746b0c1j  Shttps://github.com/palantir/atlasdb/commit/2852a25d67bcdcaaf6aed336b5fb3fa23746b0c1uastats}(totalK^	additionsK^	deletionsK ufiles]}(jc  (69d6cbf1da05880d2e9d8228f9cd3d54fe13fa7afilenamelatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javastatusmodifiedjź  K^jƺ  K changesK^blob_urlhttps://github.com/palantir/atlasdb/blob/3cf512d6c0c085b8e4f029027bdbf076dc4f6320/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/3cf512d6c0c085b8e4f029027bdbf076dc4f6320/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=3cf512d6c0c085b8e4f029027bdbf076dc4f6320patchX  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.google.common.collect.ImmutableList;
@@ -192,6 +193,99 @@ public void invariantReportsViolationsFromTransactionHistory() {
                 .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
     }
 
+    @Test
+    public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
+        WitnessedReadTransactionAction readWitness = WitnessedReadTransactionAction.of(
+                TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of the summary row")
+                .hasExactlyArgs(SafeArg.of("actions", ImmutableList.of(readWitness)));
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCorrespondingPrimaryRow() {
+        List<WitnessedTransactionAction> actions = ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of a corresponding normal row")
+                .hasExactlyArgs(SafeArg.of("actions", actions));
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothEmpty() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions = getReadWitnessesForSingleTransaction(
+                2, Optional.of(TransientRowsWorkflows.VALUE), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsPresentAndPrimaryIsAbsent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.of(TransientRowsWorkflows.VALUE), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsAbsentAndPrimaryIsPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    private ImmutableWorkflowHistory getWorkflowHistory(List<WitnessedTransactionAction> actions) {
+        return ImmutableWorkflowHistory.builder()
+                .transactionStore(transactionStore)
+                .history(ImmutableList.of(ImmutableFullyWitnessedTransaction.builder()
+                        .addAllActions(actions)
+                        .startTimestamp(0L)
+                        .commitTimestamp(1L)
+                        .build()))
+                .build();
+    }
+
+    private static List<WitnessedTransactionAction> getReadWitnessesForSingleTransaction(
+            int columnIndex, Optional<Integer> summaryValue, Optional<Integer> primaryValue) {
+        return ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, columnIndex),
+                        summaryValue),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(columnIndex, TransientRowsWorkflows.COLUMN),
+                        primaryValue));
+    }
+
     private static void inconsistencyInvolvesPairOfPrimaryAndSummaryCells(CrossCellInconsistency inconsistency) {
         Map<TableAndWorkloadCell, Optional<Integer>> readValues = inconsistency.inconsistentValues();
         TableAndWorkloadCell summaryCell = readValues.keySet().stream()uau(e350ee1f07d1e420581afcb4151521b7b051acd1}(sha(e350ee1f07d1e420581afcb4151521b7b051acd1node_idEC_kwDOAjP5fdoAKGUzNTBlZTFmMDdkMWU0MjA1ODFhZmNiNDE1MTUyMWI3YjA1MWFjZDEcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-07-26T18:55:59Zu	committer}(j  GitHubj  noreply@github.comj  2023-07-26T18:55:59Zumessage@Excavator:  Upgrade Jackson to the latest stable release (#6636)tree}(jں  (ffeabeb953fd00aa3cbfe7e4c7558df104526a1aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/ffeabeb953fd00aa3cbfe7e4c7558df104526a1auj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e350ee1f07d1e420581afcb4151521b7b051acd1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkwWw/CRBK7hj4Ov3rIwAAXB4IAKilaS/x3Wk8nggvk7MQ6CKL
HqVJIYVFsz4DXe/as13VGyofOGiC2L2f2c53GtN616SaApfVyKXI/+8gS+o+CKWV
eVYwf7ehGPIH0azwSbSdZEHzJZXlONYdPvSewe6AuwiHFkrzQRBox3LC5RWjCM4p
tcwIThFxnttO3xYU+GTTm6OHKUv3HZnMONfw+zZFXBeb6+/41pzMUcgmCN+WVuxE
+olda2PVsmfv/Ibr04OPxrKFj/+NwYmD13Cv6uT6o1b1MB08ZomwKzlmUgU4itFw
huGRmwAWBxGS8uCVfR9CCttfX7mmb6OrQlyG4icdDSrVM3zOZnLQ/GTwCTda+hA=
=iaP0
-----END PGP SIGNATURE-----
payloadX5  tree ffeabeb953fd00aa3cbfe7e4c7558df104526a1a
parent 16f56f1aea2b94ff4880c17e8a5d152b085dff40
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1690397759 -0700
committer GitHub <noreply@github.com> 1690397759 +0000

Excavator:  Upgrade Jackson to the latest stable release (#6636)

 uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/e350ee1f07d1e420581afcb4151521b7b051acd1html_urlShttps://github.com/palantir/atlasdb/commit/e350ee1f07d1e420581afcb4151521b7b051acd1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e350ee1f07d1e420581afcb4151521b7b051acd1/commentsj  }(loginsvc-excavator-botidJjܺ  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j  .https://api.github.com/users/svc-excavator-botj   $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/jܺ  MDQ6VXNlcjE5ODY0NDQ3j	  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5j  .     %https://api.github.com/users/web-flowj   https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj   Userj"  uparents]}(jں  (16f56f1aea2b94ff4880c17e8a5d152b085dff40j  ^https://api.github.com/repos/palantir/atlasdb/commits/16f56f1aea2b94ff4880c17e8a5d152b085dff40j   Shttps://github.com/palantir/atlasdb/commit/16f56f1aea2b94ff4880c17e8a5d152b085dff40uastats}(totalK	additionsK		deletionsK	ufiles](}(jں  (d58d4bbb90e7f75c0bdf01db7f9b5fc1aa6c5df7filename
versions.lockstatusmodifiedj<  Kj=  KchangesKblob_url_https://github.com/palantir/atlasdb/blob/e350ee1f07d1e420581afcb4151521b7b051acd1/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/e350ee1f07d1e420581afcb4151521b7b051acd1/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=e350ee1f07d1e420581afcb4151521b7b051acd1patchX  @@ -8,16 +8,16 @@ com.boundary:high-scale-lib:1.0.6 (2 constraints: 9d14d4a0)
 com.clearspring.analytics:stream:2.5.2 (1 constraints: 970f7788)
 com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
-com.fasterxml.jackson.core:jackson-annotations:2.15.2 (24 constraints: c88127cc)
-com.fasterxml.jackson.core:jackson-core:2.15.2 (22 constraints: c8b5699a)
-com.fasterxml.jackson.core:jackson-databind:2.15.2 (37 constraints: 16baa088)
+com.fasterxml.jackson.core:jackson-annotations:2.15.2 (24 constraints: c98164d0)
+com.fasterxml.jackson.core:jackson-core:2.15.2 (22 constraints: c9b52a9f)
+com.fasterxml.jackson.core:jackson-databind:2.15.2 (37 constraints: 17ba4690)
 com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.15.2 (2 constraints: e3333101)
 com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.15.2 (1 constraints: 7f1c9ea4)
-com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.15.2 (4 constraints: 2244332b)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.15.2 (4 constraints: 343f76b0)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.2 (3 constraints: 6c30915e)
+com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.15.2 (4 constraints: 2344e62b)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.15.2 (4 constraints: 353f1bb1)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.2 (3 constraints: 6d300c5f)
 com.fasterxml.jackson.datatype:jackson-datatype-joda:2.15.2 (2 constraints: 322bf7af)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.2 (3 constraints: 6c30915e)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.2 (3 constraints: 6d300c5f)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.15.2 (2 constraints: dd2ecb69)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.15.2 (1 constraints: 41197bbb)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.15.2 (2 constraints: 251d9309)u}(jں  (145b6814fc1b3cdcdb351db75a70037194fc4cd8jB  versions.propsjD  modifiedj<  Kj=  KjF  KjG  `https://github.com/palantir/atlasdb/blob/e350ee1f07d1e420581afcb4151521b7b051acd1/versions.propsjI  _https://github.com/palantir/atlasdb/raw/e350ee1f07d1e420581afcb4151521b7b051acd1/versions.propsjK  rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=e350ee1f07d1e420581afcb4151521b7b051acd1jM  X  @@ -1,7 +1,7 @@
 com.boundary:high-scale-lib = 1.0.6
 com.ea.agentloader:ea-agent-loader = 1.0.3
-com.fasterxml.jackson.*:* = 2.14.2
-com.fasterxml.jackson.core:jackson-databind = 2.14.2
+com.fasterxml.jackson.*:* = 2.15.2
+com.fasterxml.jackson.core:jackson-databind = 2.15.2
 com.github.ben-manes.caffeine:caffeine = 3.1.5
 com.github.peterwippermann.junit4:parameterized-suite = 1.1.0
 com.github.rholder:guava-retrying = 2.0.0ueu(fdeebf694696a3c9a4c2641ff09d53512ba43195}(sha(fdeebf694696a3c9a4c2641ff09d53512ba43195node_idEC_kwDOAjP5fdoAKGZkZWViZjY5NDY5NmEzYzlhNGMyNjQxZmYwOWQ1MzUxMmJhNDMxOTUcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-16T08:22:41Zu	committer}(ja  svc-autoreleasejc  -pd-foundry-infrastructure-notify@palantir.comje  2023-05-16T08:22:41Zumessage#Autorelease 0.854.0-rc21

[skip ci]tree}(jY  (7503efe2cf8d4848e343c0a5c51421000dfa7fe9url`https://api.github.com/repos/palantir/atlasdb/git/trees/7503efe2cf8d4848e343c0a5c51421000dfa7fe9ujq  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fdeebf694696a3c9a4c2641ff09d53512ba43195
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRjPVIACgkQhbrR8ip7mDAusAD+JjUE6sAIHtC9lYv6GVjhTQbB
noapF+FAHId2kNtYWfMBAJSwlv+ZEM0OCHlTRgbGSc3BgM7ZZWFFAKheCyDHpv7i
=eQ5X
-----END PGP SIGNATURE-----
payloadX)  tree 7503efe2cf8d4848e343c0a5c51421000dfa7fe9
parent 3b21ac5f4069a8beaaf1942bf2ca3523f602a825
author aalouane <30903736+ergo14@users.noreply.github.com> 1684225361 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684225361 +0000

Autorelease 0.854.0-rc21

[skip ci]uujq  ^https://api.github.com/repos/palantir/atlasdb/commits/fdeebf694696a3c9a4c2641ff09d53512ba43195html_urlShttps://github.com/palantir/atlasdb/commit/fdeebf694696a3c9a4c2641ff09d53512ba43195comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fdeebf694696a3c9a4c2641ff09d53512ba43195/commentsj_  }(loginergo14idJj[  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jq  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujg  }(j  svc-autoreleasej  J(j[  MDQ6VXNlcjUxNzE4MzQ2j  4https://avatars.githubusercontent.com/u/51718346?v=4j  h5jq  ,https://api.github.com/users/svc-autoreleasej  "https://github.com/svc-autoreleasej  6https://api.github.com/users/svc-autorelease/followersj  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j  :https://api.github.com/users/svc-autorelease/subscriptionsj  1https://api.github.com/users/svc-autorelease/orgsj  2https://api.github.com/users/svc-autorelease/reposj  =https://api.github.com/users/svc-autorelease/events{/privacy}j  <https://api.github.com/users/svc-autorelease/received_eventsj  Userj  uparents]}(jY  (3b21ac5f4069a8beaaf1942bf2ca3523f602a825jq  ^https://api.github.com/repos/palantir/atlasdb/commits/3b21ac5f4069a8beaaf1942bf2ca3523f602a825j  Shttps://github.com/palantir/atlasdb/commit/3b21ac5f4069a8beaaf1942bf2ca3523f602a825uastats}(totalK 	additionsK 	deletionsK ufiles]u(842acaa05b5d927d2477fbddf6fa0fde2ee953b2}(sha(842acaa05b5d927d2477fbddf6fa0fde2ee953b2node_idEC_kwDOAjP5fdoAKDg0MmFjYWEwNWI1ZDkyN2QyNDc3ZmJkZGY2ZmEwZmRlMmVlOTUzYjIcommit}(author}(nameLucas Sousa Meirelesemailmeireles31@msn.comdate2023-06-29T09:59:23Zu	committer}(jɻ  GitHubj˻  noreply@github.comjͻ  2023-06-29T09:59:23Zumessageimprovement: Don't check immutable timestamp lock on non empty reads from thoroughly swept tables (#6624)

Stopped checking immutable timestamp lock on thoroughly swept tables when reading an empty value.tree}(j  (28b0b359047a861839822e620f0b10269429370curl`https://api.github.com/repos/palantir/atlasdb/git/trees/28b0b359047a861839822e620f0b10269429370cujٻ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/842acaa05b5d927d2477fbddf6fa0fde2ee953b2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJknVX7CRBK7hj4Ov3rIwAAuQwIAEnEv6xU2uIQ9O/usn7QRBgo
8Soh0oEWjYl6IDL5aFLCqyPrTcGNm3exN/Y0OiSyRV181m57TxjAaLX5upK85lHo
19PyuFOyalc1V//2TuAAwmIkgIILoS+nWHH8KgYw1/RSjH0dsZwBXmkZKABMa4fS
slV1n1eU9d7B3weucmJP3hqri6vickn4F+C/jXaLsl4pNJi2LO+394C+rV3Dua8O
PvWtYeZ4O52OLCqRm+TTIh/A/dR5kSe8+mvG+kES3CZ5Nlapb6ZWYaLJW6GTSXH9
72i7pf8iTmw608GEnbuVCttQ/2kPDhQC5Fb34kJlJ1j0qGVFJ52aOCF9UwrB7Cw=
=1IxT
-----END PGP SIGNATURE-----
payloadX  tree 28b0b359047a861839822e620f0b10269429370c
parent 749e80982ecd831eea5946cf02fd3c0ade574578
author Lucas Sousa Meireles <meireles31@msn.com> 1688032763 +0100
committer GitHub <noreply@github.com> 1688032763 +0000

improvement: Don't check immutable timestamp lock on non empty reads from thoroughly swept tables (#6624)

Stopped checking immutable timestamp lock on thoroughly swept tables when reading an empty value.
uujٻ  ^https://api.github.com/repos/palantir/atlasdb/commits/842acaa05b5d927d2477fbddf6fa0fde2ee953b2html_urlShttps://github.com/palantir/atlasdb/commit/842acaa05b5d927d2477fbddf6fa0fde2ee953b2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/commentsjǻ  }(loginLucasIMEidJg jû  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jٻ  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujϻ  }(j  web-flowj  J/jû  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5jٻ  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj	  uparents]}(j  (749e80982ecd831eea5946cf02fd3c0ade574578jٻ  ^https://api.github.com/repos/palantir/atlasdb/commits/749e80982ecd831eea5946cf02fd3c0ade574578j  Shttps://github.com/palantir/atlasdb/commit/749e80982ecd831eea5946cf02fd3c0ade574578uastats}(totalMu	additionsM'	deletionsKNufiles](}(j  (7e1fc418d0ab8950f7d0a2c8a9ed46fe72c28ab9filenamePatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/KeyValueService.javastatusmodifiedj#  Kj$  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.java?ref=842acaa05b5d927d2477fbddf6fa0fde2ee953b2patchX  @@ -711,4 +711,11 @@ default boolean shouldTriggerCompactions() {
     default boolean isValid() {
         return true;
     }
+
+    @DoDelegate
+    default boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        // This is in general True, but we're setting to false to start rollout only for C* of stopping to check for
+        // immutable timestamp lock on non empty reads on thoroughly swept tables.
+        return false;
+    }
 }u}(j  (22dc29e0664eb2fea2e0669bb248c2333fbefdd4j)  atlasdb-cassandra-integration-tests/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceIntegrationTest.javaj+  modifiedj#  Kj$  K j-  Kj.  https://github.com/palantir/atlasdb/blob/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.javaj0  https://github.com/palantir/atlasdb/raw/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.java?ref=842acaa05b5d927d2477fbddf6fa0fde2ee953b2j4  X=  @@ -709,6 +709,12 @@ public void testMultiCheckAndSetIndependentlyFails() {
         verifyMultiCheckAndSet(ImmutableMap.of(firstTestCell, val(0, 0), nextTestCell, val(0, 1)));
     }
 
+    @Test
+    public void cassandraHasStrictlyNonDecreasingSweep() {
+        assertThat(keyValueService.sweepsEntriesInStrictlyNonDecreasingFashion())
+                .isTrue();
+    }
+
     private void verifyMultiCheckAndSet(Map<Cell, byte[]> expectedValues) {
         Multimap<Cell, Long> timestamps = keyValueService.getAllTimestamps(TEST_TABLE, expectedValues.keySet(), 1L);
 u}(j  (d7d2d87671c66d0e3f85762da04755fb7955d5b1j)  iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj+  modifiedj#  Kj$  K j-  Kj.  https://github.com/palantir/atlasdb/blob/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj0  https://github.com/palantir/atlasdb/raw/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=842acaa05b5d927d2477fbddf6fa0fde2ee953b2j4  X  @@ -2033,6 +2033,11 @@ public ClusterAvailabilityStatus getClusterAvailabilityStatus() {
         return clusterStatus;
     }
 
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return true;
+    }
+
     private static boolean isClusterQuorumAvaialble(ClusterAvailabilityStatus clusterStatus) {
         return clusterStatus.equals(ClusterAvailabilityStatus.ALL_AVAILABLE)
                 || clusterStatus.equals(ClusterAvailabilityStatus.QUORUM_AVAILABLE);u}(j  (a0daffcaa0a4ea862e707fb50afd62871f197c8ej)  ]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/DualWriteKeyValueService.javaj+  modifiedj#  Kj$  K j-  Kj.  https://github.com/palantir/atlasdb/blob/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javaj0  https://github.com/palantir/atlasdb/raw/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.java?ref=842acaa05b5d927d2477fbddf6fa0fde2ee953b2j4  X  @@ -318,4 +318,9 @@ public List<byte[]> getRowKeysInRange(TableReference tableRef, byte[] startRow,
     public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<Cell, Long> timestampByCell) {
         return delegate1.getAsync(tableRef, timestampByCell);
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate1.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(j  (1ab84302f51e4bad9eef3b306d5f224b087a44d4j)  \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/InMemoryKeyValueService.javaj+  modifiedj#  Kj$  K j-  Kj.  https://github.com/palantir/atlasdb/blob/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javaj0  https://github.com/palantir/atlasdb/raw/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.java?ref=842acaa05b5d927d2477fbddf6fa0fde2ee953b2j4  X-  @@ -735,6 +735,12 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
         return Futures.immediateFuture(get(tableRef, timestampByCell));
     }
 
+    // Marking this as true as it's only used for tests, so we can better replicate Cassandra behaviour.
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return true;
+    }
+
     /**
      * This takes out a reentrant read lock. It is only exclusive specifically with
      * {@link #multiCheckAndSet(MultiCheckAndSetRequest)}.u}(j  (d41572b88d0c8b10e1042d4d64b59e123b40c6c1j)  ]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/ProfilingKeyValueService.javaj+  modifiedj#  Kj$  K j-  Kj.  https://github.com/palantir/atlasdb/blob/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javaj0  https://github.com/palantir/atlasdb/raw/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.java?ref=842acaa05b5d927d2477fbddf6fa0fde2ee953b2j4  X|  @@ -554,4 +554,9 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
                         LoggingArgs.durationMillis(stopwatch)),
                 logCellResultSize(4L));
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(j  (aee4560b5007342d777bb076c6630351e4618aa1j)  [atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/TracingKeyValueService.javaj+  modifiedj#  Kj$  K j-  Kj.  https://github.com/palantir/atlasdb/blob/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaj0  https://github.com/palantir/atlasdb/raw/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.java?ref=842acaa05b5d927d2477fbddf6fa0fde2ee953b2j4  X  @@ -531,6 +531,11 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
         });
     }
 
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate().sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
+
     @MustBeClosed
     private static CloseableTracer startLocalTrace(@CompileTimeConstant final String operation) {
         TraceStatistic original = TraceStatistics.getCurrentAndClear();u}(j  (b901787debfe08e9dc92324e1ecea39bb182ade1j)  Vatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javaj+  modifiedj#  K(j$  K
j-  K2j.  https://github.com/palantir/atlasdb/blob/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaj0  https://github.com/palantir/atlasdb/raw/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=842acaa05b5d927d2477fbddf6fa0fde2ee953b2j4  Xq  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.table.description;
 
+import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
@@ -29,27 +30,40 @@
 public final class SweepStrategy {
 
     public static final SweepStrategy CONSERVATIVE =
-            new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false);
-    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), true);
+            new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false, false);
+    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), false, true);
 
     private final Optional<SweeperStrategy> sweeperStrategy;
-    private final boolean mustCheckImmutableLockAfterReads;
+    private final boolean mustCheckImmutableLockIfAllCellsReadAndPresent;
 
-    private SweepStrategy(Optional<SweeperStrategy> sweeperStrategy, boolean mustCheckImmutableLockAfterReads) {
+    // When we either read an empty value or perform reads like a range-scan, where we can't be certain of how many
+    // values we expect.
+    private final boolean mustCheckImmutableLockIfNonExhaustiveRead;
+
+    private SweepStrategy(
+            Optional<SweeperStrategy> sweeperStrategy,
+            boolean mustCheckImmutableLockIfAllCellsReadAndPresent,
+            boolean mustCheckImmutableLockIfNonExhaustiveRead) {
         this.sweeperStrategy = sweeperStrategy;
-        this.mustCheckImmutableLockAfterReads = mustCheckImmutableLockAfterReads;
+        this.mustCheckImmutableLockIfAllCellsReadAndPresent = mustCheckImmutableLockIfAllCellsReadAndPresent;
+        this.mustCheckImmutableLockIfNonExhaustiveRead = mustCheckImmutableLockIfNonExhaustiveRead;
     }
 
     public Optional<SweeperStrategy> getSweeperStrategy() {
         return sweeperStrategy;
     }
 
-    public boolean mustCheckImmutableLockAfterReads() {
-        return mustCheckImmutableLockAfterReads;
+    public boolean mustCheckImmutableLock(boolean allPossibleCellsReandAndPresent) {
+        return allPossibleCellsReandAndPresent
+                ? mustCheckImmutableLockIfAllCellsReadAndPresent
+                : mustCheckImmutableLockIfNonExhaustiveRead;
     }
 
-    public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy) {
-        return new SweepStrategy(sweeperBehaviour(strategy), mustCheckImmutableLockAfterReads(strategy));
+    public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
+        return new SweepStrategy(
+                sweeperBehaviour(strategy),
+                mustCheckImmutableLockIfAllCellsReadAndPresent(strategy, kvs),
+                mustCheckImmutableLockIfNonExhaustiveRead(strategy));
     }
 
     private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersistence.SweepStrategy strategy) {
@@ -65,7 +79,23 @@ private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersisten
         throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
     }
 
-    private static boolean mustCheckImmutableLockAfterReads(TableMetadataPersistence.SweepStrategy strategy) {
+    private static boolean mustCheckImmutableLockIfAllCellsReadAndPresent(
+            TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
+        if (!kvs.sweepsEntriesInStrictlyNonDecreasingFashion()) {
+            return mustCheckImmutableLockIfNonExhaustiveRead(strategy);
+        }
+
+        switch (strategy) {
+            case CONSERVATIVE:
+            case NOTHING:
+            case THOROUGH_MIGRATION:
+            case THOROUGH:
+                return false;
+        }
+        throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
+    }
+
+    private static boolean mustCheckImmutableLockIfNonExhaustiveRead(TableMetadataPersistence.SweepStrategy strategy) {
         switch (strategy) {
             case CONSERVATIVE:
             case NOTHING:u}(j  (71e95645f3ae1137fc44efc89c6e3432b42d85ffj)  Watlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ReadTransaction.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj0  https://github.com/palantir/atlasdb/raw/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.java?ref=842acaa05b5d927d2477fbddf6fa0fde2ee953b2j4  X  @@ -24,14 +24,15 @@
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.logging.LoggingArgs;
-import com.palantir.atlasdb.table.description.SweepStrategy;
+import com.palantir.atlasdb.table.description.SweeperStrategy;
 import com.palantir.atlasdb.transaction.api.GetRangesQuery;
 import com.palantir.common.base.BatchingVisitable;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
+import java.util.Optional;
 import java.util.Set;
 import java.util.function.BiFunction;
 import java.util.stream.Stream;
@@ -136,11 +137,11 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
     }
 
     private void checkTableName(TableReference tableRef) {
-        SweepStrategy sweepStrategy = sweepStrategies.get(tableRef);
+        Optional<SweeperStrategy> sweepStrategy = sweepStrategies.get(tableRef).getSweeperStrategy();
         Preconditions.checkState(
-                !sweepStrategy.mustCheckImmutableLockAfterReads(),
-                "This table cannot be read from a read-only transaction, because its "
-                        + "sweep strategy is neither NOTHING nor CONSERVATIVE",
+                sweepStrategy.isEmpty() || sweepStrategy.get().equals(SweeperStrategy.CONSERVATIVE),
+                "This table cannot be read from a read-only transaction, because its sweep strategy is neither NOTHING"
+                        + " nor CONSERVATIVE",
                 LoggingArgs.tableRef(tableRef));
     }
 u}(j  (59d37859a318b1646ca6da51436b4720150f7940j)  ]atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/SweepStrategyManagers.javaj+  modifiedj#  K	j$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.javaj0  https://github.com/palantir/atlasdb/raw/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.java?ref=842acaa05b5d927d2477fbddf6fa0fde2ee953b2j4  X;  @@ -21,7 +21,6 @@
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
-import com.palantir.atlasdb.table.description.Schema;
 import com.palantir.atlasdb.table.description.SweepStrategy;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.logsafe.Preconditions;
@@ -53,7 +52,7 @@ public static SweepStrategyManager create(KeyValueService kvs, CacheWarming cach
                     // On a cache miss, load metadata only for the relevant table. Helpful when many dynamic tables.
                     LoadingCache<TableReference, SweepStrategy> cache = Caffeine.newBuilder()
                             .expireAfterAccess(Duration.ofDays(1))
-                            .build(tableRef -> getSweepStrategy(kvs.getMetadataForTable(tableRef)));
+                            .build(tableRef -> getSweepStrategy(kvs.getMetadataForTable(tableRef), kvs));
 
                     // Possibly warm the cache.
                     cache.putAll(getSweepStrategiesForWarmingCache(kvs, cacheWarming));
@@ -74,42 +73,34 @@ public void invalidateCaches(Set<TableReference> tableRefs) {
         };
     }
 
-    public static SweepStrategyManager createFromSchema(Schema schema) {
-        return tableRef -> {
-            TableMetadata tableMeta = Preconditions.checkNotNull(
-                    schema.getAllTablesAndIndexMetadata().get(tableRef),
-                    "unknown table",
-                    SafeArg.of("tableRef", tableRef));
-            return SweepStrategy.from(tableMeta.getSweepStrategy());
-        };
-    }
-
     public static SweepStrategyManager fromMap(final Map<TableReference, SweepStrategy> map) {
         return tableRef ->
                 Preconditions.checkNotNull(map.get(tableRef), "unknown table", SafeArg.of("tableRef", tableRef));
     }
 
-    public static SweepStrategyManager completelyConservative() {
-        return tableRef -> SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE);
+    public static SweepStrategyManager completelyConservative(KeyValueService kvs) {
+        return tableRef -> SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE, kvs);
     }
 
     private static Map<TableReference, SweepStrategy> getSweepStrategiesForWarmingCache(
             KeyValueService kvs, CacheWarming cacheWarming) {
         switch (cacheWarming) {
             case FULL:
-                return Maps.transformValues(kvs.getMetadataForTables(), SweepStrategyManagers::getSweepStrategy);
+                return Maps.transformValues(
+                        kvs.getMetadataForTables(),
+                        tableMetadata -> SweepStrategyManagers.getSweepStrategy(tableMetadata, kvs));
             case NONE:
             default:
                 return Collections.emptyMap();
         }
     }
 
-    private static SweepStrategy getSweepStrategy(byte[] tableMeta) {
+    private static SweepStrategy getSweepStrategy(byte[] tableMeta, KeyValueService kvs) {
         if (tableMeta != null && tableMeta.length > 0) {
             return SweepStrategy.from(
-                    TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy());
+                    TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy(), kvs);
         } else {
-            return SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE);
+            return SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE, kvs);
         }
     }
 }u}(j  (07430a7ea8f348014166e1a21707d9a2d6fa0656j)  gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableRemappingKeyValueService.javaj+  modifiedj#  Kj$  K j-  Kj.  https://github.com/palantir/atlasdb/blob/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javaj0  https://github.com/palantir/atlasdb/raw/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.java?ref=842acaa05b5d927d2477fbddf6fa0fde2ee953b2j4  XQ  @@ -482,4 +482,9 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
             throw new IllegalArgumentException(e);
         }
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(j  (5ef033a6ef29cb0e07d55d81f9e01236df5838d0j)  gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableSplittingKeyValueService.javaj+  modifiedj#  Kj$  K j-  Kj.  https://github.com/palantir/atlasdb/blob/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javaj0  https://github.com/palantir/atlasdb/raw/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.java?ref=842acaa05b5d927d2477fbddf6fa0fde2ee953b2j4  X  @@ -413,4 +413,9 @@ public List<byte[]> getRowKeysInRange(TableReference tableRef, byte[] startRow,
     public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<Cell, Long> timestampByCell) {
         return getDelegate(tableRef).getAsync(tableRef, timestampByCell);
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegates.stream().allMatch(KeyValueService::sweepsEntriesInStrictlyNonDecreasingFashion);
+    }
 }u}(j  (f4fc16c9cd18f98e0b88191831c6acfff46d8418j)  Qatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweepTaskRunner.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.javaj0  https://github.com/palantir/atlasdb/raw/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.java?ref=842acaa05b5d927d2477fbddf6fa0fde2ee953b2j4  X  @@ -152,7 +152,7 @@ private SweepResults runInternal(
             return SweepResults.createEmptySweepResultWithNoMoreToSweep();
         }
         SweepStrategy sweepStrategy = SweepStrategy.from(
-                TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy());
+                TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy(), keyValueService);
         Optional<Sweeper> maybeSweeper = sweepStrategy.getSweeperStrategy().map(Sweeper::of);
         if (runType == RunType.WAS_CONSERVATIVE_NOW_THOROUGH
                 && sweepStrategy.getSweeperStrategy().equals(Optional.of(SweeperStrategy.CONSERVATIVE))) {u}(j  (8a130c89d1c136ccdceb2117f2543a8cad93b16cj)  \atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitioner.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj0  https://github.com/palantir/atlasdb/raw/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.java?ref=842acaa05b5d927d2477fbddf6fa0fde2ee953b2j4  X  @@ -95,9 +95,11 @@ SweeperStrategy getStrategyForTable(TableReference tableRef) {
 
     private SweeperStrategy getStrategyFromKvs(TableReference tableRef) {
         try {
-            return SweepStrategy.from(TableMetadata.BYTES_HYDRATOR
-                            .hydrateFromBytes(kvs.getMetadataForTable(tableRef))
-                            .getSweepStrategy())
+            return SweepStrategy.from(
+                            TableMetadata.BYTES_HYDRATOR
+                                    .hydrateFromBytes(kvs.getMetadataForTable(tableRef))
+                                    .getSweepStrategy(),
+                            kvs)
                     .getSweeperStrategy()
                     .orElse(SweeperStrategy.NON_SWEEPABLE);
         } catch (Exception e) {u}(j  (a754465d028ae56a8b3829de4675ebee0e06762dj)  `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj+  modifiedj#  KLj$  Kj-  Khj.  https://github.com/palantir/atlasdb/blob/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj0  https://github.com/palantir/atlasdb/raw/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=842acaa05b5d927d2477fbddf6fa0fde2ee953b2j4  XC9  @@ -278,6 +278,10 @@ private enum State {
 
     protected volatile boolean hasReads;
 
+    // On thoroughly swept tables, we might require a immutable timestamp lock check if we have performed a
+    // non-exhaustive read.
+    protected volatile boolean hasPossiblyUnvalidatedReads;
+
     protected final TimestampCache timestampCache;
 
     protected final TransactionKnowledgeComponents knowledge;
@@ -341,6 +345,7 @@ private enum State {
         this.sweepQueue = sweepQueue;
         this.deleteExecutor = deleteExecutor;
         this.hasReads = false;
+        this.hasPossiblyUnvalidatedReads = false;
         this.transactionOutcomeMetrics = TransactionOutcomeMetrics.create(metricsManager);
         this.validateLocksOnReads = validateLocksOnReads;
         this.transactionConfig = transactionConfig;
@@ -446,7 +451,9 @@ private NavigableMap<byte[], RowResult<byte[]>> getRowsInternal(
                     SafeArg.of("resultSize", results.size()),
                     SafeArg.of("timeTakenMillis", getRowsMillis));
         }
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+
+        /* can't skip lock check as we don't know how many cells to expect for the column selection */
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return results;
     }
 
@@ -471,7 +478,8 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
         RowColumnRangeIterator rawResults = keyValueService.getRowsColumnRange(
                 tableRef, stableRows, columnRangeSelection, batchHint, getStartTimestamp());
         if (!rawResults.hasNext()) {
-            validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+            // we can't skip checks for range scans
+            validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         } // else the postFiltered iterator will check for each batch.
 
         BatchColumnRangeSelection batchColumnRangeSelection =
@@ -509,7 +517,8 @@ public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator
                 }));
 
         // validate requirements here as the first batch for each of the above iterators will not check
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+        // we can't skip checks on range scans
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return postFilteredResults;
     }
 
@@ -682,7 +691,7 @@ private Iterator<Map.Entry<Cell, byte[]>> filterDeletedValues(
     private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFiltered(
             TableReference tableRef, RowColumnRangeIterator iterator, int batchHint) {
         return Iterators.concat(Iterators.transform(Iterators.partition(iterator, batchHint), batch -> {
-            Map<Cell, Value> raw = validateBatch(tableRef, batch);
+            Map<Cell, Value> raw = validateBatch(tableRef, batch, false /* can't skip lock checks on range scans */);
             if (raw.isEmpty()) {
                 return Collections.emptyIterator();
             }
@@ -704,7 +713,10 @@ private ClosableIterator<Map.Entry<Cell, byte[]>> getRowColumnRangePostFiltered(
                 batchProvider,
                 rawIterator,
                 columnRangeSelection,
-                () -> validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp()),
+                () -> {
+                    // we can't skip lock checks on range scans
+                    validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
+                },
                 raw -> getWithPostFilteringSync(tableRef, raw, Value.GET_VALUE));
     }
 
@@ -714,7 +726,7 @@ private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSor
             int batchHint,
             Comparator<Cell> cellComparator) {
         return Iterators.concat(Iterators.transform(Iterators.partition(iterator, batchHint), batch -> {
-            Map<Cell, Value> raw = validateBatch(tableRef, batch);
+            Map<Cell, Value> raw = validateBatch(tableRef, batch, false /* can't skip lock check on range scans */);
             if (raw.isEmpty()) {
                 return Collections.emptyIterator();
             }
@@ -725,8 +737,9 @@ private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSor
         }));
     }
 
-    private Map<Cell, Value> validateBatch(TableReference tableRef, List<Map.Entry<Cell, Value>> batch) {
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+    private Map<Cell, Value> validateBatch(
+            TableReference tableRef, List<Map.Entry<Cell, Value>> batch, boolean allPossibleCellsReadAndPresent) {
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
         return ImmutableMap.copyOf(batch);
     }
 
@@ -836,7 +849,8 @@ public SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(
         Map<Cell, Value> rawResults =
                 new HashMap<>(keyValueService.getRows(tableRef, rows, ColumnSelection.all(), getStartTimestamp()));
 
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+        // can't skip lock check as we don't know how many cells to expect for the column selection
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return filterRowResults(tableRef, rawResults, ImmutableMap.builderWithExpectedSize(rawResults.size()));
     }
 
@@ -929,13 +943,12 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
             }
         }
 
-        // We don't need to read any cells that were written locally.
+        // We don't need to read any cells that were written locally. Making an immutable copy because otherwise adding
+        // values to the result map would prevent us from calculating the correct size for
+        // allPossibleCellsReadAndPresent, since Sets.difference gives us a live view.
+        Set<Cell> cellsWithNoLocalWrites = ImmutableSet.copyOf(Sets.difference(cells, result.keySet()));
         return Futures.transform(
-                getFromKeyValueService(
-                        tableRef,
-                        Sets.difference(cells, result.keySet()),
-                        asyncKeyValueService,
-                        asyncTransactionService),
+                getFromKeyValueService(tableRef, cellsWithNoLocalWrites, asyncKeyValueService, asyncTransactionService),
                 fromKeyValueService -> {
                     result.putAll(fromKeyValueService);
 
@@ -949,7 +962,11 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
                                 SafeArg.of("getOperation", operationName),
                                 SafeArg.of("durationMillis", getMillis));
                     }
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+
+                    boolean allPossibleCellsReadAndPresent =
+                            fromKeyValueService.size() == cellsWithNoLocalWrites.size();
+                    validatePreCommitRequirementsOnReadIfNecessary(
+                            tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
                     return removeEmptyColumns(result, tableRef);
                 },
                 MoreExecutors.directExecutor());
@@ -965,13 +982,15 @@ public Map<Cell, byte[]> getIgnoringLocalWrites(TableReference tableRef, Set<Cel
 
         ListenableFuture<Map<Cell, byte[]>> result =
                 getFromKeyValueService(tableRef, cells, immediateKeyValueService, immediateTransactionService);
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
 
         Map<Cell, byte[]> unfiltered = Futures.getUnchecked(result);
         Map<Cell, byte[]> filtered = Maps.filterValues(unfiltered, Predicates.not(Value::isTombstone));
 
         TraceStatistics.incEmptyValues(unfiltered.size() - filtered.size());
 
+        boolean allPossibleCellsReadAndPresent = unfiltered.size() == cells.size();
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
+
         return filtered;
     }
 
@@ -1024,7 +1043,8 @@ public Iterable<BatchingVisitable<RowResult<byte[]>>> getRanges(
                     Timer.Context timer = getTimer("processedRangeMillis").time();
                     Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> firstPages =
                             keyValueService.getFirstBatchForRanges(tableRef, input, getStartTimestamp());
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+                    // can't skip lock check for range scans
+                    validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
 
                     SortedMap<Cell, byte[]> postFiltered = postFilterPages(tableRef, firstPages.values());
 
@@ -1150,18 +1170,42 @@ protected <K extends Exception> void batchAcceptSizeHint(
         };
     }
 
-    private void validatePreCommitRequirementsOnReadIfNecessary(TableReference tableRef, long timestamp) {
-        if (isValidationNecessaryOnReads(tableRef)) {
+    private void validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(TableReference tableRef, long timestamp) {
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, timestamp, false);
+    }
+
+    /*
+    We don't have any guarantees that reads and commit will be executed in a single threaded manner, so we could in
+    theory return wrong results if we perform async reads while trying to commit. But our protocol doesn't aim to
+    support such case, and we're OK with having undefined behaviour in these occasions.
+
+    Example of such case:
+       - We're reading a thoroughly swept table with no configuration for immediate validation on reads.
+       - An async range scan is performed, but hasn't started executing yet.
+       - We start commit round on the main thread
+       - Commit doesn't check for immutable timestamp lock because
+           hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound is false
+       - We finish the range scan on the second thread, but validation is skipped due to the configuration and it sets
+           hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound to true, but that is never checked due to
+            the commit round having already happened.
+       - We then risk having returned inconsistent values in this transaction, since we could have lost the immutableT
+            lock, but never checked it and values could've been swept under us.
+    */
+    private void validatePreCommitRequirementsOnReadIfNecessary(
+            TableReference tableRef, long timestamp, boolean allPossibleCellsReadAndPresent) {
+        if (isValidationNecessaryOnReads(tableRef, allPossibleCellsReadAndPresent)) {
             throwIfPreCommitRequirementsNotMet(null, timestamp);
+        } else if (!allPossibleCellsReadAndPresent) {
+            hasPossiblyUnvalidatedReads = true;
         }
     }
 
-    private boolean isValidationNecessaryOnReads(TableReference tableRef) {
-        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef);
+    private boolean isValidationNecessaryOnReads(TableReference tableRef, boolean allPossibleCellsReadAndPresent) {
+        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef, allPossibleCellsReadAndPresent);
     }
 
-    private boolean requiresImmutableTimestampLocking(TableReference tableRef) {
-        return sweepStrategyManager.get(tableRef).mustCheckImmutableLockAfterReads()
+    private boolean requiresImmutableTimestampLocking(TableReference tableRef, boolean allPossibleCellsReadAndPresent) {
+        return sweepStrategyManager.get(tableRef).mustCheckImmutableLock(allPossibleCellsReadAndPresent)
                 || transactionConfig.get().lockImmutableTsOnReadOnlyTransactions();
     }
 
@@ -1310,11 +1354,13 @@ protected <T> ClosableIterator<RowResult<T>> postFilterIterator(
             @Override
             protected Iterator<RowResult<T>> computeNext() {
                 List<RowResult<Value>> batch = results.getBatch().batch();
-                validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
                 if (batch.isEmpty()) {
                     return endOfData();
                 }
                 SortedMap<Cell, T> postFilter = postFilterRows(tableRef, batch, transformer);
+
+                // can't skip lock checks for range scans
+                validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
                 results.markNumResultsNotDeleted(
                         Cells.getRows(postFilter.keySet()).size());
                 return Cells.createRowView(postFilter.entrySet());
@@ -1692,7 +1738,9 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
             return Futures.transform(
                     asyncKeyValueService.getAsync(tableRef, keysToReload),
                     nextRawResults -> {
-                        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+                        boolean allPossibleCellsReadAndPresent = nextRawResults.size() == keysToReload.size();
+                        validatePreCommitRequirementsOnReadIfNecessary(
+                                tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
                         return getRemainingResults(nextRawResults, keysAddedToResults);
                     },
                     MoreExecutors.directExecutor());
@@ -2613,8 +2661,8 @@ private boolean hasAnyInvolvedTables() {
     }
 
     private boolean validationNecessaryForInvolvedTablesOnCommit() {
-        boolean anyTableRequiresImmutableTimestampLocking =
-                involvedTables.stream().anyMatch(this::requiresImmutableTimestampLocking);
+        boolean anyTableRequiresImmutableTimestampLocking = involvedTables.stream()
+                .anyMatch(tableRef -> requiresImmutableTimestampLocking(tableRef, !hasPossiblyUnvalidatedReads));
         boolean needsToValidate = !validateLocksOnReads || !hasReads();
         return anyTableRequiresImmutableTimestampLocking && needsToValidate;
     }u}(j  (58455c9fcbd5e41aa2e34c82091e30cd04cd5a51j)  `atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitionerTest.javaj+  modifiedj#  Kj$  K j-  Kj.  https://github.com/palantir/atlasdb/blob/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj0  https://github.com/palantir/atlasdb/raw/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.java?ref=842acaa05b5d927d2477fbddf6fa0fde2ee953b2j4  Xf  @@ -105,6 +105,7 @@ public void getStrategyQueriesKvsOnlyOnceForEachTable() {
         }
         verify(mockKvs, times(1)).getMetadataForTable(NOTHING);
         verify(mockKvs, times(1)).getMetadataForTable(CONSERVATIVE);
+        verify(mockKvs, times(2)).sweepsEntriesInStrictlyNonDecreasingFashion();
         verifyNoMoreInteractions(mockKvs);
     }
 u}(j  (4ecc8d0029caabad8e99518d16b13fcf35ba33ecj)  qatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractSerializableTransactionTest.javaj+  modifiedj#  K
j$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj0  https://github.com/palantir/atlasdb/raw/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.java?ref=842acaa05b5d927d2477fbddf6fa0fde2ee953b2j4  XL  @@ -1079,17 +1079,19 @@ public void testNoMarkTableInvolvedSkipsLockChecksOnCommit() {
         t1.commit();
     }
 
-    @Test
-    public void testMarkTableInvolvedChecksLocksForExpiryOnCommitWhenRequired() {
-        // Test table is thorough, therefore we check immutable timestamp lock
-        assertThatThrownBy(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
-                .isExactlyInstanceOf(TransactionLockTimeoutException.class);
-    }
-
     @Test
     public void testMarkTableInvolvedDoesNoCheckLocksForExpiryOnCommitWhenNotRequired() {
         // Test table is not thorough, therefore no immutable timestamp lock checking
-        testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE);
+        assertThatCode(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE))
+                .doesNotThrowAnyException();
+
+        if (keyValueService.sweepsEntriesInStrictlyNonDecreasingFashion()) {
+            assertThatCode(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
+                    .doesNotThrowAnyException();
+        } else {
+            assertThatThrownBy(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
+                    .isExactlyInstanceOf(TransactionLockTimeoutException.class);
+        }
     }
 
     @Testu}(j  (864d8b372d38e6bbe575244e1b439a23398db117j)  Uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/TableMigratorTest.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.javaj0  https://github.com/palantir/atlasdb/raw/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.java?ref=842acaa05b5d927d2477fbddf6fa0fde2ee953b2j4  X  @@ -89,7 +89,7 @@ public void testMigrationToDifferentKvs() throws TableMappingNotFoundException {
 
         final InMemoryKeyValueService kvs2 = new InMemoryKeyValueService(false);
         final ConflictDetectionManager cdm2 = ConflictDetectionManagers.createWithNoConflictDetection();
-        final SweepStrategyManager ssm2 = SweepStrategyManagers.completelyConservative();
+        final SweepStrategyManager ssm2 = SweepStrategyManagers.completelyConservative(kvs2);
         final MetricsManager metricsManager = MetricsManagers.createForTests();
         final TestTransactionManagerImpl txManager2 = new TestTransactionManagerImpl(
                 metricsManager,
@@ -128,7 +128,7 @@ public void testMigrationToDifferentKvs() throws TableMappingNotFoundException {
         checkpointer.deleteCheckpoints();
 
         final ConflictDetectionManager verifyCdm = ConflictDetectionManagers.createWithNoConflictDetection();
-        final SweepStrategyManager verifySsm = SweepStrategyManagers.completelyConservative();
+        final SweepStrategyManager verifySsm = SweepStrategyManagers.completelyConservative(kvs2);
         final TestTransactionManagerImpl verifyTxManager = new TestTransactionManagerImpl(
                 metricsManager,
                 kvs2,u}(j  (6a539c73f46339e398e128a8c5ba8e32e8ea9869j)  eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj+  modifiedj#  KZj$  Kj-  K]j.  https://github.com/palantir/atlasdb/blob/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj0  https://github.com/palantir/atlasdb/raw/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=842acaa05b5d927d2477fbddf6fa0fde2ee953b2j4  Xr  @@ -1560,7 +1560,22 @@ public void commitDoesNotThrowIfAlreadySuccessfullyCommitted() {
     }
 
     @Test
-    public void validateLocksOnReadsIfThoroughlySwept() {
+    public void doNotValidateLocksOnNonEmptyReadsIfThoroughlySwept() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        assertThatCode(() -> transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL)))
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void validateLocksOnEmptyReadsIfThoroughlySwept() {
         long transactionTs = timelockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
         Transaction transaction =
@@ -1572,6 +1587,22 @@ public void validateLocksOnReadsIfThoroughlySwept() {
                 .isThrownBy(() -> transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL)));
     }
 
+    @Test
+    public void doNotValidateLocksOnCommitIfValidationFlagIsFalseAndOnlyReadNonEmptyValuesOnThoroughlySweptTable() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+
+        assertThatCode(transaction::commit).doesNotThrowAnyException();
+    }
+
     @Test
     public void validateLocksOnlyOnCommitIfValidationFlagIsFalse() {
         long transactionTs = timelockService.getFreshTimestamp();
@@ -1587,7 +1618,45 @@ public void validateLocksOnlyOnCommitIfValidationFlagIsFalse() {
     }
 
     @Test
-    public void checkImmutableTsLockOnceIfThoroughlySwept_WithValidationOnReads() {
+    public void validateLocksOnCommitIfEmptyReadsFollowedByNonEmptyReadsIfValidationFlagIsFalse() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        // First reading empty value
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL_2));
+        // Then reading non-empty value.
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+
+        // Make sure that lock is still validated in the end due to the initial empty read
+        assertThatExceptionOfType(TransactionLockTimeoutException.class).isThrownBy(transaction::commit);
+    }
+
+    @Test
+    public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithValidationOnReads() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        Transaction transaction = getSnapshotTransactionWith(
+                spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+        transaction.commit();
+        spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
+
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+    }
+
+    @Test
+    public void checkImmutableTsLockOnceIfEmptyReadOnThoroughlySwept_WithValidationOnReads() {
         TimelockService spiedTimeLockService = spy(timelockService);
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
@@ -1603,7 +1672,25 @@ public void checkImmutableTsLockOnceIfThoroughlySwept_WithValidationOnReads() {
     }
 
     @Test
-    public void checkImmutableTsLockOnceIfThoroughlySwept_WithoutValidationOnReads() {
+    public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithoutValidationOnReads() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        Transaction transaction = getSnapshotTransactionWith(
+                spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+        transaction.commit();
+        spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
+
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+    }
+
+    @Test
+    public void checkImmutableTsLockOnceIfEmptyReadOnThoroughlySwept_WithoutValidationOnReads() {
         TimelockService spiedTimeLockService = spy(timelockService);
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();u-      }(j  (7afdb03a2af8b0138cc1524e0d39e84990810e28j)  $changelog/@unreleased/pr-6624.v2.ymlj+  addedj#  Kj$  K j-  Kj.  |https://github.com/palantir/atlasdb/blob/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/changelog%2F%40unreleased%2Fpr-6624.v2.ymlj0  {https://github.com/palantir/atlasdb/raw/842acaa05b5d927d2477fbddf6fa0fde2ee953b2/changelog%2F%40unreleased%2Fpr-6624.v2.ymlj2  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6624.v2.yml?ref=842acaa05b5d927d2477fbddf6fa0fde2ee953b2j4  @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Stopped checking immutable timestamp lock on thoroughly swept tables
+    when reading an empty value.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6624ueu(e8becc14dfae35d23d50d167bc699c65f0a2d6ad}(sha(e8becc14dfae35d23d50d167bc699c65f0a2d6adnode_idEC_kwDOAjP5fdoAKGU4YmVjYzE0ZGZhZTM1ZDIzZDUwZDE2N2JjNjk5YzY1ZjBhMmQ2YWQcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-23T14:34:12Zu	committer}(jؼ  
Ahmed Alouanejڼ  aalouane@palantir.comjܼ  2023-05-23T14:34:12ZumessageEmpty-Committree}(jм  (4ce313622daae5ce959566189a8dd66652bf7430url`https://api.github.com/repos/palantir/atlasdb/git/trees/4ce313622daae5ce959566189a8dd66652bf7430uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e8becc14dfae35d23d50d167bc699c65f0a2d6ad
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRszuQACgkQPlMHVIT1
yhr7ywgAoo0oZbDbLbKhAPUy867oG5oUBCASQC8vomDmSpp5hTIGZlzr/qIOn928
PLvpSmKWfgS2L8PSgEwvnGwhaSXb6AR5hPFMqsU4yr6AF0nQGm3W0GRqEspCagWB
TJDPzCENWboP4H4heDL1XSec5UD2rFV5ehMjhHIqLXU/mWLWZY22zggrKWz4rSp8
jdqomVeW79UCONips5I7KKQxDaN89WdDihKLnp8mMga8NEKo4yLgEfF0EFr8wH5z
KAagryxB4iMAIBEyUhhv5Iy8yaFLmlJqGlRnBP8f9LN5W6GxMjsfELrRla17GwVT
+A1k1UvH7WD0usLDfK9WlFGf+o5+9Q==
=H2Mm
-----END PGP SIGNATURE-----payloadtree 4ce313622daae5ce959566189a8dd66652bf7430
parent b68d2fa041ba376352a7689b0bd486e75b7d763c
author Ahmed Alouane <aalouane@palantir.com> 1684852452 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684852452 +0100

Empty-Commit
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/e8becc14dfae35d23d50d167bc699c65f0a2d6adhtml_urlShttps://github.com/palantir/atlasdb/commit/e8becc14dfae35d23d50d167bc699c65f0a2d6adcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e8becc14dfae35d23d50d167bc699c65f0a2d6ad/commentsjּ  }(loginergo14idJjҼ  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj޼  }(j  ergo14j  JjҼ  MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j  h5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14j  -https://api.github.com/users/ergo14/followersj  :https://api.github.com/users/ergo14/following{/other_user}j  3https://api.github.com/users/ergo14/gists{/gist_id}j
  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j  1https://api.github.com/users/ergo14/subscriptionsj  (https://api.github.com/users/ergo14/orgsj  )https://api.github.com/users/ergo14/reposj  4https://api.github.com/users/ergo14/events{/privacy}j  3https://api.github.com/users/ergo14/received_eventsj  Userj  uparents]}(jм  (b68d2fa041ba376352a7689b0bd486e75b7d763cj  ^https://api.github.com/repos/palantir/atlasdb/commits/b68d2fa041ba376352a7689b0bd486e75b7d763cj  Shttps://github.com/palantir/atlasdb/commit/b68d2fa041ba376352a7689b0bd486e75b7d763cuastats}(totalK 	additionsK 	deletionsK ufiles]u(f5b49cc946a08a6f4c43b58b3e1cf220a3afb73b}(sha(f5b49cc946a08a6f4c43b58b3e1cf220a3afb73bnode_idEC_kwDOAjP5fdoAKGY1YjQ5Y2M5NDZhMDhhNmY0YzQzYjU4YjNlMWNmMjIwYTNhZmI3M2Icommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-08T14:17:06Zu	committer}(j@  
Sam KramerjB  skramer@palantir.comjD  2023-08-08T14:17:06Zumessageclean up teststree}(j8  (f9cd574b804d712378b28c9b80feec721624b533url`https://api.github.com/repos/palantir/atlasdb/git/trees/f9cd574b804d712378b28c9b80feec721624b533ujP  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f5b49cc946a08a6f4c43b58b3e1cf220a3afb73b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTSTmIACgkQmPPOpKR4
XS0NPQf+Ntb2XTchVDgKaSGgggNbLiX112K3xpl6v7b8XUA/Bduu8BA45/ApXopi
n2Jxy0XM+D/733/uGuijYFowBDIPaymzuSgIaUM9AtEhF+Fv4AG/8nBQqNEimwB2
kh6uXg3+gJWoBPZobYkwxPVK1xNNpQgGvsYO9+DAog5+xQg+iTDdTuJgpndXUhFO
SP5GFIaE0RHy8iHDRVwY2qesmPtnXiIh0gSGqUnthHqDBDjURfCPUq11aiw6c5E3
vXQCDf9KFdwnqrSWkNx/bBloOW0XHAiYdMOcZeoeZAfC4CGoG4fWTP1miyIdLGVg
J2p7Hoz0VFwm6kImfyXKjP3qCwu1JA==
=ZtkH
-----END PGP SIGNATURE-----payloadtree f9cd574b804d712378b28c9b80feec721624b533
parent 09061bf96b53c244e97e1b2cdc441307f0043e71
author Sam Kramer <skramer@palantir.com> 1691504226 +0100
committer Sam Kramer <skramer@palantir.com> 1691504226 +0100

clean up tests
uujP  ^https://api.github.com/repos/palantir/atlasdb/commits/f5b49cc946a08a6f4c43b58b3e1cf220a3afb73bhtml_urlShttps://github.com/palantir/atlasdb/commit/f5b49cc946a08a6f4c43b58b3e1cf220a3afb73bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f5b49cc946a08a6f4c43b58b3e1cf220a3afb73b/commentsj>  }(login
Sam-KrameridJ^2_ j:  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jP  'https://api.github.com/users/Sam-Kramerj^  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujF  }(jc  
Sam-Kramerje  J^2_ j:  MDQ6VXNlcjYyMzg4MTQ=jg  3https://avatars.githubusercontent.com/u/6238814?v=4ji  h5jP  'https://api.github.com/users/Sam-Kramerj^  https://github.com/Sam-Kramerjl  1https://api.github.com/users/Sam-Kramer/followersjn  >https://api.github.com/users/Sam-Kramer/following{/other_user}jp  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jr  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jt  5https://api.github.com/users/Sam-Kramer/subscriptionsjv  ,https://api.github.com/users/Sam-Kramer/orgsjx  -https://api.github.com/users/Sam-Kramer/reposjz  8https://api.github.com/users/Sam-Kramer/events{/privacy}j|  7https://api.github.com/users/Sam-Kramer/received_eventsj~  Userj  uparents]}(j8  (09061bf96b53c244e97e1b2cdc441307f0043e71jP  ^https://api.github.com/repos/palantir/atlasdb/commits/09061bf96b53c244e97e1b2cdc441307f0043e71j^  Shttps://github.com/palantir/atlasdb/commit/09061bf96b53c244e97e1b2cdc441307f0043e71uastats}(totalK	additionsK		deletionsK	ufiles]}(j8  (2171496a4c71f4c88747fe6fb9a31a6ab4763d0dfilename]leader-election-impl/src/test/java/com/palantir/leader/proxy/AwaitingLeadershipProxyTest.javastatusmodifiedj  K	j  K	changesKblob_urlhttps://github.com/palantir/atlasdb/blob/f5b49cc946a08a6f4c43b58b3e1cf220a3afb73b/leader-election-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxyTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f5b49cc946a08a6f4c43b58b3e1cf220a3afb73b/leader-election-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxyTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxyTest.java?ref=f5b49cc946a08a6f4c43b58b3e1cf220a3afb73bpatchX
  @@ -270,19 +270,22 @@ public void shouldClearDelegateUponLosingLeadership() throws Exception {
     @Test
     public void whenMaybeNotCurrentLeaderAndLeadershipNotLostShouldNotClearDelegate() throws Exception {
         MyCloseable mockA = mock(MyCloseable.class);
+        // Cannot spy lambdas
+        Supplier<MyCloseable> delegateSupplier = mock(Supplier.class);
+        when(delegateSupplier.get()).thenReturn(mockA);
         LeadershipCoordinator leadershipCoordinator = LeadershipCoordinator.create(leaderElectionService);
         MyCloseable proxyA =
-                AwaitingLeadershipProxy.newProxyInstance(MyCloseable.class, () -> mockA, leadershipCoordinator);
+                AwaitingLeadershipProxy.newProxyInstance(MyCloseable.class, delegateSupplier, leadershipCoordinator);
 
-        // Wait to gain leadership
-        Uninterruptibles.sleepUninterruptibly(Duration.ofMillis(100L));
+        waitForLeadershipToBeGained();
 
         doThrow(new MaybeNotCurrentLeaderException(TEST_MESSAGE)).when(mockA).val();
 
         assertThatThrownBy(proxyA::val)
                 .isInstanceOf(MaybeNotCurrentLeaderException.class)
                 .hasMessage(TEST_MESSAGE);
         verify(mockA, times(0)).close();
+        verify(delegateSupplier, times(1)).get();
     }
 
     @Test
@@ -295,8 +298,7 @@ public void whenMaybeNotCurrentLeaderAndLeadershipLostShouldClearDelegate() thro
         MyCloseable proxyB = AwaitingLeadershipProxy.newProxyInstance(
                 MyCloseable.class, () -> mock(MyCloseable.class), leadershipCoordinator);
 
-        // Wait to gain leadership
-        Uninterruptibles.sleepUninterruptibly(Duration.ofMillis(100L));
+        waitForLeadershipToBeGained();
 
         proxyA.val();
         proxyB.val();
@@ -324,8 +326,7 @@ public void shouldClearDelegateIfLeadershipLossIsRealizedByAnotherProxy() throws
         MyCloseable proxyB = AwaitingLeadershipProxy.newProxyInstance(
                 MyCloseable.class, () -> mock(MyCloseable.class), leadershipCoordinator);
 
-        // Wait to gain leadership
-        Uninterruptibles.sleepUninterruptibly(Duration.ofMillis(100L));
+        waitForLeadershipToBeGained();
 
         proxyA.val();
         proxyB.val();
@@ -365,8 +366,7 @@ public void shouldClearDelegateIfLeadershipTokenIsRefreshedByAnotherProxy() thro
         MyCloseable proxyB = AwaitingLeadershipProxy.newProxyInstance(
                 MyCloseable.class, () -> mock(MyCloseable.class), leadershipCoordinator);
 
-        // Wait to gain leadership
-        Uninterruptibles.sleepUninterruptibly(Duration.ofMillis(100L));
+        waitForLeadershipToBeGained();
 
         proxyA.val();
         proxyB.val();uau(33336baa70644258722a5134f8f3e1ed2003b8d7}(sha(33336baa70644258722a5134f8f3e1ed2003b8d7node_idEC_kwDOAjP5fdoAKDMzMzM2YmFhNzA2NDQyNTg3MjJhNTEzNGY4ZjNlMWVkMjAwM2I4ZDccommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-16T17:45:13Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-05-16T17:45:13Zumessagetransient rowstree}(j  (46c00c5b04b0f307d0f8a80656e11ffa9bb62ee1url`https://api.github.com/repos/palantir/atlasdb/git/trees/46c00c5b04b0f307d0f8a80656e11ffa9bb62ee1ujǽ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/33336baa70644258722a5134f8f3e1ed2003b8d7
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRjwSkACgkQTLdFKain
zjwFpwf8D5tKz7FmKtXhH/l4W05bQqUqKJ+tWKUJw2I0aRLkYI4ZR7NCuU+jaPZ8
AMz8HCu0VPxzoBCHH0tBKntLHpXRpje+G6Ou4d3wE6e8oqarNBmsnVTAW4AuxHFJ
jV7p8qAfZYSUS7E4hBpvfc4DLo06lht2jk7QNic6ADAjt11HCQjK8+nW3Ml/zpg2
pWrh/x46R6LkkuwPEFO7hsRv+y66aN2H2x/xL1IYLn8K06Pe5sr9y9l4P53OILHh
zomLhPxC7lfapS5twRfDpPi4TqEPw+d09THHHPQyAyS3gT2CPinXcEMsKBF0/qiv
UzCOEtk4+9xlj6cqVVwAqT6jySeZ5w==
=YDD0
-----END PGP SIGNATURE-----payloadtree 46c00c5b04b0f307d0f8a80656e11ffa9bb62ee1
parent d0e1df69585786e972d8642a1f50a8f1d5814d8d
author Jeremy Kong <jkong@palantir.com> 1684259113 +0100
committer Jeremy Kong <jkong@palantir.com> 1684259113 +0100

transient rows
uujǽ  ^https://api.github.com/repos/palantir/atlasdb/commits/33336baa70644258722a5134f8f3e1ed2003b8d7html_urlShttps://github.com/palantir/atlasdb/commit/33336baa70644258722a5134f8f3e1ed2003b8d7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/33336baa70644258722a5134f8f3e1ed2003b8d7/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jǽ  'https://api.github.com/users/jeremyk-91jս  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(jڽ  
jeremyk-91jܽ  JZ j  MDQ6VXNlcjU5NTU1MTA=j޽  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5jǽ  'https://api.github.com/users/jeremyk-91jս  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents]}(j  (d0e1df69585786e972d8642a1f50a8f1d5814d8djǽ  ^https://api.github.com/repos/palantir/atlasdb/commits/d0e1df69585786e972d8642a1f50a8f1d5814d8djս  Shttps://github.com/palantir/atlasdb/commit/d0e1df69585786e972d8642a1f50a8f1d5814d8duastats}(totalK	additionsK~	deletionsK	ufiles](}(j  (2f87ec73bcd2dcc084d7569ad3c55ee1b18001d0filenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj  K'j  K	changesK0blob_urlhttps://github.com/palantir/atlasdb/blob/33336baa70644258722a5134f8f3e1ed2003b8d7/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/33336baa70644258722a5134f8f3e1ed2003b8d7/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=33336baa70644258722a5134f8f3e1ed2003b8d7patchX  @@ -33,8 +33,11 @@
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
+import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflows;
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;
@@ -102,13 +105,17 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().singleRowTwoCellsConfig();
         RingWorkflowConfiguration ringWorkflowConfiguration =
                 configuration.install().ringConfig();
+        TransientRowsWorkflowConfiguration transientRowsWorkflowConfiguration =
+                configuration.install().transientRowsConfig();
 
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
                 .run(
                         createSingleRowTwoCellsWorkflowValidator(
                                 transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
                         createRingWorkflowValidator(
-                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()));
+                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()),
+                        createTransientRowsWorkflowValidator(
+                                transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -119,14 +126,31 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
+    private WorkflowAndInvariants<Workflow> createTransientRowsWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            TransientRowsWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService =
+                createExecutorService(workflowConfig, lifecycle, TransientRowsWorkflows.class);
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(TransientRowsWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        TransientRowsWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
     private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             RingWorkflowConfiguration workflowConfig,
             LifecycleEnvironment lifecycle) {
-        ExecutorService executorService = lifecycle
-                .executorService(RingWorkflows.class.getSimpleName())
-                .maxThreads(workflowConfig.maxThreadCount())
-                .build();
+        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RingWorkflows.class);
         InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
                 Map.of(
                         workflowConfig.tableConfiguration().tableName(),
@@ -140,10 +164,8 @@ private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             SingleRowTwoCellsWorkflowConfiguration workflowConfig,
             LifecycleEnvironment lifecycle) {
-        ExecutorService executorService = lifecycle
-                .executorService(RingWorkflows.class.getSimpleName())
-                .maxThreads(workflowConfig.maxThreadCount())
-                .build();
+        ExecutorService executorService =
+                createExecutorService(workflowConfig, lifecycle, SingleRowTwoCellsWorkflows.class);
         TransactionStore transactionStore = transactionStoreFactory.create(
                 Map.of(
                         workflowConfig.tableConfiguration().tableName(),
@@ -168,4 +190,12 @@ CountDownLatch workflowsRanLatch() {
     TaggedMetricRegistry getTaggedMetricRegistry() {
         return taggedMetricRegistry;
     }
+
+    private static <T> ExecutorService createExecutorService(
+            WorkflowConfiguration workflowConfig, LifecycleEnvironment lifecycle, Class<T> workflowFactoryClass) {
+        return lifecycle
+                .executorService(workflowFactoryClass.getSimpleName())
+                .maxThreads(workflowConfig.maxThreadCount())
+                .build();
+    }
 }u}(j  (a37a788fc1126283f739446527be3e246c56bf21j  atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/33336baa70644258722a5134f8f3e1ed2003b8d7/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj  https://github.com/palantir/atlasdb/raw/33336baa70644258722a5134f8f3e1ed2003b8d7/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj   https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=33336baa70644258722a5134f8f3e1ed2003b8d7j"  X  @@ -20,6 +20,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
 
@@ -33,5 +34,7 @@ public interface WorkloadServerInstallConfiguration {
 
     RingWorkflowConfiguration ringConfig();
 
+    TransientRowsWorkflowConfiguration transientRowsConfig();
+
     boolean exitAfterRunning();
 }u}(j  (be3aea7c363f3e52d9c0332e95d106f0c15597f5j  tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowConfiguration.javaj  addedj  K j  K j  K j  https://github.com/palantir/atlasdb/blob/33336baa70644258722a5134f8f3e1ed2003b8d7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowConfiguration.javaj  https://github.com/palantir/atlasdb/raw/33336baa70644258722a5134f8f3e1ed2003b8d7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowConfiguration.javaj   https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowConfiguration.java?ref=33336baa70644258722a5134f8f3e1ed2003b8d7j"  X9  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableTransientRowsWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableTransientRowsWorkflowConfiguration.class)
+@JsonTypeName(TransientRowsWorkflowConfiguration.TYPE)
+public interface TransientRowsWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "transient-rows";
+
+    TableConfiguration tableConfiguration();
+}u}(j  (acbd6c20a8543acc5a1c22641fca0e4bb15fd1e1j  hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javaj  addedj  K4j  K j  K4j  https://github.com/palantir/atlasdb/blob/33336baa70644258722a5134f8f3e1ed2003b8d7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj  https://github.com/palantir/atlasdb/raw/33336baa70644258722a5134f8f3e1ed2003b8d7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj   https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=33336baa70644258722a5134f8f3e1ed2003b8d7j"  X	  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.Optional;
+
+public final class TransientRowsWorkflows {
+    private static final int SUMMARY_ROW = -1;
+    private static final int COLUMN = 1;
+
+    private TransientRowsWorkflows() {}
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            TransientRowsWorkflowConfiguration workflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        return DefaultWorkflow.create(
+                store,
+                (txn, taskIndex) -> run(store, workflowConfiguration, taskIndex),
+                workflowConfiguration,
+                executionExecutor);
+    }
+
+    private static Optional<WitnessedTransaction> run(
+            InteractiveTransactionStore store, TransientRowsWorkflowConfiguration configuration, int taskIndex) {
+        return store.readWrite(txn -> {
+            String tableName = configuration.tableConfiguration().tableName();
+            txn.write(tableName, ImmutableWorkloadCell.of(taskIndex, COLUMN), 1);
+            txn.delete(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN));
+            txn.write(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex), 0);
+            txn.delete(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex - 1));
+        });
+    }
+}ueu(a86a13155478cdbf653cb4098914b6e25a97f1d0}(sha(a86a13155478cdbf653cb4098914b6e25a97f1d0node_idEC_kwDOAjP5fdoAKGE4NmExMzE1NTQ3OGNkYmY2NTNjYjQwOTg5MTRiNmUyNWE5N2YxZDAcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-23T13:08:03Zu	committer}(jF  
Sam KramerjH  skramer@palantir.comjJ  2023-05-23T13:08:03Zumessage*[sii] handle mismatched deletes, add teststree}(j>  (e343b29e89ef9c544a79272cf44f292bb3f3b84furl`https://api.github.com/repos/palantir/atlasdb/git/trees/e343b29e89ef9c544a79272cf44f292bb3f3b84fujV  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a86a13155478cdbf653cb4098914b6e25a97f1d0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRsurQACgkQmPPOpKR4
XS0bFgf/cBnVyPrMjNloMf8ShHrJpL3+0IskTQxCfqqQXp583ll0XSVejLA45tUe
UjGwUs1pwortmnUYDbQyiTXQdPkGDJCBXptoD8qH2fsDKXc+eUYJ/Z2i2CspzjkN
GHwsR5HsVKCnGqycBVqI7QDaKkDdI7Gg1PtFmNrofr9j1TEJMLdT/0P7u8sIkTHn
cM2u1EqbSSwM+oWKY6sslZtWfWrNC61Gf+9ccZObea7Mg5zgQExO5NIZzfVt0Cpt
AI72dieKyiLTkqnoCExWWdsQApqtscqCk4NLeQueEs1JZEoBrAvIzfytbQdorRWJ
K8OMbPhqILcZ6ubOrW7y76jF7gV/DQ==
=7zeU
-----END PGP SIGNATURE-----payloadX  tree e343b29e89ef9c544a79272cf44f292bb3f3b84f
parent 034fc13b6a43661438c15e3c443d50ccdd3368a6
author Sam Kramer <skramer@palantir.com> 1684847283 +0100
committer Sam Kramer <skramer@palantir.com> 1684847283 +0100

[sii] handle mismatched deletes, add tests
uujV  ^https://api.github.com/repos/palantir/atlasdb/commits/a86a13155478cdbf653cb4098914b6e25a97f1d0html_urlShttps://github.com/palantir/atlasdb/commit/a86a13155478cdbf653cb4098914b6e25a97f1d0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a86a13155478cdbf653cb4098914b6e25a97f1d0/commentsjD  }(login
Sam-KrameridJ^2_ j@  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jV  'https://api.github.com/users/Sam-Kramerjd  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujL  }(ji  
Sam-Kramerjk  J^2_ j@  MDQ6VXNlcjYyMzg4MTQ=jm  3https://avatars.githubusercontent.com/u/6238814?v=4jo  h5jV  'https://api.github.com/users/Sam-Kramerjd  https://github.com/Sam-Kramerjr  1https://api.github.com/users/Sam-Kramer/followersjt  >https://api.github.com/users/Sam-Kramer/following{/other_user}jv  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jx  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jz  5https://api.github.com/users/Sam-Kramer/subscriptionsj|  ,https://api.github.com/users/Sam-Kramer/orgsj~  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj  uparents]}(j>  (034fc13b6a43661438c15e3c443d50ccdd3368a6jV  ^https://api.github.com/repos/palantir/atlasdb/commits/034fc13b6a43661438c15e3c443d50ccdd3368a6jd  Shttps://github.com/palantir/atlasdb/commit/034fc13b6a43661438c15e3c443d50ccdd3368a6uastats}(totalM\	additionsM	deletionsK@ufiles](}(j>  (a3111777c79da2b807ba85439efec64c0534d89ffilenamefatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/MismatchedValue.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/a86a13155478cdbf653cb4098914b6e25a97f1d0/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a86a13155478cdbf653cb4098914b6e25a97f1d0/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.java?ref=a86a13155478cdbf653cb4098914b6e25a97f1d0patchX  @@ -24,10 +24,10 @@
 @Value.Immutable
 public interface MismatchedValue {
     @Value.Parameter
-    Optional<Integer> actual();
+    ValueAndTimestamp actual();
 
     @Value.Parameter
-    Optional<Integer> expected();
+    ValueAndTimestamp expected();
 
     @Value.Check
     default void actualAndExpectedAreNotEqualToEachOther() {
@@ -39,6 +39,10 @@ default void actualAndExpectedAreNotEqualToEachOther() {
     }
 
     static MismatchedValue of(Optional<Integer> actual, Optional<Integer> expected) {
+        return MismatchedValue.of(ValueAndTimestamp.of(actual), ValueAndTimestamp.of(expected));
+    }
+
+    static MismatchedValue of(ValueAndTimestamp actual, ValueAndTimestamp expected) {
         return ImmutableMismatchedValue.of(actual, expected);
     }
 }u}(j>  (63a4ff707d6652fbdccb8c1ad74c04e376ab073ej  hatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/ValueAndTimestamp.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/a86a13155478cdbf653cb4098914b6e25a97f1d0/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndTimestamp.javaj  https://github.com/palantir/atlasdb/raw/a86a13155478cdbf653cb4098914b6e25a97f1d0/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndTimestamp.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndTimestamp.java?ref=a86a13155478cdbf653cb4098914b6e25a97f1d0j  X  @@ -23,19 +23,36 @@
  * Occasionally, storing just a value might not be enough context needed when validating an invariant.
  *
  * For example, to detect that the ABA problem has occurred (ABA problem (https://en.wikipedia.org/wiki/ABA_problem),
- * values alone would not be sufficient. Storing the timestamp associated with the value, such as the startTimestamp,
+ * values alone would not be sufficient. Storing the timestamp associated with the value, such as the start timestamp,
  * would be able to catch these sort of cases.
  */
 @Value.Immutable
 public interface ValueAndTimestamp {
+    ValueAndTimestamp EMPTY = of(Optional.empty(), Optional.empty());
 
     @Value.Parameter
     Optional<Integer> value();
 
     @Value.Parameter
-    Long timestamp();
+    Optional<Long> timestamp();
+
+    static ValueAndTimestamp empty() {
+        return EMPTY;
+    }
+
+    static ValueAndTimestamp of(Optional<Integer> value) {
+        return of(value, Optional.empty());
+    }
 
     static ValueAndTimestamp of(Optional<Integer> value, Long timestamp) {
+        return of(value, Optional.of(timestamp));
+    }
+
+    static ValueAndTimestamp of(Integer value, Long timestamp) {
+        return of(Optional.of(value), Optional.of(timestamp));
+    }
+
+    static ValueAndTimestamp of(Optional<Integer> value, Optional<Long> timestamp) {
         return ImmutableValueAndTimestamp.of(value, timestamp);
     }
 }u}(j>  (7d3cddbe859c9f9c4c826b5d0723e62d647c1b52j  datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariant.javaj  renamedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/a86a13155478cdbf653cb4098914b6e25a97f1d0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javaj  https://github.com/palantir/atlasdb/raw/a86a13155478cdbf653cb4098914b6e25a97f1d0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.java?ref=a86a13155478cdbf653cb4098914b6e25a97f1d0j  X?  @@ -44,17 +44,19 @@
  * Otherwise, once the transaction is replayed on top of the latest view, we persist this new view at the
  * commit timestamp.
  */
-public final class SnapshotIsolationInvariant implements TransactionInvariant {
+public enum SnapshotInvariant implements TransactionInvariant {
+    INSTANCE;
+
     @Override
     public void accept(
             WorkflowHistory workflowHistory, Consumer<List<InvalidWitnessedTransaction>> invalidWitnessedTransactions) {
-        TableView tableView = new TableView();
+        VersionedTableView<TableAndWorkloadCell, ValueAndTimestamp> tableView = new VersionedTableView<>();
         List<InvalidWitnessedTransaction> transactions = StreamEx.of(workflowHistory.history())
                 .mapPartial(witnessedTransaction -> {
                     StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> latestTableView =
                             tableView.getLatestTableView();
 
-                    SnapshotIsolationInvariantVisitor visitor = new SnapshotIsolationInvariantVisitor(
+                    SnapshotInvariantVisitor visitor = new SnapshotInvariantVisitor(
                             witnessedTransaction.startTimestamp(),
                             latestTableView,
                             tableView.getView(witnessedTransaction.startTimestamp()));previous_filenamematlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotIsolationInvariant.javau}(j>  (d6729e653bfaab3b794a8f90f76f071e35a8fb7cj  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj  renamedj  K
j  K
j  Kj  https://github.com/palantir/atlasdb/blob/a86a13155478cdbf653cb4098914b6e25a97f1d0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj  https://github.com/palantir/atlasdb/raw/a86a13155478cdbf653cb4098914b6e25a97f1d0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=a86a13155478cdbf653cb4098914b6e25a97f1d0j  X\  @@ -35,14 +35,14 @@
  *
  * Objects created from this class should only be used within a scope of a single transaction.
  */
-final class SnapshotIsolationInvariantVisitor
+final class SnapshotInvariantVisitor
         implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
 
     private final Long startTimestamp;
     private final StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> latestView;
     private final StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> readView;
 
-    SnapshotIsolationInvariantVisitor(
+    SnapshotInvariantVisitor(
             Long startTimestamp,
             StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> latestView,
             StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> readView) {
@@ -53,8 +53,9 @@ final class SnapshotIsolationInvariantVisitor
 
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
-        Optional<Integer> expected =
-                fetchValueFromView(readTransactionAction.table(), readTransactionAction.cell(), readView);
+        Optional<Integer> expected = fetchValueFromView(
+                        readTransactionAction.table(), readTransactionAction.cell(), readView)
+                .value();
         if (!expected.equals(readTransactionAction.value())) {
             return Optional.of(InvalidWitnessedTransactionAction.of(
                     readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expected)));
@@ -102,25 +103,21 @@ private void applyWrites(String tableName, WorkloadCell cell, Optional<Integer>
      * that means we have missed a write-write conflict, as it should have conflicted with this transaction.
      */
     private Optional<MismatchedValue> checkForWriteWriteConflicts(String table, WorkloadCell cell) {
-        Optional<Integer> previous = fetchValueFromView(table, cell, readView);
-        Optional<Integer> latest = fetchValueFromView(table, cell, latestView);
+        ValueAndTimestamp previous = fetchValueFromView(table, cell, readView);
+        ValueAndTimestamp latest = fetchValueFromView(table, cell, latestView);
 
         if (!previous.equals(latest)) {
-            return Optional.of(MismatchedValue.of(previous, latest));
+            return Optional.of(MismatchedValue.of(latest, previous));
         }
 
         return Optional.empty();
     }
 
-    private Optional<Integer> fetchValueFromView(
+    private ValueAndTimestamp fetchValueFromView(
             String tableName,
             WorkloadCell workloadCell,
             StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> view) {
         TableAndWorkloadCell tableAndWorkloadCell = TableAndWorkloadCell.of(tableName, workloadCell);
-        return view.getSnapshot()
-                .get(tableAndWorkloadCell)
-                .toJavaOptional()
-                .map(ValueAndTimestamp::value)
-                .orElseGet(Optional::empty);
+        return view.getSnapshot().get(tableAndWorkloadCell).toJavaOptional().orElseGet(ValueAndTimestamp::empty);
     }
 }jþ  tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotIsolationInvariantVisitor.javau}(j>  (8f9d9b27f1b8643714a607fc006bbff8fcc2b63fj  \atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/TableView.javaj  removedj  K j  K,j  K,j  https://github.com/palantir/atlasdb/blob/034fc13b6a43661438c15e3c443d50ccdd3368a6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTableView.javaj  https://github.com/palantir/atlasdb/raw/034fc13b6a43661438c15e3c443d50ccdd3368a6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTableView.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTableView.java?ref=034fc13b6a43661438c15e3c443d50ccdd3368a6j  X  @@ -1,44 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.invariant;
-
-import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
-import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
-import io.vavr.collection.Map;
-import java.util.NavigableMap;
-import java.util.Optional;
-import java.util.TreeMap;
-
-public final class TableView {
-    private final NavigableMap<Long, Map<TableAndWorkloadCell, ValueAndTimestamp>> tableViews = new TreeMap<>();
-
-    public void put(Long commitTimestamp, Map<TableAndWorkloadCell, ValueAndTimestamp> tableView) {
-        tableViews.put(commitTimestamp, tableView);
-    }
-
-    public StructureHolder<io.vavr.collection.Map<TableAndWorkloadCell, ValueAndTimestamp>> getView(
-            Long startTimestamp) {
-        return StructureHolder.create(
-                () -> Optional.ofNullable(tableViews.lowerEntry(startTimestamp).getValue())
-                        .orElseGet(io.vavr.collection.HashMap::empty));
-    }
-
-    public StructureHolder<io.vavr.collection.Map<TableAndWorkloadCell, ValueAndTimestamp>> getLatestTableView() {
-        return StructureHolder.create(() ->
-                Optional.ofNullable(tableViews.lastEntry().getValue()).orElseGet(io.vavr.collection.HashMap::empty));
-    }
-}u}(j>  (4de6995ed44d451798f058557c28b4274ca4065cj  eatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/VersionedTableView.javaj  addedj  K+j  K j  K+j  https://github.com/palantir/atlasdb/blob/a86a13155478cdbf653cb4098914b6e25a97f1d0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.javaj  https://github.com/palantir/atlasdb/raw/a86a13155478cdbf653cb4098914b6e25a97f1d0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.java?ref=a86a13155478cdbf653cb4098914b6e25a97f1d0j  X  @@ -0,0 +1,43 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.Optional;
+import java.util.TreeMap;
+
+public final class VersionedTableView<K, V> {
+    private final java.util.NavigableMap<Long, Map<K, V>> tableViews = new TreeMap<>();
+
+    public void put(Long commitTimestamp, Map<K, V> tableView) {
+        tableViews.put(commitTimestamp, tableView);
+    }
+
+    public StructureHolder<Map<K, V>> getView(Long startTimestamp) {
+        return StructureHolder.create(() -> Optional.ofNullable(tableViews.lowerEntry(startTimestamp))
+                .map(java.util.Map.Entry::getValue)
+                .orElseGet(HashMap::empty));
+    }
+
+    public StructureHolder<Map<K, V>> getLatestTableView() {
+        return StructureHolder.create(() -> Optional.ofNullable(tableViews.lastEntry())
+                .map(java.util.Map.Entry::getValue)
+                .orElseGet(HashMap::empty));
+    }
+}u}(j>  (e8bdefa0ffe974a06ad007df3024bff0089752c1j  hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/a86a13155478cdbf653cb4098914b6e25a97f1d0/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj  https://github.com/palantir/atlasdb/raw/a86a13155478cdbf653cb4098914b6e25a97f1d0/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=a86a13155478cdbf653cb4098914b6e25a97f1d0j  X
  @@ -0,0 +1,139 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class SnapshotInvariantTest {
+    @Mock
+    private ReadableTransactionStore readableTransactionStore;
+
+    @Test
+    public void catchesWriteWriteConflict() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidTransaction.transaction().startTimestamp()).isEqualTo(5L);
+        assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
+
+        InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
+        assertThat(invalidAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+        assertThat(invalidAction.mismatchedValue())
+                .isEqualTo(MismatchedValue.of(
+                        ValueAndTimestamp.of(WorkloadTestHelpers.VALUE_ONE, 1L), ValueAndTimestamp.empty()));
+    }
+
+    @Test
+    public void catchesAbaWriteWriteConflictForDeletes() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .delete(5, 10)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidTransaction.transaction().startTimestamp()).isEqualTo(5L);
+        assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
+
+        InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
+        assertThat(invalidAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+        assertThat(invalidAction.mismatchedValue())
+                .isEqualTo(MismatchedValue.of(ValueAndTimestamp.of(Optional.empty(), 1L), ValueAndTimestamp.empty()));
+    }
+
+    @Test
+    public void doesNotCatchWriteSkew() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .read(5, 10)
+                .write(6, 10, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void doesNotCatchReadOnlyTransactionAnomaly() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(11L)
+                .read(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .startTransaction(12L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(13L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+}u}(j>  (f6460d83482ae43ee931a38714a79f13194dccf2j  iatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/VersionedTableViewTest.javaj  addedj  K4j  K j  K4j  https://github.com/palantir/atlasdb/blob/a86a13155478cdbf653cb4098914b6e25a97f1d0/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.javaj  https://github.com/palantir/atlasdb/raw/a86a13155478cdbf653cb4098914b6e25a97f1d0/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.java?ref=a86a13155478cdbf653cb4098914b6e25a97f1d0j  XH  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import org.junit.Test;
+
+public final class VersionedTableViewTest {
+    @Test
+    public void putStoresTable() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        tableView.put(1L, HashMap.of(10L, 20L));
+        assertThat(tableView.getLatestTableView().getSnapshot().toJavaMap())
+                .containsExactlyEntriesOf(java.util.Map.of(10L, 20L));
+    }
+
+    @Test
+    public void getLatestTableViewFetchesLargestVersion() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedLastView = HashMap.of(30L, 40L);
+        tableView.put(1L, HashMap.of(10L, 20L));
+        tableView.put(2L, HashMap.of(20L, 30L));
+        tableView.put(3L, HashMap.of(30L, 40L));
+        assertThat(tableView.getLatestTableView().getSnapshot()).isEqualTo(expectedLastView);
+    }
+
+    @Test
+    public void getViewFetchesViewBeforeTimestamp() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedView = HashMap.of(10L, 20L);
+        tableView.put(1L, expectedView);
+        tableView.put(2L, HashMap.of(20L, 30L));
+        assertThat(tableView.getView(2L).getSnapshot()).isEqualTo(expectedView);
+    }
+}u}(j>  (76b7bf8a79fef320f8e2d56812e48a9ad7cfa75dj  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/a86a13155478cdbf653cb4098914b6e25a97f1d0/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj  https://github.com/palantir/atlasdb/raw/a86a13155478cdbf653cb4098914b6e25a97f1d0/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=a86a13155478cdbf653cb4098914b6e25a97f1d0j  X  @@ -40,6 +40,11 @@ public WitnessedTransactionsBuilder(String table) {
         this.table = table;
     }
 
+    public WitnessedTransactionBuilder startTransaction(long startTimestamp) {
+        timestampCounter.set(startTimestamp);
+        return new WitnessedTransactionBuilder(startTimestamp);
+    }
+
     public WitnessedTransactionBuilder startTransaction() {
         return new WitnessedTransactionBuilder(timestampCounter.incrementAndGet());
     }u}(j>  (0fe4c2b7e7eec4cc5f41a82f24e3b7fa7cf762ebj  hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/a86a13155478cdbf653cb4098914b6e25a97f1d0/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj  https://github.com/palantir/atlasdb/raw/a86a13155478cdbf653cb4098914b6e25a97f1d0/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=a86a13155478cdbf653cb4098914b6e25a97f1d0j  X  @@ -19,6 +19,7 @@
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.invariant.ValueAndTimestamp;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
@@ -58,5 +59,9 @@ public final class WorkloadTestHelpers {
             TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_ONE);
     public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
             TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO);
+
+    public static final ValueAndTimestamp VALUE_ONE_AND_TIMESTAMP = ValueAndTimestamp.of(VALUE_ONE, 1L);
+
+    public static final ValueAndTimestamp VALUE_TWO_AND_TIMESTAMP = ValueAndTimestamp.of(VALUE_TWO, 1L);
     public static final String WORKFLOW = "example-workflow";
 }ueu(96264279ee6f9872a46c32a14f3e599f1fdc2702}(sha(96264279ee6f9872a46c32a14f3e599f1fdc2702node_idEC_kwDOAjP5fdoAKDk2MjY0Mjc5ZWU2Zjk4NzJhNDZjMzJhMTRmM2U1OTlmMWZkYzI3MDIcommit}(author}(nameMohammed Daudaliemailmdaudali786@gmail.comdate2023-05-19T13:21:46Zu	committer}(j  svc-autoreleasej
  -pd-foundry-infrastructure-notify@palantir.comj  2023-05-19T13:21:46Zumessage"Autorelease 0.857.0-rc2

[skip ci]tree}(j   (b6a8b31b4f19a8d6f3ae664a6a15a0b9307b400eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/b6a8b31b4f19a8d6f3ae664a6a15a0b9307b400euj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/96264279ee6f9872a46c32a14f3e599f1fdc2702
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRnd+oACgkQhbrR8ip7mDC3AAEAvSi5jhs2JDdWf4YupoFOA+Ht
yQwMaA+fjvCjv0cRVLMA/ipDQEHptQqMK++WFRdnlNcio1jUqcLuvqO26C50tRgx
=7IEK
-----END PGP SIGNATURE-----
payloadX  tree b6a8b31b4f19a8d6f3ae664a6a15a0b9307b400e
parent 92c2551cacdb4610fb6ba2992cdacf4a4e04f4fe
author Mohammed Daudali <mdaudali786@gmail.com> 1684502506 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684502506 +0000

Autorelease 0.857.0-rc2

[skip ci]uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/96264279ee6f9872a46c32a14f3e599f1fdc2702html_urlShttps://github.com/palantir/atlasdb/commit/96264279ee6f9872a46c32a14f3e599f1fdc2702comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/96264279ee6f9872a46c32a14f3e599f1fdc2702/commentsj  }(loginmdaudaliidJ j  MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5j  %https://api.github.com/users/mdaudalij&  https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminuj  }(j+  svc-autoreleasej-  J(j  MDQ6VXNlcjUxNzE4MzQ2j/  4https://avatars.githubusercontent.com/u/51718346?v=4j1  h5j  ,https://api.github.com/users/svc-autorelease	     j&  "https://github.com/svc-autoreleasej4  6https://api.github.com/users/svc-autorelease/followersj6  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j8  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j:  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j<  :https://api.github.com/users/svc-autorelease/subscriptionsj>  1https://api.github.com/users/svc-autorelease/orgsj@  2https://api.github.com/users/svc-autorelease/reposjB  =https://api.github.com/users/svc-autorelease/events{/privacy}jD  <https://api.github.com/users/svc-autorelease/received_eventsjF  UserjH  uparents]}(j   (92c2551cacdb4610fb6ba2992cdacf4a4e04f4fej  ^https://api.github.com/repos/palantir/atlasdb/commits/92c2551cacdb4610fb6ba2992cdacf4a4e04f4fej&  Shttps://github.com/palantir/atlasdb/commit/92c2551cacdb4610fb6ba2992cdacf4a4e04f4feuastats}(totalK 	additionsK 	deletionsK ufiles]u(0f7baf9299e6f876be316f48032d9486ecf5fcb8}(sha(0f7baf9299e6f876be316f48032d9486ecf5fcb8node_idEC_kwDOAjP5fdoAKDBmN2JhZjkyOTllNmY4NzZiZTMxNmY0ODAzMmQ5NDg2ZWNmNWZjYjgcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-07-12T18:38:11Zu	committer}(jp  
svc-changelogjr  svc-changelog@palantir.comjt  2023-07-12T18:38:11ZumessageAdd generated changelog entriestree}(jh  (32f8e5df1e514f2355cc3f0bdd44a2b25e081953url`https://api.github.com/repos/palantir/atlasdb/git/trees/32f8e5df1e514f2355cc3f0bdd44a2b25e081953uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0f7baf9299e6f876be316f48032d9486ecf5fcb8
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSu8xMJEHYaJX37fAFQAAA4XQEA8C7I/JCo0HDa0VXU8yikmbQX
nWcwZr0iOxbh20aVWjYBAJdzRu+g+KZvmr3C9gIdT69MvfTVmTLLkf36Qaz4tL2s
=f8+h
-----END PGP SIGNATURE-----payloadX  tree 32f8e5df1e514f2355cc3f0bdd44a2b25e081953
parent 8a0854af57fd14b118772fe048867d961cd48309
author svc-changelog <svc-changelog@palantir.com> 1689187091 +0000
committer svc-changelog <svc-changelog@palantir.com> 1689187091 +0000

Add generated changelog entriesuuj  ^https://api.github.com/repos/palantir/atlasdb/commits/0f7baf9299e6f876be316f48032d9486ecf5fcb8html_urlShttps://github.com/palantir/atlasdb/commit/0f7baf9299e6f876be316f48032d9486ecf5fcb8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0f7baf9299e6f876be316f48032d9486ecf5fcb8/commentsjn  }(login
svc-changelogidJ#jj  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j  *https://api.github.com/users/svc-changelogj   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujv  }(j  
svc-changelogj  J#jj  MDQ6VXNlcjg0MDc3NjAzj  4https://avatars.githubusercontent.com/u/84077603?v=4j  h5j  *https://api.github.com/users/svc-changelogj   https://github.com/svc-changelogj  4https://api.github.com/users/svc-changelog/followersj  Ahttps://api.github.com/users/svc-changelog/following{/other_user}j  :https://api.github.com/users/svc-changelog/gists{/gist_id}j  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j  8https://api.github.com/users/svc-changelog/subscriptionsj  /https://api.github.com/users/svc-changelog/orgsj  0https://api.github.com/users/svc-changelog/reposj  ;https://api.github.com/users/svc-changelog/events{/privacy}j  :https://api.github.com/users/svc-changelog/received_eventsj  Userj  uparents]}(jh  (8a0854af57fd14b118772fe048867d961cd48309j  ^https://api.github.com/repos/palantir/atlasdb/commits/8a0854af57fd14b118772fe048867d961cd48309j  Shttps://github.com/palantir/atlasdb/commit/8a0854af57fd14b118772fe048867d961cd48309uastats}(totalK	additionsK	deletionsK ufiles]}(jh  (33a2a2d54d648f18cdab6d3f0ba9dad15dbe0a2ffilename$changelog/@unreleased/pr-6642.v2.ymlstatusaddedjʿ  Kj˿  K changesKblob_url|https://github.com/palantir/atlasdb/blob/0f7baf9299e6f876be316f48032d9486ecf5fcb8/changelog%2F%40unreleased%2Fpr-6642.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/0f7baf9299e6f876be316f48032d9486ecf5fcb8/changelog%2F%40unreleased%2Fpr-6642.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6642.v2.yml?ref=0f7baf9299e6f876be316f48032d9486ecf5fcb8patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Reduce allocations extracting Cassandra values
+  links:
+  - https://github.com/palantir/atlasdb/pull/6642uau(db9f8a1a906960154d2fb0d86cb75e851ba006ac}(sha(db9f8a1a906960154d2fb0d86cb75e851ba006acnode_idEC_kwDOAjP5fdoAKGRiOWY4YTFhOTA2OTYwMTU0ZDJmYjBkODZjYjc1ZTg1MWJhMDA2YWMcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-04-27T16:22:42Zu	committer}(j  
svc-changelogj  svc-changelog@palantir.comj  2023-04-27T16:22:42ZumessageAdd generated changelog entriestree}(j߿  (3951c30208f52ce8742c6397a036f0a0e955535burl`https://api.github.com/repos/palantir/atlasdb/git/trees/3951c30208f52ce8742c6397a036f0a0e955535buj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/db9f8a1a906960154d2fb0d86cb75e851ba006ac
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmRKoVIJEHYaJX37fAFQAAAwXwEAhAxfewUVcizeOI4CviAkbtF5
XG/hKfvaKsebxHOM6D0A/jLjL3J7SG11iYb0cKZM2pNtJXNuHS6XuENrzX1YFWVu
=fBkL
-----END PGP SIGNATURE-----payloadX  tree 3951c30208f52ce8742c6397a036f0a0e955535b
parent 210eefb66422b4ed4f5a0ab1044cd64a81ac1837
author svc-changelog <svc-changelog@palantir.com> 1682612562 +0000
committer svc-changelog <svc-changelog@palantir.com> 1682612562 +0000

Add generated changelog entriesuuj  ^https://api.github.com/repos/palantir/atlasdb/commits/db9f8a1a906960154d2fb0d86cb75e851ba006achtml_urlShttps://github.com/palantir/atlasdb/commit/db9f8a1a906960154d2fb0d86cb75e851ba006accomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/db9f8a1a906960154d2fb0d86cb75e851ba006ac/commentsj  }(login
svc-changelogidJ#j  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j  *https://api.github.com/users/svc-changelogj   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj  }(j
  
svc-changelogj  J#j  MDQ6VXNlcjg0MDc3NjAzj  4https://avatars.githubusercontent.com/u/84077603?v=4j  h5j  *https://api.github.com/users/svc-changelogj   https://github.com/svc-changelogj  4https://api.github.com/users/svc-changelog/followersj  Ahttps://api.github.com/users/svc-changelog/following{/other_user}j  :https://api.github.com/users/svc-changelog/gists{/gist_id}j  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j  8https://api.github.com/users/svc-changelog/subscriptionsj  /https://api.github.com/users/svc-changelog/orgsj  0https://api.github.com/users/svc-changelog/reposj!  ;https://api.github.com/users/svc-changelog/events{/privacy}j#  :https://api.github.com/users/svc-changelog/received_eventsj%  Userj'  uparents]}(j߿  (210eefb66422b4ed4f5a0ab1044cd64a81ac1837j  ^https://api.github.com/repos/palantir/atlasdb/commits/210eefb66422b4ed4f5a0ab1044cd64a81ac1837j  Shttps://github.com/palantir/atlasdb/commit/210eefb66422b4ed4f5a0ab1044cd64a81ac1837uastats}(totalK	additionsK	deletionsK ufiles]}(j߿  (8c7080dd5d4974fb88000981969ccef6b2528af2filename$changelog/@unreleased/pr-6548.v2.ymlstatusaddedjA  KjB  K changesKblob_url|https://github.com/palantir/atlasdb/blob/db9f8a1a906960154d2fb0d86cb75e851ba006ac/changelog%2F%40unreleased%2Fpr-6548.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/db9f8a1a906960154d2fb0d86cb75e851ba006ac/changelog%2F%40unreleased%2Fpr-6548.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6548.v2.yml?ref=db9f8a1a906960154d2fb0d86cb75e851ba006acpatch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[CBT] Reorganize test job parallelism'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6548uau(82da62a5b5b233a9801a68e245c803eef8a2c9a4}(sha(82da62a5b5b233a9801a68e245c803eef8a2c9a4node_idEC_kwDOAjP5fdoAKDgyZGE2MmE1YjViMjMzYTk4MDFhNjhlMjQ1YzgwM2VlZjhhMmM5YTQcommit}(author}(nameLucas Sousa Meirelesemailmeireles31@msn.comdate2023-08-04T15:01:20Zu	committer}(j^  GitHubj`  noreply@github.comjb  2023-08-04T15:01:20ZumessageX  Changing getWithExpectedSize to return a Result type (#6686)

* rename validator

* changing API to return result type

* rev api

* isOk final

* dry

* spotless

* Result refactor (#6692)

* implement result on children

* method referencetree}(jV  (f81e4ca846f9ffa8f7decc5e891176904baeb3e5url`https://api.github.com/repos/palantir/atlasdb/git/trees/f81e4ca846f9ffa8f7decc5e891176904baeb3e5ujn  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/82da62a5b5b233a9801a68e245c803eef8a2c9a4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkzRLACRBK7hj4Ov3rIwAApr8IAHoMP3MaSHc9Wt170fqoray/
SdbLrORRjmYImgwLyebkCNUKptT3vxX43EwDpvbGP77MsV/xV6u2of8oJO2z52lt
PRy0o1hP9hDE/LdWjK6/v0RfG1oKCHqGF1Q/bljQ3Cwv4fHgZFLVIikzsBmWZhAs
OAylzZiGv59TYZQJt0bfw4Fcmfn15ftVbb27ZbvMyZ3ZGeyHuIxU3s2TnqvayGaL
0ctAz8tLs2LcSISfc/kGo+hXDdw/4ux9ZkEFYxu7FnRH8PAPyuDVrpwitBavY8rR
U7NuJ1MYShIcchP95afROgLBSKJpNBrAAjNnbo2KS9zpNRGgwbInCUWDJKZpgzQ=
=WkkR
-----END PGP SIGNATURE-----
payloadX  tree f81e4ca846f9ffa8f7decc5e891176904baeb3e5
parent b2292ce98723ecaaf7b5e61496a4dcb1b636269c
author Lucas Sousa Meireles <meireles31@msn.com> 1691161280 +0100
committer GitHub <noreply@github.com> 1691161280 +0100

Changing getWithExpectedSize to return a Result type (#6686)

* rename validator

* changing API to return result type

* rev api

* isOk final

* dry

* spotless

* Result refactor (#6692)

* implement result on children

* method referenceuujn  ^https://api.github.com/repos/palantir/atlasdb/commits/82da62a5b5b233a9801a68e245c803eef8a2c9a4html_urlShttps://github.com/palantir/atlasdb/commit/82da62a5b5b233a9801a68e245c803eef8a2c9a4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/82da62a5b5b233a9801a68e245c803eef8a2c9a4/commentsj\  }(loginLucasIMEidJg jX  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jn  %https://api.github.com/users/LucasIMEj|  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujd  }(j  web-flowj  J/jX  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5jn  %https://api.github.com/users/web-flowj|  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(jV  (b2292ce98723ecaaf7b5e61496a4dcb1b636269cjn  ^https://api.github.com/repos/palantir/atlasdb/commits/b2292ce98723ecaaf7b5e61496a4dcb1b636269cj|  Shttps://github.com/palantir/atlasdb/commit/b2292ce98723ecaaf7b5e61496a4dcb1b636269cuastats}(totalM7	additionsM	deletionsK6ufiles](}(jV  (3294b61794301cea7c078c093fee524bdbd8f8b2filename.palantir/revapi.ymlstatusmodifiedj  Kj  K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/82da62a5b5b233a9801a68e245c803eef8a2c9a4/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/82da62a5b5b233a9801a68e245c803eef8a2c9a4/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=82da62a5b5b233a9801a68e245c803eef8a2c9a4patchX  @@ -154,3 +154,11 @@ acceptedBreaks:
       new: "method java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell, byte[]> com.palantir.atlasdb.transaction.api.Transaction::getWithExpectedNumberOfCells(com.palantir.atlasdb.keyvalue.api.TableReference,\
         \ java.util.Set<com.palantir.atlasdb.keyvalue.api.Cell>, long)"
       justification: "just adding a new get method"
+  "0.899.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.method.addedToInterface"
+      new: "method com.palantir.util.result.Result<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
+        \ byte[]>, com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException>\
+        \ com.palantir.atlasdb.transaction.api.Transaction::getWithExpectedNumberOfCells(com.palantir.atlasdb.keyvalue.api.TableReference,\
+        \ java.util.Set<com.palantir.atlasdb.keyvalue.api.Cell>, long)"
+      justification: "just adding a new get method"u}(jV  (2dc21a70f02a91479a4ee1d67c291b482cd755c7j  Oatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/Transaction.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javaj  https://github.com/palantir/atlasdb/raw/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.java?ref=82da62a5b5b233a9801a68e245c803eef8a2c9a4j  XR  @@ -26,9 +26,11 @@
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.spi.KeyValueServiceConfig;
 import com.palantir.atlasdb.transaction.api.annotations.ReviewedRestrictedApiUsage;
+import com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 import com.palantir.common.annotation.Idempotent;
 import com.palantir.common.base.BatchingVisitable;
+import com.palantir.util.result.Result;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
@@ -209,7 +211,7 @@ Iterator<Map.Entry<Cell, byte[]>> getSortedColumns(
             allowedOnPath = ".*/src/test/.*", // Unsafe behavior in tests is ok.
             allowlistAnnotations = {ReviewedRestrictedApiUsage.class})
     @Idempotent
-    Map<Cell, byte[]> getWithExpectedNumberOfCells(
+    Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells);
 
     /**u}(jV  (25c0285d42b303d3c644584a374f8bab7df797a3j  Zatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CachingTransaction.javaj  modifiedj  Kj  Kj  K'j  https://github.com/palantir/atlasdb/blob/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javaj  https://github.com/palantir/atlasdb/raw/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.java?ref=82da62a5b5b233a9801a68e245c803eef8a2c9a4j  X  @@ -34,12 +34,14 @@
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionFailedException;
 import com.palantir.atlasdb.transaction.api.annotations.ReviewedRestrictedApiUsage;
+import com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 import com.palantir.common.base.Throwables;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.util.Pair;
+import com.palantir.util.result.Result;
 import java.util.Arrays;
 import java.util.Collection;
 import java.util.Collections;
@@ -138,10 +140,10 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
 
     @ReviewedRestrictedApiUsage
     @Override
-    public Map<Cell, byte[]> getWithExpectedNumberOfCells(
+    public Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {
         try {
-            return getWithLoader(tableRef, cells, (tableReference, cachedCells, toRead) -> {
+            return getWithResultLoader(tableRef, cells, (tableReference, cachedCells, toRead) -> {
                         long nonEmptyValuesInCache = cachedCells.values().stream()
                                 .filter(value -> !Arrays.equals(value, PtBytes.EMPTY_BYTE_ARRAY))
                                 .count();
@@ -164,10 +166,10 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(TableReference tableRef, Set
         return getWithLoader(tableRef, cells, (table, _cacheCells, cellsToLoad) -> super.getAsync(table, cellsToLoad));
     }
 
-    private ListenableFuture<Map<Cell, byte[]>> getWithLoader(
-            TableReference tableRef, Set<Cell> cells, CellLoader cellLoader) {
+    private ListenableFuture<Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException>> getWithResultLoader(
+            TableReference tableRef, Set<Cell> cells, CellResultLoader cellLoader) {
         if (cells.isEmpty()) {
-            return Futures.immediateFuture(ImmutableMap.of());
+            return Futures.immediateFuture(Result.ok(ImmutableMap.of()));
         }
 
         Set<Cell> toLoad = new HashSet<>();
@@ -186,13 +188,28 @@ private ListenableFuture<Map<Cell, byte[]>> getWithLoader(
         return Futures.transform(
                 cellLoader.load(tableRef, cacheHit, toLoad),
                 loadedCells -> {
-                    cacheLoadedCells(tableRef, toLoad, loadedCells);
-                    cacheHit.putAll(loadedCells);
-                    return cacheHit;
+                    if (loadedCells.isErr()) {
+                        return loadedCells;
+                    }
+
+                    cacheLoadedCells(tableRef, toLoad, loadedCells.unwrap());
+                    cacheHit.putAll(loadedCells.unwrap());
+                    return Result.ok(cacheHit);
                 },
                 MoreExecutors.directExecutor());
     }
 
+    private ListenableFuture<Map<Cell, byte[]>> getWithLoader(
+            TableReference tableRef, Set<Cell> cells, CellLoader cellLoader) {
+        CellResultLoader resultLoader = (table, cacheCells, cellsToLoad) -> {
+            ListenableFuture<Map<Cell, byte[]>> future = cellLoader.load(table, cacheCells, cellsToLoad);
+            return Futures.transform(future, Result::ok, MoreExecutors.directExecutor());
+        };
+
+        return Futures.transform(
+                getWithResultLoader(tableRef, cells, resultLoader), Result::unwrap, MoreExecutors.directExecutor());
+    }
+
     @Override
     public final void delete(TableReference tableRef, Set<Cell> cells) {
         super.delete(tableRef, cells);
@@ -302,4 +319,10 @@ private interface CellLoader {
         ListenableFuture<Map<Cell, byte[]>> load(
                 TableReference tableReference, Map<Cell, byte[]> cachedCells, Set<Cell> toRead);
     }
+
+    @FunctionalInterface
+    private interface CellResultLoader {
+        ListenableFuture<Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException>> load(
+                TableReference tableReference, Map<Cell, byte[]> cachedCells, Set<Cell> toRead);
+    }
 }u}(jV  (4a6f334414362595b4cacd610bdf15c6ee2b0976j  ]atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingTransaction.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.javaj  https://github.com/palantir/atlasdb/raw/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.java?ref=82da62a5b5b233a9801a68e245c803eef8a2c9a4j  XQ  @@ -30,8 +30,10 @@
 import com.palantir.atlasdb.transaction.api.TransactionFailedException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.annotations.ReviewedRestrictedApiUsage;
+import com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 import com.palantir.common.base.BatchingVisitable;
+import com.palantir.util.result.Result;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
@@ -86,7 +88,7 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
 
     @ReviewedRestrictedApiUsage
     @Override
-    public Map<Cell, byte[]> getWithExpectedNumberOfCells(
+    public Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {
         return delegate().getWithExpectedNumberOfCells(tableRef, cells, expectedNumberOfPresentCells);
     }u}(jV  (e941b3dfee2e88588264aa8255d7f1d655ebe74ej  Watlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ReadTransaction.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj  https://github.com/palantir/atlasdb/raw/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.java?ref=82da62a5b5b233a9801a68e245c803eef8a2c9a4j  X~  @@ -27,9 +27,11 @@
 import com.palantir.atlasdb.table.description.SweeperStrategy;
 import com.palantir.atlasdb.transaction.api.GetRangesQuery;
 import com.palantir.atlasdb.transaction.api.annotations.ReviewedRestrictedApiUsage;
+import com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException;
 import com.palantir.common.base.BatchingVisitable;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.util.result.Result;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
@@ -67,7 +69,7 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
 
     @ReviewedRestrictedApiUsage
     @Override
-    public Map<Cell, byte[]> getWithExpectedNumberOfCells(
+    public Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {
         checkTableName(tableRef);
         return delegate.getWithExpectedNumberOfCells(tableRef, cells, expectedNumberOfPresentCells);u}(jV  (7069616d58d06eb71d5ff0d2c105e02fb674e1f9j  ?atlasdb-commons/src/main/java/com/palantir/util/result/Err.javaj  addedj  K*j  K j  K*j  https://github.com/palantir/atlasdb/blob/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FErr.javaj  https://github.com/palantir/atlasdb/raw/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FErr.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FErr.java?ref=82da62a5b5b233a9801a68e245c803eef8a2c9a4j  X  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util.result;
+
+import com.palantir.logsafe.exceptions.SafeRuntimeException;
+
+final class Err<T, E> implements Result<T, E> {
+    private final E error;
+
+    Err(E error) {
+        this.error = error;
+    }
+
+    @Override
+    public boolean isOk() {
+        return false;
+    }
+
+    @Override
+    public T unwrap() {
+        throw new SafeRuntimeException("Called unwrap() on an Err value");
+    }
+
+    @Override
+    public E unwrapErr() {
+        return error;
+    }
+}u}(jV  (d3a6099713f9f3f5083adbb5f6665fd54b686b0dj  >atlasdb-commons/src/main/java/com/palantir/util/result/Ok.javaj  addedj  K*j  K j  K*j  https://github.com/palantir/atlasdb/blob/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FOk.javaj  https://github.com/palantir/atlasdb/raw/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FOk.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FOk.java?ref=82da62a5b5b233a9801a68e245c803eef8a2c9a4j  X  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util.result;
+
+import com.palantir.logsafe.exceptions.SafeRuntimeException;
+
+final class Ok<T, E> implements Result<T, E> {
+    private final T value;
+
+    Ok(T value) {
+        this.value = value;
+    }
+
+    @Override
+    public boolean isOk() {
+        return true;
+    }
+
+    @Override
+    public T unwrap() {
+        return value;
+    }
+
+    @Override
+    public E unwrapErr() {
+        throw new SafeRuntimeException("Called unwrapErr on an Ok value");
+    }
+}u}(jV  (dd9cc35b63d4d1ffa2befb1e8d37f14c7fb2dccbj  Batlasdb-commons/src/main/java/com/palantir/util/result/Result.javaj  addedj  K&j  K j  K&j  https://github.com/palantir/atlasdb/blob/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FResult.javaj  https://github.com/palantir/atlasdb/raw/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FResult.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FResult.java?ref=82da62a5b5b233a9801a68e245c803eef8a2c9a4j  X  @@ -0,0 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util.result;
+
+public interface Result<T, E> {
+
+    static <T, E> Result<T, E> ok(T value) {
+        return new Ok<>(value);
+    }
+
+    static <T, E> Result<T, E> err(E error) {
+        return new Err<>(error);
+    }
+
+    boolean isOk();
+
+    default boolean isErr() {
+        return !isOk();
+    }
+
+    T unwrap();
+
+    E unwrapErr();
+}u}(jV  (6ef8704df2a6d43d19a551285979ccb62e6a46e4j  datlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaj  https://github.com/palantir/atlasdb/raw/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.java?ref=82da62a5b5b233a9801a68e245c803eef8a2c9a4j  X
  @@ -64,6 +64,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.TransactionSerializableConflictException;
 import com.palantir.atlasdb.transaction.api.annotations.ReviewedRestrictedApiUsage;
+import com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
 import com.palantir.atlasdb.transaction.service.AsyncTransactionService;
@@ -84,6 +85,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.util.Pair;
+import com.palantir.util.result.Result;
 import java.nio.ByteBuffer;
 import java.util.ArrayList;
 import java.util.Collections;
@@ -327,10 +329,10 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
     @ReviewedRestrictedApiUsage
     @Override
     @Idempotent
-    public Map<Cell, byte[]> getWithExpectedNumberOfCells(
+    public Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {
         try {
-            return getWithLoader(
+            return getWithResultLoader(
                             tableRef,
                             cells,
                             (tableReference, toRead) -> Futures.immediateFuture(super.getWithExpectedNumberOfCells(
@@ -356,10 +358,25 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(TableReference tableRef, Set
      */
     @VisibleForTesting
     ListenableFuture<Map<Cell, byte[]>> getWithLoader(TableReference tableRef, Set<Cell> cells, CellLoader cellLoader) {
+        CellResultLoader resultLoader = (table, toRead) -> {
+            ListenableFuture<Map<Cell, byte[]>> future = cellLoader.load(table, toRead);
+            return Futures.transform(future, Result::ok, MoreExecutors.directExecutor());
+        };
+
+        return Futures.transform(
+                getWithResultLoader(tableRef, cells, resultLoader), Result::unwrap, MoreExecutors.directExecutor());
+    }
+
+    private ListenableFuture<Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException>> getWithResultLoader(
+            TableReference tableRef, Set<Cell> cells, CellResultLoader cellLoader) {
         return Futures.transform(
                 cellLoader.load(tableRef, cells),
                 loadedCells -> {
-                    markCellsRead(tableRef, cells, loadedCells);
+                    if (loadedCells.isErr()) {
+                        return loadedCells;
+                    }
+
+                    markCellsRead(tableRef, cells, loadedCells.unwrap());
                     return loadedCells;
                 },
                 MoreExecutors.directExecutor());
@@ -371,6 +388,12 @@ interface CellLoader {
         ListenableFuture<Map<Cell, byte[]>> load(TableReference tableReference, Set<Cell> toRead);
     }
 
+    @FunctionalInterface
+    private interface CellResultLoader {
+        ListenableFuture<Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException>> load(
+                TableReference tableReference, Set<Cell> toRead);
+    }
+
     @Override
     @Idempotent
     public BatchingVisitable<RowResult<byte[]>> getRange(TableReference tableRef, RangeRequest rangeRequest) {u}(jV  (3cbd99afee26eee6b9405c8dea74a945d8940bb2j  `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj  modifiedj  Kj  Kj  K"j  https://github.com/palantir/atlasdb/blob/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj  https://github.com/palantir/atlasdb/raw/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=82da62a5b5b233a9801a68e245c803eef8a2c9a4j  X  @@ -97,6 +97,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
@@ -145,6 +146,7 @@
 import com.palantir.util.AssertUtils;
 import com.palantir.util.RateLimitedLogger;
 import com.palantir.util.paging.TokenBackedBasicResultsPage;
+import com.palantir.util.result.Result;
 import java.nio.ByteBuffer;
 import java.time.Duration;
 import java.time.temporal.ChronoUnit;
@@ -920,21 +922,25 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
     }
 
     @Override
-    public Map<Cell, byte[]> getWithExpectedNumberOfCells(
+    public Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {
-        return getCache().getWithCachedRef(tableRef, cells, cacheLookupResult -> {
-            long cachedCellsWithNonEmptyValue = CellCountValidator.validateCacheAndGetNonEmptyValuesCount(
-                    expectedNumberOfPresentCells, cacheLookupResult.cacheHits());
-            long numberOfCellsExpectingValuePostCache = expectedNumberOfPresentCells - cachedCellsWithNonEmptyValue;
-
-            return getInternal(
-                    "getWithExpectedNumberOfCells",
-                    tableRef,
-                    cacheLookupResult.missedCells(),
-                    numberOfCellsExpectingValuePostCache,
-                    immediateKeyValueService,
-                    immediateTransactionService);
-        });
+        try {
+            return Result.ok(getCache().getWithCachedRef(tableRef, cells, cacheLookupResult -> {
+                long cachedCellsWithNonEmptyValue = CellCountValidator.validateCacheAndGetNonEmptyValuesCount(
+                        expectedNumberOfPresentCells, cacheLookupResult.cacheHits());
+                long numberOfCellsExpectingValuePostCache = expectedNumberOfPresentCells - cachedCellsWithNonEmptyValue;
+
+                return getInternal(
+                        "getWithExpectedNumberOfCells",
+                        tableRef,
+                        cacheLookupResult.missedCells(),
+                        numberOfCellsExpectingValuePostCache,
+                        immediateKeyValueService,
+                        immediateTransactionService);
+            }));
+        } catch (MoreCellsPresentThanExpectedException e) {
+            return Result.err(e);
+        }
     }
 
     @Overrideu}(jV  (90280f96546fdea75d5d09270ac4db76fd0d518aj  eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj  modifiedj  K)j  Kj  KCj  https://github.com/palantir/atlasdb/blob/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj  https://github.com/palantir/atlasdb/raw/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=82da62a5b5b233a9801a68e245c803eef8a2c9a4j  Xp#  @@ -135,6 +135,7 @@
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import com.palantir.util.result.Result;
 import io.vavr.collection.HashMap;
 import io.vavr.collection.HashSet;
 import java.math.BigInteger;
@@ -1662,7 +1663,11 @@ public void skipImmutableTimestampLockCheckIfReadingEqualsExpectedNumberOfValues
         Transaction transaction = getSnapshotTransactionWith(
                 spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
 
-        transaction.getWithExpectedNumberOfCells(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 1);
+        Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> result =
+                transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 1);
+        assertThat(result.isOk()).isTrue();
+
         transaction.commit();
         spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
 
@@ -1680,8 +1685,10 @@ public void performImmutableTimestampLocksIfReadingLessThanExpectedNumberOfValue
         Transaction transaction = getSnapshotTransactionWith(
                 spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
 
-        transaction.getWithExpectedNumberOfCells(
-                TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2);
+        Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> result =
+                transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2);
+        assertThat(result.isOk()).isTrue();
         transaction.commit();
         spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
 
@@ -1699,10 +1706,11 @@ public void throwsIfReadingMoreThanExpectedNumberOfValues() {
         Transaction transaction = getSnapshotTransactionWith(
                 spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
 
-        assertThatThrownBy(() -> transaction.getWithExpectedNumberOfCells(
-                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 1))
-                .isInstanceOf(MoreCellsPresentThanExpectedException.class)
-                .hasMessageContaining("KeyValueService returned more results than Get expected");
+        Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> result =
+                transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 1);
+        assertThat(result.isErr()).isTrue();
+        assertThat(result.unwrapErr().getFetchedCells()).containsKeys(TEST_CELL, TEST_CELL_2);
 
         verify(spiedTimeLockService, never()).refreshLockLeases(any());
     }
@@ -1729,9 +1737,10 @@ public void keepNumberOfExpectedCellsTheSameIfNoneCached() {
         Transaction transaction = transactionWrapper.apply(spiedSnapshotTransaction, pathTypeTracker);
 
         // Fetching 3 cells, but expect only 2 to be present, for example
-        assertThatCode(() -> transaction.getWithExpectedNumberOfCells(
-                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2))
-                .doesNotThrowAnyException();
+        Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> result =
+                transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2);
+        assertThat(result.isOk()).isTrue();
 
         // We shouldn't check for locks even though we haven't fetched all 3 cells, because we fetched 2 and passed
         // that as the expected value
@@ -1767,9 +1776,10 @@ public void reduceCachedCellsFromNumberOfExpectedCells() {
         Transaction transaction = transactionWrapper.apply(spiedSnapshotTransaction, pathTypeTracker);
 
         // Fetching 3 cells, but expect only 2 to be present, for example
-        assertThatCode(() -> transaction.getWithExpectedNumberOfCells(
-                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2))
-                .doesNotThrowAnyException();
+        Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> result =
+                transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2);
+        assertThat(result.isOk()).isTrue();
 
         // We shouldn't check for locks even though we haven't fetched all 3 cells, because we fetched 2 and passed
         // that as the expected value
@@ -1805,9 +1815,10 @@ public void keepNumberOfExpectedCellsIfCachedWithEmptyValue() {
         Transaction transaction = transactionWrapper.apply(spiedSnapshotTransaction, pathTypeTracker);
 
         // Fetching 3 cells, but expect only 2 to be present, for example
-        assertThatCode(() -> transaction.getWithExpectedNumberOfCells(
-                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2))
-                .doesNotThrowAnyException();
+        Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> result =
+                transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2);
+        assertThat(result.isOk()).isTrue();
 
         // We shouldn't check for locks even though we haven't fetched all 3 cells, because we fetched 2 and passed
         // that as the expected value
@@ -1848,9 +1859,10 @@ public void dontFetchCellsIfAllCachedButPropagateWithEmptyRequest() {
                 spy(getSnapshotTransactionWith(transactionTs, res, mockLockWatchManager, pathTypeTracker));
         Transaction transaction = transactionWrapper.apply(spiedSnapshotTransaction, pathTypeTracker);
 
-        assertThatCode(() -> transaction.getWithExpectedNumberOfCells(
-                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 2))
-                .doesNotThrowAnyException();
+        Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> result =
+                transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 2);
+        assertThat(result.isOk()).isTrue();
 
         verify(spiedTimeLockService, never()).refreshLockLeases(any());
         verify(spiedSnapshotTransaction)
@@ -1871,12 +1883,12 @@ public void throwsIfAllValuesCachedButMoreThanExpectedPresent() {
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
 
-        Map<Cell, byte[]> cachedValues = Map.of(
+        Map<Cell, byte[]> cacheContent = Map.of(
                 TEST_CELL,
                 "someValue".getBytes(StandardCharsets.UTF_8),
                 TEST_CELL_2,
                 "someOtherValue".getBytes(StandardCharsets.UTF_8));
-        TransactionScopedCache txnCache = createCacheWithEntries(TABLE_SWEPT_THOROUGH, cachedValues);
+        TransactionScopedCache txnCache = createCacheWithEntries(TABLE_SWEPT_THOROUGH, cacheContent);
 
         LockWatchManagerInternal mockLockWatchManager = mock(LockWatchManagerInternal.class);
         when(mockLockWatchManager.getTransactionScopedCache(anyLong())).thenReturn(txnCache);
@@ -1886,13 +1898,16 @@ public void throwsIfAllValuesCachedButMoreThanExpectedPresent() {
                 spy(getSnapshotTransactionWith(transactionTs, res, mockLockWatchManager, pathTypeTracker));
         Transaction transaction = transactionWrapper.apply(spiedSnapshotTransaction, pathTypeTracker);
 
-        assertThatLoggableExceptionThrownBy(() -> transaction.getWithExpectedNumberOfCells(
-                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 1))
-                .isInstanceOf(MoreCellsPresentThanExpectedException.class)
-                .hasExactlyArgs(
+        Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> result =
+                transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 1);
+        assertThat(result.isErr()).isTrue();
+        assertThat(result.unwrapErr().getFetchedCells()).isEqualTo(cacheContent);
+        assertThat(result.unwrapErr().getArgs())
+                .containsExactlyInAnyOrder(
                         SafeArg.of("expectedNumberOfCells", 1L),
                         SafeArg.of("numberOfCellsRetrieved", 2),
-                        UnsafeArg.of("retrievedCells", cachedValues));
+                        UnsafeArg.of("retrievedCells", cacheContent));
 
         verify(spiedTimeLockService, never()).refreshLockLeases(any());
         verify(spiedSnapshotTransaction, never())ueu(95319b3810b65eb1de3bfc0aceea137ab1bab294}(sha(95319b3810b65eb1de3bfc0aceea137ab1bab294node_idEC_kwDOAjP5fdoAKDk1MzE5YjM4MTBiNjVlYjFkZTNiZmMwYWNlZWExMzdhYjFiYWIyOTQcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-05-23T14:27:31Zu	committer}(j%  svc-autoreleasej'  -pd-foundry-infrastructure-notify@palantir.comj)  2023-05-23T14:27:31ZumessageAutorelease 0.862.0

[skip ci]tree}(j  (c48be19848ba87cd55aa8772ad0a43d56d3d1c1aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/c48be19848ba87cd55aa8772ad0a43d56d3d1c1auj5  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/95319b3810b65eb1de3bfc0aceea137ab1bab294
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRszVoACgkQhbrR8ip7mDCctwEA1+pRijLZJaTCwQOYhR2qzGrT
dkHC1VIkbNt65okG9jYA/RtOusIXi6DDh0lQrw3kRkekKp2uKYVMEFJxu4/1q9Py
=z52K
-----END PGP SIGNATURE-----
payloadX0  tree c48be19848ba87cd55aa8772ad0a43d56d3d1c1a
parent 1922c8e9d4f263f1b2a0223242c93b5787ce12de
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684852051 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684852051 +0000

Autorelease 0.862.0

[skip ci]uuj5  ^https://api.github.com/repos/palantir/atlasdb/commits/95319b3810b65eb1de3bfc0aceea137ab1bab294html_urlShttps://github.com/palantir/atlasdb/commit/95319b3810b65eb1de3bfc0aceea137ab1bab294comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/95319b3810b65eb1de3bfc0aceea137ab1bab294/commentsj#  }(loginsvc-autoreleaseidJ(j  MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j5  ,https://api.github.com/users/svc-autoreleasejC  "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj+  }(jH  svc-autoreleasejJ  J(j  MDQ6VXNlcjUxNzE4MzQ2jL  4https://avatars.githubusercontent.com/u/51718346?v=4jN  h5j5  ,https://api.github.com/users/svc-autoreleasejC  "https://github.com/svc-autoreleasejQ  6https://api.github.com/users/svc-autorelease/followersjS  Chttps://api.github.com/users/svc-autorelease/following{/other_user}jU  <https://api.github.com/users/svc-autorelease/gists{/gist_id}jW  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jY  :https://api.github.com/users/svc-autorelease/subscriptionsj[  1https://api.github.com/users/svc-autorelease/orgsj]  2https://api.github.com/users/svc-autorelease/reposj_  =https://api.github.com/users/svc-autorelease/events{/privacy}ja  <https://api.github.com/users/svc-autorelease/received_eventsjc  Userje  uparents]}(j  (1922c8e9d4f263f1b2a0223242c93b5787ce12dej5  ^https://api.github.com/repos/palantir/atlasdb/commits/1922c8e9d4f263f1b2a0223242c93b5787ce12dejC  Shttps://github.com/palantir/atlasdb/commit/1922c8e9d4f263f1b2a0223242c93b5787ce12deuastats}(totalK 	additionsK 	deletionsK ufiles](}(j  (16fb8eee169fd963709ea4a7cfbd511308736f08filename changelog/0.862.0/pr-6506.v2.ymlstatusrenamedj  K j  K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/95319b3810b65eb1de3bfc0aceea137ab1bab294/changelog%2F0.862.0%2Fpr-6506.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/95319b3810b65eb1de3bfc0aceea137ab1bab294/changelog%2F0.862.0%2Fpr-6506.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.862.0%2Fpr-6506.v2.yml?ref=95319b3810b65eb1de3bfc0aceea137ab1bab294previous_filename$changelog/@unreleased/pr-6506.v2.ymlu}(j  (76e1a7993fd1a88f86737b4d470e05d637bc0990j   changelog/0.862.0/pr-6554.v2.ymlj  renamedj  K j  K j  K j  vhttps://github.com/palantir/atlasdb/blob/95319b3810b65eb1de3bfc0aceea137ab1bab294/changelog%2F0.862.0%2Fpr-6554.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/95319b3810b65eb1de3bfc0aceea137ab1bab294/changelog%2F0.862.0%2Fpr-6554.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.862.0%2Fpr-6554.v2.yml?ref=95319b3810b65eb1de3bfc0aceea137ab1bab294j  $changelog/@unreleased/pr-6554.v2.ymlueu(0ac33cc4f3344a0f1389f927c97ba1935c8d07aa}(sha(0ac33cc4f3344a0f1389f927c97ba1935c8d07aanode_idEC_kwDOAjP5fdoAKDBhYzMzY2M0ZjMzNDRhMGYxMzg5ZjkyN2M5N2JhMTkzNWM4ZDA3YWEcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-23T14:26:53Zu	committer}(j  	Tom Papkej  tpapke@palantir.comj  2023-06-23T14:26:53Zumessage	add finaltree}(j  (2a8603c81b91d5cc944ba4870cb303b216e54a25url`https://api.github.com/repos/palantir/atlasdb/git/trees/2a8603c81b91d5cc944ba4870cb303b216e54a25uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0ac33cc4f3344a0f1389f927c97ba1935c8d07aa
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSVq60ACgkQmF9s0kaF
Iw1H0wf9ENdND8Pgs3KlHcXJ9fex0kbqG3LvVgduvf0m3Lo1xZqZploe8i5N5OMW
/BR8pZshJ+tOrNM1d2HRRVRRi0k6Y9g5N7Lv8MqAMyMuei4KSVHaNcepXL2lO6x2
a/8BcdL9XfiE0WVjPk/WZSI4rcsBtaVFxpZDptoh4JA+BbXN+xbGQ9TZ7q5dVbb4
tm07XSkrJ7Ic0RzAVnXXk6FgwVTEPRlc+3Bo1oZfXGhDbJV1fSXws83X848beM7C
AssWwWTiZngkc9QKAoR2ZvdzbUEsn6DRAKs3C2YX6PXpP7ALtB7NbNUx42A8oV2u
iI/1yxLkS++BpHALfofW+VBoS6KgRw==
=TOC/
-----END PGP SIGNATURE-----payloadtree 2a8603c81b91d5cc944ba4870cb303b216e54a25
parent 9c7d625fb372e7b226db750237507723ae1d75cf
author Tom Papke <tpapke@palantir.com> 1687530413 +0100
committer Tom Papke <tpapke@palantir.com> 1687530413 +0100

add final
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/0ac33cc4f3344a0f1389f927c97ba1935c8d07aahtml_urlShttps://github.com/palantir/atlasdb/commit/0ac33cc4f3344a0f1389f927c97ba1935c8d07aacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0ac33cc4f3344a0f1389f927c97ba1935c8d07aa/commentsj  }(login	ToemmscheidJboj  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj  }(j  	Toemmschej  Jboj  MDQ6VXNlcjQzNjc1NDkwj  4https://avatars.githubusercontent.com/u/43675490?v=4j  h5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmschej  0https://api.github.com/users/Toemmsche/followersj  =https://api.github.com/users/Toemmsche/following{/other_user}j  6https://api.github.com/users/Toemmsche/gists{/gist_id}j  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j  4https://api.github.com/users/Toemmsche/subscriptionsj  +https://api.github.com/users/Toemmsche/orgsj  ,https://api.github.com/users/Toemmsche/reposj  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj  Userj  uparents]}(j  (9c7d625fb372e7b226db750237507723ae1d75cfj  ^https://api.github.com/repos/palantir/atlasdb/commits/9c7d625fb372e7b226db750237507723ae1d75cfj  Shttps://github.com/palantir/atlasdb/commit/9c7d625fb372e7b226db750237507723ae1d75cfuastats}(totalK	additionsK	deletionsKufiles]}(j  (a142393d4ca334b0f726742e65fb6e13632bb4befilenamePlock-impl/src/test/java/com/palantir/lock/impl/AdjustableBackgroundTaskTest.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/0ac33cc4f3344a0f1389f927c97ba1935c8d07aa/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0ac33cc4f3344a0f1389f927c97ba1935c8d07aa/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.java?ref=0ac33cc4f3344a0f1389f927c97ba1935c8d07aapatchX*  @@ -34,7 +34,7 @@ public class AdjustableBackgroundTaskTest {
      * Dummy deterministic scheduled executor service that cannot be shut down.
      * The default {@link DeterministicScheduler} throws an exception when calling {@link ExecutorService#isShutdown()}.
      */
-    private static class NeverShutdownDeterministicScheduler extends DeterministicScheduler {
+    private static final class NeverShutdownDeterministicScheduler extends DeterministicScheduler {
         @Override
         public boolean isShutdown() {
             return false;uau(31e633d4e6cd32ff2f231ceb04d4e8e766ad0bdf}(sha(31e633d4e6cd32ff2f231ceb04d4e8e766ad0bdfnode_idEC_kwDOAjP5fdoAKDMxZTYzM2Q0ZTZjZDMyZmYyZjIzMWNlYjA0ZDRlOGU3NjZhZDBiZGYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-11T08:38:58Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-04-11T08:38:58Zumessagethis should not be heretree}(j  (405ceac2adb5068f8f67ec130fc17f15db4bb9a4url`https://api.github.com/repos/palantir/atlasdb/git/trees/405ceac2adb5068f8f67ec130fc17f15db4bb9a4uj+  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/31e633d4e6cd32ff2f231ceb04d4e8e766ad0bdf
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ1HKIACgkQTLdFKain
zjzlxgf8CoXx4RcTr0zHm2m2kVYBdVSyVGPfabO4hNy8binPm3GIUQZAXaoDX0xs
dwILQxc/m6WEzttvYv783ZS+ZbHL/vzQJSKGAqHwKbhI8rzAy0fGqzyMVPoDETHI
ESgiwDE9fm+mHTufXmkXkqlGZnfwMkJlNkyihBoUKePhuwk3plrxdpSpEpedUtF7
d+KUG+sqV2UqxgdQXjllZOulrSvSprVyQZPccEuFSqTPofDjCeyK9R20Ni/g711q
sArq2Ad198BSBbHwFAPqaSCakNlhITB5ak2Z9cqeCkK0TedPF80X7G5Y2rGBiOMT
LfWbn4X/i/143gyhGhpacxKCzlQr3A==
=El69
-----END PGP SIGNATURE-----payloadtree 405ceac2adb5068f8f67ec130fc17f15db4bb9a4
parent f62f068385e972cf4264d923b31a90868542a739
author Jeremy Kong <jkong@palantir.com> 1681202338 +0800
committer Jeremy Kong <jkong@palantir.com> 1681202338 +0800

this should not be here
uuj+  ^https://api.github.com/repos/palantir/atlasdb/commits/31e633d4e6cd32ff2f231ceb04d4e8e766ad0bdfhtml_urlShttps://github.com/palantir/atlasdb/commit/31e633d4e6cd32ff2f231ceb04d4e8e766ad0bdfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/31e633d4e6cd32ff2f231ceb04d4e8e766ad0bdf/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j+  'https://api.github.com/users/jeremyk-91j9  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj!  }(j>  
jeremyk-91j@  JZ j  MDQ6VXNlcjU5NTU1MTA=jB  3https://avatars.githubusercontent.com/u/5955510?v=4jD  h5j+  'https://api.github.com/users/jeremyk-91j9  https://github.com/jeremyk-91jG  1https://api.github.com/users/jeremyk-91/followersjI  >https://api.github.com/users/jeremyk-91/following{/other_user}jK  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jM  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jO  5https://api.github.com/users/jeremyk-91/subscriptionsjQ  ,https://api.github.com/users/jeremyk-91/orgsjS  -https://api.github.com/users/jeremyk-91/reposjU  8https://api.github.com/users/jeremyk-91/events{/privacy}jW  7https://api.github.com/users/jeremyk-91/received_eventsjY  Userj[  uparents]}(j  (f62f068385e972cf4264d923b31a90868542a739j+  ^https://api.github.com/repos/palantir/atlasdb/commits/f62f068385e972cf4264d923b31a90868542a739j9  Shttps://github.com/palantir/atlasdb/commit/f62f068385e972cf4264d923b31a90868542a739uastats}(totalKv	additionsK 	deletionsKvufiles]}(j  (2a033df56bf36f26a0b72eee4829cabe63f8f8acfilenameZtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/LegacyAsyncTimeLockResource.javastatusremovedju  K jv  KvchangesKvblob_urlhttps://github.com/palantir/atlasdb/blob/f62f068385e972cf4264d923b31a90868542a739/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAsyncTimeLockResource.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f62f068385e972cf4264d923b31a90868542a739/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAsyncTimeLockResource.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAsyncTimeLockResource.java?ref=f62f068385e972cf4264d923b31a90868542a739patchX  @@ -1,118 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.timelock;
-
-import com.google.common.util.concurrent.Futures;
-import com.google.common.util.concurrent.ListenableFuture;
-import com.google.common.util.concurrent.MoreExecutors;
-import com.palantir.atlasdb.timelock.api.ConjureStartTransactionsRequest;
-import com.palantir.conjure.java.undertow.annotations.Handle;
-import com.palantir.conjure.java.undertow.annotations.HttpMethod;
-import com.palantir.lock.v2.IdentifiedTimeLockRequest;
-import com.palantir.lock.v2.ImmutableStartTransactionResponseV4;
-import com.palantir.lock.v2.LockImmutableTimestampResponse;
-import com.palantir.lock.v2.StartAtlasDbTransactionResponse;
-import com.palantir.lock.v2.StartAtlasDbTransactionResponseV3;
-import com.palantir.lock.v2.StartIdentifiedAtlasDbTransactionRequest;
-import com.palantir.lock.v2.StartIdentifiedAtlasDbTransactionResponse;
-import com.palantir.lock.v2.StartTransactionRequestV4;
-import com.palantir.lock.v2.StartTransactionResponseV4;
-import com.palantir.logsafe.Safe;
-import com.palantir.timestamp.TimestampRange;
-
-/**
- * This class exists as a simple migration of the asynchronous Jersey resources in {@link TimeLockResource}.
- *
- * New endpoints should not be added here; instead, they should be defined in Conjure.
- * Namespaces should respect the regular expression (?!(tl|lw)/)[a-zA-Z0-9_-]+. Requests will still be mapped here, but
- * we do not guarantee we will service them.
- */
-public final class LegacyAsyncTimeLockResource {
-    private final TimelockNamespaces namespaces;
-
-    public LegacyAsyncTimeLockResource(TimelockNamespaces namespaces) {
-        this.namespaces = namespaces;
-    }
-
-    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/fresh-timestamp")
-    public ListenableFuture<Long> getFreshTimestamp(@Safe @Handle.PathParam String namespace) {
-        return Futures.transform(
-                getTimelockService(namespace).getFreshTimestampsAsync(1),
-                TimestampRange::getLowerBound,
-                MoreExecutors.directExecutor());
-    }
-
-    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/fresh-timestamps")
-    public ListenableFuture<TimestampRange> getFreshTimestamps(
-            @Safe @Handle.PathParam String namespace,
-            @Safe @Handle.QueryParam(value = "number") int numTimestampsRequested) {
-        return getTimelockService(namespace).getFreshTimestampsAsync(numTimestampsRequested);
-    }
-
-    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/lock-immutable-timestamp")
-    public LockImmutableTimestampResponse lockImmutableTimestamp(
-            @Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedTimeLockRequest request) {
-        return getTimelockService(namespace).lockImmutableTimestamp(request);
-    }
-
-    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-atlasdb-transaction")
-    public StartAtlasDbTransactionResponse deprecatedStartTransactionV1(
-            @Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedTimeLockRequest request) {
-        return getTimelockService(namespace).deprecatedStartTransaction(request);
-    }
-
-    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-identified-atlasdb-transaction")
-    public StartIdentifiedAtlasDbTransactionResponse deprecatedStartTransactionV2(
-            @Safe @Handle.PathParam String namespace, @Handle.Body StartIdentifiedAtlasDbTransactionRequest request) {
-        return getTimelockService(namespace).startTransaction(request).toStartTransactionResponse();
-    }
-
-    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-atlasdb-transaction-v3")
-    public StartAtlasDbTransactionResponseV3 deprecatedStartTransactionV3(
-            @Safe @Handle.PathParam String namespace, @Handle.Body StartIdentifiedAtlasDbTransactionRequest request) {
-        return getTimelockService(namespace).startTransaction(request);
-    }
-
-    /**
-     * Returns a {@link StartTransactionResponseV4} which has a single immutable ts, and a range of timestamps to
-     * be used as start timestamps.
-     *
-     * It is guaranteed to have at least one usable timestamp matching the partition criteria in the returned timestamp
-     * range, but there is no other guarantee given. (It can be less than number of requested timestamps)
-     */
-    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-atlasdb-transaction-v4")
-    public ListenableFuture<StartTransactionResponseV4> startTransactions(
-            @Safe @Handle.PathParam String namespace, @Handle.Body StartTransactionRequestV4 request) {
-        ConjureStartTransactionsRequest conjureRequest = ConjureStartTransactionsRequest.builder()
-                .requestId(request.requestId())
-                .requestorId(request.requestorId())
-                .numTransactions(request.numTransactions())
-                .build();
-        return Futures.transform(
-                getTimelockService(namespace).startTransactionsWithWatches(conjureRequest),
-                newResponse -> ImmutableStartTransactionResponseV4.builder()
-                        .timestamps(newResponse.getTimestamps())
-                        .immutableTimestamp(newResponse.getImmutableTimestamp())
-                        .lease(newResponse.getLease())
-                        .build(),
-                MoreExecutors.directExecutor());
-    }
-
-    private AsyncTimelockService getTimelockService(String namespace) {
-        return namespaces.get(namespace).getTimelockService();
-    }
-}uau[      (e3164a479aa6dfd4338efeb8ffda57d10479aa54}(sha(e3164a479aa6dfd4338efeb8ffda57d10479aa54node_idEC_kwDOAjP5fdoAKGUzMTY0YTQ3OWFhNmRmZDQzMzhlZmViOGZmZGE1N2QxMDQ3OWFhNTQcommit}(author}(nameMohammed Daudaliemailmdaudali@palantir.comdate2023-02-24T14:47:04Zu	committer}(j  Mohammed Daudalij  mdaudali@palantir.comj  2023-02-24T14:47:04ZumessageSensure validator checks against previous topology when the current servers is emptytree}(j  (4fbe18e622c974a3f4086376beacd8f2941eb28eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/4fbe18e622c974a3f4086376beacd8f2941eb28euj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e3164a479aa6dfd4338efeb8ffda57d10479aa54
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE85NpmxiQII63+jWv1DJ7K5YIya0FAmP4zegACgkQ1DJ7K5YI
ya1OuQf8CjYQKp8YNFq+dRxFYgueVl+GOv2o+tNVen/pqKZNgq7fxpQWv+eZHnB8
HGrmFRkETLZHhSRntlDNF2TviCMrqmUIRtRyHzNlPKJX5reeu9k0JBh5/+WN0vM9
PAd5cJwdO8dKrk67P3mxjH97aYNxz/Cp0Mg1+eZfgxvqP+c38u0hy+Gog7vW4F+Y
ekv/yrO2P4uOq7F6RI7ep+1oajQK8m2XoBeOA8iVtxC4w4a4lb7ZetGyPdaF3OD+
UxLjH2B6uB97Mbik5RXXedB0U9W5jAY7cJ58rD/335rAQ4JxhZUm6FeOuhp2GbyM
IwqeEPAPX8/6lMijsT/EpwtEHmZ/GQ==
=WkBN
-----END PGP SIGNATURE-----payloadX8  tree 4fbe18e622c974a3f4086376beacd8f2941eb28e
parent 5a1845eed26712cd2eeb8775b1d0a4dd30f35ead
author Mohammed Daudali <mdaudali@palantir.com> 1677250024 +0000
committer Mohammed Daudali <mdaudali@palantir.com> 1677250024 +0000

ensure validator checks against previous topology when the current servers is empty
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/e3164a479aa6dfd4338efeb8ffda57d10479aa54html_urlShttps://github.com/palantir/atlasdb/commit/e3164a479aa6dfd4338efeb8ffda57d10479aa54comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e3164a479aa6dfd4338efeb8ffda57d10479aa54/commentsj  }(loginmdaudaliidJ j  MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5j  %https://api.github.com/users/mdaudalij  https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminuj  }(j  mdaudalij  J j  MDQ6VXNlcjE4MTI3NjQ=j  3https://avatars.githubusercontent.com/u/1812764?v=4j  h5j  %https://api.github.com/users/mdaudalij  https://github.com/mdaudalij  /https://api.github.com/users/mdaudali/followersj  <https://api.github.com/users/mdaudali/following{/other_user}j  5https://api.github.com/users/mdaudali/gists{/gist_id}j  <https://api.github.com/users/mdaudali/starred{/owner}{/repo}j  3https://api.github.com/users/mdaudali/subscriptionsj  *https://api.github.com/users/mdaudali/orgsj  +https://api.github.com/users/mdaudali/reposj  6https://api.github.com/users/mdaudali/events{/privacy}j  5https://api.github.com/users/mdaudali/received_eventsj  Userj  uparents]}(j  (5a1845eed26712cd2eeb8775b1d0a4dd30f35eadj  ^https://api.github.com/repos/palantir/atlasdb/commits/5a1845eed26712cd2eeb8775b1d0a4dd30f35eadj  Shttps://github.com/palantir/atlasdb/commit/5a1845eed26712cd2eeb8775b1d0a4dd30f35eaduastats}(totalKߌ	additionsK	deletionsK ufiles](}(j  (9430094d7eecbd5418346928435fda85dc2a46fdfilenamegatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraTopologyValidator.javastatusmodifiedj  K*j  KchangesKBblob_urlhttps://github.com/palantir/atlasdb/blob/e3164a479aa6dfd4338efeb8ffda57d10479aa54/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e3164a479aa6dfd4338efeb8ffda57d10479aa54/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.java?ref=e3164a479aa6dfd4338efeb8ffda57d10479aa54patchX  @@ -155,28 +155,46 @@ Set<CassandraServer> getNewHostsWithInconsistentTopologies(
         // This means currently we've no servers or no server without the get_host_ids endpoint.
         // Therefore, we need to come to a consensus on the new servers.
         if (currentServersWithoutSoftFailures.isEmpty()) {
-            Optional<ConsistentClusterTopology> maybeTopology = maybeGetConsistentClusterTopology(
+            ClusterTopologyResult topologyResultFromNewServers =
+                    maybeGetConsistentClusterTopology(newServersWithoutSoftFailures);
+            Map<CassandraServer, HostIdResult> newServersWithoutAnyFailures = EntryStream.of(
                             newServersWithoutSoftFailures)
-                    .agreedTopology();
-            maybeTopology.ifPresent(pastConsistentTopology::set);
-
-            return maybeTopology
-                    .<Set<CassandraServer>>map(topology ->
-                            Sets.difference(newServersWithoutSoftFailures.keySet(), topology.serversInConsensus()))
-                    .orElseGet(newServersWithoutSoftFailures::keySet);
+                    .filterValues(result -> result.type() == HostIdResult.Type.SUCCESS)
+                    .toMap();
+            return getNewHostsWithInconsistentTopologiesFromTopologyResult(
+                    topologyResultFromNewServers,
+                    newServersWithoutSoftFailures,
+                    newServersWithoutAnyFailures,
+                    newlyAddedHosts,
+                    allHosts.keySet());
         }
 
         // If a consensus can be reached from the current servers, filter all new servers which have the same set of
         // host ids. Accept dissent as such, but permit
         ClusterTopologyResult topologyFromCurrentServers =
                 maybeGetConsistentClusterTopology(currentServersWithoutSoftFailures);
-        switch (topologyFromCurrentServers.type()) {
+
+        return getNewHostsWithInconsistentTopologiesFromTopologyResult(
+                topologyFromCurrentServers,
+                newServersWithoutSoftFailures,
+                newServersWithoutSoftFailures,
+                newlyAddedHosts,
+                allHosts.keySet());
+    }
+
+    private Set<CassandraServer> getNewHostsWithInconsistentTopologiesFromTopologyResult(
+            ClusterTopologyResult topologyResult,
+            Map<CassandraServer, HostIdResult> newServersWithoutSoftFailures,
+            Map<CassandraServer, HostIdResult> serversToConsiderWhenNoQuorumPresent,
+            Set<CassandraServer> newlyAddedHosts,
+            Set<CassandraServer> allHosts) {
+        switch (topologyResult.type()) {
             case CONSENSUS:
                 Preconditions.checkState(
-                        topologyFromCurrentServers.agreedTopology().isPresent(),
+                        topologyResult.agreedTopology().isPresent(),
                         "Expected to have a consistent topology for a CONSENSUS result, but did not.");
                 ConsistentClusterTopology topology =
-                        topologyFromCurrentServers.agreedTopology().get();
+                        topologyResult.agreedTopology().get();
                 pastConsistentTopology.set(topology);
                 return EntryStream.of(newServersWithoutSoftFailures)
                         .removeValues(result -> result.type() == HostIdResult.Type.SUCCESS
@@ -196,43 +214,43 @@ Set<CassandraServer> getNewHostsWithInconsistentTopologies(
                     return newServersWithoutSoftFailures.keySet();
                 }
                 Optional<ConsistentClusterTopology> maybeTopology = maybeGetConsistentClusterTopology(
-                                newServersWithoutSoftFailures)
+                                serversToConsiderWhenNoQuorumPresent)
                         .agreedTopology();
                 if (maybeTopology.isEmpty()) {
                     log.info(
-                            "No quorum was detected among old servers, and new servers were also not in"
-                                    + " agreement. Not adding new servers in this case.",
+                            "No quorum was detected in original set of servers, and the filtered set of servers were"
+                                    + " also not in agreement. Not adding new servers in this case.",
                             SafeArg.of("newServers", CassandraLogHelper.collectionOfHosts(newlyAddedHosts)),
-                            SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts.keySet())));
+                            SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts)));
                     return newServersWithoutSoftFailures.keySet();
                 }
                 ConsistentClusterTopology newNodesAgreedTopology = maybeTopology.get();
                 if (!newNodesAgreedTopology
                         .hostIds()
                         .equals(pastConsistentTopology.get().hostIds())) {
                     log.info(
-                            "No quorum was detected among old servers. While new servers could reach a consensus, this"
-                                + " differed from the last agreed value among the old servers. Not adding new servers"
-                                + " in this case.",
+                            "No quorum was detected among the original set of servers. While a filtered set of"
+                                    + " servers could reach a consensus, this differed from the last agreed value"
+                                    + " among the old servers. Not adding new servers in this case.",
                             SafeArg.of("pastConsistentTopology", pastConsistentTopology.get()),
                             SafeArg.of("newNodesAgreedTopology", newNodesAgreedTopology),
                             SafeArg.of("newServers", CassandraLogHelper.collectionOfHosts(newlyAddedHosts)),
-                            SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts.keySet())));
+                            SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts)));
                     return newServersWithoutSoftFailures.keySet();
                 }
                 log.info(
-                        "No quorum was detected among old servers. New servers reached a consensus that matched the"
-                            + " last agreed value among the old servers. Adding new servers that were in consensus.",
+                        "No quorum was detected among the original set of servers. A filtered set of servers reached"
+                                + " a consensus that matched the last agreed value among the old servers. Adding new"
+                                + " servers that were in consensus.",
                         SafeArg.of("pastConsistentTopology", pastConsistentTopology.get()),
                         SafeArg.of("newNodesAgreedTopology", newNodesAgreedTopology),
                         SafeArg.of("newServers", CassandraLogHelper.collectionOfHosts(newlyAddedHosts)),
-                        SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts.keySet())));
+                        SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts)));
                 return Sets.difference(
                         newServersWithoutSoftFailures.keySet(), newNodesAgreedTopology.serversInConsensus());
             default:
                 throw new SafeIllegalStateException(
-                        "Unexpected cluster topology result type",
-                        SafeArg.of("type", topologyFromCurrentServers.type()));
+                        "Unexpected cluster topology result type", SafeArg.of("type", topologyResult.type()));
         }
     }
 u}(j  (c0c7c2cd561dd6270270e8280999ba7cbe71591dj  katlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraTopologyValidatorTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e3164a479aa6dfd4338efeb8ffda57d10479aa54/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.javaj  https://github.com/palantir/atlasdb/raw/e3164a479aa6dfd4338efeb8ffda57d10479aa54/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.java?ref=e3164a479aa6dfd4338efeb8ffda57d10479aa54j  XQ.  @@ -224,7 +224,7 @@ public void validateNewlyAddedHostsReturnsNewHostsUnlessEndpointExistAndDoesMatc
     }
 
     @Test
-    public void validateNewlyAddedHostsNoNewHostsAddedIfOldHostsDoNotHaveQuorum() {
+    public void validateNewlyAddedHostsNoNewHostsAddedIfOldHostsDoNotHaveQuorumAndNoPreviousResultExists() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
         Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
         Set<String> hostsOffline = ImmutableSet.of(OLD_HOST_ONE, OLD_HOST_TWO);
@@ -238,9 +238,8 @@ public void validateNewlyAddedHostsNoNewHostsAddedIfOldHostsDoNotHaveQuorum() {
     @Test
     public void validateNewlyAddedHostsNewHostsAddedIfTheyAgreeWithOldHostsOnPreviousTopology() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
-        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts = EntryStream.of(allHosts)
-                .filterKeys(key -> OLD_HOSTS.contains(key.cassandraHostName()))
-                .toMap();
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
         Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
         Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
         Set<String> hostsOffline = ImmutableSet.of(OLD_HOST_ONE);
@@ -254,7 +253,8 @@ public void validateNewlyAddedHostsNewHostsAddedIfTheyAgreeWithOldHostsOnPreviou
     }
 
     @Test
-    public void validateNewlyAddedHostsNewHostsNotAddedIfTheyDisagreeWithOldHostsOnPreviousTopology() {
+    public void
+            validateNewlyAddedHostsNewHostsNotAddedIfTheyDisagreeWithOldHostsOnPreviousTopologyAndCurrentServersExist() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
         Map<CassandraServer, CassandraClientPoolingContainer> oldHosts = EntryStream.of(allHosts)
                 .filterKeys(key -> OLD_HOSTS.contains(key.cassandraHostName()))
@@ -278,6 +278,143 @@ public void validateNewlyAddedHostsNewHostsNotAddedIfTheyDisagreeWithOldHostsOnP
                 .containsExactlyElementsOf(newCassandraServers);
     }
 
+    @Test
+    public void returnsAllNewHostsIfNoConsensusOnNewHostsWhenNoQuorumAndCurrentServersExist() {
+        Iterator<String> uuidIterator = UUIDS.iterator();
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(oldCassandraServers, oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        filterContainers(allHosts, server -> !hostsOffline.contains(server))
+                .forEach(container ->
+                        setHostIds(ImmutableSet.of(container), HostIdResult.success(Set.of(uuidIterator.next()))));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(newCassandraServers, allHosts))
+                .as("rejects all servers when no quorum from all hosts and no quorum on new hosts")
+                .isEqualTo(newCassandraServers);
+    }
+
+    @Test
+    public void returnsAllNewHostsIfConsensusOnNewHostsDiffersFromPreviousWhenNoQuorumAndCurrentServersExist() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(oldCassandraServers, oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        setHostIds(
+                filterContainers(allHosts, server -> !hostsOffline.contains(server)),
+                HostIdResult.success(DIFFERENT_UUIDS));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(newCassandraServers, allHosts))
+                .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
+                .isEqualTo(newCassandraServers);
+    }
+
+    @Test
+    public void validateNewlyAddedHostsAddedIfAgreedWithOldHostsOnPreviousTopologyWhenNoQuorum() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(oldCassandraServers, oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(newCassandraServers, allHosts))
+                .as("accepts quorum from new hosts if they have the same host IDs as old topology")
+                .isEmpty();
+    }
+
+    @Test
+    public void validateNewlyAddedHostsAddedIfAgreedWithOldTopologyWhenNoQuorumAndNoCurrentServers() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> allCassandraServers = allHosts.keySet();
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(oldCassandraServers, oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(allCassandraServers, allHosts))
+                .as("accepts quorum from new hosts if they have the same host IDs as old topology when no current"
+                        + " servers")
+                .isEqualTo(oldCassandraServers);
+    }
+
+    @Test
+    public void returnsAllNewHostsIfNoConsensusOnAvailableHostsWhenNoQuorumAndNoCurrentServers() {
+        Iterator<String> uuidIterator = UUIDS.iterator();
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> allCassandraServers = allHosts.keySet();
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(oldCassandraServers, oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        filterContainers(allHosts, server -> !hostsOffline.contains(server))
+                .forEach(container ->
+                        setHostIds(ImmutableSet.of(container), HostIdResult.success(Set.of(uuidIterator.next()))));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(allCassandraServers, allHosts))
+                .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
+                .isEqualTo(allCassandraServers);
+    }
+
+    @Test
+    public void returnsAllNewHostsIfConsensusOnAvailableHostsDiffersFromPreviousWhenNoQuorumAndNoCurrentServers() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> allCassandraServers = allHosts.keySet();
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(oldCassandraServers, oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        setHostIds(
+                filterContainers(allHosts, server -> !hostsOffline.contains(server)),
+                HostIdResult.success(DIFFERENT_UUIDS));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(allCassandraServers, allHosts))
+                .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
+                .isEqualTo(allCassandraServers);
+    }
+
     @Test
     public void validateNewlyAddedHostsNoNewHostsAddedIfNewHostsDoNotHaveQuorumAndNoCurrentServers() {
         Set<String> hosts = ImmutableSet.<String>builder()
@@ -338,12 +475,16 @@ public Set<CassandraClientPoolingContainer> filterContainers(
                 .toSet();
     }
 
-    public Set<CassandraServer> filterServers(
+    public Map<CassandraServer, CassandraClientPoolingContainer> filterServerToContainerMap(
             Map<CassandraServer, CassandraClientPoolingContainer> hosts, Predicate<String> filter) {
         return EntryStream.of(hosts)
                 .filterKeys(cassandraServer -> filter.test(cassandraServer.cassandraHostName()))
-                .keys()
-                .toSet();
+                .toMap();
+    }
+
+    public Set<CassandraServer> filterServers(
+            Map<CassandraServer, CassandraClientPoolingContainer> hosts, Predicate<String> filter) {
+        return filterServerToContainerMap(hosts, filter).keySet();
     }
 
     private static CassandraServer createCassandraServer(String hostname) {ueu(1a3ecaf2b029402d82002a4a00dd5ecd71d2fdcc}(sha(1a3ecaf2b029402d82002a4a00dd5ecd71d2fdccnode_idEC_kwDOAjP5fdoAKDFhM2VjYWYyYjAyOTQwMmQ4MjAwMmE0YTAwZGQ1ZWNkNzFkMmZkY2Mcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-07T18:24:33Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-06-07T18:24:33Zumessagespotlesstree}(j	  (0690311977c058c95fec478be3186c4fe438b653url`https://api.github.com/repos/palantir/atlasdb/git/trees/0690311977c058c95fec478be3186c4fe438b653uj!  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1a3ecaf2b029402d82002a4a00dd5ecd71d2fdcc
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSAy2EACgkQTLdFKain
zjyA8gf9EPHbH+v+QVLaliIwINss/lN3Lr2vh8KCm/8xbAmX9vtlQFXCpyy1Ewq5
wdOqv5i5sJC/vtAuF8le25gETvO5l7Uuj/LYyliQPDTJJnOxGzFeGNxwkYI3xVty
QPit7umU7RrWazbewEr0DMz1p6hjY1iqqRj1sPA7iEF7JuvxzI9o9COd1E45Q6cB
Wg1/Hbo+dHw0Wz9DTNtmH5tUD5Eq8tbpFPQxVgHH0ngsKhaif7m0atTBcW3ayLht
7rnV0nKj08HM4S4QyVGqKz3qqi3xKWiwtrEnlim8UgSaIEwOxAQD+vKa6d+YKh+J
ESBWm95vZr3W9bvWs2u814DzSGxynA==
=/rac
-----END PGP SIGNATURE-----payloadtree 0690311977c058c95fec478be3186c4fe438b653
parent 2a4f35ca5c0f3d11e0e10881aebf1db5f057c754
author Jeremy Kong <jkong@palantir.com> 1686162273 +0100
committer Jeremy Kong <jkong@palantir.com> 1686162273 +0100

spotless
uuj!  ^https://api.github.com/repos/palantir/atlasdb/commits/1a3ecaf2b029402d82002a4a00dd5ecd71d2fdcchtml_urlShttps://github.com/palantir/atlasdb/commit/1a3ecaf2b029402d82002a4a00dd5ecd71d2fdcccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1a3ecaf2b029402d82002a4a00dd5ecd71d2fdcc/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j!  'https://api.github.com/users/jeremyk-91j/  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j4  
jeremyk-91j6  JZ j  MDQ6VXNlcjU5NTU1MTA=j8  3https://avatars.githubusercontent.com/u/5955510?v=4j:  h5j!  'https://api.github.com/users/jeremyk-91j/  https://github.com/jeremyk-91j=  1https://api.github.com/users/jeremyk-91/followersj?  >https://api.github.com/users/jeremyk-91/following{/other_user}jA  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jC  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jE  5https://api.github.com/users/jeremyk-91/subscriptionsjG  ,https://api.github.com/users/jeremyk-91/orgsjI  -https://api.github.com/users/jeremyk-91/reposjK  8https://api.github.com/users/jeremyk-91/events{/privacy}jM  7https://api.github.com/users/jeremyk-91/received_eventsjO  UserjQ  uparents]}(j	  (2a4f35ca5c0f3d11e0e10881aebf1db5f057c754j!  ^https://api.github.com/repos/palantir/atlasdb/commits/2a4f35ca5c0f3d11e0e10881aebf1db5f057c754j/  Shttps://github.com/palantir/atlasdb/commit/2a4f35ca5c0f3d11e0e10881aebf1db5f057c754uastats}(totalK	additionsK	deletionsKufiles]}(j	  (7a735315ccb4c6f11509bd621df619cc89f3a978filenamelatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javastatusmodifiedjk  Kjl  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/1a3ecaf2b029402d82002a4a00dd5ecd71d2fdcc/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1a3ecaf2b029402d82002a4a00dd5ecd71d2fdcc/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=1a3ecaf2b029402d82002a4a00dd5ecd71d2fdccpatchX3  @@ -49,7 +49,6 @@
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.stream.Collectors;
-import org.jetbrains.annotations.NotNull;
 import org.junit.Test;
 
 public class TransientRowsWorkflowsTest {
@@ -199,8 +198,7 @@ public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
         WitnessedReadTransactionAction readWitness = WitnessedReadTransactionAction.of(
                 TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
         WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
-        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {
-        }))
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Expected to find a read of the summary row")
                 .hasExactlyArgs(SafeArg.of("actions", ImmutableList.of(readWitness)));
@@ -214,8 +212,7 @@ public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCor
                 WitnessedReadTransactionAction.of(
                         TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
         WorkflowHistory history = getWorkflowHistory(actions);
-        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {
-        }))
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Expected to find a read of a corresponding normal row")
                 .hasExactlyArgs(SafeArg.of("actions", actions));uau(1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7}(sha(1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7node_idEC_kwDOAjP5fdoAKDFlZjUyZWUyMGViZmZhM2Y2N2QzY2MyNGNjNzgzNDVjMjVlN2I4Yjccommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-04-03T14:16:41Zu	committer}(j  GitHubj  noreply@github.comj  2023-04-03T14:16:41Zumessage6Improve Sqlite namespace loader implementation (#6488)tree}(j  (7c03645afa9570d0b7091db7c747bad2ea051433url`https://api.github.com/repos/palantir/atlasdb/git/trees/7c03645afa9570d0b7091db7c747bad2ea051433uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkKt/JCRBK7hj4Ov3rIwAAqpoIAFkH028JdkZ8zPe7u/SKpkjb
aHVlvUPPzsg9RESeAegrLl/wfMHuoCpwjAht6UXV12ZWbr8sqUMOA4A/XulF6ugx
Zl07QCf/B1b9zrZKNcLVMhN5CLGhbOCPCS8HAAoW34PPV0JNJCOwL+jMYmFNVs2/
VEC8NLixE13eb5GU58NRQQCmkg1fMz8ihtbM5g/kJl1PfcMkOYqe8QgxWiET+W3B
n3FAzcJde6KNtPFfRLm7P+78GRh1G2SD+4gZBqPqzVhy0lWDbIPMS4AqqrUGxgf1
J3CS/EowaXLDD+QPmnwBUq2K29wLitxCInKDJ6r+I8JpuhwgXtn7qpUkpcgD1+o=
=Ycnu
-----END PGP SIGNATURE-----
payloadX  tree 7c03645afa9570d0b7091db7c747bad2ea051433
parent 278dfd0688276188ce1df0c2201b51e9e6bfccb2
author aalouane <30903736+ergo14@users.noreply.github.com> 1680531401 +0100
committer GitHub <noreply@github.com> 1680531401 +0000

Improve Sqlite namespace loader implementation (#6488)

 uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7html_urlShttps://github.com/palantir/atlasdb/commit/1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j  (278dfd0688276188ce1df0c2201b51e9e6bfccb2j  ^https://api.github.com/repos/palantir/atlasdb/commits/278dfd0688276188ce1df0c2201b51e9e6bfccb2j  Shttps://github.com/palantir/atlasdb/commit/278dfd0688276188ce1df0c2201b51e9e6bfccb2uastats}(totalK.	additionsK$	deletionsK
ufiles](}(j  (d950412e3468eb3c6435b88c85e31c8234c831c5filename$changelog/@unreleased/pr-6488.v2.ymlstatusaddedj  Kj  K changesKblob_url|https://github.com/palantir/atlasdb/blob/1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7/changelog%2F%40unreleased%2Fpr-6488.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7/changelog%2F%40unreleased%2Fpr-6488.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6488.v2.yml?ref=1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Improve Sqlite namespace loader implementation
+  links:
+  - https://github.com/palantir/atlasdb/pull/6488u}(j  (88bd214a5821cbc0c51c4de2bb7212dc6f8ae78cj  Nleader-election-impl/src/main/java/com/palantir/paxos/SqlitePaxosStateLog.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FSqlitePaxosStateLog.javaj  https://github.com/palantir/atlasdb/raw/1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FSqlitePaxosStateLog.javaj  https://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FSqlitePaxosStateLog.java?ref=1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7j  X  @@ -17,8 +17,8 @@
 package com.palantir.paxos;
 
 import com.palantir.common.persist.Persistable;
+import java.util.Optional;
 import java.util.OptionalLong;
-import java.util.Set;
 import java.util.function.Function;
 import javax.sql.DataSource;
 import org.jdbi.v3.core.Jdbi;
@@ -138,7 +138,9 @@ <V extends Persistable & Versionable> boolean[] writeBatchOfRounds(
                 @Bind("useCase") String useCase,
                 @BindPojo("round") Iterable<PaxosRound<V>> rounds);
 
-        @SqlQuery("SELECT DISTINCT(namespace) FROM paxosLog")
-        Set<String> getAllNamespaces();
+        // This is performant as long as the query plan is SEARCH.
+        @SqlQuery("SELECT MIN(namespace) FROM paxosLog WHERE namespace > :maybeLastReadNamespace")
+        Optional<String> getNextLexicographicallySmallestNamespace(
+                @Bind("maybeLastReadNamespace") String maybeLastReadNamespace);
     }
 }u}(j  (81f2ab027cd69727dec27f2b9a0f6a7d1ad868b2j  9timelock-api/src/main/conjure/timelock-management-api.ymlj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymlj  https://github.com/palantir/atlasdb/raw/1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.yml?ref=1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7j  X  @@ -10,7 +10,8 @@ services:
         returns: set<string>
         docs: |
           The endpoint loads all persisted namespaces. ``leaderPaxos`` is filtered out from the set
-          as it is not a namespace.
+          as it is not a namespace. No transactionality guarantees are given: namespace additions and
+          deletions while the request is running may or may not be reflected in the output.
 
       getActiveNamespaces:
         http: POST /getActiveNamespacesu}(j  (f51d42df113edf4565c16d14a214a1259f59b6ecj  ctimelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/PersistentNamespaceLoader.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FPersistentNamespaceLoader.javaj  https://github.com/palantir/atlasdb/raw/1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FPersistentNamespaceLoader.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FPersistentNamespaceLoader.java?ref=1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7j  X  @@ -22,6 +22,8 @@
 public interface PersistentNamespaceLoader {
     /**
      * Gets all namespaces that have been persisted (via the persistence method under question).
+     * No transactionality guarantees are given: namespace additions and deletions while the
+     * request is running may or may not be reflected in the output.
      */
     Set<Client> getAllPersistedNamespaces();
 }u}(j  (9fe3888160a6f9940e4ac562b73f4e9b808e9a3cj  _timelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/SqliteNamespaceLoader.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FSqliteNamespaceLoader.javaj  https://github.com/palantir/atlasdb/raw/1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FSqliteNamespaceLoader.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FSqliteNamespaceLoader.java?ref=1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7j  X7  @@ -18,13 +18,16 @@
 
 import com.palantir.paxos.Client;
 import com.palantir.paxos.SqlitePaxosStateLog;
+import java.util.HashSet;
+import java.util.Optional;
 import java.util.Set;
-import java.util.stream.Collectors;
 import javax.sql.DataSource;
 import org.jdbi.v3.core.Jdbi;
 import org.jdbi.v3.sqlobject.SqlObjectPlugin;
 
 final class SqliteNamespaceLoader implements PersistentNamespaceLoader {
+    private static final String EMPTY_STRING = "";
+
     private final Jdbi jdbi;
 
     private SqliteNamespaceLoader(Jdbi jdbi) {
@@ -39,10 +42,23 @@ public static PersistentNamespaceLoader create(DataSource dataSource) {
 
     @Override
     public Set<Client> getAllPersistedNamespaces() {
-        return jdbi
-                .withExtension(SqlitePaxosStateLog.Queries.class, SqlitePaxosStateLog.Queries::getAllNamespaces)
-                .stream()
-                .map(Client::of)
-                .collect(Collectors.toSet());
+        Set<Client> clients = new HashSet<>();
+
+        // Namespaces contain at least one character implying the empty string is lexicographically strictly smaller
+        // than any namespace.
+        Optional<String> currentNamespace = getNextLexicographicallySmallestNamespace(EMPTY_STRING);
+        while (currentNamespace.isPresent()) {
+            String namespaceString = currentNamespace.get();
+            clients.add(Client.of(namespaceString));
+            currentNamespace = getNextLexicographicallySmallestNamespace(namespaceString);
+        }
+
+        return clients;
+    }
+
+    private Optional<String> getNextLexicographicallySmallestNamespace(String maybeLastReadNamespace) {
+        return jdbi.withExtension(
+                SqlitePaxosStateLog.Queries.class,
+                dao -> dao.getNextLexicographicallySmallestNamespace(maybeLastReadNamespace));
     }
 }ueu(4f344c6d8ab4c4dc553c97d393e763ebef7c27e1}(sha(4f344c6d8ab4c4dc553c97d393e763ebef7c27e1node_idEC_kwDOAjP5fdoAKDRmMzQ0YzZkOGFiNGM0ZGM1NTNjOTdkMzkzZTc2M2ViZWY3YzI3ZTEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-23T15:46:06Zu	committer}(j  
Sam Kramerj!  skramer@palantir.comj#  2023-05-23T15:46:06Zumessage4Add webhook support to the antithesis publish scripttree}(j  (9a4ee1dc1f2b30b7ca73362d310e29b7b43e3a6aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/9a4ee1dc1f2b30b7ca73362d310e29b7b43e3a6auj/  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4f344c6d8ab4c4dc553c97d393e763ebef7c27e1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRs374ACgkQmPPOpKR4
XS1A2wf+LpC7vFIoQjOVuOKffsnkNRCnShJu7nZ8IcYcmXBPIqBquZwEl9KepWpj
Bp5HlBQ9J/rXwJI3+D74908K6AlBQoMCaWUdGuUwgw8I1Pn/vs/D6tBCz7mGFkBS
mc0lne1Fx521fLIbJ1Af4jSHr26Oh87XkbGgKg8AQJ8epuTntPTRsjPElUyEseri
vIeSLIgH11vpMz3ptNlGyNAQWPN6nk+2JlGviioOASMxlBSWIeQab7C5QWQgUu87
5DYjNnbf/QfbvPbrEd7IHbKCII6p0M/OPXpWYkJ3xZmB1TUdVLcD6wiK6TzgG/90
OP2AJxA2tosWEiURY6nERIfrouuNCQ==
=BHgb
-----END PGP SIGNATURE-----payloadX  tree 9a4ee1dc1f2b30b7ca73362d310e29b7b43e3a6a
parent 556a0a85a7424531ce43b62423c44e2571bd3c83
author Sam Kramer <skramer@palantir.com> 1684856766 +0100
committer Sam Kramer <skramer@palantir.com> 1684856766 +0100

Add webhook support to the antithesis publish script
uuj/  ^https://api.github.com/repos/palantir/atlasdb/commits/4f344c6d8ab4c4dc553c97d393e763ebef7c27e1html_urlShttps://github.com/palantir/atlasdb/commit/4f344c6d8ab4c4dc553c97d393e763ebef7c27e1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4f344c6d8ab4c4dc553c97d393e763ebef7c27e1/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j/  'https://api.github.com/users/Sam-Kramerj=  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj%  }(jB  
Sam-KramerjD  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=jF  3https://avatars.githubusercontent.com/u/6238814?v=4jH  h5j/  'https://api.github.com/users/Sam-Kramerj=  https://github.com/Sam-KramerjK  1https://api.github.com/users/Sam-Kramer/followersjM  >https://api.github.com/users/Sam-Kramer/following{/other_user}jO  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jQ  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jS  5https://api.github.com/users/Sam-Kramer/subscriptionsjU  ,https://api.github.com/users/Sam-Kramer/orgsjW  -https://api.github.com/users/Sam-Kramer/reposjY  8https://api.github.com/users/Sam-Kramer/events{/privacy}j[  7https://api.github.com/users/Sam-Kramer/received_eventsj]  Userj_  uparents]}(j  (556a0a85a7424531ce43b62423c44e2571bd3c83j/  ^https://api.github.com/repos/palantir/atlasdb/commits/556a0a85a7424531ce43b62423c44e2571bd3c83j=  Shttps://github.com/palantir/atlasdb/commit/556a0a85a7424531ce43b62423c44e2571bd3c83uastats}(totalK	additionsK	deletionsKufiles](}(j  (fca4058dbc26caa9697cc656bbc6258c44cc1cfefilenamegradle/docker.gradlestatusmodifiedjy  Kjz  K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/4f344c6d8ab4c4dc553c97d393e763ebef7c27e1/gradle%2Fdocker.gradleraw_urlghttps://github.com/palantir/atlasdb/raw/4f344c6d8ab4c4dc553c97d393e763ebef7c27e1/gradle%2Fdocker.gradlecontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fdocker.gradle?ref=4f344c6d8ab4c4dc553c97d393e763ebef7c27e1patchX
  @@ -5,6 +5,7 @@ def imageVersion = "${project.version.toString().replaceAll('\\+', '-')}"
 docker {
     name "palantirtechnologies/${project.name}:${imageVersion}"
     tags 'latest', 'snapshot'
+    labels(['version', imageVersion])
     files distTar.outputs
 }
 u}(j  (50a280a0f113edbc5df8e90e41de31dd6c30f02dj  *scripts/circle-ci/publish-to-antithesis.shj  modifiedjy  Kjz  Kj  Kj  https://github.com/palantir/atlasdb/blob/4f344c6d8ab4c4dc553c97d393e763ebef7c27e1/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj  https://github.com/palantir/atlasdb/raw/4f344c6d8ab4c4dc553c97d393e763ebef7c27e1/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj  https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=4f344c6d8ab4c4dc553c97d393e763ebef7c27e1j  X		  @@ -1,5 +1,10 @@
 #!/bin/bash
 
+if [[ -z "$1" ]]; then
+    echo "Usage: $0 <webhook name>. Example: $0 config-check"
+    exit 1
+fi
+
 if [[ -z "${ANTITHESIS_REPO_URL}" ]]; then
   echo "Antithesis image repository URL is not set as an environment variable, exiting."
   exit 1
@@ -10,6 +15,11 @@ if [[ -z "${ANTITHESIS_LOGIN_JSON}" ]]; then
   exit 1
 fi
 
+if [[ -z "${ANTITHESIS_WEBHOOK_PASSWORD}" ]]; then
+  echo "Antithesis webhook password is not set as an environment variable, exiting."
+  exit 1
+fi
+
 printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://${ANTITHESIS_REPO_URL} --password-stdin
 
 ./gradlew --scan dockerTag
@@ -20,11 +30,11 @@ docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
 docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc5 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
 docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
 
-docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${VERSION}
-docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${VERSION}
+docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${$1}
+docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${$1}
 
-docker tag palantirtechnologies/atlasdb-workload-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${VERSION}
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${VERSION}
+docker tag palantirtechnologies/atlasdb-workload-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${$1}
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${$1}
 
-docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${VERSION}
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${VERSION}
\ No newline at end of file
+docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${$1}
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${$1}
\ No newline at end of fileueu(5163c28c1404be8ccaba9edb9496515516dbfdba}(sha(5163c28c1404be8ccaba9edb9496515516dbfdbanode_idEC_kwDOAjP5fdoAKDUxNjNjMjhjMTQwNGJlOGNjYWJhOWVkYjk0OTY1MTU1MTZkYmZkYmEcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-06-30T15:16:19Zu	committer}(j  svc-autoreleasej  -pd-foundry-infrastructure-notify@palantir.comj  2023-06-30T15:16:19ZumessageAutorelease 0.883.0

[skip ci]tree}(j  (b0dff3ce9ef20d6dc8484bb485b747551b9ecd76url`https://api.github.com/repos/palantir/atlasdb/git/trees/b0dff3ce9ef20d6dc8484bb485b747551b9ecd76uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5163c28c1404be8ccaba9edb9496515516dbfdba
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmSe8ckACgkQhbrR8ip7mDDExAD9FsOD/c7MiPkC8M2dWUDBS2PB
PgL9Mv86QqILltv0HJ0A/24+9/RJw9nXRCweVqj4vP2aBkSclplXSIucNrs1FsL1
=BHQO
-----END PGP SIGNATURE-----
payloadX0  tree b0dff3ce9ef20d6dc8484bb485b747551b9ecd76
parent cd8beea5cbaf2b96d1ba8cb220315faff96b510f
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1688138179 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1688138179 +0000

Autorelease 0.883.0

[skip ci]uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/5163c28c1404be8ccaba9edb9496515516dbfdbahtml_urlShttps://github.com/palantir/atlasdb/commit/5163c28c1404be8ccaba9edb9496515516dbfdbacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5163c28c1404be8ccaba9edb9496515516dbfdba/commentsj  }(loginsvc-autoreleaseidJ(j  MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j  ,https://api.github.com/users/svc-autoreleasej  "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj  }(j  svc-autoreleasej  J(j  MDQ6VXNlcjUxNzE4MzQ2j  4https://avatars.githubusercontent.com/u/51718346?v=4j  h5j  ,https://api.github.com/users/svc-autoreleasej  "https://github.com/svc-autoreleasej  6https://api.github.com/users/svc-autorelease/followersj  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j  :https://api.github.com/users/svc-autorelease/subscriptionsj  1https://api.github.com/users/svc-autorelease/orgsj  2https://api.github.com/users/svc-autorelease/reposj  =https://api.github.com/users/svc-autorelease/events{/privacy}j  <https://api.github.com/users/svc-autorelease/received_eventsj  Userj  uparents]}(j  (cd8beea5cbaf2b96d1ba8cb220315faff96b510fj  ^https://api.github.com/repos/palantir/atlasdb/commits/cd8beea5cbaf2b96d1ba8cb220315faff96b510fj  Shttps://github.com/palantir/atlasdb/commit/cd8beea5cbaf2b96d1ba8cb220315faff96b510fuastats}(totalK 	additionsK 	deletionsK ufiles](}(j  (d7951f643174772a855f4d861eeddb8fc504150afilename changelog/0.883.0/pr-6644.v2.ymlstatusrenamedj  K j  K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/5163c28c1404be8ccaba9edb9496515516dbfdba/changelog%2F0.883.0%2Fpr-6644.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/5163c28c1404be8ccaba9edb9496515516dbfdba/changelog%2F0.883.0%2Fpr-6644.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6644.v2.yml?ref=5163c28c1404be8ccaba9edb9496515516dbfdbaprevious_filename$changelog/@unreleased/pr-6644.v2.ymlu}(j  (f502755b47a5379d145593d6f6a21b6d0ff20be9j   changelog/0.883.0/pr-6646.v2.ymlj   renamedj  K j  K j  K j  vhttps://github.com/palantir/atlasdb/blob/5163c28c1404be8ccaba9edb9496515516dbfdba/changelog%2F0.883.0%2Fpr-6646.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/5163c28c1404be8ccaba9edb9496515516dbfdba/changelog%2F0.883.0%2Fpr-6646.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6646.v2.yml?ref=5163c28c1404be8ccaba9edb9496515516dbfdbaj	  $changelog/@unreleased/pr-6646.v2.ymlu}(j  (59a104ba72569b4dfd00ae8626fea6e626f1cc19j   changelog/0.883.0/pr-6647.v2.ymlj   renamedj  K j  K j  K j  vhttps://github.com/palantir/atlasdb/blob/5163c28c1404be8ccaba9edb9496515516dbfdba/changelog%2F0.883.0%2Fpr-6647.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/5163c28c1404be8ccaba9edb9496515516dbfdba/changelog%2F0.883.0%2Fpr-6647.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6647.v2.yml?ref=5163c28c1404be8ccaba9edb9496515516dbfdbaj	  $changelog/@unreleased/pr-6647.v2.ymlueu(da17c0614101fbdf7d459c0552dac170e87b2cbf}(sha(da17c0614101fbdf7d459c0552dac170e87b2cbfnode_idEC_kwDOAjP5fdoAKGRhMTdjMDYxNDEwMWZiZGY3ZDQ1OWMwNTUyZGFjMTcwZTg3YjJjYmYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-01T19:06:55Zu	committer}(j%  
Ahmed Alouanej'  aalouane@palantir.comj)  2023-05-01T19:06:55Zumessageholla uptree}(j  (16602aace34bee72f466e527dea0b1a179646554url`https://api.github.com/repos/palantir/atlasdb/git/trees/16602aace34bee72f466e527dea0b1a179646554uj5  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/da17c0614101fbdf7d459c0552dac170e87b2cbf
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRQDc8ACgkQPlMHVIT1
yhp5sAgAsFcHk43W1ulotzF7JNCgbcx321+432z4f+2dk5a8RxbcXj5UYShGNWA/
GHLFNm2hyuP39G2OxpZqYq7Nn17gygK6/h73GvLinRNRWsImm8bjxRHoYmyLn19H
kmqTtj6EusmSfjkn1wQhoK0cCXlAOMppYAsa2uW701tI2rWF+7EwkMFgZgLnQCMT
Oexv812qqrZedlqjt7CM+GjGleyQhkh6Om3VpbvsShJaS29TVWJ0JVgbbeNmnAAo
R2033ZadI9ZmTpv8N5CPnpRMsMjGcwyYEfrGB2rX/G7oH8AMrIjlfOv+PRVW1qSg
qtY5Pc3cha4OKbt8w/5blj+KrdvCjg==
=yare
-----END PGP SIGNATURE-----payloadtree 16602aace34bee72f466e527dea0b1a179646554
parent 708fd21add30263a5f94fd9950ba82503b015f7f
author Ahmed Alouane <aalouane@palantir.com> 1682968015 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682968015 +0100

holla up
uuj5  ^https://api.github.com/repos/palantir/atlasdb/commits/da17c0614101fbdf7d459c0552dac170e87b2cbfhtml_urlShttps://github.com/palantir/atlasdb/commit/da17c0614101fbdf7d459c0552dac170e87b2cbfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/da17c0614101fbdf7d459c0552dac170e87b2cbf/commentsj#  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j5  #https://api.github.com/users/ergo14jC  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj+  }(jH  ergo14jJ  Jj  MDQ6VXNlcjMwOTAzNzM2jL  4https://avatars.githubusercontent.com/u/30903736?v=4jN  h5j5  #https://api.github.com/users/ergo14jC  https://github.com/ergo14jQ  -https://api.github.com/users/ergo14/followersjS  :https://api.github.com/users/ergo14/following{/other_user}jU  3https://api.github.com/users/ergo14/gists{/gist_id}jW  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jY  1https://api.github.com/users/ergo14/subscriptionsj[  (https://api.github.com/users/ergo14/orgsj]  )https://api.github.com/users/ergo14/reposj_  4https://api.github.com/users/ergo14/events{/privacy}ja  3https://api.github.com/users/ergo14/received_eventsjc  Userje  uparents]}(j  (708fd21add30263a5f94fd9950ba82503b015f7fj5  ^https://api.github.com/repos/palantir/atlasdb/commits/708fd21add30263a5f94fd9950ba82503b015f7fjC  Shttps://github.com/palantir/atlasdb/commit/708fd21add30263a5f94fd9950ba82503b015f7fuastats}(totalK	additionsK	deletionsKufiles]}(j  (5ec62c730381f1347340bd55a9be23662f308780filename.circleci/config.ymlstatusmodifiedj  Kj  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/da17c0614101fbdf7d459c0552dac170e87b2cbf/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/da17c0614101fbdf7d459c0552dac170e87b2cbf/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=da17c0614101fbdf7d459c0552dac170e87b2cbfpatchX  @@ -147,12 +147,14 @@ workflows:
             tags:
               only: /.*/
       - trial-publish:
-          requires: [build]
+          requires: [build, test]
           filters:
             branches:
               ignore: [develop]
       - deploy:
           requires: [build, test]
           filters:
+            branches:
+              only: develop
             tags:
               only: /.*/uau(7a77a5fca325b540183d51c72f91f4f8544e6e89}(sha(7a77a5fca325b540183d51c72f91f4f8544e6e89node_idEC_kwDOAjP5fdoAKDdhNzdhNWZjYTMyNWI1NDAxODNkNTFjNzJmOTFmNGY4NTQ0ZTZlODkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-29T00:16:08Zu	committer}(j  
Ahmed Alouanej  aalouane@palantir.comj  2023-04-29T00:16:08Zumessageexampletree}(j  (9885749b7fb2e05afca2edc8e3a05f94e20f2f06url`https://api.github.com/repos/palantir/atlasdb/git/trees/9885749b7fb2e05afca2edc8e3a05f94e20f2f06uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7a77a5fca325b540183d51c72f91f4f8544e6e89
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRMYckACgkQPlMHVIT1
yhr3hAf/a0lBBTujtLCxE4TkV/0fH4hxNgW4ApxorGIQVnT+oVYWKe22kJv2q+yb
4CyzqV/Xq6SleQbgLgZHCPGRDTrC+vWJ3LU6jESCLg5XbnFeKpNxwb2z4KXJ/A7s
5CeJy1jHDK6ny/d8xDXPEUmz9RMoyLyloL79lmraOC52PYEYdTw8oxm0BksESzqP
KU61h7OyqbDXRW6IP4rFuBN8LYH53UJQhg2qbJ6X0X/VhTfjxHT9B/p6taHSlQUF
kao3Yoed2czS+hjT0QsbI/z4ckG/b3OqvNlof7Lxuk9bJjXkQHyqqMZVn7EJvynT
rWgoDsJtIXI4TEUpiXgYS++ooag/GQ==
=q8d7
-----END PGP SIGNATURE-----payloadtree 9885749b7fb2e05afca2edc8e3a05f94e20f2f06
parent b6c113247659ef9e4e07a19ee3da832fa3f228df
author Ahmed Alouane <aalouane@palantir.com> 1682727368 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682727368 +0100

example
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/7a77a5fca325b540183d51c72f91f4f8544e6e89html_urlShttps://github.com/palantir/atlasdb/commit/7a77a5fca325b540183d51c72f91f4f8544e6e89comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7a77a5fca325b540183d51c72f91f4f8544e6e89/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j  ergo14j  Jj  MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j  h5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14j  -https://api.github.com/users/ergo14/followersj  :https://api.github.com/users/ergo14/following{/other_user}j  3https://api.github.com/users/ergo14/gists{/gist_id}j  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j  1https://api.github.com/users/ergo14/subscriptionsj  (https://api.github.com/users/ergo14/orgsj  )https://api.github.com/users/ergo14/reposj  4https://api.github.com/users/ergo14/events{/privacy}j  3https://api.github.com/users/ergo14/received_eventsj  Userj  uparents]}(j  (b6c113247659ef9e4e07a19ee3da832fa3f228dfj  ^https://api.github.com/repos/palantir/atlasdb/commits/b6c113247659ef9e4e07a19ee3da832fa3f228dfj  Shttps://github.com/palantir/atlasdb/commit/b6c113247659ef9e4e07a19ee3da832fa3f228dfuastats}(totalK	additionsK	deletionsKufiles](}(j  (c261094b1a79d55c827bea9b32f4a93c4247a389filename.circleci/config.ymlstatusmodifiedj  Kj  K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/7a77a5fca325b540183d51c72f91f4f8544e6e89/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/7a77a5fca325b540183d51c72f91f4f8544e6e89/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=7a77a5fca325b540183d51c72f91f4f8544e6e89patch@@ -154,6 +154,8 @@ workflows:
             parameters:
               test_suite: [8]
           filters:
+            branches:
+              only: develop
             tags:
               only: /.*/
       - trial-publish:ul     }(j  (bb526cd68b34818bdccc886a9fae23d7df8db2f8j  %scripts/circle-ci/run-circle-tests.shj  modifiedj  Kj  Kj   Kj  {https://github.com/palantir/atlasdb/blob/7a77a5fca325b540183d51c72f91f4f8544e6e89/scripts%2Fcircle-ci%2Frun-circle-tests.shj  zhttps://github.com/palantir/atlasdb/raw/7a77a5fca325b540183d51c72f91f4f8544e6e89/scripts%2Fcircle-ci%2Frun-circle-tests.shj  https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=7a77a5fca325b540183d51c72f91f4f8544e6e89j  XD  @@ -89,7 +89,7 @@ case $1 in
     5) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_5[@]} ;;
     6) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_6[@]} ;;
     7) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_7[@]} ;;
-    8) if [[ "$CIRCLE_BRANCH" = "develop" || ! -z "$CIRCLE_TAG" ]]; then ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_8[@]}; else echo "Skipping"; fi ;;
+    8) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_8[@]} ;;
     9) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_9[@]} ;;
     10) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_10[@]} ;;
     11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} ;;ueu(65bbddb5425aa5e58ddc0e43ef9243f4d67b7688}(sha(65bbddb5425aa5e58ddc0e43ef9243f4d67b7688node_idEC_kwDOAjP5fdoAKDY1YmJkZGI1NDI1YWE1ZTU4ZGRjMGU0M2VmOTI0M2Y0ZDY3Yjc2ODgcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-20T17:51:04Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-04-20T17:51:04Zumessageoopstree}(j  (853f24f3f26a49ab3f5f9acbc902459189ce83d3url`https://api.github.com/repos/palantir/atlasdb/git/trees/853f24f3f26a49ab3f5f9acbc902459189ce83d3uj+  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/65bbddb5425aa5e58ddc0e43ef9243f4d67b7688
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRBe4gACgkQTLdFKain
zjxv7wf/e3j6t0rUbP1dBJ2sFdvub2iGqL7PabVFMvWSNIfdUZ+v1+Bi+JjJjw6h
HxwsEm/uRWliURF+jFrlGtMEbFoX4jPSbLrFTUSznffqvTMNjZViwkO6M0eqOtKh
Pvj87M6Jbzqbt2XutdeApofWHM7lKm47dgfaxgVK6jA6rpnSnwgj09Nzm0ZbxcXZ
NvIn/xUqZHOMMC/2PgEkITKpf6sYsEbek25BxuBRgHCgOuPuK21Zw9/a/n23CDmL
oAV8wGUJEpjxmj65w3+OPPJt+bTLU1SSQimq/t6xtLS9VNzwvyW6TYyroN4Z2Hfe
qleiSOy8PsOKUzGAQbESgX5baTiotg==
=VQ0U
-----END PGP SIGNATURE-----payloadtree 853f24f3f26a49ab3f5f9acbc902459189ce83d3
parent d9d89642cfb9052cc148c22ce5ff46e5f148384d
author Jeremy Kong <jkong@palantir.com> 1682013064 +0100
committer Jeremy Kong <jkong@palantir.com> 1682013064 +0100

oops
uuj+  ^https://api.github.com/repos/palantir/atlasdb/commits/65bbddb5425aa5e58ddc0e43ef9243f4d67b7688html_urlShttps://github.com/palantir/atlasdb/commit/65bbddb5425aa5e58ddc0e43ef9243f4d67b7688comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/65bbddb5425aa5e58ddc0e43ef9243f4d67b7688/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j+  'https://api.github.com/users/jeremyk-91j9  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj!  }(j>  
jeremyk-91j@  JZ j  MDQ6VXNlcjU5NTU1MTA=jB  3https://avatars.githubusercontent.com/u/5955510?v=4jD  h5j+  'https://api.github.com/users/jeremyk-91j9  https://github.com/jeremyk-91jG  1https://api.github.com/users/jeremyk-91/followersjI  >https://api.github.com/users/jeremyk-91/following{/other_user}jK  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jM  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jO  5https://api.github.com/users/jeremyk-91/subscriptionsjQ  ,https://api.github.com/users/jeremyk-91/orgsjS  -https://api.github.com/users/jeremyk-91/reposjU  8https://api.github.com/users/jeremyk-91/events{/privacy}jW  7https://api.github.com/users/jeremyk-91/received_eventsjY  Userj[  uparents]}(j  (d9d89642cfb9052cc148c22ce5ff46e5f148384dj+  ^https://api.github.com/repos/palantir/atlasdb/commits/d9d89642cfb9052cc148c22ce5ff46e5f148384dj9  Shttps://github.com/palantir/atlasdb/commit/d9d89642cfb9052cc148c22ce5ff46e5f148384duastats}(totalK	additionsK	deletionsKufiles](}(j  (0b232c1c70f2ae9dccae527c6c4184b3fbd27ef3filenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedju  Kjv  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/65bbddb5425aa5e58ddc0e43ef9243f4d67b7688/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/65bbddb5425aa5e58ddc0e43ef9243f4d67b7688/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=65bbddb5425aa5e58ddc0e43ef9243f4d67b7688patchX  @@ -28,6 +28,7 @@
 import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
 import com.palantir.atlasdb.workload.runner.AntithesisWorkflowRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.workflow.BouncingValueWorkflow;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
@@ -99,8 +100,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         AntithesisWorkflowRunner.INSTANCE.run(
                 BouncingValueWorkflow.createBouncingValue(transactionStoreFactory.create(
                         Map.of(
-                                workflowConfig.tableConfiguration().tableName(),
-                                workflowConfig.tableConfiguration().isolationLevel()),
+                                BouncingValueWorkflow.TEST_TABLE,
+                                IsolationLevel.SERIALIZABLE),
                         Set.of())),
                 //                SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
                 //                        transactionStoreFactory.create(u}(j  (fe28a43b4a0fa45b28c5ec5550cd37f1fe6abf5ej{  gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/BouncingValueWorkflow.javaj}  modifiedju  Kjv  Kj  Kj  https://github.com/palantir/atlasdb/blob/65bbddb5425aa5e58ddc0e43ef9243f4d67b7688/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FBouncingValueWorkflow.javaj  https://github.com/palantir/atlasdb/raw/65bbddb5425aa5e58ddc0e43ef9243f4d67b7688/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FBouncingValueWorkflow.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FBouncingValueWorkflow.java?ref=65bbddb5425aa5e58ddc0e43ef9243f4d67b7688j  X  @@ -41,7 +41,7 @@
 import one.util.streamex.StreamEx;
 
 public class BouncingValueWorkflow {
-    private static final String TEST_TABLE = "bouncingValue";
+    public static final String TEST_TABLE = "bouncingValue";
     private static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
 
     public static Workflow createBouncingValue(InteractiveTransactionStore store) {ueu(81f98b7ebaf98537caf3f29c48d5e90b1a71a145}(sha(81f98b7ebaf98537caf3f29c48d5e90b1a71a145node_idEC_kwDOAjP5fdoAKDgxZjk4YjdlYmFmOTg1MzdjYWYzZjI5YzQ4ZDVlOTBiMWE3MWExNDUcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-16T10:34:02Zu	committer}(j  Lucas Meirelesj  meireles31@msn.comj  2023-06-16T10:34:02ZumessageoAdd test checking that if we do an empty read followed by a non empty read, we should still validate at the endtree}(j  (d8e314552eff5a0a531dd2cc5561bd44db083062url`https://api.github.com/repos/palantir/atlasdb/git/trees/d8e314552eff5a0a531dd2cc5561bd44db083062uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/81f98b7ebaf98537caf3f29c48d5e90b1a71a145
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSMOpsACgkQJd22kJ7J
GiyQ9Af/Sblm79vNceohkDH/Qf9x03UYg/jb6IOG4LyaGn2AZGRnf/kTuqPZY4Wt
/hDxPyTP3LBI08CoOh2xfQcz2nmWoNdEozBU4PmebBX3zectzMkpum7N//mAjdK3
AyuNNW4cfuXG9I22aPsg06lN5vL+obCmEQYPZWp4fRbX8eGk+ylbGxJE+vkPH5RC
iIpUhonrbraSJQa0Aj5gJ7d9JdwjGDNTUn85jCUebLm1SLgVB704YPkdiDpqhzUr
WvzXqsVu/w5qAHL1Idva0KDBVUDtjExP+aVnHrAlSG59+aegU9O1h4bfsU/gdyE7
RluWKnnv/7nVjTimCmvHa6v2fGOHfg==
=uzpr
-----END PGP SIGNATURE-----payloadXJ  tree d8e314552eff5a0a531dd2cc5561bd44db083062
parent 4d8833fdf4ee78ec1f01ef985467b7a0fe8f67c9
author Lucas Meireles <meireles31@msn.com> 1686911642 +0100
committer Lucas Meireles <meireles31@msn.com> 1686911642 +0100

Add test checking that if we do an empty read followed by a non empty read, we should still validate at the end
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/81f98b7ebaf98537caf3f29c48d5e90b1a71a145html_urlShttps://github.com/palantir/atlasdb/commit/81f98b7ebaf98537caf3f29c48d5e90b1a71a145comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/81f98b7ebaf98537caf3f29c48d5e90b1a71a145/commentsj  }(loginLucasIMEidJg j  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj  }(j  LucasIMEj  Jg j  MDQ6VXNlcjY3ODczMTE=j  3https://avatars.githubusercontent.com/u/6787311?v=4j  h5j  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIMEj  /https://api.github.com/users/LucasIME/followersj  <https://api.github.com/users/LucasIME/following{/other_user}j  5https://api.github.com/users/LucasIME/gists{/gist_id}j  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j  3https://api.github.com/users/LucasIME/subscriptionsj  *https://api.github.com/users/LucasIME/orgsj  +https://api.github.com/users/LucasIME/reposj  6https://api.github.com/users/LucasIME/events{/privacy}j  5https://api.github.com/users/LucasIME/received_eventsj  Userj  uparents]}(j  (4d8833fdf4ee78ec1f01ef985467b7a0fe8f67c9j  ^https://api.github.com/repos/palantir/atlasdb/commits/4d8833fdf4ee78ec1f01ef985467b7a0fe8f67c9j  Shttps://github.com/palantir/atlasdb/commit/4d8833fdf4ee78ec1f01ef985467b7a0fe8f67c9uastats}(totalK	additionsK	deletionsK ufiles]}(j  (2f4f57917becf245196de31e86a0245f3c4bb169filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedj  Kj  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/81f98b7ebaf98537caf3f29c48d5e90b1a71a145/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/81f98b7ebaf98537caf3f29c48d5e90b1a71a145/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=81f98b7ebaf98537caf3f29c48d5e90b1a71a145patchXo  @@ -1609,6 +1609,26 @@ public void validateLocksOnlyOnCommitIfValidationFlagIsFalse() {
         assertThatExceptionOfType(TransactionLockTimeoutException.class).isThrownBy(transaction::commit);
     }
 
+    @Test
+    public void validateLocksOnCommitIfEmptyReadsFollowedByNonEmptyReadsIfValidationFlagIsFalse() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        // First reading empty value
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL_2));
+        // Then reading non-empty value.
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+
+        // Make sure that lock is still validated in the end due to the initial empty read
+        assertThatExceptionOfType(TransactionLockTimeoutException.class).isThrownBy(transaction::commit);
+    }
+
     @Test
     public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithValidationOnReads() {
         putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);uau(f6b8cb8618de006048040488816850120d42c5c6}(sha(f6b8cb8618de006048040488816850120d42c5c6node_idEC_kwDOAjP5fdoAKGY2YjhjYjg2MThkZTAwNjA0ODA0MDQ4ODgxNjg1MDEyMGQ0MmM1YzYcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-02-27T19:02:50Zu	committer}(j  svc-autoreleasej  -pd-foundry-infrastructure-notify@palantir.comj  2023-02-27T19:02:50ZumessageAutorelease 0.804.0

[skip ci]tree}(j	  (56909cd1b2e8676d8d0d9142cfb092620249b197url`https://api.github.com/repos/palantir/atlasdb/git/trees/56909cd1b2e8676d8d0d9142cfb092620249b197uj!  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f6b8cb8618de006048040488816850120d42c5c6
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmP8/l8ACgkQhbrR8ip7mDAFwwEAhebPTSY1C4qsANFE5+XQeCkE
CSqu+rztnXTvSnxzQlwA/jcM8HZfQY+tJIBQWPES112nQEGoakPwydmg5xDO8+3z
=ydop
-----END PGP SIGNATURE-----
payloadX0  tree 56909cd1b2e8676d8d0d9142cfb092620249b197
parent dae9a671871aa70d30dc64d6d667b51bceaccb29
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1677524570 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1677524570 +0000

Autorelease 0.804.0

[skip ci]uuj!  ^https://api.github.com/repos/palantir/atlasdb/commits/f6b8cb8618de006048040488816850120d42c5c6html_urlShttps://github.com/palantir/atlasdb/commit/f6b8cb8618de006048040488816850120d42c5c6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f6b8cb8618de006048040488816850120d42c5c6/commentsj  }(loginsvc-autoreleaseidJ(j  MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j!  ,https://api.github.com/users/svc-autoreleasej/  "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj  }(j4  svc-autoreleasej6  J(j  MDQ6VXNlcjUxNzE4MzQ2j8  4https://avatars.githubusercontent.com/u/51718346?v=4j:  h5j!  ,https://api.github.com/users/svc-autoreleasej/  "https://github.com/svc-autoreleasej=  6https://api.github.com/users/svc-autorelease/followersj?  Chttps://api.github.com/users/svc-autorelease/following{/other_user}jA  <https://api.github.com/users/svc-autorelease/gists{/gist_id}jC  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jE  :https://api.github.com/users/svc-autorelease/subscriptionsjG  1https://api.github.com/users/svc-autorelease/orgsjI  2https://api.github.com/users/svc-autorelease/reposjK  =https://api.github.com/users/svc-autorelease/events{/privacy}jM  <https://api.github.com/users/svc-autorelease/received_eventsjO  UserjQ  uparents]}(j	  (dae9a671871aa70d30dc64d6d667b51bceaccb29j!  ^https://api.github.com/repos/palantir/atlasdb/commits/dae9a671871aa70d30dc64d6d667b51bceaccb29j/  Shttps://github.com/palantir/atlasdb/commit/dae9a671871aa70d30dc64d6d667b51bceaccb29uastats}(totalK 	additionsK 	deletionsK ufiles]}(j	  (d93664ff214c9077aa41febf718e69648167c087filename changelog/0.804.0/pr-6451.v2.ymlstatusrenamedjk  K jl  K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/f6b8cb8618de006048040488816850120d42c5c6/changelog%2F0.804.0%2Fpr-6451.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/f6b8cb8618de006048040488816850120d42c5c6/changelog%2F0.804.0%2Fpr-6451.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.804.0%2Fpr-6451.v2.yml?ref=f6b8cb8618de006048040488816850120d42c5c6previous_filename$changelog/@unreleased/pr-6451.v2.ymluau(e195356e267fd78e9c58d957df3555f53d43a0e1}(sha(e195356e267fd78e9c58d957df3555f53d43a0e1node_idEC_kwDOAjP5fdoAKGUxOTUzNTZlMjY3ZmQ3OGU5YzU4ZDk1N2RmMzU1NWY1M2Q0M2EwZTEcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-12T10:59:37Zu	committer}(j  Lucas Meirelesj  meireles31@msn.comj  2023-06-12T10:59:37Zumessage	add teststree}(j  (444453bd4eb393a67175634b72ba1959ba744408url`https://api.github.com/repos/palantir/atlasdb/git/trees/444453bd4eb393a67175634b72ba1959ba744408uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e195356e267fd78e9c58d957df3555f53d43a0e1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSG+pkACgkQJd22kJ7J
Giy1hwgA6lIZaAiajlLtQY0+AwEJ7q5NpfgSdsHtsXLHj2abj8tAlmcJPlxFJ/CW
gogNiHqTbQjLl7uiEw5s7iioND3nOn0LKwj97OYF0ot7gAbVQtkZv62Rb15X4+U4
0bK4T9Ult/Khf5mhNwgs3O/BPwR8vQ6cRNrIHGKXfZdalsIpIqMoMUMJU6LoO5L7
fR2bYEmLeuNOYjyzMVIp/f5u2b7lcJmkW2Y0hjov5pTNmY4vyuvVQII/fVV0ikRc
haIYd6TjSET8fE5nXP2p26aEddNcN7PBg+vlDjXyT9uaFe49mt4E2mHFbjj7Ndql
9QuH4mkaxq9QzqVZPARK8UqyVPHGeQ==
=Ubd4
-----END PGP SIGNATURE-----payloadtree 444453bd4eb393a67175634b72ba1959ba744408
parent 4d5a13e6e2838ef4afdeea6db6340844fc5b1cfe
author Lucas Meireles <meireles31@msn.com> 1686567577 +0100
committer Lucas Meireles <meireles31@msn.com> 1686567577 +0100

add tests
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/e195356e267fd78e9c58d957df3555f53d43a0e1html_urlShttps://github.com/palantir/atlasdb/commit/e195356e267fd78e9c58d957df3555f53d43a0e1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e195356e267fd78e9c58d957df3555f53d43a0e1/commentsj  }(loginLucasIMEidJg j  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj  }(j  LucasIMEj  Jg j  MDQ6VXNlcjY3ODczMTE=j  3https://avatars.githubusercontent.com/u/6787311?v=4j  h5j  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIMEj  /https://api.github.com/users/LucasIME/followersj  <https://api.github.com/users/LucasIME/following{/other_user}j  5https://api.github.com/users/LucasIME/gists{/gist_id}j  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j  3https://api.github.com/users/LucasIME/subscriptionsj  *https://api.github.com/users/LucasIME/orgsj  +https://api.github.com/users/LucasIME/reposj  6https://api.github.com/users/LucasIME/events{/privacy}j  5https://api.github.com/users/LucasIME/received_eventsj  Userj  uparents]}(j  (4d5a13e6e2838ef4afdeea6db6340844fc5b1cfej  ^https://api.github.com/repos/palantir/atlasdb/commits/4d5a13e6e2838ef4afdeea6db6340844fc5b1cfej  Shttps://github.com/palantir/atlasdb/commit/4d5a13e6e2838ef4afdeea6db6340844fc5b1cfeuastats}(totalKI	additionsKF	deletionsKufiles]}(j  (ba5309b4bfb0d8267eeecb0171670cecc62103ecfilenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedj  KFj  KchangesKIblob_urlhttps://github.com/palantir/atlasdb/blob/e195356e267fd78e9c58d957df3555f53d43a0e1/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e195356e267fd78e9c58d957df3555f53d43a0e1/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=e195356e267fd78e9c58d957df3555f53d43a0e1patchX  @@ -1552,7 +1552,22 @@ public void commitDoesNotThrowIfAlreadySuccessfullyCommitted() {
     }
 
     @Test
-    public void validateLocksOnReadsIfThoroughlySwept() {
+    public void doNotValidateLocksOnNonEmptyReadsIfThoroughlySwept() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        assertThatCode(() -> transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL)))
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void validateLocksOnEmptyReadsIfThoroughlySwept() {
         long transactionTs = timelockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
         Transaction transaction =
@@ -1564,6 +1579,22 @@ public void validateLocksOnReadsIfThoroughlySwept() {
                 .isThrownBy(() -> transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL)));
     }
 
+    @Test
+    public void doNotValidateLocksOnCommitIfValidationFlagIsFalseAndOnlyReadNonEmptyValuesOnThoroughlySweptTable() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+
+        assertThatCode(transaction::commit).doesNotThrowAnyException();
+    }
+
     @Test
     public void validateLocksOnlyOnCommitIfValidationFlagIsFalse() {
         long transactionTs = timelockService.getFreshTimestamp();
@@ -1579,7 +1610,25 @@ public void validateLocksOnlyOnCommitIfValidationFlagIsFalse() {
     }
 
     @Test
-    public void checkImmutableTsLockOnceIfThoroughlySwept_WithValidationOnReads() {
+    public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithValidationOnReads() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        Transaction transaction = getSnapshotTransactionWith(
+                spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+        transaction.commit();
+        spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
+
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+    }
+
+    @Test
+    public void checkImmutableTsLockOnceIfEmptyReadOnThoroughlySwept_WithValidationOnReads() {
         TimelockService spiedTimeLockService = spy(timelockService);
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
@@ -1595,7 +1644,25 @@ public void checkImmutableTsLockOnceIfThoroughlySwept_WithValidationOnReads() {
     }
 
     @Test
-    public void checkImmutableTsLockOnceIfThoroughlySwept_WithoutValidationOnReads() {
+    public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithoutValidationOnReads() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        Transaction transaction = getSnapshotTransactionWith(
+                spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+        transaction.commit();
+        spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
+
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+    }
+
+    @Test
+    public void checkImmutableTsLockOnceIfEmptyReadOnThoroughlySwept_WithoutValidationOnReads() {
         TimelockService spiedTimeLockService = spy(timelockService);
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();uau(58969d9d95212a8b0480473d5db342ee5223ffd9}(sha(58969d9d95212a8b0480473d5db342ee5223ffd9node_idEC_kwDOAjP5fdoAKDU4OTY5ZDlkOTUyMTJhOGIwNDgwNDczZDVkYjM0MmVlNTIyM2ZmZDkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-25T14:24:48Zu	committer}(j  
Ahmed Alouanej  aalouane@palantir.comj  2023-04-25T14:24:48Zumessagefix and split c* teststree}(j  (f9ce12e692a3d77127de1d7de8c90a2e2f378c86url`https://api.github.com/repos/palantir/atlasdb/git/trees/f9ce12e692a3d77127de1d7de8c90a2e2f378c86uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/58969d9d95212a8b0480473d5db342ee5223ffd9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRH4rAACgkQPlMHVIT1
yhq7Lgf/a9te/DpUO3Asm4vFRo16Xe0z2lWMW044slkJZDtUivVT9ayyKpE/KDBw
9Mzzr/M9JDGiWJ25mhyvzye4xHhx/ocAgGC/wuyyYah4J74XMiVJJ/YSJZ4yUStg
oIe+rhl21DII+RlU9iuaSqLToWPMzlllGRQPHlWMBxo4+b2lU/ZRJDjWEDlZVwsI
ngggu/phpjrHeF5sgG4jb3L8MrWaMirPB65igV1KeAlb1tldkz6AD4BrNGmT6Aj9
UnhkZVqX9wSWnjWXvxpq6GsXfscBp3myMa85HY6/UTloFGjLhZe3cxMPNoRMPXM5
fZfj5I73utpTosokWJ+PUi4CL/mo9Q==
=jNeq
-----END PGP SIGNATURE-----payloadtree f9ce12e692a3d77127de1d7de8c90a2e2f378c86
parent 90248fca8cf991f1b86dc2443f8a3c62e2487f3e
author Ahmed Alouane <aalouane@palantir.com> 1682432688 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682432688 +0100

fix and split c* tests
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/58969d9d95212a8b0480473d5db342ee5223ffd9html_urlShttps://github.com/palantir/atlasdb/commit/58969d9d95212a8b0480473d5db342ee5223ffd9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/58969d9d95212a8b0480473d5db342ee5223ffd9/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j"  ergo14j$  Jj  MDQ6VXNlcjMwOTAzNzM2j&  4https://avatars.githubusercontent.com/u/30903736?v=4j(  h5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14j+  -https://api.github.com/users/ergo14/followersj-  :https://api.github.com/users/ergo14/following{/other_user}j/  3https://api.github.com/users/ergo14/gists{/gist_id}j1  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j3  1https://api.github.com/users/ergo14/subscriptionsj5  (https://api.github.com/users/ergo14/orgsj7  )https://api.github.com/users/ergo14/reposj9  4https://api.github.com/users/ergo14/events{/privacy}j;  3https://api.github.com/users/ergo14/received_eventsj=  Userj?  uparents]}(j  (90248fca8cf991f1b86dc2443f8a3c62e2487f3ej  ^https://api.github.com/repos/palantir/atlasdb/commits/90248fca8cf991f1b86dc2443f8a3c62e2487f3ej  Shttps://github.com/palantir/atlasdb/commit/90248fca8cf991f1b86dc2443f8a3c62e2487f3euastats}(totalK&	additionsK	deletionsKufiles](}(j  (385ff4400e7fb8b1393a566a83098879aa3974aefilename.circleci/config.ymlstatusmodifiedjY  KjZ  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/58969d9d95212a8b0480473d5db342ee5223ffd9/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/58969d9d95212a8b0480473d5db342ee5223ffd9/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=58969d9d95212a8b0480473d5db342ee5223ffd9patch@@ -32,7 +32,7 @@ jobs:
           paths: [ . ]
 
   test:
-    parallelism: 13
+    parallelism: 14
     machine:
       image: ubuntu-2004:202111-02
     resource_class: xlargeu}(j  (8fce8e6875711ffb9f2690858b1cbe9871979bd5j_  0atlasdb-cassandra-integration-tests/build.gradleja  modifiedjY  KjZ  K jc  Kjd  https://github.com/palantir/atlasdb/blob/58969d9d95212a8b0480473d5db342ee5223ffd9/atlasdb-cassandra-integration-tests%2Fbuild.gradlejf  https://github.com/palantir/atlasdb/raw/58969d9d95212a8b0480473d5db342ee5223ffd9/atlasdb-cassandra-integration-tests%2Fbuild.gradlejh  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fbuild.gradle?ref=58969d9d95212a8b0480473d5db342ee5223ffd9jj  X#  @@ -56,6 +56,24 @@ test {
     exclude '**/CassandraKeyValueServiceSweepTaskRunnerIntegrationTest.class'
 }
 
+task testSubset1(type: Test) {
+    include '**/CassandraKeyValueServiceTableCreationIntegrationTest.class'
+    include '**/CassandraKeyValueServiceTableManipulationIntegrationTest.class'
+    include '**/CassandraKeyValueServiceTransactionIntegrationTest.class'
+    include '**/CassandraKvsAsyncFallbackMechanismsTests.class'
+    include '**/CassandraKvsSerializableTransactionTest.class'
+}
+
+task testSubset2(type: Test) {
+    include '**/*Test.class'
+    include '**/*Tests.class'
+    exclude '**/CassandraKeyValueServiceTableCreationIntegrationTest.class'
+    exclude '**/CassandraKeyValueServiceTableManipulationIntegrationTest.class'
+    exclude '**/CassandraKeyValueServiceTransactionIntegrationTest.class'
+    exclude '**/CassandraKvsAsyncFallbackMechanismsTests.class'
+    exclude '**/CassandraKvsSerializableTransactionTest.class'
+}
+
 tasks.withType(Test) {
     testLogging {
         // set options for log level LIFECYCLEu}(j  (0c1d3cb8bb00e7401e683ac5588b778df3c3be4fj_  %scripts/circle-ci/run-circle-tests.shja  modifiedjY  KjZ  Kjc  Kjd  {https://github.com/palantir/atlasdb/blob/58969d9d95212a8b0480473d5db342ee5223ffd9/scripts%2Fcircle-ci%2Frun-circle-tests.shjf  zhttps://github.com/palantir/atlasdb/raw/58969d9d95212a8b0480473d5db342ee5223ffd9/scripts%2Fcircle-ci%2Frun-circle-tests.shjh  https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=58969d9d95212a8b0480473d5db342ee5223ffd9jj  X6	  @@ -13,7 +13,7 @@ function checkDocsBuild {
      make html
 }
 
-CONTAINER_1=(':atlasdb-cassandra-integration-tests:check')
+CONTAINER_1=(':atlasdb-cassandra-integration-tests:testSubset1')
 
 CONTAINER_2=(':atlasdb-ete-tests:check')
 
@@ -35,10 +35,15 @@ CONTAINER_10=('atlasdb-dbkvs-tests:oracleTest')
 
 CONTAINER_11=(':atlasdb-impl-shared:check' )
 
-CONTAINER_12=('compileJava' 'compileTestJava')
+CONTAINER_12=(':atlasdb-cassandra-integration-tests:testSubset2')
+
+CONTAINER_13=('compileJava' 'compileTestJava')
+
+# Excluded as it is split into two subsets
+EXCLUDED=(':atlasdb-cassandra-integration-tests:check')
 
 # Container 0 - runs tasks not found in the below containers
-CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}" "${CONTAINER_11[@]}")
+CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}" "${CONTAINER_11[@]}" "${CONTAINER_12[@]}" "${EXCLUDED[@]}")
 
 for task in "${CONTAINER_0_EXCLUDE[@]}"
 do
@@ -66,7 +71,7 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
 # External builds have a 16gb limit.
-if [ "$CIRCLE_NODE_INDEX" -eq "12" ]; then
+if [ "$CIRCLE_NODE_INDEX" -eq "13" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
@@ -87,6 +92,7 @@ case $CIRCLE_NODE_INDEX in
     8) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_8[@]} ;;
     9) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_9[@]} ;;
     10) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_10[@]} ;;
-    10) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} ;;
-    11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_12[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
+    11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} ;;
+    12) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_12[@]} ;;
+    13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_13[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
 esacueu(dc9d9f5aeb40a3e9efd46f427f8e8ed9ee2cae99}(sha(dc9d9f5aeb40a3e9efd46f427f8e8ed9ee2cae99node_idEC_kwDOAjP5fdoAKGRjOWQ5ZjVhZWI0MGEzZTllZmQ0NmY0MjdmOGU4ZWQ5ZWUyY2FlOTkcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-30T10:33:54Zu	committer}(j  	Tom Papkej  tpapke@palantir.comj  2023-06-30T10:33:54ZumessageFix broken teststree}(j~  (74738fa7bac10c80df5bab3f3e166c2c0733127curl`https://api.github.com/repos/palantir/atlasdb/git/trees/74738fa7bac10c80df5bab3f3e166c2c0733127cuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/dc9d9f5aeb40a3e9efd46f427f8e8ed9ee2cae99
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSer5IACgkQmF9s0kaF
Iw13iAf/STPlca2y/S+cR3H9aCwMsG4N4BM+z1kEVHQHLGbvw0swW9fDDy9/rSpH
RsU59uTiSX5xclnBPg8E4jGtI+xSQMbHhW05zLLpwNqZ7Cf6Vim6q9l3jk4GCMKb
RhmO3wAb3VVtXBsRiK5vTatRt+fUXqiVsSxLSuvyyQFPrBNWPDtyjBZhgZBmN0qY
30DUzzaJVIN7jO1FbonkqbGxUEhY01OtmasfQajBpuDZFQocMJ55Mz24C+lkKAPM
G1SpPW3CVWuVmj/03UaQqk1ymTeGMdqqp1IGgCiv1C0uVOio8rX7VGjYJdjc5VkM
SihibKo2ib7YY14BZymIhyEFWZT2/w==
=XlNP
-----END PGP SIGNATURE-----payloadtree 74738fa7bac10c80df5bab3f3e166c2c0733127c
parent ffe84f3476768f6a46c6d1e11a5892a87762d513
author Tom Papke <tpapke@palantir.com> 1688121234 +0100
committer Tom Papke <tpapke@palantir.com> 1688121234 +0100

Fix broken tests
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/dc9d9f5aeb40a3e9efd46f427f8e8ed9ee2cae99html_urlShttps://github.com/palantir/atlasdb/commit/dc9d9f5aeb40a3e9efd46f427f8e8ed9ee2cae99comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/dc9d9f5aeb40a3e9efd46f427f8e8ed9ee2cae99/commentsj  }(login	ToemmscheidJboj  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj  }(j  	Toemmschej  Jboj  MDQ6VXNlcjQzNjc1NDkwj  4https://avatars.githubusercontent.com/u/43675490?v=4j  h5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmschej  0https://api.github.com/users/Toemmsche/followersj  =https://api.github.com/users/Toemmsche/following{/other_user}j  6https://api.github.com/users/Toemmsche/gists{/gist_id}j  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j  4https://api.github.com/users/Toemmsche/subscriptionsj  +https://api.github.com/users/Toemmsche/orgsj  ,https://api.github.com/users/Toemmsche/reposj  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj  Userj  uparents]}(j~  (ffe84f3476768f6a46c6d1e11a5892a87762d513j  ^https://api.github.com/repos/palantir/atlasdb/commits/ffe84f3476768f6a46c6d1e11a5892a87762d513j  Shttps://github.com/palantir/atlasdb/commit/ffe84f3476768f6a46c6d1e11a5892a87762d513uastats}(totalK	additionsK
	deletionsK
ufiles](}(j~  (1168be10177125238fd8ae7829b9a0fadb1f752bfilenameOlock-api-objects/src/main/java/com/palantir/lock/watch/LockRequestMetadata.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/dc9d9f5aeb40a3e9efd46f427f8e8ed9ee2cae99/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaraw_urlhttps://github.com/palantir/atlasdb/raw/dc9d9f5aeb40a3e9efd46f427f8e8ed9ee2cae99/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.java?ref=dc9d9f5aeb40a3e9efd46f427f8e8ed9ee2cae99patchX"  @@ -29,11 +29,11 @@
 @Unsafe
 @Value.Immutable
 public interface LockRequestMetadata {
+
+    @Value.Parameter
     Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata();
 
     static LockRequestMetadata of(Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata) {
-        return ImmutableLockRequestMetadata.builder()
-                .lockDescriptorToChangeMetadata(lockDescriptorToChangeMetadata)
-                .build();
+        return ImmutableLockRequestMetadata.of(lockDescriptorToChangeMetadata);
     }
 }u}(j~  (53fe0e49e11d45f4aa6182a5f35c18f63c6c3e94j  atimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/dc9d9f5aeb40a3e9efd46f427f8e8ed9ee2cae99/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj  https://github.com/palantir/atlasdb/raw/dc9d9f5aeb40a3e9efd46f427f8e8ed9ee2cae99/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=dc9d9f5aeb40a3e9efd46f427f8e8ed9ee2cae99j  X   @@ -27,7 +27,6 @@
 import com.palantir.lock.v2.LeadershipId;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.watch.ChangeMetadata;
-import com.palantir.lock.watch.ImmutableLockRequestMetadata;
 import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchReferences;
 import com.palantir.lock.watch.LockWatchReferences.LockWatchReference;
@@ -178,10 +177,10 @@ private void runIfDescriptorsMatchLockWatchesWithMetadata(
                                         unfilteredLockMetadata.entrySet().stream())
                                 .filterKeys(ranges::contains)
                                 .collectToMap();
-                        return ImmutableLockRequestMetadata.builder()
-                                .lockDescriptorToChangeMetadata(filteredLockMetadata)
-                                .build();
+                        return LockRequestMetadata.of(filteredLockMetadata);
                     });
+            // Even if our metadata is non-empty after filtering, but our locks are, we do not proceed.
+            // This is done to maintain the existing lock watch semantics
             if (!filteredLocks.isEmpty()) {
                 biConsumer.accept(filteredLocks, filteredMetadata);
             }u}(j~  (4a70d424c5e4d208920397fec5510c40d956832bj  Ztimelock-server/src/test/java/com/palantir/atlasdb/timelock/lock/AsyncLockServiceTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/dc9d9f5aeb40a3e9efd46f427f8e8ed9ee2cae99/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javaj  https://github.com/palantir/atlasdb/raw/dc9d9f5aeb40a3e9efd46f427f8e8ed9ee2cae99/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.java?ref=dc9d9f5aeb40a3e9efd46f427f8e8ed9ee2cae99j  X  @@ -73,6 +73,7 @@ public class AsyncLockServiceTest {
     @Before
     public void before() {
         when(acquirer.acquireLocks(any(), any(), any())).thenReturn(new AsyncResult<>());
+        when(acquirer.acquireLocks(any(), any(), any(), any())).thenReturn(new AsyncResult<>());
         when(acquirer.waitForLocks(any(), any(), any())).thenReturn(new AsyncResult<>());
         when(locks.getAll(any())).thenReturn(OrderedLocks.fromSingleLock(newLock()));
         when(immutableTimestampTracker.getImmutableTimestamp()).thenReturn(Optional.empty());
@@ -87,7 +88,7 @@ public void passesOrderedLocksToAcquirer() {
 
         lockService.lock(REQUEST_ID, descriptors, DEADLINE);
 
-        verify(acquirer).acquireLocks(REQUEST_ID, expected, DEADLINE);
+        verify(acquirer).acquireLocks(REQUEST_ID, expected, DEADLINE, Optional.empty());
     }
 
     @Test
@@ -107,7 +108,7 @@ public void doesNotAcquireDuplicateRequests() {
         lockService.lock(REQUEST_ID, descriptors, DEADLINE);
         lockService.lock(REQUEST_ID, descriptors, DEADLINE);
 
-        verify(acquirer, times(1)).acquireLocks(any(), any(), any());
+        verify(acquirer, times(1)).acquireLocks(any(), any(), any(), any());
         verifyNoMoreInteractions(acquirer);
     }
 
@@ -155,7 +156,7 @@ public void reaperDoesNotDieIfItEncountersAnException() {
     public void propagatesTimeoutExceptionIfRequestTimesOut() {
         AsyncResult<HeldLocks> timedOutResult = new AsyncResult<>();
         timedOutResult.timeout();
-        when(acquirer.acquireLocks(any(), any(), any())).thenReturn(timedOutResult);
+        when(acquirer.acquireLocks(any(), any(), any(), any())).thenReturn(timedOutResult);
 
         AsyncResult<?> result = lockService.lock(REQUEST_ID, descriptors(LOCK_A), DEADLINE);
 ueu(633e1a7f0a672f8def1b520eb9738d72718c0c00}(sha(633e1a7f0a672f8def1b520eb9738d72718c0c00node_idEC_kwDOAjP5fdoAKDYzM2UxYTdmMGE2NzJmOGRlZjFiNTIwZWI5NzM4ZDcyNzE4YzBjMDAcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-13T19:58:29Zu	committer}(j
  	Tom Papkej  tpapke@palantir.comj  2023-06-13T19:58:29Zumessage1Use Objects.requireNonNull instead of MoreObjectstree}(j  (3bee045630bf8bf39cc810391741180dbd443df3url`https://api.github.com/repos/palantir/atlasdb/git/trees/3bee045630bf8bf39cc810391741180dbd443df3uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/633e1a7f0a672f8def1b520eb9738d72718c0c00
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSIymUACgkQmF9s0kaF
Iw2yZgf+OMUkGKRX0jbi4EhVI9HfkUi2Q6D8V3ebDXKgAf/LBlBYRxxf9e+PGHYx
yRTa6roulRGgN2LvS6fCkTGksarT3+BXagG1UbfsrEzCLV2qSSFDYz5phInwEAE2
ya3Qs7/oEa+msY2lqXL9snU/7RE1Lb2HQMtPjVoMzvw4AQVU79XMoZxqrnyWyIZa
iNrctFEw3Blm/BFvvobSUDBiQqR4Wz71XjeteVkp7KbGEklVzRvMiVQpKJCJf72r
15yuJHPtrOdvfPFhxhkaileTB49fZOx4EWOuayo2EXuzzeMZbYuyNTW4l6lxUCyJ
goE/GcWk3xkcKHU2ccbHZftyD6O/bQ==
=oi6E
-----END PGP SIGNATURE-----payloadX  tree 3bee045630bf8bf39cc810391741180dbd443df3
parent 7bc9676e2758f2cf16ea979a18f0e872ac058515
author Tom Papke <tpapke@palantir.com> 1686686309 +0100
committer Tom Papke <tpapke@palantir.com> 1686686309 +0100

Use Objects.requireNonNull instead of MoreObjects
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/633e1a7f0a672f8def1b520eb9738d72718c0c00html_urlShttps://github.com/palantir/atlasdb/commit/633e1a7f0a672f8def1b520eb9738d72718c0c00comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/633e1a7f0a672f8def1b520eb9738d72718c0c00/commentsj  }(login	ToemmscheidJboj  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j  &https://api.github.com/users/Toemmschej+  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj  }(j0  	Toemmschej2  Jboj  MDQ6VXNlcjQzNjc1NDkwj4  4https://avatars.githubusercontent.com/u/43675490?v=4j6  h5j  &https://api.github.com/users/Toemmschej+  https://github.com/Toemmschej9  0https://api.github.com/users/Toemmsche/followersj;  =https://api.github.com/users/Toemmsche/following{/other_user}j=  6https://api.github.com/users/Toemmsche/gists{/gist_id}j?  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jA  4https://api.github.com/users/Toemmsche/subscriptionsjC  +https://api.github.com/users/Toemmsche/orgsjE  ,https://api.github.com/users/Toemmsche/reposjG  7https://api.github.com/users/Toemmsche/events{/privacy}jI  6https://api.github.com/users/Toemmsche/received_eventsjK  UserjM  uparents]}(j  (7bc9676e2758f2cf16ea979a18f0e872ac058515j  ^https://api.github.com/repos/palantir/atlasdb/commits/7bc9676e2758f2cf16ea979a18f0e872ac058515j+  Shttps://github.com/palantir/atlasdb/commit/7bc9676e2758f2cf16ea979a18f0e872ac058515uastats}(totalK	additionsK	deletionsKufiles]}(j  (a0dca5ed5f2ce66efa43ee1bf724c1d87d4844d8filenameQlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javastatusmodifiedjg  Kjh  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/633e1a7f0a672f8def1b520eb9738d72718c0c00/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaraw_urlhttps://github.com/palantir/atlasdb/raw/633e1a7f0a672f8def1b520eb9738d72718c0c00/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=633e1a7f0a672f8def1b520eb9738d72718c0c00patchX7  @@ -17,7 +17,6 @@
 package com.palantir.lock.impl;
 
 import com.google.common.annotations.VisibleForTesting;
-import com.google.common.base.MoreObjects;
 import com.google.common.collect.ImmutableMap;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.lock.DebugThreadInfoConfiguration;
@@ -27,6 +26,7 @@
 import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
 import java.util.Map;
 import java.util.Map.Entry;
+import java.util.Objects;
 import java.util.concurrent.ConcurrentMap;
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.concurrent.TimeUnit;
@@ -51,17 +51,17 @@ public LockThreadInfoSnapshotManager(
     }
 
     public void start() {
-        scheduleSnapshotting();
+        scheduleRun();
     }
 
     private void run() {
         takeSnapshot();
 
         // schedule next snapshot so this can be enabled/disabled at runtime
-        scheduleSnapshotting();
+        scheduleRun();
     }
 
-    private void scheduleSnapshotting() {
+    private void scheduleRun() {
         if (threadInfoConfiguration.recordThreadInfo()) {
             scheduledExecutorService.schedule(
                     this::run, threadInfoConfiguration.threadInfoSnapshotIntervalMillis(), TimeUnit.MILLISECONDS);
@@ -78,8 +78,8 @@ void takeSnapshot() {
         this.lastKnownThreadInfoSnapshot = tokenMapSupplier.get().keySet().stream()
                 .flatMap(token -> {
                     LockClientAndThread clientThread = LockClientAndThread.of(
-                            MoreObjects.firstNonNull(token.getClient(), LockClientAndThread.UNKNOWN.client()),
-                            MoreObjects.firstNonNull(
+                            Objects.requireNonNullElse(token.getClient(), LockClientAndThread.UNKNOWN.client()),
+                            Objects.requireNonNullElse(
                                     token.getRequestingThread(), LockClientAndThread.UNKNOWN.thread()));
                     return token.getLockDescriptors().stream()
                             .map(lockDescriptor -> Map.entry(lockDescriptor, clientThread));uau(5673acc7e293ff081b915f4406a2d9337d939cd8}(sha(5673acc7e293ff081b915f4406a2d9337d939cd8node_idEC_kwDOAjP5fdoAKDU2NzNhY2M3ZTI5M2ZmMDgxYjkxNWY0NDA2YTJkOTMzN2Q5MzljZDgcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-04T15:31:19Zu	committer}(j  
Sam Kramerj  skramer@palantir.comj  2023-08-04T15:31:19ZumessageAdd tests and clean uptree}(j|  (1b4b2ddb9943723a5beaf70abfbd2262a6918aa8url`https://api.github.com/repos/palantir/atlasdb/git/trees/1b4b2ddb9943723a5beaf70abfbd2262a6918aa8uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5673acc7e293ff081b915f4406a2d9337d939cd8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTNGcgACgkQmPPOpKR4
XS0IfwgAprr4ue7QV7gIaTjyo9Ujqe8Y5pOFBcbMVz7J6Mis0XNbZ2wUu7U9vu3E
+9wWOUVoIoPbjKbNlgh8Xn3T40Mg7lR3nlmquKQOo67lfY6LjEXFXubq8S4b0iPq
pYfpb8y2ywLj7SvDb4R8kyCUGPurPECkge6DOWXbu1LVndw/P7XoOBRRJuQhvMof
vlQ8pOwMNSJGI1TT8nV8+RYm7n4gLx9e9ZA+51yb0RXlxkVGnihcWfl57c+D6N4P
y0HATmLoY5L3oi294dByqe03M6KSDhB0R0ObgxUsDjbRiblBIAng7SwNAMNnOe85
aM+dEiQX+1x3MXsuOW+/kkFQeJXF7w==
=kvYx
-----END PGP SIGNATURE-----payloadtree 1b4b2ddb9943723a5beaf70abfbd2262a6918aa8
parent aee6977a98eb0a89ccef675b6f2f842dcde23a8c
author Sam Kramer <skramer@palantir.com> 1691163079 +0100
committer Sam Kramer <skramer@palantir.com> 1691163079 +0100

Add tests and clean up
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/5673acc7e293ff081b915f4406a2d9337d939cd8html_urlShttps://github.com/palantir/atlasdb/commit/5673acc7e293ff081b915f4406a2d9337d939cd8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5673acc7e293ff081b915f4406a2d9337d939cd8/commentsj  }(login
Sam-KrameridJ^2_ j~  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j  
Sam-Kramerj  J^2_ j~  MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j  h5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj  1https://api.github.com/users/Sam-Kramer/followersj  >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j  5https://api.github.com/users/Sam-Kramer/subscriptionsj  ,https://api.github.com/users/Sam-Kramer/orgsj  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj  uparents]}(j|  (aee6977a98eb0a89ccef675b6f2f842dcde23a8cj  ^https://api.github.com/repos/palantir/atlasdb/commits/aee6977a98eb0a89ccef675b6f2f842dcde23a8cj  Shttps://github.com/palantir/atlasdb/commit/aee6977a98eb0a89ccef675b6f2f842dcde23a8cuastats}(totalK	additionsK|	deletionsKufiles](}(j|  (3f5fad8fe9cf5049a8c89b7b615643cb34bef6eefilenameUatlasdb-commons/src/main/java/com/palantir/leader/MaybeNotCurrentLeaderException.javastatusmodifiedj  K#j  KchangesK%blob_urlhttps://github.com/palantir/atlasdb/blob/5673acc7e293ff081b915f4406a2d9337d939cd8/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2FMaybeNotCurrentLeaderException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5673acc7e293ff081b915f4406a2d9337d939cd8/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2FMaybeNotCurrentLeaderException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2FMaybeNotCurrentLeaderException.java?ref=5673acc7e293ff081b915f4406a2d9337d939cd8patchX  @@ -16,8 +16,41 @@
 
 package com.palantir.leader;
 
-public class MaybeNotCurrentLeaderException extends NotCurrentLeaderException {
-    public MaybeNotCurrentLeaderException(String message) {
+import com.google.common.collect.ImmutableList;
+import com.google.errorprone.annotations.CompileTimeConstant;
+import com.palantir.logsafe.Arg;
+import com.palantir.logsafe.Safe;
+import com.palantir.logsafe.SafeLoggable;
+import java.util.List;
+
+/**
+ * Some operations may fail due to contention, which means we may have lost leadership.
+ * In these cases, we should then validate that we have lost leadership, before taking any action.
+ */
+public final class MaybeNotCurrentLeaderException extends NotCurrentLeaderException implements SafeLoggable {
+
+    private final String message;
+    private final List<Arg<?>> args;
+
+    public MaybeNotCurrentLeaderException(@CompileTimeConstant String message, List<Arg<?>> args) {
         super(message);
+        this.message = message;
+        this.args = args;
+    }
+
+    public MaybeNotCurrentLeaderException(@CompileTimeConstant String message, Arg<?>... args) {
+        super(message);
+        this.message = message;
+        this.args = ImmutableList.copyOf(args);
+    }
+
+    @Override
+    public @Safe String getLogMessage() {
+        return message;
+    }
+
+    @Override
+    public List<Arg<?>> getArgs() {
+        return args;
     }
 }u}(j|  (bd14ff699ee7dea42e931cb36663730f474814cfj  Yleader-election-impl/src/main/java/com/palantir/leader/proxy/AwaitingLeadershipProxy.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/5673acc7e293ff081b915f4406a2d9337d939cd8/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.javaj  https://github.com/palantir/atlasdb/raw/5673acc7e293ff081b915f4406a2d9337d939cd8/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.javaj  https://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.java?ref=5673acc7e293ff081b915f4406a2d9337d939cd8j  XV  @@ -107,9 +107,7 @@ protected Object handleInvocation(Object proxy, Method method, Object[] args) th
         ListenableFuture<T> delegateFuture = Futures.transformAsync(
                 leadingFuture,
                 leading -> {
-                    // treat a repeated NO_QUORUM as NOT_LEADING; likely we've been cut off from the other nodes
-                    // and should assume we're not the leader
-                    if (leading == StillLeadingStatus.NOT_LEADING || leading == StillLeadingStatus.NO_QUORUM) {
+                    if (isNotLeading(leading)) {
                         return Futures.submitAsync(
                                 () -> {
                                     leadershipStateManager.handleNotLeading(leadershipToken, null /* cause */);
@@ -163,13 +161,13 @@ private RuntimeException handleDelegateThrewException(
         Throwable cause = exception.getCause();
 
         if (cause instanceof ServiceNotAvailableException) {
-            boolean stillLeading = false;
+            boolean notLeading = true;
             if (cause instanceof MaybeNotCurrentLeaderException) {
-                stillLeading =
-                        leadershipCoordinator.isStillLeading(leadershipToken).get() == StillLeadingStatus.LEADING;
+                notLeading = isNotLeading(
+                        leadershipCoordinator.isStillLeading(leadershipToken).get());
             }
 
-            if (!stillLeading) {
+            if (notLeading) {
                 leadershipStateManager.handleNotLeading(leadershipToken, exception.getCause());
             }
         }
@@ -182,4 +180,10 @@ private RuntimeException handleDelegateThrewException(
         Throwables.propagateIfPossible(cause, Exception.class);
         throw new RuntimeException(cause);
     }
+
+    private static boolean isNotLeading(StillLeadingStatus leading) {
+        // treat a repeated NO_QUORUM as NOT_LEADING; likely we've been cut off from the other nodes
+        // and should assume we're not the leader
+        return leading == StillLeadingStatus.NOT_LEADING || leading == StillLeadingStatus.NO_QUORUM;
+    }
 }u}(j|  (61975c98733e14e2b30ffb6efdb10c75d5d2e3d9j  ]leader-election-impl/src/test/java/com/palantir/leader/proxy/AwaitingLeadershipProxyTest.javaj  modifiedj  K2j  K j  K2j  https://github.com/palantir/atlasdb/blob/5673acc7e293ff081b915f4406a2d9337d939cd8/leader-election-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxyTest.javaj  https://github.com/palantir/atlasdb/raw/5673acc7e293ff081b915f4406a2d9337d939cd8/leader-election-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxyTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxyTest.java?ref=5673acc7e293ff081b915f4406a2d9337d939cd8j  XT  @@ -19,9 +19,11 @@
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.atLeast;
+import static org.mockito.Mockito.doThrow;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.timeout;
+import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
 
@@ -33,6 +35,7 @@
 import com.palantir.leader.LeaderElectionService;
 import com.palantir.leader.LeaderElectionService.LeadershipToken;
 import com.palantir.leader.LeaderElectionService.StillLeadingStatus;
+import com.palantir.leader.MaybeNotCurrentLeaderException;
 import com.palantir.leader.NotCurrentLeaderException;
 import com.palantir.leader.PaxosLeadershipToken;
 import com.palantir.tracing.RenderTracingRule;
@@ -264,6 +267,53 @@ public void shouldClearDelegateUponLosingLeadership() throws Exception {
         verify(mock).close();
     }
 
+    @Test
+    public void whenMaybeNotCurrentLeaderAndLeadershipNotLostShouldNotClearDelegate() throws Exception {
+        MyCloseable mockA = mock(MyCloseable.class);
+        LeadershipCoordinator leadershipCoordinator = LeadershipCoordinator.create(leaderElectionService);
+        MyCloseable proxyA =
+                AwaitingLeadershipProxy.newProxyInstance(MyCloseable.class, () -> mockA, leadershipCoordinator);
+
+        // Wait to gain leadership
+        Uninterruptibles.sleepUninterruptibly(Duration.ofMillis(100L));
+
+        doThrow(new MaybeNotCurrentLeaderException(TEST_MESSAGE)).when(mockA).val();
+
+        assertThatThrownBy(proxyA::val)
+                .isInstanceOf(MaybeNotCurrentLeaderException.class)
+                .hasMessage(TEST_MESSAGE);
+        verify(mockA, times(0)).close();
+    }
+
+    @Test
+    public void whenMaybeNotCurrentLeaderAndLeadershipLostShouldClearDelegate() throws Exception {
+        MyCloseable mockA = mock(MyCloseable.class);
+        LeadershipCoordinator leadershipCoordinator = LeadershipCoordinator.create(leaderElectionService);
+        MyCloseable proxyA =
+                AwaitingLeadershipProxy.newProxyInstance(MyCloseable.class, () -> mockA, leadershipCoordinator);
+
+        MyCloseable proxyB = AwaitingLeadershipProxy.newProxyInstance(
+                MyCloseable.class, () -> mock(MyCloseable.class), leadershipCoordinator);
+
+        // Wait to gain leadership
+        Uninterruptibles.sleepUninterruptibly(Duration.ofMillis(100L));
+
+        proxyA.val();
+        proxyB.val();
+
+        doThrow(new MaybeNotCurrentLeaderException("foo")).when(mockA).val();
+
+        loseLeadership(() -> {
+            proxyB.val();
+            return null;
+        });
+
+        assertThatThrownBy(proxyA::val)
+                .isInstanceOf(NotCurrentLeaderException.class)
+                .hasMessage("method invoked on a non-leader");
+        verify(mockA).close();
+    }
+
     @Test
     public void shouldClearDelegateIfLeadershipLossIsRealizedByAnotherProxy() throws Exception {
         MyCloseable mockA = mock(MyCloseable.class);uc      }(j|  (d8be19bd21781847d907629879561340032e1f9cj  ]timelock-impl/src/main/java/com/palantir/atlasdb/timelock/paxos/PaxosTimestampBoundStore.javaj  modifiedj  Kj  Kj  K#j  https://github.com/palantir/atlasdb/blob/5673acc7e293ff081b915f4406a2d9337d939cd8/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javaj  https://github.com/palantir/atlasdb/raw/5673acc7e293ff081b915f4406a2d9337d939cd8/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.java?ref=5673acc7e293ff081b915f4406a2d9337d939cd8j  X  @@ -23,6 +23,7 @@
 import com.palantir.common.remoting.ServiceNotAvailableException;
 import com.palantir.leader.MaybeNotCurrentLeaderException;
 import com.palantir.leader.NotCurrentLeaderException;
+import com.palantir.logsafe.Arg;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -49,6 +50,11 @@
 public class PaxosTimestampBoundStore implements TimestampBoundStore {
     private static final SafeLogger log = SafeLoggerFactory.get(PaxosTimestampBoundStore.class);
 
+    private static final String TOO_SMALL_LIMIT_INCREASE_MESSAGE =
+            "It appears we updated the timestamp limit to {}, which was less than our target {}."
+                    + " This suggests we have another timestamp service running; possibly because we"
+                    + " lost and regained leadership. For safety, we are now stopping this service.";
+
     private final PaxosProposer proposer;
     private final PaxosLearner knowledge;
 
@@ -247,15 +253,9 @@ public synchronized void storeUpperLimit(long limit) throws MultipleRunningTimes
                     // This is dangerous; proposing at the next sequence number is unsafe, as timestamp services
                     // generally assume they have the ALLOCATION_BUFFER_SIZE timestamps up to this.
                     // TODO (jkong): Devise a method that better preserves availability of the cluster.
-                    log.warn(
-                            "It appears we updated the timestamp limit to {}, which was less than our target {}."
-                                    + " This suggests we have another timestamp service running; possibly because we"
-                                    + " lost and regained leadership. For safety, we are now stopping this service.",
-                            SafeArg.of("newLimit", newLimit),
-                            SafeArg.of("target", limit));
-                    throw new MaybeNotCurrentLeaderException(String.format(
-                            "We updated the timestamp limit to %s, which was less than our target %s.",
-                            newLimit, limit));
+                    List<Arg<?>> args = List.of(SafeArg.of("newLimit", newLimit), SafeArg.of("target", limit));
+                    log.warn(TOO_SMALL_LIMIT_INCREASE_MESSAGE, args);
+                    throw new MaybeNotCurrentLeaderException(TOO_SMALL_LIMIT_INCREASE_MESSAGE, args);
                 }
                 return;
             } catch (PaxosRoundFailureException e) {
@@ -274,14 +274,17 @@ public synchronized void storeUpperLimit(long limit) throws MultipleRunningTimes
      */
     private void checkAgreedBoundIsOurs(long limit, long newSeq, PaxosValue value) throws NotCurrentLeaderException {
         if (!proposer.getUuid().equals(value.getLeaderUUID())) {
-            String errorMsg = String.format(
-                    "Timestamp limit changed from under us for sequence '%s' (proposer with UUID '%s' changed"
-                            + " it, our UUID is '%s'). This suggests that we have lost leadership, and another timelock"
+            throw new MaybeNotCurrentLeaderException(
+                    "Timestamp limit changed from under us for sequence '{}' (proposer with UUID '{}' changed"
+                            + " it, our UUID is '{}'). This suggests that we have lost leadership, and another timelock"
                             + " server has gained leadership and updated the timestamp bound."
-                            + " The offending bound was '%s'; we tried to propose"
-                            + " a bound of '%s'. (The offending Paxos value was '%s'.)",
-                    newSeq, value.getLeaderUUID(), proposer.getUuid(), PtBytes.toLong(value.getData()), limit, value);
-            throw new MaybeNotCurrentLeaderException(errorMsg);
+                            + " The offending bound was '{}'; we tried to propose"
+                            + " a bound of '{}'. (The offending Paxos value was '{}'.)",
+                    SafeArg.of("newSeq", newSeq),
+                    SafeArg.of("leaderUuid", value.getLeaderUUID()),
+                    SafeArg.of("ourUuid", proposer.getUuid()),
+                    SafeArg.of("limit", limit),
+                    SafeArg.of("value", value));
         }
         DebugLogger.logger.info(
                 "Trying to store limit '{}' for sequence '{}' yielded consensus on the value '{}'.",u}(j|  (aca5d6ed31205108a9dc26796534145a9666d853j  atimelock-impl/src/test/java/com/palantir/atlasdb/timelock/paxos/PaxosTimestampBoundStoreTest.javaj  modifiedj  K	j  Kj  Kj  https://github.com/palantir/atlasdb/blob/5673acc7e293ff081b915f4406a2d9337d939cd8/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.javaj  https://github.com/palantir/atlasdb/raw/5673acc7e293ff081b915f4406a2d9337d939cd8/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.java?ref=5673acc7e293ff081b915f4406a2d9337d939cd8j  X  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.timelock.paxos;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static java.util.stream.Collectors.toList;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
@@ -32,8 +33,9 @@
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.common.remoting.ServiceNotAvailableException;
 import com.palantir.common.streams.KeyedStream;
-import com.palantir.leader.NotCurrentLeaderException;
+import com.palantir.leader.MaybeNotCurrentLeaderException;
 import com.palantir.leader.proxy.ToggleableExceptionProxy;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.paxos.Client;
 import com.palantir.paxos.PaxosAcceptor;
 import com.palantir.paxos.PaxosAcceptorNetworkClient;
@@ -244,7 +246,12 @@ public void retriesProposeUntilSuccessful() throws Exception {
     public void throwsIfBoundUnexpectedlyChangedUnderUs() {
         PaxosTimestampBoundStore additionalStore = createPaxosTimestampBoundStore(1);
         additionalStore.storeUpperLimit(TIMESTAMP_1);
-        assertThatThrownBy(() -> store.storeUpperLimit(TIMESTAMP_2)).isInstanceOf(NotCurrentLeaderException.class);
+        assertThatLoggableExceptionThrownBy(() -> store.storeUpperLimit(TIMESTAMP_2))
+                .isInstanceOf(MaybeNotCurrentLeaderException.class)
+                .hasMessageContaining("Timestamp limit changed from under us for sequence")
+                .args()
+                // We don't know the leader ids in advance, so we can't assert on them.
+                .contains(SafeArg.of("newSeq", PaxosAcceptor.NO_LOG_ENTRY + 1), SafeArg.of("limit", TIMESTAMP_2));
     }
 
     @Testueu(8f0a05d1f943f7af548232f68a1ca8f5d2c47a40}(sha(8f0a05d1f943f7af548232f68a1ca8f5d2c47a40node_idEC_kwDOAjP5fdoAKDhmMGEwNWQxZjk0M2Y3YWY1NDgyMzJmNjhhMWNhOGY1ZDJjNDdhNDAcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-08-01T15:46:44Zu	committer}(j  Lucas Meirelesj  meireles31@msn.comj  2023-08-01T15:46:44ZumessageLadd test to verify we don't filter down the cells we pass to the cell loadertree}(j  (9c825fe7ffec00e567c181bf32ac8a3d3ac58690url`https://api.github.com/repos/palantir/atlasdb/git/trees/9c825fe7ffec00e567c181bf32ac8a3d3ac58690uj+  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8f0a05d1f943f7af548232f68a1ca8f5d2c47a40
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmTJKOQACgkQJd22kJ7J
Giya5gf/auaQDIHgWaexyrXFooPOAZWmpnHS1/DPRKMagnwIVQ/o5H/cICn6Mbfa
HG33/ycD/EM0IPNTESuZ01o1rbPpSCpMWlAgVORA1NMEZ0TUnPCToGEKGDId00IR
aVoN7pCSI4bsxnSsoEWc9stxGspueNOwhCmY68IeIvJPamyPAwqPiil8Rlvuur1C
6ay8NQPVPkeGN7W2Tw0+Bj9zxRXJHf3oLF+UMh8u6xaLgzvgL5S5DV036llMSc/B
cWGF+lALF0nKBNJ0X2VDd8mswERRuqCneWj/Uc2nVr/6UgAFMpJ/5HXCk3+Ri0LZ
Mse6R7RJT1QLl6sWNwcE+Io868zM9w==
=vj23
-----END PGP SIGNATURE-----payloadX'  tree 9c825fe7ffec00e567c181bf32ac8a3d3ac58690
parent f91d0baae11da4e56a9b3b29b65a2b7207b8d6d7
author Lucas Meireles <meireles31@msn.com> 1690904804 +0100
committer Lucas Meireles <meireles31@msn.com> 1690904804 +0100

add test to verify we don't filter down the cells we pass to the cell loader
uuj+  ^https://api.github.com/repos/palantir/atlasdb/commits/8f0a05d1f943f7af548232f68a1ca8f5d2c47a40html_urlShttps://github.com/palantir/atlasdb/commit/8f0a05d1f943f7af548232f68a1ca8f5d2c47a40comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8f0a05d1f943f7af548232f68a1ca8f5d2c47a40/commentsj  }(loginLucasIMEidJg j  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j+  %https://api.github.com/users/LucasIMEj9  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj!  }(j>  LucasIMEj@  Jg j  MDQ6VXNlcjY3ODczMTE=jB  3https://avatars.githubusercontent.com/u/6787311?v=4jD  h5j+  %https://api.github.com/users/LucasIMEj9  https://github.com/LucasIMEjG  /https://api.github.com/users/LucasIME/followersjI  <https://api.github.com/users/LucasIME/following{/other_user}jK  5https://api.github.com/users/LucasIME/gists{/gist_id}jM  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jO  3https://api.github.com/users/LucasIME/subscriptionsjQ  *https://api.github.com/users/LucasIME/orgsjS  +https://api.github.com/users/LucasIME/reposjU  6https://api.github.com/users/LucasIME/events{/privacy}jW  5https://api.github.com/users/LucasIME/received_eventsjY  Userj[  uparents]}(j  (f91d0baae11da4e56a9b3b29b65a2b7207b8d6d7j+  ^https://api.github.com/repos/palantir/atlasdb/commits/f91d0baae11da4e56a9b3b29b65a2b7207b8d6d7j9  Shttps://github.com/palantir/atlasdb/commit/f91d0baae11da4e56a9b3b29b65a2b7207b8d6d7uastats}(totalK%	additionsK"	deletionsKufiles](}(j  (935cd55a9e1156a16906545c1f297b06b2cb9d1efilenamedatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.javastatusmodifiedju  Kjv  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/8f0a05d1f943f7af548232f68a1ca8f5d2c47a40/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/8f0a05d1f943f7af548232f68a1ca8f5d2c47a40/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.java?ref=8f0a05d1f943f7af548232f68a1ca8f5d2c47a40patchXc  @@ -111,6 +111,7 @@
 import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import org.immutables.value.Value;
+import org.jetbrains.annotations.VisibleForTesting;
 
 /**
  * This class will track all reads to verify that there are no read-write conflicts at commit time.
@@ -353,8 +354,8 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(TableReference tableRef, Set
      * {@link Transaction#getWithExpectedNumberOfCells(TableReference, Set, long)} implementation to take intro account the
      * filtering and change the number of expect cells it sends to the super class.
      */
-    private ListenableFuture<Map<Cell, byte[]>> getWithLoader(
-            TableReference tableRef, Set<Cell> cells, CellLoader cellLoader) {
+    @VisibleForTesting
+    ListenableFuture<Map<Cell, byte[]>> getWithLoader(TableReference tableRef, Set<Cell> cells, CellLoader cellLoader) {
         return Futures.transform(
                 cellLoader.load(tableRef, cells),
                 loadedCells -> {
@@ -364,8 +365,9 @@ private ListenableFuture<Map<Cell, byte[]>> getWithLoader(
                 MoreExecutors.directExecutor());
     }
 
+    @VisibleForTesting
     @FunctionalInterface
-    private interface CellLoader {
+    interface CellLoader {
         ListenableFuture<Map<Cell, byte[]>> load(TableReference tableReference, Set<Cell> toRead);
     }
 u}(j  (d9184f1e861ba439c819235be5edce661ac86c68j{  qatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractSerializableTransactionTest.javaj}  modifiedju  Kjv  K j  Kj  https://github.com/palantir/atlasdb/blob/8f0a05d1f943f7af548232f68a1ca8f5d2c47a40/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj  https://github.com/palantir/atlasdb/raw/8f0a05d1f943f7af548232f68a1ca8f5d2c47a40/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.java?ref=8f0a05d1f943f7af548232f68a1ca8f5d2c47a40j  Xe
  @@ -20,10 +20,14 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.assertj.core.api.Assertions.catchThrowable;
+import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyLong;
+import static org.mockito.ArgumentMatchers.anySet;
+import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.doThrow;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
 
 import com.google.common.base.Suppliers;
 import com.google.common.collect.ImmutableList;
@@ -36,6 +40,7 @@
 import com.google.common.collect.Ordering;
 import com.google.common.collect.Streams;
 import com.google.common.primitives.UnsignedBytes;
+import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.cleaner.NoOpCleaner;
@@ -64,6 +69,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.TransactionSerializableConflictException;
+import com.palantir.atlasdb.transaction.impl.SerializableTransaction.CellLoader;
 import com.palantir.atlasdb.transaction.impl.metrics.SimpleTableLevelMetricsController;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.common.base.BatchingVisitable;
@@ -78,6 +84,7 @@
 import java.util.Map;
 import java.util.Optional;
 import java.util.Random;
+import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.BrokenBarrierException;
 import java.util.concurrent.Callable;
@@ -89,6 +96,7 @@
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 import org.junit.Test;
+import org.mockito.ArgumentCaptor;
 
 @SuppressWarnings("CheckReturnValue")
 public abstract class AbstractSerializableTransactionTest extends AbstractTransactionTest {
@@ -1487,6 +1495,27 @@ public void testChecksIfTablesAreSerializable() {
         });
     }
 
+    // This test exists as a best effort approach to catch any change to the getWithLoader method that would filter
+    // down cells and potentially break getWithExpectedNumberOfCells if it was not changed accordingly.
+    @Test
+    public void getWithLoaderDoesntFilterDownCells() {
+        CellLoader cellLoader = mock(CellLoader.class);
+        when(cellLoader.load(any(), anySet()))
+                .thenReturn(Futures.immediateFuture(ImmutableMap.of(CELL_ONE, BYTES_ONE, CELL_TWO, BYTES_TWO)));
+
+        createManager().runTaskThrowOnConflict(tx -> {
+            SerializableTransaction serializable = (SerializableTransaction) tx;
+
+            serializable.getWithLoader(TEST_TABLE_SERIALIZABLE, ImmutableSet.of(CELL_ONE, CELL_TWO), cellLoader);
+
+            ArgumentCaptor<Set<Cell>> captor = ArgumentCaptor.forClass(Set.class);
+            verify(cellLoader).load(eq(TEST_TABLE_SERIALIZABLE), captor.capture());
+
+            assertThat(captor.getValue()).containsExactlyInAnyOrder(CELL_ONE, CELL_TWO);
+            return null;
+        });
+    }
+
     @Override
     protected void put(Transaction txn, String rowName, String columnName, String value) {
         put(txn, TEST_TABLE_SERIALIZABLE, rowName, columnName, value);ueu(73b8f449dccbda2d1a0111b5a99d7459d15b02c1}(sha(73b8f449dccbda2d1a0111b5a99d7459d15b02c1node_idEC_kwDOAjP5fdoAKDczYjhmNDQ5ZGNjYmRhMmQxYTAxMTFiNWE5OWQ3NDU5ZDE1YjAyYzEcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-04-03T01:29:48Zu	committer}(j  GitHubj  noreply@github.comj  2023-04-03T01:29:48ZumessageCR comments (#6500)tree}(j  (9aff8668fb27aa08e820e8ab3ceff27338cb2bb2url`https://api.github.com/repos/palantir/atlasdb/git/trees/9aff8668fb27aa08e820e8ab3ceff27338cb2bb2uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/73b8f449dccbda2d1a0111b5a99d7459d15b02c1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkKiwMCRBK7hj4Ov3rIwAAdV0IAARQ+BDh42S2dq5dpeIPew5J
ftKH2jNnsef9omhY8guEUlhlSCbTSx0Py9j3mYbLU484HnlvWKjd8fwC6n7Z7HWe
iaqJ+HPb7G+68GconRs/p09kDvMQg/CNGoZ0n7mO3QYeyw4SsyKBVoVFCmeJ5O62
OyYdCoGl/hS7df+vY/8uobTTl0mJzTHUkJEXH4YJbT57SLj8cXVl1/OZIr7EyrY0
cqzqxn7qYvD6W7i1XGwcW1dgXQ54FrKb4NK9yml3/xaibiua7bjkpCStRXbhvum1
9sFdBH+vX7TztI1+p8EnexqSKzzgHq4wT7FoDvyq8RPB+7hzX47Wc66PTG0FV8w=
=jfb5
-----END PGP SIGNATURE-----
payloadtree 9aff8668fb27aa08e820e8ab3ceff27338cb2bb2
parent af0f5dd0455619c38e9514749ed9ebfa31437b62
author David Schlosnagle <davids@palantir.com> 1680485388 -0400
committer GitHub <noreply@github.com> 1680485388 -0400

CR comments (#6500)

uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/73b8f449dccbda2d1a0111b5a99d7459d15b02c1html_urlShttps://github.com/palantir/atlasdb/commit/73b8f449dccbda2d1a0111b5a99d7459d15b02c1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/73b8f449dccbda2d1a0111b5a99d7459d15b02c1/commentsj  }(loginschlosnaidMBj  MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j  %https://api.github.com/users/schlosnaj  https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j  (af0f5dd0455619c38e9514749ed9ebfa31437b62j  ^https://api.github.com/repos/palantir/atlasdb/commits/af0f5dd0455619c38e9514749ed9ebfa31437b62j  Shttps://github.com/palantir/atlasdb/commit/af0f5dd0455619c38e9514749ed9ebfa31437b62uastats}(totalKs	additionsKn	deletionsKufiles](}(j  (37f614609e9364110222b476f105aa43bbb7f628filenamebatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/ColumnMetadataDescription.javastatusmodifiedj  Kj  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/73b8f449dccbda2d1a0111b5a99d7459d15b02c1/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.javaraw_urlhttps://github.com/palantir/atlasdb/raw/73b8f449dccbda2d1a0111b5a99d7459d15b02c1/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.java?ref=73b8f449dccbda2d1a0111b5a99d7459d15b02c1patchX  @@ -22,11 +22,15 @@
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Set;
+import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 
 @Immutable
 public class ColumnMetadataDescription {
+    @Nullable
     final ImmutableSet<NamedColumnDescription> namedColumns;
+
+    @Nullable
     final DynamicColumnDescription dynamicColumn;
 
     public ColumnMetadataDescription() {
@@ -44,10 +48,12 @@ public ColumnMetadataDescription(DynamicColumnDescription dynamicColumn) {
         this.dynamicColumn = dynamicColumn;
     }
 
+    @Nullable
     public Set<NamedColumnDescription> getNamedColumns() {
         return namedColumns;
     }
 
+    @Nullable
     public DynamicColumnDescription getDynamicColumn() {
         return dynamicColumn;
     }u}(j  (c1bfeabe203bba1d733629bf0500e496c4eb24ebj  _atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/73b8f449dccbda2d1a0111b5a99d7459d15b02c1/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaj  https://github.com/palantir/atlasdb/raw/73b8f449dccbda2d1a0111b5a99d7459d15b02c1/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.java?ref=73b8f449dccbda2d1a0111b5a99d7459d15b02c1j  XT
  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Stopwatch;
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -31,6 +32,8 @@
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyleCache;
 import com.palantir.atlasdb.logging.LoggingArgs;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.NamedColumnDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.common.base.RunnableCheckedException;
 import com.palantir.common.base.Throwables;
@@ -48,6 +51,7 @@
 import com.palantir.util.VersionStrings;
 import java.sql.SQLException;
 import java.util.Locale;
+import java.util.Set;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.TimeUnit;
 import org.apache.commons.lang3.StringUtils;
@@ -175,14 +179,26 @@ private boolean needsOverflow(TableMetadata metadata) {
      * - Finally, if the sweep strategy is not CONSERVATIVE, there are no sentinels, and if there is only one named
      *   column then there will be no rows that share { row } so compression should be disabled.
      */
-    private int getOptimalIndexCompression(TableMetadata metadata) {
+    @VisibleForTesting
+    static int getOptimalIndexCompression(TableMetadata metadata) {
         if (metadata.getSweepStrategy() == SweepStrategy.CONSERVATIVE) {
+            // the table's sweep strategy is CONSERVATIVE, then every { row, col } will have at least two rows
             return 2;
-        } else if (!metadata.getColumns().hasDynamicColumns() || metadata.getColumns().getNamedColumns().size() > 1) {
-            return 1;
-        } else {
-            return 0;
         }
+        ColumnMetadataDescription columns = metadata.getColumns();
+        if (columns != null) {
+            // there will be reuse of the { row } if there is more than one named column
+            // or the table uses dynamic columns, which would be generally be expected to have multiple row values
+            if (columns.hasDynamicColumns()) {
+                return 1;
+            }
+            Set<NamedColumnDescription> namedColumns = columns.getNamedColumns();
+            if (namedColumns != null && namedColumns.size() > 1) {
+                return 1;
+            }
+        }
+
+        return 0;
     }
 
     private boolean overflowColumnExists(String shortTableName) {u}(j  (268d9697749621e80d70fd324309f7f6f1dc4303j  catlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTableTest.javaj  modifiedj  KSj  K j  KSj  https://github.com/palantir/atlasdb/blob/73b8f449dccbda2d1a0111b5a99d7459d15b02c1/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javaj  https://github.com/palantir/atlasdb/raw/73b8f449dccbda2d1a0111b5a99d7459d15b02c1/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.java?ref=73b8f449dccbda2d1a0111b5a99d7459d15b02c1j  X[  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle;
 
 import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
@@ -41,6 +42,11 @@
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.OverflowMigrationState;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyle;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyleCache;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.ColumnValueDescription;
+import com.palantir.atlasdb.table.description.NameComponentDescription;
+import com.palantir.atlasdb.table.description.NamedColumnDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.table.description.ValueType;
 import com.palantir.common.concurrent.PTExecutors;
@@ -50,9 +56,12 @@
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.nexus.db.sql.SqlConnection;
+import java.util.ArrayList;
+import java.util.List;
 import java.util.Locale;
 import java.util.Set;
 import java.util.concurrent.ExecutorService;
+import java.util.concurrent.ThreadLocalRandom;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
@@ -348,6 +357,80 @@ public void createDoesNotThrowWhenOverflowColumnAlreadyExistsAndAlterIsRan() thr
         verifyTableAltered();
     }
 
+    @Test
+    public void testIndexStrategy_conservative_sweep() {
+        for (int col = 0; col < 10; col++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.CONSERVATIVE);
+            for (int colName = 0; colName < col; colName++) {
+                boolean hasOverflow = ThreadLocalRandom.current().nextBoolean();
+                metadataBuilder.singleNamedColumn(
+                        "foo" + colName, "foobar" + colName, hasOverflow ? ValueType.STRING : ValueType.FIXED_LONG);
+            }
+            TableMetadata metadata = metadataBuilder.build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(2);
+        }
+    }
+
+    @Test
+    public void testIndexStrategy_dynamic_columns() {
+        for (int col = 1; col <= 10; col++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+            List<NameComponentDescription> dynamicColumns = new ArrayList<>();
+            for (int colDesc = 1; colDesc <= col; colDesc++) {
+                boolean hasOverflow = ThreadLocalRandom.current().nextBoolean();
+                ValueType valueType =
+                        colDesc == col ? (hasOverflow ? ValueType.STRING : ValueType.FIXED_LONG) : ValueType.SHA256HASH;
+                dynamicColumns.add(NameComponentDescription.of("foo" + colDesc, valueType));
+            }
+            TableMetadata metadata = metadataBuilder
+                    .dynamicColumns(dynamicColumns, ValueType.STRING)
+                    .build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(1);
+        }
+    }
+
+    @Test
+    public void testIndexStrategy_named_columns() {
+        for (int col = 2; col <= 10; col++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+            List<NamedColumnDescription> columns = new ArrayList<>();
+            for (int colDesc = 1; colDesc <= col; colDesc++) {
+                boolean hasOverflow = ThreadLocalRandom.current().nextBoolean();
+                ColumnValueDescription type = ColumnValueDescription.forType(
+                        colDesc == col
+                                ? (hasOverflow ? ValueType.STRING : ValueType.FIXED_LONG)
+                                : ValueType.SHA256HASH);
+                columns.add(new NamedColumnDescription("foo" + colDesc, "foo_bar_baz" + colDesc, type));
+            }
+            TableMetadata metadata = metadataBuilder
+                    .columns(new ColumnMetadataDescription(columns))
+                    .build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata))
+                    .as("%d named columns", col)
+                    .isEqualTo(1);
+        }
+    }
+
+    @Test
+    public void testIndexStrategy_no_columns() {
+        for (int col = 0; col <= 1; col++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+            List<NamedColumnDescription> columns = new ArrayList<>();
+            for (int colDesc = 1; colDesc <= col; colDesc++) {
+                boolean hasOverflow = ThreadLocalRandom.current().nextBoolean();
+                ColumnValueDescription type = ColumnValueDescription.forType(
+                        colDesc == col
+                                ? (hasOverflow ? ValueType.STRING : ValueType.FIXED_LONG)
+                                : ValueType.SHA256HASH);
+                columns.add(new NamedColumnDescription("foo" + colDesc, "foo_bar_baz" + colDesc, type));
+            }
+            TableMetadata metadata = metadataBuilder
+                    .columns(new ColumnMetadataDescription(columns))
+                    .build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(0);
+        }
+    }
+
     private void createTable() throws TableMappingNotFoundException {
         // Not all tests will call OracleDdlTable#createTable, which makes sense as this test "creates" it for them!
         lenient()ueu(2f7e3f8545731452393b3b7d3438b6155661d2ff}(sha(2f7e3f8545731452393b3b7d3438b6155661d2ffnode_idEC_kwDOAjP5fdoAKDJmN2UzZjg1NDU3MzE0NTIzOTNiM2I3ZDM0MzhiNjE1NTY2MWQyZmYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-03-28T15:36:18Zu	committer}(j!  GitHubj#  noreply@github.comj%  2023-03-28T15:36:18Zumessage[PDS-344883] Async Initialisation and Profiling (#6485)

* bleh

* consistency

* consistency

* Add generated changelog entries

---------

Co-authored-by: svc-changelog <svc-changelog@palantir.com>tree}(j  (230deafec97f333b793cde3145096c52f74a22aburl`https://api.github.com/repos/palantir/atlasdb/git/trees/230deafec97f333b793cde3145096c52f74a22abuj1  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2f7e3f8545731452393b3b7d3438b6155661d2ff
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkIwlyCRBK7hj4Ov3rIwAAgvgIAKkRpwhiTzJouxv2iA5A+Pul
nme2B2sDlZeme30hJlMVo3/c8F0m6aqlK1u7SQ/PISRigP9bcFvym/s7nlJNlPSt
Ep5ulGfT4Mz7jRc+s2GNvbg0KvzCA89z5SgXKhzacbwYouRBAhO9BFAGraxi1yyy
baYoSRRGg8Ch7WN153I8FfROhoQBzM6FOjZWvGqyPAiPlz4ooOk8FXSE0ieSwkTB
j4TTolAnqnd2p3xAPN9ytHGiRo89YtwZHJ6McTNZsr4HP04ZZhTCSUQC0Mu/pTmP
8hw2GvzRf7pi/1LrRI8UYMqA9jzuHGL4lYmKt7QIF7iZntm1pglm0uGYBJrGE08=
=3RQB
-----END PGP SIGNATURE-----
payloadX  tree 230deafec97f333b793cde3145096c52f74a22ab
parent f522243f82381b53d56d80abd2e7f5c0046d596e
author Jeremy Kong <jkong@palantir.com> 1680017778 +0800
committer GitHub <noreply@github.com> 1680017778 +0800

[PDS-344883] Async Initialisation and Profiling (#6485)

* bleh

* consistency

* consistency

* Add generated changelog entries

---------

Co-authored-by: svc-changelog <svc-changelog@palantir.com>uuj1  ^https://api.github.com/repos/palantir/atlasdb/commits/2f7e3f8545731452393b3b7d3438b6155661d2ffhtml_urlShttps://github.com/palantir/atlasdb/commit/2f7e3f8545731452393b3b7d3438b6155661d2ffcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2f7e3f8545731452393b3b7d3438b6155661d2ff/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j1  'https://api.github.com/users/jeremyk-91j?  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj'  }(jD  web-flowjF  J/j  MDQ6VXNlcjE5ODY0NDQ3jH  4https://avatars.githubusercontent.com/u/19864447?v=4jJ  h5j1  %https://api.github.com/users/web-flowj?  https://github.com/web-flowjM  /https://api.github.com/users/web-flow/followersjO  <https://api.github.com/users/web-flow/following{/other_user}jQ  5https://api.github.com/users/web-flow/gists{/gist_id}jS  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jU  3https://api.github.com/users/web-flow/subscriptionsjW  *https://api.github.com/users/web-flow/orgsjY  +https://api.github.com/users/web-flow/reposj[  6https://api.github.com/users/web-flow/events{/privacy}j]  5https://api.github.com/users/web-flow/received_eventsj_  Userja  uparents]}(j  (f522243f82381b53d56d80abd2e7f5c0046d596ej1  ^https://api.github.com/repos/palantir/atlasdb/commits/f522243f82381b53d56d80abd2e7f5c0046d596ej?  Shttps://github.com/palantir/atlasdb/commit/f522243f82381b53d56d80abd2e7f5c0046d596euastats}(totalK	additionsK	deletionsKufiles](}(j  (0d2d4ad98a55ca825efe3a6a9aaedd1b0acd5728filenameRatlasdb-commons/src/main/java/com/palantir/async/initializer/AsyncInitializer.javastatusmodifiedj{  Kj|  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/2f7e3f8545731452393b3b7d3438b6155661d2ff/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2f7e3f8545731452393b3b7d3438b6155661d2ff/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.java?ref=2f7e3f8545731452393b3b7d3438b6155661d2ffpatchX  @@ -60,17 +60,28 @@ public final void initialize(boolean initializeAsync) {
 
     private void tryInitializationLoop() {
         if (state.isCancelled()) {
+            log.info(
+                    "Shutting down executor associated with asynchronous initialisation, as it was cancelled",
+                    SafeArg.of("className", getInitializingClassName()),
+                    SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
+                    SafeArg.of("durationBeforeCancellation", getMillisecondsSinceInitialization()));
             singleThreadedExecutor.shutdown();
             return;
         }
 
         try {
+            log.info(
+                    "Attempting to initialize {} on the attempt {}. The amount of time elapsed since we began was {}"
+                            + " milliseconds.",
+                    SafeArg.of("className", getInitializingClassName()),
+                    SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
+                    SafeArg.of("initializationDuration", getMillisecondsSinceInitialization()));
             tryInitializeInternal();
             log.info(
                     "Initialized {} on the attempt {} in {} milliseconds",
                     SafeArg.of("className", getInitializingClassName()),
                     SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
-                    SafeArg.of("initializationDuration", System.currentTimeMillis() - initializationStartTime));
+                    SafeArg.of("initializationDuration", getMillisecondsSinceInitialization()));
         } catch (Throwable throwable) {
             log.info(
                     "Failed to initialize {} on the attempt {}",
@@ -84,19 +95,23 @@ private void tryInitializationLoop() {
                         "Failed to cleanup when initialization of {} failed on attempt {} with {} milliseconds",
                         SafeArg.of("className", getInitializingClassName()),
                         SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
-                        SafeArg.of("initializationDuration", System.currentTimeMillis() - initializationStartTime),
+                        SafeArg.of("initializationDuration", getMillisecondsSinceInitialization()),
                         cleanupThrowable);
             }
             scheduleInitialization(sleepInterval());
         }
     }
 
+    private long getMillisecondsSinceInitialization() {
+        return System.currentTimeMillis() - initializationStartTime;
+    }
+
     // Not final for tests.
     void scheduleInitialization(Duration delay) {
         singleThreadedExecutor.schedule(this::tryInitializationLoop, delay.toMillis(), TimeUnit.MILLISECONDS);
     }
 
-    // Not final for tests
+    // Not final for tests.
     ScheduledExecutorService createExecutorService() {
         return PTExecutors.newSingleThreadScheduledExecutor(
                 new NamedThreadFactory("AsyncInitializer-" + getInitializingClassName(), true));u}(j  (1982907aadb718672df6cccb587875586f7006c9j  $changelog/@unreleased/pr-6485.v2.ymlj  addedj{  Kj|  K j  Kj  |https://github.com/palantir/atlasdb/blob/2f7e3f8545731452393b3b7d3438b6155661d2ff/changelog%2F%40unreleased%2Fpr-6485.v2.ymlj  {https://github.com/palantir/atlasdb/raw/2f7e3f8545731452393b3b7d3438b6155661d2ff/changelog%2F%40unreleased%2Fpr-6485.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6485.v2.yml?ref=2f7e3f8545731452393b3b7d3438b6155661d2ffj  X  @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Asynchronous initialisation now logs when the initialisation an individual
+    object starts, as well as when the executor is shutdown.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6485ueu(8fe1ba9180883846f22d44b206ef345e178fe9c5}(sha(8fe1ba9180883846f22d44b206ef345e178fe9c5node_idEC_kwDOAjP5fdoAKDhmZTFiYTkxODA4ODM4NDZmMjJkNDRiMjA2ZWYzNDVlMTc4ZmU5YzUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-16T13:18:27Zu	committer}(j  
Ahmed Alouanej  aalouane@palantir.comj  2023-05-16T13:18:27Zumessage/Merge branch 'develop' into aalouane/cbt/suitestree}(j  (438e5f0f1fccf9cc5ed27057cdde200ae6045f3eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/438e5f0f1fccf9cc5ed27057cdde200ae6045f3euj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8fe1ba9180883846f22d44b206ef345e178fe9c5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRjgqQACgkQPlMHVIT1
yhq9XAf/U7Y+GkNxPFaavOiOPYfNfoPc9N7c4G0h6U9ACXgF4h1HefKUX2PKlrRY
Pc5JelPHGjlCj3EhY7if7mxsmR2F0YvjTz08qiwM9WE/TK8FpeVRgTZLYXScuksw
toWtcQxlEmWZav/yJJUmKv/DFoGdBkMh9GMo43UyujG2rsbzES2m4Sic4GG8ht6s
2ExQTqgI95hdc38b3WEJvBLwMpZ4qYCTg+ssOUmC1pmNCF9J5OYQmTlM7e7/RWNu
LtHQ08FkL2Hk7FrxmZI3+zOdwQ3D8iMsjKDjCJAMDad3R/AsJVmXmP73Lq0mMRGx
pxou/0k7Ruphzh+MAp4OCoiOLh9Dzw==
=/NfZ
-----END PGP SIGNATURE-----payloadX>  tree 438e5f0f1fccf9cc5ed27057cdde200ae6045f3e
parent f656bd5a188322c47d93629f63b872d0cf877dd4
parent d0e1df69585786e972d8642a1f50a8f1d5814d8d
author Ahmed Alouane <aalouane@palantir.com> 1684243107 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684243107 +0100

Merge branch 'develop' into aalouane/cbt/suites
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/8fe1ba9180883846f22d44b206ef345e178fe9c5html_urlShttps://github.com/palantir/atlasdb/commit/8fe1ba9180883846f22d44b206ef345e178fe9c5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8fe1ba9180883846f22d44b206ef345e178fe9c5/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j  ergo14j  Jj  MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j  h5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14j  -https://api.github.com/users/ergo14/followersj  :https://api.github.com/users/ergo14/following{/other_user}j  3https://api.github.com/users/ergo14/gists{/gist_id}j  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j  1https://api.github.com/users/ergo14/subscriptionsj  (https://api.github.com/users/ergo14/orgsj  )https://api.github.com/users/ergo14/reposj  4https://api.github.com/users/ergo14/events{/privacy}j  3https://api.github.com/users/ergo14/received_eventsj  Userj  uparents](}(j  (f656bd5a188322c47d93629f63b872d0cf877dd4j  ^https://api.github.com/repos/palantir/atlasdb/commits/f656bd5a188322c47d93629f63b872d0cf877dd4j  Shttps://github.com/palantir/atlasdb/commit/f656bd5a188322c47d93629f63b872d0cf877dd4u}(j  (d0e1df69585786e972d8642a1f50a8f1d5814d8dj  ^https://api.github.com/repos/palantir/atlasdb/commits/d0e1df69585786e972d8642a1f50a8f1d5814d8dj  Shttps://github.com/palantir/atlasdb/commit/d0e1df69585786e972d8642a1f50a8f1d5814d8duestats}(totalK 	additionsK 	deletionsK ufiles]}(j  (c79102e643ab92d38512a931ed6f634fa8ad143ffilename changelog/0.854.0/pr-6568.v2.ymlstatusrenamedj  K j  K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/8fe1ba9180883846f22d44b206ef345e178fe9c5/changelog%2F0.854.0%2Fpr-6568.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/8fe1ba9180883846f22d44b206ef345e178fe9c5/changelog%2F0.854.0%2Fpr-6568.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.854.0%2Fpr-6568.v2.yml?ref=8fe1ba9180883846f22d44b206ef345e178fe9c5previous_filename$changelog/@unreleased/pr-6568.v2.ymluau(a504097f7748e801bbfe1b9c3db4929f3bc8e5e2}(sha(a504097f7748e801bbfe1b9c3db4929f3bc8e5e2node_idEC_kwDOAjP5fdoAKGE1MDQwOTdmNzc0OGU4MDFiYmZlMWI5YzNkYjQ5MjlmM2JjOGU1ZTIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-20T16:12:56Zu	committer}(j  
Sam Kramerj  skramer@palantir.comj  2023-06-20T16:12:56Zumessagework smarter not hardertree}(j  (7e7eed5f709ec9452b785479242dd20b4e83ddedurl`https://api.github.com/repos/palantir/atlasdb/git/trees/7e7eed5f709ec9452b785479242dd20b4e83ddeduj+  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a504097f7748e801bbfe1b9c3db4929f3bc8e5e2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSR0AgACgkQmPPOpKR4
XS1FHwf/d4V53zICZ0B98OnkbSxflk/Bm3LYe4NlhtpA8+DJ2Lgy44Yw7a97TyOq
lJ7AgTx1SAoG1ePzQwI7aZbCbi7FbEP44B/L5vDf45SKdUSTHWjNQq/z/JmzF4RF
GV/zJ/33xjIA4ARQLWNKNXhbVzyzVoxdKKstCh4W7QMrj6/nIWllyYP0Vrybvnz4
QtMAKYbOKonfu/fIKLE8YM6WRGSLrm3xHUaP2qDrLnPK8JYzDbeIJzadzJe09cZi
jyWpH9Ab5QSr3ilbaccNTFI/fQrvCMmspVmUmmkvN7XmcFZTJKeQ1H+cRYreeBUA
164RBk549PQDjVSnKxmAZkwjNwOgAA==
=uUYK
-----END PGP SIGNATURE-----payloadtree 7e7eed5f709ec9452b785479242dd20b4e83dded
parent b7acc6020b48e68a0a2097706d411f1436127bdc
author Sam Kramer <skramer@palantir.com> 1687277576 +0100
committer Sam Kramer <skramer@palantir.com> 1687277576 +0100

work smarter not harder
uuj+  ^https://api.github.com/repos/palantir/atlasdb/commits/a504097f7748e801bbfe1b9c3db4929f3bc8e5e2html_urlShttps://github.com/palantir/atlasdb/commit/a504097f7748e801bbfe1b9c3db4929f3bc8e5e2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a504097f7748e801bbfe1b9c3db4929f3bc8e5e2/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j+  'https://api.github.com/users/Sam-Kramerj9  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj!  }(j>  
Sam-Kramerj@  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=jB  3https://avatars.githubusercontent.com/u/6238814?v=4jD  h5j+  'https://api.github.com/users/Sam-Kramerj9  https://github.com/Sam-KramerjG  1https://api.github.com/users/Sam-Kramer/followersjI  >https://api.github.com/users/Sam-Kramer/following{/other_user}jK  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jM  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jO  5https://api.github.com/users/Sam-Kramer/subscriptionsjQ  ,https://api.github.com/users/Sam-Kramer/orgsjS  -https://api.github.com/users/Sam-Kramer/reposjU  8https://api.github.com/users/Sam-Kramer/events{/privacy}jW  7https://api.github.com/users/Sam-Kramer/received_eventsjY  Userj[  uparents]}(j  (b7acc6020b48e68a0a2097706d411f1436127bdcj+  ^https://api.github.com/repos/palantir/atlasdb/commits/b7acc6020b48e68a0a2097706d411f1436127bdcj9  Shttps://github.com/palantir/atlasdb/commit/b7acc6020b48e68a0a2097706d411f1436127bdcuastats}(totalK	additionsK	deletionsKufiles](}(j  (ddec50c29546659d961c4897e7ecbcde3efe9efbfilenameLatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/AtlasDbTestCase.javastatusmodifiedju  Kjv  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/a504097f7748e801bbfe1b9c3db4929f3bc8e5e2/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a504097f7748e801bbfe1b9c3db4929f3bc8e5e2/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.java?ref=a504097f7748e801bbfe1b9c3db4929f3bc8e5e2patchX  @@ -52,7 +52,6 @@
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Rule;
@@ -85,7 +84,7 @@ public class AtlasDbTestCase {
 
     @Before
     public void setUp() throws Exception {
-        deleteExecutor = Executors.newSingleThreadExecutor();
+        deleteExecutor = MoreExecutors.newDirectExecutorService();
         lockClient = LockClient.of(CLIENT);
         lockService = inMemoryTimeLockRule.getLockService();
         timelockService = inMemoryTimeLockRule.getLegacyTimelockService();u}(j  (257f163a5235cf4821789061d14aed27f4d101b9j{  eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj}  modifiedju  Kjv  Kj  Kj  https://github.com/palantir/atlasdb/blob/a504097f7748e801bbfe1b9c3db4929f3bc8e5e2/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj  https://github.com/palantir/atlasdb/raw/a504097f7748e801bbfe1b9c3db4929f3bc8e5e2/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=a504097f7748e801bbfe1b9c3db4929f3bc8e5e2j  X  @@ -151,7 +151,6 @@
 import java.util.concurrent.Executors;
 import java.util.concurrent.Future;
 import java.util.concurrent.ScheduledExecutorService;
-import java.util.concurrent.Semaphore;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.function.BiFunction;
@@ -2438,24 +2437,8 @@ public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigratio
 
     @Test
     public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
-        // Need to block deleter executor from deleting aborted values to help bloat the row.
-        Future<?> future = deleteExecutor.submit(() -> {
-            try {
-                new Semaphore(0).acquire();
-            } catch (InterruptedException e) {
-                // Do nothing, we should stop.
-            }
-        });
-
         for (int idx = 0; idx < SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS; idx++) {
-            try {
-                txManager.runTaskWithConditionThrowOnConflict(ALWAYS_FAILS_CONDITION, (txn, _c) -> {
-                    txn.put(TABLE_NO_SWEEP, ImmutableMap.of(TEST_CELL, TEST_VALUE));
-                    return null;
-                });
-            } catch (TransactionFailedRetriableException _t) {
-                // Expected, as we want to create a large row with only aborted values.
-            }
+            putUncommittedAtFreshTimestamp(TABLE_NO_SWEEP, TEST_CELL);
         }
         assertThatLoggableExceptionThrownBy(
                         () -> txManager.runTaskThrowOnConflict(txn -> txn.get(TABLE_NO_SWEEP, Set.of(TEST_CELL))))
@@ -2464,7 +2447,6 @@ public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
                 .hasExactlyArgs(
                         SafeArg.of("table", TABLE_NO_SWEEP),
                         SafeArg.of("maxIterations", SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS));
-        future.cancel(true);
     }
 
     private void verifyPrefetchValidations(ueu(e6dea799f37e089792bb611a6a3e927d51d02e21}(sha(e6dea799f37e089792bb611a6a3e927d51d02e21node_idEC_kwDOAjP5fdoAKGU2ZGVhNzk5ZjM3ZTA4OTc5MmJiNjExYTZhM2U5MjdkNTFkMDJlMjEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-17T10:08:30Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-04-17T10:08:30Zumessage3Merge branch 'develop' into jkong/e-pluribus-nullumtree}(j  (e190f9f60aff4f44c6aa579cb2c3d12e62ca0161url`https://api.github.com/repos/palantir/atlasdb/git/trees/e190f9f60aff4f44c6aa579cb2c3d12e62ca0161uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e6dea799f37e089792bb611a6a3e927d51d02e21
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ9GqAACgkQTLdFKain
zjzP3ggAyNz4gsY6Xz6B8YGIKGTdOqI86imnfo1+IWSXdVG0SOOJjFtwLQVDh63g
fFBo5s0rrQSL3HMnM+mULjsn6TV7gl/RJy8yaLJ3Mm7OQDGr98hTkJwIxq8m190M
KtOAS9FTiqCzsQ2EqNv4SVKjleZ4KHkvSD4Qd9EHGwjZ59+DAyaZkRO3Tu5pQNdg
9g8gM2Ag78bnavwAXCbgOrClPL89/GjJ799o6Lv7OKIG8P+osJZX4fUDXXw4fcUw
RP2OINVWeR85d+ml40hcFHGBP29BLbkuJyjcw7pr3f1F0EQ4O6GTfZglwAXepfB1
tYJub+NupjaiEcVxCFEgTD/zzC6kvQ==
=Ka6H
-----END PGP SIGNATURE-----payloadX8  tree e190f9f60aff4f44c6aa579cb2c3d12e62ca0161
parent 865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419
parent 143be05923383c9ea844ab41a19b4e0a324bd87c
author Jeremy Kong <jkong@palantir.com> 1681726110 +0100
committer Jeremy Kong <jkong@palantir.com> 1681726110 +0100

Merge branch 'develop' into jkong/e-pluribus-nullum
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/e6dea799f37e089792bb611a6a3e927d51d02e21html_urlShttps://github.com/palantir/atlasdb/commit/e6dea799f37e089792bb611a6a3e927d51d02e21comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e6dea799f37e089792bb611a6a3e927d51d02e21/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j  
jeremyk-91j  JZ j  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents](}(j  (865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419j  ^https://api.github.com/repos/palantir/atlasdb/commits/865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419j  Shttps://github.com/palantir/atlasdb/commit/865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419u}(j  (143be05923383c9ea844ab41a19b4e0a324bd87cj  ^https://api.github.com/repos/palantir/atlasdb/commits/143be05923383c9ea844ab41a19b4e0a324bd87cj  Shttps://github.com/palantir/atlasdb/commit/143be05923383c9ea844ab41a19b4e0a324bd87cuestats}(totalM	additionsM	deletionsMufiles](}(j  (37f614609e9364110222b476f105aa43bbb7f628filenamebatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/ColumnMetadataDescription.javastatusmodifiedj  Kj  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21patchX  @@ -22,11 +22,15 @@
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Set;
+import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 
 @Immutable
 public class ColumnMetadataDescription {
+    @Nullable
     final ImmutableSet<NamedColumnDescription> namedColumns;
+
+    @Nullable
     final DynamicColumnDescription dynamicColumn;
 
     public ColumnMetadataDescription() {
@@ -44,10 +48,12 @@ public ColumnMetadataDescription(DynamicColumnDescription dynamicColumn) {
         this.dynamicColumn = dynamicColumn;
     }
 
+    @Nullable
     public Set<NamedColumnDescription> getNamedColumns() {
         return namedColumns;
     }
 
+    @Nullable
     public DynamicColumnDescription getDynamicColumn() {
         return dynamicColumn;
     }u}(j  (1f8d140f2fcd68b79edcbd2a6f52017316caa266j  ^atlasdb-config/src/main/java/com/palantir/atlasdb/config/ShouldRunBackgroundSweepSupplier.javaj   removedj  K j  K*j  K*j  https://github.com/palantir/atlasdb/blob/865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.javaj  https://github.com/palantir/atlasdb/raw/865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.java?ref=865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419j	  X  @@ -1,42 +0,0 @@
-/*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.config;
-
-import java.util.function.BooleanSupplier;
-import java.util.function.Supplier;
-
-/**
- * Synthesises provided install and runtime configurations, and uses this to decide whether the background sweeper
- * should run. Specifically:
- *
- * <ul>
- *     <li>if the background sweeper has been explicitly enabled or disabled, use that setting;</li>
- *     <li>otherwise disable background sweep</li>
- * </ul>
- */
-public class ShouldRunBackgroundSweepSupplier implements BooleanSupplier {
-    private final Supplier<SweepConfig> runtimeConfigSupplier;
-
-    public ShouldRunBackgroundSweepSupplier(Supplier<SweepConfig> runtimeConfig) {
-        this.runtimeConfigSupplier = runtimeConfig;
-    }
-
-    @Override
-    public boolean getAsBoolean() {
-        return runtimeConfigSupplier.get().enabled().orElse(false);
-    }
-}u}(j  (8e383ff5530f7a77f005d2ff7e7e17df90fef15bj  Iatlasdb-config/src/main/java/com/palantir/atlasdb/config/SweepConfig.javaj   modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -34,7 +34,10 @@ public abstract class SweepConfig {
      * If unspecified, AtlasDB will decide whether to run the background sweeper or not. This may depend on factors
      * elsewhere in configuration.
      */
-    public abstract Optional<Boolean> enabled();
+    @Value.Default
+    public boolean enabled() {
+        return false;
+    }
 
     // TODO handle live reload
     /**u}(j  (5140cb743e991d158d882ff7fb88c203a8ba5c68j  datlasdb-config/src/main/java/com/palantir/atlasdb/factory/DefaultLockAndTimestampServiceFactory.javaj   modifiedj  Kj  Kj  K j  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java	     j  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -107,7 +107,7 @@ public final class DefaultLockAndTimestampServiceFactory implements LockAndTimes
     private final MetricsManager metricsManager;
     private final AtlasDbConfig config;
     private final Refreshable<AtlasDbRuntimeConfig> runtimeConfig;
-    private final Consumer<Object> env;
+    private final Consumer<Object> registrar;
     private final Supplier<LockService> lock;
     private final Supplier<ManagedTimestampService> time;
     private final TimestampStoreInvalidator invalidator;
@@ -122,7 +122,7 @@ public DefaultLockAndTimestampServiceFactory(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -135,7 +135,7 @@ public DefaultLockAndTimestampServiceFactory(
         this.metricsManager = metricsManager;
         this.config = config;
         this.runtimeConfig = runtimeConfig;
-        this.env = env;
+        this.registrar = registrar;
         this.lock = lock;
         this.time = time;
         this.invalidator = invalidator;
@@ -153,7 +153,7 @@ public LockAndTimestampServices createLockAndTimestampServices() {
                 metricsManager,
                 config,
                 runtimeConfig,
-                env,
+                registrar,
                 lock,
                 time,
                 invalidator,
@@ -198,7 +198,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -211,7 +211,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
         AtlasDbRuntimeConfig initialRuntimeConfig = runtimeConfig.get();
         assertNoSpuriousTimeLockBlockInRuntimeConfig(config, initialRuntimeConfig);
         if (config.leader().isPresent()) {
-            return createRawLeaderServices(metricsManager, config.leader().get(), env, lock, time, userAgent);
+            return createRawLeaderServices(metricsManager, config.leader().get(), registrar, lock, time, userAgent);
         } else if (config.timestamp().isPresent() && config.lock().isPresent()) {
             return createRawRemoteServices(metricsManager, config, runtimeConfig, userAgent);
         } else if (TransactionManagers.isUsingTimeLock(config, initialRuntimeConfig)) {
@@ -227,7 +227,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
                     timelockRequestBatcherProviders,
                     knownSchemas);
         } else {
-            return createRawEmbeddedServices(metricsManager, env, lock, time);
+            return createRawEmbeddedServices(metricsManager, registrar, lock, time);
         }
     }
 
@@ -412,13 +412,13 @@ private static Supplier<InternalMultiClientConjureTimelockService> getMultiClien
     private static LockAndTimestampServices createRawLeaderServices(
             MetricsManager metricsManager,
             LeaderConfig leaderConfig,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             UserAgent userAgent) {
         // Create local services, that may or may not end up being registered in an Consumer<Object>.
         LocalPaxosServices localPaxosServices =
-                Leaders.createAndRegisterLocalServices(metricsManager, env, leaderConfig, userAgent);
+                Leaders.createAndRegisterLocalServices(metricsManager, registrar, leaderConfig, userAgent);
 
         LeadershipCoordinator leadershipCoordinator = localPaxosServices.leadershipCoordinator();
         LockService localLock =
@@ -432,9 +432,9 @@ private static LockAndTimestampServices createRawLeaderServices(
         TimestampService localTime = getTimestampFacade(managedTimestampProxy);
         TimestampManagementService localManagement = getTimestampManagementFacade(managedTimestampProxy);
 
-        env.accept(localLock);
-        env.accept(localTime);
-        env.accept(localManagement);
+        registrar.accept(localLock);
+        registrar.accept(localTime);
+        registrar.accept(localManagement);
 
         // Create remote services, that may end up calling our own local services.
         ImmutableServerListConfig serverListConfig = ImmutableServerListConfig.builder()
@@ -586,7 +586,7 @@ private static LockAndTimestampServices createRawRemoteServices(
 
     private static LockAndTimestampServices createRawEmbeddedServices(
             MetricsManager metricsManager,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> managedTimestampServiceSupplier) {
         LockService lockService =
@@ -599,9 +599,9 @@ private static LockAndTimestampServices createRawEmbeddedServices(
         TimestampManagementService timestampManagementService = ServiceCreator.instrumentService(
                 metricsManager.getRegistry(), managedTimestampService, TimestampManagementService.class);
 
-        env.accept(lockService);
-        env.accept(timeService);
-        env.accept(timestampManagementService);
+        registrar.accept(lockService);
+        registrar.accept(timeService);
+        registrar.accept(timestampManagementService);
 
         return ImmutableLockAndTimestampServices.builder()
                 .lock(lockService)u}(j  (92cee3c0379971de0a91702380e2b466da96ff6bj  Fatlasdb-config/src/main/java/com/palantir/atlasdb/factory/Leaders.javaj   modifiedj  Kj  Kj  K
j  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -79,13 +79,13 @@ private Leaders() {
      * service.
      */
     public static LocalPaxosServices createAndRegisterLocalServices(
-            MetricsManager metricsManager, Consumer<Object> env, LeaderConfig config, UserAgent userAgent) {
+            MetricsManager metricsManager, Consumer<Object> registrar, LeaderConfig config, UserAgent userAgent) {
         LocalPaxosServices localPaxosServices = createInstrumentedLocalServices(metricsManager, config, userAgent);
 
-        env.accept(localPaxosServices.ourAcceptor());
-        env.accept(localPaxosServices.ourLearner());
-        env.accept(localPaxosServices.localPingableLeader());
-        env.accept(new NotCurrentLeaderExceptionMapper());
+        registrar.accept(localPaxosServices.ourAcceptor());
+        registrar.accept(localPaxosServices.ourLearner());
+        registrar.accept(localPaxosServices.localPingableLeader());
+        registrar.accept(new NotCurrentLeaderExceptionMapper());
         return localPaxosServices;
     }
 u}(j  (299a6baf0f3a0a5cf0514c2639c49ba1a5475878j  Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javaj   modifiedj  K
j  K#j  K-j  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X%  @@ -40,7 +40,6 @@
 import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
 import com.palantir.atlasdb.config.ImmutableAtlasDbConfig;
 import com.palantir.atlasdb.config.ServerListConfig;
-import com.palantir.atlasdb.config.ShouldRunBackgroundSweepSupplier;
 import com.palantir.atlasdb.config.SweepConfig;
 import com.palantir.atlasdb.config.TimeLockClientConfig;
 import com.palantir.atlasdb.config.TimeLockRequestBatcherProviders;
@@ -79,7 +78,6 @@
 import com.palantir.atlasdb.sweep.SpecificTableSweeper;
 import com.palantir.atlasdb.sweep.SweepBatchConfig;
 import com.palantir.atlasdb.sweep.SweepTaskRunner;
-import com.palantir.atlasdb.sweep.SweeperServiceImpl;
 import com.palantir.atlasdb.sweep.metrics.LegacySweepMetrics;
 import com.palantir.atlasdb.sweep.queue.MultiTableSweepQueueWriter;
 import com.palantir.atlasdb.sweep.queue.TargetedSweeper;
@@ -534,7 +532,7 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
         transactionManager.registerClosingCallback(targetedSweep::close);
 
         initializeCloseable(
-                () -> initializeSweepEndpointAndBackgroundProcess(
+                () -> initializeSweepBackgroundProcess(
                         metricsManager,
                         config(),
                         runtime,
@@ -809,11 +807,11 @@ static boolean timeLockMigrationCompleteIfNeeded(LockAndTimestampServices lockAn
                 .orElse(true);
     }
 
-    private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess(
+    private static BackgroundSweeperImpl initializeSweepBackgroundProcess(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Supplier<AtlasDbRuntimeConfig> runtimeConfigSupplier,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             KeyValueService kvs,
             TransactionService transactionService,
             CleanupFollower follower,
@@ -835,21 +833,19 @@ private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess
                 metricsManager,
                 () -> getSweepBatchConfig(runtimeConfigSupplier.get().sweep()));
 
-        SpecificTableSweeper specificTableSweeper = initializeSweepEndpoint(
-                env,
-                kvs,
+        SpecificTableSweeper specificTableSweeper = SpecificTableSweeper.create(
                 transactionManager,
+                kvs,
                 sweepRunner,
+                SweepTableFactory.of(),
                 sweepPerfLogger,
                 sweepMetrics,
-                config.initializeAsync(),
-                sweepBatchConfigSource);
+                config.initializeAsync());
 
         BackgroundSweeperImpl backgroundSweeper = BackgroundSweeperImpl.create(
                 metricsManager,
                 sweepBatchConfigSource,
-                new ShouldRunBackgroundSweepSupplier(
-                        () -> runtimeConfigSupplier.get().sweep())::getAsBoolean,
+                () -> runtimeConfigSupplier.get().sweep().enabled(),
                 () -> runtimeConfigSupplier.get().sweep().sweepThreads(),
                 () -> runtimeConfigSupplier.get().sweep().pauseMillis(),
                 () -> runtimeConfigSupplier.get().sweep().sweepPriorityOverrides(),
@@ -864,27 +860,6 @@ private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess
         return backgroundSweeper;
     }
 
-    private static SpecificTableSweeper initializeSweepEndpoint(
-            Consumer<Object> env,
-            KeyValueService kvs,
-            TransactionManager transactionManager,
-            SweepTaskRunner sweepRunner,
-            BackgroundSweeperPerformanceLogger sweepPerfLogger,
-            LegacySweepMetrics sweepMetrics,
-            boolean initializeAsync,
-            AdjustableSweepBatchConfigSource sweepBatchConfigSource) {
-        SpecificTableSweeper specificTableSweeper = SpecificTableSweeper.create(
-                transactionManager,
-                kvs,
-                sweepRunner,
-                SweepTableFactory.of(),
-                sweepPerfLogger,
-                sweepMetrics,
-                initializeAsync);
-        env.accept(new SweeperServiceImpl(specificTableSweeper, sweepBatchConfigSource));
-        return specificTableSweeper;
-    }
-
     private static SweepBatchConfig getSweepBatchConfig(SweepConfig sweepConfig) {
         return ImmutableSweepBatchConfig.builder()
                 .maxCellTsPairsToExamine(sweepConfig.readLimit())
@@ -940,7 +915,7 @@ public static LockAndTimestampServices createLockAndTimestampServicesForCli(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfigSupplier,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -950,7 +925,7 @@ public static LockAndTimestampServices createLockAndTimestampServicesForCli(
                         metricsManager,
                         config,
                         runtimeConfigSupplier,
-                        env,
+                        registrar,
                         lock,
                         time,
                         invalidator,u}(j  (5d339f0ca1b1d528743d2246718cc8b977604ba6j  Vatlasdb-config/src/test/java/com/palantir/atlasdb/config/AtlasDbRuntimeConfigTest.javaj   modifiedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -21,18 +21,6 @@
 import org.junit.Test;
 
 public class AtlasDbRuntimeConfigTest {
-    @Test
-    public void configDoesNotSpecifySweepByDefault() {
-        AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.defaultRuntimeConfig();
-        assertThat(config.sweep().enabled()).isEmpty();
-    }
-
-    @Test
-    public void configWithoutSweepHasSweepDisabled() {
-        AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.withSweepDisabled();
-        assertThat(config.sweep().enabled()).contains(false);
-    }
-
     @Test
     public void configWithoutSpecifyingStreamPersistenceConfigHasDefaultConfig() {
         AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.defaultRuntimeConfig();u}(j  (99709ed401e5f0d37ebfb9169ea783f5f6e19c95j  batlasdb-config/src/test/java/com/palantir/atlasdb/config/ShouldRunBackgroundSweepSupplierTest.javaj   removedj  K j  Kfj  Kfj  https://github.com/palantir/atlasdb/blob/865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.javaj  https://github.com/palantir/atlasdb/raw/865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.java?ref=865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419j	  X]  @@ -1,102 +0,0 @@
-/*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.config;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
-
-import com.palantir.atlasdb.sweep.queue.config.ImmutableTargetedSweepRuntimeConfig;
-import com.palantir.atlasdb.sweep.queue.config.TargetedSweepRuntimeConfig;
-import java.util.function.Supplier;
-import org.junit.Test;
-
-public class ShouldRunBackgroundSweepSupplierTest {
-
-    private static final TargetedSweepRuntimeConfig TARGETED_SWEEP_ENABLED =
-            ImmutableTargetedSweepRuntimeConfig.builder().enabled(true).build();
-    private static final TargetedSweepRuntimeConfig TARGETED_SWEEP_DISABLED =
-            ImmutableTargetedSweepRuntimeConfig.builder().enabled(false).build();
-
-    private static final SweepConfig BACKGROUND_SWEEP_ENABLED =
-            ImmutableSweepConfig.builder().enabled(true).build();
-    private static final SweepConfig BACKGROUND_SWEEP_UNSET = SweepConfig.defaultSweepConfig();
-    private static final SweepConfig BACKGROUND_SWEEP_DISABLED = SweepConfig.disabled();
-
-    @Test
-    public void disableBackgroundSweepIfBackgroundSweepExplicitlyDisabled() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_DISABLED))
-                .isFalse();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_DISABLED))
-                .isFalse();
-    }
-
-    @Test
-    public void enableBackgroundSweepIfBackgroundSweepExplicitlyEnabled() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_ENABLED))
-                .isTrue();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED))
-                .isTrue();
-    }
-
-    @Test
-    public void disableBackgroundSweepIfNotSet() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET))
-                .isFalse();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET))
-                .isFalse();
-    }
-
-    // Mock assignment known to be safe
-    // Direct mock invocation is safe here as we're using it as a convenient way to create a supplier
-    @SuppressWarnings({"unchecked", "DirectInvocationOnMock"})
-    @Test
-    public void liveReload() {
-        Supplier<AtlasDbRuntimeConfig> runtimeConfigSupplier = mock(Supplier.class);
-        when(runtimeConfigSupplier.get())
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET))
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET))
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED));
-
-        ShouldRunBackgroundSweepSupplier supplier = new ShouldRunBackgroundSweepSupplier(
-                () -> runtimeConfigSupplier.get().sweep());
-
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET")
-                .isFalse();
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET")
-                .isFalse();
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED")
-                .isTrue();
-    }
-
-    private static boolean runBackgroundSweep(TargetedSweepRuntimeConfig tsRuntime, SweepConfig bgSweepConfig) {
-        return new ShouldRunBackgroundSweepSupplier(
-                        () -> createRuntimeConfig(tsRuntime, bgSweepConfig).sweep())
-                .getAsBoolean();
-    }
-
-    private static AtlasDbRuntimeConfig createRuntimeConfig(
-            TargetedSweepRuntimeConfig targetedSweepRuntimeConfig, SweepConfig backgroundSweepConfig) {
-        return ImmutableAtlasDbRuntimeConfig.builder()
-                .targetedSweep(targetedSweepRuntimeConfig)
-                .sweep(backgroundSweepConfig)
-                .build();
-    }
-}u}(j  (7b553ba97fea29cc28f91d035e5cbe8060e8cae3j  hatlasdb-config/src/test/java/com/palantir/atlasdb/config/TransactionManagersAsyncInitializationTest.javaj   modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -45,7 +45,7 @@ public class TransactionManagersAsyncInitializationTest {
     private static final String USER_AGENT_VERSION = "3.1415926.5358979";
     private static final UserAgent USER_AGENT = UserAgent.of(UserAgent.Agent.of(USER_AGENT_NAME, USER_AGENT_VERSION));
 
-    private final Consumer<Object> environment = mock(Consumer.class);
+    private final Consumer<Object> registrar = mock(Consumer.class);
 
     @Test
     public void asyncInitializationEventuallySucceeds() {
@@ -59,7 +59,7 @@ public void asyncInitializationEventuallySucceeds() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema())
                 .build()
                 .serializable();
@@ -84,7 +84,7 @@ public void transactionManagersBuilderDoesNotThrowIfAsyncInitialisationFailsRepe
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema());
 
         assertThatCode(() -> build.build().serializable()).doesNotThrowAnyException();u}(j  (9c5d0752d26338a6bd7a12031a481f8b1013f2d0j  \atlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/HikariCPConnectionManager.javaj   modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -246,20 +246,21 @@ private void testDataSource(HikariDataSource dataSourcePool) throws SQLException
      * @throws SQLException if connection is invalid and cannot be used.
      */
     private void testConnection(Connection connection) throws SQLException {
-        if (connConfig.getTestQuery().isEmpty()) {
-            if (!connection.isValid(connConfig.getSocketTimeoutSeconds())) {
-                throw new SQLException(String.format("Connection %s is not valid", connection));
-            }
-        } else {
-            try (PreparedStatement stmt = connection.prepareStatement(connConfig.getTestQuery())) {
+        if (connConfig.getTestQuery().isPresent()) {
+            try (PreparedStatement stmt =
+                    connection.prepareStatement(connConfig.getTestQuery().get())) {
                 stmt.setFetchSize(1); // only need first row result
                 ResultSet rs = stmt.executeQuery();
                 if (!rs.next()) {
                     throw new SQLException(String.format(
                             "Connection %s could not be validated as it did not return any results for test query %s",
-                            connection, connConfig.getTestQuery()));
+                            connection, connConfig.getTestQuery().get()));
                 }
             }
+        } else {
+            if (!connection.isValid(connConfig.getSocketTimeoutSeconds())) {
+                throw new SQLException(String.format("Connection %s is not valid", connection));
+            }
         }
     }
 u}(j  (e1fd2afeb410162c7eb111eb2ed045144d3511afj  Zatlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/ConnectionConfig.javaj   modifiedj  Kj  Kj  K	j  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -58,10 +58,7 @@ public MaskedValue getDbPassword() {
 
     public abstract String getDriverClass();
 
-    @Value.Default
-    public String getTestQuery() {
-        return "";
-    }
+    public abstract Optional<String> getTestQuery();
 
     @JsonIgnore
     @Value.Derived
@@ -185,8 +182,8 @@ public HikariConfig getHikariConfig() {
 
         initializeFailTimeoutMillis().ifPresent(config::setInitializationFailTimeout);
 
-        if (!getTestQuery().isEmpty()) {
-            config.setConnectionTestQuery(getTestQuery());
+        if (getTestQuery().isPresent()) {
+            config.setConnectionTestQuery(getTestQuery().get());
         }
 
         if (getSqlExceptionOverrideClass().isPresent()) {u}(j  (2a91fe0d6e86187e3690c8655b64ea385b2f02faj  Satlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/FullQuery.javaj   modifiedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  Xe  @@ -35,11 +35,6 @@ public Builder append(String query) {
             return this;
         }
 
-        public Builder append(long number) {
-            queryBuilder.append(number);
-            return this;
-        }
-
         public Builder append(String query, Object arg) {
             queryBuilder.append(query);
             argsBuilder.add(arg);u}(j  (ddbe99f94fd632341080a204b08994736d8ac8d1j  gatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleCellTsPageLoader.javaj   modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -195,8 +195,7 @@ private FullQuery getQuery(boolean singleRow) {
             appendRangePredicates(singleRow, queryBuilder);
             return queryBuilder
                     .append("  ORDER BY row_name, col_name, ts")
-                    .append(") WHERE rownum <= ")
-                    .append(sqlRowLimit)
+                    .append(") WHERE rownum <= ?", sqlRowLimit)
                     .append(" ORDER BY row_name, col_name, ts")
                     .build();
         }u}(j  (16016bac4fb642bd9934fcbdc2a95307afc7979aj  _atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTable.javaj   modifiedj  K9j  Kj  KAj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X"  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Stopwatch;
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -30,6 +31,9 @@
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyle;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyleCache;
 import com.palantir.atlasdb.logging.LoggingArgs;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.NamedColumnDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.common.base.RunnableCheckedException;
 import com.palantir.common.base.Throwables;
@@ -47,6 +51,7 @@
 import com.palantir.util.VersionStrings;
 import java.sql.SQLException;
 import java.util.Locale;
+import java.util.Set;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.TimeUnit;
 import org.apache.commons.lang3.StringUtils;
@@ -90,7 +95,9 @@ public static OracleDdlTable create(
 
     @Override
     public void create(byte[] tableMetadata) {
-        boolean needsOverflow = needsOverflow(tableMetadata);
+        TableMetadata metadata = TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMetadata);
+        boolean needsOverflow = needsOverflow(metadata);
+        int compressionSetting = getOptimalIndexCompression(metadata);
 
         if (tableExists()) {
             if (needsOverflow) {
@@ -103,7 +110,7 @@ public void create(byte[] tableMetadata) {
             return;
         }
 
-        String shortTableName = createTable(needsOverflow);
+        String shortTableName = createTable(needsOverflow, compressionSetting);
 
         if (needsOverflow && !overflowColumnExists(shortTableName)) {
             throwForMissingOverflowTable();
@@ -146,10 +153,51 @@ private boolean overflowTableHasMigrated() {
         return config.overflowMigrationState() == OverflowMigrationState.FINISHED;
     }
 
-    private boolean needsOverflow(byte[] tableMetadata) {
-        TableMetadata metadata = TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMetadata);
-        return (metadata != null)
-                && (metadata.getColumns().getMaxValueSize() > AtlasDbConstants.ORACLE_OVERFLOW_THRESHOLD);
+    private boolean needsOverflow(TableMetadata metadata) {
+        return metadata.getColumns().getMaxValueSize() > AtlasDbConstants.ORACLE_OVERFLOW_THRESHOLD;
+    }
+
+    /*
+     * Determine the optimal Index Organized Table compression setting.
+     * When enabling compression on an IOT, we can instruct Oracle to compress at most one
+     * fewer columns than the number of columns that make up the PK for the IOT (i.e. the IOT we create have a PK of
+     * {row, col, ts} so we can compress 0, 1 or 2 columns - nothing, row, or row & col. It wouldn't make sense to
+     * compress all three columns, because necessarily there can be multiple rows that share all three values.
+     *
+     * When compression is enabled in an IOT, the block header adds a table the captures the values of the
+     * compressed columns. The actual rows in the blocks then refer back to entries in the header table to capture
+     * their values for the compressed columns. This extra header table and the slot references for data rows consume
+     * space in the block, so misuse of compression results in extra storage being consumed.
+     *
+     * Compression only makes sense when we expect that the { row } or { row, col } values will be reused:
+     * - If the table's sweep strategy is CONSERVATIVE, then every { row, col } will have at least two rows,
+     *   the current value (which may have null val if the value is deleted) and a sentinel row with ts = -1. Clearly
+     *   compression of both { row, col } is valuable.
+     * - If the sweep strategy is not CONSERVATIVE,  there will be reuse of the { row } if there is more than one named
+     *   column, or the table uses dynamic columns, which would be generally be expected to have multiple row values. In
+     *   this case, compression 1 is appropriate so { row } only needs to be stored once.
+     * - Finally, if the sweep strategy is not CONSERVATIVE, there are no sentinels, and if there is only one named
+     *   column then there will be no rows that share { row } so compression should be disabled.
+     */
+    @VisibleForTesting
+    static int getOptimalIndexCompression(TableMetadata metadata) {
+        if (metadata.getSweepStrategy() == SweepStrategy.CONSERVATIVE) {
+            // the table's sweep strategy is CONSERVATIVE, then every { row, col } will have at least two rows
+            return 2;
+        }
+
+        ColumnMetadataDescription columns = metadata.getColumns();
+        // there will be reuse of the { row } if there is more than one named column
+        // or the table uses dynamic columns, which would be generally be expected to have multiple row values
+        if (columns.hasDynamicColumns()) {
+            return 1;
+        }
+        Set<NamedColumnDescription> namedColumns = columns.getNamedColumns();
+        if (namedColumns != null && namedColumns.size() > 1) {
+            return 1;
+        }
+
+        return 0;
     }
 
     private boolean overflowColumnExists(String shortTableName) {
@@ -185,7 +233,7 @@ private void throwForMissingOverflowTable() {
     /**
      * Creates the table for the given reference. If the schema is modified here, please also update it in {@link #alterTableToHaveOverflowColumn}.
      */
-    private String createTable(boolean needsOverflow) {
+    private String createTable(boolean needsOverflow, int compression) {
         String shortTableName = oracleTableNameGetter.generateShortTableName(conns, tableRef);
         executeIgnoringError(
                 "CREATE TABLE " + shortTableName + " ("
@@ -197,7 +245,8 @@ private String createTable(boolean needsOverflow) {
                         + "  CONSTRAINT " + PrimaryKeyConstraintNames.get(shortTableName)
                         + " PRIMARY KEY (row_name, col_name, ts) "
                         + ") "
-                        + "organization index compress "
+                        + "organization index "
+                        + (compression == 0 ? "" : "compress " + compression + " ")
                         // Since append only completely fill blocks - no benefit in leaving space for updates of rows
                         // PCTUSED N/A to Index Organized Tables
                         + "PCTFREE 0 "u}(j  (570b443f767b2c7f891051709f1bd68ce081d75cj  _atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleGetRange.javaj   modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  XF  @@ -316,8 +316,7 @@ private FullQuery getRangeQuery(ConnectionSupplier conns) {
                     .append(shortTableName)
                     .append(" v ON ")
                     .append("    sub.row_name = v.row_name and sub.col_name = v.col_name and sub.ts = v.ts")
-                    .append("  WHERE sub.rn <= ")
-                    .append(maxRowsPerPage)
+                    .append("  WHERE sub.rn <= ?", maxRowsPerPage)
                     .append("  ORDER BY sub.row_name ")
                     .append(direction)
                     .append(", sub.col_name ")u}(j  (68c4ca31f6171bb238d98d2e9cfa5f4ad9e2f919j  catlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleQueryFactory.javaj   modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  XW	  @@ -312,8 +312,8 @@ public FullQuery getRangeQuery(RangeRequest range, long ts, int maxRows) {
                 + "     FROM " + tableName + " m "
                 + (bounds.isEmpty() ? "" : " WHERE  " + Joiner.on(" AND ").join(bounds))
                 + "     ORDER BY m.row_name " + (range.isReverse() ? "DESC" : "ASC")
-                + "   ) inner WHERE rownum <= " + maxRows;
-        return new FullQuery(query).withArgs(args);
+                + "   ) inner WHERE rownum <= ?";
+        return new FullQuery(query).withArgs(args).withArg(maxRows);
     }
 
     @Override
@@ -334,10 +334,10 @@ public FullQuery getRowsColumnRangeCountsQuery(
                 + " GROUP BY m.row_name";
         FullQuery fullQuery = new FullQuery(query).withArgs(rowsToOracleArray(rows), ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
         return fullQuery;
     }
@@ -355,14 +355,15 @@ protected FullQuery getRowsColumnRangeSubQuery(
                 + (columnRangeSelection.getStartCol().length > 0 ? " AND m.col_name >= ?" : "")
                 + (columnRangeSelection.getEndCol().length > 0 ? " AND m.col_name < ?" : "")
                 + " GROUP BY m.row_name, m.col_name"
-                + " ORDER BY m.row_name ASC, m.col_name ASC ) s WHERE rownum <= " + columnRangeSelection.getBatchHint();
+                + " ORDER BY m.row_name ASC, m.col_name ASC ) s WHERE rownum <= ?";
         FullQuery fullQuery = new FullQuery(query).withArg(row).withArg(ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
+        fullQuery.withArg(columnRangeSelection.getBatchHint());
         return fullQuery;
     }
 u}(j  (2f1bb8d487f43f4608acaf707e7e6788af473dbdj  katlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresCellTsPageLoader.javaj   modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  XR  @@ -154,8 +154,7 @@ private FullQuery getFullQuery() {
                                 token.startRowInclusive(), token.startColInclusive(), token.startTsInclusive());
                 return queryBuilder
                         .append("      ORDER BY row_name, col_name, ts")
-                        .append("      LIMIT ")
-                        .append(sqlRowLimit)
+                        .append("      LIMIT ?", sqlRowLimit)
                         .append("    ) sub")
                         .append("    GROUP BY row_name, col_name")
                         .append("    ORDER BY row_name, col_name")
@@ -183,8 +182,7 @@ private FullQuery getFullQuery() {
                                 token.startRowInclusive(), token.startColInclusive(), token.startTsInclusive());
                 return queryBuilder
                         .append("  ORDER BY row_name, col_name, ts")
-                        .append("  LIMIT ")
-                        .append(sqlRowLimit)
+                        .append("  LIMIT ?", sqlRowLimit)
                         .build();
             }
         }u}(j  (00cafb31e5f67e282a7490f4d2f3b4c4034b0fb5j  catlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresGetRange.javaj   modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -288,8 +288,7 @@ private FullQuery getRangeQuery() {
                     .append(direction)
                     .append(", col_name ")
                     .append(direction)
-                    .append("    LIMIT ")
-                    .append(maxCellsPerPage)
+                    .append("    LIMIT ?", maxCellsPerPage)
                     .append("  ) i")
                     .append("  WHERE wrap.row_name = i.row_name")
                     .append("    AND wrap.col_name = i.col_name")u}(j  (09ea7a8a8689d417885286a94aaf8424dfa8b7faj  gatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresQueryFactory.javaj   modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -229,8 +229,8 @@ public FullQuery getRangeQuery(RangeRequest range, long ts, int maxRows) {
                 + " FROM " + prefixedTableName() + " m "
                 + (bounds.isEmpty() ? "" : " WHERE  " + Joiner.on(" AND ").join(bounds))
                 + " ORDER BY m.row_name " + (range.isReverse() ? "DESC" : "ASC")
-                + " LIMIT " + maxRows;
-        return new FullQuery(query).withArgs(args);
+                + " LIMIT ?";
+        return new FullQuery(query).withArgs(args).withArg(maxRows);
     }
 
     @Override
@@ -319,16 +319,17 @@ protected FullQuery getRowsColumnRangeSubQuery(
                 + (columnRangeSelection.getStartCol().length > 0 ? " AND m.col_name >= ?" : "")
                 + (columnRangeSelection.getEndCol().length > 0 ? " AND m.col_name < ?" : "")
                 + " GROUP BY m.row_name, m.col_name"
-                + " ORDER BY m.col_name ASC LIMIT " + columnRangeSelection.getBatchHint();
+                + " ORDER BY m.col_name ASC LIMIT ?";
         FullQuery fullQuery = new FullQuery(wrapQueryWithIncludeValue("GET_ROWS_COLUMN_RANGE", query, true))
                 .withArg(row)
                 .withArg(ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
+        fullQuery.withArg(columnRangeSelection.getBatchHint());
         return fullQuery;
     }
 u}(j  (e22af5a95fd838f0ae5d4de23759495e249828a8j  catlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTableTest.javaj   modifiedj  K7j  K j  K7j  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X,  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle;
 
 import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
@@ -41,6 +42,11 @@
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.OverflowMigrationState;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyle;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyleCache;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.ColumnValueDescription;
+import com.palantir.atlasdb.table.description.NameComponentDescription;
+import com.palantir.atlasdb.table.description.NamedColumnDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.table.description.ValueType;
 import com.palantir.common.concurrent.PTExecutors;
@@ -50,6 +56,8 @@
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.nexus.db.sql.SqlConnection;
+import java.util.ArrayList;
+import java.util.List;
 import java.util.Locale;
 import java.util.Set;
 import java.util.concurrent.ExecutorService;
@@ -348,6 +356,53 @@ public void createDoesNotThrowWhenOverflowColumnAlreadyExistsAndAlterIsRan() thr
         verifyTableAltered();
     }
 
+    @Test
+    public void conservativeSweptTablesHaveIndexCompression2() {
+        for (int numColumns = 0; numColumns <= 2; numColumns++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.CONSERVATIVE);
+            for (int colName = 0; colName < numColumns; colName++) {
+                metadataBuilder.singleNamedColumn("c" + colName, "col" + colName, ValueType.STRING);
+            }
+            TableMetadata metadata = metadataBuilder.build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(2);
+        }
+    }
+
+    @Test
+    public void thoroughSweptTablesWithDynamicColsHaveIndexCompression1() {
+        TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+        TableMetadata metadata = metadataBuilder
+                .dynamicColumns(List.of(NameComponentDescription.of("c", ValueType.STRING)), ValueType.STRING)
+                .build();
+        assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(1);
+    }
+
+    @Test
+    public void thoroughSweptTablesWithMultipleNamedColsHaveIndexCompression1() {
+        for (int numColumns = 2; numColumns <= 3; numColumns++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+            List<NamedColumnDescription> columns = new ArrayList<>();
+            for (int colDesc = 1; colDesc <= numColumns; colDesc++) {
+                columns.add(new NamedColumnDescription(
+                        "c" + colDesc, "col" + colDesc, ColumnValueDescription.forType(ValueType.STRING)));
+            }
+            TableMetadata metadata = metadataBuilder
+                    .columns(new ColumnMetadataDescription(columns))
+                    .build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(1);
+        }
+    }
+
+    @Test
+    public void thoroughSweptTablesWithOneNamedColHaveIndexCompressionDisabled() {
+        TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+        TableMetadata metadata = metadataBuilder
+                .columns(new ColumnMetadataDescription(List.of(
+                        new NamedColumnDescription("c", "col", ColumnValueDescription.forType(ValueType.STRING)))))
+                .build();
+        assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(0);
+    }
+
     private void createTable() throws TableMappingNotFoundException {
         // Not all tests will call OracleDdlTable#createTable, which makes sense as this test "creates" it for them!
         lenient()u}(j  (8998869ed08a7e30d96c016b7470e3e524faa8c5j  Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/BackgroundSweepThread.javaj   modifiedj  Kj  K	j  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  XB  @@ -39,6 +39,8 @@
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.TimeUnit;
+import java.util.function.BooleanSupplier;
+import java.util.function.LongSupplier;
 import java.util.function.Supplier;
 
 public class BackgroundSweepThread implements Runnable {
@@ -49,8 +51,8 @@ public class BackgroundSweepThread implements Runnable {
     private final SweepOutcomeMetrics sweepOutcomeMetrics;
     private final SpecificTableSweeper specificTableSweeper;
     private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-    private final Supplier<Long> sweepPauseMillis;
-    private final Supplier<Boolean> isSweepEnabled;
+    private final LongSupplier sweepPauseMillis;
+    private final BooleanSupplier isSweepEnabled;
     private final Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig;
     private final NextTableToSweepProvider nextTableToSweepProvider;
     private final CountDownLatch shuttingDown;
@@ -64,8 +66,8 @@ public static BackgroundSweepThread createForTests(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper,
             MetricsManager metricsManager) {
@@ -86,8 +88,8 @@ public static BackgroundSweepThread createForTests(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper,
             SweepOutcomeMetrics sweepOutcomeMetrics,
@@ -190,7 +192,7 @@ private Duration getSleepDuration(Optional<SweepOutcome> maybeOutcome) {
         return maybeOutcome
                 .flatMap(outcome -> {
                     if (outcome == SweepOutcome.SUCCESS) {
-                        return Optional.of(Duration.ofMillis(sweepPauseMillis.get()));
+                        return Optional.of(Duration.ofMillis(sweepPauseMillis.getAsLong()));
                     } else if (outcome == SweepOutcome.NOTHING_TO_SWEEP) {
                         return Optional.of(getBackoffTimeWhenNothingToSweep());
                     } else {
@@ -202,7 +204,7 @@ private Duration getSleepDuration(Optional<SweepOutcome> maybeOutcome) {
 
     @VisibleForTesting
     Optional<SweepOutcome> checkConfigAndRunSweep(SingleLockService locks) throws InterruptedException {
-        if (isSweepEnabled.get()) {
+        if (isSweepEnabled.getAsBoolean()) {
             return Optional.of(grabLocksAndRun(locks));
         }
 
@@ -233,7 +235,7 @@ private SweepOutcome grabLocksAndRun(SingleLockService locks) throws Interrupted
     }
 
     private Duration getBackoffTimeWhenSweepHasNotRun() {
-        return Duration.ofMillis(sweepPauseMillis.get()).plusSeconds(1).multipliedBy(20); // 2 minutes by default
+        return Duration.ofMillis(sweepPauseMillis.getAsLong()).plusSeconds(1).multipliedBy(20); // 2 minutes by default
     }
 
     private Duration getBackoffTimeWhenNothingToSweep() {u}(j  (44bc31882603500ba427d3970ff3730e2b7b3a21j  Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/BackgroundSweeperImpl.javaj   modifiedj  K
j  K
j  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -27,6 +27,9 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
+import java.util.function.BooleanSupplier;
+import java.util.function.IntSupplier;
+import java.util.function.LongSupplier;
 import java.util.function.Supplier;
 
 public final class BackgroundSweeperImpl implements BackgroundSweeper, AutoCloseable {
@@ -35,16 +38,16 @@ public final class BackgroundSweeperImpl implements BackgroundSweeper, AutoClose
     private static final long MAX_DAEMON_CLEAN_SHUTDOWN_TIME_MILLIS = 10_000;
 
     // Thread management
-    private final Supplier<Integer> sweepThreads;
+    private final IntSupplier sweepThreads;
     private Set<Thread> daemons;
     private final CountDownLatch shuttingDown = new CountDownLatch(1);
 
     // Shared between threads
     private final LockService lockService;
     private final NextTableToSweepProvider nextTableToSweepProvider;
     private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-    private final Supplier<Boolean> isSweepEnabled;
-    private final Supplier<Long> sweepPauseMillis;
+    private final BooleanSupplier isSweepEnabled;
+    private final LongSupplier sweepPauseMillis;
     private final Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig;
     private final SpecificTableSweeper specificTableSweeper;
     private final SweepOutcomeMetrics sweepOutcomeMetrics;
@@ -54,9 +57,9 @@ private BackgroundSweeperImpl(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Integer> sweepThreads,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            IntSupplier sweepThreads,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper) {
         this.sweepOutcomeMetrics = SweepOutcomeMetrics.registerLegacy(metricsManager);
@@ -73,9 +76,9 @@ private BackgroundSweeperImpl(
     public static BackgroundSweeperImpl create(
             MetricsManager metricsManager,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Integer> sweepThreads,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            IntSupplier sweepThreads,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper) {
         NextTableToSweepProvider nextTableToSweepProvider = NextTableToSweepProvider.create(
@@ -98,7 +101,7 @@ public static BackgroundSweeperImpl create(
     @Override
     public synchronized void runInBackground() {
         Preconditions.checkState(daemons == null);
-        int numThreads = sweepThreads.get();
+        int numThreads = sweepThreads.getAsInt();
         daemons = Sets.newHashSetWithExpectedSize(numThreads);
 
         for (int idx = 1; idx <= numThreads; idx++) {u}(j  (02fd2f3ca2aca4164d40955a1e90f300421e02dcj  Patlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweeperService.javaj   removedj  K j  Kbj  Kbj  https://github.com/palantir/atlasdb/blob/865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperService.javaj  https://github.com/palantir/atlasdb/raw/865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperService.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperService.java?ref=865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419j	  X-  @@ -1,98 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import com.palantir.logsafe.Safe;
-import java.util.Optional;
-import javax.ws.rs.Consumes;
-import javax.ws.rs.POST;
-import javax.ws.rs.Path;
-import javax.ws.rs.Produces;
-import javax.ws.rs.QueryParam;
-import javax.ws.rs.core.MediaType;
-
-/**
- * Provides endpoints for sweeping a specific table.
- */
-@Path("/sweep")
-@Produces(MediaType.APPLICATION_JSON)
-@Consumes(MediaType.APPLICATION_JSON)
-public interface SweeperService {
-
-    default SweepTableResponse sweepTableFully(String tableName) {
-        return sweepTable(
-                tableName, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
-    }
-
-    default SweepTableResponse sweepTableFrom(String tableName, String startRow) {
-        return sweepTable(
-                tableName,
-                Optional.of(startRow),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-    }
-
-    /**
-     * Sweeps a particular table.
-     *
-     * @param tableName the table to sweep, in the format namespace.table_name (e.g. myapp.users)
-     * @param startRow (Optional) the row to start from, encoded as a hex string (e.g. 12345abcde)
-     * @param fullSweep (Optional; default true) whether to sweep the full table; if false just runs one batch
-     * @param maxCellTsPairsToExamine (Optional) see {@link SweepBatchConfig#maxCellTsPairsToExamine()}
-     * @param candidateBatchSize (Optional) see {@link SweepBatchConfig#candidateBatchSize()}
-     * @param deleteBatchSize (Optional) see {@link SweepBatchConfig#deleteBatchSize()}
-     */
-    @POST
-    @Path("sweep-table")
-    SweepTableResponse sweepTable(
-            @QueryParam("tablename") String tableName,
-            @QueryParam("startRow") Optional<String> startRow,
-            @Safe @QueryParam("fullSweep") Optional<Boolean> fullSweep,
-            @Safe @QueryParam("maxCellTsPairsToExamine") Optional<Integer> maxCellTsPairsToExamine,
-            @Safe @QueryParam("candidateBatchSize") Optional<Integer> candidateBatchSize,
-            @Safe @QueryParam("deleteBatchSize") Optional<Integer> deleteBatchSize);
-
-    /**
-     * Sweeps a table, but intentionally probabilistically skips a fraction of eligible entries to prevent issues that
-     * might arise from having too many consecutive deletes in the underlying KVS. This is expected to be safe to
-     * invoke at least twice without cleanup at the KVS level, but generally the expected usage is to run once, and
-     * then invoke {@link #sweepTable(String, Optional, Optional, Optional, Optional, Optional)} to clean any
-     * skipped values once KVS cleanup, such as compactions, is done.
-     *
-     * Implementation must respect the usual sweep guarantee: no (possibly in-flight) transaction may as a result of
-     * this operation read a version (or lack of one) of a cell different than it would have read if this operation had
-     * not run, and still succeed. In particular, this means that if any version of a cell is retained, then also the
-     * latest version prior to the sweep timestamp of the same cell must not be removed (even if it is a delete).
-     *
-     * @param tableName the table to sweep, in the format namespace.table_name (e.g. myapp.users)
-     * @param startRow (Optional) the row to start from, encoded as a hex string (e.g. 12345abcde)
-     * @param fullSweep (Optional; default true) whether to sweep the full table; if false just runs one batch
-     * @param maxCellTsPairsToExamine (Optional) see {@link SweepBatchConfig#maxCellTsPairsToExamine()}
-     * @param candidateBatchSize (Optional) see {@link SweepBatchConfig#candidateBatchSize()}
-     * @param deleteBatchSize (Optional) see {@link SweepBatchConfig#deleteBatchSize()}
-     */
-    @POST
-    @Path("sweep-previously-conservative-now-thorough-table")
-    SweepTableResponse sweepPreviouslyConservativeNowThoroughTable(
-            @QueryParam("tablename") String tableName,
-            @QueryParam("startRow") Optional<String> startRow,
-            @Safe @QueryParam("fullSweep") Optional<Boolean> fullSweep,
-            @Safe @QueryParam("maxCellTsPairsToExamine") Optional<Integer> maxCellTsPairsToExamine,
-            @Safe @QueryParam("candidateBatchSize") Optional<Integer> candidateBatchSize,
-            @Safe @QueryParam("deleteBatchSize") Optional<Integer> deleteBatchSize);
-}u     }(j  (a043b1f465845d038463867d0cef3a602201da50j  Tatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweeperServiceImpl.javaj   removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImpl.javaj  https://github.com/palantir/atlasdb/raw/865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImpl.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImpl.java?ref=865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419j	  X.  @@ -1,169 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.SweepResults;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
-import com.palantir.atlasdb.logging.LoggingArgs;
-import com.palantir.logsafe.Preconditions;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.UnsafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.Optional;
-
-public final class SweeperServiceImpl implements SweeperService {
-    private static final SafeLogger log = SafeLoggerFactory.get(SweeperServiceImpl.class);
-
-    private final SpecificTableSweeper specificTableSweeper;
-    private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-
-    public SweeperServiceImpl(
-            SpecificTableSweeper specificTableSweeper, AdjustableSweepBatchConfigSource sweepBatchConfigSource) {
-        this.specificTableSweeper = specificTableSweeper;
-        this.sweepBatchConfigSource = sweepBatchConfigSource;
-    }
-
-    @Override
-    public SweepTableResponse sweepTable(
-            String tableName,
-            Optional<String> startRow,
-            Optional<Boolean> fullSweep,
-            Optional<Integer> maxCellTsPairsToExamine,
-            Optional<Integer> candidateBatchSize,
-            Optional<Integer> deleteBatchSize) {
-        TableReference tableRef = getTableRef(tableName);
-        checkTableExists(tableName, tableRef);
-
-        byte[] decodedStartRow = startRow.map(PtBytes::decodeHexString).orElse(PtBytes.EMPTY_BYTE_ARRAY);
-        SweepBatchConfig config =
-                buildConfigWithOverrides(maxCellTsPairsToExamine, candidateBatchSize, deleteBatchSize);
-
-        return SweepTableResponse.from(
-                runSweep(fullSweep, tableRef, decodedStartRow, config, SweepTaskRunner.RunType.FULL));
-    }
-
-    @Override
-    public SweepTableResponse sweepPreviouslyConservativeNowThoroughTable(
-            String tableName,
-            Optional<String> startRow,
-            Optional<Boolean> fullSweep,
-            Optional<Integer> maxCellTsPairsToExamine,
-            Optional<Integer> candidateBatchSize,
-            Optional<Integer> deleteBatchSize) {
-        TableReference tableRef = getTableRef(tableName);
-        checkTableExists(tableName, tableRef);
-
-        byte[] decodedStartRow = startRow.map(PtBytes::decodeHexString).orElse(PtBytes.EMPTY_BYTE_ARRAY);
-        SweepBatchConfig config =
-                buildConfigWithOverrides(maxCellTsPairsToExamine, candidateBatchSize, deleteBatchSize);
-
-        return SweepTableResponse.from(runSweep(
-                fullSweep, tableRef, decodedStartRow, config, SweepTaskRunner.RunType.WAS_CONSERVATIVE_NOW_THOROUGH));
-    }
-
-    private SweepResults runSweep(
-            Optional<Boolean> fullSweep,
-            TableReference tableRef,
-            byte[] decodedStartRow,
-            SweepBatchConfig config,
-            SweepTaskRunner.RunType runType) {
-        if (!fullSweep.isPresent()) {
-            log.warn("fullSweep parameter was not specified, defaulting to true");
-        }
-
-        if (fullSweep.orElse(true)) {
-            log.info(
-                    "Running sweep of full table {}, "
-                            + "with maxCellTsPairsToExamine: {}, candidateBatchSize: {}, deleteBatchSize: {}, "
-                            + "starting from row {}",
-                    LoggingArgs.tableRef(tableRef),
-                    SafeArg.of("maxCellTsPairsToExamine", config.maxCellTsPairsToExamine()),
-                    SafeArg.of("candidateBatchSize", config.candidateBatchSize()),
-                    SafeArg.of("deleteBatchSize", config.deleteBatchSize()),
-                    UnsafeArg.of("decodedStartRow", decodedStartRow));
-            return runFullSweepWithoutSavingResults(tableRef, decodedStartRow, config, runType);
-        } else {
-            log.info(
-                    "Running sweep of a single batch on table {}, "
-                            + "with maxCellTsPairsToExamine: {}, candidateBatchSize: {}, deleteBatchSize: {}, "
-                            + "starting from row {}",
-                    LoggingArgs.tableRef(tableRef),
-                    SafeArg.of("maxCellTsPairsToExamine", config.maxCellTsPairsToExamine()),
-                    SafeArg.of("candidateBatchSize", config.candidateBatchSize()),
-                    SafeArg.of("deleteBatchSize", config.deleteBatchSize()),
-                    UnsafeArg.of("decodedStartRow", decodedStartRow));
-            return runOneBatchWithoutSavingResults(tableRef, decodedStartRow, config, runType);
-        }
-    }
-
-    private SweepBatchConfig buildConfigWithOverrides(
-            Optional<Integer> maxCellTsPairsToExamine,
-            Optional<Integer> candidateBatchSize,
-            Optional<Integer> deleteBatchSize) {
-        ImmutableSweepBatchConfig.Builder batchConfigBuilder =
-                ImmutableSweepBatchConfig.builder().from(sweepBatchConfigSource.getAdjustedSweepConfig());
-
-        maxCellTsPairsToExamine.ifPresent(batchConfigBuilder::maxCellTsPairsToExamine);
-        candidateBatchSize.ifPresent(batchConfigBuilder::candidateBatchSize);
-        deleteBatchSize.ifPresent(batchConfigBuilder::deleteBatchSize);
-
-        return batchConfigBuilder.build();
-    }
-
-    private TableReference getTableRef(String tableName) {
-        Preconditions.checkArgument(
-                TableReference.isFullyQualifiedName(tableName),
-                "Table name is not fully qualified",
-                LoggingArgs.safeInternalTableName(tableName));
-        return TableReference.createFromFullyQualifiedName(tableName);
-    }
-
-    private void checkTableExists(String tableName, TableReference tableRef) {
-        Preconditions.checkArgument(
-                specificTableSweeper.getKvs().getAllTableNames().contains(tableRef),
-                "Table requested to sweep does not exist",
-                LoggingArgs.safeInternalTableName(tableName));
-    }
-
-    private SweepResults runFullSweepWithoutSavingResults(
-            TableReference tableRef,
-            byte[] startRow,
-            SweepBatchConfig sweepBatchConfig,
-            SweepTaskRunner.RunType runType) {
-        SweepResults cumulativeResults = SweepResults.createEmptySweepResult(Optional.of(startRow));
-
-        while (cumulativeResults.getNextStartRow().isPresent()) {
-            SweepResults results = runOneBatchWithoutSavingResults(
-                    tableRef, cumulativeResults.getNextStartRow().get(), sweepBatchConfig, runType);
-
-            specificTableSweeper.updateTimeMetricsOneIteration(
-                    results.getTimeInMillis(), results.getTimeElapsedSinceStartedSweeping());
-            cumulativeResults = cumulativeResults.accumulateWith(results);
-        }
-
-        return cumulativeResults;
-    }
-
-    private SweepResults runOneBatchWithoutSavingResults(
-            TableReference tableRef,
-            byte[] startRow,
-            SweepBatchConfig sweepBatchConfig,
-            SweepTaskRunner.RunType runType) {
-        return specificTableSweeper.runOneIteration(tableRef, startRow, sweepBatchConfig, runType);
-    }
-}u}(j  (dccc318b332ffaa971355af06b94dc51f14199e0j  Xatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/SweeperServiceImplTest.javaj   removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplTest.javaj  https://github.com/palantir/atlasdb/raw/865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplTest.java?ref=865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419j	  X`!  @@ -1,205 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.never;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoMoreInteractions;
-import static org.mockito.Mockito.when;
-
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.io.BaseEncoding;
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.SweepResults;
-import com.palantir.atlasdb.util.DropwizardClientRule;
-import com.palantir.atlasdb.util.TestJaxRsClientFactory;
-import com.palantir.conjure.java.api.errors.RemoteException;
-import com.palantir.conjure.java.server.jersey.ConjureJerseyFeature;
-import java.util.List;
-import java.util.Optional;
-import javax.ws.rs.core.Response;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Rule;
-import org.junit.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-
-public class SweeperServiceImplTest extends SweeperTestSetup {
-
-    private static final String VALID_START_ROW = "0102030A";
-    private static final String LOWERCASE_BUT_VALID_START_ROW = "abadcafe";
-    private static final String MIXED_CASE_START_ROW = "AaAaAaAaAa1111";
-    private static final String INVALID_START_ROW = "xyz";
-    SweeperService sweeperService;
-
-    private static final SweepResults RESULTS_NO_MORE_TO_SWEEP = SweepResults.createEmptySweepResultWithNoMoreToSweep();
-    private static final SweepResults RESULTS_MORE_TO_SWEEP = SweepResults.createEmptySweepResultWithMoreToSweep();
-
-    @Rule
-    public DropwizardClientRule dropwizardClientRule = new DropwizardClientRule(
-            new SweeperServiceImpl(getSpecificTableSweeperService(), sweepBatchConfigSource),
-            ConjureJerseyFeature.INSTANCE);
-
-    @Override
-    @Before
-    public void setup() {
-        super.setup();
-
-        sweeperService = TestJaxRsClientFactory.createJaxRsClientForTest(
-                SweeperService.class,
-                SweeperServiceImplTest.class,
-                dropwizardClientRule.baseUri().toString());
-
-        setupTaskRunner(RESULTS_NO_MORE_TO_SWEEP);
-        when(kvs.getAllTableNames()).thenReturn(ImmutableSet.of(TABLE_REF));
-    }
-
-    @After
-    public void after() {
-        verifyNoSweepResultsSaved();
-    }
-
-    @Test
-    public void sweepingNonFullyTableShouldNotBeSuccessful() {
-        assertThatExceptionOfType(RemoteException.class)
-                .isThrownBy(() -> sweeperService.sweepTableFully("non_fully_qualified_name"))
-                .matches(ex -> ex.getStatus() == Response.Status.BAD_REQUEST.getStatusCode());
-    }
-
-    @Test
-    public void sweepingNonExistingTableShouldNotBeSuccessful() {
-        assertThatExceptionOfType(RemoteException.class)
-                .isThrownBy(() -> sweeperService.sweepTableFully("ns.non_existing_table"))
-                .matches(ex -> ex.getStatus() == Response.Status.BAD_REQUEST.getStatusCode());
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithValidStartRowShouldBeSuccessful() {
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), VALID_START_ROW);
-    }
-
-    @Test
-    public void sweepTableFromStartRowShouldAcceptLowercaseBase16Encodings() {
-        when(kvs.getAllTableNames()).thenReturn(ImmutableSet.of(TABLE_REF));
-
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), LOWERCASE_BUT_VALID_START_ROW);
-    }
-
-    @Test
-    public void sweepTableFromStartRowShouldAcceptMixedCaseBase16Encodings() {
-        when(kvs.getAllTableNames()).thenReturn(ImmutableSet.of(TABLE_REF));
-
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), MIXED_CASE_START_ROW);
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithInValidStartRowShouldThrow() {
-        assertThatExceptionOfType(RemoteException.class)
-                .isThrownBy(() -> sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), INVALID_START_ROW))
-                .matches(ex -> ex.getStatus() == Response.Status.BAD_REQUEST.getStatusCode());
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithBatchConfigWithNullStartRowShouldBeSuccessful() {
-        sweeperService.sweepTable(
-                TABLE_REF.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.of(1000),
-                Optional.of(1000),
-                Optional.of(500));
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithBatchConfigWithExactlyOneNonNullBatchConfigShouldBeSuccessful() {
-        sweeperService.sweepTable(
-                TABLE_REF.getQualifiedName(),
-                Optional.of(encodeStartRow(new byte[] {1, 2, 3})),
-                Optional.empty(),
-                Optional.of(10),
-                Optional.empty(),
-                Optional.empty());
-    }
-
-    @Test
-    public void testWriteProgressAndPriorityNotUpdatedAfterSweepRunsSuccessfully_butMetricsAre() {
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), encodeStartRow(new byte[] {1, 2, 3}));
-        ArgumentCaptor<Long> sweepTime = ArgumentCaptor.forClass(Long.class);
-        ArgumentCaptor<Long> totalTimeElapsed = ArgumentCaptor.forClass(Long.class);
-
-        Mockito.verify(sweepMetrics, times(1)).updateSweepTime(sweepTime.capture(), totalTimeElapsed.capture());
-        verifyExpectedArgument(sweepTime.getValue(), totalTimeElapsed.getValue());
-    }
-
-    @Test
-    public void sweepsEntireTableByDefault() {
-        List<byte[]> startRows = ImmutableList.of(PtBytes.EMPTY_BYTE_ARRAY, new byte[] {0x10}, new byte[] {0x50});
-
-        for (int i = 0; i < startRows.size(); i++) {
-            byte[] currentRow = startRows.get(i);
-            Optional<byte[]> nextRow =
-                    (i + 1) == startRows.size() ? Optional.empty() : Optional.of(startRows.get(i + 1));
-
-            SweepResults results = SweepResults.createEmptySweepResult(nextRow);
-            when(sweepTaskRunner.run(any(), any(), eq(currentRow), any())).thenReturn(results);
-        }
-
-        sweeperService.sweepTableFully(TABLE_REF.getQualifiedName());
-
-        startRows.forEach(row -> verify(sweepTaskRunner).run(any(), any(), eq(row), any()));
-        verifyNoMoreInteractions(sweepTaskRunner);
-    }
-
-    @Test
-    public void runsOneIterationIfRequested() {
-        setupTaskRunner(RESULTS_MORE_TO_SWEEP);
-
-        sweeperService.sweepTable(
-                TABLE_REF.getQualifiedName(),
-                Optional.empty(),
-                Optional.of(false),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        verify(sweepTaskRunner, times(1)).run(any(), any(), any(), any());
-        verifyNoMoreInteractions(sweepTaskRunner);
-    }
-
-    private void verifyExpectedArgument(long sweepTime, long totalTimeElapsed) {
-        assertThat(RESULTS_NO_MORE_TO_SWEEP.getTimeInMillis()).isEqualTo(sweepTime);
-        assertThat(totalTimeElapsed)
-                .isBetween(
-                        RESULTS_NO_MORE_TO_SWEEP.getTimeElapsedSinceStartedSweeping() - 1000L,
-                        RESULTS_NO_MORE_TO_SWEEP.getTimeElapsedSinceStartedSweeping());
-    }
-
-    private String encodeStartRow(byte[] rowBytes) {
-        return BaseEncoding.base16().encode(rowBytes);
-    }
-
-    private void verifyNoSweepResultsSaved() {
-        verify(progressStore, never()).saveProgress(any());
-        verify(priorityStore, never()).update(any(), any(), any());
-    }
-}u}(j  (d030dbed17299b5450443775cf43034372a1ca11j  datlasdb-tests-shared/src/main/java/com/palantir/atlasdb/sweep/SweeperServiceImplIntegrationTest.javaj   removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplIntegrationTest.javaj  https://github.com/palantir/atlasdb/raw/865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplIntegrationTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplIntegrationTest.java?ref=865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419j	  X&  @@ -1,235 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.Cell;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.Value;
-import com.palantir.atlasdb.keyvalue.impl.InMemoryKeyValueService;
-import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
-import com.palantir.common.streams.KeyedStream;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.concurrent.ThreadLocalRandom;
-import java.util.stream.Collectors;
-import java.util.stream.IntStream;
-import org.junit.Before;
-import org.junit.Test;
-
-public class SweeperServiceImplIntegrationTest extends AbstractBackgroundSweeperIntegrationTest {
-    private SweeperService sweeperService;
-
-    @Before
-    @Override
-    public void setup() {
-        super.setup();
-        sweeperService = new SweeperServiceImpl(specificTableSweeper, sweepBatchConfigSource);
-    }
-
-    @Override
-    @Test
-    public void smokeTest() {
-        createTable(TABLE_1, SweepStrategy.CONSERVATIVE);
-        putManyCells(TABLE_1, 100, 110);
-        putManyCells(TABLE_1, 103, 113);
-        putManyCells(TABLE_1, 105, 115);
-        sweeperService.sweepTableFully(TABLE_1.getQualifiedName());
-        verifyTableSwept(TABLE_1, 75, true);
-    }
-
-    @Test
-    public void previouslyConservativeErasesMostExistingSentinelsInThoroughTable() {
-        skipCellVersion.setPeriod(Integer.MAX_VALUE);
-        createTable(TABLE_1, SweepStrategy.THOROUGH);
-
-        Map<Cell, byte[]> sentinelWrites = IntStream.range(0, 100)
-                .mapToObj(PtBytes::toBytes)
-                .map(bytes -> Cell.create(bytes, bytes))
-                .collect(Collectors.toMap(cell -> cell, _ignore -> PtBytes.EMPTY_BYTE_ARRAY));
-        kvs.put(TABLE_1, sentinelWrites, Value.INVALID_VALUE_TIMESTAMP);
-        Map<Cell, Long> readMap = KeyedStream.stream(sentinelWrites)
-                .map(_ignore -> Long.MAX_VALUE)
-                .collectToMap();
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(100);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(1);
-    }
-
-    @Test
-    public void previouslyConservativeRunsFullSweepIfTableIsStillConservativelySwept() {
-        createTable(TABLE_1, SweepStrategy.CONSERVATIVE);
-
-        Map<Cell, byte[]> writes = KeyedStream.of(IntStream.range(0, 100).boxed())
-                .mapKeys(PtBytes::toBytes)
-                .mapKeys(bytes -> Cell.create(bytes, bytes))
-                .map(PtBytes::toBytes)
-                .collectToMap();
-        kvs.put(TABLE_1, writes, 100L);
-        txService.putUnlessExists(100L, 101L);
-        kvs.put(TABLE_1, writes, 103L);
-        txService.putUnlessExists(103L, 104L);
-        Map<Cell, Long> readMap =
-                KeyedStream.stream(writes).map(_ignore -> 102L).collectToMap();
-
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(100);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        Map<Cell, Value> reads = kvs.get(TABLE_1, readMap);
-        // lower ts entries are swept, but we have sentinels
-        assertThat(reads.values().stream().map(Value::getTimestamp).collect(Collectors.toSet()))
-                .containsExactly(Value.INVALID_VALUE_TIMESTAMP);
-        assertThat(reads).hasSize(100);
-        Map<Cell, Long> readsAtMaxTs =
-                KeyedStream.stream(readMap).map(_ignore -> Long.MAX_VALUE).collectToMap();
-        Map<Cell, Value> maxTsReads = kvs.get(TABLE_1, readsAtMaxTs);
-        assertThat(maxTsReads.values().stream().map(Value::getTimestamp).collect(Collectors.toSet()))
-                .containsExactly(103L);
-        assertThat(maxTsReads).hasSize(100);
-    }
-
-    /**
-     * To help understand the test below, refer to the tables.
-     * Before sweep
-     * +----------+--------+-----------+
-     * | START_TS | VALUES | DELETIONS |
-     * +----------+--------+-----------+
-     * |      100 |    500 |       500 |
-     * |      103 |    500 |       500 |
-     * +----------+--------+-----------+
-     *
-     * After sweep
-     * +----------+--------+-----------+
-     * | START_TS | VALUES | DELETIONS |
-     * +----------+--------+-----------+
-     * |      100 |      6 |         5 |
-     * |      103 |    500 |     5 + 5 |
-     * +----------+--------+-----------+
-     */
-    @Test
-    public void previouslyConservativeRespectsSkipPeriodWhenSweepingNormally() {
-        skipCellVersion.setPeriod(9);
-        createTable(TABLE_1, SweepStrategy.THOROUGH);
-
-        Map<Cell, byte[]> writes = KeyedStream.of(IntStream.range(0, 1000).boxed())
-                .mapKeys(PtBytes::toBytes)
-                .mapKeys(bytes -> Cell.create(bytes, bytes))
-                .map(count -> count < 500 ? PtBytes.toBytes(count) : PtBytes.EMPTY_BYTE_ARRAY)
-                .collectToMap();
-        kvs.put(TABLE_1, writes, 100L);
-        txService.putUnlessExists(100L, 101L);
-        kvs.put(TABLE_1, writes, 103L);
-        txService.putUnlessExists(103L, 104L);
-
-        Map<Cell, Long> readMap =
-                KeyedStream.stream(writes).map(_ignore -> 102L).collectToMap();
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(1000);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        assertThat(kvs.get(TABLE_1, readMap))
-                .as("deletes all but 11 entries at lower timestamp ~ 1%")
-                .hasSize(11);
-        Map<Cell, Long> readsAtMaxTs =
-                KeyedStream.stream(readMap).map(_ignore -> Long.MAX_VALUE).collectToMap();
-        Map<Cell, Value> latestVisibleVersions = kvs.get(TABLE_1, readsAtMaxTs);
-        assertThat(latestVisibleVersions.values().stream()
-                        .map(Value::getTimestamp)
-                        .noneMatch(timestamp -> timestamp == 100L))
-                .as("none of the entries at lower ts are naked")
-                .isTrue();
-        assertThat(latestVisibleVersions)
-                .as("500 non-deletes, 5 deletes skipped normally, and 5 skipped to prevent revealing at lower ts")
-                .hasSize(510);
-    }
-
-    @Test
-    public void sweepPreviouslyConservativeNowThoroughTableFuzzTest() {
-        skipCellVersion.makeNonDeterministic();
-        createTable(TABLE_1, SweepStrategy.THOROUGH);
-
-        Set<Cell> cells = IntStream.range(0, 10_000)
-                .boxed()
-                .map(PtBytes::toBytes)
-                .map(bytes -> Cell.create(bytes, bytes))
-                .collect(Collectors.toSet());
-
-        for (int i = 0; i < 10; i++) {
-            Map<Cell, byte[]> writes = KeyedStream.of(cells)
-                    .map(cell ->
-                            ThreadLocalRandom.current().nextBoolean() ? cell.getRowName() : PtBytes.EMPTY_BYTE_ARRAY)
-                    .collectToMap();
-            kvs.put(TABLE_1, writes, 100L + 2L * i);
-            txService.putUnlessExists(100L + 2L * i, 101L + 2L * i);
-        }
-
-        Map<Cell, Long> readMap = KeyedStream.of(cells).map(_ignore -> 102L).collectToMap();
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(10_000);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        assertThat(kvs.get(TABLE_1, readMap).size())
-                .as("expected number of remaining entries is 1%, ~100")
-                .isBetween(50, 200);
-
-        Map<Cell, Long> readsAtMaxTs =
-                KeyedStream.of(cells).map(_ignore -> Long.MAX_VALUE).collectToMap();
-        Map<Cell, Value> latestVisibleVersions = kvs.get(TABLE_1, readsAtMaxTs);
-        assertThat(latestVisibleVersions.values().stream()
-                        .map(Value::getTimestamp)
-                        .allMatch(ts -> ts == 100 + 2 * 9))
-                .as("every visible cell still has the version at greatest timestamp")
-                .isTrue();
-        assertThat(latestVisibleVersions.size())
-                .as("expected number of cells that are fully deleted is ~45.22%, ~5500 remaining")
-                .isBetween(4500, 6500);
-    }
-
-    @Override
-    protected KeyValueService getKeyValueService() {
-        return new InMemoryKeyValueService(true);
-    }
-}u}(j  (b477ac45a67d3461a2afb8a529c94e3055b5291cj  \atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/factory/TransactionManagersTest.javaj   modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -165,7 +165,7 @@ public class TransactionManagersTest {
     private AtlasDbConfig config;
     private AtlasDbRuntimeConfig mockAtlasDbRuntimeConfig;
 
-    private Consumer<Object> environment;
+    private Consumer<Object> registrar;
     private TimestampStoreInvalidator invalidator;
     private Consumer<Runnable> originalAsyncMethod;
 
@@ -208,7 +208,7 @@ public void setUp() {
         when(mockAtlasDbRuntimeConfig.timelockRuntime()).thenReturn(Optional.empty());
         when(mockAtlasDbRuntimeConfig.remotingClient()).thenReturn(RemotingClientConfigs.DEFAULT);
 
-        environment = mock(Consumer.class);
+        registrar = mock(Consumer.class);
 
         invalidator = mock(TimestampStoreInvalidator.class);
         when(invalidator.backupAndInvalidate()).thenReturn(EMBEDDED_BOUND);
@@ -236,7 +236,7 @@ public void cannotProvideRuntimeConfigTwice() {
                         .userAgent(USER_AGENT)
                         .globalMetricsRegistry(new MetricRegistry())
                         .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                        .registrar(environment)
+                        .registrar(registrar)
                         .runtimeConfig(Refreshable.only(Optional.empty()))
                         .runtimeConfigSupplier(Optional::empty)
                         .build())
@@ -351,7 +351,7 @@ public void setsGlobalDefaultLockTimeout() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build()
                 .serializable();
 
@@ -412,7 +412,7 @@ public void runsClosingCallbackOnShutdown() throws Exception {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build()
                 .serializable();
         manager.registerClosingCallback(callback);
@@ -432,7 +432,7 @@ public void keyValueServiceMetricsDoNotContainUserAgent() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build()
                 .serializable();
         assertThat(metrics.getNames().stream().anyMatch(metricName -> metricName.contains(USER_AGENT_NAME)))
@@ -453,7 +453,7 @@ public void overriddenServiceNameIsReturned() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .serviceIdentifierOverride("overriden")
                 .build();
 
@@ -473,7 +473,7 @@ public void serviceNameIsFetchedFromAtlasConfig() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build();
         assertThat(transactionManagers.serviceName()).isEqualTo("namespace");
     }
@@ -493,7 +493,7 @@ public void serviceNameIsFetchedFromKvsConfigWhenItIsNotPresentInAtlasConfig() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build();
 
         assertThat(transactionManagers.serviceName()).isEqualTo("namespace");
@@ -510,7 +510,7 @@ public void serviceNameFallsBackToDefaultWhenNamespaceIsNotPresent() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build();
 
         assertThat(transactionManagers.serviceName()).isEqualTo("UNKNOWN");
@@ -520,7 +520,7 @@ public void serviceNameFallsBackToDefaultWhenNamespaceIsNotPresent() {
     public void interruptingLocalLeaderElectionTerminates() throws IOException {
         Leaders.LocalPaxosServices localPaxosServices = Leaders.createAndRegisterLocalServices(
                 metricsManager,
-                environment,
+                registrar,
                 ImmutableLeaderConfig.builder()
                         .localServer("https://example")
                         .quorumSize(1)
@@ -593,7 +593,7 @@ private TransactionManagers withLockImmutableTsOnReadOnlyTransaction(boolean opt
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .lockImmutableTsOnReadOnlyTransactions(option)
                 .build();
     }
@@ -699,7 +699,7 @@ private KeyValueService initializeKeyValueServiceWithSweepSettings(boolean enabl
                 .userAgent(UserAgent.of(UserAgent.Agent.of("test", "0.0.0")))
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema())
                 .runtimeConfigSupplier(() -> Optional.of(atlasDbRuntimeConfig))
                 .build()
@@ -762,7 +762,7 @@ private void setUpForLocalServices() throws IOException {
                             .withBody(("\"" + localPingableLeader.getUUID() + "\"").getBytes(StandardCharsets.UTF_8))));
                     return null;
                 })
-                .when(environment)
+                .when(registrar)
                 .accept(isA(PingableLeader.class));
         setUpLeaderBlockInConfig();
     }
@@ -807,7 +807,7 @@ private LockAndTimestampServices getLockAndTimestampServices() {
                         metricsManager,
                         config,
                         Refreshable.only(mockAtlasDbRuntimeConfig),
-                        environment,
+                        registrar,
                         LockServiceImpl::create,
                         () -> ts,
                         invalidator,u}(j  (d9abc2f2c00a1ff33edf1dbcaefbf672fcd91ad1j  natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/InteractiveTransactionStore.javaj   addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.Optional;
+import java.util.function.Consumer;
+
+public interface InteractiveTransactionStore extends TransactionStore {
+    /**
+     * Provides a convenient interface for interacting with a transaction, and having each action recorded.
+     * @param interactiveTransactionConsumer Consumer which performs gets/puts/deletes
+     * @return The witnessed transaction, if successfully committed.
+     */
+    Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer);
+}u}(j  (4f80972ed51d1ca703c845e6db8af278009a14f3j  oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javaj   addedj  K#j  K j  K#j  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import java.util.List;
+import java.util.Optional;
+
+/**
+ * Allows for convenient interaction with a transactional store.
+ */
+public interface InteractiveTransaction {
+    Optional<Integer> read(String table, WorkloadCell workloadCell);
+
+    void write(String table, WorkloadCell workloadCell, Integer value);
+
+    void delete(String table, WorkloadCell workloadCell);
+
+    List<WitnessedTransactionAction> witness();
+}u}(j  (f311e643064907dd8eeece7fe8fe0069efe51f4ej  ~atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransaction.javaj   addedj  K"j  K j  K"j  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedTransaction {
+    @Value.Parameter
+    WitnessedTransaction transaction();
+
+    @Value.Parameter
+    List<InvalidWitnessedTransactionAction> invalidActions();
+
+    static InvalidWitnessedTransaction of(
+            WitnessedTransaction witnessedTransaction, List<InvalidWitnessedTransactionAction> invalidActions) {
+        return ImmutableInvalidWitnessedTransaction.of(witnessedTransaction, invalidActions);
+    }
+}u}(j  (13fc2568c111b1ef3b542238490857c5d0b5acb9j  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javaj   addedj  K!j  K j  K!j  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.invariant.MismatchedValue;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedTransactionAction {
+    @Value.Parameter
+    WitnessedTransactionAction action();
+
+    @Value.Parameter
+    MismatchedValue mismatchedValue();
+
+    static InvalidWitnessedTransactionAction of(WitnessedTransactionAction action, MismatchedValue mismatchedValue) {
+        return ImmutableInvalidWitnessedTransactionAction.of(action, mismatchedValue);
+    }
+}u}(j  (0af0f463fb79115401361fa63b2a86fc5fbbe84fj  jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/KeyedTransactionTask.javaj   modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  XD  @@ -30,4 +30,5 @@
  * an exception.
  */
 @FunctionalInterface
-public interface KeyedTransactionTask extends BiFunction<TransactionStore, Integer, Optional<WitnessedTransaction>> {}
+public interface KeyedTransactionTask<T extends TransactionStore>
+        extends BiFunction<T, Integer, Optional<WitnessedTransaction>> {}u}(j  (121a175146bc6a56997ba38d7f713d850fb50e15j  /atlasdb-workload-server-distribution/Dockerfilej   modifiedj  K
j  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server-distribution%2FDockerfilej  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server-distribution%2FDockerfilej  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2FDockerfile?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -1,10 +1,10 @@
-FROM adoptopenjdk/openjdk11:jre-11.0.9_11.1-alpine
+FROM adoptopenjdk/openjdk11:jdk-11.0.11_9-debian
 MAINTAINER AtlasDB Team
 
 ENV DOCKERIZE_VERSION v0.2.0
 
 # Bash is useful for monitoring; curl is used by our healthchecks.
-RUN apk update && apk add bash curl procps wget  \
+RUN apt-get update && apt-get -y install bash curl procps wget \
     && wget --no-check-certificate http://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
     && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
 
@@ -15,4 +15,12 @@ RUN mv /atlasdb-workload-server-* /atlasdb-workload-server
 
 WORKDIR /atlasdb-workload-server
 
+# Needed for Antithesis
+RUN curl -o /usr/bin/yq -kLf https://github.com/mikefarah/yq/releases/download/v4.33.2/yq_linux_amd64 && \
+    chmod +x /usr/bin/yq
+RUN yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-static.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-static.yml
+
 CMD ["service/bin/init.sh", "console"]u}(j  (b870e40056d44cb7c1e844730a97bc94774a820aj  latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj   modifiedj  Kj  Kj  K
j  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -25,9 +25,10 @@
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
-import com.palantir.atlasdb.workload.invariant.DurableWritesMetricInvariantReporter;
+import com.palantir.atlasdb.workload.invariant.DurableWritesInvariantMetricReporter;
+import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
+import com.palantir.atlasdb.workload.runner.AntithesisWorkflowRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
-import com.palantir.atlasdb.workload.workflow.AntithesisWorkflowRunner;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;
@@ -104,9 +105,11 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 Set.of()),
                         workflowConfig,
                         MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)),
-                List.of(new DurableWritesMetricInvariantReporter(
-                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
-                        DurableWritesMetrics.of(taggedMetricRegistry))));
+                List.of(
+                        new DurableWritesInvariantMetricReporter(
+                                SingleRowTwoCellsWorkflows.class.getSimpleName(),
+                                DurableWritesMetrics.of(taggedMetricRegistry)),
+                        SerializableInvariantLogReporter.INSTANCE));
         log.info("antithesis: terminate");
 
         workflowsRanLatch.countDown();u}(j  (6692c7a0ab9dc06ee5a6b9df123917c46c3d2758j  iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariant.javaj   modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -16,10 +16,10 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
+import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.ValidationStore;
-import com.palantir.atlasdb.workload.transaction.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import io.vavr.Tuple;
 import java.util.Map;u}(j  (79aa8cfd57984c9bdea2aaf3249996fe3fa9f4d7j  watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporter.javaj   renamedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -24,15 +24,15 @@
 import java.util.Map;
 import java.util.function.Consumer;
 
-public final class DurableWritesMetricInvariantReporter
+public final class DurableWritesInvariantMetricReporter
         implements InvariantReporter<Map<TableAndWorkloadCell, MismatchedValue>> {
 
-    private static final SafeLogger log = SafeLoggerFactory.get(DurableWritesMetricInvariantReporter.class);
+    private static final SafeLogger log = SafeLoggerFactory.get(DurableWritesInvariantMetricReporter.class);
 
     private final String workflow;
     private final DurableWritesMetrics durableWritesMetrics;
 
-    public DurableWritesMetricInvariantReporter(String workflow, DurableWritesMetrics durableWritesMetrics) {
+    public DurableWritesInvariantMetricReporter(String workflow, DurableWritesMetrics durableWritesMetrics) {
         this.workflow = workflow;
         this.durableWritesMetrics = durableWritesMetrics;
     }previous_filenamewatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporter.javau}(j  (c6c57e6a8de2b5781bc3377bb37255bb7b0465a7j  hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj   addedj  K\j  K j  K\j  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  XC  @@ -0,0 +1,92 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.List;
+import java.util.Optional;
+import java.util.function.Consumer;
+import one.util.streamex.StreamEx;
+
+public enum SerializableInvariant implements Invariant<List<InvalidWitnessedTransaction>> {
+    INSTANCE;
+
+    @Override
+    public void accept(
+            WorkflowHistory workflowHistory, Consumer<List<InvalidWitnessedTransaction>> invalidWitnessedTransactions) {
+        SerializableInvariantVisitor visitor = new SerializableInvariantVisitor();
+        List<InvalidWitnessedTransaction> transactions = StreamEx.of(workflowHistory.history())
+                .mapPartial(witnessedTransaction -> {
+                    List<InvalidWitnessedTransactionAction> invalidTransactions = StreamEx.of(
+                                    witnessedTransaction.actions())
+                            .mapPartial(action -> action.accept(visitor))
+                            .toList();
+
+                    if (invalidTransactions.isEmpty()) {
+                        return Optional.empty();
+                    }
+
+                    return Optional.of(InvalidWitnessedTransaction.of(witnessedTransaction, invalidTransactions));
+                })
+                .toList();
+        invalidWitnessedTransactions.accept(transactions);
+    }
+
+    private static final class SerializableInvariantVisitor
+            implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
+
+        private final InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+            Optional<Integer> expectedValue = inMemoryTransactionReplayer
+                    .getValues()
+                    .get(TableAndWorkloadCell.of(readTransactionAction.table(), readTransactionAction.cell()))
+                    .toJavaOptional()
+                    .orElseGet(Optional::empty);
+
+            if (!expectedValue.equals(readTransactionAction.value())) {
+                return Optional.of(InvalidWitnessedTransactionAction.of(
+                        readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expectedValue)));
+            }
+
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedWriteTransactionAction writeTransactionAction) {
+            inMemoryTransactionReplayer.visit(writeTransactionAction);
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedDeleteTransactionAction deleteTransactionAction) {
+            inMemoryTransactionReplayer.visit(deleteTransactionAction);
+            return Optional.empty();
+        }
+    }
+}u}(j  (0f489a908a062dc89f3e2a38f2be28d193d61511j  satlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporter.javaj   addedj  K-j  K j  K-j  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X>  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.function.Consumer;
+
+public enum SerializableInvariantLogReporter implements InvariantReporter<List<InvalidWitnessedTransaction>> {
+    INSTANCE;
+    private static final SafeLogger log = SafeLoggerFactory.get(SerializableInvariantLogReporter.class);
+
+    @Override
+    public Invariant<List<InvalidWitnessedTransaction>> invariant() {
+        return SerializableInvariant.INSTANCE;
+    }
+
+    @Override
+    public Consumer<List<InvalidWitnessedTransaction>> consumer() {
+        return invalidWitnessedTransactions -> {
+            if (!invalidWitnessedTransactions.isEmpty()) {
+                log.error(
+                        "Detected transactions that violated our serializable isolation invariant {}",
+                        SafeArg.of("invalidWitnessedTransactions", invalidWitnessedTransactions));
+            }
+        };
+    }
+}u}(j  (47c1c58dc5ec09e6991e1b15ffa1c7e7c13a1b46j  hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowRunner.javaj   renamedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X&  @@ -14,9 +14,12 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.workload.workflow;
+package com.palantir.atlasdb.workload.runner;
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowRunner;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;j#  jatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/AntithesisWorkflowRunner.javau}(j  (b8129f7ddecb9ee76388afabb2090692f9aa773ej  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj   addedj  Ksj  K j  Ksj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  XT  @@ -0,0 +1,115 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.BiFunction;
+import javax.annotation.concurrent.NotThreadSafe;
+
+@NotThreadSafe
+final class AtlasDbInteractiveTransaction implements InteractiveTransaction {
+
+    private final Transaction transaction;
+
+    private final Map<String, TableReference> tables;
+
+    private final List<WitnessedTransactionAction> witnessedTransactionActions = new ArrayList<>();
+
+    private boolean hasFinished = false;
+
+    public AtlasDbInteractiveTransaction(Transaction transaction, Map<String, TableReference> tables) {
+        this.transaction = transaction;
+        this.tables = tables;
+    }
+
+    @Override
+    public Optional<Integer> read(String table, WorkloadCell workloadCell) {
+        return run(
+                (tableReference, atlasCell) -> {
+                    Map<Cell, byte[]> values = transaction.get(tableReference, Set.of(atlasCell));
+                    Optional<Integer> valueRead =
+                            Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
+                    witnessedTransactionActions.add(WitnessedReadTransactionAction.of(table, workloadCell, valueRead));
+                    return valueRead;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public void write(String table, WorkloadCell workloadCell, Integer value) {
+        run(
+                (tableReference, atlasCell) -> {
+                    transaction.put(tableReference, Map.of(atlasCell, Ints.toByteArray(value)));
+                    witnessedTransactionActions.add(WitnessedWriteTransactionAction.of(table, workloadCell, value));
+                    return null;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public void delete(String table, WorkloadCell workloadCell) {
+        run(
+                (tableReference, atlasCell) -> {
+                    transaction.delete(tableReference, Set.of(atlasCell));
+                    witnessedTransactionActions.add(WitnessedDeleteTransactionAction.of(table, workloadCell));
+                    return null;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public List<WitnessedTransactionAction> witness() {
+        hasFinished = true;
+        return witnessedTransactionActions;
+    }
+
+    private TableReference getTableReferenceOrThrow(String table) {
+        return Optional.ofNullable(tables.get(table))
+                .orElseThrow(() -> new SafeIllegalArgumentException(
+                        "Transaction action has unknown table.",
+                        SafeArg.of("tableName", table),
+                        SafeArg.of("availableTables", tables)));
+    }
+
+    private <T> T run(BiFunction<TableReference, Cell, T> function, String table, WorkloadCell workloadCell) {
+        Preconditions.checkState(
+                !hasFinished, "Transaction has already been witnessed and can no longer perform any actions.");
+        Cell atlasCell = AtlasDbUtils.toAtlasCell(workloadCell);
+        TableReference tableReference = getTableReferenceOrThrow(table);
+        return function.apply(tableReference, atlasCell);
+    }
+}u     }(j  (5b51481e66557d7e98571bd6013d938c2104c450j  fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj   modifiedj  KIj  KAj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X(  @@ -16,35 +16,36 @@
 
 package com.palantir.atlasdb.workload.store;
 
-import com.google.common.primitives.Ints;
-import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.base.Suppliers;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.PreCommitCondition;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
-import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
-import com.palantir.atlasdb.workload.util.AtlasDbUtils;
-import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
-import java.util.Set;
 import java.util.concurrent.atomic.AtomicReference;
+import java.util.function.Consumer;
 import java.util.function.Function;
-import java.util.stream.Collectors;
+import java.util.function.Supplier;
+import javax.annotation.concurrent.NotThreadSafe;
 import one.util.streamex.EntryStream;
 
-public final class AtlasDbTransactionStore implements TransactionStore {
+public final class AtlasDbTransactionStore implements InteractiveTransactionStore {
 
     private static final SafeLogger log = SafeLoggerFactory.get(AtlasDbTransactionStore.class);
     private final TransactionManager transactionManager;
@@ -58,37 +59,42 @@ private AtlasDbTransactionStore(TransactionManager transactionManager, Map<Strin
 
     @Override
     public Optional<Integer> get(String table, WorkloadCell cell) {
-        Cell atlasCell = AtlasDbUtils.toAtlasCell(cell);
-        TableReference tableReference = getTableReferenceOrThrow(table);
-        return transactionManager.runTaskWithRetry(task -> {
-            Map<Cell, byte[]> values = task.get(tableReference, Set.of(atlasCell));
-            return Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
-        });
+        return transactionManager.runTaskWithRetry(
+                transaction -> new AtlasDbInteractiveTransaction(transaction, tables).read(table, cell));
     }
 
     @Override
     public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
-        AtomicReference<Long> startTimestampReference = new AtomicReference<>();
+        return readWrite(txn -> {
+            AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
+            actions.forEach(action -> action.accept(visitor));
+        });
+    }
+
+    @Override
+    public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer) {
         AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
+        Supplier<CommitTimestampProvider> commitTimestampProvider =
+                Suppliers.memoize(() -> new CommitTimestampProvider());
         try {
-            transactionManager.runTaskWithRetry(txn -> {
-                AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
-                startTimestampReference.set(txn.getTimestamp());
-                witnessedActionsReference.set(actions.stream()
-                        .sequential()
-                        .map(action -> action.accept(visitor))
-                        .collect(Collectors.toList()));
-                return null;
-            });
-
-            TransactionStatus status =
-                    transactionManager.getTransactionService().getV2(startTimestampReference.get());
-
-            Optional<Long> commitTimestamp = TransactionStatus.getCommitTimestamp(status);
+            Transaction transaction =
+                    transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
+                        AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
+                                new AtlasDbInteractiveTransaction(txn, tables);
+                        interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
+                        witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
+                        return txn;
+                    });
+
+            if (transaction.isAborted()) {
+                return Optional.empty();
+            }
 
             return Optional.of(ImmutableWitnessedTransaction.builder()
-                    .startTimestamp(startTimestampReference.get())
-                    .commitTimestamp(commitTimestamp)
+                    .startTimestamp(transaction.getTimestamp())
+                    .commitTimestamp(commitTimestampProvider
+                            .get()
+                            .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
                     .actions(witnessedActionsReference.get())
                     .build());
         } catch (SafeIllegalArgumentException e) {
@@ -100,52 +106,31 @@ public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions)
         }
     }
 
-    private TableReference getTableReferenceOrThrow(TransactionAction action) {
-        return getTableReferenceOrThrow(action.table());
-    }
-
-    private TableReference getTableReferenceOrThrow(String table) {
-        return Optional.ofNullable(tables.get(table))
-                .orElseThrow(() -> new SafeIllegalArgumentException(
-                        "Transaction action has unknown table.",
-                        SafeArg.of("readTransactionTableName", table),
-                        SafeArg.of("availableTables", tables)));
-    }
-
-    private class AtlasDbTransactionActionVisitor implements TransactionActionVisitor<WitnessedTransactionAction> {
+    private static class AtlasDbTransactionActionVisitor implements TransactionActionVisitor<Void> {
 
-        private final Transaction transaction;
+        private final InteractiveTransaction transaction;
 
-        public AtlasDbTransactionActionVisitor(Transaction transaction) {
+        public AtlasDbTransactionActionVisitor(InteractiveTransaction transaction) {
             this.transaction = transaction;
         }
 
         @Override
-        public WitnessedTransactionAction visit(ReadTransactionAction readTransactionAction) {
-            Cell cell = AtlasDbUtils.toAtlasCell(readTransactionAction.cell());
-            TableReference tableReference = getTableReferenceOrThrow(readTransactionAction);
-            Map<Cell, byte[]> cells =
-                    transaction.get(tableReference, Set.of(AtlasDbUtils.toAtlasCell(readTransactionAction.cell())));
-            Optional<Integer> value = Optional.ofNullable(cells.get(cell)).map(Ints::fromByteArray);
-            return readTransactionAction.witness(value);
+        public Void visit(ReadTransactionAction readTransactionAction) {
+            transaction.read(readTransactionAction.table(), readTransactionAction.cell());
+            return null;
         }
 
         @Override
-        public WitnessedTransactionAction visit(WriteTransactionAction writeTransactionAction) {
-            TableReference tableReference = getTableReferenceOrThrow(writeTransactionAction);
-            transaction.put(
-                    tableReference,
-                    Map.of(
-                            AtlasDbUtils.toAtlasCell(writeTransactionAction.cell()),
-                            Ints.toByteArray(writeTransactionAction.value())));
-            return writeTransactionAction.witness();
+        public Void visit(WriteTransactionAction writeTransactionAction) {
+            transaction.write(
+                    writeTransactionAction.table(), writeTransactionAction.cell(), writeTransactionAction.value());
+            return null;
         }
 
         @Override
-        public WitnessedTransactionAction visit(DeleteTransactionAction deleteTransactionAction) {
-            TableReference tableReference = getTableReferenceOrThrow(deleteTransactionAction);
-            transaction.delete(tableReference, Set.of(AtlasDbUtils.toAtlasCell(deleteTransactionAction.cell())));
-            return deleteTransactionAction.witness();
+        public Void visit(DeleteTransactionAction deleteTransactionAction) {
+            transaction.delete(deleteTransactionAction.table(), deleteTransactionAction.cell());
+            return null;
         }
     }
 
@@ -158,4 +143,27 @@ public static AtlasDbTransactionStore create(
                 .toMap();
         return new AtlasDbTransactionStore(transactionManager, tableMapping);
     }
+
+    @VisibleForTesting
+    @NotThreadSafe
+    static final class CommitTimestampProvider implements PreCommitCondition {
+
+        private Optional<Long> maybeCommitOrStartTimestamp = Optional.empty();
+
+        @Override
+        public void throwIfConditionInvalid(long timestamp) {
+            maybeCommitOrStartTimestamp = Optional.of(timestamp);
+        }
+
+        public Optional<Long> getCommitTimestampOrThrowIfMaybeNotCommitted(long startTimestamp) {
+            long commitOrStartTimestamp = maybeCommitOrStartTimestamp.orElseThrow(() -> new SafeIllegalStateException(
+                    "Timestamp has not been set, which means the pre commit condition has never been executed,"
+                            + " thus the transaction never committed."));
+            if (startTimestamp == commitOrStartTimestamp) {
+                return Optional.empty();
+            }
+
+            return Optional.of(commitOrStartTimestamp);
+        }
+    }
 }u}(j  (f903482687bcb5e66793d816482b51d37342f3f8j  fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/InMemoryValidationStore.javaj   addedj  K.j  K j  K.j  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X2  @@ -0,0 +1,46 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.Optional;
+
+public final class InMemoryValidationStore implements ValidationStore {
+
+    private final Map<TableAndWorkloadCell, Optional<Integer>> values;
+
+    private InMemoryValidationStore(Map<TableAndWorkloadCell, Optional<Integer>> values) {
+        this.values = values;
+    }
+
+    public static InMemoryValidationStore create(List<WitnessedTransaction> history) {
+        InMemoryTransactionReplayer replayer = new InMemoryTransactionReplayer();
+        history.stream()
+                .map(WitnessedTransaction::actions)
+                .forEach(witnessedTransactionActions ->
+                        witnessedTransactionActions.forEach(action -> action.accept(replayer)));
+        return new InMemoryValidationStore(replayer.getValues());
+    }
+
+    @Override
+    public Map<TableAndWorkloadCell, Optional<Integer>> values() {
+        return values;
+    }
+}u}(j  (dc1ba80c80acc0c1062aac7549f052f600d069cfj  patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj   addedj  K=j  K j  K=j  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X
  @@ -0,0 +1,61 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.Optional;
+
+public final class InMemoryTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
+
+    private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> values =
+            StructureHolder.create(HashMap::empty);
+
+    @Override
+    public Void visit(WitnessedReadTransactionAction _readTransactionAction) {
+        return null;
+    }
+
+    @Override
+    public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
+        TableAndWorkloadCell tableAndWorkloadCell =
+                TableAndWorkloadCell.of(writeTransactionAction.table(), writeTransactionAction.cell());
+        values.with(map -> map.put(tableAndWorkloadCell, Optional.of(writeTransactionAction.value())));
+        return null;
+    }
+
+    /**
+     * Deletes are explicitly tracked to enable invariants that rely on verifying that deleted values stay deleted.
+     */
+    @Override
+    public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+        TableAndWorkloadCell tableAndWorkloadCell =
+                TableAndWorkloadCell.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
+        values.with(map -> map.put(tableAndWorkloadCell, Optional.empty()));
+        return null;
+    }
+
+    public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
+        return values.getSnapshot();
+    }
+}u}(j  (301fd225038dc758fb5af7d2c0a7b9fd364ca74dj  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStore.javaj   removedj  K j  KTj  KTj  https://github.com/palantir/atlasdb/blob/865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javaj  https://github.com/palantir/atlasdb/raw/865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.java?ref=865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419j	  X  @@ -1,84 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.transaction;
-
-import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
-import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
-import com.palantir.atlasdb.workload.store.ValidationStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
-import io.vavr.collection.HashMap;
-import io.vavr.collection.Map;
-import java.util.List;
-import java.util.Optional;
-
-public final class InMemoryValidationStore implements ValidationStore {
-
-    private final Map<TableAndWorkloadCell, Optional<Integer>> values;
-
-    private InMemoryValidationStore(Map<TableAndWorkloadCell, Optional<Integer>> values) {
-        this.values = values;
-    }
-
-    public static InMemoryValidationStore create(List<WitnessedTransaction> history) {
-        InMemoryTransactionReplayer replayer = new InMemoryTransactionReplayer();
-        history.stream()
-                .map(WitnessedTransaction::actions)
-                .forEach(witnessedTransactionActions ->
-                        witnessedTransactionActions.forEach(action -> action.accept(replayer)));
-        return new InMemoryValidationStore(replayer.getValues());
-    }
-
-    @Override
-    public Map<TableAndWorkloadCell, Optional<Integer>> values() {
-        return values;
-    }
-
-    private static final class InMemoryTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
-
-        private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> values =
-                StructureHolder.create(HashMap::empty);
-
-        @Override
-        public Void visit(WitnessedReadTransactionAction readTransactionAction) {
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
-            TableAndWorkloadCell tableAndWorkloadCell =
-                    TableAndWorkloadCell.of(writeTransactionAction.table(), writeTransactionAction.cell());
-            values.with(map -> map.put(tableAndWorkloadCell, Optional.of(writeTransactionAction.value())));
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
-            TableAndWorkloadCell tableAndWorkloadCell =
-                    TableAndWorkloadCell.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
-            values.with(map -> map.put(tableAndWorkloadCell, Optional.empty()));
-            return null;
-        }
-
-        public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
-            return values.getSnapshot();
-        }
-    }
-}u}(j  (c14cafe2cad0f011ce8b5b31617cf86e0d9736faj  matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunner.javaj   modifiedj  Kj  Kj  K	j  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  Xz  @@ -30,18 +30,17 @@
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 
-public final class ConcurrentTransactionRunner {
-    private final TransactionStore transactionStore;
+public final class ConcurrentTransactionRunner<T extends TransactionStore> {
+    private final T transactionStore;
     private final ListeningExecutorService listeningExecutorService;
 
-    public ConcurrentTransactionRunner(
-            TransactionStore transactionStore, ListeningExecutorService listeningExecutorService) {
+    public ConcurrentTransactionRunner(T transactionStore, ListeningExecutorService listeningExecutorService) {
         this.transactionStore = transactionStore;
         this.listeningExecutorService = listeningExecutorService;
     }
 
     public Future<List<WitnessedTransaction>> runConcurrentTransactionTask(
-            KeyedTransactionTask transactionTask, int taskMultiplicity) {
+            KeyedTransactionTask<T> transactionTask, int taskMultiplicity) {
         Preconditions.checkArgument(
                 taskMultiplicity >= 0,
                 "Tasks must be run a non-negative number of times",u}(j  (c852afbb5ada25c05d1126818d128fa8dce0b123j  aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javaj   modifiedj  K
j  K
j  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -28,15 +28,15 @@
 import java.util.concurrent.Future;
 import java.util.stream.Collectors;
 
-public final class DefaultWorkflow implements Workflow {
-    private final ConcurrentTransactionRunner concurrentTransactionRunner;
-    private final KeyedTransactionTask transactionTask;
+public final class DefaultWorkflow<T extends TransactionStore> implements Workflow {
+    private final ConcurrentTransactionRunner<T> concurrentTransactionRunner;
+    private final KeyedTransactionTask<T> transactionTask;
     private final WorkflowConfiguration workflowConfiguration;
     private final ReadOnlyTransactionStore readOnlyTransactionStore;
 
     private DefaultWorkflow(
-            ConcurrentTransactionRunner concurrentTransactionRunner,
-            KeyedTransactionTask transactionTask,
+            ConcurrentTransactionRunner<T> concurrentTransactionRunner,
+            KeyedTransactionTask<T> transactionTask,
             WorkflowConfiguration workflowConfiguration,
             ReadOnlyTransactionStore readOnlyTransactionStore) {
         this.concurrentTransactionRunner = concurrentTransactionRunner;
@@ -45,13 +45,13 @@ private DefaultWorkflow(
         this.readOnlyTransactionStore = readOnlyTransactionStore;
     }
 
-    public static Workflow create(
-            TransactionStore store,
-            KeyedTransactionTask transactionTask,
+    public static <T extends TransactionStore> Workflow create(
+            T store,
+            KeyedTransactionTask<T> transactionTask,
             WorkflowConfiguration configuration,
             ListeningExecutorService executionExecutor) {
-        return new DefaultWorkflow(
-                new ConcurrentTransactionRunner(store, executionExecutor),
+        return new DefaultWorkflow<>(
+                new ConcurrentTransactionRunner<>(store, executionExecutor),
                 transactionTask,
                 configuration,
                 new ReadOnlyTransactionStore(store));u}(j  (42c9022acb53a72eea92413c05355dd9e46a328aj  `atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingGraph.javaj   addedj  Kyj  K j  Kyj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X'  @@ -0,0 +1,121 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.google.common.collect.Iterators;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import one.util.streamex.EntryStream;
+
+public final class RingGraph {
+    private final Map<Integer, Integer> ring;
+
+    private RingGraph(Map<Integer, Integer> ring) {
+        this.ring = ring;
+    }
+
+    public static RingGraph from(Map<Integer, Integer> ring) throws RingValidationException {
+        validateGraphIsRing(ring);
+        return new RingGraph(ring);
+    }
+
+    public static RingGraph fromPartial(Map<Integer, Optional<Integer>> ring) throws RingValidationException {
+        if (isEmpty(ring)) {
+            return RingGraph.generateNewRing(ring.keySet());
+        }
+
+        Preconditions.checkArgument(
+                !anyEmpty(ring),
+                "Graph contains missing entries, thus cannot be made into a ring.",
+                SafeArg.of("ring", ring));
+
+        return from(EntryStream.of(ring).mapValues(Optional::get).toMap());
+    }
+
+    public static RingGraph create(int size) {
+        return generateNewRing(IntStream.range(0, size).boxed().collect(Collectors.toSet()));
+    }
+
+    /**
+     * Checks that the ring is correct by verifying:
+     * (1) There are no missing entries
+     * (2) There are no sub-cycles
+     * (3) The ring is connected
+     *
+     * This is simply done by iterating over the length of the ring, and validating that we visited each node.
+     * To ensure that the ring is connected, we do not track our entry into the ring (i.e. the first node we visit),
+     * as we expect to have it be visited again as the last node.
+     */
+    public static void validateGraphIsRing(Map<Integer, Integer> ring) throws RingValidationException {
+        Integer initialNode = ring.keySet().iterator().next();
+        Set<Integer> remainingNodes = new HashSet<>(ring.keySet());
+        int maxIterations = ring.keySet().size();
+        Integer nextNode = ring.get(initialNode);
+        for (int iterations = 0; iterations < maxIterations; iterations++) {
+            // If we reference a node that does not exist in our ring, it means we are missing data
+            if (!ring.containsKey(nextNode)) {
+                RingValidationException.throwMissingEntries(ring);
+            }
+
+            // If the node already has been visited, it means we're in a cycle within our ring
+            if (!remainingNodes.remove(nextNode)) {
+                RingValidationException.throwEarlyCycle(ring);
+            }
+
+            nextNode = ring.get(nextNode);
+        }
+    }
+
+    public RingGraph generateNewRing() {
+        return generateNewRing(ring.keySet());
+    }
+
+    /**
+     * Returns a valid new ring with the same nodes but randomly generated edges.
+     */
+    private static RingGraph generateNewRing(Set<Integer> nodes) {
+        List<Integer> keys = new ArrayList<>(nodes);
+        Collections.shuffle(keys);
+        Iterator<Integer> valuesIterator = Iterators.cycle(keys);
+        valuesIterator.next();
+        return new RingGraph(
+                keys.stream().collect(Collectors.toMap(Function.identity(), _node -> valuesIterator.next())));
+    }
+
+    public Map<Integer, Integer> asMap() {
+        return ring;
+    }
+
+    private static boolean isEmpty(Map<Integer, Optional<Integer>> ring) {
+        return ring.values().stream().allMatch(Optional::isEmpty);
+    }
+
+    private static boolean anyEmpty(Map<Integer, Optional<Integer>> ring) {
+        return ring.values().stream().anyMatch(Optional::isEmpty);
+    }
+}u}(j  (109ed2a6c2ef9753e6500d3ea6827a032511da81j  natlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingValidationException.javaj   addedj  K?j  K j  K?j  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -0,0 +1,63 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.palantir.logsafe.Arg;
+import com.palantir.logsafe.Safe;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.SafeLoggable;
+import java.util.List;
+import java.util.Map;
+
+public final class RingValidationException extends IllegalArgumentException implements SafeLoggable {
+
+    private final Map<Integer, Integer> ring;
+    private final Type type;
+
+    private RingValidationException(Map<Integer, Integer> ring, Type type) {
+        this.ring = ring;
+        this.type = type;
+    }
+
+    @Override
+    public @Safe String getLogMessage() {
+        return "Detected an error in the graph when attempting to validate as a ring.";
+    }
+
+    @Override
+    public List<Arg<?>> getArgs() {
+        return List.of(SafeArg.of("ring", ring), SafeArg.of("type", type));
+    }
+
+    public static void throwEarlyCycle(Map<Integer, Integer> ring) throws RingValidationException {
+        throw new RingValidationException(ring, Type.EARLY_CYCLE);
+    }
+
+    public static void throwMissingEntries(Map<Integer, Integer> ring) throws RingValidationException {
+        throw new RingValidationException(ring, Type.MISSING_ENTRIES);
+    }
+
+    enum Type {
+        // Detected a cycle in our ring before visiting all nodes,
+        // indicating the integrity of our ring has been compromised.
+        EARLY_CYCLE,
+
+        // Detected a reference to a node that does not exist,
+        // indicating the integrity of our ring has been compromised.
+        MISSING_ENTRIES;
+    }
+}u}(j  (f2b29bc6a4a030ffa7d19578ea5ec47a9d861ab5j  patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowConfiguration.javaj   addedj  K2j  K j  K2j  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X[  @@ -0,0 +1,50 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import com.palantir.atlasdb.workload.workflow.ImmutableSingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.TableConfiguration;
+import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonTypeName(RingWorkflowConfiguration.TYPE)
+public interface RingWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "ring";
+
+    TableConfiguration tableConfiguration();
+
+    default Integer ringSize() {
+        return 3;
+    }
+
+    @Value.Default
+    default double rateLimit() {
+        return 100;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(j  (7e62e75fc5695d084b1a2d7793eaf1b05fef0bd9j  datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflows.javaj   addedj  Kgj  K j  Kgj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  Xh  @@ -0,0 +1,103 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.Map;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+
+/**
+ * Runs a workflow which creates a representation of a ring using key-value pairs.
+ * The ring is validated and shuffled after every iteration. If the ring ever becomes invalid (cycles, missing data),
+ * this indicates that there is a bug in our underlying storage infrastructure, as snapshot isolation has been violated.
+ * Snapshot isolation would be violated here, as it indicates that we did not detect a write-write conflict,
+ * as every write will be of a correct ring.
+ */
+public final class RingWorkflows {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(RingWorkflows.class);
+
+    private static final int COLUMN = 0;
+
+    private RingWorkflows() {
+        // static factory
+    }
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration ringWorkflowConfiguration,
+            ListeningExecutorService executionExecutor,
+            AtomicBoolean skipRunning) {
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
+                ringWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    private static Optional<WitnessedTransaction> run(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration workflowConfiguration,
+            AtomicBoolean skipRunning) {
+        if (skipRunning.get()) {
+            return Optional.empty();
+        }
+
+        workflowConfiguration.transactionRateLimiter().acquire();
+        String table = workflowConfiguration.tableConfiguration().tableName();
+        Integer ringSize = workflowConfiguration.ringSize();
+        return store.readWrite(txn -> {
+            Map<Integer, Optional<Integer>> data = fetchData(table, ringSize, txn);
+            try {
+                RingGraph ringGraph = RingGraph.fromPartial(data);
+                ringGraph
+                        .generateNewRing()
+                        .asMap()
+                        .forEach((rootNode, nextNode) -> txn.write(table, cell(rootNode), nextNode));
+            } catch (IllegalArgumentException e) {
+                if (skipRunning.compareAndSet(false, true)) {
+                    log.error("Detected violation with our ring.", e);
+                }
+            }
+        });
+    }
+
+    private static Map<Integer, Optional<Integer>> fetchData(
+            String table, int ringSize, InteractiveTransaction transaction) {
+        return IntStream.range(0, ringSize)
+                .boxed()
+                .collect(Collectors.toMap(Function.identity(), index -> transaction.read(table, cell(index))));
+    }
+
+    @VisibleForTesting
+    static ImmutableWorkloadCell cell(Integer node) {
+        return ImmutableWorkloadCell.of(node, COLUMN);
+    }
+}u}(j  (95f6220e03fd5f14e9922f8b70989e0b8dad5a69j  {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporterTest.javaj   renamedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -37,15 +37,15 @@
 import java.util.Set;
 import org.junit.Test;
 
-public final class DurableWritesMetricInvariantReporterTest {
+public final class DurableWritesInvariantMetricReporterTest {
 
     private final TaggedMetricRegistry taggedMetricRegistry = new DefaultTaggedMetricRegistry();
     private final DurableWritesMetrics metrics = DurableWritesMetrics.of(taggedMetricRegistry);
 
     @Test
     public void runIncreasesMetricsIfViolationsFound() {
-        DurableWritesMetricInvariantReporter reporter =
-                new DurableWritesMetricInvariantReporter(WorkloadTestHelpers.WORKFLOW, metrics);
+        DurableWritesInvariantMetricReporter reporter =
+                new DurableWritesInvariantMetricReporter(WorkloadTestHelpers.WORKFLOW, metrics);
         AtlasDbTransactionStoreFactory factory = new AtlasDbTransactionStoreFactory(
                 TransactionManagers.createInMemory(Set.of()), Optional.of("keyspace"));
         TransactionStore store = factory.create(j#  {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporterTest.javau}(j  (61f1a620b29aa305c11b38dca9efc4bfd03fa771j  watlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporterTest.javaj   addedj  K3j  K j  K3j  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  XC  @@ -0,0 +1,51 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import java.util.List;
+import org.junit.Test;
+
+public class SerializableInvariantLogReporterTest {
+    @Test
+    public void invariantIsSerializable() {
+        assertThat(SerializableInvariantLogReporter.INSTANCE.invariant()).isEqualTo(SerializableInvariant.INSTANCE);
+    }
+
+    @Test
+    public void consumerDoesNotThrowWhenAcceptingViolations() {
+        assertThatCode(() -> SerializableInvariantLogReporter.INSTANCE
+                        .consumer()
+                        .accept(List.of(InvalidWitnessedTransaction.of(
+                                ImmutableWitnessedTransaction.builder()
+                                        .startTimestamp(1)
+                                        .build(),
+                                List.of()))))
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void consumerDoesNotThrowWhenAcceptingNoViolations() {
+        assertThatCode(() ->
+                        SerializableInvariantLogReporter.INSTANCE.consumer().accept(List.of()))
+                .doesNotThrowAnyException();
+    }
+}u}(j  (90b36432d0c4959d6f029a213c9b14ce813a43a8j  latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj   addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X\  @@ -0,0 +1,152 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class SerializableInvariantTest {
+
+    @Mock
+    private ReadableTransactionStore readableTransactionStore;
+
+    @Test
+    public void handlesLocalWrites() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .read(5, 10)
+                .write(5, 10, 15)
+                .read(5, 10, 15)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void noInvalidTransactionsWhenSerializable() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .write(23, 1, 20)
+                .write(7, 15, 14)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(23, 1, 20)
+                .read(7, 15, 14)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void catchesWriteSkew() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(6, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(6, 10, 15)
+                .write(5, 10, 0)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(6, 10, 15)
+                .write(6, 10, 0)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);
+
+        assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
+
+        assertThat(invalidWitnessedTransactionAction.action())
+                .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
+                    assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
+                    assertThat(action.value()).contains(15);
+                });
+        assertThat(invalidWitnessedTransactionAction.mismatchedValue())
+                .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+    }
+
+    @Test
+    public void handlesDeletes() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(6, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .delete(5, 10)
+                .read(5, 10)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+}u}(j  (7a5e8dd4c01ddc761284d5c5bdc9c0345ddd2826j  latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowRunnerTest.javaj   renamedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X"  @@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.workload.workflow;
+package com.palantir.atlasdb.workload.runner;
 
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.mock;
@@ -23,6 +23,8 @@
 import static org.mockito.Mockito.when;
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import java.util.List;
 import org.junit.Test;
 j#  natlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/AntithesisWorkflowRunnerTest.javau}(j  (b5153a38953e7417f0f9867686cd369359e28c9ej  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj   addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X_  @@ -0,0 +1,145 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.NAMES_TO_REFERENCES_TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLES_TO_ATLAS_METADATA;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Consumer;
+import org.junit.Before;
+import org.junit.Test;
+
+public final class AtlasDbInteractiveTransactionTest {
+
+    private TransactionManager manager;
+
+    @Before
+    public void before() {
+        manager = TransactionManagers.createInMemory(Set.of());
+        manager.getKeyValueService().createTables(TABLES_TO_ATLAS_METADATA);
+    }
+
+    @Test
+    public void witnessRecordAllActions() {
+        assertThat(readWrite(transaction -> {
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
+                .containsExactly(
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void readHandlesEmptyAndPresentValue() {
+        assertThat(readWrite(transaction -> {
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
+                .containsExactly(
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+    }
+
+    @Test
+    public void readThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.read(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void writeThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(
+                transaction -> transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE));
+    }
+
+    @Test
+    public void deleteThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void readThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.read(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void writeThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE));
+    }
+
+    @Test
+    public void deleteThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        return manager.runTaskWithRetry(atlasTransaction -> {
+            AtlasDbInteractiveTransaction interactiveTransaction =
+                    new AtlasDbInteractiveTransaction(atlasTransaction, NAMES_TO_REFERENCES_TABLE_1);
+            transactionConsumer.accept(interactiveTransaction);
+            return interactiveTransaction.witness();
+        });
+    }
+
+    private void assertThatThrownWhenUnknownTableReferenced(
+            Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
+                    transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
+                    return null;
+                }))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Transaction action has unknown table.");
+    }
+
+    private void assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+            Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
+                    AtlasDbInteractiveTransaction transaction =
+                            new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
+                    transaction.witness();
+                    transactionConsumer.accept(transaction);
+                    return null;
+                }))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Transaction has already been witnessed and can no longer perform any actions.");
+    }
+}u!     }(j  (f078b01f9f07ade1c536865d8b2a68a6e10d8d76j  jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj   modifiedj  K/j  Kj  K6j  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  Xz  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.workload.store;
 
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.INDEX_REFERENCE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLES_TO_ATLAS_METADATA;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1_INDEX_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
@@ -27,14 +28,18 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
 
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore.CommitTimestampProvider;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
@@ -45,30 +50,29 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
+import java.util.function.Supplier;
 import java.util.stream.Collectors;
 import org.junit.Before;
 import org.junit.Test;
 
 public final class AtlasDbTransactionStoreTest {
 
+    private static final long START_TS = 1;
+    private static final long COMMIT_TS = 2;
+
     private TransactionManager manager;
 
     private AtlasDbTransactionStore store;
 
     @Before
     public void before() {
         manager = TransactionManagers.createInMemory(Set.of());
-        store = AtlasDbTransactionStore.create(
-                manager,
-                Map.of(
-                        TABLE_REFERENCE,
-                        AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
-                        INDEX_REFERENCE,
-                        AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE)));
+        store = AtlasDbTransactionStore.create(manager, TABLES_TO_ATLAS_METADATA);
     }
 
     @Test
@@ -145,4 +149,40 @@ public void readWriteHandlesReadOnlyTransaction() {
         assertThat(witnessedTransaction).isPresent();
         assertThat(witnessedTransaction.get().commitTimestamp()).isEmpty();
     }
+
+    @Test
+    public void abortedTransactionsReturnEmpty() {
+        TransactionManager onlyAbortsManager = spy(manager);
+        Transaction abortedTransaction = mock(Transaction.class);
+        when(abortedTransaction.isAborted()).thenReturn(true);
+        doReturn(abortedTransaction).when(onlyAbortsManager).runTaskWithConditionWithRetry(any(Supplier.class), any());
+        AtlasDbTransactionStore onlyAbortsStore =
+                AtlasDbTransactionStore.create(onlyAbortsManager, TABLES_TO_ATLAS_METADATA);
+        assertThat(onlyAbortsStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+                .isEmpty();
+    }
+
+    @Test
+    public void getCommitTimestampIsEmptyWhenMatchesStartTimestamp() {
+        CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();
+        commitTimestampProvider.throwIfConditionInvalid(START_TS);
+        assertThat(commitTimestampProvider.getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .isEmpty();
+    }
+
+    @Test
+    public void getCommitTimestampThrowsWhenNoTimestampSet() {
+        assertThatThrownBy(() -> new CommitTimestampProvider().getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining(
+                        "Timestamp has not been set, which means the pre commit condition has never been executed");
+    }
+
+    @Test
+    public void getCommitTimestampReturnsPresentWhenCommitAndStartTimestampMismatch() {
+        CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();
+        commitTimestampProvider.throwIfConditionInvalid(COMMIT_TS);
+        assertThat(commitTimestampProvider.getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .hasValue(COMMIT_TS);
+    }
 }u}(j  (eb63f7e70bff1527685e728d66979d4f8f1a1f60j  tatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayerTest.javaj   addedj  KJj  K j  KJj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -0,0 +1,74 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.Tuple2;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class InMemoryTransactionReplayerTest {
+
+    private static final WitnessedWriteTransactionAction WRITE_TRANSACTION_ACTION_1 =
+            ImmutableWitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+    private static final WitnessedWriteTransactionAction WRITE_TRANSACTION_ACTION_2 =
+            ImmutableWitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO);
+
+    @Test
+    public void readActionsAreIgnored() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        inMemoryTransactionReplayer.visit(
+                ImmutableWitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+        assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
+    }
+
+    @Test
+    public void writesAreRecorded() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_1);
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_2);
+        assertThat(inMemoryTransactionReplayer.getValues())
+                .containsExactlyInAnyOrder(
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)),
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_TWO, Optional.of(VALUE_TWO)));
+    }
+
+    @Test
+    public void deletesAreRecorded() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_1);
+        inMemoryTransactionReplayer.visit(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
+        inMemoryTransactionReplayer.visit(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO));
+        assertThat(inMemoryTransactionReplayer.getValues())
+                .containsExactlyInAnyOrder(
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_ONE, Optional.empty()),
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_TWO, Optional.empty()));
+    }
+}u}(j  (78af7c7707b5a99809f2969167221c5abc0b8231j  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javaj   modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -25,6 +25,7 @@
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.store.ValidationStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;u}(j  (7b1fab2f64a88a2f2feeed744728c00b88416708j  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj   addedj  Krj  K j  Krj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  Xz  @@ -0,0 +1,114 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.logsafe.Preconditions;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicLong;
+
+public final class WitnessedTransactionsBuilder {
+
+    private final List<WitnessedTransaction> witnessedTransactions = new ArrayList<>();
+
+    private final AtomicLong timestampCounter = new AtomicLong();
+    private final String table;
+
+    public WitnessedTransactionsBuilder(String table) {
+        this.table = table;
+    }
+
+    public WitnessedTransactionBuilder startTransaction() {
+        return new WitnessedTransactionBuilder(timestampCounter.incrementAndGet());
+    }
+
+    public List<WitnessedTransaction> build() {
+        return List.copyOf(witnessedTransactions);
+    }
+
+    public final class WitnessedTransactionBuilder {
+        private final List<WitnessedTransactionAction> actions = new ArrayList<>();
+
+        private boolean needsCommitTimestamp = false;
+
+        private final long startTimestamp;
+
+        public WitnessedTransactionBuilder(long startTimestamp) {
+            this.startTimestamp = startTimestamp;
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column, Optional<Integer> valueRead) {
+            actions.add(WitnessedReadTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), valueRead));
+            return this;
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column, Integer valueRead) {
+            return read(row, column, Optional.of(valueRead));
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column) {
+            return read(row, column, Optional.empty());
+        }
+
+        public WitnessedTransactionBuilder write(Integer row, Integer column, Integer value) {
+            actions.add(WitnessedWriteTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), value));
+            needsCommitTimestamp = true;
+            return this;
+        }
+
+        public WitnessedTransactionBuilder delete(Integer row, Integer column) {
+            actions.add(WitnessedDeleteTransactionAction.of(table, ImmutableWorkloadCell.of(row, column)));
+            needsCommitTimestamp = true;
+            return this;
+        }
+
+        public WitnessedTransactionsBuilder endTransaction() {
+            Optional<Long> commitTimestamp =
+                    needsCommitTimestamp ? Optional.of(timestampCounter.incrementAndGet()) : Optional.empty();
+            return endTransaction(commitTimestamp);
+        }
+
+        public WitnessedTransactionsBuilder endTransaction(Long commitTimestamp) {
+            return endTransaction(Optional.of(commitTimestamp));
+        }
+
+        public WitnessedTransactionsBuilder endTransaction(Optional<Long> commitTimestamp) {
+            if (needsCommitTimestamp) {
+                Preconditions.checkArgument(
+                        commitTimestamp.isPresent(),
+                        "Commit timestamp must be provided when the transaction has any writes or deletes.");
+                Preconditions.checkArgument(
+                        startTimestamp < commitTimestamp.get(),
+                        "Commit timestamp must be greater than the start timestamp.");
+            }
+            witnessedTransactions.add(ImmutableWitnessedTransaction.builder()
+                    .startTimestamp(startTimestamp)
+                    .actions(actions)
+                    .commitTimestamp(commitTimestamp)
+                    .build());
+            return WitnessedTransactionsBuilder.this;
+        }
+    }
+}u}(j  (ad2234f0c3aa6c382c76189b72d5534773d719d6j  hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javaj   modifiedj  K
j  K j  K
j  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -18,9 +18,12 @@
 
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import java.util.Map;
 
 public final class WorkloadTestHelpers {
     public static final String TABLE_1 = "foo";
@@ -34,6 +37,16 @@ public final class WorkloadTestHelpers {
     public static final TableReference INDEX_REFERENCE =
             TableReference.create(TABLE_REFERENCE.getNamespace(), TABLE_1_INDEX_1);
 
+    public static final Map<String, TableReference> NAMES_TO_REFERENCES_TABLE_1 = Map.of(
+            TABLE_1, TABLE_REFERENCE,
+            TABLE_1_INDEX_1, INDEX_REFERENCE);
+
+    public static final Map<TableReference, byte[]> TABLES_TO_ATLAS_METADATA = Map.of(
+            TABLE_REFERENCE,
+            AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
+            INDEX_REFERENCE,
+            AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE_INDEX));
+
     public static final Namespace NAMESPACE = Namespace.create("workload");
     public static final WorkloadCell WORKLOAD_CELL_ONE = ImmutableWorkloadCell.of(50, 10);
     public static final WorkloadCell WORKLOAD_CELL_TWO = ImmutableWorkloadCell.of(1257, 521);u}(j  (9fe533e5541cbe57b1ffd7b58637bec5a246f6e7j  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunnerTest.javaj   modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  Xr  @@ -49,11 +49,12 @@
 public class ConcurrentTransactionRunnerTest {
     private static final int DEFAULT_TASK_MULTIPLICITY = 100;
 
-    private final KeyedTransactionTask task = mock(KeyedTransactionTask.class);
+    private final KeyedTransactionTask<TransactionStore> task = mock(KeyedTransactionTask.class);
     private final TransactionStore store = mock(TransactionStore.class);
     private final DeterministicScheduler scheduler = new DeterministicScheduler();
     private final ListeningExecutorService executorService = MoreExecutors.listeningDecorator(scheduler);
-    private final ConcurrentTransactionRunner runner = new ConcurrentTransactionRunner(store, executorService);
+    private final ConcurrentTransactionRunner<TransactionStore> runner =
+            new ConcurrentTransactionRunner<>(store, executorService);
 
     @Before
     public void setupTask() {u}(j  (64cf1619b17fbb0e21a1c034b30a32619f4a4f18j  eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javaj   modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X"  @@ -36,7 +36,7 @@
 public class DefaultWorkflowTest {
     private final TransactionStore store = mock(TransactionStore.class);
 
-    private final KeyedTransactionTask transactionTask = mock(KeyedTransactionTask.class);
+    private final KeyedTransactionTask<TransactionStore> transactionTask = mock(KeyedTransactionTask.class);
 
     private final ScheduledExecutorService scheduler = PTExecutors.newSingleThreadScheduledExecutor();
     private final ListeningExecutorService executionExecutor = MoreExecutors.listeningDecorator(scheduler);u}(j  (c1f634d4126720aa2ed7f3a586024740f66c9ab0j  datlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingGraphTest.javaj   addedj  Kjj  K j  Kjj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  XM  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.google.common.collect.ImmutableMap;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Map;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class RingGraphTest {
+
+    private static final Map<Integer, Integer> VALID_RING = ImmutableMap.of(0, 2, 1, 0, 2, 1);
+
+    @Test
+    public void fromPartialGeneratesRandomRingWhenAllKeysEmpty() {
+        Map<Integer, Optional<Integer>> emptyEdges = ImmutableMap.of(1, Optional.empty(), 2, Optional.empty());
+        assertThatCode(() -> RingGraph.fromPartial(emptyEdges)).doesNotThrowAnyException();
+    }
+
+    @Test
+    public void fromPartialThrowsWhenSomeEntriesAreEmpty() {
+        Map<Integer, Optional<Integer>> partiallyEmptyRing = ImmutableMap.of(0, Optional.of(1), 1, Optional.empty());
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.fromPartial(partiallyEmptyRing))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Graph contains missing entries, thus cannot be made into a ring.")
+                .hasExactlyArgs(SafeArg.of("ring", partiallyEmptyRing));
+    }
+
+    @Test
+    public void fromThrowsMissingEntriesWhenNodeReferencedDoesNotExist() {
+        Map<Integer, Integer> missingNodesRing = ImmutableMap.of(0, 2, 1, 0);
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(missingNodesRing))
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.MISSING_ENTRIES),
+                        SafeArg.of("ring", missingNodesRing));
+    }
+
+    @Test
+    public void fromThrowsCycleExceptionWhenUnableToReachEveryNode() {
+        Map<Integer, Integer> incompleteRing = ImmutableMap.of(0, 1, 1, 1, 2, 0);
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(incompleteRing))
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.EARLY_CYCLE),
+                        SafeArg.of("ring", incompleteRing));
+    }
+
+    @Test
+    public void fromThrowsCycleExceptionWhenEntryNodeNotRevisited() {
+        Map<Integer, Integer> incompleteRing = ImmutableMap.of(0, 1, 1, 1);
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(incompleteRing))
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.EARLY_CYCLE),
+                        SafeArg.of("ring", incompleteRing));
+    }
+
+    @Test
+    public void generateNewRingCreatesDifferentRing() {
+        RingGraph ringGraph = RingGraph.create(8);
+        boolean uniqueAtLeastOnce = false;
+        for (int iteration = 0; iteration < 10; iteration++) {
+            if (!ringGraph.generateNewRing().asMap().equals(ringGraph.asMap())) {
+                uniqueAtLeastOnce = true;
+                break;
+            }
+        }
+        assertThat(uniqueAtLeastOnce)
+                .as("Check ring generation multiple times as we could randomly generate an identical ring")
+                .isTrue();
+    }
+
+    @Test
+    public void generateNewRingReturnsValidRing() {
+        RingGraph ring = RingGraph.create(8);
+        for (int count = 0; count < 1000; count++) {
+            assertThatCode(() -> RingGraph.from(ring.generateNewRing().asMap())).doesNotThrowAnyException();
+        }
+    }
+
+    @Test
+    public void asMapConvertsCorrectly() {
+        assertThat(RingGraph.from(VALID_RING).asMap()).isEqualTo(VALID_RING);
+    }
+}u}(j  (b76eb98bf9ca3cc3502b229247cd0eb65cd5a3cej  hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowsTest.javaj   addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.java?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X"  @@ -0,0 +1,129 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.atlasdb.workload.workflow.ImmutableTableConfiguration;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.Test;
+
+public class RingWorkflowsTest {
+
+    private static final String TABLE_NAME = "ring.ring";
+    private static final RingWorkflowConfiguration CONFIGURATION = ImmutableRingWorkflowConfiguration.builder()
+            .tableConfiguration(ImmutableTableConfiguration.builder()
+                    .tableName(TABLE_NAME)
+                    .isolationLevel(IsolationLevel.SNAPSHOT)
+                    .build())
+            .iterationCount(1)
+            .build();
+
+    private final InteractiveTransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SNAPSHOT)));
+
+    private final AtomicBoolean skipRunning = new AtomicBoolean(false);
+
+    private final Workflow workflow = RingWorkflows.create(
+            memoryStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)),
+            skipRunning);
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore())
+                .as("should return a read only transaction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void ringWorkflowContainsInitialReadsForRing() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.ringSize())
+                .boxed()
+                .map(index ->
+                        WitnessedReadTransactionAction.of(TABLE_NAME, RingWorkflows.cell(index), Optional.empty()))
+                .collect(Collectors.toList());
+        assertThat(actions).containsAll(initialReadActions);
+    }
+
+    @Test
+    public void ringWorkflowContainsInitialWritesForRing() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WorkloadCell> actualWrittenCells = actions.stream()
+                .filter(WitnessedWriteTransactionAction.class::isInstance)
+                .map(WitnessedWriteTransactionAction.class::cast)
+                .map(WitnessedWriteTransactionAction::cell)
+                .collect(Collectors.toList());
+
+        List<WorkloadCell> expectedWrittenCells = IntStream.range(0, CONFIGURATION.ringSize())
+                .boxed()
+                .map(RingWorkflows::cell)
+                .collect(Collectors.toList());
+
+        assertThat(actualWrittenCells).containsAll(expectedWrittenCells);
+    }
+
+    @Test
+    public void ringWorkflowSetsSkipRunningToTrueWhenInvalidRingPresent() {
+        assertThat(skipRunning).isFalse();
+        memoryStore.readWrite(txn -> txn.write(TABLE_NAME, RingWorkflows.cell(0), 99));
+        workflow.run();
+        assertThat(skipRunning).isTrue();
+    }
+
+    @Test
+    public void ringWorkflowDoesNotWitnessTransactionWhenSkipRunningSetToTrue() {
+        skipRunning.set(true);
+        assertThat(workflow.run().history()).isEmpty();
+    }
+}u}(j  (dc8ccab7fb0c3ad8d14f7566ab89d660c8508c47j   changelog/0.835.0/pr-6498.v2.ymlj   addedj  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/changelog%2F0.835.0%2Fpr-6498.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/changelog%2F0.835.0%2Fpr-6498.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.835.0%2Fpr-6498.v2.yml?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Choose optimal IOT compression based on table params
+  links:
+  - https://github.com/palantir/atlasdb/pull/6498u}(j  (fdaa0f14c0403bcf95c1cdd5c0f860c959c67c95j   changelog/0.835.0/pr-6508.v2.ymlj   addedj  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/changelog%2F0.835.0%2Fpr-6508.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/changelog%2F0.835.0%2Fpr-6508.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.835.0%2Fpr-6508.v2.yml?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: DB queries to Oracle/Postgres now use bind variables for rownum/limit
+    terms.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6508u}(j  (1d48df051a7627207eae8887272331c4921a8011j   changelog/0.836.0/pr-6516.v2.ymlj   addedj  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/changelog%2F0.836.0%2Fpr-6516.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/changelog%2F0.836.0%2Fpr-6516.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.836.0%2Fpr-6516.v2.yml?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: AtlasDB no longer registers the `/sweep` endpoints.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6516u}(j  (7cd0781ff20be0bdee6ed7080da226fe65bc85c7j   changelog/0.837.0/pr-6527.v2.ymlj   addedj  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/changelog%2F0.837.0%2Fpr-6527.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/changelog%2F0.837.0%2Fpr-6527.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.837.0%2Fpr-6527.v2.yml?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Use debian images for workload-server and timelock-server for integration
+    tests
+  links:
+  - https://github.com/palantir/atlasdb/pull/6527u}(j  (577af56d07c46b2ba098705dc05a852ec616b335j  *scripts/circle-ci/publish-to-antithesis.shj   modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj  https://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj  https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -25,5 +25,5 @@ docker tag palantirtechnologies/atlasdb-workload-server-distribution:unspecified
 docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:unspecified
 
 LATEST_ANTITHESIS_TAG=$(docker image ls palantirtechnologies/atlasdb-workload-server-antithesis --format "{{.Tag}}")
-docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${LATEST_ANTITHESIS_TAG}
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${LATEST_ANTITHESIS_TAG}
\ No newline at end of file
+docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}
\ No newline at end of fileu}(j  (be72c004493be08c4fc82ce80da6356af57c9035j  'timelock-server-distribution/Dockerfilej   modifiedj  K
j  Kj  Kj  {https://github.com/palantir/atlasdb/blob/e6dea799f37e089792bb611a6a3e927d51d02e21/timelock-server-distribution%2FDockerfilej  zhttps://github.com/palantir/atlasdb/raw/e6dea799f37e089792bb611a6a3e927d51d02e21/timelock-server-distribution%2FDockerfilej  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-distribution%2FDockerfile?ref=e6dea799f37e089792bb611a6a3e927d51d02e21j	  X  @@ -1,8 +1,8 @@
-FROM adoptopenjdk/openjdk11:jre-11.0.9_11.1-alpine
+FROM adoptopenjdk/openjdk11:jdk-11.0.11_9-debian
 MAINTAINER AtlasDB Team
 
 # Bash is useful for monitoring; curl is used by our healthchecks.
-RUN apk update && apk add bash curl
+RUN apt-get update && apt-get -y install bash curl
 
 # Prefer ADD to COPY because it does the tar handling
 ADD timelock-server-*.tgz /
@@ -13,6 +13,14 @@ WORKDIR /timelock-server
 
 RUN mkdir -p var/data/paxos
 
+# Needed for Antithesis
+RUN curl -o /usr/bin/yq -kLf https://github.com/mikefarah/yq/releases/download/v4.33.2/yq_linux_amd64 && \
+    chmod +x /usr/bin/yq
+RUN yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-static.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-static.yml
+
 EXPOSE 8421 \
        8422
 ueu(7d84708b39f6c0759c09dd1e326322ce5c3f98e8}(sha(7d84708b39f6c0759c09dd1e326322ce5c3f98e8node_idEC_kwDOAjP5fdoAKDdkODQ3MDhiMzlmNmMwNzU5YzA5ZGQxZTMyNjMyMmNlNWMzZjk4ZTgcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-03-28T14:58:05Zu	committer}(jB  
svc-changelogjD  svc-changelog@palantir.comjF  2023-03-28T14:58:05ZumessageAdd generated changelog entriestree}(j:  (d5f1f6e50e4f4b42c16bb45e411ceadf5d1e52d0url`https://api.github.com/repos/palantir/atlasdb/git/trees/d5f1f6e50e4f4b42c16bb45e411ceadf5d1e52d0ujR  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7d84708b39f6c0759c09dd1e326322ce5c3f98e8
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQjAH0JEHYaJX37fAFQAABAPwEA6A2nUKGzC0FMALSz9U6nFrDT
T988xZ8LFs3apCxo/dwA/R/vn+sAR/k8xK7zujDMUUYhP2Lr3tzbYHPGl+0FpUJ3
=2f5x
-----END PGP SIGNATURE-----payloadX  tree d5f1f6e50e4f4b42c16bb45e411ceadf5d1e52d0
parent 561379dab3c389eca498ebc911081193b7e3fc78
author svc-changelog <svc-changelog@palantir.com> 1680015485 +0000
committer svc-changelog <svc-changelog@palantir.com> 1680015485 +0000

Add generated changelog entriesuujR  ^https://api.github.com/repos/palantir/atlasdb/commits/7d84708b39f6c0759c09dd1e326322ce5c3f98e8html_urlShttps://github.com/palantir/atlasdb/commit/7d84708b39f6c0759c09dd1e326322ce5c3f98e8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7d84708b39f6c0759c09dd1e326322ce5c3f98e8/commentsj@  }(login
svc-changelogidJ#j<  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jR  *https://api.github.com/users/svc-changelogj`   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujH  }(je  
svc-changelogjg  J#j<  MDQ6VXNlcjg0MDc3NjAzji  4https://avatars.githubusercontent.com/u/84077603?v=4jk  h5jR  *https://api.github.com/users/svc-changelogj`   https://github.com/svc-changelogjn  4https://api.github.com/users/svc-changelog/followersjp  Ahttps://api.github.com/users/svc-changelog/following{/other_user}jr  :https://api.github.com/users/svc-changelog/gists{/gist_id}jt  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jv  8https://api.github.com/users/svc-changelog/subscriptionsjx  /https://api.github.com/users/svc-changelog/orgsjz  0https://api.github.com/users/svc-changelog/reposj|  ;https://api.github.com/users/svc-changelog/events{/privacy}j~  :https://api.github.com/users/svc-changelog/received_eventsj  Userj  uparents]}(j:  (561379dab3c389eca498ebc911081193b7e3fc78jR  ^https://api.github.com/repos/palantir/atlasdb/commits/561379dab3c389eca498ebc911081193b7e3fc78j`  Shttps://github.com/palantir/atlasdb/commit/561379dab3c389eca498ebc911081193b7e3fc78uastats}(totalK	additionsK	deletionsK ufiles]}(j:  (d950412e3468eb3c6435b88c85e31c8234c831c5filename$changelog/@unreleased/pr-6488.v2.ymlstatusaddedj  Kj  K changesKblob_url|https://github.com/palantir/atlasdb/blob/7d84708b39f6c0759c09dd1e326322ce5c3f98e8/changelog%2F%40unreleased%2Fpr-6488.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/7d84708b39f6c0759c09dd1e326322ce5c3f98e8/changelog%2F%40unreleased%2Fpr-6488.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6488.v2.yml?ref=7d84708b39f6c0759c09dd1e326322ce5c3f98e8patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Improve Sqlite namespace loader implementation
+  links:
+  - https://github.com/palantir/atlasdb/pull/6488uau(c213c549dfcf2cac7e8145c8ed56f5fb8cbb25a9}(sha(c213c549dfcf2cac7e8145c8ed56f5fb8cbb25a9node_idEC_kwDOAjP5fdoAKGMyMTNjNTQ5ZGZjZjJjYWM3ZTgxNDVjOGVkNTZmNWZiOGNiYjI1YTkcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-07-24T21:00:52Zu	committer}(j  Patrick Koenigj  pkoenig10@gmail.comj  2023-07-24T21:06:01ZumessageFix TimeLockMigrationEteTesttree}(j  (c3012cb4babc056d66e56e973e94e9ee23b94ca2url`https://api.github.com/repos/palantir/atlasdb/git/trees/c3012cb4babc056d66e56e973e94e9ee23b94ca2uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c213c549dfcf2cac7e8145c8ed56f5fb8cbb25a9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAAhcAAAAHc3NoLXJzYQAAAAMBAAEAAAIBAOLBVI00yZaP7395xCyqzy
aD/kgGj5GS8qP2f4Q0hM5gFbEYaTLwKvZTgcFMKJEw/3tOlCyuFoQChwrZ+YjoX3ZcTdIs
QnoGeYlwKUGY4x3QXLvrURZtGaXWggfEc+UKHT3mnGXM9FpX9CSdpTopg7KhxDlx3/Jv90
zimWImFPxKFUSZrhVGqD8qAQibPTFDs+JhK0cqllhsvm0PR9PilTde++NKLCQUNrRJi2+f
BjLBjJMJshRwXkkM6J8hDvyjiLJz4Bg9hq+5QLnO1fYaetU7aP4bsCs6ix5pyD4WO6cr6T
SMCtJThNdHvOVuOaCCHBOQrdVGjbMH9lmW5FL5oMsTZ86p24rZOFD9ly44mMJWYGk6F81y
japNgWorhR0tSZMSZPVlisGQQsRnsqQidrVPe3IR4MTUsKx39CAutxgk6N+BseeByXKw+H
aBKmd75u/FU7IoxEbXX7EuDq2TCtUmujYXiY7SY4T0DQDjNpHq+vrEUsKyi5mbRTdNahvt
eFWJU5UIwO7Ao+HdsqfUjGN6zw2HSkiHEG3iOj5OY+byI/ykoYGMQ40w6w7shCt7XDbUXa
/kGqIyicthBGQ7Y4/TtquH5Ag2UPSlN9C0Rt/ZBolkTfoLz4wCtTMzd7hdixs5yuocVTn7
njhSYSXRyRbbVcF/q56x1NAAsVOe9epxAAAAA2dpdAAAAAAAAAAGc2hhNTEyAAACFAAAAA
xyc2Etc2hhMi01MTIAAAIAx/NkmD/XiDbJZpsLmRhMrolS9dwvpRDZZlve1zJy+y/wGJdO
VP2n7HG08d8Cw3bfAOKubYWZRqwLS//OydVgTRaMFLdswivh8rCKiBytucbpNuG+nn9Qbi
hw54lKpqQ+k5jTI/TkPj7oTFgwf+VZx3rLvcla7/dZFlpLYBDZzKjykzxYhk0toBwPYeBz
dzDaYGFgfizwbCBItCDALgwwDZOhQnnw7dfuEXHZqgd1DxWR+d4I6orROv+4iuW5YaEA9f
J+h+GkgrpH94tSq5NhfoGm9wpbRESHX1UcYNeWE3KyvTkOcWR/iTMm2rpwU/L/CrDrJHlS
8m7fUlILywqu1XbySFdoHmH1KBtRx/qN+YzlCXAjI60Dv6KKtjxYLuOryCPe9VpuO3o0LF
Ra2IVAoeBdE1passeSop6fIADxPY29WWtZexYOcm/4ISuSUf1LZ44RkwUbc/xlOSF+0kWl
YKd2lZ2IwYuTU/Nyqxyi1SFqWz4IZFZrcuBD0Gv0DwF2x2frdfycrJkTb6m8LV7sesUspb
hQWPOUlxm7+8m+qcmTsuB+UyObgs4Pn8nT+J4jCpCODUz670LREZ9lqwLVCDFndAoRsT/R
2cOTAIKkqIrVokrepD6KV/YZQVFlXJf7OPyZiiOkZ4FLYrRP6emwIo+b6jcL+wS0whOJGe
8iTJ0=
-----END SSH SIGNATURE-----payloadtree c3012cb4babc056d66e56e973e94e9ee23b94ca2
parent 9fbe798096c9c15531e10bcd50b25f622037741a
author Patrick Koenig <pkoenig10@gmail.com> 1690232452 -0700
committer Patrick Koenig <pkoenig10@gmail.com> 1690232761 -0700

Fix TimeLockMigrationEteTest
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/c213c549dfcf2cac7e8145c8ed56f5fb8cbb25a9html_urlShttps://github.com/palantir/atlasdb/commit/c213c549dfcf2cac7e8145c8ed56f5fb8cbb25a9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c213c549dfcf2cac7e8145c8ed56f5fb8cbb25a9/commentsj  }(login	pkoenig10idJLvP j  MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5j  &https://api.github.com/users/pkoenig10j  https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminuj  }(j  	pkoenig10j  JLvP j  MDQ6VXNlcjUyNzMxNjQ=j  3https://avatars.githubusercontent.com/u/5273164?v=4j  h5j  &https://api.github.com/users/pkoenig10j  https://github.com/pkoenig10j  0https://api.github.com/users/pkoenig10/followersj  =https://api.github.com/users/pkoenig10/following{/other_user}j  6https://api.github.com/users/pkoenig10/gists{/gist_id}j  =https://api.github.com/users/pkoenig10/starred{/owner}{/repo}j  4https://api.github.com/users/pkoenig10/subscriptionsj  +https://api.github.com/users/pkoenig10/orgsj  ,https://api.github.com/users/pkoenig10/reposj  7https://api.github.com/users/pkoenig10/events{/privacy}j  6https://api.github.com/users/pkoenig10/received_eventsj  Userj  uparents]}(j  (9fbe798096c9c15531e10bcd50b25f622037741aj  ^https://api.github.com/repos/palantir/atlasdb/commits/9fbe798096c9c15531e10bcd50b25f622037741aj  Shttps://github.com/palantir/atlasdb/commit/9fbe798096c9c15531e10bcd50b25f622037741auastats}(totalK&	additionsK	deletionsK ufiles](}(j  (4806c8ddf676c1f007c209dffbb2622d5d5135bbfilename.circleci/config.ymlstatusmodifiedj  Kj  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/c213c549dfcf2cac7e8145c8ed56f5fb8cbb25a9/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/c213c549dfcf2cac7e8145c8ed56f5fb8cbb25a9/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=c213c549dfcf2cac7e8145c8ed56f5fb8cbb25a9patchX  @@ -31,7 +31,7 @@ jobs:
           root: .
           paths: [ . ]
 
-  test-suite:
+  test:
     parameters:
       suite:
         type: integer
@@ -104,12 +104,6 @@ jobs:
       - attach_workspace: { at: . }
       - run: ./gradlew --scan --profile --stacktrace --continue publishToMavenLocal
 
-  test:
-    docker: [ { image: 'busybox:1.34.1' } ]
-    resource_class: small
-    steps:
-      - run: {command: echo "Ran all required tests successfully"}
-
   deploy:
     docker:
       - image: cimg/openjdk:11.0.10-node
@@ -149,29 +143,11 @@ workflows:
           filters:
             tags:
               only: /.*/
-      - test-suite:
-          requires: [build]
-          matrix:
-            alias: test-no-tl
-            parameters:
-              # intentionally excluding 13 (TimeLock migration ETE test) from this collection
-              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14]
-          filters:
-            tags:
-              only: /.*/
-      - test-suite:
+      - test:
           requires: [build]
           matrix:
-            alias: test-tl
             parameters:
-              suite: [13]
-          filters:
-            branches:
-              only: /(tlmete.*|develop)/
-            tags:
-              only: /.*/
-      - test:
-          requires: [test-tl, test-no-tl]
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
           filters:
             tags:
               only: /.*/u}(j  (dfda65b5b3a490e801cb83c5985bf54d247aafc5j  Vatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/TimeLockMigrationEteTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/c213c549dfcf2cac7e8145c8ed56f5fb8cbb25a9/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.javaj   https://github.com/palantir/atlasdb/raw/c213c549dfcf2cac7e8145c8ed56f5fb8cbb25a9/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.javaj"  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.java?ref=c213c549dfcf2cac7e8145c8ed56f5fb8cbb25a9j$  X  @@ -100,6 +100,7 @@ public class TimeLockMigrationEteTest {
             SslConfiguration.of(Paths.get("var/security/trustStore.jks"));
     public static final TrustContext TRUST_CONTEXT = SslSocketFactories.createTrustContext(SSL_CONFIGURATION);
 
+    private static final long ID = 1L;
     private static final Todo TODO = ImmutableTodo.of("some stuff to do");
     private static final Todo TODO_2 = ImmutableTodo.of("more stuff to do");
     private static final Todo TODO_3 = ImmutableTodo.of("even more stuff to do");
@@ -126,17 +127,14 @@ public static void setUp() {
     }
 
     @Test
-    public void automaticallyMigratesTimestampsAndFailsOnRestart() throws Exception {
-        TimestampService timestampClient = createEteClientFor(TimestampService.class);
+    public void automaticallyMigratesTimestampsAndFailsOnRestart() {
         TodoResource todoClient = createEteClientFor(TodoResource.class);
 
-        todoClient.addTodo(TODO);
+        long embeddedTimestamp = todoClient.addTodoWithIdAndReturnTimestamp(ID, TODO);
         softAssertions
                 .assertThat(todoClient.getTodoList())
                 .as("contains one todo pre-migration")
                 .contains(TODO);
-
-        long embeddedTimestamp = timestampClient.getFreshTimestamp();
         softAssertions
                 .assertThat(embeddedTimestamp)
                 .as("can get a timestamp before migration")ueu(caeae74e41a2aea99c777c5a94087bfb99fb9065}(sha(caeae74e41a2aea99c777c5a94087bfb99fb9065node_idEC_kwDOAjP5fdoAKGNhZWFlNzRlNDFhMmFlYTk5Yzc3N2M1YTk0MDg3YmZiOTlmYjkwNjUcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-08-15T01:31:59Zu	committer}(j8  svc-excavator-botj:  svc-excavator-bot@palantir.comj<  2023-08-15T01:31:59Zumessage3Excavator:  Update conjure plugins and dependenciestree}(j0  (231cff4ed3c55d1514016ce104de93353903d00eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/231cff4ed3c55d1514016ce104de93353903d00eujH  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/caeae74e41a2aea99c777c5a94087bfb99fb9065
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmTa1Y8JEMmvEkpISILgAAADwwEAw3yPrH5FiSYVJA+n1V0YvOZD
ilI3848sH3wavof8kUABANhbw2cIaV7px6zBtlvq2UNe40cDXlf+xEXAGTR75kde
=Anh9
-----END PGP SIGNATURE-----
payloadX+  tree 231cff4ed3c55d1514016ce104de93353903d00e
parent 4c56a0fe53d8323106ccb416245523463e5bcb79
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1692063119 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1692063119 +0000

Excavator:  Update conjure plugins and dependenciesuujH  ^https://api.github.com/repos/palantir/atlasdb/commits/caeae74e41a2aea99c777c5a94087bfb99fb9065html_urlShttps://github.com/palantir/atlasdb/commit/caeae74e41a2aea99c777c5a94087bfb99fb9065comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/caeae74e41a2aea99c777c5a94087bfb99fb9065/commentsj6  }(loginsvc-excavator-botidJj2  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5jH  .https://api.github.com/users/svc-excavator-botjV  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj>  }(j[  svc-excavator-botj]  Jj2  MDQ6VXNlcjMzMjY2MzY4j_  4https://avatars.githubusercontent.com/u/33266368?v=4ja  h5jH  .https://api.github.com/users/svc-excavator-botjV  $https://github.com/svc-excavator-botjd  8https://api.github.com/users/svc-excavator-bot/followersjf  Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}jh  >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}jj  Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}jl  <https://api.github.com/users/svc-excavator-bot/subscriptionsjn  3https://api.github.com/users/svc-excavator-bot/orgsjp  4https://api.github.com/users/svc-excavator-bot/reposjr  ?https://api.github.com/users/svc-excavator-bot/events{/privacy}jt  >https://api.github.com/users/svc-excavator-bot/received_eventsjv  Userjx  uparents]}(j0  (4c56a0fe53d8323106ccb416245523463e5bcb79jH  ^https://api.github.com/repos/palantir/atlasdb/commits/4c56a0fe53d8323106ccb416245523463e5bcb79jV  Shttps://github.com/palantir/atlasdb/commit/4c56a0fe53d8323106ccb416245523463e5bcb79uastats}(totalKt	additionsK:	deletionsK:ufiles](}(j0  (ad27cc6a6d47b92783708218dd0e8e63c600102afilename
versions.lockstatusmodifiedj  K8j  K8changesKpblob_url_https://github.com/palantir/atlasdb/blob/caeae74e41a2aea99c777c5a94087bfb99fb9065/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/caeae74e41a2aea99c777c5a94087bfb99fb9065/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=caeae74e41a2aea99c777c5a94087bfb99fb9065patchXY6  @@ -8,24 +8,24 @@ com.boundary:high-scale-lib:1.0.6 (2 constraints: 9d14d4a0)
 com.clearspring.analytics:stream:2.5.2 (1 constraints: 970f7788)
 com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
-com.fasterxml.jackson.core:jackson-annotations:2.15.2 (24 constraints: c98164d0)
-com.fasterxml.jackson.core:jackson-core:2.15.2 (22 constraints: c9b52a9f)
-com.fasterxml.jackson.core:jackson-databind:2.15.2 (37 constraints: 17ba4690)
-com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.15.2 (2 constraints: e3333101)
-com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.15.2 (1 constraints: 7f1c9ea4)
+com.fasterxml.jackson.core:jackson-annotations:2.15.2 (24 constraints: ca813fd3)
+com.fasterxml.jackson.core:jackson-core:2.15.2 (22 constraints: cab506a0)
+com.fasterxml.jackson.core:jackson-databind:2.15.2 (37 constraints: 1bba549a)
+com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.15.2 (2 constraints: e4333401)
+com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.15.2 (1 constraints: 801ca1a4)
 com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.15.2 (4 constraints: 2344e62b)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.15.2 (4 constraints: 353f1bb1)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.2 (3 constraints: 6d300c5f)
-com.fasterxml.jackson.datatype:jackson-datatype-joda:2.15.2 (2 constraints: 322bf7af)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.2 (3 constraints: 6d300c5f)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.15.2 (4 constraints: 363f72b1)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.2 (3 constraints: 6e30395f)
+com.fasterxml.jackson.datatype:jackson-datatype-joda:2.15.2 (2 constraints: 332b24b0)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.2 (3 constraints: 6e30395f)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.15.2 (2 constraints: dd2ecb69)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.15.2 (1 constraints: 41197bbb)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.15.2 (1 constraints: 42197ebb)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.15.2 (2 constraints: 251d9309)
-com.fasterxml.jackson.module:jackson-module-afterburner:2.15.2 (1 constraints: 9b1c99a6)
+com.fasterxml.jackson.module:jackson-module-afterburner:2.15.2 (1 constraints: 9c1c9ca6)
 com.fasterxml.jackson.module:jackson-module-blackbird:2.15.2 (1 constraints: b40e625e)
 com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.15.2 (2 constraints: dd2ecb69)
 com.fasterxml.jackson.module:jackson-module-parameter-names:2.15.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.6 (13 constraints: 34ce7029)
+com.github.ben-manes.caffeine:caffeine:3.1.7 (13 constraints: 35ce362a)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -45,11 +45,11 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: 1595607f)
+com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f994805e)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
-com.google.guava:guava:32.1.1-jre (48 constraints: d13c9656)
+com.google.guava:guava:32.1.2-jre (48 constraints: 6c41de7a)
 com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava (1 constraints: bd17c918)
 com.google.j2objc:j2objc-annotations:2.8 (1 constraints: be09f5a0)
 com.google.protobuf:protobuf-java:3.21.9 (1 constraints: 4105453b)
@@ -67,28 +67,28 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:7.14.0 (5 constraints: 8754055e)
-com.palantir.conjure.java:conjure-undertow-annotations:7.14.0 (1 constraints: 3e05593b)
-com.palantir.conjure.java:conjure-undertow-lib:7.14.0 (2 constraints: 7d1cc7ae)
+com.palantir.conjure.java:conjure-lib:7.17.0 (5 constraints: 93541c65)
+com.palantir.conjure.java:conjure-undertow-annotations:7.17.0 (1 constraints: 4105623b)
+com.palantir.conjure.java:conjure-undertow-lib:7.17.0 (2 constraints: 831c99af)
 com.palantir.conjure.java.api:errors:2.35.0 (6 constraints: 4269c872)
 com.palantir.conjure.java.api:service-config:2.35.0 (5 constraints: 764da6cb)
 com.palantir.conjure.java.api:ssl-config:2.35.0 (4 constraints: 983b9c6e)
-com.palantir.conjure.java.runtime:client-config:7.57.0 (6 constraints: cc6b5039)
-com.palantir.conjure.java.runtime:conjure-java-annotations:7.57.0 (1 constraints: c918979e)
-com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.57.0 (2 constraints: cd21197b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.57.0 (6 constraints: 486ed394)
-com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.57.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.57.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.57.0 (1 constraints: c918979e)
-com.palantir.conjure.java.runtime:keystores:7.57.0 (3 constraints: 262af060)
-com.palantir.conjure.java.runtime:refresh-utils:7.57.0 (2 constraints: 0d1e7945)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.86.0 (2 constraints: 7f29c301)
-com.palantir.dialogue:dialogue-blocking-channels:3.86.0 (2 constraints: e12337b4)
-com.palantir.dialogue:dialogue-clients:3.86.0 (1 constraints: 4305633b)
-com.palantir.dialogue:dialogue-core:3.86.0 (3 constraints: 833de8e1)
-com.palantir.dialogue:dialogue-futures:3.86.0 (3 constraints: da334bc0)
-com.palantir.dialogue:dialogue-serde:3.86.0 (3 constraints: c12e6ea4)
-com.palantir.dialogue:dialogue-target:3.86.0 (7 constraints: 9e760e64)
+com.palantir.conjure.java.runtime:client-config:7.60.0 (6 constraints: ae6b012d)
+com.palantir.conjure.java.runtime:conjure-java-annotations:7.60.0 (1 constraints: c318869e)
+com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.60.0 (2 constraints: c721087b)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.60.0 (6 constraints: 3f6e2289)
+com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.60.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.60.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.60.0 (1 constraints: c318869e)
+com.palantir.conjure.java.runtime:keystores:7.60.0 (3 constraints: 1a2aae5f)
+com.palantir.conjure.java.runtime:refresh-utils:7.60.0 (2 constraints: 071e6845)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.90.0 (2 constraints: 8029e702)
+com.palantir.dialogue:dialogue-blocking-channels:3.90.0 (2 constraints: d72335b3)
+com.palantir.dialogue:dialogue-clients:3.90.0 (1 constraints: 3e05553b)
+com.palantir.dialogue:dialogue-core:3.90.0 (3 constraints: 7f3d6ae3)
+com.palantir.dialogue:dialogue-futures:3.90.0 (3 constraints: cb3374bd)
+com.palantir.dialogue:dialogue-serde:3.90.0 (3 constraints: bd2e3ba3)
+com.palantir.dialogue:dialogue-target:3.90.0 (7 constraints: 8676355a)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -98,27 +98,27 @@ com.palantir.goethe:goethe:0.11.0 (1 constraints: 3405263b)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
 com.palantir.ri:resource-identifier:2.6.0 (3 constraints: aa2f1337)
-com.palantir.safe-logging:logger:3.5.0 (24 constraints: c4a4cd59)
-com.palantir.safe-logging:logger-slf4j:3.5.0 (1 constraints: 030e6242)
-com.palantir.safe-logging:logger-spi:3.5.0 (2 constraints: 151e387b)
-com.palantir.safe-logging:preconditions:3.5.0 (31 constraints: 30182f82)
-com.palantir.safe-logging:safe-logging:3.5.0 (28 constraints: 0ed394c2)
+com.palantir.safe-logging:logger:3.6.0 (24 constraints: e3a4ad96)
+com.palantir.safe-logging:logger-slf4j:3.6.0 (1 constraints: 040e6542)
+com.palantir.safe-logging:logger-spi:3.6.0 (2 constraints: 171e6d7b)
+com.palantir.safe-logging:preconditions:3.6.0 (31 constraints: 52187ec7)
+com.palantir.safe-logging:safe-logging:3.6.0 (28 constraints: 2dd327f7)
 com.palantir.safethreadlocalrandom:safe-thread-local-random:0.1.0 (3 constraints: 933225f9)
 com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
 com.palantir.tokens:auth-tokens:3.18.0 (5 constraints: 4d5c8992)
-com.palantir.tracing:tracing:6.17.0 (8 constraints: f97d045e)
-com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 1745b4f5)
-com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 46199abb)
-com.palantir.tritium:tritium-api:0.68.0 (6 constraints: 64520bd6)
-com.palantir.tritium:tritium-caffeine:0.68.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-core:0.68.0 (5 constraints: 6d439821)
-com.palantir.tritium:tritium-lib:0.68.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-metrics:0.68.0 (7 constraints: 116c5de8)
-com.palantir.tritium:tritium-proxy:0.68.0 (1 constraints: 860e8f59)
-com.palantir.tritium:tritium-registry:0.68.0 (13 constraints: b4efdfbd)
-com.palantir.tritium:tritium-slf4j:0.68.0 (2 constraints: c1138f70)
-com.palantir.tritium:tritium-time:0.68.0 (1 constraints: 860e8f59)
-com.palantir.tritium:tritium-tracing:0.68.0 (1 constraints: 860e8f59)
+com.palantir.tracing:tracing:6.18.0 (8 constraints: 007ef461)
+com.palantir.tracing:tracing-api:6.18.0 (5 constraints: 1b45c0f6)
+com.palantir.tracing:tracing-jersey:6.18.0 (1 constraints: 47199dbb)
+com.palantir.tritium:tritium-api:0.72.0 (6 constraints: 4b52fbcc)
+com.palantir.tritium:tritium-caffeine:0.72.0 (1 constraints: 3c05433b)
+com.palantir.tritium:tritium-core:0.72.0 (5 constraints: 5943101c)
+com.palantir.tritium:tritium-lib:0.72.0 (1 constraints: 3c05433b)
+com.palantir.tritium:tritium-metrics:0.72.0 (7 constraints: f36badda)
+com.palantir.tritium:tritium-proxy:0.72.0 (1 constraints: 810e8159)
+com.palantir.tritium:tritium-registry:0.72.0 (13 constraints: 7cef3185)
+com.palantir.tritium:tritium-slf4j:0.72.0 (2 constraints: bc138170)
+com.palantir.tritium:tritium-time:0.72.0 (1 constraints: 810e8159)
+com.palantir.tritium:tritium-tracing:0.72.0 (1 constraints: 810e8159)
 com.squareup:javapoet:1.13.0 (4 constraints: 102cc1ed)
 com.squareup:kotlinpoet:1.11.0 (1 constraints: 6a0c7f0d)
 com.thinkaurelius.thrift:thrift-server:0.3.7 (1 constraints: 980f6c88)
@@ -145,7 +145,7 @@ io.dropwizard:dropwizard-util:2.1.2 (12 constraints: 6eb0fdf0)
 io.dropwizard:dropwizard-validation:2.1.2 (8 constraints: 85778aa6)
 io.dropwizard.logback:logback-throttling-appender:1.1.9 (1 constraints: 830ed74f)
 io.dropwizard.metrics:metrics-annotation:4.2.12 (3 constraints: 6c2e5a89)
-io.dropwizard.metrics:metrics-core:4.2.19 (29 constraints: f5d02e7e)
+io.dropwizard.metrics:metrics-core:4.2.19 (29 constraints: fad0e18f)
 io.dropwizard.metrics:metrics-healthchecks:4.2.12 (5 constraints: 4b4964b0)
 io.dropwizard.metrics:metrics-jersey2:4.2.12 (1 constraints: 5c0e744e)
 io.dropwizard.metrics:metrics-jetty9:4.2.12 (3 constraints: 2729b8ff)
@@ -200,7 +200,7 @@ jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.5 (6 constraints: b1596f2f)
 junit:junit:4.13.2 (8 constraints: 5a9c5baf)
-net.bytebuddy:byte-buddy:1.14.4 (3 constraints: 41252092)
+net.bytebuddy:byte-buddy:1.14.5 (3 constraints: 42256692)
 net.bytebuddy:byte-buddy-agent:1.14.4 (1 constraints: 440b42de)
 net.java.dev.jna:jna:4.1.0 (2 constraints: 6e1bbbad)
 net.jpountz.lz4:lz4:1.3.0 (2 constraints: 971453a0)
@@ -225,7 +225,7 @@ org.assertj:assertj-guava:3.24.2 (1 constraints: 3d05473b)
 org.awaitility:awaitility:4.2.0 (2 constraints: c71a893b)
 org.caffinitas.ohc:ohc-core:0.3.4 (1 constraints: 950f6988)
 org.checkerframework:checker-compat-qual:2.5.5 (2 constraints: 1f1d1717)
-org.checkerframework:checker-qual:3.33.0 (3 constraints: 7026bde2)
+org.checkerframework:checker-qual:3.36.0 (3 constraints: 73268ce3)
 org.clojure:clojure:1.8.0 (1 constraints: 0b050836)
 org.codehaus.groovy:groovy:2.5.14 (23 constraints: b55185ba)
 org.codehaus.groovy:groovy-cli-picocli:2.5.14 (5 constraints: d54e9017)
@@ -325,8 +325,8 @@ com.github.stefanbirkner:system-rules:1.19.0 (1 constraints: 3d05443b)
 com.github.tomakehurst:wiremock-standalone:2.27.2 (1 constraints: 3f054a3b)
 com.google.code.findbugs:annotations:3.0.1 (1 constraints: 9e0aafc3)
 com.palantir.conjure.java.api:test-utils:2.35.0 (1 constraints: 3f054e3b)
-com.palantir.safe-logging:preconditions-assertj:3.5.0 (1 constraints: 07050036)
-com.palantir.tracing:tracing-test-utils:6.17.0 (1 constraints: 3e05563b)
+com.palantir.safe-logging:preconditions-assertj:3.6.0 (1 constraints: 07050036)
+com.palantir.tracing:tracing-test-utils:6.18.0 (1 constraints: 3e05563b)
 com.spotify.dataenum:dataenum:1.4.1 (1 constraints: e9105ac1)
 com.thoughtworks.qdox:qdox:1.12.1 (1 constraints: 6d11f7d9)
 io.dropwizard:dropwizard-testing:2.1.2 (1 constraints: 0705fa35)ug!     }(j0  (b42dd0714eb595b742597c1f650dbec7b2666829j  versions.propsj  modifiedj  Kj  Kj  Kj  `https://github.com/palantir/atlasdb/blob/caeae74e41a2aea99c777c5a94087bfb99fb9065/versions.propsj  _https://github.com/palantir/atlasdb/raw/caeae74e41a2aea99c777c5a94087bfb99fb9065/versions.propsj  rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=caeae74e41a2aea99c777c5a94087bfb99fb9065j  X  @@ -25,9 +25,9 @@ com.palantir.common:streams = 2.1.0
 com.palantir.config.crypto:* = 5.1.0
 com.palantir.conjure.java.api:* = 2.29.0
 com.palantir.conjure.java.runtime:* = 7.39.0
-com.palantir.conjure.java:* = 7.14.0
+com.palantir.conjure.java:* = 7.17.0
 com.palantir.conjure:conjure = 4.38.0
-com.palantir.dialogue:* = 3.86.0
+com.palantir.dialogue:* = 3.90.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
 com.palantir.goethe:* = 0.11.0ueu(a79d586cbb2f4faf0c4889cbd0b1f573f7f1de47}(sha(a79d586cbb2f4faf0c4889cbd0b1f573f7f1de47node_idEC_kwDOAjP5fdoAKGE3OWQ1ODZjYmIyZjRmYWYwYzQ4ODljYmQwYjFmNTczZjdmMWRlNDccommit}(author}(nameMohammed Daudaliemailmdaudali@palantir.comdate2023-03-23T16:03:29Zu	committer}(j  Mohammed Daudalij  mdaudali@palantir.comj  2023-03-23T16:03:29Zumessagemore nullaway thingstree}(j  (0fd873e95b481033f87309fba9219cfd3b407d02url`https://api.github.com/repos/palantir/atlasdb/git/trees/0fd873e95b481033f87309fba9219cfd3b407d02uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a79d586cbb2f4faf0c4889cbd0b1f573f7f1de47
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE85NpmxiQII63+jWv1DJ7K5YIya0FAmQceFEACgkQ1DJ7K5YI
ya2IOQf9EbPIP+pAFL/J2KutRBK+St4tSRX/uGj8XwJzU9GXaqu88fL0fNY3OflT
gXsQbeygdbfvFsKIgYQKXZ3T1dv5SxdP/2VQlapPfxDLoKN7D85H22TzfejDexa0
fl+aAbfD2KcjeftfYc4aaMDbGyq0ODZEjl68kAoGXOOtXuvAzb5yS1yVjlxBexaY
CarPsTXJTEwv8d/oLvxYz1a13nyb4G0XUd05ougZzE2X3XLpxIq155lh7ClucAgs
wL4cSgP17hAp6IMXl3LraKDgHOWqDJH6cvYkQB4R5//9PEhRrgGAmDQaT9/X9rFf
cBLr78MmHAMlJtVnPJZzps1KKvSSAg==
=BVNN
-----END PGP SIGNATURE-----payloadtree 0fd873e95b481033f87309fba9219cfd3b407d02
parent 5a07e2462e19aee5b13cc1d65dd3c6871747c97d
author Mohammed Daudali <mdaudali@palantir.com> 1679587409 +0000
committer Mohammed Daudali <mdaudali@palantir.com> 1679587409 +0000

more nullaway things
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/a79d586cbb2f4faf0c4889cbd0b1f573f7f1de47html_urlShttps://github.com/palantir/atlasdb/commit/a79d586cbb2f4faf0c4889cbd0b1f573f7f1de47comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a79d586cbb2f4faf0c4889cbd0b1f573f7f1de47/commentsj  }(loginmdaudaliidJ j  MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5j  %https://api.github.com/users/mdaudalij  https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminuj  }(j  mdaudalij  J j  MDQ6VXNlcjE4MTI3NjQ=j  3https://avatars.githubusercontent.com/u/1812764?v=4j  h5j  %https://api.github.com/users/mdaudalij  https://github.com/mdaudalij  /https://api.github.com/users/mdaudali/followersj  <https://api.github.com/users/mdaudali/following{/other_user}j  5https://api.github.com/users/mdaudali/gists{/gist_id}j  <https://api.github.com/users/mdaudali/starred{/owner}{/repo}j  3https://api.github.com/users/mdaudali/subscriptionsj  *https://api.github.com/users/mdaudali/orgsj  +https://api.github.com/users/mdaudali/reposj  6https://api.github.com/users/mdaudali/events{/privacy}j  5https://api.github.com/users/mdaudali/received_eventsj  Userj  uparents]}(j  (5a07e2462e19aee5b13cc1d65dd3c6871747c97dj  ^https://api.github.com/repos/palantir/atlasdb/commits/5a07e2462e19aee5b13cc1d65dd3c6871747c97dj  Shttps://github.com/palantir/atlasdb/commit/5a07e2462e19aee5b13cc1d65dd3c6871747c97duastats}(totalK	additionsK	deletionsKufiles](}(j  (0080c3f7113ff49f387d0c758020e1ca01ce5e35filenameZatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/BatchColumnRangeSelection.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/a79d586cbb2f4faf0c4889cbd0b1f573f7f1de47/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FBatchColumnRangeSelection.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a79d586cbb2f4faf0c4889cbd0b1f573f7f1de47/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FBatchColumnRangeSelection.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FBatchColumnRangeSelection.java?ref=a79d586cbb2f4faf0c4889cbd0b1f573f7f1de47patchX|  @@ -22,6 +22,7 @@
 import com.palantir.atlasdb.encoding.PtBytes;
 import java.io.Serializable;
 import java.util.regex.Pattern;
+import org.checkerframework.checker.nullness.qual.Nullable;
 
 public final class BatchColumnRangeSelection implements Serializable {
     private static final long serialVersionUID = 1L;
@@ -40,8 +41,8 @@ public static BatchColumnRangeSelection create(ColumnRangeSelection columnRangeS
 
     @JsonCreator
     public static BatchColumnRangeSelection create(
-            @JsonProperty("startCol") byte[] startCol,
-            @JsonProperty("endCol") byte[] endCol,
+            @JsonProperty("startCol") byte @Nullable [] startCol,
+            @JsonProperty("endCol") byte @Nullable [] endCol,
             @JsonProperty("batchHint") int batchHint) {
         return new BatchColumnRangeSelection(new ColumnRangeSelection(startCol, endCol), batchHint);
     }u}(j  (19e81f650612c73f16c316beabd226ea34ac6293j  Uatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/ColumnRangeSelection.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/a79d586cbb2f4faf0c4889cbd0b1f573f7f1de47/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FColumnRangeSelection.javaj  https://github.com/palantir/atlasdb/raw/a79d586cbb2f4faf0c4889cbd0b1f573f7f1de47/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FColumnRangeSelection.javaj   https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FColumnRangeSelection.java?ref=a79d586cbb2f4faf0c4889cbd0b1f573f7f1de47j"  X  @@ -26,6 +26,7 @@
 import java.util.Arrays;
 import java.util.Objects;
 import java.util.regex.Pattern;
+import org.checkerframework.checker.nullness.qual.Nullable;
 
 public class ColumnRangeSelection implements Serializable {
     private static final long serialVersionUID = 1L;
@@ -36,7 +37,8 @@ public class ColumnRangeSelection implements Serializable {
     private final byte[] endCol;
 
     @JsonCreator
-    public ColumnRangeSelection(@JsonProperty("startCol") byte[] startCol, @JsonProperty("endCol") byte[] endCol) {
+    public ColumnRangeSelection(
+            @JsonProperty("startCol") byte @Nullable [] startCol, @JsonProperty("endCol") byte @Nullable [] endCol) {
         this.startCol = Objects.requireNonNullElse(startCol, PtBytes.EMPTY_BYTE_ARRAY);
         this.endCol = Objects.requireNonNullElse(endCol, PtBytes.EMPTY_BYTE_ARRAY);
         if (!isValidRange(this.startCol, this.endCol)) {u}(j  (a25afbbd55977ee4a1b82d1a983a012dc886d075j  _atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/cleaner/KeyValueServicePuncherStore.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/a79d586cbb2f4faf0c4889cbd0b1f573f7f1de47/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FKeyValueServicePuncherStore.javaj  https://github.com/palantir/atlasdb/raw/a79d586cbb2f4faf0c4889cbd0b1f573f7f1de47/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FKeyValueServicePuncherStore.javaj   https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FKeyValueServicePuncherStore.java?ref=a79d586cbb2f4faf0c4889cbd0b1f573f7f1de47j"  X  @@ -41,6 +41,7 @@
 import java.util.Optional;
 import java.util.concurrent.ThreadLocalRandom;
 import java.util.concurrent.TimeUnit;
+import org.checkerframework.checker.nullness.qual.Nullable;
 import org.immutables.value.Value.Check;
 import org.immutables.value.Value.Immutable;
 
@@ -185,7 +186,7 @@ public static long getMillisForTimestamp(KeyValueService kvs, long timestamp) {
      * within the specified bounds.
      */
     public static Optional<MillisAndMaybeTimestamp> getMillisForTimestampWithinBounds(
-            KeyValueService kvs, long timestamp, MillisAndMaybeTimestamp lowerBound, long upperBound) {
+            KeyValueService kvs, long timestamp, @Nullable MillisAndMaybeTimestamp lowerBound, long upperBound) {
         MillisAndMaybeTimestamp lowerBoundToUse =
                 Optional.ofNullable(lowerBound).orElseGet(() -> findOlder(kvs, timestamp, upperBound));
 ueu(3d4da642973ad79b8614649539161a4e2b0240f0}(sha(3d4da642973ad79b8614649539161a4e2b0240f0node_idEC_kwDOAjP5fdoAKDNkNGRhNjQyOTczYWQ3OWI4NjE0NjQ5NTM5MTYxYTRlMmIwMjQwZjAcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-12T10:34:25Zu	committer}(j>  
Ahmed Alouanej@  aalouane@palantir.comjB  2023-05-12T10:34:25Zumessagethis will fail due to authtree}(j6  (e5ceaf71231e760b858d406fe88c23f096b5ff74url`https://api.github.com/repos/palantir/atlasdb/git/trees/e5ceaf71231e760b858d406fe88c23f096b5ff74ujN  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3d4da642973ad79b8614649539161a4e2b0240f0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmReFjIACgkQPlMHVIT1
yhq2bwf9GVc6Zp8XS2bS7BOa+hZXqqjb/NFZeHZ5+SfUxXR+i+whRL/J9z5qnfHN
honySad7HrwGBgSoTDOmQ0+B6K5n7bAmUD7N3HNNfq1RQHLHvfjUu4fBgnS3ISWo
Pybi7YyKJSMB80U6m0WWexTn02T7fkgBJ+2QmHlP2f4q2iv/HD7yvI9m8TIgvOP5
YfXx7S9Boa9C9RemXxE/s/1gcjJbykl+rljeB9xM20lnYaK6eSMCxkEUgAr0TRDR
1YpM41ujv4TGOqwIiVFHtNyPjyhpj9bOBxrk7cTQahpkR4nO1Tzljm85hi4rQg0e
ZjIwjv6cA9493KyFxSQC8qxTuX3/ow==
=l6fe
-----END PGP SIGNATURE-----payloadtree e5ceaf71231e760b858d406fe88c23f096b5ff74
parent 5c1748e7186f97b5cea6ac6869184790fae48a4c
author Ahmed Alouane <aalouane@palantir.com> 1683887665 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1683887665 +0100

this will fail due to auth
uujN  ^https://api.github.com/repos/palantir/atlasdb/commits/3d4da642973ad79b8614649539161a4e2b0240f0html_urlShttps://github.com/palantir/atlasdb/commit/3d4da642973ad79b8614649539161a4e2b0240f0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3d4da642973ad79b8614649539161a4e2b0240f0/commentsj<  }(loginergo14idJj8  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jN  #https://api.github.com/users/ergo14j\  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujD  }(ja  ergo14jc  Jj8  MDQ6VXNlcjMwOTAzNzM2je  4https://avatars.githubusercontent.com/u/30903736?v=4jg  h5jN  #https://api.github.com/users/ergo14j\  https://github.com/ergo14jj  -https://api.github.com/users/ergo14/followersjl  :https://api.github.com/users/ergo14/following{/other_user}jn  3https://api.github.com/users/ergo14/gists{/gist_id}jp  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jr  1https://api.github.com/users/ergo14/subscriptionsjt  (https://api.github.com/users/ergo14/orgsjv  )https://api.github.com/users/ergo14/reposjx  4https://api.github.com/users/ergo14/events{/privacy}jz  3https://api.github.com/users/ergo14/received_eventsj|  Userj~  uparents]}(j6  (5c1748e7186f97b5cea6ac6869184790fae48a4cjN  ^https://api.github.com/repos/palantir/atlasdb/commits/5c1748e7186f97b5cea6ac6869184790fae48a4cj\  Shttps://github.com/palantir/atlasdb/commit/5c1748e7186f97b5cea6ac6869184790fae48a4cuastats}(totalK	additionsK	deletionsK ufiles](}(j6  (60235f8a9742828314d24034c6ac2902a276715ffilename.circleci/config.ymlstatusmodifiedj  Kj  K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/3d4da642973ad79b8614649539161a4e2b0240f0/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/3d4da642973ad79b8614649539161a4e2b0240f0/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=3d4da642973ad79b8614649539161a4e2b0240f0patchX  @@ -85,6 +85,11 @@ jobs:
       - persist_to_workspace:
           root: .
           paths: [ . ]
+      - run:
+          name: "Cancel workflows on failure"
+          command: |
+            curl --request POST --url https://circleci.com/api/v2/workflow/$CIRCLE_WORKFLOW_ID/cancel --header 'authorization: Basic REPLACE_BASIC_AUTH'
+          when: on_fail
 
   trial-publish:
     docker:u}(j6  (45be9ee52ae997f6a7a9e973cdc3247a140a50b2j  gatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/metrics/LastSweptTimestampUpdaterTest.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/3d4da642973ad79b8614649539161a4e2b0240f0/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fmetrics%2FLastSweptTimestampUpdaterTest.javaj  https://github.com/palantir/atlasdb/raw/3d4da642973ad79b8614649539161a4e2b0240f0/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fmetrics%2FLastSweptTimestampUpdaterTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fmetrics%2FLastSweptTimestampUpdaterTest.java?ref=3d4da642973ad79b8614649539161a4e2b0240f0j  X  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.sweep.metrics;
 
+import static org.junit.Assert.assertThat;
 import static org.junit.Assert.assertThrows;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyLong;
@@ -186,6 +187,11 @@ public void scheduledTaskKeepsRunningAfterUpdateProgressForShardFails() {
         verify(metrics, times(3)).updateProgressForShard(CONS_SHARD, CONS_TS);
     }
 
+    @Test
+    public void faultyMath() {
+        throw new RuntimeException();
+    }
+
     private void stubWithRealisticReturnValues() {
         setNumShardsMock(shards);
         when(queue.getLastSweptTimestamps(conservativeShardAndStrategySet)).thenReturn(conservativeShardAndStrategyMap);ueu(02c1afb542c40dd4d2f7659c226893ca0af7e2a8}(sha(02c1afb542c40dd4d2f7659c226893ca0af7e2a8node_idEC_kwDOAjP5fdoAKDAyYzFhZmI1NDJjNDBkZDRkMmY3NjU5YzIyNjg5M2NhMGFmN2UyYTgcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-16T12:23:29Zu	committer}(j  
Sam Kramerj  skramer@palantir.comj  2023-03-16T12:23:29Zumessagenits nits nitstree}(j  (afb2019536cdbd6c78dac6ab35b1324898dc9cccurl`https://api.github.com/repos/palantir/atlasdb/git/trees/afb2019536cdbd6c78dac6ab35b1324898dc9cccuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/02c1afb542c40dd4d2f7659c226893ca0af7e2a8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQTCkEACgkQmPPOpKR4
XS0LqggAooINRaIYxwRs5nQW6tIWzLLc5kHynvOhWwcvVUvgJ9hn1g0ZlcjKZ28a
zjkPRQiVP3ZPqcqNxr0URDYcNZPI6BzNNIo+QB4nipDQfHenMbbbARp+xYnG7IX9
3qQYEFnQx5eeCVY0c27I2sNwlQYOKlm9hSGcRe+88S4aOmxbVFwR7yEfKEleQGrX
YG+yfV+KlYx2WEpOrzEoANQoVFKMHpT2NnIFJEG83ww/c5smZ8Y6HstJlKpGU58V
OaOMTV5C3NCxU/VpETXbfV8f16eITlPozbZsWqlImGe79iaDWcHMYkelN3UgLFgI
eH08CbLiRkfvER5gTByOpecsv0AZtg==
=H1Et
-----END PGP SIGNATURE-----payloadtree afb2019536cdbd6c78dac6ab35b1324898dc9ccc
parent 47c02af593ecae5da875dba526148ab591e05788
author Sam Kramer <skramer@palantir.com> 1678969409 +0000
committer Sam Kramer <skramer@palantir.com> 1678969409 +0000

nits nits nits
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/02c1afb542c40dd4d2f7659c226893ca0af7e2a8html_urlShttps://github.com/palantir/atlasdb/commit/02c1afb542c40dd4d2f7659c226893ca0af7e2a8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/02c1afb542c40dd4d2f7659c226893ca0af7e2a8/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j  
Sam-Kramerj  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j  h5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj  1https://api.github.com/users/Sam-Kramer/followersj  >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j  5https://api.github.com/users/Sam-Kramer/subscriptionsj  ,https://api.github.com/users/Sam-Kramer/orgsj  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj  uparents]}(j  (47c02af593ecae5da875dba526148ab591e05788j  ^https://api.github.com/repos/palantir/atlasdb/commits/47c02af593ecae5da875dba526148ab591e05788j  Shttps://github.com/palantir/atlasdb/commit/47c02af593ecae5da875dba526148ab591e05788uastats}(totalK	additionsK
	deletionsKufiles](}(j  (74577176782254379012e1999cadb8c1ea4b8edcfilename]atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/IndexTable.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/02c1afb542c40dd4d2f7659c226893ca0af7e2a8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTable.javaraw_urlhttps://github.com/palantir/atlasdb/raw/02c1afb542c40dd4d2f7659c226893ca0af7e2a8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTable.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTable.java?ref=02c1afb542c40dd4d2f7659c226893ca0af7e2a8patchXx  @@ -38,7 +38,7 @@ default void checkNameAndPrimaryTableAreNotEqual() {
                 SafeArg.of("primaryTable", primaryTableName()));
     }
 
-    static IndexTable of(String name, String primaryTable) {
-        return ImmutableIndexTable.of(name, primaryTable);
+    static ImmutableIndexTable.Builder builder() {
+        return ImmutableIndexTable.builder();
     }
 }u}(j  (e29feefdc7506942a05d1a7938b0903280f26161j  aatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/store/IndexTableTest.javaj  modifiedj  Kj  Kj!  Kj"  https://github.com/palantir/atlasdb/blob/02c1afb542c40dd4d2f7659c226893ca0af7e2a8/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTableTest.javaj$  https://github.com/palantir/atlasdb/raw/02c1afb542c40dd4d2f7659c226893ca0af7e2a8/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTableTest.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTableTest.java?ref=02c1afb542c40dd4d2f7659c226893ca0af7e2a8j(  X  @@ -31,28 +31,35 @@ public final class IndexTableTest {
 
     @Test
     public void doesNotThrowWhenNamesAreDifferent() {
-        assertThatCode(() -> IndexTable.of("foo", "bar")).doesNotThrowAnyException();
+        assertThatCode(() -> createIndexTable("foo", "bar")).doesNotThrowAnyException();
     }
 
     @Test
     public void indexTableNameIsFirstArgumentAndPrimaryTableIsSecondArgument() {
-        IndexTable indexTable = IndexTable.of(TABLE_1, TABLE_2);
+        IndexTable indexTable = createIndexTable(TABLE_1, TABLE_2);
         assertThat(indexTable.indexTableName()).isEqualTo(TABLE_1);
         assertThat(indexTable.primaryTableName()).isEqualTo(TABLE_2);
     }
 
     @Test
     public void throwsWhenIndexNameIsTheSameAsPrimary() {
-        assertThatLoggableExceptionThrownBy(() -> IndexTable.of(TABLE_1, TABLE_1))
+        assertThatLoggableExceptionThrownBy(() -> createIndexTable(TABLE_1, TABLE_1))
                 .hasMessageContaining("Index table name and primary table name are identical.")
                 .hasExactlyArgs(SafeArg.of("name", TABLE_1), SafeArg.of("primaryTable", TABLE_1));
     }
 
     @Test
     public void throwsWhenIndexNameIsTheSameAsPrimaryIgnoresCase() {
-        assertThatLoggableExceptionThrownBy(() -> IndexTable.of(TABLE_1, TABLE_1.toUpperCase(Locale.ROOT)))
+        assertThatLoggableExceptionThrownBy(() -> createIndexTable(TABLE_1, TABLE_1.toUpperCase(Locale.ROOT)))
                 .hasMessageContaining("Index table name and primary table name are identical.")
                 .hasExactlyArgs(
                         SafeArg.of("name", TABLE_1), SafeArg.of("primaryTable", TABLE_1.toUpperCase(Locale.ROOT)));
     }
+
+    private IndexTable createIndexTable(String indexTableName, String primaryTableName) {
+        return IndexTable.builder()
+                .primaryTableName(primaryTableName)
+                .indexTableName(indexTableName)
+                .build();
+    }
 }ueu(af89808d6a2aca12990cb4e0eeb283205a21df03}(sha(af89808d6a2aca12990cb4e0eeb283205a21df03node_idEC_kwDOAjP5fdoAKGFmODk4MDhkNmEyYWNhMTI5OTBjYjRlMGVlYjI4MzIwNWEyMWRmMDMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-05T19:56:41Zu	committer}(j<  Jeremy Kongj>  jkong@palantir.comj@  2023-07-05T19:56:41Zumessagespot spot spot spot spot spottree}(j4  (3576e0ebb84fa927b2d1b2d51c9f649b457bf492url`https://api.github.com/repos/palantir/atlasdb/git/trees/3576e0ebb84fa927b2d1b2d51c9f649b457bf492ujL  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/af89808d6a2aca12990cb4e0eeb283205a21df03
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSlyvkACgkQTLdFKain
zjzILwf/SLv2JVokrIDganuYCwMNlUIMhkC+cj4sjmac1fhFDj/nugUnH0oYOzkf
eh52LkTFPIINeUDaF2R5EtjBs0Vs8VFo30mORUIG5npytHkvJku4p0Xg1fSdJyV9
NCWCK4Nqo0E9chvsjfe+fi4bpAEZKhqXgYk3UWbxTb7BAsWjYcSN1oeDSwZaQfmk
9ytMvkzJUgfCxKSoEDdK7L+s+rrjx8YOUW4z79l25jOd4i5kgxf4tlJEw+AQO47A
6nPpoUMCWTNEKB9Zhgb1LIi9LrsgxC7+vThED/XxbCRLcsvdqcZ5CvAGn2t+d0AL
XyVEaaZfDSa/yy0YEHqX1CSGdDjBXg==
=dekI
-----END PGP SIGNATURE-----payloadtree 3576e0ebb84fa927b2d1b2d51c9f649b457bf492
parent 6231fb35f9403dfcc7feef9a94c3c72ab87ff0aa
author Jeremy Kong <jkong@palantir.com> 1688587001 +0100
committer Jeremy Kong <jkong@palantir.com> 1688587001 +0100

spot spot spot spot spot spot
uujL  ^https://api.github.com/repos/palantir/atlasdb/commits/af89808d6a2aca12990cb4e0eeb283205a21df03html_urlShttps://github.com/palantir/atlasdb/commit/af89808d6a2aca12990cb4e0eeb283205a21df03comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/af89808d6a2aca12990cb4e0eeb283205a21df03/commentsj:  }(login
jeremyk-91idJZ j6  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jL  'https://api.github.com/users/jeremyk-91jZ  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujB  }(j_  
jeremyk-91ja  JZ j6  MDQ6VXNlcjU5NTU1MTA=jc  3https://avatars.githubusercontent.com/u/5955510?v=4je  h5jL  'https://api.github.com/users/jeremyk-91jZ  https://github.com/jeremyk-91jh  1https://api.github.com/users/jeremyk-91/followersjj  >https://api.github.com/users/jeremyk-91/following{/other_user}jl  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jn  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jp  5https://api.github.com/users/jeremyk-91/subscriptionsjr  ,https://api.github.com/users/jeremyk-91/orgsjt  -https://api.github.com/users/jeremyk-91/reposjv  8https://api.github.com/users/jeremyk-91/events{/privacy}jx  7https://api.github.com/users/jeremyk-91/received_eventsjz  Userj|  uparents]}(j4  (6231fb35f9403dfcc7feef9a94c3c72ab87ff0aajL  ^https://api.github.com/repos/palantir/atlasdb/commits/6231fb35f9403dfcc7feef9a94c3c72ab87ff0aajZ  Shttps://github.com/palantir/atlasdb/commit/6231fb35f9403dfcc7feef9a94c3c72ab87ff0aauastats}(totalK	additionsK	deletionsKufiles]}(j4  (9b8703c2f14476d6da18077afd80bae7f16ec89bfilenamelatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/af89808d6a2aca12990cb4e0eeb283205a21df03/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/af89808d6a2aca12990cb4e0eeb283205a21df03/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=af89808d6a2aca12990cb4e0eeb283205a21df03patchX  @@ -198,21 +198,18 @@ public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
         WitnessedSingleCellReadTransactionAction readWitness = WitnessedSingleCellReadTransactionAction.of(
                 TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
         WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
-        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {
-        }))
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Expected to find a read of the summary row")
                 .hasExactlyArgs(SafeArg.of("actions", ImmutableList.of(readWitness)));
     }
 
     @Test
     public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCorrespondingPrimaryRow() {
-        List<WitnessedTransactionAction> actions = ImmutableList.of(
-                WitnessedSingleCellReadTransactionAction.of(
-                        TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()));
+        List<WitnessedTransactionAction> actions = ImmutableList.of(WitnessedSingleCellReadTransactionAction.of(
+                TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()));
         WorkflowHistory history = getWorkflowHistory(actions);
-        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {
-        }))
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Expected to find a read of a corresponding normal row")
                 .hasExactlyArgs(SafeArg.of("actions", actions));uau(19bdb8613c2edc21547ffe24172a6d18f38f33b8}(sha(19bdb8613c2edc21547ffe24172a6d18f38f33b8node_idEC_kwDOAjP5fdoAKDE5YmRiODYxM2MyZWRjMjE1NDdmZmUyNDE3MmE2ZDE4ZjM4ZjMzYjgcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-18T17:24:53Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-06-18T17:24:53Zumessagetabete kudasaitree}(j  (e7e981f7acf6e8258747ba40d5be849266659e68url`https://api.github.com/repos/palantir/atlasdb/git/trees/e7e981f7acf6e8258747ba40d5be849266659e68uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/19bdb8613c2edc21547ffe24172a6d18f38f33b8
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSPPeUACgkQTLdFKain
zjyncQgAs4uvOZqQ1TKcJiqiitgntyIzS7S3gNxopCOCL6Ehp/LlcueAQGAHx7eF
m0xnHUkrrrx/4RIrsy55pb/Okl0hOqK8LjIW2rhbEfxnYK19Q23I8ShtX6vEtxNI
nP4ZTXbNpCLYxEmOfSwKOTy0tQ82lQoHECBjqyj7ztRY+ApIWgOu9ycmj4meOpiR
GtEL4LxRSv5GwnfYfipMy0F5UVTSbxJfPqH2HecqUsrIiU1fl+wOMZGtssFUEgX6
xfYcMBVmNHa5RDFtvmt9ph0Mtoek+o6i9mbYlNldcXQKWW+ECJKUurSPYERBRlVR
pz5dSFeoRBO/owtHC2oekVhew57P0A==
=a4kk
-----END PGP SIGNATURE-----payloadtree e7e981f7acf6e8258747ba40d5be849266659e68
parent becbd340e83ac88c06dc75e5634fa70b7fd6b146
author Jeremy Kong <jkong@palantir.com> 1687109093 +0800
committer Jeremy Kong <jkong@palantir.com> 1687109093 +0800

tabete kudasai
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/19bdb8613c2edc21547ffe24172a6d18f38f33b8html_urlShttps://github.com/palantir/atlasdb/commit/19bdb8613c2edc21547ffe24172a6d18f38f33b8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/19bdb8613c2edc21547ffe24172a6d18f38f33b8/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j  
jeremyk-91j  JZ j  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents]}(j  (becbd340e83ac88c06dc75e5634fa70b7fd6b146j  ^https://api.github.com/repos/palantir/atlasdb/commits/becbd340e83ac88c06dc75e5634fa70b7fd6b146j  Shttps://github.com/palantir/atlasdb/commit/becbd340e83ac88c06dc75e5634fa70b7fd6b146uastats}(totalK	additionsK		deletionsK	ufiles](}(j  (e4c511318cb07a7f65649270dae64ac1bd7a891afilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj
  Kj  KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/19bdb8613c2edc21547ffe24172a6d18f38f33b8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/19bdb8613c2edc21547ffe24172a6d18f38f33b8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=19bdb8613c2edc21547ffe24172a6d18f38f33b8patchX
  @@ -778,7 +778,7 @@ protected Map.Entry<byte[], RowColumnRangeIterator> computeNext() {
                     protected Map.Entry<Cell, Value> computeNext() {
                         if (!peekableRawResults.hasNext()
                                 || !Arrays.equals(
-                                peekableRawResults.peek().getKey().getRowName(), nextRowName)) {
+                                        peekableRawResults.peek().getKey().getRowName(), nextRowName)) {
                             return endOfData();
                         }
                         return peekableRawResults.next();
@@ -1175,7 +1175,7 @@ private List<Map.Entry<Cell, byte[]>> getPostFilteredWithLocalWrites(
                 postFiltered.entrySet(),
                 Predicates.compose(Predicates.in(prePostFilterCells.keySet()), MapEntries.getKeyFunction()));
         Collection<Map.Entry<Cell, byte[]>> localWritesInRange = getLocalWritesForRange(
-                tableRef, rangeRequest.getStartInclusive(), endRowExclusive, rangeRequest.getColumnNames())
+                        tableRef, rangeRequest.getStartInclusive(), endRowExclusive, rangeRequest.getColumnNames())
                 .entrySet();
         return mergeInLocalWrites(
                 tableRef, postFilteredCells.iterator(), localWritesInRange.iterator(), rangeRequest.isReverse());
@@ -1212,9 +1212,9 @@ private <K extends Exception> boolean getBatchingVisitableFromIterator(
             int preFilterBatchSize)
             throws K {
         try (ClosableIterator<RowResult<byte[]>> postFilterIterator =
-                     postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
+                postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
             Iterator<RowResult<byte[]>> localWritesInRange = Cells.createRowView(getLocalWritesForRange(
-                    tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
+                            tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
                     .entrySet());
             Iterator<RowResult<byte[]>> mergeIterators =
                     mergeInLocalWritesRows(postFilterIterator, localWritesInRange, range.isReverse(), tableRef);
@@ -2067,7 +2067,7 @@ private void timedAndTraced(String timerName, Runnable runnable) {
 
     private <T> T timedAndTraced(String timerName, Supplier<T> supplier) {
         try (Timer.Context timer = getTimer(timerName).time();
-             CloseableTracer tracer = CloseableTracer.startSpan(timerName)) {
+                CloseableTracer tracer = CloseableTracer.startSpan(timerName)) {
             return supplier.get();
         }
     }u}(j  (da631510690b5ae958ca8cc33f6dc2b7596a0d11j  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javaj  modifiedj
  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/19bdb8613c2edc21547ffe24172a6d18f38f33b8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj  https://github.com/palantir/atlasdb/raw/19bdb8613c2edc21547ffe24172a6d18f38f33b8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=19bdb8613c2edc21547ffe24172a6d18f38f33b8j  X  @@ -133,11 +133,11 @@ static boolean shouldWriteToFirstCell(int taskIndex) {
     private static List<TransactionAction> createCellUpdateActions(int taskIndex, String tableName) {
         return shouldWriteToFirstCell(taskIndex)
                 ? ImmutableList.of(
-                WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
-                DeleteTransactionAction.of(tableName, SECOND_CELL))
+                        WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
+                        DeleteTransactionAction.of(tableName, SECOND_CELL))
                 : ImmutableList.of(
-                DeleteTransactionAction.of(tableName, FIRST_CELL),
-                WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
+                        DeleteTransactionAction.of(tableName, FIRST_CELL),
+                        WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
     }
 
     private static List<TransactionAction> createCellReadActions(String tableName) {ueu(5158e50de9bbf05658b1323254585e911a0577cd}(sha(5158e50de9bbf05658b1323254585e911a0577cdnode_idEC_kwDOAjP5fdoAKDUxNThlNTBkZTliYmYwNTY1OGIxMzIzMjU0NTg1ZTkxMWEwNTc3Y2Qcommit}(author}(nameMohammed Daudaliemailmdaudali@palantir.comdate2023-03-23T16:09:25Zu	committer}(j2  Mohammed Daudalij4  mdaudali@palantir.comj6  2023-03-23T16:09:25Zumessagesuppress finalize warningtree}(j*  (01abcd61c62b3d5eda5295cb247b26ce8683b606url`https://api.github.com/repos/palantir/atlasdb/git/trees/01abcd61c62b3d5eda5295cb247b26ce8683b606ujB  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5158e50de9bbf05658b1323254585e911a0577cd
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE85NpmxiQII63+jWv1DJ7K5YIya0FAmQcebUACgkQ1DJ7K5YI
ya3DxwgAjq+p90sXFqppX5r01ZIGSQSljBftWZ9KkybgzE4DRJU5j3fi6n3BnqWw
q7KVyjgTOy6KngRm8gX30uVmzJbgkZ0b5Wy/EO/b06LUV9/H4GWg+Vm+Rts+0Ral
w0k175Oggmpc2PmhcvlxOFBlULsds8+LVQw389dBxltc0vSewRuDv1aI2vmv/4Lt
379jmw7a33Pk3azyvt2CCGmV0vxhylXL/SDTJt+iozkv3O7lAOBwH3U3tyOvE/TU
bHYaNAsKGQihwbBL+s6WaQJ+q6ahRo0m2+W+/cQodbkB+XqEhBULOzkL8m7zIvau
vop9Fc6GYyJdERoFNN2QAqWabHYPXw==
=rqZx
-----END PGP SIGNATURE-----payloadtree 01abcd61c62b3d5eda5295cb247b26ce8683b606
parent dd680dd2303e9c91b574242d075af181d5ff19f6
author Mohammed Daudali <mdaudali@palantir.com> 1679587765 +0000
committer Mohammed Daudali <mdaudali@palantir.com> 1679587765 +0000

suppress finalize warning
uujB  ^https://api.github.com/repos/palantir/atlasdb/commits/5158e50de9bbf05658b1323254585e911a0577cdhtml_urlShttps://github.com/palantir/atlasdb/commit/5158e50de9bbf05658b1323254585e911a0577cdcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5158e50de9bbf05658b1323254585e911a0577cd/commentsj0  }(loginmdaudaliidJ j,  MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5jB  %https://api.github.com/users/mdaudalijP  https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminuj8  }(jU  mdaudalijW  J j,  MDQ6VXNlcjE4MTI3NjQ=jY  3https://avatars.githubusercontent.com/u/1812764?v=4j[  h5jB  %https://api.github.com/users/mdaudalijP  https://github.com/mdaudalij^  /https://api.github.com/users/mdaudali/followersj`  <https://api.github.com/users/mdaudali/following{/other_user}jb  5https://api.github.com/users/mdaudali/gists{/gist_id}jd  <https://api.github.com/users/mdaudali/starred{/owner}{/repo}jf  3https://api.github.com/users/mdaudali/subscriptionsjh  *https://api.github.com/users/mdaudali/orgsjj  +https://api.github.com/users/mdaudali/reposjl  6https://api.github.com/users/mdaudali/events{/privacy}jn  5https://api.github.com/users/mdaudali/received_eventsjp  Userjr  uparents]}(j*  (dd680dd2303e9c91b574242d075af181d5ff19f6jB  ^https://api.github.com/repos/palantir/atlasdb/commits/dd680dd2303e9c91b574242d075af181d5ff19f6jP  Shttps://github.com/palantir/atlasdb/commit/dd680dd2303e9c91b574242d075af181d5ff19f6uastats}(totalK	additionsK	deletionsKufiles]}(j*  (68905636f13bfb9bbe996c650e7245eecc633518filenameNlock-api/src/main/java/com/palantir/lock/client/LockRefreshingLockService.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5158e50de9bbf05658b1323254585e911a0577cd/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FLockRefreshingLockService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5158e50de9bbf05658b1323254585e911a0577cd/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FLockRefreshingLockService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FLockRefreshingLockService.java?ref=5158e50de9bbf05658b1323254585e911a0577cdpatchX  @@ -164,7 +164,8 @@ public boolean unlockAndFreeze(HeldLocksToken token) {
     }
 
     @Override
-    @SuppressWarnings("checkstyle:NoFinalizer") // TODO (jkong): Can we safely remove this without breaking things?
+    @SuppressWarnings({"checkstyle:NoFinalizer", "Finalize"}) // TODO (jkong): Can we safely remove this without
+    // breaking things?
     protected void finalize() throws Throwable {
         super.finalize();
         if (!isClosed) {uau(9bf334ac7596fd426fb24ce61e52d7131f9bf51f}(sha(9bf334ac7596fd426fb24ce61e52d7131f9bf51fnode_idEC_kwDOAjP5fdoAKDliZjMzNGFjNzU5NmZkNDI2ZmIyNGNlNjFlNTJkNzEzMWY5YmY1MWYcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-07-03T13:09:22Zu	committer}(j  
svc-changelogj  svc-changelog@palantir.comj  2023-07-03T13:09:22ZumessageAdd generated changelog entriestree}(j  (d32f977cf33ede55910b94f8a8665e975bca97cdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/d32f977cf33ede55910b94f8a8665e975bca97cduj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9bf334ac7596fd426fb24ce61e52d7131f9bf51f
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSiyIIJEHYaJX37fAFQAAD9cAEA5oktvL4Di6J1l8yguk8S44yy
h77UjGB46dcJZ3tTMj4A/R90RkmnRpczWshvxBKvW7MgWXV6Iay3le5Lk75vj1la
=RE8H
-----END PGP SIGNATURE-----payloadX  tree d32f977cf33ede55910b94f8a8665e975bca97cd
parent 3bdc23fe349e4ceb2c708b9ca15686869a8dc673
author svc-changelog <svc-changelog@palantir.com> 1688389762 +0000
committer svc-changelog <svc-changelog@palantir.com> 1688389762 +0000

Add generated changelog entriesuuj  ^https://api.github.com/repos/palantir/atlasdb/commits/9bf334ac7596fd426fb24ce61e52d7131f9bf51fhtml_urlShttps://github.com/palantir/atlasdb/commit/9bf334ac7596fd426fb24ce61e52d7131f9bf51fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9bf334ac7596fd426fb24ce61e52d7131f9bf51f/commentsj  }(login
svc-changelogidJ#j  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j  *https://api.github.com/users/svc-changelogj   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj  }(j  
svc-changelogj  J#j  MDQ6VXNlcjg0MDc3NjAzj  4https://avatars.githubusercontent.com/u/84077603?v=4j  h5j  *https://api.github.com/users/svc-changelogj   https://github.com/svc-changelogj  4https://api.github.com/users/svc-changelog/followersj  Ahttps://api.github.com/users/svc-changelog/following{/other_user}j  :https://api.github.com/users/svc-changelog/gists{/gist_id}j  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j  8https://api.github.com/users/svc-changelog/subscriptionsj  /https://api.github.com/users/svc-changelog/orgsj  0https://api.github.com/users/svc-changelog/reposj  ;https://api.github.com/users/svc-changelog/events{/privacy}j  :https://api.github.com/users/svc-changelog/received_eventsj  Userj  uparents]}(j  (3bdc23fe349e4ceb2c708b9ca15686869a8dc673j  ^https://api.github.com/repos/palantir/atlasdb/commits/3bdc23fe349e4ceb2c708b9ca15686869a8dc673j  Shttps://github.com/palantir/atlasdb/commit/3bdc23fe349e4ceb2c708b9ca15686869a8dc673uastats}(totalK	additionsK	deletionsK ufiles]}(j  (e0b05befdf4bf72e70b07846fc766f84e4b79eb4filename$changelog/@unreleased/pr-6645.v2.ymlstatusaddedj  Kj  K changesKblob_url|https://github.com/palantir/atlasdb/blob/9bf334ac7596fd426fb24ce61e52d7131f9bf51f/changelog%2F%40unreleased%2Fpr-6645.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/9bf334ac7596fd426fb24ce61e52d7131f9bf51f/changelog%2F%40unreleased%2Fpr-6645.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6645.v2.yml?ref=9bf334ac7596fd426fb24ce61e52d7131f9bf51fpatch@@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Only allow range scan max batch size to be a factor of 8 of the batch
+    hint.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6645uau(4481513e0871f14a15b853c024d96ebcc4bc20c6}(sha(4481513e0871f14a15b853c024d96ebcc4bc20c6node_idEC_kwDOAjP5fdoAKDQ0ODE1MTNlMDg3MWYxNGExNWI4NTNjMDI0ZDk2ZWJjYzRiYzIwYzYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-12T19:44:20Zu	committer}(j   Jeremy Kongj"  jkong@palantir.comj$  2023-06-12T19:44:20Zumessage3my shadow's the only thing that's walking beside metree}(j  (f54a198bcaa66eec41760adc42af82846f9f35e5url`https://api.github.com/repos/palantir/atlasdb/git/trees/f54a198bcaa66eec41760adc42af82846f9f35e5uj0  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4481513e0871f14a15b853c024d96ebcc4bc20c6
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSHdZQACgkQTLdFKain
zjzQlwgA4BES0Vlf9GHElgdwPaCZF0C0mDzYEMLUoLWpKL3wwFLPwZ2337UGosyN
XBGSUKl7kCAmRBalqkgx3+/VrMwzU7RdpcopcUyihefawBgeagqm4Rz0WResqkHG
oPoWrqkO9MCJWzxT8T+98oBPSkh/lEaPYnldJVq4hIK26A89+SWfAvBoAVYTAtCk
iDGnzE2qjGYjzpaPHMM5GTcdjdtgPM/CKIYRKHlY44U8AmrZ8UKXNYl1nR8LIHUf
LLz67gtFxK0o4bVNsqfATJh8GgRekVlS9fj/eMcZzDBdUSMWJM71fhwz7hgL29id
DwW3CQ/imYCQiNkqv9wp3yI9SYNk5Q==
=xizr
-----END PGP SIGNATURE-----payloadX  tree f54a198bcaa66eec41760adc42af82846f9f35e5
parent facf72050e4d0721f221bfcc8019ff4094ea4cc5
author Jeremy Kong <jkong@palantir.com> 1686599060 +0200
committer Jeremy Kong <jkong@palantir.com> 1686599060 +0200

my shadow's the only thing that's walking beside me
uuj0  ^https://api.github.com/repos/palantir/atlasdb/commits/4481513e0871f14a15b853c024d96ebcc4bc20c6html_urlShttps://github.com/palantir/atlasdb/commit/4481513e0871f14a15b853c024d96ebcc4bc20c6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4481513e0871f14a15b853c024d96ebcc4bc20c6/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j0  'https://api.github.com/users/jeremyk-91j>  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj&  }(jC  
jeremyk-91jE  JZ j  MDQ6VXNlcjU5NTU1MTA=jG  3https://avatars.githubusercontent.com/u/5955510?v=4jI  h5j0  'https://api.github.com/users/jeremyk-91j>  https://github.com/jeremyk-91jL  1https://api.github.com/users/jeremyk-91/followersjN  >https://api.github.com/users/jeremyk-91/following{/other_user}jP  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jR  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jT  5https://api.github.com/users/jeremyk-91/subscriptionsjV  ,https://api.github.com/users/jeremyk-91/orgsjX  -https://api.github.com/users/jeremyk-91/reposjZ  8https://api.github.com/users/jeremyk-91/events{/privacy}j\  7https://api.github.com/users/jeremyk-91/received_eventsj^  Userj`  uparents]}(j  (facf72050e4d0721f221bfcc8019ff4094ea4cc5j0  ^https://api.github.com/repos/palantir/atlasdb/commits/facf72050e4d0721f221bfcc8019ff4094ea4cc5j>  Shttps://github.com/palantir/atlasdb/commit/facf72050e4d0721f221bfcc8019ff4094ea4cc5uastats}(totalK	additionsKp	deletionsKrufiles](}(j  (56a9db3e00f539ecf8c28918f7ca53a72fe709f3filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedjz  Kj{  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/4481513e0871f14a15b853c024d96ebcc4bc20c6/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4481513e0871f14a15b853c024d96ebcc4bc20c6/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=4481513e0871f14a15b853c024d96ebcc4bc20c6patchX  @@ -78,7 +78,6 @@
 import com.palantir.atlasdb.keyvalue.impl.RowResults;
 import com.palantir.atlasdb.logging.LoggingArgs;
 import com.palantir.atlasdb.sweep.queue.MultiTableSweepQueueWriter;
-import com.palantir.atlasdb.table.description.SweepStrategy;
 import com.palantir.atlasdb.table.description.SweeperStrategy;
 import com.palantir.atlasdb.table.description.exceptions.AtlasDbConstraintException;
 import com.palantir.atlasdb.tracing.TraceStatistics;
@@ -781,7 +780,7 @@ protected Map.Entry<byte[], RowColumnRangeIterator> computeNext() {
                     protected Map.Entry<Cell, Value> computeNext() {
                         if (!peekableRawResults.hasNext()
                                 || !Arrays.equals(
-                                peekableRawResults.peek().getKey().getRowName(), nextRowName)) {
+                                        peekableRawResults.peek().getKey().getRowName(), nextRowName)) {
                             return endOfData();
                         }
                         return peekableRawResults.next();
@@ -1178,7 +1177,7 @@ private List<Map.Entry<Cell, byte[]>> getPostFilteredWithLocalWrites(
                 postFiltered.entrySet(),
                 Predicates.compose(Predicates.in(prePostFilterCells.keySet()), MapEntries.getKeyFunction()));
         Collection<Map.Entry<Cell, byte[]>> localWritesInRange = getLocalWritesForRange(
-                tableRef, rangeRequest.getStartInclusive(), endRowExclusive, rangeRequest.getColumnNames())
+                        tableRef, rangeRequest.getStartInclusive(), endRowExclusive, rangeRequest.getColumnNames())
                 .entrySet();
         return mergeInLocalWrites(
                 tableRef, postFilteredCells.iterator(), localWritesInRange.iterator(), rangeRequest.isReverse());
@@ -1215,9 +1214,9 @@ private <K extends Exception> boolean getBatchingVisitableFromIterator(
             int preFilterBatchSize)
             throws K {
         try (ClosableIterator<RowResult<byte[]>> postFilterIterator =
-                     postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
+                postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
             Iterator<RowResult<byte[]>> localWritesInRange = Cells.createRowView(getLocalWritesForRange(
-                    tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
+                            tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
                     .entrySet());
             Iterator<RowResult<byte[]>> mergeIterators =
                     mergeInLocalWritesRows(postFilterIterator, localWritesInRange, range.isReverse(), tableRef);
@@ -2070,7 +2069,7 @@ private void timedAndTraced(String timerName, Runnable runnable) {
 
     private <T> T timedAndTraced(String timerName, Supplier<T> supplier) {
         try (Timer.Context timer = getTimer(timerName).time();
-             CloseableTracer tracer = CloseableTracer.startSpan(timerName)) {
+                CloseableTracer tracer = CloseableTracer.startSpan(timerName)) {
             return supplier.get();
         }
     }u}(j  (2abf4f0fc489eba4d515c70a858c9aaa161b584aj  latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj  modifiedjz  Kkj{  Klj  Kj  https://github.com/palantir/atlasdb/blob/4481513e0871f14a15b853c024d96ebcc4bc20c6/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj  https://github.com/palantir/atlasdb/raw/4481513e0871f14a15b853c024d96ebcc4bc20c6/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=4481513e0871f14a15b853c024d96ebcc4bc20c6j  X<  @@ -33,23 +33,18 @@
 import com.palantir.atlasdb.workload.resource.AntithesisCassandraSidecarResource;
 import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
-import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
-import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
-import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflows;
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
 import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
-import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflows;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
-import com.palantir.atlasdb.workload.workflow.ring.RingWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
 import com.palantir.conjure.java.serialization.ObjectMappers;
@@ -183,109 +178,113 @@ private void waitForTransactionStoreFactoryToBeInitialized(AtlasDbTransactionSto
         System.exit(1);
     }
 
-//    private WorkflowAndInvariants<Workflow> createTransientRowsWorkflowValidator(
-//            AtlasDbTransactionStoreFactory transactionStoreFactory,
-//            TransientRowsWorkflowConfiguration workflowConfig,
-//            LifecycleEnvironment lifecycle) {
-//        ExecutorService executorService =
-//                createExecutorService(workflowConfig, lifecycle, TransientRowsWorkflows.class);
-//        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
-//                Map.of(
-//                        workflowConfig.tableConfiguration().tableName(),
-//                        workflowConfig.tableConfiguration().isolationLevel()),
-//                Set.of());
-//        return WorkflowAndInvariants.builder()
-//                .workflow(TransientRowsWorkflows.create(
-//                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
-//                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
-//                        TransientRowsWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
-//                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
-//                .addInvariantReporters(TransientRowsWorkflows.getSummaryLogInvariantReporter(workflowConfig))
-//                .build();
-//    }
-//
-//    private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
-//            AtlasDbTransactionStoreFactory transactionStoreFactory,
-//            SingleBusyCellWorkflowConfiguration workflowConfig,
-//            LifecycleEnvironment lifecycle) {
-//        ExecutorService readExecutor = lifecycle
-//                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-read")
-//                .minThreads(workflowConfig.maxThreadCount() / 2)
-//                .maxThreads(workflowConfig.maxThreadCount() / 2)
-//                .build();
-//        ExecutorService writeExecutor = lifecycle
-//                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-write")
-//                .minThreads(workflowConfig.maxThreadCount() / 2)
-//                .maxThreads(workflowConfig.maxThreadCount() / 2)
-//                .build();
-//        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
-//                Map.of(
-//                        workflowConfig.tableConfiguration().tableName(),
-//                        workflowConfig.tableConfiguration().isolationLevel()),
-//                Set.of());
-//        return WorkflowAndInvariants.of(
-//                SingleBusyCellWorkflows.create(
-//                        transactionStore,
-//                        workflowConfig,
-//                        MoreExecutors.listeningDecorator(readExecutor),
-//                        MoreExecutors.listeningDecorator(writeExecutor)),
-//                new DurableWritesInvariantMetricReporter(
-//                        SingleBusyCellWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)),
-//                SerializableInvariantLogReporter.INSTANCE);
-//    }
-//
-//    private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
-//            AtlasDbTransactionStoreFactory transactionStoreFactory,
-//            RingWorkflowConfiguration workflowConfig,
-//            LifecycleEnvironment lifecycle) {
-//        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RingWorkflows.class);
-//        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
-//                Map.of(
-//                        workflowConfig.tableConfiguration().tableName(),
-//                        workflowConfig.tableConfiguration().isolationLevel()),
-//                Set.of());
-//        return WorkflowAndInvariants.of(RingWorkflows.create(
-//                transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)));
-//    }
-//
-//    private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator(
-//            AtlasDbTransactionStoreFactory transactionStoreFactory,
-//            SingleRowTwoCellsWorkflowConfiguration workflowConfig,
-//            LifecycleEnvironment lifecycle) {
-//        ExecutorService executorService =
-//                createExecutorService(workflowConfig, lifecycle, SingleRowTwoCellsWorkflows.class);
-//        TransactionStore transactionStore = transactionStoreFactory.create(
-//                Map.of(
-//                        workflowConfig.tableConfiguration().tableName(),
-//                        workflowConfig.tableConfiguration().isolationLevel()),
-//                Set.of());
-//        return WorkflowAndInvariants.builder()
-//                .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
-//                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
-//                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
-//                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
-//                        DurableWritesMetrics.of(taggedMetricRegistry)))
-//                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
-//                .build();
-//    }
-//
-//    private WorkflowAndInvariants<Workflow> createBankBalanceWorkflow(
-//            AtlasDbTransactionStoreFactory transactionStoreFactory,
-//            BankBalanceWorkflowConfiguration workflowConfig,
-//            LifecycleEnvironment lifecycle) {
-//        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, BankBalanceWorkflows.class);
-//        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
-//                Map.of(
-//                        workflowConfig.tableConfiguration().tableName(),
-//                        workflowConfig.tableConfiguration().isolationLevel()),
-//                Set.of());
-//        return WorkflowAndInvariants.builder()
-//                .workflow(BankBalanceWorkflows.create(
-//                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
-//                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
-//                        BankBalanceWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
-//                .build();
-//    }
+    //    private WorkflowAndInvariants<Workflow> createTransientRowsWorkflowValidator(
+    //            AtlasDbTransactionStoreFactory transactionStoreFactory,
+    //            TransientRowsWorkflowConfiguration workflowConfig,
+    //            LifecycleEnvironment lifecycle) {
+    //        ExecutorService executorService =
+    //                createExecutorService(workflowConfig, lifecycle, TransientRowsWorkflows.class);
+    //        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+    //                Map.of(
+    //                        workflowConfig.tableConfiguration().tableName(),
+    //                        workflowConfig.tableConfiguration().isolationLevel()),
+    //                Set.of());
+    //        return WorkflowAndInvariants.builder()
+    //                .workflow(TransientRowsWorkflows.create(
+    //                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+    //                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+    //                        TransientRowsWorkflows.class.getSimpleName(),
+    // DurableWritesMetrics.of(taggedMetricRegistry)))
+    //                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+    //                .addInvariantReporters(TransientRowsWorkflows.getSummaryLogInvariantReporter(workflowConfig))
+    //                .build();
+    //    }
+    //
+    //    private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
+    //            AtlasDbTransactionStoreFactory transactionStoreFactory,
+    //            SingleBusyCellWorkflowConfiguration workflowConfig,
+    //            LifecycleEnvironment lifecycle) {
+    //        ExecutorService readExecutor = lifecycle
+    //                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-read")
+    //                .minThreads(workflowConfig.maxThreadCount() / 2)
+    //                .maxThreads(workflowConfig.maxThreadCount() / 2)
+    //                .build();
+    //        ExecutorService writeExecutor = lifecycle
+    //                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-write")
+    //                .minThreads(workflowConfig.maxThreadCount() / 2)
+    //                .maxThreads(workflowConfig.maxThreadCount() / 2)
+    //                .build();
+    //        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+    //                Map.of(
+    //                        workflowConfig.tableConfiguration().tableName(),
+    //                        workflowConfig.tableConfiguration().isolationLevel()),
+    //                Set.of());
+    //        return WorkflowAndInvariants.of(
+    //                SingleBusyCellWorkflows.create(
+    //                        transactionStore,
+    //                        workflowConfig,
+    //                        MoreExecutors.listeningDecorator(readExecutor),
+    //                        MoreExecutors.listeningDecorator(writeExecutor)),
+    //                new DurableWritesInvariantMetricReporter(
+    //                        SingleBusyCellWorkflows.class.getSimpleName(),
+    // DurableWritesMetrics.of(taggedMetricRegistry)),
+    //                SerializableInvariantLogReporter.INSTANCE);
+    //    }
+    //
+    //    private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
+    //            AtlasDbTransactionStoreFactory transactionStoreFactory,
+    //            RingWorkflowConfiguration workflowConfig,
+    //            LifecycleEnvironment lifecycle) {
+    //        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RingWorkflows.class);
+    //        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+    //                Map.of(
+    //                        workflowConfig.tableConfiguration().tableName(),
+    //                        workflowConfig.tableConfiguration().isolationLevel()),
+    //                Set.of());
+    //        return WorkflowAndInvariants.of(RingWorkflows.create(
+    //                transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)));
+    //    }
+    //
+    //    private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator(
+    //            AtlasDbTransactionStoreFactory transactionStoreFactory,
+    //            SingleRowTwoCellsWorkflowConfiguration workflowConfig,
+    //            LifecycleEnvironment lifecycle) {
+    //        ExecutorService executorService =
+    //                createExecutorService(workflowConfig, lifecycle, SingleRowTwoCellsWorkflows.class);
+    //        TransactionStore transactionStore = transactionStoreFactory.create(
+    //                Map.of(
+    //                        workflowConfig.tableConfiguration().tableName(),
+    //                        workflowConfig.tableConfiguration().isolationLevel()),
+    //                Set.of());
+    //        return WorkflowAndInvariants.builder()
+    //                .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
+    //                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+    //                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+    //                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
+    //                        DurableWritesMetrics.of(taggedMetricRegistry)))
+    //                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+    //                .build();
+    //    }
+    //
+    //    private WorkflowAndInvariants<Workflow> createBankBalanceWorkflow(
+    //            AtlasDbTransactionStoreFactory transactionStoreFactory,
+    //            BankBalanceWorkflowConfiguration workflowConfig,
+    //            LifecycleEnvironment lifecycle) {
+    //        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle,
+    // BankBalanceWorkflows.class);
+    //        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+    //                Map.of(
+    //                        workflowConfig.tableConfiguration().tableName(),
+    //                        workflowConfig.tableConfiguration().isolationLevel()),
+    //                Set.of());
+    //        return WorkflowAndInvariants.builder()
+    //                .workflow(BankBalanceWorkflows.create(
+    //                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+    //                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+    //                        BankBalanceWorkflows.class.getSimpleName(),
+    // DurableWritesMetrics.of(taggedMetricRegistry)))
+    //                .build();
+    //    }
 
     private WorkflowAndInvariants<Workflow> createRandomWorkflow(
             AtlasDbTransactionStoreFactory transactionStoreFactory,ueu     (cdc5e536abdb53259045abaaa8470b881700ac00}(sha(cdc5e536abdb53259045abaaa8470b881700ac00node_idEC_kwDOAjP5fdoAKGNkYzVlNTM2YWJkYjUzMjU5MDQ1YWJhYWE4NDcwYjg4MTcwMGFjMDAcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-20T19:07:18Zu	committer}(j  
Sam Kramerj  skramer@palantir.comj  2023-06-20T19:07:18Zumessage-60 secs for gc grace + add config for wd oncetree}(j  (88bc9649b6377ccc2af89b41a66bd6c6f58346b1url`https://api.github.com/repos/palantir/atlasdb/git/trees/88bc9649b6377ccc2af89b41a66bd6c6f58346b1uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cdc5e536abdb53259045abaaa8470b881700ac00
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSR+OYACgkQmPPOpKR4
XS1b9QgAmphfU7p6Zoduem0VZ1TxptdbQn2uy0Q7N3RK+0O9V14iDxvclbN3qT0k
Brz8HYdFFdFIfHazBtwUKDrtI5D/nMzOR6DbOnEeNh+5Nuf/UPj+bmtLe+XcxCit
swodty/yPwnt3qyLH4QWjRGCKI2rL0XfoRK0+rLYz60VHq3wQw9qCtJ7k1VP3jhv
KKRjIR5bQK9PmIp1duBEtXZ/myTag2BaAL3xZVt667jJo0RedO+ycStSPBqhlFHS
t8WzW2c8RJOdJu31yHUpsnLkf0V0BnmabxBqWFr5rj5refrjILsYuUBK0glOESIV
powq0fIvfZ/FeyNMAy7+3nVvE6uvvg==
=GQqb
-----END PGP SIGNATURE-----payloadX  tree 88bc9649b6377ccc2af89b41a66bd6c6f58346b1
parent 9f8e07524f4089259fc5fae79cf0cc578414558b
author Sam Kramer <skramer@palantir.com> 1687288038 +0100
committer Sam Kramer <skramer@palantir.com> 1687288038 +0100

60 secs for gc grace + add config for wd once
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/cdc5e536abdb53259045abaaa8470b881700ac00html_urlShttps://github.com/palantir/atlasdb/commit/cdc5e536abdb53259045abaaa8470b881700ac00comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cdc5e536abdb53259045abaaa8470b881700ac00/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j  
Sam-Kramerj  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j  h5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj  1https://api.github.com/users/Sam-Kramer/followersj  >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j  5https://api.github.com/users/Sam-Kramer/subscriptionsj  ,https://api.github.com/users/Sam-Kramer/orgsj  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj  uparents]}(j  (9f8e07524f4089259fc5fae79cf0cc578414558bj  ^https://api.github.com/repos/palantir/atlasdb/commits/9f8e07524f4089259fc5fae79cf0cc578414558bj  Shttps://github.com/palantir/atlasdb/commit/9f8e07524f4089259fc5fae79cf0cc578414558buastats}(totalK	additionsK	deletionsKufiles](}(j  (1b006e4594948674ca4a6b5c53384f6707224de6filenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/cdc5e536abdb53259045abaaa8470b881700ac00/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/cdc5e536abdb53259045abaaa8470b881700ac00/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=cdc5e536abdb53259045abaaa8470b881700ac00patchX,  @@ -129,8 +129,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         ExecutorService antithesisWorkflowRunnerExecutorService = environment
                 .lifecycle()
                 .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
-                .minThreads(8)
-                .maxThreads(8)
+                .minThreads(4)
+                .maxThreads(4)
                 .build();
 
         MetricsManager metricsManager = MetricsManagers.of(environment.metrics(), taggedMetricRegistry);u}(j  (4cd63bc7a837d9125b78d17a9da0491aa4140ae7j  Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/cdc5e536abdb53259045abaaa8470b881700ac00/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj  https://github.com/palantir/atlasdb/raw/cdc5e536abdb53259045abaaa8470b881700ac00/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=cdc5e536abdb53259045abaaa8470b881700ac00j
  Xq  @@ -48,4 +48,10 @@ install:
     iterationCount: 100
     type: single-busy-cell-reads-no-touch
     maxThreadCount: 2
+  writeOnceDeleteOnceConfig:
+    tableConfiguration:
+      tableName: write-once-delete-once-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: write-once-delete-once
   exitAfterRunning: false
\ No newline at end of fileu}(j  (fbcdf7aa235656e485c4e3e935f1a5c896be2a0aj  Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/cdc5e536abdb53259045abaaa8470b881700ac00/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj  https://github.com/palantir/atlasdb/raw/cdc5e536abdb53259045abaaa8470b881700ac00/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=cdc5e536abdb53259045abaaa8470b881700ac00j
  XG  @@ -37,7 +37,7 @@ install:
         password: cassandra
       ssl: false
       replicationFactor: 3
-      gcGraceSeconds: 300
+      gcGraceSeconds: 60
     targetedSweep:
       enableSweepQueueWrites: true
     namespace: workload_server
@@ -85,4 +85,10 @@ install:
     iterationCount: 100
     type: single-busy-cell-reads-no-touch
     maxThreadCount: 2
+  writeOnceDeleteOnceConfig:
+    tableConfiguration:
+      tableName: write_once_delete_once_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: write-once-delete-once
   exitAfterRunning: trueu}(j  (b98150c940857f6d8db8540b9df25fe3acccc161j  Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/cdc5e536abdb53259045abaaa8470b881700ac00/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj  https://github.com/palantir/atlasdb/raw/cdc5e536abdb53259045abaaa8470b881700ac00/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=cdc5e536abdb53259045abaaa8470b881700ac00j
  Xp  @@ -49,4 +49,10 @@ install:
     iterationCount: 100
     type: single-busy-cell-reads-no-touch
     maxThreadCount: 2
+  writeOnceDeleteOnceConfig:
+    tableConfiguration:
+      tableName: write-once-delete-once-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: write-once-delete-once
   exitAfterRunning: true
\ No newline at end of fileu}(j  (713051fdf3f114900b9edef8efa7de047a7cdf39j  zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflowConfiguration.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/cdc5e536abdb53259045abaaa8470b881700ac00/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowConfiguration.javaj  https://github.com/palantir/atlasdb/raw/cdc5e536abdb53259045abaaa8470b881700ac00/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowConfiguration.java?ref=cdc5e536abdb53259045abaaa8470b881700ac00j
  X?  @@ -23,8 +23,8 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-@JsonSerialize(as = ImmutableTransientRowsWorkflowConfiguration.class)
-@JsonDeserialize(as = ImmutableTransientRowsWorkflowConfiguration.class)
+@JsonSerialize(as = ImmutableWriteOnceDeleteOnceWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableWriteOnceDeleteOnceWorkflowConfiguration.class)
 @JsonTypeName(WriteOnceDeleteOnceWorkflowConfiguration.TYPE)
 public interface WriteOnceDeleteOnceWorkflowConfiguration extends WorkflowConfiguration {
     String TYPE = "write-once-delete-once";ueu(e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dff}(sha(e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dffnode_idEC_kwDOAjP5fdoAKGU3YTk4YWNiMjZmZTgyZTViYTNhMGQyZWQxNDgwZDBhYTlhMDNkZmYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-07-17T14:25:17Zu	committer}(j6  
Sam Kramerj8  skramer@palantir.comj:  2023-07-17T14:25:17ZumessageAadd availability requirement functionality, add methods for usagetree}(j.  (329d6b50aeafac99326bbf9dd6701a8e0116d025url`https://api.github.com/repos/palantir/atlasdb/git/trees/329d6b50aeafac99326bbf9dd6701a8e0116d025ujF  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dff
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmS1T04ACgkQmPPOpKR4
XS22eggArwcWeoe6rh/jXoDGI8NyJ+rbjFXttnXqgX84g/Vk4fRPNMRDHL7Ud9a1
w/TT3twNsMcQupC0PqedQlbfPbUT2zCrtw6zik7NvaoJJfv+yO1Be4tpRG/fdGhk
YNnyU/2x5zaUFevqRUDwZmsIz6i37MBuqfs70j2D8UjHNQEZRuVDG/YWTWybT2xh
MPj8LO0231F0OQkMRh1209Cva8sqm6TaKzSFGASfaCG9yfrPci/gJBL9RZGZTOyy
dSTzHct0JLSSQriAvaThisylTwor/X5qOTpgjHQhf3VPGUdOJ4pyISmHRc4oQgjc
jXw+BiF1uk8XnLqcxGBE3pwM8B3RyQ==
=X1zL
-----END PGP SIGNATURE-----payloadX  tree 329d6b50aeafac99326bbf9dd6701a8e0116d025
parent 3d065fca2c42ba47f433b7982fedf9f45090353c
author Sam Kramer <skramer@palantir.com> 1689603917 +0100
committer Sam Kramer <skramer@palantir.com> 1689603917 +0100

add availability requirement functionality, add methods for usage
uujF  ^https://api.github.com/repos/palantir/atlasdb/commits/e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dffhtml_urlShttps://github.com/palantir/atlasdb/commit/e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dffcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dff/commentsj4  }(login
Sam-KrameridJ^2_ j0  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jF  'https://api.github.com/users/Sam-KramerjT  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj<  }(jY  
Sam-Kramerj[  J^2_ j0  MDQ6VXNlcjYyMzg4MTQ=j]  3https://avatars.githubusercontent.com/u/6238814?v=4j_  h5jF  'https://api.github.com/users/Sam-KramerjT  https://github.com/Sam-Kramerjb  1https://api.github.com/users/Sam-Kramer/followersjd  >https://api.github.com/users/Sam-Kramer/following{/other_user}jf  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jh  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jj  5https://api.github.com/users/Sam-Kramer/subscriptionsjl  ,https://api.github.com/users/Sam-Kramer/orgsjn  -https://api.github.com/users/Sam-Kramer/reposjp  8https://api.github.com/users/Sam-Kramer/events{/privacy}jr  7https://api.github.com/users/Sam-Kramer/received_eventsjt  Userjv  uparents]}(j.  (3d065fca2c42ba47f433b7982fedf9f45090353cjF  ^https://api.github.com/repos/palantir/atlasdb/commits/3d065fca2c42ba47f433b7982fedf9f45090353cjT  Shttps://github.com/palantir/atlasdb/commit/3d065fca2c42ba47f433b7982fedf9f45090353cuastats}(totalK	additionsK}	deletionsKufiles](}(j.  (cdaad2aa9cc9c78ee04e0c3c051895ecd3d80155filenamefatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServices.javastatusmodifiedj  Kj  K
changesK&blob_urlhttps://github.com/palantir/atlasdb/blob/e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dff/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dff/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.java?ref=e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dffpatchX  @@ -36,6 +36,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.util.Pair;
+import com.palantir.util.io.AvailabilityRequirement;
 import java.nio.ByteBuffer;
 import java.nio.ByteOrder;
 import java.nio.charset.Charset;
@@ -66,9 +67,16 @@ private CassandraKeyValueServices() {
         // Utility class
     }
 
+    static void waitForSchemaVersions(
+            int schemaMutationTimeMillis, CassandraClient client, String unsafeSchemaChangeDescription)
+            throws TException {
+        waitForSchemaVersions(
+                schemaMutationTimeMillis, client, unsafeSchemaChangeDescription, AvailabilityRequirement.QUORUM);
+    }
+
     /**
-     * Attempt to wait until a quorum of nodes has reached consensus on a schema version, and it is known that no
-     * other nodes currently disagree with this quorum.
+     * Attempt to wait until the specified number of nodes are available and there are no disagreements on schema
+     * version.
      * <p>
      * The goals of this method include:
      * <ol>
@@ -77,9 +85,12 @@ private CassandraKeyValueServices() {
      *         Cassandra can more efficiently come to agreement.
      *     </li>
      *     <li>
-     *         Avoid performing schema mutations if they could potentially cause a split-brain in terms of how the
-     *         schema evolves. This is achieved by ensuring a quorum of reachable nodes agree on the version. There
-     *         is of course a check-then-act race condition, but Cassandra is able to eventually recover.
+     *         Avoid performing schema mutations if our availability requirements are not met. This is to prevent a
+     *         split-brain situation in respect to the schema. While this _should_ be a safe state to be in, there is
+     *         little-to-no risk to availability for waiting for consensus and availability. If the specified
+     *         availability requirements are not met, then it is very likely Cassandra is an outage anyways, which
+     *         means it is ok for a service to not start up. There is of course a check-then-act race condition, but
+     *         Cassandra is able to eventually recover.
      *     </li>
      *     <li>
      *         Allowing schema mutations to take place in the presence of failures (the KVS needs to be able to
@@ -90,10 +101,14 @@ private CassandraKeyValueServices() {
      * @param schemaMutationTimeMillis      time to wait for nodes' schema versions to match.
      * @param client                        Cassandra client.
      * @param unsafeSchemaChangeDescription description of the schema change that was performed prior to this check.
+     * @param availabilityRequirement Number of Cassandra nodes that must be reachable for schema consensus.
      * @throws IllegalStateException if we wait for more than schemaMutationTimeoutMillis specified in config.
      */
     static void waitForSchemaVersions(
-            int schemaMutationTimeMillis, CassandraClient client, String unsafeSchemaChangeDescription)
+            int schemaMutationTimeMillis,
+            CassandraClient client,
+            String unsafeSchemaChangeDescription,
+            AvailabilityRequirement availabilityRequirement)
             throws TException {
         long start = System.currentTimeMillis();
         long sleepTime = INITIAL_SLEEP_TIME;
@@ -102,7 +117,7 @@ static void waitForSchemaVersions(
             // This may only include some of the nodes if the coordinator hasn't shaken hands with someone; however,
             // this existed largely as a defense against performance issues with concurrent schema modifications.
             versions = client.describe_schema_versions();
-            if (majorityOfClusterHasConsistentSchemaVersionAndNoDivergentNodes(versions)) {
+            if (clusterSatisfiesAvailabilityRequirementAndNoDivergentSchemas(versions, availabilityRequirement)) {
                 return;
             }
             sleepTime = sleepAndGetNextBackoffTime(sleepTime);
@@ -137,6 +152,8 @@ static void waitForSchemaVersions(
         throw new IllegalStateException(errorMessage);
     }
 
+    public void waitForSchemaVersionsAny() {}
+
     static void runWithWaitingForSchemas(
             RunnableCheckedException<TException> task,
             CassandraKeyValueServiceConfig config,
@@ -148,8 +165,8 @@ static void runWithWaitingForSchemas(
         waitForSchemaVersions(config.schemaMutationTimeoutMillis(), client, "after " + unsafeSchemaChangeDescription);
     }
 
-    private static boolean majorityOfClusterHasConsistentSchemaVersionAndNoDivergentNodes(
-            Map<String, List<String>> versions) {
+    private static boolean clusterSatisfiesAvailabilityRequirementAndNoDivergentSchemas(
+            Map<String, List<String>> versions, AvailabilityRequirement availabilityRequirement) {
         if (getDistinctReachableSchemas(versions).size() != 1) {
             return false;
         }
@@ -158,7 +175,8 @@ private static boolean majorityOfClusterHasConsistentSchemaVersionAndNoDivergent
         int numUnreachableNodes = Optional.ofNullable(versions.get(VERSION_UNREACHABLE))
                 .map(List::size)
                 .orElse(0);
-        return totalNodes - numUnreachableNodes >= (totalNodes / 2) + 1;
+        int availableNodes = totalNodes - numUnreachableNodes;
+        return availabilityRequirement.satisfies(availableNodes, totalNodes);
     }
 
     private static List<String> getDistinctReachableSchemas(Map<String, List<String>> versions) {u}(j.  (db6254fedeaf781eeb91a926edbf50f1b84868b1j  ^atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraVerifier.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dff/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.javaj  https://github.com/palantir/atlasdb/raw/e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dff/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.java?ref=e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dffj  XR  @@ -40,6 +40,7 @@
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.util.io.AvailabilityRequirement;
 import java.net.InetSocketAddress;
 import java.time.Duration;
 import java.util.HashSet;
@@ -246,7 +247,8 @@ private static boolean keyspaceAlreadyExists(CassandraServer host, CassandraVeri
             CassandraKeyValueServices.waitForSchemaVersions(
                     verifierConfig.schemaMutationTimeoutMillis(),
                     client,
-                    "while checking if schemas diverged on startup");
+                    "while checking if schemas diverged on startup",
+                    AvailabilityRequirement.ANY);
             return true;
         } catch (NotFoundException e) {
             return false;u}(j.  (2532d1666169d9f3f437b9df8695f73ab19265acj  Oatlasdb-commons/src/main/java/com/palantir/util/io/AvailabilityRequirement.javaj  addedj  K&j  K j  K&j  https://github.com/palantir/atlasdb/blob/e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dff/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirement.javaj  https://github.com/palantir/atlasdb/raw/e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dff/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirement.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirement.java?ref=e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dffj  X  @@ -0,0 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util.io;
+
+public enum AvailabilityRequirement {
+    ANY {
+        @Override
+        protected int calculateRequired(int total) {
+            return 1;
+        }
+    },
+    QUORUM {
+        @Override
+        protected int calculateRequired(int total) {
+            return (total / 2) + 1;
+        }
+    };
+
+    protected abstract int calculateRequired(int total);
+
+    public boolean satisfies(int available, int total) {
+        return available >= calculateRequired(total);
+    }
+}u}(j.  (fc72713ffd4dbf665c9b454bb0b9014fd4931f44j  Satlasdb-commons/src/test/java/com/palantir/util/io/AvailabilityRequirementTest.javaj  addedj  K8j  K j  K8j  https://github.com/palantir/atlasdb/blob/e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dff/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirementTest.javaj  https://github.com/palantir/atlasdb/raw/e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dff/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirementTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirementTest.java?ref=e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dffj  X  @@ -0,0 +1,56 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util.io;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import org.junit.Test;
+
+public final class AvailabilityRequirementTest {
+    @Test
+    public void anySatisfiesGreaterThanZero() {
+        assertThat(AvailabilityRequirement.ANY.satisfies(1, 10)).isTrue();
+    }
+
+    @Test
+    public void anySatisfiesWhenEquivalentToTotal() {
+        assertThat(AvailabilityRequirement.ANY.satisfies(10, 10)).isTrue();
+    }
+
+    @Test
+    public void anyDoesNotSatisfyWhenZero() {
+        assertThat(AvailabilityRequirement.ANY.satisfies(0, 10)).isFalse();
+    }
+
+    @Test
+    public void quorumSatisfiesWhenHasMajority() {
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(2, 3)).isTrue();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(4, 6)).isTrue();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(5, 9)).isTrue();
+    }
+
+    @Test
+    public void quorumDoesNotSatisfyWhenItDoesNotHaveMajority() {
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(1, 3)).isFalse();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(3, 6)).isFalse();
+    }
+
+    @Test
+    public void quorumSatisfiesWhenHasTotal() {
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(10, 10)).isTrue();
+    }
+}ueu(fc381c67adae6d9c8f1330e41a5575edbf59fcc9}(sha(fc381c67adae6d9c8f1330e41a5575edbf59fcc9node_idEC_kwDOAjP5fdoAKGZjMzgxYzY3YWRhZTZkOWM4ZjEzMzBlNDFhNTU3NWVkYmY1OWZjYzkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-07-24T14:45:55Zu	committer}(j  
Ahmed Alouanej  aalouane@palantir.comj  2023-07-24T14:45:55ZumessageMerge conflictstree}(j  (f42084904fba9c899d85abdfdbd0605be32cfde5url`https://api.github.com/repos/palantir/atlasdb/git/trees/f42084904fba9c899d85abdfdbd0605be32cfde5uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fc381c67adae6d9c8f1330e41a5575edbf59fcc9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmS+jqMACgkQPlMHVIT1
yhrEkQf9H637fwuvFJ5sr3tG2mwq176HvHDmFqg0qntgeA1dR7vbJ/2K6zAJzgrS
0IY9ORCM6rvsC6DWNrgYJu7qadRP2EA4B85fCTgit+2t58mIH8w5oQUS6oS2c5Qd
L+JZQKm2BSKjxrYZQS1be0CjXPQFYbs4E98D17LvcGaAb74bxa0tvA6bara+RoWF
H2lRfxe5V5uoG+F4PWzEK9OzGzKAwYwRDjdgggLZgUwxTuMhjwFcG3HnMXAQma7w
43+/wg5vZHs7N1/OT9bH8nMsK4b/HMAUdgJc9F0wnE/CRcLryC/aUWrHf2bkvCnL
zkDjzCMujXEsPJ/wULCGv8xZkf2E9Q==
=oDqq
-----END PGP SIGNATURE-----payloadX  tree f42084904fba9c899d85abdfdbd0605be32cfde5
parent 369087b5ab1b782bbae2be0a7631c4b0c4d04ab8
parent 031cf862dff7fed53bbfb12f4609fd62b68769b2
author Ahmed Alouane <aalouane@palantir.com> 1690209955 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1690209955 +0100

Merge conflicts
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/fc381c67adae6d9c8f1330e41a5575edbf59fcc9html_urlShttps://github.com/palantir/atlasdb/commit/fc381c67adae6d9c8f1330e41a5575edbf59fcc9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j  ergo14j  Jj  MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j  h5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14j  -https://api.github.com/users/ergo14/followersj  :https://api.github.com/users/ergo14/following{/other_user}j  3https://api.github.com/users/ergo14/gists{/gist_id}j  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j  1https://api.github.com/users/ergo14/subscriptionsj  (https://api.github.com/users/ergo14/orgsj  )https://api.github.com/users/ergo14/reposj  4https://api.github.com/users/ergo14/events{/privacy}j  3https://api.github.com/users/ergo14/received_eventsj  Userj  uparents](}(j  (369087b5ab1b782bbae2be0a7631c4b0c4d04ab8j  ^https://api.github.com/repos/palantir/atlasdb/commits/369087b5ab1b782bbae2be0a7631c4b0c4d04ab8j  Shttps://github.com/palantir/atlasdb/commit/369087b5ab1b782bbae2be0a7631c4b0c4d04ab8u}(j  (031cf862dff7fed53bbfb12f4609fd62b68769b2j  ^https://api.github.com/repos/palantir/atlasdb/commits/031cf862dff7fed53bbfb12f4609fd62b68769b2j  Shttps://github.com/palantir/atlasdb/commit/031cf862dff7fed53bbfb12f4609fd62b68769b2uestats}(totalM	additionsM	deletionsMufiles](}(j  (854555223c62aceef604d50b4a81b95af84187bcfilename.palantir/revapi.ymlstatusmodifiedj#  K6j$  K changesK6blob_urlhhttps://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9patchX  @@ -129,3 +129,57 @@ acceptedBreaks:
       new: "parameter <T> long com.palantir.atlasdb.keyvalue.cassandra.thrift.ThriftObjectSizeUtils::getCollectionSize(java.util.Collection<T>,\
         \ ===java.util.function.ToLongFunction<T>===)"
       justification: "Avoid autoboxing long to Long"
+  "0.899.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, ===com.palantir.atlasdb.util.MetricsManager===,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider)"
+      new: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, ===com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider===,\
+        \ java.util.function.Function<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
+        \ com.palantir.atlasdb.keyvalue.api.Value>, com.palantir.atlasdb.keyvalue.cassandra.ResultsExtractor<com.palantir.atlasdb.keyvalue.api.Value>>)"
+      justification: "Reuse notLatestVisibleValueCellFilterCounter"
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, com.palantir.atlasdb.util.MetricsManager,\
+        \ ===com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider===)"
+      new: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider,\
+        \ ===java.util.function.Function<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
+        \ com.palantir.atlasdb.keyvalue.api.Value>, com.palantir.atlasdb.keyvalue.cassandra.ResultsExtractor<com.palantir.atlasdb.keyvalue.api.Value>>===)"
+      justification: "Reuse notLatestVisibleValueCellFilterCounter"
+    - code: "java.method.removed"
+      old: "method com.codahale.metrics.Counter com.palantir.atlasdb.keyvalue.cassandra.ResultsExtractor<T>::getNotLatestVisibleValueCellFilterCounter(java.lang.Class<?>)"
+      justification: "Reuse notLatestVisibleValueCellFilterCounter"
+  "0.900.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.method.numberOfParametersChanged"
+      old: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.spi.AtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<com.palantir.atlasdb.config.LeaderConfig>, java.util.Optional<java.lang.String>,\
+        \ java.util.function.LongSupplier, boolean)"
+      new: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.spi.AtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<java.lang.String>, java.util.function.LongSupplier, boolean)"
+      justification: "all usage or implementations of the two broken methods are entirely\
+        \ at compile time of the consumer or within this repo itself"
+    - code: "java.method.numberOfParametersChanged"
+      old: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.timestamp.DbTimeLockFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ com.palantir.atlasdb.config.LeaderConfig, boolean)"
+      new: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.timestamp.DbTimeLockFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ boolean)"
+      justification: "all usage or implementations of the two broken methods are entirely\
+        \ at compile time of the consumer or within this repo itself"
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.numberOfParametersChanged"
+      old: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.cassandra.CassandraAtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<com.palantir.atlasdb.config.LeaderConfig>, java.util.Optional<java.lang.String>,\
+        \ java.util.function.LongSupplier, boolean)"
+      new: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.cassandra.CassandraAtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<java.lang.String>, java.util.function.LongSupplier, boolean)"
+      justification: "will only be a compile break at worst for users and consumers"u}(j  (95c0afd59482612e75dcd14fb8ccaca826a94dfdj)  .policy.ymlj+  modifiedj#  Kj$  Kj-  Kj.  ]https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/.policy.ymlj0  \https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/.policy.ymlj2  ohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  Xe  @@ -48,20 +48,22 @@ approval_rules:
       permissions: ["admin", "maintain"]
     if:
       has_author_in:
-        users: [ "svc-excavator-bot" ]
+        users: [ "svc-excavator-bot", "dependabot[bot]" ]
 
   - name: excavator only touched baseline, circle, gradle files, godel files, generated code, go dependencies, docker-compose-rule config or versions.props
     requires:
       count: 0
     if:
       has_author_in:
-        users: [ "svc-excavator-bot" ]
+        users: [ "svc-excavator-bot", "dependabot[bot]" ]
       only_changed_files:
         # product-dependencies.lock should never go here, to force review of all product (SLS) dependency changes
         # this way excavator cannot change the deployability of a service or product via auto-merge
         paths:
           - "changelog/@unreleased/.*\\.yml"
           - "^\\.baseline/.*$"
+          - "^(.+/)?Cargo.toml$"
+          - "^Cargo.lock$"
           - "^\\.circleci/.*$"
           - "^\\.docker-compose-rule\\.yml$"
           - "^.*gradle$"
@@ -83,7 +85,7 @@ approval_rules:
           - "^internal/generated_src/.*"
           - "^gradle-baseline-java/src/main/resources/checkstyle.version$"
       has_valid_signatures_by_keys:
-        key_ids: ["C9AF124A484882E0"]
+        key_ids: ["C9AF124A484882E0", "4AEE18F83AFDEB23"]
 
   - name: excavator only touched config files
     requires:u}(j  (5d19f29132dab0ef70f8e200712eb2df5ec1e0bbj)  Fatlasdb-api/src/main/java/com/palantir/atlasdb/spi/AtlasDbFactory.javaj+  modifiedj#  K j$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fspi%2FAtlasDbFactory.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fspi%2FAtlasDbFactory.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fspi%2FAtlasDbFactory.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -15,7 +15,6 @@
  */
 package com.palantir.atlasdb.spi;
 
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.util.MetricsManager;
@@ -44,7 +43,6 @@ public interface AtlasDbFactory {
      *
      * @param config Configuration file.
      * @param runtimeConfig Runtime configuration file.
-     * @param leaderConfig If the implementation supports it, the optional leader configuration.
      * @param namespace If the implementation supports it, this is the namespace to use when the namespace in config is
      * absent. If both are present, they must match.
      * @param freshTimestampSource If present, a source of fresh timestamps, which may be relevant for some KVS
@@ -57,7 +55,6 @@ KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> namespace,
             LongSupplier freshTimestampSource,
             boolean initializeAsync);u}(j  (3cae3192d54aa786e1fb095808e1aa9205897b46j)  Oatlasdb-api/src/main/java/com/palantir/atlasdb/timestamp/DbTimeLockFactory.javaj+  modifiedj#  K j$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimestamp%2FDbTimeLockFactory.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimestamp%2FDbTimeLockFactory.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimestamp%2FDbTimeLockFactory.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.timestamp;
 
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeriesProvider;
@@ -40,7 +39,6 @@ KeyValueService createRawKeyValueService(
             MetricsManager metricManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean initializeAsync);
 
     ManagedTimestampService createManagedTimestampService(u}(j  (761bd91dae92d2e174e087990b60adf2c381cba3j)  [atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/CassandraAtlasDbFactory.javaj+  modifiedj#  K j$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraAtlasDbFactory.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraAtlasDbFactory.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraAtlasDbFactory.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueService;
@@ -48,7 +47,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> unused,
             Optional<String> namespace,
             LongSupplier freshTimestampSource,
             boolean initializeAsync) {u}(j  (24eb78c9e781527756585d486a989cfa4d275af1j)  iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.keyvalue.cassandra;
 
+import com.codahale.metrics.Counter;
 import com.datastax.driver.core.exceptions.DriverInternalError;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Functions;
@@ -39,6 +40,7 @@
 import com.google.protobuf.ByteString;
 import com.palantir.async.initializer.AsyncInitializer;
 import com.palantir.atlasdb.AtlasDbConstants;
+import com.palantir.atlasdb.AtlasDbMetricNames.CellFilterMetrics;
 import com.palantir.atlasdb.CassandraTopologyValidationMetrics;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
@@ -130,6 +132,7 @@
 import java.util.Set;
 import java.util.concurrent.Callable;
 import java.util.concurrent.ExecutorService;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 import java.util.stream.StreamSupport;
@@ -245,6 +248,7 @@ public void close() {
     private final CassandraMutationTimestampProvider mutationTimestampProvider;
     private final Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig;
     private final CassandraVerifierConfig verifierConfig;
+    private final Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory;
 
     public static CassandraKeyValueService createForTesting(
             CassandraKeyValueServiceConfig config, Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig) {
@@ -412,14 +416,19 @@ private static CassandraKeyValueService createAndInitialize(
             CassandraMutationTimestampProvider mutationTimestampProvider,
             Logger log,
             boolean initializeAsync) {
+        Counter notLatestVisibleValueCellFilterCounter = // register counter once and reuse
+                metricsManager.registerOrGetCounter(ValueExtractor.class, CellFilterMetrics.NOT_LATEST_VISIBLE_VALUE);
+        Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory = cellValueMap ->
+                new ValueExtractor(metricsManager, cellValueMap, notLatestVisibleValueCellFilterCounter);
         CassandraKeyValueServiceImpl keyValueService = new CassandraKeyValueServiceImpl(
                 log,
                 metricsManager,
                 config,
                 asyncKeyValueService,
                 runtimeConfig,
                 clientPool,
-                mutationTimestampProvider);
+                mutationTimestampProvider,
+                extractorFactory);
         keyValueService.wrapper.initialize(initializeAsync);
         return keyValueService.wrapper.isInitialized() ? keyValueService : keyValueService.wrapper;
     }
@@ -431,7 +440,8 @@ private CassandraKeyValueServiceImpl(
             AsyncKeyValueService asyncKeyValueService,
             Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig,
             CassandraClientPool clientPool,
-            CassandraMutationTimestampProvider mutationTimestampProvider) {
+            CassandraMutationTimestampProvider mutationTimestampProvider,
+            Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory) {
         super(createBlockingThreadpool(config, runtimeConfig.get().servers(), metricsManager));
         this.log = log;
         this.metricsManager = metricsManager;
@@ -444,7 +454,7 @@ private CassandraKeyValueServiceImpl(
         this.cassandraTables = new CassandraTables(clientPool, config);
         this.taskRunner = new TaskRunner(executor);
         this.cellLoader = CellLoader.create(clientPool, wrappingQueryRunner, taskRunner, runtimeConfig);
-        this.rangeLoader = new RangeLoader(clientPool, queryRunner, metricsManager, readConsistencyProvider);
+        this.rangeLoader = new RangeLoader(clientPool, queryRunner, readConsistencyProvider, extractorFactory);
         this.cellValuePutter = new CellValuePutter(
                 runtimeConfig,
                 clientPool,
@@ -459,6 +469,7 @@ private CassandraKeyValueServiceImpl(
                 new CassandraTableDropper(config, clientPool, tableMetadata, cassandraTableTruncator);
         this.runtimeConfig = runtimeConfig;
         this.verifierConfig = CassandraVerifierConfig.of(config, runtimeConfig.get());
+        this.extractorFactory = extractorFactory;
     }
 
     private static ExecutorService createBlockingThreadpool(
@@ -674,7 +685,7 @@ private Map<Cell, Value> getAllCellsForRows(
                     .collect(Collectors.toList());
         }
 
-        ValueExtractor extractor = new ValueExtractor(metricsManager, Maps.newHashMapWithExpectedSize(result.size()));
+        ResultsExtractor<Value> extractor = extractorFactory.apply(Maps.newHashMapWithExpectedSize(result.size()));
         extractor.extractResults(Multimaps.asMap(result), startTs, ColumnSelection.all());
         return extractor.asMap();
     }
@@ -760,7 +771,7 @@ private Map<Cell, Value> getRowsForSpecificColumns(
             }
         }
 
-        StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, startTs);
+        StartTsResultsCollector collector = new StartTsResultsCollector(startTs, extractorFactory);
         cellLoader.loadWithTs(
                 "getRows",
                 tableRef,
@@ -804,7 +815,7 @@ public Map<Cell, Value> get(TableReference tableRef, Map<Cell, Long> timestampBy
                     Multimaps.invertFrom(Multimaps.forMap(timestampByCell), HashMultimap.create());
             ImmutableMap.Builder<Cell, Value> builder = ImmutableMap.builder();
             for (long ts : cellsByTs.keySet()) {
-                StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, ts);
+                StartTsResultsCollector collector = new StartTsResultsCollector(ts, extractorFactory);
                 cellLoader.loadWithTs(
                         "get",
                         tableRef,
@@ -823,7 +834,7 @@ public Map<Cell, Value> get(TableReference tableRef, Map<Cell, Long> timestampBy
 
     private Map<Cell, Value> get(
             String kvsMethodName, TableReference tableRef, Set<Cell> cells, long maxTimestampExclusive) {
-        StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, maxTimestampExclusive);
+        StartTsResultsCollector collector = new StartTsResultsCollector(maxTimestampExclusive, extractorFactory);
         cellLoader.loadWithTs(
                 kvsMethodName,
                 tableRef,u}(j  (0df00981272b5a894f62dbd3c588bdc01a9c6a86j)  fatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServices.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -28,7 +28,6 @@
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.table.description.TableMetadata;
-import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.base.RunnableCheckedException;
 import com.palantir.common.base.Throwables;
 import com.palantir.common.visitor.Visitor;
@@ -49,6 +48,7 @@
 import java.util.Optional;
 import java.util.UUID;
 import java.util.concurrent.ConcurrentHashMap;
+import java.util.function.Function;
 import java.util.stream.Collectors;
 import org.apache.cassandra.thrift.CfDef;
 import org.apache.cassandra.thrift.Column;
@@ -408,11 +408,11 @@ interface ThreadSafeResultVisitor extends Visitor<Map<ByteBuffer, List<ColumnOrS
 
     static class StartTsResultsCollector implements ThreadSafeResultVisitor {
         private final Map<Cell, Value> collectedResults = new ConcurrentHashMap<>();
-        private final ValueExtractor extractor;
+        private final ResultsExtractor<Value> extractor;
         private final long startTs;
 
-        StartTsResultsCollector(MetricsManager metricsManager, long startTs) {
-            this.extractor = new ValueExtractor(metricsManager, collectedResults);
+        StartTsResultsCollector(long startTs, Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory) {
+            this.extractor = extractorFactory.apply(collectedResults);
             this.startTs = startTs;
         }
 u}(j  (ed0533b540582038a030e5a294c22806773961e9j)  Watlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CellLoader.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCellLoader.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCellLoader.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCellLoader.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -33,6 +33,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.tracing.CloseableTracer;
+import com.palantir.tracing.Tracer;
 import java.nio.ByteBuffer;
 import java.util.AbstractList;
 import java.util.ArrayList;
@@ -95,17 +96,19 @@ void loadWithTs(
             CassandraKeyValueServices.ThreadSafeResultVisitor visitor,
             ConsistencyLevel consistency) {
         Map<CassandraServer, List<Cell>> hostsAndCells;
-        try (CloseableTracer tracer = CloseableTracer.startSpan(
-                "loadWithTs.partitionByHost",
-                ImmutableMap.of(
+
+        ImmutableMap<String, String> traceContext = Tracer.hasUnobservableTrace()
+                ? ImmutableMap.of()
+                : ImmutableMap.of(
                         "cells",
                         String.valueOf(cells.size()),
                         "tableRef",
                         LoggingArgs.safeInternalTableNameOrPlaceholder(tableRef.toString()),
                         "timestampClause",
                         loadAllTs ? "for all timestamps " : "",
                         "startTs",
-                        String.valueOf(startTs)))) {
+                        String.valueOf(startTs));
+        try (CloseableTracer tracer = CloseableTracer.startSpan("loadWithTs.partitionByHost", traceContext)) {
             hostsAndCells = HostPartitioner.partitionByHost(clientPool, cells, Cell::getRowName);
         }
         int totalPartitions = hostsAndCells.keySet().size();u}(j  (ee1124347a96b3aab3852646e5590f8594bf42d5j)  Xatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/RangeLoader.javaj+  modifiedj#  K	j$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRangeLoader.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRangeLoader.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRangeLoader.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.keyvalue.cassandra;
 
 import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.RangeRequest;
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
@@ -26,31 +27,33 @@
 import com.palantir.atlasdb.keyvalue.cassandra.paging.RowGetter;
 import com.palantir.atlasdb.keyvalue.cassandra.paging.ThriftColumnGetter;
 import com.palantir.atlasdb.keyvalue.cassandra.thrift.SlicePredicates;
-import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.base.ClosableIterator;
 import com.palantir.common.base.ClosableIterators;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import org.apache.cassandra.thrift.SlicePredicate;
 
 public class RangeLoader {
     private final CassandraClientPool clientPool;
     private final TracingQueryRunner queryRunner;
-    private final MetricsManager metricsManager;
     private final ReadConsistencyProvider readConsistencyProvider;
+    private final Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory;
 
     public RangeLoader(
             CassandraClientPool clientPool,
             TracingQueryRunner queryRunner,
-            MetricsManager metricsManager,
-            ReadConsistencyProvider readConsistencyProvider) {
+            ReadConsistencyProvider readConsistencyProvider,
+            Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory) {
         this.clientPool = clientPool;
         this.queryRunner = queryRunner;
-        this.metricsManager = metricsManager;
         this.readConsistencyProvider = readConsistencyProvider;
+        this.extractorFactory = extractorFactory;
     }
 
     public ClosableIterator<RowResult<Value>> getRange(TableReference tableRef, RangeRequest rangeRequest, long ts) {
-        return getRangeWithPageCreator(tableRef, rangeRequest, ts, () -> ValueExtractor.create(metricsManager));
+        return getRangeWithPageCreator(tableRef, rangeRequest, ts, () -> extractorFactory.apply(new HashMap<>()));
     }
 
     private <T> ClosableIterator<RowResult<T>> getRangeWithPageCreator(u}(j  (3f88196e3d17fc4d5eb62f8e206fd5336c9fac30j)  ]atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/ResultsExtractor.javaj+  modifiedj#  K j$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X.  @@ -15,8 +15,6 @@
  */
 package com.palantir.atlasdb.keyvalue.cassandra;
 
-import com.codahale.metrics.Counter;
-import com.palantir.atlasdb.AtlasDbMetricNames;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.ColumnSelection;
@@ -109,10 +107,4 @@ public abstract void internalExtractResult(
             long startTs, ColumnSelection selection, byte[] row, byte[] col, byte[] val, long ts);
 
     public abstract Map<Cell, T> asMap();
-
-    protected Counter getNotLatestVisibleValueCellFilterCounter(Class<?> clazz) {
-        // TODO(hsaraogi): add table names as a tag
-        return metricsManager.registerOrGetCounter(
-                clazz, AtlasDbMetricNames.CellFilterMetrics.NOT_LATEST_VISIBLE_VALUE);
-    }
 }u}(j  (53f8601baae7bbd4e212d593799a09bac05a2badj)  [atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/ValueExtractor.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  XK  @@ -21,21 +21,17 @@
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.tracing.TraceStatistics;
 import com.palantir.atlasdb.util.MetricsManager;
-import java.util.HashMap;
 import java.util.Map;
 
 class ValueExtractor extends ResultsExtractor<Value> {
     private final Map<Cell, Value> collector;
-    private final Counter notLatestVisibleValueCellFilterCounter =
-            getNotLatestVisibleValueCellFilterCounter(ValueExtractor.class);
+    private final Counter notLatestVisibleValueCellFilterCounter;
 
-    ValueExtractor(MetricsManager metricsManager, Map<Cell, Value> collector) {
+    ValueExtractor(
+            MetricsManager metricsManager, Map<Cell, Value> collector, Counter notLatestVisibleValueCellFilterCounter) {
         super(metricsManager);
         this.collector = collector;
-    }
-
-    static ValueExtractor create(MetricsManager metricsManager) {
-        return new ValueExtractor(metricsManager, new HashMap<>());
+        this.notLatestVisibleValueCellFilterCounter = notLatestVisibleValueCellFilterCounter;
     }
 
     @Overrideu}(j  (9f0c7fbc486ed33c7d2e87d7bec15a60af80050bj)  Katlasdb-commons/src/test/java/com/palantir/util/IndexEncodingUtilsTest.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -78,7 +78,8 @@ public void cannotLookupUnknownChecksumType() {
 
     @Test
     public void canEncodeSimpleData() {
-        assertThat(createIndexEncoding().indexToValue()).isEqualTo(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
+        assertThat(createIndexEncoding().indexToValue())
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
     }
 
     @Testu}(j  (013b7c530f64d79bbe88bf4896edfaea7bbce3c2j)  ^atlasdb-config/src/main/java/com/palantir/atlasdb/factory/ServiceDiscoveringAtlasSupplier.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplier.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplier.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplier.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -17,7 +17,6 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.spi.AtlasDbFactory;
@@ -52,7 +51,6 @@ public class ServiceDiscoveringAtlasSupplier {
 
     private static String timestampServiceCreationInfo = null;
 
-    private final Optional<LeaderConfig> leaderConfig;
     private final Supplier<KeyValueService> keyValueService;
     private final Supplier<ManagedTimestampService> timestampService;
     private final Supplier<TimestampStoreInvalidator> timestampStoreInvalidator;
@@ -63,18 +61,16 @@ public ServiceDiscoveringAtlasSupplier(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> namespace,
             Optional<TableReference> tableReferenceOverride,
             boolean initializeAsync,
             boolean collectThreadDumpOnInit,
             LongSupplier timestampSupplier) {
-        this.leaderConfig = leaderConfig;
         this.collectThreadDumps = collectThreadDumpOnInit;
 
         AtlasDbFactory atlasFactory = AtlasDbServiceDiscovery.createAtlasFactoryOfCorrectType(config);
         keyValueService = Suppliers.memoize(() -> atlasFactory.createRawKeyValueService(
-                metricsManager, config, runtimeConfig, leaderConfig, namespace, timestampSupplier, initializeAsync));
+                metricsManager, config, runtimeConfig, namespace, timestampSupplier, initializeAsync));
         timestampService = () -> atlasFactory.createManagedTimestampService(
                 getKeyValueService(), tableReferenceOverride, initializeAsync);
         timestampStoreInvalidator =
@@ -154,23 +150,11 @@ private static String saveThreadDumpsToFile(File file) throws IOException {
     }
 
     private void reportMultipleTimestampFetch(String path) {
-        if (!leaderConfig.isPresent()) {
-            log.warn(
-                    "[timestamp-service-creation] Timestamp service fetched for a second time, and there is no leader"
-                        + " config. This means that you may soon encounter the MultipleRunningTimestampServices error."
-                        + " Thread dumps from both fetches of the timestamp service have been outputted to {}. If you"
-                        + " encounter a MultipleRunningTimestampServices error, please send this file to support.",
-                    UnsafeArg.of("path", path));
-        } else {
-            log.warn(
-                    "[timestamp-service-creation] Timestamp service fetched for a second time. This is only OK if "
-                            + "you are running in an HA configuration and have just had a leadership election. "
-                            + "You do have a leader config, but we're outputting thread dumps from both fetches of the "
-                            + "timestamp service, in case this second service was created in error. "
-                            + "Thread dumps from both fetches of the timestamp service have been outputted to {}. "
-                            + "If you encounter a MultipleRunningTimestampServices error, please send this file to "
-                            + "support.",
-                    UnsafeArg.of("path", path));
-        }
+        log.warn(
+                "[timestamp-service-creation] Timestamp service fetched for a second time. This means that you may"
+                    + " soon encounter the MultipleRunningTimestampServices error. Thread dumps from both fetches of"
+                    + " the timestamp service have been outputted to {}. If you encounter a"
+                    + " MultipleRunningTimestampServices error, please send this file to support.",
+                UnsafeArg.of("path", path));
     }
 }u+     }(j  (398e1b5ac85cb92e69b981e591ecefa55b7256a6j)  Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javaj+  modifiedj#  K j$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -366,7 +366,6 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                 metricsManager,
                 installConfig,
                 runtime.map(AtlasDbRuntimeConfig::keyValueService),
-                config().leader(),
                 config().namespace(),
                 Optional.empty(),
                 config().initializeAsync(),u}(j  (dad98d7c2690becaffda75d8210ca450a905cadaj)  Tatlasdb-config/src/main/java/com/palantir/atlasdb/memory/InMemoryAtlasDbFactory.javaj+  modifiedj#  K j$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactory.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactory.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactory.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X^  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.cleaner.api.OnCleanupTask;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.impl.InMemoryKeyValueService;
@@ -57,7 +56,6 @@ public String getType() {
      *
      * @param config Configuration file.
      * @param runtimeConfig unused.
-     * @param leaderConfig unused.
      * @param unused unused.
      * @param unusedLongSupplier unused.
      * @param initializeAsync unused. Async initialization has not been implemented and is not propagated.
@@ -68,7 +66,6 @@ public InMemoryKeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> unused,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(j  (9d94736c40bc3a7b7c6c4faa07acaa3b2fbfa304j)  Watlasdb-config/src/main/java/com/palantir/atlasdb/memory/InMemoryDbTimeLockFactory.javaj+  modifiedj#  K j$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryDbTimeLockFactory.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryDbTimeLockFactory.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryDbTimeLockFactory.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -18,7 +18,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
@@ -49,7 +48,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean _initializeAsync) {
         return new InMemoryKeyValueService(true);
     }u}(j  (1e67bc43b22caa75f6140e38e93e532137da9f8cj)  aatlasdb-config/src/test/java/com/palantir/atlasdb/factory/AutoServiceAnnotatedAtlasDbFactory.javaj+  modifiedj#  K j$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAutoServiceAnnotatedAtlasDbFactory.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAutoServiceAnnotatedAtlasDbFactory.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAutoServiceAnnotatedAtlasDbFactory.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.google.common.collect.Lists;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.spi.AtlasDbFactory;
@@ -62,7 +61,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> unused,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(j  (a49dbe0806cf2c455793e9c38b3290d2549a32a2j)  batlasdb-config/src/test/java/com/palantir/atlasdb/factory/ServiceDiscoveringAtlasSupplierTest.javaj+  modifiedj#  K j$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplierTest.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplierTest.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplierTest.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -20,7 +20,6 @@
 import static org.mockito.Mockito.mock;
 
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.spi.AtlasDbFactory;
 import com.palantir.atlasdb.spi.KeyValueServiceConfig;
 import com.palantir.atlasdb.spi.KeyValueServiceConfigHelper;
@@ -36,7 +35,6 @@ public class ServiceDiscoveringAtlasSupplierTest {
     private final KeyValueServiceConfigHelper kvsConfig = () -> AutoServiceAnnotatedAtlasDbFactory.TYPE;
     private final KeyValueServiceConfigHelper invalidKvsConfig = () -> "should not be found kvs";
     private final AtlasDbFactory delegate = new AutoServiceAnnotatedAtlasDbFactory();
-    private final Optional<LeaderConfig> leaderConfig = Optional.of(mock(LeaderConfig.class));
     private final MetricsManager metrics = MetricsManagers.createForTests();
 
     @Test
@@ -49,7 +47,6 @@ public void delegateToFactoriesAnnotatedWithAutoService() {
                         metrics,
                         kvsConfig,
                         Refreshable.only(Optional.empty()),
-                        leaderConfig,
                         Optional.empty(),
                         AtlasDbFactory.THROWING_FRESH_TIMESTAMP_SOURCE,
                         AtlasDbFactory.DEFAULT_INITIALIZE_ASYNC));
@@ -94,7 +91,6 @@ private ServiceDiscoveringAtlasSupplier createAtlasSupplier(KeyValueServiceConfi
                 metrics,
                 providedKvsConfig,
                 Refreshable.only(Optional.empty()),
-                leaderConfig,
                 Optional.empty(),
                 Optional.empty(),
                 AtlasDbConstants.DEFAULT_INITIALIZE_ASYNC,u}(j  (fafced885dba46090538c96c11b8e33ca7a1baf4j)  Yatlasdb-config/src/test/java/com/palantir/atlasdb/memory/InMemoryAsyncAtlasDbFactory.javaj+  modifiedj#  K j$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactory.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactory.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactory.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.memory;
 
 import com.google.auto.service.AutoService;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.impl.AsyncInitializeableInMemoryKvs;
@@ -46,7 +45,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager unusedMetricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> unusedRuntimeConfig,
-            Optional<LeaderConfig> unusedLeaderConfig,
             Optional<String> unused,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(j  (bf61a9d5b6cd91b9f8ee2a9c1680504983d769ddj)  ]atlasdb-config/src/test/java/com/palantir/atlasdb/memory/InMemoryAsyncAtlasDbFactoryTest.javaj+  modifiedj#  K j$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactoryTest.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactoryTest.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactoryTest.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  Xb  @@ -80,7 +80,6 @@ private KeyValueService createRawKeyValueService(boolean initializeAsync, boolea
                 new InMemoryAsyncAtlasDbConfig(eventuallySucceed),
                 Refreshable.only(Optional.empty()),
                 Optional.empty(),
-                Optional.empty(),
                 null,
                 initializeAsync);
     }u}(j  (2bb76883abdb0aeefd14bca1e2f5ac642666ff8cj)  Xatlasdb-config/src/test/java/com/palantir/atlasdb/memory/InMemoryAtlasDbFactoryTest.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactoryTest.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactoryTest.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactoryTest.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X$  @@ -59,12 +59,6 @@ public void asyncInitTimestampServiceSynchronous() {
 
     private KeyValueService createRawKeyValueService(boolean initializeAsync) {
         return factory.createRawKeyValueService(
-                null,
-                null,
-                Refreshable.only(Optional.empty()),
-                Optional.empty(),
-                Optional.empty(),
-                null,
-                initializeAsync);
+                null, null, Refreshable.only(Optional.empty()), Optional.empty(), null, initializeAsync);
     }
 }u}(j  (49641fbb8014ea4755f443d2a46dd847148cf6c9j)  batlasdb-container-test-utils/src/main/java/com/palantir/atlasdb/containers/CassandraContainer.javaj+  modifiedj#  K j$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FCassandraContainer.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FCassandraContainer.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FCassandraContainer.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  Xp  @@ -16,16 +16,13 @@
 package com.palantir.atlasdb.containers;
 
 import com.datastax.driver.core.Cluster;
-import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CqlCapableConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCassandraCredentialsConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCqlCapableConfig;
-import com.palantir.atlasdb.config.ImmutableLeaderConfig;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueService;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl;
 import com.palantir.atlasdb.keyvalue.cassandra.async.DefaultCassandraAsyncKeyValueServiceFactory;
@@ -37,7 +34,6 @@
 import java.net.InetSocketAddress;
 import java.net.SocketAddress;
 import java.util.Map;
-import java.util.Optional;
 import java.util.UUID;
 import java.util.function.Supplier;
 
@@ -49,13 +45,6 @@ public class CassandraContainer extends Container {
     private static final String CONTAINER_NAME = "cassandra";
     private static final String THROWAWAY_CONTAINER_NAME = "cassandra2";
 
-    @SuppressWarnings("OptionalUsedAsFieldOrParameterType")
-    static final Optional<LeaderConfig> LEADER_CONFIG = Optional.of(ImmutableLeaderConfig.builder()
-            .quorumSize(1)
-            .localServer("localhost")
-            .leaders(ImmutableSet.of("localhost"))
-            .build());
-
     private final CassandraKeyValueServiceConfig config;
     private final String dockerComposeFile;
     private final String name;u}(j  (e7af481eab1762bea3f999752f6d2741324bf145j)  Natlasdb-dagger/src/main/java/com/palantir/atlasdb/services/ServicesConfig.javaj+  modifiedj#  K j$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-dagger%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fservices%2FServicesConfig.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-dagger%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fservices%2FServicesConfig.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dagger%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fservices%2FServicesConfig.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -46,7 +46,6 @@ public ServiceDiscoveringAtlasSupplier atlasDbSupplier(MetricsManager metrics) {
                 metrics,
                 atlasDbConfig().keyValueService(),
                 Refreshable.only(atlasDbRuntimeConfig().keyValueService()),
-                atlasDbConfig().leader(),
                 atlasDbConfig().namespace(),
                 Optional.empty(),
                 atlasDbConfig().initializeAsync(),u}(j  (27ef72e8bb9601a68c5a9a8c8b770c691b18b92aj)  atlasdb-dbkvs-tests/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/DbTimestampStoreInvalidatorCreationTest.javaj+  modifiedj#  K j$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-dbkvs-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FDbTimestampStoreInvalidatorCreationTest.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-dbkvs-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FDbTimestampStoreInvalidatorCreationTest.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FDbTimestampStoreInvalidatorCreationTest.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -19,13 +19,11 @@
 import static com.palantir.atlasdb.spi.AtlasDbFactory.NO_OP_FAST_FORWARD_TIMESTAMP;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.Mockito.mock;
 
 import com.google.common.collect.ImmutableSet;
 import com.google.common.util.concurrent.SimpleTimeLimiter;
 import com.google.common.util.concurrent.TimeLimiter;
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.factory.ServiceDiscoveringAtlasSupplier;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.dbkvs.InvalidationRunner;
@@ -49,7 +47,6 @@
 
 public class DbTimestampStoreInvalidatorCreationTest {
     private final MetricsManager metrics = MetricsManagers.createForTests();
-    private final Optional<LeaderConfig> leaderConfig = Optional.of(mock(LeaderConfig.class));
 
     @ClassRule
     public static final TestResourceManager TRM = new TestResourceManager(DbKvsPostgresTestSuite::createKvs);
@@ -124,7 +121,6 @@ private ServiceDiscoveringAtlasSupplier createAtlasSupplier(
                 metrics,
                 providedKvsConfig,
                 Refreshable.only(Optional.empty()),
-                leaderConfig,
                 Optional.empty(),
                 tableReference,
                 AtlasDbConstants.DEFAULT_INITIALIZE_ASYNC,u}(j  (0a8f1ae139f220797b9abeebbd4c969fee53e76ej)  Uatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/DbAtlasDbFactory.javaj+  modifiedj#  K j$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FDbAtlasDbFactory.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FDbAtlasDbFactory.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FDbAtlasDbFactory.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X*  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.ConnectionManagerAwareDbKvs;
@@ -53,7 +52,6 @@ public String getType() {
      *
      * @param config Configuration file.
      * @param runtimeConfig unused.
-     * @param leaderConfig unused.
      * @param namespace unused.
      * @param unusedLongSupplier unused.
      * @param initializeAsync initialize asynchronously
@@ -64,7 +62,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> namespace,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(j  (65a0b7f0f54b0b2a052a4cbcb93084d57486a983j)  `atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/RelationalDbTimeLockFactory.javaj+  modifiedj#  K j$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FRelationalDbTimeLockFactory.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FRelationalDbTimeLockFactory.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FRelationalDbTimeLockFactory.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X~  @@ -19,7 +19,6 @@
 import com.google.auto.service.AutoService;
 import com.google.common.base.Preconditions;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
@@ -54,13 +53,11 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean initializeAsync) {
         return delegate.createRawKeyValueService(
                 metricsManager,
                 config,
                 runtimeConfig,
-                Optional.of(leaderConfig),
                 Optional.empty(), // This refers to an AtlasDB namespace - we use the config to talk to the db
                 AtlasDbFactory.THROWING_FRESH_TIMESTAMP_SOURCE, // This is how we give out timestamps!
                 initializeAsync);u}(j  (1302da74efe18e84324e9d1b29b32b97d32d2286j)  +atlasdb-ete-tests/docker-compose.oracle.ymlj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlj0  ~https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.oracle.yml?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  @@ -2,7 +2,7 @@ version: '2'
 
 services:
   oracle:
-    image: palantirtechnologies/oracle-atlasdb:19.19.0.0-se
+    image: palantirtechnologies/oracle-atlasdb:19.20.0.0-se
     ports:
       - "1521"
 u}(j  (d818b689da94b2df8cc7d03ee10dfe828a3d8b4dj)   atlasdb-impl-shared/build.gradlej+  modifiedj#  Kj$  K j-  Kj.  thttps://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fbuild.gradlej0  shttps://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fbuild.gradlej2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fbuild.gradle?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -50,6 +50,8 @@ dependencies {
   implementation 'jakarta.ws.rs:jakarta.ws.rs-api'
   implementation 'org.apache.commons:commons-lang3'
   implementation 'org.checkerframework:checker-qual'
+  implementation 'org.eclipse.collections:eclipse-collections'
+  implementation 'org.eclipse.collections:eclipse-collections-api'
   implementation 'org.slf4j:slf4j-api'
 
   implementation project(':atlasdb-api')u}(j  (0d8de51ab4362cdda2463fb83c926e38cf12c269j)  fatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTable.javaj+  modifiedj#  Kj$  K
j-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X
  @@ -22,6 +22,7 @@
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.Iterables;
+import com.google.common.collect.Maps;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.MoreExecutors;
@@ -33,7 +34,6 @@
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.common.exception.AtlasDbDependencyException;
-import com.palantir.common.streams.KeyedStream;
 import com.palantir.common.time.Clock;
 import com.palantir.common.time.SystemClock;
 import com.palantir.logsafe.Preconditions;
@@ -52,6 +52,8 @@
 import java.util.stream.Collectors;
 import java.util.stream.StreamSupport;
 import javax.annotation.Nonnull;
+import org.eclipse.collections.api.factory.primitive.ObjectLongMaps;
+import org.eclipse.collections.api.map.primitive.MutableObjectLongMap;
 import org.immutables.value.Value;
 
 public class ResilientCommitTimestampAtomicTable implements AtomicTable<Long, TransactionStatus> {
@@ -141,16 +143,16 @@ public void update(Long key, TransactionStatus value) throws KeyAlreadyExistsExc
 
     @Override
     public void updateMultiple(Map<Long, TransactionStatus> keyValues) throws KeyAlreadyExistsException {
-        Map<Cell, Long> cellToStartTs = keyValues.keySet().stream()
-                .collect(Collectors.toMap(encodingStrategy::encodeStartTimestampAsCell, x -> x));
-        Map<Cell, byte[]> stagingValues = KeyedStream.stream(cellToStartTs)
-                .map(startTs -> encodingStrategy.encodeCommitStatusAsValue(
-                        startTs, AtomicValue.staging(keyValues.get(startTs))))
-                .collectToMap();
+        MutableObjectLongMap<Cell> cellToStartTs = ObjectLongMaps.mutable.withInitialCapacity(keyValues.size());
+        keyValues.keySet().forEach(ts -> cellToStartTs.put(encodingStrategy.encodeStartTimestampAsCell(ts), ts));
+
+        Map<Cell, byte[]> stagingValues = Maps.newHashMapWithExpectedSize(cellToStartTs.size());
+        cellToStartTs.forEachKeyValue((cell, startTs) -> stagingValues.put(
+                cell,
+                encodingStrategy.encodeCommitStatusAsValue(startTs, AtomicValue.staging(keyValues.get(startTs)))));
+
         store.batchAtomicUpdate(stagingValues);
-        store.put(KeyedStream.stream(stagingValues)
-                .map(encodingStrategy::transformStagingToCommitted)
-                .collectToMap());
+        store.put(Maps.transformValues(stagingValues, encodingStrategy::transformStagingToCommitted));
     }
 
     @Overrideu}(j  (be6fbc6e8ce696fafb59c3d25b4a7d665bd2ac80j)  _atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/ClientLockDiagnosticCollector.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollector.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollector.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollector.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -27,6 +27,7 @@
 import java.util.Set;
 import java.util.UUID;
 import java.util.stream.LongStream;
+import org.eclipse.collections.api.map.primitive.ImmutableLongLongMap;
 import org.immutables.value.Value;
 
 /**
@@ -105,6 +106,6 @@ interface ConflictTrace {
         Map<Cell, Long> latestTimestamps();
 
         @Value.Parameter
-        Map<Long, Long> commitTimestamps();
+        ImmutableLongLongMap commitTimestamps();
     }
 }u}(j  (2ba2417016f1307f2e893ab84628481d801dc9e6j)  catlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/ClientLockDiagnosticCollectorImpl.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollectorImpl.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollectorImpl.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollectorImpl.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -29,6 +29,7 @@
 import java.util.function.UnaryOperator;
 import java.util.stream.LongStream;
 import javax.annotation.Nullable;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
 
 /**
  * TODO(fdesouza): Remove this once PDS-95791 is resolved.
@@ -63,8 +64,9 @@ public void collect(
             long startTimestamp,
             Map<Cell, Long> keysToLoad,
             Map<Cell, Long> latestTimestamps,
-            Map<Long, Long> commitTimestamps) {
-        ConflictTrace conflictTrace = ImmutableConflictTrace.of(keysToLoad, latestTimestamps, commitTimestamps);
+            LongLongMap commitTimestamps) {
+        ConflictTrace conflictTrace =
+                ImmutableConflictTrace.of(keysToLoad, latestTimestamps, commitTimestamps.toImmutable());
         cache.asMap().compute(startTimestamp, mutateDigest(digest -> digest.withNewConflictDigest(conflictTrace)));
     }
 u}(j  (a50601f1936696d69de12e1e665ac187788ac034j)  Patlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/ConflictTracer.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FConflictTracer.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FConflictTracer.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FConflictTracer.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -18,6 +18,7 @@
 
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import java.util.Map;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
 
 /**
  * TODO(fdesouza): Remove this once PDS-95791 is resolved.
@@ -31,5 +32,5 @@ void collect(
             long startTimestamp,
             Map<Cell, Long> keysToLoad,
             Map<Cell, Long> latestTimestamps,
-            Map<Long, Long> commitTimestamps);
+            LongLongMap commitTimestamps);
 }u}(j  (2f8a21800d40cf1133b80f1dfeb5d0fe9712c6e4j)  Uatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/PartitionInfo.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FPartitionInfo.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FPartitionInfo.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FPartitionInfo.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X0  @@ -20,14 +20,13 @@
 
 @Value.Immutable
 public interface PartitionInfo {
+    @Value.Parameter
     ShardAndStrategy shardAndStrategy();
 
+    @Value.Parameter
     long timestamp();
 
     static PartitionInfo of(int shard, SweeperStrategy strategy, long timestamp) {
-        return ImmutablePartitionInfo.builder()
-                .shardAndStrategy(ShardAndStrategy.of(shard, strategy))
-                .timestamp(timestamp)
-                .build();
+        return ImmutablePartitionInfo.of(ShardAndStrategy.of(shard, strategy), timestamp);
     }
 }u}(j  (20af9fe9cf3ce8a1c398fa50ae5885df278e98d9j)  Xatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/ShardAndStrategy.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FShardAndStrategy.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FShardAndStrategy.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FShardAndStrategy.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  XU  @@ -22,8 +22,10 @@
 
 @Value.Immutable
 public abstract class ShardAndStrategy {
+    @Value.Parameter
     public abstract int shard();
 
+    @Value.Parameter
     public abstract SweeperStrategy strategy();
 
     public String toText() {
@@ -51,18 +53,15 @@ public boolean isThorough() {
     }
 
     public static ShardAndStrategy of(int shard, SweeperStrategy sweepStrategy) {
-        return ImmutableShardAndStrategy.builder()
-                .shard(shard)
-                .strategy(sweepStrategy)
-                .build();
+        return ImmutableShardAndStrategy.of(shard, sweepStrategy);
     }
 
     public static ShardAndStrategy conservative(int shard) {
-        return ShardAndStrategy.of(shard, SweeperStrategy.CONSERVATIVE);
+        return ImmutableShardAndStrategy.of(shard, SweeperStrategy.CONSERVATIVE);
     }
 
     public static ShardAndStrategy thorough(int shard) {
-        return ShardAndStrategy.of(shard, SweeperStrategy.THOROUGH);
+        return ImmutableShardAndStrategy.of(shard, SweeperStrategy.THOROUGH);
     }
 
     public static ShardAndStrategy nonSweepable() {u}(j  (914d867ae841df30303a097c21539e62c7f411aej)  Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/SweepQueueTable.javaj+  modifiedj#  Kj$  K j-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepQueueTable.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepQueueTable.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepQueueTable.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X{  @@ -55,6 +55,10 @@ public void enqueue(List<WriteInfo> allWrites) {
     }
 
     private void enqueueFiltered(Map<PartitionInfo, List<WriteInfo>> partitionedWrites) {
+        if (partitionedWrites.isEmpty()) {
+            return;
+        }
+
         Map<Cell, byte[]> referencesToDedicatedCells = new HashMap<>();
         Map<Cell, byte[]> cellsToWrite = new HashMap<>();
 u}(j  (a9b4705f8f7aa3df1b445c48b97b8bbc12756d22j)  Vatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/SweepableCells.javaj+  modifiedj#  Kj$  Kj-  K,j.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepableCells.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepableCells.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepableCells.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -52,6 +52,7 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.ArrayList;
 import java.util.Collection;
+import java.util.Comparator;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Iterator;
@@ -61,6 +62,9 @@
 import java.util.Set;
 import java.util.SortedSet;
 import java.util.stream.Collectors;
+import org.eclipse.collections.api.factory.primitive.LongSets;
+import org.eclipse.collections.api.set.primitive.LongSet;
+import org.eclipse.collections.api.set.primitive.MutableLongSet;
 
 public class SweepableCells extends SweepQueueTable {
     private static final SafeLogger log = SafeLoggerFactory.get(SweepableCells.class);
@@ -208,7 +212,7 @@ private WriteBatch getBatchOfWrites(
             writeBatch.merge(getWrites(row, col, entry.getValue()));
         }
         // there may be entries remaining with the same start timestamp as the last processed one. If that is the case
-        // we want to include these ones as well. This is OK since there are at most MAX_CELLS_GENERIC - 1 of them.
+        // we want to include these as well. This is OK since there are at most MAX_CELLS_GENERIC - 1 of them.
         while (resultIterator.hasNext()) {
             Map.Entry<Cell, Value> entry = resultIterator.peek();
             SweepableCellsTable.SweepableCellsColumn col = computeColumn(entry);
@@ -227,10 +231,9 @@ private static final class WriteBatch {
         private final Multimap<Long, WriteInfo> writesByStartTs = HashMultimap.create();
         private final List<SweepableCellsRow> dedicatedRows = new ArrayList<>();
 
-        WriteBatch merge(WriteBatch other) {
+        void merge(WriteBatch other) {
             writesByStartTs.putAll(other.writesByStartTs);
             dedicatedRows.addAll(other.dedicatedRows);
-            return this;
         }
 
         static WriteBatch single(WriteInfo writeInfo) {
@@ -264,7 +267,7 @@ private TimestampsToSweep getTimestampsToSweepDescendingAndCleanupAborted(
             Multimap<Long, WriteInfo> writesByStartTs) {
         Map<Long, Long> startToCommitTs = commitTsCache.loadBatch(writesByStartTs.keySet());
         Map<TableReference, Multimap<Cell, Long>> cellsToDelete = new HashMap<>();
-        List<Long> committedTimestamps = new ArrayList<>();
+        MutableLongSet committedTimestamps = LongSets.mutable.empty();
         long lastSweptTs = minTsExclusive;
         long lastSeenCommitTs = 0L;
         boolean processedAll = true;
@@ -277,11 +280,12 @@ private TimestampsToSweep getTimestampsToSweepDescendingAndCleanupAborted(
             if (commitTs == TransactionConstants.FAILED_COMMIT_TS) {
                 lastSweptTs = startTs;
                 abortedTimestamps.add(startTs);
-                writesByStartTs.get(startTs).stream()
-                        .filter(info -> info.writeRef().isPresent())
-                        .forEach(write -> cellsToDelete
-                                .computeIfAbsent(write.writeRef().get().tableRef(), ignore -> HashMultimap.create())
-                                .put(write.writeRef().get().cell(), write.timestamp()));
+                writesByStartTs.get(startTs).forEach(write -> {
+                    Optional<WriteReference> writeReference = write.writeRef();
+                    writeReference.ifPresent(reference -> cellsToDelete
+                            .computeIfAbsent(reference.tableRef(), _ignore -> HashMultimap.create())
+                            .put(reference.cell(), write.timestamp()));
+                });
             } else if (commitTs < sweepTs) {
                 lastSweptTs = startTs;
                 committedTimestamps.add(startTs);
@@ -318,24 +322,26 @@ private TimestampsToSweep getTimestampsToSweepDescendingAndCleanupAborted(
         });
 
         return ImmutableTimestampsToSweep.builder()
-                .timestampsDescending(
-                        ImmutableSortedSet.copyOf(committedTimestamps).descendingSet())
+                .timestampsDescending(sortDescending(committedTimestamps))
                 .abortedTimestamps(abortedTimestamps)
                 .maxSwept(lastSweptTs)
                 .lastSeenCommitTs(lastSeenCommitTs)
                 .processedAll(processedAll)
                 .build();
     }
 
+    private static ImmutableSortedSet<Long> sortDescending(LongSet committedTimestamps) {
+        ImmutableSortedSet.Builder<Long> timestampsDescending =
+                ImmutableSortedSet.<Long>orderedBy(Comparator.reverseOrder());
+        committedTimestamps.forEach(timestampsDescending::add);
+        return timestampsDescending.build();
+    }
+
     private Collection<WriteInfo> getWritesToSweep(Multimap<Long, WriteInfo> writesByStartTs, SortedSet<Long> startTs) {
-        Map<CellReference, WriteInfo> writesToSweepFor = new HashMap<>();
-        startTs.stream()
-                .map(writesByStartTs::get)
-                .flatMap(Collection::stream)
-                .filter(write -> write.writeRef().isPresent())
-                .forEach(write ->
-                        writesToSweepFor.putIfAbsent(write.writeRef().get().cellReference(), write));
-        return writesToSweepFor.values();
+        Map<CellReference, WriteInfo> writesToSweep = new HashMap<>();
+        startTs.stream().map(writesByStartTs::get).flatMap(Collection::stream).forEach(write -> write.writeRef()
+                .ifPresent(reference -> writesToSweep.putIfAbsent(reference.cellReference(), write)));
+        return writesToSweep.values();
     }
 
     private long getLastSweptTs(u}(j  (ac0a8f06091a11835443cd19abb4a3d348a5f781j)  \atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitioner.javaj+  modifiedj#  K.j$  Kj-  KEj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -28,9 +28,12 @@
 import com.palantir.common.base.Throwables;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
-import java.util.Set;
+import java.util.Optional;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 
@@ -54,39 +57,59 @@ public WriteInfoPartitioner(KeyValueService kvs, Supplier<Integer> numShards) {
      * writes according to shard and strategy.
      */
     public Map<PartitionInfo, List<WriteInfo>> filterAndPartition(List<WriteInfo> writes) {
-        return writes.stream().collect(Collectors.groupingBy(WriteInfo::timestamp)).values().stream()
-                .map(this::filterAndPartitionForSingleTimestamp)
-                .map(Map::entrySet)
-                .flatMap(Set::stream)
-                .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
+        if (writes.isEmpty()) {
+            return Map.of();
+        }
+
+        Collection<List<WriteInfo>> partitionedWrites = writes.stream()
+                .collect(Collectors.groupingBy(WriteInfo::timestamp))
+                .values();
+
+        Map<PartitionInfo, List<WriteInfo>> writesPartitionedByTimestamp = new HashMap<>();
+        for (List<WriteInfo> writeInfos : partitionedWrites) {
+            filterAndPartitionForSingleTimestamp(writeInfos)
+                    .forEach((partition, writeInfo) -> writesPartitionedByTimestamp
+                            .computeIfAbsent(partition, _k -> new ArrayList<>())
+                            .addAll(writeInfo));
+        }
+        return writesPartitionedByTimestamp;
     }
 
     private Map<PartitionInfo, List<WriteInfo>> filterAndPartitionForSingleTimestamp(List<WriteInfo> writes) {
-        if (writes.stream().allMatch(writeInfo -> getStrategy(writeInfo) == SweeperStrategy.NON_SWEEPABLE)) {
-            long startTs = writes.stream().findFirst().get().timestamp();
-            return SweepQueueUtils.partitioningForNonSweepable(startTs);
+        if (writes.isEmpty()) {
+            return Map.of();
         }
-        return partitionWritesByShardStrategyTimestamp(writes);
-    }
 
-    private Map<PartitionInfo, List<WriteInfo>> partitionWritesByShardStrategyTimestamp(List<WriteInfo> writes) {
         int shards = numShards.get();
-        return writes.stream()
-                .filter(writeInfo -> getStrategy(writeInfo) != SweeperStrategy.NON_SWEEPABLE)
-                .collect(Collectors.groupingBy(write -> getPartitionInfo(write, shards), Collectors.toList()));
-    }
 
-    private PartitionInfo getPartitionInfo(WriteInfo write, int shards) {
-        return PartitionInfo.of(write.toShard(shards), getStrategy(write), write.timestamp());
+        // Note that we do a single pass over writes to determine their sweep strategy, and only add sweepable write to
+        // sweepablePartitionedWrites map, so when it is empty we consider all writes for that timestamp non-sweepable.
+        Map<PartitionInfo, List<WriteInfo>> sweepablePartitionedWrites = new HashMap<>();
+        for (WriteInfo writeInfo : writes) {
+            SweeperStrategy strategy = getStrategy(writeInfo);
+            if (strategy != SweeperStrategy.NON_SWEEPABLE) {
+                PartitionInfo partition = PartitionInfo.of(writeInfo.toShard(shards), strategy, writeInfo.timestamp());
+                sweepablePartitionedWrites
+                        .computeIfAbsent(partition, _k -> new ArrayList<>())
+                        .add(writeInfo);
+            }
+        }
+
+        if (sweepablePartitionedWrites.isEmpty()) {
+            // All writes for this partition are non-sweepable
+            long startTs = writes.stream().findFirst().orElseThrow().timestamp();
+            return SweepQueueUtils.partitioningForNonSweepable(startTs);
+        }
+        return sweepablePartitionedWrites;
     }
 
     @VisibleForTesting
     SweeperStrategy getStrategy(WriteInfo writeInfo) {
-        return writeInfo
-                .writeRef()
-                .map(WriteReference::tableRef)
-                .map(this::getStrategyForTable)
-                .orElse(SweeperStrategy.NON_SWEEPABLE);
+        Optional<WriteReference> writeReference = writeInfo.writeRef();
+        if (writeReference.isPresent()) {
+            return getStrategyForTable(writeReference.get().tableRef());
+        }
+        return SweeperStrategy.NON_SWEEPABLE;
     }
 
     SweeperStrategy getStrategyForTable(TableReference tableRef) {u}(j  (19087bbc54d879f15116073134966b2a2365ccd7j)  batlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoader.javaj+  modifiedj#  K"j$  Kj-  KAj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -43,14 +43,21 @@
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.HashMap;
-import java.util.HashSet;
 import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.TimeUnit;
 import java.util.function.Supplier;
 import javax.annotation.Nullable;
+import org.eclipse.collections.api.LongIterable;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
+import org.eclipse.collections.api.map.primitive.MutableLongLongMap;
+import org.eclipse.collections.api.set.ImmutableSet;
+import org.eclipse.collections.api.set.primitive.LongSet;
+import org.eclipse.collections.api.set.primitive.MutableLongSet;
+import org.eclipse.collections.impl.factory.primitive.LongLongMaps;
+import org.eclipse.collections.impl.factory.primitive.LongSets;
+import org.eclipse.collections.impl.map.mutable.primitive.LongLongHashMap;
 
 public final class CommitTimestampLoader {
     private static final SafeLogger log = SafeLoggerFactory.get(CommitTimestampLoader.class);
@@ -90,26 +97,25 @@ public CommitTimestampLoader(
      * Returns a map from start timestamp to commit timestamp. If a start timestamp wasn't committed, then it will be
      * missing from the map. This method will block until the transactions for these start timestamps are complete.
      */
-    ListenableFuture<Map<Long, Long>> getCommitTimestamps(
+    ListenableFuture<LongLongMap> getCommitTimestamps(
             @Nullable TableReference tableRef,
-            Iterable<Long> startTimestamps,
+            LongIterable startTimestamps,
             boolean shouldWaitForCommitterToComplete,
             AsyncTransactionService asyncTransactionService) {
-        if (Iterables.isEmpty(startTimestamps)) {
-            return Futures.immediateFuture(ImmutableMap.of());
+        if (startTimestamps.isEmpty()) {
+            return Futures.immediateFuture(LongLongMaps.immutable.of());
         }
 
-        Set<Long> pendingGets = new HashSet<>();
-        Map<Long, Long> result = new HashMap<>();
-
-        for (Long startTs : startTimestamps) {
+        MutableLongSet pendingGets = LongSets.mutable.of();
+        MutableLongLongMap result = new LongLongHashMap();
+        startTimestamps.each(startTs -> {
             Long commitTs = timestampCache.getCommitTimestampIfPresent(startTs);
             if (commitTs == null) {
                 pendingGets.add(startTs);
             } else {
                 result.put(startTs, commitTs);
             }
-        }
+        });
 
         if (pendingGets.isEmpty()) {
             return Futures.immediateFuture(result);
@@ -123,16 +129,16 @@ ListenableFuture<Map<Long, Long>> getCommitTimestamps(
         return Futures.transform(
                 loadCommitTimestamps(asyncTransactionService, pendingGets),
                 rawResults -> {
-                    Map<Long, Long> loadedCommitTs = cacheKnownLoadedValuesAndValidate(rawResults);
+                    LongLongMap loadedCommitTs = cacheKnownLoadedValuesAndValidate(rawResults);
                     result.putAll(loadedCommitTs);
                     return result;
                 },
                 MoreExecutors.directExecutor());
     }
 
     // We do not cache unknown transactions as they are already being cached at a lower level.
-    private Map<Long, Long> cacheKnownLoadedValuesAndValidate(Map<Long, TransactionStatus> rawResults) {
-        Map<Long, Long> results = new HashMap<>();
+    private LongLongMap cacheKnownLoadedValuesAndValidate(Map<Long, TransactionStatus> rawResults) {
+        MutableLongLongMap results = LongLongMaps.mutable.empty();
         boolean shouldValidate = false;
 
         // The method is written this way to avoid multiple scans on the result set as it is on a hot path.
@@ -158,30 +164,27 @@ private Map<Long, Long> cacheKnownLoadedValuesAndValidate(Map<Long, TransactionS
             throwIfTransactionsTableSweptBeyondReadOnlyTxn();
         }
 
-        return results;
+        return results.asUnmodifiable();
     }
 
     /**
      * We will block here until the passed transactions have released their lock. This means that the committing
      * transaction is either complete or it has failed, and we are allowed to roll it back.
      */
-    private void waitForCommitToComplete(Iterable<Long> startTimestamps) {
-        Set<LockDescriptor> lockDescriptors = new HashSet<>();
-        for (long start : startTimestamps) {
-            if (start < immutableTimestamp) {
-                // We don't need to block in this case because this transaction is already complete
-                continue;
-            }
-            lockDescriptors.add(AtlasRowLockDescriptor.of(
-                    TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
-                    TransactionConstants.getValueForTimestamp(start)));
-        }
+    private void waitForCommitToComplete(LongIterable startTimestamps) {
+        ImmutableSet<LockDescriptor> lockDescriptors = startTimestamps
+                // We only need to block and wait for transactions on or after immutable timestamp
+                .select(start -> start >= immutableTimestamp)
+                .collect(start -> AtlasRowLockDescriptor.of(
+                        TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
+                        TransactionConstants.getValueForTimestamp(start)))
+                .toImmutableSet();
 
         if (lockDescriptors.isEmpty()) {
             return;
         }
 
-        waitFor(lockDescriptors);
+        waitFor(lockDescriptors.castToSet());
     }
 
     private void waitFor(Set<LockDescriptor> lockDescriptors) {
@@ -202,7 +205,7 @@ private void waitFor(Set<LockDescriptor> lockDescriptors) {
         }
     }
 
-    private void waitForCommitterToComplete(@Nullable TableReference tableRef, Iterable<Long> startTimestamps) {
+    private void waitForCommitterToComplete(@Nullable TableReference tableRef, LongIterable startTimestamps) {
         Timer.Context timer = getTimer("waitForCommitTsMillis").time();
         waitForCommitToComplete(startTimestamps);
         long waitForCommitTsMillis = TimeUnit.NANOSECONDS.toMillis(timer.stop());
@@ -222,16 +225,16 @@ private Timer getTimer(String name) {
     }
 
     private static ListenableFuture<Map<Long, TransactionStatus>> loadCommitTimestamps(
-            AsyncTransactionService asyncTransactionService, Set<Long> startTimestamps) {
+            AsyncTransactionService asyncTransactionService, LongSet startTimestamps) {
         // distinguish between a single timestamp and a batch, for more granular metrics
         if (startTimestamps.size() == 1) {
-            Long singleTs = Iterables.getOnlyElement(startTimestamps);
+            long singleTs = startTimestamps.longIterator().next();
             return Futures.transform(
                     asyncTransactionService.getAsyncV2(singleTs),
                     commitState -> ImmutableMap.of(singleTs, commitState),
                     MoreExecutors.directExecutor());
         } else {
-            return asyncTransactionService.getAsyncV2(startTimestamps);
+            return asyncTransactionService.getAsyncV2(startTimestamps.collect(Long::valueOf));
         }
     }
 u}(j  (76479dbfe5fb53d1b0583122fda4de393de7e01bj)  datlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.javaj+  modifiedj#  K!j$  Kj-  K8j.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -109,6 +109,13 @@
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 import javax.annotation.Nullable;
+import org.eclipse.collections.api.LongIterable;
+import org.eclipse.collections.api.factory.primitive.LongLongMaps;
+import org.eclipse.collections.api.factory.primitive.LongSets;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
+import org.eclipse.collections.api.map.primitive.MutableLongLongMap;
+import org.eclipse.collections.api.set.primitive.LongSet;
+import org.eclipse.collections.api.set.primitive.MutableLongSet;
 import org.immutables.value.Value;
 
 /**
@@ -881,42 +888,42 @@ protected TransactionScopedCache getCache() {
             }
 
             @Override
-            protected ListenableFuture<Map<Long, Long>> getCommitTimestamps(
+            protected ListenableFuture<LongLongMap> getCommitTimestamps(
                     TableReference tableRef,
-                    Iterable<Long> startTimestamps,
+                    LongIterable startTimestamps,
                     boolean shouldWaitForCommitterToComplete,
                     AsyncTransactionService asyncTransactionService) {
                 long myStart = SerializableTransaction.this.getTimestamp();
                 PartitionedTimestamps partitionedTimestamps = splitTransactionBeforeAndAfter(myStart, startTimestamps);
 
-                ListenableFuture<Map<Long, Long>> postStartCommitTimestamps =
+                ListenableFuture<LongLongMap> postStartCommitTimestamps =
                         getCommitTimestampsForTransactionsStartedAfterMe(
                                 tableRef, asyncTransactionService, partitionedTimestamps.afterStart());
 
                 // We are ok to block here because if there is a cycle of transactions that could result in a deadlock,
                 // then at least one of them will be in the ab
-                ListenableFuture<Map<Long, Long>> preStartCommitTimestamps = super.getCommitTimestamps(
+                ListenableFuture<LongLongMap> preStartCommitTimestamps = super.getCommitTimestamps(
                         tableRef,
                         partitionedTimestamps.beforeStart(),
                         shouldWaitForCommitterToComplete,
                         asyncTransactionService);
 
                 return Futures.whenAllComplete(postStartCommitTimestamps, preStartCommitTimestamps)
                         .call(
-                                () -> ImmutableMap.<Long, Long>builder()
-                                        .putAll(AtlasFutures.getDone(preStartCommitTimestamps))
-                                        .putAll(AtlasFutures.getDone(postStartCommitTimestamps))
-                                        .putAll(partitionedTimestamps.myCommittedTransaction())
-                                        .buildOrThrow(),
+                                () -> {
+                                    MutableLongLongMap map = LongLongMaps.mutable.withAll(
+                                            AtlasFutures.getDone(preStartCommitTimestamps));
+                                    map.putAll(AtlasFutures.getDone(postStartCommitTimestamps));
+                                    map.putAll(partitionedTimestamps.myCommittedTransaction());
+                                    return map.toImmutable();
+                                },
                                 MoreExecutors.directExecutor());
             }
 
-            private ListenableFuture<Map<Long, Long>> getCommitTimestampsForTransactionsStartedAfterMe(
-                    TableReference tableRef,
-                    AsyncTransactionService asyncTransactionService,
-                    Set<Long> startTimestamps) {
+            private ListenableFuture<LongLongMap> getCommitTimestampsForTransactionsStartedAfterMe(
+                    TableReference tableRef, AsyncTransactionService asyncTransactionService, LongSet startTimestamps) {
                 if (startTimestamps.isEmpty()) {
-                    return Futures.immediateFuture(ImmutableMap.of());
+                    return Futures.immediateFuture(LongLongMaps.immutable.empty());
                 }
 
                 return Futures.transform(
@@ -950,19 +957,22 @@ private ListenableFuture<Map<Long, Long>> getCommitTimestampsForTransactionsStar
              * @param startTimestamps of transactions we are interested in
              * @return a {@link PartitionedTimestamps} object containing split timestamps
              */
-            private PartitionedTimestamps splitTransactionBeforeAndAfter(long myStart, Iterable<Long> startTimestamps) {
+            private PartitionedTimestamps splitTransactionBeforeAndAfter(long myStart, LongIterable startTimestamps) {
                 ImmutablePartitionedTimestamps.Builder builder =
                         ImmutablePartitionedTimestamps.builder().myCommitTimestamp(commitTs);
+                MutableLongSet beforeStart = LongSets.mutable.empty();
+                MutableLongSet afterStart = LongSets.mutable.empty();
                 startTimestamps.forEach(startTimestamp -> {
                     if (startTimestamp == myStart) {
                         builder.splittingStartTimestamp(myStart);
                     } else if (startTimestamp < myStart) {
-                        builder.addBeforeStart(startTimestamp);
+                        beforeStart.add(startTimestamp);
                     } else {
-                        builder.addAfterStart(startTimestamp);
+                        afterStart.add(startTimestamp);
                     }
                 });
-
+                builder.beforeStart(beforeStart.asUnmodifiable());
+                builder.afterStart(afterStart.asUnmodifiable());
                 return builder.build();
             }
         };
@@ -1039,17 +1049,17 @@ public Map.Entry<Cell, byte[]> next() {
     interface PartitionedTimestamps {
         long myCommitTimestamp();
 
-        Set<Long> afterStart();
+        LongSet afterStart();
 
-        Set<Long> beforeStart();
+        LongSet beforeStart();
 
         OptionalLong splittingStartTimestamp();
 
         @Value.Derived
-        default Map<Long, Long> myCommittedTransaction() {
+        default LongLongMap myCommittedTransaction() {
             return splittingStartTimestamp().isPresent()
-                    ? ImmutableMap.of(splittingStartTimestamp().getAsLong(), myCommitTimestamp())
-                    : ImmutableMap.of();
+                    ? LongLongMaps.immutable.of(splittingStartTimestamp().getAsLong(), myCommitTimestamp())
+                    : LongLongMaps.immutable.empty();
         }
     }
 u}(j  (999b09d1124446cca5075fe20f78f7b373c0bcd5j)  `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj+  modifiedj#  K@j$  K/j-  Koj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X,  @@ -186,6 +186,12 @@
 import javax.annotation.Nullable;
 import org.apache.commons.lang3.Validate;
 import org.apache.commons.lang3.tuple.Pair;
+import org.eclipse.collections.api.LongIterable;
+import org.eclipse.collections.api.factory.primitive.LongLists;
+import org.eclipse.collections.api.factory.primitive.LongSets;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
+import org.eclipse.collections.api.set.primitive.ImmutableLongSet;
+import org.eclipse.collections.api.set.primitive.LongSet;
 
 /**
  * This implements snapshot isolation for transactions.
@@ -1646,7 +1652,7 @@ private <T> ListenableFuture<Map<Cell, Value>> getWithPostFilteringInternal(
             AsyncKeyValueService asyncKeyValueService,
             AsyncTransactionService asyncTransactionService) {
         Set<Cell> orphanedSentinels = findOrphanedSweepSentinels(tableRef, rawResults);
-        Set<Long> valuesStartTimestamps = getStartTimestampsForValues(rawResults.values());
+        LongSet valuesStartTimestamps = getStartTimestampsForValues(rawResults.values());
 
         return Futures.transformAsync(
                 getCommitTimestamps(tableRef, valuesStartTimestamps, true, asyncTransactionService),
@@ -1668,7 +1674,7 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
             Function<Value, T> transformer,
             AsyncKeyValueService asyncKeyValueService,
             Set<Cell> orphanedSentinels,
-            Map<Long, Long> commitTimestamps) {
+            LongLongMap commitTimestamps) {
         Map<Cell, Long> keysToReload = Maps.newHashMapWithExpectedSize(0);
         Map<Cell, Long> keysToDelete = Maps.newHashMapWithExpectedSize(0);
         ImmutableSet.Builder<Cell> keysAddedBuilder = ImmutableSet.builder();
@@ -1699,8 +1705,9 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
                         throw new IllegalStateException("Invalid read sentinel behavior " + getReadSentinelBehavior());
                 }
             } else {
-                Long theirCommitTimestamp = commitTimestamps.get(value.getTimestamp());
-                if (theirCommitTimestamp == null || theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
+                long theirCommitTimestamp =
+                        commitTimestamps.getIfAbsent(value.getTimestamp(), TransactionConstants.FAILED_COMMIT_TS);
+                if (theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
                     keysToReload.put(key, value.getTimestamp());
                     if (shouldDeleteAndRollback()) {
                         // This is from a failed transaction so we can roll it back and then reload it.
@@ -2327,33 +2334,37 @@ protected Map<Cell, Long> detectWriteAlreadyCommittedInternal(
             @Output Set<CellConflict> spanningWrites,
             @Output Set<CellConflict> dominatingWrites,
             TransactionService transactionService) {
+        long startTs = getStartTimestamp();
         Map<Cell, Long> rawResults = keyValueService.getLatestTimestamps(tableRef, keysToLoad);
-        Map<Long, Long> commitTimestamps = getCommitTimestampsSync(tableRef, rawResults.values(), false);
+        LongLongMap commitTimestamps =
+                getCommitTimestampsSync(tableRef, LongLists.immutable.ofAll(rawResults.values()), false);
 
         // TODO(fdesouza): Remove this once PDS-95791 is resolved.
-        conflictTracer.collect(getStartTimestamp(), keysToLoad, rawResults, commitTimestamps);
+        conflictTracer.collect(startTs, keysToLoad, rawResults, commitTimestamps);
 
         Map<Cell, Long> keysToDelete = Maps.newHashMapWithExpectedSize(0);
 
         for (Map.Entry<Cell, Long> e : rawResults.entrySet()) {
             Cell key = e.getKey();
             long theirStartTimestamp = e.getValue();
-            AssertUtils.assertAndLog(
-                    log, theirStartTimestamp != getStartTimestamp(), "Timestamp reuse is bad:" + getStartTimestamp());
+            if (theirStartTimestamp == startTs) {
+                AssertUtils.assertAndLog(log, false, "Timestamp reuse is bad:" + startTs);
+            }
 
-            Long theirCommitTimestamp = commitTimestamps.get(theirStartTimestamp);
-            if (theirCommitTimestamp == null || theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
+            long theirCommitTimestamp =
+                    commitTimestamps.getIfAbsent(theirStartTimestamp, TransactionConstants.FAILED_COMMIT_TS);
+            if (theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
                 // The value has no commit timestamp or was explicitly rolled back.
                 // This means the value is garbage from a transaction which didn't commit.
                 keysToDelete.put(key, theirStartTimestamp);
                 continue;
+            } else if (theirCommitTimestamp == startTs) {
+                AssertUtils.assertAndLog(log, false, "Timestamp reuse is bad:" + startTs);
             }
 
-            AssertUtils.assertAndLog(
-                    log, theirCommitTimestamp != getStartTimestamp(), "Timestamp reuse is bad:" + getStartTimestamp());
-            if (theirStartTimestamp > getStartTimestamp()) {
+            if (theirStartTimestamp > startTs) {
                 dominatingWrites.add(Cells.createConflict(key, theirStartTimestamp, theirCommitTimestamp));
-            } else if (theirCommitTimestamp > getStartTimestamp()) {
+            } else if (theirCommitTimestamp > startTs) {
                 spanningWrites.add(Cells.createConflict(key, theirStartTimestamp, theirCommitTimestamp));
             }
         }
@@ -2378,30 +2389,37 @@ protected Map<Cell, Long> detectWriteAlreadyCommittedInternal(
     private boolean rollbackFailedTransactions(
             TableReference tableRef,
             Map<Cell, Long> keysToDelete,
-            Map<Long, Long> commitTimestamps,
+            LongLongMap commitTimestamps,
             TransactionService transactionService) {
-        for (long startTs : new HashSet<>(keysToDelete.values())) {
-            if (commitTimestamps.get(startTs) == null) {
-                log.warn("Rolling back transaction: {}", SafeArg.of("startTs", startTs));
-                if (!rollbackOtherTransaction(startTs, transactionService)) {
-                    return false;
+        ImmutableLongSet timestamps = LongSets.immutable.ofAll(keysToDelete.values());
+        boolean allRolledBack = timestamps.allSatisfy(startTs -> {
+            if (commitTimestamps.containsKey(startTs)) {
+                long commitTs = commitTimestamps.get(startTs);
+                if (commitTs != TransactionConstants.FAILED_COMMIT_TS) {
+                    throw new SafeIllegalArgumentException(
+                            "Cannot rollback already committed transaction",
+                            SafeArg.of("startTs", startTs),
+                            SafeArg.of("commitTs", commitTs));
                 }
-            } else {
-                Preconditions.checkArgument(commitTimestamps.get(startTs) == TransactionConstants.FAILED_COMMIT_TS);
+                return true;
             }
-        }
+            log.warn("Rolling back transaction: {}", SafeArg.of("startTs", startTs));
+            return rollbackOtherTransaction(startTs, transactionService);
+        });
 
-        try {
-            runTaskOnDeleteExecutor(kvs -> deleteCells(kvs, tableRef, keysToDelete));
-        } catch (RejectedExecutionException rejected) {
-            deleteExecutorRateLimitedLogger.log(logger -> logger.info(
-                    "Could not delete keys {} for table {}, because the delete executor's queue was full."
-                            + " Sweep should eventually clean these values.",
-                    SafeArg.of("numKeysToDelete", keysToDelete.size()),
-                    LoggingArgs.tableRef(tableRef),
-                    rejected));
+        if (allRolledBack) {
+            try {
+                runTaskOnDeleteExecutor(kvs -> deleteCells(kvs, tableRef, keysToDelete));
+            } catch (RejectedExecutionException rejected) {
+                deleteExecutorRateLimitedLogger.log(logger -> logger.info(
+                        "Could not delete keys {} for table {}, because the delete executor's queue was full."
+                                + " Sweep should eventually clean these values.",
+                        SafeArg.of("numKeysToDelete", keysToDelete.size()),
+                        LoggingArgs.tableRef(tableRef),
+                        rejected));
+            }
         }
-        return true;
+        return allRolledBack;
     }
 
     private static void deleteCells(
@@ -2487,9 +2505,9 @@ protected LockToken acquireLocksForCommit() {
         return lockResponse.getToken();
     }
 
-    protected ListenableFuture<Map<Long, Long>> getCommitTimestamps(
+    protected ListenableFuture<LongLongMap> getCommitTimestamps(
             TableReference tableRef,
-            Iterable<Long> startTimestamps,
+            LongIterable startTimestamps,
             boolean shouldWaitForCommitterToComplete,
             AsyncTransactionService asyncTransactionService) {
         return commitTimestampLoader.getCommitTimestamps(
@@ -2547,16 +2565,12 @@ protected Set<LockDescriptor> getLocksForWrites() {
     /// Commit timestamp management
     ///////////////////////////////////////////////////////////////////////////
 
-    private Set<Long> getStartTimestampsForValues(Iterable<Value> values) {
-        Set<Long> results = new HashSet<>();
-        for (Value v : values) {
-            results.add(v.getTimestamp());
-        }
-        return results;
+    private LongSet getStartTimestampsForValues(Iterable<Value> values) {
+        return LongSets.immutable.withAll(Streams.stream(values).mapToLong(Value::getTimestamp));
     }
 
-    private Map<Long, Long> getCommitTimestampsSync(
-            @Nullable TableReference tableRef, Iterable<Long> startTimestamps, boolean waitForCommitterToComplete) {
+    private LongLongMap getCommitTimestampsSync(
+            @Nullable TableReference tableRef, LongIterable startTimestamps, boolean waitForCommitterToComplete) {
         return AtlasFutures.getUnchecked(getCommitTimestamps(
                 tableRef, startTimestamps, waitForCommitterToComplete, immediateTransactionService));
     }
@@ -2625,11 +2639,14 @@ private void handleKeyAlreadyExistsException(
     }
 
     private boolean wasCommitSuccessful(long commitTs) {
-        Map<Long, Long> commitTimestamps =
-                getCommitTimestampsSync(null, Collections.singleton(getStartTimestamp()), false);
-        long storedCommit = commitTimestamps.get(getStartTimestamp());
+        long startTs = getStartTimestamp();
+        LongLongMap commitTimestamps = getCommitTimestampsSync(null, LongSets.immutable.of(startTs), false);
+        long storedCommit = commitTimestamps.get(startTs);
         if (storedCommit != commitTs && storedCommit != TransactionConstants.FAILED_COMMIT_TS) {
-            Validate.isTrue(false, "Commit value is wrong. startTs %s  commitTs: %s", getStartTimestamp(), commitTs);
+            throw new SafeIllegalArgumentException(
+                    "Commit value is wrong.",
+                    SafeArg.of("startTimestamp", startTs),
+                    SafeArg.of("commitTimestamp", commitTs));
         }
         return storedCommit == commitTs;
     }u	      }(j  (7be5d7230e4143dea05fe8a584a1a0dcb0d8db39j)  fatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoaderTest.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -24,7 +24,6 @@
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
 
-import com.google.common.collect.ImmutableList;
 import com.google.common.util.concurrent.Futures;
 import com.palantir.atlasdb.cache.TimestampCache;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
@@ -40,9 +39,10 @@
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.ExecutionException;
+import org.eclipse.collections.api.factory.primitive.LongLists;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
 import org.junit.Test;
 
 public class CommitTimestampLoaderTest {
@@ -96,7 +96,7 @@ public void throwIfTTSBeyondReadOnlyForSweptTTSCell() {
 
         assertThatExceptionOfType(ExecutionException.class)
                 .isThrownBy(() -> commitTimestampLoader
-                        .getCommitTimestamps(TABLE_REF, ImmutableList.of(startTs), false, transactionService)
+                        .getCommitTimestamps(TABLE_REF, LongLists.immutable.of(startTs), false, transactionService)
                         .get())
                 .withRootCauseInstanceOf(SafeIllegalStateException.class)
                 .withMessageContaining("Sweep has swept some entries with a commit TS after us");
@@ -182,10 +182,10 @@ public void doesNotCacheUnknownTransactions() throws ExecutionException, Interru
 
     private void assertCanGetCommitTs(long startTs, long commitTs, CommitTimestampLoader commitTimestampLoader)
             throws InterruptedException, ExecutionException {
-        Map<Long, Long> loadedCommitTs = commitTimestampLoader
-                .getCommitTimestamps(TABLE_REF, ImmutableList.of(startTs), false, transactionService)
+        LongLongMap loadedCommitTs = commitTimestampLoader
+                .getCommitTimestamps(TABLE_REF, LongLists.immutable.of(startTs), false, transactionService)
                 .get();
-        assertThat(loadedCommitTs).hasSize(1);
+        assertThat(loadedCommitTs.size()).isEqualTo(1);
         assertThat(loadedCommitTs.get(startTs)).isEqualTo(commitTs);
     }
 u}(j  (a251b92eabd208ac88784e2fdc765f1f810ce9fbj)  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  Xx  @@ -130,7 +130,7 @@ public void allRelevantCellsAreRecordedForFullColumnScan() {
                         .isInstanceOfSatisfying(
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
-                                        .isEqualTo(IntStream.range(0, iterationCount)
+                                        .containsExactlyElementsOf(IntStream.range(0, iterationCount)
                                                 .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
                                                 .collect(Collectors.toList()))));
     }
@@ -158,7 +158,7 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
                         .isInstanceOfSatisfying(
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
-                                        .isEqualTo(IntStream.range(startInclusive, endExclusive)
+                                        .containsExactlyElementsOf(IntStream.range(startInclusive, endExclusive)
                                                 .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
                                                 .collect(Collectors.toList()))));
     }u}(j  (8662e0582f5aff3fdfa81d6e33ab22e4049363f9j)  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflowTest.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -101,7 +101,7 @@ public void writesThenDeletes() {
 
         List<WitnessedTransaction> transactions = workflow.run().history();
 
-        assertThat(transactions.size()).isEqualTo(4);
+        assertThat(transactions).hasSize(4);
         assertWriteTransaction(transactions.get(0), 0);
         assertDeleteTransaction(transactions.get(1), 0);
         assertWriteTransaction(transactions.get(2), 1);u}(j  (fa9346dc0a734448076b71694e9b6a65592e5ae3j)  build.gradlej+  modifiedj#  Kj$  Kj-  Kj.  ^https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/build.gradlej0  ]https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/build.gradlej2  phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  Xw  @@ -17,7 +17,7 @@ buildscript {
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.33.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.22.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
         classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.4'u}(j  (5f02ea670ebe579e2fc7dbfcda201cb6c125b07ej)   changelog/0.899.0/pr-6660.v2.ymlj+  renamedj#  K j$  K j-  K j.  vhttps://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/changelog%2F0.899.0%2Fpr-6660.v2.ymlj0  uhttps://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/changelog%2F0.899.0%2Fpr-6660.v2.ymlj2  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.899.0%2Fpr-6660.v2.yml?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9previous_filename$changelog/@unreleased/pr-6660.v2.ymlu}(j  (95dbc0937d276331c37eb26d73abac99d86081a9j)   changelog/0.900.0/pr-6665.v2.ymlj+  addedj#  Kj$  K j-  Kj.  vhttps://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/changelog%2F0.900.0%2Fpr-6665.v2.ymlj0  uhttps://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/changelog%2F0.900.0%2Fpr-6665.v2.ymlj2  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.900.0%2Fpr-6665.v2.yml?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add metadata metrics to TimeLock'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6665u}(j  (0ec771af62ea2a6ddaf5d9b6139d48293d4a25a7j)   changelog/0.901.0/pr-6640.v2.ymlj+  addedj#  Kj$  K j-  Kj.  vhttps://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/changelog%2F0.901.0%2Fpr-6640.v2.ymlj0  uhttps://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/changelog%2F0.901.0%2Fpr-6640.v2.ymlj2  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.901.0%2Fpr-6640.v2.yml?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Transaction impls use Eclipse primitive collections for in-memory transaction
+    tracking
+  links:
+  - https://github.com/palantir/atlasdb/pull/6640u}(j  (529fa046cce7dd2027f9b419812813bb3a2540a8j)   changelog/0.901.0/pr-6676.v2.ymlj+  addedj#  Kj$  K j-  Kj.  vhttps://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/changelog%2F0.901.0%2Fpr-6676.v2.ymlj0  uhttps://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/changelog%2F0.901.0%2Fpr-6676.v2.ymlj2  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.901.0%2Fpr-6676.v2.yml?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  XE  @@ -0,0 +1,8 @@
+type: improvement
+improvement:
+  description: |-
+    Optimize sweep write partitioning
+
+    Reduce allocations when processing large volumes of writes in sweep by avoiding intermediate collections and performing single passes on partitioning.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6676u}(j  (c496eeef07c431ee355d88f1ca7abecdff679476j)   changelog/0.901.0/pr-6677.v2.ymlj+  addedj#  K	j$  K j-  K	j.  vhttps://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/changelog%2F0.901.0%2Fpr-6677.v2.ymlj0  uhttps://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/changelog%2F0.901.0%2Fpr-6677.v2.ymlj2  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.901.0%2Fpr-6677.v2.yml?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X/  @@ -0,0 +1,9 @@
+type: improvement
+improvement:
+  description: "Reuse notLatestVisibleValueCellFilterCounter \n\nAvoid expensive metric
+    name computation for each value extraction by\nregistering the notLatestVisibleValueCellFilterCounter
+    once and reusing\nit throughout the lifetime.\n\nNote that this includes several
+    internal API changes; however, these\nshould not be an issue for any known AtlasDB
+    consumers.\n\nCellLoader.loadWithTs minimizes unobserved tracing overhead"
+  links:
+  - https://github.com/palantir/atlasdb/pull/6677u}(j  (fee58d12969ff103787c5364360b6099175e95ebj)  $changelog/@unreleased/pr-6678.v2.ymlj+  addedj#  Kj$  K j-  Kj.  |https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/changelog%2F%40unreleased%2Fpr-6678.v2.ymlj0  {https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/changelog%2F%40unreleased%2Fpr-6678.v2.ymlj2  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6678.v2.yml?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Bump CI to Oracle 19.20
+  links:
+  - https://github.com/palantir/atlasdb/pull/6678u}(j  (afba109285af78dbd2a1d187e33ac4f87c76e392j)  !gradle/wrapper/gradle-wrapper.jarj+  modifiedj#  K j$  K j-  K j.  whttps://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/gradle%2Fwrapper%2Fgradle-wrapper.jarj0  vhttps://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/gradle%2Fwrapper%2Fgradle-wrapper.jarj2  https://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fwrapper%2Fgradle-wrapper.jar?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9u}(j  (4e86b9270786fb25deb2931bfa2e777799ec2a25j)  (gradle/wrapper/gradle-wrapper.propertiesj+  modifiedj#  Kj$  Kj-  Kj.  ~https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/gradle%2Fwrapper%2Fgradle-wrapper.propertiesj0  }https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/gradle%2Fwrapper%2Fgradle-wrapper.propertiesj2  https://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fwrapper%2Fgradle-wrapper.properties?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  XC  @@ -1,6 +1,6 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip
 networkTimeout=10000
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/distsu}(j  (03e1ff19bb39c0ec79ee29033b2ebfb1c90ec09bj)  btimelock-agent/src/main/java/com/palantir/timelock/ServiceDiscoveringDatabaseTimeLockSupplier.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplier.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplier.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplier.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -19,7 +19,6 @@
 import com.google.common.base.Suppliers;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.factory.AtlasDbServiceDiscovery;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
@@ -49,11 +48,10 @@ public ServiceDiscoveringDatabaseTimeLockSupplier(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean initializeAsync) {
         DbTimeLockFactory dbTimeLockFactory = AtlasDbServiceDiscovery.createDbTimeLockFactoryOfCorrectType(config);
-        keyValueService = Suppliers.memoize(() -> dbTimeLockFactory.createRawKeyValueService(
-                metricsManager, config, runtimeConfig, leaderConfig, initializeAsync));
+        keyValueService = Suppliers.memoize(() ->
+                dbTimeLockFactory.createRawKeyValueService(metricsManager, config, runtimeConfig, initializeAsync));
         timestampServiceFactory = creationSetting -> dbTimeLockFactory.createManagedTimestampService(
                 keyValueService.get(), creationSetting, initializeAsync);
         timestampSeriesProvider = tableRef ->u}(j  (9f4ca09c90e7cf8f9a893b182c9bb43cfe0be85fj)  Ztimelock-agent/src/main/java/com/palantir/timelock/paxos/AsyncTimeLockServicesCreator.javaj+  modifiedj#  K	j$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -24,6 +24,8 @@
 import com.palantir.atlasdb.timelock.lock.AsyncLockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.atlasdb.timelock.lock.NonTransactionalLockService;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
 import com.palantir.atlasdb.timelock.paxos.LeadershipComponents;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.concurrent.NamedThreadFactory;
@@ -94,9 +96,14 @@ private AsyncTimelockService createRawAsyncTimelockService(
                 metricsManager.getRegistry(),
                 "async-lock-timeouts");
         return new AsyncTimelockServiceImpl(
-                AsyncLockService.createDefault(maybeEnhancedLockLog, reaperExecutor, timeoutExecutor),
+                AsyncLockService.createDefault(
+                        maybeEnhancedLockLog,
+                        reaperExecutor,
+                        timeoutExecutor,
+                        BufferMetrics.of(metricsManager.getTaggedRegistry())),
                 timestampServiceSupplier.get(),
-                maybeEnhancedLockLog);
+                maybeEnhancedLockLog,
+                RequestMetrics.of(metricsManager.getTaggedRegistry()));
     }
 
     /**u}(j  (67fff0cb73fea18f882abfc897fad053face2cf4j)  Utimelock-agent/src/main/java/com/palantir/timelock/paxos/DbBoundTimestampCreator.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FDbBoundTimestampCreator.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FDbBoundTimestampCreator.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FDbBoundTimestampCreator.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  XB  @@ -18,7 +18,6 @@
 import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
 import com.palantir.paxos.Client;
 import com.palantir.timelock.ServiceDiscoveringDatabaseTimeLockSupplier;
@@ -35,7 +34,7 @@ public DbBoundTimestampCreator(
     }
 
     @Override
-    public Supplier<ManagedTimestampService> createTimestampService(Client client, LeaderConfig leaderConfig) {
+    public Supplier<ManagedTimestampService> createTimestampService(Client client) {
         return () -> serviceDiscoveringDatabaseTimeLockSupplier.getManagedTimestampService(
                 getTimestampCreationParameters(client));
     }u}(j  (6a079ccf904035895dc3706a491d2647bcd7900dj)  Stimelock-agent/src/main/java/com/palantir/timelock/paxos/PaxosTimestampCreator.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FPaxosTimestampCreator.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FPaxosTimestampCreator.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FPaxosTimestampCreator.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -15,7 +15,6 @@
  */
 package com.palantir.timelock.paxos;
 
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.timelock.paxos.NetworkClientFactories;
 import com.palantir.paxos.Client;
 import com.palantir.timestamp.ManagedTimestampService;
@@ -29,7 +28,7 @@ public class PaxosTimestampCreator implements TimestampCreator {
     }
 
     @Override
-    public Supplier<ManagedTimestampService> createTimestampService(Client client, LeaderConfig unused) {
+    public Supplier<ManagedTimestampService> createTimestampService(Client client) {
         return () -> timestampServiceFactory.create(client);
     }
 u}(j  (26ffe31b9e2575d9a3aee3ac2c3795d73e01dd5cj)  Ktimelock-agent/src/main/java/com/palantir/timelock/paxos/TimeLockAgent.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -15,19 +15,13 @@
  */
 package com.palantir.timelock.paxos;
 
-import static com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants.ACCEPTOR_SUBDIRECTORY_PATH;
-import static com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants.LEADER_PAXOS_NAMESPACE;
-import static com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants.LEARNER_SUBDIRECTORY_PATH;
-
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
 import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
-import com.palantir.atlasdb.config.ImmutableLeaderConfig;
 import com.palantir.atlasdb.config.ImmutableServerListConfig;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.config.RemotingClientConfigs;
 import com.palantir.atlasdb.config.ServerListConfig;
 import com.palantir.atlasdb.http.BlockingTimeoutExceptionMapper;
@@ -93,7 +87,6 @@
 import com.palantir.timestamp.ManagedTimestampService;
 import com.zaxxer.hikari.HikariDataSource;
 import java.net.URL;
-import java.nio.file.Path;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
@@ -287,7 +280,6 @@ private TimestampStorage createDatabaseTimestampStorage(
                 metricsManager,
                 timestampBoundPersistence.keyValueServiceConfig(),
                 runtime.map(TimeLockAgent::getKeyValueServiceRuntimeConfig),
-                createLeaderConfig(),
                 timestampBoundPersistence.initializeAsync());
         return ImmutableTimestampStorage.builder()
                 .timestampCreator(new DbBoundTimestampCreator(dbTimeLockSupplier))
@@ -570,34 +562,14 @@ RedirectRetryTargeter redirectRetryTargeter() {
      * @return Invalidating timestamp and lock services
      */
     public TimeLockServices createInvalidatingTimeLockServices(String client) {
-        LeaderConfig leaderConfig = createLeaderConfig();
-
         Client typedClient = Client.of(client);
 
         Supplier<ManagedTimestampService> rawTimestampServiceSupplier =
-                timestampStorage.timestampCreator().createTimestampService(typedClient, leaderConfig);
+                timestampStorage.timestampCreator().createTimestampService(typedClient);
         Supplier<LockService> rawLockServiceSupplier = lockCreator::createThreadPoolingLockService;
         return timelockCreator.createTimeLockServices(typedClient, rawTimestampServiceSupplier, rawLockServiceSupplier);
     }
 
-    private LeaderConfig createLeaderConfig() {
-        List<String> uris = cluster.clusterMembers();
-        Path leaderPaxosDataDirectory = install.paxos().dataDirectory().toPath().resolve(LEADER_PAXOS_NAMESPACE);
-
-        return ImmutableLeaderConfig.builder()
-                .addLeaders(uris.toArray(new String[0]))
-                .localServer(cluster.localServer())
-                .sslConfiguration(PaxosRemotingUtils.getSslConfigurationOptional(cluster))
-                .quorumSize(PaxosRemotingUtils.getQuorumSize(uris))
-                .learnerLogDir(leaderPaxosDataDirectory
-                        .resolve(LEARNER_SUBDIRECTORY_PATH)
-                        .toFile())
-                .acceptorLogDir(leaderPaxosDataDirectory
-                        .resolve(ACCEPTOR_SUBDIRECTORY_PATH)
-                        .toFile())
-                .build();
-    }
-
     public HealthStatusReport timeLockAdjudicationFeedback() {
         return feedbackHandler.getTimeLockHealthStatus();
     }u}(j  (0f2c1df56bad08127cb2d5a035c597cdd96e3b20j)  Ntimelock-agent/src/main/java/com/palantir/timelock/paxos/TimestampCreator.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimestampCreator.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimestampCreator.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimestampCreator.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X
  @@ -15,13 +15,12 @@
  */
 package com.palantir.timelock.paxos;
 
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.paxos.Client;
 import com.palantir.timestamp.ManagedTimestampService;
 import java.util.function.Supplier;
 
 public interface TimestampCreator extends AutoCloseable {
-    Supplier<ManagedTimestampService> createTimestampService(Client client, LeaderConfig leaderConfig);
+    Supplier<ManagedTimestampService> createTimestampService(Client client);
 
     @Override
     void close();u}(j  (37cb9e1dd5d4d778cebc3d4cd60e5120d14a3a28j)  ftimelock-agent/src/test/java/com/palantir/timelock/ServiceDiscoveringDatabaseTimeLockSupplierTest.javaj+  modifiedj#  Kj$  K	j-  K
j.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplierTest.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplierTest.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplierTest.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -19,11 +19,8 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
-import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.ImmutableLeaderConfig;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeriesProvider;
@@ -43,15 +40,10 @@ public class ServiceDiscoveringDatabaseTimeLockSupplierTest {
 
     private final MetricsManager metricsManager = MetricsManagers.createForTests();
     private final KeyValueServiceConfig keyValueServiceConfig = new InMemoryAtlasDbConfig();
-    private final LeaderConfig leaderConfig = ImmutableLeaderConfig.builder()
-            .localServer("me")
-            .leaders(ImmutableList.of("me"))
-            .quorumSize(1)
-            .build();
 
     private final ServiceDiscoveringDatabaseTimeLockSupplier timeLockSupplier =
             new ServiceDiscoveringDatabaseTimeLockSupplier(
-                    metricsManager, keyValueServiceConfig, Refreshable.only(Optional.empty()), leaderConfig, false);
+                    metricsManager, keyValueServiceConfig, Refreshable.only(Optional.empty()), false);
 
     @Test
     public void canGetTimestampServiceForDifferentSeries() {u}(j  (a31b55bb26484c1c29dbf7dfa1fb463fb2596558j)  timelock-impl/build.gradlej+  modifiedj#  Kj$  K j-  Kj.  nhttps://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fbuild.gradlej0  mhttps://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fbuild.gradlej2  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fbuild.gradle?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -1,4 +1,5 @@
 apply plugin: 'org.unbroken-dome.test-sets'
+apply plugin: 'com.palantir.metric-schema'
 
 apply from: "../gradle/shared.gradle"
 apply from: "../gradle/tests.gradle"
@@ -102,3 +103,8 @@ dependencies {
     testAnnotationProcessor 'org.immutables:value'
     testCompileOnly 'org.immutables:value::annotations'
 }
+
+license {
+    exclude '**/RequestMetrics.java'
+    exclude '**/BufferMetrics.java'
+}u}(j  (9621a8f2b663bdf3ad29791637809be64ba5a328j)  Wtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/AsyncTimelockServiceImpl.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X	  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.timelock;
 
+import com.codahale.metrics.Histogram;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.SettableFuture;
@@ -29,6 +30,7 @@
 import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.atlasdb.timelock.lock.TimeLimit;
 import com.palantir.atlasdb.timelock.lock.watch.ValueAndLockWatchStateUpdate;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
 import com.palantir.atlasdb.timelock.transaction.timestamp.DelegatingClientAwareManagedTimestampService;
 import com.palantir.atlasdb.timelock.transaction.timestamp.LeadershipGuardedClientAwareManagedTimestampService;
 import com.palantir.lock.LockDescriptor;
@@ -62,9 +64,14 @@ public class AsyncTimelockServiceImpl implements AsyncTimelockService {
     private final AsyncLockService lockService;
     private final LeadershipGuardedClientAwareManagedTimestampService timestampService;
     private final LockLog lockLog;
+    private final Histogram changeMetadataHistogram;
 
     public AsyncTimelockServiceImpl(
-            AsyncLockService lockService, ManagedTimestampService timestampService, LockLog lockLog) {
+            AsyncLockService lockService,
+            ManagedTimestampService timestampService,
+            LockLog lockLog,
+            RequestMetrics metadataMetrics) {
+        this.changeMetadataHistogram = metadataMetrics.changeMetadata();
         this.lockService = lockService;
         this.timestampService = new LeadershipGuardedClientAwareManagedTimestampService(
                 DelegatingClientAwareManagedTimestampService.createDefault(timestampService));
@@ -106,6 +113,9 @@ public ListenableFuture<LockResponseV2> lock(IdentifiedLockRequest request) {
                 request.getLockDescriptors(),
                 TimeLimit.of(request.getAcquireTimeoutMs()),
                 request.getMetadata());
+        changeMetadataHistogram.update(request.getMetadata()
+                .map(metadata -> metadata.lockDescriptorToChangeMetadata().size())
+                .orElse(0));
         lockLog.registerRequest(request, result);
         SettableFuture<LockResponseV2> response = SettableFuture.create();
         result.onComplete(() -> {u}(j  (d8fdf17d283ce2a18ecc0180c5fd05954b43ce29j)  Ttimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/AsyncLockService.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X^  @@ -19,6 +19,7 @@
 import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingService;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingServiceImpl;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LeaderTime;
 import com.palantir.lock.v2.LockToken;
@@ -58,12 +59,15 @@ public class AsyncLockService implements Closeable {
      * @return an asynchronous lock service
      */
     public static AsyncLockService createDefault(
-            LockLog lockLog, ScheduledExecutorService reaperExecutor, ScheduledExecutorService timeoutExecutor) {
+            LockLog lockLog,
+            ScheduledExecutorService reaperExecutor,
+            ScheduledExecutorService timeoutExecutor,
+            BufferMetrics bufferMetrics) {
 
         LeaderClock clock = LeaderClock.create();
 
         HeldLocksCollection heldLocks = HeldLocksCollection.create(clock);
-        LockWatchingService lockWatchingService = new LockWatchingServiceImpl(heldLocks, clock.id());
+        LockWatchingService lockWatchingService = new LockWatchingServiceImpl(heldLocks, clock.id(), bufferMetrics);
         LockAcquirer lockAcquirer = new LockAcquirer(lockLog, timeoutExecutor, clock, lockWatchingService);
 
         return new AsyncLockService(u}(j  (5cce128c5d57690a5875d483a761058f6a0b4ceej)  etimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/ArrayLockEventSlidingWindow.javaj+  modifiedj#  K0j$  Kj-  K2j.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindow.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindow.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindow.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -16,9 +16,15 @@
 
 package com.palantir.atlasdb.timelock.lock.watch;
 
+import com.codahale.metrics.Counter;
 import com.google.common.math.LongMath;
 import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
+import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
+import com.palantir.lock.watch.UnlockEvent;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Optional;
@@ -29,10 +35,14 @@ public class ArrayLockEventSlidingWindow {
     private final LockWatchEvent[] buffer;
     private final int maxSize;
     private long nextSequence = 0;
+    private final Counter changeMetadataCounter;
+    private final Counter eventsWithMetadataCounter;
 
-    ArrayLockEventSlidingWindow(int maxSize) {
+    ArrayLockEventSlidingWindow(int maxSize, BufferMetrics bufferMetrics) {
         this.buffer = new LockWatchEvent[maxSize];
         this.maxSize = maxSize;
+        this.changeMetadataCounter = bufferMetrics.changeMetadata();
+        this.eventsWithMetadataCounter = bufferMetrics.eventsWithMetadata();
     }
 
     long lastVersion() {
@@ -41,10 +51,27 @@ long lastVersion() {
 
     void add(LockWatchEvent.Builder eventBuilder) {
         LockWatchEvent event = eventBuilder.build(nextSequence);
-        buffer[LongMath.mod(nextSequence, maxSize)] = event;
+        int index = LongMath.mod(nextSequence, maxSize);
+
+        Optional.ofNullable(buffer[index])
+                .flatMap(replacedEvent -> replacedEvent.accept(LockWatchEventMetadataVisitor.INSTANCE))
+                .ifPresent(this::decrementMetadataCounters);
+        event.accept(LockWatchEventMetadataVisitor.INSTANCE).ifPresent(this::incrementMetadataCounters);
+
+        buffer[index] = event;
         nextSequence++;
     }
 
+    private void incrementMetadataCounters(LockRequestMetadata metadata) {
+        changeMetadataCounter.inc(metadata.lockDescriptorToChangeMetadata().size());
+        eventsWithMetadataCounter.inc();
+    }
+
+    private void decrementMetadataCounters(LockRequestMetadata metadata) {
+        changeMetadataCounter.dec(metadata.lockDescriptorToChangeMetadata().size());
+        eventsWithMetadataCounter.dec();
+    }
+
     public Optional<List<LockWatchEvent>> getNextEvents(long version) {
         if (versionInTheFuture(version) || versionTooOld(version)) {
             return Optional.empty();
@@ -72,4 +99,23 @@ private boolean versionInTheFuture(long version) {
     private boolean versionTooOld(long version) {
         return lastVersion() - version > maxSize;
     }
+
+    private enum LockWatchEventMetadataVisitor implements LockWatchEvent.Visitor<Optional<LockRequestMetadata>> {
+        INSTANCE;
+
+        @Override
+        public Optional<LockRequestMetadata> visit(LockEvent lockEvent) {
+            return lockEvent.metadata();
+        }
+
+        @Override
+        public Optional<LockRequestMetadata> visit(UnlockEvent unlockEvent) {
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<LockRequestMetadata> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
+            return Optional.empty();
+        }
+    }
 }u}(j  (bca869f56d71be63d77a6b2c8b65c3bbe2af41c8j)  Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImpl.javaj+  modifiedj#  K	j$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  Xm  @@ -19,6 +19,7 @@
 import com.google.common.collect.RangeSet;
 import com.palantir.atlasdb.timelock.lock.AsyncLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.watch.LockEvent;
@@ -38,12 +39,17 @@
 
 public class LockEventLogImpl implements LockEventLog {
     private final UUID logId;
-    private final ArrayLockEventSlidingWindow slidingWindow = new ArrayLockEventSlidingWindow(1000);
+    private final ArrayLockEventSlidingWindow slidingWindow;
     private final Supplier<LockWatches> watchesSupplier;
     private final HeldLocksCollection heldLocksCollection;
 
-    LockEventLogImpl(UUID logId, Supplier<LockWatches> watchesSupplier, HeldLocksCollection heldLocksCollection) {
+    LockEventLogImpl(
+            UUID logId,
+            Supplier<LockWatches> watchesSupplier,
+            HeldLocksCollection heldLocksCollection,
+            BufferMetrics bufferMetrics) {
         this.logId = logId;
+        this.slidingWindow = new ArrayLockEventSlidingWindow(1000, bufferMetrics);
         this.watchesSupplier = watchesSupplier;
         this.heldLocksCollection = heldLocksCollection;
     }
@@ -64,6 +70,7 @@ public synchronized <T> ValueAndLockWatchStateUpdate<T> runTask(
     @Override
     public synchronized void logLock(
             Set<LockDescriptor> locksTakenOut, LockToken lockToken, Optional<LockRequestMetadata> metadata) {
+
         slidingWindow.add(LockEvent.builder(locksTakenOut, lockToken, metadata));
     }
 u}(j  (64e2e75476f17ef9c28864338c16eb43bc5cd443j)  atimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javaj+  modifiedj#  Kj$  Kj-  K
j.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -22,6 +22,7 @@
 import com.google.common.collect.TreeRangeSet;
 import com.palantir.atlasdb.timelock.api.LockWatchRequest;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LeadershipId;
@@ -72,13 +73,14 @@ public class LockWatchingServiceImpl implements LockWatchingService {
     private final AtomicReference<LockWatches> watches = new AtomicReference<>(LockWatches.create());
     private final ReadWriteLock watchesLock = new ReentrantReadWriteLock(true);
 
-    public LockWatchingServiceImpl(HeldLocksCollection heldLocksCollection, LeadershipId leadershipId) {
-        this(leadershipId.id(), heldLocksCollection);
+    public LockWatchingServiceImpl(
+            HeldLocksCollection heldLocksCollection, LeadershipId leadershipId, BufferMetrics lockWatchMetrics) {
+        this(leadershipId.id(), heldLocksCollection, lockWatchMetrics);
     }
 
     @VisibleForTesting
-    LockWatchingServiceImpl(UUID logId, HeldLocksCollection heldLocksCollection) {
-        this.lockEventLog = new LockEventLogImpl(logId, watches::get, heldLocksCollection);
+    LockWatchingServiceImpl(UUID logId, HeldLocksCollection heldLocksCollection, BufferMetrics lockWatchMetrics) {
+        this.lockEventLog = new LockEventLogImpl(logId, watches::get, heldLocksCollection, lockWatchMetrics);
     }
 
     @Overrideu}(j  (1bda947c93dfade6c8d6e97379c8ca0fa7fed706j)  .timelock-impl/src/main/metrics/lockwatches.ymlj+  addedj#  Kj$  K j-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Flockwatches.ymlj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Flockwatches.ymlj2  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Flockwatches.yml?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -0,0 +1,20 @@
+options:
+  javaPackage: 'com.palantir.atlasdb.timelock.lockwatches'
+
+namespaces:
+  request:
+    docs: Metrics tracking LockWatch-related things in requests received by TimeLock
+    metrics:
+      changeMetadata:
+        docs: Number of change metadata objects contained in a lock request
+        type: histogram
+  buffer:
+    docs: Metrics tracking things currently stored in the LockWatchEvent buffer (sliding window)
+    metrics:
+      eventsWithMetadata:
+        docs: Number of events currently stored in the buffer that have non-absent metadata
+        type: counter
+      changeMetadata:
+        docs: Total number of change metadata objects currently stored in the buffer across all events
+        type: counter
+u}(j  (d612d1bb1d5eea09655d460bf0f0ad1077579a6dj)  [timelock-impl/src/test/java/com/palantir/atlasdb/timelock/AsyncTimelockServiceImplTest.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImplTest.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImplTest.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImplTest.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -21,15 +21,16 @@
 
 import com.palantir.atlasdb.timelock.lock.AsyncLockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
 import com.palantir.timestamp.ManagedTimestampService;
 import org.junit.Test;
 
 public class AsyncTimelockServiceImplTest {
     @Test
     public void delegatesInitializationCheck() {
         ManagedTimestampService mockMts = mock(ManagedTimestampService.class);
-        AsyncTimelockServiceImpl service =
-                new AsyncTimelockServiceImpl(mock(AsyncLockService.class), mockMts, mock(LockLog.class));
+        AsyncTimelockServiceImpl service = new AsyncTimelockServiceImpl(
+                mock(AsyncLockService.class), mockMts, mock(LockLog.class), mock(RequestMetrics.class));
         when(mockMts.isInitialized()).thenReturn(false).thenReturn(true);
 
         assertThat(service.isInitialized()).isFalse();u}(j  (b88b9f6eb2608d0c4d5fa96c20f636f1dc76adbdj)  Xtimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/AsyncLockServiceTest.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -18,6 +18,8 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.concurrent.ScheduledExecutorService;
@@ -29,8 +31,12 @@ public class AsyncLockServiceTest {
     public void executorsShutDownAfterClose() {
         ScheduledExecutorService reaperExecutor = PTExecutors.newSingleThreadScheduledExecutor();
         ScheduledExecutorService timeoutExecutor = PTExecutors.newSingleThreadScheduledExecutor();
+        MetricsManager metricsManager = MetricsManagers.createForTests();
         AsyncLockService asyncLockService = AsyncLockService.createDefault(
-                new LockLog(MetricsManagers.createForTests().getRegistry(), () -> 1L), reaperExecutor, timeoutExecutor);
+                new LockLog(metricsManager.getRegistry(), () -> 1L),
+                reaperExecutor,
+                timeoutExecutor,
+                BufferMetrics.of(metricsManager.getTaggedRegistry()));
 
         asyncLockService.close();
         assertThat(reaperExecutor.isShutdown()).isTrue();u}(j  (01d2292522bddd65342f57b0925c5712c567ecbfj)  itimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/ArrayLockEventSlidingWindowTest.javaj+  modifiedj#  KZj$  Kj-  Kmj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -18,17 +18,39 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchEvent;
 import java.util.List;
+import java.util.Optional;
+import java.util.Set;
+import java.util.UUID;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import java.util.stream.LongStream;
-import org.immutables.value.Value;
 import org.junit.Test;
 
 public class ArrayLockEventSlidingWindowTest {
     private static final int WINDOW_SIZE = 10;
 
-    private final ArrayLockEventSlidingWindow slidingWindow = new ArrayLockEventSlidingWindow(WINDOW_SIZE);
+    private static final LockDescriptor LOCK_1 = StringLockDescriptor.of("abc");
+    private static final LockDescriptor LOCK_2 = StringLockDescriptor.of("def");
+    private static final LockDescriptor LOCK_3 = StringLockDescriptor.of("ghi");
+    private static final LockToken TOKEN = LockToken.of(UUID.randomUUID());
+
+    private final BufferMetrics bufferMetrics =
+            BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
+    private final ArrayLockEventSlidingWindow slidingWindow =
+            new ArrayLockEventSlidingWindow(WINDOW_SIZE, bufferMetrics);
 
     @Test
     public void whenLastKnownVersionIsAfterCurrentReturnEmpty() {
@@ -72,6 +94,68 @@ public void returnRangeAfterBoundary() {
         assertContainsNextEventsInOrder(10, 11, 14);
     }
 
+    @Test
+    public void countsMetadataCorrectlyStartingFromEmptyBuffer() {
+        LockRequestMetadata metadata = LockRequestMetadata.of(ImmutableMap.of(
+                LOCK_1, ChangeMetadata.unchanged(), LOCK_2, ChangeMetadata.created(PtBytes.toBytes("foo"))));
+        LockRequestMetadata metadata2 =
+                LockRequestMetadata.of(ImmutableMap.of(LOCK_3, ChangeMetadata.deleted(PtBytes.toBytes("bar"))));
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_1, LOCK_2), Optional.of(metadata));
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_3), Optional.of(metadata2));
+
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(3);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(2);
+
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_1), Optional.empty());
+        addLockEventWithMetadata(ImmutableSet.of(), Optional.of(LockRequestMetadata.of(ImmutableMap.of())));
+
+        assertThat(bufferMetrics.changeMetadata().getCount())
+                .as("Absent metadata should count for nothing")
+                .isEqualTo(3);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount())
+                .as("Empty metadata map should count for present metadata")
+                .isEqualTo(3);
+    }
+
+    @Test
+    public void maintainsCorrectMetadataCountWhenOverwritingBuffer() {
+        assertThat(WINDOW_SIZE)
+                .as("This test does not work with small windows since we are going to replace multiple events once"
+                        + " our buffer is full. With small windows, we might overwrite the wrong events.")
+                .isGreaterThanOrEqualTo(5);
+
+        IntStream.range(0, WINDOW_SIZE).forEach(i -> {
+            LockDescriptor lock = StringLockDescriptor.of("lock" + i);
+            LockRequestMetadata metadata = LockRequestMetadata.of(
+                    ImmutableMap.of(lock, ChangeMetadata.created(PtBytes.toBytes("created" + i))));
+            addLockEventWithMetadata(ImmutableSet.of(lock), Optional.of(metadata));
+        });
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+
+        // Counts are maintained if we replace an event with metadata of same size
+        addLockEventWithMetadata(
+                ImmutableSet.of(LOCK_1),
+                Optional.of(LockRequestMetadata.of(ImmutableMap.of(LOCK_1, ChangeMetadata.unchanged()))));
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+
+        // Both counts can decrease
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_1), Optional.empty());
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
+
+        // ChangeMetadata count can increase
+        addLockEventWithMetadata(
+                ImmutableSet.of(LOCK_1, LOCK_2, LOCK_3),
+                Optional.of(LockRequestMetadata.of(ImmutableMap.of(
+                        LOCK_1, ChangeMetadata.created(PtBytes.toBytes("created")),
+                        LOCK_2, ChangeMetadata.unchanged(),
+                        LOCK_3, ChangeMetadata.updated(PtBytes.toBytes("old"), PtBytes.toBytes("new"))))));
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE + 1);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
+    }
+
     private void whenLogContainsEvents0To4() {
         // Log contains events [0,1,2,3,4]
         addEvents(5);
@@ -101,24 +185,11 @@ private void assertContainsNextEventsInOrder(long version, int startInclusive, i
                         .collect(Collectors.toList()));
     }
 
-    private static LockWatchEvent createEvent(long sequence) {
-        return ImmutableFakeLockWatchEvent.of(sequence, 1);
+    private void addLockEventWithMetadata(Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {
+        slidingWindow.add(LockEvent.builder(lockDescriptors, TOKEN, metadata));
     }
 
-    @Value.Immutable
-    abstract static class FakeLockWatchEvent implements LockWatchEvent {
-        @Override
-        @Value.Parameter
-        public abstract long sequence();
-
-        @Override
-        @Value.Parameter
-        public abstract int size();
-
-        @Override
-        public <T> T accept(LockWatchEvent.Visitor<T> visitor) {
-            // do nothing
-            return null;
-        }
+    private static LockWatchEvent createEvent(long sequence) {
+        return LockEvent.builder(ImmutableSet.of(), TOKEN).build(sequence);
     }
 }u}(j  (428343d34d878fec95d1805731488da912fac28aj)  ^timelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImplTest.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X{  @@ -30,6 +30,8 @@
 import com.palantir.atlasdb.timelock.lock.ExclusiveLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocks;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
@@ -67,7 +69,11 @@ public class LockEventLogImplTest {
     private final AtomicReference<LockWatches> lockWatches = new AtomicReference<>(LockWatches.create());
     private final HeldLocksCollection heldLocksCollection = mock(HeldLocksCollection.class);
     private final HeldLocks heldLocks = mock(HeldLocks.class);
-    private final LockEventLog log = new LockEventLogImpl(LOG_ID, lockWatches::get, heldLocksCollection);
+    private final LockEventLog log = new LockEventLogImpl(
+            LOG_ID,
+            lockWatches::get,
+            heldLocksCollection,
+            BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
 
     @Before
     public void setupMocks() {u}(j  (9351b2c3e3ec099a25284148e19fee9daed18290j)  etimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImplTest.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -33,6 +33,8 @@
 import com.palantir.atlasdb.timelock.lock.ExclusiveLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocks;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.AtlasCellLockDescriptor;
 import com.palantir.lock.AtlasRowLockDescriptor;
@@ -75,7 +77,8 @@ public class LockWatchingServiceImplTest {
     private static final ChangeMetadata DUMMY_METADATA = ChangeMetadata.unchanged();
 
     private final HeldLocksCollection locks = mock(HeldLocksCollection.class);
-    private final LockWatchingService lockWatcher = new LockWatchingServiceImpl(LOG_ID, locks);
+    private final LockWatchingService lockWatcher = new LockWatchingServiceImpl(
+            LOG_ID, locks, BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
 
     private final HeldLocks heldLocks = mock(HeldLocks.class);
 u}(j  (4d9311a79afe49e73ddb3b80bfc770f03af846c4j)  ftimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataTest.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj2  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -32,6 +32,10 @@
 import com.palantir.atlasdb.timelock.api.LockWatchRequest;
 import com.palantir.atlasdb.timelock.lock.AsyncLockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
+import com.palantir.atlasdb.util.MetricsManager;
+import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.StringLockDescriptor;
@@ -67,10 +71,16 @@ public class AsyncTimeLockServiceMetadataTest {
 
     private final LockLog lockLog = new LockLog(new MetricRegistry(), () -> 10000L);
     private final ScheduledExecutorService scheduledExecutorService = new DeterministicScheduler();
-    private final AsyncLockService asyncLockService =
-            AsyncLockService.createDefault(lockLog, scheduledExecutorService, scheduledExecutorService);
+
+    private final MetricsManager metricsManager = MetricsManagers.createForTests();
+    private final RequestMetrics requestMetrics = RequestMetrics.of(metricsManager.getTaggedRegistry());
+    private final AsyncLockService asyncLockService = AsyncLockService.createDefault(
+            lockLog,
+            scheduledExecutorService,
+            scheduledExecutorService,
+            BufferMetrics.of(metricsManager.getTaggedRegistry()));
     private final AsyncTimelockServiceImpl timeLockService =
-            new AsyncTimelockServiceImpl(asyncLockService, new InMemoryTimestampService(), lockLog);
+            new AsyncTimelockServiceImpl(asyncLockService, new InMemoryTimestampService(), lockLog, requestMetrics);
     private final ConjureStartTransactionsRequest startTransactionsRequestWithInitialVersion =
             ConjureStartTransactionsRequest.builder()
                     .requestId(UUID.randomUUID())
@@ -135,6 +145,19 @@ public void cannotPassDownMetadataForUnknownLockDescriptors() {
                 .withMessage("Unknown lock descriptor in metadata");
     }
 
+    @Test
+    public void updatesRequestMetricsCorrectly() {
+        timeLockService.lock(standardRequestWithMetadata(ImmutableMap.of()));
+        timeLockService.lock(standardRequestWithMetadata(ImmutableMap.of(
+                StringLockDescriptor.of("1"), ChangeMetadata.unchanged(),
+                StringLockDescriptor.of("2"), ChangeMetadata.unchanged(),
+                StringLockDescriptor.of("3"), ChangeMetadata.unchanged())));
+        timeLockService.lock(ImmutableIdentifiedLockRequest.copyOf(WATCHED_LOCK_REQUEST_WITH_METADATA)
+                .withMetadata(Optional.empty()));
+
+        assertThat(requestMetrics.changeMetadata().getSnapshot().getValues()).containsOnly(0, 3, 0);
+    }
+
     private List<Optional<LockRequestMetadata>> getAllLockEventsMetadata() {
         return LockWatchIntegrationTestUtilities.extractMetadata(getAllLockWatchEvents());
     }u}(j  (a1c26b303ce52ac19eaf79c922923c3074b142f2j)  ]timelock-server/src/test/java/com/palantir/atlasdb/timelock/lock/AsyncLockServiceEteTest.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/palantir/atlasdb/blob/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceEteTest.javaj0  https://github.com/palantir/atlasdb/raw/fc381c67adae6d9c8f1330e41a5575edbf59fcc9/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceEteTest.java     j2  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceEteTest.java?ref=fc381c67adae6d9c8f1330e41a5575edbf59fcc9j4  X  @@ -22,6 +22,8 @@
 import com.google.common.util.concurrent.Uninterruptibles;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingService;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingServiceImpl;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.flake.FlakeRetryingRule;
 import com.palantir.flake.ShouldRetry;
 import com.palantir.leader.NotCurrentLeaderException;
@@ -63,7 +65,10 @@ public class AsyncLockServiceEteTest {
 
     private final LockLog lockLog = new LockLog(new MetricRegistry(), () -> 2L);
     private final HeldLocksCollection heldLocks = HeldLocksCollection.create(clock);
-    private final LockWatchingService lockWatchingService = new LockWatchingServiceImpl(heldLocks, clock.id());
+    private final LockWatchingService lockWatchingService = new LockWatchingServiceImpl(
+            heldLocks,
+            clock.id(),
+            BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
     private final AsyncLockService service = new AsyncLockService(
             new LockCollection(),
             new ImmutableTimestampTracker(),ueu(53f180b023489f7515cc376cd17882950cde86cf}(sha(53f180b023489f7515cc376cd17882950cde86cfnode_idEC_kwDOAjP5fdoAKDUzZjE4MGIwMjM0ODlmNzUxNWNjMzc2Y2QxNzg4Mjk1MGNkZTg2Y2Ycommit}(author}(name
Steven Berleremailsberler@palantir.comdate2023-05-26T22:53:28Zu	committer}(j  
Steven Berlerj  sberler@palantir.comj  2023-05-26T22:53:28Zumessage7Merge branch 'develop' into cvdv/DELETE_ALL_TS_OVERFLOWtree}(jx  (1184b5fbe36b12fff9276b4c8cd246d79bb7760durl`https://api.github.com/repos/palantir/atlasdb/git/trees/1184b5fbe36b12fff9276b4c8cd246d79bb7760duj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/53f180b023489f7515cc376cd17882950cde86cf
comment_countK verification}(verifiedreasonvalid	signatureX@  -----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEw59h1YMk8taw6E9gP6wKgcBSQL8FAmRxOGsACgkQP6wKgcBS
QL9jLQ/8DoHR/6hN6SEvVRMzYnQk73OTwIBInkRnsnY+JzZQxE0Nqae5ojpRd5qb
tkgx70tDpHVgQHVKQOR6mAzC7GUWcqCaACPH9KIGxWkK7iBq3mF92UXR9Km4cY8S
GGJy56Vo0380bw65HWnGXsVUHdNRbNqGNAlor2Dug3Wmj4rlJmojJ9/SXF07XGzO
3ANDTA6brzNgXihlaeI/sM1TYlx4Lxk/YY1MEfjDayBmxb0cknNdc8Va7iwqBvW+
kbze711XwrMgG76WdtpKqhRZ0/98eBEX3WLlzFoGA96FNMqYMyz+f7QOwZOCEWiq
02gTmN49ktG8utcqd1yhnl2EurA7mX3tDUZbIOGe4baznPZ/k0EXsp3BKbjHUR3i
DT4k60o01lidtnkT3Q+xd6RBo8X6auXYOT68nIglYIrE1LHS4jPtC6k4ZmCqnT3t
hZ1xGhPiX8XfPBaems4WeNhUpD7bKlnmjgpJBJjV46SoEoQXWwenXSnGuWJchwc5
SlJKwYQJi7vg9ksgO7t7FsIm5YgPOm8SFyOhP6/EDjKU95CWw3FrgAYw9bnVTtcs
gBhrGYbBkDpylZtdgcLjJD0p5LlZGXn8X6aiGooGt8Dr3pZkc7NKq1J6RjFFj3K8
zk7rgr1v76RoYsbEvW0vW+b0RR1gbRJIuOUEypSzzqBWy+M4fkU=
=vzn7
-----END PGP SIGNATURE-----payloadXD  tree 1184b5fbe36b12fff9276b4c8cd246d79bb7760d
parent 1e730f6c9ef11f4cf368415f8e5ed6f4dc65d1e2
parent 24820153082f53974c94dcc24a1917fb7fc3c91a
author Steven Berler <sberler@palantir.com> 1685141608 -0700
committer Steven Berler <sberler@palantir.com> 1685141608 -0700

Merge branch 'develop' into cvdv/DELETE_ALL_TS_OVERFLOW
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/53f180b023489f7515cc376cd17882950cde86cfhtml_urlShttps://github.com/palantir/atlasdb/commit/53f180b023489f7515cc376cd17882950cde86cfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/53f180b023489f7515cc376cd17882950cde86cf/commentsj~  }(loginberleridJ jz  MDQ6VXNlcjEwMzA2Mjc=
avatar_url3https://avatars.githubusercontent.com/u/1030627?v=4gravatar_idh5j  #https://api.github.com/users/berlerj  https://github.com/berler
followers_url-https://api.github.com/users/berler/followers
following_url:https://api.github.com/users/berler/following{/other_user}	gists_url3https://api.github.com/users/berler/gists{/gist_id}starred_url:https://api.github.com/users/berler/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/berler/subscriptionsorganizations_url(https://api.github.com/users/berler/orgs	repos_url)https://api.github.com/users/berler/repos
events_url4https://api.github.com/users/berler/events{/privacy}received_events_url3https://api.github.com/users/berler/received_eventstypeUser
site_adminuj  }(j  berlerj  J jz  MDQ6VXNlcjEwMzA2Mjc=j  3https://avatars.githubusercontent.com/u/1030627?v=4j  h5j  #https://api.github.com/users/berlerj  https://github.com/berlerj  -https://api.github.com/users/berler/followersj  :https://api.github.com/users/berler/following{/other_user}j  3https://api.github.com/users/berler/gists{/gist_id}j  :https://api.github.com/users/berler/starred{/owner}{/repo}j  1https://api.github.com/users/berler/subscriptionsj  (https://api.github.com/users/berler/orgsj  )https://api.github.com/users/berler/reposj  4https://api.github.com/users/berler/events{/privacy}j  3https://api.github.com/users/berler/received_eventsj  Userj  uparents](}(jx  (1e730f6c9ef11f4cf368415f8e5ed6f4dc65d1e2j  ^https://api.github.com/repos/palantir/atlasdb/commits/1e730f6c9ef11f4cf368415f8e5ed6f4dc65d1e2j  Shttps://github.com/palantir/atlasdb/commit/1e730f6c9ef11f4cf368415f8e5ed6f4dc65d1e2u}(jx  (24820153082f53974c94dcc24a1917fb7fc3c91aj  ^https://api.github.com/repos/palantir/atlasdb/commits/24820153082f53974c94dcc24a1917fb7fc3c91aj  Shttps://github.com/palantir/atlasdb/commit/24820153082f53974c94dcc24a1917fb7fc3c91auestats}(totalM	additionsM	deletionsKWufiles](}(jx  (a31b7819db3f6f91597edd144957cf18b2f7a613filename.circleci/config.ymlstatusmodifiedj  Kj  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=53f180b023489f7515cc376cd17882950cde86cfpatchX  @@ -154,8 +154,8 @@ workflows:
           matrix:
             alias: test-no-tl
             parameters:
-              # intentionally excluding 12 (TimeLock migration ETE test) from this collection
-              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13]
+              # intentionally excluding 13 (TimeLock migration ETE test) from this collection
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14]
           filters:
             tags:
               only: /.*/
@@ -164,7 +164,7 @@ workflows:
           matrix:
             alias: test-tl
             parameters:
-              suite: [12]
+              suite: [13]
           filters:
             branches:
               only: /(tlmete.*|develop)/u}(jx  (2dbc24b32d3c1d36a5252a785ef380d28cefa391j  
.java-versionj  modifiedj  Kj  Kj  Kj  _https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/.java-versionj  ^https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/.java-versionj  qhttps://api.github.com/repos/palantir/atlasdb/contents/.java-version?ref=53f180b023489f7515cc376cd17882950cde86cfj  @@ -1 +1 @@
-11
+11.0u}(jx  (4070f53a1fe32fff1205f946858d747ab540e48bj  datlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  Xw  @@ -359,6 +359,7 @@ void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> des
 
         if (!(validatedServersToAdd.isEmpty() && absentServers.isEmpty())) { // if we made any changes
             cassandra.refreshTokenRangesAndGetServers();
+            metrics.recordPoolSize(getCurrentPools().size());
         }
 
         Preconditions.checkState(u}(jx  (90804433a22ec03af979e3c1e8590efd24af0579j  `atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppToken.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X  @@ -27,13 +27,16 @@
 import java.util.Arrays;
 
 public class LightweightOppToken implements Comparable<LightweightOppToken> {
-
     final byte[] bytes;
 
     public LightweightOppToken(byte[] bytes) {
         this.bytes = bytes;
     }
 
+    public static LightweightOppToken fromHex(String token) {
+        return new LightweightOppToken(Tokens.hexDecode(token));
+    }
+
     public static LightweightOppToken of(Cell cell) {
         return new LightweightOppToken(cell.getRowName());
     }u}(jx  (b6e36b890415f2534eb284b773e57dbc27d4313bj  Satlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/Tokens.javaj  addedj  K4j  K j  K4j  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  XP  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.io.BaseEncoding;
+import java.util.Locale;
+import java.util.function.IntPredicate;
+
+final class Tokens {
+
+    private static final BaseEncoding LOWER_CASE_HEX = BaseEncoding.base16().lowerCase();
+
+    static byte[] hexDecode(String token) {
+        // OPP tokens should be lowercase -- fast path assumes this; slow fallback converts to uppercase
+        return Tokens.isAllLowercaseOrDigits(token)
+                ? LOWER_CASE_HEX.decode(token)
+                : BaseEncoding.base16().decode(token.toUpperCase(Locale.ROOT));
+    }
+
+    @VisibleForTesting
+    static boolean isAllLowercaseOrDigits(String token) {
+        return allMatch(token, ch -> Character.isLowerCase(ch) || Character.isDigit(ch));
+    }
+
+    @VisibleForTesting
+    static boolean allMatch(String token, IntPredicate predicate) {
+        for (int i = 0; i < token.length(); i++) {
+            char ch = token.charAt(i);
+            if (!predicate.test(ch)) {
+                return false;
+            }
+        }
+        return true;
+    }
+
+    private Tokens() {}
+}u}(jx  (4d583484e99e4cc63642e62a005732ba4ca0d5d9j  latlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetrics.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X	  @@ -18,6 +18,7 @@
 import com.codahale.metrics.Counter;
 import com.codahale.metrics.Gauge;
 import com.codahale.metrics.Meter;
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableMap;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer;
@@ -26,10 +27,13 @@
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.Map;
+import java.util.concurrent.atomic.AtomicLong;
 import java.util.function.Consumer;
 import java.util.function.Supplier;
 
 public class CassandraClientPoolMetrics {
+
+    public static final String POOL_SIZE_METRIC_NAME = "pool-size";
     private final MetricsManager metricsManager;
     private final RequestMetrics aggregateRequestMetrics;
     private final Map<CassandraServer, RequestMetrics> metricsByHost = new HashMap<>();
@@ -39,12 +43,15 @@ public class CassandraClientPoolMetrics {
     // Not bundled in with request metrics, as we seek to not produce host-level metrics for economic reasons.
     private final Counter poolExhaustionCounter;
 
+    private final AtomicLong poolSize = new AtomicLong(0L);
+
     public CassandraClientPoolMetrics(MetricsManager metricsManager) {
         this.metricsManager = metricsManager;
         this.aggregateRequestMetrics = new RequestMetrics(metricsManager);
         this.poolExhaustionCounter =
                 metricsManager.registerOrGetCounter(CassandraClientPoolMetrics.class, "pool-exhaustion");
         this.outlierControllers = createOutlierControllers(metricsManager);
+        metricsManager.registerMetric(CassandraClientPoolMetrics.class, POOL_SIZE_METRIC_NAME, poolSize::get);
     }
 
     private static Map<CassandraClientPoolHostLevelMetric, DistributionOutlierController> createOutlierControllers(
@@ -93,6 +100,15 @@ public void recordPoolExhaustion() {
         poolExhaustionCounter.inc();
     }
 
+    public void recordPoolSize(long desiredPoolSize) {
+        poolSize.set(desiredPoolSize);
+    }
+
+    @VisibleForTesting
+    Long getPoolSize() {
+        return poolSize.get();
+    }
+
     @SuppressWarnings("unchecked") // Guaranteed to have the correct type
     public void registerPoolMetric(CassandraClientPoolHostLevelMetric metric, Gauge<Long> gauge, int poolNumber) {
         MetricPublicationFilter filter = outlierControllers.get(metric).registerAndCreateFilter(gauge);u}(jx  (32b1efd1deac46330f4d5d125b203b6a950a167dj  batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  Xv  @@ -28,7 +28,6 @@
 import com.google.common.collect.Range;
 import com.google.common.collect.RangeMap;
 import com.google.common.collect.Sets;
-import com.google.common.io.BaseEncoding;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs.ThriftHostsExtractingVisitor;
@@ -63,7 +62,6 @@
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.List;
-import java.util.Locale;
 import java.util.Map;
 import java.util.Objects;
 import java.util.Optional;
@@ -162,10 +160,8 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
                     servers.addAll(hosts);
                     hostToDatacentersThisRefresh.putAll(hostToDatacentersOnThisTokenRange);
 
-                    LightweightOppToken startToken = new LightweightOppToken(BaseEncoding.base16()
-                            .decode(tokenRange.getStart_token().toUpperCase(Locale.ROOT)));
-                    LightweightOppToken endToken = new LightweightOppToken(BaseEncoding.base16()
-                            .decode(tokenRange.getEnd_token().toUpperCase(Locale.ROOT)));
+                    LightweightOppToken startToken = LightweightOppToken.fromHex(tokenRange.getStart_token());
+                    LightweightOppToken endToken = LightweightOppToken.fromHex(tokenRange.getEnd_token());
                     if (startToken.compareTo(endToken) <= 0) {
                         newTokenRing.put(Range.openClosed(startToken, endToken), hosts);
                     } else {u}(jx  (0018cc3f41f93c005b4fbadee9f0f569b180a38cj  datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X&  @@ -35,6 +35,7 @@
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs;
 import com.palantir.atlasdb.cassandra.ImmutableDefaultConfig;
+import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraClientPoolMetrics;
 import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
 import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService;
 import com.palantir.atlasdb.util.MetricsManagers;
@@ -224,7 +225,7 @@ private void runTwoNoopsOnTwoHostsAndThrowFromSecondRunOnFirstHost(Exception exc
     }
 
     private CassandraServer getServerForIndex(int index) {
-        return CassandraServer.of(InetSocketAddress.createUnresolved(Integer.toString(index), index));
+        return CassandraServer.of(InetSocketAddress.createUnresolved(Integer.toString(index), 8000));
     }
 
     @Test
@@ -310,6 +311,7 @@ public void hostIsAutomaticallyRemovedOnStartup() {
 
         createClientPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1);
+        assertPoolSizeMetricIsEqualTo(1);
     }
 
     @Test
@@ -321,10 +323,12 @@ public void hostIsAutomaticallyRemovedOnRefresh() {
 
         createClientPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2, CASS_SERVER_3);
+        assertPoolSizeMetricIsEqualTo(3);
 
         setCassandraServersTo(CASS_SERVER_1, CASS_SERVER_2);
         refreshPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2);
+        assertPoolSizeMetricIsEqualTo(2);
     }
 
     @Test
@@ -495,7 +499,7 @@ private void setCassandraServersTo(CassandraServer... servers) {
 
     private CassandraClientPoolImpl createClientPool() {
         return CassandraClientPoolImpl.createImplForTest(
-                MetricsManagers.createForTests(),
+                MetricsManagers.of(metricRegistry, taggedMetricRegistry),
                 config,
                 refreshableRuntimeConfig,
                 CassandraClientPoolImpl.StartupChecks.DO_NOT_RUN,
@@ -687,4 +691,16 @@ private void setupHostsWithInconsistentTopology(CassandraServer... cassandraServ
     private void refreshPool() {
         deterministicExecutor.tick(POOL_REFRESH_INTERVAL_SECONDS, TimeUnit.SECONDS);
     }
+
+    private void assertPoolSizeMetricIsEqualTo(long expected) {
+        assertThat(taggedMetricRegistry
+                        .<Long>gauge(MetricName.builder()
+                                .safeName(MetricRegistry.name(
+                                        CassandraClientPoolMetrics.class,
+                                        CassandraClientPoolMetrics.POOL_SIZE_METRIC_NAME))
+                                .build())
+                        .get()
+                        .getValue())
+                .isEqualTo(expected);
+    }
 }u}(jx  (3753c37f1661486b791e667b00225ee922b75441j  datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppTokenTest.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X5  @@ -0,0 +1,167 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.conjure.java.lib.Bytes;
+import java.nio.ByteBuffer;
+import java.util.Collection;
+import java.util.Locale;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+import org.junit.runners.Parameterized.Parameter;
+import org.junit.runners.Parameterized.Parameters;
+
+@RunWith(Parameterized.class)
+public class LightweightOppTokenTest {
+    @Parameter()
+    public String input;
+
+    @Parameters(name = "{index}: input=\"{0}\"")
+    public static Collection<Object[]> data() {
+        return TokensTest.generateTokens()
+                .flatMap(input -> Stream.of(input, input.toLowerCase(Locale.ROOT), input.toUpperCase(Locale.ROOT)))
+                .map(input -> new Object[] {input})
+                .collect(Collectors.toList());
+    }
+
+    @Test
+    public void inputsAreValidBase16Strings() {
+        assertThat(input).matches("^[0-9a-fA-F]*$");
+        assertThat(input.length() % 2 == 0)
+                .as("input must be even length to base16 decode")
+                .isTrue();
+        assertThat(CassandraHex.hexToBytes(input)).hasSize(input.length() / 2);
+    }
+
+    @Test
+    public void createFromHexEncodedStringRegardlessOfCase() {
+        LightweightOppToken token = LightweightOppToken.fromHex(input);
+        LightweightOppToken tokenFromLowerCase = LightweightOppToken.fromHex(input.toLowerCase(Locale.ROOT));
+        LightweightOppToken tokenFromUpperCase = LightweightOppToken.fromHex(input.toUpperCase(Locale.ROOT));
+        LightweightOppToken tokenFromBytes = new LightweightOppToken(CassandraHex.hexToBytes(input));
+
+        assertThat(token.bytes)
+                .hasSize(input.length() / 2)
+                .isEqualTo(tokenFromLowerCase.bytes)
+                .isEqualTo(tokenFromUpperCase.bytes)
+                .isEqualTo(tokenFromBytes.bytes);
+        assertThat(token)
+                .isNotNull()
+                .isEqualTo(tokenFromLowerCase)
+                .isEqualTo(tokenFromUpperCase)
+                .isEqualTo(tokenFromBytes)
+                .isEqualByComparingTo(tokenFromLowerCase)
+                .isEqualByComparingTo(tokenFromUpperCase)
+                .isEqualByComparingTo(tokenFromBytes);
+    }
+
+    @Test
+    public void fromHexCorrectlyDeserializesStrings() throws Exception {
+        LightweightOppToken token = LightweightOppToken.fromHex(input);
+        Bytes expectedBytes = Bytes.from(org.apache.commons.codec.binary.Hex.decodeHex(input));
+        assertThat(token.bytes).contains(expectedBytes.asNewByteArray());
+        assertThat(token.isEmpty()).isEqualTo(input.length() == 0);
+        ByteBuffer deserialized = token.deserialize();
+        assertThat(deserialized).isEqualTo(expectedBytes.asReadOnlyByteBuffer());
+        assertThat(deserialized.remaining()).isEqualTo(input.length() / 2);
+        assertThat(token.toString()).isEqualToIgnoringCase(input);
+    }
+
+    @Test
+    public void tokenMatchesCassandraImplementation() throws Exception {
+        // Test compatibility with Cassandra hex conversions from:
+        // https://github.com/palantir/cassandra/blob/palantir-cassandra-2.2.18/src/java/org/apache/cassandra/dht/ByteOrderedPartitioner.java#L74
+        Bytes expectedBytes = Bytes.from(org.apache.commons.codec.binary.Hex.decodeHex(input));
+        String hexFromCassandra = CassandraHex.bytesToHex(expectedBytes.asNewByteArray());
+        byte[] bytesFromCassandra = CassandraHex.hexToBytes(hexFromCassandra);
+        LightweightOppToken token = LightweightOppToken.fromHex(hexFromCassandra);
+        assertThat(Tokens.isAllLowercaseOrDigits(hexFromCassandra))
+                .as("Expect lowercase hex %s", hexFromCassandra)
+                .isTrue();
+        assertThat(token).isEqualTo(new LightweightOppToken(expectedBytes.asNewByteArray()));
+        assertThat(token.bytes).contains(bytesFromCassandra);
+    }
+
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one
+     * or more contributor license agreements.  See the NOTICE file
+     * distributed with this work for additional information
+     * regarding copyright ownership.  The ASF licenses this file
+     * to you under the Apache License, Version 2.0 (the
+     * "License"); you may not use this file except in compliance
+     * with the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+    // Imported from cassandra to test using their conversions
+    // https://github.com/palantir/cassandra/blob/palantir-cassandra-2.2.18/src/java/org/apache/cassandra/utils/Hex.java
+    static final class CassandraHex {
+        private static final byte[] charToByte = new byte[256];
+
+        // package protected for use by ByteBufferUtil. Do not modify this array !!
+        static final char[] byteToChar = new char[16];
+
+        static {
+            for (char c = 0; c < charToByte.length; ++c) {
+                if (c >= '0' && c <= '9') charToByte[c] = (byte) (c - '0');
+                else if (c >= 'A' && c <= 'F') charToByte[c] = (byte) (c - 'A' + 10);
+                else if (c >= 'a' && c <= 'f') charToByte[c] = (byte) (c - 'a' + 10);
+                else charToByte[c] = (byte) -1;
+            }
+
+            for (int i = 0; i < 16; ++i) {
+                byteToChar[i] = Integer.toHexString(i).charAt(0);
+            }
+        }
+
+        public static byte[] hexToBytes(String str) {
+            if (str.length() % 2 == 1)
+                throw new NumberFormatException("An hex string representing bytes must have an even length");
+
+            byte[] bytes = new byte[str.length() / 2];
+            for (int i = 0; i < bytes.length; i++) {
+                byte halfByte1 = charToByte[str.charAt(i * 2)];
+                byte halfByte2 = charToByte[str.charAt(i * 2 + 1)];
+                if (halfByte1 == -1 || halfByte2 == -1) throw new NumberFormatException("Non-hex characters in " + str);
+                bytes[i] = (byte) ((halfByte1 << 4) | halfByte2);
+            }
+            return bytes;
+        }
+
+        public static String bytesToHex(byte... bytes) {
+            char[] c = new char[bytes.length * 2];
+            for (int i = 0; i < bytes.length; i++) {
+                int bint = bytes[i];
+                c[i * 2] = byteToChar[(bint & 0xf0) >> 4];
+                c[1 + i * 2] = byteToChar[bint & 0x0f];
+            }
+
+            return new String(c);
+        }
+    }
+}u}(jx  (db57abd4b23910bc5e3468db860764b587878808j  Watlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/TokensTest.javaj  addedj  Kjj  K j  Kjj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X8  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.io.BaseEncoding;
+import com.google.common.primitives.Longs;
+import java.util.Locale;
+import java.util.concurrent.ThreadLocalRandom;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+import org.junit.Test;
+
+public final class TokensTest {
+    @Test
+    public void decodeHex() {
+        generateTokens().forEach(input -> assertThat(Tokens.hexDecode(input))
+                .as("token '%s'", input)
+                .hasSize(input.length() / 2));
+    }
+
+    @Test
+    public void isAllLowercaseOrDigits() {
+        assertThat(Tokens.isAllLowercaseOrDigits("abcdef01234567890")).isTrue();
+        assertThat(Tokens.isAllLowercaseOrDigits("01234567890abcdef")).isTrue();
+        assertThat(Tokens.isAllLowercaseOrDigits("Abcdef01234567890")).isFalse();
+        assertThat(Tokens.isAllLowercaseOrDigits("01234567890ABCDEF")).isFalse();
+    }
+
+    @Test
+    public void allMatch() {
+        assertThat(Tokens.allMatch("01234567890", Character::isDigit)).isTrue();
+        assertThat(Tokens.allMatch("0123456789A", Character::isDigit)).isFalse();
+        assertThat(Tokens.allMatch("ABCEFGHIJKLMNOPQRSTUVWXYZ", Character::isUpperCase))
+                .isTrue();
+        assertThat(Tokens.allMatch("ABCEFGHIJKLMNOPQRSTUVWXYZ", Character::isLowerCase))
+                .isFalse();
+        assertThat(Tokens.allMatch("abcefghijklmnopqrstuvwxyz", Character::isLowerCase))
+                .isTrue();
+        assertThat(Tokens.allMatch("abcefghijklmnopqrstuvwxyz", Character::isUpperCase))
+                .isFalse();
+    }
+
+    static Stream<String> generateTokens() {
+        return Stream.concat(
+                        Stream.of(
+                                "",
+                                "0F",
+                                "decafbad",
+                                "0123456789ABCDEF",
+                                "0123456789abcdef",
+                                "0123456789Abcdef",
+                                "0123456789aBcdef",
+                                "0123456789abCdef",
+                                "0123456789abcDef",
+                                "0123456789abcdEf",
+                                "0123456789abcdeF",
+                                Long.toHexString(Long.MIN_VALUE),
+                                Long.toHexString(Long.MAX_VALUE)),
+                        Stream.concat(
+                                IntStream.range(0, 32).mapToObj(i -> {
+                                    byte[] bytes = new byte[i * 2];
+                                    ThreadLocalRandom.current().nextBytes(bytes);
+                                    return BaseEncoding.base16().encode(bytes);
+                                }),
+                                IntStream.range(0, 1_000).mapToObj(_i -> BaseEncoding.base16()
+                                        .encode(Longs.toByteArray(
+                                                ThreadLocalRandom.current().nextLong())))))
+                .flatMap(input -> Stream.of(
+                        input, input.toLowerCase(Locale.ROOT), input.toUpperCase(Locale.ROOT), shuffleCase(input)));
+    }
+
+    private static String shuffleCase(String input) {
+        if (input == null || input.isEmpty()) {
+            return input;
+        }
+        StringBuilder sb = new StringBuilder(input.length());
+        for (int i = 0; i < input.length(); i++) {
+            char ch = input.charAt(i);
+            if (Character.isAlphabetic(ch) && ThreadLocalRandom.current().nextBoolean()) {
+                if (Character.isLowerCase(ch)) {
+                    ch = Character.toUpperCase(ch);
+                } else {
+                    ch = Character.toLowerCase(ch);
+                }
+            }
+            sb.append(ch);
+        }
+        return sb.toString();
+    }
+}u}(jx  (bc3e5261d087a84993ba8ae1e523c8b05fc4c179j  patlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetricsTest.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X  @@ -33,6 +33,8 @@ public class CassandraClientPoolMetricsTest {
     private final MetricsManager metricsManager =
             MetricsManagers.of(new MetricRegistry(), new DefaultTaggedMetricRegistry(), Refreshable.only(true));
 
+    private final CassandraClientPoolMetrics metrics = new CassandraClientPoolMetrics(metricsManager);
+
     @Test
     public void metricsAreProducedAndFiltered() {
         CassandraClientPoolMetrics metrics = new CassandraClientPoolMetrics(metricsManager);
@@ -57,6 +59,18 @@ public void metricsAreProducedAndFiltered() {
                 .containsKey(createMeanActiveTimeMillisMetric("mean"));
     }
 
+    @Test
+    public void recordPoolSizeSetsSizeToLastReportedValue() {
+        metrics.recordPoolSize(100);
+        assertThat(metrics.getPoolSize()).isEqualTo(100);
+        metrics.recordPoolSize(-13);
+        assertThat(metrics.getPoolSize()).isEqualTo(-13);
+        metrics.recordPoolSize(25);
+        assertThat(metrics.getPoolSize()).isEqualTo(25);
+        metrics.recordPoolSize(0);
+        assertThat(metrics.getPoolSize()).isEqualTo(0);
+    }
+
     private static MetricName createMeanActiveTimeMillisMetric(String pool) {
         return MetricName.builder()
                 .safeName(MetricRegistry.name(u}(jx  (e01f8f7d37ce43a9eb4672184fb9c3abd935633ej  eatlasdb-commons/src/test/java/com/palantir/common/concurrent/CheckedRejectionExecutorServiceTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X#
  @@ -19,31 +19,38 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.doThrow;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.google.common.util.concurrent.Futures;
 import java.util.concurrent.Callable;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.RejectedExecutionException;
 import org.junit.Test;
+import org.mockito.MockMakers;
 
 public class CheckedRejectionExecutorServiceTest {
     private static final Runnable DO_NOTHING = () -> {};
     private static final Callable<Integer> RETURN_ONE = () -> 1;
-    private static final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION = new RejectedExecutionException();
+    private static final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION =
+            new RejectedExecutionException("test");
 
-    private final ExecutorService delegate = mock(ExecutorService.class);
+    private final ExecutorService delegate =
+            mock(ExecutorService.class, withSettings().mockMaker(MockMakers.SUBCLASS));
     private final CheckedRejectionExecutorService checkedRejectionExecutor =
             new CheckedRejectionExecutorService(delegate);
 
     @Test
     public void passesCallThroughExecute() throws CheckedRejectedExecutionException {
         checkedRejectionExecutor.execute(DO_NOTHING);
         verify(delegate, times(1)).execute(DO_NOTHING);
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
@@ -52,22 +59,27 @@ public void passesCallThroughSubmit() throws CheckedRejectedExecutionException {
         assertThat(Futures.getUnchecked(checkedRejectionExecutor.submit(RETURN_ONE)))
                 .isEqualTo(1);
         verify(delegate, times(1)).submit(RETURN_ONE);
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
     public void propagatesRejectionThroughExecute() {
-        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).execute(any());
+        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).execute(any(Runnable.class));
         assertThatThrownBy(() -> checkedRejectionExecutor.execute(DO_NOTHING))
                 .isInstanceOf(CheckedRejectedExecutionException.class)
                 .hasCause(REJECTED_EXECUTION_EXCEPTION);
+        verify(delegate).execute(eq(DO_NOTHING));
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
     @SuppressWarnings("unchecked") // Mocks
     public void propagatesRejectionThroughSubmit() {
-        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).submit(any(Callable.class));
+        when(delegate.submit(any(Callable.class))).thenThrow(REJECTED_EXECUTION_EXCEPTION);
         assertThatThrownBy(() -> checkedRejectionExecutor.submit(RETURN_ONE))
                 .isInstanceOf(CheckedRejectedExecutionException.class)
                 .hasCause(REJECTED_EXECUTION_EXCEPTION);
+        verify(delegate).submit(eq(RETURN_ONE));
+        verifyNoMoreInteractions(delegate);
     }
 }u}(jx  (d0f9372cc1f1f0ca2951aae2549e2f3c289903e7j  Xatlasdb-commons/src/test/java/com/palantir/common/concurrent/CoalescingSupplierTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X  @@ -24,6 +24,7 @@
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
@@ -49,12 +50,14 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
+import org.mockito.MockMakers;
 
 @RunWith(Parameterized.class)
 public class CoalescingSupplierTest {
     private static final int DEFAULT_VALUE = 123;
 
-    private final Supplier<Integer> delegate = mock(Supplier.class);
+    private final Supplier<Integer> delegate =
+            mock(Supplier.class, withSettings().mockMaker(MockMakers.SUBCLASS));
     private final FreezableSupplier freezableDelegate = new FreezableSupplier(delegate);
     private final CoalescingSupplier<Integer> coalescing = new CoalescingSupplier<>(freezableDelegate);
 u}(jx  (9146e63073d86fe3d770ab7103a6eb65623b8820j  Watlasdb-commons/src/test/java/com/palantir/common/proxy/ExperimentRunningProxyTest.javaj  modifiedj  K	j  Kj  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X-  @@ -21,6 +21,7 @@
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import java.lang.reflect.Proxy;
 import java.time.Clock;
@@ -31,18 +32,21 @@
 import java.util.function.Supplier;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class ExperimentRunningProxyTest {
     private static final int EXPERIMENTAL_RESULT = 123;
     private static final int FALLBACK_RESULT = 1;
     private static final RuntimeException RUNTIME_EXCEPTION = new RuntimeException("foo");
 
-    private final IntSupplier experimentalIntSupplier = mock(IntSupplier.class);
-    private final Supplier<IntSupplier> experimentSupplier = mock(Supplier.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private final IntSupplier experimentalIntSupplier = mock(IntSupplier.class, mockSettings);
+    private final Supplier<IntSupplier> experimentSupplier = mock(Supplier.class, mockSettings);
     private final IntSupplier fallbackIntSupplier = () -> FALLBACK_RESULT;
-    private final BooleanSupplier useExperimental = mock(BooleanSupplier.class);
-    private final BooleanSupplier enableFallback = mock(BooleanSupplier.class);
-    private final Clock clock = mock(Clock.class);
+    private final BooleanSupplier useExperimental = mock(BooleanSupplier.class, mockSettings);
+    private final BooleanSupplier enableFallback = mock(BooleanSupplier.class, mockSettings);
+    private final Clock clock = mock(Clock.class, mockSettings);
     private final AtomicLong errorCounter = new AtomicLong();
 
     private final IntSupplier proxyInstance = intSupplierForProxy(new ExperimentRunningProxy<>(u}(jx  (b0f2716a61e018a00bbe37c55b0a8985af943d96j  Watlasdb-commons/src/test/java/com/palantir/common/proxy/PredicateSwitchedProxyTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X~  @@ -19,14 +19,18 @@
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.withSettings;
 
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.function.IntConsumer;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class PredicateSwitchedProxyTest {
-    private final IntConsumer decorated = mock(IntConsumer.class);
-    private final IntConsumer delegate = mock(IntConsumer.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private final IntConsumer decorated = mock(IntConsumer.class, mockSettings);
+    private final IntConsumer delegate = mock(IntConsumer.class, mockSettings);
 
     private final AtomicBoolean atomicBoolean = new AtomicBoolean(false);
 u}(jx  (afb4f7f151215eb0eb16fab26719c6f0358957e5j  `atlasdb-commons/src/test/java/com/palantir/common/proxy/ReplaceIfExceptionMatchingProxyTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  Xl  @@ -29,16 +29,17 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.mockito.Mock;
+import org.mockito.MockMakers;
 import org.mockito.junit.MockitoJUnitRunner;
 
 // Mock is used as a convenient supplier, alternatives are rather verbose
 @SuppressWarnings("DirectInvocationOnMock")
 @RunWith(MockitoJUnitRunner.class)
 public class ReplaceIfExceptionMatchingProxyTest {
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private TestInterface delegate;
 
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private Supplier<TestInterface> supplier;
 
     interface TestInterface {u}(jx  (d8fe3c284ed462a646f9db9df6e46865f71c8b7fj  Oatlasdb-commons/src/test/java/com/palantir/util/CachedComposedSupplierTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X  @@ -16,7 +16,9 @@
 package com.palantir.util;
 
 import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.concurrent.ExecutorService;
@@ -25,7 +27,7 @@
 import java.util.function.Supplier;
 import org.junit.Before;
 import org.junit.Test;
-import org.mockito.Mockito;
+import org.mockito.MockMakers;
 
 public class CachedComposedSupplierTest {
     private long counter;
@@ -37,7 +39,7 @@ public class CachedComposedSupplierTest {
     public void setup() {
         counter = 0;
         supplierCounter = 0;
-        mockVersionedSupplier = Mockito.mock(Supplier.class);
+        mockVersionedSupplier = mock(Supplier.class, withSettings().mockMaker(MockMakers.SUBCLASS));
         testSupplier = new CachedComposedSupplier<>(this::countingFunction, mockVersionedSupplier);
     }
 u}(jx  (21ad962d9f363b09efeaba7f674e27e337cb763aj  Katlasdb-commons/src/test/java/com/palantir/util/SafeShutdownRunnerTest.javaj  modifiedj  Kj  Kj  K
j  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X  @@ -24,6 +24,7 @@
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import java.time.Duration;
@@ -32,14 +33,17 @@
 import java.util.stream.Stream;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class SafeShutdownRunnerTest {
     private static final RuntimeException EXCEPTION_1 = new RuntimeException("test");
     private static final RuntimeException EXCEPTION_2 = new RuntimeException("bleh");
 
-    private Runnable mockRunnable = mock(Runnable.class);
-    private Runnable throwingRunnable = mock(Runnable.class);
-    private Runnable blockingUninterruptibleRunnable = mock(Runnable.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private Runnable mockRunnable = mock(Runnable.class, mockSettings);
+    private Runnable throwingRunnable = mock(Runnable.class, mockSettings);
+    private Runnable blockingUninterruptibleRunnable = mock(Runnable.class, mockSettings);
 
     @Before
     public void setupMocks() {u}(jx  (66bef959146e2dc5dd5452e6f9606c9e4120c4f4j  Datlasdb-commons/src/test/java/com/palantir/util/TimedRunnerTest.javaj  modifiedj  K	j  Kj  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X	  @@ -23,19 +23,23 @@
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.util.TimedRunner.TaskContext;
 import java.time.Duration;
 import java.util.concurrent.Callable;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public final class TimedRunnerTest {
     private static final RuntimeException EXCEPTION_1 = new RuntimeException("test");
     private static final RuntimeException EXCEPTION_2 = new RuntimeException("bleh");
 
-    private Runnable noOpRunnable = mock(Runnable.class);
-    private Runnable throwingRunnable = mock(Runnable.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private Runnable noOpRunnable = mock(Runnable.class, mockSettings);
+    private Runnable throwingRunnable = mock(Runnable.class, mockSettings);
 
     @Before
     public void setupMocks() {
@@ -46,7 +50,7 @@ public void setupMocks() {
     public void runnerRunsOneTask() throws Exception {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
 
-        Callable<Integer> task = mock(Callable.class);
+        Callable<Integer> task = mock(Callable.class, mockSettings);
         when(task.call()).thenReturn(5);
         int result = runner.run(TaskContext.create(task, noOpRunnable));
 
@@ -58,7 +62,7 @@ public void runnerRunsOneTask() throws Exception {
     @Test
     public void exceptionsAreThrownWhenRunningSingleton() {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
-        Runnable failureHandler = mock(Runnable.class);
+        Runnable failureHandler = mock(Runnable.class, mockSettings);
 
         assertThatThrownBy(() -> runner.run(TaskContext.createRunnable(throwingRunnable, failureHandler)))
                 .isEqualTo(EXCEPTION_1);
@@ -68,7 +72,7 @@ public void exceptionsAreThrownWhenRunningSingleton() {
     @Test
     public void correctSuppressedExceptionsAreThrownIfFailureHandlerThrows() {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
-        Runnable failureHandler = mock(Runnable.class);
+        Runnable failureHandler = mock(Runnable.class, mockSettings);
         doThrow(EXCEPTION_2).when(failureHandler).run();
 
         assertThatThrownBy(() -> runner.run(TaskContext.createRunnable(throwingRunnable, failureHandler)))u}(jx  (d3d0934580d2238766440f21f24a6cdcdb89c589j  _atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTable.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X  @@ -95,12 +95,15 @@ public static OracleDdlTable create(
 
     @Override
     public void create(byte[] tableMetadata) {
+        log.info("Attempting to create table {}.", LoggingArgs.tableRef(tableRef));
         TableMetadata metadata = TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMetadata);
         boolean needsOverflow = needsOverflow(metadata);
         int compressionSetting = getOptimalIndexCompression(metadata);
 
         if (tableExists()) {
+            log.info("Table {} already exists.", LoggingArgs.tableRef(tableRef));
             if (needsOverflow) {
+                log.info("Table {} needs overflow.", LoggingArgs.tableRef(tableRef));
                 TableValueStyle existingStyle = valueStyleCache.getTableType(conns, tableRef, config.metadataTable());
                 if (existingStyle != TableValueStyle.OVERFLOW) {
                     throwForMissingOverflowTable();
@@ -126,9 +129,20 @@ public void create(byte[] tableMetadata) {
     }
 
     private void maybeAlterTableToHaveOverflowColumn() {
+        log.info("Potentially altering table {} to have overflow column.", LoggingArgs.tableRef(tableRef));
         if (config.alterTablesOrMetadataToMatch().contains(tableRef)) {
+            log.info("Config contains table {}, checking if we can alter table.", LoggingArgs.tableRef(tableRef));
             try {
                 String shortTableName = oracleTableNameGetter.getInternalShortTableName(conns, tableRef);
+                log.info(
+                        "Table name: {}, Overflow table migrated status: {}, overflow table existence status: {}, "
+                                + "overflow "
+                                + "column exists status: {}",
+                        LoggingArgs.tableRef(tableRef),
+                        SafeArg.of("overflowTableHasMigrated", overflowTableHasMigrated()),
+                        SafeArg.of("overflowTableExists", overflowTableExists()),
+                        SafeArg.of("overflowColumnExists", overflowColumnExists(shortTableName)));
+
                 if (overflowTableHasMigrated() && overflowTableExists() && !overflowColumnExists(shortTableName)) {
                     alterTableToHaveOverflowColumn(shortTableName);
                 }u}(jx  (88f8467b9c138fc4cb41ea3c961977dd5dd0f8e4j   atlasdb-impl-shared/build.gradlej  modifiedj  Kj  K j  Kj  thttps://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-impl-shared%2Fbuild.gradlej  shttps://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-impl-shared%2Fbuild.gradlej  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fbuild.gradle?ref=53f180b023489f7515cc376cd17882950cde86cfj  X
  @@ -12,6 +12,7 @@ license {
   exclude '**/PutUnlessExistsTableMetrics.java'
   exclude '**/TargetedSweepProgressMetrics.java'
   exclude '**/TimestampCorrectnessMetrics.java'
+  exclude '**/ExpectationsMetrics.java'
   exclude '**/VerificationModeMetrics.java'
 }
 u}(jx  (c480df0088f6789eb9035ca913cc7cc57d932d70j  _atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/watch/TimestampMapping.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X  @@ -16,12 +16,17 @@
 
 package com.palantir.atlasdb.keyvalue.api.watch;
 
-import com.google.common.collect.MoreCollectors;
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.Collections2;
 import com.google.common.collect.Range;
 import com.palantir.lock.watch.LockWatchVersion;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Iterator;
 import java.util.LongSummaryStatistics;
 import java.util.Map;
+import java.util.Objects;
 import java.util.UUID;
 import org.immutables.value.Value;
 
@@ -44,10 +49,8 @@ default LockWatchVersion lastVersion() {
 
     @Value.Derived
     default UUID leader() {
-        return timestampMapping().values().stream()
-                .map(LockWatchVersion::id)
-                .distinct()
-                .collect(MoreCollectors.onlyElement());
+        // explicitly avoiding stream and distinct collection copy when all IDs should be identical
+        return identicalElement(Collections2.transform(timestampMapping().values(), LockWatchVersion::id));
     }
 
     @Value.Check
@@ -58,4 +61,20 @@ default void nonEmptyMapping() {
     static ImmutableTimestampMapping.Builder builder() {
         return ImmutableTimestampMapping.builder();
     }
+
+    @VisibleForTesting
+    static <T> T identicalElement(Iterable<? extends T> iterable) {
+        Iterator<? extends T> iterator = iterable.iterator();
+        T element = iterator.next();
+        while (iterator.hasNext()) {
+            T next = iterator.next();
+            if (!Objects.equals(element, next)) {
+                throw new SafeIllegalArgumentException(
+                        "Input contains multiple distinct elements",
+                        SafeArg.of("element", element),
+                        SafeArg.of("next", next));
+            }
+        }
+        return element;
+    }
 }u}(jx  (f93956c564df967c827fb4d2fd2ff0c499a92050j  `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj  modifiedj  K!j  Kj  K%j  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X  @@ -98,6 +98,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueServiceImpl;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
@@ -265,12 +266,14 @@ private enum State {
     protected final TableLevelMetricsController tableLevelMetricsController;
     protected final SuccessCallbackManager successCallbackManager = new SuccessCallbackManager();
     private final CommitTimestampLoader commitTimestampLoader;
+    private final ExpectationsMetrics expectationsDataCollectionMetrics;
 
     protected volatile boolean hasReads;
 
     protected final TimestampCache timestampCache;
 
     protected final TransactionKnowledgeComponents knowledge;
+
     protected final Closer closer = Closer.create();
 
     /**
@@ -345,6 +348,7 @@ private enum State {
                 timelockService,
                 immutableTimestamp,
                 knowledge);
+        this.expectationsDataCollectionMetrics = ExpectationsMetrics.of(metricsManager.getTaggedRegistry());
     }
 
     protected TransactionScopedCache getCache() {
@@ -1817,11 +1821,16 @@ private void ensureUncommitted() {
     }
 
     private void ensureStillRunning() {
-        if (!(state.get() == State.UNCOMMITTED || state.get() == State.COMMITTING)) {
+        if (!isStillRunning()) {
             throw new CommittedTransactionException();
         }
     }
 
+    private boolean isStillRunning() {
+        State stateNow = state.get();
+        return stateNow == State.UNCOMMITTED || stateNow == State.COMMITTING;
+    }
+
     /**
      * Returns true iff the transaction is known to have successfully committed.
      *
@@ -1950,8 +1959,9 @@ private void commitWrites(TransactionService transactionService) {
                 if (validationNecessaryForInvolvedTablesOnCommit()) {
                     throwIfImmutableTsOrCommitLocksExpired(null);
                 }
-                return;
             }
+            getTimer("nonWriteCommitTotalTimeSinceTxCreation")
+                    .update(Duration.of(transactionTimerContext.stop(), ChronoUnit.NANOS));
             return;
         }
 
@@ -2596,9 +2606,28 @@ public TransactionReadInfo getReadInfo() {
         return keyValueService.getOverallReadInfo();
     }
 
-    // TODO(aalouane): implement and call this on transaction exit
     @Override
-    public void reportExpectationsCollectedData() {}
+    public void reportExpectationsCollectedData() {
+        if (isStillRunning()) {
+            log.error(
+                    "reportExpectationsCollectedData is called on an in-progress transaction",
+                    SafeArg.of("state", state.get()));
+            return;
+        }
+
+        reportExpectationsCollectedData(getAgeMillis(), getReadInfo(), expectationsDataCollectionMetrics);
+    }
+
+    @VisibleForTesting
+    static void reportExpectationsCollectedData(
+            long ageMillis, TransactionReadInfo readInfo, ExpectationsMetrics metrics) {
+        metrics.ageMillis().update(ageMillis);
+        metrics.bytesRead().update(readInfo.bytesRead());
+        metrics.kvsReads().update(readInfo.kvsCalls());
+
+        readInfo.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
+                .update(kvsCallReadInfo.bytesRead()));
+    }
 
     private long getStartTimestamp() {
         return startTimestamp.get();u     }(jx  (e696a4e851cc0de0f72f1af470c874f29b2e719bj  5atlasdb-impl-shared/src/main/metrics/expectations.ymlj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=53f180b023489f7515cc376cd17882950cde86cfj  X  @@ -0,0 +1,19 @@
+options:
+  javaPackage: 'com.palantir.atlasdb.transaction.expectations'
+
+namespaces:
+  expectations:
+    docs: Data collection on transaction patterns
+    metrics:
+      bytesRead:
+        docs: Bytes read by a transaction through Atlas kvs read calls
+        type: histogram
+      kvsReads:
+        docs: Number of Atlas kvs read calls made by a transaction
+        type: histogram
+      ageMillis:
+        docs: Elapsed duration in milliseconds for a transaction
+        type: histogram
+      mostKvsBytesReadInSingleCall:
+        docs: Most bytes read by a transaction in one Atlas kvs read call
+        type: histogramu}(jx  (2de6f288bf092213b4b2345a73a735695f0f3c27j  catlasdb-impl-shared/src/test/java/com/palantir/atlasdb/keyvalue/api/watch/TimestampMappingTest.javaj  addedj  K\j  K j  K\j  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X;  @@ -0,0 +1,92 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.api.watch;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.google.common.collect.Iterables;
+import com.palantir.lock.watch.LockWatchVersion;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import java.util.NoSuchElementException;
+import java.util.UUID;
+import org.junit.Test;
+
+public class TimestampMappingTest {
+    @Test
+    public void singleLeaderMappingIsValid() {
+        UUID id = UUID.randomUUID();
+        ImmutableTimestampMapping timestampMapping = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(id, 1))
+                .build();
+        assertThat(timestampMapping.leader()).isEqualTo(id);
+    }
+
+    @Test
+    public void singleDistinctLeaderMappingIsValid() {
+        UUID id = UUID.randomUUID();
+        ImmutableTimestampMapping timestampMapping = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(id, 1))
+                .putTimestampMapping(2L, LockWatchVersion.of(id, 1))
+                .build();
+        assertThat(timestampMapping.leader()).isEqualTo(id);
+    }
+
+    @Test
+    public void conflictingLeaderMappingIsInvalid() {
+        ImmutableTimestampMapping.Builder builder = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(UUID.randomUUID(), 1))
+                .putTimestampMapping(2L, LockWatchVersion.of(UUID.randomUUID(), 1));
+
+        assertThatThrownBy(builder::build)
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+    }
+
+    @Test
+    public void emptyMappingIsInvalid() {
+        assertThatThrownBy(() -> TimestampMapping.builder().build())
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("Invalid range");
+    }
+
+    @Test
+    public void onlyIdenticalElements() {
+        assertThat(TimestampMapping.identicalElement(List.of("test"))).isEqualTo("test");
+        assertThat(TimestampMapping.identicalElement(Iterables.limit(Iterables.cycle("test"), 1000)))
+                .isEqualTo("test");
+        assertThat(TimestampMapping.identicalElement(Iterables.limit(Iterables.cycle(42L), 1000)))
+                .isEqualTo(42L);
+    }
+
+    @Test
+    public void emptyDistinctElements() {
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of()))
+                .isInstanceOf(NoSuchElementException.class);
+    }
+
+    @Test
+    public void multipleDistinctElements() {
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of("a", "b", "a")))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of("a", "a", "b")))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+    }
+}u}(jx  (c8823c29da58eca2fbdcdf7fc98f8ab892c82d54j  matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javaj  addedj  KSj  K j  KSj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X<
  @@ -0,0 +1,83 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class ExpectationsMetricsReportingTest {
+    // immutable in type declaration for better 'withX' ergonomics
+    private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
+            ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
+
+    private ExpectationsMetrics metrics;
+
+    @Before
+    public void setUp() {
+        metrics = ExpectationsMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
+    }
+
+    @Test
+    public void ageReported() {
+        long age = 129L;
+        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, metrics);
+        assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
+    }
+
+    @Test
+    public void bytesReadReported() {
+        long bytes = 1290L;
+        reportMetrics(BLANK_READ_INFO.withBytesRead(bytes));
+        assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
+    }
+
+    @Test
+    public void kvsCallsReported() {
+        long calls = 12L;
+        reportMetrics(BLANK_READ_INFO.withKvsCalls(calls));
+        assertThat(metrics.kvsReads().getSnapshot().getValues()).containsOnly(calls);
+    }
+
+    @Test
+    public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
+        reportMetrics(BLANK_READ_INFO);
+        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+                .isEmpty();
+    }
+
+    @Test
+    public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
+        long bytes = 193L;
+        reportMetrics(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+                .containsOnly(bytes);
+    }
+
+    private void reportMetrics(TransactionReadInfo readInfo) {
+        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, metrics);
+    }
+}u}(jx  (18e3bf26bf01f5384536788e145f8e8f37200656j  latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X  @@ -237,7 +237,10 @@ public void registersMetrics() throws InterruptedException {
         TaggedMetricRegistry registry = snapshotTransactionManager.metricsManager.getTaggedRegistry();
         assertThat(registry.getMetrics().keySet().stream().map(MetricName::safeName))
                 .contains(SETUP_TASK_METRIC_NAME)
-                .contains(FINISH_TASK_METRIC_NAME);
+                .contains(FINISH_TASK_METRIC_NAME)
+                .contains("expectations.bytesRead")
+                .contains("expectations.kvsReads")
+                .contains("expectations.ageMillis");
         assertThat(registry.timer(MetricName.builder()
                                 .safeName(SETUP_TASK_METRIC_NAME)
                                 .build())u}(jx  (9ce74a5cd2c6d02324dae753b39d4472d7e0fcadj  -atlasdb-workload-server-antithesis/Dockerfilej  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server-antithesis%2FDockerfilej  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server-antithesis%2FDockerfilej  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2FDockerfile?ref=53f180b023489f7515cc376cd17882950cde86cfj  @@ -1,4 +1,6 @@
 FROM scratch
 MAINTAINER AtlasDB Team
 
-ADD docker-compose.yml /
\ No newline at end of file
+ADD docker-compose.yml /
+ADD compact.sh /
+ADD flush.sh /
\ No newline at end of fileu}(jx  (b284936b64cae7e6b461c14a3b7d116eadd96a23j  /atlasdb-workload-server-antithesis/build.gradlej  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server-antithesis%2Fbuild.gradlej  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server-antithesis%2Fbuild.gradlej  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fbuild.gradle?ref=53f180b023489f7515cc376cd17882950cde86cfj  XL  @@ -7,5 +7,5 @@ def imageVersion = "${project.version.toString().replaceAll('\\+', '-')}"
 docker {
     name "palantirtechnologies/${project.name}:${imageVersion}"
     tags 'latest', 'snapshot'
-    files 'var/docker-compose.yml'
+    files 'var/docker-compose.yml', 'var/compact.sh', 'var/flush.sh'
 }
\ No newline at end of fileu}(jx  (d4fbc32c29d514c2d7a88a64e0fbc48b94b74465j  matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/CrossCellInconsistency.javaj  addedj  K-j  K j  K-j  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistency.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistency.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistency.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.Map;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+/**
+ * A set of cells that may individually be valid, but considered together may violate some property that is expected
+ * to hold across the group of cells.
+ */
+@Value.Immutable
+public interface CrossCellInconsistency {
+    Map<TableAndWorkloadCell, Optional<Integer>> inconsistentValues();
+
+    @Value.Check
+    default void consistsOfAtLeastTwoCells() {
+        Preconditions.checkArgument(
+                inconsistentValues().size() >= 2,
+                "A cross-cell inconsistency must consist of at least two cells",
+                SafeArg.of("values", inconsistentValues()));
+    }
+
+    static ImmutableCrossCellInconsistency.Builder builder() {
+        return ImmutableCrossCellInconsistency.builder();
+    }
+}u}(jx  (a7473ea1e605ae08dd6feec971f0cd30384c89e4j  qatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/invariant/CrossCellInconsistencyTest.javaj  addedj  K;j  K j  K;j  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistencyTest.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistencyTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistencyTest.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X
  @@ -0,0 +1,59 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Optional;
+import org.junit.Test;
+
+public class CrossCellInconsistencyTest {
+    // The constants in WorkloadTestHelper are not accessible from this package.
+    private static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_ONE =
+            TableAndWorkloadCell.of("foo", ImmutableWorkloadCell.of(1, 2));
+    private static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
+            TableAndWorkloadCell.of("foo", ImmutableWorkloadCell.of(3, 4));
+
+    @Test
+    public void cannotBeCreatedWithoutCells() {
+        assertThatThrownBy(() -> CrossCellInconsistency.builder().build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("A cross-cell inconsistency must consist of at least two cells");
+    }
+
+    @Test
+    public void cannotBeCreatedWithJustOneCell() {
+        assertThatThrownBy(() -> CrossCellInconsistency.builder()
+                        .putInconsistentValues(TABLE_WORKLOAD_CELL_ONE, Optional.of(3))
+                        .build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("A cross-cell inconsistency must consist of at least two cells");
+    }
+
+    @Test
+    public void canBeCreatedWithTwoCells() {
+        CrossCellInconsistency violation = CrossCellInconsistency.builder()
+                .putInconsistentValues(TABLE_WORKLOAD_CELL_ONE, Optional.of(3))
+                .putInconsistentValues(TABLE_WORKLOAD_CELL_TWO, Optional.empty())
+                .build();
+        assertThat(violation.inconsistentValues()).containsOnlyKeys(TABLE_WORKLOAD_CELL_ONE, TABLE_WORKLOAD_CELL_TWO);
+    }
+}u}(jx  (dc41d93cfc62da8e575d2e4bb661c0faf17b9fe6j  1atlasdb-workload-server-distribution/build.gradlej  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server-distribution%2Fbuild.gradlej  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server-distribution%2Fbuild.gradlej  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=53f180b023489f7515cc376cd17882950cde86cfj  X6  @@ -1,7 +1,7 @@
 apply plugin: 'com.palantir.sls-java-service-distribution'
 apply plugin: 'com.palantir.external-publish-dist'
-apply from: "../gradle/docker.gradle"
 apply from: "../gradle/shared.gradle"
+apply from: "../gradle/docker.gradle"
 apply from: "../gradle/non-client-dist.gradle"
 
 dependencies {u}(jx  (a7e3be37946c0f08a8a2778a6b3a096b689a7f4cj  latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj  modifiedj  KBj  Kj  KJj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X   @@ -22,6 +22,7 @@
 import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.common.util.concurrent.Uninterruptibles;
 import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
@@ -38,13 +39,17 @@
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
+import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflows;
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
 import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.refreshable.Refreshable;
@@ -55,6 +60,7 @@
 import io.dropwizard.lifecycle.setup.LifecycleEnvironment;
 import io.dropwizard.setup.Bootstrap;
 import io.dropwizard.setup.Environment;
+import java.time.Instant;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
@@ -126,15 +132,21 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().singleRowTwoCellsConfig();
         RingWorkflowConfiguration ringWorkflowConfiguration =
                 configuration.install().ringConfig();
+        TransientRowsWorkflowConfiguration transientRowsWorkflowConfiguration =
+                configuration.install().transientRowsConfig();
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
 
+        waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
+
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
                 .run(
                         createSingleRowTwoCellsWorkflowValidator(
                                 transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
                         createRingWorkflowValidator(
                                 transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()),
+                        createTransientRowsWorkflowValidator(
+                                transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
                         createSingleBusyCellWorkflowValidator(
                                 transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()));
 
@@ -147,6 +159,49 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
+    private void waitForTransactionStoreFactoryToBeInitialized(AtlasDbTransactionStoreFactory factory) {
+        // TODO (jkong): This is awful, but sufficient for now.
+        Instant deadline = Instant.now().plusSeconds(TimeUnit.MINUTES.toSeconds(5));
+        while (Instant.now().isBefore(deadline)) {
+            if (factory.isInitialized()) {
+                log.info("AtlasDB transaction store factory initialized.");
+                return;
+            } else {
+                log.info(
+                        "AtlasDB transaction store factory not yet initialized. Waiting for five seconds; we won't"
+                                + " retry after {}.",
+                        SafeArg.of("deadline", deadline));
+                Uninterruptibles.sleepUninterruptibly(5, TimeUnit.SECONDS);
+            }
+        }
+        log.error("AtlasDB transaction store factory not initialized after five minutes, which suggests that there's"
+                + " likely to be some issue with starting up one of our service's dependencies.");
+        log.info("antithesis: terminate");
+        log.error("Workflow will now exit.");
+        System.exit(1);
+    }
+
+    private WorkflowAndInvariants<Workflow> createTransientRowsWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            TransientRowsWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService =
+                createExecutorService(workflowConfig, lifecycle, TransientRowsWorkflows.class);
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(TransientRowsWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        TransientRowsWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .addInvariantReporters(TransientRowsWorkflows.getSummaryLogInvariantReporter(workflowConfig))
+                .build();
+    }
+
     private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             SingleBusyCellWorkflowConfiguration workflowConfig,
@@ -179,10 +234,7 @@ private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             RingWorkflowConfiguration workflowConfig,
             LifecycleEnvironment lifecycle) {
-        ExecutorService executorService = lifecycle
-                .executorService(RingWorkflows.class.getSimpleName())
-                .maxThreads(workflowConfig.maxThreadCount())
-                .build();
+        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RingWorkflows.class);
         InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
                 Map.of(
                         workflowConfig.tableConfiguration().tableName(),
@@ -196,10 +248,8 @@ private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             SingleRowTwoCellsWorkflowConfiguration workflowConfig,
             LifecycleEnvironment lifecycle) {
-        ExecutorService executorService = lifecycle
-                .executorService(RingWorkflows.class.getSimpleName())
-                .maxThreads(workflowConfig.maxThreadCount())
-                .build();
+        ExecutorService executorService =
+                createExecutorService(workflowConfig, lifecycle, SingleRowTwoCellsWorkflows.class);
         TransactionStore transactionStore = transactionStoreFactory.create(
                 Map.of(
                         workflowConfig.tableConfiguration().tableName(),
@@ -224,4 +274,12 @@ CountDownLatch workflowsRanLatch() {
     TaggedMetricRegistry getTaggedMetricRegistry() {
         return taggedMetricRegistry;
     }
+
+    private static <T> ExecutorService createExecutorService(
+            WorkflowConfiguration workflowConfig, LifecycleEnvironment lifecycle, Class<T> workflowFactoryClass) {
+        return lifecycle
+                .executorService(workflowFactoryClass.getSimpleName())
+                .maxThreads(workflowConfig.maxThreadCount())
+                .build();
+    }
 }u}(jx  (3ef80d1a92d430c99a0805e5c1e1c3f77a0980d9j  atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X  @@ -21,6 +21,7 @@
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
 
@@ -34,6 +35,8 @@ public interface WorkloadServerInstallConfiguration {
 
     RingWorkflowConfiguration ringConfig();
 
+    TransientRowsWorkflowConfiguration transientRowsConfig();
+
     SingleBusyCellWorkflowConfiguration singleBusyCellConfig();
 
     boolean exitAfterRunning();u}(jx  (72629e641e22a5415761b5cb52c0bf3011604525j  Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=53f180b023489f7515cc376cd17882950cde86cfj  XN  @@ -9,13 +9,19 @@ install:
       tableName: two-cells-test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
-    type: singleRowTwoCells
+    type: single-row-two-cells
   ringConfig:
     tableConfiguration:
       tableName: ring-test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: ring
+  transientRowsConfig:
+    tableConfiguration:
+      tableName: transient-rows-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: transient-rows
   singleBusyCellConfig:
     tableConfiguration:
       tableName: single-busy-cell-testu}(jx  (c2e6a9870bb0b9bd58749ef485010ca70071dcc1j  Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj  modifiedj  K
j  Kj  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=53f180b023489f7515cc376cd17882950cde86cfj  Xj  @@ -19,6 +19,7 @@ runtime:
           trustStorePath: "var/security/trustStore.jks"
 install:
   atlas:
+    initializeAsync: true
     keyValueService:
       type: cassandra
       servers:
@@ -36,6 +37,7 @@ install:
         password: cassandra
       ssl: false
       replicationFactor: 3
+      gcGraceSeconds: 300
     targetedSweep:
       enableSweepQueueWrites: true
     namespace: workload_server
@@ -44,16 +46,22 @@ install:
       tableName: two_cells_test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
-    type: singleRowTwoCells
+    type: single-row-two-cells
   ringConfig:
     tableConfiguration:
       tableName: ring_test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: ring
+  transientRowsConfig:
+    tableConfiguration:
+      tableName: transient_rows_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: transient-rows
   singleBusyCellConfig:
     tableConfiguration:
-      tableName: single-busy-cell-test
+      tableName: single_busy_cell_test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: single-busy-cellu}(jx  (ad7fc8f3b33e885222871c0d26e5884631c2ffcaj  Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj  modifiedj  K	j  Kj  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=53f180b023489f7515cc376cd17882950cde86cfj  X
  @@ -1,21 +1,28 @@
 runtime: {}
 install:
   atlas:
-    namespace: test
+    initializeAsync: true
     keyValueService:
       type: memory
+    namespace: test
   singleRowTwoCellsConfig:
     tableConfiguration:
       tableName: two-cells-test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
-    type: singleRowTwoCells
+    type: single-row-two-cells
   ringConfig:
     tableConfiguration:
       tableName: ring-test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: ring
+  transientRowsConfig:
+    tableConfiguration:
+      tableName: transient-rows-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: transient-rows
   singleBusyCellConfig:
     tableConfiguration:
       tableName: single-busy-cell-testu}(jx  (d7dd783c1221e2a93fad625414ea628dac4c9695j  matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X  @@ -54,6 +54,10 @@ public AtlasDbTransactionStoreFactory(TransactionManager transactionManager, Opt
         this.maybeNamespace = maybeNamespace.map(Namespace::create);
     }
 
+    public boolean isInitialized() {
+        return transactionManager.isInitialized();
+    }
+
     @Override
     public InteractiveTransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
         return AtlasDbTransactionStore.create(transactionManager, toAtlasTables(tables, indexes));u}(jx  (f101f419a9c4366406e60fd1ca898e4645dbf939j  xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  Xy  @@ -27,7 +27,7 @@
 @JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
 @JsonTypeName(SingleRowTwoCellsWorkflowConfiguration.TYPE)
 public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfiguration {
-    String TYPE = "singleRowTwoCells";
+    String TYPE = "single-row-two-cells";
 
     TableConfiguration tableConfiguration();
 u}(jx  (32ce774d4a8fd320c1af7af7c838de4f7f6065e3j  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javaj  modifiedj  K	j  Kj  K
j  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X  @@ -28,6 +28,9 @@
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
 import java.util.Optional;
 import java.util.stream.Collectors;
@@ -39,6 +42,7 @@
  * to delete the other.
  */
 public final class SingleRowTwoCellsWorkflows {
+    private static final SafeLogger log = SafeLoggerFactory.get(SingleRowTwoCellsWorkflows.class);
     private static final int SINGLE_ROW = 1;
     private static final int FIRST_COLUMN = 1;
     private static final int SECOND_COLUMN = 2;
@@ -70,7 +74,11 @@ private static Optional<WitnessedTransaction> run(
 
         List<TransactionAction> transactionActions = createTransactionActions(
                 taskIndex, workflowConfiguration.tableConfiguration().tableName());
-        return store.readWrite(transactionActions);
+        Optional<WitnessedTransaction> maybeTransaction = store.readWrite(transactionActions);
+        maybeTransaction.ifPresent(_transaction -> log.info(
+                "Transaction successfully committed for single row two cells workflow for task index {}.",
+                SafeArg.of("taskIndex", taskIndex)));
+        return maybeTransaction;
     }
 
     @VisibleForTestingu}(jx  (be3aea7c363f3e52d9c0332e95d106f0c15597f5j  tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowConfiguration.javaj  addedj  K j  K j  K j  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowConfiguration.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowConfiguration.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X9  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableTransientRowsWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableTransientRowsWorkflowConfiguration.class)
+@JsonTypeName(TransientRowsWorkflowConfiguration.TYPE)
+public interface TransientRowsWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "transient-rows";
+
+    TableConfiguration tableConfiguration();
+}u}(jx  (e241fdc9d3a00c562a7db738e208917cb7511f83j  hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X$  @@ -0,0 +1,184 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.invariant.CrossCellInconsistency;
+import com.palantir.atlasdb.workload.invariant.ImmutableInvariantReporter;
+import com.palantir.atlasdb.workload.invariant.Invariant;
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.security.SecureRandom;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import java.util.Set;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+public final class TransientRowsWorkflows {
+    private static final SafeLogger log = SafeLoggerFactory.get(TransientRowsWorkflows.class);
+
+    @VisibleForTesting
+    static final int SUMMARY_ROW = -1;
+
+    @VisibleForTesting
+    static final int COLUMN = 1;
+
+    @VisibleForTesting
+    static final int VALUE = 0;
+
+    private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+
+    private TransientRowsWorkflows() {}
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            TransientRowsWorkflowConfiguration workflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        return DefaultWorkflow.create(
+                store,
+                (txn, taskIndex) -> run(store, workflowConfiguration, taskIndex),
+                workflowConfiguration,
+                executionExecutor);
+    }
+
+    private static Optional<WitnessedTransaction> run(
+            InteractiveTransactionStore store, TransientRowsWorkflowConfiguration configuration, int taskIndex) {
+        return store.readWrite(txn -> {
+            String tableName = configuration.tableConfiguration().tableName();
+            txn.write(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex), VALUE);
+            txn.write(tableName, ImmutableWorkloadCell.of(taskIndex, COLUMN), VALUE);
+            if (taskIndex > 0) {
+                int indexToRead = SECURE_RANDOM.nextInt(taskIndex);
+                txn.read(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, indexToRead));
+                txn.read(tableName, ImmutableWorkloadCell.of(indexToRead, COLUMN));
+
+                if (txn.read(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN))
+                        .isPresent()) {
+                    txn.delete(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex - 1));
+                    txn.delete(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN));
+                }
+            }
+        });
+    }
+
+    public static InvariantReporter<List<CrossCellInconsistency>> getSummaryLogInvariantReporter(
+            TransientRowsWorkflowConfiguration configuration) {
+        return ImmutableInvariantReporter.<List<CrossCellInconsistency>>builder()
+                .invariant(createSummaryRowInvariant(configuration))
+                .consumer(violations -> {
+                    if (!violations.isEmpty()) {
+                        log.error(
+                                "Detected rows which did not agree with state in a summary index: {}",
+                                SafeArg.of("violations", violations));
+                    }
+                })
+                .build();
+    }
+
+    private static Invariant<List<CrossCellInconsistency>> createSummaryRowInvariant(
+            TransientRowsWorkflowConfiguration configuration) {
+        return (workflowHistory, notifier) -> {
+            List<CrossCellInconsistency> violations = new ArrayList<>();
+            ReadableTransactionStore store = workflowHistory.transactionStore();
+
+            violations.addAll(findInconsistencyInTransactionHistory(workflowHistory.history()));
+            violations.addAll(findInconsistencyInFinalIndexState(configuration, store));
+
+            notifier.accept(violations);
+        };
+    }
+
+    private static List<CrossCellInconsistency> findInconsistencyInTransactionHistory(
+            List<WitnessedTransaction> history) {
+        return history.stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(TransientRowsWorkflows::findInconsistencyInTransactionActions)
+                .collect(Collectors.toList());
+    }
+
+    private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActions(
+            List<WitnessedTransactionAction> actions) {
+        Set<WitnessedReadTransactionAction> readTransactionActions = actions.stream()
+                .filter(WitnessedReadTransactionAction.class::isInstance)
+                .map(action -> (WitnessedReadTransactionAction) action)
+                .collect(Collectors.toSet());
+        if (readTransactionActions.size() == 0) {
+            return Stream.empty();
+        }
+        WitnessedReadTransactionAction summaryRowRead = readTransactionActions.stream()
+                .filter(action -> action.cell().key() == SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of the summary row", SafeArg.of("actions", actions)));
+        WitnessedReadTransactionAction normalRowRead = readTransactionActions.stream()
+                .filter(action -> action.cell().key() != SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of a normal row", SafeArg.of("actions", actions)));
+        if (!summaryRowRead.value().equals(normalRowRead.value())) {
+            return Stream.of(CrossCellInconsistency.builder()
+                    .putInconsistentValues(
+                            TableAndWorkloadCell.of(summaryRowRead.table(), summaryRowRead.cell()),
+                            summaryRowRead.value())
+                    .putInconsistentValues(
+                            TableAndWorkloadCell.of(normalRowRead.table(), normalRowRead.cell()), normalRowRead.value())
+                    .build());
+        } else {
+            return Stream.empty();
+        }
+    }
+
+    private static List<CrossCellInconsistency> findInconsistencyInFinalIndexState(
+            TransientRowsWorkflowConfiguration configuration, ReadableTransactionStore store) {
+        List<CrossCellInconsistency> violations = new ArrayList<>();
+        String tableName = configuration.tableConfiguration().tableName();
+        Set<Integer> taskIndices =
+                IntStream.range(0, configuration.iterationCount()).boxed().collect(Collectors.toSet());
+        taskIndices.forEach(index -> checkSummaryConsistencyForIndex(violations, store, tableName, index));
+        return violations;
+    }
+
+    private static void checkSummaryConsistencyForIndex(
+            List<CrossCellInconsistency> violations, ReadableTransactionStore store, String tableName, Integer index) {
+        WorkloadCell primaryCell = ImmutableWorkloadCell.of(index, COLUMN);
+        Optional<Integer> valueFromPrimaryRow = store.get(tableName, primaryCell);
+        WorkloadCell summaryCell = ImmutableWorkloadCell.of(SUMMARY_ROW, index);
+        Optional<Integer> valueFromSummaryRow = store.get(tableName, summaryCell);
+        if (valueFromSummaryRow.isPresent() ^ valueFromPrimaryRow.isPresent()) {
+            violations.add(CrossCellInconsistency.builder()
+                    .putInconsistentValues(TableAndWorkloadCell.of(tableName, primaryCell), valueFromPrimaryRow)
+                    .putInconsistentValues(TableAndWorkloadCell.of(tableName, summaryCell), valueFromSummaryRow)
+                    .build());
+        }
+    }
+}u}(jx  (61a0c83cdc9b222053cb946e1e139aec27dcf76aj  latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=53f180b023489f7515cc376cd17882950cde86cfj  X-  @@ -0,0 +1,223 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.invariant.CrossCellInconsistency;
+import com.palantir.atlasdb.workload.invariant.Invariant;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableFullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicReference;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class TransientRowsWorkflowsTest {
+    private static final int ITERATION_COUNT = 5;
+    private static final String TABLE_NAME = "transient.rows";
+    private static final TransientRowsWorkflowConfiguration CONFIGURATION =
+            ImmutableTransientRowsWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow transientRowsWorkflow = TransientRowsWorkflows.create(
+            transactionStore, CONFIGURATION, MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)));
+    private final Invariant<List<CrossCellInconsistency>> invariant =
+            TransientRowsWorkflows.getSummaryLogInvariantReporter(CONFIGURATION).invariant();
+
+    @Test
+    public void transactionStoreIsReadOnly() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void eachTransactionIsWitnessed() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        List<WitnessedTransaction> witnessedTransactions = history.history();
+        assertThat(witnessedTransactions).hasSize(ITERATION_COUNT);
+    }
+
+    @Test
+    public void firstTransactionWritesTwoCells() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        List<WitnessedTransaction> witnessedTransactions = history.history();
+        assertThat(witnessedTransactions.get(0).actions())
+                .hasSize(2)
+                .containsExactlyInAnyOrder(
+                        WitnessedWriteTransactionAction.of(
+                                TABLE_NAME,
+                                ImmutableWorkloadCell.of(0, TransientRowsWorkflows.COLUMN),
+                                TransientRowsWorkflows.VALUE),
+                        WitnessedWriteTransactionAction.of(
+                                TABLE_NAME,
+                                ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 0),
+                                TransientRowsWorkflows.VALUE));
+    }
+
+    @Test
+    public void subsequentTransactionsWriteThenReadThenDelete() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        List<WitnessedTransaction> witnessedTransactions = history.history();
+        for (int index = 1; index < ITERATION_COUNT; index++) {
+            assertThat(witnessedTransactions.get(index).actions()).hasSize(7).satisfies(actions -> {
+                assertThat(actions.subList(0, 2)).allMatch(WitnessedWriteTransactionAction.class::isInstance);
+                assertThat(actions.subList(2, 5)).allMatch(WitnessedReadTransactionAction.class::isInstance);
+                assertThat(actions.subList(5, 7)).allMatch(WitnessedDeleteTransactionAction.class::isInstance);
+            });
+        }
+    }
+
+    @Test
+    public void invariantDoesNotReportViolationsUnderNormalOperation() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        invariant.accept(transientRowsWorkflow.run(), reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        WorkflowHistory history = transientRowsWorkflow.run();
+        transactionStore.readWrite(txn -> txn.delete(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 1, 1)));
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(ITERATION_COUNT - 1, TransientRowsWorkflows.COLUMN)),
+                                Optional.empty())
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(
+                                                TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 1)),
+                                Optional.of(0))
+                        .build()));
+    }
+
+    @Test
+    public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        WorkflowHistory history = transientRowsWorkflow.run();
+        transactionStore.readWrite(txn -> txn.write(
+                TABLE_NAME,
+                ImmutableWorkloadCell.of(ITERATION_COUNT - 2, TransientRowsWorkflows.COLUMN),
+                TransientRowsWorkflows.VALUE));
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(ITERATION_COUNT - 2, TransientRowsWorkflows.COLUMN)),
+                                Optional.of(0))
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(
+                                                TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 2)),
+                                Optional.empty())
+                        .build()));
+    }
+
+    @Test
+    public void invariantReportsViolationsFromTransactionHistory() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        WorkflowHistory history = transientRowsWorkflow.run();
+        WorkflowHistory falseHistory = ImmutableWorkflowHistory.builder()
+                .transactionStore(history.transactionStore())
+                .history(history.history().stream()
+                        .map(witnessedTransaction -> ImmutableFullyWitnessedTransaction.builder()
+                                .actions(witnessedTransaction.actions().stream()
+                                        .map(TransientRowsWorkflowsTest::rewriteReadHistoryAsAlwaysInconsistent)
+                                        .collect(Collectors.toList()))
+                                .startTimestamp(witnessedTransaction.startTimestamp())
+                                .commitTimestamp(witnessedTransaction.commitTimestamp())
+                                .build())
+                        .collect(Collectors.toList()))
+                .build();
+        invariant.accept(falseHistory, reference::set);
+
+        assertThat(reference.get()).hasSize(ITERATION_COUNT - 1);
+    }
+
+    private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(
+            WitnessedTransactionAction action) {
+        if (action instanceof WitnessedReadTransactionAction) {
+            if (action.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
+                return WitnessedReadTransactionAction.of(action.table(), action.cell(), Optional.empty());
+            } else {
+                return WitnessedReadTransactionAction.of(
+                        action.table(), action.cell(), Optional.of(TransientRowsWorkflows.VALUE));
+            }
+        } else {
+            return action;
+        }
+    }
+
+    private static final class OnceSettableAtomicReference<T> {
+        private final AtomicReference<T> delegate;
+
+        private OnceSettableAtomicReference() {
+            this.delegate = new AtomicReference<>();
+        }
+
+        private T get() {
+            return Preconditions.checkNotNull(delegate.get(), "Underlying atomic reference has not been set!");
+        }
+
+        private void set(T value) {
+            Preconditions.checkNotNull(value, "Expecting values set to a once-settable atomic reference to be nonnull");
+            if (!delegate.compareAndSet(null, value)) {
+                throw new SafeIllegalStateException("Value already set");
+            }
+        }
+    }
+}uZ     }(jx  (0a67965f248dc6c77872217a9f2d26da88537b99j  build.gradlej  modifiedj  Kj  Kj  Kj  ^https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/build.gradlej  ]https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/build.gradlej  phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=53f180b023489f7515cc376cd17882950cde86cfj  Xw  @@ -17,7 +17,7 @@ buildscript {
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.30.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
         classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'u}(jx  (16fb8eee169fd963709ea4a7cfbd511308736f08j   changelog/0.862.0/pr-6506.v2.ymlj  addedj  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/changelog%2F0.862.0%2Fpr-6506.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/changelog%2F0.862.0%2Fpr-6506.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.862.0%2Fpr-6506.v2.yml?ref=53f180b023489f7515cc376cd17882950cde86cfj  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize TimestampMapping::leader to avoid stream overhead
+  links:
+  - https://github.com/palantir/atlasdb/pull/6506u}(jx  (76e1a7993fd1a88f86737b4d470e05d637bc0990j   changelog/0.862.0/pr-6554.v2.ymlj  addedj  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/changelog%2F0.862.0%2Fpr-6554.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/changelog%2F0.862.0%2Fpr-6554.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.862.0%2Fpr-6554.v2.yml?ref=53f180b023489f7515cc376cd17882950cde86cfj  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Adds metric for tracking the size of the cassandra client pool
+  links:
+  - https://github.com/palantir/atlasdb/pull/6554u}(jx  (accf41e869d53eedaf4f54d948e2b5260617a8cbj   changelog/0.863.0/pr-6468.v2.ymlj  addedj  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/changelog%2F0.863.0%2Fpr-6468.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/changelog%2F0.863.0%2Fpr-6468.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.863.0%2Fpr-6468.v2.yml?ref=53f180b023489f7515cc376cd17882950cde86cfj  @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Avoid string case conversion when parsing token ring
+  links:
+  - https://github.com/palantir/atlasdb/pull/6468
+u}(jx  (be28e0890da21d6d8b36c3d7f6d13422933da314j   changelog/0.863.0/pr-6584.v2.ymlj  addedj  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/changelog%2F0.863.0%2Fpr-6584.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/changelog%2F0.863.0%2Fpr-6584.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.863.0%2Fpr-6584.v2.yml?ref=53f180b023489f7515cc376cd17882950cde86cfj  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[CBT] Split up container 3 and add more max heap to timelock integTest'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6584u}(jx  (b92e0f6636b00a68d6b900daa1da10ff5cbb9a1ej   changelog/0.865.0/pr-6595.v2.ymlj  addedj  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/changelog%2F0.865.0%2Fpr-6595.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/changelog%2F0.865.0%2Fpr-6595.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.865.0%2Fpr-6595.v2.yml?ref=53f180b023489f7515cc376cd17882950cde86cfj  @@ -0,0 +1,5 @@
+type: feature
+feature:
+  description: '[TEX] Report transaction level metrics'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6595u}(jx  (85652670ee979a2233211267d7b5fb3f877648baj  gradle/docker.gradlej  modifiedj  Kj  K j  Kj  hhttps://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/gradle%2Fdocker.gradlej  ghttps://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/gradle%2Fdocker.gradlej  zhttps://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fdocker.gradle?ref=53f180b023489f7515cc376cd17882950cde86cfj  X
  @@ -5,6 +5,7 @@ def imageVersion = "${project.version.toString().replaceAll('\\+', '-')}"
 docker {
     name "palantirtechnologies/${project.name}:${imageVersion}"
     tags 'latest', 'snapshot'
+    labels(['version': imageVersion])
     files distTar.outputs
 }
 u}(jx  (f01b996082699cd861898185f0bd3e153c505101j  *scripts/circle-ci/publish-to-antithesis.shj  modifiedj  Kj  K	j  K!j  https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj  https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj  https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=53f180b023489f7515cc376cd17882950cde86cfj  X  @@ -1,5 +1,10 @@
 #!/bin/bash
 
+if [[ -z "$1" ]]; then
+    echo "Usage: $0 <webhook name>. Example: $0 config-check"
+    exit 1
+fi
+
 if [[ -z "${ANTITHESIS_REPO_URL}" ]]; then
   echo "Antithesis image repository URL is not set as an environment variable, exiting."
   exit 1
@@ -10,21 +15,31 @@ if [[ -z "${ANTITHESIS_LOGIN_JSON}" ]]; then
   exit 1
 fi
 
+if [[ -z "${ANTITHESIS_WEBHOOK_PASSWORD}" ]]; then
+  echo "Antithesis webhook password is not set as an environment variable, exiting."
+  exit 1
+fi
+
 printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://${ANTITHESIS_REPO_URL} --password-stdin
 
 ./gradlew --scan dockerTag
 
 VERSION=$(./gradlew -q printVersion)
 
-docker pull palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
-docker tag palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra ${ANTITHESIS_REPO_URL}/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
-docker push ${ANTITHESIS_REPO_URL}/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc5 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
+docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
+
+docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}
+docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}
 
-docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${VERSION}
-docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${VERSION}
+docker tag palantirtechnologies/atlasdb-workload-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${1}
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${1}
 
-docker tag palantirtechnologies/atlasdb-workload-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${VERSION}
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${VERSION}
+docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${1}
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${1}
 
-docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${VERSION}
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${VERSION}
\ No newline at end of file
+if [[ "$1" = "config-check" ]]; then
+  echo "Triggering simulation on Antithesis via the config-check webhook."
+  curl -v -u "palantir:${ANTITHESIS_WEBHOOK_PASSWORD}" -X POST https://palantir.antithesis.com/api/v1/launch_experiment/palantir__configcheck__minimal
+fi
\ No newline at end of fileu}(jx  (c26bf39fcadc8784eabff6fd1e20a4ad15b5d344j  %scripts/circle-ci/run-circle-tests.shj  modifiedj  Kj  Kj  Kj  {https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/scripts%2Fcircle-ci%2Frun-circle-tests.shj  zhttps://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/scripts%2Fcircle-ci%2Frun-circle-tests.shj  https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=53f180b023489f7515cc376cd17882950cde86cfj  X  @@ -17,7 +17,7 @@ CONTAINER_1=(':atlasdb-cassandra-integration-tests:testSubset1')
 
 CONTAINER_2=(':atlasdb-ete-tests:check')
 
-CONTAINER_3=(':atlasdb-dbkvs:check' ':atlasdb-cassandra:check' ':timelock-server:integTest')
+CONTAINER_3=(':timelock-server:integTest')
 
 CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:dbkvsTest')
 
@@ -35,15 +35,17 @@ CONTAINER_10=('atlasdb-dbkvs-tests:oracleTest')
 
 CONTAINER_11=(':atlasdb-impl-shared:check' )
 
-CONTAINER_12=(':atlasdb-ete-tests:timeLockMigrationTest')
+CONTAINER_12=(':atlasdb-dbkvs:check' ':atlasdb-cassandra:check' )
 
-CONTAINER_13=('compileJava' 'compileTestJava')
+CONTAINER_13=(':atlasdb-ete-tests:timeLockMigrationTest')
+
+CONTAINER_14=('compileJava' 'compileTestJava')
 
 # Excluded as it is split into two subsets
 EXCLUDED=(':atlasdb-cassandra-integration-tests:check')
 
 # Container 0 - runs tasks not found in the below containers
-CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}" "${CONTAINER_11[@]}" "${CONTAINER_12[@]}" "${EXCLUDED[@]}")
+CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}" "${CONTAINER_11[@]}" "${CONTAINER_12[@]}" "${CONTAINER_13[@]}" "${EXCLUDED[@]}")
 
 for task in "${CONTAINER_0_EXCLUDE[@]}"
 do
@@ -73,8 +75,11 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
 # External builds have a 16gb limit.
-if [ "$test_suite_index" -eq "13" ]; then
+if [ "$test_suite_index" -eq "14" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
+elif [ "$test_suite_index" -eq "3" ]; then
+    export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
+    BASE_GRADLE_ARGS+=" --scan --parallel"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
     BASE_GRADLE_ARGS+=" --scan --parallel"
@@ -96,5 +101,6 @@ case "$test_suite_index" in
     10) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_10[@]} ;;
     11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} ;;
     12) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_12[@]} ;;
-    13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_13[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
+    13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_13[@]} ;;
+    14) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_14[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
 esacu}(jx  (d57a1810d0ac8b9e00dea54412cf093cbb114080j  )timelock-server-distribution/build.gradlej  modifiedj  Kj  Kj  Kj  }https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/timelock-server-distribution%2Fbuild.gradlej  |https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/timelock-server-distribution%2Fbuild.gradlej  https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-distribution%2Fbuild.gradle?ref=53f180b023489f7515cc376cd17882950cde86cfj  XN  @@ -1,8 +1,7 @@
 apply plugin: 'com.palantir.sls-java-service-distribution'
-
-apply from: "../gradle/docker.gradle"
 apply plugin: 'com.palantir.external-publish-dist'
 apply from: "../gradle/shared.gradle"
+apply from: "../gradle/docker.gradle"
 apply from: "../gradle/tests.gradle"
 apply from: "../gradle/non-client-dist.gradle"
 u}(jx  (196c276969d650b1d6d0e72c152a4a1d49ef5f6ej  
versions.lockj  modifiedj  Kj  Kj  Kj  _https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/versions.lockj  ^https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/versions.lockj  qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=53f180b023489f7515cc376cd17882950cde86cfj  X  @@ -200,8 +200,8 @@ jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.5 (6 constraints: 845987f4)
 junit:junit:4.13.2 (8 constraints: 5a9c5baf)
-net.bytebuddy:byte-buddy:1.14.3 (3 constraints: 3d25d791)
-net.bytebuddy:byte-buddy-agent:1.14.1 (1 constraints: 410b3fde)
+net.bytebuddy:byte-buddy:1.14.4 (3 constraints: 4025da91)
+net.bytebuddy:byte-buddy-agent:1.14.4 (1 constraints: 440b42de)
 net.java.dev.jna:jna:4.1.0 (2 constraints: 6e1bbbad)
 net.jpountz.lz4:lz4:1.3.0 (2 constraints: 971453a0)
 net.ltgt.gradle.incap:incap:0.2 (1 constraints: ea0d3b32)
@@ -293,7 +293,7 @@ org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.0 (3 constraints: c125b5a3)
 org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.5.0 (1 constraints: 4b0ea44e)
 org.jvnet:animal-sniffer-annotation:1.0 (1 constraints: f20b95eb)
 org.mindrot:jbcrypt:0.4 (2 constraints: 4714f171)
-org.mockito:mockito-core:5.2.0 (2 constraints: 51165c12)
+org.mockito:mockito-core:5.3.1 (2 constraints: 5316c412)
 org.mpierce.metrics.reservoir:hdrhistogram-metrics-reservoir:1.1.3 (1 constraints: 0d10f991)
 org.objenesis:objenesis:3.3 (2 constraints: c71412ab)
 org.openjdk.jmh:jmh-core:1.36 (2 constraints: f51525d9)u}(jx  (089fade66d09b3cbc4c42ee07a5dca286262895cj  versions.propsj  modifiedj  Kj  Kj  Kj  `https://github.com/palantir/atlasdb/blob/53f180b023489f7515cc376cd17882950cde86cf/versions.propsj  _https://github.com/palantir/atlasdb/raw/53f180b023489f7515cc376cd17882950cde86cf/versions.propsj  rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=53f180b023489f7515cc376cd17882950cde86cfj  X  @@ -72,7 +72,7 @@ org.jboss.threads:jboss-threads = 3.5.0.Final
 org.jdbi:* = 3.30.0
 org.jmock:jmock* = 2.12.0
 org.mindrot:jbcrypt = 0.4
-org.mockito:* = 5.2.0
+org.mockito:* = 5.3.1
 org.openjdk.jmh:* = 1.36
 org.reflections:reflections = 0.10.2
 org.rocksdb:rocksdbjni = 7.9.2ueu(23c1a249d3c6c161d2d4d6cf2ce4f42d135ba557}(sha(23c1a249d3c6c161d2d4d6cf2ce4f42d135ba557node_idEC_kwDOAjP5fdoAKDIzYzFhMjQ5ZDNjNmMxNjFkMmQ0ZDZjZjJjZTRmNDJkMTM1YmE1NTccommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-18T14:07:50Zu	committer}(j  	Tom Papkej  tpapke@palantir.comj  2023-07-18T14:07:50ZumessageComment formattingtree}(j  (8e21f8416984d1e574903d4e8137c24efdff69d3url`https://api.github.com/repos/palantir/atlasdb/git/trees/8e21f8416984d1e574903d4e8137c24efdff69d3uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/23c1a249d3c6c161d2d4d6cf2ce4f42d135ba557
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEyBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS2nLYACgkQmF9s0kaF
Iw2w9Qf3Y5ttHlKt6TUUAAyidGM2i49Df4AFuhkcqW50BDlIH0jhshlSfBeVNMck
TMYQEnb4OV7qPYeMcNrjvMurpR97wud/oDN3b+WmnJr7uSsAd/B/tP1p96X3GZz4
/9W9FbzOdwOtKEk2r5V25+vAXUALHaSLlp2uVv6TVgrbuOZxR/ADJXWjzyCPHwGb
6Y1MhEwEuyqd1wiqU/HZgOAdPntIeIlSXCLr+ki4e9UkUVwESmk4OPi3SRTu4UfO
QW0WgYPZalLtA7zYc0NLlq8HhRh492JJCmoB6N0zuVNb2sY/N11QeSJ2Wu+qUGPQ
5/3j6nrlMRyh5B/Z29vU7ghfaFM7
=EuQp
-----END PGP SIGNATURE-----payloadtree 8e21f8416984d1e574903d4e8137c24efdff69d3
parent 091a2b930b8b88cb393de0b614c20b9d83d8377d
author Tom Papke <tpapke@palantir.com> 1689689270 +0100
committer Tom Papke <tpapke@palantir.com> 1689689270 +0100

Comment formatting
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/23c1a249d3c6c161d2d4d6cf2ce4f42d135ba557html_urlShttps://github.com/palantir/atlasdb/commit/23c1a249d3c6c161d2d4d6cf2ce4f42d135ba557comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/23c1a249d3c6c161d2d4d6cf2ce4f42d135ba557/commentsj  }(login	ToemmscheidJboj  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj  }(j  	Toemmschej  Jboj  MDQ6VXNlcjQzNjc1NDkwj  4https://avatars.githubusercontent.com/u/43675490?v=4j  h5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmschej  0https://api.github.com/users/Toemmsche/followersj  =https://api.github.com/users/Toemmsche/following{/other_user}j  6https://api.github.com/users/Toemmsche/gists{/gist_id}j  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j  4https://api.github.com/users/Toemmsche/subscriptionsj  +https://api.github.com/users/Toemmsche/orgsj  ,https://api.github.com/users/Toemmsche/reposj  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj  Userj  uparents]}(j  (091a2b930b8b88cb393de0b614c20b9d83d8377dj  ^https://api.github.com/repos/palantir/atlasdb/commits/091a2b930b8b88cb393de0b614c20b9d83d8377dj  Shttps://github.com/palantir/atlasdb/commit/091a2b930b8b88cb393de0b614c20b9d83d8377duastats}(totalK	additionsK	deletionsKufiles]}(j  (7ede3b7c38e0b57309248f76a702b4fd3ebbc9cbfilenameElock-api-objects/src/main/java/com/palantir/lock/watch/LockEvent.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/23c1a249d3c6c161d2d4d6cf2ce4f42d135ba557/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaraw_urlhttps://github.com/palantir/atlasdb/raw/23c1a249d3c6c161d2d4d6cf2ce4f42d135ba557/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.java?ref=23c1a249d3c6c161d2d4d6cf2ce4f42d135ba557patchX  @@ -39,9 +39,11 @@
 import java.util.Set;
 import org.immutables.value.Value;
 
-/* Warning: This class contains custom serialization logic. Changing anything about the serialized format of this class
-requires careful modification of the @JsonCreator and @JsonValue-annotated methods as well as the Wire-... classes
-All serialization changes should be properly tested. */
+/*
+ * Warning: This class contains custom serialization logic. Changing anything about the serialized format of this class
+ * requires careful modification of the @JsonCreator and @JsonValue-annotated methods as well as the Wire-... classes
+ * All serialization changes should be properly tested.
+ */
 @Unsafe
 @Value.Immutable
 @JsonTypeName(LockEvent.TYPE)uau(de260837943dd34d951961be0d77a0eb14d92f45}(sha(de260837943dd34d951961be0d77a0eb14d92f45node_idEC_kwDOAjP5fdoAKGRlMjYwODM3OTQzZGQzNGQ5NTE5NjFiZTBkNzdhMGViMTRkOTJmNDUcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-08-15T18:28:59Zu	committer}(j"  svc-excavator-botj$  svc-excavator-bot@palantir.comj&  2023-08-15T18:28:59Zumessage5Excavator:  Update gradle-jdks infrastructure pluginstree}(j  (f41342a40dffed0ec73386a522cfc012c7781851url`https://api.github.com/repos/palantir/atlasdb/git/trees/f41342a40dffed0ec73386a522cfc012c7781851uj2  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/de260837943dd34d951961be0d77a0eb14d92f45
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmTbw+sJEMmvEkpISILgAAByYAEAmwvl16NO5kQMI97vfDr+oJOR
OKSlWMgU/J06OKlu/O8BAOWv0cW1HBl6gzd8UauH2UqNbpSUwgKxBvshnaHNA/D9
=BpPi
-----END PGP SIGNATURE-----
payloadX-  tree f41342a40dffed0ec73386a522cfc012c7781851
parent 4460b0be63853d1a2490cef11f6bcb58660f5625
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1692124139 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1692124139 +0000

Excavator:  Update gradle-jdks infrastructure pluginsuuj2  ^https://api.github.com/repos/palantir/atlasdb/commits/de260837943dd34d951961be0d77a0eb14d92f45html_urlShttps://github.com/palantir/atlasdb/commit/de260837943dd34d951961be0d77a0eb14d92f45comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/de260837943dd34d951961be0d77a0eb14d92f45/commentsj   }(loginsvc-excavator-botidJj  MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j2  .https://api.github.com/users/svc-excavator-botj@  $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj(  }(jE  svc-excavator-botjG  Jj  MDQ6VXNlcjMzMjY2MzY4jI  4https://avatars.githubusercontent.com/u/33266368?v=4jK  h5j2  .https://api.github.com/users/svc-excavator-botj@  $https://github.com/svc-excavator-botjN  8https://api.github.com/users/svc-excavator-bot/followersjP  Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}jR  >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}jT  Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}jV  <https://api.github.com/users/svc-excavator-bot/subscriptionsjX  3https://api.github.com/users/svc-excavator-bot/orgsjZ  4https://api.github.com/users/svc-excavator-bot/reposj\  ?https://api.github.com/users/svc-excavator-bot/events{/privacy}j^  >https://api.github.com/users/svc-excavator-bot/received_eventsj`  Userjb  uparents]}(j  (4460b0be63853d1a2490cef11f6bcb58660f5625j2  ^https://api.github.com/repos/palantir/atlasdb/commits/4460b0be63853d1a2490cef11f6bcb58660f5625j@  Shttps://github.com/palantir/atlasdb/commit/4460b0be63853d1a2490cef11f6bcb58660f5625uastats}(totalK	additionsK	deletionsKufiles]}(j  (1f599280d24695b09649cdad7d6313e376f116fbfilenamebuild.gradlestatusmodifiedj|  Kj}  KchangesKblob_url^https://github.com/palantir/atlasdb/blob/de260837943dd34d951961be0d77a0eb14d92f45/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/de260837943dd34d951961be0d77a0eb14d92f45/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=de260837943dd34d951961be0d77a0eb14d92f45patchX  @@ -15,8 +15,8 @@ buildscript {
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
-        classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
-        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
+        classpath 'com.palantir.gradle.jdks:gradle-jdks:0.33.0'
+        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.10.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.35.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.22.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'uau(d102003839146211c90e690c3f51cd300336a054}(sha(d102003839146211c90e690c3f51cd300336a054node_idEC_kwDOAjP5fdoAKGQxMDIwMDM4MzkxNDYyMTFjOTBlNjkwYzNmNTFjZDMwMDMzNmEwNTQcommit}(author}(nameChris Van de Veldeemailcvandevelde@palantir.comdate2023-03-29T06:56:10Zu	committer}(j  Chris Van de Veldej  cvandevelde@palantir.comj  2023-03-29T06:56:10Zumessage(Clarify why pctfree/pctused are relevanttree}(j  (cc94e655f53aefbf7e5d320034e8fb23b908ecfcurl`https://api.github.com/repos/palantir/atlasdb/git/trees/cc94e655f53aefbf7e5d320034e8fb23b908ecfcuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d102003839146211c90e690c3f51cd300336a054
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEfsytHu2QbUsz5QamhCdbnbxuCwoFAmQj4RYACgkQhCdbnbxu
CwocZAf/bjd8J5ZutvHEpF5e1la6vg/XiWbLLwarYbmFm3MBQQHLoTl/jF+HhePC
+dFJ85oIGzBdLPDjtp9WOerWW8FTt7o2wOFMx92FxhtD2Dtdf/tzcNF4szbUL1N6
4QxkzGFavUQnSeJ2HaXqDIApRFLx//S+ASXvihpAl4biThsAbsJvonyJif6Q6r8D
qIkaZWm1rFhMP2e5Vzkn4qEw3QZpFZ7StaPa22voCX+aS8zTlUhpovkA17nhQ2Pb
T11/+whQBLZfzAo8NHbz15BzOejS6NkUIGnqvdTNpz/xELapI9axD63Qcv6KCq5j
jSc+ISCw1qjfp1PDPtfjJc+aVyn2dA==
=Vl2T
-----END PGP SIGNATURE-----payloadX  tree cc94e655f53aefbf7e5d320034e8fb23b908ecfc
parent 4fde9c28d33959623b4f61d2bccf7577dc9a64ad
author Chris Van de Velde <cvandevelde@palantir.com> 1680072970 +1100
committer Chris Van de Velde <cvandevelde@palantir.com> 1680072970 +1100

Clarify why pctfree/pctused are relevant
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/d102003839146211c90e690c3f51cd300336a054html_urlShttps://github.com/palantir/atlasdb/commit/d102003839146211c90e690c3f51cd300336a054comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d102003839146211c90e690c3f51cd300336a054/commentsj  }(loginCVdV-auidJDN j  MDQ6VXNlcjY5MjI2MDUy
avatar_url4https://avatars.githubusercontent.com/u/69226052?v=4gravatar_idh5j  $https://api.github.com/users/CVdV-auj  https://github.com/CVdV-au
followers_url.https://api.github.com/users/CVdV-au/followers
following_url;https://api.github.com/users/CVdV-au/following{/other_user}	gists_url4https://api.github.com/users/CVdV-au/gists{/gist_id}starred_url;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/CVdV-au/subscriptionsorganizations_url)https://api.github.com/users/CVdV-au/orgs	repos_url*https://api.github.com/users/CVdV-au/repos
events_url5https://api.github.com/users/CVdV-au/events{/privacy}received_events_url4https://api.github.com/users/CVdV-au/received_eventstypeUser
site_adminuj  }(j  CVdV-auj  JDN j  MDQ6VXNlcjY5MjI2MDUyj  4https://avatars.githubusercontent.com/u/69226052?v=4j  h5j  $https://api.github.com/users/CVdV-auj  https://github.com/CVdV-auj  .https://api.github.com/users/CVdV-au/followersj  ;https://api.github.com/users/CVdV-au/following{/other_user}j  4https://api.github.com/users/CVdV-au/gists{/gist_id}j  ;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}j  2https://api.github.com/users/CVdV-au/subscriptionsj  )https://api.github.com/users/CVdV-au/orgsj  *https://api.github.com/users/CVdV-au/reposj  5https://api.github.com/users/CVdV-au/events{/privacy}j  4https://api.github.com/users/CVdV-au/received_eventsj  Userj  uparents]}(j  (4fde9c28d33959623b4f61d2bccf7577dc9a64adj  ^https://api.github.com/repos/palantir/atlasdb/commits/4fde9c28d33959623b4f61d2bccf7577dc9a64adj  Shttps://github.com/palantir/atlasdb/commit/4fde9c28d33959623b4f61d2bccf7577dc9a64aduastats}(totalK	additionsK	deletionsKufiles]}(j  (b4249b75d5772865e17b9612368a1245c17ad38dfilename_atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTable.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/d102003839146211c90e690c3f51cd300336a054/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d102003839146211c90e690c3f51cd300336a054/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.java?ref=d102003839146211c90e690c3f51cd300336a054patchX=  @@ -198,7 +198,8 @@ private String createTable(boolean needsOverflow) {
                         + " PRIMARY KEY (row_name, col_name, ts) "
                         + ") "
                         + "organization index compress "
-                        // Since append only
+                        // Since append only completely fill blocks - no benefit in leaving space for updates of rows
+                        // PCTUSED N/A to Index Organized Tables
                         + "PCTFREE 0 "
                         + "overflow",
                 OracleErrorConstants.ORACLE_ALREADY_EXISTS_ERROR);
@@ -214,7 +215,8 @@ private void createOverflowTable() {
                         + "  val BLOB NOT NULL,"
                         + "  CONSTRAINT " + PrimaryKeyConstraintNames.get(shortOverflowTableName) + " PRIMARY KEY (id)"
                         + ") "
-                        // Since append only
+                        // Since append only completely fill blocks - no benefit in leaving space for updates of rows
+                        // Assume auto segment space management, so PCTUSED ignored
                         + "PCTFREE 0",
                 OracleErrorConstants.ORACLE_ALREADY_EXISTS_ERROR);
         putTableNameMapping(oracleTableNameGetter.getPrefixedOverflowTableName(tableRef), shortOverflowTableName);uau(e1cc8800ec1356ed5d561b59acc26970977e10d7}(sha(e1cc8800ec1356ed5d561b59acc26970977e10d7node_idEC_kwDOAjP5fdoAKGUxY2M4ODAwZWMxMzU2ZWQ1ZDU2MWI1OWFjYzI2OTcwOTc3ZTEwZDccommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-22T12:59:23Zu	committer}(j  
Sam Kramerj  skramer@palantir.comj  2023-06-22T12:59:23Zumessagegive me more heaptree}(j  (c4bf6e82e42c27b6c813fc4d6f237cb35bb2c84eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/c4bf6e82e42c27b6c813fc4d6f237cb35bb2c84euj   bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e1cc8800ec1356ed5d561b59acc26970977e10d7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSURawACgkQmPPOpKR4
XS3m9gf+L+i/+KYLsWEVs63fn5oKLIZwVpj/JXjfSSGMr/RAimdc2HD0bJ0vyrUh
Hh7jKhyd7hxtNy0kJpW/dnjSfr0T+k9IlCn1k4vB3LmFz0zL23zxoxLBMWypOzP4
ADTF8hvxFVIB150QWbE5KzJMSkJa1lO6ffmWD5rBcsfgrTHoOEBenDWXFrja2Q3k
gKzDdSWjKLiGd/tI2edfN+uO9jcoYKMnmfGPR2eI7YvjtJ+3WFY1KPB7o1c2+SE+
GvIgL503ZRVBvvb9V9aOSjjgB8oXfOrdDGLid11jHc+P9lQHtl6tRrHzPDyRY8qk
B0Lg0G5eH7Ms2F1oU7gF3+zqJMIT1A==
=Ki2W
-----END PGP SIGNATURE-----payloadtree c4bf6e82e42c27b6c813fc4d6f237cb35bb2c84e
parent a504097f7748e801bbfe1b9c3db4929f3bc8e5e2
author Sam Kramer <skramer@palantir.com> 1687438763 +0100
committer Sam Kramer <skramer@palantir.com> 1687438763 +0100

give me more heap
uuj   ^https://api.github.com/repos/palantir/atlasdb/commits/e1cc8800ec1356ed5d561b59acc26970977e10d7html_urlShttps://github.com/palantir/atlasdb/commit/e1cc8800ec1356ed5d561b59acc26970977e10d7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e1cc8800ec1356ed5d561b59acc26970977e10d7/commentsj  }(login
Sam-KrameridJ^2_ j
  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j   'https://api.github.com/users/Sam-Kramerj.  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j3  
Sam-Kramerj5  J^2_ j
  MDQ6VXNlcjYyMzg4MTQ=j7  3https://avatars.githubusercontent.com/u/6238814?v=4j9  h5j   'https://api.github.com/users/Sam-Kramerj.  https://github.com/Sam-Kramerj<  1https://api.github.com/users/Sam-Kramer/followersj>  >https://api.github.com/users/Sam-Kramer/following{/other_user}j@  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jB  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jD  5https://api.github.com/users/Sam-Kramer/subscriptionsjF  ,https://api.github.com/users/Sam-Kramer/orgsjH  -https://api.github.com/users/Sam-Kramer/reposjJ  8https://api.github.com/users/Sam-Kramer/events{/privacy}jL  7https://api.github.com/users/Sam-Kramer/received_eventsjN  UserjP  uparents]}(j  (a504097f7748e801bbfe1b9c3db4929f3bc8e5e2j   ^https://api.github.com/repos/palantir/atlasdb/commits/a504097f7748e801bbfe1b9c3db4929f3bc8e5e2j.  Shttps://github.com/palantir/atlasdb/commit/a504097f7748e801bbfe1b9c3db4929f3bc8e5e2uastats}(totalK	additionsK	deletionsK ufiles]}(j  (8c5d010b813c3904a027f75049590aef2a7eb16afilename%scripts/circle-ci/run-circle-tests.shstatusmodifiedjj  Kjk  K changesKblob_url{https://github.com/palantir/atlasdb/blob/e1cc8800ec1356ed5d561b59acc26970977e10d7/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/e1cc8800ec1356ed5d561b59acc26970977e10d7/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=e1cc8800ec1356ed5d561b59acc26970977e10d7patchXW  @@ -77,6 +77,8 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 # External builds have a 16gb limit.
 if [ "$test_suite_index" -eq "14" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
+elif [ "$test_suite_index" -eq "4" ]; then
+    export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 elif [ "$test_suite_index" -eq "3" ]; then
     export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
     BASE_GRADLE_ARGS+=" --scan --parallel"uau(143a2ba9b6b23e548427a5ab743b401d1aa411ff}(sha(143a2ba9b6b23e548427a5ab743b401d1aa411ffnode_idEC_kwDOAjP5fdoAKDE0M2EyYmE5YjZiMjNlNTQ4NDI3YTVhYjc0M2I0MDFkMWFhNDExZmYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-15T09:06:08Zu	committer}(j  
Sam Kramerj  skramer@palantir.comj  2023-08-15T09:06:08ZumessageQacquire a lock per client rather than per class instance for timestamp boundstoretree}(j  (f9e22830d5c6cf419a713ce01a4d6e66e6614871url`https://api.github.com/repos/palantir/atlasdb/git/trees/f9e22830d5c6cf419a713ce01a4d6e66e6614871uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/143a2ba9b6b23e548427a5ab743b401d1aa411ff
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTbQAAACgkQmPPOpKR4
XS0JDQgAmvE3ysW8tWrGs2EPzRNXotO/QjQwdb3i3va+AGGsbmVfFAP6fUZyDxLK
BsrGL+hp0Hox3kEtPkqVSruEhfmUvvZNvqCL1a9AmjnrkiMgm6rJhDa6rRneThhD
kzSuTgGGjJciXQLghui6rwTE2iOSCD3wJGebFyFbGTmx9ugbB9Ygp5oFieEHq3ut
NuhI+mqyBsl9Da3SNbCbDjJAvCwlBM77H9HRDEmsLEsooyqKQ6ycxeHyeAl452Lj
6c8lPNarTX7KDTIJUIinoFQIz/bQxFPZRs8GaYNte7axN78fMiyY3xwvkGXcNPgd
VMFzvGIdsM+AeeVJW0Sg9BpF9hzEJg==
=psDB
-----END PGP SIGNATURE-----payloadX(  tree f9e22830d5c6cf419a713ce01a4d6e66e6614871
parent 4c56a0fe53d8323106ccb416245523463e5bcb79
author Sam Kramer <skramer@palantir.com> 1692090368 +0100
committer Sam Kramer <skramer@palantir.com> 1692090368 +0100

acquire a lock per client rather than per class instance for timestamp boundstore
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/143a2ba9b6b23e548427a5ab743b401d1aa411ffhtml_urlShttps://github.com/palantir/atlasdb/commit/143a2ba9b6b23e548427a5ab743b401d1aa411ffcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/143a2ba9b6b23e548427a5ab743b401d1aa411ff/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j  
Sam-Kramerj  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j  h5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj  1https://api.github.com/users/Sam-Kramer/followersj  >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j  5https://api.github.com/users/Sam-Kramer/subscriptionsj  ,https://api.github.com/users/Sam-Kramer/orgsj  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj  uparents]}(j  (4c56a0fe53d8323106ccb416245523463e5bcb79j  ^https://api.github.com/repos/palantir/atlasdb/commits/4c56a0fe53d8323106ccb416245523463e5bcb79j  Shttps://github.com/palantir/atlasdb/commit/4c56a0fe53d8323106ccb416245523463e5bcb79uastats}(totalK	additionsKq	deletionsKufiles](}(j  (08a92321e50e9606dee81fb69903a2cb27f967abfilename[timelock-agent/src/main/java/com/palantir/atlasdb/timelock/paxos/PaxosResourcesFactory.javastatusmodifiedj  Kj  KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/143a2ba9b6b23e548427a5ab743b401d1aa411ff/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosResourcesFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/143a2ba9b6b23e548427a5ab743b401d1aa411ff/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosResourcesFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosResourcesFactory.java?ref=143a2ba9b6b23e548427a5ab743b401d1aa411ffpatchX  @@ -24,6 +24,7 @@
 import com.palantir.conjure.java.config.ssl.SslSocketFactories;
 import com.palantir.conjure.java.config.ssl.TrustContext;
 import com.palantir.leader.PingableLeader;
+import com.palantir.paxos.Client;
 import com.palantir.paxos.CoalescingPaxosLatestRoundVerifier;
 import com.palantir.paxos.PaxosAcceptorNetworkClient;
 import com.palantir.paxos.PaxosLatestRoundVerifierImpl;
@@ -51,8 +52,10 @@
 import com.zaxxer.hikari.HikariDataSource;
 import java.nio.file.Path;
 import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import java.util.UUID;
+import java.util.concurrent.ConcurrentHashMap;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 import javax.sql.DataSource;
@@ -223,6 +226,9 @@ private static ImmutablePaxosResources.Builder setupTimestampResources(
         NetworkClientFactories.Factory<PaxosProposer> proposerFactory =
                 getPaxosProposerFactory(timelockMetrics, combinedNetworkClientFactories);
 
+        // Manage client locks outside the context of creation, to allow re-use of the locks for a given client
+        // across multiple class instances.
+        Map<Client, Object> clientLocks = new ConcurrentHashMap<>();
         NetworkClientFactories.Factory<ManagedTimestampService> timestampFactory = client -> {
             // TODO (jkong): live reload ping
             TimestampBoundStore boundStore = timelockMetrics.instrument(
@@ -234,7 +240,8 @@ private static ImmutablePaxosResources.Builder setupTimestampResources(
                             combinedNetworkClientFactories.learner().create(client),
                             paxosRuntime.get().maximumWaitBeforeProposalMs()),
                     client);
-            return PersistentTimestampServiceImpl.create(boundStore);
+            Object clientLock = clientLocks.computeIfAbsent(client, ignored -> new Object());
+            return PersistentTimestampServiceImpl.create(boundStore, () -> clientLock);
         };
 
         return ImmutablePaxosResources.builder()u}(j  (d9b52c27ff2696216995fd58a5d66fd9d2a3c479j  Wtimestamp-impl/src/main/java/com/palantir/timestamp/PersistentTimestampServiceImpl.javaj  modifiedj  Kj  K	j  Kj  https://github.com/palantir/atlasdb/blob/143a2ba9b6b23e548427a5ab743b401d1aa411ff/timestamp-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentTimestampServiceImpl.javaj  https://github.com/palantir/atlasdb/raw/143a2ba9b6b23e548427a5ab743b401d1aa411ff/timestamp-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentTimestampServiceImpl.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timestamp-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentTimestampServiceImpl.java?ref=143a2ba9b6b23e548427a5ab743b401d1aa411ffj  X7
  @@ -22,6 +22,7 @@
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.function.Supplier;
 import javax.annotation.concurrent.ThreadSafe;
 
 @ThreadSafe
@@ -50,22 +51,32 @@ protected String getInitializingClassName() {
 
     private ErrorCheckingTimestampBoundStore store;
     private PersistentTimestamp timestamp;
+    private Supplier<Object> clientLock;
     private final InitializingWrapper wrapper = new InitializingWrapper();
 
-    public static PersistentTimestampService create(TimestampBoundStore store) {
-        return create(new ErrorCheckingTimestampBoundStore(store), AtlasDbConstants.DEFAULT_INITIALIZE_ASYNC);
+    public static PersistentTimestampService create(TimestampBoundStore store, Supplier<Object> clientLock) {
+        return create(
+                new ErrorCheckingTimestampBoundStore(store), AtlasDbConstants.DEFAULT_INITIALIZE_ASYNC, clientLock);
     }
 
     public static PersistentTimestampService create(TimestampBoundStore store, boolean initializeAsync) {
-        return create(new ErrorCheckingTimestampBoundStore(store), initializeAsync);
+        Object clientLock = new Object();
+        return create(new ErrorCheckingTimestampBoundStore(store), initializeAsync, () -> clientLock);
     }
 
-    public static PersistentTimestampService create(ErrorCheckingTimestampBoundStore store) {
-        return create(store, AtlasDbConstants.DEFAULT_INITIALIZE_ASYNC);
+    public static PersistentTimestampService create(
+            TimestampBoundStore store, boolean initializeAsync, Supplier<Object> clientLock) {
+        return create(new ErrorCheckingTimestampBoundStore(store), initializeAsync, clientLock);
     }
 
-    public static PersistentTimestampService create(ErrorCheckingTimestampBoundStore store, boolean initializeAsync) {
-        PersistentTimestampServiceImpl service = new PersistentTimestampServiceImpl(store);
+    public static PersistentTimestampService create(
+            ErrorCheckingTimestampBoundStore store, Supplier<Object> clientLock) {
+        return create(store, AtlasDbConstants.DEFAULT_INITIALIZE_ASYNC, clientLock);
+    }
+
+    public static PersistentTimestampService create(
+            ErrorCheckingTimestampBoundStore store, boolean initializeAsync, Supplier<Object> clientLock) {
+        PersistentTimestampServiceImpl service = new PersistentTimestampServiceImpl(store, clientLock);
         service.wrapper.initialize(initializeAsync);
         return service.wrapper.isInitialized() ? service : service.wrapper;
     }
@@ -75,12 +86,13 @@ public static PersistentTimestampService create(ErrorCheckingTimestampBoundStore
         this.timestamp = timestamp;
     }
 
-    private PersistentTimestampServiceImpl(ErrorCheckingTimestampBoundStore store) {
+    private PersistentTimestampServiceImpl(ErrorCheckingTimestampBoundStore store, Supplier<Object> clientLock) {
         this.store = store;
+        this.clientLock = clientLock;
     }
 
     private void tryInitialize() {
-        PersistentUpperLimit upperLimit = new PersistentUpperLimit(store);
+        PersistentUpperLimit upperLimit = new PersistentUpperLimit(store, clientLock);
         long latestTimestamp = upperLimit.get();
         timestamp = new PersistentTimestamp(upperLimit, latestTimestamp);
     }u}(j  (7f991022c6ef1aa816c6fde2d502c5a4eee6cab8j  Mtimestamp-impl/src/main/java/com/palantir/timestamp/PersistentUpperLimit.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/143a2ba9b6b23e548427a5ab743b401d1aa411ff/timestamp-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentUpperLimit.javaj  https://github.com/palantir/atlasdb/raw/143a2ba9b6b23e548427a5ab743b401d1aa411ff/timestamp-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentUpperLimit.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timestamp-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentUpperLimit.java?ref=143a2ba9b6b23e548427a5ab743b401d1aa411ffj  X  @@ -16,6 +16,7 @@
 package com.palantir.timestamp;
 
 import com.google.common.annotations.VisibleForTesting;
+import java.util.function.Supplier;
 
 public class PersistentUpperLimit {
 
@@ -29,9 +30,20 @@ public class PersistentUpperLimit {
     private volatile long currentLimit;
     private final TimestampBoundStore store;
 
-    public PersistentUpperLimit(TimestampBoundStore boundStore) {
+    private final Supplier<Object> lock;
+
+    /**
+     * Create a new {@link PersistentUpperLimit} that will use the provided {@link TimestampBoundStore} to increase
+     * limits as needed for timestamps. The lock supplier will be used to synchronize on when updating the upper
+     * limit. It's ideal to use an external lock rather than the class instance itself, as there could be multiple
+     * versions of this class.
+     * @param boundStore The store to use for persisting the upper limit.
+     * @param lock A supplier of a lock object that will be used to synchronize on when updating the upper limit.
+     */
+    public PersistentUpperLimit(TimestampBoundStore boundStore, Supplier<Object> lock) {
         this.store = boundStore;
         this.currentLimit = boundStore.getUpperLimit();
+        this.lock = lock;
     }
 
     public long get() {
@@ -44,14 +56,16 @@ public void increaseToAtLeast(long newLimit) {
         }
     }
 
-    private synchronized void updateLimit(long newLimit) {
-        if (currentLimit >= newLimit) {
-            return;
-        }
+    private void updateLimit(long newLimit) {
+        synchronized (lock.get()) {
+            if (currentLimit >= newLimit) {
+                return;
+            }
 
-        long newLimitWithBuffer = Math.addExact(newLimit, BUFFER);
-        storeUpperLimit(newLimitWithBuffer);
-        currentLimit = newLimitWithBuffer;
+            long newLimitWithBuffer = Math.addExact(newLimit, BUFFER);
+            storeUpperLimit(newLimitWithBuffer);
+            currentLimit = newLimitWithBuffer;
+        }
     }
 
     private void storeUpperLimit(long upperLimit) {u}(j  (8e6058cee1719e42af770abc55fab74c3a880f6fj  ^timestamp-impl/src/test/java/com/palantir/timestamp/PersistentTimestampServiceMockingTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/143a2ba9b6b23e548427a5ab743b401d1aa411ff/timestamp-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentTimestampServiceMockingTest.javaj  https://github.com/palantir/atlasdb/raw/143a2ba9b6b23e548427a5ab743b401d1aa411ff/timestamp-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentTimestampServiceMockingTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timestamp-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentTimestampServiceMockingTest.java?ref=143a2ba9b6b23e548427a5ab743b401d1aa411ffj  X  @@ -37,6 +37,8 @@ public class PersistentTimestampServiceMockingTest {
 
     private static final TimestampRange RANGE = TimestampRange.createInclusiveRange(100, 200);
 
+    private final Object clientLock = new Object();
+
     private PersistentTimestamp timestamp = mock(PersistentTimestamp.class);
     private PersistentTimestampServiceImpl timestampService = new PersistentTimestampServiceImpl(timestamp);
 
@@ -86,7 +88,7 @@ public void getsAndStoresUpperLimitExactlyOnceOnInitialisation() {
         when(timestampBoundStore.getUpperLimit()).thenReturn(INITIAL_TIMESTAMP);
 
         PersistentTimestampService persistentTimestampService =
-                PersistentTimestampServiceImpl.create(timestampBoundStore);
+                PersistentTimestampServiceImpl.create(timestampBoundStore, () -> clientLock);
         long freshTimestamp = persistentTimestampService.getFreshTimestamp();
 
         assertThat(freshTimestamp).isGreaterThan(INITIAL_TIMESTAMP);u}(j  (d01707825ca0afc11103715106d0adcde70a636fj  Xtimestamp-impl/src/test/java/com/palantir/timestamp/PersistentTimestampServiceTests.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/143a2ba9b6b23e548427a5ab743b401d1aa411ff/timestamp-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentTimestampServiceTests.javaj  https://github.com/palantir/atlasdb/raw/143a2ba9b6b23e548427a5ab743b401d1aa411ff/timestamp-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentTimestampServiceTests.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timestamp-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentTimestampServiceTests.java?ref=143a2ba9b6b23e548427a5ab743b401d1aa411ffj  X  @@ -40,8 +40,9 @@ protected TimestampManagementService getTimestampManagementService() {
 
     private PersistentTimestampService getSingletonTimestampService() {
         if (timestampBoundStore == null || persistentTimestampService == null) {
+            Object clientLock = new Object();
             timestampBoundStore = new InMemoryTimestampBoundStore();
-            persistentTimestampService = PersistentTimestampServiceImpl.create(timestampBoundStore);
+            persistentTimestampService = PersistentTimestampServiceImpl.create(timestampBoundStore, () -> clientLock);
         }
         return persistentTimestampService;
     }u}(j  (f4993f06c5f7cd3813fcd575013712ad42840137j  Qtimestamp-impl/src/test/java/com/palantir/timestamp/PersistentUpperLimitTest.javaj  modifiedj  K9j  Kj  K;j  https://github.com/palantir/atlasdb/blob/143a2ba9b6b23e548427a5ab743b401d1aa411ff/timestamp-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentUpperLimitTest.javaj  https://github.com/palantir/atlasdb/raw/143a2ba9b6b23e548427a5ab743b401d1aa411ff/timestamp-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentUpperLimitTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/timestamp-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentUpperLimitTest.java?ref=143a2ba9b6b23e548427a5ab743b401d1aa411ffj  X$  @@ -16,14 +16,22 @@
 package com.palantir.timestamp;
 
 import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
 import static org.mockito.ArgumentMatchers.anyLong;
+import static org.mockito.Mockito.doAnswer;
 import static org.mockito.Mockito.doThrow;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
 
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.Future;
+import java.util.concurrent.Semaphore;
+import java.util.concurrent.TimeUnit;
+import java.util.function.Supplier;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -32,21 +40,28 @@ public class PersistentUpperLimitTest {
     private static final long INITIAL_UPPER_LIMIT = 10L;
     private static final long BUFFER = PersistentUpperLimit.BUFFER;
 
+    private final Object lock = new Object();
+
+    private final ExecutorService taskExecutor = Executors.newCachedThreadPool();
+
     private TimestampBoundStore boundStore;
     private PersistentUpperLimit upperLimit;
+    private Supplier<Object> clientLock;
 
     @Before
     public void setup() {
         boundStore = mock(TimestampBoundStore.class);
         when(boundStore.getUpperLimit()).thenReturn(INITIAL_UPPER_LIMIT);
-        upperLimit = new PersistentUpperLimit(boundStore);
+        clientLock = mock(Supplier.class);
+        when(clientLock.get()).thenReturn(lock);
+        upperLimit = new PersistentUpperLimit(boundStore, clientLock);
     }
 
     @Test
     public void shouldStartWithTheCurrentStoredLimit() {
         when(boundStore.getUpperLimit()).thenReturn(TIMESTAMP);
 
-        PersistentUpperLimit brandNewUpperLimit = new PersistentUpperLimit(boundStore);
+        PersistentUpperLimit brandNewUpperLimit = new PersistentUpperLimit(boundStore, () -> lock);
 
         assertThat(brandNewUpperLimit.get()).isEqualTo(TIMESTAMP);
     }
@@ -111,4 +126,44 @@ public void shouldNotChangeTheCurrentUpperLimitIfItFailsToPersist() {
 
         assertThat(upperLimit.get()).isEqualTo(INITIAL_UPPER_LIMIT);
     }
+
+    @Test
+    public void increaseToAtLeastAcquiresLock() {
+        upperLimit.increaseToAtLeast(TIMESTAMP);
+        verify(clientLock, times(1)).get();
+    }
+
+    /**
+     * Force the first thread to run first and then have it wait to obtain the permit from the second thread. The
+     * second thread will not be able to release the permit, as the first thread is holding the lock.
+     */
+    @Test
+    public void increaseToAtLeastIsThreadSafe() throws InterruptedException {
+        Semaphore taskRunningSemaphore = new Semaphore(0);
+        Semaphore secondThreadSemaphore = new Semaphore(0);
+        doAnswer(invocation -> {
+                    taskRunningSemaphore.release();
+                    secondThreadSemaphore.tryAcquire(1L, TimeUnit.SECONDS);
+                    return null;
+                })
+                .when(boundStore)
+                .storeUpperLimit(anyLong());
+        TimestampBoundStore secondBoundStore = mock(TimestampBoundStore.class);
+        doAnswer(invocation -> {
+                    secondThreadSemaphore.release();
+                    return null;
+                })
+                .when(secondBoundStore)
+                .storeUpperLimit(anyLong());
+        PersistentUpperLimit identicalUpperLimit = new PersistentUpperLimit(secondBoundStore, clientLock);
+        Future<?> firstTask = taskExecutor.submit(() -> upperLimit.increaseToAtLeast(TIMESTAMP));
+        taskRunningSemaphore.tryAcquire(1, TimeUnit.SECONDS);
+        Future<?> secondTask = taskExecutor.submit(() -> identicalUpperLimit.increaseToAtLeast(TIMESTAMP));
+        assertThatCode(() -> firstTask.get(1L, TimeUnit.SECONDS)).doesNotThrowAnyException();
+        assertThatCode(() -> secondTask.get(1L, TimeUnit.SECONDS)).doesNotThrowAnyException();
+        assertThat(secondThreadSemaphore.availablePermits())
+                .as("First thread was able to obtain a lock, which means that multiple threads were running at the "
+                        + "same time, indicating that our lock was not acquired.")
+                .isEqualTo(1);
+    }
 }ueu(2a4f35ca5c0f3d11e0e10881aebf1db5f057c754}(sha(2a4f35ca5c0f3d11e0e10881aebf1db5f057c754node_idEC_kwDOAjP5fdoAKDJhNGYzNWNhNWMwZjNkMTFlMGUxMDg4MWFlYmYxZGI1ZjA1N2M3NTQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-07T18:23:16Zu	committer}(j&  Jeremy Kongj(  jkong@palantir.comj*  2023-06-07T18:23:16ZumessageCRtree}(j  (c13f568a8df21bfde0a7b5c4584f2c19dfb1fe79url`https://api.github.com/repos/palantir/atlasdb/git/trees/c13f568a8df21bfde0a7b5c4584f2c19dfb1fe79uj6  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2a4f35ca5c0f3d11e0e10881aebf1db5f057c754
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSAyxQACgkQTLdFKain
zjzQEwgA1qcMz8bMD5p/wEoctuXfjhV1Jp+M0FPvcr4vYv0dKeq28hH4V9a18i0R
SM7fdeNSsfFWeS0ZSlSOk2nPy8E4xG1J2/hhuNSHEOWu9VgrccHBpsRjHD/o4R9q
IGxkdhcx05GyWXOYYaapjIHdHYp437QfD6hR54w5tv1Gx+EpF/Ar6a0sYUjJDt9T
S2Z8oad3JtAtBUHwW3wh5KIIsc9mGMKAIVigLBckNgPdq1aKD900tY5z596sigxW
AoLwIUhx77slBuu2/7m//4cioDd2p9iR6qTCM/4kzDWHQfNTd1hIj9z3/xOclVGa
zRUfLvchBs85NYDDS8Uj4xDcX84aRg==
=6jq9
-----END PGP SIGNATURE-----payloadtree c13f568a8df21bfde0a7b5c4584f2c19dfb1fe79
parent 3cf512d6c0c085b8e4f029027bdbf076dc4f6320
author Jeremy Kong <jkong@palantir.com> 1686162196 +0100
committer Jeremy Kong <jkong@palantir.com> 1686162196 +0100

CR
uuj6  ^https://api.github.com/repos/palantir/atlasdb/commits/2a4f35ca5c0f3d11e0e10881aebf1db5f057c754html_urlShttps://github.com/palantir/atlasdb/commit/2a4f35ca5c0f3d11e0e10881aebf1db5f057c754comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2a4f35ca5c0f3d11e0e10881aebf1db5f057c754/commentsj$  }(login
jeremyk-91idJZ j   MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j6  'https://api.github.com/users/jeremyk-91jD  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj,  }(jI  
jeremyk-91jK  JZ j   MDQ6VXNlcjU5NTU1MTA=jM  3https://avatars.githubusercontent.com/u/5955510?v=4jO  h5j6  'https://api.github.com/users/jeremyk-91jD  https://github.com/jeremyk-91jR  1https://api.github.com/users/jeremyk-91/followersjT  >https://api.github.com/users/jeremyk-91/following{/other_user}jV  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jX  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jZ  5https://api.github.com/users/jeremyk-91/subscriptionsj\  ,https://api.github.com/users/jeremyk-91/orgsj^  -https://api.github.com/users/jeremyk-91/reposj`  8https://api.github.com/users/jeremyk-91/events{/privacy}jb  7https://api.github.com/users/jeremyk-91/received_eventsjd  Userjf  uparents]}(j  (3cf512d6c0c085b8e4f029027bdbf076dc4f6320j6  ^https://api.github.com/repos/palantir/atlasdb/commits/3cf512d6c0c085b8e4f029027bdbf076dc4f6320jD  Shttps://github.com/palantir/atlasdb/commit/3cf512d6c0c085b8e4f029027bdbf076dc4f6320uastats}(totalK	additionsK
	deletionsKufiles]}(j  (ebcf979926911768c8ee863c40f5ba1f226c9baafilenamelatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javastatusmodifiedj  K
j  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/2a4f35ca5c0f3d11e0e10881aebf1db5f057c754/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2a4f35ca5c0f3d11e0e10881aebf1db5f057c754/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=2a4f35ca5c0f3d11e0e10881aebf1db5f057c754patchX  @@ -49,6 +49,7 @@
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.stream.Collectors;
+import org.jetbrains.annotations.NotNull;
 import org.junit.Test;
 
 public class TransientRowsWorkflowsTest {
@@ -198,7 +199,8 @@ public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
         WitnessedReadTransactionAction readWitness = WitnessedReadTransactionAction.of(
                 TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
         WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
-        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {
+        }))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Expected to find a read of the summary row")
                 .hasExactlyArgs(SafeArg.of("actions", ImmutableList.of(readWitness)));
@@ -212,7 +214,8 @@ public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCor
                 WitnessedReadTransactionAction.of(
                         TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
         WorkflowHistory history = getWorkflowHistory(actions);
-        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {
+        }))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Expected to find a read of a corresponding normal row")
                 .hasExactlyArgs(SafeArg.of("actions", actions));
@@ -293,15 +296,20 @@ private static void inconsistencyInvolvesPairOfPrimaryAndSummaryCells(CrossCellI
                 .findAny()
                 .orElseThrow(() -> new SafeIllegalStateException(
                         "Expected to find a read of the summary row", SafeArg.of("readValues", readValues)));
-        TableAndWorkloadCell primaryCell = TableAndWorkloadCell.of(
-                summaryCell.tableName(),
-                ImmutableWorkloadCell.of(summaryCell.cell().column(), TransientRowsWorkflows.COLUMN));
+        TableAndWorkloadCell primaryCell = getPrimaryCellForSummaryCell(summaryCell);
 
         assertThat(readValues.keySet()).containsExactlyInAnyOrder(summaryCell, primaryCell);
         assertThat(readValues.values())
                 .containsExactlyInAnyOrder(Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
     }
 
+    // This workflow uses a single table, where the summary row's columns correspond to rows with primary values.
+    private static TableAndWorkloadCell getPrimaryCellForSummaryCell(TableAndWorkloadCell summaryCell) {
+        return TableAndWorkloadCell.of(
+                summaryCell.tableName(),
+                ImmutableWorkloadCell.of(summaryCell.cell().column(), TransientRowsWorkflows.COLUMN));
+    }
+
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(
             WitnessedTransactionAction action) {
         if (action instanceof WitnessedReadTransactionAction) {uau`      (92437fc2661704465e6d6237fd4822f175cb4393}(sha(92437fc2661704465e6d6237fd4822f175cb4393node_idEC_kwDOAjP5fdoAKDkyNDM3ZmMyNjYxNzA0NDY1ZTZkNjIzN2ZkNDgyMmYxNzVjYjQzOTMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-22T10:42:51Zu	committer}(j  
Sam Kramerj  skramer@palantir.comj  2023-05-22T10:43:59Zumessageadd flush/compacttree}(j  (95f046d995ce5b14021d99dea9558906177ae3d1url`https://api.github.com/repos/palantir/atlasdb/git/trees/95f046d995ce5b14021d99dea9558906177ae3d1uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/92437fc2661704465e6d6237fd4822f175cb4393
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRrR28ACgkQmPPOpKR4
XS355QgAswrqJfWjGwdEdaXumXB21FczIi1hXgPHhai9zBX+lyinWXt814KF+gY0
SNUV7TDmQt63+d9iQXnH/HS2WLUvAAitk8dDhdf3v4ZIrKeh3pd4kJ07vl/zWKko
ZcMwUY0mOiYMuMiccFoQUK/SFDnsGF4gCNPvtbZdwA928hW123D2/lxyVoCd9lJn
hbQbTQ1jgj0LDtrY26bqPec8/tk0RQhL+kNstMsoee4kq4LU9hN+EJO9CM8c5psK
sPZOk0VNnsGfIQ4ywziQBB5hPc1R7MACMu/SlBgKIlDJFq2mUzQ8LfOu+a2Kknnh
Z57Ft9iPprCDm0jpSQIwNGf+IBINOA==
=njGw
-----END PGP SIGNATURE-----payloadtree 95f046d995ce5b14021d99dea9558906177ae3d1
parent 5fa2497822389be4625d7281bdee8dfad618b82d
author Sam Kramer <skramer@palantir.com> 1684752171 +0100
committer Sam Kramer <skramer@palantir.com> 1684752239 +0100

add flush/compact
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/92437fc2661704465e6d6237fd4822f175cb4393html_urlShttps://github.com/palantir/atlasdb/commit/92437fc2661704465e6d6237fd4822f175cb4393comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/92437fc2661704465e6d6237fd4822f175cb4393/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j  
Sam-Kramerj  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j  h5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj  1https://api.github.com/users/Sam-Kramer/followersj  >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j  5https://api.github.com/users/Sam-Kramer/subscriptionsj  ,https://api.github.com/users/Sam-Kramer/orgsj  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj  uparents]}(j  (5fa2497822389be4625d7281bdee8dfad618b82dj  ^https://api.github.com/repos/palantir/atlasdb/commits/5fa2497822389be4625d7281bdee8dfad618b82dj  Shttps://github.com/palantir/atlasdb/commit/5fa2497822389be4625d7281bdee8dfad618b82duastats}(totalK	additionsK	deletionsKufiles]}(j  (b284936b64cae7e6b461c14a3b7d116eadd96a23filename/atlasdb-workload-server-antithesis/build.gradlestatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/92437fc2661704465e6d6237fd4822f175cb4393/atlasdb-workload-server-antithesis%2Fbuild.gradleraw_urlhttps://github.com/palantir/atlasdb/raw/92437fc2661704465e6d6237fd4822f175cb4393/atlasdb-workload-server-antithesis%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fbuild.gradle?ref=92437fc2661704465e6d6237fd4822f175cb4393patchXL  @@ -7,5 +7,5 @@ def imageVersion = "${project.version.toString().replaceAll('\\+', '-')}"
 docker {
     name "palantirtechnologies/${project.name}:${imageVersion}"
     tags 'latest', 'snapshot'
-    files 'var/docker-compose.yml'
+    files 'var/docker-compose.yml', 'var/compact.sh', 'var/flush.sh'
 }
\ No newline at end of fileuau(5c1748e7186f97b5cea6ac6869184790fae48a4c}(sha(5c1748e7186f97b5cea6ac6869184790fae48a4cnode_idEC_kwDOAjP5fdoAKDVjMTc0OGU3MTg2Zjk3YjVjZWE2YWM2ODY5MTg0NzkwZmFlNDhhNGMcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-11T16:23:08Zu	committer}(j  
Ahmed Alouanej  aalouane@palantir.comj  2023-05-11T16:23:08Zumessage	more heaptree}(j  (4392d29409c455dbe901c78138ed98e6ed4a1eeeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/4392d29409c455dbe901c78138ed98e6ed4a1eeeuj$  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5c1748e7186f97b5cea6ac6869184790fae48a4c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRdFmwACgkQPlMHVIT1
yho2gQgAoeBim1wkHIUA2fjAMqZ+i6qRr6sQpD3Tfh28z3W6YiG4Ky82xxzipxxp
y476IF/wGXBkXDmKBwOygrLzU+jhvn7CErZXmAA6q2Tmu0D4oqZqzRj0Gd48jZBB
oo6ifsVSqfeu2I+oiRTz3tN0cZK2GsQurRaap4zGRVLNTFc0bbklsXPOFk/BoHeO
fbGmLZTv7imfaJ522KNMqVDBH9qMgnmf7OAQDvP0LCb6EO6vaQNmipLetFajy6QY
XRp6uFjm2SYxLYM+IKAb5En0E4jz7poEEM4htOnZm+sJenXS224LtwugiX2IgsS5
nOsLg5/fcA6WDEYvT1Z/JSuimrkJVA==
=9SUV
-----END PGP SIGNATURE-----payloadtree 4392d29409c455dbe901c78138ed98e6ed4a1eee
parent 4c22d328051f67d72da78e9bbe5ab56a4c60d7ad
author Ahmed Alouane <aalouane@palantir.com> 1683822188 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1683822188 +0100

more heap
uuj$  ^https://api.github.com/repos/palantir/atlasdb/commits/5c1748e7186f97b5cea6ac6869184790fae48a4chtml_urlShttps://github.com/palantir/atlasdb/commit/5c1748e7186f97b5cea6ac6869184790fae48a4ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5c1748e7186f97b5cea6ac6869184790fae48a4c/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j$  #https://api.github.com/users/ergo14j2  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j7  ergo14j9  Jj  MDQ6VXNlcjMwOTAzNzM2j;  4https://avatars.githubusercontent.com/u/30903736?v=4j=  h5j$  #https://api.github.com/users/ergo14j2  https://github.com/ergo14j@  -https://api.github.com/users/ergo14/followersjB  :https://api.github.com/users/ergo14/following{/other_user}jD  3https://api.github.com/users/ergo14/gists{/gist_id}jF  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jH  1https://api.github.com/users/ergo14/subscriptionsjJ  (https://api.github.com/users/ergo14/orgsjL  )https://api.github.com/users/ergo14/reposjN  4https://api.github.com/users/ergo14/events{/privacy}jP  3https://api.github.com/users/ergo14/received_eventsjR  UserjT  uparents]}(j  (4c22d328051f67d72da78e9bbe5ab56a4c60d7adj$  ^https://api.github.com/repos/palantir/atlasdb/commits/4c22d328051f67d72da78e9bbe5ab56a4c60d7adj2  Shttps://github.com/palantir/atlasdb/commit/4c22d328051f67d72da78e9bbe5ab56a4c60d7aduastats}(totalK	additionsK	deletionsK ufiles]}(j  (b2cfb1c5c1df2495955ec7203506e9661f7f0f6efilename%scripts/circle-ci/run-circle-tests.shstatusmodifiedjn  Kjo  K changesKblob_url{https://github.com/palantir/atlasdb/blob/5c1748e7186f97b5cea6ac6869184790fae48a4c/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/5c1748e7186f97b5cea6ac6869184790fae48a4c/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=5c1748e7186f97b5cea6ac6869184790fae48a4cpatchX  @@ -75,6 +75,9 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 # External builds have a 16gb limit.
 if [ "$test_suite_index" -eq "13" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
+elif ["$test_suite_index" -eq "3"]
+    export _JAVA_OPTIONS="-Xmx8g ${JAVA_GC_LOGGING_OPTIONS}"
+    BASE_GRADLE_ARGS+=" --scan --parallel"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
     BASE_GRADLE_ARGS+=" --scan --parallel"uau(8d02ab680106302835a8b062d0f4377a407e6e0e}(sha(8d02ab680106302835a8b062d0f4377a407e6e0enode_idEC_kwDOAjP5fdoAKDhkMDJhYjY4MDEwNjMwMjgzNWE4YjA2MmQwZjQzNzdhNDA3ZTZlMGUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-11T10:20:49Zu	committer}(j  
Sam Kramerj  skramer@palantir.comj  2023-04-11T10:20:49Zumessagecleanup code a bit moretree}(j  (3fa1d9f467d0167734004c42fd56c73b04a38a0durl`https://api.github.com/repos/palantir/atlasdb/git/trees/3fa1d9f467d0167734004c42fd56c73b04a38a0duj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8d02ab680106302835a8b062d0f4377a407e6e0e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ1NIEACgkQmPPOpKR4
XS3+dQgAmMo5S881R3kQ367TB67HgrpYJu5pYhudnx7nNmUH8wb4O5CT2G2nAALq
2wI7db4CdX7iRTeev/Eef8JMEfskTnzWJSfNnCsAFky8sVASdq2pUrhwv2ZYfd/4
OLALYZY2yCYhuUCLa2zYmW+82sTNz0c8aVrvfgZhdKZxEBYWoC6+JINz0uHUXkzM
1BlCeGHHbANwG8205uFJh/+V5N4uSEr194gmJci4bJRFtn7nXVaorBO40tSep/CQ
oiuolRSwvQUt+qF2ucMsyjr99nGIDYRv4QCheKjPhMFzNtGyxsT6conCqKdwiEd1
bux3A4ngloKvJtvVXc71fNJgW7ZajA==
=SENc
-----END PGP SIGNATURE-----payloadtree 3fa1d9f467d0167734004c42fd56c73b04a38a0d
parent 979f85ce8ce31b7cfefe51b83daf555a6f62c7d1
author Sam Kramer <skramer@palantir.com> 1681208449 +0100
committer Sam Kramer <skramer@palantir.com> 1681208449 +0100

cleanup code a bit more
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/8d02ab680106302835a8b062d0f4377a407e6e0ehtml_urlShttps://github.com/palantir/atlasdb/commit/8d02ab680106302835a8b062d0f4377a407e6e0ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8d02ab680106302835a8b062d0f4377a407e6e0e/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j  
Sam-Kramerj  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j  h5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj  1https://api.github.com/users/Sam-Kramer/followersj  >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j  5https://api.github.com/users/Sam-Kramer/subscriptionsj  ,https://api.github.com/users/Sam-Kramer/orgsj  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj  uparents]}(j  (979f85ce8ce31b7cfefe51b83daf555a6f62c7d1j  ^https://api.github.com/repos/palantir/atlasdb/commits/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1j  Shttps://github.com/palantir/atlasdb/commit/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1uastats}(totalKt	additionsKn	deletionsKufiles](}(j  (8b84e8d947d2366e1b9c44853e2896bd4fbf10f5filenamehatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/8d02ab680106302835a8b062d0f4377a407e6e0e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaraw_urlhttps://github.com/palantir/atlasdb/raw/8d02ab680106302835a8b062d0f4377a407e6e0e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=8d02ab680106302835a8b062d0f4377a407e6e0epatchXS  @@ -28,7 +28,6 @@
 import java.util.List;
 import java.util.Optional;
 import java.util.function.Consumer;
-import java.util.stream.Collectors;
 import one.util.streamex.StreamEx;
 
 public enum SerializableInvariant implements Invariant<List<InvalidWitnessedTransaction>> {
@@ -53,7 +52,7 @@ public void accept(
 
                     return Optional.of(InvalidWitnessedTransaction.of(witnessedTransaction, invalidTransactions));
                 })
-                .collect(Collectors.toList());
+                .toList();
         invalidWitnessedTransactions.accept(transactions);
     }
 u}(j  (dc1ba80c80acc0c1062aac7549f052f600d069cfj  patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/8d02ab680106302835a8b062d0f4377a407e6e0e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj  https://github.com/palantir/atlasdb/raw/8d02ab680106302835a8b062d0f4377a407e6e0e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=8d02ab680106302835a8b062d0f4377a407e6e0ej  X  @@ -32,7 +32,7 @@ public final class InMemoryTransactionReplayer implements WitnessedTransactionAc
             StructureHolder.create(HashMap::empty);
 
     @Override
-    public Void visit(WitnessedReadTransactionAction readTransactionAction) {
+    public Void visit(WitnessedReadTransactionAction _readTransactionAction) {
         return null;
     }
 
@@ -44,6 +44,9 @@ public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
         return null;
     }
 
+    /**
+     * Deletes are explicitly tracked to enable invariants that rely on verifying that deleted values stay deleted.
+     */
     @Override
     public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         TableAndWorkloadCell tableAndWorkloadCell =u}(j  (cad8af0087ea94b9d7bb8468b7782f80f92dd931j  latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/8d02ab680106302835a8b062d0f4377a407e6e0e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj  https://github.com/palantir/atlasdb/raw/8d02ab680106302835a8b062d0f4377a407e6e0e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=8d02ab680106302835a8b062d0f4377a407e6e0ej  X>  @@ -119,4 +119,31 @@ public void catchesWriteSkew() {
                     .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
         });
     }
+
+    @Test
+    public void handlesDeletes() {
+        AtomicReference<List<InvalidWitnessedTransaction>> invalidTransactions = new AtomicReference<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(6, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .delete(5, 10)
+                .read(5, 10)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::set);
+        assertThat(invalidTransactions)
+                .hasValueSatisfying(invalidWitnessedTransactions ->
+                        assertThat(invalidWitnessedTransactions).isEmpty());
+    }
 }u}(j  (7a5e8dd4c01ddc761284d5c5bdc9c0345ddd2826j  latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowRunnerTest.javaj  renamedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/8d02ab680106302835a8b062d0f4377a407e6e0e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.javaj  https://github.com/palantir/atlasdb/raw/8d02ab680106302835a8b062d0f4377a407e6e0e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.java?ref=8d02ab680106302835a8b062d0f4377a407e6e0ej  Xi  @@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.workload.workflow;
+package com.palantir.atlasdb.workload.runner;
 
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.mock;
@@ -23,7 +23,8 @@
 import static org.mockito.Mockito.when;
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
-import com.palantir.atlasdb.workload.runner.AntithesisWorkflowRunner;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import java.util.List;
 import org.junit.Test;
 previous_filenamenatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/AntithesisWorkflowRunnerTest.javau}(j  (eb63f7e70bff1527685e728d66979d4f8f1a1f60j  tatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayerTest.javaj  addedj  KJj  K j  KJj  https://github.com/palantir/atlasdb/blob/8d02ab680106302835a8b062d0f4377a407e6e0e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj  https://github.com/palantir/atlasdb/raw/8d02ab680106302835a8b062d0f4377a407e6e0e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.java?ref=8d02ab680106302835a8b062d0f4377a407e6e0ej  X  @@ -0,0 +1,74 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.Tuple2;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class InMemoryTransactionReplayerTest {
+
+    private static final WitnessedWriteTransactionAction WRITE_TRANSACTION_ACTION_1 =
+            ImmutableWitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+    private static final WitnessedWriteTransactionAction WRITE_TRANSACTION_ACTION_2 =
+            ImmutableWitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO);
+
+    @Test
+    public void readActionsAreIgnored() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        inMemoryTransactionReplayer.visit(
+                ImmutableWitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+        assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
+    }
+
+    @Test
+    public void writesAreRecorded() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_1);
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_2);
+        assertThat(inMemoryTransactionReplayer.getValues())
+                .containsExactlyInAnyOrder(
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)),
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_TWO, Optional.of(VALUE_TWO)));
+    }
+
+    @Test
+    public void deletesAreRecorded() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_1);
+        inMemoryTransactionReplayer.visit(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
+        inMemoryTransactionReplayer.visit(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO));
+        assertThat(inMemoryTransactionReplayer.getValues())
+                .containsExactlyInAnyOrder(
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_ONE, Optional.empty()),
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_TWO, Optional.empty()));
+    }
+}u}(j  (d41f421a529706e28216c07a76330a4a15027ec0j  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/8d02ab680106302835a8b062d0f4377a407e6e0e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj  https://github.com/palantir/atlasdb/raw/8d02ab680106302835a8b062d0f4377a407e6e0e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=8d02ab680106302835a8b062d0f4377a407e6e0ej  X  @@ -28,7 +28,7 @@
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicLong;
 
-public class WitnessedTransactionsBuilder {
+public final class WitnessedTransactionsBuilder {
 
     private final List<WitnessedTransaction> witnessedTransactions = new ArrayList<>();
 ueu(9b15fcc5c729c103608f42c382d5936ab6116e0e}(sha(9b15fcc5c729c103608f42c382d5936ab6116e0enode_idEC_kwDOAjP5fdoAKDliMTVmY2M1YzcyOWMxMDM2MDhmNDJjMzgyZDU5MzZhYjYxMTZlMGUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-04T18:26:49Zu	committer}(j,  Jeremy Kongj.  jkong@palantir.comj0  2023-07-04T18:26:49Zumessagesemantic merge conflicttree}(j$  (87f2c55bb0706e6467c1239ecdc5277b4c997007url`https://api.github.com/repos/palantir/atlasdb/git/trees/87f2c55bb0706e6467c1239ecdc5277b4c997007uj<  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9b15fcc5c729c103608f42c382d5936ab6116e0e
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSkZGkACgkQTLdFKain
zjzKCAgAoshfRd63jMTFjIumZFk0kjgnozTd6lgPBybSu/2vltLjBHvxPT5D2Eax
h+mYsqdCaUVD+w/ionNpNx1xcFJXQ/x9lEYEYC6MRh3y7nTnfeGDT5k0iVhG0cIF
KpXQKDmVfW+lsiLBe6r4gtp7ytqwUOfkBCvqrVhqUELAedanJAuZgT15zmtW5mR/
poCpNzb8qh/nZ3zyvxVwuBk+IoA+TWtsS9VCnWhs2zRvb4c3P5EpG8d0bluWqFk6
s0vtFbWJnGgy/XxIKn2/YRAvWuof8uKsLXQjRPfGXgTHHG3rG1rfmjXB1KhY9gBH
Xll3MhBH2PP/jBmY6TmgpOf1UtscTA==
=86GN
-----END PGP SIGNATURE-----payloadtree 87f2c55bb0706e6467c1239ecdc5277b4c997007
parent 25c99a096ed2cd60150e4e069ffec9913fc91438
author Jeremy Kong <jkong@palantir.com> 1688495209 +0100
committer Jeremy Kong <jkong@palantir.com> 1688495209 +0100

semantic merge conflict
uuj<  ^https://api.github.com/repos/palantir/atlasdb/commits/9b15fcc5c729c103608f42c382d5936ab6116e0ehtml_urlShttps://github.com/palantir/atlasdb/commit/9b15fcc5c729c103608f42c382d5936ab6116e0ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9b15fcc5c729c103608f42c382d5936ab6116e0e/commentsj*  }(login
jeremyk-91idJZ j&  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j<  'https://api.github.com/users/jeremyk-91jJ  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj2  }(jO  
jeremyk-91jQ  JZ j&  MDQ6VXNlcjU5NTU1MTA=jS  3https://avatars.githubusercontent.com/u/5955510?v=4jU  h5j<  'https://api.github.com/users/jeremyk-91jJ  https://github.com/jeremyk-91jX  1https://api.github.com/users/jeremyk-91/followersjZ  >https://api.github.com/users/jeremyk-91/following{/other_user}j\  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j^  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j`  5https://api.github.com/users/jeremyk-91/subscriptionsjb  ,https://api.github.com/users/jeremyk-91/orgsjd  -https://api.github.com/users/jeremyk-91/reposjf  8https://api.github.com/users/jeremyk-91/events{/privacy}jh  7https://api.github.com/users/jeremyk-91/received_eventsjj  Userjl  uparents]}(j$  (25c99a096ed2cd60150e4e069ffec9913fc91438j<  ^https://api.github.com/repos/palantir/atlasdb/commits/25c99a096ed2cd60150e4e069ffec9913fc91438jJ  Shttps://github.com/palantir/atlasdb/commit/25c99a096ed2cd60150e4e069ffec9913fc91438uastats}(totalK	additionsK	deletionsKufiles]}(j$  (6d6f5fcc34e22304ca8c5dc2c2c635361ee8fb32filenameaatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9b15fcc5c729c103608f42c382d5936ab6116e0e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9b15fcc5c729c103608f42c382d5936ab6116e0e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=9b15fcc5c729c103608f42c382d5936ab6116e0epatchX[  @@ -93,7 +93,7 @@ public Optional<WitnessedTransaction> run(TransactionStore store) {
         private List<SingleCellReadTransactionAction> generateReadActions() {
             return IntStream.range(0, random.nextInt(workflowConfiguration.maxReads() + 1))
                     .boxed()
-                    .map(_index -> ImmutableSingleCellReadTransactionAction.of(
+                    .map(_index -> SingleCellReadTransactionAction.of(
                             workflowConfiguration.tableConfiguration().tableName(), randomCell()))
                     .collect(Collectors.toList());
         }uau(8a763d36fa1de876f153aef9a0165342a8bbface}(sha(8a763d36fa1de876f153aef9a0165342a8bbfacenode_idEC_kwDOAjP5fdoAKDhhNzYzZDM2ZmExZGU4NzZmMTUzYWVmOWEwMTY1MzQyYThiYmZhY2Ucommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-06T16:16:28Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj  2023-06-06T16:16:28Zumessagepatchy patchtree}(j  (6af6652bb6abe030bf6cb04b99deea7aa738d091url`https://api.github.com/repos/palantir/atlasdb/git/trees/6af6652bb6abe030bf6cb04b99deea7aa738d091uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8a763d36fa1de876f153aef9a0165342a8bbface
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR/W9wACgkQTLdFKain
zjwoGAf7B+GWpU/QP3c9Tb3omFv3fMu3cHOk3G7umzyASg0uZkhJcxQa6Aaa/Fnn
bD47ftNgi7xXng5j6fgAg4ra82v83YEJtajkNql2WV83dtJ8vLo0bvy079URonaV
qOPMA7hgt96J/DZG/wpHO4FDrNpTuhtiu/bvqkKBoMcAu5HIuF1FhvB0jQIPWVY2
zYJWhf5zj5YWRfdVHy1HjOT1wTbmDTjeha1A1/tdBqFY0zOuIhtiHXO83qgkorMe
1qcK0k8CBhTnLRgbwz78eFohkRQoWhEVIkP4ibuKDeydr3s8OjIhfTM/TdBtTjPV
LHODjpnFPC/tdNFdngwDS0b/zgDsZw==
=QYNw
-----END PGP SIGNATURE-----payloadtree 6af6652bb6abe030bf6cb04b99deea7aa738d091
parent 75b40e96d6b1647f3a56252237eebafc96c11f56
author Jeremy Kong <jkong@palantir.com> 1686068188 +0100
committer Jeremy Kong <jkong@palantir.com> 1686068188 +0100

patchy patch
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/8a763d36fa1de876f153aef9a0165342a8bbfacehtml_urlShttps://github.com/palantir/atlasdb/commit/8a763d36fa1de876f153aef9a0165342a8bbfacecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8a763d36fa1de876f153aef9a0165342a8bbface/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j  
jeremyk-91j  JZ j  MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j  h5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91j  1https://api.github.com/users/jeremyk-91/followersj  >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents]}(j  (75b40e96d6b1647f3a56252237eebafc96c11f56j  ^https://api.github.com/repos/palantir/atlasdb/commits/75b40e96d6b1647f3a56252237eebafc96c11f56j  Shttps://github.com/palantir/atlasdb/commit/75b40e96d6b1647f3a56252237eebafc96c11f56uastats}(totalK	additionsK		deletionsKufiles](}(j  (a3a69f4e6a65955d1d156f23285980afa6ba85adfilename|atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowColumnRangeReadTransactionAction.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/8a763d36fa1de876f153aef9a0165342a8bbface/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/8a763d36fa1de876f153aef9a0165342a8bbface/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.java?ref=8a763d36fa1de876f153aef9a0165342a8bbfacepatchX  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
-import io.vavr.collection.Map;
+import java.util.Map;
 import org.immutables.value.Value;
 
 /**u}(j  (d398082539f61d4f259ead72be314ce2672bdba7j  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/8a763d36fa1de876f153aef9a0165342a8bbface/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj
  https://github.com/palantir/atlasdb/raw/8a763d36fa1de876f153aef9a0165342a8bbface/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=8a763d36fa1de876f153aef9a0165342a8bbfacej  X  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
-import io.vavr.collection.Map;
+import java.util.Map;
 import org.immutables.value.Value;
 
 @Value.Immutableu}(j  (12ac1ba77ac5173e6e93ae318bde8d17c872de28j  fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/8a763d36fa1de876f153aef9a0165342a8bbface/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj
  https://github.com/palantir/atlasdb/raw/8a763d36fa1de876f153aef9a0165342a8bbface/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=8a763d36fa1de876f153aef9a0165342a8bbfacej  XC  @@ -27,6 +27,7 @@
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
@@ -159,6 +160,12 @@ public Void visit(DeleteTransactionAction deleteTransactionAction) {
             transaction.delete(deleteTransactionAction.table(), deleteTransactionAction.cell());
             return null;
         }
+
+        @Override
+        public Void visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+            // TODO (jkong): Not implemented yet
+            throw new UnsupportedOperationException("Not implemented yet");
+        }
     }
 
     public static AtlasDbTransactionStore create(ueu(a575301875df420d5e9feb8842737b23fdce5f48}(sha(a575301875df420d5e9feb8842737b23fdce5f48node_idEC_kwDOAjP5fdoAKGE1NzUzMDE4NzVkZjQyMGQ1ZTlmZWI4ODQyNzM3YjIzZmRjZTVmNDgcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-05-30T14:53:53Zu	committer}(j*  Lucas Meirelesj,  meireles31@msn.comj.  2023-05-30T14:53:53ZumessageBMerge branch 'develop' into lmeireles/broken-lock-check-on-purposetree}(j"  (e9a9e9e3aa3c9ff4efb05a5343f86da83dde4f7durl`https://api.github.com/repos/palantir/atlasdb/git/trees/e9a9e9e3aa3c9ff4efb05a5343f86da83dde4f7duj:  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a575301875df420d5e9feb8842737b23fdce5f48
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmR2DgIACgkQJd22kJ7J
GiwRQAgAxsTdjVMkkUxu7f4RQpVPDHp22gtWtQQF3uC+H1EWlOoikZS1yuwoLIUN
aHEYnVnb3/T7NG2c7ObCxLEsmAbXihWleneh98kdk9tTgDoO6PO5PbzoKMZN72jD
O2BqxdKY9lV2kB+g1Pg+fJoKkSaVHQl7sIIQXD5iVtxjPiSA5UU50gkWWwRfXIZ9
xsfTZcyypnKmYKS5xY1eLvLo5zHdofo4AbK+qAcKLLfso7jAbNuNdVWOr4mPQmC4
ipIOKxkJ3mRF0RLHRrnRUrgw1Djc+4TEe/+oaR1/ldistR/HWeh5qgpnGUbIhCem
z+Xrkox3dCgYX3p95jbsf/XaVl/2Tg==
=1HeS
-----END PGP SIGNATURE-----payloadXM  tree e9a9e9e3aa3c9ff4efb05a5343f86da83dde4f7d
parent 71ca43dd4af96fb01b99f475c4770bd92fe7cb3e
parent bf6890433442e3e1661fb64a5ec87a7ffee50c23
author Lucas Meireles <meireles31@msn.com> 1685458433 +0100
committer Lucas Meireles <meireles31@msn.com> 1685458433 +0100

Merge branch 'develop' into lmeireles/broken-lock-check-on-purpose
uuj:  ^https://api.github.com/repos/palantir/atlasdb/commits/a575301875df420d5e9feb8842737b23fdce5f48html_urlShttps://github.com/palantir/atlasdb/commit/a575301875df420d5e9feb8842737b23fdce5f48comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a575301875df420d5e9feb8842737b23fdce5f48/commentsj(  }(loginLucasIMEidJg j$  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j:  %https://api.github.com/users/LucasIMEjH  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj0  }(jM  LucasIMEjO  Jg j$  MDQ6VXNlcjY3ODczMTE=jQ  3https://avatars.githubusercontent.com/u/6787311?v=4jS  h5j:  %https://api.github.com/users/LucasIMEjH  https://github.com/LucasIMEjV  /https://api.github.com/users/LucasIME/followersjX  <https://api.github.com/users/LucasIME/following{/other_user}jZ  5https://api.github.com/users/LucasIME/gists{/gist_id}j\  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j^  3https://api.github.com/users/LucasIME/subscriptionsj`  *https://api.github.com/users/LucasIME/orgsjb  +https://api.github.com/users/LucasIME/reposjd  6https://api.github.com/users/LucasIME/events{/privacy}jf  5https://api.github.com/users/LucasIME/received_eventsjh  Userjj  uparents](}(j"  (71ca43dd4af96fb01b99f475c4770bd92fe7cb3ej:  ^https://api.github.com/repos/palantir/atlasdb/commits/71ca43dd4af96fb01b99f475c4770bd92fe7cb3ejH  Shttps://github.com/palantir/atlasdb/commit/71ca43dd4af96fb01b99f475c4770bd92fe7cb3eu}(j"  (bf6890433442e3e1661fb64a5ec87a7ffee50c23j:  ^https://api.github.com/repos/palantir/atlasdb/commits/bf6890433442e3e1661fb64a5ec87a7ffee50c23jH  Shttps://github.com/palantir/atlasdb/commit/bf6890433442e3e1661fb64a5ec87a7ffee50c23uestats}(totalK	additionsK	deletionsK"ufiles](}(j"  (08cd766747be7ea89f3186414b112d6fff840236filenameiatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleOverflowWriteTable.javastatusmodifiedj  K,j  KchangesKJblob_urlhttps://github.com/palantir/atlasdb/blob/a575301875df420d5e9feb8842737b23fdce5f48/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a575301875df420d5e9feb8842737b23fdce5f48/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.java?ref=a575301875df420d5e9feb8842737b23fdce5f48patchXQ  @@ -351,31 +351,41 @@ private void deleteOverflow(String overflowTable, List<Object[]> args) {
         String shortTableName = oraclePrefixedTableNames.get(tableRef, conns);
         conns.get()
                 .updateManyUnregisteredQuery(
-                        " /* DELETE_ONE_OVERFLOW (" + overflowTable + ") */ "
-                                + " DELETE /*+ INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */ "
-                                + "   FROM " + overflowTable + " m "
-                                + "  WHERE m.id IN (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName)
-                                + ") */ "
-                                + "                        i.overflow "
-                                + "                   FROM " + shortTableName + " i "
-                                + "                  WHERE i.row_name = ? "
-                                + "                    AND i.col_name = ? "
-                                + "                    AND i.ts = ? "
-                                + "                    AND i.overflow IS NOT NULL)",
+                        "/* DELETE_ONE_OVERFLOW (" + overflowTable + ") */"
+                                + " DELETE"
+                                + " /*+"
+                                + "   INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ")"
+                                + "   LEADING(i) USE_NL(i m)"
+                                + " */"
+                                + " FROM " + overflowTable + " m"
+                                + " WHERE m.id IN"
+                                + "   (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName) + ") */"
+                                + "     i.overflow"
+                                + "     FROM " + shortTableName + " i"
+                                + "     WHERE i.row_name = ?"
+                                + "       AND i.col_name = ?"
+                                + "       AND i.ts = ?"
+                                + "       AND i.overflow IS NOT NULL)",
                         args);
     }
 
     private void deleteOverflowRange(String overflowTable, String shortTableName, RangeRequest range) {
         StringBuilder query = new StringBuilder();
-        query.append(" /* DELETE_RANGE_OVERFLOW (").append(overflowTable).append(") */ ");
-        query.append(" DELETE /*+ INDEX(m pk_").append(overflowTable).append(") */ ");
-        query.append("   FROM ").append(overflowTable).append(" m ");
-        query.append(" WHERE m.id IN (");
+        query.append("/* DELETE_RANGE_OVERFLOW (")
+                .append(overflowTable)
+                .append(") */ DELETE /*+ INDEX(m ")
+                .append(PrimaryKeyConstraintNames.get(overflowTable))
+                .append(") LEADING(i) USE_NL(i m) */ FROM ")
+                .append(overflowTable)
+                .append(" m WHERE m.id IN (");
 
         // subquery for finding rows in the short table
-        query.append("SELECT /*+ INDEX(i pk_").append(shortTableName).append(") */ ");
-        query.append("       i.overflow ");
-        query.append("    FROM ").append(shortTableName).append(" i ");
+        query.append("SELECT /*+ INDEX(i ")
+                .append(PrimaryKeyConstraintNames.get(shortTableName))
+                .append(") */")
+                .append(" i.overflow FROM ")
+                .append(shortTableName)
+                .append(" i");
 
         // add where clauses
         WhereClauses whereClauses = WhereClauses.create("i", range, "i.overflow IS NOT NULL");
@@ -398,18 +408,22 @@ private void deleteAllTimestampsOverflow(String overflowTable, List<Object[]> ar
         String shortTableName = oraclePrefixedTableNames.get(tableRef, conns);
         conns.get()
                 .updateManyUnregisteredQuery(
-                        " /* DELETE_ALL_TS_OVERFLOW (" + overflowTable + ") */ "
-                                + " DELETE /*+ INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */ "
-                                + "   FROM " + overflowTable + " m "
-                                + "  WHERE m.id IN (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName)
-                                + ") */ "
-                                + "                        i.overflow "
-                                + "                   FROM " + shortTableName + " i "
-                                + "                  WHERE i.row_name = ? "
-                                + "                    AND i.col_name = ? "
-                                + "                    AND i.ts >= ? "
-                                + "                    AND i.ts <= ? "
-                                + "                    AND i.overflow IS NOT NULL)",
+                        " /* DELETE_ALL_TS_OVERFLOW (" + overflowTable + ") */"
+                                + " DELETE"
+                                + " /*+"
+                                + "   INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ")"
+                                + "   LEADING(i) USE_NL(i m)"
+                                + " */"
+                                + " FROM " + overflowTable + " m"
+                                + " WHERE m.id IN"
+                                + "   (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName) + ") */"
+                                + "     i.overflow"
+                                + "     FROM " + shortTableName + " i"
+                                + "     WHERE i.row_name = ?"
+                                + "       AND i.col_name = ?"
+                                + "       AND i.ts >= ?"
+                                + "       AND i.ts <= ?"
+                                + "       AND i.overflow IS NOT NULL)",
                         args);
     }
 u}(j"  (88f8467b9c138fc4cb41ea3c961977dd5dd0f8e4j   atlasdb-impl-shared/build.gradlej  modifiedj  Kj  K j  Kj  thttps://github.com/palantir/atlasdb/blob/a575301875df420d5e9feb8842737b23fdce5f48/atlasdb-impl-shared%2Fbuild.gradlej  shttps://github.com/palantir/atlasdb/raw/a575301875df420d5e9feb8842737b23fdce5f48/atlasdb-impl-shared%2Fbuild.gradlej  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fbuild.gradle?ref=a575301875df420d5e9feb8842737b23fdce5f48j  X
  @@ -12,6 +12,7 @@ license {
   exclude '**/PutUnlessExistsTableMetrics.java'
   exclude '**/TargetedSweepProgressMetrics.java'
   exclude '**/TimestampCorrectnessMetrics.java'
+  exclude '**/ExpectationsMetrics.java'
   exclude '**/VerificationModeMetrics.java'
 }
 u}(j"  (f93956c564df967c827fb4d2fd2ff0c499a92050j  `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj  modifiedj  Kj  Kj  K"j  https://github.com/palantir/atlasdb/blob/a575301875df420d5e9feb8842737b23fdce5f48/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj  https://github.com/palantir/atlasdb/raw/a575301875df420d5e9feb8842737b23fdce5f48/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=a575301875df420d5e9feb8842737b23fdce5f48j  X  @@ -98,6 +98,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueServiceImpl;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
@@ -265,12 +266,14 @@ private enum State {
     protected final TableLevelMetricsController tableLevelMetricsController;
     protected final SuccessCallbackManager successCallbackManager = new SuccessCallbackManager();
     private final CommitTimestampLoader commitTimestampLoader;
+    private final ExpectationsMetrics expectationsDataCollectionMetrics;
 
     protected volatile boolean hasReads;
 
     protected final TimestampCache timestampCache;
 
     protected final TransactionKnowledgeComponents knowledge;
+
     protected final Closer closer = Closer.create();
 
     /**
@@ -345,6 +348,7 @@ private enum State {
                 timelockService,
                 immutableTimestamp,
                 knowledge);
+        this.expectationsDataCollectionMetrics = ExpectationsMetrics.of(metricsManager.getTaggedRegistry());
     }
 
     protected TransactionScopedCache getCache() {
@@ -1817,11 +1821,16 @@ private void ensureUncommitted() {
     }
 
     private void ensureStillRunning() {
-        if (!(state.get() == State.UNCOMMITTED || state.get() == State.COMMITTING)) {
+        if (!isStillRunning()) {
             throw new CommittedTransactionException();
         }
     }
 
+    private boolean isStillRunning() {
+        State stateNow = state.get();
+        return stateNow == State.UNCOMMITTED || stateNow == State.COMMITTING;
+    }
+
     /**
      * Returns true iff the transaction is known to have successfully committed.
      *
@@ -2597,9 +2606,28 @@ public TransactionReadInfo getReadInfo() {
         return keyValueService.getOverallReadInfo();
     }
 
-    // TODO(aalouane): implement and call this on transaction exit
     @Override
-    public void reportExpectationsCollectedData() {}
+    public void reportExpectationsCollectedData() {
+        if (isStillRunning()) {
+            log.error(
+                    "reportExpectationsCollectedData is called on an in-progress transaction",
+                    SafeArg.of("state", state.get()));
+            return;
+        }
+
+        reportExpectationsCollectedData(getAgeMillis(), getReadInfo(), expectationsDataCollectionMetrics);
+    }
+
+    @VisibleForTesting
+    static void reportExpectationsCollectedData(
+            long ageMillis, TransactionReadInfo readInfo, ExpectationsMetrics metrics) {
+        metrics.ageMillis().update(ageMillis);
+        metrics.bytesRead().update(readInfo.bytesRead());
+        metrics.kvsReads().update(readInfo.kvsCalls());
+
+        readInfo.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
+                .update(kvsCallReadInfo.bytesRead()));
+    }
 
     private long getStartTimestamp() {
         return startTimestamp.get();u}(j"  (e696a4e851cc0de0f72f1af470c874f29b2e719bj  5atlasdb-impl-shared/src/main/metrics/expectations.ymlj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/a575301875df420d5e9feb8842737b23fdce5f48/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj  https://github.com/palantir/atlasdb/raw/a575301875df420d5e9feb8842737b23fdce5f48/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=a575301875df420d5e9feb8842737b23fdce5f48j  X  @@ -0,0 +1,19 @@
+options:
+  javaPackage: 'com.palantir.atlasdb.transaction.expectations'
+
+namespaces:
+  expectations:
+    docs: Data collection on transaction patterns
+    metrics:
+      bytesRead:
+        docs: Bytes read by a transaction through Atlas kvs read calls
+        type: histogram
+      kvsReads:
+        docs: Number of Atlas kvs read calls made by a transaction
+        type: histogram
+      ageMillis:
+        docs: Elapsed duration in milliseconds for a transaction
+        type: histogram
+      mostKvsBytesReadInSingleCall:
+        docs: Most bytes read by a transaction in one Atlas kvs read call
+        type: histogramu}(j"  (c8823c29da58eca2fbdcdf7fc98f8ab892c82d54j  matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javaj  addedj  KSj  K j  KSj  https://github.com/palantir/atlasdb/blob/a575301875df420d5e9feb8842737b23fdce5f48/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj  https://github.com/palantir/atlasdb/raw/a575301875df420d5e9feb8842737b23fdce5f48/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=a575301875df420d5e9feb8842737b23fdce5f48j  X<
  @@ -0,0 +1,83 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class ExpectationsMetricsReportingTest {
+    // immutable in type declaration for better 'withX' ergonomics
+    private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
+            ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
+
+    private ExpectationsMetrics metrics;
+
+    @Before
+    public void setUp() {
+        metrics = ExpectationsMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
+    }
+
+    @Test
+    public void ageReported() {
+        long age = 129L;
+        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, metrics);
+        assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
+    }
+
+    @Test
+    public void bytesReadReported() {
+        long bytes = 1290L;
+        reportMetrics(BLANK_READ_INFO.withBytesRead(bytes));
+        assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
+    }
+
+    @Test
+    public void kvsCallsReported() {
+        long calls = 12L;
+        reportMetrics(BLANK_READ_INFO.withKvsCalls(calls));
+        assertThat(metrics.kvsReads().getSnapshot().getValues()).containsOnly(calls);
+    }
+
+    @Test
+    public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
+        reportMetrics(BLANK_READ_INFO);
+        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+                .isEmpty();
+    }
+
+    @Test
+    public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
+        long bytes = 193L;
+        reportMetrics(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+                .containsOnly(bytes);
+    }
+
+    private void reportMetrics(TransactionReadInfo readInfo) {
+        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, metrics);
+    }
+}u}(j"  (18e3bf26bf01f5384536788e145f8e8f37200656j  latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/a575301875df420d5e9feb8842737b23fdce5f48/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj  https://github.com/palantir/atlasdb/raw/a575301875df420d5e9feb8842737b23fdce5f48/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=a575301875df420d5e9feb8842737b23fdce5f48j  X  @@ -237,7 +237,10 @@ public void registersMetrics() throws InterruptedException {
         TaggedMetricRegistry registry = snapshotTransactionManager.metricsManager.getTaggedRegistry();
         assertThat(registry.getMetrics().keySet().stream().map(MetricName::safeName))
                 .contains(SETUP_TASK_METRIC_NAME)
-                .contains(FINISH_TASK_METRIC_NAME);
+                .contains(FINISH_TASK_METRIC_NAME)
+                .contains("expectations.bytesRead")
+                .contains("expectations.kvsReads")
+                .contains("expectations.ageMillis");
         assertThat(registry.timer(MetricName.builder()
                                 .safeName(SETUP_TASK_METRIC_NAME)
                                 .build())u}(j"  (b92e0f6636b00a68d6b900daa1da10ff5cbb9a1ej   changelog/0.865.0/pr-6595.v2.ymlj  addedj  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/a575301875df420d5e9feb8842737b23fdce5f48/changelog%2F0.865.0%2Fpr-6595.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/a575301875df420d5e9feb8842737b23fdce5f48/changelog%2F0.865.0%2Fpr-6595.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.865.0%2Fpr-6595.v2.yml?ref=a575301875df420d5e9feb8842737b23fdce5f48j  @@ -0,0 +1,5 @@
+type: feature
+feature:
+  description: '[TEX] Report transaction level metrics'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6595u}(j"  (24da7696d056cef662a3a0936f5eaef73ca2f9f2j   changelog/0.866.0/pr-6581.v2.ymlj  addedj  Kj  K j  Kj  vhttps://github.com/palantir/atlasdb/blob/a575301875df420d5e9feb8842737b23fdce5f48/changelog%2F0.866.0%2Fpr-6581.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/a575301875df420d5e9feb8842737b23fdce5f48/changelog%2F0.866.0%2Fpr-6581.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.866.0%2Fpr-6581.v2.yml?ref=a575301875df420d5e9feb8842737b23fdce5f48j  @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Add leading/nested loop hints on Oracle delete overflow related SQL
+    to improve perf
+  links:
+  - https://github.com/palantir/atlasdb/pull/6581ueu(b7e54108cf9ac6df1e22b675f6e54ea215b7844d}(sha(b7e54108cf9ac6df1e22b675f6e54ea215b7844dnode_idEC_kwDOAjP5fdoAKGI3ZTU0MTA4Y2Y5YWM2ZGYxZTIyYjY3NWY2ZTU0ZWEyMTViNzg0NGQcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-03-31T12:41:02Zu	committer}(j  
svc-changelogj  svc-changelog@palantir.comj  2023-03-31T12:41:02ZumessageAdd generated changelog entriestree}(j  (d71e6abecdcf57361dc9f8dc8ca6ff3e1b7c2fedurl`https://api.github.com/repos/palantir/atlasdb/git/trees/d71e6abecdcf57361dc9f8dc8ca6ff3e1b7c2fedu      j  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b7e54108cf9ac6df1e22b675f6e54ea215b7844d
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQm1N4JEHYaJX37fAFQAADJuAEApplhvfYOLMog3qrO/mdNEfxn
hM95gX47PqabKyaRpt8A/RFGtBlj3mIOAjlI68Yft2t7euhcv+LaU0/bTrzX/R6+
=Nhah
-----END PGP SIGNATURE-----payloadX  tree d71e6abecdcf57361dc9f8dc8ca6ff3e1b7c2fed
parent 810fe203706d93ed7bfc94147d7eb1fecc7ac494
author svc-changelog <svc-changelog@palantir.com> 1680266462 +0000
committer svc-changelog <svc-changelog@palantir.com> 1680266462 +0000

Add generated changelog entriesuuj  ^https://api.github.com/repos/palantir/atlasdb/commits/b7e54108cf9ac6df1e22b675f6e54ea215b7844dhtml_urlShttps://github.com/palantir/atlasdb/commit/b7e54108cf9ac6df1e22b675f6e54ea215b7844dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b7e54108cf9ac6df1e22b675f6e54ea215b7844d/commentsj  }(login
svc-changelogidJ#j  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j  *https://api.github.com/users/svc-changelogj   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj  }(j   
svc-changelogj  J#j  MDQ6VXNlcjg0MDc3NjAzj  4https://avatars.githubusercontent.com/u/84077603?v=4j  h5j  *https://api.github.com/users/svc-changelogj   https://github.com/svc-changelogj	  4https://api.github.com/users/svc-changelog/followersj  Ahttps://api.github.com/users/svc-changelog/following{/other_user}j
  :https://api.github.com/users/svc-changelog/gists{/gist_id}j  Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j  8https://api.github.com/users/svc-changelog/subscriptionsj  /https://api.github.com/users/svc-changelog/orgsj  0https://api.github.com/users/svc-changelog/reposj  ;https://api.github.com/users/svc-changelog/events{/privacy}j  :https://api.github.com/users/svc-changelog/received_eventsj  Userj  uparents]}(j  (810fe203706d93ed7bfc94147d7eb1fecc7ac494j  ^https://api.github.com/repos/palantir/atlasdb/commits/810fe203706d93ed7bfc94147d7eb1fecc7ac494j  Shttps://github.com/palantir/atlasdb/commit/810fe203706d93ed7bfc94147d7eb1fecc7ac494uastats}(totalK	additionsK	deletionsK ufiles]}(j  (8a7969078d64d46743dff97cd6f18a708dd58aa8filename$changelog/@unreleased/pr-6496.v2.ymlstatusaddedj7  Kj8  K changesKblob_url|https://github.com/palantir/atlasdb/blob/b7e54108cf9ac6df1e22b675f6e54ea215b7844d/changelog%2F%40unreleased%2Fpr-6496.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/b7e54108cf9ac6df1e22b675f6e54ea215b7844d/changelog%2F%40unreleased%2Fpr-6496.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6496.v2.yml?ref=b7e54108cf9ac6df1e22b675f6e54ea215b7844dpatch{@@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: bump postgres
+  links:
+  - https://github.com/palantir/atlasdb/pull/6496uau(18136f74744130fd2c8b5f2222360c1683664fa2}(sha(18136f74744130fd2c8b5f2222360c1683664fa2node_idEC_kwDOAjP5fdoAKDE4MTM2Zjc0NzQ0MTMwZmQyYzhiNWYyMjIyMzYwYzE2ODM2NjRmYTIcommit}(author}(nameCVdV-auemail)69226052+CVdV-au@users.noreply.github.comdate2023-05-19T15:14:20Zu	committer}(jT  GitHubjV  noreply@github.comjX  2023-05-19T15:14:20Zumessage-Bump testing to Oracle 19.19 Apr 2023 (#6538)tree}(jL  (e4108b3ab7e50e3e6ec234c48b97272bbe0ff018url`https://api.github.com/repos/palantir/atlasdb/git/trees/e4108b3ab7e50e3e6ec234c48b97272bbe0ff018ujd  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/18136f74744130fd2c8b5f2222360c1683664fa2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkZ5JMCRBK7hj4Ov3rIwAANv8IAKhaugL+NOksoohW1/3OyRxH
dl6x8SrIIueq+tEl2wiy5AxQXLkwxZ39m3beAUl0xA5OGhhC0oHN29wrLfkneCGT
fWDfq8w8wkQ0I4P2hsc5PCdSBV7VjjpkJdLTirvT2oofEDbFeQR7K919FLBeiWki
Z9JFhWL6PcP/EiEYGs0uG1nBnTQvwtndA/wmKFF8E65qtOlnBfvhcIjs34hpNKPv
mrNolAlQqqqL8jTKBp43AF3hmxoBovUKj0IvrtT1Zg2fRjXj4PtqD631cCcflEXK
hUcK2+LCMBFK+le6IyijYWTEqJY2MIqKFE9FnnL4Eyma5LCUjs6zZl3erBG4s8A=
=O6na
-----END PGP SIGNATURE-----
payloadX  tree e4108b3ab7e50e3e6ec234c48b97272bbe0ff018
parent d5de69ef499472ae6cfca5d6ec172a9129e15231
author CVdV-au <69226052+CVdV-au@users.noreply.github.com> 1684509260 +1000
committer GitHub <noreply@github.com> 1684509260 +0000

Bump testing to Oracle 19.19 Apr 2023 (#6538)

 uujd  ^https://api.github.com/repos/palantir/atlasdb/commits/18136f74744130fd2c8b5f2222360c1683664fa2html_urlShttps://github.com/palantir/atlasdb/commit/18136f74744130fd2c8b5f2222360c1683664fa2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/18136f74744130fd2c8b5f2222360c1683664fa2/commentsjR  }(loginCVdV-auidJDN jN  MDQ6VXNlcjY5MjI2MDUy
avatar_url4https://avatars.githubusercontent.com/u/69226052?v=4gravatar_idh5jd  $https://api.github.com/users/CVdV-aujr  https://github.com/CVdV-au
followers_url.https://api.github.com/users/CVdV-au/followers
following_url;https://api.github.com/users/CVdV-au/following{/other_user}	gists_url4https://api.github.com/users/CVdV-au/gists{/gist_id}starred_url;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/CVdV-au/subscriptionsorganizations_url)https://api.github.com/users/CVdV-au/orgs	repos_url*https://api.github.com/users/CVdV-au/repos
events_url5https://api.github.com/users/CVdV-au/events{/privacy}received_events_url4https://api.github.com/users/CVdV-au/received_eventstypeUser
site_adminujZ  }(jw  web-flowjy  J/jN  MDQ6VXNlcjE5ODY0NDQ3j{  4https://avatars.githubusercontent.com/u/19864447?v=4j}  h5jd  %https://api.github.com/users/web-flowjr  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(jL  (d5de69ef499472ae6cfca5d6ec172a9129e15231jd  ^https://api.github.com/repos/palantir/atlasdb/commits/d5de69ef499472ae6cfca5d6ec172a9129e15231jr  Shttps://github.com/palantir/atlasdb/commit/d5de69ef499472ae6cfca5d6ec172a9129e15231uastats}(totalK	additionsK	deletionsKufiles]}(jL  (1d193b8827aecd4f6d245fb465dfbdc647f5e14afilename+atlasdb-ete-tests/docker-compose.oracle.ymlstatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/18136f74744130fd2c8b5f2222360c1683664fa2/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlraw_url~https://github.com/palantir/atlasdb/raw/18136f74744130fd2c8b5f2222360c1683664fa2/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.oracle.yml?ref=18136f74744130fd2c8b5f2222360c1683664fa2patch@@ -2,7 +2,7 @@ version: '2'
 
 services:
   oracle:
-    image: palantirtechnologies/oracle-atlasdb:19.18.0.0-se
+    image: palantirtechnologies/oracle-atlasdb:19.19.0.0-se
     ports:
       - "1521"
 uau(5cad61e37ef6fad2cd65593553160a045c27cc2f}(sha(5cad61e37ef6fad2cd65593553160a045c27cc2fnode_idEC_kwDOAjP5fdoAKDVjYWQ2MWUzN2VmNmZhZDJjZDY1NTkzNTUzMTYwYTA0NWMyN2NjMmYcommit}(author}(nameChris Van de Veldeemailcvandevelde@palantir.comdate2023-04-05T05:22:50Zu	committer}(j  Chris Van de Veldej  cvandevelde@palantir.comj  2023-04-05T05:22:50Zumessagespotlesstree}(j  (cd9ac31db6ee211b81b7c87e6d43bf7a717a5091url`https://api.github.com/repos/palantir/atlasdb/git/trees/cd9ac31db6ee211b81b7c87e6d43bf7a717a5091uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5cad61e37ef6fad2cd65593553160a045c27cc2f
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEfsytHu2QbUsz5QamhCdbnbxuCwoFAmQtBbEACgkQhCdbnbxu
CwoMIgf+N+8rY44b6qdVc7BYTncEJzHJMPdpd18qCmGmw2QYyOr2VXzOsxN1cvzm
ckBfEFHdWPrMuj+AI1S6P1VvOLWJJxr1yDM1vd1xcCirXh3oJULMvpUQv4iHiBvZ
BzEDGBnoHBAoEYjrf/SOeowPzhvf+YCv81YoefO5XMKwaAH6hpk+gT77lhrV9qn2
JWVDMiY0hbhYvDmYFhdQNlFYtzDyynjQa/xdP+yVrnQUwYo8csGodz6+VOXGWEqr
ga6ktG95WINIoCR0Yrcarx6yuzWkfPGIqNNzrXEu7UOq0LDohZekO+KaRcq/Dy32
BBTkZTijYGfclpFQNAm0AeO0VF2mYw==
=BcWz
-----END PGP SIGNATURE-----payloadtree cd9ac31db6ee211b81b7c87e6d43bf7a717a5091
parent f61c5378c2e6a67d2fa1f309e7fcb59b6ce0e542
author Chris Van de Velde <cvandevelde@palantir.com> 1680672170 +1000
committer Chris Van de Velde <cvandevelde@palantir.com> 1680672170 +1000

spotless
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/5cad61e37ef6fad2cd65593553160a045c27cc2fhtml_urlShttps://github.com/palantir/atlasdb/commit/5cad61e37ef6fad2cd65593553160a045c27cc2fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5cad61e37ef6fad2cd65593553160a045c27cc2f/commentsj  }(loginCVdV-auidJDN j  MDQ6VXNlcjY5MjI2MDUy
avatar_url4https://avatars.githubusercontent.com/u/69226052?v=4gravatar_idh5j  $https://api.github.com/users/CVdV-auj  https://github.com/CVdV-au
followers_url.https://api.github.com/users/CVdV-au/followers
following_url;https://api.github.com/users/CVdV-au/following{/other_user}	gists_url4https://api.github.com/users/CVdV-au/gists{/gist_id}starred_url;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/CVdV-au/subscriptionsorganizations_url)https://api.github.com/users/CVdV-au/orgs	repos_url*https://api.github.com/users/CVdV-au/repos
events_url5https://api.github.com/users/CVdV-au/events{/privacy}received_events_url4https://api.github.com/users/CVdV-au/received_eventstypeUser
site_adminuj  }(j  CVdV-auj  JDN j  MDQ6VXNlcjY5MjI2MDUyj  4https://avatars.githubusercontent.com/u/69226052?v=4j  h5j  $https://api.github.com/users/CVdV-auj  https://github.com/CVdV-auj  .https://api.github.com/users/CVdV-au/followersj  ;https://api.github.com/users/CVdV-au/following{/other_user}j  4https://api.github.com/users/CVdV-au/gists{/gist_id}j  ;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}j  2https://api.github.com/users/CVdV-au/subscriptionsj  )https://api.github.com/users/CVdV-au/orgsj  *https://api.github.com/users/CVdV-au/reposj  5https://api.github.com/users/CVdV-au/events{/privacy}j  4https://api.github.com/users/CVdV-au/received_eventsj	  Userj  uparents]}(j  (f61c5378c2e6a67d2fa1f309e7fcb59b6ce0e542j  ^https://api.github.com/repos/palantir/atlasdb/commits/f61c5378c2e6a67d2fa1f309e7fcb59b6ce0e542j  Shttps://github.com/palantir/atlasdb/commit/f61c5378c2e6a67d2fa1f309e7fcb59b6ce0e542uastats}(totalK	additionsK	deletionsK
ufiles]}(j  (e22af5a95fd838f0ae5d4de23759495e249828a8filenamecatlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTableTest.javastatusmodifiedj%  Kj&  K
changesKblob_urlhttps://github.com/palantir/atlasdb/blob/5cad61e37ef6fad2cd65593553160a045c27cc2f/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5cad61e37ef6fad2cd65593553160a045c27cc2f/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.java?ref=5cad61e37ef6fad2cd65593553160a045c27cc2fpatchXi
  @@ -356,15 +356,12 @@ public void createDoesNotThrowWhenOverflowColumnAlreadyExistsAndAlterIsRan() thr
         verifyTableAltered();
     }
 
-
-
     @Test
     public void conservativeSweptTablesHaveIndexCompression2() {
         for (int numColumns = 0; numColumns <= 2; numColumns++) {
             TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.CONSERVATIVE);
             for (int colName = 0; colName < numColumns; colName++) {
-                metadataBuilder.singleNamedColumn(
-                        "c" + colName, "col" + colName, ValueType.STRING);
+                metadataBuilder.singleNamedColumn("c" + colName, "col" + colName, ValueType.STRING);
             }
             TableMetadata metadata = metadataBuilder.build();
             assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(2);
@@ -375,8 +372,8 @@ public void conservativeSweptTablesHaveIndexCompression2() {
     public void thoroughSweptTablesWithDynamicColsHaveIndexCompression1() {
         TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
         TableMetadata metadata = metadataBuilder
-                    .dynamicColumns(List.of(NameComponentDescription.of("c" , ValueType.STRING)), ValueType.STRING)
-                    .build();
+                .dynamicColumns(List.of(NameComponentDescription.of("c", ValueType.STRING)), ValueType.STRING)
+                .build();
         assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(1);
     }
 
@@ -386,14 +383,13 @@ public void thoroughSweptTablesWithMultipleNamedColsHaveIndexCompression1() {
             TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
             List<NamedColumnDescription> columns = new ArrayList<>();
             for (int colDesc = 1; colDesc <= numColumns; colDesc++) {
-                columns.add(new NamedColumnDescription("c" + colDesc, "col" + colDesc,
-                        ColumnValueDescription.forType(ValueType.STRING)));
+                columns.add(new NamedColumnDescription(
+                        "c" + colDesc, "col" + colDesc, ColumnValueDescription.forType(ValueType.STRING)));
             }
             TableMetadata metadata = metadataBuilder
                     .columns(new ColumnMetadataDescription(columns))
                     .build();
-            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata))
-                    .isEqualTo(1);
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(1);
         }
     }
 uau(cfe303a71f835673adbd85f6f393b94773c1c02f}(sha(cfe303a71f835673adbd85f6f393b94773c1c02fnode_idEC_kwDOAjP5fdoAKGNmZTMwM2E3MWY4MzU2NzNhZGJkODVmNmYzOTNiOTQ3NzNjMWMwMmYcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-06-21T19:30:54Zu	committer}(jB  Patrick KoenigjD  pkoenig10@gmail.comjF  2023-06-21T19:31:44ZumessagePrefer ZoneOffset.UTCtree}(j:  (3ddb7cfbb5bf90c9fead6049ced4cba62ad9631eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/3ddb7cfbb5bf90c9fead6049ced4cba62ad9631eujR  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cfe303a71f835673adbd85f6f393b94773c1c02f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAAhcAAAAHc3NoLXJzYQAAAAMBAAEAAAIBAOLBVI00yZaP7395xCyqzy
aD/kgGj5GS8qP2f4Q0hM5gFbEYaTLwKvZTgcFMKJEw/3tOlCyuFoQChwrZ+YjoX3ZcTdIs
QnoGeYlwKUGY4x3QXLvrURZtGaXWggfEc+UKHT3mnGXM9FpX9CSdpTopg7KhxDlx3/Jv90
zimWImFPxKFUSZrhVGqD8qAQibPTFDs+JhK0cqllhsvm0PR9PilTde++NKLCQUNrRJi2+f
BjLBjJMJshRwXkkM6J8hDvyjiLJz4Bg9hq+5QLnO1fYaetU7aP4bsCs6ix5pyD4WO6cr6T
SMCtJThNdHvOVuOaCCHBOQrdVGjbMH9lmW5FL5oMsTZ86p24rZOFD9ly44mMJWYGk6F81y
japNgWorhR0tSZMSZPVlisGQQsRnsqQidrVPe3IR4MTUsKx39CAutxgk6N+BseeByXKw+H
aBKmd75u/FU7IoxEbXX7EuDq2TCtUmujYXiY7SY4T0DQDjNpHq+vrEUsKyi5mbRTdNahvt
eFWJU5UIwO7Ao+HdsqfUjGN6zw2HSkiHEG3iOj5OY+byI/ykoYGMQ40w6w7shCt7XDbUXa
/kGqIyicthBGQ7Y4/TtquH5Ag2UPSlN9C0Rt/ZBolkTfoLz4wCtTMzd7hdixs5yuocVTn7
njhSYSXRyRbbVcF/q56x1NAAsVOe9epxAAAAA2dpdAAAAAAAAAAGc2hhNTEyAAACFAAAAA
xyc2Etc2hhMi01MTIAAAIAhsWxFjtfXwPJdc8OMrxa+1eplewcerqsY7dgS3j+pabknsjK
zQYpfTm/8VNWB/27awbv7EQBzaZXrx/b3jo5Ou5/XEx5gdf5jVa/GXKI2H6pDnzawsY27c
3+ihQdITNEDRrr85Lc+BJSbECJ9K9jXNblxXTz4vvve6L1ALkw4H9n8f5kJjYY/cJKnhQ/
FS02l+eJJa7aws/Tfl1ohTkWACtSpJXsmh2LJ7OHF2pA69674nFOmDlmsSXCRPtMivE1fZ
8lyH29+Gqqgh6ap0Oy8lCbiHaNXpxq6T0+rbpHoF9EsPkM5hWoRbE/IAAqnbIvsIzxsQXZ
qogKcLhrxtp/9h8XiuP3es/BeYbqW+sZZx0Dk7H1LPe9gB5LYfgWWRZgTKg0Oy+rU3/mOh
0r/s4DcIVIuAp/R5CHsV1m4qBE2kV6L/mtT2kAsE8ogFqMQzE5OZebp5K4ZNfyLAtIfYgN
AzjvoQBin3u7O9p4QUKYvQbBz6iSp8bRGy75h3q8Ky7/W58A0+isPBQX+Kytqc3Nli0vBr
47S1zS/+O9MTZS9w12uOa4/dHus7pwiUEtv2Mx9T1aiQYqsoFn3JO44WYAty/1NOEDbByD
KMR4buLBdh3LnmjROkNCmtE6KxCFVZFfZfRwoc5iY3sGGXyF7gkiRuF19Lv79QG7Lpcuu0
1Kj3s=
-----END SSH SIGNATURE-----payloadtree 3ddb7cfbb5bf90c9fead6049ced4cba62ad9631e
parent 4042f72d514d46a48a5326a7c240b54e8eb11149
author Patrick Koenig <pkoenig10@gmail.com> 1687375854 -0700
committer Patrick Koenig <pkoenig10@gmail.com> 1687375904 -0700

Prefer ZoneOffset.UTC
uujR  ^https://api.github.com/repos/palantir/atlasdb/commits/cfe303a71f835673adbd85f6f393b94773c1c02fhtml_urlShttps://github.com/palantir/atlasdb/commit/cfe303a71f835673adbd85f6f393b94773c1c02fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cfe303a71f835673adbd85f6f393b94773c1c02f/commentsj@  }(login	pkoenig10idJLvP j<  MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5jR  &https://api.github.com/users/pkoenig10j`  https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminujH  }(je  	pkoenig10jg  JLvP j<  MDQ6VXNlcjUyNzMxNjQ=ji  3https://avatars.githubusercontent.com/u/5273164?v=4jk  h5jR  &https://api.github.com/users/pkoenig10j`  https://github.com/pkoenig10jn  0https://api.github.com/users/pkoenig10/followersjp  =https://api.github.com/users/pkoenig10/following{/other_user}jr  6https://api.github.com/users/pkoenig10/gists{/gist_id}jt  =https://api.github.com/users/pkoenig10/starred{/owner}{/repo}jv  4https://api.github.com/users/pkoenig10/subscriptionsjx  +https://api.github.com/users/pkoenig10/orgsjz  ,https://api.github.com/users/pkoenig10/reposj|  7https://api.github.com/users/pkoenig10/events{/privacy}j~  6https://api.github.com/users/pkoenig10/received_eventsj  Userj  uparents]}(j:  (4042f72d514d46a48a5326a7c240b54e8eb11149jR  ^https://api.github.com/repos/palantir/atlasdb/commits/4042f72d514d46a48a5326a7c240b54e8eb11149j`  Shttps://github.com/palantir/atlasdb/commit/4042f72d514d46a48a5326a7c240b54e8eb11149uastats}(totalK	additionsK	deletionsKufiles]}(j:  (970150ceb69466af2115ad6aa21eb8a845799996filenameQatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfo.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/cfe303a71f835673adbd85f6f393b94773c1c02f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfo.javaraw_urlhttps://github.com/palantir/atlasdb/raw/cfe303a71f835673adbd85f6f393b94773c1c02f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfo.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfo.java?ref=cfe303a71f835673adbd85f6f393b94773c1c02fpatchX  @@ -22,7 +22,7 @@
 import com.palantir.atlasdb.keyvalue.api.WriteReference;
 import com.palantir.atlasdb.sweep.Sweeper;
 import java.time.LocalDate;
-import java.time.ZoneId;
+import java.time.ZoneOffset;
 import java.util.Optional;
 import org.immutables.value.Value;
 
@@ -55,7 +55,7 @@ default int dayRotatingHash() {
         int hash = 5381;
         hash = hash * 1439
                 + writeRef().orElse(SweepQueueUtils.DUMMY).cellReference().goodHash();
-        hash = hash * 1439 + LocalDate.now(ZoneId.of("UTC")).hashCode();
+        hash = hash * 1439 + LocalDate.now(ZoneOffset.UTC).hashCode();
         return hash;
     }
 uau(87347505912a61b0e772bd233e41dd25de3f440e}(sha(87347505912a61b0e772bd233e41dd25de3f440enode_idEC_kwDOAjP5fdoAKDg3MzQ3NTA1OTEyYTYxYjBlNzcyYmQyMzNlNDFkZDI1ZGUzZjQ0MGUcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-12T14:49:45Zu	committer}(j  	Tom Papkej  tpapke@palantir.comj  2023-07-12T14:49:45Zumessageremove Assertions.tree}(j  (8afc25f4575294a4c87d55036d17ebabb7ae876furl`https://api.github.com/repos/palantir/atlasdb/git/trees/8afc25f4575294a4c87d55036d17ebabb7ae876fuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/87347505912a61b0e772bd233e41dd25de3f440e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSuvYkACgkQmF9s0kaF
Iw03KggAu+gGyhmE7r1Z12rBqctqIj5yI1Ijn8mVRkC+qhCiWPmKCwkknkMEsQaB
s0zuiXDOyfXz4zFzLykyqC59SMojClhvK4vXPH+PRZrphT6M5QxSGk5nCQJ463Bj
7L4BP6a+FQD+ykjZfNDComMiCxb2DcA20ZjhvtepKcQ7rKwR+fCm19lIcvj16gnT
Shy4UvSSDxOW1d9qXUaKv8/npyLa9qPcrKZsKKxc4wxDFQmf+wS0b6wrFJrngOxR
YNzNYuhUz3DQV6ETogppjzBj1CRBRlQQgLctIATerUf7J1GfHQZn81VHC6FzscZv
DP8fxk9xO+mcITdVn6Ed9tMg3X/cDw==
=aU5r
-----END PGP SIGNATURE-----payloadtree 8afc25f4575294a4c87d55036d17ebabb7ae876f
parent f0a45c32cdedbd2389f59fd5275b229f08568c47
author Tom Papke <tpapke@palantir.com> 1689173385 +0100
committer Tom Papke <tpapke@palantir.com> 1689173385 +0100

remove Assertions.
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/87347505912a61b0e772bd233e41dd25de3f440ehtml_urlShttps://github.com/palantir/atlasdb/commit/87347505912a61b0e772bd233e41dd25de3f440ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/87347505912a61b0e772bd233e41dd25de3f440e/commentsj  }(login	ToemmscheidJboj  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj  }(j  	Toemmschej  Jboj  MDQ6VXNlcjQzNjc1NDkwj  4https://avatars.githubusercontent.com/u/43675490?v=4j  h5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmschej  0https://api.github.com/users/Toemmsche/followersj  =https://api.github.com/users/Toemmsche/following{/other_user}j  6https://api.github.com/users/Toemmsche/gists{/gist_id}j  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j  4https://api.github.com/users/Toemmsche/subscriptionsj  +https://api.github.com/users/Toemmsche/orgsj  ,https://api.github.com/users/Toemmsche/reposj  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj  Userj  uparents]}(j  (f0a45c32cdedbd2389f59fd5275b229f08568c47j  ^https://api.github.com/repos/palantir/atlasdb/commits/f0a45c32cdedbd2389f59fd5275b229f08568c47j  Shttps://github.com/palantir/atlasdb/commit/f0a45c32cdedbd2389f59fd5275b229f08568c47uastats}(totalK	additionsK	deletionsKufiles]}(j  (197797a98d302c6f26f914a316d6c6179eeb7689filenameKatlasdb-commons/src/test/java/com/palantir/util/IndexEncodingUtilsTest.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/87347505912a61b0e772bd233e41dd25de3f440e/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/87347505912a61b0e772bd233e41dd25de3f440e/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.java?ref=87347505912a61b0e772bd233e41dd25de3f440epatchXY  @@ -40,7 +40,6 @@
 import java.util.function.Function;
 import java.util.stream.Collectors;
 import java.util.stream.Stream;
-import org.assertj.core.api.Assertions;
 import org.immutables.value.Value;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -184,7 +183,7 @@ public void decodingEncodedDataYieldsOriginalForRandomData() {
                 .filter(_unused -> rand.nextBoolean())
                 .map(_unused -> rand.nextLong())
                 .collectToMap();
-        Assertions.assertThat(IndexEncodingUtils.decode(
+        assertThat(IndexEncodingUtils.decode(
                         IndexEncodingUtils.encode(keys, data, Function.identity(), checksumType), Function.identity()))
                 .as("Encoding and decoding yields original data. Random seed: " + seed)
                 .containsExactlyInAnyOrderEntriesOf(data);uau(edea36bbf1d8610fc6a82aed848ab1a32422b5ce}(sha(edea36bbf1d8610fc6a82aed848ab1a32422b5cenode_idEC_kwDOAjP5fdoAKGVkZWEzNmJiZjFkODYxMGZjNmE4MmFlZDg0OGFiMWEzMjQyMmI1Y2Ucommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-03-24T15:32:18Zu	committer}(j0  Jeremy Kongj2  jkong@palantir.comj4  2023-03-24T15:32:18Zumessageconsistencytree}(j(  (b50b07a24110ba14be04152d46c2d242a9eea93curl`https://api.github.com/repos/palantir/atlasdb/git/trees/b50b07a24110ba14be04152d46c2d242a9eea93cuj@  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/edea36bbf1d8610fc6a82aed848ab1a32422b5ce
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQdwoIACgkQTLdFKain
zjyuEgf+LFWoxh8YjIbVSjEMJAzbvGokaj9qWcPaqGuHzOOTS/k4pdy+lCLp9/PV
XmfcPyBkdqocahz82ULb2v67e9eYQcBUYr5oOeqzVE1t0HIOw1RS+j9pj/5/BIoy
6r43hY9/0FtE1nI2MwQ4U8nkw/bmJeOHh20NWWxI6PceskWcwrEBxOnFJNXKIN+g
3V+wvHxzDMjoz5/RHZiKvgW3fqyJpSAB15w8JRWsfMjzsVV6ozxNgUEvj5ddC9ts
ygXc17v8hsOHMLHXrH4ivOKFULv8AJmUxxZh3VeWuGkYhPKwerRhBfIaqyIRL6d1
vC+gFNreG5oFRzom2FNDAIrmaABHDA==
=b9i9
-----END PGP SIGNATURE-----payloadtree b50b07a24110ba14be04152d46c2d242a9eea93c
parent 590da2c2037f1016d058c65dae37e973a6189c71
author Jeremy Kong <jkong@palantir.com> 1679671938 +0000
committer Jeremy Kong <jkong@palantir.com> 1679671938 +0000

consistency
uuj@  ^https://api.github.com/repos/palantir/atlasdb/commits/edea36bbf1d8610fc6a82aed848ab1a32422b5cehtml_urlShttps://github.com/palantir/atlasdb/commit/edea36bbf1d8610fc6a82aed848ab1a32422b5cecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/edea36bbf1d8610fc6a82aed848ab1a32422b5ce/commentsj.  }(login
jeremyk-91idJZ j*  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j@  'https://api.github.com/users/jeremyk-91jN  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj6  }(jS  
jeremyk-91jU  JZ j*  MDQ6VXNlcjU5NTU1MTA=jW  3https://avatars.githubusercontent.com/u/5955510?v=4jY  h5j@  'https://api.github.com/users/jeremyk-91jN  https://github.com/jeremyk-91j\  1https://api.github.com/users/jeremyk-91/followersj^  >https://api.github.com/users/jeremyk-91/following{/other_user}j`  7https://api.github.com/users/jeremyk-91/gists{/gist_id}jb  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jd  5https://api.github.com/users/jeremyk-91/subscriptionsjf  ,https://api.github.com/users/jeremyk-91/orgsjh  -https://api.github.com/users/jeremyk-91/reposjj  8https://api.github.com/users/jeremyk-91/events{/privacy}jl  7https://api.github.com/users/jeremyk-91/received_eventsjn  Userjp  uparents]}(j(  (590da2c2037f1016d058c65dae37e973a6189c71j@  ^https://api.github.com/repos/palantir/atlasdb/commits/590da2c2037f1016d058c65dae37e973a6189c71jN  Shttps://github.com/palantir/atlasdb/commit/590da2c2037f1016d058c65dae37e973a6189c71uastats}(totalK
	additionsK	deletionsKufiles]}(j(  (0d2d4ad98a55ca825efe3a6a9aaedd1b0acd5728filenameRatlasdb-commons/src/main/java/com/palantir/async/initializer/AsyncInitializer.javastatusmodifiedj  Kj  KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/edea36bbf1d8610fc6a82aed848ab1a32422b5ce/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.javaraw_urlhttps://github.com/palantir/atlasdb/raw/edea36bbf1d8610fc6a82aed848ab1a32422b5ce/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.java?ref=edea36bbf1d8610fc6a82aed848ab1a32422b5cepatchX	  @@ -64,7 +64,7 @@ private void tryInitializationLoop() {
                     "Shutting down executor associated with asynchronous initialisation, as it was cancelled",
                     SafeArg.of("className", getInitializingClassName()),
                     SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
-                    SafeArg.of("durationBeforeCancellation", getTimeSinceInitialization()));
+                    SafeArg.of("durationBeforeCancellation", getMillisecondsSinceInitialization()));
             singleThreadedExecutor.shutdown();
             return;
         }
@@ -75,13 +75,13 @@ private void tryInitializationLoop() {
                             + " milliseconds.",
                     SafeArg.of("className", getInitializingClassName()),
                     SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
-                    SafeArg.of("initializationDuration", getTimeSinceInitialization()));
+                    SafeArg.of("initializationDuration", getMillisecondsSinceInitialization()));
             tryInitializeInternal();
             log.info(
                     "Initialized {} on the attempt {} in {} milliseconds",
                     SafeArg.of("className", getInitializingClassName()),
                     SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
-                    SafeArg.of("initializationDuration", getTimeSinceInitialization()));
+                    SafeArg.of("initializationDuration", getMillisecondsSinceInitialization()));
         } catch (Throwable throwable) {
             log.info(
                     "Failed to initialize {} on the attempt {}",
@@ -95,14 +95,14 @@ private void tryInitializationLoop() {
                         "Failed to cleanup when initialization of {} failed on attempt {} with {} milliseconds",
                         SafeArg.of("className", getInitializingClassName()),
                         SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
-                        SafeArg.of("initializationDuration", getTimeSinceInitialization()),
+                        SafeArg.of("initializationDuration", getMillisecondsSinceInitialization()),
                         cleanupThrowable);
             }
             scheduleInitialization(sleepInterval());
         }
     }
 
-    private long getTimeSinceInitialization() {
+    private long getMillisecondsSinceInitialization() {
         return System.currentTimeMillis() - initializationStartTime;
     }
 uau(a856cd26916b061ee398ecbfdd2bf50d0fc8820c}(sha(a856cd26916b061ee398ecbfdd2bf50d0fc8820cnode_idEC_kwDOAjP5fdoAKGE4NTZjZDI2OTE2YjA2MWVlMzk4ZWNiZmRkMmJmNTBkMGZjODgyMGMcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-22T12:34:34Zu	committer}(j  Lucas Meirelesj  meireles31@msn.comj  2023-06-22T12:34:34Zumessageemit metrics about txn readtree}(j  (da938e0e52c1203ef1850301f835bb19ce599249url`https://api.github.com/repos/palantir/atlasdb/git/trees/da938e0e52c1203ef1850301f835bb19ce599249uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a856cd26916b061ee398ecbfdd2bf50d0fc8820c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSUP9oACgkQJd22kJ7J
GizL8wgAmHpSGCQtMVB7JMeoEplbXbuQR0Og64qgrctnbxX0x7GSp2F1SbCYLwtP
mN1IUACjJjs0+XSYFvXa3/zXZVXqxHusHMVQqc5N91bF5YrwFTldMGgjlP+iZSPD
i512P3qnqq34D6akECMFI8V/qRHUHCw0sTd2ggscErwgfdkSMyynCbkgyX4M52Bq
UsGOnH7HsCGExA6xybRPx8qkCl76PYquYbR8k7KzB1L/OW8msh2iozFTjuIvkuWv
IOCKMuLnoqpqbu7bmqrgFIllf64X6gqQzImre4crqIrTKVhwHqOp8uoJR4ZyQ9G+
5CnBQpCwyvj9p88WdMBsw4U1R7pYDw==
=0vDa
-----END PGP SIGNATURE-----payloadtree da938e0e52c1203ef1850301f835bb19ce599249
parent 4042f72d514d46a48a5326a7c240b54e8eb11149
author Lucas Meireles <meireles31@msn.com> 1687437274 +0100
committer Lucas Meireles <meireles31@msn.com> 1687437274 +0100

emit metrics about txn read
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/a856cd26916b061ee398ecbfdd2bf50d0fc8820chtml_urlShttps://github.com/palantir/atlasdb/commit/a856cd26916b061ee398ecbfdd2bf50d0fc8820ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a856cd26916b061ee398ecbfdd2bf50d0fc8820c/commentsj  }(loginLucasIMEidJg j  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj  }(j  LucasIMEj  Jg j  MDQ6VXNlcjY3ODczMTE=j  3https://avatars.githubusercontent.com/u/6787311?v=4j  h5j  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIMEj  /https://api.github.com/users/LucasIME/followersj  <https://api.github.com/users/LucasIME/following{/other_user}j  5https://api.github.com/users/LucasIME/gists{/gist_id}j  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j  3https://api.github.com/users/LucasIME/subscriptionsj  *https://api.github.com/users/LucasIME/orgsj  +https://api.github.com/users/LucasIME/reposj  6https://api.github.com/users/LucasIME/events{/privacy}j  5https://api.github.com/users/LucasIME/received_eventsj  Userj  uparents]}(j  (4042f72d514d46a48a5326a7c240b54e8eb11149j  ^https://api.github.com/repos/palantir/atlasdb/commits/4042f72d514d46a48a5326a7c240b54e8eb11149j  Shttps://github.com/palantir/atlasdb/commit/4042f72d514d46a48a5326a7c240b54e8eb11149uastats}(totalK	additionsK	deletionsKufiles]}(j  (6a9121820cdfc1a2598849cc4dd560d0121bebfbfilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/a856cd26916b061ee398ecbfdd2bf50d0fc8820c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a856cd26916b061ee398ecbfdd2bf50d0fc8820c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=a856cd26916b061ee398ecbfdd2bf50d0fc8820cpatchX  @@ -926,13 +926,12 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
             }
         }
 
-        // We don't need to read any cells that were written locally.
+        // We don't need to read any cells that were written locally. Making an immutable copy because otherwise adding
+        // values to the result map would prevent us from calculating the correct size of the set for comparison later,
+        // since Sets.difference gives us a live view.
+        Set<Cell> cellsWithNoLocalWrites = ImmutableSet.copyOf(Sets.difference(cells, result.keySet()));
         return Futures.transform(
-                getFromKeyValueService(
-                        tableRef,
-                        Sets.difference(cells, result.keySet()),
-                        asyncKeyValueService,
-                        asyncTransactionService),
+                getFromKeyValueService(tableRef, cellsWithNoLocalWrites, asyncKeyValueService, asyncTransactionService),
                 fromKeyValueService -> {
                     result.putAll(fromKeyValueService);
 
@@ -946,12 +945,21 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
                                 SafeArg.of("getOperation", operationName),
                                 SafeArg.of("durationMillis", getMillis));
                     }
+                    boolean allPossibleCellsReadAndPresent =
+                            fromKeyValueService.size() == cellsWithNoLocalWrites.size();
+                    emitReadMetrics(allPossibleCellsReadAndPresent);
                     validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
                     return removeEmptyColumns(result, tableRef);
                 },
                 MoreExecutors.directExecutor());
     }
 
+    private void emitReadMetrics(boolean allPossibleCellsReadAndPresent) {
+        Map<String, String> exhaustiveReadTags =
+                ImmutableMap.of("isExhaustive", Boolean.toString(allPossibleCellsReadAndPresent));
+        getCounter("snapshotTransactionGet", exhaustiveReadTags).inc();
+    }
+
     @Override
     public Map<Cell, byte[]> getIgnoringLocalWrites(TableReference tableRef, Set<Cell> cells) {
         checkGetPreconditions(tableRef);
@@ -2719,6 +2727,10 @@ private Histogram getHistogram(String name, TableReference tableRef) {
                 SnapshotTransaction.class, name, metricsManager.getTableNameTagFor(tableRef));
     }
 
+    private Counter getCounter(String name, Map<String, String> tags) {
+        return metricsManager.registerOrGetTaggedCounter(SnapshotTransaction.class, name, tags);
+    }
+
     private Counter getCounter(String name, TableReference tableRef) {
         return tableLevelMetricsController.createAndRegisterCounter(SnapshotTransaction.class, name, tableRef);
     }uau(1d8a8052b69364899014b5bf55ae6479107beea0}(sha(1d8a8052b69364899014b5bf55ae6479107beea0node_idEC_kwDOAjP5fdoAKDFkOGE4MDUyYjY5MzY0ODk5MDE0YjViZjU1YWU2NDc5MTA3YmVlYTAcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-01T15:58:11Zu	committer}(j  Lucas Meirelesj   meireles31@msn.comj"  2023-06-01T15:58:11Zumessagesingle read no touch workflowtree}(j  (a7f4f874cd1bcf5b019b590a081b6751e87c241durl`https://api.github.com/repos/palantir/atlasdb/git/trees/a7f4f874cd1bcf5b019b590a081b6751e87c241duj.  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1d8a8052b69364899014b5bf55ae6479107beea0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmR4wBMACgkQJd22kJ7J
Giwx+Af8DKmluIZsnEKZjr5nWUWRkBiagI+uD05l4n+iKcqznG9Rhb/A3Y0CLPb5
WYP77+Rim56GxrGE+mhJ6TaU/Fv9Q9SGYYHCVzNRAeEUWpjA4NyME0rzu/mxfqAE
TwKWJ6JDtUVnf9RN++e/AUdElQZkeXAX0kYlEfibmte9wIuS0fa3OR41L5SvGpLR
APeT3dyAtKGroy/Q4039eUS1EVDhU7GMYuUkGF90Ei6JYoPWsApPQmpMjDvosoVm
kzAO/YDnvCkl4ZpZ3bYFVGWb8IQQJpRNB2s3PSIk5tSPuHxseBoLbJ/eQ41H6oLE
I12SxyLUDns32fULJcxDlnGMNDZElQ==
=6yvs
-----END PGP SIGNATURE-----payloadtree a7f4f874cd1bcf5b019b590a081b6751e87c241d
parent 43c37cccec9dc898631f37d2c0e3aeb13f0706d8
author Lucas Meireles <meireles31@msn.com> 1685635091 +0100
committer Lucas Meireles <meireles31@msn.com> 1685635091 +0100

single read no touch workflow
uuj.  ^https://api.github.com/repos/palantir/atlasdb/commits/1d8a8052b69364899014b5bf55ae6479107beea0html_urlShttps://github.com/palantir/atlasdb/commit/1d8a8052b69364899014b5bf55ae6479107beea0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1d8a8052b69364899014b5bf55ae6479107beea0/commentsj  }(loginLucasIMEidJg j  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j.  %https://api.github.com/users/LucasIMEj<  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj$  }(jA  LucasIMEjC  Jg j  MDQ6VXNlcjY3ODczMTE=jE  3https://avatars.githubusercontent.com/u/6787311?v=4jG  h5j.  %https://api.github.com/users/LucasIMEj<  https://github.com/LucasIMEjJ  /https://api.github.com/users/LucasIME/followersjL  <https://api.github.com/users/LucasIME/following{/other_user}jN  5https://api.github.com/users/LucasIME/gists{/gist_id}jP  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jR  3https://api.github.com/users/LucasIME/subscriptionsjT  *https://api.github.com/users/LucasIME/orgsjV  +https://api.github.com/users/LucasIME/reposjX  6https://api.github.com/users/LucasIME/events{/privacy}jZ  5https://api.github.com/users/LucasIME/received_eventsj\  Userj^  uparents]}(j  (43c37cccec9dc898631f37d2c0e3aeb13f0706d8j.  ^https://api.github.com/repos/palantir/atlasdb/commits/43c37cccec9dc898631f37d2c0e3aeb13f0706d8j<  Shttps://github.com/palantir/atlasdb/commit/43c37cccec9dc898631f37d2c0e3aeb13f0706d8uastats}(totalK	additionsK	deletionsKufiles]}(j  (096315982f151d005f33bb937d6296e85e331292filenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedjx  Kjy  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/1d8a8052b69364899014b5bf55ae6479107beea0/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1d8a8052b69364899014b5bf55ae6479107beea0/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=1d8a8052b69364899014b5bf55ae6479107beea0patchX`4  @@ -34,24 +34,11 @@
 import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
-import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
-import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadsNoTouchWorkflowConfiguration;
-import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
-import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
-import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
-import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
-import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflows;
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
-import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
-import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
-import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflows;
-import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
-import com.palantir.atlasdb.workload.workflow.ring.RingWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
 import com.palantir.conjure.java.serialization.ObjectMappers;
@@ -138,37 +125,14 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 metricsManager);
         SingleBusyCellReadsNoTouchWorkflowConfiguration singleBusyCellReadNoTouchWorkflowConfiguration =
                 configuration.install().singleBusyCellReadsNoTouchConfig();
-        SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig =
-                configuration.install().singleRowTwoCellsConfig();
-        RingWorkflowConfiguration ringWorkflowConfiguration =
-                configuration.install().ringConfig();
-        TransientRowsWorkflowConfiguration transientRowsWorkflowConfiguration =
-                configuration.install().transientRowsConfig();
-        SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
-                configuration.install().singleBusyCellConfig();
-        BankBalanceWorkflowConfiguration bankBalanceConfig =
-                configuration.install().bankBalanceConfig();
-        RandomWorkflowConfiguration randomWorkflowConfig =
-                configuration.install().randomConfig();
 
         waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
 
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
-                .run(
-                        createSingleBusyCellReadNoTouchWorkflowValidator(
-                                transactionStoreFactory,
-                                singleBusyCellReadNoTouchWorkflowConfiguration,
-                                environment.lifecycle()),
-                        createSingleRowTwoCellsWorkflowValidator(
-                                transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
-                        createRingWorkflowValidator(
-                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()),
-                        createTransientRowsWorkflowValidator(
-                                transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
-                        createSingleBusyCellWorkflowValidator(
-                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
-                        createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
-                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
+                .run(createSingleBusyCellReadNoTouchWorkflowValidator(
+                        transactionStoreFactory,
+                        singleBusyCellReadNoTouchWorkflowConfiguration,
+                        environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -201,57 +165,6 @@ private void waitForTransactionStoreFactoryToBeInitialized(AtlasDbTransactionSto
         System.exit(1);
     }
 
-    private WorkflowAndInvariants<Workflow> createTransientRowsWorkflowValidator(
-            AtlasDbTransactionStoreFactory transactionStoreFactory,
-            TransientRowsWorkflowConfiguration workflowConfig,
-            LifecycleEnvironment lifecycle) {
-        ExecutorService executorService =
-                createExecutorService(workflowConfig, lifecycle, TransientRowsWorkflows.class);
-        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
-                Map.of(
-                        workflowConfig.tableConfiguration().tableName(),
-                        workflowConfig.tableConfiguration().isolationLevel()),
-                Set.of());
-        return WorkflowAndInvariants.builder()
-                .workflow(TransientRowsWorkflows.create(
-                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
-                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
-                        TransientRowsWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
-                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
-                .addInvariantReporters(TransientRowsWorkflows.getSummaryLogInvariantReporter(workflowConfig))
-                .build();
-    }
-
-    private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
-            AtlasDbTransactionStoreFactory transactionStoreFactory,
-            SingleBusyCellWorkflowConfiguration workflowConfig,
-            LifecycleEnvironment lifecycle) {
-        ExecutorService readExecutor = lifecycle
-                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-read")
-                .minThreads(workflowConfig.maxThreadCount() / 2)
-                .maxThreads(workflowConfig.maxThreadCount() / 2)
-                .build();
-        ExecutorService writeExecutor = lifecycle
-                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-write")
-                .minThreads(workflowConfig.maxThreadCount() / 2)
-                .maxThreads(workflowConfig.maxThreadCount() / 2)
-                .build();
-        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
-                Map.of(
-                        workflowConfig.tableConfiguration().tableName(),
-                        workflowConfig.tableConfiguration().isolationLevel()),
-                Set.of());
-        return WorkflowAndInvariants.of(
-                SingleBusyCellWorkflows.create(
-                        transactionStore,
-                        workflowConfig,
-                        MoreExecutors.listeningDecorator(readExecutor),
-                        MoreExecutors.listeningDecorator(writeExecutor)),
-                new DurableWritesInvariantMetricReporter(
-                        SingleBusyCellWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)),
-                SerializableInvariantLogReporter.INSTANCE);
-    }
-
     private WorkflowAndInvariants<Workflow> createSingleBusyCellReadNoTouchWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             SingleBusyCellReadsNoTouchWorkflowConfiguration workflowConfig,
@@ -283,78 +196,6 @@ private WorkflowAndInvariants<Workflow> createSingleBusyCellReadNoTouchWorkflowV
                 SerializableInvariantLogReporter.INSTANCE);
     }
 
-    private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
-            AtlasDbTransactionStoreFactory transactionStoreFactory,
-            RingWorkflowConfiguration workflowConfig,
-            LifecycleEnvironment lifecycle) {
-        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RingWorkflows.class);
-        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
-                Map.of(
-                        workflowConfig.tableConfiguration().tableName(),
-                        workflowConfig.tableConfiguration().isolationLevel()),
-                Set.of());
-        return WorkflowAndInvariants.of(RingWorkflows.create(
-                transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)));
-    }
-
-    private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator(
-            AtlasDbTransactionStoreFactory transactionStoreFactory,
-            SingleRowTwoCellsWorkflowConfiguration workflowConfig,
-            LifecycleEnvironment lifecycle) {
-        ExecutorService executorService =
-                createExecutorService(workflowConfig, lifecycle, SingleRowTwoCellsWorkflows.class);
-        TransactionStore transactionStore = transactionStoreFactory.create(
-                Map.of(
-                        workflowConfig.tableConfiguration().tableName(),
-                        workflowConfig.tableConfiguration().isolationLevel()),
-                Set.of());
-        return WorkflowAndInvariants.builder()
-                .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
-                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
-                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
-                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
-                        DurableWritesMetrics.of(taggedMetricRegistry)))
-                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
-                .build();
-    }
-
-    private WorkflowAndInvariants<Workflow> createBankBalanceWorkflow(
-            AtlasDbTransactionStoreFactory transactionStoreFactory,
-            BankBalanceWorkflowConfiguration workflowConfig,
-            LifecycleEnvironment lifecycle) {
-        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, BankBalanceWorkflows.class);
-        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
-                Map.of(
-                        workflowConfig.tableConfiguration().tableName(),
-                        workflowConfig.tableConfiguration().isolationLevel()),
-                Set.of());
-        return WorkflowAndInvariants.builder()
-                .workflow(BankBalanceWorkflows.create(
-                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
-                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
-                        BankBalanceWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
-                .build();
-    }
-
-    private WorkflowAndInvariants<Workflow> createRandomWorkflow(
-            AtlasDbTransactionStoreFactory transactionStoreFactory,
-            RandomWorkflowConfiguration workflowConfig,
-            LifecycleEnvironment lifecycle) {
-        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RandomWorkflows.class);
-        TransactionStore transactionStore = transactionStoreFactory.create(
-                Map.of(
-                        workflowConfig.tableConfiguration().tableName(),
-                        workflowConfig.tableConfiguration().isolationLevel()),
-                Set.of());
-        return WorkflowAndInvariants.builder()
-                .workflow(RandomWorkflows.create(
-                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
-                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
-                        RandomWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
-                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
-                .build();
-    }
-
     @VisibleForTesting
     CountDownLatch workflowsRanLatch() {
         return workflowsRanLatch;
@@ -364,13 +205,4 @@ CountDownLatch workflowsRanLatch() {
     TaggedMetricRegistry getTaggedMetricRegistry() {
         return taggedMetricRegistry;
     }
-
-    private static <T> ExecutorService createExecutorService(
-            WorkflowConfiguration workflowConfig, LifecycleEnvironment lifecycle, Class<T> workflowFactoryClass) {
-        return lifecycle
-                .executorService(workflowFactoryClass.getSimpleName())
-                .minThreads(workflowConfig.maxThreadCount())
-                .maxThreads(workflowConfig.maxThreadCount())
-                .build();
-    }
 }uau(ddda5e7b273c35a17ded122a72211ed4d4032f67}(sha(ddda5e7b273c35a17ded122a72211ed4d4032f67node_idEC_kwDOAjP5fdoAKGRkZGE1ZTdiMjczYzM1YTE3ZGVkMTIyYTcyMjExZWQ0ZDQwMzJmNjccommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-07-25T13:48:06Zu	committer}(j  Tom Petraccaj  tpetracca@palantir.comj  2023-07-25T13:48:06Zumessagei swapped the cass test suitestree}(j  (5369657fa66d4cdbb6f66127050410c431a43b22url`https://api.github.com/repos/palantir/atlasdb/git/trees/5369657fa66d4cdbb6f66127050410c431a43b22uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ddda5e7b273c35a17ded122a72211ed4d4032f67
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEHTC5rqjQ6qmsb7sZRnUGJaXvqFMFAmS/0pYACgkQRnUGJaXv
qFMPZAf+JokQge+bDfDcSsMeQWCG7hkR5+PFq2hgqcTiP9bKzjH4yTKJCwX4rq6X
lt3c4btdq9/kpgLZ1vVkZ+IjmX8AHCSRXEHn7XgKvj2vVfCFTXVHK1tZZ4vP6oNX
1u1tqR07ez+0IBgevS6Xh3QaGrsCKqfoUW2k5Elyj/8l0p1TT0JCHpCvttRcFmX5
1EQqnE9bZfH0lnHFZqmQdbE7nbzq9zIwKiYGIbsNmU/4sDL/bNAhERMCG6elnQRU
dKhtMP3VrmlURMG4qwlY6pshsgKf4sXiFkQEZ2y4hNyu3PMZBYrK0gJsFwPcl7C2
2Bo9Uc3y6Tuu3bcZy4rlDabtHvxCUQ==
=OQb8
-----END PGP SIGNATURE-----payloadtree 5369657fa66d4cdbb6f66127050410c431a43b22
parent 3ccecc86f97445798889a49f39a86e15181baa26
author Tom Petracca <tpetracca@palantir.com> 1690292886 -0400
committer Tom Petracca <tpetracca@palantir.com> 1690292886 -0400

i swapped the cass test suites
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/ddda5e7b273c35a17ded122a72211ed4d4032f67html_urlShttps://github.com/palantir/atlasdb/commit/ddda5e7b273c35a17ded122a72211ed4d4032f67comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ddda5e7b273c35a17ded122a72211ed4d4032f67/commentsj  }(login	tpetraccaidJ& j  MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5j  &https://api.github.com/users/tpetraccaj  https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminuj  }(j  	tpetraccaj  J& j  MDQ6VXNlcjI1NTQzMjg=j  3https://avatars.githubusercontent.com/u/2554328?v=4j  h5j  &https://api.github.com/users/tpetraccaj  https://github.com/tpetraccaj  0https://api.github.com/users/tpetracca/followersj  =https://api.github.com/users/tpetracca/following{/other_user}j  6https://api.github.com/users/tpetracca/gists{/gist_id}j  =https://api.github.com/users/tpetracca/starred{/owner}{/repo}j  4https://api.github.com/users/tpetracca/subscriptionsj  +https://api.github.com/users/tpetracca/orgsj  ,https://api.github.com/users/tpetracca/reposj  7https://api.github.com/users/tpetracca/events{/privacy}j  6https://api.github.com/users/tpetracca/received_eventsj  Userj  uparents]}(j  (3ccecc86f97445798889a49f39a86e15181baa26j  ^https://api.github.com/repos/palantir/atlasdb/commits/3ccecc86f97445798889a49f39a86e15181baa26j  Shttps://github.com/palantir/atlasdb/commit/3ccecc86f97445798889a49f39a86e15181baa26uastats}(totalK
	additionsK	deletionsKufiles](}(j  (c4dded8f88f0a5c9602288a02df32e9132c609d5filenameratlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/SingleClientWithEmbeddedAndCassandraTestSuite.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ddda5e7b273c35a17ded122a72211ed4d4032f67/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndCassandraTestSuite.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ddda5e7b273c35a17ded122a72211ed4d4032f67/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndCassandraTestSuite.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndCassandraTestSuite.java?ref=ddda5e7b273c35a17ded122a72211ed4d4032f67patchX  @@ -32,12 +32,9 @@
 @RunWith(Suite.class)
 @Suite.SuiteClasses({
     TodoEteTest.class,
-    MultiCassandraSingleNodeDownEteTest.class,
-    MultiCassandraDoubleNodeDownEteTest.class,
     TimestampManagementEteTest.class,
     CoordinationEteTest.class,
-    MultipleSchemaVersionsCoordinationEteTest.class,
-    LockWithoutTimelockEteTest.class
+    MultipleSchemaVersionsCoordinationEteTest.class
 })
 public class SingleClientWithEmbeddedAndCassandraTestSuite extends EteSetup {
     @ClassRuleup     }(j  (d6f23eb1c4a33175c0afa876619ad40625be92aej  {atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/ddda5e7b273c35a17ded122a72211ed4d4032f67/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.javaj  https://github.com/palantir/atlasdb/raw/ddda5e7b273c35a17ded122a72211ed4d4032f67/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.java?ref=ddda5e7b273c35a17ded122a72211ed4d4032f67j   X  @@ -17,6 +17,9 @@
 
 import com.palantir.atlasdb.containers.CassandraEnvironment;
 import com.palantir.atlasdb.ete.EteSetup;
+import com.palantir.atlasdb.ete.LockWithoutTimelockEteTest;
+import com.palantir.atlasdb.ete.MultiCassandraDoubleNodeDownEteTest;
+import com.palantir.atlasdb.ete.MultiCassandraSingleNodeDownEteTest;
 import com.palantir.atlasdb.ete.TimestampManagementEteTest;
 import com.palantir.atlasdb.ete.TodoEteTest;
 import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
@@ -29,9 +32,12 @@
 @RunWith(Suite.class)
 @Suite.SuiteClasses({
     TodoEteTest.class,
+    MultiCassandraSingleNodeDownEteTest.class,
+    MultiCassandraDoubleNodeDownEteTest.class,
     TimestampManagementEteTest.class,
     CoordinationEteTest.class,
-    MultipleSchemaVersionsCoordinationEteTest.class
+    MultipleSchemaVersionsCoordinationEteTest.class,
+    LockWithoutTimelockEteTest.class
 })
 public class SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite extends EteSetup {
     @ClassRuleueu(a126afaa88f98f7e20668b54f83b230da4cd3ecf}(sha(a126afaa88f98f7e20668b54f83b230da4cd3ecfnode_idEC_kwDOAjP5fdoAKGExMjZhZmFhODhmOThmN2UyMDY2OGI1NGY4M2IyMzBkYTRjZDNlY2Ycommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-18T15:22:03Zu	committer}(j  	Tom Papkej  tpapke@palantir.comj  2023-07-18T15:22:03Zumessage3Add metadata metrics to expectations infrastructuretree}(j  (3277ad850e295e9de30fc33f7d8f011fde64bd14url`https://api.github.com/repos/palantir/atlasdb/git/trees/3277ad850e295e9de30fc33f7d8f011fde64bd14uj$  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a126afaa88f98f7e20668b54f83b230da4cd3ecf
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS2rhsACgkQmF9s0kaF
Iw061wf/admI82KgvOK8x6IPaa9U+O+WgomwbwXMbQDGcG1DlX64X60WAAuSVkTf
rtFg1O96alQR63rTmRQymjN7YXnZwD+DfpYMkJ+wWWxg8lSuShBBx8nM25nIHVpM
APixsEp8AbYdhjnS0rLoGuAv9e7ONSem1YUANmU/tf/svidO2bymIxkpJ25Z3xPc
Hxaq4aqdAt7xNDNHkq0MAOYyhRVqbgodqKNnI7LyqGKEhVfVIq23wsgzlF67mGyH
uXUaKUtQz8OAu4pfbIsN5w3NjT7Waxs498jieJBBGYUnmPW2pz2Ri2TpyPTkJxza
5K6OV7+o7OGal0GLY77knFg161is+g==
=sp1P
-----END PGP SIGNATURE-----payloadX  tree 3277ad850e295e9de30fc33f7d8f011fde64bd14
parent 0980cb8cc1c47d03fc40dce531798fe558fdb4b7
author Tom Papke <tpapke@palantir.com> 1689693723 +0100
committer Tom Papke <tpapke@palantir.com> 1689693723 +0100

Add metadata metrics to expectations infrastructure
uuj$  ^https://api.github.com/repos/palantir/atlasdb/commits/a126afaa88f98f7e20668b54f83b230da4cd3ecfhtml_urlShttps://github.com/palantir/atlasdb/commit/a126afaa88f98f7e20668b54f83b230da4cd3ecfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a126afaa88f98f7e20668b54f83b230da4cd3ecf/commentsj  }(login	ToemmscheidJboj  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j$  &https://api.github.com/users/Toemmschej2  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj  }(j7  	Toemmschej9  Jboj  MDQ6VXNlcjQzNjc1NDkwj;  4https://avatars.githubusercontent.com/u/43675490?v=4j=  h5j$  &https://api.github.com/users/Toemmschej2  https://github.com/Toemmschej@  0https://api.github.com/users/Toemmsche/followersjB  =https://api.github.com/users/Toemmsche/following{/other_user}jD  6https://api.github.com/users/Toemmsche/gists{/gist_id}jF  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jH  4https://api.github.com/users/Toemmsche/subscriptionsjJ  +https://api.github.com/users/Toemmsche/orgsjL  ,https://api.github.com/users/Toemmsche/reposjN  7https://api.github.com/users/Toemmsche/events{/privacy}jP  6https://api.github.com/users/Toemmsche/received_eventsjR  UserjT  uparents]}(j  (0980cb8cc1c47d03fc40dce531798fe558fdb4b7j$  ^https://api.github.com/repos/palantir/atlasdb/commits/0980cb8cc1c47d03fc40dce531798fe558fdb4b7j2  Shttps://github.com/palantir/atlasdb/commit/0980cb8cc1c47d03fc40dce531798fe558fdb4b7uastats}(totalK	additionsǨ	deletionsK(ufiles](}(j  (d3fc051a896d064f30ab1b18a612d66c87cdb853filenameaatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/ExpectationsData.javastatusaddedjn  Kjo  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/a126afaa88f98f7e20668b54f83b230da4cd3ecf/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FExpectationsData.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a126afaa88f98f7e20668b54f83b230da4cd3ecf/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FExpectationsData.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FExpectationsData.java?ref=a126afaa88f98f7e20668b54f83b230da4cd3ecfpatchX  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api.expectations;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ExpectationsData {
+    long ageMillis();
+
+    TransactionReadInfo readInfo();
+
+    TransactionCommitLockInfo commitLockInfo();
+
+    TransactionMetadataInfo metadataInfo();
+}u}(j  (8a54091341a951d45db2ef0ed6f1e5319337cd5bjt  hatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/TransactionMetadataInfo.javajv  addedjn  K(jo  K jx  K(jy  https://github.com/palantir/atlasdb/blob/a126afaa88f98f7e20668b54f83b230da4cd3ecf/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionMetadataInfo.javaj{  https://github.com/palantir/atlasdb/raw/a126afaa88f98f7e20668b54f83b230da4cd3ecf/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionMetadataInfo.javaj}  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionMetadataInfo.java?ref=a126afaa88f98f7e20668b54f83b230da4cd3ecfj  X  @@ -0,0 +1,40 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api.expectations;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface TransactionMetadataInfo {
+
+    /**
+     * The number of {@link com.palantir.lock.watch.ChangeMetadata} objects stored internally in a transaction.
+     */
+    long changeMetadataStored();
+
+    /**
+     * The number of {@link com.palantir.lock.watch.ChangeMetadata} objects attached to cell-level {@link com.palantir.lock.LockDescriptor}s
+     * when requesting commit locks.
+     */
+    long cellChangeMetadataSent();
+
+    /**
+     * The number of {@link com.palantir.lock.watch.ChangeMetadata} objects attached to row-level {@link com.palantir.lock.LockDescriptor}s
+     * when requesting commit locks.
+     */
+    long rowChangeMetadataSent();
+}u}(j  (d0301423a78dd98b1e80e9ed526918e5ce977f1bjt  datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ExpectationsAwareTransaction.javajv  modifiedjn  Kjo  K jx  Kjy  https://github.com/palantir/atlasdb/blob/a126afaa88f98f7e20668b54f83b230da4cd3ecf/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj{  https://github.com/palantir/atlasdb/raw/a126afaa88f98f7e20668b54f83b230da4cd3ecf/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj}  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.java?ref=a126afaa88f98f7e20668b54f83b230da4cd3ecfj  X  @@ -18,6 +18,7 @@
 
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionMetadataInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 /**
@@ -38,6 +39,8 @@ public interface ExpectationsAwareTransaction extends Transaction {
      */
     TransactionCommitLockInfo getCommitLockInfo();
 
+    TransactionMetadataInfo getMetadataInfo();
+
     /**
      * Update TEX data collection metrics for (post-mortem) transactions.
      * Expected usage is that this method is called once after the transaction has been committed or aborted.u}(j  (cc5c228d4046bf55007ff7d30ccd94a82de0a543jt  natlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingExpectationsAwareTransaction.javajv  modifiedjn  Kjo  K jx  Kjy  https://github.com/palantir/atlasdb/blob/a126afaa88f98f7e20668b54f83b230da4cd3ecf/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj{  https://github.com/palantir/atlasdb/raw/a126afaa88f98f7e20668b54f83b230da4cd3ecf/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj}  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.java?ref=a126afaa88f98f7e20668b54f83b230da4cd3ecfj  X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionMetadataInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 public abstract class ForwardingExpectationsAwareTransaction extends ForwardingTransaction
@@ -40,6 +41,11 @@ public TransactionCommitLockInfo getCommitLockInfo() {
         return delegate().getCommitLockInfo();
     }
 
+    @Override
+    public TransactionMetadataInfo getMetadataInfo() {
+        return delegate().getMetadataInfo();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         delegate().reportExpectationsCollectedData();u}(j  (7a77069ffd1fb1ccc497f3991a0bf7438c8280adjt  `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javajv  modifiedjn  K1jo  Kjx  KAjy  https://github.com/palantir/atlasdb/blob/a126afaa88f98f7e20668b54f83b230da4cd3ecf/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj{  https://github.com/palantir/atlasdb/raw/a126afaa88f98f7e20668b54f83b230da4cd3ecf/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj}  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=a126afaa88f98f7e20668b54f83b230da4cd3ecfj  Xs  @@ -98,8 +98,12 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.ExpectationsData;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableExpectationsData;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionMetadataInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionMetadataInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
@@ -281,6 +285,8 @@ private enum State {
     private final ExpectationsMetrics expectationsDataCollectionMetrics;
     private volatile long cellCommitLocksRequested = 0L;
     private volatile long rowCommitLocksRequested = 0L;
+    private volatile long cellChangeMetadataSent = 0L;
+    private volatile long rowChangeMetadataSent = 0L;
 
     protected volatile boolean hasReads;
 
@@ -2569,26 +2575,34 @@ protected LocksAndMetadata getLocksAndMetadataForWrites() {
         Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata = new HashMap<>();
         long cellLockCount = 0L;
         long rowLockCount = 0L;
+        long cellMetadataCount = 0L;
+        long rowMetadataCount = 0L;
         for (TableReference tableRef : writesByTable.keySet()) {
             ConflictHandler conflictHandler = getConflictHandlerForTable(tableRef);
 
             int previousLockCount = lockDescriptors.size();
+            int previousMetadataCount = lockDescriptorToChangeMetadata.size();
             if (conflictHandler.lockCellsForConflicts()) {
                 collectCellLocks(lockDescriptors, lockDescriptorToChangeMetadata, tableRef);
             }
             cellLockCount += lockDescriptors.size() - previousLockCount;
+            cellMetadataCount += lockDescriptorToChangeMetadata.size() - previousMetadataCount;
 
             previousLockCount = lockDescriptors.size();
+            previousMetadataCount = lockDescriptorToChangeMetadata.size();
             if (conflictHandler.lockRowsForConflicts()) {
                 collectRowLocks(lockDescriptors, lockDescriptorToChangeMetadata, tableRef);
             }
             rowLockCount += lockDescriptors.size() - previousLockCount;
+            rowMetadataCount += lockDescriptorToChangeMetadata.size() - previousMetadataCount;
         }
         lockDescriptors.add(AtlasRowLockDescriptor.of(
                 TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
                 TransactionConstants.getValueForTimestamp(getStartTimestamp())));
         cellCommitLocksRequested = cellLockCount;
         rowCommitLocksRequested = rowLockCount + 1;
+        cellChangeMetadataSent = cellMetadataCount;
+        rowChangeMetadataSent = rowMetadataCount;
         return LocksAndMetadata.of(
                 lockDescriptors,
                 // For now, lock request metadata only consists of change metadata. If it is absent, we can save
@@ -2783,6 +2797,16 @@ public TransactionCommitLockInfo getCommitLockInfo() {
                 .build();
     }
 
+    @Override
+    public TransactionMetadataInfo getMetadataInfo() {
+        return ImmutableTransactionMetadataInfo.builder()
+                .changeMetadataStored(metadataByTable.entrySet().stream()
+                        .reduce(0, (sum, entry) -> sum + entry.getValue().size(), Integer::sum))
+                .cellChangeMetadataSent(cellChangeMetadataSent)
+                .rowChangeMetadataSent(rowChangeMetadataSent)
+                .build();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         if (isStillRunning()) {
@@ -2792,25 +2816,34 @@ public void reportExpectationsCollectedData() {
             return;
         }
 
-        reportExpectationsCollectedData(
-                getAgeMillis(), getReadInfo(), getCommitLockInfo(), expectationsDataCollectionMetrics);
+        ExpectationsData expectationsData = ImmutableExpectationsData.builder()
+                .ageMillis(getAgeMillis())
+                .readInfo(getReadInfo())
+                .commitLockInfo(getCommitLockInfo())
+                .metadataInfo(getMetadataInfo())
+                .build();
+        reportExpectationsCollectedData(expectationsData, expectationsDataCollectionMetrics);
     }
 
     @VisibleForTesting
-    static void reportExpectationsCollectedData(
-            long ageMillis,
-            TransactionReadInfo readInfo,
-            TransactionCommitLockInfo commitLockInfo,
-            ExpectationsMetrics metrics) {
-        metrics.ageMillis().update(ageMillis);
-        metrics.bytesRead().update(readInfo.bytesRead());
-        metrics.kvsReads().update(readInfo.kvsCalls());
-
-        readInfo.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
-                .update(kvsCallReadInfo.bytesRead()));
-
-        metrics.cellCommitLocksRequested().update(commitLockInfo.cellCommitLocksRequested());
-        metrics.rowCommitLocksRequested().update(commitLockInfo.rowCommitLocksRequested());
+    static void reportExpectationsCollectedData(ExpectationsData expectationsData, ExpectationsMetrics metrics) {
+        metrics.ageMillis().update(expectationsData.ageMillis());
+        metrics.bytesRead().update(expectationsData.readInfo().bytesRead());
+        metrics.kvsReads().update(expectationsData.readInfo().kvsCalls());
+
+        expectationsData
+                .readInfo()
+                .maximumBytesKvsCallInfo()
+                .ifPresent(kvsCallReadInfo ->
+                        metrics.mostKvsBytesReadInSingleCall().update(kvsCallReadInfo.bytesRead()));
+
+        metrics.cellCommitLocksRequested()
+                .update(expectationsData.commitLockInfo().cellCommitLocksRequested());
+        metrics.rowCommitLocksRequested()
+                .update(expectationsData.commitLockInfo().rowCommitLocksRequested());
+        metrics.changeMetadataStored().update(expectationsData.metadataInfo().changeMetadataStored());
+        metrics.cellChangeMetadataSent().update(expectationsData.metadataInfo().cellChangeMetadataSent());
+        metrics.rowChangeMetadataSent().update(expectationsData.metadataInfo().rowChangeMetadataSent());
     }
 
     private long getStartTimestamp() {u}(j  (19049e44afba473bad1d00540e45f05f3cabbce6jt  5atlasdb-impl-shared/src/main/metrics/expectations.ymljv  modifiedjn  Kjo  K jx  Kjy  https://github.com/palantir/atlasdb/blob/a126afaa88f98f7e20668b54f83b230da4cd3ecf/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj{  https://github.com/palantir/atlasdb/raw/a126afaa88f98f7e20668b54f83b230da4cd3ecf/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj}  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=a126afaa88f98f7e20668b54f83b230da4cd3ecfj  X  @@ -23,3 +23,15 @@ namespaces:
       rowCommitLocksRequested:
         docs: Number of row-level commit locks requested as part of the commit protocol
         type: histogram
+      changeMetadataStored:
+        docs: Number of change metadata objects stored locally in the transaction
+        type: histogram
+      cellChangeMetadataSent:
+        docs: Number of change metadata objects attached to cell-level lock descriptors when requesting commit locks
+        type: histogram
+      rowChangeMetadataSent:
+        docs: Number of change metadata objects attached to row-level lock descriptors when requesting commit locks
+        type: histogram
+
+
+u}(j  (83da73f34a34f7b78497a52321e208f56bb52815jt  matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javajv  modifiedjn  K(jo  Kjx  K:jy  https://github.com/palantir/atlasdb/blob/a126afaa88f98f7e20668b54f83b230da4cd3ecf/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj{  https://github.com/palantir/atlasdb/raw/a126afaa88f98f7e20668b54f83b230da4cd3ecf/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj}  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=a126afaa88f98f7e20668b54f83b230da4cd3ecfj  X  @@ -19,10 +19,12 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.codahale.metrics.Histogram;
+import com.palantir.atlasdb.transaction.api.expectations.ExpectationsData;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableExpectationsData;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionMetadataInfo;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
-import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.util.MetricsManagers;
 import org.junit.Before;
@@ -32,15 +34,27 @@
 
 @RunWith(MockitoJUnitRunner.class)
 public final class ExpectationsMetricsReportingTest {
+
     // immutable in type declaration for better 'withX' ergonomics
     private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
             ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
-
     private static final ImmutableTransactionCommitLockInfo BLANK_COMMIT_LOCK_INFO =
             ImmutableTransactionCommitLockInfo.builder()
                     .cellCommitLocksRequested(0L)
                     .rowCommitLocksRequested(0L)
                     .build();
+    private static final ImmutableTransactionMetadataInfo BLANK_METADATA_INFO =
+            ImmutableTransactionMetadataInfo.builder()
+                    .changeMetadataStored(0L)
+                    .cellChangeMetadataSent(0L)
+                    .rowChangeMetadataSent(0L)
+                    .build();
+    private static final ImmutableExpectationsData BLANK_EXPECTATIONS_DATA = ImmutableExpectationsData.builder()
+            .ageMillis(0L)
+            .readInfo(BLANK_READ_INFO)
+            .commitLockInfo(BLANK_COMMIT_LOCK_INFO)
+            .metadataInfo(BLANK_METADATA_INFO)
+            .build();
 
     private ExpectationsMetrics metrics;
 
@@ -52,55 +66,63 @@ public void setUp() {
     @Test
     public void ageReported() {
         long age = 129L;
-        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, BLANK_COMMIT_LOCK_INFO, metrics);
+        reportMetrics(BLANK_EXPECTATIONS_DATA.withAgeMillis(age));
         assertHistogramHasSingleValue(metrics.ageMillis(), age);
     }
 
     @Test
     public void bytesReadReported() {
         long bytes = 1290L;
-        reportMetricsWithReadInfo(BLANK_READ_INFO.withBytesRead(bytes));
+        reportMetrics(BLANK_EXPECTATIONS_DATA.withReadInfo(BLANK_READ_INFO.withBytesRead(bytes)));
         assertHistogramHasSingleValue(metrics.bytesRead(), bytes);
     }
 
     @Test
     public void kvsCallsReported() {
         long calls = 12L;
-        reportMetricsWithReadInfo(BLANK_READ_INFO.withKvsCalls(calls));
+        reportMetrics(BLANK_EXPECTATIONS_DATA.withReadInfo(BLANK_READ_INFO.withKvsCalls(calls)));
         assertHistogramHasSingleValue(metrics.kvsReads(), calls);
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
-        reportMetricsWithReadInfo(BLANK_READ_INFO);
+        reportMetrics(BLANK_EXPECTATIONS_DATA);
         assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
                 .isEmpty();
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
         long bytes = 193L;
-        reportMetricsWithReadInfo(
-                BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        reportMetrics(BLANK_EXPECTATIONS_DATA.withReadInfo(
+                BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes))));
         assertHistogramHasSingleValue(metrics.mostKvsBytesReadInSingleCall(), bytes);
     }
 
     @Test
     public void commitLocksRequestsReported() {
-        SnapshotTransaction.reportExpectationsCollectedData(
-                0L,
-                BLANK_READ_INFO,
-                ImmutableTransactionCommitLockInfo.builder()
-                        .cellCommitLocksRequested(1)
-                        .rowCommitLocksRequested(2)
-                        .build(),
-                metrics);
+        reportMetrics(BLANK_EXPECTATIONS_DATA.withCommitLockInfo(ImmutableTransactionCommitLockInfo.builder()
+                .cellCommitLocksRequested(1)
+                .rowCommitLocksRequested(2)
+                .build()));
         assertHistogramHasSingleValue(metrics.cellCommitLocksRequested(), 1);
         assertHistogramHasSingleValue(metrics.rowCommitLocksRequested(), 2);
     }
 
-    private void reportMetricsWithReadInfo(TransactionReadInfo readInfo) {
-        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, BLANK_COMMIT_LOCK_INFO, metrics);
+    @Test
+    public void metadataInfoReported() {
+        reportMetrics(BLANK_EXPECTATIONS_DATA.withMetadataInfo(ImmutableTransactionMetadataInfo.builder()
+                .changeMetadataStored(1)
+                .cellChangeMetadataSent(2)
+                .rowChangeMetadataSent(3)
+                .build()));
+        assertHistogramHasSingleValue(metrics.changeMetadataStored(), 1);
+        assertHistogramHasSingleValue(metrics.cellChangeMetadataSent(), 2);
+        assertHistogramHasSingleValue(metrics.rowChangeMetadataSent(), 3);
+    }
+
+    private void reportMetrics(ExpectationsData expectationsData) {
+        SnapshotTransaction.reportExpectationsCollectedData(expectationsData, metrics);
     }
 
     private void assertHistogramHasSingleValue(Histogram histogram, long expected) {u}(j  (b56b9e6cd3583bb5575f4eba28d72fbce2295546jt  eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javajv  modifiedjn  Kjo  K jx  Kjy  https://github.com/palantir/atlasdb/blob/a126afaa88f98f7e20668b54f83b230da4cd3ecf/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj{  https://github.com/palantir/atlasdb/raw/a126afaa88f98f7e20668b54f83b230da4cd3ecf/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj}  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=a126afaa88f98f7e20668b54f83b230da4cd3ecfj  X?  @@ -99,6 +99,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionMetadataInfo;
 import com.palantir.atlasdb.transaction.impl.metrics.DefaultMetricsFilterEvaluationContext;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.ToplistDeltaFilteringTableLevelMetricsController;
@@ -2718,6 +2719,29 @@ public void commitFailsIfMultipleCellsInSameRowHaveMetadataAndUsingRowLocks() {
                         UnsafeArg.of("newMetadata", TEST_METADATA));
     }
 
+    @Test
+    public void reportsMetadataInfoCorrectly() {
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE);
+        overrideConflictHandlerForTable(TABLE2, ConflictHandler.SERIALIZABLE_LOCK_LEVEL_MIGRATION);
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+
+        txn.putWithMetadata(
+                TABLE, ImmutableMap.of(TEST_CELL, ChangeMetadataAnnotatedValue.of(TEST_VALUE, TEST_METADATA)));
+        txn.putWithMetadata(
+                TABLE2,
+                ImmutableMap.of(
+                        TEST_CELL,
+                        ChangeMetadataAnnotatedValue.of(PtBytes.toBytes("bar"), ChangeMetadata.unchanged()),
+                        TEST_CELL_2,
+                        ChangeMetadataAnnotatedValue.of(PtBytes.toBytes("foo"), ChangeMetadata.unchanged())));
+        txn.commit();
+
+        TransactionMetadataInfo metadataInfo = txn.getMetadataInfo();
+        assertThat(metadataInfo.changeMetadataStored()).isEqualTo(3);
+        assertThat(metadataInfo.cellChangeMetadataSent()).isEqualTo(2);
+        assertThat(metadataInfo.rowChangeMetadataSent()).isEqualTo(3);
+    }
+
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,u}(j  (c49220edfac2aa48e9964bc54a95b2bfb498e2f8jt  timelock-api/build.gradlejv  modifiedjn  K jo  Kjx  Kjy  mhttps://github.com/palantir/atlasdb/blob/a126afaa88f98f7e20668b54f83b230da4cd3ecf/timelock-api%2Fbuild.gradlej{  lhttps://github.com/palantir/atlasdb/raw/a126afaa88f98f7e20668b54f83b230da4cd3ecf/timelock-api%2Fbuild.gradlej}  https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fbuild.gradle?ref=a126afaa88f98f7e20668b54f83b230da4cd3ecfj  @@ -28,9 +28,3 @@ subprojects {
     }
     tasks.licenseMain.enabled = false
 }
-
-conjure {
-    java {
-        excludeEmptyOptionals = true
-    }
-}ueu(ca20880f0550e7f642807956c9a34acbc4445a04}(sha(ca20880f0550e7f642807956c9a34acbc4445a04node_idEC_kwDOAjP5fdoAKGNhMjA4ODBmMDU1MGU3ZjY0MjgwNzk1NmM5YTM0YWNiYzQ0NDVhMDQcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-29T14:50:34Zu	committer}(j  	Tom Papkej  tpapke@palantir.comj  2023-06-29T14:50:34ZumessageAddress commentstree}(j  (1b299393668620a047c58454d8203fbbee7f4e6durl`https://api.github.com/repos/palantir/atlasdb/git/trees/1b299393668620a047c58454d8203fbbee7f4e6duj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ca20880f0550e7f642807956c9a34acbc4445a04
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSdmjoACgkQmF9s0kaF
Iw1vcwf+PBIUESicTlPgNe6gI71n4HrKYoAK0JEFbbLWkbkWK2TtRCZDytuEZETh
K2+/WYUIEh35TkzF1Y7gkt+lKyjQcUsh/2CDr1voVQ9KeLKgbTL5jtg9DdltSFwb
6OTWSmeGYYFzWkFKUql4dJuSwvHko62klZkI5JKFa7ACYHZM7bfvagg0QS7MXSHn
1JKBiIaHJEtzmQjqcUDcvq9zLPSOFPk08puP9Pid7WIO+5RRWouwQSMhumR14A5s
Zkst14wHoAHvZ2TbnKKTpZtpd4MRr6pznCR9N20ypjwqOueCPk1680i/NKPqzOHM
sasaiq1EeV+c/scm5rXkQFFQ7XEGRQ==
=ar1g
-----END PGP SIGNATURE-----payloadtree 1b299393668620a047c58454d8203fbbee7f4e6d
parent a0667d492644057ed6cc1e3a55ed0d2924a8a27e
author Tom Papke <tpapke@palantir.com> 1688050234 +0100
committer Tom Papke <tpapke@palantir.com> 1688050234 +0100

Address comments
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/ca20880f0550e7f642807956c9a34acbc4445a04html_urlShttps://github.com/palantir/atlasdb/commit/ca20880f0550e7f642807956c9a34acbc4445a04comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ca20880f0550e7f642807956c9a34acbc4445a04/commentsj  }(login	ToemmscheidJboj  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj  }(j  	Toemmschej  Jboj  MDQ6VXNlcjQzNjc1NDkwj  4https://avatars.githubusercontent.com/u/43675490?v=4j  h5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmschej  0https://api.github.com/users/Toemmsche/followersj  =https://api.github.com/users/Toemmsche/following{/other_user}j  6https://api.github.com/users/Toemmsche/gists{/gist_id}j  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j  4https://api.github.com/users/Toemmsche/subscriptionsj  +https://api.github.com/users/Toemmsche/orgsj  ,https://api.github.com/users/Toemmsche/reposj  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj	  Userj  uparents]}(j  (a0667d492644057ed6cc1e3a55ed0d2924a8a27ej  ^https://api.github.com/repos/palantir/atlasdb/commits/a0667d492644057ed6cc1e3a55ed0d2924a8a27ej  Shttps://github.com/palantir/atlasdb/commit/a0667d492644057ed6cc1e3a55ed0d2924a8a27euastats}(totalK	additionsK	deletionsK	ufiles](}(j  (6a049bef90aab61ecbfe2213262045d7a6105909filenameJlock-api-objects/src/main/java/com/palantir/lock/watch/ChangeMetadata.javastatusmodifiedj%  K	j&  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ca20880f0550e7f642807956c9a34acbc4445a04/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ca20880f0550e7f642807956c9a34acbc4445a04/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.java?ref=ca20880f0550e7f642807956c9a34acbc4445a04patchX  @@ -30,6 +30,7 @@
 
 /**
  * The subtypes of this class can be used to document CRUD-like operations that were applied to a value.
+ * However, the READ case is not accounted for as no locks are taken out for reads.
  * Every instance should be associated with a {@link com.palantir.lock.LockDescriptor}.
  * It is up to the users of metadata to know the type of value it refers to
  * and how to interpret the different subtypes.
@@ -38,8 +39,8 @@
 @JsonSubTypes({
     @JsonSubTypes.Type(value = Unchanged.class, name = Unchanged.TYPE),
     @JsonSubTypes.Type(value = Updated.class, name = Updated.TYPE),
-    @JsonSubTypes.Type(value = Deleted.class, name = Deleted.TYPE),
-    @JsonSubTypes.Type(value = Created.class, name = Created.TYPE),
+        @JsonSubTypes.Type(value = Deleted.class, name = Deleted.TYPE),
+        @JsonSubTypes.Type(value = Created.class, name = Created.TYPE),
 })
 public interface ChangeMetadata {
     <T> T accept(Visitor<T> visitor);
@@ -48,16 +49,16 @@ static Unchanged unchanged() {
         return ImmutableUnchanged.builder().build();
     }
 
-    static Updated updated(byte[] before, byte[] after) {
-        return ImmutableUpdated.of(before, after);
+    static Updated updated(byte[] oldValue, byte[] newValue) {
+        return ImmutableUpdated.of(oldValue, newValue);
     }
 
-    static Deleted deleted(byte[] before) {
-        return ImmutableDeleted.of(before);
+    static Deleted deleted(byte[] oldValue) {
+        return ImmutableDeleted.of(oldValue);
     }
 
-    static Created created(byte[] after) {
-        return ImmutableCreated.of(after);
+    static Created created(byte[] newValue) {
+        return ImmutableCreated.of(newValue);
     }
 
     interface Visitor<T> {u}(j  (088111c134834bc6053181b1f6c0668aea7e1639j+  Olock-api-objects/src/main/java/com/palantir/lock/watch/LockRequestMetadata.javaj-  modifiedj%  Kj&  Kj/  Kj0  https://github.com/palantir/atlasdb/blob/ca20880f0550e7f642807956c9a34acbc4445a04/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj2  https://github.com/palantir/atlasdb/raw/ca20880f0550e7f642807956c9a34acbc4445a04/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj4  https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.java?ref=ca20880f0550e7f642807956c9a34acbc4445a04j6  X  @@ -23,7 +23,8 @@
 
 /**
  * Metadata attached to a lock request and to any {@link LockEvent} created as a result of that request.
- * Instances of this class should not be serialized as-is.
+ * Ideally, this class is not serialized as-is to JSON due to the repetition of {@link LockDescriptor} values
+ * in {@link LockRequestMetadata#lockDescriptorToChangeMetadata()} and the parent object.
  */
 @Unsafe
 @Value.Immutableueu(9cd715c678187be570e3a680b1176521d0f59b81}(sha(9cd715c678187be570e3a680b1176521d0f59b81node_idEC_kwDOAjP5fdoAKDljZDcxNWM2NzgxODdiZTU3MGUzYTY4MGIxMTc2NTIxZDBmNTliODEcommit}(author}(nameAlex Landauemailalandau@palantir.comdate2023-06-01T05:48:12Zu	committer}(jJ  Alex LandaujL  alandau@palantir.comjN  2023-06-01T05:48:12Zumessage+Upgrade sqlite-jdbc from 3.36.0 to 3.42.0.0tree}(jB  (0dbf5702238dabe1e03b3912baa0983073192c64url`https://api.github.com/repos/palantir/atlasdb/git/trees/0dbf5702238dabe1e03b3912baa0983073192c64ujZ  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9cd715c678187be570e3a680b1176521d0f59b81
comment_countK verification}(verifiedreasonno_user	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEgaU3hUMMz3rPjfOCXxsbH+L5BW8FAmR4MUEACgkQXxsbH+L5
BW+11wgAwOEG2/kE+k/6f8jMKBipoDHgAlJ+YKfOXuqkD0UW/BqscVFhYsTsHHBe
+sEZfhHIORey+E6A7j4lCi+DPqqKhe95PszuJEYeXSNUK6Y8+I2aAeXgNX203i/F
QcBYPxX/h8+jR6tsaAEAwnSNs1/iTjAlEOdA8MdgxLO/H7g0Uxb529mhAHOeENOm
tEGBv2FzOlrM6THMbFdoB9CA/03pwCHVJ8U2xnHS0ARvNN7r7Ix2Jxibor2q4/0P
fllZjg7BqLkfuHLt6Tmez37Z8GEZe1pPBmoRZNVYVPNWWu0UTrAWJE5mmTbvVtT+
0a8MN4nYRhKdN6U5KZRB2pjkanyLFQ==
=xtK6
-----END PGP SIGNATURE-----payloadX  tree 0dbf5702238dabe1e03b3912baa0983073192c64
parent 5b1d8f7aca163d24d017e12af916e7c4af87b7a6
author Alex Landau <alandau@palantir.com> 1685598492 -0700
committer Alex Landau <alandau@palantir.com> 1685598492 -0700

Upgrade sqlite-jdbc from 3.36.0 to 3.42.0.0
uujZ  ^https://api.github.com/repos/palantir/atlasdb/commits/9cd715c678187be570e3a680b1176521d0f59b81html_urlShttps://github.com/palantir/atlasdb/commit/9cd715c678187be570e3a680b1176521d0f59b81comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9cd715c678187be570e3a680b1176521d0f59b81/commentsjH  NjP  Nparents]}(jB  (5b1d8f7aca163d24d017e12af916e7c4af87b7a6jZ  ^https://api.github.com/repos/palantir/atlasdb/commits/5b1d8f7aca163d24d017e12af916e7c4af87b7a6jh  Shttps://github.com/palantir/atlasdb/commit/5b1d8f7aca163d24d017e12af916e7c4af87b7a6uastats}(totalK	additionsK	deletionsKufiles](}(jB  (2ca2d06a87f80d36d91dc297b011ed76b75b7af2filename
versions.lockstatusmodifiedju  Kjv  KchangesKblob_url_https://github.com/palantir/atlasdb/blob/9cd715c678187be570e3a680b1176521d0f59b81/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/9cd715c678187be570e3a680b1176521d0f59b81/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=9cd715c678187be570e3a680b1176521d0f59b81patchX  @@ -312,7 +312,7 @@ org.slf4j:log4j-over-slf4j:1.7.36 (3 constraints: 492febed)
 org.slf4j:slf4j-api:1.7.36 (44 constraints: 8180995b)
 org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
 org.wildfly.common:wildfly-common:1.6.0.Final (4 constraints: 3f390b3d)
-org.xerial:sqlite-jdbc:3.36.0 (1 constraints: 3e054f3b)
+org.xerial:sqlite-jdbc:3.42.0.0 (1 constraints: 99054946)
 org.xerial.snappy:snappy-java:1.1.8 (2 constraints: 011529cb)
 org.yaml:snakeyaml:1.33 (5 constraints: 0a4c5570)
 u}(jB  (46803d60bac01d23eb7310c59fc295cb01df7f2bj{  versions.propsj}  modifiedju  Kjv  Kj  Kj  `https://github.com/palantir/atlasdb/blob/9cd715c678187be570e3a680b1176521d0f59b81/versions.propsj  _https://github.com/palantir/atlasdb/raw/9cd715c678187be570e3a680b1176521d0f59b81/versions.propsj  rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=9cd715c678187be570e3a680b1176521d0f59b81j  X"  @@ -79,7 +79,7 @@ org.rocksdb:rocksdbjni = 7.9.2
 org.slf4j:* = 1.7.36
 org.wildfly.common:wildfly-common = 1.6.0.Final
 org.xerial.snappy:snappy-java = 1.1.8
-org.xerial:sqlite-jdbc = 3.36.0
+org.xerial:sqlite-jdbc = 3.42.0.0
 org.yaml:snakeyaml = 1.33
 uk.org.lidalia:slf4j-test = 1.1.0
 ueu(f8bf34176eae5fa8f2122a40292f5b8aee0f9b9b}(sha(f8bf34176eae5fa8f2122a40292f5b8aee0f9b9bnode_idEC_kwDOAjP5fdoAKGY4YmYzNDE3NmVhZTVmYThmMjEyMmE0MDI5MmY1YjhhZWUwZjliOWIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-19T10:20:35Zu	committer}(j  
Sam Kramerj  skramer@palantir.comj  2023-04-19T10:20:35Zumessage.catch all transaction commit failed exceptionstree}(j  (1d60f7e362cf49a9cebc7c490b442c2914e41125url`https://api.github.com/repos/palantir/atlasdb/git/trees/1d60f7e362cf49a9cebc7c490b442c2914e41125uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f8bf34176eae5fa8f2122a40292f5b8aee0f9b9b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ/wHMACgkQmPPOpKR4
XS2ETwf/dBjR5HKGd/XZ7phqTBTa1rF0UAl40OjAT98XDR1QBFwAjt120BKTlhCe
d1k/eUUCjuUHW6W0vgcqa7v2YOsWm0yjLb7+76J+1bQchO/DeIG6kPHXkILtk2A3
bziGAyjDyGwGSRv1SpQ+nihLl6CIIvGik8I1d6QKo+Dh5AH8BUn5bqGtKIqlnw0V
DxzMkds4eugNAA+l3VnbcbEm4h5qt86v2DJJjT0G8cAZ8/phCBXsQfYnNSOKi90Y
DsWmXbC3pfU1uy7r8V96RSlzMm21OOsxNvRLtHlScjVZV/9Av7zagORjprtSKoyT
RFebcrishh4xpJ+ZslkpZg0vFTUVIg==
=9s29
-----END PGP SIGNATURE-----payloadX  tree 1d60f7e362cf49a9cebc7c490b442c2914e41125
parent 37a96c817cf48aa9efbe472ea91b3f41eb905740
author Sam Kramer <skramer@palantir.com> 1681899635 +0100
committer Sam Kramer <skramer@palantir.com> 1681899635 +0100

catch all transaction commit failed exceptions
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/f8bf34176eae5fa8f2122a40292f5b8aee0f9b9bhtml_urlShttps://github.com/palantir/atlasdb/commit/f8bf34176eae5fa8f2122a40292f5b8aee0f9b9bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f8bf34176eae5fa8f2122a40292f5b8aee0f9b9b/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j  
Sam-Kramerj  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j  h5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj  1https://api.github.com/users/Sam-Kramer/followersj  >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j  5https://api.github.com/users/Sam-Kramer/subscriptionsj  ,https://api.github.com/users/Sam-Kramer/orgsj  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj  uparents]}(j  (37a96c817cf48aa9efbe472ea91b3f41eb905740j  ^https://api.github.com/repos/palantir/atlasdb/commits/37a96c817cf48aa9efbe472ea91b3f41eb905740j  Shttps://github.com/palantir/atlasdb/commit/37a96c817cf48aa9efbe472ea91b3f41eb905740uastats}(totalK(	additionsK	deletionsKufiles](}(j  (6b96c738644d09dc6c99aa95d2d73c5b94ad4630filenamefatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javastatusmodifiedj  K
j  K
changesKblob_urlhttps://github.com/palantir/atlasdb/blob/f8bf34176eae5fa8f2122a40292f5b8aee0f9b9b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f8bf34176eae5fa8f2122a40292f5b8aee0f9b9b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=f8bf34176eae5fa8f2122a40292f5b8aee0f9b9bpatchX
  @@ -18,10 +18,10 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
-import com.palantir.atlasdb.keyvalue.api.KeyAlreadyExistsException;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.PreCommitCondition;
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.TransactionCommitFailedException;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
@@ -34,7 +34,6 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
-import com.palantir.common.base.Throwables;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
@@ -114,18 +113,16 @@ public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction>
                     .build());
         } catch (SafeIllegalArgumentException e) {
             throw e;
+        } catch (TransactionCommitFailedException e) {
+            Transaction transaction = transactionReference.get();
+            return Optional.of(MaybeWitnessedTransaction.builder()
+                    .startTimestamp(transaction.getTimestamp())
+                    .commitTimestamp(commitTimestampProvider
+                            .get()
+                            .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
+                    .actions(witnessedActionsReference.get())
+                    .build());
         } catch (Exception e) {
-            if (Throwables.hasCauseInCausalChain(e, KeyAlreadyExistsException.class)) {
-                Transaction transaction = transactionReference.get();
-                return Optional.of(MaybeWitnessedTransaction.builder()
-                        .startTimestamp(transaction.getTimestamp())
-                        .commitTimestamp(commitTimestampProvider
-                                .get()
-                                .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
-                        .actions(witnessedActionsReference.get())
-                        .build());
-            }
-
             Optional<Long> startTimestamp =
                     Optional.ofNullable(transactionReference.get()).map(Transaction::getTimestamp);
             log.info(u}(j  (0712785ad5ddf2f3465cb7d70bbb0730a1e0e96fj  jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/f8bf34176eae5fa8f2122a40292f5b8aee0f9b9b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj  https://github.com/palantir/atlasdb/raw/f8bf34176eae5fa8f2122a40292f5b8aee0f9b9b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=f8bf34176eae5fa8f2122a40292f5b8aee0f9b9bj  XB	  @@ -35,13 +35,15 @@
 import static org.mockito.Mockito.when;
 
 import com.google.common.collect.Iterables;
+import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.factory.TransactionManagers;
-import com.palantir.atlasdb.keyvalue.api.KeyAlreadyExistsException;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.transaction.api.ConditionAwareTransactionTask;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.encoding.V1EncodingStrategy;
+import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore.CommitTimestampProvider;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
@@ -175,8 +177,17 @@ public void keyAlreadyExistExceptionResultsInMaybeWitnessedTransaction() {
                     Supplier<CommitTimestampProvider> commitTimestampFetcher = answer.getArgument(0);
                     ConditionAwareTransactionTask<Void, CommitTimestampProvider, Exception> task =
                             answer.getArgument(1);
-                    manager.runTaskWithConditionWithRetry(commitTimestampFetcher, task);
-                    throw new KeyAlreadyExistsException("foobar");
+                    return manager.runTaskWithConditionWithRetry(commitTimestampFetcher, (txn, condition) -> {
+                        manager.getKeyValueService()
+                                .putUnlessExists(
+                                        TransactionConstants.TRANSACTION_TABLE,
+                                        Map.of(
+                                                V1EncodingStrategy.INSTANCE.encodeStartTimestampAsCell(
+                                                        txn.getTimestamp()),
+                                                Ints.toByteArray(-1)));
+                        task.execute(txn, condition);
+                        return null;
+                    });
                 })
                 .when(onlyThrowsKeyAlreadyExistsExceptionManager)
                 .runTaskWithConditionWithRetry(any(Supplier.class), any());ueu(4b3b2c8e60dd577b5a9c1ce2eae3c0c8608f60ba}(sha(4b3b2c8e60dd577b5a9c1ce2eae3c0c8608f60banode_idEC_kwDOAjP5fdoAKDRiM2IyYzhlNjBkZDU3N2I1YTljMWNlMmVhZTNjMGM4NjA4ZjYwYmEcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-05-24T15:56:03Zu	committer}(j  Lucas Meirelesj  meireles31@msn.comj  2023-05-24T15:56:03Zumessage
remuve unusedtree}(j  (d52ab53d41d3ed0e36564c97b28d553b596730c8url`https://api.github.com/repos/palantir/atlasdb/git/trees/d52ab53d41d3ed0e36564c97b28d553b596730c8uj)  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4b3b2c8e60dd577b5a9c1ce2eae3c0c8608f60ba
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmRuM5MACgkQJd22kJ7J
Gizz2Af8Cb2pj9Mwy5K/944c4qv8jO3+eHDiKv0CaGdUUBAdpJzq87QwxJ7MTd02
/6J81grSqfOPj/KlV7QW8KBQJxDkrT+xvxkj6NoPwVnR5+vYqV/A7ZCAmuukgBJJ
HzIVORZniaFOnxsNs8+hAk84z4F2K71vA22ESejzAGuw66wnFvCY1C1MWXJqIVAq
W3N5z2fUPwQV7hQOShyOhgNJIdAEGhmW/UMCPN0BdhUu0mzzcRZCDwNMO/IqRlY7
7KCgbkOpXgQF4QCHtqMUhMKlq2BNwBTxi5CiMdWr2+xrryZFkZJGztd9SBfQikZL
CGyHJV5DbHQ9JTVmXrgHWPXWVY/abg==
=TNG7
-----END PGP SIGNATURE-----payloadtree d52ab53d41d3ed0e36564c97b28d553b596730c8
parent 1306124dfd8b28b6a5dba1a5a72e40f5336f1b95
author Lucas Meireles <meireles31@msn.com> 1684943763 +0100
committer Lucas Meireles <meireles31@msn.com> 1684943763 +0100

remuve unused
uuj)  ^https://api.github.com/repos/palantir/atlasdb/commits/4b3b2c8e60dd577b5a9c1ce2eae3c0c8608f60bahtml_urlShttps://github.com/palantir/atlasdb/commit/4b3b2c8e60dd577b5a9c1ce2eae3c0c8608f60bacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4b3b2c8e60dd577b5a9c1ce2eae3c0c8608f60ba/commentsj  }(loginLucasIMEidJg j  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j)  %https://api.github.com/users/LucasIMEj7  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj  }(j<  LucasIMEj>  Jg j  MDQ6VXNlcjY3ODczMTE=j@  3https://avatars.githubusercontent.com/u/6787311?v=4jB  h5j)  %https://api.github.com/users/LucasIMEj7  https://github.com/LucasIMEjE  /https://api.github.com/users/LucasIME/followersjG  <https://api.github.com/users/LucasIME/following{/other_user}jI  5https://api.github.com/users/LucasIME/gists{/gist_id}jK  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jM  3https://api.github.com/users/LucasIME/subscriptionsjO  *https://api.github.com/users/LucasIME/orgsjQ  +https://api.github.com/users/LucasIME/reposjS  6https://api.github.com/users/LucasIME/events{/privacy}jU  5https://api.github.com/users/LucasIME/received_eventsjW  UserjY  uparents]}(j  (1306124dfd8b28b6a5dba1a5a72e40f5336f1b95j)  ^https://api.github.com/repos/palantir/atlasdb/commits/1306124dfd8b28b6a5dba1a5a72e40f5336f1b95j7  Shttps://github.com/palantir/atlasdb/commit/1306124dfd8b28b6a5dba1a5a72e40f5336f1b95uastats}(totalK	additionsK 	deletionsKufiles]}(j  (4db3537b4a218091405275d217da6cbabba80fa0filename]atlasdb-client/src/test/java/com/palantir/atlasdb/transaction/impl/ReadTransactionShould.javastatusmodifiedjs  K jt  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/4b3b2c8e60dd577b5a9c1ce2eae3c0c8608f60ba/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransactionShould.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4b3b2c8e60dd577b5a9c1ce2eae3c0c8608f60ba/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransactionShould.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransactionShould.java?ref=4b3b2c8e60dd577b5a9c1ce2eae3c0c8608f60bapatchXn  @@ -30,7 +30,6 @@
 import com.palantir.atlasdb.keyvalue.api.RangeRequest;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.table.description.SweepStrategy;
-import java.lang.reflect.Method;
 import java.nio.charset.StandardCharsets;
 import java.util.Map;
 import org.junit.Before;
@@ -104,8 +103,4 @@ private void checkThrowsAndNoInteraction(
             verifyNoMoreInteractions(delegateTransaction);
         }
     }
-
-    private boolean hasExpectedParameterCount(Method method) {
-        return simpleGets.get(method.getName()).length == method.getParameterCount();
-    }
 }uau(184e329381bec290c1eec2b3f1e39ea01c9a3d1b}(sha(184e329381bec290c1eec2b3f1e39ea01c9a3d1bnode_idEC_kwDOAjP5fdoAKDE4NGUzMjkzODFiZWMyOTBjMWVlYzJiM2YxZTM5ZWEwMWM5YTNkMWIcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-16T12:13:26Zu	committer}(j  Lucas Meirelesj  meireles31@msn.comj  2023-06-16T12:13:26ZumessagelCheck explicitly for sweet strategy instead of relying on if should check immutable lock on Read Transactiontree}(j  (5687cf2cb5168acb036c47b4afba23ef60923bd4url`https://api.github.com/repos/palantir/atlasdb/git/trees/5687cf2cb5168acb036c47b4afba23ef60923bd4uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/184e329381bec290c1eec2b3f1e39ea01c9a3d1b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSMUeYACgkQJd22kJ7J
Giy14QgAnmWnzBXTqi6SvfO+FigR8uMG15tMNduLanQ+mfkqCb9vXvfwnVyfmjXY
w46TRZkaCbe0H7BjECH91l4GAahlneREZ0z9N59y02+wRtx5i4N6UZm5XeYUwpSq
ZkiiDYQ3IF6hbJwJMO+ozta0EHCF3cXJAmh5nHYW7ZVXrk1yBgN3t1z+vWl/ep/O
e5952Xu3xAr5vnwSsMa6YErAWUwIJLpHq/XZSb8h1y/zZsJEm8+ZEU6dQLerm4j6
Jw1TQvd0M0XXIz9qDi/P1QnsVAx1JAU+7HOpCIcpKh1xixLFcX8EUQd6VpvyZndO
qIeJpMjIO3ELQrrhLjeAu6XSwXY7oQ==
=Qh/q
-----END PGP SIGNATURE-----payloadXG  tree 5687cf2cb5168acb036c47b4afba23ef60923bd4
parent 94de06c7ddd098508dfe05c0b39244681e752b70
author Lucas Meireles <meireles31@msn.com> 1686917606 +0100
committer Lucas Meireles <meireles31@msn.com> 1686917606 +0100

Check explicitly for sweet strategy instead of relying on if should check immutable lock on Read Transaction
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/184e329381bec290c1eec2b3f1e39ea01c9a3d1bhtml_urlShttps://github.com/palantir/atlasdb/commit/184e329381bec290c1eec2b3f1e39ea01c9a3d1bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/184e329381bec290c1eec2b3f1e39ea01c9a3d1b/commentsj  }(loginLucasIMEidJg j  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj  }(j  LucasIMEj  Jg j  MDQ6VXNlcjY3ODczMTE=j  3https://avatars.githubusercontent.com/u/6787311?v=4j  h5j  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIMEj  /https://api.github.com/users/LucasIME/followersj  <https://api.github.com/users/LucasIME/following{/other_user}j  5https://api.github.com/users/LucasIME/gists{/gist_id}j  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j  3https://api.github.com/users/LucasIME/subscriptionsj  *https://api.github.com/users/LucasIME/orgsj  +https://api.github.com/users/LucasIME/reposj  6https://api.github.com/users/LucasIME/events{/privacy}j  5https://api.github.com/users/LucasIME/received_eventsj  Userj  uparents]}(j  (94de06c7ddd098508dfe05c0b39244681e752b70j  ^https://api.github.com/repos/palantir/atlasdb/commits/94de06c7ddd098508dfe05c0b39244681e752b70j  Shttps://github.com/palantir/atlasdb/commit/94de06c7ddd098508dfe05c0b39244681e752b70uastats}(totalK	additionsK	deletionsKufiles]}(j  (71e95645f3ae1137fc44efc89c6e3432b42d85fffilenameWatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ReadTransaction.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/184e329381bec290c1eec2b3f1e39ea01c9a3d1b/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/184e329381bec290c1eec2b3f1e39ea01c9a3d1b/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.java?ref=184e329381bec290c1eec2b3f1e39ea01c9a3d1bpatchX  @@ -24,14 +24,15 @@
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.logging.LoggingArgs;
-import com.palantir.atlasdb.table.description.SweepStrategy;
+import com.palantir.atlasdb.table.description.SweeperStrategy;
 import com.palantir.atlasdb.transaction.api.GetRangesQuery;
 import com.palantir.common.base.BatchingVisitable;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
+import java.util.Optional;
 import java.util.Set;
 import java.util.function.BiFunction;
 import java.util.stream.Stream;
@@ -136,12 +137,11 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
     }
 
     private void checkTableName(TableReference tableRef) {
-        SweepStrategy sweepStrategy = sweepStrategies.get(tableRef);
+        Optional<SweeperStrategy> sweepStrategy = sweepStrategies.get(tableRef).getSweeperStrategy();
         Preconditions.checkState(
-                !sweepStrategy.mustCheckImmutableLock(false /* no read was actually done, but we don't want to use
-                ReadTransaction on thoroughly swept tables */),
-                "This table cannot be read from a read-only transaction, because its "
-                        + "sweep strategy is neither NOTHING nor CONSERVATIVE",
+                sweepStrategy.isEmpty() || sweepStrategy.get().equals(SweeperStrategy.CONSERVATIVE),
+                "This table cannot be read from a read-only transaction, because its sweep strategy is neither NOTHING"
+                        + " nor CONSERVATIVE",
                 LoggingArgs.tableRef(tableRef));
     }
 uau     (a65068895ef1818b3c838f4bb99bbe51a6e2335d}(sha(a65068895ef1818b3c838f4bb99bbe51a6e2335dnode_idEC_kwDOAjP5fdoAKGE2NTA2ODg5NWVmMTgxOGIzYzgzOGY0YmI5OWJiZTUxYTZlMjMzNWQcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-15T15:53:44Zu	committer}(j  svc-autoreleasej	  -pd-foundry-infrastructure-notify@palantir.comj  2023-05-15T15:53:44Zumessage"Autorelease 0.854.0-rc8

[skip ci]tree}(j  (7a7e93e03c1d6889afecc647e5d389aeeb92a4e5url`https://api.github.com/repos/palantir/atlasdb/git/trees/7a7e93e03c1d6889afecc647e5d389aeeb92a4e5uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a65068895ef1818b3c838f4bb99bbe51a6e2335d
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRiVYkACgkQhbrR8ip7mDB63QD+J9g+f8ddnH/hluod+qtPYCOk
ZkKPu89F2m5X1LhZ03kBAIkgeswXPpR+nGc7pe8JFMLHlRBl57E2SgY8BBRGNhxC
=JT0V
-----END PGP SIGNATURE-----
payloadX(  tree 7a7e93e03c1d6889afecc647e5d389aeeb92a4e5
parent 4b82f40527535a0c95dc0e8fd507fd2bb1ab5414
author aalouane <30903736+ergo14@users.noreply.github.com> 1684166024 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684166024 +0000

Autorelease 0.854.0-rc8

[skip ci]uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/a65068895ef1818b3c838f4bb99bbe51a6e2335dhtml_urlShttps://github.com/palantir/atlasdb/commit/a65068895ef1818b3c838f4bb99bbe51a6e2335dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a65068895ef1818b3c838f4bb99bbe51a6e2335d/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j%  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj
  }(j*  svc-autoreleasej,  J(j  MDQ6VXNlcjUxNzE4MzQ2j.  4https://avatars.githubusercontent.com/u/51718346?v=4j0  h5j  ,https://api.github.com/users/svc-autoreleasej%  "https://github.com/svc-autoreleasej3  6https://api.github.com/users/svc-autorelease/followersj5  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j7  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j9  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j;  :https://api.github.com/users/svc-autorelease/subscriptionsj=  1https://api.github.com/users/svc-autorelease/orgsj?  2https://api.github.com/users/svc-autorelease/reposjA  =https://api.github.com/users/svc-autorelease/events{/privacy}jC  <https://api.github.com/users/svc-autorelease/received_eventsjE  UserjG  uparents]}(j  (4b82f40527535a0c95dc0e8fd507fd2bb1ab5414j  ^https://api.github.com/repos/palantir/atlasdb/commits/4b82f40527535a0c95dc0e8fd507fd2bb1ab5414j%  Shttps://github.com/palantir/atlasdb/commit/4b82f40527535a0c95dc0e8fd507fd2bb1ab5414uastats}(totalK 	additionsK 	deletionsK ufiles]u(9970453d639510f15d35a8fae963e600ccbd7d83}(sha(9970453d639510f15d35a8fae963e600ccbd7d83node_idEC_kwDOAjP5fdoAKDk5NzA0NTNkNjM5NTEwZjE1ZDM1YThmYWU5NjNlNjAwY2NiZDdkODMcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-08-08T17:51:23Zu	committer}(jo  svc-autoreleasejq  -pd-foundry-infrastructure-notify@palantir.comjs  2023-08-08T17:51:23ZumessageAutorelease 0.910.0

[skip ci]tree}(jg  (a72ec1df98f76cbc2dfb4f7dadba2766b90845f7url`https://api.github.com/repos/palantir/atlasdb/git/trees/a72ec1df98f76cbc2dfb4f7dadba2766b90845f7uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9970453d639510f15d35a8fae963e600ccbd7d83
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmTSgJ8ACgkQhbrR8ip7mDBIggD/fhNueviSZTZEWzwr9AY7r4hw
HfUPRSu7+UOYcyiFL6UBAOe+F4Gw3C3ksKYWbAdpZWwJWNm2QmsEYNCDG24507ot
=+IhG
-----END PGP SIGNATURE-----
payloadX0  tree a72ec1df98f76cbc2dfb4f7dadba2766b90845f7
parent e8c8a85c5f0afcc68fea533f4a9fec9add21a375
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1691517083 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1691517083 +0000

Autorelease 0.910.0

[skip ci]uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/9970453d639510f15d35a8fae963e600ccbd7d83html_urlShttps://github.com/palantir/atlasdb/commit/9970453d639510f15d35a8fae963e600ccbd7d83comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9970453d639510f15d35a8fae963e600ccbd7d83/commentsjm  }(loginsvc-autoreleaseidJ(ji  MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j  ,https://api.github.com/users/svc-autoreleasej  "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuju  }(j  svc-autoreleasej  J(ji  MDQ6VXNlcjUxNzE4MzQ2j  4https://avatars.githubusercontent.com/u/51718346?v=4j  h5j  ,https://api.github.com/users/svc-autoreleasej  "https://github.com/svc-autoreleasej  6https://api.github.com/users/svc-autorelease/followersj  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j  :https://api.github.com/users/svc-autorelease/subscriptionsj  1https://api.github.com/users/svc-autorelease/orgsj  2https://api.github.com/users/svc-autorelease/reposj  =https://api.github.com/users/svc-autorelease/events{/privacy}j  <https://api.github.com/users/svc-autorelease/received_eventsj  Userj  uparents]}(jg  (e8c8a85c5f0afcc68fea533f4a9fec9add21a375j  ^https://api.github.com/repos/palantir/atlasdb/commits/e8c8a85c5f0afcc68fea533f4a9fec9add21a375j  Shttps://github.com/palantir/atlasdb/commit/e8c8a85c5f0afcc68fea533f4a9fec9add21a375uastats}(totalK 	additionsK 	deletionsK ufiles](}(jg  (85b88858e24587f4a6856741976dc6e584bbe990filename changelog/0.910.0/pr-6671.v2.ymlstatusrenamedj  K j  K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/9970453d639510f15d35a8fae963e600ccbd7d83/changelog%2F0.910.0%2Fpr-6671.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/9970453d639510f15d35a8fae963e600ccbd7d83/changelog%2F0.910.0%2Fpr-6671.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.910.0%2Fpr-6671.v2.yml?ref=9970453d639510f15d35a8fae963e600ccbd7d83previous_filename$changelog/@unreleased/pr-6671.v2.ymlu}(jg  (465c3ad670a2e06fe778e928a4854e0ba076f445j   changelog/0.910.0/pr-6674.v2.ymlj  renamedj  K j  K j  K j  vhttps://github.com/palantir/atlasdb/blob/9970453d639510f15d35a8fae963e600ccbd7d83/changelog%2F0.910.0%2Fpr-6674.v2.ymlj  uhttps://github.com/palantir/atlasdb/raw/9970453d639510f15d35a8fae963e600ccbd7d83/changelog%2F0.910.0%2Fpr-6674.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.910.0%2Fpr-6674.v2.yml?ref=9970453d639510f15d35a8fae963e600ccbd7d83j  $changelog/@unreleased/pr-6674.v2.ymlueu(5a1e86e8ab326717a679f0df1329141dea8519d8}(sha(5a1e86e8ab326717a679f0df1329141dea8519d8node_idEC_kwDOAjP5fdoAKDVhMWU4NmU4YWIzMjY3MTdhNjc5ZjBkZjEzMjkxNDFkZWE4NTE5ZDgcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-04-17T10:30:55Zu	committer}(j  svc-autoreleasej  -pd-foundry-infrastructure-notify@palantir.comj  2023-04-17T10:30:55ZumessageAutorelease 0.839.0

[skip ci]tree}(j  (86cc5f7579d30749e38293a3080e4de91a576e98url`https://api.github.com/repos/palantir/atlasdb/git/trees/86cc5f7579d30749e38293a3080e4de91a576e98uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5a1e86e8ab326717a679f0df1329141dea8519d8
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmQ9H+QACgkQhbrR8ip7mDAuwgEA4VUUKU68ZXHY24EtF2KiGCvn
tMendTpHZ5o9RFfbxdMBAMVHlFren0cg9WYdK4LMLYCE9z/wsR1z+kLJwp/TZe/P
=YrAn
-----END PGP SIGNATURE-----
payloadX0  tree 86cc5f7579d30749e38293a3080e4de91a576e98
parent 54f16e4fa279120733e921a0d8ad18aa955ed242
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1681727455 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1681727455 +0000

Autorelease 0.839.0

[skip ci]uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/5a1e86e8ab326717a679f0df1329141dea8519d8html_urlShttps://github.com/palantir/atlasdb/commit/5a1e86e8ab326717a679f0df1329141dea8519d8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5a1e86e8ab326717a679f0df1329141dea8519d8/commentsj  }(loginsvc-autoreleaseidJ(j  MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j  ,https://api.github.com/users/svc-autoreleasej  "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj  }(j  svc-autoreleasej  J(j  MDQ6VXNlcjUxNzE4MzQ2j  4https://avatars.githubusercontent.com/u/51718346?v=4j  h5j  ,https://api.github.com/users/svc-autoreleasej  "https://github.com/svc-autoreleasej  6https://api.github.com/users/svc-autorelease/followersj  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j   Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j"  :https://api.github.com/users/svc-autorelease/subscriptionsj$  1https://api.github.com/users/svc-autorelease/orgsj&  2https://api.github.com/users/svc-autorelease/reposj(  =https://api.github.com/users/svc-autorelease/events{/privacy}j*  <https://api.github.com/users/svc-autorelease/received_eventsj,  Userj.  uparents]}(j  (54f16e4fa279120733e921a0d8ad18aa955ed242j  ^https://api.github.com/repos/palantir/atlasdb/commits/54f16e4fa279120733e921a0d8ad18aa955ed242j  Shttps://github.com/palantir/atlasdb/commit/54f16e4fa279120733e921a0d8ad18aa955ed242uastats}(totalK 	additionsK 	deletionsK ufiles]}(j  (c822ef68c4ddbb417971592d568f0a9d209eaa87filename changelog/0.839.0/pr-6528.v2.ymlstatusrenamedjH  K jI  K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/5a1e86e8ab326717a679f0df1329141dea8519d8/changelog%2F0.839.0%2Fpr-6528.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/5a1e86e8ab326717a679f0df1329141dea8519d8/changelog%2F0.839.0%2Fpr-6528.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.839.0%2Fpr-6528.v2.yml?ref=5a1e86e8ab326717a679f0df1329141dea8519d8previous_filename$changelog/@unreleased/pr-6528.v2.ymluau(33865f731778e813c41aa03b24eae93de88fdc59}(sha(33865f731778e813c41aa03b24eae93de88fdc59node_idEC_kwDOAjP5fdoAKDMzODY1ZjczMTc3OGU4MTNjNDFhYTAzYjI0ZWFlOTNkZTg4ZmRjNTkcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-06-01T18:52:30Zu	committer}(je  svc-autoreleasejg  -pd-foundry-infrastructure-notify@palantir.comji  2023-06-01T18:52:30ZumessageAutorelease 0.868.0

[skip ci]tree}(j]  (02b4eb3da60dc92ff19897e4cd45f38171e7acc8url`https://api.github.com/repos/palantir/atlasdb/git/trees/02b4eb3da60dc92ff19897e4cd45f38171e7acc8uju  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/33865f731778e813c41aa03b24eae93de88fdc59
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmR46PQACgkQhbrR8ip7mDC/QAEA/TMKQxNI2b9sIeTscjFOFPHV
kqY8WqmUl0WVrHW9zjQBAMmTEWH7UFLAUjNo0ZiT3lORBxT1+vR3TsizJDByJh26
=krek
-----END PGP SIGNATURE-----
payloadX0  tree 02b4eb3da60dc92ff19897e4cd45f38171e7acc8
parent 6a15660757df219caa1b89da233e201f3405c621
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1685645550 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1685645550 +0000

Autorelease 0.868.0

[skip ci]uuju  ^https://api.github.com/repos/palantir/atlasdb/commits/33865f731778e813c41aa03b24eae93de88fdc59html_urlShttps://github.com/palantir/atlasdb/commit/33865f731778e813c41aa03b24eae93de88fdc59comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/33865f731778e813c41aa03b24eae93de88fdc59/commentsjc  }(loginsvc-autoreleaseidJ(j_  MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5ju  ,https://api.github.com/users/svc-autoreleasej  "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminujk  }(j  svc-autoreleasej  J(j_  MDQ6VXNlcjUxNzE4MzQ2j  4https://avatars.githubusercontent.com/u/51718346?v=4j  h5ju  ,https://api.github.com/users/svc-autoreleasej  "https://github.com/svc-autoreleasej  6https://api.github.com/users/svc-autorelease/followersj  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j  :https://api.github.com/users/svc-autorelease/subscriptionsj  1https://api.github.com/users/svc-autorelease/orgsj  2https://api.github.com/users/svc-autorelease/reposj  =https://api.github.com/users/svc-autorelease/events{/privacy}j  <https://api.github.com/users/svc-autorelease/received_eventsj  Userj  uparents]}(j]  (6a15660757df219caa1b89da233e201f3405c621ju  ^https://api.github.com/repos/palantir/atlasdb/commits/6a15660757df219caa1b89da233e201f3405c621j  Shttps://github.com/palantir/atlasdb/commit/6a15660757df219caa1b89da233e201f3405c621uastats}(totalK 	additionsK 	deletionsK ufiles]}(j]  (088ecb3494e3094a7ce37361e9ec8cf8f2816acafilename changelog/0.868.0/pr-6598.v2.ymlstatusrenamedj  K j  K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/33865f731778e813c41aa03b24eae93de88fdc59/changelog%2F0.868.0%2Fpr-6598.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/33865f731778e813c41aa03b24eae93de88fdc59/changelog%2F0.868.0%2Fpr-6598.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.868.0%2Fpr-6598.v2.yml?ref=33865f731778e813c41aa03b24eae93de88fdc59previous_filename$changelog/@unreleased/pr-6598.v2.ymluau(d58fdddb4c50848483ec4948da5cfe4a0bfb85a8}(sha(d58fdddb4c50848483ec4948da5cfe4a0bfb85a8node_idEC_kwDOAjP5fdoAKGQ1OGZkZGRiNGM1MDg0ODQ4M2VjNDk0OGRhNWNmZTRhMGJmYjg1YTgcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-07-10T12:39:32Zu	committer}(j  svc-autoreleasej  -pd-foundry-infrastructure-notify@palantir.comj  2023-07-10T12:39:32ZumessageAutorelease 0.890.0

[skip ci]tree}(j  (94d207d072548cd000433c72b7d8b939343062ffurl`https://api.github.com/repos/palantir/atlasdb/git/trees/94d207d072548cd000433c72b7d8b939343062ffuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d58fdddb4c50848483ec4948da5cfe4a0bfb85a8
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmSr/AkACgkQhbrR8ip7mDA5cgEAt8yArKOL/yQRDm+3m7NfE1F4
mbePHjTOdztw1AHypQsA/3lSp4q5ntAACAeZdQn6aUoWIxjsI2g2o51Ls35NTL2A
=dYEg
-----END PGP SIGNATURE-----
payloadX0  tree 94d207d072548cd000433c72b7d8b939343062ff
parent 6744b494950e96cab4f165622a5129a1586c9b06
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1688992772 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1688992772 +0000

Autorelease 0.890.0

[skip ci]uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/d58fdddb4c50848483ec4948da5cfe4a0bfb85a8html_urlShttps://github.com/palantir/atlasdb/commit/d58fdddb4c50848483ec4948da5cfe4a0bfb85a8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d58fdddb4c50848483ec4948da5cfe4a0bfb85a8/commentsj  }(loginsvc-autoreleaseidJ(j  MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j  ,https://api.github.com/users/svc-autoreleasej  "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj  }(j  svc-autoreleasej  J(j  MDQ6VXNlcjUxNzE4MzQ2j  4https://avatars.githubusercontent.com/u/51718346?v=4j  h5j  ,https://api.github.com/users/svc-autoreleasej  "https://github.com/svc-autoreleasej  6https://api.github.com/users/svc-autorelease/followersj
  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j  :https://api.github.com/users/svc-autorelease/subscriptionsj  1https://api.github.com/users/svc-autorelease/orgsj  2https://api.github.com/users/svc-autorelease/reposj  =https://api.github.com/users/svc-autorelease/events{/privacy}j  <https://api.github.com/users/svc-autorelease/received_eventsj  Userj  uparents]}(j  (6744b494950e96cab4f165622a5129a1586c9b06j  ^https://api.github.com/repos/palantir/atlasdb/commits/6744b494950e96cab4f165622a5129a1586c9b06j  Shttps://github.com/palantir/atlasdb/commit/6744b494950e96cab4f165622a5129a1586c9b06uastats}(totalK 	additionsK 	deletionsK ufiles]}(j  (e0b05befdf4bf72e70b07846fc766f84e4b79eb4filename changelog/0.890.0/pr-6645.v2.ymlstatusrenamedj6  K j7  K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/d58fdddb4c50848483ec4948da5cfe4a0bfb85a8/changelog%2F0.890.0%2Fpr-6645.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/d58fdddb4c50848483ec4948da5cfe4a0bfb85a8/changelog%2F0.890.0%2Fpr-6645.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.890.0%2Fpr-6645.v2.yml?ref=d58fdddb4c50848483ec4948da5cfe4a0bfb85a8previous_filename$changelog/@unreleased/pr-6645.v2.ymluau(507515d8ab6a4e9ce440bbbeff2d4102d2996117}(sha(507515d8ab6a4e9ce440bbbeff2d4102d2996117node_idEC_kwDOAjP5fdoAKDUwNzUxNWQ4YWI2YTRlOWNlNDQwYmJiZWZmMmQ0MTAyZDI5OTYxMTccommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-08T20:06:14Zu	committer}(jS  	Tom PapkejU  tpapke@palantir.comjW  2023-06-08T20:06:14Zumessage Remove readonly transaction testtree}(jK  (ebd1911f85b5a9149d7056cd694ef03bd15e005aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/ebd1911f85b5a9149d7056cd694ef03bd15e005aujc  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/507515d8ab6a4e9ce440bbbeff2d4102d2996117
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSCNLYACgkQmF9s0kaF
Iw0EDQgAsEY+0awch42g6Cf7BXrTerK4i6JE/HltcX16WwgB8J0niWdABliO2Mpr
835FEZ4SWFgp0DSfFX0ziyD+d54+n5xhyS6dtEy98m2nX/CY9g2MMlpGzdLvdBQ6
K85p5jNKztyIvo7A+FUXWet+lksUpV2vejeeOHGG8/6zFkj8fMLjHKC4fnrzdfOz
hI+dO7IAKz/qfUG4JFRvGYBKbPaChrzYY2WlttmNNymEPG+v4lRBH2WNrKdA6AgD
jBum7w5byZNsCzGIkehc7vZmrZnKSYctnbWBNSGr/ueytsEsw6kmJYHDhuF0eM7A
JDe+2V7LNxDMZMcIYbdFnvaKbJ7Z9A==
=bdX7
-----END PGP SIGNATURE-----payloadtree ebd1911f85b5a9149d7056cd694ef03bd15e005a
parent 2bb657238bc800d98119bd67cf74b0488cb21362
author Tom Papke <tpapke@palantir.com> 1686254774 +0100
committer Tom Papke <tpapke@palantir.com> 1686254774 +0100

Remove readonly transaction test
uujc  ^https://api.github.com/repos/palantir/atlasdb/commits/507515d8ab6a4e9ce440bbbeff2d4102d2996117html_urlShttps://github.com/palantir/atlasdb/commit/507515d8ab6a4e9ce440bbbeff2d4102d2996117comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/507515d8ab6a4e9ce440bbbeff2d4102d2996117/commentsjQ  }(login	ToemmscheidJbojM  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jc  &https://api.github.com/users/Toemmschejq  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujY  }(jv  	Toemmschejx  JbojM  MDQ6VXNlcjQzNjc1NDkwjz  4https://avatars.githubusercontent.com/u/43675490?v=4j|  h5jc  &https://api.github.com/users/Toemmschejq  https://github.com/Toemmschej  0https://api.github.com/users/Toemmsche/followersj  =https://api.github.com/users/Toemmsche/following{/other_user}j  6https://api.github.com/users/Toemmsche/gists{/gist_id}j  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j  4https://api.github.com/users/Toemmsche/subscriptionsj  +https://api.github.com/users/Toemmsche/orgsj  ,https://api.github.com/users/Toemmsche/reposj  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj  Userj  uparents]}(jK  (2bb657238bc800d98119bd67cf74b0488cb21362jc  ^https://api.github.com/repos/palantir/atlasdb/commits/2bb657238bc800d98119bd67cf74b0488cb21362jq  Shttps://github.com/palantir/atlasdb/commit/2bb657238bc800d98119bd67cf74b0488cb21362uastats}(totalK
	additionsK 	deletionsK
ufiles]}(jK  (fba51b35002bb4c872397d2c09bc57b02ddd8136filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedj  K j  K
changesK
blob_urlhttps://github.com/palantir/atlasdb/blob/507515d8ab6a4e9ce440bbbeff2d4102d2996117/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/507515d8ab6a4e9ce440bbbeff2d4102d2996117/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=507515d8ab6a4e9ce440bbbeff2d4102d2996117patchX  @@ -2428,19 +2428,6 @@ public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigratio
         assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
     }
 
-    @Test
-    public void setsRequestedCommitLocksCountCorrectly_readOnlyTransaction() {
-        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
-        txn.get(TABLE, ImmutableSet.of(TEST_CELL));
-        txn.commit();
-
-        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
-
-        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(0);
-        // Since this is a read-only transaction, we should not even lock a row in the transaction table itself
-        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(0);
-    }
-
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,uau(0b76f35489bead64a6b6c6c613bb0556dcfd714b}(sha(0b76f35489bead64a6b6c6c613bb0556dcfd714bnode_idEC_kwDOAjP5fdoAKDBiNzZmMzU0ODliZWFkNjRhNmI2YzZjNjEzYmIwNTU2ZGNmZDcxNGIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-17T16:26:10Zu	committer}(j  
Sam Kramerj  skramer@palantir.comj  2023-08-17T16:26:10Zumessageadd testtree}(j  (a9f238bf2447861169cacd679501d5e5abb86e6eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/a9f238bf2447861169cacd679501d5e5abb86e6euj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0b76f35489bead64a6b6c6c613bb0556dcfd714b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTeSiIACgkQmPPOpKR4
XS2BKggAjtOqJ4DP5j1lMdJm3kH7D3vPmu3BHglCduaxPYDiT75yZ2WVG7ncN6uk
ud6lRy8uQSa4syWB++55GRpQyEiEvOqkjy3pgeMARZnxc8hZDeBkvfSX8k2y1dki
MEduzCQ44nd/nimyehLboVlOCZ/TsMhk59dbSDFma7pxmUcG0C+ZMI37cdgQ7KE4
V+alT/Kr8CC+QPsSlkEOjoDyD2qHj0HlplTLY6v2UsfSdGnDse+iICeKdF3DW99J
iggDGEtPwSAiDy+UYpWDB4rKf8HjorBNoA2gzd3LGYo1C7a6C6QBfsrQgF2Pvc/7
rUf6phuYxAjqGrfLn8sDm7NDmmNMWg==
=sOIp
-----END PGP SIGNATURE-----payloadtree a9f238bf2447861169cacd679501d5e5abb86e6e
parent 23b509f30009d6c36a209c56be97556f86d30ca6
author Sam Kramer <skramer@palantir.com> 1692289570 +0100
committer Sam Kramer <skramer@palantir.com> 1692289570 +0100

add test
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/0b76f35489bead64a6b6c6c613bb0556dcfd714bhtml_urlShttps://github.com/palantir/atlasdb/commit/0b76f35489bead64a6b6c6c613bb0556dcfd714bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0b76f35489bead64a6b6c6c613bb0556dcfd714b/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j  
Sam-Kramerj  J^2_ j  MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j  h5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj  1https://api.github.com/users/Sam-Kramer/followersj  >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j  5https://api.github.com/users/Sam-Kramer/subscriptionsj   ,https://api.github.com/users/Sam-Kramer/orgsj  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj
  uparents]}(j  (23b509f30009d6c36a209c56be97556f86d30ca6j  ^https://api.github.com/repos/palantir/atlasdb/commits/23b509f30009d6c36a209c56be97556f86d30ca6j  Shttps://github.com/palantir/atlasdb/commit/23b509f30009d6c36a209c56be97556f86d30ca6uastats}(totalK5	additionsK	deletionsKufiles](}(j  (d7ee81b5259db20201a7b51891b21ae03a6e8420filename]timelock-impl/src/main/java/com/palantir/atlasdb/timelock/paxos/PaxosTimestampBoundStore.javastatusmodifiedj$  Kj%  KchangesK0blob_urlhttps://github.com/palantir/atlasdb/blob/0b76f35489bead64a6b6c6c613bb0556dcfd714b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0b76f35489bead64a6b6c6c613bb0556dcfd714b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.java?ref=0b76f35489bead64a6b6c6c613bb0556dcfd714bpatchXg  @@ -16,12 +16,12 @@
 package com.palantir.atlasdb.timelock.paxos;
 
 import com.google.common.annotations.VisibleForTesting;
-import com.google.common.base.Preconditions;
 import com.google.common.collect.Ordering;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.timelock.paxos.PaxosQuorumCheckingCoalescingFunction.PaxosContainer;
 import com.palantir.common.remoting.ServiceNotAvailableException;
 import com.palantir.leader.NotCurrentLeaderException;
+import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -39,10 +39,12 @@
 import com.palantir.timestamp.DebugLogger;
 import com.palantir.timestamp.MultipleRunningTimestampServiceError;
 import com.palantir.timestamp.TimestampBoundStore;
+
 import java.util.List;
 import java.util.Optional;
 import javax.annotation.Nullable;
 import javax.annotation.concurrent.GuardedBy;
+
 import org.immutables.value.Value;
 
 public class PaxosTimestampBoundStore implements TimestampBoundStore {
@@ -113,14 +115,14 @@ private List<PaxosLong> getLatestSequenceNumbersFromAcceptors() {
     /**
      * Obtains agreement for a given sequence number, pulling in values from previous sequence numbers
      * if needed.
-     *
+     * <p>
      * The semantics of this method are as follows:
-     *  - If any learner knows that a value has already been agreed for this sequence number, return said value.
-     *  - Otherwise, poll learners for the state of the previous sequence number.
-     *     - If this is unavailable, the cluster must have agreed on (seq - 2), so read it and then force (seq - 1)
-     *       to that value.
-     *  - Finally, force agreement for seq to be the same value as that agreed for (seq - 1).
-     *
+     * - If any learner knows that a value has already been agreed for this sequence number, return said value.
+     * - Otherwise, poll learners for the state of the previous sequence number.
+     * - If this is unavailable, the cluster must have agreed on (seq - 2), so read it and then force (seq - 1)
+     * to that value.
+     * - Finally, force agreement for seq to be the same value as that agreed for (seq - 1).
+     * <p>
      * This method has a precondition that (seq - 2) must be agreed upon; note that numbers up to and including
      * PaxosAcceptor.NO_LOG_ENTRY are always considered agreed upon.
      *
@@ -149,16 +151,16 @@ SequenceAndBound getAgreedState(long seq) {
      * Forces agreement to be reached for a given sequence number; if the cluster hasn't reached agreement yet,
      * attempts to propose a given value. This method only returns when a value has been agreed upon for the provided
      * sequence number (though there are no guarantees as to whether said value is proposed by this node).
-     *
+     * <p>
      * The semantics of this method are as follows:
-     *  - If any learner knows that a value has already been agreed for this sequence number, return said value.
-     *  - Otherwise, propose the value oldState to the cluster. This call returns the value accepted by a
-     *    quorum of nodes; return that value.
-     *
+     * - If any learner knows that a value has already been agreed for this sequence number, return said value.
+     * - Otherwise, propose the value oldState to the cluster. This call returns the value accepted by a
+     * quorum of nodes; return that value.
+     * <p>
      * Callers of this method that supply a null oldState are responsible for ensuring that the cluster has already
      * agreed on a value with the provided sequence number.
      *
-     * @param seq Sequence number to obtain agreement on
+     * @param seq      Sequence number to obtain agreement on
      * @param oldState Value to propose, provided no learner has learned a value for this sequence number
      * @return Sequence and bound for the given sequence number; guaranteed nonnull
      * @throws NullPointerException if oldState is null and the cluster hasn't agreed on a value for seq yet
@@ -178,7 +180,7 @@ SequenceAndBound forceAgreedState(long seq, @Nullable Long oldState) {
             try {
                 byte[] acceptedValue = proposer.propose(seq, oldState == null ? null : PtBytes.toBytes(oldState));
                 // propose must never return null.  We only pass in null for things we know are agreed upon already.
-                Preconditions.checkNotNull(acceptedValue, "Proposed value can't be null, but was in sequence %s", seq);
+                Preconditions.checkNotNull(acceptedValue, "Proposed value can't be null, but was in sequence", SafeArg.of("seq", seq));
                 return ImmutableSequenceAndBound.of(seq, PtBytes.toLong(acceptedValue));
             } catch (PaxosRoundFailureException e) {
                 waitForRandomBackoff(e, Thread::sleep);
@@ -219,7 +221,7 @@ private Optional<SequenceAndBound> getLearnedState(long seq) {
      * PaxosAcceptor.NO_LOG_ENTRY + 1 if nothing has been proposed or accepted yet.
      *
      * @param limit the new upper limit to be stored
-     * @throws IllegalArgumentException if trying to persist a limit smaller than the agreed limit
+     * @throws IllegalArgumentException  if trying to persist a limit smaller than the agreed limit
      * @throws NotCurrentLeaderException if the timestamp limit has changed out from under us
      */
     @Override
@@ -229,9 +231,9 @@ public synchronized void storeUpperLimit(long limit) throws MultipleRunningTimes
         if (agreedState != null) {
             Preconditions.checkArgument(
                     limit >= agreedState.getBound(),
-                    "Tried to store an upper limit %s less than the current limit %s",
-                    limit,
-                    agreedState.getBound());
+                    "Tried to store an upper limit less than the current limit",
+                    SafeArg.of("proposedLimit", limit),
+                    SafeArg.of("currentLimit", agreedState.getBound()));
             newSeq = agreedState.getSeqId() + 1;
         }
         while (true) {
@@ -271,9 +273,9 @@ public synchronized void storeUpperLimit(long limit) throws MultipleRunningTimes
     /**
      * Checks that the PaxosValue agreed upon by a quorum of nodes in our cluster was proposed by us.
      *
-     * @param limit the limit our node has proposed
+     * @param limit  the limit our node has proposed
      * @param newSeq the sequence number for which our node has proposed the limit
-     * @param value PaxosValue agreed upon by a quorum of nodes, for sequence number newSeq
+     * @param value  PaxosValue agreed upon by a quorum of nodes, for sequence number newSeq
      * @throws NotCurrentLeaderException if the agreed timestamp bound (PaxosValue) changed under us
      */
     private void checkAgreedBoundIsOurs(long limit, long newSeq, PaxosValue value) throws NotCurrentLeaderException {
@@ -294,7 +296,7 @@ private void checkAgreedBoundIsOurs(long limit, long newSeq, PaxosValue value) t
                 SafeArg.of("paxosValue", value));
     }
 
-    private void throwNotCurrentLeaderException(String message) {
+    private synchronized void throwNotCurrentLeaderException(String message) {
         hasLostLeadership = true;
         throw new NotCurrentLeaderException(message);
     }
@@ -305,7 +307,7 @@ private void throwNotCurrentLeaderException(String message) {
      * to handle cases where users hold or do not hold monitor locks, for instance.
      *
      * @param paxosException the PaxosRoundFailureException that caused us to wait
-     * @param backoffAction the action to take (which consumes the time, in milliseconds, to wait for)
+     * @param backoffAction  the action to take (which consumes the time, in milliseconds, to wait for)
      */
     private void waitForRandomBackoff(PaxosRoundFailureException paxosException, BackoffAction backoffAction) {
         long backoffTime = getRandomBackoffTime();u}(j  (79cc5c2ecb35d733a79932659d8cf09810a66cd0j*  atimelock-impl/src/test/java/com/palantir/atlasdb/timelock/paxos/PaxosTimestampBoundStoreTest.javaj,  modifiedj$  Kj%  Kj.  Kj/  https://github.com/palantir/atlasdb/blob/0b76f35489bead64a6b6c6c613bb0556dcfd714b/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.javaj1  https://github.com/palantir/atlasdb/raw/0b76f35489bead64a6b6c6c613bb0556dcfd714b/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.javaj3  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.java?ref=0b76f35489bead64a6b6c6c613bb0556dcfd714bj5  X.  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.timelock.paxos;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static java.util.stream.Collectors.toList;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
@@ -34,6 +35,7 @@
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.leader.NotCurrentLeaderException;
 import com.palantir.leader.proxy.ToggleableExceptionProxy;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.paxos.Client;
 import com.palantir.paxos.PaxosAcceptor;
 import com.palantir.paxos.PaxosAcceptorNetworkClient;
@@ -253,7 +255,8 @@ public void throwsSafeIllegalStateExceptionIfCalledAfterNotCurrentLeaderExceptio
         additionalStore.storeUpperLimit(TIMESTAMP_1);
         assertThatThrownBy(() -> store.storeUpperLimit(TIMESTAMP_2)).isInstanceOf(NotCurrentLeaderException.class);
         assertThatLoggableExceptionThrownBy(() -> store.storeUpperLimit(TIMESTAMP_2))
-                .isInstanceOf(SafeIllegalStateException.class);
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Cannot store upper limit as leadership has been lost.");
     }
 
     @Testueu(255418df70dfda8afa863bb0e2291232d85efa56}(sha(255418df70dfda8afa863bb0e2291232d85efa56node_idEC_kwDOAjP5fdoAKDI1NTQxOGRmNzBkZmRhOGFmYTg2M2JiMGUyMjkxMjMyZDg1ZWZhNTYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-06T10:10:57Zu	committer}(jI  Jeremy KongjK  jkong@palantir.comjM  2023-06-06T10:10:57ZumessageSerializable invariant for grcrtree}(jA  (91b32ea256940ba9eb367f934f3b5cebe8cca6f1url`https://api.github.com/repos/palantir/atlasdb/git/trees/91b32ea256940ba9eb367f934f3b5cebe8cca6f1ujY  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/255418df70dfda8afa863bb0e2291232d85efa56
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEyBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR/BjEACgkQTLdFKain
zjzvFQfzBPNqUGU9KUtHTGmF9j/x2Jz/gKprro0Wme3NkASCVBZVbyhP9+DUW98s
68cT0BcIncUp0vb7gaoIU9ffV5b9sIo6wyB77kCtjAbZ6L8gqKNtixsmaAUVFrq2
46ArebEQ8/iiGLaIKkM8tKA/1imVnJhblSbb/HXyJVJ4Fl93byfRTj8lK1lSMoNS
1Cq00MgdJV3HdhBAMs73MOwKdP8B5XrX8TNeYMAu1TkqYzsr4c1FxTWS62o0E5FD
Aunq5IMUmxalo446A2//qbEsT/KkiJb5UIAZ6RSyPxQGC0J7d2aEfHrnKLb1J5gX
BB68EL1FlwjYk7JJt2OkkQlhoB4x
=2m9p
-----END PGP SIGNATURE-----payloadtree 91b32ea256940ba9eb367f934f3b5cebe8cca6f1
parent eb0c4e6fcca3baea1639eba58f743b08b64c1303
author Jeremy Kong <jkong@palantir.com> 1686046257 +0100
committer Jeremy Kong <jkong@palantir.com> 1686046257 +0100

Serializable invariant for grcr
uujY  ^https://api.github.com/repos/palantir/atlasdb/commits/255418df70dfda8afa863bb0e2291232d85efa56html_urlShttps://github.com/palantir/atlasdb/commit/255418df70dfda8afa863bb0e2291232d85efa56comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/255418df70dfda8afa863bb0e2291232d85efa56/commentsjG  }(login
jeremyk-91idJZ jC  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jY  'https://api.github.com/users/jeremyk-91jg  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujO  }(jl  
jeremyk-91jn  JZ jC  MDQ6VXNlcjU5NTU1MTA=jp  3https://avatars.githubusercontent.com/u/5955510?v=4jr  h5jY  'https://api.github.com/users/jeremyk-91jg  https://github.com/jeremyk-91ju  1https://api.github.com/users/jeremyk-91/followersjw  >https://api.github.com/users/jeremyk-91/following{/other_user}jy  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j{  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j}  5https://api.github.com/users/jeremyk-91/subscriptionsj  ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j  7https://api.github.com/users/jeremyk-91/received_eventsj  Userj  uparents]}(jA  (eb0c4e6fcca3baea1639eba58f743b08b64c1303jY  ^https://api.github.com/repos/palantir/atlasdb/commits/eb0c4e6fcca3baea1639eba58f743b08b64c1303jg  Shttps://github.com/palantir/atlasdb/commit/eb0c4e6fcca3baea1639eba58f743b08b64c1303uastats}(totalMQ	additionsM	deletionsK:ufiles](}(jA  (a0b673befe9befb91bb08f08e5eec0b122812f4bfilenamehatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/CellReferenceAndValue.javastatusaddedj  Kj  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/255418df70dfda8afa863bb0e2291232d85efa56/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FCellReferenceAndValue.javaraw_urlhttps://github.com/palantir/atlasdb/raw/255418df70dfda8afa863bb0e2291232d85efa56/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FCellReferenceAndValue.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FCellReferenceAndValue.java?ref=255418df70dfda8afa863bb0e2291232d85efa56patchX#  @@ -0,0 +1,31 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface CellReferenceAndValue {
+    TableAndWorkloadCell tableAndWorkloadCell();
+
+    Optional<Integer> value();
+
+    static ImmutableCellReferenceAndValue.Builder builder() {
+        return ImmutableCellReferenceAndValue.builder();
+    }
+}u}(jA  (654648b744fdfa352d033f3727c2bd02e453b459j  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/range/InvalidWitnessedRowsColumnRangeReadTransactionAction.javaj  addedj  K&j  K j  K&j  X  https://github.com/palantir/atlasdb/blob/255418df70dfda8afa863bb0e2291232d85efa56/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2Frange%2FInvalidWitnessedRowsColumnRangeReadTransactionAction.javaj  X  https://github.com/palantir/atlasdb/raw/255418df70dfda8afa863bb0e2291232d85efa56/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2Frange%2FInvalidWitnessedRowsColumnRangeReadTransactionAction.javaj  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2Frange%2FInvalidWitnessedRowsColumnRangeReadTransactionAction.java?ref=255418df70dfda8afa863bb0e2291232d85efa56j  X"  @@ -0,0 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed.range;
+
+import com.palantir.atlasdb.workload.store.CellReferenceAndValue;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedRowsColumnRangeReadTransactionAction extends InvalidWitnessedTransactionAction {
+    WitnessedRowsColumnRangeReadTransactionAction rowColumnRangeRead();
+
+    Optional<CellReferenceAndValue> expectedRead();
+
+    @Value.Lazy
+    default Optional<CellReferenceAndValue> actualRead() {
+        return rowColumnRangeRead().cellReferenceAndValue();
+    }
+
+    static ImmutableInvalidWitnessedRowsColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableInvalidWitnessedRowsColumnRangeReadTransactionAction.builder();
+    }
+}u}(jA  (8fa9393c4190ef35309ea9d8411d02dab081f754j  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/range/WitnessedRowsColumnRangeReadTransactionAction.javaj  modifiedj  K
j  K j  K
j  https://github.com/palantir/atlasdb/blob/255418df70dfda8afa863bb0e2291232d85efa56/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2Frange%2FWitnessedRowsColumnRangeReadTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/255418df70dfda8afa863bb0e2291232d85efa56/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2Frange%2FWitnessedRowsColumnRangeReadTransactionAction.javaj  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2Frange%2FWitnessedRowsColumnRangeReadTransactionAction.java?ref=255418df70dfda8afa863bb0e2291232d85efa56j  X  @@ -16,6 +16,8 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed.range;
 
+import com.palantir.atlasdb.workload.store.CellReferenceAndValue;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
@@ -36,6 +38,14 @@ public interface WitnessedRowsColumnRangeReadTransactionAction extends Witnessed
 
     Optional<Integer> value();
 
+    @Value.Lazy
+    default Optional<CellReferenceAndValue> cellReferenceAndValue() {
+        return cell().map(presentCell -> CellReferenceAndValue.builder()
+                .tableAndWorkloadCell(TableAndWorkloadCell.of(table(), presentCell))
+                .value(value())
+                .build());
+    }
+
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
         return visitor.visit(this);u}(jA  (c74c51b31c20c03df9aeabb4f3dc4fb1eb9c901bj  hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj  modifiedj  Kj  K	j  K
j  https://github.com/palantir/atlasdb/blob/255418df70dfda8afa863bb0e2291232d85efa56/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj  https://github.com/palantir/atlasdb/raw/255418df70dfda8afa863bb0e2291232d85efa56/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=255418df70dfda8afa863bb0e2291232d85efa56j  Xz  @@ -148,21 +148,13 @@ public List<InvalidWitnessedTransactionAction> visit(
                                             rowsColumnRangeReadTransactionAction.specificRow(), tuple._1())))
                             .value(tuple._2())
                             .build());
-            Optional<CellReferenceAndValue> actualRead = rowsColumnRangeReadTransactionAction
-                    .cell()
-                    .map(workloadCell -> CellReferenceAndValue.builder()
-                            .tableAndWorkloadCell(
-                                    TableAndWorkloadCell.of(rowsColumnRangeReadTransactionAction.table(), workloadCell))
-                            .value(rowsColumnRangeReadTransactionAction.value())
-                            .build());
 
             rowColumnRangeQueryManager.trackQueryRead(rowsColumnRangeReadTransactionAction);
 
-            if (!expectedRead.equals(actualRead)) {
+            if (!expectedRead.equals(rowsColumnRangeReadTransactionAction.cellReferenceAndValue())) {
                 return ImmutableList.of(InvalidWitnessedRowsColumnRangeReadTransactionAction.builder()
                         .rowColumnRangeRead(rowsColumnRangeReadTransactionAction)
                         .expectedRead(expectedRead)
-                        .actualRead(actualRead)
                         .build());
             }
             return ImmutableList.of();u}(jA  (1a08488adaa73c999bdbaff9e12819040ddaf37aj  latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj  modifiedj  Kj  K1j  Kj  https://github.com/palantir/atlasdb/blob/255418df70dfda8afa863bb0e2291232d85efa56/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj  https://github.com/palantir/atlasdb/raw/255418df70dfda8afa863bb0e2291232d85efa56/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=255418df70dfda8afa863bb0e2291232d85efa56j  XC  @@ -29,7 +29,9 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.ImmutableWitnessedRowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.range.InvalidWitnessedRowsColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import java.util.ArrayList;
@@ -115,11 +117,8 @@ public void catchesWriteSkew() {
                 .transactionStore(readableTransactionStore)
                 .build();
         SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
-        InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);
-
-        assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
         InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
-                Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
+                assertAndGetFinalTransactionInvalidity(invalidTransactions, transactions);
 
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(
@@ -161,7 +160,7 @@ public void handlesDeletes() {
     }
 
     @Test
-    public void handlesRowColumnRangeScansCoveringRange() {
+    public void readsRowRangeToExhaustion() {
         UUID iteratorId = UUID.randomUUID();
 
         List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
@@ -186,7 +185,7 @@ public void handlesRowColumnRangeScansCoveringRange() {
     }
 
     @Test
-    public void handlesRowColumnRangeScansOnlyReadingRelevantValues() {
+    public void onlyReadsRelevantValuesInRowColumnRangeScans() {
         UUID iteratorId = UUID.randomUUID();
 
         List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
@@ -211,9 +210,165 @@ public void handlesRowColumnRangeScansOnlyReadingRelevantValues() {
     }
 
     @Test
-    public void handlesRowColumnRangeScanLocalWriteSemantics() {
-        UUID createdBeforeWriteReadingValue = UUID.randomUUID();
-        UUID createdBeforeWriteNotReadingValue = UUID.randomUUID();
+    public void identifiesMissingCellFromRowColumnRangeRead() {
+        UUID iteratorId = UUID.randomUUID();
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .createRowColumnRangeIterator(iteratorId, 5, 0, 99)
+                .rowColumnRangeExhaustion(iteratorId, 5)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                assertAndGetFinalTransactionInvalidity(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isEqualTo(InvalidWitnessedRowsColumnRangeReadTransactionAction.builder()
+                        .rowColumnRangeRead(createWitnessedRowColumnRangeExhaustion(iteratorId, 5))
+                        .expectedRead(createCellReferenceAndValue(5, 10, 15))
+                        .build());
+    }
+
+    @Test
+    public void identifiesIncorrectCellFromRowColumnRangeRead() {
+        UUID iteratorId = UUID.randomUUID();
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .createRowColumnRangeIterator(iteratorId, 5, 0, 99)
+                .rowColumnRangeRead(iteratorId, 5, 8, 15)
+                .rowColumnRangeExhaustion(iteratorId, 5)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
+
+        // Note: This assertion may be slightly too sensitive, depending on how we continue verification after
+        // discovering an error.
+        assertThat(invalidWitnessedTransaction.invalidActions())
+                .containsExactly(
+                        InvalidWitnessedRowsColumnRangeReadTransactionAction.builder()
+                                .rowColumnRangeRead(createWitnessedRowColumnRangeRead(iteratorId, 5, 8, 15))
+                                .expectedRead(createCellReferenceAndValue(5, 10, 15))
+                                .build(),
+                        InvalidWitnessedRowsColumnRangeReadTransactionAction.builder()
+                                .rowColumnRangeRead(createWitnessedRowColumnRangeExhaustion(iteratorId, 5))
+                                .expectedRead(createCellReferenceAndValue(5, 10, 15))
+                                .build());
+    }
+
+    @Test
+    public void identifiesIncorrectValueFromRowColumnRangeRead() {
+        UUID iteratorId = UUID.randomUUID();
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .createRowColumnRangeIterator(iteratorId, 5, 0, 99)
+                .rowColumnRangeRead(iteratorId, 5, 10, 77777)
+                .rowColumnRangeExhaustion(iteratorId, 5)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                assertAndGetFinalTransactionInvalidity(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isEqualTo(InvalidWitnessedRowsColumnRangeReadTransactionAction.builder()
+                        .rowColumnRangeRead(createWitnessedRowColumnRangeRead(iteratorId, 5, 10, 77777))
+                        .expectedRead(createCellReferenceAndValue(5, 10, 15))
+                        .build());
+    }
+
+    @Test
+    public void identifiesAdditionalCellFromRowColumnRangeRead() {
+        UUID iteratorId = UUID.randomUUID();
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 20, 25)
+                .endTransaction()
+                .startTransaction()
+                .createRowColumnRangeIterator(iteratorId, 5, 15, 99)
+                .rowColumnRangeRead(iteratorId, 5, 10, 15)
+                .rowColumnRangeRead(iteratorId, 5, 20, 25)
+                .rowColumnRangeExhaustion(iteratorId, 5)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                assertAndGetFinalTransactionInvalidity(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isEqualTo(InvalidWitnessedRowsColumnRangeReadTransactionAction.builder()
+                        .rowColumnRangeRead(createWitnessedRowColumnRangeRead(iteratorId, 5, 10, 15))
+                        .expectedRead(createCellReferenceAndValue(5, 20, 25))
+                        .build());
+    }
+
+    @Test
+    public void permitsUndefinedRowColumnRangeScanBehaviourFollowingLocalConcurrentModification() {
+        UUID readingInsertedValue = UUID.randomUUID();
+        UUID notReadingInsertedValue = UUID.randomUUID();
+        UUID readingCorruptedData = UUID.randomUUID();
+
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .createRowColumnRangeIterator(readingInsertedValue, 5, 0, 99)
+                .createRowColumnRangeIterator(notReadingInsertedValue, 5, 0, 99)
+                .createRowColumnRangeIterator(readingCorruptedData, 5, 0, 99)
+                .write(5, 5, 85)
+                .rowColumnRangeRead(readingInsertedValue, 5, 5, 85)
+                .rowColumnRangeRead(readingInsertedValue, 5, 10, 15)
+                .rowColumnRangeExhaustion(readingInsertedValue, 5)
+                .rowColumnRangeRead(notReadingInsertedValue, 5, 10, 15)
+                .rowColumnRangeExhaustion(notReadingInsertedValue, 5)
+                .rowColumnRangeRead(readingCorruptedData, 5, 7171717, 3141592)
+                .rowColumnRangeExhaustion(readingCorruptedData, 5)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void includesPrecedingLocalWritesInRowColumnRangeScans() {
         UUID createdAfterWriteReadingValue = UUID.randomUUID();
         UUID createdAfterWriteNotReadingValue = UUID.randomUUID();
 
@@ -223,16 +378,9 @@ public void handlesRowColumnRangeScanLocalWriteSemantics() {
                 .write(5, 10, 15)
                 .endTransaction()
                 .startTransaction()
-                .createRowColumnRangeIterator(createdBeforeWriteReadingValue, 5, 0, 99)
-                .createRowColumnRangeIterator(createdBeforeWriteNotReadingValue, 5, 0, 99)
                 .write(5, 5, 85)
                 .createRowColumnRangeIterator(createdAfterWriteReadingValue, 5, 0, 99)
                 .createRowColumnRangeIterator(createdAfterWriteNotReadingValue, 5, 0, 99)
-                .rowColumnRangeRead(createdBeforeWriteReadingValue, 5, 5, 85)
-                .rowColumnRangeRead(createdBeforeWriteReadingValue, 5, 10, 15)
-                .rowColumnRangeExhaustion(createdBeforeWriteReadingValue, 5)
-                .rowColumnRangeRead(createdBeforeWriteNotReadingValue, 5, 10, 15)
-                .rowColumnRangeExhaustion(createdBeforeWriteNotReadingValue, 5)
                 .rowColumnRangeRead(createdAfterWriteReadingValue, 5, 5, 85)
                 .rowColumnRangeRead(createdAfterWriteReadingValue, 5, 10, 15)
                 .rowColumnRangeExhaustion(createdAfterWriteReadingValue, 5)
@@ -246,47 +394,49 @@ public void handlesRowColumnRangeScanLocalWriteSemantics() {
                 .build();
         SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
 
-        InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);
-
-        assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
         InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
-                Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
+                assertAndGetFinalTransactionInvalidity(invalidTransactions, transactions);
 
         assertThat(invalidWitnessedTransactionAction)
-                .isInstanceOfSatisfying(
-                        InvalidWitnessedRowsColumnRangeReadTransactionAction.class,
-                        invalidWitnessedRowsColumnRangeReadTransactionAction -> {
-                            assertThat(invalidWitnessedRowsColumnRangeReadTransactionAction.rowColumnRangeRead())
-                                    .satisfies(rowColumnRangeRead -> assertThat(rowColumnRangeRead.iteratorIdentifier())
-                                            .isEqualTo(createdAfterWriteNotReadingValue));
-
-                            assertThat(invalidWitnessedRowsColumnRangeReadTransactionAction.expectedRead())
-                                    .contains(CellReferenceAndValue.builder()
-                                            .tableAndWorkloadCell(
-                                                    TableAndWorkloadCell.of("table", ImmutableWorkloadCell.of(5, 5)))
-                                            .value(85)
-                                            .build());
-                            assertThat(invalidWitnessedRowsColumnRangeReadTransactionAction.actualRead())
-                                    .contains(CellReferenceAndValue.builder()
-                                            .tableAndWorkloadCell(
-                                                    TableAndWorkloadCell.of("table", ImmutableWorkloadCell.of(5, 10)))
-                                            .value(15)
-                                            .build());
-                        });
+                .isEqualTo(InvalidWitnessedRowsColumnRangeReadTransactionAction.builder()
+                        .rowColumnRangeRead(
+                                createWitnessedRowColumnRangeRead(createdAfterWriteNotReadingValue, 5, 10, 15))
+                        .expectedRead(createCellReferenceAndValue(5, 5, 85))
+                        .build());
     }
 
-    @Test
-    public void identifiesMissingCellFromRowColumnRangeRead() {
-        // TODO
+    private static InvalidWitnessedTransactionAction assertAndGetFinalTransactionInvalidity(
+            List<InvalidWitnessedTransaction> invalidTransactions, List<WitnessedTransaction> transactions) {
+        InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);
+
+        assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
+        return Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
     }
 
-    @Test
-    public void identifiesIncorrectCellFromRowColumnRangeRead() {
-        // TODO
+    private static ImmutableWitnessedRowsColumnRangeReadTransactionAction createWitnessedRowColumnRangeExhaustion(
+            UUID iteratorId, int specificRow) {
+        return WitnessedRowsColumnRangeReadTransactionAction.builder()
+                .iteratorIdentifier(iteratorId)
+                .specificRow(specificRow)
+                .table("table")
+                .build();
     }
 
-    @Test
-    public void identifiesIncorrectValueFromRowColumnRangeRead() {
-        // TODO
+    private static ImmutableWitnessedRowsColumnRangeReadTransactionAction createWitnessedRowColumnRangeRead(
+            UUID iteratorId, int specificRow, int column, int value) {
+        return WitnessedRowsColumnRangeReadTransactionAction.builder()
+                .iteratorIdentifier(iteratorId)
+                .specificRow(specificRow)
+                .table("table")
+                .cell(ImmutableWorkloadCell.of(specificRow, column))
+                .value(value)
+                .build();
+    }
+
+    private static CellReferenceAndValue createCellReferenceAndValue(int specificRow, int column, int value) {
+        return CellReferenceAndValue.builder()
+                .tableAndWorkloadCell(TableAndWorkloadCell.of("table", ImmutableWorkloadCell.of(specificRow, column)))
+                .value(value)
+                .build();
     }
 }ueu"      (c2770b780d8edafc8ef55b8b308cf76d26612c24}(sha(c2770b780d8edafc8ef55b8b308cf76d26612c24node_idEC_kwDOAjP5fdoAKGMyNzcwYjc4MGQ4ZWRhZmM4ZWY1NWI4YjMwOGNmNzZkMjY2MTJjMjQcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-06-29T14:47:09Zu	committer}(j  David Schlosnaglej  davids@palantir.comj  2023-07-09T19:17:09ZumessageAdd generated changelog entriestree}(j  (3f8e383ffcfdd5a38e6bb218867c0631892489a2url`https://api.github.com/repos/palantir/atlasdb/git/trees/3f8e383ffcfdd5a38e6bb218867c0631892489a2uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c2770b780d8edafc8ef55b8b308cf76d26612c24
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmSrB7UACgkQR9hsJ74Q
0l9hzQf8CScKapgRV0IV6if6diHntssqBRpioatl2qBUrFPq+tmv2PS6noyreqsz
Fqdt5nuQG692WWEL0Wus1cKaqIMWnibJN0jVauUajR8VlZdp0a3GBF5GSQx0FWtV
0lFVK0fhcd5Q2N0I57xWYzCYkLYU5thtbvlHSpe8WJntw61fCDHu3YVHU6lANfMV
LSGsL4G++RaGU382DiEt+KlzxcGeLEHC+tkzzwSAS9BL/kkh/qksw4oS6EoZ9iSz
NDVPk2kZKk7/P2In2neCwiTUqQoFIM88PnOqw/9xnI9tI82yjaoKFwDpN5Igquxq
buVVBEGmd/pj8ewj1lmaDIUv229K+Q==
=GzAs
-----END PGP SIGNATURE-----payloadX  tree 3f8e383ffcfdd5a38e6bb218867c0631892489a2
parent 30f3c21ccbae7dfbc74864e0b1d50d70ff882405
author svc-changelog <svc-changelog@palantir.com> 1688050029 +0000
committer David Schlosnagle <davids@palantir.com> 1688930229 -0400

Add generated changelog entriesuuj  ^https://api.github.com/repos/palantir/atlasdb/commits/c2770b780d8edafc8ef55b8b308cf76d26612c24html_urlShttps://github.com/palantir/atlasdb/commit/c2770b780d8edafc8ef55b8b308cf76d26612c24comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c2770b780d8edafc8ef55b8b308cf76d26612c24/commentsj  }(login
svc-changelogidJ#j  MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j  *https://api.github.com/users/svc-changelogj   https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj  }(j  schlosnaj  MBj  MDQ6VXNlcjU0NTk0j  1https://avatars.githubusercontent.com/u/54594?v=4j	  h5j  %https://api.github.com/users/schlosnaj  https://github.com/schlosnaj  /https://api.github.com/users/schlosna/followersj  <https://api.github.com/users/schlosna/following{/other_user}j  5https://api.github.com/users/schlosna/gists{/gist_id}j  <https://api.github.com/users/schlosna/starred{/owner}{/repo}j  3https://api.github.com/users/schlosna/subscriptionsj  *https://api.github.com/users/schlosna/orgsj  +https://api.github.com/users/schlosna/reposj  6https://api.github.com/users/schlosna/events{/privacy}j  5https://api.github.com/users/schlosna/received_eventsj  Userj   uparents]}(j  (30f3c21ccbae7dfbc74864e0b1d50d70ff882405j  ^https://api.github.com/repos/palantir/atlasdb/commits/30f3c21ccbae7dfbc74864e0b1d50d70ff882405j  Shttps://github.com/palantir/atlasdb/commit/30f3c21ccbae7dfbc74864e0b1d50d70ff882405uastats}(totalK	additionsK	deletionsK ufiles]}(j  (ba1c3212ee4a0e25e95569fe719b7b61bd3eec15filename$changelog/@unreleased/pr-6650.v2.ymlstatusaddedj:  Kj;  K changesKblob_url|https://github.com/palantir/atlasdb/blob/c2770b780d8edafc8ef55b8b308cf76d26612c24/changelog%2F%40unreleased%2Fpr-6650.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/c2770b780d8edafc8ef55b8b308cf76d26612c24/changelog%2F%40unreleased%2Fpr-6650.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6650.v2.yml?ref=c2770b780d8edafc8ef55b8b308cf76d26612c24patch@@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Optimize ThriftObjectSizeUtils::getCollectionSize for random access
+    lists
+  links:
+  - https://github.com/palantir/atlasdb/pull/6650uau(c73f259185c058edf9e8b450e7b531a15b3de526}(sha(c73f259185c058edf9e8b450e7b531a15b3de526node_idEC_kwDOAjP5fdoAKGM3M2YyNTkxODVjMDU4ZWRmOWU4YjQ1MGU3YjUzMWExNWIzZGU1MjYcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-04-05T15:50:30Zu	committer}(jW  GitHubjY  noreply@github.comj[  2023-04-05T15:50:30Zumessage+[0.780.x] Use undertow 2.2.24.Final (#6505)tree}(jO  (94bc0c7b166878c023038f384a5680cfe2f66471url`https://api.github.com/repos/palantir/atlasdb/git/trees/94bc0c7b166878c023038f384a5680cfe2f66471ujg  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c73f259185c058edf9e8b450e7b531a15b3de526
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkLZjGCRBK7hj4Ov3rIwAAdAgIAIvCqO4m+JS8TrgE5jt1GZXR
8R6+MvhX1vU59EwITlhBzbXwcIjjuL4V/IJh5rgYEplMLMDQpDSnHklp4r3RVVp2
3Miu6iZlq9LiXIaBS1VCC3hjLsG9mFLHF5VPvUlXF5kQyak4A2/HalrphmgsB8wk
TchdEGcRpyk1a91JM3VTNnu37hUb0PO1aD3ozVgRUbti8a6R57CZdITlZlvP0GMf
zjZN88gt0A34i3Tv+ItEnNuIGpK04Pb3OyXQhyUHHAHJwJkzcaoRlX1pldAuiOGm
3/Fj6a8VY85liyToszwQ0ZieddHbLpK5kW6hCbbdysnccdaQD62bqrhq/8YG4AU=
=9kdX
-----END PGP SIGNATURE-----
payloadX  tree 94bc0c7b166878c023038f384a5680cfe2f66471
parent 4501d2dabce3419f779dd65220a89942820fd75f
author David Schlosnagle <davids@palantir.com> 1680709830 -0400
committer GitHub <noreply@github.com> 1680709830 -0400

[0.780.x] Use undertow 2.2.24.Final (#6505)

uujg  ^https://api.github.com/repos/palantir/atlasdb/commits/c73f259185c058edf9e8b450e7b531a15b3de526html_urlShttps://github.com/palantir/atlasdb/commit/c73f259185c058edf9e8b450e7b531a15b3de526comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c73f259185c058edf9e8b450e7b531a15b3de526/commentsjU  }(loginschlosnaidMBjQ  MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jg  %https://api.github.com/users/schlosnaju  https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj]  }(jz  web-flowj|  J/jQ  MDQ6VXNlcjE5ODY0NDQ3j~  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5jg  %https://api.github.com/users/web-flowju  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(jO  (4501d2dabce3419f779dd65220a89942820fd75fjg  ^https://api.github.com/repos/palantir/atlasdb/commits/4501d2dabce3419f779dd65220a89942820fd75fju  Shttps://github.com/palantir/atlasdb/commit/4501d2dabce3419f779dd65220a89942820fd75fuastats}(totalK	additionsK	deletionsKufiles](}(jO  (c77c5a29c759c6406e1675eae8bdf5ac1b762c17filename
versions.lockstatusmodifiedj  Kj  KchangesK
blob_url_https://github.com/palantir/atlasdb/blob/c73f259185c058edf9e8b450e7b531a15b3de526/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/c73f259185c058edf9e8b450e7b531a15b3de526/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=c73f259185c058edf9e8b450e7b531a15b3de526patchX  @@ -185,7 +185,7 @@ io.netty:netty-transport-native-unix-common:4.1.85.Final (7 constraints: 1f78440
 io.netty:netty-transport-rxtx:4.1.85.Final (1 constraints: 000b22cf)
 io.netty:netty-transport-sctp:4.1.85.Final (1 constraints: 000b22cf)
 io.netty:netty-transport-udt:4.1.85.Final (1 constraints: 000b22cf)
-io.undertow:undertow-core:2.3.0.Final (2 constraints: 011d72f3)
+io.undertow:undertow-core:2.2.24.Final (2 constraints: 361dd006)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
@@ -276,11 +276,11 @@ org.hibernate:hibernate-validator:4.3.0.Final (2 constraints: ee248003)
 org.hibernate.validator:hibernate-validator:6.2.4.Final (4 constraints: 9a4748ce)
 org.immutables:value:2.8.8 (1 constraints: 060bd5af)
 org.javassist:javassist:3.29.1-GA (3 constraints: b52d27ad)
-org.jboss.logging:jboss-logging:3.4.3.Final (5 constraints: 3b55b666)
+org.jboss.logging:jboss-logging:3.4.1.Final (5 constraints: 39550e65)
 org.jboss.marshalling:jboss-marshalling:2.1.1.Final (1 constraints: 1e07ab5a)
-org.jboss.threads:jboss-threads:3.5.0.Final (4 constraints: db316abc)
-org.jboss.xnio:xnio-api:3.8.8.Final (2 constraints: 791a6546)
-org.jboss.xnio:xnio-nio:3.8.8.Final (1 constraints: c90dd230)
+org.jboss.threads:jboss-threads:3.5.0.Final (4 constraints: d731aebb)
+org.jboss.xnio:xnio-api:3.8.7.Final (2 constraints: 771a3146)
+org.jboss.xnio:xnio-nio:3.8.7.Final (1 constraints: c80dcb30)
 org.jdbi:jdbi3-core:3.30.0 (2 constraints: 0e10d5bf)
 org.jdbi:jdbi3-sqlobject:3.30.0 (1 constraints: 38053d3b)
 org.jetbrains:annotations:23.0.0 (3 constraints: 45257f15)u}(jO  (5978dacbfd673657c29e13a697da7b87dca5188cj  versions.propsj  modifiedj  Kj  Kj  Kj  `https://github.com/palantir/atlasdb/blob/c73f259185c058edf9e8b450e7b531a15b3de526/versions.propsj  _https://github.com/palantir/atlasdb/raw/c73f259185c058edf9e8b450e7b531a15b3de526/versions.propsj  rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=c73f259185c058edf9e8b450e7b531a15b3de526j  X2  @@ -46,7 +46,7 @@ commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
 io.netty:* = 4.1.85.Final
-io.undertow:undertow-core = 2.3.0.Final
+io.undertow:* = 2.2.24.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2ueu(d4f15c965b5d5c8ddaef2960069b178b5f63dc2a}(sha(d4f15c965b5d5c8ddaef2960069b178b5f63dc2anode_idEC_kwDOAjP5fdoAKGQ0ZjE1Yzk2NWI1ZDVjOGRkYWVmMjk2MDA2OWIxNzhiNWY2M2RjMmEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-13T16:01:08Zu	committer}(j  GitHubj  noreply@github.comj  2023-07-13T16:01:08ZumessageM[Antithesis | Range Queries] Part 10: ColumnValue -> Column*AND*Value (#6619)tree}(j  (76858fd8576bb8e31337561ae6f3ddfa3057ef6curl`https://api.github.com/repos/palantir/atlasdb/git/trees/76858fd8576bb8e31337561ae6f3ddfa3057ef6cuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJksB/ECRBK7hj4Ov3rIwAA/VIIACUeO49+bNdOGTHt1Zyqta26
4+10fi+NnExvvuE35TGHiS9SJ5svZUn4b1m/beyhxA1RJOZA5y1FQGoNJS8pxWSx
iBcOdbcJF1Zdqc26ucfwvBfXvXmzidurmliONmoD3nS5ywLr9jbaLionJmzn3vVj
ZJNr9DIlhi3PD2dTqNiH+LUg2DKS6EL7NkGIKMnBmSR0uxf74J1+bbaux+gbqymV
9NXyYhR8oWTgYS027rM551tIvtiQUxHPCgZUnNvAxIyCz2LFGUiXmxfXYeIypzCY
cGYfUJlA7GCnM0UKg457QC840r4sdlAqUPCrCT91X3su5aHO4u5htJusdC/tAFc=
=Zghf
-----END PGP SIGNATURE-----
payloadX  tree 76858fd8576bb8e31337561ae6f3ddfa3057ef6c
parent 4f9b28d748e25dcae7a8763f65d685acf2aa82d4
author Jeremy Kong <jkong@palantir.com> 1689264068 +0100
committer GitHub <noreply@github.com> 1689264068 +0000

[Antithesis | Range Queries] Part 10: ColumnValue -> Column*AND*Value (#6619)

 uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/d4f15c965b5d5c8ddaef2960069b178b5f63dc2ahtml_urlShttps://github.com/palantir/atlasdb/commit/d4f15c965b5d5c8ddaef2960069b178b5f63dc2acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j
  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j  (4f9b28d748e25dcae7a8763f65d685acf2aa82d4j  ^https://api.github.com/repos/palantir/atlasdb/commits/4f9b28d748e25dcae7a8763f65d685acf2aa82d4j  Shttps://github.com/palantir/atlasdb/commit/4f9b28d748e25dcae7a8763f65d685acf2aa82d4uastats}(totalK	additionsKE	deletionsKBufiles](}(j  (7688afda0d1babfe3e30b9cb5e95cdef3667ba38filenameaatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ColumnAndValue.javastatusrenamedj0  Kj1  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnAndValue.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnAndValue.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnAndValue.java?ref=d4f15c965b5d5c8ddaef2960069b178b5f63dc2apatchX  @@ -19,14 +19,14 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface ColumnValue {
+public interface ColumnAndValue {
     @Value.Parameter
     int column();
 
     @Value.Parameter
     int value();
 
-    static ColumnValue of(int column, int value) {
-        return ImmutableColumnValue.of(column, value);
+    static ColumnAndValue of(int column, int value) {
+        return ImmutableColumnAndValue.of(column, value);
     }
 }previous_filename^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ColumnValue.javau}(j  (ecbd656f159c09a8e2390dc3345bd413af2a1881j6  oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javaj8  modifiedj0  Kj1  Kj:  Kj;  https://github.com/palantir/atlasdb/blob/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj=  https://github.com/palantir/atlasdb/raw/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=d4f15c965b5d5c8ddaef2960069b178b5f63dc2ajA  X  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import java.util.List;
@@ -32,7 +32,7 @@ public interface InteractiveTransaction {
 
     void delete(String table, WorkloadCell workloadCell);
 
-    List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection);
+    List<ColumnAndValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection);
 
     List<WitnessedTransactionAction> witness();
 }u}(j  (6be89ac577d426cb259ff547d6ed9c8b7a14da63j6  |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowColumnRangeReadTransactionAction.javaj8  modifiedj0  Kj1  Kj:  Kj;  https://github.com/palantir/atlasdb/blob/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj=  https://github.com/palantir/atlasdb/raw/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.java?ref=d4f15c965b5d5c8ddaef2960069b178b5f63dc2ajA  XU  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import java.util.List;
 import org.immutables.value.Value;
@@ -42,7 +42,7 @@ default <T> T accept(TransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-    default WitnessedRowColumnRangeReadTransactionAction witness(List<ColumnValue> columnsAndValues) {
+    default WitnessedRowColumnRangeReadTransactionAction witness(List<ColumnAndValue> columnsAndValues) {
         return WitnessedRowColumnRangeReadTransactionAction.builder()
                 .originalQuery(this)
                 .columnsAndValues(columnsAndValues)u}(j  (c3f046a1384b93cbb56e4130900d91a35a72ff09j6  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedRowColumnRangeReadTransactionAction.javaj8  modifiedj0  Kj1  Kj:  Kj;  https://github.com/palantir/atlasdb/blob/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.javaj=  https://github.com/palantir/atlasdb/raw/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.javaj?  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.java?ref=d4f15c965b5d5c8ddaef2960069b178b5f63dc2ajA  X  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import java.util.List;
@@ -26,7 +26,7 @@
 public interface InvalidWitnessedRowColumnRangeReadTransactionAction extends InvalidWitnessedTransactionAction {
     WitnessedRowColumnRangeReadTransactionAction witness();
 
-    List<ColumnValue> expectedColumnsAndValues();
+    List<ColumnAndValue> expectedColumnsAndValues();
 
     @Value.Check
     default void check() {u}(j  (1d2e0f348f3a7c6192c356190679330cf4db63d4j6  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javaj8  modifiedj0  Kj1  Kj:  Kj;  https://github.com/palantir/atlasdb/blob/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj=  https://github.com/palantir/atlasdb/raw/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj?  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=d4f15c965b5d5c8ddaef2960069b178b5f63dc2ajA  X:  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
@@ -32,7 +32,7 @@ public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedT
 
     // This is a List rather than a Set or Map because the ordering in which the columns and values are returned is
     // important (it must match the ordering specified by the contract of row column range reads).
-    List<ColumnValue> columnsAndValues();
+    List<ColumnAndValue> columnsAndValues();
 
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
@@ -43,7 +43,7 @@ default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
     default void check() {
         Set<Integer> knownColumns = new HashSet<>();
         Set<Integer> duplicateColumns = columnsAndValues().stream()
-                .map(ColumnValue::column)
+                .map(ColumnAndValue::column)
                 .filter(column -> !knownColumns.add(column))
                 .collect(Collectors.toSet());
         Preconditions.checkState(u}(j  (16d6781c2707fdd741a02ac1bb0a6552f8711c0fj6  atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javaj8  modifiedj0  Kj1  Kj:  Kj;  https://github.com/palantir/atlasdb/blob/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj=  https://github.com/palantir/atlasdb/raw/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj?  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=d4f15c965b5d5c8ddaef2960069b178b5f63dc2ajA  Xg  @@ -21,7 +21,7 @@
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.logsafe.SafeArg;
@@ -33,7 +33,7 @@ public class WitnessedRowColumnRangeReadTransactionActionTest {
     @Test
     public void canCreateWitness() {
         assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
+                        .addColumnsAndValues(ColumnAndValue.of(1, 5), ColumnAndValue.of(5, 1), ColumnAndValue.of(3, 3))
                         .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                 .table("foo")
                                 .row(1)
@@ -46,12 +46,12 @@ public void canCreateWitness() {
 
     @Test
     public void cannotCreateWitnessWithDuplicateColumns() {
-        List<ColumnValue> columnsAndValues = ImmutableList.of(
-                ColumnValue.of(1, 5),
-                ColumnValue.of(5, 1),
-                ColumnValue.of(1, 3),
-                ColumnValue.of(5, 8),
-                ColumnValue.of(9, 99));
+        List<ColumnAndValue> columnsAndValues = ImmutableList.of(
+                ColumnAndValue.of(1, 5),
+                ColumnAndValue.of(5, 1),
+                ColumnAndValue.of(1, 3),
+                ColumnAndValue.of(5, 8),
+                ColumnAndValue.of(9, 99));
 
         assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
                         .addAllColumnsAndValues(columnsAndValues)u}(j  (86ec63b122472809aa991124a48d9c725b6eb031j6  hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj8  modifiedj0  Kj1  Kj:  Kj;  https://github.com/palantir/atlasdb/blob/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj=  https://github.com/palantir/atlasdb/raw/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=d4f15c965b5d5c8ddaef2960069b178b5f63dc2ajA  X%  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
 import com.palantir.atlasdb.workload.transaction.RangeQueryReader;
@@ -100,7 +100,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(
         @Override
         public Optional<InvalidWitnessedTransactionAction> visit(
                 WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
-            List<ColumnValue> expectedReads =
+            List<ColumnAndValue> expectedReads =
                     rangeQueryReader.readRange(rowColumnRangeReadTransactionAction.originalQuery());
             if (!expectedReads.equals(rowColumnRangeReadTransactionAction.columnsAndValues())) {
                 return Optional.of(InvalidWitnessedRowColumnRangeReadTransactionAction.builder()u}(j  (9e5e992be69401120b03691540fd57f1a95b93b8j6  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj8  modifiedj0  Kj1  Kj:  Kj;  https://github.com/palantir/atlasdb/blob/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj=  https://github.com/palantir/atlasdb/raw/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=d4f15c965b5d5c8ddaef2960069b178b5f63dc2ajA  X  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.invariant;
 
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.SimpleRangeQueryReader;
@@ -98,7 +98,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransact
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(
             WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
-        List<ColumnValue> expectedReads = SimpleRangeQueryReader.createForSnapshot(readView)
+        List<ColumnAndValue> expectedReads = SimpleRangeQueryReader.createForSnapshot(readView)
                 .readRange(rowColumnRangeReadTransactionAction.originalQuery());
         if (!expectedReads.equals(rowColumnRangeReadTransactionAction.columnsAndValues())) {
             return Optional.of(InvalidWitnessedRowColumnRangeReadTransactionAction.builder()u}(j  (a9210a5d7d0c098da089049338a91d83c08b6b53j6  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj8  modifiedj0  Kj1  Kj:  Kj;  https://github.com/palantir/atlasdb/blob/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj=  https://github.com/palantir/atlasdb/raw/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=d4f15c965b5d5c8ddaef2960069b178b5f63dc2ajA  Xu  @@ -101,7 +101,7 @@ public void delete(String table, WorkloadCell workloadCell) {
     }
 
     @Override
-    public List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection) {
+    public List<ColumnAndValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection) {
         return run(
                 tableReference -> {
                     // Having a non-configurable batch hint is a bit iffy, but suffices as this won't be used in
@@ -115,11 +115,11 @@ public List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSel
                             iterators.size() == 1,
                             "Expected exactly one iterator to be returned",
                             SafeArg.of("iteratorsReturned", iterators.size()));
-                    List<ColumnValue> columnsAndValues = EntryStream.of(iterators.get(AtlasDbUtils.toAtlasKey(row)))
+                    List<ColumnAndValue> columnsAndValues = EntryStream.of(iterators.get(AtlasDbUtils.toAtlasKey(row)))
                             .mapKeys(Cell::getColumnName)
                             .mapKeys(AtlasDbUtils::fromAtlasColumn)
                             .mapValues(AtlasDbUtils::fromAtlasValue)
-                            .map(entry -> ColumnValue.of(entry.getKey(), entry.getValue()))
+                            .map(entry -> ColumnAndValue.of(entry.getKey(), entry.getValue()))
                             .collect(Collectors.toList());
                     witnessedTransactionActions.add(RowColumnRangeReadTransactionAction.builder()
                             .table(table)u}(j  (60d3e000f2076c608fd8208ae840c3a81c246f9dj6  eatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/RangeQueryReader.javaj8  modifiedj0  Kj1  Kj:  Kj;  https://github.com/palantir/atlasdb/blob/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.javaj=  https://github.com/palantir/atlasdb/raw/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.javaj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.java?ref=d4f15c965b5d5c8ddaef2960069b178b5f63dc2ajA  X  @@ -16,9 +16,9 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import java.util.List;
 
 public interface RangeQueryReader {
-    List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction);
+    List<ColumnAndValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction);
 }u}(j  (5862ed5f30754a3c64cc032f5b08ffe3e9a56b22j6  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReader.javaj8  modifiedj0  Kj1  Kj:  Kj;  https://github.com/palantir/atlasdb/blob/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj=  https://github.com/palantir/atlasdb/raw/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.java?ref=d4f15c965b5d5c8ddaef2960069b178b5f63dc2ajA  X  @@ -19,7 +19,7 @@
 import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.invariant.ValueAndMaybeTimestamp;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -51,7 +51,7 @@ public static RangeQueryReader createForSnapshot(
     }
 
     @Override
-    public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction) {
+    public List<ColumnAndValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction) {
         Map<TableAndWorkloadCell, Optional<Integer>> allValues = rawValueSupplier.get();
         if (allValues.size() > LARGE_HISTORY_LIMIT) {
             log.error(
@@ -74,8 +74,8 @@ public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTrans
                 })
                 .filterValues(Optional::isPresent)
                 .mapValues(Optional::get)
-                .map(entry -> ColumnValue.of(entry._1().cell().column(), entry._2()))
-                .sortBy(ColumnValue::column)
+                .map(entry -> ColumnAndValue.of(entry._1().cell().column(), entry._2()))
+                .sortBy(ColumnAndValue::column)
                 .toJavaList();
     }
 }u}(j  (696e20bfa4e91d86751f7c482791d8f7445b3348j6  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflows.javaj8  modifiedj0  Kj1  Kj:  Kj;  https://github.com/palantir/atlasdb/blob/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaj=  https://github.com/palantir/atlasdb/raw/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.java?ref=d4f15c965b5d5c8ddaef2960069b178b5f63dc2ajA  XU  @@ -18,7 +18,7 @@
 
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
@@ -132,7 +132,7 @@ private Map<Integer, Optional<Integer>> getAccountBalances(InteractiveTransactio
                                     .endColumnExclusive(workflowConfiguration.numberOfAccounts())
                                     .build())
                     .stream()
-                    .collect(Collectors.toMap(ColumnValue::column, ColumnValue::value));
+                    .collect(Collectors.toMap(ColumnAndValue::column, ColumnAndValue::value));
             return IntStream.range(0, workflowConfiguration.numberOfAccounts())
                     .boxed()
                     .collect(Collectors.toMap(u}(j  (4b3679c7c82dc1219afbf7dcf075bce3b3ace5c3j6  latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj8  modifiedj0  Kj1  Kj:  K!j;  https://github.com/palantir/atlasdb/blob/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj=  https://github.com/palantir/atlasdb/raw/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=d4f15c965b5d5c8ddaef2960069b178b5f63dc2ajA  XP  @@ -20,7 +20,7 @@
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterables;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
@@ -214,7 +214,7 @@ public void readsRowRangeToExhaustion() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(15, 21)))
+                        ImmutableList.of(ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -238,7 +238,8 @@ public void incorporatesLocalWritesIntoRowColumnRangeQueries() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(15, 21), ColumnValue.of(20, 34)))
+                        ImmutableList.of(
+                                ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21), ColumnAndValue.of(20, 34)))
                 .write(5, 10, 99)
                 .write(5, 13, 24)
                 .delete(5, 15)
@@ -247,10 +248,10 @@ public void incorporatesLocalWritesIntoRowColumnRangeQueries() {
                         5,
                         ColumnRangeSelection.builder().build(),
                         ImmutableList.of(
-                                ColumnValue.of(10, 99),
-                                ColumnValue.of(13, 24),
-                                ColumnValue.of(18, 36),
-                                ColumnValue.of(20, 34)))
+                                ColumnAndValue.of(10, 99),
+                                ColumnAndValue.of(13, 24),
+                                ColumnAndValue.of(18, 36),
+                                ColumnAndValue.of(20, 34)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -274,7 +275,7 @@ public void identifiesUnexpectedMissingCellInRowColumnRangeRead() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(20, 34)))
+                        ImmutableList.of(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -287,7 +288,8 @@ public void identifiesUnexpectedMissingCellInRowColumnRangeRead() {
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
                                 action.expectedColumnsAndValues())
-                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(15, 21), ColumnValue.of(20, 34)));
+                        .containsExactly(
+                                ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21), ColumnAndValue.of(20, 34)));
     }
 
     @Test
@@ -302,7 +304,8 @@ public void identifiesUnexpectedAdditionalCellInRowColumnRangeRead() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(15, 24), ColumnValue.of(20, 34)))
+                        ImmutableList.of(
+                                ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 24), ColumnAndValue.of(20, 34)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -315,7 +318,7 @@ public void identifiesUnexpectedAdditionalCellInRowColumnRangeRead() {
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
                                 action.expectedColumnsAndValues())
-                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
+                        .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
     }
 
     @Test
@@ -330,7 +333,7 @@ public void identifiesIncorrectCellValuesInRowColumnRangeRead() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(10, 8888888), ColumnValue.of(20, 34)))
+                        ImmutableList.of(ColumnAndValue.of(10, 8888888), ColumnAndValue.of(20, 34)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -343,7 +346,7 @@ public void identifiesIncorrectCellValuesInRowColumnRangeRead() {
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
                                 action.expectedColumnsAndValues())
-                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
+                        .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
     }
 
     @Test
@@ -358,7 +361,7 @@ public void identifiesIncorrectOrderingInRowColumnRangeRead() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(20, 34), ColumnValue.of(10, 15)))
+                        ImmutableList.of(ColumnAndValue.of(20, 34), ColumnAndValue.of(10, 15)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -371,7 +374,7 @@ public void identifiesIncorrectOrderingInRowColumnRangeRead() {
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
                                 action.expectedColumnsAndValues())
-                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
+                        .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
     }
 
     private static InvalidWitnessedTransactionAction getSingularFinalInvalidAction(u}(j  (1dd888be2cbe216b733496bdef850a4e96a0dc2cj6  hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javaj8  modifiedj0  Kj1  Kj:  Kj;  https://github.com/palantir/atlasdb/blob/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj=  https://github.com/palantir/atlasdb/raw/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=d4f15c965b5d5c8ddaef2960069b178b5f63dc2ajA  X*  @@ -20,7 +20,7 @@
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterables;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
@@ -190,8 +190,8 @@ public void rowColumnRangeScanNotExpectedToReadColumnsCommittingAfterOurStart()
                         5,
                         ColumnRangeSelection.builder().build(),
                         ImmutableList.of(
-                                ColumnValue.of(10, WorkloadTestHelpers.VALUE_ONE),
-                                ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE + WorkloadTestHelpers.VALUE_TWO)))
+                                ColumnAndValue.of(10, WorkloadTestHelpers.VALUE_ONE),
+                                ColumnAndValue.of(30, WorkloadTestHelpers.VALUE_ONE + WorkloadTestHelpers.VALUE_TWO)))
                 .endTransaction(21L)
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -215,8 +215,8 @@ public void rowColumnRangeScanFlagsColumnCommittingAfterOurStartAsViolating() {
                         5,
                         ColumnRangeSelection.builder().build(),
                         ImmutableList.of(
-                                ColumnValue.of(20, WorkloadTestHelpers.VALUE_TWO),
-                                ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
+                                ColumnAndValue.of(20, WorkloadTestHelpers.VALUE_TWO),
+                                ColumnAndValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
                 .endTransaction(21L)
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -242,11 +242,11 @@ public void rowColumnRangeScanFlagsColumnCommittingAfterOurStartAsViolating() {
                                                             .build())
                                                     .build())
                                             .columnsAndValues(ImmutableList.of(
-                                                    ColumnValue.of(20, WorkloadTestHelpers.VALUE_TWO),
-                                                    ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
+                                                    ColumnAndValue.of(20, WorkloadTestHelpers.VALUE_TWO),
+                                                    ColumnAndValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
                                             .build());
                             assertThat(invalidRowColumnRangeRead.expectedColumnsAndValues())
-                                    .containsExactly(ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE));
+                                    .containsExactly(ColumnAndValue.of(30, WorkloadTestHelpers.VALUE_ONE));
                         });
     }
 }u}(j  (266e55cdc424d018bda3ec031339e3e34cfa9eafj6  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj8  modifiedj0  Kj1  Kj:  Kj;  https://github.com/palantir/atlasdb/blob/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj=  https://github.com/palantir/atlasdb/raw/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=d4f15c965b5d5c8ddaef2960069b178b5f63dc2ajA  X9  @@ -97,7 +97,7 @@ public void witnessRecordsColumnRangeActions() {
                                         .row(WORKLOAD_CELL_TWO.key())
                                         .columnRangeSelection(ColumnRangeSelection.all())
                                         .build())
-                                .addColumnsAndValues(ColumnValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
+                                .addColumnsAndValues(ColumnAndValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
                                 .build());
     }
 
@@ -131,7 +131,7 @@ public void allRelevantCellsAreRecordedForFullColumnScan() {
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
                                         .isEqualTo(IntStream.range(0, iterationCount)
-                                                .mapToObj(column -> ColumnValue.of(column, VALUE_ONE))
+                                                .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
                                                 .collect(Collectors.toList()))));
     }
 
@@ -159,7 +159,7 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
                                         .isEqualTo(IntStream.range(startInclusive, endExclusive)
-                                                .mapToObj(column -> ColumnValue.of(column, VALUE_ONE))
+                                                .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
                                                 .collect(Collectors.toList()))));
     }
 u}(j  (ffb3e2fbc7c39ab5d7801cf2deec03b703b46b32j6  oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReaderTest.javaj8  modifiedj0  Kj1  Kj:  Kj;  https://github.com/palantir/atlasdb/blob/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj=  https://github.com/palantir/atlasdb/raw/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.java?ref=d4f15c965b5d5c8ddaef2960069b178b5f63dc2ajA  X  @@ -19,7 +19,7 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import io.vavr.collection.HashMap;
@@ -75,8 +75,8 @@ public void readsCellsFromRangeInOrder() {
                                 .build())
                         .build()))
                 .containsExactly(
-                        ColumnValue.of(2, WorkloadTestHelpers.VALUE_ONE),
-                        ColumnValue.of(3, WorkloadTestHelpers.VALUE_ONE));
+                        ColumnAndValue.of(2, WorkloadTestHelpers.VALUE_ONE),
+                        ColumnAndValue.of(3, WorkloadTestHelpers.VALUE_ONE));
     }
 
     @Testu}(j  (7b09c57f6cdecf3cc15a946a5fe8f7c9e5648a49j6  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj8  modifiedj0  Kj1  Kj:  Kj;  https://github.com/palantir/atlasdb/blob/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj=  https://github.com/palantir/atlasdb/raw/d4f15c965b5d5c8ddaef2960069b178b5f63dc2a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj?  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=d4f15c965b5d5c8ddaef2960069b178b5f63dc2ajA  X  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
@@ -94,7 +94,7 @@ public WitnessedTransactionBuilder delete(Integer row, Integer column) {
         }
 
         public WitnessedTransactionBuilder rowColumnRangeRead(
-                Integer row, ColumnRangeSelection columnRangeSelection, List<ColumnValue> valuesRead) {
+                Integer row, ColumnRangeSelection columnRangeSelection, List<ColumnAndValue> valuesRead) {
             RowColumnRangeReadTransactionAction transactionAction = RowColumnRangeReadTransactionAction.builder()
                     .table(table)
                     .row(row)ueu(3caaa5aa4b2114192d1af78611a4375bb1aa5559}(sha(3caaa5aa4b2114192d1af78611a4375bb1aa5559node_idEC_kwDOAjP5fdoAKDNjYWFhNWFhNGIyMTE0MTkyZDFhZjc4NjExYTQzNzViYjFhYTU1NTkcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-06-07T15:26:13Zu	committer}(j  svc-autoreleasej  -pd-foundry-infrastructure-notify@palantir.comj  2023-06-07T15:26:13ZumessageAutorelease 0.870.0

[skip ci]tree}(j  (42d245cd1d485827e0ea378409333cdcb98ea9dburl`https://api.github.com/repos/palantir/atlasdb/git/trees/42d245cd1d485827e0ea378409333cdcb98ea9dbuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3caaa5aa4b2114192d1af78611a4375bb1aa5559
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmSAoZoACgkQhbrR8ip7mDArXQD/fxb6PEGGw00xYwqchN87Z3EA
Ql/Rmpr5Q0cEv356fiIBAPgvNOl7qe7AFsNsy8WMDf5BTNiq8uwrIdHBKBzk/l1r
=gSHn
-----END PGP SIGNATURE-----
payloadX0  tree 42d245cd1d485827e0ea378409333cdcb98ea9db
parent a9cb94bda75b0b6d32178898765be0a58bfb6613
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1686151573 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1686151573 +0000

Autorelease 0.870.0

[skip ci]uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/3caaa5aa4b2114192d1af78611a4375bb1aa5559html_urlShttps://github.com/palantir/atlasdb/commit/3caaa5aa4b2114192d1af78611a4375bb1aa5559comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3caaa5aa4b2114192d1af78611a4375bb1aa5559/commentsj  }(loginsvc-autoreleaseidJ(j  MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j  ,https://api.github.com/users/svc-autoreleasej  "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj  }(j  svc-autoreleasej  J(j  MDQ6VXNlcjUxNzE4MzQ2j  4https://avatars.githubusercontent.com/u/51718346?v=4j  h5j  ,https://api.github.com/users/svc-autoreleasej  "https://github.com/svc-autoreleasej  6https://api.github.com/users/svc-autorelease/followersj  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j  :https://api.github.com/users/svc-autorelease/subscriptionsj  1https://api.github.com/users/svc-autorelease/orgsj  2https://api.github.com/users/svc-autorelease/reposj	  =https://api.github.com/users/svc-autorelease/events{/privacy}j  <https://api.github.com/users/svc-autorelease/received_eventsj
  Userj  uparents]}(j  (a9cb94bda75b0b6d32178898765be0a58bfb6613j  ^https://api.github.com/repos/palantir/atlasdb/commits/a9cb94bda75b0b6d32178898765be0a58bfb6613j  Shttps://github.com/palantir/atlasdb/commit/a9cb94bda75b0b6d32178898765be0a58bfb6613uastats}(totalK 	additionsK 	deletionsK ufiles]}(j  (351dc558cfb12f3027ca880f55c00742ee516cbdfilename changelog/0.870.0/pr-6613.v2.ymlstatusrenamedj)  K j*  K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/3caaa5aa4b2114192d1af78611a4375bb1aa5559/changelog%2F0.870.0%2Fpr-6613.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/3caaa5aa4b2114192d1af78611a4375bb1aa5559/changelog%2F0.870.0%2Fpr-6613.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.870.0%2Fpr-6613.v2.yml?ref=3caaa5aa4b2114192d1af78611a4375bb1aa5559previous_filename$changelog/@unreleased/pr-6613.v2.ymluau(67569286baba58570d498ce0b0f60770b0bd203c}(sha(67569286baba58570d498ce0b0f60770b0bd203cnode_idEC_kwDOAjP5fdoAKDY3NTY5Mjg2YmFiYTU4NTcwZDQ5OGNlMGIwZjYwNzcwYjBiZDIwM2Mcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-08T11:13:54Zu	committer}(jF  
Sam KramerjH  skramer@palantir.comjJ  2023-08-08T11:13:54Zumessagelooking goodtree}(j>  (6ada798b9bcfaa1718faf58e630ad9139a83c476url`https://api.github.com/repos/palantir/atlasdb/git/trees/6ada798b9bcfaa1718faf58e630ad9139a83c476ujV  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/67569286baba58570d498ce0b0f60770b0bd203c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTSI3IACgkQmPPOpKR4
XS2bWggArNL+b/0zga+oCHFIh3XZx5NFEqoHOu0uEiU1BHKg2zg9+ealcvTDXN1I
M6CDjoiRiD6Ko9ug4zDhnvCgLFOgVhvhYS4vVqwfkLSG+FM2nkU4OxDfbSiQnsts
+KEZvqZxBZUN5j2hi0voaL0tgnMKKJOkMWAXFideAMmbauv75G8qHVoeAM3ihD/4
1n32Bw2FdysyzhsaL6TdGjqB7sRTpS/DEq2JUkQ+60KTuFnBoMFZY0OYXeT/bIfo
Ohj554aAgRHFshHtDfb6Aa+VPdvOLvGrSHOySdgHRgpo+Y/mYGoTSpBNC/BK0bUF
nefFTj3lGuYH3MnIhKvzmmwZzHP/WA==
=/Af5
-----END PGP SIGNATURE-----payloadtree 6ada798b9bcfaa1718faf58e630ad9139a83c476
parent 35493b67271b60af4acdfd4dc03dcab0beca32d9
author Sam Kramer <skramer@palantir.com> 1691493234 +0100
committer Sam Kramer <skramer@palantir.com> 1691493234 +0100

looking good
uujV  ^https://api.github.com/repos/palantir/atlasdb/commits/67569286baba58570d498ce0b0f60770b0bd203chtml_urlShttps://github.com/palantir/atlasdb/commit/67569286baba58570d498ce0b0f60770b0bd203ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/67569286baba58570d498ce0b0f60770b0bd203c/commentsjD  }(login
Sam-KrameridJ^2_ j@  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jV  'https://api.github.com/users/Sam-Kramerjd  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujL  }(ji  
Sam-Kramerjk  J^2_ j@  MDQ6VXNlcjYyMzg4MTQ=jm  3https://avatars.githubusercontent.com/u/6238814?v=4jo  h5jV  'https://api.github.com/users/Sam-Kramerjd  https://github.com/Sam-Kramerjr  1https://api.github.com/users/Sam-Kramer/followersjt  >https://api.github.com/users/Sam-Kramer/following{/other_user}jv  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jx  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jz  5https://api.github.com/users/Sam-Kramer/subscriptionsj|  ,https://api.github.com/users/Sam-Kramer/orgsj~  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}/     j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj  uparents]}(j>  (35493b67271b60af4acdfd4dc03dcab0beca32d9jV  ^https://api.github.com/repos/palantir/atlasdb/commits/35493b67271b60af4acdfd4dc03dcab0beca32d9jd  Shttps://github.com/palantir/atlasdb/commit/35493b67271b60af4acdfd4dc03dcab0beca32d9uastats}(totalK 	additionsK	deletionsKufiles]}(j>  (6414096438753e5e0cfdc8355250f1e6fbaa0b2efilenamectimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchEventIntegrationTest.javastatusmodifiedj  Kj  KchangesK blob_urlhttps://github.com/palantir/atlasdb/blob/67569286baba58570d498ce0b0f60770b0bd203c/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/67569286baba58570d498ce0b0f60770b0bd203c/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.java?ref=67569286baba58570d498ce0b0f60770b0bd203cpatchX	  @@ -421,13 +421,29 @@ private static Map<TableReference, Map<Cell, ValueAndChangeMetadata>> generateVa
                 .flatMap(Function.identity())
                 .collect(Collectors.toList());
 
-        return cells.stream()
-                .collect(Collectors.toMap(
-                        cell -> (random.nextBoolean()) ? TABLE_REF : TABLE_2_REF,
-                        cell -> ImmutableMap.of(
-                                cell,
-                                ValueAndChangeMetadata.of(
-                                        PtBytes.toBytes(random.nextInt()), generateRandomChangeMetadata(random)))));
+        List<Cell> tableOneCells =
+                cells.stream().filter(cell -> random.nextBoolean()).collect(Collectors.toList());
+        List<Cell> tableTwoCells =
+                cells.stream().filter(cell -> !tableOneCells.contains(cell)).collect(Collectors.toList());
+
+        return ImmutableMap.<TableReference, Map<Cell, ValueAndChangeMetadata>>builder()
+                .put(
+                        TABLE_REF,
+                        tableOneCells.stream()
+                                .collect(Collectors.toMap(
+                                        Function.identity(),
+                                        _cell -> ValueAndChangeMetadata.of(
+                                                PtBytes.toBytes(random.nextInt()),
+                                                generateRandomChangeMetadata(random)))))
+                .put(
+                        TABLE_2_REF,
+                        tableTwoCells.stream()
+                                .collect(Collectors.toMap(
+                                        Function.identity(),
+                                        _cell -> ValueAndChangeMetadata.of(
+                                                PtBytes.toBytes(random.nextInt()),
+                                                generateRandomChangeMetadata(random)))))
+                .buildOrThrow();
     }
 
     private static LockRequestMetadata getLockRequestForValues(
@@ -443,7 +459,7 @@ private static LockRequestMetadata getLockRequestForValues(
                 }
             }
         }
-        return LockRequestMetadata.of(locks.build());
+        return LockRequestMetadata.of(locks.buildOrThrow());
     }
 
     @Testuau(e8d47fc74a079feaadcb59fb3836f9a060d0bddd}(sha(e8d47fc74a079feaadcb59fb3836f9a060d0bdddnode_idEC_kwDOAjP5fdoAKGU4ZDQ3ZmM3NGEwNzlmZWFhZGNiNTlmYjM4MzZmOWEwNjBkMGJkZGQcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-07-24T19:46:57Zu	committer}(j  Tom Petraccaj  tpetracca@palantir.comj  2023-07-24T19:48:16Zumessagetimelock and cassandratree}(j  (f3ae35dbf2666ceb1ab2b2c5618a2a49482d5269url`https://api.github.com/repos/palantir/atlasdb/git/trees/f3ae35dbf2666ceb1ab2b2c5618a2a49482d5269uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e8d47fc74a079feaadcb59fb3836f9a060d0bddd
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEHTC5rqjQ6qmsb7sZRnUGJaXvqFMFAmS+1YAACgkQRnUGJaXv
qFNeNQf/bPBrhjhpzEvjOCzsHizd3RwfIbpbFTFcXoYfK4OMlqt5arT4ul3qNFO3
9GojwfLSyQAThySBVqI93tx0eaghqE/TNnwaCpAsFfENd+gknDTWU6IV42B0n+lE
++hbdS7f7/x2LF2WGFdqLxOWL+84AxYnfAkIAh1qD1p0SgUYCVHej72TE7YxLi6V
hNKqAu05b5B0D/S/waEIcwthIaTLw1xj7jOY19mTpUCWuSrqFvER7xX9akUHiq7Y
fowlG9s5CHvxxEAYLG0+xG3FiqHmuYWVRJg/A5G/aIFkK5sIgmGY7lQOlmMKARWA
ltEQTCq7JtnRNyei5igz+wYB7SXZCA==
=cc+R
-----END PGP SIGNATURE-----payloadtree f3ae35dbf2666ceb1ab2b2c5618a2a49482d5269
parent 0f4be7858850d55c104989b4cf2637dadc36c954
author Tom Petracca <tpetracca@palantir.com> 1690228017 -0400
committer Tom Petracca <tpetracca@palantir.com> 1690228096 -0400

timelock and cassandra
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/e8d47fc74a079feaadcb59fb3836f9a060d0bdddhtml_urlShttps://github.com/palantir/atlasdb/commit/e8d47fc74a079feaadcb59fb3836f9a060d0bdddcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e8d47fc74a079feaadcb59fb3836f9a060d0bddd/commentsj  }(login	tpetraccaidJ& j  MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5j  &https://api.github.com/users/tpetraccaj  https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminuj  }(j  	tpetraccaj  J& j  MDQ6VXNlcjI1NTQzMjg=j  3https://avatars.githubusercontent.com/u/2554328?v=4j  h5j  &https://api.github.com/users/tpetraccaj  https://github.com/tpetraccaj  0https://api.github.com/users/tpetracca/followersj  =https://api.github.com/users/tpetracca/following{/other_user}j  6https://api.github.com/users/tpetracca/gists{/gist_id}j  =https://api.github.com/users/tpetracca/starred{/owner}{/repo}j  4https://api.github.com/users/tpetracca/subscriptionsj  +https://api.github.com/users/tpetracca/orgsj  ,https://api.github.com/users/tpetracca/reposj  7https://api.github.com/users/tpetracca/events{/privacy}j  6https://api.github.com/users/tpetracca/received_eventsj  Userj  uparents]}(j  (0f4be7858850d55c104989b4cf2637dadc36c954j  ^https://api.github.com/repos/palantir/atlasdb/commits/0f4be7858850d55c104989b4cf2637dadc36c954j  Shttps://github.com/palantir/atlasdb/commit/0f4be7858850d55c104989b4cf2637dadc36c954uastats}(totalK	additionsK	deletionsKufiles](}(j  (21fed136618090c281f8a5228d1da2b9b72eeb1dfilenameMatlasdb-ete-tests/docker-compose.multi-client-with-timelock-and-cassandra.ymlstatusrenamedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e8d47fc74a079feaadcb59fb3836f9a060d0bddd/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-timelock-and-cassandra.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/e8d47fc74a079feaadcb59fb3836f9a060d0bddd/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-timelock-and-cassandra.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-timelock-and-cassandra.yml?ref=e8d47fc74a079feaadcb59fb3836f9a060d0bdddpatchX  @@ -20,7 +20,7 @@ services:
 
   ete1:
     build: .
-    command: [bash, -c, 'cp var/conf/atlasdb-ete.timelock.cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console']
+    command: [bash, -c, 'cp var/conf/atlasdb-ete.timelock-and-cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console']
     ports:
       - "3828"
     depends_on:
@@ -29,11 +29,13 @@ services:
     environment:
       - ME=ete1
 
-  ete-cli:
+  ete2:
     build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.timelock.cassandra.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
+    command: [bash, -c, 'cp var/conf/atlasdb-ete.timelock-and-cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console']
+    ports:
+      - "3828"
     depends_on:
-      - ete1
+      - cassandra
+      - timelock
     environment:
-      - ME=ete1
+      - ME=ete2previous_filename7atlasdb-ete-tests/docker-compose.timelock.cassandra.ymlu}(j  (f46fae135144900f14845de3c8c7efc5b0b06e24j  Datlasdb-ete-tests/docker/conf/atlasdb-ete.timelock-and-cassandra.ymlj  renamedj  K j  K j!  K j"  https://github.com/palantir/atlasdb/blob/e8d47fc74a079feaadcb59fb3836f9a060d0bddd/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.timelock-and-cassandra.ymlj$  https://github.com/palantir/atlasdb/raw/e8d47fc74a079feaadcb59fb3836f9a060d0bddd/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.timelock-and-cassandra.ymlj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.timelock-and-cassandra.yml?ref=e8d47fc74a079feaadcb59fb3836f9a060d0bdddj*  @atlasdb-ete-tests/docker/conf/atlasdb-ete.timelock.cassandra.ymlu}(j  (fd548eccd7aa3df49c48c4f0423288626d9b68b3j  qatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/MultiClientWithTimelockAndCassandraTestSuite.javaj  modifiedj  Kj  Kj!  Kj"  https://github.com/palantir/atlasdb/blob/e8d47fc74a079feaadcb59fb3836f9a060d0bddd/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithTimelockAndCassandraTestSuite.javaj$  https://github.com/palantir/atlasdb/raw/e8d47fc74a079feaadcb59fb3836f9a060d0bddd/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithTimelockAndCassandraTestSuite.javaj&  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithTimelockAndCassandraTestSuite.java?ref=e8d47fc74a079feaadcb59fb3836f9a060d0bdddj(  Xc  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,10 +13,12 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suites;
 
 import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.containers.CassandraEnvironment;
+import com.palantir.atlasdb.ete.EteSetup;
+import com.palantir.atlasdb.ete.TodoEteTest;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;
@@ -31,13 +33,11 @@
     //    MultipleSchemaVersionsCoordinationEteTest.class,
     //    LockWithTimelockEteTest.class
 })
-public class MultiClientWithTimelockAndCassandra extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");
-
+public class MultiClientWithTimelockAndCassandraTestSuite extends EteSetup {
     @ClassRule
     public static final RuleChain COMPOSITION_SETUP = EteSetup.setupCompositionWithTimelock(
-            MultiClientWithTimelockAndCassandra.class,
-            "docker-compose.timelock.cassandra.yml",
-            CLIENTS,
+            MultiClientWithTimelockAndCassandraTestSuite.class,
+            "docker-compose.multi-client-with-timelock-and-cassandra.yml",
+            TestSuites.MULTI_CLIENT,
             CassandraEnvironment.get());
 }ueu(db9f71760bb11121bad6da1676bd35d66af6ab97}(sha(db9f71760bb11121bad6da1676bd35d66af6ab97node_idEC_kwDOAjP5fdoAKGRiOWY3MTc2MGJiMTExMjFiYWQ2ZGExNjc2YmQzNWQ2NmFmNmFiOTccommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T14:08:43Zu	committer}(jF  
Ahmed AlouanejH  aalouane@palantir.comjJ  2023-05-15T14:08:43Zumessagetry removing load workspacetree}(j>  (130f8afc0e9a61eed1eee88df70b7068eaa0b864url`https://api.github.com/repos/palantir/atlasdb/git/trees/130f8afc0e9a61eed1eee88df70b7068eaa0b864ujV  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/db9f71760bb11121bad6da1676bd35d66af6ab97
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiPOsACgkQPlMHVIT1
yhpt0wgArKgPmZk1favr21NOMGm419ldnKrpL7i23KH7Q62t98X4zInwgx3j+wWz
cC490QxgvH77j3HWwPsttlXJczaCFawzt8GUmdz4Bq1JNwu10mxP+s0Ux9JjaO4K
YuO/s3iVhm3MZ7Vl52xKEezY7oJtTrq2owefCC8XHNsWE1st0V5ymVkm7b4zs3eJ
TG2UMYPy2h/0JQwSDvGVd0lL0xsWKLlFfU5tG2CKCEsa4pc3Ezl1gha6IuYq5UXP
ISZB2ztEtMnu3IdIf1q6J7qDFnQG3Gdez2ErnHrx8mtqTmvloKU97hF5R5oZEnoY
FbKPGDcAQm3P9Ovym8aBWLnKVZXd5w==
=JnFD
-----END PGP SIGNATURE-----payloadtree 130f8afc0e9a61eed1eee88df70b7068eaa0b864
parent 7b9ddf867bba22bc8cc91b30b4fff3b81bc248ce
author Ahmed Alouane <aalouane@palantir.com> 1684159723 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684159723 +0100

try removing load workspace
uujV  ^https://api.github.com/repos/palantir/atlasdb/commits/db9f71760bb11121bad6da1676bd35d66af6ab97html_urlShttps://github.com/palantir/atlasdb/commit/db9f71760bb11121bad6da1676bd35d66af6ab97comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/db9f71760bb11121bad6da1676bd35d66af6ab97/commentsjD  }(loginergo14idJj@  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jV  #https://api.github.com/users/ergo14jd  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujL  }(ji  ergo14jk  Jj@  MDQ6VXNlcjMwOTAzNzM2jm  4https://avatars.githubusercontent.com/u/30903736?v=4jo  h5jV  #https://api.github.com/users/ergo14jd  https://github.com/ergo14jr  -https://api.github.com/users/ergo14/followersjt  :https://api.github.com/users/ergo14/following{/other_user}jv  3https://api.github.com/users/ergo14/gists{/gist_id}jx  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jz  1https://api.github.com/users/ergo14/subscriptionsj|  (https://api.github.com/users/ergo14/orgsj~  )https://api.github.com/users/ergo14/reposj  4https://api.github.com/users/ergo14/events{/privacy}j  3https://api.github.com/users/ergo14/received_eventsj  Userj  uparents]}(j>  (7b9ddf867bba22bc8cc91b30b4fff3b81bc248cejV  ^https://api.github.com/repos/palantir/atlasdb/commits/7b9ddf867bba22bc8cc91b30b4fff3b81bc248cejd  Shttps://github.com/palantir/atlasdb/commit/7b9ddf867bba22bc8cc91b30b4fff3b81bc248ceuastats}(totalK	additionsK 	deletionsKufiles]}(j>  (693650171650402e0bfc1de553dc2a999eb3d230filename.circleci/config.ymlstatusmodifiedj  K j  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/db9f71760bb11121bad6da1676bd35d66af6ab97/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/db9f71760bb11121bad6da1676bd35d66af6ab97/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=db9f71760bb11121bad6da1676bd35d66af6ab97patchX  @@ -115,7 +115,6 @@ jobs:
       CIRCLE_TEST_REPORTS: /tmp/test-reports
       CIRCLE_ARTIFACTS: /tmp/artifacts
     steps:
-      - attach_workspace: { at: . }
       - add_ssh_keys:
           fingerprints:
             - "b6:ba:27:37:84:8f:eb:b0:ee:0b:7c:c1:fc:18:32:5f"uau(58a1ddb69aed3709b2e0a758df74aa2fd4412383}(sha(58a1ddb69aed3709b2e0a758df74aa2fd4412383node_idEC_kwDOAjP5fdoAKDU4YTFkZGI2OWFlZDM3MDliMmUwYTc1OGRmNzRhYTJmZDQ0MTIzODMcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-06-27T15:52:13Zu	committer}(j  svc-autoreleasej  -pd-foundry-infrastructure-notify@palantir.comj  2023-06-27T15:52:13ZumessageAutorelease 0.879.0

[skip ci]tree}(j  (6b46e88f3643441bc5fee6734b284095808d3364url`https://api.github.com/repos/palantir/atlasdb/git/trees/6b46e88f3643441bc5fee6734b284095808d3364uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/58a1ddb69aed3709b2e0a758df74aa2fd4412383
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmSbBbMACgkQhbrR8ip7mDA5lAEA+2pQefIlH4SPiHQ3+XBhAC9K
U1wJb2SsDG+0spb3NHoBAO2xdK3+KkytM2DY4/+bsjnc5MAGXFvaAWa0xpEtIhAK
=jMYR
-----END PGP SIGNATURE-----
payloadX0  tree 6b46e88f3643441bc5fee6734b284095808d3364
parent b1d2944fd1c9432160882009a24a5a305a60f4bc
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1687881133 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1687881133 +0000

Autorelease 0.879.0

[skip ci]uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/58a1ddb69aed3709b2e0a758df74aa2fd4412383html_urlShttps://github.com/palantir/atlasdb/commit/58a1ddb69aed3709b2e0a758df74aa2fd4412383comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/58a1ddb69aed3709b2e0a758df74aa2fd4412383/commentsj  }(loginsvc-autoreleaseidJ(j  MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j  ,https://api.github.com/users/svc-autoreleasej  "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj  }(j  svc-autoreleasej  J(j  MDQ6VXNlcjUxNzE4MzQ2j  4https://avatars.githubusercontent.com/u/51718346?v=4j  h5j  ,https://api.github.com/users/svc-autoreleasej  "https://github.com/svc-autoreleasej  6https://api.github.com/users/svc-autorelease/followersj  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j  :https://api.github.com/users/svc-autorelease/subscriptionsj  1https://api.github.com/users/svc-autorelease/orgsj  2https://api.github.com/users/svc-autorelease/reposj  =https://api.github.com/users/svc-autorelease/events{/privacy}j  <https://api.github.com/users/svc-autorelease/received_eventsj  Userj  uparents]}(j  (b1d2944fd1c9432160882009a24a5a305a60f4bcj  ^https://api.github.com/repos/palantir/atlasdb/commits/b1d2944fd1c9432160882009a24a5a305a60f4bcj  Shttps://github.com/palantir/atlasdb/commit/b1d2944fd1c9432160882009a24a5a305a60f4bcuastats}(totalK 	additionsK 	deletionsK ufiles]}(j  (9914bf81d7b0081790e5b357d977f35947ad8b60filename changelog/0.879.0/pr-6626.v2.ymlstatusrenamedj  K j  K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/58a1ddb69aed3709b2e0a758df74aa2fd4412383/changelog%2F0.879.0%2Fpr-6626.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/58a1ddb69aed3709b2e0a758df74aa2fd4412383/changelog%2F0.879.0%2Fpr-6626.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.879.0%2Fpr-6626.v2.yml?ref=58a1ddb69aed3709b2e0a758df74aa2fd4412383previous_filename$changelog/@unreleased/pr-6626.v2.ymluau(4c22d328051f67d72da78e9bbe5ab56a4c60d7ad}(sha(4c22d328051f67d72da78e9bbe5ab56a4c60d7adnode_idEC_kwDOAjP5fdoAKDRjMjJkMzI4MDUxZjY3ZDcyZGE3OGU5YmJlNWFiNTZhNGM2MGQ3YWQcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-10T19:17:09Zu	committer}(j4  
Ahmed Alouanej6  aalouane@palantir.comj8  2023-05-10T19:17:09Zumessageswitch 8 and 12tree}(j,  (c016c04a18859e4c45abcf5cee19ba7af39b07a9url`https://api.github.com/repos/palantir/atlasdb/git/trees/c016c04a18859e4c45abcf5cee19ba7af39b07a9ujD  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4c22d328051f67d72da78e9bbe5ab56a4c60d7ad
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRb7bYACgkQPlMHVIT1
yhrwMwf/enB1QjAAJbwB9Nfkk1GfyRZlqpBbZri4GDUO6YwIvoFUJWAAedUZDomJ
QVZnLl/6Fh/lVPBqA2h4Lv4QL6PIYP0r1zluU4W1vgOIYPygAS1nB04cp8KJyk6R
mQIYgCQ74LTQ5dPNAwg0KS32WHo9nFEdIh5dWp2YY/D4aUQo9B654WNk9sy3cc7d
RzX6NElPwJ4d7HT7aQC8jWaTN30hCoJ0+DT+2HbnVFSD+pRXThXt3PaZAy3UPKUy
o2YqLWBLgPxr1UOeoTk3XXeEgKD/1mD8qbQso784rFmlqDiNAVYXcWhJmF8Pk6lu
+DsQdS8UB88tBhY6g8vExgdSHTCx5g==
=ZK9f
-----END PGP SIGNATURE-----payloadtree c016c04a18859e4c45abcf5cee19ba7af39b07a9
parent a6e7a209fb18d6a59538bccff32d1928868e1015
author Ahmed Alouane <aalouane@palantir.com> 1683746229 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1683746229 +0100

switch 8 and 12
uujD  ^https://api.github.com/repos/palantir/atlasdb/commits/4c22d328051f67d72da78e9bbe5ab56a4c60d7adhtml_urlShttps://github.com/palantir/atlasdb/commit/4c22d328051f67d72da78e9bbe5ab56a4c60d7adcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4c22d328051f67d72da78e9bbe5ab56a4c60d7ad/commentsj2  }(loginergo14idJj.  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jD  #https://api.github.com/users/ergo14jR  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj:  }(jW  ergo14jY  Jj.  MDQ6VXNlcjMwOTAzNzM2j[  4https://avatars.githubusercontent.com/u/30903736?v=4j]  h5jD  #https://api.github.com/users/ergo14jR  https://github.com/ergo14j`  -https://api.github.com/users/ergo14/followersjb  :https://api.github.com/users/ergo14/following{/other_user}jd  3https://api.github.com/users/ergo14/gists{/gist_id}jf  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jh  1https://api.github.com/users/ergo14/subscriptionsjj  (https://api.github.com/users/ergo14/orgsjl  )https://api.github.com/users/ergo14/reposjn  4https://api.github.com/users/ergo14/events{/privacy}jp  3https://api.github.com/users/ergo14/received_eventsjr  Userjt  uparents]}(j,  (a6e7a209fb18d6a59538bccff32d1928868e1015jD  ^https://api.github.com/repos/palantir/atlasdb/commits/a6e7a209fb18d6a59538bccff32d1928868e1015jR  Shttps://github.com/palantir/atlasdb/commit/a6e7a209fb18d6a59538bccff32d1928868e1015uastats}(totalK		additionsK	deletionsKufiles](}(j,  (bdb90f731e165d6773fc26d545a593ac7515acb1filename.circleci/config.ymlstatusmodifiedj  Kj  KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/4c22d328051f67d72da78e9bbe5ab56a4c60d7ad/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/4c22d328051f67d72da78e9bbe5ab56a4c60d7ad/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=4c22d328051f67d72da78e9bbe5ab56a4c60d7adpatchX}  @@ -143,7 +143,8 @@ workflows:
           matrix:
             alias: test-no-tl
             parameters:
-              suite: [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13]
+              # intentionally excluding 12 (TimeLock migration ETE test) from this collection
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13]
           filters:
             tags:
               only: /.*/
@@ -152,7 +153,7 @@ workflows:
           matrix:
             alias: test-tl
             parameters:
-              suite: [8]
+              suite: [12]
           filters:
             branches:
               only: /(tlmete.*|develop)/u}(j,  (0cba7557c2ef646b994530c99f0b2b1214f44ddbj  %scripts/circle-ci/run-circle-tests.shj  modifiedj  Kj  Kj  Kj  {https://github.com/palantir/atlasdb/blob/4c22d328051f67d72da78e9bbe5ab56a4c60d7ad/scripts%2Fcircle-ci%2Frun-circle-tests.shj  zhttps://github.com/palantir/atlasdb/raw/4c22d328051f67d72da78e9bbe5ab56a4c60d7ad/scripts%2Fcircle-ci%2Frun-circle-tests.shj  https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=4c22d328051f67d72da78e9bbe5ab56a4c60d7adj  X3  @@ -27,15 +27,15 @@ CONTAINER_6=(':timelock-server:suiteTest')
 
 CONTAINER_7=(':timelock-server:stressTest')
 
-CONTAINER_8=(':atlasdb-ete-tests:timeLockMigrationTest')
+CONTAINER_8=(':atlasdb-cassandra-integration-tests:testSubset2')
 
 CONTAINER_9=(':atlasdb-ete-tests:oracleTest')
 
 CONTAINER_10=('atlasdb-dbkvs-tests:oracleTest')
 
 CONTAINER_11=(':atlasdb-impl-shared:check' )
 
-CONTAINER_12=(':atlasdb-cassandra-integration-tests:testSubset2')
+CONTAINER_12=(':atlasdb-ete-tests:timeLockMigrationTest')
 
 CONTAINER_13=('compileJava' 'compileTestJava')
 ueu(f656bd5a188322c47d93629f63b872d0cf877dd4}(sha(f656bd5a188322c47d93629f63b872d0cf877dd4node_idEC_kwDOAjP5fdoAKGY2NTZiZDVhMTg4MzIyYzQ3ZDkzNjI5ZjYzYjg3MmQwY2Y4NzdkZDQcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-16T13:16:58Zu	committer}(j  
Ahmed Alouanej  aalouane@palantir.comj  2023-05-16T13:16:58Zumessage&workspace only for compile/compileTesttree}(j  (665f900bacdb53aecbb1e8c3f59ee24f0351d50eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/665f900bacdb53aecbb1e8c3f59ee24f0351d50euj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f656bd5a188322c47d93629f63b872d0cf877dd4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRjgkoACgkQPlMHVIT1
yhqhzgf/RihvodBISbgAO3oUm5eSBaegnG10RJySMV3EACyK4SnlfBTmTHrFe/2w
e0tc+FE4fcsY+Jbf0QoSamsFOS4Ig31vh+4RP6lhaWk+p3M+5eqkh2zaIO0gMJj3
W3JXHpigghYQXRPF5GgpztaJtlIGhwSlqB7is+fvXQvKcJEI70kVnpnbi/aeoYX8
fst8M5OKK+/2m3ib8KkdOuZBahR3LqJT4N52uNcXybpkJsw5bdOqJHwYbTou6zBo
8cz2apmUnrdsS+SSJwNsHXMX1PL1BUnTldLeLqBw4B40/i6qY7HmRCNKdEMm7KNy
c4daDEU7IXIKJdb/Jz3R6x+siPcmNA==
=F71O
-----END PGP SIGNATURE-----payloadX  tree 665f900bacdb53aecbb1e8c3f59ee24f0351d50e
parent 9721cfaf779d33b012bedaa315a17446673d1d20
author Ahmed Alouane <aalouane@palantir.com> 1684243018 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684243018 +0100

workspace only for compile/compileTest
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/f656bd5a188322c47d93629f63b872d0cf877dd4html_urlShttps://github.com/palantir/atlasdb/commit/f656bd5a188322c47d93629f63b872d0cf877dd4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f656bd5a188322c47d93629f63b872d0cf877dd4/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j  ergo14j  Jj  MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j  h5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14j  -https://api.github.com/users/ergo14/followersj  :https://api.github.com/users/ergo14/following{/other_user}j  3https://api.github.com/users/ergo14/gists{/gist_id}j  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j  1https://api.github.com/users/ergo14/subscriptionsj  (https://api.github.com/users/ergo14/orgsj  )https://api.github.com/users/ergo14/reposj  4https://api.github.com/users/ergo14/events{/privacy}j  3https://api.github.com/users/ergo14/received_eventsj  Userj  uparents]}(j  (9721cfaf779d33b012bedaa315a17446673d1d20j  ^https://api.github.com/repos/palantir/atlasdb/commits/9721cfaf779d33b012bedaa315a17446673d1d20j  Shttps://github.com/palantir/atlasdb/commit/9721cfaf779d33b012bedaa315a17446673d1d20uastats}(totalK	additionsK	deletionsK ufiles]}(j  (97d4354e82ad28af333625140441ffe7750a2b0dfilename.circleci/config.ymlstatusmodifiedj
  Kj  K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/f656bd5a188322c47d93629f63b872d0cf877dd4/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/f656bd5a188322c47d93629f63b872d0cf877dd4/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=f656bd5a188322c47d93629f63b872d0cf877dd4patchX  @@ -80,6 +80,14 @@ jobs:
       - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
       - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
       - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - when:
+          # Persist to workspace for the compile/compileTest container to keep deploy fast.
+          condition:
+            equal: [ 13, << parameters.suite >> ]
+          steps:
+            - persist_to_workspace:
+                root: .
+                paths: [ . ]
       - store_artifacts:
           path: /home/circleci/artifacts
 uau(2495868e1b3568aedd3e675b896c2fd73debf449}(sha(2495868e1b3568aedd3e675b896c2fd73debf449node_idEC_kwDOAjP5fdoAKDI0OTU4NjhlMWIzNTY4YWVkZDNlNjc1Yjg5NmMyZmQ3M2RlYmY0NDkcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-22T13:03:40Zu	committer}(j*  Lucas Meirelesj,  meireles31@msn.comj.  2023-06-22T13:03:40Zumessageextract exhaustive countertree}(j"  (5636c95fa75d2387bc05e519baf3a243a42f01c3url`https://api.github.com/repos/palantir/atlasdb/git/trees/5636c95fa75d2387bc05e519baf3a243a42f01c3uj:  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2495868e1b3568aedd3e675b896c2fd73debf449
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSURqwACgkQJd22kJ7J
GiwiCwgAgjcRWY+reKQpc8R/czUvNTGoZgekiO0Ht3L5h0ktPYmI2l0AnsIbjAg0
Yo4qK4Bs3X4BGN41TYu0NtUaJuLO9iMWmvCBduTUKs6Wv6aJG3Zu+apQtMfYVbEH
MNfjsAjHG7wLsdfOzdl6v2pCsbd62mfGLAjaatIvYILSdtJtGhe6ObpKa5Xsqw1k
ZA2dg85DDOghJYx89rDPg8a3s/w1HYf8t9bO6e8DulfTOJYPlNZqVRfQudcgeNh6
tY91x5R4SuJ7aJjJ0wqZTIJ9ZMAqzjWlm/2qiXumpbXPcY89i4s9P4JJpg3Abgy3
wpucGm5fuFUWTjRcauXid5GdyiWFRQ==
=Yq6t
-----END PGP SIGNATURE-----payloadtree 5636c95fa75d2387bc05e519baf3a243a42f01c3
parent 28cc7eee76cb83abf2e3d74901594c9dff47ccb2
author Lucas Meireles <meireles31@msn.com> 1687439020 +0100
committer Lucas Meireles <meireles31@msn.com> 1687439020 +0100

extract exhaustive counter
uuj:  ^https://api.github.com/repos/palantir/atlasdb/commits/2495868e1b3568aedd3e675b896c2fd73debf449html_urlShttps://github.com/palantir/atlasdb/commit/2495868e1b3568aedd3e675b896c2fd73debf449comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2495868e1b3568aedd3e675b896c2fd73debf449/commentsj(  }(loginLucasIMEidJg j$  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j:  %https://api.github.com/users/LucasIMEjH  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj0  }(jM  LucasIMEjO  Jg j$  MDQ6VXNlcjY3ODczMTE=jQ  3https://avatars.githubusercontent.com/u/6787311?v=4jS  h5j:  %https://api.github.com/users/LucasIMEjH  https://github.com/LucasIMEjV  /https://api.github.com/users/LucasIME/followersjX  <https://api.github.com/users/LucasIME/following{/other_user}jZ  5https://api.github.com/users/LucasIME/gists{/gist_id}j\  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j^  3https://api.github.com/users/LucasIME/subscriptionsj`  *https://api.github.com/users/LucasIME/orgsjb  +https://api.github.com/users/LucasIME/reposjd  6https://api.github.com/users/LucasIME/events{/privacy}jf  5https://api.github.com/users/LucasIME/received_eventsjh  Userjj  uparents]}(j"  (28cc7eee76cb83abf2e3d74901594c9dff47ccb2j:  ^https://api.github.com/repos/palantir/atlasdb/commits/28cc7eee76cb83abf2e3d74901594c9dff47ccb2jH  Shttps://github.com/palantir/atlasdb/commit/28cc7eee76cb83abf2e3d74901594c9dff47ccb2uastats}(totalK	additionsK
	deletionsKufiles]}(j"  (b63780f79b2a1586aa6d6ae763930a34a17d411dfilenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedj  K
j  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/2495868e1b3568aedd3e675b896c2fd73debf449/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2495868e1b3568aedd3e675b896c2fd73debf449/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=2495868e1b3568aedd3e675b896c2fd73debf449patchX  @@ -2438,11 +2438,9 @@ public void emitExhaustiveMetricWhenReadingExistingValue() {
         Transaction transaction =
                 getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
 
-        Counter exhaustiveReadCounter = metricsManager.registerOrGetTaggedCounter(
-                SnapshotTransaction.class, "snapshotTransactionGetInternal", Map.of("isExhaustive", "true"));
+        Counter exhaustiveReadCounter = getExhaustiveReadCounter(true);
         long exhaustiveReadsBeforeGet = exhaustiveReadCounter.getCount();
-        Counter nonExhaustiveReadCounter = metricsManager.registerOrGetTaggedCounter(
-                SnapshotTransaction.class, "snapshotTransactionGetInternal", Map.of("isExhaustive", "false"));
+        Counter nonExhaustiveReadCounter = getExhaustiveReadCounter(false);
         long nonExhaustiveReadsBeforeGet = nonExhaustiveReadCounter.getCount();
 
         transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
@@ -2460,11 +2458,9 @@ public void emitNonExhaustiveMetricWhenReadingMissingValue() {
         Transaction transaction =
                 getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
 
-        Counter exhaustiveReadCounter = metricsManager.registerOrGetTaggedCounter(
-                SnapshotTransaction.class, "snapshotTransactionGetInternal", Map.of("isExhaustive", "true"));
+        Counter exhaustiveReadCounter = getExhaustiveReadCounter(true);
         long exhaustiveReadsBeforeGet = exhaustiveReadCounter.getCount();
-        Counter nonExhaustiveReadCounter = metricsManager.registerOrGetTaggedCounter(
-                SnapshotTransaction.class, "snapshotTransactionGetInternal", Map.of("isExhaustive", "false"));
+        Counter nonExhaustiveReadCounter = getExhaustiveReadCounter(false);
         long nonExhaustiveReadsBeforeGet = nonExhaustiveReadCounter.getCount();
 
         transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL_2));
@@ -2484,11 +2480,9 @@ public void emitNonExhaustiveMetricWhenReadingCombinatioOfPresentAndMissingValue
         Transaction transaction =
                 getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
 
-        Counter exhaustiveReadCounter = metricsManager.registerOrGetTaggedCounter(
-                SnapshotTransaction.class, "snapshotTransactionGetInternal", Map.of("isExhaustive", "true"));
+        Counter exhaustiveReadCounter = getExhaustiveReadCounter(true);
         long exhaustiveReadsBeforeGet = exhaustiveReadCounter.getCount();
-        Counter nonExhaustiveReadCounter = metricsManager.registerOrGetTaggedCounter(
-                SnapshotTransaction.class, "snapshotTransactionGetInternal", Map.of("isExhaustive", "false"));
+        Counter nonExhaustiveReadCounter = getExhaustiveReadCounter(false);
         long nonExhaustiveReadsBeforeGet = nonExhaustiveReadCounter.getCount();
 
         transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2));
@@ -2499,6 +2493,13 @@ public void emitNonExhaustiveMetricWhenReadingCombinatioOfPresentAndMissingValue
         assertThat(nonExhaustiveReadsCountAfterGet).isEqualTo(nonExhaustiveReadsBeforeGet + 1);
     }
 
+    private Counter getExhaustiveReadCounter(boolean isExhaustive) {
+        return metricsManager.registerOrGetTaggedCounter(
+                SnapshotTransaction.class,
+                "snapshotTransactionGetInternal",
+                Map.of("isExhaustive", Boolean.toString(isExhaustive)));
+    }
+
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,uau(4b87b970991d4b7edc671b759b5774de10872708}(sha(4b87b970991d4b7edc671b759b5774de10872708node_idEC_kwDOAjP5fdoAKDRiODdiOTcwOTkxZDRiN2VkYzY3MWI3NTliNTc3NGRlMTA4NzI3MDgcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-14T10:09:51Zu	committer}(j  	Tom Papkej  tpapke@palantir.comj  2023-06-14T10:09:51ZumessageRemove log dependencytree}(j  (1466c4c74123d10725076fe78a53b3da1e40414eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/1466c4c74123d10725076fe78a53b3da1e40414euj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4b87b970991d4b7edc671b759b5774de10872708
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSJke8ACgkQmF9s0kaF
Iw3uAAgAoPKwOeokLa5FJbUP2T6oCTBDBnyqn5i6x2qg7IyRIPE+d6ZOW2ocDlvW
Fb13fHoimmk3ZdBzb5VcRAoBO1F2vqv1VAc1ol0qlmxTN5qkPROCfXIrn2hk3a2A
6N5EsRjSTMhVgCChuXs8rJh0oZIiGaV9I/uHe84yInEjDDclFUKdgD1A36orj3BM
diFKXo1vG2KqL0l/MfCfGnj0Il2fs8Vv/zsFZLZ7QQIH0B5EaJE2kVE0alPxX2Sa
2py7jj1B5J8BDe0rRn9HOKtAKz1Npr8fgG+naPOm2HHp3XEcrClrdWIaYktdYFff
C5MaSsJMF4DZVWGEIFiI86usVixY4Q==
=9H/7
-----END PGP SIGNATURE-----payloadtree 1466c4c74123d10725076fe78a53b3da1e40414e
parent d66e12bdead8fd5b4c90d5784cd0a19d57e852e8
author Tom Papke <tpapke@palantir.com> 1686737391 +0100
committer Tom Papke <tpapke@palantir.com> 1686737391 +0100

Remove log dependency
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/4b87b970991d4b7edc671b759b5774de10872708html_urlShttps://github.com/palantir/atlasdb/commit/4b87b970991d4b7edc671b759b5774de10872708comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4b87b970991d4b7edc671b759b5774de10872708/commentsj  }(login	ToemmscheidJboj  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj  }(j  	Toemmschej  Jboj  MDQ6VXNlcjQzNjc1NDkwj  4https://avatars.githubusercontent.com/u/43675490?v=4j  h5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmschej  0https://api.github.com/users/Toemmsche/followersj  =https://api.github.com/users/Toemmsche/following{/other_user}j  6https://api.github.com/users/Toemmsche/gists{/gist_id}j  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j  4https://api.github.com/users/Toemmsche/subscriptionsj  +https://api.github.com/users/Toemmsche/orgsj  ,https://api.github.com/users/Toemmsche/reposj  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj  Userj  uparents]}(j  (d66e12bdead8fd5b4c90d5784cd0a19d57e852e8j  ^https://api.github.com/repos/palantir/atlasdb/commits/d66e12bdead8fd5b4c90d5784cd0a19d57e852e8j  Shttps://github.com/palantir/atlasdb/commit/d66e12bdead8fd5b4c90d5784cd0a19d57e852e8uastats}(totalK	additionsK 	deletionsKufiles]}(j  (b12fd04d56279554953b5924c3759419e9d5495dfilenametimelock-impl/build.gradlestatusmodifiedj  K j  KchangesKblob_urlnhttps://github.com/palantir/atlasdb/blob/4b87b970991d4b7edc671b759b5774de10872708/timelock-impl%2Fbuild.gradleraw_urlmhttps://github.com/palantir/atlasdb/raw/4b87b970991d4b7edc671b759b5774de10872708/timelock-impl%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fbuild.gradle?ref=4b87b970991d4b7edc671b759b5774de10872708patchX  @@ -71,7 +71,6 @@ dependencies {
     testImplementation 'io.dropwizard.metrics:metrics-core'
     testImplementation 'org.awaitility:awaitility'
     testImplementation 'org.jmock:jmock'
-    testImplementation 'uk.org.lidalia:slf4j-test'
     testImplementation project(':atlasdb-api')
     testImplementation project(':atlasdb-autobatch')
     testImplementation project(':atlasdb-client')uau(7fda5a70db99b759404101ed27a62336dfdaf184}(sha(7fda5a70db99b759404101ed27a62336dfdaf184node_idEC_kwDOAjP5fdoAKDdmZGE1YTcwZGI5OWI3NTk0MDQxMDFlZDI3YTYyMzM2ZGZkYWYxODQcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-25T16:30:39Zu	committer}(j  
Ahmed Alouanej  aalouane@palantir.comj  2023-05-25T16:30:39Zumessagereview flupstree}(j  (581d00074f9d9ee82df172bd26605e0ccd959df4url`https://api.github.com/repos/palantir/atlasdb/git/trees/581d00074f9d9ee82df172bd26605e0ccd959df4uj(  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7fda5a70db99b759404101ed27a62336dfdaf184
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRvjS8ACgkQPlMHVIT1
yhrNZgf/YjbS0C1Ahvi7eTUBh1LJXfMCXojl4zV0OkQVMjQ8MZXMYTaohc4Kj+ZC
qBbkLrMHC3VtkB/dcjazqJxsXCtMh+8ktOGbrOgnBsG5bZmfOFjQg5MCqfmVf80S
ZRYpw1dCi+esUPed8wb/zuShhD6uIzlSXV2p0i4iRGZMOj0/pYYP+IfDfP+X5bhZ
b3PjiWenFYECZVVhvr0PzYl9O5Fr46NbAsNmn8ruzK0zNInboM68ynH8xb0qxDVs
h2M52q0msKKGJItVjJ/igQ1kg1sI/Tg+aNP82nFma19KTTPNW+cBlG9rrPKRMpq/
ENd2YN1W8+pC5Jkby3PnbRIoGLuxpA==
=Yj+I
-----END PGP SIGNATURE-----payloadtree 581d00074f9d9ee82df172bd26605e0ccd959df4
parent ff7e74a80377117f45ed0ea9aabe5368b821fb5e
author Ahmed Alouane <aalouane@palantir.com> 1685032239 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1685032239 +0100

review flups
uuj(  ^https://api.github.com/repos/palantir/atlasdb/commits/7fda5a70db99b759404101ed27a62336dfdaf184html_urlShttps://github.com/palantir/atlasdb/commit/7fda5a70db99b759404101ed27a62336dfdaf184comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7fda5a70db99b759404101ed27a62336dfdaf184/commentsj  }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j(  #https://api.github.com/users/ergo14j6  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j;  ergo14j=  Jj  MDQ6VXNlcjMwOTAzNzM2j?  4https://avatars.githubusercontent.com/u/30903736?v=4jA  h5j(  #https://api.github.com/users/ergo14j6  https://github.com/ergo14jD  -https://api.github.com/users/ergo14/followersjF  :https://api.github.com/users/ergo14/following{/other_user}jH  3https://api.github.com/users/ergo14/gists{/gist_id}jJ  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jL  1https://api.github.com/users/ergo14/subscriptionsjN  (https://api.github.com/users/ergo14/orgsjP  )https://api.github.com/users/ergo14/reposjR  4https://api.github.com/users/ergo14/events{/privacy}jT  3https://api.github.com/users/ergo14/received_eventsjV  UserjX  uparents]}(j  (ff7e74a80377117f45ed0ea9aabe5368b821fb5ej(  ^https://api.github.com/repos/palantir/atlasdb/commits/ff7e74a80377117f45ed0ea9aabe5368b821fb5ej6  Shttps://github.com/palantir/atlasdb/commit/ff7e74a80377117f45ed0ea9aabe5368b821fb5euastats}(totalK	additionsK	deletionsKufiles](}(j  (fb4fc64b72fb89db0e201934a5e66643a05a4139filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedjr  Kjs  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7fda5a70db99b759404101ed27a62336dfdaf184/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7fda5a70db99b759404101ed27a62336dfdaf184/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=7fda5a70db99b759404101ed27a62336dfdaf184patchX  @@ -2623,10 +2623,10 @@ static void reportExpectationsCollectedData(ExpectationsAwareTransaction transac
 
         metrics.ageMillis().update(ageMillis);
         metrics.bytesRead().update(info.bytesRead());
-        metrics.kvsCalls().update(info.kvsCalls());
+        metrics.kvsReads().update(info.kvsCalls());
 
-        info.maximumBytesKvsCallInfo()
-                .ifPresent(kvsCallReadInfo -> metrics.worstKvsBytesRead().update(kvsCallReadInfo.bytesRead()));
+        info.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
+                .update(kvsCallReadInfo.bytesRead()));
     }
 
     private long getStartTimestamp() {u}(j  (e696a4e851cc0de0f72f1af470c874f29b2e719bjx  5atlasdb-impl-shared/src/main/metrics/expectations.ymljz  modifiedjr  Kjs  Kj|  Kj}  https://github.com/palantir/atlasdb/blob/7fda5a70db99b759404101ed27a62336dfdaf184/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj  https://github.com/palantir/atlasdb/raw/7fda5a70db99b759404101ed27a62336dfdaf184/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=7fda5a70db99b759404101ed27a62336dfdaf184j  X  @@ -8,12 +8,12 @@ namespaces:
       bytesRead:
         docs: Bytes read by a transaction through Atlas kvs read calls
         type: histogram
-      kvsCalls:
+      kvsReads:
         docs: Number of Atlas kvs read calls made by a transaction
         type: histogram
       ageMillis:
         docs: Elapsed duration in milliseconds for a transaction
         type: histogram
-      worstKvsBytesRead:
+      mostKvsBytesReadInSingleCall:
         docs: Most bytes read by a transaction in one Atlas kvs read call
         type: histogramu}(j  (82924e3f71d9c8355ba84fdf9f8c81e0f7a66901jx  matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javajz  modifiedjr  Kjs  Kj|  Kj}  https://github.com/palantir/atlasdb/blob/7fda5a70db99b759404101ed27a62336dfdaf184/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj  https://github.com/palantir/atlasdb/raw/7fda5a70db99b759404101ed27a62336dfdaf184/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=7fda5a70db99b759404101ed27a62336dfdaf184j  X%  @@ -70,22 +70,24 @@ public void kvsCallsReported() {
         long calls = 12L;
         when(transaction.getReadInfo()).thenReturn(BLANK_READ_INFO.withKvsCalls(calls));
         reportMetrics();
-        assertThat(metrics.kvsCalls().getSnapshot().getValues()).containsOnly(calls);
+        assertThat(metrics.kvsReads().getSnapshot().getValues()).containsOnly(calls);
     }
 
     @Test
-    public void worstKvsBytesReadNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
+    public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
         reportMetrics();
-        assertThat(metrics.worstKvsBytesRead().getSnapshot().getValues()).isEmpty();
+        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+                .isEmpty();
     }
 
     @Test
-    public void worstKvsBytesReadReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
+    public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
         long bytes = 193L;
         when(transaction.getReadInfo())
                 .thenReturn(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
         reportMetrics();
-        assertThat(metrics.worstKvsBytesRead().getSnapshot().getValues()).containsOnly(bytes);
+        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+                .containsOnly(bytes);
     }
 
     private void reportMetrics() {u}(j  (7a4581ad60e4c130ffd77d0452ffde0b9900f301jx  latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javajz  modifiedjr  Kjs  Kj|  Kj}  https://github.com/palantir/atlasdb/blob/7fda5a70db99b759404101ed27a62336dfdaf184/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj  https://github.com/palantir/atlasdb/raw/7fda5a70db99b759404101ed27a62336dfdaf184/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=7fda5a70db99b759404101ed27a62336dfdaf184j  Xy  @@ -239,8 +239,8 @@ public void registersMetrics() throws InterruptedException {
                 .contains(SETUP_TASK_METRIC_NAME)
                 .contains(FINISH_TASK_METRIC_NAME)
                 .contains("expectations.bytesRead")
-                .contains("expectations.kvsCalls")
-                .contains("expectations.ageMillis");
+                .contains("expectations.kvsReads")
+                .contains("expectations.mostKvsBytesReadInSingleCall");
         assertThat(registry.timer(MetricName.builder()
                                 .safeName(SETUP_TASK_METRIC_NAME)
                                 .build())ueu(f46733ead57b7a1fab526658650a4eb3dbecd1ad}(sha(f46733ead57b7a1fab526658650a4eb3dbecd1adnode_idEC_kwDOAjP5fdoAKGY0NjczM2VhZDU3YjdhMWZhYjUyNjY1ODY1MGE0ZWIzZGJlY2QxYWQcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-25T16:15:37Zu	committer}(j  Lucas Meirelesj  meireles31@msn.comj  2023-07-25T16:15:37Zumessagerename validatortree}(j  (001672ee308349a682c5097a0232656668dbe091url`https://api.github.com/repos/palantir/atlasdb/git/trees/001672ee308349a682c5097a0232656668dbe091uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f46733ead57b7a1fab526658650a4eb3dbecd1ad
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS/9SkACgkQJd22kJ7J
GiyGBggAm4IOLb9Q9oziJRlBKuLbpoL7O3u7bgnlIU/T8KN8Kt7WUUFT1GRz+XdD
DMtGcKmt8i+7H9LPzDKWvmiHvF7eXMqau3bclKfy8g/7WKXw1MdxgdhKFmMAj8pG
JXi2RZ9yojCyht1edyGyohA2cC0wLH8Mh1Uei31aCrYRdQo9mV8iY46b+Wr3PdcV
KwzV7JGeTsF8QMVhBlX7L7ycG/QYdtGuFX+sR6RI3enpLhZMY3WKVHS/HdlyFMan
QEJnhlXfVrvgxuME8UcYeFg9rRYr/lPg7HpoHEQd2WANkUeO3/h15cFZDL1YVTFE
AmfCDyGw3DWJpVch7TF3S/XG4IW/Xg==
=psNm
-----END PGP SIGNATURE-----payloadtree 001672ee308349a682c5097a0232656668dbe091
parent 2739a482d48aaff7b793a228f388db90913d1e53
author Lucas Meireles <meireles31@msn.com> 1690301737 +0100
committer Lucas Meireles <meireles31@msn.com> 1690301737 +0100

rename validator
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/f46733ead57b7a1fab526658650a4eb3dbecd1adhtml_urlShttps://github.com/palantir/atlasdb/commit/f46733ead57b7a1fab526658650a4eb3dbecd1adcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f46733ead57b7a1fab526658650a4eb3dbecd1ad/commentsj  }(loginLucasIMEidJg j  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj  }(j  LucasIMEj  Jg j  MDQ6VXNlcjY3ODczMTE=j  3https://avatars.githubusercontent.com/u/6787311?v=4j  h5j  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIMEj  /https://api.github.com/users/LucasIME/followersj  <https://api.github.com/users/LucasIME/following{/other_user}j  5https://api.github.com/users/LucasIME/gists{/gist_id}j  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j  3https://api.github.com/users/LucasIME/subscriptionsj  *https://api.github.com/users/LucasIME/orgsj  +https://api.github.com/users/LucasIME/reposj  6https://api.github.com/users/LucasIME/events{/privacy}j  5https://api.github.com/users/LucasIME/received_eventsj  Userj  uparents]}(j  (2739a482d48aaff7b793a228f388db90913d1e53j  ^https://api.github.com/repos/palantir/atlasdb/commits/2739a482d48aaff7b793a228f388db90913d1e53j  Shttps://github.com/palantir/atlasdb/commit/2739a482d48aaff7b793a228f388db90913d1e53uastats}(totalKN	additionsK1	deletionsKufiles](}(j  (e73a0467acb3c855e9985458feee4288fdcf017bfilenametatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/exceptions/MoreCellsPresentThanExpectedException.javastatusaddedj  K*j  K changesK*blob_urlhttps://github.com/palantir/atlasdb/blob/f46733ead57b7a1fab526658650a4eb3dbecd1ad/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexceptions%2FMoreCellsPresentThanExpectedException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f46733ead57b7a1fab526658650a4eb3dbecd1ad/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexceptions%2FMoreCellsPresentThanExpectedException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexceptions%2FMoreCellsPresentThanExpectedException.java?ref=f46733ead57b7a1fab526658650a4eb3dbecd1adpatchX?  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api.exceptions;
+
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.Map;
+
+public class MoreCellsPresentThanExpectedException extends IllegalStateException {
+    private final Map<Cell, byte[]> fetchedCells;
+
+    public MoreCellsPresentThanExpectedException(Map<Cell, byte[]> fetchedCells, long expectedNumberOfCells) {
+        super(new SafeIllegalStateException(
+                "KeyValueService returned more results than Get expected. This means there is a bug"
+                        + "either in the SnapshotTransaction implementation or in how the client is "
+                        + "using such method.",
+                SafeArg.of("expectedNumberOfCells", expectedNumberOfCells),
+                SafeArg.of("numberOfCellsRetrieved", fetchedCells.size()),
+                UnsafeArg.of("retrievedCells", fetchedCells)));
+        this.fetchedCells = fetchedCells;
+    }
+
+    public Map<Cell, byte[]> getFetchedCells() {
+        return fetchedCells;
+    }
+}u}(j  (aa57b8d00aa0cd1bb050020e97fb9ef56a1a5a25j  `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj	  modifiedj  Kj  Kj  K	j  https://github.com/palantir/atlasdb/blob/f46733ead57b7a1fab526658650a4eb3dbecd1ad/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj  https://github.com/palantir/atlasdb/raw/f46733ead57b7a1fab526658650a4eb3dbecd1ad/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=f46733ead57b7a1fab526658650a4eb3dbecd1adj  X  @@ -101,7 +101,7 @@
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
-import com.palantir.atlasdb.transaction.impl.expectations.ExpectedCellsContainingValueValidator;
+import com.palantir.atlasdb.transaction.impl.expectations.CellCountValidator;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueServiceImpl;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
@@ -923,9 +923,8 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
     public Map<Cell, byte[]> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {
         return getCache().getWithCachedRef(tableRef, cells, cacheLookupResult -> {
-            long cachedCellsWithNonEmptyValue =
-                    ExpectedCellsContainingValueValidator.validateCacheAndGetNonEmptyValuesCount(
-                            expectedNumberOfPresentCells, cacheLookupResult.cacheHits());
+            long cachedCellsWithNonEmptyValue = CellCountValidator.validateCacheAndGetNonEmptyValuesCount(
+                    expectedNumberOfPresentCells, cacheLookupResult.cacheHits());
             long numberOfCellsExpectingValuePostCache = expectedNumberOfPresentCells - cachedCellsWithNonEmptyValue;
 
             return getInternal(
@@ -1002,7 +1001,7 @@ ListenableFuture<Map<Cell, byte[]>> getInternal(
                                 SafeArg.of("durationMillis", getMillis));
                     }
 
-                    ExpectedCellsContainingValueValidator.validateFetchedLessOrEqualToExpected(
+                    CellCountValidator.validateFetchedLessOrEqualToExpected(
                             expectedNumberOfPresentCellsToFetch, fromKeyValueService);
                     boolean allPossibleCellsReadAndPresent =
                             fromKeyValueService.size() == expectedNumberOfPresentCellsToFetch;ug      }(j  (1a99acc9da80fa98c047572e8fadcdc9b2e876f6j  latlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/expectations/CellCountValidator.javaj	  renamedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/f46733ead57b7a1fab526658650a4eb3dbecd1ad/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FCellCountValidator.javaj  https://github.com/palantir/atlasdb/raw/f46733ead57b7a1fab526658650a4eb3dbecd1ad/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FCellCountValidator.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FCellCountValidator.java?ref=f46733ead57b7a1fab526658650a4eb3dbecd1adj  X  @@ -19,16 +19,14 @@
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.cache.CacheValue;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.UnsafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException;
 import java.util.Arrays;
 import java.util.Map;
 import one.util.streamex.EntryStream;
 
-public final class ExpectedCellsContainingValueValidator {
+public final class CellCountValidator {
 
-    private ExpectedCellsContainingValueValidator() {}
+    private CellCountValidator() {}
 
     public static long validateCacheAndGetNonEmptyValuesCount(
             long expectedNumberOfPresentCellsToFetch, Map<Cell, CacheValue> cachedLookup) {
@@ -49,23 +47,4 @@ public static void validateFetchedLessOrEqualToExpected(
             throw new MoreCellsPresentThanExpectedException(fetchedCells, expectedNumberOfPresentCellsToFetch);
         }
     }
-
-    public static class MoreCellsPresentThanExpectedException extends IllegalStateException {
-        private final Map<Cell, byte[]> fetchedCells;
-
-        public MoreCellsPresentThanExpectedException(Map<Cell, byte[]> fetchedCells, long expectedNumberOfCells) {
-            super(new SafeIllegalStateException(
-                    "KeyValueService returned more results than Get expected. This means there is a bug"
-                            + "either in the SnapshotTransaction implementation or in how the client is "
-                            + "using such method.",
-                    SafeArg.of("expectedNumberOfCells", expectedNumberOfCells),
-                    SafeArg.of("numberOfCellsRetrieved", fetchedCells.size()),
-                    UnsafeArg.of("retrievedCells", fetchedCells)));
-            this.fetchedCells = fetchedCells;
-        }
-
-        public Map<Cell, byte[]> getFetchedCells() {
-            return fetchedCells;
-        }
-    }
 }previous_filenameatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/expectations/ExpectedCellsContainingValueValidator.javaueu(f46dd8e1e88cc9707ce6e89b9f8c509f2fcf33ee}(sha(f46dd8e1e88cc9707ce6e89b9f8c509f2fcf33eenode_idEC_kwDOAjP5fdoAKGY0NmRkOGUxZTg4Y2M5NzA3Y2U2ZTg5YjlmOGM1MDlmMmZjZjMzZWUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-01T19:19:36Zu	committer}(j0  
Ahmed Alouanej2  aalouane@palantir.comj4  2023-05-01T19:19:36Zumessage
fail fast?tree}(j(  (5a220bff4e6d25641cf2ead07de6bc84a79e8795url`https://api.github.com/repos/palantir/atlasdb/git/trees/5a220bff4e6d25641cf2ead07de6bc84a79e8795uj@  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f46dd8e1e88cc9707ce6e89b9f8c509f2fcf33ee
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRQEMgACgkQPlMHVIT1
yhr3fwf+Kow4KgT9uX7aTBbzH0DK+m4ZXhNkcbgP9n9GHIcxvYwA9AHhG66SmlSc
01EWCqIILbHoo7ZPJDejn96pNCHmJOnQnUZqBTPwTYNiIYKbJUZFAWsrP2uLFldm
gCInEGTI5O80CWXdgtaNu9RIKN33Jo5IDTU7GcWz+ef2JupVeDuxX0F25sd0Q2/5
WCFR21GPstNPCIs8Dbo3OsEG5KsYgOo+oVkkQ/i83dNaUGECqmkDTQ6CC2+oUENf
9Og3Bhi9EpO05G5RlYIp5S0O4ZRnAYWdWyzCIUXcrKdfjXXVX2ehyiC3VWxEEgza
VfJGiW3W+N6hIhbtOqbht1hnSc7zew==
=/WvW
-----END PGP SIGNATURE-----payloadtree 5a220bff4e6d25641cf2ead07de6bc84a79e8795
parent da17c0614101fbdf7d459c0552dac170e87b2cbf
author Ahmed Alouane <aalouane@palantir.com> 1682968776 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682968776 +0100

fail fast?
uuj@  ^https://api.github.com/repos/palantir/atlasdb/commits/f46dd8e1e88cc9707ce6e89b9f8c509f2fcf33eehtml_urlShttps://github.com/palantir/atlasdb/commit/f46dd8e1e88cc9707ce6e89b9f8c509f2fcf33eecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f46dd8e1e88cc9707ce6e89b9f8c509f2fcf33ee/commentsj.  }(loginergo14idJj*  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j@  #https://api.github.com/users/ergo14jN  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj6  }(jS  ergo14jU  Jj*  MDQ6VXNlcjMwOTAzNzM2jW  4https://avatars.githubusercontent.com/u/30903736?v=4jY  h5j@  #https://api.github.com/users/ergo14jN  https://github.com/ergo14j\  -https://api.github.com/users/ergo14/followersj^  :https://api.github.com/users/ergo14/following{/other_user}j`  3https://api.github.com/users/ergo14/gists{/gist_id}jb  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jd  1https://api.github.com/users/ergo14/subscriptionsjf  (https://api.github.com/users/ergo14/orgsjh  )https://api.github.com/users/ergo14/reposjj  4https://api.github.com/users/ergo14/events{/privacy}jl  3https://api.github.com/users/ergo14/received_eventsjn  Userjp  uparents]}(j(  (da17c0614101fbdf7d459c0552dac170e87b2cbfj@  ^https://api.github.com/repos/palantir/atlasdb/commits/da17c0614101fbdf7d459c0552dac170e87b2cbfjN  Shttps://github.com/palantir/atlasdb/commit/da17c0614101fbdf7d459c0552dac170e87b2cbfuastats}(totalK		additionsK	deletionsKufiles]}(j(  (11ad665b40cb399870b3b76dadf88a62347d8344filename.circleci/config.ymlstatusmodifiedj  Kj  KchangesK	blob_urlhhttps://github.com/palantir/atlasdb/blob/f46dd8e1e88cc9707ce6e89b9f8c509f2fcf33ee/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/f46dd8e1e88cc9707ce6e89b9f8c509f2fcf33ee/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=f46dd8e1e88cc9707ce6e89b9f8c509f2fcf33eepatchXc  @@ -85,6 +85,12 @@ jobs:
       - persist_to_workspace:
           root: .
           paths: [ . ]
+      - run:
+          name: Fail Fast
+          when: on_fail
+          command: |
+            echo "Canceling workflow as a step resulted in failure"
+            curl -X POST --header "Content-Type: application/json" "https://circleci.com/api/v2/workflow/${CIRCLE_WORKFLOW_ID}/cancel?circle-token=${CIRCLE_TOKEN}"
 
   trial-publish:
     docker:
@@ -131,6 +137,7 @@ jobs:
               # curl -s --fail $DOCS_URL | bash -s -- -r docs/requirements.txt $CIRCLE_BRANCH
             fi
 
+
 workflows:
   check:
     jobs:
@@ -147,7 +154,7 @@ workflows:
             tags:
               only: /.*/
       - trial-publish:
-          requires: [build, test]
+          requires: [build]
           filters:
             branches:
               ignore: [develop]uau(1abf11516477f1573580abdd1ca0488b0fb1a306}(sha(1abf11516477f1573580abdd1ca0488b0fb1a306node_idEC_kwDOAjP5fdoAKDFhYmYxMTUxNjQ3N2YxNTczNTgwYWJkZDFjYTA0ODhiMGZiMWEzMDYcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-13T18:12:25Zu	committer}(j  	Tom Papkej  tpapke@palantir.comj  2023-06-13T18:12:25ZumessageKAlter snapshotter interface (gettin the snapshot is now a test-only method)tree}(j  (3649056438a40546681de2cf6de5c2dc86212fc2url`https://api.github.com/repos/palantir/atlasdb/git/trees/3649056438a40546681de2cf6de5c2dc86212fc2uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1abf11516477f1573580abdd1ca0488b0fb1a306
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSIsYkACgkQmF9s0kaF
Iw2Pigf/V7QGglw6uViP+Fz8JLuhzahSOXWCQIF51Cvm8RneBqEZeLx58xsVV6au
AwW/vGQBQPMEgLztUJnjQ5+okrp44y4at75VnZGtmwyKTGDW/fF/0SQBlUJpLnrE
GyWabxZe0F6og4PIzqrJd+CNm7GcEd6Olc8PV9c4lODun7ztH5X/lS4lWVwlcOX5
KxbFYUPdXeJ1kTdQ3TXjGbWB69TSAYusEHOdYViGscA9S54iAbSvI9Xd3+9vWEWX
IyKQodjisrhNtlYR/mbXojTQerZta6PtFnnIXIXHI56xUWtIJpmZreugXMKcQbTj
StWwstvYgjhjC+A28JwqHJka9oJGMg==
=B74R
-----END PGP SIGNATURE-----payloadX  tree 3649056438a40546681de2cf6de5c2dc86212fc2
parent 6eb27d45a5b008a3acde03089fa4790c6c1ba6d2
author Tom Papke <tpapke@palantir.com> 1686679945 +0100
committer Tom Papke <tpapke@palantir.com> 1686679945 +0100

Alter snapshotter interface (gettin the snapshot is now a test-only method)
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/1abf11516477f1573580abdd1ca0488b0fb1a306html_urlShttps://github.com/palantir/atlasdb/commit/1abf11516477f1573580abdd1ca0488b0fb1a306comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1abf11516477f1573580abdd1ca0488b0fb1a306/commentsj  }(login	ToemmscheidJboj  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj  }(j  	Toemmschej  Jboj  MDQ6VXNlcjQzNjc1NDkwj  4https://avatars.githubusercontent.com/u/43675490?v=4j  h5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmschej  0https://api.github.com/users/Toemmsche/followersj  =https://api.github.com/users/Toemmsche/following{/other_user}j  6https://api.github.com/users/Toemmsche/gists{/gist_id}j  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j  4https://api.github.com/users/Toemmsche/subscriptionsj  +https://api.github.com/users/Toemmsche/orgsj  ,https://api.github.com/users/Toemmsche/reposj  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj  Userj  uparents]}(j  (6eb27d45a5b008a3acde03089fa4790c6c1ba6d2j  ^https://api.github.com/repos/palantir/atlasdb/commits/6eb27d45a5b008a3acde03089fa4790c6c1ba6d2j  Shttps://github.com/palantir/atlasdb/commit/6eb27d45a5b008a3acde03089fa4790c6c1ba6d2uastats}(totalK6	additionsK	deletionsK ufiles](}(j  (279c1a1747eeeb0f1f1b51da96a27669b827ccb7filenameQlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javastatusmodifiedj  Kj  K
changesK
blob_urlhttps://github.com/palantir/atlasdb/blob/1abf11516477f1573580abdd1ca0488b0fb1a306/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1abf11516477f1573580abdd1ca0488b0fb1a306/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=1abf11516477f1573580abdd1ca0488b0fb1a306patchXF  @@ -27,7 +27,6 @@
 import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
 import java.util.Map;
 import java.util.Map.Entry;
-import java.util.Set;
 import java.util.concurrent.ConcurrentMap;
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.concurrent.TimeUnit;
@@ -69,15 +68,9 @@ private void scheduleSnapshotting() {
         }
     }
 
-    /**
-     * Returns a consistent snapshot of thread information restricted to the given lock descriptors
-     */
-    public Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot(
-            Set<LockDescriptor> lockDescriptors) {
-        final Map<LockDescriptor, LockClientAndThread> currentSnapshot = this.lastKnownThreadInfoSnapshot;
-        return lockDescriptors.stream()
-                .filter(currentSnapshot::containsKey)
-                .collect(Collectors.toMap(lock -> lock, currentSnapshot::get));
+    @VisibleForTesting
+    Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot() {
+        return this.lastKnownThreadInfoSnapshot;
     }
 
     @VisibleForTestingu}(j  (d66688f391eb3388293f23c56ef992404f69cafbj  Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javaj	  modifiedj  Kj  Kj  K)j  https://github.com/palantir/atlasdb/blob/1abf11516477f1573580abdd1ca0488b0fb1a306/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj  https://github.com/palantir/atlasdb/raw/1abf11516477f1573580abdd1ca0488b0fb1a306/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=1abf11516477f1573580abdd1ca0488b0fb1a306j  XB  @@ -33,7 +33,6 @@
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
-import java.util.Set;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Future;
@@ -67,11 +66,9 @@ public class ThreadInfoLockServiceImplTest {
                     .build())
             .build());
 
-    private final LockThreadInfoSnapshotManager snapshotRunner = lockService.getSnapshotManager();
-
     @Test
     public void initialThreadInfoIsEmpty() {
-        snapshotRunner.takeSnapshot();
+        forceSnapshot();
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isNull();
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isNull();
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isNull();
@@ -80,7 +77,7 @@ public void initialThreadInfoIsEmpty() {
     @Test
     public void recordsThreadInfoOnSingleLock() throws InterruptedException {
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
-        snapshotRunner.takeSnapshot();
+        forceSnapshot();
 
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
                 .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1));
@@ -110,7 +107,7 @@ public void recordsThreadInfoOnMultipleUniqueLocksFromDifferentThreads() throws
             lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest);
         }
 
-        snapshotRunner.takeSnapshot();
+        forceSnapshot();
 
         locksPerThread.forEach((threadName, lockDescriptors) ->
                 lockDescriptors.forEach(lock -> assertThat(getLatestThreadInfoForLock(lock))
@@ -130,7 +127,7 @@ public void recordsThreadInfoOnSharedLockFromDifferentThreads() throws Interrupt
 
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest1);
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
-        snapshotRunner.takeSnapshot();
+        forceSnapshot();
 
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
                 .isIn(
@@ -150,7 +147,7 @@ public void doesNotRecordDroppedLocksWithLockAllOrNone() throws InterruptedExcep
 
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
-        snapshotRunner.takeSnapshot();
+        forceSnapshot();
 
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
                 .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1));
@@ -166,7 +163,7 @@ public void doesNotRecordFailedLocks() throws InterruptedException {
 
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
-        snapshotRunner.takeSnapshot();
+        forceSnapshot();
 
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
                 .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1));
@@ -178,7 +175,7 @@ public void recordsUnlockWriteLock() throws InterruptedException {
                 lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
 
         lockService.unlock(response.getToken());
-        snapshotRunner.takeSnapshot();
+        forceSnapshot();
 
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isNull();
     }
@@ -188,7 +185,7 @@ public void recordsUnlockAndFreezeForNonAnonymousClient() throws InterruptedExce
         LockResponse response = lockService.lockWithFullLockResponse(
                 LockClient.of("non-anonymous-client"), LOCK_1_THREAD_1_WRITE_REQUEST);
         lockService.unlockAndFreeze(response.getToken());
-        snapshotRunner.takeSnapshot();
+        forceSnapshot();
 
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isNull();
     }
@@ -231,7 +228,7 @@ public void recordsCorrectStateAfterMultipleOperations() throws Exception {
         lockService.unlock(response1.getToken());
         latch.await();
 
-        snapshotRunner.takeSnapshot();
+        forceSnapshot();
 
         // T1 should hold nothing, T2 holds 3 in exclusive mode, T3 holds 1 in exclusive and 2 in shared mode
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
@@ -242,7 +239,7 @@ public void recordsCorrectStateAfterMultipleOperations() throws Exception {
                 .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
 
         lockService.unlock(response2.getToken());
-        snapshotRunner.takeSnapshot();
+        forceSnapshot();
 
         // Only T3 should hold locks
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
@@ -252,7 +249,7 @@ public void recordsCorrectStateAfterMultipleOperations() throws Exception {
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isNull();
 
         lockService.unlock(response3.get().getToken());
-        snapshotRunner.takeSnapshot();
+        forceSnapshot();
 
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isNull();
         // Lock 2 is a shared lock
@@ -265,7 +262,7 @@ public void refreshDoesNotChangeSnapshot() throws InterruptedException {
         LockResponse response =
                 lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
         lockService.refreshTokens(List.of(response.getToken()));
-        snapshotRunner.takeSnapshot();
+        forceSnapshot();
 
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
                 .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1));
@@ -287,22 +284,22 @@ public void backgroundSnapshotRunnerWorks() throws InterruptedException {
 
         Thread.sleep(50L);
 
-        assertThat(backgroundSnapshotRunner
-                        .getLastKnownThreadInfoSnapshot(Set.of(TEST_LOCK_1))
-                        .get(TEST_LOCK_1))
+        assertThat(backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot().get(TEST_LOCK_1))
                 .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1));
 
         lockServiceWithBackgroundRunner.unlock(response.getToken());
 
         Thread.sleep(50L);
 
-        assertThat(backgroundSnapshotRunner
-                        .getLastKnownThreadInfoSnapshot(Set.of(TEST_LOCK_1))
-                        .get(TEST_LOCK_1))
+        assertThat(backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot().get(TEST_LOCK_1))
                 .isNull();
     }
 
+    private void forceSnapshot() {
+        this.lockService.getSnapshotManager().takeSnapshot();
+    }
+
     private LockClientAndThread getLatestThreadInfoForLock(LockDescriptor lock) {
-        return snapshotRunner.getLastKnownThreadInfoSnapshot(Set.of(lock)).get(lock);
+        return lockService.getSnapshotManager().getLastKnownThreadInfoSnapshot().get(lock);
     }
 }ueu(c7f2b916f8fc2f9213e341b411d2fd8dbdb44d7c}(sha(c7f2b916f8fc2f9213e341b411d2fd8dbdb44d7cnode_idEC_kwDOAjP5fdoAKGM3ZjJiOTE2ZjhmYzJmOTIxM2UzNDFiNDExZDJmZDhkYmRiNDRkN2Mcommit}(author}(nameJeremy Kongemailjeremykong@hotmail.comdate2023-04-28T15:15:56Zu	committer}(j&  svc-autoreleasej(  -pd-foundry-infrastructure-notify@palantir.comj*  2023-04-28T15:15:56Zumessage"Autorelease 0.842.0-rc3

[skip ci]tree}(j  (9c841288954aa4a5b25363b07a693b5612755b94url`https://api.github.com/repos/palantir/atlasdb/git/trees/9c841288954aa4a5b25363b07a693b5612755b94uj6  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c7f2b916f8fc2f9213e341b411d2fd8dbdb44d7c
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRL4y0ACgkQhbrR8ip7mDB6jQEA2yziB3A7VnsuyECE1AzZm0IX
FmQLshg3lm5FEdsyHSoBALWrSL2B+ghLP5DQ+UyyUAGR8H7Pfh7xDvPUQ+RFRiNX
=1eyH
-----END PGP SIGNATURE-----
payloadX  tree 9c841288954aa4a5b25363b07a693b5612755b94
parent 543712ed39aa972054d857c1ef5e334d5be30650
author Jeremy Kong <jeremykong@hotmail.com> 1682694956 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1682694956 +0000

Autorelease 0.842.0-rc3

[skip ci]uuj6  ^https://api.github.com/repos/palantir/atlasdb/commits/c7f2b916f8fc2f9213e341b411d2fd8dbdb44d7chtml_urlShttps://github.com/palantir/atlasdb/commit/c7f2b916f8fc2f9213e341b411d2fd8dbdb44d7ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c7f2b916f8fc2f9213e341b411d2fd8dbdb44d7c/commentsj$  }(login
jeremyk-91idJZ j   MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j6  'https://api.github.com/users/jeremyk-91jD  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj,  }(jI  svc-autoreleasejK  J(j   MDQ6VXNlcjUxNzE4MzQ2jM  4https://avatars.githubusercontent.com/u/51718346?v=4jO  h5j6  ,https://api.github.com/users/svc-autoreleasejD  "https://github.com/svc-autoreleasejR  6https://api.github.com/users/svc-autorelease/followersjT  Chttps://api.github.com/users/svc-autorelease/following{/other_user}jV  <https://api.github.com/users/svc-autorelease/gists{/gist_id}jX  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jZ  :https://api.github.com/users/svc-autorelease/subscriptionsj\  1https://api.github.com/users/svc-autorelease/orgsj^  2https://api.github.com/users/svc-autorelease/reposj`  =https://api.github.com/users/svc-autorelease/events{/privacy}jb  <https://api.github.com/users/svc-autorelease/received_eventsjd  Userjf  uparents]}(j  (543712ed39aa972054d857c1ef5e334d5be30650j6  ^https://api.github.com/repos/palantir/atlasdb/commits/543712ed39aa972054d857c1ef5e334d5be30650jD  Shttps://github.com/palantir/atlasdb/commit/543712ed39aa972054d857c1ef5e334d5be30650uastats}(totalK 	additionsK 	deletionsK ufiles]u(b08564b325d48a8d2cc70b105f85f02999cc948c}(sha(b08564b325d48a8d2cc70b105f85f02999cc948cnode_idEC_kwDOAjP5fdoAKGIwODU2NGIzMjVkNDhhOGQyY2M3MGIxMDVmODVmMDI5OTljYzk0OGMcommit}(author}(nameFabian Windheuseremailfwindheuser@palantir.comdate2023-07-06T09:34:28Zu	committer}(j  Fabian Windheuserj  fwindheuser@palantir.comj  2023-07-06T09:48:34ZumessageFix "CheckReturnValue"tree}(j  (a3f05f76941015b064c3906d106496f9a16c3e50url`https://api.github.com/repos/palantir/atlasdb/git/trees/a3f05f76941015b064c3906d106496f9a16c3e50uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b08564b325d48a8d2cc70b105f85f02999cc948c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEAib7yudlmWjYX+B11nJEKx9MErIFAmSmjfkACgkQ1nJEKx9M
ErJwxQgAlQuEUKpcAkXfmhvtNS0/qsEhcaCBdq8jzrQMpnroz0FVP+f/+oa4L5pk
+CatOIIMiLZs2RheD8KmEmJPTj7BUemQ6IQy+0dIj54flvDwopN/akfvKKdtpWc4
1T5D3QP71NaxQesZ4cjnHeOtqxiWUiSX4TH/YN9b8qgX3lnhtZOHToBh0BuyZmjc
eWgAD5LXJMqhs/X6jAzscrL+hjhc9CzcWRGldSpHXmsu1e39zcx9g6JwJz4SuhWn
BwMaOji9lXIF3l5an/JoS4kPo/V4ShRYY01p0PD0fOn90J0L2fNgd/+hFQpG5G4k
wqaVN9NErzhfD4fcmM394SJqLnLxXQ==
=rsxZ
-----END PGP SIGNATURE-----payloadX  tree a3f05f76941015b064c3906d106496f9a16c3e50
parent cdb0b2ee134c7275bc9e3133ef76334b857a678c
author Fabian Windheuser <fwindheuser@palantir.com> 1688636068 +0100
committer Fabian Windheuser <fwindheuser@palantir.com> 1688636914 +0100

Fix "CheckReturnValue"
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/b08564b325d48a8d2cc70b105f85f02999cc948chtml_urlShttps://github.com/palantir/atlasdb/commit/b08564b325d48a8d2cc70b105f85f02999cc948ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b08564b325d48a8d2cc70b105f85f02999cc948c/commentsj  }(loginfawindidJb@q j  MDQ6VXNlcjc0MjIwNTA=
avatar_url3https://avatars.githubusercontent.com/u/7422050?v=4gravatar_idh5j  #https://api.github.com/users/fawindj  https://github.com/fawind
followers_url-https://api.github.com/users/fawind/followers
following_url:https://api.github.com/users/fawind/following{/other_user}	gists_url3https://api.github.com/users/fawind/gists{/gist_id}starred_url:https://api.github.com/users/fawind/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/fawind/subscriptionsorganizations_url(https://api.github.com/users/fawind/orgs	repos_url)https://api.github.com/users/fawind/repos
events_url4https://api.github.com/users/fawind/events{/privacy}received_events_url3https://api.github.com/users/fawind/received_eventstypeUser
site_adminuj  }(j  fawindj  Jb@q j  MDQ6VXNlcjc0MjIwNTA=j  3https://avatars.githubusercontent.com/u/7422050?v=4j  h5j  #https://api.github.com/users/fawindj  https://github.com/fawindj  -https://api.github.com/users/fawind/followersj  :https://api.github.com/users/fawind/following{/other_user}j  3https://api.github.com/users/fawind/gists{/gist_id}j  :https://api.github.com/users/fawind/starred{/owner}{/repo}j  1https://api.github.com/users/fawind/subscriptionsj  (https://api.github.com/users/fawind/orgsj  )https://api.github.com/users/fawind/reposj  4https://api.github.com/users/fawind/events{/privacy}j  3https://api.github.com/users/fawind/received_eventsj  Userj  uparents]}(j  (cdb0b2ee134c7275bc9e3133ef76334b857a678cj  ^https://api.github.com/repos/palantir/atlasdb/commits/cdb0b2ee134c7275bc9e3133ef76334b857a678cj  Shttps://github.com/palantir/atlasdb/commit/cdb0b2ee134c7275bc9e3133ef76334b857a678cuastats}(totalK	additionsK	deletionsKufiles]}(j  (9aa966955634c26245b9a3f8b319fda465b5f991filenameOatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/DbKvs.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b08564b325d48a8d2cc70b105f85f02999cc948c/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FDbKvs.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b08564b325d48a8d2cc70b105f85f02999cc948c/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FDbKvs.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FDbKvs.java?ref=b08564b325d48a8d2cc70b105f85f02999cc948cpatchX  @@ -1381,7 +1381,7 @@ private <T> void runWriteForceAutocommit(TableReference tableRef, Function<DbWri
             if (!autocommit) {
                 runWriteFreshConnection(conns, tableRef, runner);
             } else {
-                runner.apply(dbTables.createWrite(tableRef, conns));
+                T unused = runner.apply(dbTables.createWrite(tableRef, conns));
             }
         }
     }uau(24078bb455cd6057d50a39eb7a574932bf9d9010}(sha(24078bb455cd6057d50a39eb7a574932bf9d9010node_idEC_kwDOAjP5fdoAKDI0MDc4YmI0NTVjZDYwNTdkNTBhMzllYjdhNTc0OTMyYmY5ZDkwMTAcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-19T11:08:52Zu	committer}(j  Jeremy Kongj  jkong@palantir.comj	  2023-06-19T11:08:52Zumessagemadelinetree}(j  (d7c46bd71f39caf69f7cff100051b6dd64683848url`https://api.github.com/repos/palantir/atlasdb/git/trees/d7c46bd71f39caf69f7cff100051b6dd64683848uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/24078bb455cd6057d50a39eb7a574932bf9d9010
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSQN0QACgkQTLdFKain
zjzIJwf/WE2qbMU1uZqjunsLNhddq+uOeWvM5Huw30qvl1+jbs2Pc79CigwYp4Eq
KH4iqQBEK5tr88uhbTijj2zB6vY27VMzSKCcvNDtBmCRViP8rcaHvuS9rVKRPwI7
RuTvyVRnIWN55v663pbhh0+Kw01T8Tm0u13p1IRIHrSYbUOz7yZgEwcAEjtLwpe5
FU6BU1K0DV2iu1nXMcY5PtL0ItIDw3AetJM+uOtdAzSYPSLY60U87d/Gk08g5krv
doDmWpzKq016AWipdxR7PbHFOg6mAPkttNaKia6rTm+pd6U8M7P08NnRvCMi0Fq/
/qEkYnQKaJdIW+4MVzP/M4Psl4MXqQ==
=7cMm
-----END PGP SIGNATURE-----payloadtree d7c46bd71f39caf69f7cff100051b6dd64683848
parent 2b17659bd9fc9ccdbe4db99a5577670ec70c4b1d
author Jeremy Kong <jkong@palantir.com> 1687172932 +0800
committer Jeremy Kong <jkong@palantir.com> 1687172932 +0800

madeline
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/24078bb455cd6057d50a39eb7a574932bf9d9010html_urlShttps://github.com/palantir/atlasdb/commit/24078bb455cd6057d50a39eb7a574932bf9d9010comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/24078bb455cd6057d50a39eb7a574932bf9d9010/commentsj  }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j  'https://api.github.com/users/jeremyk-91j#  https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j(  
jeremyk-91j*  JZ j  MDQ6VXNlcjU5NTU1MTA=j,  3https://avatars.githubusercontent.com/u/5955510?v=4j.  h5j  'https://api.github.com/users/jeremyk-91j#  https://github.com/jeremyk-91j1  1https://api.github.com/users/jeremyk-91/followersj3  >https://api.github.com/users/jeremyk-91/following{/other_user}j5  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j7  >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j9  5https://api.github.com/users/jeremyk-91/subscriptionsj;  ,https://api.github.com/users/jeremyk-91/orgsj=  -https://api.github.com/users/jeremyk-91/reposj?  8https://api.github.com/users/jeremyk-91/events{/privacy}jA  7https://api.github.com/users/jeremyk-91/received_eventsjC  UserjE  uparents]}(j  (2b17659bd9fc9ccdbe4db99a5577670ec70c4b1dj  ^https://api.github.com/repos/palantir/atlasdb/commits/2b17659bd9fc9ccdbe4db99a5577670ec70c4b1dj#  Shttps://github.com/palantir/atlasdb/commit/2b17659bd9fc9ccdbe4db99a5577670ec70c4b1duastats}(totalK	additionsK	deletionsKufiles]}(j  (abcb372e7e2623d6031033ba1712d7cc32a68dbafilenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj_  Kj`  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/24078bb455cd6057d50a39eb7a574932bf9d9010/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/24078bb455cd6057d50a39eb7a574932bf9d9010/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=24078bb455cd6057d50a39eb7a574932bf9d9010patchX
  @@ -33,6 +33,7 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
@@ -60,6 +61,7 @@
 import java.time.Instant;
 import java.util.List;
 import java.util.Map;
+import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutorService;
@@ -255,12 +257,7 @@ private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator
                         workflowConfig.tableConfiguration().tableName(),
                         workflowConfig.tableConfiguration().isolationLevel()),
                 Set.of());
-        transactionStore.readWrite(txn -> {
-            txn.write(
-                    workflowConfig.tableConfiguration().tableName(),
-                    ImmutableWorkloadCell.of(1, 2), // single row, second column
-                    1);
-        });
+        bootstrap(workflowConfig, transactionStore);
         return WorkflowAndInvariants.builder()
                 .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
                         transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
@@ -270,6 +267,23 @@ private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator
                 //                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
                 .build();
     }
+
+    private static void bootstrap(
+            SingleRowTwoCellsWorkflowConfiguration workflowConfig, InteractiveTransactionStore transactionStore) {
+        Optional<WitnessedTransaction> witnessedTransaction;
+
+        while (true) {
+            witnessedTransaction = transactionStore.readWrite(txn -> {
+                txn.write(
+                        workflowConfig.tableConfiguration().tableName(),
+                        ImmutableWorkloadCell.of(1, 2), // single row, second column
+                        1);
+            });
+            if (witnessedTransaction.isPresent()) {
+                return;
+            }
+        }
+    }
     //
     //    private WorkflowAndInvariants<Workflow> createBankBalanceWorkflow(
     //            AtlasDbTransactionStoreFactory transactionStoreFactory,uau(e043cf8c1f5862629a73cad01c0de05f3ecc4f38}(sha(e043cf8c1f5862629a73cad01c0de05f3ecc4f38node_idEC_kwDOAjP5fdoAKGUwNDNjZjhjMWY1ODYyNjI5YTczY2FkMDFjMGRlMDVmM2VjYzRmMzgcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-05-19T16:47:15Zu	committer}(j|  Lucas Meirelesj~  meireles31@msn.comj  2023-05-19T16:47:15Zumessagemergetree}(jt  (1decd6d9091d42182854d9a186a1b4dcd38c5461url`https://api.github.com/repos/palantir/atlasdb/git/trees/1decd6d9091d42182854d9a186a1b4dcd38c5461uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e043cf8c1f5862629a73cad01c0de05f3ecc4f38
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmRnqBMACgkQJd22kJ7J
Giw8jwgAkbVCQPc0YqxIScv9HGpbbwGT6RSdtdSo55xeG5E0NXzCf65YcD8P++yG
aN4BbQ8Y3xBbtbaiga8K6CNtL/WmwD+AZwWs3AOeX3Y4cv4OUwfJFkLLCEhiv9Ak
dqocZqhbGu8ZQVUQJvXelyBA3sk0n0dLE3qXExqZvRtuc+Lc9MuZnUnfJbY72025
dIeOfL6ereOyB3sJMRN2mfuCDjzbwMM8fCw9iqAUvln+ET5+Eo5oeOoj/+OY8kA8
uqrPTrmJUR4HeHw8j2l6ed2tcRXBV568dDjQ3fVFZRfwIxe8S491bLnciWLBZ2Eu
31D8RvsL5ALpBHt1CjHFmoLO4krlHA==
=qLkt
-----END PGP SIGNATURE-----payloadtree 1decd6d9091d42182854d9a186a1b4dcd38c5461
parent ec17b44ea9b054bd05b1b39c12b3c869da0bb679
author Lucas Meireles <meireles31@msn.com> 1684514835 +0100
committer Lucas Meireles <meireles31@msn.com> 1684514835 +0100

merge
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/e043cf8c1f5862629a73cad01c0de05f3ecc4f38html_urlShttps://github.com/palantir/atlasdb/commit/e043cf8c1f5862629a73cad01c0de05f3ecc4f38comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/commentsjz  }(loginLucasIMEidJg jv  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj  }(j  LucasIMEj  Jg jv  MDQ6VXNlcjY3ODczMTE=j  3https://avatars.githubusercontent.com/u/6787311?v=4j  h5j  %https://api.github.com/users/LucasIMEj  https://github.com/LucasIMEj  /https://api.github.com/users/LucasIME/followersj  <https://api.github.com/users/LucasIME/following{/other_user}j  5https://api.github.com/users/LucasIME/gists{/gist_id}j  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j  3https://api.github.com/users/LucasIME/subscriptionsj  *https://api.github.com/users/LucasIME/orgsj  +https://api.github.com/users/LucasIME/reposj  6https://api.github.com/users/LucasIME/events{/privacy}j  5https://api.github.com/users/LucasIME/received_eventsj  Userj  uparents]}(jt  (ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  ^https://api.github.com/repos/palantir/atlasdb/commits/ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  Shttps://github.com/palantir/atlasdb/commit/ec17b44ea9b054bd05b1b39c12b3c869da0bb679uastats}(totalMZ	additionsM/	deletionsM*ufiles](}(jt  (6a5f83a6198ffc81c968382b5af0e42c79e634dffilename/.baseline/idea/intellij-java-palantir-style.xmlstatusmodifiedj  Kj  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/.baseline%2Fidea%2Fintellij-java-palantir-style.xmlraw_urlhttps://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/.baseline%2Fidea%2Fintellij-java-palantir-style.xmlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/.baseline%2Fidea%2Fintellij-java-palantir-style.xml?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38patchX?  @@ -44,8 +44,10 @@
               <package name="" withSubpackages="true" static="false" />
             </value>
           </option>
+          <!-- Should be a superset of https://github.com/google/error-prone/blob/c481b3f9c2da112db36ccfcbf64e755261a127ab/core/src/main/java/com/google/errorprone/bugpatterns/BadImport.java#L63 -->
           <DO_NOT_IMPORT_INNER>
             <CLASS name="Builder" />
+            <CLASS name="BuilderFactory" />
             <CLASS name="Callback" />
             <CLASS name="Class" />
             <CLASS name="Entry" />
@@ -54,6 +56,7 @@
             <CLASS name="Type" />
             <CLASS name="Key" />
             <CLASS name="Id" />
+            <CLASS name="Identifier" />
             <CLASS name="Provider" />
           </DO_NOT_IMPORT_INNER>
         </GroovyCodeStyleSettings>u}(jt  (97d4354e82ad28af333625140441ffe7750a2b0dj  .circleci/config.ymlj  modifiedj  K/j  Kj  K=j  hhttps://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/.circleci%2Fconfig.ymlj  ghttps://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/.circleci%2Fconfig.ymlj  zhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -1,10 +1,10 @@
-version: 2
+version: 2.1
 
 jobs:
   build:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: xlarge
+    resource_class: 2xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
@@ -17,7 +17,7 @@ jobs:
           key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
 
       - run: git tag -l | xargs git tag -d && git fetch -t # ensure all tags are fetched and up-to-date
-      - run: ./gradlew --profile --parallel --stacktrace classes testClasses
+      - run: ./gradlew --scan --profile --parallel --stacktrace classes testClasses
 
       - save_cache:
           key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
@@ -31,8 +31,10 @@ jobs:
           root: .
           paths: [ . ]
 
-  test:
-    parallelism: 12
+  test-suite:
+    parameters:
+      suite:
+        type: integer
     machine:
       image: ubuntu-2004:202111-02
     resource_class: xlarge
@@ -66,7 +68,7 @@ jobs:
               curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
               sudo ln -s /opt/java/zulu*/ /opt/java8
       - run:
-          command: ./scripts/circle-ci/run-circle-tests.sh
+          command: ./scripts/circle-ci/run-circle-tests.sh << parameters.suite >>
           no_output_timeout: 900
       - run: ./scripts/circle-ci/ensure-repo-clean.sh
       - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
@@ -78,11 +80,16 @@ jobs:
       - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
       - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
       - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - when:
+          # Persist to workspace for the compile/compileTest container to keep deploy fast.
+          condition:
+            equal: [ 13, << parameters.suite >> ]
+          steps:
+            - persist_to_workspace:
+                root: .
+                paths: [ . ]
       - store_artifacts:
           path: /home/circleci/artifacts
-      - persist_to_workspace:
-          root: .
-          paths: [ . ]
 
   trial-publish:
     docker:
@@ -95,7 +102,13 @@ jobs:
       CIRCLE_ARTIFACTS: /tmp/artifacts
     steps:
       - attach_workspace: { at: . }
-      - run: ./gradlew --profile --stacktrace --continue publishToMavenLocal
+      - run: ./gradlew --scan --profile --stacktrace --continue publishToMavenLocal
+
+  test:
+    docker: [ { image: 'busybox:1.34.1' } ]
+    resource_class: small
+    steps:
+      - run: {command: echo "Ran all required tests successfully"}
 
   deploy:
     docker:
@@ -110,15 +123,15 @@ jobs:
       - attach_workspace: { at: . }
       - add_ssh_keys:
           fingerprints:
-            - "20:d7:2c:43:a2:d9:38:86:45:c0:70:cc:c9:87:95:5b"
+            - "b6:ba:27:37:84:8f:eb:b0:ee:0b:7c:c1:fc:18:32:5f"
       - run: sudo apt-get update
       - run: sudo apt-get install python python3-pip
       - run:
           command: |
             # hack - notion of "owners" isn't supported in Circle 2
             if [ $CIRCLE_PROJECT_USERNAME = 'palantir' ] && [ -z $CIRCLE_PR_NUMBER ]; then
               git status
-              ./gradlew --profile --stacktrace --continue publish
+              ./gradlew --scan --profile --stacktrace --continue publish
             fi
       - run:
           command: |
@@ -130,15 +143,35 @@ jobs:
             fi
 
 workflows:
-  version: 2
   check:
     jobs:
       - build:
           filters:
             tags:
               only: /.*/
-      - test:
+      - test-suite:
           requires: [build]
+          matrix:
+            alias: test-no-tl
+            parameters:
+              # intentionally excluding 12 (TimeLock migration ETE test) from this collection
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13]
+          filters:
+            tags:
+              only: /.*/
+      - test-suite:
+          requires: [build]
+          matrix:
+            alias: test-tl
+            parameters:
+              suite: [12]
+          filters:
+            branches:
+              only: /(tlmete.*|develop)/
+            tags:
+              only: /.*/
+      - test:
+          requires: [test-tl, test-no-tl]
           filters:
             tags:
               only: /.*/u}(jt  (e69de29bb2d1d6434b8b29ae775ad8c2e48c5391j  .circleci/template.shj  removedj  K j  K j  K j  ihttps://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/.circleci%2Ftemplate.shj  hhttps://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/.circleci%2Ftemplate.shj  {https://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Ftemplate.sh?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679u}(jt  (d712c836408b8b983fda0502a1815c19270ae9e1j  .palantir/revapi.ymlj  modifiedj  K^j  K j  K^j  hhttps://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/.palantir%2Frevapi.ymlj  ghttps://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/.palantir%2Frevapi.ymlj  zhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -27,3 +27,97 @@ acceptedBreaks:
       new: "method org.apache.thrift.transport.TSocket com.palantir.atlasdb.keyvalue.cassandra.InstrumentedTSocket.Factory::create(java.lang.String,\
         \ int, int)"
       justification: "revert"
+  "0.787.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.exception.checkedAdded"
+      old: "method org.apache.thrift.transport.TSocket com.palantir.atlasdb.keyvalue.cassandra.InstrumentedTSocket.Factory::create(java.lang.String,\
+        \ int, int)"
+      new: "method org.apache.thrift.transport.TSocket com.palantir.atlasdb.keyvalue.cassandra.InstrumentedTSocket.Factory::create(java.lang.String,\
+        \ int, int) throws org.apache.thrift.transport.TTransportException"
+      justification: "required for libthrift upgrade"
+  "0.792.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.cassandra.backup.CassandraRepairHelper"
+      justification: "Unused backup restore code"
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.cassandra.backup.ClusterMetadataUtils"
+      justification: "Unused backup restore code"
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.cassandra.backup.CqlCluster"
+      justification: "Unused backup restore code"
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.cassandra.backup.ImmutableRangesForRepair"
+      justification: "Unused backup restore code"
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.cassandra.backup.RangesForRepair"
+      justification: "Unused backup restore code"
+    - code: "java.class.removed"
+      old: "interface com.palantir.atlasdb.backup.KvsRunner"
+      justification: "Unused backup restore code"
+    - code: "java.method.removed"
+      old: "method java.util.Set<com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken>\
+        \ com.palantir.atlasdb.cassandra.backup.CqlSession::retrieveRowKeysAtConsistencyAll(java.util.List<com.datastax.driver.core.Statement>)"
+      justification: "Unused backup restore code"
+  "0.795.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.removed"
+      old: "method com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken::getLowerExclusive(com.google.common.collect.Range<com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken>)"
+      justification: "Removing unused ABR code"
+    - code: "java.method.removed"
+      old: "method com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::createInitialized(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig, com.palantir.refreshable.Refreshable<com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig>,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.Blacklist, com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraClientPoolMetrics)"
+      justification: "Removing unused ABR code"
+  "0.801.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter java.util.Set<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraTopologyValidator::getNewHostsWithInconsistentTopologiesAndRetry(===java.util.Set<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>===,\
+        \ java.util.Map<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer>,\
+        \ java.time.Duration, java.time.Duration)"
+      new: "parameter java.util.Set<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraTopologyValidator::getNewHostsWithInconsistentTopologiesAndRetry(===java.util.Map<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin>===, java.util.Map<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer>,\
+        \ java.time.Duration, java.time.Duration)"
+      justification: "Internal Cassandra KVS APIs"
+    - code: "java.method.returnTypeChanged"
+      old: "method com.google.common.collect.ImmutableSet<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>\
+        \ com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::getCurrentServerListFromConfig()"
+      new: "method com.google.common.collect.ImmutableMap<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin> com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::getCurrentServerListFromConfig()"
+      justification: "Internal Cassandra KVS APIs"
+    - code: "java.method.returnTypeChanged"
+      old: "method com.google.common.collect.ImmutableSet<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>\
+        \ com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::refreshTokenRangesAndGetServers()"
+      new: "method com.google.common.collect.ImmutableMap<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin> com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::refreshTokenRangesAndGetServers()"
+      justification: "Internal Cassandra KVS APIs"
+  "0.808.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.transaction.service.TransactionStatuses"
+      justification: "Internal methods"
+    - code: "java.class.removed"
+      old: "interface com.palantir.atlasdb.transaction.service.TransactionStatus.Cases<R\
+        \ extends java.lang.Object>"
+      justification: "Internal methods"
+    - code: "java.method.removed"
+      old: "method <R> R com.palantir.atlasdb.transaction.service.TransactionStatus::match(com.palantir.atlasdb.transaction.service.TransactionStatus.Cases<R>)"
+      justification: "Internal methods"
+    - code: "java.method.removed"
+      old: "method boolean com.palantir.atlasdb.transaction.service.TransactionStatus::equals(java.lang.Object)"
+      justification: "Internal methods"
+  "0.815.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.class.removed"
+      old: "interface com.palantir.atlasdb.transaction.api.expectations.ExpectationsAwareTransaction"
+      justification: "moving out of API"
+  "0.824.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.removed"
+      old: "method java.util.concurrent.ExecutorService com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService::createThreadPoolWihtoutSpans(java.lang.String,\
+        \ int, int) @ com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl"
+      justification: "Protected method"u}(jt  (d8f732c3615aaed89bbf22d2dd57bf2198b25723j  .policy.ymlj  modifiedj  Kj  Kj  K	j  ]https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/.policy.ymlj  \https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/.policy.ymlj  ohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XS  @@ -20,21 +20,21 @@ approval_rules:
       allow_contributor: false
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: two admins have approved
     options:
       allow_contributor: true
     requires:
       count: 2
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: changelog only and contributor approval
     options:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       only_changed_files:
         paths:
@@ -45,7 +45,7 @@ approval_rules:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       has_author_in:
         users: [ "svc-excavator-bot" ]
@@ -81,6 +81,7 @@ approval_rules:
           - "^versions.lock$"
           - "^internal/generated/.*"
           - "^internal/generated_src/.*"
+          - "^gradle-baseline-java/src/main/resources/checkstyle.version$"
       has_valid_signatures_by_keys:
         key_ids: ["C9AF124A484882E0"]
 u}(jt  (1b448a0fde07cfbc9657b00600f040335b3c7c84j  atlasdb-api/build.gradlej  modifiedj  Kj  Kj  Kj  lhttps://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fbuild.gradlej  khttps://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fbuild.gradlej  ~https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fbuild.gradle?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X   @@ -39,8 +39,9 @@ dependencies {
   testImplementation 'com.palantir.refreshable:refreshable'
   testImplementation 'io.dropwizard.metrics:metrics-core'
   testImplementation project(':lock-api-objects')
+    testImplementation project(path: ':flake-rule')
 
-  annotationProcessor 'org.immutables:value'
+    annotationProcessor 'org.immutables:value'
   compileOnly 'org.immutables:value::annotations'
   testCompileOnly 'org.immutables:value::annotations'
   annotationProcessor project(":atlasdb-processors")u}(jt  (0080c3f7113ff49f387d0c758020e1ca01ce5e35j  Zatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/BatchColumnRangeSelection.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FBatchColumnRangeSelection.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FBatchColumnRangeSelection.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FBatchColumnRangeSelection.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X|  @@ -22,6 +22,7 @@
 import com.palantir.atlasdb.encoding.PtBytes;
 import java.io.Serializable;
 import java.util.regex.Pattern;
+import org.checkerframework.checker.nullness.qual.Nullable;
 
 public final class BatchColumnRangeSelection implements Serializable {
     private static final long serialVersionUID = 1L;
@@ -40,8 +41,8 @@ public static BatchColumnRangeSelection create(ColumnRangeSelection columnRangeS
 
     @JsonCreator
     public static BatchColumnRangeSelection create(
-            @JsonProperty("startCol") byte[] startCol,
-            @JsonProperty("endCol") byte[] endCol,
+            @JsonProperty("startCol") byte @Nullable [] startCol,
+            @JsonProperty("endCol") byte @Nullable [] endCol,
             @JsonProperty("batchHint") int batchHint) {
         return new BatchColumnRangeSelection(new ColumnRangeSelection(startCol, endCol), batchHint);
     }u}(jt  (19e81f650612c73f16c316beabd226ea34ac6293j  Uatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/ColumnRangeSelection.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FColumnRangeSelection.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FColumnRangeSelection.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FColumnRangeSelection.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -26,6 +26,7 @@
 import java.util.Arrays;
 import java.util.Objects;
 import java.util.regex.Pattern;
+import org.checkerframework.checker.nullness.qual.Nullable;
 
 public class ColumnRangeSelection implements Serializable {
     private static final long serialVersionUID = 1L;
@@ -36,7 +37,8 @@ public class ColumnRangeSelection implements Serializable {
     private final byte[] endCol;
 
     @JsonCreator
-    public ColumnRangeSelection(@JsonProperty("startCol") byte[] startCol, @JsonProperty("endCol") byte[] endCol) {
+    public ColumnRangeSelection(
+            @JsonProperty("startCol") byte @Nullable [] startCol, @JsonProperty("endCol") byte @Nullable [] endCol) {
         this.startCol = Objects.requireNonNullElse(startCol, PtBytes.EMPTY_BYTE_ARRAY);
         this.endCol = Objects.requireNonNullElse(endCol, PtBytes.EMPTY_BYTE_ARRAY);
         if (!isValidRange(this.startCol, this.endCol)) {u}(jt  (593ff13a54924d7659ef6eb3db3436f0329ece2ej  Jatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/Namespace.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FNamespace.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FNamespace.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FNamespace.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -18,12 +18,15 @@
 import com.fasterxml.jackson.annotation.JsonCreator;
 import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonProperty;
+import com.github.benmanes.caffeine.cache.Interner;
 import com.palantir.logsafe.Preconditions;
 import java.util.Objects;
 import java.util.regex.Pattern;
 import org.apache.commons.lang3.Validate;
 
 public final class Namespace {
+    private static final Interner<String> names = Interner.newStrongInterner();
+
     public static final Namespace EMPTY_NAMESPACE = new Namespace("");
     public static final Namespace DEFAULT_NAMESPACE = new Namespace("default");
 
@@ -64,7 +67,7 @@ public static Namespace create(String name, Pattern pattern) {
 
     @JsonCreator
     private Namespace(@JsonProperty("name") String name) {
-        this.name = name;
+        this.name = names.intern(name);
     }
 
     @JsonIgnoreu}(jt  (54106dfa0477a8d02f1cf93167ddaa80b4701778j  Matlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/RangeRequest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRangeRequest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRangeRequest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRangeRequest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -352,7 +352,7 @@ public Builder retainColumns(ColumnSelection selection) {
          * this means the batch size will be whatever is passed as the batch size to
          * BatchingVisitable#batchAccept(int, com.palantir.common.base.AbortingVisitor)
          */
-        public Builder batchHint(Integer hint) {
+        public Builder batchHint(@Nullable Integer hint) {
             Preconditions.checkArgument(hint == null || hint > 0);
             batchHint = hint;
             return this;u}(jt  (3119f655157ee521b742eccfb81bf4fbbda595d2j  [atlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/RetryLimitReachedException.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRetryLimitReachedException.javal     j  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRetryLimitReachedException.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRetryLimitReachedException.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X   @@ -25,6 +25,7 @@
 import java.util.List;
 
 public class RetryLimitReachedException extends AtlasDbDependencyException implements SafeLoggable {
+
     private static final String MESSAGE = "Request was retried and failed each time for the request.";
 
     private final int numRetries;u}(jt  (3499e7ba060cf0ac331cb54b7ee0ea10a53e2cc4j  Oatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/TableReference.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FTableReference.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FTableReference.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FTableReference.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -18,6 +18,7 @@
 import com.fasterxml.jackson.annotation.JsonCreator;
 import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonProperty;
+import com.github.benmanes.caffeine.cache.Interner;
 import com.palantir.atlasdb.util.Measurable;
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
@@ -26,6 +27,8 @@
 import org.apache.commons.lang3.StringUtils;
 
 public final class TableReference implements Measurable {
+    private static final Interner<String> tableNames = Interner.newWeakInterner();
+
     private final Namespace namespace;
     private final String tableName;
 
@@ -78,7 +81,7 @@ public static TableReference createUnsafe(String fullTableName) {
     private TableReference(
             @JsonProperty("namespace") Namespace namespace, @JsonProperty("tablename") String tableName) {
         this.namespace = namespace;
-        this.tableName = tableName;
+        this.tableName = tableNames.intern(tableName);
     }
 
     /**u}(jt  (198777a0d5f59dbca9c418c827b918a2ff4645c8j  Yatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/service/TransactionStatus.javaj  modifiedj  K.j  K"j  KPj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionStatus.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionStatus.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionStatus.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X]  @@ -16,42 +16,54 @@
 
 package com.palantir.atlasdb.transaction.service;
 
-import org.derive4j.Data;
-
-/**
- * Status of a transaction can be one of the following -
- * 1. IN_PROGRESS, if that the transaction with this start timestamp has started but has not committed yet,
- * 2. COMMITTED (with a commit timestamp), if the transaction with this start timestamp has been committed,
- * 3. ABORTED, if the transaction with this start timestamp has been aborted,
- * 4. UNKNOWN, if the transactions table does not have information about the start timestamp. (This may,
- *    for example, be because the transaction is known to have concluded and the transactions table has been swept).
- * */
-@Data
+import com.palantir.common.annotations.ImmutablesStyles.PackageVisibleImmutablesStyle;
+import java.util.Optional;
+import org.immutables.value.Value;
+
 public interface TransactionStatus {
-    interface Cases<R> {
-        /**
-         * For transactions on schema version >= 4, an inProgress state has been introduced. The state will be set in
-         * the transactions table against the start timestamp. The state will be written before writing to the kvs.
-         *
-         * Previously, absence of any state for a transaction would indicate that it is in progress.
-         * */
-        R inProgress();
-
-        R committed(long commitTimestamp);
-
-        R aborted();
-
-        /**
-         * From transaction schema version 4, we have added the ability to truncate the transactions table i.e. it
-         * would be possible that the transactions table is not the source of truth for state of a transaction.
-         *
-         * Note that this state is not expected for transaction schema versions < 4.
-         * */
-        R unknown();
+
+    static TransactionStatus inProgress() {
+        return ImmutableInProgress.of();
+    }
+
+    static TransactionStatus aborted() {
+        return ImmutableAborted.of();
+    }
+
+    static TransactionStatus committed(long commitTimestamp) {
+        return ImmutableCommitted.of(commitTimestamp);
+    }
+
+    static TransactionStatus unknown() {
+        return ImmutableUnknown.of();
+    }
+
+    static Optional<Long> getCommitTimestamp(TransactionStatus status) {
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return Optional.of(committed.commitTimestamp());
+        } else {
+            return Optional.empty();
+        }
     }
 
-    <R> R match(Cases<R> cases);
+    @Value.Immutable(singleton = true)
+    @PackageVisibleImmutablesStyle
+    interface InProgress extends TransactionStatus {}
+
+    @Value.Immutable(singleton = true)
+    @PackageVisibleImmutablesStyle
+    interface Aborted extends TransactionStatus {}
+
+    @Value.Immutable(builder = false)
+    @PackageVisibleImmutablesStyle
+    interface Committed extends TransactionStatus {
+
+        @Value.Parameter
+        long commitTimestamp();
+    }
 
-    @Override
-    boolean equals(Object other);
+    @Value.Immutable(singleton = true)
+    @PackageVisibleImmutablesStyle
+    interface Unknown extends TransactionStatus {}
 }u}(jt  (362d5a84116dff0a87ba07cf334ff2f9afa04b47j  Hatlasdb-api/src/main/java/com/palantir/atlasdb/util/MetricNameCache.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMetricNameCache.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMetricNameCache.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMetricNameCache.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XD  @@ -32,7 +32,7 @@ final class MetricNameCache {
     private final LoadingCache<Key, MetricName> cache;
 
     MetricNameCache() {
-        this.cache = Caffeine.newBuilder().build(new CacheLoader<Key, MetricName>() {
+        this.cache = Caffeine.newBuilder().build(new CacheLoader<>() {
             @Nullable
             @Override
             public MetricName load(@Nonnull Key key) {
@@ -52,7 +52,7 @@ void invalidate() {
         cache.invalidateAll();
     }
 
-    @Value.Immutable
+    @Value.Immutable(lazyhash = true)
     interface Key {
 
         @Value.Parameteru}(jt  (214be96cfd7efdeab8470f059b1a8c3b585f08c1j  Gatlasdb-api/src/main/java/com/palantir/atlasdb/util/MetricsManager.javaj  modifiedj  Kj  KAj  KWj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMetricsManager.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMetricsManager.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMetricsManager.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -19,7 +19,6 @@
 import com.codahale.metrics.Gauge;
 import com.codahale.metrics.Histogram;
 import com.codahale.metrics.Meter;
-import com.codahale.metrics.Metric;
 import com.codahale.metrics.MetricRegistry;
 import com.codahale.metrics.Timer;
 import com.google.common.collect.ImmutableMap;
@@ -122,7 +121,7 @@ public TaggedMetricSet getPublishableMetrics() {
     }
 
     public void registerMetric(Class<?> clazz, String metricName, Gauge<?> gauge) {
-        registerMetricWithFqn(MetricRegistry.name(clazz, metricName), gauge);
+        registerOrGet(clazz, metricName, gauge, Map.of());
     }
 
     /**
@@ -160,80 +159,47 @@ public Map<String, String> getTableNameTagFor(@Nullable TableReference tableRef)
         return ImmutableMap.of("tableName", tableName);
     }
 
-    private void registerMetricWithFqn(String fullyQualifiedMetricName, Metric metric) {
-        try {
-            metricRegistry.register(fullyQualifiedMetricName, metric);
-            registerMetricName(fullyQualifiedMetricName);
-        } catch (Exception e) {
-            // Primarily to handle integration tests that instantiate this class multiple times in a row
-            log.warn(
-                    "Unable to register metric {}. This may occur if you are running integration tests that "
-                            + "don't clean up completely after themselves, or if you are trying to use multiple "
-                            + "TransactionManagers concurrently in the same JVM (e.g. in a KVS migration). If this is "
-                            + "not the case, this is likely to be a product and/or an AtlasDB bug. This is no cause "
-                            + "for immediate alarm, but it does mean that your telemetry for the aforementioned metric "
-                            + "may be reported incorrectly. Turn on TRACE logging to see the full exception.",
-                    SafeArg.of("metricName", fullyQualifiedMetricName));
-            log.trace("Full exception follows:", e);
-        }
-    }
-
+    /**
+     * @deprecated use {@link #registerOrGet(Class, String, Gauge, Map)}
+     */
+    @Deprecated
     public <M extends Gauge<?>> M registerOrGetGauge(Class<?> clazz, String metricName, Supplier<M> gaugeSupplier) {
-        String fullyQualifiedGaugeName = MetricRegistry.name(clazz, metricName);
-        M gauge = (M) metricRegistry.gauge(fullyQualifiedGaugeName, gaugeSupplier::get);
-        registerMetricName(fullyQualifiedGaugeName);
-        return gauge;
+        return (M) registerOrGet(clazz, metricName, (Gauge<?>) gaugeSupplier.get(), Map.of());
     }
 
     public Histogram registerOrGetHistogram(Class<?> clazz, String metricName) {
-        return registerOrGetHistogram(MetricRegistry.name(clazz, metricName));
+        return registerOrGetTaggedHistogram(clazz, metricName, Map.of());
     }
 
+    /**
+     * @deprecated use {@link #registerOrGetTaggedHistogram(Class, String, Map, Supplier)}
+     */
+    @Deprecated
     public Histogram registerOrGetHistogram(Class<?> clazz, String metricName, Supplier<Histogram> histogramSupplier) {
-        String fullyQualifiedHistogramName = MetricRegistry.name(clazz, metricName);
-        Histogram histogram = metricRegistry.histogram(fullyQualifiedHistogramName, histogramSupplier::get);
-        registerMetricName(fullyQualifiedHistogramName);
-        return histogram;
-    }
-
-    private Histogram registerOrGetHistogram(String fullyQualifiedHistogramName) {
-        Histogram histogram = metricRegistry.histogram(fullyQualifiedHistogramName);
-        registerMetricName(fullyQualifiedHistogramName);
-        return histogram;
+        return registerOrGetTaggedHistogram(clazz, metricName, Map.of(), histogramSupplier);
     }
 
     public Timer registerOrGetTimer(Class<?> clazz, String metricName) {
-        return registerOrGetTimer(MetricRegistry.name(clazz, metricName));
-    }
-
-    private Timer registerOrGetTimer(String fullyQualifiedHistogramName) {
-        Timer timer = metricRegistry.timer(fullyQualifiedHistogramName);
-        registerMetricName(fullyQualifiedHistogramName);
+        MetricName name = getTaggedMetricName(clazz, metricName, Map.of());
+        Timer timer = taggedMetricRegistry.timer(name);
+        registerTaggedMetricName(name);
         return timer;
     }
 
     public Counter registerOrGetCounter(Class<?> clazz, String counterName) {
-        return registerOrGetCounter(MetricRegistry.name(clazz, "", counterName));
-    }
-
-    private Counter registerOrGetCounter(String fullyQualifiedCounterName) {
-        Counter counter = metricRegistry.counter(fullyQualifiedCounterName);
-        registerMetricName(fullyQualifiedCounterName);
-        return counter;
+        return registerOrGetTaggedCounter(clazz, counterName, Map.of());
     }
 
     public Meter registerOrGetMeter(Class<?> clazz, String meterName) {
-        return registerOrGetMeter(MetricRegistry.name(clazz, "", meterName));
+        return registerOrGetTaggedMeter(clazz, meterName, Map.of());
     }
 
+    /**
+     * @deprecated use {@link #registerOrGetTaggedMeter(Class, String, Map)}
+     */
+    @Deprecated
     public Meter registerOrGetMeter(Class<?> clazz, String metricPrefix, String meterName) {
-        return registerOrGetMeter(MetricRegistry.name(clazz, metricPrefix, meterName));
-    }
-
-    private Meter registerOrGetMeter(String fullyQualifiedMeterName) {
-        Meter meter = metricRegistry.meter(fullyQualifiedMeterName);
-        registerMetricName(fullyQualifiedMeterName);
-        return meter;
+        return registerOrGetTaggedMeter(clazz, MetricRegistry.name(metricPrefix, meterName), Map.of());
     }
 
     public Meter registerOrGetTaggedMeter(Class<?> clazz, String metricName, Map<String, String> tags) {
@@ -265,15 +231,6 @@ public Counter registerOrGetTaggedCounter(Class<?> clazz, String metricName, Map
         return counter;
     }
 
-    private void registerMetricName(String fullyQualifiedMeterName) {
-        lock.readLock().lock();
-        try {
-            registeredMetrics.add(fullyQualifiedMeterName);
-        } finally {
-            lock.readLock().unlock();
-        }
-    }
-
     private void registerTaggedMetricName(MetricName name) {
         lock.readLock().lock();
         try {u}(jt  (c2c86be9a9da93bcfb3eb43dd67f55ea0b9f9d51j  Ratlasdb-api/src/test/java/com/palantir/atlasdb/keyvalue/api/CellReferenceTest.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellReferenceTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellReferenceTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellReferenceTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X~  @@ -21,19 +21,25 @@
 
 import com.google.common.math.IntMath;
 import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.flake.FlakeRetryingRule;
+import com.palantir.flake.ShouldRetry;
 import java.util.List;
 import java.util.Map;
 import java.util.concurrent.ThreadLocalRandom;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 import org.assertj.core.data.Percentage;
+import org.junit.Rule;
 import org.junit.Test;
 
 public class CellReferenceTest {
     private static final TableReference TABLE = createFromFullyQualifiedName("fixed.table");
     private static final byte[] ROW = PtBytes.toBytes("row");
     private static final byte[] COL = PtBytes.toBytes("col");
 
+    @Rule
+    public final FlakeRetryingRule retryingRule = new FlakeRetryingRule();
+
     @Test
     public void dynamicSequentialColumns() {
         int totalCount = 20_000;
@@ -44,6 +50,7 @@ public void dynamicSequentialColumns() {
         assertDistributionUniform(hashes, totalCount);
     }
 
+    @ShouldRetry
     @Test
     public void dynamicRandomColumns() {
         ThreadLocalRandom random = ThreadLocalRandom.current();u}(jt  (53509f2b6df2a34a1c1eb9aff6769f11f64e0441j  -atlasdb-backup/baseline-class-uniqueness.lockj  removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fbaseline-class-uniqueness.lockj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fbaseline-class-uniqueness.lockj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fbaseline-class-uniqueness.lock?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  XB  @@ -1,11 +0,0 @@
-# Danger! Multiple jars contain identically named classes. This may cause different behaviour depending on classpath ordering.
-# Run ./gradlew checkClassUniqueness --write-locks to update this file
-
-## runtimeClasspath
-[commons-logging:commons-logging, org.slf4j:jcl-over-slf4j]
-  - org.apache.commons.logging.Log
-  - org.apache.commons.logging.LogConfigurationException
-  - org.apache.commons.logging.LogFactory
-  - org.apache.commons.logging.impl.NoOpLog
-  - org.apache.commons.logging.impl.SimpleLog
-  - org.apache.commons.logging.impl.SimpleLog$1u}(jt  (ef833a324cd55291b26e6a85fe96a0f12bbeff3bj  atlasdb-backup/build.gradlej  removedj  K j  K!j  K!j  ohttps://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fbuild.gradlej  nhttps://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fbuild.gradlej  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fbuild.gradle?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  XG  @@ -1,33 +0,0 @@
-apply from: "../gradle/shared.gradle"
-
-dependencies {
-    implementation 'com.datastax.cassandra:cassandra-driver-core'
-    implementation 'com.fasterxml.jackson.core:jackson-databind'
-    implementation 'com.google.guava:guava'
-    implementation 'com.palantir.common:streams'
-    implementation 'com.palantir.conjure.java.api:service-config'
-    implementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
-    implementation 'com.palantir.dialogue:dialogue-clients'
-    implementation 'com.palantir.refreshable:refreshable'
-    implementation 'com.palantir.safe-logging:safe-logging'
-    implementation 'com.palantir.tokens:auth-tokens'
-    implementation 'org.immutables:value'
-    implementation 'org.immutables:value::annotations'
-    implementation project(':atlasdb-api')
-    implementation project(':atlasdb-cassandra')
-    implementation project(':atlasdb-client')
-    implementation project(':atlasdb-config')
-    implementation project(':atlasdb-coordination-impl')
-    implementation project(':atlasdb-impl-shared')
-    implementation project(':commons-annotations')
-    implementation project(':commons-executors')
-    implementation project(':timelock-api:timelock-api-dialogue')
-    implementation project(':timelock-api:timelock-api-objects')
-    implementation project(':timestamp-impl')
-
-    testImplementation 'com.palantir.safe-logging:preconditions-assertj'
-    testImplementation 'org.mockito:mockito-core'
-    testImplementation 'commons-codec:commons-codec'
-
-    annotationProcessor 'org.immutables:value'
-}u}(jt  (f4a7d5b83b023a8dd0a88c61f13c9cb3c8ccf254j  Patlasdb-backup/src/main/java/com/palantir/atlasdb/backup/AtlasBackupService.javaj  removedj  K j  M=j  M=j  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupService.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupService.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupService.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  XO?  @@ -1,317 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Sets;
-import com.google.common.util.concurrent.Futures;
-import com.google.common.util.concurrent.ListenableFuture;
-import com.google.common.util.concurrent.MoreExecutors;
-import com.palantir.atlasdb.backup.api.AtlasBackupClient;
-import com.palantir.atlasdb.backup.api.AtlasBackupClientBlocking;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompleteBackupRequest;
-import com.palantir.atlasdb.backup.api.CompleteBackupResponse;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.InProgressBackupToken;
-import com.palantir.atlasdb.backup.api.PrepareBackupRequest;
-import com.palantir.atlasdb.backup.api.PrepareBackupResponse;
-import com.palantir.atlasdb.backup.api.RefreshBackupRequest;
-import com.palantir.atlasdb.futures.AtlasFutures;
-import com.palantir.atlasdb.http.AtlasDbRemotingConstants;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.transaction.api.TransactionManager;
-import com.palantir.common.concurrent.NamedThreadFactory;
-import com.palantir.common.concurrent.PTExecutors;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.conjure.java.api.config.service.ServicesConfigBlock;
-import com.palantir.conjure.java.api.config.service.UserAgent;
-import com.palantir.dialogue.clients.DialogueClients;
-import com.palantir.dialogue.clients.DialogueClients.ReloadingFactory;
-import com.palantir.lock.client.LockRefresher;
-import com.palantir.lock.v2.LockLeaseRefresher;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import com.palantir.refreshable.Refreshable;
-import com.palantir.tokens.auth.AuthHeader;
-import java.io.Closeable;
-import java.nio.file.Path;
-import java.util.Map;
-import java.util.Objects;
-import java.util.Optional;
-import java.util.Set;
-import java.util.concurrent.ConcurrentHashMap;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.ScheduledExecutorService;
-import java.util.function.Function;
-import java.util.stream.Collectors;
-
-/**
- * Service for Atlas backup tasks.
- * While a single backup operation may encompass multiple namespaces, it is essential that each namespace in a given
- * request corresponds to the same TimeLock service, since we support a single AtlasBackupClient (this exists on
- * TimeLock rather than on the backup client side). If the set of AtlasServices in a given request contains
- * duplicated namespaces (e.g. {(123, namespace), (456, namespace)}), then a SafeIllegalArgumentException will be
- * thrown.
- */
-public final class AtlasBackupService implements Closeable {
-    private static final SafeLogger log = SafeLoggerFactory.get(AtlasBackupService.class);
-
-    private static final long REFRESH_INTERVAL_MILLIS = 5_000L;
-
-    private final AuthHeader authHeader;
-    private final AtlasBackupClient atlasBackupClient;
-    private final CoordinationServiceRecorder coordinationServiceRecorder;
-    private final BackupPersister backupPersister;
-    private final Map<AtlasService, InProgressBackupToken> inProgressBackups;
-    private final int completeBackupNumThreads;
-    private final LockRefresher<InProgressBackupToken> lockRefresher;
-    private final ScheduledExecutorService refreshExecutor;
-
-    private volatile boolean isClosed = false;
-
-    @VisibleForTesting
-    AtlasBackupService(
-            AuthHeader authHeader,
-            AtlasBackupClient atlasBackupClient,
-            CoordinationServiceRecorder coordinationServiceRecorder,
-            BackupPersister backupPersister,
-            LockRefresher<InProgressBackupToken> lockRefresher,
-            ScheduledExecutorService refreshExecutor,
-            int completeBackupNumThreads) {
-        this.authHeader = authHeader;
-        this.atlasBackupClient = atlasBackupClient;
-        this.coordinationServiceRecorder = coordinationServiceRecorder;
-        this.backupPersister = backupPersister;
-        this.lockRefresher = lockRefresher;
-        this.refreshExecutor = refreshExecutor;
-        this.inProgressBackups = new ConcurrentHashMap<>();
-        this.completeBackupNumThreads = completeBackupNumThreads;
-    }
-
-    public static AtlasBackupService create(
-            AuthHeader authHeader,
-            Refreshable<ServicesConfigBlock> servicesConfigBlock,
-            String serviceName,
-            Function<AtlasService, Path> backupFolderFactory,
-            Function<AtlasService, KeyValueService> keyValueServiceFactory,
-            int completeBackupNumThreads) {
-        ReloadingFactory reloadingFactory = DialogueClients.create(servicesConfigBlock)
-                .withUserAgent(UserAgent.of(AtlasDbRemotingConstants.ATLASDB_HTTP_CLIENT_AGENT));
-
-        AtlasBackupClient atlasBackupClient = new DialogueAdaptingAtlasBackupClient(
-                reloadingFactory.get(AtlasBackupClientBlocking.class, serviceName));
-
-        KvsRunner kvsRunner = KvsRunner.create(keyValueServiceFactory);
-        return createAtlasBackupService(
-                authHeader, atlasBackupClient, backupFolderFactory, kvsRunner, completeBackupNumThreads);
-    }
-
-    public static AtlasBackupService createForTests(
-            AuthHeader authHeader,
-            AtlasBackupClient atlasBackupClient,
-            TransactionManager transactionManager,
-            Function<AtlasService, Path> backupFolderFactory) {
-        return createAtlasBackupService(
-                authHeader, atlasBackupClient, backupFolderFactory, KvsRunner.create(transactionManager), 10);
-    }
-
-    private static AtlasBackupService createAtlasBackupService(
-            AuthHeader authHeader,
-            AtlasBackupClient atlasBackupClient,
-            Function<AtlasService, Path> backupFolderFactory,
-            KvsRunner kvsRunner,
-            int completeBackupNumThreads) {
-        BackupPersister backupPersister = new ExternalBackupPersister(backupFolderFactory);
-        CoordinationServiceRecorder coordinationServiceRecorder =
-                new CoordinationServiceRecorder(kvsRunner, backupPersister);
-        ScheduledExecutorService refreshExecutor =
-                PTExecutors.newSingleThreadScheduledExecutor(new NamedThreadFactory("backupLockRefresher", true));
-        LockRefresher<InProgressBackupToken> lockRefresher =
-                getLockRefresher(authHeader, atlasBackupClient, refreshExecutor);
-
-        return new AtlasBackupService(
-                authHeader,
-                atlasBackupClient,
-                coordinationServiceRecorder,
-                backupPersister,
-                lockRefresher,
-                refreshExecutor,
-                completeBackupNumThreads);
-    }
-
-    private static LockRefresher<InProgressBackupToken> getLockRefresher(
-            AuthHeader authHeader, AtlasBackupClient atlasBackupClient, ScheduledExecutorService refreshExecutor) {
-        LockLeaseRefresher<InProgressBackupToken> lockLeaseRefresher = tokens -> atlasBackupClient
-                .refreshBackup(authHeader, RefreshBackupRequest.of(tokens))
-                .getRefreshedTokens();
-        return new LockRefresher<>(refreshExecutor, lockLeaseRefresher, REFRESH_INTERVAL_MILLIS);
-    }
-
-    /**
-     * Cleans up the backup operation. This will release all immutable timestamp locks.
-     * Must be called after any failure; after calling this, completeBackup will fail for any namespace which
-     * has not yet reached that stage.
-     */
-    @Override
-    public void close() {
-        log.info(
-                "Cleaning up backup. This will remove all record of in-progress backups on this node.",
-                SafeArg.of("inProgressBackupCount", inProgressBackups.size()),
-                SafeArg.of("servicesWithInProgressBackups", ImmutableSet.copyOf(inProgressBackups.keySet())));
-        lockRefresher.unregisterLocks(ImmutableSet.copyOf(inProgressBackups.values()));
-        inProgressBackups.clear();
-        lockRefresher.close();
-
-        // Clean up the refreshing thread
-        if (!refreshExecutor.isShutdown()) {
-            refreshExecutor.shutdownNow();
-        }
-        isClosed = true;
-    }
-
-    public Set<AtlasService> prepareBackup(Set<AtlasService> atlasServices) {
-        throwIfClosed(atlasServices);
-
-        Set<AtlasService> inProgressAndProposedBackups = Sets.union(atlasServices, inProgressBackups.keySet());
-        AtlasServices.throwIfAtlasServicesCollide(inProgressAndProposedBackups);
-        Map<Namespace, AtlasService> namespaceToServices = KeyedStream.of(atlasServices)
-                .mapKeys(AtlasService::getNamespace)
-                .collectToMap();
-        PrepareBackupRequest request = PrepareBackupRequest.of(namespaceToServices.keySet());
-        PrepareBackupResponse response = atlasBackupClient.prepareBackup(authHeader, request);
-
-        Map<AtlasService, InProgressBackupToken> tokensPerService = KeyedStream.of(response.getSuccessful())
-                .mapKeys(token -> namespaceToServices.get(token.getNamespace()))
-                .collectToMap();
-        KeyedStream.stream(tokensPerService).forEach(this::storeBackupToken);
-        return tokensPerService.keySet();
-    }
-
-    private void storeBackupToken(AtlasService atlasService, InProgressBackupToken backupToken) {
-        inProgressBackups.put(atlasService, backupToken);
-        backupPersister.storeImmutableTimestamp(atlasService, backupToken);
-        lockRefresher.registerLocks(ImmutableSet.of(backupToken));
-    }
-
-    /**
-     * Completes backup for the given set of atlas services.
-     * This will store metadata about the completed backup via the BackupPersister.
-     * <p>
-     * In order to do this, we must unlock the immutable timestamp for each service. If {@link #prepareBackup(Set)}
-     * was not called, we will not have a record of the in-progress backup (and will not have been refreshing
-     * its lock anyway). Thus, we attempt to complete backup only for those atlas services where we have the in-progress
-     * backup stored.
-     *
-     * @return the atlas services whose backups were successfully completed
-     */
-    public Set<AtlasService> completeBackup(Set<AtlasService> atlasServices) {
-        throwIfClosed(atlasServices);
-
-        AtlasServices.throwIfAtlasServicesCollide(atlasServices);
-
-        Map<AtlasService, InProgressBackupToken> knownBackups = KeyedStream.of(atlasServices)
-                .map((Function<AtlasService, InProgressBackupToken>) inProgressBackups::remove)
-                .filter(Objects::nonNull)
-                .collectToMap();
-        Set<InProgressBackupToken> tokens = ImmutableSet.copyOf(knownBackups.values());
-
-        if (tokens.isEmpty()) {
-            log.error(
-                    "Complete backup called, but no in progress backups were found.",
-                    SafeArg.of("atlasServices", atlasServices));
-            return ImmutableSet.of();
-        }
-
-        lockRefresher.unregisterLocks(tokens);
-
-        Set<AtlasService> atlasServicesWithInProgressBackups = knownBackups.keySet();
-        if (tokens.size() < atlasServices.size()) {
-            Set<AtlasService> atlasServicesWithNoInProgressBackup =
-                    Sets.difference(atlasServices, atlasServicesWithInProgressBackups);
-            log.error(
-                    "In progress backups were not found for some atlasServices. We will not complete backup for these.",
-                    SafeArg.of("numAtlasServicesWithBackup", tokens.size()),
-                    SafeArg.of("numAtlasServicesWithoutBackup", atlasServicesWithNoInProgressBackup.size()),
-                    SafeArg.of("atlasServicesWithoutBackup", atlasServicesWithNoInProgressBackup),
-                    SafeArg.of("allRequestedAtlasServices", atlasServices));
-        }
-
-        Map<Namespace, AtlasService> namespaceToServices = KeyedStream.of(atlasServices)
-                .mapKeys(AtlasService::getNamespace)
-                .collectToMap();
-        CompleteBackupRequest request = CompleteBackupRequest.of(tokens);
-        CompleteBackupResponse response = atlasBackupClient.completeBackup(authHeader, request);
-
-        Map<AtlasService, CompletedBackup> successfulBackups = KeyedStream.of(response.getSuccessfulBackups())
-                .mapKeys(token -> namespaceToServices.get(token.getNamespace()))
-                .collectToMap();
-        Set<AtlasService> successfullyStoredBackups = storeCompletedBackups(successfulBackups);
-
-        if (successfullyStoredBackups.size() < atlasServicesWithInProgressBackups.size()) {
-            Set<AtlasService> failedAtlasServices =
-                    Sets.difference(atlasServicesWithInProgressBackups, successfullyStoredBackups);
-            log.error(
-                    "Backup did not complete successfully for all atlasServices. Check TimeLock logs to debug.",
-                    SafeArg.of("failedAtlasServices", failedAtlasServices),
-                    SafeArg.of("successfulAtlasServices", successfullyStoredBackups),
-                    SafeArg.of("atlasServicesWithoutBackup", atlasServicesWithInProgressBackups));
-        }
-
-        return successfulBackups.keySet();
-    }
-
-    private void throwIfClosed(Set<AtlasService> atlasServices) {
-        if (isClosed) {
-            throw new SafeIllegalStateException(
-                    "The AtlasBackupService is closed.", SafeArg.of("atlasServices", atlasServices));
-        }
-    }
-
-    private Set<AtlasService> storeCompletedBackups(Map<AtlasService, CompletedBackup> successfulBackups) {
-        ExecutorService executorService = PTExecutors.newFixedThreadPool(completeBackupNumThreads);
-        Map<AtlasService, ListenableFuture<Optional<Boolean>>> storedBackups = KeyedStream.stream(successfulBackups)
-                .map((atlasService, completeBackup) -> Futures.submit(
-                        () -> Optional.of(storeCompletedBackup(atlasService, completeBackup)), executorService))
-                .collectToMap();
-        ListenableFuture<Map<AtlasService, Boolean>> allStorageTasks =
-                AtlasFutures.allOptionalsAsMap(storedBackups, MoreExecutors.directExecutor());
-
-        // Waits for future to complete
-        Map<AtlasService, Boolean> storageTaskResults = AtlasFutures.getUnchecked(allStorageTasks);
-        executorService.shutdown();
-        return KeyedStream.stream(storageTaskResults)
-                .filter(Boolean::booleanValue)
-                .keys()
-                .collect(Collectors.toSet());
-    }
-
-    private Boolean storeCompletedBackup(AtlasService atlasService, CompletedBackup completedBackup) {
-        try {
-            coordinationServiceRecorder.storeFastForwardState(atlasService, completedBackup);
-            backupPersister.storeCompletedBackup(atlasService, completedBackup);
-            return true;
-        } catch (Exception ex) {
-            log.warn("Failed to store completed backup for AtlasService", SafeArg.of("atlasService", atlasService), ex);
-            return false;
-        }
-    }
-}u}(jt  (a06a4a8c99059445d6acf8d223d050ea93a25fe6j  Qatlasdb-backup/src/main/java/com/palantir/atlasdb/backup/AtlasRestoreService.javaj  removedj  K j  MGj  MGj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreService.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreService.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreService.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  XD  @@ -1,327 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.datastax.driver.core.policies.DefaultRetryPolicy;
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Sets;
-import com.palantir.atlasdb.backup.api.AtlasRestoreClient;
-import com.palantir.atlasdb.backup.api.AtlasRestoreClientBlocking;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompleteRestoreRequest;
-import com.palantir.atlasdb.backup.api.CompleteRestoreResponse;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
-import com.palantir.atlasdb.cassandra.backup.CassandraRepairHelper;
-import com.palantir.atlasdb.cassandra.backup.RangesForRepair;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.http.AtlasDbRemotingConstants;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.cassandra.async.client.creation.ClusterFactory.CassandraClusterConfig;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.SuccessfulDisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.UnsuccessfulDisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementService;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementServiceBlocking;
-import com.palantir.atlasdb.transaction.api.TransactionManager;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.conjure.java.api.config.service.ServicesConfigBlock;
-import com.palantir.conjure.java.api.config.service.UserAgent;
-import com.palantir.dialogue.clients.DialogueClients;
-import com.palantir.logsafe.Preconditions;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import com.palantir.refreshable.Refreshable;
-import com.palantir.timestamp.FullyBoundedTimestampRange;
-import com.palantir.tokens.auth.AuthHeader;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.function.BiConsumer;
-import java.util.function.Function;
-import java.util.stream.Collectors;
-
-/**
- *  Service for Atlas restore tasks.
- *
- *  As with backup, each namespace must use the same TimeLock service - see javadoc for {@link AtlasBackupService}.
- */
-public class AtlasRestoreService {
-    private static final SafeLogger log = SafeLoggerFactory.get(AtlasRestoreService.class);
-
-    private final AuthHeader authHeader;
-    private final AtlasRestoreClient atlasRestoreClient;
-    private final TimeLockManagementService timeLockManagementService;
-    private final BackupPersister backupPersister;
-    private final CassandraRepairHelper cassandraRepairHelper;
-
-    @VisibleForTesting
-    AtlasRestoreService(
-            AuthHeader authHeader,
-            AtlasRestoreClient atlasRestoreClient,
-            TimeLockManagementService timeLockManagementService,
-            BackupPersister backupPersister,
-            CassandraRepairHelper cassandraRepairHelper) {
-        this.authHeader = authHeader;
-        this.atlasRestoreClient = atlasRestoreClient;
-        this.timeLockManagementService = timeLockManagementService;
-        this.backupPersister = backupPersister;
-        this.cassandraRepairHelper = cassandraRepairHelper;
-    }
-
-    public static AtlasRestoreService create(
-            AuthHeader authHeader,
-            Refreshable<ServicesConfigBlock> servicesConfigBlock,
-            String serviceName,
-            BackupPersister backupPersister,
-            Function<AtlasService, CassandraClusterConfig> cassandraClusterConfigFactory,
-            Function<AtlasService, Refreshable<CassandraServersConfig>> refreshableCassandraServersConfigFactory,
-            Function<AtlasService, KeyValueService> keyValueServiceFactory) {
-        DialogueClients.ReloadingFactory reloadingFactory = DialogueClients.create(servicesConfigBlock)
-                .withUserAgent(UserAgent.of(AtlasDbRemotingConstants.ATLASDB_HTTP_CLIENT_AGENT));
-        AtlasRestoreClient atlasRestoreClient = new DialogueAdaptingAtlasRestoreClient(
-                reloadingFactory.get(AtlasRestoreClientBlocking.class, serviceName));
-        TimeLockManagementService timeLockManagementService = new DialogueAdaptingTimeLockManagementService(
-                reloadingFactory.get(TimeLockManagementServiceBlocking.class, serviceName));
-
-        CassandraRepairHelper cassandraRepairHelper = new CassandraRepairHelper(
-                KvsRunner.create(keyValueServiceFactory),
-                cassandraClusterConfigFactory,
-                refreshableCassandraServersConfigFactory);
-
-        return new AtlasRestoreService(
-                authHeader, atlasRestoreClient, timeLockManagementService, backupPersister, cassandraRepairHelper);
-    }
-
-    public static AtlasRestoreService createForTests(
-            AuthHeader authHeader,
-            AtlasRestoreClient atlasRestoreClient,
-            TimeLockManagementService timeLockManagementService,
-            BackupPersister backupPersister,
-            TransactionManager transactionManager,
-            Function<AtlasService, CassandraClusterConfig> cassandraClusterConfigFactory,
-            Function<AtlasService, Refreshable<CassandraServersConfig>> refreshableCassandraServersConfigFactory) {
-        CassandraRepairHelper cassandraRepairHelper = new CassandraRepairHelper(
-                KvsRunner.create(transactionManager),
-                cassandraClusterConfigFactory,
-                refreshableCassandraServersConfigFactory);
-
-        return new AtlasRestoreService(
-                authHeader, atlasRestoreClient, timeLockManagementService, backupPersister, cassandraRepairHelper);
-    }
-
-    /**
-     * Disables TimeLock on all nodes for the given atlasServices.
-     * This will fail if any atlasService is already disabled, unless it was disabled with the provided backupId.
-     * AtlasServices for which we don't have a recorded backup will be ignored.
-     *
-     * @param restoreRequests the requests to prepare.
-     * @param backupId a unique identifier for this request (uniquely identifies the backup to which we're restoring)
-     *
-     * @return the atlasServices successfully disabled.
-     */
-    public Set<AtlasService> prepareRestore(Set<RestoreRequest> restoreRequests, String backupId) {
-        validateRestoreRequests(restoreRequests);
-        Map<RestoreRequest, CompletedBackup> completedBackups = getCompletedBackups(restoreRequests);
-        Set<AtlasService> atlasServicesToRestore = getAtlasServicesToRestore(completedBackups);
-        Preconditions.checkArgument(
-                atlasServicesToRestore.size() == completedBackups.size(),
-                "Attempting to restore multiple atlasServices into the same atlasService! "
-                        + "This will cause severe data corruption.",
-                SafeArg.of("restoreRequests", restoreRequests));
-
-        Set<Namespace> namespacesToRestore =
-                atlasServicesToRestore.stream().map(AtlasService::getNamespace).collect(Collectors.toSet());
-        DisableNamespacesRequest request = DisableNamespacesRequest.of(namespacesToRestore, backupId);
-        DisableNamespacesResponse response = timeLockManagementService.disableTimelock(authHeader, request);
-        return response.accept(new DisableNamespacesResponse.Visitor<>() {
-            @Override
-            public Set<AtlasService> visitSuccessful(SuccessfulDisableNamespacesResponse value) {
-                return atlasServicesToRestore;
-            }
-
-            @Override
-            public Set<AtlasService> visitUnsuccessful(UnsuccessfulDisableNamespacesResponse value) {
-                log.error(
-                        "Failed to disable namespaces prior to restore",
-                        SafeArg.of("requests", restoreRequests),
-                        SafeArg.of("response", value));
-                return ImmutableSet.of();
-            }
-
-            @Override
-            public Set<AtlasService> visitUnknown(String unknownType) {
-                throw new SafeIllegalStateException(
-                        "Unknown DisableNamespacesResponse", SafeArg.of("unknownType", unknownType));
-            }
-        });
-    }
-
-    /**
-     *  Returns the set of namespaces for which we successfully repaired internal tables.
-     *  Only namespaces for which a known backup exists will be repaired.
-     *  Namespaces are repaired serially. If repairTable throws an exception, then this will propagate back to the
-     *  caller. In such cases, some namespaces may not have been repaired.
-     *
-     * @param restoreRequests the repair requests.
-     * @param repairTable supplied function which is expected to repair the given ranges.
-     *
-     * @return the set of namespaces for which we issued a repair command via the provided Consumer.
-     */
-    public Set<AtlasService> repairInternalTables(
-            Set<RestoreRequest> restoreRequests, BiConsumer<String, RangesForRepair> repairTable) {
-        validateRestoreRequests(restoreRequests);
-        Map<RestoreRequest, CompletedBackup> completedBackups = getCompletedBackups(restoreRequests);
-        Set<AtlasService> namespacesToRepair = getAtlasServicesToRestore(completedBackups);
-        repairTables(repairTable, completedBackups, namespacesToRepair);
-        return namespacesToRepair;
-    }
-
-    /**
-     * Completes the restore process for the requested atlasServices.
-     * This includes fast-forwarding the timestamp, and then re-enabling the TimeLock namespaces.
-     *
-     * @param restoreRequests the requests to complete.
-     * @param backupId the backup identifier, which must match the one given to {@link #prepareRestore(Set, String)}
-     * @return the set of atlasServices that were successfully fast-forwarded and re-enabled.
-     */
-    public Set<AtlasService> completeRestore(Set<RestoreRequest> restoreRequests, String backupId) {
-        validateRestoreRequests(restoreRequests);
-        Map<RestoreRequest, CompletedBackup> completedBackups = getCompletedBackups(restoreRequests);
-        Set<AtlasService> atlasServicesToRestore = getAtlasServicesToRestore(completedBackups);
-
-        if (completedBackups.isEmpty()) {
-            log.info(
-                    "Attempted to complete restore, but no completed backups were found",
-                    SafeArg.of("restoreRequests", restoreRequests));
-            return ImmutableSet.of();
-        } else if (completedBackups.size() < restoreRequests.size()) {
-            Set<AtlasService> atlasServicesWithBackup = completedBackups.keySet().stream()
-                    .map(RestoreRequest::oldAtlasService)
-                    .collect(Collectors.toSet());
-            Set<AtlasService> allOldAtlasServices = restoreRequests.stream()
-                    .map(RestoreRequest::oldAtlasService)
-                    .collect(Collectors.toSet());
-            Set<AtlasService> atlasServicesWithoutBackup =
-                    Sets.difference(allOldAtlasServices, atlasServicesWithBackup);
-            log.warn(
-                    "Completed backups were not found for some atlasServices",
-                    SafeArg.of("atlasServicesWithBackup", atlasServicesWithBackup),
-                    SafeArg.of("atlasServicesWithoutBackup", atlasServicesWithoutBackup));
-        }
-
-        // Fast forward timestamps
-        Map<Namespace, CompletedBackup> completeRequest = KeyedStream.stream(completedBackups)
-                .mapKeys(RestoreRequest::newAtlasService)
-                .mapKeys(AtlasService::getNamespace)
-                .collectToMap();
-        Map<Namespace, AtlasService> namespaceToServices = KeyedStream.of(atlasServicesToRestore)
-                .mapKeys(AtlasService::getNamespace)
-                .collectToMap();
-
-        CompleteRestoreResponse response =
-                atlasRestoreClient.completeRestore(authHeader, CompleteRestoreRequest.of(completeRequest));
-        Set<AtlasService> successfulAtlasServices = response.getSuccessfulNamespaces().stream()
-                .map(namespaceToServices::get)
-                .collect(Collectors.toSet());
-        Set<AtlasService> failedAtlasServices = Sets.difference(atlasServicesToRestore, successfulAtlasServices);
-        if (failedAtlasServices.isEmpty()) {
-            log.info(
-                    "Successfully completed restore for all atlasServices",
-                    SafeArg.of("atlasServices", successfulAtlasServices));
-        } else {
-            log.error(
-                    "Failed to fast-forward timestamp for some atlasServices. These will not be re-enabled.",
-                    SafeArg.of("failedAtlasServices", failedAtlasServices),
-                    SafeArg.of("fastForwardedAtlasServices", successfulAtlasServices));
-        }
-
-        // Re-enable timelock
-        timeLockManagementService.reenableTimelock(
-                authHeader, ReenableNamespacesRequest.of(response.getSuccessfulNamespaces(), backupId));
-
-        return successfulAtlasServices;
-    }
-
-    private void repairTables(
-            BiConsumer<String, RangesForRepair> repairTable,
-            Map<RestoreRequest, CompletedBackup> completedBackups,
-            Set<AtlasService> atlasServicesToRepair) {
-        // ConsistentCasTablesTask
-        atlasServicesToRepair.forEach(
-                atlasService -> cassandraRepairHelper.repairInternalTables(atlasService, repairTable));
-
-        // RepairTransactionsTablesTask
-        KeyedStream.stream(completedBackups)
-                .forEach((restoreRequest, completedBackup) ->
-                        repairTransactionsTables(restoreRequest, completedBackup, repairTable));
-    }
-
-    private void repairTransactionsTables(
-            RestoreRequest restoreRequest,
-            CompletedBackup completedBackup,
-            BiConsumer<String, RangesForRepair> repairTable) {
-        Map<FullyBoundedTimestampRange, Integer> coordinationMap =
-                getCoordinationMap(restoreRequest.oldAtlasService(), completedBackup);
-        List<TransactionsTableInteraction> transactionsTableInteractions =
-                TransactionsTableInteraction.getTransactionTableInteractions(
-                        coordinationMap, DefaultRetryPolicy.INSTANCE);
-        AtlasService atlasService = restoreRequest.newAtlasService();
-        cassandraRepairHelper.repairTransactionsTables(atlasService, transactionsTableInteractions, repairTable);
-        cassandraRepairHelper.cleanTransactionsTables(
-                atlasService, completedBackup.getBackupStartTimestamp(), transactionsTableInteractions);
-    }
-
-    private Map<FullyBoundedTimestampRange, Integer> getCoordinationMap(
-            AtlasService atlasService, CompletedBackup completedBackup) {
-        Optional<InternalSchemaMetadataState> schemaMetadataState = backupPersister.getSchemaMetadata(atlasService);
-
-        long fastForwardTs = completedBackup.getBackupEndTimestamp();
-        long immutableTs = completedBackup.getBackupStartTimestamp();
-
-        return CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                schemaMetadataState, fastForwardTs, immutableTs);
-    }
-
-    private Map<RestoreRequest, CompletedBackup> getCompletedBackups(Set<RestoreRequest> restoreRequests) {
-        return KeyedStream.of(restoreRequests)
-                .map(RestoreRequest::oldAtlasService)
-                .map(backupPersister::getCompletedBackup)
-                .flatMap(Optional::stream)
-                .collectToMap();
-    }
-
-    private Set<AtlasService> getAtlasServicesToRestore(Map<RestoreRequest, CompletedBackup> completedBackups) {
-        return completedBackups.keySet().stream()
-                .map(RestoreRequest::newAtlasService)
-                .collect(Collectors.toSet());
-    }
-
-    private static void validateRestoreRequests(Set<RestoreRequest> restoreRequests) {
-        Set<AtlasService> newAtlasServices =
-                restoreRequests.stream().map(RestoreRequest::newAtlasService).collect(Collectors.toSet());
-        AtlasServices.throwIfAtlasServicesCollide(newAtlasServices);
-    }
-}u}(jt  (eb3909b8c52376fc393687c9ac7cbe595ee1dbfcj  Katlasdb-backup/src/main/java/com/palantir/atlasdb/backup/AtlasServices.javaj  removedj  K j  K/j  K/j  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasServices.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasServices.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasServices.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X  @@ -1,47 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
-import java.util.Map;
-import java.util.Map.Entry;
-import java.util.Set;
-import java.util.stream.Collectors;
-
-public final class AtlasServices {
-    private AtlasServices() {
-        // util
-    }
-
-    public static void throwIfAtlasServicesCollide(Set<AtlasService> atlasServices) {
-        Map<Namespace, Long> namespacesByCount = atlasServices.stream()
-                .collect(Collectors.groupingBy(AtlasService::getNamespace, Collectors.counting()));
-        Set<Namespace> duplicatedNamespaces = namespacesByCount.entrySet().stream()
-                .filter(entryWithCount -> entryWithCount.getValue() > 1)
-                .map(Entry::getKey)
-                .collect(Collectors.toSet());
-        if (!duplicatedNamespaces.isEmpty()) {
-            throw new SafeIllegalArgumentException(
-                    "Duplicated namespaces found in request. The operation cannot safely proceed.",
-                    SafeArg.of("duplicatedNamespaces", duplicatedNamespaces),
-                    SafeArg.of("atlasServices", atlasServices));
-        }
-    }
-}u}(jt  (70c235a50d577fb688439055712f78733cb0af85j  Matlasdb-backup/src/main/java/com/palantir/atlasdb/backup/BackupPersister.javaj  removedj  K j  K%j  K%j  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FBackupPersister.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FBackupPersister.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FBackupPersister.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X  @@ -1,37 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.InProgressBackupToken;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import java.util.Optional;
-
-interface BackupPersister {
-    void storeSchemaMetadata(AtlasService service, InternalSchemaMetadataState internalSchemaMetadataState);
-
-    Optional<InternalSchemaMetadataState> getSchemaMetadata(AtlasService service);
-
-    void storeCompletedBackup(AtlasService atlasService, CompletedBackup completedBackup);
-
-    Optional<CompletedBackup> getCompletedBackup(AtlasService service);
-
-    void storeImmutableTimestamp(AtlasService atlasService, InProgressBackupToken inProgressBackupToken);
-
-    Optional<Long> getImmutableTimestamp(AtlasService service);
-}u}(jt  (e2ace5b691c38bbd57e4b611bf1730209933697ej  Yatlasdb-backup/src/main/java/com/palantir/atlasdb/backup/CoordinationServiceRecorder.javaj  removedj  K j  Kdj  Kdj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceRecorder.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceRecorder.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceRecorder.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  Xb  @@ -1,100 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.google.common.collect.Iterables;
-import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.coordination.CoordinationService;
-import com.palantir.atlasdb.coordination.ValueAndBound;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadata;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import com.palantir.atlasdb.internalschema.persistence.CoordinationServices;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.impl.CheckAndSetResult;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.Optional;
-
-final class CoordinationServiceRecorder {
-    private static final SafeLogger log = SafeLoggerFactory.get(CoordinationServiceRecorder.class);
-
-    private final KvsRunner kvsRunner;
-    private final BackupPersister backupPersister;
-
-    CoordinationServiceRecorder(KvsRunner kvsRunner, BackupPersister backupPersister) {
-        this.kvsRunner = kvsRunner;
-        this.backupPersister = backupPersister;
-    }
-
-    public void storeFastForwardState(AtlasService atlasService, CompletedBackup completedBackup) {
-        Optional<InternalSchemaMetadataState> maybeMetadata =
-                fetchSchemaMetadata(atlasService, completedBackup.getBackupEndTimestamp());
-
-        maybeMetadata.ifPresentOrElse(
-                metadata -> backupPersister.storeSchemaMetadata(atlasService, metadata),
-                () -> logEmptyMetadata(atlasService));
-    }
-
-    private void logEmptyMetadata(AtlasService atlasService) {
-        log.info(
-                "No metadata stored in coordination service for atlas service.",
-                SafeArg.of("atlasService", atlasService));
-    }
-
-    private Optional<InternalSchemaMetadataState> fetchSchemaMetadata(AtlasService atlasService, long timestamp) {
-        return kvsRunner.run(atlasService, kvs -> getInternalSchemaMetadataState(kvs, timestamp));
-    }
-
-    private Optional<InternalSchemaMetadataState> getInternalSchemaMetadataState(KeyValueService kvs, long timestamp) {
-        if (!kvs.getAllTableNames().contains(AtlasDbConstants.COORDINATION_TABLE)) {
-            return Optional.empty();
-        }
-        CoordinationService<InternalSchemaMetadata> coordination =
-                CoordinationServices.createDefault(kvs, () -> timestamp, false);
-
-        return Optional.of(InternalSchemaMetadataState.of(getValidMetadata(coordination, timestamp)));
-    }
-
-    private ValueAndBound<InternalSchemaMetadata> getValidMetadata(
-            CoordinationService<InternalSchemaMetadata> coordination, long timestamp) {
-        return coordination
-                .getValueForTimestamp(timestamp)
-                .orElseGet(() -> extendValidityBound(coordination, timestamp));
-    }
-
-    // Keep trying to extend the validity bound until it succeeds. Transactions can't commit until _someone_ succeeds
-    // in doing this - so this is effectively guaranteed to terminate eventually.
-    private ValueAndBound<InternalSchemaMetadata> extendValidityBound(
-            CoordinationService<InternalSchemaMetadata> coordination, long timestamp) {
-        Optional<ValueAndBound<InternalSchemaMetadata>> maybeBound = Optional.empty();
-        while (maybeBound.isEmpty()) {
-            maybeBound = tryExtendValidityBound(coordination, timestamp);
-        }
-        return maybeBound.get();
-    }
-
-    private Optional<ValueAndBound<InternalSchemaMetadata>> tryExtendValidityBound(
-            CoordinationService<InternalSchemaMetadata> coordination, long timestamp) {
-        CheckAndSetResult<ValueAndBound<InternalSchemaMetadata>> casResult = coordination.tryTransformCurrentValue(
-                valueAndBound -> valueAndBound.value().orElseGet(InternalSchemaMetadata::defaultValue));
-        ValueAndBound<InternalSchemaMetadata> persisted = Iterables.getOnlyElement(casResult.existingValues());
-        return (persisted.bound() >= timestamp) ? Optional.of(persisted) : Optional.empty();
-    }
-}u     }(jt  (1c44ea90ea1587abfa52806ffbf809f1019ef2b7j  Zatlasdb-backup/src/main/java/com/palantir/atlasdb/backup/CoordinationServiceUtilities.javaj  removedj  K j  KOj  KOj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceUtilities.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceUtilities.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceUtilities.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X  @@ -1,79 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.google.common.collect.ImmutableRangeMap;
-import com.google.common.collect.Range;
-import com.google.common.collect.RangeMap;
-import com.palantir.atlasdb.coordination.ValueAndBound;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadata;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import com.palantir.atlasdb.internalschema.TimestampPartitioningMap;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.timestamp.FullyBoundedTimestampRange;
-import java.util.Map;
-import java.util.Optional;
-
-@SuppressWarnings("UnstableApiUsage")
-public final class CoordinationServiceUtilities {
-    // before the coordination service all transactions were schema 1, i.e. in _transactions
-    private static final ImmutableRangeMap<Long, Integer> PRE_COORDINATION_TRANSACTIONS_MAP =
-            ImmutableRangeMap.of(Range.atLeast(TransactionConstants.LOWEST_POSSIBLE_START_TS), 1);
-
-    private CoordinationServiceUtilities() {}
-
-    public static Map<FullyBoundedTimestampRange, Integer> getCoordinationMapOnRestore(
-            Optional<InternalSchemaMetadataState> schemaMetadataState, long fastForwardTs, long immutableTs) {
-        RangeMap<Long, Integer> unbounded = convertInternalSchemaMetadataToRangeMap(schemaMetadataState);
-
-        RangeMap<Long, Integer> fastForwardBounded = addInclusiveUpperBoundToRangeMap(unbounded, fastForwardTs);
-
-        RangeMap<Long, Integer> bounded = addInclusiveLowerBoundToRangeMap(fastForwardBounded, immutableTs);
-
-        return KeyedStream.stream(bounded.asMapOfRanges())
-                .mapKeys(FullyBoundedTimestampRange::of)
-                .collectToMap();
-    }
-
-    private static RangeMap<Long, Integer> convertInternalSchemaMetadataToRangeMap(
-            Optional<InternalSchemaMetadataState> internalSchemaMetadata) {
-        return internalSchemaMetadata
-                .flatMap(InternalSchemaMetadataState::value)
-                .flatMap(CoordinationServiceUtilities::convertValueAndBoundToRangeMap)
-                .orElse(PRE_COORDINATION_TRANSACTIONS_MAP);
-    }
-
-    private static Optional<RangeMap<Long, Integer>> convertValueAndBoundToRangeMap(
-            ValueAndBound<InternalSchemaMetadata> valueAndBound) {
-        return valueAndBound
-                .value()
-                .map(InternalSchemaMetadata::timestampToTransactionsTableSchemaVersion)
-                .map(TimestampPartitioningMap::rangeMapView)
-                .map(rangeMap -> addInclusiveUpperBoundToRangeMap(rangeMap, valueAndBound.bound()));
-    }
-
-    private static RangeMap<Long, Integer> addInclusiveUpperBoundToRangeMap(
-            RangeMap<Long, Integer> rangeMap, long upperBound) {
-        return rangeMap.subRangeMap(Range.atMost(upperBound));
-    }
-
-    private static RangeMap<Long, Integer> addInclusiveLowerBoundToRangeMap(
-            RangeMap<Long, Integer> rangeMap, long lowerBound) {
-        return rangeMap.subRangeMap(Range.atLeast(lowerBound));
-    }
-}u}(jt  (d505f8b39f8a8a204fc645abc3111eeb72083e14j  _atlasdb-backup/src/main/java/com/palantir/atlasdb/backup/DialogueAdaptingAtlasBackupClient.javaj  removedj  K j  K2j  K2j  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingAtlasBackupClient.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingAtlasBackupClient.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingAtlasBackupClient.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  Xc  @@ -1,50 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasBackupClient;
-import com.palantir.atlasdb.backup.api.AtlasBackupClientBlocking;
-import com.palantir.atlasdb.backup.api.CompleteBackupRequest;
-import com.palantir.atlasdb.backup.api.CompleteBackupResponse;
-import com.palantir.atlasdb.backup.api.PrepareBackupRequest;
-import com.palantir.atlasdb.backup.api.PrepareBackupResponse;
-import com.palantir.atlasdb.backup.api.RefreshBackupRequest;
-import com.palantir.atlasdb.backup.api.RefreshBackupResponse;
-import com.palantir.tokens.auth.AuthHeader;
-
-public class DialogueAdaptingAtlasBackupClient implements AtlasBackupClient {
-    private final AtlasBackupClientBlocking dialogueDelegate;
-
-    public DialogueAdaptingAtlasBackupClient(AtlasBackupClientBlocking dialogueDelegate) {
-        this.dialogueDelegate = dialogueDelegate;
-    }
-
-    @Override
-    public PrepareBackupResponse prepareBackup(AuthHeader authHeader, PrepareBackupRequest request) {
-        return dialogueDelegate.prepareBackup(authHeader, request);
-    }
-
-    @Override
-    public RefreshBackupResponse refreshBackup(AuthHeader authHeader, RefreshBackupRequest request) {
-        return dialogueDelegate.refreshBackup(authHeader, request);
-    }
-
-    @Override
-    public CompleteBackupResponse completeBackup(AuthHeader authHeader, CompleteBackupRequest request) {
-        return dialogueDelegate.completeBackup(authHeader, request);
-    }
-}u}(jt  (c763dda85df496e50c76a2efb4d66c79d82f079bj  `atlasdb-backup/src/main/java/com/palantir/atlasdb/backup/DialogueAdaptingAtlasRestoreClient.javaj  removedj  K j  K$j  K$j  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingAtlasRestoreClient.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingAtlasRestoreClient.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingAtlasRestoreClient.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X  @@ -1,36 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasRestoreClient;
-import com.palantir.atlasdb.backup.api.AtlasRestoreClientBlocking;
-import com.palantir.atlasdb.backup.api.CompleteRestoreRequest;
-import com.palantir.atlasdb.backup.api.CompleteRestoreResponse;
-import com.palantir.tokens.auth.AuthHeader;
-
-public class DialogueAdaptingAtlasRestoreClient implements AtlasRestoreClient {
-    private final AtlasRestoreClientBlocking dialogueDelegate;
-
-    public DialogueAdaptingAtlasRestoreClient(AtlasRestoreClientBlocking dialogueDelegate) {
-        this.dialogueDelegate = dialogueDelegate;
-    }
-
-    @Override
-    public CompleteRestoreResponse completeRestore(AuthHeader authHeader, CompleteRestoreRequest request) {
-        return dialogueDelegate.completeRestore(authHeader, request);
-    }
-}u}(jt  (1a88f71b0aaee1cb4ea8f1cc8c8dc745d8c7f318j  Uatlasdb-backup/src/main/java/com/palantir/atlasdb/backup/ExternalBackupPersister.javaj  removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FExternalBackupPersister.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FExternalBackupPersister.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FExternalBackupPersister.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X  @@ -1,182 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.fasterxml.jackson.databind.PropertyNamingStrategies;
-import com.fasterxml.jackson.databind.exc.MismatchedInputException;
-import com.google.common.annotations.VisibleForTesting;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.InProgressBackupToken;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import com.palantir.conjure.java.serialization.ObjectMappers;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.io.File;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.util.Optional;
-import java.util.function.Function;
-
-public class ExternalBackupPersister implements BackupPersister {
-    private static final SafeLogger log = SafeLoggerFactory.get(ExternalBackupPersister.class);
-
-    private static final ObjectMapper OBJECT_MAPPER = ObjectMappers.newClientObjectMapper();
-    private static final ObjectMapper LEGACY_OBJECT_MAPPER =
-            OBJECT_MAPPER.copy().setPropertyNamingStrategy(PropertyNamingStrategies.KEBAB_CASE);
-
-    private static final String SCHEMA_METADATA_FILE_NAME = "internal_schema_metadata_state";
-    private static final String BACKUP_TIMESTAMP_FILE_NAME = "backup.timestamp";
-    private static final String IMMUTABLE_TIMESTAMP_FILE_NAME = "immutable.timestamp";
-    private static final String FAST_FORWARD_TIMESTAMP_FILE_NAME = "fast-forward.timestamp";
-
-    private final Function<AtlasService, Path> pathFactory;
-
-    public ExternalBackupPersister(Function<AtlasService, Path> pathFactory) {
-        this.pathFactory = pathFactory;
-    }
-
-    @Override
-    public void storeSchemaMetadata(AtlasService service, InternalSchemaMetadataState internalSchemaMetadataState) {
-        File schemaMetadataFile = getSchemaMetadataFile(service);
-        if (log.isDebugEnabled()) {
-            log.debug(
-                    "Storing schema metadata",
-                    SafeArg.of("service", service),
-                    SafeArg.of("file", schemaMetadataFile.getPath()));
-        }
-        writeToFile(service, schemaMetadataFile, internalSchemaMetadataState);
-    }
-
-    @Override
-    public Optional<InternalSchemaMetadataState> getSchemaMetadata(AtlasService atlasService) {
-        return loadFromFile(atlasService, getSchemaMetadataFile(atlasService), InternalSchemaMetadataState.class);
-    }
-
-    @Override
-    public void storeCompletedBackup(AtlasService atlasService, CompletedBackup completedBackup) {
-        if (log.isDebugEnabled()) {
-            log.debug("Storing completed backup", SafeArg.of("atlasService", atlasService));
-        }
-        writeToFile(atlasService, getImmutableTimestampFile(atlasService), completedBackup.getImmutableTimestamp());
-        writeToFile(atlasService, getBackupTimestampFile(atlasService), completedBackup.getBackupStartTimestamp());
-        writeToFile(atlasService, getFastForwardTimestampFile(atlasService), completedBackup.getBackupEndTimestamp());
-    }
-
-    @Override
-    public Optional<CompletedBackup> getCompletedBackup(AtlasService atlasService) {
-        Optional<Long> immutableTimestamp =
-                loadFromFile(atlasService, getImmutableTimestampFile(atlasService), Long.class);
-        Optional<Long> startTimestamp = loadFromFile(atlasService, getBackupTimestampFile(atlasService), Long.class);
-        Optional<Long> endTimestamp = loadFromFile(atlasService, getFastForwardTimestampFile(atlasService), Long.class);
-        if (immutableTimestamp.isEmpty() || startTimestamp.isEmpty() || endTimestamp.isEmpty()) {
-            return Optional.empty();
-        }
-
-        return Optional.of(CompletedBackup.builder()
-                .namespace(atlasService.getNamespace())
-                .immutableTimestamp(immutableTimestamp.get())
-                .backupStartTimestamp(startTimestamp.get())
-                .backupEndTimestamp(endTimestamp.get())
-                .build());
-    }
-
-    @Override
-    public void storeImmutableTimestamp(AtlasService atlasService, InProgressBackupToken inProgressBackupToken) {
-        writeToFile(
-                atlasService, getImmutableTimestampFile(atlasService), inProgressBackupToken.getImmutableTimestamp());
-    }
-
-    @Override
-    public Optional<Long> getImmutableTimestamp(AtlasService atlasService) {
-        return loadFromFile(atlasService, getImmutableTimestampFile(atlasService), Long.class);
-    }
-
-    private File getSchemaMetadataFile(AtlasService atlasService) {
-        return getFile(atlasService, SCHEMA_METADATA_FILE_NAME);
-    }
-
-    private File getImmutableTimestampFile(AtlasService atlasService) {
-        return getFile(atlasService, IMMUTABLE_TIMESTAMP_FILE_NAME);
-    }
-
-    private File getBackupTimestampFile(AtlasService atlasService) {
-        return getFile(atlasService, BACKUP_TIMESTAMP_FILE_NAME);
-    }
-
-    private File getFastForwardTimestampFile(AtlasService atlasService) {
-        return getFile(atlasService, FAST_FORWARD_TIMESTAMP_FILE_NAME);
-    }
-
-    private File getFile(AtlasService atlasService, String fileName) {
-        return new File(pathFactory.apply(atlasService).toFile(), fileName);
-    }
-
-    private void writeToFile(AtlasService atlasService, File file, Object data) {
-        try (OutputStream os = Files.newOutputStream(file.toPath())) {
-            os.write(OBJECT_MAPPER.writeValueAsBytes(data));
-            os.flush();
-        } catch (IOException e) {
-            log.error(
-                    "Failed to store file",
-                    SafeArg.of("fileName", file.getName()),
-                    SafeArg.of("atlasService", atlasService),
-                    e);
-            throw new RuntimeException(e);
-        }
-    }
-
-    @VisibleForTesting
-    <T> Optional<T> loadFromFile(AtlasService atlasService, File file, Class<T> clazz) {
-        if (!file.exists()) {
-            log.info(
-                    "Tried to load file, but it did not exist",
-                    SafeArg.of("fileName", file.getName()),
-                    SafeArg.of("namespace", atlasService.getNamespace()));
-            return Optional.empty();
-        }
-
-        try {
-            T state = tryLoadFromFile(file, clazz);
-            log.info(
-                    "Successfully loaded file",
-                    SafeArg.of("fileName", file.getName()),
-                    SafeArg.of("namespace", atlasService.getNamespace()));
-            return Optional.of(state);
-        } catch (IOException e) {
-            log.warn(
-                    "Failed to read file",
-                    SafeArg.of("fileName", file.getName()),
-                    SafeArg.of("atlasService", atlasService),
-                    e);
-            return Optional.empty();
-        }
-    }
-
-    private <T> T tryLoadFromFile(File file, Class<T> clazz) throws IOException {
-        try {
-            return OBJECT_MAPPER.readValue(file, clazz);
-        } catch (MismatchedInputException e) {
-            log.debug("Using old mapper format", e);
-            return LEGACY_OBJECT_MAPPER.readValue(file, clazz);
-        }
-    }
-}u}(jt  (aa1ee605926132d8d60ac4fded66264cd7e57708j  Uatlasdb-backup/src/main/java/com/palantir/atlasdb/backup/InMemoryBackupPersister.javaj  removedj  K j  KDj  KDj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FInMemoryBackupPersister.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FInMemoryBackupPersister.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FInMemoryBackupPersister.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X
  @@ -1,68 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.InProgressBackupToken;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import java.util.Map;
-import java.util.Optional;
-import java.util.concurrent.ConcurrentHashMap;
-
-class InMemoryBackupPersister implements BackupPersister {
-    private final Map<AtlasService, Long> immutableTimestamps;
-    private final Map<AtlasService, InternalSchemaMetadataState> schemaMetadatas;
-    private final Map<AtlasService, CompletedBackup> completedBackups;
-
-    InMemoryBackupPersister() {
-        schemaMetadatas = new ConcurrentHashMap<>();
-        completedBackups = new ConcurrentHashMap<>();
-        immutableTimestamps = new ConcurrentHashMap<>();
-    }
-
-    @Override
-    public void storeSchemaMetadata(
-            AtlasService atlasService, InternalSchemaMetadataState internalSchemaMetadataState) {
-        schemaMetadatas.put(atlasService, internalSchemaMetadataState);
-    }
-
-    @Override
-    public Optional<InternalSchemaMetadataState> getSchemaMetadata(AtlasService atlasService) {
-        return Optional.ofNullable(schemaMetadatas.get(atlasService));
-    }
-
-    @Override
-    public void storeCompletedBackup(AtlasService atlasService, CompletedBackup completedBackup) {
-        completedBackups.put(atlasService, completedBackup);
-    }
-
-    @Override
-    public Optional<CompletedBackup> getCompletedBackup(AtlasService atlasService) {
-        return Optional.ofNullable(completedBackups.get(atlasService));
-    }
-
-    @Override
-    public void storeImmutableTimestamp(AtlasService atlasService, InProgressBackupToken inProgressBackupToken) {
-        immutableTimestamps.put(atlasService, inProgressBackupToken.getImmutableTimestamp());
-    }
-
-    @Override
-    public Optional<Long> getImmutableTimestamp(AtlasService atlasService) {
-        return Optional.ofNullable(immutableTimestamps.get(atlasService));
-    }
-}u}(jt  (2db81d2dfdba2dfe3ffb9bd4bf6cb0cbf074667bj  Tatlasdb-backup/src/test/java/com/palantir/atlasdb/backup/AtlasBackupServiceTest.javaj  removedj  K j  Mj  Mj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupServiceTest.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupServiceTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupServiceTest.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X-  @@ -1,261 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatCode;
-import static org.mockito.ArgumentMatchers.argThat;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoInteractions;
-import static org.mockito.Mockito.when;
-
-import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.backup.api.AtlasBackupClient;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompleteBackupRequest;
-import com.palantir.atlasdb.backup.api.CompleteBackupResponse;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.InProgressBackupToken;
-import com.palantir.atlasdb.backup.api.PrepareBackupRequest;
-import com.palantir.atlasdb.backup.api.PrepareBackupResponse;
-import com.palantir.atlasdb.backup.api.ServiceId;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.lock.client.LockRefresher;
-import com.palantir.lock.v2.LockToken;
-import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import com.palantir.tokens.auth.AuthHeader;
-import java.util.Set;
-import java.util.UUID;
-import java.util.concurrent.ScheduledExecutorService;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.Mock;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@RunWith(MockitoJUnitRunner.class)
-public class AtlasBackupServiceTest {
-    private static final Namespace NAMESPACE = Namespace.of("foo");
-    private static final AtlasService ATLAS_SERVICE = AtlasService.of(ServiceId.of("a"), NAMESPACE);
-    private static final Namespace OTHER_NAMESPACE = Namespace.of("other");
-    private static final AtlasService OTHER_ATLAS_SERVICE = AtlasService.of(ServiceId.of("b"), OTHER_NAMESPACE);
-    private static final InProgressBackupToken IN_PROGRESS = inProgressBackupToken(NAMESPACE);
-
-    @Mock
-    private AuthHeader authHeader;
-
-    @Mock
-    private AtlasBackupClient atlasBackupClient;
-
-    @Mock
-    private CoordinationServiceRecorder coordinationServiceRecorder;
-
-    @Mock
-    private LockRefresher<InProgressBackupToken> lockRefresher;
-
-    @Mock
-    private ScheduledExecutorService executorService;
-
-    private AtlasBackupService atlasBackupService;
-    private BackupPersister backupPersister;
-
-    @Before
-    public void setup() {
-        backupPersister = new InMemoryBackupPersister();
-        atlasBackupService = new AtlasBackupService(
-                authHeader,
-                atlasBackupClient,
-                coordinationServiceRecorder,
-                backupPersister,
-                lockRefresher,
-                executorService,
-                10);
-    }
-
-    @Test
-    public void prepareBackupReturnsSuccessfulServices() {
-        when(atlasBackupClient.prepareBackup(
-                        authHeader, PrepareBackupRequest.of(ImmutableSet.of(NAMESPACE, OTHER_NAMESPACE))))
-                .thenReturn(PrepareBackupResponse.of(ImmutableSet.of(IN_PROGRESS)));
-
-        assertThat(atlasBackupService.prepareBackup(ImmutableSet.of(ATLAS_SERVICE, OTHER_ATLAS_SERVICE)))
-                .containsExactly(ATLAS_SERVICE);
-    }
-
-    @Test
-    public void prepareBackupRegistersLockForRefresh() {
-        Set<InProgressBackupToken> tokens = ImmutableSet.of(IN_PROGRESS);
-        when(atlasBackupClient.prepareBackup(
-                        authHeader, PrepareBackupRequest.of(ImmutableSet.of(NAMESPACE, OTHER_NAMESPACE))))
-                .thenReturn(PrepareBackupResponse.of(tokens));
-
-        atlasBackupService.prepareBackup(ImmutableSet.of(ATLAS_SERVICE, OTHER_ATLAS_SERVICE));
-        verify(lockRefresher).registerLocks(tokens);
-    }
-
-    @Test
-    public void prepareBackupThrowsIfNamespacesCollide() {
-        AtlasService collidingAtlasService = AtlasService.of(ServiceId.of("c"), ATLAS_SERVICE.getNamespace());
-        assertThatLoggableExceptionThrownBy(
-                        () -> atlasBackupService.prepareBackup(ImmutableSet.of(ATLAS_SERVICE, collidingAtlasService)))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageContaining("Duplicated namespaces");
-    }
-
-    @Test
-    public void prepareBackupThrowsIfNamespacesCollideWithExistingInProgressBackups() {
-        when(atlasBackupClient.prepareBackup(authHeader, PrepareBackupRequest.of(ImmutableSet.of(NAMESPACE))))
-                .thenReturn(PrepareBackupResponse.of(ImmutableSet.of(IN_PROGRESS)));
-        AtlasService collidingAtlasService = AtlasService.of(ServiceId.of("c"), ATLAS_SERVICE.getNamespace());
-        atlasBackupService.prepareBackup(ImmutableSet.of(ATLAS_SERVICE));
-        assertThatLoggableExceptionThrownBy(
-                        () -> atlasBackupService.prepareBackup(ImmutableSet.of(collidingAtlasService)))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageContaining("Duplicated namespaces");
-    }
-
-    @Test
-    public void prepareBackupThrowsAfterClose() {
-        atlasBackupService.close();
-
-        assertThatLoggableExceptionThrownBy(() -> atlasBackupService.prepareBackup(ImmutableSet.of(ATLAS_SERVICE)))
-                .isInstanceOf(SafeIllegalStateException.class)
-                .hasMessageContaining("closed");
-    }
-
-    @Test
-    public void completeBackupThrowsAfterClose() {
-        atlasBackupService.close();
-
-        assertThatLoggableExceptionThrownBy(() -> atlasBackupService.completeBackup(ImmutableSet.of(ATLAS_SERVICE)))
-                .isInstanceOf(SafeIllegalStateException.class)
-                .hasMessageContaining("closed");
-    }
-
-    @Test
-    public void canCloseTwice() {
-        atlasBackupService.close();
-
-        assertThatCode(() -> atlasBackupService.close()).doesNotThrowAnyException();
-    }
-
-    @Test
-    public void closeClosesLockRefresher() {
-        Set<InProgressBackupToken> tokens = ImmutableSet.of(IN_PROGRESS);
-        when(atlasBackupClient.prepareBackup(
-                        authHeader, PrepareBackupRequest.of(ImmutableSet.of(NAMESPACE, OTHER_NAMESPACE))))
-                .thenReturn(PrepareBackupResponse.of(tokens));
-
-        atlasBackupService.prepareBackup(ImmutableSet.of(ATLAS_SERVICE, OTHER_ATLAS_SERVICE));
-
-        atlasBackupService.close();
-        verify(lockRefresher).unregisterLocks(argThat(collection -> collection.contains(IN_PROGRESS)));
-        verify(lockRefresher).close();
-        verify(executorService).shutdownNow();
-    }
-
-    @Test
-    public void completeBackupThrowsIfNamespacesCollide() {
-        AtlasService collidingAtlasService = AtlasService.of(ServiceId.of("c"), ATLAS_SERVICE.getNamespace());
-        assertThatLoggableExceptionThrownBy(
-                        () -> atlasBackupService.completeBackup(ImmutableSet.of(ATLAS_SERVICE, collidingAtlasService)))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageContaining("Duplicated namespaces");
-    }
-
-    @Test
-    public void completeBackupDoesNotRunUnpreparedServices() {
-        assertThat(atlasBackupService.completeBackup(ImmutableSet.of(OTHER_ATLAS_SERVICE)))
-                .isEmpty();
-
-        verifyNoInteractions(atlasBackupClient);
-    }
-
-    @Test
-    public void completeBackupReturnsSuccessfulServices() {
-        InProgressBackupToken otherInProgress = inProgressBackupToken(OTHER_NAMESPACE);
-        Set<Namespace> namespaces = ImmutableSet.of(NAMESPACE, OTHER_NAMESPACE);
-
-        when(atlasBackupClient.prepareBackup(authHeader, PrepareBackupRequest.of(namespaces)))
-                .thenReturn(PrepareBackupResponse.of(ImmutableSet.of(IN_PROGRESS, otherInProgress)));
-
-        when(atlasBackupClient.completeBackup(
-                        authHeader, CompleteBackupRequest.of(ImmutableSet.of(IN_PROGRESS, otherInProgress))))
-                .thenReturn(CompleteBackupResponse.of(ImmutableSet.of(completedBackup())));
-
-        Set<AtlasService> services = ImmutableSet.of(ATLAS_SERVICE, OTHER_ATLAS_SERVICE);
-        atlasBackupService.prepareBackup(services);
-
-        assertThat(atlasBackupService.completeBackup(services)).containsExactly(ATLAS_SERVICE);
-    }
-
-    @Test
-    public void completeBackupUnregistersLocks() {
-        Set<AtlasService> oneService = ImmutableSet.of(ATLAS_SERVICE);
-        Set<Namespace> oneNamespace = ImmutableSet.of(NAMESPACE);
-        Set<InProgressBackupToken> tokens = ImmutableSet.of(IN_PROGRESS);
-        when(atlasBackupClient.prepareBackup(authHeader, PrepareBackupRequest.of(oneNamespace)))
-                .thenReturn(PrepareBackupResponse.of(tokens));
-
-        CompletedBackup completedBackup = completedBackup();
-        when(atlasBackupClient.completeBackup(authHeader, CompleteBackupRequest.of(tokens)))
-                .thenReturn(CompleteBackupResponse.of(ImmutableSet.of(completedBackup)));
-
-        atlasBackupService.prepareBackup(oneService);
-        atlasBackupService.completeBackup(oneService);
-
-        verify(lockRefresher).unregisterLocks(tokens);
-    }
-
-    @Test
-    public void completeBackupStoresBackupInfoAndMetadata() {
-        ImmutableSet<Namespace> oneNamespace = ImmutableSet.of(NAMESPACE);
-        ImmutableSet<AtlasService> oneService = ImmutableSet.of(ATLAS_SERVICE);
-        when(atlasBackupClient.prepareBackup(authHeader, PrepareBackupRequest.of(oneNamespace)))
-                .thenReturn(PrepareBackupResponse.of(ImmutableSet.of(IN_PROGRESS)));
-
-        CompletedBackup completedBackup = completedBackup();
-        when(atlasBackupClient.completeBackup(authHeader, CompleteBackupRequest.of(ImmutableSet.of(IN_PROGRESS))))
-                .thenReturn(CompleteBackupResponse.of(ImmutableSet.of(completedBackup)));
-
-        atlasBackupService.prepareBackup(oneService);
-        atlasBackupService.completeBackup(oneService);
-
-        verify(coordinationServiceRecorder).storeFastForwardState(ATLAS_SERVICE, completedBackup);
-        assertThat(backupPersister.getCompletedBackup(ATLAS_SERVICE)).contains(completedBackup);
-    }
-
-    private static CompletedBackup completedBackup() {
-        return CompletedBackup.builder()
-                .namespace(NAMESPACE)
-                .immutableTimestamp(1L)
-                .backupStartTimestamp(2L)
-                .backupEndTimestamp(3L)
-                .build();
-    }
-
-    private static InProgressBackupToken inProgressBackupToken(Namespace namespace) {
-        return InProgressBackupToken.builder()
-                .namespace(namespace)
-                .immutableTimestamp(1L)
-                .backupStartTimestamp(2L)
-                .lockToken(LockToken.of(UUID.randomUUID()))
-                .build();
-    }
-}u}(jt  (c5a7e3adef390a09599c167bd2f7451189f24cc4j  Uatlasdb-backup/src/test/java/com/palantir/atlasdb/backup/AtlasRestoreServiceTest.javaj  removedj  K j  M0j  M0j  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreServiceTest.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreServiceTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreServiceTest.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  XL=  @@ -1,304 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.ArgumentMatchers.anyList;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoInteractions;
-import static org.mockito.Mockito.verifyNoMoreInteractions;
-import static org.mockito.Mockito.when;
-
-import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.backup.api.AtlasRestoreClient;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompleteRestoreRequest;
-import com.palantir.atlasdb.backup.api.CompleteRestoreResponse;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.ServiceId;
-import com.palantir.atlasdb.cassandra.backup.CassandraRepairHelper;
-import com.palantir.atlasdb.cassandra.backup.RangesForRepair;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.SuccessfulDisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.UnsuccessfulDisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementService;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
-import com.palantir.tokens.auth.AuthHeader;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.function.BiConsumer;
-import java.util.stream.Collectors;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.InOrder;
-import org.mockito.Mock;
-import org.mockito.Mockito;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@RunWith(MockitoJUnitRunner.class)
-public class AtlasRestoreServiceTest {
-    private static final Namespace WITH_BACKUP_NS = Namespace.of("with-backup");
-    private static final AtlasService WITH_BACKUP = AtlasService.of(ServiceId.of("a"), WITH_BACKUP_NS);
-    private static final Namespace NO_BACKUP_NS = Namespace.of("no-backup");
-    private static final AtlasService NO_BACKUP = AtlasService.of(ServiceId.of("b"), NO_BACKUP_NS);
-    private static final Namespace FAILING_NS = Namespace.of("failing");
-    private static final AtlasService FAILING_NAMESPACE = AtlasService.of(ServiceId.of("c"), FAILING_NS);
-    private static final long BACKUP_START_TIMESTAMP = 2L;
-    private static final String BACKUP_ID = "backup-19890526215242";
-
-    @Mock
-    private AuthHeader authHeader;
-
-    @Mock
-    private AtlasRestoreClient atlasRestoreClient;
-
-    @Mock
-    private TimeLockManagementService timeLockManagementService;
-
-    @Mock
-    private CassandraRepairHelper cassandraRepairHelper;
-
-    private AtlasRestoreService atlasRestoreService;
-    private InMemoryBackupPersister backupPersister;
-
-    @Before
-    public void setup() {
-        backupPersister = new InMemoryBackupPersister();
-        atlasRestoreService = new AtlasRestoreService(
-                authHeader, atlasRestoreClient, timeLockManagementService, backupPersister, cassandraRepairHelper);
-
-        storeCompletedBackup(WITH_BACKUP);
-        storeCompletedBackup(FAILING_NAMESPACE);
-    }
-
-    private void storeCompletedBackup(AtlasService atlasService) {
-        CompletedBackup completedBackup = CompletedBackup.builder()
-                .namespace(atlasService.getNamespace())
-                .immutableTimestamp(1L)
-                .backupStartTimestamp(BACKUP_START_TIMESTAMP)
-                .backupEndTimestamp(3L)
-                .build();
-        backupPersister.storeCompletedBackup(atlasService, completedBackup);
-    }
-
-    @Test
-    public void cannotRestoreTwiceToSameAtlasService() {
-        AtlasService severeData = AtlasService.of(ServiceId.of("a"), Namespace.of("severe-data"));
-        storeCompletedBackup(severeData);
-
-        AtlasService corruption = AtlasService.of(ServiceId.of("b"), Namespace.of("corruption"));
-        RestoreRequest firstRequest = RestoreRequest.builder()
-                .oldAtlasService(WITH_BACKUP)
-                .newAtlasService(corruption)
-                .build();
-        RestoreRequest secondRequest = RestoreRequest.builder()
-                .oldAtlasService(severeData)
-                .newAtlasService(corruption)
-                .build();
-        Set<RestoreRequest> requests = ImmutableSet.of(firstRequest, secondRequest);
-
-        assertThatThrownBy(() -> atlasRestoreService.prepareRestore(requests, BACKUP_ID))
-                .isInstanceOf(SafeIllegalArgumentException.class);
-    }
-
-    @Test
-    public void restoresToNewAtlasServiceCorrectly() {
-        RestoreRequest restoreRequest = RestoreRequest.builder()
-                .oldAtlasService(WITH_BACKUP)
-                .newAtlasService(NO_BACKUP)
-                .build();
-
-        // prepare
-        DisableNamespacesResponse successfulDisable =
-                DisableNamespacesResponse.successful(SuccessfulDisableNamespacesResponse.of(BACKUP_ID));
-        DisableNamespacesRequest request = DisableNamespacesRequest.of(ImmutableSet.of(NO_BACKUP_NS), BACKUP_ID);
-        when(timeLockManagementService.disableTimelock(authHeader, request)).thenReturn(successfulDisable);
-
-        Set<AtlasService> disabledAtlasServices =
-                atlasRestoreService.prepareRestore(ImmutableSet.of(restoreRequest), BACKUP_ID);
-        assertThat(disabledAtlasServices).containsExactly(NO_BACKUP);
-
-        // repair
-        BiConsumer<String, RangesForRepair> doNothingConsumer = (_unused1, _unused2) -> {};
-
-        Set<AtlasService> repairedAtlasServices =
-                atlasRestoreService.repairInternalTables(ImmutableSet.of(restoreRequest), doNothingConsumer);
-        assertThat(repairedAtlasServices).containsExactly(NO_BACKUP);
-
-        verify(cassandraRepairHelper).repairInternalTables(NO_BACKUP, doNothingConsumer);
-        verify(cassandraRepairHelper).repairTransactionsTables(eq(NO_BACKUP), anyList(), eq(doNothingConsumer));
-        verify(cassandraRepairHelper).cleanTransactionsTables(eq(NO_BACKUP), eq(BACKUP_START_TIMESTAMP), anyList());
-        verifyNoMoreInteractions(cassandraRepairHelper);
-
-        // complete
-        CompletedBackup completedBackup =
-                backupPersister.getCompletedBackup(WITH_BACKUP).orElseThrow();
-        CompleteRestoreRequest completeRestoreRequest =
-                CompleteRestoreRequest.of(ImmutableMap.of(NO_BACKUP_NS, completedBackup));
-        when(atlasRestoreClient.completeRestore(authHeader, completeRestoreRequest))
-                .thenReturn(CompleteRestoreResponse.of(ImmutableSet.of(NO_BACKUP_NS)));
-        ReenableNamespacesRequest reenableRequest =
-                ReenableNamespacesRequest.of(ImmutableSet.of(NO_BACKUP_NS), BACKUP_ID);
-
-        Set<AtlasService> completedAtlasServices =
-                atlasRestoreService.completeRestore(ImmutableSet.of(restoreRequest), BACKUP_ID);
-        assertThat(completedAtlasServices).containsExactly(NO_BACKUP);
-        verify(atlasRestoreClient).completeRestore(authHeader, completeRestoreRequest);
-        verify(timeLockManagementService).reenableTimelock(authHeader, reenableRequest);
-    }
-
-    @Test
-    public void prepareReturnsOnlyCompletedBackups() {
-        DisableNamespacesResponse successfulDisable =
-                DisableNamespacesResponse.successful(SuccessfulDisableNamespacesResponse.of(BACKUP_ID));
-        DisableNamespacesRequest request = DisableNamespacesRequest.of(ImmutableSet.of(WITH_BACKUP_NS), BACKUP_ID);
-        when(timeLockManagementService.disableTimelock(authHeader, request)).thenReturn(successfulDisable);
-
-        Set<AtlasService> disabledAtlasServices = atlasRestoreService.prepareRestore(
-                ImmutableSet.of(restoreRequest(WITH_BACKUP), restoreRequest(NO_BACKUP)), BACKUP_ID);
-        assertThat(disabledAtlasServices).containsExactly(WITH_BACKUP);
-    }
-
-    @Test
-    public void prepareRestoreFailsIfDisableFails() {
-        DisableNamespacesResponse failedDisable = DisableNamespacesResponse.unsuccessful(
-                UnsuccessfulDisableNamespacesResponse.of(ImmutableSet.of(WITH_BACKUP_NS), ImmutableSet.of()));
-        DisableNamespacesRequest request = DisableNamespacesRequest.of(ImmutableSet.of(WITH_BACKUP_NS), BACKUP_ID);
-        when(timeLockManagementService.disableTimelock(authHeader, request)).thenReturn(failedDisable);
-
-        Set<AtlasService> disabledAtlasServices = atlasRestoreService.prepareRestore(
-                ImmutableSet.of(restoreRequest(WITH_BACKUP), restoreRequest(NO_BACKUP)), BACKUP_ID);
-        assertThat(disabledAtlasServices).isEmpty();
-    }
-
-    @Test
-    public void prepareRestoreThrowsIfNamespacesCollide() {
-        AtlasService collidingAtlasService = AtlasService.of(ServiceId.of("c"), WITH_BACKUP.getNamespace());
-        Set<RestoreRequest> restoreRequests =
-                ImmutableSet.of(restoreRequest(WITH_BACKUP), restoreRequest(collidingAtlasService));
-        assertThatLoggableExceptionThrownBy(() -> atlasRestoreService.prepareRestore(restoreRequests, BACKUP_ID))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageContaining("Duplicated namespaces");
-    }
-
-    @Test
-    public void repairTablesThrowsIfNamespacesCollide() {
-        AtlasService collidingAtlasService = AtlasService.of(ServiceId.of("c"), WITH_BACKUP.getNamespace());
-        Set<RestoreRequest> restoreRequests =
-                ImmutableSet.of(restoreRequest(WITH_BACKUP), restoreRequest(collidingAtlasService));
-        assertThatLoggableExceptionThrownBy(
-                        () -> atlasRestoreService.repairInternalTables(restoreRequests, (_unused, _unused2) -> {}))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageContaining("Duplicated namespaces");
-    }
-
-    @Test
-    public void completeRestoreThrowsIfNamespacesCollide() {
-        AtlasService collidingAtlasService = AtlasService.of(ServiceId.of("c"), WITH_BACKUP.getNamespace());
-        Set<RestoreRequest> restoreRequests =
-                ImmutableSet.of(restoreRequest(WITH_BACKUP), restoreRequest(collidingAtlasService));
-        assertThatLoggableExceptionThrownBy(() -> atlasRestoreService.completeRestore(restoreRequests, BACKUP_ID))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageContaining("Duplicated namespaces");
-    }
-
-    @Test
-    public void repairsOnlyWhenBackupPresentAndDisableSuccessful() {
-        BiConsumer<String, RangesForRepair> doNothingConsumer = (_unused1, _unused2) -> {};
-
-        Set<AtlasService> repairedAtlasServices = atlasRestoreService.repairInternalTables(
-                ImmutableSet.of(restoreRequest(WITH_BACKUP), restoreRequest(NO_BACKUP)), doNothingConsumer);
-        assertThat(repairedAtlasServices).containsExactly(WITH_BACKUP);
-
-        verify(cassandraRepairHelper).repairInternalTables(WITH_BACKUP, doNothingConsumer);
-        verify(cassandraRepairHelper).repairTransactionsTables(eq(WITH_BACKUP), anyList(), eq(doNothingConsumer));
-        verify(cassandraRepairHelper).cleanTransactionsTables(eq(WITH_BACKUP), eq(BACKUP_START_TIMESTAMP), anyList());
-        verifyNoMoreInteractions(cassandraRepairHelper);
-    }
-
-    @Test
-    public void completesRestoreAfterFastForwardingTimestamp() {
-        Map<Namespace, CompletedBackup> completedBackups = ImmutableMap.of(
-                WITH_BACKUP_NS, backupPersister.getCompletedBackup(WITH_BACKUP).orElseThrow());
-
-        CompleteRestoreRequest completeRequest = CompleteRestoreRequest.of(completedBackups);
-        when(atlasRestoreClient.completeRestore(authHeader, completeRequest))
-                .thenReturn(CompleteRestoreResponse.of(ImmutableSet.of(WITH_BACKUP_NS)));
-
-        ReenableNamespacesRequest reenableRequest =
-                ReenableNamespacesRequest.of(ImmutableSet.of(WITH_BACKUP_NS), BACKUP_ID);
-
-        Set<AtlasService> successfulAtlasServices =
-                atlasRestoreService.completeRestore(ImmutableSet.of(restoreRequest(WITH_BACKUP)), BACKUP_ID);
-        assertThat(successfulAtlasServices).containsExactly(WITH_BACKUP);
-
-        InOrder inOrder = Mockito.inOrder(atlasRestoreClient, timeLockManagementService);
-        inOrder.verify(atlasRestoreClient).completeRestore(authHeader, completeRequest);
-        inOrder.verify(timeLockManagementService).reenableTimelock(authHeader, reenableRequest);
-    }
-
-    @Test
-    public void completeRestoreDoesNotRunNamespacesWithoutCompletedBackup() {
-        Set<AtlasService> atlasServices =
-                atlasRestoreService.completeRestore(ImmutableSet.of(restoreRequest(NO_BACKUP)), BACKUP_ID);
-
-        assertThat(atlasServices).isEmpty();
-        verifyNoInteractions(atlasRestoreClient);
-        verifyNoInteractions(timeLockManagementService);
-    }
-
-    @Test
-    public void completeRestoreReturnsSuccessfulNamespaces() {
-        Set<AtlasService> atlasServices = ImmutableSet.of(WITH_BACKUP, FAILING_NAMESPACE);
-        Map<Namespace, CompletedBackup> completedBackups = KeyedStream.of(atlasServices)
-                .map(backupPersister::getCompletedBackup)
-                .flatMap(Optional::stream)
-                .mapKeys(AtlasService::getNamespace)
-                .collectToMap();
-
-        CompleteRestoreRequest request = CompleteRestoreRequest.of(completedBackups);
-        when(atlasRestoreClient.completeRestore(authHeader, request))
-                .thenReturn(CompleteRestoreResponse.of(ImmutableSet.of(WITH_BACKUP_NS)));
-
-        ReenableNamespacesRequest reenableRequest =
-                ReenableNamespacesRequest.of(ImmutableSet.of(WITH_BACKUP_NS), BACKUP_ID);
-
-        Set<RestoreRequest> requests =
-                atlasServices.stream().map(this::restoreRequest).collect(Collectors.toSet());
-        Set<AtlasService> successfulAtlasServices = atlasRestoreService.completeRestore(requests, BACKUP_ID);
-        assertThat(successfulAtlasServices).containsExactly(WITH_BACKUP);
-        verify(atlasRestoreClient).completeRestore(authHeader, request);
-        verify(timeLockManagementService).reenableTimelock(authHeader, reenableRequest);
-    }
-
-    private RestoreRequest restoreRequest(AtlasService atlasService) {
-        return RestoreRequest.builder()
-                .oldAtlasService(atlasService)
-                .newAtlasService(atlasService)
-                .build();
-    }
-}u}(jt  (9bbb36cca1b3a5a596180e5c3f49e2952cf6ded4j  ^atlasdb-backup/src/test/java/com/palantir/atlasdb/backup/CoordinationServiceUtilitiesTest.javaj  removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceUtilitiesTest.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceUtilitiesTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceUtilitiesTest.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X/  @@ -1,222 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.datastax.driver.core.policies.DefaultRetryPolicy;
-import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableRangeMap;
-import com.google.common.collect.Range;
-import com.google.common.collect.RangeMap;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions1TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions2TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.coordination.ValueAndBound;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadata;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import com.palantir.atlasdb.internalschema.TimestampPartitioningMap;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.timestamp.FullyBoundedTimestampRange;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import org.junit.Test;
-
-public final class CoordinationServiceUtilitiesTest {
-    private static final DefaultRetryPolicy POLICY = DefaultRetryPolicy.INSTANCE;
-
-    private static final long IMMUTABLE_TIMESTAMP = 100L;
-    private static final long FASTFORWARD_TIMESTAMP = 400L;
-
-    // During restores, we need to clean transactions tables in between two timestamps.
-    // It's possible that, in between _those_ timestamps, AtlasDB changed which transactions
-    // table to use. This is recorded in InternalSchemaMetadata.
-    //
-    // In this test, we simulate a switch from transactions1 to transactions2 at timestamp 10
-    // We should return the [5-10] range for transactions1, and the (10-15] range for transactions2.
-    @Test
-    public void correctlyBoundsTimestampsForRestore() {
-        long lowerBoundForRestore = 5L;
-        long maxTimestampForTransactions1 = 10L;
-        long upperBoundForRestore = 15L;
-
-        RangeMap<Long, Integer> rangeMap = ImmutableRangeMap.<Long, Integer>builder()
-                .put(Range.closed(1L, maxTimestampForTransactions1), 1)
-                .put(Range.greaterThan(maxTimestampForTransactions1), 2)
-                .build();
-        TimestampPartitioningMap<Integer> timestampsMap = TimestampPartitioningMap.of(rangeMap);
-        InternalSchemaMetadata metadata = InternalSchemaMetadata.builder()
-                .timestampToTransactionsTableSchemaVersion(timestampsMap)
-                .build();
-        ValueAndBound<InternalSchemaMetadata> value = ValueAndBound.of(metadata, 1000L);
-        InternalSchemaMetadataState state = InternalSchemaMetadataState.of(value);
-
-        Map<FullyBoundedTimestampRange, Integer> boundedMap = CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                Optional.of(state), upperBoundForRestore, lowerBoundForRestore);
-
-        Map<FullyBoundedTimestampRange, Integer> expected = ImmutableMap.of(
-                FullyBoundedTimestampRange.of(Range.closed(lowerBoundForRestore, maxTimestampForTransactions1)), 1,
-                FullyBoundedTimestampRange.of(Range.openClosed(maxTimestampForTransactions1, upperBoundForRestore)), 2);
-
-        assertThat(boundedMap).hasSize(2);
-        assertThat(boundedMap).containsExactlyInAnyOrderEntriesOf(expected);
-    }
-
-    @Test
-    public void noCoordServiceWithImmutableCreatesRangeImmutableToFfWithSchema1() {
-        List<TransactionsTableInteraction> txnInteractions =
-                TransactionsTableInteraction.getTransactionTableInteractions(
-                        CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                                Optional.empty(), FASTFORWARD_TIMESTAMP, IMMUTABLE_TIMESTAMP),
-                        POLICY);
-
-        assertThat(txnInteractions).hasSize(1);
-        assertThat(txnInteractions.get(0))
-                .isInstanceOf(Transactions1TableInteraction.class)
-                .extracting(TransactionsTableInteraction::getTimestampRange)
-                .isEqualTo(FullyBoundedTimestampRange.of(Range.closed(IMMUTABLE_TIMESTAMP, FASTFORWARD_TIMESTAMP)));
-    }
-
-    @Test
-    public void immutablePresentThenStartAtImmutable() {
-        Map<Range<Long>, Integer> rangesWithSchemas =
-                ImmutableMap.of(Range.atLeast(TransactionConstants.LOWEST_POSSIBLE_START_TS), 1);
-        final long coordServiceBound = FASTFORWARD_TIMESTAMP + 100L;
-        Optional<InternalSchemaMetadataState> coordService = createCoordService(rangesWithSchemas, coordServiceBound);
-
-        List<TransactionsTableInteraction> txnInteractions =
-                TransactionsTableInteraction.getTransactionTableInteractions(
-                        CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                                coordService, FASTFORWARD_TIMESTAMP, IMMUTABLE_TIMESTAMP),
-                        POLICY);
-
-        assertThat(txnInteractions).hasSize(1);
-        assertThat(txnInteractions.get(0))
-                .isInstanceOf(Transactions1TableInteraction.class)
-                .extracting(TransactionsTableInteraction::getTimestampRange)
-                .isEqualTo(FullyBoundedTimestampRange.of(Range.closed(IMMUTABLE_TIMESTAMP, FASTFORWARD_TIMESTAMP)));
-    }
-
-    @Test
-    public void coordServiceBoundLessThanFfStopsAtBound() {
-        Map<Range<Long>, Integer> rangesWithSchemas =
-                ImmutableMap.of(Range.atLeast(TransactionConstants.LOWEST_POSSIBLE_START_TS), 1);
-        final long coordServiceBound = FASTFORWARD_TIMESTAMP - 10L;
-        Optional<InternalSchemaMetadataState> coordService = createCoordService(rangesWithSchemas, coordServiceBound);
-
-        List<TransactionsTableInteraction> txnInteractions =
-                TransactionsTableInteraction.getTransactionTableInteractions(
-                        CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                                coordService, FASTFORWARD_TIMESTAMP, IMMUTABLE_TIMESTAMP),
-                        POLICY);
-
-        assertThat(txnInteractions).hasSize(1);
-        assertThat(txnInteractions.get(0))
-                .isInstanceOf(Transactions1TableInteraction.class)
-                .extracting(TransactionsTableInteraction::getTimestampRange)
-                .isEqualTo(FullyBoundedTimestampRange.of(Range.closed(IMMUTABLE_TIMESTAMP, coordServiceBound)));
-    }
-
-    @Test
-    public void coordServiceBoundGreaterThanFfStopsAtFf() {
-        Map<Range<Long>, Integer> rangesWithSchemas =
-                ImmutableMap.of(Range.atLeast(TransactionConstants.LOWEST_POSSIBLE_START_TS), 1);
-        final long coordServiceBound = FASTFORWARD_TIMESTAMP + 1000L;
-        Optional<InternalSchemaMetadataState> coordService = createCoordService(rangesWithSchemas, coordServiceBound);
-
-        List<TransactionsTableInteraction> txnInteractions =
-                TransactionsTableInteraction.getTransactionTableInteractions(
-                        CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                                coordService, FASTFORWARD_TIMESTAMP, IMMUTABLE_TIMESTAMP),
-                        POLICY);
-
-        assertThat(txnInteractions).hasSize(1);
-        assertThat(txnInteractions.get(0))
-                .isInstanceOf(Transactions1TableInteraction.class)
-                .extracting(TransactionsTableInteraction::getTimestampRange)
-                .isEqualTo(FullyBoundedTimestampRange.of(Range.closed(IMMUTABLE_TIMESTAMP, FASTFORWARD_TIMESTAMP)));
-    }
-
-    @Test
-    public void cleanMultipleRangesWithSchemasWithinBounds() {
-        final long migrateToTxns2 = IMMUTABLE_TIMESTAMP + FASTFORWARD_TIMESTAMP / 2;
-        Map<Range<Long>, Integer> rangesWithSchemas = ImmutableMap.of(
-                Range.closedOpen(TransactionConstants.LOWEST_POSSIBLE_START_TS, migrateToTxns2), 1,
-                Range.atLeast(migrateToTxns2), 2);
-        final long coordServiceBound = FASTFORWARD_TIMESTAMP + 1000L;
-        Optional<InternalSchemaMetadataState> coordService = createCoordService(rangesWithSchemas, coordServiceBound);
-
-        List<TransactionsTableInteraction> txnInteractions =
-                TransactionsTableInteraction.getTransactionTableInteractions(
-                        CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                                coordService, FASTFORWARD_TIMESTAMP, IMMUTABLE_TIMESTAMP),
-                        POLICY);
-
-        assertThat(txnInteractions).hasSize(2);
-        TransactionsTableInteraction txn1 = txnInteractions.stream()
-                .filter(txn -> txn instanceof Transactions1TableInteraction)
-                .findFirst()
-                .get();
-        TransactionsTableInteraction txn2 = txnInteractions.stream()
-                .filter(txn -> txn instanceof Transactions2TableInteraction)
-                .findFirst()
-                .get();
-        assertThat(txn1)
-                .extracting(TransactionsTableInteraction::getTimestampRange)
-                .isEqualTo(FullyBoundedTimestampRange.of(Range.closedOpen(IMMUTABLE_TIMESTAMP, migrateToTxns2)));
-        assertThat(txn2)
-                .extracting(TransactionsTableInteraction::getTimestampRange)
-                .isEqualTo(FullyBoundedTimestampRange.of(Range.closed(migrateToTxns2, FASTFORWARD_TIMESTAMP)));
-    }
-
-    @Test
-    public void skipRangesWithSchemasOutsideOfBounds() {
-        final long migrateToTxns2 = TransactionConstants.LOWEST_POSSIBLE_START_TS + IMMUTABLE_TIMESTAMP / 2;
-        Map<Range<Long>, Integer> rangesWithSchemas = ImmutableMap.of(
-                Range.closedOpen(TransactionConstants.LOWEST_POSSIBLE_START_TS, migrateToTxns2), 1,
-                Range.atLeast(migrateToTxns2), 2);
-        final long coordServiceBound = FASTFORWARD_TIMESTAMP + 1000L;
-        Optional<InternalSchemaMetadataState> coordService = createCoordService(rangesWithSchemas, coordServiceBound);
-
-        List<TransactionsTableInteraction> txnInteractions =
-                TransactionsTableInteraction.getTransactionTableInteractions(
-                        CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                                coordService, FASTFORWARD_TIMESTAMP, IMMUTABLE_TIMESTAMP),
-                        POLICY);
-
-        assertThat(txnInteractions).hasSize(1);
-        assertThat(txnInteractions.get(0))
-                .isInstanceOf(Transactions2TableInteraction.class)
-                .extracting(TransactionsTableInteraction::getTimestampRange)
-                .isEqualTo(FullyBoundedTimestampRange.of(Range.closed(IMMUTABLE_TIMESTAMP, FASTFORWARD_TIMESTAMP)));
-    }
-
-    private static Optional<InternalSchemaMetadataState> createCoordService(
-            Map<Range<Long>, Integer> rangesWithSchemas, long bound) {
-        ImmutableRangeMap.Builder<Long, Integer> rangeMapBuilder = ImmutableRangeMap.builder();
-        rangesWithSchemas.forEach(rangeMapBuilder::put);
-        RangeMap<Long, Integer> rangeMap = rangeMapBuilder.build();
-
-        InternalSchemaMetadata internalSchemaMetadata = InternalSchemaMetadata.builder()
-                .timestampToTransactionsTableSchemaVersion(TimestampPartitioningMap.of(rangeMap))
-                .build();
-
-        return Optional.of(
-                InternalSchemaMetadataState.of(Optional.of(ValueAndBound.of(internalSchemaMetadata, bound))));
-    }
-}u}(jt  (aab479b9713b64a03d045072bc027df436703fb5j  Yatlasdb-backup/src/test/java/com/palantir/atlasdb/backup/ExternalBackupPersisterTest.javaj  removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FExternalBackupPersisterTest.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FExternalBackupPersisterTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FExternalBackupPersisterTest.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X  @@ -1,138 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.InProgressBackupToken;
-import com.palantir.atlasdb.backup.api.ServiceId;
-import com.palantir.atlasdb.coordination.ValueAndBound;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadata;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.lock.v2.LockToken;
-import java.io.ByteArrayInputStream;
-import java.io.File;
-import java.io.IOException;
-import java.nio.charset.StandardCharsets;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.StandardCopyOption;
-import java.util.UUID;
-import org.junit.Before;
-import org.junit.Rule;
-import org.junit.Test;
-import org.junit.rules.TemporaryFolder;
-
-public class ExternalBackupPersisterTest {
-    private static final Namespace NAMESPACE = Namespace.of("broken_namespace");
-    private static final AtlasService ATLAS_SERVICE = AtlasService.of(ServiceId.of("service"), NAMESPACE);
-
-    @Rule
-    public TemporaryFolder tempFolder = new TemporaryFolder();
-
-    private ExternalBackupPersister externalBackupPersister;
-
-    @Before
-    public void setUp() {
-        externalBackupPersister = new ExternalBackupPersister(this::getPath);
-    }
-
-    @Test
-    public void getSchemaMetadataWhenEmpty() {
-        assertThat(externalBackupPersister.getSchemaMetadata(ATLAS_SERVICE)).isEmpty();
-    }
-
-    @Test
-    public void putAndGetSchemaMetadata() {
-        InternalSchemaMetadata internalSchemaMetadata = InternalSchemaMetadata.defaultValue();
-        InternalSchemaMetadataState state =
-                InternalSchemaMetadataState.of(ValueAndBound.of(internalSchemaMetadata, 100L));
-        externalBackupPersister.storeSchemaMetadata(ATLAS_SERVICE, state);
-
-        assertThat(externalBackupPersister.getSchemaMetadata(ATLAS_SERVICE)).contains(state);
-    }
-
-    @Test
-    public void getImmutableTimestampWhenEmpty() {
-        assertThat(externalBackupPersister.getImmutableTimestamp(ATLAS_SERVICE)).isEmpty();
-    }
-
-    @Test
-    public void putAndGetImmutableTimestamp() {
-        long immutableTimestamp = 1337L;
-        InProgressBackupToken inProgressBackupToken = InProgressBackupToken.builder()
-                .namespace(NAMESPACE)
-                .immutableTimestamp(immutableTimestamp)
-                .backupStartTimestamp(3141L)
-                .lockToken(LockToken.of(UUID.randomUUID()))
-                .build();
-        externalBackupPersister.storeImmutableTimestamp(ATLAS_SERVICE, inProgressBackupToken);
-        assertThat(externalBackupPersister.getImmutableTimestamp(ATLAS_SERVICE)).contains(immutableTimestamp);
-    }
-
-    @Test
-    public void getCompletedBackupWhenEmpty() {
-        assertThat(externalBackupPersister.getCompletedBackup(ATLAS_SERVICE)).isEmpty();
-    }
-
-    @Test
-    public void putAndGetCompletedBackup() {
-        CompletedBackup completedBackup = CompletedBackup.builder()
-                .namespace(NAMESPACE)
-                .immutableTimestamp(1L)
-                .backupStartTimestamp(2L)
-                .backupEndTimestamp(3L)
-                .build();
-        externalBackupPersister.storeCompletedBackup(ATLAS_SERVICE, completedBackup);
-
-        assertThat(externalBackupPersister.getCompletedBackup(ATLAS_SERVICE)).contains(completedBackup);
-    }
-
-    @Test
-    public void testLegacyCasing() throws IOException {
-        String legacyState = "{\"value\":{\"value\":{\"timestampToTransactionsTableSchemaVersion\":{\"timestampMappings"
-            + "\":[{\"longRange\":{\"lower-endpoint\":1316020054,\"lower-bound-type\":\"CLOSED\"},\"value\":3},{\"longRange\":{\"lower-endpoint\":1,\"lower-bound-type\":\"CLOSED\",\"upper-endpoint\":1316020054,\"upper-bound-type\":\"OPEN\"},\"value\":1}]}},\"bound\":1318613869}}";
-        File tempFile = tempFolder.newFile();
-        Files.copy(
-                new ByteArrayInputStream(legacyState.getBytes(StandardCharsets.UTF_8)),
-                tempFile.toPath(),
-                StandardCopyOption.REPLACE_EXISTING);
-
-        InternalSchemaMetadataState parsed = externalBackupPersister
-                .loadFromFile(ATLAS_SERVICE, tempFile, InternalSchemaMetadataState.class)
-                .get();
-        assertThat(parsed).isNotNull();
-    }
-
-    private Path getPath(AtlasService atlasService) {
-        try {
-            return getOrCreateFolder(atlasService).toPath();
-        } catch (IOException ex) {
-            throw new RuntimeException(ex);
-        }
-    }
-
-    private File getOrCreateFolder(AtlasService atlasService) throws IOException {
-        File file = new File(tempFolder.getRoot(), atlasService.getNamespace().value());
-        return file.exists()
-                ? file
-                : tempFolder.newFolder(atlasService.getNamespace().value());
-    }
-}u     }(jt  (ca6ee9cea8ec189a088d50559325d4e84ff8ad09j  Ratlasdb-backup/src/test/resources/mockito-extensions/org.mockito.plugins.MockMakerj  removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Ftest%2Fresources%2Fmockito-extensions%2Forg.mockito.plugins.MockMakerj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-backup%2Fsrc%2Ftest%2Fresources%2Fmockito-extensions%2Forg.mockito.plugins.MockMakerj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Ftest%2Fresources%2Fmockito-extensions%2Forg.mockito.plugins.MockMaker?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  <@@ -1 +0,0 @@
-mock-maker-inline
\ No newline at end of fileu}(jt  (c8f5ec6d41d45b1db43cb98d871dd8aaff4fbe06j  atlasdb-buggify/build.gradlej  addedj  Kj  K j  Kj  phttps://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fbuild.gradlej  ohttps://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fbuild.gradlej  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fbuild.gradle?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X`  @@ -0,0 +1,12 @@
+
+apply from: "../gradle/shared.gradle"
+
+dependencies {
+    implementation 'com.google.guava:guava'
+    testImplementation 'junit:junit'
+    testImplementation 'org.assertj:assertj-core'
+    testImplementation('org.jmock:jmock') {
+      exclude group: 'org.hamcrest'
+    }
+    testImplementation 'org.mockito:mockito-core'
+}u}(jt  (7ed6f31d91209eb01a70cc1992699c7d6b7590bdj  Tatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/AlwaysBuggifyFactory.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X.  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggify;
+
+public enum AlwaysBuggifyFactory implements BuggifyFactory {
+    INSTANCE;
+
+    @Override
+    public Buggify maybe(double _probability) {
+        return DefaultBuggify.INSTANCE;
+    }
+}u}(jt  (b4b3fdb6c8a3dbc046c441a7d9341e93b8857c14j  Katlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/Buggify.javaj  addedj  K'j  K j  K'j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X9  @@ -0,0 +1,39 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+/**
+ * Instances of this class could vary in implementation, such that they may perform no action {@link com.palantir.atlasdb.buggify.impl.NoOpBuggify} or
+ * always perform the action {@link com.palantir.atlasdb.buggify.impl.DefaultBuggify}. The idea here is that a
+ * downstream users of this class can easily swap out their {@link BuggifyFactory} to change the behavior of their
+ * class, without having to change the implementation of their class. This is useful for tests, as we can force the
+ * behavior of never running the provided runnable, or always running the provided runnable.
+ * <p>
+ * See https://apple.github.io/foundationdb/client-testing.html for more information.
+ */
+public interface Buggify {
+    /**
+     * Maybe runs the provided runnable, depending on the instance of the class.
+     */
+    void run(Runnable runnable);
+
+    /**
+     * Returns true if this instance of buggify would perform an action if {@link #run Run} would execute the
+     * provided runnable. This is useful if you wish to produce a boolean that will be skewed towards true or false.
+     */
+    boolean asBoolean();
+}u}(jt  (0ed48b1c56bc0efc8ac5be656900e3c3a38c67faj  Ratlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/BuggifyFactory.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  Xy  @@ -0,0 +1,24 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+public interface BuggifyFactory {
+    /**
+     * The probability of returning a buggify instance which performs actions.
+     */
+    Buggify maybe(double probability);
+}u}(jt  (6f3353a1c06e3518031faa27f5e05286e635a2dbj  eatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/NativeSamplingSecureRandomFactory.javaj  addedj  K!j  K j  K!j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FNativeSamplingSecureRandomFactory.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FNativeSamplingSecureRandomFactory.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FNativeSamplingSecureRandomFactory.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+import java.security.SecureRandom;
+
+public interface NativeSamplingSecureRandomFactory {
+    /**
+     * Creates an instance of {@link SecureRandom} that, as far as is supported by the system, produces both seed and
+     * random numbers from an external source.
+     * <p>
+     * The motivation for this is for running tests in an environment (such as that provided by Antithesis) where
+     * system-provided randomness is deterministic, and can be dynamically controlled by the fuzzer to explore the
+     * state space of the system more efficiently. We thus want to ensure that the random number generator we use
+     * makes queries to the system-provided randomness source not just for seeding, but also on every generation
+     * of a random number.
+     */
+    SecureRandom create();
+}u}(jt  (bf47a2abcceffe92e42715b2377315e57a40f763j  Satlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggify.javaj  renamedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X]  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,16 +14,20 @@
  * limitations under the License.
  */
 
-package com.palantir.common.concurrent;
+package com.palantir.atlasdb.buggify.impl;
 
-import java.util.concurrent.ScheduledExecutorService;
-import java.util.concurrent.ThreadFactory;
+import com.palantir.atlasdb.buggify.api.Buggify;
 
-public interface ScheduledExecutorServiceFactory {
+public enum DefaultBuggify implements Buggify {
+    INSTANCE;
 
-    ScheduledExecutorService create(int numThreads);
+    @Override
+    public void run(Runnable runnable) {
+        runnable.run();
+    }
 
-    static ScheduledExecutorServiceFactory of(ThreadFactory threadFactory) {
-        return numThreads -> PTExecutors.newScheduledThreadPool(numThreads, threadFactory);
+    @Override
+    public boolean asBoolean() {
+        return true;
     }
 }previous_filenameccommons-executors/src/main/java/com/palantir/common/concurrent/ScheduledExecutorServiceFactory.javau}(jt  (4ca0edd6554c8b49ac329f94f8407ea5328fca20j  Zatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactory.javaj  addedj  K/j  K j  K/j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,47 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import java.security.SecureRandom;
+import java.util.function.DoubleSupplier;
+
+public final class DefaultBuggifyFactory implements BuggifyFactory {
+    private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+    public static final BuggifyFactory INSTANCE = new DefaultBuggifyFactory();
+
+    private final DoubleSupplier doubleSupplier;
+
+    @VisibleForTesting
+    DefaultBuggifyFactory(DoubleSupplier doubleSupplier) {
+        this.doubleSupplier = doubleSupplier;
+    }
+
+    private DefaultBuggifyFactory() {
+        this(SECURE_RANDOM::nextDouble);
+    }
+
+    @Override
+    public Buggify maybe(double probability) {
+        if (doubleSupplier.getAsDouble() < probability) {
+            return DefaultBuggify.INSTANCE;
+        }
+        return NoOpBuggify.INSTANCE;
+    }
+}u}(jt  (1f3a1114799a4b99ced3a549da79307fe3e7b204j  matlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultNativeSamplingSecureRandomFactory.javaj  addedj  K,j  K j  K,j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultNativeSamplingSecureRandomFactory.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultNativeSamplingSecureRandomFactory.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultNativeSamplingSecureRandomFactory.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.NativeSamplingSecureRandomFactory;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.security.SecureRandom;
+
+public enum DefaultNativeSamplingSecureRandomFactory implements NativeSamplingSecureRandomFactory {
+    INSTANCE;
+
+    private static final SafeLogger log = SafeLoggerFactory.get(DefaultNativeSamplingSecureRandomFactory.class);
+
+    @Override
+    public SecureRandom create() {
+        try {
+            // The NativePRNG algorithm reads from /dev/random or /dev/urandom for generating both seed and random
+            // numbers, which satisfies the requirements of the interface (and both of these files are fuzzer-controlled
+            // in Antithesis). This string is a reserved identifier for the algorithm, following
+            // https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html#securerandom-number-generation-algorithms
+            return SecureRandom.getInstance("NativePRNG");
+        } catch (Exception e) {
+            log.warn(
+                    "Failed to initialize fully native secure random instance, letting the Java runtime select for us",
+                    e);
+            return new SecureRandom();
+        }
+    }
+}u}(jt  (7ffdf499b3babaa3d0997abc88e28cb57de2aa01j  Patlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggify.javaj  addedj  K!j  K j  K!j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+
+public enum NoOpBuggify implements Buggify {
+    INSTANCE;
+
+    @Override
+    public void run(Runnable _runnable) {
+        // do nothing
+    }
+
+    @Override
+    public boolean asBoolean() {
+        return false;
+    }
+}u}(jt  (bf4172a8a7e4e4576cacc81f228d95963322a41dj  Watlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyFactory.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,29 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+
+public enum NoOpBuggifyFactory implements BuggifyFactory {
+    INSTANCE;
+
+    @Override
+    public Buggify maybe(double _probability) {
+        return NoOpBuggify.INSTANCE;
+    }
+}u}(jt  (a7db5aa15eb7d98f2bcc738671a8f30fdfb489adj  ^atlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactoryTest.javaj  addedj  K+j  K j  K+j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X#  @@ -0,0 +1,43 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import org.junit.Test;
+
+public class DefaultBuggifyFactoryTest {
+    @Test
+    public void maybeReturnsDefaultWhenMaxProbability() {
+        assertThat(DefaultBuggifyFactory.INSTANCE.maybe(1.0)).isSameAs(DefaultBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsNoOpWhenNeverProbability() {
+        assertThat(DefaultBuggifyFactory.INSTANCE.maybe(0.0)).isSameAs(NoOpBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsNoOpWhenBelowOrEqualToProbability() {
+        assertThat(new DefaultBuggifyFactory(() -> 0.50).maybe(0.50)).isSameAs(NoOpBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsDefaultWhenAboveProbability() {
+        assertThat(new DefaultBuggifyFactory(() -> 0.49).maybe(0.50)).isSameAs(DefaultBuggify.INSTANCE);
+    }
+}u}(jt  (28a8b18ae59b101e1489b1e086bbac7d63318767j  Watlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyTest.javaj  addedj  K%j  K j  K%j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.verify;
+
+import org.junit.Test;
+
+public class DefaultBuggifyTest {
+    @Test
+    public void runAlwaysExecutes() {
+        Runnable runnable = mock(Runnable.class);
+        DefaultBuggify.INSTANCE.run(runnable);
+        verify(runnable).run();
+    }
+
+    @Test
+    public void asBooleanReturnsTrue() {
+        assertThat(DefaultBuggify.INSTANCE.asBoolean()).isTrue();
+    }
+}u}(jt  (c6d5d05237311ecd06793772e3b673f5836c8896j  Tatlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyTest.javaj  addedj  K&j  K j  K&j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.never;
+import static org.mockito.Mockito.verify;
+
+import org.junit.Test;
+
+public class NoOpBuggifyTest {
+    @Test
+    public void runNeverExecutes() {
+        Runnable runnable = mock(Runnable.class);
+        NoOpBuggify.INSTANCE.run(runnable);
+        verify(runnable, never()).run();
+    }
+
+    @Test
+    public void asBooleanReturnsFalse() {
+        assertThat(NoOpBuggify.INSTANCE.asBoolean()).isFalse();
+    }
+}u}(jt  (8fce8e6875711ffb9f2690858b1cbe9871979bd5j  0atlasdb-cassandra-integration-tests/build.gradlej  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra-integration-tests%2Fbuild.gradlej  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra-integration-tests%2Fbuild.gradlej  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fbuild.gradle?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X#  @@ -56,6 +56,24 @@ test {
     exclude '**/CassandraKeyValueServiceSweepTaskRunnerIntegrationTest.class'
 }
 
+task testSubset1(type: Test) {
+    include '**/CassandraKeyValueServiceTableCreationIntegrationTest.class'
+    include '**/CassandraKeyValueServiceTableManipulationIntegrationTest.class'
+    include '**/CassandraKeyValueServiceTransactionIntegrationTest.class'
+    include '**/CassandraKvsAsyncFallbackMechanismsTests.class'
+    include '**/CassandraKvsSerializableTransactionTest.class'
+}
+
+task testSubset2(type: Test) {
+    include '**/*Test.class'
+    include '**/*Tests.class'
+    exclude '**/CassandraKeyValueServiceTableCreationIntegrationTest.class'
+    exclude '**/CassandraKeyValueServiceTableManipulationIntegrationTest.class'
+    exclude '**/CassandraKeyValueServiceTransactionIntegrationTest.class'
+    exclude '**/CassandraKvsAsyncFallbackMechanismsTests.class'
+    exclude '**/CassandraKvsSerializableTransactionTest.class'
+}
+
 tasks.withType(Test) {
     testLogging {
         // set options for log level LIFECYCLEu}(jt  (617049a9e7ba3c0f72ea61d2d980892baf478d89j  zatlasdb-cassandra-integration-tests/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraBackedPueTableTest.javaj  modifiedj  Kj  K
j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraBackedPueTableTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraBackedPueTableTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraBackedPueTableTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -35,13 +35,12 @@
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
-import java.util.Optional;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.ExecutorService;
 import java.util.stream.Collectors;
@@ -93,16 +92,12 @@ public void getDoesNotLeakExceptionsInRaceConditions() throws ExecutionException
             }
             Futures.allAsList(reads).get().forEach(singleResult -> {
                 for (long ts : singlePartition) {
-                    assertCommitTimestampAbsentOrEqualToStartTimestamp(singleResult, ts);
+                    TransactionStatus status = singleResult.get(ts);
+                    if (status instanceof Committed) {
+                        assertThat(status).isEqualTo(TransactionStatus.committed(ts));
+                    }
                 }
             });
         }
     }
-
-    private static void assertCommitTimestampAbsentOrEqualToStartTimestamp(
-            Map<Long, TransactionStatus> result, long ts) {
-        Optional.ofNullable(result.get(ts))
-                .flatMap(TransactionStatuses::getCommitTimestamp)
-                .ifPresent(commitTs -> assertThat(ts).isEqualTo(commitTs));
-    }
 }u}(jt  (53509f2b6df2a34a1c1eb9aff6769f11f64e0441j  0atlasdb-cassandra/baseline-class-uniqueness.lockj  removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fbaseline-class-uniqueness.lockj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fbaseline-class-uniqueness.lockj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fbaseline-class-uniqueness.lock?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  XB  @@ -1,11 +0,0 @@
-# Danger! Multiple jars contain identically named classes. This may cause different behaviour depending on classpath ordering.
-# Run ./gradlew checkClassUniqueness --write-locks to update this file
-
-## runtimeClasspath
-[commons-logging:commons-logging, org.slf4j:jcl-over-slf4j]
-  - org.apache.commons.logging.Log
-  - org.apache.commons.logging.LogConfigurationException
-  - org.apache.commons.logging.LogFactory
-  - org.apache.commons.logging.impl.NoOpLog
-  - org.apache.commons.logging.impl.SimpleLog
-  - org.apache.commons.logging.impl.SimpleLog$1u}(jt  (b04a4c1c1d53f77ba24635c8a4b83a13f67e7069j  atlasdb-cassandra/build.gradlej  modifiedj  Kj  K j  Kj  rhttps://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fbuild.gradlej  qhttps://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fbuild.gradlej  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fbuild.gradle?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  Xd  @@ -58,6 +58,7 @@ dependencies {
   implementation project(':commons-executors')
   implementation project(':timestamp-api')
 
+  testImplementation 'commons-codec:commons-codec'
   testImplementation 'com.fasterxml.jackson.core:jackson-databind'
   testImplementation 'com.google.protobuf:protobuf-java'
   testImplementation 'com.palantir.common:streams'u}(jt  (87ef9c26965f3fbebf2004d1a2b09b55580f6a3bj  Qatlasdb-cassandra/src/main/java/com/palantir/atlasdb/backup/ClosingKvsRunner.javaj  removedj  K j  K$j  K$j  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FClosingKvsRunner.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FClosingKvsRunner.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FClosingKvsRunner.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X  @@ -1,36 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import java.util.function.Function;
-
-final class ClosingKvsRunner implements KvsRunner {
-    private final Function<AtlasService, KeyValueService> keyValueServiceFactory;
-
-    ClosingKvsRunner(Function<AtlasService, KeyValueService> keyValueServiceFactory) {
-        this.keyValueServiceFactory = keyValueServiceFactory;
-    }
-
-    @Override
-    public <T> T run(AtlasService atlasService, Function<KeyValueService, T> function) {
-        try (KeyValueService kvs = keyValueServiceFactory.apply(atlasService)) {
-            return function.apply(kvs);
-        }
-    }
-}u}(jt  (885d551251d03ef385e1174e0842d306026bcd76j  Jatlasdb-cassandra/src/main/java/com/palantir/atlasdb/backup/KvsRunner.javaj  removedj  K j  K"j  K"j  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FKvsRunner.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FKvsRunner.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FKvsRunner.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X  @@ -1,34 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.transaction.api.TransactionManager;
-import java.util.function.Function;
-
-public interface KvsRunner {
-    <T> T run(AtlasService atlasService, Function<KeyValueService, T> function);
-
-    static KvsRunner create(Function<AtlasService, KeyValueService> kvsFactory) {
-        return new ClosingKvsRunner(kvsFactory);
-    }
-
-    static KvsRunner create(TransactionManager txnManager) {
-        return new NonClosingKvsRunner(txnManager);
-    }
-}u}(jt  (b4a95d23a94eec5e3c3e926cae077f89ed7257cdj  Tatlasdb-cassandra/src/main/java/com/palantir/atlasdb/backup/NonClosingKvsRunner.javaj  removedj  K j  K#j  K#j  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FNonClosingKvsRunner.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FNonClosingKvsRunner.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FNonClosingKvsRunner.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X(  @@ -1,35 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.transaction.api.TransactionManager;
-import java.util.function.Function;
-
-final class NonClosingKvsRunner implements KvsRunner {
-    private final TransactionManager txnManager;
-
-    NonClosingKvsRunner(TransactionManager txnManager) {
-        this.txnManager = txnManager;
-    }
-
-    @Override
-    public <T> T run(AtlasService _atlasService, Function<KeyValueService, T> function) {
-        return function.apply(txnManager.getKeyValueService());
-    }
-}u}(jt  (e55a96f4c1411ecdb5d2470ca391d5190e22b738j  `atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/CassandraRepairHelper.javaj  removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCassandraRepairHelper.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCassandraRepairHelper.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCassandraRepairHelper.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X'#  @@ -1,181 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import com.github.benmanes.caffeine.cache.Caffeine;
-import com.github.benmanes.caffeine.cache.LoadingCache;
-import com.github.benmanes.caffeine.cache.RemovalCause;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.RangeSet;
-import com.google.common.collect.Sets;
-import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.backup.KvsRunner;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
-import com.palantir.atlasdb.cassandra.ReloadingCloseableContainer;
-import com.palantir.atlasdb.cassandra.ReloadingCloseableContainerImpl;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.keyvalue.cassandra.async.client.creation.ClusterFactory.CassandraClusterConfig;
-import com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService;
-import com.palantir.atlasdb.schema.TargetedSweepTables;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import com.palantir.refreshable.Refreshable;
-import java.net.InetSocketAddress;
-import java.time.Duration;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.function.BiConsumer;
-import java.util.function.Function;
-import java.util.stream.Stream;
-
-public class CassandraRepairHelper {
-    private static final SafeLogger log = SafeLoggerFactory.get(CassandraRepairHelper.class);
-
-    private static final Set<TableReference> TABLES_TO_REPAIR =
-            Sets.union(ImmutableSet.of(AtlasDbConstants.COORDINATION_TABLE), TargetedSweepTables.REPAIR_ON_RESTORE);
-
-    private final Function<AtlasService, CassandraClusterConfig> cassandraClusterConfigFactory;
-    private final Function<AtlasService, Refreshable<CassandraServersConfig>> refreshableCassandraServersConfigFactory;
-    private final LoadingCache<AtlasService, ReloadingCloseableContainer<CqlCluster>> cqlClusterContainers;
-    private final KvsRunner kvsRunner;
-
-    public CassandraRepairHelper(
-            KvsRunner kvsRunner,
-            Function<AtlasService, CassandraClusterConfig> cassandraClusterConfigFactory,
-            Function<AtlasService, Refreshable<CassandraServersConfig>> refreshableCassandraServersConfigFactory) {
-        this.kvsRunner = kvsRunner;
-        this.cassandraClusterConfigFactory = cassandraClusterConfigFactory;
-        this.refreshableCassandraServersConfigFactory = refreshableCassandraServersConfigFactory;
-
-        this.cqlClusterContainers = Caffeine.newBuilder()
-                .maximumSize(300)
-                .expireAfterAccess(Duration.ofMinutes(30L))
-                .removalListener(CassandraRepairHelper::onRemoval)
-                .build(this::getCqlClusterUncached);
-    }
-
-    private static void onRemoval(
-            AtlasService atlasService,
-            ReloadingCloseableContainer<CqlCluster> reloadingCloseableContainer,
-            RemovalCause _removalCause) {
-        try {
-            reloadingCloseableContainer.close();
-        } catch (Exception e) {
-            log.warn("Failed to close cql cluster container", SafeArg.of("atlasService", atlasService), e);
-        }
-    }
-
-    private ReloadingCloseableContainer<CqlCluster> getCqlClusterUncached(AtlasService atlasService) {
-        log.info("Creating CQL cluster for Atlas service", SafeArg.of("atlasService", atlasService));
-        CassandraClusterConfig cassandraClusterConfig = cassandraClusterConfigFactory.apply(atlasService);
-        Refreshable<CassandraServersConfig> cassandraServersConfigRefreshable =
-                refreshableCassandraServersConfigFactory.apply(atlasService);
-
-        return ReloadingCloseableContainerImpl.of(
-                cassandraServersConfigRefreshable,
-                cassandraServersConfig ->
-                        CqlCluster.create(cassandraClusterConfig, cassandraServersConfig, atlasService.getNamespace()));
-    }
-
-    public void repairInternalTables(AtlasService atlasService, BiConsumer<String, RangesForRepair> repairTable) {
-        kvsRunner.run(atlasService, kvs -> repairInternalTables(kvs, atlasService, repairTable));
-    }
-
-    public Void repairInternalTables(
-            KeyValueService kvs, AtlasService atlasService, BiConsumer<String, RangesForRepair> repairTable) {
-        CqlCluster cqlCluster = cqlClusterContainers.get(atlasService).get();
-        KeyedStream.of(getTableNamesToRepair(kvs))
-                .map(tableName -> getRangesToRepair(cqlCluster, atlasService, tableName))
-                .forEach(repairTable);
-        return null;
-    }
-
-    private static Stream<String> getTableNamesToRepair(KeyValueService kvs) {
-        return kvs.getAllTableNames().stream()
-                .filter(TABLES_TO_REPAIR::contains)
-                .map(TableReference::getTableName);
-    }
-
-    public void repairTransactionsTables(
-            AtlasService atlasService,
-            List<TransactionsTableInteraction> transactionsTableInteractions,
-            BiConsumer<String, RangesForRepair> repairTable) {
-        Map<String, RangesForRepair> tokenRangesForRepair =
-                getRangesForRepairByTable(atlasService, transactionsTableInteractions);
-
-        tokenRangesForRepair.forEach((table, ranges) -> {
-            log.info(
-                    "Repairing ranges for table",
-                    SafeArg.of("namespace", atlasService.getNamespace()),
-                    SafeArg.of("table", table));
-            repairTable.accept(table, ranges);
-        });
-    }
-
-    public void cleanTransactionsTables(
-            AtlasService atlasService,
-            long startTimestamp,
-            List<TransactionsTableInteraction> transactionsTableInteractions) {
-        cqlClusterContainers.get(atlasService).get().abortTransactions(startTimestamp, transactionsTableInteractions);
-    }
-
-    private Map<String, RangesForRepair> getRangesForRepairByTable(
-            AtlasService atlasService, List<TransactionsTableInteraction> transactionsTableInteractions) {
-        return KeyedStream.stream(getRawRangesForRepairByTable(atlasService, transactionsTableInteractions))
-                .map(RangesForRepair::of)
-                .collectToMap();
-    }
-
-    private Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> getRawRangesForRepairByTable(
-            AtlasService atlasService, List<TransactionsTableInteraction> transactionsTableInteractions) {
-        return cqlClusterContainers
-                .get(atlasService)
-                .get()
-                .getTransactionsTableRangesForRepair(transactionsTableInteractions);
-    }
-
-    // VisibleForTesting
-    public static RangesForRepair getRangesToRepair(
-            CqlCluster cqlCluster, AtlasService atlasService, String tableName) {
-        Map<InetSocketAddress, RangeSet<LightweightOppToken>> tokenRanges =
-                getTokenRangesToRepair(cqlCluster, atlasService, tableName);
-        return RangesForRepair.of(tokenRanges);
-    }
-
-    private static Map<InetSocketAddress, RangeSet<LightweightOppToken>> getTokenRangesToRepair(
-            CqlCluster cqlCluster, AtlasService atlasService, String tableName) {
-        String cassandraTableName = getCassandraTableName(atlasService.getNamespace(), tableName);
-        return cqlCluster.getTokenRanges(cassandraTableName);
-    }
-
-    private static String getCassandraTableName(Namespace namespace, String tableName) {
-        TableReference tableRef = TableReference.create(toKvNamespace(namespace), tableName);
-        return AbstractKeyValueService.internalTableName(tableRef);
-    }
-
-    private static com.palantir.atlasdb.keyvalue.api.Namespace toKvNamespace(Namespace namespace) {
-        return com.palantir.atlasdb.keyvalue.api.Namespace.create(namespace.get());
-    }
-}u}(jt  (10ac517540c4ccbec86921f43455bf0f5cc33699j  _atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/ClusterMetadataUtils.javaj  removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FClusterMetadataUtils.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FClusterMetadataUtils.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FClusterMetadataUtils.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X,  @@ -1,224 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import static com.google.common.collect.ImmutableRangeSet.toImmutableRangeSet;
-
-import com.datastax.driver.core.KeyspaceMetadata;
-import com.datastax.driver.core.TableMetadata;
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.ArrayListMultimap;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.MoreCollectors;
-import com.google.common.collect.Multimap;
-import com.google.common.collect.Range;
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.logging.LoggingArgs;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.logsafe.Preconditions;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import java.net.InetSocketAddress;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.SortedMap;
-import java.util.TreeMap;
-import java.util.function.Predicate;
-import java.util.stream.Collectors;
-import java.util.stream.Stream;
-
-public final class ClusterMetadataUtils {
-    private ClusterMetadataUtils() {
-        // util class
-    }
-
-    public static TableMetadata getTableMetadata(CqlMetadata metadata, Namespace namespace, String table) {
-        KeyspaceMetadata keyspaceMetadata = metadata.getKeyspaceMetadata(namespace);
-        Optional<TableMetadata> maybeTable = keyspaceMetadata.getTables().stream()
-                .filter(tableMetadata -> tableMetadata.getName().equals(table))
-                .collect(MoreCollectors.toOptional());
-        return maybeTable.orElseThrow(() -> new SafeIllegalArgumentException(
-                "Can't find table",
-                SafeArg.of("keyspace", namespace),
-                LoggingArgs.tableRef("table", TableReference.fromString(table))));
-    }
-
-    /**
-     * Returns a mapping of Node to token ranges its host contains, where every partition key in the specified
-     * list is present in the token ranges for each replica.
-     *
-     * <p>For example there is a cluster that has keyspace K with a simple replication strategy and replication factor
-     * 2, the ring of the cluster has a range of (0, 3], and there are 3 nodes A, B, and C, where:
-     *
-     * <ul>
-     *   <li>A has replicas for K for token ranges (1, 2] and (2, 3]
-     *   <li>B has replicas for K for token ranges (2, 3] and (0, 1]
-     *   <li>C has replicas for K for token ranges (0, 1] and (1, 2]
-     * </ul>
-     *
-     * <p>The value returned by calling getTokenMapping([A, B, C], metadata, K, [0.25, 0.5, 2.5]) would be: <br>
-     * { A : set[ range(2, 3] ], B : set[ range(0, 1],  range(2, 3]] }, C : set[ range(0, 1] ] }
-     *
-     * @param nodeSet The Cassandra nodes whose replicas to check
-     * @param metadata The Datastax driver metadata from the Cassandra cluster
-     * @param namespace The namespace containing the partition keys we want to map
-     * @param partitionKeyTokens The Cassandra tokens for the partition keys we want to map
-     * @return Mapping of Node to token ranges its host contains, where every partition key in the specified
-     * list is present in one of the token ranges on one host
-     */
-    @SuppressWarnings("ReverseDnsLookup")
-    public static Map<InetSocketAddress, RangeSet<LightweightOppToken>> getTokenMapping(
-            Collection<InetSocketAddress> nodeSet,
-            CqlMetadata metadata,
-            Namespace namespace,
-            Set<LightweightOppToken> partitionKeyTokens) {
-
-        Map<String, InetSocketAddress> nodeMetadataHostMap =
-                KeyedStream.of(nodeSet).mapKeys(InetSocketAddress::getHostName).collectToMap();
-        Map<InetSocketAddress, RangeSet<LightweightOppToken>> hostToTokenRangeMap =
-                getTokenMappingForPartitionKeys(metadata, namespace, partitionKeyTokens);
-
-        return KeyedStream.stream(hostToTokenRangeMap)
-                .mapKeys(host -> lookUpAddress(nodeMetadataHostMap, host))
-                .collectToMap();
-    }
-
-    @SuppressWarnings("ReverseDnsLookup")
-    private static InetSocketAddress lookUpAddress(
-            Map<String, InetSocketAddress> nodeMetadataHostMap, InetSocketAddress host) {
-        String hostname = host.getHostName();
-        Preconditions.checkArgument(
-                nodeMetadataHostMap.containsKey(hostname),
-                "Did not find corresponding Node to run repair",
-                SafeArg.of("hostname", hostname),
-                SafeArg.of("availableHosts", nodeMetadataHostMap.keySet()),
-                SafeArg.of("host", host));
-        return nodeMetadataHostMap.get(hostname);
-    }
-
-    private static Map<InetSocketAddress, RangeSet<LightweightOppToken>> getTokenMappingForPartitionKeys(
-            CqlMetadata metadata, Namespace namespace, Set<LightweightOppToken> partitionKeyTokens) {
-        Set<Range<LightweightOppToken>> tokenRanges = metadata.getTokenRanges();
-        SortedMap<LightweightOppToken, Range<LightweightOppToken>> tokenRangesByStart = KeyedStream.of(tokenRanges)
-                .mapKeys(LightweightOppToken::getLowerExclusive)
-                .collectTo(TreeMap::new);
-        Set<Range<LightweightOppToken>> ranges = getMinimalSetOfRangesForTokens(partitionKeyTokens, tokenRangesByStart);
-        Multimap<InetSocketAddress, Range<LightweightOppToken>> tokenMapping = ArrayListMultimap.create();
-        ranges.forEach(range -> {
-            List<InetSocketAddress> hosts = ImmutableList.copyOf(metadata.getReplicas(namespace, range));
-            if (hosts.isEmpty()) {
-                throw new SafeIllegalStateException(
-                        "Failed to find any replicas of token range for repair",
-                        SafeArg.of("tokenRange", range.toString()),
-                        SafeArg.of("keyspace", quotedNamespace(namespace)));
-            }
-            hosts.forEach(host -> tokenMapping.put(host, range));
-        });
-        return KeyedStream.stream(tokenMapping.asMap())
-                .map(Collection::stream)
-                .map(stream -> (RangeSet<LightweightOppToken>) stream.collect(toImmutableRangeSet()))
-                .collectToMap();
-    }
-
-    @VisibleForTesting
-    // Needs to be Set<Range<>> as we don't want to merge ranges yet
-    static Set<Range<LightweightOppToken>> getMinimalSetOfRangesForTokens(
-            Set<LightweightOppToken> partitionKeyTokens,
-            SortedMap<LightweightOppToken, Range<LightweightOppToken>> tokenRangesByStart) {
-        Map<LightweightOppToken, Range<LightweightOppToken>> tokenRangesByStartToken = new HashMap<>();
-        for (LightweightOppToken token : partitionKeyTokens) {
-            Range<LightweightOppToken> minimalTokenRange = findTokenRange(token, tokenRangesByStart);
-            tokenRangesByStartToken.merge(
-                    LightweightOppToken.getLowerExclusive(minimalTokenRange),
-                    minimalTokenRange,
-                    ClusterMetadataUtils::findLatestEndingRange);
-
-            if (!minimalTokenRange.hasLowerBound()) {
-                // handle wraparound
-                Optional<Range<LightweightOppToken>> wraparoundRange = tokenRangesByStart.values().stream()
-                        .filter(Predicate.not(Range::hasUpperBound))
-                        .findFirst();
-                wraparoundRange.ifPresent(range -> tokenRangesByStartToken.merge(
-                        LightweightOppToken.getLowerExclusive(range),
-                        range,
-                        ClusterMetadataUtils::findLatestEndingRange));
-            }
-        }
-        return ImmutableSet.copyOf(tokenRangesByStartToken.values());
-    }
-
-    private static Range<LightweightOppToken> findTokenRange(
-            LightweightOppToken token, SortedMap<LightweightOppToken, Range<LightweightOppToken>> tokenRangesByStart) {
-        if (tokenRangesByStart.headMap(token).isEmpty()) {
-            // Shouldn't happen, as tokenRangesByStart should include the whole token ring, including some range
-            // starting with minus infinity.
-            throw new SafeIllegalStateException(
-                    "Unable to find token range for token, as a full token ring was not supplied",
-                    SafeArg.of("token", token),
-                    SafeArg.of("tokenRangesByStart", tokenRangesByStart));
-        }
-
-        LightweightOppToken lowerBound = tokenRangesByStart.headMap(token).lastKey();
-        if (lowerBound.isEmpty()) {
-            return Range.atMost(token);
-        } else {
-            return Range.openClosed(lowerBound, token);
-        }
-    }
-
-    private static String quotedNamespace(Namespace namespace) {
-        return "\"" + namespace.value() + "\"";
-    }
-
-    // VisibleForTesting
-    public static Range<LightweightOppToken> findLatestEndingRange(
-            Range<LightweightOppToken> range1, Range<LightweightOppToken> range2) {
-        Preconditions.checkArgument(
-                LightweightOppToken.getLowerExclusive(range1).equals(LightweightOppToken.getLowerExclusive(range2)),
-                "Expects token ranges to have the same start token",
-                SafeArg.of("range1", range1),
-                SafeArg.of("range2", range2));
-
-        Set<Range<LightweightOppToken>> wrapAroundTokenRanges = Stream.of(range1, range2)
-                .filter(Predicate.not(Range::hasUpperBound))
-                .collect(Collectors.toSet());
-        // If any token ranges are wraparound ranges, the non-wraparound ranges cannot possibly be the longest range
-        if (wrapAroundTokenRanges.size() == 1) {
-            return wrapAroundTokenRanges.iterator().next();
-        }
-
-        if (range1.contains(range2.upperEndpoint())) {
-            return range1;
-        } else if (range2.contains(range1.upperEndpoint())) {
-            return range2;
-        } else {
-            throw new SafeIllegalArgumentException(
-                    "Cannot find max token range",
-                    SafeArg.of("tokenRange1", range1),
-                    SafeArg.of("tokenRange2", range2));
-        }
-    }
-}u}(jt  (ef671c609a69c3feb06a91c7236944f03dc5457fj  Uatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/CqlCluster.javaj  removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlCluster.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlCluster.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlCluster.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X  @@ -1,127 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import com.datastax.driver.core.Cluster;
-import com.github.rholder.retry.RetryException;
-import com.github.rholder.retry.Retryer;
-import com.github.rholder.retry.StopStrategies;
-import com.github.rholder.retry.WaitStrategies;
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.keyvalue.cassandra.async.client.creation.ClusterFactory;
-import com.palantir.atlasdb.keyvalue.cassandra.async.client.creation.ClusterFactory.CassandraClusterConfig;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import com.palantir.logsafe.exceptions.SafeRuntimeException;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.io.Closeable;
-import java.io.IOException;
-import java.net.InetSocketAddress;
-import java.time.Duration;
-import java.util.List;
-import java.util.Map;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.TimeUnit;
-
-public final class CqlCluster implements Closeable {
-    private static final SafeLogger log = SafeLoggerFactory.get(CqlCluster.class);
-
-    private static final Duration RETRY_DURATION = Duration.ofMinutes(1L);
-    private static final int RETRY_COUNT = 5;
-
-    private final Cluster cluster;
-    private final CassandraServersConfig cassandraServersConfig;
-    private final Namespace namespace;
-    private final Retryer<CqlSession> cqlSessionRetryer;
-
-    // VisibleForTesting
-    public CqlCluster(Cluster cluster, CassandraServersConfig cassandraServersConfig, Namespace namespace) {
-        this(cluster, cassandraServersConfig, namespace, RETRY_DURATION);
-    }
-
-    // VisibleForTesting
-    public CqlCluster(
-            Cluster cluster,
-            CassandraServersConfig cassandraServersConfig,
-            Namespace namespace,
-            Duration retryDuration) {
-        this.cluster = cluster;
-        this.cassandraServersConfig = cassandraServersConfig;
-        this.namespace = namespace;
-        this.cqlSessionRetryer = new Retryer<>(
-                StopStrategies.stopAfterAttempt(RETRY_COUNT),
-                WaitStrategies.fixedWait(retryDuration.toMillis(), TimeUnit.MILLISECONDS),
-                attempt -> !attempt.hasResult());
-    }
-
-    public static CqlCluster create(
-            CassandraClusterConfig cassandraClusterConfig,
-            CassandraServersConfig cassandraServersConfig,
-            Namespace namespace) {
-        Cluster cluster =
-                new ClusterFactory(Cluster::builder).constructCluster(cassandraClusterConfig, cassandraServersConfig);
-        return new CqlCluster(cluster, cassandraServersConfig, namespace, RETRY_DURATION);
-    }
-
-    @Override
-    public void close() throws IOException {
-        log.info(
-                "Closing cql cluster container",
-                SafeArg.of("namespace", namespace),
-                new SafeRuntimeException("I exist to show you the stack trace"));
-        cluster.close();
-    }
-
-    public Map<InetSocketAddress, RangeSet<LightweightOppToken>> getTokenRanges(String tableName) {
-        try (CqlSession session = createSessionWithRetry()) {
-            return new TokenRangeFetcher(session, namespace, cassandraServersConfig).getTokenRange(tableName);
-        }
-    }
-
-    public Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> getTransactionsTableRangesForRepair(
-            List<TransactionsTableInteraction> transactionsTableInteractions) {
-        try (CqlSession session = createSessionWithRetry()) {
-            return new RepairRangeFetcher(session, namespace, cassandraServersConfig)
-                    .getTransactionTableRangesForRepair(transactionsTableInteractions);
-        }
-    }
-
-    public void abortTransactions(long timestamp, List<TransactionsTableInteraction> transactionsTableInteractions) {
-        try (CqlSession session = createSessionWithRetry()) {
-            new TransactionAborter(session, namespace).abortTransactions(timestamp, transactionsTableInteractions);
-        }
-    }
-
-    @VisibleForTesting
-    CqlSession createSessionWithRetry() {
-        try {
-            return cqlSessionRetryer.call(() -> new CqlSession(cluster.connect()));
-        } catch (ExecutionException e) {
-            throw new SafeIllegalStateException(
-                    "Failed to execute CqlSession connect", e, SafeArg.of("namespace", namespace));
-        } catch (RetryException e) {
-            throw new SafeIllegalStateException(
-                    "Failed to execute CqlSession connect even with retry", e, SafeArg.of("namespace", namespace));
-        }
-    }
-}um!     }(jt  (73b08f7b2b5a0f8455602448f16606158d60e1e4j  Uatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/CqlSession.javaj  modifiedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlSession.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlSession.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlSession.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -16,18 +16,11 @@
 
 package com.palantir.atlasdb.cassandra.backup;
 
-import com.datastax.driver.core.ConsistencyLevel;
 import com.datastax.driver.core.PreparedStatement;
 import com.datastax.driver.core.ResultSet;
 import com.datastax.driver.core.Session;
 import com.datastax.driver.core.Statement;
-import com.palantir.atlasdb.keyvalue.cassandra.CassandraConstants;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
 import java.io.Closeable;
-import java.util.List;
-import java.util.Set;
-import java.util.stream.Collectors;
-import java.util.stream.StreamSupport;
 
 public class CqlSession implements Closeable {
     private final Session session;
@@ -45,15 +38,6 @@ public CqlMetadata getMetadata() {
         return new CqlMetadata(session.getCluster().getMetadata());
     }
 
-    public Set<LightweightOppToken> retrieveRowKeysAtConsistencyAll(List<Statement> selectStatements) {
-        return selectStatements.stream()
-                .map(statement -> statement.setConsistencyLevel(ConsistencyLevel.ALL))
-                .flatMap(select -> StreamSupport.stream(session.execute(select).spliterator(), false))
-                .map(row -> row.getToken(CassandraConstants.ROW))
-                .map(LightweightOppToken::serialize)
-                .collect(Collectors.toSet());
-    }
-
     public PreparedStatement prepare(Statement statement) {
         return session.prepare(statement.toString());
     }u}(jt  (933c52ba0e9a988bbc5050289baf465ee261d363j  Zatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/RangesForRepair.javaj  removedj  K j  K%j  K%j  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRangesForRepair.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRangesForRepair.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRangesForRepair.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X  @@ -1,37 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import java.net.InetSocketAddress;
-import java.util.Map;
-import org.immutables.value.Value;
-
-@Value.Immutable
-@SuppressWarnings("UnstableApiUsage")
-public abstract class RangesForRepair {
-    public abstract Map<InetSocketAddress, RangeSet<LightweightOppToken>> tokenMap();
-
-    public RangeSet<LightweightOppToken> get(InetSocketAddress address) {
-        return tokenMap().get(address);
-    }
-
-    public static RangesForRepair of(Map<InetSocketAddress, RangeSet<LightweightOppToken>> tokenMap) {
-        return ImmutableRangesForRepair.builder().tokenMap(tokenMap).build();
-    }
-}u}(jt  (37f1ac7913a2ee5b0148e690a9bc2b6a483f6f49j  ]atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/RepairRangeFetcher.javaj  removedj  K j  Kpj  Kpj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRepairRangeFetcher.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRepairRangeFetcher.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRepairRangeFetcher.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X/  @@ -1,112 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import com.datastax.driver.core.Statement;
-import com.datastax.driver.core.TableMetadata;
-import com.google.common.collect.Multimap;
-import com.google.common.collect.Multimaps;
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import com.palantir.timestamp.FullyBoundedTimestampRange;
-import java.net.InetSocketAddress;
-import java.util.Collection;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.stream.Collectors;
-
-final class RepairRangeFetcher {
-    private static final SafeLogger log = SafeLoggerFactory.get(RepairRangeFetcher.class);
-
-    private final CqlSession cqlSession;
-    private final CqlMetadata cqlMetadata;
-    private final Namespace namespace;
-    private final CassandraServersConfig cassandraServersConfig;
-
-    public RepairRangeFetcher(
-            CqlSession cqlSession, Namespace namespace, CassandraServersConfig cassandraServersConfig) {
-        this.cqlSession = cqlSession;
-        this.cqlMetadata = cqlSession.getMetadata();
-        this.namespace = namespace;
-        this.cassandraServersConfig = cassandraServersConfig;
-    }
-
-    public Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> getTransactionTableRangesForRepair(
-            List<TransactionsTableInteraction> transactionsTableInteractions) {
-
-        Map<String, Set<LightweightOppToken>> partitionKeysByTable =
-                getPartitionTokensByTable(transactionsTableInteractions);
-
-        maybeLogTokenRanges(transactionsTableInteractions, partitionKeysByTable);
-
-        Set<InetSocketAddress> hosts = CassandraServersConfigs.getCqlHosts(cassandraServersConfig);
-        return KeyedStream.stream(partitionKeysByTable)
-                .map(ranges -> ClusterMetadataUtils.getTokenMapping(hosts, cqlMetadata, namespace, ranges))
-                .collectToMap();
-    }
-
-    private Map<String, Set<LightweightOppToken>> getPartitionTokensByTable(
-            List<TransactionsTableInteraction> transactionsTableInteractions) {
-        Multimap<String, TransactionsTableInteraction> interactionsByTable =
-                Multimaps.index(transactionsTableInteractions, TransactionsTableInteraction::getTransactionsTableName);
-        return KeyedStream.stream(interactionsByTable.asMap())
-                .map(this::getPartitionsTokenForSingleTransactionsTable)
-                .collectToMap();
-    }
-
-    private Set<LightweightOppToken> getPartitionsTokenForSingleTransactionsTable(
-            Collection<TransactionsTableInteraction> interactions) {
-        return interactions.stream()
-                .map(this::getPartitionTokensForTransactionsTable)
-                .flatMap(Collection::stream)
-                .collect(Collectors.toSet());
-    }
-
-    private Set<LightweightOppToken> getPartitionTokensForTransactionsTable(TransactionsTableInteraction interaction) {
-        TableMetadata transactionsTableMetadata =
-                ClusterMetadataUtils.getTableMetadata(cqlMetadata, namespace, interaction.getTransactionsTableName());
-        List<Statement> selectStatements =
-                interaction.createSelectStatementsForScanningFullTimestampRange(transactionsTableMetadata);
-        return cqlSession.retrieveRowKeysAtConsistencyAll(selectStatements);
-    }
-
-    private static void maybeLogTokenRanges(
-            List<TransactionsTableInteraction> transactionsTableInteractions,
-            Map<String, Set<LightweightOppToken>> partitionKeysByTable) {
-        if (log.isDebugEnabled()) {
-            Multimap<String, TransactionsTableInteraction> indexedInteractions = Multimaps.index(
-                    transactionsTableInteractions, TransactionsTableInteraction::getTransactionsTableName);
-            Multimap<String, FullyBoundedTimestampRange> loggableTableRanges =
-                    Multimaps.transformValues(indexedInteractions, TransactionsTableInteraction::getTimestampRange);
-            Map<String, Integer> numPartitionKeysByTable =
-                    KeyedStream.stream(partitionKeysByTable).map(Set::size).collectToMap();
-            log.debug(
-                    "Identified token ranges requiring repair in the following transactions tables",
-                    SafeArg.of("transactionsTablesWithRanges", loggableTableRanges),
-                    SafeArg.of("numPartitionKeysByTable", numPartitionKeysByTable));
-        }
-    }
-}u}(jt  (a28968b7128269ec0ba746fc30513d6c81f27c8aj  \atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/TokenRangeFetcher.javaj  removedj  K j  Koj  Koj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTokenRangeFetcher.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTokenRangeFetcher.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTokenRangeFetcher.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X	  @@ -1,111 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import com.datastax.driver.core.ConsistencyLevel;
-import com.datastax.driver.core.KeyspaceMetadata;
-import com.datastax.driver.core.Statement;
-import com.datastax.driver.core.TableMetadata;
-import com.datastax.driver.core.querybuilder.QueryBuilder;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
-import com.palantir.atlasdb.keyvalue.cassandra.CassandraConstants;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.net.InetSocketAddress;
-import java.util.Map;
-import java.util.Set;
-import java.util.concurrent.TimeUnit;
-
-final class TokenRangeFetcher {
-    private static final SafeLogger log = SafeLoggerFactory.get(TokenRangeFetcher.class);
-
-    private static final int LONG_READ_TIMEOUT_MS = (int) TimeUnit.MINUTES.toMillis(2);
-    // reduce this from default because we run RepairTableTask across N keyspaces at the same time
-    private static final int SELECT_FETCH_SIZE = 1_000;
-
-    private final CqlSession cqlSession;
-    private final CqlMetadata cqlMetadata;
-    private final Namespace namespace;
-    private final CassandraServersConfig cassandraServersConfig;
-
-    public TokenRangeFetcher(
-            CqlSession cqlSession, Namespace namespace, CassandraServersConfig cassandraServersConfig) {
-        this.namespace = namespace;
-        this.cassandraServersConfig = cassandraServersConfig;
-        this.cqlSession = cqlSession;
-        this.cqlMetadata = cqlSession.getMetadata();
-    }
-
-    public Map<InetSocketAddress, RangeSet<LightweightOppToken>> getTokenRange(String tableName) {
-        KeyspaceMetadata keyspaceMetadata = cqlMetadata.getKeyspaceMetadata(namespace);
-        if (keyspaceMetadata == null) {
-            log.error(
-                    "Could not find metadata for a keyspace that is supposed to exist",
-                    SafeArg.of("keyspace", namespace));
-            return ImmutableMap.of();
-        }
-
-        TableMetadata tableMetadata = keyspaceMetadata.getTable(tableName);
-        if (tableMetadata == null) {
-            log.error(
-                    "Could not find metadata for table that is supposed to exist",
-                    SafeArg.of("keyspace", namespace),
-                    SafeArg.of("tableName", tableName));
-            return ImmutableMap.of();
-        }
-
-        Set<LightweightOppToken> partitionTokens = getPartitionTokens(tableMetadata);
-        Map<InetSocketAddress, RangeSet<LightweightOppToken>> tokenRangesByNode = ClusterMetadataUtils.getTokenMapping(
-                CassandraServersConfigs.getCqlHosts(cassandraServersConfig), cqlMetadata, namespace, partitionTokens);
-
-        if (!partitionTokens.isEmpty() && log.isDebugEnabled()) {
-            int numTokenRanges = tokenRangesByNode.values().stream()
-                    .mapToInt(ranges -> ranges.asRanges().size())
-                    .sum();
-
-            log.debug(
-                    "Identified token ranges requiring repair",
-                    SafeArg.of("keyspace", namespace),
-                    SafeArg.of("table", tableName),
-                    SafeArg.of("numPartitionKeys", partitionTokens.size()),
-                    SafeArg.of("numTokenRanges", numTokenRanges));
-        }
-
-        return tokenRangesByNode;
-    }
-
-    private Set<LightweightOppToken> getPartitionTokens(TableMetadata tableMetadata) {
-        return cqlSession.retrieveRowKeysAtConsistencyAll(ImmutableList.of(selectDistinctRowKeys(tableMetadata)));
-    }
-
-    private static Statement selectDistinctRowKeys(TableMetadata table) {
-        return QueryBuilder.select(CassandraConstants.ROW)
-                // only returns the column that we need instead of all of them, otherwise we get a timeout
-                .distinct()
-                .from(table)
-                .setConsistencyLevel(ConsistencyLevel.ALL)
-                .setFetchSize(SELECT_FETCH_SIZE)
-                .setReadTimeoutMillis(LONG_READ_TIMEOUT_MS);
-    }
-}u}(jt  (b6a927cdd7751156b605bc6e9520ce10f8bcce23j  ]atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/TransactionAborter.javaj  removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTransactionAborter.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTransactionAborter.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTransactionAborter.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X+  @@ -1,240 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import com.datastax.driver.core.ConsistencyLevel;
-import com.datastax.driver.core.PreparedStatement;
-import com.datastax.driver.core.ResultSet;
-import com.datastax.driver.core.Row;
-import com.datastax.driver.core.Statement;
-import com.datastax.driver.core.TableMetadata;
-import com.github.rholder.retry.RetryException;
-import com.github.rholder.retry.Retryer;
-import com.github.rholder.retry.StopStrategies;
-import com.github.rholder.retry.WaitStrategies;
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.Iterators;
-import com.google.common.collect.Streams;
-import com.palantir.atlasdb.atomic.AtomicValue;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionTableEntries;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionTableEntry;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.logsafe.Preconditions;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.List;
-import java.util.Optional;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.TimeUnit;
-import java.util.stream.Stream;
-
-final class TransactionAborter {
-    private static final SafeLogger log = SafeLoggerFactory.get(TransactionAborter.class);
-
-    private static final int RETRY_COUNT = 3;
-
-    private final CqlSession cqlSession;
-    private final Namespace namespace;
-    private final Retryer<Boolean> abortRetryer;
-
-    public TransactionAborter(CqlSession cqlSession, Namespace namespace) {
-        this.cqlSession = cqlSession;
-        this.namespace = namespace;
-
-        this.abortRetryer = new Retryer<>(
-                StopStrategies.stopAfterAttempt(RETRY_COUNT),
-                WaitStrategies.fixedWait(1L, TimeUnit.SECONDS),
-                attempt -> !attempt.hasResult() || !attempt.getResult());
-    }
-
-    public void abortTransactions(long timestamp, List<TransactionsTableInteraction> transactionsTableInteractions) {
-        CqlMetadata clusterMetadata = cqlSession.getMetadata();
-        transactionsTableInteractions.forEach(
-                txnInteraction -> abortTransactions(clusterMetadata, timestamp, txnInteraction));
-    }
-
-    private void abortTransactions(
-            CqlMetadata clusterMetadata, long timestamp, TransactionsTableInteraction txnInteraction) {
-        log.info(
-                "Aborting transactions after backup timestamp",
-                SafeArg.of("backupTimestamp", timestamp),
-                SafeArg.of("keyspace", namespace),
-                SafeArg.of("table", txnInteraction.getTransactionsTableName()));
-
-        TableMetadata transactionsTable = ClusterMetadataUtils.getTableMetadata(
-                clusterMetadata, namespace, txnInteraction.getTransactionsTableName());
-
-        PreparedStatement preparedAbortStatement = txnInteraction.prepareAbortStatement(transactionsTable, cqlSession);
-        PreparedStatement preparedCheckStatement = txnInteraction.prepareCheckStatement(transactionsTable, cqlSession);
-        Stream<TransactionTableEntry> keysToAbort =
-                getTransactionsToAbort(txnInteraction, transactionsTable, timestamp);
-        executeTransactionAborts(txnInteraction, preparedAbortStatement, preparedCheckStatement, keysToAbort);
-    }
-
-    @VisibleForTesting
-    Stream<TransactionTableEntry> getTransactionsToAbort(
-            TransactionsTableInteraction txnInteraction, TableMetadata transactionsTable, long timestamp) {
-        Stream<Row> rowResults =
-                txnInteraction.createSelectStatementsForScanningFullTimestampRange(transactionsTable).stream()
-                        .map(select -> cqlSession.execute(select).iterator())
-                        .flatMap(Streams::stream);
-
-        return KeyedStream.of(rowResults)
-                .map(txnInteraction::extractTimestamps)
-                .filter(entry -> isInRange(namespace, txnInteraction, entry, timestamp))
-                .values();
-    }
-
-    private static boolean isInRange(
-            Namespace namespace,
-            TransactionsTableInteraction txnInteraction,
-            TransactionTableEntry entry,
-            long timestamp) {
-        Optional<Long> maybeCommitTimestamp = getCommitTimestamp(entry);
-        if (maybeCommitTimestamp.isEmpty()) {
-            return false;
-        }
-
-        long startTimestamp = TransactionTableEntries.getStartTimestamp(entry);
-        long commitTimestamp = maybeCommitTimestamp.get();
-        boolean isInRange = txnInteraction.getTimestampRange().contains(startTimestamp);
-        if (commitTimestamp <= timestamp || !isInRange) {
-            return false;
-        }
-
-        log.debug(
-                "Found transaction to abort",
-                SafeArg.of("startTimestamp", startTimestamp),
-                SafeArg.of("commitTimestamp", commitTimestamp),
-                SafeArg.of("keyspace", namespace),
-                SafeArg.of("table", txnInteraction.getTransactionsTableName()));
-        return true;
-    }
-
-    @VisibleForTesting
-    void executeTransactionAborts(
-            TransactionsTableInteraction txnInteraction,
-            PreparedStatement preparedAbortStatement,
-            PreparedStatement preparedCheckStatement,
-            Stream<TransactionTableEntry> entries) {
-        entries.forEach(entry -> {
-            Statement abortStatement = txnInteraction.bindAbortStatement(preparedAbortStatement, entry);
-            Statement checkStatement = txnInteraction.bindCheckStatement(preparedCheckStatement, entry);
-            executeWithRetry(txnInteraction, abortStatement, checkStatement, entry);
-        });
-    }
-
-    private void executeWithRetry(
-            TransactionsTableInteraction txnInteraction,
-            Statement abortStatement,
-            Statement checkStatement,
-            TransactionTableEntry entry) {
-        long startTs = TransactionTableEntries.getStartTimestamp(entry);
-        long commitTs = getCommitTimestamp(entry).orElseThrow();
-
-        Preconditions.checkArgument(
-                abortStatement.getSerialConsistencyLevel() == ConsistencyLevel.SERIAL,
-                "Abort statement was not at expected consistency level",
-                SafeArg.of("consistencyLevel", abortStatement.getSerialConsistencyLevel()),
-                SafeArg.of("expectedConsistencyLevel", ConsistencyLevel.SERIAL));
-        Preconditions.checkArgument(
-                checkStatement.getSerialConsistencyLevel() == ConsistencyLevel.SERIAL,
-                "Check statement was not at expected consistency level",
-                SafeArg.of("consistencyLevel", checkStatement.getSerialConsistencyLevel()),
-                SafeArg.of("expectedConsistencyLevel", ConsistencyLevel.SERIAL));
-
-        try {
-            abortRetryer.call(
-                    () -> tryAbortTransactions(txnInteraction, abortStatement, checkStatement, startTs, commitTs));
-        } catch (ExecutionException e) {
-            throw new SafeIllegalStateException(
-                    "Failed to execute transaction abort",
-                    e,
-                    SafeArg.of("startTs", startTs),
-                    SafeArg.of("commitTs", commitTs),
-                    SafeArg.of("retryCount", RETRY_COUNT),
-                    SafeArg.of("keyspace", namespace));
-
-        } catch (RetryException e) {
-            throw new SafeIllegalStateException(
-                    "Unable to abort transactions even with retry",
-                    e,
-                    SafeArg.of("startTs", startTs),
-                    SafeArg.of("commitTs", commitTs),
-                    SafeArg.of("retryCount", RETRY_COUNT),
-                    SafeArg.of("keyspace", namespace));
-        }
-    }
-
-    private boolean tryAbortTransactions(
-            TransactionsTableInteraction txnInteraction,
-            Statement abortStatement,
-            Statement checkStatement,
-            long startTs,
-            long commitTs) {
-        log.info(
-                "Aborting transaction",
-                SafeArg.of("startTs", startTs),
-                SafeArg.of("commitTs", commitTs),
-                SafeArg.of("keyspace", namespace));
-        ResultSet abortResultSet = cqlSession.execute(abortStatement);
-        if (abortResultSet.wasApplied()) {
-            return true;
-        }
-
-        log.debug(
-                "Executing check statement",
-                SafeArg.of("startTs", startTs),
-                SafeArg.of("commitTs", commitTs),
-                SafeArg.of("keyspace", namespace));
-        ResultSet checkResultSet = cqlSession.execute(checkStatement);
-        Row result = Iterators.getOnlyElement(checkResultSet.all().iterator());
-
-        TransactionTableEntry transactionTableEntry = txnInteraction.extractTimestamps(result);
-        if (isAborted(transactionTableEntry)) {
-            return true;
-        }
-
-        log.warn(
-                "Retrying abort statement",
-                SafeArg.of("startTs", startTs),
-                SafeArg.of("commitTs", commitTs),
-                SafeArg.of("keyspace", namespace));
-        return false;
-    }
-
-    private static boolean isAborted(TransactionTableEntry transactionTableEntry) {
-        return TransactionTableEntries.caseOf(transactionTableEntry)
-                .explicitlyAborted(_startTs -> true)
-                .otherwise(() -> false);
-    }
-
-    private static Optional<Long> getCommitTimestamp(TransactionTableEntry entry) {
-        return TransactionTableEntries.getCommitTimestamp(entry).or(() -> getCommitValue(entry));
-    }
-
-    private static Optional<Long> getCommitValue(TransactionTableEntry entry) {
-        return TransactionTableEntries.getCommitValue(entry)
-                .map(AtomicValue::value)
-                .flatMap(TransactionStatuses::getCommitTimestamp);
-    }
-}u}(jt  (728c30ccb37b7e8e5eb4d85803b92b65d26e741bj  qatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/transaction/TransactionTableEntryUtils.javaj  modifiedj  Kj  K	j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactionTableEntryUtils.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactionTableEntryUtils.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactionTableEntryUtils.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -17,20 +17,22 @@
 package com.palantir.atlasdb.cassandra.backup.transaction;
 
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Aborted;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 
 public final class TransactionTableEntryUtils {
     private TransactionTableEntryUtils() {}
 
-    public static TransactionTableEntry fromStatus(long startTimestamp, TransactionStatus commitStatus) {
-        return TransactionStatuses.caseOf(commitStatus)
-                .committed(commitTs -> TransactionTableEntries.committedLegacy(startTimestamp, commitTs))
-                .aborted(() -> TransactionTableEntries.explicitlyAborted(startTimestamp))
-                .otherwise(() -> {
-                    throw new SafeIllegalStateException(
-                            "Illegal transaction status", SafeArg.of("status", commitStatus));
-                });
+    public static TransactionTableEntry fromStatus(long startTimestamp, TransactionStatus status) {
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return TransactionTableEntries.committedLegacy(startTimestamp, committed.commitTimestamp());
+        } else if (status instanceof Aborted) {
+            return TransactionTableEntries.explicitlyAborted(startTimestamp);
+        } else {
+            throw new SafeIllegalStateException("Illegal transaction status", SafeArg.of("status", status));
+        }
     }
 }u}(jt  (cfeb9f02aeb926b035c4fcf5695b3b16d519d450j  tatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions1TableInteraction.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteraction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteraction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteraction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -49,7 +49,7 @@ public Transactions1TableInteraction(FullyBoundedTimestampRange timestampRange,
 
     private static final byte[] DUMMY = new byte[] {1};
     private static final byte[] ABORT_COMMIT_TS_ENCODED =
-            V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(0, TransactionConstants.ABORTED);
+            V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(0, TransactionStatus.aborted());
     static final ByteBuffer COLUMN_NAME_BB = ByteBuffer.wrap(TransactionConstants.COMMIT_TS_COLUMN);
 
     @Overrideu}(jt  (b151ce954511712c43c8cff621e8d600fc587c56j  tatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions3TableInteraction.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteraction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteraction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteraction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -93,7 +93,7 @@ public TransactionTableEntry extractTimestamps(Row row) {
         AtomicValue<TransactionStatus> commitValue = encodingStrategy.decodeValueAsCommitStatus(
                 startTimestamp, Bytes.getArray(row.getBytes(CassandraConstants.VALUE)));
 
-        if (commitValue.value() == TransactionConstants.ABORTED) {
+        if (commitValue.value() == TransactionStatus.aborted()) {
             return TransactionTableEntries.explicitlyAborted(startTimestamp);
         }
 u}(jt  (849885796051302ae2255080efd29ca7c50eddc8j  catlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientFactory.javaj  modifiedj  Kj  Kj  K	j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientFactory.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientFactory.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientFactory.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -58,10 +58,10 @@
 import org.apache.thrift.TException;
 import org.apache.thrift.protocol.TBinaryProtocol;
 import org.apache.thrift.protocol.TProtocol;
-import org.apache.thrift.transport.TFramedTransport;
 import org.apache.thrift.transport.TSocket;
 import org.apache.thrift.transport.TTransport;
 import org.apache.thrift.transport.TTransportException;
+import org.apache.thrift.transport.layered.TFramedTransport;
 import org.immutables.value.Value;
 
 public class CassandraClientFactory extends BasePooledObjectFactory<CassandraClient> {
@@ -303,17 +303,12 @@ public void destroyObject(PooledObject<CassandraClient> client) {
         }
     }
 
-    static class ClientCreationFailedException extends AtlasDbDependencyException {
+    static final class ClientCreationFailedException extends AtlasDbDependencyException {
         private static final long serialVersionUID = 1L;
 
         ClientCreationFailedException(String message, Exception cause) {
             super(message, cause);
         }
-
-        @Override
-        public Exception getCause() {
-            return (Exception) super.getCause();
-        }
     }
 
     private static void setSocketOptions(TSocket thriftSocket, SocketConsumer consumer, InetSocketAddress addr) {u}(jt  (45ab8df8c5897569a9513ef70c6303ec9283a96bj  datlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javaj  modifiedj  Kj  Kj  K)j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -32,8 +32,8 @@
 import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.base.FunctionCheckedException;
+import com.palantir.common.concurrent.InitializeableScheduledExecutorServiceSupplier;
 import com.palantir.common.concurrent.NamedThreadFactory;
-import com.palantir.common.concurrent.ScheduledExecutorServiceFactory;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
@@ -48,6 +48,7 @@
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.concurrent.ScheduledFuture;
 import java.util.concurrent.TimeUnit;
+import one.util.streamex.EntryStream;
 
 /**
  * Feature breakdown:
@@ -67,9 +68,9 @@
  **/
 @SuppressWarnings("checkstyle:FinalClass") // non-final for mocking
 public class CassandraClientPoolImpl implements CassandraClientPool {
-
-    private static final ScheduledExecutorServiceFactory REFRESH_DAEMON_FACTORY =
-            ScheduledExecutorServiceFactory.of(new NamedThreadFactory("CassandraClientPoolRefresh", true));
+    private static final InitializeableScheduledExecutorServiceSupplier SHARED_EXECUTOR_SUPPLIER =
+            new InitializeableScheduledExecutorServiceSupplier(
+                    new NamedThreadFactory("CassandraClientPoolRefresh", true));
 
     private class InitializingWrapper extends AsyncInitializer implements AutoDelegate_CassandraClientPool {
         @Override
@@ -146,7 +147,7 @@ static CassandraClientPoolImpl createImplForTest(
             CassandraKeyValueServiceConfig config,
             Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig,
             StartupChecks startupChecks,
-            ScheduledExecutorServiceFactory refreshDaemonFactory,
+            InitializeableScheduledExecutorServiceSupplier initializeableExecutorSupplier,
             Blacklist blacklist,
             CassandraService cassandra,
             CassandraTopologyValidator cassandraTopologyValidator,
@@ -156,7 +157,7 @@ static CassandraClientPoolImpl createImplForTest(
                 config,
                 runtimeConfig,
                 startupChecks,
-                refreshDaemonFactory,
+                initializeableExecutorSupplier,
                 exceptionHandler,
                 blacklist,
                 cassandra,
@@ -208,7 +209,7 @@ private CassandraClientPoolImpl(
                 config,
                 runtimeConfig,
                 startupChecks,
-                REFRESH_DAEMON_FACTORY,
+                SHARED_EXECUTOR_SUPPLIER,
                 exceptionHandler,
                 blacklist,
                 new CassandraService(metricsManager, config, runtimeConfig, blacklist, metrics),
@@ -221,7 +222,7 @@ private CassandraClientPoolImpl(
             CassandraKeyValueServiceConfig config,
             Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig,
             StartupChecks startupChecks,
-            ScheduledExecutorServiceFactory refreshDaemonFactory,
+            InitializeableScheduledExecutorServiceSupplier initializeableExecutorSupplier,
             CassandraRequestExceptionHandler exceptionHandler,
             Blacklist blacklist,
             CassandraService cassandra,
@@ -231,7 +232,8 @@ private CassandraClientPoolImpl(
         this.config = config;
         this.runtimeConfig = runtimeConfig;
         this.startupChecks = startupChecks;
-        this.refreshDaemon = refreshDaemonFactory.create(config.numPoolRefreshingThreads());
+        initializeableExecutorSupplier.initialize(config.numPoolRefreshingThreads());
+        this.refreshDaemon = initializeableExecutorSupplier.get();
         this.blacklist = blacklist;
         this.exceptionHandler = exceptionHandler;
         this.cassandra = cassandra;
@@ -338,10 +340,12 @@ private synchronized void refreshPool() {
     }
 
     @VisibleForTesting
-    void setServersInPoolTo(ImmutableSet<CassandraServer> desiredServers) {
+    void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> desiredServers) {
         Set<CassandraServer> currentServers = getCachedServers();
-        SetView<CassandraServer> serversToAdd = Sets.difference(desiredServers, currentServers);
-        SetView<CassandraServer> absentServers = Sets.difference(currentServers, desiredServers);
+        Map<CassandraServer, CassandraServerOrigin> serversToAdd = EntryStream.of(desiredServers)
+                .removeKeys(currentServers::contains)
+                .toImmutableMap();
+        SetView<CassandraServer> absentServers = Sets.difference(currentServers, desiredServers.keySet());
 
         absentServers.forEach(cassandraServer -> {
             CassandraClientPoolingContainer container = cassandra.removePool(cassandraServer);
@@ -363,7 +367,7 @@ void setServersInPoolTo(ImmutableSet<CassandraServer> desiredServers) {
                     + " cluster topology, and the client cannot connect as there are no valid hosts. This state should"
                     + " be transient (<5 minutes), and if it is not, indicates that the user may have accidentally"
                     + " configured AltasDB to use two separate Cassandra clusters (i.e., user-led split brain).",
-                SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd)));
+                SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())));
 
         logRefreshedHosts(validatedServersToAdd, serversToShutdown, absentServers);
     }
@@ -379,13 +383,13 @@ void setServersInPoolTo(ImmutableSet<CassandraServer> desiredServers) {
     @VisibleForTesting
     Set<CassandraServer> validateNewHostsTopologiesAndMaybeAddToPool(
             Map<CassandraServer, CassandraClientPoolingContainer> currentContainers,
-            Set<CassandraServer> serversToAdd) {
+            Map<CassandraServer, CassandraServerOrigin> serversToAdd) {
         if (serversToAdd.isEmpty()) {
             return Set.of();
         }
-
+        Set<CassandraServer> serversToAddWithoutOrigin = serversToAdd.keySet();
         Map<CassandraServer, CassandraClientPoolingContainer> serversToAddContainers =
-                getContainerForNewServers(serversToAdd);
+                getContainerForNewServers(serversToAddWithoutOrigin);
 
         Preconditions.checkArgument(
                 Sets.intersection(currentContainers.keySet(), serversToAddContainers.keySet())
@@ -407,7 +411,8 @@ Set<CassandraServer> validateNewHostsTopologiesAndMaybeAddToPool(
                 cassandraTopologyValidator.getNewHostsWithInconsistentTopologiesAndRetry(
                         serversToAdd, allContainers, Duration.ofSeconds(5), Duration.ofMinutes(1));
 
-        Set<CassandraServer> validatedServersToAdd = Sets.difference(serversToAdd, newHostsWithDifferingTopology);
+        Set<CassandraServer> validatedServersToAdd =
+                Sets.difference(serversToAddWithoutOrigin, newHostsWithDifferingTopology);
         validatedServersToAdd.forEach(server -> cassandra.addPool(server, serversToAddContainers.get(server)));
         newHostsWithDifferingTopology.forEach(
                 server -> absentHostTracker.trackAbsentCassandraServer(server, serversToAddContainers.get(server)));
@@ -496,7 +501,7 @@ void runOneTimeStartupChecks() {
                     (cassandraServer, exception) -> errorBuilderForEntireCluster.append(String.format(
                             "\tServer: %s was marked unreachable via proxy: %s, with exception: %s%n",
                             cassandraServer.cassandraHostName(),
-                            cassandraServer.proxy().getHostString(),
+                            CassandraLogHelper.host(cassandraServer.proxy()),
                             exception.toString())));
         }
 u}(jt  (f13f44222748f892fcd5a6f2347ec8fe6577419bj  latlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolingContainer.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolingContainer.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolingContainer.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolingContainer.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -49,10 +49,10 @@
 import org.apache.commons.pool2.impl.DefaultEvictionPolicy;
 import org.apache.commons.pool2.impl.GenericObjectPool;
 import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
-import org.apache.thrift.transport.TFramedTransport;
 import org.apache.thrift.transport.TMemoryInputTransport;
 import org.apache.thrift.transport.TTransport;
 import org.apache.thrift.transport.TTransportException;
+import org.apache.thrift.transport.layered.TFramedTransport;
 
 public class CassandraClientPoolingContainer implements PoolingContainer<CassandraClient> {
     private static final SafeLogger log = SafeLoggerFactory.get(CassandraClientPoolingContainer.class);
@@ -117,12 +117,13 @@ public int getPoolSize() {
     public <V, K extends Exception> V runWithPooledResource(FunctionCheckedException<CassandraClient, V, K> fn)
             throws K {
         final String origName = Thread.currentThread().getName();
-        ThreadNames.setThreadName(
-                Thread.currentThread(),
-                origName
-                        + " calling cassandra host " + proxy.getHostString() + ':' + proxy.getPort()
-                        + " started at " + Instant.now()
-                        + " - " + count.getAndIncrement());
+        String newThreadName = origName + " to cassandra " + proxy.getHostString() + ':' + proxy.getPort() + " - "
+                + count.getAndIncrement();
+        if (log.isDebugEnabled()) {
+            // the timestamp is expensive to stringify, only add to thread names when debugging
+            newThreadName += " started at " + Instant.now();
+        }
+        ThreadNames.setThreadName(Thread.currentThread(), newThreadName);
         try {
             openRequests.getAndIncrement();
             return runWithGoodResource(fn);u}(jt  (69f581236b5f107c22a46408a061b07dd50fd1bcj  iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X2  @@ -108,8 +108,6 @@
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
-import com.palantir.tracing.Tracers;
-import com.palantir.tritium.metrics.MetricRegistries;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import com.palantir.util.Pair;
 import com.palantir.util.paging.AbstractPagingIterable;
@@ -485,10 +483,7 @@ private static Supplier<ExecutorService> instrumentedFixedThreadPoolSupplier(
             int numberOfThriftHosts = serversConfig.numberOfThriftHosts();
             int corePoolSize = poolSize * numberOfThriftHosts;
             int maxPoolSize = maxConnectionBurstSize * numberOfThriftHosts;
-            return Tracers.wrap(MetricRegistries.instrument(
-                    registry,
-                    createThreadPoolWihtoutSpans("Atlas Cassandra KVS", corePoolSize, maxPoolSize),
-                    "Atlas Cassandra KVS"));
+            return createThreadPoolWithoutSpans("Atlas Cassandra KVS", corePoolSize, maxPoolSize);
         };
     }
 u}(jt  (34e9a7144e98fcc0eb7a5cc52984292d1c2a0b9cj  _atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraLogHelper.javaj  modifiedj  Kj  K
j  K+j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraLogHelper.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraLogHelper.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraLogHelper.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -15,15 +15,19 @@
  */
 package com.palantir.atlasdb.keyvalue.cassandra;
 
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.github.benmanes.caffeine.cache.Interner;
 import com.google.common.collect.Multimap;
 import com.google.common.collect.Range;
 import com.google.common.collect.RangeMap;
 import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
-import com.palantir.common.annotations.ImmutablesStyles.WeakInterningImmutablesStyle;
 import java.net.InetAddress;
 import java.net.InetSocketAddress;
 import java.util.Collection;
 import java.util.List;
+import java.util.Locale;
 import java.util.Set;
 import java.util.stream.Collectors;
 import javax.annotation.Nullable;
@@ -35,8 +39,14 @@ private CassandraLogHelper() {
         // Utility class.
     }
 
+    // Cache instances as there should be a relatively small, generally fixed number of Cassandra servers.
+    private static final Interner<HostAndIpAddress> hostAddresses = Interner.newWeakInterner();
+
     public static HostAndIpAddress host(InetSocketAddress host) {
-        return HostAndIpAddress.fromAddress(host);
+        String hostString = host.getHostString().toLowerCase(Locale.ROOT);
+        InetAddress inetAddress = host.getAddress();
+        String ip = (inetAddress == null) ? null : /* unresolved IP */ inetAddress.getHostAddress();
+        return hostAddresses.intern(ImmutableHostAndIpAddress.of(hostString, ip));
     }
 
     static Collection<String> collectionOfHosts(Collection<CassandraServer> hosts) {
@@ -81,23 +91,30 @@ public static List<String> tokenRangeHashes(Set<TokenRange> tokenRanges) {
                 .collect(Collectors.toList());
     }
 
-    // Weakly intern instances as there should be a relatively small, generally fixed number of Cassandra servers.
-    @Value.Immutable(lazyhash = true, intern = true, builder = false)
-    @WeakInterningImmutablesStyle
-    interface HostAndIpAddress {
+    @Value.Immutable(lazyhash = true, builder = false, copy = false)
+    @JsonDeserialize(as = ImmutableHostAndIpAddress.class)
+    @JsonSerialize(as = ImmutableHostAndIpAddress.class)
+    abstract static class HostAndIpAddress {
         @Value.Parameter
-        String host();
+        abstract String host();
 
         @Nullable
         @Value.Parameter
-        String ipAddress();
+        abstract String ipAddress();
 
-        static HostAndIpAddress fromAddress(InetSocketAddress address) {
-            InetAddress inetAddress = address.getAddress();
-            if (inetAddress != null) {
-                return ImmutableHostAndIpAddress.of(address.getHostString(), inetAddress.getHostAddress());
+        @JsonIgnore
+        @Value.Lazy
+        String asString() {
+            if (ipAddress() == null) {
+                // unresolved IP
+                return host();
             }
-            return ImmutableHostAndIpAddress.of(address.getHostString(), /* unresolved IP */ null);
+            return host() + '/' + ipAddress();
+        }
+
+        @Override
+        public final String toString() {
+            return asString();
         }
     }
 }u}(jt  (ceeeeed1ad626f017443a86551facc263dbb0a09j  batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraServerOrigin.javaj  addedj  K&j  K j  K&j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import com.google.common.collect.ImmutableMap;
+import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
+import java.util.Set;
+import java.util.function.Function;
+import java.util.stream.Stream;
+
+public enum CassandraServerOrigin {
+    CONFIG,
+    LAST_KNOWN,
+    TOKEN_RANGE;
+
+    public static ImmutableMap<CassandraServer, CassandraServerOrigin> mapAllServersToOrigin(
+            Set<CassandraServer> servers, CassandraServerOrigin origin) {
+        return mapAllServersToOrigin(servers.stream(), origin);
+    }
+
+    public static ImmutableMap<CassandraServer, CassandraServerOrigin> mapAllServersToOrigin(
+            Stream<CassandraServer> servers, CassandraServerOrigin origin) {
+        return servers.distinct().collect(ImmutableMap.toImmutableMap(Function.identity(), _v -> origin));
+    }
+}u}(jt  (10dccf74f3186a2c4a4b523a206c95ccef82b213j  gatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraTopologyValidator.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XB  @@ -30,6 +30,7 @@
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.time.Duration;
@@ -38,6 +39,7 @@
 import java.util.Set;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicReference;
 import java.util.function.Supplier;
 import one.util.streamex.EntryStream;
 import org.apache.thrift.TApplicationException;
@@ -46,9 +48,11 @@
 public final class CassandraTopologyValidator {
     private static final SafeLogger log = SafeLoggerFactory.get(CassandraTopologyValidator.class);
     private final CassandraTopologyValidationMetrics metrics;
+    private final AtomicReference<ConsistentClusterTopology> pastConsistentTopology;
 
     public CassandraTopologyValidator(CassandraTopologyValidationMetrics metrics) {
         this.metrics = metrics;
+        this.pastConsistentTopology = new AtomicReference<>();
     }
 
     /**
@@ -65,7 +69,7 @@ public CassandraTopologyValidator(CassandraTopologyValidationMetrics metrics) {
      * Servers that do not have support for the get_host_ids endpoint are always considered consistent,
      * even if we cannot come to a consensus on the hosts that do support the endpoint.
      *
-     * Consensus is defined as:
+     * Consensus may be demonstrated independently by a set of nodes. In this case, we require that:
      * (1) A quorum of nodes (excluding those without `get_host_ids` support) are reachable.
      * (2) All reachable nodes have the same set of hostIds.
      * (3) All Cassandra nodes without get_host_ids support are considered to be matching.
@@ -74,6 +78,14 @@ public CassandraTopologyValidator(CassandraTopologyValidationMetrics metrics) {
      * (1) The initial list of servers validate that they've at least quorum for consensus of topology.
      * (2) All new hosts added then must match the set of pre-existing hosts topology.
      *
+     * Consensus may also be demonstrated and new hosts added without a quorum of nodes being reachable, if:
+     * (4) New hosts support get_host_ids, and have the same set of hostIds as the most recent previous consensus
+     * satisfied through conditions (1) - (3).
+     *
+     * In this case, we know that a previous set of servers had quorum for a consensus, which we are also agreeing to.
+     * Since we aren't agreeing on any new values, values that were agreed upon must have passed conditions (1) - (3)
+     * at the time of their inception, and that required a quorum of nodes to agree.
+     *
      * There does exist an edge case of, two sets of Cassandra clusters being added (3 and 6 respectively).
      * On initialization, the Cassandra cluster with 6 will be used as the base case if the other 3 nodes
      * are down, as this will satisfy quorum requirements. However, the cluster of 6 could be the wrong
@@ -86,7 +98,7 @@ public CassandraTopologyValidator(CassandraTopologyValidationMetrics metrics) {
      * the get_host_ids endpoint will never be returned here.
      */
     public Set<CassandraServer> getNewHostsWithInconsistentTopologiesAndRetry(
-            Set<CassandraServer> newlyAddedHosts,
+            Map<CassandraServer, CassandraServerOrigin> newlyAddedHosts,
             Map<CassandraServer, CassandraClientPoolingContainer> allHosts,
             Duration waitTimeBetweenCalls,
             Duration maxWaitTime) {
@@ -116,50 +128,132 @@ public Set<CassandraServer> getNewHostsWithInconsistentTopologiesAndRetry(
 
     @VisibleForTesting
     Set<CassandraServer> getNewHostsWithInconsistentTopologies(
-            Set<CassandraServer> newlyAddedHosts, Map<CassandraServer, CassandraClientPoolingContainer> allHosts) {
+            Map<CassandraServer, CassandraServerOrigin> newlyAddedHosts,
+            Map<CassandraServer, CassandraClientPoolingContainer> allHosts) {
 
+        Set<CassandraServer> newlyAddedHostsWithoutOrigin = newlyAddedHosts.keySet();
         if (newlyAddedHosts.isEmpty()) {
-            return newlyAddedHosts;
+            return newlyAddedHostsWithoutOrigin;
         }
 
         Preconditions.checkArgument(
-                allHosts.keySet().containsAll(newlyAddedHosts),
+                allHosts.keySet().containsAll(newlyAddedHostsWithoutOrigin),
                 "Newly added hosts must be a subset of all hosts, as otherwise we have no way to query them.",
-                SafeArg.of("newlyAddedHosts", CassandraLogHelper.collectionOfHosts(newlyAddedHosts)),
+                SafeArg.of("newlyAddedHosts", CassandraLogHelper.collectionOfHosts(newlyAddedHostsWithoutOrigin)),
                 SafeArg.of("allHosts", CassandraLogHelper.collectionOfHosts(allHosts.keySet())));
 
         Map<CassandraServer, HostIdResult> hostIdsByServerWithoutSoftFailures =
                 fetchHostIdsIgnoringSoftFailures(allHosts);
 
         Map<CassandraServer, HostIdResult> currentServersWithoutSoftFailures = EntryStream.of(
                         hostIdsByServerWithoutSoftFailures)
-                .removeKeys(newlyAddedHosts::contains)
+                .removeKeys(newlyAddedHosts::containsKey)
                 .toMap();
         Map<CassandraServer, HostIdResult> newServersWithoutSoftFailures = EntryStream.of(
                         hostIdsByServerWithoutSoftFailures)
-                .filterKeys(newlyAddedHosts::contains)
+                .filterKeys(newlyAddedHosts::containsKey)
                 .toMap();
 
         // This means currently we've no servers or no server without the get_host_ids endpoint.
         // Therefore, we need to come to a consensus on the new servers.
         if (currentServersWithoutSoftFailures.isEmpty()) {
-            return maybeGetConsistentClusterTopology(newServersWithoutSoftFailures)
-                    .<Set<CassandraServer>>map(topology ->
-                            // Do not add new servers which were unreachable
-                            Sets.difference(newServersWithoutSoftFailures.keySet(), topology.serversInConsensus()))
-                    .orElseGet(newServersWithoutSoftFailures::keySet);
+            ClusterTopologyResult topologyResultFromNewServers =
+                    maybeGetConsistentClusterTopology(newServersWithoutSoftFailures);
+            Map<CassandraServer, HostIdResult> newServersFromConfig = EntryStream.of(newServersWithoutSoftFailures)
+                    .filterKeys(server -> newlyAddedHosts.get(server) == CassandraServerOrigin.CONFIG)
+                    .toMap();
+            return getNewHostsWithInconsistentTopologiesFromTopologyResult(
+                    topologyResultFromNewServers,
+                    newServersWithoutSoftFailures,
+                    newServersFromConfig,
+                    newlyAddedHostsWithoutOrigin,
+                    allHosts.keySet());
         }
 
-        // If a consensus can be reached from the current servers,
-        // filter all new servers which have the same set of host ids.
-        // Otherwise, if we cannot come to consensus on the current topology, just refuse to add any new servers.
-        return maybeGetConsistentClusterTopology(currentServersWithoutSoftFailures)
-                .map(topology -> EntryStream.of(newServersWithoutSoftFailures)
+        // If a consensus can be reached from the current servers, filter all new servers which have the same set of
+        // host ids. Accept dissent as such, but permit new servers if they are in quorum _and_ match the previously
+        // accepted set of host IDs
+        ClusterTopologyResult topologyFromCurrentServers =
+                maybeGetConsistentClusterTopology(currentServersWithoutSoftFailures);
+
+        return getNewHostsWithInconsistentTopologiesFromTopologyResult(
+                topologyFromCurrentServers,
+                newServersWithoutSoftFailures,
+                newServersWithoutSoftFailures,
+                newlyAddedHosts.keySet(),
+                allHosts.keySet());
+    }
+
+    private Set<CassandraServer> getNewHostsWithInconsistentTopologiesFromTopologyResult(
+            ClusterTopologyResult topologyResult,
+            Map<CassandraServer, HostIdResult> newServersWithoutSoftFailures,
+            Map<CassandraServer, HostIdResult> serversToConsiderWhenNoQuorumPresent,
+            Set<CassandraServer> newlyAddedHosts,
+            Set<CassandraServer> allHosts) {
+        switch (topologyResult.type()) {
+            case CONSENSUS:
+                Preconditions.checkState(
+                        topologyResult.agreedTopology().isPresent(),
+                        "Expected to have a consistent topology for a CONSENSUS result, but did not.");
+                ConsistentClusterTopology topology =
+                        topologyResult.agreedTopology().get();
+                pastConsistentTopology.set(topology);
+                return EntryStream.of(newServersWithoutSoftFailures)
                         .removeValues(result -> result.type() == HostIdResult.Type.SUCCESS
                                 && result.hostIds().equals(topology.hostIds()))
                         .keys()
-                        .toSet())
-                .orElseGet(newServersWithoutSoftFailures::keySet);
+                        .toSet();
+            case DISSENT:
+                // In the event of *active* dissent, we want to hard fail.
+                return newServersWithoutSoftFailures.keySet();
+            case NO_QUORUM:
+                // In the event of no quorum, we trust the new servers iff they agree with our historical knowledge
+                // of what the old servers were thinking, since in containerised deployments all nodes can change
+                // between refreshes for legitimate reasons (but they should still refer to the same underlying
+                // cluster).
+                if (pastConsistentTopology.get() == null) {
+                    // We don't have a record of what worked in the past, so just reject.
+                    return newServersWithoutSoftFailures.keySet();
+                }
+                Optional<ConsistentClusterTopology> maybeTopology = maybeGetConsistentClusterTopology(
+                                serversToConsiderWhenNoQuorumPresent)
+                        .agreedTopology();
+                if (maybeTopology.isEmpty()) {
+                    log.info(
+                            "No quorum was detected in original set of servers, and the filtered set of servers were"
+                                    + " also not in agreement. Not adding new servers in this case.",
+                            SafeArg.of("newServers", CassandraLogHelper.collectionOfHosts(newlyAddedHosts)),
+                            SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts)));
+                    return newServersWithoutSoftFailures.keySet();
+                }
+                ConsistentClusterTopology newNodesAgreedTopology = maybeTopology.get();
+                if (!newNodesAgreedTopology
+                        .hostIds()
+                        .equals(pastConsistentTopology.get().hostIds())) {
+                    log.info(
+                            "No quorum was detected among the original set of servers. While a filtered set of"
+                                    + " servers could reach a consensus, this differed from the last agreed value"
+                                    + " among the old servers. Not adding new servers in this case.",
+                            SafeArg.of("pastConsistentTopology", pastConsistentTopology.get()),
+                            SafeArg.of("newNodesAgreedTopology", newNodesAgreedTopology),
+                            SafeArg.of("newServers", CassandraLogHelper.collectionOfHosts(newlyAddedHosts)),
+                            SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts)));
+                    return newServersWithoutSoftFailures.keySet();
+                }
+                log.info(
+                        "No quorum was detected among the original set of servers. A filtered set of servers reached"
+                                + " a consensus that matched the last agreed value among the old servers. Adding new"
+                                + " servers that were in consensus.",
+                        SafeArg.of("pastConsistentTopology", pastConsistentTopology.get()),
+                        SafeArg.of("newNodesAgreedTopology", newNodesAgreedTopology),
+                        SafeArg.of("newServers", CassandraLogHelper.collectionOfHosts(newlyAddedHosts)),
+                        SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts)));
+                return Sets.difference(
+                        newServersWithoutSoftFailures.keySet(), newNodesAgreedTopology.serversInConsensus());
+            default:
+                throw new SafeIllegalStateException(
+                        "Unexpected cluster topology result type", SafeArg.of("type", topologyResult.type()));
+        }
     }
 
     /**
@@ -173,11 +267,11 @@ Set<CassandraServer> getNewHostsWithInconsistentTopologies(
      * @param hostIdsByServerWithoutSoftFailures Cassandra hosts to obtain a consistent topology view from
      * @return If consensus could be reached, the topology and the list of valid hosts, otherwise empty.
      */
-    private Optional<ConsistentClusterTopology> maybeGetConsistentClusterTopology(
+    private ClusterTopologyResult maybeGetConsistentClusterTopology(
             Map<CassandraServer, HostIdResult> hostIdsByServerWithoutSoftFailures) {
         // If all our queries fail due to soft failures, then our consensus is an empty set of host ids
         if (hostIdsByServerWithoutSoftFailures.isEmpty()) {
-            return Optional.of(ConsistentClusterTopology.builder()
+            return ClusterTopologyResult.consensus(ConsistentClusterTopology.builder()
                     .hostIds(Set.of())
                     .serversInConsensus(hostIdsByServerWithoutSoftFailures.keySet())
                     .build());
@@ -190,11 +284,11 @@ private Optional<ConsistentClusterTopology> maybeGetConsistentClusterTopology(
 
         // Only consider hosts that have the endpoint for quorum calculations.
         // Otherwise, we will never add hosts when we're in a mixed state
-        int quorum = (hostIdsByServerWithoutSoftFailures.size() + 1) / 2;
+        int quorum = (hostIdsByServerWithoutSoftFailures.size() / 2) + 1;
 
         // If too many hosts are unreachable, then we cannot come to a consensus
         if (hostIdsWithoutFailures.size() < quorum) {
-            return Optional.empty();
+            return ClusterTopologyResult.noQuorum();
         }
 
         Set<Set<String>> uniqueSetsOfHostIds =
@@ -203,13 +297,13 @@ private Optional<ConsistentClusterTopology> maybeGetConsistentClusterTopology(
         // If we only have one set of host ids, we've consensus, otherwise fail
         if (uniqueSetsOfHostIds.size() == 1) {
             Set<String> uniqueHostIds = Iterables.getOnlyElement(uniqueSetsOfHostIds);
-            return Optional.of(ConsistentClusterTopology.builder()
+            return ClusterTopologyResult.consensus(ConsistentClusterTopology.builder()
                     .hostIds(uniqueHostIds)
                     .serversInConsensus(hostIdsWithoutFailures.keySet())
                     .build());
         }
 
-        return Optional.empty();
+        return ClusterTopologyResult.dissent();
     }
 
     private Map<CassandraServer, HostIdResult> fetchHostIdsIgnoringSoftFailures(
@@ -259,4 +353,36 @@ static ImmutableConsistentClusterTopology.Builder builder() {
             return ImmutableConsistentClusterTopology.builder();
         }
     }
+
+    enum ClusterTopologyResultType {
+        CONSENSUS,
+        DISSENT,
+        NO_QUORUM
+    }
+
+    @Value.Immutable
+    public interface ClusterTopologyResult {
+        ClusterTopologyResultType type();
+
+        Optional<ConsistentClusterTopology> agreedTopology();
+
+        static ClusterTopologyResult consensus(ConsistentClusterTopology consistentClusterTopology) {
+            return ImmutableClusterTopologyResult.builder()
+                    .type(ClusterTopologyResultType.CONSENSUS)
+                    .agreedTopology(consistentClusterTopology)
+                    .build();
+        }
+
+        static ClusterTopologyResult dissent() {
+            return ImmutableClusterTopologyResult.builder()
+                    .type(ClusterTopologyResultType.DISSENT)
+                    .build();
+        }
+
+        static ClusterTopologyResult noQuorum() {
+            return ImmutableClusterTopologyResult.builder()
+                    .type(ClusterTopologyResultType.NO_QUORUM)
+                    .build();
+        }
+    }
 }u+     }(jt  (1154c5fd019de68c98c676510b13c81fc9654613j  Watlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CellLoader.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCellLoader.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCellLoader.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCellLoader.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  Xu  @@ -162,6 +162,8 @@ private List<Callable<Void>> getLoadWithTsTasksForSingleHost(
         final ColumnParent colFam = new ColumnParent(CassandraKeyValueServiceImpl.internalTableName(tableRef));
         List<List<Cell>> batches = batcher.partitionIntoBatches(cells, cassandraServer, tableRef);
         List<Callable<Void>> tasks = new ArrayList<>(batches.size());
+        String threadNameSuffix = " cells from " + tableRef + " on " + cassandraServer.cassandraHostName()
+                + " via proxy " + CassandraLogHelper.host(cassandraServer.proxy());
         for (final List<Cell> partition : batches) {
             Callable<Void> multiGetCallable = () -> clientPool.runWithRetryOnServer(
                     cassandraServer, new FunctionCheckedException<CassandraClient, Void, Exception>() {
@@ -195,9 +197,7 @@ public String toString() {
                     });
             tasks.add(AnnotatedCallable.wrapWithThreadName(
                     AnnotationType.PREPEND,
-                    "Atlas loadWithTs " + partition.size() + " cells from " + tableRef + " on "
-                            + cassandraServer.cassandraHostName() + " via proxy "
-                            + CassandraLogHelper.host(cassandraServer.proxy()),
+                    "Atlas loadWithTs " + partition.size() + threadNameSuffix,
                     multiGetCallable));
         }
         return tasks;u}(jt  (d281d8bcd4d73efd293cd9ca78cc071f9dbce39fj  `atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/InstrumentedTSocket.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FInstrumentedTSocket.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FInstrumentedTSocket.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FInstrumentedTSocket.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -38,7 +38,8 @@ private InstrumentedTSocket(Socket socket, Counter bytesRead, Counter bytesWritt
         this.bytesWritten = bytesWritten;
     }
 
-    private InstrumentedTSocket(String host, int port, int timeout, Counter bytesRead, Counter bytesWritten) {
+    private InstrumentedTSocket(String host, int port, int timeout, Counter bytesRead, Counter bytesWritten)
+            throws TTransportException {
         super(host, port, timeout);
         this.bytesRead = bytesRead;
         this.bytesWritten = bytesWritten;
@@ -85,7 +86,7 @@ public TSocket create(Socket socket) throws TTransportException {
         }
 
         @Override
-        public TSocket create(String host, int port, int timeout) {
+        public TSocket create(String host, int port, int timeout) throws TTransportException {
             return new InstrumentedTSocket(host, port, timeout, bytesRead, bytesWritten);
         }
     }u}(jt  (347834e520b6630a9fcfab41ec1f38b07872e94fj  `atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppToken.javaj  modifiedj  K j  K	j  K	j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -45,15 +45,6 @@ public static LightweightOppToken serialize(Token token) {
         return new LightweightOppToken(bytes);
     }
 
-    public static LightweightOppToken getLowerExclusive(Range<LightweightOppToken> range) {
-        Preconditions.checkArgument(
-                !range.hasLowerBound() || range.lowerBoundType().equals(BoundType.OPEN),
-                "Token range lower bound should be open",
-                SafeArg.of("range", range));
-
-        return range.hasLowerBound() ? range.lowerEndpoint() : new LightweightOppToken(new byte[0]);
-    }
-
     public static LightweightOppToken getUpperInclusive(Range<LightweightOppToken> range) {
         Preconditions.checkArgument(
                 !range.hasUpperBound() || range.upperBoundType().equals(BoundType.CLOSED),u}(jt  (8c05144ecb66cdca2842e3a7b9033ee74cf10da6j  [atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/TSocketFactory.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTSocketFactory.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTSocketFactory.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTSocketFactory.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -23,7 +23,7 @@
 interface TSocketFactory {
     TSocket create(Socket socket) throws TTransportException;
 
-    TSocket create(String host, int port, int timeout);
+    TSocket create(String host, int port, int timeout) throws TTransportException;
 
     enum Default implements TSocketFactory {
         INSTANCE;
@@ -34,7 +34,7 @@ public TSocket create(Socket socket) throws TTransportException {
         }
 
         @Override
-        public TSocket create(String host, int port, int timeout) {
+        public TSocket create(String host, int port, int timeout) throws TTransportException {
             return new TSocket(host, port, timeout);
         }
     }u}(jt  (1993b613a367c06aae413145ae6b345dd4927927j  latlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetrics.javaj  modifiedj  Kj  Kj  K
j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -41,7 +41,7 @@ public class CassandraClientPoolMetrics {
 
     public CassandraClientPoolMetrics(MetricsManager metricsManager) {
         this.metricsManager = metricsManager;
-        this.aggregateRequestMetrics = new RequestMetrics(metricsManager, null);
+        this.aggregateRequestMetrics = new RequestMetrics(metricsManager);
         this.poolExhaustionCounter =
                 metricsManager.registerOrGetCounter(CassandraClientPoolMetrics.class, "pool-exhaustion");
         this.outlierControllers = createOutlierControllers(metricsManager);
@@ -123,12 +123,11 @@ private static class RequestMetrics {
         private final Meter totalRequestExceptions;
         private final Meter totalRequestConnectionExceptions;
 
-        RequestMetrics(MetricsManager metricsManager, String metricPrefix) {
-            totalRequests = metricsManager.registerOrGetMeter(CassandraClientPool.class, metricPrefix, "requests");
-            totalRequestExceptions =
-                    metricsManager.registerOrGetMeter(CassandraClientPool.class, metricPrefix, "requestExceptions");
-            totalRequestConnectionExceptions = metricsManager.registerOrGetMeter(
-                    CassandraClientPool.class, metricPrefix, "requestConnectionExceptions");
+        RequestMetrics(MetricsManager metricsManager) {
+            totalRequests = metricsManager.registerOrGetMeter(CassandraClientPool.class, "requests");
+            totalRequestExceptions = metricsManager.registerOrGetMeter(CassandraClientPool.class, "requestExceptions");
+            totalRequestConnectionExceptions =
+                    metricsManager.registerOrGetMeter(CassandraClientPool.class, "requestConnectionExceptions");
         }
 
         void markRequest() {u}(jt  (c52d2d055598765a8eaf2152beff312bf3167cddj  batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaj  modifiedj  KBj  K'j  Kij  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X'  @@ -24,6 +24,7 @@
 import com.google.common.collect.Interner;
 import com.google.common.collect.Interners;
 import com.google.common.collect.Iterables;
+import com.google.common.collect.Maps;
 import com.google.common.collect.Range;
 import com.google.common.collect.RangeMap;
 import com.google.common.collect.Sets;
@@ -35,14 +36,19 @@
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClient;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraLogHelper;
+import com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraUtils;
 import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.base.FunctionCheckedException;
 import com.palantir.common.base.Throwables;
+import com.palantir.common.exception.AtlasDbDependencyException;
 import com.palantir.common.pooling.PoolingContainer;
 import com.palantir.common.streams.KeyedStream;
+import com.palantir.logsafe.Arg;
+import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.SafeLoggable;
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -59,9 +65,9 @@
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
-import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Optional;
+import java.util.PrimitiveIterator.OfInt;
 import java.util.Random;
 import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
@@ -70,6 +76,7 @@
 import java.util.function.Predicate;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import java.util.stream.Stream;
 import org.apache.cassandra.thrift.EndpointDetails;
 import org.apache.cassandra.thrift.TokenRange;
@@ -117,23 +124,10 @@ public CassandraService(
         this.hostnameByIpSupplier = Suppliers.memoizeWithExpiration(hostnamesByIpSupplier::get, 1, TimeUnit.MINUTES);
     }
 
-    public static CassandraService createInitialized(
-            MetricsManager metricsManager,
-            CassandraKeyValueServiceConfig config,
-            Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig,
-            Blacklist blacklist,
-            CassandraClientPoolMetrics poolMetrics) {
-        CassandraService cassandraService =
-                new CassandraService(metricsManager, config, runtimeConfig, blacklist, poolMetrics);
-        cassandraService.cacheInitialCassandraHosts();
-        cassandraService.refreshTokenRangesAndGetServers();
-        return cassandraService;
-    }
-
     @Override
     public void close() {}
 
-    public ImmutableSet<CassandraServer> refreshTokenRangesAndGetServers() {
+    public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAndGetServers() {
         // explicitly not using immutable builders to deduplicate nodes
         Set<CassandraServer> servers = new HashSet<>();
         Map<CassandraServer, String> hostToDatacentersThisRefresh = new HashMap<>();
@@ -184,7 +178,7 @@ public ImmutableSet<CassandraServer> refreshTokenRangesAndGetServers() {
             tokenMap = tokensInterner.intern(newTokenRing.build());
             hostToDatacenter = ImmutableMap.copyOf(hostToDatacentersThisRefresh);
             logHostToDatacenterMapping(hostToDatacenter);
-            return ImmutableSet.copyOf(servers);
+            return CassandraServerOrigin.mapAllServersToOrigin(servers, CassandraServerOrigin.TOKEN_RANGE);
         } catch (Exception e) {
             log.info(
                     "Couldn't grab new token ranges for token aware cassandra mapping. We will retry in {} seconds.",
@@ -193,24 +187,30 @@ public ImmutableSet<CassandraServer> refreshTokenRangesAndGetServers() {
 
             // Attempt to re-resolve addresses from the configuration; this is important owing to certain race
             // conditions where the entire pool becomes invalid between refreshes.
-            ImmutableSet<CassandraServer> resolvedConfigAddresses = getCurrentServerListFromConfig();
-
-            ImmutableSet<CassandraServer> lastKnownAddresses = tokenMap.asMapOfRanges().values().stream()
-                    .flatMap(Collection::stream)
-                    .collect(ImmutableSet.toImmutableSet());
-
-            return Sets.union(resolvedConfigAddresses, lastKnownAddresses).immutableCopy();
+            ImmutableMap<CassandraServer, CassandraServerOrigin> resolvedConfigAddresses =
+                    getCurrentServerListFromConfig();
+
+            ImmutableMap<CassandraServer, CassandraServerOrigin> lastKnownAddresses =
+                    CassandraServerOrigin.mapAllServersToOrigin(
+                            tokenMap.asMapOfRanges().values().stream().flatMap(Collection::stream),
+                            CassandraServerOrigin.LAST_KNOWN);
+
+            return ImmutableMap.<CassandraServer, CassandraServerOrigin>builder()
+                    .putAll(lastKnownAddresses)
+                    .putAll(resolvedConfigAddresses)
+                    .buildKeepingLast();
         }
     }
 
     /**
      * It is expected that config provides list of servers that are directly reachable and do not require special IP
      * resolution.
      * */
-    public ImmutableSet<CassandraServer> getCurrentServerListFromConfig() {
-        return getServersSocketAddressesFromConfig().stream()
-                .map(cassandraHost -> CassandraServer.of(cassandraHost.getHostString(), cassandraHost))
-                .collect(ImmutableSet.toImmutableSet());
+    public ImmutableMap<CassandraServer, CassandraServerOrigin> getCurrentServerListFromConfig() {
+        return CassandraServerOrigin.mapAllServersToOrigin(
+                getServersSocketAddressesFromConfig().stream()
+                        .map(cassandraHost -> CassandraServer.of(cassandraHost.getHostString(), cassandraHost)),
+                CassandraServerOrigin.CONFIG);
     }
 
     private ImmutableSet<InetSocketAddress> getServersSocketAddressesFromConfig() {
@@ -306,17 +306,26 @@ private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) th
     }
 
     private int getKnownPort() throws UnknownHostException {
-        Set<Integer> allKnownPorts = Stream.concat(
+        // Avoid allocations and intermediate collection as this is on hot path
+        return only(Stream.concat(
                         currentPools.keySet().stream().map(CassandraServer::proxy),
                         getServersSocketAddressesFromConfig().stream())
-                .map(InetSocketAddress::getPort)
-                .collect(Collectors.toSet());
+                .mapToInt(InetSocketAddress::getPort));
+    }
 
-        if (allKnownPorts.size() == 1) { // if everyone is on one port, try and use that
-            return Iterables.getOnlyElement(allKnownPorts);
-        } else {
+    @VisibleForTesting
+    static int only(IntStream intStream) throws UnknownHostException {
+        OfInt iterator = intStream.iterator();
+        if (!iterator.hasNext()) {
             throw new UnknownHostException("No single known port");
         }
+        int port = iterator.next();
+        while (iterator.hasNext()) {
+            if (port != iterator.next()) {
+                throw new UnknownHostException("No single known port");
+            }
+        }
+        return port;
     }
 
     private ImmutableSet<CassandraServer> getHostsFor(byte[] key) {
@@ -381,8 +390,7 @@ public List<PoolingContainer<CassandraClient>> getAllNonBlacklistedHosts() {
     }
 
     public CassandraClientPoolingContainer getRandomGoodHost() {
-        return getRandomGoodHostForPredicate(address -> true)
-                .orElseThrow(() -> new SafeIllegalStateException("No hosts available."));
+        return getRandomGoodHostForPredicate(address -> true).orElseThrow(NoHostsAvailableException::new);
     }
 
     private String getRingViewDescription() {
@@ -412,9 +420,8 @@ Set<CassandraServer> maybeFilterLocalHosts(Set<CassandraServer> hosts) {
     @VisibleForTesting
     Optional<CassandraServer> getRandomHostByActiveConnections(Set<CassandraServer> desiredHosts) {
         Set<CassandraServer> localFilteredHosts = maybeFilterLocalHosts(desiredHosts);
-        ImmutableMap<CassandraServer, CassandraClientPoolingContainer> matchingPools = currentPools.entrySet().stream()
-                .filter(e -> localFilteredHosts.contains(e.getKey()))
-                .collect(ImmutableMap.toImmutableMap(Entry::getKey, Entry::getValue));
+        Map<CassandraServer, CassandraClientPoolingContainer> matchingPools =
+                ImmutableMap.copyOf(Maps.filterKeys(currentPools, localFilteredHosts::contains));
         if (matchingPools.isEmpty()) {
             return Optional.empty();
         }
@@ -504,7 +511,8 @@ public CassandraClientPoolingContainer removePool(CassandraServer removedServerA
     }
 
     public void cacheInitialCassandraHosts() {
-        ImmutableSet<CassandraServer> thriftSocket = getCurrentServerListFromConfig();
+        ImmutableSet<CassandraServer> thriftSocket =
+                getCurrentServerListFromConfig().keySet();
 
         cassandraHosts = thriftSocket.stream()
                 .sorted(Comparator.comparing(CassandraServer::cassandraHostName))
@@ -520,4 +528,23 @@ public void clearInitialCassandraHosts() {
     void overrideHostToDatacenterMapping(ImmutableMap<CassandraServer, String> hostToDatacenterOverride) {
         this.hostToDatacenter = hostToDatacenterOverride;
     }
+
+    private static final class NoHostsAvailableException extends AtlasDbDependencyException implements SafeLoggable {
+
+        private static final String MESSAGE = "No hosts available.";
+
+        NoHostsAvailableException() {
+            super(MESSAGE);
+        }
+
+        @Override
+        public @Safe String getLogMessage() {
+            return MESSAGE;
+        }
+
+        @Override
+        public List<Arg<?>> getArgs() {
+            return List.of();
+        }
+    }
 }u}(jt  (bd65013b408e30f882b5756bed2466ca48816bc6j  iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/thrift/ThriftObjectSizeUtils.javaj  modifiedj  Kj  Kj  K+j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fthrift%2FThriftObjectSizeUtils.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fthrift%2FThriftObjectSizeUtils.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fthrift%2FThriftObjectSizeUtils.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XZ  @@ -119,7 +119,6 @@ public static long getMutationSize(Mutation mutation) {
         if (mutation == null) {
             return getNullSize();
         }
-
         return getColumnOrSuperColumnSize(mutation.getColumn_or_supercolumn())
                 + getDeletionSize(mutation.getDeletion());
     }
@@ -138,26 +137,23 @@ public static long getKeySliceSize(KeySlice keySlice) {
         if (keySlice == null) {
             return getNullSize();
         }
-
-        return getByteArraySize(keySlice.getKey())
+        return getBytesSize(keySlice, KeySlice::bufferForKey, KeySlice::getKey)
                 + getCollectionSize(keySlice.getColumns(), ThriftObjectSizeUtils::getColumnOrSuperColumnSize);
     }
 
     public static long getStringSize(String string) {
         if (string == null) {
             return getNullSize();
         }
-
         return string.length();
     }
 
     public static long getColumnSize(Column column) {
         if (column == null) {
             return getNullSize();
         }
-
-        return getByteArraySize(column.getValue())
-                + getByteArraySize(column.getName())
+        return getBytesSize(column, Column::bufferForName, Column::getName)
+                + getBytesSize(column, Column::bufferForValue, Column::getValue)
                 + getTtlSize()
                 + getTimestampSize();
     }
@@ -166,35 +162,32 @@ private static long getCounterSuperColumnSize(CounterSuperColumn counterSuperCol
         if (counterSuperColumn == null) {
             return getNullSize();
         }
-
-        return getByteArraySize(counterSuperColumn.getName())
+        return getBytesSize(counterSuperColumn, CounterSuperColumn::bufferForName, CounterSuperColumn::getName)
                 + getCollectionSize(counterSuperColumn.getColumns(), ThriftObjectSizeUtils::getCounterColumnSize);
     }
 
     private static long getCounterColumnSize(CounterColumn counterColumn) {
         if (counterColumn == null) {
             return getNullSize();
         }
-
-        return getByteArraySize(counterColumn.getName()) + getCounterValueSize();
+        return getBytesSize(counterColumn, CounterColumn::bufferForName, CounterColumn::getName)
+                + getCounterValueSize();
     }
 
     private static long getSuperColumnSize(SuperColumn superColumn) {
         if (superColumn == null) {
             return getNullSize();
         }
-
-        return getByteArraySize(superColumn.getName())
+        return getBytesSize(superColumn, SuperColumn::bufferForName, SuperColumn::getName)
                 + getCollectionSize(superColumn.getColumns(), ThriftObjectSizeUtils::getColumnSize);
     }
 
     private static long getDeletionSize(Deletion deletion) {
         if (deletion == null) {
             return getNullSize();
         }
-
         return getTimestampSize()
-                + getByteArraySize(deletion.getSuper_column())
+                + getBytesSize(deletion, Deletion::bufferForSuper_column, Deletion::getSuper_column)
                 + getSlicePredicateSize(deletion.getPredicate());
     }
 
@@ -211,9 +204,8 @@ private static long getSliceRangeSize(SliceRange sliceRange) {
         if (sliceRange == null) {
             return getNullSize();
         }
-
-        return getByteArraySize(sliceRange.getStart())
-                + getByteArraySize(sliceRange.getFinish())
+        return getBytesSize(sliceRange, SliceRange::bufferForStart, SliceRange::getStart)
+                + getBytesSize(sliceRange, SliceRange::bufferForFinish, SliceRange::getFinish)
                 + getReversedBooleanSize()
                 + getSliceRangeCountSize();
     }
@@ -240,7 +232,7 @@ private static long getCqlRowSize(CqlRow cqlRow) {
         if (cqlRow == null) {
             return getNullSize();
         }
-        return getByteArraySize(cqlRow.getKey())
+        return getBytesSize(cqlRow, CqlRow::bufferForKey, CqlRow::getKey)
                 + getCollectionSize(cqlRow.getColumns(), ThriftObjectSizeUtils::getColumnSize);
     }
 
@@ -279,6 +271,19 @@ private static long getNullSize() {
         return Integer.BYTES;
     }
 
+    private static <T> long getBytesSize(T data, Function<T, ByteBuffer> toByteBuffer, Function<T, byte[]> toBytes) {
+        // determine the size of bytes for the given slice of data,
+        // ideally without having to copy that data into an array.
+        ByteBuffer byteBuffer = toByteBuffer.apply(data);
+        if (byteBuffer == null) {
+            // fallback to slow path that potentially copies array and creates ByteBuffer
+            byte[] bytes = toBytes.apply(data);
+            return getByteArraySize(bytes);
+        }
+        // fast-path where no copies are needed
+        return byteBuffer.remaining();
+    }
+
     public static <T> long getCollectionSize(Collection<T> collection, Function<T, Long> sizeFunction) {
         if (collection == null) {
             return getNullSize();u}(jt  (d1ab0bea195441a4d5d2dd7671b17f9e6980690aj  Zatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/BackupTestUtils.javaj  modifiedj  K j  K>j  K>j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FBackupTestUtils.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FBackupTestUtils.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FBackupTestUtils.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  Xl  @@ -16,50 +16,18 @@
 
 package com.palantir.atlasdb.cassandra.backup;
 
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
-
-import com.datastax.driver.core.KeyspaceMetadata;
-import com.datastax.driver.core.TableMetadata;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Range;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs;
 import com.palantir.atlasdb.cassandra.ImmutableCqlCapableConfig;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.timelock.api.Namespace;
 import java.net.InetSocketAddress;
-import java.util.Arrays;
 import java.util.List;
 import java.util.stream.Collectors;
 import java.util.stream.Stream;
-import javax.xml.bind.DatatypeConverter;
 
 @SuppressWarnings("DnsLookup")
 public final class BackupTestUtils {
     public static final int TEST_THRIFT_PORT = 44;
     public static final int TEST_CQL_PORT = 45;
 
-    static final InetSocketAddress HOST_1 = new InetSocketAddress("cassandra-1", 9042);
-    static final InetSocketAddress HOST_2 = new InetSocketAddress("cassandra-2", 9042);
-    static final InetSocketAddress HOST_3 = new InetSocketAddress("cassandra-3", 9042);
-    static final ImmutableList<InetSocketAddress> HOSTS = ImmutableList.of(HOST_1, HOST_2, HOST_3);
-    static final Namespace NAMESPACE = Namespace.of("keyspace");
-
-    static final LightweightOppToken TOKEN_1 = BackupTestUtils.lightweightOppToken("1111");
-    static final LightweightOppToken TOKEN_2 = BackupTestUtils.lightweightOppToken("5555");
-    static final LightweightOppToken TOKEN_3 = BackupTestUtils.lightweightOppToken("9999");
-
-    static final Range<LightweightOppToken> RANGE_AT_MOST_1 = Range.atMost(TOKEN_1);
-    static final Range<LightweightOppToken> RANGE_1_TO_2 = Range.openClosed(TOKEN_1, TOKEN_2);
-    static final Range<LightweightOppToken> RANGE_2_TO_3 = Range.openClosed(TOKEN_2, TOKEN_3);
-    static final Range<LightweightOppToken> RANGE_GREATER_THAN_3 = Range.greaterThan(TOKEN_3);
-
-    static final CassandraServersConfigs.CqlCapableConfig CASSANDRA_SERVERS_CONFIG = ImmutableCqlCapableConfig.builder()
-            .addAllCqlHosts(HOSTS)
-            .addAllThriftHosts(HOSTS)
-            .build();
-
     private BackupTestUtils() {
         // utility
     }
@@ -73,36 +41,6 @@ public static CassandraServersConfigs.CqlCapableConfig cqlCapableConfig(String..
                 .build();
     }
 
-    static LightweightOppToken lightweightOppToken(String hexString) {
-        return new LightweightOppToken(DatatypeConverter.parseHexBinary(hexString));
-    }
-
-    static void mockTokenRanges(CqlSession cqlSession, CqlMetadata cqlMetadata) {
-        when(cqlMetadata.getTokenRanges())
-                .thenReturn(ImmutableSet.of(RANGE_AT_MOST_1, RANGE_1_TO_2, RANGE_2_TO_3, RANGE_GREATER_THAN_3));
-        when(cqlSession.getMetadata()).thenReturn(cqlMetadata);
-    }
-
-    static List<TableMetadata> mockTableMetadatas(KeyspaceMetadata keyspaceMetadata, String... tableNames) {
-        return Arrays.stream(tableNames)
-                .map(tableName -> mockTableMetadata(keyspaceMetadata, tableName))
-                .collect(Collectors.toList());
-    }
-
-    static KeyspaceMetadata mockKeyspaceMetadata(CqlMetadata cqlMetadata) {
-        KeyspaceMetadata keyspaceMetadata = mock(KeyspaceMetadata.class);
-        when(keyspaceMetadata.getName()).thenReturn(NAMESPACE.value());
-        when(cqlMetadata.getKeyspaceMetadata(NAMESPACE)).thenReturn(keyspaceMetadata);
-        return keyspaceMetadata;
-    }
-
-    private static TableMetadata mockTableMetadata(KeyspaceMetadata keyspaceMetadata, String tableName) {
-        TableMetadata tableMetadata = mock(TableMetadata.class);
-        when(tableMetadata.getKeyspace()).thenReturn(keyspaceMetadata);
-        when(tableMetadata.getName()).thenReturn(tableName);
-        return tableMetadata;
-    }
-
     private static List<InetSocketAddress> constructHosts(int port, String[] hosts) {
         return Stream.of(hosts)
                 .map(host -> InetSocketAddress.createUnresolved(host, port))u}(jt  (763b08ac1b83e32f47a732c9e8110d8d4e87cb42j  catlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/ClusterMetadataUtilsTest.javaj  removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FClusterMetadataUtilsTest.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FClusterMetadataUtilsTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FClusterMetadataUtilsTest.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  Xf"  @@ -1,176 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.Mockito.when;
-
-import com.datastax.driver.core.CassandraTokenRanges;
-import com.datastax.driver.core.Metadata;
-import com.datastax.driver.core.Token;
-import com.datastax.driver.core.TokenRange;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Range;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.common.streams.KeyedStream;
-import java.util.Set;
-import java.util.TreeMap;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.Mock;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@RunWith(MockitoJUnitRunner.class)
-public class ClusterMetadataUtilsTest {
-    private static final String TOKEN_1 = "1df388e2a10c81a4339ab9304497385b";
-    private static final String TOKEN_2 = "974ef05bdfaf14b88cbe12bce50e5023";
-    private static final String TOKEN_3 = "d9ce4afeafac5781fb101e8bef4703f8";
-    private static final TokenRange FIRST_RANGE = CassandraTokenRanges.create(TOKEN_1, TOKEN_2);
-    private static final TokenRange SECOND_RANGE = CassandraTokenRanges.create(TOKEN_2, TOKEN_3);
-    private static final TokenRange WRAPAROUND_RANGE = CassandraTokenRanges.create(TOKEN_3, TOKEN_1);
-    private static final Token SECOND_TOKEN = SECOND_RANGE.getStart();
-    private static final Token THIRD_TOKEN = WRAPAROUND_RANGE.getStart();
-
-    @Mock
-    private Metadata metadata;
-
-    private TreeMap<LightweightOppToken, Range<LightweightOppToken>> tokenRangesByStart;
-
-    @Before
-    public void setUp() {
-        when(metadata.getTokenRanges()).thenReturn(ImmutableSet.of(FIRST_RANGE, SECOND_RANGE, WRAPAROUND_RANGE));
-        CqlMetadata cqlMetadata = new CqlMetadata(metadata);
-
-        tokenRangesByStart = KeyedStream.of(cqlMetadata.getTokenRanges())
-                .mapKeys(LightweightOppToken::getLowerExclusive)
-                .collectTo(TreeMap::new);
-    }
-
-    @Test
-    public void testMinimalSetOfTokenRanges() {
-        LightweightOppToken partitionKeyToken = getToken("9000");
-        LightweightOppToken lastTokenBeforePartitionKey = tokenRangesByStart.lowerKey(partitionKeyToken);
-
-        Set<Range<LightweightOppToken>> tokenRanges = ClusterMetadataUtils.getMinimalSetOfRangesForTokens(
-                ImmutableSet.of(partitionKeyToken), tokenRangesByStart);
-        assertThat(tokenRanges).hasSize(1);
-        Range<LightweightOppToken> onlyRange = tokenRanges.iterator().next();
-        assertThat(onlyRange.lowerEndpoint()).isEqualTo(lastTokenBeforePartitionKey);
-        assertThat(onlyRange.upperEndpoint()).isEqualTo(partitionKeyToken);
-    }
-
-    @Test
-    public void testMinTokenIsStart() {
-        LightweightOppToken nestedEndKey = getToken("0001");
-        LightweightOppToken outerEndKey = getToken("0002");
-        Range<LightweightOppToken> nested = Range.atMost(nestedEndKey);
-        Range<LightweightOppToken> outer = Range.atMost(outerEndKey);
-        assertThat(ClusterMetadataUtils.findLatestEndingRange(nested, outer)).isEqualTo(outer);
-    }
-
-    @Test
-    public void testUnboundedRangeIsLatestEnding() {
-        LightweightOppToken duplicatedStartKey = getToken("0001");
-        LightweightOppToken normalEndKey = getToken("000101");
-        Range<LightweightOppToken> nested = Range.openClosed(duplicatedStartKey, normalEndKey);
-        Range<LightweightOppToken> outer = Range.greaterThan(duplicatedStartKey);
-        assertThat(ClusterMetadataUtils.findLatestEndingRange(nested, outer)).isEqualTo(outer);
-    }
-
-    @Test
-    public void testSmallTokenRangeDedupe() {
-        LightweightOppToken partitionKeyToken1 = getToken("9000");
-        LightweightOppToken partitionKeyToken2 = getToken("9001");
-        Set<Range<LightweightOppToken>> tokenRanges = ClusterMetadataUtils.getMinimalSetOfRangesForTokens(
-                ImmutableSet.of(partitionKeyToken1, partitionKeyToken2), tokenRangesByStart);
-        assertThat(tokenRanges).hasSize(1);
-        Range<LightweightOppToken> onlyRange = tokenRanges.iterator().next();
-        assertThat(onlyRange.lowerEndpoint()).isEqualTo(tokenRangesByStart.lowerKey(partitionKeyToken1));
-        assertThat(onlyRange.upperEndpoint()).isEqualTo(partitionKeyToken2);
-    }
-
-    @Test
-    public void testSmallTokenRangeBeforeFirstVnode() {
-        LightweightOppToken partitionKeyToken = getToken("0010");
-
-        Set<Range<LightweightOppToken>> tokenRanges = ClusterMetadataUtils.getMinimalSetOfRangesForTokens(
-                ImmutableSet.of(partitionKeyToken), tokenRangesByStart);
-        assertThat(tokenRanges).hasSize(2);
-        assertThat(tokenRanges)
-                .containsExactlyInAnyOrder(
-                        Range.atMost(partitionKeyToken), Range.greaterThan(LightweightOppToken.serialize(THIRD_TOKEN)));
-    }
-
-    @Test
-    public void testSmallTokenRangeOnVnode() {
-        LightweightOppToken firstEndToken = tokenRangesByStart.higherKey(tokenRangesByStart.firstKey());
-        LightweightOppToken secondEndToken = tokenRangesByStart.higherKey(firstEndToken);
-        Set<Range<LightweightOppToken>> tokenRanges = ClusterMetadataUtils.getMinimalSetOfRangesForTokens(
-                ImmutableSet.of(secondEndToken), tokenRangesByStart);
-        assertThat(tokenRanges).hasSize(1);
-        Range<LightweightOppToken> onlyRange = tokenRanges.iterator().next();
-        assertThat(onlyRange.lowerEndpoint()).isEqualTo(firstEndToken);
-        assertThat(onlyRange.upperEndpoint()).isEqualTo(secondEndToken);
-    }
-
-    @Test
-    public void testSmallTokenRangeInMiddle() {
-        LightweightOppToken token = getToken("c0ffee");
-        Set<Range<LightweightOppToken>> tokenRanges =
-                ClusterMetadataUtils.getMinimalSetOfRangesForTokens(ImmutableSet.of(token), tokenRangesByStart);
-        assertThat(tokenRanges).hasSize(1);
-        Range<LightweightOppToken> onlyRange = tokenRanges.iterator().next();
-        assertThat(onlyRange.lowerEndpoint()).isEqualTo(LightweightOppToken.serialize(SECOND_TOKEN));
-        assertThat(onlyRange.upperEndpoint()).isEqualTo(token);
-    }
-
-    @Test
-    public void testSmallTokenRangeAfterLastVnode() {
-        LightweightOppToken token = getToken("fefe");
-        Set<Range<LightweightOppToken>> tokenRanges =
-                ClusterMetadataUtils.getMinimalSetOfRangesForTokens(ImmutableSet.of(token), tokenRangesByStart);
-        assertThat(tokenRanges).hasSize(1);
-        Range<LightweightOppToken> onlyRange = tokenRanges.iterator().next();
-        assertThat(onlyRange.lowerEndpoint()).isEqualTo(LightweightOppToken.serialize(THIRD_TOKEN));
-        assertThat(onlyRange.upperEndpoint()).isEqualTo(token);
-    }
-
-    @Test
-    public void testRemoveNestedRanges() {
-        LightweightOppToken duplicatedStartKey = getToken("0001");
-        LightweightOppToken nestedEndKey = getToken("000101");
-        LightweightOppToken outerEndKey = getToken("000102");
-        Range<LightweightOppToken> nested = Range.openClosed(duplicatedStartKey, nestedEndKey);
-        Range<LightweightOppToken> outer = Range.openClosed(duplicatedStartKey, outerEndKey);
-        assertThat(ClusterMetadataUtils.findLatestEndingRange(nested, outer)).isEqualTo(outer);
-    }
-
-    @Test
-    public void testRemoveNestedWraparoundAndNonWrapRanges() {
-        LightweightOppToken duplicatedStartKey = getToken("ff");
-        LightweightOppToken nonWrapAround = getToken("ff01");
-        Range<LightweightOppToken> nonWrapAroundRange = Range.openClosed(duplicatedStartKey, nonWrapAround);
-        Range<LightweightOppToken> wrapAroundRange = Range.greaterThan(duplicatedStartKey);
-        assertThat(ClusterMetadataUtils.findLatestEndingRange(nonWrapAroundRange, wrapAroundRange))
-                .isEqualTo(wrapAroundRange);
-    }
-
-    private LightweightOppToken getToken(String hexBinary) {
-        return LightweightOppToken.serialize(CassandraTokenRanges.getToken(hexBinary));
-    }
-}u}(jt  (457cedbcc8cc28b66b15ca9f2b4a448b39a3716dj  Yatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/CqlClusterTest.javaj  removedj  K j  K7j  K7j  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlClusterTest.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlClusterTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlClusterTest.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X  @@ -1,55 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import static org.assertj.core.api.Assertions.assertThatCode;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
-
-import com.datastax.driver.core.Cluster;
-import com.datastax.driver.core.Session;
-import com.datastax.driver.core.exceptions.NoHostAvailableException;
-import com.google.common.collect.ImmutableMap;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import java.time.Duration;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.Mock;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@RunWith(MockitoJUnitRunner.class)
-public class CqlClusterTest {
-    @Mock
-    private Cluster cluster;
-
-    @Test
-    public void retriesSessionFetching() {
-        Session session = mock(Session.class);
-
-        when(cluster.connect())
-                .thenThrow(new NoHostAvailableException(ImmutableMap.of()))
-                .thenReturn(session);
-
-        CqlCluster cqlCluster = new CqlCluster(
-                cluster,
-                BackupTestUtils.cqlCapableConfig("host1", "host2"),
-                Namespace.of("namespace"),
-                Duration.ofMillis(50L));
-
-        assertThatCode(cqlCluster::createSessionWithRetry).doesNotThrowAnyException();
-    }
-}u}(jt  (51b7bea153d98dfd850c7a9a0c00003bab51b79dj  aatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/RepairRangeFetcherTest.javaj  removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRepairRangeFetcherTest.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRepairRangeFetcherTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRepairRangeFetcherTest.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X!  @@ -1,176 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.anyList;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.when;
-
-import com.datastax.driver.core.KeyspaceMetadata;
-import com.datastax.driver.core.TableMetadata;
-import com.datastax.driver.core.policies.DefaultRetryPolicy;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Range;
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions1TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions2TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions3TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.timestamp.FullyBoundedTimestampRange;
-import java.net.InetSocketAddress;
-import java.util.List;
-import java.util.Map;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.Mock;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@SuppressWarnings("UnstableApiUsage")
-@RunWith(MockitoJUnitRunner.class)
-public class RepairRangeFetcherTest {
-    static final LightweightOppToken OTHER_TOKEN = BackupTestUtils.lightweightOppToken("7777");
-    static final DefaultRetryPolicy POLICY = DefaultRetryPolicy.INSTANCE;
-    static final String TXN_1 = TransactionConstants.TRANSACTION_TABLE.getTableName();
-    static final String TXN_2 = TransactionConstants.TRANSACTIONS2_TABLE.getTableName();
-
-    @Mock
-    private CqlSession cqlSession;
-
-    @Mock
-    private CqlMetadata cqlMetadata;
-
-    private RepairRangeFetcher repairRangeFetcher;
-
-    @Before
-    public void setUp() {
-        KeyspaceMetadata keyspaceMetadata = BackupTestUtils.mockKeyspaceMetadata(cqlMetadata);
-        List<TableMetadata> tableMetadatas = BackupTestUtils.mockTableMetadatas(keyspaceMetadata, TXN_1, TXN_2);
-        when(keyspaceMetadata.getTables()).thenReturn(tableMetadatas);
-
-        BackupTestUtils.mockTokenRanges(cqlSession, cqlMetadata);
-
-        when(cqlSession.retrieveRowKeysAtConsistencyAll(anyList()))
-                .thenReturn(ImmutableSet.of(BackupTestUtils.TOKEN_1, OTHER_TOKEN));
-        when(cqlMetadata.getReplicas(eq(BackupTestUtils.NAMESPACE), any()))
-                .thenReturn(ImmutableSet.copyOf(BackupTestUtils.HOSTS));
-
-        repairRangeFetcher =
-                new RepairRangeFetcher(cqlSession, BackupTestUtils.NAMESPACE, BackupTestUtils.CASSANDRA_SERVERS_CONFIG);
-    }
-
-    @Test
-    public void testRepairOnlyTxn1() {
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions1TableInteraction(range(1L, 10_000_000L), POLICY));
-
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-        assertThat(rangesForRepair.keySet()).containsExactly(TXN_1);
-    }
-
-    @Test
-    public void testRepairOnlyTxn2() {
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions2TableInteraction(range(1L, 10_000_000L), POLICY));
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-        assertThat(rangesForRepair.keySet()).containsExactly(TXN_2);
-    }
-
-    @Test
-    public void testRepairTxn3() {
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions3TableInteraction(range(1L, 10_000_000L)));
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-
-        // Transactions3 is backed by Transactions2 under the hood, so this is the table that will be repaired.
-        assertThat(rangesForRepair.keySet()).containsExactly(TXN_2);
-    }
-
-    @Test
-    public void testRepairBothTxnTables() {
-        List<TransactionsTableInteraction> interactions = ImmutableList.of(
-                new Transactions1TableInteraction(range(1L, 5L), POLICY),
-                new Transactions2TableInteraction(range(6L, 10L), POLICY));
-
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-        assertThat(rangesForRepair.keySet()).containsExactlyInAnyOrder(TXN_1, TXN_2);
-    }
-
-    @Test
-    public void testRepairsEachTableOnceOnly() {
-        List<TransactionsTableInteraction> interactions = ImmutableList.of(
-                new Transactions1TableInteraction(range(1L, 5L), POLICY),
-                new Transactions2TableInteraction(range(6L, 10L), POLICY),
-                new Transactions1TableInteraction(range(11L, 15L), POLICY),
-                new Transactions2TableInteraction(range(16L, 20L), POLICY));
-
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-        assertThat(rangesForRepair.keySet()).containsExactlyInAnyOrder(TXN_1, TXN_2);
-    }
-
-    @Test
-    public void testRepairGivesCorrectTokenRanges() {
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions2TableInteraction(range(1L, 10_000_000L), POLICY));
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-
-        assertThat(rangesForRepair.get(TXN_2).get(BackupTestUtils.HOST_1).asRanges())
-                .containsExactlyInAnyOrder(
-                        Range.atMost(BackupTestUtils.TOKEN_1),
-                        Range.openClosed(BackupTestUtils.TOKEN_2, OTHER_TOKEN),
-                        Range.greaterThan(BackupTestUtils.TOKEN_3));
-    }
-
-    @Test
-    public void testRepairGivesAllReplicas() {
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions2TableInteraction(range(1L, 10_000_000L), POLICY));
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-
-        assertThat(rangesForRepair.get(TXN_2).keySet())
-                .containsExactlyInAnyOrder(BackupTestUtils.HOST_1, BackupTestUtils.HOST_2, BackupTestUtils.HOST_3);
-    }
-
-    @Test
-    public void testRepairGivesTwoReplicasForRF2() {
-        when(cqlMetadata.getReplicas(eq(BackupTestUtils.NAMESPACE), any()))
-                .thenReturn(ImmutableSet.of(BackupTestUtils.HOST_1, BackupTestUtils.HOST_2));
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions2TableInteraction(range(1L, 10_000_000L), POLICY));
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-
-        assertThat(rangesForRepair.get(TXN_2).keySet())
-                .containsExactlyInAnyOrder(BackupTestUtils.HOST_1, BackupTestUtils.HOST_2);
-    }
-
-    private static FullyBoundedTimestampRange range(long lower, long upper) {
-        return FullyBoundedTimestampRange.of(Range.closed(lower, upper));
-    }
-}u}(jt  (b84ca130f40836ecd3aa93ca383f785f1f62ce8aj  `atlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/TokenRangeFetcherTest.javaj  removedj  K j  Kgj  Kgj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTokenRangeFetcherTest.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTokenRangeFetcherTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTokenRangeFetcherTest.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X  @@ -1,103 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.anyList;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.when;
-
-import com.datastax.driver.core.KeyspaceMetadata;
-import com.datastax.driver.core.TableMetadata;
-import com.google.common.collect.ImmutableRangeSet;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Iterables;
-import com.google.common.collect.Range;
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import java.net.InetSocketAddress;
-import java.util.List;
-import java.util.Map;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.Mock;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@RunWith(MockitoJUnitRunner.class)
-@SuppressWarnings("UnstableApiUsage")
-public class TokenRangeFetcherTest {
-    private static final String TABLE_NAME = "table";
-
-    @Mock
-    private CqlSession cqlSession;
-
-    @Mock
-    private CqlMetadata cqlMetadata;
-
-    private TokenRangeFetcher tokenRangeFetcher;
-
-    @Before
-    public void setUp() {
-        KeyspaceMetadata keyspaceMetadata = BackupTestUtils.mockKeyspaceMetadata(cqlMetadata);
-        List<TableMetadata> tableMetadatas = BackupTestUtils.mockTableMetadatas(keyspaceMetadata, TABLE_NAME);
-        when(keyspaceMetadata.getTable(TABLE_NAME)).thenReturn(Iterables.getOnlyElement(tableMetadatas));
-
-        BackupTestUtils.mockTokenRanges(cqlSession, cqlMetadata);
-
-        when(cqlSession.retrieveRowKeysAtConsistencyAll(anyList()))
-                .thenReturn(ImmutableSet.of(BackupTestUtils.TOKEN_1, BackupTestUtils.TOKEN_2, BackupTestUtils.TOKEN_3));
-
-        tokenRangeFetcher =
-                new TokenRangeFetcher(cqlSession, BackupTestUtils.NAMESPACE, BackupTestUtils.CASSANDRA_SERVERS_CONFIG);
-    }
-
-    @Test
-    public void allNodesGetAllRangesWithThreeNodesAndRF3() {
-        when(cqlMetadata.getReplicas(eq(BackupTestUtils.NAMESPACE), any()))
-                .thenReturn(ImmutableSet.copyOf(BackupTestUtils.HOSTS));
-
-        Map<InetSocketAddress, RangeSet<LightweightOppToken>> tokenRange = tokenRangeFetcher.getTokenRange(TABLE_NAME);
-        assertThat(tokenRange.keySet())
-                .containsExactlyInAnyOrder(BackupTestUtils.HOST_1, BackupTestUtils.HOST_2, BackupTestUtils.HOST_3);
-        BackupTestUtils.HOSTS.forEach(
-                host -> assertThat(tokenRange.get(host)).isEqualTo(ImmutableRangeSet.of(Range.all())));
-    }
-
-    @Test
-    public void testGetTokenRangesWithRF2() {
-        when(cqlMetadata.getReplicas(BackupTestUtils.NAMESPACE, BackupTestUtils.RANGE_AT_MOST_1))
-                .thenReturn(ImmutableSet.of(BackupTestUtils.HOST_3, BackupTestUtils.HOST_1));
-        when(cqlMetadata.getReplicas(BackupTestUtils.NAMESPACE, BackupTestUtils.RANGE_GREATER_THAN_3))
-                .thenReturn(ImmutableSet.of(BackupTestUtils.HOST_3, BackupTestUtils.HOST_1));
-        when(cqlMetadata.getReplicas(BackupTestUtils.NAMESPACE, BackupTestUtils.RANGE_1_TO_2))
-                .thenReturn(ImmutableSet.of(BackupTestUtils.HOST_1, BackupTestUtils.HOST_2));
-        when(cqlMetadata.getReplicas(BackupTestUtils.NAMESPACE, BackupTestUtils.RANGE_2_TO_3))
-                .thenReturn(ImmutableSet.of(BackupTestUtils.HOST_2, BackupTestUtils.HOST_3));
-
-        Map<InetSocketAddress, RangeSet<LightweightOppToken>> tokenRange = tokenRangeFetcher.getTokenRange(TABLE_NAME);
-        assertThat(tokenRange.keySet())
-                .containsExactlyInAnyOrder(BackupTestUtils.HOST_1, BackupTestUtils.HOST_2, BackupTestUtils.HOST_3);
-        assertThat(tokenRange.get(BackupTestUtils.HOST_1).asRanges())
-                .containsExactly(Range.atMost(BackupTestUtils.TOKEN_2), Range.greaterThan(BackupTestUtils.TOKEN_3));
-        assertThat(tokenRange.get(BackupTestUtils.HOST_2).asRanges())
-                .containsExactly(Range.openClosed(BackupTestUtils.TOKEN_1, BackupTestUtils.TOKEN_3));
-        assertThat(tokenRange.get(BackupTestUtils.HOST_3).asRanges())
-                .containsExactly(Range.atMost(BackupTestUtils.TOKEN_1), Range.greaterThan(BackupTestUtils.TOKEN_2));
-    }
-}u}(jt  (6226f82e9f09a64da450666e8729b377a20f5b64j  aatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/TransactionAborterTest.javaj  removedj  K j  MVj  MVj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTransactionAborterTest.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTransactionAborterTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTransactionAborterTest.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X@  @@ -1,342 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.doReturn;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoMoreInteractions;
-import static org.mockito.Mockito.when;
-
-import com.datastax.driver.core.ConsistencyLevel;
-import com.datastax.driver.core.KeyspaceMetadata;
-import com.datastax.driver.core.PreparedStatement;
-import com.datastax.driver.core.ResultSet;
-import com.datastax.driver.core.Row;
-import com.datastax.driver.core.Statement;
-import com.datastax.driver.core.TableMetadata;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.Range;
-import com.palantir.atlasdb.atomic.AtomicValue;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionTableEntries;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionTableEntry;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
-import com.palantir.timestamp.FullyBoundedTimestampRange;
-import java.util.List;
-import java.util.stream.Collectors;
-import java.util.stream.Stream;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.Mock;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@RunWith(MockitoJUnitRunner.class)
-public class TransactionAborterTest {
-    private static final long BACKUP_TIMESTAMP = 123;
-
-    private static final FullyBoundedTimestampRange TIMESTAMP_RANGE =
-            FullyBoundedTimestampRange.of(Range.closed(TransactionConstants.LOWEST_POSSIBLE_START_TS, 200L));
-
-    private static final String TXN_TABLE_NAME = "txn_table";
-    private static final Namespace NAMESPACE = Namespace.of("keyspace");
-
-    @Mock
-    private CqlSession cqlSession;
-
-    @Mock
-    private TransactionsTableInteraction transactionInteraction;
-
-    @Mock
-    private Statement selectStatement;
-
-    @Mock
-    private PreparedStatement preparedAbortStatement;
-
-    @Mock
-    private Statement abortStatement;
-
-    @Mock
-    private PreparedStatement preparedCheckStatement;
-
-    @Mock
-    private Statement checkStatement;
-
-    @Mock
-    private TableMetadata tableMetadata;
-
-    private TransactionAborter transactionAborter;
-
-    @Before
-    public void before() {
-        when(transactionInteraction.getTransactionsTableName()).thenReturn(TXN_TABLE_NAME);
-
-        when(abortStatement.getSerialConsistencyLevel()).thenReturn(ConsistencyLevel.SERIAL);
-        when(transactionInteraction.bindAbortStatement(eq(preparedAbortStatement), any()))
-                .thenReturn(abortStatement);
-
-        when(checkStatement.getSerialConsistencyLevel()).thenReturn(ConsistencyLevel.SERIAL);
-        when(transactionInteraction.bindCheckStatement(eq(preparedCheckStatement), any()))
-                .thenReturn(checkStatement);
-
-        when(tableMetadata.getName()).thenReturn(TXN_TABLE_NAME);
-        KeyspaceMetadata keyspaceMetadata = mock(KeyspaceMetadata.class);
-        when(keyspaceMetadata.getTables()).thenReturn(ImmutableList.of(tableMetadata));
-        CqlMetadata cqlMetadata = mock(CqlMetadata.class);
-        when(cqlMetadata.getKeyspaceMetadata(NAMESPACE)).thenReturn(keyspaceMetadata);
-        when(cqlSession.getMetadata()).thenReturn(cqlMetadata);
-
-        doReturn(ImmutableList.of(selectStatement))
-                .when(transactionInteraction)
-                .createSelectStatementsForScanningFullTimestampRange(any());
-        ResultSet selectResponse = createSelectResponse(ImmutableList.of());
-        when(cqlSession.execute(selectStatement)).thenReturn(selectResponse);
-
-        doReturn(mock(PreparedStatement.class)).when(transactionInteraction).prepareAbortStatement(any(), any());
-        doReturn(mock(PreparedStatement.class)).when(transactionInteraction).prepareCheckStatement(any(), any());
-
-        transactionAborter = new TransactionAborter(cqlSession, NAMESPACE);
-    }
-
-    @Test
-    public void willNotRunAbortWhenNothingToAbort() {
-        transactionAborter.abortTransactions(BACKUP_TIMESTAMP, List.of(transactionInteraction));
-
-        verify(cqlSession, times(1)).execute(selectStatement);
-        verify(cqlSession, times(1)).getMetadata();
-        verifyNoMoreInteractions(cqlSession);
-    }
-
-    @Test
-    public void willNotAbortTimestampsLowerThanBackupTimestamp() {
-        ImmutableList<TransactionTableEntry> rows = ImmutableList.of(
-                TransactionTableEntries.committedLegacy(10L, 20L),
-                TransactionTableEntries.committedTwoPhase(
-                        20L, AtomicValue.committed(TransactionStatusUtils.fromTimestamp(30L))),
-                TransactionTableEntries.committedLegacy(30L, BACKUP_TIMESTAMP - 1));
-        setupAbortTimestampTask(rows, TIMESTAMP_RANGE);
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isZero();
-    }
-
-    @Test
-    public void willNotAbortTimestampsOutsideRange() {
-        ImmutableList<TransactionTableEntry> rows = ImmutableList.of(
-                TransactionTableEntries.committedLegacy(BACKUP_TIMESTAMP + 10, BACKUP_TIMESTAMP + 12),
-                TransactionTableEntries.committedTwoPhase(
-                        BACKUP_TIMESTAMP + 12,
-                        AtomicValue.committed(TransactionStatusUtils.fromTimestamp(BACKUP_TIMESTAMP + 13))),
-                TransactionTableEntries.committedLegacy(BACKUP_TIMESTAMP + 14, BACKUP_TIMESTAMP + 15));
-        setupAbortTimestampTask(rows, FullyBoundedTimestampRange.of(Range.closed(BACKUP_TIMESTAMP + 16, 1000L)));
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isZero();
-    }
-
-    @Test
-    public void willNotAbortTimestampsAlreadyAborted() {
-        ImmutableList<TransactionTableEntry> rows =
-                ImmutableList.of(TransactionTableEntries.explicitlyAborted(BACKUP_TIMESTAMP + 1));
-        setupAbortTimestampTask(rows, TIMESTAMP_RANGE);
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isZero();
-    }
-
-    @Test
-    public void willAbortTimestampInRange() {
-        ImmutableList<TransactionTableEntry> rows = ImmutableList.of(
-                TransactionTableEntries.committedLegacy(BACKUP_TIMESTAMP + 1, BACKUP_TIMESTAMP + 2),
-                TransactionTableEntries.committedTwoPhase(
-                        BACKUP_TIMESTAMP + 3,
-                        AtomicValue.committed(TransactionStatusUtils.fromTimestamp(BACKUP_TIMESTAMP + 4))));
-        setupAbortTimestampTask(rows, FullyBoundedTimestampRange.of(Range.closed(25L, 1000L)));
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isEqualTo(2L);
-    }
-
-    @Test
-    public void willAbortTimestampsHigherThanBackupTimestamp() {
-        ImmutableList<TransactionTableEntry> rows = ImmutableList.of(
-                TransactionTableEntries.committedLegacy(BACKUP_TIMESTAMP + 1, BACKUP_TIMESTAMP + 2),
-                TransactionTableEntries.committedTwoPhase(
-                        BACKUP_TIMESTAMP + 3,
-                        AtomicValue.committed(TransactionStatusUtils.fromTimestamp(BACKUP_TIMESTAMP + 4))));
-        setupAbortTimestampTask(rows, TIMESTAMP_RANGE);
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isEqualTo(2L);
-    }
-
-    @Test
-    public void willAbortTimestampsThatStartBeforeButEndAfterBackupTimestamp() {
-        ImmutableList<TransactionTableEntry> rows = ImmutableList.of(
-                TransactionTableEntries.committedLegacy(BACKUP_TIMESTAMP - 2, BACKUP_TIMESTAMP + 1),
-                TransactionTableEntries.committedTwoPhase(
-                        BACKUP_TIMESTAMP - 1,
-                        AtomicValue.committed(TransactionStatusUtils.fromTimestamp(BACKUP_TIMESTAMP + 2))));
-        setupAbortTimestampTask(rows, TIMESTAMP_RANGE);
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isEqualTo(2L);
-    }
-
-    @Test
-    public void willAbortTimestampsThatStartAfterBackupTimestampAndEndOutsideRange() {
-        long endOfRange = TIMESTAMP_RANGE.inclusiveUpperBound();
-        ImmutableList<TransactionTableEntry> rows = ImmutableList.of(
-                TransactionTableEntries.committedLegacy(BACKUP_TIMESTAMP + 1, endOfRange + 1),
-                TransactionTableEntries.committedTwoPhase(
-                        BACKUP_TIMESTAMP + 2,
-                        AtomicValue.committed(TransactionStatusUtils.fromTimestamp(endOfRange + 2))));
-        setupAbortTimestampTask(rows, TIMESTAMP_RANGE);
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isEqualTo(2L);
-    }
-
-    @Test
-    public void willNotAbortTimestampsThatStartAfterRange() {
-        long endOfRange = TIMESTAMP_RANGE.inclusiveUpperBound();
-        ImmutableList<TransactionTableEntry> rows = ImmutableList.of(
-                TransactionTableEntries.committedLegacy(endOfRange + 1, endOfRange + 2),
-                TransactionTableEntries.committedTwoPhase(
-                        endOfRange + 3, AtomicValue.committed(TransactionStatusUtils.fromTimestamp(endOfRange + 4))));
-        setupAbortTimestampTask(rows, TIMESTAMP_RANGE);
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isEqualTo(0L);
-    }
-
-    @Test
-    public void executeWithRetryTriesSingleTimeIfAbortSucceeds() {
-        ResultSet abortResponse = createAbortResponse(true);
-        when(cqlSession.execute(abortStatement)).thenReturn(abortResponse);
-
-        Stream<TransactionTableEntry> entries = Stream.of(TransactionTableEntries.committedLegacy(100L, 101L));
-        transactionAborter.executeTransactionAborts(
-                transactionInteraction, preparedAbortStatement, preparedCheckStatement, entries);
-
-        verify(cqlSession).execute(abortStatement);
-    }
-
-    @Test
-    public void executeWithRetryChecksIfAbortWasNotAppliedAndRetriesIfNoMatch() {
-        ResultSet abortResponse1 = createAbortResponse(false);
-        ResultSet abortResponse2 = createAbortResponse(true);
-
-        when(cqlSession.execute(abortStatement)).thenReturn(abortResponse1).thenReturn(abortResponse2);
-
-        Row row = mock(Row.class);
-        ResultSet checkResponse = createSelectResponse(ImmutableList.of(row));
-        when(cqlSession.execute(checkStatement)).thenReturn(checkResponse);
-
-        Stream<TransactionTableEntry> entries = Stream.of(TransactionTableEntries.committedLegacy(100L, 101L));
-        transactionAborter.executeTransactionAborts(
-                transactionInteraction, preparedAbortStatement, preparedCheckStatement, entries);
-
-        verify(cqlSession, times(2)).execute(abortStatement);
-        verify(cqlSession).execute(checkStatement);
-    }
-
-    @Test
-    public void executeWithRetryChecksIfAbortWasNotAppliedAndDoesNotRetryIfEqualsAbortTimestamp() {
-        ResultSet abortResponse = createAbortResponse(false);
-        when(cqlSession.execute(abortStatement)).thenReturn(abortResponse);
-
-        Row row = mock(Row.class);
-        ResultSet checkResponse = createSelectResponse(ImmutableList.of(row));
-
-        TransactionTableEntry entry = TransactionTableEntries.explicitlyAborted(100L);
-        when(cqlSession.execute(checkStatement)).thenReturn(checkResponse);
-        when(transactionInteraction.extractTimestamps(row)).thenReturn(entry);
-
-        TransactionTableEntry notYetAborted = TransactionTableEntries.committedLegacy(100L, 101L);
-        Stream<TransactionTableEntry> entries = Stream.of(notYetAborted);
-        transactionAborter.executeTransactionAborts(
-                transactionInteraction, preparedAbortStatement, preparedCheckStatement, entries);
-
-        verify(cqlSession, times(1)).execute(abortStatement);
-        verify(cqlSession, times(1)).execute(checkStatement);
-    }
-
-    @Test
-    public void executeWithRetryChecksEventuallyFails() {
-        ResultSet abortResponse = createAbortResponse(false);
-        when(cqlSession.execute(abortStatement)).thenReturn(abortResponse);
-
-        Row row = mock(Row.class);
-        ResultSet checkResponse = createSelectResponse(ImmutableList.of(row));
-        when(cqlSession.execute(checkStatement)).thenReturn(checkResponse);
-
-        Stream<TransactionTableEntry> entries = Stream.of(TransactionTableEntries.committedLegacy(100L, 101L));
-
-        assertThatThrownBy(() -> transactionAborter.executeTransactionAborts(
-                        transactionInteraction, preparedAbortStatement, preparedCheckStatement, entries))
-                .isInstanceOf(IllegalStateException.class);
-
-        verify(cqlSession, times(3)).execute(abortStatement);
-        verify(cqlSession, times(3)).execute(checkStatement);
-    }
-
-    private void setupAbortTimestampTask(
-            ImmutableList<TransactionTableEntry> entries, FullyBoundedTimestampRange range) {
-        when(transactionInteraction.getTimestampRange()).thenReturn(range);
-        List<Row> rows = entries.stream()
-                .map(entry -> {
-                    Row row = mock(Row.class);
-                    when(transactionInteraction.extractTimestamps(row)).thenReturn(entry);
-                    return row;
-                })
-                .collect(Collectors.toList());
-        ResultSet selectResponse = createSelectResponse(rows);
-        when(transactionInteraction.createSelectStatementsForScanningFullTimestampRange(any()))
-                .thenReturn(ImmutableList.of(mock(Statement.class)));
-        when(cqlSession.execute(any(Statement.class))).thenReturn(selectResponse);
-    }
-
-    private static ResultSet createAbortResponse(boolean wasApplied) {
-        ResultSet response = mock(ResultSet.class);
-        when(response.wasApplied()).thenReturn(wasApplied);
-        return response;
-    }
-
-    private static ResultSet createSelectResponse(List<Row> transactions) {
-        ResultSet response = mock(ResultSet.class);
-        when(response.iterator()).thenReturn(transactions.iterator());
-        when(response.all()).thenReturn(transactions);
-        return response;
-    }
-}u      }(jt  (078fdebb7aa6ebff214d94e219894401b3973ddaj  xatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions1TableInteractionTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteractionTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteractionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteractionTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  Xg  @@ -33,6 +33,7 @@
 import com.palantir.atlasdb.transaction.encoding.V1EncodingStrategy;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.timestamp.FullyBoundedTimestampRange;
 import java.nio.ByteBuffer;
 import org.apache.commons.codec.binary.Hex;
@@ -57,7 +58,7 @@ public void cellEncodingTest() {
     public void valueEncodingTest() {
         byte[] actualValue =
                 V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(111L, TransactionStatusUtils.fromTimestamp(222L));
-        byte[] abort = V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(1L, TransactionConstants.ABORTED);
+        byte[] abort = V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(1L, TransactionStatus.aborted());
 
         assertThat(Transactions1TableInteraction.encodeCommitTimestamp(222L)).isEqualTo(ByteBuffer.wrap(actualValue));
         assertThat(Transactions1TableInteraction.encodeCommitTimestamp(TransactionConstants.FAILED_COMMIT_TS))u}(jt  (665255398e90af7633b7ed78d422f68bbdb494e2j  xatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions2TableInteractionTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions2TableInteractionTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions2TableInteractionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions2TableInteractionTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -33,7 +33,7 @@
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraConstants;
 import com.palantir.atlasdb.transaction.encoding.TicketsEncodingStrategy;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.timestamp.FullyBoundedTimestampRange;
 import java.nio.ByteBuffer;
 import java.util.ArrayList;
@@ -128,7 +128,7 @@ private static Row createRow(long start, long commit) {
         when(row.getBytes(CassandraConstants.COLUMN)).thenReturn(ByteBuffer.wrap(cell.getColumnName()));
         when(row.getBytes(CassandraConstants.VALUE))
                 .thenReturn(ByteBuffer.wrap(TicketsEncodingStrategy.INSTANCE.encodeCommitStatusAsValue(
-                        start, TransactionStatuses.committed(commit))));
+                        start, TransactionStatus.committed(commit))));
         return row;
     }
 u}(jt  (6c8488c0b734a2196aa6268e3b1b4e173ea36688j  xatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions3TableInteractionTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteractionTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteractionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteractionTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -37,7 +37,6 @@
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.timestamp.FullyBoundedTimestampRange;
 import java.nio.ByteBuffer;
 import java.util.ArrayList;
@@ -68,8 +67,7 @@ public void extractCommittedTimestampTest() {
         TransactionTableEntryAssertions.assertTwoPhase(entry, (startTs, commitValue) -> {
             assertThat(startTs).isEqualTo(150L);
             assertThat(commitValue.isCommitted()).isTrue();
-            assertThat(TransactionStatuses.getCommitTimestamp(commitValue.value()))
-                    .hasValue(200L);
+            assertThat(commitValue.value()).isEqualTo(TransactionStatus.committed(200L));
         });
     }
 
@@ -80,8 +78,7 @@ public void extractStagingCommitTimestampTest() {
         TransactionTableEntryAssertions.assertTwoPhase(entry, (startTs, commitValue) -> {
             assertThat(startTs).isEqualTo(150L);
             assertThat(commitValue.isCommitted()).isFalse();
-            assertThat(TransactionStatuses.getCommitTimestamp(commitValue.value()))
-                    .hasValue(200L);
+            assertThat(commitValue.value()).isEqualTo(TransactionStatus.committed(200L));
         });
     }
 u}(jt  (e444e822ca0d829d76daf26c911545f4619046e4j  gatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientFactoryTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientFactoryTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientFactoryTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientFactoryTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XP  @@ -45,6 +45,7 @@
 import org.apache.commons.pool2.impl.DefaultPooledObject;
 import org.apache.thrift.protocol.TCompactProtocol;
 import org.apache.thrift.transport.TMemoryInputTransport;
+import org.apache.thrift.transport.TTransportException;
 import org.junit.Test;
 
 public class CassandraClientFactoryTest {
@@ -77,7 +78,7 @@ public class CassandraClientFactoryTest {
     private PooledObject<CassandraClient> pooledClient = new DefaultPooledObject<>(client);
 
     @Test
-    public void validateObjectReliesOnOpennessOfUnderlyingTransport() {
+    public void validateObjectReliesOnOpennessOfUnderlyingTransport() throws TTransportException {
         when(client.getOutputProtocol()).thenReturn(new TCompactProtocol(new TMemoryInputTransport(), 31337, 131072));
         assertThat(FACTORY.validateObject(pooledClient)).isTrue();
     }u}(jt  (81558f1f4edc8bff964c4e8ca571ba37e5f3d881j  datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolTest.javaj  modifiedj  Kj  K
j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -39,6 +39,7 @@
 import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.common.base.FunctionCheckedException;
+import com.palantir.common.concurrent.InitializeableScheduledExecutorServiceSupplier;
 import com.palantir.common.exception.AtlasDbDependencyException;
 import com.palantir.conjure.java.api.config.service.HumanReadableDuration;
 import com.palantir.logsafe.SafeArg;
@@ -447,14 +448,15 @@ public void throwsWhenTryingToAddServerPresentInCurrentServers() {
         setCassandraServersTo(CASS_SERVER_1, CASS_SERVER_2);
 
         CassandraClientPoolImpl pool = createClientPool();
-        Set<CassandraServer> serversToAdd = Set.of(CASS_SERVER_1);
+        ImmutableMap<CassandraServer, CassandraServerOrigin> serversToAdd =
+                ImmutableMap.of(CASS_SERVER_1, CassandraServerOrigin.TOKEN_RANGE);
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2);
         assertThatLoggableExceptionThrownBy(
                         () -> pool.validateNewHostsTopologiesAndMaybeAddToPool(poolServers, serversToAdd))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("The current pool of servers should not have any server(s) that are being added.")
                 .hasExactlyArgs(
-                        SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd)),
+                        SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())),
                         SafeArg.of("currentServers", CassandraLogHelper.collectionOfHosts(poolServers.keySet())));
     }
 
@@ -469,9 +471,9 @@ public void shutsDownHostsBeyondAbsenceTolerance() {
         CassandraClientPoolingContainer container1 = currentPoolSnapshot.get(CASS_SERVER_1);
         verifyNoInteractions(container1);
 
-        cassandraClientPool.setServersInPoolTo(ImmutableSet.of(CASS_SERVER_3));
+        cassandraClientPool.setServersInPoolTo(ImmutableMap.of(CASS_SERVER_3, CassandraServerOrigin.TOKEN_RANGE));
         // The refresh will mark absence of host1 beyond limit of tolerance
-        cassandraClientPool.setServersInPoolTo(ImmutableSet.of(CASS_SERVER_3));
+        cassandraClientPool.setServersInPoolTo(ImmutableMap.of(CASS_SERVER_3, CassandraServerOrigin.TOKEN_RANGE));
         assertThat(cassandraClientPool.getCurrentPools()).containsOnlyKeys(CASS_SERVER_3);
         verify(container1).shutdownPooling();
     }
@@ -486,7 +488,9 @@ private CassandraClientPoolingContainer getCassandraContainerFromInvocation(Invo
 
     private void setCassandraServersTo(CassandraServer... servers) {
         when(cassandra.refreshTokenRangesAndGetServers())
-                .thenReturn(Arrays.stream(servers).collect(ImmutableSet.toImmutableSet()));
+                .thenReturn(Arrays.stream(servers)
+                        .collect(ImmutableMap.toImmutableMap(
+                                Function.identity(), _v -> CassandraServerOrigin.TOKEN_RANGE)));
     }
 
     private CassandraClientPoolImpl createClientPool() {
@@ -495,7 +499,7 @@ private CassandraClientPoolImpl createClientPool() {
                 config,
                 refreshableRuntimeConfig,
                 CassandraClientPoolImpl.StartupChecks.DO_NOT_RUN,
-                _numThreads -> deterministicExecutor,
+                InitializeableScheduledExecutorServiceSupplier.createForTests(deterministicExecutor),
                 blacklist,
                 cassandra,
                 cassandraTopologyValidator,
@@ -653,17 +657,21 @@ private void verifyBlacklistMetric(Integer expectedSize) {
 
     private Object getAggregateMetricValueForMetricName(String metricName) {
         String fullyQualifiedMetricName = MetricRegistry.name(CassandraClientPool.class, metricName);
-        return metricRegistry.getGauges().get(fullyQualifiedMetricName).getValue();
+        return taggedMetricRegistry
+                .gauge(MetricName.builder().safeName(fullyQualifiedMetricName).build())
+                .orElseThrow()
+                .getValue();
     }
 
     private void setupThriftServers(Set<InetSocketAddress> servers) {
         CassandraServersConfigs.CassandraServersConfig config =
                 ImmutableDefaultConfig.builder().addAllThriftHosts(servers).build();
         when(runtimeConfig.servers()).thenReturn(config);
         when(cassandra.getCurrentServerListFromConfig())
-                .thenReturn(config.accept(CassandraServersConfigs.ThriftHostsExtractingVisitor.INSTANCE).stream()
-                        .map(CassandraServer::of)
-                        .collect(ImmutableSet.toImmutableSet()));
+                .thenReturn(CassandraServerOrigin.mapAllServersToOrigin(
+                        config.accept(CassandraServersConfigs.ThriftHostsExtractingVisitor.INSTANCE).stream()
+                                .map(CassandraServer::of),
+                        CassandraServerOrigin.CONFIG));
     }
 
     private void setupHostsWithConsistentTopology() {u}(jt  (2e22682ffe40a29106d97813ee0798016dc52349j  catlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraLogHelperTest.javaj  modifiedj  K&j  Kj  K4j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraLogHelperTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraLogHelperTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraLogHelperTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -18,9 +18,11 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.keyvalue.cassandra.CassandraLogHelper.HostAndIpAddress;
 import java.net.InetSocketAddress;
 import java.util.List;
 import java.util.Set;
@@ -81,24 +83,46 @@ public void tokenRangeHashesAreMostlyDistinct() {
 
     @Test
     public void unresolvedHost() {
-        assertThat(CassandraLogHelper.host(InetSocketAddress.createUnresolved("localhost", 1234)))
-                .satisfies(hostAndIpAddress -> {
-                    assertThat(hostAndIpAddress.host()).isEqualTo("localhost");
-                    assertThat(hostAndIpAddress.ipAddress()).isNull();
-                })
-                .asString()
-                .isEqualTo("HostAndIpAddress{host=localhost}");
+        ObjectMapper objectMapper = new ObjectMapper();
+        InetSocketAddress address = InetSocketAddress.createUnresolved("localhost", 1234);
+        assertThat(CassandraLogHelper.host(address)).satisfies(hostAndIpAddress -> {
+            HostAndIpAddress host2 = CassandraLogHelper.host(address);
+            assertThat(hostAndIpAddress).isNotNull().isEqualTo(host2).isSameAs(host2);
+            assertThat(hostAndIpAddress.host()).isEqualTo("localhost");
+            assertThat(hostAndIpAddress.ipAddress()).isNull();
+            assertThat(hostAndIpAddress)
+                    .asString()
+                    .isEqualTo("localhost")
+                    .isSameAs(hostAndIpAddress.asString())
+                    .isSameAs(hostAndIpAddress.toString());
+            String json = objectMapper.writeValueAsString(hostAndIpAddress);
+            assertThat(json).isEqualTo("{\"host\":\"localhost\",\"ipAddress\":null}");
+            HostAndIpAddress deserialized = objectMapper.readValue(json, HostAndIpAddress.class);
+            assertThat(deserialized).isEqualTo(hostAndIpAddress);
+            assertThat(deserialized).asString().isEqualTo(hostAndIpAddress.toString());
+        });
     }
 
     @Test
     @SuppressWarnings("DnsLookup") // we want the DNS lookup to resolve localhost
     public void resolvedHost() {
-        assertThat(CassandraLogHelper.host(new InetSocketAddress("localhost", 1234)))
-                .satisfies(hostAndIpAddress -> {
-                    assertThat(hostAndIpAddress.host()).isEqualTo("localhost");
-                    assertThat(hostAndIpAddress.ipAddress()).isEqualTo("127.0.0.1");
-                })
-                .asString()
-                .isEqualTo("HostAndIpAddress{host=localhost, ipAddress=127.0.0.1}");
+        ObjectMapper objectMapper = new ObjectMapper();
+        InetSocketAddress address = new InetSocketAddress("localhost", 1234);
+        assertThat(CassandraLogHelper.host(address)).satisfies(hostAndIpAddress -> {
+            HostAndIpAddress host2 = CassandraLogHelper.host(address);
+            assertThat(hostAndIpAddress).isNotNull().isEqualTo(host2).isSameAs(host2);
+            assertThat(hostAndIpAddress.host()).isEqualTo("localhost");
+            assertThat(hostAndIpAddress.ipAddress()).isEqualTo("127.0.0.1");
+            assertThat(hostAndIpAddress)
+                    .asString()
+                    .isEqualTo("localhost/127.0.0.1")
+                    .isSameAs(hostAndIpAddress.asString())
+                    .isSameAs(hostAndIpAddress.toString());
+            String json = objectMapper.writeValueAsString(hostAndIpAddress);
+            assertThat(json).isEqualTo("{\"host\":\"localhost\",\"ipAddress\":\"127.0.0.1\"}");
+            HostAndIpAddress deserialized = objectMapper.readValue(json, HostAndIpAddress.class);
+            assertThat(deserialized).isEqualTo(hostAndIpAddress);
+            assertThat(deserialized).asString().isEqualTo(hostAndIpAddress.toString());
+        });
     }
 }u}(jt  (3c2278c182bf5531073adaa0f330188e64592508j  fatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraServerOriginTest.javaj  addedj  KHj  K j  KHj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XU
  @@ -0,0 +1,72 @@
+/*
+ * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
+import java.net.InetSocketAddress;
+import java.util.Map;
+import java.util.Set;
+import java.util.stream.Stream;
+import org.junit.Test;
+
+public final class CassandraServerOriginTest {
+
+    private static final CassandraServer SERVER_1 = createCassandraServer("serverOne");
+    private static final CassandraServer SERVER_2 = createCassandraServer("serverTwo");
+    private static final CassandraServer SERVER_3 = createCassandraServer("serverThree");
+
+    @Test
+    public void mapAllServersToOriginFromServerStreamDeduplicatesInput() {
+        CassandraServer cloneOfServer1 = createCassandraServer(SERVER_1.cassandraHostName());
+        CassandraServerOrigin origin = CassandraServerOrigin.CONFIG;
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(
+                        Stream.of(SERVER_1, SERVER_2, SERVER_3, cloneOfServer1, SERVER_2, SERVER_3, SERVER_2), origin))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(SERVER_1, origin, SERVER_2, origin, SERVER_3, origin));
+    }
+
+    @Test
+    public void mapAllServersToOriginFromServerSetReturnsMapWithAllSetElementsAsKeysAndAUniqueValue() {
+        CassandraServerOrigin origin = CassandraServerOrigin.TOKEN_RANGE;
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Set.of(SERVER_1, SERVER_2, SERVER_3), origin))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(SERVER_1, origin, SERVER_2, origin, SERVER_3, origin));
+    }
+
+    @Test
+    public void mapAllServersToOriginFromServerStreamWithUniqueElementsReturnsMapWithAllElementsAndAUniqueValue() {
+        CassandraServerOrigin origin = CassandraServerOrigin.LAST_KNOWN;
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Stream.of(SERVER_1, SERVER_2, SERVER_3), origin))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(SERVER_1, origin, SERVER_2, origin, SERVER_3, origin));
+    }
+
+    @Test
+    public void mapAllServersToOriginFromServerStreamReturnsEmptyMapOnEmptyStream() {
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Stream.empty(), CassandraServerOrigin.CONFIG))
+                .isEmpty();
+    }
+
+    @Test
+    public void mapAllServersToOriginFromSetStreamReturnsEmptyMapOnEmptySet() {
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Set.of(), CassandraServerOrigin.LAST_KNOWN))
+                .isEmpty();
+    }
+
+    private static CassandraServer createCassandraServer(String hostname) {
+        return CassandraServer.of(hostname, InetSocketAddress.createUnresolved(hostname, 88));
+    }
+}u}(jt  (bb81d17f74cc4edfb542819312a2b7f5960f195ej  katlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraTopologyValidatorTest.javaj  modifiedj  Kj  Kj  Mj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XKe  @@ -60,6 +60,7 @@ public final class CassandraTopologyValidatorTest {
     private static final String OLD_HOST_THREE = "old_host_three";
     private static final Set<String> OLD_HOSTS = ImmutableSet.of(OLD_HOST_ONE, OLD_HOST_TWO, OLD_HOST_THREE);
     private static final Set<String> UUIDS = ImmutableSet.of("uuid1", "uuid2", "uuid3");
+    private static final Set<String> DIFFERENT_UUIDS = ImmutableSet.of("uuid4", "uuid5", "uuid3");
 
     private static final Set<String> ALL_HOSTS = Sets.union(NEW_HOSTS, OLD_HOSTS);
 
@@ -80,7 +81,10 @@ public void retriesUntilNoNewHostsReturned() {
                         HostIdResult.success(Set.of(uuidIterator.next())),
                         HostIdResult.success(UUIDS)));
         assertThat(validator.getNewHostsWithInconsistentTopologiesAndRetry(
-                        allHosts.keySet(), allHosts, Duration.ofMillis(1), Duration.ofSeconds(20)))
+                        mapToTokenRangeOrigin(allHosts.keySet()),
+                        allHosts,
+                        Duration.ofMillis(1),
+                        Duration.ofSeconds(20)))
                 .isEmpty();
     }
 
@@ -92,7 +96,7 @@ public void retriesMarksFailureWhenNeverResolves() {
                 .values()
                 .forEach(container -> setHostIds(Set.of(container), HostIdResult.success(Set.of(uuidIterator.next()))));
         assertThat(validator.getNewHostsWithInconsistentTopologiesAndRetry(
-                        allHosts.keySet(), allHosts, Duration.ofMillis(1), Duration.ofMillis(1)))
+                        mapToTokenRangeOrigin(allHosts.keySet()), allHosts, Duration.ofMillis(1), Duration.ofMillis(1)))
                 .isNotEmpty();
         assertThat(metrics.validationFailures().getCount()).isEqualTo(1);
         assertThat(metrics.validationLatency().getCount()).isEqualTo(1);
@@ -103,7 +107,10 @@ public void retriesAndReturnsFailingHosts() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(NEW_HOSTS);
         doReturn(allHosts.keySet()).when(validator).getNewHostsWithInconsistentTopologies(any(), any());
         assertThat(validator.getNewHostsWithInconsistentTopologiesAndRetry(
-                        allHosts.keySet(), setupHosts(NEW_HOSTS), Duration.ofMillis(1), Duration.ofMillis(1)))
+                        mapToTokenRangeOrigin(allHosts.keySet()),
+                        setupHosts(NEW_HOSTS),
+                        Duration.ofMillis(1),
+                        Duration.ofMillis(1)))
                 .containsExactlyInAnyOrderElementsOf(allHosts.keySet());
     }
 
@@ -113,29 +120,32 @@ public void retriesAtLeastTwoTimes() {
         doReturn(allHosts.keySet()).when(validator).getNewHostsWithInconsistentTopologies(any(), any());
         when(validator.getNewHostsWithInconsistentTopologies(any(), any())).thenReturn(allHosts.keySet());
         assertThat(validator.getNewHostsWithInconsistentTopologiesAndRetry(
-                        allHosts.keySet(), setupHosts(NEW_HOSTS), Duration.ofMillis(1), Duration.ofMillis(1)))
+                        mapToTokenRangeOrigin(allHosts.keySet()),
+                        setupHosts(NEW_HOSTS),
+                        Duration.ofMillis(1),
+                        Duration.ofMillis(1)))
                 .isNotEmpty();
         verify(validator, atLeast(2)).getNewHostsWithInconsistentTopologies(any(), any());
     }
 
     @Test
     public void returnsEmptyWhenGivenNoServers() {
-        assertThat(validator.getNewHostsWithInconsistentTopologies(ImmutableSet.of(), ImmutableMap.of()))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(ImmutableMap.of(), ImmutableMap.of()))
                 .isEmpty();
     }
 
     @Test
     public void throwsWhenAllHostsDoesNotContainNewHosts() {
         assertThatThrownBy(() -> validator.getNewHostsWithInconsistentTopologies(
-                        ImmutableSet.of(createCassandraServer("foo")), ImmutableMap.of()))
+                        mapToTokenRangeOrigin(ImmutableSet.of(createCassandraServer("foo"))), ImmutableMap.of()))
                 .isInstanceOf(SafeIllegalArgumentException.class);
     }
 
     @Test
     public void returnsEmptyWhenOnlyNewServersAndAllHaveSameHostIds() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(NEW_HOSTS);
         setHostIds(allHosts.values(), DEFAULT_RESULT);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .isEmpty();
     }
 
@@ -148,7 +158,7 @@ public void returnsNewHostsWhenOnlyNewServersAndOneMismatch() {
         setHostIds(
                 filterContainers(allHosts, NEW_HOST_ONE::equals),
                 HostIdResult.success(ImmutableSet.of("uuid3", "uuid2")));
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .containsExactlyElementsOf(allHosts.keySet());
     }
 
@@ -162,7 +172,7 @@ public void returnsNewHostsWhenNewServersMismatchOldServers() {
         setHostIds(
                 filterContainers(allHosts, OLD_HOSTS::contains),
                 HostIdResult.success(ImmutableSet.of("uuid3", "uuid2")));
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newServers, allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(newServers), allHosts))
                 .containsExactlyElementsOf(newServers);
     }
 
@@ -174,15 +184,15 @@ public void validateNewlyAddedHostsReturnsOnlyMismatchingNewHosts() {
         setHostIds(filterContainers(allHosts, badHostFilter), HostIdResult.success(ImmutableSet.of("uuid3", "uuid2")));
         Set<CassandraServer> newServers = filterServers(allHosts, NEW_HOSTS::contains);
         Set<CassandraServer> badNewHosts = filterServers(allHosts, badHostFilter);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newServers, allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(newServers), allHosts))
                 .containsExactlyElementsOf(badNewHosts);
     }
 
     @Test
     public void validateNewlyAddedHostsAddsAllHostsIfNoHostHasEndpoint() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(NEW_HOSTS);
         setHostIds(allHosts.values(), HostIdResult.softFailure());
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .isEmpty();
     }
 
@@ -193,7 +203,7 @@ public void validateNewlyAddedHostsAddsAllHostsIfOneHostHasEndpoint() {
         setHostIds(
                 filterContainers(allHosts, server -> !hostWithEndpoint.contains(server)), HostIdResult.softFailure());
         setHostIds(filterContainers(allHosts, hostWithEndpoint::contains), DEFAULT_RESULT);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .isEmpty();
     }
 
@@ -205,7 +215,7 @@ public void validateNewlyAddedHostsAddsAllHostsIfEndpointExistingHostIdsMatch()
                 filterContainers(allHosts, server -> !hostsWithEndpoints.contains(server)), HostIdResult.softFailure());
         setHostIds(filterContainers(allHosts, hostsWithEndpoints::contains), DEFAULT_RESULT);
         assertThat(validator.getNewHostsWithInconsistentTopologies(
-                        filterServers(allHosts, NEW_HOSTS::contains), allHosts))
+                        mapToTokenRangeOrigin(filterServers(allHosts, NEW_HOSTS::contains)), allHosts))
                 .isEmpty();
     }
 
@@ -218,28 +228,231 @@ public void validateNewlyAddedHostsReturnsNewHostsUnlessEndpointExistAndDoesMatc
         setHostIds(filterContainers(allHosts, NEW_HOST_ONE::equals), HostIdResult.success(Set.of("uuid")));
         setHostIds(filterContainers(allHosts, OLD_HOST_ONE::equals), DEFAULT_RESULT);
         assertThat(validator.getNewHostsWithInconsistentTopologies(
-                        filterServers(allHosts, NEW_HOSTS::contains), allHosts))
+                        mapToTokenRangeOrigin(filterServers(allHosts, NEW_HOSTS::contains)), allHosts))
                 .containsExactlyElementsOf(filterServers(allHosts, NEW_HOST_ONE::equals));
     }
 
     @Test
-    public void validateNewlyAddedHostsNoNewHostsAddedIfOldHostsDoNotHaveQuorum() {
+    public void validateNewlyAddedHostsNoNewHostsAddedIfOldHostsDoNotHaveQuorumAndNoPreviousResultExists() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
         Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
         Set<String> hostsOffline = ImmutableSet.of(OLD_HOST_ONE, OLD_HOST_TWO);
         setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
         setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newCassandraServers, allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
+                .as("no new hosts added if old hosts do not have quorum")
+                .containsExactlyElementsOf(newCassandraServers);
+    }
+
+    @Test
+    public void validateNewlyAddedHostsNewHostsAddedIfTheyAgreeWithOldHostsOnPreviousTopology() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
+        Set<String> hostsOffline = ImmutableSet.of(OLD_HOST_ONE);
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
+
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
+                .as("accepts quorum from new hosts if they have the same host IDs")
+                .isEmpty();
+    }
+
+    @Test
+    public void
+            validateNewlyAddedHostsNewHostsNotAddedIfTheyDisagreeWithOldHostsOnPreviousTopologyAndCurrentServersExist() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts = EntryStream.of(allHosts)
+                .filterKeys(key -> OLD_HOSTS.contains(key.cassandraHostName()))
+                .toMap();
+        Map<CassandraServer, CassandraClientPoolingContainer> newHosts = EntryStream.of(allHosts)
+                .filterKeys(key -> NEW_HOSTS.contains(key.cassandraHostName()))
+                .toMap();
+        Set<CassandraServer> oldCassandraServers = filterServers(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
+        Set<String> hostsOffline = ImmutableSet.of(OLD_HOST_ONE);
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+
+        setHostIds(filterContainers(newHosts, Predicate.not(hostsOffline::contains)), HostIdResult.success(UUIDS));
+        setHostIds(
+                filterContainers(oldHosts, Predicate.not(hostsOffline::contains)),
+                HostIdResult.success(DIFFERENT_UUIDS));
+
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
+                .as("does not accept quorum from new hosts if they have different host IDs")
                 .containsExactlyElementsOf(newCassandraServers);
     }
 
+    @Test
+    public void returnsAllNewHostsIfNoConsensusOnNewHostsWhenNoQuorumAndCurrentServersExist() {
+        Iterator<String> uuidIterator = UUIDS.iterator();
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        filterContainers(allHosts, server -> !hostsOffline.contains(server))
+                .forEach(container ->
+                        setHostIds(ImmutableSet.of(container), HostIdResult.success(Set.of(uuidIterator.next()))));
+
+        // This is _not_ supposed to be the standard quorum calculation ((n / 2) + 1), but instead the amount of
+        // hosts that need to be offline to _prevent_ quorum
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
+                .as("rejects all servers when no quorum from all hosts and no quorum on new hosts")
+                .containsExactlyInAnyOrderElementsOf(newCassandraServers);
+    }
+
+    @Test
+    public void returnsAllNewHostsIfConsensusOnNewHostsDiffersFromPreviousWhenNoQuorumAndCurrentServersExist() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        setHostIds(
+                filterContainers(allHosts, server -> !hostsOffline.contains(server)),
+                HostIdResult.success(DIFFERENT_UUIDS));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
+                .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
+                .containsExactlyInAnyOrderElementsOf(newCassandraServers);
+    }
+
+    @Test
+    public void validateNewlyAddedHostsAddedIfAgreedWithOldHostsOnPreviousTopologyWhenNoQuorum() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
+                .as("accepts quorum from new hosts if they have the same host IDs as old topology")
+                .isEmpty();
+    }
+
+    @Test
+    public void validateNewlyAddedHostsAddedIfAgreedWithOldTopologyWhenNoQuorumAndNoCurrentServers() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> allCassandraServers = allHosts.keySet();
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        splitHostOriginBetweenLastKnownAndConfig(
+                                oldCassandraServers, Sets.difference(allCassandraServers, oldCassandraServers)),
+                        allHosts))
+                .as("accepts quorum from config hosts if they have the same host IDs as old topology when no current"
+                        + " servers")
+                .containsExactlyInAnyOrderElementsOf(oldCassandraServers);
+    }
+
+    @Test
+    public void returnsAllNewHostsIfNoConsensusOnConfigHostsWhenNoQuorumAndNoCurrentServers() {
+        Iterator<String> uuidIterator = UUIDS.iterator();
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> allCassandraServers = allHosts.keySet();
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        filterContainers(allHosts, server -> !hostsOffline.contains(server))
+                .forEach(container ->
+                        setHostIds(ImmutableSet.of(container), HostIdResult.success(Set.of(uuidIterator.next()))));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        splitHostOriginBetweenLastKnownAndConfig(
+                                oldCassandraServers, Sets.difference(allCassandraServers, oldCassandraServers)),
+                        allHosts))
+                .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
+                .containsExactlyInAnyOrderElementsOf(allCassandraServers);
+    }
+
+    @Test
+    public void returnsAllNewHostsIfConsensusOnConfigHostsDiffersFromPreviousWhenNoQuorumAndNoCurrentServers() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> allCassandraServers = allHosts.keySet();
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        setHostIds(
+                filterContainers(allHosts, server -> !hostsOffline.contains(server)),
+                HostIdResult.success(DIFFERENT_UUIDS));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        splitHostOriginBetweenLastKnownAndConfig(
+                                oldCassandraServers, Sets.difference(allCassandraServers, oldCassandraServers)),
+                        allHosts))
+                .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
+                .containsExactlyInAnyOrderElementsOf(allCassandraServers);
+    }
+
     @Test
     public void validateNewlyAddedHostsNoNewHostsAddedIfNewHostsDoNotHaveQuorumAndNoCurrentServers() {
-        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(NEW_HOSTS);
+        Set<String> hosts = ImmutableSet.<String>builder()
+                .addAll(NEW_HOSTS)
+                .add(OLD_HOST_ONE)
+                .build();
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(hosts);
         Set<String> hostsOffline = ImmutableSet.of(NEW_HOST_ONE, NEW_HOST_TWO);
         setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
         setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .containsExactlyElementsOf(allHosts.keySet());
     }
 
@@ -249,7 +462,7 @@ public void validateNewlyAddedHostsAddsAllNewHostsIfCurrentServersDoNotHaveEndpo
         setHostIds(filterContainers(allHosts, NEW_HOSTS::contains), HostIdResult.success(UUIDS));
         setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.softFailure());
         assertThat(validator.getNewHostsWithInconsistentTopologies(
-                        filterServers(allHosts, NEW_HOSTS::contains), allHosts))
+                        mapToTokenRangeOrigin(filterServers(allHosts, NEW_HOSTS::contains)), allHosts))
                 .isEmpty();
     }
 
@@ -289,12 +502,16 @@ public Set<CassandraClientPoolingContainer> filterContainers(
                 .toSet();
     }
 
-    public Set<CassandraServer> filterServers(
+    public Map<CassandraServer, CassandraClientPoolingContainer> filterServerToContainerMap(
             Map<CassandraServer, CassandraClientPoolingContainer> hosts, Predicate<String> filter) {
         return EntryStream.of(hosts)
                 .filterKeys(cassandraServer -> filter.test(cassandraServer.cassandraHostName()))
-                .keys()
-                .toSet();
+                .toMap();
+    }
+
+    public Set<CassandraServer> filterServers(
+            Map<CassandraServer, CassandraClientPoolingContainer> hosts, Predicate<String> filter) {
+        return filterServerToContainerMap(hosts, filter).keySet();
     }
 
     private static CassandraServer createCassandraServer(String hostname) {
@@ -318,4 +535,16 @@ private static Map<CassandraServer, CassandraClientPoolingContainer> setupHosts(
                 .mapToEntry(server -> mock(CassandraClientPoolingContainer.class))
                 .toMap();
     }
+
+    private static Map<CassandraServer, CassandraServerOrigin> splitHostOriginBetweenLastKnownAndConfig(
+            Set<CassandraServer> lastKnownHosts, Set<CassandraServer> configHosts) {
+        return ImmutableMap.<CassandraServer, CassandraServerOrigin>builder()
+                .putAll(CassandraServerOrigin.mapAllServersToOrigin(lastKnownHosts, CassandraServerOrigin.LAST_KNOWN))
+                .putAll(CassandraServerOrigin.mapAllServersToOrigin(configHosts, CassandraServerOrigin.CONFIG))
+                .buildOrThrow();
+    }
+
+    private static Map<CassandraServer, CassandraServerOrigin> mapToTokenRangeOrigin(Set<CassandraServer> servers) {
+        return CassandraServerOrigin.mapAllServersToOrigin(servers, CassandraServerOrigin.TOKEN_RANGE);
+    }
 }u}(jt  (ea93d4225293149bfc275c742ea245b6b263274fj  fatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraServiceTest.javaj  modifiedj  K
j  K j  K
j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -269,6 +269,16 @@ public void getRandomHostByActiveConnectionsReturnsDesiredHost() {
         }
     }
 
+    @Test
+    public void ports() throws Exception {
+        assertThat(CassandraService.only(IntStream.of(1, 1, 1))).isEqualTo(1);
+        assertThat(CassandraService.only(IntStream.generate(() -> 4224).limit(15)))
+                .isEqualTo(4224);
+        assertThatThrownBy(() -> CassandraService.only(IntStream.of(1, 2, 1)))
+                .isInstanceOf(UnknownHostException.class)
+                .hasMessageContaining("No single known port");
+    }
+
     private Set<CassandraServer> getRecommendedHostsFromAThousandTrials(
             CassandraService cassandra, Set<CassandraServer> hosts) {
         return IntStream.range(0, 1_000)u}(jt  (53509f2b6df2a34a1c1eb9aff6769f11f64e0441j  7atlasdb-cli-distribution/baseline-class-uniqueness.lockj  removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cli-distribution%2Fbaseline-class-uniqueness.lockj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cli-distribution%2Fbaseline-class-uniqueness.lockj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cli-distribution%2Fbaseline-class-uniqueness.lock?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  XB  @@ -1,11 +0,0 @@
-# Danger! Multiple jars contain identically named classes. This may cause different behaviour depending on classpath ordering.
-# Run ./gradlew checkClassUniqueness --write-locks to update this file
-
-## runtimeClasspath
-[commons-logging:commons-logging, org.slf4j:jcl-over-slf4j]
-  - org.apache.commons.logging.Log
-  - org.apache.commons.logging.LogConfigurationException
-  - org.apache.commons.logging.LogFactory
-  - org.apache.commons.logging.impl.NoOpLog
-  - org.apache.commons.logging.impl.SimpleLog
-  - org.apache.commons.logging.impl.SimpleLog$1u}(jt  (53509f2b6df2a34a1c1eb9aff6769f11f64e0441j  *atlasdb-cli/baseline-class-uniqueness.lockj  removedj  K j  Kj  Kj  ~https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cli%2Fbaseline-class-uniqueness.lockj  }https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-cli%2Fbaseline-class-uniqueness.lockj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cli%2Fbaseline-class-uniqueness.lock?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  XB  @@ -1,11 +0,0 @@
-# Danger! Multiple jars contain identically named classes. This may cause different behaviour depending on classpath ordering.
-# Run ./gradlew checkClassUniqueness --write-locks to update this file
-
-## runtimeClasspath
-[commons-logging:commons-logging, org.slf4j:jcl-over-slf4j]
-  - org.apache.commons.logging.Log
-  - org.apache.commons.logging.LogConfigurationException
-  - org.apache.commons.logging.LogFactory
-  - org.apache.commons.logging.impl.NoOpLog
-  - org.apache.commons.logging.impl.SimpleLog
-  - org.apache.commons.logging.impl.SimpleLog$1u}(jt  (5504ea3d7692e9bd5feb8a902db77c14b223e48fj  atlasdb-cli/build.gradlej  modifiedj  Kj  K j  Kj  lhttps://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cli%2Fbuild.gradlej  khttps://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cli%2Fbuild.gradlej  ~https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cli%2Fbuild.gradle?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -8,6 +8,7 @@ dependencies {
     api project(':atlasdb-client')
     api project(':atlasdb-config')
     api project(':timestamp-api')
+    testImplementation project(path: ':flake-rule')
 
     compileOnly 'com.google.dagger:dagger'
     implementation 'io.airlift:airline'u}(jt  (697bebce05ea5400b3ed453d3cb76e4e2ffc631ej  Tatlasdb-cli/src/test/java/com/palantir/atlasdb/cli/command/TestTimestampCommand.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XO
  @@ -37,6 +37,8 @@
 import com.palantir.atlasdb.services.test.DaggerTestAtlasDbServices;
 import com.palantir.atlasdb.services.test.TestAtlasDbServices;
 import com.palantir.common.time.Clock;
+import com.palantir.flake.FlakeRetryingRule;
+import com.palantir.flake.ShouldRetry;
 import com.palantir.lock.LockClient;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;
@@ -60,6 +62,7 @@
 import org.junit.After;
 import org.junit.Before;
 import org.junit.BeforeClass;
+import org.junit.Rule;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
@@ -71,6 +74,9 @@ public class TestTimestampCommand {
     private static AtlasDbServicesFactory moduleFactory;
     private static List<String> cliArgs;
 
+    @Rule
+    public FlakeRetryingRule flakeRetryingRule = new FlakeRetryingRule();
+
     @BeforeClass
     public static void oneTimeSetup() throws Exception {
         lock = StringLockDescriptor.of("lock");
@@ -181,6 +187,7 @@ public void testWithFile() throws Exception {
         runAndVerifyCliForFile(inputFileString);
     }
 
+    @ShouldRetry
     @Test
     public void testWithFileWithDir() throws Exception {
         String inputFileString = "existing-dir/test.timestamp";
@@ -277,19 +284,28 @@ private void punch(TestAtlasDbServices services, TimestampService tss, Clock clo
     }
 
     private long getWallClockTimestamp(Scanner scanner) {
-        String line = scanner.findInLine(".*Wall\\sclock\\sdatetime.*\\s(\\d+.*)");
+        String line = findFirstLineMatching(scanner, ".*Wall\\sclock\\sdatetime.*\\s(\\d+.*)");
         List<String> parts = Splitter.on(' ').splitToList(line);
         return ISODateTimeFormat.dateTime()
                 .parseDateTime(parts.get(parts.size() - 1))
                 .getMillis();
     }
 
     private long getTimestampFromStdout(Scanner scanner) {
-        String line = scanner.findInLine(".*timestamp\\sis\\:\\s(\\d+.*)");
+        String line = findFirstLineMatching(scanner, ".*timestamp\\sis\\:\\s(\\d+.*)");
         List<String> parts = Splitter.on(' ').splitToList(line);
         return Long.parseLong(parts.get(parts.size() - 1));
     }
 
+    private static String findFirstLineMatching(Scanner scanner, String pattern) {
+        String line = scanner.findInLine(pattern);
+        while (line == null) {
+            scanner.nextLine();
+            line = scanner.findInLine(pattern);
+        }
+        return line;
+    }
+
     private long getTimestampFromFile(String fileString) throws IOException {
         File file = new File(fileString);
         assertThat(file).exists();u}(jt  (605212243716ab96bbbde3a8b0fd9ec3aa421b48j  \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/AbstractKeyValueService.javaj  modifiedj  Kj  K
j  K j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -15,11 +15,14 @@
  */
 package com.palantir.atlasdb.keyvalue.impl;
 
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.collect.HashMultimap;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.Maps;
 import com.google.common.collect.Multimap;
+import com.google.common.primitives.Ints;
 import com.google.common.util.concurrent.Futures;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.AtlasDbPerformanceConstants;
@@ -48,6 +51,12 @@
 
 @SuppressFBWarnings("SLF4J_ILLEGAL_PASSED_CLASS")
 public abstract class AbstractKeyValueService implements KeyValueService {
+
+    private static final LoadingCache<TableReference, String> internalTableNames = Caffeine.newBuilder()
+            .weigher((TableReference key, String value) -> Ints.saturatedCast(key.sizeInBytes() + value.length()))
+            .maximumWeight(1_000_000)
+            .build(AbstractKeyValueService::computeInternalTableName);
+
     protected ExecutorService executor;
 
     /**
@@ -61,38 +70,37 @@ public AbstractKeyValueService(ExecutorService executor) {
     /**
      * Creates a fixed thread pool.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param corePoolSize size of the core pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createFixedThreadPool(String threadNamePrefix, int corePoolSize) {
-        return createThreadPool(threadNamePrefix, corePoolSize, corePoolSize);
+    protected static ExecutorService createFixedThreadPool(String name, int corePoolSize) {
+        return createThreadPool(name, corePoolSize, corePoolSize);
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPool(String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPool(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPool(String name, int _corePoolSize, int maxPoolSize) {
+        return PTExecutors.newFixedThreadPool(maxPoolSize, name);
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      * It does not create a span.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPoolWihtoutSpans(
-            String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPoolWithoutSpans(String name, int _corePoolSize, int maxPoolSize) {
+        return PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, name);
     }
 
     @Override
@@ -195,6 +203,10 @@ public void truncateTables(final Set<TableReference> tableRefs) {
     }
 
     public static String internalTableName(TableReference tableRef) {
+        return internalTableNames.get(tableRef);
+    }
+
+    private static String computeInternalTableName(TableReference tableRef) {
         String tableName = tableRef.getQualifiedName();
         if (tableName.startsWith("_")) {
             return tableName;u}(jt  (71ce22bd41d1b143a3a5f8a99cd5022f60d67d57j  Qatlasdb-client/src/main/java/com/palantir/atlasdb/schema/TargetedSweepTables.javaj  modifiedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTargetedSweepTables.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTargetedSweepTables.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTargetedSweepTables.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -16,25 +16,8 @@
 
 package com.palantir.atlasdb.schema;
 
-import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.keyvalue.api.Namespace;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
-import com.palantir.atlasdb.schema.generated.TargetedSweepTableFactory;
 
 public class TargetedSweepTables {
     static final Namespace NAMESPACE = Namespace.create("sweep");
-
-    private static final TargetedSweepTableFactory TABLE_FACTORY = TargetedSweepTableFactory.of();
-
-    private static final TableReference SWEEP_PROGRESS_PER_SHARD_TABLE =
-            TABLE_FACTORY.getSweepShardProgressTable(null).getTableRef();
-    private static final TableReference SWEEP_ID_TO_NAME_TABLE =
-            TABLE_FACTORY.getSweepIdToNameTable(null).getTableRef();
-    private static final TableReference SWEEP_NAME_TO_ID_TABLE =
-            TABLE_FACTORY.getSweepNameToIdTable(null).getTableRef();
-    private static final TableReference TABLE_CLEARS_TABLE =
-            TABLE_FACTORY.getTableClearsTable(null).getTableRef();
-
-    public static final ImmutableSet<TableReference> REPAIR_ON_RESTORE = ImmutableSet.of(
-            SWEEP_PROGRESS_PER_SHARD_TABLE, SWEEP_ID_TO_NAME_TABLE, SWEEP_NAME_TO_ID_TABLE, TABLE_CLEARS_TABLE);
 }u}(jt  (37f614609e9364110222b476f105aa43bbb7f628j  batlasdb-client/src/main/java/com/palantir/atlasdb/table/description/ColumnMetadataDescription.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38      j  X  @@ -22,11 +22,15 @@
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Set;
+import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 
 @Immutable
 public class ColumnMetadataDescription {
+    @Nullable
     final ImmutableSet<NamedColumnDescription> namedColumns;
+
+    @Nullable
     final DynamicColumnDescription dynamicColumn;
 
     public ColumnMetadataDescription() {
@@ -44,10 +48,12 @@ public ColumnMetadataDescription(DynamicColumnDescription dynamicColumn) {
         this.dynamicColumn = dynamicColumn;
     }
 
+    @Nullable
     public Set<NamedColumnDescription> getNamedColumns() {
         return namedColumns;
     }
 
+    @Nullable
     public DynamicColumnDescription getDynamicColumn() {
         return dynamicColumn;
     }u}(jt  (17e6e0aeb1b64c151980df0c777b470289e11f67j  batlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractTransactionManager.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionManager.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionManager.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionManager.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X&  @@ -81,6 +81,7 @@ protected final <T, E extends Exception> T runTaskThrowOnConflictWithCallback(
             }
         } finally {
             callback.run();
+            txn.reportExpectationsCollectedData();
             txn.runSuccessCallbacksIfDefinitivelyCommitted();
         }
     }u}(jt  (312e2352c1ff098b40a0bde4a89d1d06d92a2267j  `atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CallbackAwareTransaction.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCallbackAwareTransaction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCallbackAwareTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCallbackAwareTransaction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X,  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.PreCommitCondition;
-import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionFailedException;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 
@@ -26,7 +25,7 @@
  * are run. This can be used to e.g run {@link PreCommitCondition#cleanup()} <i>before</i> the onSuccess callbacks
  * are run.
  */
-public interface CallbackAwareTransaction extends Transaction {
+public interface CallbackAwareTransaction extends ExpectationsAwareTransaction {
     void commitWithoutCallbacks() throws TransactionFailedException;
 
     void commitWithoutCallbacks(TransactionService transactionService) throws TransactionFailedException;u}(jt  (7e87069870a53942641d65bb9f40d143a983e452j  datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ExpectationsAwareTransaction.javaj  renamedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XU  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,15 +14,15 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.transaction.api.expectations;
+package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 /**
  * Implementors of this interface provide methods useful for tracking transactional expectations and whether
  * they were breached as well as relevant metrics and alerts. Transactional expectations represent transaction-level
  * limits and rules for proper usage of AtlasDB transactions (e.g. reading too much data overall).
- * Todo(aalouane): move this out of API once part 4 is merged
  */
 public interface ExpectationsAwareTransaction extends Transaction {
     long getAgeMillis();j  matlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/ExpectationsAwareTransaction.javau}(jt  (71c4c8f8ff1bba49188c7bece8ec3b1fdebf6e66j  jatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingCallbackAwareTransaction.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingCallbackAwareTransaction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingCallbackAwareTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingCallbackAwareTransaction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -19,7 +19,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionFailedException;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 
-public abstract class ForwardingCallbackAwareTransaction extends ForwardingTransaction
+public abstract class ForwardingCallbackAwareTransaction extends ForwardingExpectationsAwareTransaction
         implements CallbackAwareTransaction {
 
     @Overrideu}(jt  (b0f9e2b48803d8c98708f77f72b9c6d498e1be5aj  natlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingExpectationsAwareTransaction.javaj  addedj  K)j  K j  K)j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X[  @@ -0,0 +1,41 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+
+public abstract class ForwardingExpectationsAwareTransaction extends ForwardingTransaction
+        implements ExpectationsAwareTransaction {
+
+    @Override
+    public abstract ExpectationsAwareTransaction delegate();
+
+    @Override
+    public long getAgeMillis() {
+        return delegate().getAgeMillis();
+    }
+
+    @Override
+    public TransactionReadInfo getReadInfo() {
+        return delegate().getReadInfo();
+    }
+
+    @Override
+    public void reportExpectationsCollectedData() {
+        delegate().reportExpectationsCollectedData();
+    }
+}u}(jt  (5f795e54adce9a66821695cbd1b7903855070846j  \atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/TransactionConstants.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X	  @@ -24,7 +24,8 @@
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.table.description.ValueType;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
 
 public final class TransactionConstants {
     private TransactionConstants() {
@@ -44,13 +45,10 @@ private TransactionConstants() {
     public static final byte[] DIRECT_ENCODING_ABORTED_TRANSACTION_VALUE = getValueForTimestamp(FAILED_COMMIT_TS);
     public static final byte[] TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE = PtBytes.EMPTY_BYTE_ARRAY;
 
-    public static final TransactionStatus ABORTED = TransactionStatuses.aborted();
-    public static final TransactionStatus IN_PROGRESS = TransactionStatuses.inProgress();
-    public static final TransactionStatus UNKNOWN = TransactionStatuses.unknown();
     public static final byte[] TTS_IN_PROGRESS_MARKER = getTtsInProgressMarker();
     public static final long LOWEST_POSSIBLE_START_TS = 1L;
     public static long PRE_START_COMMITTED_TS = TransactionConstants.LOWEST_POSSIBLE_START_TS - 1;
-    public static final TransactionStatus PRE_START_COMMITTED = TransactionStatuses.committed(PRE_START_COMMITTED_TS);
+    public static final TransactionStatus PRE_START_COMMITTED = TransactionStatus.committed(PRE_START_COMMITTED_TS);
 
     public static final long WARN_LEVEL_FOR_QUEUED_BYTES = 10 * 1024 * 1024;
 
@@ -101,4 +99,15 @@ public static long getTimestampForValue(byte[] encodedTimestamp) {
             .explicitCompressionBlockSizeKB(64)
             .denselyAccessedWideRows(true)
             .build();
+
+    static {
+        Preconditions.checkState(
+                !SUPPORTED_TRANSACTIONS_SCHEMA_VERSIONS.contains(TTS_TRANSACTIONS_SCHEMA_VERSION),
+                "Supporting Transactions Table Sweep WILL require changes to internal backup and restore workflows;"
+                    + " failure to do so may only be discoverable at restore time in some implementations. This check"
+                    + " MUST NOT be removed without knowledge that suitable changes have been made to these"
+                    + " workflows.",
+                SafeArg.of("supportedTransactionsSchemaVersions", SUPPORTED_TRANSACTIONS_SCHEMA_VERSIONS),
+                SafeArg.of("transactionsTableSweepSchemaVersion", TTS_TRANSACTIONS_SCHEMA_VERSION));
+    }
 }u}(jt  (d6ee97d6e0da719997ae5b3ffa7c377ce74a2186j  ^atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/TransactionStatusUtils.javaj  modifiedj  Kj  Kj  K*j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionStatusUtils.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionStatusUtils.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionStatusUtils.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -18,51 +18,61 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Aborted;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.Optional;
 import java.util.function.Function;
 
 public final class TransactionStatusUtils {
+
     private TransactionStatusUtils() {}
 
     public static TransactionStatus fromTimestamp(long timestamp) {
         if (timestamp == TransactionConstants.FAILED_COMMIT_TS) {
-            return TransactionConstants.ABORTED;
+            return TransactionStatus.aborted();
         }
-        return TransactionStatuses.committed(timestamp);
+        return TransactionStatus.committed(timestamp);
     }
 
     /**
      * This helper is only meant to be used for transactions with schema < 4. For schemas >= 4,
      * use {@link #getCommitTsFromStatus(long, TransactionStatus, Function)}
      * */
     public static long getCommitTimestampIfKnown(TransactionStatus status) {
-        return TransactionStatuses.caseOf(status)
-                .committed(Function.identity())
-                .aborted_(TransactionConstants.FAILED_COMMIT_TS)
-                .otherwise(() -> {
-                    throw new SafeIllegalStateException("Illegal transaction status", SafeArg.of("status", status));
-                });
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return committed.commitTimestamp();
+        } else if (status instanceof Aborted) {
+            return TransactionConstants.FAILED_COMMIT_TS;
+        } else {
+            throw new SafeIllegalStateException("Illegal transaction status", SafeArg.of("status", status));
+        }
     }
 
     /**
      * This helper is only meant to be used for transactions with schema < 4. For schemas >= 4,
      * use {@link #getCommitTsFromStatus(long, TransactionStatus, Function)}
      * */
     public static Optional<Long> maybeGetCommitTs(TransactionStatus status) {
-        return TransactionStatuses.caseOf(status)
-                .committed(Function.identity())
-                .aborted_(TransactionConstants.FAILED_COMMIT_TS)
-                .otherwiseEmpty();
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return Optional.of(committed.commitTimestamp());
+        } else if (status instanceof Aborted) {
+            return Optional.of(TransactionConstants.FAILED_COMMIT_TS);
+        } else {
+            return Optional.empty();
+        }
     }
 
     public static Long getCommitTsFromStatus(
             long startTs, TransactionStatus status, Function<Long, Boolean> abortedCheck) {
-        return TransactionStatuses.caseOf(status)
-                .unknown(() -> getCommitTsForConcludedTransaction(startTs, abortedCheck))
-                .otherwise(() -> TransactionStatusUtils.maybeGetCommitTs(status).orElse(null));
+        if (status instanceof TransactionStatus.Unknown) {
+            return getCommitTsForConcludedTransaction(startTs, abortedCheck);
+        } else {
+            return TransactionStatusUtils.maybeGetCommitTs(status).orElse(null);
+        }
     }
 
     public static long getCommitTsForConcludedTransaction(long startTs, Function<Long, Boolean> isAborted) {u}(jt  (9d044df74236c4c9d816af8fa5c9cb665a9b755dj  Natlasdb-client/src/test/java/com/palantir/atlasdb/util/MetricsManagerTest.javaj  modifiedj  K	j  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMetricsManagerTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMetricsManagerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMetricsManagerTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  Xl  @@ -23,6 +23,7 @@
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
+import com.palantir.tritium.metrics.registry.MetricName;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import java.util.Map;
 import org.junit.After;
@@ -43,7 +44,7 @@ public class MetricsManagerTest {
     private static final Gauge<Long> GAUGE = () -> 1L;
 
     private final MetricRegistry registry = new MetricRegistry();
-    private final TaggedMetricRegistry taggedMetricRegistry = DefaultTaggedMetricRegistry.getDefault();
+    private final TaggedMetricRegistry taggedMetricRegistry = new DefaultTaggedMetricRegistry();
     private final MetricsManager metricsManager =
             new MetricsManager(registry, taggedMetricRegistry, tableReference -> tableReference
                     .getTableName()
@@ -53,14 +54,15 @@ public class MetricsManagerTest {
     public void registersMetricsByName() {
         metricsManager.registerMetric(INTEGER_CLASS, ERROR_OOM, GAUGE);
 
-        assertThat(registry.getNames()).containsExactly(MetricRegistry.name(INTEGER_CLASS, ERROR_OOM));
+        assertThat(taggedMetricRegistry.getMetrics().keySet().stream().map(MetricName::safeName))
+                .containsExactly(MetricRegistry.name(INTEGER_CLASS, ERROR_OOM));
     }
 
     @Test
     public void registersMeters() {
         metricsManager.registerOrGetMeter(INTEGER_CLASS, RUNTIME, METER_NAME);
 
-        assertThat(registry.getMeters().keySet())
+        assertThat(taggedMetricRegistry.getMetrics().keySet().stream().map(MetricName::safeName))
                 .containsExactly(MetricRegistry.name(INTEGER_CLASS, RUNTIME, METER_NAME));
     }
 
@@ -69,7 +71,7 @@ public void registersSameMetricNameAcrossClasses() {
         metricsManager.registerMetric(INTEGER_CLASS, ERROR_OUT_OF_BOUNDS, GAUGE);
         metricsManager.registerMetric(BOOLEAN_CLASS, ERROR_OUT_OF_BOUNDS, GAUGE);
 
-        assertThat(registry.getNames())
+        assertThat(taggedMetricRegistry.getMetrics().keySet().stream().map(MetricName::safeName))
                 .containsExactlyInAnyOrder(
                         MetricRegistry.name(INTEGER_CLASS, ERROR_OUT_OF_BOUNDS),
                         MetricRegistry.name(BOOLEAN_CLASS, ERROR_OUT_OF_BOUNDS));
@@ -79,7 +81,8 @@ public void registersSameMetricNameAcrossClasses() {
     public void registerOrGetMeterMeterRegistersTheFullyQualifiedClassNameMetric() {
         metricsManager.registerOrGetMeter(INTEGER_CLASS, ERROR_OUT_OF_BOUNDS);
 
-        assertThat(registry.getNames()).containsExactly("java.lang.Integer.error.outofbounds");
+        assertThat(taggedMetricRegistry.getMetrics().keySet().stream().map(MetricName::safeName))
+                .containsExactly("java.lang.Integer.error.outofbounds");
     }
 
     @Test
@@ -105,5 +108,6 @@ private static TableReference table(String tableName) {
     @After
     public void tearDown() {
         registry.removeMatching(MetricFilter.ALL);
+        taggedMetricRegistry.getMetrics().keySet().forEach(taggedMetricRegistry::remove);
     }
 }u}(jt  (0d2d4ad98a55ca825efe3a6a9aaedd1b0acd5728j  Ratlasdb-commons/src/main/java/com/palantir/async/initializer/AsyncInitializer.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -60,17 +60,28 @@ public final void initialize(boolean initializeAsync) {
 
     private void tryInitializationLoop() {
         if (state.isCancelled()) {
+            log.info(
+                    "Shutting down executor associated with asynchronous initialisation, as it was cancelled",
+                    SafeArg.of("className", getInitializingClassName()),
+                    SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
+                    SafeArg.of("durationBeforeCancellation", getMillisecondsSinceInitialization()));
             singleThreadedExecutor.shutdown();
             return;
         }
 
         try {
+            log.info(
+                    "Attempting to initialize {} on the attempt {}. The amount of time elapsed since we began was {}"
+                            + " milliseconds.",
+                    SafeArg.of("className", getInitializingClassName()),
+                    SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
+                    SafeArg.of("initializationDuration", getMillisecondsSinceInitialization()));
             tryInitializeInternal();
             log.info(
                     "Initialized {} on the attempt {} in {} milliseconds",
                     SafeArg.of("className", getInitializingClassName()),
                     SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
-                    SafeArg.of("initializationDuration", System.currentTimeMillis() - initializationStartTime));
+                    SafeArg.of("initializationDuration", getMillisecondsSinceInitialization()));
         } catch (Throwable throwable) {
             log.info(
                     "Failed to initialize {} on the attempt {}",
@@ -84,19 +95,23 @@ private void tryInitializationLoop() {
                         "Failed to cleanup when initialization of {} failed on attempt {} with {} milliseconds",
                         SafeArg.of("className", getInitializingClassName()),
                         SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
-                        SafeArg.of("initializationDuration", System.currentTimeMillis() - initializationStartTime),
+                        SafeArg.of("initializationDuration", getMillisecondsSinceInitialization()),
                         cleanupThrowable);
             }
             scheduleInitialization(sleepInterval());
         }
     }
 
+    private long getMillisecondsSinceInitialization() {
+        return System.currentTimeMillis() - initializationStartTime;
+    }
+
     // Not final for tests.
     void scheduleInitialization(Duration delay) {
         singleThreadedExecutor.schedule(this::tryInitializationLoop, delay.toMillis(), TimeUnit.MILLISECONDS);
     }
 
-    // Not final for tests
+    // Not final for tests.
     ScheduledExecutorService createExecutorService() {
         return PTExecutors.newSingleThreadScheduledExecutor(
                 new NamedThreadFactory("AsyncInitializer-" + getInitializingClassName(), true));u}(jt  (d71d03e7a346d7bb33df410db6f61542b4012ee4j  Matlasdb-commons/src/main/java/com/palantir/common/base/ClosableIterators.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fbase%2FClosableIterators.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fbase%2FClosableIterators.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fbase%2FClosableIterators.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -34,7 +34,7 @@ public static <T> ClosableIterator<T> wrap(final Iterator<? extends T> it) {
     }
 
     public static <T> ClosableIterator<T> wrapWithEmptyClose(final Iterator<? extends T> it) {
-        return new EmptyClose<T>() {
+        return new EmptyClose<>() {
             @Override
             public boolean hasNext() {
                 return it.hasNext();
@@ -72,7 +72,7 @@ public static <T> ClosableIterator<T> emptyImmutableClosableIterator() {
      * method fails.
      */
     public static <T> ClosableIterator<T> appendOnClose(ClosableIterator<T> closableIterator, final Closeable onClose) {
-        return new ClosableIterator<T>() {
+        return new ClosableIterator<>() {
             @Override
             public boolean hasNext() {
                 return closableIterator.hasNext();
@@ -90,21 +90,17 @@ public void remove() {
 
             @Override
             public void close() {
-                try {
+                try (onClose) {
                     closableIterator.close();
-                } finally {
-                    try {
-                        onClose.close();
-                    } catch (IOException e) {
-                        Throwables.throwUncheckedException(e);
-                    }
+                } catch (IOException e) {
+                    throw Throwables.throwUncheckedException(e);
                 }
             }
         };
     }
 
     public static <T> ClosableIterator<T> wrap(final Iterator<? extends T> it, final Closeable closable) {
-        return new ClosableIterator<T>() {
+        return new ClosableIterator<>() {
 
             @Override
             public boolean hasNext() {
@@ -126,7 +122,7 @@ public void close() {
                 try {
                     closable.close();
                 } catch (IOException e) {
-                    Throwables.throwUncheckedException(e);
+                    throw Throwables.throwUncheckedException(e);
                 }
             }
         };u}(jt  (3f12cc30de4b2565eb5b519d76b28f4a643de42cj  Qatlasdb-commons/src/main/java/com/palantir/exception/NotInitializedException.javaj  modifiedj  Kj  Kj  K$j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -16,18 +16,40 @@
 package com.palantir.exception;
 
 import com.palantir.common.exception.AtlasDbDependencyException;
+import com.palantir.logsafe.Arg;
+import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.SafeLoggable;
+import java.util.List;
 
-public class NotInitializedException extends AtlasDbDependencyException {
-    public NotInitializedException(String objectNotInitialized) {
-        super(exceptionMessage(objectNotInitialized));
+public class NotInitializedException extends AtlasDbDependencyException implements SafeLoggable {
+
+    private static final String MESSAGE =
+            "The object is not yet initialized, and as a result, all calls to it will fail. Interactions with this"
+                    + " object should not take place until after initialization has completed. For example, if your"
+                    + " service that handles REST requests relies on this object, it should not service REST requests"
+                    + " until initialization has completed, as otherwise all calls are guaranteed to fail. It is"
+                    + " expected that initialization of some object types do take some time.";
+    private final String objectNotInitialized;
+
+    public NotInitializedException(@Safe String objectNotInitialized) {
+        super(MESSAGE);
+        this.objectNotInitialized = objectNotInitialized;
+    }
+
+    public NotInitializedException(@Safe String objectNotInitialized, Throwable throwable) {
+        super(MESSAGE, throwable);
+        this.objectNotInitialized = objectNotInitialized;
     }
 
-    public NotInitializedException(String objectNotInitialized, Throwable throwable) {
-        super(exceptionMessage(objectNotInitialized), throwable);
+    @Override
+    @Safe
+    public String getLogMessage() {
+        return MESSAGE;
     }
 
-    private static String exceptionMessage(String objectNotInitialized) {
-        return String.format("The %s is not initialized yet", SafeArg.of("objectName", objectNotInitialized));
+    @Override
+    public List<Arg<?>> getArgs() {
+        return List.of(SafeArg.of("objectName", objectNotInitialized));
     }
 }u}(jt  (63285014148e1955618c0b9c9c8fa5df70e05e2aj  Ratlasdb-commons/src/test/java/com/palantir/common/base/BatchingVisitablesTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fbase%2FBatchingVisitablesTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fbase%2FBatchingVisitablesTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fbase%2FBatchingVisitablesTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -41,12 +41,13 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.mockito.Mock;
+import org.mockito.MockMakers;
 import org.mockito.junit.MockitoJUnitRunner;
 
 @RunWith(MockitoJUnitRunner.class)
 @SuppressWarnings("Guava") // BatchingVisitables uses Guava.
 public class BatchingVisitablesTest {
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private AbstractBatchingVisitable<Void> bv;
 
     @Testu}(jt  (dfa91458329ff1875fb4ec6215218af5871f6e1fj  Uatlasdb-commons/src/test/java/com/palantir/exception/NotInitializedExceptionTest.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedExceptionTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedExceptionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedExceptionTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,31 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.exception;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import org.junit.Test;
+
+public final class NotInitializedExceptionTest {
+    @Test
+    public void getArgsHasObjectNameAsSafe() {
+        String objectName = "foo";
+        NotInitializedException exception = new NotInitializedException(objectName);
+        assertThat(exception.getArgs()).containsExactly(SafeArg.of("objectName", objectName));
+    }
+}u}(jt  (c178ffcb42eb70e08392eae222ce570664767ec3j  gatlasdb-config/src/main/java/com/palantir/atlasdb/backup/DialogueAdaptingTimeLockManagementService.javaj  removedj  K j  KFj  KFj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingTimeLockManagementService.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingTimeLockManagementService.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingTimeLockManagementService.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X  @@ -1,70 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.timelock.api.DisableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementService;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementServiceBlocking;
-import com.palantir.tokens.auth.AuthHeader;
-import java.util.Set;
-import java.util.UUID;
-
-public class DialogueAdaptingTimeLockManagementService implements TimeLockManagementService {
-    private final TimeLockManagementServiceBlocking dialogueDelegate;
-
-    public DialogueAdaptingTimeLockManagementService(TimeLockManagementServiceBlocking dialogueDelegate) {
-        this.dialogueDelegate = dialogueDelegate;
-    }
-
-    @Override
-    public Set<String> getNamespaces(AuthHeader authHeader) {
-        return dialogueDelegate.getNamespaces(authHeader);
-    }
-
-    @Override
-    public void achieveConsensus(AuthHeader authHeader, Set<String> namespaces) {
-        dialogueDelegate.achieveConsensus(authHeader, namespaces);
-    }
-
-    @Override
-    public void invalidateResources(AuthHeader authHeader, Set<String> namespaces) {
-        dialogueDelegate.invalidateResources(authHeader, namespaces);
-    }
-
-    @Override
-    public DisableNamespacesResponse disableTimelock(AuthHeader authHeader, DisableNamespacesRequest request) {
-        return dialogueDelegate.disableTimelock(authHeader, request);
-    }
-
-    @Override
-    public ReenableNamespacesResponse reenableTimelock(AuthHeader authHeader, ReenableNamespacesRequest request) {
-        return dialogueDelegate.reenableTimelock(authHeader, request);
-    }
-
-    @Override
-    public UUID getServerLifecycleId(AuthHeader authHeader) {
-        return dialogueDelegate.getServerLifecycleId(authHeader);
-    }
-
-    @Override
-    public UUID forceKillTimeLockServer(AuthHeader authHeader) {
-        return dialogueDelegate.forceKillTimeLockServer(authHeader);
-    }
-}u}(jt  (64d654a533a64757ec6801d0c9bbd1a9a91616bbj  Oatlasdb-config/src/main/java/com/palantir/atlasdb/config/ServerListConfigs.javaj  modifiedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FServerListConfigs.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FServerListConfigs.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FServerListConfigs.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -26,13 +26,6 @@ private ServerListConfigs() {
         // utilities
     }
 
-    public static Refreshable<ServerListConfig> getTimeLockServersFromAtlasDbConfig(
-            AtlasDbConfig config, Optional<AtlasDbRuntimeConfig> atlasDbRuntimeConfig) {
-        Refreshable<Optional<TimeLockRuntimeConfig>> timelockRuntimeConfig =
-                Refreshable.only(atlasDbRuntimeConfig.flatMap(AtlasDbRuntimeConfig::timelockRuntime));
-        return getServerListConfigSupplierForTimeLock(config, timelockRuntimeConfig);
-    }
-
     public static Refreshable<ServerListConfig> getTimeLockServersFromAtlasDbConfig(
             AtlasDbConfig config, Refreshable<AtlasDbRuntimeConfig> runtimeConfigSupplier) {
         Refreshable<Optional<TimeLockRuntimeConfig>> timelockRuntimeConfig =u}(jt  (1f8d140f2fcd68b79edcbd2a6f52017316caa266j  ^atlasdb-config/src/main/java/com/palantir/atlasdb/config/ShouldRunBackgroundSweepSupplier.javaj  removedj  K j  K*j  K*j  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X  @@ -1,42 +0,0 @@
-/*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.config;
-
-import java.util.function.BooleanSupplier;
-import java.util.function.Supplier;
-
-/**
- * Synthesises provided install and runtime configurations, and uses this to decide whether the background sweeper
- * should run. Specifically:
- *
- * <ul>
- *     <li>if the background sweeper has been explicitly enabled or disabled, use that setting;</li>
- *     <li>otherwise disable background sweep</li>
- * </ul>
- */
-public class ShouldRunBackgroundSweepSupplier implements BooleanSupplier {
-    private final Supplier<SweepConfig> runtimeConfigSupplier;
-
-    public ShouldRunBackgroundSweepSupplier(Supplier<SweepConfig> runtimeConfig) {
-        this.runtimeConfigSupplier = runtimeConfig;
-    }
-
-    @Override
-    public boolean getAsBoolean() {
-        return runtimeConfigSupplier.get().enabled().orElse(false);
-    }
-}u}(jt  (8e383ff5530f7a77f005d2ff7e7e17df90fef15bj  Iatlasdb-config/src/main/java/com/palantir/atlasdb/config/SweepConfig.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -34,7 +34,10 @@ public abstract class SweepConfig {
      * If unspecified, AtlasDB will decide whether to run the background sweeper or not. This may depend on factors
      * elsewhere in configuration.
      */
-    public abstract Optional<Boolean> enabled();
+    @Value.Default
+    public boolean enabled() {
+        return false;
+    }
 
     // TODO handle live reload
     /**u}(jt  (5899f9c92768d98fda10a6e653ad38e7192e48e5j  ]atlasdb-config/src/main/java/com/palantir/atlasdb/factory/AtlasDbDialogueServiceProvider.javaj  modifiedj  K j  K	j  K	j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAtlasDbDialogueServiceProvider.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAtlasDbDialogueServiceProvider.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAtlasDbDialogueServiceProvider.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.factory;
 
 import com.google.common.collect.ImmutableMap;
-import com.palantir.atlasdb.backup.DialogueAdaptingTimeLockManagementService;
 import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
 import com.palantir.atlasdb.config.ServerListConfig;
 import com.palantir.atlasdb.factory.timelock.ImmutableShortAndLongTimeoutServices;
@@ -36,8 +35,6 @@
 import com.palantir.atlasdb.timelock.api.ConjureTimelockService;
 import com.palantir.atlasdb.timelock.api.ConjureTimelockServiceBlocking;
 import com.palantir.atlasdb.timelock.api.MultiClientConjureTimelockServiceBlocking;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementService;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementServiceBlocking;
 import com.palantir.atlasdb.timelock.lock.watch.ConjureLockWatchingServiceBlocking;
 import com.palantir.atlasdb.util.AtlasDbMetrics;
 import com.palantir.conjure.java.api.config.service.UserAgent;
@@ -175,12 +172,6 @@ ConjureLockWatchingServiceBlocking getConjureLockWatchingService() {
                 wrapInProxy(ConjureLockWatchingServiceBlocking.class, blockingService));
     }
 
-    public TimeLockManagementService getTimeLockManagementService() {
-        TimeLockManagementServiceBlocking blockingService =
-                dialogueClientFactory.get(TimeLockManagementServiceBlocking.class, TIMELOCK_SHORT_TIMEOUT);
-        return new DialogueAdaptingTimeLockManagementService(blockingService);
-    }
-
     private <T> T createDialogueProxyWithShortTimeout(Class<T> type) {
         return createDialogueProxy(type, dialogueClientFactory.getChannel(TIMELOCK_SHORT_TIMEOUT));
     }u}(jt  (df57e9fd3c6376b49fd3c1adb77db41b476aeffej  datlasdb-config/src/main/java/com/palantir/atlasdb/factory/DefaultLockAndTimestampServiceFactory.javaj  modifiedj  K6j  Kj  KIj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X$  @@ -96,6 +96,7 @@
 import java.util.Set;
 import java.util.concurrent.CompletableFuture;
 import java.util.function.Consumer;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import javax.ws.rs.ClientErrorException;
 
@@ -107,7 +108,7 @@ public final class DefaultLockAndTimestampServiceFactory implements LockAndTimes
     private final MetricsManager metricsManager;
     private final AtlasDbConfig config;
     private final Refreshable<AtlasDbRuntimeConfig> runtimeConfig;
-    private final Consumer<Object> env;
+    private final Consumer<Object> registrar;
     private final Supplier<LockService> lock;
     private final Supplier<ManagedTimestampService> time;
     private final TimestampStoreInvalidator invalidator;
@@ -118,11 +119,13 @@ public final class DefaultLockAndTimestampServiceFactory implements LockAndTimes
     private final Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders;
     private final Set<Schema> schemas;
 
+    private final Function<TimelockService, TimeLockClient> timelockClientFactory;
+
     public DefaultLockAndTimestampServiceFactory(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -132,10 +135,42 @@ public DefaultLockAndTimestampServiceFactory(
             Optional<TimeLockFeedbackBackgroundTask> timeLockFeedbackBackgroundTask,
             Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders,
             Set<Schema> schemas) {
+        this(
+                metricsManager,
+                config,
+                runtimeConfig,
+                registrar,
+                lock,
+                time,
+                invalidator,
+                userAgent,
+                lockDiagnosticComponents,
+                reloadingFactory,
+                timeLockFeedbackBackgroundTask,
+                timelockRequestBatcherProviders,
+                schemas,
+                TimeLockClient::createDefault);
+    }
+
+    public DefaultLockAndTimestampServiceFactory(
+            MetricsManager metricsManager,
+            AtlasDbConfig config,
+            Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
+            Consumer<Object> registrar,
+            Supplier<LockService> lock,
+            Supplier<ManagedTimestampService> time,
+            TimestampStoreInvalidator invalidator,
+            UserAgent userAgent,
+            Optional<LockDiagnosticComponents> lockDiagnosticComponents,
+            ReloadingFactory reloadingFactory,
+            Optional<TimeLockFeedbackBackgroundTask> timeLockFeedbackBackgroundTask,
+            Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders,
+            Set<Schema> schemas,
+            Function<TimelockService, TimeLockClient> timelockClientFactory) {
         this.metricsManager = metricsManager;
         this.config = config;
         this.runtimeConfig = runtimeConfig;
-        this.env = env;
+        this.registrar = registrar;
         this.lock = lock;
         this.time = time;
         this.invalidator = invalidator;
@@ -145,6 +180,7 @@ public DefaultLockAndTimestampServiceFactory(
         this.timeLockFeedbackBackgroundTask = timeLockFeedbackBackgroundTask;
         this.timelockRequestBatcherProviders = timelockRequestBatcherProviders;
         this.schemas = schemas;
+        this.timelockClientFactory = timelockClientFactory;
     }
 
     @Override
@@ -153,7 +189,7 @@ public LockAndTimestampServices createLockAndTimestampServices() {
                 metricsManager,
                 config,
                 runtimeConfig,
-                env,
+                registrar,
                 lock,
                 time,
                 invalidator,
@@ -166,9 +202,8 @@ public LockAndTimestampServices createLockAndTimestampServices() {
         return withMetrics(metricsManager, withRefreshingLockService(lockAndTimestampServices));
     }
 
-    private static LockAndTimestampServices withRefreshingLockService(
-            LockAndTimestampServices lockAndTimestampServices) {
-        TimeLockClient timeLockClient = TimeLockClient.createDefault(lockAndTimestampServices.timelock());
+    private LockAndTimestampServices withRefreshingLockService(LockAndTimestampServices lockAndTimestampServices) {
+        TimeLockClient timeLockClient = timelockClientFactory.apply(lockAndTimestampServices.timelock());
         ProfilingTimelockService profilingService = ProfilingTimelockService.create(timeLockClient);
         return ImmutableLockAndTimestampServices.builder()
                 .from(lockAndTimestampServices)
@@ -198,7 +233,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -211,7 +246,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
         AtlasDbRuntimeConfig initialRuntimeConfig = runtimeConfig.get();
         assertNoSpuriousTimeLockBlockInRuntimeConfig(config, initialRuntimeConfig);
         if (config.leader().isPresent()) {
-            return createRawLeaderServices(metricsManager, config.leader().get(), env, lock, time, userAgent);
+            return createRawLeaderServices(metricsManager, config.leader().get(), registrar, lock, time, userAgent);
         } else if (config.timestamp().isPresent() && config.lock().isPresent()) {
             return createRawRemoteServices(metricsManager, config, runtimeConfig, userAgent);
         } else if (TransactionManagers.isUsingTimeLock(config, initialRuntimeConfig)) {
@@ -227,7 +262,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
                     timelockRequestBatcherProviders,
                     knownSchemas);
         } else {
-            return createRawEmbeddedServices(metricsManager, env, lock, time);
+            return createRawEmbeddedServices(metricsManager, registrar, lock, time);
         }
     }
 
@@ -412,13 +447,13 @@ private static Supplier<InternalMultiClientConjureTimelockService> getMultiClien
     private static LockAndTimestampServices createRawLeaderServices(
             MetricsManager metricsManager,
             LeaderConfig leaderConfig,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             UserAgent userAgent) {
         // Create local services, that may or may not end up being registered in an Consumer<Object>.
         LocalPaxosServices localPaxosServices =
-                Leaders.createAndRegisterLocalServices(metricsManager, env, leaderConfig, userAgent);
+                Leaders.createAndRegisterLocalServices(metricsManager, registrar, leaderConfig, userAgent);
 
         LeadershipCoordinator leadershipCoordinator = localPaxosServices.leadershipCoordinator();
         LockService localLock =
@@ -432,9 +467,9 @@ private static LockAndTimestampServices createRawLeaderServices(
         TimestampService localTime = getTimestampFacade(managedTimestampProxy);
         TimestampManagementService localManagement = getTimestampManagementFacade(managedTimestampProxy);
 
-        env.accept(localLock);
-        env.accept(localTime);
-        env.accept(localManagement);
+        registrar.accept(localLock);
+        registrar.accept(localTime);
+        registrar.accept(localManagement);
 
         // Create remote services, that may end up calling our own local services.
         ImmutableServerListConfig serverListConfig = ImmutableServerListConfig.builder()
@@ -586,7 +621,7 @@ private static LockAndTimestampServices createRawRemoteServices(
 
     private static LockAndTimestampServices createRawEmbeddedServices(
             MetricsManager metricsManager,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> managedTimestampServiceSupplier) {
         LockService lockService =
@@ -599,9 +634,9 @@ private static LockAndTimestampServices createRawEmbeddedServices(
         TimestampManagementService timestampManagementService = ServiceCreator.instrumentService(
                 metricsManager.getRegistry(), managedTimestampService, TimestampManagementService.class);
 
-        env.accept(lockService);
-        env.accept(timeService);
-        env.accept(timestampManagementService);
+        registrar.accept(lockService);
+        registrar.accept(timeService);
+        registrar.accept(timestampManagementService);
 
         return ImmutableLockAndTimestampServices.builder()
                 .lock(lockService)u}(jt  (92cee3c0379971de0a91702380e2b466da96ff6bj  Fatlasdb-config/src/main/java/com/palantir/atlasdb/factory/Leaders.javaj  modifiedj  Kj  Kj  K
j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -79,13 +79,13 @@ private Leaders() {
      * service.
      */
     public static LocalPaxosServices createAndRegisterLocalServices(
-            MetricsManager metricsManager, Consumer<Object> env, LeaderConfig config, UserAgent userAgent) {
+            MetricsManager metricsManager, Consumer<Object> registrar, LeaderConfig config, UserAgent userAgent) {
         LocalPaxosServices localPaxosServices = createInstrumentedLocalServices(metricsManager, config, userAgent);
 
-        env.accept(localPaxosServices.ourAcceptor());
-        env.accept(localPaxosServices.ourLearner());
-        env.accept(localPaxosServices.localPingableLeader());
-        env.accept(new NotCurrentLeaderExceptionMapper());
+        registrar.accept(localPaxosServices.ourAcceptor());
+        registrar.accept(localPaxosServices.ourLearner());
+        registrar.accept(localPaxosServices.localPingableLeader());
+        registrar.accept(new NotCurrentLeaderExceptionMapper());
         return localPaxosServices;
     }
 u}(jt  (37473508e06c194b315e01d89ff08da1a5152705j  Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javaj  modifiedj  Kj  K$j  K6j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XQ  @@ -40,7 +40,6 @@
 import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
 import com.palantir.atlasdb.config.ImmutableAtlasDbConfig;
 import com.palantir.atlasdb.config.ServerListConfig;
-import com.palantir.atlasdb.config.ShouldRunBackgroundSweepSupplier;
 import com.palantir.atlasdb.config.SweepConfig;
 import com.palantir.atlasdb.config.TimeLockClientConfig;
 import com.palantir.atlasdb.config.TimeLockRequestBatcherProviders;
@@ -79,7 +78,6 @@
 import com.palantir.atlasdb.sweep.SpecificTableSweeper;
 import com.palantir.atlasdb.sweep.SweepBatchConfig;
 import com.palantir.atlasdb.sweep.SweepTaskRunner;
-import com.palantir.atlasdb.sweep.SweeperServiceImpl;
 import com.palantir.atlasdb.sweep.metrics.LegacySweepMetrics;
 import com.palantir.atlasdb.sweep.queue.MultiTableSweepQueueWriter;
 import com.palantir.atlasdb.sweep.queue.TargetedSweeper;
@@ -131,6 +129,7 @@
 import com.palantir.lock.client.TimeLockClient;
 import com.palantir.lock.client.metrics.TimeLockFeedbackBackgroundTask;
 import com.palantir.lock.impl.LockServiceImpl;
+import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -200,6 +199,11 @@ boolean allSafeForLogging() {
         return false;
     }
 
+    @Value.Default
+    Function<TimelockService, TimeLockClient> defaultTimelockClientFactory() {
+        return TimeLockClient::createDefault;
+    }
+
     abstract Optional<LockAndTimestampServiceFactory> lockAndTimestampServiceFactory();
 
     abstract UserAgent userAgent();
@@ -387,7 +391,8 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                         reloadingFactory(),
                         timeLockFeedbackBackgroundTask,
                         timelockRequestBatcherProviders(),
-                        schemas()));
+                        schemas(),
+                        defaultTimelockClientFactory()));
         LockAndTimestampServices lockAndTimestampServices = factory.createLockAndTimestampServices();
         adapter.setTimestampService(lockAndTimestampServices.managedTimestampService());
 
@@ -534,7 +539,7 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
         transactionManager.registerClosingCallback(targetedSweep::close);
 
         initializeCloseable(
-                () -> initializeSweepEndpointAndBackgroundProcess(
+                () -> initializeSweepBackgroundProcess(
                         metricsManager,
                         config(),
                         runtime,
@@ -809,11 +814,11 @@ static boolean timeLockMigrationCompleteIfNeeded(LockAndTimestampServices lockAn
                 .orElse(true);
     }
 
-    private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess(
+    private static BackgroundSweeperImpl initializeSweepBackgroundProcess(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Supplier<AtlasDbRuntimeConfig> runtimeConfigSupplier,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             KeyValueService kvs,
             TransactionService transactionService,
             CleanupFollower follower,
@@ -835,21 +840,19 @@ private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess
                 metricsManager,
                 () -> getSweepBatchConfig(runtimeConfigSupplier.get().sweep()));
 
-        SpecificTableSweeper specificTableSweeper = initializeSweepEndpoint(
-                env,
-                kvs,
+        SpecificTableSweeper specificTableSweeper = SpecificTableSweeper.create(
                 transactionManager,
+                kvs,
                 sweepRunner,
+                SweepTableFactory.of(),
                 sweepPerfLogger,
                 sweepMetrics,
-                config.initializeAsync(),
-                sweepBatchConfigSource);
+                config.initializeAsync());
 
         BackgroundSweeperImpl backgroundSweeper = BackgroundSweeperImpl.create(
                 metricsManager,
                 sweepBatchConfigSource,
-                new ShouldRunBackgroundSweepSupplier(
-                        () -> runtimeConfigSupplier.get().sweep())::getAsBoolean,
+                () -> runtimeConfigSupplier.get().sweep().enabled(),
                 () -> runtimeConfigSupplier.get().sweep().sweepThreads(),
                 () -> runtimeConfigSupplier.get().sweep().pauseMillis(),
                 () -> runtimeConfigSupplier.get().sweep().sweepPriorityOverrides(),
@@ -864,27 +867,6 @@ private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess
         return backgroundSweeper;
     }
 
-    private static SpecificTableSweeper initializeSweepEndpoint(
-            Consumer<Object> env,
-            KeyValueService kvs,
-            TransactionManager transactionManager,
-            SweepTaskRunner sweepRunner,
-            BackgroundSweeperPerformanceLogger sweepPerfLogger,
-            LegacySweepMetrics sweepMetrics,
-            boolean initializeAsync,
-            AdjustableSweepBatchConfigSource sweepBatchConfigSource) {
-        SpecificTableSweeper specificTableSweeper = SpecificTableSweeper.create(
-                transactionManager,
-                kvs,
-                sweepRunner,
-                SweepTableFactory.of(),
-                sweepPerfLogger,
-                sweepMetrics,
-                initializeAsync);
-        env.accept(new SweeperServiceImpl(specificTableSweeper, sweepBatchConfigSource));
-        return specificTableSweeper;
-    }
-
     private static SweepBatchConfig getSweepBatchConfig(SweepConfig sweepConfig) {
         return ImmutableSweepBatchConfig.builder()
                 .maxCellTsPairsToExamine(sweepConfig.readLimit())
@@ -940,7 +922,7 @@ public static LockAndTimestampServices createLockAndTimestampServicesForCli(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfigSupplier,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -950,7 +932,7 @@ public static LockAndTimestampServices createLockAndTimestampServicesForCli(
                         metricsManager,
                         config,
                         runtimeConfigSupplier,
-                        env,
+                        registrar,
                         lock,
                         time,
                         invalidator,u}(jt  (5d339f0ca1b1d528743d2246718cc8b977604ba6j  Vatlasdb-config/src/test/java/com/palantir/atlasdb/config/AtlasDbRuntimeConfigTest.javaj  modifiedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -21,18 +21,6 @@
 import org.junit.Test;
 
 public class AtlasDbRuntimeConfigTest {
-    @Test
-    public void configDoesNotSpecifySweepByDefault() {
-        AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.defaultRuntimeConfig();
-        assertThat(config.sweep().enabled()).isEmpty();
-    }
-
-    @Test
-    public void configWithoutSweepHasSweepDisabled() {
-        AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.withSweepDisabled();
-        assertThat(config.sweep().enabled()).contains(false);
-    }
-
     @Test
     public void configWithoutSpecifyingStreamPersistenceConfigHasDefaultConfig() {
         AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.defaultRuntimeConfig();u     }(jt  (99709ed401e5f0d37ebfb9169ea783f5f6e19c95j  batlasdb-config/src/test/java/com/palantir/atlasdb/config/ShouldRunBackgroundSweepSupplierTest.javaj  removedj  K j  Kfj  Kfj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X]  @@ -1,102 +0,0 @@
-/*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.config;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
-
-import com.palantir.atlasdb.sweep.queue.config.ImmutableTargetedSweepRuntimeConfig;
-import com.palantir.atlasdb.sweep.queue.config.TargetedSweepRuntimeConfig;
-import java.util.function.Supplier;
-import org.junit.Test;
-
-public class ShouldRunBackgroundSweepSupplierTest {
-
-    private static final TargetedSweepRuntimeConfig TARGETED_SWEEP_ENABLED =
-            ImmutableTargetedSweepRuntimeConfig.builder().enabled(true).build();
-    private static final TargetedSweepRuntimeConfig TARGETED_SWEEP_DISABLED =
-            ImmutableTargetedSweepRuntimeConfig.builder().enabled(false).build();
-
-    private static final SweepConfig BACKGROUND_SWEEP_ENABLED =
-            ImmutableSweepConfig.builder().enabled(true).build();
-    private static final SweepConfig BACKGROUND_SWEEP_UNSET = SweepConfig.defaultSweepConfig();
-    private static final SweepConfig BACKGROUND_SWEEP_DISABLED = SweepConfig.disabled();
-
-    @Test
-    public void disableBackgroundSweepIfBackgroundSweepExplicitlyDisabled() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_DISABLED))
-                .isFalse();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_DISABLED))
-                .isFalse();
-    }
-
-    @Test
-    public void enableBackgroundSweepIfBackgroundSweepExplicitlyEnabled() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_ENABLED))
-                .isTrue();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED))
-                .isTrue();
-    }
-
-    @Test
-    public void disableBackgroundSweepIfNotSet() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET))
-                .isFalse();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET))
-                .isFalse();
-    }
-
-    // Mock assignment known to be safe
-    // Direct mock invocation is safe here as we're using it as a convenient way to create a supplier
-    @SuppressWarnings({"unchecked", "DirectInvocationOnMock"})
-    @Test
-    public void liveReload() {
-        Supplier<AtlasDbRuntimeConfig> runtimeConfigSupplier = mock(Supplier.class);
-        when(runtimeConfigSupplier.get())
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET))
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET))
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED));
-
-        ShouldRunBackgroundSweepSupplier supplier = new ShouldRunBackgroundSweepSupplier(
-                () -> runtimeConfigSupplier.get().sweep());
-
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET")
-                .isFalse();
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET")
-                .isFalse();
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED")
-                .isTrue();
-    }
-
-    private static boolean runBackgroundSweep(TargetedSweepRuntimeConfig tsRuntime, SweepConfig bgSweepConfig) {
-        return new ShouldRunBackgroundSweepSupplier(
-                        () -> createRuntimeConfig(tsRuntime, bgSweepConfig).sweep())
-                .getAsBoolean();
-    }
-
-    private static AtlasDbRuntimeConfig createRuntimeConfig(
-            TargetedSweepRuntimeConfig targetedSweepRuntimeConfig, SweepConfig backgroundSweepConfig) {
-        return ImmutableAtlasDbRuntimeConfig.builder()
-                .targetedSweep(targetedSweepRuntimeConfig)
-                .sweep(backgroundSweepConfig)
-                .build();
-    }
-}u}(jt  (7b553ba97fea29cc28f91d035e5cbe8060e8cae3j  hatlasdb-config/src/test/java/com/palantir/atlasdb/config/TransactionManagersAsyncInitializationTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -45,7 +45,7 @@ public class TransactionManagersAsyncInitializationTest {
     private static final String USER_AGENT_VERSION = "3.1415926.5358979";
     private static final UserAgent USER_AGENT = UserAgent.of(UserAgent.Agent.of(USER_AGENT_NAME, USER_AGENT_VERSION));
 
-    private final Consumer<Object> environment = mock(Consumer.class);
+    private final Consumer<Object> registrar = mock(Consumer.class);
 
     @Test
     public void asyncInitializationEventuallySucceeds() {
@@ -59,7 +59,7 @@ public void asyncInitializationEventuallySucceeds() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema())
                 .build()
                 .serializable();
@@ -84,7 +84,7 @@ public void transactionManagersBuilderDoesNotThrowIfAsyncInitialisationFailsRepe
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema());
 
         assertThatCode(() -> build.build().serializable()).doesNotThrowAnyException();u}(jt  (53509f2b6df2a34a1c1eb9aff6769f11f64e0441j  ;atlasdb-console-distribution/baseline-class-uniqueness.lockj  removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-console-distribution%2Fbaseline-class-uniqueness.lockj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-console-distribution%2Fbaseline-class-uniqueness.lockj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-console-distribution%2Fbaseline-class-uniqueness.lock?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  XB  @@ -1,11 +0,0 @@
-# Danger! Multiple jars contain identically named classes. This may cause different behaviour depending on classpath ordering.
-# Run ./gradlew checkClassUniqueness --write-locks to update this file
-
-## runtimeClasspath
-[commons-logging:commons-logging, org.slf4j:jcl-over-slf4j]
-  - org.apache.commons.logging.Log
-  - org.apache.commons.logging.LogConfigurationException
-  - org.apache.commons.logging.LogFactory
-  - org.apache.commons.logging.impl.NoOpLog
-  - org.apache.commons.logging.impl.SimpleLog
-  - org.apache.commons.logging.impl.SimpleLog$1u}(jt  (53509f2b6df2a34a1c1eb9aff6769f11f64e0441j  ;atlasdb-container-test-utils/baseline-class-uniqueness.lockj  removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-container-test-utils%2Fbaseline-class-uniqueness.lockj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-container-test-utils%2Fbaseline-class-uniqueness.lockj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-container-test-utils%2Fbaseline-class-uniqueness.lock?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  XB  @@ -1,11 +0,0 @@
-# Danger! Multiple jars contain identically named classes. This may cause different behaviour depending on classpath ordering.
-# Run ./gradlew checkClassUniqueness --write-locks to update this file
-
-## runtimeClasspath
-[commons-logging:commons-logging, org.slf4j:jcl-over-slf4j]
-  - org.apache.commons.logging.Log
-  - org.apache.commons.logging.LogConfigurationException
-  - org.apache.commons.logging.LogFactory
-  - org.apache.commons.logging.impl.NoOpLog
-  - org.apache.commons.logging.impl.SimpleLog
-  - org.apache.commons.logging.impl.SimpleLog$1u}(jt  (9c5d0752d26338a6bd7a12031a481f8b1013f2d0j  \atlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/HikariCPConnectionManager.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -246,20 +246,21 @@ private void testDataSource(HikariDataSource dataSourcePool) throws SQLException
      * @throws SQLException if connection is invalid and cannot be used.
      */
     private void testConnection(Connection connection) throws SQLException {
-        if (connConfig.getTestQuery().isEmpty()) {
-            if (!connection.isValid(connConfig.getSocketTimeoutSeconds())) {
-                throw new SQLException(String.format("Connection %s is not valid", connection));
-            }
-        } else {
-            try (PreparedStatement stmt = connection.prepareStatement(connConfig.getTestQuery())) {
+        if (connConfig.getTestQuery().isPresent()) {
+            try (PreparedStatement stmt =
+                    connection.prepareStatement(connConfig.getTestQuery().get())) {
                 stmt.setFetchSize(1); // only need first row result
                 ResultSet rs = stmt.executeQuery();
                 if (!rs.next()) {
                     throw new SQLException(String.format(
                             "Connection %s could not be validated as it did not return any results for test query %s",
-                            connection, connConfig.getTestQuery()));
+                            connection, connConfig.getTestQuery().get()));
                 }
             }
+        } else {
+            if (!connection.isValid(connConfig.getSocketTimeoutSeconds())) {
+                throw new SQLException(String.format("Connection %s is not valid", connection));
+            }
         }
     }
 u}(jt  (e1fd2afeb410162c7eb111eb2ed045144d3511afj  Zatlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/ConnectionConfig.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -58,7 +58,7 @@ public MaskedValue getDbPassword() {
 
     public abstract String getDriverClass();
 
-    public abstract String getTestQuery();
+    public abstract Optional<String> getTestQuery();
 
     @JsonIgnore
     @Value.Derived
@@ -132,7 +132,7 @@ public String getConnectionPoolName() {
 
     @Value.Default
     public boolean testConnectionBeforeHandout() {
-        return true;
+        return false;
     }
 
     /**
@@ -182,8 +182,8 @@ public HikariConfig getHikariConfig() {
 
         initializeFailTimeoutMillis().ifPresent(config::setInitializationFailTimeout);
 
-        if (getTestQuery() != null && !getTestQuery().isEmpty()) {
-            config.setConnectionTestQuery(getTestQuery());
+        if (getTestQuery().isPresent()) {
+            config.setConnectionTestQuery(getTestQuery().get());
         }
 
         if (getSqlExceptionOverrideClass().isPresent()) {u}(jt  (a2ad768a82efd1e1c312c4709fc4d57be8af1b8ej  \atlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/H2ConnectionConfig.javaj  modifiedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FH2ConnectionConfig.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FH2ConnectionConfig.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FH2ConnectionConfig.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X!  @@ -50,12 +50,6 @@ public String getDriverClass() {
         return "org.h2.Driver";
     }
 
-    @Override
-    @Value.Default
-    public String getTestQuery() {
-        return "SELECT 1";
-    }
-
     @Override
     public final DBType getDbType() {
         return DBType.H2_MEMORY;u}(jt  (41a91b3af333f4beb327239129f2b5db59d5dc2ej  `atlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/OracleConnectionConfig.javaj  modifiedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FOracleConnectionConfig.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FOracleConnectionConfig.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FOracleConnectionConfig.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XY  @@ -88,12 +88,6 @@ public String getDriverClass() {
         return "oracle.jdbc.driver.OracleDriver";
     }
 
-    @Override
-    @Value.Default
-    public String getTestQuery() {
-        return "";
-    }
-
     public abstract Optional<String> getSid();
 
     public abstract Optional<ServiceNameConfiguration> serviceNameConfiguration();u}(jt  (814cb717b3d8c2d5aeb4ff0368d10e7cb32fa81dj  batlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/PostgresConnectionConfig.javaj  modifiedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FPostgresConnectionConfig.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FPostgresConnectionConfig.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FPostgresConnectionConfig.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -66,12 +66,6 @@ public String getDriverClass() {
         return "org.postgresql.Driver";
     }
 
-    @Override
-    @Value.Default
-    public String getTestQuery() {
-        return "SELECT 1";
-    }
-
     public abstract String getDbName();
 
     @Overrideu}(jt  (2a91fe0d6e86187e3690c8655b64ea385b2f02faj  Satlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/FullQuery.javaj  modifiedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  Xe  @@ -35,11 +35,6 @@ public Builder append(String query) {
             return this;
         }
 
-        public Builder append(long number) {
-            queryBuilder.append(number);
-            return this;
-        }
-
         public Builder append(String query, Object arg) {
             queryBuilder.append(query);
             argsBuilder.add(arg);u}(jt  (ddbe99f94fd632341080a204b08994736d8ac8d1j  gatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleCellTsPageLoader.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -195,8 +195,7 @@ private FullQuery getQuery(boolean singleRow) {
             appendRangePredicates(singleRow, queryBuilder);
             return queryBuilder
                     .append("  ORDER BY row_name, col_name, ts")
-                    .append(") WHERE rownum <= ")
-                    .append(sqlRowLimit)
+                    .append(") WHERE rownum <= ?", sqlRowLimit)
                     .append(" ORDER BY row_name, col_name, ts")
                     .build();
         }u}(jt  (16016bac4fb642bd9934fcbdc2a95307afc7979aj  _atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTable.javaj  modifiedj  KBj  K	j  KKj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  Xz  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Stopwatch;
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -30,6 +31,9 @@
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyle;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyleCache;
 import com.palantir.atlasdb.logging.LoggingArgs;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.NamedColumnDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.common.base.RunnableCheckedException;
 import com.palantir.common.base.Throwables;
@@ -47,6 +51,7 @@
 import com.palantir.util.VersionStrings;
 import java.sql.SQLException;
 import java.util.Locale;
+import java.util.Set;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.TimeUnit;
 import org.apache.commons.lang3.StringUtils;
@@ -90,7 +95,9 @@ public static OracleDdlTable create(
 
     @Override
     public void create(byte[] tableMetadata) {
-        boolean needsOverflow = needsOverflow(tableMetadata);
+        TableMetadata metadata = TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMetadata);
+        boolean needsOverflow = needsOverflow(metadata);
+        int compressionSetting = getOptimalIndexCompression(metadata);
 
         if (tableExists()) {
             if (needsOverflow) {
@@ -103,7 +110,7 @@ public void create(byte[] tableMetadata) {
             return;
         }
 
-        String shortTableName = createTable(needsOverflow);
+        String shortTableName = createTable(needsOverflow, compressionSetting);
 
         if (needsOverflow && !overflowColumnExists(shortTableName)) {
             throwForMissingOverflowTable();
@@ -146,10 +153,51 @@ private boolean overflowTableHasMigrated() {
         return config.overflowMigrationState() == OverflowMigrationState.FINISHED;
     }
 
-    private boolean needsOverflow(byte[] tableMetadata) {
-        TableMetadata metadata = TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMetadata);
-        return (metadata != null)
-                && (metadata.getColumns().getMaxValueSize() > AtlasDbConstants.ORACLE_OVERFLOW_THRESHOLD);
+    private boolean needsOverflow(TableMetadata metadata) {
+        return metadata.getColumns().getMaxValueSize() > AtlasDbConstants.ORACLE_OVERFLOW_THRESHOLD;
+    }
+
+    /*
+     * Determine the optimal Index Organized Table compression setting.
+     * When enabling compression on an IOT, we can instruct Oracle to compress at most one
+     * fewer columns than the number of columns that make up the PK for the IOT (i.e. the IOT we create have a PK of
+     * {row, col, ts} so we can compress 0, 1 or 2 columns - nothing, row, or row & col. It wouldn't make sense to
+     * compress all three columns, because necessarily there can be multiple rows that share all three values.
+     *
+     * When compression is enabled in an IOT, the block header adds a table the captures the values of the
+     * compressed columns. The actual rows in the blocks then refer back to entries in the header table to capture
+     * their values for the compressed columns. This extra header table and the slot references for data rows consume
+     * space in the block, so misuse of compression results in extra storage being consumed.
+     *
+     * Compression only makes sense when we expect that the { row } or { row, col } values will be reused:
+     * - If the table's sweep strategy is CONSERVATIVE, then every { row, col } will have at least two rows,
+     *   the current value (which may have null val if the value is deleted) and a sentinel row with ts = -1. Clearly
+     *   compression of both { row, col } is valuable.
+     * - If the sweep strategy is not CONSERVATIVE,  there will be reuse of the { row } if there is more than one named
+     *   column, or the table uses dynamic columns, which would be generally be expected to have multiple row values. In
+     *   this case, compression 1 is appropriate so { row } only needs to be stored once.
+     * - Finally, if the sweep strategy is not CONSERVATIVE, there are no sentinels, and if there is only one named
+     *   column then there will be no rows that share { row } so compression should be disabled.
+     */
+    @VisibleForTesting
+    static int getOptimalIndexCompression(TableMetadata metadata) {
+        if (metadata.getSweepStrategy() == SweepStrategy.CONSERVATIVE) {
+            // the table's sweep strategy is CONSERVATIVE, then every { row, col } will have at least two rows
+            return 2;
+        }
+
+        ColumnMetadataDescription columns = metadata.getColumns();
+        // there will be reuse of the { row } if there is more than one named column
+        // or the table uses dynamic columns, which would be generally be expected to have multiple row values
+        if (columns.hasDynamicColumns()) {
+            return 1;
+        }
+        Set<NamedColumnDescription> namedColumns = columns.getNamedColumns();
+        if (namedColumns != null && namedColumns.size() > 1) {
+            return 1;
+        }
+
+        return 0;
     }
 
     private boolean overflowColumnExists(String shortTableName) {
@@ -185,7 +233,7 @@ private void throwForMissingOverflowTable() {
     /**
      * Creates the table for the given reference. If the schema is modified here, please also update it in {@link #alterTableToHaveOverflowColumn}.
      */
-    private String createTable(boolean needsOverflow) {
+    private String createTable(boolean needsOverflow, int compression) {
         String shortTableName = oracleTableNameGetter.generateShortTableName(conns, tableRef);
         executeIgnoringError(
                 "CREATE TABLE " + shortTableName + " ("
@@ -196,7 +244,13 @@ private String createTable(boolean needsOverflow) {
                         + (needsOverflow ? "overflow   NUMBER(38), " : "")
                         + "  CONSTRAINT " + PrimaryKeyConstraintNames.get(shortTableName)
                         + " PRIMARY KEY (row_name, col_name, ts) "
-                        + ") organization index compress overflow",
+                        + ") "
+                        + "organization index "
+                        + (compression == 0 ? "" : "compress " + compression + " ")
+                        // Since append only completely fill blocks - no benefit in leaving space for updates of rows
+                        // PCTUSED N/A to Index Organized Tables
+                        + "PCTFREE 0 "
+                        + "overflow",
                 OracleErrorConstants.ORACLE_ALREADY_EXISTS_ERROR);
         putTableNameMapping(oracleTableNameGetter.getPrefixedTableName(tableRef), shortTableName);
         return shortTableName;
@@ -209,7 +263,10 @@ private void createOverflowTable() {
                         + "  id  NUMBER(38) NOT NULL, "
                         + "  val BLOB NOT NULL,"
                         + "  CONSTRAINT " + PrimaryKeyConstraintNames.get(shortOverflowTableName) + " PRIMARY KEY (id)"
-                        + ")",
+                        + ") "
+                        // Since append only completely fill blocks - no benefit in leaving space for updates of rows
+                        // Assume auto segment space management, so PCTUSED ignored
+                        + "PCTFREE 0",
                 OracleErrorConstants.ORACLE_ALREADY_EXISTS_ERROR);
         putTableNameMapping(oracleTableNameGetter.getPrefixedOverflowTableName(tableRef), shortOverflowTableName);
     }u}(jt  (570b443f767b2c7f891051709f1bd68ce081d75cj  _atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleGetRange.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XF  @@ -316,8 +316,7 @@ private FullQuery getRangeQuery(ConnectionSupplier conns) {
                     .append(shortTableName)
                     .append(" v ON ")
                     .append("    sub.row_name = v.row_name and sub.col_name = v.col_name and sub.ts = v.ts")
-                    .append("  WHERE sub.rn <= ")
-                    .append(maxRowsPerPage)
+                    .append("  WHERE sub.rn <= ?", maxRowsPerPage)
                     .append("  ORDER BY sub.row_name ")
                     .append(direction)
                     .append(", sub.col_name ")u}(jt  (68c4ca31f6171bb238d98d2e9cfa5f4ad9e2f919j  catlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleQueryFactory.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XW	  @@ -312,8 +312,8 @@ public FullQuery getRangeQuery(RangeRequest range, long ts, int maxRows) {
                 + "     FROM " + tableName + " m "
                 + (bounds.isEmpty() ? "" : " WHERE  " + Joiner.on(" AND ").join(bounds))
                 + "     ORDER BY m.row_name " + (range.isReverse() ? "DESC" : "ASC")
-                + "   ) inner WHERE rownum <= " + maxRows;
-        return new FullQuery(query).withArgs(args);
+                + "   ) inner WHERE rownum <= ?";
+        return new FullQuery(query).withArgs(args).withArg(maxRows);
     }
 
     @Override
@@ -334,10 +334,10 @@ public FullQuery getRowsColumnRangeCountsQuery(
                 + " GROUP BY m.row_name";
         FullQuery fullQuery = new FullQuery(query).withArgs(rowsToOracleArray(rows), ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
         return fullQuery;
     }
@@ -355,14 +355,15 @@ protected FullQuery getRowsColumnRangeSubQuery(
                 + (columnRangeSelection.getStartCol().length > 0 ? " AND m.col_name >= ?" : "")
                 + (columnRangeSelection.getEndCol().length > 0 ? " AND m.col_name < ?" : "")
                 + " GROUP BY m.row_name, m.col_name"
-                + " ORDER BY m.row_name ASC, m.col_name ASC ) s WHERE rownum <= " + columnRangeSelection.getBatchHint();
+                + " ORDER BY m.row_name ASC, m.col_name ASC ) s WHERE rownum <= ?";
         FullQuery fullQuery = new FullQuery(query).withArg(row).withArg(ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
+        fullQuery.withArg(columnRangeSelection.getBatchHint());
         return fullQuery;
     }
 u}(jt  (2f1bb8d487f43f4608acaf707e7e6788af473dbdj  katlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresCellTsPageLoader.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XR  @@ -154,8 +154,7 @@ private FullQuery getFullQuery() {
                                 token.startRowInclusive(), token.startColInclusive(), token.startTsInclusive());
                 return queryBuilder
                         .append("      ORDER BY row_name, col_name, ts")
-                        .append("      LIMIT ")
-                        .append(sqlRowLimit)
+                        .append("      LIMIT ?", sqlRowLimit)
                         .append("    ) sub")
                         .append("    GROUP BY row_name, col_name")
                         .append("    ORDER BY row_name, col_name")
@@ -183,8 +182,7 @@ private FullQuery getFullQuery() {
                                 token.startRowInclusive(), token.startColInclusive(), token.startTsInclusive());
                 return queryBuilder
                         .append("  ORDER BY row_name, col_name, ts")
-                        .append("  LIMIT ")
-                        .append(sqlRowLimit)
+                        .append("  LIMIT ?", sqlRowLimit)
                         .build();
             }
         }u}(jt  (00cafb31e5f67e282a7490f4d2f3b4c4034b0fb5j  catlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresGetRange.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -288,8 +288,7 @@ private FullQuery getRangeQuery() {
                     .append(direction)
                     .append(", col_name ")
                     .append(direction)
-                    .append("    LIMIT ")
-                    .append(maxCellsPerPage)
+                    .append("    LIMIT ?", maxCellsPerPage)
                     .append("  ) i")
                     .append("  WHERE wrap.row_name = i.row_name")
                     .append("    AND wrap.col_name = i.col_name")u}(jt  (09ea7a8a8689d417885286a94aaf8424dfa8b7faj  gatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresQueryFactory.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -229,8 +229,8 @@ public FullQuery getRangeQuery(RangeRequest range, long ts, int maxRows) {
                 + " FROM " + prefixedTableName() + " m "
                 + (bounds.isEmpty() ? "" : " WHERE  " + Joiner.on(" AND ").join(bounds))
                 + " ORDER BY m.row_name " + (range.isReverse() ? "DESC" : "ASC")
-                + " LIMIT " + maxRows;
-        return new FullQuery(query).withArgs(args);
+                + " LIMIT ?";
+        return new FullQuery(query).withArgs(args).withArg(maxRows);
     }
 
     @Override
@@ -319,16 +319,17 @@ protected FullQuery getRowsColumnRangeSubQuery(
                 + (columnRangeSelection.getStartCol().length > 0 ? " AND m.col_name >= ?" : "")
                 + (columnRangeSelection.getEndCol().length > 0 ? " AND m.col_name < ?" : "")
                 + " GROUP BY m.row_name, m.col_name"
-                + " ORDER BY m.col_name ASC LIMIT " + columnRangeSelection.getBatchHint();
+                + " ORDER BY m.col_name ASC LIMIT ?";
         FullQuery fullQuery = new FullQuery(wrapQueryWithIncludeValue("GET_ROWS_COLUMN_RANGE", query, true))
                 .withArg(row)
                 .withArg(ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
+        fullQuery.withArg(columnRangeSelection.getBatchHint());
         return fullQuery;
     }
 u}(jt  (ac33fad35d76f1ceb079128628c94f48a6bb5693j  `atlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/OracleTableNameUnmapperTest.javaj  modifiedj  Kj  Kj  K,j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -47,6 +47,7 @@
 import com.palantir.nexus.db.sql.AgnosticResultSetImpl;
 import com.palantir.nexus.db.sql.SqlConnection;
 import java.sql.Connection;
+import java.util.Arrays;
 import java.util.Collections;
 import java.util.List;
 import java.util.Map;
@@ -56,9 +57,14 @@
 import java.util.stream.IntStream;
 import org.junit.Before;
 import org.junit.Test;
+import org.junit.runner.RunWith;
 import org.mockito.ArgumentCaptor;
+import org.mockito.Mock;
+import org.mockito.Mock.Strictness;
+import org.mockito.junit.MockitoJUnitRunner;
 import org.mockito.stubbing.OngoingStubbing;
 
+@RunWith(MockitoJUnitRunner.class)
 public class OracleTableNameUnmapperTest {
 
     private static final String TEST_PREFIX = "a_";
@@ -69,21 +75,24 @@ public class OracleTableNameUnmapperTest {
     private static final TableReference TABLE_REF = TableReference.create(TEST_NAMESPACE, LONG_TABLE_NAME);
     private static final TableReference TABLE_REF_2 = TableReference.create(TEST_NAMESPACE, LONG_TABLE_NAME + "2");
 
-    private OracleTableNameUnmapper oracleTableNameUnmapper;
-    private AgnosticResultSet shortNameResultSet;
-    private ConnectionSupplier connectionSupplier;
-    private SqlConnection sqlConnection;
+    private final OracleTableNameUnmapper oracleTableNameUnmapper = new OracleTableNameUnmapper();
+
+    @Mock
+    AgnosticResultSet shortNameResultSet;
+
+    @Mock
+    ConnectionSupplier connectionSupplier;
+
+    @Mock(strictness = Strictness.LENIENT)
+    SqlConnection sqlConnection;
+
+    @Mock
+    Connection connection;
 
     @Before
     public void setup() {
-        connectionSupplier = mock(ConnectionSupplier.class);
-        oracleTableNameUnmapper = new OracleTableNameUnmapper();
-        sqlConnection = mock(SqlConnection.class);
-        Connection connection = mock(Connection.class);
         when(sqlConnection.getUnderlyingConnection()).thenReturn(connection);
         when(connectionSupplier.get()).thenReturn(sqlConnection);
-
-        shortNameResultSet = mock(AgnosticResultSet.class);
         when(sqlConnection.selectResultSetUnregisteredQuery(
                         startsWith("SELECT short_table_name FROM atlasdb_table_names WHERE table_name"), any()))
                 .thenReturn(shortNameResultSet);
@@ -145,7 +154,7 @@ public void cacheIsActuallyUsed() throws TableMappingNotFoundException {
 
     @Test
     public void getShortToLongTableNamesFromMappingTableReturnsLongNames() {
-        ArgumentCaptor<Object> tableNameCaptor = ArgumentCaptor.forClass(Object.class);
+        ArgumentCaptor<Object[]> tableNameCaptor = ArgumentCaptor.forClass(Object[].class);
         Map<String, String> shortNamesToLongNames = ImmutableMap.<String, String>builder()
                 .put("shortNameOne", "superLongNameOne")
                 .put("shortNameTwo", "superLongNameTwo")
@@ -163,7 +172,8 @@ public void getShortToLongTableNamesFromMappingTableReturnsLongNames() {
                                 + "(short_table_name) IN (" + generatePlaceholders(3) + ")"),
                         tableNameCaptor.capture());
 
-        assertThat(tableNameCaptor.getAllValues()).containsExactlyInAnyOrderElementsOf(shortNamesToLongNames.keySet());
+        assertThat(tableNameCaptor.getAllValues().stream().flatMap(Arrays::stream))
+                .containsExactlyInAnyOrderElementsOf(shortNamesToLongNames.keySet());
         verifyNoMoreInteractions(sqlConnection);
     }
 
@@ -184,15 +194,15 @@ public void getShortToLongTableNamesFromMappingTableDoesMultipleQueriesIfMoreTab
                         eq("SELECT short_table_name, table_name FROM atlasdb_table_names WHERE LOWER"
                                 + "(short_table_name) IN ("
                                 + generatePlaceholders(AtlasDbConstants.MINIMUM_IN_CLAUSE_EXPRESSION_LIMIT) + ")"),
-                        any());
+                        any(Object[].class));
         verify(sqlConnection)
                 .selectResultSetUnregisteredQuery(
                         eq("SELECT short_table_name, table_name FROM atlasdb_table_names WHERE LOWER"
                                 + "(short_table_name) IN ("
                                 + generatePlaceholders(
                                         numberOfEntries - AtlasDbConstants.MINIMUM_IN_CLAUSE_EXPRESSION_LIMIT)
                                 + ")"),
-                        any());
+                        any(Object[].class));
         verifyNoMoreInteractions(sqlConnection);
     }
 
@@ -231,11 +241,12 @@ public void getShortToLongTableNamesFromMappingReturnsEmptyMapIfMappingTableNotP
                 .isEmpty();
     }
 
-    private void mockShortNamesToLongNamesQuery(Map<String, String> shortTableNamesToLongTableNames) {
+    private OngoingStubbing<AgnosticResultSet> mockShortNamesToLongNamesQuery(
+            Map<String, String> shortTableNamesToLongTableNames) {
         OngoingStubbing<AgnosticResultSet> ongoingStubbing = when(sqlConnection.selectResultSetUnregisteredQuery(
                 startsWith("SELECT short_table_name, table_name FROM " + AtlasDbConstants.ORACLE_NAME_MAPPING_TABLE
                         + " WHERE LOWER(short_table_name)"),
-                any()));
+                any(Object[].class)));
 
         for (List<Entry<String, String>> batch : Iterables.partition(
                 shortTableNamesToLongTableNames.entrySet(), AtlasDbConstants.MINIMUM_IN_CLAUSE_EXPRESSION_LIMIT)) {
@@ -246,6 +257,7 @@ private void mockShortNamesToLongNamesQuery(Map<String, String> shortTableNamesT
                     DBType.ORACLE,
                     Map.of("short_table_name", 0, "SHORT_TABLE_NAME", 0, "table_name", 1, "TABLE_NAME", 1)));
         }
+        return ongoingStubbing;
     }
 
     private String generatePlaceholders(int numberOfPlaceholders) {u}(jt  (e22af5a95fd838f0ae5d4de23759495e249828a8j  catlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTableTest.javaj  modifiedj  K7j  K j  K7j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X,  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle;
 
 import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
@@ -41,6 +42,11 @@
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.OverflowMigrationState;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyle;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyleCache;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.ColumnValueDescription;
+import com.palantir.atlasdb.table.description.NameComponentDescription;
+import com.palantir.atlasdb.table.description.NamedColumnDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.table.description.ValueType;
 import com.palantir.common.concurrent.PTExecutors;
@@ -50,6 +56,8 @@
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.nexus.db.sql.SqlConnection;
+import java.util.ArrayList;
+import java.util.List;
 import java.util.Locale;
 import java.util.Set;
 import java.util.concurrent.ExecutorService;
@@ -348,6 +356,53 @@ public void createDoesNotThrowWhenOverflowColumnAlreadyExistsAndAlterIsRan() thr
         verifyTableAltered();
     }
 
+    @Test
+    public void conservativeSweptTablesHaveIndexCompression2() {
+        for (int numColumns = 0; numColumns <= 2; numColumns++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.CONSERVATIVE);
+            for (int colName = 0; colName < numColumns; colName++) {
+                metadataBuilder.singleNamedColumn("c" + colName, "col" + colName, ValueType.STRING);
+            }
+            TableMetadata metadata = metadataBuilder.build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(2);
+        }
+    }
+
+    @Test
+    public void thoroughSweptTablesWithDynamicColsHaveIndexCompression1() {
+        TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+        TableMetadata metadata = metadataBuilder
+                .dynamicColumns(List.of(NameComponentDescription.of("c", ValueType.STRING)), ValueType.STRING)
+                .build();
+        assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(1);
+    }
+
+    @Test
+    public void thoroughSweptTablesWithMultipleNamedColsHaveIndexCompression1() {
+        for (int numColumns = 2; numColumns <= 3; numColumns++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+            List<NamedColumnDescription> columns = new ArrayList<>();
+            for (int colDesc = 1; colDesc <= numColumns; colDesc++) {
+                columns.add(new NamedColumnDescription(
+                        "c" + colDesc, "col" + colDesc, ColumnValueDescription.forType(ValueType.STRING)));
+            }
+            TableMetadata metadata = metadataBuilder
+                    .columns(new ColumnMetadataDescription(columns))
+                    .build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(1);
+        }
+    }
+
+    @Test
+    public void thoroughSweptTablesWithOneNamedColHaveIndexCompressionDisabled() {
+        TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+        TableMetadata metadata = metadataBuilder
+                .columns(new ColumnMetadataDescription(List.of(
+                        new NamedColumnDescription("c", "col", ColumnValueDescription.forType(ValueType.STRING)))))
+                .build();
+        assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(0);
+    }
+
     private void createTable() throws TableMappingNotFoundException {
         // Not all tests will call OracleDdlTable#createTable, which makes sense as this test "creates" it for them!
         lenient()u}(jt  (d4f35ab588734b7c1e024caf324e60ccc132d1c4j  atlasdb-ete-tests/Dockerfilej  modifiedj  Kj  Kj  Kj  phttps://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-ete-tests%2FDockerfilej  ohttps://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-ete-tests%2FDockerfilej  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2FDockerfile?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  @@ -1,4 +1,4 @@
-FROM adoptopenjdk/openjdk11:debian-jre
+FROM adoptopenjdk/openjdk11:x86_64-debian-jre-11.0.18_10
 
 ENV DOCKERIZE_VERSION v0.2.0
 u}(jt  (53509f2b6df2a34a1c1eb9aff6769f11f64e0441j  0atlasdb-ete-tests/baseline-class-uniqueness.lockj  removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-ete-tests%2Fbaseline-class-uniqueness.lockj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-ete-tests%2Fbaseline-class-uniqueness.lockj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fbaseline-class-uniqueness.lock?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  XB  @@ -1,11 +0,0 @@
-# Danger! Multiple jars contain identically named classes. This may cause different behaviour depending on classpath ordering.
-# Run ./gradlew checkClassUniqueness --write-locks to update this file
-
-## runtimeClasspath
-[commons-logging:commons-logging, org.slf4j:jcl-over-slf4j]
-  - org.apache.commons.logging.Log
-  - org.apache.commons.logging.LogConfigurationException
-  - org.apache.commons.logging.LogFactory
-  - org.apache.commons.logging.impl.NoOpLog
-  - org.apache.commons.logging.impl.SimpleLog
-  - org.apache.commons.logging.impl.SimpleLog$1u}(jt  (92430ad0397e159d2c1ea903cea20d5f337d208bj  atlasdb-ete-tests/build.gradlej  modifiedj  K j  Kj  Kj  rhttps://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-ete-tests%2Fbuild.gradlej  qhttps://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-ete-tests%2Fbuild.gradlej  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fbuild.gradle?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  Xo  @@ -28,7 +28,6 @@ dependencies {
     implementation 'org.awaitility:awaitility'
     implementation 'org.slf4j:slf4j-api'
     implementation project(':atlasdb-api')
-    implementation project(':atlasdb-backup')
     implementation project(':atlasdb-cassandra')
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-client-protobufs')u}(jt  (1d193b8827aecd4f6d245fb465dfbdc647f5e14aj  +atlasdb-ete-tests/docker-compose.oracle.ymlj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlj  ~https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.oracle.yml?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  @@ -2,7 +2,7 @@ version: '2'
 
 services:
   oracle:
-    image: palantirtechnologies/oracle-atlasdb:19.12.0.0-se
+    image: palantirtechnologies/oracle-atlasdb:19.19.0.0-se
     ports:
       - "1521"
 u}(jt  (ec8d637e26567cdc25907c2058ef04bc64f0da6cj  Jatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/AtlasDbEteServer.javaj  modifiedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbEteServer.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbEteServer.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbEteServer.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X,  @@ -21,48 +21,26 @@
 import com.google.common.base.Suppliers;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.backup.AtlasBackupResource;
-import com.palantir.atlasdb.backup.AtlasBackupService;
-import com.palantir.atlasdb.backup.AtlasRestoreResource;
-import com.palantir.atlasdb.backup.AtlasRestoreService;
-import com.palantir.atlasdb.backup.AuthHeaderValidator;
-import com.palantir.atlasdb.backup.DelegatingBackupTimeLockServiceView;
-import com.palantir.atlasdb.backup.ExternalBackupPersister;
-import com.palantir.atlasdb.backup.SimpleBackupAndRestoreResource;
-import com.palantir.atlasdb.backup.api.AtlasBackupClient;
-import com.palantir.atlasdb.backup.api.AtlasRestoreClient;
-import com.palantir.atlasdb.backup.api.AtlasService;
 import com.palantir.atlasdb.blob.BlobSchema;
-import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
-import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
 import com.palantir.atlasdb.cleaner.CleanupFollower;
 import com.palantir.atlasdb.cleaner.Follower;
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.config.AtlasDbRuntimeConfig;
-import com.palantir.atlasdb.config.ServerListConfig;
-import com.palantir.atlasdb.config.ServerListConfigs;
 import com.palantir.atlasdb.coordination.CoordinationService;
 import com.palantir.atlasdb.coordination.SimpleCoordinationResource;
-import com.palantir.atlasdb.factory.AtlasDbDialogueServiceProvider;
 import com.palantir.atlasdb.factory.TransactionManagers;
-import com.palantir.atlasdb.http.AtlasDbRemotingConstants;
 import com.palantir.atlasdb.http.NotInitializedExceptionMapper;
-import com.palantir.atlasdb.http.RedirectRetryTargeter;
 import com.palantir.atlasdb.internalschema.InternalSchemaMetadata;
 import com.palantir.atlasdb.internalschema.TransactionSchemaManager;
 import com.palantir.atlasdb.internalschema.persistence.CoordinationServices;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.cassandra.async.client.creation.ClusterFactory.CassandraClusterConfig;
 import com.palantir.atlasdb.lock.SimpleLockResource;
 import com.palantir.atlasdb.sweep.CellsSweeper;
 import com.palantir.atlasdb.sweep.SweepTaskRunner;
 import com.palantir.atlasdb.sweep.queue.SpecialTimestampsSupplier;
 import com.palantir.atlasdb.sweep.queue.TargetedSweepFollower;
 import com.palantir.atlasdb.sweep.queue.TargetedSweeper;
 import com.palantir.atlasdb.table.description.Schema;
-import com.palantir.atlasdb.timelock.BackupTimeLockServiceView;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementService;
 import com.palantir.atlasdb.timestamp.SimpleEteTimestampResource;
 import com.palantir.atlasdb.todo.SimpleTodoResource;
 import com.palantir.atlasdb.todo.TodoClient;
@@ -72,18 +50,11 @@
 import com.palantir.atlasdb.transaction.service.TransactionService;
 import com.palantir.atlasdb.transaction.service.TransactionServices;
 import com.palantir.atlasdb.util.MetricsManagers;
-import com.palantir.conjure.java.api.config.service.ServicesConfigBlock;
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.server.jersey.ConjureJerseyFeature;
-import com.palantir.dialogue.clients.DialogueClients;
-import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
-import com.palantir.refreshable.Refreshable;
-import com.palantir.timestamp.TimestampManagementService;
-import com.palantir.tokens.auth.AuthHeader;
-import com.palantir.tokens.auth.BearerToken;
 import com.palantir.tritium.metrics.registry.SharedTaggedMetricRegistries;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import io.dropwizard.Application;
@@ -92,14 +63,8 @@
 import io.dropwizard.jersey.optional.EmptyOptionalException;
 import io.dropwizard.setup.Bootstrap;
 import io.dropwizard.setup.Environment;
-import java.io.IOException;
-import java.net.URL;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.Paths;
 import java.util.Optional;
 import java.util.concurrent.TimeUnit;
-import java.util.function.Function;
 import java.util.function.LongSupplier;
 import java.util.function.Supplier;
 import javax.ws.rs.core.Response;
@@ -134,10 +99,6 @@ public void run(AtlasDbEteConfiguration config, final Environment environment) t
         Supplier<TargetedSweeper> sweeperSupplier = Suppliers.memoize(() -> initializeAndGet(sweeper, txManager));
         ensureTransactionSchemaVersionInstalled(config.getAtlasDbConfig(), config.getAtlasDbRuntimeConfig(), txManager);
 
-        if (shouldSetUpBackupAndRestoreResource(config)) {
-            createAndRegisterBackupAndRestoreResource(config, environment, txManager, taggedMetrics);
-        }
-
         environment
                 .jersey()
                 .register(new SimpleTodoResource(new TodoClient(txManager, sweepTaskRunner, sweeperSupplier)));
@@ -149,92 +110,6 @@ public void run(AtlasDbEteConfiguration config, final Environment environment) t
         environment.jersey().register(new EmptyOptionalTo204ExceptionMapper());
     }
 
-    private boolean shouldSetUpBackupAndRestoreResource(AtlasDbEteConfiguration config) {
-        boolean isCassandra = CassandraKeyValueServiceConfig.TYPE.equals(
-                config.getAtlasDbConfig().keyValueService().type());
-        boolean hasTimelock = config.getAtlasDbRuntimeConfig()
-                .flatMap(AtlasDbRuntimeConfig::timelockRuntime)
-                .isPresent();
-        return isCassandra && hasTimelock;
-    }
-
-    private void createAndRegisterBackupAndRestoreResource(
-            AtlasDbEteConfiguration config,
-            Environment environment,
-            TransactionManager txManager,
-            TaggedMetricRegistry taggedMetrics)
-            throws IOException {
-        AuthHeader authHeader = AuthHeader.of(BearerToken.valueOf("test-auth"));
-        URL localServer = new URL("https://localhost:1234");
-
-        Path backupFolder = Paths.get("/var/data/backup");
-        Files.createDirectories(backupFolder);
-        Function<AtlasService, Path> backupFolderFactory = _unused -> backupFolder;
-        ExternalBackupPersister externalBackupPersister = new ExternalBackupPersister(backupFolderFactory);
-
-        Function<String, BackupTimeLockServiceView> timelockServices =
-                _unused -> createBackupTimeLockServiceView(txManager);
-        AuthHeaderValidator authHeaderValidator =
-                new AuthHeaderValidator(() -> Optional.of(authHeader.getBearerToken()));
-        RedirectRetryTargeter redirectRetryTargeter =
-                RedirectRetryTargeter.create(localServer, ImmutableList.of(localServer));
-        AtlasBackupClient atlasBackupClient =
-                AtlasBackupResource.jersey(authHeaderValidator, redirectRetryTargeter, timelockServices);
-        AtlasRestoreClient atlasRestoreClient =
-                AtlasRestoreResource.jersey(authHeaderValidator, redirectRetryTargeter, timelockServices);
-        Refreshable<ServerListConfig> serverListConfig = getServerListConfigForTimeLock(config);
-        TimeLockManagementService timeLockManagementService =
-                getRemoteTimeLockManagementService(serverListConfig, taggedMetrics);
-
-        AtlasBackupService atlasBackupService =
-                AtlasBackupService.createForTests(authHeader, atlasBackupClient, txManager, backupFolderFactory);
-
-        Function<AtlasService, CassandraKeyValueServiceConfig> keyValueServiceConfigFactory = _unused ->
-                (CassandraKeyValueServiceConfig) config.getAtlasDbConfig().keyValueService();
-        Function<AtlasService, CassandraKeyValueServiceRuntimeConfig> runtimeConfigFactory =
-                _unused -> (CassandraKeyValueServiceRuntimeConfig) config.getAtlasDbRuntimeConfig()
-                        .flatMap(AtlasDbRuntimeConfig::keyValueService)
-                        .orElseThrow();
-
-        Function<AtlasService, CassandraClusterConfig> cassandraClusterConfigFactory =
-                atlasService -> CassandraClusterConfig.of(
-                        keyValueServiceConfigFactory.apply(atlasService), runtimeConfigFactory.apply(atlasService));
-
-        Function<AtlasService, Refreshable<CassandraServersConfig>> refreshableCassandraServersConfigFactory =
-                runtimeConfigFactory.andThen(runtimeConfig -> Refreshable.only(runtimeConfig.servers()));
-
-        AtlasRestoreService atlasRestoreService = AtlasRestoreService.createForTests(
-                authHeader,
-                atlasRestoreClient,
-                timeLockManagementService,
-                externalBackupPersister,
-                txManager,
-                cassandraClusterConfigFactory,
-                refreshableCassandraServersConfigFactory);
-
-        environment
-                .jersey()
-                .register(new SimpleBackupAndRestoreResource(
-                        atlasBackupService, atlasRestoreService, externalBackupPersister));
-    }
-
-    private Refreshable<ServerListConfig> getServerListConfigForTimeLock(AtlasDbEteConfiguration eteConfig) {
-        AtlasDbConfig config = eteConfig.getAtlasDbConfig();
-        Optional<AtlasDbRuntimeConfig> atlasDbRuntimeConfig = eteConfig.getAtlasDbRuntimeConfig();
-        return ServerListConfigs.getTimeLockServersFromAtlasDbConfig(config, atlasDbRuntimeConfig);
-    }
-
-    private TimeLockManagementService getRemoteTimeLockManagementService(
-            Refreshable<ServerListConfig> serverListConfig, TaggedMetricRegistry taggedMetrics) {
-        UserAgent userAgent = UserAgent.of(AtlasDbRemotingConstants.ATLASDB_HTTP_CLIENT_AGENT);
-        DialogueClients.ReloadingFactory reloadingFactory = DialogueClients.create(
-                        Refreshable.only(ServicesConfigBlock.builder().build()))
-                .withUserAgent(userAgent);
-        AtlasDbDialogueServiceProvider dialogueServiceProvider =
-                AtlasDbDialogueServiceProvider.create(serverListConfig, reloadingFactory, userAgent, taggedMetrics);
-        return dialogueServiceProvider.getTimeLockManagementService();
-    }
-
     private void ensureTransactionSchemaVersionInstalled(
             AtlasDbConfig config, Optional<AtlasDbRuntimeConfig> runtimeConfig, TransactionManager transactionManager) {
         if (runtimeConfig.isEmpty()
@@ -276,12 +151,6 @@ private TransactionManager tryToCreateTransactionManager(
         }
     }
 
-    private BackupTimeLockServiceView createBackupTimeLockServiceView(TransactionManager txManager) {
-        TimelockService timelockService = txManager.getTimelockService();
-        TimestampManagementService timestampManagementService = txManager.getTimestampManagementService();
-        return new DelegatingBackupTimeLockServiceView(timelockService, timestampManagementService);
-    }
-
     private SweepTaskRunner getSweepTaskRunner(TransactionManager transactionManager) {
         KeyValueService kvs = transactionManager.getKeyValueService();
         LongSupplier ts = transactionManager.getTimestampService()::getFreshTimestamp;u)     }(jt  (02b30e7cc3e9941ea1536ece59a811618af6d538j  Yatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/backup/BackupAndRestoreResource.javaj  removedj  K j  KDj  KDj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FBackupAndRestoreResource.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FBackupAndRestoreResource.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FBackupAndRestoreResource.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  XO	  @@ -1,68 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.processors.AutoDelegate;
-import java.util.Optional;
-import java.util.Set;
-import javax.ws.rs.Consumes;
-import javax.ws.rs.POST;
-import javax.ws.rs.Path;
-import javax.ws.rs.Produces;
-import javax.ws.rs.core.MediaType;
-
-@AutoDelegate
-@Path("/backup")
-public interface BackupAndRestoreResource {
-    @POST
-    @Path("/prepare-backup")
-    @Produces(MediaType.APPLICATION_JSON)
-    @Consumes(MediaType.APPLICATION_JSON)
-    Set<AtlasService> prepareBackup(Set<AtlasService> atlasServices);
-
-    @POST
-    @Path("/complete-backup")
-    @Produces(MediaType.APPLICATION_JSON)
-    @Consumes(MediaType.APPLICATION_JSON)
-    Set<AtlasService> completeBackup(Set<AtlasService> atlasServices);
-
-    @POST
-    @Path("/prepare-restore")
-    @Produces(MediaType.APPLICATION_JSON)
-    @Consumes(MediaType.APPLICATION_JSON)
-    Set<AtlasService> prepareRestore(Set<RestoreRequestWithId> restoreRequestsWithId);
-
-    @POST
-    @Path("/complete-restore")
-    @Produces(MediaType.APPLICATION_JSON)
-    @Consumes(MediaType.APPLICATION_JSON)
-    Set<AtlasService> completeRestore(Set<RestoreRequestWithId> restoreRequestsWithId);
-
-    @POST
-    @Path("/immutable-ts")
-    @Produces(MediaType.APPLICATION_JSON)
-    @Consumes(MediaType.APPLICATION_JSON)
-    Optional<Long> getStoredImmutableTimestamp(AtlasService atlasService);
-
-    @POST
-    @Path("/ff-ts")
-    @Produces(MediaType.APPLICATION_JSON)
-    @Consumes(MediaType.APPLICATION_JSON)
-    Optional<CompletedBackup> getStoredBackup(AtlasService atlasService);
-}u}(jt  (ba7224fb4b8cf4a7db5b1d33e34952dd96d1cb84j  _atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/backup/SimpleBackupAndRestoreResource.javaj  removedj  K j  KOj  KOj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FSimpleBackupAndRestoreResource.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FSimpleBackupAndRestoreResource.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FSimpleBackupAndRestoreResource.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X  @@ -1,79 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import java.util.Collection;
-import java.util.Optional;
-import java.util.Set;
-import java.util.stream.Collectors;
-
-public class SimpleBackupAndRestoreResource implements BackupAndRestoreResource {
-    private final AtlasBackupService atlasBackupService;
-    private final AtlasRestoreService atlasRestoreService;
-    private final ExternalBackupPersister externalBackupPersister;
-
-    public SimpleBackupAndRestoreResource(
-            AtlasBackupService atlasBackupService,
-            AtlasRestoreService atlasRestoreService,
-            ExternalBackupPersister externalBackupPersister) {
-        this.atlasBackupService = atlasBackupService;
-        this.atlasRestoreService = atlasRestoreService;
-        this.externalBackupPersister = externalBackupPersister;
-    }
-
-    @Override
-    public Set<AtlasService> prepareBackup(Set<AtlasService> atlasServices) {
-        return atlasBackupService.prepareBackup(atlasServices);
-    }
-
-    @Override
-    public Set<AtlasService> completeBackup(Set<AtlasService> atlasServices) {
-        return atlasBackupService.completeBackup(atlasServices);
-    }
-
-    @Override
-    public Set<AtlasService> prepareRestore(Set<RestoreRequestWithId> requests) {
-        // Would be more efficient to group by backup ID, but this is fine for ETE purposes
-        return requests.stream()
-                .map(request -> atlasRestoreService.prepareRestore(
-                        ImmutableSet.of(request.restoreRequest()), request.backupId()))
-                .flatMap(Collection::stream)
-                .collect(Collectors.toSet());
-    }
-
-    @Override
-    public Set<AtlasService> completeRestore(Set<RestoreRequestWithId> requests) {
-        return requests.stream()
-                .map(request -> atlasRestoreService.completeRestore(
-                        ImmutableSet.of(request.restoreRequest()), request.backupId()))
-                .flatMap(Collection::stream)
-                .collect(Collectors.toSet());
-    }
-
-    @Override
-    public Optional<Long> getStoredImmutableTimestamp(AtlasService atlasService) {
-        return externalBackupPersister.getImmutableTimestamp(atlasService);
-    }
-
-    @Override
-    public Optional<CompletedBackup> getStoredBackup(AtlasService atlasService) {
-        return externalBackupPersister.getCompletedBackup(atlasService);
-    }
-}u}(jt  (b6bf159dba35ed512d88704b640cfe0860e68873j  Uatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/BackupAndRestoreEteTest.javaj  removedj  K j  K}j  K}j  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FBackupAndRestoreEteTest.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FBackupAndRestoreEteTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FBackupAndRestoreEteTest.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X  @@ -1,125 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.ete;
-
-import static com.palantir.conjure.java.api.testing.Assertions.assertThatRemoteExceptionThrownBy;
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.backup.BackupAndRestoreResource;
-import com.palantir.atlasdb.backup.RestoreRequest;
-import com.palantir.atlasdb.backup.RestoreRequestWithId;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.ServiceId;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.timestamp.EteTimestampResource;
-import com.palantir.atlasdb.todo.ImmutableTodo;
-import com.palantir.atlasdb.todo.Todo;
-import com.palantir.atlasdb.todo.TodoResource;
-import com.palantir.conjure.java.api.errors.ErrorType;
-import java.time.Duration;
-import java.util.Optional;
-import java.util.Set;
-import java.util.stream.Collectors;
-import org.awaitility.Awaitility;
-import org.junit.Test;
-
-public class BackupAndRestoreEteTest {
-    private static final Todo TODO = ImmutableTodo.of("some stuff to do");
-    private static final Namespace NAMESPACE = Namespace.of("atlasete");
-    private static final AtlasService ATLAS_SERVICE = AtlasService.of(ServiceId.of("a"), NAMESPACE);
-    private static final Namespace NAMESPACE_2 = Namespace.of("atlasete-2");
-    private static final AtlasService ATLAS_SERVICE_2 = AtlasService.of(ServiceId.of("b"), NAMESPACE_2);
-    private static final ImmutableSet<AtlasService> ATLAS_SERVICES = ImmutableSet.of(ATLAS_SERVICE, ATLAS_SERVICE_2);
-    private static final String BACKUP_ID = "backupId";
-
-    private final TodoResource todoClient = EteSetup.createClientToSingleNode(TodoResource.class);
-    private final BackupAndRestoreResource backupResource =
-            EteSetup.createClientToSingleNode(BackupAndRestoreResource.class);
-    private final EteTimestampResource timestampClient = EteSetup.createClientToSingleNode(EteTimestampResource.class);
-
-    @Test
-    public void canPrepareBackup() {
-        addTodo();
-        assertThat(backupResource.getStoredImmutableTimestamp(ATLAS_SERVICE)).isEmpty();
-
-        Set<AtlasService> preparedAtlasServices = backupResource.prepareBackup(ATLAS_SERVICES);
-        assertThat(preparedAtlasServices).containsExactlyInAnyOrder(ATLAS_SERVICE, ATLAS_SERVICE_2);
-
-        // verify we persisted the immutable timestamp to disk
-        assertThat(backupResource.getStoredImmutableTimestamp(ATLAS_SERVICE)).isNotEmpty();
-    }
-
-    @Test
-    public void canCompletePreparedBackup() {
-        addTodo();
-        backupResource.prepareBackup(ATLAS_SERVICES);
-
-        Long immutableTimestamp =
-                backupResource.getStoredImmutableTimestamp(ATLAS_SERVICE).orElseThrow();
-
-        assertThat(backupResource.getStoredBackup(ATLAS_SERVICE)).isEmpty();
-
-        Set<AtlasService> completedAtlasServices = backupResource.completeBackup(ATLAS_SERVICES);
-        assertThat(completedAtlasServices).containsExactlyInAnyOrder(ATLAS_SERVICE, ATLAS_SERVICE_2);
-
-        Optional<CompletedBackup> storedBackup = backupResource.getStoredBackup(ATLAS_SERVICE);
-        assertThat(storedBackup).isNotEmpty();
-        assertThat(storedBackup.get().getImmutableTimestamp()).isEqualTo(immutableTimestamp);
-    }
-
-    @Test
-    public void canPrepareAndCompleteRestore() {
-        addTodo();
-        backupResource.prepareBackup(ATLAS_SERVICES);
-        backupResource.completeBackup(ATLAS_SERVICES);
-
-        assertThat(timestampClient.getFreshTimestamp()).isGreaterThan(0L);
-
-        Set<RestoreRequestWithId> restoreRequests =
-                ATLAS_SERVICES.stream().map(this::getRestoreRequest).collect(Collectors.toSet());
-        Set<AtlasService> preparedAtlasServices = backupResource.prepareRestore(restoreRequests);
-        assertThat(preparedAtlasServices).containsAll(ATLAS_SERVICES);
-
-        // verify TimeLock is disabled
-        assertThatRemoteExceptionThrownBy(timestampClient::getFreshTimestamp)
-                .isGeneratedFromErrorType(ErrorType.INTERNAL);
-
-        Set<AtlasService> completedAtlasServices = backupResource.completeRestore(restoreRequests);
-        assertThat(completedAtlasServices).containsAll(ATLAS_SERVICES);
-
-        // verify TimeLock is re-enabled
-        assertThat(timestampClient.getFreshTimestamp()).isGreaterThan(0L);
-    }
-
-    private RestoreRequestWithId getRestoreRequest(AtlasService atlasService) {
-        RestoreRequest restoreRequest = RestoreRequest.builder()
-                .oldAtlasService(atlasService)
-                .newAtlasService(atlasService)
-                .build();
-        return RestoreRequestWithId.of(restoreRequest, BACKUP_ID);
-    }
-
-    private void addTodo() {
-        Awaitility.await()
-                .atMost(Duration.ofSeconds(60L))
-                .ignoreExceptions()
-                .pollInterval(Duration.ofSeconds(1L))
-                .untilAsserted(() -> todoClient.addTodo(TODO));
-    }
-}u}(jt  (b4a93dc6e795f33c33b0390c7e0dc13add5eded6j  Tatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraRepairEteTest.javaj  removedj  K j  M)j  M)j  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraRepairEteTest.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraRepairEteTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraRepairEteTest.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X<  @@ -1,297 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.ete;
-
-import static com.google.common.collect.ImmutableRangeSet.toImmutableRangeSet;
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.datastax.driver.core.Cluster;
-import com.datastax.driver.core.policies.DefaultRetryPolicy;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Range;
-import com.google.common.collect.RangeMap;
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.backup.KvsRunner;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.ServiceId;
-import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
-import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
-import com.palantir.atlasdb.cassandra.backup.CassandraRepairHelper;
-import com.palantir.atlasdb.cassandra.backup.CqlCluster;
-import com.palantir.atlasdb.cassandra.backup.CqlMetadata;
-import com.palantir.atlasdb.cassandra.backup.RangesForRepair;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions1TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions2TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions3TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.containers.ThreeNodeCassandraCluster;
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.Cell;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
-import com.palantir.atlasdb.keyvalue.cassandra.Blacklist;
-import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueService;
-import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.keyvalue.cassandra.async.client.creation.ClusterFactory;
-import com.palantir.atlasdb.keyvalue.cassandra.async.client.creation.ClusterFactory.CassandraClusterConfig;
-import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraClientPoolMetrics;
-import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
-import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.atlasdb.transaction.impl.TransactionTables;
-import com.palantir.atlasdb.util.MetricsManagers;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.refreshable.Refreshable;
-import com.palantir.timestamp.FullyBoundedTimestampRange;
-import java.net.InetSocketAddress;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.concurrent.atomic.AtomicInteger;
-import java.util.function.BiConsumer;
-import java.util.function.Function;
-import java.util.function.Predicate;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-public final class CassandraRepairEteTest {
-    private static final byte[] FIRST_COLUMN = PtBytes.toBytes("col1");
-    private static final Cell NONEMPTY_CELL = Cell.create(PtBytes.toBytes("nonempty"), FIRST_COLUMN);
-    private static final byte[] CONTENTS = PtBytes.toBytes("default_value");
-    private static final String NAMESPACE_NAME = "atlasdb";
-    private static final Namespace NAMESPACE = Namespace.of(NAMESPACE_NAME);
-    private static final AtlasService ATLAS_SERVICE = AtlasService.of(ServiceId.of("a"), NAMESPACE);
-    private static final String TABLE_1 = "table1";
-    private static final TableReference TABLE_REF =
-            TableReference.create(com.palantir.atlasdb.keyvalue.api.Namespace.create(NAMESPACE_NAME), TABLE_1);
-    private static final DefaultRetryPolicy POLICY = DefaultRetryPolicy.INSTANCE;
-
-    private CassandraRepairHelper cassandraRepairHelper;
-    private CassandraKeyValueService kvs;
-    private CassandraKeyValueServiceConfig config;
-    private Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig;
-    private Cluster cluster;
-    private CqlCluster cqlCluster;
-
-    @Before
-    public void setUp() {
-        int replicationFactor = 2;
-        config = ThreeNodeCassandraCluster.getKvsConfig();
-        runtimeConfig = ThreeNodeCassandraCluster.getRuntimeConfig(replicationFactor);
-        kvs = CassandraKeyValueServiceImpl.createForTesting(config, runtimeConfig);
-        TransactionTables.createTables(kvs);
-
-        kvs.createTable(TABLE_REF, AtlasDbConstants.GENERIC_TABLE_METADATA);
-        kvs.putUnlessExists(TABLE_REF, ImmutableMap.of(NONEMPTY_CELL, CONTENTS));
-
-        KvsRunner kvsRunner = KvsRunner.create(_unused -> kvs);
-        Function<AtlasService, CassandraKeyValueServiceConfig> configFactory = _unused -> config;
-        Function<AtlasService, Refreshable<CassandraKeyValueServiceRuntimeConfig>> runtimeConfigFactory =
-                _unused -> runtimeConfig;
-        Function<AtlasService, CassandraClusterConfig> cassandraClusterConfigFunction =
-                atlasService -> CassandraClusterConfig.of(
-                        configFactory.apply(atlasService),
-                        runtimeConfigFactory.apply(atlasService).get());
-        Function<AtlasService, Refreshable<CassandraServersConfig>> cassandraServersConfigFactory =
-                runtimeConfigFactory.andThen(
-                        runtimeConfig -> runtimeConfig.map(CassandraKeyValueServiceRuntimeConfig::servers));
-
-        cassandraRepairHelper =
-                new CassandraRepairHelper(kvsRunner, cassandraClusterConfigFunction, cassandraServersConfigFactory);
-        cluster = new ClusterFactory(Cluster::builder)
-                .constructCluster(
-                        cassandraClusterConfigFunction.apply(ATLAS_SERVICE),
-                        cassandraServersConfigFactory.apply(ATLAS_SERVICE).get());
-        cqlCluster = new CqlCluster(
-                cluster, cassandraServersConfigFactory.apply(ATLAS_SERVICE).get(), NAMESPACE);
-    }
-
-    @After
-    public void tearDown() {
-        kvs.dropTable(TABLE_REF);
-    }
-
-    @Test
-    public void testTokenRangeCoversFullRing() {
-        CqlMetadata cqlMetadata = new CqlMetadata(cluster.getMetadata());
-        Set<Range<LightweightOppToken>> tokenRanges = cqlMetadata.getTokenRanges();
-
-        // Turning this into a RangeSet should give the complete range (-inf, +inf)
-        RangeSet<LightweightOppToken> fullTokenRing = tokenRanges.stream().collect(toImmutableRangeSet());
-        assertThat(fullTokenRing.asRanges()).containsExactly(Range.all());
-    }
-
-    @Test
-    public void testRepairOnlyTxn1() {
-        List<String> tablesRepaired = new ArrayList<>();
-        BiConsumer<String, RangesForRepair> repairer = (table, _unused) -> tablesRepaired.add(table);
-
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions1TableInteraction(range(1L, 10_000_000L), POLICY));
-        cassandraRepairHelper.repairTransactionsTables(ATLAS_SERVICE, interactions, repairer);
-        assertThat(tablesRepaired).containsExactly(TransactionConstants.TRANSACTION_TABLE.getTableName());
-    }
-
-    @Test
-    public void testRepairOnlyTxn2() {
-        List<String> tablesRepaired = new ArrayList<>();
-        BiConsumer<String, RangesForRepair> repairer = (table, _unused) -> tablesRepaired.add(table);
-
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions2TableInteraction(range(1L, 10_000_000L), POLICY));
-        cassandraRepairHelper.repairTransactionsTables(ATLAS_SERVICE, interactions, repairer);
-        assertThat(tablesRepaired).containsExactly(TransactionConstants.TRANSACTIONS2_TABLE.getTableName());
-    }
-
-    @Test
-    public void testRepairTxn3() {
-        List<String> tablesRepaired = new ArrayList<>();
-        BiConsumer<String, RangesForRepair> repairer = (table, _unused) -> tablesRepaired.add(table);
-
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions3TableInteraction(range(1L, 10_000_000L)));
-        cassandraRepairHelper.repairTransactionsTables(ATLAS_SERVICE, interactions, repairer);
-
-        // Transactions3 is backed by Transactions2 under the hood, so this is the table that will be repaired.
-        assertThat(tablesRepaired).containsExactly(TransactionConstants.TRANSACTIONS2_TABLE.getTableName());
-    }
-
-    @Test
-    public void testRepairBothTxnTables() {
-        List<String> tablesRepaired = new ArrayList<>();
-        BiConsumer<String, RangesForRepair> repairer = (table, _unused) -> tablesRepaired.add(table);
-
-        List<TransactionsTableInteraction> interactions = ImmutableList.of(
-                new Transactions1TableInteraction(range(1L, 5L), POLICY),
-                new Transactions2TableInteraction(range(6L, 10L), POLICY));
-
-        cassandraRepairHelper.repairTransactionsTables(ATLAS_SERVICE, interactions, repairer);
-        assertThat(tablesRepaired)
-                .containsExactlyInAnyOrder(
-                        TransactionConstants.TRANSACTION_TABLE.getTableName(),
-                        TransactionConstants.TRANSACTIONS2_TABLE.getTableName());
-    }
-
-    @Test
-    public void testRepairsEachTableOnceOnly() {
-        List<String> tablesRepaired = new ArrayList<>();
-        AtomicInteger numRepairs = new AtomicInteger(0);
-        BiConsumer<String, RangesForRepair> repairer = (table, _unused) -> {
-            numRepairs.incrementAndGet();
-            tablesRepaired.add(table);
-        };
-
-        List<TransactionsTableInteraction> interactions = ImmutableList.of(
-                new Transactions1TableInteraction(range(1L, 5L), POLICY),
-                new Transactions2TableInteraction(range(6L, 10L), POLICY),
-                new Transactions1TableInteraction(range(11L, 15L), POLICY),
-                new Transactions2TableInteraction(range(16L, 20L), POLICY));
-
-        cassandraRepairHelper.repairTransactionsTables(ATLAS_SERVICE, interactions, repairer);
-        assertThat(tablesRepaired)
-                .containsExactlyInAnyOrder(
-                        TransactionConstants.TRANSACTION_TABLE.getTableName(),
-                        TransactionConstants.TRANSACTIONS2_TABLE.getTableName());
-        assertThat(numRepairs).hasValue(2);
-    }
-
-    @Test
-    public void shouldGetRangesForBothReplicas() {
-        RangesForRepair ranges = CassandraRepairHelper.getRangesToRepair(cqlCluster, ATLAS_SERVICE, TABLE_1);
-        assertThat(ranges.tokenMap()).hasSize(2);
-    }
-
-    @Test
-    public void tokenRangesToRepairShouldBeSubsetsOfTokenMap() {
-        Map<CassandraServer, Set<Range<LightweightOppToken>>> fullTokenMap = getFullTokenMap();
-        RangesForRepair rangesToRepair = CassandraRepairHelper.getRangesToRepair(cqlCluster, ATLAS_SERVICE, TABLE_1);
-
-        KeyedStream.stream(rangesToRepair.tokenMap())
-                .forEach((address, cqlRangesForHost) ->
-                        assertRangesToRepairAreSubsetsOfRangesFromTokenMap(fullTokenMap, address, cqlRangesForHost));
-    }
-
-    // The ranges in CQL should be a subset of the Thrift ranges, except that the CQL ranges are also snipped,
-    // such that if the thrift range is [5..9] but we don't have data after 7, then the CQL range will be [5..7]
-    @SuppressWarnings({"DnsLookup", "ReverseDnsLookup", "UnstableApiUsage"})
-    private void assertRangesToRepairAreSubsetsOfRangesFromTokenMap(
-            Map<CassandraServer, Set<Range<LightweightOppToken>>> fullTokenMap,
-            InetSocketAddress address,
-            RangeSet<LightweightOppToken> cqlRangesForHost) {
-        String hostName = address.getHostName();
-        CassandraServer cassandraServer =
-                CassandraServer.of(new InetSocketAddress(hostName, MultiCassandraUtils.CASSANDRA_THRIFT_PORT));
-        assertThat(fullTokenMap.get(cassandraServer)).isNotNull();
-        Set<Range<LightweightOppToken>> thriftRanges = fullTokenMap.get(cassandraServer);
-
-        cqlRangesForHost.asRanges().forEach(range -> assertThat(
-                        thriftRanges.stream().anyMatch(containsEntirely(range)))
-                .isTrue());
-    }
-
-    private Predicate<Range<LightweightOppToken>> containsEntirely(Range<LightweightOppToken> range) {
-        return thriftRange -> safeLowerBound(thriftRange).equals(safeLowerBound(range))
-                && (thriftRange.hasUpperBound()
-                        ? range.hasUpperBound() && thriftRange.upperEndpoint().compareTo(range.upperEndpoint()) >= 0
-                        : !range.hasUpperBound());
-    }
-
-    private Optional<LightweightOppToken> safeLowerBound(Range<LightweightOppToken> range) {
-        return range.hasLowerBound() ? Optional.of(range.lowerEndpoint()) : Optional.empty();
-    }
-
-    // This needs to be Set<Range>, not a RangeSet, because we don't want to merge the token ranges for these tests.
-    private Map<CassandraServer, Set<Range<LightweightOppToken>>> getFullTokenMap() {
-        CassandraService cassandraService = CassandraService.createInitialized(
-                MetricsManagers.createForTests(),
-                config,
-                runtimeConfig,
-                new Blacklist(
-                        config,
-                        runtimeConfig.map(CassandraKeyValueServiceRuntimeConfig::unresponsiveHostBackoffTimeSeconds)),
-                new CassandraClientPoolMetrics(MetricsManagers.createForTests()));
-        return invert(cassandraService.getTokenMap());
-    }
-
-    @SuppressWarnings("UnstableApiUsage")
-    private Map<CassandraServer, Set<Range<LightweightOppToken>>> invert(
-            RangeMap<LightweightOppToken, ImmutableSet<CassandraServer>> tokenMap) {
-        Map<CassandraServer, Set<Range<LightweightOppToken>>> invertedMap = new HashMap<>();
-        tokenMap.asMapOfRanges()
-                .forEach((range, addresses) -> addresses.forEach(address -> {
-                    Set<Range<LightweightOppToken>> existingRanges = invertedMap.getOrDefault(address, new HashSet<>());
-                    existingRanges.add(range);
-                    invertedMap.put(address, existingRanges);
-                }));
-
-        return invertedMap;
-    }
-
-    private static FullyBoundedTimestampRange range(long lower, long upper) {
-        return FullyBoundedTimestampRange.of(Range.closed(lower, upper));
-    }
-}u}(jt  (1859fc8d2d57dc2b3a048c08afb963f513a0ac9aj  Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraTimeLockTestSuite.javaj  modifiedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -30,7 +30,6 @@
     TargetedSweepEteTest.class,
     CassandraTimestampsEteTest.class,
     TimestampManagementEteTest.class,
-    BackupAndRestoreEteTest.class,
     CoordinationEteTest.class,
     MultipleSchemaVersionsCoordinationEteTest.class,
     LockWithTimelockEteTest.classu}(jt  (109be1b7d642644c9591802edef6b6e873968824j  Uatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/MultiCassandraTestSuite.javaj  modifiedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FMultiCassandraTestSuite.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FMultiCassandraTestSuite.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FMultiCassandraTestSuite.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  @@ -26,7 +26,6 @@
 
 @RunWith(Suite.class)
 @Suite.SuiteClasses({
-    CassandraRepairEteTest.class,
     TodoEteTest.class,
     ServiceExposureEteTest.class,
     MultiCassandraSingleNodeDownEteTest.class,u}(jt  (7ffa2fefee8958ba1a2ce1a90aef690293f911a2j  fatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X0  @@ -32,7 +32,6 @@
 import com.palantir.atlasdb.transaction.encoding.TwoPhaseEncodingStrategy;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.exception.AtlasDbDependencyException;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.common.time.Clock;
@@ -177,13 +176,10 @@ private FollowUpAction touchAndReturn(CellInfo cellAndValue) {
         } catch (CheckAndSetException e) {
             long startTs = cellAndValue.startTs();
             AtomicValue<TransactionStatus> currentValue = encodingStrategy.decodeValueAsCommitStatus(startTs, actual);
-            TransactionStatus commitStatus = currentValue.value();
             AtomicValue<TransactionStatus> kvsValue =
                     encodingStrategy.decodeValueAsCommitStatus(startTs, Iterables.getOnlyElement(e.getActualValues()));
             Preconditions.checkState(
-                    kvsValue.isCommitted()
-                            && TransactionStatuses.getCommitTimestamp(kvsValue.value())
-                                    .equals(TransactionStatuses.getCommitTimestamp(commitStatus)),
+                    kvsValue.isCommitted() && kvsValue.value().equals(currentValue.value()),
                     "Failed to persist a staging value for commit timestamp because an unexpected value "
                             + "was found in the KVS",
                     SafeArg.of("kvsValue", kvsValue),u}(jt  (1240bb172017e3e15ccf95f6e1f3ed08b526e789j  aatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/atomic/TimestampExtractingAtomicTable.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTable.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTable.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X]  @@ -22,7 +22,6 @@
 import com.palantir.atlasdb.keyvalue.api.KeyAlreadyExistsException;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.Map;
@@ -63,7 +62,7 @@ public ListenableFuture<Map<Long, Long>> get(Iterable<Long> keys) {
         return Futures.transform(
                 delegate.get(keys),
                 statuses -> {
-                    if (statuses.values().stream().anyMatch(TransactionStatuses.unknown()::equals)) {
+                    if (statuses.values().stream().anyMatch(TransactionStatus.unknown()::equals)) {
                         throw new SafeIllegalStateException("There has been a mistake in the wiring as "
                                 + "transactions that do not support transaction table sweep should not be seeing "
                                 + "`unknown` transaction status.");u}(jt  (a25afbbd55977ee4a1b82d1a983a012dc886d075j  _atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/cleaner/KeyValueServicePuncherStore.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FKeyValueServicePuncherStore.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FKeyValueServicePuncherStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FKeyValueServicePuncherStore.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -41,6 +41,7 @@
 import java.util.Optional;
 import java.util.concurrent.ThreadLocalRandom;
 import java.util.concurrent.TimeUnit;
+import org.checkerframework.checker.nullness.qual.Nullable;
 import org.immutables.value.Value.Check;
 import org.immutables.value.Value.Immutable;
 
@@ -185,7 +186,7 @@ public static long getMillisForTimestamp(KeyValueService kvs, long timestamp) {
      * within the specified bounds.
      */
     public static Optional<MillisAndMaybeTimestamp> getMillisForTimestampWithinBounds(
-            KeyValueService kvs, long timestamp, MillisAndMaybeTimestamp lowerBound, long upperBound) {
+            KeyValueService kvs, long timestamp, @Nullable MillisAndMaybeTimestamp lowerBound, long upperBound) {
         MillisAndMaybeTimestamp lowerBoundToUse =
                 Optional.ofNullable(lowerBound).orElseGet(() -> findOlder(kvs, timestamp, upperBound));
 u}(jt  (f73bbbac2af66443ccebcf6a3c7ed2da9b42b493j  fatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/internalschema/InternalSchemaMetadataState.javaj  removedj  K j  K,j  K,j  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Finternalschema%2FInternalSchemaMetadataState.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Finternalschema%2FInternalSchemaMetadataState.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Finternalschema%2FInternalSchemaMetadataState.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X  @@ -1,44 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.internalschema;
-
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.palantir.atlasdb.coordination.ValueAndBound;
-import java.util.Optional;
-import org.immutables.value.Value;
-
-@Value.Immutable
-@JsonSerialize(as = ImmutableInternalSchemaMetadataState.class)
-@JsonDeserialize(as = ImmutableInternalSchemaMetadataState.class)
-public abstract class InternalSchemaMetadataState {
-    public abstract Optional<ValueAndBound<InternalSchemaMetadata>> value();
-
-    @Override
-    public String toString() {
-        return value().toString();
-    }
-
-    public static InternalSchemaMetadataState of(Optional<ValueAndBound<InternalSchemaMetadata>> value) {
-        return value.map(InternalSchemaMetadataState::of)
-                .orElseGet(() -> ImmutableInternalSchemaMetadataState.builder().build());
-    }
-
-    public static InternalSchemaMetadataState of(ValueAndBound<InternalSchemaMetadata> value) {
-        return ImmutableInternalSchemaMetadataState.builder().value(value).build();
-    }
-}u}(jt  (7cec9291798ecfcf36a78c28f59165b6af8b6a10j  ^atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/cache/StructureHolder.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FStructureHolder.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FStructureHolder.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FStructureHolder.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X=  @@ -23,7 +23,7 @@
  * Utility class to make manipulating {@link io.vavr.collection.Map} and {@link io.vavr.collection.Set} less
  * error-prone as all methods that modify state return a *new* instance in vavr.
  */
-final class StructureHolder<V> {
+public final class StructureHolder<V> {
     private final Supplier<V> initialValueSupplier;
     private V structure;
 
@@ -32,23 +32,23 @@ private StructureHolder(Supplier<V> initialValueSupplier) {
         this.structure = initialValueSupplier.get();
     }
 
-    synchronized void with(Function<V, V> mutator) {
+    public synchronized void with(Function<V, V> mutator) {
         structure = mutator.apply(structure);
     }
 
-    synchronized V getSnapshot() {
+    public synchronized V getSnapshot() {
         return structure;
     }
 
-    synchronized <K> K apply(Function<V, K> function) {
+    public synchronized <K> K apply(Function<V, K> function) {
         return function.apply(structure);
     }
 
-    synchronized void resetToInitialValue() {
+    public synchronized void resetToInitialValue() {
         structure = initialValueSupplier.get();
     }
 
-    static <V> StructureHolder<V> create(Supplier<V> initialValue) {
+    public static <V> StructureHolder<V> create(Supplier<V> initialValue) {
         return new StructureHolder<>(initialValue);
     }
 }u}(jt  (8998869ed08a7e30d96c016b7470e3e524faa8c5j  Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/BackgroundSweepThread.javaj  modifiedj  Kj  K	j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XB  @@ -39,6 +39,8 @@
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.TimeUnit;
+import java.util.function.BooleanSupplier;
+import java.util.function.LongSupplier;
 import java.util.function.Supplier;
 
 public class BackgroundSweepThread implements Runnable {
@@ -49,8 +51,8 @@ public class BackgroundSweepThread implements Runnable {
     private final SweepOutcomeMetrics sweepOutcomeMetrics;
     private final SpecificTableSweeper specificTableSweeper;
     private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-    private final Supplier<Long> sweepPauseMillis;
-    private final Supplier<Boolean> isSweepEnabled;
+    private final LongSupplier sweepPauseMillis;
+    private final BooleanSupplier isSweepEnabled;
     private final Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig;
     private final NextTableToSweepProvider nextTableToSweepProvider;
     private final CountDownLatch shuttingDown;
@@ -64,8 +66,8 @@ public static BackgroundSweepThread createForTests(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper,
             MetricsManager metricsManager) {
@@ -86,8 +88,8 @@ public static BackgroundSweepThread createForTests(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper,
             SweepOutcomeMetrics sweepOutcomeMetrics,
@@ -190,7 +192,7 @@ private Duration getSleepDuration(Optional<SweepOutcome> maybeOutcome) {
         return maybeOutcome
                 .flatMap(outcome -> {
                     if (outcome == SweepOutcome.SUCCESS) {
-                        return Optional.of(Duration.ofMillis(sweepPauseMillis.get()));
+                        return Optional.of(Duration.ofMillis(sweepPauseMillis.getAsLong()));
                     } else if (outcome == SweepOutcome.NOTHING_TO_SWEEP) {
                         return Optional.of(getBackoffTimeWhenNothingToSweep());
                     } else {
@@ -202,7 +204,7 @@ private Duration getSleepDuration(Optional<SweepOutcome> maybeOutcome) {
 
     @VisibleForTesting
     Optional<SweepOutcome> checkConfigAndRunSweep(SingleLockService locks) throws InterruptedException {
-        if (isSweepEnabled.get()) {
+        if (isSweepEnabled.getAsBoolean()) {
             return Optional.of(grabLocksAndRun(locks));
         }
 
@@ -233,7 +235,7 @@ private SweepOutcome grabLocksAndRun(SingleLockService locks) throws Interrupted
     }
 
     private Duration getBackoffTimeWhenSweepHasNotRun() {
-        return Duration.ofMillis(sweepPauseMillis.get()).plusSeconds(1).multipliedBy(20); // 2 minutes by default
+        return Duration.ofMillis(sweepPauseMillis.getAsLong()).plusSeconds(1).multipliedBy(20); // 2 minutes by default
     }
 
     private Duration getBackoffTimeWhenNothingToSweep() {u}(jt  (44bc31882603500ba427d3970ff3730e2b7b3a21j  Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/BackgroundSweeperImpl.javaj  modifiedj  K
j  K
j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -27,6 +27,9 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
+import java.util.function.BooleanSupplier;
+import java.util.function.IntSupplier;
+import java.util.function.LongSupplier;
 import java.util.function.Supplier;
 
 public final class BackgroundSweeperImpl implements BackgroundSweeper, AutoCloseable {
@@ -35,16 +38,16 @@ public final class BackgroundSweeperImpl implements BackgroundSweeper, AutoClose
     private static final long MAX_DAEMON_CLEAN_SHUTDOWN_TIME_MILLIS = 10_000;
 
     // Thread management
-    private final Supplier<Integer> sweepThreads;
+    private final IntSupplier sweepThreads;
     private Set<Thread> daemons;
     private final CountDownLatch shuttingDown = new CountDownLatch(1);
 
     // Shared between threads
     private final LockService lockService;
     private final NextTableToSweepProvider nextTableToSweepProvider;
     private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-    private final Supplier<Boolean> isSweepEnabled;
-    private final Supplier<Long> sweepPauseMillis;
+    private final BooleanSupplier isSweepEnabled;
+    private final LongSupplier sweepPauseMillis;
     private final Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig;
     private final SpecificTableSweeper specificTableSweeper;
     private final SweepOutcomeMetrics sweepOutcomeMetrics;
@@ -54,9 +57,9 @@ private BackgroundSweeperImpl(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Integer> sweepThreads,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            IntSupplier sweepThreads,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper) {
         this.sweepOutcomeMetrics = SweepOutcomeMetrics.registerLegacy(metricsManager);
@@ -73,9 +76,9 @@ private BackgroundSweeperImpl(
     public static BackgroundSweeperImpl create(
             MetricsManager metricsManager,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Integer> sweepThreads,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            IntSupplier sweepThreads,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper) {
         NextTableToSweepProvider nextTableToSweepProvider = NextTableToSweepProvider.create(
@@ -98,7 +101,7 @@ public static BackgroundSweeperImpl create(
     @Override
     public synchronized void runInBackground() {
         Preconditions.checkState(daemons == null);
-        int numThreads = sweepThreads.get();
+        int numThreads = sweepThreads.getAsInt();
         daemons = Sets.newHashSetWithExpectedSize(numThreads);
 
         for (int idx = 1; idx <= numThreads; idx++) {u}(jt  (02fd2f3ca2aca4164d40955a1e90f300421e02dcj  Patlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweeperService.javaj  removedj  K j  Kbj  Kbj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperService.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperService.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperService.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X-  @@ -1,98 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import com.palantir.logsafe.Safe;
-import java.util.Optional;
-import javax.ws.rs.Consumes;
-import javax.ws.rs.POST;
-import javax.ws.rs.Path;
-import javax.ws.rs.Produces;
-import javax.ws.rs.QueryParam;
-import javax.ws.rs.core.MediaType;
-
-/**
- * Provides endpoints for sweeping a specific table.
- */
-@Path("/sweep")
-@Produces(MediaType.APPLICATION_JSON)
-@Consumes(MediaType.APPLICATION_JSON)
-public interface SweeperService {
-
-    default SweepTableResponse sweepTableFully(String tableName) {
-        return sweepTable(
-                tableName, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
-    }
-
-    default SweepTableResponse sweepTableFrom(String tableName, String startRow) {
-        return sweepTable(
-                tableName,
-                Optional.of(startRow),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-    }
-
-    /**
-     * Sweeps a particular table.
-     *
-     * @param tableName the table to sweep, in the format namespace.table_name (e.g. myapp.users)
-     * @param startRow (Optional) the row to start from, encoded as a hex string (e.g. 12345abcde)
-     * @param fullSweep (Optional; default true) whether to sweep the full table; if false just runs one batch
-     * @param maxCellTsPairsToExamine (Optional) see {@link SweepBatchConfig#maxCellTsPairsToExamine()}
-     * @param candidateBatchSize (Optional) see {@link SweepBatchConfig#candidateBatchSize()}
-     * @param deleteBatchSize (Optional) see {@link SweepBatchConfig#deleteBatchSize()}
-     */
-    @POST
-    @Path("sweep-table")
-    SweepTableResponse sweepTable(
-            @QueryParam("tablename") String tableName,
-            @QueryParam("startRow") Optional<String> startRow,
-            @Safe @QueryParam("fullSweep") Optional<Boolean> fullSweep,
-            @Safe @QueryParam("maxCellTsPairsToExamine") Optional<Integer> maxCellTsPairsToExamine,
-            @Safe @QueryParam("candidateBatchSize") Optional<Integer> candidateBatchSize,
-            @Safe @QueryParam("deleteBatchSize") Optional<Integer> deleteBatchSize);
-
-    /**
-     * Sweeps a table, but intentionally probabilistically skips a fraction of eligible entries to prevent issues that
-     * might arise from having too many consecutive deletes in the underlying KVS. This is expected to be safe to
-     * invoke at least twice without cleanup at the KVS level, but generally the expected usage is to run once, and
-     * then invoke {@link #sweepTable(String, Optional, Optional, Optional, Optional, Optional)} to clean any
-     * skipped values once KVS cleanup, such as compactions, is done.
-     *
-     * Implementation must respect the usual sweep guarantee: no (possibly in-flight) transaction may as a result of
-     * this operation read a version (or lack of one) of a cell different than it would have read if this operation had
-     * not run, and still succeed. In particular, this means that if any version of a cell is retained, then also the
-     * latest version prior to the sweep timestamp of the same cell must not be removed (even if it is a delete).
-     *
-     * @param tableName the table to sweep, in the format namespace.table_name (e.g. myapp.users)
-     * @param startRow (Optional) the row to start from, encoded as a hex string (e.g. 12345abcde)
-     * @param fullSweep (Optional; default true) whether to sweep the full table; if false just runs one batch
-     * @param maxCellTsPairsToExamine (Optional) see {@link SweepBatchConfig#maxCellTsPairsToExamine()}
-     * @param candidateBatchSize (Optional) see {@link SweepBatchConfig#candidateBatchSize()}
-     * @param deleteBatchSize (Optional) see {@link SweepBatchConfig#deleteBatchSize()}
-     */
-    @POST
-    @Path("sweep-previously-conservative-now-thorough-table")
-    SweepTableResponse sweepPreviouslyConservativeNowThoroughTable(
-            @QueryParam("tablename") String tableName,
-            @QueryParam("startRow") Optional<String> startRow,
-            @Safe @QueryParam("fullSweep") Optional<Boolean> fullSweep,
-            @Safe @QueryParam("maxCellTsPairsToExamine") Optional<Integer> maxCellTsPairsToExamine,
-            @Safe @QueryParam("candidateBatchSize") Optional<Integer> candidateBatchSize,
-            @Safe @QueryParam("deleteBatchSize") Optional<Integer> deleteBatchSize);
-}u}(jt  (a043b1f465845d038463867d0cef3a602201da50j  Tatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweeperServiceImpl.javaj  removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImpl.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImpl.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImpl.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X.  @@ -1,169 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.SweepResults;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
-import com.palantir.atlasdb.logging.LoggingArgs;
-import com.palantir.logsafe.Preconditions;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.UnsafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.Optional;
-
-public final class SweeperServiceImpl implements SweeperService {
-    private static final SafeLogger log = SafeLoggerFactory.get(SweeperServiceImpl.class);
-
-    private final SpecificTableSweeper specificTableSweeper;
-    private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-
-    public SweeperServiceImpl(
-            SpecificTableSweeper specificTableSweeper, AdjustableSweepBatchConfigSource sweepBatchConfigSource) {
-        this.specificTableSweeper = specificTableSweeper;
-        this.sweepBatchConfigSource = sweepBatchConfigSource;
-    }
-
-    @Override
-    public SweepTableResponse sweepTable(
-            String tableName,
-            Optional<String> startRow,
-            Optional<Boolean> fullSweep,
-            Optional<Integer> maxCellTsPairsToExamine,
-            Optional<Integer> candidateBatchSize,
-            Optional<Integer> deleteBatchSize) {
-        TableReference tableRef = getTableRef(tableName);
-        checkTableExists(tableName, tableRef);
-
-        byte[] decodedStartRow = startRow.map(PtBytes::decodeHexString).orElse(PtBytes.EMPTY_BYTE_ARRAY);
-        SweepBatchConfig config =
-                buildConfigWithOverrides(maxCellTsPairsToExamine, candidateBatchSize, deleteBatchSize);
-
-        return SweepTableResponse.from(
-                runSweep(fullSweep, tableRef, decodedStartRow, config, SweepTaskRunner.RunType.FULL));
-    }
-
-    @Override
-    public SweepTableResponse sweepPreviouslyConservativeNowThoroughTable(
-            String tableName,
-            Optional<String> startRow,
-            Optional<Boolean> fullSweep,
-            Optional<Integer> maxCellTsPairsToExamine,
-            Optional<Integer> candidateBatchSize,
-            Optional<Integer> deleteBatchSize) {
-        TableReference tableRef = getTableRef(tableName);
-        checkTableExists(tableName, tableRef);
-
-        byte[] decodedStartRow = startRow.map(PtBytes::decodeHexString).orElse(PtBytes.EMPTY_BYTE_ARRAY);
-        SweepBatchConfig config =
-                buildConfigWithOverrides(maxCellTsPairsToExamine, candidateBatchSize, deleteBatchSize);
-
-        return SweepTableResponse.from(runSweep(
-                fullSweep, tableRef, decodedStartRow, config, SweepTaskRunner.RunType.WAS_CONSERVATIVE_NOW_THOROUGH));
-    }
-
-    private SweepResults runSweep(
-            Optional<Boolean> fullSweep,
-            TableReference tableRef,
-            byte[] decodedStartRow,
-            SweepBatchConfig config,
-            SweepTaskRunner.RunType runType) {
-        if (!fullSweep.isPresent()) {
-            log.warn("fullSweep parameter was not specified, defaulting to true");
-        }
-
-        if (fullSweep.orElse(true)) {
-            log.info(
-                    "Running sweep of full table {}, "
-                            + "with maxCellTsPairsToExamine: {}, candidateBatchSize: {}, deleteBatchSize: {}, "
-                            + "starting from row {}",
-                    LoggingArgs.tableRef(tableRef),
-                    SafeArg.of("maxCellTsPairsToExamine", config.maxCellTsPairsToExamine()),
-                    SafeArg.of("candidateBatchSize", config.candidateBatchSize()),
-                    SafeArg.of("deleteBatchSize", config.deleteBatchSize()),
-                    UnsafeArg.of("decodedStartRow", decodedStartRow));
-            return runFullSweepWithoutSavingResults(tableRef, decodedStartRow, config, runType);
-        } else {
-            log.info(
-                    "Running sweep of a single batch on table {}, "
-                            + "with maxCellTsPairsToExamine: {}, candidateBatchSize: {}, deleteBatchSize: {}, "
-                            + "starting from row {}",
-                    LoggingArgs.tableRef(tableRef),
-                    SafeArg.of("maxCellTsPairsToExamine", config.maxCellTsPairsToExamine()),
-                    SafeArg.of("candidateBatchSize", config.candidateBatchSize()),
-                    SafeArg.of("deleteBatchSize", config.deleteBatchSize()),
-                    UnsafeArg.of("decodedStartRow", decodedStartRow));
-            return runOneBatchWithoutSavingResults(tableRef, decodedStartRow, config, runType);
-        }
-    }
-
-    private SweepBatchConfig buildConfigWithOverrides(
-            Optional<Integer> maxCellTsPairsToExamine,
-            Optional<Integer> candidateBatchSize,
-            Optional<Integer> deleteBatchSize) {
-        ImmutableSweepBatchConfig.Builder batchConfigBuilder =
-                ImmutableSweepBatchConfig.builder().from(sweepBatchConfigSource.getAdjustedSweepConfig());
-
-        maxCellTsPairsToExamine.ifPresent(batchConfigBuilder::maxCellTsPairsToExamine);
-        candidateBatchSize.ifPresent(batchConfigBuilder::candidateBatchSize);
-        deleteBatchSize.ifPresent(batchConfigBuilder::deleteBatchSize);
-
-        return batchConfigBuilder.build();
-    }
-
-    private TableReference getTableRef(String tableName) {
-        Preconditions.checkArgument(
-                TableReference.isFullyQualifiedName(tableName),
-                "Table name is not fully qualified",
-                LoggingArgs.safeInternalTableName(tableName));
-        return TableReference.createFromFullyQualifiedName(tableName);
-    }
-
-    private void checkTableExists(String tableName, TableReference tableRef) {
-        Preconditions.checkArgument(
-                specificTableSweeper.getKvs().getAllTableNames().contains(tableRef),
-                "Table requested to sweep does not exist",
-                LoggingArgs.safeInternalTableName(tableName));
-    }
-
-    private SweepResults runFullSweepWithoutSavingResults(
-            TableReference tableRef,
-            byte[] startRow,
-            SweepBatchConfig sweepBatchConfig,
-            SweepTaskRunner.RunType runType) {
-        SweepResults cumulativeResults = SweepResults.createEmptySweepResult(Optional.of(startRow));
-
-        while (cumulativeResults.getNextStartRow().isPresent()) {
-            SweepResults results = runOneBatchWithoutSavingResults(
-                    tableRef, cumulativeResults.getNextStartRow().get(), sweepBatchConfig, runType);
-
-            specificTableSweeper.updateTimeMetricsOneIteration(
-                    results.getTimeInMillis(), results.getTimeElapsedSinceStartedSweeping());
-            cumulativeResults = cumulativeResults.accumulateWith(results);
-        }
-
-        return cumulativeResults;
-    }
-
-    private SweepResults runOneBatchWithoutSavingResults(
-            TableReference tableRef,
-            byte[] startRow,
-            SweepBatchConfig sweepBatchConfig,
-            SweepTaskRunner.RunType runType) {
-        return specificTableSweeper.runOneIteration(tableRef, startRow, sweepBatchConfig, runType);
-    }
-}u     }(jt  (98088205de8d1e7b8472112b1ed3c692920135c1j  hatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/encoding/TicketsEncodingStrategy.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategy.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategy.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategy.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X2
  @@ -20,7 +20,8 @@
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Aborted;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Arrays;
@@ -59,25 +60,26 @@ public long decodeCellAsStartTimestamp(Cell cell) {
     }
 
     @Override
-    public byte[] encodeCommitStatusAsValue(long startTimestamp, TransactionStatus commitStatus) {
-        return TransactionStatuses.caseOf(commitStatus)
-                .committed(ts -> TransactionConstants.getValueForTimestamp(ts - startTimestamp))
-                .aborted_(TransactionConstants.TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE)
-                .otherwise(() -> {
-                    throw new SafeIllegalArgumentException(
-                            "Unexpected transaction status", SafeArg.of("status", commitStatus));
-                });
+    public byte[] encodeCommitStatusAsValue(long startTimestamp, TransactionStatus status) {
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return TransactionConstants.getValueForTimestamp(committed.commitTimestamp() - startTimestamp);
+        } else if (status instanceof Aborted) {
+            return TransactionConstants.TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE;
+        } else {
+            throw new SafeIllegalArgumentException("Unexpected transaction status", SafeArg.of("status", status));
+        }
     }
 
     @Override
     public TransactionStatus decodeValueAsCommitStatus(long startTimestamp, byte[] value) {
         if (value == null) {
-            return TransactionConstants.IN_PROGRESS;
+            return TransactionStatus.inProgress();
         }
         if (Arrays.equals(value, TransactionConstants.TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE)) {
-            return TransactionConstants.ABORTED;
+            return TransactionStatus.aborted();
         }
-        return TransactionStatuses.committed(startTimestamp + TransactionConstants.getTimestampForValue(value));
+        return TransactionStatus.committed(startTimestamp + TransactionConstants.getTimestampForValue(value));
     }
 
     public Stream<byte[]> getRowSetCoveringTimestampRange(long fromInclusive, long toInclusive) {u}(jt  (48ed8037c90f16ac56dce747642fb90047ae4127j  iatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/encoding/TwoPhaseEncodingStrategy.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTwoPhaseEncodingStrategy.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTwoPhaseEncodingStrategy.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTwoPhaseEncodingStrategy.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -22,7 +22,6 @@
 import com.palantir.atlasdb.ptobject.EncodingUtils;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
@@ -35,7 +34,7 @@ public final class TwoPhaseEncodingStrategy
     private static final byte[] COMMITTED = new byte[] {1};
 
     private static final AtomicValue<TransactionStatus> IN_PROGRESS_COMMITTED =
-            AtomicValue.committed(TransactionConstants.IN_PROGRESS);
+            AtomicValue.committed(TransactionStatus.inProgress());
     public static final byte[] ABORTED_TRANSACTION_COMMITTED_VALUE =
             EncodingUtils.add(TransactionConstants.TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE, COMMITTED);
     public static final byte[] ABORTED_TRANSACTION_STAGING_VALUE =
@@ -69,7 +68,7 @@ public AtomicValue<TransactionStatus> decodeNullValueAsCommitStatus() {
         }
         // `null` value is the in_progress marker for transaction schema <= 3. For transaction schema > 3, we have an
         // explicit in-progress marker and a null values represents that the table has been swept.
-        return AtomicValue.committed(TransactionStatuses.unknown());
+        return AtomicValue.committed(TransactionStatus.unknown());
     }
 
     @Overrideu}(jt  (332546bb3f57de279d692beddd67f9a12bbff65fj  catlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/encoding/V1EncodingStrategy.javaj  modifiedj  Kj  K
j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FV1EncodingStrategy.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FV1EncodingStrategy.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FV1EncodingStrategy.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XT  @@ -20,7 +20,8 @@
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Aborted;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 
@@ -39,20 +40,21 @@ public long decodeCellAsStartTimestamp(Cell cell) {
     }
 
     @Override
-    public byte[] encodeCommitStatusAsValue(long _ignoredStartTimestamp, TransactionStatus commitStatus) {
-        return TransactionStatuses.caseOf(commitStatus)
-                .committed(TransactionConstants::getValueForTimestamp)
-                .aborted_(TransactionConstants.DIRECT_ENCODING_ABORTED_TRANSACTION_VALUE)
-                .otherwise(() -> {
-                    throw new SafeIllegalStateException(
-                            "Illegal transaction status", SafeArg.of("status", commitStatus));
-                });
+    public byte[] encodeCommitStatusAsValue(long _ignoredStartTimestamp, TransactionStatus status) {
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return TransactionConstants.getValueForTimestamp(committed.commitTimestamp());
+        } else if (status instanceof Aborted) {
+            return TransactionConstants.DIRECT_ENCODING_ABORTED_TRANSACTION_VALUE;
+        } else {
+            throw new SafeIllegalStateException("Illegal transaction status", SafeArg.of("status", status));
+        }
     }
 
     @Override
     public TransactionStatus decodeValueAsCommitStatus(long _ignoredStartTimestamp, byte[] value) {
         if (value == null) {
-            return TransactionConstants.IN_PROGRESS;
+            return TransactionStatus.inProgress();
         }
 
         return TransactionStatusUtils.fromTimestamp(TransactionConstants.getTimestampForValue(value));u}(jt  (873fe01fb2bcd122671ed8446a4741d208fbfa02j  katlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AdvisoryLockConditionSuppliers.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -79,10 +79,13 @@ private static HeldLocksToken acquireLock(LockService lockService, LockRequest l
                     case BLOCK_UNTIL_TIMEOUT:
                     case BLOCK_INDEFINITELY:
                     case BLOCK_INDEFINITELY_THEN_RELEASE:
-                        log.warn("Could not lock successfully", ex);
                         ++failureCount;
+                        log.warn("Could not lock successfully", SafeArg.of("failureCount", failureCount), ex);
                         if (failureCount >= NUM_RETRIES) {
-                            log.warn("Failing after {} tries", SafeArg.of("failureCount", failureCount), ex);
+                            log.warn(
+                                    "Failing after exceeding maximum tries",
+                                    SafeArg.of("failureCount", failureCount),
+                                    ex);
                             throw ex;
                         }
                         break;u}(jt  (b360e6e7298b91b238d9122bff9320bf177b827fj  batlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoader.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -31,7 +31,6 @@
 import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
 import com.palantir.atlasdb.transaction.service.AsyncTransactionService;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
@@ -141,13 +140,13 @@ private Map<Long, Long> cacheKnownLoadedValuesAndValidate(Map<Long, TransactionS
             long start = entry.getKey();
             TransactionStatus commitStatus = entry.getValue();
 
-            if (commitStatus.equals(TransactionStatuses.inProgress())) {
+            if (commitStatus.equals(TransactionStatus.inProgress())) {
                 continue;
             }
 
             long commitTs = TransactionStatusUtils.getCommitTsFromStatus(
                     start, commitStatus, abortedTransactionsCache::isKnownAbandoned);
-            if (commitStatus.equals(TransactionStatuses.unknown())) {
+            if (commitStatus.equals(TransactionStatus.unknown())) {
                 shouldValidate = true;
             } else {
                 timestampCache.putAlreadyCommittedTransaction(start, commitTs);u}(jt  (c21d1aa3124d06afc5fdd1da967841c89f2e7319j  ratlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/ShouldNotDeleteAndRollbackTransaction.javaj  removedj  K j  Kyj  Kyj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FShouldNotDeleteAndRollbackTransaction.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FShouldNotDeleteAndRollbackTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FShouldNotDeleteAndRollbackTransaction.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X  @@ -1,121 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.transaction.impl;
-
-import com.palantir.atlasdb.cache.TimestampCache;
-import com.palantir.atlasdb.cleaner.NoOpCleaner;
-import com.palantir.atlasdb.debug.ConflictTracer;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.watch.NoOpLockWatchManager;
-import com.palantir.atlasdb.sweep.queue.MultiTableSweepQueueWriter;
-import com.palantir.atlasdb.transaction.TransactionConfig;
-import com.palantir.atlasdb.transaction.api.AtlasDbConstraintCheckingMode;
-import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
-import com.palantir.atlasdb.transaction.impl.metrics.SimpleTableLevelMetricsController;
-import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
-import com.palantir.atlasdb.transaction.service.TransactionService;
-import com.palantir.atlasdb.util.MetricsManager;
-import java.util.List;
-import java.util.Optional;
-import java.util.concurrent.AbstractExecutorService;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.TimeUnit;
-import java.util.function.Supplier;
-
-/**
- * This will read the values of all committed transactions.
- */
-public class ShouldNotDeleteAndRollbackTransaction extends SnapshotTransaction {
-
-    private static final ExecutorService IGNORING_EXECUTOR = new AbstractExecutorService() {
-        @Override
-        public void shutdown() {}
-
-        @Override
-        public List<Runnable> shutdownNow() {
-            return null;
-        }
-
-        @Override
-        public boolean isShutdown() {
-            return false;
-        }
-
-        @Override
-        public boolean isTerminated() {
-            return false;
-        }
-
-        @Override
-        public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException {
-            return false;
-        }
-
-        @Override
-        public void execute(Runnable command) {
-            // Should not be called
-        }
-    };
-
-    public ShouldNotDeleteAndRollbackTransaction(
-            MetricsManager metricsManager,
-            KeyValueService keyValueService,
-            TransactionService transactionService,
-            long startTimeStamp,
-            AtlasDbConstraintCheckingMode constraintCheckingMode,
-            TransactionReadSentinelBehavior readSentinelBehavior,
-            boolean allowHiddenTableAccess,
-            TimestampCache timestampCache,
-            ExecutorService getRangesExecutor,
-            int defaultGetRangesConcurrency,
-            Supplier<TransactionConfig> transactionConfig,
-            TransactionKnowledgeComponents knowledge) {
-        super(
-                metricsManager,
-                keyValueService,
-                null,
-                NoOpLockWatchManager.create(),
-                transactionService,
-                NoOpCleaner.INSTANCE,
-                () -> startTimeStamp,
-                ConflictDetectionManagers.createWithNoConflictDetection(),
-                SweepStrategyManagers.createDefault(keyValueService),
-                startTimeStamp,
-                Optional.empty(),
-                PreCommitConditions.NO_OP,
-                constraintCheckingMode,
-                null,
-                readSentinelBehavior,
-                allowHiddenTableAccess,
-                timestampCache,
-                getRangesExecutor,
-                defaultGetRangesConcurrency,
-                MultiTableSweepQueueWriter.NO_OP,
-                IGNORING_EXECUTOR,
-                true,
-                transactionConfig,
-                ConflictTracer.NO_OP,
-                new SimpleTableLevelMetricsController(metricsManager),
-                knowledge);
-    }
-
-    @Override
-    protected boolean shouldDeleteAndRollback() {
-        // We don't want to delete any data or roll back any transactions because we don't participate in the
-        // transaction protocol.  We just want to skip over anything we find that isn't committed
-        return false;
-    }
-}u}(jt  (4d13603f168edbd66a401b0f573473fe144b24a4j  `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj  modifiedj  Kkj  K"j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X/A  @@ -43,6 +43,7 @@
 import com.google.common.collect.SetMultimap;
 import com.google.common.collect.Sets;
 import com.google.common.collect.Streams;
+import com.google.common.io.Closer;
 import com.google.common.primitives.UnsignedBytes;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
@@ -96,6 +97,9 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
+import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueServiceImpl;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.TransactionOutcomeMetrics;
 import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
@@ -151,10 +155,12 @@
 import java.util.List;
 import java.util.Map;
 import java.util.NavigableMap;
+import java.util.NoSuchElementException;
 import java.util.Objects;
 import java.util.Optional;
 import java.util.Set;
 import java.util.SortedMap;
+import java.util.SortedSet;
 import java.util.TreeMap;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ConcurrentMap;
@@ -216,7 +222,7 @@ private enum State {
 
     protected final TimelockService timelockService;
     protected final LockWatchManagerInternal lockWatchManager;
-    final KeyValueService keyValueService;
+    final TrackingKeyValueService keyValueService;
     final AsyncKeyValueService immediateKeyValueService;
     final TransactionService defaultTransactionService;
     private final AsyncTransactionService immediateTransactionService;
@@ -265,6 +271,7 @@ private enum State {
     protected final TimestampCache timestampCache;
 
     protected final TransactionKnowledgeComponents knowledge;
+    protected final Closer closer = Closer.create();
 
     /**
      * @param immutableTimestamp If we find a row written before the immutableTimestamp we don't need to grab a read
@@ -273,7 +280,7 @@ private enum State {
      */
     /* package */ SnapshotTransaction(
             MetricsManager metricsManager,
-            KeyValueService keyValueService,
+            KeyValueService delegateKeyValueService,
             TimelockService timelockService,
             LockWatchManagerInternal lockWatchManager,
             TransactionService transactionService,
@@ -302,7 +309,7 @@ private enum State {
         this.lockWatchManager = lockWatchManager;
         this.conflictTracer = conflictTracer;
         this.transactionTimerContext = getTimer("transactionMillis").time();
-        this.keyValueService = keyValueService;
+        this.keyValueService = new TrackingKeyValueServiceImpl(delegateKeyValueService);
         this.immediateKeyValueService = KeyValueServices.synchronousAsAsyncKeyValueService(keyValueService);
         this.timelockService = timelockService;
         this.defaultTransactionService = transactionService;
@@ -447,7 +454,7 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
         if (Iterables.isEmpty(rows)) {
             return Collections.emptyIterator();
         }
-        Iterable<byte[]> stableRows = ImmutableList.copyOf(rows);
+        ImmutableList<byte[]> stableRows = ImmutableList.copyOf(rows);
         hasReads = true;
         RowColumnRangeIterator rawResults = keyValueService.getRowsColumnRange(
                 tableRef, stableRows, columnRangeSelection, batchHint, getStartTimestamp());
@@ -457,34 +464,38 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
 
         BatchColumnRangeSelection batchColumnRangeSelection =
                 BatchColumnRangeSelection.create(columnRangeSelection, batchHint);
-        return scopeToTransaction(getPostFilteredColumns(tableRef, batchColumnRangeSelection, rawResults));
+        return scopeToTransaction(getPostFilteredColumns(tableRef, batchColumnRangeSelection, stableRows, rawResults));
     }
 
     @Override
+    @SuppressWarnings("MustBeClosedChecker") // Sadly we can't close properly here without an ABI break :/
     public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator(
             TableReference tableRef, Iterable<byte[]> rows, BatchColumnRangeSelection columnRangeSelection) {
         checkGetPreconditions(tableRef);
         if (Iterables.isEmpty(rows)) {
             return ImmutableMap.of();
         }
         hasReads = true;
-        Map<byte[], RowColumnRangeIterator> rawResults =
-                keyValueService.getRowsColumnRange(tableRef, rows, columnRangeSelection, getStartTimestamp());
-        ImmutableSortedMap.Builder<byte[], Iterator<Map.Entry<Cell, byte[]>>> postFilteredResultsBuilder =
-                ImmutableSortedMap.orderedBy(PtBytes.BYTES_COMPARATOR);
-        for (Map.Entry<byte[], RowColumnRangeIterator> e : rawResults.entrySet()) {
-            byte[] row = e.getKey();
-            RowColumnRangeIterator rawIterator = e.getValue();
-
-            // Sadly we can't close properly here without an ABI break :/
-            @SuppressWarnings("MustBeClosedChecker")
-            ClosableIterator<Map.Entry<Cell, byte[]>> postFilteredIterator =
-                    getPostFilteredColumns(tableRef, columnRangeSelection, row, rawIterator);
-
-            postFilteredResultsBuilder.put(row, scopeToTransaction(postFilteredIterator));
-        }
-        SortedMap<byte[], Iterator<Map.Entry<Cell, byte[]>>> postFilteredResults =
-                postFilteredResultsBuilder.buildOrThrow();
+        ImmutableSortedMap<byte[], RowColumnRangeIterator> rawResults = ImmutableSortedMap.copyOf(
+                keyValueService.getRowsColumnRange(tableRef, rows, columnRangeSelection, getStartTimestamp()),
+                PtBytes.BYTES_COMPARATOR);
+        ImmutableSortedMap<byte[], Iterator<Map.Entry<Cell, byte[]>>> postFilteredResults = Streams.stream(rows)
+                .collect(ImmutableSortedMap.toImmutableSortedMap(PtBytes.BYTES_COMPARATOR, row -> row, row -> {
+                    // explicitly not using Optional due to allocation perf overhead
+                    Iterator<Map.Entry<Cell, byte[]>> entryIterator;
+                    RowColumnRangeIterator rawIterator = rawResults.get(row);
+                    if (rawIterator != null) {
+                        entryIterator = closer.register(
+                                getPostFilteredColumns(tableRef, columnRangeSelection, row, rawIterator));
+                    } else {
+                        entryIterator = ClosableIterators.wrapWithEmptyClose(
+                                getLocalWritesForColumnRange(tableRef, columnRangeSelection, row)
+                                        .entrySet()
+                                        .iterator());
+                    }
+                    return scopeToTransaction(entryIterator);
+                }));
+
         // validate requirements here as the first batch for each of the above iterators will not check
         validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
         return postFilteredResults;
@@ -576,8 +587,7 @@ static Comparator<Cell> columnOrderThenPreserveInputRowOrder(Iterable<byte[]> ro
 
     protected static <V> Iterator<Map.Entry<Cell, V>> mergeByComparator(
             Iterable<? extends Iterator<Map.Entry<Cell, V>>> iterators, Comparator<Cell> cellComparator) {
-        Comparator<Map.Entry<Cell, V>> comp = Comparator.comparing(Map.Entry::getKey, cellComparator);
-        return Iterators.mergeSorted(iterators, comp);
+        return Iterators.mergeSorted(iterators, Map.Entry.comparingByKey(cellComparator));
     }
 
     /**
@@ -622,10 +632,12 @@ private ClosableIterator<Map.Entry<Cell, byte[]>> getPostFilteredColumns(
     private Iterator<Map.Entry<Cell, byte[]>> getPostFilteredColumns(
             TableReference tableRef,
             BatchColumnRangeSelection batchColumnRangeSelection,
+            List<byte[]> expectedRows,
             RowColumnRangeIterator rawIterator) {
         Iterator<Map.Entry<Cell, Value>> postFilterIterator =
                 getRowColumnRangePostFiltered(tableRef, rawIterator, batchColumnRangeSelection.getBatchHint());
-        Iterator<Map.Entry<byte[], RowColumnRangeIterator>> rawResultsByRow = partitionByRow(postFilterIterator);
+        Iterator<Map.Entry<byte[], RowColumnRangeIterator>> rawResultsByRow =
+                partitionByRow(postFilterIterator, expectedRows.iterator());
         Iterator<Map.Entry<Cell, byte[]>> merged = Iterators.concat(Iterators.transform(rawResultsByRow, row -> {
             SortedMap<Cell, byte[]> localWrites =
                     getLocalWritesForColumnRange(tableRef, batchColumnRangeSelection, row.getKey());
@@ -728,19 +740,34 @@ private Comparator<Cell> preserveInputRowOrder(List<Map.Entry<Cell, Value>> inpu
      * per non-empty row.
      */
     private Iterator<Map.Entry<byte[], RowColumnRangeIterator>> partitionByRow(
-            Iterator<Map.Entry<Cell, Value>> rawResults) {
+            Iterator<Map.Entry<Cell, Value>> rawResults, Iterator<byte[]> expectedRows) {
         PeekingIterator<Map.Entry<Cell, Value>> peekableRawResults = Iterators.peekingIterator(rawResults);
-        return new AbstractIterator<Map.Entry<byte[], RowColumnRangeIterator>>() {
+        return new AbstractIterator<>() {
             byte[] prevRowName;
 
             @Override
             protected Map.Entry<byte[], RowColumnRangeIterator> computeNext() {
                 finishConsumingPreviousRow(peekableRawResults);
-                if (!peekableRawResults.hasNext()) {
+                if (!expectedRows.hasNext()) {
+                    if (peekableRawResults.hasNext()) {
+                        throw new SafeIllegalStateException(
+                                "Iterators are not consistent: there is some data returned by getRowsColumnRange()"
+                                        + " even when we expect no more rows. This is likely an AtlasDB product bug.",
+                                UnsafeArg.of("nextRawResult", peekableRawResults.peek()));
+                    }
                     return endOfData();
                 }
+                byte[] nextExpectedRow = expectedRows.next();
+
+                if (!peekableRawResults.hasNext()) {
+                    return Maps.immutableEntry(nextExpectedRow, EmptyRowColumnRangeIterator.INSTANCE);
+                }
                 byte[] nextRowName = peekableRawResults.peek().getKey().getRowName();
-                Iterator<Map.Entry<Cell, Value>> columnsIterator = new AbstractIterator<Map.Entry<Cell, Value>>() {
+                if (!Arrays.equals(nextRowName, nextExpectedRow)) {
+                    return Maps.immutableEntry(nextExpectedRow, EmptyRowColumnRangeIterator.INSTANCE);
+                }
+
+                Iterator<Map.Entry<Cell, Value>> columnsIterator = new AbstractIterator<>() {
                     @Override
                     protected Map.Entry<Cell, Value> computeNext() {
                         if (!peekableRawResults.hasNext()
@@ -771,6 +798,20 @@ private void finishConsumingPreviousRow(PeekingIterator<Map.Entry<Cell, Value>>
         };
     }
 
+    private enum EmptyRowColumnRangeIterator implements RowColumnRangeIterator {
+        INSTANCE;
+
+        @Override
+        public boolean hasNext() {
+            return false;
+        }
+
+        @Override
+        public Map.Entry<Cell, Value> next() {
+            throw new NoSuchElementException();
+        }
+    }
+
     @Override
     public SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(
             TableReference tableRef, Iterable<byte[]> rows) {
@@ -1123,7 +1164,7 @@ private List<Map.Entry<Cell, byte[]>> getPostFilteredWithLocalWrites(
                 postFiltered.entrySet(),
                 Predicates.compose(Predicates.in(prePostFilterCells.keySet()), MapEntries.getKeyFunction()));
         Collection<Map.Entry<Cell, byte[]>> localWritesInRange = getLocalWritesForRange(
-                        tableRef, rangeRequest.getStartInclusive(), endRowExclusive)
+                        tableRef, rangeRequest.getStartInclusive(), endRowExclusive, rangeRequest.getColumnNames())
                 .entrySet();
         return mergeInLocalWrites(
                 tableRef, postFilteredCells.iterator(), localWritesInRange.iterator(), rangeRequest.isReverse());
@@ -1161,9 +1202,9 @@ private <K extends Exception> boolean getBatchingVisitableFromIterator(
             throws K {
         try (ClosableIterator<RowResult<byte[]>> postFilterIterator =
                 postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
-            Iterator<RowResult<byte[]>> localWritesInRange = Cells.createRowView(
-                    getLocalWritesForRange(tableRef, range.getStartInclusive(), range.getEndExclusive())
-                            .entrySet());
+            Iterator<RowResult<byte[]>> localWritesInRange = Cells.createRowView(getLocalWritesForRange(
+                            tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
+                    .entrySet());
             Iterator<RowResult<byte[]>> mergeIterators =
                     mergeInLocalWritesRows(postFilterIterator, localWritesInRange, range.isReverse(), tableRef);
             return BatchingVisitableFromIterable.create(mergeIterators).batchAccept(userRequestedSize, visitor);
@@ -1279,15 +1320,22 @@ private ConcurrentNavigableMap<Cell, byte[]> getLocalWrites(TableReference table
 
     /**
      * This includes deleted writes as zero length byte arrays, be sure to strip them out.
+     *
+     * For the selectedColumns parameter, empty set means all columns. This is unfortunate, but follows the semantics of
+     * {@link RangeRequest}.
      */
-    private SortedMap<Cell, byte[]> getLocalWritesForRange(TableReference tableRef, byte[] startRow, byte[] endRow) {
+    private SortedMap<Cell, byte[]> getLocalWritesForRange(
+            TableReference tableRef, byte[] startRow, byte[] endRow, SortedSet<byte[]> selectedColumns) {
         SortedMap<Cell, byte[]> writes = getLocalWrites(tableRef);
         if (startRow.length != 0) {
             writes = writes.tailMap(Cells.createSmallestCellForRow(startRow));
         }
         if (endRow.length != 0) {
             writes = writes.headMap(Cells.createSmallestCellForRow(endRow));
         }
+        if (!selectedColumns.isEmpty()) {
+            writes = Maps.filterKeys(writes, cell -> selectedColumns.contains(cell.getColumnName()));
+        }
         return writes;
     }
 
@@ -1717,6 +1765,7 @@ private void putWritesAndLogIfTooLarge(Map<Cell, byte[]> values, SortedMap<Cell,
     @Override
     public void abort() {
         if (state.get() == State.ABORTED) {
+            close();
             return;
         }
         while (true) {
@@ -1737,11 +1786,20 @@ public void abort() {
                                 SafeArg.of("transactionDuration", Duration.ofMillis(transactionMillis)));
                     }
                 }
+                close();
                 return;
             }
         }
     }
 
+    private void close() {
+        try {
+            closer.close();
+        } catch (Exception | Error e) {
+            log.warn("Error while closing transaction resources", e);
+        }
+    }
+
     @Override
     public boolean isAborted() {
         return state.get() == State.ABORTED;
@@ -1787,6 +1845,7 @@ public void commit() {
     public void commit(TransactionService transactionService) {
         commitWithoutCallbacks(transactionService);
         runSuccessCallbacksIfDefinitivelyCommitted();
+        close();
     }
 
     @Override
@@ -2527,6 +2586,20 @@ private boolean validationNecessaryForInvolvedTablesOnCommit() {
         return anyTableRequiresImmutableTimestampLocking && needsToValidate;
     }
 
+    @Override
+    public long getAgeMillis() {
+        return System.currentTimeMillis() - timeCreated;
+    }
+
+    @Override
+    public TransactionReadInfo getReadInfo() {
+        return keyValueService.getOverallReadInfo();
+    }
+
+    // TODO(aalouane): implement and call this on transaction exit
+    @Override
+    public void reportExpectationsCollectedData() {}
+
     private long getStartTimestamp() {
         return startTimestamp.get();
     }u}(jt  (0936c8842d9f7738cbd5017afd9659293095521dj  gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManager.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManager.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManager.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManager.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -246,7 +246,7 @@ private OpenTransactionImpl(CallbackAwareTransaction delegate, LockToken immutab
         }
 
         @Override
-        public Transaction delegate() {
+        public CallbackAwareTransaction delegate() {
             return delegate;
         }
 u}(jt  (6145cc9af0bd5b4fcbcfc599ba7616db926d9a99j  ratlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/KnowledgeableTimestampExtractingAtomicTableTest.javaj  modifiedj  Kj  K
j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FKnowledgeableTimestampExtractingAtomicTableTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FKnowledgeableTimestampExtractingAtomicTableTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FKnowledgeableTimestampExtractingAtomicTableTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X@  @@ -32,7 +32,6 @@
 import com.palantir.atlasdb.transaction.knowledge.KnownConcludedTransactions.Consistency;
 import com.palantir.atlasdb.transaction.knowledge.VerificationModeMetrics;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.util.concurrent.ExecutionException;
 import org.junit.Test;
@@ -79,7 +78,7 @@ public void canGetTsOfNonConcludedTxn() throws ExecutionException, InterruptedEx
         long commitTs = 127L;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.committed(commitTs)));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.committed(commitTs)));
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isEqualTo(commitTs);
     }
@@ -89,7 +88,7 @@ public void canGetTsOfNonConcludedAbortedTxn() throws ExecutionException, Interr
         long startTs = 27l;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.aborted()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.aborted()));
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isEqualTo(TransactionConstants.FAILED_COMMIT_TS);
     }
@@ -99,7 +98,7 @@ public void canGetTsOfNonConcludedInProgressTxn() throws ExecutionException, Int
         long startTs = 27l;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.inProgress()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.inProgress()));
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isNull();
     }
@@ -109,7 +108,7 @@ public void canGetTsOfRemotelyConcludedTxn() throws ExecutionException, Interrup
         long startTs = 27l;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.unknown()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.unknown()));
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(false);
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isEqualTo(startTs);
@@ -120,7 +119,7 @@ public void canGetTsOfRemotelyConcludedAbortedTxn() throws ExecutionException, I
         long startTs = 27l;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.unknown()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.unknown()));
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(true);
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isEqualTo(TransactionConstants.FAILED_COMMIT_TS);
@@ -130,7 +129,7 @@ public void canGetTsOfRemotelyConcludedAbortedTxn() throws ExecutionException, I
     @Test
     public void noVerificationIfTransactionInProgress() {
         long startTs = 27l;
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.inProgress()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.inProgress()));
         tsExtractingTable.get(startTs);
 
         verifyNoInteractions(knownAbandonedTransactions);
@@ -142,7 +141,7 @@ public void noVerificationIfTransactionInProgress() {
     public void noVerificationInBatchedGetIfTransactionInProgress() {
         long startTs = 27l;
         when(delegate.get(ImmutableSet.of(startTs)))
-                .thenReturn(Futures.immediateFuture(ImmutableMap.of(startTs, TransactionStatuses.inProgress())));
+                .thenReturn(Futures.immediateFuture(ImmutableMap.of(startTs, TransactionStatus.inProgress())));
         tsExtractingTable.get(ImmutableSet.of(startTs));
 
         verifyNoInteractions(knownAbandonedTransactions);
@@ -154,7 +153,7 @@ public void noVerificationInBatchedGetIfTransactionInProgress() {
     public void noVerificationIfTransactionNotConcluded() {
         long startTs = 27l;
         long commitTs = 35l;
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.committed(commitTs)));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.committed(commitTs)));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(false);
 
@@ -169,7 +168,7 @@ public void noVerificationIfTransactionNotConcluded() {
     public void verifiesConcludedTransaction() {
         long startTs = 27l;
         long commitTs = 35l;
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.committed(commitTs)));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.committed(commitTs)));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(true);
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(false);
@@ -186,7 +185,7 @@ public void verifiesConcludedTransaction() {
     public void verifiesConcludedAbandonedTransaction() {
         long startTs = 27l;
 
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.aborted()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.aborted()));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(true);
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(true);
@@ -204,7 +203,7 @@ public void catchesInconsistencyIfCommittedTransactionIsMarkedAbandoned() {
         long startTs = 27l;
         long commitTs = 35l;
 
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.committed(commitTs)));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.committed(commitTs)));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(true);
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(true);
@@ -221,7 +220,7 @@ public void catchesInconsistencyIfCommittedTransactionIsMarkedAbandoned() {
     public void catchesInconsistencyIfAbortedTransactionIsNotMarkedAbandoned() {
         long startTs = 27l;
 
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.aborted()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.aborted()));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(true);
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(false);u}(jt  (de47f4b61de48b3d358e06301facd8a4098aae44j  uatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTableIntegrationTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableIntegrationTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableIntegrationTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableIntegrationTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -25,7 +25,6 @@
 import com.palantir.atlasdb.transaction.encoding.BaseProgressEncodingStrategy;
 import com.palantir.atlasdb.transaction.encoding.TwoPhaseEncodingStrategy;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.time.Duration;
@@ -90,7 +89,7 @@ private void submitWriteTask(
                 writeExecutionLatch.await();
                 Uninterruptibles.sleepUninterruptibly(
                         Duration.ofMillis(ThreadLocalRandom.current().nextInt(10)));
-                pueTable.update(startTimestamp, TransactionStatuses.committed(startTimestamp + writerIndex));
+                pueTable.update(startTimestamp, TransactionStatus.committed(startTimestamp + writerIndex));
             } catch (RuntimeException e) {
                 // Expected - some failures will happen as part of our test.
             }
@@ -154,7 +153,7 @@ private TimestampReader(long startTimestamp, AtomicTable<Long, TransactionStatus
 
         public List<Optional<Long>> getTimestampReads() {
             return timestampReads.stream()
-                    .map(TransactionStatuses::getCommitTimestamp)
+                    .map(TransactionStatus::getCommitTimestamp)
                     .collect(Collectors.toList());
         }
 u}(jt  (22a536520a6a833dfdb825d32190bc03183fad7ej  jatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTableTest.javaj  modifiedj  K#j  K7j  KZj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X-  @@ -43,7 +43,6 @@
 import com.palantir.atlasdb.transaction.encoding.TicketsEncodingStrategy;
 import com.palantir.atlasdb.transaction.encoding.TwoPhaseEncodingStrategy;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.time.Clock;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.time.Duration;
@@ -101,67 +100,58 @@ public static Collection<Object[]> data() {
 
     @Test
     public void canPutAndGet() throws ExecutionException, InterruptedException {
-        atomicTable.update(1L, TransactionStatuses.committed(2L));
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(2L);
+        atomicTable.update(1L, TransactionStatus.committed(2L));
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(2L));
         verify(spiedStore).batchAtomicUpdate(anyMap());
         verify(spiedStore, atLeastOnce()).put(anyMap());
         verify(spiedStore).getMultiple(any());
     }
 
     @Test
     public void emptyReturnsInProgress() throws ExecutionException, InterruptedException {
-        assertThat(TransactionStatuses.caseOf(atomicTable.get(3L).get())
-                        .inProgress_(true)
-                        .otherwise_(false))
-                .isTrue();
+        assertThat(atomicTable.get(3L).get()).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Test
     public void canPutAndGetAbortedTransactions() throws ExecutionException, InterruptedException {
-        atomicTable.update(1L, TransactionStatuses.aborted());
-        assertThat(TransactionStatuses.caseOf(atomicTable.get(1L).get())
-                        .aborted_(true)
-                        .otherwise_(false))
-                .isTrue();
+        atomicTable.update(1L, TransactionStatus.aborted());
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.aborted());
     }
 
     @Test
     public void cannotPueTwice() {
-        atomicTable.update(1L, TransactionStatuses.committed(2L));
-        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatuses.committed(2L)))
+        atomicTable.update(1L, TransactionStatus.committed(2L));
+        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatus.committed(2L)))
                 .isInstanceOf(KeyAlreadyExistsException.class);
     }
 
     @Test
     public void canPutAndGetMultiple() throws ExecutionException, InterruptedException {
         ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(
                 1L,
-                TransactionStatuses.committed(2L),
+                TransactionStatus.committed(2L),
                 3L,
-                TransactionStatuses.committed(4L),
+                TransactionStatus.committed(4L),
                 7L,
-                TransactionStatuses.committed(8L));
+                TransactionStatus.committed(8L));
         atomicTable.updateMultiple(inputs);
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 3L, 5L, 7L)).get();
         assertThat(result).hasSize(4);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(3L))).hasValue(4L);
-        assertThat(TransactionStatuses.caseOf(result.get(5L)).inProgress_(true).otherwise_(false))
-                .isTrue();
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(7L))).hasValue(8L);
+        assertThat(result.get(1L)).isEqualTo(TransactionStatus.committed(2L));
+        assertThat(result.get(3L)).isEqualTo(TransactionStatus.committed(4L));
+        assertThat(result.get(5L)).isEqualTo(TransactionStatus.inProgress());
+        assertThat(result.get(7L)).isEqualTo(TransactionStatus.committed(8L));
     }
 
     @Test
     public void pueThatThrowsIsCorrectedOnGet() throws ExecutionException, InterruptedException {
         spiedStore.startFailingPuts();
-        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatuses.committed(2L)))
+        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatus.committed(2L)))
                 .isInstanceOf(RuntimeException.class);
         spiedStore.stopFailingPuts();
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(2L);
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(2L));
         verify(spiedStore, times(2)).put(anyMap());
     }
 
@@ -170,7 +160,7 @@ public void getReturnsStagingValuesThatWereCommittedBySomeoneElse()
             throws ExecutionException, InterruptedException {
 
         long startTimestamp = 1L;
-        TransactionStatus commitStatus = TransactionStatuses.committed(2L);
+        TransactionStatus commitStatus = TransactionStatus.committed(2L);
         Cell timestampAsCell = encodingStrategy.encodeStartTimestampAsCell(startTimestamp);
         byte[] stagingValue =
                 encodingStrategy.encodeCommitStatusAsValue(startTimestamp, AtomicValue.staging(commitStatus));
@@ -184,9 +174,7 @@ public void getReturnsStagingValuesThatWereCommittedBySomeoneElse()
                 .when(spiedStore)
                 .checkAndTouch(timestampAsCell, stagingValue);
 
-        assertThat(TransactionStatuses.getCommitTimestamp(
-                        atomicTable.get(startTimestamp).get()))
-                .isEqualTo(TransactionStatuses.getCommitTimestamp(commitStatus));
+        assertThat(atomicTable.get(startTimestamp).get()).isEqualTo(commitStatus);
     }
 
     @Test
@@ -209,14 +197,14 @@ public void onceNonNullValueIsReturnedItIsAlwaysReturned() {
             for (int i = 0; i < 30; i++) {
                 TransactionStatus valueRead = firstSuccessfulRead(putUnlessExistsTable, startTs);
                 onlyAllowedCommitTs.ifPresentOrElse(
-                        commit -> assertThat(TransactionStatuses.getCommitTimestamp(valueRead))
-                                .hasValue(commit),
-                        () -> assertThat(TransactionStatuses.caseOf(valueRead)
-                                        .inProgress_(true)
-                                        .committed(commitTs -> commitTs >= ts && commitTs <= ts + 2)
-                                        .otherwise_(false))
-                                .isTrue());
-                onlyAllowedCommitTs = TransactionStatuses.getCommitTimestamp(valueRead);
+                        commit -> assertThat(valueRead).isEqualTo(TransactionStatus.committed(commit)),
+                        () -> assertThat(valueRead)
+                                .satisfiesAnyOf(
+                                        status -> assertThat(status).isEqualTo(TransactionStatus.inProgress()),
+                                        status -> assertThat(status).isEqualTo(TransactionStatus.committed(ts)),
+                                        status -> assertThat(status).isEqualTo(TransactionStatus.committed(ts + 1)),
+                                        status -> assertThat(status).isEqualTo(TransactionStatus.committed(ts + 2))));
+                onlyAllowedCommitTs = TransactionStatus.getCommitTimestamp(valueRead);
             }
         }
     }
@@ -242,9 +230,7 @@ public void inAbsenceOfConcurrencyGetRetriesBothTouchAndPut() throws ExecutionEx
 
         spiedStore.stopFailingPuts();
         for (long i = 0; i < 100; i++) {
-            assertThat(TransactionStatuses.getCommitTimestamp(
-                            atomicTable.get(0L).get()))
-                    .hasValue(0L);
+            assertThat(atomicTable.get(0L).get()).isEqualTo(TransactionStatus.committed(0L));
         }
 
         if (validating) {
@@ -343,8 +329,7 @@ public void doNotPutIfAlreadyCommitted() throws ExecutionException, InterruptedE
         setupStagingValues(1);
         spiedStore.enableCommittingUnderUs();
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(0L).get()))
-                .hasValue(0L);
+        assertThat(atomicTable.get(0L).get()).isEqualTo(TransactionStatus.committed(0L));
         verify(spiedKvs, times(1)).checkAndSet(any());
         // only the put from the original PUE was registered
         verify(spiedStore, times(1)).put(anyMap());
@@ -357,18 +342,15 @@ public void acceptStagingAsCommittedWhenCommittingIsSlow() throws ExecutionExcep
         spiedStore.stopFailingPuts();
         spiedStore.startSlowPue();
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(0L).get()))
-                .hasValue(0L);
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(1L);
+        assertThat(atomicTable.get(0L).get()).isEqualTo(TransactionStatus.committed(0L));
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(1L));
 
         verify(spiedKvs, times(1)).checkAndSet(any());
         verify(spiedStore, times(1 + 2)).put(anyMap());
 
         clockLong.accumulateAndGet(Duration.ofSeconds(62).toMillis(), Long::sum);
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(2L).get()))
-                .hasValue(2L);
+        assertThat(atomicTable.get(2L).get()).isEqualTo(TransactionStatus.committed(2L));
         verify(spiedKvs, times(2)).checkAndSet(any());
         verify(spiedStore, times(1 + 3)).put(anyMap());
     }
@@ -384,23 +366,21 @@ public void acceptStagingAsCommittedWhenRetryingTooMuch() throws ExecutionExcept
                 .hasCauseInstanceOf(RetryLimitReachedException.class);
         spiedStore.stopFailingPuts();
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(1L);
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(1L));
         verify(spiedKvs, times(1)).checkAndSet(any());
         verify(spiedStore, times(1 + 2)).put(anyMap());
 
         clockLong.accumulateAndGet(Duration.ofSeconds(62).toMillis(), Long::sum);
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(2L).get()))
-                .hasValue(2L);
+        assertThat(atomicTable.get(2L).get()).isEqualTo(TransactionStatus.committed(2L));
         verify(spiedKvs, times(2)).checkAndSet(any());
         verify(spiedStore, times(1 + 3)).put(anyMap());
     }
 
     private void setupStagingValues(int num) {
         spiedStore.startFailingPuts();
         Map<Long, TransactionStatus> initialWrites =
-                LongStream.range(0, num).boxed().collect(Collectors.toMap(x -> x, TransactionStatuses::committed));
+                LongStream.range(0, num).boxed().collect(Collectors.toMap(x -> x, TransactionStatus::committed));
         assertThatThrownBy(() -> atomicTable.updateMultiple(initialWrites))
                 .isInstanceOf(RuntimeException.class)
                 .hasMessageContaining("Failed to set value");
@@ -409,7 +389,7 @@ private void setupStagingValues(int num) {
     private static Optional<Long> tryPue(
             AtomicTable<Long, TransactionStatus> atomicTable, long startTs, long commitTs) {
         try {
-            atomicTable.update(startTs, TransactionStatuses.committed(commitTs));
+            atomicTable.update(startTs, TransactionStatus.committed(commitTs));
             return Optional.of(commitTs);
         } catch (Exception e) {
             // this is ok, we may have failed because it already exists or randomly. Either way, continue.u}(jt  (09cfb417a9a7f8920f5c480e8b9a3bd3be73fe0cj  gatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/SimpleCommitTimestampAtomicTableTest.javaj  modifiedj  Kj  Kj  K+j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FSimpleCommitTimestampAtomicTableTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FSimpleCommitTimestampAtomicTableTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FSimpleCommitTimestampAtomicTableTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -27,9 +27,7 @@
 import com.palantir.atlasdb.transaction.encoding.TicketsEncodingStrategy;
 import com.palantir.atlasdb.transaction.encoding.TransactionStatusEncodingStrategy;
 import com.palantir.atlasdb.transaction.encoding.V1EncodingStrategy;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import java.util.Arrays;
 import java.util.Collection;
 import java.util.Map;
@@ -58,74 +56,75 @@ public void setup() {
 
     @Test
     public void canPutAndGet() throws ExecutionException, InterruptedException {
-        atomicTable.update(1L, TransactionStatuses.committed(2L));
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(2L);
+        atomicTable.update(1L, TransactionStatus.committed(2L));
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(2L));
     }
 
     @Test
     public void emptyReturnsInProgress() throws ExecutionException, InterruptedException {
-        assertThat(atomicTable.get(3L).get()).isEqualTo(TransactionConstants.IN_PROGRESS);
+        assertThat(atomicTable.get(3L).get()).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Test
     public void cannotPueTwice() {
-        atomicTable.update(1L, TransactionStatuses.committed(2L));
-        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatuses.committed(2L)))
+        atomicTable.update(1L, TransactionStatus.committed(2L));
+        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatus.committed(2L)))
                 .isInstanceOf(KeyAlreadyExistsException.class);
     }
 
     @Test
     public void canPutAndGetMultiple() throws ExecutionException, InterruptedException {
         ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(
                 1L,
-                TransactionStatuses.committed(2L),
+                TransactionStatus.committed(2L),
                 3L,
-                TransactionStatuses.committed(4L),
+                TransactionStatus.committed(4L),
                 7L,
-                TransactionStatuses.committed(8L));
+                TransactionStatus.committed(8L));
         atomicTable.updateMultiple(inputs);
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 3L, 5L, 7L)).get();
         assertThat(result).hasSize(4);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(3L))).hasValue(4L);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(7L))).hasValue(8L);
+        assertThat(result.get(1L)).isEqualTo(TransactionStatus.committed(2L));
+        assertThat(result.get(3L)).isEqualTo(TransactionStatus.committed(4L));
+        assertThat(result.get(7L)).isEqualTo(TransactionStatus.committed(8L));
     }
 
     @Test
     public void canPutAndGetAbortedTransactions() throws ExecutionException, InterruptedException {
-        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatuses.aborted());
+        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatus.aborted());
         atomicTable.updateMultiple(inputs);
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L)).get();
         assertThat(result).hasSize(1);
-        assertThat(result.get(1L)).isEqualTo(TransactionConstants.ABORTED);
+        assertThat(result).containsEntry(1L, TransactionStatus.aborted());
     }
 
     @Test
     public void getsAllTimestamps() throws ExecutionException, InterruptedException {
-        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatuses.committed(2L));
+        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatus.committed(2L));
         atomicTable.updateMultiple(inputs);
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 3L)).get();
         assertThat(result).hasSize(2);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(result.get(3L)).isEqualTo(TransactionConstants.IN_PROGRESS);
+        assertThat(result)
+                .containsEntry(1L, TransactionStatus.committed(2L))
+                .containsEntry(3L, TransactionStatus.inProgress());
     }
 
     @Test
     public void doesNotThrowForDuplicateValues() throws ExecutionException, InterruptedException {
-        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatuses.committed(2L));
+        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatus.committed(2L));
         atomicTable.updateMultiple(inputs);
 
         // does not throw any exception
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 1L, 3L)).get();
 
         assertThat(result).hasSize(2);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(result.get(3L)).isEqualTo(TransactionConstants.IN_PROGRESS);
+        assertThat(result)
+                .containsEntry(1L, TransactionStatus.committed(2L))
+                .containsEntry(3L, TransactionStatus.inProgress());
     }
 
     private AtomicTable<Long, TransactionStatus> createPueTable() {u     }(jt  (17c2d2d99fcc56873eb8e3c9724337a5187746f8j  eatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/TimestampExtractingAtomicTableTest.javaj  modifiedj  Kj  K	j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTableTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTableTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTableTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -26,7 +26,6 @@
 import com.google.common.util.concurrent.Futures;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.Map;
@@ -42,7 +41,7 @@ public class TimestampExtractingAtomicTableTest {
     public void canExtractCommittedTransaction() throws ExecutionException, InterruptedException {
         Iterable<Long> keys = ImmutableList.of(1L, 2L, 3L);
         Map<Long, TransactionStatus> commits = KeyedStream.of(keys)
-                .map(key -> TransactionStatuses.committed(commitTs(key)))
+                .map(key -> TransactionStatus.committed(commitTs(key)))
                 .collectToMap();
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
@@ -54,7 +53,7 @@ public void canExtractCommittedTransaction() throws ExecutionException, Interrup
     public void canExtractAbortedTransaction() throws ExecutionException, InterruptedException {
         Iterable<Long> keys = ImmutableList.of(1L);
         Map<Long, TransactionStatus> commits =
-                KeyedStream.of(keys).map(_key -> TransactionConstants.ABORTED).collectToMap();
+                KeyedStream.of(keys).map(_key -> TransactionStatus.aborted()).collectToMap();
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
         Map<Long, Long> expected = KeyedStream.of(keys)
@@ -70,9 +69,9 @@ public void canExtractCommittedOrAbortedTransaction() throws ExecutionException,
         Iterable<Long> keys = ImmutableList.of(committedTs, abortedTs);
         Map<Long, TransactionStatus> commits = ImmutableMap.of(
                 committedTs,
-                TransactionStatuses.committed(commitTs(committedTs)),
+                TransactionStatus.committed(commitTs(committedTs)),
                 abortedTs,
-                TransactionConstants.ABORTED);
+                TransactionStatus.aborted());
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
         Map<Long, Long> expected =
@@ -83,9 +82,8 @@ public void canExtractCommittedOrAbortedTransaction() throws ExecutionException,
     @Test
     public void ignoresInProgressTransaction() throws ExecutionException, InterruptedException {
         Iterable<Long> keys = ImmutableList.of(1L);
-        Map<Long, TransactionStatus> commits = KeyedStream.of(keys)
-                .map(_key -> TransactionConstants.IN_PROGRESS)
-                .collectToMap();
+        Map<Long, TransactionStatus> commits =
+                KeyedStream.of(keys).map(_key -> TransactionStatus.inProgress()).collectToMap();
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
         assertThat(timestampExtractingAtomicTable.get(keys).get()).isEmpty();
@@ -95,7 +93,7 @@ public void ignoresInProgressTransaction() throws ExecutionException, Interrupte
     public void throwsOnUnknownTransaction() {
         Iterable<Long> keys = ImmutableList.of(1L);
         Map<Long, TransactionStatus> commits =
-                KeyedStream.of(keys).map(_key -> TransactionConstants.UNKNOWN).collectToMap();
+                KeyedStream.of(keys).map(_key -> TransactionStatus.unknown()).collectToMap();
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
         assertThatThrownBy(() -> timestampExtractingAtomicTable.get(keys).get())u}(jt  (d39192744c1254edca4bbb6d1e8b2bf515f2aee8j  yatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/internalschema/metrics/MetadataCoordinationServiceMetricsTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Finternalschema%2Fmetrics%2FMetadataCoordinationServiceMetricsTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Finternalschema%2Fmetrics%2FMetadataCoordinationServiceMetricsTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Finternalschema%2Fmetrics%2FMetadataCoordinationServiceMetricsTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XK  @@ -35,6 +35,7 @@
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.timestamp.TimestampService;
+import com.palantir.tritium.metrics.registry.MetricName;
 import java.util.Optional;
 import org.junit.Before;
 import org.junit.Test;
@@ -124,6 +125,10 @@ private static String buildFullyQualifiedMetricName(String shortName) {
     }
 
     private static <T> Gauge<T> getGauge(MetricsManager manager, String shortName) {
-        return manager.getRegistry().getGauges().get(buildFullyQualifiedMetricName(shortName));
+        return (Gauge<T>) manager.getTaggedRegistry()
+                .gauge(MetricName.builder()
+                        .safeName(buildFullyQualifiedMetricName(shortName))
+                        .build())
+                .orElseThrow();
     }
 }u}(jt  (51efae117349435a6b17761462ac55d613d457cfj  [atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/monitoring/TimestampTrackerTest.javaj  modifiedj  K	j  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmonitoring%2FTimestampTrackerTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmonitoring%2FTimestampTrackerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmonitoring%2FTimestampTrackerTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -29,6 +29,7 @@
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.tritium.metrics.registry.MetricName;
 import java.util.concurrent.atomic.AtomicLong;
 import java.util.function.Supplier;
 import org.junit.Test;
@@ -53,7 +54,8 @@ public class TimestampTrackerTest {
     @Test
     public void defaultTrackerGeneratesTimestampMetrics() {
         createDefaultTracker();
-        assertThat(metricsManager.getRegistry().getNames())
+        assertThat(metricsManager.getTaggedRegistry().getMetrics().keySet().stream()
+                        .map(MetricName::safeName))
                 .containsExactlyInAnyOrder(
                         buildFullyQualifiedMetricName(IMMUTABLE_TIMESTAMP_NAME),
                         buildFullyQualifiedMetricName(FRESH_TIMESTAMP_NAME),
@@ -175,6 +177,11 @@ private static String buildFullyQualifiedMetricName(String shortName) {
 
     @SuppressWarnings("unchecked") // We know the gauges we are registering produce Longs
     private Gauge<Long> getGauge(String shortName) {
-        return (Gauge<Long>) metricsManager.getRegistry().getGauges().get(buildFullyQualifiedMetricName(shortName));
+        return (Gauge<Long>) (Gauge<?>) metricsManager
+                .getTaggedRegistry()
+                .gauge(MetricName.builder()
+                        .safeName(buildFullyQualifiedMetricName(shortName))
+                        .build())
+                .orElseThrow();
     }
 }u}(jt  (dccc318b332ffaa971355af06b94dc51f14199e0j  Xatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/SweeperServiceImplTest.javaj  removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplTest.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplTest.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X`!  @@ -1,205 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.never;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoMoreInteractions;
-import static org.mockito.Mockito.when;
-
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.io.BaseEncoding;
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.SweepResults;
-import com.palantir.atlasdb.util.DropwizardClientRule;
-import com.palantir.atlasdb.util.TestJaxRsClientFactory;
-import com.palantir.conjure.java.api.errors.RemoteException;
-import com.palantir.conjure.java.server.jersey.ConjureJerseyFeature;
-import java.util.List;
-import java.util.Optional;
-import javax.ws.rs.core.Response;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Rule;
-import org.junit.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-
-public class SweeperServiceImplTest extends SweeperTestSetup {
-
-    private static final String VALID_START_ROW = "0102030A";
-    private static final String LOWERCASE_BUT_VALID_START_ROW = "abadcafe";
-    private static final String MIXED_CASE_START_ROW = "AaAaAaAaAa1111";
-    private static final String INVALID_START_ROW = "xyz";
-    SweeperService sweeperService;
-
-    private static final SweepResults RESULTS_NO_MORE_TO_SWEEP = SweepResults.createEmptySweepResultWithNoMoreToSweep();
-    private static final SweepResults RESULTS_MORE_TO_SWEEP = SweepResults.createEmptySweepResultWithMoreToSweep();
-
-    @Rule
-    public DropwizardClientRule dropwizardClientRule = new DropwizardClientRule(
-            new SweeperServiceImpl(getSpecificTableSweeperService(), sweepBatchConfigSource),
-            ConjureJerseyFeature.INSTANCE);
-
-    @Override
-    @Before
-    public void setup() {
-        super.setup();
-
-        sweeperService = TestJaxRsClientFactory.createJaxRsClientForTest(
-                SweeperService.class,
-                SweeperServiceImplTest.class,
-                dropwizardClientRule.baseUri().toString());
-
-        setupTaskRunner(RESULTS_NO_MORE_TO_SWEEP);
-        when(kvs.getAllTableNames()).thenReturn(ImmutableSet.of(TABLE_REF));
-    }
-
-    @After
-    public void after() {
-        verifyNoSweepResultsSaved();
-    }
-
-    @Test
-    public void sweepingNonFullyTableShouldNotBeSuccessful() {
-        assertThatExceptionOfType(RemoteException.class)
-                .isThrownBy(() -> sweeperService.sweepTableFully("non_fully_qualified_name"))
-                .matches(ex -> ex.getStatus() == Response.Status.BAD_REQUEST.getStatusCode());
-    }
-
-    @Test
-    public void sweepingNonExistingTableShouldNotBeSuccessful() {
-        assertThatExceptionOfType(RemoteException.class)
-                .isThrownBy(() -> sweeperService.sweepTableFully("ns.non_existing_table"))
-                .matches(ex -> ex.getStatus() == Response.Status.BAD_REQUEST.getStatusCode());
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithValidStartRowShouldBeSuccessful() {
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), VALID_START_ROW);
-    }
-
-    @Test
-    public void sweepTableFromStartRowShouldAcceptLowercaseBase16Encodings() {
-        when(kvs.getAllTableNames()).thenReturn(ImmutableSet.of(TABLE_REF));
-
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), LOWERCASE_BUT_VALID_START_ROW);
-    }
-
-    @Test
-    public void sweepTableFromStartRowShouldAcceptMixedCaseBase16Encodings() {
-        when(kvs.getAllTableNames()).thenReturn(ImmutableSet.of(TABLE_REF));
-
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), MIXED_CASE_START_ROW);
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithInValidStartRowShouldThrow() {
-        assertThatExceptionOfType(RemoteException.class)
-                .isThrownBy(() -> sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), INVALID_START_ROW))
-                .matches(ex -> ex.getStatus() == Response.Status.BAD_REQUEST.getStatusCode());
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithBatchConfigWithNullStartRowShouldBeSuccessful() {
-        sweeperService.sweepTable(
-                TABLE_REF.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.of(1000),
-                Optional.of(1000),
-                Optional.of(500));
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithBatchConfigWithExactlyOneNonNullBatchConfigShouldBeSuccessful() {
-        sweeperService.sweepTable(
-                TABLE_REF.getQualifiedName(),
-                Optional.of(encodeStartRow(new byte[] {1, 2, 3})),
-                Optional.empty(),
-                Optional.of(10),
-                Optional.empty(),
-                Optional.empty());
-    }
-
-    @Test
-    public void testWriteProgressAndPriorityNotUpdatedAfterSweepRunsSuccessfully_butMetricsAre() {
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), encodeStartRow(new byte[] {1, 2, 3}));
-        ArgumentCaptor<Long> sweepTime = ArgumentCaptor.forClass(Long.class);
-        ArgumentCaptor<Long> totalTimeElapsed = ArgumentCaptor.forClass(Long.class);
-
-        Mockito.verify(sweepMetrics, times(1)).updateSweepTime(sweepTime.capture(), totalTimeElapsed.capture());
-        verifyExpectedArgument(sweepTime.getValue(), totalTimeElapsed.getValue());
-    }
-
-    @Test
-    public void sweepsEntireTableByDefault() {
-        List<byte[]> startRows = ImmutableList.of(PtBytes.EMPTY_BYTE_ARRAY, new byte[] {0x10}, new byte[] {0x50});
-
-        for (int i = 0; i < startRows.size(); i++) {
-            byte[] currentRow = startRows.get(i);
-            Optional<byte[]> nextRow =
-                    (i + 1) == startRows.size() ? Optional.empty() : Optional.of(startRows.get(i + 1));
-
-            SweepResults results = SweepResults.createEmptySweepResult(nextRow);
-            when(sweepTaskRunner.run(any(), any(), eq(currentRow), any())).thenReturn(results);
-        }
-
-        sweeperService.sweepTableFully(TABLE_REF.getQualifiedName());
-
-        startRows.forEach(row -> verify(sweepTaskRunner).run(any(), any(), eq(row), any()));
-        verifyNoMoreInteractions(sweepTaskRunner);
-    }
-
-    @Test
-    public void runsOneIterationIfRequested() {
-        setupTaskRunner(RESULTS_MORE_TO_SWEEP);
-
-        sweeperService.sweepTable(
-                TABLE_REF.getQualifiedName(),
-                Optional.empty(),
-                Optional.of(false),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        verify(sweepTaskRunner, times(1)).run(any(), any(), any(), any());
-        verifyNoMoreInteractions(sweepTaskRunner);
-    }
-
-    private void verifyExpectedArgument(long sweepTime, long totalTimeElapsed) {
-        assertThat(RESULTS_NO_MORE_TO_SWEEP.getTimeInMillis()).isEqualTo(sweepTime);
-        assertThat(totalTimeElapsed)
-                .isBetween(
-                        RESULTS_NO_MORE_TO_SWEEP.getTimeElapsedSinceStartedSweeping() - 1000L,
-                        RESULTS_NO_MORE_TO_SWEEP.getTimeElapsedSinceStartedSweeping());
-    }
-
-    private String encodeStartRow(byte[] rowBytes) {
-        return BaseEncoding.base16().encode(rowBytes);
-    }
-
-    private void verifyNoSweepResultsSaved() {
-        verify(progressStore, never()).saveProgress(any());
-        verify(priorityStore, never()).update(any(), any(), any());
-    }
-}u}(jt  (d472c8f932207eb4899afe98ed0ccfe92e678cfdj  [atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/TargetedSweeperTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FTargetedSweeperTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FTargetedSweeperTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FTargetedSweeperTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -27,6 +27,7 @@
 import static com.palantir.atlasdb.sweep.queue.SweepQueueUtils.tsPartitionFine;
 import static com.palantir.atlasdb.table.description.SweeperStrategy.CONSERVATIVE;
 import static com.palantir.atlasdb.table.description.SweeperStrategy.THOROUGH;
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
@@ -81,6 +82,7 @@
 import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.v2.TimelockService;
+import com.palantir.logsafe.SafeArg;
 import java.time.Duration;
 import java.util.ArrayList;
 import java.util.List;
@@ -228,13 +230,15 @@ public void increaseInShardsReflectedOnLastSweptTimestamp() {
 
     @Test
     public void callingEnqueueAndSweepOnUninitializedSweeperThrows() {
+        SafeArg<String> objectNameSafeArg = SafeArg.of("objectName", "Targeted Sweeper");
         TargetedSweeper uninitializedSweeper = TargetedSweeper.createUninitializedForTest(() -> 1);
-        assertThatThrownBy(() -> uninitializedSweeper.enqueue(ImmutableList.of()))
+        assertThatLoggableExceptionThrownBy(() -> uninitializedSweeper.enqueue(ImmutableList.of()))
                 .isInstanceOf(NotInitializedException.class)
-                .hasMessageContaining("Targeted Sweeper");
-        assertThatThrownBy(() -> uninitializedSweeper.sweepNextBatch(ShardAndStrategy.conservative(0), 1L))
+                .hasExactlyArgs(objectNameSafeArg);
+        assertThatLoggableExceptionThrownBy(
+                        () -> uninitializedSweeper.sweepNextBatch(ShardAndStrategy.conservative(0), 1L))
                 .isInstanceOf(NotInitializedException.class)
-                .hasMessageContaining("Targeted Sweeper");
+                .hasExactlyArgs(objectNameSafeArg);
     }
 
     @Testu}(jt  (f83731cd3f3f8b3be5c5f506cb85afad40f4ec7bj  latlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/encoding/TicketsEncodingStrategyTest.javaj  modifiedj  Kj  Kj  K!j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategyTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategyTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategyTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XN  @@ -24,8 +24,7 @@
 import com.google.protobuf.ByteString;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.Cell;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Arrays;
 import java.util.List;
@@ -87,22 +86,20 @@ public void commitTimestampEncodeAndDecodeAreInverses() {
             long startTimestamp = ThreadLocalRandom.current().nextLong(0, Long.MAX_VALUE - 1);
             long commitTimestamp = ThreadLocalRandom.current().nextLong(startTimestamp, Long.MAX_VALUE);
             byte[] encoded =
-                    STRATEGY.encodeCommitStatusAsValue(startTimestamp, TransactionStatuses.committed(commitTimestamp));
-            assertThat(TransactionStatuses.getCommitTimestamp(
-                            STRATEGY.decodeValueAsCommitStatus(startTimestamp, encoded)))
-                    .hasValue(commitTimestamp);
+                    STRATEGY.encodeCommitStatusAsValue(startTimestamp, TransactionStatus.committed(commitTimestamp));
+            assertThat(STRATEGY.decodeValueAsCommitStatus(startTimestamp, encoded))
+                    .isEqualTo(TransactionStatus.committed(commitTimestamp));
         });
     }
 
     @Test
     public void storesLargeCommitTimestampsCompactly() {
         long highTimestamp = Long.MAX_VALUE - 1;
         byte[] commitTimestampEncoding =
-                STRATEGY.encodeCommitStatusAsValue(highTimestamp, TransactionStatuses.committed(highTimestamp + 1));
+                STRATEGY.encodeCommitStatusAsValue(highTimestamp, TransactionStatus.committed(highTimestamp + 1));
         assertThat(commitTimestampEncoding).hasSize(1);
-        assertThat(TransactionStatuses.getCommitTimestamp(
-                        STRATEGY.decodeValueAsCommitStatus(highTimestamp, commitTimestampEncoding)))
-                .hasValue(highTimestamp + 1);
+        assertThat(STRATEGY.decodeValueAsCommitStatus(highTimestamp, commitTimestampEncoding))
+                .isEqualTo(TransactionStatus.committed(highTimestamp + 1));
     }
 
     @Test
@@ -151,36 +148,36 @@ public void distributesRowsEvenlyAcrossBitSpace() {
 
     @Test
     public void canStoreTransactionsCommittingInstantaneously() {
-        assertThatCode(() -> STRATEGY.encodeCommitStatusAsValue(10, TransactionStatuses.committed(10L)))
+        assertThatCode(() -> STRATEGY.encodeCommitStatusAsValue(10, TransactionStatus.committed(10L)))
                 .doesNotThrowAnyException();
     }
 
     @Test
     public void canStoreAbortedTransactionCompactly() {
-        assertThat(STRATEGY.encodeCommitStatusAsValue(537369, TransactionConstants.ABORTED))
+        assertThat(STRATEGY.encodeCommitStatusAsValue(537369, TransactionStatus.aborted()))
                 .hasSize(0);
     }
 
     @Test
     public void encodingIllegalCommitThrows() {
-        assertThatThrownBy(() -> STRATEGY.encodeCommitStatusAsValue(12327758, TransactionStatuses.inProgress()))
+        assertThatThrownBy(() -> STRATEGY.encodeCommitStatusAsValue(12327758, TransactionStatus.inProgress()))
                 .isInstanceOf(SafeIllegalArgumentException.class);
-        assertThatThrownBy(() -> STRATEGY.encodeCommitStatusAsValue(12327758, TransactionStatuses.unknown()))
+        assertThatThrownBy(() -> STRATEGY.encodeCommitStatusAsValue(12327758, TransactionStatus.unknown()))
                 .isInstanceOf(SafeIllegalArgumentException.class);
     }
 
     @Test
     public void canDecodeEmptyByteArrayAsAbortedTransaction() {
         assertThat(STRATEGY.decodeValueAsCommitStatus(1, PtBytes.EMPTY_BYTE_ARRAY))
-                .isEqualTo(TransactionConstants.ABORTED);
+                .isEqualTo(TransactionStatus.aborted());
         assertThat(STRATEGY.decodeValueAsCommitStatus(862846378267L, PtBytes.EMPTY_BYTE_ARRAY))
-                .isEqualTo(TransactionConstants.ABORTED);
+                .isEqualTo(TransactionStatus.aborted());
     }
 
     @Test
     public void canDecodeNullAsInProgressTransaction() {
-        assertThat(STRATEGY.decodeValueAsCommitStatus(1, null)).isEqualTo(TransactionConstants.IN_PROGRESS);
-        assertThat(STRATEGY.decodeValueAsCommitStatus(862846378267L, null)).isEqualTo(TransactionConstants.IN_PROGRESS);
+        assertThat(STRATEGY.decodeValueAsCommitStatus(1, null)).isEqualTo(TransactionStatus.inProgress());
+        assertThat(STRATEGY.decodeValueAsCommitStatus(862846378267L, null)).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Testu}(jt  (f4c51432c4b246954b0fa6a7bcbfe0fa602255ecj  fatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoaderTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -35,7 +35,6 @@
 import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
 import com.palantir.atlasdb.transaction.service.AsyncTransactionService;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.lock.v2.LockToken;
@@ -59,7 +58,7 @@ public class CommitTimestampLoaderTest {
     private final KnownConcludedTransactions knownConcludedTransactions = mock(KnownConcludedTransactions.class);
 
     private void setup(long startTs, long commitTs) {
-        TransactionStatus commitStatus = TransactionStatuses.committed(commitTs);
+        TransactionStatus commitStatus = TransactionStatus.committed(commitTs);
         setup(startTs, commitStatus, false);
     }
 
@@ -87,7 +86,7 @@ public void readOnlyDoesNotThrowForUnsweptTTSCell() throws ExecutionException, I
     public void throwIfTTSBeyondReadOnlyForSweptTTSCell() {
         long transactionTs = 27l;
         long startTs = 5l;
-        TransactionStatus commitStatus = TransactionStatuses.unknown();
+        TransactionStatus commitStatus = TransactionStatus.unknown();
 
         setup(startTs, commitStatus, true);
 
@@ -160,7 +159,7 @@ public void doesNotCacheUnknownTransactions() throws ExecutionException, Interru
         long commitTsKnown = startTsKnown + 1;
 
         long startTsUnknown = 7l;
-        TransactionStatus commitUnknown = TransactionStatuses.unknown();
+        TransactionStatus commitUnknown = TransactionStatus.unknown();
 
         CommitTimestampLoader commitTimestampLoader =
                 getCommitTsLoader(Optional.empty(), transactionTs, transactionTs - 1);u}(jt  (8d3be841271bd5b738aeb04915dfea33129f9ecfj  tatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/knowledge/KnownAbandonedTransactionsImplTest.javaj  modifiedj  Kj  Kj  K&j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fknowledge%2FKnownAbandonedTransactionsImplTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fknowledge%2FKnownAbandonedTransactionsImplTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fknowledge%2FKnownAbandonedTransactionsImplTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X{  @@ -18,8 +18,8 @@
 
 import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
 import static org.mockito.ArgumentMatchers.anyLong;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.times;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.atLeastOnce;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
@@ -32,16 +32,30 @@
 import java.util.Set;
 import java.util.stream.Collectors;
 import java.util.stream.LongStream;
+import org.junit.Before;
 import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
 
+@RunWith(MockitoJUnitRunner.class)
 public final class KnownAbandonedTransactionsImplTest {
-    private final AbandonedTimestampStore abandonedTimestampStore = mock(AbandonedTimestampStore.class);
-    private final AbandonedTransactionSoftCache softCache = mock(AbandonedTransactionSoftCache.class);
-    private final KnownAbandonedTransactionsImpl knownAbortedTransactions = new KnownAbandonedTransactionsImpl(
-            abandonedTimestampStore,
-            softCache,
-            new DefaultTaggedMetricRegistry(),
-            KnownAbandonedTransactionsImpl.MAXIMUM_CACHE_WEIGHT);
+    @Mock
+    AbandonedTimestampStore abandonedTimestampStore;
+
+    @Mock
+    AbandonedTransactionSoftCache softCache;
+
+    private KnownAbandonedTransactionsImpl knownAbortedTransactions;
+
+    @Before
+    public void before() {
+        knownAbortedTransactions = new KnownAbandonedTransactionsImpl(
+                abandonedTimestampStore,
+                softCache,
+                new DefaultTaggedMetricRegistry(),
+                KnownAbandonedTransactionsImpl.MAXIMUM_CACHE_WEIGHT);
+    }
 
     @Test
     public void testIsKnownAbortedReturnsTrueIfAbortedInSoftCache() {
@@ -141,7 +155,7 @@ public void testReliableCacheEvictsIfWeightLimitReached() {
         // First query for bucket 1 goes to the store
         knownAbortedTransactions.isKnownAbandoned(rangeForBucket.lowerEndpoint());
         verify(abandonedTimestampStore)
-                .getAbandonedTimestampsInRange(rangeForBucket.lowerEndpoint(), rangeForBucket.upperEndpoint());
+                .getAbandonedTimestampsInRange(eq(rangeForBucket.lowerEndpoint()), eq(rangeForBucket.upperEndpoint()));
 
         // Subsequent queries for bucket 1 are resolved from cache
         knownAbortedTransactions.isKnownAbandoned(rangeForBucket.lowerEndpoint());
@@ -155,8 +169,8 @@ public void testReliableCacheEvictsIfWeightLimitReached() {
 
         // Now the query for bucket 1 will go to the futile store due to cache eviction
         knownAbortedTransactions.isKnownAbandoned(rangeForBucket.lowerEndpoint());
-        verify(abandonedTimestampStore, times(2))
-                .getAbandonedTimestampsInRange(rangeForBucket.lowerEndpoint(), rangeForBucket.upperEndpoint());
+        verify(abandonedTimestampStore, atLeastOnce())
+                .getAbandonedTimestampsInRange(eq(rangeForBucket.lowerEndpoint()), eq(rangeForBucket.upperEndpoint()));
     }
 
     @Testu}(jt  (53509f2b6df2a34a1c1eb9aff6769f11f64e0441j  +atlasdb-perf/baseline-class-uniqueness.lockj  removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-perf%2Fbaseline-class-uniqueness.lockj  ~https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-perf%2Fbaseline-class-uniqueness.lockj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fbaseline-class-uniqueness.lock?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  XB  @@ -1,11 +0,0 @@
-# Danger! Multiple jars contain identically named classes. This may cause different behaviour depending on classpath ordering.
-# Run ./gradlew checkClassUniqueness --write-locks to update this file
-
-## runtimeClasspath
-[commons-logging:commons-logging, org.slf4j:jcl-over-slf4j]
-  - org.apache.commons.logging.Log
-  - org.apache.commons.logging.LogConfigurationException
-  - org.apache.commons.logging.LogFactory
-  - org.apache.commons.logging.impl.NoOpLog
-  - org.apache.commons.logging.impl.SimpleLog
-  - org.apache.commons.logging.impl.SimpleLog$1u}(jt  (633bf2503dddd056c1d63648ab4b3b33ddae8945j  !atlasdb-tests-shared/build.gradlej  modifiedj  Kj  K j  Kj  uhttps://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-tests-shared%2Fbuild.gradlej  thttps://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-tests-shared%2Fbuild.gradlej  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fbuild.gradle?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -54,6 +54,7 @@ dependencies {
   testImplementation 'com.palantir.tritium:tritium-registry'
   testImplementation 'commons-io:commons-io'
   testImplementation 'io.dropwizard.metrics:metrics-core'
+  testImplementation 'one.util:streamex'
   testImplementation 'org.apache.commons:commons-lang3'
   testImplementation 'org.slf4j:slf4j-api'
   testImplementation project(':atlasdb-api')u}(jt  (719625a535e06bbf858f244a7545995d6c3bfc49j  fatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/AbstractKeyValueServiceTest.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueServiceTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueServiceTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueServiceTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -84,6 +84,7 @@
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
+import org.xnio.ByteString;
 
 @SuppressWarnings("MustBeClosedChecker")
 public abstract class AbstractKeyValueServiceTest {
@@ -201,6 +202,19 @@ static Map<Cell, Value> getValuesForRow(Map<byte[], RowColumnRangeIterator> valu
         return results;
     }
 
+    @Test
+    public void getRowColumnRange_ReturnsEmptyIteratorIfNoCellsPresent() {
+        List<byte[]> rows = ImmutableList.of(row(1), row(2), row(12));
+        Set<ByteString> comparableRows = rows.stream().map(ByteString::of).collect(Collectors.toSet());
+        Map<byte[], RowColumnRangeIterator> values = keyValueService.getRowsColumnRange(
+                TEST_TABLE,
+                rows,
+                BatchColumnRangeSelection.create(PtBytes.EMPTY_BYTE_ARRAY, PtBytes.EMPTY_BYTE_ARRAY, 1),
+                TEST_TIMESTAMP + 1);
+        assertThat(values.keySet().stream().map(ByteString::of)).hasSameElementsAs(comparableRows);
+        assertThat(values.values()).allMatch(iterator -> !iterator.hasNext());
+    }
+
     @Test
     public void testGetRowColumnRange() {
         putTestDataForSingleTimestamp();u}(jt  (d030dbed17299b5450443775cf43034372a1ca11j  datlasdb-tests-shared/src/main/java/com/palantir/atlasdb/sweep/SweeperServiceImplIntegrationTest.javaj  removedj  K j  Kj  Kj  https://github.com/palantir/atlasdb/blob/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplIntegrationTest.javaj  https://github.com/palantir/atlasdb/raw/ec17b44ea9b054bd05b1b39c12b3c869da0bb679/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplIntegrationTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplIntegrationTest.java?ref=ec17b44ea9b054bd05b1b39c12b3c869da0bb679j  X&  @@ -1,235 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.Cell;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.Value;
-import com.palantir.atlasdb.keyvalue.impl.InMemoryKeyValueService;
-import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
-import com.palantir.common.streams.KeyedStream;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.concurrent.ThreadLocalRandom;
-import java.util.stream.Collectors;
-import java.util.stream.IntStream;
-import org.junit.Before;
-import org.junit.Test;
-
-public class SweeperServiceImplIntegrationTest extends AbstractBackgroundSweeperIntegrationTest {
-    private SweeperService sweeperService;
-
-    @Before
-    @Override
-    public void setup() {
-        super.setup();
-        sweeperService = new SweeperServiceImpl(specificTableSweeper, sweepBatchConfigSource);
-    }
-
-    @Override
-    @Test
-    public void smokeTest() {
-        createTable(TABLE_1, SweepStrategy.CONSERVATIVE);
-        putManyCells(TABLE_1, 100, 110);
-        putManyCells(TABLE_1, 103, 113);
-        putManyCells(TABLE_1, 105, 115);
-        sweeperService.sweepTableFully(TABLE_1.getQualifiedName());
-        verifyTableSwept(TABLE_1, 75, true);
-    }
-
-    @Test
-    public void previouslyConservativeErasesMostExistingSentinelsInThoroughTable() {
-        skipCellVersion.setPeriod(Integer.MAX_VALUE);
-        createTable(TABLE_1, SweepStrategy.THOROUGH);
-
-        Map<Cell, byte[]> sentinelWrites = IntStream.range(0, 100)
-                .mapToObj(PtBytes::toBytes)
-                .map(bytes -> Cell.create(bytes, bytes))
-                .collect(Collectors.toMap(cell -> cell, _ignore -> PtBytes.EMPTY_BYTE_ARRAY));
-        kvs.put(TABLE_1, sentinelWrites, Value.INVALID_VALUE_TIMESTAMP);
-        Map<Cell, Long> readMap = KeyedStream.stream(sentinelWrites)
-                .map(_ignore -> Long.MAX_VALUE)
-                .collectToMap();
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(100);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(1);
-    }
-
-    @Test
-    public void previouslyConservativeRunsFullSweepIfTableIsStillConservativelySwept() {
-        createTable(TABLE_1, SweepStrategy.CONSERVATIVE);
-
-        Map<Cell, byte[]> writes = KeyedStream.of(IntStream.range(0, 100).boxed())
-                .mapKeys(PtBytes::toBytes)
-                .mapKeys(bytes -> Cell.create(bytes, bytes))
-                .map(PtBytes::toBytes)
-                .collectToMap();
-        kvs.put(TABLE_1, writes, 100L);
-        txService.putUnlessExists(100L, 101L);
-        kvs.put(TABLE_1, writes, 103L);
-        txService.putUnlessExists(103L, 104L);
-        Map<Cell, Long> readMap =
-                KeyedStream.stream(writes).map(_ignore -> 102L).collectToMap();
-
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(100);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        Map<Cell, Value> reads = kvs.get(TABLE_1, readMap);
-        // lower ts entries are swept, but we have sentinels
-        assertThat(reads.values().stream().map(Value::getTimestamp).collect(Collectors.toSet()))
-                .containsExactly(Value.INVALID_VALUE_TIMESTAMP);
-        assertThat(reads).hasSize(100);
-        Map<Cell, Long> readsAtMaxTs =
-                KeyedStream.stream(readMap).map(_ignore -> Long.MAX_VALUE).collectToMap();
-        Map<Cell, Value> maxTsReads = kvs.get(TABLE_1, readsAtMaxTs);
-        assertThat(maxTsReads.values().stream().map(Value::getTimestamp).collect(Collectors.toSet()))
-                .containsExactly(103L);
-        assertThat(maxTsReads).hasSize(100);
-    }
-
-    /**
-     * To help understand the test below, refer to the tables.
-     * Before sweep
-     * +----------+--------+-----------+
-     * | START_TS | VALUES | DELETIONS |
-     * +----------+--------+-----------+
-     * |      100 |    500 |       500 |
-     * |      103 |    500 |       500 |
-     * +----------+--------+-----------+
-     *
-     * After sweep
-     * +----------+--------+-----------+
-     * | START_TS | VALUES | DELETIONS |
-     * +----------+--------+-----------+
-     * |      100 |      6 |         5 |
-     * |      103 |    500 |     5 + 5 |
-     * +----------+--------+-----------+
-     */
-    @Test
-    public void previouslyConservativeRespectsSkipPeriodWhenSweepingNormally() {
-        skipCellVersion.setPeriod(9);
-        createTable(TABLE_1, SweepStrategy.THOROUGH);
-
-        Map<Cell, byte[]> writes = KeyedStream.of(IntStream.range(0, 1000).boxed())
-                .mapKeys(PtBytes::toBytes)
-                .mapKeys(bytes -> Cell.create(bytes, bytes))
-                .map(count -> count < 500 ? PtBytes.toBytes(count) : PtBytes.EMPTY_BYTE_ARRAY)
-                .collectToMap();
-        kvs.put(TABLE_1, writes, 100L);
-        txService.putUnlessExists(100L, 101L);
-        kvs.put(TABLE_1, writes, 103L);
-        txService.putUnlessExists(103L, 104L);
-
-        Map<Cell, Long> readMap =
-                KeyedStream.stream(writes).map(_ignore -> 102L).collectToMap();
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(1000);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        assertThat(kvs.get(TABLE_1, readMap))
-                .as("deletes all but 11 entries at lower timestamp ~ 1%")
-                .hasSize(11);
-        Map<Cell, Long> readsAtMaxTs =
-                KeyedStream.stream(readMap).map(_ignore -> Long.MAX_VALUE).collectToMap();
-        Map<Cell, Value> latestVisibleVersions = kvs.get(TABLE_1, readsAtMaxTs);
-        assertThat(latestVisibleVersions.values().stream()
-                        .map(Value::getTimestamp)
-                        .noneMatch(timestamp -> timestamp == 100L))
-                .as("none of the entries at lower ts are naked")
-                .isTrue();
-        assertThat(latestVisibleVersions)
-                .as("500 non-deletes, 5 deletes skipped normally, and 5 skipped to prevent revealing at lower ts")
-                .hasSize(510);
-    }
-
-    @Test
-    public void sweepPreviouslyConservativeNowThoroughTableFuzzTest() {
-        skipCellVersion.makeNonDeterministic();
-        createTable(TABLE_1, SweepStrategy.THOROUGH);
-
-        Set<Cell> cells = IntStream.range(0, 10_000)
-                .boxed()
-                .map(PtBytes::toBytes)
-                .map(bytes -> Cell.create(bytes, bytes))
-                .collect(Collectors.toSet());
-
-        for (int i = 0; i < 10; i++) {
-            Map<Cell, byte[]> writes = KeyedStream.of(cells)
-                    .map(cell ->
-                            ThreadLocalRandom.current().nextBoolean() ? cell.getRowName() : PtBytes.EMPTY_BYTE_ARRAY)
-                    .collectToMap();
-            kvs.put(TABLE_1, writes, 100L + 2L * i);
-            txService.putUnlessExists(100L + 2L * i, 101L + 2L * i);
-        }
-
-        Map<Cell, Long> readMap = KeyedStream.of(cells).map(_ignore -> 102L).collectToMap();
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(10_000);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        assertThat(kvs.get(TABLE_1, readMap).size())
-                .as("expected number of remaining entries is 1%, ~100")
-                .isBetween(50, 200);
-
-        Map<Cell, Long> readsAtMaxTs =
-                KeyedStream.of(cells).map(_ignore -> Long.MAX_VALUE).collectToMap();
-        Map<Cell, Value> latestVisibleVersions = kvs.get(TABLE_1, readsAtMaxTs);
-        assertThat(latestVisibleVersions.values().stream()
-                        .map(Value::getTimestamp)
-                        .allMatch(ts -> ts == 100 + 2 * 9))
-                .as("every visible cell still has the version at greatest timestamp")
-                .isTrue();
-        assertThat(latestVisibleVersions.size())
-                .as("expected number of cells that are fully deleted is ~45.22%, ~5500 remaining")
-                .isBetween(4500, 6500);
-    }
-
-    @Override
-    protected KeyValueService getKeyValueService() {
-        return new InMemoryKeyValueService(true);
-    }
-}u}(jt  (66779380c83f5cb8ac2fd50cd7bc8d6f740296fej  eatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractTransactionTest.javaj  modifiedj  KJj  K j  KJj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X5  @@ -29,6 +29,7 @@
 import com.google.common.collect.Multimap;
 import com.google.common.collect.Multimaps;
 import com.google.common.collect.Ordering;
+import com.google.common.collect.Streams;
 import com.google.common.io.BaseEncoding;
 import com.google.common.primitives.UnsignedBytes;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -74,6 +75,7 @@
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Random;
 import java.util.Set;
 import java.util.SortedMap;
@@ -688,6 +690,78 @@ public void testRangesTransactionColumnSelection() {
         verifyAllGetRangesImplsRangeSizes(tx, range3, 0);
     }
 
+    @Test
+    public void getRangeRetainsOnlyRelevantColumnsFromLocalWrites() {
+        byte[] row = "row".getBytes(StandardCharsets.UTF_8);
+        byte[] firstColumn = "jakub".getBytes(StandardCharsets.UTF_8);
+        byte[] secondColumn = "james".getBytes(StandardCharsets.UTF_8);
+        byte[] thirdColumn = "jeremy".getBytes(StandardCharsets.UTF_8);
+        byte[] fourthColumn = "jolyon".getBytes(StandardCharsets.UTF_8);
+        Cell firstCell = Cell.create(row, firstColumn);
+        Cell secondCell = Cell.create(row, secondColumn);
+        Cell thirdCell = Cell.create(row, thirdColumn);
+        Cell fourthCell = Cell.create(row, fourthColumn);
+        byte[] value = new byte[1];
+
+        Transaction firstTransaction = startTransaction();
+        firstTransaction.put(TEST_TABLE, ImmutableMap.of(firstCell, value, fourthCell, value));
+        firstTransaction.commit();
+
+        Transaction secondTransaction = startTransaction();
+        secondTransaction.put(TEST_TABLE, ImmutableMap.of(secondCell, value, thirdCell, value));
+
+        BatchingVisitable<RowResult<byte[]>> rowResults = secondTransaction.getRange(
+                TEST_TABLE,
+                RangeRequest.builder()
+                        .retainColumns(ImmutableSet.of(firstColumn, secondColumn))
+                        .build());
+        List<Cell> cellsRead = BatchingVisitables.copyToList(rowResults).stream()
+                .map(RowResult::getCells)
+                .flatMap(Streams::stream)
+                .map(Entry::getKey)
+                .collect(Collectors.toList());
+        assertThat(cellsRead).containsExactly(firstCell, secondCell);
+    }
+
+    @Test
+    public void deprecatedGetRangesRetainsOnlyRelevantColumnsFromLocalWrites() {
+        byte[] row = "row".getBytes(StandardCharsets.UTF_8);
+        byte[] firstColumn = "jack".getBytes(StandardCharsets.UTF_8);
+        byte[] secondColumn = "jill".getBytes(StandardCharsets.UTF_8);
+        byte[] thirdColumn = "joel".getBytes(StandardCharsets.UTF_8);
+        byte[] fourthColumn = "juliet".getBytes(StandardCharsets.UTF_8);
+        Cell firstCell = Cell.create(row, firstColumn);
+        Cell secondCell = Cell.create(row, secondColumn);
+        Cell thirdCell = Cell.create(row, thirdColumn);
+        Cell fourthCell = Cell.create(row, fourthColumn);
+        byte[] value = new byte[1];
+
+        Transaction firstTransaction = startTransaction();
+        firstTransaction.put(TEST_TABLE, ImmutableMap.of(firstCell, value, fourthCell, value));
+        firstTransaction.commit();
+
+        Transaction secondTransaction = startTransaction();
+        secondTransaction.put(TEST_TABLE, ImmutableMap.of(secondCell, value, thirdCell, value));
+
+        Iterable<BatchingVisitable<RowResult<byte[]>>> visitables = secondTransaction.getRanges(
+                TEST_TABLE,
+                ImmutableList.of(
+                        RangeRequest.builder()
+                                .retainColumns(ImmutableSet.of(firstColumn))
+                                .build(),
+                        RangeRequest.builder()
+                                .retainColumns(ImmutableSet.of(secondColumn))
+                                .build()));
+        List<Cell> cellsRead = Streams.stream(visitables)
+                .map(BatchingVisitables::copyToList)
+                .flatMap(List::stream)
+                .map(RowResult::getCells)
+                .flatMap(Streams::stream)
+                .map(Entry::getKey)
+                .collect(Collectors.toList());
+        assertThat(cellsRead).containsExactly(firstCell, secondCell);
+    }
+
     @Test
     public void testRangePaging() {
         int totalPuts = 101;u}(jt  (5cdcabaa8268eb540f0ccfc73d1fe1870eb88dadj  Xatlasdb-tests-shared/src/main/java/com/palantir/timelock/paxos/InMemoryTimeLockRule.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimeLockRule.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimeLockRule.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimeLockRule.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -17,9 +17,9 @@
 package com.palantir.timelock.paxos;
 
 import com.palantir.atlasdb.keyvalue.api.watch.LockWatchManagerInternal;
-import com.palantir.atlasdb.timelock.AsyncTimelockResource;
 import com.palantir.atlasdb.timelock.AsyncTimelockService;
 import com.palantir.atlasdb.timelock.TimeLockServices;
+import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.lock.LockService;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.timestamp.ManagedTimestampService;
@@ -66,11 +66,6 @@ public LockService getLockService() {
         return services.getLockService();
     }
 
-    @Override
-    public AsyncTimelockResource getTimelockResource() {
-        return services.getTimelockResource();
-    }
-
     @Override
     public AsyncTimelockService getTimelockService() {
         return services.getTimelockService();
@@ -81,6 +76,11 @@ public TimestampManagementService getTimestampManagementService() {
         return services.getTimestampManagementService();
     }
 
+    @Override
+    public LockLog getLockLog() {
+        return services.getLockLog();
+    }
+
     public TimelockService getLegacyTimelockService() {
         return services.getLegacyTimelockService();
     }u}(jt  (fd1072fee241e64f646b79a5c47f7f4c01826392j  \atlasdb-tests-shared/src/main/java/com/palantir/timelock/paxos/InMemoryTimelockServices.javaj  modifiedj  Kj  K	j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X
  @@ -21,11 +21,11 @@
 import com.palantir.atlasdb.http.RedirectRetryTargeter;
 import com.palantir.atlasdb.keyvalue.api.LockWatchCachingConfig;
 import com.palantir.atlasdb.keyvalue.api.watch.LockWatchManagerInternal;
-import com.palantir.atlasdb.timelock.AsyncTimelockResource;
 import com.palantir.atlasdb.timelock.AsyncTimelockService;
 import com.palantir.atlasdb.timelock.ConjureTimelockResource;
 import com.palantir.atlasdb.timelock.TimeLockServices;
 import com.palantir.atlasdb.timelock.api.ConjureTimelockService;
+import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.conjure.java.api.config.service.PartialServiceConfiguration;
@@ -57,7 +57,6 @@
 import com.palantir.timestamp.ManagedTimestampService;
 import com.palantir.timestamp.TimestampManagementService;
 import com.palantir.timestamp.TimestampService;
-import com.palantir.tokens.auth.BearerToken;
 import java.io.Closeable;
 import java.io.File;
 import java.io.IOException;
@@ -73,7 +72,6 @@ public final class InMemoryTimelockServices extends ExternalResource implements
     private static final String USER_AGENT_NAME = "user-agent";
     private static final String USER_AGENT_VERSION = "3.1415926.5358979";
     private static final UserAgent USER_AGENT = UserAgent.of(UserAgent.Agent.of(USER_AGENT_NAME, USER_AGENT_VERSION));
-    private static final BearerToken BEARER_TOKEN = BearerToken.valueOf("test-token");
     private static final int THREAD_POOL_SIZE = 128;
     private static final int BLOCKING_TIMEOUT_MS = 60 * 800; // 0.8 mins to ms
 
@@ -121,7 +119,6 @@ protected void before() throws IOException {
                 .cluster(PartialServiceConfiguration.of(List.of("local"), Optional.empty()))
                 .build();
         TimeLockRuntimeConfiguration runtime = ImmutableTimeLockRuntimeConfiguration.builder()
-                .permittedBackupToken(BEARER_TOKEN)
                 .clusterSnapshot(clusterConfig)
                 .build();
 
@@ -208,11 +205,6 @@ public LockService getLockService() {
         return delegate.getLockService();
     }
 
-    @Override
-    public AsyncTimelockResource getTimelockResource() {
-        return delegate.getTimelockResource();
-    }
-
     @Override
     public AsyncTimelockService getTimelockService() {
         return delegate.getTimelockService();
@@ -223,6 +215,11 @@ public TimestampManagementService getTimestampManagementService() {
         return delegate.getTimestampManagementService();
     }
 
+    @Override
+    public LockLog getLockLog() {
+        return delegate.getLockLog();
+    }
+
     public ManagedTimestampService getManagedTimestampService() {
         return delegate.getTimelockService();
     }u}(jt  (b477ac45a67d3461a2afb8a529c94e3055b5291cj  \atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/factory/TransactionManagersTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -165,7 +165,7 @@ public class TransactionManagersTest {
     private AtlasDbConfig config;
     private AtlasDbRuntimeConfig mockAtlasDbRuntimeConfig;
 
-    private Consumer<Object> environment;
+    private Consumer<Object> registrar;
     private TimestampStoreInvalidator invalidator;
     private Consumer<Runnable> originalAsyncMethod;
 
@@ -208,7 +208,7 @@ public void setUp() {
         when(mockAtlasDbRuntimeConfig.timelockRuntime()).thenReturn(Optional.empty());
         when(mockAtlasDbRuntimeConfig.remotingClient()).thenReturn(RemotingClientConfigs.DEFAULT);
 
-        environment = mock(Consumer.class);
+        registrar = mock(Consumer.class);
 
         invalidator = mock(TimestampStoreInvalidator.class);
         when(invalidator.backupAndInvalidate()).thenReturn(EMBEDDED_BOUND);
@@ -236,7 +236,7 @@ public void cannotProvideRuntimeConfigTwice() {
                         .userAgent(USER_AGENT)
                         .globalMetricsRegistry(new MetricRegistry())
                         .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                        .registrar(environment)
+                        .registrar(registrar)
                         .runtimeConfig(Refreshable.only(Optional.empty()))
                         .runtimeConfigSupplier(Optional::empty)
                         .build())
@@ -351,7 +351,7 @@ public void setsGlobalDefaultLockTimeout() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build()
                 .serializable();
 
@@ -412,7 +412,7 @@ public void runsClosingCallbackOnShutdown() throws Exception {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build()
                 .serializable();
         manager.registerClosingCallback(callback);
@@ -432,7 +432,7 @@ public void keyValueServiceMetricsDoNotContainUserAgent() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build()
                 .serializable();
         assertThat(metrics.getNames().stream().anyMatch(metricName -> metricName.contains(USER_AGENT_NAME)))
@@ -453,7 +453,7 @@ public void overriddenServiceNameIsReturned() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .serviceIdentifierOverride("overriden")
                 .build();
 
@@ -473,7 +473,7 @@ public void serviceNameIsFetchedFromAtlasConfig() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build();
         assertThat(transactionManagers.serviceName()).isEqualTo("namespace");
     }
@@ -493,7 +493,7 @@ public void serviceNameIsFetchedFromKvsConfigWhenItIsNotPresentInAtlasConfig() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build();
 
         assertThat(transactionManagers.serviceName()).isEqualTo("namespace");
@@ -510,7 +510,7 @@ public void serviceNameFallsBackToDefaultWhenNamespaceIsNotPresent() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build();
 
         assertThat(transactionManagers.serviceName()).isEqualTo("UNKNOWN");
@@ -520,7 +520,7 @@ public void serviceNameFallsBackToDefaultWhenNamespaceIsNotPresent() {
     public void interruptingLocalLeaderElectionTerminates() throws IOException {
         Leaders.LocalPaxosServices localPaxosServices = Leaders.createAndRegisterLocalServices(
                 metricsManager,
-                environment,
+                registrar,
                 ImmutableLeaderConfig.builder()
                         .localServer("https://example")
                         .quorumSize(1)
@@ -593,7 +593,7 @@ private TransactionManagers withLockImmutableTsOnReadOnlyTransaction(boolean opt
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .lockImmutableTsOnReadOnlyTransactions(option)
                 .build();
     }
@@ -699,7 +699,7 @@ private KeyValueService initializeKeyValueServiceWithSweepSettings(boolean enabl
                 .userAgent(UserAgent.of(UserAgent.Agent.of("test", "0.0.0")))
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema())
                 .runtimeConfigSupplier(() -> Optional.of(atlasDbRuntimeConfig))
                 .build()
@@ -762,7 +762,7 @@ private void setUpForLocalServices() throws IOException {
                             .withBody(("\"" + localPingableLeader.getUUID() + "\"").getBytes(StandardCharsets.UTF_8))));
                     return null;
                 })
-                .when(environment)
+                .when(registrar)
                 .accept(isA(PingableLeader.class));
         setUpLeaderBlockInConfig();
     }
@@ -807,7 +807,7 @@ private LockAndTimestampServices getLockAndTimestampServices() {
                         metricsManager,
                         config,
                         Refreshable.only(mockAtlasDbRuntimeConfig),
-                        environment,
+                        registrar,
                         LockServiceImpl::create,
                         () -> ts,
                         invalidator,u      }(jt  (ed816cfe8aeeab6c9d4c67800711536248a8eb8dj  Qatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/NamespaceTest.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FNamespaceTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FNamespaceTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FNamespaceTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -92,4 +92,11 @@ public void testStrictlyCheckedNames() {
         expectFailure(".", Namespace.STRICTLY_CHECKED_NAME);
         expectFailure("name.space", Namespace.STRICTLY_CHECKED_NAME);
     }
+
+    @Test
+    public void invalid() {
+        assertThatThrownBy(() -> Namespace.create(null)).isInstanceOf(NullPointerException.class);
+        assertThatThrownBy(() -> Namespace.create(null, Namespace.UNCHECKED_NAME))
+                .isInstanceOf(NullPointerException.class);
+    }
 }u}(jt  (38f4273739afb0b98a93c04425e7729b7ca33149j  latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -29,7 +29,6 @@
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
 
-import com.codahale.metrics.MetricRegistry;
 import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.cache.DefaultTimestampCache;
 import com.palantir.atlasdb.cleaner.api.Cleaner;
@@ -52,6 +51,8 @@
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import com.palantir.timelock.paxos.InMemoryTimeLockRule;
 import com.palantir.timestamp.ManagedTimestampService;
+import com.palantir.tritium.metrics.registry.MetricName;
+import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import java.io.IOException;
 import java.math.BigInteger;
 import java.util.List;
@@ -233,10 +234,20 @@ public void invokesCallbacksInReverseOrderOfRegistration() {
     public void registersMetrics() throws InterruptedException {
         when(closeableLockService.lock(any(), any())).thenReturn(new LockRefreshToken(BigInteger.ONE, Long.MAX_VALUE));
         snapshotTransactionManager.runTaskWithRetry(tx -> 42);
-        MetricRegistry registry = snapshotTransactionManager.metricsManager.getRegistry();
-        assertThat(registry.getNames()).contains(SETUP_TASK_METRIC_NAME).contains(FINISH_TASK_METRIC_NAME);
-        assertThat(registry.getTimers().get(SETUP_TASK_METRIC_NAME).getCount()).isGreaterThanOrEqualTo(1);
-        assertThat(registry.getTimers().get(FINISH_TASK_METRIC_NAME).getCount()).isGreaterThanOrEqualTo(1);
+        TaggedMetricRegistry registry = snapshotTransactionManager.metricsManager.getTaggedRegistry();
+        assertThat(registry.getMetrics().keySet().stream().map(MetricName::safeName))
+                .contains(SETUP_TASK_METRIC_NAME)
+                .contains(FINISH_TASK_METRIC_NAME);
+        assertThat(registry.timer(MetricName.builder()
+                                .safeName(SETUP_TASK_METRIC_NAME)
+                                .build())
+                        .getCount())
+                .isGreaterThanOrEqualTo(1);
+        assertThat(registry.timer(MetricName.builder()
+                                .safeName(FINISH_TASK_METRIC_NAME)
+                                .build())
+                        .getCount())
+                .isGreaterThanOrEqualTo(1);
     }
 
     @Testu}(jt  (e9b3bf84422527fc3610b1c4f3a66cdf9ea2c8b8j  eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X0  @@ -64,6 +64,7 @@
 import com.palantir.atlasdb.keyvalue.api.ColumnSelection;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.RangeRequest;
+import com.palantir.atlasdb.keyvalue.api.RangeRequests;
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.Value;
@@ -131,6 +132,7 @@
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.NavigableMap;
 import java.util.Optional;
 import java.util.Random;
@@ -154,6 +156,7 @@
 import java.util.stream.LongStream;
 import java.util.stream.Stream;
 import java.util.stream.StreamSupport;
+import one.util.streamex.EntryStream;
 import org.apache.commons.lang3.mutable.MutableInt;
 import org.apache.commons.lang3.mutable.MutableLong;
 import org.apache.commons.lang3.tuple.Pair;
@@ -1178,6 +1181,222 @@ public void cleanup() {}
         assertThat(cells).containsExactly(firstCell, secondCell);
     }
 
+    @Test
+    public void getRowsColumnRangeMergesLocalWrites() {
+        byte[] row = "foo".getBytes(StandardCharsets.UTF_8);
+        Cell firstCell = Cell.create(row, "a".getBytes(StandardCharsets.UTF_8));
+        Cell secondCell = Cell.create(row, "b".getBytes(StandardCharsets.UTF_8));
+        byte[] value = new byte[1];
+
+        serializableTxManager.runTaskWithRetry(tx -> {
+            tx.put(TABLE, ImmutableMap.of(firstCell, value, secondCell, value));
+            return null;
+        });
+
+        Cell inBetweenCell = Cell.create(row, "abba".getBytes(StandardCharsets.UTF_8));
+        List<Cell> cells = serializableTxManager.runTaskWithRetry(tx -> {
+            tx.put(TABLE, ImmutableMap.of(inBetweenCell, value));
+            return Lists.transform(
+                    Lists.newArrayList(tx.getRowsColumnRange(
+                            TABLE, ImmutableList.of(row), new ColumnRangeSelection(null, null), 10)),
+                    Map.Entry::getKey);
+        });
+        assertThat(cells).containsExactly(firstCell, inBetweenCell, secondCell);
+    }
+
+    @Test
+    public void getRowsColumnRangeIncludesLocalWritesWhenRowEntirelyAbsentFromKvs() {
+        byte[] row = "foo".getBytes(StandardCharsets.UTF_8);
+        Cell beforeRange = Cell.create(row, "james".getBytes(StandardCharsets.UTF_8));
+        Cell inRangeOne = Cell.create(row, "jeremy".getBytes(StandardCharsets.UTF_8));
+        Cell inRangeTwo = Cell.create(row, "tom".getBytes(StandardCharsets.UTF_8));
+        Cell afterRange = Cell.create(row, "will".getBytes(StandardCharsets.UTF_8));
+        byte[] value = new byte[1];
+
+        List<Cell> cells = serializableTxManager.runTaskWithRetry(tx -> {
+            tx.put(TABLE, ImmutableMap.of(beforeRange, value, inRangeOne, value, inRangeTwo, value, afterRange, value));
+            return Lists.transform(
+                    Lists.newArrayList(tx.getRowsColumnRange(
+                            TABLE,
+                            ImmutableList.of(row),
+                            new ColumnRangeSelection(
+                                    RangeRequests.nextLexicographicName(beforeRange.getColumnName()),
+                                    RangeRequests.previousLexicographicName(afterRange.getColumnName())),
+                            10)),
+                    Map.Entry::getKey);
+        });
+        assertThat(cells).containsExactly(inRangeOne, inRangeTwo);
+    }
+
+    @Test
+    public void getRowsColumnRangeIncludesRowsWithOnlyLocalWritesCorrectly() {
+        byte[] row1 = "apple".getBytes(StandardCharsets.UTF_8);
+        byte[] row2 = "banana".getBytes(StandardCharsets.UTF_8);
+        byte[] row3 = "cherry".getBytes(StandardCharsets.UTF_8);
+        byte[] row4 = "durian".getBytes(StandardCharsets.UTF_8);
+        byte[] value = new byte[1];
+
+        Cell firstCell = Cell.create(row1, "apricot".getBytes(StandardCharsets.UTF_8));
+        Cell secondCell = Cell.create(row2, "bamboo".getBytes(StandardCharsets.UTF_8));
+        Cell thirdCell = Cell.create(row3, "coconut".getBytes(StandardCharsets.UTF_8));
+        Cell fourthCell = Cell.create(row4, "dragonfruit".getBytes(StandardCharsets.UTF_8));
+
+        serializableTxManager.runTaskWithRetry(tx -> {
+            tx.put(TABLE, ImmutableMap.of(firstCell, value, thirdCell, value));
+            return null;
+        });
+
+        List<Cell> cells = serializableTxManager.runTaskWithRetry(tx -> {
+            tx.put(TABLE, ImmutableMap.of(secondCell, value));
+            return Lists.transform(
+                    Lists.newArrayList(tx.getRowsColumnRange(
+                            TABLE, ImmutableList.of(row1, row2, row3), new ColumnRangeSelection(null, null), 10)),
+                    Map.Entry::getKey);
+        });
+        assertThat(cells).containsExactly(firstCell, secondCell, thirdCell);
+
+        cells = serializableTxManager.runTaskWithRetry(tx -> {
+            tx.put(TABLE, ImmutableMap.of(fourthCell, value));
+            return Lists.transform(
+                    Lists.newArrayList(tx.getRowsColumnRange(
+                            TABLE, ImmutableList.of(row3, row4, row1, row2), new ColumnRangeSelection(null, null), 10)),
+                    Map.Entry::getKey);
+        });
+        assertThat(cells).containsExactly(thirdCell, fourthCell, firstCell, secondCell);
+    }
+
+    @Test
+    public void getRowsColumnRangeIncludesPrefixRowsWithOnlyLocalWritesCorrectly() {
+        byte[] row1 = "first".getBytes(StandardCharsets.UTF_8);
+        byte[] row2 = "second".getBytes(StandardCharsets.UTF_8);
+        byte[] value = new byte[1];
+
+        Cell firstCell = Cell.create(row1, "1st".getBytes(StandardCharsets.UTF_8));
+        Cell secondCell = Cell.create(row2, "2nd".getBytes(StandardCharsets.UTF_8));
+
+        serializableTxManager.runTaskWithRetry(tx -> {
+            tx.put(TABLE, ImmutableMap.of(secondCell, value));
+            return null;
+        });
+
+        List<Cell> cells = serializableTxManager.runTaskWithRetry(tx -> {
+            tx.put(TABLE, ImmutableMap.of(firstCell, value));
+            return Lists.transform(
+                    Lists.newArrayList(tx.getRowsColumnRange(
+                            TABLE, ImmutableList.of(row1, row2), new ColumnRangeSelection(null, null), 10)),
+                    Map.Entry::getKey);
+        });
+        assertThat(cells).containsExactly(firstCell, secondCell);
+    }
+
+    @Test
+    public void getRowsColumnRangeIncludesSuffixRowsWithOnlyLocalWritesCorrectly() {
+        byte[] row1 = "first".getBytes(StandardCharsets.UTF_8);
+        byte[] row2 = "second".getBytes(StandardCharsets.UTF_8);
+        byte[] value = new byte[1];
+
+        Cell firstCell = Cell.create(row1, "1st".getBytes(StandardCharsets.UTF_8));
+        Cell secondCell = Cell.create(row2, "2nd".getBytes(StandardCharsets.UTF_8));
+
+        serializableTxManager.runTaskWithRetry(tx -> {
+            tx.put(TABLE, ImmutableMap.of(firstCell, value));
+            return null;
+        });
+
+        List<Cell> cells = serializableTxManager.runTaskWithRetry(tx -> {
+            tx.put(TABLE, ImmutableMap.of(secondCell, value));
+            return Lists.transform(
+                    Lists.newArrayList(tx.getRowsColumnRange(
+                            TABLE, ImmutableList.of(row1, row2), new ColumnRangeSelection(null, null), 10)),
+                    Map.Entry::getKey);
+        });
+        assertThat(cells).containsExactly(firstCell, secondCell);
+    }
+
+    @Test
+    public void getRowsColumnRangeHandlesTotallyEmptyRows() {
+        byte[] row = "foo".getBytes(StandardCharsets.UTF_8);
+        List<Cell> cells = serializableTxManager.runTaskReadOnly(tx -> Lists.transform(
+                Lists.newArrayList(
+                        tx.getRowsColumnRange(TABLE, ImmutableList.of(row), new ColumnRangeSelection(null, null), 10)),
+                Map.Entry::getKey));
+        assertThat(cells).isEmpty();
+    }
+
+    @Test
+    public void getRowsColumnRangeReturnsRowsInUserProvidedOrdering() {
+        byte[] row1 = "eggplant".getBytes(StandardCharsets.UTF_8);
+        byte[] row2 = "fig".getBytes(StandardCharsets.UTF_8);
+        byte[] row3 = "guava".getBytes(StandardCharsets.UTF_8);
+        byte[] row4 = "honeydew".getBytes(StandardCharsets.UTF_8);
+        byte[] value = new byte[1];
+
+        Cell firstCell = Cell.create(row1, "eclair".getBytes(StandardCharsets.UTF_8));
+        Cell secondCell = Cell.create(row2, "flambe".getBytes(StandardCharsets.UTF_8));
+        Cell thirdCell = Cell.create(row3, "gateau".getBytes(StandardCharsets.UTF_8));
+        Cell fourthCell = Cell.create(row4, "halva".getBytes(StandardCharsets.UTF_8));
+
+        serializableTxManager.runTaskWithRetry(tx -> {
+            tx.put(TABLE, ImmutableMap.of(firstCell, value, secondCell, value, thirdCell, value, fourthCell, value));
+            return null;
+        });
+
+        List<Cell> cells = serializableTxManager.runTaskReadOnly(tx -> Lists.transform(
+                Lists.newArrayList(tx.getRowsColumnRange(
+                        TABLE, ImmutableList.of(row2, row3, row1, row4), new ColumnRangeSelection(null, null), 10)),
+                Map.Entry::getKey));
+        assertThat(cells).containsExactly(secondCell, thirdCell, firstCell, fourthCell);
+
+        cells = serializableTxManager.runTaskReadOnly(tx -> Lists.transform(
+                Lists.newArrayList(tx.getRowsColumnRange(
+                        TABLE, ImmutableList.of(row4, row3, row2, row1), new ColumnRangeSelection(null, null), 10)),
+                Map.Entry::getKey));
+        assertThat(cells).containsExactly(fourthCell, thirdCell, secondCell, firstCell);
+
+        cells = serializableTxManager.runTaskReadOnly(tx -> Lists.transform(
+                Lists.newArrayList(tx.getRowsColumnRange(
+                        TABLE, ImmutableList.of(row3, row1, row4, row2), new ColumnRangeSelection(null, null), 10)),
+                Map.Entry::getKey));
+        assertThat(cells).containsExactly(thirdCell, firstCell, fourthCell, secondCell);
+    }
+
+    @Test
+    public void getRowsColumnRangeIteratorHandlesLocalWrites() {
+        byte[] row1 = "brass".getBytes(StandardCharsets.UTF_8);
+        byte[] row2 = "percussion".getBytes(StandardCharsets.UTF_8);
+        byte[] row3 = "woodwinds".getBytes(StandardCharsets.UTF_8);
+        byte[] value = new byte[1];
+
+        Cell firstRowFirstColumn = Cell.create(row1, "trombone".getBytes(StandardCharsets.UTF_8));
+        Cell firstRowSecondColumn = Cell.create(row1, "trumpet".getBytes(StandardCharsets.UTF_8));
+        Cell secondRow = Cell.create(row2, "gong".getBytes(StandardCharsets.UTF_8));
+        Cell thirdRowFirstColumn = Cell.create(row3, "clarinet".getBytes(StandardCharsets.UTF_8));
+        Cell thirdRowSecondColumn = Cell.create(row3, "flute".getBytes(StandardCharsets.UTF_8));
+
+        serializableTxManager.runTaskWithRetry(tx -> {
+            tx.put(TABLE, ImmutableMap.of(firstRowFirstColumn, value, thirdRowSecondColumn, value));
+            return null;
+        });
+
+        Map<byte[], List<Cell>> cells = serializableTxManager.runTaskWithRetry(tx -> {
+            tx.put(TABLE, ImmutableMap.of(firstRowSecondColumn, value, secondRow, value, thirdRowFirstColumn, value));
+            Map<byte[], Iterator<Entry<Cell, byte[]>>> rowsToIterators = tx.getRowsColumnRangeIterator(
+                    TABLE, ImmutableList.of(row1, row2, row3), BatchColumnRangeSelection.create(null, null, 10));
+            return EntryStream.of(rowsToIterators)
+                    .mapValues(iterator -> Iterators.transform(iterator, Entry::getKey))
+                    .<List<Cell>>mapValues(Lists::newArrayList)
+                    .toMap();
+        });
+        assertThat(cells)
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(
+                        row1,
+                        ImmutableList.of(firstRowFirstColumn, firstRowSecondColumn),
+                        row2,
+                        ImmutableList.of(secondRow),
+                        row3,
+                        ImmutableList.of(thirdRowFirstColumn, thirdRowSecondColumn)));
+    }
+
     @Test
     public void testRowsColumnRangesSingleIteratorVersion() {
         runTestForGetRowsColumnRangeSingleIteratorVersion(1, 1, 0);u}(jt  (065284f020ede2cc6279444cf58d921a7a7e099fj  hatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/service/TransactionServicesTest.javaj  modifiedj  Kj  Kj  K
j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionServicesTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionServicesTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionServicesTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -191,7 +191,7 @@ public void canReadInProgressStatusV4Transaction() {
         initializeTimestamps();
         transactionService.markInProgress(startTs);
         assertThat(transactionService.get(startTs)).isNull();
-        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatuses.inProgress());
+        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Test
@@ -216,8 +216,8 @@ public void canCommitV4Transaction() {
 
         TwoPhaseEncodingStrategy strategy = new TwoPhaseEncodingStrategy(V4ProgressEncodingStrategy.INSTANCE);
         Cell cell = strategy.encodeStartTimestampAsCell(startTs);
-        byte[] update = strategy.encodeCommitStatusAsValue(
-                startTs, AtomicValue.staging(TransactionStatuses.committed(commitTs)));
+        byte[] update =
+                strategy.encodeCommitStatusAsValue(startTs, AtomicValue.staging(TransactionStatus.committed(commitTs)));
 
         MultiCheckAndSetRequest actualMcasRequest = verifyMcasInTableAndReturnArgument();
         assertThat(actualMcasRequest.tableRef()).isEqualTo(TransactionConstants.TRANSACTIONS2_TABLE);
@@ -244,14 +244,14 @@ public void canReadCommittedV4Transaction() {
     public void emptyValueReadsAsInProgressInV3() {
         forceInstallV3();
         initializeTimestamps();
-        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatuses.inProgress());
+        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Test
     public void emptyValueReadsAsUnknownInV4() {
         forceInstallV4();
         initializeTimestamps();
-        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatuses.unknown());
+        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatus.unknown());
     }
 
     private void initializeTimestamps() {u}(jt  (d1bf1debf194d0e7d439b60289e1831101bbfa6fj  -atlasdb-workload-server-antithesis/Dockerfilej  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-antithesis%2FDockerfilej  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-antithesis%2FDockerfilej  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2FDockerfile?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  n@@ -0,0 +1,4 @@
+FROM scratch
+MAINTAINER AtlasDB Team
+
+ADD docker-compose.yml /
\ No newline at end of fileu}(jt  (3fe03f84c4a9ef10137f13d2f0bfe773525ba2b7j  /atlasdb-workload-server-antithesis/build.gradlej  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-antithesis%2Fbuild.gradlej  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-antithesis%2Fbuild.gradlej  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fbuild.gradle?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,11 @@
+apply plugin: 'com.palantir.docker'
+apply from: "../gradle/shared.gradle"
+apply from: "../gradle/non-client-dist.gradle"
+
+def imageVersion = "${project.version.toString().replaceAll('\\+', '-')}"
+
+docker {
+    name "palantirtechnologies/${project.name}:${imageVersion}"
+    tags 'latest', 'snapshot'
+    files 'var/docker-compose.yml'
+}
\ No newline at end of fileu}(jt  (8fc45b8b9ddc37ded24af638207557f822511685j  1atlasdb-workload-server-antithesis/var/compact.shj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.sh?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,19 @@
+#!/bin/bash
+
+##
+# (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool compact'¡
\ No newline at end of fileu}(jt  (0d1f2696fe20c1f1abb4c94f88cae6650478d2b8j  9atlasdb-workload-server-antithesis/var/docker-compose.ymlj  addedj  K{j  K j  K{j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,123 @@
+version: '2'
+
+services:
+  cassandra1:
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+    ports:
+      - "9160"
+      - "9042"
+      - "7199"
+    environment:
+      - CASSANDRA_SEEDS=cassandra1,cassandra2,cassandra3
+      - CASSANDRA_ENDPOINT_SNITCH=PropertyFileSnitch
+      - MAX_HEAP_SIZE=512m
+      - HEAP_NEWSIZE=64m
+      - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
+    container_name: cassandra1
+    volumes:
+      - /opt/config/volumes/cassandra1:/var/lib/cassandra
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.2
+
+  cassandra2:
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+    ports:
+      - "9160"
+      - "9042"
+      - "7199"
+    environment:
+      - CASSANDRA_SEEDS=cassandra1,cassandra2,cassandra3
+      - CASSANDRA_ENDPOINT_SNITCH=PropertyFileSnitch
+      - MAX_HEAP_SIZE=512m
+      - HEAP_NEWSIZE=64m
+      - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
+    container_name: cassandra2
+    volumes:
+      - /opt/config/volumes/cassandra2:/var/lib/cassandra
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.3
+
+  cassandra3:
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+    ports:
+      - "9160"
+      - "9042"
+      - "7199"
+    environment:
+      - CASSANDRA_SEEDS=cassandra1,cassandra2,cassandra3
+      - CASSANDRA_ENDPOINT_SNITCH=PropertyFileSnitch
+      - MAX_HEAP_SIZE=512m
+      - HEAP_NEWSIZE=64m
+      - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
+    container_name: cassandra3
+    volumes:
+      - /opt/config/volumes/cassandra3:/var/lib/cassandra
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.4
+
+  timelock1.palantir.pt:
+    image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [ bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
+    ports:
+      - "8421"
+      - "8422"
+    container_name: timelock1.palantir.pt
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.5
+
+  timelock2.palantir.pt:
+    image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [ bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
+    ports:
+      - "8421"
+      - "8422"
+    container_name: timelock2.palantir.pt
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.6
+
+  timelock3.palantir.pt:
+    image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
+    ports:
+      - "8421"
+      - "8422"
+    container_name: timelock3.palantir.pt
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.7
+
+
+  workload-server:
+    image: palantirtechnologies/atlasdb-workload-server-distribution:unspecified
+    command: [bash, -c, 'cp var/conf/workload-server.timelock.cassandra.yml var/conf/workload-server.yml
+                         && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160
+                         && service/bin/init.sh console']
+    container_name: workload-server
+    depends_on:
+      - cassandra1
+      - cassandra2
+      - cassandra3
+      - timelock1.palantir.pt
+      - timelock2.palantir.pt
+      - timelock3.palantir.pt
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.8
+
+networks:
+  antithesis-net:
+    driver: bridge
+    ipam:
+      config:
+        - subnet: 10.20.20.0/24
\ No newline at end of fileu}(jt  (507c4267b553dffafece23d33ad88df6fd5f4bb2j  /atlasdb-workload-server-antithesis/var/flush.shj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fflush.sh?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,19 @@
+#!/bin/bash
+
+##
+# (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool flush'
\ No newline at end of fileu}(jt  (b7485353a77f6bf0cd6c937bff58416577e13b1dj  (atlasdb-workload-server-api/build.gradlej  addedj  Kj  K j  Kj  |https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fbuild.gradlej  {https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fbuild.gradlej  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fbuild.gradle?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,17 @@
+apply from: "../gradle/shared.gradle"
+
+dependencies {
+    api 'io.vavr:vavr'
+
+    implementation 'com.fasterxml.jackson.core:jackson-annotations'
+    implementation 'com.fasterxml.jackson.core:jackson-core'
+    implementation 'com.fasterxml.jackson.core:jackson-databind'
+    implementation 'com.palantir.safe-logging:preconditions'
+    implementation 'com.google.guava:guava'
+
+    compileOnly 'org.immutables:value::annotations'
+    annotationProcessor 'org.immutables:value'
+
+    testImplementation 'com.palantir.safe-logging:preconditions-assertj'
+    testImplementation 'org.mockito:mockito-core'
+}
\ No newline at end of fileu}(jt  (9341ade66f468191734830b7f9339ad48f69d5d1j  `atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/Invariant.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariant.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariant.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariant.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  Xf  @@ -0,0 +1,27 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+
+/**
+ * Check for an invariant given the provided {@link WorkflowHistory},
+ * and call the provided consumer after checking if any violations are detected.
+ */
+public interface Invariant<Violations> extends BiConsumer<WorkflowHistory, Consumer<Violations>> {}u}(jt  (e7305ade35c915bb53a9c53289a6a434cfb626dbj  hatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/InvariantReporter.javaj  addedj  K#j  K j  K#j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariantReporter.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariantReporter.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariantReporter.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.function.Consumer;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvariantReporter<ViolationsT> {
+
+    @Value.Parameter
+    Invariant<ViolationsT> invariant();
+
+    @Value.Parameter
+    Consumer<ViolationsT> consumer();
+
+    default void report(WorkflowHistory history) {
+        invariant().accept(history, consumer());
+    }
+}u}(jt  (60ba075ecd63d073e9efed58b8eff668e319f9a2j  fatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/MismatchedValue.javaj  addedj  K,j  K j  K,j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface MismatchedValue {
+    @Value.Parameter
+    Optional<Integer> actual();
+
+    @Value.Parameter
+    Optional<Integer> expected();
+
+    @Value.Check
+    default void actualAndExpectedAreNotEqualToEachOther() {
+        Preconditions.checkArgument(
+                !actual().equals(expected()),
+                "Cannot construct MismatchedValues for two values which are equal.",
+                SafeArg.of("actual", actual()),
+                SafeArg.of("expected", expected()));
+    }
+
+    static MismatchedValue of(Optional<Integer> actual, Optional<Integer> expected) {
+        return ImmutableMismatchedValue.of(actual, expected);
+    }
+}u}(jt  (e413798427db97d025ad85b9f49ea4d26c076e02j  natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/resource/CassandraSidecarResource.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,29 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.resource;
+
+public interface CassandraSidecarResource {
+    /**
+     * Asynchronous method that flushes all keyspaces on a Cassandra host.
+     */
+    void flush(String host);
+
+    /**
+     * Asynchronous method that performs a major compaction for all keyspaces on Cassandra.
+     */
+    void compact(String host);
+}u}(jt  (74577176782254379012e1999cadb8c1ea4b8edcj  ]atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/IndexTable.javaj  addedj  K,j  K j  K,j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTable.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTable.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTable.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface IndexTable {
+
+    @Value.Parameter
+    String indexTableName();
+
+    @Value.Parameter
+    String primaryTableName();
+
+    @Value.Check
+    default void checkNameAndPrimaryTableAreNotEqual() {
+        Preconditions.checkArgument(
+                !indexTableName().equalsIgnoreCase(primaryTableName()),
+                "Index table name and primary table name are identical.",
+                SafeArg.of("name", indexTableName()),
+                SafeArg.of("primaryTable", primaryTableName()));
+    }
+
+    static ImmutableIndexTable.Builder builder() {
+        return ImmutableIndexTable.builder();
+    }
+}u}(jt  (d9abc2f2c00a1ff33edf1dbcaefbf672fcd91ad1j  natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/InteractiveTransactionStore.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.Optional;
+import java.util.function.Consumer;
+
+public interface InteractiveTransactionStore extends TransactionStore {
+    /**
+     * Provides a convenient interface for interacting with a transaction, and having each action recorded.
+     * @param interactiveTransactionConsumer Consumer which performs gets/puts/deletes
+     * @return The witnessed transaction, if successfully committed.
+     */
+    Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer);
+}u}(jt  (360fb590830275fb2bcc053744705e446a7931faj  aatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/IsolationLevel.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIsolationLevel.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIsolationLevel.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIsolationLevel.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,23 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+public enum IsolationLevel {
+    SERIALIZABLE,
+    SNAPSHOT,
+    NONE;
+}u}(jt  (72396cbd183a5589ac7b3cf6593e07b9c5de2fd0j  katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ReadableTransactionStore.javaj  addedj  K$j  K j  K$j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XN  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import java.util.Optional;
+
+public interface ReadableTransactionStore {
+    /**
+     * Perform a read for a given row and return a cell if it exists.
+     * Ideally this endpoint is only used for verification purposes, as it does not return a witnessed transaction.
+     *
+     * @param table Table to read from
+     * @param cell Cell to read from
+     * @return The value of the cell for a given table.
+     */
+    Optional<Integer> get(String table, WorkloadCell cell);
+
+    /**
+     * Checks whether the transaction with the provided startTimestamp has committed.
+     */
+    boolean isCommitted(long startTimestamp);
+}u}(jt  (e052c88622c80f46ac62138a0ae4f3f6f267d5d7j  gatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TableAndWorkloadCell.javaj  addedj  K$j  K j  K$j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTableAndWorkloadCell.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTableAndWorkloadCell.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTableAndWorkloadCell.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import org.immutables.value.Value;
+
+/**
+ * Convenient class which combines table name and cell, for convenient usage in {@link java.util.Map} or other similar interfaces.
+ */
+@Value.Immutable
+public interface TableAndWorkloadCell {
+
+    @Value.Parameter
+    String tableName();
+
+    @Value.Parameter
+    WorkloadCell cell();
+
+    static TableAndWorkloadCell of(String tableName, WorkloadCell workloadCell) {
+        return ImmutableTableAndWorkloadCell.of(tableName, workloadCell);
+    }
+}u}(jt  (8d96b166fe052e818ea2430f7bd5ae5fbe29f426j  catlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStore.javaj  addedj  K$j  K j  K$j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.List;
+import java.util.Optional;
+
+/**
+ * A transactional store for the workload server to read/write from.
+ */
+public interface TransactionStore extends ReadableTransactionStore {
+    /**
+     * Performs a list of transaction actions in order, and returns the transaction executed if it committed
+     * successfully.
+     *
+     * @param actions List of transaction actions (read/write/delete) to be executed in order.
+     * @return The witnessed transaction, if successfully committed.
+     */
+    Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions);
+}u}(jt  (9a3b7a7060c8f72d6a97bc2c347571b698b81c47j  jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStoreFactory.javaj  renamedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X3  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2020 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,14 +14,14 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.timelock.management;
+package com.palantir.atlasdb.workload.store;
 
-import com.palantir.paxos.Client;
+import java.util.Map;
 import java.util.Set;
 
-public class DatabaseNamespaceLoader implements PersistentNamespaceLoader {
-    @Override
-    public Set<Client> getAllPersistedNamespaces() {
-        throw new UnsupportedOperationException("Loading all namespaces from the database is not supported yet!");
-    }
+/**
+ * Creates transaction stores of a certain type which are bounded to the provided tables/indexes.
+ */
+public interface TransactionStoreFactory<T extends TransactionStore> {
+    T create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
 }j  atimelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/DatabaseNamespaceLoader.javau}(jt  (b7286928106b877bf88cb2eb9d1a7c176af42092j  batlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ValidationStore.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X|  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import io.vavr.collection.Map;
+import java.util.Optional;
+
+/**
+ * Store used for replaying witnessed transactions, and ultimately being used as the 'source-of-truth' when validating
+ * our {@link TransactionStore}.
+ */
+public interface ValidationStore {
+
+    /** Return all cells and values for all tables. Value is expected to be empty for deleted cells. */
+    Map<TableAndWorkloadCell, Optional<Integer>> values();
+}u}(jt  (2fe787f4f3f865c6ba129185b77dde55ea84f540j  _atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/WorkloadCell.javaj  addedj  K"j  K j  K"j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FWorkloadCell.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FWorkloadCell.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FWorkloadCell.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X.  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import org.immutables.value.Value;
+
+/**
+ * Cells generated by the workload service.
+ * Columns/values are expected to be random integers.
+ *
+ * Schema: Key[Integer], Column[Integer], Value[Integer].
+ */
+@Value.Immutable
+public interface WorkloadCell {
+    @Value.Parameter
+    Integer key();
+
+    @Value.Parameter
+    Integer column();
+}u}(jt  (3bd49661e70b87286ba38152d181bec2a3de5d80j  patlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/DeleteTransactionAction.javaj  addedj  K'j  K j  K'j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,39 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import org.immutables.value.Value;
+
+@Value.Immutable(builder = false)
+public interface DeleteTransactionAction extends TransactionAction {
+
+    default WitnessedDeleteTransactionAction witness() {
+        return ImmutableWitnessedDeleteTransactionAction.of(table(), cell());
+    }
+
+    @Override
+    default <T> T accept(TransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static DeleteTransactionAction of(String table, WorkloadCell cell) {
+        return ImmutableDeleteTransactionAction.of(table, cell);
+    }
+}u}(jt  (4f80972ed51d1ca703c845e6db8af278009a14f3j  oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javaj  addedj  K#j  K j  K#j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import java.util.List;
+import java.util.Optional;
+
+/**
+ * Allows for convenient interaction with a transactional store.
+ */
+public interface InteractiveTransaction {
+    Optional<Integer> read(String table, WorkloadCell workloadCell);
+
+    void write(String table, WorkloadCell workloadCell, Integer value);
+
+    void delete(String table, WorkloadCell workloadCell);
+
+    List<WitnessedTransactionAction> witness();
+}u}(jt  (c0ff0611ee15ce841cb508124e35b5b83caf77d7j  natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ReadTransactionAction.javaj  addedj  K(j  K j  K(j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XD  @@ -0,0 +1,40 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable(builder = false)
+public interface ReadTransactionAction extends TransactionAction {
+
+    default WitnessedReadTransactionAction witness(Optional<Integer> value) {
+        return ImmutableWitnessedReadTransactionAction.of(table(), cell(), value);
+    }
+
+    @Override
+    default <T> T accept(TransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ReadTransactionAction of(String table, WorkloadCell workloadCell) {
+        return ImmutableReadTransactionAction.of(table, workloadCell);
+    }
+}u}(jt  (54d5d701f5aa99fcb88cceb476aa934dbf7c0727j  jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionAction.javaj  addedj  K!j  K j  K!j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38)     j  XV  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface TransactionAction {
+
+    /** Table to apply transaction to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) to apply the action to. */
+    @Value.Parameter
+    WorkloadCell cell();
+
+    <T> T accept(TransactionActionVisitor<T> visitor);
+}u}(jt  (8328863a731368d08645d8ca56d825728ac5a5bej  qatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionActionVisitor.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,25 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+public interface TransactionActionVisitor<T> {
+    T visit(ReadTransactionAction readTransactionAction);
+
+    T visit(WriteTransactionAction writeTransactionAction);
+
+    T visit(DeleteTransactionAction deleteTransactionAction);
+}u}(jt  (62d581dfef3d567aa32abc5da5108439f0b84808j  oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/WriteTransactionAction.javaj  addedj  K9j  K j  K9j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XV  @@ -0,0 +1,57 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WriteTransactionAction extends TransactionAction {
+
+    @Override
+    @Value.Parameter
+    String table();
+
+    @Override
+    @Value.Parameter
+    WorkloadCell cell();
+
+    /**
+     * Value for the given cell.
+     */
+    @Value.Parameter
+    Integer value();
+
+    @Override
+    default <T> T accept(TransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    default WitnessedWriteTransactionAction witness() {
+        return ImmutableWitnessedWriteTransactionAction.builder()
+                .table(table())
+                .cell(cell())
+                .value(value())
+                .build();
+    }
+
+    static WriteTransactionAction of(String table, WorkloadCell cell, Integer value) {
+        return ImmutableWriteTransactionAction.of(table, cell, value);
+    }
+}u}(jt  (574a86c53458c2bbb5f43c19c269eb2ee52679c7j  |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/FullyWitnessedTransaction.javaj  addedj  K"j  K j  K"j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we know for certain we've witnessed.
+ */
+@Value.Immutable
+public interface FullyWitnessedTransaction extends WitnessedTransaction {
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableFullyWitnessedTransaction.Builder builder() {
+        return ImmutableFullyWitnessedTransaction.builder();
+    }
+}u}(jt  (f311e643064907dd8eeece7fe8fe0069efe51f4ej  ~atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransaction.javaj  addedj  K"j  K j  K"j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedTransaction {
+    @Value.Parameter
+    WitnessedTransaction transaction();
+
+    @Value.Parameter
+    List<InvalidWitnessedTransactionAction> invalidActions();
+
+    static InvalidWitnessedTransaction of(
+            WitnessedTransaction witnessedTransaction, List<InvalidWitnessedTransactionAction> invalidActions) {
+        return ImmutableInvalidWitnessedTransaction.of(witnessedTransaction, invalidActions);
+    }
+}u}(jt  (13fc2568c111b1ef3b542238490857c5d0b5acb9j  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javaj  addedj  K!j  K j  K!j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.invariant.MismatchedValue;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedTransactionAction {
+    @Value.Parameter
+    WitnessedTransactionAction action();
+
+    @Value.Parameter
+    MismatchedValue mismatchedValue();
+
+    static InvalidWitnessedTransactionAction of(WitnessedTransactionAction action, MismatchedValue mismatchedValue) {
+        return ImmutableInvalidWitnessedTransactionAction.of(action, mismatchedValue);
+    }
+}u}(jt  (5a66280426c78d83ed7001fc4ee1aebb894f7578j  |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransaction.javaj  addedj  K4j  K j  K4j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.logsafe.Preconditions;
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we witnessed, but are in a state which we are
+ * unsure if they have committed or not due to failures.
+ */
+@Value.Immutable
+public interface MaybeWitnessedTransaction extends WitnessedTransaction {
+    @Value.Check
+    default void check() {
+        Preconditions.checkArgument(
+                commitTimestamp().isPresent(),
+                "Given how the transaction protocol works, a transaction for which we haven't retrieved the commit "
+                        + "timestamp has not written anything of significance to the database");
+    }
+
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableMaybeWitnessedTransaction.Builder builder() {
+        return ImmutableMaybeWitnessedTransaction.builder();
+    }
+
+    default FullyWitnessedTransaction toFullyWitnessed() {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(startTimestamp())
+                .commitTimestamp(commitTimestamp())
+                .actions(actions())
+                .build();
+    }
+}u}(jt  (e6c4dc4d9b3ad93755335cee582e67faeeaaa372j  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedDeleteTransactionAction.javaj  addedj  K!j  K j  K!j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+@Value.Immutable(builder = false)
+public interface WitnessedDeleteTransactionAction extends WitnessedTransactionAction {
+
+    @Override
+    default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static WitnessedDeleteTransactionAction of(String table, WorkloadCell cell) {
+        return ImmutableWitnessedDeleteTransactionAction.of(table, cell);
+    }
+}u}(jt  (b677db617ab276daaecfeeb894a56f50b5b1101cj  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedReadTransactionAction.javaj  addedj  K.j  K j  K.j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X   @@ -0,0 +1,46 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable(builder = false)
+public interface WitnessedReadTransactionAction extends WitnessedTransactionAction {
+
+    @Override
+    @Value.Parameter
+    String table();
+
+    @Override
+    @Value.Parameter
+    WorkloadCell cell();
+
+    /** Value of the cell from the row read. Empty if it does not exist. */
+    @Value.Parameter
+    Optional<Integer> value();
+
+    @Override
+    default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static WitnessedReadTransactionAction of(String table, WorkloadCell cell, Optional<Integer> value) {
+        return ImmutableWitnessedReadTransactionAction.of(table, cell, value);
+    }
+}u}(jt  (525e82582d3affac4608bebfe366141f3088a716j  watlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransaction.javaj  addedj  K!j  K j  K!j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import java.util.List;
+import java.util.Optional;
+
+public interface WitnessedTransaction {
+    /** Start timestamp of the transaction. */
+    long startTimestamp();
+
+    /** Commit timestamp of the transaction. */
+    Optional<Long> commitTimestamp();
+
+    /** Provides an in-order list of actions that were performed during the transaction's execution. */
+    List<WitnessedTransactionAction> actions();
+
+    <T> T accept(WitnessedTransactionVisitor<T> visitor);
+}u}(jt  (3fba4c9b7f76d429f19c5a8b4ebb5fda5d158855j  }atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionAction.javaj  addedj  K!j  K j  K!j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  Xo  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface WitnessedTransactionAction {
+
+    /** Table action was applied to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) the action applied to. */
+    @Value.Parameter
+    WorkloadCell cell();
+
+    <T> T accept(WitnessedTransactionActionVisitor<T> visitor);
+}u}(jt  (0e326dc182a7cde57ab200a3b5937c5f702700cej  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionActionVisitor.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,25 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+public interface WitnessedTransactionActionVisitor<T> {
+    T visit(WitnessedReadTransactionAction readTransactionAction);
+
+    T visit(WitnessedWriteTransactionAction writeTransactionAction);
+
+    T visit(WitnessedDeleteTransactionAction deleteTransactionAction);
+}u}(jt  (33682bf649e7b87408367a7f23d4995c94c96d98j  ~atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionVisitor.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,23 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+public interface WitnessedTransactionVisitor<T> {
+    T visit(FullyWitnessedTransaction witnessedTransaction);
+
+    T visit(MaybeWitnessedTransaction maybeWitnessedTransaction);
+}u}(jt  (44dff33558850b4861ebbb4ab161e2dadfaf5816j  atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedWriteTransactionAction.javaj  addedj  K/j  K j  K/j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,47 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WitnessedWriteTransactionAction extends WitnessedTransactionAction {
+
+    @Override
+    @Value.Parameter
+    String table();
+
+    @Override
+    @Value.Parameter
+    WorkloadCell cell();
+
+    /**
+     * Value for the given cell.
+     */
+    @Value.Parameter
+    Integer value();
+
+    @Override
+    default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static WitnessedWriteTransactionAction of(String table, WorkloadCell cell, Integer value) {
+        return ImmutableWitnessedWriteTransactionAction.of(table, cell, value);
+    }
+}u}(jt  (0af0f463fb79115401361fa63b2a86fc5fbbe84fj  jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/KeyedTransactionTask.javaj  addedj  K"j  K j  K"j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X?  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.Optional;
+import java.util.function.BiFunction;
+
+/**
+ * A task that performs some operations on a {@link TransactionStore}, possibly using the index of the task
+ * as an input, and returns an {@link Optional} of {@link WitnessedTransaction}. Here, "index" refers to an integer
+ * between 0 and the {@link WorkflowConfiguration#iterationCount()} - each copy of the task will receive a different
+ * integer.
+ * If the transaction does not succeed, then the task should return an {@link Optional#empty()}. It should not throw
+ * an exception.
+ */
+@FunctionalInterface
+public interface KeyedTransactionTask<T extends TransactionStore>
+        extends BiFunction<T, Integer, Optional<WitnessedTransaction>> {}u}(jt  (f3b4e04f4d4358c82e503f82cffa59f41a139357j  hatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/TableConfiguration.javaj  renamedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X/  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,24 +14,18 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.backup;
+package com.palantir.atlasdb.workload.workflow;
 
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.palantir.atlasdb.backup.api.AtlasService;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
 import org.immutables.value.Value;
 
-@JsonDeserialize(as = ImmutableRestoreRequest.class)
-@JsonSerialize(as = ImmutableRestoreRequest.class)
 @Value.Immutable
-public interface RestoreRequest {
-    AtlasService oldAtlasService();
+@JsonSerialize(as = ImmutableTableConfiguration.class)
+@JsonDeserialize(as = ImmutableTableConfiguration.class)
+public interface TableConfiguration {
+    String tableName();
 
-    AtlasService newAtlasService();
-
-    class Builder extends ImmutableRestoreRequest.Builder {}
-
-    static Builder builder() {
-        return new Builder();
-    }
+    IsolationLevel isolationLevel();
 }j  Latlasdb-backup/src/main/java/com/palantir/atlasdb/backup/RestoreRequest.javau}(jt  (65d3983ff664082fe5b4995c46765f9b36f47deej  ^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/Workflow.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,27 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+public interface Workflow {
+    /**
+     * Runs desired workflow until completion. Returns {@link WorkflowHistory}, that corresponds to transactions that
+     * were known to be completed.
+     * This list is sorted by ascending "timeline timestamp", which is taken to be the commit timestamp in the case
+     * of read-write transactions, and the start timestamp in the case of read-only transactions.
+     */
+    WorkflowHistory run();
+}u}(jt  (521eb86ec62e39c42dea4234b11b2f742d9a8e1dj  katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowAndInvariants.javaj  addedj  K-j  K j  K-j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import java.util.Arrays;
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WorkflowAndInvariants<WorkflowTypeT extends Workflow> {
+    @Value.Parameter
+    WorkflowTypeT workflow();
+
+    @Value.Parameter
+    List<InvariantReporter<?>> invariantReporters();
+
+    static <WorkflowTypeT extends Workflow> WorkflowAndInvariants<WorkflowTypeT> of(
+            WorkflowTypeT workflow, List<InvariantReporter<?>> invariants) {
+        return ImmutableWorkflowAndInvariants.of(workflow, invariants);
+    }
+
+    static <WorkflowTypeT extends Workflow> WorkflowAndInvariants<WorkflowTypeT> of(
+            WorkflowTypeT workflow, InvariantReporter<?>... invariants) {
+        return ImmutableWorkflowAndInvariants.of(workflow, Arrays.asList(invariants));
+    }
+
+    static <WorkflowTypeT extends Workflow> ImmutableWorkflowAndInvariants.Builder<WorkflowTypeT> builder() {
+        return ImmutableWorkflowAndInvariants.builder();
+    }
+}u}(jt  (47b4109802a3529a585cdba06bb50cbe3fb2a098j  katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowConfiguration.javaj  addedj  K#j  K j  K#j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X`  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import org.immutables.value.Value;
+
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
+public interface WorkflowConfiguration {
+    int iterationCount();
+
+    @Value.Default
+    default double rateLimit() {
+        return 100;
+    }
+
+    @Value.Default
+    default Integer maxThreadCount() {
+        return 100;
+    }
+}u}(jt  (ffbc895344923f90f2a9fbedaca2f32929339b6cj  eatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowHistory.javaj  addedj  K#j  K j  K#j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XA  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WorkflowHistory {
+    // We may want to query the KVS during verification.
+    ReadableTransactionStore transactionStore();
+
+    /**
+     * TODO: This should only be a list of
+     * {@link com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction} rather than the general
+     * purpose type.
+     */
+    List<WitnessedTransaction> history();
+}u}(jt  (3b0f830372ef64835a492324722b2b2019546854j  natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowHistoryValidator.javaj  addedj  K"j  K j  K"j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WorkflowHistoryValidator {
+    @Value.Parameter
+    WorkflowHistory history();
+
+    @Value.Parameter
+    List<InvariantReporter<?>> invariants();
+
+    static WorkflowHistoryValidator of(WorkflowHistory history, List<InvariantReporter<?>> invariants) {
+        return ImmutableWorkflowHistoryValidator.of(history, invariants);
+    }
+}u}(jt  (7bda1b5a5ae5fcf4035a9bcb3a8979da682b9deaj  matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowValidatorRunner.javaj  addedj  K#j  K j  K#j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X(  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * Run the provided workflow and validate that it is correct with the provided invariants.
+ */
+public interface WorkflowValidatorRunner<WorkflowTypeT extends Workflow> {
+    void run(List<WorkflowAndInvariants<WorkflowTypeT>> workflowAndInvariants);
+
+    default void run(WorkflowAndInvariants<WorkflowTypeT>... workflowAndInvariants) {
+        run(Arrays.asList(workflowAndInvariants));
+    }
+
+    default void run(WorkflowAndInvariants<WorkflowTypeT> workflowAndInvariants) {
+        run(List.of(workflowAndInvariants));
+    }
+}u}(jt  (b5081c6bb7f68583aaaa52e1552a694d90b69641j  jatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/invariant/MismatchedValueTest.javaj  addedj  K2j  K j  K2j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X;  @@ -0,0 +1,50 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.palantir.logsafe.SafeArg;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class MismatchedValueTest {
+
+    private static final Optional<Integer> VALUE_ONE = Optional.of(15);
+    private static final Optional<Integer> VALUE_TWO = Optional.of(25);
+
+    @Test
+    public void canConstructMismatchedValueFromTwoDifferentValues() {
+        assertThatCode(() -> MismatchedValue.of(VALUE_ONE, VALUE_TWO)).doesNotThrowAnyException();
+    }
+
+    @Test
+    public void actualIsFirstArgumentAndExpectedIsSecondArgument() {
+        MismatchedValue mismatchedValue = MismatchedValue.of(VALUE_ONE, VALUE_TWO);
+        assertThat(mismatchedValue.actual()).isEqualTo(VALUE_ONE);
+        assertThat(mismatchedValue.expected()).isEqualTo(VALUE_TWO);
+    }
+
+    @Test
+    public void throwsWhenActualAndExpectedAreTheSame() {
+        assertThatLoggableExceptionThrownBy(() -> MismatchedValue.of(VALUE_ONE, VALUE_ONE))
+                .hasMessageContaining("Cannot construct MismatchedValues for two values which are equal.")
+                .hasExactlyArgs(SafeArg.of("actual", VALUE_ONE), SafeArg.of("expected", VALUE_ONE));
+    }
+}u}(jt  (e29feefdc7506942a05d1a7938b0903280f26161j  aatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/store/IndexTableTest.javaj  addedj  KAj  K j  KAj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTableTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTableTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTableTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X
  @@ -0,0 +1,65 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.palantir.logsafe.SafeArg;
+import java.util.Locale;
+import org.junit.Test;
+
+public final class IndexTableTest {
+
+    private static final String TABLE_1 = "foo";
+    private static final String TABLE_2 = "bar";
+
+    @Test
+    public void doesNotThrowWhenNamesAreDifferent() {
+        assertThatCode(() -> createIndexTable("foo", "bar")).doesNotThrowAnyException();
+    }
+
+    @Test
+    public void indexTableNameIsFirstArgumentAndPrimaryTableIsSecondArgument() {
+        IndexTable indexTable = createIndexTable(TABLE_1, TABLE_2);
+        assertThat(indexTable.indexTableName()).isEqualTo(TABLE_1);
+        assertThat(indexTable.primaryTableName()).isEqualTo(TABLE_2);
+    }
+
+    @Test
+    public void throwsWhenIndexNameIsTheSameAsPrimary() {
+        assertThatLoggableExceptionThrownBy(() -> createIndexTable(TABLE_1, TABLE_1))
+                .hasMessageContaining("Index table name and primary table name are identical.")
+                .hasExactlyArgs(SafeArg.of("name", TABLE_1), SafeArg.of("primaryTable", TABLE_1));
+    }
+
+    @Test
+    public void throwsWhenIndexNameIsTheSameAsPrimaryIgnoresCase() {
+        assertThatLoggableExceptionThrownBy(() -> createIndexTable(TABLE_1, TABLE_1.toUpperCase(Locale.ROOT)))
+                .hasMessageContaining("Index table name and primary table name are identical.")
+                .hasExactlyArgs(
+                        SafeArg.of("name", TABLE_1), SafeArg.of("primaryTable", TABLE_1.toUpperCase(Locale.ROOT)));
+    }
+
+    private IndexTable createIndexTable(String indexTableName, String primaryTableName) {
+        return IndexTable.builder()
+                .primaryTableName(primaryTableName)
+                .indexTableName(indexTableName)
+                .build();
+    }
+}u}(jt  (98c826c9208fca80e3a6f1f1efcf8240c030d9ffj  atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javaj  addedj  KDj  K j  KDj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X\  @@ -0,0 +1,68 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+import static org.mockito.Mockito.mock;
+
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import org.junit.Test;
+
+public class MaybeWitnessedTransactionTest {
+
+    private static final Long START_TIMESTAMP = 100L;
+    private static final Long COMMIT_TIMESTAMP = 200L;
+
+    @Test
+    public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
+        assertThatLoggableExceptionThrownBy(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining(
+                        "Given how the transaction protocol works, a transaction for which we haven't retrieved the"
+                                + " commit timestamp");
+    }
+
+    @Test
+    public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
+        assertThatCode(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .commitTimestamp(COMMIT_TIMESTAMP)
+                        .build())
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void toFullyWitnessedCopiesArgumentsCorrectly() {
+        WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
+        WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
+        List<WitnessedTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
+        FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
+                .startTimestamp(START_TIMESTAMP)
+                .commitTimestamp(COMMIT_TIMESTAMP)
+                .actions(actions)
+                .build()
+                .toFullyWitnessed();
+        assertThat(fullyWitnessedTransaction.startTimestamp()).isEqualTo(START_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.commitTimestamp()).contains(COMMIT_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.actions()).containsExactlyElementsOf(actions);
+    }
+}u}(jt  (121a175146bc6a56997ba38d7f713d850fb50e15j  /atlasdb-workload-server-distribution/Dockerfilej  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2FDockerfilej  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2FDockerfilej  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2FDockerfile?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,26 @@
+FROM adoptopenjdk/openjdk11:jdk-11.0.11_9-debian
+MAINTAINER AtlasDB Team
+
+ENV DOCKERIZE_VERSION v0.2.0
+
+# Bash is useful for monitoring; curl is used by our healthchecks.
+RUN apt-get update && apt-get -y install bash curl procps wget \
+    && wget --no-check-certificate http://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
+    && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
+
+# Prefer ADD to COPY because it does the tar handling
+ADD atlasdb-workload-server-*.tgz /
+
+RUN mv /atlasdb-workload-server-* /atlasdb-workload-server
+
+WORKDIR /atlasdb-workload-server
+
+# Needed for Antithesis
+RUN curl -o /usr/bin/yq -kLf https://github.com/mikefarah/yq/releases/download/v4.33.2/yq_linux_amd64 && \
+    chmod +x /usr/bin/yq
+RUN yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-static.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-static.yml
+
+CMD ["service/bin/init.sh", "console"]u}(jt  (7f3e9e8f12ab40d4c411f5e94cce359dfef3b112j  1atlasdb-workload-server-distribution/build.gradlej  addedj  K*j  K j  K*j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fbuild.gradlej  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fbuild.gradlej  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XM  @@ -0,0 +1,42 @@
+apply plugin: 'com.palantir.sls-java-service-distribution'
+apply plugin: 'com.palantir.external-publish-dist'
+apply from: "../gradle/docker.gradle"
+apply from: "../gradle/shared.gradle"
+apply from: "../gradle/non-client-dist.gradle"
+
+dependencies {
+    implementation 'com.fasterxml.jackson.core:jackson-annotations'
+    implementation 'com.fasterxml.jackson.core:jackson-core'
+    implementation 'com.fasterxml.jackson.core:jackson-databind'
+    implementation 'io.dropwizard.metrics:metrics-core'
+    implementation 'io.dropwizard:dropwizard-core'
+    implementation 'io.dropwizard:dropwizard-http2'
+    implementation 'io.dropwizard:dropwizard-jackson'
+    implementation 'io.dropwizard:dropwizard-jersey'
+    implementation 'io.dropwizard:dropwizard-lifecycle'
+    implementation 'io.dropwizard:dropwizard-logging'
+    implementation 'io.dropwizard:dropwizard-request-logging'
+    implementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
+    implementation 'com.palantir.conjure.java.runtime:conjure-java-jersey-server'
+    implementation 'com.google.guava:guava'
+
+    implementation project(':atlasdb-buggify')
+    implementation project(':atlasdb-client')
+    implementation project(':atlasdb-cassandra')
+    implementation project(':atlasdb-workload-server')
+    implementation project(':atlasdb-workload-server-api')
+    implementation project(':atlasdb-config')
+
+    testImplementation 'io.dropwizard:dropwizard-testing'
+
+    compileOnly 'org.immutables:value::annotations'
+    annotationProcessor 'org.immutables:value'
+}
+
+
+distribution {
+    serviceName "atlasdb-workload-server"
+    mainClass 'com.palantir.atlasdb.workload.WorkloadServerLauncher'
+    args 'server', 'var/conf/workload-server.yml'
+    defaultJvmOpts "-Xms512m", "-Xmx512m"
+}
\ No newline at end of fileu}(jt  (74c7d07fed075804723d8ff542d22d49e1953cb8j  latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  Xn.  @@ -0,0 +1,227 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload;
+
+import com.codahale.metrics.MetricRegistry;
+import com.codahale.metrics.SharedMetricRegistries;
+import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
+import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
+import com.palantir.atlasdb.util.MetricsManager;
+import com.palantir.atlasdb.util.MetricsManagers;
+import com.palantir.atlasdb.workload.background.BackgroundCassandraJob;
+import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
+import com.palantir.atlasdb.workload.invariant.DurableWritesInvariantMetricReporter;
+import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
+import com.palantir.atlasdb.workload.resource.AntithesisCassandraSidecarResource;
+import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
+import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflows;
+import com.palantir.conjure.java.api.config.service.UserAgent;
+import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.refreshable.Refreshable;
+import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
+import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
+import io.dropwizard.Application;
+import io.dropwizard.jackson.DiscoverableSubtypeResolver;
+import io.dropwizard.lifecycle.setup.LifecycleEnvironment;
+import io.dropwizard.setup.Bootstrap;
+import io.dropwizard.setup.Environment;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
+
+public class WorkloadServerLauncher extends Application<WorkloadServerConfiguration> {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(WorkloadServerLauncher.class);
+    private static final UserAgent USER_AGENT = UserAgent.of(Agent.of("AtlasDbWorkloadServer", "0.0.0"));
+
+    private final TaggedMetricRegistry taggedMetricRegistry = new DefaultTaggedMetricRegistry();
+    private final CountDownLatch workflowsRanLatch = new CountDownLatch(1);
+
+    public static void main(String[] args) throws Exception {
+        new WorkloadServerLauncher().run(args);
+    }
+
+    @Override
+    public void initialize(Bootstrap<WorkloadServerConfiguration> bootstrap) {
+        MetricRegistry metricRegistry = SharedMetricRegistries.getOrCreate("AtlasDbWorkLoadServer");
+        bootstrap.setMetricRegistry(metricRegistry);
+        bootstrap.setObjectMapper(ObjectMappers.newServerObjectMapper());
+        bootstrap.getObjectMapper().setSubtypeResolver(new DiscoverableSubtypeResolver());
+        bootstrap.getObjectMapper().registerModule(new Jdk8Module());
+        super.initialize(bootstrap);
+    }
+
+    @Override
+    public void run(WorkloadServerConfiguration configuration, Environment environment) {
+        environment.getObjectMapper().registerModule(new Jdk8Module()).registerModule(new JavaTimeModule());
+
+        scheduleBackgroundJobs(environment);
+
+        ExecutorService workflowRunnerExecutor =
+                environment.lifecycle().executorService("workflow-runner").build();
+        workflowRunnerExecutor.execute(() -> runWorkflows(configuration, environment));
+    }
+
+    private void scheduleBackgroundJobs(Environment environment) {
+        ScheduledExecutorService backgroundJobExecutor = environment
+                .lifecycle()
+                .scheduledExecutorService("background-job")
+                .build();
+        backgroundJobExecutor.scheduleAtFixedRate(
+                new BackgroundCassandraJob(
+                        List.of("cassandra1", "cassandra2", "cassandra3"),
+                        AntithesisCassandraSidecarResource.INSTANCE,
+                        DefaultBuggifyFactory.INSTANCE),
+                0,
+                10,
+                TimeUnit.SECONDS);
+    }
+
+    private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {
+        ExecutorService antithesisWorkflowRunnerExecutorService = environment
+                .lifecycle()
+                .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
+                .build();
+        MetricsManager metricsManager = MetricsManagers.of(environment.metrics(), taggedMetricRegistry);
+        AtlasDbTransactionStoreFactory transactionStoreFactory = AtlasDbTransactionStoreFactory.createFromConfig(
+                configuration.install().atlas(),
+                Refreshable.only(configuration.runtime().atlas()),
+                USER_AGENT,
+                metricsManager);
+        SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig =
+                configuration.install().singleRowTwoCellsConfig();
+        RingWorkflowConfiguration ringWorkflowConfiguration =
+                configuration.install().ringConfig();
+        SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
+                configuration.install().singleBusyCellConfig();
+
+        new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
+                .run(
+                        createSingleRowTwoCellsWorkflowValidator(
+                                transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
+                        createRingWorkflowValidator(
+                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellWorkflowValidator(
+                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()));
+
+        log.info("antithesis: terminate");
+
+        workflowsRanLatch.countDown();
+
+        if (configuration.install().exitAfterRunning()) {
+            System.exit(0);
+        }
+    }
+
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-read")
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-write")
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
+    private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            RingWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = lifecycle
+                .executorService(RingWorkflows.class.getSimpleName())
+                .maxThreads(workflowConfig.maxThreadCount())
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(RingWorkflows.create(
+                transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)));
+    }
+
+    private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleRowTwoCellsWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = lifecycle
+                .executorService(RingWorkflows.class.getSimpleName())
+                .maxThreads(workflowConfig.maxThreadCount())
+                .build();
+        TransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
+    @VisibleForTesting
+    CountDownLatch workflowsRanLatch() {
+        return workflowsRanLatch;
+    }
+
+    @VisibleForTesting
+    TaggedMetricRegistry getTaggedMetricRegistry() {
+        return taggedMetricRegistry;
+    }
+}u     }(jt  (655b2984713096f58ef552b3e999b0c467a73c48j  xatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerConfiguration.javaj  addedj  K)j  K j  K)j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerConfiguration.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerConfiguration.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,41 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.config;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.dropwizard.Configuration;
+
+public class WorkloadServerConfiguration extends Configuration {
+
+    private final WorkloadServerRuntimeConfiguration runtime;
+    private final WorkloadServerInstallConfiguration install;
+
+    public WorkloadServerConfiguration(
+            @JsonProperty(value = "install", required = true) WorkloadServerInstallConfiguration install,
+            @JsonProperty(value = "runtime", required = true) WorkloadServerRuntimeConfiguration runtime) {
+        this.install = install;
+        this.runtime = runtime;
+    }
+
+    public WorkloadServerRuntimeConfiguration runtime() {
+        return runtime;
+    }
+
+    public WorkloadServerInstallConfiguration install() {
+        return install;
+    }
+}u}(jt  (e066585ffc82825e55fda21d1909dcc38bb9b518j  atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj  addedj  K(j  K j  K(j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X|  @@ -0,0 +1,40 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.config;
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
+import org.immutables.value.Value;
+
+@JsonDeserialize(as = ImmutableWorkloadServerInstallConfiguration.class)
+@JsonSerialize(as = ImmutableWorkloadServerInstallConfiguration.class)
+@Value.Immutable
+public interface WorkloadServerInstallConfiguration {
+    AtlasDbConfig atlas();
+
+    SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig();
+
+    RingWorkflowConfiguration ringConfig();
+
+    SingleBusyCellWorkflowConfiguration singleBusyCellConfig();
+
+    boolean exitAfterRunning();
+}u}(jt  (2824c644dc8df565316087e7978c2a1b336f0bf9j  atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerRuntimeConfiguration.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerRuntimeConfiguration.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerRuntimeConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerRuntimeConfiguration.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.config;
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.palantir.atlasdb.config.AtlasDbRuntimeConfig;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@JsonDeserialize(as = ImmutableWorkloadServerRuntimeConfiguration.class)
+@JsonSerialize(as = ImmutableWorkloadServerRuntimeConfiguration.class)
+@Value.Immutable
+public interface WorkloadServerRuntimeConfiguration {
+    Optional<AtlasDbRuntimeConfig> atlas();
+}u}(jt  (de8ac8137080a18591a69dabb98316ec9897dfa3j  patlasdb-workload-server-distribution/src/test/java/com/palantir/atlasdb/workload/WorkloadServerLauncherTest.javaj  addedj  K4j  K j  K4j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncherTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncherTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncherTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XM	  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.codahale.metrics.Timer;
+import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
+import com.palantir.tritium.metrics.registry.MetricName;
+import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
+import io.dropwizard.testing.ResourceHelpers;
+import io.dropwizard.testing.junit.DropwizardAppRule;
+import java.util.Map;
+import java.util.concurrent.TimeUnit;
+import org.junit.ClassRule;
+import org.junit.Test;
+
+public class WorkloadServerLauncherTest {
+    @ClassRule
+    public static final DropwizardAppRule<WorkloadServerConfiguration> RULE = new DropwizardAppRule<>(
+            WorkloadServerLauncher.class, ResourceHelpers.resourceFilePath("workload-server.yml"));
+
+    @Test
+    public void runsWorkflow() throws InterruptedException {
+        WorkloadServerLauncher workloadServerLauncher = RULE.getApplication();
+        workloadServerLauncher.workflowsRanLatch().await(20, TimeUnit.SECONDS);
+        TaggedMetricRegistry metricRegistry = workloadServerLauncher.getTaggedMetricRegistry();
+        MetricName metricName = MetricName.builder()
+                .safeName("com.palantir.atlasdb.keyvalue.api.KeyValueService.get")
+                .safeTags(Map.of("libraryOrigin", "atlasdb"))
+                .build();
+        Timer kvsGetMetric = (Timer) metricRegistry.getMetrics().get(metricName);
+        assertThat(kvsGetMetric.getCount())
+                .as("Count of KeyValueService get calls should be greater than one,"
+                        + "as a workflow should have been executed")
+                .isGreaterThan(1);
+    }
+}u}(jt  (d8121b0b815f2fb3134e788ecc38e1fba194cf2ej  Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,26 @@
+runtime: {}
+install:
+  atlas:
+    namespace: test
+    keyValueService:
+      type: memory
+  singleRowTwoCellsConfig:
+    tableConfiguration:
+      tableName: two-cells-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
+  exitAfterRunning: false
\ No newline at end of fileu}(jt  (6cf182d6892424ba60d6899cdd9f14024074a62bj  Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj  addedj  K=j  K j  K=j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X}  @@ -0,0 +1,61 @@
+runtime:
+  atlas:
+    internalSchema:
+      targetTransactionsSchemaVersion: 3
+    sweep:
+      enabled: false
+    targetedSweep:
+      enabled: true
+      shards: 1
+    timelockRuntime:
+      serversList:
+        servers:
+          - 'https://timelock1.palantir.pt:8421'
+          - 'https://timelock2.palantir.pt:8421'
+          - 'https://timelock3.palantir.pt:8421'
+        sslConfiguration:
+          keyStorePath: "var/security/keyStore.jks"
+          keyStorePassword: "keystore"
+          trustStorePath: "var/security/trustStore.jks"
+install:
+  atlas:
+    keyValueService:
+      type: cassandra
+      servers:
+        type: cqlCapable
+        cqlHosts:
+          - cassandra1:9042
+          - cassandra2:9042
+          - cassandra3:9042
+        thriftHosts:
+          - cassandra1:9160
+          - cassandra2:9160
+          - cassandra3:9160
+      credentials:
+        username: cassandra
+        password: cassandra
+      ssl: false
+      replicationFactor: 3
+    targetedSweep:
+      enableSweepQueueWrites: true
+    namespace: workload_server
+  singleRowTwoCellsConfig:
+    tableConfiguration:
+      tableName: two_cells_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
+  exitAfterRunning: trueu}(jt  (e7a39b321f9030a001b4fc428fdefbb6eaeb7280j  Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,26 @@
+runtime: {}
+install:
+  atlas:
+    namespace: test
+    keyValueService:
+      type: memory
+  singleRowTwoCellsConfig:
+    tableConfiguration:
+      tableName: two-cells-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
+  exitAfterRunning: true
\ No newline at end of fileu}(jt  (7d7c58d85db7aec41551dce0fc7be0a3e2d22fb1j  >atlasdb-workload-server-distribution/var/security/keyStore.jksj  addedj  K j  K j  K j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FkeyStore.jksj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FkeyStore.jksj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FkeyStore.jks?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38u}(jt  (49dd792296e2678272e6b07df09e286ff5b8879ej  @atlasdb-workload-server-distribution/var/security/trustStore.jksj  addedj  K j  K j  K j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FtrustStore.jksj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FtrustStore.jksj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FtrustStore.jks?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38u}(jt  (a1646b6ee093076187da250847d896517a6e93a1j  $atlasdb-workload-server/build.gradlej  addedj  K$j  K j  K$j  xhttps://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fbuild.gradlej  whttps://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fbuild.gradlej  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,36 @@
+apply from: "../gradle/shared.gradle"
+apply plugin: 'com.palantir.metric-schema'
+
+license {
+    exclude '**/DurableWritesMetrics.java'
+}
+
+dependencies {
+    implementation project(':atlasdb-workload-server-api')
+    implementation project(':atlasdb-api')
+    implementation project(':atlasdb-buggify')
+    implementation project(':atlasdb-client')
+    implementation project(':atlasdb-config')
+    implementation project(':atlasdb-impl-shared')
+    implementation project(':lock-api')
+    implementation project(':lock-impl')
+
+    implementation 'com.fasterxml.jackson.core:jackson-annotations'
+    implementation 'com.fasterxml.jackson.core:jackson-core'
+    implementation 'com.fasterxml.jackson.core:jackson-databind'
+    implementation 'com.palantir.safe-logging:preconditions'
+    implementation 'com.palantir.safe-logging:safe-logging'
+    implementation 'one.util:streamex'
+    implementation 'io.vavr:vavr'
+
+    testImplementation project(':commons-executors')
+    testImplementation 'org.mockito:mockito-core'
+    testImplementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
+    testImplementation 'com.palantir.safe-logging:preconditions-assertj'
+    testImplementation('org.jmock:jmock') {
+        exclude group: 'org.hamcrest'
+    }
+
+    annotationProcessor 'org.immutables:value'
+    compileOnly 'org.immutables:value::annotations'
+}u}(jt  (8b9834003c52ed4630cb687d233e97192635cc24j  jatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/background/BackgroundCassandraJob.javaj  addedj  K,j  K j  K,j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.background;
+
+import com.google.common.collect.Iterators;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.workload.resource.CassandraSidecarResource;
+import java.util.Iterator;
+import java.util.List;
+
+public class BackgroundCassandraJob implements Runnable {
+
+    private final CassandraSidecarResource cassandraSidecarResource;
+    private final Iterator<String> cassandraHosts;
+
+    private final BuggifyFactory buggify;
+
+    public BackgroundCassandraJob(
+            List<String> cassandraHosts, CassandraSidecarResource cassandraSidecarResource, BuggifyFactory buggify) {
+        this.cassandraSidecarResource = cassandraSidecarResource;
+        this.cassandraHosts = Iterators.cycle(cassandraHosts);
+        this.buggify = buggify;
+    }
+
+    @Override
+    public void run() {
+        buggify.maybe(0.20).run(() -> cassandraSidecarResource.flush(cassandraHosts.next()));
+        buggify.maybe(0.20).run(() -> cassandraSidecarResource.compact(cassandraHosts.next()));
+    }
+}u}(jt  (6692c7a0ab9dc06ee5a6b9df123917c46c3d2758j  iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariant.javaj  addedj  K6j  K j  K6j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X	  @@ -0,0 +1,54 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.ValidationStore;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import io.vavr.Tuple;
+import java.util.Map;
+import java.util.Optional;
+import java.util.function.Consumer;
+
+public enum DurableWritesInvariant implements Invariant<Map<TableAndWorkloadCell, MismatchedValue>> {
+    INSTANCE;
+
+    @Override
+    public void accept(
+            WorkflowHistory workflowHistory, Consumer<Map<TableAndWorkloadCell, MismatchedValue>> invariantListener) {
+        ValidationStore expectedState = InMemoryValidationStore.create(workflowHistory.history());
+        ReadableTransactionStore storeToValidate = workflowHistory.transactionStore();
+        Map<TableAndWorkloadCell, MismatchedValue> cellsThatDoNotMatch = expectedState
+                .values()
+                .map((writtenCell, expectedValue) -> {
+                    Optional<MismatchedValue> maybeMismatchedValue = Optional.empty();
+                    Optional<Integer> actualValue = storeToValidate.get(writtenCell.tableName(), writtenCell.cell());
+
+                    if (!actualValue.equals(expectedValue)) {
+                        maybeMismatchedValue = Optional.of(MismatchedValue.of(actualValue, expectedValue));
+                    }
+
+                    return Tuple.of(writtenCell, maybeMismatchedValue);
+                })
+                .filterValues(Optional::isPresent)
+                .mapValues(Optional::get)
+                .toJavaMap();
+        invariantListener.accept(cellsThatDoNotMatch);
+    }
+}u}(jt  (79aa8cfd57984c9bdea2aaf3249996fe3fa9f4d7j  watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporter.javaj  addedj  K=j  K j  K=j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X	  @@ -0,0 +1,61 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.DurableWritesMetrics;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.Map;
+import java.util.function.Consumer;
+
+public final class DurableWritesInvariantMetricReporter
+        implements InvariantReporter<Map<TableAndWorkloadCell, MismatchedValue>> {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(DurableWritesInvariantMetricReporter.class);
+
+    private final String workflow;
+    private final DurableWritesMetrics durableWritesMetrics;
+
+    public DurableWritesInvariantMetricReporter(String workflow, DurableWritesMetrics durableWritesMetrics) {
+        this.workflow = workflow;
+        this.durableWritesMetrics = durableWritesMetrics;
+    }
+
+    @Override
+    public Invariant<Map<TableAndWorkloadCell, MismatchedValue>> invariant() {
+        return DurableWritesInvariant.INSTANCE;
+    }
+
+    @Override
+    public Consumer<Map<TableAndWorkloadCell, MismatchedValue>> consumer() {
+        return mismatchingValues -> {
+            mismatchingValues.forEach((tableAndWorkloadCell, _mismatchedValue) -> durableWritesMetrics
+                    .numberOfViolations()
+                    .workflow(workflow)
+                    .table(tableAndWorkloadCell.tableName())
+                    .build()
+                    .inc());
+            if (!mismatchingValues.isEmpty()) {
+                log.warn(
+                        "Durable writes invariant violations found: {}",
+                        SafeArg.of("mismatchingValues", mismatchingValues));
+            }
+        };
+    }
+}u}(jt  (c6c57e6a8de2b5781bc3377bb37255bb7b0465a7j  hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj  addedj  K\j  K j  K\j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XC  @@ -0,0 +1,92 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.List;
+import java.util.Optional;
+import java.util.function.Consumer;
+import one.util.streamex.StreamEx;
+
+public enum SerializableInvariant implements Invariant<List<InvalidWitnessedTransaction>> {
+    INSTANCE;
+
+    @Override
+    public void accept(
+            WorkflowHistory workflowHistory, Consumer<List<InvalidWitnessedTransaction>> invalidWitnessedTransactions) {
+        SerializableInvariantVisitor visitor = new SerializableInvariantVisitor();
+        List<InvalidWitnessedTransaction> transactions = StreamEx.of(workflowHistory.history())
+                .mapPartial(witnessedTransaction -> {
+                    List<InvalidWitnessedTransactionAction> invalidTransactions = StreamEx.of(
+                                    witnessedTransaction.actions())
+                            .mapPartial(action -> action.accept(visitor))
+                            .toList();
+
+                    if (invalidTransactions.isEmpty()) {
+                        return Optional.empty();
+                    }
+
+                    return Optional.of(InvalidWitnessedTransaction.of(witnessedTransaction, invalidTransactions));
+                })
+                .toList();
+        invalidWitnessedTransactions.accept(transactions);
+    }
+
+    private static final class SerializableInvariantVisitor
+            implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
+
+        private final InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+            Optional<Integer> expectedValue = inMemoryTransactionReplayer
+                    .getValues()
+                    .get(TableAndWorkloadCell.of(readTransactionAction.table(), readTransactionAction.cell()))
+                    .toJavaOptional()
+                    .orElseGet(Optional::empty);
+
+            if (!expectedValue.equals(readTransactionAction.value())) {
+                return Optional.of(InvalidWitnessedTransactionAction.of(
+                        readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expectedValue)));
+            }
+
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedWriteTransactionAction writeTransactionAction) {
+            inMemoryTransactionReplayer.visit(writeTransactionAction);
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedDeleteTransactionAction deleteTransactionAction) {
+            inMemoryTransactionReplayer.visit(deleteTransactionAction);
+            return Optional.empty();
+        }
+    }
+}u}(jt  (0f489a908a062dc89f3e2a38f2be28d193d61511j  satlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporter.javaj  addedj  K-j  K j  K-j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X>  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.function.Consumer;
+
+public enum SerializableInvariantLogReporter implements InvariantReporter<List<InvalidWitnessedTransaction>> {
+    INSTANCE;
+    private static final SafeLogger log = SafeLoggerFactory.get(SerializableInvariantLogReporter.class);
+
+    @Override
+    public Invariant<List<InvalidWitnessedTransaction>> invariant() {
+        return SerializableInvariant.INSTANCE;
+    }
+
+    @Override
+    public Consumer<List<InvalidWitnessedTransaction>> consumer() {
+        return invalidWitnessedTransactions -> {
+            if (!invalidWitnessedTransactions.isEmpty()) {
+                log.error(
+                        "Detected transactions that violated our serializable isolation invariant {}",
+                        SafeArg.of("invalidWitnessedTransactions", invalidWitnessedTransactions));
+            }
+        };
+    }
+}u}(jt  (afc5fd9e1645d1faf8b1f77f62a39f67390b4c87j  tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/resource/AntithesisCassandraSidecarResource.javaj  addedj  K%j  K j  K%j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X>  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.resource;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+
+public enum AntithesisCassandraSidecarResource implements CassandraSidecarResource {
+    INSTANCE;
+
+    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisCassandraSidecarResource.class);
+
+    @Override
+    public void flush(String host) {
+        log.info("antithesis: flush {}", SafeArg.of("host", host));
+    }
+
+    @Override
+    public void compact(String host) {
+        log.info("antithesis: compact {}", SafeArg.of("host", host));
+    }
+}u}(jt  (7746b1901d37ab005efb2fedddecc226a6be376dj  qatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunner.javaj  addedj  KNj  K j  KNj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XL  @@ -0,0 +1,78 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.runner;
+
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistoryValidator;
+import com.palantir.atlasdb.workload.workflow.WorkflowValidatorRunner;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.concurrent.ExecutionException;
+import java.util.stream.Collectors;
+
+public final class AntithesisWorkflowValidatorRunner implements WorkflowValidatorRunner<Workflow> {
+    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisWorkflowValidatorRunner.class);
+    private final ListeningExecutorService listeningExecutorService;
+
+    public AntithesisWorkflowValidatorRunner(ListeningExecutorService listeningExecutorService) {
+        this.listeningExecutorService = listeningExecutorService;
+    }
+
+    @Override
+    public void run(List<WorkflowAndInvariants<Workflow>> workflowAndInvariants) {
+        try {
+            log.info("antithesis: start_faults");
+            List<WorkflowHistoryValidator> workflowHistoryValidators = Futures.allAsList(
+                            submitWorkflowValidators(workflowAndInvariants))
+                    .get();
+            log.info("antithesis: stop_faults");
+            workflowHistoryValidators.forEach(this::checkAndReportInvariantViolations);
+        } catch (InterruptedException e) {
+            Thread.currentThread().interrupt();
+            throw new RuntimeException(e);
+        } catch (ExecutionException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private void checkAndReportInvariantViolations(WorkflowHistoryValidator validator) {
+        validator.invariants().forEach(invariantReporter -> {
+            try {
+                invariantReporter.report(validator.history());
+            } catch (RuntimeException e) {
+                log.error("Caught an exception when running and reporting an invariant.", e);
+            }
+        });
+        log.info(
+                "Dumping transaction log {}",
+                SafeArg.of("transactionLog", validator.history().history()));
+    }
+
+    private List<ListenableFuture<WorkflowHistoryValidator>> submitWorkflowValidators(
+            List<WorkflowAndInvariants<Workflow>> workflowAndInvariants) {
+        return workflowAndInvariants.stream()
+                .map(workflowValidator -> listeningExecutorService.submit(() -> WorkflowHistoryValidator.of(
+                        workflowValidator.workflow().run(), workflowValidator.invariantReporters())))
+                .collect(Collectors.toList());
+    }
+}u}(jt  (b8129f7ddecb9ee76388afabb2090692f9aa773ej  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj  addedj  Ksj  K j  Ksj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XT  @@ -0,0 +1,115 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.BiFunction;
+import javax.annotation.concurrent.NotThreadSafe;
+
+@NotThreadSafe
+final class AtlasDbInteractiveTransaction implements InteractiveTransaction {
+
+    private final Transaction transaction;
+
+    private final Map<String, TableReference> tables;
+
+    private final List<WitnessedTransactionAction> witnessedTransactionActions = new ArrayList<>();
+
+    private boolean hasFinished = false;
+
+    public AtlasDbInteractiveTransaction(Transaction transaction, Map<String, TableReference> tables) {
+        this.transaction = transaction;
+        this.tables = tables;
+    }
+
+    @Override
+    public Optional<Integer> read(String table, WorkloadCell workloadCell) {
+        return run(
+                (tableReference, atlasCell) -> {
+                    Map<Cell, byte[]> values = transaction.get(tableReference, Set.of(atlasCell));
+                    Optional<Integer> valueRead =
+                            Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
+                    witnessedTransactionActions.add(WitnessedReadTransactionAction.of(table, workloadCell, valueRead));
+                    return valueRead;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public void write(String table, WorkloadCell workloadCell, Integer value) {
+        run(
+                (tableReference, atlasCell) -> {
+                    transaction.put(tableReference, Map.of(atlasCell, Ints.toByteArray(value)));
+                    witnessedTransactionActions.add(WitnessedWriteTransactionAction.of(table, workloadCell, value));
+                    return null;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public void delete(String table, WorkloadCell workloadCell) {
+        run(
+                (tableReference, atlasCell) -> {
+                    transaction.delete(tableReference, Set.of(atlasCell));
+                    witnessedTransactionActions.add(WitnessedDeleteTransactionAction.of(table, workloadCell));
+                    return null;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public List<WitnessedTransactionAction> witness() {
+        hasFinished = true;
+        return witnessedTransactionActions;
+    }
+
+    private TableReference getTableReferenceOrThrow(String table) {
+        return Optional.ofNullable(tables.get(table))
+                .orElseThrow(() -> new SafeIllegalArgumentException(
+                        "Transaction action has unknown table.",
+                        SafeArg.of("tableName", table),
+                        SafeArg.of("availableTables", tables)));
+    }
+
+    private <T> T run(BiFunction<TableReference, Cell, T> function, String table, WorkloadCell workloadCell) {
+        Preconditions.checkState(
+                !hasFinished, "Transaction has already been witnessed and can no longer perform any actions.");
+        Cell atlasCell = AtlasDbUtils.toAtlasCell(workloadCell);
+        TableReference tableReference = getTableReferenceOrThrow(table);
+        return function.apply(tableReference, atlasCell);
+    }
+}u}(jt  (6871e6633db3c7f6293f93c4496e8f449116f688j  fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X#  @@ -0,0 +1,196 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.base.Suppliers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.PreCommitCondition;
+import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.TransactionCommitFailedException;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicReference;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import java.util.function.Supplier;
+import javax.annotation.concurrent.NotThreadSafe;
+import one.util.streamex.EntryStream;
+
+public final class AtlasDbTransactionStore implements InteractiveTransactionStore {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(AtlasDbTransactionStore.class);
+    private final TransactionManager transactionManager;
+
+    private final Map<String, TableReference> tables;
+
+    private AtlasDbTransactionStore(TransactionManager transactionManager, Map<String, TableReference> tables) {
+        this.transactionManager = transactionManager;
+        this.tables = tables;
+    }
+
+    @Override
+    public Optional<Integer> get(String table, WorkloadCell cell) {
+        return transactionManager.runTaskWithRetry(
+                transaction -> new AtlasDbInteractiveTransaction(transaction, tables).read(table, cell));
+    }
+
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return TransactionStatus.getCommitTimestamp(
+                        transactionManager.getTransactionService().getV2(startTimestamp))
+                .isPresent();
+    }
+
+    @Override
+    public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
+        return readWrite(txn -> {
+            AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
+            actions.forEach(action -> action.accept(visitor));
+        });
+    }
+
+    @Override
+    public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer) {
+        AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
+        AtomicReference<Transaction> transactionReference = new AtomicReference<>();
+        Supplier<CommitTimestampProvider> commitTimestampProvider =
+                Suppliers.memoize(() -> new CommitTimestampProvider());
+        try {
+            transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
+                transactionReference.set(txn);
+                AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
+                        new AtlasDbInteractiveTransaction(txn, tables);
+                interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
+                witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
+                return null;
+            });
+
+            Transaction transaction = transactionReference.get();
+
+            if (transaction.isAborted()) {
+                return Optional.empty();
+            }
+
+            return Optional.of(FullyWitnessedTransaction.builder()
+                    .startTimestamp(transaction.getTimestamp())
+                    .commitTimestamp(commitTimestampProvider
+                            .get()
+                            .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
+                    .actions(witnessedActionsReference.get())
+                    .build());
+        } catch (SafeIllegalArgumentException e) {
+            throw e;
+        } catch (TransactionCommitFailedException e) {
+            Transaction transaction = transactionReference.get();
+            return Optional.of(MaybeWitnessedTransaction.builder()
+                    .startTimestamp(transaction.getTimestamp())
+                    .commitTimestamp(commitTimestampProvider
+                            .get()
+                            .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
+                    .actions(witnessedActionsReference.get())
+                    .build());
+        } catch (Exception e) {
+            Optional<Long> startTimestamp =
+                    Optional.ofNullable(transactionReference.get()).map(Transaction::getTimestamp);
+            log.info(
+                    "Failed to record transaction due to an exception for startTimestamp {}",
+                    SafeArg.of("startTimestamp", startTimestamp),
+                    e);
+            return Optional.empty();
+        }
+    }
+
+    private static class AtlasDbTransactionActionVisitor implements TransactionActionVisitor<Void> {
+
+        private final InteractiveTransaction transaction;
+
+        public AtlasDbTransactionActionVisitor(InteractiveTransaction transaction) {
+            this.transaction = transaction;
+        }
+
+        @Override
+        public Void visit(ReadTransactionAction readTransactionAction) {
+            transaction.read(readTransactionAction.table(), readTransactionAction.cell());
+            return null;
+        }
+
+        @Override
+        public Void visit(WriteTransactionAction writeTransactionAction) {
+            transaction.write(
+                    writeTransactionAction.table(), writeTransactionAction.cell(), writeTransactionAction.value());
+            return null;
+        }
+
+        @Override
+        public Void visit(DeleteTransactionAction deleteTransactionAction) {
+            transaction.delete(deleteTransactionAction.table(), deleteTransactionAction.cell());
+            return null;
+        }
+    }
+
+    public static AtlasDbTransactionStore create(
+            TransactionManager transactionManager, Map<TableReference, byte[]> tables) {
+        transactionManager.getKeyValueService().createTables(tables);
+        Map<String, TableReference> tableMapping = EntryStream.of(tables)
+                .keys()
+                .mapToEntry(TableReference::getTableName, Function.identity())
+                .toMap();
+        return new AtlasDbTransactionStore(transactionManager, tableMapping);
+    }
+
+    @VisibleForTesting
+    @NotThreadSafe
+    static final class CommitTimestampProvider implements PreCommitCondition {
+
+        private Optional<Long> maybeCommitOrStartTimestamp = Optional.empty();
+
+        @Override
+        public void throwIfConditionInvalid(long timestamp) {
+            maybeCommitOrStartTimestamp = Optional.of(timestamp);
+        }
+
+        public Optional<Long> getCommitTimestampOrThrowIfMaybeNotCommitted(long startTimestamp) {
+            long commitOrStartTimestamp = maybeCommitOrStartTimestamp.orElseThrow(() -> new SafeIllegalStateException(
+                    "Timestamp has not been set, which means the pre commit condition has never been executed,"
+                            + " thus the transaction never committed."));
+            if (startTimestamp == commitOrStartTimestamp) {
+                return Optional.empty();
+            }
+
+            return Optional.of(commitOrStartTimestamp);
+        }
+    }
+}u}(jt  (58de979ef6729009e31e1f6cca6d03970cc101b3j  matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  Xj  @@ -0,0 +1,154 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.Sets;
+import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.config.AtlasDbRuntimeConfig;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.Namespace;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.util.MetricsManager;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.conjure.java.api.config.service.UserAgent;
+import com.palantir.lock.client.TimeLockClient;
+import com.palantir.lock.client.UnreliableTimeLockService;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.refreshable.Refreshable;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import one.util.streamex.EntryStream;
+import one.util.streamex.StreamEx;
+
+public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory<InteractiveTransactionStore> {
+
+    // Purposefully override the lock refresh interval to increase our chances of losing locks.
+    private static final int LOCK_REFRESH_INTERVAL_MS = 200;
+
+    private final TransactionManager transactionManager;
+    private final Optional<Namespace> maybeNamespace;
+
+    public AtlasDbTransactionStoreFactory(TransactionManager transactionManager, Optional<String> maybeNamespace) {
+        this.transactionManager = transactionManager;
+        this.maybeNamespace = maybeNamespace.map(Namespace::create);
+    }
+
+    @Override
+    public InteractiveTransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
+        return AtlasDbTransactionStore.create(transactionManager, toAtlasTables(tables, indexes));
+    }
+
+    @VisibleForTesting
+    Map<TableReference, byte[]> toAtlasTables(Map<String, IsolationLevel> tables, Set<IndexTable> indexTables) {
+        checkIndexesReferenceExistingPrimaryTable(tables, indexTables);
+        checkIndexAndPrimaryTableNamesDoNotConflict(tables, indexTables);
+        checkIndexesDoNotHaveDuplicateNames(indexTables);
+
+        Map<TableReference, ConflictHandler> atlasPrimaryTables = EntryStream.of(tables)
+                .mapKeys(this::createTableReference)
+                .mapValues(AtlasDbUtils::toConflictHandler)
+                .toMap();
+        Map<TableReference, ConflictHandler> atlasIndexTables = StreamEx.of(indexTables)
+                .mapToEntry(IndexTable::indexTableName, IndexTable::primaryTableName)
+                .mapKeys(this::createTableReference)
+                .mapValues(tables::get)
+                .mapValues(AtlasDbUtils::toConflictHandler)
+                .mapValues(AtlasDbUtils::toIndexConflictHandler)
+                .toMap();
+        return EntryStream.of(atlasPrimaryTables)
+                .append(atlasIndexTables)
+                .mapValues(AtlasDbUtils::tableMetadata)
+                .toMap();
+    }
+
+    @VisibleForTesting
+    TableReference createTableReference(String tableName) {
+        return maybeNamespace
+                .map(namespace -> TableReference.create(namespace, tableName))
+                .orElseGet(() -> TableReference.createWithEmptyNamespace(tableName));
+    }
+
+    private static void checkIndexesDoNotHaveDuplicateNames(Set<IndexTable> indexTables) {
+        Map<String, Long> countOfIndexNames = indexTables.stream()
+                .map(IndexTable::indexTableName)
+                .map(String::toLowerCase)
+                .collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
+        Set<String> duplicateTableIndexNames = EntryStream.of(countOfIndexNames)
+                .removeValues(value -> value <= 1)
+                .keys()
+                .toSet();
+
+        Preconditions.checkArgument(
+                duplicateTableIndexNames.isEmpty(),
+                "Found index tables with the same name",
+                SafeArg.of("duplicateTableIndexNames", duplicateTableIndexNames));
+    }
+
+    private static void checkIndexAndPrimaryTableNamesDoNotConflict(
+            Map<String, IsolationLevel> tables, Set<IndexTable> indexTables) {
+        Set<String> primaryTableNames =
+                tables.keySet().stream().map(String::toLowerCase).collect(Collectors.toSet());
+        Set<String> indexTableNames = indexTables.stream()
+                .map(IndexTable::indexTableName)
+                .map(String::toLowerCase)
+                .collect(Collectors.toSet());
+        Set<String> conflictingTableNames = Sets.intersection(primaryTableNames, indexTableNames);
+        Preconditions.checkArgument(
+                conflictingTableNames.isEmpty(),
+                "Found indexes which have the same name as primary tables",
+                SafeArg.of("conflictingTableNames", conflictingTableNames));
+    }
+
+    private static void checkIndexesReferenceExistingPrimaryTable(
+            Map<String, IsolationLevel> tables, Set<IndexTable> indexTables) {
+        Set<IndexTable> indexesWithUnknownPrimaryTables = StreamEx.of(indexTables)
+                .remove(indexTable -> tables.containsKey(indexTable.primaryTableName()))
+                .toSet();
+
+        Preconditions.checkArgument(
+                indexesWithUnknownPrimaryTables.isEmpty(),
+                "Found indexes which reference an unknown primary table",
+                SafeArg.of("indexesWithUnknownPrimaryTables", indexesWithUnknownPrimaryTables));
+    }
+
+    public static AtlasDbTransactionStoreFactory createFromConfig(
+            AtlasDbConfig installConfig,
+            Refreshable<Optional<AtlasDbRuntimeConfig>> atlasDbRuntimeConfig,
+            UserAgent userAgent,
+            MetricsManager metricsManager) {
+        TransactionManager transactionManager = TransactionManagers.builder()
+                .config(installConfig)
+                .userAgent(userAgent)
+                .globalMetricsRegistry(metricsManager.getRegistry())
+                .globalTaggedMetricRegistry(metricsManager.getTaggedRegistry())
+                .runtimeConfigSupplier(atlasDbRuntimeConfig)
+                .defaultTimelockClientFactory(lockService -> TimeLockClient.createDefault(
+                        UnreliableTimeLockService.create(lockService), LOCK_REFRESH_INTERVAL_MS))
+                .build()
+                .serializable();
+
+        return new AtlasDbTransactionStoreFactory(
+                transactionManager, installConfig.namespace().or(installConfig.keyValueService()::namespace));
+    }
+}u     }(jt  (f903482687bcb5e66793d816482b51d37342f3f8j  fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/InMemoryValidationStore.javaj  addedj  K.j  K j  K.j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X2  @@ -0,0 +1,46 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.Optional;
+
+public final class InMemoryValidationStore implements ValidationStore {
+
+    private final Map<TableAndWorkloadCell, Optional<Integer>> values;
+
+    private InMemoryValidationStore(Map<TableAndWorkloadCell, Optional<Integer>> values) {
+        this.values = values;
+    }
+
+    public static InMemoryValidationStore create(List<WitnessedTransaction> history) {
+        InMemoryTransactionReplayer replayer = new InMemoryTransactionReplayer();
+        history.stream()
+                .map(WitnessedTransaction::actions)
+                .forEach(witnessedTransactionActions ->
+                        witnessedTransactionActions.forEach(action -> action.accept(replayer)));
+        return new InMemoryValidationStore(replayer.getValues());
+    }
+
+    @Override
+    public Map<TableAndWorkloadCell, Optional<Integer>> values() {
+        return values;
+    }
+}u}(jt  (cb6dfce8a01b80d7f3c5368970de60190ce81ddcj  gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/ReadOnlyTransactionStore.javaj  addedj  K)j  K j  K)j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,41 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import java.util.Optional;
+
+/**
+ * Facade around {@link ReadableTransactionStore}, to prevent users from casting to retrieve an underlying store that
+ * may implement more functionality.
+ */
+public final class ReadOnlyTransactionStore implements ReadableTransactionStore {
+    private final ReadableTransactionStore delegate;
+
+    public ReadOnlyTransactionStore(ReadableTransactionStore delegate) {
+        this.delegate = delegate;
+    }
+
+    @Override
+    public Optional<Integer> get(String table, WorkloadCell cell) {
+        return delegate.get(table, cell);
+    }
+
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return delegate.isCommitted(startTimestamp);
+    }
+}u}(jt  (dc1ba80c80acc0c1062aac7549f052f600d069cfj  patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj  addedj  K=j  K j  K=j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X
  @@ -0,0 +1,61 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.Optional;
+
+public final class InMemoryTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
+
+    private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> values =
+            StructureHolder.create(HashMap::empty);
+
+    @Override
+    public Void visit(WitnessedReadTransactionAction _readTransactionAction) {
+        return null;
+    }
+
+    @Override
+    public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
+        TableAndWorkloadCell tableAndWorkloadCell =
+                TableAndWorkloadCell.of(writeTransactionAction.table(), writeTransactionAction.cell());
+        values.with(map -> map.put(tableAndWorkloadCell, Optional.of(writeTransactionAction.value())));
+        return null;
+    }
+
+    /**
+     * Deletes are explicitly tracked to enable invariants that rely on verifying that deleted values stay deleted.
+     */
+    @Override
+    public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+        TableAndWorkloadCell tableAndWorkloadCell =
+                TableAndWorkloadCell.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
+        values.with(map -> map.put(tableAndWorkloadCell, Optional.empty()));
+        return null;
+    }
+
+    public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
+        return values.getSnapshot();
+    }
+}u}(jt  (ad8416d0743b9f5983f668d3db1ef9529527a504j  katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javaj  addedj  K*j  K j  K*j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+
+public enum WitnessToActionVisitor implements WitnessedTransactionActionVisitor<TransactionAction> {
+    INSTANCE;
+
+    @Override
+    public ReadTransactionAction visit(WitnessedReadTransactionAction readTransactionAction) {
+        return ImmutableReadTransactionAction.of(readTransactionAction.table(), readTransactionAction.cell());
+    }
+
+    @Override
+    public WriteTransactionAction visit(WitnessedWriteTransactionAction writeTransactionAction) {
+        return ImmutableWriteTransactionAction.of(
+                writeTransactionAction.table(), writeTransactionAction.cell(), writeTransactionAction.value());
+    }
+
+    @Override
+    public DeleteTransactionAction visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+        return ImmutableDeleteTransactionAction.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
+    }
+}u}(jt  (0ba18e00eabc917a1fd7025d0f9113112c9b8615j  atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitor.javaj  addedj  K*j  K j  K*j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.Optional;
+
+public final class OnlyCommittedWitnessedTransactionVisitor
+        implements WitnessedTransactionVisitor<Optional<FullyWitnessedTransaction>> {
+
+    private final ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    public OnlyCommittedWitnessedTransactionVisitor(ReadOnlyTransactionStore readOnlyTransactionStore) {
+        this.readOnlyTransactionStore = readOnlyTransactionStore;
+    }
+
+    @Override
+    public Optional<FullyWitnessedTransaction> visit(FullyWitnessedTransaction witnessedTransaction) {
+        return Optional.of(witnessedTransaction);
+    }
+
+    @Override
+    public Optional<FullyWitnessedTransaction> visit(MaybeWitnessedTransaction maybeWitnessedTransaction) {
+        return readOnlyTransactionStore.isCommitted(maybeWitnessedTransaction.startTimestamp())
+                ? Optional.of(maybeWitnessedTransaction.toFullyWitnessed())
+                : Optional.empty();
+    }
+}u}(jt  (c0b3881cb15e0ba7b72700e3a80768b2c77a4b32j  tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactions.javaj  addedj  K-j  K j  K-j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.Comparator;
+import java.util.List;
+import one.util.streamex.StreamEx;
+
+public final class WitnessedTransactions {
+    private WitnessedTransactions() {
+        // utility
+    }
+
+    /**
+     * Sorts transactions by their effective timestamp and filters out transactions that are not fully committed.
+     */
+    public static List<FullyWitnessedTransaction> sortAndFilterTransactions(
+            ReadOnlyTransactionStore readOnlyTransactionStore, List<WitnessedTransaction> unorderedTransactions) {
+        OnlyCommittedWitnessedTransactionVisitor visitor =
+                new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
+        return StreamEx.of(unorderedTransactions)
+                .mapPartial(transaction -> transaction.accept(visitor))
+                .sorted(Comparator.comparingLong(WitnessedTransactions::effectiveTimestamp))
+                .toList();
+    }
+
+    private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
+        return witnessedTransaction.commitTimestamp().orElseGet(witnessedTransaction::startTimestamp);
+    }
+}u}(jt  (3346534c0f8b833d132668a0d60c525f4cc3b7fbj  Zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/AtlasDbUtils.javaj  addedj  K`j  K j  K`j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,96 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.util;
+
+import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.AtlasDbConstants;
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.NameMetadataDescription;
+import com.palantir.atlasdb.table.description.TableMetadata;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+
+public final class AtlasDbUtils {
+
+    private AtlasDbUtils() {}
+
+    public static ConflictHandler toConflictHandler(IsolationLevel isolationLevel) {
+        switch (isolationLevel) {
+            case NONE:
+                return ConflictHandler.IGNORE_ALL;
+            case SNAPSHOT:
+                return ConflictHandler.RETRY_ON_WRITE_WRITE;
+            case SERIALIZABLE:
+                return ConflictHandler.SERIALIZABLE;
+            default:
+                throw new SafeIllegalArgumentException(
+                        "Cannot convert isolation level into a AtlasDb conflict handler due to unknown isolation"
+                                + " level.",
+                        SafeArg.of("isolationLevel", isolationLevel.name()));
+        }
+    }
+
+    public static Cell toAtlasCell(WorkloadCell cell) {
+        return Cell.create(Ints.toByteArray(cell.key()), Ints.toByteArray(cell.column()));
+    }
+
+    public static byte[] tableMetadata(ConflictHandler conflictHandler) {
+        return new TableMetadata.Builder()
+                .rowMetadata(new NameMetadataDescription())
+                .columns(new ColumnMetadataDescription())
+                .conflictHandler(conflictHandler)
+                .cachePriority(TableMetadataPersistence.CachePriority.WARM)
+                .rangeScanAllowed(true)
+                .explicitCompressionBlockSizeKB(AtlasDbConstants.DEFAULT_TABLE_COMPRESSION_BLOCK_SIZE_KB)
+                .negativeLookups(true)
+                .sweepStrategy(TableMetadataPersistence.SweepStrategy.THOROUGH)
+                .appendHeavyAndReadLight(false)
+                .nameLogSafety(TableMetadataPersistence.LogSafety.SAFE)
+                .build()
+                .persistToBytes();
+    }
+
+    public static byte[] tableMetadata(IsolationLevel isolationLevel) {
+        switch (isolationLevel) {
+            case SERIALIZABLE:
+                return tableMetadata(ConflictHandler.SERIALIZABLE);
+            case SNAPSHOT:
+                return tableMetadata(ConflictHandler.RETRY_ON_WRITE_WRITE);
+            case NONE:
+                return tableMetadata(ConflictHandler.IGNORE_ALL);
+            default:
+                throw new SafeIllegalStateException(
+                        "Unknown isolation level", SafeArg.of("isolationLevel", isolationLevel));
+        }
+    }
+
+    public static ConflictHandler toIndexConflictHandler(ConflictHandler baseTableConflictHandler) {
+        return baseTableConflictHandler.checkReadWriteConflicts()
+                ? ConflictHandler.SERIALIZABLE_INDEX
+                : ConflictHandler.IGNORE_ALL;
+    }
+
+    public static byte[] indexMetadata(ConflictHandler baseTableConflictHandler) {
+        return tableMetadata(toIndexConflictHandler(baseTableConflictHandler));
+    }
+}u}(jt  (c14cafe2cad0f011ce8b5b31617cf86e0d9736faj  matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunner.javaj  addedj  K9j  K j  K9j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X
  @@ -0,0 +1,57 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.Future;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+
+public final class ConcurrentTransactionRunner<T extends TransactionStore> {
+    private final T transactionStore;
+    private final ListeningExecutorService listeningExecutorService;
+
+    public ConcurrentTransactionRunner(T transactionStore, ListeningExecutorService listeningExecutorService) {
+        this.transactionStore = transactionStore;
+        this.listeningExecutorService = listeningExecutorService;
+    }
+
+    public Future<List<WitnessedTransaction>> runConcurrentTransactionTask(
+            KeyedTransactionTask<T> transactionTask, int taskMultiplicity) {
+        Preconditions.checkArgument(
+                taskMultiplicity >= 0,
+                "Tasks must be run a non-negative number of times",
+                SafeArg.of("providedTaskMultiplicity", taskMultiplicity));
+        List<ListenableFuture<Optional<WitnessedTransaction>>> taskFutures = IntStream.range(0, taskMultiplicity)
+                .mapToObj(
+                        index -> listeningExecutorService.submit(() -> transactionTask.apply(transactionStore, index)))
+                .collect(Collectors.toList());
+        return Futures.transform(
+                Futures.allAsList(taskFutures),
+                outcome -> outcome.stream().flatMap(Optional::stream).collect(Collectors.toList()),
+                MoreExecutors.directExecutor());
+    }
+}u}(jt  (f4ad0b8dddc43f5cd0380760c6cfdc9c58c273e1j  aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javaj  addedj  KPj  K j  KPj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XL  @@ -0,0 +1,80 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import com.palantir.logsafe.exceptions.SafeRuntimeException;
+import java.util.List;
+import java.util.concurrent.ExecutionException;
+import java.util.concurrent.Future;
+
+public final class DefaultWorkflow<T extends TransactionStore> implements Workflow {
+    private final ConcurrentTransactionRunner<T> concurrentTransactionRunner;
+    private final KeyedTransactionTask<T> transactionTask;
+    private final WorkflowConfiguration workflowConfiguration;
+    private final ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    private DefaultWorkflow(
+            ConcurrentTransactionRunner<T> concurrentTransactionRunner,
+            KeyedTransactionTask<T> transactionTask,
+            WorkflowConfiguration workflowConfiguration,
+            ReadOnlyTransactionStore readOnlyTransactionStore) {
+        this.concurrentTransactionRunner = concurrentTransactionRunner;
+        this.transactionTask = transactionTask;
+        this.workflowConfiguration = workflowConfiguration;
+        this.readOnlyTransactionStore = readOnlyTransactionStore;
+    }
+
+    public static <T extends TransactionStore> DefaultWorkflow<T> create(
+            T store,
+            KeyedTransactionTask<T> transactionTask,
+            WorkflowConfiguration configuration,
+            ListeningExecutorService executionExecutor) {
+        return new DefaultWorkflow<>(
+                new ConcurrentTransactionRunner<>(store, executionExecutor),
+                transactionTask,
+                configuration,
+                new ReadOnlyTransactionStore(store));
+    }
+
+    @Override
+    public WorkflowHistory run() {
+        return ImmutableWorkflowHistory.builder()
+                .history(
+                        WitnessedTransactions.sortAndFilterTransactions(readOnlyTransactionStore, runTransactionTask()))
+                .transactionStore(readOnlyTransactionStore)
+                .build();
+    }
+
+    private List<WitnessedTransaction> runTransactionTask() {
+        Future<List<WitnessedTransaction>> transactionsFuture =
+                concurrentTransactionRunner.runConcurrentTransactionTask(
+                        transactionTask, workflowConfiguration.iterationCount());
+        try {
+            return transactionsFuture.get();
+        } catch (InterruptedException e) {
+            Thread.currentThread().interrupt();
+            throw new SafeRuntimeException(e);
+        } catch (ExecutionException e) {
+            throw new SafeRuntimeException("Error when running workflow task", e.getCause());
+        }
+    }
+}u}(jt  (4ca9777a60bba46b458d814677435f4e29d93675j  uatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowConfiguration.javaj  renamedj  K	j  Kj  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,24 +14,19 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.backup;
+package com.palantir.atlasdb.workload.workflow;
 
+import com.fasterxml.jackson.annotation.JsonTypeName;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import org.immutables.value.Value;
 
-@JsonSerialize(as = ImmutableRestoreRequestWithId.class)
-@JsonDeserialize(as = ImmutableRestoreRequestWithId.class)
 @Value.Immutable
-public interface RestoreRequestWithId {
-    RestoreRequest restoreRequest();
+@JsonSerialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellWorkflowConfiguration.TYPE)
+public interface SingleBusyCellWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell";
 
-    String backupId();
-
-    static RestoreRequestWithId of(RestoreRequest restoreRequest, String backupId) {
-        return ImmutableRestoreRequestWithId.builder()
-                .restoreRequest(restoreRequest)
-                .backupId(backupId)
-                .build();
-    }
+    TableConfiguration tableConfiguration();
 }j  Uatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/backup/RestoreRequestWithId.javau}(jt  (c82f3d3c2182e14e8f2d6630ac1cb719f0cd3c4cj  iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflows.javaj  addedj  Kij  K j  Kij  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,105 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions.
+ */
+public final class SingleBusyCellWorkflows {
+    private SingleBusyCellWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReadsAndTouches(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReadsAndTouches(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(txn -> {
+                    Optional<Integer> value =
+                            txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL);
+                    txn.write(configuration.tableConfiguration().tableName(), BUSY_CELL, value.orElse(-1));
+                })))
+                .collect(Collectors.toList());
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
+    }
+}u}(jt  (caadf187b4d5e22652f2a830ce77923c1b876143j  xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javaj  addedj  K&j  K j  K&j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonTypeName(SingleRowTwoCellsWorkflowConfiguration.TYPE)
+public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "singleRowTwoCells";
+
+    TableConfiguration tableConfiguration();
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jt  (a051b9750921550bf6cef8e388f821ed91ce81c5j  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javaj  addedj  Kgj  K j  Kgj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,103 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.Streams;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+
+/**
+ * Consider a single row in a database that has two cells, which should between them maintain the invariant that
+ * at most one cell has a value (this workflow is extremely common in AtlasDB Proxy). This workflow maintains
+ * concurrent transactions that read the row (both cells), and then sends an update to one of the cells and attempts
+ * to delete the other.
+ */
+public final class SingleRowTwoCellsWorkflows {
+    private static final int SINGLE_ROW = 1;
+    private static final int FIRST_COLUMN = 1;
+    private static final int SECOND_COLUMN = 2;
+
+    @VisibleForTesting
+    static final WorkloadCell FIRST_CELL = ImmutableWorkloadCell.of(SINGLE_ROW, FIRST_COLUMN);
+
+    @VisibleForTesting
+    static final WorkloadCell SECOND_CELL = ImmutableWorkloadCell.of(SINGLE_ROW, SECOND_COLUMN);
+
+    private SingleRowTwoCellsWorkflows() {
+        // static factory
+    }
+
+    public static Workflow createSingleRowTwoCell(
+            TransactionStore store,
+            SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, index) -> run(txnStore, index, singleRowTwoCellsWorkflowConfiguration),
+                singleRowTwoCellsWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    private static Optional<WitnessedTransaction> run(
+            TransactionStore store, int taskIndex, SingleRowTwoCellsWorkflowConfiguration workflowConfiguration) {
+        workflowConfiguration.transactionRateLimiter().acquire();
+
+        List<TransactionAction> transactionActions = createTransactionActions(
+                taskIndex, workflowConfiguration.tableConfiguration().tableName());
+        return store.readWrite(transactionActions);
+    }
+
+    @VisibleForTesting
+    static List<TransactionAction> createTransactionActions(int taskIndex, String tableName) {
+        List<TransactionAction> cellReads = createCellReadActions(tableName);
+        List<TransactionAction> cellUpdates = createCellUpdateActions(taskIndex, tableName);
+        return Streams.concat(cellReads.stream(), cellUpdates.stream(), cellReads.stream())
+                .collect(Collectors.toList());
+    }
+
+    @VisibleForTesting
+    static boolean shouldWriteToFirstCell(int taskIndex) {
+        return taskIndex % 2 == 0;
+    }
+
+    private static List<TransactionAction> createCellUpdateActions(int taskIndex, String tableName) {
+        return shouldWriteToFirstCell(taskIndex)
+                ? ImmutableList.of(
+                        WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
+                        DeleteTransactionAction.of(tableName, SECOND_CELL))
+                : ImmutableList.of(
+                        DeleteTransactionAction.of(tableName, FIRST_CELL),
+                        WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
+    }
+
+    private static List<TransactionAction> createCellReadActions(String tableName) {
+        return ImmutableList.of(
+                ReadTransactionAction.of(tableName, FIRST_CELL), ReadTransactionAction.of(tableName, SECOND_CELL));
+    }
+}u}(jt  (17025a595fb12bc4f0fc9cfc02f250dd06064c6aj  `atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingGraph.javaj  addedj  K|j  K j  K|j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X%  @@ -0,0 +1,124 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.google.common.collect.Iterators;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.security.SecureRandom;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import one.util.streamex.EntryStream;
+
+public final class RingGraph {
+    private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+    private final Map<Integer, Integer> ring;
+
+    private RingGraph(Map<Integer, Integer> ring) {
+        this.ring = ring;
+    }
+
+    public static RingGraph from(Map<Integer, Integer> ring) throws RingValidationException {
+        validateGraphIsRing(ring);
+        return new RingGraph(ring);
+    }
+
+    public static RingGraph fromPartial(Map<Integer, Optional<Integer>> ring) throws RingValidationException {
+        if (isEmpty(ring)) {
+            return RingGraph.generateNewRing(ring.keySet());
+        }
+
+        Preconditions.checkArgument(
+                !anyEmpty(ring),
+                "Graph contains missing entries, thus cannot be made into a ring.",
+                SafeArg.of("ring", ring));
+
+        return from(EntryStream.of(ring).mapValues(Optional::get).toMap());
+    }
+
+    public static RingGraph create(int size) {
+        return generateNewRing(IntStream.range(0, size).boxed().collect(Collectors.toSet()));
+    }
+
+    /**
+     * Checks that the ring is correct by verifying:
+     * (1) There are no missing entries
+     * (2) There are no sub-cycles
+     * (3) The ring is connected
+     * <p>
+     * This is simply done by iterating over the length of the ring, and validating that we visited each node.
+     * To ensure that the ring is connected, we do not track our entry into the ring (i.e. the first node we visit),
+     * as we expect to have it be visited again as the last node.
+     */
+    public static void validateGraphIsRing(Map<Integer, Integer> ring) throws RingValidationException {
+        Integer initialNode = ring.keySet().iterator().next();
+        Set<Integer> remainingNodes = new HashSet<>(ring.keySet());
+        int maxIterations = ring.keySet().size();
+        Integer nextNode = ring.get(initialNode);
+        for (int iterations = 0; iterations < maxIterations; iterations++) {
+            // If we reference a node that does not exist in our ring, it means we are missing data
+            if (!ring.containsKey(nextNode)) {
+                RingValidationException.throwMissingEntries(ring);
+            }
+
+            // If the node already has been visited, it means we're in a cycle within our ring
+            if (!remainingNodes.remove(nextNode)) {
+                RingValidationException.throwEarlyCycle(ring);
+            }
+
+            nextNode = ring.get(nextNode);
+        }
+    }
+
+    public RingGraph generateNewRing() {
+        return generateNewRing(ring.keySet());
+    }
+
+    /**
+     * Returns a valid new ring with the same nodes but randomly generated edges.
+     */
+    private static RingGraph generateNewRing(Set<Integer> nodes) {
+        List<Integer> keys = new ArrayList<>(nodes);
+        Collections.shuffle(keys, SECURE_RANDOM);
+        Iterator<Integer> valuesIterator = Iterators.cycle(keys);
+        valuesIterator.next();
+        return new RingGraph(
+                keys.stream().collect(Collectors.toMap(Function.identity(), _node -> valuesIterator.next())));
+    }
+
+    public Map<Integer, Integer> asMap() {
+        return ring;
+    }
+
+    private static boolean isEmpty(Map<Integer, Optional<Integer>> ring) {
+        return ring.values().stream().allMatch(Optional::isEmpty);
+    }
+
+    private static boolean anyEmpty(Map<Integer, Optional<Integer>> ring) {
+        return ring.values().stream().anyMatch(Optional::isEmpty);
+    }
+}u}(jt  (109ed2a6c2ef9753e6500d3ea6827a032511da81j  natlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingValidationException.javaj  addedj  K?j  K j  K?j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,63 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.palantir.logsafe.Arg;
+import com.palantir.logsafe.Safe;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.SafeLoggable;
+import java.util.List;
+import java.util.Map;
+
+public final class RingValidationException extends IllegalArgumentException implements SafeLoggable {
+
+    private final Map<Integer, Integer> ring;
+    private final Type type;
+
+    private RingValidationException(Map<Integer, Integer> ring, Type type) {
+        this.ring = ring;
+        this.type = type;
+    }
+
+    @Override
+    public @Safe String getLogMessage() {
+        return "Detected an error in the graph when attempting to validate as a ring.";
+    }
+
+    @Override
+    public List<Arg<?>> getArgs() {
+        return List.of(SafeArg.of("ring", ring), SafeArg.of("type", type));
+    }
+
+    public static void throwEarlyCycle(Map<Integer, Integer> ring) throws RingValidationException {
+        throw new RingValidationException(ring, Type.EARLY_CYCLE);
+    }
+
+    public static void throwMissingEntries(Map<Integer, Integer> ring) throws RingValidationException {
+        throw new RingValidationException(ring, Type.MISSING_ENTRIES);
+    }
+
+    enum Type {
+        // Detected a cycle in our ring before visiting all nodes,
+        // indicating the integrity of our ring has been compromised.
+        EARLY_CYCLE,
+
+        // Detected a reference to a node that does not exist,
+        // indicating the integrity of our ring has been compromised.
+        MISSING_ENTRIES;
+    }
+}u}(jt  (8db9245638b72b40f73f9ae3c427c4ccb2c69053j  patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowConfiguration.javaj  addedj  K,j  K j  K,j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import com.palantir.atlasdb.workload.workflow.TableConfiguration;
+import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableRingWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableRingWorkflowConfiguration.class)
+@JsonTypeName(RingWorkflowConfiguration.TYPE)
+public interface RingWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "ring";
+
+    TableConfiguration tableConfiguration();
+
+    default Integer ringSize() {
+        return 3;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jt  (b786a95bef1effb5bd44f53eed786d588b38a9b0j  datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflows.javaj  addedj  Ktj  K j  Ktj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,116 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.Map;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+
+/**
+ * Runs a workflow which creates a representation of a ring using key-value pairs.
+ * The ring is validated and shuffled after every iteration. If the ring ever becomes invalid (cycles, missing data),
+ * this indicates that there is a bug in our underlying storage infrastructure, as snapshot isolation has been violated.
+ * Snapshot isolation would be violated here, as it indicates that we did not detect a write-write conflict,
+ * as every write will be of a correct ring.
+ */
+public final class RingWorkflows {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(RingWorkflows.class);
+
+    private static final int COLUMN = 0;
+
+    private RingWorkflows() {
+        // static factory
+    }
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration ringWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        AtomicBoolean skipRunning = new AtomicBoolean(false);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
+                ringWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration ringWorkflowConfiguration,
+            ListeningExecutorService executionExecutor,
+            AtomicBoolean skipRunning) {
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
+                ringWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    private static Optional<WitnessedTransaction> run(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration workflowConfiguration,
+            AtomicBoolean skipRunning) {
+        if (skipRunning.get()) {
+            return Optional.empty();
+        }
+
+        workflowConfiguration.transactionRateLimiter().acquire();
+        String table = workflowConfiguration.tableConfiguration().tableName();
+        Integer ringSize = workflowConfiguration.ringSize();
+        return store.readWrite(txn -> {
+            Map<Integer, Optional<Integer>> data = fetchData(table, ringSize, txn);
+            try {
+                RingGraph ringGraph = RingGraph.fromPartial(data);
+                ringGraph
+                        .generateNewRing()
+                        .asMap()
+                        .forEach((rootNode, nextNode) -> txn.write(table, cell(rootNode), nextNode));
+            } catch (IllegalArgumentException e) {
+                if (skipRunning.compareAndSet(false, true)) {
+                    log.error("Detected violation with our ring.", e);
+                }
+            }
+        });
+    }
+
+    private static Map<Integer, Optional<Integer>> fetchData(
+            String table, int ringSize, InteractiveTransaction transaction) {
+        return IntStream.range(0, ringSize)
+                .boxed()
+                .collect(Collectors.toMap(Function.identity(), index -> transaction.read(table, cell(index))));
+    }
+
+    @VisibleForTesting
+    static ImmutableWorkloadCell cell(Integer node) {
+        return ImmutableWorkloadCell.of(node, COLUMN);
+    }
+}u}(jt  (54dd470d5e4868599f8d83ecf582c00fc31591dcj  =atlasdb-workload-server/src/main/metrics/workload-metrics.ymlj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fmetrics%2Fworkload-metrics.ymlj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Fmain%2Fmetrics%2Fworkload-metrics.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fmetrics%2Fworkload-metrics.yml?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X4  @@ -0,0 +1,16 @@
+options:
+  javaPackage: 'com.palantir.atlasdb.workload'
+
+namespaces:
+  com.palantir.atlasdb.workload.invariant:
+    shortName: DurableWrites
+    docs: Metrics for the durable writes invariant.
+    metrics:
+      numberOfViolations:
+        type: counter
+        tags:
+          - workflow
+          - table
+        docs: >-
+          Number of cells that have a mismatching value from what we expect and what is actually there.
+          This includes cells which have been deleted and have re-appeared.
\ No newline at end of fileu     }(jt  (c89f46a34f99a9fca258b76f8b9fdf692e350760j  natlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/background/BackgroundCassandraJobTest.javaj  addedj  K2j  K j  K2j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,50 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.background;
+
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.verify;
+
+import com.palantir.atlasdb.buggify.AlwaysBuggifyFactory;
+import com.palantir.atlasdb.workload.resource.CassandraSidecarResource;
+import java.util.List;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class BackgroundCassandraJobTest {
+
+    private static final String HOST_ONE = "cassandra1";
+    private static final String HOST_TWO = "cassandra2";
+    private static final String HOST_THREE = "cassandra3";
+
+    private static final List<String> CASSANDRA_HOSTS = List.of(HOST_ONE, HOST_TWO, HOST_THREE);
+
+    @Mock
+    private CassandraSidecarResource cassandraSidecarResource;
+
+    @Test
+    public void runCanExecuteCompactFlushOnAllCassandraHosts() {
+        BackgroundCassandraJob backgroundCassandraJob =
+                new BackgroundCassandraJob(CASSANDRA_HOSTS, cassandraSidecarResource, AlwaysBuggifyFactory.INSTANCE);
+        CASSANDRA_HOSTS.forEach(_ignore -> backgroundCassandraJob.run());
+        CASSANDRA_HOSTS.forEach(host -> verify(cassandraSidecarResource).compact(eq(host)));
+        CASSANDRA_HOSTS.forEach(host -> verify(cassandraSidecarResource).flush(eq(host)));
+    }
+}u}(jt  (3d12ec12a07e0b90193451a34a6dccfcfa6f8e76j  {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporterTest.javaj  addedj  K\j  K j  K\j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,92 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.workload.DurableWritesMetrics;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.store.IndexTable;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
+import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import org.junit.Test;
+
+public final class DurableWritesInvariantMetricReporterTest {
+
+    private final TaggedMetricRegistry taggedMetricRegistry = new DefaultTaggedMetricRegistry();
+    private final DurableWritesMetrics metrics = DurableWritesMetrics.of(taggedMetricRegistry);
+
+    @Test
+    public void runIncreasesMetricsIfViolationsFound() {
+        DurableWritesInvariantMetricReporter reporter =
+                new DurableWritesInvariantMetricReporter(WorkloadTestHelpers.WORKFLOW, metrics);
+        AtlasDbTransactionStoreFactory factory = new AtlasDbTransactionStoreFactory(
+                TransactionManagers.createInMemory(Set.of()), Optional.of("keyspace"));
+        TransactionStore store = factory.create(
+                Map.of(
+                        WorkloadTestHelpers.TABLE_1,
+                        IsolationLevel.SERIALIZABLE,
+                        WorkloadTestHelpers.TABLE_2,
+                        IsolationLevel.SERIALIZABLE),
+                Set.of(IndexTable.builder()
+                        .indexTableName(WorkloadTestHelpers.TABLE_1_INDEX_1)
+                        .primaryTableName(WorkloadTestHelpers.TABLE_1)
+                        .build()));
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .transactionStore(store)
+                .history(List.of(FullyWitnessedTransaction.builder()
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .addActions(WitnessedWriteTransactionAction.of(
+                                WorkloadTestHelpers.TABLE_1,
+                                WorkloadTestHelpers.WORKLOAD_CELL_ONE,
+                                WorkloadTestHelpers.VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(
+                                WorkloadTestHelpers.TABLE_2,
+                                WorkloadTestHelpers.WORKLOAD_CELL_ONE,
+                                WorkloadTestHelpers.VALUE_ONE))
+                        .build()))
+                .build();
+        reporter.report(workflowHistory);
+        assertThat(getViolationCount(WorkloadTestHelpers.WORKFLOW, WorkloadTestHelpers.TABLE_1))
+                .isEqualTo(1);
+        assertThat(getViolationCount(WorkloadTestHelpers.WORKFLOW, WorkloadTestHelpers.TABLE_2))
+                .isEqualTo(1);
+        assertThat(getViolationCount(WorkloadTestHelpers.WORKFLOW, WorkloadTestHelpers.TABLE_1_INDEX_1))
+                .isEqualTo(0);
+    }
+
+    private long getViolationCount(String workflow, String table) {
+        return metrics.numberOfViolations()
+                .workflow(workflow)
+                .table(table)
+                .build()
+                .getCount();
+    }
+}u}(jt  (39cc7f77a28bd84fc271bbca23d8e9195abf6fd6j  matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantTest.javaj  addedj  Kqj  K j  Kqj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,113 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.atomic.AtomicReference;
+import org.junit.Before;
+import org.junit.Test;
+
+public final class DurableWritesInvariantTest {
+
+    private AtlasDbTransactionStore store;
+
+    @Before
+    public void before() {
+        store = AtlasDbTransactionStore.create(
+                TransactionManagers.createInMemory(Set.of()),
+                Map.of(TABLE_REFERENCE, AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
+    }
+
+    @Test
+    public void cellsExpectedToBeDeletedAreFound() {
+        AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
+        List<WitnessedTransaction> witnessedTransactions = List.of(
+                FullyWitnessedTransaction.builder()
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .build(),
+                FullyWitnessedTransaction.builder()
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO))
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .build());
+        WorkflowHistory history = ImmutableWorkflowHistory.builder()
+                .history(witnessedTransactions)
+                .transactionStore(store)
+                .build();
+
+        store.readWrite(List.of(WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE)));
+        DurableWritesInvariant.INSTANCE.accept(history, mismatchingCells::set);
+        assertThat(mismatchingCells.get())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO),
+                        MismatchedValue.of(Optional.of(VALUE_ONE), Optional.empty())));
+    }
+
+    @Test
+    public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
+        AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
+        List<WitnessedTransaction> witnessedTransactions = List.of(
+                FullyWitnessedTransaction.builder()
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .build(),
+                FullyWitnessedTransaction.builder()
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .build());
+        WorkflowHistory history = ImmutableWorkflowHistory.builder()
+                .history(witnessedTransactions)
+                .transactionStore(store)
+                .build();
+
+        store.readWrite(List.of(
+                WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
+                WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE)));
+        DurableWritesInvariant.INSTANCE.accept(history, mismatchingCells::set);
+        assertThat(mismatchingCells.get())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO),
+                        MismatchedValue.of(Optional.of(VALUE_ONE), Optional.of(VALUE_TWO))));
+    }
+}u}(jt  (398677d5ff242f5cee92de9c2737a0843621c59dj  watlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporterTest.javaj  addedj  K3j  K j  K3j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X;  @@ -0,0 +1,51 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import java.util.List;
+import org.junit.Test;
+
+public class SerializableInvariantLogReporterTest {
+    @Test
+    public void invariantIsSerializable() {
+        assertThat(SerializableInvariantLogReporter.INSTANCE.invariant()).isEqualTo(SerializableInvariant.INSTANCE);
+    }
+
+    @Test
+    public void consumerDoesNotThrowWhenAcceptingViolations() {
+        assertThatCode(() -> SerializableInvariantLogReporter.INSTANCE
+                        .consumer()
+                        .accept(List.of(InvalidWitnessedTransaction.of(
+                                FullyWitnessedTransaction.builder()
+                                        .startTimestamp(1)
+                                        .build(),
+                                List.of()))))
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void consumerDoesNotThrowWhenAcceptingNoViolations() {
+        assertThatCode(() ->
+                        SerializableInvariantLogReporter.INSTANCE.consumer().accept(List.of()))
+                .doesNotThrowAnyException();
+    }
+}u}(jt  (90b36432d0c4959d6f029a213c9b14ce813a43a8j  latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X\  @@ -0,0 +1,152 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class SerializableInvariantTest {
+
+    @Mock
+    private ReadableTransactionStore readableTransactionStore;
+
+    @Test
+    public void handlesLocalWrites() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .read(5, 10)
+                .write(5, 10, 15)
+                .read(5, 10, 15)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void noInvalidTransactionsWhenSerializable() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .write(23, 1, 20)
+                .write(7, 15, 14)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(23, 1, 20)
+                .read(7, 15, 14)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void catchesWriteSkew() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(6, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(6, 10, 15)
+                .write(5, 10, 0)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(6, 10, 15)
+                .write(6, 10, 0)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);
+
+        assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
+
+        assertThat(invalidWitnessedTransactionAction.action())
+                .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
+                    assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
+                    assertThat(action.value()).contains(15);
+                });
+        assertThat(invalidWitnessedTransactionAction.mismatchedValue())
+                .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+    }
+
+    @Test
+    public void handlesDeletes() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(6, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .delete(5, 10)
+                .read(5, 10)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+}u}(jt  (6c7f1d05425e8759d68b71073e9525eaf8f11057j  uatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunnerTest.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  Xb  @@ -0,0 +1,140 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.runner;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doAnswer;
+import static org.mockito.Mockito.doThrow;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.times;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
+
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.Future;
+import java.util.concurrent.atomic.AtomicBoolean;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class AntithesisWorkflowValidatorRunnerTest {
+
+    private static final ListeningExecutorService EXECUTOR_SERVICE =
+            MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(8));
+
+    @Mock
+    private Workflow workflow;
+
+    @Mock
+    private WorkflowHistory workflowHistory;
+
+    @Mock
+    private InvariantReporter<Void> invariantReporterOne;
+
+    @Mock
+    private InvariantReporter<Void> invariantReporterTwo;
+
+    private WorkflowAndInvariants<Workflow> workflowAndInvariants;
+
+    @Before
+    public void before() {
+        when(workflow.run()).thenReturn(workflowHistory);
+        workflowAndInvariants = WorkflowAndInvariants.of(workflow, invariantReporterOne, invariantReporterTwo);
+    }
+
+    @Test
+    public void runExecutesWorkflowAndInvokesInvariantReporters() {
+        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(workflowAndInvariants);
+        verify(workflow, times(1)).run();
+        verify(invariantReporterOne, times(1)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+
+    @Test
+    public void runValidatesAllInvariantsIgnoringExceptions() {
+        doThrow(new RuntimeException()).when(invariantReporterOne).report(any());
+        doThrow(new RuntimeException()).when(invariantReporterTwo).report(any());
+        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(workflowAndInvariants);
+        verify(workflow, times(1)).run();
+        verify(invariantReporterOne, times(1)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+
+    @Test
+    public void runExecutesMultipleWorkflowsAndWaitsForAllToFinishBeforeInvokingInvariantReporter() {
+        CountDownLatch slowWorkflowCanMakeProgress = new CountDownLatch(1);
+        AtomicBoolean slowWorkflowIsDone = new AtomicBoolean(false);
+
+        Workflow slowWorkflow = mock(Workflow.class);
+        when(slowWorkflow.run()).thenAnswer(_input -> {
+            try {
+                slowWorkflowCanMakeProgress.await();
+                slowWorkflowIsDone.set(true);
+                return workflowHistory;
+            } catch (InterruptedException e) {
+                Thread.currentThread().interrupt();
+                throw new RuntimeException(e);
+            }
+        });
+
+        doAnswer(_invocation -> {
+                    assertThat(slowWorkflowIsDone.get())
+                            .as("the invariant reporter ran, even though the slow workflow was not done yet")
+                            .isTrue();
+                    return null;
+                })
+                .when(invariantReporterOne)
+                .report(any());
+
+        ExecutorService backgroundExecutor = PTExecutors.newSingleThreadExecutor();
+        try {
+            Future<Void> validation = backgroundExecutor.submit(() -> {
+                WorkflowAndInvariants<Workflow> slowWorkflowAndInvariants =
+                        WorkflowAndInvariants.of(slowWorkflow, invariantReporterOne);
+                new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE)
+                        .run(slowWorkflowAndInvariants, workflowAndInvariants);
+                return null;
+            });
+
+            assertThat(validation).as("the slow workflow was not actually slow").isNotDone();
+
+            slowWorkflowCanMakeProgress.countDown();
+            Futures.getUnchecked(validation);
+        } finally {
+            backgroundExecutor.shutdown();
+        }
+
+        verify(workflow, times(1)).run();
+        verify(slowWorkflow, times(1)).run();
+        verify(invariantReporterOne, times(2)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+}u}(jt  (b5153a38953e7417f0f9867686cd369359e28c9ej  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X_  @@ -0,0 +1,145 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.NAMES_TO_REFERENCES_TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLES_TO_ATLAS_METADATA;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Consumer;
+import org.junit.Before;
+import org.junit.Test;
+
+public final class AtlasDbInteractiveTransactionTest {
+
+    private TransactionManager manager;
+
+    @Before
+    public void before() {
+        manager = TransactionManagers.createInMemory(Set.of());
+        manager.getKeyValueService().createTables(TABLES_TO_ATLAS_METADATA);
+    }
+
+    @Test
+    public void witnessRecordAllActions() {
+        assertThat(readWrite(transaction -> {
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
+                .containsExactly(
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void readHandlesEmptyAndPresentValue() {
+        assertThat(readWrite(transaction -> {
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
+                .containsExactly(
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+    }
+
+    @Test
+    public void readThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.read(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void writeThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(
+                transaction -> transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE));
+    }
+
+    @Test
+    public void deleteThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void readThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.read(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void writeThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE));
+    }
+
+    @Test
+    public void deleteThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        return manager.runTaskWithRetry(atlasTransaction -> {
+            AtlasDbInteractiveTransaction interactiveTransaction =
+                    new AtlasDbInteractiveTransaction(atlasTransaction, NAMES_TO_REFERENCES_TABLE_1);
+            transactionConsumer.accept(interactiveTransaction);
+            return interactiveTransaction.witness();
+        });
+    }
+
+    private void assertThatThrownWhenUnknownTableReferenced(
+            Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
+                    transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
+                    return null;
+                }))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Transaction action has unknown table.");
+    }
+
+    private void assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+            Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
+                    AtlasDbInteractiveTransaction transaction =
+                            new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
+                    transaction.witness();
+                    transactionConsumer.accept(transaction);
+                    return null;
+                }))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Transaction has already been witnessed and can no longer perform any actions.");
+    }
+}u}(jt  (fa2b7e0a76d3a58878ebde01fd053f11ba48b28cj  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactoryTest.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactoryTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactoryTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactoryTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X@#  @@ -0,0 +1,164 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.logsafe.SafeArg;
+import java.util.Locale;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import org.junit.Test;
+
+public final class AtlasDbTransactionStoreFactoryTest {
+
+    private final TransactionManager transactionManager = TransactionManagers.createInMemory(Set.of());
+    private final AtlasDbTransactionStoreFactory defaultFactory =
+            new AtlasDbTransactionStoreFactory(transactionManager, Optional.empty());
+
+    @Test
+    public void createWillCreateProvidedTablesAndIndexes() {
+        AtlasDbTransactionStoreFactory factory = new AtlasDbTransactionStoreFactory(
+                transactionManager,
+                Optional.of(WorkloadTestHelpers.TABLE_REFERENCE.getNamespace().getName()));
+        factory.create(
+                Map.of(WorkloadTestHelpers.TABLE_1, IsolationLevel.SERIALIZABLE),
+                Set.of(createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_1)));
+        assertThat(transactionManager.getKeyValueService().getAllTableNames())
+                .contains(WorkloadTestHelpers.TABLE_REFERENCE, WorkloadTestHelpers.INDEX_REFERENCE);
+    }
+
+    @Test
+    public void createTableReferenceWithEmptyNamespaceIfNoNamespaceProvided() {
+        assertThat(defaultFactory
+                        .createTableReference(WorkloadTestHelpers.TABLE_1)
+                        .getNamespace()
+                        .isEmptyNamespace())
+                .isTrue();
+    }
+
+    @Test
+    public void createTableReferenceHasNamespaceWhenProvided() {
+        AtlasDbTransactionStoreFactory factory = new AtlasDbTransactionStoreFactory(
+                transactionManager, Optional.of(WorkloadTestHelpers.NAMESPACE.getName()));
+        assertThat(factory.createTableReference(WorkloadTestHelpers.TABLE_1).getNamespace())
+                .isEqualTo(WorkloadTestHelpers.NAMESPACE);
+    }
+
+    @Test
+    public void toAtlasTablesConvertsSerializableTablesCorrectly() {
+        assertThat(defaultFactory.toAtlasTables(
+                        Map.of(WorkloadTestHelpers.TABLE_1, IsolationLevel.SERIALIZABLE), Set.of()))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1),
+                        AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
+    }
+
+    @Test
+    public void toAtlasTablesConvertsSerializableIndexTablesCorrectly() {
+        assertThat(defaultFactory.toAtlasTables(
+                        Map.of(WorkloadTestHelpers.TABLE_1, IsolationLevel.SERIALIZABLE),
+                        Set.of(createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_1))))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1),
+                        AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1_INDEX_1),
+                        AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE)));
+    }
+
+    @Test
+    public void toAtlasTablesHandlesMultipleTablesAndIndexesCorrectly() {
+        assertThat(defaultFactory.toAtlasTables(
+                        Map.of(
+                                WorkloadTestHelpers.TABLE_1,
+                                IsolationLevel.SERIALIZABLE,
+                                WorkloadTestHelpers.TABLE_2,
+                                IsolationLevel.SNAPSHOT),
+                        Set.of(
+                                createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_1),
+                                createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_2, WorkloadTestHelpers.TABLE_1),
+                                createIndexTable(WorkloadTestHelpers.TABLE_2_INDEX_1, WorkloadTestHelpers.TABLE_2))))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1),
+                        AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1_INDEX_1),
+                        AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1_INDEX_2),
+                        AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_2),
+                        AtlasDbUtils.tableMetadata(ConflictHandler.RETRY_ON_WRITE_WRITE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_2_INDEX_1),
+                        AtlasDbUtils.tableMetadata(ConflictHandler.IGNORE_ALL)));
+    }
+
+    @Test
+    public void throwsWhenIndexReferencesUnknownPrimaryTable() {
+        IndexTable goodIndexTable = createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_2, WorkloadTestHelpers.TABLE_1);
+        IndexTable badIndexTable = createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, "blah");
+        assertThatLoggableExceptionThrownBy(() -> defaultFactory.create(
+                        Map.of(WorkloadTestHelpers.TABLE_1, IsolationLevel.SERIALIZABLE),
+                        Set.of(goodIndexTable, badIndexTable)))
+                .hasMessageContaining("Found indexes which reference an unknown primary table")
+                .hasExactlyArgs(SafeArg.of("indexesWithUnknownPrimaryTables", Set.of(badIndexTable)));
+    }
+
+    @Test
+    public void throwsWhenPrimaryAndIndexTableHaveConflictingNames() {
+        assertThatLoggableExceptionThrownBy(() -> defaultFactory.create(
+                        Map.of(
+                                WorkloadTestHelpers.TABLE_1,
+                                IsolationLevel.SERIALIZABLE,
+                                WorkloadTestHelpers.TABLE_1_INDEX_1,
+                                IsolationLevel.SERIALIZABLE),
+                        Set.of(createIndexTable(
+                                WorkloadTestHelpers.TABLE_1.toUpperCase(Locale.ROOT),
+                                WorkloadTestHelpers.TABLE_1_INDEX_1))))
+                .hasMessageContaining("Found indexes which have the same name as primary tables")
+                .hasExactlyArgs(SafeArg.of("conflictingTableNames", Set.of(WorkloadTestHelpers.TABLE_1)));
+    }
+
+    @Test
+    public void throwsWhenIndexTablesHaveDuplicateNames() {
+        assertThatLoggableExceptionThrownBy(() -> defaultFactory.create(
+                        Map.of(
+                                WorkloadTestHelpers.TABLE_1,
+                                IsolationLevel.SERIALIZABLE,
+                                WorkloadTestHelpers.TABLE_2,
+                                IsolationLevel.SERIALIZABLE),
+                        Set.of(
+                                createIndexTable(
+                                        WorkloadTestHelpers.TABLE_1_INDEX_1.toUpperCase(Locale.ROOT),
+                                        WorkloadTestHelpers.TABLE_1),
+                                createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_2))))
+                .hasMessageContaining("Found index tables with the same name")
+                .hasExactlyArgs(SafeArg.of("duplicateTableIndexNames", Set.of(WorkloadTestHelpers.TABLE_1_INDEX_1)));
+    }
+
+    private IndexTable createIndexTable(String indexTableName, String primaryTableName) {
+        return IndexTable.builder()
+                .indexTableName(indexTableName)
+                .primaryTableName(primaryTableName)
+                .build();
+    }
+}u}(jt  (5ec56f77b39005e45c63e6495f68b817646fecc6j  jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X^0  @@ -0,0 +1,226 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.INDEX_REFERENCE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLES_TO_ATLAS_METADATA;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1_INDEX_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_THREE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doAnswer;
+import static org.mockito.Mockito.doReturn;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.spy;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.Iterables;
+import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.KeyValueService;
+import com.palantir.atlasdb.transaction.api.ConditionAwareTransactionTask;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.encoding.V1EncodingStrategy;
+import com.palantir.atlasdb.transaction.impl.TransactionConstants;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore.CommitTimestampProvider;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+import org.junit.Before;
+import org.junit.Test;
+
+public final class AtlasDbTransactionStoreTest {
+
+    private static final long START_TS = 1;
+    private static final long COMMIT_TS = 2;
+
+    private TransactionManager manager;
+
+    private AtlasDbTransactionStore store;
+
+    @Before
+    public void before() {
+        manager = TransactionManagers.createInMemory(Set.of());
+        store = AtlasDbTransactionStore.create(manager, TABLES_TO_ATLAS_METADATA);
+    }
+
+    @Test
+    public void createsTables() {
+        assertThat(manager.getKeyValueService().getAllTableNames()).contains(TABLE_REFERENCE, INDEX_REFERENCE);
+    }
+
+    @Test
+    public void canWriteDataToStore() {
+        Optional<WitnessedTransaction> witnessedTransactionPrimaryTable =
+                store.readWrite(List.of(WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE)));
+        Optional<WitnessedTransaction> witnessedTransactionIndexTable =
+                store.readWrite(List.of(WriteTransactionAction.of(TABLE_1_INDEX_1, WORKLOAD_CELL_TWO, VALUE_ONE)));
+        assertThat(witnessedTransactionPrimaryTable).isPresent();
+        assertThat(witnessedTransactionIndexTable).isPresent();
+        assertThat(store.get(TABLE_1, WORKLOAD_CELL_ONE)).contains(VALUE_ONE);
+        assertThat(store.get(TABLE_1_INDEX_1, WORKLOAD_CELL_TWO)).contains(VALUE_ONE);
+    }
+
+    @Test
+    public void witnessedTransactionMaintainsOrder() {
+        List<WitnessedTransactionAction> actions = List.of(
+                WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, 100),
+                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, Optional.of(100)),
+                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_THREE, Optional.empty()),
+                WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, 24),
+                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(24)));
+        Optional<WitnessedTransaction> maybeTransaction = store.readWrite(actions.stream()
+                .map(action -> action.accept(WitnessToActionVisitor.INSTANCE))
+                .collect(Collectors.toList()));
+        assertThat(maybeTransaction).isPresent().hasValueSatisfying(txn -> {
+            assertThat(txn.actions()).containsExactlyElementsOf(actions);
+            assertThat(txn.commitTimestamp()).isNotEmpty();
+        });
+    }
+
+    @Test
+    public void readWriteHandlesAllTransactionTypes() {
+        store.readWrite(List.of(WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE)));
+        assertThat(store.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+                .isPresent()
+                .map(WitnessedTransaction::actions)
+                .map(Iterables::getOnlyElement)
+                .map(WitnessedReadTransactionAction.class::cast)
+                .map(WitnessedReadTransactionAction::value)
+                .contains(Optional.of(VALUE_ONE));
+        store.readWrite(List.of(DeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
+        assertThat(store.get(TABLE_1, WORKLOAD_CELL_ONE)).isEmpty();
+    }
+
+    @Test
+    public void readWriteThrowsWhenTableDoesNotExist() {
+        assertThatThrownBy(() -> store.readWrite(List.of(ReadTransactionAction.of("chocolate", WORKLOAD_CELL_ONE))))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Transaction action has unknown table.");
+    }
+
+    @Test
+    public void readWriteReturnsEmptyWhenExceptionThrown() {
+        TransactionManager transactionManager = mock(TransactionManager.class);
+        KeyValueService keyValueService = mock(KeyValueService.class);
+        when(transactionManager.getKeyValueService()).thenReturn(keyValueService);
+        when(transactionManager.runTaskWithRetry(any())).thenThrow(new RuntimeException());
+        AtlasDbTransactionStore transactionStore = AtlasDbTransactionStore.create(
+                transactionManager, Map.of(TABLE_REFERENCE, AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
+        assertThat(transactionStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+                .isEmpty();
+    }
+
+    @Test
+    public void readWriteHandlesReadOnlyTransaction() {
+        Optional<WitnessedTransaction> witnessedTransaction =
+                store.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
+        assertThat(witnessedTransaction).isPresent();
+        assertThat(witnessedTransaction.get().commitTimestamp()).isEmpty();
+    }
+
+    @Test
+    public void abortedTransactionsReturnEmpty() {
+        TransactionManager onlyAbortsManager = spy(manager);
+        Transaction abortedTransaction = mock(Transaction.class);
+        when(abortedTransaction.isAborted()).thenReturn(true);
+        doReturn(abortedTransaction).when(onlyAbortsManager).runTaskWithConditionWithRetry(any(Supplier.class), any());
+        AtlasDbTransactionStore onlyAbortsStore =
+                AtlasDbTransactionStore.create(onlyAbortsManager, TABLES_TO_ATLAS_METADATA);
+        assertThat(onlyAbortsStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+                .isEmpty();
+    }
+
+    @Test
+    public void keyAlreadyExistExceptionResultsInMaybeWitnessedTransaction() {
+        WriteTransactionAction writeTransactionAction =
+                WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+        TransactionManager keyAlreadyExistsExceptionThrowingStore = spy(manager);
+        doAnswer(invocation -> {
+                    Supplier<CommitTimestampProvider> commitTimestampFetcher = invocation.getArgument(0);
+                    ConditionAwareTransactionTask<Void, CommitTimestampProvider, Exception> task =
+                            invocation.getArgument(1);
+                    return manager.runTaskWithConditionWithRetry(commitTimestampFetcher, (txn, condition) -> {
+                        manager.getKeyValueService()
+                                .putUnlessExists(
+                                        TransactionConstants.TRANSACTION_TABLE,
+                                        Map.of(
+                                                V1EncodingStrategy.INSTANCE.encodeStartTimestampAsCell(
+                                                        txn.getTimestamp()),
+                                                Ints.toByteArray(-1)));
+                        task.execute(txn, condition);
+                        return null;
+                    });
+                })
+                .when(keyAlreadyExistsExceptionThrowingStore)
+                .runTaskWithConditionWithRetry(any(Supplier.class), any());
+        AtlasDbTransactionStore onlyKeyAlreadyExistsThrowingStore =
+                AtlasDbTransactionStore.create(keyAlreadyExistsExceptionThrowingStore, TABLES_TO_ATLAS_METADATA);
+        assertThat(onlyKeyAlreadyExistsThrowingStore.readWrite(List.of(writeTransactionAction)))
+                .hasValueSatisfying(witnessedTransaction -> {
+                    assertThat(witnessedTransaction).isInstanceOf(MaybeWitnessedTransaction.class);
+                    assertThat(witnessedTransaction.actions()).containsExactly(writeTransactionAction.witness());
+                });
+    }
+
+    @Test
+    public void getCommitTimestampIsEmptyWhenMatchesStartTimestamp() {
+        CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();
+        commitTimestampProvider.throwIfConditionInvalid(START_TS);
+        assertThat(commitTimestampProvider.getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .isEmpty();
+    }
+
+    @Test
+    public void getCommitTimestampThrowsWhenNoTimestampSet() {
+        assertThatThrownBy(() -> new CommitTimestampProvider().getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining(
+                        "Timestamp has not been set, which means the pre commit condition has never been executed");
+    }
+
+    @Test
+    public void getCommitTimestampReturnsPresentWhenCommitAndStartTimestampMismatch() {
+        CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();
+        commitTimestampProvider.throwIfConditionInvalid(COMMIT_TS);
+        assertThat(commitTimestampProvider.getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .hasValue(COMMIT_TS);
+    }
+}u}(jt  (eb63f7e70bff1527685e728d66979d4f8f1a1f60j  tatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayerTest.javaj  addedj  KJj  K j  KJj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,74 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.Tuple2;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class InMemoryTransactionReplayerTest {
+
+    private static final WitnessedWriteTransactionAction WRITE_TRANSACTION_ACTION_1 =
+            ImmutableWitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+    private static final WitnessedWriteTransactionAction WRITE_TRANSACTION_ACTION_2 =
+            ImmutableWitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO);
+
+    @Test
+    public void readActionsAreIgnored() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        inMemoryTransactionReplayer.visit(
+                ImmutableWitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+        assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
+    }
+
+    @Test
+    public void writesAreRecorded() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_1);
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_2);
+        assertThat(inMemoryTransactionReplayer.getValues())
+                .containsExactlyInAnyOrder(
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)),
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_TWO, Optional.of(VALUE_TWO)));
+    }
+
+    @Test
+    public void deletesAreRecorded() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_1);
+        inMemoryTransactionReplayer.visit(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
+        inMemoryTransactionReplayer.visit(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO));
+        assertThat(inMemoryTransactionReplayer.getValues())
+                .containsExactlyInAnyOrder(
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_ONE, Optional.empty()),
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_TWO, Optional.empty()));
+    }
+}uK     }(jt  (d2773b68972e300a262ebb1f8c2a24f280280cfdj  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javaj  addedj  Klj  K j  Klj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,108 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
+import com.palantir.atlasdb.workload.store.ValidationStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class InMemoryValidationStoreTest {
+
+    @Test
+    public void writeActionsPersistValues() {
+        InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
+                FullyWitnessedTransaction.builder()
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .build(),
+                FullyWitnessedTransaction.builder()
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
+                        .build()));
+        assertThat(store.values().toJavaMap())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        TABLE_WORKLOAD_CELL_ONE,
+                        Optional.of(VALUE_ONE),
+                        TABLE_WORKLOAD_CELL_TWO,
+                        Optional.of(VALUE_TWO)));
+    }
+
+    @Test
+    public void deleteActionsPutsEmptyOptionalForCell() {
+        InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
+                FullyWitnessedTransaction.builder()
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE))
+                        .build(),
+                FullyWitnessedTransaction.builder()
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
+                        .build()));
+        assertThat(store.values().toJavaMap())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        TABLE_WORKLOAD_CELL_ONE, Optional.empty(), TABLE_WORKLOAD_CELL_TWO, Optional.of(VALUE_ONE)));
+    }
+
+    @Test
+    public void writesDeletesAreProcessedInOrder() {
+        InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
+                FullyWitnessedTransaction.builder()
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .build(),
+                FullyWitnessedTransaction.builder()
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
+                        .build(),
+                FullyWitnessedTransaction.builder()
+                        .startTimestamp(5)
+                        .commitTimestamp(6)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_TWO))
+                        .build()));
+        assertThat(store.values().toJavaMap())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_TWO)));
+    }
+
+    @Test
+    public void valuesCannotBeModified() {
+        ValidationStore validationStore = InMemoryValidationStore.create(List.of());
+        validationStore.values().put(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_TWO));
+        assertThat(validationStore.values()).isEmpty();
+    }
+}u}(jt  (39182042109aa67130bcfe8f623f893918091d21j  oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitorTest.javaj  addedj  K=j  K j  K=j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X)  @@ -0,0 +1,61 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class WitnessToActionVisitorTest {
+
+    private static final String TABLE = "table";
+    private static final WorkloadCell WORKLOAD_CELL = ImmutableWorkloadCell.of(523, 2999);
+    private static final Integer VALUE = 912;
+
+    @Test
+    public void convertsReadsCorrectly() {
+        WitnessedReadTransactionAction witnessedRead =
+                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL, Optional.of(VALUE));
+        ReadTransactionAction read = WitnessToActionVisitor.INSTANCE.visit(witnessedRead);
+        assertThat(read.table()).isEqualTo(witnessedRead.table());
+        assertThat(read.cell()).isEqualTo(witnessedRead.cell());
+    }
+
+    @Test
+    public void convertsWritesCorrectly() {
+        WitnessedWriteTransactionAction witnessedWrite =
+                WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL, VALUE);
+        WriteTransactionAction write = WitnessToActionVisitor.INSTANCE.visit(witnessedWrite);
+        assertThat(write.table()).isEqualTo(witnessedWrite.table());
+        assertThat(write.cell()).isEqualTo(witnessedWrite.cell());
+        assertThat(write.value()).isEqualTo(witnessedWrite.value());
+    }
+
+    @Test
+    public void convertsDeletesCorrectly() {
+        WitnessedDeleteTransactionAction witnessedDelete = WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL);
+        DeleteTransactionAction delete = WitnessToActionVisitor.INSTANCE.visit(witnessedDelete);
+        assertThat(delete.table()).isEqualTo(witnessedDelete.table());
+        assertThat(delete.cell()).isEqualTo(witnessedDelete.cell());
+    }
+}u}(jt  (2b067a134a06d3e605fca8d36dacf3678a76ffcej  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj  addedj  Krj  K j  Krj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  Xr  @@ -0,0 +1,114 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.logsafe.Preconditions;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicLong;
+
+public final class WitnessedTransactionsBuilder {
+
+    private final List<WitnessedTransaction> witnessedTransactions = new ArrayList<>();
+
+    private final AtomicLong timestampCounter = new AtomicLong();
+    private final String table;
+
+    public WitnessedTransactionsBuilder(String table) {
+        this.table = table;
+    }
+
+    public WitnessedTransactionBuilder startTransaction() {
+        return new WitnessedTransactionBuilder(timestampCounter.incrementAndGet());
+    }
+
+    public List<WitnessedTransaction> build() {
+        return List.copyOf(witnessedTransactions);
+    }
+
+    public final class WitnessedTransactionBuilder {
+        private final List<WitnessedTransactionAction> actions = new ArrayList<>();
+
+        private boolean needsCommitTimestamp = false;
+
+        private final long startTimestamp;
+
+        public WitnessedTransactionBuilder(long startTimestamp) {
+            this.startTimestamp = startTimestamp;
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column, Optional<Integer> valueRead) {
+            actions.add(WitnessedReadTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), valueRead));
+            return this;
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column, Integer valueRead) {
+            return read(row, column, Optional.of(valueRead));
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column) {
+            return read(row, column, Optional.empty());
+        }
+
+        public WitnessedTransactionBuilder write(Integer row, Integer column, Integer value) {
+            actions.add(WitnessedWriteTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), value));
+            needsCommitTimestamp = true;
+            return this;
+        }
+
+        public WitnessedTransactionBuilder delete(Integer row, Integer column) {
+            actions.add(WitnessedDeleteTransactionAction.of(table, ImmutableWorkloadCell.of(row, column)));
+            needsCommitTimestamp = true;
+            return this;
+        }
+
+        public WitnessedTransactionsBuilder endTransaction() {
+            Optional<Long> commitTimestamp =
+                    needsCommitTimestamp ? Optional.of(timestampCounter.incrementAndGet()) : Optional.empty();
+            return endTransaction(commitTimestamp);
+        }
+
+        public WitnessedTransactionsBuilder endTransaction(Long commitTimestamp) {
+            return endTransaction(Optional.of(commitTimestamp));
+        }
+
+        public WitnessedTransactionsBuilder endTransaction(Optional<Long> commitTimestamp) {
+            if (needsCommitTimestamp) {
+                Preconditions.checkArgument(
+                        commitTimestamp.isPresent(),
+                        "Commit timestamp must be provided when the transaction has any writes or deletes.");
+                Preconditions.checkArgument(
+                        startTimestamp < commitTimestamp.get(),
+                        "Commit timestamp must be greater than the start timestamp.");
+            }
+            witnessedTransactions.add(FullyWitnessedTransaction.builder()
+                    .startTimestamp(startTimestamp)
+                    .actions(actions)
+                    .commitTimestamp(commitTimestamp)
+                    .build());
+            return WitnessedTransactionsBuilder.this;
+        }
+    }
+}u}(jt  (ad2234f0c3aa6c382c76189b72d5534773d719d6j  hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javaj  addedj  K>j  K j  K>j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X'  @@ -0,0 +1,62 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.keyvalue.api.Namespace;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import java.util.Map;
+
+public final class WorkloadTestHelpers {
+    public static final String TABLE_1 = "foo";
+
+    public static final String TABLE_2 = "bar";
+    public static final String TABLE_1_INDEX_1 = TABLE_1 + "_index";
+
+    public static final String TABLE_1_INDEX_2 = TABLE_1 + "_index_2";
+    public static final String TABLE_2_INDEX_1 = TABLE_2 + "_index";
+    public static final TableReference TABLE_REFERENCE = TableReference.create(Namespace.DEFAULT_NAMESPACE, TABLE_1);
+    public static final TableReference INDEX_REFERENCE =
+            TableReference.create(TABLE_REFERENCE.getNamespace(), TABLE_1_INDEX_1);
+
+    public static final Map<String, TableReference> NAMES_TO_REFERENCES_TABLE_1 = Map.of(
+            TABLE_1, TABLE_REFERENCE,
+            TABLE_1_INDEX_1, INDEX_REFERENCE);
+
+    public static final Map<TableReference, byte[]> TABLES_TO_ATLAS_METADATA = Map.of(
+            TABLE_REFERENCE,
+            AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
+            INDEX_REFERENCE,
+            AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE_INDEX));
+
+    public static final Namespace NAMESPACE = Namespace.create("workload");
+    public static final WorkloadCell WORKLOAD_CELL_ONE = ImmutableWorkloadCell.of(50, 10);
+    public static final WorkloadCell WORKLOAD_CELL_TWO = ImmutableWorkloadCell.of(1257, 521);
+    public static final WorkloadCell WORKLOAD_CELL_THREE =
+            ImmutableWorkloadCell.builder().key(567).column(405234).build();
+    public static final Integer VALUE_ONE = 541;
+    public static final Integer VALUE_TWO = 334;
+    public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_ONE =
+            TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_ONE);
+    public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
+            TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO);
+    public static final String WORKFLOW = "example-workflow";
+}u}(jt  (d495a71c18ca7b125092f092c371e0a4a455ad73j  atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitorTest.javaj  addedj  KAj  K j  KAj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javaj  X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X
  @@ -0,0 +1,65 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyLong;
+import static org.mockito.Mockito.verifyNoInteractions;
+import static org.mockito.Mockito.when;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class OnlyCommittedWitnessedTransactionVisitorTest {
+
+    private static final FullyWitnessedTransaction READ_ONLY_WITNESSED_TRANSACTION =
+            FullyWitnessedTransaction.builder().startTimestamp(100L).build();
+
+    private static final MaybeWitnessedTransaction MAYBE_WITNESSED_TRANSACTION = MaybeWitnessedTransaction.builder()
+            .startTimestamp(100L)
+            .commitTimestamp(101L)
+            .build();
+
+    @Mock
+    private ReadOnlyTransactionStore transactionStore;
+
+    @Test
+    public void fullyCommittedTransactionsAreNeverChecked() {
+        assertThat(READ_ONLY_WITNESSED_TRANSACTION.accept(
+                        new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(READ_ONLY_WITNESSED_TRANSACTION);
+        verifyNoInteractions(transactionStore);
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsEmptyWhenNotCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(false);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .isEmpty();
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsFullyWitnessedWhenCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(true);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(MAYBE_WITNESSED_TRANSACTION.toFullyWitnessed());
+    }
+}u}(jt  (c5349645dc81bf0c8bc33bc720961e281110a64fj  xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionsTest.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X  @@ -0,0 +1,131 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.List;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class WitnessedTransactionsTest {
+    @Mock
+    private ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    @Test
+    public void returnsUnderlyingWitnessedTransactions() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(twoToEight)))
+                .containsExactly(twoToEight);
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(readOnlyAtFive)))
+                .containsExactly(readOnlyAtFive);
+    }
+
+    @Test
+    public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
+                .containsExactly(fourToSix, threeToSeven, twoToEight);
+    }
+
+    @Test
+    public void sortsReadOnlyTransactionsByStartTimestamp() {
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
+                .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
+    }
+
+    @Test
+    public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        ImmutableList.of(
+                                twoToEight,
+                                readOnlyAtNine,
+                                fourToSix,
+                                readOnlyAtFive,
+                                readOnlyAtThree,
+                                readOnlyAtSeven)))
+                .containsExactly(
+                        readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
+    }
+
+    @Test
+    public void filterRemovesUncommittedTransactions() {
+        MaybeWitnessedTransaction committedMaybeWitnessedTransaction =
+                createMaybeWitnessedTransactionWithoutActions(1, 3, true);
+        MaybeWitnessedTransaction notCommittedTransaction = createMaybeWitnessedTransactionWithoutActions(2, 8, false);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        List.of(
+                                committedMaybeWitnessedTransaction,
+                                notCommittedTransaction,
+                                readOnlyAtFive,
+                                fourToSix)))
+                .containsExactly(committedMaybeWitnessedTransaction.toFullyWitnessed(), readOnlyAtFive, fourToSix);
+    }
+
+    private MaybeWitnessedTransaction createMaybeWitnessedTransactionWithoutActions(
+            long start, long commit, boolean committed) {
+        when(readOnlyTransactionStore.isCommitted(eq(start))).thenReturn(committed);
+        return MaybeWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+
+    private static FullyWitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
+        return FullyWitnessedTransaction.builder().startTimestamp(start).build();
+    }
+
+    private static FullyWitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+}u}(jt  (c09467b6d6f4e762d6c4c365ffa0ba54a464e80ej  ^atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/util/AtlasDbUtilsTest.javaj  addedj  K7j  K j  K7j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtilsTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtilsTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtilsTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  XF  @@ -0,0 +1,55 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.util;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.protobuf.InvalidProtocolBufferException;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import org.junit.Test;
+
+public class AtlasDbUtilsTest {
+    @Test
+    public void indexMetadataUsesTheCorrectConflictHandler() throws InvalidProtocolBufferException {
+        assertThat(TableMetadataPersistence.TableMetadata.parseFrom(
+                                AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE))
+                        .getConflictHandler())
+                .isEqualTo(TableMetadataPersistence.TableConflictHandler.SERIALIZABLE_INDEX);
+        assertThat(TableMetadataPersistence.TableMetadata.parseFrom(
+                                AtlasDbUtils.indexMetadata(ConflictHandler.RETRY_ON_WRITE_WRITE))
+                        .getConflictHandler())
+                .isEqualTo(TableMetadataPersistence.TableConflictHandler.IGNORE_ALL);
+        assertThat(TableMetadataPersistence.TableMetadata.parseFrom(
+                                AtlasDbUtils.indexMetadata(ConflictHandler.IGNORE_ALL))
+                        .getConflictHandler())
+                .isEqualTo(TableMetadataPersistence.TableConflictHandler.IGNORE_ALL);
+        assertThat(TableMetadataPersistence.TableMetadata.parseFrom(
+                                AtlasDbUtils.indexMetadata(ConflictHandler.RETRY_ON_VALUE_CHANGED))
+                        .getConflictHandler())
+                .isEqualTo(TableMetadataPersistence.TableConflictHandler.IGNORE_ALL);
+    }
+
+    @Test
+    public void toConflictHandlerHandlesAllIsolationLevelCases() {
+        assertThat(AtlasDbUtils.toConflictHandler(IsolationLevel.NONE)).isEqualTo(ConflictHandler.IGNORE_ALL);
+        assertThat(AtlasDbUtils.toConflictHandler(IsolationLevel.SNAPSHOT))
+                .isEqualTo(ConflictHandler.RETRY_ON_WRITE_WRITE);
+        assertThat(AtlasDbUtils.toConflictHandler(IsolationLevel.SERIALIZABLE)).isEqualTo(ConflictHandler.SERIALIZABLE);
+    }
+}u}(jt  (c661ec5533851b62afb963d1f472d967b8a67e83j  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunnerTest.javaj  addedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  Xc  @@ -0,0 +1,133 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.times;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.verifyNoInteractions;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.Future;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.jmock.lib.concurrent.DeterministicScheduler;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ConcurrentTransactionRunnerTest {
+    private static final int DEFAULT_TASK_MULTIPLICITY = 100;
+
+    private final KeyedTransactionTask<TransactionStore> task = mock(KeyedTransactionTask.class);
+    private final TransactionStore store = mock(TransactionStore.class);
+    private final DeterministicScheduler scheduler = new DeterministicScheduler();
+    private final ListeningExecutorService executorService = MoreExecutors.listeningDecorator(scheduler);
+    private final ConcurrentTransactionRunner<TransactionStore> runner =
+            new ConcurrentTransactionRunner<>(store, executorService);
+
+    @Before
+    public void setupTask() {
+        when(task.apply(any(), anyInt()))
+                .thenAnswer(invocation ->
+                        Optional.of(createWitnessedTransactionWithStartTimestamp(invocation.getArgument(1))));
+    }
+
+    @Test
+    public void throwsIfRunningTaskNegativeNumberOfTimes() {
+        assertThatThrownBy(() -> runner.runConcurrentTransactionTask(task, -1))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Tasks must be run a non-negative number of times");
+        verifyNoInteractions(task);
+    }
+
+    @Test
+    public void runsTaskAndAggregatesResults() {
+        Future<List<WitnessedTransaction>> witnessedTransactionsFuture =
+                runner.runConcurrentTransactionTask(task, DEFAULT_TASK_MULTIPLICITY);
+        assertThat(witnessedTransactionsFuture).isNotDone();
+        scheduler.runUntilIdle();
+        assertThat(witnessedTransactionsFuture).isDone();
+        List<WitnessedTransaction> witnessedTransactions = Futures.getUnchecked(witnessedTransactionsFuture);
+        assertThat(witnessedTransactions)
+                .containsExactlyElementsOf(IntStream.range(0, DEFAULT_TASK_MULTIPLICITY)
+                        .mapToObj(ConcurrentTransactionRunnerTest::createWitnessedTransactionWithStartTimestamp)
+                        .collect(Collectors.toList()));
+    }
+
+    @Test
+    public void resultFiltersOutTransactionsThatCouldNotBeWitnessed() {
+        Set<Integer> failingTasks = ImmutableSet.of(3, 7, 11, 27, 41);
+        failingTasks.forEach(
+                failingTask -> when(task.apply(any(), eq(failingTask))).thenReturn(Optional.empty()));
+
+        Future<List<WitnessedTransaction>> witnessedTransactionsFuture =
+                runner.runConcurrentTransactionTask(task, DEFAULT_TASK_MULTIPLICITY);
+        scheduler.runUntilIdle();
+        List<WitnessedTransaction> witnessedTransactions = Futures.getUnchecked(witnessedTransactionsFuture);
+        assertThat(witnessedTransactions)
+                .containsExactlyInAnyOrderElementsOf(IntStream.range(0, DEFAULT_TASK_MULTIPLICITY)
+                        .filter(index -> !failingTasks.contains(index))
+                        .mapToObj(ConcurrentTransactionRunnerTest::createWitnessedTransactionWithStartTimestamp)
+                        .collect(Collectors.toList()));
+    }
+
+    @Test
+    public void aggregatedResultWaitsForIndividuallySlowTransactions() {
+        Future<List<WitnessedTransaction>> witnessedTransactionsFuture =
+                runner.runConcurrentTransactionTask(task, DEFAULT_TASK_MULTIPLICITY);
+        for (int iteration = 0; iteration < DEFAULT_TASK_MULTIPLICITY; iteration++) {
+            assertThat(witnessedTransactionsFuture).isNotDone();
+            scheduler.runNextPendingCommand();
+        }
+        assertThat(witnessedTransactionsFuture).isDone();
+    }
+
+    @Test
+    public void storePassedThroughToIndividualTasks() {
+        when(task.apply(any(), anyInt())).thenAnswer(invocation -> {
+            TransactionStore transactionStore = invocation.getArgument(0);
+            transactionStore.readWrite(ImmutableList.of());
+            return Optional.of(createWitnessedTransactionWithStartTimestamp(invocation.getArgument(1)));
+        });
+        runner.runConcurrentTransactionTask(task, DEFAULT_TASK_MULTIPLICITY);
+        scheduler.runUntilIdle();
+        verify(store, times(DEFAULT_TASK_MULTIPLICITY)).readWrite(ImmutableList.of());
+    }
+
+    private static WitnessedTransaction createWitnessedTransactionWithStartTimestamp(int startTimestamp) {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(startTimestamp)
+                .build();
+    }
+}u}(jt  (84316bacac0bff7ed7e0091b3a88e14381eec0f0j  eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javaj  addedj  K<j  K j  K<j  https://github.com/palantir/atlasdb/blob/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj  https://github.com/palantir/atlasdb/raw/e043cf8c1f5862629a73cad01c0de05f3ecc4f38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=e043cf8c1f5862629a73cad01c0de05f3ecc4f38j  X
  @@ -0,0 +1,60 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.when;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.concurrent.ScheduledExecutorService;
+import org.junit.Test;
+
+public class DefaultWorkflowTest {
+    private final TransactionStore store = mock(TransactionStore.class);
+
+    private final KeyedTransactionTask<TransactionStore> transactionTask = mock(KeyedTransactionTask.class);
+
+    private final ScheduledExecutorService scheduler = PTExecutors.newSingleThreadScheduledExecutor();
+    private final ListeningExecutorService executionExecutor = MoreExecutors.listeningDecorator(scheduler);
+
+    private final DefaultWorkflow<TransactionStore> workflow =
+            DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
+
+    @Test
+    public void handlesExceptionsInUnderlyingTasks() {
+        RuntimeException transactionException = new RuntimeException("boo");
+        when(transactionTask.apply(eq(store), anyInt())).thenThrow(transactionException);
+        assertThatThrownBy(workflow::run)
+                .hasMessage("Error when running workflow task")
+                .hasCause(transactionException);
+    }
+
+    private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
+        return new WorkflowConfiguration() {
+            @Override
+            public int iterationCount() {
+                return iterationCount;
+            }
+        };
+    }
+}ueu(897ff593cf151c805f52a7e587593666b63e108f}(sha(897ff593cf151c805f52a7e587593666b63e108fnode_idEC_kwDOAjP5fdoAKDg5N2ZmNTkzY2YxNTFjODA1ZjUyYTdlNTg3NTkzNjY2YjYzZTEwOGYcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-19T14:18:20Zu	committer}(jN  Lucas MeirelesjP  meireles31@msn.comjR  2023-06-19T14:18:20Zumessagemove back to protectedtree}(jF  (fb8c7484fc53069a1301459ddaa0556d4710c9f7url`https://api.github.com/repos/palantir/atlasdb/git/trees/fb8c7484fc53069a1301459ddaa0556d4710c9f7uj^  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/897ff593cf151c805f52a7e587593666b63e108f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSQY6wACgkQJd22kJ7J
Giz7zAf/VpzeaQ5acKNyd//S168kugvNyMhUCnnjCbWJCJevnxCCZBSqv8C09sZX
6ysDXjCmm/62sm8hfobDjbAGQrkW2DE2w1fYMzwZbbqs8m7azorh2HhKMcAi1hbM
PRJi/FV3T0POfCkecKwJ8VuykdCgIvQjnLHl107Zzv3ixZZtPWh6JB5LkmShNqdz
1R5V1H/kCeFzUmRvy+Mt/jqZ+v+srkpQnmfSzW+raiXl7mltoqWN8o0JZwjtHPV3
Ddl8aUcT07kfucjHi7br2dZiG21ppKXMN1aZBlN8NTES4Wv1AV2smTKuD7t+JuCb
qrfDXBEIrUstWcwAkkdGsvU780nMlw==
=KtGG
-----END PGP SIGNATURE-----payloadtree fb8c7484fc53069a1301459ddaa0556d4710c9f7
parent a6c1d6ca86cc3e88e1e8ca3fc1a90048f3b2624c
author Lucas Meireles <meireles31@msn.com> 1687184300 +0100
committer Lucas Meireles <meireles31@msn.com> 1687184300 +0100

move back to protected
uuj^  ^https://api.github.com/repos/palantir/atlasdb/commits/897ff593cf151c805f52a7e587593666b63e108fhtml_urlShttps://github.com/palantir/atlasdb/commit/897ff593cf151c805f52a7e587593666b63e108fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/897ff593cf151c805f52a7e587593666b63e108f/commentsjL  }(loginLucasIMEidJg jH  MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j^  %https://api.github.com/users/LucasIMEjl  https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujT  }(jq  LucasIMEjs  Jg jH  MDQ6VXNlcjY3ODczMTE=ju  3https://avatars.githubusercontent.com/u/6787311?v=4jw  h5j^  %https://api.github.com/users/LucasIMEjl  https://github.com/LucasIMEjz  /https://api.github.com/users/LucasIME/followersj|  <https://api.github.com/users/LucasIME/following{/other_user}j~  5https://api.github.com/users/LucasIME/gists{/gist_id}j  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j  3https://api.github.com/users/LucasIME/subscriptionsj  *https://api.github.com/users/LucasIME/orgsj  +https://api.github.com/users/LucasIME/reposj  6https://api.github.com/users/LucasIME/events{/privacy}j  5https://api.github.com/users/LucasIME/received_eventsj  Userj  uparents]}(jF  (a6c1d6ca86cc3e88e1e8ca3fc1a90048f3b2624cj^  ^https://api.github.com/repos/palantir/atlasdb/commits/a6c1d6ca86cc3e88e1e8ca3fc1a90048f3b2624cjl  Shttps://github.com/palantir/atlasdb/commit/a6c1d6ca86cc3e88e1e8ca3fc1a90048f3b2624cuastats}(totalK	additionsK	deletionsKufiles]}(jF  (aee4560b5007342d777bb076c6630351e4618aa1filename[atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/TracingKeyValueService.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/897ff593cf151c805f52a7e587593666b63e108f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/897ff593cf151c805f52a7e587593666b63e108f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.java?ref=897ff593cf151c805f52a7e587593666b63e108fpatch@@ -86,7 +86,7 @@ public static KeyValueService create(KeyValueService keyValueService) {
     }
 
     @Override
-    public KeyValueService delegate() {
+    protected KeyValueService delegate() {
         return delegate;
     }
 uau(7ee8111c89bb97f20c929fd4ea3cb207496b2b85}(sha(7ee8111c89bb97f20c929fd4ea3cb207496b2b85node_idEC_kwDOAjP5fdoAKDdlZTgxMTFjODliYjk3ZjIwYzkyOWZkNGVhM2NiMjA3NDk2YjJiODUcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-05-23T10:23:06Zu	committer}(j  GitHubj  noreply@github.comj  2023-05-23T10:23:06ZumessagelUpdate atlasdb-commons/src/test/java/com/palantir/common/concurrent/CheckedRejectionExecutorServiceTest.javatree}(j  (719817fcb86eab580dfa2a31a40de9e33bcbd8ecurl`https://api.github.com/repos/palantir/atlasdb/git/trees/719817fcb86eab580dfa2a31a40de9e33bcbd8ecuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7ee8111c89bb97f20c929fd4ea3cb207496b2b85
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkbJQKCRBK7hj4Ov3rIwAAE5wIAIdA+BvTIggm7CpdF8ZwyeWQ
VgiEAaIb55v4OKnLZkfk5xv1KPfREuptqfXuXRb1OS5R/PNZRWiMRyTRTsxabfFC
0vGiqyPez0WLVAKloLDoOmOeOicllTCI/HoPzBK8vBEYsUqXaGlLIVmUf2lR2MGt
mVgIUq8XldIhrEWtwOGkeDNfPIt/BKupC3SYvlyF3YiwozgY3yJF7TY8gu8hgc2X
FHy2oNSzi4IcOaE1Ret9G1gWb0K0V5A/2ufxirjX3k5jYs6ksw+N7uGYSFZp/kMv
SSsycGqPB59oSIcnVaEWr3hUMynFUiPggLJy9azyY6qvqVt/3zwqm4UhO4+anzU=
=JHza
-----END PGP SIGNATURE-----
payloadXB  tree 719817fcb86eab580dfa2a31a40de9e33bcbd8ec
parent 4c892d1511bf54c283179aeb0f616ce936e4738d
author David Schlosnagle <davids@palantir.com> 1684837386 -0400
committer GitHub <noreply@github.com> 1684837386 -0400

Update atlasdb-commons/src/test/java/com/palantir/common/concurrent/CheckedRejectionExecutorServiceTest.javauuj  ^https://api.github.com/repos/palantir/atlasdb/commits/7ee8111c89bb97f20c929fd4ea3cb207496b2b85html_urlShttps://github.com/palantir/atlasdb/commit/7ee8111c89bb97f20c929fd4ea3cb207496b2b85comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7ee8111c89bb97f20c929fd4ea3cb207496b2b85/commentsj  }(loginschlosnaidMBj  MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j  %https://api.github.com/users/schlosnaj  https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h5j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j  (4c892d1511bf54c283179aeb0f616ce936e4738dj  ^https://api.github.com/repos/palantir/atlasdb/commits/4c892d1511bf54c283179aeb0f616ce936e4738dj  Shttps://github.com/palantir/atlasdb/commit/4c892d1511bf54c283179aeb0f616ce936e4738duastats}(totalK	additionsK	deletionsKufiles]}(j  (b30ab0de30f176dc0ed81877475350aa3c9bad4afilenameeatlasdb-commons/src/test/java/com/palantir/common/concurrent/CheckedRejectionExecutorServiceTest.javastatusmodifiedj  Kj   KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7ee8111c89bb97f20c929fd4ea3cb207496b2b85/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7ee8111c89bb97f20c929fd4ea3cb207496b2b85/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.java?ref=7ee8111c89bb97f20c929fd4ea3cb207496b2b85patchX  @@ -36,9 +36,9 @@
 import org.mockito.MockMakers;
 
 public class CheckedRejectionExecutorServiceTest {
-    private final Runnable DO_NOTHING = () -> {};
-    private final Callable<Integer> RETURN_ONE = () -> 1;
-    private final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION = new RejectedExecutionException("test");
+    private static final Runnable DO_NOTHING = () -> {};
+    private static final Callable<Integer> RETURN_ONE = () -> 1;
+    private static final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION = new RejectedExecutionException("test");
 
     private final ExecutorService delegate =
             mock(ExecutorService.class, withSettings().mockMaker(MockMakers.SUBCLASS));uau(1bd3be81c72338d8bc496cae6c6980f66b1dd638}(sha(1bd3be81c72338d8bc496cae6c6980f66b1dd638node_idEC_kwDOAjP5fdoAKDFiZDNiZTgxYzcyMzM4ZDhiYzQ5NmNhZTZjNjk4MGY2NmIxZGQ2Mzgcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-28T11:04:19Zu	committer}(j<  
Ahmed Alouanej>  aalouane@palantir.comj@  2023-04-28T11:04:19Zumessagetest2tree}(j4  (da21810e8120dfd3d1a08977b2436f2198a6a73curl`https://api.github.com/repos/palantir/atlasdb/git/trees/da21810e8120dfd3d1a08977b2436f2198a6a73cujL  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1bd3be81c72338d8bc496cae6c6980f66b1dd638
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRLqDMACgkQPlMHVIT1
yhohGAf+Pb7+4nTc62V/uu0ob3VTPZ54nsbZE67E7L8qvZNDMRcwDzXVwZhRIwI2
S/N0TvWSVEHkWcloEMnKxZFmAITbEu2ptxIVPAds3VpDrkmRUt7e7VKY4ow+ktrs
hWcGVfYaDVj+KNEQB6i/1W/zRexvg/irm8eQOX7KozgQV64R2G1qtG2Sq7K9gcY/
xy7EyLUgCcid7+JaFCCfX231N1nuGrc2bRJnh4tMMrPCyMPACQOmsGPA5RRfV9C5
g9y0iTnsFL3MjiyM040qG8zEVV9x+fs6ZhIGTWa8fORIfk5+KEOc7yItnfZWGalE
iicQLbllt7LkKaKhfNP89yLMb/OAlA==
=rZFO
-----END PGP SIGNATURE-----payloadtree da21810e8120dfd3d1a08977b2436f2198a6a73c
parent b1a9573ad4dce1787cfc6a573c9ff60c841528e9
author Ahmed Alouane <aalouane@palantir.com> 1682679859 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682679859 +0100

test2
uujL  ^https://api.github.com/repos/palantir/atlasdb/commits/1bd3be81c72338d8bc496cae6c6980f66b1dd638html_urlShttps://github.com/palantir/atlasdb/commit/1bd3be81c72338d8bc496cae6c6980f66b1dd638comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1bd3be81c72338d8bc496cae6c6980f66b1dd638/commentsj:  }(loginergo14idJj6  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jL  #https://api.github.com/users/ergo14jZ  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujB  }(j_  ergo14ja  Jj6  MDQ6VXNlcjMwOTAzNzM2jc  4https://avatars.githubusercontent.com/u/30903736?v=4je  h5jL  #https://api.github.com/users/ergo14jZ  https://github.com/ergo14jh  -https://api.github.com/users/ergo14/followersjj  :https://api.github.com/users/ergo14/following{/other_user}jl  3https://api.github.com/users/ergo14/gists{/gist_id}jn  :https://api.github.com/users/ergo14/starred{/owner}{/repo}jp  1https://api.github.com/users/ergo14/subscriptionsjr  (https://api.github.com/users/ergo14/orgsjt  )https://api.github.com/users/ergo14/reposjv  4https://api.github.com/users/ergo14/events{/privacy}jx  3https://api.github.com/users/ergo14/received_eventsjz  Userj|  uparents]}(j4  (b1a9573ad4dce1787cfc6a573c9ff60c841528e9jL  ^https://api.github.com/repos/palantir/atlasdb/commits/b1a9573ad4dce1787cfc6a573c9ff60c841528e9jZ  Shttps://github.com/palantir/atlasdb/commit/b1a9573ad4dce1787cfc6a573c9ff60c841528e9uastats}(totalK	additionsK	deletionsKufiles]}(j4  (b4868bf72c14c977dbf941e973787edc154dbc92filename%scripts/circle-ci/run-circle-tests.shstatusmodifiedj  Kj  KchangesKblob_url{https://github.com/palantir/atlasdb/blob/1bd3be81c72338d8bc496cae6c6980f66b1dd638/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/1bd3be81c72338d8bc496cae6c6980f66b1dd638/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=1bd3be81c72338d8bc496cae6c6980f66b1dd638patch@@ -54,7 +54,7 @@ echo "start"
 printenv CIRCLE_TAG
 printenv CIRCLE_BRANCH
 echo $CIRCLE_TAG
-echo $cIRCLE_BRANCH
+echo $CIRCLE_BRANCH
 echo "end"
 
 # Short circuit the build if it's docs onlyuau(6cdbdcc7604c560b8773e4e1e5aa673e5c085ae3}(sha(6cdbdcc7604c560b8773e4e1e5aa673e5c085ae3node_idEC_kwDOAjP5fdoAKDZjZGJkY2M3NjA0YzU2MGI4NzczZTRlMWU1YWE2NzNlNWMwODVhZTMcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-18T20:00:23Zu	committer}(j  	Tom Papkej  tpapke@palantir.comj  2023-07-18T20:00:23ZumessageMake list immutabletree}(j  (86451a8aa80b21230c2d252c7a35d9245cd815fdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/86451a8aa80b21230c2d252c7a35d9245cd815fduj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6cdbdcc7604c560b8773e4e1e5aa673e5c085ae3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS271cACgkQmF9s0kaF
Iw3tygf/fqDXlRbb8aa9YoMmfhDtHqvGbnBNersBm6to7mQRLa0Xb/7rrLRT3W2s
to2qNZW4N51TRdVl7wv+pG6jDx7iSETXZ+mGWZawu5u7tbMnxHNxZDGAEQv9w/2j
fCX2hqxKN+rIvCRrvZ+Wmf/RvFNEGkx0Tkq46kF4v8O9YgbAXaR9SzDw3TTFFy2C
8RsA3L14ehDG20XajzpDnO7VPdq3pvFn2MBwsC11JxOfw4zYe3jXq829XCfAAdem
q5lxon6xP3Gp+AG1XNsLIsU9Fx7ZmcatM/S1iDkVK/ppfa8xV6QtU+CNYie9VjkC
18vurTmu4PLZHyzweIyDhl9VBFrNog==
=bAhG
-----END PGP SIGNATURE-----payloadtree 86451a8aa80b21230c2d252c7a35d9245cd815fd
parent 7b67b7d7f4dae52490818afcd812f93dcc4c5c87
author Tom Papke <tpapke@palantir.com> 1689710423 +0100
committer Tom Papke <tpapke@palantir.com> 1689710423 +0100

Make list immutable
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/6cdbdcc7604c560b8773e4e1e5aa673e5c085ae3html_urlShttps://github.com/palantir/atlasdb/commit/6cdbdcc7604c560b8773e4e1e5aa673e5c085ae3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6cdbdcc7604c560b8773e4e1e5aa673e5c085ae3/commentsj  }(login	ToemmscheidJboj  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj  }(j  	Toemmschej  Jboj  MDQ6VXNlcjQzNjc1NDkwj  4https://avatars.githubusercontent.com/u/43675490?v=4j  h5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmschej  0https://api.github.com/users/Toemmsche/followersj  =https://api.github.com/users/Toemmsche/following{/other_user}j  6https://api.github.com/users/Toemmsche/gists{/gist_id}j  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j  4https://api.github.com/users/Toemmsche/subscriptionsj  +https://api.github.com/users/Toemmsche/orgsj  ,https://api.github.com/users/Toemmsche/reposj  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj  Userj  uparents]}(j  (7b67b7d7f4dae52490818afcd812f93dcc4c5c87j  ^https://api.github.com/repos/palantir/atlasdb/commits/7b67b7d7f4dae52490818afcd812f93dcc4c5c87j  Shttps://github.com/palantir/atlasdb/commit/7b67b7d7f4dae52490818afcd812f93dcc4c5c87uastats}(totalK	additionsK	deletionsKufiles]}(j  (3eeb911c6be29e464ef2889487b5bdc76221dde6filenameVtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/ConjureTimelockResource.javastatusmodifiedj
 Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/6cdbdcc7604c560b8773e4e1e5aa673e5c085ae3/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FConjureTimelockResource.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6cdbdcc7604c560b8773e4e1e5aa673e5c085ae3/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FConjureTimelockResource.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FConjureTimelockResource.java?ref=6cdbdcc7604c560b8773e4e1e5aa673e5c085ae3patchX  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.timelock;
 
 import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Sets;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
@@ -196,11 +197,11 @@ public ListenableFuture<ConjureWaitForLocksResponse> waitForLocks(
     }
 
     private static List<LockDescriptor> fromConjureLockDescriptors(List<ConjureLockDescriptor> lockDescriptors) {
-        List<LockDescriptor> descriptors = new ArrayList<>(lockDescriptors.size());
+        ImmutableList.Builder<LockDescriptor> descriptors = ImmutableList.builder();
         for (ConjureLockDescriptor descriptor : lockDescriptors) {
             descriptors.add(ByteArrayLockDescriptor.of(descriptor.get().asNewByteArray()));
         }
-        return descriptors;
+        return descriptors.build();
     }
 
     @Overrideuau;      (eb4df921cd0a8f1948d2ffc715d1818afa220873}(sha(eb4df921cd0a8f1948d2ffc715d1818afa220873node_idEC_kwDOAjP5fdoAKGViNGRmOTIxY2QwYThmMTk0OGQyZmZjNzE1ZDE4MThhZmEyMjA4NzMcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-07-25T18:58:55Zu	committer}(j* svc-excavator-botj, svc-excavator-bot@palantir.comj. 2023-07-25T18:58:55ZumessageExcavator:  Format Java filestree}(j" (d217b5075d2427ddb6ab8419ede87e06310e1d07url`https://api.github.com/repos/palantir/atlasdb/git/trees/d217b5075d2427ddb6ab8419ede87e06310e1d07uj: bhttps://api.github.com/repos/palantir/atlasdb/git/commits/eb4df921cd0a8f1948d2ffc715d1818afa220873
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmTAG28JEMmvEkpISILgAABNfwD/aQWZOvaa+gnWdnE33d08ia9t
beYDSLaQmuLBLARZo7wBAO5IvM/D93Ms4RO7S0RN/IwgaqCcC40yuPB1c3HPwsCg
=qt5z
-----END PGP SIGNATURE-----
payloadX  tree d217b5075d2427ddb6ab8419ede87e06310e1d07
parent 2d3302e04df9f15bf77f64cd5155fa3aa1d3e0ef
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1690311535 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1690311535 +0000

Excavator:  Format Java filesuuj: ^https://api.github.com/repos/palantir/atlasdb/commits/eb4df921cd0a8f1948d2ffc715d1818afa220873html_urlShttps://github.com/palantir/atlasdb/commit/eb4df921cd0a8f1948d2ffc715d1818afa220873comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/eb4df921cd0a8f1948d2ffc715d1818afa220873/commentsj( }(loginsvc-excavator-botidJj$ MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j: .https://api.github.com/users/svc-excavator-botjH $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj0 }(jM svc-excavator-botjO Jj$ MDQ6VXNlcjMzMjY2MzY4jQ 4https://avatars.githubusercontent.com/u/33266368?v=4jS h5j: .https://api.github.com/users/svc-excavator-botjH $https://github.com/svc-excavator-botjV 8https://api.github.com/users/svc-excavator-bot/followersjX Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}jZ >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}j\ Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}j^ <https://api.github.com/users/svc-excavator-bot/subscriptionsj` 3https://api.github.com/users/svc-excavator-bot/orgsjb 4https://api.github.com/users/svc-excavator-bot/reposjd ?https://api.github.com/users/svc-excavator-bot/events{/privacy}jf >https://api.github.com/users/svc-excavator-bot/received_eventsjh Userjj uparents]}(j" (2d3302e04df9f15bf77f64cd5155fa3aa1d3e0efj: ^https://api.github.com/repos/palantir/atlasdb/commits/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0efjH Shttps://github.com/palantir/atlasdb/commit/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0efuastats}(totalK	additionsK	deletionsKufiles]}(j" (f5acd046834792f42b2401b67305dfa6f3509572filenamebuild.gradlestatusmodifiedj Kj KchangesKblob_url^https://github.com/palantir/atlasdb/blob/eb4df921cd0a8f1948d2ffc715d1818afa220873/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/eb4df921cd0a8f1948d2ffc715d1818afa220873/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=eb4df921cd0a8f1948d2ffc715d1818afa220873patchXw  @@ -17,7 +17,7 @@ buildscript {
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.33.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.34.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.22.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
         classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.4'uau(3bdc23fe349e4ceb2c708b9ca15686869a8dc673}(sha(3bdc23fe349e4ceb2c708b9ca15686869a8dc673node_idEC_kwDOAjP5fdoAKDNiZGMyM2ZlMzQ5ZTRjZWIyYzcwOGI5Y2ExNTY4Njg2OWE4ZGM2NzMcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-06-30T11:56:51Zu	committer}(j GitHubj noreply@github.comj 2023-06-30T11:56:51ZumessageUpdate atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIteratorTest.java

Co-authored-by: Tom Papke <43675490+Toemmsche@users.noreply.github.com>tree}(j (79e64a773283f3a59e62b4f373082227eccde172url`https://api.github.com/repos/palantir/atlasdb/git/trees/79e64a773283f3a59e62b4f373082227eccde172uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3bdc23fe349e4ceb2c708b9ca15686869a8dc673
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJknsMECRBK7hj4Ov3rIwAA5Y8IAGAVBZc6I6iWy923zDpSTwaa
OyMWdjwKmzq3ZkpB4pkyUyHa2dudXmpC60Y9vyuXDbIaVBNXVNosrtj7FU5d15Ji
UvipK3V3QLM4kKHAj1drnmgFnjEduB17x4S+nEJmLHqSyo+GQHrUQSalWYMRIUY2
sZ2X7tmJOBV/yk92vbnbTB9HNWqdxOtGoO1DM7sCm4bSkEa5PI7ZPeYvNsIXdeUh
E1FBaQy/XWffQmkBCNFr5O/lasoTJVseC6SKhSs+t6+1ywlSppzSdMx4wKDi3wN0
bfZDq6kyU2799gYHiGMB7pNZFLGJkyDURW53QZMKbfSCLDG0L3d7S9PmNsa5itw=
=BzHE
-----END PGP SIGNATURE-----
payloadX  tree 79e64a773283f3a59e62b4f373082227eccde172
parent db7d83866bf92a75903e66128085bb45c8ce6fb8
author Sam-Kramer <sam.c.kramer@gmail.com> 1688126211 +0100
committer GitHub <noreply@github.com> 1688126211 +0100

Update atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIteratorTest.java

Co-authored-by: Tom Papke <43675490+Toemmsche@users.noreply.github.com>uuj ^https://api.github.com/repos/palantir/atlasdb/commits/3bdc23fe349e4ceb2c708b9ca15686869a8dc673html_urlShttps://github.com/palantir/atlasdb/commit/3bdc23fe349e4ceb2c708b9ca15686869a8dc673comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3bdc23fe349e4ceb2c708b9ca15686869a8dc673/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j (db7d83866bf92a75903e66128085bb45c8ce6fb8j ^https://api.github.com/repos/palantir/atlasdb/commits/db7d83866bf92a75903e66128085bb45c8ce6fb8j Shttps://github.com/palantir/atlasdb/commit/db7d83866bf92a75903e66128085bb45c8ce6fb8uastats}(totalK	additionsK	deletionsKufiles]}(j (f5e746125d8c46d56eef603e8b84f659f5f0521cfilenamelatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIteratorTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/3bdc23fe349e4ceb2c708b9ca15686869a8dc673/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIteratorTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/3bdc23fe349e4ceb2c708b9ca15686869a8dc673/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIteratorTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIteratorTest.java?ref=3bdc23fe349e4ceb2c708b9ca15686869a8dc673patchX  @@ -45,7 +45,7 @@ public void getBestBatchSizeNeverLargerThanMax() {
                 new TestBatchProvider(1000),
                 originalBatchSize,
                 ClosableIterators.wrap(List.of(0).iterator()));
-        // This will make the batch size increasing iterator that it is only getting deleted values, which will
+        // This will make the batch size increasing iterator think that it is only getting deleted values, which will
         // result in an increase by BatchSizeIncreasingIterator.INCREASE_FACTOR.
         iterator.markNumResultsNotDeleted(0);
         IntStream.range(0, BatchSizeIncreasingIterator.MAX_FACTOR / BatchSizeIncreasingIterator.INCREASE_FACTOR + 1)uau(a4a8cec2f7589e93db1a2e28bc8c2037888e07c5}(sha(a4a8cec2f7589e93db1a2e28bc8c2037888e07c5node_idEC_kwDOAjP5fdoAKGE0YThjZWMyZjc1ODllOTNkYjFhMmUyOGJjOGMyMDM3ODg4ZTA3YzUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-09T09:15:50Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-06-09T09:15:50Zumessageready getset gotree}(j (ca3610b08a3349e6521ba23bcbf3c22554ff0f0eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/ca3610b08a3349e6521ba23bcbf3c22554ff0f0euj( bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a4a8cec2f7589e93db1a2e28bc8c2037888e07c5
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSC7cYACgkQTLdFKain
zjzKaAf+Kb6ZUZhKG/Scq1lkgnhmnieHkFC35DOK0wazhNWj6sqV8W5exFaabICV
AH2WBNREuNBbv5R0/6TPPN5zHjEZkYeKgV+3NeMtrANoQg1vvByEuULeZxYS8RFG
lmueGMgaMbsm0fbXzan12CMVMY7PiitztuVqEenZMTHzWV77T067zbNKROj3mTVp
5pMnLJxlM/ByUUah8hINr8Z8AOziclPcSzNxYmXMvvhxrYi9DTAn5afCkxkHFD+9
Rw6a9tCkKumJ9VjyzDH2gISrP9+81yuk73VHFhY2vUsONU3862+EcTzI/3s5Kpsj
r2GuB2v0NH36kJwRZw4ueHqdGgW9BA==
=AZTD
-----END PGP SIGNATURE-----payloadtree ca3610b08a3349e6521ba23bcbf3c22554ff0f0e
parent 6950c33af9234a0957552c9554e01b49a5567fed
author Jeremy Kong <jkong@palantir.com> 1686302150 +0100
committer Jeremy Kong <jkong@palantir.com> 1686302150 +0100

ready getset go
uuj( ^https://api.github.com/repos/palantir/atlasdb/commits/a4a8cec2f7589e93db1a2e28bc8c2037888e07c5html_urlShttps://github.com/palantir/atlasdb/commit/a4a8cec2f7589e93db1a2e28bc8c2037888e07c5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a4a8cec2f7589e93db1a2e28bc8c2037888e07c5/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j( 'https://api.github.com/users/jeremyk-91j6 https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j; 
jeremyk-91j= JZ j MDQ6VXNlcjU5NTU1MTA=j? 3https://avatars.githubusercontent.com/u/5955510?v=4jA h5j( 'https://api.github.com/users/jeremyk-91j6 https://github.com/jeremyk-91jD 1https://api.github.com/users/jeremyk-91/followersjF >https://api.github.com/users/jeremyk-91/following{/other_user}jH 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jJ >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jL 5https://api.github.com/users/jeremyk-91/subscriptionsjN ,https://api.github.com/users/jeremyk-91/orgsjP -https://api.github.com/users/jeremyk-91/reposjR 8https://api.github.com/users/jeremyk-91/events{/privacy}jT 7https://api.github.com/users/jeremyk-91/received_eventsjV UserjX uparents]}(j (6950c33af9234a0957552c9554e01b49a5567fedj( ^https://api.github.com/repos/palantir/atlasdb/commits/6950c33af9234a0957552c9554e01b49a5567fedj6 Shttps://github.com/palantir/atlasdb/commit/6950c33af9234a0957552c9554e01b49a5567feduastats}(totalK	additionsK	deletionsKufiles]}(j (3c9ec7f05080577d6e20a9f5ccd4f3d4d429023bfilenamexatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javastatusmodifiedjr Kjs KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/a4a8cec2f7589e93db1a2e28bc8c2037888e07c5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a4a8cec2f7589e93db1a2e28bc8c2037888e07c5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=a4a8cec2f7589e93db1a2e28bc8c2037888e07c5patchX  @@ -45,7 +45,7 @@
 public class SingleBusyCellReadNoTouchWorkflowsTest {
     private static final String TABLE_NAME = "busy.readnotouch.cell";
     private static final int ITERATION_COUNT = 1_000;
-    private static final SingleBusyCellReadNoTouchWorkflowConfiguration CONFIGURATION = ImSin.builder()
+    private static final SingleBusyCellReadNoTouchWorkflowConfiguration CONFIGURATION = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.builder()
             .tableConfiguration(ImmutableTableConfiguration.builder()
                     .tableName(TABLE_NAME)
                     .isolationLevel(IsolationLevel.SERIALIZABLE)uau(fed3dbf1a2f204e28c77ff88a97a33d8b9eaf2e2}(sha(fed3dbf1a2f204e28c77ff88a97a33d8b9eaf2e2node_idEC_kwDOAjP5fdoAKGZlZDNkYmYxYTJmMjA0ZTI4Yzc3ZmY4OGE5N2EzM2Q4YjllYWYyZTIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-18T14:41:25Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-05-18T14:41:25Zumessagechange defaultstree}(j (9a6b1e147ac9b7927fe45849f8e880afd8d156d5url`https://api.github.com/repos/palantir/atlasdb/git/trees/9a6b1e147ac9b7927fe45849f8e880afd8d156d5uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fed3dbf1a2f204e28c77ff88a97a33d8b9eaf2e2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRmORUACgkQmPPOpKR4
XS3NWAgAkCT6DWQoJj7bnWsUZ7ExOmdI49r3OP4ho/TpNs9WS3PZqEKatcjzxaXh
GD89rdGkxhT7KFu8d8qmKc06rEqFK2KXuS18LUPPyXo+Uy93USC/tDFzZ8BD+tES
bxU75loaWwpM2BhuKemP/g8Qzw46XFvVm98eExd1spB/XuvmGXClhMp+HAfVsR9w
52D5NGNQbklp68/D/RsuskEf1F7UgVHwaBzHBfKofxT/fNx9Jmvel7ffX5KhrxPA
ZcyNnbAZO1DlbW4ykaueCk4I1a7fp05ifwe+MQXCwQTahhrS8AQKruzQh6mforp1
q2gMsBKWjCv8McI+qIo4OD8mqvtklg==
=GdQK
-----END PGP SIGNATURE-----payloadtree 9a6b1e147ac9b7927fe45849f8e880afd8d156d5
parent 04c86b1a6b40ebe2df1f608633fc7c13ca0913ef
author Sam Kramer <skramer@palantir.com> 1684420885 +0100
committer Sam Kramer <skramer@palantir.com> 1684420885 +0100

change defaults
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/fed3dbf1a2f204e28c77ff88a97a33d8b9eaf2e2html_urlShttps://github.com/palantir/atlasdb/commit/fed3dbf1a2f204e28c77ff88a97a33d8b9eaf2e2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fed3dbf1a2f204e28c77ff88a97a33d8b9eaf2e2/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (04c86b1a6b40ebe2df1f608633fc7c13ca0913efj ^https://api.github.com/repos/palantir/atlasdb/commits/04c86b1a6b40ebe2df1f608633fc7c13ca0913efj Shttps://github.com/palantir/atlasdb/commit/04c86b1a6b40ebe2df1f608633fc7c13ca0913efuastats}(totalK	additionsK	deletionsKufiles](}(j (58de979ef6729009e31e1f6cca6d03970cc101b3filenamematlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/fed3dbf1a2f204e28c77ff88a97a33d8b9eaf2e2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/fed3dbf1a2f204e28c77ff88a97a33d8b9eaf2e2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=fed3dbf1a2f204e28c77ff88a97a33d8b9eaf2e2patchX  @@ -44,7 +44,7 @@
 public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory<InteractiveTransactionStore> {
 
     // Purposefully override the lock refresh interval to increase our chances of losing locks.
-    private static final int LOCK_REFRESH_INTERVAL_MS = 100;
+    private static final int LOCK_REFRESH_INTERVAL_MS = 200;
 
     private final TransactionManager transactionManager;
     private final Optional<Namespace> maybeNamespace;u}(j (f5eafd4efa22db15cffb486b29e1a8e16e9cfbc4j Nlock-api/src/main/java/com/palantir/lock/client/UnreliableTimeLockService.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/fed3dbf1a2f204e28c77ff88a97a33d8b9eaf2e2/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javaj https://github.com/palantir/atlasdb/raw/fed3dbf1a2f204e28c77ff88a97a33d8b9eaf2e2/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.java?ref=fed3dbf1a2f204e28c77ff88a97a33d8b9eaf2e2j X!  @@ -120,7 +120,7 @@ public WaitForLocksResponse waitForLocks(WaitForLocksRequest request) {
     @Override
     public Set<LockToken> refreshLockLeases(Set<LockToken> tokens) {
         Set<LockToken> tokensToRefresh = tokens.stream()
-                .filter(_token -> !buggify.maybe(0.025).asBoolean())
+                .filter(_token -> !buggify.maybe(0.01).asBoolean())
                 .collect(Collectors.toSet());
         Set<LockToken> tokensToUnlock = Sets.difference(tokens, tokensToRefresh);
         if (!tokensToUnlock.isEmpty()) {ueu(537cf00ab5c7d8724f5f3468e33c1689b6506b37}(sha(537cf00ab5c7d8724f5f3468e33c1689b6506b37node_idEC_kwDOAjP5fdoAKDUzN2NmMDBhYjVjN2Q4NzI0ZjVmMzQ2OGUzM2MxNjg5YjY1MDZiMzccommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-29T15:55:32Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-06-29T16:14:09Zumessage"Add extended compatibility testingtree}(j (a112120f8c32b90f5d5a219f0fb96d2e1ba917ceurl`https://api.github.com/repos/palantir/atlasdb/git/trees/a112120f8c32b90f5d5a219f0fb96d2e1ba917ceuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/537cf00ab5c7d8724f5f3468e33c1689b6506b37
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSdrdEACgkQmF9s0kaF
Iw3ziggAt5go/lA4AeAlfpoNiXvv2eRcc3aVxTixY8fEZtB1AYWiSiYNZvvOnV6J
hcZVkx3q1kIGoS55Y1EFy/PT/SpBZC8yJ0WimVzJoQN3ztR8F8kIKpHKj2SE7NWo
Xhsn0cYskDv8jaFW9C93J7t+lXig4D3onQywhqFvCqm+LdJCh6hBSf394GldIe+3
WYnZMLiJU+DAcOSLVY7IBtV20tfaJoQXKxmSjM+zMhmzdLOY5qpa6hCGI+aKBlK/
audUG+z76XtVM6sRHkUtyQsVyjCfP3lBlkJUGA9GoDUxI7EeGWmaOOlBZjjd+dmb
nhsZYtG2ILAbI0ma6eQOGIGRdK5ZtQ==
=6m3F
-----END PGP SIGNATURE-----payloadtree a112120f8c32b90f5d5a219f0fb96d2e1ba917ce
parent 0bd149eff96db83774604084d5f0ef5e8dc0d07d
author Tom Papke <tpapke@palantir.com> 1688054132 +0100
committer Tom Papke <tpapke@palantir.com> 1688055249 +0100

Add extended compatibility testing
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/537cf00ab5c7d8724f5f3468e33c1689b6506b37html_urlShttps://github.com/palantir/atlasdb/commit/537cf00ab5c7d8724f5f3468e33c1689b6506b37comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/537cf00ab5c7d8724f5f3468e33c1689b6506b37/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej, https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j1 	Toemmschej3 Jboj MDQ6VXNlcjQzNjc1NDkwj5 4https://avatars.githubusercontent.com/u/43675490?v=4j7 h5j &https://api.github.com/users/Toemmschej, https://github.com/Toemmschej: 0https://api.github.com/users/Toemmsche/followersj< =https://api.github.com/users/Toemmsche/following{/other_user}j> 6https://api.github.com/users/Toemmsche/gists{/gist_id}j@ =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jB 4https://api.github.com/users/Toemmsche/subscriptionsjD +https://api.github.com/users/Toemmsche/orgsjF ,https://api.github.com/users/Toemmsche/reposjH 7https://api.github.com/users/Toemmsche/events{/privacy}jJ 6https://api.github.com/users/Toemmsche/received_eventsjL UserjN uparents]}(j (0bd149eff96db83774604084d5f0ef5e8dc0d07dj ^https://api.github.com/repos/palantir/atlasdb/commits/0bd149eff96db83774604084d5f0ef5e8dc0d07dj, Shttps://github.com/palantir/atlasdb/commit/0bd149eff96db83774604084d5f0ef5e8dc0d07duastats}(totalK^	additionsK\	deletionsKufiles](}(j (689da2f7264afbb03bb06b6a430723bd1dcbbf4bfilenamelock-api-objects/build.gradlestatusmodifiedjh Kji K changesKblob_urlqhttps://github.com/palantir/atlasdb/blob/537cf00ab5c7d8724f5f3468e33c1689b6506b37/lock-api-objects%2Fbuild.gradleraw_urlphttps://github.com/palantir/atlasdb/raw/537cf00ab5c7d8724f5f3468e33c1689b6506b37/lock-api-objects%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fbuild.gradle?ref=537cf00ab5c7d8724f5f3468e33c1689b6506b37patchX_  @@ -16,6 +16,7 @@ dependencies {
     implementation 'com.google.errorprone:error_prone_annotations'
     implementation 'com.google.guava:guava'
     implementation project(':commons-annotations')
+    testImplementation project(path: ':lock-api')
 
     annotationProcessor 'org.immutables:value'
     compileOnly 'org.immutables:value::annotations'u}(j (baa29a11aad2762f424acb1d510175b8849ecba2jn Olock-api-objects/src/main/java/com/palantir/lock/watch/LockRequestMetadata.javajp modifiedjh Kji K jr Kjs https://github.com/palantir/atlasdb/blob/537cf00ab5c7d8724f5f3468e33c1689b6506b37/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaju https://github.com/palantir/atlasdb/raw/537cf00ab5c7d8724f5f3468e33c1689b6506b37/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javajw https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.java?ref=537cf00ab5c7d8724f5f3468e33c1689b6506b37jy X  @@ -30,4 +30,10 @@
 @Value.Immutable
 public interface LockRequestMetadata {
     Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata();
+
+    static LockRequestMetadata of(Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata) {
+        return ImmutableLockRequestMetadata.builder()
+                .lockDescriptorToChangeMetadata(lockDescriptorToChangeMetadata)
+                .build();
+    }
 }u}(j (b97b4da6e659f0ef91273940123b1ea69979dabdjn Nlock-api/src/test/java/com/palantir/lock/client/IdentifiedLockRequestTest.javajp modifiedjh KKji Kjr KMjs https://github.com/palantir/atlasdb/blob/537cf00ab5c7d8724f5f3468e33c1689b6506b37/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaju https://github.com/palantir/atlasdb/raw/537cf00ab5c7d8724f5f3468e33c1689b6506b37/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javajw https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.java?ref=537cf00ab5c7d8724f5f3468e33c1689b6506b37jy X  @@ -19,24 +19,97 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
 import com.fasterxml.jackson.datatype.guava.GuavaModule;
 import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockRequestMetadata;
+import java.nio.charset.StandardCharsets;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.UUID;
 import org.junit.Test;
 
 public class IdentifiedLockRequestTest {
+    private static final String BASE = "src/test/resources/identified-lock-request-wire-format/";
+    private static final Mode MODE = Mode.CI;
+    private static final IdentifiedLockRequest BASELINE_REQUEST = ImmutableIdentifiedLockRequest.builder()
+            .requestId(new UUID(1337, 42))
+            .lockDescriptors(ImmutableSet.of(StringLockDescriptor.of("lock1"), StringLockDescriptor.of("lock2")))
+            .acquireTimeoutMs(100)
+            .clientDescription("client: test, thread: test")
+            .build();
+    private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(ImmutableMap.of(
+            StringLockDescriptor.of("lock1"), ChangeMetadata.created("something".getBytes(StandardCharsets.UTF_8))));
     private static final String SERIALIZED_LOCK_REQUEST = "{"
             + "\"requestId\":\"885afd9c-de62-44ff-a517-5db14b71bfaa\","
             + "\"lockDescriptors\":[{\"bytes\":\"Zm9v\"}],"
             + "\"acquireTimeoutMs\":123,"
             + "\"clientDescription\":\"Thread: main\"}";
+    private static final ObjectMapper mapper = new ObjectMapper()
+            .enable(SerializationFeature.INDENT_OUTPUT)
+            .registerModule(new Jdk8Module())
+            .registerModule(new GuavaModule());
 
-    private static final ObjectMapper mapper =
-            new ObjectMapper().registerModule(new Jdk8Module()).registerModule(new GuavaModule());
+    private enum Mode {
+        DEV,
+        CI;
+
+        boolean isDev() {
+            return this.equals(Mode.DEV);
+        }
+    }
 
     @Test
     public void ensureSerdeBackcompat() throws Exception {
         IdentifiedLockRequest request = mapper.readValue(SERIALIZED_LOCK_REQUEST, IdentifiedLockRequest.class);
         String deserialized = mapper.writeValueAsString(request);
         assertThat(mapper.readTree(deserialized)).isEqualTo(mapper.readTree(SERIALIZED_LOCK_REQUEST));
     }
+
+    @Test
+    public void baselineRequestIsFullCompat() {
+        assertSerializedEquals(BASELINE_REQUEST, "baseline");
+        assertDeserializedEquals("baseline", BASELINE_REQUEST);
+    }
+
+    @Test
+    public void baselineRequestWithMetadataIsBackCompat() {
+        assertSerializedEquals(
+                ImmutableIdentifiedLockRequest.copyOf(BASELINE_REQUEST).withMetadata(LOCK_REQUEST_METADATA),
+                "baseline");
+    }
+
+    private void assertSerializedEquals(IdentifiedLockRequest request, String jsonFileName) {
+        try {
+            Path path = getJsonPath(jsonFileName);
+            if (MODE.isDev()) {
+                mapper.writeValue(path.toFile(), request);
+            }
+            String deserialized = mapper.writeValueAsString(request);
+            assertThat(mapper.readTree(deserialized))
+                    .as("Serialization yields identical JSON representation")
+                    .isEqualTo(mapper.readTree(Files.readString(path)));
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private void assertDeserializedEquals(String jsonFileName, IdentifiedLockRequest request) {
+        try {
+            assertThat(mapper.readValue(Files.readString(getJsonPath(jsonFileName)), IdentifiedLockRequest.class))
+                    .as("Deserialization yields equal Java representation")
+                    .isEqualTo(request);
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private Path getJsonPath(String jsonFileName) {
+        return Paths.get(BASE + jsonFileName + ".json");
+    }
 }u}(j (88f329985fc4d91067bebcd353b56f20d58b75bejn Mlock-api/src/test/resources/identified-lock-request-wire-format/baseline.jsonjp addedjh K
ji K jr K
js https://github.com/palantir/atlasdb/blob/537cf00ab5c7d8724f5f3468e33c1689b6506b37/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.jsonju https://github.com/palantir/atlasdb/raw/537cf00ab5c7d8724f5f3468e33c1689b6506b37/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.jsonjw https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.json?ref=537cf00ab5c7d8724f5f3468e33c1689b6506b37jy X  @@ -0,0 +1,10 @@
+{
+  "requestId" : "00000000-0000-0539-0000-00000000002a",
+  "lockDescriptors" : [ {
+    "bytes" : "bG9jazE="
+  }, {
+    "bytes" : "bG9jazI="
+  } ],
+  "acquireTimeoutMs" : 100,
+  "clientDescription" : "client: test, thread: test"
+}
\ No newline at end of fileueu(e3982d1b26db4de46a3fb46d9882da90f38af2ca}(sha(e3982d1b26db4de46a3fb46d9882da90f38af2canode_idEC_kwDOAjP5fdoAKGUzOTgyZDFiMjZkYjRkZTQ2YTNmYjQ2ZDk4ODJkYTkwZjM4YWYyY2Ecommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-07-24T18:33:41Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-07-24T18:33:41ZumessageAutorelease 0.903.0

[skip ci]tree}(j (49c66991dae680ace7b3a41ae5b6d686fcd6a8fdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/49c66991dae680ace7b3a41ae5b6d686fcd6a8fduj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e3982d1b26db4de46a3fb46d9882da90f38af2ca
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmS+xAwACgkQhbrR8ip7mDAovQEAprHz8bw1vy9wA5eQ3Q8LCSja
tZfVWRmfpBM2F8UCAcsBAPzExuwStWcu8m2CYD59fYVUcoBbDEzPuxxDpUvbv2/Q
=Fmrp
-----END PGP SIGNATURE-----
payloadX0  tree 49c66991dae680ace7b3a41ae5b6d686fcd6a8fd
parent 128ff50e96bf0f77b9fed5b057a32f474d2ccc7c
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1690223621 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1690223621 +0000

Autorelease 0.903.0

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/e3982d1b26db4de46a3fb46d9882da90f38af2cahtml_urlShttps://github.com/palantir/atlasdb/commit/e3982d1b26db4de46a3fb46d9882da90f38af2cacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e3982d1b26db4de46a3fb46d9882da90f38af2ca/commentsj }(loginsvc-autoreleaseidJ(j MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(j MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(j (128ff50e96bf0f77b9fed5b057a32f474d2ccc7cj ^https://api.github.com/repos/palantir/atlasdb/commits/128ff50e96bf0f77b9fed5b057a32f474d2ccc7cj Shttps://github.com/palantir/atlasdb/commit/128ff50e96bf0f77b9fed5b057a32f474d2ccc7cuastats}(totalK 	additionsK 	deletionsK ufiles]}(j (cff52dc50fc6337a027d771d49cd4ea9c634d6ecfilename changelog/0.903.0/pr-6673.v2.ymlstatusrenamedj K j K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/e3982d1b26db4de46a3fb46d9882da90f38af2ca/changelog%2F0.903.0%2Fpr-6673.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/e3982d1b26db4de46a3fb46d9882da90f38af2ca/changelog%2F0.903.0%2Fpr-6673.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.903.0%2Fpr-6673.v2.yml?ref=e3982d1b26db4de46a3fb46d9882da90f38af2caprevious_filename$changelog/@unreleased/pr-6673.v2.ymluau(cfdbb0158eb2e0b90cb7fba14161a1ef123f802e}(sha(cfdbb0158eb2e0b90cb7fba14161a1ef123f802enode_idEC_kwDOAjP5fdoAKGNmZGJiMDE1OGViMmUwYjkwY2I3ZmJhMTQxNjFhMWVmMTIzZjgwMmUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-22T23:20:53Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-22T23:20:53ZumessageMerge branch 'aalouane/cbt/experiments/container3/first' of github.com:palantir/atlasdb into aalouane/cbt/experiments/container3/firsttree}(j (08c9df57b3baab2418bde68ed9816b1381b7ca03url`https://api.github.com/repos/palantir/atlasdb/git/trees/08c9df57b3baab2418bde68ed9816b1381b7ca03uj$ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cfdbb0158eb2e0b90cb7fba14161a1ef123f802e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRr+NkACgkQPlMHVIT1
yhpISQf9Hjk9PPtddOfFd0PUJm6pCQmrDwXV/dOmhVECQ1fPQ8aHYSHSZBi4Wevj
lBRZVTDnGEAJRr7mHp8NzMB2H/+wcedKN6xZIqicR1lMtSQkn8Yf5lql7bKL94YI
rTXQVGwPdVMuYYmhdSXu6yhFn6sJSmr9zXGI0VN/atTixH8ZrVpLKri/RaoxiCyk
DRCpro3js+0j/NslvDE9LeDdrQaJhERTKATqkSSfYGSqLLI31n0dQ5E0AW0GIlNz
0cJ31jIyUaKWz4RStaMYQ1IX6M5biIEkfAOc179BzEiHQP4WZRNDq/wUxokpM8cs
G2xniwffyH64asTzBt+wktDIQ8MxDw==
=eWR/
-----END PGP SIGNATURE-----payloadX  tree 08c9df57b3baab2418bde68ed9816b1381b7ca03
parent 4b14a270344ca9b14483ffef6497c46fbf07146e
parent c367c1d62d8630efab42df476949fa3da80d0e7d
author Ahmed Alouane <aalouane@palantir.com> 1684797653 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684797653 +0100

Merge branch 'aalouane/cbt/experiments/container3/first' of github.com:palantir/atlasdb into aalouane/cbt/experiments/container3/first
uuj$ ^https://api.github.com/repos/palantir/atlasdb/commits/cfdbb0158eb2e0b90cb7fba14161a1ef123f802ehtml_urlShttps://github.com/palantir/atlasdb/commit/cfdbb0158eb2e0b90cb7fba14161a1ef123f802ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cfdbb0158eb2e0b90cb7fba14161a1ef123f802e/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j$ #https://api.github.com/users/ergo14j2 https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j7 ergo14j9 Jj MDQ6VXNlcjMwOTAzNzM2j; 4https://avatars.githubusercontent.com/u/30903736?v=4j= h5j$ #https://api.github.com/users/ergo14j2 https://github.com/ergo14j@ -https://api.github.com/users/ergo14/followersjB :https://api.github.com/users/ergo14/following{/other_user}jD 3https://api.github.com/users/ergo14/gists{/gist_id}jF :https://api.github.com/users/ergo14/starred{/owner}{/repo}jH 1https://api.github.com/users/ergo14/subscriptionsjJ (https://api.github.com/users/ergo14/orgsjL )https://api.github.com/users/ergo14/reposjN 4https://api.github.com/users/ergo14/events{/privacy}jP 3https://api.github.com/users/ergo14/received_eventsjR UserjT uparents](}(j (4b14a270344ca9b14483ffef6497c46fbf07146ej$ ^https://api.github.com/repos/palantir/atlasdb/commits/4b14a270344ca9b14483ffef6497c46fbf07146ej2 Shttps://github.com/palantir/atlasdb/commit/4b14a270344ca9b14483ffef6497c46fbf07146eu}(j (c367c1d62d8630efab42df476949fa3da80d0e7dj$ ^https://api.github.com/repos/palantir/atlasdb/commits/c367c1d62d8630efab42df476949fa3da80d0e7dj2 Shttps://github.com/palantir/atlasdb/commit/c367c1d62d8630efab42df476949fa3da80d0e7duestats}(totalK	additionsK	deletionsK ufiles]}(j (be28e0890da21d6d8b36c3d7f6d13422933da314filename$changelog/@unreleased/pr-6584.v2.ymlstatusaddedjr Kjs K changesKblob_url|https://github.com/palantir/atlasdb/blob/cfdbb0158eb2e0b90cb7fba14161a1ef123f802e/changelog%2F%40unreleased%2Fpr-6584.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/cfdbb0158eb2e0b90cb7fba14161a1ef123f802e/changelog%2F%40unreleased%2Fpr-6584.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6584.v2.yml?ref=cfdbb0158eb2e0b90cb7fba14161a1ef123f802epatch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[CBT] Split up container 3 and add more max heap to timelock integTest'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6584uau(0d218d6123f91ef3e1544783ca9de81cf6762b71}(sha(0d218d6123f91ef3e1544783ca9de81cf6762b71node_idEC_kwDOAjP5fdoAKDBkMjE4ZDYxMjNmOTFlZjNlMTU0NDc4M2NhOWRlODFjZjY3NjJiNzEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-25T12:50:17Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-04-25T12:50:17Zumessagenitstree}(j (69f7ede1be3c6f940871a5bf38787d2ea32c9c0aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/69f7ede1be3c6f940871a5bf38787d2ea32c9c0auj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0d218d6123f91ef3e1544783ca9de81cf6762b71
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRHzIkACgkQmPPOpKR4
XS2j+Qf/ey1pN9ujg2Tns5uYtu3iY6Oz0XQlaxZsSDRKx5pA0NplVPDxNYluiH9q
RONL7OrJ/UbqnCnOry1yBHlXp+jzLOK6jf0eGEpQEkaaPnnDbRIRBJ/i4kGma1ks
RcWJelfzSkCYMcyQnuKSZcOnVkivk6zhSspPzzaATr/gcE3oUO6Z1RpWMdf9RlgA
U16iKo58tem26Uot7lTkk40sT3jKE3KX/EAYjo5NzYItbAbRkab0sQmcHokKFkDw
M8UEStLACV4IhP8xqL8KeKs/Yu70nRZFtpCjAWlEXBk2r3ofJCMgXJVnH7U63W7e
edR8qxDCNQDkyoJmIkM3m8IPBGVhgQ==
=gBAN
-----END PGP SIGNATURE-----payloadtree 69f7ede1be3c6f940871a5bf38787d2ea32c9c0a
parent bb2f19b895b7c4752d68b03bb5259389246f21d1
author Sam Kramer <skramer@palantir.com> 1682427017 +0100
committer Sam Kramer <skramer@palantir.com> 1682427017 +0100

nits
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/0d218d6123f91ef3e1544783ca9de81cf6762b71html_urlShttps://github.com/palantir/atlasdb/commit/0d218d6123f91ef3e1544783ca9de81cf6762b71comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0d218d6123f91ef3e1544783ca9de81cf6762b71/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (bb2f19b895b7c4752d68b03bb5259389246f21d1j ^https://api.github.com/repos/palantir/atlasdb/commits/bb2f19b895b7c4752d68b03bb5259389246f21d1j Shttps://github.com/palantir/atlasdb/commit/bb2f19b895b7c4752d68b03bb5259389246f21d1uastats}(totalKE	additionsK#	deletionsK"ufiles](}(j (521eb86ec62e39c42dea4234b11b2f742d9a8e1dfilenamekatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowAndInvariants.javastatusrenamedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/0d218d6123f91ef3e1544783ca9de81cf6762b71/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0d218d6123f91ef3e1544783ca9de81cf6762b71/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.java?ref=0d218d6123f91ef3e1544783ca9de81cf6762b71patchX  @@ -22,24 +22,24 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WorkflowValidator<WorkflowTypeT extends Workflow> {
+public interface WorkflowAndInvariants<WorkflowTypeT extends Workflow> {
     @Value.Parameter
     WorkflowTypeT workflow();
 
     @Value.Parameter
-    List<InvariantReporter<?>> invariants();
+    List<InvariantReporter<?>> invariantReporters();
 
-    static <WorkflowTypeT extends Workflow> WorkflowValidator<WorkflowTypeT> of(
+    static <WorkflowTypeT extends Workflow> WorkflowAndInvariants<WorkflowTypeT> of(
             WorkflowTypeT workflow, List<InvariantReporter<?>> invariants) {
-        return ImmutableWorkflowValidator.of(workflow, invariants);
+        return ImmutableWorkflowAndInvariants.of(workflow, invariants);
     }
 
-    static <WorkflowTypeT extends Workflow> WorkflowValidator<WorkflowTypeT> of(
+    static <WorkflowTypeT extends Workflow> WorkflowAndInvariants<WorkflowTypeT> of(
             WorkflowTypeT workflow, InvariantReporter<?>... invariants) {
-        return ImmutableWorkflowValidator.of(workflow, Arrays.asList(invariants));
+        return ImmutableWorkflowAndInvariants.of(workflow, Arrays.asList(invariants));
     }
 
-    static <WorkflowTypeT extends Workflow> ImmutableWorkflowValidator.Builder<WorkflowTypeT> builder() {
-        return ImmutableWorkflowValidator.builder();
+    static <WorkflowTypeT extends Workflow> ImmutableWorkflowAndInvariants.Builder<WorkflowTypeT> builder() {
+        return ImmutableWorkflowAndInvariants.builder();
     }
 }previous_filenamegatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowValidator.javau}(j (7bda1b5a5ae5fcf4035a9bcb3a8979da682b9deaj matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowValidatorRunner.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/0d218d6123f91ef3e1544783ca9de81cf6762b71/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.javaj https://github.com/palantir/atlasdb/raw/0d218d6123f91ef3e1544783ca9de81cf6762b71/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.java?ref=0d218d6123f91ef3e1544783ca9de81cf6762b71j Xt  @@ -23,13 +23,13 @@
  * Run the provided workflow and validate that it is correct with the provided invariants.
  */
 public interface WorkflowValidatorRunner<WorkflowTypeT extends Workflow> {
-    void run(List<WorkflowValidator<WorkflowTypeT>> workflowValidators);
+    void run(List<WorkflowAndInvariants<WorkflowTypeT>> workflowAndInvariants);
 
-    default void run(WorkflowValidator<WorkflowTypeT>... workflowValidators) {
-        run(Arrays.asList(workflowValidators));
+    default void run(WorkflowAndInvariants<WorkflowTypeT>... workflowAndInvariants) {
+        run(Arrays.asList(workflowAndInvariants));
     }
 
-    default void run(WorkflowValidator<WorkflowTypeT> workflowValidator) {
-        run(List.of(workflowValidator));
+    default void run(WorkflowAndInvariants<WorkflowTypeT> workflowAndInvariants) {
+        run(List.of(workflowAndInvariants));
     }
 }u}(j (17e96e021eb01e7d96761d28936606468c4059d5j latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/0d218d6123f91ef3e1544783ca9de81cf6762b71/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://github.com/palantir/atlasdb/raw/0d218d6123f91ef3e1544783ca9de81cf6762b71/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=0d218d6123f91ef3e1544783ca9de81cf6762b71j X|  @@ -33,7 +33,7 @@
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
 import com.palantir.atlasdb.workload.workflow.Workflow;
-import com.palantir.atlasdb.workload.workflow.WorkflowValidator;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
 import com.palantir.conjure.java.serialization.ObjectMappers;
@@ -111,7 +111,7 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
-    private WorkflowValidator<Workflow> createSingleRowTwoCellsWorkflowValidator(
+    private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             SingleRowTwoCellsWorkflowConfiguration workflowConfig,
             LifecycleEnvironment lifecycle) {
@@ -123,15 +123,15 @@ private WorkflowValidator<Workflow> createSingleRowTwoCellsWorkflowValidator(
                         workflowConfig.tableConfiguration().tableName(),
                         workflowConfig.tableConfiguration().isolationLevel()),
                 Set.of());
-        return WorkflowValidator.builder()
+        return WorkflowAndInvariants.builder()
                 .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
                         transactionStore,
                         workflowConfig,
                         MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)))
-                .addInvariants(new DurableWritesInvariantMetricReporter(
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
                         SingleRowTwoCellsWorkflows.class.getSimpleName(),
                         DurableWritesMetrics.of(taggedMetricRegistry)))
-                .addInvariants(SerializableInvariantLogReporter.INSTANCE)
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
                 .build();
     }
 u}(j (3f507bc3c1a6391698b2a3641288a0529efc9fbaj qatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunner.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/0d218d6123f91ef3e1544783ca9de81cf6762b71/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javaj https://github.com/palantir/atlasdb/raw/0d218d6123f91ef3e1544783ca9de81cf6762b71/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.java?ref=0d218d6123f91ef3e1544783ca9de81cf6762b71j XH	  @@ -20,8 +20,8 @@
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistoryValidator;
-import com.palantir.atlasdb.workload.workflow.WorkflowValidator;
 import com.palantir.atlasdb.workload.workflow.WorkflowValidatorRunner;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -39,18 +39,18 @@ public AntithesisWorkflowValidatorRunner(ListeningExecutorService listeningExecu
     }
 
     @Override
-    public void run(List<WorkflowValidator<Workflow>> workflowValidators) {
+    public void run(List<WorkflowAndInvariants<Workflow>> workflowAndInvariants) {
         try {
             log.info("antithesis: start_faults");
             List<WorkflowHistoryValidator> workflowHistoryValidators = Futures.allAsList(
-                            submitWorkflowValidators(workflowValidators))
+                            submitWorkflowValidators(workflowAndInvariants))
                     .get();
             log.info("antithesis: stop_faults");
             workflowHistoryValidators.forEach(this::checkAndReportInvariantViolations);
         } catch (InterruptedException e) {
             throw new RuntimeException(e);
         } catch (ExecutionException e) {
-            throw new RuntimeException(e);
+            Thread.currentThread().interrupt();
         }
     }
 
@@ -68,10 +68,10 @@ private void checkAndReportInvariantViolations(WorkflowHistoryValidator validato
     }
 
     private List<ListenableFuture<WorkflowHistoryValidator>> submitWorkflowValidators(
-            List<WorkflowValidator<Workflow>> workflowValidators) {
-        return workflowValidators.stream()
+            List<WorkflowAndInvariants<Workflow>> workflowAndInvariants) {
+        return workflowAndInvariants.stream()
                 .map(workflowValidator -> listeningExecutorService.submit(() -> WorkflowHistoryValidator.of(
-                        workflowValidator.workflow().run(), workflowValidator.invariants())))
+                        workflowValidator.workflow().run(), workflowValidator.invariantReporters())))
                 .collect(Collectors.toList());
     }
 }u}(j (481cb7de3564377ad96907777f394e7b6395d8f0j yatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowAndInvariantsRunnerTest.javaj renamedj K
j K	j Kj https://github.com/palantir/atlasdb/blob/0d218d6123f91ef3e1544783ca9de81cf6762b71/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowAndInvariantsRunnerTest.javaj https://github.com/palantir/atlasdb/raw/0d218d6123f91ef3e1544783ca9de81cf6762b71/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowAndInvariantsRunnerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowAndInvariantsRunnerTest.java?ref=0d218d6123f91ef3e1544783ca9de81cf6762b71j X
  @@ -30,8 +30,8 @@
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
 import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
-import com.palantir.atlasdb.workload.workflow.WorkflowValidator;
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutorService;
@@ -45,7 +45,7 @@
 import org.mockito.junit.MockitoJUnitRunner;
 
 @RunWith(MockitoJUnitRunner.class)
-public class AntithesisWorkflowValidatorRunnerTest {
+public class AntithesisWorkflowAndInvariantsRunnerTest {
 
     private static final ListeningExecutorService EXECUTOR_SERVICE =
             MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(8));
@@ -62,17 +62,17 @@ public class AntithesisWorkflowValidatorRunnerTest {
     @Mock
     private InvariantReporter<Void> invariantReporterTwo;
 
-    private WorkflowValidator<Workflow> workflowValidator;
+    private WorkflowAndInvariants<Workflow> workflowAndInvariants;
 
     @Before
     public void before() {
         when(workflow.run()).thenReturn(workflowHistory);
-        workflowValidator = WorkflowValidator.of(workflow, invariantReporterOne, invariantReporterTwo);
+        workflowAndInvariants = WorkflowAndInvariants.of(workflow, invariantReporterOne, invariantReporterTwo);
     }
 
     @Test
     public void runExecutesWorkflowAndInvokesInvariantReporters() {
-        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(workflowValidator);
+        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(workflowAndInvariants);
         verify(workflow, times(1)).run();
         verify(invariantReporterOne, times(1)).report(any());
         verify(invariantReporterTwo, times(1)).report(any());
@@ -82,7 +82,7 @@ public void runExecutesWorkflowAndInvokesInvariantReporters() {
     public void runValidatesAllInvariantsIgnoringExceptions() {
         doThrow(new RuntimeException()).when(invariantReporterOne).report(any());
         doThrow(new RuntimeException()).when(invariantReporterTwo).report(any());
-        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(workflowValidator);
+        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(workflowAndInvariants);
         verify(workflow, times(1)).run();
         verify(invariantReporterOne, times(1)).report(any());
         verify(invariantReporterTwo, times(1)).report(any());
@@ -117,9 +117,10 @@ public void runExecutesMultipleWorkflowsAndWaitsForAllToFinishBeforeInvokingInva
         ExecutorService backgroundExecutor = PTExecutors.newSingleThreadExecutor();
         try {
             Future<Void> validation = backgroundExecutor.submit(() -> {
-                WorkflowValidator<Workflow> slowWorkflowValidator =
-                        WorkflowValidator.of(slowWorkflow, invariantReporterOne);
-                new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(slowWorkflowValidator, workflowValidator);
+                WorkflowAndInvariants<Workflow> slowWorkflowAndInvariants =
+                        WorkflowAndInvariants.of(slowWorkflow, invariantReporterOne);
+                new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE)
+                        .run(slowWorkflowAndInvariants, workflowAndInvariants);
                 return null;
             });
 j uatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunnerTest.javaueu(d68db4e48053afe0153be8c76360241e8eb825d0}(sha(d68db4e48053afe0153be8c76360241e8eb825d0node_idEC_kwDOAjP5fdoAKGQ2OGRiNGU0ODA1M2FmZTAxNTNiZThjNzYzNjAyNDFlOGViODI1ZDAcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-07-24T21:35:37Zu	committer}(j) Patrick Koenigj+ pkoenig10@gmail.comj- 2023-07-24T21:35:37ZumessageRevert Circle changetree}(j! (49ec966778e33b69ab891c221aade04b81cbcc76url`https://api.github.com/repos/palantir/atlasdb/git/trees/49ec966778e33b69ab891c221aade04b81cbcc76uj9 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d68db4e48053afe0153be8c76360241e8eb825d0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAAhcAAAAHc3NoLXJzYQAAAAMBAAEAAAIBAOLBVI00yZaP7395xCyqzy
aD/kgGj5GS8qP2f4Q0hM5gFbEYaTLwKvZTgcFMKJEw/3tOlCyuFoQChwrZ+YjoX3ZcTdIs
QnoGeYlwKUGY4x3QXLvrURZtGaXWggfEc+UKHT3mnGXM9FpX9CSdpTopg7KhxDlx3/Jv90
zimWImFPxKFUSZrhVGqD8qAQibPTFDs+JhK0cqllhsvm0PR9PilTde++NKLCQUNrRJi2+f
BjLBjJMJshRwXkkM6J8hDvyjiLJz4Bg9hq+5QLnO1fYaetU7aP4bsCs6ix5pyD4WO6cr6T
SMCtJThNdHvOVuOaCCHBOQrdVGjbMH9lmW5FL5oMsTZ86p24rZOFD9ly44mMJWYGk6F81y
japNgWorhR0tSZMSZPVlisGQQsRnsqQidrVPe3IR4MTUsKx39CAutxgk6N+BseeByXKw+H
aBKmd75u/FU7IoxEbXX7EuDq2TCtUmujYXiY7SY4T0DQDjNpHq+vrEUsKyi5mbRTdNahvt
eFWJU5UIwO7Ao+HdsqfUjGN6zw2HSkiHEG3iOj5OY+byI/ykoYGMQ40w6w7shCt7XDbUXa
/kGqIyicthBGQ7Y4/TtquH5Ag2UPSlN9C0Rt/ZBolkTfoLz4wCtTMzd7hdixs5yuocVTn7
njhSYSXRyRbbVcF/q56x1NAAsVOe9epxAAAAA2dpdAAAAAAAAAAGc2hhNTEyAAACFAAAAA
xyc2Etc2hhMi01MTIAAAIAoq6hlkmUuBTuW5TxQIcOBOegSaakhRwQcwFYpd+i0iVXDfOB
kSArunc4xRPgJEGrHap7U9OTR5ElFF8Sj6KM/pI6leeS+opX8w7/R5X6K0ErwBujAwW/uN
8p5bF3loZlKGT1VlX2SFfEIxowww2gl0MntACBj+ZW4kyp3yzYK9LlYErwQPFqLObWY10g
ADHZd482jB+roVVsesiKnGOyPMI0wh0GrBcbdMUzXd2kQRHg2UBMDdHWszPS5RA/cMwmVr
G9Ex6Avs8uz8Cc8bEzX9IHi/he60yup/B4WGqUVtBu1WdigBGFNATzp/aGrDEoVGC8AlK1
NOcYoIq5CfKxtPTDtN1tNKVQrfd+CoOO01JKn8pNVKYSN81wRv6dEZiCHzJvHMAoI3HgFD
g+Gdpp/JD1dXNOOYAtbYHiTkzmirsucie4oXDOj8AD/De5XPoIgcW68sreBU355Qv3usji
nzbo6sQco0zscgOVeSL/3rSOeZIKFBz1h0SQTLSc71PPMYGYnq/PFNk+2mk4nbun1QWa2V
ydKLp2u0Z7yOZqpyjHesGO3MsxdUZ7RuOjnK8upRLVMkgPl6eRXmRYiyTc75Yh42+/8Fwa
rBrgPYAq5oPOmVsHGfX5UVa17vAKaJTMKIQoqQuS8Sq7pmaVz/F1Vwq5Y/Zxqj7P+0nGwa
0/cdc=
-----END SSH SIGNATURE-----w      payloadtree 49ec966778e33b69ab891c221aade04b81cbcc76
parent c213c549dfcf2cac7e8145c8ed56f5fb8cbb25a9
author Patrick Koenig <pkoenig10@gmail.com> 1690234537 -0700
committer Patrick Koenig <pkoenig10@gmail.com> 1690234537 -0700

Revert Circle change
uuj9 ^https://api.github.com/repos/palantir/atlasdb/commits/d68db4e48053afe0153be8c76360241e8eb825d0html_urlShttps://github.com/palantir/atlasdb/commit/d68db4e48053afe0153be8c76360241e8eb825d0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d68db4e48053afe0153be8c76360241e8eb825d0/commentsj' }(login	pkoenig10idJLvP j# MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5j9 &https://api.github.com/users/pkoenig10jG https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminuj/ }(jL 	pkoenig10jN JLvP j# MDQ6VXNlcjUyNzMxNjQ=jP 3https://avatars.githubusercontent.com/u/5273164?v=4jR h5j9 &https://api.github.com/users/pkoenig10jG https://github.com/pkoenig10jU 0https://api.github.com/users/pkoenig10/followersjW =https://api.github.com/users/pkoenig10/following{/other_user}jY 6https://api.github.com/users/pkoenig10/gists{/gist_id}j[ =https://api.github.com/users/pkoenig10/starred{/owner}{/repo}j] 4https://api.github.com/users/pkoenig10/subscriptionsj_ +https://api.github.com/users/pkoenig10/orgsja ,https://api.github.com/users/pkoenig10/reposjc 7https://api.github.com/users/pkoenig10/events{/privacy}je 6https://api.github.com/users/pkoenig10/received_eventsjg Userji uparents]}(j! (c213c549dfcf2cac7e8145c8ed56f5fb8cbb25a9j9 ^https://api.github.com/repos/palantir/atlasdb/commits/c213c549dfcf2cac7e8145c8ed56f5fb8cbb25a9jG Shttps://github.com/palantir/atlasdb/commit/c213c549dfcf2cac7e8145c8ed56f5fb8cbb25a9uastats}(totalK	additionsK	deletionsKufiles]}(j! (a31b7819db3f6f91597edd144957cf18b2f7a613filename.circleci/config.ymlstatusmodifiedj Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/d68db4e48053afe0153be8c76360241e8eb825d0/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/d68db4e48053afe0153be8c76360241e8eb825d0/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=d68db4e48053afe0153be8c76360241e8eb825d0patchX  @@ -31,7 +31,7 @@ jobs:
           root: .
           paths: [ . ]
 
-  test:
+  test-suite:
     parameters:
       suite:
         type: integer
@@ -104,6 +104,12 @@ jobs:
       - attach_workspace: { at: . }
       - run: ./gradlew --scan --profile --stacktrace --continue publishToMavenLocal
 
+  test:
+    docker: [ { image: 'busybox:1.34.1' } ]
+    resource_class: small
+    steps:
+      - run: {command: echo "Ran all required tests successfully"}
+
   deploy:
     docker:
       - image: cimg/openjdk:11.0.10-node
@@ -143,11 +149,29 @@ workflows:
           filters:
             tags:
               only: /.*/
-      - test:
+      - test-suite:
+          requires: [build]
+          matrix:
+            alias: test-no-tl
+            parameters:
+              # intentionally excluding 13 (TimeLock migration ETE test) from this collection
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14]
+          filters:
+            tags:
+              only: /.*/
+      - test-suite:
           requires: [build]
           matrix:
+            alias: test-tl
             parameters:
-              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
+              suite: [13]
+          filters:
+            branches:
+              only: /(tlmete.*|develop)/
+            tags:
+              only: /.*/
+      - test:
+          requires: [test-tl, test-no-tl]
           filters:
             tags:
               only: /.*/uau(5cc274ce4807cce89e096a32dd6d38c6374ee459}(sha(5cc274ce4807cce89e096a32dd6d38c6374ee459node_idEC_kwDOAjP5fdoAKDVjYzI3NGNlNDgwN2NjZTg5ZTA5NmEzMmRkNmQzOGM2Mzc0ZWU0NTkcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-12T13:16:45Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-04-12T13:16:45ZumessagebMerge branch 'jkong/asynchronous-rage' of github.com:palantir/atlasdb into jkong/asynchronous-ragetree}(j (ba7db2bc546ea210f4df531bda43c47d2e885e9durl`https://api.github.com/repos/palantir/atlasdb/git/trees/ba7db2bc546ea210f4df531bda43c47d2e885e9duj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5cc274ce4807cce89e096a32dd6d38c6374ee459
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ2r0EACgkQTLdFKain
zjx4AAgA2GMomwDeiGdctqEfRnFCCT85wy99uZY3cgalu0/opEXS5cl/R7VqgZD9
MkghdZeHr+zBiZvfH5mjQ65+F+SaWCnC1BiMvUG44HZByEPcXe86/iZCUKz00/so
+/gB5JLt+E+7rG4H9Tn5ZLbO3mwqhn3OgKf/40NNx2lL2UE/uqu7oneg/D57m3zJ
eDg7pfeK2b3SphyXNag6/zcKy3Bj97pqZBjEPyY8aA3k8O6/ak7KQo0zgOqD+Zof
BA79ELTSaQxgry6hxFNO99qBhxwf1j8UZhML3Xn8XLkRyud9P9fenapmgItfT1ih
HZaf3Gu2hAWgpVKC2DFtaZttG591Lg==
=WNN5
-----END PGP SIGNATURE-----payloadXg  tree ba7db2bc546ea210f4df531bda43c47d2e885e9d
parent 54d2aff21b50431f7f3397e2083890be771c896f
parent cea089afdc604d794c13de0997f976e43597424c
author Jeremy Kong <jkong@palantir.com> 1681305405 +0100
committer Jeremy Kong <jkong@palantir.com> 1681305405 +0100

Merge branch 'jkong/asynchronous-rage' of github.com:palantir/atlasdb into jkong/asynchronous-rage
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/5cc274ce4807cce89e096a32dd6d38c6374ee459html_urlShttps://github.com/palantir/atlasdb/commit/5cc274ce4807cce89e096a32dd6d38c6374ee459comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5cc274ce4807cce89e096a32dd6d38c6374ee459/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents](}(j (54d2aff21b50431f7f3397e2083890be771c896fj ^https://api.github.com/repos/palantir/atlasdb/commits/54d2aff21b50431f7f3397e2083890be771c896fj Shttps://github.com/palantir/atlasdb/commit/54d2aff21b50431f7f3397e2083890be771c896fu}(j (cea089afdc604d794c13de0997f976e43597424cj ^https://api.github.com/repos/palantir/atlasdb/commits/cea089afdc604d794c13de0997f976e43597424cj Shttps://github.com/palantir/atlasdb/commit/cea089afdc604d794c13de0997f976e43597424cuestats}(totalK 	additionsK 	deletionsK ufiles]u(84642431dd64f791650d986693a4b28f78c41908}(sha(84642431dd64f791650d986693a4b28f78c41908node_idEC_kwDOAjP5fdoAKDg0NjQyNDMxZGQ2NGY3OTE2NTBkOTg2NjkzYTRiMjhmNzhjNDE5MDgcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-03-06T15:45:00Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-03-06T15:45:00Zumessage
purely for citree}(j (36c76d2b717b7ae60be45f38cce45c903b53630burl`https://api.github.com/repos/palantir/atlasdb/git/trees/36c76d2b717b7ae60be45f38cce45c903b53630buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/84642431dd64f791650d986693a4b28f78c41908
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQGCnwACgkQPlMHVIT1
yho1Ggf+MeOG0bwOvlz40Ur5fg3nY2k2NVnqGuqu1+8c69Y0YEPUbT103/EIF5kc
+gRSiXtSbKbCXAEtwie5/GwkWQpIEh5mww5IDGzSqfAgm+TiQMkBOp0Aeb4JchUt
JCsHcGndPoG+RxxniwHUzMCJQVbwmu9ZG/h6V4mHB8RX56c9J7W44a2zoiCzgo+g
UJYIGXRP4JE+f2m6NVFQAdsYEbUeYqf+h5zJU/uAF7jRD8w0Nil/6+hdcAocKwAA
VoH8pyhOw47ucDWw0ywhvCRPNzLDr2AIREVHtjCWAuRQgii4QSGz6PYpL+Ykx8BB
SGcEWGfOUAMLZqa7fAOSUjTtzHpqfQ==
=sp4h
-----END PGP SIGNATURE-----payloadtree 36c76d2b717b7ae60be45f38cce45c903b53630b
parent 3102ef1addadb4ebd79e624fb701e9db60a94733
author Ahmed Alouane <aalouane@palantir.com> 1678117500 +0000
committer Ahmed Alouane <aalouane@palantir.com> 1678117500 +0000

purely for ci
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/84642431dd64f791650d986693a4b28f78c41908html_urlShttps://github.com/palantir/atlasdb/commit/84642431dd64f791650d986693a4b28f78c41908comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/84642431dd64f791650d986693a4b28f78c41908/commentsj
 }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j* https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j/ ergo14j1 Jj MDQ6VXNlcjMwOTAzNzM2j3 4https://avatars.githubusercontent.com/u/30903736?v=4j5 h5j #https://api.github.com/users/ergo14j* https://github.com/ergo14j8 -https://api.github.com/users/ergo14/followersj: :https://api.github.com/users/ergo14/following{/other_user}j< 3https://api.github.com/users/ergo14/gists{/gist_id}j> :https://api.github.com/users/ergo14/starred{/owner}{/repo}j@ 1https://api.github.com/users/ergo14/subscriptionsjB (https://api.github.com/users/ergo14/orgsjD )https://api.github.com/users/ergo14/reposjF 4https://api.github.com/users/ergo14/events{/privacy}jH 3https://api.github.com/users/ergo14/received_eventsjJ UserjL uparents]}(j (3102ef1addadb4ebd79e624fb701e9db60a94733j ^https://api.github.com/repos/palantir/atlasdb/commits/3102ef1addadb4ebd79e624fb701e9db60a94733j* Shttps://github.com/palantir/atlasdb/commit/3102ef1addadb4ebd79e624fb701e9db60a94733uastats}(totalK	additionsK	deletionsKufiles]}(j (1556dbb49ed7ecc2cb9388c13a3f8bf63c7cea5bfilenamefatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraServerOriginTest.javastatusmodifiedjf Kjg KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/84642431dd64f791650d986693a4b28f78c41908/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/84642431dd64f791650d986693a4b28f78c41908/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.java?ref=84642431dd64f791650d986693a4b28f78c41908patchX  @@ -12,7 +12,7 @@
 public final class CassandraServerOriginTest {
 
     private static final CassandraServer SERVER_1 = createCassandraServer("serverOne");
-    private static final CassandraServer SERVER_2 = createCassandraServer("serverTwo");
+    private static final CassandraServer SERVER_2 = createCassandraServer("serverTwoo");
     private static final CassandraServer SERVER_3 = createCassandraServer("serverThree");
 
     @Testuau(30cdff29ec640c3ad4dbfd5c22ec76545244045b}(sha(30cdff29ec640c3ad4dbfd5c22ec76545244045bnode_idEC_kwDOAjP5fdoAKDMwY2RmZjI5ZWM2NDBjM2FkNGRiZmQ1YzIyZWM3NjU0NTI0NDA0NWIcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-12T10:19:37Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-07-12T10:19:37Zumessage$Update comments and log max metadatatree}(j{ (e0e9ee9396b20833baae9e70082fe7dabe61007aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/e0e9ee9396b20833baae9e70082fe7dabe61007auj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/30cdff29ec640c3ad4dbfd5c22ec76545244045b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSufjkACgkQmF9s0kaF
Iw1JHgf/dPmCaxeUohYBRhs4FrSo/61syxkAAe7iCVxDmEdoLPZdZJ8wR6NfTU7p
GVENEwkBbSGhh6UaWerhw6kSFDJNII9kVUjHpSGHZeuMh1yAXrxQgiPXUEBiCe0E
Y7p3JfqfK8x30GJPSdsY9Mcu+GOSwIm7CT8Ol0SpbdycEfTjbQh2O03a5TbN4ToL
EdM7WPQ9TjtDEhjM6aDSEysN2LtxaLeokE+ORl1zHp+437V7RzVqljvCz1sM/Mcc
N0TlLazqbKdTz2j8eyMetnzpHGdM0RibB/Xr89Easr35Di0HdCJi7/ZvmWA/0hbQ
DZiLYb4p3W7lYKMlb99w9lKStT5nkw==
=29I7
-----END PGP SIGNATURE-----payloadtree e0e9ee9396b20833baae9e70082fe7dabe61007a
parent b1b4429f23c222cc8ee7efa3daf17b93f9737578
author Tom Papke <tpapke@palantir.com> 1689157177 +0100
committer Tom Papke <tpapke@palantir.com> 1689157177 +0100

Update comments and log max metadata
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/30cdff29ec640c3ad4dbfd5c22ec76545244045bhtml_urlShttps://github.com/palantir/atlasdb/commit/30cdff29ec640c3ad4dbfd5c22ec76545244045bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/30cdff29ec640c3ad4dbfd5c22ec76545244045b/commentsj }(login	ToemmscheidJboj} MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jboj} MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(j{ (b1b4429f23c222cc8ee7efa3daf17b93f9737578j ^https://api.github.com/repos/palantir/atlasdb/commits/b1b4429f23c222cc8ee7efa3daf17b93f9737578j Shttps://github.com/palantir/atlasdb/commit/b1b4429f23c222cc8ee7efa3daf17b93f9737578uastats}(totalK	additionsK	deletionsKufiles]}(j{ (08b805627113376152865b1abc21b991427be52afilenameZtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImpl.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/30cdff29ec640c3ad4dbfd5c22ec76545244045b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/30cdff29ec640c3ad4dbfd5c22ec76545244045b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.java?ref=30cdff29ec640c3ad4dbfd5c22ec76545244045bpatchX8  @@ -43,7 +43,7 @@
 public class LockEventLogImpl implements LockEventLog {
     private static final SafeLogger log = SafeLoggerFactory.get(LockEventLogImpl.class);
 
-    // Our Sliding window can hold a maximum of 1000 values. If we never store more than 1000 metadata values at a time
+    // Our Sliding window can hold a maximum of 1000 values. If we never store more than 100 metadata values at a time
     // memory usage by metadata will be bounded by 100 * 1000 * MAX_CHANGE_METADATA bytes.
     // Assuming we are using ChangeMetadata that holds ~2KB max each, metadata cannot take up more than 200MB of memory.
     @VisibleForTesting
@@ -81,7 +81,10 @@ public synchronized void logLock(
         // how often this happens.
         int metadataSize = metadata.map(LockRequestMetadata::size).orElse(0);
         if (metadataSize > MAX_METADATA_SIZE) {
-            log.warn("Discarding metadata because it is too large", SafeArg.of("metadataSize", metadataSize));
+            log.warn(
+                    "Discarding metadata because it is too large",
+                    SafeArg.of("metadataSize", metadataSize),
+                    SafeArg.of("maxMetadataSize", MAX_METADATA_SIZE));
             metadata = Optional.empty();
         }
         slidingWindow.add(LockEvent.builder(locksTakenOut, lockToken, metadata));uau(2ab80f953b402de71813333655631d3f75bfb411}(sha(2ab80f953b402de71813333655631d3f75bfb411node_idEC_kwDOAjP5fdoAKDJhYjgwZjk1M2I0MDJkZTcxODEzMzMzNjU1NjMxZDNmNzViZmI0MTEcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-08-01T12:38:21Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-08-01T13:06:35Zumessage7Make MoreCellsPresentThanExpectedException SafeLoggabletree}(j (1bfc5303a3bf75335b507029e75b0cca6b9d8678url`https://api.github.com/repos/palantir/atlasdb/git/trees/1bfc5303a3bf75335b507029e75b0cca6b9d8678uj
 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2ab80f953b402de71813333655631d3f75bfb411
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmTJA1sACgkQJd22kJ7J
Giyp1AgAgjkRYKi6UpRdHX94wnhxsOBGaq6QKs4SkhiNbaEBdKEbGu2n+5mbsOhT
/t88WSnHiq1GyEzuXmLr//UMW8MObLBNjbsXwMSpcyx3gAuYDLtEMSM5Khy9mSG4
a75bU+oB8zfLGj1ra3Nr1EIO88Ml2UyCF8cGGBnyRoOujsxA8epYCNYWlEnPBEVS
jtB9ay7VR3s0WHwFgbgiuIq/HD/zXDTrOewF/vRgCgbcNwarNq1g8VKvKceba9g4
Seu0MOeVyObvkc5rGEilzFYT9NNx7TT7w1TlHwEsCu0o8LdXz3hHVgAuIDLHOTf+
y4wFRdmmH6xuH2UtasuTZSArVnqJ1Q==
=TEb9
-----END PGP SIGNATURE-----payloadX  tree 1bfc5303a3bf75335b507029e75b0cca6b9d8678
parent 6a1426f54f84f94c765aafd53a3c76c09a62aeb6
author Lucas Meireles <meireles31@msn.com> 1690893501 +0100
committer Lucas Meireles <meireles31@msn.com> 1690895195 +0100

Make MoreCellsPresentThanExpectedException SafeLoggable
uuj
 ^https://api.github.com/repos/palantir/atlasdb/commits/2ab80f953b402de71813333655631d3f75bfb411html_urlShttps://github.com/palantir/atlasdb/commit/2ab80f953b402de71813333655631d3f75bfb411comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2ab80f953b402de71813333655631d3f75bfb411/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j
 %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj  }(j LucasIMEj Jg j MDQ6VXNlcjY3ODczMTE=j! 3https://avatars.githubusercontent.com/u/6787311?v=4j# h5j
 %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj& /https://api.github.com/users/LucasIME/followersj( <https://api.github.com/users/LucasIME/following{/other_user}j* 5https://api.github.com/users/LucasIME/gists{/gist_id}j, <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j. 3https://api.github.com/users/LucasIME/subscriptionsj0 *https://api.github.com/users/LucasIME/orgsj2 +https://api.github.com/users/LucasIME/reposj4 6https://api.github.com/users/LucasIME/events{/privacy}j6 5https://api.github.com/users/LucasIME/received_eventsj8 Userj: uparents]}(j (6a1426f54f84f94c765aafd53a3c76c09a62aeb6j
 ^https://api.github.com/repos/palantir/atlasdb/commits/6a1426f54f84f94c765aafd53a3c76c09a62aeb6j Shttps://github.com/palantir/atlasdb/commit/6a1426f54f84f94c765aafd53a3c76c09a62aeb6uastats}(totalK*	additionsK!	deletionsK	ufiles]}(j (2452370f4204a81f9a286477e1fc66636e310188filenametatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/exceptions/MoreCellsPresentThanExpectedException.javastatusmodifiedjT K!jU K	changesK*blob_urlhttps://github.com/palantir/atlasdb/blob/2ab80f953b402de71813333655631d3f75bfb411/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexceptions%2FMoreCellsPresentThanExpectedException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2ab80f953b402de71813333655631d3f75bfb411/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexceptions%2FMoreCellsPresentThanExpectedException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexceptions%2FMoreCellsPresentThanExpectedException.java?ref=2ab80f953b402de71813333655631d3f75bfb411patchXT
  @@ -17,26 +17,50 @@
 package com.palantir.atlasdb.transaction.api.exceptions;
 
 import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.logsafe.Arg;
+import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.SafeLoggable;
+import com.palantir.logsafe.Unsafe;
 import com.palantir.logsafe.UnsafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import com.palantir.logsafe.exceptions.SafeExceptions;
+import java.util.List;
 import java.util.Map;
 
-public class MoreCellsPresentThanExpectedException extends IllegalStateException {
+public final class MoreCellsPresentThanExpectedException extends IllegalStateException implements SafeLoggable {
+
+    private static final String MESSAGE =
+            "KeyValueService returned more results than Get expected. This means there is a bug"
+                    + "either in the SnapshotTransaction implementation or in how the client is "
+                    + "using such method.";
+    private final List<Arg<?>> arguments;
     private final Map<Cell, byte[]> fetchedCells;
 
     public MoreCellsPresentThanExpectedException(Map<Cell, byte[]> fetchedCells, long expectedNumberOfCells) {
-        super(new SafeIllegalStateException(
-                "KeyValueService returned more results than Get expected. This means there is a bug"
-                        + "either in the SnapshotTransaction implementation or in how the client is "
-                        + "using such method.",
-                SafeArg.of("expectedNumberOfCells", expectedNumberOfCells),
-                SafeArg.of("numberOfCellsRetrieved", fetchedCells.size()),
-                UnsafeArg.of("retrievedCells", fetchedCells)));
+        super(SafeExceptions.renderMessage(
+                MESSAGE, argsFrom(fetchedCells, expectedNumberOfCells).toArray(Arg<?>[]::new)));
         this.fetchedCells = fetchedCells;
+        this.arguments = argsFrom(fetchedCells, expectedNumberOfCells);
     }
 
     public Map<Cell, byte[]> getFetchedCells() {
         return fetchedCells;
     }
+
+    @Override
+    public @Safe String getLogMessage() {
+        return MESSAGE;
+    }
+
+    @Override
+    public List<Arg<?>> getArgs() {
+        return arguments;
+    }
+
+    @Unsafe private static List<Arg<?>> argsFrom(Map<Cell, byte[]> retrievedCells, long expectedNumberOfCells) {
+        return List.of(
+                SafeArg.of("expectedNumberOfCells", expectedNumberOfCells),
+                SafeArg.of("numberOfCellsRetrieved", retrievedCells.size()),
+                UnsafeArg.of("retrievedCells", retrievedCells));
+    }
 }uau(03381795ef5c2a79643e6f0b0f59577476d3eac8}(sha(03381795ef5c2a79643e6f0b0f59577476d3eac8node_idEC_kwDOAjP5fdoAKDAzMzgxNzk1ZWY1YzJhNzk2NDNlNmYwYjBmNTk1Nzc0NzZkM2VhYzgcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-06-05T15:08:32Zu	committer}(jq 
Ahmed Alouanejs aalouane@palantir.comju 2023-06-05T15:08:32Zumessage"split 4 among different containerstree}(ji (68b659fdffae72922760e7fb8229a470c0cbe60furl`https://api.github.com/repos/palantir/atlasdb/git/trees/68b659fdffae72922760e7fb8229a470c0cbe60fuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/03381795ef5c2a79643e6f0b0f59577476d3eac8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmR9+nAACgkQPlMHVIT1
yhoLGwf/dNz79xt053jiihCmcUjdNLxrN66mhzdvbanLvfouyK47yqCPIxbTrUWA
8PL3+I3juRpZUJgGMbOYtfWGkSDuiGFvIdeqm9p50Lg/7YHbPnitPTOXEYQ+OYK3
plLQbq+lyTfvRq3QWbjEps5Avwc7g5Ul70NiODvLoIzwD6/gBEs529DhStcnu1Nf
c9g8E/XtafHT4QllGPI43bDd83tq3OtYKV0lgs9XGQF8NSxv1fWeD7yAI3Y/nOF9
d0knjdHn2x8jk2rI1nB8MvTWYE9PsKP8X6O3OFZPYvdF0KCgLP9NJYUsizUFMpgr
dcprl3vmFHgBplS4v6LBjEB/BVh2gQ==
=WpZa
-----END PGP SIGNATURE-----payloadX  tree 68b659fdffae72922760e7fb8229a470c0cbe60f
parent 9106838137afc2dd4618db1c4237b7b24a7bf8cf
author Ahmed Alouane <aalouane@palantir.com> 1685977712 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1685977712 +0100

split 4 among different containers
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/03381795ef5c2a79643e6f0b0f59577476d3eac8html_urlShttps://github.com/palantir/atlasdb/commit/03381795ef5c2a79643e6f0b0f59577476d3eac8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/03381795ef5c2a79643e6f0b0f59577476d3eac8/commentsjo }(loginergo14idJjk MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujw }(j ergo14j Jjk MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(ji (9106838137afc2dd4618db1c4237b7b24a7bf8cfj ^https://api.github.com/repos/palantir/atlasdb/commits/9106838137afc2dd4618db1c4237b7b24a7bf8cfj Shttps://github.com/palantir/atlasdb/commit/9106838137afc2dd4618db1c4237b7b24a7bf8cfuastats}(totalK	additionsK	deletionsKufiles]}(ji (2108704e41c934114500ef97356f20b3c102b9abfilename%scripts/circle-ci/run-circle-tests.shstatusmodifiedj Kj KchangesKblob_url{https://github.com/palantir/atlasdb/blob/03381795ef5c2a79643e6f0b0f59577476d3eac8/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/03381795ef5c2a79643e6f0b0f59577476d3eac8/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=03381795ef5c2a79643e6f0b0f59577476d3eac8patchXB  @@ -19,7 +19,7 @@ CONTAINER_2=(':atlasdb-ete-tests:check')
 
 CONTAINER_3=(':timelock-server:integTest')
 
-CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:dbkvsTest')
+CONTAINER_4=(':atlasdb-ete-tests:dbkvsTest')
 
 CONTAINER_5=(':lock-impl:check' ':atlasdb-dbkvs-tests:postgresTest' ':atlasdb-ete-test-utils:check' ':atlasdb-ete-tests:longTest')
 
@@ -39,13 +39,19 @@ CONTAINER_12=(':atlasdb-dbkvs:check' ':atlasdb-cassandra:check' )
 
 CONTAINER_13=(':atlasdb-ete-tests:timeLockMigrationTest')
 
-CONTAINER_14=('compileJava' 'compileTestJava')
+CONTAINER_14=(':atlasdb-cassandra-multinode-tests:check')
+
+CONTAINER_15=(':atlasdb-tests-shared:check')
+
+CONTAINER_16=(':atlasdb-perf:check')
+
+CONTAINER_17=('compileJava' 'compileTestJava')
 
 # Excluded as it is split into two subsets
 EXCLUDED=(':atlasdb-cassandra-integration-tests:check')
 
 # Container 0 - runs tasks not found in the below containers
-CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}" "${CONTAINER_11[@]}" "${CONTAINER_12[@]}" "${CONTAINER_13[@]}" "${EXCLUDED[@]}")
+CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}" "${CONTAINER_11[@]}" "${CONTAINER_12[@]}" "${CONTAINER_13[@]}" "${CONTAINER_14[@]}" "${CONTAINER_15[@]}" "${CONTAINER_16[@]}" "${EXCLUDED[@]}")
 
 for task in "${CONTAINER_0_EXCLUDE[@]}"
 do
@@ -75,7 +81,7 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
 # External builds have a 16gb limit.
-if [ "$test_suite_index" -eq "14" ]; then
+if [ "$test_suite_index" -eq "17" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 elif [ "$test_suite_index" -eq "3" ]; then
     export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
@@ -102,5 +108,8 @@ case "$test_suite_index" in
     11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} ;;
     12) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_12[@]} ;;
     13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_13[@]} ;;
-    14) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_14[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
+    13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_14[@]} ;;
+    13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_15[@]} ;;
+    13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_16[@]} ;;
+    14) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_17[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
 esacuau(4c56a0fe53d8323106ccb416245523463e5bcb79}(sha(4c56a0fe53d8323106ccb416245523463e5bcb79node_idEC_kwDOAjP5fdoAKDRjNTZhMGZlNTNkODMyMzEwNmNjYjQxNjI0NTUyMzQ2M2U1YmNiNzkcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-08-14T14:20:20Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-08-14T14:20:20ZumessageAutorelease 0.914.0

[skip ci]tree}(j (87f3e0c573326c6f27972e4b32495e2780389836url`https://api.github.com/repos/palantir/atlasdb/git/trees/87f3e0c573326c6f27972e4b32495e2780389836uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4c56a0fe53d8323106ccb416245523463e5bcb79
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmTaOCsACgkQhbrR8ip7mDArgQEAnfBnyNTgYX44D7xcIM59QAm4
4YlTv/NvKmM8oYHIUNwBAI8G2GobnXB8M5pKBy9XD2O+sBqUyEcjHqvE+QIEndDN
=Kg2g
-----END PGP SIGNATURE-----
payloadX0  tree 87f3e0c573326c6f27972e4b32495e2780389836
parent 342f9dfae2db7454e4ddc5c978655c21a6c19a60
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1692022820 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1692022820 +0000

Autorelease 0.914.0

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/4c56a0fe53d8323106ccb416245523463e5bcb79html_urlShttps://github.com/palantir/atlasdb/commit/4c56a0fe53d8323106ccb416245523463e5bcb79comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4c56a0fe53d8323106ccb416245523463e5bcb79/commentsj }(loginsvc-autoreleaseidJ(j MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj }(j svc-autoreleasej
 J(j MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj  2https://api.github.com/users/svc-autorelease/reposj" =https://api.github.com/users/svc-autorelease/events{/privacy}j$ <https://api.github.com/users/svc-autorelease/received_eventsj& Userj( uparents]}(j (342f9dfae2db7454e4ddc5c978655c21a6c19a60j ^https://api.github.com/repos/palantir/atlasdb/commits/342f9dfae2db7454e4ddc5c978655c21a6c19a60j Shttps://github.com/palantir/atlasdb/commit/342f9dfae2db7454e4ddc5c978655c21a6c19a60uastats}(totalK 	additionsK 	deletionsK ufiles]}(j (bab8c102a32d01255fec953a96fe6a4437d14328filename changelog/0.914.0/pr-6707.v2.ymlstatusrenamedjB K jC K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/4c56a0fe53d8323106ccb416245523463e5bcb79/changelog%2F0.914.0%2Fpr-6707.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/4c56a0fe53d8323106ccb416245523463e5bcb79/changelog%2F0.914.0%2Fpr-6707.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.914.0%2Fpr-6707.v2.yml?ref=4c56a0fe53d8323106ccb416245523463e5bcb79previous_filename$changelog/@unreleased/pr-6707.v2.ymluau(5824fe79eeaf1e1fced90082b4de622241031c28}(sha(5824fe79eeaf1e1fced90082b4de622241031c28node_idEC_kwDOAjP5fdoAKDU4MjRmZTc5ZWVhZjFlMWZjZWQ5MDA4MmI0ZGU2MjIyNDEwMzFjMjgcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-25T17:21:39Zu	committer}(j_ Jeremy Kongja jkong@palantir.comjc 2023-04-25T17:21:39ZumessageInclude iterator datatree}(jW (5c15a76fe9596c10d19876046abc2ff81050f1c3url`https://api.github.com/repos/palantir/atlasdb/git/trees/5c15a76fe9596c10d19876046abc2ff81050f1c3ujo bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5824fe79eeaf1e1fced90082b4de622241031c28
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRIDCMACgkQTLdFKain
zjw+mggAiHIANd4tmQ0qPGSM5WGUkjoUOw34ajYdsjkKNFVybQYS3a3JifSOjBed
VbHytmx4pNI0YAQieA04+aRrAGmVYgN2BLipS1T2WQHPkUO5hd+ESwRS2lwPge+C
aEun4Tbsd023mEqorrcHwAfLe9WUrnZxfJc8857473khw/bYMuHgqUu3TxUA21A7
7y+HXaZSLRy4rqehjA5zOddWYTI+ybEsC9iotV6uT4pH8o/g+FFsenjV0HA8PzLk
hSQUU5sDdCt1PRB31PuBnyT8Kepo6JRFbQTaKccgrd691zME+IPjoEcpIfKi07/e
lLceSRgO72eKT2PY5xDYFUA3YNQUmg==
=AiqH
-----END PGP SIGNATURE-----payloadtree 5c15a76fe9596c10d19876046abc2ff81050f1c3
parent 0e042c5db32fd526cc9e1506788bee2cda4f3a43
author Jeremy Kong <jkong@palantir.com> 1682443299 +0100
committer Jeremy Kong <jkong@palantir.com> 1682443299 +0100

Include iterator data
uujo ^https://api.github.com/repos/palantir/atlasdb/commits/5824fe79eeaf1e1fced90082b4de622241031c28html_urlShttps://github.com/palantir/atlasdb/commit/5824fe79eeaf1e1fced90082b4de622241031c28comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5824fe79eeaf1e1fced90082b4de622241031c28/commentsj] }(login
jeremyk-91idJZ jY MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jo 'https://api.github.com/users/jeremyk-91j} https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuje }(j 
jeremyk-91j JZ jY MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5jo 'https://api.github.com/users/jeremyk-91j} https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(jW (0e042c5db32fd526cc9e1506788bee2cda4f3a43jo ^https://api.github.com/repos/palantir/atlasdb/commits/0e042c5db32fd526cc9e1506788bee2cda4f3a43j} Shttps://github.com/palantir/atlasdb/commit/0e042c5db32fd526cc9e1506788bee2cda4f3a43uastats}(totalK	additionsK	deletionsK ufiles]}(jW (a6a4bbf2a1adba1f1a78b6a6b36705b9477f551cfilenamehatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIterator.javastatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/5824fe79eeaf1e1fced90082b4de622241031c28/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5824fe79eeaf1e1fced90082b4de622241031c28/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.java?ref=5824fe79eeaf1e1fced90082b4de622241031c28patchX   @@ -21,6 +21,7 @@
 import com.palantir.common.base.ClosableIterator;
 import com.palantir.common.base.ClosableIterators;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.util.AssertUtils;
@@ -68,9 +69,22 @@ int getBestBatchSize() {
         if (numNotDeleted == 0) {
             // If everything we've seen has been deleted, we should be aggressive about getting more rows.
             batchSize = maxNewBatchSize;
+            if (log.isDebugEnabled()) {
+                log.debug("Everything in a batch was deleted!",
+                        SafeArg.of("previousBatchSize", originalBatchSize),
+                        SafeArg.of("newBatchSize", batchSize),
+                        SafeArg.of("numReturned", numReturned));
+            }
         } else {
             batchSize = Math.min(
                     (long) Math.ceil(originalBatchSize * (numReturned / (double) numNotDeleted)), maxNewBatchSize);
+            if (log.isDebugEnabled()) {
+                log.debug("Recalculating the batch size!",
+                        SafeArg.of("previousBatchSize", originalBatchSize),
+                        SafeArg.of("newBatchSize", batchSize),
+                        SafeArg.of("numReturned", numReturned),
+                        SafeArg.of("numNotDeleted", numNotDeleted));
+            }
         }
         return (int) Math.min(batchSize, AtlasDbPerformanceConstants.MAX_BATCH_SIZE);
     }uau(7b124537f11a895e26e3c176241b15a72deb65c1}(sha(7b124537f11a895e26e3c176241b15a72deb65c1node_idEC_kwDOAjP5fdoAKDdiMTI0NTM3ZjExYTg5NWUyNmUzYzE3NjI0MWIxNWE3MmRlYjY1YzEcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-07-06T17:35:15Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-07-06T17:35:15ZumessageAutorelease 0.888.0

[skip ci]tree}(j (fdd1a43bbdb4b225fc8035b064da8ebb513787dcurl`https://api.github.com/repos/palantir/atlasdb/git/trees/fdd1a43bbdb4b225fc8035b064da8ebb513787dcuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7b124537f11a895e26e3c176241b15a72deb65c1
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmSm+1oACgkQhbrR8ip7mDBKfQD/bXWFXJdeR3etxG9ajh0DfhiI
mNyqBgl23yDQh5050O4A/1hbLaSTY3PVB2lVzGWflWtOi0zvH09NrRf5eOrDrAPF
=0uQb
-----END PGP SIGNATURE-----
payloadX0  tree fdd1a43bbdb4b225fc8035b064da8ebb513787dc
parent 0df1d2454a5fec722209f8b835f5e49f69dc6098
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1688664915 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1688664915 +0000

Autorelease 0.888.0

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/7b124537f11a895e26e3c176241b15a72deb65c1html_urlShttps://github.com/palantir/atlasdb/commit/7b124537f11a895e26e3c176241b15a72deb65c1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7b124537f11a895e26e3c176241b15a72deb65c1/commentsj }(loginsvc-autoreleaseidJ(j MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(j MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej	 6https://api.github.com/users/svc-autorelease/followersj	 Chttps://api.github.com/users/svc-autorelease/following{/other_user}j	 <https://api.github.com/users/svc-autorelease/gists{/gist_id}j	 Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j
	 :https://api.github.com/users/svc-autorelease/subscriptionsj	 1https://api.github.com/users/svc-autorelease/orgsj	 2https://api.github.com/users/svc-autorelease/reposj	 =https://api.github.com/users/svc-autorelease/events{/privacy}j	 <https://api.github.com/users/svc-autorelease/received_eventsj	 Userj	 uparents]}(j (0df1d2454a5fec722209f8b835f5e49f69dc6098j ^https://api.github.com/repos/palantir/atlasdb/commits/0df1d2454a5fec722209f8b835f5e49f69dc6098j Shttps://github.com/palantir/atlasdb/commit/0df1d2454a5fec722209f8b835f5e49f69dc6098uastats}(totalK 	additionsK 	deletionsK ufiles]}(j (bf394f216a79b7514789c9fbcff298de26735d54filename changelog/0.888.0/pr-6651.v2.ymlstatusrenamedj0	 K j1	 K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/7b124537f11a895e26e3c176241b15a72deb65c1/changelog%2F0.888.0%2Fpr-6651.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/7b124537f11a895e26e3c176241b15a72deb65c1/changelog%2F0.888.0%2Fpr-6651.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.888.0%2Fpr-6651.v2.yml?ref=7b124537f11a895e26e3c176241b15a72deb65c1previous_filename$changelog/@unreleased/pr-6651.v2.ymluau(5c2e89ee6f8d8b6daa95a4332001f219679e34a8}(sha(5c2e89ee6f8d8b6daa95a4332001f219679e34a8node_idEC_kwDOAjP5fdoAKDVjMmU4OWVlNmY4ZDhiNmRhYTk1YTQzMzIwMDFmMjE5Njc5ZTM0YTgcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-12T10:08:21Zu	committer}(jM	 	Tom PapkejO	 tpapke@palantir.comjQ	 2023-06-13T22:47:01ZumessageStore result in CSV filetree}(jE	 (7e03b9764d3ce548d0ce4b5fe030ba21e102d6eaurl`https://api.github.com/repos/palantir/atlasdb/git/trees/7e03b9764d3ce548d0ce4b5fe030ba21e102d6eauj]	 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5c2e89ee6f8d8b6daa95a4332001f219679e34a8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSI8eUACgkQmF9s0kaF
Iw1ZqAf/Q6irGasOKanemmlaq5SL3BLPiz/7rlQ9sMkcH71Jser30b5pZjqw8W4m
YzCrnAVevTowpgDIoOLS4nEY61rINeTrQoklVfFXfxb1pUugAQ7TaqgUGQZGIZMN
zJ43w/9yptM27+NmEWVvDyo8RZTlMfxWUyE68ysT+VEObP81bdn5X74cHl7ddma5
gpQDoeiFLCmZdRvD65tkXchDJXtRD2fXJ0fRktD4Qm1i8cdaJeY1epdvLEWkwQaW
npu2mefRord6XfQ6I//SntCZamT9dbs19nd6Xlo+JJHFDba/CQa2/uHO3FQgMDt9
8uBamRXJIVU4SeTy4QbIwgq9OR/hUg==
=dNut
-----END PGP SIGNATURE-----payloadtree 7e03b9764d3ce548d0ce4b5fe030ba21e102d6ea
parent abff28a62c23ef6ec2eee1d25af0881c29b30105
author Tom Papke <tpapke@palantir.com> 1686564501 +0100
committer Tom Papke <tpapke@palantir.com> 1686696421 +0100

Store result in CSV file
uuj]	 ^https://api.github.com/repos/palantir/atlasdb/commits/5c2e89ee6f8d8b6daa95a4332001f219679e34a8html_urlShttps://github.com/palantir/atlasdb/commit/5c2e89ee6f8d8b6daa95a4332001f219679e34a8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5c2e89ee6f8d8b6daa95a4332001f219679e34a8/commentsjK	 }(login	ToemmscheidJbojG	 MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j]	 &https://api.github.com/users/Toemmschejk	 https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujS	 }(jp	 	Toemmschejr	 JbojG	 MDQ6VXNlcjQzNjc1NDkwjt	 4https://avatars.githubusercontent.com/u/43675490?v=4jv	 h5j]	 &https://api.github.com/users/Toemmschejk	 https://github.com/Toemmschejy	 0https://api.github.com/users/Toemmsche/followersj{	 =https://api.github.com/users/Toemmsche/following{/other_user}j}	 6https://api.github.com/users/Toemmsche/gists{/gist_id}j	 =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j	 4https://api.github.com/users/Toemmsche/subscriptionsj	 +https://api.github.com/users/Toemmsche/orgsj	 ,https://api.github.com/users/Toemmsche/reposj	 7https://api.github.com/users/Toemmsche/events{/privacy}j	 6https://api.github.com/users/Toemmsche/received_eventsj	 Userj	 uparents]}(jE	 (abff28a62c23ef6ec2eee1d25af0881c29b30105j]	 ^https://api.github.com/repos/palantir/atlasdb/commits/abff28a62c23ef6ec2eee1d25af0881c29b30105jk	 Shttps://github.com/palantir/atlasdb/commit/abff28a62c23ef6ec2eee1d25af0881c29b30105uastats}(totalK	additionsK	deletionsKufiles](}(jE	 (9c63651449243d53015d6283a07f30e484aae3bbfilenamelock-benchmark/build.gradlestatusmodifiedj	 Kj	 K changesKblob_urlohttps://github.com/palantir/atlasdb/blob/5c2e89ee6f8d8b6daa95a4332001f219679e34a8/lock-benchmark%2Fbuild.gradleraw_urlnhttps://github.com/palantir/atlasdb/raw/5c2e89ee6f8d8b6daa95a4332001f219679e34a8/lock-benchmark%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-benchmark%2Fbuild.gradle?ref=5c2e89ee6f8d8b6daa95a4332001f219679e34a8patch@@ -11,6 +11,8 @@ dependencies {
 }
 
 jmh {
+    resultsFile = project.file("${project.buildDir}/reports/jmh/results.txt")
+    resultFormat = 'CSV'
     profilers = ["gc"]
     jvmArgs = ["-XX:+UseShenandoahGC"]
 }u}(jE	 (4cc7dd712f5f224364d4e3aa53626d3a7c2fed51j	 Ulock-benchmark/src/jmh/java/com/palantir/atlasdb/state/LockServiceBenchmarkState.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/5c2e89ee6f8d8b6daa95a4332001f219679e34a8/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.javaj	 https://github.com/palantir/atlasdb/raw/5c2e89ee6f8d8b6daa95a4332001f219679e34a8/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.java?ref=5c2e89ee6f8d8b6daa95a4332001f219679e34a8j	 X  @@ -44,7 +44,7 @@ public class LockServiceBenchmarkState {
     @Param({"true", "false"})
     public boolean recordThreadInfo;
 
-    @Param({"20", "1000"})
+    @Param({"20", "10000"})
     public int locksPerRequest;
 
     @Param({"5", "0"})
@@ -56,7 +56,7 @@ public class LockServiceBenchmarkState {
     @Param({"10000"})
     public int numHeldLocksAtBeginning;
 
-    @Param("10000")
+    @Param("1000000")
     public int numAvailableLocks;
 
     @Param({"nonBlocking_asManyAsPossible"})ueu(ca39726306d4cc5051d714ac5a6404572f650764}(sha(ca39726306d4cc5051d714ac5a6404572f650764node_idEC_kwDOAjP5fdoAKGNhMzk3MjYzMDZkNGNjNTA1MWQ3MTRhYzVhNjQwNDU3MmY2NTA3NjQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-18T10:57:04Zu	committer}(j	 
Sam Kramerj	 skramer@palantir.comj	 2023-04-18T10:57:04Zumessagetest name can be bettertree}(j	 (eb2aaef7e54cfbcd208fbe273ce8ea48eadd24c4url`https://api.github.com/repos/palantir/atlasdb/git/trees/eb2aaef7e54cfbcd208fbe273ce8ea48eadd24c4uj	 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ca39726306d4cc5051d714ac5a6404572f650764
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ+d4AACgkQmPPOpKR4
XS293Af/TcESStMhdYVORMv9A3HVgvMT5htLdTMZ1Mhw3nccusapM9JyVKiNxSsc
oTEbuEEeZh3KY2X5EF7hwEqIG4O7hgwTn6P6J/fbh8jJNEmJmS45jZAgx7PCYxvB
PM9AKNcALjmv9wJ63/OkFtkqN6k4bfbk2Whzualsx84e2e5wf/5DsUtkE/cBrl0t
WcTHVMN/x3g+ocJ2Du8qVymydhCs/qQQqSwlp8lS66kJNva0m9OixhdaNXryCWZD
FpTr8nSVWqa1Wi4qGERs7Q4wahsLxHedxhkP3wF3eI4vj7M4P3sX02jhAwUHAcDL
TVLH8ejRTRMunig6lDMN/D8B5v5KFQ==
=CTFa
-----END PGP SIGNATURE-----payloadtree eb2aaef7e54cfbcd208fbe273ce8ea48eadd24c4
parent 81c62a69f33bbea116e4a7c5eda88a999cd696ca
author Sam Kramer <skramer@palantir.com> 1681815424 +0100
committer Sam Kramer <skramer@palantir.com> 1681815424 +0100

test name can be better
uuj	 ^https://api.github.com/repos/palantir/atlasdb/commits/ca39726306d4cc5051d714ac5a6404572f650764html_urlShttps://github.com/palantir/atlasdb/commit/ca39726306d4cc5051d714ac5a6404572f650764comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ca39726306d4cc5051d714ac5a6404572f650764/commentsj	 }(login
Sam-KrameridJ^2_ j	 MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j	 'https://api.github.com/users/Sam-Kramerj	 https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj	 }(j	 
Sam-Kramerj	 J^2_ j	 MDQ6VXNlcjYyMzg4MTQ=j	 3https://avatars.githubusercontent.com/u/6238814?v=4j	 h5j	 'https://api.github.com/users/Sam-Kramerj	 https://github.com/Sam-Kramerj	 1https://api.github.com/users/Sam-Kramer/followersj	 >https://api.github.com/users/Sam-Kramer/following{/other_user}j	 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j	 >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 
 5https://api.github.com/users/Sam-Kramer/subscriptionsj
 ,https://api.github.com/users/Sam-Kramer/orgsj
 -https://api.github.com/users/Sam-Kramer/reposj
 8https://api.github.com/users/Sam-Kramer/events{/privacy}j
 7https://api.github.com/users/Sam-Kramer/received_eventsj

 Userj
 uparents]}(j	 (81c62a69f33bbea116e4a7c5eda88a999cd696caj	 ^https://api.github.com/repos/palantir/atlasdb/commits/81c62a69f33bbea116e4a7c5eda88a999cd696caj	 Shttps://github.com/palantir/atlasdb/commit/81c62a69f33bbea116e4a7c5eda88a999cd696cauastats}(totalK	additionsK	deletionsKufiles]}(j	 (bebd363c297d5d39be5bf65370b04a1f6f428c2efilenameatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitorTest.javastatusmodifiedj&
 Kj'
 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ca39726306d4cc5051d714ac5a6404572f650764/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ca39726306d4cc5051d714ac5a6404572f650764/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javacontents_urlX  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.java?ref=ca39726306d4cc5051d714ac5a6404572f650764patchX  @@ -56,7 +56,7 @@ public void maybeCommittedTransactionReturnsEmptyWhenNotCommitted() {
     }
 
     @Test
-    public void maybeCommittedTransactionReturnsWhenCommitted() {
+    public void maybeCommittedTransactionReturnsFullyWitnessedWhenCommitted() {
         when(transactionStore.isCommitted(anyLong())).thenReturn(true);
         assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
                 .contains(MAYBE_WITNESSED_TRANSACTION.toFullyWitnessed());uau(68ab4a64463793a37e88ab76ac671ffe59c3a897}(sha(68ab4a64463793a37e88ab76ac671ffe59c3a897node_idEC_kwDOAjP5fdoAKDY4YWI0YTY0NDYzNzkzYTM3ZTg4YWI3NmFjNjcxZmZlNTljM2E4OTccommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-25T17:23:27Zu	committer}(jC
 Jeremy KongjE
 jkong@palantir.comjG
 2023-04-25T17:23:27Zumessage
debug logstree}(j;
 (1ef532cc7020d1e234b49eb62c46c85d568ba9f8url`https://api.github.com/repos/palantir/atlasdb/git/trees/1ef532cc7020d1e234b49eb62c46c85d568ba9f8ujS
 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/68ab4a64463793a37e88ab76ac671ffe59c3a897
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRIDI8ACgkQTLdFKain
zjys+gf/VV7oL+Byi9r7IQwmYP6b0RmaJQqKTJwfnW+HmT+smRoCYLYvJnjiOnte
CupJlqHjhUA/Rg35FT5bYwoPdIHwZFURDdEvcGvS7/KuoC/DciKlny2tAru6DQvS
+QcSwa8Dw+nYPElYnAZATAEo0R2d/Mfori02raijgvsYL+8XVJpMUudsWw4RePM3
FPmelLWOY7asbCkn6ZKl/cD7XbJCHYBM3wvcCe2tiGmjjBXw1pAaxit5hGtiAur9
gTCCUwDTIJLQ8LqU+5X2AAIxU+jUWSbjYkBS7fmb37ro22Dao6pVshwkWB0EoUur
+AG8HDOY1ak43SDAjgoW0OSD8C6e5Q==
=mtDj
-----END PGP SIGNATURE-----payloadtree 1ef532cc7020d1e234b49eb62c46c85d568ba9f8
parent 5824fe79eeaf1e1fced90082b4de622241031c28
author Jeremy Kong <jkong@palantir.com> 1682443407 +0100
committer Jeremy Kong <jkong@palantir.com> 1682443407 +0100

debug logs
uujS
 ^https://api.github.com/repos/palantir/atlasdb/commits/68ab4a64463793a37e88ab76ac671ffe59c3a897html_urlShttps://github.com/palantir/atlasdb/commit/68ab4a64463793a37e88ab76ac671ffe59c3a897comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/68ab4a64463793a37e88ab76ac671ffe59c3a897/commentsjA
 }(login
jeremyk-91idJZ j=
 MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jS
 'https://api.github.com/users/jeremyk-91ja
 https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujI
 }(jf
 
jeremyk-91jh
 JZ j=
 MDQ6VXNlcjU5NTU1MTA=jj
 3https://avatars.githubusercontent.com/u/5955510?v=4jl
 h5jS
 'https://api.github.com/users/jeremyk-91ja
 https://github.com/jeremyk-91jo
 1https://api.github.com/users/jeremyk-91/followersjq
 >https://api.github.com/users/jeremyk-91/following{/other_user}js
 7https://api.github.com/users/jeremyk-91/gists{/gist_id}ju
 >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jw
 5https://api.github.com/users/jeremyk-91/subscriptionsjy
 ,https://api.github.com/users/jeremyk-91/orgsj{
 -https://api.github.com/users/jeremyk-91/reposj}
 8https://api.github.com/users/jeremyk-91/events{/privacy}j
 7https://api.github.com/users/jeremyk-91/received_eventsj
 Userj
 uparents]}(j;
 (5824fe79eeaf1e1fced90082b4de622241031c28jS
 ^https://api.github.com/repos/palantir/atlasdb/commits/5824fe79eeaf1e1fced90082b4de622241031c28ja
 Shttps://github.com/palantir/atlasdb/commit/5824fe79eeaf1e1fced90082b4de622241031c28uastats}(totalK	additionsK	deletionsKufiles]}(j;
 (5b1dea61330042106ab5e9faf769ce1087fceba8filenamehatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIterator.javastatusmodifiedj
 Kj
 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/68ab4a64463793a37e88ab76ac671ffe59c3a897/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javaraw_urlhttps://github.com/palantir/atlasdb/raw/68ab4a64463793a37e88ab76ac671ffe59c3a897/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.java      contents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.java?ref=68ab4a64463793a37e88ab76ac671ffe59c3a897patchX  @@ -70,7 +70,8 @@ int getBestBatchSize() {
             // If everything we've seen has been deleted, we should be aggressive about getting more rows.
             batchSize = maxNewBatchSize;
             if (log.isDebugEnabled()) {
-                log.debug("Everything in a batch was deleted!",
+                log.debug(
+                        "Everything in a batch was deleted!",
                         SafeArg.of("previousBatchSize", originalBatchSize),
                         SafeArg.of("newBatchSize", batchSize),
                         SafeArg.of("numReturned", numReturned));
@@ -79,7 +80,8 @@ int getBestBatchSize() {
             batchSize = Math.min(
                     (long) Math.ceil(originalBatchSize * (numReturned / (double) numNotDeleted)), maxNewBatchSize);
             if (log.isDebugEnabled()) {
-                log.debug("Recalculating the batch size!",
+                log.debug(
+                        "Recalculating the batch size!",
                         SafeArg.of("previousBatchSize", originalBatchSize),
                         SafeArg.of("newBatchSize", batchSize),
                         SafeArg.of("numReturned", numReturned),uau(498db690c29e4f86d2df02b0868bfed9bf90aca4}(sha(498db690c29e4f86d2df02b0868bfed9bf90aca4node_idEC_kwDOAjP5fdoAKDQ5OGRiNjkwYzI5ZTRmODZkMmRmMDJiMDg2OGJmZWQ5YmY5MGFjYTQcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-15T14:27:07Zu	committer}(j
 svc-autoreleasej
 -pd-foundry-infrastructure-notify@palantir.comj
 2023-05-15T14:27:07Zumessage"Autorelease 0.854.0-rc4

[skip ci]tree}(j
 (60a9b09999bbc278f62da60f99ed20c6192976f2url`https://api.github.com/repos/palantir/atlasdb/git/trees/60a9b09999bbc278f62da60f99ed20c6192976f2uj
 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/498db690c29e4f86d2df02b0868bfed9bf90aca4
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRiQTwACgkQhbrR8ip7mDDHuQD/aUoC0kCLc9jWb6w75opYsEyV
GSWt6jq8NKuH5JU4nJkA/2LJK68OPOx4xacFkdTAaz+CVDeI18QMrQysUCVkroX3
=oAbC
-----END PGP SIGNATURE-----
payloadX(  tree 60a9b09999bbc278f62da60f99ed20c6192976f2
parent e883300993542228fb532648ab8521e1ee9e6979
author aalouane <30903736+ergo14@users.noreply.github.com> 1684160827 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684160827 +0000

Autorelease 0.854.0-rc4

[skip ci]uuj
 ^https://api.github.com/repos/palantir/atlasdb/commits/498db690c29e4f86d2df02b0868bfed9bf90aca4html_urlShttps://github.com/palantir/atlasdb/commit/498db690c29e4f86d2df02b0868bfed9bf90aca4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/498db690c29e4f86d2df02b0868bfed9bf90aca4/commentsj
 }(loginergo14idJj
 MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j
 #https://api.github.com/users/ergo14j
 https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj
 }(j
 svc-autoreleasej
 J(j
 MDQ6VXNlcjUxNzE4MzQ2j
 4https://avatars.githubusercontent.com/u/51718346?v=4j
 h5j
 ,https://api.github.com/users/svc-autoreleasej
 "https://github.com/svc-autoreleasej
 6https://api.github.com/users/svc-autorelease/followersj
 Chttps://api.github.com/users/svc-autorelease/following{/other_user}j
 <https://api.github.com/users/svc-autorelease/gists{/gist_id}j
 Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j
 :https://api.github.com/users/svc-autorelease/subscriptionsj
 1https://api.github.com/users/svc-autorelease/orgsj
 2https://api.github.com/users/svc-autorelease/reposj
 =https://api.github.com/users/svc-autorelease/events{/privacy}j
 <https://api.github.com/users/svc-autorelease/received_eventsj
 Userj
 uparents]}(j
 (e883300993542228fb532648ab8521e1ee9e6979j
 ^https://api.github.com/repos/palantir/atlasdb/commits/e883300993542228fb532648ab8521e1ee9e6979j
 Shttps://github.com/palantir/atlasdb/commit/e883300993542228fb532648ab8521e1ee9e6979uastats}(totalK 	additionsK 	deletionsK ufiles]u(0a37561a2a3b13a26ab442f395bc681223f9330a}(sha(0a37561a2a3b13a26ab442f395bc681223f9330anode_idEC_kwDOAjP5fdoAKDBhMzc1NjFhMmEzYjEzYTI2YWI0NDJmMzk1YmM2ODEyMjNmOTMzMGEcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-09T10:08:59Zu	committer}(j" 	Tom Papkej$ tpapke@palantir.comj& 2023-06-09T10:08:59ZumessageBAdd refresh to lock service benchmark
Reconfigure parameter rangestree}(j (646b14de6472ff53b9a44e2e33032a1e4097c9bfurl`https://api.github.com/repos/palantir/atlasdb/git/trees/646b14de6472ff53b9a44e2e33032a1e4097c9bfuj2 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0a37561a2a3b13a26ab442f395bc681223f9330a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSC+jsACgkQmF9s0kaF
Iw36hAf/aBsm1dnBcJ/BXkk/oLP7FCtzdhY7a9IfGH+rLCmBtQ4ByYz0zXnXSClO
FC5msaMAssUHv0UL8Vv8b2aSOV5uCdBhBuSVmws503c+HZ2+e9GrMzJopvyXHS8b
6BZYcU5ftgOjhM7P9n3VffEhZsZhs5JLIygUeYLupwiBwSQiLe7fSfV57sqoB72S
NIeDLGBcA0DwXtf94ifW5J1yGDpVZwcK0K/XMxzv0/BTQ95jEM6MDlHIJohQFGSo
6bAvIW68ZcS0e3pnbqNYHAVoVeJwgWpUI0ZlFp5neEJ55P3dck/UoI71CCv4HZQZ
b88kiqx0TZ3oPxSrnfaF9GzV+OWWSg==
=JtcJ
-----END PGP SIGNATURE-----payloadX  tree 646b14de6472ff53b9a44e2e33032a1e4097c9bf
parent 40bd99fb7ac1441b5345c620c8664b8bb0e928ac
author Tom Papke <tpapke@palantir.com> 1686305339 +0100
committer Tom Papke <tpapke@palantir.com> 1686305339 +0100

Add refresh to lock service benchmark
Reconfigure parameter ranges
uuj2 ^https://api.github.com/repos/palantir/atlasdb/commits/0a37561a2a3b13a26ab442f395bc681223f9330ahtml_urlShttps://github.com/palantir/atlasdb/commit/0a37561a2a3b13a26ab442f395bc681223f9330acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0a37561a2a3b13a26ab442f395bc681223f9330a/commentsj  }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j2 &https://api.github.com/users/Toemmschej@ https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj( }(jE 	ToemmschejG Jboj MDQ6VXNlcjQzNjc1NDkwjI 4https://avatars.githubusercontent.com/u/43675490?v=4jK h5j2 &https://api.github.com/users/Toemmschej@ https://github.com/ToemmschejN 0https://api.github.com/users/Toemmsche/followersjP =https://api.github.com/users/Toemmsche/following{/other_user}jR 6https://api.github.com/users/Toemmsche/gists{/gist_id}jT =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jV 4https://api.github.com/users/Toemmsche/subscriptionsjX +https://api.github.com/users/Toemmsche/orgsjZ ,https://api.github.com/users/Toemmsche/reposj\ 7https://api.github.com/users/Toemmsche/events{/privacy}j^ 6https://api.github.com/users/Toemmsche/received_eventsj` Userjb uparents]}(j (40bd99fb7ac1441b5345c620c8664b8bb0e928acj2 ^https://api.github.com/repos/palantir/atlasdb/commits/40bd99fb7ac1441b5345c620c8664b8bb0e928acj@ Shttps://github.com/palantir/atlasdb/commit/40bd99fb7ac1441b5345c620c8664b8bb0e928acuastats}(totalK=	additionsK%	deletionsKufiles](}(j (1b540ce221002c058fa48fbd185044d7a31adbc3filenamelock-benchmark/build.gradlestatusmodifiedj| Kj} K changesKblob_urlohttps://github.com/palantir/atlasdb/blob/0a37561a2a3b13a26ab442f395bc681223f9330a/lock-benchmark%2Fbuild.gradleraw_urlnhttps://github.com/palantir/atlasdb/raw/0a37561a2a3b13a26ab442f395bc681223f9330a/lock-benchmark%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-benchmark%2Fbuild.gradle?ref=0a37561a2a3b13a26ab442f395bc681223f9330apatchX:  @@ -11,6 +11,11 @@ dependencies {
     compileOnly 'org.openjdk.jmh:jmh-generator-annprocess'
 }
 
+jmh {
+    profilers = ["gc"]
+    jvmArgs = ["-XX:+UseShenandoahGC"]
+}
+
 tasks.jmhCompileGeneratedClasses {
     options.annotationProcessorPath = configurations.errorprone
     options.errorprone.enabled = trueu}(j (6f33b3352aa87a38e900ed97b9e0f0cf7d8f96a9j Jlock-benchmark/src/jmh/java/com/palantir/atlasdb/LockServiceBenchmark.javaj modifiedj| K
j} Kj Kj https://github.com/palantir/atlasdb/blob/0a37561a2a3b13a26ab442f395bc681223f9330a/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FLockServiceBenchmark.javaj https://github.com/palantir/atlasdb/raw/0a37561a2a3b13a26ab442f395bc681223f9330a/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FLockServiceBenchmark.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FLockServiceBenchmark.java?ref=0a37561a2a3b13a26ab442f395bc681223f9330aj X"  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb;
 
+import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.state.LockServiceBenchmarkState;
 import com.palantir.atlasdb.state.ThreadIndex;
 import com.palantir.lock.LockClient;
@@ -31,15 +32,15 @@
 import org.openjdk.jmh.annotations.Warmup;
 
 @SuppressWarnings("checkstyle:HideUtilityClassConstructor")
-@Measurement(iterations = 2)
+@Measurement(iterations = 1)
 @Warmup(iterations = 1)
 @Fork(2)
 public class LockServiceBenchmark {
 
     @BenchmarkMode(Mode.Throughput)
     @Benchmark
     @Threads(4)
-    public int lockSleepUnlockMultiThreaded(LockServiceBenchmarkState state, ThreadIndex threadIndex) {
+    public int lockSleepRefreshUnlockMultiThreaded(LockServiceBenchmarkState state, ThreadIndex threadIndex) {
         final LockClient client = LockClient.of("Benchmark Client " + threadIndex.getThreadId());
         final LockService lockService = state.getLockService();
         final LockRequest lockRequest = state.generateLockRequest();
@@ -48,8 +49,13 @@ public int lockSleepUnlockMultiThreaded(LockServiceBenchmarkState state, ThreadI
             LockResponse lockResponse = lockService.lockWithFullLockResponse(client, lockRequest);
 
             // pretend we are doing something with them ...
-            if (state.sleepMs > 0) {
-                Thread.sleep(state.sleepMs);
+            for (int i = 0; i < state.refreshCount + 1; i++) {
+                if (state.sleepMs > 0) {
+                    Thread.sleep(state.sleepMs);
+                }
+                if (i < state.refreshCount && lockResponse.getLockRefreshToken() != null) {
+                    lockService.refreshLockRefreshTokens(ImmutableList.of(lockResponse.getLockRefreshToken()));
+                }
             }
 
             // give them backu}(j (9f9e77d8e5d8c0227cee0e86d90ba4e17cb91591j Ulock-benchmark/src/jmh/java/com/palantir/atlasdb/state/LockServiceBenchmarkState.javaj modifiedj| Kj} Kj K)j https://github.com/palantir/atlasdb/blob/0a37561a2a3b13a26ab442f395bc681223f9330a/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.javaj https://github.com/palantir/atlasdb/raw/0a37561a2a3b13a26ab442f395bc681223f9330a/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.java?ref=0a37561a2a3b13a26ab442f395bc681223f9330aj X  @@ -41,26 +41,32 @@
 @State(Scope.Benchmark)
 public class LockServiceBenchmarkState {
     @Param({"true", "false"})
-    public boolean collectAndLogThreadInfo;
+    public boolean collectThreadInfo;
 
     @Param("20")
     public int locksPerRequest;
 
-    @Param({"50", "5", "0"})
+    @Param({"5"})
     public int sleepMs;
 
+    @Param({"2"})
+    public int refreshCount;
+
     private Supplier<LockRequest> lockRequestSupplier;
 
     public Random rand = new Random();
 
     private ThreadAwareCloseableLockService lockService;
 
-    @Param("1000000")
+    @Param({"1000000", "10000"})
     public int numHeldLocksAtBeginning;
 
     @Param("10000")
     public int numAvailableLocks;
 
+    @Param({"100"})
+    public int threadInfoSnapshotIntervalMillis;
+
     private List<LockDescriptor> heldLocksAtBeginning;
 
     private List<LockDescriptor> availableLocks;
@@ -76,18 +82,6 @@ private LockRequest nonBlocking_asManyAsPossible_randomMode() {
         return LockRequest.builder(locks).lockAsManyAsPossible().doNotBlock().build();
     }
 
-    public void lockExclusively(LockDescriptor lockDescriptor) {
-        SortedMap<LockDescriptor, LockMode> locks = new TreeMap<>();
-        locks.put(lockDescriptor, LockMode.WRITE);
-        LockRequest lockRequest =
-                LockRequest.builder(locks).lockAsManyAsPossible().doNotBlock().build();
-        try {
-            lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest);
-        } catch (InterruptedException e) {
-            throw new RuntimeException(e);
-        }
-    }
-
     @Setup
     public void setup() {
         this.heldLocksAtBeginning = IntStream.range(0, numHeldLocksAtBeginning)
@@ -98,13 +92,22 @@ public void setup() {
                 .collect(Collectors.toUnmodifiableList());
         this.lockRequestSupplier = this::nonBlocking_asManyAsPossible_randomMode;
         this.lockService = LockServiceImpl.create(LockServerOptions.builder()
-                .collectThreadInfo(collectAndLogThreadInfo)
-                // We want to measure the worst-case scenario where our background task is constantly running
-                .threadInfoSnapshotInterval(SimpleTimeDuration.of(0, TimeUnit.MILLISECONDS))
+                .collectThreadInfo(collectThreadInfo)
+                .threadInfoSnapshotInterval(
+                        SimpleTimeDuration.of(threadInfoSnapshotIntervalMillis, TimeUnit.MILLISECONDS))
                 .isStandaloneServer(false)
                 .build());
+
+        SortedMap<LockDescriptor, LockMode> locks = new TreeMap<>();
         for (LockDescriptor lock : heldLocksAtBeginning) {
-            lockExclusively(lock);
+            locks.put(lock, LockMode.WRITE);
+        }
+        LockRequest lockRequest =
+                LockRequest.builder(locks).lockAsManyAsPossible().doNotBlock().build();
+        try {
+            lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest);
+        } catch (InterruptedException e) {
+            throw new RuntimeException(e);
         }
     }
 u}(j (f448ce6e7cdea1e21b969ca6dd5ac401b08c0056j Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj modifiedj| K j} Kj Kj https://github.com/palantir/atlasdb/blob/0a37561a2a3b13a26ab442f395bc681223f9330a/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://github.com/palantir/atlasdb/raw/0a37561a2a3b13a26ab442f395bc681223f9330a/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=0a37561a2a3b13a26ab442f395bc681223f9330aj @@ -86,7 +86,6 @@
 import com.palantir.nylon.threads.ThreadNames;
 import com.palantir.util.JMXUtils;
 import com.palantir.util.Ownable;
-import com.palantir.util.Pair;
 import java.math.BigInteger;
 import java.time.Instant;
 import java.util.ArrayDeque;ueu(1e730f6c9ef11f4cf368415f8e5ed6f4dc65d1e2}(sha(1e730f6c9ef11f4cf368415f8e5ed6f4dc65d1e2node_idEC_kwDOAjP5fdoAKDFlNzMwZjZjOWVmMTFmNGNmMzY4NDE1ZjhlNWVkNmY0ZGM2NWQxZTIcommit}(author}(name
Steven Berleremailsberler@palantir.comdate2023-05-26T18:27:52Zu	committer}(j 
Steven Berlerj sberler@palantir.comj 2023-05-26T18:27:52Zumessagefix query commenttree}(j (51fe330df1ef359cffcaef281c6fc4ac4b6e8544url`https://api.github.com/repos/palantir/atlasdb/git/trees/51fe330df1ef359cffcaef281c6fc4ac4b6e8544uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1e730f6c9ef11f4cf368415f8e5ed6f4dc65d1e2
comment_countK verification}(verifiedreasonvalid	signatureX@  -----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEw59h1YMk8taw6E9gP6wKgcBSQL8FAmRw+jIACgkQP6wKgcBS
QL/cZhAAhMAREVfP3hWytzf5d2vl+e8u3ChLh/pQtKL+OfuWclMYbFVo0777HL9a
AeoyB22DySaNo2bzUQIJZkg0IZVRY5V5hRlh2urDerbbGKe1/Oh0wsNrmdWPxll8
oBztjQoPoWkDppF7jprLRJtha5yW+Qs10nLQjyHe0HhkbhEDZ1UzG1MazJ5xaPAY
Ulxq10ej5sJeB/OPy18V2EGO+7Hd7R1EzvSttA+GaIsD90Z/mU2FdetXpSbZsQui
cyIQnktRM8XlVhkGQQUtC2t3evKHfijE2Bmwh8wfODJPsQsnY73RxGGCvzkIrgSe
ckFlvME6l2UBzX6Y4ourWWDfZ0QUVd7hPuHDq4Q02vJ6YFtv2LwcbV5olD4hQt0q
pd3cNb7XMQauTVZgEfKAl9cPlWiHQyZRwLK0dFTa7AQWesV/c2x8eKZN2SBmnU7i
ROdIHSDBOz2MCTLKNPoslqGSewNZ+cqiTwBM+GLYOZKA94el5E5siTcpjZjgvTLB
VTHkLnxMJJi+R5Kgo32kOOtnmXFlX9V7jsTHEMR8mxVakeNxQiuDeWPEJhPlSnxS
/WXNvFJw/HuCD3Ucp5MeJZt7/LgTL5/4Y/SfN2M3go8SUcEu1+dXdwZC7S0t7R5r
bJ2abboVDHbur0hw5Kwum73woMB+f/vtztbuuenYQ89C2cjs98U=
=OSjF
-----END PGP SIGNATURE-----payloadtree 51fe330df1ef359cffcaef281c6fc4ac4b6e8544
parent d86b24fa91436ec0ce2e3f848d58f73b173d553a
author Steven Berler <sberler@palantir.com> 1685125672 -0700
committer Steven Berler <sberler@palantir.com> 1685125672 -0700

fix query comment
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/1e730f6c9ef11f4cf368415f8e5ed6f4dc65d1e2html_urlShttps://github.com/palantir/atlasdb/commit/1e730f6c9ef11f4cf368415f8e5ed6f4dc65d1e2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1e730f6c9ef11f4cf368415f8e5ed6f4dc65d1e2/commentsj }(loginberleridJ j MDQ6VXNlcjEwMzA2Mjc=
avatar_url3https://avatars.githubusercontent.com/u/1030627?v=4gravatar_idh5j #https://api.github.com/users/berlerj https://github.com/berler
followers_url-https://api.github.com/users/berler/followers
following_url:https://api.github.com/users/berler/following{/other_user}	gists_url3https://api.github.com/users/berler/gists{/gist_id}starred_url:https://api.github.com/users/berler/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/berler/subscriptionsorganizations_url(https://api.github.com/users/berler/orgs	repos_url)https://api.github.com/users/berler/repos
events_url4https://api.github.com/users/berler/events{/privacy}received_events_url3https://api.github.com/users/berler/received_eventstypeUser
site_adminuj }(j berlerj J j MDQ6VXNlcjEwMzA2Mjc=j 3https://avatars.githubusercontent.com/u/1030627?v=4j h5j #https://api.github.com/users/berlerj https://github.com/berlerj -https://api.github.com/users/berler/followersj :https://api.github.com/users/berler/following{/other_user}j 3https://api.github.com/users/berler/gists{/gist_id}j :https://api.github.com/users/berler/starred{/owner}{/repo}j 1https://api.github.com/users/berler/subscriptionsj (https://api.github.com/users/berler/orgsj )https://api.github.com/users/berler/reposj 4https://api.github.com/users/berler/events{/privacy}j 3https://api.github.com/users/berler/received_eventsj Userj uparents]}(j (d86b24fa91436ec0ce2e3f848d58f73b173d553aj ^https://api.github.com/repos/palantir/atlasdb/commits/d86b24fa91436ec0ce2e3f848d58f73b173d553aj Shttps://github.com/palantir/atlasdb/commit/d86b24fa91436ec0ce2e3f848d58f73b173d553auastats}(totalK	additionsK	deletionsKufiles]}(j (08cd766747be7ea89f3186414b112d6fff840236filenameiatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleOverflowWriteTable.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/1e730f6c9ef11f4cf368415f8e5ed6f4dc65d1e2/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1e730f6c9ef11f4cf368415f8e5ed6f4dc65d1e2/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.java?ref=1e730f6c9ef11f4cf368415f8e5ed6f4dc65d1e2patchXT  @@ -408,7 +408,7 @@ private void deleteAllTimestampsOverflow(String overflowTable, List<Object[]> ar
         String shortTableName = oraclePrefixedTableNames.get(tableRef, conns);
         conns.get()
                 .updateManyUnregisteredQuery(
-                        " /* DELETE_ONE_OVERFLOW (" + overflowTable + ") */"
+                        " /* DELETE_ALL_TS_OVERFLOW (" + overflowTable + ") */"
                                 + " DELETE"
                                 + " /*+"
                                 + "   INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ")"uau(2ef80dfed23989e3f3b95bbdcdc932c2bcdf3281}(sha(2ef80dfed23989e3f3b95bbdcdc932c2bcdf3281node_idEC_kwDOAjP5fdoAKDJlZjgwZGZlZDIzOTg5ZTNmM2I5NWJiZGNkYzkzMmMyYmNkZjMyODEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-18T15:36:54Zu	committer}(j( Jeremy Kongj* jkong@palantir.comj, 2023-05-18T15:36:54Zumessagespotlesstree}(j  (3fdf3b5d6a87676ff14851c2691f103ab4444881url`https://api.github.com/repos/palantir/atlasdb/git/trees/3fdf3b5d6a87676ff14851c2691f103ab4444881uj8 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2ef80dfed23989e3f3b95bbdcdc932c2bcdf3281
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRmRhYACgkQTLdFKain
zjziuAf9FzlG8YFZAcCCI+eJIO9a6jgk+OAs5ZBuX9nF2dc6AUvurnyxD5qLvdLV
86UmvbF0QeYQvvk0If0M4eaRlzyd74E7dB2eVzKg6pqAyjb8cEVtvDZ1rw06w6UV
O3mrGrbf/A/rM9K+vffknfWgp+JK1OnnpbGc7Mvc29B+tOjXF8DCQhkxX28/oO6V
/kL22WYObq7MHZN7ezXNmQ9iaZK5+gj7LfmedQFncTx5ruaO6pzetO1I3BpxLtQn
uhoXK2jcPiUlA8KdHuB9tEfwGbbjOVYLfLlDBD9U4Y31YJU4HJ+bP5bOXahPZEyt
rm4I6ZQTfIJEuMU6H15LwJ4DpwLGeg==
=4Kqc
-----END PGP SIGNATURE-----payloadtree 3fdf3b5d6a87676ff14851c2691f103ab4444881
parent 55a63fcbd4fe8849ad0850dd9ebe1fde671071b5
author Jeremy Kong <jkong@palantir.com> 1684424214 +0100
committer Jeremy Kong <jkong@palantir.com> 1684424214 +0100

spotless
uuj8 ^https://api.github.com/repos/palantir/atlasdb/commits/2ef80dfed23989e3f3b95bbdcdc932c2bcdf3281html_urlShttps://github.com/palantir/atlasdb/commit/2ef80dfed23989e3f3b95bbdcdc932c2bcdf3281comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2ef80dfed23989e3f3b95bbdcdc932c2bcdf3281/commentsj& }(login
jeremyk-91idJZ j" MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j8 'https://api.github.com/users/jeremyk-91jF https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj. }(jK 
jeremyk-91jM JZ j" MDQ6VXNlcjU5NTU1MTA=jO 3https://avatars.githubusercontent.com/u/5955510?v=4jQ h5j8 'https://api.github.com/users/jeremyk-91jF https://github.com/jeremyk-91jT 1https://api.github.com/users/jeremyk-91/followersjV >https://api.github.com/users/jeremyk-91/following{/other_user}jX 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jZ >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j\ 5https://api.github.com/users/jeremyk-91/subscriptionsj^ ,https://api.github.com/users/jeremyk-91/orgsj` -https://api.github.com/users/jeremyk-91/reposjb 8https://api.github.com/users/jeremyk-91/events{/privacy}jd 7https://api.github.com/users/jeremyk-91/received_eventsjf Userjh uparents]}(j  (55a63fcbd4fe8849ad0850dd9ebe1fde671071b5j8 ^https://api.github.com/repos/palantir/atlasdb/commits/55a63fcbd4fe8849ad0850dd9ebe1fde671071b5jF Shttps://github.com/palantir/atlasdb/commit/55a63fcbd4fe8849ad0850dd9ebe1fde671071b5uastats}(totalK	additionsK	deletionsKufiles]}(j  (23f7cdf3e109a04bfc990a4bcc2877fe61646ad8filenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/2ef80dfed23989e3f3b95bbdcdc932c2bcdf3281/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2ef80dfed23989e3f3b95bbdcdc932c2bcdf3281/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=2ef80dfed23989e3f3b95bbdcdc932c2bcdf3281patchXq  @@ -22,8 +22,8 @@
 import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.MoreExecutors;
-import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
 import com.google.common.util.concurrent.Uninterruptibles;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.atlasdb.workload.background.BackgroundCassandraJob;
@@ -55,8 +55,8 @@
 import io.dropwizard.lifecycle.setup.LifecycleEnvironment;
 import io.dropwizard.setup.Bootstrap;
 import io.dropwizard.setup.Environment;
-import java.util.List;
 import java.time.Instant;
+import java.util.List;
 import java.util.Map;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;uau(099abb342357f25341aec87c54c4c656e95a7c0e}(sha(099abb342357f25341aec87c54c4c656e95a7c0enode_idEC_kwDOAjP5fdoAKDA5OWFiYjM0MjM1N2YyNTM0MWFlYzg3YzU0YzRjNjU2ZTk1YTdjMGUcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-12T15:31:55Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-06-12T15:33:19Zumessage can't skip lock check on getRowstree}(j (fc59642ff2fff11bd4def9e9f734f7f2ba2b51bdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/fc59642ff2fff11bd4def9e9f734f7f2ba2b51bduj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/099abb342357f25341aec87c54c4c656e95a7c0e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSHOr8ACgkQJd22kJ7J
GiwPxggAqxhMrmTvIiNx7d2njiRLkD681TxQUCGY2n3D5FRgA3kyjaxarV6srjn9
v446SLhhAjkQTa3zBDy6mux6ra7b3eenpJ8DupbfHPgHr+vu3ODUMzK/QOMO8IPn
ioVfQxFBr3FJLjxOjK1+SjV1/2NdNwJEZD44rn9NMHTJXwPDtDmJ2ILFrYzXbB64
OPsri6pe+Jc+4/qOWKwMdKF10beb4NDWKmdj3b5t3DgayhsKFmjINJDWY94HGQ4f
i81goIe+vL0wzRauLUmlMPGGz/tJyMjC63zaLg3rAEUeOUnnX8UfVR1YHRlRI4qz
QX9DE8bsA+gZkfjq3oEyK0EZwcjekg==
=QU0b
-----END PGP SIGNATURE-----payloadtree fc59642ff2fff11bd4def9e9f734f7f2ba2b51bd
parent aec382ff5fabb576327a4b4228a46c26a6058609
author Lucas Meireles <meireles31@msn.com> 1686583915 +0100
committer Lucas Meireles <meireles31@msn.com> 1686583999 +0100

can't skip lock check on getRows
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/099abb342357f25341aec87c54c4c656e95a7c0ehtml_urlShttps://github.com/palantir/atlasdb/commit/099abb342357f25341aec87c54c4c656e95a7c0ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/099abb342357f25341aec87c54c4c656e95a7c0e/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j LucasIMEj Jg j MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsj Userj uparents]}(j (aec382ff5fabb576327a4b4228a46c26a6058609j ^https://api.github.com/repos/palantir/atlasdb/commits/aec382ff5fabb576327a4b4228a46c26a6058609j Shttps://github.com/palantir/atlasdb/commit/aec382ff5fabb576327a4b4228a46c26a6058609uastats}(totalK	additionsK	deletionsK
ufiles]}(j (b9f5dfbd4ce5ef495cf1ae5d012e56c8e3c98537filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj Kj K
changesKblob_urlhttps://github.com/palantir/atlasdb/blob/099abb342357f25341aec87c54c4c656e95a7c0e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/099abb342357f25341aec87c54c4c656e95a7c0e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=099abb342357f25341aec87c54c4c656e95a7c0epatchX
  @@ -416,15 +416,11 @@ private NavigableMap<byte[], RowResult<byte[]>> getRowsInternal(
         }
         hasReads = true;
         ImmutableSortedMap.Builder<Cell, byte[]> result = ImmutableSortedMap.naturalOrder();
-        // Materializing Iterable to List explicitly here because we were already iterating through it twice, not
-        // respecting the fact that we might have exhausted the underlying iterator.
-        List<byte[]> rowsList = ImmutableList.copyOf(rows);
         Map<Cell, Value> rawResults =
-                new HashMap<>(keyValueService.getRows(tableRef, rowsList, columnSelection, getStartTimestamp()));
-        boolean hasReadEmptyCells = rawResults.size() < rowsList.size();
+                new HashMap<>(keyValueService.getRows(tableRef, rows, columnSelection, getStartTimestamp()));
         NavigableMap<Cell, byte[]> writes = writesByTable.get(tableRef);
         if (writes != null && !writes.isEmpty()) {
-            for (byte[] row : rowsList) {
+            for (byte[] row : rows) {
                 extractLocalWritesForRow(result, writes, row, columnSelection);
             }
         }
@@ -438,11 +434,14 @@ private NavigableMap<byte[], RowResult<byte[]>> getRowsInternal(
             perfLogger.debug(
                     "getRows({}, {} rows) found {} rows, took {} ms",
                     LoggingArgs.tableRef(tableRef),
-                    SafeArg.of("numRows", rowsList.size()),
+                    SafeArg.of("numRows", Iterables.size(rows)),
                     SafeArg.of("resultSize", results.size()),
                     SafeArg.of("timeTakenMillis", getRowsMillis));
         }
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), hasReadEmptyCells);
+        validatePreCommitRequirementsOnReadIfNecessary(
+                tableRef,
+                getStartTimestamp(),
+                true /* can't skip lock check as we don't know how many columns we're fetching */);
         return results;
     }
 
@@ -836,8 +835,10 @@ public SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(
         Map<Cell, Value> rawResults =
                 new HashMap<>(keyValueService.getRows(tableRef, rows, ColumnSelection.all(), getStartTimestamp()));
 
-        boolean hasReadEmptyCells = rawResults.size() < rows.size();
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), hasReadEmptyCells);
+        validatePreCommitRequirementsOnReadIfNecessary(
+                tableRef,
+                getStartTimestamp(),
+                true /* can't skip lock check as we don't know how many cells to expect for the column selection */);
         return filterRowResults(tableRef, rawResults, ImmutableMap.builderWithExpectedSize(rawResults.size()));
     }
 uau(81351c1c95f7a520e9dd34ec97f400eb04e0c547}(sha(81351c1c95f7a520e9dd34ec97f400eb04e0c547node_idEC_kwDOAjP5fdoAKDgxMzUxYzFjOTVmN2E1MjBlOWRkMzRlYzk3ZjQwMGViMDRlMGM1NDccommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-03T16:38:41Zu	committer}(j
 Jeremy Kongj
 jkong@palantir.comj
 2023-07-03T16:38:41ZumessageOMerge remote-tracking branch 'origin/develop' into jkong/antithesis-range-two-6tree}(j
 (9031bd5e6fd64a7fb9d1e6ee1e24024202be2ed9url`https://api.github.com/repos/palantir/atlasdb/git/trees/9031bd5e6fd64a7fb9d1e6ee1e24024202be2ed9uj&
 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/81351c1c95f7a520e9dd34ec97f400eb04e0c547
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSi+ZMACgkQTLdFKain
zjxQVAf/REWPpyvz6XcVf+daTBmFhrciw9Esw1h/F+dRgKa6TzzfgeK+/Vfhmggb
fg3ZMWCJKkPFsXn0GvS/LBbdIyi6iSFRc3W+ErC4NQNuhsC8ZafRzY3KvTLZctMf
S0Zi8v4tomtZKiukESecrmgS7pTWV07f12M6Fd+D2OxJXlFi9VdSm4sASAYfLkrf
nbBT3ZZW1XJuNjHnutPe7GZ2tfl1oxDAbahJ0AsJjwcMKFxDgxPSzNlOAdDrpmDn
sOuqFJbbaPn00tCywsy6zkhSmK0WTNRgVO44HG+4a683RIqWYbdMQBSBQgfFuvpv
ghcA3tW/tddx47bL2qxIpOpFdjl5nA==
=rR3O
-----END PGP SIGNATURE-----payloadXT  tree 9031bd5e6fd64a7fb9d1e6ee1e24024202be2ed9
parent 09046a3f8f4b7a6afc1b71d37d82743366eda06d
parent 7f8f1fd7639fecbcf3bac49f4697743fd5336068
author Jeremy Kong <jkong@palantir.com> 1688402321 +0100
committer Jeremy Kong <jkong@palantir.com> 1688402321 +0100

Merge remote-tracking branch 'origin/develop' into jkong/antithesis-range-two-6
uuj&
 ^https://api.github.com/repos/palantir/atlasdb/commits/81351c1c95f7a520e9dd34ec97f400eb04e0c547html_urlShttps://github.com/palantir/atlasdb/commit/81351c1c95f7a520e9dd34ec97f400eb04e0c547comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/81351c1c95f7a520e9dd34ec97f400eb04e0c547/commentsj
 }(login
jeremyk-91idJZ j
 MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j&
 'https://api.github.com/users/jeremyk-91j4
 https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj
 }(j9
 
jeremyk-91j;
 JZ j
 MDQ6VXNlcjU5NTU1MTA=j=
 3https://avatars.githubusercontent.com/u/5955510?v=4j?
 h5j&
 'https://api.github.com/users/jeremyk-91j4
 https://github.com/jeremyk-91jB
 1https://api.github.com/users/jeremyk-91/followersjD
 >https://api.github.com/users/jeremyk-91/following{/other_user}jF
 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jH
 >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jJ
 5https://api.github.com/users/jeremyk-91/subscriptionsjL
 ,https://api.github.com/users/jeremyk-91/orgsjN
 -https://api.github.com/users/jeremyk-91/reposjP
 8https://api.github.com/users/jeremyk-91/events{/privacy}jR
 7https://api.github.com/users/jeremyk-91/received_eventsjT
 UserjV
 uparents](}(j
 (09046a3f8f4b7a6afc1b71d37d82743366eda06dj&
 ^https://api.github.com/repos/palantir/atlasdb/commits/09046a3f8f4b7a6afc1b71d37d82743366eda06dj4
 Shttps://github.com/palantir/atlasdb/commit/09046a3f8f4b7a6afc1b71d37d82743366eda06du}(j
 (7f8f1fd7639fecbcf3bac49f4697743fd5336068j&
 ^https://api.github.com/repos/palantir/atlasdb/commits/7f8f1fd7639fecbcf3bac49f4697743fd5336068j4
 Shttps://github.com/palantir/atlasdb/commit/7f8f1fd7639fecbcf3bac49f4697743fd5336068uestats}(totalM"	additionsM		deletionsM{ufiles](}(j
 (7e1fc418d0ab8950f7d0a2c8a9ed46fe72c28ab9filenamePatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/KeyValueService.javastatusmodifiedjt
 Kju
 K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547patchX  @@ -711,4 +711,11 @@ default boolean shouldTriggerCompactions() {
     default boolean isValid() {
         return true;
     }
+
+    @DoDelegate
+    default boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        // This is in general True, but we're setting to false to start rollout only for C* of stopping to check for
+        // immutable timestamp lock on non empty reads on thoroughly swept tables.
+        return false;
+    }
 }u}(j
 (783bc3b5467ffef2ad1e64d4a8aefd0da4ee44ddjz
 jatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/TransactionCommitLockInfo.javaj|
 addedjt
 K%ju
 K j~
 K%j
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 Xg  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api.expectations;
+
+import org.immutables.value.Value;
+
+/**
+ * Data about the amount of commit locks requested by a transaction.
+ */
+@Value.Immutable
+public interface TransactionCommitLockInfo {
+
+    /**
+     * The number of cell-level locks requested as part of the commit protocol (excluding any user-defined locking).
+     */
+    long cellCommitLocksRequested();
+
+    /**
+     * The number of row-level locks requested as part of the commit protocol (excluding any user-defined locking).
+     * For write transactions, this includes the single row lock that is requested for the transaction table itself.
+     */
+    long rowCommitLocksRequested();
+}u}(j
 (22dc29e0664eb2fea2e0669bb248c2333fbefdd4jz
 atlasdb-cassandra-integration-tests/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceIntegrationTest.javaj|
 modifiedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X=  @@ -709,6 +709,12 @@ public void testMultiCheckAndSetIndependentlyFails() {
         verifyMultiCheckAndSet(ImmutableMap.of(firstTestCell, val(0, 0), nextTestCell, val(0, 1)));
     }
 
+    @Test
+    public void cassandraHasStrictlyNonDecreasingSweep() {
+        assertThat(keyValueService.sweepsEntriesInStrictlyNonDecreasingFashion())
+                .isTrue();
+    }
+
     private void verifyMultiCheckAndSet(Map<Cell, byte[]> expectedValues) {
         Multimap<Cell, Long> timestamps = keyValueService.getAllTimestamps(TEST_TABLE, expectedValues.keySet(), 1L);
 u}(j
 (d7d2d87671c66d0e3f85762da04755fb7955d5b1jz
 iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj|
 modifiedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -2033,6 +2033,11 @@ public ClusterAvailabilityStatus getClusterAvailabilityStatus() {
         return clusterStatus;
     }
 
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return true;
+    }
+
     private static boolean isClusterQuorumAvaialble(ClusterAvailabilityStatus clusterStatus) {
         return clusterStatus.equals(ClusterAvailabilityStatus.ALL_AVAILABLE)
                 || clusterStatus.equals(ClusterAvailabilityStatus.QUORUM_AVAILABLE);u}(j
 (4e16bd6856b710e2bea5df31215dec94adb90e6bjz
 batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaj|
 modifiedjt
 Kju
 Kj~
 K#j
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X
  @@ -148,18 +148,17 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
                 hostToDatacentersThisRefresh.put(onlyHost, onlyEndpoint.getDatacenter());
             } else { // normal case, large cluster with many vnodes
                 for (TokenRange tokenRange : tokenRanges) {
-                    Map<CassandraServer, String> hostToDatacentersOnThisTokenRange = KeyedStream.of(
-                                    tokenRange.getEndpoint_details())
-                            .mapKeys(EndpointDetails::getHost)
-                            .mapKeys(this::getAddressForHostThrowUnchecked)
-                            .map(EndpointDetails::getDatacenter)
-                            .collectToMap();
-
-                    ImmutableSet<CassandraServer> hosts =
-                            ImmutableSet.copyOf(hostToDatacentersOnThisTokenRange.keySet());
-                    servers.addAll(hosts);
-                    hostToDatacentersThisRefresh.putAll(hostToDatacentersOnThisTokenRange);
+                    List<EndpointDetails> endpointDetails = tokenRange.getEndpoint_details();
+                    ImmutableSet.Builder<CassandraServer> hostsBuilder =
+                            ImmutableSet.builderWithExpectedSize(endpointDetails.size());
+                    for (EndpointDetails endpoint : endpointDetails) {
+                        CassandraServer cassandraServer = getAddressForHostThrowUnchecked(endpoint.getHost());
+                        hostToDatacentersThisRefresh.put(cassandraServer, endpoint.getDatacenter());
+                        hostsBuilder.add(cassandraServer);
+                        servers.add(cassandraServer);
+                    }
 
+                    ImmutableSet<CassandraServer> hosts = hostsBuilder.build();
                     LightweightOppToken startToken = LightweightOppToken.fromHex(tokenRange.getStart_token());
                     LightweightOppToken endToken = LightweightOppToken.fromHex(tokenRange.getEnd_token());
                     if (startToken.compareTo(endToken) <= 0) {
@@ -288,17 +287,15 @@ private CassandraServer getAddressForHostThrowUnchecked(String host) {
     CassandraServer getAddressForHost(String inputHost) throws UnknownHostException {
         Map<String, String> hostnamesByIp = hostnameByIpSupplier.get();
         String cassandraHostName = hostnamesByIp.getOrDefault(inputHost, inputHost);
-        return CassandraServer.of(cassandraHostName, getReachableProxies(cassandraHostName));
-    }
-
-    private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) throws UnknownHostException {
-        InetAddress[] resolvedHosts = InetAddress.getAllByName(inputHost);
+        InetAddress[] resolvedHosts = InetAddress.getAllByName(cassandraHostName);
         int knownPort = getKnownPort();
 
         // It is okay to have reachable proxies that do not have a hostname
-        return Stream.of(resolvedHosts)
-                .map(inetAddr -> new InetSocketAddress(inetAddr, knownPort))
-                .collect(ImmutableSet.toImmutableSet());
+        ImmutableSet.Builder<InetSocketAddress> proxies = ImmutableSet.builderWithExpectedSize(resolvedHosts.length);
+        for (InetAddress host : resolvedHosts) {
+            proxies.add(new InetSocketAddress(host, knownPort));
+        }
+        return CassandraServer.of(cassandraHostName, proxies.build());
     }
 
     private int getKnownPort() throws UnknownHostException {u}(j
 (502ae947a588e3d9dcebd649967cafd91a08374bjz
 datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppTokenTest.javaj|
 modifiedjt
 Kju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -46,9 +46,9 @@ public static Collection<Object[]> data() {
     @Test
     public void inputsAreValidBase16Strings() {
         assertThat(input).matches("^[0-9a-fA-F]*$");
-        assertThat(input.length() % 2 == 0)
+        assertThat(input.length() % 2)
                 .as("input must be even length to base16 decode")
-                .isTrue();
+                .isEqualTo(0);
         assertThat(CassandraHex.hexToBytes(input)).hasSize(input.length() / 2);
     }
 u}(j
 (a0daffcaa0a4ea862e707fb50afd62871f197c8ejz
 ]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/DualWriteKeyValueService.javaj|
 modifiedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -318,4 +318,9 @@ public List<byte[]> getRowKeysInRange(TableReference tableRef, byte[] startRow,
     public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<Cell, Long> timestampByCell) {
         return delegate1.getAsync(tableRef, timestampByCell);
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate1.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(j
 (1ab84302f51e4bad9eef3b306d5f224b087a44d4jz
 \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/InMemoryKeyValueService.javaj|
 modifiedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X-  @@ -735,6 +735,12 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
         return Futures.immediateFuture(get(tableRef, timestampByCell));
     }
 
+    // Marking this as true as it's only used for tests, so we can better replicate Cassandra behaviour.
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return true;
+    }
+
     /**
      * This takes out a reentrant read lock. It is only exclusive specifically with
      * {@link #multiCheckAndSet(MultiCheckAndSetRequest)}.u}(j
 (d41572b88d0c8b10e1042d4d64b59e123b40c6c1jz
 ]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/ProfilingKeyValueService.javaj|
 modifiedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X|  @@ -554,4 +554,9 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
                         LoggingArgs.durationMillis(stopwatch)),
                 logCellResultSize(4L));
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(j
 (aee4560b5007342d777bb076c6630351e4618aa1jz
 [atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/TracingKeyValueService.javaj|
 modifiedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -531,6 +531,11 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
         });
     }
 
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate().sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
+
     @MustBeClosed
     private static CloseableTracer startLocalTrace(@CompileTimeConstant final String operation) {
         TraceStatistic original = TraceStatistics.getCurrentAndClear();u}(j
 (b901787debfe08e9dc92324e1ecea39bb182ade1jz
 Vatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javaj|
 modifiedjt
 K(ju
 K
j~
 K2j
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 Xq  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.table.description;
 
+import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
@@ -29,27 +30,40 @@
 public final class SweepStrategy {
 
     public static final SweepStrategy CONSERVATIVE =
-            new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false);
-    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), true);
+            new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false, false);
+    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), false, true);
 
     private final Optional<SweeperStrategy> sweeperStrategy;
-    private final boolean mustCheckImmutableLockAfterReads;
+    private final boolean mustCheckImmutableLockIfAllCellsReadAndPresent;
 
-    private SweepStrategy(Optional<SweeperStrategy> sweeperStrategy, boolean mustCheckImmutableLockAfterReads) {
+    // When we either read an empty value or perform reads like a range-scan, where we can't be certain of how many
+    // values we expect.
+    private final boolean mustCheckImmutableLockIfNonExhaustiveRead;
+
+    private SweepStrategy(
+            Optional<SweeperStrategy> sweeperStrategy,
+            boolean mustCheckImmutableLockIfAllCellsReadAndPresent,
+            boolean mustCheckImmutableLockIfNonExhaustiveRead) {
         this.sweeperStrategy = sweeperStrategy;
-        this.mustCheckImmutableLockAfterReads = mustCheckImmutableLockAfterReads;
+        this.mustCheckImmutableLockIfAllCellsReadAndPresent = mustCheckImmutableLockIfAllCellsReadAndPresent;
+        this.mustCheckImmutableLockIfNonExhaustiveRead = mustCheckImmutableLockIfNonExhaustiveRead;
     }
 
     public Optional<SweeperStrategy> getSweeperStrategy() {
         return sweeperStrategy;
     }
 
-    public boolean mustCheckImmutableLockAfterReads() {
-        return mustCheckImmutableLockAfterReads;
+    public boolean mustCheckImmutableLock(boolean allPossibleCellsReandAndPresent) {
+        return allPossibleCellsReandAndPresent
+                ? mustCheckImmutableLockIfAllCellsReadAndPresent
+                : mustCheckImmutableLockIfNonExhaustiveRead;
     }
 
-    public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy) {
-        return new SweepStrategy(sweeperBehaviour(strategy), mustCheckImmutableLockAfterReads(strategy));
+    public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
+        return new SweepStrategy(
+                sweeperBehaviour(strategy),
+                mustCheckImmutableLockIfAllCellsReadAndPresent(strategy, kvs),
+                mustCheckImmutableLockIfNonExhaustiveRead(strategy));
     }
 
     private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersistence.SweepStrategy strategy) {
@@ -65,7 +79,23 @@ private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersisten
         throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
     }
 
-    private static boolean mustCheckImmutableLockAfterReads(TableMetadataPersistence.SweepStrategy strategy) {
+    private static boolean mustCheckImmutableLockIfAllCellsReadAndPresent(
+            TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
+        if (!kvs.sweepsEntriesInStrictlyNonDecreasingFashion()) {
+            return mustCheckImmutableLockIfNonExhaustiveRead(strategy);
+        }
+
+        switch (strategy) {
+            case CONSERVATIVE:
+            case NOTHING:
+            case THOROUGH_MIGRATION:
+            case THOROUGH:
+                return false;
+        }
+        throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
+    }
+
+    private static boolean mustCheckImmutableLockIfNonExhaustiveRead(TableMetadataPersistence.SweepStrategy strategy) {
         switch (strategy) {
             case CONSERVATIVE:
             case NOTHING:u}(j
 (a609938800595c6a4ed1b28154a58151f7d04af3jz
 datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ExpectationsAwareTransaction.javaj|
 modifiedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 /**
@@ -32,6 +33,11 @@ public interface ExpectationsAwareTransaction extends Transaction {
      */
     TransactionReadInfo getReadInfo();
 
+    /**
+     * Returns transaction commit lock information.
+     */
+    TransactionCommitLockInfo getCommitLockInfo();
+
     /**
      * Update TEX data collection metrics for (post-mortem) transactions.
      * Expected usage is that this method is called once after the transaction has been committed or aborted.u}(j
 (6795ea4a937624401807d2b3742ab596ad23984bjz
 natlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingExpectationsAwareTransaction.javaj|
 modifiedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.transaction.impl;
 
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 public abstract class ForwardingExpectationsAwareTransaction extends ForwardingTransaction
@@ -34,6 +35,11 @@ public TransactionReadInfo getReadInfo() {
         return delegate().getReadInfo();
     }
 
+    @Override
+    public TransactionCommitLockInfo getCommitLockInfo() {
+        return delegate().getCommitLockInfo();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         delegate().reportExpectationsCollectedData();u     }(j
 (71e95645f3ae1137fc44efc89c6e3432b42d85ffjz
 Watlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ReadTransaction.javaj|
 modifiedjt
 Kju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -24,14 +24,15 @@
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.logging.LoggingArgs;
-import com.palantir.atlasdb.table.description.SweepStrategy;
+import com.palantir.atlasdb.table.description.SweeperStrategy;
 import com.palantir.atlasdb.transaction.api.GetRangesQuery;
 import com.palantir.common.base.BatchingVisitable;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
+import java.util.Optional;
 import java.util.Set;
 import java.util.function.BiFunction;
 import java.util.stream.Stream;
@@ -136,11 +137,11 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
     }
 
     private void checkTableName(TableReference tableRef) {
-        SweepStrategy sweepStrategy = sweepStrategies.get(tableRef);
+        Optional<SweeperStrategy> sweepStrategy = sweepStrategies.get(tableRef).getSweeperStrategy();
         Preconditions.checkState(
-                !sweepStrategy.mustCheckImmutableLockAfterReads(),
-                "This table cannot be read from a read-only transaction, because its "
-                        + "sweep strategy is neither NOTHING nor CONSERVATIVE",
+                sweepStrategy.isEmpty() || sweepStrategy.get().equals(SweeperStrategy.CONSERVATIVE),
+                "This table cannot be read from a read-only transaction, because its sweep strategy is neither NOTHING"
+                        + " nor CONSERVATIVE",
                 LoggingArgs.tableRef(tableRef));
     }
 u}(j
 (59d37859a318b1646ca6da51436b4720150f7940jz
 ]atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/SweepStrategyManagers.javaj|
 modifiedjt
 K	ju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X;  @@ -21,7 +21,6 @@
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
-import com.palantir.atlasdb.table.description.Schema;
 import com.palantir.atlasdb.table.description.SweepStrategy;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.logsafe.Preconditions;
@@ -53,7 +52,7 @@ public static SweepStrategyManager create(KeyValueService kvs, CacheWarming cach
                     // On a cache miss, load metadata only for the relevant table. Helpful when many dynamic tables.
                     LoadingCache<TableReference, SweepStrategy> cache = Caffeine.newBuilder()
                             .expireAfterAccess(Duration.ofDays(1))
-                            .build(tableRef -> getSweepStrategy(kvs.getMetadataForTable(tableRef)));
+                            .build(tableRef -> getSweepStrategy(kvs.getMetadataForTable(tableRef), kvs));
 
                     // Possibly warm the cache.
                     cache.putAll(getSweepStrategiesForWarmingCache(kvs, cacheWarming));
@@ -74,42 +73,34 @@ public void invalidateCaches(Set<TableReference> tableRefs) {
         };
     }
 
-    public static SweepStrategyManager createFromSchema(Schema schema) {
-        return tableRef -> {
-            TableMetadata tableMeta = Preconditions.checkNotNull(
-                    schema.getAllTablesAndIndexMetadata().get(tableRef),
-                    "unknown table",
-                    SafeArg.of("tableRef", tableRef));
-            return SweepStrategy.from(tableMeta.getSweepStrategy());
-        };
-    }
-
     public static SweepStrategyManager fromMap(final Map<TableReference, SweepStrategy> map) {
         return tableRef ->
                 Preconditions.checkNotNull(map.get(tableRef), "unknown table", SafeArg.of("tableRef", tableRef));
     }
 
-    public static SweepStrategyManager completelyConservative() {
-        return tableRef -> SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE);
+    public static SweepStrategyManager completelyConservative(KeyValueService kvs) {
+        return tableRef -> SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE, kvs);
     }
 
     private static Map<TableReference, SweepStrategy> getSweepStrategiesForWarmingCache(
             KeyValueService kvs, CacheWarming cacheWarming) {
         switch (cacheWarming) {
             case FULL:
-                return Maps.transformValues(kvs.getMetadataForTables(), SweepStrategyManagers::getSweepStrategy);
+                return Maps.transformValues(
+                        kvs.getMetadataForTables(),
+                        tableMetadata -> SweepStrategyManagers.getSweepStrategy(tableMetadata, kvs));
             case NONE:
             default:
                 return Collections.emptyMap();
         }
     }
 
-    private static SweepStrategy getSweepStrategy(byte[] tableMeta) {
+    private static SweepStrategy getSweepStrategy(byte[] tableMeta, KeyValueService kvs) {
         if (tableMeta != null && tableMeta.length > 0) {
             return SweepStrategy.from(
-                    TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy());
+                    TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy(), kvs);
         } else {
-            return SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE);
+            return SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE, kvs);
         }
     }
 }u}(j
 (07430a7ea8f348014166e1a21707d9a2d6fa0656jz
 gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableRemappingKeyValueService.javaj|
 modifiedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 XQ  @@ -482,4 +482,9 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
             throw new IllegalArgumentException(e);
         }
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(j
 (5ef033a6ef29cb0e07d55d81f9e01236df5838d0jz
 gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableSplittingKeyValueService.javaj|
 modifiedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -413,4 +413,9 @@ public List<byte[]> getRowKeysInRange(TableReference tableRef, byte[] startRow,
     public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<Cell, Long> timestampByCell) {
         return getDelegate(tableRef).getAsync(tableRef, timestampByCell);
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegates.stream().allMatch(KeyValueService::sweepsEntriesInStrictlyNonDecreasingFashion);
+    }
 }u}(j
 (f4fc16c9cd18f98e0b88191831c6acfff46d8418jz
 Qatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweepTaskRunner.javaj|
 modifiedjt
 Kju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -152,7 +152,7 @@ private SweepResults runInternal(
             return SweepResults.createEmptySweepResultWithNoMoreToSweep();
         }
         SweepStrategy sweepStrategy = SweepStrategy.from(
-                TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy());
+                TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy(), keyValueService);
         Optional<Sweeper> maybeSweeper = sweepStrategy.getSweeperStrategy().map(Sweeper::of);
         if (runType == RunType.WAS_CONSERVATIVE_NOW_THOROUGH
                 && sweepStrategy.getSweeperStrategy().equals(Optional.of(SweeperStrategy.CONSERVATIVE))) {u}(j
 (8a130c89d1c136ccdceb2117f2543a8cad93b16cjz
 \atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitioner.javaj|
 modifiedjt
 Kju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -95,9 +95,11 @@ SweeperStrategy getStrategyForTable(TableReference tableRef) {
 
     private SweeperStrategy getStrategyFromKvs(TableReference tableRef) {
         try {
-            return SweepStrategy.from(TableMetadata.BYTES_HYDRATOR
-                            .hydrateFromBytes(kvs.getMetadataForTable(tableRef))
-                            .getSweepStrategy())
+            return SweepStrategy.from(
+                            TableMetadata.BYTES_HYDRATOR
+                                    .hydrateFromBytes(kvs.getMetadataForTable(tableRef))
+                                    .getSweepStrategy(),
+                            kvs)
                     .getSweeperStrategy()
                     .orElse(SweeperStrategy.NON_SWEEPABLE);
         } catch (Exception e) {u}(j
 (a754465d028ae56a8b3829de4675ebee0e06762djz
 `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj|
 modifiedjt
 Kju
 K6j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X]  @@ -97,6 +97,8 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
@@ -156,6 +158,7 @@
 import java.util.List;
 import java.util.Map;
 import java.util.NavigableMap;
+import java.util.NavigableSet;
 import java.util.NoSuchElementException;
 import java.util.Objects;
 import java.util.Optional;
@@ -207,6 +210,9 @@ public class SnapshotTransaction extends AbstractTransaction
     private static final int BATCH_SIZE_GET_FIRST_PAGE = 1000;
     private static final long TXN_LENGTH_THRESHOLD = Duration.ofMinutes(30).toMillis();
 
+    @VisibleForTesting
+    static final int MAX_POST_FILTERING_ITERATIONS = 200;
+
     @VisibleForTesting
     static final int MIN_BATCH_SIZE_FOR_DISTRIBUTED_LOAD = 100;
 
@@ -267,9 +273,15 @@ private enum State {
     protected final SuccessCallbackManager successCallbackManager = new SuccessCallbackManager();
     private final CommitTimestampLoader commitTimestampLoader;
     private final ExpectationsMetrics expectationsDataCollectionMetrics;
+    private volatile long cellCommitLocksRequested = 0L;
+    private volatile long rowCommitLocksRequested = 0L;
 
     protected volatile boolean hasReads;
 
+    // On thoroughly swept tables, we might require a immutable timestamp lock check if we have performed a
+    // non-exhaustive read.
+    protected volatile boolean hasPossiblyUnvalidatedReads;
+
     protected final TimestampCache timestampCache;
 
     protected final TransactionKnowledgeComponents knowledge;
@@ -333,6 +345,7 @@ private enum State {
         this.sweepQueue = sweepQueue;
         this.deleteExecutor = deleteExecutor;
         this.hasReads = false;
+        this.hasPossiblyUnvalidatedReads = false;
         this.transactionOutcomeMetrics = TransactionOutcomeMetrics.create(metricsManager);
         this.validateLocksOnReads = validateLocksOnReads;
         this.transactionConfig = transactionConfig;
@@ -438,7 +451,9 @@ private NavigableMap<byte[], RowResult<byte[]>> getRowsInternal(
                     SafeArg.of("resultSize", results.size()),
                     SafeArg.of("timeTakenMillis", getRowsMillis));
         }
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+
+        /* can't skip lock check as we don't know how many cells to expect for the column selection */
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return results;
     }
 
@@ -463,7 +478,8 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
         RowColumnRangeIterator rawResults = keyValueService.getRowsColumnRange(
                 tableRef, stableRows, columnRangeSelection, batchHint, getStartTimestamp());
         if (!rawResults.hasNext()) {
-            validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+            // we can't skip checks for range scans
+            validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         } // else the postFiltered iterator will check for each batch.
 
         BatchColumnRangeSelection batchColumnRangeSelection =
@@ -501,7 +517,8 @@ public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator
                 }));
 
         // validate requirements here as the first batch for each of the above iterators will not check
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+        // we can't skip checks on range scans
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return postFilteredResults;
     }
 
@@ -674,7 +691,7 @@ private Iterator<Map.Entry<Cell, byte[]>> filterDeletedValues(
     private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFiltered(
             TableReference tableRef, RowColumnRangeIterator iterator, int batchHint) {
         return Iterators.concat(Iterators.transform(Iterators.partition(iterator, batchHint), batch -> {
-            Map<Cell, Value> raw = validateBatch(tableRef, batch);
+            Map<Cell, Value> raw = validateBatch(tableRef, batch, false /* can't skip lock checks on range scans */);
             if (raw.isEmpty()) {
                 return Collections.emptyIterator();
             }
@@ -696,7 +713,10 @@ private ClosableIterator<Map.Entry<Cell, byte[]>> getRowColumnRangePostFiltered(
                 batchProvider,
                 rawIterator,
                 columnRangeSelection,
-                () -> validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp()),
+                () -> {
+                    // we can't skip lock checks on range scans
+                    validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
+                },
                 raw -> getWithPostFilteringSync(tableRef, raw, Value.GET_VALUE));
     }
 
@@ -706,7 +726,7 @@ private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSor
             int batchHint,
             Comparator<Cell> cellComparator) {
         return Iterators.concat(Iterators.transform(Iterators.partition(iterator, batchHint), batch -> {
-            Map<Cell, Value> raw = validateBatch(tableRef, batch);
+            Map<Cell, Value> raw = validateBatch(tableRef, batch, false /* can't skip lock check on range scans */);
             if (raw.isEmpty()) {
                 return Collections.emptyIterator();
             }
@@ -717,8 +737,9 @@ private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSor
         }));
     }
 
-    private Map<Cell, Value> validateBatch(TableReference tableRef, List<Map.Entry<Cell, Value>> batch) {
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+    private Map<Cell, Value> validateBatch(
+            TableReference tableRef, List<Map.Entry<Cell, Value>> batch, boolean allPossibleCellsReadAndPresent) {
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
         return ImmutableMap.copyOf(batch);
     }
 
@@ -828,7 +849,8 @@ public SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(
         Map<Cell, Value> rawResults =
                 new HashMap<>(keyValueService.getRows(tableRef, rows, ColumnSelection.all(), getStartTimestamp()));
 
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+        // can't skip lock check as we don't know how many cells to expect for the column selection
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return filterRowResults(tableRef, rawResults, ImmutableMap.builderWithExpectedSize(rawResults.size()));
     }
 
@@ -921,13 +943,12 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
             }
         }
 
-        // We don't need to read any cells that were written locally.
+        // We don't need to read any cells that were written locally. Making an immutable copy because otherwise adding
+        // values to the result map would prevent us from calculating the correct size for
+        // allPossibleCellsReadAndPresent, since Sets.difference gives us a live view.
+        Set<Cell> cellsWithNoLocalWrites = ImmutableSet.copyOf(Sets.difference(cells, result.keySet()));
         return Futures.transform(
-                getFromKeyValueService(
-                        tableRef,
-                        Sets.difference(cells, result.keySet()),
-                        asyncKeyValueService,
-                        asyncTransactionService),
+                getFromKeyValueService(tableRef, cellsWithNoLocalWrites, asyncKeyValueService, asyncTransactionService),
                 fromKeyValueService -> {
                     result.putAll(fromKeyValueService);
 
@@ -941,7 +962,11 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
                                 SafeArg.of("getOperation", operationName),
                                 SafeArg.of("durationMillis", getMillis));
                     }
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+
+                    boolean allPossibleCellsReadAndPresent =
+                            fromKeyValueService.size() == cellsWithNoLocalWrites.size();
+                    validatePreCommitRequirementsOnReadIfNecessary(
+                            tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
                     return removeEmptyColumns(result, tableRef);
                 },
                 MoreExecutors.directExecutor());
@@ -957,13 +982,15 @@ public Map<Cell, byte[]> getIgnoringLocalWrites(TableReference tableRef, Set<Cel
 
         ListenableFuture<Map<Cell, byte[]>> result =
                 getFromKeyValueService(tableRef, cells, immediateKeyValueService, immediateTransactionService);
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
 
         Map<Cell, byte[]> unfiltered = Futures.getUnchecked(result);
         Map<Cell, byte[]> filtered = Maps.filterValues(unfiltered, Predicates.not(Value::isTombstone));
 
         TraceStatistics.incEmptyValues(unfiltered.size() - filtered.size());
 
+        boolean allPossibleCellsReadAndPresent = unfiltered.size() == cells.size();
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
+
         return filtered;
     }
 
@@ -1016,7 +1043,8 @@ public Iterable<BatchingVisitable<RowResult<byte[]>>> getRanges(
                     Timer.Context timer = getTimer("processedRangeMillis").time();
                     Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> firstPages =
                             keyValueService.getFirstBatchForRanges(tableRef, input, getStartTimestamp());
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+                    // can't skip lock check for range scans
+                    validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
 
                     SortedMap<Cell, byte[]> postFiltered = postFilterPages(tableRef, firstPages.values());
 
@@ -1142,18 +1170,42 @@ protected <K extends Exception> void batchAcceptSizeHint(
         };
     }
 
-    private void validatePreCommitRequirementsOnReadIfNecessary(TableReference tableRef, long timestamp) {
-        if (isValidationNecessaryOnReads(tableRef)) {
+    private void validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(TableReference tableRef, long timestamp) {
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, timestamp, false);
+    }
+
+    /*
+    We don't have any guarantees that reads and commit will be executed in a single threaded manner, so we could in
+    theory return wrong results if we perform async reads while trying to commit. But our protocol doesn't aim to
+    support such case, and we're OK with having undefined behaviour in these occasions.
+
+    Example of such case:
+       - We're reading a thoroughly swept table with no configuration for immediate validation on reads.
+       - An async range scan is performed, but hasn't started executing yet.
+       - We start commit round on the main thread
+       - Commit doesn't check for immutable timestamp lock because
+           hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound is false
+       - We finish the range scan on the second thread, but validation is skipped due to the configuration and it sets
+           hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound to true, but that is never checked due to
+            the commit round having already happened.
+       - We then risk having returned inconsistent values in this transaction, since we could have lost the immutableT
+            lock, but never checked it and values could've been swept under us.
+    */
+    private void validatePreCommitRequirementsOnReadIfNecessary(
+            TableReference tableRef, long timestamp, boolean allPossibleCellsReadAndPresent) {
+        if (isValidationNecessaryOnReads(tableRef, allPossibleCellsReadAndPresent)) {
             throwIfPreCommitRequirementsNotMet(null, timestamp);
+        } else if (!allPossibleCellsReadAndPresent) {
+            hasPossiblyUnvalidatedReads = true;
         }
     }
 
-    private boolean isValidationNecessaryOnReads(TableReference tableRef) {
-        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef);
+    private boolean isValidationNecessaryOnReads(TableReference tableRef, boolean allPossibleCellsReadAndPresent) {
+        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef, allPossibleCellsReadAndPresent);
     }
 
-    private boolean requiresImmutableTimestampLocking(TableReference tableRef) {
-        return sweepStrategyManager.get(tableRef).mustCheckImmutableLockAfterReads()
+    private boolean requiresImmutableTimestampLocking(TableReference tableRef, boolean allPossibleCellsReadAndPresent) {
+        return sweepStrategyManager.get(tableRef).mustCheckImmutableLock(allPossibleCellsReadAndPresent)
                 || transactionConfig.get().lockImmutableTsOnReadOnlyTransactions();
     }
 
@@ -1302,11 +1354,13 @@ protected <T> ClosableIterator<RowResult<T>> postFilterIterator(
             @Override
             protected Iterator<RowResult<T>> computeNext() {
                 List<RowResult<Value>> batch = results.getBatch().batch();
-                validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
                 if (batch.isEmpty()) {
                     return endOfData();
                 }
                 SortedMap<Cell, T> postFilter = postFilterRows(tableRef, batch, transformer);
+
+                // can't skip lock checks for range scans
+                validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
                 results.markNumResultsNotDeleted(
                         Cells.getRows(postFilter.keySet()).size());
                 return Cells.createRowView(postFilter.entrySet());
@@ -1451,9 +1505,9 @@ private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilterin
 
         return Futures.transformAsync(
                 Futures.immediateFuture(rawResults),
-                remainingResultsToPostFilter -> getWithPostFilteringIterate(
+                resultsToPostFilter -> getWithPostFilteringIterate(
                         tableRef,
-                        remainingResultsToPostFilter,
+                        resultsToPostFilter,
                         resultsAccumulator,
                         transformer,
                         asyncKeyValueService,
@@ -1463,32 +1517,39 @@ private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilterin
 
     private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilteringIterate(
             TableReference tableReference,
-            Map<Cell, Value> remainingResultsToPostFilter,
+            Map<Cell, Value> resultsToPostFilter,
             Collection<Map.Entry<Cell, T>> resultsAccumulator,
             Function<Value, T> transformer,
             AsyncKeyValueService asyncKeyValueService,
             AsyncTransactionService asyncTransactionService) {
-        if (remainingResultsToPostFilter.isEmpty()) {
-            getCounter(AtlasDbMetricNames.SNAPSHOT_TRANSACTION_CELLS_RETURNED, tableReference)
-                    .inc(resultsAccumulator.size());
-            return Futures.immediateFuture(resultsAccumulator);
-        }
-
         return Futures.transformAsync(
-                getWithPostFilteringInternal(
-                        tableReference,
-                        remainingResultsToPostFilter,
-                        resultsAccumulator,
-                        transformer,
-                        asyncKeyValueService,
-                        asyncTransactionService),
-                remaining -> getWithPostFilteringIterate(
-                        tableReference,
-                        remaining,
-                        resultsAccumulator,
-                        transformer,
-                        asyncKeyValueService,
-                        asyncTransactionService),
+                Futures.immediateFuture(resultsToPostFilter),
+                results -> {
+                    int iterations = 0;
+                    Map<Cell, Value> remainingResultsToPostFilter = results;
+                    while (!remainingResultsToPostFilter.isEmpty()) {
+                        remainingResultsToPostFilter = AtlasFutures.getUnchecked(getWithPostFilteringInternal(
+                                tableReference,
+                                remainingResultsToPostFilter,
+                                resultsAccumulator,
+                                transformer,
+                                asyncKeyValueService,
+                                asyncTransactionService));
+                        Preconditions.checkState(
+                                ++iterations < MAX_POST_FILTERING_ITERATIONS,
+                                "Unable to filter cells to find correct result after "
+                                        + "reaching max iterations. This is likely due to aborted cells lying around,"
+                                        + " or in the very rare case, could be due to transactions which constantly "
+                                        + "conflict but never commit. These values will be cleaned up eventually, but"
+                                        + " if the issue persists, ensure that sweep is caught up.",
+                                SafeArg.of("table", tableReference),
+                                SafeArg.of("maxIterations", MAX_POST_FILTERING_ITERATIONS));
+                    }
+                    getCounter(AtlasDbMetricNames.SNAPSHOT_TRANSACTION_CELLS_RETURNED, tableReference)
+                            .inc(resultsAccumulator.size());
+
+                    return Futures.immediateFuture(resultsAccumulator);
+                },
                 MoreExecutors.directExecutor());
     }
 
@@ -1677,7 +1738,9 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
             return Futures.transform(
                     asyncKeyValueService.getAsync(tableRef, keysToReload),
                     nextRawResults -> {
-                        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+                        boolean allPossibleCellsReadAndPresent = nextRawResults.size() == keysToReload.size();
+                        validatePreCommitRequirementsOnReadIfNecessary(
+                                tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
                         return getRemainingResults(nextRawResults, keysAddedToResults);
                     },
                     MoreExecutors.directExecutor());
@@ -2448,20 +2511,25 @@ private void logCommitLockTenureExceeded(
 
     protected Set<LockDescriptor> getLocksForWrites() {
         Set<LockDescriptor> result = new HashSet<>();
+        long cellLockCount = 0L;
+        long rowLockCount = 0L;
         for (TableReference tableRef : writesByTable.keySet()) {
             ConflictHandler conflictHandler = getConflictHandlerForTable(tableRef);
             if (conflictHandler.lockCellsForConflicts()) {
-                for (Cell cell : getLocalWrites(tableRef).keySet()) {
+                NavigableSet<Cell> cellsToLock = getLocalWrites(tableRef).keySet();
+                for (Cell cell : cellsToLock) {
                     result.add(AtlasCellLockDescriptor.of(
                             tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName()));
                 }
+                cellLockCount = cellsToLock.size();
             }
 
             if (conflictHandler.lockRowsForConflicts()) {
                 Cell lastCell = null;
                 for (Cell cell : getLocalWrites(tableRef).keySet()) {
                     if (lastCell == null || !Arrays.equals(lastCell.getRowName(), cell.getRowName())) {
                         result.add(AtlasRowLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName()));
+                        rowLockCount++;
                     }
                     lastCell = cell;
                 }
@@ -2470,6 +2538,8 @@ protected Set<LockDescriptor> getLocksForWrites() {
         result.add(AtlasRowLockDescriptor.of(
                 TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
                 TransactionConstants.getValueForTimestamp(getStartTimestamp())));
+        cellCommitLocksRequested = cellLockCount;
+        rowCommitLocksRequested = rowLockCount + 1;
         return result;
     }
 
@@ -2591,8 +2661,8 @@ private boolean hasAnyInvolvedTables() {
     }
 
     private boolean validationNecessaryForInvolvedTablesOnCommit() {
-        boolean anyTableRequiresImmutableTimestampLocking =
-                involvedTables.stream().anyMatch(this::requiresImmutableTimestampLocking);
+        boolean anyTableRequiresImmutableTimestampLocking = involvedTables.stream()
+                .anyMatch(tableRef -> requiresImmutableTimestampLocking(tableRef, !hasPossiblyUnvalidatedReads));
         boolean needsToValidate = !validateLocksOnReads || !hasReads();
         return anyTableRequiresImmutableTimestampLocking && needsToValidate;
     }
@@ -2607,6 +2677,14 @@ public TransactionReadInfo getReadInfo() {
         return keyValueService.getOverallReadInfo();
     }
 
+    @Override
+    public TransactionCommitLockInfo getCommitLockInfo() {
+        return ImmutableTransactionCommitLockInfo.builder()
+                .cellCommitLocksRequested(cellCommitLocksRequested)
+                .rowCommitLocksRequested(rowCommitLocksRequested)
+                .build();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         if (isStillRunning()) {
@@ -2616,18 +2694,25 @@ public void reportExpectationsCollectedData() {
             return;
         }
 
-        reportExpectationsCollectedData(getAgeMillis(), getReadInfo(), expectationsDataCollectionMetrics);
+        reportExpectationsCollectedData(
+                getAgeMillis(), getReadInfo(), getCommitLockInfo(), expectationsDataCollectionMetrics);
     }
 
     @VisibleForTesting
     static void reportExpectationsCollectedData(
-            long ageMillis, TransactionReadInfo readInfo, ExpectationsMetrics metrics) {
+            long ageMillis,
+            TransactionReadInfo readInfo,
+            TransactionCommitLockInfo commitLockInfo,
+            ExpectationsMetrics metrics) {
         metrics.ageMillis().update(ageMillis);
         metrics.bytesRead().update(readInfo.bytesRead());
         metrics.kvsReads().update(readInfo.kvsCalls());
 
         readInfo.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
                 .update(kvsCallReadInfo.bytesRead()));
+
+        metrics.cellCommitLocksRequested().update(commitLockInfo.cellCommitLocksRequested());
+        metrics.rowCommitLocksRequested().update(commitLockInfo.rowCommitLocksRequested());
     }
 
     private long getStartTimestamp() {u}(j
 (89147dc77a01612d3af8f3130ea758e4445537c7jz
 5atlasdb-impl-shared/src/main/metrics/expectations.ymlj|
 modifiedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -17,3 +17,9 @@ namespaces:
       mostKvsBytesReadInSingleCall:
         docs: Most bytes read by a transaction in one Atlas kvs read call
         type: histogram
+      cellCommitLocksRequested:
+        docs: Number of cell-level commit locks requested as part of the commit protocol
+        type: histogram
+      rowCommitLocksRequested:
+        docs: Number of row-level commit locks requested as part of the commit protocol
+        type: histogramu}(j
 (58455c9fcbd5e41aa2e34c82091e30cd04cd5a51jz
 `atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitionerTest.javaj|
 modifiedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 Xf  @@ -105,6 +105,7 @@ public void getStrategyQueriesKvsOnlyOnceForEachTable() {
         }
         verify(mockKvs, times(1)).getMetadataForTable(NOTHING);
         verify(mockKvs, times(1)).getMetadataForTable(CONSERVATIVE);
+        verify(mockKvs, times(2)).sweepsEntriesInStrictlyNonDecreasingFashion();
         verifyNoMoreInteractions(mockKvs);
     }
 u}(j
 (283b84abcfb6697b50fee5fa0db0dbc2d58dfab8jz
 matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javaj|
 modifiedjt
 K&ju
 Kj~
 K2j
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 XI  @@ -18,7 +18,9 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.codahale.metrics.Histogram;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
@@ -34,6 +36,12 @@ public final class ExpectationsMetricsReportingTest {
     private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
             ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
 
+    private static final ImmutableTransactionCommitLockInfo BLANK_COMMIT_LOCK_INFO =
+            ImmutableTransactionCommitLockInfo.builder()
+                    .cellCommitLocksRequested(0L)
+                    .rowCommitLocksRequested(0L)
+                    .build();
+
     private ExpectationsMetrics metrics;
 
     @Before
@@ -44,40 +52,58 @@ public void setUp() {
     @Test
     public void ageReported() {
         long age = 129L;
-        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, metrics);
-        assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
+        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, BLANK_COMMIT_LOCK_INFO, metrics);
+        assertHistogramHasSingleValue(metrics.ageMillis(), age);
     }
 
     @Test
     public void bytesReadReported() {
         long bytes = 1290L;
-        reportMetrics(BLANK_READ_INFO.withBytesRead(bytes));
-        assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
+        reportMetricsWithReadInfo(BLANK_READ_INFO.withBytesRead(bytes));
+        assertHistogramHasSingleValue(metrics.bytesRead(), bytes);
     }
 
     @Test
     public void kvsCallsReported() {
         long calls = 12L;
-        reportMetrics(BLANK_READ_INFO.withKvsCalls(calls));
-        assertThat(metrics.kvsReads().getSnapshot().getValues()).containsOnly(calls);
+        reportMetricsWithReadInfo(BLANK_READ_INFO.withKvsCalls(calls));
+        assertHistogramHasSingleValue(metrics.kvsReads(), calls);
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
-        reportMetrics(BLANK_READ_INFO);
+        reportMetricsWithReadInfo(BLANK_READ_INFO);
         assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
                 .isEmpty();
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
         long bytes = 193L;
-        reportMetrics(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
-        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
-                .containsOnly(bytes);
+        reportMetricsWithReadInfo(
+                BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        assertHistogramHasSingleValue(metrics.mostKvsBytesReadInSingleCall(), bytes);
+    }
+
+    @Test
+    public void commitLocksRequestsReported() {
+        SnapshotTransaction.reportExpectationsCollectedData(
+                0L,
+                BLANK_READ_INFO,
+                ImmutableTransactionCommitLockInfo.builder()
+                        .cellCommitLocksRequested(1)
+                        .rowCommitLocksRequested(2)
+                        .build(),
+                metrics);
+        assertHistogramHasSingleValue(metrics.cellCommitLocksRequested(), 1);
+        assertHistogramHasSingleValue(metrics.rowCommitLocksRequested(), 2);
+    }
+
+    private void reportMetricsWithReadInfo(TransactionReadInfo readInfo) {
+        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, BLANK_COMMIT_LOCK_INFO, metrics);
     }
 
-    private void reportMetrics(TransactionReadInfo readInfo) {
-        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, metrics);
+    private void assertHistogramHasSingleValue(Histogram histogram, long expected) {
+        assertThat(histogram.getSnapshot().getValues()).containsOnly(expected);
     }
 }u}(j
 (f78ed397c1ab2442f099cc74dd518e30185dd324jz
 !atlasdb-tests-shared/build.gradlej|
 modifiedjt
 Kju
 K j~
 Kj
 uhttps://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-tests-shared%2Fbuild.gradlej
 thttps://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-tests-shared%2Fbuild.gradlej
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fbuild.gradle?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -50,6 +50,7 @@ dependencies {
   testImplementation 'com.google.protobuf:protobuf-java'
   testImplementation 'com.palantir.common:streams'
   testImplementation 'com.palantir.safe-logging:safe-logging'
+  testImplementation 'com.palantir.safe-logging:preconditions-assertj'
   testImplementation 'com.palantir.tracing:tracing-api'
   testImplementation 'com.palantir.tritium:tritium-registry'
   testImplementation 'commons-io:commons-io'u}(j
 (4ecc8d0029caabad8e99518d16b13fcf35ba33ecjz
 qatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractSerializableTransactionTest.javaj|
 modifiedjt
 K
ju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 XL  @@ -1079,17 +1079,19 @@ public void testNoMarkTableInvolvedSkipsLockChecksOnCommit() {
         t1.commit();
     }
 
-    @Test
-    public void testMarkTableInvolvedChecksLocksForExpiryOnCommitWhenRequired() {
-        // Test table is thorough, therefore we check immutable timestamp lock
-        assertThatThrownBy(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
-                .isExactlyInstanceOf(TransactionLockTimeoutException.class);
-    }
-
     @Test
     public void testMarkTableInvolvedDoesNoCheckLocksForExpiryOnCommitWhenNotRequired() {
         // Test table is not thorough, therefore no immutable timestamp lock checking
-        testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE);
+        assertThatCode(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE))
+                .doesNotThrowAnyException();
+
+        if (keyValueService.sweepsEntriesInStrictlyNonDecreasingFashion()) {
+            assertThatCode(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
+                    .doesNotThrowAnyException();
+        } else {
+            assertThatThrownBy(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
+                    .isExactlyInstanceOf(TransactionLockTimeoutException.class);
+        }
     }
 
     @Testu}(j
 (ddec50c29546659d961c4897e7ecbcde3efe9efbjz
 Latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/AtlasDbTestCase.javaj|
 modifiedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X;  @@ -77,11 +77,14 @@ public class AtlasDbTestCase {
 
     protected TransactionKnowledgeComponents knowledge;
 
+    protected ExecutorService deleteExecutor;
+
     @Rule
     public InMemoryTimeLockRule inMemoryTimeLockRule = new InMemoryTimeLockRule(CLIENT);
 
     @Before
     public void setUp() throws Exception {
+        deleteExecutor = MoreExecutors.newDirectExecutorService();
         lockClient = LockClient.of(CLIENT);
         lockService = inMemoryTimeLockRule.getLockService();
         timelockService = inMemoryTimeLockRule.getLegacyTimelockService();u}(j
 (864d8b372d38e6bbe575244e1b439a23398db117jz
 Uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/TableMigratorTest.javaj|
 modifiedjt
 Kju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -89,7 +89,7 @@ public void testMigrationToDifferentKvs() throws TableMappingNotFoundException {
 
         final InMemoryKeyValueService kvs2 = new InMemoryKeyValueService(false);
         final ConflictDetectionManager cdm2 = ConflictDetectionManagers.createWithNoConflictDetection();
-        final SweepStrategyManager ssm2 = SweepStrategyManagers.completelyConservative();
+        final SweepStrategyManager ssm2 = SweepStrategyManagers.completelyConservative(kvs2);
         final MetricsManager metricsManager = MetricsManagers.createForTests();
         final TestTransactionManagerImpl txManager2 = new TestTransactionManagerImpl(
                 metricsManager,
@@ -128,7 +128,7 @@ public void testMigrationToDifferentKvs() throws TableMappingNotFoundException {
         checkpointer.deleteCheckpoints();
 
         final ConflictDetectionManager verifyCdm = ConflictDetectionManagers.createWithNoConflictDetection();
-        final SweepStrategyManager verifySsm = SweepStrategyManagers.completelyConservative();
+        final SweepStrategyManager verifySsm = SweepStrategyManagers.completelyConservative(kvs2);
         final TestTransactionManagerImpl verifyTxManager = new TestTransactionManagerImpl(
                 metricsManager,
                 kvs2,u}(j
 (25c1bb6a752a65ce98d2dc58adc485085adacef9jz
 latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javaj|
 modifiedjt
 Kju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -240,7 +240,9 @@ public void registersMetrics() throws InterruptedException {
                 .contains(FINISH_TASK_METRIC_NAME)
                 .contains("expectations.bytesRead")
                 .contains("expectations.kvsReads")
-                .contains("expectations.ageMillis");
+                .contains("expectations.ageMillis")
+                .contains("expectations.cellCommitLocksRequested")
+                .contains("expectations.rowCommitLocksRequested");
         assertThat(registry.timer(MetricName.builder()
                                 .safeName(SETUP_TASK_METRIC_NAME)
                                 .build())u}(j
 (6a539c73f46339e398e128a8c5ba8e32e8ea9869jz
 eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj|
 modifiedjt
 Kju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X0  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
@@ -94,6 +95,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.impl.metrics.DefaultMetricsFilterEvaluationContext;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.ToplistDeltaFilteringTableLevelMetricsController;
@@ -121,6 +123,7 @@
 import com.palantir.lock.v2.LockImmutableTimestampResponse;
 import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.TimelockService;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.math.BigInteger;
 import java.nio.ByteBuffer;
@@ -316,6 +319,8 @@ public void cleanup() {}
     static final TableReference TABLE_SWEPT_THOROUGH_MIGRATION =
             TableReference.createFromFullyQualifiedName("default.table5");
 
+    static final TableReference TABLE_NO_SWEEP = TableReference.createFromFullyQualifiedName("default.table6");
+
     private static final byte[] ROW_FOO = "foo".getBytes(StandardCharsets.UTF_8);
     private static final byte[] ROW_BAR = "bar".getBytes(StandardCharsets.UTF_8);
     private static final byte[] COL_A = "a".getBytes(StandardCharsets.UTF_8);
@@ -346,6 +351,9 @@ public void setUp() throws Exception {
                 TABLE_SWEPT_THOROUGH_MIGRATION,
                 getTableMetadataForSweepStrategy(SweepStrategy.THOROUGH_MIGRATION)
                         .persistToBytes());
+        keyValueService.createTable(
+                TABLE_NO_SWEEP,
+                getTableMetadataForSweepStrategy(SweepStrategy.NOTHING).persistToBytes());
     }
 
     @Override
@@ -360,7 +368,7 @@ protected TestTransactionManager constructTestTransactionManager() {
                 sweepStrategyManager,
                 timestampCache,
                 sweepQueue,
-                MoreExecutors.newDirectExecutorService(),
+                deleteExecutor,
                 transactionWrapper,
                 keyValueServiceWrapper,
                 knowledge);
@@ -1552,7 +1560,22 @@ public void commitDoesNotThrowIfAlreadySuccessfullyCommitted() {
     }
 
     @Test
-    public void validateLocksOnReadsIfThoroughlySwept() {
+    public void doNotValidateLocksOnNonEmptyReadsIfThoroughlySwept() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        assertThatCode(() -> transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL)))
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void validateLocksOnEmptyReadsIfThoroughlySwept() {
         long transactionTs = timelockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
         Transaction transaction =
@@ -1564,6 +1587,22 @@ public void validateLocksOnReadsIfThoroughlySwept() {
                 .isThrownBy(() -> transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL)));
     }
 
+    @Test
+    public void doNotValidateLocksOnCommitIfValidationFlagIsFalseAndOnlyReadNonEmptyValuesOnThoroughlySweptTable() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+
+        assertThatCode(transaction::commit).doesNotThrowAnyException();
+    }
+
     @Test
     public void validateLocksOnlyOnCommitIfValidationFlagIsFalse() {
         long transactionTs = timelockService.getFreshTimestamp();
@@ -1579,7 +1618,45 @@ public void validateLocksOnlyOnCommitIfValidationFlagIsFalse() {
     }
 
     @Test
-    public void checkImmutableTsLockOnceIfThoroughlySwept_WithValidationOnReads() {
+    public void validateLocksOnCommitIfEmptyReadsFollowedByNonEmptyReadsIfValidationFlagIsFalse() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        // First reading empty value
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL_2));
+        // Then reading non-empty value.
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+
+        // Make sure that lock is still validated in the end due to the initial empty read
+        assertThatExceptionOfType(TransactionLockTimeoutException.class).isThrownBy(transaction::commit);
+    }
+
+    @Test
+    public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithValidationOnReads() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        Transaction transaction = getSnapshotTransactionWith(
+                spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+        transaction.commit();
+        spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
+
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+    }
+
+    @Test
+    public void checkImmutableTsLockOnceIfEmptyReadOnThoroughlySwept_WithValidationOnReads() {
         TimelockService spiedTimeLockService = spy(timelockService);
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
@@ -1595,7 +1672,25 @@ public void checkImmutableTsLockOnceIfThoroughlySwept_WithValidationOnReads() {
     }
 
     @Test
-    public void checkImmutableTsLockOnceIfThoroughlySwept_WithoutValidationOnReads() {
+    public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithoutValidationOnReads() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        Transaction transaction = getSnapshotTransactionWith(
+                spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+        transaction.commit();
+        spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
+
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+    }
+
+    @Test
+    public void checkImmutableTsLockOnceIfEmptyReadOnThoroughlySwept_WithoutValidationOnReads() {
         TimelockService spiedTimeLockService = spy(timelockService);
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
@@ -2371,6 +2466,76 @@ public void testConstraintsViolated() {
                         eq(AtlasDbConstraintCheckingMode.FULL_CONSTRAINT_CHECKING_THROWS_EXCEPTIONS));
     }
 
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializableCell() {
+        // Will request commit locks for cells, but not rows
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_CELL);
+
+        // We can only get the commit info from a snapshot transaction
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        // For write transactions, we always lock an additional row in the transaction table
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(0 + 1);
+    }
+
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializable() {
+        // Will request commit locks for rows, but not cells
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(0);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(2 + 1);
+    }
+
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigration_sameRow() {
+        // Will request commit locks for cells and rows
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_LOCK_LEVEL_MIGRATION);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(
+                TABLE,
+                ImmutableMap.of(Cell.create(PtBytes.toBytes("same_row"), PtBytes.toBytes("column1")), TEST_VALUE));
+        txn.put(
+                TABLE,
+                ImmutableMap.of(
+                        Cell.create(
+                                PtBytes.toBytes("same_row"),
+                                // Writing to the same row, but different column/cell
+                                PtBytes.toBytes("column2")),
+                        TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
+    }
+
+    @Test
+    public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
+        for (int idx = 0; idx < SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS; idx++) {
+            putUncommittedAtFreshTimestamp(TABLE_NO_SWEEP, TEST_CELL);
+        }
+        assertThatLoggableExceptionThrownBy(
+                        () -> txManager.runTaskThrowOnConflict(txn -> txn.get(TABLE_NO_SWEEP, Set.of(TEST_CELL))))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageStartingWith("Unable to filter cells")
+                .hasExactlyArgs(
+                        SafeArg.of("table", TABLE_NO_SWEEP),
+                        SafeArg.of("maxIterations", SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS));
+    }
+
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,u      }(j
 (b5c7b9efcec99e2e4e3b5ccc3eb2f13e725dca1ajz
 9atlasdb-workload-server-antithesis/var/docker-compose.ymlj|
 modifiedjt
 K ju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X8  @@ -15,8 +15,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra1
-    volumes:
-      - /opt/config/volumes/cassandra1:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
@@ -35,8 +33,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra2
-    volumes:
-      - /opt/config/volumes/cassandra2:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
@@ -55,8 +51,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra3
-    volumes:
-      - /opt/config/volumes/cassandra3:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.4u}(j
 (6fff522b93c2fac008381bf889fb8bd37ac6b462jz
 matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelection.javaj|
 modifiedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 Xm  @@ -60,6 +60,10 @@ default void check() {
                 SafeArg.of("endColumnExclusive", endColumnExclusive()));
     }
 
+    static ColumnRangeSelection all() {
+        return ImmutableColumnRangeSelection.builder().build();
+    }
+
     static ImmutableColumnRangeSelection.Builder builder() {
         return ImmutableColumnRangeSelection.builder();
     }u}(j
 (813978dd1860b6fe6d1edf472c0e66a8bd3a02a9jz
 oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javaj|
 modifiedjt
 Kju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -32,7 +32,7 @@ public interface InteractiveTransaction {
 
     void delete(String table, WorkloadCell workloadCell);
 
-    List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection);
+    List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection);
 
     List<WitnessedTransactionAction> witness();
 }u}(j
 (f2fc56cca46a09c2ef718c3b7cb6b8d4000c1d8fjz
 atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javaj|
 modifiedjt
 Kju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 @@ -16,4 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-public interface InvalidWitnessedTransactionAction {}
+public interface InvalidWitnessedTransactionAction {
+    // Marker interface
+}u}(j
 (284f26075e3ae1ed8320bcbc8402749af631ccddjz
 atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javaj|
 modifiedjt
 Kju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj
 X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X5  @@ -23,12 +23,15 @@
 import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
+import java.util.stream.Collectors;
 import org.immutables.value.Value;
 
 @Value.Immutable
 public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedTransactionAction {
     RowColumnRangeReadTransactionAction originalQuery();
 
+    // This is a List rather than a Set or Map because the ordering in which the columns and values are returned is
+    // important (it must match the ordering specified by the contract of row column range reads).
     List<ColumnValue> columnsAndValues();
 
     @Override
@@ -39,14 +42,15 @@ default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
     @Value.Check
     default void check() {
         Set<Integer> knownColumns = new HashSet<>();
-        for (ColumnValue columnValue : columnsAndValues()) {
-            Preconditions.checkState(
-                    !knownColumns.contains(columnValue.column()),
-                    "Duplicate column in columnsAndValues",
-                    SafeArg.of("duplicatedColumn", columnValue.column()),
-                    SafeArg.of("columnsAndValues", columnsAndValues()));
-            knownColumns.add(columnValue.column());
-        }
+        Set<Integer> duplicateColumns = columnsAndValues().stream()
+                .map(ColumnValue::column)
+                .filter(column -> !knownColumns.add(column))
+                .collect(Collectors.toSet());
+        Preconditions.checkState(
+                duplicateColumns.isEmpty(),
+                "Duplicate columns in columnsAndValues",
+                SafeArg.of("duplicateColumns", duplicateColumns),
+                SafeArg.of("columnsAndValues", columnsAndValues()));
     }
 
     static ImmutableWitnessedRowColumnRangeReadTransactionAction.Builder builder() {u}(j
 (b82a1877bfa21ed5ff5d495189902a280d14ea0cjz
 atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javaj|
 modifiedjt
 Kju
 Kj~
 K-j
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj
 X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 Xt  @@ -20,45 +20,52 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 
 import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
 import org.junit.Test;
 
 public class WitnessedRowColumnRangeReadTransactionActionTest {
     @Test
     public void canCreateWitness() {
         assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
-                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                                .table("foo")
-                                .row(1)
-                                .columnRangeSelection(
-                                        ColumnRangeSelection.builder().build())
-                                .build())
+                .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
+                .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                        .table("foo")
+                        .row(1)
+                        .columnRangeSelection(
+                                ColumnRangeSelection.builder().build())
                         .build())
+                .build())
                 .doesNotThrowAnyException();
     }
 
     @Test
     public void cannotCreateWitnessWithDuplicateColumns() {
+        List<ColumnValue> columnsAndValues = ImmutableList.of(
+                ColumnValue.of(1, 5),
+                ColumnValue.of(5, 1),
+                ColumnValue.of(1, 3),
+                ColumnValue.of(5, 8),
+                ColumnValue.of(9, 99));
+
         assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))
-                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                                .table("foo")
-                                .row(1)
-                                .columnRangeSelection(
-                                        ColumnRangeSelection.builder().build())
-                                .build())
+                .addAllColumnsAndValues(columnsAndValues)
+                .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                        .table("foo")
+                        .row(1)
+                        .columnRangeSelection(
+                                ColumnRangeSelection.builder().build())
                         .build())
+                .build())
                 .isInstanceOf(SafeIllegalStateException.class)
-                .hasMessageContaining("Duplicate column in columnsAndValues")
+                .hasMessageContaining("Duplicate columns in columnsAndValues")
                 .hasExactlyArgs(
-                        SafeArg.of("duplicatedColumn", 1),
-                        SafeArg.of(
-                                "columnsAndValues",
-                                ImmutableList.of(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))));
+                        SafeArg.of("duplicateColumns", ImmutableSet.of(1, 5)),
+                        SafeArg.of("columnsAndValues", columnsAndValues));
     }
 }u}(j
 (37e59da7fde3c443b1071e9b0c484c2da4e9f50ejz
 latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj|
 modifiedjt
 K'ju
 K j~
 K'j
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 Xk  @@ -37,6 +37,8 @@
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
@@ -142,6 +144,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().transientRowsConfig();
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
+        SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadNoTouchWorkflowConfiguration =
+                configuration.install().singleBusyCellReadsNoTouchConfig();
         BankBalanceWorkflowConfiguration bankBalanceConfig =
                 configuration.install().bankBalanceConfig();
         RandomWorkflowConfiguration randomWorkflowConfig =
@@ -159,6 +163,10 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
                         createSingleBusyCellWorkflowValidator(
                                 transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellReadNoTouchWorkflowValidator(
+                                transactionStoreFactory,
+                                singleBusyCellReadNoTouchWorkflowConfiguration,
+                                environment.lifecycle()),
                         createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
                         createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
 
@@ -244,6 +252,37 @@ private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
                 SerializableInvariantLogReporter.INSTANCE);
     }
 
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellReadNoTouchWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellReadNoTouchWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-read")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-write")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellReadNoTouchWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellReadNoTouchWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
     private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             RingWorkflowConfiguration workflowConfig,u}(j
 (388054e20c18c9c8d612db0e6d9ac1018b7f9b14jz
 atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj|
 modifiedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X)  @@ -20,6 +20,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
@@ -45,5 +46,7 @@ public interface WorkloadServerInstallConfiguration {
 
     RandomWorkflowConfiguration randomConfig();
 
+    SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadsNoTouchConfig();
+
     boolean exitAfterRunning();
 }u}(j
 (da4b728986375bd8565c46e930098c1a684a145cjz
 Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj|
 modifiedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -41,4 +41,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: false
\ No newline at end of fileu}(j
 (50dbd20de7876d2a9cb53eef291722b8b19cd0b5jz
 Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj|
 modifiedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 Xr  @@ -78,4 +78,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single_busy_cell_no_touch_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: trueu}(j
 (7bd7f984a5ef15a2179c415620f48a0737332c43jz
 Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj|
 modifiedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -42,4 +42,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: true
\ No newline at end of fileu}(j
 (20b31cf76e2133d94ff55a28f70c6c66e2677ee1jz
 latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj|
 modifiedjt
 Kju
 K	j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X	  @@ -101,7 +101,7 @@ public void delete(String table, WorkloadCell workloadCell) {
     }
 
     @Override
-    public List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection) {
+    public List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection) {
         return run(
                 tableReference -> {
                     // Having a non-configurable batch hint is a bit iffy, but suffices as this won't be used in
@@ -111,20 +111,22 @@ public List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRang
                             List.of(AtlasDbUtils.toAtlasKey(row)),
                             BatchColumnRangeSelection.create(
                                     AtlasDbUtils.toAtlasColumnRangeSelection(columnRangeSelection), 100));
+                    Preconditions.checkState(
+                            iterators.size() == 1,
+                            "Expected exactly one iterator to be returned",
+                            SafeArg.of("iteratorsReturned", iterators.size()));
                     List<ColumnValue> columnsAndValues = EntryStream.of(iterators.get(AtlasDbUtils.toAtlasKey(row)))
                             .mapKeys(Cell::getColumnName)
                             .mapKeys(AtlasDbUtils::fromAtlasColumn)
                             .mapValues(AtlasDbUtils::fromAtlasValue)
                             .map(entry -> ColumnValue.of(entry.getKey(), entry.getValue()))
                             .collect(Collectors.toList());
-                    witnessedTransactionActions.add(WitnessedRowColumnRangeReadTransactionAction.builder()
-                            .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                                    .table(table)
-                                    .row(row)
-                                    .columnRangeSelection(columnRangeSelection)
-                                    .build())
-                            .columnsAndValues(columnsAndValues)
-                            .build());
+                    witnessedTransactionActions.add(RowColumnRangeReadTransactionAction.builder()
+                            .table(table)
+                            .row(row)
+                            .columnRangeSelection(columnRangeSelection)
+                            .build()
+                            .witness(columnsAndValues));
                     return columnsAndValues;
                 },
                 table);u}(j
 (b571d84c056ad186aa112b34d8c57b4d090d56b3jz
 katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReader.javaj|
 modifiedjt
 Kju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -23,6 +23,9 @@
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import io.vavr.collection.Map;
@@ -57,8 +60,8 @@ public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTrans
         if (allValues.size() > LARGE_HISTORY_LIMIT) {
             log.error(
                     "Attempted to do range queries in a simple way, even though the history is large ({} entries)! If"
-                        + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
-                        + " efficient range query implementation.",
+                            + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
+                            + " efficient range query implementation.",
                     SafeArg.of("size", allValues.size()));
         }
         return allValues
@@ -74,11 +77,8 @@ public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTrans
                             .contains(tableAndWorkloadCell.cell().column());
                 })
                 .filterValues(Optional::isPresent)
-                .map(entry -> ColumnValue.of(
-                        entry._1().cell().column(),
-                        entry._2()
-                                .orElseThrow(() -> new SafeRuntimeException(
-                                        "Empty values should already have been filtered out!"))))
+                .mapValues(Optional::get)
+                .map(entry -> ColumnValue.of(entry._1().cell().column(), entry._2()))
                 .sortBy(ColumnValue::column)
                 .toJavaList();
     }u}(j
 (cfa7bb7b766851d22237ea49091b9cce6c50c789jz
 atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowConfiguration.javaj|
 addedjt
 K ju
 K j~
 K j
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 Xz  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellReadNoTouchWorkflowConfiguration.TYPE)
+public interface SingleBusyCellReadNoTouchWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell-reads-no-touch";
+
+    TableConfiguration tableConfiguration();
+}u}(j
 (ae852affb871f77d186c4b71ecca052b5aeeed40jz
 tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflows.javaj|
 addedjt
 Kjju
 K j~
 Kjj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions. This workflow differs
+ * from the {@link SingleBusyCellWorkflows} in the way that its read transaction only does read and doesn't touch the
+ * cell with its current value or -1. This allows us to exercise the code path of read-write transaction that only do
+ * reads, which is necessary to catch bugs like sweep deleting entries under a transaction if it doesn't check for
+ * immutableTimestamp lock.
+ */
+public final class SingleBusyCellReadNoTouchWorkflows {
+    private SingleBusyCellReadNoTouchWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReads(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReads(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(
+                        txn -> txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL))))
+                .collect(Collectors.toList());
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
+    }
+}u}(j
 (9002a5ed3382a35694d630c784b417cd15befa46jz
 hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javaj|
 modifiedjt
 Kju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 XA  @@ -38,6 +38,7 @@
 import java.security.SecureRandom;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Objects;
 import java.util.Optional;
 import java.util.Set;
 import java.util.stream.Collectors;
@@ -141,10 +142,12 @@ private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActi
                 .orElseThrow(() -> new SafeIllegalStateException(
                         "Expected to find a read of the summary row", SafeArg.of("actions", actions)));
         WitnessedReadTransactionAction normalRowRead = readTransactionActions.stream()
-                .filter(action -> action.cell().key() != SUMMARY_ROW)
+                .filter(action -> Objects.equals(
+                                action.cell().key(), summaryRowRead.cell().column())
+                        && action.cell().column() == COLUMN)
                 .findAny()
                 .orElseThrow(() -> new SafeIllegalStateException(
-                        "Expected to find a read of a normal row", SafeArg.of("actions", actions)));
+                        "Expected to find a read of a corresponding normal row", SafeArg.of("actions", actions)));
         if (!summaryRowRead.value().equals(normalRowRead.value())) {
             return Stream.of(CrossCellInconsistency.builder()
                     .putInconsistentValues(u}(j
 (c8018ac7639c00059b53f6ab1525b9304eba6674jz
 patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj|
 modifiedjt
 K,ju
 K5j~
 Kaj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X'  @@ -59,10 +59,10 @@ public void before() {
     @Test
     public void witnessRecordsAllSingleCellActions() {
         assertThat(readWrite(transaction -> {
-                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-                    transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
-                }))
+            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+            transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
+        }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
@@ -72,10 +72,10 @@ public void witnessRecordsAllSingleCellActions() {
     @Test
     public void readHandlesEmptyAndPresentValue() {
         assertThat(readWrite(transaction -> {
-                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-                    transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
-                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-                }))
+            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+            transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+        }))
                 .containsExactly(
                         WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
@@ -85,20 +85,16 @@ public void readHandlesEmptyAndPresentValue() {
     @Test
     public void witnessRecordsColumnRangeActions() {
         assertThat(readWrite(transaction -> {
-                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            WORKLOAD_CELL_TWO.key(),
-                            ColumnRangeSelection.builder().build());
-                }))
+            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+            transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+        }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedRowColumnRangeReadTransactionAction.builder()
                                 .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                         .table(TABLE_1)
                                         .row(WORKLOAD_CELL_TWO.key())
-                                        .columnRangeSelection(
-                                                ColumnRangeSelection.builder().build())
+                                        .columnRangeSelection(ColumnRangeSelection.all())
                                         .build())
                                 .addColumnsAndValues(ColumnValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
                                 .build());
@@ -107,17 +103,13 @@ public void witnessRecordsColumnRangeActions() {
     @Test
     public void emptyColumnRangeReadsAreRecorded() {
         assertThat(readWrite(transaction -> {
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            WORKLOAD_CELL_TWO.key(),
-                            ColumnRangeSelection.builder().build());
-                }))
+            transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+        }))
                 .containsExactly(WitnessedRowColumnRangeReadTransactionAction.builder()
                         .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                 .table(TABLE_1)
                                 .row(WORKLOAD_CELL_TWO.key())
-                                .columnRangeSelection(
-                                        ColumnRangeSelection.builder().build())
+                                .columnRangeSelection(ColumnRangeSelection.all())
                                 .build())
                         .build());
     }
@@ -126,12 +118,11 @@ public void emptyColumnRangeReadsAreRecorded() {
     public void allRelevantCellsAreRecordedForFullColumnScan() {
         int iterationCount = 1000;
         assertThat(readWrite(transaction -> {
-                    IntStream.range(0, iterationCount)
-                            .forEach(column ->
-                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-                    transaction.getRowColumnRange(
-                            TABLE_1, 1, ColumnRangeSelection.builder().build());
-                }))
+            IntStream.range(0, iterationCount)
+                    .forEach(column ->
+                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+            transaction.getRowColumnRange(TABLE_1, 1, ColumnRangeSelection.all());
+        }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
@@ -149,17 +140,17 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
         int startInclusive = 313;
         int endExclusive = 855;
         assertThat(readWrite(transaction -> {
-                    IntStream.range(0, iterationCount)
-                            .forEach(column ->
-                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            1,
-                            ColumnRangeSelection.builder()
-                                    .startColumnInclusive(startInclusive)
-                                    .endColumnExclusive(endExclusive)
-                                    .build());
-                }))
+            IntStream.range(0, iterationCount)
+                    .forEach(column ->
+                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+            transaction.getRowColumnRange(
+                    TABLE_1,
+                    1,
+                    ColumnRangeSelection.builder()
+                            .startColumnInclusive(startInclusive)
+                            .endColumnExclusive(endExclusive)
+                            .build());
+        }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
@@ -189,8 +180,8 @@ public void deleteThrowsWhenTableDoesNotExist() {
 
     @Test
     public void getRowsColumnRangeThrowsWhenTableDoesNotExist() {
-        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.getRowColumnRange(
-                TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.builder().build()));
+        assertThatThrownWhenUnknownTableReferenced(transaction ->
+                transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.all()));
     }
 
     @Test
@@ -213,8 +204,8 @@ public void deleteThrowsWhenInteractiveTransactionAlreadyWitnessed() {
 
     @Test
     public void getRowColumnRangeThrowsWhenInteractiveTransactionAlreadyWitnessed() {
-        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(transaction -> transaction.getRowColumnRange(
-                TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.builder().build()));
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(transaction ->
+                transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.all()));
     }
 
     private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
@@ -229,22 +220,22 @@ private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTr
     private void assertThatThrownWhenUnknownTableReferenced(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-                    transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
-                    return null;
-                }))
+            transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
+            return null;
+        }))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Transaction action has unknown table.");
     }
 
     private void assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-                    AtlasDbInteractiveTransaction transaction =
-                            new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
-                    transaction.witness();
-                    transactionConsumer.accept(transaction);
-                    return null;
-                }))
+            AtlasDbInteractiveTransaction transaction =
+                    new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
+            transaction.witness();
+            transactionConsumer.accept(transaction);
+            return null;
+        }))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Transaction has already been witnessed and can no longer perform any actions.");
     }u}(j
 (64a306509b8c4df3ad24f99c149bfd057264b29ajz
 oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReaderTest.javaj|
 modifiedjt
 Kju
 Kj~
 K+j
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X2
  @@ -38,10 +38,10 @@ public void doesNotReadCellsFromDifferentTable() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                        .table(WorkloadTestHelpers.TABLE_2)
-                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
-                        .columnRangeSelection(ColumnRangeSelection.builder().build())
-                        .build()))
+                .table(WorkloadTestHelpers.TABLE_2)
+                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                .columnRangeSelection(ColumnRangeSelection.all())
+                .build()))
                 .isEmpty();
     }
 
@@ -51,10 +51,10 @@ public void doesNotReadCellsFromDifferentRow() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                        .table(WorkloadTestHelpers.TABLE_1)
-                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
-                        .columnRangeSelection(ColumnRangeSelection.builder().build())
-                        .build()))
+                .table(WorkloadTestHelpers.TABLE_1)
+                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
+                .columnRangeSelection(ColumnRangeSelection.builder().build())
+                .build()))
                 .isEmpty();
     }
 
@@ -67,15 +67,28 @@ public void readsCellsFromRangeInOrder() {
                     Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         }
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                        .table(WorkloadTestHelpers.TABLE_1)
-                        .row(1)
-                        .columnRangeSelection(ColumnRangeSelection.builder()
-                                .startColumnInclusive(2)
-                                .endColumnExclusive(4)
-                                .build())
-                        .build()))
+                .table(WorkloadTestHelpers.TABLE_1)
+                .row(1)
+                .columnRangeSelection(ColumnRangeSelection.builder()
+                        .startColumnInclusive(2)
+                        .endColumnExclusive(4)
+                        .build())
+                .build()))
                 .containsExactly(
                         ColumnValue.of(2, WorkloadTestHelpers.VALUE_ONE),
                         ColumnValue.of(3, WorkloadTestHelpers.VALUE_ONE));
     }
+
+    @Test
+    public void doesNotReturnExplicitlyEmptyValues() {
+        valueMap.with(map -> map.put(
+                TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
+                Optional.empty()));
+        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+                .table(WorkloadTestHelpers.TABLE_1)
+                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                .columnRangeSelection(ColumnRangeSelection.all())
+                .build()))
+                .isEmpty();
+    }
 }u}(j
 (9a286d1f5fa43cc0c50f1f0308ffb2806b873276jz
 qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj|
 modifiedjt
 Kju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X;  @@ -95,14 +95,12 @@ public WitnessedTransactionBuilder delete(Integer row, Integer column) {
 
         public WitnessedTransactionBuilder rowColumnRangeRead(
                 Integer row, ColumnRangeSelection columnRangeSelection, List<ColumnValue> valuesRead) {
-            actions.add(WitnessedRowColumnRangeReadTransactionAction.builder()
-                    .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                            .table(table)
-                            .row(row)
-                            .columnRangeSelection(columnRangeSelection)
-                            .build())
-                    .columnsAndValues(valuesRead)
-                    .build());
+            RowColumnRangeReadTransactionAction transactionAction = RowColumnRangeReadTransactionAction.builder()
+                    .table(table)
+                    .row(row)
+                    .columnRangeSelection(columnRangeSelection)
+                    .build();
+            actions.add(transactionAction.witness(valuesRead));
             return this;
         }
 u}(j
 (ce49e27d10355fb6f5b71d88a206899b12b7f25bjz
 xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javaj|
 addedjt
 K}ju
 K j~
 K}j
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -0,0 +1,125 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Sets;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Collection;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class SingleBusyCellReadNoTouchWorkflowsTest {
+    private static final String TABLE_NAME = "busy.readnotouch.cell";
+    private static final int ITERATION_COUNT = 1_000;
+    private static final SingleBusyCellReadNoTouchWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow workflow = SingleBusyCellReadNoTouchWorkflows.create(
+            transactionStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)),
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)));
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void transactionsDoNotConflictExcessively() {
+        WorkflowHistory workflowHistory = workflow.run();
+        assertThat(workflowHistory.history()).hasSizeBetween(ITERATION_COUNT / 2, ITERATION_COUNT);
+    }
+
+    @Test
+    public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).allSatisfy(action -> assertThat(action)
+                .isInstanceOfSatisfying(WitnessedSingleCellTransactionAction.class, singleCellAction -> {
+                    assertThat(singleCellAction.table()).isEqualTo(TABLE_NAME);
+                    assertThat(singleCellAction.cell()).isEqualTo(SingleBusyCellReadNoTouchWorkflows.BUSY_CELL);
+                }));
+    }
+
+    @Test
+    public void targetCellIsReadModifiedAndDeleted() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+
+    @Test
+    public void readTransactionsDontDoWrites() {
+        WorkflowHistory workflowHistory = workflow.run();
+
+        Set<WitnessedTransaction> witnessedTransactionsWithReads = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream().anyMatch(WitnessedReadTransactionAction.class::isInstance))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> witnessedTransactionsWithWritesOrDeletes = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream()
+                        .anyMatch(action -> action instanceof WitnessedWriteTransactionAction
+                                || action instanceof WitnessedDeleteTransactionAction))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> transactionsWithReadsAndWritesOrDeletes =
+                Sets.intersection(witnessedTransactionsWithReads, witnessedTransactionsWithWritesOrDeletes);
+
+        assertThat(transactionsWithReadsAndWritesOrDeletes).isEmpty();
+    }
+}u}(j
 (a982645e9685b7e2b328546bb927b2c415ad29bf     jz
 latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj|
 modifiedjt
 K|ju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X&  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.google.common.collect.ImmutableList;
@@ -41,8 +42,10 @@
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.stream.Collectors;
@@ -127,7 +130,7 @@ public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
         transactionStore.readWrite(txn -> txn.delete(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 1, 1)));
         invariant.accept(history, reference::set);
         assertThat(reference.get())
-                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                .containsExactly(CrossCellInconsistency.builder()
                         .putInconsistentValues(
                                 TableAndWorkloadCell.of(
                                         TABLE_NAME,
@@ -139,7 +142,7 @@ public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
                                         ImmutableWorkloadCell.of(
                                                 TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 1)),
                                 Optional.of(0))
-                        .build()));
+                        .build());
     }
 
     @Test
@@ -152,7 +155,7 @@ public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
                 TransientRowsWorkflows.VALUE));
         invariant.accept(history, reference::set);
         assertThat(reference.get())
-                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                .containsExactly(CrossCellInconsistency.builder()
                         .putInconsistentValues(
                                 TableAndWorkloadCell.of(
                                         TABLE_NAME,
@@ -164,7 +167,7 @@ public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
                                         ImmutableWorkloadCell.of(
                                                 TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 2)),
                                 Optional.empty())
-                        .build()));
+                        .build());
     }
 
     @Test
@@ -185,7 +188,123 @@ public void invariantReportsViolationsFromTransactionHistory() {
                 .build();
         invariant.accept(falseHistory, reference::set);
 
-        assertThat(reference.get()).hasSize(ITERATION_COUNT - 1);
+        assertThat(reference.get())
+                .hasSize(ITERATION_COUNT - 1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
+        WitnessedReadTransactionAction readWitness = WitnessedReadTransactionAction.of(
+                TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of the summary row")
+                .hasExactlyArgs(SafeArg.of("actions", ImmutableList.of(readWitness)));
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCorrespondingPrimaryRow() {
+        List<WitnessedTransactionAction> actions = ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of a corresponding normal row")
+                .hasExactlyArgs(SafeArg.of("actions", actions));
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothEmpty() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions = getReadWitnessesForSingleTransaction(
+                2, Optional.of(TransientRowsWorkflows.VALUE), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsPresentAndPrimaryIsAbsent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.of(TransientRowsWorkflows.VALUE), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsAbsentAndPrimaryIsPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    private ImmutableWorkflowHistory getWorkflowHistory(List<WitnessedTransactionAction> actions) {
+        return ImmutableWorkflowHistory.builder()
+                .transactionStore(transactionStore)
+                .history(ImmutableList.of(ImmutableFullyWitnessedTransaction.builder()
+                        .addAllActions(actions)
+                        .startTimestamp(0L)
+                        .commitTimestamp(1L)
+                        .build()))
+                .build();
+    }
+
+    private static List<WitnessedTransactionAction> getReadWitnessesForSingleTransaction(
+            int columnIndex, Optional<Integer> summaryValue, Optional<Integer> primaryValue) {
+        return ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, columnIndex),
+                        summaryValue),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(columnIndex, TransientRowsWorkflows.COLUMN),
+                        primaryValue));
+    }
+
+    private static void inconsistencyInvolvesPairOfPrimaryAndSummaryCells(CrossCellInconsistency inconsistency) {
+        Map<TableAndWorkloadCell, Optional<Integer>> readValues = inconsistency.inconsistentValues();
+        TableAndWorkloadCell summaryCell = readValues.keySet().stream()
+                .filter(tableAndWorkloadCell -> tableAndWorkloadCell.cell().key() == TransientRowsWorkflows.SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of the summary row", SafeArg.of("readValues", readValues)));
+        TableAndWorkloadCell primaryCell = getPrimaryCellForSummaryCell(summaryCell);
+
+        assertThat(readValues.keySet()).containsExactlyInAnyOrder(summaryCell, primaryCell);
+        assertThat(readValues.values())
+                .containsExactlyInAnyOrder(Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+    }
+
+    // This workflow uses a single table, where the summary row's columns correspond to rows with primary values.
+    private static TableAndWorkloadCell getPrimaryCellForSummaryCell(TableAndWorkloadCell summaryCell) {
+        return TableAndWorkloadCell.of(
+                summaryCell.tableName(),
+                ImmutableWorkloadCell.of(summaryCell.cell().column(), TransientRowsWorkflows.COLUMN));
     }
 
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(u}(j
 (fe0267e6f697a967a6133f2554009d8a0be04d4cjz
 katlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtilsTest.javaj|
 modifiedjt
 Kju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -67,7 +67,7 @@ public void performTransfersReturnsBalancesWithCorrectSum() {
         when(random.nextInt(anyInt())).thenReturn(0, 1);
         Map<Integer, Integer> balances = Map.of(0, 1, 1, 1);
         Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
-        assertThat(newBalances).isEqualTo(Map.of(0, 0, 1, 2));
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(Map.of(0, 0, 1, 2));
         assertThat(newBalances.values().stream().mapToInt(Integer::intValue).sum())
                 .isEqualTo(2);
     }
@@ -77,6 +77,6 @@ public void performsTransfersOnlyIfValueWouldNotBeBelowZero() {
         when(random.nextInt(anyInt())).thenReturn(0, 1);
         Map<Integer, Integer> balances = Map.of(0, 0, 1, 2);
         Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
-        assertThat(newBalances).isEqualTo(balances);
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(balances);
     }
 }u}(j
 (7ae440730798415742814c38fb59d0707273036ejz
 datlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingGraphTest.javaj|
 modifiedjt
 Kju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X=  @@ -101,6 +101,6 @@ public void generateNewRingReturnsValidRing() {
 
     @Test
     public void asMapConvertsCorrectly() {
-        assertThat(RingGraph.from(VALID_RING).asMap()).isEqualTo(VALID_RING);
+        assertThat(RingGraph.from(VALID_RING).asMap()).containsExactlyInAnyOrderEntriesOf(VALID_RING);
     }
 }u}(j
 (022221727d6f2d598a0016a225e75264c9780625jz
 build.gradlej|
 modifiedjt
 Kju
 Kj~
 K
j
 ^https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/build.gradlej
 ]https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/build.gradlej
 phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -7,20 +7,20 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.0'
-        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.2.0'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.4'
+        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.3.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.38.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.39.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
-        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
+        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
-        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'
+        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.3'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
         classpath 'gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1'
         classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'
@@ -113,8 +113,7 @@ allprojects {
                 'Slf4jLogsafeArgs',
                 'StaticAssignmentInConstructor',
                 'StrictUnusedVariable'
-        options.errorprone.error 'DefaultLocale',
-                'SafeLoggingPropagation'
+        options.errorprone.error 'SafeLoggingPropagation'
     }
 }
 u}(j
 (351dc558cfb12f3027ca880f55c00742ee516cbdjz
  changelog/0.870.0/pr-6613.v2.ymlj|
 addedjt
 Kju
 K j~
 Kj
 vhttps://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.870.0%2Fpr-6613.v2.ymlj
 uhttps://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.870.0%2Fpr-6613.v2.ymlj
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.870.0%2Fpr-6613.v2.yml?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: There now exists an Antithesis workflow that exercises read-write transactions
+    that only do reads.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6613u}(j
 (ffd47f177c27dd39d87fb4cd84339ad7d1911c1cjz
  changelog/0.874.0/pr-6625.v2.ymlj|
 addedjt
 Kju
 K j~
 Kj
 vhttps://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.874.0%2Fpr-6625.v2.ymlj
 uhttps://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.874.0%2Fpr-6625.v2.ymlj
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.874.0%2Fpr-6625.v2.yml?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LockV1] Add async thread info snapshotting (disabled by default)'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6625u}(j
 (a6c9d3dd239346b5de33d708683efcea7ca6e0d1jz
  changelog/0.875.0/pr-6623.v2.ymlj|
 addedjt
 Kju
 K j~
 Kj
 vhttps://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.875.0%2Fpr-6623.v2.ymlj
 uhttps://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.875.0%2Fpr-6623.v2.ymlj
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.875.0%2Fpr-6623.v2.yml?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Log lock holder thread info on timeout, slow lock acquisition and contention
+  links:
+  - https://github.com/palantir/atlasdb/pull/6623u}(j
 (34c425f71f242ce114bab888f8034960c6b716e7jz
  changelog/0.877.0/pr-6602.v2.ymlj|
 addedjt
 Kju
 K j~
 Kj
 vhttps://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.877.0%2Fpr-6602.v2.ymlj
 uhttps://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.877.0%2Fpr-6602.v2.ymlj
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.877.0%2Fpr-6602.v2.yml?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Add metrics for number of requested cell/row-level commit locks
+  links:
+  - https://github.com/palantir/atlasdb/pull/6602u}(j
 (46b215e4664b4438f038bf048c14656f6fb089e1jz
  changelog/0.878.0/pr-6630.v2.ymlj|
 addedjt
 Kju
 K j~
 Kj
 vhttps://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.878.0%2Fpr-6630.v2.ymlj
 uhttps://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.878.0%2Fpr-6630.v2.ymlj
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.878.0%2Fpr-6630.v2.yml?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Remove recursive loop when filtering out cells that are not applicable
+    to our transaction.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6630u}(j
 (9914bf81d7b0081790e5b357d977f35947ad8b60jz
  changelog/0.879.0/pr-6626.v2.ymlj|
 addedjt
 Kju
 K j~
 Kj
 vhttps://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.879.0%2Fpr-6626.v2.ymlj
 uhttps://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.879.0%2Fpr-6626.v2.ymlj
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.879.0%2Fpr-6626.v2.yml?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LockV1] Pass refreshable thread info configuration'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6626u}(j
 (a17f90ec5d7c8dabd4b8d110ace6016af8cfad9cjz
  changelog/0.880.0/pr-6641.v2.ymlj|
 addedjt
 Kju
 K j~
 Kj
 vhttps://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.880.0%2Fpr-6641.v2.ymlj
 uhttps://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.880.0%2Fpr-6641.v2.ymlj
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.880.0%2Fpr-6641.v2.yml?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize CassandraService#refreshTokenRangesAndGetServers
+  links:
+  - https://github.com/palantir/atlasdb/pull/6641u}(j
 (7afdb03a2af8b0138cc1524e0d39e84990810e28jz
  changelog/0.881.0/pr-6624.v2.ymlj|
 addedjt
 Kju
 K j~
 Kj
 vhttps://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.881.0%2Fpr-6624.v2.ymlj
 uhttps://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.881.0%2Fpr-6624.v2.ymlj
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.881.0%2Fpr-6624.v2.yml?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Stopped checking immutable timestamp lock on thoroughly swept tables
+    when reading an empty value.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6624u}(j
 (3750fb7fc4996863b5345b1cb6cbf683dd8cfc1fjz
  changelog/0.882.0/pr-6648.v2.ymlj|
 addedjt
 Kju
 K j~
 Kj
 vhttps://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.882.0%2Fpr-6648.v2.ymlj
 uhttps://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.882.0%2Fpr-6648.v2.ymlj
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.882.0%2Fpr-6648.v2.yml?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize CassandraService#getAddressForHost
+  links:
+  - https://github.com/palantir/atlasdb/pull/6648u}(j
 (aa4df8d917755227eec390dd5e0d424aebabf4c7jz
  changelog/0.882.0/pr-6649.v2.ymlj|
 addedjt
 Kju
 K j~
 Kj
 vhttps://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.882.0%2Fpr-6649.v2.ymlj
 uhttps://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.882.0%2Fpr-6649.v2.ymlj
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.882.0%2Fpr-6649.v2.yml?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: bump snappy-java to 1.1.10.1
+  links:
+  - https://github.com/palantir/atlasdb/pull/6649u}(j
 (d7951f643174772a855f4d861eeddb8fc504150ajz
  changelog/0.883.0/pr-6644.v2.ymlj|
 addedjt
 Kju
 K j~
 Kj
 vhttps://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.883.0%2Fpr-6644.v2.ymlj
 uhttps://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.883.0%2Fpr-6644.v2.ymlj
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6644.v2.yml?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Create LockRequestMetadata and ChangeMetadata
+  links:
+  - https://github.com/palantir/atlasdb/pull/6644u}(j
 (f502755b47a5379d145593d6f6a21b6d0ff20be9jz
  changelog/0.883.0/pr-6646.v2.ymlj|
 addedjt
 Kju
 K j~
 Kj
 vhttps://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.883.0%2Fpr-6646.v2.ymlj
 uhttps://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.883.0%2Fpr-6646.v2.ymlj
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6646.v2.yml?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add metadata to LockEvent'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6646u}(j
 (59a104ba72569b4dfd00ae8626fea6e626f1cc19jz
  changelog/0.883.0/pr-6647.v2.ymlj|
 addedjt
 Kju
 K j~
 Kj
 vhttps://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.883.0%2Fpr-6647.v2.ymlj
 uhttps://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/changelog%2F0.883.0%2Fpr-6647.v2.ymlj
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6647.v2.yml?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add LockMetadata to IdentifiedLockRequest'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6647u}(j
 (689da2f7264afbb03bb06b6a430723bd1dcbbf4bjz
 lock-api-objects/build.gradlej|
 modifiedjt
 Kju
 K j~
 Kj
 qhttps://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api-objects%2Fbuild.gradlej
 phttps://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api-objects%2Fbuild.gradlej
 https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fbuild.gradle?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X_  @@ -16,6 +16,7 @@ dependencies {
     implementation 'com.google.errorprone:error_prone_annotations'
     implementation 'com.google.guava:guava'
     implementation project(':commons-annotations')
+    testImplementation project(path: ':lock-api')
 
     annotationProcessor 'org.immutables:value'
     compileOnly 'org.immutables:value::annotations'u}(j
 (933965abbab2686a96a62a6ac504123076081ec8jz
 Ilock-api-objects/src/main/java/com/palantir/lock/LockClientAndThread.javaj|
 addedjt
 K$ju
 K j~
 K$j
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface LockClientAndThread {
+    LockClientAndThread UNKNOWN = LockClientAndThread.of(LockClient.ANONYMOUS, "unknown-thread");
+
+    LockClient client();
+
+    String thread();
+
+    static ImmutableLockClientAndThread.Builder builder() {
+        return ImmutableLockClientAndThread.builder();
+    }
+
+    static LockClientAndThread of(LockClient client, String requestingThread) {
+        return builder().client(client).thread(requestingThread).build();
+    }
+}u}(j
 (4305d649486aabcf97ca07976c286654204cf825jz
 Jlock-api-objects/src/main/java/com/palantir/lock/watch/ChangeMetadata.javaj|
 addedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -0,0 +1,137 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.palantir.lock.watch.ChangeMetadata.Created;
+import com.palantir.lock.watch.ChangeMetadata.Deleted;
+import com.palantir.lock.watch.ChangeMetadata.Unchanged;
+import com.palantir.lock.watch.ChangeMetadata.Updated;
+import org.immutables.value.Value;
+import org.immutables.value.Value.Immutable;
+
+/**
+ * The subtypes of this class can be used to document CRUD-like operations that were applied to a value.
+ * However, the READ case is not accounted for as no locks are taken out for reads.
+ * Every instance should be associated with a {@link com.palantir.lock.LockDescriptor}.
+ * It is up to the users of metadata to know the type of value it refers to
+ * and how to interpret the different subtypes.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
+@JsonSubTypes({
+    @JsonSubTypes.Type(value = Unchanged.class, name = Unchanged.TYPE),
+    @JsonSubTypes.Type(value = Updated.class, name = Updated.TYPE),
+    @JsonSubTypes.Type(value = Deleted.class, name = Deleted.TYPE),
+    @JsonSubTypes.Type(value = Created.class, name = Created.TYPE),
+})
+public interface ChangeMetadata {
+    <T> T accept(Visitor<T> visitor);
+
+    static Unchanged unchanged() {
+        return ImmutableUnchanged.builder().build();
+    }
+
+    static Updated updated(byte[] oldValue, byte[] newValue) {
+        return ImmutableUpdated.of(oldValue, newValue);
+    }
+
+    static Deleted deleted(byte[] oldValue) {
+        return ImmutableDeleted.of(oldValue);
+    }
+
+    static Created created(byte[] newValue) {
+        return ImmutableCreated.of(newValue);
+    }
+
+    interface Visitor<T> {
+        T visit(Unchanged unchanged);
+
+        T visit(Updated updated);
+
+        T visit(Deleted deleted);
+
+        T visit(Created created);
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableUnchanged.class)
+    @JsonDeserialize(as = ImmutableUnchanged.class)
+    @JsonTypeName(Unchanged.TYPE)
+    interface Unchanged extends ChangeMetadata {
+        String TYPE = "unchanged";
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableUpdated.class)
+    @JsonDeserialize(as = ImmutableUpdated.class)
+    @JsonTypeName(Updated.TYPE)
+    interface Updated extends ChangeMetadata {
+        String TYPE = "updated";
+
+        @Value.Parameter
+        byte[] oldValue();
+
+        @Value.Parameter
+        byte[] newValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableDeleted.class)
+    @JsonDeserialize(as = ImmutableDeleted.class)
+    @JsonTypeName(Deleted.TYPE)
+    interface Deleted extends ChangeMetadata {
+        String TYPE = "deleted";
+
+        @Value.Parameter
+        byte[] oldValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableCreated.class)
+    @JsonDeserialize(as = ImmutableCreated.class)
+    @JsonTypeName(Created.TYPE)
+    interface Created extends ChangeMetadata {
+        String TYPE = "created";
+
+        @Value.Parameter
+        byte[] newValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+}u}(j
 (9ef6441b1ec7d185a6b25c242d1d64524dbaadc5jz
 Elock-api-objects/src/main/java/com/palantir/lock/watch/LockEvent.javaj|
 modifiedjt
 Kju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 Xa  @@ -16,12 +16,14 @@
 
 package com.palantir.lock.watch;
 
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonTypeName;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.logsafe.Unsafe;
+import java.util.Optional;
 import java.util.Set;
 import org.immutables.value.Value;
 
@@ -37,6 +39,9 @@ public abstract class LockEvent implements LockWatchEvent {
 
     public abstract LockToken lockToken();
 
+    @JsonIgnore
+    public abstract Optional<LockRequestMetadata> metadata();
+
     @Override
     public int size() {
         return lockDescriptors().size();
@@ -48,8 +53,15 @@ public <T> T accept(Visitor<T> visitor) {
     }
 
     public static LockWatchEvent.Builder builder(Set<LockDescriptor> lockDescriptors, LockToken lockToken) {
-        ImmutableLockEvent.Builder builder =
-                ImmutableLockEvent.builder().lockDescriptors(lockDescriptors).lockToken(lockToken);
+        return builder(lockDescriptors, lockToken, Optional.empty());
+    }
+
+    public static LockWatchEvent.Builder builder(
+            Set<LockDescriptor> lockDescriptors, LockToken lockToken, Optional<LockRequestMetadata> metadata) {
+        ImmutableLockEvent.Builder builder = ImmutableLockEvent.builder()
+                .lockDescriptors(lockDescriptors)
+                .lockToken(lockToken)
+                .metadata(metadata);
         return seq -> builder.sequence(seq).build();
     }
 }u}(j
 (baa29a11aad2762f424acb1d510175b8849ecba2jz
 Olock-api-objects/src/main/java/com/palantir/lock/watch/LockRequestMetadata.javaj|
 addedjt
 K'ju
 K j~
 K'j
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X0  @@ -0,0 +1,39 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import com.palantir.lock.LockDescriptor;
+import com.palantir.logsafe.Unsafe;
+import java.util.Map;
+import org.immutables.value.Value;
+
+/**
+ * Metadata attached to a lock request and to any {@link LockEvent} created as a result of that request.
+ * Ideally, this class is not serialized as-is to JSON due to the repetition of {@link LockDescriptor} values
+ * in {@link LockRequestMetadata#lockDescriptorToChangeMetadata()} and the parent object.
+ */
+@Unsafe
+@Value.Immutable
+public interface LockRequestMetadata {
+    Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata();
+
+    static LockRequestMetadata of(Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata) {
+        return ImmutableLockRequestMetadata.builder()
+                .lockDescriptorToChangeMetadata(lockDescriptorToChangeMetadata)
+                .build();
+    }
+}u}(j
 (8e3edb51b7ae6b3309b255039a0a6dd18134f32djz
 Jlock-api/src/main/java/com/palantir/lock/DebugThreadInfoConfiguration.javaj|
 addedjt
 K(ju
 K j~
 K(j
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -0,0 +1,40 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@JsonDeserialize(as = ImmutableDebugThreadInfoConfiguration.class)
+@JsonSerialize(as = ImmutableDebugThreadInfoConfiguration.class)
+@Value.Immutable
+public interface DebugThreadInfoConfiguration {
+
+    @JsonProperty("record-thread-info")
+    @Value.Default
+    default boolean recordThreadInfo() {
+        return false;
+    }
+
+    @JsonProperty("thread-info-snapshot-interval-millis")
+    @Value.Default
+    default long threadInfoSnapshotIntervalMillis() {
+        return 300000L;
+    }
+}u}(j
 (24a4a395982dfe44421aaba5d136f4694950815fjz
 ?lock-api/src/main/java/com/palantir/lock/LockServerConfigs.javaj|
 modifiedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 XV  @@ -20,4 +20,7 @@ public final class LockServerConfigs {
     private LockServerConfigs() {}
 
     public static final LockServerOptions DEFAULT = LockServerOptions.builder().build();
+
+    public static final DebugThreadInfoConfiguration DEFAULT_THREAD_INFO_CONFIG =
+            ImmutableDebugThreadInfoConfiguration.builder().build();
 }u}(j
 (da50ee7393b93c8d71153140ffe86ba6c40366fcjz
 ?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javaj|
 modifiedjt
 Kju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -16,6 +16,7 @@
 package com.palantir.lock;
 
 import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.google.common.base.MoreObjects;
@@ -126,6 +127,15 @@ public long slowLogTriggerMillis() {
         return 10000L;
     }
 
+    /**
+     * Runtime configuration relating to thread info recording (which lock is held by which client-thread).
+     */
+    @JsonIgnore
+    @Value.Default
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    }
+
     @Override
     public boolean equals(@Nullable Object obj) {
         if (this == obj) {
@@ -142,7 +152,8 @@ && getRandomBitCount() == other.getRandomBitCount()
                 && Objects.equals(getMaxAllowedClockDrift(), other.getMaxAllowedClockDrift())
                 && Objects.equals(getMaxAllowedBlockingDuration(), other.getMaxAllowedBlockingDuration())
                 && Objects.equals(getMaxNormalLockAge(), other.getMaxNormalLockAge())
-                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout());
+                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout())
+                && Objects.equals(threadInfoConfiguration(), other.threadInfoConfiguration());
     }
 
     @Override
@@ -155,7 +166,8 @@ public int hashCode() {
                 getMaxNormalLockAge(),
                 getRandomBitCount(),
                 getStuckTransactionTimeout(),
-                slowLogTriggerMillis());
+                slowLogTriggerMillis(),
+                threadInfoConfiguration());
     }
 
     @Override
@@ -169,6 +181,7 @@ public String toString() {
                 .add("randomBitCount", getRandomBitCount())
                 .add("stuckTransactionTimeout", getStuckTransactionTimeout())
                 .add("slowLogTriggerMillis", slowLogTriggerMillis())
+                .add("threadInfoConfiguration", threadInfoConfiguration())
                 .toString();
     }
 u}(j
 (6ad04228eeb384671486cf32446155659b4c354ejz
 Jlock-api/src/main/java/com/palantir/lock/client/IdentifiedLockRequest.javaj|
 modifiedjt
 Kju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -15,10 +15,12 @@
  */
 package com.palantir.lock.client;
 
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.Unsafe;
 import java.util.Optional;
 import java.util.Set;
@@ -43,15 +45,32 @@ public interface IdentifiedLockRequest {
     @Value.Parameter
     Optional<String> getClientDescription();
 
+    @Value.Parameter
+    @JsonIgnore
+    Optional<LockRequestMetadata> getMetadata();
+
     static IdentifiedLockRequest of(Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs) {
         return ImmutableIdentifiedLockRequest.of(
-                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.empty());
+                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.empty(), Optional.empty());
     }
 
     static IdentifiedLockRequest of(
             Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs, String clientDescription) {
         return ImmutableIdentifiedLockRequest.of(
-                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription));
+                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription), Optional.empty());
+    }
+
+    static IdentifiedLockRequest of(
+            Set<LockDescriptor> lockDescriptors,
+            long acquireTimeoutMs,
+            String clientDescription,
+            LockRequestMetadata metadata) {
+        return ImmutableIdentifiedLockRequest.of(
+                UUID.randomUUID(),
+                lockDescriptors,
+                acquireTimeoutMs,
+                Optional.of(clientDescription),
+                Optional.of(metadata));
     }
 
     static IdentifiedLockRequest from(LockRequest lockRequest) {u}(j
 (9f55ad6d5a91523f5133238f9b39ba8002664e51jz
 Nlock-api/src/test/java/com/palantir/lock/client/IdentifiedLockRequestTest.javaj|
 modifiedjt
 KIju
 Kj~
 KTj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -19,24 +19,86 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
 import com.fasterxml.jackson.datatype.guava.GuavaModule;
 import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockRequestMetadata;
+import java.nio.charset.StandardCharsets;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.UUID;
 import org.junit.Test;
 
 public class IdentifiedLockRequestTest {
-    private static final String SERIALIZED_LOCK_REQUEST = "{"
-            + "\"requestId\":\"885afd9c-de62-44ff-a517-5db14b71bfaa\","
-            + "\"lockDescriptors\":[{\"bytes\":\"Zm9v\"}],"
-            + "\"acquireTimeoutMs\":123,"
-            + "\"clientDescription\":\"Thread: main\"}";
+    private static final String BASE = "src/test/resources/identified-lock-request-wire-format/";
+    private static final boolean REWRITE_JSON_BLOBS = false;
+    private static final IdentifiedLockRequest BASELINE_REQUEST = ImmutableIdentifiedLockRequest.builder()
+            .requestId(new UUID(1337, 42))
+            .lockDescriptors(ImmutableSet.of(StringLockDescriptor.of("lock1"), StringLockDescriptor.of("lock2")))
+            .acquireTimeoutMs(100)
+            .clientDescription("client: test, thread: test")
+            .build();
+    private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(ImmutableMap.of(
+            StringLockDescriptor.of("lock1"), ChangeMetadata.created("something".getBytes(StandardCharsets.UTF_8))));
+    private static final ObjectMapper MAPPER = new ObjectMapper()
+            .enable(SerializationFeature.INDENT_OUTPUT)
+            .registerModule(new Jdk8Module())
+            .registerModule(new GuavaModule());
 
-    private static final ObjectMapper mapper =
-            new ObjectMapper().registerModule(new Jdk8Module()).registerModule(new GuavaModule());
+    @Test
+    public void baselineRequestIsFullCompat() {
+        assertSerializedEquals(BASELINE_REQUEST, "baseline");
+        assertDeserializedEquals("baseline", BASELINE_REQUEST);
+    }
 
     @Test
-    public void ensureSerdeBackcompat() throws Exception {
-        IdentifiedLockRequest request = mapper.readValue(SERIALIZED_LOCK_REQUEST, IdentifiedLockRequest.class);
-        String deserialized = mapper.writeValueAsString(request);
-        assertThat(mapper.readTree(deserialized)).isEqualTo(mapper.readTree(SERIALIZED_LOCK_REQUEST));
+    public void baselineRequestWithMetadataIsBackCompat() {
+        assertSerializedEquals(
+                ImmutableIdentifiedLockRequest.copyOf(BASELINE_REQUEST).withMetadata(LOCK_REQUEST_METADATA),
+                "baseline");
+    }
+
+    private static void assertSerializedEquals(IdentifiedLockRequest request, String jsonFileName) {
+        try {
+            Path path = getJsonPath(jsonFileName);
+            if (REWRITE_JSON_BLOBS) {
+                MAPPER.writeValue(path.toFile(), request);
+            }
+            String serialized = serialize(request);
+            assertThat(MAPPER.readTree(serialized))
+                    .as("Serialization yields identical JSON representation")
+                    .isEqualTo(MAPPER.readTree(Files.readString(path)));
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static void assertDeserializedEquals(String jsonFileName, IdentifiedLockRequest request) {
+        assertThat(deserialize(jsonFileName)).isEqualTo(request);
+    }
+
+    private static String serialize(IdentifiedLockRequest request) {
+        try {
+            return MAPPER.writeValueAsString(request);
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static IdentifiedLockRequest deserialize(String jsonFileName) {
+        try {
+            return MAPPER.readValue(Files.readString(getJsonPath(jsonFileName)), IdentifiedLockRequest.class);
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static Path getJsonPath(String jsonFileName) {
+        return Paths.get(BASE + jsonFileName + ".json");
     }
 }u}(j
 (88f329985fc4d91067bebcd353b56f20d58b75bejz
 Mlock-api/src/test/resources/identified-lock-request-wire-format/baseline.jsonj|
 addedjt
 K
ju
 K j~
 K
j
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.jsonj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.jsonj
 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.json?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -0,0 +1,10 @@
+{
+  "requestId" : "00000000-0000-0539-0000-00000000002a",
+  "lockDescriptors" : [ {
+    "bytes" : "bG9jazE="
+  }, {
+    "bytes" : "bG9jazI="
+  } ],
+  "acquireTimeoutMs" : 100,
+  "clientDescription" : "client: test, thread: test"
+}
\ No newline at end of fileu}(j
 (dfc342440e6b1fcac63ded5134e926da137e5418jz
 lock-impl/build.gradlej|
 modifiedjt
 Kju
 K j~
 Kj
 jhttps://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-impl%2Fbuild.gradlej
 ihttps://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-impl%2Fbuild.gradlej
 |https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fbuild.gradle?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -10,6 +10,7 @@ dependencies {
   implementation 'com.google.guava:guava'
   implementation 'com.palantir.common:streams'
   implementation 'com.palantir.nylon:nylon-threads'
+  implementation 'com.palantir.refreshable:refreshable'
   implementation 'com.palantir.safe-logging:preconditions'
   implementation 'com.palantir.safe-logging:safe-logging'
   implementation 'joda-time:joda-time'
@@ -22,6 +23,7 @@ dependencies {
   implementation project(':lock-api-objects')
   implementation project(':timestamp-api')
 
+  testImplementation 'org.awaitility:awaitility'
   testImplementation 'com.fasterxml.jackson.core:jackson-databind'
   testImplementation 'com.google.guava:guava'
   testImplementation 'com.palantir.safe-logging:preconditions'u}(j
 (ccf79fc6208425b23884007b50ffc458e3a26bd5jz
 Llock-impl/src/main/java/com/palantir/lock/impl/AdjustableBackgroundTask.javaj|
 addedjt
 Keju
 K j~
 Kej
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -0,0 +1,101 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.io.Closeable;
+import java.time.Duration;
+import java.util.concurrent.RejectedExecutionException;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
+import java.util.function.Supplier;
+
+public final class AdjustableBackgroundTask implements Closeable {
+
+    /**
+     * A minimum duration between invocations if the task is not actually enabled.
+     * This is to prevent having a blocking thread in the background that does nothing.
+     */
+    @VisibleForTesting
+    static final Duration MINIMUM_INTERVAL_IF_NOT_RUNNING = Duration.ofSeconds(1);
+
+    private static final SafeLogger log = SafeLoggerFactory.get(AdjustableBackgroundTask.class);
+
+    private final ScheduledExecutorService scheduledExecutor;
+    private final Supplier<Boolean> shouldRunSupplier;
+    private final Supplier<Duration> intervalSupplier;
+    private final Runnable task;
+
+    public static AdjustableBackgroundTask create(
+            Supplier<Boolean> shouldRunSupplier, Supplier<Duration> delaySupplier, Runnable task) {
+        return new AdjustableBackgroundTask(
+                shouldRunSupplier, delaySupplier, task, PTExecutors.newSingleThreadScheduledExecutor());
+    }
+
+    @VisibleForTesting
+    AdjustableBackgroundTask(
+            Supplier<Boolean> shouldRunSupplier,
+            Supplier<Duration> intervalSupplier,
+            Runnable task,
+            ScheduledExecutorService scheduledExecutor) {
+        this.shouldRunSupplier = shouldRunSupplier;
+        this.intervalSupplier = intervalSupplier;
+        this.task = task;
+        this.scheduledExecutor = scheduledExecutor;
+        run();
+    }
+
+    private void run() {
+        boolean shouldRun = shouldRunSupplier.get();
+        if (shouldRun) {
+            try {
+                task.run();
+            } catch (Exception e) {
+                if (Thread.interrupted()) {
+                    log.error("Task was interrupted. Stopping background execution.", e);
+                    Thread.currentThread().interrupt();
+                    return;
+                }
+                log.error("Exception occurred during task", e);
+            } catch (Error e) {
+                log.error("Error occurred during task. Stopping background execution.", e);
+                return;
+            }
+        }
+        try {
+            long intervalMillis = intervalSupplier.get().toMillis();
+            scheduledExecutor.schedule(
+                    this::run,
+                    shouldRun ? intervalMillis : Math.max(MINIMUM_INTERVAL_IF_NOT_RUNNING.toMillis(), intervalMillis),
+                    TimeUnit.MILLISECONDS);
+        } catch (RejectedExecutionException e) {
+            log.warn(
+                    "Scheduler rejected execution",
+                    SafeArg.of("schedulerIsShutdown", scheduledExecutor.isShutdown()),
+                    e);
+        }
+    }
+
+    @Override
+    public void close() {
+        scheduledExecutor.shutdown();
+    }
+}u}(j
 (d46677bd60efd12dee64f1090e49358ef304d8d9jz
 Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj|
 modifiedjt
 K.ju
 Kj~
 K>j
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X$  @@ -80,6 +80,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.nylon.threads.ThreadNames;
+import com.palantir.refreshable.Refreshable;
 import com.palantir.util.JMXUtils;
 import com.palantir.util.Ownable;
 import java.math.BigInteger;
@@ -92,6 +93,7 @@
 import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.BlockingQueue;
@@ -104,6 +106,7 @@
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicInteger;
 import java.util.function.Supplier;
+import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 import javax.annotation.concurrent.ThreadSafe;
@@ -183,6 +186,9 @@ public String toString() {
     private final SimpleTimeDuration stuckTransactionTimeout;
     private final AtomicBoolean isShutDown = new AtomicBoolean(false);
 
+    /** Configurable background task that periodically collects snapshots about the current lock state */
+    private final LockThreadInfoSnapshotManager threadInfoSnapshotManager;
+
     private final LockClientIndices clientIndices = new LockClientIndices();
 
     /** The backing client-aware read write lock for each lock descriptor. */
@@ -228,15 +234,21 @@ public static LockServiceImpl create() {
     public static LockServiceImpl create(LockServerOptions options) {
         com.palantir.logsafe.Preconditions.checkNotNull(options);
         ExecutorService newExecutor = PTExecutors.newCachedThreadPool(LockServiceImpl.class.getName());
-        return create(options, Ownable.owned(newExecutor));
+        return create(Refreshable.only(options), Ownable.owned(newExecutor));
     }
 
-    public static LockServiceImpl create(LockServerOptions options, ExecutorService injectedExecutor) {
+    public static LockServiceImpl create(Refreshable<LockServerOptions> options, ExecutorService injectedExecutor) {
         com.palantir.logsafe.Preconditions.checkNotNull(options);
+        com.palantir.logsafe.Preconditions.checkNotNull(options.current());
         return create(options, Ownable.notOwned(injectedExecutor));
     }
 
-    private static LockServiceImpl create(LockServerOptions options, Ownable<ExecutorService> executor) {
+    public static LockServiceImpl create(LockServerOptions options, ExecutorService injectedExecutor) {
+        com.palantir.logsafe.Preconditions.checkNotNull(options);
+        return create(Refreshable.only(options), Ownable.notOwned(injectedExecutor));
+    }
+
+    private static LockServiceImpl create(Refreshable<LockServerOptions> options, Ownable<ExecutorService> executor) {
         if (log.isTraceEnabled()) {
             log.trace("Creating LockService with options={}", SafeArg.of("options", options));
         }
@@ -247,15 +259,22 @@ private static LockServiceImpl create(LockServerOptions options, Ownable<Executo
         return lockService;
     }
 
-    private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable<ExecutorService> executor) {
+    /**
+     * Only {@link LockServerOptions#threadInfoConfiguration()} is actually reloadable
+     */
+    private LockServiceImpl(
+            Refreshable<LockServerOptions> options, Runnable callOnClose, Ownable<ExecutorService> executor) {
+        LockServerOptions currentOptions = options.current();
         this.lockReapRunner = new LockReapRunner(executor);
         this.callOnClose = callOnClose;
-        this.isStandaloneServer = options.isStandaloneServer();
-        this.maxAllowedLockTimeout = SimpleTimeDuration.of(options.getMaxAllowedLockTimeout());
-        this.maxAllowedClockDrift = SimpleTimeDuration.of(options.getMaxAllowedClockDrift());
-        this.maxNormalLockAge = SimpleTimeDuration.of(options.getMaxNormalLockAge());
-        this.stuckTransactionTimeout = SimpleTimeDuration.of(options.getStuckTransactionTimeout());
-        this.slowLogTriggerMillis = options.slowLogTriggerMillis();
+        this.isStandaloneServer = currentOptions.isStandaloneServer();
+        this.maxAllowedLockTimeout = SimpleTimeDuration.of(currentOptions.getMaxAllowedLockTimeout());
+        this.maxAllowedClockDrift = SimpleTimeDuration.of(currentOptions.getMaxAllowedClockDrift());
+        this.maxNormalLockAge = SimpleTimeDuration.of(currentOptions.getMaxNormalLockAge());
+        this.stuckTransactionTimeout = SimpleTimeDuration.of(currentOptions.getStuckTransactionTimeout());
+        this.slowLogTriggerMillis = currentOptions.slowLogTriggerMillis();
+        this.threadInfoSnapshotManager = new LockThreadInfoSnapshotManager(
+                options.map(LockServerOptions::threadInfoConfiguration), () -> heldLocksTokenMap);
     }
 
     private HeldLocksToken createHeldLocksToken(
@@ -465,7 +484,7 @@ private void logLockAcquisitionFailure(Map<LockDescriptor, LockClient> failedLoc
         final String logMessage = "Current holders of the first {} of {} total failed locks were: {}";
 
         List<String> lockDescriptions = new ArrayList<>();
-        Iterator<Map.Entry<LockDescriptor, LockClient>> entries =
+        Iterator<Entry<LockDescriptor, LockClient>> entries =
                 failedLocks.entrySet().iterator();
         for (int i = 0; i < MAX_FAILED_LOCKS_TO_LOG && entries.hasNext(); i++) {
             Map.Entry<LockDescriptor, LockClient> entry = entries.next();
@@ -477,7 +496,10 @@ private void logLockAcquisitionFailure(Map<LockDescriptor, LockClient> failedLoc
                 logMessage,
                 SafeArg.of("numLocksLogged", Math.min(MAX_FAILED_LOCKS_TO_LOG, failedLocks.size())),
                 SafeArg.of("numLocksFailed", failedLocks.size()),
-                UnsafeArg.of("lockDescriptions", lockDescriptions));
+                UnsafeArg.of("lockDescriptions", lockDescriptions),
+                threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(failedLocks.keySet().stream()
+                        .limit(MAX_FAILED_LOCKS_TO_LOG)
+                        .collect(Collectors.toSet())));
     }
 
     private boolean isBlocking(BlockingMode blockingMode) {
@@ -523,7 +545,7 @@ private void tryLocks(
                 LockClient currentHolder = tryLock(lock.get(client, entry.getValue()), blockingMode, deadline);
                 if (log.isDebugEnabled() || isSlowLogEnabled()) {
                     long responseTimeMillis = System.currentTimeMillis() - startTime;
-                    logSlowLockAcquisition(entry.getKey().toString(), currentHolder, responseTimeMillis);
+                    logSlowLockAcquisition(entry.getKey(), currentHolder, responseTimeMillis);
                 }
                 if (currentHolder == null) {
                     locks.put(lock, entry.getValue());
@@ -542,22 +564,25 @@ private void tryLocks(
     }
 
     @VisibleForTesting
-    void logSlowLockAcquisition(String lockId, LockClient currentHolder, long durationMillis) {
+    void logSlowLockAcquisition(LockDescriptor lockDescriptor, LockClient currentHolder, long durationMillis) {
         final String slowLockLogMessage = "Blocked for {} ms to acquire lock {} {}.";
+        final String lockId = lockDescriptor.getLockIdAsString();
 
         // Note: The construction of params is pushed into the branches, as it may be expensive.
         if (isSlowLogEnabled() && durationMillis >= slowLogTriggerMillis) {
             SlowLockLogger.logger.warn(
                     slowLockLogMessage,
                     SafeArg.of("durationMillis", durationMillis),
                     UnsafeArg.of("lockId", lockId),
-                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"));
+                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"),
+                    threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(Set.of(lockDescriptor)));
         } else if (log.isDebugEnabled() && durationMillis > DEBUG_SLOW_LOG_TRIGGER_MILLIS) {
             log.debug(
                     slowLockLogMessage,
                     SafeArg.of("durationMillis", durationMillis),
                     UnsafeArg.of("lockId", lockId),
-                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"));
+                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"),
+                    threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(Set.of(lockDescriptor)));
         }
     }
 
@@ -1217,6 +1242,7 @@ private String safeLockStats() {
     public void close() {
         if (isShutDown.compareAndSet(false, true)) {
             lockReapRunner.close();
+            threadInfoSnapshotManager.close();
             blockingThreads.forEach(Thread::interrupt);
             callOnClose.run();
         }
@@ -1227,6 +1253,10 @@ public long currentTimeMillis() {
         return System.currentTimeMillis();
     }
 
+    public LockThreadInfoSnapshotManager getSnapshotManager() {
+        return threadInfoSnapshotManager;
+    }
+
     private static String updateThreadName(LockRequest request) {
         String currentThreadName = Thread.currentThread().getName();
         tryRenameThread(u      }(j
 (8fe141cc254985903635606c7c4d0fb75eae629bjz
 Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javaj|
 addedjt
 Krju
 K j~
 Krj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -0,0 +1,114 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableMap;
+import com.palantir.lock.DebugThreadInfoConfiguration;
+import com.palantir.lock.HeldLocksToken;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.refreshable.Refreshable;
+import java.time.Duration;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.ConcurrentMap;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+
+public class LockThreadInfoSnapshotManager implements AutoCloseable {
+    private static final SafeLogger log = SafeLoggerFactory.get(LockThreadInfoSnapshotManager.class);
+    private final Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration;
+
+    private final Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
+
+    private volatile Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot = ImmutableMap.of();
+
+    private final AdjustableBackgroundTask backgroundTask;
+
+    public LockThreadInfoSnapshotManager(
+            Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration,
+            Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> mapSupplier) {
+        this.threadInfoConfiguration = threadInfoConfiguration;
+        this.tokenMapSupplier = mapSupplier;
+        this.backgroundTask = AdjustableBackgroundTask.create(
+                threadInfoConfiguration.map(DebugThreadInfoConfiguration::recordThreadInfo),
+                threadInfoConfiguration.map(config -> Duration.ofMillis(config.threadInfoSnapshotIntervalMillis())),
+                this::takeSnapshot);
+    }
+
+    @VisibleForTesting
+    Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot() {
+        return lastKnownThreadInfoSnapshot;
+    }
+
+    /**
+     * Returns a consistent snapshot of thread information restricted to the given lock descriptors wrapped in an
+     * unsafe logging argument.
+     */
+    public UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> getRestrictedSnapshotAsOptionalLogArg(
+            Set<LockDescriptor> lockDescriptors) {
+        String argName = "presumedClientThreadHoldersIfEnabled";
+        if (!threadInfoConfiguration.current().recordThreadInfo()) {
+            // Avoids keeping the value alive even though we are never returning it
+            lastKnownThreadInfoSnapshot = Map.of();
+            return UnsafeArg.of(argName, Optional.empty());
+        }
+        Map<LockDescriptor, LockClientAndThread> latestSnapshot = lastKnownThreadInfoSnapshot;
+        Map<LockDescriptor, LockClientAndThread> restrictedSnapshot = new HashMap<>();
+        for (LockDescriptor lock : lockDescriptors) {
+            restrictedSnapshot.put(lock, latestSnapshot.get(lock));
+        }
+        return UnsafeArg.of(argName, Optional.of(restrictedSnapshot));
+    }
+
+    @VisibleForTesting
+    void takeSnapshot() {
+        lastKnownThreadInfoSnapshot = tokenMapSupplier.get().keySet().stream()
+                .flatMap(token -> {
+                    LockClientAndThread clientThread = LockClientAndThread.of(
+                            Objects.requireNonNullElse(token.getClient(), LockClientAndThread.UNKNOWN.client()),
+                            Objects.requireNonNullElse(
+                                    token.getRequestingThread(), LockClientAndThread.UNKNOWN.thread()));
+                    return token.getLockDescriptors().stream()
+                            .map(lockDescriptor -> Map.entry(lockDescriptor, clientThread));
+                })
+                // Although a lock can be held by multiple clients/threads, we only remember one to save space
+                .collect(Collectors.toMap(Entry::getKey, Entry::getValue, (existing, replacement) -> existing));
+
+        log.info(
+                "Took thread info snapshot of {} locks. Next snapshot due in {}ms",
+                SafeArg.of("snapshotSize", lastKnownThreadInfoSnapshot.size()),
+                SafeArg.of(
+                        "snapshotIntervalMillis",
+                        threadInfoConfiguration.current().threadInfoSnapshotIntervalMillis()));
+    }
+
+    @Override
+    public void close() {
+        backgroundTask.close();
+    }
+}u}(j
 (97ae55956450814bf5146499495e54f469faa960jz
 Plock-impl/src/test/java/com/palantir/lock/impl/AdjustableBackgroundTaskTest.javaj|
 addedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -0,0 +1,142 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.refreshable.Refreshable;
+import com.palantir.refreshable.SettableRefreshable;
+import java.time.Duration;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.concurrent.atomic.AtomicLong;
+import org.jmock.lib.concurrent.DeterministicScheduler;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class AdjustableBackgroundTaskTest {
+    private static final Duration DEFAULT_INTERVAL = Duration.ofSeconds(10);
+    private final AtomicLong field = new AtomicLong(0);
+    private final AtomicBoolean shouldRun = new AtomicBoolean(false);
+    private final SettableRefreshable<Duration> interval = Refreshable.create(DEFAULT_INTERVAL);
+    private final DeterministicScheduler scheduledExecutor = new DeterministicScheduler();
+    private final AtomicLong numCallsToShouldRunSupplier = new AtomicLong(0);
+    private final AtomicLong numCallsToIntervalSupplier = new AtomicLong(0);
+    private final AdjustableBackgroundTask adjustableBackgroundTask = new AdjustableBackgroundTask(
+            () -> {
+                numCallsToShouldRunSupplier.incrementAndGet();
+                return shouldRun.get();
+            },
+            () -> {
+                numCallsToIntervalSupplier.incrementAndGet();
+                return interval.current();
+            },
+            field::incrementAndGet,
+            scheduledExecutor);
+
+    @BeforeClass
+    public static void testDelayShouldNotExceedMinimumDelay() {
+        // We have to ensure that our default interval is higher than MINIMUM_INTERVAL_IF_NOT_RUNNING
+        // so our tests are actually meaningful
+        assertThat(DEFAULT_INTERVAL).isGreaterThanOrEqualTo(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING);
+    }
+
+    @Test
+    public void doesNotRunTaskDuringConstruction() {
+        assertThat(field.get()).isEqualTo(0);
+    }
+
+    @Test
+    public void doesNotRunTaskByDefault() {
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(0);
+    }
+
+    @Test
+    public void canBeEnabledDisabledAndReEnabled() {
+        shouldRun.set(true);
+        tick(DEFAULT_INTERVAL);
+        long after = field.get();
+        assertThat(after).isEqualTo(1);
+
+        shouldRun.set(false);
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(after);
+
+        shouldRun.set(true);
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(after + 1);
+    }
+
+    @Test
+    public void canAdjustInterval() {
+        Duration newInterval = Duration.ofMinutes(1);
+        interval.update(newInterval);
+        shouldRun.set(true);
+        // initial run was scheduled at default interval
+        tick(DEFAULT_INTERVAL);
+        tick(Duration.ofMinutes(42 - 1));
+        assertThat(field.get()).isEqualTo(42);
+    }
+
+    @Test
+    public void canAdjustIntervalBelowMinimumDelayIfRunning() {
+        Duration newInterval = Duration.ofMillis(1);
+        interval.update(newInterval);
+        shouldRun.set(true);
+        // initial run was scheduled at default interval
+        tick(DEFAULT_INTERVAL);
+        tick(Duration.ofMillis(10 - 1));
+        assertThat(field.get()).isEqualTo(10);
+    }
+
+    @Test
+    public void runsSuppliersAtReducedIntervalIfNotRunning() {
+        Duration newInterval = Duration.ofMillis(1);
+        interval.update(newInterval);
+        Duration elapsedDuration = Duration.ofSeconds(10);
+        // initial run was scheduled at default interval, this will run suppliers once
+        tick(DEFAULT_INTERVAL);
+        tick(elapsedDuration);
+        assertThat(field.get()).isEqualTo(0);
+        // suppliers are also called once when running the constructor
+        assertThat(numCallsToShouldRunSupplier.get())
+                .as("Ensure the number of times we checked if we should run is at most the number of times"
+                        + " MINIMUM_INTERVAL_IF_NOT_RUNNING has elapsed")
+                .isLessThanOrEqualTo(
+                        elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
+        assertThat(numCallsToIntervalSupplier.get())
+                .as("Ensure the number of times we checked at what interval we should run is at most the number of"
+                        + " times MINIMUM_INTERVAL_IF_NOT_RUNNING has elapsed")
+                .isLessThanOrEqualTo(
+                        elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
+    }
+
+    @Test
+    public void suppliersAreCalledTogetherWithTask() {
+        shouldRun.set(true);
+        tick(Duration.ofSeconds(10 * DEFAULT_INTERVAL.toSeconds()));
+        assertThat(field.get()).isEqualTo(10);
+        // suppliers are also called once when running the constructor
+        assertThat(numCallsToShouldRunSupplier.get()).isEqualTo(11);
+        assertThat(numCallsToIntervalSupplier.get()).isEqualTo(11);
+    }
+
+    private void tick(Duration duration) {
+        scheduledExecutor.tick(duration.toMillis(), TimeUnit.MILLISECONDS);
+    }
+}u}(j
 (aa47bbbffda9b68b9a93e2e31755530993156e4fjz
 Glock-impl/src/test/java/com/palantir/lock/impl/LockServiceImplTest.javaj|
 modifiedjt
 Kju
 Kj~
 K%j
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X!  @@ -22,16 +22,21 @@
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.lock.LockClient;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRefreshToken;
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.StringLockDescriptor;
 import com.palantir.lock.client.LockRefreshingLockService;
+import com.palantir.logsafe.UnsafeArg;
 import java.io.IOException;
 import java.util.HashSet;
 import java.util.List;
+import java.util.Map;
+import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.TimeUnit;
@@ -49,6 +54,9 @@
 public final class LockServiceImplTest {
     public static final long SLOW_LOG_TRIGGER_MILLIS = LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS + 10;
     private static final String TEST_LOCKID = "test_lockId";
+    private static final LockDescriptor TEST_LOCK = StringLockDescriptor.of(TEST_LOCKID);
+    private static final UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> THREAD_INFO_SNAPSHOT_ARG =
+            UnsafeArg.of("presumedClientThreadHoldersIfEnabled", Optional.empty());
     private static LockServiceImpl lockServiceWithSlowLogEnabled;
     private static LockServiceImpl lockServiceWithSlowLogDisabled;
 
@@ -94,48 +102,63 @@ public void slowLogShouldNotBeEnabledIfSlowLogTriggerMillisIsSetToZero() {
     @Test
     public void slowLogShouldBeLoggedWhenLockResponseIsSlowButShouldNotBeLoggedAtDebug() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS + 5;
-        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertThat(testLockServiceImplLogger.getLoggingEvents()).isEmpty();
 
         assertThat(testSlowLogger.getLoggingEvents()).hasSize(1);
         assertContainsMatchingLoggingEvent(
                 testSlowLogger.getLoggingEvents(),
-                warn("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                warn(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
     }
 
     @Test
     public void debugLogShouldBeLoggedWhenLockResponseIsSlowButSlowLogIsDisabled() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS + 5;
-        lockServiceWithSlowLogDisabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogDisabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertThat(testLockServiceImplLogger.getLoggingEvents()).hasSize(1);
         assertContainsMatchingLoggingEvent(
                 testLockServiceImplLogger.getLoggingEvents(),
-                debug("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                debug(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }
 
     @Test
     public void debugLogShouldBeLoggedIfLockResponseTimeIsBetweenDebugTriggerTimeAndSlowLogTriggerMillis() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS - 5;
-        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertContainsMatchingLoggingEvent(
                 testLockServiceImplLogger.getLoggingEvents(),
-                debug("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                debug(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }
 
     @Test
     public void debugOrSlowLogShouldNotBeLoggedWhenLockResponseIsNotSlow() {
         lockServiceWithSlowLogEnabled.logSlowLockAcquisition(
-                TEST_LOCKID, LockClient.ANONYMOUS, LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS - 5);
+                TEST_LOCK, LockClient.ANONYMOUS, LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS - 5);
         assertThat(testLockServiceImplLogger.getLoggingEvents()).isEmpty();
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }u}(j
 (0ff14400f99f0f97c0494b5db923ebce2e42263djz
 Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javaj|
 addedjt
 MHju
 K j~
 MHj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 XP:  @@ -0,0 +1,328 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableSortedMap;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.common.streams.KeyedStream;
+import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
+import com.palantir.lock.LockClient;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.LockMode;
+import com.palantir.lock.LockRequest;
+import com.palantir.lock.LockResponse;
+import com.palantir.lock.LockServerOptions;
+import com.palantir.lock.SimpleTimeDuration;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.logsafe.UnsafeArg;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Future;
+import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.After;
+import org.junit.Test;
+
+public class ThreadInfoLockServiceImplTest {
+    private static final LockDescriptor TEST_LOCK_1 = StringLockDescriptor.of("lock-1");
+    private static final LockDescriptor TEST_LOCK_2 = StringLockDescriptor.of("lock-2");
+    private static final LockDescriptor TEST_LOCK_3 = StringLockDescriptor.of("lock-3");
+
+    private static final String TEST_THREAD_1 = "thread-1";
+    private static final String TEST_THREAD_2 = "thread-2";
+    private static final String TEST_THREAD_3 = "thread-3";
+
+    private static final LockRequest LOCK_1_THREAD_1_WRITE_REQUEST = LockRequest.builder(
+                    ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+            .withCreatingThreadName(TEST_THREAD_1)
+            .build();
+
+    private static final LockClientAndThread ANONYMOUS_TEST_THREAD_1 =
+            LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1);
+
+    private final ExecutorService executor =
+            PTExecutors.newCachedThreadPool(ThreadInfoLockServiceImplTest.class.getName());
+
+    // Disable background snapshotting, invoke explicitly instead
+    private final LockServiceImpl lockService = LockServiceImpl.create(LockServerOptions.builder()
+            .isStandaloneServer(false)
+            .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                    .recordThreadInfo(false)
+                    .build())
+            .build());
+
+    @Test
+    public void initialThreadInfoIsEmpty() {
+        forceSnapshot();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+    }
+
+    @Test
+    public void recordsThreadInfoForLock() throws InterruptedException {
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+    }
+
+    @Test
+    public void recordsThreadInfoForUnlock() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+
+        lockService.unlock(response.getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+    }
+
+    @Test
+    public void recordsThreadInfoForMultipleLocks() throws InterruptedException {
+        int numThreads = 10;
+        int numLocksPerThread = 10;
+
+        List<String> threadNames =
+                IntStream.range(0, numThreads).mapToObj(i -> "test-thread-" + i).collect(Collectors.toList());
+
+        Map<String, Set<LockDescriptor>> locksPerThread = KeyedStream.of(threadNames)
+                .map(threadName -> IntStream.range(0, numLocksPerThread)
+                        .mapToObj(i -> StringLockDescriptor.of("test-lock-" + i + "-from-thread-" + threadName))
+                        .collect(Collectors.toSet()))
+                .collectToMap();
+
+        for (Map.Entry<String, Set<LockDescriptor>> entry : locksPerThread.entrySet()) {
+            LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.copyOf(
+                            entry.getValue().stream().collect(Collectors.toMap(lock -> lock, lock -> LockMode.WRITE))))
+                    .withCreatingThreadName(entry.getKey())
+                    .build();
+            lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest);
+        }
+
+        forceSnapshot();
+
+        locksPerThread.forEach((threadName, lockDescriptors) ->
+                lockDescriptors.forEach(lock -> assertThat(getLatestThreadInfoForLock(lock))
+                        .contains(LockClientAndThread.of(LockClient.ANONYMOUS, threadName))));
+    }
+
+    @Test
+    public void recordsThreadInfoForSharedLock() throws InterruptedException {
+        LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+        LockRequest lockRequest2 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .doNotBlock()
+                .lockAsManyAsPossible()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        LockResponse lockResponse = lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest1);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1).get())
+                .isIn(ANONYMOUS_TEST_THREAD_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+
+        lockService.unlock(lockResponse.getToken());
+
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+    }
+
+    @Test
+    public void doesNotRecordDroppedLocksWithLockAllOrNone() throws InterruptedException {
+        // T2 cannot get lock 1 -> grouping behavior LOCK_ALL_OR_NONE will release lock 2, even though it could have
+        // been locked
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
+                .doNotBlock()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+    }
+
+    @Test
+    public void recordsUnlockAndFreezeForNonAnonymousClient() throws InterruptedException {
+        LockClient client = LockClient.of("non-anonymous-client");
+
+        LockResponse response = lockService.lockWithFullLockResponse(client, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(LockClientAndThread.of(client, TEST_THREAD_1));
+
+        lockService.unlockAndFreeze(response.getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+    }
+
+    @Test
+    public void recordsCorrectStateAfterMultipleOperations() throws Exception {
+        CountDownLatch latch = new CountDownLatch(1);
+
+        // T1 locks 1 exclusively and locks 2 in shared mode
+        LockResponse response1 = lockService.lockWithFullLockResponse(
+                LockClient.ANONYMOUS,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_1)
+                        .build());
+
+        // T2 shouldn't get 1, but locks 3 in exclusive mode,
+        LockResponse response2 = lockService.lockWithFullLockResponse(
+                LockClient.ANONYMOUS,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_3, LockMode.WRITE))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_2)
+                        .build());
+
+        Future<LockResponse> response3 = executor.submit(() -> {
+
+            // T3 will wait at most 5 seconds to lock 1 in exclusive mode and lock 2 in shared mode
+            LockResponse response = lockService.lockWithFullLockResponse(
+                    LockClient.ANONYMOUS,
+                    LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                            .blockForAtMost(SimpleTimeDuration.of(5, TimeUnit.SECONDS))
+                            .lockAsManyAsPossible()
+                            .withCreatingThreadName(TEST_THREAD_3)
+                            .build());
+            latch.countDown();
+            return response;
+        });
+        lockService.unlock(response1.getToken());
+        latch.await();
+
+        forceSnapshot();
+
+        // T1 should hold nothing, T2 holds 3 in exclusive mode, T3 holds 1 in exclusive and 2 in shared mode
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+
+        lockService.unlock(response2.getToken());
+        forceSnapshot();
+
+        // Only T3 should hold locks
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+
+        lockService.unlock(response3.get().getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+    }
+
+    @Test
+    public void refreshDoesNotChangeSnapshot() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+
+        lockService.refreshTokens(List.of(response.getToken()));
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+    }
+
+    @Test
+    public void logArgIsUnsafeAndContainsEmptyOptionalIfNotRecordingThreadInfo() throws InterruptedException {
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+        assertThat(lockService.getSnapshotManager().getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
+                .isEqualTo(UnsafeArg.of("presumedClientThreadHoldersIfEnabled", Optional.empty()));
+    }
+
+    @Test
+    public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() throws InterruptedException {
+        LockServiceImpl lockServiceWithRecordingEnabled = LockServiceImpl.create(LockServerOptions.builder()
+                .isStandaloneServer(false)
+                .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                        .recordThreadInfo(true)
+                        .build())
+                .build());
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
+                .doNotBlock()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockServiceWithRecordingEnabled.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockServiceWithRecordingEnabled.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+
+        lockServiceWithRecordingEnabled.getSnapshotManager().takeSnapshot();
+
+        assertThat(lockServiceWithRecordingEnabled
+                        .getSnapshotManager()
+                        .getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
+                .isEqualTo(UnsafeArg.of(
+                        "presumedClientThreadHoldersIfEnabled",
+                        // Snapshot should be restricted to TEST_LOCK_1
+                        Optional.of(Map.of(TEST_LOCK_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1)))));
+
+        lockServiceWithRecordingEnabled.close();
+    }
+
+    @After
+    public void tearDown() {
+        lockService.close();
+    }
+
+    private void forceSnapshot() {
+        lockService.getSnapshotManager().takeSnapshot();
+    }
+
+    private Optional<LockClientAndThread> getLatestThreadInfoForLock(LockDescriptor lock) {
+        return Optional.ofNullable(lockService
+                .getSnapshotManager()
+                .getLastKnownThreadInfoSnapshot()
+                .get(lock));
+    }
+}u}(j
 (8c5d010b813c3904a027f75049590aef2a7eb16ajz
 %scripts/circle-ci/run-circle-tests.shj|
 modifiedjt
 Kju
 Kj~
 Kj
 {https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/scripts%2Fcircle-ci%2Frun-circle-tests.shj
 zhttps://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/scripts%2Fcircle-ci%2Frun-circle-tests.shj
 https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -2,7 +2,7 @@
 
 set -x
 
-BASE_GRADLE_ARGS="--profile"
+BASE_GRADLE_ARGS="--scan --profile --continue"
 
 function checkDocsBuild {
      pyenv install 3.5.4
@@ -77,12 +77,14 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 # External builds have a 16gb limit.
 if [ "$test_suite_index" -eq "14" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
+elif [ "$test_suite_index" -eq "4" ]; then
+    export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 elif [ "$test_suite_index" -eq "3" ]; then
     export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
     BASE_GRADLE_ARGS+=" --scan --parallel"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
-    BASE_GRADLE_ARGS+=" --scan --parallel"
+    BASE_GRADLE_ARGS+=" --parallel"
 fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64mu}(j
 (2d3777830cee23df595f18bcd0f7378a07e49ebejz
 etimelock-agent/src/main/java/com/palantir/timelock/config/RestrictedTimeLockRuntimeConfiguration.javaj|
 modifiedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 Xb  @@ -16,6 +16,7 @@
 
 package com.palantir.timelock.config;
 
+import com.palantir.lock.DebugThreadInfoConfiguration;
 import java.util.Optional;
 
 public class RestrictedTimeLockRuntimeConfiguration extends TimeLockRuntimeConfiguration {
@@ -54,4 +55,9 @@ public TimeLockAdjudicationConfiguration adjudication() {
     public Optional<TsBoundPersisterRuntimeConfiguration> timestampBoundPersistence() {
         return runtime.timestampBoundPersistence();
     }
+
+    @Override
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return runtime.threadInfoConfiguration();
+    }
 }u}(j
 (d8d2a7c36eb3321b137f488acb279decabb46ac6jz
 [timelock-agent/src/main/java/com/palantir/timelock/config/TimeLockRuntimeConfiguration.javaj|
 modifiedjt
 Kju
 K j~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -20,6 +20,8 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.google.common.base.Preconditions;
+import com.palantir.lock.DebugThreadInfoConfiguration;
+import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
 import com.palantir.logsafe.DoNotLog;
 import java.util.Optional;
 import org.immutables.value.Value;
@@ -78,6 +80,12 @@ public TimeLockAdjudicationConfiguration adjudication() {
     @JsonProperty("timestamp-bound-persistence")
     public abstract Optional<TsBoundPersisterRuntimeConfiguration> timestampBoundPersistence();
 
+    @JsonProperty("debug-thread-info-config")
+    @Value.Default
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    }
+
     @Value.Check
     public void check() {
         Preconditions.checkState(u}(j
 (a168b555f03c27ec1cf6a6780262110e71867bedjz
 Itimelock-agent/src/main/java/com/palantir/timelock/paxos/LockCreator.javaj|
 modifiedjt
 K	ju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -21,30 +21,32 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.impl.LockServiceImpl;
 import com.palantir.lock.impl.ThreadPooledLockService;
+import com.palantir.refreshable.Refreshable;
 import com.palantir.timelock.config.TimeLockRuntimeConfiguration;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Semaphore;
-import java.util.function.Supplier;
 
 public class LockCreator {
-    private final Supplier<TimeLockRuntimeConfiguration> runtime;
+    private final Refreshable<TimeLockRuntimeConfiguration> runtime;
     private final long blockingTimeoutMs;
     private final Semaphore sharedThreadPool;
     private final ExecutorService sharedExecutor = PTExecutors.newCachedThreadPool(LockServiceImpl.class.getName());
 
-    public LockCreator(Supplier<TimeLockRuntimeConfiguration> runtime, int threadPoolSize, long blockingTimeoutMs) {
+    public LockCreator(Refreshable<TimeLockRuntimeConfiguration> runtime, int threadPoolSize, long blockingTimeoutMs) {
         this.runtime = runtime;
         this.sharedThreadPool = new Semaphore(threadPoolSize);
         this.blockingTimeoutMs = blockingTimeoutMs;
     }
 
     public CloseableLockService createThreadPoolingLockService() {
-        LockServerOptions lockServerOptions = LockServerOptions.builder()
-                .slowLogTriggerMillis(runtime.get().slowLockLogTriggerMillis())
-                .build();
+        Refreshable<LockServerOptions> lockServerOptions = runtime.map(rt -> LockServerOptions.builder()
+                .slowLogTriggerMillis(rt.slowLockLogTriggerMillis())
+                .threadInfoConfiguration(rt.threadInfoConfiguration())
+                .build());
 
         LockServiceImpl rawLockService = LockServiceImpl.create(lockServerOptions, sharedExecutor);
-        CloseableLockService lockService = BlockingTimeLimitedLockService.create(rawLockService, blockingTimeoutMs);
+        CloseableLockService lockService = BlockingTimeLimitedLockService.create(
+                rawLockService, blockingTimeoutMs, rawLockService.getSnapshotManager());
 
         return new ThreadPooledLockService(lockService, -1, sharedThreadPool);
     }u}(j
 (cba6348015c254aa9ba5c6b6a2f959d6673f27dcjz
 btimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockService.javaj|
 modifiedjt
 Kju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X/
  @@ -32,6 +32,7 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.LockState;
 import com.palantir.lock.SimpleHeldLocksToken;
+import com.palantir.lock.impl.LockThreadInfoSnapshotManager;
 import com.palantir.lock.remoting.BlockingTimeoutException;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
@@ -44,31 +45,45 @@
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.TimeoutException;
+import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import javax.ws.rs.PathParam;
 import org.immutables.value.Value;
 
 public class BlockingTimeLimitedLockService implements CloseableLockService {
     private static final SafeLogger log = SafeLoggerFactory.get(BlockingTimeLimitedLockService.class);
 
+    private static final int MAX_THREADINFO_TO_LOG = 20;
+
     private final CloseableLockService delegate;
     private final TimeLimiter timeLimiter;
     private final long blockingTimeLimitMillis;
 
+    private final LockThreadInfoSnapshotManager threadInfoSnapshotManager;
+
     @VisibleForTesting
     BlockingTimeLimitedLockService(
-            CloseableLockService delegate, TimeLimiter timeLimiter, long blockingTimeLimitMillis) {
+            CloseableLockService delegate,
+            TimeLimiter timeLimiter,
+            long blockingTimeLimitMillis,
+            LockThreadInfoSnapshotManager threadInfoSnapshotManager) {
         this.delegate = delegate;
         this.timeLimiter = timeLimiter;
         this.blockingTimeLimitMillis = blockingTimeLimitMillis;
+        this.threadInfoSnapshotManager = threadInfoSnapshotManager;
     }
 
     public static BlockingTimeLimitedLockService create(
-            CloseableLockService lockService, long blockingTimeLimitMillis) {
+            CloseableLockService lockService,
+            long blockingTimeLimitMillis,
+            LockThreadInfoSnapshotManager threadInfoSnapshotManager) {
         // TODO (jkong): Inject the executor to allow application lifecycle managed executors.
         // Currently maintaining existing behaviour.
         return new BlockingTimeLimitedLockService(
-                lockService, SimpleTimeLimiter.create(PTExecutors.newCachedThreadPool()), blockingTimeLimitMillis);
+                lockService,
+                SimpleTimeLimiter.create(PTExecutors.newCachedThreadPool()),
+                blockingTimeLimitMillis,
+                threadInfoSnapshotManager);
     }
 
     @Nullable
@@ -234,7 +249,11 @@ private BlockingTimeoutException logAndHandleTimeout(LockRequestSpecification sp
                 SafeArg.of("timeoutDurationMillis", blockingTimeLimitMillis),
                 SafeArg.of("method", specification.method()),
                 SafeArg.of("client", specification.client()),
-                UnsafeArg.of("lockRequest", specification.lockRequest()));
+                UnsafeArg.of("lockRequest", specification.lockRequest()),
+                threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(
+                        specification.lockRequest().getLockDescriptors().stream()
+                                .limit(MAX_THREADINFO_TO_LOG)
+                                .collect(Collectors.toSet())));
 
         String errorMessage = String.format(
                 logMessage.replace("{}", "%s"),u}(j
 (ba84282c91e1c85c2d25288ffc78e1895ce61edejz
 ftimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockServiceTest.javaj|
 modifiedjt
 Kju
 Kj~
 Kj
 https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.javaj
 https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.java?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X:  @@ -33,6 +33,7 @@
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.impl.LockThreadInfoSnapshotManager;
 import com.palantir.lock.remoting.BlockingTimeoutException;
 import java.io.IOException;
 import java.util.concurrent.ExecutionException;
@@ -57,6 +58,8 @@ public class BlockingTimeLimitedLockServiceTest {
 
     private final CloseableLockService delegate = mock(CloseableLockService.class);
 
+    private final LockThreadInfoSnapshotManager snapshotManager = mock(LockThreadInfoSnapshotManager.class);
+
     private final BlockingTimeLimitedLockService acceptingService = createService(acceptingLimiter);
     private final BlockingTimeLimitedLockService timingOutService = createService(timingOutLimiter);
     private final BlockingTimeLimitedLockService interruptingService = createService(interruptingLimiter);
@@ -130,6 +133,6 @@ private void verifyCurrentTimeMillisDelegates(BlockingTimeLimitedLockService ser
     }
 
     private BlockingTimeLimitedLockService createService(TimeLimiter limiter) {
-        return new BlockingTimeLimitedLockService(delegate, limiter, BLOCKING_TIME_LIMIT_MILLIS);
+        return new BlockingTimeLimitedLockService(delegate, limiter, BLOCKING_TIME_LIMIT_MILLIS, snapshotManager);
     }
 }u}(j
 (d3392a1c1b4cebd374d23f72a1c5cd73c77b3bc2jz
 
versions.lockj|
 modifiedjt
 K%ju
 K%j~
 KJj
 _https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/versions.lockj
 ^https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/versions.lockj
 qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X*+  @@ -10,22 +10,22 @@ com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
 com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c38132bb)
 com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bbb5dd72)
-com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 03bafb2e)
-com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e133df00)
-com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7e1c9da4)
+com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 06bad036)
+com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e233e000)
+com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7f1c9ea4)
 com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2 (4 constraints: 2244332b)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 333f21b0)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6b30665e)
-com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 312bccaf)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6b30665e)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 343f76b0)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6c30915e)
+com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 322bf7af)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6c30915e)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 40197abb)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 41197bbb)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.2 (2 constraints: 251d9309)
-com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9a1c98a6)
+com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9b1c99a6)
 com.fasterxml.jackson.module:jackson-module-blackbird:2.14.2 (1 constraints: b40e625e)
 com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.2 (2 constraints: db2e8469)
 com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 24cec010)
+com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 2dce2620)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -45,7 +45,7 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (23 constraints: a3788bf6)
+com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f2947442)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
@@ -67,28 +67,28 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:6.77.0 (5 constraints: ad546073)
-com.palantir.conjure.java:conjure-undertow-annotations:6.77.0 (1 constraints: 4605743b)
-com.palantir.conjure.java:conjure-undertow-lib:6.77.0 (2 constraints: 8d1cfdb0)
+com.palantir.conjure.java:conjure-lib:7.5.0 (5 constraints: cd530c72)
+com.palantir.conjure.java:conjure-undertow-annotations:7.5.0 (1 constraints: 0e051d36)
+com.palantir.conjure.java:conjure-undertow-lib:7.5.0 (2 constraints: 1d1c4081)
 com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 3d696e70)
 com.palantir.conjure.java.api:service-config:2.34.0 (5 constraints: 724d79ca)
 com.palantir.conjure.java.api:ssl-config:2.34.0 (3 constraints: e22a0da5)
-com.palantir.conjure.java.runtime:client-config:7.40.0 (6 constraints: a46bdb28)
-com.palantir.conjure.java.runtime:conjure-java-annotations:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.40.0 (2 constraints: c521007b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.40.0 (6 constraints: 306e1085)
-com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.40.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.40.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:keystores:7.40.0 (3 constraints: 162a3e5f)
-com.palantir.conjure.java.runtime:refresh-utils:7.40.0 (2 constraints: 051e6045)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.77.0 (2 constraints: 7f29c101)
-com.palantir.dialogue:dialogue-blocking-channels:3.77.0 (2 constraints: e12335b4)
-com.palantir.dialogue:dialogue-clients:3.77.0 (1 constraints: 4305623b)
-com.palantir.dialogue:dialogue-core:3.77.0 (3 constraints: 833de5e1)
-com.palantir.dialogue:dialogue-futures:3.77.0 (3 constraints: da3348c0)
-com.palantir.dialogue:dialogue-serde:3.77.0 (3 constraints: c12e6ba4)
-com.palantir.dialogue:dialogue-target:3.77.0 (7 constraints: 9e760764)
+com.palantir.conjure.java.runtime:client-config:7.45.0 (6 constraints: bd6b2133)
+com.palantir.conjure.java.runtime:conjure-java-annotations:7.45.0 (1 constraints: c6188d9e)
+com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.45.0 (2 constraints: ca210f7b)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.45.0 (6 constraints: 3f6ee88e)
+com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.45.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.45.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.45.0 (1 constraints: c6188d9e)
+com.palantir.conjure.java.runtime:keystores:7.45.0 (3 constraints: 202a4c60)
+com.palantir.conjure.java.runtime:refresh-utils:7.45.0 (2 constraints: 0a1e6f45)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.78.0 (2 constraints: 83295d02)
+com.palantir.dialogue:dialogue-blocking-channels:3.78.0 (2 constraints: e32369b4)
+com.palantir.dialogue:dialogue-clients:3.78.0 (1 constraints: 4405653b)
+com.palantir.dialogue:dialogue-core:3.78.0 (3 constraints: 883d62e3)
+com.palantir.dialogue:dialogue-futures:3.78.0 (3 constraints: dd33dac0)
+com.palantir.dialogue:dialogue-serde:3.78.0 (3 constraints: c62e7fa5)
+com.palantir.dialogue:dialogue-target:3.78.0 (7 constraints: a7763c6a)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -98,7 +98,7 @@ com.palantir.goethe:goethe:0.9.0 (1 constraints: 0b050636)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
 com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
-com.palantir.safe-logging:logger:3.2.0 (23 constraints: 4e88492a)
+com.palantir.safe-logging:logger:3.2.0 (24 constraints: 98a4d6fa)
 com.palantir.safe-logging:logger-slf4j:3.2.0 (1 constraints: 000e5942)
 com.palantir.safe-logging:logger-spi:3.2.0 (2 constraints: 0f1e997a)
 com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: f7178aeb)
@@ -108,14 +108,14 @@ com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
 com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 485c7290)
 com.palantir.tracing:tracing:6.17.0 (8 constraints: f97d045e)
 com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 1745b4f5)
-com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 441994bb)
+com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 46199abb)
 com.palantir.tritium:tritium-api:0.64.0 (6 constraints: 5052c7ce)
 com.palantir.tritium:tritium-caffeine:0.64.0 (1 constraints: 3c05433b)
 com.palantir.tritium:tritium-core:0.64.0 (5 constraints: 5d43281d)
 com.palantir.tritium:tritium-lib:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f16b49d8)
+com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f96b65dd)
 com.palantir.tritium:tritium-proxy:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-registry:0.64.0 (12 constraints: f6d27f35)
+com.palantir.tritium:tritium-registry:0.64.0 (13 constraints: 88ef0d92)
 com.palantir.tritium:tritium-slf4j:0.64.0 (2 constraints: bd138370)
 com.palantir.tritium:tritium-time:0.64.0 (1 constraints: 820e8359)
 com.palantir.tritium:tritium-tracing:0.64.0 (1 constraints: 820e8359)
@@ -186,7 +186,7 @@ io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf
 io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
-io.undertow:undertow-core:2.2.24.Final (2 constraints: 361dd006)
+io.undertow:undertow-core:2.2.25.Final (2 constraints: 331dfa06)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
@@ -195,7 +195,7 @@ jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 26793e31)
 jakarta.inject:jakarta.inject-api:1.0.5 (13 constraints: decbc9f9)
 jakarta.servlet:jakarta.servlet-api:4.0.4 (10 constraints: 7b9def70)
 jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
-jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (18 constraints: 5a38d98d)
+jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (17 constraints: 6f283f6d)
 jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.5 (6 constraints: 845987f4)
@@ -313,7 +313,7 @@ org.slf4j:slf4j-api:1.7.36 (44 constraints: 8180995b)
 org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
 org.wildfly.common:wildfly-common:1.6.0.Final (4 constraints: 3f390b3d)
 org.xerial:sqlite-jdbc:3.42.0.0 (1 constraints: 99054946)
-org.xerial.snappy:snappy-java:1.1.8 (2 constraints: 011529cb)
+org.xerial.snappy:snappy-java:1.1.10.1 (2 constraints: 891546f4)
 org.yaml:snakeyaml:1.33 (5 constraints: 0a4c5570)
 
 [Test dependencies]u}(j
 (04244236509f194bcfe0d83350f2346909da1318jz
 versions.propsj|
 modifiedjt
 Kju
 Kj~
 K
j
 `https://github.com/palantir/atlasdb/blob/81351c1c95f7a520e9dd34ec97f400eb04e0c547/versions.propsj
 _https://github.com/palantir/atlasdb/raw/81351c1c95f7a520e9dd34ec97f400eb04e0c547/versions.propsj
 rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=81351c1c95f7a520e9dd34ec97f400eb04e0c547j
 X  @@ -25,9 +25,9 @@ com.palantir.common:streams = 2.1.0
 com.palantir.config.crypto:* = 5.1.0
 com.palantir.conjure.java.api:* = 2.29.0
 com.palantir.conjure.java.runtime:* = 7.39.0
-com.palantir.conjure.java:* = 6.77.0
-com.palantir.conjure:conjure = 4.35.0
-com.palantir.dialogue:* = 3.77.0
+com.palantir.conjure.java:* = 7.5.0
+com.palantir.conjure:conjure = 4.36.0
+com.palantir.dialogue:* = 3.78.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
 com.palantir.goethe:* = 0.9.0
@@ -46,7 +46,7 @@ commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
 io.netty:* = 4.1.90.Final
-io.undertow:* = 2.2.24.Final
+io.undertow:* = 2.2.25.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2
@@ -78,7 +78,7 @@ org.reflections:reflections = 0.10.2
 org.rocksdb:rocksdbjni = 7.9.2
 org.slf4j:* = 1.7.36
 org.wildfly.common:wildfly-common = 1.6.0.Final
-org.xerial.snappy:snappy-java = 1.1.8
+org.xerial.snappy:snappy-java = 1.1.10.1
 org.xerial:sqlite-jdbc = 3.42.0.0
 org.yaml:snakeyaml = 1.33
 uk.org.lidalia:slf4j-test = 1.1.0ueu(bb2f19b895b7c4752d68b03bb5259389246f21d1}(sha(bb2f19b895b7c4752d68b03bb5259389246f21d1node_idEC_kwDOAjP5fdoAKGJiMmYxOWI4OTViN2M0NzUyZDY4YjAzYmI1MjU5Mzg5MjQ2ZjIxZDEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-25T12:30:24Zu	committer}(ji GitHubjk noreply@github.comjm 2023-04-25T12:30:24Zumessage[Asynchronous test for Workload Workflow Validators (#6534)

* async fun times

* shutdowntree}(ja (bf810dd00daead6c8966202991b76078066a99aeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/bf810dd00daead6c8966202991b76078066a99aeujy bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bb2f19b895b7c4752d68b03bb5259389246f21d1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkR8fgCRBK7hj4Ov3rIwAAglUIAJxfqsEmBC4okbykhgANJYbL
2cuEurJlmtwMGZ9Qv4UtVMQ/7J/O1PtEZCHO0dpIXzWOppd5dz47Cif4RvghEYcy
GqnrtifPw5pBoO77BKk5kwZRLvJer/rmzKmuCymXatzuvHzYB9RhN3jnpDiSn4xK
7WdJfD51ypPNJOmjnIIf1aP9HpeuIAG2mxSC5UJY0SNHHWrvMQJVjoCdNuDIxmxx
IqIKNlmBaCXuH66T8SuVoKpf7wz2aSs4emxof4dZZpcjEq2JnDv1b8caahL9ufGB
KfVSgf3OHNq6lblR98TB0lBca7emcaPGd+Io6lFXpY/bnjyDjwIDHpMew6UwwwY=
=QcGU
-----END PGP SIGNATURE-----
payloadX*  tree bf810dd00daead6c8966202991b76078066a99ae
parent d45ef258fe0b363052210fe4cae72fd1f6dd245d
author Jeremy Kong <jkong@palantir.com> 1682425824 +0100
committer GitHub <noreply@github.com> 1682425824 +0100

Asynchronous test for Workload Workflow Validators (#6534)

* async fun times

* shutdownuujy ^https://api.github.com/repos/palantir/atlasdb/commits/bb2f19b895b7c4752d68b03bb5259389246f21d1html_urlShttps://github.com/palantir/atlasdb/commit/bb2f19b895b7c4752d68b03bb5259389246f21d1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bb2f19b895b7c4752d68b03bb5259389246f21d1/commentsjg }(login
jeremyk-91idJZ jc MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jy 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujo }(j web-flowj J/jc MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5jy %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(ja (d45ef258fe0b363052210fe4cae72fd1f6dd245djy 	      ^https://api.github.com/repos/palantir/atlasdb/commits/d45ef258fe0b363052210fe4cae72fd1f6dd245dj Shttps://github.com/palantir/atlasdb/commit/d45ef258fe0b363052210fe4cae72fd1f6dd245duastats}(totalK.	additionsK!	deletionsK
ufiles]}(ja (c4ba7fdbd085abed646c624d50281651c4f96766filenameuatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunnerTest.javastatusmodifiedj K!j K
changesK.blob_urlhttps://github.com/palantir/atlasdb/blob/bb2f19b895b7c4752d68b03bb5259389246f21d1/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/bb2f19b895b7c4752d68b03bb5259389246f21d1/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.java?ref=bb2f19b895b7c4752d68b03bb5259389246f21d1patchX  @@ -25,15 +25,19 @@
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
 
+import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowValidator;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Executors;
-import java.util.concurrent.Semaphore;
-import java.util.concurrent.TimeUnit;
+import java.util.concurrent.Future;
+import java.util.concurrent.atomic.AtomicBoolean;
 import org.junit.Before;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -86,31 +90,47 @@ public void runValidatesAllInvariantsIgnoringExceptions() {
 
     @Test
     public void runExecutesMultipleWorkflowsAndWaitsForAllToFinishBeforeInvokingInvariantReporter() {
-        Semaphore semaphore = new Semaphore(0);
+        CountDownLatch slowWorkflowCanMakeProgress = new CountDownLatch(1);
+        AtomicBoolean slowWorkflowIsDone = new AtomicBoolean(false);
+
         Workflow slowWorkflow = mock(Workflow.class);
         when(slowWorkflow.run()).thenAnswer(_input -> {
             try {
-                assertThat(semaphore.tryAcquire(5, TimeUnit.SECONDS))
-                        .as("No permits should have been released yet as the invariant reporter should have not ran")
-                        .isFalse();
+                slowWorkflowCanMakeProgress.await();
+                slowWorkflowIsDone.set(true);
+                return workflowHistory;
             } catch (InterruptedException e) {
+                Thread.currentThread().interrupt();
                 throw new RuntimeException(e);
             }
-            return workflowHistory;
         });
 
-        WorkflowValidator<Workflow> slowWorkflowValidator = WorkflowValidator.of(slowWorkflow, invariantReporterOne);
-
-        doAnswer(_input -> {
-                    semaphore.release();
+        doAnswer(_invocation -> {
+                    assertThat(slowWorkflowIsDone.get())
+                            .as("the invariant reporter ran, even though the slow workflow was not done yet")
+                            .isTrue();
                     return null;
                 })
                 .when(invariantReporterOne)
                 .report(any());
 
-        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(slowWorkflowValidator, workflowValidator);
+        ExecutorService backgroundExecutor = PTExecutors.newSingleThreadExecutor();
+        try {
+            Future<Void> validation = backgroundExecutor.submit(() -> {
+                WorkflowValidator<Workflow> slowWorkflowValidator =
+                        WorkflowValidator.of(slowWorkflow, invariantReporterOne);
+                new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(slowWorkflowValidator, workflowValidator);
+                return null;
+            });
+
+            assertThat(validation).as("the slow workflow was not actually slow").isNotDone();
+
+            slowWorkflowCanMakeProgress.countDown();
+            Futures.getUnchecked(validation);
+        } finally {
+            backgroundExecutor.shutdown();
+        }
 
-        assertThat(semaphore.availablePermits()).isEqualTo(2);
         verify(workflow, times(1)).run();
         verify(slowWorkflow, times(1)).run();
         verify(invariantReporterOne, times(2)).report(any());uau(bf0d02d12b4cbf7fd5b4a616996b162d01408e90}(sha(bf0d02d12b4cbf7fd5b4a616996b162d01408e90node_idEC_kwDOAjP5fdoAKGJmMGQwMmQxMmI0Y2JmN2ZkNWI0YTYxNjk5NmIxNjJkMDE0MDhlOTAcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-28T10:10:49Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-04-28T10:10:49Zumessage%super super short lock lease timeoutstree}(j (15de36a0f004278618d0a6902f008aa602b37e3burl`https://api.github.com/repos/palantir/atlasdb/git/trees/15de36a0f004278618d0a6902f008aa602b37e3buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bf0d02d12b4cbf7fd5b4a616996b162d01408e90
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRLm6kACgkQmPPOpKR4
XS2I+wf/VITgRoDnMDKSdub9O/76Yt+rIHFoIX8yUMNcP/WbTxC7it7HsICPYYei
lTW/EdHoo/76txQgwKtqAgOxVCIUx5/3nDvsUkDoNjJnrgOC7U0pZe1D9gAg5Nr9
Vs1e7/VENk3/cuY+V9C+AeYrqi5a1Zmun+obP/2oAUtFR5Z7RBMfJcAfOXstshgA
9pzdSn5Fotci9JD/h5fnvp+/pSlc6J2EqB5XRXDA3oVLyq2b2ga9mSuNK2Irqhpl
ZbwlFDFpIJMf7V+Xmk7Yat3CX/qGHgvFioaRW0rREqhB10+yZ9OAZNLaX30DqaY8
HWG8aYZpObYAoEUJpRAyxF3mlWWm8Q==
=cMmh
-----END PGP SIGNATURE-----payloadtree 15de36a0f004278618d0a6902f008aa602b37e3b
parent bb499ad3a6ebb7d4db4938b20fb7a2a8f2e677d7
author Sam Kramer <skramer@palantir.com> 1682676649 +0100
committer Sam Kramer <skramer@palantir.com> 1682676649 +0100

super super short lock lease timeouts
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/bf0d02d12b4cbf7fd5b4a616996b162d01408e90html_urlShttps://github.com/palantir/atlasdb/commit/bf0d02d12b4cbf7fd5b4a616996b162d01408e90comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bf0d02d12b4cbf7fd5b4a616996b162d01408e90/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j	 h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj  uparents]}(j (bb499ad3a6ebb7d4db4938b20fb7a2a8f2e677d7j ^https://api.github.com/repos/palantir/atlasdb/commits/bb499ad3a6ebb7d4db4938b20fb7a2a8f2e677d7j Shttps://github.com/palantir/atlasdb/commit/bb499ad3a6ebb7d4db4938b20fb7a2a8f2e677d7uastats}(totalK	additionsK	deletionsKufiles](}(j (832dc9c61d9e2c78a5ae47af8253dd4e6767397ffilenameClock-api/src/main/java/com/palantir/lock/client/TimeLockClient.javastatusmodifiedj: Kj; KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/bf0d02d12b4cbf7fd5b4a616996b162d01408e90/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.javaraw_urlhttps://github.com/palantir/atlasdb/raw/bf0d02d12b4cbf7fd5b4a616996b162d01408e90/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.java?ref=bf0d02d12b4cbf7fd5b4a616996b162d01408e90patchX  @@ -47,7 +47,7 @@
 public class TimeLockClient implements AutoCloseable, TimelockService {
     private static final ScheduledExecutorService refreshExecutor = createSingleThreadScheduledExecutor("refresh");
 
-    private static final long REFRESH_INTERVAL_MILLIS = 250;
+    private static final long REFRESH_INTERVAL_MILLIS = 50;
 
     private final TimelockService delegate;
     private final CloseableTimestampService timestampService;u}(j (4552c71062867d2cbde2859a669ee55da13ccf6ej@ Utimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/LockLeaseContract.javajB modifiedj: Kj; KjD KjE https://github.com/palantir/atlasdb/blob/bf0d02d12b4cbf7fd5b4a616996b162d01408e90/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FLockLeaseContract.javajG https://github.com/palantir/atlasdb/raw/bf0d02d12b4cbf7fd5b4a616996b162d01408e90/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FLockLeaseContract.javajI https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FLockLeaseContract.java?ref=bf0d02d12b4cbf7fd5b4a616996b162d01408e90jK X  @@ -21,7 +21,7 @@
 public final class LockLeaseContract {
     private LockLeaseContract() {}
 
-    public static final Duration SERVER_LEASE_TIMEOUT = Duration.ofSeconds(1);
+    public static final Duration SERVER_LEASE_TIMEOUT = Duration.ofMillis(200);
 
     /**
      * This value can be changed without requiring any change on client side.
@@ -32,5 +32,5 @@ private LockLeaseContract() {}
      * period. Current value is picked such that client will be able to refresh held locks even after two consecutive
      * failed refresh calls. (Where client side refresh period is 5 seconds)
      */
-    public static final Duration CLIENT_LEASE_TIMEOUT = Duration.ofMillis(500);
+    public static final Duration CLIENT_LEASE_TIMEOUT = Duration.ofMillis(100);
 }ueu(90531de377e9e0c58adf3f64d503e1bfead472cd}(sha(90531de377e9e0c58adf3f64d503e1bfead472cdnode_idEC_kwDOAjP5fdoAKDkwNTMxZGUzNzdlOWUwYzU4YWRmM2Y2NGQ1MDNlMWJmZWFkNDcyY2Qcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-11T10:14:47Zu	committer}(j_ Jeremy Kongja jkong@palantir.comjc 2023-04-11T10:14:47Zumessage
extractiontree}(jW (b22bd6e9710d59ab57adbd9ab7e4c1e1169a8294url`https://api.github.com/repos/palantir/atlasdb/git/trees/b22bd6e9710d59ab57adbd9ab7e4c1e1169a8294ujo bhttps://api.github.com/repos/palantir/atlasdb/git/commits/90531de377e9e0c58adf3f64d503e1bfead472cd
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ1MxgACgkQTLdFKain
zjwZjwf+JTlhKzDwFTuNUlhvkdjxUikbUG8tZcljC1lsqEx2qTZOvoCTcGEBokzD
80vBAZ0zZAjru1t12IIyy6dle2lbcfTUT3KU5s/bl7V9ZV6Ih3+aKd3KzzYt+DEs
PdWN1Tirqj5xjFQton+NBXOpiRzTnp4MhvNAZiv+zav+m7hb6SWhYLe90IGsT8vE
Amx/veuPaymfauxRCuiVUoCmNu9MmpAPisu5tZtaW6TAix4zp32Id5SeWjTOIDyw
qOCd8MGYo9PKqqVMfBLbg2HlMSHJeYy2evkOG8ghmo8u4i+djz6MHC9ytDOQASXu
QChdcsq/N0aIEKfnuESeTWbUh00fFg==
=hE4k
-----END PGP SIGNATURE-----payloadtree b22bd6e9710d59ab57adbd9ab7e4c1e1169a8294
parent b4b7fd6d3931569547ad8ae6c34dcdee5f4c7802
author Jeremy Kong <jkong@palantir.com> 1681208087 +0800
committer Jeremy Kong <jkong@palantir.com> 1681208087 +0800

extraction
uujo ^https://api.github.com/repos/palantir/atlasdb/commits/90531de377e9e0c58adf3f64d503e1bfead472cdhtml_urlShttps://github.com/palantir/atlasdb/commit/90531de377e9e0c58adf3f64d503e1bfead472cdcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/90531de377e9e0c58adf3f64d503e1bfead472cd/commentsj] }(login
jeremyk-91idJZ jY MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jo 'https://api.github.com/users/jeremyk-91j} https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuje }(j 
jeremyk-91j JZ jY MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5jo 'https://api.github.com/users/jeremyk-91j} https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(jW (b4b7fd6d3931569547ad8ae6c34dcdee5f4c7802jo ^https://api.github.com/repos/palantir/atlasdb/commits/b4b7fd6d3931569547ad8ae6c34dcdee5f4c7802j} Shttps://github.com/palantir/atlasdb/commit/b4b7fd6d3931569547ad8ae6c34dcdee5f4c7802uastats}(totalKC	additionsK)	deletionsKufiles](}(jW (2829a75e86b9c6ee6c6fbe82f5269f48db50d9eefilenameMtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/LockV1Resource.javastatusmodifiedj Kj KchangesK1blob_urlhttps://github.com/palantir/atlasdb/blob/90531de377e9e0c58adf3f64d503e1bfead472cd/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.javaraw_urlhttps://github.com/palantir/atlasdb/raw/90531de377e9e0c58adf3f64d503e1bfead472cd/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.java?ref=90531de377e9e0c58adf3f64d503e1bfead472cdpatchX(  @@ -29,6 +29,7 @@
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.LockResponse;
 import com.palantir.lock.LockServerOptions;
+import com.palantir.lock.LockService;
 import com.palantir.lock.LockState;
 import com.palantir.lock.SimpleHeldLocksToken;
 import com.palantir.logsafe.Safe;
@@ -63,7 +64,7 @@ public LockResponse lockWithFullLockResponse(
             @Safe @PathParam("client") @Handle.PathParam LockClient client,
             @Handle.Body LockRequest request)
             throws InterruptedException {
-        return namespaces.get(namespace).getLockService().lockWithFullLockResponse(client, request);
+        return getLockService(namespace).lockWithFullLockResponse(client, request);
     }
 
     @POST
@@ -88,7 +89,7 @@ public LockResponse lockWithFullLockResponse(
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/unlock-deprecated")
     public boolean unlock(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body HeldLocksToken token) {
-        return namespaces.get(namespace).getLockService().unlock(token);
+        return getLockService(namespace).unlock(token);
     }
 
     @POST
@@ -99,7 +100,7 @@ public boolean unlock(
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/unlock-simple")
     public boolean unlockSimple(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body SimpleHeldLocksToken token) {
-        return namespaces.get(namespace).getLockService().unlockSimple(token);
+        return getLockService(namespace).unlockSimple(token);
     }
 
     @POST
@@ -110,7 +111,7 @@ public boolean unlockSimple(
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/unlock-and-freeze")
     public boolean unlockAndFreeze(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body HeldLocksToken token) {
-        return namespaces.get(namespace).getLockService().unlockAndFreeze(token);
+        return getLockService(namespace).unlockAndFreeze(token);
     }
 
     @POST
@@ -123,7 +124,7 @@ public boolean unlockAndFreeze(
     public Set<HeldLocksToken> getTokens(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Safe @PathParam("client") @Handle.PathParam LockClient client) {
-        return namespaces.get(namespace).getLockService().getTokens(client);
+        return getLockService(namespace).getTokens(client);
     }
 
     @POST
@@ -147,7 +148,7 @@ public Set<HeldLocksToken> getTokens(@Safe @PathParam("namespace") @Handle.PathP
     public Set<HeldLocksToken> refreshTokens(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Handle.Body Iterable<HeldLocksToken> tokens) {
-        return namespaces.get(namespace).getLockService().refreshTokens(tokens);
+        return getLockService(namespace).refreshTokens(tokens);
     }
 
     @POST
@@ -159,7 +160,7 @@ public Set<HeldLocksToken> refreshTokens(
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/refresh-grant")
     public HeldLocksGrant refreshGrant(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body HeldLocksGrant grant) {
-        return namespaces.get(namespace).getLockService().refreshGrant(grant);
+        return getLockService(namespace).refreshGrant(grant);
     }
 
     @POST
@@ -171,7 +172,7 @@ public HeldLocksGrant refreshGrant(
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/refresh-grant-id")
     public HeldLocksGrant refreshGrant(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body BigInteger grantId) {
-        return namespaces.get(namespace).getLockService().refreshGrant(grantId);
+        return getLockService(namespace).refreshGrant(grantId);
     }
 
     @POST
@@ -182,7 +183,7 @@ public HeldLocksGrant refreshGrant(
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/convert-to-grant")
     public HeldLocksGrant convertToGrant(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body HeldLocksToken token) {
-        return namespaces.get(namespace).getLockService().convertToGrant(token);
+        return getLockService(namespace).convertToGrant(token);
     }
 
     @POST
@@ -195,7 +196,7 @@ public HeldLocksToken useGrant(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Safe @PathParam("client") @Handle.PathParam LockClient client,
             @Handle.Body HeldLocksGrant grant) {
-        return namespaces.get(namespace).getLockService().useGrant(client, grant);
+        return getLockService(namespace).useGrant(client, grant);
     }
 
     @POST
@@ -219,7 +220,7 @@ public HeldLocksToken useGrant(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Safe @PathParam("client") @Handle.PathParam LockClient client,
             @Handle.Body BigInteger grantId) {
-        return namespaces.get(namespace).getLockService().useGrant(client, grantId);
+        return getLockService(namespace).useGrant(client, grantId);
     }
 
     @POST
@@ -242,7 +243,7 @@ public HeldLocksToken useGrant(
     @Nullable
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version-id")
     public Long getMinLockedInVersionId(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
-        return namespaces.get(namespace).getLockService().getMinLockedInVersionId();
+        return getLockService(namespace).getMinLockedInVersionId();
     }
 
     @POST
@@ -253,7 +254,7 @@ public Long getMinLockedInVersionId(@Safe @PathParam("namespace") @Handle.PathPa
     public Long getMinLockedInVersionId(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Safe @PathParam("client") @Handle.PathParam LockClient client) {
-        return namespaces.get(namespace).getLockService().getMinLockedInVersionId(client);
+        return getLockService(namespace).getMinLockedInVersionId(client);
     }
 
     @POST
@@ -273,7 +274,7 @@ public Long getMinLockedInVersionIdForAnonymousClient(
     @Idempotent
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock-server-options")
     public LockServerOptions getLockServerOptions(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
-        return namespaces.get(namespace).getLockService().getLockServerOptions();
+        return getLockService(namespace).getLockServerOptions();
     }
 
     @POST
@@ -283,7 +284,7 @@ public LockServerOptions getLockServerOptions(@Safe @PathParam("namespace") @Han
     @Idempotent
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/current-time-millis")
     public long currentTimeMillis(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
-        return namespaces.get(namespace).getLockService().currentTimeMillis();
+        return getLockService(namespace).currentTimeMillis();
     }
 
     @POST
@@ -293,7 +294,7 @@ public long currentTimeMillis(@Safe @PathParam("namespace") @Handle.PathParam St
     @Idempotent
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/log-current-state")
     public void logCurrentState(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
-        namespaces.get(namespace).getLockService().logCurrentState();
+        getLockService(namespace).logCurrentState();
     }
 
     // Remote lock service
@@ -308,7 +309,7 @@ public LockRefreshToken lock(
             @Safe @PathParam("client") @Handle.PathParam String client,
             @Handle.Body LockRequest request)
             throws InterruptedException {
-        return namespaces.get(namespace).getLockService().lock(client, request);
+        return getLockService(namespace).lock(client, request);
     }
 
     @POST
@@ -333,7 +334,7 @@ public HeldLocksToken lockAndGetHeldLocks(
             @Safe @PathParam("client") @Handle.PathParam String client,
             @Handle.Body LockRequest request)
             throws InterruptedException {
-        return namespaces.get(namespace).getLockService().lockAndGetHeldLocks(client, request);
+        return getLockService(namespace).lockAndGetHeldLocks(client, request);
     }
 
     @POST
@@ -355,7 +356,7 @@ public HeldLocksToken lockAndGetHeldLocks(
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/unlock")
     public boolean unlock(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockRefreshToken token) {
-        return namespaces.get(namespace).getLockService().unlock(token);
+        return getLockService(namespace).unlock(token);
     }
 
     @POST
@@ -367,7 +368,7 @@ public boolean unlock(
     public Set<LockRefreshToken> refreshLockRefreshTokens(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Handle.Body Iterable<LockRefreshToken> tokens) {
-        return namespaces.get(namespace).getLockService().refreshLockRefreshTokens(tokens);
+        return getLockService(namespace).refreshLockRefreshTokens(tokens);
     }
 
     @POST
@@ -380,7 +381,7 @@ public Set<LockRefreshToken> refreshLockRefreshTokens(
     public Long getMinLockedInVersionId(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Safe @PathParam("client") @Handle.PathParam String client) {
-        return namespaces.get(namespace).getLockService().getMinLockedInVersionId(client);
+        return getLockService(namespace).getMinLockedInVersionId(client);
     }
 
     @POST
@@ -391,6 +392,10 @@ public Long getMinLockedInVersionId(
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/get-debugging-lock-state")
     public LockState getLockState(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockDescriptor lock) {
-        return namespaces.get(namespace).getLockService().getLockState(lock);
+        return getLockService(namespace).getLockState(lock);
+    }
+
+    private LockService getLockService(String namespace) {
+        return namespaces.get(namespace).getLockService();
     }
 }u}(jW (975e7f6d060d1accb1fb20f495f5833119997ec8j Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimestampManagementResource.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/90531de377e9e0c58adf3f64d503e1bfead472cd/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampManagementResource.javaj https://github.com/palantir/atlasdb/raw/90531de377e9e0c58adf3f64d503e1bfead472cd/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampManagementResource.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampManagementResource.java?ref=90531de377e9e0c58adf3f64d503e1bfead472cdj X  @@ -24,6 +24,7 @@
 import com.palantir.conjure.java.undertow.lib.TypeMarker;
 import com.palantir.conjure.java.undertow.lib.UndertowRuntime;
 import com.palantir.logsafe.Safe;
+import com.palantir.timestamp.TimestampManagementService;
 import io.undertow.server.HttpServerExchange;
 import io.undertow.util.Headers;
 import java.io.IOException;
@@ -64,7 +65,7 @@ public void fastForwardTimestamp(
                     @Handle.QueryParam(value = "currentTimestamp")
                     Long currentTimestamp) {
         long timestampToUse = currentTimestamp == null ? SENTINEL_TIMESTAMP : currentTimestamp;
-        namespaces.get(namespace).getTimestampManagementService().fastForwardTimestamp(timestampToUse);
+        getTimestampManagementService(namespace).fastForwardTimestamp(timestampToUse);
     }
 
     @GET
@@ -76,7 +77,11 @@ public void fastForwardTimestamp(
             path = "/{namespace}/timestamp-management/fast-forward",
             produces = TextPlainSerializer.class)
     public String ping(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
-        return namespaces.get(namespace).getTimestampManagementService().ping();
+        return getTimestampManagementService(namespace).ping();
+    }
+
+    private TimestampManagementService getTimestampManagementService(String namespace) {
+        return namespaces.get(namespace).getTimestampManagementService();
     }
 
     enum TextPlainSerializer implements SerializerFactory<String> {u}(jW (d535c97b2e89d9b33163acd6787dc3783e0f0f0cj Ptimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimestampResource.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/90531de377e9e0c58adf3f64d503e1bfead472cd/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampResource.javaj https://github.com/palantir/atlasdb/raw/90531de377e9e0c58adf3f64d503e1bfead472cd/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampResource.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampResource.java?ref=90531de377e9e0c58adf3f64d503e1bfead472cdj X  @@ -20,6 +20,7 @@
 import com.palantir.conjure.java.undertow.annotations.HttpMethod;
 import com.palantir.logsafe.Safe;
 import com.palantir.timestamp.TimestampRange;
+import com.palantir.timestamp.TimestampService;
 import javax.ws.rs.POST;
 import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
@@ -40,7 +41,7 @@ public TimestampResource(TimelockNamespaces timelockNamespaces) {
     @Produces(MediaType.APPLICATION_JSON)
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timestamp/fresh-timestamp")
     public long getFreshTimestamp(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
-        return namespaces.get(namespace).getTimestampService().getFreshTimestamp();
+        return getTimestampService(namespace).getFreshTimestamp();
     }
 
     @POST // This has to be POST because we can't allow caching.
@@ -50,6 +51,10 @@ public long getFreshTimestamp(@Safe @PathParam("namespace") @Handle.PathParam St
     public TimestampRange getFreshTimestamps(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @QueryParam("number") @Handle.QueryParam(value = "number") int numTimestampsRequested) {
-        return namespaces.get(namespace).getTimestampService().getFreshTimestamps(numTimestampsRequested);
+        return getTimestampService(namespace).getFreshTimestamps(numTimestampsRequested);
+    }
+
+    private TimestampService getTimestampService(String namespace) {
+        return namespaces.get(namespace).getTimestampService();
     }
 }ueu(731448824994d9cf0ae6ce7d1be00b8c7541d04b}(sha(731448824994d9cf0ae6ce7d1be00b8c7541d04bnode_idEC_kwDOAjP5fdoAKDczMTQ0ODgyNDk5NGQ5Y2YwYWU2Y2U3ZDFiZTAwYjhjNzU0MWQwNGIcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-02-28T17:56:12Zu	committer}(j svc-excavator-botj svc-excavator-bot@palantir.comj 2023-02-28T17:56:12ZumessageExcavator:  Prefer AssertJtree}(j (594208ac01b5b36ae75d2aaa208719b5167a280curl`https://api.github.com/repos/palantir/atlasdb/git/trees/594208ac01b5b36ae75d2aaa208719b5167a280cuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/731448824994d9cf0ae6ce7d1be00b8c7541d04b
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmP+QDwJEMmvEkpISILgAAAKxAEA0qUuuEL+/pchKsc+zV+itAJE
XjmnRHzzgVB+gIpK7ykA/2PbzyF/kXA+Az4247T5lPPn6Wohem44Zs5Opy7RioTd
=4I5s
-----END PGP SIGNATURE-----
payloadX  tree 594208ac01b5b36ae75d2aaa208719b5167a280c
parent fc09751e555ba0b106c6b87977afe02a92029295
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1677606972 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1677606972 +0000

Excavator:  Prefer AssertJuuj ^https://api.github.com/repos/palantir/atlasdb/commits/731448824994d9cf0ae6ce7d1be00b8c7541d04bhtml_urlShttps://github.com/palantir/atlasdb/commit/731448824994d9cf0ae6ce7d1be00b8c7541d04bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/731448824994d9cf0ae6ce7d1be00b8c7541d04b/commentsj }(loginsvc-excavator-botidJj MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j .https://api.github.com/users/svc-excavator-botj $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj }(j	 svc-excavator-botj Jj MDQ6VXNlcjMzMjY2MzY4j
 4https://avatars.githubusercontent.com/u/33266368?v=4j h5j .https://api.github.com/users/svc-excavator-botj $https://github.com/svc-excavator-botj 8https://api.github.com/users/svc-excavator-bot/followersj Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}j >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}j Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}j <https://api.github.com/users/svc-excavator-bot/subscriptionsj 3https://api.github.com/users/svc-excavator-bot/orgsj 4https://api.github.com/users/svc-excavator-bot/reposj  ?https://api.github.com/users/svc-excavator-bot/events{/privacy}j" >https://api.github.com/users/svc-excavator-bot/received_eventsj$ Userj& uparents]}(j (fc09751e555ba0b106c6b87977afe02a92029295j ^https://api.github.com/repos/palantir/atlasdb/commits/fc09751e555ba0b106c6b87977afe02a92029295j Shttps://github.com/palantir/atlasdb/commit/fc09751e555ba0b106c6b87977afe02a92029295uastats}(totalK
	additionsK	deletionsKufiles]}(j (bb81d17f74cc4edfb542819312a2b7f5960f195efilenamekatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraTopologyValidatorTest.javastatusmodifiedj@ KjA KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/731448824994d9cf0ae6ce7d1be00b8c7541d04b/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/731448824994d9cf0ae6ce7d1be00b8c7541d04b/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.java?ref=731448824994d9cf0ae6ce7d1be00b8c7541d04bpatchX	  @@ -314,7 +314,7 @@ public void returnsAllNewHostsIfNoConsensusOnNewHostsWhenNoQuorumAndCurrentServe
         assertThat(validator.getNewHostsWithInconsistentTopologies(
                         mapToTokenRangeOrigin(newCassandraServers), allHosts))
                 .as("rejects all servers when no quorum from all hosts and no quorum on new hosts")
-                .isEqualTo(newCassandraServers);
+                .containsExactlyInAnyOrderElementsOf(newCassandraServers);
     }
 
     @Test
@@ -338,7 +338,7 @@ public void returnsAllNewHostsIfConsensusOnNewHostsDiffersFromPreviousWhenNoQuor
         assertThat(validator.getNewHostsWithInconsistentTopologies(
                         mapToTokenRangeOrigin(newCassandraServers), allHosts))
                 .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
-                .isEqualTo(newCassandraServers);
+                .containsExactlyInAnyOrderElementsOf(newCassandraServers);
     }
 
     @Test
@@ -385,7 +385,7 @@ public void validateNewlyAddedHostsAddedIfAgreedWithOldTopologyWhenNoQuorumAndNo
                         allHosts))
                 .as("accepts quorum from config hosts if they have the same host IDs as old topology when no current"
                         + " servers")
-                .isEqualTo(oldCassandraServers);
+                .containsExactlyInAnyOrderElementsOf(oldCassandraServers);
     }
 
     @Test
@@ -412,7 +412,7 @@ public void returnsAllNewHostsIfNoConsensusOnConfigHostsWhenNoQuorumAndNoCurrent
                                 oldCassandraServers, Sets.difference(allCassandraServers, oldCassandraServers)),
                         allHosts))
                 .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
-                .isEqualTo(allCassandraServers);
+                .containsExactlyInAnyOrderElementsOf(allCassandraServers);
     }
 
     @Test
@@ -439,7 +439,7 @@ public void returnsAllNewHostsIfConsensusOnConfigHostsDiffersFromPreviousWhenNoQ
                                 oldCassandraServers, Sets.difference(allCassandraServers, oldCassandraServers)),
                         allHosts))
                 .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
-                .isEqualTo(allCassandraServers);
+                .containsExactlyInAnyOrderElementsOf(allCassandraServers);
     }
 
     @Testuau(ee0736dad8ec7e14b3568f28ee65bdbf9af434ff}(sha(ee0736dad8ec7e14b3568f28ee65bdbf9af434ffnode_idEC_kwDOAjP5fdoAKGVlMDczNmRhZDhlYzdlMTRiMzU2OGYyOGVlNjViZGJmOWFmNDM0ZmYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-19T13:19:46Zu	committer}(j] 
Ahmed Alouanej_ aalouane@palantir.comja 2023-04-19T13:19:46Zumessage
bump resourcetree}(jU (cbec8b2dd39f308db8f9a84181ac61a782943d78url`https://api.github.com/repos/palantir/atlasdb/git/trees/cbec8b2dd39f308db8f9a84181ac61a782943d78ujm bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ee0736dad8ec7e14b3568f28ee65bdbf9af434ff
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQ/6nMACgkQPlMHVIT1
yhqNTwgAgG2bW2dJGDUdty2LFS90yKeStLkM/WvNlFZ+Ar5Js5MRnJ4kr/zk74WE
PtAKp/iW1pxSOPHMW0iMtSu9c+Irrg3Es5CjGusdgrZ4x3Q90v3t2/jf/1FgTTSE
pd2aFG4BsE7tLdCFhpO+641UgWK3lWOsjRS99RidYB6c7J1pRTf9aR6olT4coHsE
V95ncaeObG723vyQUtaJtQG8axDFstmmRqm6sCFP/qoKNlZ9pWTFbQJ7Fx+/CAbH
SjQpKulgZa6sfrTgZQVqyv+GE844yqnvpazq1Ijw84vhQrrArJ7ffYS/ZEba8RcW
xQRfqPcuLQPOx89mrQxdsLIkY509ag==
=Px2i
-----END PGP SIGNATURE-----payloadtree cbec8b2dd39f308db8f9a84181ac61a782943d78
parent 0e042c5db32fd526cc9e1506788bee2cda4f3a43
author Ahmed Alouane <aalouane@palantir.com> 1681910386 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1681910386 +0100

bump resource
uujm ^https://api.github.com/repos/palantir/atlasdb/commits/ee0736dad8ec7e14b3568f28ee65bdbf9af434ffhtml_urlShttps://github.com/palantir/atlasdb/commit/ee0736dad8ec7e14b3568f28ee65bdbf9af434ffcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ee0736dad8ec7e14b3568f28ee65bdbf9af434ff/commentsj[ }(loginergo14idJjW MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jm #https://api.github.com/users/ergo14j{ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujc }(j ergo14j JjW MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5jm #https://api.github.com/users/ergo14j{ https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jU (0e042c5db32fd526cc9e1506788bee2cda4f3a43jm ^https://api.github.com/repos/palantir/atlasdb/commits/0e042c5db32fd526cc9e1506788bee2cda4f3a43j{ Shttps://github.com/palantir/atlasdb/commit/0e042c5db32fd526cc9e1506788bee2cda4f3a43uastats}(totalK	additionsK	deletionsKufiles]}(jU (3414e0d639643e66cc72abbfef85fd6b94502626filename.circleci/config.ymlstatusmodifiedj Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/ee0736dad8ec7e14b3568f28ee65bdbf9af434ff/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/ee0736dad8ec7e14b3568f28ee65bdbf9af434ff/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=ee0736dad8ec7e14b3568f28ee65bdbf9af434ffpatchX  @@ -4,7 +4,7 @@ jobs:
   build:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: xlarge
+    resource_class: 2xlarge+
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
@@ -35,7 +35,7 @@ jobs:
     parallelism: 12
     machine:
       image: ubuntu-2004:202111-02
-    resource_class: xlarge
+    resource_class: 2xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       JAVA_HOME: /opt/java8uau(382091bee131b037ff68bbdedb049d30c2e4bc18}(sha(382091bee131b037ff68bbdedb049d30c2e4bc18node_idEC_kwDOAjP5fdoAKDM4MjA5MWJlZTEzMWIwMzdmZjY4YmJkZWRiMDQ5ZDMwYzJlNGJjMTgcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2022-09-23T14:59:19Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-02-23T17:27:09Zumessagerewrite class uniquenesstree}(j (e19fcc648ae41f15c09d0de9f418d9a435234caaurl`https://api.github.com/repos/palantir/atlasdb/git/trees/e19fcc648ae41f15c09d0de9f418d9a435234caauj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/382091bee131b037ff68bbdedb049d30c2e4bc18
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmP3ofAACgkQmPPOpKR4
XS3Bwgf/ek21Jc0urizh9gInZ0tgRramZyXuzGmCHKUUUP5dFR6Kq2UbllHH96Q+
kzmVDXBQuyjEsXK3KRt0mXNzh4au2MaQpLInXw/n7QSxIHDjkY1BPkvBAiu5K34o
5ZKAqvus5Z65JI3KL7Lt6c2xFFw8HL/Jx4lqulww7ca5ainmwpgUvIPnI+uW/Lrk
oOI41+LJQcj29XIpUkhynnEz72U2J2Omkoehtu4BiE+FFXkJDNNwLr6saBFiEd8V
Vh+qwMqmLTjX2vEUOjOQ8VbyQanKsa8OK2H0fKxjHOS10gpzIjl92zkmLg1yjJDp
vq2g5ihggZTHEcaiXiG41HwU7Rza2g==
=bXJy
-----END PGP SIGNATURE-----payloadtree e19fcc648ae41f15c09d0de9f418d9a435234caa
parent 7fad85589e498107a6122415592c02942871c88c
author Sam Kramer <skramer@palantir.com> 1663945159 +0100
committer Sam Kramer <skramer@palantir.com> 1677173229 +0000

rewrite class uniqueness
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/382091bee131b037ff68bbdedb049d30c2e4bc18html_urlShttps://github.com/palantir/atlasdb/commit/382091bee131b037ff68bbdedb049d30c2e4bc18comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/382091bee131b037ff68bbdedb049d30c2e4bc18/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj  1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj
 ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (7fad85589e498107a6122415592c02942871c88cj ^https://api.github.com/repos/palantir/atlasdb/commits/7fad85589e498107a6122415592c02942871c88cj Shttps://github.com/palantir/atlasdb/commit/7fad85589e498107a6122415592c02942871c88cuastats}(totalK	additionsK	deletionsK ufiles]}(j (53509f2b6df2a34a1c1eb9aff6769f11f64e0441filename-atlasdb-backup/baseline-class-uniqueness.lockstatusmodifiedj. Kj/ K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/382091bee131b037ff68bbdedb049d30c2e4bc18/atlasdb-backup%2Fbaseline-class-uniqueness.lockraw_urlhttps://github.com/palantir/atlasdb/raw/382091bee131b037ff68bbdedb049d30c2e4bc18/atlasdb-backup%2Fbaseline-class-uniqueness.lockcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fbaseline-class-uniqueness.lock?ref=382091bee131b037ff68bbdedb049d30c2e4bc18patch@@ -8,3 +8,4 @@
   - org.apache.commons.logging.LogFactory
   - org.apache.commons.logging.impl.NoOpLog
   - org.apache.commons.logging.impl.SimpleLog
+  - org.apache.commons.logging.impl.SimpleLog$1uau(44d2cd850175a73f3abb599e90480999922e0fdc}(sha(44d2cd850175a73f3abb599e90480999922e0fdcnode_idEC_kwDOAjP5fdoAKDQ0ZDJjZDg1MDE3NWE3M2YzYWJiNTk5ZTkwNDgwOTk5OTIyZTBmZGMcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-06-06T15:07:46Zu	committer}(jK Patrick KoenigjM pkoenig10@gmail.comjO 2023-06-06T15:07:46ZumessageRemove DefaultLocale overridetree}(jC (e33285c06872644b184bc79074463db0b53e9168url`https://api.github.com/repos/palantir/atlasdb/git/trees/e33285c06872644b184bc79074463db0b53e9168uj[ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/44d2cd850175a73f3abb599e90480999922e0fdc
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAAhcAAAAHc3NoLXJzYQAAAAMBAAEAAAIBAOLBVI00yZaP7395xCyqzy
aD/kgGj5GS8qP2f4Q0hM5gFbEYaTLwKvZTgcFMKJEw/3tOlCyuFoQChwrZ+YjoX3ZcTdIs
QnoGeYlwKUGY4x3QXLvrURZtGaXWggfEc+UKHT3mnGXM9FpX9CSdpTopg7KhxDlx3/Jv90
zimWImFPxKFUSZrhVGqD8qAQibPTFDs+JhK0cqllhsvm0PR9PilTde++NKLCQUNrRJi2+f
BjLBjJMJshRwXkkM6J8hDvyjiLJz4Bg9hq+5QLnO1fYaetU7aP4bsCs6ix5pyD4WO6cr6T
SMCtJThNdHvOVuOaCCHBOQrdVGjbMH9lmW5FL5oMsTZ86p24rZOFD9ly44mMJWYGk6F81y
japNgWorhR0tSZMSZPVlisGQQsRnsqQidrVPe3IR4MTUsKx39CAutxgk6N+BseeByXKw+H
aBKmd75u/FU7IoxEbXX7EuDq2TCtUmujYXiY7SY4T0DQDjNpHq+vrEUsKyi5mbRTdNahvt
eFWJU5UIwO7Ao+HdsqfUjGN6zw2HSkiHEG3iOj5OY+byI/ykoYGMQ40w6w7shCt7XDbUXa
/kGqIyicthBGQ7Y4/TtquH5Ag2UPSlN9C0Rt/ZBolkTfoLz4wCtTMzd7hdixs5yuocVTn7
njhSYSXRyRbbVcF/q56x1NAAsVOe9epxAAAAA2dpdAAAAAAAAAAGc2hhNTEyAAACFAAAAA
xyc2Etc2hhMi01MTIAAAIAE4CcQpReTyGuHvUhMTBAaY1CSq9d0hGPP5RMMnM9s6IuKopU
/Euc47PEWR0ucv9j1hAIKoV2y8E9UYT+bKDGApAqHeMegbKQCA7IQDy+k2kUgmxEYwxHOU
VsrQ60S77wZcAyCuxqriYpedpmbyPp8V6W66InMK/I+Hq8u9lsKWCA2TeJIOk8CfcCDKrX
Fsn5xPlPqqCF77VTR3AVC7bYPDCidkILc6PZQnlRgR6kpxRaAkZnIU3IkzVzmxt29kaCFf
3d5BI9DitYSJdw6bi9cNUqwf2PwU3aVtf+YgbZaZXqVn4enZwKrO2hx+KF7ERC5N8sbz17
sC5nkTkRybjunmTfJVejbIUDh2GoZ679a4ENvriadnOoT/zVZzYF7rEIYUjIQZSA1Fq571
OCFmtKXaJHNGDdJoQZQpBaZYgreuSqPMJlnbVr6d8mvCJ+KsuxFexNKYAShSW7l0fE47M3
Djb1w44bafjG9Y76WJDQKkF4VkVP5iBTSOvZqDY2H7XTV9n9KekiMXhxcJ1VSc/BED7D/8
s1Wox8wF3z+eTqJ8+cQxEqx5vNXEpACwWj+7PswO9iJG+hdjhU93afomHiWLd3GtoKq1Nc
8ATjzbtaPSwGrPrgrOsLFdJVyuKMOs37WDY1a4oF8+MaSxbFye2NSlD29TWzNcQb4NNnMB
KSosI=
-----END SSH SIGNATURE-----payloadtree e33285c06872644b184bc79074463db0b53e9168
parent acdd8b440cf16a635a7163ab8e533e4576073ab9
author Patrick Koenig <pkoenig10@gmail.com> 1686064066 -0700
committer Patrick Koenig <pkoenig10@gmail.com> 1686064066 -0700

Remove DefaultLocale override
uuj[ ^https://api.github.com/repos/palantir/atlasdb/commits/44d2cd850175a73f3abb599e90480999922e0fdchtml_urlShttps://github.com/palantir/atlasdb/commit/44d2cd850175a73f3abb599e90480999922e0fdccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/44d2cd850175a73f3abb599e90480999922e0fdc/commentsjI }(login	pkoenig10idJLvP jE MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5j[ &https://api.github.com/users/pkoenig10ji https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminujQ }(jn 	pkoenig10jp JLvP jE MDQ6VXNlcjUyNzMxNjQ=jr 3https://avatars.githubusercontent.com/u/5273164?v=4jt h5j[ &https://api.github.com/users/pkoenig10ji https://github.com/pkoenig10jw 0https://api.github.com/users/pkoenig10/followersjy =https://api.github.com/users/pkoenig10/following{/other_user}j{ 6https://api.github.com/users/pkoenig10/gists{/gist_id}j} =https://api.github.com/users/pkoenig10/starred{/owner}{/repo}j 4https://api.github.com/users/pkoenig10/subscriptionsj +https://api.github.com/users/pkoenig10/orgsj ,https://api.github.com/users/pkoenig10/reposj 7https://api.github.com/users/pkoenig10/events{/privacy}j 6https://api.github.com/users/pkoenig10/received_eventsj Userj uparents]}(jC (acdd8b440cf16a635a7163ab8e533e4576073ab9j[ ^https://api.github.com/repos/palantir/atlasdb/commits/acdd8b440cf16a635a7163ab8e533e4576073ab9ji Shttps://github.com/palantir/atlasdb/commit/acdd8b440cf16a635a7163ab8e533e4576073ab9uastats}(totalK	additionsK	deletionsKufiles]}(jC (37cadd28010d8b86de06b5d25a04496445812ba9filenamebuild.gradlestatusmodifiedj Kj KchangesKblob_url^https://github.com/palantir/atlasdb/blob/44d2cd850175a73f3abb599e90480999922e0fdc/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/44d2cd850175a73f3abb599e90480999922e0fdc/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=44d2cd850175a73f3abb599e90480999922e0fdcpatchXD  @@ -113,8 +113,7 @@ allprojects {
                 'Slf4jLogsafeArgs',
                 'StaticAssignmentInConstructor',
                 'StrictUnusedVariable'
-        options.errorprone.error 'DefaultLocale',
-                'SafeLoggingPropagation'
+        options.errorprone.error 'SafeLoggingPropagation'
     }
 }
 uau(bb6c8adb63d8f648370e369e1eebfc02b3fe815b}(sha(bb6c8adb63d8f648370e369e1eebfc02b3fe815bnode_idEC_kwDOAjP5fdoAKGJiNmM4YWRiNjNkOGY2NDgzNzBlMzY5ZTFlZWJmYzAyYjNmZTgxNWIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-07-14T14:23:56Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-07-14T14:24:14Zumessage
validationtree}(j (b61dbc3390177d73040124ec34e0115cdd20b6cdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/b61dbc3390177d73040124ec34e0115cdd20b6cduj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bb6c8adb63d8f648370e369e1eebfc02b3fe815b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSxWo4ACgkQmPPOpKR4
XS1+Ywf9FL3CNtv2t7v9x8H5lJnTa1u8R9qQyu03Iy8CcBmahqzTc775Q8VMYYm1
T/Hosc3/B1Gju4eSsRg01RvO7lnn8ubWZiSjWeXecWtbLv8TBLdXDghJJbjvk8dc
covOZuahnLBFX1EaGwb2E9jFYgUpgNns01YjLsXBSN294piVb9srDtANpiKaSxuv
Ln/u7A7l71MegLi4q5Z0R4CPotP7E/8iSdfCreHnzNG+VduN47uwOuMxQLpApTF/
Q8ZYZWFvzg/CGZxp+wClzMlymvCFr1okyOKUv1Xv8jSnbggRYvz7ZNB1dkVvTFmx
EO5Z4YIGQqDFP25MFwNJLWWzKdXTjQ==
=6hdL
-----END PGP SIGNATURE-----payloadtree b61dbc3390177d73040124ec34e0115cdd20b6cd
parent eea4e514753f467c7c48f49a93c390433658c5b9
author Sam Kramer <skramer@palantir.com> 1689344636 +0100
committer Sam Kramer <skramer@palantir.com> 1689344654 +0100

validation
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/bb6c8adb63d8f648370e369e1eebfc02b3fe815bhtml_urlShttps://github.com/palantir/atlasdb/commit/bb6c8adb63d8f648370e369e1eebfc02b3fe815bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bb6c8adb63d8f648370e369e1eebfc02b3fe815b/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj uparents]}(j (eea4e514753f467c7c48f49a93c390433658c5b9j ^https://api.github.com/repos/palantir/atlasdb/commits/eea4e514753f467c7c48f49a93c390433658c5b9j Shttps://github.com/palantir/atlasdb/commit/eea4e514753f467c7c48f49a93c390433658c5b9uastats}(totalK	additionsK	deletionsKufiles]}(j (da68f337eb6a97370df458d9a8cb6f672c4a892ffilenameWdocs/source/configuration/key_value_service_configs/oracle_key_value_service_config.rststatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/bb6c8adb63d8f648370e369e1eebfc02b3fe815b/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rstraw_urlhttps://github.com/palantir/atlasdb/raw/bb6c8adb63d8f648370e369e1eebfc02b3fe815b/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rstcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rst?ref=bb6c8adb63d8f648370e369e1eebfc02b3fe815bpatchX  @@ -226,7 +226,11 @@ effects are. For example, if the issue arose as two services are configured to u
 performing table mapping, then it is expected that this could break one of the services. However, that condition
 still satisfies the status quo, thus it's on the configurator to determine if this change is safe to make.
 
-Although the alter action is idempotent, it is recommended to remove the configuration after it has ran.
+Although the alter action is idempotent, it is recommended to remove the configuration after it has ran. Check the logs
+for `Altering table to have overflow column to match metadata.` to determine if a table has been successfully altered,
+and there have been no exceptions.
+
+
 
 
 uau(c0cd822c1ead50a67a0d5e7a2c1424d9b9366b2c}(sha(c0cd822c1ead50a67a0d5e7a2c1424d9b9366b2cnode_idEC_kwDOAjP5fdoAKGMwY2Q4MjJjMWVhZDUwYTY3YTBkNWU3YTJjMTQyNGQ5YjkzNjZiMmMcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-16T00:18:26Zu	committer}(j9 
Ahmed Alouanej; aalouane@palantir.comj= 2023-05-16T00:18:26Zumessage
depend dependtree}(j1 (ce7865bf0edfa04bea4d05f5def6ab86c20d82faurl`https://api.github.com/repos/palantir/atlasdb/git/trees/ce7865bf0edfa04bea4d05f5def6ab86c20d82faujI bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c0cd822c1ead50a67a0d5e7a2c1424d9b9366b2c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiy9IACgkQPlMHVIT1
yhrAQQf9EExUKzcyYIisaz49cD5p0JnPBEmNV8mI9FXKhIbUC8Wmj0eD0/mlvCIH
Wd0EscrFNlq1T+SgmKKL5OfYT5lvCCTFzdKF89onRG7hyIlJq5Ib+bquXuXNTD/D
4gubEaOT3TRY05TViJkbKwZAgE3MSWzCm4viqanfq5PiJSAV/yZJAq0bUJPkyVRM
6xc1r/7X6Xiq4vSo2PcQ+w6QdLrExQNXDmjAaufp8moapxe2G7Q2JM/dGzJaPfpS
k4reRBUOdQR0/S25aT3kDzh1yNhAOGh49/XJqq6Hf9aEJFsi9eZlgeUkQbm6eiT2
4QyreZ7zsTlYCZsc+bGYv9nokEo+dA==
=G5EB
-----END PGP SIGNATURE-----payloadtree ce7865bf0edfa04bea4d05f5def6ab86c20d82fa
parent 37491be5f60d580fde1d0112266867e26ce73422
author Ahmed Alouane <aalouane@palantir.com> 1684196306 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684196306 +0100

depend depend
uujI ^https://api.github.com/repos/palantir/atlasdb/commits/c0cd822c1ead50a67a0d5e7a2c1424d9b9366b2chtml_urlShttps://github.com/palantir/atlasdb/commit/c0cd822c1ead50a67a0d5e7a2c1424d9b9366b2ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c0cd822c1ead50a67a0d5e7a2c1424d9b9366b2c/commentsj7 }(loginergo14idJj3 MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jI #https://api.github.com/users/ergo14jW https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj? }(j\ ergo14j^ Jj3 MDQ6VXNlcjMwOTAzNzM2j` 4https://avatars.githubusercontent.com/u/30903736?v=4jb h5jI #https://api.github.com/users/ergo14jW https://github.com/ergo14je -https://api.github.com/users/ergo14/followersjg :https://api.github.com/users/ergo14/following{/other_user}ji 3https://api.github.com/users/ergo14/gists{/gist_id}jk :https://api.github.com/users/ergo14/starred{/owner}{/repo}jm 1https://api.github.com/users/ergo14/subscriptionsjo (https://api.github.com/users/ergo14/orgsjq )https://api.github.com/users/ergo14/reposjs 4https://api.github.com/users/ergo14/events{/privacy}ju 3https://api.github.com/users/ergo14/received_eventsjw Userjy uparents]}(j1 (37491be5f60d580fde1d0112266867e26ce73422jI ^https://api.github.com/repos/palantir/atlasdb/commits/37491be5f60d580fde1d0112266867e26ce73422jW Shttps://github.com/palantir/atlasdb/commit/37491be5f60d580fde1d0112266867e26ce73422uastats}(totalK	additionsK	deletionsKufiles]}(j1 (f883d454daa8237fad261a5713e1c49e1469c186filename.circleci/config.ymlstatusmodifiedj Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/c0cd822c1ead50a67a0d5e7a2c1424d9b9366b2c/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/c0cd822c1ead50a67a0d5e7a2c1424d9b9366b2c/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=c0cd822c1ead50a67a0d5e7a2c1424d9b9366b2cpatch@@ -180,7 +180,7 @@ workflows:
             branches:
               ignore: [develop]
       - deploy:
-          requires: [build]
+          requires: [build, test-tl, test-no-tl]
           filters:
             branches:
               only: developuau(dfa82685a21d06243ae7ca74f997cff85954be02}(sha(dfa82685a21d06243ae7ca74f997cff85954be02node_idEC_kwDOAjP5fdoAKGRmYTgyNjg1YTIxZDA2MjQzYWU3Y2E3NGY5OTdjZmY4NTk1NGJlMDIcommit}(author}(name
Samuel Krameremailskramer@palantir.comdate2023-03-24T12:46:33Zu	committer}(j 
Samuel Kramerj skramer@palantir.comj 2023-03-24T12:46:33Zumessageuse scratch insteadtree}(j (b09233b738dca3ac08f6fc3432d61e5509850b5eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/b09233b738dca3ac08f6fc3432d61e5509850b5euj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/dfa82685a21d06243ae7ca74f997cff85954be02
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj ^https://api.github.com/repos/palantir/atlasdb/commits/dfa82685a21d06243ae7ca74f997cff85954be02html_urlShttps://github.com/palantir/atlasdb/commit/dfa82685a21d06243ae7ca74f997cff85954be02comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/dfa82685a21d06243ae7ca74f997cff85954be02/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramer      j https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (5591830b0fc60195a1f3e5d0c732a3217922cb27j ^https://api.github.com/repos/palantir/atlasdb/commits/5591830b0fc60195a1f3e5d0c732a3217922cb27j Shttps://github.com/palantir/atlasdb/commit/5591830b0fc60195a1f3e5d0c732a3217922cb27uastats}(totalK	additionsK	deletionsKufiles]}(j (d1bf1debf194d0e7d439b60289e1831101bbfa6ffilename-atlasdb-workload-server-antithesis/Dockerfilestatusmodifiedj Kj	 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/dfa82685a21d06243ae7ca74f997cff85954be02/atlasdb-workload-server-antithesis%2FDockerfileraw_urlhttps://github.com/palantir/atlasdb/raw/dfa82685a21d06243ae7ca74f997cff85954be02/atlasdb-workload-server-antithesis%2FDockerfilecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2FDockerfile?ref=dfa82685a21d06243ae7ca74f997cff85954be02patch@@ -1,4 +1,4 @@
-FROM adoptopenjdk/openjdk11:jre-11.0.9_11.1-alpine
+FROM scratch
 MAINTAINER AtlasDB Team
 
 ADD docker-compose.yml /
\ No newline at end of fileuau(8eee1633f1ce95ea3b755c4b4de83850093511ef}(sha(8eee1633f1ce95ea3b755c4b4de83850093511efnode_idEC_kwDOAjP5fdoAKDhlZWUxNjMzZjFjZTk1ZWEzYjc1NWM0YjRkZTgzODUwMDkzNTExZWYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-02-28T10:40:53Zu	committer}(j% 
Sam Kramerj' skramer@palantir.comj) 2023-02-28T10:41:58Zumessagestashtree}(j (ac663159324a6f032ccf652fce2f8c344e9b8b32url`https://api.github.com/repos/palantir/atlasdb/git/trees/ac663159324a6f032ccf652fce2f8c344e9b8b32uj5 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8eee1633f1ce95ea3b755c4b4de83850093511ef
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmP92nYACgkQmPPOpKR4
XS02UQf+OooGJZxOVgxL5W91DflTV50K852/5cYBPmsPIWdsi1onMZclTRGedvKD
Yh7gO4V1mMkL0A99gC5dAyF4Og8Mvu5zVoFJtTo6PR95oAtX901jB+eZ+JzKpu8K
s3JWjvjZ5ycj1RFwDQiwDvswYMQYjlXlBxmlR27VKGOU2CQ7xkxKl0Ndk28BZKj1
e8QekoW4znKI8eOqUUheDz2zmSOVU8KJDoYiCaWLKbKnpKJDpZrYRLNK8u2ilKl8
oKeAenmjzNClRnJz0I4597HEzlOGJ9g8xHxA7CWOFw5PJ8DkR0eXUCfqljb8mwyv
ZEWBHqnlzIW270iJrNRSeA63lR7o4g==
=H6lc
-----END PGP SIGNATURE-----payloadtree ac663159324a6f032ccf652fce2f8c344e9b8b32
parent 6454430d53f6f50996847261c013f897d550e91a
author Sam Kramer <skramer@palantir.com> 1677580853 +0000
committer Sam Kramer <skramer@palantir.com> 1677580918 +0000

stash
uuj5 ^https://api.github.com/repos/palantir/atlasdb/commits/8eee1633f1ce95ea3b755c4b4de83850093511efhtml_urlShttps://github.com/palantir/atlasdb/commit/8eee1633f1ce95ea3b755c4b4de83850093511efcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8eee1633f1ce95ea3b755c4b4de83850093511ef/commentsj# }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j5 'https://api.github.com/users/Sam-KramerjC https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj+ }(jH 
Sam-KramerjJ J^2_ j MDQ6VXNlcjYyMzg4MTQ=jL 3https://avatars.githubusercontent.com/u/6238814?v=4jN h5j5 'https://api.github.com/users/Sam-KramerjC https://github.com/Sam-KramerjQ 1https://api.github.com/users/Sam-Kramer/followersjS >https://api.github.com/users/Sam-Kramer/following{/other_user}jU 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jW >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jY 5https://api.github.com/users/Sam-Kramer/subscriptionsj[ ,https://api.github.com/users/Sam-Kramer/orgsj] -https://api.github.com/users/Sam-Kramer/reposj_ 8https://api.github.com/users/Sam-Kramer/events{/privacy}ja 7https://api.github.com/users/Sam-Kramer/received_eventsjc Userje uparents]}(j (6454430d53f6f50996847261c013f897d550e91aj5 ^https://api.github.com/repos/palantir/atlasdb/commits/6454430d53f6f50996847261c013f897d550e91ajC Shttps://github.com/palantir/atlasdb/commit/6454430d53f6f50996847261c013f897d550e91auastats}(totalK;	additionsK%	deletionsKufiles](}(j (1e2af3f8f702cf6e3a1a9b2f94bfae43a7b7fda6filenameVatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/Invariant.javastatusmodifiedj K j KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/8eee1633f1ce95ea3b755c4b4de83850093511ef/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FInvariant.javaraw_urlhttps://github.com/palantir/atlasdb/raw/8eee1633f1ce95ea3b755c4b4de83850093511ef/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FInvariant.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FInvariant.java?ref=8eee1633f1ce95ea3b755c4b4de83850093511efpatch@@ -17,7 +17,6 @@
 package com.palantir.atlasdb.workload;
 
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
-
 import java.util.function.Consumer;
 
 public interface Invariant extends Consumer<WorkflowHistory> {}u}(j (5bb1b1be782c779589f35fa7358d62e479bdcdcdj iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariant.javaj modifiedj K%j Kj K:j https://github.com/palantir/atlasdb/blob/8eee1633f1ce95ea3b755c4b4de83850093511ef/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj https://github.com/palantir/atlasdb/raw/8eee1633f1ce95ea3b755c4b4de83850093511ef/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.java?ref=8eee1633f1ce95ea3b755c4b4de83850093511efj X  @@ -17,9 +17,12 @@
 package com.palantir.atlasdb.workload.invariant;
 
 import com.google.common.collect.HashBasedTable;
+import com.google.common.collect.HashMultimap;
+import com.google.common.collect.SetMultimap;
 import com.google.common.collect.Table;
 import com.palantir.atlasdb.workload.Invariant;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
@@ -31,12 +34,11 @@
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
-
-import javax.annotation.concurrent.NotThreadSafe;
 import java.util.Collections;
-import java.util.HashMap;
 import java.util.Map;
+import java.util.Optional;
 import java.util.Set;
+import javax.annotation.concurrent.NotThreadSafe;
 
 public class DurableWritesInvariant implements Invariant {
 
@@ -50,28 +52,42 @@ public void accept(WorkflowHistory workflowHistory) {
                 .forEach(witnessedTransactionActions ->
                         witnessedTransactionActions.forEach(action -> action.accept(replayer)));
         replayer.getTables().forEach(tableName -> {
-            replayer.getValues(tableName).forEach((cell, value) -> {
-                boolean equalValues = workflowHistory
-                        .transactionStore()
-                        .get(tableName, cell)
-                        .map(value::equals)
-                        .orElse(false);
-                if (!equalValues) {
-                    log.error(
-                            "InMemoryKvs does not match external KVS.",
-                            SafeArg.of("table", tableName),
-                            SafeArg.of("cell", cell),
-                            SafeArg.of("expectedValue", value));
-                }
-            });
+            checkCellsExist(tableName, replayer.getValues(tableName), workflowHistory.transactionStore());
+            checkCellsAreDeleted(tableName, replayer.getDeletedCells(tableName), workflowHistory.transactionStore());
+        });
+    }
+
+    private static void checkCellsExist(
+            String tableName, Map<WorkloadCell, Integer> expectedCells, ReadableTransactionStore store) {
+        expectedCells.forEach((cell, value) -> {
+            Optional<Integer> actualValue = store.get(tableName, cell);
+            boolean equalValues = actualValue.map(value::equals).orElse(false);
+            if (!equalValues) {
+                log.error(
+                        "InMemoryKvs does not match external KVS.",
+                        SafeArg.of("table", tableName),
+                        SafeArg.of("cell", cell),
+                        SafeArg.of("expectedValue", value),
+                        SafeArg.of("actualValue", actualValue));
+            }
         });
     }
 
+    private static void checkCellsAreDeleted(
+            String tableName, Set<WorkloadCell> cells, ReadableTransactionStore store) {
+        cells.forEach(deletedCell -> store.get(tableName, deletedCell)
+                .ifPresent(value -> log.error(
+                        "Cell existed when it is expected to be deleted.",
+                        SafeArg.of("tableName", tableName),
+                        SafeArg.of("cell", deletedCell),
+                        SafeArg.of("value", value))));
+    }
+
     @NotThreadSafe
     private static class InMemoryKvsTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
 
         private final Table<String, WorkloadCell, Integer> kvs = HashBasedTable.create();
-        private final Map<String, WorkloadCell> deletedCells = new HashMap<>();
+        private final SetMultimap<String, WorkloadCell> deletedCells = HashMultimap.create();
         private boolean hasFinished = false;
 
         @Override
@@ -84,7 +100,7 @@ public Void visit(WitnessedReadTransactionAction readTransactionAction) {
         public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
             checkMutable();
             kvs.put(writeTransactionAction.table(), writeTransactionAction.cell(), writeTransactionAction.value());
-            deletedCells.remove(writeTransactionAction.cell());
+            deletedCells.remove(writeTransactionAction.table(), writeTransactionAction.cell());
             return null;
         }
 
@@ -111,9 +127,9 @@ private Map<WorkloadCell, Integer> getValues(String tableName) {
             return Collections.unmodifiableMap(kvs.row(tableName));
         }
 
-        private Map<String, WorkloadCell> getDeletedCells() {
+        private Set<WorkloadCell> getDeletedCells(String tableName) {
             hasFinished = true;
-            return Collections.unmodifiableMap(deletedCells);
+            return Collections.unmodifiableSet(deletedCells.get(tableName));
         }
     }
 }ueu(372b69d1ce52b60f2c3efe8078446da266e3221b}(sha(372b69d1ce52b60f2c3efe8078446da266e3221bnode_idEC_kwDOAjP5fdoAKDM3MmI2OWQxY2U1MmI2MGYyYzNlZmU4MDc4NDQ2ZGEyNjZlMzIyMWIcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-04-14T15:41:51Zu	committer}(j GitHubj noreply@github.comj 2023-04-14T15:41:51Zumessage|Use debian images instead of alpine (#6527)

Use debian images for workload-server and timelock-server for integration teststree}(j (0609a00abd77e74473d27e21bbef30a96a2a1b59url`https://api.github.com/repos/palantir/atlasdb/git/trees/0609a00abd77e74473d27e21bbef30a96a2a1b59uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/372b69d1ce52b60f2c3efe8078446da266e3221b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkOXQ/CRBK7hj4Ov3rIwAAimMIAH4/fVpPpg/zSFquSPE+3OX8
I5pz80gxYdFhorAq0egShzX9mQzEVTZqOgjJbF2dmasKc4hxVhy0Mzy4mL/KmsIC
+/bqJyPL52BEB2tUstQHsk3BaNuY4SuVfWukVJJzd+ZYbNLd75fE1he6lKpmREHM
B0myXfjqxeXyx04+Ch9FHU8gSm2dgw1Nletv4/qjh8Q+s+CgWxnrEiJXIS5hFHSg
zdwEiUwhr/VD1ZNOELCpomPdMxExhNyqR8FphHwKMRtrdsNbgmXLF1j+Uv0WgExy
RxLNIMA1ZVSCmAVF3AGnxQ1P6lJHZG33cEj9KTeffNGl/cvCDCK9Of8pxQcUrBU=
=Wuj9
-----END PGP SIGNATURE-----
payloadXO  tree 0609a00abd77e74473d27e21bbef30a96a2a1b59
parent 4d40fa1e7ff9dd21862fcc66b14b5bc818a8d609
author Sam-Kramer <sam.c.kramer@gmail.com> 1681486911 +0100
committer GitHub <noreply@github.com> 1681486911 +0000

Use debian images instead of alpine (#6527)

Use debian images for workload-server and timelock-server for integration tests
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/372b69d1ce52b60f2c3efe8078446da266e3221bhtml_urlShttps://github.com/palantir/atlasdb/commit/372b69d1ce52b60f2c3efe8078446da266e3221bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/372b69d1ce52b60f2c3efe8078446da266e3221b/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j (4d40fa1e7ff9dd21862fcc66b14b5bc818a8d609j ^https://api.github.com/repos/palantir/atlasdb/commits/4d40fa1e7ff9dd21862fcc66b14b5bc818a8d609j Shttps://github.com/palantir/atlasdb/commit/4d40fa1e7ff9dd21862fcc66b14b5bc818a8d609uastats}(totalK	additionsK
	deletionsKufiles](}(j (121a175146bc6a56997ba38d7f713d850fb50e15filename/atlasdb-workload-server-distribution/Dockerfilestatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/372b69d1ce52b60f2c3efe8078446da266e3221b/atlasdb-workload-server-distribution%2FDockerfileraw_urlhttps://github.com/palantir/atlasdb/raw/372b69d1ce52b60f2c3efe8078446da266e3221b/atlasdb-workload-server-distribution%2FDockerfilecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2FDockerfile?ref=372b69d1ce52b60f2c3efe8078446da266e3221bpatchX`  @@ -1,10 +1,10 @@
-FROM adoptopenjdk/openjdk11:jre-11.0.9_11.1-alpine
+FROM adoptopenjdk/openjdk11:jdk-11.0.11_9-debian
 MAINTAINER AtlasDB Team
 
 ENV DOCKERIZE_VERSION v0.2.0
 
 # Bash is useful for monitoring; curl is used by our healthchecks.
-RUN apk update && apk add bash curl procps wget \
+RUN apt-get update && apt-get -y install bash curl procps wget \
     && wget --no-check-certificate http://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
     && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
 u}(j (7cd0781ff20be0bdee6ed7080da226fe65bc85c7j $changelog/@unreleased/pr-6527.v2.ymlj addedj Kj K j Kj	 |https://github.com/palantir/atlasdb/blob/372b69d1ce52b60f2c3efe8078446da266e3221b/changelog%2F%40unreleased%2Fpr-6527.v2.ymlj {https://github.com/palantir/atlasdb/raw/372b69d1ce52b60f2c3efe8078446da266e3221b/changelog%2F%40unreleased%2Fpr-6527.v2.ymlj
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6527.v2.yml?ref=372b69d1ce52b60f2c3efe8078446da266e3221bj @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Use debian images for workload-server and timelock-server for integration
+    tests
+  links:
+  - https://github.com/palantir/atlasdb/pull/6527u}(j (be72c004493be08c4fc82ce80da6356af57c9035j 'timelock-server-distribution/Dockerfilej modifiedj Kj Kj Kj	 {https://github.com/palantir/atlasdb/blob/372b69d1ce52b60f2c3efe8078446da266e3221b/timelock-server-distribution%2FDockerfilej zhttps://github.com/palantir/atlasdb/raw/372b69d1ce52b60f2c3efe8078446da266e3221b/timelock-server-distribution%2FDockerfilej
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-distribution%2FDockerfile?ref=372b69d1ce52b60f2c3efe8078446da266e3221bj X  @@ -1,8 +1,8 @@
-FROM adoptopenjdk/openjdk11:jre-11.0.9_11.1-alpine
+FROM adoptopenjdk/openjdk11:jdk-11.0.11_9-debian
 MAINTAINER AtlasDB Team
 
 # Bash is useful for monitoring; curl is used by our healthchecks.
-RUN apk update && apk add bash curl
+RUN apt-get update && apt-get -y install bash curl
 
 # Prefer ADD to COPY because it does the tar handling
 ADD timelock-server-*.tgz /ueu(ce5995e9c0f0098e6cff531d1e687c682e7052f3}(sha(ce5995e9c0f0098e6cff531d1e687c682e7052f3node_idEC_kwDOAjP5fdoAKGNlNTk5NWU5YzBmMDA5OGU2Y2ZmNTMxZDFlNjg3YzY4MmU3MDUyZjMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-05T20:11:11Zu	committer}(j+ GitHubj- noreply@github.comj/ 2023-07-05T20:11:11ZumessageX
  [Antithesis | Range Queries] Part 8: ReadTransactionAction -> SingleCellReadTransactionAction (#6614)

* Refactor TransactionActions to have explicitly named single cell variants

* broken tests

* Row column range read APIs

* Actually support row column range reads

* patchy patch

* add one more test

* change typing

* The Eagle has Landed

* More testing

* update random workflow

* CR notes

* snapshot support

* Bank balance stuff

* SingleCellRead

* Single row

* semantic merge conflict

* semantic merge conflicts are

* semantic merge conflicts are unfortunate

* semantic merge conflicts are unfortunate and

* semantic merge conflicts are unfortunate and so are irresponsible resolutions

* spot spot spot spot spot spottree}(j# (3576e0ebb84fa927b2d1b2d51c9f649b457bf492url`https://api.github.com/repos/palantir/atlasdb/git/trees/3576e0ebb84fa927b2d1b2d51c9f649b457bf492uj; bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ce5995e9c0f0098e6cff531d1e687c682e7052f3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkpc5fCRBK7hj4Ov3rIwAAvacIAKM+6q8FNEViKz2YqTm0ZzVF
h7+gX2MwRb3YAXosSxAFlAE7PihrfmLSgnX5sOIiXCbWy/Pxg0H2/t8SBz/+GzaB
cPHG0geBYn8KVC5exWwbyuTEDGSG68c5ngf6wQdg73kA4799xjLZciK1XaxZYaKS
EcNshc3736+v3CC4Jz3sjeUe1L7HesyjU+0SBi4JLYNEEu63DUV+NWRZL8rXMFr4
/SlZ2tk3Ig/B96ePHDXni30Ngvx9KsS74/Ofc4VHYAJMG1fsBR+D1xHlHcJJQDXt
ENwcSjoTZd5vVEGpMJssehm4LAydQ6uIdKqMsu7JWUdn9QnqWtRaunzL/sk1gsc=
=iM7s
-----END PGP SIGNATURE-----
payloadX  tree 3576e0ebb84fa927b2d1b2d51c9f649b457bf492
parent 9988301a91b9c55408f2b0c9b544a7c70730fd95
author Jeremy Kong <jkong@palantir.com> 1688587871 +0100
committer GitHub <noreply@github.com> 1688587871 +0100

[Antithesis | Range Queries] Part 8: ReadTransactionAction -> SingleCellReadTransactionAction (#6614)

* Refactor TransactionActions to have explicitly named single cell variants

* broken tests

* Row column range read APIs

* Actually support row column range reads

* patchy patch

* add one more test

* change typing

* The Eagle has Landed

* More testing

* update random workflow

* CR notes

* snapshot support

* Bank balance stuff

* SingleCellRead

* Single row

* semantic merge conflict

* semantic merge conflicts are

* semantic merge conflicts are unfortunate

* semantic merge conflicts are unfortunate and

* semantic merge conflicts are unfortunate and so are irresponsible resolutions

* spot spot spot spot spot spotuuj; ^https://api.github.com/repos/palantir/atlasdb/commits/ce5995e9c0f0098e6cff531d1e687c682e7052f3html_urlShttps://github.com/palantir/atlasdb/commit/ce5995e9c0f0098e6cff531d1e687c682e7052f3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ce5995e9c0f0098e6cff531d1e687c682e7052f3/commentsj) }(login
jeremyk-91idJZ j% MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j; 'https://api.github.com/users/jeremyk-91jI https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj1 }(jN web-flowjP J/j% MDQ6VXNlcjE5ODY0NDQ3jR 4https://avatars.githubusercontent.com/u/19864447?v=4jT h5j; %https://api.github.com/users/web-flowjI https://github.com/web-flowjW /https://api.github.com/users/web-flow/followersjY <https://api.github.com/users/web-flow/following{/other_user}j[ 5https://api.github.com/users/web-flow/gists{/gist_id}j] <https://api.github.com/users/web-flow/starred{/owner}{/repo}j_ 3https://api.github.com/users/web-flow/subscriptionsja *https://api.github.com/users/web-flow/orgsjc +https://api.github.com/users/web-flow/reposje 6https://api.github.com/users/web-flow/events{/privacy}jg 5https://api.github.com/users/web-flow/received_eventsji Userjk uparents]}(j# (9988301a91b9c55408f2b0c9b544a7c70730fd95j; ^https://api.github.com/repos/palantir/atlasdb/commits/9988301a91b9c55408f2b0c9b544a7c70730fd95jI Shttps://github.com/palantir/atlasdb/commit/9988301a91b9c55408f2b0c9b544a7c70730fd95uastats}(totalM	additionsK	deletionsKufiles](}(j# (0afb2f8d855ce6f274bf6d59e8fa8724ec38f7e8filenameJatlasdb-client/src/main/java/com/palantir/atlasdb/util/AtlasDbMetrics.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FAtlasDbMetrics.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FAtlasDbMetrics.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FAtlasDbMetrics.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3patchX  @@ -118,7 +118,7 @@ private static <T, U extends T> T instrument(
                         LoggerFactory.getLogger("performance." + name),
                         LoggingLevel.TRACE,
                         LoggingInvocationEventHandler.LOG_DURATIONS_GREATER_THAN_1_MICROSECOND)
-                .build();
+                .build(); // Ok
     }
 
     private static InstrumentationFilter instrumentTimedOnly() {u}(j# (7c4c67541d67c4aac64d40c0c8b2421caf7ea3d5j Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javaj modifiedj K	j K	j Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j X  @@ -223,7 +223,7 @@ Function<TimelockService, TimeLockClient> defaultTimelockClientFactory() {
      * TransactionManager will stay uninitialized and continue to throw for all other purposes until the callback
      * returns at which point it will become initialized. If asynchronous initialization is disabled, the callback will
      * be run just before the TM is returned.
-     *
+     * <p>
      * Note that if the callback blocks forever, the TransactionManager will never become initialized, and calling its
      * close() method will block forever as well. If the callback init() fails, and its cleanup() method throws,
      * the TransactionManager will not become initialized and it will be closed.
@@ -402,10 +402,10 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
 
         KeyValueService keyValueService = initializeCloseable(
                 () -> {
-                    KeyValueService kvs = atlasFactory.getKeyValueService();
-                    kvs = ProfilingKeyValueService.create(kvs);
+                    KeyValueService kvs = atlasFactory.getKeyValueService(); // CassandraKeyValueServiceImpl
+                    kvs = ProfilingKeyValueService.create(kvs); // Profiling, we think ok
                     kvs = new SafeTableClearerKeyValueService(
-                            lockAndTimestampServices.timelock()::getImmutableTimestamp, kvs);
+                            lockAndTimestampServices.timelock()::getImmutableTimestamp, kvs); // Autodelegate, ok
 
                     // Even if sweep queue writes are enabled, unless targeted sweep is enabled we generally still want
                     // to
@@ -420,13 +420,13 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                                 () -> true);
                     }
 
-                    kvs = TracingKeyValueService.create(kvs);
+                    kvs = TracingKeyValueService.create(kvs); // ok
                     kvs = AtlasDbMetrics.instrumentTimed(
                             metricsManager.getRegistry(),
                             KeyValueService.class,
                             kvs,
-                            MetricRegistry.name(KeyValueService.class));
-                    return ValidatingQueryRewritingKeyValueService.create(kvs);
+                            MetricRegistry.name(KeyValueService.class)); // ok?
+                    return ValidatingQueryRewritingKeyValueService.create(kvs); // ok
                 },
                 closeables);
 
@@ -670,10 +670,10 @@ private static Callback<TransactionManager> createClearsTable() {
     /**
      * If we decide to move a service to use thorough sweep; we need to make sure that background sweep won't cause any
      * trouble by deleting large number of empty values at once - causing Cassandra OOMs.
-     *
+     * <p>
      * lockImmutableTsOnReadOnlyTransaction flag is used to decide on disabling background sweep, as this flag is used
      * as an intermediate step for migrating to thorough sweep.
-     *
+     * <p>
      * Separately, users may disable the background sweep process entirely in config, which we respect.
      */
     private boolean runBackgroundSweepProcess() {u}(j# (5022c993a6c8701af08093ae47ccd0f26ec456eej Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraTimeLockTestSuite.javaj modifiedj Kj K
j Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j X  @@ -17,22 +17,19 @@
 
 import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.containers.CassandraEnvironment;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import com.palantir.atlasdb.ete.coordination.MultipleSchemaVersionsCoordinationEteTest;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;
 import org.junit.runners.Suite;
 
 @RunWith(Suite.class)
-@Suite.SuiteClasses({
-    TodoEteTest.class,
-    TargetedSweepEteTest.class,
-    CassandraTimestampsEteTest.class,
-    TimestampManagementEteTest.class,
-    CoordinationEteTest.class,
-    MultipleSchemaVersionsCoordinationEteTest.class,
-    LockWithTimelockEteTest.class
+@Suite.SuiteClasses({TodoEteTest.class
+    //    TargetedSweepEteTest.class,
+    //    CassandraTimestampsEteTest.class,
+    //    TimestampManagementEteTest.class,
+    //    CoordinationEteTest.class,
+    //    MultipleSchemaVersionsCoordinationEteTest.class,
+    //    LockWithTimelockEteTest.class
 })
 public class CassandraTimeLockTestSuite extends EteSetup {
     private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");u}(j# (72bc11659accd74d0abb03df5bdecff95ddeceb9j xatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/SingleCellReadTransactionAction.javaj renamedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellReadTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellReadTransactionAction.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j XU  @@ -17,24 +17,23 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedSingleCellReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import java.util.Optional;
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface ReadTransactionAction extends SingleCellTransactionAction {
-
-    default WitnessedReadTransactionAction witness(Optional<Integer> value) {
-        return ImmutableWitnessedReadTransactionAction.of(table(), cell(), value);
+public interface SingleCellReadTransactionAction extends SingleCellTransactionAction {
+    default WitnessedSingleCellReadTransactionAction witness(Optional<Integer> value) {
+        return ImmutableWitnessedSingleCellReadTransactionAction.of(table(), cell(), value);
     }
 
     @Override
     default <T> T accept(TransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-    static ReadTransactionAction of(String table, WorkloadCell workloadCell) {
-        return ImmutableReadTransactionAction.of(table, workloadCell);
+    static SingleCellReadTransactionAction of(String table, WorkloadCell workloadCell) {
+        return ImmutableSingleCellReadTransactionAction.of(table, workloadCell);
     }
 }previous_filenamenatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ReadTransactionAction.javau}(j# (0a91db8551cefb63678b7a8738390e5453d4310bj qatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionActionVisitor.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j XB  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction;
 
 public interface TransactionActionVisitor<T> {
-    T visit(ReadTransactionAction readTransactionAction);
+    T visit(SingleCellReadTransactionAction singleCellReadTransactionAction);
 
     T visit(WriteTransactionAction writeTransactionAction);
 u}(j# (6eceac9e4aec081bfc01707d271c1ea928848a27j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedSingleCellReadTransactionAction.javaj renamedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellReadTransactionAction.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellReadTransactionAction.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j Xw  @@ -21,8 +21,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedReadTransactionAction extends WitnessedSingleCellTransactionAction {
-
+public interface WitnessedSingleCellReadTransactionAction extends WitnessedSingleCellTransactionAction {
     @Override
     @Value.Parameter
     String table();
@@ -40,7 +39,7 @@ default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-    static WitnessedReadTransactionAction of(String table, WorkloadCell cell, Optional<Integer> value) {
-        return ImmutableWitnessedReadTransactionAction.of(table, cell, value);
+    static WitnessedSingleCellReadTransactionAction of(String table, WorkloadCell cell, Optional<Integer> value) {
+        return ImmutableWitnessedSingleCellReadTransactionAction.of(table, cell, value);
     }
 }j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedReadTransactionAction.javau}(j# (f5757c803ef0b621c430879709896498f246314aj atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionActionVisitor.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j Xf  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
 public interface WitnessedTransactionActionVisitor<T> {
-    T visit(WitnessedReadTransactionAction readTransactionAction);
+    T visit(WitnessedSingleCellReadTransactionAction readTransactionAction);
 
     T visit(WitnessedWriteTransactionAction writeTransactionAction);
 u}(j# (b9204f7d18a8c7881c6b1c06fcaa87e0b81b0918j atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j X  @@ -53,7 +53,8 @@ public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
     @Test
     public void toFullyWitnessedCopiesArgumentsCorrectly() {
         WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
-        WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
+        WitnessedSingleCellReadTransactionAction readTransactionAction =
+                mock(WitnessedSingleCellReadTransactionAction.class);
         List<WitnessedSingleCellTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
         FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
                 .startTimestamp(START_TIMESTAMP)u}(j# (a4441b2312e16a573e137e02464713072ad6ad63j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j X  @@ -26,8 +26,8 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -67,7 +67,8 @@ private static final class SerializableInvariantVisitor
         private final RangeQueryReader rangeQueryReader = SimpleRangeQueryReader.create(inMemoryTransactionReplayer);
 
         @Override
-        public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedSingleCellReadTransactionAction readTransactionAction) {
             Optional<Integer> expectedValue = inMemoryTransactionReplayer
                     .getValues()
                     .get(TableAndWorkloadCell.of(readTransactionAction.table(), readTransactionAction.cell()))u}(j# (d99ecffee620b7f3dda7846137d0ec6beff5300ej katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j XG  @@ -25,8 +25,8 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.Map;
@@ -58,7 +58,8 @@ final class SnapshotInvariantVisitor
     }
 
     @Override
-    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+    public Optional<InvalidWitnessedTransactionAction> visit(
+            WitnessedSingleCellReadTransactionAction readTransactionAction) {
         Optional<Integer> expected = fetchValueFromView(
                         readTransactionAction.table(), readTransactionAction.cell(), readView)
                 .value();u}(j# (a8385843e3074e18ec9db56c0547213227584d48j latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j X  @@ -25,7 +25,7 @@
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
@@ -68,7 +68,8 @@ public Optional<Integer> read(String table, WorkloadCell workloadCell) {
                     Map<Cell, byte[]> values = transaction.get(tableReference, Set.of(atlasCell));
                     Optional<Integer> valueRead =
                             Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
-                    witnessedTransactionActions.add(WitnessedReadTransactionAction.of(table, workloadCell, valueRead));
+                    witnessedTransactionActions.add(
+                            WitnessedSingleCellReadTransactionAction.of(table, workloadCell, valueRead));
                     return valueRead;
                 },
                 table,u}(j# (1800f3b86ab7dd6f58186797efd5280b70bd757dj fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j X  @@ -26,8 +26,8 @@
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
@@ -143,8 +143,8 @@ public AtlasDbTransactionActionVisitor(InteractiveTransaction transaction) {
         }
 
         @Override
-        public Void visit(ReadTransactionAction readTransactionAction) {
-            transaction.read(readTransactionAction.table(), readTransactionAction.cell());
+        public Void visit(SingleCellReadTransactionAction singleCellReadTransactionAction) {
+            transaction.read(singleCellReadTransactionAction.table(), singleCellReadTransactionAction.cell());
             return null;
         }
 u}(j# (fc90a1cdd07648f9656627da15fa0fe7c9929b48j patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j Xp  @@ -19,8 +19,8 @@
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.HashMap;
@@ -33,7 +33,7 @@ public final class InMemoryTransactionReplayer implements WitnessedTransactionAc
             StructureHolder.create(HashMap::empty);
 
     @Override
-    public Void visit(WitnessedReadTransactionAction _readTransactionAction) {
+    public Void visit(WitnessedSingleCellReadTransactionAction _readTransactionAction) {
         return null;
     }
 u}(j# (5c84ec2365c7267c98a6761c28c444790f8027bfj katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j X  @@ -17,17 +17,17 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 
 public enum WitnessToActionVisitor implements WitnessedTransactionActionVisitor<TransactionAction> {
     INSTANCE;
 
     @Override
-    public ReadTransactionAction visit(WitnessedReadTransactionAction readTransactionAction) {
-        return ImmutableReadTransactionAction.of(readTransactionAction.table(), readTransactionAction.cell());
+    public SingleCellReadTransactionAction visit(WitnessedSingleCellReadTransactionAction readTransactionAction) {
+        return ImmutableSingleCellReadTransactionAction.of(readTransactionAction.table(), readTransactionAction.cell());
     }
 
     @Overrideu}(j# (6d6f5fcc34e22304ca8c5dc2c2c635361ee8fb32j aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j X  @@ -24,12 +24,11 @@
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ImmutableDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ImmutableReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ImmutableRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ImmutableRowColumnRangeReadTransactionAction.Builder;
 import com.palantir.atlasdb.workload.transaction.ImmutableWriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -91,10 +90,10 @@ public Optional<WitnessedTransaction> run(TransactionStore store) {
             return store.readWrite(actions);
         }
 
-        private List<ReadTransactionAction> generateReadActions() {
+        private List<SingleCellReadTransactionAction> generateReadActions() {
             return IntStream.range(0, random.nextInt(workflowConfiguration.maxReads() + 1))
                     .boxed()
-                    .map(_index -> ImmutableReadTransactionAction.of(
+                    .map(_index -> SingleCellReadTransactionAction.of(
                             workflowConfiguration.tableConfiguration().tableName(), randomCell()))
                     .collect(Collectors.toList());
         }u}(j# (1ddc1c9a4fbd8b3691b9a96fdf667e44919d96f7j latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j XI  @@ -24,7 +24,7 @@
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -106,6 +106,7 @@ private static List<TransactionAction> createCellUpdateActions(int taskIndex, St
 
     private static List<TransactionAction> createCellReadActions(String tableName) {
         return ImmutableList.of(
-                ReadTransactionAction.of(tableName, FIRST_CELL), ReadTransactionAction.of(tableName, SECOND_CELL));
+                SingleCellReadTransactionAction.of(tableName, FIRST_CELL),
+                SingleCellReadTransactionAction.of(tableName, SECOND_CELL));
     }
 }u}(j# (4a225b9a61bb820c7e3d66ad9815a6b22d3ea422j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javaj modifiedj Kj K
j Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j X*  @@ -28,7 +28,7 @@
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.logsafe.SafeArg;
@@ -38,7 +38,6 @@
 import java.security.SecureRandom;
 import java.util.ArrayList;
 import java.util.List;
-import java.util.Objects;
 import java.util.Optional;
 import java.util.Set;
 import java.util.stream.Collectors;
@@ -129,22 +128,20 @@ private static List<CrossCellInconsistency> findInconsistencyInTransactionHistor
 
     private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActions(
             List<WitnessedTransactionAction> actions) {
-        Set<WitnessedReadTransactionAction> readTransactionActions = actions.stream()
-                .filter(WitnessedReadTransactionAction.class::isInstance)
-                .map(action -> (WitnessedReadTransactionAction) action)
+        Set<WitnessedSingleCellReadTransactionAction> readTransactionActions = actions.stream()
+                .filter(WitnessedSingleCellReadTransactionAction.class::isInstance)
+                .map(action -> (WitnessedSingleCellReadTransactionAction) action)
                 .collect(Collectors.toSet());
         if (readTransactionActions.size() == 0) {
             return Stream.empty();
         }
-        WitnessedReadTransactionAction summaryRowRead = readTransactionActions.stream()
+        WitnessedSingleCellReadTransactionAction summaryRowRead = readTransactionActions.stream()
                 .filter(action -> action.cell().key() == SUMMARY_ROW)
                 .findAny()
                 .orElseThrow(() -> new SafeIllegalStateException(
                         "Expected to find a read of the summary row", SafeArg.of("actions", actions)));
-        WitnessedReadTransactionAction normalRowRead = readTransactionActions.stream()
-                .filter(action -> Objects.equals(
-                                action.cell().key(), summaryRowRead.cell().column())
-                        && action.cell().column() == COLUMN)
+        WitnessedSingleCellReadTransactionAction normalRowRead = readTransactionActions.stream()
+                .filter(action -> action.cell().key() != SUMMARY_ROW)
                 .findAny()
                 .orElseThrow(() -> new SafeIllegalStateException(
                         "Expected to find a read of a corresponding normal row", SafeArg.of("actions", actions)));u}(j# (ea20cb665c4ebb1bdfe3db63221eea1eda39a68fj latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j X  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -123,7 +123,7 @@ public void catchesWriteSkew() {
                         InvalidWitnessedSingleCellTransactionAction.class,
                         invalidSingleCellWitnessedTransactionAction -> {
                             assertThat(invalidSingleCellWitnessedTransactionAction.action())
-                                    .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
+                                    .isInstanceOfSatisfying(WitnessedSingleCellReadTransactionAction.class, action -> {
                                         assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
                                         assertThat(action.value()).contains(15);
                                     });u}(j# (3f20f7a70176487ef403ba940f6d80d5be20f457j patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java      j https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j Xz  @@ -30,8 +30,8 @@
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
@@ -65,7 +65,7 @@ public void witnessRecordsAllSingleCellActions() {
                 }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
-                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
     }
 
@@ -77,9 +77,10 @@ public void readHandlesEmptyAndPresentValue() {
                     transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
                 }))
                 .containsExactly(
-                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
-                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+                        WitnessedSingleCellReadTransactionAction.of(
+                                TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
     }
 
     @Testu}(j# (adc5e60173b898a15d6ace9f917b6d3050fa0811j jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj modifiedj K
j Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j X  @@ -46,11 +46,11 @@
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore.CommitTimestampProvider;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -102,10 +102,10 @@ public void canWriteDataToStore() {
     public void witnessedTransactionMaintainsOrder() {
         List<WitnessedTransactionAction> actions = List.of(
                 WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, 100),
-                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, Optional.of(100)),
-                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_THREE, Optional.empty()),
+                WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, Optional.of(100)),
+                WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_THREE, Optional.empty()),
                 WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, 24),
-                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(24)));
+                WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(24)));
         Optional<WitnessedTransaction> maybeTransaction = store.readWrite(actions.stream()
                 .map(action -> action.accept(WitnessToActionVisitor.INSTANCE))
                 .collect(Collectors.toList()));
@@ -118,20 +118,21 @@ public void witnessedTransactionMaintainsOrder() {
     @Test
     public void readWriteHandlesAllTransactionTypes() {
         store.readWrite(List.of(WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE)));
-        assertThat(store.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+        assertThat(store.readWrite(List.of(SingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isPresent()
                 .map(WitnessedTransaction::actions)
                 .map(Iterables::getOnlyElement)
-                .map(WitnessedReadTransactionAction.class::cast)
-                .map(WitnessedReadTransactionAction::value)
+                .map(WitnessedSingleCellReadTransactionAction.class::cast)
+                .map(WitnessedSingleCellReadTransactionAction::value)
                 .contains(Optional.of(VALUE_ONE));
         store.readWrite(List.of(DeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
         assertThat(store.get(TABLE_1, WORKLOAD_CELL_ONE)).isEmpty();
     }
 
     @Test
     public void readWriteThrowsWhenTableDoesNotExist() {
-        assertThatThrownBy(() -> store.readWrite(List.of(ReadTransactionAction.of("chocolate", WORKLOAD_CELL_ONE))))
+        assertThatThrownBy(() ->
+                        store.readWrite(List.of(SingleCellReadTransactionAction.of("chocolate", WORKLOAD_CELL_ONE))))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Transaction action has unknown table.");
     }
@@ -144,14 +145,14 @@ public void readWriteReturnsEmptyWhenExceptionThrown() {
         when(transactionManager.runTaskWithRetry(any())).thenThrow(new RuntimeException());
         AtlasDbTransactionStore transactionStore = AtlasDbTransactionStore.create(
                 transactionManager, Map.of(TABLE_REFERENCE, AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
-        assertThat(transactionStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+        assertThat(transactionStore.readWrite(List.of(SingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isEmpty();
     }
 
     @Test
     public void readWriteHandlesReadOnlyTransaction() {
         Optional<WitnessedTransaction> witnessedTransaction =
-                store.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
+                store.readWrite(List.of(SingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
         assertThat(witnessedTransaction).isPresent();
         assertThat(witnessedTransaction.get().commitTimestamp()).isEmpty();
     }
@@ -164,7 +165,7 @@ public void abortedTransactionsReturnEmpty() {
         doReturn(abortedTransaction).when(onlyAbortsManager).runTaskWithConditionWithRetry(any(Supplier.class), any());
         AtlasDbTransactionStore onlyAbortsStore =
                 AtlasDbTransactionStore.create(onlyAbortsManager, TABLES_TO_ATLAS_METADATA);
-        assertThat(onlyAbortsStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+        assertThat(onlyAbortsStore.readWrite(List.of(SingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isEmpty();
     }
 u}(j# (58c33505b7876ab53b5f9bdd5f01bd2c64e92790j tatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayerTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j X  @@ -25,7 +25,7 @@
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
 import static org.assertj.core.api.Assertions.assertThat;
 
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -43,8 +43,8 @@ public final class InMemoryTransactionReplayerTest {
     @Test
     public void readActionsAreIgnored() {
         InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
-        inMemoryTransactionReplayer.visit(
-                ImmutableWitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+        inMemoryTransactionReplayer.visit(ImmutableWitnessedSingleCellReadTransactionAction.of(
+                TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
         assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
     }
 u}(j# (971037703a3100aada580c79c798eac8ad8b3c98j oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitorTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j XI  @@ -21,7 +21,7 @@
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import java.util.Optional;
 import org.junit.Test;
@@ -34,9 +34,9 @@ public final class WitnessToActionVisitorTest {
 
     @Test
     public void convertsReadsCorrectly() {
-        WitnessedReadTransactionAction witnessedRead =
-                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL, Optional.of(VALUE));
-        ReadTransactionAction read = WitnessToActionVisitor.INSTANCE.visit(witnessedRead);
+        WitnessedSingleCellReadTransactionAction witnessedRead =
+                WitnessedSingleCellReadTransactionAction.of(TABLE, WORKLOAD_CELL, Optional.of(VALUE));
+        SingleCellReadTransactionAction read = WitnessToActionVisitor.INSTANCE.visit(witnessedRead);
         assertThat(read.table()).isEqualTo(witnessedRead.table());
         assertThat(read.cell()).isEqualTo(witnessedRead.cell());
     }u}(j# (d9fdc9b3f5f9c42e86d6718f2c773ea989bb8373j qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j X  @@ -20,7 +20,7 @@
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -68,7 +68,8 @@ public WitnessedTransactionBuilder(long startTimestamp) {
         }
 
         public WitnessedTransactionBuilder read(Integer row, Integer column, Optional<Integer> valueRead) {
-            actions.add(WitnessedReadTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), valueRead));
+            actions.add(WitnessedSingleCellReadTransactionAction.of(
+                    table, ImmutableWorkloadCell.of(row, column), valueRead));
             return this;
         }
 u}(j# (486aadb53f82079807d09238cd241d1d0497c7fcj eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j X  @@ -30,8 +30,8 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -95,7 +95,7 @@ public void workflowRunsReadWritesDeletes() {
                 .flatMap(Collection::stream)
                 .collect(Collectors.toList());
         assertThat(actions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
-        assertThat(actions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedSingleCellReadTransactionAction.class::isInstance);
         assertThat(actions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
         assertThat(actions).anyMatch(WitnessedRowColumnRangeReadTransactionAction.class::isInstance);
     }u}(j# (02cc3cea18cbb2337e3beb22a5f3250c9b157afdj xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j X  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -98,7 +98,7 @@ public void targetCellIsReadModifiedAndDeleted() {
                 .map(WitnessedTransaction::actions)
                 .flatMap(Collection::stream)
                 .collect(Collectors.toList());
-        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedSingleCellReadTransactionAction.class::isInstance);
         assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
         assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
     }
@@ -108,7 +108,8 @@ public void readTransactionsDontDoWrites() {
         WorkflowHistory workflowHistory = workflow.run();
 
         Set<WitnessedTransaction> witnessedTransactionsWithReads = workflowHistory.history().stream()
-                .filter(txn -> txn.actions().stream().anyMatch(WitnessedReadTransactionAction.class::isInstance))
+                .filter(txn ->
+                        txn.actions().stream().anyMatch(WitnessedSingleCellReadTransactionAction.class::isInstance))
                 .collect(Collectors.toSet());
 
         Set<WitnessedTransaction> witnessedTransactionsWithWritesOrDeletes = workflowHistory.history().stream()u}(j# (4268ff21ba88dc967e7e3835d86ccbea101b35e2j matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j X_  @@ -28,7 +28,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -96,7 +96,7 @@ public void targetCellIsReadModifiedAndDeleted() {
                 .map(WitnessedTransaction::actions)
                 .flatMap(Collection::stream)
                 .collect(Collectors.toList());
-        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedSingleCellReadTransactionAction.class::isInstance);
         assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
         assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
     }u}(j# (d82ebc82d525ca3f31eae702e98652e22d5b8db9j patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javaj modifiedj Kj Kj K,j https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j X  @@ -29,10 +29,10 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.common.concurrent.PTExecutors;
@@ -69,40 +69,40 @@ public void shouldNotWriteToFirstCellOnOddIndices() {
     public void createsReadsThenMutationsThenReads() {
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(0, TABLE_NAME))
                 .containsExactly(
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
                         WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
                         DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(1, TABLE_NAME))
                 .containsExactly(
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
                         DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
                         WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, 1),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
     }
 
     @Test
     public void writesValueCorrespondingToTaskIndexInRelevantCell() {
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(31415926, TABLE_NAME))
                 .containsExactly(
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
                         WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 31415926),
                         DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(6021023, TABLE_NAME))
                 .containsExactly(
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
                         DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
                         WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, 6021023),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
     }
 
     @Test
@@ -121,15 +121,15 @@ public void workflowHistoryPreservesStoreAndCapturesWitnessedActions() {
                 .isInstanceOf(ReadOnlyTransactionStore.class);
         assertThat(Iterables.getOnlyElement(history.history()).actions())
                 .containsExactly(
-                        WitnessedReadTransactionAction.of(
+                        WitnessedSingleCellReadTransactionAction.of(
                                 TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.empty()),
-                        WitnessedReadTransactionAction.of(
+                        WitnessedSingleCellReadTransactionAction.of(
                                 TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
                         WitnessedDeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
-                        WitnessedReadTransactionAction.of(
+                        WitnessedSingleCellReadTransactionAction.of(
                                 TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.of(0)),
-                        WitnessedReadTransactionAction.of(
+                        WitnessedSingleCellReadTransactionAction.of(
                                 TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()));
     }
 }u}(j# (9b8703c2f14476d6da18077afd80bae7f16ec89bj latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j X  @@ -35,7 +35,7 @@
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableFullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -110,7 +110,7 @@ public void subsequentTransactionsWriteThenReadThenDelete() {
         for (int index = 1; index < ITERATION_COUNT; index++) {
             assertThat(witnessedTransactions.get(index).actions()).hasSize(7).satisfies(actions -> {
                 assertThat(actions.subList(0, 2)).allMatch(WitnessedWriteTransactionAction.class::isInstance);
-                assertThat(actions.subList(2, 5)).allMatch(WitnessedReadTransactionAction.class::isInstance);
+                assertThat(actions.subList(2, 5)).allMatch(WitnessedSingleCellReadTransactionAction.class::isInstance);
                 assertThat(actions.subList(5, 7)).allMatch(WitnessedDeleteTransactionAction.class::isInstance);
             });
         }
@@ -195,7 +195,7 @@ public void invariantReportsViolationsFromTransactionHistory() {
 
     @Test
     public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
-        WitnessedReadTransactionAction readWitness = WitnessedReadTransactionAction.of(
+        WitnessedSingleCellReadTransactionAction readWitness = WitnessedSingleCellReadTransactionAction.of(
                 TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
         WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
         assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
@@ -206,11 +206,8 @@ public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
 
     @Test
     public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCorrespondingPrimaryRow() {
-        List<WitnessedTransactionAction> actions = ImmutableList.of(
-                WitnessedReadTransactionAction.of(
-                        TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()),
-                WitnessedReadTransactionAction.of(
-                        TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
+        List<WitnessedTransactionAction> actions = ImmutableList.of(WitnessedSingleCellReadTransactionAction.of(
+                TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()));
         WorkflowHistory history = getWorkflowHistory(actions);
         assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
                 .isInstanceOf(SafeIllegalStateException.class)
@@ -276,11 +273,11 @@ private ImmutableWorkflowHistory getWorkflowHistory(List<WitnessedTransactionAct
     private static List<WitnessedTransactionAction> getReadWitnessesForSingleTransaction(
             int columnIndex, Optional<Integer> summaryValue, Optional<Integer> primaryValue) {
         return ImmutableList.of(
-                WitnessedReadTransactionAction.of(
+                WitnessedSingleCellReadTransactionAction.of(
                         TABLE_NAME,
                         ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, columnIndex),
                         summaryValue),
-                WitnessedReadTransactionAction.of(
+                WitnessedSingleCellReadTransactionAction.of(
                         TABLE_NAME,
                         ImmutableWorkloadCell.of(columnIndex, TransientRowsWorkflows.COLUMN),
                         primaryValue));
@@ -309,12 +306,13 @@ private static TableAndWorkloadCell getPrimaryCellForSummaryCell(TableAndWorkloa
 
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(
             WitnessedTransactionAction action) {
-        if (action instanceof WitnessedReadTransactionAction) {
-            WitnessedReadTransactionAction readAction = (WitnessedReadTransactionAction) action;
+        if (action instanceof WitnessedSingleCellReadTransactionAction) {
+            WitnessedSingleCellReadTransactionAction readAction = (WitnessedSingleCellReadTransactionAction) action;
             if (readAction.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
-                return WitnessedReadTransactionAction.of(readAction.table(), readAction.cell(), Optional.empty());
+                return WitnessedSingleCellReadTransactionAction.of(
+                        readAction.table(), readAction.cell(), Optional.empty());
             } else {
-                return WitnessedReadTransactionAction.of(
+                return WitnessedSingleCellReadTransactionAction.of(
                         readAction.table(), readAction.cell(), Optional.of(TransientRowsWorkflows.VALUE));
             }
         } else {u}(j# (d30b13993fc42a48a859cf8136f38e2dbf4a1347j hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/ce5995e9c0f0098e6cff531d1e687c682e7052f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.java?ref=ce5995e9c0f0098e6cff531d1e687c682e7052f3j X  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
@@ -84,10 +84,10 @@ public void ringWorkflowContainsInitialReadsForRing() {
         List<WitnessedTransactionAction> actions =
                 Iterables.getOnlyElement(history.history()).actions();
 
-        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.ringSize())
+        List<WitnessedSingleCellReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.ringSize())
                 .boxed()
-                .map(index ->
-                        WitnessedReadTransactionAction.of(TABLE_NAME, RingWorkflows.cell(index), Optional.empty()))
+                .map(index -> WitnessedSingleCellReadTransactionAction.of(
+                        TABLE_NAME, RingWorkflows.cell(index), Optional.empty()))
                 .collect(Collectors.toList());
         assertThat(actions).containsAll(initialReadActions);
     }ueu(6a69665bd9771950fafd8f5f28001ca15ac96cbc}(sha(6a69665bd9771950fafd8f5f28001ca15ac96cbcnode_idEC_kwDOAjP5fdoAKDZhNjk2NjViZDk3NzE5NTBmYWZkOGY1ZjI4MDAxY2ExNWFjOTZjYmMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-15T09:01:35Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-06-15T09:01:35Zumessage
puff piecetree}(j} (9fe7b890d359c05d1931ac7d4ffb9e688afdb258url`https://api.github.com/repos/palantir/atlasdb/git/trees/9fe7b890d359c05d1931ac7d4ffb9e688afdb258uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6a69665bd9771950fafd8f5f28001ca15ac96cbc
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSK028ACgkQTLdFKain
zjxmlAgA2padJNLHT/LzK4ZPVQFh3EyWjcdsACYpNdEtpxhKIqYNeJt93hQoyatn
P6hhhlF2+qLhmCFcwlqMgD7zfm/tLaMjUWWzR3TXR5MTjx3FeeVZq1VzW0w08KiT
1P59KO/d9dFnQGliVdz/NmIa3EP+24wa2No6VsDKsRD6TNSVe+Hs5I+kOalEBpQm
4K1yRjahWqzb03bqihEhfrp7flWATcQ09KRpEUD9eMnnF0RcKUb+J22qoYMO57cA
E66YF1FecXpUMZVmq04HpLkS/RU+HyU/qS542laCakTcppmHXneKFV7PJ6eOyfqJ
/XJrBJLT3TI0RVnhOH/ZFoTqxuOOtQ==
=2+gp
-----END PGP SIGNATURE-----payloadtree 9fe7b890d359c05d1931ac7d4ffb9e688afdb258
parent 9d1a7950cb1cc87060204ddd3985db83bed18cf2
author Jeremy Kong <jkong@palantir.com> 1686819695 +0800
committer Jeremy Kong <jkong@palantir.com> 1686819695 +0800

puff piece
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/6a69665bd9771950fafd8f5f28001ca15ac96cbchtml_urlShttps://github.com/palantir/atlasdb/commit/6a69665bd9771950fafd8f5f28001ca15ac96cbccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6a69665bd9771950fafd8f5f28001ca15ac96cbc/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j} (9d1a7950cb1cc87060204ddd3985db83bed18cf2j ^https://api.github.com/repos/palantir/atlasdb/commits/9d1a7950cb1cc87060204ddd3985db83bed18cf2j Shttps://github.com/palantir/atlasdb/commit/9d1a7950cb1cc87060204ddd3985db83bed18cf2uastats}(totalK	additionsK	deletionsK
ufiles]}(j} (8b353c6c92b47ad8d3f6253a6f991aff64b1a1eafilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj Kj K
changesKblob_urlhttps://github.com/palantir/atlasdb/blob/6a69665bd9771950fafd8f5f28001ca15ac96cbc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6a69665bd9771950fafd8f5f28001ca15ac96cbc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=6a69665bd9771950fafd8f5f28001ca15ac96cbcpatchX  @@ -278,7 +278,7 @@ private enum State {
 
     /**
      * @param immutableTimestamp If we find a row written before the immutableTimestamp we don't need to grab a read
-     *                           lock for it because we know that no writers exist.
+     * lock for it because we know that no writers exist.
      * @param preCommitCondition This check must pass for this transaction to commit.
      */
     /* package */ SnapshotTransaction(
@@ -578,7 +578,7 @@ private Iterator<Map.Entry<Cell, byte[]>> getSortedColumnsLocalWrites(
     /**
      * Provides comparator to sort cells by columns (sorted lexicographically on byte ordering) and then in the order
      * of input rows.
-     * */
+     */
     @VisibleForTesting
     static Comparator<Cell> columnOrderThenPreserveInputRowOrder(Iterable<byte[]> rows) {
         return Cell.COLUMN_COMPARATOR.thenComparing(
@@ -599,7 +599,7 @@ protected static <V> Iterator<Map.Entry<Cell, V>> mergeByComparator(
      * possibility of needing a second batch of fetching.
      * If the batch hint is large, split batch size across rows to avoid loading too much data, while accepting that
      * second fetches may be needed to get everyone their data.
-     * */
+     */
     private static int getPerRowBatchSize(BatchColumnRangeSelection columnRangeSelection, int distinctRowCount) {
         return Math.max(
                 Math.min(MIN_BATCH_SIZE_FOR_DISTRIBUTED_LOAD, columnRangeSelection.getBatchHint()),
@@ -776,7 +776,7 @@ protected Map.Entry<byte[], RowColumnRangeIterator> computeNext() {
                     protected Map.Entry<Cell, Value> computeNext() {
                         if (!peekableRawResults.hasNext()
                                 || !Arrays.equals(
-                                        peekableRawResults.peek().getKey().getRowName(), nextRowName)) {
+                                peekableRawResults.peek().getKey().getRowName(), nextRowName)) {
                             return endOfData();
                         }
                         return peekableRawResults.next();
@@ -1153,8 +1153,13 @@ private boolean isValidationNecessaryOnReads(TableReference tableRef) {
     }
 
     private boolean requiresImmutableTimestampLocking(TableReference tableRef) {
-        return sweepStrategyManager.get(tableRef).mustCheckImmutableLockAfterReads()
-                || transactionConfig.get().lockImmutableTsOnReadOnlyTransactions();
+        try {
+            return sweepStrategyManager.get(tableRef).mustCheckImmutableLockAfterReads()
+                    || transactionConfig.get().lockImmutableTsOnReadOnlyTransactions();
+        } catch (Exception e) {
+            // Hack because there is a RACE CONDITION (!) in the workload server
+            return true;
+        }
     }
 
     private List<Map.Entry<Cell, byte[]>> getPostFilteredWithLocalWrites(
@@ -1168,7 +1173,7 @@ private List<Map.Entry<Cell, byte[]>> getPostFilteredWithLocalWrites(
                 postFiltered.entrySet(),
                 Predicates.compose(Predicates.in(prePostFilterCells.keySet()), MapEntries.getKeyFunction()));
         Collection<Map.Entry<Cell, byte[]>> localWritesInRange = getLocalWritesForRange(
-                        tableRef, rangeRequest.getStartInclusive(), endRowExclusive, rangeRequest.getColumnNames())
+                tableRef, rangeRequest.getStartInclusive(), endRowExclusive, rangeRequest.getColumnNames())
                 .entrySet();
         return mergeInLocalWrites(
                 tableRef, postFilteredCells.iterator(), localWritesInRange.iterator(), rangeRequest.isReverse());
@@ -1205,9 +1210,9 @@ private <K extends Exception> boolean getBatchingVisitableFromIterator(
             int preFilterBatchSize)
             throws K {
         try (ClosableIterator<RowResult<byte[]>> postFilterIterator =
-                postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
+                     postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
             Iterator<RowResult<byte[]>> localWritesInRange = Cells.createRowView(getLocalWritesForRange(
-                            tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
+                    tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
                     .entrySet());
             Iterator<RowResult<byte[]>> mergeIterators =
                     mergeInLocalWritesRows(postFilterIterator, localWritesInRange, range.isReverse(), tableRef);
@@ -1324,7 +1329,7 @@ private ConcurrentNavigableMap<Cell, byte[]> getLocalWrites(TableReference table
 
     /**
      * This includes deleted writes as zero length byte arrays, be sure to strip them out.
-     *
+     * <p>
      * For the selectedColumns parameter, empty set means all columns. This is unfortunate, but follows the semantics of
      * {@link RangeRequest}.
      */
@@ -1833,7 +1838,7 @@ private boolean isStillRunning() {
 
     /**
      * Returns true iff the transaction is known to have successfully committed.
-     *
+     * <p>
      * Be careful when using this method! A transaction that the client thinks has failed could actually have
      * committed as far as the key-value service is concerned.
      */
@@ -2060,7 +2065,7 @@ private void timedAndTraced(String timerName, Runnable runnable) {
 
     private <T> T timedAndTraced(String timerName, Supplier<T> supplier) {
         try (Timer.Context timer = getTimer(timerName).time();
-                CloseableTracer tracer = CloseableTracer.startSpan(timerName)) {
+             CloseableTracer tracer = CloseableTracer.startSpan(timerName)) {
             return supplier.get();
         }
     }
@@ -2494,7 +2499,7 @@ private Map<Long, Long> getCommitTimestampsSync(
     /**
      * This will attempt to put the commitTimestamp into the DB.
      *
-     * @throws TransactionLockTimeoutException  If our locks timed out while trying to commit.
+     * @throws TransactionLockTimeoutException If our locks timed out while trying to commit.
      * @throws TransactionCommitFailedException failed when committing in a way that isn't retriable
      */
     private void putCommitTimestamp(long commitTimestamp, LockToken locksToken, TransactionService transactionService)uau(654eab9558b84279d8b4ca0dc105a59179f7feb1}(sha(654eab9558b84279d8b4ca0dc105a59179f7feb1node_idEC_kwDOAjP5fdoAKDY1NGVhYjk1NThiODQyNzlkOGI0Y2EwZGMxMDVhNTkxNzlmN2ZlYjEcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-24T14:46:06Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj  2023-04-24T14:46:06Zumessage	see now 2tree}(j (87a80fea6399b833a366cebe5a7ba414c4d32e08url`https://api.github.com/repos/palantir/atlasdb/git/trees/87a80fea6399b833a366cebe5a7ba414c4d32e08uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/654eab9558b84279d8b4ca0dc105a59179f7feb1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRGli4ACgkQPlMHVIT1
yhrRMwf+KhlVbH2TCcoxQG8ZyKTCdrrHKZxTF1fSvuhn45mV0Itt+RcPipy9Tnj8
vUfiR327Ts8gLT2bGa5MBpyhYNYXRgZmEqqjeuT2bDOLqHMYIjLiwhExMmA+LCar
eK/Qxya45iicsFw42d2fLOZ6y2DM7vSyEgdtJW1q/qzdJRpNqEQDMSr8mropGssZ
Vrb+yPx0cVij0iBOBkRFsgZE1d/bcMiMSnIVDrMxTtkVV2gKdv0SUi5u5HtXMHo9
Lfr2eFTlClEJO7DIpgBeIIzRuVrHIsZMSbo6ooYyFVun2KfFgmS7Pw05VJ+37/m0
+7MH554/tDrmbX7SZi8ya+j/ydKEdw==
=PtMu
-----END PGP SIGNATURE-----payloadtree 87a80fea6399b833a366cebe5a7ba414c4d32e08
parent fac744deb5517a2928c669bc63347b3d6bad70ac
author Ahmed Alouane <aalouane@palantir.com> 1682347566 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682347566 +0100

see now 2
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/654eab9558b84279d8b4ca0dc105a59179f7feb1html_urlShttps://github.com/palantir/atlasdb/commit/654eab9558b84279d8b4ca0dc105a59179f7feb1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/654eab9558b84279d8b4ca0dc105a59179f7feb1/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j! Jj MDQ6VXNlcjMwOTAzNzM2j# 4https://avatars.githubusercontent.com/u/30903736?v=4j% h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j( -https://api.github.com/users/ergo14/followersj* :https://api.github.com/users/ergo14/following{/other_user}j, 3https://api.github.com/users/ergo14/gists{/gist_id}j. :https://api.github.com/users/ergo14/starred{/owner}{/repo}j0 1https://api.github.com/users/ergo14/subscriptionsj2 (https://api.github.com/users/ergo14/orgsj4 )https://api.github.com/users/ergo14/reposj6 4https://api.github.com/users/ergo14/events{/privacy}j8 3https://api.github.com/users/ergo14/received_eventsj: Userj< uparents]}(j (fac744deb5517a2928c669bc63347b3d6bad70acj ^https://api.github.com/repos/palantir/atlasdb/commits/fac744deb5517a2928c669bc63347b3d6bad70acj Shttps://github.com/palantir/atlasdb/commit/fac744deb5517a2928c669bc63347b3d6bad70acuastats}(totalK	additionsK	deletionsKufiles](}(j (22a4f0710d90bd46fa2be3c19a0ad87de636a302filename.circleci/config.ymlstatusmodifiedjV KjW KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/654eab9558b84279d8b4ca0dc105a59179f7feb1/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/654eab9558b84279d8b4ca0dc105a59179f7feb1/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=654eab9558b84279d8b4ca0dc105a59179f7feb1patchXh  @@ -32,7 +32,7 @@ jobs:
           paths: [ . ]
 
   test:
-    parallelism: 15
+    parallelism: 18
     machine:
       image: ubuntu-2004:202111-02
     resource_class: xlarge
@@ -83,7 +83,6 @@ jobs:
       - persist_to_workspace:
           root: .
           paths: [ . ]
-      - run: circleci tests glob "**/**Test.java"
 
   trial-publish:
     docker:u}(j (6aeca6f9b9a2b2a1ef34965941bed20e27e3aa66j\ %scripts/circle-ci/run-circle-tests.shj^ modifiedjV KjW K j` Kja {https://github.com/palantir/atlasdb/blob/654eab9558b84279d8b4ca0dc105a59179f7feb1/scripts%2Fcircle-ci%2Frun-circle-tests.shjc zhttps://github.com/palantir/atlasdb/raw/654eab9558b84279d8b4ca0dc105a59179f7feb1/scripts%2Fcircle-ci%2Frun-circle-tests.shje https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=654eab9558b84279d8b4ca0dc105a59179f7feb1jg @@ -2,6 +2,11 @@
 
 set -x
 
+echo $CIRCLE_BRANCH
+echo $CIRCLE_JOB
+echo $CIRCLE_PR_REPONAME
+echo
+
 BASE_GRADLE_ARGS="--profile --continue"
 
 function checkDocsBuild {ueu(e8d912e701c3e680b4dba24c2fd1be8f419c1673}(sha(e8d912e701c3e680b4dba24c2fd1be8f419c1673node_idEC_kwDOAjP5fdoAKGU4ZDkxMmU3MDFjM2U2ODBiNGRiYTI0YzJmZDFiZThmNDE5YzE2NzMcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-03-31T01:32:07Zu	committer}(j{ 
Ahmed Alouanej} aalouane@palantir.comj 2023-03-31T01:32:07Zumessage>Merge branch 'aagan' of github.com:palantir/atlasdb into aagantree}(js (315993a5beabb76b69b529109a8ebda27df96efdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/315993a5beabb76b69b529109a8ebda27df96efduj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e8d912e701c3e680b4dba24c2fd1be8f419c1673
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQmOBkACgkQPlMHVIT1
yhpEJwf+NTC0FJovC444XamGtAGRsgC74SIRk2gDDlzqxEJf7DMweiP8Sg7iIVpG
yWdi9MrWa5acIFFayJFFT6FABd2Yx8H9S+Qb5qTExy7aTpUoCjsipcDEIzT8dwXK
NhxPYe/oL8tt7fLctMYoAdfYOtYtJZa2obyDVIWo6FA7jMifJBeio5+n4tDhw5Sy
eBBEzuYy6t5a4PKh+AfzV5gfZKUYdL/Hvx/q57i8SxcAxIGQxBpOjO6KCFfcdC3n
zIkLYd4munJSrbjUCB2105i7THdvYsPi8fNgNo+GZneCwcDiblYgTP7/b5FQ86so
Hx3JT2VsolqiQ3kV50Glj2/Vfhd2Gw==
=MokF
-----END PGP SIGNATURE-----payloadXM  tree 315993a5beabb76b69b529109a8ebda27df96efd
parent 316464ca48d3f803e359bf24760fd9695cced55d
parent c6888a628d89db6f83115d0be0a705f5745ed7ff
author Ahmed Alouane <aalouane@palantir.com> 1680226327 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1680226327 +0100

Merge branch 'aagan' of github.com:palantir/atlasdb into aagan
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/e8d912e701c3e680b4dba24c2fd1be8f419c1673html_urlShttps://github.com/palantir/atlasdb/commit/e8d912e701c3e680b4dba24c2fd1be8f419c1673comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e8d912e701c3e680b4dba24c2fd1be8f419c1673/commentsjy }(loginergo14idJju MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jju MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents](}(js (316464ca48d3f803e359bf24760fd9695cced55dj ^https://api.github.com/repos/palantir/atlasdb/commits/316464ca48d3f803e359bf24760fd9695cced55dj Shttps://github.com/palantir/atlasdb/commit/316464ca48d3f803e359bf24760fd9695cced55du}(js (c6888a628d89db6f83115d0be0a705f5745ed7ffj ^https://api.github.com/repos/palantir/atlasdb/commits/c6888a628d89db6f83115d0be0a705f5745ed7ffj Shttps://github.com/palantir/atlasdb/commit/c6888a628d89db6f83115d0be0a705f5745ed7ffuestats}(totalK 	additionsK 	deletionsK ufiles]u(8af2f03888946f9620f0d6fdb2a54e90ed7cb912}(sha(8af2f03888946f9620f0d6fdb2a54e90ed7cb912node_idEC_kwDOAjP5fdoAKDhhZjJmMDM4ODg5NDZmOTYyMGYwZDZmZGIyYTU0ZTkwZWQ3Y2I5MTIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-07-07T09:17:26Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-07-10T12:20:26Zumessageclean uptree}(j (25cc66db339d2e919b46f6873a934e5769ac415furl`https://api.github.com/repos/palantir/atlasdb/git/trees/25cc66db339d2e919b46f6873a934e5769ac415fuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8af2f03888946f9620f0d6fdb2a54e90ed7cb912
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSr94oACgkQmPPOpKR4
XS1K4Qf9H1iiBgUsSQwLz1SY6eciD+FmPYGDzestOYB+zVwXmnMP4QQl+cb5+nW9
hJKWq+BMr0AlMkjGZWK7GGM+KD2I0z0MBBpUVrqam5Cj32EDGaWibYf+9o3w2Sv2
2Auk3RDTxXr2wO8605G0aVDEd5h3LwuhRUCcu6YISMTsN4oTiZ01bJskeRghhtJ9
zw5MN+CHn+HcVawr0xPc9/C7UE0G0ucyJiM6vMgIY/WCgj32O5rnrPN8q2QBLAIH
qZrCcUf0GKtvwGAuzngmnkmToHx6wDeYQFtpURBQYAIAXRK/KdH1NPX0Hp1kQj9S
ZNd3ARDmfJI4y06KfSn0JeVULaLU8A==
=tDja
-----END PGP SIGNATURE-----payloadtree 25cc66db339d2e919b46f6873a934e5769ac415f
parent fe143901cd8fc5e7fc61dfe143bfc1b7417af093
author Sam Kramer <skramer@palantir.com> 1688721446 +0100
committer Sam Kramer <skramer@palantir.com> 1688991626 +0100

clean up
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/8af2f03888946f9620f0d6fdb2a54e90ed7cb912html_urlShttps://github.com/palantir/atlasdb/commit/8af2f03888946f9620f0d6fdb2a54e90ed7cb912comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8af2f03888946f9620f0d6fdb2a54e90ed7cb912/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j
 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj! 8https://api.github.com/users/Sam-Kramer/events{/privacy}j# 7https://api.github.com/users/Sam-Kramer/received_eventsj% Userj' uparents]}(j (fe143901cd8fc5e7fc61dfe143bfc1b7417af093j ^https://api.github.com/repos/palantir/atlasdb/commits/fe143901cd8fc5e7fc61dfe143bfc1b7417af093j Shttps://github.com/palantir/atlasdb/commit/fe143901cd8fc5e7fc61dfe143bfc1b7417af093uastats}(totalK	additionsK
	deletionsK	ufiles](}(j (43f7db29b1f11285d4780b675a722642fd57ab8cfilenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedjA KjB K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/8af2f03888946f9620f0d6fdb2a54e90ed7cb912/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/8af2f03888946f9620f0d6fdb2a54e90ed7cb912/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=8af2f03888946f9620f0d6fdb2a54e90ed7cb912patchX  @@ -126,6 +126,7 @@ private void scheduleBackgroundJobs(Environment environment) {
     }
 
     private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {
+        // This is a single threaded executor; this is intentional, so that we only run one workflow at a time.
         ExecutorService antithesisWorkflowRunnerExecutorService = environment
                 .lifecycle()
                 .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())up     }(j (925f21e6a31c29edd1886e242df8560a69dc50bbjG zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflowConfiguration.javajI modifiedjA KjB KjK KjL https://github.com/palantir/atlasdb/blob/8af2f03888946f9620f0d6fdb2a54e90ed7cb912/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowConfiguration.javajN https://github.com/palantir/atlasdb/raw/8af2f03888946f9620f0d6fdb2a54e90ed7cb912/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowConfiguration.javajP https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowConfiguration.java?ref=8af2f03888946f9620f0d6fdb2a54e90ed7cb912jR Xp  @@ -32,7 +32,7 @@ public interface WriteOnceDeleteOnceWorkflowConfiguration extends WorkflowConfig
     TableConfiguration tableConfiguration();
 
     /**
-     * The maximum value for the row key.
+     * The maximum value (exclusive) for the row key.
      * This is half the iteration count, so we ideally perform two actions per cell.
      */
     @Value.Derivedu}(j (a850b6cc04da7a2a476c96ad9b2bb3f53843a1a2jG natlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflows.javajI modifiedjA KjB KjK K
jL https://github.com/palantir/atlasdb/blob/8af2f03888946f9620f0d6fdb2a54e90ed7cb912/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflows.javajN https://github.com/palantir/atlasdb/raw/8af2f03888946f9620f0d6fdb2a54e90ed7cb912/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflows.javajP https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflows.java?ref=8af2f03888946f9620f0d6fdb2a54e90ed7cb912jR X  @@ -31,9 +31,9 @@
 
 /**
  * The idea of this class is to catch bugs around tombstone drops, by having a
- * workflow which _mostly_ writes once then deletes once for a given cell. Probability and randomness are used to
- * enforce this behaviour, thus it's possible to have a write without a delete, or visa versa; some cells may
- * randomly be written or deleted multiple times as well.
+ * workflow which _mostly_ writes once first and then on deletes once for a given cell.
+ * Probability and randomness are used to enforce this behaviour, thus it's possible to have a write without a
+ * delete, or visa versa; some cells may randomly be written or deleted multiple times as well.
  */
 public final class WriteOnceDeleteOnceWorkflows {
 
@@ -78,7 +78,7 @@ public WriteOnceDeleteOnceWorkflow(
             this.configuration = configuration;
         }
 
-        public Optional<WitnessedTransaction> run(InteractiveTransactionStore store, int taskIndex) {
+        public Optional<WitnessedTransaction> run(InteractiveTransactionStore store, Integer taskIndex) {
             configuration.transactionRateLimiter().acquire();
             return store.readWrite(txn -> {
                 Integer rowKey = rowKeyGenerator.apply(configuration.maxKey());
@@ -94,7 +94,7 @@ public Optional<WitnessedTransaction> run(InteractiveTransactionStore store, int
     }
 
     @VisibleForTesting
-    static Double calculateChanceForDelete(int taskIndex, int iterationCount) {
+    static Double calculateChanceForDelete(Integer taskIndex, Integer iterationCount) {
         // Index generation is [inclusive, exclusive], so we need to add 1 to the task index.
         return (taskIndex + 1.0) / iterationCount;
     }u}(j (d3e04df18f75951b9f97593a2ab7325df69f7bdejG qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflowTest.javajI modifiedjA KjB KjK KjL https://github.com/palantir/atlasdb/blob/8af2f03888946f9620f0d6fdb2a54e90ed7cb912/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javajN https://github.com/palantir/atlasdb/raw/8af2f03888946f9620f0d6fdb2a54e90ed7cb912/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javajP https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.java?ref=8af2f03888946f9620f0d6fdb2a54e90ed7cb912jR X  @@ -108,19 +108,19 @@ public void writesThenDeletes() {
         assertDeleteTransaction(transactions.get(3), 1);
     }
 
-    private void assertWriteTransaction(WitnessedTransaction transaction, int key) {
+    private static void assertWriteTransaction(WitnessedTransaction transaction, int key) {
         WitnessedWriteTransactionAction action =
                 getTransactionAction(transaction, WitnessedWriteTransactionAction.class);
         assertThat(action.cell().key()).isEqualTo(key);
     }
 
-    private void assertDeleteTransaction(WitnessedTransaction transaction, int key) {
+    private static void assertDeleteTransaction(WitnessedTransaction transaction, int key) {
         WitnessedDeleteTransactionAction action =
                 getTransactionAction(transaction, WitnessedDeleteTransactionAction.class);
         assertThat(action.cell().key()).isEqualTo(key);
     }
 
-    private <T> T getTransactionAction(WitnessedTransaction transaction, Class<T> clazz) {
+    private static <T> T getTransactionAction(WitnessedTransaction transaction, Class<T> clazz) {
         WitnessedTransactionAction action = Iterables.getOnlyElement(transaction.actions());
         assertThat(action).isInstanceOf(clazz);
         return (T) action;ueu(e17a031e52fd4ae831f6538c50f385895cd46d72}(sha(e17a031e52fd4ae831f6538c50f385895cd46d72node_idEC_kwDOAjP5fdoAKGUxN2EwMzFlNTJmZDRhZTgzMWY2NTM4YzUwZjM4NTg5NWNkNDZkNzIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-18T17:09:42Zu	committer}(jv Jeremy Kongjx jkong@palantir.comjz 2023-04-18T17:09:42Zumessageshutdowntree}(jn (bf810dd00daead6c8966202991b76078066a99aeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/bf810dd00daead6c8966202991b76078066a99aeuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e17a031e52fd4ae831f6538c50f385895cd46d72
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ+ztYACgkQTLdFKain
zjzmYgf+Nb3dM/wgTtQwqsMpIwMTGu/Wz4q6jWxO+qlZSEQUVMjTlnH+ACvfD/uD
72lJbz2d75zdAJOAMoP8iRxiFxdlKXOU+Yb93mdifG+KcPsegro/KC8sGqwirWvQ
VSb4UQRexgStBvrFmanMc0Goby70ZpOjtpLcnrFROUWzTlSJPMWP+VNeXicYeMAI
/1ObyD+AIUBlXXcbQVDnjMxgaFKC1NvbRGEOcYQTF+Yatqy4bUqAYYmSIRwvG2tO
3d/uw08FACvVDFszIC8aq7KUgmnkPF3oj0y7Q83Bl5VJqDNFw1tFuOCVflSuXGi6
fDiCYMVQXI/8Wa65SNwwhE3QBL12XA==
=JXpx
-----END PGP SIGNATURE-----payloadtree bf810dd00daead6c8966202991b76078066a99ae
parent be71af109201bb9c425e71182138358c0d27ebec
author Jeremy Kong <jkong@palantir.com> 1681837782 +0100
committer Jeremy Kong <jkong@palantir.com> 1681837782 +0100

shutdown
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/e17a031e52fd4ae831f6538c50f385895cd46d72html_urlShttps://github.com/palantir/atlasdb/commit/e17a031e52fd4ae831f6538c50f385895cd46d72comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e17a031e52fd4ae831f6538c50f385895cd46d72/commentsjt }(login
jeremyk-91idJZ jp MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj| }(j 
jeremyk-91j JZ jp MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(jn (be71af109201bb9c425e71182138358c0d27ebecj ^https://api.github.com/repos/palantir/atlasdb/commits/be71af109201bb9c425e71182138358c0d27ebecj Shttps://github.com/palantir/atlasdb/commit/be71af109201bb9c425e71182138358c0d27ebecuastats}(totalK	additionsK	deletionsKufiles]}(jn (c4ba7fdbd085abed646c624d50281651c4f96766filenameuatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunnerTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e17a031e52fd4ae831f6538c50f385895cd46d72/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e17a031e52fd4ae831f6538c50f385895cd46d72/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.java?ref=e17a031e52fd4ae831f6538c50f385895cd46d72patchX  @@ -115,17 +115,21 @@ public void runExecutesMultipleWorkflowsAndWaitsForAllToFinishBeforeInvokingInva
                 .report(any());
 
         ExecutorService backgroundExecutor = PTExecutors.newSingleThreadExecutor();
-        Future<Void> validation = backgroundExecutor.submit(() -> {
-            WorkflowValidator<Workflow> slowWorkflowValidator =
-                    WorkflowValidator.of(slowWorkflow, invariantReporterOne);
-            new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(slowWorkflowValidator, workflowValidator);
-            return null;
-        });
-
-        assertThat(validation).as("the slow workflow was not actually slow").isNotDone();
-
-        slowWorkflowCanMakeProgress.countDown();
-        Futures.getUnchecked(validation);
+        try {
+            Future<Void> validation = backgroundExecutor.submit(() -> {
+                WorkflowValidator<Workflow> slowWorkflowValidator =
+                        WorkflowValidator.of(slowWorkflow, invariantReporterOne);
+                new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(slowWorkflowValidator, workflowValidator);
+                return null;
+            });
+
+            assertThat(validation).as("the slow workflow was not actually slow").isNotDone();
+
+            slowWorkflowCanMakeProgress.countDown();
+            Futures.getUnchecked(validation);
+        } finally {
+            backgroundExecutor.shutdown();
+        }
 
         verify(workflow, times(1)).run();
         verify(slowWorkflow, times(1)).run();uau(90248fca8cf991f1b86dc2443f8a3c62e2487f3e}(sha(90248fca8cf991f1b86dc2443f8a3c62e2487f3enode_idEC_kwDOAjP5fdoAKDkwMjQ4ZmNhOGNmOTkxZjFiODZkYzI0NDNmOGEzYzYyZTI0ODdmM2Ucommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-25T14:05:41Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-04-25T14:05:41Zumessage<spin off atlasdb impl shared tests into a separate containertree}(j (f5091041cd626a3d51f678a1b4ece4fcd83bf581url`https://api.github.com/repos/palantir/atlasdb/git/trees/f5091041cd626a3d51f678a1b4ece4fcd83bf581uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/90248fca8cf991f1b86dc2443f8a3c62e2487f3e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRH3jUACgkQPlMHVIT1
yhotfQf9ElNthYXg3F295o/caQBoSJiHZOCiTlzWKl5x2C/BTPAd6ANvEk2ljaYW
TKdGcv1qb7xmGg1dJqeZpmwC1f9dzpZHgHO+k9l65EF7k0Keq+R/WtpM+kzZ/r1K
VVuFs7P5I5LV/2PVSgT9C53D1SPQyRL/D8zxTj+lsu38hi53qnGsRq0JaRyxFVAB
ggWs09oCTi3B3gkjlDrz6xeV5g+q9wRNQrN0UELZxPsosds6sAPi9lK+Xkkg5awn
3Xt2u6vur2Yxw0N9IuzbDSQEuMuIZOtjG0dQFvqTf2nu6Nd99Rp3sMJdqkEXVOfA
v56uVOukGs5rmtlXbXy+IP7rjCrtjA==
=HHpx
-----END PGP SIGNATURE-----payloadX  tree f5091041cd626a3d51f678a1b4ece4fcd83bf581
parent 0e042c5db32fd526cc9e1506788bee2cda4f3a43
author Ahmed Alouane <aalouane@palantir.com> 1682431541 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682431541 +0100

spin off atlasdb impl shared tests into a separate container
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/90248fca8cf991f1b86dc2443f8a3c62e2487f3ehtml_urlShttps://github.com/palantir/atlasdb/commit/90248fca8cf991f1b86dc2443f8a3c62e2487f3ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/90248fca8cf991f1b86dc2443f8a3c62e2487f3e/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j! 1https://api.github.com/users/ergo14/subscriptionsj# (https://api.github.com/users/ergo14/orgsj% )https://api.github.com/users/ergo14/reposj' 4https://api.github.com/users/ergo14/events{/privacy}j) 3https://api.github.com/users/ergo14/received_eventsj+ Userj- uparents]}(j (0e042c5db32fd526cc9e1506788bee2cda4f3a43j ^https://api.github.com/repos/palantir/atlasdb/commits/0e042c5db32fd526cc9e1506788bee2cda4f3a43j Shttps://github.com/palantir/atlasdb/commit/0e042c5db32fd526cc9e1506788bee2cda4f3a43uastats}(totalK	additionsK		deletionsKufiles](}(j (39cd75047f5ab4e5375eadc8d226c50560ff0884filename.circleci/config.ymlstatusmodifiedjG KjH KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/90248fca8cf991f1b86dc2443f8a3c62e2487f3e/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/90248fca8cf991f1b86dc2443f8a3c62e2487f3e/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=90248fca8cf991f1b86dc2443f8a3c62e2487f3epatch@@ -32,7 +32,7 @@ jobs:
           paths: [ . ]
 
   test:
-    parallelism: 12
+    parallelism: 13
     machine:
       image: ubuntu-2004:202111-02
     resource_class: xlargeu}(j (4a92dc77201164a66f11474bd4ba762b86ca97d3jM %scripts/circle-ci/run-circle-tests.shjO modifiedjG KjH KjQ K
jR {https://github.com/palantir/atlasdb/blob/90248fca8cf991f1b86dc2443f8a3c62e2487f3e/scripts%2Fcircle-ci%2Frun-circle-tests.shjT zhttps://github.com/palantir/atlasdb/raw/90248fca8cf991f1b86dc2443f8a3c62e2487f3e/scripts%2Fcircle-ci%2Frun-circle-tests.shjV https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=90248fca8cf991f1b86dc2443f8a3c62e2487f3ejX Xy	  @@ -19,7 +19,7 @@ CONTAINER_2=(':atlasdb-ete-tests:check')
 
 CONTAINER_3=(':atlasdb-dbkvs:check' ':atlasdb-cassandra:check' ':timelock-server:integTest')
 
-CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-impl-shared:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:dbkvsTest')
+CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:dbkvsTest')
 
 CONTAINER_5=(':lock-impl:check' ':atlasdb-dbkvs-tests:postgresTest' ':atlasdb-ete-test-utils:check' ':atlasdb-ete-tests:longTest')
 
@@ -33,10 +33,12 @@ CONTAINER_9=(':atlasdb-ete-tests:oracleTest')
 
 CONTAINER_10=('atlasdb-dbkvs-tests:oracleTest')
 
-CONTAINER_11=('compileJava' 'compileTestJava')
+CONTAINER_11=(':atlasdb-impl-shared:check' )
+
+CONTAINER_12=('compileJava' 'compileTestJava')
 
 # Container 0 - runs tasks not found in the below containers
-CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}")
+CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}" "${CONTAINER_11[@]}")
 
 for task in "${CONTAINER_0_EXCLUDE[@]}"
 do
@@ -64,7 +66,7 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
 # External builds have a 16gb limit.
-if [ "$CIRCLE_NODE_INDEX" -eq "11" ]; then
+if [ "$CIRCLE_NODE_INDEX" -eq "12" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
@@ -85,5 +87,6 @@ case $CIRCLE_NODE_INDEX in
     8) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_8[@]} ;;
     9) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_9[@]} ;;
     10) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_10[@]} ;;
-    11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
+    10) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} ;;
+    11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_12[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
 esacueu(561eb7e1a63ced54f776e363796b6ed6f3ea61d8}(sha(561eb7e1a63ced54f776e363796b6ed6f3ea61d8node_idEC_kwDOAjP5fdoAKDU2MWViN2UxYTYzY2VkNTRmNzc2ZTM2Mzc5NmI2ZWQ2ZjNlYTYxZDgcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-16T09:07:57Zu	committer}(jl 
Sam Kramerjn skramer@palantir.comjp 2023-05-16T09:07:57Zumessagecorrect cassandra imagetree}(jd (65d7c78776121220b404bc0ec9e19e0ef0cdd1daurl`https://api.github.com/repos/palantir/atlasdb/git/trees/65d7c78776121220b404bc0ec9e19e0ef0cdd1dauj| bhttps://api.github.com/repos/palantir/atlasdb/git/commits/561eb7e1a63ced54f776e363796b6ed6f3ea61d8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRjR+0ACgkQmPPOpKR4
XS34Owf/VhzTiknj5CFhpMVZom5ybRWvhzURRFfC6U2fDH5gLrmvi4wcMFsIsnbA
l/8/z/2p6AIvwm4uRgH1heNA1l+ncS9NoN5vM+6jQxNtPfsKttwg2AdQaJ7ElAbR
JPTx5gqYpIthc/WoD+g4zXg+QSctTvSbLyAxmeuy3FeqlD5ktMfaQANDEEvYGuED
yGVfBdpVtRW97nGZSr/3OVLC4ifqXNA7RWGEWU+O8tK+om9q3cgH18QheTtbbH4r
BBO5wrpej8XSNtTitG+sxWNvxFvhTbw1q+1/DZ3LIj750t8K7PVf0swXdh+T6oIf
LoWwxak5xQ1RmXzJDmF6RIJ8nFNCTQ==
=nOIA
-----END PGP SIGNATURE-----payloadtree 65d7c78776121220b404bc0ec9e19e0ef0cdd1da
parent 84a1ac8407c0ad8be1bdf530a29893b7b74b53a3
author Sam Kramer <skramer@palantir.com> 1684228077 +0100
committer Sam Kramer <skramer@palantir.com> 1684228077 +0100

correct cassandra image
uuj| ^https://api.github.com/repos/palantir/atlasdb/commits/561eb7e1a63ced54f776e363796b6ed6f3ea61d8html_urlShttps://github.com/palantir/atlasdb/commit/561eb7e1a63ced54f776e363796b6ed6f3ea61d8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/561eb7e1a63ced54f776e363796b6ed6f3ea61d8/commentsjj }(login
Sam-KrameridJ^2_ jf MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j| 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujr }(j 
Sam-Kramerj J^2_ jf MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j| 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jd (84a1ac8407c0ad8be1bdf530a29893b7b74b53a3j| ^https://api.github.com/repos/palantir/atlasdb/commits/84a1ac8407c0ad8be1bdf530a29893b7b74b53a3j Shttps://github.com/palantir/atlasdb/commit/84a1ac8407c0ad8be1bdf530a29893b7b74b53a3uastats}(totalK	additionsK	deletionsKufiles]}(jd (b5c7b9efcec99e2e4e3b5ccc3eb2f13e725dca1afilename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/561eb7e1a63ced54f776e363796b6ed6f3ea61d8/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/561eb7e1a63ced54f776e363796b6ed6f3ea61d8/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=561eb7e1a63ced54f776e363796b6ed6f3ea61d8patchX  @@ -2,7 +2,7 @@ version: '2'
 
 services:
   cassandra1:
-    image: palantirtechnologies/cassandra:1.112.0-rc5
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
     ports:
       - "9160"
       - "9042"
@@ -20,7 +20,7 @@ services:
         ipv4_address: 10.20.20.2
 
   cassandra2:
-    image: palantirtechnologies/cassandra:1.112.0-rc5
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
     ports:
       - "9160"
       - "9042"
@@ -38,7 +38,7 @@ services:
         ipv4_address: 10.20.20.3
 
   cassandra3:
-    image: palantirtechnologies/cassandra:1.112.0-rc5
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
     ports:
       - "9160"
       - "9042"uau(b68d2fa041ba376352a7689b0bd486e75b7d763c}(sha(b68d2fa041ba376352a7689b0bd486e75b7d763cnode_idEC_kwDOAjP5fdoAKGI2OGQyZmEwNDFiYTM3NjM1MmE3Njg5YjBiZDQ4NmU3NWI3ZDc2M2Mcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-23T13:11:51Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-05-23T13:11:51Zumessage"Autorelease 0.862.0-rc1

[skip ci]tree}(j (4ce313622daae5ce959566189a8dd66652bf7430url`https://api.github.com/repos/palantir/atlasdb/git/trees/4ce313622daae5ce959566189a8dd66652bf7430uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b68d2fa041ba376352a7689b0bd486e75b7d763c
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRsu5gACgkQhbrR8ip7mDAExAD+JhU9NgYOzDwF3piWtLR7Qoh1
vvNM4kmWRCipwDjZXzkA+wcESYadZetChPGL0KI3Fbxmp5MQr8Yjn+eOmEbirWxV
=j0O9
-----END PGP SIGNATURE-----
payloadX(  tree 4ce313622daae5ce959566189a8dd66652bf7430
parent 05712089f237cb0af78ac74399f4ae6b805879fb
author aalouane <30903736+ergo14@users.noreply.github.com> 1684847511 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684847511 +0000

Autorelease 0.862.0-rc1

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/b68d2fa041ba376352a7689b0bd486e75b7d763chtml_urlShttps://github.com/palantir/atlasdb/commit/b68d2fa041ba376352a7689b0bd486e75b7d763ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b68d2fa041ba376352a7689b0bd486e75b7d763c/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(j MDQ6VXNlcjUxNzE4MzQ2j
 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj! Userj# uparents]}(j (05712089f237cb0af78ac74399f4ae6b805879fbj ^https://api.github.com/repos/palantir/atlasdb/commits/05712089f237cb0af78ac74399f4ae6b805879fbj Shttps://github.com/palantir/atlasdb/commit/05712089f237cb0af78ac74399f4ae6b805879fbuastats}(totalK 	additionsK 	deletionsK ufiles]u(59fc94b0f334eff33650807aa4121f46f4369339}(sha(59fc94b0f334eff33650807aa4121f46f4369339node_idEC_kwDOAjP5fdoAKDU5ZmM5NGIwZjMzNGVmZjMzNjUwODA3YWE0MTIxZjQ2ZjQzNjkzMzkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-12T12:26:03Zu	committer}(jK 
Ahmed AlouanejM aalouane@palantir.comjO 2023-05-12T12:26:03Zumessagedootree}(jC (ccdaa764768bb6a984985b4be6f63bb6f6d47efeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/ccdaa764768bb6a984985b4be6f63bb6f6d47efeuj[ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/59fc94b0f334eff33650807aa4121f46f4369339
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmReMFsACgkQPlMHVIT1
yhq/6wgAqaEYe7NmRg+aDPXleH5y3JHUSurRLzjBUAfSX1B80joJ5/bzyMEwyC/o
gx2UJDou0SrnC42etPmWmeRD420tCQSsh1iBocwC16iHa0h2gPTUslFEMTIcaRbp
spqxvvw6xkIayPY7K3GPwaPZ+iHaYujKJVrTF0DTLQczsdY3U8YyPRdX8d0xHKdC
obJFRFeRqxm+5ytBwl4ZDAgNB8UF9pSVcSlLqmvc3kLJh56nLYtAQPIEnsjbyFVB
CJlkUVMlJRYZhyTgpFsBFYZaRKAjPaBl/LFreyTJZ1I8yvf3N+I3fldmaZ7Cp+jH
Eze1xxPWe8Mu7D5JNaRQVGBsrLYrSA==
=PbJm
-----END PGP SIGNATURE-----payloadtree ccdaa764768bb6a984985b4be6f63bb6f6d47efe
parent 3d4da642973ad79b8614649539161a4e2b0240f0
author Ahmed Alouane <aalouane@palantir.com> 1683894363 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1683894363 +0100

doo
uuj[ ^https://api.github.com/repos/palantir/atlasdb/commits/59fc94b0f334eff33650807aa4121f46f4369339html_urlShttps://github.com/palantir/atlasdb/commit/59fc94b0f334eff33650807aa4121f46f4369339comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/59fc94b0f334eff33650807aa4121f46f4369339/commentsjI }(loginergo14idJjE MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j[ #https://api.github.com/users/ergo14ji https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujQ }(jn ergo14jp JjE MDQ6VXNlcjMwOTAzNzM2jr 4https://avatars.githubusercontent.com/u/30903736?v=4jt h5j[ #https://api.github.com/users/ergo14ji https://github.com/ergo14jw -https://api.github.com/users/ergo14/followersjy :https://api.github.com/users/ergo14/following{/other_user}j{ 3https://api.github.com/users/ergo14/gists{/gist_id}j} :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jC (3d4da642973ad79b8614649539161a4e2b0240f0j[ ^https://api.github.com/repos/palantir/atlasdb/commits/3d4da642973ad79b8614649539161a4e2b0240f0ji Shttps://github.com/palantir/atlasdb/commit/3d4da642973ad79b8614649539161a4e2b0240f0uastats}(totalK	additionsK	deletionsKufiles]}(jC (e0414d07b963feb0cab2b5afb0f1a7259b4e7e2bfilename%scripts/circle-ci/run-circle-tests.shstatusmodifiedj Kj KchangesKblob_url{https://github.com/palantir/atlasdb/blob/59fc94b0f334eff33650807aa4121f46f4369339/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/59fc94b0f334eff33650807aa4121f46f4369339/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=59fc94b0f334eff33650807aa4121f46f4369339patchX  @@ -75,7 +75,7 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 # External builds have a 16gb limit.
 if [ "$test_suite_index" -eq "13" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
-elif ["$test_suite_index" -eq "3"]
+elif [ "$test_suite_index" -eq "3" ]; then
     export _JAVA_OPTIONS="-Xmx8g ${JAVA_GC_LOGGING_OPTIONS}"
     BASE_GRADLE_ARGS+=" --scan --parallel"
 elseuau(207838a4830e3f0a11e7754cc93cdfe36cd0190a}(sha(207838a4830e3f0a11e7754cc93cdfe36cd0190anode_idEC_kwDOAjP5fdoAKDIwNzgzOGE0ODMwZTNmMGExMWU3NzU0Y2M5M2NkZmUzNmNkMDE5MGEcommit}(author}(name	Tom Papkeemail+43675490+Toemmsche@users.noreply.github.comdate2023-06-14T10:05:51Zu	committer}(j GitHubj noreply@github.comj 2023-06-14T10:05:51Zumessage[LockV1] Add async thread info snapshotting (disabled by default) (#6625)

[LockV1] Add async thread info snapshotting (disabled by default)tree}(j (18db469969b72c82f02808bb1162a5c74ce7843eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/18db469969b72c82f02808bb1162a5c74ce7843euj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/207838a4830e3f0a11e7754cc93cdfe36cd0190a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkiZD/CRBK7hj4Ov3rIwAAYVwIADzHjq3hH8JLB9JioBuN5Ryl
TAAIyqPVriT8ZpZ2rju+TuxseezB3FCS+To0Pss6RxQ6bQheFDtJPphYygY30tyb
xkb/Y5pq+3KaSp53HvUBDi5Q0ghNvTTGBOugb4bbKJXv/KLEFU8VmJ6hq/f/PeGw
lseCLuv/iTBCo7QwxpJl65RuPQHt0FhKLicsVYcNxFv61hTatCTYFJ6t73jc7d7y
XQqkzIyppw2hCQV+47Q1P2r5l/hVBlt85A5t7oltFsXhA5GNmbhu/c5aCPfEiVn0
fPXLm3KqcbT+1FVWkNTxheyKCt+hvf7uegR/r6UufaJNb++IDVQHbkLY7Tpeq9g=
=Nt3Z
-----END PGP SIGNATURE-----
payloadXs  tree 18db469969b72c82f02808bb1162a5c74ce7843e
parent 8d65a011e35cfff9bbdb38ad706cc252b977467b
author Tom Papke <43675490+Toemmsche@users.noreply.github.com> 1686737151 +0200
committer GitHub <noreply@github.com> 1686737151 +0000

[LockV1] Add async thread info snapshotting (disabled by default) (#6625)

[LockV1] Add async thread info snapshotting (disabled by default)
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/207838a4830e3f0a11e7754cc93cdfe36cd0190ahtml_urlShttps://github.com/palantir/atlasdb/commit/207838a4830e3f0a11e7754cc93cdfe36cd0190acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/207838a4830e3f0a11e7754cc93cdfe36cd0190a/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj  Userj uparents]}(j (8d65a011e35cfff9bbdb38ad706cc252b977467bj ^https://api.github.com/repos/palantir/atlasdb/commits/8d65a011e35cfff9bbdb38ad706cc252b977467bj Shttps://github.com/palantir/atlasdb/commit/8d65a011e35cfff9bbdb38ad706cc252b977467buastats}(totalM	additionsM	deletionsKufiles](}(j (ffd47f177c27dd39d87fb4cd84339ad7d1911c1cfilename$changelog/@unreleased/pr-6625.v2.ymlstatusaddedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/207838a4830e3f0a11e7754cc93cdfe36cd0190a/changelog%2F%40unreleased%2Fpr-6625.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/207838a4830e3f0a11e7754cc93cdfe36cd0190a/changelog%2F%40unreleased%2Fpr-6625.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6625.v2.yml?ref=207838a4830e3f0a11e7754cc93cdfe36cd0190apatch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LockV1] Add async thread info snapshotting (disabled by default)'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6625u}(j (933965abbab2686a96a62a6ac504123076081ec8j" Ilock-api-objects/src/main/java/com/palantir/lock/LockClientAndThread.javaj$ addedj K$j K j& K$j' https://github.com/palantir/atlasdb/blob/207838a4830e3f0a11e7754cc93cdfe36cd0190a/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.javaj) https://github.com/palantir/atlasdb/raw/207838a4830e3f0a11e7754cc93cdfe36cd0190a/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.javaj+ https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.java?ref=207838a4830e3f0a11e7754cc93cdfe36cd0190aj- X  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface LockClientAndThread {
+    LockClientAndThread UNKNOWN = LockClientAndThread.of(LockClient.ANONYMOUS, "unknown-thread");
+
+    LockClient client();
+
+    String thread();
+
+    static ImmutableLockClientAndThread.Builder builder() {
+        return ImmutableLockClientAndThread.builder();
+    }
+
+    static LockClientAndThread of(LockClient client, String requestingThread) {
+        return builder().client(client).thread(requestingThread).build();
+    }
+}u}(j (c0732dd117e0d492f18b686086a002759beb1281j" Jlock-api/src/main/java/com/palantir/lock/DebugThreadInfoConfiguration.javaj$ addedj K!j K j& K!j' https://github.com/palantir/atlasdb/blob/207838a4830e3f0a11e7754cc93cdfe36cd0190a/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj) https://github.com/palantir/atlasdb/raw/207838a4830e3f0a11e7754cc93cdfe36cd0190a/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj+ https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.java?ref=207838a4830e3f0a11e7754cc93cdfe36cd0190aj- X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface DebugThreadInfoConfiguration {
+
+    @Value.Default
+    default boolean recordThreadInfo() {
+        return false;
+    }
+
+    @Value.Default
+    default long threadInfoSnapshotIntervalMillis() {
+        return 5000L;
+    }
+}u}(j (da50ee7393b93c8d71153140ffe86ba6c40366fcj" ?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javaj$ modifiedj Kj Kj& Kj' https://github.com/palantir/atlasdb/blob/207838a4830e3f0a11e7754cc93cdfe36cd0190a/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj) https://github.com/palantir/atlasdb/raw/207838a4830e3f0a11e7754cc93cdfe36cd0190a/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj+ https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=207838a4830e3f0a11e7754cc93cdfe36cd0190aj- X  @@ -16,6 +16,7 @@
 package com.palantir.lock;
 
 import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.google.common.base.MoreObjects;
@@ -126,6 +127,15 @@ public long slowLogTriggerMillis() {
         return 10000L;
     }
 
+    /**
+     * Runtime configuration relating to thread info recording (which lock is held by which client-thread).
+     */
+    @JsonIgnore
+    @Value.Default
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    }
+
     @Override
     public boolean equals(@Nullable Object obj) {
         if (this == obj) {
@@ -142,7 +152,8 @@ && getRandomBitCount() == other.getRandomBitCount()
                 && Objects.equals(getMaxAllowedClockDrift(), other.getMaxAllowedClockDrift())
                 && Objects.equals(getMaxAllowedBlockingDuration(), other.getMaxAllowedBlockingDuration())
                 && Objects.equals(getMaxNormalLockAge(), other.getMaxNormalLockAge())
-                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout());
+                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout())
+                && Objects.equals(threadInfoConfiguration(), other.threadInfoConfiguration());
     }
 
     @Override
@@ -155,7 +166,8 @@ public int hashCode() {
                 getMaxNormalLockAge(),
                 getRandomBitCount(),
                 getStuckTransactionTimeout(),
-                slowLogTriggerMillis());
+                slowLogTriggerMillis(),
+                threadInfoConfiguration());
     }
 
     @Override
@@ -169,6 +181,7 @@ public String toString() {
                 .add("randomBitCount", getRandomBitCount())
                 .add("stuckTransactionTimeout", getStuckTransactionTimeout())
                 .add("slowLogTriggerMillis", slowLogTriggerMillis())
+                .add("threadInfoConfiguration", threadInfoConfiguration())
                 .toString();
     }
 u}(j (11798108f5011933229198de0ecd0a9b6b828e68j" lock-impl/build.gradlej$ modifiedj Kj K j& Kj' jhttps://github.com/palantir/atlasdb/blob/207838a4830e3f0a11e7754cc93cdfe36cd0190a/lock-impl%2Fbuild.gradlej) ihttps://github.com/palantir/atlasdb/raw/207838a4830e3f0a11e7754cc93cdfe36cd0190a/lock-impl%2Fbuild.gradlej+ |https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fbuild.gradle?ref=207838a4830e3f0a11e7754cc93cdfe36cd0190aj- Xb  @@ -22,6 +22,7 @@ dependencies {
   implementation project(':lock-api-objects')
   implementation project(':timestamp-api')
 
+  testImplementation 'org.awaitility:awaitility'
   testImplementation 'com.fasterxml.jackson.core:jackson-databind'
   testImplementation 'com.google.guava:guava'
   testImplementation 'com.palantir.safe-logging:preconditions'u}(j (de1728573711fd52c74bd9c4b9da5dac1b845b1aj" Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj$ modifiedj K
j K j& K
j' https://github.com/palantir/atlasdb/blob/207838a4830e3f0a11e7754cc93cdfe36cd0190a/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj) https://github.com/palantir/atlasdb/raw/207838a4830e3f0a11e7754cc93cdfe36cd0190a/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj+ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=207838a4830e3f0a11e7754cc93cdfe36cd0190aj- X  @@ -183,6 +183,9 @@ public String toString() {
     private final SimpleTimeDuration stuckTransactionTimeout;
     private final AtomicBoolean isShutDown = new AtomicBoolean(false);
 
+    /** Configurable background task that periodically collects snapshots about the current lock state */
+    private final LockThreadInfoSnapshotManager threadInfoSnapshotManager;
+
     private final LockClientIndices clientIndices = new LockClientIndices();
 
     /** The backing client-aware read write lock for each lock descriptor. */
@@ -256,6 +259,9 @@ private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable
         this.maxNormalLockAge = SimpleTimeDuration.of(options.getMaxNormalLockAge());
         this.stuckTransactionTimeout = SimpleTimeDuration.of(options.getStuckTransactionTimeout());
         this.slowLogTriggerMillis = options.slowLogTriggerMillis();
+        this.threadInfoSnapshotManager =
+                new LockThreadInfoSnapshotManager(options.threadInfoConfiguration(), () -> heldLocksTokenMap);
+        threadInfoSnapshotManager.start();
     }
 
     private HeldLocksToken createHeldLocksToken(
@@ -1227,6 +1233,10 @@ public long currentTimeMillis() {
         return System.currentTimeMillis();
     }
 
+    public LockThreadInfoSnapshotManager getSnapshotManager() {
+        return threadInfoSnapshotManager;
+    }
+
     private static String updateThreadName(LockRequest request) {
         String currentThreadName = Thread.currentThread().getName();
         tryRenameThread(u}(j (809fbe7445ab02562941cd3e5c4b33ac4978e3f5j" Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javaj$ addedj K_j K j& K_j' https://github.com/palantir/atlasdb/blob/207838a4830e3f0a11e7754cc93cdfe36cd0190a/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj) https://github.com/palantir/atlasdb/raw/207838a4830e3f0a11e7754cc93cdfe36cd0190a/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj+ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=207838a4830e3f0a11e7754cc93cdfe36cd0190aj- X[  @@ -0,0 +1,95 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableMap;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.lock.DebugThreadInfoConfiguration;
+import com.palantir.lock.HeldLocksToken;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Objects;
+import java.util.concurrent.ConcurrentMap;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+
+public class LockThreadInfoSnapshotManager implements AutoCloseable {
+    private DebugThreadInfoConfiguration threadInfoConfiguration;
+
+    private Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
+
+    private volatile Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot;
+
+    private ScheduledExecutorService scheduledExecutorService = PTExecutors.newSingleThreadScheduledExecutor();
+
+    public LockThreadInfoSnapshotManager(
+            DebugThreadInfoConfiguration threadInfoConfiguration,
+            Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> mapSupplier) {
+        this.threadInfoConfiguration = threadInfoConfiguration;
+        this.tokenMapSupplier = mapSupplier;
+        this.lastKnownThreadInfoSnapshot = ImmutableMap.of();
+    }
+
+    public void start() {
+        scheduleRun();
+    }
+
+    private void run() {
+        takeSnapshot();
+
+        // schedule next snapshot so this can be enabled/disabled at runtime
+        scheduleRun();
+    }
+
+    private void scheduleRun() {
+        if (threadInfoConfiguration.recordThreadInfo()) {
+            scheduledExecutorService.schedule(
+                    this::run, threadInfoConfiguration.threadInfoSnapshotIntervalMillis(), TimeUnit.MILLISECONDS);
+        }
+    }
+
+    @VisibleForTesting
+    Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot() {
+        return lastKnownThreadInfoSnapshot;
+    }
+
+    @VisibleForTesting
+    void takeSnapshot() {
+        lastKnownThreadInfoSnapshot = tokenMapSupplier.get().keySet().stream()
+                .flatMap(token -> {
+                    LockClientAndThread clientThread = LockClientAndThread.of(
+                            Objects.requireNonNullElse(token.getClient(), LockClientAndThread.UNKNOWN.client()),
+                            Objects.requireNonNullElse(
+                                    token.getRequestingThread(), LockClientAndThread.UNKNOWN.thread()));
+                    return token.getLockDescriptors().stream()
+                            .map(lockDescriptor -> Map.entry(lockDescriptor, clientThread));
+                })
+                // Although a lock can be held by multiple clients/threads, we only remember one to save space
+                .collect(Collectors.toMap(Entry::getKey, Entry::getValue, (existing, replacement) -> existing));
+    }
+
+    @Override
+    public void close() {
+        scheduledExecutorService.shutdown();
+    }
+}u}(j (fca47bf826894d27a0227ac74fce26202ab99df7j" Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javaj$ addedj M5j K j& M5j' https://github.com/palantir/atlasdb/blob/207838a4830e3f0a11e7754cc93cdfe36cd0190a/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj) https://github.com/palantir/atlasdb/raw/207838a4830e3f0a11e7754cc93cdfe36cd0190a/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj+ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=207838a4830e3f0a11e7754cc93cdfe36cd0190aj- X7  @@ -0,0 +1,309 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableSortedMap;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.common.streams.KeyedStream;
+import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
+import com.palantir.lock.LockClient;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.LockMode;
+import com.palantir.lock.LockRequest;
+import com.palantir.lock.LockResponse;
+import com.palantir.lock.LockServerOptions;
+import com.palantir.lock.SimpleTimeDuration;
+import com.palantir.lock.StringLockDescriptor;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Future;
+import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.awaitility.Awaitility;
+import org.junit.Test;
+
+public class ThreadInfoLockServiceImplTest {
+    private static final LockDescriptor TEST_LOCK_1 = StringLockDescriptor.of("lock-1");
+    private static final LockDescriptor TEST_LOCK_2 = StringLockDescriptor.of("lock-2");
+    private static final LockDescriptor TEST_LOCK_3 = StringLockDescriptor.of("lock-3");
+
+    private static final String TEST_THREAD_1 = "thread-1";
+    private static final String TEST_THREAD_2 = "thread-2";
+    private static final String TEST_THREAD_3 = "thread-3";
+
+    private static final LockRequest LOCK_1_THREAD_1_WRITE_REQUEST = LockRequest.builder(
+                    ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+            .withCreatingThreadName(TEST_THREAD_1)
+            .build();
+
+    private static final LockClientAndThread ANONYMOUS_TEST_THREAD_1 =
+            LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1);
+
+    private final ExecutorService executor =
+            PTExecutors.newCachedThreadPool(ThreadInfoLockServiceImplTest.class.getName());
+
+    // Disable background snapshotting, invoke explicitly instead
+    private final LockServiceImpl lockService = LockServiceImpl.create(LockServerOptions.builder()
+            .isStandaloneServer(false)
+            .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                    .recordThreadInfo(false)
+                    .build())
+            .build());
+
+    @Test
+    public void initialThreadInfoIsEmpty() {
+        forceSnapshot();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+    }
+
+    @Test
+    public void recordsThreadInfoForLock() throws InterruptedException {
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+    }
+
+    @Test
+    public void recordsThreadInfoForUnlock() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+
+        lockService.unlock(response.getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+    }
+
+    @Test
+    public void recordsThreadInfoForMultipleLocks() throws InterruptedException {
+        int numThreads = 10;
+        int numLocksPerThread = 10;
+
+        List<String> threadNames =
+                IntStream.range(0, numThreads).mapToObj(i -> "test-thread-" + i).collect(Collectors.toList());
+
+        Map<String, Set<LockDescriptor>> locksPerThread = KeyedStream.of(threadNames)
+                .map(threadName -> IntStream.range(0, numLocksPerThread)
+                        .mapToObj(i -> StringLockDescriptor.of("test-lock-" + i + "-from-thread-" + threadName))
+                        .collect(Collectors.toSet()))
+                .collectToMap();
+
+        for (Map.Entry<String, Set<LockDescriptor>> entry : locksPerThread.entrySet()) {
+            LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.copyOf(
+                            entry.getValue().stream().collect(Collectors.toMap(lock -> lock, lock -> LockMode.WRITE))))
+                    .withCreatingThreadName(entry.getKey())
+                    .build();
+            lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest);
+        }
+
+        forceSnapshot();
+
+        locksPerThread.forEach((threadName, lockDescriptors) ->
+                lockDescriptors.forEach(lock -> assertThat(getLatestThreadInfoForLock(lock))
+                        .contains(LockClientAndThread.of(LockClient.ANONYMOUS, threadName))));
+    }
+
+    @Test
+    public void recordsThreadInfoForSharedLock() throws InterruptedException {
+        LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+        LockRequest lockRequest2 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .doNotBlock()
+                .lockAsManyAsPossible()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        LockResponse lockResponse = lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest1);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1).get())
+                .isIn(ANONYMOUS_TEST_THREAD_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+
+        lockService.unlock(lockResponse.getToken());
+
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+    }
+
+    @Test
+    public void doesNotRecordDroppedLocksWithLockAllOrNone() throws InterruptedException {
+        // T2 cannot get lock 1 -> grouping behavior LOCK_ALL_OR_NONE will release lock 2, even though it could have
+        // been locked
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
+                .doNotBlock()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+    }
+
+    @Test
+    public void recordsUnlockAndFreezeForNonAnonymousClient() throws InterruptedException {
+        LockClient client = LockClient.of("non-anonymous-client");
+
+        LockResponse response = lockService.lockWithFullLockResponse(client, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(LockClientAndThread.of(client, TEST_THREAD_1));
+
+        lockService.unlockAndFreeze(response.getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+    }
+
+    @Test
+    public void recordsCorrectStateAfterMultipleOperations() throws Exception {
+        CountDownLatch latch = new CountDownLatch(1);
+
+        // T1 locks 1 exclusively and locks 2 in shared mode
+        LockResponse response1 = lockService.lockWithFullLockResponse(
+                LockClient.ANONYMOUS,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_1)
+                        .build());
+
+        // T2 shouldn't get 1, but locks 3 in exclusive mode,
+        LockResponse response2 = lockService.lockWithFullLockResponse(
+                LockClient.ANONYMOUS,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_3, LockMode.WRITE))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_2)
+                        .build());
+
+        Future<LockResponse> response3 = executor.submit(() -> {
+
+            // T3 will wait at most 5 seconds to lock 1 in exclusive mode and lock 2 in shared mode
+            LockResponse response = lockService.lockWithFullLockResponse(
+                    LockClient.ANONYMOUS,
+                    LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                            .blockForAtMost(SimpleTimeDuration.of(5, TimeUnit.SECONDS))
+                            .lockAsManyAsPossible()
+                            .withCreatingThreadName(TEST_THREAD_3)
+                            .build());
+            latch.countDown();
+            return response;
+        });
+        lockService.unlock(response1.getToken());
+        latch.await();
+
+        forceSnapshot();
+
+        // T1 should hold nothing, T2 holds 3 in exclusive mode, T3 holds 1 in exclusive and 2 in shared mode
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+
+        lockService.unlock(response2.getToken());
+        forceSnapshot();
+
+        // Only T3 should hold locks
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+
+        lockService.unlock(response3.get().getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+    }
+
+    @Test
+    public void refreshDoesNotChangeSnapshot() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+
+        lockService.refreshTokens(List.of(response.getToken()));
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+    }
+
+    @Test
+    public void backgroundSnapshotRunnerWorks() throws InterruptedException {
+        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
+                .isStandaloneServer(false)
+                .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                        .recordThreadInfo(true)
+                        .threadInfoSnapshotIntervalMillis(50L)
+                        .build())
+                .build());
+        LockThreadInfoSnapshotManager backgroundSnapshotRunner = lockServiceWithBackgroundRunner.getSnapshotManager();
+
+        LockResponse response = lockServiceWithBackgroundRunner.lockWithFullLockResponse(
+                LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+
+        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
+                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
+                .containsExactly(Map.entry(TEST_LOCK_1, ANONYMOUS_TEST_THREAD_1)));
+
+        lockServiceWithBackgroundRunner.unlock(response.getToken());
+
+        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
+                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
+                .doesNotContainKey(TEST_LOCK_1));
+    }
+
+    private void forceSnapshot() {
+        lockService.getSnapshotManager().takeSnapshot();
+    }
+
+    private Optional<LockClientAndThread> getLatestThreadInfoForLock(LockDescriptor lock) {
+        return Optional.ofNullable(lockService
+                .getSnapshotManager()
+                .getLastKnownThreadInfoSnapshot()
+                .get(lock));
+    }
+}ueuA     (2ddd444640015b5fc9e0e62209122f26a70ca953}(sha(2ddd444640015b5fc9e0e62209122f26a70ca953node_idEC_kwDOAjP5fdoAKDJkZGQ0NDQ2NDAwMTViNWZjOWUwZTYyMjA5MTIyZjI2YTcwY2E5NTMcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-07-14T12:44:22Zu	committer}(jq 
svc-changelogjs svc-changelog@palantir.comju 2023-07-14T12:44:22ZumessageAdd generated changelog entriestree}(ji (705be0dc58d875228370e9a6f92176d2090c0dbcurl`https://api.github.com/repos/palantir/atlasdb/git/trees/705be0dc58d875228370e9a6f92176d2090c0dbcuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2ddd444640015b5fc9e0e62209122f26a70ca953
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSxQyYJEHYaJX37fAFQAADyRQD9GO/lkQtQb4dxxEFlxe1pjvHK
nKd/33obhk1vocjuL1sBAIwLVETVRoSZq2j0LJ/zObHQP7BCiHXgJ0i10WkMQS0l
=Kx1A
-----END PGP SIGNATURE-----payloadX  tree 705be0dc58d875228370e9a6f92176d2090c0dbc
parent 4c65995c7110c617f6cd12253403bfeee6e23022
author svc-changelog <svc-changelog@palantir.com> 1689338662 +0000
committer svc-changelog <svc-changelog@palantir.com> 1689338662 +0000

Add generated changelog entriesuuj ^https://api.github.com/repos/palantir/atlasdb/commits/2ddd444640015b5fc9e0e62209122f26a70ca953html_urlShttps://github.com/palantir/atlasdb/commit/2ddd444640015b5fc9e0e62209122f26a70ca953comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2ddd444640015b5fc9e0e62209122f26a70ca953/commentsjo }(login
svc-changelogidJ#jk MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujw }(j 
svc-changelogj J#jk MDQ6VXNlcjg0MDc3NjAzj 4https://avatars.githubusercontent.com/u/84077603?v=4j h5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelogj 4https://api.github.com/users/svc-changelog/followersj Ahttps://api.github.com/users/svc-changelog/following{/other_user}j :https://api.github.com/users/svc-changelog/gists{/gist_id}j Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j 8https://api.github.com/users/svc-changelog/subscriptionsj /https://api.github.com/users/svc-changelog/orgsj 0https://api.github.com/users/svc-changelog/reposj ;https://api.github.com/users/svc-changelog/events{/privacy}j :https://api.github.com/users/svc-changelog/received_eventsj Userj uparents]}(ji (4c65995c7110c617f6cd12253403bfeee6e23022j ^https://api.github.com/repos/palantir/atlasdb/commits/4c65995c7110c617f6cd12253403bfeee6e23022j Shttps://github.com/palantir/atlasdb/commit/4c65995c7110c617f6cd12253403bfeee6e23022uastats}(totalK	additionsK	deletionsK ufiles]}(ji (ff9f08f8e6f43315a79a74fdf43e11f2070b6d9ffilename$changelog/@unreleased/pr-6666.v2.ymlstatusaddedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/2ddd444640015b5fc9e0e62209122f26a70ca953/changelog%2F%40unreleased%2Fpr-6666.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/2ddd444640015b5fc9e0e62209122f26a70ca953/changelog%2F%40unreleased%2Fpr-6666.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6666.v2.yml?ref=2ddd444640015b5fc9e0e62209122f26a70ca953patch@@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: Fix cell lock count across multiple tables
+  links:
+  - https://github.com/palantir/atlasdb/pull/6666uau(51b755b414be78757ca24dce719d264addf62778}(sha(51b755b414be78757ca24dce719d264addf62778node_idEC_kwDOAjP5fdoAKDUxYjc1NWI0MTRiZTc4NzU3Y2EyNGRjZTcxOWQyNjRhZGRmNjI3Nzgcommit}(author}(name
Samuel Krameremailskramer@palantir.comdate2023-03-24T08:54:28Zu	committer}(j 
Samuel Kramerj skramer@palantir.comj 2023-03-24T08:54:28ZumessageCfix config for standalone workload server docker with in memory kvstree}(j (fea21e272706a7b1dae8bb51214cfbd9a7e2440curl`https://api.github.com/repos/palantir/atlasdb/git/trees/fea21e272706a7b1dae8bb51214cfbd9a7e2440cuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/51b755b414be78757ca24dce719d264addf62778
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj ^https://api.github.com/repos/palantir/atlasdb/commits/51b755b414be78757ca24dce719d264addf62778html_urlShttps://github.com/palantir/atlasdb/commit/51b755b414be78757ca24dce719d264addf62778comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/51b755b414be78757ca24dce719d264addf62778/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j	 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j
 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j" 7https://api.github.com/users/Sam-Kramer/received_eventsj$ Userj& uparents]}(j (aae42d0326b3625157f6c427524c568f225a7cc6j ^https://api.github.com/repos/palantir/atlasdb/commits/aae42d0326b3625157f6c427524c568f225a7cc6j Shttps://github.com/palantir/atlasdb/commit/aae42d0326b3625157f6c427524c568f225a7cc6uastats}(totalK	additionsK	deletionsKufiles]}(j (460140589050272c4b15d430c3846aeae4273f6dfilenameAatlasdb-workload-server-distribution/var/conf/workload-server.ymlstatusmodifiedj@ KjA KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/51b755b414be78757ca24dce719d264addf62778/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/51b755b414be78757ca24dce719d264addf62778/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=51b755b414be78757ca24dce719d264addf62778patchX  @@ -4,10 +4,10 @@ install:
     namespace: test
     keyValueService:
       type: memory
-  single-row-two-cells-config:
-    table-configuration:
-      table-name: two-cells-test
-      isolation-level: SERIALIZABLE
-    iteration-count: 100
+  singleRowTwoCellsConfig:
+    tableConfiguration:
+      tableName: two-cells-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
     type: singleRowTwoCells
-  exit-after-running: true
\ No newline at end of file
+  exitAfterRunning: true
\ No newline at end of fileuau(cc0e2043daa0a73be841f2b0f18444037e257928}(sha(cc0e2043daa0a73be841f2b0f18444037e257928node_idEC_kwDOAjP5fdoAKGNjMGUyMDQzZGFhMGE3M2JlODQxZjJiMGYxODQ0NDAzN2UyNTc5Mjgcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-13T09:51:05Zu	committer}(j] 	Tom Papkej_ tpapke@palantir.comja 2023-06-13T09:51:05ZumessageRename to holdingThreadtree}(jU (f37c092787f4c0466cff2d36792fabe021be5893url`https://api.github.com/repos/palantir/atlasdb/git/trees/f37c092787f4c0466cff2d36792fabe021be5893ujm bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cc0e2043daa0a73be841f2b0f18444037e257928
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSIPAkACgkQmF9s0kaF
Iw2A3wgAoOiFXBFv9NWzidxRJzTYUa+8BgA/OHDWCcqGYz8GhDyhGHWcV5ASDidz
xO8TeDJckfY4ziaI9EK8xlQLE5/XvJp7VDNG1zf/ZPDR5ZUOjaHr1OHLlsZBR5R6
CnkuAgbro1OoN1K/pUYer/ra6tStNkEocsuo4pMi5OFdozzaX1h4MdqK+5OGH90e
Z/wEjYSiKV4rap+rPtPJK8hEtwQGkuuWTAAHukO/UkGK0v0kQCgFOEvq6RBdmrR4
ohAct+Pm/XbLEglS5bonmWXvSoqGINcmuZtTNhTDK+uZNMXXRQQjXjxfBSAi1oVO
2RMk+j8LeWuOesbWy+17QQ+A8E7Tkw==
=7Qx7
-----END PGP SIGNATURE-----payloadtree f37c092787f4c0466cff2d36792fabe021be5893
parent 4a396c4bd0a5f78151951735b47d420d8ac482e1
author Tom Papke <tpapke@palantir.com> 1686649865 +0100
committer Tom Papke <tpapke@palantir.com> 1686649865 +0100

Rename to holdingThread
uujm ^https://api.github.com/repos/palantir/atlasdb/commits/cc0e2043daa0a73be841f2b0f18444037e257928html_urlShttps://github.com/palantir/atlasdb/commit/cc0e2043daa0a73be841f2b0f18444037e257928comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cc0e2043daa0a73be841f2b0f18444037e257928/commentsj[ }(login	ToemmscheidJbojW MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jm &https://api.github.com/users/Toemmschej{ https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujc }(j 	Toemmschej JbojW MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5jm &https://api.github.com/users/Toemmschej{ https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(jU (4a396c4bd0a5f78151951735b47d420d8ac482e1jm ^https://api.github.com/repos/palantir/atlasdb/commits/4a396c4bd0a5f78151951735b47d420d8ac482e1j{ Shttps://github.com/palantir/atlasdb/commit/4a396c4bd0a5f78151951735b47d420d8ac482e1uastats}(totalK	additionsK		deletionsKufiles]}(jU (a81f590579890fca959559e342f1bf2b7fcdbd77filenameClock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javastatusmodifiedj K	j KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/cc0e2043daa0a73be841f2b0f18444037e257928/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/cc0e2043daa0a73be841f2b0f18444037e257928/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=cc0e2043daa0a73be841f2b0f18444037e257928patchXp  @@ -194,9 +194,10 @@ public String toString() {
     private final DebugThreadInfoConfiguration threadInfoConfiguration;
 
     /**
-     * Mapping of locks to the client thread that last held it.
+     * Mapping of locks to the client thread that we presume it is held by.
+     * This only stores the latest thread to acquire the lock in case of shared locks or stacked write locks.
      */
-    private final Cache<LockDescriptor, ThreadAwareLockClient> lastHoldingThread;
+    private final Cache<LockDescriptor, ThreadAwareLockClient> holdingThread;
 
     private final AtomicBoolean isShutDown = new AtomicBoolean(false);
 
@@ -276,7 +277,7 @@ private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable
 
         // thread info collection is off by default
         this.threadInfoConfiguration = options.threadInfoConfiguration();
-        this.lastHoldingThread = Caffeine.newBuilder()
+        this.holdingThread = Caffeine.newBuilder()
                 .executor(executor.resource())
                 .maximumSize(DebugThreadInfoConfiguration.MAX_THREAD_INFO_SIZE)
                 .expireAfterWrite(DebugThreadInfoConfiguration.THREAD_INFO_WRITE_EXPIRATION)
@@ -310,7 +311,7 @@ private HeldLocksToken createHeldLocksToken(
                 }
                 if (threadInfoConfiguration.recordThreadInfo()) {
                     ThreadAwareLockClient lockHolderThread = ThreadAwareLockClient.of(client, requestThread);
-                    lockDescriptorMap.getKeys().forEach(lock -> lastHoldingThread.put(lock, lockHolderThread));
+                    lockDescriptorMap.getKeys().forEach(lock -> holdingThread.put(lock, lockHolderThread));
                 }
                 return token;
             }
@@ -337,7 +338,7 @@ private HeldLocksGrant createHeldLocksGrant(
                 if (threadInfoConfiguration.recordThreadInfo()) {
                     ThreadAwareLockClient lockHolderThread =
                             ThreadAwareLockClient.of(INTERNAL_LOCK_GRANT_CLIENT, "N/A");
-                    lockDescriptorMap.getKeys().forEach(lock -> lastHoldingThread.put(lock, lockHolderThread));
+                    lockDescriptorMap.getKeys().forEach(lock -> holdingThread.put(lock, lockHolderThread));
                 }
                 return grant;
             }
@@ -1276,16 +1277,16 @@ private <T extends ExpiringToken> void updateThreadInfoForUnlock(HeldLocks<T> he
             LockDescriptor lockDescriptor = entry.getKey().getDescriptor();
 
             if (isAnonymous && lockmode.equals(LockMode.WRITE)) {
-                lastHoldingThread.invalidate(lockDescriptor);
+                holdingThread.invalidate(lockDescriptor);
             } else {
-                lastHoldingThread.put(lockDescriptor, ThreadAwareLockClient.UNKNOWN);
+                holdingThread.put(lockDescriptor, ThreadAwareLockClient.UNKNOWN);
             }
         });
     }
 
     @Override
     public ThreadAwareLockClient getHoldingThread(LockDescriptor lock) {
-        return lastHoldingThread.getIfPresent(lock);
+        return holdingThread.getIfPresent(lock);
     }
 
     private static String updateThreadName(LockRequest request) {uau(9867429bb99d5368c458a1da9313cbed8250cf3d}(sha(9867429bb99d5368c458a1da9313cbed8250cf3dnode_idEC_kwDOAjP5fdoAKDk4Njc0MjliYjk5ZDUzNjhjNDU4YTFkYTkzMTNjYmVkODI1MGNmM2Qcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-03-31T03:17:42Zu	committer}(j David Schlosnaglej davids@palantir.comj 2023-03-31T03:37:02ZumessageUpgrade mockito to 5.2.0tree}(j (36b9d527a5c1a8ba22580746411e2bca5c1bc18burl`https://api.github.com/repos/palantir/atlasdb/git/trees/36b9d527a5c1a8ba22580746411e2bca5c1bc18buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9867429bb99d5368c458a1da9313cbed8250cf3d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmQmVV8ACgkQR9hsJ74Q
0l9Gfwf5AYTwPY5ejbQfecN2XNAmPrt1Maeda+oKaGEILe20z6Sc0EUfVchwATnv
TdlOjKHsBudSmA2rGy2MCayv2vIks3WNLHIKbZK20mUF1jvUJhc7jJd59aVC/UcQ
NSG50t29RAOln9Qvn28HfUE6jEwklUT1UIB1vX0IyLssD20CmhIXcVRDtQD38IuY
x51NINdtoDd4Wlp68nGcEWEG9zDRZ325bNEh1rXxkgLykR9eZl4aslr68aIeK5U9
1MSqSrelJxJmDtHMEjHKYvjK7SIAYdqGIbMzyRdjMyuXjMWZnqrNZkMxHa8PKUxW
tTmda4rJk65KyiLLZG5KD7uwm7TVtQ==
=UzG0
-----END PGP SIGNATURE-----payloadtree 36b9d527a5c1a8ba22580746411e2bca5c1bc18b
parent fa8e98b17671d5b05d880ca5437ae7e932677321
author David Schlosnagle <davids@palantir.com> 1680232662 -0400
committer David Schlosnagle <davids@palantir.com> 1680233822 -0400

Upgrade mockito to 5.2.0
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/9867429bb99d5368c458a1da9313cbed8250cf3dhtml_urlShttps://github.com/palantir/atlasdb/commit/9867429bb99d5368c458a1da9313cbed8250cf3dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9867429bb99d5368c458a1da9313cbed8250cf3d/commentsj }(loginschlosnaidMBj MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j %https://api.github.com/users/schlosnaj https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj }(j schlosnaj MBj MDQ6VXNlcjU0NTk0j 1https://avatars.githubusercontent.com/u/54594?v=4j h5j %https://api.github.com/users/schlosnaj https://github.com/schlosnaj  /https://api.github.com/users/schlosna/followersj <https://api.github.com/users/schlosna/following{/other_user}j 5https://api.github.com/users/schlosna/gists{/gist_id}j <https://api.github.com/users/schlosna/starred{/owner}{/repo}j 3https://api.github.com/users/schlosna/subscriptionsj
 *https://api.github.com/users/schlosna/orgsj +https://api.github.com/users/schlosna/reposj 6https://api.github.com/users/schlosna/events{/privacy}j 5https://api.github.com/users/schlosna/received_eventsj Userj uparents]}(j (fa8e98b17671d5b05d880ca5437ae7e932677321j ^https://api.github.com/repos/palantir/atlasdb/commits/fa8e98b17671d5b05d880ca5437ae7e932677321j Shttps://github.com/palantir/atlasdb/commit/fa8e98b17671d5b05d880ca5437ae7e932677321uastats}(totalKh	additionsKB	deletionsK&ufiles](}(j (63285014148e1955618c0b9c9c8fa5df70e05e2afilenameRatlasdb-commons/src/test/java/com/palantir/common/base/BatchingVisitablesTest.javastatusmodifiedj. Kj/ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9867429bb99d5368c458a1da9313cbed8250cf3d/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fbase%2FBatchingVisitablesTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9867429bb99d5368c458a1da9313cbed8250cf3d/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fbase%2FBatchingVisitablesTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fbase%2FBatchingVisitablesTest.java?ref=9867429bb99d5368c458a1da9313cbed8250cf3dpatchX  @@ -41,12 +41,13 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.mockito.Mock;
+import org.mockito.MockMakers;
 import org.mockito.junit.MockitoJUnitRunner;
 
 @RunWith(MockitoJUnitRunner.class)
 @SuppressWarnings("Guava") // BatchingVisitables uses Guava.
 public class BatchingVisitablesTest {
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private AbstractBatchingVisitable<Void> bv;
 
     @Testu}(j (a4d7e0bf2840561582e23f5dd2c6582df9f5bdfej4 `atlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/OracleTableNameUnmapperTest.javaj6 modifiedj. Kj/ Kj8 K,j9 https://github.com/palantir/atlasdb/blob/9867429bb99d5368c458a1da9313cbed8250cf3d/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javaj; https://github.com/palantir/atlasdb/raw/9867429bb99d5368c458a1da9313cbed8250cf3d/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javaj= https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.java?ref=9867429bb99d5368c458a1da9313cbed8250cf3dj? X  @@ -46,6 +46,7 @@
 import com.palantir.nexus.db.sql.AgnosticResultSetImpl;
 import com.palantir.nexus.db.sql.SqlConnection;
 import java.sql.Connection;
+import java.util.Arrays;
 import java.util.Collections;
 import java.util.List;
 import java.util.Map;
@@ -55,9 +56,14 @@
 import java.util.stream.IntStream;
 import org.junit.Before;
 import org.junit.Test;
+import org.junit.runner.RunWith;
 import org.mockito.ArgumentCaptor;
+import org.mockito.Mock;
+import org.mockito.Mock.Strictness;
+import org.mockito.junit.MockitoJUnitRunner;
 import org.mockito.stubbing.OngoingStubbing;
 
+@RunWith(MockitoJUnitRunner.class)
 public class OracleTableNameUnmapperTest {
 
     private static final String TEST_PREFIX = "a_";
@@ -68,21 +74,24 @@ public class OracleTableNameUnmapperTest {
     private static final TableReference TABLE_REF = TableReference.create(TEST_NAMESPACE, LONG_TABLE_NAME);
     private static final TableReference TABLE_REF_2 = TableReference.create(TEST_NAMESPACE, LONG_TABLE_NAME + "2");
 
-    private OracleTableNameUnmapper oracleTableNameUnmapper;
-    private AgnosticResultSet shortNameResultSet;
-    private ConnectionSupplier connectionSupplier;
-    private SqlConnection sqlConnection;
+    private final OracleTableNameUnmapper oracleTableNameUnmapper = new OracleTableNameUnmapper();
+
+    @Mock
+    AgnosticResultSet shortNameResultSet;
+
+    @Mock
+    ConnectionSupplier connectionSupplier;
+
+    @Mock(strictness = Strictness.LENIENT)
+    SqlConnection sqlConnection;
+
+    @Mock
+    Connection connection;
 
     @Before
     public void setup() {
-        connectionSupplier = mock(ConnectionSupplier.class);
-        oracleTableNameUnmapper = new OracleTableNameUnmapper();
-        sqlConnection = mock(SqlConnection.class);
-        Connection connection = mock(Connection.class);
         when(sqlConnection.getUnderlyingConnection()).thenReturn(connection);
         when(connectionSupplier.get()).thenReturn(sqlConnection);
-
-        shortNameResultSet = mock(AgnosticResultSet.class);
         when(sqlConnection.selectResultSetUnregisteredQuery(
                         startsWith("SELECT short_table_name FROM atlasdb_table_names WHERE table_name"), any()))
                 .thenReturn(shortNameResultSet);
@@ -135,7 +144,7 @@ public void cacheIsActuallyUsed() throws TableMappingNotFoundException {
 
     @Test
     public void getShortToLongTableNamesFromMappingTableReturnsLongNames() {
-        ArgumentCaptor<Object> tableNameCaptor = ArgumentCaptor.forClass(Object.class);
+        ArgumentCaptor<Object[]> tableNameCaptor = ArgumentCaptor.forClass(Object[].class);
         Map<String, String> shortNamesToLongNames = ImmutableMap.<String, String>builder()
                 .put("shortNameOne", "superLongNameOne")
                 .put("shortNameTwo", "superLongNameTwo")
@@ -153,7 +162,8 @@ public void getShortToLongTableNamesFromMappingTableReturnsLongNames() {
                                 + "(short_table_name) IN (" + generatePlaceholders(3) + ")"),
                         tableNameCaptor.capture());
 
-        assertThat(tableNameCaptor.getAllValues()).containsExactlyInAnyOrderElementsOf(shortNamesToLongNames.keySet());
+        assertThat(tableNameCaptor.getAllValues().stream().flatMap(Arrays::stream))
+                .containsExactlyInAnyOrderElementsOf(shortNamesToLongNames.keySet());
         verifyNoMoreInteractions(sqlConnection);
     }
 
@@ -174,15 +184,15 @@ public void getShortToLongTableNamesFromMappingTableDoesMultipleQueriesIfMoreTab
                         eq("SELECT short_table_name, table_name FROM atlasdb_table_names WHERE LOWER"
                                 + "(short_table_name) IN ("
                                 + generatePlaceholders(AtlasDbConstants.MINIMUM_IN_CLAUSE_EXPRESSION_LIMIT) + ")"),
-                        any());
+                        any(Object[].class));
         verify(sqlConnection)
                 .selectResultSetUnregisteredQuery(
                         eq("SELECT short_table_name, table_name FROM atlasdb_table_names WHERE LOWER"
                                 + "(short_table_name) IN ("
                                 + generatePlaceholders(
                                         numberOfEntries - AtlasDbConstants.MINIMUM_IN_CLAUSE_EXPRESSION_LIMIT)
                                 + ")"),
-                        any());
+                        any(Object[].class));
         verifyNoMoreInteractions(sqlConnection);
     }
 
@@ -221,11 +231,12 @@ public void getShortToLongTableNamesFromMappingReturnsEmptyMapIfMappingTableNotP
                 .isEmpty();
     }
 
-    private void mockShortNamesToLongNamesQuery(Map<String, String> shortTableNamesToLongTableNames) {
+    private OngoingStubbing<AgnosticResultSet> mockShortNamesToLongNamesQuery(
+            Map<String, String> shortTableNamesToLongTableNames) {
         OngoingStubbing<AgnosticResultSet> ongoingStubbing = when(sqlConnection.selectResultSetUnregisteredQuery(
                 startsWith("SELECT short_table_name, table_name FROM " + AtlasDbConstants.ORACLE_NAME_MAPPING_TABLE
                         + " WHERE LOWER(short_table_name)"),
-                any()));
+                any(Object[].class)));
 
         for (List<Entry<String, String>> batch : Iterables.partition(
                 shortTableNamesToLongTableNames.entrySet(), AtlasDbConstants.MINIMUM_IN_CLAUSE_EXPRESSION_LIMIT)) {
@@ -236,6 +247,7 @@ private void mockShortNamesToLongNamesQuery(Map<String, String> shortTableNamesT
                     DBType.ORACLE,
                     Map.of("short_table_name", 0, "SHORT_TABLE_NAME", 0, "table_name", 1, "TABLE_NAME", 1)));
         }
+        return ongoingStubbing;
     }
 
     private String generatePlaceholders(int numberOfPlaceholders) {u}(j (8d3be841271bd5b738aeb04915dfea33129f9ecfj4 tatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/knowledge/KnownAbandonedTransactionsImplTest.javaj6 modifiedj. Kj/ Kj8 K&j9 https://github.com/palantir/atlasdb/blob/9867429bb99d5368c458a1da9313cbed8250cf3d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fknowledge%2FKnownAbandonedTransactionsImplTest.javaj; https://github.com/palantir/atlasdb/raw/9867429bb99d5368c458a1da9313cbed8250cf3d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fknowledge%2FKnownAbandonedTransactionsImplTest.javaj= https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fknowledge%2FKnownAbandonedTransactionsImplTest.java?ref=9867429bb99d5368c458a1da9313cbed8250cf3dj? X{  @@ -18,8 +18,8 @@
 
 import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
 import static org.mockito.ArgumentMatchers.anyLong;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.times;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.atLeastOnce;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
@@ -32,16 +32,30 @@
 import java.util.Set;
 import java.util.stream.Collectors;
 import java.util.stream.LongStream;
+import org.junit.Before;
 import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
 
+@RunWith(MockitoJUnitRunner.class)
 public final class KnownAbandonedTransactionsImplTest {
-    private final AbandonedTimestampStore abandonedTimestampStore = mock(AbandonedTimestampStore.class);
-    private final AbandonedTransactionSoftCache softCache = mock(AbandonedTransactionSoftCache.class);
-    private final KnownAbandonedTransactionsImpl knownAbortedTransactions = new KnownAbandonedTransactionsImpl(
-            abandonedTimestampStore,
-            softCache,
-            new DefaultTaggedMetricRegistry(),
-            KnownAbandonedTransactionsImpl.MAXIMUM_CACHE_WEIGHT);
+    @Mock
+    AbandonedTimestampStore abandonedTimestampStore;
+
+    @Mock
+    AbandonedTransactionSoftCache softCache;
+
+    private KnownAbandonedTransactionsImpl knownAbortedTransactions;
+
+    @Before
+    public void before() {
+        knownAbortedTransactions = new KnownAbandonedTransactionsImpl(
+                abandonedTimestampStore,
+                softCache,
+                new DefaultTaggedMetricRegistry(),
+                KnownAbandonedTransactionsImpl.MAXIMUM_CACHE_WEIGHT);
+    }
 
     @Test
     public void testIsKnownAbortedReturnsTrueIfAbortedInSoftCache() {
@@ -141,7 +155,7 @@ public void testReliableCacheEvictsIfWeightLimitReached() {
         // First query for bucket 1 goes to the store
         knownAbortedTransactions.isKnownAbandoned(rangeForBucket.lowerEndpoint());
         verify(abandonedTimestampStore)
-                .getAbandonedTimestampsInRange(rangeForBucket.lowerEndpoint(), rangeForBucket.upperEndpoint());
+                .getAbandonedTimestampsInRange(eq(rangeForBucket.lowerEndpoint()), eq(rangeForBucket.upperEndpoint()));
 
         // Subsequent queries for bucket 1 are resolved from cache
         knownAbortedTransactions.isKnownAbandoned(rangeForBucket.lowerEndpoint());
@@ -155,8 +169,8 @@ public void testReliableCacheEvictsIfWeightLimitReached() {
 
         // Now the query for bucket 1 will go to the futile store due to cache eviction
         knownAbortedTransactions.isKnownAbandoned(rangeForBucket.lowerEndpoint());
-        verify(abandonedTimestampStore, times(2))
-                .getAbandonedTimestampsInRange(rangeForBucket.lowerEndpoint(), rangeForBucket.upperEndpoint());
+        verify(abandonedTimestampStore, atLeastOnce())
+                .getAbandonedTimestampsInRange(eq(rangeForBucket.lowerEndpoint()), eq(rangeForBucket.upperEndpoint()));
     }
 
     @Testu}(j (c197825eb345ab238d541f81b6461fa6f76f3729j4 \timelock-agent/src/test/java/com/palantir/atlasdb/timelock/paxos/PaxosRemoteClientsTest.javaj6 modifiedj. Kj/ Kj8 Kj9 https://github.com/palantir/atlasdb/blob/9867429bb99d5368c458a1da9313cbed8250cf3d/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosRemoteClientsTest.javaj; https://github.com/palantir/atlasdb/raw/9867429bb99d5368c458a1da9313cbed8250cf3d/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosRemoteClientsTest.javaj= https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosRemoteClientsTest.java?ref=9867429bb99d5368c458a1da9313cbed8250cf3dj? X?  @@ -42,32 +42,33 @@
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.TemporaryFolder;
+import org.junit.runner.RunWith;
+import org.mockito.junit.MockitoJUnitRunner;
 
+@RunWith(MockitoJUnitRunner.class)
 @SuppressWarnings("DangerousIdentityKey")
 public class PaxosRemoteClientsTest {
     @Rule
     public final TemporaryFolder temporaryFolder = new TemporaryFolder();
 
-    private PaxosInstallConfiguration paxosInstallConfiguration;
-    private TimeLockInstallConfiguration installConfiguration;
     private PaxosResourcesFactory.TimelockPaxosInstallationContext context;
 
     @Before
     public void setUp() {
-        paxosInstallConfiguration = PaxosInstallConfiguration.builder()
+        PaxosInstallConfiguration paxosInstallConfiguration = PaxosInstallConfiguration.builder()
                 .isNewService(false)
                 .dataDirectory(temporaryFolder.getRoot())
                 .sqlitePersistence(SqlitePaxosPersistenceConfigurations.DEFAULT)
                 .leaderMode(PaxosInstallConfiguration.PaxosLeaderMode.SINGLE_LEADER)
                 .build();
-        installConfiguration = TimeLockInstallConfiguration.builder()
+        TimeLockInstallConfiguration installConfiguration = TimeLockInstallConfiguration.builder()
                 .paxos(paxosInstallConfiguration) // Normally awful, but too onerous to set up
                 .timestampBoundPersistence(
                         ImmutablePaxosTsBoundPersisterConfiguration.builder().build())
                 .build();
         TimeLockDialogueServiceProvider dialogueServiceProvider = mock(TimeLockDialogueServiceProvider.class);
         when(dialogueServiceProvider.createSingleNodeInstrumentedProxy(anyString(), any(), anyBoolean()))
-                .thenAnswer(invocation -> mock(invocation.getArgument(1)));
+                .thenAnswer(invocation -> mock(invocation.<Class<?>>getArgument(1)));
         context = ImmutableTimelockPaxosInstallationContext.builder()
                 .install(installConfiguration)
                 .cluster(ImmutableDefaultClusterConfiguration.builder()u}(j (bd9f498a39c800f0e821ac0c3be99ee698af2e3ej4 
versions.lockj6 modifiedj. Kj/ Kj8 Kj9 _https://github.com/palantir/atlasdb/blob/9867429bb99d5368c458a1da9313cbed8250cf3d/versions.lockj; ^https://github.com/palantir/atlasdb/raw/9867429bb99d5368c458a1da9313cbed8250cf3d/versions.lockj= qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=9867429bb99d5368c458a1da9313cbed8250cf3dj? X  @@ -199,8 +199,8 @@ jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.1 (6 constraints: 8059c3f0)
 junit:junit:4.13.2 (8 constraints: 5a9c5baf)
-net.bytebuddy:byte-buddy:1.14.3 (3 constraints: 7225fcb6)
-net.bytebuddy:byte-buddy-agent:1.12.19 (1 constraints: 780bb1e9)
+net.bytebuddy:byte-buddy:1.14.3 (3 constraints: 3b259091)
+net.bytebuddy:byte-buddy-agent:1.14.1 (1 constraints: 410b3fde)
 net.java.dev.jna:jna:4.1.0 (2 constraints: 6e1bbbad)
 net.jpountz.lz4:lz4:1.3.0 (2 constraints: 971453a0)
 net.ltgt.gradle.incap:incap:0.2 (1 constraints: ea0d3b32)
@@ -292,7 +292,7 @@ org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.0 (3 constraints: c125b5a3)
 org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.5.0 (1 constraints: 4b0ea44e)
 org.jvnet:animal-sniffer-annotation:1.0 (1 constraints: f20b95eb)
 org.mindrot:jbcrypt:0.4 (2 constraints: 4714f171)
-org.mockito:mockito-core:4.10.0 (2 constraints: 57169613)
+org.mockito:mockito-core:5.2.0 (2 constraints: 51165c12)
 org.mpierce.metrics.reservoir:hdrhistogram-metrics-reservoir:1.1.3 (1 constraints: 0d10f991)
 org.objenesis:objenesis:3.3 (2 constraints: c71412ab)
 org.openjdk.jmh:jmh-core:1.36 (2 constraints: f51525d9)u}(j (4fcb3a69829d7035b7cb6c9b36591544f2d55a2dj4 versions.propsj6 modifiedj. Kj/ Kj8 Kj9 `https://github.com/palantir/atlasdb/blob/9867429bb99d5368c458a1da9313cbed8250cf3d/versions.propsj; _https://github.com/palantir/atlasdb/raw/9867429bb99d5368c458a1da9313cbed8250cf3d/versions.propsj= rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=9867429bb99d5368c458a1da9313cbed8250cf3dj? X   @@ -73,7 +73,7 @@ org.jboss.threads:jboss-threads = 3.5.0.Final
 org.jdbi:* = 3.30.0
 org.jmock:jmock* = 2.12.0
 org.mindrot:jbcrypt = 0.4
-org.mockito:mockito-* = 4.8.1
+org.mockito:* = 5.2.0
 org.openjdk.jmh:* = 1.36
 org.reflections:reflections = 0.10.2
 org.rocksdb:rocksdbjni = 7.7.3ueu(bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb}(sha(bad0bfc1628af6e4b938426e5fb3b44d71e9fdebnode_idEC_kwDOAjP5fdoAKGJhZDBiZmMxNjI4YWY2ZTRiOTM4NDI2ZTVmYjNiNDRkNzFlOWZkZWIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-09T13:05:05Zu	committer}(js Jeremy Kongju jkong@palantir.comjw 2023-06-09T13:05:05ZumessageOMerge remote-tracking branch 'origin/develop' into jkong/antithesis-range-two-2tree}(jk (7d52824844ef8920eb6011198f4975e62cced8f1url`https://api.github.com/repos/palantir/atlasdb/git/trees/7d52824844ef8920eb6011198f4975e62cced8f1uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSDI4MACgkQTLdFKain
zjwngQgAvzGs1Fb/R9RgUpJCzlDaL4vOFkmTbKyptQ6D/KrMBUryBwRILbWNsvAE
je6O/86sRzK2D7oLSxrVNFlHGRfVUDdWCfpVGoz5pjoS4BJs3s6FiJffnlxb3sVJ
yleUDtpjUU+iiBYaGZAAZdZERgJCI0lDSCaB9+pzgptUTFmtrk2xPCt3Hf5A8Vs0
lR1AOGdh0SCjJFCHb/xc9dmc6Ys+X2cuwBLCrPCFU13JbWiXTVcqqTj17VnHGpvY
A/qpo+oEU6Rbg/pnPLPGerbnewWjkoRNC7tLwJEkTzSRg/sfwj7p0NrcEDbJuKWE
Y1okUOxZKJxtvuy+Hp5ihIvvU3Oftg==
=vWUC
-----END PGP SIGNATURE-----payloadXT  tree 7d52824844ef8920eb6011198f4975e62cced8f1
parent 69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4
parent 8d65a011e35cfff9bbdb38ad706cc252b977467b
author Jeremy Kong <jkong@palantir.com> 1686315905 +0100
committer Jeremy Kong <jkong@palantir.com> 1686315905 +0100

Merge remote-tracking branch 'origin/develop' into jkong/antithesis-range-two-2
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/bad0bfc1628af6e4b938426e5fb3b44d71e9fdebhtml_urlShttps://github.com/palantir/atlasdb/commit/bad0bfc1628af6e4b938426e5fb3b44d71e9fdebcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/commentsjq }(login
jeremyk-91idJZ jm MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujy }(j 
jeremyk-91j JZ jm MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents](}(jk (69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4j ^https://api.github.com/repos/palantir/atlasdb/commits/69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4j Shttps://github.com/palantir/atlasdb/commit/69a97ce0d2194c7fdd29e6ad2c9d78bebb0225f4u}(jk (8d65a011e35cfff9bbdb38ad706cc252b977467bj ^https://api.github.com/repos/palantir/atlasdb/commits/8d65a011e35cfff9bbdb38ad706cc252b977467bj Shttps://github.com/palantir/atlasdb/commit/8d65a011e35cfff9bbdb38ad706cc252b977467buestats}(totalM	additionsM	deletionsKufiles](}(jk (b5c7b9efcec99e2e4e3b5ccc3eb2f13e725dca1afilename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedj K j KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=bad0bfc1628af6e4b938426e5fb3b44d71e9fdebpatchX8  @@ -15,8 +15,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra1
-    volumes:
-      - /opt/config/volumes/cassandra1:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
@@ -35,8 +33,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra2
-    volumes:
-      - /opt/config/volumes/cassandra2:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
@@ -55,8 +51,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra3
-    volumes:
-      - /opt/config/volumes/cassandra3:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.4u}(jk (f2fc56cca46a09c2ef718c3b7cb6b8d4000c1d8fj atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj https://github.com/palantir/atlasdb/raw/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=bad0bfc1628af6e4b938426e5fb3b44d71e9fdebj @@ -16,4 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-public interface InvalidWitnessedTransactionAction {}
+public interface InvalidWitnessedTransactionAction {
+    // Marker interface
+}u}(jk (284f26075e3ae1ed8320bcbc8402749af631ccddj atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=bad0bfc1628af6e4b938426e5fb3b44d71e9fdebj X5  @@ -23,12 +23,15 @@
 import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
+import java.util.stream.Collectors;
 import org.immutables.value.Value;
 
 @Value.Immutable
 public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedTransactionAction {
     RowColumnRangeReadTransactionAction originalQuery();
 
+    // This is a List rather than a Set or Map because the ordering in which the columns and values are returned is
+    // important (it must match the ordering specified by the contract of row column range reads).
     List<ColumnValue> columnsAndValues();
 
     @Override
@@ -39,14 +42,15 @@ default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
     @Value.Check
     default void check() {
         Set<Integer> knownColumns = new HashSet<>();
-        for (ColumnValue columnValue : columnsAndValues()) {
-            Preconditions.checkState(
-                    !knownColumns.contains(columnValue.column()),
-                    "Duplicate column in columnsAndValues",
-                    SafeArg.of("duplicatedColumn", columnValue.column()),
-                    SafeArg.of("columnsAndValues", columnsAndValues()));
-            knownColumns.add(columnValue.column());
-        }
+        Set<Integer> duplicateColumns = columnsAndValues().stream()
+                .map(ColumnValue::column)
+                .filter(column -> !knownColumns.add(column))
+                .collect(Collectors.toSet());
+        Preconditions.checkState(
+                duplicateColumns.isEmpty(),
+                "Duplicate columns in columnsAndValues",
+                SafeArg.of("duplicateColumns", duplicateColumns),
+                SafeArg.of("columnsAndValues", columnsAndValues()));
     }
 
     static ImmutableWitnessedRowColumnRangeReadTransactionAction.Builder builder() {u}(jk (45696e08a4f868a1913add4a0d3baf07f21c0b48j atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj https://github.com/palantir/atlasdb/raw/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=bad0bfc1628af6e4b938426e5fb3b44d71e9fdebj XO
  @@ -20,11 +20,19 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 
 import com.google.common.collect.ImmutableList;
+<<<<<<< HEAD
+=======
+import com.google.common.collect.ImmutableSet;
+>>>>>>> origin/develop
 import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+<<<<<<< HEAD
+=======
+import java.util.List;
+>>>>>>> origin/develop
 import org.junit.Test;
 
 public class WitnessedRowColumnRangeReadTransactionActionTest {
@@ -44,8 +52,20 @@ public void canCreateWitness() {
 
     @Test
     public void cannotCreateWitnessWithDuplicateColumns() {
+<<<<<<< HEAD
         assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
                         .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))
+=======
+        List<ColumnValue> columnsAndValues = ImmutableList.of(
+                ColumnValue.of(1, 5),
+                ColumnValue.of(5, 1),
+                ColumnValue.of(1, 3),
+                ColumnValue.of(5, 8),
+                ColumnValue.of(9, 99));
+
+        assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .addAllColumnsAndValues(columnsAndValues)
+>>>>>>> origin/develop
                         .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                 .table("foo")
                                 .row(1)
@@ -54,11 +74,18 @@ public void cannotCreateWitnessWithDuplicateColumns() {
                                 .build())
                         .build())
                 .isInstanceOf(SafeIllegalStateException.class)
+<<<<<<< HEAD
                 .hasMessageContaining("Duplicate column in columnsAndValues")
                 .hasExactlyArgs(
                         SafeArg.of("duplicatedColumn", 1),
                         SafeArg.of(
                                 "columnsAndValues",
                                 ImmutableList.of(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))));
+=======
+                .hasMessageContaining("Duplicate columns in columnsAndValues")
+                .hasExactlyArgs(
+                        SafeArg.of("duplicateColumns", ImmutableSet.of(1, 5)),
+                        SafeArg.of("columnsAndValues", columnsAndValues));
+>>>>>>> origin/develop
     }
 }u}(jk (37e59da7fde3c443b1071e9b0c484c2da4e9f50ej latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedj K'j K j K'j https://github.com/palantir/atlasdb/blob/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://github.com/palantir/atlasdb/raw/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=bad0bfc1628af6e4b938426e5fb3b44d71e9fdebj Xk  @@ -37,6 +37,8 @@
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
@@ -142,6 +144,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().transientRowsConfig();
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
+        SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadNoTouchWorkflowConfiguration =
+                configuration.install().singleBusyCellReadsNoTouchConfig();
         BankBalanceWorkflowConfiguration bankBalanceConfig =
                 configuration.install().bankBalanceConfig();
         RandomWorkflowConfiguration randomWorkflowConfig =
@@ -159,6 +163,10 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
                         createSingleBusyCellWorkflowValidator(
                                 transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellReadNoTouchWorkflowValidator(
+                                transactionStoreFactory,
+                                singleBusyCellReadNoTouchWorkflowConfiguration,
+                                environment.lifecycle()),
                         createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
                         createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
 
@@ -244,6 +252,37 @@ private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
                 SerializableInvariantLogReporter.INSTANCE);
     }
 
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellReadNoTouchWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellReadNoTouchWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-read")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-write")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellReadNoTouchWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellReadNoTouchWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
     private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             RingWorkflowConfiguration workflowConfig,u}(jk (388054e20c18c9c8d612db0e6d9ac1018b7f9b14j atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://github.com/palantir/atlasdb/raw/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=bad0bfc1628af6e4b938426e5fb3b44d71e9fdebj X)  @@ -20,6 +20,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
@@ -45,5 +46,7 @@ public interface WorkloadServerInstallConfiguration {
 
     RandomWorkflowConfiguration randomConfig();
 
+    SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadsNoTouchConfig();
+
     boolean exitAfterRunning();
 }u}(jk (da4b728986375bd8565c46e930098c1a684a145cj Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=bad0bfc1628af6e4b938426e5fb3b44d71e9fdebj X  @@ -41,4 +41,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: false
\ No newline at end of fileu}(jk (50dbd20de7876d2a9cb53eef291722b8b19cd0b5j Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://github.com/palantir/atlasdb/raw/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=bad0bfc1628af6e4b938426e5fb3b44d71e9fdebj Xr  @@ -78,4 +78,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single_busy_cell_no_touch_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: trueu}(jk (7bd7f984a5ef15a2179c415620f48a0737332c43j Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=bad0bfc1628af6e4b938426e5fb3b44d71e9fdebj X  @@ -42,4 +42,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: true
\ No newline at end of fileu}(jk (cfa7bb7b766851d22237ea49091b9cce6c50c789j atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowConfiguration.javaj addedj K j K j K j https://github.com/palantir/atlasdb/blob/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.java?ref=bad0bfc1628af6e4b938426e5fb3b44d71e9fdebj Xz  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellReadNoTouchWorkflowConfiguration.TYPE)
+public interface SingleBusyCellReadNoTouchWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell-reads-no-touch";
+
+    TableConfiguration tableConfiguration();
+}u}(jk (ae852affb871f77d186c4b71ecca052b5aeeed40j tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflows.javaj addedj Kjj K j Kjj https://github.com/palantir/atlasdb/blob/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaj https://github.com/palantir/atlasdb/raw/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.java?ref=bad0bfc1628af6e4b938426e5fb3b44d71e9fdebj X  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions. This workflow differs
+ * from the {@link SingleBusyCellWorkflows} in the way that its read transaction only does read and doesn't touch the
+ * cell with its current value or -1. This allows us to exercise the code path of read-write transaction that only do
+ * reads, which is necessary to catch bugs like sweep deleting entries under a transaction if it doesn't check for
+ * immutableTimestamp lock.
+ */
+public final class SingleBusyCellReadNoTouchWorkflows {
+    private SingleBusyCellReadNoTouchWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReads(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReads(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(
+                        txn -> txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL))))
+                .collect(Collectors.toList());
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
+    }
+}uT      }(jk (9002a5ed3382a35694d630c784b417cd15befa46j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj https://github.com/palantir/atlasdb/raw/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=bad0bfc1628af6e4b938426e5fb3b44d71e9fdebj XA  @@ -38,6 +38,7 @@
 import java.security.SecureRandom;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Objects;
 import java.util.Optional;
 import java.util.Set;
 import java.util.stream.Collectors;
@@ -141,10 +142,12 @@ private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActi
                 .orElseThrow(() -> new SafeIllegalStateException(
                         "Expected to find a read of the summary row", SafeArg.of("actions", actions)));
         WitnessedReadTransactionAction normalRowRead = readTransactionActions.stream()
-                .filter(action -> action.cell().key() != SUMMARY_ROW)
+                .filter(action -> Objects.equals(
+                                action.cell().key(), summaryRowRead.cell().column())
+                        && action.cell().column() == COLUMN)
                 .findAny()
                 .orElseThrow(() -> new SafeIllegalStateException(
-                        "Expected to find a read of a normal row", SafeArg.of("actions", actions)));
+                        "Expected to find a read of a corresponding normal row", SafeArg.of("actions", actions)));
         if (!summaryRowRead.value().equals(normalRowRead.value())) {
             return Stream.of(CrossCellInconsistency.builder()
                     .putInconsistentValues(u}(jk (ce49e27d10355fb6f5b71d88a206899b12b7f25bj xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javaj addedj K}j K j K}j https://github.com/palantir/atlasdb/blob/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=bad0bfc1628af6e4b938426e5fb3b44d71e9fdebj X  @@ -0,0 +1,125 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Sets;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Collection;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class SingleBusyCellReadNoTouchWorkflowsTest {
+    private static final String TABLE_NAME = "busy.readnotouch.cell";
+    private static final int ITERATION_COUNT = 1_000;
+    private static final SingleBusyCellReadNoTouchWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow workflow = SingleBusyCellReadNoTouchWorkflows.create(
+            transactionStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)),
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)));
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void transactionsDoNotConflictExcessively() {
+        WorkflowHistory workflowHistory = workflow.run();
+        assertThat(workflowHistory.history()).hasSizeBetween(ITERATION_COUNT / 2, ITERATION_COUNT);
+    }
+
+    @Test
+    public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).allSatisfy(action -> assertThat(action)
+                .isInstanceOfSatisfying(WitnessedSingleCellTransactionAction.class, singleCellAction -> {
+                    assertThat(singleCellAction.table()).isEqualTo(TABLE_NAME);
+                    assertThat(singleCellAction.cell()).isEqualTo(SingleBusyCellReadNoTouchWorkflows.BUSY_CELL);
+                }));
+    }
+
+    @Test
+    public void targetCellIsReadModifiedAndDeleted() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+
+    @Test
+    public void readTransactionsDontDoWrites() {
+        WorkflowHistory workflowHistory = workflow.run();
+
+        Set<WitnessedTransaction> witnessedTransactionsWithReads = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream().anyMatch(WitnessedReadTransactionAction.class::isInstance))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> witnessedTransactionsWithWritesOrDeletes = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream()
+                        .anyMatch(action -> action instanceof WitnessedWriteTransactionAction
+                                || action instanceof WitnessedDeleteTransactionAction))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> transactionsWithReadsAndWritesOrDeletes =
+                Sets.intersection(witnessedTransactionsWithReads, witnessedTransactionsWithWritesOrDeletes);
+
+        assertThat(transactionsWithReadsAndWritesOrDeletes).isEmpty();
+    }
+}u}(jk (67649f06c0f6d4e2b55d3a069e6c8885508b4385j latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj modifiedj Kxj Kj Kyj https://github.com/palantir/atlasdb/blob/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=bad0bfc1628af6e4b938426e5fb3b44d71e9fdebj X  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.google.common.collect.ImmutableList;
@@ -41,8 +42,10 @@
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.stream.Collectors;
@@ -185,7 +188,123 @@ public void invariantReportsViolationsFromTransactionHistory() {
                 .build();
         invariant.accept(falseHistory, reference::set);
 
-        assertThat(reference.get()).hasSize(ITERATION_COUNT - 1);
+        assertThat(reference.get())
+                .hasSize(ITERATION_COUNT - 1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
+        WitnessedReadTransactionAction readWitness = WitnessedReadTransactionAction.of(
+                TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of the summary row")
+                .hasExactlyArgs(SafeArg.of("actions", ImmutableList.of(readWitness)));
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCorrespondingPrimaryRow() {
+        List<WitnessedTransactionAction> actions = ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of a corresponding normal row")
+                .hasExactlyArgs(SafeArg.of("actions", actions));
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothEmpty() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions = getReadWitnessesForSingleTransaction(
+                2, Optional.of(TransientRowsWorkflows.VALUE), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsPresentAndPrimaryIsAbsent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.of(TransientRowsWorkflows.VALUE), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsAbsentAndPrimaryIsPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    private ImmutableWorkflowHistory getWorkflowHistory(List<WitnessedTransactionAction> actions) {
+        return ImmutableWorkflowHistory.builder()
+                .transactionStore(transactionStore)
+                .history(ImmutableList.of(ImmutableFullyWitnessedTransaction.builder()
+                        .addAllActions(actions)
+                        .startTimestamp(0L)
+                        .commitTimestamp(1L)
+                        .build()))
+                .build();
+    }
+
+    private static List<WitnessedTransactionAction> getReadWitnessesForSingleTransaction(
+            int columnIndex, Optional<Integer> summaryValue, Optional<Integer> primaryValue) {
+        return ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, columnIndex),
+                        summaryValue),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(columnIndex, TransientRowsWorkflows.COLUMN),
+                        primaryValue));
+    }
+
+    private static void inconsistencyInvolvesPairOfPrimaryAndSummaryCells(CrossCellInconsistency inconsistency) {
+        Map<TableAndWorkloadCell, Optional<Integer>> readValues = inconsistency.inconsistentValues();
+        TableAndWorkloadCell summaryCell = readValues.keySet().stream()
+                .filter(tableAndWorkloadCell -> tableAndWorkloadCell.cell().key() == TransientRowsWorkflows.SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of the summary row", SafeArg.of("readValues", readValues)));
+        TableAndWorkloadCell primaryCell = getPrimaryCellForSummaryCell(summaryCell);
+
+        assertThat(readValues.keySet()).containsExactlyInAnyOrder(summaryCell, primaryCell);
+        assertThat(readValues.values())
+                .containsExactlyInAnyOrder(Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+    }
+
+    // This workflow uses a single table, where the summary row's columns correspond to rows with primary values.
+    private static TableAndWorkloadCell getPrimaryCellForSummaryCell(TableAndWorkloadCell summaryCell) {
+        return TableAndWorkloadCell.of(
+                summaryCell.tableName(),
+                ImmutableWorkloadCell.of(summaryCell.cell().column(), TransientRowsWorkflows.COLUMN));
     }
 
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(u}(jk (351dc558cfb12f3027ca880f55c00742ee516cbdj  changelog/0.870.0/pr-6613.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/changelog%2F0.870.0%2Fpr-6613.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb/changelog%2F0.870.0%2Fpr-6613.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.870.0%2Fpr-6613.v2.yml?ref=bad0bfc1628af6e4b938426e5fb3b44d71e9fdebj @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: There now exists an Antithesis workflow that exercises read-write transactions
+    that only do reads.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6613ueu(88f7a28cb52b773a3f069ba0d4bf3448e54266fa}(sha(88f7a28cb52b773a3f069ba0d4bf3448e54266fanode_idEC_kwDOAjP5fdoAKDg4ZjdhMjhjYjUyYjc3M2EzZjA2OWJhMGQ0YmYzNDQ4ZTU0MjY2ZmEcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-16T00:06:40Zu	committer}(j^ svc-autoreleasej` -pd-foundry-infrastructure-notify@palantir.comjb 2023-05-16T00:06:40Zumessage#Autorelease 0.854.0-rc19

[skip ci]tree}(jV (5d2ecf384a10cc990764db3777576cdc5dbd32b9url`https://api.github.com/repos/palantir/atlasdb/git/trees/5d2ecf384a10cc990764db3777576cdc5dbd32b9ujn bhttps://api.github.com/repos/palantir/atlasdb/git/commits/88f7a28cb52b773a3f069ba0d4bf3448e54266fa
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRiyREACgkQhbrR8ip7mDAwqAD9FHz+bjX/ORJEeTc+0WYwLdJR
wX3UDVR63JxNMUGW3r8A/R9sFvMfPru8IhloxNqCZoTH1BU4HgRbDLONcsZvxnEX
=1vSP
-----END PGP SIGNATURE-----
payloadX)  tree 5d2ecf384a10cc990764db3777576cdc5dbd32b9
parent 37491be5f60d580fde1d0112266867e26ce73422
author aalouane <30903736+ergo14@users.noreply.github.com> 1684195600 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684195600 +0000

Autorelease 0.854.0-rc19

[skip ci]uujn ^https://api.github.com/repos/palantir/atlasdb/commits/88f7a28cb52b773a3f069ba0d4bf3448e54266fahtml_urlShttps://github.com/palantir/atlasdb/commit/88f7a28cb52b773a3f069ba0d4bf3448e54266facomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/88f7a28cb52b773a3f069ba0d4bf3448e54266fa/commentsj\ }(loginergo14idJjX MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jn #https://api.github.com/users/ergo14j| https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujd }(j svc-autoreleasej J(jX MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5jn ,https://api.github.com/users/svc-autoreleasej| "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(jV (37491be5f60d580fde1d0112266867e26ce73422jn ^https://api.github.com/repos/palantir/atlasdb/commits/37491be5f60d580fde1d0112266867e26ce73422j| Shttps://github.com/palantir/atlasdb/commit/37491be5f60d580fde1d0112266867e26ce73422uastats}(totalK 	additionsK 	deletionsK ufiles]u(29d87fb6eb0a6002e4d35354a7a95b3b4c227353}(sha(29d87fb6eb0a6002e4d35354a7a95b3b4c227353node_idEC_kwDOAjP5fdoAKDI5ZDg3ZmI2ZWIwYTYwMDJlNGQzNTM1NGE3YTk1YjNiNGMyMjczNTMcommit}(author}(nameChris Van de Veldeemailcvandevelde@palantir.comdate2023-04-03T02:43:34Zu	committer}(j Chris Van de Veldej cvandevelde@palantir.comj 2023-04-03T02:43:34ZumessageEmptytree}(j (49c2cd02d4db7e6861f24820281f114c0ae559cburl`https://api.github.com/repos/palantir/atlasdb/git/trees/49c2cd02d4db7e6861f24820281f114c0ae559cbuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/29d87fb6eb0a6002e4d35354a7a95b3b4c227353
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEfsytHu2QbUsz5QamhCdbnbxuCwoFAmQqPVoACgkQhCdbnbxu
Cwob9wf/dIdL9rhJoTN4nOoEqXcMwTBG/W6VCH+i2yskaR5Q1/f7GXT3K+yqXBU+
PB7eamphw8o1BWLWJufdNE6e3s3ZVNuNRAHe75A2cNx7poBDZNUnGP+clTZ8sBnw
BInlrOxO+HlO06OrvZD1zj4oVkMax768W44N62ttesawK6LVyOw++wBynHB3Llfc
LbR8qPO8xHclKq9RDTBBcrDW9syNV+O+1BAcE6CygQRG8lA+9mU0P34bpZLIKZ1t
B3vxX0f95Yp9XuIHH94C0wHZlw9jeujGEjjB6Z34L2I+USW9HnZHQoPFAA0g33mf
uSiHBBJeMELQ/wN4nl4uX97mwVMnSg==
=Yw89
-----END PGP SIGNATURE-----payloadtree 49c2cd02d4db7e6861f24820281f114c0ae559cb
parent 562c62fca235e8ec71b3fb6e4076a25d591ed08a
author Chris Van de Velde <cvandevelde@palantir.com> 1680489814 +1000
committer Chris Van de Velde <cvandevelde@palantir.com> 1680489814 +1000

Empty
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/29d87fb6eb0a6002e4d35354a7a95b3b4c227353html_urlShttps://github.com/palantir/atlasdb/commit/29d87fb6eb0a6002e4d35354a7a95b3b4c227353comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/29d87fb6eb0a6002e4d35354a7a95b3b4c227353/commentsj }(loginCVdV-auidJDN j MDQ6VXNlcjY5MjI2MDUy
avatar_url4https://avatars.githubusercontent.com/u/69226052?v=4gravatar_idh5j $https://api.github.com/users/CVdV-auj https://github.com/CVdV-au
followers_url.https://api.github.com/users/CVdV-au/followers
following_url;https://api.github.com/users/CVdV-au/following{/other_user}	gists_url4https://api.github.com/users/CVdV-au/gists{/gist_id}starred_url;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/CVdV-au/subscriptionsorganizations_url)https://api.github.com/users/CVdV-au/orgs	repos_url*https://api.github.com/users/CVdV-au/repos
events_url5https://api.github.com/users/CVdV-au/events{/privacy}received_events_url4https://api.github.com/users/CVdV-au/received_eventstypeUser
site_adminuj }(j CVdV-auj JDN j MDQ6VXNlcjY5MjI2MDUyj 4https://avatars.githubusercontent.com/u/69226052?v=4j h5j $https://api.github.com/users/CVdV-auj https://github.com/CVdV-auj .https://api.github.com/users/CVdV-au/followersj ;https://api.github.com/users/CVdV-au/following{/other_user}j 4https://api.github.com/users/CVdV-au/gists{/gist_id}j ;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}j 2https://api.github.com/users/CVdV-au/subscriptionsj )https://api.github.com/users/CVdV-au/orgsj *https://api.github.com/users/CVdV-au/reposj   5https://api.github.com/users/CVdV-au/events{/privacy}j  4https://api.github.com/users/CVdV-au/received_eventsj  Userj  uparents]}(j (562c62fca235e8ec71b3fb6e4076a25d591ed08aj ^https://api.github.com/repos/palantir/atlasdb/commits/562c62fca235e8ec71b3fb6e4076a25d591ed08aj Shttps://github.com/palantir/atlasdb/commit/562c62fca235e8ec71b3fb6e4076a25d591ed08auastats}(totalK 	additionsK 	deletionsK ufiles]u(0c45af25f48364f07bd9330e03ce07c0127615f4}(sha(0c45af25f48364f07bd9330e03ce07c0127615f4node_idEC_kwDOAjP5fdoAKDBjNDVhZjI1ZjQ4MzY0ZjA3YmQ5MzMwZTAzY2UwN2MwMTI3NjE1ZjQcommit}(author}(name	Tom Papkeemail+43675490+Toemmsche@users.noreply.github.comdate2023-06-19T08:19:39Zu	committer}(j.  GitHubj0  noreply@github.comj2  2023-06-19T08:19:39ZumessageAdd metrics for number of requested cell/row-level commit locks (#6602)

Add metrics for number of requested cell/row-level commit lockstree}(j&  (500ff8d85a8e1d926aa07df860e1c8d0e75c65e7url`https://api.github.com/repos/palantir/atlasdb/git/trees/500ff8d85a8e1d926aa07df860e1c8d0e75c65e7uj>  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0c45af25f48364f07bd9330e03ce07c0127615f4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkkA+bCRBK7hj4Ov3rIwAAROMIAIQgsHIMEYj9xyUeBMzTCm4B
zNmodhnpa+xx9IyKU8AfRkpe0ELAm1y/ZlYmo9R91H7Say4ZXy6TLzq5BZ1xL3qZ
5AHY2gX5JqvrubqlPaulGcyT0yCP5kSkbZ05s5yxSHy8YHJ9BrVw2Jyf5psl9Ch0
XrxnAD7NYK41bUjw6gLixoY5ryZfKV1Lb3GX4rFbFgvTrnqMekd5kNqi8POobyDS
ayb3R1xbo6/SOIF/XQXKkMYiFB4cAqYo2m66rmQ3UjeujU82ulLT90FpnxLg/jfD
622dTeyZ465Ux91MuHcFwRQ0UX4SvKkZV5SR0FDwwaXhqYGgiqvrCPjldb5zJsA=
=j5vm
-----END PGP SIGNATURE-----
payloadXo  tree 500ff8d85a8e1d926aa07df860e1c8d0e75c65e7
parent 10910999da15654c469f26269b058022aa927881
author Tom Papke <43675490+Toemmsche@users.noreply.github.com> 1687162779 +0200
committer GitHub <noreply@github.com> 1687162779 +0000

Add metrics for number of requested cell/row-level commit locks (#6602)

Add metrics for number of requested cell/row-level commit locks
uuj>  ^https://api.github.com/repos/palantir/atlasdb/commits/0c45af25f48364f07bd9330e03ce07c0127615f4html_urlShttps://github.com/palantir/atlasdb/commit/0c45af25f48364f07bd9330e03ce07c0127615f4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0c45af25f48364f07bd9330e03ce07c0127615f4/commentsj,  }(login	ToemmscheidJboj(  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j>  &https://api.github.com/users/ToemmschejL  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj4  }(jQ  web-flowjS  J/j(  MDQ6VXNlcjE5ODY0NDQ3jU  4https://avatars.githubusercontent.com/u/19864447?v=4jW  h5j>  %https://api.github.com/users/web-flowjL  https://github.com/web-flowjZ  /https://api.github.com/users/web-flow/followersj\  <https://api.github.com/users/web-flow/following{/other_user}j^  5https://api.github.com/users/web-flow/gists{/gist_id}j`  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jb  3https://api.github.com/users/web-flow/subscriptionsjd  *https://api.github.com/users/web-flow/orgsjf  +https://api.github.com/users/web-flow/reposjh  6https://api.github.com/users/web-flow/events{/privacy}jj  5https://api.github.com/users/web-flow/received_eventsjl  Userjn  uparents]}(j&  (10910999da15654c469f26269b058022aa927881j>  ^https://api.github.com/repos/palantir/atlasdb/commits/10910999da15654c469f26269b058022aa927881jL  Shttps://github.com/palantir/atlasdb/commit/10910999da15654c469f26269b058022aa927881uastats}(totalǨ	additionsK	deletionsKufiles](}(j&  (783bc3b5467ffef2ad1e64d4a8aefd0da4ee44ddfilenamejatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/TransactionCommitLockInfo.javastatusaddedj  K%j  K changesK%blob_urlhttps://github.com/palantir/atlasdb/blob/0c45af25f48364f07bd9330e03ce07c0127615f4/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0c45af25f48364f07bd9330e03ce07c0127615f4/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.java?ref=0c45af25f48364f07bd9330e03ce07c0127615f4patchXg  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api.expectations;
+
+import org.immutables.value.Value;
+
+/**
+ * Data about the amount of commit locks requested by a transaction.
+ */
+@Value.Immutable
+public interface TransactionCommitLockInfo {
+
+    /**
+     * The number of cell-level locks requested as part of the commit protocol (excluding any user-defined locking).
+     */
+    long cellCommitLocksRequested();
+
+    /**
+     * The number of row-level locks requested as part of the commit protocol (excluding any user-defined locking).
+     * For write transactions, this includes the single row lock that is requested for the transaction table itself.
+     */
+    long rowCommitLocksRequested();
+}u}(j&  (a609938800595c6a4ed1b28154a58151f7d04af3j  datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ExpectationsAwareTransaction.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/0c45af25f48364f07bd9330e03ce07c0127615f4/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj  https://github.com/palantir/atlasdb/raw/0c45af25f48364f07bd9330e03ce07c0127615f4/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.java?ref=0c45af25f48364f07bd9330e03ce07c0127615f4j  X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 /**
@@ -32,6 +33,11 @@ public interface ExpectationsAwareTransaction extends Transaction {
      */
     TransactionReadInfo getReadInfo();
 
+    /**
+     * Returns transaction commit lock information.
+     */
+    TransactionCommitLockInfo getCommitLockInfo();
+
     /**
      * Update TEX data collection metrics for (post-mortem) transactions.
      * Expected usage is that this method is called once after the transaction has been committed or aborted.u}(j&  (6795ea4a937624401807d2b3742ab596ad23984bj  natlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingExpectationsAwareTransaction.javaj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/0c45af25f48364f07bd9330e03ce07c0127615f4/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj  https://github.com/palantir/atlasdb/raw/0c45af25f48364f07bd9330e03ce07c0127615f4/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.java?ref=0c45af25f48364f07bd9330e03ce07c0127615f4j  X  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.transaction.impl;
 
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 public abstract class ForwardingExpectationsAwareTransaction extends ForwardingTransaction
@@ -34,6 +35,11 @@ public TransactionReadInfo getReadInfo() {
         return delegate().getReadInfo();
     }
 
+    @Override
+    public TransactionCommitLockInfo getCommitLockInfo() {
+        return delegate().getCommitLockInfo();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         delegate().reportExpectationsCollectedData();u}(j&  (1af8e94c18216811717f33916f106b41dc1f2a48j  `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj  modifiedj  Kj  Kj  K!j  https://github.com/palantir/atlasdb/blob/0c45af25f48364f07bd9330e03ce07c0127615f4/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj  https://github.com/palantir/atlasdb/raw/0c45af25f48364f07bd9330e03ce07c0127615f4/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=0c45af25f48364f07bd9330e03ce07c0127615f4j  X  @@ -97,6 +97,8 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
@@ -156,6 +158,7 @@
 import java.util.List;
 import java.util.Map;
 import java.util.NavigableMap;
+import java.util.NavigableSet;
 import java.util.NoSuchElementException;
 import java.util.Objects;
 import java.util.Optional;
@@ -267,6 +270,8 @@ private enum State {
     protected final SuccessCallbackManager successCallbackManager = new SuccessCallbackManager();
     private final CommitTimestampLoader commitTimestampLoader;
     private final ExpectationsMetrics expectationsDataCollectionMetrics;
+    private volatile long cellCommitLocksRequested = 0L;
+    private volatile long rowCommitLocksRequested = 0L;
 
     protected volatile boolean hasReads;
 
@@ -2448,20 +2453,25 @@ private void logCommitLockTenureExceeded(
 
     protected Set<LockDescriptor> getLocksForWrites() {
         Set<LockDescriptor> result = new HashSet<>();
+        long cellLockCount = 0L;
+        long rowLockCount = 0L;
         for (TableReference tableRef : writesByTable.keySet()) {
             ConflictHandler conflictHandler = getConflictHandlerForTable(tableRef);
             if (conflictHandler.lockCellsForConflicts()) {
-                for (Cell cell : getLocalWrites(tableRef).keySet()) {
+                NavigableSet<Cell> cellsToLock = getLocalWrites(tableRef).keySet();
+                for (Cell cell : cellsToLock) {
                     result.add(AtlasCellLockDescriptor.of(
                             tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName()));
                 }
+                cellLockCount = cellsToLock.size();
             }
 
             if (conflictHandler.lockRowsForConflicts()) {
                 Cell lastCell = null;
                 for (Cell cell : getLocalWrites(tableRef).keySet()) {
                     if (lastCell == null || !Arrays.equals(lastCell.getRowName(), cell.getRowName())) {
                         result.add(AtlasRowLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName()));
+                        rowLockCount++;
                     }
                     lastCell = cell;
                 }
@@ -2470,6 +2480,8 @@ protected Set<LockDescriptor> getLocksForWrites() {
         result.add(AtlasRowLockDescriptor.of(
                 TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
                 TransactionConstants.getValueForTimestamp(getStartTimestamp())));
+        cellCommitLocksRequested = cellLockCount;
+        rowCommitLocksRequested = rowLockCount + 1;
         return result;
     }
 
@@ -2607,6 +2619,14 @@ public TransactionReadInfo getReadInfo() {
         return keyValueService.getOverallReadInfo();
     }
 
+    @Override
+    public TransactionCommitLockInfo getCommitLockInfo() {
+        return ImmutableTransactionCommitLockInfo.builder()
+                .cellCommitLocksRequested(cellCommitLocksRequested)
+                .rowCommitLocksRequested(rowCommitLocksRequested)
+                .build();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         if (isStillRunning()) {
@@ -2616,18 +2636,25 @@ public void reportExpectationsCollectedData() {
             return;
         }
 
-        reportExpectationsCollectedData(getAgeMillis(), getReadInfo(), expectationsDataCollectionMetrics);
+        reportExpectationsCollectedData(
+                getAgeMillis(), getReadInfo(), getCommitLockInfo(), expectationsDataCollectionMetrics);
     }
 
     @VisibleForTesting
     static void reportExpectationsCollectedData(
-            long ageMillis, TransactionReadInfo readInfo, ExpectationsMetrics metrics) {
+            long ageMillis,
+            TransactionReadInfo readInfo,
+            TransactionCommitLockInfo commitLockInfo,
+            ExpectationsMetrics metrics) {
         metrics.ageMillis().update(ageMillis);
         metrics.bytesRead().update(readInfo.bytesRead());
         metrics.kvsReads().update(readInfo.kvsCalls());
 
         readInfo.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
                 .update(kvsCallReadInfo.bytesRead()));
+
+        metrics.cellCommitLocksRequested().update(commitLockInfo.cellCommitLocksRequested());
+        metrics.rowCommitLocksRequested().update(commitLockInfo.rowCommitLocksRequested());
     }
 
     private long getStartTimestamp() {u}(j&  (89147dc77a01612d3af8f3130ea758e4445537c7j  5atlasdb-impl-shared/src/main/metrics/expectations.ymlj  modifiedj  Kj  K j  Kj  https://github.com/palantir/atlasdb/blob/0c45af25f48364f07bd9330e03ce07c0127615f4/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj  https://github.com/palantir/atlasdb/raw/0c45af25f48364f07bd9330e03ce07c0127615f4/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=0c45af25f48364f07bd9330e03ce07c0127615f4j  X  @@ -17,3 +17,9 @@ namespaces:
       mostKvsBytesReadInSingleCall:
         docs: Most bytes read by a transaction in one Atlas kvs read call
         type: histogram
+      cellCommitLocksRequested:
+        docs: Number of cell-level commit locks requested as part of the commit protocol
+        type: histogram
+      rowCommitLocksRequested:
+        docs: Number of row-level commit locks requested as part of the commit protocol
+        type: histogramu}(j&  (283b84abcfb6697b50fee5fa0db0dbc2d58dfab8j  matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javaj  modifiedj  K&j  Kj  K2j  https://github.com/palantir/atlasdb/blob/0c45af25f48364f07bd9330e03ce07c0127615f4/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj  https://github.com/palantir/atlasdb/raw/0c45af25f48364f07bd9330e03ce07c0127615f4/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=0c45af25f48364f07bd9330e03ce07c0127615f4j  XI  @@ -18,7 +18,9 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.codahale.metrics.Histogram;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
@@ -34,6 +36,12 @@ public final class ExpectationsMetricsReportingTest {
     private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
             ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
 
+    private static final ImmutableTransactionCommitLockInfo BLANK_COMMIT_LOCK_INFO =
+            ImmutableTransactionCommitLockInfo.builder()
+                    .cellCommitLocksRequested(0L)
+                    .rowCommitLocksRequested(0L)
+                    .build();
+
     private ExpectationsMetrics metrics;
 
     @Before
@@ -44,40 +52,58 @@ public void setUp() {
     @Test
     public void ageReported() {
         long age = 129L;
-        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, metrics);
-        assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
+        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, BLANK_COMMIT_LOCK_INFO, metrics);
+        assertHistogramHasSingleValue(metrics.ageMillis(), age);
     }
 
     @Test
     public void bytesReadReported() {
         long bytes = 1290L;
-        reportMetrics(BLANK_READ_INFO.withBytesRead(bytes));
-        assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
+        reportMetricsWithReadInfo(BLANK_READ_INFO.withBytesRead(bytes));
+        assertHistogramHasSingleValue(metrics.bytesRead(), bytes);
     }
 
     @Test
     public void kvsCallsReported() {
         long calls = 12L;
-        reportMetrics(BLANK_READ_INFO.withKvsCalls(calls));
-        assertThat(metrics.kvsReads().getSnapshot().getValues()).containsOnly(calls);
+        reportMetricsWithReadInfo(BLANK_READ_INFO.withKvsCalls(calls));
+        assertHistogramHasSingleValue(metrics.kvsReads(), calls);
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
-        reportMetrics(BLANK_READ_INFO);
+        reportMetricsWithReadInfo(BLANK_READ_INFO);
         assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
                 .isEmpty();
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
         long bytes = 193L;
-        reportMetrics(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
-        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
-                .containsOnly(bytes);
+        reportMetricsWithReadInfo(
+                BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        assertHistogramHasSingleValue(metrics.mostKvsBytesReadInSingleCall(), bytes);
+    }
+
+    @Test
+    public void commitLocksRequestsReported() {
+        SnapshotTransaction.reportExpectationsCollectedData(
+                0L,
+                BLANK_READ_INFO,
+                ImmutableTransactionCommitLockInfo.builder()
+                        .cellCommitLocksRequested(1)
+                        .rowCommitLocksRequested(2)
+                        .build(),
+                metrics);
+        assertHistogramHasSingleValue(metrics.cellCommitLocksRequested(), 1);
+        assertHistogramHasSingleValue(metrics.rowCommitLocksRequested(), 2);
+    }
+
+    private void reportMetricsWithReadInfo(TransactionReadInfo readInfo) {
+        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, BLANK_COMMIT_LOCK_INFO, metrics);
     }
 
-    private void reportMetrics(TransactionReadInfo readInfo) {
-        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, metrics);
+    private void assertHistogramHasSingleValue(Histogram histogram, long expected) {
+        assertThat(histogram.getSnapshot().getValues()).containsOnly(expected);
     }
 }u}(j&  (25c1bb6a752a65ce98d2dc58adc485085adacef9j  latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/palantir/atlasdb/blob/0c45af25f48364f07bd9330e03ce07c0127615f4/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj  https://github.com/palantir/atlasdb/raw/0c45af25f48364f07bd9330e03ce07c0127615f4/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=0c45af25f48364f07bd9330e03ce07c0127615f4j  X  @@ -240,7 +240,9 @@ public void registersMetrics() throws InterruptedException {
                 .contains(FINISH_TASK_METRIC_NAME)
                 .contains("expectations.bytesRead")
                 .contains("expectations.kvsReads")
-                .contains("expectations.ageMillis");
+                .contains("expectations.ageMillis")
+                .contains("expectations.cellCommitLocksRequested")
+                .contains("expectations.rowCommitLocksRequested");
         assertThat(registry.timer(MetricName.builder()
                                 .safeName(SETUP_TASK_METRIC_NAME)
                                 .build())u}(j&  (fba51b35002bb4c872397d2c09bc57b02ddd8136j  eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj  modifiedj  K9j  K j  K9j  https://github.com/palantir/atlasdb/blob/0c45af25f48364f07bd9330e03ce07c0127615f4/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj  https://github.com/palantir/atlasdb/raw/0c45af25f48364f07bd9330e03ce07c0127615f4/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=0c45af25f48364f07bd9330e03ce07c0127615f4j  Xi  @@ -94,6 +94,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.impl.metrics.DefaultMetricsFilterEvaluationContext;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.ToplistDeltaFilteringTableLevelMetricsController;
@@ -2371,6 +2372,62 @@ public void testConstraintsViolated() {
                         eq(AtlasDbConstraintCheckingMode.FULL_CONSTRAINT_CHECKING_THROWS_EXCEPTIONS));
     }
 
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializableCell() {
+        // Will request commit locks for cells, but not rows
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_CELL);
+
+        // We can only get the commit info from a snapshot transaction
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        // For write transactions, we always lock an additional row in the transaction table
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(0 + 1);
+    }
+
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializable() {
+        // Will request commit locks for rows, but not cells
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(0);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(2 + 1);
+    }
+
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigration_sameRow() {
+        // Will request commit locks for cells and rows
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_LOCK_LEVEL_MIGRATION);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(
+                TABLE,
+                ImmutableMap.of(Cell.create(PtBytes.toBytes("same_row"), PtBytes.toBytes("column1")), TEST_VALUE));
+        txn.put(
+                TABLE,
+                ImmutableMap.of(
+                        Cell.create(
+                                PtBytes.toBytes("same_row"),
+                                // Writing to the same row, but different column/cell
+                                PtBytes.toBytes("column2")),
+                        TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
+    }
+
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,u}(j&  (34c425f71f242ce114bab888f8034960c6b716e7j  $changelog/@unreleased/pr-6602.v2.ymlj  addedj  Kj  K j  Kj  |https://github.com/palantir/atlasdb/blob/0c45af25f48364f07bd9330e03ce07c0127615f4/changelog%2F%40unreleased%2Fpr-6602.v2.ymlj  {https://github.com/palantir/atlasdb/raw/0c45af25f48364f07bd9330e03ce07c0127615f4/changelog%2F%40unreleased%2Fpr-6602.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6602.v2.yml?ref=0c45af25f48364f07bd9330e03ce07c0127615f4j  @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Add metrics for number of requested cell/row-level commit locks
+  links:
+  - https://github.com/palantir/atlasdb/pull/6602ueu(96c269d3191b1f411f0dc575a6e89dc08834da68}(sha(96c269d3191b1f411f0dc575a6e89dc08834da68node_idEC_kwDOAjP5fdoAKDk2YzI2OWQzMTkxYjFmNDExZjBkYzU3NWE2ZTg5ZGMwODgzNGRhNjgcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-03-24T11:21:19Zu	committer}(j  GitHubj  noreply@github.comj  2023-03-24T11:21:19ZumessageKFix config for standalone workload server docker with in memory kvs (#6482)tree}(j  (fea21e272706a7b1dae8bb51214cfbd9a7e2440curl`https://api.github.com/repos/palantir/atlasdb/git/trees/fea21e272706a7b1dae8bb51214cfbd9a7e2440cuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/96c269d3191b1f411f0dc575a6e89dc08834da68
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkHYevCRBK7hj4Ov3rIwAAyj4IAGGJ/Erxg/F1OL5bRyjlnW+H
/xBIF8JR8jfuxV7ix3QcPBB6NEX6sQCooEOtTePMt1ltP7cJDz5UjNutOnG8+0tL
4DCaCsL+Qoh4iOhOCFSxwaK9CYQ9Z2F7qK4d6adSxizcJIZsAz47b6s0PSFIix3L
lqZDWsoMNiH8yh9P/d2x0DhGX5B9JQkdPPYhzsorkOAZxrzy/4f0PLVDyeEaD/MU
GyX4byJXzYgk/h4+92AkKq+2ENNWo24CbeN5JFACMlER+LBraiItb+A6WnM43Gwp
q7//Td9U+hbpAyq5R7ZGprdyCPDEXWn0hFI1JkLMF+QuctJ8LT0foUnB/hDvzjw=
=VOaa
-----END PGP SIGNATURE-----
payloadX   tree fea21e272706a7b1dae8bb51214cfbd9a7e2440c
parent 6296cfa09fe5c25379df483505cba31f5ea01d03
author Sam-Kramer <sam.c.kramer@gmail.com> 1679656879 +0000
committer GitHub <noreply@github.com> 1679656879 +0000

Fix config for standalone workload server docker with in memory kvs (#6482)

 uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/96c269d3191b1f411f0dc575a6e89dc08834da68html_urlShttps://github.com/palantir/atlasdb/commit/96c269d3191b1f411f0dc575a6e89dc08834da68comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/96c269d3191b1f411f0dc575a6e89dc08834da68/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj! https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j! web-flowj
! J/j  MDQ6VXNlcjE5ODY0NDQ3j! 4https://avatars.githubusercontent.com/u/19864447?v=4j! h5j  %https://api.github.com/users/web-flowj! https://github.com/web-flowj! /https://api.github.com/users/web-flow/followersj! <https://api.github.com/users/web-flow/following{/other_user}j! 5https://api.github.com/users/web-flow/gists{/gist_id}j! <https://api.github.com/users/web-flow/starred{/owner}{/repo}j! 3https://api.github.com/users/web-flow/subscriptionsj! *https://api.github.com/users/web-flow/orgsj! +https://api.github.com/users/web-flow/reposj! 6https://api.github.com/users/web-flow/events{/privacy}j!! 5https://api.github.com/users/web-flow/received_eventsj#! Userj%! uparents]}(j  (6296cfa09fe5c25379df483505cba31f5ea01d03j  ^https://api.github.com/repos/palantir/atlasdb/commits/6296cfa09fe5c25379df483505cba31f5ea01d03j! Shttps://github.com/palantir/atlasdb/commit/6296cfa09fe5c25379df483505cba31f5ea01d03uastats}(totalK	additionsK	deletionsKufiles]}(j  (460140589050272c4b15d430c3846aeae4273f6dfilenameAatlasdb-workload-server-distribution/var/conf/workload-server.ymlstatusmodifiedj?! Kj@! KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/96c269d3191b1f411f0dc575a6e89dc08834da68/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/96c269d3191b1f411f0dc575a6e89dc08834da68/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=96c269d3191b1f411f0dc575a6e89dc08834da68patchX  @@ -4,10 +4,10 @@ install:
     namespace: test
     keyValueService:
       type: memory
-  single-row-two-cells-config:
-    table-configuration:
-      table-name: two-cells-test
-      isolation-level: SERIALIZABLE
-    iteration-count: 100
+  singleRowTwoCellsConfig:
+    tableConfiguration:
+      tableName: two-cells-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
     type: singleRowTwoCells
-  exit-after-running: true
\ No newline at end of file
+  exitAfterRunning: true
\ No newline at end of fileuau(1fbd27c08578ca8e68f60b2d95e34f34ae7fc7a6}(sha(1fbd27c08578ca8e68f60b2d95e34f34ae7fc7a6node_idEC_kwDOAjP5fdoAKDFmYmQyN2MwODU3OGNhOGU2OGY2MGIyZDk1ZTM0ZjM0YWU3ZmM3YTYcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-16T12:04:00Zu	committer}(j\! Lucas Meirelesj^! meireles31@msn.comj`! 2023-06-16T12:04:00ZumessageMerge branch 'lmeireles/dont-check-locks-on-non-empty-reads' into lmeireles/use-hash-set-to-avoid-always-check-on-commit

# Conflicts:
#	atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javatree}(jT! (5ce9d86b2603666b44b6b0705fd0e59db60091d1url`https://api.github.com/repos/palantir/atlasdb/git/trees/5ce9d86b2603666b44b6b0705fd0e59db60091d1ujl! bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1fbd27c08578ca8e68f60b2d95e34f34ae7fc7a6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSMT7AACgkQJd22kJ7J
Gixrjgf/UleezxHd5e7zd6ZF/WNUYoxJN/dA1EGmelqG4kIv+9rkp2Mzpl7d92OZ
siC+5JtRGzNFh2tB/o3uEzyJS5x2jfLnk40HhIdcacvdfYxDgCQjHLIFjbSbWLrg
4DdbhrxlB6mE2BGUOJZpeBDDxrFKFY+nQjz1J1ExsfZIlN68asPVvmEOyicAC2Ye
A+CnxsTvLSXt8z0lWiwRPeCDKSYIcgbxrDqmS+IB5o4MZLAjprrLYhO7FjFVjQjW
jYRjSpH7Xk4fWSNi7IZ78iQIBki2q4Zstwel84Knm6X9AXGPCQlMJjNl/X+D9Dg0
79dFfWBQhwRrnI6W2oCFldgzVI4g1g==
=FP3U
-----END PGP SIGNATURE-----payloadX  tree 5ce9d86b2603666b44b6b0705fd0e59db60091d1
parent 414f91e83cc1461d193e2ea91943a3b145b40838
parent 94de06c7ddd098508dfe05c0b39244681e752b70
author Lucas Meireles <meireles31@msn.com> 1686917040 +0100
committer Lucas Meireles <meireles31@msn.com> 1686917040 +0100

Merge branch 'lmeireles/dont-check-locks-on-non-empty-reads' into lmeireles/use-hash-set-to-avoid-always-check-on-commit

# Conflicts:
#	atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.java
uujl! ^https://api.github.com/repos/palantir/atlasdb/commits/1fbd27c08578ca8e68f60b2d95e34f34ae7fc7a6html_urlShttps://github.com/palantir/atlasdb/commit/1fbd27c08578ca8e68f60b2d95e34f34ae7fc7a6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1fbd27c08578ca8e68f60b2d95e34f34ae7fc7a6/commentsjZ! }(loginLucasIMEidJg jV! MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jl! %https://api.github.com/users/LucasIMEjz! https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujb! }(j! LucasIMEj! Jg jV! MDQ6VXNlcjY3ODczMTE=j! 3https://avatars.githubusercontent.com/u/6787311?v=4j! h5jl! %https://api.github.com/users/LucasIMEjz! https://github.com/LucasIMEj! /https://api.github.com/users/LucasIME/followersj! <https://api.github.com/users/LucasIME/following{/other_user}j! 5https://api.github.com/users/LucasIME/gists{/gist_id}j! <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j! 3https://api.github.com/users/LucasIME/subscriptionsj! *https://api.github.com/users/LucasIME/orgsj! +https://api.github.com/users/LucasIME/reposj! 6https://api.github.com/users/LucasIME/events{/privacy}j! 5https://api.github.com/users/LucasIME/received_eventsj! Userj! uparents](}(jT! (414f91e83cc1461d193e2ea91943a3b145b40838jl! ^https://api.github.com/repos/palantir/atlasdb/commits/414f91e83cc1461d193e2ea91943a3b145b40838jz! Shttps://github.com/palantir/atlasdb/commit/414f91e83cc1461d193e2ea91943a3b145b40838u}(jT! (94de06c7ddd098508dfe05c0b39244681e752b70jl! ^https://api.github.com/repos/palantir/atlasdb/commits/94de06c7ddd098508dfe05c0b39244681e752b70jz! Shttps://github.com/palantir/atlasdb/commit/94de06c7ddd098508dfe05c0b39244681e752b70uestats}(totalK 	additionsK 	deletionsK ufiles]u(aeae9fe3da0d0322dda15163303af40db35add2c}(sha(aeae9fe3da0d0322dda15163303af40db35add2cnode_idEC_kwDOAjP5fdoAKGFlYWU5ZmUzZGEwZDAzMjJkZGExNTE2MzMwM2FmNDBkYjM1YWRkMmMcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-27T13:17:57Zu	committer}(j! 	Tom Papkej! tpapke@palantir.comj! 2023-06-29T13:25:29Zumessage]Add ChangeMetadata classes for different events (~CRUD)
Add LockRequestMetadata wrapper classtree}(j! (2db1f4db0b93db040684eb4b31f697bb15252af8url`https://api.github.com/repos/palantir/atlasdb/git/trees/2db1f4db0b93db040684eb4b31f697bb15252af8u      j! bhttps://api.github.com/repos/palantir/atlasdb/git/commits/aeae9fe3da0d0322dda15163303af40db35add2c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSdhkkACgkQmF9s0kaF
Iw0bBggApmue0ZP9WgRPKCgbump6MfXGV9XO1SASo4fJsyUD527smxIrzfxCT2lg
DfPcUoG0vdn4dal18eqm/e+uismXBok5cXRgS7mNja9pQFDPFQKTx1wEF6urRdWv
1R/pAZEByJNDPPIR3cQkObG/ZDXB/Fcp5uUrvLlq1hrQnHMFj70wtNt1clrv9yNK
9U5KJO7i7QZ9l7aFHnVEs7FooGS3952tX8+DiAB9IJkLVD6AL0gCWy72VXuijUjw
Zh2mLwaJCnqzivKWjVV57vbR9+yIGDRYmTIZ0w1eegH66UhYugXUNgEs+prrAKIq
o3XBxs9PhlJQ8EhiQ46WbEklOeakTA==
=ioUB
-----END PGP SIGNATURE-----payloadX0  tree 2db1f4db0b93db040684eb4b31f697bb15252af8
parent 613e115d909748315adbea905ad912518b569b38
author Tom Papke <tpapke@palantir.com> 1687871877 +0100
committer Tom Papke <tpapke@palantir.com> 1688045129 +0100

Add ChangeMetadata classes for different events (~CRUD)
Add LockRequestMetadata wrapper class
uuj! ^https://api.github.com/repos/palantir/atlasdb/commits/aeae9fe3da0d0322dda15163303af40db35add2chtml_urlShttps://github.com/palantir/atlasdb/commit/aeae9fe3da0d0322dda15163303af40db35add2ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/aeae9fe3da0d0322dda15163303af40db35add2c/commentsj! }(login	ToemmscheidJboj! MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j! &https://api.github.com/users/Toemmschej! https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj! }(j! 	Toemmschej! Jboj! MDQ6VXNlcjQzNjc1NDkwj! 4https://avatars.githubusercontent.com/u/43675490?v=4j! h5j! &https://api.github.com/users/Toemmschej! https://github.com/Toemmschej! 0https://api.github.com/users/Toemmsche/followersj! =https://api.github.com/users/Toemmsche/following{/other_user}j! 6https://api.github.com/users/Toemmsche/gists{/gist_id}j! =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j! 4https://api.github.com/users/Toemmsche/subscriptionsj! +https://api.github.com/users/Toemmsche/orgsj " ,https://api.github.com/users/Toemmsche/reposj" 7https://api.github.com/users/Toemmsche/events{/privacy}j" 6https://api.github.com/users/Toemmsche/received_eventsj" Userj" uparents]}(j! (613e115d909748315adbea905ad912518b569b38j! ^https://api.github.com/repos/palantir/atlasdb/commits/613e115d909748315adbea905ad912518b569b38j! Shttps://github.com/palantir/atlasdb/commit/613e115d909748315adbea905ad912518b569b38uastats}(totalK	additionsK	deletionsK ufiles](}(j! (264446ddc723aaeb64167e04fdd34909eb47b0d9filename$changelog/@unreleased/pr-6644.v2.ymlstatusaddedj"" Kj#" K changesKblob_url|https://github.com/palantir/atlasdb/blob/aeae9fe3da0d0322dda15163303af40db35add2c/changelog%2F%40unreleased%2Fpr-6644.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/aeae9fe3da0d0322dda15163303af40db35add2c/changelog%2F%40unreleased%2Fpr-6644.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6644.v2.yml?ref=aeae9fe3da0d0322dda15163303af40db35add2cpatch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Add LockMetadata interface with CRUD-like Metadata events
+  links:
+  - https://github.com/palantir/atlasdb/pull/6644u}(j! (542b5d92463ad9df167fde57f605c5f4cbeacee1j(" Jlock-api-objects/src/main/java/com/palantir/lock/watch/ChangeMetadata.javaj*" addedj"" Kj#" K j," Kj-" https://github.com/palantir/atlasdb/blob/aeae9fe3da0d0322dda15163303af40db35add2c/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javaj/" https://github.com/palantir/atlasdb/raw/aeae9fe3da0d0322dda15163303af40db35add2c/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javaj1" https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.java?ref=aeae9fe3da0d0322dda15163303af40db35add2cj3" X  @@ -0,0 +1,136 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.palantir.lock.watch.ChangeMetadata.Created;
+import com.palantir.lock.watch.ChangeMetadata.Deleted;
+import com.palantir.lock.watch.ChangeMetadata.Unchanged;
+import com.palantir.lock.watch.ChangeMetadata.Updated;
+import org.immutables.value.Value;
+import org.immutables.value.Value.Immutable;
+
+/**
+ * The subtypes of this class can be used to document CRUD-like operations that were applied to a value.
+ * Every instance should be associated with a {@link com.palantir.lock.LockDescriptor}.
+ * It is up to the users of metadata to know the type of value it refers to
+ * and how to interpret the different subtypes.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
+@JsonSubTypes({
+    @JsonSubTypes.Type(value = Unchanged.class, name = Unchanged.TYPE),
+    @JsonSubTypes.Type(value = Updated.class, name = Updated.TYPE),
+    @JsonSubTypes.Type(value = Deleted.class, name = Deleted.TYPE),
+    @JsonSubTypes.Type(value = Created.class, name = Created.TYPE),
+})
+public interface ChangeMetadata {
+    <T> T accept(Visitor<T> visitor);
+
+    static Unchanged unchanged() {
+        return ImmutableUnchanged.builder().build();
+    }
+
+    static Updated updated(byte[] before, byte[] after) {
+        return ImmutableUpdated.of(before, after);
+    }
+
+    static Deleted deleted(byte[] before) {
+        return ImmutableDeleted.of(before);
+    }
+
+    static Created created(byte[] after) {
+        return ImmutableCreated.of(after);
+    }
+
+    interface Visitor<T> {
+        T visit(Unchanged unchanged);
+
+        T visit(Updated updated);
+
+        T visit(Deleted deleted);
+
+        T visit(Created created);
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableUnchanged.class)
+    @JsonDeserialize(as = ImmutableUnchanged.class)
+    @JsonTypeName(Unchanged.TYPE)
+    interface Unchanged extends ChangeMetadata {
+        String TYPE = "unchanged";
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableUpdated.class)
+    @JsonDeserialize(as = ImmutableUpdated.class)
+    @JsonTypeName(Updated.TYPE)
+    interface Updated extends ChangeMetadata {
+        String TYPE = "updated";
+
+        @Value.Parameter
+        byte[] oldValue();
+
+        @Value.Parameter
+        byte[] newValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableDeleted.class)
+    @JsonDeserialize(as = ImmutableDeleted.class)
+    @JsonTypeName(Deleted.TYPE)
+    interface Deleted extends ChangeMetadata {
+        String TYPE = "deleted";
+
+        @Value.Parameter
+        byte[] oldValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableCreated.class)
+    @JsonDeserialize(as = ImmutableCreated.class)
+    @JsonTypeName(Created.TYPE)
+    interface Created extends ChangeMetadata {
+        String TYPE = "created";
+
+        @Value.Parameter
+        byte[] newValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+}u}(j! (141390a173cdd43829e1cac59a2ba85dbb56bbdaj(" Olock-api-objects/src/main/java/com/palantir/lock/watch/LockRequestMetadata.javaj*" addedj"" Kj#" K j," Kj-" https://github.com/palantir/atlasdb/blob/aeae9fe3da0d0322dda15163303af40db35add2c/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj/" https://github.com/palantir/atlasdb/raw/aeae9fe3da0d0322dda15163303af40db35add2c/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj1" https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.java?ref=aeae9fe3da0d0322dda15163303af40db35add2cj3" XX  @@ -0,0 +1,31 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import com.palantir.lock.LockDescriptor;
+import com.palantir.logsafe.Unsafe;
+import java.util.Map;
+import org.immutables.value.Value;
+
+/**
+ * Metadata that is attached to lock requests and to any {@link LockEvent} created as a result of that request.
+ */
+@Unsafe
+@Value.Immutable
+public interface LockRequestMetadata {
+    Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata();
+}ueu(f686436842106b9019cb669f37d9ddbc231076e0}(sha(f686436842106b9019cb669f37d9ddbc231076e0node_idEC_kwDOAjP5fdoAKGY2ODY0MzY4NDIxMDZiOTAxOWNiNjY5ZjM3ZDlkZGJjMjMxMDc2ZTAcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-19T14:06:15Zu	committer}(jO" 
Ahmed AlouanejQ" aalouane@palantir.comjS" 2023-04-19T14:06:15Zumessage^Revert "Revert "bump resource""

This reverts commit 7f5827e3c19d1c2e3b355ec55bd7603bfc494738.tree}(jG" (cbec8b2dd39f308db8f9a84181ac61a782943d78url`https://api.github.com/repos/palantir/atlasdb/git/trees/cbec8b2dd39f308db8f9a84181ac61a782943d78uj_" bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f686436842106b9019cb669f37d9ddbc231076e0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQ/9VgACgkQPlMHVIT1
yhqn/AgAi0L+fqJXqwmzQTZOSNkk6d9a/tclD9YO1ZK84bee7nPlZdJHnjWBg1BB
fFwiaNMfqG+OImvb6kwVkiaL1sB0Obll6pdgjZyma8wjLWR+E69CUeUgAq0kVVaO
nRTt8N2F6oKGjmePsJSHOhKgw4EoIp/+fJg6bK/n4wgWIzuvX1fqyyr6Ta+9hByO
nqDRyQk9zeW1dwuGG4odxn+lGAmeBAcQ6BNxBuGbeUlziK2/88Pai36UHAGa61sJ
77wxWdEN+gpbdoaSev75kk5yUTY8oajP8bmaGB3wBXjTsyM2jMubIeiwAG6ock/O
CIjp9ac5rnEheoVYb4OobsCrTHjPhA==
=QcyD
-----END PGP SIGNATURE-----payloadX=  tree cbec8b2dd39f308db8f9a84181ac61a782943d78
parent 7f5827e3c19d1c2e3b355ec55bd7603bfc494738
author Ahmed Alouane <aalouane@palantir.com> 1681913175 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1681913175 +0100

Revert "Revert "bump resource""

This reverts commit 7f5827e3c19d1c2e3b355ec55bd7603bfc494738.
uuj_" ^https://api.github.com/repos/palantir/atlasdb/commits/f686436842106b9019cb669f37d9ddbc231076e0html_urlShttps://github.com/palantir/atlasdb/commit/f686436842106b9019cb669f37d9ddbc231076e0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f686436842106b9019cb669f37d9ddbc231076e0/commentsjM" }(loginergo14idJjI" MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j_" #https://api.github.com/users/ergo14jm" https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujU" }(jr" ergo14jt" JjI" MDQ6VXNlcjMwOTAzNzM2jv" 4https://avatars.githubusercontent.com/u/30903736?v=4jx" h5j_" #https://api.github.com/users/ergo14jm" https://github.com/ergo14j{" -https://api.github.com/users/ergo14/followersj}" :https://api.github.com/users/ergo14/following{/other_user}j" 3https://api.github.com/users/ergo14/gists{/gist_id}j" :https://api.github.com/users/ergo14/starred{/owner}{/repo}j" 1https://api.github.com/users/ergo14/subscriptionsj" (https://api.github.com/users/ergo14/orgsj" )https://api.github.com/users/ergo14/reposj" 4https://api.github.com/users/ergo14/events{/privacy}j" 3https://api.github.com/users/ergo14/received_eventsj" Userj" uparents]}(jG" (7f5827e3c19d1c2e3b355ec55bd7603bfc494738j_" ^https://api.github.com/repos/palantir/atlasdb/commits/7f5827e3c19d1c2e3b355ec55bd7603bfc494738jm" Shttps://github.com/palantir/atlasdb/commit/7f5827e3c19d1c2e3b355ec55bd7603bfc494738uastats}(totalK	additionsK	deletionsKufiles]}(jG" (3414e0d639643e66cc72abbfef85fd6b94502626filename.circleci/config.ymlstatusmodifiedj" Kj" KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/f686436842106b9019cb669f37d9ddbc231076e0/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/f686436842106b9019cb669f37d9ddbc231076e0/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=f686436842106b9019cb669f37d9ddbc231076e0patchX  @@ -4,7 +4,7 @@ jobs:
   build:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: xlarge
+    resource_class: 2xlarge+
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
@@ -35,7 +35,7 @@ jobs:
     parallelism: 12
     machine:
       image: ubuntu-2004:202111-02
-    resource_class: xlarge
+    resource_class: 2xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       JAVA_HOME: /opt/java8uau(7fe947438eb0e22f2ecbf8d3537314e2c862486f}(sha(7fe947438eb0e22f2ecbf8d3537314e2c862486fnode_idEC_kwDOAjP5fdoAKDdmZTk0NzQzOGViMGUyMmYyZWNiZjhkMzUzNzMxNGUyYzg2MjQ4NmYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-16T12:49:41Zu	committer}(j" Jeremy Kongj" jkong@palantir.comj" 2023-06-16T12:49:41Zumessagettttttree}(j" (b95bc7a9d638cccf64de16bb98f29e63307ad2e0url`https://api.github.com/repos/palantir/atlasdb/git/trees/b95bc7a9d638cccf64de16bb98f29e63307ad2e0uj" bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7fe947438eb0e22f2ecbf8d3537314e2c862486f
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSMWmUACgkQTLdFKain
zjyiywf+O0+NBik95IVKqsSbWOiqYOX5T9bzw9160NVn49aFLe/e/01YcbnYEXO4
GGfB9GndwrE9vcMah6kWnIztducsByvyrjZrn0jMKoR3zaebEL3/9XPbw9mIrOSk
+DKiUrFZuDBcnEDW5F7yAalg9FT0ZB5PcnMl29KdxeS0b+PSlkICtleVbKQxW1hH
NdbNPA7nkyzX0/FB2076CETULKXzYPtRV5N7IqFCOdiDsmKlrRTNEk83fKxTHKZ1
923UnMGZ6pkUNRhHgQJ4HbFU9Y4GSXZwWm/GmaxgqtgbdY/OvU/5hJOOtrSd74nM
0m5wpRUXcA6SDK59Ht5+bUFNveaYLQ==
=LAJO
-----END PGP SIGNATURE-----payloadtree b95bc7a9d638cccf64de16bb98f29e63307ad2e0
parent d0e3aba1921e1050c4dc18ecea72a08c328a8958
author Jeremy Kong <jkong@palantir.com> 1686919781 +0800
committer Jeremy Kong <jkong@palantir.com> 1686919781 +0800

ttttt
uuj" ^https://api.github.com/repos/palantir/atlasdb/commits/7fe947438eb0e22f2ecbf8d3537314e2c862486fhtml_urlShttps://github.com/palantir/atlasdb/commit/7fe947438eb0e22f2ecbf8d3537314e2c862486fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7fe947438eb0e22f2ecbf8d3537314e2c862486f/commentsj" }(login
jeremyk-91idJZ j" MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j" 'https://api.github.com/users/jeremyk-91j" https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj" }(j" 
jeremyk-91j" JZ j" MDQ6VXNlcjU5NTU1MTA=j" 3https://avatars.githubusercontent.com/u/5955510?v=4j" h5j" 'https://api.github.com/users/jeremyk-91j" https://github.com/jeremyk-91j" 1https://api.github.com/users/jeremyk-91/followersj" >https://api.github.com/users/jeremyk-91/following{/other_user}j" 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j" >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j" 5https://api.github.com/users/jeremyk-91/subscriptionsj" ,https://api.github.com/users/jeremyk-91/orgsj" -https://api.github.com/users/jeremyk-91/reposj # 8https://api.github.com/users/jeremyk-91/events{/privacy}j# 7https://api.github.com/users/jeremyk-91/received_eventsj# Userj# uparents]}(j" (d0e3aba1921e1050c4dc18ecea72a08c328a8958j" ^https://api.github.com/repos/palantir/atlasdb/commits/d0e3aba1921e1050c4dc18ecea72a08c328a8958j" Shttps://github.com/palantir/atlasdb/commit/d0e3aba1921e1050c4dc18ecea72a08c328a8958uastats}(totalK	additionsK	deletionsKufiles]}(j" (ef90e9433014b5e4fb8370536598d5eab6fdaaf4filenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj # Kj!# KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7fe947438eb0e22f2ecbf8d3537314e2c862486f/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7fe947438eb0e22f2ecbf8d3537314e2c862486f/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=7fe947438eb0e22f2ecbf8d3537314e2c862486fpatchX  @@ -75,6 +75,7 @@
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.concurrent.TimeUnit;
 
+@SuppressWarnings("UnusedMethod") // Not right now.
 public class WorkloadServerLauncher extends Application<WorkloadServerConfiguration> {
 
     private static final SafeLogger log = SafeLoggerFactory.get(WorkloadServerLauncher.class);
@@ -174,7 +175,7 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                         // environment.lifecycle()),
                         //                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig,
                         // environment.lifecycle())
-                        );
+                );
 
         log.info("antithesis: terminate");
 uau(2378f53192f7e8264b224dc092494f7ccbf8f6d4}(sha(2378f53192f7e8264b224dc092494f7ccbf8f6d4node_idEC_kwDOAjP5fdoAKDIzNzhmNTMxOTJmN2U4MjY0YjIyNGRjMDkyNDk0ZjdjY2JmOGY2ZDQcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-08-07T14:52:43Zu	committer}(j=# 	Tom Papkej?# tpapke@palantir.comjA# 2023-08-07T16:21:03Zumessage#Add random test for lock collectiontree}(j5# (40aec66511189c3149ceac9e25fef71ec29b7ac9url`https://api.github.com/repos/palantir/atlasdb/git/trees/40aec66511189c3149ceac9e25fef71ec29b7ac9ujM# bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2378f53192f7e8264b224dc092494f7ccbf8f6d4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTRGe8ACgkQmF9s0kaF
Iw3xqwf9FQvHl6O9IRAR1JN6uM6wJxKq1jdkRBLmIa1Z+UaDYrZF4845BPgCtovq
l4inevtX3r7mo72M+mBIbEbAjFPOYaq4SEM7c9GmMMdFQIdSIh9/FWwzt6ohJTKR
agsrkiK9GPzt/toQ8nutMOAEH4ZxPWP1fqCA8qdteJKk+TWFOOX3ZXtST0G4wsAT
5rLeQgboca8YuO+eGrggLdUOErCtpvoHFmK/b4JwuLoHwOB8SM2eoJY3vUmHxTO0
eb0+9D4+/uQKQwkVELHTZhPZlpGy0H1tqMa2z1GwlBy3uSB2iAgQlPfASTt28Uqh
DyCjn2ZvvUiv62NYDcHwYxnLMUtj8Q==
=OUKq
-----END PGP SIGNATURE-----payloadtree 40aec66511189c3149ceac9e25fef71ec29b7ac9
parent 5d661bf17972eae792be394ccb7f68fa605809bf
author Tom Papke <tpapke@palantir.com> 1691419963 +0100
committer Tom Papke <tpapke@palantir.com> 1691425263 +0100

Add random test for lock collection
uujM# ^https://api.github.com/repos/palantir/atlasdb/commits/2378f53192f7e8264b224dc092494f7ccbf8f6d4html_urlShttps://github.com/palantir/atlasdb/commit/2378f53192f7e8264b224dc092494f7ccbf8f6d4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2378f53192f7e8264b224dc092494f7ccbf8f6d4/commentsj;# }(login	ToemmscheidJboj7# MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jM# &https://api.github.com/users/Toemmschej[# https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujC# }(j`# 	Toemmschejb# Jboj7# MDQ6VXNlcjQzNjc1NDkwjd# 4https://avatars.githubusercontent.com/u/43675490?v=4jf# h5jM# &https://api.github.com/users/Toemmschej[# https://github.com/Toemmscheji# 0https://api.github.com/users/Toemmsche/followersjk# =https://api.github.com/users/Toemmsche/following{/other_user}jm# 6https://api.github.com/users/Toemmsche/gists{/gist_id}jo# =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jq# 4https://api.github.com/users/Toemmsche/subscriptionsjs# +https://api.github.com/users/Toemmsche/orgsju# ,https://api.github.com/users/Toemmsche/reposjw# 7https://api.github.com/users/Toemmsche/events{/privacy}jy# 6https://api.github.com/users/Toemmsche/received_eventsj{# Userj}# uparents]}(j5# (5d661bf17972eae792be394ccb7f68fa605809bfjM# ^https://api.github.com/repos/palantir/atlasdb/commits/5d661bf17972eae792be394ccb7f68fa605809bfj[# Shttps://github.com/palantir/atlasdb/commit/5d661bf17972eae792be394ccb7f68fa605809bfuastats}(totalK	additionsK~	deletionsKufiles]}(j5# (675ece260858256b8d6fa41e3acb029f9ae51d0bfilenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedj# K~j# KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/2378f53192f7e8264b224dc092494f7ccbf8f6d4/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2378f53192f7e8264b224dc092494f7ccbf8f6d4/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=2378f53192f7e8264b224dc092494f7ccbf8f6d4patchXO.  @@ -65,11 +65,13 @@
 import com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection;
 import com.palantir.atlasdb.keyvalue.api.ColumnSelection;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
+import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.RangeRequest;
 import com.palantir.atlasdb.keyvalue.api.RangeRequests;
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.Value;
+import com.palantir.atlasdb.keyvalue.api.watch.LocksAndMetadata;
 import com.palantir.atlasdb.keyvalue.api.watch.NoOpLockWatchManager;
 import com.palantir.atlasdb.keyvalue.impl.ForwardingKeyValueService;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
@@ -140,6 +142,8 @@
 import java.util.Collection;
 import java.util.Collections;
 import java.util.Comparator;
+import java.util.HashMap;
+import java.util.HashSet;
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
@@ -341,6 +345,7 @@ public void cleanup() {}
             ChangeMetadata.updated(PtBytes.toBytes("abc"), PtBytes.toBytes("def"));
     private static final ChangeMetadata DELETE_CHANGE_METADATA = ChangeMetadata.deleted(PtBytes.toBytes("old"));
     private static final ChangeMetadata UNCHANGED_CHANGE_METADATA = ChangeMetadata.unchanged();
+    private static final ChangeMetadata CREATE_CHANGE_METADATA = ChangeMetadata.created(PtBytes.toBytes("new"));
 
     @Override
     @Before
@@ -2587,16 +2592,18 @@ public void metadataIsTransferredToCellLocks() {
                 TABLE.getQualifiedName(), TEST_CELL_2.getRowName(), TEST_CELL_2.getColumnName());
         LockDescriptor cellLock3 = AtlasCellLockDescriptor.of(
                 TABLE2.getQualifiedName(), TEST_CELL.getRowName(), TEST_CELL.getColumnName());
-        verifyLockWasCalledWithMetadataWhenCommitting(
+        verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
                 txn,
                 timelockService,
-                Optional.of(LockRequestMetadata.of(ImmutableMap.of(
-                        cellLock,
-                        UPDATE_CHANGE_METADATA,
-                        cellLock2,
-                        DELETE_CHANGE_METADATA,
-                        cellLock3,
-                        UNCHANGED_CHANGE_METADATA))));
+                LocksAndMetadata.of(
+                        ImmutableSet.of(cellLock, cellLock2, cellLock3),
+                        Optional.of(LockRequestMetadata.of(ImmutableMap.of(
+                                cellLock,
+                                UPDATE_CHANGE_METADATA,
+                                cellLock2,
+                                DELETE_CHANGE_METADATA,
+                                cellLock3,
+                                UNCHANGED_CHANGE_METADATA)))));
     }
 
     @Test
@@ -2621,16 +2628,18 @@ public void metadataIsTransferredToRowLocks() {
         LockDescriptor rowLock = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL.getRowName());
         LockDescriptor rowLock2 = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL_2.getRowName());
         LockDescriptor rowLock3 = AtlasRowLockDescriptor.of(TABLE2.getQualifiedName(), TEST_CELL.getRowName());
-        verifyLockWasCalledWithMetadataWhenCommitting(
+        verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
                 txn,
                 timelockService,
-                Optional.of(LockRequestMetadata.of(ImmutableMap.of(
-                        rowLock,
-                        UPDATE_CHANGE_METADATA,
-                        rowLock2,
-                        DELETE_CHANGE_METADATA,
-                        rowLock3,
-                        UNCHANGED_CHANGE_METADATA))));
+                LocksAndMetadata.of(
+                        ImmutableSet.of(rowLock, rowLock2, rowLock3),
+                        Optional.of(LockRequestMetadata.of(ImmutableMap.of(
+                                rowLock,
+                                UPDATE_CHANGE_METADATA,
+                                rowLock2,
+                                DELETE_CHANGE_METADATA,
+                                rowLock3,
+                                UNCHANGED_CHANGE_METADATA)))));
     }
 
     @Test
@@ -2647,19 +2656,65 @@ public void metadataCanBeTransferredToCellAndRowLocksSimultaneously() {
         LockDescriptor rowLock = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL.getRowName());
         LockDescriptor cellLock =
                 AtlasCellLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL.getRowName(), TEST_CELL.getColumnName());
-        verifyLockWasCalledWithMetadataWhenCommitting(
+        verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
                 txn,
                 timelockService,
-                Optional.of(LockRequestMetadata.of(
-                        ImmutableMap.of(rowLock, UPDATE_CHANGE_METADATA, cellLock, UPDATE_CHANGE_METADATA))));
+                LocksAndMetadata.of(
+                        ImmutableSet.of(rowLock, cellLock),
+                        Optional.of(LockRequestMetadata.of(
+                                ImmutableMap.of(rowLock, UPDATE_CHANGE_METADATA, cellLock, UPDATE_CHANGE_METADATA)))));
     }
 
     @Test
     public void noMetadataResultsInEmptyOptional() {
         TimelockService timelockService = spy(txManager.getTimelockService());
-        Transaction txn = getSnapshotTransactionWith(timelockService, ImmutableMap.of());
+        Transaction txn = getSnapshotTransactionWith(
+                timelockService, ImmutableMap.of(TABLE, Optional.of(ConflictHandler.SERIALIZABLE)));
         txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
-        verifyLockWasCalledWithMetadataWhenCommitting(txn, timelockService, Optional.empty());
+        verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
+                txn,
+                timelockService,
+                LocksAndMetadata.of(
+                        ImmutableSet.of(AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL.getRowName())),
+                        Optional.empty()));
+    }
+
+    @Test
+    public void lockCollectionWithoutMetadataIsCorrect() {
+        long randomSeed = System.currentTimeMillis();
+        int numTables = 10;
+        int numCellsPerTable = 10;
+        int totalWrites = 200;
+
+        Random random = new Random(randomSeed);
+
+        List<ConflictHandler> availableConflictHandlers = Arrays.asList(ConflictHandler.values());
+        List<TableReference> tables = IntStream.range(0, numTables)
+                .mapToObj(i -> {
+                    TableReference tableRef = TableReference.create(Namespace.create("random_test"), "table" + i);
+                    keyValueService.createTable(tableRef, AtlasDbConstants.GENERIC_TABLE_METADATA);
+                    return tableRef;
+                })
+                .collect(Collectors.toUnmodifiableList());
+        Map<TableReference, Optional<ConflictHandler>> tableToConflictHandler = KeyedStream.of(tables.stream())
+                .map(tableRef ->
+                        Optional.of(availableConflictHandlers.get(random.nextInt(availableConflictHandlers.size()))))
+                .collectToMap();
+        // Ensure that some rows have more than one cell
+        List<Cell> cells = IntStream.range(0, numCellsPerTable)
+                .mapToObj(i -> Cell.create(PtBytes.toBytes("row" + (i % 3)), PtBytes.toBytes("column" + i)))
+                .collect(Collectors.toUnmodifiableList());
+
+        TimelockService timelockService = spy(txManager.getTimelockService());
+        Transaction txn = getSnapshotTransactionWith(timelockService, tableToConflictHandler);
+
+        Map<TableReference, Set<Cell>> cellsWithWrites = new HashMap<>();
+        IntStream.range(0, totalWrites)
+                .forEach(_unused -> applyRandomWrite(random, txn, tables, cells, cellsWithWrites));
+
+        Set<LockDescriptor> expectedLocks = getExpectedLocks(tableToConflictHandler, cellsWithWrites);
+        verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
+                txn, timelockService, LocksAndMetadata.of(expectedLocks, Optional.empty()));
     }
 
     @Test
@@ -2964,18 +3019,65 @@ public void cleanup() {
         };
     }
 
-    private static void verifyLockWasCalledWithMetadataWhenCommitting(
-            Transaction txn, TimelockService spiedTimelockService, Optional<LockRequestMetadata> lockRequestMetadata) {
+    private static void verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
+            Transaction txn, TimelockService spiedTimelockService, LocksAndMetadata locksAndMetadata) {
         txn.commit();
         verify(spiedTimelockService)
                 .lock(
                         argThat(lockRequest -> {
-                            assertThat(lockRequest.getMetadata()).isEqualTo(lockRequestMetadata);
+                            // We always acquire a lock on the transaction table, whose suffix depends on the start
+                            // timestamp
+                            assertThat(lockRequest.getLockDescriptors())
+                                    .containsAll(locksAndMetadata.lockDescriptors());
+                            assertThat(lockRequest.getLockDescriptors()).allSatisfy(lock -> {
+                                if (!lock.getLockIdAsString()
+                                        .startsWith(TransactionConstants.TRANSACTION_TABLE.getQualifiedName())) {
+                                    assertThat(locksAndMetadata.lockDescriptors())
+                                            .contains(lock);
+                                }
+                            });
+                            assertThat(lockRequest.getMetadata()).isEqualTo(locksAndMetadata.metadata());
                             return true;
                         }),
                         any());
     }
 
+    private static Set<LockDescriptor> getExpectedLocks(
+            Map<TableReference, Optional<ConflictHandler>> tableToConflictHandler,
+            Map<TableReference, Set<Cell>> cellsWithWrites) {
+        ImmutableSet.Builder<LockDescriptor> locksBuilder = ImmutableSet.builder();
+
+        cellsWithWrites.forEach((table, writes) -> {
+            ConflictHandler conflictHandler = tableToConflictHandler.get(table).orElseThrow();
+            writes.forEach(cell -> {
+                if (conflictHandler.lockCellsForConflicts()) {
+                    locksBuilder.add(AtlasCellLockDescriptor.of(
+                            table.getQualifiedName(), cell.getRowName(), cell.getColumnName()));
+                }
+                if (conflictHandler.lockRowsForConflicts()) {
+                    locksBuilder.add(AtlasRowLockDescriptor.of(table.getQualifiedName(), cell.getRowName()));
+                }
+            });
+        });
+        return locksBuilder.build();
+    }
+
+    private static void applyRandomWrite(
+            Random random,
+            Transaction txn,
+            List<TableReference> tables,
+            List<Cell> cells,
+            Map<TableReference, Set<Cell>> cellsWithWrites) {
+        TableReference table = tables.get(random.nextInt(tables.size()));
+        Cell cell = cells.get(random.nextInt(cells.size()));
+        if (random.nextBoolean()) {
+            txn.put(table, ImmutableMap.of(cell, TEST_VALUE));
+        } else {
+            txn.delete(table, ImmutableSet.of(cell));
+        }
+        cellsWithWrites.computeIfAbsent(table, ignored -> new HashSet<>()).add(cell);
+    }
+
     private static class VerifyingKeyValueServiceDelegate extends ForwardingKeyValueService {
         private final KeyValueService delegate;
         private final PathTypeTracker pathTypeTracker;uau(75d54b437c1ebd7cb537e69a0e8cd1581f68d065}(sha(75d54b437c1ebd7cb537e69a0e8cd1581f68d065node_idEC_kwDOAjP5fdoAKDc1ZDU0YjQzN2MxZWJkN2NiNTM3ZTY5YTBlOGNkMTU4MWY2OGQwNjUcommit}(author}(name	Tom Papkeemail+43675490+Toemmsche@users.noreply.github.comdate2023-06-29T16:35:10Zu	committer}(j# GitHubj# noreply@github.comj# 2023-06-29T16:35:10ZumessageN[LWMeta] Add metadata to LockEvent (#6646)

[LWMeta] Add metadata to LockEventtree}(j# (d79ac3327c30ce74edec54d1178f64484067a2deurl`https://api.github.com/repos/palantir/atlasdb/git/trees/d79ac3327c30ce74edec54d1178f64484067a2deuj# bhttps://api.github.com/repos/palantir/atlasdb/git/commits/75d54b437c1ebd7cb537e69a0e8cd1581f68d065
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJknbK+CRBK7hj4Ov3rIwAAMx0IABHK1x8HmDeXAhZkJgnCLSNV
8WSIq1eJG8awEHL/I6IY0VTD71+P+yRO4vz4KZEQ/XyAcOONV0VzOL5060rzKQ3G
SdcknlOCKhzTb05yBtm+rPtLtZekVP4MLZ+iK/6pE19H0BFyLuahzu0d+HDMyRfF
1s+c7FQ3TRaT+DRqZZBfjzgqnoXDeLpVdtzAbHaV3yke+jLnmRuzus2bSwVORb+Z
vCsjel96R/BArRZ9StGkHObBeCK3mLku0e3xqqtLKJKn8H3CmuzMldZZ2RAeFBSt
0L77vQ9PPBwRRPfM8LAo5FxbRKm9BH6IYbbYvEPWqLLK/e03fsrMJQTe5i3ezgA=
=9bdZ
-----END PGP SIGNATURE-----
payloadX5  tree d79ac3327c30ce74edec54d1178f64484067a2de
parent 647b44abf9724111ca3d6e4e36be6c61ee82d1af
author Tom Papke <43675490+Toemmsche@users.noreply.github.com> 1688056510 +0200
committer GitHub <noreply@github.com> 1688056510 +0000

[LWMeta] Add metadata to LockEvent (#6646)

[LWMeta] Add metadata to LockEvent
uuj# ^https://api.github.com/repos/palantir/atlasdb/commits/75d54b437c1ebd7cb537e69a0e8cd1581f68d065html_urlShttps://github.com/palantir/atlasdb/commit/75d54b437c1ebd7cb537e69a0e8cd1581f68d065comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/75d54b437c1ebd7cb537e69a0e8cd1581f68d065/commentsj# }(login	ToemmscheidJboj# MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j# &https://api.github.com/users/Toemmschej# https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj# }(j# web-flowj# J/j# MDQ6VXNlcjE5ODY0NDQ3j# 4https://avatars.githubusercontent.com/u/19864447?v=4j# h5j# %https://api.github.com/users/web-flowj# https://github.com/web-flowj# /https://api.github.com/users/web-flow/followersj# <https://api.github.com/users/web-flow/following{/other_user}j# 5https://api.github.com/users/web-flow/gists{/gist_id}j# <https://api.github.com/users/web-flow/starred{/owner}{/repo}j# 3https://api.github.com/users/web-flow/subscriptionsj# *https://api.github.com/users/web-flow/orgsj# +https://api.github.com/users/web-flow/reposj# 6https://api.github.com/users/web-flow/events{/privacy}j# 5https://api.github.com/users/web-flow/received_eventsj# Userj# uparents]}(j# (647b44abf9724111ca3d6e4e36be6c61ee82d1afj# ^https://api.github.com/repos/palantir/atlasdb/commits/647b44abf9724111ca3d6e4e36be6c61ee82d1afj# Shttps://github.com/palantir/atlasdb/commit/647b44abf9724111ca3d6e4e36be6c61ee82d1afuastats}(totalK	additionsK	deletionsKufiles](}(j# (f502755b47a5379d145593d6f6a21b6d0ff20be9filename$changelog/@unreleased/pr-6646.v2.ymlstatusaddedj$ Kj$ K changesKblob_url|https://github.com/palantir/atlasdb/blob/75d54b437c1ebd7cb537e69a0e8cd1581f68d065/changelog%2F%40unreleased%2Fpr-6646.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/75d54b437c1ebd7cb537e69a0e8cd1581f68d065/changelog%2F%40unreleased%2Fpr-6646.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6646.v2.yml?ref=75d54b437c1ebd7cb537e69a0e8cd1581f68d065patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add metadata to LockEvent'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6646u}(j# (9ef6441b1ec7d185a6b25c242d1d64524dbaadc5j$ Elock-api-objects/src/main/java/com/palantir/lock/watch/LockEvent.javaj$ modifiedj$ Kj$ Kj$ Kj$ https://github.com/palantir/atlasdb/blob/75d54b437c1ebd7cb537e69a0e8cd1581f68d065/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaj$ https://github.com/palantir/atlasdb/raw/75d54b437c1ebd7cb537e69a0e8cd1581f68d065/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.java?ref=75d54b437c1ebd7cb537e69a0e8cd1581f68d065j$ Xa  @@ -16,12 +16,14 @@
 
 package com.palantir.lock.watch;
 
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonTypeName;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.logsafe.Unsafe;
+import java.util.Optional;
 import java.util.Set;
 import org.immutables.value.Value;
 
@@ -37,6 +39,9 @@ public abstract class LockEvent implements LockWatchEvent {
 
     public abstract LockToken lockToken();
 
+    @JsonIgnore
+    public abstract Optional<LockRequestMetadata> metadata();
+
     @Override
     public int size() {
         return lockDescriptors().size();
@@ -48,8 +53,15 @@ public <T> T accept(Visitor<T> visitor) {
     }
 
     public static LockWatchEvent.Builder builder(Set<LockDescriptor> lockDescriptors, LockToken lockToken) {
-        ImmutableLockEvent.Builder builder =
-                ImmutableLockEvent.builder().lockDescriptors(lockDescriptors).lockToken(lockToken);
+        return builder(lockDescriptors, lockToken, Optional.empty());
+    }
+
+    public static LockWatchEvent.Builder builder(
+            Set<LockDescriptor> lockDescriptors, LockToken lockToken, Optional<LockRequestMetadata> metadata) {
+        ImmutableLockEvent.Builder builder = ImmutableLockEvent.builder()
+                .lockDescriptors(lockDescriptors)
+                .lockToken(lockToken)
+                .metadata(metadata);
         return seq -> builder.sequence(seq).build();
     }
 }ueu(2d5566aaf2e4f58da7ae556899c3888be6fc948e}(sha(2d5566aaf2e4f58da7ae556899c3888be6fc948enode_idEC_kwDOAjP5fdoAKDJkNTU2NmFhZjJlNGY1OGRhN2FlNTU2ODk5YzM4ODhiZTZmYzk0OGUcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-06-27T12:25:40Zu	committer}(j3$ svc-autoreleasej5$ -pd-foundry-infrastructure-notify@palantir.comj7$ 2023-06-27T12:25:40Zumessage"Autorelease 0.879.0-rc1

[skip ci]tree}(j+$ (1a89e0672bdf3b125835ff23730ae9c423cdc138url`https://api.github.com/repos/palantir/atlasdb/git/trees/1a89e0672bdf3b125835ff23730ae9c423cdc138ujC$ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2d5566aaf2e4f58da7ae556899c3888be6fc948e
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmSa1UUACgkQhbrR8ip7mDD+kgEAy1PVyfxmqTMzWLVa4J5lJ1NL
l8eLIVYCubUzkpIoRlwBAIGT/cmjtT5THyIKfZg4rCq+kw7Jk2X5B8CP6/mPVjRy
=1CgM
-----END PGP SIGNATURE-----
payloadX  tree 1a89e0672bdf3b125835ff23730ae9c423cdc138
parent 6713dfb18da46c6c6a12b687adb7c3d0f6a05080
author Sam-Kramer <sam.c.kramer@gmail.com> 1687868740 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1687868740 +0000

Autorelease 0.879.0-rc1

[skip ci]uujC$ ^https://api.github.com/repos/palantir/atlasdb/commits/2d5566aaf2e4f58da7ae556899c3888be6fc948ehtml_urlShttps://github.com/palantir/atlasdb/commit/2d5566aaf2e4f58da7ae556899c3888be6fc948ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2d5566aaf2e4f58da7ae556899c3888be6fc948e/commentsj1$ }(login
Sam-KrameridJ^2_ j-$ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jC$ 'https://api.github.com/users/Sam-KramerjQ$ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj9$ }(jV$ svc-autoreleasejX$ J(j-$ MDQ6VXNlcjUxNzE4MzQ2jZ$ 4https://avatars.githubusercontent.com/u/51718346?v=4j\$ h5jC$ ,https://api.github.com/users/svc-autoreleasejQ$ "https://github.com/svc-autoreleasej_$ 6https://api.github.com/users/svc-autorelease/followersja$ Chttps://api.github.com/users/svc-autorelease/following{/other_user}jc$ <https://api.github.com/users/svc-autorelease/gists{/gist_id}je$ Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jg$ :https://api.github.com/users/svc-autorelease/subscriptionsji$ 1https://api.github.com/users/svc-autorelease/orgsjk$ 2https://api.github.com/users/svc-autorelease/reposjm$ =https://api.github.com/users/svc-autorelease/events{/privacy}jo$ <https://api.github.com/users/svc-autorelease/received_eventsjq$ Userjs$ uparents]}(j+$ (6713dfb18da46c6c6a12b687adb7c3d0f6a05080jC$ ^https://api.github.com/repos/palantir/atlasdb/commits/6713dfb18da46c6c6a12b687adb7c3d0f6a05080jQ$ Shttps://github.com/palantir/atlasdb/commit/6713dfb18da46c6c6a12b687adb7c3d0f6a05080uastats}(totalK 	additionsK 	deletionsK ufiles]u(245d01b734ea0dac52bc8d37757bbe12f8b35c22}(sha(245d01b734ea0dac52bc8d37757bbe12f8b35c22node_idEC_kwDOAjP5fdoAKDI0NWQwMWI3MzRlYTBkYWM1MmJjOGQzNzc1N2JiZTEyZjhiMzVjMjIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-06T16:46:18Zu	committer}(j$ Jeremy Kongj$ jkong@palantir.comj$ 2023-06-06T16:46:18Zumessage
change typingtree}(j$ (4e4a6bbb4414ca677a6d578fafaa2f262e742e33url`https://api.github.com/repos/palantir/atlasdb/git/trees/4e4a6bbb4414ca677a6d578fafaa2f262e742e33uj$ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/245d01b734ea0dac52bc8d37757bbe12f8b35c22
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR/YtsACgkQTLdFKain
zjzx8Qf/V+VoMtoPWGDbcbnotB8uN7Cjzjq8qQKL0Lmh2qcuwa0zwmCfOFSJQIIw
75dfmx8r3++XwhIsvpXWjxIk8e0d22vvqreXYguWwBsThYcHBFP7ymxcRkl4jQgn
RUyQh65i+qPKmWPV5C4uMqXVSJ+NIdDFWZBA04hP6EyqPn7WCLzvu2h0Tu5i3OoY
zVan/rIquI/FfBmLc9+OtUoSNGjp70O6LMdA4h5F6SLjp8aacSViWKHMbwFcMEzo
I0L5uCvL6c5WXwvgQiaeJir8ba76MdX5IVtd1V8AyDzNhKOPEr15w+iQZ9T+LtWn
qnizW6ELAM58MiFFu5AI503012lU6g==
=2xQG
-----END PGP SIGNATURE-----payloadtree 4e4a6bbb4414ca677a6d578fafaa2f262e742e33
parent 8a763d36fa1de876f153aef9a0165342a8bbface
author Jeremy Kong <jkong@palantir.com> 1686069978 +0100
committer Jeremy Kong <jkong@palantir.com> 1686069978 +0100

change typing
uuj$ ^https://api.github.com/repos/palantir/atlasdb/commits/245d01b734ea0dac52bc8d37757bbe12f8b35c22html_urlShttps://github.com/palantir/atlasdb/commit/245d01b734ea0dac52bc8d37757bbe12f8b35c22comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/245d01b734ea0dac52bc8d37757bbe12f8b35c22/commentsj$ }(login
jeremyk-91idJZ j$ MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j$ 'https://api.github.com/users/jeremyk-91j$ https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj$ }(j$ 
jeremyk-91j$ JZ j$ MDQ6VXNlcjU5NTU1MTA=j$ 3https://avatars.githubusercontent.com/u/5955510?v=4j$ h5j$ 'https://api.github.com/users/jeremyk-91j$ https://github.com/jeremyk-91j$ 1https://api.github.com/users/jeremyk-91/followersj$ >https://api.github.com/users/jeremyk-91/following{/other_user}j$ 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j$ >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j$ 5https://api.github.com/users/jeremyk-91/subscriptionsj$ ,https://api.github.com/users/jeremyk-91/orgsj$ -https://api.github.com/users/jeremyk-91/reposj$ 8https://api.github.com/users/jeremyk-91/events{/privacy}j$ 7https://api.github.com/users/jeremyk-91/received_eventsj$ Userj$ uparents]}(j$ (8a763d36fa1de876f153aef9a0165342a8bbfacej$ ^https://api.github.com/repos/palantir/atlasdb/commits/8a763d36fa1de876f153aef9a0165342a8bbfacej$ Shttps://github.com/palantir/atlasdb/commit/8a763d36fa1de876f153aef9a0165342a8bbfaceuastats}(totalK	additionsK{	deletionsKufiles](}(j$ (2725912f8e075ab25f996c376910f257d6850d7ffilename^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ColumnValue.javastatusaddedj$ K j$ K changesK blob_urlhttps://github.com/palantir/atlasdb/blob/245d01b734ea0dac52bc8d37757bbe12f8b35c22/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.javaraw_urlhttps://github.com/palantir/atlasdb/raw/245d01b734ea0dac52bc8d37757bbe12f8b35c22/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.java?ref=245d01b734ea0dac52bc8d37757bbe12f8b35c22patchX  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ColumnValue {
+    @Value.Parameter
+    int column();
+
+    @Value.Parameter
+    int value();
+
+    static ColumnValue of(int column, int value) {
+        return ImmutableColumnValue.of(column, value);
+    }
+}u}(j$ (38bd65bb4f96e9501721390809e74a159a2f3b13j$ |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowColumnRangeReadTransactionAction.javaj$ modifiedj$ Kj$ Kj$ K	j % https://github.com/palantir/atlasdb/blob/245d01b734ea0dac52bc8d37757bbe12f8b35c22/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj% https://github.com/palantir/atlasdb/raw/245d01b734ea0dac52bc8d37757bbe12f8b35c22/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.java?ref=245d01b734ea0dac52bc8d37757bbe12f8b35c22j% X  @@ -16,8 +16,9 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
-import java.util.Map;
+import java.util.List;
 import org.immutables.value.Value;
 
 /**
@@ -41,10 +42,14 @@ default <T> T accept(TransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-    default WitnessedRowColumnRangeReadTransactionAction witness(Map<Integer, Integer> columnsAndValues) {
+    default WitnessedRowColumnRangeReadTransactionAction witness(List<ColumnValue> columnsAndValues) {
         return WitnessedRowColumnRangeReadTransactionAction.builder()
                 .originalQuery(this)
                 .columnsAndValues(columnsAndValues)
                 .build();
     }
+
+    static ImmutableRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableRowColumnRangeReadTransactionAction.builder();
+    }
 }u}(j$ (38a65eba69a07daa7a8e54b12219e51f9cc5b4bbj$ atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javaj$ modifiedj$ Kj$ Kj$ Kj % https://github.com/palantir/atlasdb/blob/245d01b734ea0dac52bc8d37757bbe12f8b35c22/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj% https://github.com/palantir/atlasdb/raw/245d01b734ea0dac52bc8d37757bbe12f8b35c22/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj% X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=245d01b734ea0dac52bc8d37757bbe12f8b35c22j% X(  @@ -16,21 +16,39 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
-import java.util.Map;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
 import org.immutables.value.Value;
 
 @Value.Immutable
 public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedTransactionAction {
     RowColumnRangeReadTransactionAction originalQuery();
 
-    Map<Integer, Integer> columnsAndValues();
+    List<ColumnValue> columnsAndValues();
 
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
+    @Value.Check
+    default void check() {
+        Set<Integer> knownColumns = new HashSet<>();
+        for (ColumnValue columnValue : columnsAndValues()) {
+            Preconditions.checkState(
+                    !knownColumns.contains(columnValue.column()),
+                    "Duplicate column in columnsAndValues",
+                    SafeArg.of("duplicatedColumn", columnValue.column()),
+                    SafeArg.of("columnsAndValues", columnsAndValues()));
+            knownColumns.add(columnValue.column());
+        }
+    }
+
     static ImmutableWitnessedRowColumnRangeReadTransactionAction.Builder builder() {
         return ImmutableWitnessedRowColumnRangeReadTransactionAction.builder();
     }u}(j$ (08fc8c1b028ddd712e15228028a1af0fff784ecej$ atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javaj$ addedj$ K@j$ K j$ K@j % https://github.com/palantir/atlasdb/blob/245d01b734ea0dac52bc8d37757bbe12f8b35c22/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj% https://github.com/palantir/atlasdb/raw/245d01b734ea0dac52bc8d37757bbe12f8b35c22/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj% X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=245d01b734ea0dac52bc8d37757bbe12f8b35c22j% Xg  @@ -0,0 +1,64 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import org.junit.Test;
+
+public class WitnessedRowColumnRangeReadTransactionActionTest {
+    @Test
+    public void canCreateWitness() {
+        assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
+                        .build())
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void cannotCreateWitnessWithDuplicateColumns() {
+        assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
+                        .build())
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Duplicate column in columnsAndValues")
+                .hasExactlyArgs(
+                        SafeArg.of("duplicatedColumn", 1),
+                        SafeArg.of(
+                                "columnsAndValues",
+                                ImmutableList.of(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))));
+    }
+}ueu(a26cd5e822c26e4765ac43dc236f3dfcd559ed36}(sha(a26cd5e822c26e4765ac43dc236f3dfcd559ed36node_idEC_kwDOAjP5fdoAKGEyNmNkNWU4MjJjMjZlNDc2NWFjNDNkYzIzNmYzZGZjZDU1OWVkMzYcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-04-04T14:04:59Zu	committer}(j*% GitHubj,% noreply@github.comj.% 2023-04-04T14:04:59Zumessage,Excavator:  Update policy-bot config (#6477)tree}(j"% (55681699b6f758f226e647afbc329e4624ba167furl`https://api.github.com/repos/palantir/atlasdb/git/trees/55681699b6f758f226e647afbc329e4624ba167fuj:% bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a26cd5e822c26e4765ac43dc236f3dfcd559ed36
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkLC6LCRBK7hj4Ov3rIwAA07kIABM0aKWnArBF4o0O39M2xxB1
IlFFEk7pyai+AZv7k0eHlFL7Qkwc/d39mbFVc5xHWmPi6QHmpCBJChSjafGzWF5Q
rHTB5/SXw0q6N5RCScheanxDMka5kCmNxSJi8JPeempKPEaje/Uvd9+vkeNU7pPK
pBD50BUB5OCHlHkGXdyotR3lmvcUAF6QCTmHsD4xoICK8MitQrvkzYOpv0aqoqw0
832rbpWHmHMMnMgJs6jdil7z+arxbuDp+tz73ZoXlxaAolZHueEUEpjPOhk06Pke
6Gvvvnsncxp9RUsq1XXfCKHDw8vs2iYD4i29+WOKZsncsVMM0vDo4LviTn/WmoQ=
=EVWl
-----END PGP SIGNATURE-----
payloadX!  tree 55681699b6f758f226e647afbc329e4624ba167f
parent 3d9d81a4185a326ec16293f69bbb21dca78b6c09
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1680617099 +0100
committer GitHub <noreply@github.com> 1680617099 +0000

Excavator:  Update policy-bot config (#6477)

 uuj:% ^https://api.github.com/repos/palantir/atlasdb/commits/a26cd5e822c26e4765ac43dc236f3dfcd559ed36html_urlShttps://github.com/palantir/atlasdb/commit/a26cd5e822c26e4765ac43dc236f3dfcd559ed36comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a26cd5e822c26e4765ac43dc236f3dfcd559ed36/commentsj(% }(loginsvc-excavator-botidJj$% MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=41     gravatar_idh5j:% .https://api.github.com/users/svc-excavator-botjH% $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj0% }(jM% web-flowjO% J/j$% MDQ6VXNlcjE5ODY0NDQ3jQ% 4https://avatars.githubusercontent.com/u/19864447?v=4jS% h5j:% %https://api.github.com/users/web-flowjH% https://github.com/web-flowjV% /https://api.github.com/users/web-flow/followersjX% <https://api.github.com/users/web-flow/following{/other_user}jZ% 5https://api.github.com/users/web-flow/gists{/gist_id}j\% <https://api.github.com/users/web-flow/starred{/owner}{/repo}j^% 3https://api.github.com/users/web-flow/subscriptionsj`% *https://api.github.com/users/web-flow/orgsjb% +https://api.github.com/users/web-flow/reposjd% 6https://api.github.com/users/web-flow/events{/privacy}jf% 5https://api.github.com/users/web-flow/received_eventsjh% Userjj% uparents]}(j"% (3d9d81a4185a326ec16293f69bbb21dca78b6c09j:% ^https://api.github.com/repos/palantir/atlasdb/commits/3d9d81a4185a326ec16293f69bbb21dca78b6c09jH% Shttps://github.com/palantir/atlasdb/commit/3d9d81a4185a326ec16293f69bbb21dca78b6c09uastats}(totalK	additionsK	deletionsK ufiles]}(j"% (b9dc830bb20b031d2b9e0db0007dbe449c528f7afilename.policy.ymlstatusmodifiedj% Kj% K changesKblob_url]https://github.com/palantir/atlasdb/blob/a26cd5e822c26e4765ac43dc236f3dfcd559ed36/.policy.ymlraw_url\https://github.com/palantir/atlasdb/raw/a26cd5e822c26e4765ac43dc236f3dfcd559ed36/.policy.ymlcontents_urlohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=a26cd5e822c26e4765ac43dc236f3dfcd559ed36patchX*  @@ -81,6 +81,7 @@ approval_rules:
           - "^versions.lock$"
           - "^internal/generated/.*"
           - "^internal/generated_src/.*"
+          - "^gradle-baseline-java/src/main/resources/checkstyle.version$"
       has_valid_signatures_by_keys:
         key_ids: ["C9AF124A484882E0"]
 uau(562c62fca235e8ec71b3fb6e4076a25d591ed08a}(sha(562c62fca235e8ec71b3fb6e4076a25d591ed08anode_idEC_kwDOAjP5fdoAKDU2MmM2MmZjYTIzNWU4ZWM3MWIzZmI2ZTQwNzZhMjVkNTkxZWQwOGEcommit}(author}(nameChris Van de Veldeemailcvandevelde@palantir.comdate2023-04-03T01:42:55Zu	committer}(j% Chris Van de Veldej% cvandevelde@palantir.comj% 2023-04-03T01:42:55Zumessage&metadata.getColumns cannot return nulltree}(j% (49c2cd02d4db7e6861f24820281f114c0ae559cburl`https://api.github.com/repos/palantir/atlasdb/git/trees/49c2cd02d4db7e6861f24820281f114c0ae559cbuj% bhttps://api.github.com/repos/palantir/atlasdb/git/commits/562c62fca235e8ec71b3fb6e4076a25d591ed08a
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEfsytHu2QbUsz5QamhCdbnbxuCwoFAmQqLzkACgkQhCdbnbxu
CwrPhAgAu8//SJkykkwZ/QBxbBn3j0hiuhyNlgvaLY/fpjGCG/IncvemI7cHB5TX
T/skET9j4A3ACwWrno70ETHpVxF9KYMqrv+50lONwaObZuiAKgX2UooIgDwnyQ6Z
Q/nYYD7pOJO3dbtRoSAxvRu9H7bdf+hjA05l+HkqPPnc/q+jBR5V40Q5nGfb9iSO
G0t4mqa8l3hIMOwH8u5QVOAQPApzyrXP60hR1ktSDFDgjGMRDKWSfRA6l3Vi+Zta
1+tsQslemB0RCuJcgt7QKWciPolyg65zpY3oKwz2qMHkAr52xn14YH//6sFVBPqt
l8+oXaE3RC0bQME5n8iWAkQu/fl5BQ==
=X+eB
-----END PGP SIGNATURE-----payloadX  tree 49c2cd02d4db7e6861f24820281f114c0ae559cb
parent a120c61b46d29ca5d1a5b02c69c63fd6e7e21510
author Chris Van de Velde <cvandevelde@palantir.com> 1680486175 +1000
committer Chris Van de Velde <cvandevelde@palantir.com> 1680486175 +1000

metadata.getColumns cannot return null
uuj% ^https://api.github.com/repos/palantir/atlasdb/commits/562c62fca235e8ec71b3fb6e4076a25d591ed08ahtml_urlShttps://github.com/palantir/atlasdb/commit/562c62fca235e8ec71b3fb6e4076a25d591ed08acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/562c62fca235e8ec71b3fb6e4076a25d591ed08a/commentsj% }(loginCVdV-auidJDN j% MDQ6VXNlcjY5MjI2MDUy
avatar_url4https://avatars.githubusercontent.com/u/69226052?v=4gravatar_idh5j% $https://api.github.com/users/CVdV-auj% https://github.com/CVdV-au
followers_url.https://api.github.com/users/CVdV-au/followers
following_url;https://api.github.com/users/CVdV-au/following{/other_user}	gists_url4https://api.github.com/users/CVdV-au/gists{/gist_id}starred_url;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/CVdV-au/subscriptionsorganizations_url)https://api.github.com/users/CVdV-au/orgs	repos_url*https://api.github.com/users/CVdV-au/repos
events_url5https://api.github.com/users/CVdV-au/events{/privacy}received_events_url4https://api.github.com/users/CVdV-au/received_eventstypeUser
site_adminuj% }(j% CVdV-auj% JDN j% MDQ6VXNlcjY5MjI2MDUyj% 4https://avatars.githubusercontent.com/u/69226052?v=4j% h5j% $https://api.github.com/users/CVdV-auj% https://github.com/CVdV-auj% .https://api.github.com/users/CVdV-au/followersj% ;https://api.github.com/users/CVdV-au/following{/other_user}j% 4https://api.github.com/users/CVdV-au/gists{/gist_id}j% ;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}j% 2https://api.github.com/users/CVdV-au/subscriptionsj% )https://api.github.com/users/CVdV-au/orgsj% *https://api.github.com/users/CVdV-au/reposj% 5https://api.github.com/users/CVdV-au/events{/privacy}j% 4https://api.github.com/users/CVdV-au/received_eventsj% Userj% uparents]}(j% (a120c61b46d29ca5d1a5b02c69c63fd6e7e21510j% ^https://api.github.com/repos/palantir/atlasdb/commits/a120c61b46d29ca5d1a5b02c69c63fd6e7e21510j% Shttps://github.com/palantir/atlasdb/commit/a120c61b46d29ca5d1a5b02c69c63fd6e7e21510uastats}(totalK	additionsK
	deletionsKufiles]}(j% (16016bac4fb642bd9934fcbdc2a95307afc7979afilename_atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTable.javastatusmodifiedj% K
j% KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/562c62fca235e8ec71b3fb6e4076a25d591ed08a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaraw_urlhttps://github.com/palantir/atlasdb/raw/562c62fca235e8ec71b3fb6e4076a25d591ed08a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.java?ref=562c62fca235e8ec71b3fb6e4076a25d591ed08apatchX  @@ -175,7 +175,7 @@ private boolean needsOverflow(TableMetadata metadata) {
      *   compression of both { row, col } is valuable.
      * - If the sweep strategy is not CONSERVATIVE,  there will be reuse of the { row } if there is more than one named
      *   column, or the table uses dynamic columns, which would be generally be expected to have multiple row values. In
-     *   this case, compression 1 is appropriate so { row } only needs to be store once.
+     *   this case, compression 1 is appropriate so { row } only needs to be stored once.
      * - Finally, if the sweep strategy is not CONSERVATIVE, there are no sentinels, and if there is only one named
      *   column then there will be no rows that share { row } so compression should be disabled.
      */
@@ -185,17 +185,16 @@ static int getOptimalIndexCompression(TableMetadata metadata) {
             // the table's sweep strategy is CONSERVATIVE, then every { row, col } will have at least two rows
             return 2;
         }
+
         ColumnMetadataDescription columns = metadata.getColumns();
-        if (columns != null) {
-            // there will be reuse of the { row } if there is more than one named column
-            // or the table uses dynamic columns, which would be generally be expected to have multiple row values
-            if (columns.hasDynamicColumns()) {
-                return 1;
-            }
-            Set<NamedColumnDescription> namedColumns = columns.getNamedColumns();
-            if (namedColumns != null && namedColumns.size() > 1) {
-                return 1;
-            }
+        // there will be reuse of the { row } if there is more than one named column
+        // or the table uses dynamic columns, which would be generally be expected to have multiple row values
+        if (columns.hasDynamicColumns()) {
+            return 1;
+        }
+        Set<NamedColumnDescription> namedColumns = columns.getNamedColumns();
+        if (namedColumns != null && namedColumns.size() > 1) {
+            return 1;
         }
 
         return 0;uau(8b04dd2c47f05d41e5683917b69aa734ccf663b4}(sha(8b04dd2c47f05d41e5683917b69aa734ccf663b4node_idEC_kwDOAjP5fdoAKDhiMDRkZDJjNDdmMDVkNDFlNTY4MzkxN2I2OWFhNzM0Y2NmNjYzYjQcommit}(author}(name
Samuel Krameremailskramer@palantir.comdate2023-03-23T22:28:25Zu	committer}(j& 
Samuel Kramerj& skramer@palantir.comj& 2023-03-23T22:28:25Zumessageaddress comments + cleanuptree}(j& (4187955555a1100f821f4981c85e30c2408818c5url`https://api.github.com/repos/palantir/atlasdb/git/trees/4187955555a1100f821f4981c85e30c2408818c5uj(& bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8b04dd2c47f05d41e5683917b69aa734ccf663b4
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj(& ^https://api.github.com/repos/palantir/atlasdb/commits/8b04dd2c47f05d41e5683917b69aa734ccf663b4html_urlShttps://github.com/palantir/atlasdb/commit/8b04dd2c47f05d41e5683917b69aa734ccf663b4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8b04dd2c47f05d41e5683917b69aa734ccf663b4/commentsj& }(login
Sam-KrameridJ^2_ j& MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j(& 'https://api.github.com/users/Sam-Kramerj4& https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj& }(j9& 
Sam-Kramerj;& J^2_ j& MDQ6VXNlcjYyMzg4MTQ=j=& 3https://avatars.githubusercontent.com/u/6238814?v=4j?& h5j(& 'https://api.github.com/users/Sam-Kramerj4& https://github.com/Sam-KramerjB& 1https://api.github.com/users/Sam-Kramer/followersjD& >https://api.github.com/users/Sam-Kramer/following{/other_user}jF& 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jH& >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jJ& 5https://api.github.com/users/Sam-Kramer/subscriptionsjL& ,https://api.github.com/users/Sam-Kramer/orgsjN& -https://api.github.com/users/Sam-Kramer/reposjP& 8https://api.github.com/users/Sam-Kramer/events{/privacy}jR& 7https://api.github.com/users/Sam-Kramer/received_eventsjT& UserjV& uparents]}(j& (215d620903282ec828ba3be1435a8837b7cdda82j(& ^https://api.github.com/repos/palantir/atlasdb/commits/215d620903282ec828ba3be1435a8837b7cdda82j4& Shttps://github.com/palantir/atlasdb/commit/215d620903282ec828ba3be1435a8837b7cdda82uastats}(totalK	additionsK
	deletionsKufiles](}(j& (6f2b6f9d3ae996b58f2ea52287ef51f41458e3fbfilename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedjp& Kjq& KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/8b04dd2c47f05d41e5683917b69aa734ccf663b4/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/8b04dd2c47f05d41e5683917b69aa734ccf663b4/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=8b04dd2c47f05d41e5683917b69aa734ccf663b4patchX  @@ -60,7 +60,9 @@ services:
 
   workload-server:
     image: palantirtechnologies/atlasdb-workload-server-distribution:unspecified
-    command: [bash, -c, 'cp var/conf/workload-server.timelock.cassandra.yml var/conf/workload-server.yml && dockerize -timeout 120s -wait tcp://cassandra1:9160 && service/bin/init.sh console']
+    command: [bash, -c, 'cp var/conf/workload-server.timelock.cassandra.yml var/conf/workload-server.yml 
+                         && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160 
+                         && service/bin/init.sh console']
     depends_on:
       - cassandra1
       - cassandra2u}(j& (77aa082a3f56273b255cc5a16f5dfd48dbf64a7ajv& 1atlasdb-workload-server-distribution/build.gradlejx& modifiedjp& Kjq& Kjz& Kj{& https://github.com/palantir/atlasdb/blob/8b04dd2c47f05d41e5683917b69aa734ccf663b4/atlasdb-workload-server-distribution%2Fbuild.gradlej}& https://github.com/palantir/atlasdb/raw/8b04dd2c47f05d41e5683917b69aa734ccf663b4/atlasdb-workload-server-distribution%2Fbuild.gradlej& https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=8b04dd2c47f05d41e5683917b69aa734ccf663b4j& X  @@ -19,7 +19,7 @@ dependencies {
     implementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
     implementation 'com.palantir.conjure.java.runtime:conjure-java-jersey-server'
     implementation 'com.google.guava:guava'
-    
+
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-cassandra')
     implementation project(':atlasdb-workload-server')u}(j& (85cb331280d6f96e3eedd1c99343b3a58af383ebjv& Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymljx& modifiedjp& Kjq& Kjz& Kj{& https://github.com/palantir/atlasdb/blob/8b04dd2c47f05d41e5683917b69aa734ccf663b4/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj}& https://github.com/palantir/atlasdb/raw/8b04dd2c47f05d41e5683917b69aa734ccf663b4/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj& https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=8b04dd2c47f05d41e5683917b69aa734ccf663b4j& X  @@ -37,10 +37,10 @@ install:
     targetedSweep:
       enableSweepQueueWrites: true
     namespace: workload_server
-  single-row-two-cells-config:
-    table-configuration:
-      table-name: two_cells_test
-      isolation-level: SERIALIZABLE
-    iteration-count: 100
+  singleRowTwoCellsConfig:
+    tableConfiguration:
+      tableName: two_cells_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
     type: singleRowTwoCells
-  exit-after-running: true
+  exitAfterRunning: trueueu(5549210f49e41ba6a4b4065b5e7310e51b1fd5ad}(sha(5549210f49e41ba6a4b4065b5e7310e51b1fd5adnode_idEC_kwDOAjP5fdoAKDU1NDkyMTBmNDllNDFiYTZhNGI0MDY1YjVlNzMxMGU1MWIxZmQ1YWQcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-25T14:59:16Zu	committer}(j& 	Tom Papkej& tpapke@palantir.comj& 2023-07-25T14:59:16Zumessage
Adjust revapitree}(j& (0d9b653dea0cb7b0f4616b196e97db536aaad784url`https://api.github.com/repos/palantir/atlasdb/git/trees/0d9b653dea0cb7b0f4616b196e97db536aaad784uj& bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5549210f49e41ba6a4b4065b5e7310e51b1fd5ad
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS/40QACgkQmF9s0kaF
Iw2pEQf/W3+VPyHsoj/jWEHwGASbXGswiGWNmjvgDSOZI9IOnvtynLwkg8U/ti5Z
/WKZ/6lGYux7ojYEwRFVfZieVNAfcBh8bl00f7JKKFA8aLksrmiY8rW4uiwMHuW3
VTnZ3/AM7SxY2ay6GLK9etc0p0GWgiZOVduQz9gbLN325A33lNMRMqvB2qDuKuVN
cnP5u92VBlK7afmlIcLvtrdg1ujeoxDpE+Gdi71BUA7LORdad06qo+iFTVzH2TAB
U4i+H42WsXnHi1HTyZdhlusq78Ah2hNeTs1gfESmS8+cHqxDBTDccFBNCdGp7pku
Mjlq4uV4Tt4EhZ7MTOdz0I7h+aRfpA==
=L+2a
-----END PGP SIGNATURE-----payloadtree 0d9b653dea0cb7b0f4616b196e97db536aaad784
parent ff8c033668043ee0d3a39f533c26dc41c81111c5
author Tom Papke <tpapke@palantir.com> 1690297156 +0100
committer Tom Papke <tpapke@palantir.com> 1690297156 +0100

Adjust revapi
uuj& ^https://api.github.com/repos/palantir/atlasdb/commits/5549210f49e41ba6a4b4065b5e7310e51b1fd5adhtml_urlShttps://github.com/palantir/atlasdb/commit/5549210f49e41ba6a4b4065b5e7310e51b1fd5adcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5549210f49e41ba6a4b4065b5e7310e51b1fd5ad/commentsj& }(login	ToemmscheidJboj& MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j& &https://api.github.com/users/Toemmschej& https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj& }(j& 	Toemmschej& Jboj& MDQ6VXNlcjQzNjc1NDkwj& 4https://avatars.githubusercontent.com/u/43675490?v=4j& h5j& &https://api.github.com/users/Toemmschej& https://github.com/Toemmschej& 0https://api.github.com/users/Toemmsche/followersj& =https://api.github.com/users/Toemmsche/following{/other_user}j& 6https://api.github.com/users/Toemmsche/gists{/gist_id}j& =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j& 4https://api.github.com/users/Toemmsche/subscriptionsj& +https://api.github.com/users/Toemmsche/orgsj& ,https://api.github.com/users/Toemmsche/reposj& 7https://api.github.com/users/Toemmsche/events{/privacy}j& 6https://api.github.com/users/Toemmsche/received_eventsj& Userj& uparents]}(j& (ff8c033668043ee0d3a39f533c26dc41c81111c5j& ^https://api.github.com/repos/palantir/atlasdb/commits/ff8c033668043ee0d3a39f533c26dc41c81111c5j& Shttps://github.com/palantir/atlasdb/commit/ff8c033668043ee0d3a39f533c26dc41c81111c5uastats}(totalK
	additionsK
	deletionsK ufiles]}(j& (09a84b6ea50d5e37d656ed6e69453dc5e6a5f702filename.palantir/revapi.ymlstatusmodifiedj& K
j& K changesK
blob_urlhhttps://github.com/palantir/atlasdb/blob/5549210f49e41ba6a4b4065b5e7310e51b1fd5ad/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/5549210f49e41ba6a4b4065b5e7310e51b1fd5ad/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=5549210f49e41ba6a4b4065b5e7310e51b1fd5adpatchX  @@ -183,3 +183,13 @@ acceptedBreaks:
         \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
         \ java.util.Optional<java.lang.String>, java.util.function.LongSupplier, boolean)"
       justification: "will only be a compile break at worst for users and consumers"
+  "0.904.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.method.addedToInterface"
+      new: "method void com.palantir.atlasdb.transaction.api.Transaction::deleteWithMetadata(com.palantir.atlasdb.keyvalue.api.TableReference,\
+        \ java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell, com.palantir.lock.watch.ChangeMetadata>)"
+      justification: "Adding new metadata interface methods"
+    - code: "java.method.addedToInterface"
+      new: "method void com.palantir.atlasdb.transaction.api.Transaction::putWithMetadata(com.palantir.atlasdb.keyvalue.api.TableReference,\
+        \ java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell, com.palantir.atlasdb.transaction.api.ValueAndChangeMetadata>)"
+      justification: "Adding new metadata interface methods"uau(135a5a8b8a3deaf7e1124b31503899d28974a498}(sha(135a5a8b8a3deaf7e1124b31503899d28974a498node_idEC_kwDOAjP5fdoAKDEzNWE1YThiOGEzZGVhZjdlMTEyNGIzMTUwMzg5OWQyODk3NGE0OTgcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-23T13:28:04Zu	committer}(j' 
Sam Kramerj' skramer@palantir.comj' 2023-05-23T13:28:04Zumessagelower gc grace for antithesistree}(j' (35ed286482dc814b8dcf1303b2bdebe876e54401url`https://api.github.com/repos/palantir/atlasdb/git/trees/35ed286482dc814b8dcf1303b2bdebe876e54401uj$' bhttps://api.github.com/repos/palantir/atlasdb/git/commits/135a5a8b8a3deaf7e1124b31503899d28974a498
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRsv2QACgkQmPPOpKR4
XS1n7Qf/dcDpyAS6RvA33Q9W76kdFCDXFeRUpnv1VE1D9HR/G+qIhUYiCuqBz8K2
yldfPWzdTPjn3hKIk7PCtYuApi4Lan5SC0W7m/HtrYEKkPssWfhAoN+X6obYrdbO
Bx1r448m/tuD3nzm5eTQAR+a3RuYrHmVVg3xeFobn/DP1qPEjqCSazhnrtMYxyj4
EyC282+KlRzUpo8uOEIo/4x8gdAJJqSsmegjc3fSGntEVSb2iVpEswvKO2XvthyR
AsduglJlk8z0oE0YBo4WIrMq7zUaBtZRrVqTu6hilN3nxeuXPNvyD9WTj/+TO7rr
3lF/G/vdyAN/b8xc4GZV0WJ8/pRiVg==
=BBxE
-----END PGP SIGNATURE-----payloadtree 35ed286482dc814b8dcf1303b2bdebe876e54401
parent 8d9ed7583f3c695e90886a0d303f32c1925fcf1a
author Sam Kramer <skramer@palantir.com> 1684848484 +0100
committer Sam Kramer <skramer@palantir.com> 1684848484 +0100

lower gc grace for antithesis
uuj$' ^https://api.github.com/repos/palantir/atlasdb/commits/135a5a8b8a3deaf7e1124b31503899d28974a498html_urlShttps://github.com/palantir/atlasdb/commit/135a5a8b8a3deaf7e1124b31503899d28974a498comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/135a5a8b8a3deaf7e1124b31503899d28974a498/commentsj' }(login
Sam-KrameridJ^2_ j' MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j$' 'https://api.github.com/users/Sam-Kramerj2' https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj' }(j7' 
Sam-Kramerj9' J^2_ j' MDQ6VXNlcjYyMzg4MTQ=j;' 3https://avatars.githubusercontent.com/u/6238814?v=4j=' h5j$' 'https://api.github.com/users/Sam-Kramerj2' https://github.com/Sam-Kramerj@' 1https://api.github.com/users/Sam-Kramer/followersjB' >https://api.github.com/users/Sam-Kramer/following{/other_user}jD' 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jF' >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jH' 5https://api.github.com/users/Sam-Kramer/subscriptionsjJ' ,https://api.github.com/users/Sam-Kramer/orgsjL' -https://api.github.com/users/Sam-Kramer/reposjN' 8https://api.github.com/users/Sam-Kramer/events{/privacy}jP' 7https://api.github.com/users/Sam-Kramer/received_eventsjR' UserjT' uparents]}(j' (8d9ed7583f3c695e90886a0d303f32c1925fcf1aj$' ^https://api.github.com/repos/palantir/atlasdb/commits/8d9ed7583f3c695e90886a0d303f32c1925fcf1aj2' Shttps://github.com/palantir/atlasdb/commit/8d9ed7583f3c695e90886a0d303f32c1925fcf1auastats}(totalK	additionsK	deletionsK ufiles]}(j' (4b9c2ec5d183466cdcb37caf35afaee986d31c17filenameTatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlstatusmodifiedjn' Kjo' K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/135a5a8b8a3deaf7e1124b31503899d28974a498/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/135a5a8b8a3deaf7e1124b31503899d28974a498/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=135a5a8b8a3deaf7e1124b31503899d28974a498patch@@ -37,6 +37,7 @@ install:
         password: cassandra
       ssl: false
       replicationFactor: 3
+      gcGraceSeconds: 300
     targetedSweep:
       enableSweepQueueWrites: true
     namespace: workload_serveruau(f273357b24b3af84d3b0c6c388628678d3bec21f}(sha(f273357b24b3af84d3b0c6c388628678d3bec21fnode_idEC_kwDOAjP5fdoAKGYyNzMzNTdiMjRiM2FmODRkM2IwYzZjMzg4NjI4Njc4ZDNiZWMyMWYcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-20T15:54:04Zu	committer}(j' Lucas Meirelesj' meireles31@msn.comj' 2023-07-20T15:54:04ZumessageVAdd test verifying we don't decrease number of expected cells if cached value is emptytree}(j' (894a0fa7210b79cd069b3885cfcff7c6c3ae9110url`https://api.github.com/repos/palantir/atlasdb/git/trees/894a0fa7210b79cd069b3885cfcff7c6c3ae9110uj' bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f273357b24b3af84d3b0c6c388628678d3bec21f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS5WJwACgkQJd22kJ7J
GizsewgA4qzXEj27N22UTWzLtYTBaQdI7AwQbll5RU0UDd0JbL0jj36BifWnL6XE
02/yIbnT9G3eVhK3GwGUSVf7NqTA9Q8sd3Z1hE+UvDHjERuc+RCGrDt/e2RORhzg
0cHdtQ1tN/Ylv9fFmmh+T5STkKF4uTXf7NJWpMdPRh6CmPIkg5GsWFae3fHGqO/b
cscOUj48og8MnURF7dBLAhTAisreCC+RKDJS2lDZ8tFYPS0Pl60zKTe9NSplgezI
YyPKLmmgLXWFJAh4ZXewuF8KHqRgNh8l/VQptH45Ijln5ByNUB3EaPsM6k8VEbDg
W9cIdXywf/St9FjMogpbl84rVAi47g==
=7QJX
-----END PGP SIGNATURE-----payloadX1  tree 894a0fa7210b79cd069b3885cfcff7c6c3ae9110
parent 648e54ee6a671360afc6d4a627d68c570a6be937
author Lucas Meireles <meireles31@msn.com> 1689868444 +0100
committer Lucas Meireles <meireles31@msn.com> 1689868444 +0100

Add test verifying we don't decrease number of expected cells if cached value is empty
uuj' ^https://api.github.com/repos/palantir/atlasdb/commits/f273357b24b3af84d3b0c6c388628678d3bec21fhtml_urlShttps://github.com/palantir/atlasdb/commit/f273357b24b3af84d3b0c6c388628678d3bec21fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f273357b24b3af84d3b0c6c388628678d3bec21f/commentsj' }(loginLucasIMEidJg j' MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j' %https://api.github.com/users/LucasIMEj' https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj' }(j' LucasIMEj' Jg j' MDQ6VXNlcjY3ODczMTE=j' 3https://avatars.githubusercontent.com/u/6787311?v=4j' h5j' %https://api.github.com/users/LucasIMEj' https://github.com/LucasIMEj' /https://api.github.com/users/LucasIME/followersj' <https://api.github.com/users/LucasIME/following{/other_user}j' 5https://api.github.com/users/LucasIME/gists{/gist_id}j' <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j' 3https://api.github.com/users/LucasIME/subscriptionsj' *https://api.github.com/users/LucasIME/orgsj' +https://api.github.com/users/LucasIME/reposj' 6https://api.github.com/users/LucasIME/events{/privacy}j' 5https://api.github.com/users/LucasIME/received_eventsj' Userj' uparents]}(j' (648e54ee6a671360afc6d4a627d68c570a6be937j' ^https://api.github.com/repos/palantir/atlasdb/commits/648e54ee6a671360afc6d4a627d68c570a6be937j' Shttps://github.com/palantir/atlasdb/commit/648e54ee6a671360afc6d4a627d68c570a6be937uastats}(totalKO	additionsK=	deletionsKufiles](}(j' (5954b298d1de39cd6d94b55ac19ed66ef1958080filenameOatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/Transaction.javastatusmodifiedj' Kj' KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/f273357b24b3af84d3b0c6c388628678d3bec21f/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f273357b24b3af84d3b0c6c388628678d3bec21f/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.java?ref=f273357b24b3af84d3b0c6c388628678d3bec21fpatchX  @@ -198,7 +198,7 @@ Iterator<Map.Entry<Cell, byte[]>> getSortedColumns(
      */
     @Idempotent
     Map<Cell, byte[]> getWithExpectedNumberOfCells(
-            TableReference tableRef, Set<Cell> cells, int expectedNumberOfPresentCells);
+            TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells);
 
     /**
      * Gets the values associated for each cell in {@code cells} from table specified by {@code tableRef}. It is notu}(j' (48ded1bdfd38e827f253f142a4be7e20b49972ebj' Zatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CachingTransaction.javaj' modifiedj' Kj' Kj' Kj' https://github.com/palantir/atlasdb/blob/f273357b24b3af84d3b0c6c388628678d3bec21f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javaj' https://github.com/palantir/atlasdb/raw/f273357b24b3af84d3b0c6c388628678d3bec21f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javaj' https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.java?ref=f273357b24b3af84d3b0c6c388628678d3bec21fj' Xu  @@ -134,10 +134,14 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
 
     @Override
     public Map<Cell, byte[]> getWithExpectedNumberOfCells(
-            TableReference tableRef, Set<Cell> cells, int expectedNumberOfPresentCells) {
+            TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {
         try {
             return getWithLoader(tableRef, cells, (tableReference, cachedCells, toRead) -> {
-                        int numberOfCellsExpectingValuePostCache = expectedNumberOfPresentCells - cachedCells.size();
+                        long nonEmptyValuesInCache = cachedCells.values().stream()
+                                .filter(value -> value != PtBytes.EMPTY_BYTE_ARRAY)
+                                .count();
+                        long numberOfCellsExpectingValuePostCache =
+                                expectedNumberOfPresentCells - nonEmptyValuesInCache;
 
                         return Futures.immediateFuture(super.getWithExpectedNumberOfCells(
                                 tableReference, toRead, numberOfCellsExpectingValuePostCache));u}(j' (5893f2499b110aac0360fb4d6b965fdfe0597f63j' ]atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingTransaction.javaj' modifiedj' Kj' Kj' Kj' https://github.com/palantir/atlasdb/blob/f273357b24b3af84d3b0c6c388628678d3bec21f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.javaj' https://github.com/palantir/atlasdb/raw/f273357b24b3af84d3b0c6c388628678d3bec21f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.javaj' https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.java?ref=f273357b24b3af84d3b0c6c388628678d3bec21fj' X  @@ -85,7 +85,7 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
 
     @Override
     public Map<Cell, byte[]> getWithExpectedNumberOfCells(
-            TableReference tableRef, Set<Cell> cells, int expectedNumberOfPresentCells) {
+            TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {
         return delegate().getWithExpectedNumberOfCells(tableRef, cells, expectedNumberOfPresentCells);
     }
 u}(j' (7b68b12c5f2dff7502ac7228c62500bb587626c2j' Watlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ReadTransaction.javaj' modifiedj' Kj' Kj' Kj' https://github.com/palantir/atlasdb/blob/f273357b24b3af84d3b0c6c388628678d3bec21f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj' https://github.com/palantir/atlasdb/raw/f273357b24b3af84d3b0c6c388628678d3bec21f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj' https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.java?ref=f273357b24b3af84d3b0c6c388628678d3bec21fj' X  @@ -66,7 +66,7 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
 
     @Override
     public Map<Cell, byte[]> getWithExpectedNumberOfCells(
-            TableReference tableRef, Set<Cell> cells, int expectedNumberOfPresentCells) {
+            TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {
         checkTableName(tableRef);
         return delegate.getWithExpectedNumberOfCells(tableRef, cells, expectedNumberOfPresentCells);
     }u}(j' (568d7230b9555dd6342e57b496a8bf95c83bbc85j' datlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.javaj' modifiedj' Kj' Kj' Kj' https://github.com/palantir/atlasdb/blob/f273357b24b3af84d3b0c6c388628678d3bec21f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaj' https://github.com/palantir/atlasdb/raw/f273357b24b3af84d3b0c6c388628678d3bec21f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaj' https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.java?ref=f273357b24b3af84d3b0c6c388628678d3bec21fj' X=  @@ -323,7 +323,7 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
     @Override
     @Idempotent
     public Map<Cell, byte[]> getWithExpectedNumberOfCells(
-            TableReference tableRef, Set<Cell> cells, int expectedNumberOfPresentCells) {
+            TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {
         try {
             return getWithLoader(
                             tableRef,
@@ -344,7 +344,7 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(TableReference tableRef, Set
 
     /**
      * If we ever update getWithLoader to filter down the cells before calling the cellLoader, we'll need to update the
-     * {@link #getWithExpectedNumberOfCells(TableReference, Set, int)} implementation to take intro account the
+     * {@link Transaction#getWithExpectedNumberOfCells(TableReference, Set, long)} implementation to take intro account the
      * filtering and change the number of expect cells it sends to the super class.
      */
     private ListenableFuture<Map<Cell, byte[]>> getWithLoader(u}(j' (0ef2a49ad4d73ad212f7c4170d9a699399ddd103j' `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj' modifiedj' Kj' Kj' Kj' https://github.com/palantir/atlasdb/blob/f273357b24b3af84d3b0c6c388628678d3bec21f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj' https://github.com/palantir/atlasdb/raw/f273357b24b3af84d3b0c6c388628678d3bec21f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj' https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=f273357b24b3af84d3b0c6c388628678d3bec21fj' X	  @@ -920,10 +920,12 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
 
     @Override
     public Map<Cell, byte[]> getWithExpectedNumberOfCells(
-            TableReference tableRef, Set<Cell> cells, int expectedNumberOfPresentCells) {
+            TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {
         return getCache().getWithCachedRef(tableRef, cells, cacheLookupResult -> {
-            int numberOfCellsExpectingValuePostCache =
-                    expectedNumberOfPresentCells - cacheLookupResult.cacheHits().size();
+            long cachedCellsWithNonEmptyValue = cacheLookupResult.cacheHits().values().stream()
+                    .filter(value -> value.value().isPresent() && value.value().get() != PtBytes.EMPTY_BYTE_ARRAY)
+                    .count();
+            long numberOfCellsExpectingValuePostCache = expectedNumberOfPresentCells - cachedCellsWithNonEmptyValue;
 
             return getInternal(
                     "getWithExpectedNumberOfCells",
@@ -956,7 +958,7 @@ ListenableFuture<Map<Cell, byte[]>> getInternal(
             String operationName,
             TableReference tableRef,
             Set<Cell> cells,
-            int numberOfExpectedPresentCells,
+            long numberOfExpectedPresentCells,
             AsyncKeyValueService asyncKeyValueService,
             AsyncTransactionService asyncTransactionService) {
         Timer.Context timer = getTimer(operationName).time();
@@ -978,7 +980,7 @@ ListenableFuture<Map<Cell, byte[]>> getInternal(
         }
 
         // We don't need to read any cells that were written locally.
-        int expectedNumberOfPresentCellsToFetch = numberOfExpectedPresentCells - result.size();
+        long expectedNumberOfPresentCellsToFetch = numberOfExpectedPresentCells - result.size();
         return Futures.transform(
                 getFromKeyValueService(
                         tableRef,
@@ -1010,7 +1012,7 @@ ListenableFuture<Map<Cell, byte[]>> getInternal(
     }
 
     private static void validateFetchedLessOrEqualToExpected(
-            int expectedNumberOfPresentCellsToFetch, Map<Cell, byte[]> fromKeyValueService) {
+            long expectedNumberOfPresentCellsToFetch, Map<Cell, byte[]> fromKeyValueService) {
         if (fromKeyValueService.size() > expectedNumberOfPresentCellsToFetch) {
             throw new SafeIllegalStateException(
                     "KeyValueService returned more results than Get expected. This means there is a bug"u}(j' (c83aadd5450e2a1e6c7c9fd94cb3eb82130abfe1j' eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj' modifiedj' K*j' Kj' K/j' https://github.com/palantir/atlasdb/blob/f273357b24b3af84d3b0c6c388628678d3bec21f/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj' https://github.com/palantir/atlasdb/raw/f273357b24b3af84d3b0c6c388628678d3bec21f/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj' https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=f273357b24b3af84d3b0c6c388628678d3bec21fj' X  @@ -1754,7 +1754,8 @@ public void reduceCachedCellsFromNumberOfExpectedCells() {
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
 
-        TransactionScopedCache txnCache = createCacheWithEntry(TABLE_SWEPT_THOROUGH, TEST_CELL);
+        TransactionScopedCache txnCache =
+                createCacheWithEntry(TABLE_SWEPT_THOROUGH, TEST_CELL, "value".getBytes(StandardCharsets.UTF_8));
         LockWatchManagerInternal mockLockWatchManager = mock(LockWatchManagerInternal.class);
         when(mockLockWatchManager.getTransactionScopedCache(anyLong())).thenReturn(txnCache);
 
@@ -1783,13 +1784,49 @@ public void reduceCachedCellsFromNumberOfExpectedCells() {
                         any());
     }
 
-    private TransactionScopedCache createCacheWithEntry(TableReference table, Cell cell) {
+    @Test
+    public void keepNumberOfExpectedCellsIfCachedWithEmptyValue() {
+        putCellsInTable(List.of(TEST_CELL, TEST_CELL_2, TEST_CELL_4), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        TransactionScopedCache txnCache =
+                createCacheWithEntry(TABLE_SWEPT_THOROUGH, TEST_CELL, PtBytes.EMPTY_BYTE_ARRAY);
+        LockWatchManagerInternal mockLockWatchManager = mock(LockWatchManagerInternal.class);
+        when(mockLockWatchManager.getTransactionScopedCache(anyLong())).thenReturn(txnCache);
+
+        PathTypeTracker pathTypeTracker = PathTypeTrackers.constructSynchronousTracker();
+        SnapshotTransaction spiedSnapshotTransaction =
+                spy(getSnapshotTransactionWith(transactionTs, res, mockLockWatchManager, pathTypeTracker));
+        Transaction transaction = transactionWrapper.apply(spiedSnapshotTransaction, pathTypeTracker);
+
+        // Fetching 3 cells, but expect only 2 to be present, for example
+        assertThatCode(() -> transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2))
+                .doesNotThrowAnyException();
+
+        // We shouldn't check for locks even though we haven't fetched all 3 cells, because we fetched 2 and passed
+        // that as the expected value
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+
+        // Even though Cell One is cached, it has empty value, so we still expect 2 values to be present
+        verify(spiedSnapshotTransaction)
+                .getInternal(
+                        eq("getWithExpectedNumberOfCells"),
+                        eq(TABLE_SWEPT_THOROUGH),
+                        eq(Set.of(TEST_CELL_2, TEST_CELL_3)), // Don't expect to ask for cell1 because it's cached
+                        eq(2),
+                        any(),
+                        any());
+    }
+
+    private TransactionScopedCache createCacheWithEntry(TableReference table, Cell cell, byte[] value) {
         CacheMetrics metrics = mock(CacheMetrics.class);
         return TransactionScopedCacheImpl.create(
                 ValueCacheSnapshotImpl.of(
-                        HashMap.of(
-                                CellReference.of(table, cell),
-                                CacheEntry.unlocked(CacheValue.of("value".getBytes(StandardCharsets.UTF_8)))),
+                        HashMap.of(CellReference.of(table, cell), CacheEntry.unlocked(CacheValue.of(value))),
                         HashSet.of(table),
                         ImmutableSet.of(table)),
                 metrics);ueu(52a14290334d3af76d847ef393b1b3ce25d6b463}(sha(52a14290334d3af76d847ef393b1b3ce25d6b463node_idEC_kwDOAjP5fdoAKDUyYTE0MjkwMzM0ZDNhZjc2ZDg0N2VmMzkzYjFiM2NlMjVkNmI0NjMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-06T16:53:26Zu	committer}(j2( Jeremy Kongj4( jkong@palantir.comj6( 2023-06-06T16:53:26ZumessageMMerge branch 'jkong/antithesis-range-two-1' into jkong/antithesis-range-two-2tree}(j*( (c5272a614d5fdbc15c4d53e05cc947b9bfd98174url`https://api.github.com/repos/palantir/atlasdb/git/trees/c5272a614d5fdbc15c4d53e05cc947b9bfd98174ujB( bhttps://api.github.com/repos/palantir/atlasdb/git/commits/52a14290334d3af76d847ef393b1b3ce25d6b463
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR/ZIgACgkQTLdFKain
zjy6iAgA3R/N+5XGxJ7fVbnNMkEQuB1Z9oe3XiVCED7y9hbZRPU9+9+XX3VzoQwf
3fc6+4dFkVZyMCMGax2jzyaueGYUjC4jpVEesSeYQfZLCgZbtKzClNYSBU6jQni7
xrXv9IZmiL+5Elk4slbN5cpa6XDhtklG11mnjBvg+PUAwJabG3+H6N0ZFXC6Hrdv
2qkwBgthKfF12fbYF2ujv7GaoW7toJcGxXpfg65Pw5fV4rhWAW1MWwZqaXUceeBd
3/HO0DZWIMbz1KthuJVwFXGClSkiwe1UqL473N8bTtHI5YL6jponQi0nHaQVNHfM
oREYp8Mtn4v3+4Nffdi0ZshtKOk1Tg==
=C8UT
-----END PGP SIGNATURE-----payloadXR  tree c5272a614d5fdbc15c4d53e05cc947b9bfd98174
parent cc88001d8304284fb79ae4ed84be31237c673bd1
parent 245d01b734ea0dac52bc8d37757bbe12f8b35c22
author Jeremy Kong <jkong@palantir.com> 1686070406 +0100
committer Jeremy Kong <jkong@palantir.com> 1686070406 +0100

Merge branch 'jkong/antithesis-range-two-1' into jkong/antithesis-range-two-2
uujB( ^https://api.github.com/repos/palantir/atlasdb/commits/52a14290334d3af76d847ef393b1b3ce25d6b463html_urlShttps://github.com/palantir/atlasdb/commit/52a14290334d3af76d847ef393b1b3ce25d6b463comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/52a14290334d3af76d847ef393b1b3ce25d6b463/commentsj0( }(login
jeremyk-91idJZ j,( MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jB( 'https://api.github.com/users/jeremyk-91jP( https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj8( }(jU( 
jeremyk-91jW( JZ j,( MDQ6VXNlcjU5NTU1MTA=jY( 3https://avatars.githubusercontent.com/u/5955510?v=4j[( h5jB( 'https://api.github.com/users/jeremyk-91jP( https://github.com/jeremyk-91j^( 1https://api.github.com/users/jeremyk-91/followersj`( >https://api.github.com/users/jeremyk-91/following{/other_user}jb( 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jd( >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jf( 5https://api.github.com/users/jeremyk-91/subscriptionsjh( ,https://api.github.com/users/jeremyk-91/orgsjj( -https://api.github.com/users/jeremyk-91/reposjl( 8https://api.github.com/users/jeremyk-91/events{/privacy}jn( 7https://api.github.com/users/jeremyk-91/received_eventsjp( Userjr( uparents](}(j*( (cc88001d8304284fb79ae4ed84be31237c673bd1jB( ^https://api.github.com/repos/palantir/atlasdb/commits/cc88001d8304284fb79ae4ed84be31237c673bd1jP( Shttps://github.com/palantir/atlasdb/commit/cc88001d8304284fb79ae4ed84be31237c673bd1u}(j*( (245d01b734ea0dac52bc8d37757bbe12f8b35c22jB( ^https://api.github.com/repos/palantir/atlasdb/commits/245d01b734ea0dac52bc8d37757bbe12f8b35c22jP( Shttps://github.com/palantir/atlasdb/commit/245d01b734ea0dac52bc8d37757bbe12f8b35c22uestats}(totalK	additionsK	deletionsKufiles](}(j*( (2725912f8e075ab25f996c376910f257d6850d7ffilename^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ColumnValue.javastatusaddedj( K j( K changesK blob_urlhttps://github.com/palantir/atlasdb/blob/52a14290334d3af76d847ef393b1b3ce25d6b463/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.javaraw_urlhttps://github.com/palantir/atlasdb/raw/52a14290334d3af76d847ef393b1b3ce25d6b463/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.java?ref=52a14290334d3af76d847ef393b1b3ce25d6b463patchX  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ColumnValue {
+    @Value.Parameter
+    int column();
+
+    @Value.Parameter
+    int value();
+
+    static ColumnValue of(int column, int value) {
+        return ImmutableColumnValue.of(column, value);
+    }
+}u}(j*( (090959b255119e1118062f700974bab390f06ba3j( oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javaj( modifiedj( Kj( Kj( Kj( https://github.com/palantir/atlasdb/blob/52a14290334d3af76d847ef393b1b3ce25d6b463/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj( https://github.com/palantir/atlasdb/raw/52a14290334d3af76d847ef393b1b3ce25d6b463/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=52a14290334d3af76d847ef393b1b3ce25d6b463j( XK  @@ -16,11 +16,11 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import java.util.List;
 import java.util.Optional;
-import java.util.SortedMap;
 
 /**
  * Allows for convenient interaction with a transactional store.
@@ -32,7 +32,7 @@ public interface InteractiveTransaction {
 
     void delete(String table, WorkloadCell workloadCell);
 
-    SortedMap<Integer, Integer> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection);
+    List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection);
 
     List<WitnessedTransactionAction> witness();
 }u}(j*( (38bd65bb4f96e9501721390809e74a159a2f3b13j( |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowColumnRangeReadTransactionAction.javaj( modifiedj( Kj( Kj( K
j( https://github.com/palantir/atlasdb/blob/52a14290334d3af76d847ef393b1b3ce25d6b463/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj( https://github.com/palantir/atlasdb/raw/52a14290334d3af76d847ef393b1b3ce25d6b463/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.java?ref=52a14290334d3af76d847ef393b1b3ce25d6b463j( X  @@ -16,8 +16,9 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
-import java.util.SortedMap;
+import java.util.List;
 import org.immutables.value.Value;
 
 /**
@@ -41,14 +42,14 @@ default <T> T accept(TransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-    static ImmutableRowColumnRangeReadTransactionAction.Builder builder() {
-        return ImmutableRowColumnRangeReadTransactionAction.builder();
-    }
-
-    default WitnessedRowColumnRangeReadTransactionAction witness(SortedMap<Integer, Integer> columnsAndValues) {
+    default WitnessedRowColumnRangeReadTransactionAction witness(List<ColumnValue> columnsAndValues) {
         return WitnessedRowColumnRangeReadTransactionAction.builder()
                 .originalQuery(this)
                 .columnsAndValues(columnsAndValues)
                 .build();
     }
+
+    static ImmutableRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableRowColumnRangeReadTransactionAction.builder();
+    }
 }u}(j*( (38a65eba69a07daa7a8e54b12219e51f9cc5b4bbj( atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javaj( modifiedj( Kj( Kj( Kj( https://github.com/palantir/atlasdb/blob/52a14290334d3af76d847ef393b1b3ce25d6b463/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj( https://github.com/palantir/atlasdb/raw/52a14290334d3af76d847ef393b1b3ce25d6b463/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj( X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=52a14290334d3af76d847ef393b1b3ce25d6b463j( X4  @@ -16,21 +16,39 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
-import java.util.SortedMap;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
 import org.immutables.value.Value;
 
 @Value.Immutable
 public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedTransactionAction {
     RowColumnRangeReadTransactionAction originalQuery();
 
-    SortedMap<Integer, Integer> columnsAndValues();
+    List<ColumnValue> columnsAndValues();
 
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
+    @Value.Check
+    default void check() {
+        Set<Integer> knownColumns = new HashSet<>();
+        for (ColumnValue columnValue : columnsAndValues()) {
+            Preconditions.checkState(
+                    !knownColumns.contains(columnValue.column()),
+                    "Duplicate column in columnsAndValues",
+                    SafeArg.of("duplicatedColumn", columnValue.column()),
+                    SafeArg.of("columnsAndValues", columnsAndValues()));
+            knownColumns.add(columnValue.column());
+        }
+    }
+
     static ImmutableWitnessedRowColumnRangeReadTransactionAction.Builder builder() {
         return ImmutableWitnessedRowColumnRangeReadTransactionAction.builder();
     }u}(j*( (08fc8c1b028ddd712e15228028a1af0fff784ecej( atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javaj( addedj( K@j( K j( K@j( https://github.com/palantir/atlasdb/blob/52a14290334d3af76d847ef393b1b3ce25d6b463/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj( https://github.com/palantir/atlasdb/raw/52a14290334d3af76d847ef393b1b3ce25d6b463/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj( X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=52a14290334d3af76d847ef393b1b3ce25d6b463j( Xg  @@ -0,0 +1,64 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import org.junit.Test;
+
+public class WitnessedRowColumnRangeReadTransactionActionTest {
+    @Test
+    public void canCreateWitness() {
+        assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
+                        .build())
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void cannotCreateWitnessWithDuplicateColumns() {
+        assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
+                        .build())
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Duplicate column in columnsAndValues")
+                .hasExactlyArgs(
+                        SafeArg.of("duplicatedColumn", 1),
+                        SafeArg.of(
+                                "columnsAndValues",
+                                ImmutableList.of(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))));
+    }
+}u}(j*( (04ae2c64a955d19f9e33c324162b59c92e1ba7c6j( latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj( modifiedj( Kj( Kj( Kj( https://github.com/palantir/atlasdb/blob/52a14290334d3af76d847ef393b1b3ce25d6b463/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj( https://github.com/palantir/atlasdb/raw/52a14290334d3af76d847ef393b1b3ce25d6b463/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=52a14290334d3af76d847ef393b1b3ce25d6b463j( XE  @@ -40,9 +40,9 @@
 import java.util.Map.Entry;
 import java.util.Optional;
 import java.util.Set;
-import java.util.SortedMap;
 import java.util.function.BiFunction;
 import java.util.function.Function;
+import java.util.stream.Collectors;
 import javax.annotation.concurrent.NotThreadSafe;
 import one.util.streamex.EntryStream;
 
@@ -101,8 +101,7 @@ public void delete(String table, WorkloadCell workloadCell) {
     }
 
     @Override
-    public SortedMap<Integer, Integer> getRowColumnRange(
-            String table, Integer row, ColumnRangeSelection columnRangeSelection) {
+    public List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection) {
         return run(
                 tableReference -> {
                     // Having a non-configurable batch hint is a bit iffy, but suffices as this won't be used in
@@ -112,12 +111,12 @@ public SortedMap<Integer, Integer> getRowColumnRange(
                             List.of(AtlasDbUtils.toAtlasKey(row)),
                             BatchColumnRangeSelection.create(
                                     AtlasDbUtils.toAtlasColumnRangeSelection(columnRangeSelection), 100));
-                    SortedMap<Integer, Integer> columnsAndValues = EntryStream.of(
-                                    iterators.get(AtlasDbUtils.toAtlasKey(row)))
+                    List<ColumnValue> columnsAndValues = EntryStream.of(iterators.get(AtlasDbUtils.toAtlasKey(row)))
                             .mapKeys(Cell::getColumnName)
                             .mapKeys(AtlasDbUtils::fromAtlasColumn)
                             .mapValues(AtlasDbUtils::fromAtlasValue)
-                            .toSortedMap();
+                            .map(entry -> ColumnValue.of(entry.getKey(), entry.getValue()))
+                            .collect(Collectors.toList());
                     witnessedTransactionActions.add(WitnessedRowColumnRangeReadTransactionAction.builder()
                             .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                     .table(table)u3&     }(j*( (422868f5ccfee1ce589d75cf1fdd3592ea900a1dj( patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj( modifiedj( Kj( K	j( Kj( https://github.com/palantir/atlasdb/blob/52a14290334d3af76d847ef393b1b3ce25d6b463/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj( https://github.com/palantir/atlasdb/raw/52a14290334d3af76d847ef393b1b3ce25d6b463/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=52a14290334d3af76d847ef393b1b3ce25d6b463j( X  @@ -25,7 +25,6 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
-import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
@@ -101,7 +100,7 @@ public void witnessRecordsColumnRangeActions() {
                                         .columnRangeSelection(
                                                 ColumnRangeSelection.builder().build())
                                         .build())
-                                .columnsAndValues(ImmutableSortedMap.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
+                                .addColumnsAndValues(ColumnValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
                                 .build());
     }
 
@@ -120,7 +119,6 @@ public void emptyColumnRangeReadsAreRecorded() {
                                 .columnRangeSelection(
                                         ColumnRangeSelection.builder().build())
                                 .build())
-                        .columnsAndValues(ImmutableSortedMap.of())
                         .build());
     }
 
@@ -140,9 +138,9 @@ public void allRelevantCellsAreRecordedForFullColumnScan() {
                         .isInstanceOfSatisfying(
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
-                                        .containsExactlyEntriesOf(IntStream.range(0, iterationCount)
-                                                .boxed()
-                                                .collect(Collectors.toMap(index -> index, unused -> VALUE_ONE)))));
+                                        .isEqualTo(IntStream.range(0, iterationCount)
+                                                .mapToObj(column -> ColumnValue.of(column, VALUE_ONE))
+                                                .collect(Collectors.toList()))));
     }
 
     @Test
@@ -168,9 +166,9 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
                         .isInstanceOfSatisfying(
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
-                                        .containsExactlyEntriesOf(IntStream.range(startInclusive, endExclusive)
-                                                .boxed()
-                                                .collect(Collectors.toMap(index -> index, unused -> VALUE_ONE)))));
+                                        .isEqualTo(IntStream.range(startInclusive, endExclusive)
+                                                .mapToObj(column -> ColumnValue.of(column, VALUE_ONE))
+                                                .collect(Collectors.toList()))));
     }
 
     @Testueu(1efd7c6a36b4b2c6fdf2577319e1c044376e7e13}(sha(1efd7c6a36b4b2c6fdf2577319e1c044376e7e13node_idEC_kwDOAjP5fdoAKDFlZmQ3YzZhMzZiNGIyYzZmZGYyNTc3MzE5ZTFjMDQ0Mzc2ZTdlMTMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-02-27T14:35:06Zu	committer}(j( 
Sam Kramerj( skramer@palantir.comj( 2023-02-27T14:35:06Zumessage
ok final timetree}(j( (3038a822aa13320e77a3acbeb09a69eec74a5364url`https://api.github.com/repos/palantir/atlasdb/git/trees/3038a822aa13320e77a3acbeb09a69eec74a5364uj( bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1efd7c6a36b4b2c6fdf2577319e1c044376e7e13
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmP8v5oACgkQmPPOpKR4
XS1eFwf/do45ZILfciAPkAA/ZhU8LJNSg2tjTqiP2v3o58RnXjMNPde+myf2aNXZ
ZZ81p0URgxDZwe+15+WDZ1baECY7UcbewETQ8vF4wNUXyWVpq5R3TMifA+UV+1rJ
YTcJ/3qguLZwpvchZ3edpO1b+mtLgmBmFSN00J3VZMf5HJmuFoMKqUB7L8DT666c
UeXRpHZaLiy4h0M2xb3ptIQfFRk2WR5WzKnU2POOPu6LgtO8Xb1hLlBnbvruzyXx
qoyB+bF6zrDfC1+22yl20QHiT5e9DoEiCz6vHD2o/DAppgKUobluhzEdmWJfmZSY
UVPIoSHwcO+LAqBJfl7gOPQcldaatQ==
=SwJv
-----END PGP SIGNATURE-----payloadtree 3038a822aa13320e77a3acbeb09a69eec74a5364
parent d664335d410b9b6bb5d903677a11be944f7a8987
author Sam Kramer <skramer@palantir.com> 1677508506 +0000
committer Sam Kramer <skramer@palantir.com> 1677508506 +0000

ok final time
uuj( ^https://api.github.com/repos/palantir/atlasdb/commits/1efd7c6a36b4b2c6fdf2577319e1c044376e7e13html_urlShttps://github.com/palantir/atlasdb/commit/1efd7c6a36b4b2c6fdf2577319e1c044376e7e13comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1efd7c6a36b4b2c6fdf2577319e1c044376e7e13/commentsj( }(login
Sam-KrameridJ^2_ j( MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j( 'https://api.github.com/users/Sam-Kramerj( https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj( }(j ) 
Sam-Kramerj) J^2_ j( MDQ6VXNlcjYyMzg4MTQ=j) 3https://avatars.githubusercontent.com/u/6238814?v=4j) h5j( 'https://api.github.com/users/Sam-Kramerj( https://github.com/Sam-Kramerj	) 1https://api.github.com/users/Sam-Kramer/followersj) >https://api.github.com/users/Sam-Kramer/following{/other_user}j
) 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j) >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j) 5https://api.github.com/users/Sam-Kramer/subscriptionsj) ,https://api.github.com/users/Sam-Kramer/orgsj) -https://api.github.com/users/Sam-Kramer/reposj) 8https://api.github.com/users/Sam-Kramer/events{/privacy}j) 7https://api.github.com/users/Sam-Kramer/received_eventsj) Userj) uparents]}(j( (d664335d410b9b6bb5d903677a11be944f7a8987j( ^https://api.github.com/repos/palantir/atlasdb/commits/d664335d410b9b6bb5d903677a11be944f7a8987j( Shttps://github.com/palantir/atlasdb/commit/d664335d410b9b6bb5d903677a11be944f7a8987uastats}(totalK	additionsK	deletionsKufiles](}(j( (739c4fc897f1565734993e27a768c77c15e97138filenameQatlasdb-commons/src/main/java/com/palantir/exception/NotInitializedException.javastatusmodifiedj7) Kj8) KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/1efd7c6a36b4b2c6fdf2577319e1c044376e7e13/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1efd7c6a36b4b2c6fdf2577319e1c044376e7e13/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.java?ref=1efd7c6a36b4b2c6fdf2577319e1c044376e7e13patchX  @@ -22,7 +22,7 @@
 import com.palantir.logsafe.SafeLoggable;
 import java.util.List;
 
-public final class NotInitializedException extends AtlasDbDependencyException implements SafeLoggable {
+public class NotInitializedException extends AtlasDbDependencyException implements SafeLoggable {
 
     private static final String EXCEPTION_MESSAGE =
             "The object is not yet initialized, and as a result, all calls to it will fail. Interactions with this"u}(j( (dfa91458329ff1875fb4ec6215218af5871f6e1fj=) Uatlasdb-commons/src/test/java/com/palantir/exception/NotInitializedExceptionTest.javaj?) modifiedj7) Kj8) KjA) KjB) https://github.com/palantir/atlasdb/blob/1efd7c6a36b4b2c6fdf2577319e1c044376e7e13/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedExceptionTest.javajD) https://github.com/palantir/atlasdb/raw/1efd7c6a36b4b2c6fdf2577319e1c044376e7e13/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedExceptionTest.javajF) https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedExceptionTest.java?ref=1efd7c6a36b4b2c6fdf2577319e1c044376e7e13jH) X_  @@ -16,11 +16,11 @@
 
 package com.palantir.exception;
 
+import static org.assertj.core.api.Assertions.assertThat;
+
 import com.palantir.logsafe.SafeArg;
 import org.junit.Test;
 
-import static org.assertj.core.api.Assertions.assertThat;
-
 public final class NotInitializedExceptionTest {
     @Test
     public void getArgsHasObjectNameAsSafe() {u}(j( (d472c8f932207eb4899afe98ed0ccfe92e678cfdj=) [atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/TargetedSweeperTest.javaj?) modifiedj7) Kj8) KjA) KjB) https://github.com/palantir/atlasdb/blob/1efd7c6a36b4b2c6fdf2577319e1c044376e7e13/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FTargetedSweeperTest.javajD) https://github.com/palantir/atlasdb/raw/1efd7c6a36b4b2c6fdf2577319e1c044376e7e13/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FTargetedSweeperTest.javajF) https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FTargetedSweeperTest.java?ref=1efd7c6a36b4b2c6fdf2577319e1c044376e7e13jH) X  @@ -230,14 +230,15 @@ public void increaseInShardsReflectedOnLastSweptTimestamp() {
 
     @Test
     public void callingEnqueueAndSweepOnUninitializedSweeperThrows() {
+        SafeArg<String> objectNameSafeArg = SafeArg.of("objectName", "Targeted Sweeper");
         TargetedSweeper uninitializedSweeper = TargetedSweeper.createUninitializedForTest(() -> 1);
         assertThatLoggableExceptionThrownBy(() -> uninitializedSweeper.enqueue(ImmutableList.of()))
                 .isInstanceOf(NotInitializedException.class)
-                .hasExactlyArgs(SafeArg.of("objectName", "Targeted Sweeper"));
+                .hasExactlyArgs(objectNameSafeArg);
         assertThatLoggableExceptionThrownBy(
                         () -> uninitializedSweeper.sweepNextBatch(ShardAndStrategy.conservative(0), 1L))
                 .isInstanceOf(NotInitializedException.class)
-                .hasExactlyArgs(SafeArg.of("objectName", "Targeted Sweeper"));
+                .hasExactlyArgs(objectNameSafeArg);
     }
 
     @Testueu(11535fb1a332039b728a0892c6b63788de2fb410}(sha(11535fb1a332039b728a0892c6b63788de2fb410node_idEC_kwDOAjP5fdoAKDExNTM1ZmIxYTMzMjAzOWI3MjhhMDg5MmM2YjYzNzg4ZGUyZmI0MTAcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-12T09:17:46Zu	committer}(jd) 	Tom Papkejf) tpapke@palantir.comjh) 2023-07-12T17:25:08ZumessageRefactor teststree}(j\) (c877e4bf06bf83f3188a23977d682aa2611d969burl`https://api.github.com/repos/palantir/atlasdb/git/trees/c877e4bf06bf83f3188a23977d682aa2611d969bujt) bhttps://api.github.com/repos/palantir/atlasdb/git/commits/11535fb1a332039b728a0892c6b63788de2fb410
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSu4fQACgkQmF9s0kaF
Iw1P8ggAt95VnblmuwWFOptgrDASAD05RE7oWcpniOPUbtmXfKckKAvIDcN+klvQ
E6jZ74nxPvOFpovns3jsrGBPu2HhQc+zpHu7GsG1SXoNfQGaME+2KR6pWE5Fc3pt
fQNZagOkNqfd0A8WgABxRc2p5+5HLhgWuqsvYTqAXpqQrofkPF/QyDecUBMmmz7d
/TYNFMsGF1gjLjbOegyEy7hIjeZNGeaOlXpaaB9cLDjH1jHiRuenlNpHSz9Fy9r2
9OzLgIG4iWmsT9nxzSPbhz8SE8fhCKdZq6sVUAyrNvQgBNIlM1dBYtFmB2TcP+Ov
rYO8cl71AxPpPbOIvp+h7S0ji8MxWg==
=h2EH
-----END PGP SIGNATURE-----payloadtree c877e4bf06bf83f3188a23977d682aa2611d969b
parent 941dc8f0c62067209a6cb3dc02fa4b9697a36b1e
author Tom Papke <tpapke@palantir.com> 1689153466 +0100
committer Tom Papke <tpapke@palantir.com> 1689182708 +0100

Refactor tests
uujt) ^https://api.github.com/repos/palantir/atlasdb/commits/11535fb1a332039b728a0892c6b63788de2fb410html_urlShttps://github.com/palantir/atlasdb/commit/11535fb1a332039b728a0892c6b63788de2fb410comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/11535fb1a332039b728a0892c6b63788de2fb410/commentsjb) }(login	ToemmscheidJboj^) MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jt) &https://api.github.com/users/Toemmschej) https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujj) }(j) 	Toemmschej) Jboj^) MDQ6VXNlcjQzNjc1NDkwj) 4https://avatars.githubusercontent.com/u/43675490?v=4j) h5jt) &https://api.github.com/users/Toemmschej) https://github.com/Toemmschej) 0https://api.github.com/users/Toemmsche/followersj) =https://api.github.com/users/Toemmsche/following{/other_user}j) 6https://api.github.com/users/Toemmsche/gists{/gist_id}j) =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j) 4https://api.github.com/users/Toemmsche/subscriptionsj) +https://api.github.com/users/Toemmsche/orgsj) ,https://api.github.com/users/Toemmsche/reposj) 7https://api.github.com/users/Toemmsche/events{/privacy}j) 6https://api.github.com/users/Toemmsche/received_eventsj) Userj) uparents]}(j\) (941dc8f0c62067209a6cb3dc02fa4b9697a36b1ejt) ^https://api.github.com/repos/palantir/atlasdb/commits/941dc8f0c62067209a6cb3dc02fa4b9697a36b1ej) Shttps://github.com/palantir/atlasdb/commit/941dc8f0c62067209a6cb3dc02fa4b9697a36b1euastats}(totalK*	additionsK	deletionsKufiles]}(j\) (cb99f89d986a150f5b891084b2bb197e5a255a44filenameWlock-api/src/test/java/com/palantir/lock/watch/ConjureLockRequestMetadataUtilsTest.javastatusmodifiedj) Kj) KchangesK*blob_urlhttps://github.com/palantir/atlasdb/blob/11535fb1a332039b728a0892c6b63788de2fb410/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/11535fb1a332039b728a0892c6b63788de2fb410/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.java?ref=11535fb1a332039b728a0892c6b63788de2fb410patchX
  @@ -89,7 +89,7 @@ public class ConjureLockRequestMetadataUtilsTest {
             ConjureChangeMetadata.deleted(ConjureDeletedChangeMetadata.of(Bytes.from(BYTES_DELETED))),
             3,
             ConjureChangeMetadata.created(ConjureCreatedChangeMetadata.of(Bytes.from(BYTES_CREATED))));
-    private static final Random RANDOM = new Random();
+
     private static ConjureMetadataConversionResult conjureMetadataConversionResult;
 
     // This is a good candidate for a static construction method, but we would rather avoid testing internals of
@@ -124,45 +124,47 @@ public void convertsFromConjureCorrectly() {
     }
 
     @Test
-    public void convertingToAndFromConjureIsIdentityForRandomData() {
+    public void convertingToAndFromConjureYieldsOriginalForRandomData() {
+        int randSeed = (int) System.currentTimeMillis();
+        Random random = new Random(randSeed);
         Set<LockDescriptor> lockDescriptors = Stream.generate(UUID::randomUUID)
                 .map(UUID::toString)
                 .map(StringLockDescriptor::of)
                 .limit(1000)
                 .collect(Collectors.toSet());
-        LockRequestMetadata metadata = createRandomLockRequestMetadataFor(lockDescriptors);
+        List<ChangeMetadata> shuffled = new ArrayList<>(CHANGE_METADATA_LIST);
+        Collections.shuffle(shuffled, random);
+        Iterator<ChangeMetadata> iterator = Iterables.cycle(shuffled).iterator();
+        Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata = KeyedStream.of(lockDescriptors.stream())
+                .filter(_unused -> random.nextBoolean())
+                .map(_unused -> iterator.next())
+                .collectToMap();
+        LockRequestMetadata metadata = LockRequestMetadata.of(lockDescriptorToChangeMetadata);
+
         assertThat(ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(
-                        ConjureLockRequestMetadataUtils.toConjureIndexEncoded(lockDescriptors, metadata)))
+                ConjureLockRequestMetadataUtils.toConjureIndexEncoded(lockDescriptors, metadata)))
+                .as("Converting to Conjure and back yields the original data. Random seed: " + randSeed)
                 .isEqualTo(metadata);
     }
 
     @Test
     public void changedLockOrderIsDetected() {
+        List<LockDescriptor> modifiedLockList = new ArrayList<>(LOCK_LIST);
+        Collections.swap(modifiedLockList, 0, 1);
         ConjureMetadataConversionResult conversionResult = ImmutableConjureMetadataConversionResult.copyOf(
                         conjureMetadataConversionResult)
-                .withLockList(LOCK_2, LOCK_1, LOCK_3, LOCK_4);
+                .withLockList(modifiedLockList);
         assertThatLoggableExceptionThrownBy(
-                        () -> ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(conversionResult))
+                () -> ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(conversionResult))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageStartingWith("Key list integrity check failed");
     }
 
     @Test
-    public void handlesEmptyMetadata() {
+    public void handlesEmptyData() {
         assertThat(ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(
-                        ConjureLockRequestMetadataUtils.toConjureIndexEncoded(
-                                ImmutableSet.of(), LockRequestMetadata.of(ImmutableMap.of()))))
+                ConjureLockRequestMetadataUtils.toConjureIndexEncoded(
+                        ImmutableSet.of(), LockRequestMetadata.of(ImmutableMap.of()))))
                 .isEqualTo(LockRequestMetadata.of(ImmutableMap.of()));
     }
-
-    private static LockRequestMetadata createRandomLockRequestMetadataFor(Set<LockDescriptor> lockDescriptors) {
-        List<ChangeMetadata> shuffled = new ArrayList<>(CHANGE_METADATA_LIST);
-        Collections.shuffle(shuffled, RANDOM);
-        Iterator<ChangeMetadata> iterator = Iterables.cycle(shuffled).iterator();
-        Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata = KeyedStream.of(lockDescriptors.stream())
-                .filter(_unused -> RANDOM.nextBoolean())
-                .map(_unused -> iterator.next())
-                .collectToMap();
-        return LockRequestMetadata.of(lockDescriptorToChangeMetadata);
-    }
 }uau(2dac58c17d54cc5dc3256dbccca8cff501cfda3e}(sha(2dac58c17d54cc5dc3256dbccca8cff501cfda3enode_idEC_kwDOAjP5fdoAKDJkYWM1OGMxN2Q1NGNjNWRjMzI1NmRiY2NjYThjZmY1MDFjZmRhM2Ucommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-14T09:52:44Zu	committer}(j) 	Tom Papkej) tpapke@palantir.comj) 2023-06-14T09:52:44Zumessage
Add changelogtree}(j) (18db469969b72c82f02808bb1162a5c74ce7843eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/18db469969b72c82f02808bb1162a5c74ce7843euj) bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2dac58c17d54cc5dc3256dbccca8cff501cfda3e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSJjewACgkQmF9s0kaF
Iw1hLQf+OFR48hIXDRSdM8EI/RzekAi2KrIwkK+mPvGaKSrP6h5zoQ6D8dnT0jK3
EAMlCDKAnbobsRc4AiGI8UE0z9/ATva67N7MOFkMiAMiab7z13uj27i1D8ZQ+vk6
5wzzHBUVzqCq0ubCTmraLSXuTVoZe6g9I7VqWz0vLXppHmxGghPg2ZAcu3OGbubX
r65O+KVpNjnQ3ZAQAG0eedw+vyg0V66ltsVVLoDC1wIu2wEwHNirtZTtbDUH0qyY
1SpWicyqoBp/sHQGHVXsQaJc0eCpx+Zn44XtkdECwHBdvm4RSE9GnOwZL8Q0yo0C
3+3mL7xXCYFsyLsHDHv4UC1mJtZFPA==
=rxS9
-----END PGP SIGNATURE-----payloadX  tree 18db469969b72c82f02808bb1162a5c74ce7843e
parent 908e618d03f24423c48d76c1ca2cde542fb4aa99
parent a57b897a6a082bc5f4168d7c226c33a9cdf6e628
author Tom Papke <tpapke@palantir.com> 1686736364 +0100
committer Tom Papke <tpapke@palantir.com> 1686736364 +0100

Add changelog
uuj) ^https://api.github.com/repos/palantir/atlasdb/commits/2dac58c17d54cc5dc3256dbccca8cff501cfda3ehtml_urlShttps://github.com/palantir/atlasdb/commit/2dac58c17d54cc5dc3256dbccca8cff501cfda3ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2dac58c17d54cc5dc3256dbccca8cff501cfda3e/commentsj) }(login	ToemmscheidJboj) MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j) &https://api.github.com/users/Toemmschej) https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj) }(j) 	Toemmschej * Jboj) MDQ6VXNlcjQzNjc1NDkwj* 4https://avatars.githubusercontent.com/u/43675490?v=4j* h5j) &https://api.github.com/users/Toemmschej) https://github.com/Toemmschej* 0https://api.github.com/users/Toemmsche/followersj	* =https://api.github.com/users/Toemmsche/following{/other_user}j* 6https://api.github.com/users/Toemmsche/gists{/gist_id}j
* =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j* 4https://api.github.com/users/Toemmsche/subscriptionsj* +https://api.github.com/users/Toemmsche/orgsj* ,https://api.github.com/users/Toemmsche/reposj* 7https://api.github.com/users/Toemmsche/events{/privacy}j* 6https://api.github.com/users/Toemmsche/received_eventsj* Userj* uparents](}(j) (908e618d03f24423c48d76c1ca2cde542fb4aa99j) ^https://api.github.com/repos/palantir/atlasdb/commits/908e618d03f24423c48d76c1ca2cde542fb4aa99j) Shttps://github.com/palantir/atlasdb/commit/908e618d03f24423c48d76c1ca2cde542fb4aa99u}(j) (a57b897a6a082bc5f4168d7c226c33a9cdf6e628j) ^https://api.github.com/repos/palantir/atlasdb/commits/a57b897a6a082bc5f4168d7c226c33a9cdf6e628j) Shttps://github.com/palantir/atlasdb/commit/a57b897a6a082bc5f4168d7c226c33a9cdf6e628uestats}(totalK	additionsK	deletionsK ufiles]}(j) (ffd47f177c27dd39d87fb4cd84339ad7d1911c1cfilename$changelog/@unreleased/pr-6625.v2.ymlstatusaddedj9* Kj:* K changesKblob_url|https://github.com/palantir/atlasdb/blob/2dac58c17d54cc5dc3256dbccca8cff501cfda3e/changelog%2F%40unreleased%2Fpr-6625.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/2dac58c17d54cc5dc3256dbccca8cff501cfda3e/changelog%2F%40unreleased%2Fpr-6625.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6625.v2.yml?ref=2dac58c17d54cc5dc3256dbccca8cff501cfda3epatch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LockV1] Add async thread info snapshotting (disabled by default)'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6625uau(8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813}(sha(8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813node_idEC_kwDOAjP5fdoAKDhjNjAzZWI1N2JkODg5ZjVkOGJmYzVkNDhjMWMzZWI2OWVkNjE4MTMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-24T13:46:05Zu	committer}(jV* GitHubjX* noreply@github.comjZ* 2023-05-24T13:46:05ZumessageX  [Antithesis] Transient Rows Workflow (#6572)

Introduce a transient row workflow for our workload server. This executes transactions that write a primary table row and an index row (which uses columns to identify the rows), then deletes the immediately preceding row.tree}(jN* (85e4387f84c513c7e3999da5c608a27eaf873111url`https://api.github.com/repos/palantir/atlasdb/git/trees/85e4387f84c513c7e3999da5c608a27eaf873111ujf* bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkbhUdCRBK7hj4Ov3rIwAAkfoIAGOqXPBbmL9UXC9AMcPy5hzk
x21/QGcCgsm4M+yzTJ935a7YIdrQs4Q14gTEEa1Y4iI4ak0OjpqSNEmcvuXcSBxE
6ZZP0+C+tW4lW1vOcyKZhr9IUMqvvJz2iyprj5H5NLZefc+e3mOwUJ7PWkj95j37
7bfcq3bKn9NEiKtSi4wCwfITK52yY0T5x+mzKLU4n7fjH8rJBDgSmbuVtepbItfL
dK+BWutJ8UmWaxDMWZs2/D8ldFHs6zbtn/y7sXmE4pVtjq9a6E+Kr4a7PpOU6+x8
vad48VkYWybB+CRjeYhrHo+BPMTzwPMLV7l3RhGlom8MMfk38iya+AzQYETNWRI=
=h9CV
-----END PGP SIGNATURE-----
payloadX  tree 85e4387f84c513c7e3999da5c608a27eaf873111
parent 89fc239e31bedc497eb3a1ea9965eff92e60e2d1
author Jeremy Kong <jkong@palantir.com> 1684935965 +0100
committer GitHub <noreply@github.com> 1684935965 +0000

[Antithesis] Transient Rows Workflow (#6572)

Introduce a transient row workflow for our workload server. This executes transactions that write a primary table row and an index row (which uses columns to identify the rows), then deletes the immediately preceding row.
uujf* ^https://api.github.com/repos/palantir/atlasdb/commits/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813html_urlShttps://github.com/palantir/atlasdb/commit/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/commentsjT* }(login
jeremyk-91idJZ jP* MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jf* 'https://api.github.com/users/jeremyk-91jt* https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj\* }(jy* web-flowj{* J/jP* MDQ6VXNlcjE5ODY0NDQ3j}* 4https://avatars.githubusercontent.com/u/19864447?v=4j* h5jf* %https://api.github.com/users/web-flowjt* https://github.com/web-flowj* /https://api.github.com/users/web-flow/followersj* <https://api.github.com/users/web-flow/following{/other_user}j* 5https://api.github.com/users/web-flow/gists{/gist_id}j* <https://api.github.com/users/web-flow/starred{/owner}{/repo}j* 3https://api.github.com/users/web-flow/subscriptionsj* *https://api.github.com/users/web-flow/orgsj* +https://api.github.com/users/web-flow/reposj* 6https://api.github.com/users/web-flow/events{/privacy}j* 5https://api.github.com/users/web-flow/received_eventsj* Userj* uparents]}(jN* (89fc239e31bedc497eb3a1ea9965eff92e60e2d1jf* ^https://api.github.com/repos/palantir/atlasdb/commits/89fc239e31bedc497eb3a1ea9965eff92e60e2d1jt* Shttps://github.com/palantir/atlasdb/commit/89fc239e31bedc497eb3a1ea9965eff92e60e2d1uastats}(totalMk	additionsM_	deletionsKufiles](}(jN* (d4fbc32c29d514c2d7a88a64e0fbc48b94b74465filenamematlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/CrossCellInconsistency.javastatusaddedj* K-j* K changesK-blob_urlhttps://github.com/palantir/atlasdb/blob/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistency.javaraw_urlhttps://github.com/palantir/atlasdb/raw/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistency.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistency.java?ref=8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813patchX  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.Map;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+/**
+ * A set of cells that may individually be valid, but considered together may violate some property that is expected
+ * to hold across the group of cells.
+ */
+@Value.Immutable
+public interface CrossCellInconsistency {
+    Map<TableAndWorkloadCell, Optional<Integer>> inconsistentValues();
+
+    @Value.Check
+    default void consistsOfAtLeastTwoCells() {
+        Preconditions.checkArgument(
+                inconsistentValues().size() >= 2,
+                "A cross-cell inconsistency must consist of at least two cells",
+                SafeArg.of("values", inconsistentValues()));
+    }
+
+    static ImmutableCrossCellInconsistency.Builder builder() {
+        return ImmutableCrossCellInconsistency.builder();
+    }
+}u}(jN* (a7473ea1e605ae08dd6feec971f0cd30384c89e4j* qatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/invariant/CrossCellInconsistencyTest.javaj* addedj* K;j* K j* K;j* https://github.com/palantir/atlasdb/blob/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistencyTest.javaj* https://github.com/palantir/atlasdb/raw/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistencyTest.javaj* https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistencyTest.java?ref=8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813j* X
  @@ -0,0 +1,59 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Optional;
+import org.junit.Test;
+
+public class CrossCellInconsistencyTest {
+    // The constants in WorkloadTestHelper are not accessible from this package.
+    private static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_ONE =
+            TableAndWorkloadCell.of("foo", ImmutableWorkloadCell.of(1, 2));
+    private static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
+            TableAndWorkloadCell.of("foo", ImmutableWorkloadCell.of(3, 4));
+
+    @Test
+    public void cannotBeCreatedWithoutCells() {
+        assertThatThrownBy(() -> CrossCellInconsistency.builder().build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("A cross-cell inconsistency must consist of at least two cells");
+    }
+
+    @Test
+    public void cannotBeCreatedWithJustOneCell() {
+        assertThatThrownBy(() -> CrossCellInconsistency.builder()
+                        .putInconsistentValues(TABLE_WORKLOAD_CELL_ONE, Optional.of(3))
+                        .build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("A cross-cell inconsistency must consist of at least two cells");
+    }
+
+    @Test
+    public void canBeCreatedWithTwoCells() {
+        CrossCellInconsistency violation = CrossCellInconsistency.builder()
+                .putInconsistentValues(TABLE_WORKLOAD_CELL_ONE, Optional.of(3))
+                .putInconsistentValues(TABLE_WORKLOAD_CELL_TWO, Optional.empty())
+                .build();
+        assertThat(violation.inconsistentValues()).containsOnlyKeys(TABLE_WORKLOAD_CELL_ONE, TABLE_WORKLOAD_CELL_TWO);
+    }
+}u}(jN* (a7e3be37946c0f08a8a2778a6b3a096b689a7f4cj* latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj* modifiedj* K'j* Kj* K/j* https://github.com/palantir/atlasdb/blob/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj* https://github.com/palantir/atlasdb/raw/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj* https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813j* XR  @@ -39,8 +39,11 @@
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
+import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflows;
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;
@@ -129,6 +132,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().singleRowTwoCellsConfig();
         RingWorkflowConfiguration ringWorkflowConfiguration =
                 configuration.install().ringConfig();
+        TransientRowsWorkflowConfiguration transientRowsWorkflowConfiguration =
+                configuration.install().transientRowsConfig();
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
 
@@ -140,6 +145,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
                         createRingWorkflowValidator(
                                 transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()),
+                        createTransientRowsWorkflowValidator(
+                                transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
                         createSingleBusyCellWorkflowValidator(
                                 transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()));
 
@@ -174,6 +181,27 @@ private void waitForTransactionStoreFactoryToBeInitialized(AtlasDbTransactionSto
         System.exit(1);
     }
 
+    private WorkflowAndInvariants<Workflow> createTransientRowsWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            TransientRowsWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService =
+                createExecutorService(workflowConfig, lifecycle, TransientRowsWorkflows.class);
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(TransientRowsWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        TransientRowsWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .addInvariantReporters(TransientRowsWorkflows.getSummaryLogInvariantReporter(workflowConfig))
+                .build();
+    }
+
     private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             SingleBusyCellWorkflowConfiguration workflowConfig,
@@ -206,10 +234,7 @@ private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             RingWorkflowConfiguration workflowConfig,
             LifecycleEnvironment lifecycle) {
-        ExecutorService executorService = lifecycle
-                .executorService(RingWorkflows.class.getSimpleName())
-                .maxThreads(workflowConfig.maxThreadCount())
-                .build();
+        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RingWorkflows.class);
         InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
                 Map.of(
                         workflowConfig.tableConfiguration().tableName(),
@@ -223,10 +248,8 @@ private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             SingleRowTwoCellsWorkflowConfiguration workflowConfig,
             LifecycleEnvironment lifecycle) {
-        ExecutorService executorService = lifecycle
-                .executorService(RingWorkflows.class.getSimpleName())
-                .maxThreads(workflowConfig.maxThreadCount())
-                .build();
+        ExecutorService executorService =
+                createExecutorService(workflowConfig, lifecycle, SingleRowTwoCellsWorkflows.class);
         TransactionStore transactionStore = transactionStoreFactory.create(
                 Map.of(
                         workflowConfig.tableConfiguration().tableName(),
@@ -251,4 +274,12 @@ CountDownLatch workflowsRanLatch() {
     TaggedMetricRegistry getTaggedMetricRegistry() {
         return taggedMetricRegistry;
     }
+
+    private static <T> ExecutorService createExecutorService(
+            WorkflowConfiguration workflowConfig, LifecycleEnvironment lifecycle, Class<T> workflowFactoryClass) {
+        return lifecycle
+                .executorService(workflowFactoryClass.getSimpleName())
+                .maxThreads(workflowConfig.maxThreadCount())
+                .build();
+    }
 }u}(jN* (3ef80d1a92d430c99a0805e5c1e1c3f77a0980d9j* atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj* modifiedj* Kj* K j* Kj* https://github.com/palantir/atlasdb/blob/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj* https://github.com/palantir/atlasdb/raw/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj* https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813j* X  @@ -21,6 +21,7 @@
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
 
@@ -34,6 +35,8 @@ public interface WorkloadServerInstallConfiguration {
 
     RingWorkflowConfiguration ringConfig();
 
+    TransientRowsWorkflowConfiguration transientRowsConfig();
+
     SingleBusyCellWorkflowConfiguration singleBusyCellConfig();
 
     boolean exitAfterRunning();u}(jN* (72629e641e22a5415761b5cb52c0bf3011604525j* Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj* modifiedj* Kj* Kj* Kj* https://github.com/palantir/atlasdb/blob/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj* https://github.com/palantir/atlasdb/raw/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj* https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813j* XN  @@ -9,13 +9,19 @@ install:
       tableName: two-cells-test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
-    type: singleRowTwoCells
+    type: single-row-two-cells
   ringConfig:
     tableConfiguration:
       tableName: ring-test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: ring
+  transientRowsConfig:
+    tableConfiguration:
+      tableName: transient-rows-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: transient-rows
   singleBusyCellConfig:
     tableConfiguration:
       tableName: single-busy-cell-testu}(jN* (c2e6a9870bb0b9bd58749ef485010ca70071dcc1j* Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj* modifiedj* Kj* Kj* Kj* https://github.com/palantir/atlasdb/blob/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj* https://github.com/palantir/atlasdb/raw/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj* https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813j* XP  @@ -46,13 +46,19 @@ install:
       tableName: two_cells_test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
-    type: singleRowTwoCells
+    type: single-row-two-cells
   ringConfig:
     tableConfiguration:
       tableName: ring_test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: ring
+  transientRowsConfig:
+    tableConfiguration:
+      tableName: transient_rows_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: transient-rows
   singleBusyCellConfig:
     tableConfiguration:
       tableName: single_busy_cell_testu}(jN* (ad7fc8f3b33e885222871c0d26e5884631c2ffcaj* Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj* modifiedj* Kj* Kj* Kj* https://github.com/palantir/atlasdb/blob/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj* https://github.com/palantir/atlasdb/raw/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj* https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813j* XP  @@ -10,13 +10,19 @@ install:
       tableName: two-cells-test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
-    type: singleRowTwoCells
+    type: single-row-two-cells
   ringConfig:
     tableConfiguration:
       tableName: ring-test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: ring
+  transientRowsConfig:
+    tableConfiguration:
+      tableName: transient-rows-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: transient-rows
   singleBusyCellConfig:
     tableConfiguration:
       tableName: single-busy-cell-testu}(jN* (f101f419a9c4366406e60fd1ca898e4645dbf939j* xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javaj* modifiedj* Kj* Kj* Kj* https://github.com/palantir/atlasdb/blob/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj* https://github.com/palantir/atlasdb/raw/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj* https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813j* Xy  @@ -27,7 +27,7 @@
 @JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
 @JsonTypeName(SingleRowTwoCellsWorkflowConfiguration.TYPE)
 public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfiguration {
-    String TYPE = "singleRowTwoCells";
+    String TYPE = "single-row-two-cells";
 
     TableConfiguration tableConfiguration();
 u}(jN* (be3aea7c363f3e52d9c0332e95d106f0c15597f5j* tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowConfiguration.javaj* addedj* K j* K j* K j* https://github.com/palantir/atlasdb/blob/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowConfiguration.javaj* https://github.com/palantir/atlasdb/raw/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowConfiguration.javaj* https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowConfiguration.java?ref=8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813j* X9  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableTransientRowsWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableTransientRowsWorkflowConfiguration.class)
+@JsonTypeName(TransientRowsWorkflowConfiguration.TYPE)
+public interface TransientRowsWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "transient-rows";
+
+    TableConfiguration tableConfiguration();
+}u}(jN* (e241fdc9d3a00c562a7db738e208917cb7511f83j* hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javaj* addedj* Kj* K j* Kj* https://github.com/palantir/atlasdb/blob/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj* https://github.com/palantir/atlasdb/raw/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj* https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813j* X$  @@ -0,0 +1,184 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.invariant.CrossCellInconsistency;
+import com.palantir.atlasdb.workload.invariant.ImmutableInvariantReporter;
+import com.palantir.atlasdb.workload.invariant.Invariant;
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.security.SecureRandom;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import java.util.Set;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+public final class TransientRowsWorkflows {
+    private static final SafeLogger log = SafeLoggerFactory.get(TransientRowsWorkflows.class);
+
+    @VisibleForTesting
+    static final int SUMMARY_ROW = -1;
+
+    @VisibleForTesting
+    static final int COLUMN = 1;
+
+    @VisibleForTesting
+    static final int VALUE = 0;
+
+    private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+
+    private TransientRowsWorkflows() {}
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            TransientRowsWorkflowConfiguration workflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        return DefaultWorkflow.create(
+                store,
+                (txn, taskIndex) -> run(store, workflowConfiguration, taskIndex),
+                workflowConfiguration,
+                executionExecutor);
+    }
+
+    private static Optional<WitnessedTransaction> run(
+            InteractiveTransactionStore store, TransientRowsWorkflowConfiguration configuration, int taskIndex) {
+        return store.readWrite(txn -> {
+            String tableName = configuration.tableConfiguration().tableName();
+            txn.write(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex), VALUE);
+            txn.write(tableName, ImmutableWorkloadCell.of(taskIndex, COLUMN), VALUE);
+            if (taskIndex > 0) {
+                int indexToRead = SECURE_RANDOM.nextInt(taskIndex);
+                txn.read(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, indexToRead));
+                txn.read(tableName, ImmutableWorkloadCell.of(indexToRead, COLUMN));
+
+                if (txn.read(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN))
+                        .isPresent()) {
+                    txn.delete(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex - 1));
+                    txn.delete(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN));
+                }
+            }
+        });
+    }
+
+    public static InvariantReporter<List<CrossCellInconsistency>> getSummaryLogInvariantReporter(
+            TransientRowsWorkflowConfiguration configuration) {
+        return ImmutableInvariantReporter.<List<CrossCellInconsistency>>builder()
+                .invariant(createSummaryRowInvariant(configuration))
+                .consumer(violations -> {
+                    if (!violations.isEmpty()) {
+                        log.error(
+                                "Detected rows which did not agree with state in a summary index: {}",
+                                SafeArg.of("violations", violations));
+                    }
+                })
+                .build();
+    }
+
+    private static Invariant<List<CrossCellInconsistency>> createSummaryRowInvariant(
+            TransientRowsWorkflowConfiguration configuration) {
+        return (workflowHistory, notifier) -> {
+            List<CrossCellInconsistency> violations = new ArrayList<>();
+            ReadableTransactionStore store = workflowHistory.transactionStore();
+
+            violations.addAll(findInconsistencyInTransactionHistory(workflowHistory.history()));
+            violations.addAll(findInconsistencyInFinalIndexState(configuration, store));
+
+            notifier.accept(violations);
+        };
+    }
+
+    private static List<CrossCellInconsistency> findInconsistencyInTransactionHistory(
+            List<WitnessedTransaction> history) {
+        return history.stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(TransientRowsWorkflows::findInconsistencyInTransactionActions)
+                .collect(Collectors.toList());
+    }
+
+    private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActions(
+            List<WitnessedTransactionAction> actions) {
+        Set<WitnessedReadTransactionAction> readTransactionActions = actions.stream()
+                .filter(WitnessedReadTransactionAction.class::isInstance)
+                .map(action -> (WitnessedReadTransactionAction) action)
+                .collect(Collectors.toSet());
+        if (readTransactionActions.size() == 0) {
+            return Stream.empty();
+        }
+        WitnessedReadTransactionAction summaryRowRead = readTransactionActions.stream()
+                .filter(action -> action.cell().key() == SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of the summary row", SafeArg.of("actions", actions)));
+        WitnessedReadTransactionAction normalRowRead = readTransactionActions.stream()
+                .filter(action -> action.cell().key() != SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of a normal row", SafeArg.of("actions", actions)));
+        if (!summaryRowRead.value().equals(normalRowRead.value())) {
+            return Stream.of(CrossCellInconsistency.builder()
+                    .putInconsistentValues(
+                            TableAndWorkloadCell.of(summaryRowRead.table(), summaryRowRead.cell()),
+                            summaryRowRead.value())
+                    .putInconsistentValues(
+                            TableAndWorkloadCell.of(normalRowRead.table(), normalRowRead.cell()), normalRowRead.value())
+                    .build());
+        } else {
+            return Stream.empty();
+        }
+    }
+
+    private static List<CrossCellInconsistency> findInconsistencyInFinalIndexState(
+            TransientRowsWorkflowConfiguration configuration, ReadableTransactionStore store) {
+        List<CrossCellInconsistency> violations = new ArrayList<>();
+        String tableName = configuration.tableConfiguration().tableName();
+        Set<Integer> taskIndices =
+                IntStream.range(0, configuration.iterationCount()).boxed().collect(Collectors.toSet());
+        taskIndices.forEach(index -> checkSummaryConsistencyForIndex(violations, store, tableName, index));
+        return violations;
+    }
+
+    private static void checkSummaryConsistencyForIndex(
+            List<CrossCellInconsistency> violations, ReadableTransactionStore store, String tableName, Integer index) {
+        WorkloadCell primaryCell = ImmutableWorkloadCell.of(index, COLUMN);
+        Optional<Integer> valueFromPrimaryRow = store.get(tableName, primaryCell);
+        WorkloadCell summaryCell = ImmutableWorkloadCell.of(SUMMARY_ROW, index);
+        Optional<Integer> valueFromSummaryRow = store.get(tableName, summaryCell);
+        if (valueFromSummaryRow.isPresent() ^ valueFromPrimaryRow.isPresent()) {
+            violations.add(CrossCellInconsistency.builder()
+                    .putInconsistentValues(TableAndWorkloadCell.of(tableName, primaryCell), valueFromPrimaryRow)
+                    .putInconsistentValues(TableAndWorkloadCell.of(tableName, summaryCell), valueFromSummaryRow)
+                    .build());
+        }
+    }
+}u}(jN* (61a0c83cdc9b222053cb946e1e139aec27dcf76aj* latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj* addedj* Kj* K j* Kj* https://github.com/palantir/atlasdb/blob/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj* https://github.com/palantir/atlasdb/raw/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj* https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813j* X-  @@ -0,0 +1,223 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.invariant.CrossCellInconsistency;
+import com.palantir.atlasdb.workload.invariant.Invariant;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableFullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicReference;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class TransientRowsWorkflowsTest {
+    private static final int ITERATION_COUNT = 5;
+    private static final String TABLE_NAME = "transient.rows";
+    private static final TransientRowsWorkflowConfiguration CONFIGURATION =
+            ImmutableTransientRowsWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow transientRowsWorkflow = TransientRowsWorkflows.create(
+            transactionStore, CONFIGURATION, MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)));
+    private final Invariant<List<CrossCellInconsistency>> invariant =
+            TransientRowsWorkflows.getSummaryLogInvariantReporter(CONFIGURATION).invariant();
+
+    @Test
+    public void transactionStoreIsReadOnly() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void eachTransactionIsWitnessed() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        List<WitnessedTransaction> witnessedTransactions = history.history();
+        assertThat(witnessedTransactions).hasSize(ITERATION_COUNT);
+    }
+
+    @Test
+    public void firstTransactionWritesTwoCells() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        List<WitnessedTransaction> witnessedTransactions = history.history();
+        assertThat(witnessedTransactions.get(0).actions())
+                .hasSize(2)
+                .containsExactlyInAnyOrder(
+                        WitnessedWriteTransactionAction.of(
+                                TABLE_NAME,
+                                ImmutableWorkloadCell.of(0, TransientRowsWorkflows.COLUMN),
+                                TransientRowsWorkflows.VALUE),
+                        WitnessedWriteTransactionAction.of(
+                                TABLE_NAME,
+                                ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 0),
+                                TransientRowsWorkflows.VALUE));
+    }
+
+    @Test
+    public void subsequentTransactionsWriteThenReadThenDelete() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        List<WitnessedTransaction> witnessedTransactions = history.history();
+        for (int index = 1; index < ITERATION_COUNT; index++) {
+            assertThat(witnessedTransactions.get(index).actions()).hasSize(7).satisfies(actions -> {
+                assertThat(actions.subList(0, 2)).allMatch(WitnessedWriteTransactionAction.class::isInstance);
+                assertThat(actions.subList(2, 5)).allMatch(WitnessedReadTransactionAction.class::isInstance);
+                assertThat(actions.subList(5, 7)).allMatch(WitnessedDeleteTransactionAction.class::isInstance);
+            });
+        }
+    }
+
+    @Test
+    public void invariantDoesNotReportViolationsUnderNormalOperation() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        invariant.accept(transientRowsWorkflow.run(), reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        WorkflowHistory history = transientRowsWorkflow.run();
+        transactionStore.readWrite(txn -> txn.delete(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 1, 1)));
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(ITERATION_COUNT - 1, TransientRowsWorkflows.COLUMN)),
+                                Optional.empty())
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(
+                                                TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 1)),
+                                Optional.of(0))
+                        .build()));
+    }
+
+    @Test
+    public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        WorkflowHistory history = transientRowsWorkflow.run();
+        transactionStore.readWrite(txn -> txn.write(
+                TABLE_NAME,
+                ImmutableWorkloadCell.of(ITERATION_COUNT - 2, TransientRowsWorkflows.COLUMN),
+                TransientRowsWorkflows.VALUE));
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(ITERATION_COUNT - 2, TransientRowsWorkflows.COLUMN)),
+                                Optional.of(0))
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(
+                                                TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 2)),
+                                Optional.empty())
+                        .build()));
+    }
+
+    @Test
+    public void invariantReportsViolationsFromTransactionHistory() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        WorkflowHistory history = transientRowsWorkflow.run();
+        WorkflowHistory falseHistory = ImmutableWorkflowHistory.builder()
+                .transactionStore(history.transactionStore())
+                .history(history.history().stream()
+                        .map(witnessedTransaction -> ImmutableFullyWitnessedTransaction.builder()
+                                .actions(witnessedTransaction.actions().stream()
+                                        .map(TransientRowsWorkflowsTest::rewriteReadHistoryAsAlwaysInconsistent)
+                                        .collect(Collectors.toList()))
+                                .startTimestamp(witnessedTransaction.startTimestamp())
+                                .commitTimestamp(witnessedTransaction.commitTimestamp())
+                                .build())
+                        .collect(Collectors.toList()))
+                .build();
+        invariant.accept(falseHistory, reference::set);
+
+        assertThat(reference.get()).hasSize(ITERATION_COUNT - 1);
+    }
+
+    private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(
+            WitnessedTransactionAction action) {
+        if (action instanceof WitnessedReadTransactionAction) {
+            if (action.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
+                return WitnessedReadTransactionAction.of(action.table(), action.cell(), Optional.empty());
+            } else {
+                return WitnessedReadTransactionAction.of(
+                        action.table(), action.cell(), Optional.of(TransientRowsWorkflows.VALUE));
+            }
+        } else {
+            return action;
+        }
+    }
+
+    private static final class OnceSettableAtomicReference<T> {
+        private final AtomicReference<T> delegate;
+
+        private OnceSettableAtomicReference() {
+            this.delegate = new AtomicReference<>();
+        }
+
+        private T get() {
+            return Preconditions.checkNotNull(delegate.get(), "Underlying atomic reference has not been set!");
+        }
+
+        private void set(T value) {
+            Preconditions.checkNotNull(value, "Expecting values set to a once-settable atomic reference to be nonnull");
+            if (!delegate.compareAndSet(null, value)) {
+                throw new SafeIllegalStateException("Value already set");
+            }
+        }
+    }
+}ueu     (af0f5dd0455619c38e9514749ed9ebfa31437b62}(sha(af0f5dd0455619c38e9514749ed9ebfa31437b62node_idEC_kwDOAjP5fdoAKGFmMGY1ZGQwNDU1NjE5YzM4ZTk1MTQ3NDllZDllYmZhMzE0MzdiNjIcommit}(author}(nameChris Van de Veldeemailcvandevelde@palantir.comdate2023-03-31T12:49:44Zu	committer}(j+ Chris Van de Veldej+ cvandevelde@palantir.comj!+ 2023-03-31T12:49:44Zumessage4Choose optimal IOT compression based on table paramstree}(j+ (48b20823bd2ad1c398a9f5c39b0612d92e308c3burl`https://api.github.com/repos/palantir/atlasdb/git/trees/48b20823bd2ad1c398a9f5c39b0612d92e308c3buj-+ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/af0f5dd0455619c38e9514749ed9ebfa31437b62
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEfsytHu2QbUsz5QamhCdbnbxuCwoFAmQm1vkACgkQhCdbnbxu
CwpHPggAtOvNTzX9AgqZ6GSRgx9nAzJHX+9Jn1CvEBA80+5P5ai4KOn3NJYtkQyd
XdiwUsjYnoJEL4sgQulUi4rwe+zjf7StA9iI9BuYlNKM+bcS4MfNLlbVBzAgK/4m
7iXjWtoxBLOUkiRELmhJwFYcvC3z/OpGq9cJCkArF+hz2OvalhqMkOelbAmzIgpE
Dj6XuD2uu7lnmq0oFwxK7jUwf+tWzW6buUUQwEnkVfvvuJqKHoDNR6vc7sJlpmqB
733jumGFNL5h7HhsERJ8Cn89uInqG516Ed7mRn7nyD02fJLDnbyPVWXoHjsoIT72
2Kmw1m+XJzTy9mD6Vo54avrSiTPLjg==
=t1Yu
-----END PGP SIGNATURE-----payloadX#  tree 48b20823bd2ad1c398a9f5c39b0612d92e308c3b
parent 44a6930443bb70b40ca00f76d282a73d2681dc7a
author Chris Van de Velde <cvandevelde@palantir.com> 1680266984 +1100
committer Chris Van de Velde <cvandevelde@palantir.com> 1680266984 +1100

Choose optimal IOT compression based on table params
uuj-+ ^https://api.github.com/repos/palantir/atlasdb/commits/af0f5dd0455619c38e9514749ed9ebfa31437b62html_urlShttps://github.com/palantir/atlasdb/commit/af0f5dd0455619c38e9514749ed9ebfa31437b62comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/af0f5dd0455619c38e9514749ed9ebfa31437b62/commentsj+ }(loginCVdV-auidJDN j+ MDQ6VXNlcjY5MjI2MDUy
avatar_url4https://avatars.githubusercontent.com/u/69226052?v=4gravatar_idh5j-+ $https://api.github.com/users/CVdV-auj;+ https://github.com/CVdV-au
followers_url.https://api.github.com/users/CVdV-au/followers
following_url;https://api.github.com/users/CVdV-au/following{/other_user}	gists_url4https://api.github.com/users/CVdV-au/gists{/gist_id}starred_url;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/CVdV-au/subscriptionsorganizations_url)https://api.github.com/users/CVdV-au/orgs	repos_url*https://api.github.com/users/CVdV-au/repos
events_url5https://api.github.com/users/CVdV-au/events{/privacy}received_events_url4https://api.github.com/users/CVdV-au/received_eventstypeUser
site_adminuj#+ }(j@+ CVdV-aujB+ JDN j+ MDQ6VXNlcjY5MjI2MDUyjD+ 4https://avatars.githubusercontent.com/u/69226052?v=4jF+ h5j-+ $https://api.github.com/users/CVdV-auj;+ https://github.com/CVdV-aujI+ .https://api.github.com/users/CVdV-au/followersjK+ ;https://api.github.com/users/CVdV-au/following{/other_user}jM+ 4https://api.github.com/users/CVdV-au/gists{/gist_id}jO+ ;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}jQ+ 2https://api.github.com/users/CVdV-au/subscriptionsjS+ )https://api.github.com/users/CVdV-au/orgsjU+ *https://api.github.com/users/CVdV-au/reposjW+ 5https://api.github.com/users/CVdV-au/events{/privacy}jY+ 4https://api.github.com/users/CVdV-au/received_eventsj[+ Userj]+ uparents]}(j+ (44a6930443bb70b40ca00f76d282a73d2681dc7aj-+ ^https://api.github.com/repos/palantir/atlasdb/commits/44a6930443bb70b40ca00f76d282a73d2681dc7aj;+ Shttps://github.com/palantir/atlasdb/commit/44a6930443bb70b40ca00f76d282a73d2681dc7auastats}(totalK2	additionsK*	deletionsKufiles]}(j+ (1040303744aeec6c3d6390dd724369b761f08591filename_atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTable.javastatusmodifiedjw+ K*jx+ KchangesK2blob_urlhttps://github.com/palantir/atlasdb/blob/af0f5dd0455619c38e9514749ed9ebfa31437b62/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaraw_urlhttps://github.com/palantir/atlasdb/raw/af0f5dd0455619c38e9514749ed9ebfa31437b62/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.java?ref=af0f5dd0455619c38e9514749ed9ebfa31437b62patchX  @@ -30,6 +30,7 @@
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyle;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyleCache;
 import com.palantir.atlasdb.logging.LoggingArgs;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.common.base.RunnableCheckedException;
 import com.palantir.common.base.Throwables;
@@ -90,7 +91,9 @@ public static OracleDdlTable create(
 
     @Override
     public void create(byte[] tableMetadata) {
-        boolean needsOverflow = needsOverflow(tableMetadata);
+        TableMetadata metadata = TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMetadata);
+        boolean needsOverflow = needsOverflow(metadata);
+        int compressionSetting = getOptimalIndexCompression(metadata);
 
         if (tableExists()) {
             if (needsOverflow) {
@@ -103,7 +106,7 @@ public void create(byte[] tableMetadata) {
             return;
         }
 
-        String shortTableName = createTable(needsOverflow);
+        String shortTableName = createTable(needsOverflow, compressionSetting);
 
         if (needsOverflow && !overflowColumnExists(shortTableName)) {
             throwForMissingOverflowTable();
@@ -146,10 +149,40 @@ private boolean overflowTableHasMigrated() {
         return config.overflowMigrationState() == OverflowMigrationState.FINISHED;
     }
 
-    private boolean needsOverflow(byte[] tableMetadata) {
-        TableMetadata metadata = TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMetadata);
-        return (metadata != null)
-                && (metadata.getColumns().getMaxValueSize() > AtlasDbConstants.ORACLE_OVERFLOW_THRESHOLD);
+    private boolean needsOverflow(TableMetadata metadata) {
+        return metadata.getColumns().getMaxValueSize() > AtlasDbConstants.ORACLE_OVERFLOW_THRESHOLD;
+    }
+
+    /*
+     * Determine the optimal Index Organized Table compression setting.
+     * When enabling compression on an IOT, we can instruct Oracle to compress at most one
+     * fewer columns than the number of columns that make up the PK for the IOT (i.e. the IOT we create have a PK of
+     * {row, col, ts} so we can compress 0, 1 or 2 columns - nothing, row, or row & col. It wouldn't make sense to
+     * compress all three columns, because necessarily there can be multiple rows that share all three values.
+     *
+     * When compression is enabled in an IOT, the block header adds a table the captures the values of the
+     * compressed columns. The actual rows in the blocks then refer back to entries in the header table to capture
+     * their values for the compressed columns. This extra header table and the slot references for data rows consume
+     * space in the block, so misuse of compression results in extra storage being consumed.
+     *
+     * Compression only makes sense when we expect that the { row } or { row, col } values will be reused:
+     * - If the table's sweep strategy is CONSERVATIVE, then every { row, col } will have at least two rows,
+     *   the current value (which may have null val if the value is deleted) and a sentinel row with ts = -1. Clearly
+     *   compression of both { row, col } is valuable.
+     * - If the sweep strategy is not CONSERVATIVE,  there will be reuse of the { row } if there is more than one named
+     *   column, or the table uses dynamic columns, which would be generally be expected to have multiple row values. In
+     *   this case, compression 1 is appropriate so { row } only needs to be store once.
+     * - Finally, if the sweep strategy is not CONSERVATIVE, there are no sentinels, and if there is only one named
+     *   column then there will be no rows that share { row } so compression should be disabled.
+     */
+    private int getOptimalIndexCompression(TableMetadata metadata) {
+        if (metadata.getSweepStrategy() == SweepStrategy.CONSERVATIVE) {
+            return 2;
+        } else if (!metadata.getColumns().hasDynamicColumns() || metadata.getColumns().getNamedColumns().size() > 1) {
+            return 1;
+        } else {
+            return 0;
+        }
     }
 
     private boolean overflowColumnExists(String shortTableName) {
@@ -185,7 +218,7 @@ private void throwForMissingOverflowTable() {
     /**
      * Creates the table for the given reference. If the schema is modified here, please also update it in {@link #alterTableToHaveOverflowColumn}.
      */
-    private String createTable(boolean needsOverflow) {
+    private String createTable(boolean needsOverflow, int compression) {
         String shortTableName = oracleTableNameGetter.generateShortTableName(conns, tableRef);
         executeIgnoringError(
                 "CREATE TABLE " + shortTableName + " ("
@@ -197,7 +230,8 @@ private String createTable(boolean needsOverflow) {
                         + "  CONSTRAINT " + PrimaryKeyConstraintNames.get(shortTableName)
                         + " PRIMARY KEY (row_name, col_name, ts) "
                         + ") "
-                        + "organization index compress "
+                        + "organization index "
+                        + (compression == 0 ? "" : "compress " + compression + " ")
                         // Since append only completely fill blocks - no benefit in leaving space for updates of rows
                         // PCTUSED N/A to Index Organized Tables
                         + "PCTFREE 0 "uau(74d1c8d43219ef78bccbb7402ae7479502e40044}(sha(74d1c8d43219ef78bccbb7402ae7479502e40044node_idEC_kwDOAjP5fdoAKDc0ZDFjOGQ0MzIxOWVmNzhiY2NiYjc0MDJhZTc0Nzk1MDJlNDAwNDQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-16T16:25:04Zu	committer}(j+ 
Sam Kramerj+ skramer@palantir.comj+ 2023-05-16T16:25:04Zumessagedo less iterationstree}(j+ (b0fcadaa18a85107f2e7b5eba4c053eee26f207durl`https://api.github.com/repos/palantir/atlasdb/git/trees/b0fcadaa18a85107f2e7b5eba4c053eee26f207duj+ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/74d1c8d43219ef78bccbb7402ae7479502e40044
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRjrmAACgkQmPPOpKR4
XS0wywgAyDkTnHT+Oe+75dh6H6+PuqkL/bi4bLsaywHW5Q3RR6eaqfw6/LO2fSVK
jFpXj75ExrKLMD0eOP+ZsxPBJ813UVV+e2XbGkPWGvTYMhBUkiHUBhs9mscZw+WM
fz/5pyKPAmIeUL9WOjoZW1Qu/yzbo0I8IFceSie/70/lTTQTbrU7zz6fH07AMX1z
YnXpVYOdKjzwhTa4hyoJU13NEhCpq5uniP38iezyM7F7e/4IknK/2gDieZEuraxB
5+WJLlHdeKCQ7r8M+16e87mRq/Sy9pmqlpdNz0J6N4FGV7ELocc7ZMahXFXOn4Yg
4+5PZVVvYxXUmwFxES3BwGFqsRa9LQ==
=J++T
-----END PGP SIGNATURE-----payloadtree b0fcadaa18a85107f2e7b5eba4c053eee26f207d
parent ea424addc9aab4c74bed2473899379d2f0e2569e
author Sam Kramer <skramer@palantir.com> 1684254304 +0100
committer Sam Kramer <skramer@palantir.com> 1684254304 +0100

do less iterations
uuj+ ^https://api.github.com/repos/palantir/atlasdb/commits/74d1c8d43219ef78bccbb7402ae7479502e40044html_urlShttps://github.com/palantir/atlasdb/commit/74d1c8d43219ef78bccbb7402ae7479502e40044comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/74d1c8d43219ef78bccbb7402ae7479502e40044/commentsj+ }(login
Sam-KrameridJ^2_ j+ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j+ 'https://api.github.com/users/Sam-Kramerj+ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj+ }(j+ 
Sam-Kramerj+ J^2_ j+ MDQ6VXNlcjYyMzg4MTQ=j+ 3https://avatars.githubusercontent.com/u/6238814?v=4j+ h5j+ 'https://api.github.com/users/Sam-Kramerj+ https://github.com/Sam-Kramerj+ 1https://api.github.com/users/Sam-Kramer/followersj+ >https://api.github.com/users/Sam-Kramer/following{/other_user}j+ 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j+ >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j+ 5https://api.github.com/users/Sam-Kramer/subscriptionsj+ ,https://api.github.com/users/Sam-Kramer/orgsj+ -https://api.github.com/users/Sam-Kramer/reposj+ 8https://api.github.com/users/Sam-Kramer/events{/privacy}j+ 7https://api.github.com/users/Sam-Kramer/received_eventsj+ Userj+ uparents]}(j+ (ea424addc9aab4c74bed2473899379d2f0e2569ej+ ^https://api.github.com/repos/palantir/atlasdb/commits/ea424addc9aab4c74bed2473899379d2f0e2569ej+ Shttps://github.com/palantir/atlasdb/commit/ea424addc9aab4c74bed2473899379d2f0e2569euastats}(totalK	additionsK	deletionsKufiles](}(j+ (e8118a12be6999be97b9aba7b4ab8f5fb68f0aecfilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj+ K j+ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/74d1c8d43219ef78bccbb7402ae7479502e40044/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/74d1c8d43219ef78bccbb7402ae7479502e40044/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=74d1c8d43219ef78bccbb7402ae7479502e40044patchX  @@ -48,7 +48,6 @@
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.MoreExecutors;
-import com.google.common.util.concurrent.Uninterruptibles;
 import com.google.errorprone.annotations.MustBeClosed;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.AtlasDbMetricNames;
@@ -170,7 +169,6 @@
 import java.util.concurrent.CopyOnWriteArrayList;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.RejectedExecutionException;
-import java.util.concurrent.ThreadLocalRandom;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.atomic.AtomicLong;
 import java.util.concurrent.atomic.AtomicReference;u}(j+ (c135f5ac7cb6beeb55b9588b5a01578bd704ce88j+ gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/BouncingValueWorkflow.javaj+ modifiedj+ Kj+ Kj+ Kj+ https://github.com/palantir/atlasdb/blob/74d1c8d43219ef78bccbb7402ae7479502e40044/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FBouncingValueWorkflow.javaj+ https://github.com/palantir/atlasdb/raw/74d1c8d43219ef78bccbb7402ae7479502e40044/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FBouncingValueWorkflow.javaj+ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FBouncingValueWorkflow.java?ref=74d1c8d43219ef78bccbb7402ae7479502e40044j+ Xz
  @@ -29,6 +29,9 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.OnlyCommittedWitnessedTransactionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Comparator;
@@ -40,10 +43,12 @@
 import java.util.stream.Stream;
 import one.util.streamex.StreamEx;
 
-public class BouncingValueWorkflow {
+public final class BouncingValueWorkflow {
     public static final String TEST_TABLE = "bouncingValue";
     private static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
 
+    private static final SafeLogger log = SafeLoggerFactory.get(BouncingValueWorkflow.class);
+
     public static Workflow createBouncingValue(InteractiveTransactionStore store) {
         return new Workflow() {
             @Override
@@ -52,17 +57,19 @@ public WorkflowHistory run() {
                         MoreExecutors.listeningDecorator(Executors.newSingleThreadExecutor());
                 ListeningExecutorService writeExecutor =
                         MoreExecutors.listeningDecorator(Executors.newSingleThreadExecutor());
-                List<ListenableFuture<Optional<WitnessedTransaction>>> reads = IntStream.range(0, 1_000)
+                List<ListenableFuture<Optional<WitnessedTransaction>>> reads = IntStream.range(0, 66)
                         .mapToObj(idx -> readExecutor.submit(() -> {
-                            return store.readWrite(txn -> {
+                            Optional<WitnessedTransaction> witnessedTxn = store.readWrite(txn -> {
                                 Optional<Integer> value = txn.read(TEST_TABLE, BUSY_CELL);
                                 txn.write(TEST_TABLE, BUSY_CELL, value.orElse(-1));
                             });
+                            log.info("Bouncy value workflow completed index {}", SafeArg.of("idx", idx));
+                            return witnessedTxn;
                         }))
                         .collect(Collectors.toList());
 
                 List<ListenableFuture<Optional<WitnessedTransaction>>> writes = new ArrayList<>();
-                for (int i = 0; i < 500; i++) {
+                for (int i = 0; i < 33; i++) {
                     int stableI = i;
                     writes.add(writeExecutor.submit(
                             () -> store.readWrite(List.of(WriteTransactionAction.of(TEST_TABLE, BUSY_CELL, stableI)))));ueu(881f637ed63aa7f05a62b4e348d9bbf484e3e80f}(sha(881f637ed63aa7f05a62b4e348d9bbf484e3e80fnode_idEC_kwDOAjP5fdoAKDg4MWY2MzdlZDYzYWE3ZjA1YTYyYjRlMzQ4ZDliYmY0ODRlM2U4MGYcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-07-14T01:02:21Zu	committer}(j, 
svc-changelogj, svc-changelog@palantir.comj, 2023-07-14T01:02:21ZumessageAdd generated changelog entriestree}(j, (a806493da157e60e77bcd6e84bf48447ad75e689url`https://api.github.com/repos/palantir/atlasdb/git/trees/a806493da157e60e77bcd6e84bf48447ad75e689uj#, bhttps://api.github.com/repos/palantir/atlasdb/git/commits/881f637ed63aa7f05a62b4e348d9bbf484e3e80f
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSwnp0JEHYaJX37fAFQAABKrAEA47xSUz8SsFdmOkLqQj5dZsAa
htqw3E3nLhtT85UlBXUA/Rj17oYwrmkFnqV1TumU/ubx+cVOA+IF/b6r8+p8F6cU
=hKXz
-----END PGP SIGNATURE-----payloadX  tree a806493da157e60e77bcd6e84bf48447ad75e689
parent 7d31fbaf7ef3b5d8f817918f0e523338060d7609
author svc-changelog <svc-changelog@palantir.com> 1689296541 +0000
committer svc-changelog <svc-changelog@palantir.com> 1689296541 +0000

Add generated changelog entriesuuj#, ^https://api.github.com/repos/palantir/atlasdb/commits/881f637ed63aa7f05a62b4e348d9bbf484e3e80fhtml_urlShttps://github.com/palantir/atlasdb/commit/881f637ed63aa7f05a62b4e348d9bbf484e3e80fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/881f637ed63aa7f05a62b4e348d9bbf484e3e80f/commentsj, }(login
svc-changelogidJ#j
, MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j#, *https://api.github.com/users/svc-changelogj1,  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj, }(j6, 
svc-changelogj8, J#j
, MDQ6VXNlcjg0MDc3NjAzj:, 4https://avatars.githubusercontent.com/u/84077603?v=4j<, h5j#, *https://api.github.com/users/svc-changelogj1,  https://github.com/svc-changelogj?, 4https://api.github.com/users/svc-changelog/followersjA, Ahttps://api.github.com/users/svc-changelog/following{/other_user}jC, :https://api.github.com/users/svc-changelog/gists{/gist_id}jE, Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jG, 8https://api.github.com/users/svc-changelog/subscriptionsjI, /https://api.github.com/users/svc-changelog/orgsjK, 0https://api.github.com/users/svc-changelog/reposjM, ;https://api.github.com/users/svc-changelog/events{/privacy}jO, :https://api.github.com/users/svc-changelog/received_eventsjQ, UserjS, uparents]}(j, (7d31fbaf7ef3b5d8f817918f0e523338060d7609j#, ^https://api.github.com/repos/palantir/atlasdb/commits/7d31fbaf7ef3b5d8f817918f0e523338060d7609j1, Shttps://github.com/palantir/atlasdb/commit/7d31fbaf7ef3b5d8f817918f0e523338060d7609uastats}(totalK	additionsK	deletionsK ufiles]}(j, (0ec771af62ea2a6ddaf5d9b6139d48293d4a25a7filename$changelog/@unreleased/pr-6640.v2.ymlstatusaddedjm, Kjn, K changesKblob_url|https://github.com/palantir/atlasdb/blob/881f637ed63aa7f05a62b4e348d9bbf484e3e80f/changelog%2F%40unreleased%2Fpr-6640.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/881f637ed63aa7f05a62b4e348d9bbf484e3e80f/changelog%2F%40unreleased%2Fpr-6640.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6640.v2.yml?ref=881f637ed63aa7f05a62b4e348d9bbf484e3e80fpatch@@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Transaction impls use Eclipse primitive collections for in-memory transaction
+    tracking
+  links:
+  - https://github.com/palantir/atlasdb/pull/6640uau(6d014a5f21edd6ca9a7de56b98f94e4875dfa077}(sha(6d014a5f21edd6ca9a7de56b98f94e4875dfa077node_idEC_kwDOAjP5fdoAKDZkMDE0YTVmMjFlZGQ2Y2E5YTdkZTU2Yjk4Zjk0ZTQ4NzVkZmEwNzccommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-05-19T12:10:56Zu	committer}(j, GitHubj, noreply@github.comj, 2023-05-19T12:10:56ZumessageVAdd docker volumes to Cassandra images (#6574)

Add docker volumes to Cassandra imagestree}(j, (dd1f695bc18e507d2392e7e423ca6eff2a17c1c9url`https://api.github.com/repos/palantir/atlasdb/git/trees/dd1f695bc18e507d2392e7e423ca6eff2a17c1c9uj, bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6d014a5f21edd6ca9a7de56b98f94e4875dfa077
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkZ2dQCRBK7hj4Ov3rIwAApe0IAB6KvJz2yNl3JJkr76rm444+
+6HANSTGushPsbPb+ZaAHKqqvaFg3RWTTopBB62N5d1eZWDMUCIwU/8tX1S2ImhO
Bx+wa3bg9w+JCm4GP7/GGQWLaerWdHm+JRLqUOqrjjnUV0LFH68AMf2J/6bC9gho
PDfpbcKi7uQ8uG9+1ofTwlafGZOIamr9XMaCTB1e0LxgsIluxQHfSjYbdqLkCwt3
br/Zyft0lkmp8kpxGMJc/DsjUlweRp29edCeli9NEkN5lmQLNCrvja6o6TA6ShaS
hKHGr4cvSUMyj8hAIz+sBo+8inD2J1VatVGm4lyTZitsSkE7Z/KIuHH3TpHtWus=
=abhv
-----END PGP SIGNATURE-----
payloadX)  tree dd1f695bc18e507d2392e7e423ca6eff2a17c1c9
parent 726ba9de882e3956f0e0f1a20d32b9c462b59d26
author Sam-Kramer <sam.c.kramer@gmail.com> 1684498256 +0100
committer GitHub <noreply@github.com> 1684498256 +0000

Add docker volumes to Cassandra images (#6574)

Add docker volumes to Cassandra images
uuj, ^https://api.github.com/repos/palantir/atlasdb/commits/6d014a5f21edd6ca9a7de56b98f94e4875dfa077html_urlShttps://github.com/palantir/atlasdb/commit/6d014a5f21edd6ca9a7de56b98f94e4875dfa077comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6d014a5f21edd6ca9a7de56b98f94e4875dfa077/commentsj, }(login
Sam-KrameridJ^2_ j, MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j, 'https://api.github.com/users/Sam-Kramerj, https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj, }(j, web-flowj, J/j, MDQ6VXNlcjE5ODY0NDQ3j, 4https://avatars.githubusercontent.com/u/19864447?v=4j, h5j, %https://api.github.com/users/web-flowj, https://github.com/web-flowj, /https://api.github.com/users/web-flow/followersj, <https://api.github.com/users/web-flow/following{/other_user}j, 5https://api.github.com/users/web-flow/gists{/gist_id}j, <https://api.github.com/users/web-flow/starred{/owner}{/repo}j, 3https://api.github.com/users/web-flow/subscriptionsj, *https://api.github.com/users/web-flow/orgsj, +https://api.github.com/users/web-flow/reposj, 6https://api.github.com/users/web-flow/events{/privacy}j, 5https://api.github.com/users/web-flow/received_eventsj, Userj, uparents]}(j, (726ba9de882e3956f0e0f1a20d32b9c462b59d26j, ^https://api.github.com/repos/palantir/atlasdb/commits/726ba9de882e3956f0e0f1a20d32b9c462b59d26j, Shttps://github.com/palantir/atlasdb/commit/726ba9de882e3956f0e0f1a20d32b9c462b59d26uastats}(totalK	additionsK	deletionsK ufiles]}(j, (0d1f2696fe20c1f1abb4c94f88cae6650478d2b8filename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedj, Kj, K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/6d014a5f21edd6ca9a7de56b98f94e4875dfa077/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/6d014a5f21edd6ca9a7de56b98f94e4875dfa077/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=6d014a5f21edd6ca9a7de56b98f94e4875dfa077patchX8  @@ -15,6 +15,8 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra1
+    volumes:
+      - /opt/config/volumes/cassandra1:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
@@ -33,6 +35,8 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra2
+    volumes:
+      - /opt/config/volumes/cassandra2:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
@@ -51,6 +55,8 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra3
+    volumes:
+      - /opt/config/volumes/cassandra3:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.4uau(8b7ba98b2674834abc9e0646cd80176c7008e9bc}(sha(8b7ba98b2674834abc9e0646cd80176c7008e9bcnode_idEC_kwDOAjP5fdoAKDhiN2JhOThiMjY3NDgzNGFiYzllMDY0NmNkODAxNzZjNzAwOGU5YmMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-19T15:06:00Zu	committer}(j- 
Sam Kramerj- skramer@palantir.comj- 2023-06-19T15:20:16Zumessagebetter testtree}(j, (f5495d6fdd859769a5377153f2aa656c7cc5a813url`https://api.github.com/repos/palantir/atlasdb/git/trees/f5495d6fdd859769a5377153f2aa656c7cc5a813uj- bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8b7ba98b2674834abc9e0646cd80176c7008e9bc
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSQcjAACgkQmPPOpKR4
XS3UKAf/V98+Z4Q1Mg2wTagshk1DzPM39+diTyAdlR6l4nYJQ3xZxVBLIxleBPar
x2CE/b2YHf9hcFTITWfUydQ4Y8AeVVmgIq3lbKR0c8mkvPu7xC74+ob79Jbqff7Q
oFv5hNPDQQE7vDg2Tx5Go1gZ3VTh2tWSAVBkdf9Rqm9yuQYEAAA3C2kw6AQZgF+4
rS5teOrOxCE/qaC0YJerCFamMBs+KdxyCiRg0FxQmCP4hMKoTG+CrGx5Qlbu4fBX
Abjf9OSZBpktJBPR4slZcA5JuJ2p9XWdd+Q0t+rRWqM8qFykIyD77LrmwlJCcnaX
yXjhQH/zCLBhf14Js8hHQxTIYsgpTg==
=4SJi
-----END PGP SIGNATURE-----payloadtree f5495d6fdd859769a5377153f2aa656c7cc5a813
parent f430cc13539b95dcdb3f07e056a234feb971c750
author Sam Kramer <skramer@palantir.com> 1687187160 +0100
committer Sam Kramer <skramer@palantir.com> 1687188016 +0100

better test
uuj- ^https://api.github.com/repos/palantir/atlasdb/commits/8b7ba98b2674834abc9e0646cd80176c7008e9bchtml_urlShttps://github.com/palantir/atlasdb/commit/8b7ba98b2674834abc9e0646cd80176c7008e9bccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8b7ba98b2674834abc9e0646cd80176c7008e9bc/commentsj, }(login
Sam-KrameridJ^2_ j, MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j- 'https://api.github.com/users/Sam-Kramerj- https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj- }(j$- 
Sam-Kramerj&- J^2_ j, MDQ6VXNlcjYyMzg4MTQ=j(- 3https://avatars.githubusercontent.com/u/6238814?v=4j*- h5j- 'https://api.github.com/users/Sam-Kramerj- https://github.com/Sam-Kramerj-- 1https://api.github.com/users/Sam-Kramer/followersj/- >https://api.github.com/users/Sam-Kramer/following{/other_user}j1- 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j3- >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j5- 5https://api.github.com/users/Sam-Kramer/subscriptionsj7- ,https://api.github.com/users/Sam-Kramer/orgsj9- -https://api.github.com/users/Sam-Kramer/reposj;- 8https://api.github.com/users/Sam-Kramer/events{/privacy}j=- 7https://api.github.com/users/Sam-Kramer/received_eventsj?- UserjA- uparents]}(j, (f430cc13539b95dcdb3f07e056a234feb971c750j- ^https://api.github.com/repos/palantir/atlasdb/commits/f430cc13539b95dcdb3f07e056a234feb971c750j- Shttps://github.com/palantir/atlasdb/commit/f430cc13539b95dcdb3f07e056a234feb971c750uastats}(totalK	additionsK
	deletionsKufiles](}(j, (f78ed397c1ab2442f099cc74dd518e30185dd324filename!atlasdb-tests-shared/build.gradlestatusmodifiedj[- Kj\- K changesKblob_urluhttps://github.com/palantir/atlasdb/blob/8b7ba98b2674834abc9e0646cd80176c7008e9bc/atlasdb-tests-shared%2Fbuild.gradleraw_urlthttps://github.com/palantir/atlasdb/raw/8b7ba98b2674834abc9e0646cd80176c7008e9bc/atlasdb-tests-shared%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fbuild.gradle?ref=8b7ba98b2674834abc9e0646cd80176c7008e9bcpatchX  @@ -50,6 +50,7 @@ dependencies {
   testImplementation 'com.google.protobuf:protobuf-java'
   testImplementation 'com.palantir.common:streams'
   testImplementation 'com.palantir.safe-logging:safe-logging'
+  testImplementation 'com.palantir.safe-logging:preconditions-assertj'
   testImplementation 'com.palantir.tracing:tracing-api'
   testImplementation 'com.palantir.tritium:tritium-registry'
   testImplementation 'commons-io:commons-io'u}(j, (ad25f500d915292b9cd694329559744b8f8b5d6cja- eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javajc- modifiedj[- K	j\- Kje- Kjf- https://github.com/palantir/atlasdb/blob/8b7ba98b2674834abc9e0646cd80176c7008e9bc/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajh- https://github.com/palantir/atlasdb/raw/8b7ba98b2674834abc9e0646cd80176c7008e9bc/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajj- https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=8b7ba98b2674834abc9e0646cd80176c7008e9bcjl- XH  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
@@ -123,6 +124,7 @@
 import com.palantir.lock.v2.LockImmutableTimestampResponse;
 import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.TimelockService;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.math.BigInteger;
 import java.nio.ByteBuffer;
@@ -2448,8 +2450,13 @@ public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
             } catch (TransactionFailedRetriableException _t) {
             }
         }
-        assertThatThrownBy(() -> txManager.runTaskThrowOnConflict(txn -> txn.get(TABLE_NO_SWEEP, Set.of(TEST_CELL))))
-                .isInstanceOf(SafeIllegalStateException.class);
+        assertThatLoggableExceptionThrownBy(
+                        () -> txManager.runTaskThrowOnConflict(txn -> txn.get(TABLE_NO_SWEEP, Set.of(TEST_CELL))))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageStartingWith("Unable to filter cells")
+                .hasExactlyArgs(
+                        SafeArg.of("table", TABLE_NO_SWEEP),
+                        SafeArg.of("maxIterations", SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS));
     }
 
     private void verifyPrefetchValidations(ueu(23e62d4178b98a208f1d0523fb1b25c1144c5898}(sha(23e62d4178b98a208f1d0523fb1b25c1144c5898node_idEC_kwDOAjP5fdoAKDIzZTYyZDQxNzhiOThhMjA4ZjFkMDUyM2ZiMWIyNWMxMTQ0YzU4OTgcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-13T09:39:39Zu	committer}(j- 	Tom Papkej- tpapke@palantir.comj- 2023-07-13T15:07:49Zumessagespotlesstree}(jx- (0d635c2a0de59824b1e42ffbb1db3a8e116b2b4burl`https://api.github.com/repos/palantir/atlasdb/git/trees/0d635c2a0de59824b1e42ffbb1db3a8e116b2b4buj- bhttps://api.github.com/repos/palantir/atlasdb/git/commits/23e62d4178b98a208f1d0523fb1b25c1144c5898
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSwE0UACgkQmF9s0kaF
Iw1nUwf9G0sHEy2VcKLt8cwHLfqzS2Ao5uVedYhQ4uCOlPGdqDPJmnjj2je1jbJh
sxC9opdtRtKTWjGSdXfSp9afP1kxicb2oGcaEbCYpQLbYMmGwl8PGGNjqDvU5KjE
8m1dzc7MkZflJlRMHs1pmRpEe2WV8chZ5vrEBuxdXPy6N2b3hNF2ZjxRmiWEXigY
RlhTcylxovylyWUKj1Yenvdl+FSc4HkAl6fMzRRIjxRenDT/PAG5TKq1mKY03/jA
+ynPvjpkp8L2It6Ou8vzU1/OqnxemN9fvXVeWu5IDmOug1X8g2k6JprMNt9JAI3X
I6j7/4j6XmImK0mBYwqy4RfiUFsAZQ==
=dvb9
-----END PGP SIGNATURE-----payloadtree 0d635c2a0de59824b1e42ffbb1db3a8e116b2b4b
parent 4ff5c0b37e783db8b68cdacfdd9d63238c1d3c56
author Tom Papke <tpapke@palantir.com> 1689241179 +0100
committer Tom Papke <tpapke@palantir.com> 1689260869 +0100

spotless
uuj- ^https://api.github.com/repos/palantir/atlasdb/commits/23e62d4178b98a208f1d0523fb1b25c1144c5898html_urlShttps://github.com/palantir/atlasdb/commit/23e62d4178b98a208f1d0523fb1b25c1144c5898comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/23e62d4178b98a208f1d0523fb1b25c1144c5898/commentsj~- }(login	ToemmscheidJbojz- MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j- &https://api.github.com/users/Toemmschej- https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj- }(j- 	Toemmschej- Jbojz- MDQ6VXNlcjQzNjc1NDkwj- 4https://avatars.githubusercontent.com/u/43675490?v=4j- h5j- &https://api.github.com/users/Toemmschej- https://github.com/Toemmschej- 0https://api.github.com/users/Toemmsche/followersj- =https://api.github.com/users/Toemmsche/following{/other_user}j- 6https://api.github.com/users/Toemmsche/gists{/gist_id}j- =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j- 4https://api.github.com/users/Toemmsche/subscriptionsj- +https://api.github.com/users/Toemmsche/orgsj- ,https://api.github.com/users/Toemmsche/reposj- 7https://api.github.com/users/Toemmsche/events{/privacy}j- 6https://api.github.com/users/Toemmsche/received_eventsj- Userj- uparents]}(jx- (4ff5c0b37e783db8b68cdacfdd9d63238c1d3c56j- ^https://api.github.com/repos/palantir/atlasdb/commits/4ff5c0b37e783db8b68cdacfdd9d63238c1d3c56j- Shttps://github.com/palantir/atlasdb/commit/4ff5c0b37e783db8b68cdacfdd9d63238c1d3c56uastats}(totalK	additionsK	deletionsKufiles]}(jx- (eb3a2e7468989641bd980c3e5d295e6290fa13d1filenameIlock-api-objects/src/test/java/com/palantir/lock/watch/LockEventTest.javastatusmodifiedj- Kj- KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/23e62d4178b98a208f1d0523fb1b25c1144c5898/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/23e62d4178b98a208f1d0523fb1b25c1144c5898/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.java?ref=23e62d4178b98a208f1d0523fb1b25c1144c5898patchX@  @@ -163,9 +163,9 @@ public void serializesSparseMetadata() {
     @Test
     public void shufflingLockDescriptorsOnTheWireIsDetectedByClient() {
         assertThatThrownBy(() ->
-                // The order of the lock descriptors in this JSON file is swapped
-                DESERIALIZATION_MAPPER.readValue(
-                        Files.readString(getJsonPath("shuffled-locks")), LockEvent.class))
+                        // The order of the lock descriptors in this JSON file is swapped
+                        DESERIALIZATION_MAPPER.readValue(
+                                Files.readString(getJsonPath("shuffled-locks")), LockEvent.class))
                 .rootCause()
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageStartingWith("Key list integrity check failed");
@@ -174,7 +174,7 @@ public void shufflingLockDescriptorsOnTheWireIsDetectedByClient() {
     @Test
     public void cannotDeserializeAsWireLockEvent() {
         assertThatThrownBy(() -> DESERIALIZATION_MAPPER.readValue(
-                Files.readString(getJsonPath("baseline-with-metadata")), LockEvent.WireLockEvent.class))
+                        Files.readString(getJsonPath("baseline-with-metadata")), LockEvent.WireLockEvent.class))
                 .isInstanceOf(InvalidDefinitionException.class);
     }
 uau(9a85aab5220dd6762c21eacc9f0cc375dabeee64}(sha(9a85aab5220dd6762c21eacc9f0cc375dabeee64node_idEC_kwDOAjP5fdoAKDlhODVhYWI1MjIwZGQ2NzYyYzIxZWFjYzlmMGNjMzc1ZGFiZWVlNjQcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-16T00:02:10Zu	committer}(j- 
Ahmed Alouanej- aalouane@palantir.comj- 2023-05-16T00:02:10Zumessagebloomtree}(j- (5d2ecf384a10cc990764db3777576cdc5dbd32b9url`https://api.github.com/repos/palantir/atlasdb/git/trees/5d2ecf384a10cc990764db3777576cdc5dbd32b9uj. bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9a85aab5220dd6762c21eacc9f0cc375dabeee64
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiyAIACgkQPlMHVIT1
yhoh+ggAmEJCp7DbUAZI1P5NiRvNHSLtIZq6YSSWHjJQ5EzJEZz4KWEnLfXMJFu7
efxEFRkv6jSQggOafKCjPB/Bkwi7jXK/nX/W94GmlaecN862HT27wwrtU/Hm8OtJ
jLLe5GxnnqxDMjvxtFKA5Xny9r5eKHHSr+kf6T6RyaLyS3d+I6kB56CKFWp381hD
2Au0fniMjvZdbOXiu0Irw/mCgkE3rRs+wXsDloWzsCew1DpLSvB6MEDXbM8sHUDZ
pN6xoPBYF3ITnf/1t4O2BGwrkDAKQO/bEtxouwWsj14vDW4pXSTmY6lWD4gJ10/s
GuA39DHOkDdjoWgcfYXIUZrdYYx+WA==
=D02X
-----END PGP SIGNATURE-----payloadtree 5d2ecf384a10cc990764db3777576cdc5dbd32b9
parent a37cad12389529457ff1b9b6953c94aa74659b03
author Ahmed Alouane <aalouane@palantir.com> 1684195330 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684195330 +0100

bloom
uuj. ^https://api.github.com/repos/palantir/atlasdb/commits/9a85aab5220dd6762c21eacc9f0cc375dabeee64html_urlShttps://github.com/palantir/atlasdb/commit/9a85aab5220dd6762c21eacc9f0cc375dabeee64comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9a85aab5220dd6762c21eacc9f0cc375dabeee64/commentsj- }(loginergo14idJj- MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j. #https://api.github.com/users/ergo14j. https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj- }(j. ergo14j. Jj- MDQ6VXNlcjMwOTAzNzM2j. 4https://avatars.githubusercontent.com/u/30903736?v=4j . h5j. #https://api.github.com/users/ergo14j. https://github.com/ergo14j#. -https://api.github.com/users/ergo14/followersj%. :https://api.github.com/users/ergo14/following{/other_user}j'. 3https://api.github.com/users/ergo14/gists{/gist_id}j). :https://api.github.com/users/ergo14/starred{/owner}{/repo}j+. 1https://api.github.com/users/ergo14/subscriptionsj-. (https://api.github.com/users/ergo14/orgsj/. )https://api.github.com/users/ergo14/reposj1. 4https://api.github.com/users/ergo14/events{/privacy}j3. 3https://api.github.com/users/ergo14/received_eventsj5. Userj7. uparents]}(j- (a37cad12389529457ff1b9b6953c94aa74659b03j. ^https://api.github.com/repos/palantir/atlasdb/commits/a37cad12389529457ff1b9b6953c94aa74659b03j. Shttps://github.com/palantir/atlasdb/commit/a37cad12389529457ff1b9b6953c94aa74659b03uastats}(totalK%	additionsK#	deletionsKufiles]}(j- (c2c77b922755aaad63466ec3f915d47b80c27778filename.circleci/config.ymlstatusmodifiedjQ. K#jR. KchangesK%blob_urlhhttps://github.com/palantir/atlasdb/blob/9a85aab5220dd6762c21eacc9f0cc375dabeee64/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/9a85aab5220dd6762c21eacc9f0cc375dabeee64/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=9a85aab5220dd6762c21eacc9f0cc375dabeee64patchXH  @@ -80,6 +80,13 @@ jobs:
       - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
       - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
       - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - when:
+          condition:
+            equal: [ 13, << parameters.suite >> ]
+          steps:
+            - persist_to_workspace:
+                root: .
+                paths: [ . ]
       - store_artifacts:
           path: /home/circleci/artifacts
 
@@ -104,7 +111,7 @@ jobs:
 
   deploy:
     docker:
-      - image: cimg/openjdk:11.0.19-node
+      - image: cimg/openjdk:11.0.10-node
     resource_class: xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
@@ -117,7 +124,7 @@ jobs:
           fingerprints:
             - "b6:ba:27:37:84:8f:eb:b0:ee:0b:7c:c1:fc:18:32:5f"
       - run: sudo apt-get update
-      - run: sudo apt-get install python2 python3-pip
+      - run: sudo apt-get install python python3-pip
       - run:
           command: |
             # hack - notion of "owners" isn't supported in Circle 2
@@ -141,6 +148,32 @@ workflows:
           filters:
             tags:
               only: /.*/
+      - test-suite:
+          requires: [build]
+          matrix:
+            alias: test-no-tl
+            parameters:
+              # intentionally excluding 12 (TimeLock migration ETE test) from this collection
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13]
+          filters:
+            tags:
+              only: /.*/
+      - test-suite:
+          requires: [build]
+          matrix:
+            alias: test-tl
+            parameters:
+              suite: [12]
+          filters:
+            branches:
+              only: /(tlmete.*|develop)/
+            tags:
+              only: /.*/
+      - test:
+          requires: [test-tl, test-no-tl]
+          filters:
+            tags:
+              only: /.*/
       - trial-publish:
           requires: [build]
           filters:uau(c6c9fb54d2e5ea9695a958a4aa1624c74a64a4db}(sha(c6c9fb54d2e5ea9695a958a4aa1624c74a64a4dbnode_idEC_kwDOAjP5fdoAKGM2YzlmYjU0ZDJlNWVhOTY5NWE5NThhNGFhMTYyNGM3NGE2NGE0ZGIcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-07T13:44:52Zu	committer}(jn. Lucas Meirelesjp. meireles31@msn.comjr. 2023-06-07T13:44:52Zumessage$revert broken change made on purposetree}(jf. (62e3be57c99dfdb2202def00e7acf8a7ba066d15url`https://api.github.com/repos/palantir/atlasdb/git/trees/62e3be57c99dfdb2202def00e7acf8a7ba066d15uj~. bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c6c9fb54d2e5ea9695a958a4aa1624c74a64a4db
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSAidQACgkQJd22kJ7J
GiyiKwgAh2JlZHfEUOM/frD7G8dMZZkHEJGyA/BGPhjK7wuO5CpSrlUkQfW9COj/
gr0BCRyABplAgAQlIEUJSHatlbbb/ZSoUWijYCszR51bqz2jAFnApZ7aXGQfQfnH
DTo1kkeEBQyu8Q2uavp9JV0S12fZyYjNUt/oyo34w56cENcnevoyozKJtcjqJkLT
QXu7wpfhc3hagbzpsA4eTxSgiv+BZy8bFt94Mkt+c/G38u+TUO8UCRbv6NHIOOMO
rvScokm3PrkQOVwaKjzGvCTABvS71V4k9QxLAZhue+hGxfew25oXvV1604Ol9cxe
CTmdG0k3/BwTQWE+RbV/xXyAwoyPuQ==
=yzmo
-----END PGP SIGNATURE-----payloadtree 62e3be57c99dfdb2202def00e7acf8a7ba066d15
parent 484e7713eb2f5115c1f2c53a288ba5261f061551
author Lucas Meireles <meireles31@msn.com> 1686145492 +0100
committer Lucas Meireles <meireles31@msn.com> 1686145492 +0100

revert broken change made on purpose
uuj~. ^https://api.github.com/repos/palantir/atlasdb/commits/c6c9fb54d2e5ea9695a958a4aa1624c74a64a4dbhtml_urlShttps://github.com/palantir/atlasdb/commit/c6c9fb54d2e5ea9695a958a4aa1624c74a64a4dbcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c6c9fb54d2e5ea9695a958a4aa1624c74a64a4db/commentsjl. }(loginLucasIMEidJg jh. MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j~. %https://api.github.com/users/LucasIMEj. https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujt. }(j. LucasIMEj. Jg jh. MDQ6VXNlcjY3ODczMTE=j. 3https://avatars.githubusercontent.com/u/6787311?v=4j. h5j~. %https://api.github.com/users/LucasIMEj. https://github.com/LucasIMEj. /https://api.github.com/users/LucasIME/followersj. <https://api.github.com/users/LucasIME/following{/other_user}j. 5https://api.github.com/users/LucasIME/gists{/gist_id}j. <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j. 3https://api.github.com/users/LucasIME/subscriptionsj. *https://api.github.com/users/LucasIME/orgsj. +https://api.github.com/users/LucasIME/reposj. 6https://api.github.com/users/LucasIME/events{/privacy}j. 5https://api.github.com/users/LucasIME/received_eventsj. Userj. uparents]}(jf. (484e7713eb2f5115c1f2c53a288ba5261f061551j~. ^https://api.github.com/repos/palantir/atlasdb/commits/484e7713eb2f5115c1f2c53a288ba5261f061551j. Shttps://github.com/palantir/atlasdb/commit/484e7713eb2f5115c1f2c53a288ba5261f061551uastats}(totalKC	additionsKA	deletionsKufiles](}(jf. (94d55a71a6a77cd04f65f8c8eee63baee8a9a39afilenameVatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javastatusmodifiedj. Kj. KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/c6c9fb54d2e5ea9695a958a4aa1624c74a64a4db/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c6c9fb54d2e5ea9695a958a4aa1624c74a64a4db/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=c6c9fb54d2e5ea9695a958a4aa1624c74a64a4dbpatchX  @@ -30,7 +30,7 @@ public final class SweepStrategy {
 
     public static final SweepStrategy CONSERVATIVE =
             new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false);
-    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), false);
+    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), true);
 
     private final Optional<SweeperStrategy> sweeperStrategy;
     private final boolean mustCheckImmutableLockAfterReads;
@@ -69,9 +69,10 @@ private static boolean mustCheckImmutableLockAfterReads(TableMetadataPersistence
         switch (strategy) {
             case CONSERVATIVE:
             case NOTHING:
+                return false;
             case THOROUGH_MIGRATION:
             case THOROUGH:
-                return false;
+                return true;
         }
         throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
     }u}(jf. (2664388e5b99c401fd96ce5d7fcb41ccc18a2dbej. ]atlasdb-client/src/test/java/com/palantir/atlasdb/transaction/impl/ReadTransactionShould.javaj. modifiedj. K>j. K j. K>j. https://github.com/palantir/atlasdb/blob/c6c9fb54d2e5ea9695a958a4aa1624c74a64a4db/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransactionShould.javaj. https://github.com/palantir/atlasdb/raw/c6c9fb54d2e5ea9695a958a4aa1624c74a64a4db/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransactionShould.javaj. https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransactionShould.java?ref=c6c9fb54d2e5ea9695a958a4aa1624c74a64a4dbj. X  @@ -25,11 +25,17 @@
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.keyvalue.api.BatchColumnRangeSelection;
 import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection;
 import com.palantir.atlasdb.keyvalue.api.ColumnSelection;
 import com.palantir.atlasdb.keyvalue.api.RangeRequest;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.table.description.SweepStrategy;
+import com.palantir.common.base.Throwables;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
 import java.nio.charset.StandardCharsets;
 import java.util.Map;
 import org.junit.Before;
@@ -92,6 +98,58 @@ public void allowGetsOnConservativeTables() {
     }
 
     @Test
+    public void notAllowSimpleGetsOnThoroughTables() {
+        Method[] declaredMethods = ReadTransaction.class.getDeclaredMethods();
+
+        for (Method method : declaredMethods) {
+            // Ignore methods that are either not simple gets or are overloaded
+            if (simpleGets.containsKey(method.getName()) && hasExpectedParameterCount(method)) {
+                checkThrowsAndNoInteraction(
+                        () -> {
+                            try {
+                                method.invoke(readTransaction, simpleGets.get(method.getName()));
+                            } catch (InvocationTargetException e) {
+                                Throwables.throwIfInstance(e.getCause(), IllegalStateException.class);
+                            } catch (IllegalAccessException e) {
+                                Throwables.throwUncheckedException(e);
+                            }
+                        },
+                        SafeIllegalStateException.class,
+                        "cannot be read");
+            }
+        }
+    }
+
+    @Test
+    public void notAllowBatchColumnRangeGets() {
+        checkThrowsAndNoInteraction(
+                () -> readTransaction.getRowsColumnRange(
+                        DUMMY_THOROUGH_TABLE,
+                        ImmutableList.of(EMPTY_BYTES),
+                        BatchColumnRangeSelection.create(EMPTY_BYTES, EMPTY_BYTES, 1)),
+                SafeIllegalStateException.class,
+                "cannot be read");
+        checkThrowsAndNoInteraction(
+                () -> readTransaction.getRowsColumnRangeIterator(
+                        DUMMY_THOROUGH_TABLE,
+                        ImmutableList.of(EMPTY_BYTES),
+                        BatchColumnRangeSelection.create(EMPTY_BYTES, EMPTY_BYTES, 1)),
+                SafeIllegalStateException.class,
+                "cannot be read");
+    }
+
+    @Test
+    public void notAllowColumnRangeGets() {
+        checkThrowsAndNoInteraction(
+                () -> readTransaction.getRowsColumnRange(
+                        DUMMY_THOROUGH_TABLE,
+                        ImmutableList.of(EMPTY_BYTES),
+                        new ColumnRangeSelection(EMPTY_BYTES, EMPTY_BYTES),
+                        1),
+                SafeIllegalStateException.class,
+                "cannot be read");
+    }
+
     private void checkThrowsAndNoInteraction(
             Runnable thrower, Class<? extends Exception> exception, String errorMessage) {
         try {
@@ -103,4 +161,8 @@ private void checkThrowsAndNoInteraction(
             verifyNoMoreInteractions(delegateTransaction);
         }
     }
+
+    private boolean hasExpectedParameterCount(Method method) {
+        return simpleGets.get(method.getName()).length == method.getParameterCount();
+    }
 }ueu(b1b4429f23c222cc8ee7efa3daf17b93f9737578}(sha(b1b4429f23c222cc8ee7efa3daf17b93f9737578node_idEC_kwDOAjP5fdoAKGIxYjQ0MjlmMjNjMjIyY2M4ZWU3ZWZhM2RhZjE3YjkzZjk3Mzc1Nzgcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-10T15:57:26Zu	committer}(j. 	Tom Papkej. tpapke@palantir.comj. 2023-07-10T15:57:26Zumessage
Add limitstree}(j. (251a790cf7c4c967a635148ef5dd6102cf2763a4url`https://api.github.com/repos/palantir/atlasdb/git/trees/251a790cf7c4c967a635148ef5dd6102cf2763a4uj. bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b1b4429f23c222cc8ee7efa3daf17b93f9737578
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSsKmYACgkQmF9s0kaF
Iw0tbQf/adFlAPsy6UOha6XCsPis5xVBczYbsN3Kwbjrt9yy6HnbTlTAhipaIeDd
jv72NhOuxoxYnvo0YswcZtWrIAkN2f0ph9VLagU4G8d87AOvTx16pv43kvqUwp2b
Fbzx40CJdkhMcF1MZEp+DNc+pY5thFPlyFXpfzkTluZ9yHfHwwj7oxUby/lBii7F
bDKqBg663zMHkuQufYkcFlEogyf7jGhJSSH7On+ZbwPtt0IWdtqoIxhbJ/6sgu0F
6VlkuFo2NvrT+M3zrc3rkcnL7dub3H0j5xBE5kEINKPoOMq04GhuOL2kPTJnhXzY
L3jDBvghV46pFGurzWcaiX1lASQU+w==
=4Kat
-----END PGP SIGNATURE-----payloadtree 251a790cf7c4c967a635148ef5dd6102cf2763a4
parent ad18ca62cc74168498c066c7b456a14737c16eae
author Tom Papke <tpapke@palantir.com> 1689004646 +0100
committer Tom Papke <tpapke@palantir.com> 1689004646 +0100

Add limits
uuj. ^https://api.github.com/repos/palantir/atlasdb/commits/b1b4429f23c222cc8ee7efa3daf17b93f9737578html_urlShttps://github.com/palantir/atlasdb/commit/b1b4429f23c222cc8ee7efa3daf17b93f9737578comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b1b4429f23c222cc8ee7efa3daf17b93f9737578/commentsj. }(login	ToemmscheidJboj. MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j. &https://api.github.com/users/Toemmschej/ https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj. }(j/ 	Toemmschej/ Jboj. MDQ6VXNlcjQzNjc1NDkwj/ 4https://avatars.githubusercontent.com/u/43675490?v=4j/ h5j. &https://api.github.com/users/Toemmschej/ https://github.com/Toemmschej/ 0https://api.github.com/users/Toemmsche/followersj/ =https://api.github.com/users/Toemmsche/following{/other_user}j/ 6https://api.github.com/users/Toemmsche/gists{/gist_id}j/ =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j!/ 4https://api.github.com/users/Toemmsche/subscriptionsj#/ +https://api.github.com/users/Toemmsche/orgsj%/ ,https://api.github.com/users/Toemmsche/reposj'/ 7https://api.github.com/users/Toemmsche/events{/privacy}j)/ 6https://api.github.com/users/Toemmsche/received_eventsj+/ Userj-/ uparents]}(j. (ad18ca62cc74168498c066c7b456a14737c16eaej. ^https://api.github.com/repos/palantir/atlasdb/commits/ad18ca62cc74168498c066c7b456a14737c16eaej/ Shttps://github.com/palantir/atlasdb/commit/ad18ca62cc74168498c066c7b456a14737c16eaeuastats}(totalK/	additionsK/	deletionsK ufiles](}(j. (3ec0edd761fa4e4b14227b8625866f918f4cb662filenameOlock-api-objects/src/main/java/com/palantir/lock/watch/LockRequestMetadata.javastatusmodifiedjG/ KjH/ K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/b1b4429f23c222cc8ee7efa3daf17b93f9737578/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b1b4429f23c222cc8ee7efa3daf17b93f9737578/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.java?ref=b1b4429f23c222cc8ee7efa3daf17b93f9737578patchX  @@ -33,6 +33,10 @@ public interface LockRequestMetadata {
     @Value.Parameter
     Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata();
 
+    default int size() {
+        return lockDescriptorToChangeMetadata().size();
+    }
+
     static LockRequestMetadata of(Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata) {
         return ImmutableLockRequestMetadata.of(lockDescriptorToChangeMetadata);
     }u}(j. (2c93c298faf8b2f45dd928035ff4fd5429f85260jM/ Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImpl.javajO/ modifiedjG/ KjH/ K jQ/ KjR/ https://github.com/palantir/atlasdb/blob/b1b4429f23c222cc8ee7efa3daf17b93f9737578/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javajT/ https://github.com/palantir/atlasdb/raw/b1b4429f23c222cc8ee7efa3daf17b93f9737578/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javajV/ https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.java?ref=b1b4429f23c222cc8ee7efa3daf17b93f9737578jX/ X}	  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.timelock.lock.watch;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.RangeSet;
 import com.palantir.atlasdb.timelock.lock.AsyncLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
@@ -28,7 +29,10 @@
 import com.palantir.lock.watch.LockWatchStateUpdate;
 import com.palantir.lock.watch.LockWatchVersion;
 import com.palantir.lock.watch.UnlockEvent;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.Unsafe;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.HashSet;
 import java.util.Optional;
 import java.util.Set;
@@ -37,6 +41,14 @@
 import java.util.stream.Collectors;
 
 public class LockEventLogImpl implements LockEventLog {
+    private static final SafeLogger log = SafeLoggerFactory.get(LockEventLogImpl.class);
+
+    // Our Sliding window can hold a maximum of 1000 values. If we never store more than 1000 metadata values at a time
+    // memory usage by metadata will be bounded by 100 * 1000 * MAX_CHANGE_METADATA bytes.
+    // Assuming we are using ChangeMetadata that holds ~2KB max each, metadata cannot take up more than 200MB of memory.
+    @VisibleForTesting
+    static final int MAX_METADATA_SIZE = 100;
+
     private final UUID logId;
     private final ArrayLockEventSlidingWindow slidingWindow = new ArrayLockEventSlidingWindow(1000);
     private final Supplier<LockWatches> watchesSupplier;
@@ -64,6 +76,14 @@ public synchronized <T> ValueAndLockWatchStateUpdate<T> runTask(
     @Override
     public synchronized void logLock(
             Set<LockDescriptor> locksTakenOut, LockToken lockToken, Optional<LockRequestMetadata> metadata) {
+        // We don't want metadata to blow to consume absurd amounts of memory, but we cannot fail here as not publishing
+        // the LockEvent would mean cache corruption. Discarding the metadata is fine, but we should keep track of
+        // how often this happens.
+        int metadataSize = metadata.map(LockRequestMetadata::size).orElse(0);
+        if (metadataSize > MAX_METADATA_SIZE) {
+            log.warn("Discarding metadata because it is too large", SafeArg.of("metadataSize", metadataSize));
+            metadata = Optional.empty();
+        }
         slidingWindow.add(LockEvent.builder(locksTakenOut, lockToken, metadata));
     }
 u      }(j. (c609835c10409bf03cfec1f3343b43f8827e109cjM/ ^timelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImplTest.javajO/ modifiedjG/ KjH/ K jQ/ KjR/ https://github.com/palantir/atlasdb/blob/b1b4429f23c222cc8ee7efa3daf17b93f9737578/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.javajT/ https://github.com/palantir/atlasdb/raw/b1b4429f23c222cc8ee7efa3daf17b93f9737578/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.javajV/ https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.java?ref=b1b4429f23c222cc8ee7efa3daf17b93f9737578jX/ X	  @@ -30,10 +30,14 @@
 import com.palantir.atlasdb.timelock.lock.ExclusiveLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocks;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.ChangeMetadata;
 import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchReferences;
 import com.palantir.lock.watch.LockWatchReferences.LockWatchReference;
@@ -45,6 +49,7 @@
 import java.util.UUID;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -171,6 +176,24 @@ public void requestWithStaleLogIdReturnsSnapshot() {
         assertThat(snapshot.lockWatches()).containsExactly(entireTable);
     }
 
+    @Test
+    public void discardsMetadataIfTooLarge() {
+        LockRequestMetadata tooLargeMetadata =
+                LockRequestMetadata.of(KeyedStream.of(IntStream.range(0, LockEventLogImpl.MAX_METADATA_SIZE + 1)
+                                .boxed())
+                        .mapKeys(i -> StringLockDescriptor.of(Integer.toString(i)))
+                        .map(_unused -> (ChangeMetadata) ChangeMetadata.unchanged())
+                        .collectToMap());
+        log.logLock(ImmutableSet.of(), TOKEN, Optional.of(tooLargeMetadata));
+        LockWatchStateUpdate update = log.getLogDiff(NEGATIVE_VERSION_CURRENT_LOG_ID);
+        LockWatchStateUpdate.Success success = UpdateVisitors.assertSuccess(update);
+        assertThat(success.events())
+                .singleElement()
+                .isInstanceOf(LockEvent.class)
+                .extracting(event -> (LockEvent) event)
+                .satisfies(event -> assertThat(event.metadata()).isEmpty());
+    }
+
     private LockWatches createWatchesFor(LockWatchReference... references) {
         return ImmutableLockWatches.of(
                 Arrays.stream(references).collect(Collectors.toSet()),ueu(cde3f0e4a94e34705ec3f4e0d74ff888155b8f93}(sha(cde3f0e4a94e34705ec3f4e0d74ff888155b8f93node_idEC_kwDOAjP5fdoAKGNkZTNmMGU0YTk0ZTM0NzA1ZWMzZjRlMGQ3NGZmODg4MTU1YjhmOTMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-20T15:06:32Zu	committer}(jt/ 
Sam Kramerjv/ skramer@palantir.comjx/ 2023-04-20T15:06:32Zumessage5write data much later so inbound transactions miss ittree}(jl/ (3e081e74d40f79e2357a0eb5c2d8524ab5b06ad3url`https://api.github.com/repos/palantir/atlasdb/git/trees/3e081e74d40f79e2357a0eb5c2d8524ab5b06ad3uj/ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cde3f0e4a94e34705ec3f4e0d74ff888155b8f93
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRBVPgACgkQmPPOpKR4
XS3PAgf/YA4gI/UrxPZDrGFxEdijMa+5mNJHaToPeo/rlc8z9yLo1PYqHcQXaMl9
hMWln1Rt/qp2XurLVj8+HX+qfLXe3slWjgroGapfxRvovUYCFNQ6M9uSqUcp4PbM
q37NNvoPmTW/zoI6t4s7Pen2ebyPJ8eLnfXs/5tLL/EcjLiF3j9k7wDel8NHwLSa
gp3Dt0yTTfvXp3YTMXOkNaAjwh5khaQDXEgHrqvelbARul9IUHDGRVPcrt3RkFU7
YNAiCXGhG3QceR+/5giTsBxaz8LwrCFLfHTWsrz0rWrxFxXkqPA1Cs1QRcjW2Lx5
OmzXYD+FF1H0ODENXRFTpVMkEGluDA==
=ijHf
-----END PGP SIGNATURE-----payloadX  tree 3e081e74d40f79e2357a0eb5c2d8524ab5b06ad3
parent f8bf34176eae5fa8f2122a40292f5b8aee0f9b9b
author Sam Kramer <skramer@palantir.com> 1682003192 +0100
committer Sam Kramer <skramer@palantir.com> 1682003192 +0100

write data much later so inbound transactions miss it
uuj/ ^https://api.github.com/repos/palantir/atlasdb/commits/cde3f0e4a94e34705ec3f4e0d74ff888155b8f93html_urlShttps://github.com/palantir/atlasdb/commit/cde3f0e4a94e34705ec3f4e0d74ff888155b8f93comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cde3f0e4a94e34705ec3f4e0d74ff888155b8f93/commentsjr/ }(login
Sam-KrameridJ^2_ jn/ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j/ 'https://api.github.com/users/Sam-Kramerj/ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujz/ }(j/ 
Sam-Kramerj/ J^2_ jn/ MDQ6VXNlcjYyMzg4MTQ=j/ 3https://avatars.githubusercontent.com/u/6238814?v=4j/ h5j/ 'https://api.github.com/users/Sam-Kramerj/ https://github.com/Sam-Kramerj/ 1https://api.github.com/users/Sam-Kramer/followersj/ >https://api.github.com/users/Sam-Kramer/following{/other_user}j/ 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j/ >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j/ 5https://api.github.com/users/Sam-Kramer/subscriptionsj/ ,https://api.github.com/users/Sam-Kramer/orgsj/ -https://api.github.com/users/Sam-Kramer/reposj/ 8https://api.github.com/users/Sam-Kramer/events{/privacy}j/ 7https://api.github.com/users/Sam-Kramer/received_eventsj/ Userj/ uparents]}(jl/ (f8bf34176eae5fa8f2122a40292f5b8aee0f9b9bj/ ^https://api.github.com/repos/palantir/atlasdb/commits/f8bf34176eae5fa8f2122a40292f5b8aee0f9b9bj/ Shttps://github.com/palantir/atlasdb/commit/f8bf34176eae5fa8f2122a40292f5b8aee0f9b9buastats}(totalK	additionsK	deletionsKufiles]}(jl/ (9c7a794d73322a7719ce595144191886d099132ffilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj/ Kj/ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/cde3f0e4a94e34705ec3f4e0d74ff888155b8f93/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/cde3f0e4a94e34705ec3f4e0d74ff888155b8f93/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=cde3f0e4a94e34705ec3f4e0d74ff888155b8f93patchX  @@ -1982,10 +1982,6 @@ private void commitWrites(TransactionService transactionService) {
                 // this transaction before making progress.
                 traced("postSweepEnqueueLockCheck", () -> throwIfImmutableTsOrCommitLocksExpired(commitLocksToken));
 
-                // Write to the key value service. We must do this before getting the commit timestamp - otherwise
-                // we risk another transaction starting at a timestamp after our commit timestamp not seeing our writes.
-                timedAndTraced("commitWrite", () -> keyValueService.multiPut(writesByTable, getStartTimestamp()));
-
                 // Now that all writes are done, get the commit timestamp
                 // We must do this before we check that our locks are still valid to ensure that other transactions that
                 // will hold these locks are sure to have start timestamps after our commit timestamp.
@@ -2020,6 +2016,10 @@ private void commitWrites(TransactionService transactionService) {
                 // timed.
                 traced("preCommitLockCheck", () -> throwIfImmutableTsOrCommitLocksExpired(commitLocksToken));
 
+                // Write to the key value service. We must do this before getting the commit timestamp - otherwise
+                // we risk another transaction starting at a timestamp after our commit timestamp not seeing our writes.
+                timedAndTraced("commitWrite", () -> keyValueService.multiPut(writesByTable, getStartTimestamp()));
+
                 // Not timed, because this just calls TransactionService.putUnlessExists, and that is timed.
                 traced(
                         "commitPutCommitTs",uau(773e1ad04e84d063dc67b970d24f8c986785b524}(sha(773e1ad04e84d063dc67b970d24f8c986785b524node_idEC_kwDOAjP5fdoAKDc3M2UxYWQwNGU4NGQwNjNkYzY3Yjk3MGQyNGY4Yzk4Njc4NWI1MjQcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-20T16:02:10Zu	committer}(j/ Lucas Meirelesj/ meireles31@msn.comj/ 2023-07-20T16:02:10Zumessageverify no lock is ever calledtree}(j/ (5de0a50f32f62700868dbc42d14ec8f86459ab7burl`https://api.github.com/repos/palantir/atlasdb/git/trees/5de0a50f32f62700868dbc42d14ec8f86459ab7buj/ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/773e1ad04e84d063dc67b970d24f8c986785b524
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS5WoIACgkQJd22kJ7J
GizMyggAiITt9FqPG+YE35FyXJGYduoOosIyHsogQnEVHzSqdkjdt+z88ZdNKK4a
zP/9aIOqAyq3jIK83IhqEp9E/TyAaS8KKNgHTroYt0Yf15akyaca0mJZN9CEvVL3
hMr6n7NKJeEsuMNE0SzId3EyPQBgf9Bx+F/4BdmoVzcXA8yk+G+cepCvVXEuPa8R
ND15Y0+oEglLxu8/tv8PkOfOWXp2+At8f+PcESPqotZS3oKo04T3n88CPdBOUNOg
7iegSTFFVDtO7aeY2xq2sBPiNRoWLYvIk0zMHaGgDiLt/0CxkgTvzfDQegdc0VJa
4F9SrkrKAf87yJwqQ3pj5dsGTZScTA==
=7dGL
-----END PGP SIGNATURE-----payloadtree 5de0a50f32f62700868dbc42d14ec8f86459ab7b
parent f273357b24b3af84d3b0c6c388628678d3bec21f
author Lucas Meireles <meireles31@msn.com> 1689868930 +0100
committer Lucas Meireles <meireles31@msn.com> 1689868930 +0100

verify no lock is ever called
uuj/ ^https://api.github.com/repos/palantir/atlasdb/commits/773e1ad04e84d063dc67b970d24f8c986785b524html_urlShttps://github.com/palantir/atlasdb/commit/773e1ad04e84d063dc67b970d24f8c986785b524comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/773e1ad04e84d063dc67b970d24f8c986785b524/commentsj/ }(loginLucasIMEidJg j/ MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j/ %https://api.github.com/users/LucasIMEj	0 https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj/ }(j0 LucasIMEj0 Jg j/ MDQ6VXNlcjY3ODczMTE=j0 3https://avatars.githubusercontent.com/u/6787311?v=4j0 h5j/ %https://api.github.com/users/LucasIMEj	0 https://github.com/LucasIMEj0 /https://api.github.com/users/LucasIME/followersj0 <https://api.github.com/users/LucasIME/following{/other_user}j0 5https://api.github.com/users/LucasIME/gists{/gist_id}j0 <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j0 3https://api.github.com/users/LucasIME/subscriptionsj!0 *https://api.github.com/users/LucasIME/orgsj#0 +https://api.github.com/users/LucasIME/reposj%0 6https://api.github.com/users/LucasIME/events{/privacy}j'0 5https://api.github.com/users/LucasIME/received_eventsj)0 Userj+0 uparents]}(j/ (f273357b24b3af84d3b0c6c388628678d3bec21fj/ ^https://api.github.com/repos/palantir/atlasdb/commits/f273357b24b3af84d3b0c6c388628678d3bec21fj	0 Shttps://github.com/palantir/atlasdb/commit/f273357b24b3af84d3b0c6c388628678d3bec21fuastats}(totalK	additionsK
	deletionsK
ufiles]}(j/ (4aca564b9c29f3bf2aa4b06cb096cb738a4942d5filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedjE0 K
jF0 K
changesKblob_urlhttps://github.com/palantir/atlasdb/blob/773e1ad04e84d063dc67b970d24f8c986785b524/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/773e1ad04e84d063dc67b970d24f8c986785b524/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=773e1ad04e84d063dc67b970d24f8c986785b524patchXU  @@ -1664,7 +1664,7 @@ public void skipImmutableTimestampLocksIfReadingEqualsExpectedNumberOfValuesEven
         transaction.commit();
         spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
 
-        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+        verify(spiedTimeLockService, never()).refreshLockLeases(any());
     }
 
     @Test
@@ -1702,7 +1702,7 @@ public void throwsIfReadingMoreThanExpectedNumberOfValues() {
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("KeyValueService returned more results than Get expected");
 
-        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+        verify(spiedTimeLockService, never()).refreshLockLeases(any());
     }
 
     @Test
@@ -1733,15 +1733,15 @@ public void keepNumberOfExpectedCellsTheSameIfNoneCached() {
 
         // We shouldn't check for locks even though we haven't fetched all 3 cells, because we fetched 2 and passed
         // that as the expected value
-        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+        verify(spiedTimeLockService, never()).refreshLockLeases(any());
 
         // Since one cell is cached, should only expect 1 to be present on internal call
         verify(spiedSnapshotTransaction)
                 .getInternal(
                         eq("getWithExpectedNumberOfCells"),
                         eq(TABLE_SWEPT_THOROUGH),
                         eq(Set.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3)),
-                        eq(2),
+                        eq(2L),
                         any(),
                         any());
     }
@@ -1771,15 +1771,15 @@ public void reduceCachedCellsFromNumberOfExpectedCells() {
 
         // We shouldn't check for locks even though we haven't fetched all 3 cells, because we fetched 2 and passed
         // that as the expected value
-        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+        verify(spiedTimeLockService, never()).refreshLockLeases(any());
 
         // Since one cell is cached, should only expect 1 to be present on internal call
         verify(spiedSnapshotTransaction)
                 .getInternal(
                         eq("getWithExpectedNumberOfCells"),
                         eq(TABLE_SWEPT_THOROUGH),
                         eq(Set.of(TEST_CELL_2, TEST_CELL_3)), // Don't expect to ask for cell1 because it's cached
-                        eq(1),
+                        eq(1L),
                         any(),
                         any());
     }
@@ -1809,15 +1809,15 @@ public void keepNumberOfExpectedCellsIfCachedWithEmptyValue() {
 
         // We shouldn't check for locks even though we haven't fetched all 3 cells, because we fetched 2 and passed
         // that as the expected value
-        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+        verify(spiedTimeLockService, never()).refreshLockLeases(any());
 
         // Even though Cell One is cached, it has empty value, so we still expect 2 values to be present
         verify(spiedSnapshotTransaction)
                 .getInternal(
                         eq("getWithExpectedNumberOfCells"),
                         eq(TABLE_SWEPT_THOROUGH),
                         eq(Set.of(TEST_CELL_2, TEST_CELL_3)), // Don't expect to ask for cell1 because it's cached
-                        eq(2),
+                        eq(2L),
                         any(),
                         any());
     }
@@ -1847,7 +1847,7 @@ public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithValid
         transaction.commit();
         spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
 
-        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+        verify(spiedTimeLockService, never()).refreshLockLeases(any());
     }
 
     @Test
@@ -1881,7 +1881,7 @@ public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithoutVa
         transaction.commit();
         spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
 
-        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+        verify(spiedTimeLockService, never()).refreshLockLeases(any());
     }
 
     @Testuau(46b454c6913c3dec736f45e11bea6589632dd60b}(sha(46b454c6913c3dec736f45e11bea6589632dd60bnode_idEC_kwDOAjP5fdoAKDQ2YjQ1NGM2OTEzYzNkZWM3MzZmNDVlMTFiZWE2NTg5NjMyZGQ2MGIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-25T11:10:13Zu	committer}(jb0 
Sam Kramerjd0 skramer@palantir.comjf0 2023-04-25T11:10:13Zumessage0unlock read/write locks before RW conflict checktree}(jZ0 (95460d9908f8339d35469011dc08a564f05206a0url`https://api.github.com/repos/palantir/atlasdb/git/trees/95460d9908f8339d35469011dc08a564f05206a0ujr0 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/46b454c6913c3dec736f45e11bea6589632dd60b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRHtRUACgkQmPPOpKR4
XS3zYwgAr2ErvAGW+at7q9iGxg8fG46jJhzXZ2Y6SUq+QcpWJXRIttdMYjnJOJVY
lFRpbCNF03AOPnDT1dNen9sYgXg7+eNrupInk9PNgY13sbKSSBRZUCTf4XerpESa
QacJ1RpPxyUo6PGqkjOkCPPTWhODJbXqyi7H59nLC7ac3zJo2ZxZXqsCeJC2GD6w
xSz8OPUMU/w4NiHu5F2H5lSf3ONYyxDmtSo7kf/XLA0s7Qa1ikX6yQkZLuzUQmNC
qfhiIa8ms5mON48xPfJ7Gqdtqw/ksbamlctog2wIjZ1TC+8+jkijnN5dAjqtfp5z
TEoFTIdPPiNxNC9xD9uW9yJUBMZf0Q==
=u4Hx
-----END PGP SIGNATURE-----payloadX  tree 95460d9908f8339d35469011dc08a564f05206a0
parent 65bbddb5425aa5e58ddc0e43ef9243f4d67b7688
author Sam Kramer <skramer@palantir.com> 1682421013 +0100
committer Sam Kramer <skramer@palantir.com> 1682421013 +0100

unlock read/write locks before RW conflict check
uujr0 ^https://api.github.com/repos/palantir/atlasdb/commits/46b454c6913c3dec736f45e11bea6589632dd60bhtml_urlShttps://github.com/palantir/atlasdb/commit/46b454c6913c3dec736f45e11bea6589632dd60bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/46b454c6913c3dec736f45e11bea6589632dd60b/commentsj`0 }(login
Sam-KrameridJ^2_ j\0 MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jr0 'https://api.github.com/users/Sam-Kramerj0 https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujh0 }(j0 
Sam-Kramerj0 J^2_ j\0 MDQ6VXNlcjYyMzg4MTQ=j0 3https://avatars.githubusercontent.com/u/6238814?v=4j0 h5jr0 'https://api.github.com/users/Sam-Kramerj0 https://github.com/Sam-Kramerj0 1https://api.github.com/users/Sam-Kramer/followersj0 >https://api.github.com/users/Sam-Kramer/following{/other_user}j0 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j0 >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j0 5https://api.github.com/users/Sam-Kramer/subscriptionsj0 ,https://api.github.com/users/Sam-Kramer/orgsj0 -https://api.github.com/users/Sam-Kramer/reposj0 8https://api.github.com/users/Sam-Kramer/events{/privacy}j0 7https://api.github.com/users/Sam-Kramer/received_eventsj0 Userj0 uparents]}(jZ0 (65bbddb5425aa5e58ddc0e43ef9243f4d67b7688jr0 ^https://api.github.com/repos/palantir/atlasdb/commits/65bbddb5425aa5e58ddc0e43ef9243f4d67b7688j0 Shttps://github.com/palantir/atlasdb/commit/65bbddb5425aa5e58ddc0e43ef9243f4d67b7688uastats}(totalK	additionsK	deletionsKufiles]}(jZ0 (9816ef5c0a42ad6bfde1c95d82fd18897c5e4e69filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj0 Kj0 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/46b454c6913c3dec736f45e11bea6589632dd60b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/46b454c6913c3dec736f45e11bea6589632dd60b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=46b454c6913c3dec736f45e11bea6589632dd60bpatchX0  @@ -48,7 +48,6 @@
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.MoreExecutors;
-import com.google.common.util.concurrent.Uninterruptibles;
 import com.google.errorprone.annotations.MustBeClosed;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.AtlasDbMetricNames;
@@ -170,7 +169,6 @@
 import java.util.concurrent.CopyOnWriteArrayList;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.RejectedExecutionException;
-import java.util.concurrent.ThreadLocalRandom;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.atomic.AtomicLong;
 import java.util.concurrent.atomic.AtomicReference;
@@ -2019,13 +2017,14 @@ private void commitWrites(TransactionService transactionService) {
                 Set<LockToken> tokensToUnlock = new HashSet<>();
                 tokensToUnlock.add(commitLocksToken);
                 immutableTimestampLock.ifPresent(tokensToUnlock::add);
-                Uninterruptibles.sleepUninterruptibly(
-                        Duration.ofMillis(ThreadLocalRandom.current().nextInt(60_000)));
+                timelockService.tryUnlock(tokensToUnlock);
 
                 // This can fail :(
                 // Serializable transactions need to check their reads haven't changed, by reading again at
-                // commitTs + 1. This must happen before the lock check for thorough tables, because the lock check
-                // verifies the immutable timestamp hasn't moved forward - thorough sweep might sweep a conflict out
+                // commitTs + 1. This must happen before the lock check for thorough tables, because the lock
+                // check
+                // verifies the immutable timestamp hasn't moved forward - thorough sweep might sweep a conflict
+                // out
                 // from underneath us.
                 timedAndTraced(
                         "readWriteConflictCheck", () -> throwIfReadWriteConflictForSerializable(commitTimestamp));uau(966539525b9bcb5fc56d9ceb159eb9768883d506}(sha(966539525b9bcb5fc56d9ceb159eb9768883d506node_idEC_kwDOAjP5fdoAKDk2NjUzOTUyNWI5YmNiNWZjNTZkOWNlYjE1OWViOTc2ODg4M2Q1MDYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-26T16:31:33Zu	committer}(j0 
Ahmed Alouanej0 aalouane@palantir.comj0 2023-04-26T16:31:33Zumessageretry dynamicRandomColumns()tree}(j0 (94cdb584597d6307f6ef0ff3231472813ae9412aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/94cdb584597d6307f6ef0ff3231472813ae9412auj0 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/966539525b9bcb5fc56d9ceb159eb9768883d506
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRJUeUACgkQPlMHVIT1
yhppQwgAvDN3SW7AorX/rYvS/mSkD+rtnvRj0mNd8hAozs1M/+QCjZY/Oocz0i4R
cgVo8Q7TUR8gcF1dZuQLGP2a/zEInL9t/x8h3cLzNHDH36m3UIJ5CkDyYc02XAln
vPa3bIIBKmaDJjdnUMp+aqDEcRHgW4MVswn9VdVuED8DDUwutZhm/DkRZUOqCaWr
6rUhYSL4avUFF53QoqPwDQTIxkw5N8RsluqgJSIhB9dNppykXR5ROB2xb3ztsnYq
yE0H2vycSnQE1m6wIUDrllLueN1E05Ygn0fG/Wwc40LZijxGgRo5wg9RQJLhAAla
9wYSnuPIxZdgmxwRA59umv1EtNHBBw==
=1o+t
-----END PGP SIGNATURE-----payloadtree 94cdb584597d6307f6ef0ff3231472813ae9412a
parent 8cfbc0339a2b640e5318ea4a47683cad51cb4210
author Ahmed Alouane <aalouane@palantir.com> 1682526693 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682526693 +0100

retry dynamicRandomColumns()
uuj0 ^https://api.github.com/repos/palantir/atlasdb/commits/966539525b9bcb5fc56d9ceb159eb9768883d506html_urlShttps://github.com/palantir/atlasdb/commit/966539525b9bcb5fc56d9ceb159eb9768883d506comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/966539525b9bcb5fc56d9ceb159eb9768883d506/commentsj0 }(loginergo14idJj0 MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j0 #https://api.github.com/users/ergo14j0 https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj0 }(j0 ergo14j0 Jj0 MDQ6VXNlcjMwOTAzNzM2j 1 4https://avatars.githubusercontent.com/u/30903736?v=4j1 h5j0 #https://api.github.com/users/ergo14j0 https://github.com/ergo14j1 -https://api.github.com/users/ergo14/followersj1 :https://api.github.com/users/ergo14/following{/other_user}j	1 3https://api.github.com/users/ergo14/gists{/gist_id}j1 :https://api.github.com/users/ergo14/starred{/owner}{/repo}j
1 1https://api.github.com/users/ergo14/subscriptionsj1 (https://api.github.com/users/ergo14/orgsj1 )https://api.github.com/users/ergo14/reposj1 4https://api.github.com/users/ergo14/events{/privacy}j1 3https://api.github.com/users/ergo14/received_eventsj1 Userj1 uparents]}(j0 (8cfbc0339a2b640e5318ea4a47683cad51cb4210j0 ^https://api.github.com/repos/palantir/atlasdb/commits/8cfbc0339a2b640e5318ea4a47683cad51cb4210j0 Shttps://github.com/palantir/atlasdb/commit/8cfbc0339a2b640e5318ea4a47683cad51cb4210uastats}(totalK
	additionsK		deletionsKufiles](}(j0 (1b448a0fde07cfbc9657b00600f040335b3c7c84filenameatlasdb-api/build.gradlestatusmodifiedj31 Kj41 KchangesKblob_urllhttps://github.com/palantir/atlasdb/blob/966539525b9bcb5fc56d9ceb159eb9768883d506/atlasdb-api%2Fbuild.gradleraw_urlkhttps://github.com/palantir/atlasdb/raw/966539525b9bcb5fc56d9ceb159eb9768883d506/atlasdb-api%2Fbuild.gradlecontents_url~https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fbuild.gradle?ref=966539525b9bcb5fc56d9ceb159eb9768883d506patchX   @@ -39,8 +39,9 @@ dependencies {
   testImplementation 'com.palantir.refreshable:refreshable'
   testImplementation 'io.dropwizard.metrics:metrics-core'
   testImplementation project(':lock-api-objects')
+    testImplementation project(path: ':flake-rule')
 
-  annotationProcessor 'org.immutables:value'
+    annotationProcessor 'org.immutables:value'
   compileOnly 'org.immutables:value::annotations'
   testCompileOnly 'org.immutables:value::annotations'
   annotationProcessor project(":atlasdb-processors")u}(j0 (c2c86be9a9da93bcfb3eb43dd67f55ea0b9f9d51j91 Ratlasdb-api/src/test/java/com/palantir/atlasdb/keyvalue/api/CellReferenceTest.javaj;1 modifiedj31 Kj41 K j=1 Kj>1 https://github.com/palantir/atlasdb/blob/966539525b9bcb5fc56d9ceb159eb9768883d506/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellReferenceTest.javaj@1 https://github.com/palantir/atlasdb/raw/966539525b9bcb5fc56d9ceb159eb9768883d506/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellReferenceTest.javajB1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellReferenceTest.java?ref=966539525b9bcb5fc56d9ceb159eb9768883d506jD1 X~  @@ -21,19 +21,25 @@
 
 import com.google.common.math.IntMath;
 import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.flake.FlakeRetryingRule;
+import com.palantir.flake.ShouldRetry;
 import java.util.List;
 import java.util.Map;
 import java.util.concurrent.ThreadLocalRandom;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 import org.assertj.core.data.Percentage;
+import org.junit.Rule;
 import org.junit.Test;
 
 public class CellReferenceTest {
     private static final TableReference TABLE = createFromFullyQualifiedName("fixed.table");
     private static final byte[] ROW = PtBytes.toBytes("row");
     private static final byte[] COL = PtBytes.toBytes("col");
 
+    @Rule
+    public final FlakeRetryingRule retryingRule = new FlakeRetryingRule();
+
     @Test
     public void dynamicSequentialColumns() {
         int totalCount = 20_000;
@@ -44,6 +50,7 @@ public void dynamicSequentialColumns() {
         assertDistributionUniform(hashes, totalCount);
     }
 
+    @ShouldRetry
     @Test
     public void dynamicRandomColumns() {
         ThreadLocalRandom random = ThreadLocalRandom.current();ueu(730db668b0486dbebe9afbb25a4609052d62cac5}(sha(730db668b0486dbebe9afbb25a4609052d62cac5node_idEC_kwDOAjP5fdoAKDczMGRiNjY4YjA0ODZkYmViZTlhZmJiMjVhNDYwOTA1MmQ2MmNhYzUcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-05-22T11:56:57Zu	committer}(jX1 GitHubjZ1 noreply@github.comj\1 2023-05-22T11:56:57Zumessage;Fix antithesis publish script to publish latest C*  (#6578)tree}(jP1 (228372c7442eb871842f980aa57c97660e4c29d2url`https://api.github.com/repos/palantir/atlasdb/git/trees/228372c7442eb871842f980aa57c97660e4c29d2ujh1 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/730db668b0486dbebe9afbb25a4609052d62cac5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJka1iJCRBK7hj4Ov3rIwAAxgEIAJjX4WrDVot4IkWbmCbA7oqp
MD51aMFkQaMVQb5VI0fQryqvZRlrdJIvHSWPB5YQnViJvCIM8K0z+bo/4sLbOgsX
/rRfXeZAn1yMdeIWBgtQa7q8QDSLHOiIFpKT5uQSuFB+xu5uCu8yp5mxEbGXMdtK
VcWH1BhheEGFPqgatDEFbIp6NjEHyg6iwjRFdUhMOQ9nOKD/Ym1egNCd5thiiCG3
PtwixR+avpegfAPUpLhFmVl9M7nEEZxsj751FgsTub6a+dl9RxpIaPMvtdQEeQEb
ZGExsmVzWPK9Pp2XtX/xbR45w1BK+s+uAIUtWnc+8bB8qwgt3+LSpXXoJCk0tLo=
=cci4
-----END PGP SIGNATURE-----
payloadX  tree 228372c7442eb871842f980aa57c97660e4c29d2
parent 9e83bf1f0c22a14fc0de4c53aba6af73df1bc1ff
author Sam-Kramer <sam.c.kramer@gmail.com> 1684756617 +0100
committer GitHub <noreply@github.com> 1684756617 +0000

Fix antithesis publish script to publish latest C*  (#6578)

 uujh1 ^https://api.github.com/repos/palantir/atlasdb/commits/730db668b0486dbebe9afbb25a4609052d62cac5html_urlShttps://github.com/palantir/atlasdb/commit/730db668b0486dbebe9afbb25a4609052d62cac5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/730db668b0486dbebe9afbb25a4609052d62cac5/commentsjV1 }(login
Sam-KrameridJ^2_ jR1 MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jh1 'https://api.github.com/users/Sam-Kramerjv1 https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj^1 }(j{1 web-flowj}1 J/jR1 MDQ6VXNlcjE5ODY0NDQ3j1 4https://avatars.githubusercontent.com/u/19864447?v=4j1 h5jh1 %https://api.github.com/users/web-flowjv1 https://github.com/web-flowj1 /https://api.github.com/users/web-flow/followersj1 <https://api.github.com/users/web-flow/following{/other_user}j1 5https://api.github.com/users/web-flow/gists{/gist_id}j1 <https://api.github.com/users/web-flow/starred{/owner}{/repo}j1 3https://api.github.com/users/web-flow/subscriptionsj1 *https://api.github.com/users/web-flow/orgsj1 +https://api.github.com/users/web-flow/reposj1 6https://api.github.com/users/web-flow/events{/privacy}j1 5https://api.github.com/users/web-flow/received_eventsj1 Userj1 uparents]}(jP1 (9e83bf1f0c22a14fc0de4c53aba6af73df1bc1ffjh1 ^https://api.github.com/repos/palantir/atlasdb/commits/9e83bf1f0c22a14fc0de4c53aba6af73df1bc1ffjv1 Shttps://github.com/palantir/atlasdb/commit/9e83bf1f0c22a14fc0de4c53aba6af73df1bc1ffuastats}(totalK	additionsK	deletionsKufiles]}(jP1 (5f39e0e56f2510fcdb9ebb4ce33aeee0b71f408afilename*scripts/circle-ci/publish-to-antithesis.shstatusmodifiedj1 Kj1 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/730db668b0486dbebe9afbb25a4609052d62cac5/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shraw_urlhttps://github.com/palantir/atlasdb/raw/730db668b0486dbebe9afbb25a4609052d62cac5/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=730db668b0486dbebe9afbb25a4609052d62cac5patchX  @@ -16,9 +16,9 @@ printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://$
 
 VERSION=$(./gradlew -q printVersion)
 
-docker pull palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
-docker tag palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra ${ANTITHESIS_REPO_URL}/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
-docker push ${ANTITHESIS_REPO_URL}/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc5 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
+docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
 
 docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${VERSION}
 docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${VERSION}uau(678f29b7efb9d87bbdeaa6cf096dfb216887f119}(sha(678f29b7efb9d87bbdeaa6cf096dfb216887f119node_idEC_kwDOAjP5fdoAKDY3OGYyOWI3ZWZiOWQ4N2JiZGVhYTZjZjA5NmRmYjIxNjg4N2YxMTkcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-28T11:32:16Zu	committer}(j1 Jeremy Kongj1 jkong@palantir.comj1 2023-02-28T11:32:16Zumessageargstree}(j1 (29735ad286be6950686056edf6cebde0f80d473eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/29735ad286be6950686056edf6cebde0f80d473euj1 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/678f29b7efb9d87bbdeaa6cf096dfb216887f119
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmP95kAACgkQTLdFKain
zjyTjgf+ID3I8kjmbqyt5kdakavygaw/UGoFCs920AaplPQw8WLzVb4u8EEMZ1QR
b15iZtfJdWXdYKmTPRYzcz2rIr0c1f2QN5y3pRMpPGuhMFsWVIEqsr8ZzvcFGAY0
s7nW++VuNNHD5jw+HHFoq8gcWwtlrSX/1QO5sy1UZllroA03qil/AdQSH2dPmggE
yiggKrrW2LJ/jSvefluzIdfI5jx7T1+GADutJxNgI9eVrxh20v0uNtmlIZjfle/j
s57o+hdTw7z6ZbHzR326d3BeKXagukuVjU1UIxcuQn8JXRKMDRiAM3CYopU4YlJb
qJGaFKVssaOiSDb6n3PKd4PkdePnEw==
=hgTm
-----END PGP SIGNATURE-----payloadtree 29735ad286be6950686056edf6cebde0f80d473e
parent 6cb27dbfb51ad66e16f5f59359052c0b9e99916a
author Jeremy Kong <jkong@palantir.com> 1677583936 +0000
committer Jeremy Kong <jkong@palantir.com> 1677583936 +0000

args
uuj1 ^https://api.github.com/repos/palantir/atlasdb/commits/678f29b7efb9d87bbdeaa6cf096dfb216887f119html_urlShttps://github.com/palantir/atlasdb/commit/678f29b7efb9d87bbdeaa6cf096dfb216887f119comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/678f29b7efb9d87bbdeaa6cf096dfb216887f119/commentsj1 }(login
jeremyk-91idJZ j1 MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j1 'https://api.github.com/users/jeremyk-91j1 https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj1 }(j1 
jeremyk-91j1 JZ j1 MDQ6VXNlcjU5NTU1MTA=j1 3https://avatars.githubusercontent.com/u/5955510?v=4j1 h5j1 'https://api.github.com/users/jeremyk-91j1 https://github.com/jeremyk-91j1 1https://api.github.com/users/jeremyk-91/followersj1 >https://api.github.com/users/jeremyk-91/following{/other_user}j1 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j2 >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j2 5https://api.github.com/users/jeremyk-91/subscriptionsj2 ,https://api.github.com/users/jeremyk-91/orgsj2 -https://api.github.com/users/jeremyk-91/reposj	2 8https://api.github.com/users/jeremyk-91/events{/privacy}j2 7https://api.github.com/users/jeremyk-91/received_eventsj
2 Userj2 uparents]}(j1 (6cb27dbfb51ad66e16f5f59359052c0b9e99916aj1 ^https://api.github.com/repos/palantir/atlasdb/commits/6cb27dbfb51ad66e16f5f59359052c0b9e99916aj1 Shttps://github.com/palantir/atlasdb/commit/6cb27dbfb51ad66e16f5f59359052c0b9e99916auastats}(totalK	additionsK	deletionsKufiles]}(j1 (ef00533255f3bfc1df87297f5023122d81b9acf5filename\atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/TransactionConstants.javastatusmodifiedj)2 Kj*2 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/678f29b7efb9d87bbdeaa6cf096dfb216887f119/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.javaraw_urlhttps://github.com/palantir/atlasdb/raw/678f29b7efb9d87bbdeaa6cf096dfb216887f119/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.java?ref=678f29b7efb9d87bbdeaa6cf096dfb216887f119patchX  @@ -26,6 +26,7 @@
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
 
 public final class TransactionConstants {
     private TransactionConstants() {
@@ -110,6 +111,8 @@ public static long getTimestampForValue(byte[] encodedTimestamp) {
                 "Supporting Transactions Table Sweep WILL require changes to internal backup and restore workflows;"
                     + " failure to do so may only be discoverable at restore time in some implementations. This check"
                     + " MUST NOT be removed without knowledge that suitable changes have been made to these"
-                    + " workflows.");
+                    + " workflows.",
+                SafeArg.of("supportedTransactionsSchemaVersions", SUPPORTED_TRANSACTIONS_SCHEMA_VERSIONS),
+                SafeArg.of("transactionsTableSweepSchemaVersion", TTS_TRANSACTIONS_SCHEMA_VERSION));
     }
 }uau(d4f5644c27f0ebc1867ff0e6fc8c9eaf5b43696c}(sha(d4f5644c27f0ebc1867ff0e6fc8c9eaf5b43696cnode_idEC_kwDOAjP5fdoAKGQ0ZjU2NDRjMjdmMGViYzE4NjdmZjBlNmZjOGM5ZWFmNWI0MzY5NmMcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-07-26T19:27:24Zu	committer}(jF2 
svc-changelogjH2 svc-changelog@palantir.comjJ2 2023-07-26T19:27:24ZumessageAdd generated changelog entriestree}(j>2 (5b8e80019ac7613ad54428222d0e60bc9e01f854url`https://api.github.com/repos/palantir/atlasdb/git/trees/5b8e80019ac7613ad54428222d0e60bc9e01f854ujV2 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d4f5644c27f0ebc1867ff0e6fc8c9eaf5b43696c
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmTBc5wJEHYaJX37fAFQAAAm5AD+IyjjbnKyQTsM9oy2beFJ331Z
+N2F/mPiIIcwR4TF1AYA/1y9WHN6M988YkUg6nYS6aMQuOFyUIdH7TYHKs3pI4RK
=v8bi
-----END PGP SIGNATURE-----payloadX  tree 5b8e80019ac7613ad54428222d0e60bc9e01f854
parent 20d9940915c0da598c93adc792859d59d932a67a
author svc-changelog <svc-changelog@palantir.com> 1690399644 +0000
committer svc-changelog <svc-changelog@palantir.com> 1690399644 +0000

Add generated changelog entriesuujV2 ^https://api.github.com/repos/palantir/atlasdb/commits/d4f5644c27f0ebc1867ff0e6fc8c9eaf5b43696chtml_urlShttps://github.com/palantir/atlasdb/commit/d4f5644c27f0ebc1867ff0e6fc8c9eaf5b43696ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d4f5644c27f0ebc1867ff0e6fc8c9eaf5b43696c/commentsjD2 }(login
svc-changelogidJ#j@2 MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jV2 *https://api.github.com/users/svc-changelogjd2  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujL2 }(ji2 
svc-changelogjk2 J#j@2 MDQ6VXNlcjg0MDc3NjAzjm2 4https://avatars.githubusercontent.com/u/84077603?v=4jo2 h5jV2 *https://api.github.com/users/svc-changelogjd2  https://github.com/svc-changelogjr2 4https://api.github.com/users/svc-changelog/followersjt2 Ahttps://api.github.com/users/svc-changelog/following{/other_user}jv2 :https://api.github.com/users/svc-changelog/gists{/gist_id}jx2 Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jz2 8https://api.github.com/users/svc-changelog/subscriptionsj|2 /https://api.github.com/users/svc-changelog/orgsj~2 0https://api.github.com/users/svc-changelog/reposj2 ;https://api.github.com/users/svc-changelog/events{/privacy}j2 :https://api.github.com/users/svc-changelog/received_eventsj2 Userj2 uparents]}(j>2 (20d9940915c0da598c93adc792859d59d932a67ajV2 ^https://api.github.com/repos/palantir/atlasdb/commits/20d9940915c0da598c93adc792859d59d932a67ajd2 Shttps://github.com/palantir/atlasdb/commit/20d9940915c0da598c93adc792859d59d932a67auastats}(totalK	additionsK	deletionsK ufiles]}(j>2 (7a91f7592f47ecc1f882f17bdc496678ee21aac3filename$changelog/@unreleased/pr-6688.v2.ymlstatusaddedj2 Kj2 K changesKblob_url|https://github.com/palantir/atlasdb/blob/d4f5644c27f0ebc1867ff0e6fc8c9eaf5b43696c/changelog%2F%40unreleased%2Fpr-6688.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/d4f5644c27f0ebc1867ff0e6fc8c9eaf5b43696c/changelog%2F%40unreleased%2Fpr-6688.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6688.v2.yml?ref=d4f5644c27f0ebc1867ff0e6fc8c9eaf5b43696cpatch@@ -0,0 +1,6 @@
+type: fix
+fix:
+  description: add netty-handler as a direct dependency so that downstream projects
+    resolve the correct version
+  links:
+  - https://github.com/palantir/atlasdb/pull/6688uau(faa309861aca5af9da3f8e7b369002945b8f9ec1}(sha(faa309861aca5af9da3f8e7b369002945b8f9ec1node_idEC_kwDOAjP5fdoAKGZhYTMwOTg2MWFjYTVhZjlkYTNmOGU3YjM2OTAwMjk0NWI4ZjllYzEcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-06-29T14:10:16Zu	committer}(j2 
svc-changelogj2 svc-changelog@palantir.comj2 2023-06-29T14:10:16ZumessageAdd generated changelog entriestree}(j2 (2db1f4db0b93db040684eb4b31f697bb15252af8url`https://api.github.com/repos/palantir/atlasdb/git/trees/2db1f4db0b93db040684eb4b31f697bb15252af8uj2 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/faa309861aca5af9da3f8e7b369002945b8f9ec1
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSdkMgJEHYaJX37fAFQAABtKwEAl3GMgRAaLeGN2W8fbMIYLrjK
1QnRISrJ3vnTcxRrun8A/jUitiXXmtDKKlgPgJBygkms3kLSG/fg6iv8o40wKP1l
=BHQ/
-----END PGP SIGNATURE-----payloadX  tree 2db1f4db0b93db040684eb4b31f697bb15252af8
parent aeae9fe3da0d0322dda15163303af40db35add2c
author svc-changelog <svc-changelog@palantir.com> 1688047816 +0000
committer svc-changelog <svc-changelog@palantir.com> 1688047816 +0000

Add generated changelog entriesuuj2 ^https://api.github.com/repos/palantir/atlasdb/commits/faa309861aca5af9da3f8e7b369002945b8f9ec1html_urlShttps://github.com/palantir/atlasdb/commit/faa309861aca5af9da3f8e7b369002945b8f9ec1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/faa309861aca5af9da3f8e7b369002945b8f9ec1/commentsj2 }(login
svc-changelogidJ#j2 MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j2 *https://api.github.com/users/svc-changelogj2  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj2 }(j2 
svc-changelogj2 J#j2 MDQ6VXNlcjg0MDc3NjAzj2 4https://avatars.githubusercontent.com/u/84077603?v=4j2 h5j2 *https://api.github.com/users/svc-changelogj2  https://github.com/svc-changelogj2 4https://api.github.com/users/svc-changelog/followersj2 Ahttps://api.github.com/users/svc-changelog/following{/other_user}j2 :https://api.github.com/users/svc-changelog/gists{/gist_id}j2 Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j2 8https://api.github.com/users/svc-changelog/subscriptionsj2 /https://api.github.com/users/svc-changelog/orgsj2 0https://api.github.com/users/svc-changelog/reposj2 ;https://api.github.com/users/svc-changelog/events{/privacy}j2 :https://api.github.com/users/svc-changelog/received_eventsj2 Userj2 uparents]}(j2 (aeae9fe3da0d0322dda15163303af40db35add2cj2 ^https://api.github.com/repos/palantir/atlasdb/commits/aeae9fe3da0d0322dda15163303af40db35add2cj2 Shttps://github.com/palantir/atlasdb/commit/aeae9fe3da0d0322dda15163303af40db35add2cuastats}(totalK 	additionsK 	deletionsK ufiles]u(d4fed92c679a8c464e8bc4826d2d8aec77d88e9c}(sha(d4fed92c679a8c464e8bc4826d2d8aec77d88e9cnode_idEC_kwDOAjP5fdoAKGQ0ZmVkOTJjNjc5YThjNDY0ZThiYzQ4MjZkMmQ4YWVjNzdkODhlOWMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-17T09:26:34Zu	committer}(j%3 Jeremy Kongj'3 jkong@palantir.comj)3 2023-05-17T09:26:34Zumessagefiretree}(j3 (776d9e013eb876d8bb3955069779add603222204url`https://api.github.com/repos/palantir/atlasdb/git/trees/776d9e013eb876d8bb3955069779add603222204uj53 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRkncsACgkQTLdFKain
zjx5BggAqQgQb1bq3KJGeiBM/gqJo8N0nsWX6NVvatgYUFNH2mHToHxu1ZjJq+FM
cc4x/hN+S715Cv7ExjrvlGOM/cUv8AcbodoPKzhzm0fU/1fUkRjrURTjMGiYh/NH
R/X/4IvdKQgTUxZ4I7QHyPh/hUCHG3TZBB2o/ikssosW0tU6MqJ38UXUOSHxwRAH
M1/dCZCCot+ArqYORCA1ur2fuyKfA3N1Vk0EWKfQo2q0XwVLwONp7Gqh7jMkXdin
a9ufENGSHhQ+4CxJ3HoSYMH1X0cI5O6qOU+3XxftRtsEtAGvdE7B+TMbEtxCLXDr
gTzzu6SKEAzGySDNUxRA0+FJ3p7flg==
=DGfd
-----END PGP SIGNATURE-----payloadtree 776d9e013eb876d8bb3955069779add603222204
parent fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8
author Jeremy Kong <jkong@palantir.com> 1684315594 +0100
committer Jeremy Kong <jkong@palantir.com> 1684315594 +0100

fire
uuj53 ^https://api.github.com/repos/palantir/atlasdb/commits/d4fed92c679a8c464e8bc4826d2d8aec77d88e9chtml_urlShttps://github.com/palantir/atlasdb/commit/d4fed92c679a8c464e8bc4826d2d8aec77d88e9ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/commentsj#3 }(login
jeremyk-91idJZ j3 MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j53 'https://api.github.com/users/jeremyk-91jC3 https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj+3 }(jH3 
jeremyk-91jJ3 JZ j3 MDQ6VXNlcjU5NTU1MTA=jL3 3https://avatars.githubusercontent.com/u/5955510?v=4jN3 h5j53 'https://api.github.com/users/jeremyk-91jC3 https://github.com/jeremyk-91jQ3 1https://api.github.com/users/jeremyk-91/followersjS3 >https://api.github.com/users/jeremyk-91/following{/other_user}jU3 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jW3 >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jY3 5https://api.github.com/users/jeremyk-91/subscriptionsj[3 ,https://api.github.com/users/jeremyk-91/orgsj]3 -https://api.github.com/users/jeremyk-91/reposj_3 8https://api.github.com/users/jeremyk-91/events{/privacy}ja3 7https://api.github.com/users/jeremyk-91/received_eventsjc3 Userje3 uparents]}(j3 (fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8j53 ^https://api.github.com/repos/palantir/atlasdb/commits/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8jC3 Shttps://github.com/palantir/atlasdb/commit/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8uastats}(totalK	additionsK	deletionsKufiles](}(j3 (3d924292f2abb029b2f37c92a5df3c1095b0d5b6filenamecatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStore.javastatusmodifiedj3 Kj3 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.java?ref=d4fed92c679a8c464e8bc4826d2d8aec77d88e9cpatchX  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.store;
 
-import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.CellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import java.util.List;
 import java.util.Optional;
@@ -32,5 +32,5 @@ public interface TransactionStore extends ReadableTransactionStore {
      * @param actions List of transaction actions (read/write/delete) to be executed in order.
      * @return The witnessed transaction, if successfully committed.
      */
-    Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions);
+    Optional<WitnessedTransaction> readWrite(List<CellTransactionAction> actions);
 }u}(j3 (d82c290e76d943fc21dfd37cd16b7bfedc8de526j3 natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/CellTransactionAction.javaj3 addedj3 Kj3 K j3 Kj3 https://github.com/palantir/atlasdb/blob/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FCellTransactionAction.javaj3 https://github.com/palantir/atlasdb/raw/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FCellTransactionAction.javaj3 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FCellTransactionAction.java?ref=d4fed92c679a8c464e8bc4826d2d8aec77d88e9cj3 X8  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface CellTransactionAction extends TransactionAction {
+    /** Table to apply transaction to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) to apply the action to. */
+    @Value.Parameter
+    WorkloadCell cell();
+}u}(j3 (ac6a3480131a30f41b73e3dafbc3aa95553373f2j3 patlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/DeleteTransactionAction.javaj3 modifiedj3 Kj3 Kj3 Kj3 https://github.com/palantir/atlasdb/blob/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javaj3 https://github.com/palantir/atlasdb/raw/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javaj3 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.java?ref=d4fed92c679a8c464e8bc4826d2d8aec77d88e9cj3 Xu  @@ -22,7 +22,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface DeleteTransactionAction extends TransactionAction {
+public interface DeleteTransactionAction extends CellTransactionAction {
 
     default WitnessedDeleteTransactionAction witness() {
         return ImmutableWitnessedDeleteTransactionAction.of(table(), cell());u}(j3 (10f6770fb22bd9627b9c04bc878b20f6f0b9e05bj3 natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ReadTransactionAction.javaj3 modifiedj3 Kj3 Kj3 Kj3 https://github.com/palantir/atlasdb/blob/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javaj3 https://github.com/palantir/atlasdb/raw/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javaj3 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.java?ref=d4fed92c679a8c464e8bc4826d2d8aec77d88e9cj3 X  @@ -23,7 +23,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface ReadTransactionAction extends TransactionAction {
+public interface ReadTransactionAction extends CellTransactionAction {
 
     default WitnessedReadTransactionAction witness(Optional<Integer> value) {
         return ImmutableWitnessedReadTransactionAction.of(table(), cell(), value);u}(j3 (7bde8594171a2b2b1d0622961d6662211c25840fj3 vatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowRangeScanTransactionAction.javaj3 addedj3 K1j3 K j3 K1j3 https://github.com/palantir/atlasdb/blob/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowRangeScanTransactionAction.javaj3 https://github.com/palantir/atlasdb/raw/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowRangeScanTransactionAction.javaj3 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowRangeScanTransactionAction.java?ref=d4fed92c679a8c464e8bc4826d2d8aec77d88e9cj3 X  @@ -0,0 +1,49 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.google.common.collect.Range;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowRangeScanTransactionAction;
+import java.util.Map;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface RowRangeScanTransactionAction extends TransactionAction {
+    @Override
+    String table();
+
+    Integer row();
+
+    Range<Integer> range();
+
+    default WitnessedRowRangeScanTransactionAction witness(Map<Integer, Integer> read) {
+        return ImmutableWitnessedRowRangeScanTransactionAction.builder()
+                .table(table())
+                .row(row())
+                .range(range())
+                .readValues(read)
+                .build();
+    }
+
+    @Override
+    default <T> T accept(TransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+}u}(j3 (aac1d730ea00fd2ad8446f28fb4b9c486d657080j3 jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionAction.javaj3 modifiedj3 K j3 Kj3 Kj3 https://github.com/palantir/atlasdb/blob/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javaj3 https://github.com/palantir/atlasdb/raw/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javaj3 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.java?ref=d4fed92c679a8c464e8bc4826d2d8aec77d88e9cj3 X  @@ -16,18 +16,10 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.WorkloadCell;
 import org.immutables.value.Value;
 
 public interface TransactionAction {
-
-    /** Table to apply transaction to. */
-    @Value.Parameter
     String table();
 
-    /** Cell (Key, Column) to apply the action to. */
-    @Value.Parameter
-    WorkloadCell cell();
-
     <T> T accept(TransactionActionVisitor<T> visitor);
 }ux     }(j3 (b88a5aaf12e525c4fb8ae6c461d41433be349806j3 qatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionActionVisitor.javaj3 modifiedj3 Kj3 K j3 Kj3 https://github.com/palantir/atlasdb/blob/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj3 https://github.com/palantir/atlasdb/raw/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj3 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.java?ref=d4fed92c679a8c464e8bc4826d2d8aec77d88e9cj3 X  @@ -22,4 +22,6 @@ public interface TransactionActionVisitor<T> {
     T visit(WriteTransactionAction writeTransactionAction);
 
     T visit(DeleteTransactionAction deleteTransactionAction);
+
+    T visit(RowRangeScanTransactionAction rowRangeScanTransactionAction);
 }u}(j3 (f899cdeca965420b606e8007bff42a4fd23bf004j3 oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/WriteTransactionAction.javaj3 modifiedj3 Kj3 Kj3 Kj3 https://github.com/palantir/atlasdb/blob/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javaj3 https://github.com/palantir/atlasdb/raw/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javaj3 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.java?ref=d4fed92c679a8c464e8bc4826d2d8aec77d88e9cj3 @@ -22,7 +22,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WriteTransactionAction extends TransactionAction {
+public interface WriteTransactionAction extends CellTransactionAction {
 
     @Override
     @Value.Parameteru}(j3 (e6e5639f146e9e9426e66913d2fdf91df7e32915j3 atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedCellTransactionAction.javaj3 modifiedj3 Kj3 K j3 Kj3 https://github.com/palantir/atlasdb/blob/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedCellTransactionAction.javaj3 https://github.com/palantir/atlasdb/raw/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedCellTransactionAction.javaj3 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedCellTransactionAction.java?ref=d4fed92c679a8c464e8bc4826d2d8aec77d88e9cj3 XY  @@ -20,6 +20,11 @@
 import org.immutables.value.Value;
 
 public interface WitnessedCellTransactionAction extends WitnessedTransactionAction {
+    /** Table action was applied to. */
+    @Value.Parameter
+    @Override
+    String table();
+
     /** Cell (Key, Column) the action applied to. */
     @Value.Parameter
     WorkloadCell cell();u}(j3 (bae996b1870906351efb0870d19a14485c1e64d9j3 atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowRangeScanTransactionAction.javaj3 addedj3 K&j3 K j3 K&j3 https://github.com/palantir/atlasdb/blob/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowRangeScanTransactionAction.javaj3 https://github.com/palantir/atlasdb/raw/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowRangeScanTransactionAction.javaj3 X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowRangeScanTransactionAction.java?ref=d4fed92c679a8c464e8bc4826d2d8aec77d88e9cj3 X  @@ -0,0 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.google.common.collect.Range;
+import java.util.Map;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WitnessedRowRangeScanTransactionAction extends WitnessedTransactionAction {
+    @Override
+    String table();
+
+    Integer row();
+
+    Range<Integer> range();
+
+    Map<Integer, Integer> readValues();
+
+    @Override
+    default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+}u}(j3 (fec06af3d383854b6442b3fb9d5def2dc52126cej3 }atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionAction.javaj3 modifiedj3 K j3 Kj3 Kj3 https://github.com/palantir/atlasdb/blob/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javaj3 https://github.com/palantir/atlasdb/raw/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javaj3 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.java?ref=d4fed92c679a8c464e8bc4826d2d8aec77d88e9cj3 @@ -20,7 +20,6 @@
 
 public interface WitnessedTransactionAction {
     /** Table action was applied to. */
-    @Value.Parameter
     String table();
 
     <T> T accept(WitnessedTransactionActionVisitor<T> visitor);u}(j3 (d4592703924c5db380d8b495202e9341e4fc7406j3 atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionActionVisitor.javaj3 modifiedj3 Kj3 K j3 Kj3 https://github.com/palantir/atlasdb/blob/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj3 https://github.com/palantir/atlasdb/raw/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj3 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.java?ref=d4fed92c679a8c464e8bc4826d2d8aec77d88e9cj3 X2  @@ -22,4 +22,6 @@ public interface WitnessedTransactionActionVisitor<T> {
     T visit(WitnessedWriteTransactionAction writeTransactionAction);
 
     T visit(WitnessedDeleteTransactionAction deleteTransactionAction);
+
+    T visit(WitnessedRowRangeScanTransactionAction rowRangeScanTransactionAction);
 }u}(j3 (315804e102cf757516f2731ad0064ebacf778e30j3 fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj3 modifiedj3 Kj3 Kj3 Kj3 https://github.com/palantir/atlasdb/blob/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj3 https://github.com/palantir/atlasdb/raw/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj3 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=d4fed92c679a8c464e8bc4826d2d8aec77d88e9cj3 X>  @@ -27,7 +27,7 @@
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.CellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
@@ -75,7 +75,7 @@ public boolean isCommitted(long startTimestamp) {
     }
 
     @Override
-    public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
+    public Optional<WitnessedTransaction> readWrite(List<CellTransactionAction> actions) {
         return readWrite(txn -> {
             AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
             actions.forEach(action -> action.accept(visitor));u}(j3 (6c927c63b2716c84ae82881c29b6b8da882b014ej3 patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj3 modifiedj3 Kj3 K j3 Kj3 https://github.com/palantir/atlasdb/blob/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj3 https://github.com/palantir/atlasdb/raw/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj3 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=d4fed92c679a8c464e8bc4826d2d8aec77d88e9cj3 X  @@ -20,6 +20,7 @@
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowRangeScanTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.HashMap;
@@ -55,6 +56,11 @@ public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         return null;
     }
 
+    @Override
+    public Void visit(WitnessedRowRangeScanTransactionAction unused) {
+        return null;
+    }
+
     public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
         return values.getSnapshot();
     }u}(j3 (2d934b7dda3fbfa4e6e3915ac21ba2765cb294b7j3 katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javaj3 modifiedj3 Kj3 Kj3 Kj3 https://github.com/palantir/atlasdb/blob/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj3 https://github.com/palantir/atlasdb/raw/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj3 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=d4fed92c679a8c464e8bc4826d2d8aec77d88e9cj3 X  @@ -18,10 +18,11 @@
 
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowRangeScanTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 
-public enum WitnessToActionVisitor implements WitnessedTransactionActionVisitor<TransactionAction> {
+public enum WitnessToActionVisitor implements WitnessedTransactionActionVisitor<CellTransactionAction> {
     INSTANCE;
 
     @Override
@@ -39,4 +40,9 @@ public WriteTransactionAction visit(WitnessedWriteTransactionAction writeTransac
     public DeleteTransactionAction visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         return ImmutableDeleteTransactionAction.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
     }
+
+    @Override
+    public CellTransactionAction visit(WitnessedRowRangeScanTransactionAction rowRangeScanTransactionAction) {
+        return null;
+    }
 }u}(j3 (520b52fdac371001049e91e7dee1b831c393b6dcj3 latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javaj3 modifiedj3 Kj3 Kj3 Kj3 https://github.com/palantir/atlasdb/blob/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj3 https://github.com/palantir/atlasdb/raw/d4fed92c679a8c464e8bc4826d2d8aec77d88e9c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj3 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=d4fed92c679a8c464e8bc4826d2d8aec77d88e9cj3 Xs
  @@ -23,9 +23,9 @@
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.CellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import java.util.List;
@@ -68,15 +68,15 @@ private static Optional<WitnessedTransaction> run(
             TransactionStore store, int taskIndex, SingleRowTwoCellsWorkflowConfiguration workflowConfiguration) {
         workflowConfiguration.transactionRateLimiter().acquire();
 
-        List<TransactionAction> transactionActions = createTransactionActions(
+        List<CellTransactionAction> cellTransactionActions = createTransactionActions(
                 taskIndex, workflowConfiguration.tableConfiguration().tableName());
-        return store.readWrite(transactionActions);
+        return store.readWrite(cellTransactionActions);
     }
 
     @VisibleForTesting
-    static List<TransactionAction> createTransactionActions(int taskIndex, String tableName) {
-        List<TransactionAction> cellReads = createCellReadActions(tableName);
-        List<TransactionAction> cellUpdates = createCellUpdateActions(taskIndex, tableName);
+    static List<CellTransactionAction> createTransactionActions(int taskIndex, String tableName) {
+        List<CellTransactionAction> cellReads = createCellReadActions(tableName);
+        List<CellTransactionAction> cellUpdates = createCellUpdateActions(taskIndex, tableName);
         return Streams.concat(cellReads.stream(), cellUpdates.stream(), cellReads.stream())
                 .collect(Collectors.toList());
     }
@@ -86,17 +86,17 @@ static boolean shouldWriteToFirstCell(int taskIndex) {
         return taskIndex % 2 == 0;
     }
 
-    private static List<TransactionAction> createCellUpdateActions(int taskIndex, String tableName) {
+    private static List<CellTransactionAction> createCellUpdateActions(int taskIndex, String tableName) {
         return shouldWriteToFirstCell(taskIndex)
                 ? ImmutableList.of(
-                        WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
-                        DeleteTransactionAction.of(tableName, SECOND_CELL))
+                WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
+                DeleteTransactionAction.of(tableName, SECOND_CELL))
                 : ImmutableList.of(
-                        DeleteTransactionAction.of(tableName, FIRST_CELL),
-                        WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
+                DeleteTransactionAction.of(tableName, FIRST_CELL),
+                WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
     }
 
-    private static List<TransactionAction> createCellReadActions(String tableName) {
+    private static List<CellTransactionAction> createCellReadActions(String tableName) {
         return ImmutableList.of(
                 ReadTransactionAction.of(tableName, FIRST_CELL), ReadTransactionAction.of(tableName, SECOND_CELL));
     }ueu(00b74facedb23468f14b7cc419950a174c9bfc01}(sha(00b74facedb23468f14b7cc419950a174c9bfc01node_idEC_kwDOAjP5fdoAKDAwYjc0ZmFjZWRiMjM0NjhmMTRiN2NjNDE5OTUwYTE3NGM5YmZjMDEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-02-27T13:00:11Zu	committer}(j4 
Sam Kramerj4 skramer@palantir.comj4 2023-02-27T13:00:11Zumessage!add another compile time constanttree}(j4 (51df9d113b5acc5c5003b2b74bf662f8a5245344url`https://api.github.com/repos/palantir/atlasdb/git/trees/51df9d113b5acc5c5003b2b74bf662f8a5245344uj$4 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/00b74facedb23468f14b7cc419950a174c9bfc01
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmP8qVsACgkQmPPOpKR4
XS3nEggAg24aSNwHgkRtuz5S4iuocDpOnzKovrsHfxBgz6PIFvuZMrV8Fr2X3f14
tuxFpCzRcpDAUyGBJbp6eBqTzK6k/tn9DJka++PGF2Ia2lXX5H/YaEIGUr32xQ/G
xm1V6nj4rtpDvkvhU10b2ApphSRvvUa/wVki7+zLlozQllMdiu0SSAxfjxKCS0hU
/yhB1JGxWVBsI0fwaeHLwSoKTSn+xTUOMagePL0BAlRvGvJc/purZmpMGgHxTUOG
0sNqff3YW6Nld9TWV6tlBSn3tbfGjjc/oI0Ei9wskibybNYJjETWIfTi0S2NCXtK
ujbXFTJqmYAnsvzElNvTL3mo7nLHRw==
=8QMh
-----END PGP SIGNATURE-----payloadtree 51df9d113b5acc5c5003b2b74bf662f8a5245344
parent 419ce921509634e1762d33764836b48195afabfd
author Sam Kramer <skramer@palantir.com> 1677502811 +0000
committer Sam Kramer <skramer@palantir.com> 1677502811 +0000

add another compile time constant
uuj$4 ^https://api.github.com/repos/palantir/atlasdb/commits/00b74facedb23468f14b7cc419950a174c9bfc01html_urlShttps://github.com/palantir/atlasdb/commit/00b74facedb23468f14b7cc419950a174c9bfc01comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/00b74facedb23468f14b7cc419950a174c9bfc01/commentsj4 }(login
Sam-KrameridJ^2_ j4 MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j$4 'https://api.github.com/users/Sam-Kramerj24 https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj4 }(j74 
Sam-Kramerj94 J^2_ j4 MDQ6VXNlcjYyMzg4MTQ=j;4 3https://avatars.githubusercontent.com/u/6238814?v=4j=4 h5j$4 'https://api.github.com/users/Sam-Kramerj24 https://github.com/Sam-Kramerj@4 1https://api.github.com/users/Sam-Kramer/followersjB4 >https://api.github.com/users/Sam-Kramer/following{/other_user}jD4 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jF4 >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jH4 5https://api.github.com/users/Sam-Kramer/subscriptionsjJ4 ,https://api.github.com/users/Sam-Kramer/orgsjL4 -https://api.github.com/users/Sam-Kramer/reposjN4 8https://api.github.com/users/Sam-Kramer/events{/privacy}jP4 7https://api.github.com/users/Sam-Kramer/received_eventsjR4 UserjT4 uparents]}(j4 (419ce921509634e1762d33764836b48195afabfdj$4 ^https://api.github.com/repos/palantir/atlasdb/commits/419ce921509634e1762d33764836b48195afabfdj24 Shttps://github.com/palantir/atlasdb/commit/419ce921509634e1762d33764836b48195afabfduastats}(totalK	additionsK	deletionsKufiles]}(j4 (384b158989e47ca33e620d415cecd579eb3fd9e8filenameQatlasdb-commons/src/main/java/com/palantir/exception/NotInitializedException.javastatusmodifiedjn4 Kjo4 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/00b74facedb23468f14b7cc419950a174c9bfc01/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/00b74facedb23468f14b7cc419950a174c9bfc01/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.java?ref=00b74facedb23468f14b7cc419950a174c9bfc01patchX  @@ -38,7 +38,7 @@ public NotInitializedException(@CompileTimeConstant String objectNotInitialized)
         this.objectNotInitialized = objectNotInitialized;
     }
 
-    public NotInitializedException(String objectNotInitialized, Throwable throwable) {
+    public NotInitializedException(@CompileTimeConstant String objectNotInitialized, Throwable throwable) {
         super(EXCEPTION_MESSAGE, throwable);
         this.objectNotInitialized = objectNotInitialized;
     }uau(12e2f970c7f155063a772b120ac1cc9368dab73b}(sha(12e2f970c7f155063a772b120ac1cc9368dab73bnode_idEC_kwDOAjP5fdoAKDEyZTJmOTcwYzdmMTU1MDYzYTc3MmIxMjBhYzFjYzkzNjhkYWI3M2Icommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-07T14:10:14Zu	committer}(j4 Lucas Meirelesj4 meireles31@msn.comj4 2023-06-07T14:10:50Zumessage/keep name consistent across config and workflowtree}(j4 (b7d2b795f7cfb25b114b1c0534c226dff0388295url`https://api.github.com/repos/palantir/atlasdb/git/trees/b7d2b795f7cfb25b114b1c0534c226dff0388295uj4 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/12e2f970c7f155063a772b120ac1cc9368dab73b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSAj+oACgkQJd22kJ7J
GiwLhAgA6IJiOKjncVlrEehDGt/SvBMsObPbWRQiVMZsOVCiz4uFUUyoFTpe0xOX
iCQP3Vp3D1Rm04SJg6oCoZJZOZpXbHjSfa3xEsIcqN4Mp+1OKL5LBXkdPbEu/wix
+y4wjviWzic8RZhWqeymHhUbxw46tc/fJgR0gtmooWe1w9xuJs3jQn3aDkT7QUhC
mFtTrmnZWh0J2wAdCOPBz/0yHXU+Ws/Wf35MXznIgV8To1fnHrODCRtTAkkWBlVI
+PmnLRJRLyQHbPH0umfOTKqTVtssfuHgoedxQ75plrZ+Ao1miRxG4iJr7/7RErGA
vb4I5pRrbgoDbAANToLKaaHocjTNHQ==
=yCtG
-----END PGP SIGNATURE-----payloadX
  tree b7d2b795f7cfb25b114b1c0534c226dff0388295
parent 343a6d6f324e5cbcabf80e131349695b5505b0a6
author Lucas Meireles <meireles31@msn.com> 1686147014 +0100
committer Lucas Meireles <meireles31@msn.com> 1686147050 +0100

keep name consistent across config and workflow
uuj4 ^https://api.github.com/repos/palantir/atlasdb/commits/12e2f970c7f155063a772b120ac1cc9368dab73bhtml_urlShttps://github.com/palantir/atlasdb/commit/12e2f970c7f155063a772b120ac1cc9368dab73bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/12e2f970c7f155063a772b120ac1cc9368dab73b/commentsj4 }(loginLucasIMEidJg j4 MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j4 %https://api.github.com/users/LucasIMEj4 https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj4 }(j4 LucasIMEj4 Jg j4 MDQ6VXNlcjY3ODczMTE=j4 3https://avatars.githubusercontent.com/u/6787311?v=4j4 h5j4 %https://api.github.com/users/LucasIMEj4 https://github.com/LucasIMEj4 /https://api.github.com/users/LucasIME/followersj4 <https://api.github.com/users/LucasIME/following{/other_user}j4 5https://api.github.com/users/LucasIME/gists{/gist_id}j4 <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j4 3https://api.github.com/users/LucasIME/subscriptionsj4 *https://api.github.com/users/LucasIME/orgsj4 +https://api.github.com/users/LucasIME/reposj4 6https://api.github.com/users/LucasIME/events{/privacy}j4 5https://api.github.com/users/LucasIME/received_eventsj4 Userj4 uparents]}(j4 (343a6d6f324e5cbcabf80e131349695b5505b0a6j4 ^https://api.github.com/repos/palantir/atlasdb/commits/343a6d6f324e5cbcabf80e131349695b5505b0a6j4 Shttps://github.com/palantir/atlasdb/commit/343a6d6f324e5cbcabf80e131349695b5505b0a6uastats}(totalK	additionsK	deletionsKufiles](}(j4 (37e59da7fde3c443b1071e9b0c484c2da4e9f50efilenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj4 Kj4 KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/12e2f970c7f155063a772b120ac1cc9368dab73b/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/12e2f970c7f155063a772b120ac1cc9368dab73b/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=12e2f970c7f155063a772b120ac1cc9368dab73bpatchX
  @@ -37,8 +37,8 @@
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflows;
-import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadsNoTouchWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
@@ -144,7 +144,7 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().transientRowsConfig();
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
-        SingleBusyCellReadsNoTouchWorkflowConfiguration singleBusyCellReadNoTouchWorkflowConfiguration =
+        SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadNoTouchWorkflowConfiguration =
                 configuration.install().singleBusyCellReadsNoTouchConfig();
         BankBalanceWorkflowConfiguration bankBalanceConfig =
                 configuration.install().bankBalanceConfig();
@@ -254,15 +254,15 @@ private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
 
     private WorkflowAndInvariants<Workflow> createSingleBusyCellReadNoTouchWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
-            SingleBusyCellReadsNoTouchWorkflowConfiguration workflowConfig,
+            SingleBusyCellReadNoTouchWorkflowConfiguration workflowConfig,
             LifecycleEnvironment lifecycle) {
         ExecutorService readExecutor = lifecycle
-                .executorService(SingleBusyCellReadsNoTouchWorkflowConfiguration.class.getSimpleName() + "-read")
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-read")
                 .minThreads(workflowConfig.maxThreadCount() / 2)
                 .maxThreads(workflowConfig.maxThreadCount() / 2)
                 .build();
         ExecutorService writeExecutor = lifecycle
-                .executorService(SingleBusyCellReadsNoTouchWorkflowConfiguration.class.getSimpleName() + "-write")
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-write")
                 .minThreads(workflowConfig.maxThreadCount() / 2)
                 .maxThreads(workflowConfig.maxThreadCount() / 2)
                 .build();u}(j4 (388054e20c18c9c8d612db0e6d9ac1018b7f9b14j4 atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj4 modifiedj4 Kj4 Kj4 Kj4 https://github.com/palantir/atlasdb/blob/12e2f970c7f155063a772b120ac1cc9368dab73b/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj4 https://github.com/palantir/atlasdb/raw/12e2f970c7f155063a772b120ac1cc9368dab73b/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj4 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=12e2f970c7f155063a772b120ac1cc9368dab73bj4 X  @@ -20,7 +20,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
-import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadsNoTouchWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
@@ -46,7 +46,7 @@ public interface WorkloadServerInstallConfiguration {
 
     RandomWorkflowConfiguration randomConfig();
 
-    SingleBusyCellReadsNoTouchWorkflowConfiguration singleBusyCellReadsNoTouchConfig();
+    SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadsNoTouchConfig();
 
     boolean exitAfterRunning();
 }u}(j4 (cfa7bb7b766851d22237ea49091b9cce6c50c789j4 atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowConfiguration.javaj4 renamedj4 Kj4 Kj4 Kj4 https://github.com/palantir/atlasdb/blob/12e2f970c7f155063a772b120ac1cc9368dab73b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javaj4 https://github.com/palantir/atlasdb/raw/12e2f970c7f155063a772b120ac1cc9368dab73b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javaj4 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.java?ref=12e2f970c7f155063a772b120ac1cc9368dab73bj4 XS  @@ -22,10 +22,10 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-@JsonSerialize(as = ImmutableSingleBusyCellReadsNoTouchWorkflowConfiguration.class)
-@JsonDeserialize(as = ImmutableSingleBusyCellReadsNoTouchWorkflowConfiguration.class)
-@JsonTypeName(SingleBusyCellReadsNoTouchWorkflowConfiguration.TYPE)
-public interface SingleBusyCellReadsNoTouchWorkflowConfiguration extends WorkflowConfiguration {
+@JsonSerialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellReadNoTouchWorkflowConfiguration.TYPE)
+public interface SingleBusyCellReadNoTouchWorkflowConfiguration extends WorkflowConfiguration {
     String TYPE = "single-busy-cell-reads-no-touch";
 
     TableConfiguration tableConfiguration();previous_filenameatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadsNoTouchWorkflowConfiguration.javau}(j4 (6f4bf908a2a29516a67a081869747600fd5e2c6dj4 tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflows.javaj4 modifiedj4 Kj4 Kj4 Kj4 https://github.com/palantir/atlasdb/blob/12e2f970c7f155063a772b120ac1cc9368dab73b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaj4 https://github.com/palantir/atlasdb/raw/12e2f970c7f155063a772b120ac1cc9368dab73b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaj4 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.java?ref=12e2f970c7f155063a772b120ac1cc9368dab73bj4 X  @@ -51,7 +51,7 @@ private SingleBusyCellReadNoTouchWorkflows() {
 
     public static Workflow create(
             InteractiveTransactionStore store,
-            SingleBusyCellReadsNoTouchWorkflowConfiguration configuration,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
             ListeningExecutorService readExecutor,
             ListeningExecutorService writeExecutor) {
         return () -> {
@@ -78,7 +78,7 @@ public static Workflow create(
 
     private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReads(
             InteractiveTransactionStore store,
-            SingleBusyCellReadsNoTouchWorkflowConfiguration configuration,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
             ListeningExecutorService readExecutor) {
         return IntStream.range(0, configuration.iterationCount() / 2)
                 .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(
@@ -88,7 +88,7 @@ private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleRe
 
     private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
             InteractiveTransactionStore store,
-            SingleBusyCellReadsNoTouchWorkflowConfiguration configuration,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
             ListeningExecutorService writeExecutor) {
         return IntStream.range(0, configuration.iterationCount() / 4)
                 .boxed()ueu(499a54762e5ec059975d08031d4be0fa010137e3}(sha(499a54762e5ec059975d08031d4be0fa010137e3node_idEC_kwDOAjP5fdoAKDQ5OWE1NDc2MmU1ZWMwNTk5NzVkMDgwMzFkNGJlMGZhMDEwMTM3ZTMcommit}(author}(nameTom Petraccaemail"tpetracca@users.noreply.github.comdate2023-07-21T19:01:10Zu	committer}(j5 GitHubj5 noreply@github.comj 5 2023-07-21T19:01:10Zumessagedunwind dummy leaderconfig being passed around (#6679)

unwind dummy leaderconfig being passed aroundtree}(j5 (a78b62fe4c0802fc758e45265883401d7269eb16url`https://api.github.com/repos/palantir/atlasdb/git/trees/a78b62fe4c0802fc758e45265883401d7269eb16uj,5 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/499a54762e5ec059975d08031d4be0fa010137e3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkutX2CRBK7hj4Ov3rIwAANX4IAI5L389wBjEFmFLn/7azszNr
Sss7KqFYTs5moSVIjqFRgXl2J6KNH6x64w47cttD2Jf6K94a+JPv12PK31hzg7fv
wIw+1Zu46XPXkGN3/8zTqCA2TiQUSnN9L9khLEhOLuQsLWZOP0HkpjHKjhF5mqtH
dHW1OCjiKKo0c4YZjSocR9YIVzba+wIP5n0U0l9LptngL1hqJdaPQBuG1L7UVltY
F1YCTRTHMZDMfyVxYDmLCfFSIcu7QQVy5CPgJtQ0HmmcbCLcUrTwUP9YhpYpUJ1J
YZjEJZYzJRxT02rC+4F6uSevYjbfdo9Jb+0pQNrFKd2/KDkWtbGUM0NPi31cHgw=
=gItl
-----END PGP SIGNATURE-----
payloadXE  tree a78b62fe4c0802fc758e45265883401d7269eb16
parent 5a4ca0aaef824c9a392c132670d99c2d33677931
author Tom Petracca <tpetracca@users.noreply.github.com> 1689966070 -0400
committer GitHub <noreply@github.com> 1689966070 +0000

unwind dummy leaderconfig being passed around (#6679)

unwind dummy leaderconfig being passed around
uuj,5 ^https://api.github.com/repos/palantir/atlasdb/commits/499a54762e5ec059975d08031d4be0fa010137e3html_urlShttps://github.com/palantir/atlasdb/commit/499a54762e5ec059975d08031d4be0fa010137e3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/499a54762e5ec059975d08031d4be0fa010137e3/commentsj5 }(login	tpetraccaidJ& j5 MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5j,5 &https://api.github.com/users/tpetraccaj:5 https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminuj"5 }(j?5 web-flowjA5 J/j5 MDQ6VXNlcjE5ODY0NDQ3jC5 4https://avatars.githubusercontent.com/u/19864447?v=4jE5 h5j,5 %https://api.github.com/users/web-flowj:5 https://github.com/web-flowjH5 /https://api.github.com/users/web-flow/followersjJ5 <https://api.github.com/users/web-flow/following{/other_user}jL5 5https://api.github.com/users/web-flow/gists{/gist_id}jN5 <https://api.github.com/users/web-flow/starred{/owner}{/repo}jP5 3https://api.github.com/users/web-flow/subscriptionsjR5 *https://api.github.com/users/web-flow/orgsjT5 +https://api.github.com/users/web-flow/reposjV5 6https://api.github.com/users/web-flow/events{/privacy}jX5 5https://api.github.com/users/web-flow/received_eventsjZ5 Userj\5 uparents]}(j5 (5a4ca0aaef824c9a392c132670d99c2d33677931j,5 ^https://api.github.com/repos/palantir/atlasdb/commits/5a4ca0aaef824c9a392c132670d99c2d33677931j:5 Shttps://github.com/palantir/atlasdb/commit/5a4ca0aaef824c9a392c132670d99c2d33677931uastats}(totalK	additionsK.	deletionsKzufiles](}(j5 (854555223c62aceef604d50b4a81b95af84187bcfilename.palantir/revapi.ymlstatusmodifiedjv5 Kjw5 K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=499a54762e5ec059975d08031d4be0fa010137e3patchX  @@ -152,3 +152,34 @@ acceptedBreaks:
     - code: "java.method.removed"
       old: "method com.codahale.metrics.Counter com.palantir.atlasdb.keyvalue.cassandra.ResultsExtractor<T>::getNotLatestVisibleValueCellFilterCounter(java.lang.Class<?>)"
       justification: "Reuse notLatestVisibleValueCellFilterCounter"
+  "0.900.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.method.numberOfParametersChanged"
+      old: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.spi.AtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<com.palantir.atlasdb.config.LeaderConfig>, java.util.Optional<java.lang.String>,\
+        \ java.util.function.LongSupplier, boolean)"
+      new: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.spi.AtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<java.lang.String>, java.util.function.LongSupplier, boolean)"
+      justification: "all usage or implementations of the two broken methods are entirely\
+        \ at compile time of the consumer or within this repo itself"
+    - code: "java.method.numberOfParametersChanged"
+      old: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.timestamp.DbTimeLockFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ com.palantir.atlasdb.config.LeaderConfig, boolean)"
+      new: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.timestamp.DbTimeLockFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ boolean)"
+      justification: "all usage or implementations of the two broken methods are entirely\
+        \ at compile time of the consumer or within this repo itself"
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.numberOfParametersChanged"
+      old: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.cassandra.CassandraAtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<com.palantir.atlasdb.config.LeaderConfig>, java.util.Optional<java.lang.String>,\
+        \ java.util.function.LongSupplier, boolean)"
+      new: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.cassandra.CassandraAtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<java.lang.String>, java.util.function.LongSupplier, boolean)"
+      justification: "will only be a compile break at worst for users and consumers"u}(j5 (5d19f29132dab0ef70f8e200712eb2df5ec1e0bbj|5 Fatlasdb-api/src/main/java/com/palantir/atlasdb/spi/AtlasDbFactory.javaj~5 modifiedjv5 K jw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fspi%2FAtlasDbFactory.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fspi%2FAtlasDbFactory.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fspi%2FAtlasDbFactory.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 X  @@ -15,7 +15,6 @@
  */
 package com.palantir.atlasdb.spi;
 
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.util.MetricsManager;
@@ -44,7 +43,6 @@ public interface AtlasDbFactory {
      *
      * @param config Configuration file.
      * @param runtimeConfig Runtime configuration file.
-     * @param leaderConfig If the implementation supports it, the optional leader configuration.
      * @param namespace If the implementation supports it, this is the namespace to use when the namespace in config is
      * absent. If both are present, they must match.
      * @param freshTimestampSource If present, a source of fresh timestamps, which may be relevant for some KVS
@@ -57,7 +55,6 @@ KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> namespace,
             LongSupplier freshTimestampSource,
             boolean initializeAsync);u}(j5 (3cae3192d54aa786e1fb095808e1aa9205897b46j|5 Oatlasdb-api/src/main/java/com/palantir/atlasdb/timestamp/DbTimeLockFactory.javaj~5 modifiedjv5 K jw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimestamp%2FDbTimeLockFactory.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimestamp%2FDbTimeLockFactory.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimestamp%2FDbTimeLockFactory.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 X  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.timestamp;
 
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeriesProvider;
@@ -40,7 +39,6 @@ KeyValueService createRawKeyValueService(
             MetricsManager metricManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean initializeAsync);
 
     ManagedTimestampService createManagedTimestampService(u}(j5 (761bd91dae92d2e174e087990b60adf2c381cba3j|5 [atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/CassandraAtlasDbFactory.javaj~5 modifiedjv5 K jw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraAtlasDbFactory.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraAtlasDbFactory.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraAtlasDbFactory.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 X  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueService;
@@ -48,7 +47,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> unused,
             Optional<String> namespace,
             LongSupplier freshTimestampSource,
             boolean initializeAsync) {u}(j5 (013b7c530f64d79bbe88bf4896edfaea7bbce3c2j|5 ^atlasdb-config/src/main/java/com/palantir/atlasdb/factory/ServiceDiscoveringAtlasSupplier.javaj~5 modifiedjv5 Kjw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplier.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplier.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplier.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 X  @@ -17,7 +17,6 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.spi.AtlasDbFactory;
@@ -52,7 +51,6 @@ public class ServiceDiscoveringAtlasSupplier {
 
     private static String timestampServiceCreationInfo = null;
 
-    private final Optional<LeaderConfig> leaderConfig;
     private final Supplier<KeyValueService> keyValueService;
     private final Supplier<ManagedTimestampService> timestampService;
     private final Supplier<TimestampStoreInvalidator> timestampStoreInvalidator;
@@ -63,18 +61,16 @@ public ServiceDiscoveringAtlasSupplier(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> namespace,
             Optional<TableReference> tableReferenceOverride,
             boolean initializeAsync,
             boolean collectThreadDumpOnInit,
             LongSupplier timestampSupplier) {
-        this.leaderConfig = leaderConfig;
         this.collectThreadDumps = collectThreadDumpOnInit;
 
         AtlasDbFactory atlasFactory = AtlasDbServiceDiscovery.createAtlasFactoryOfCorrectType(config);
         keyValueService = Suppliers.memoize(() -> atlasFactory.createRawKeyValueService(
-                metricsManager, config, runtimeConfig, leaderConfig, namespace, timestampSupplier, initializeAsync));
+                metricsManager, config, runtimeConfig, namespace, timestampSupplier, initializeAsync));
         timestampService = () -> atlasFactory.createManagedTimestampService(
                 getKeyValueService(), tableReferenceOverride, initializeAsync);
         timestampStoreInvalidator =
@@ -154,23 +150,11 @@ private static String saveThreadDumpsToFile(File file) throws IOException {
     }
 
     private void reportMultipleTimestampFetch(String path) {
-        if (!leaderConfig.isPresent()) {
-            log.warn(
-                    "[timestamp-service-creation] Timestamp service fetched for a second time, and there is no leader"
-                        + " config. This means that you may soon encounter the MultipleRunningTimestampServices error."
-                        + " Thread dumps from both fetches of the timestamp service have been outputted to {}. If you"
-                        + " encounter a MultipleRunningTimestampServices error, please send this file to support.",
-                    UnsafeArg.of("path", path));
-        } else {
-            log.warn(
-                    "[timestamp-service-creation] Timestamp service fetched for a second time. This is only OK if "
-                            + "you are running in an HA configuration and have just had a leadership election. "
-                            + "You do have a leader config, but we're outputting thread dumps from both fetches of the "
-                            + "timestamp service, in case this second service was created in error. "
-                            + "Thread dumps from both fetches of the timestamp service have been outputted to {}. "
-                            + "If you encounter a MultipleRunningTimestampServices error, please send this file to "
-                            + "support.",
-                    UnsafeArg.of("path", path));
-        }
+        log.warn(
+                "[timestamp-service-creation] Timestamp service fetched for a second time. This means that you may"
+                    + " soon encounter the MultipleRunningTimestampServices error. Thread dumps from both fetches of"
+                    + " the timestamp service have been outputted to {}. If you encounter a"
+                    + " MultipleRunningTimestampServices error, please send this file to support.",
+                UnsafeArg.of("path", path));
     }
 }u}(j5 (398e1b5ac85cb92e69b981e591ecefa55b7256a6j|5 Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javaj~5 modifiedjv5 K jw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 X  @@ -366,7 +366,6 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                 metricsManager,
                 installConfig,
                 runtime.map(AtlasDbRuntimeConfig::keyValueService),
-                config().leader(),
                 config().namespace(),
                 Optional.empty(),
                 config().initializeAsync(),u}(j5 (dad98d7c2690becaffda75d8210ca450a905cadaj|5 Tatlasdb-config/src/main/java/com/palantir/atlasdb/memory/InMemoryAtlasDbFactory.javaj~5 modifiedjv5 K jw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactory.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactory.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactory.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 X^  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.cleaner.api.OnCleanupTask;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.impl.InMemoryKeyValueService;
@@ -57,7 +56,6 @@ public String getType() {
      *
      * @param config Configuration file.
      * @param runtimeConfig unused.
-     * @param leaderConfig unused.
      * @param unused unused.
      * @param unusedLongSupplier unused.
      * @param initializeAsync unused. Async initialization has not been implemented and is not propagated.
@@ -68,7 +66,6 @@ public InMemoryKeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> unused,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(j5 (9d94736c40bc3a7b7c6c4faa07acaa3b2fbfa304j|5 Watlasdb-config/src/main/java/com/palantir/atlasdb/memory/InMemoryDbTimeLockFactory.javaj~5 modifiedjv5 K jw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryDbTimeLockFactory.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryDbTimeLockFactory.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryDbTimeLockFactory.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 X  @@ -18,7 +18,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
@@ -49,7 +48,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean _initializeAsync) {
         return new InMemoryKeyValueService(true);
     }u}(j5 (1e67bc43b22caa75f6140e38e93e532137da9f8cj|5 aatlasdb-config/src/test/java/com/palantir/atlasdb/factory/AutoServiceAnnotatedAtlasDbFactory.javaj~5 modifiedjv5 K jw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAutoServiceAnnotatedAtlasDbFactory.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAutoServiceAnnotatedAtlasDbFactory.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAutoServiceAnnotatedAtlasDbFactory.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 X  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.google.common.collect.Lists;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.spi.AtlasDbFactory;
@@ -62,7 +61,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> unused,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(j5 (a49dbe0806cf2c455793e9c38b3290d2549a32a2j|5 batlasdb-config/src/test/java/com/palantir/atlasdb/factory/ServiceDiscoveringAtlasSupplierTest.javaj~5 modifiedjv5 K jw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplierTest.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplierTest.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplierTest.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 X  @@ -20,7 +20,6 @@
 import static org.mockito.Mockito.mock;
 
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.spi.AtlasDbFactory;
 import com.palantir.atlasdb.spi.KeyValueServiceConfig;
 import com.palantir.atlasdb.spi.KeyValueServiceConfigHelper;
@@ -36,7 +35,6 @@ public class ServiceDiscoveringAtlasSupplierTest {
     private final KeyValueServiceConfigHelper kvsConfig = () -> AutoServiceAnnotatedAtlasDbFactory.TYPE;
     private final KeyValueServiceConfigHelper invalidKvsConfig = () -> "should not be found kvs";
     private final AtlasDbFactory delegate = new AutoServiceAnnotatedAtlasDbFactory();
-    private final Optional<LeaderConfig> leaderConfig = Optional.of(mock(LeaderConfig.class));
     private final MetricsManager metrics = MetricsManagers.createForTests();
 
     @Test
@@ -49,7 +47,6 @@ public void delegateToFactoriesAnnotatedWithAutoService() {
                         metrics,
                         kvsConfig,
                         Refreshable.only(Optional.empty()),
-                        leaderConfig,
                         Optional.empty(),
                         AtlasDbFactory.THROWING_FRESH_TIMESTAMP_SOURCE,
                         AtlasDbFactory.DEFAULT_INITIALIZE_ASYNC));
@@ -94,7 +91,6 @@ private ServiceDiscoveringAtlasSupplier createAtlasSupplier(KeyValueServiceConfi
                 metrics,
                 providedKvsConfig,
                 Refreshable.only(Optional.empty()),
-                leaderConfig,
                 Optional.empty(),
                 Optional.empty(),
                 AtlasDbConstants.DEFAULT_INITIALIZE_ASYNC,u}(j5 (fafced885dba46090538c96c11b8e33ca7a1baf4j|5 Yatlasdb-config/src/test/java/com/palantir/atlasdb/memory/InMemoryAsyncAtlasDbFactory.javaj~5 modifiedjv5 K jw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactory.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactory.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactory.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 X  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.memory;
 
 import com.google.auto.service.AutoService;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.impl.AsyncInitializeableInMemoryKvs;
@@ -46,7 +45,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager unusedMetricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> unusedRuntimeConfig,
-            Optional<LeaderConfig> unusedLeaderConfig,
             Optional<String> unused,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u
      }(j5 (bf61a9d5b6cd91b9f8ee2a9c1680504983d769ddj|5 ]atlasdb-config/src/test/java/com/palantir/atlasdb/memory/InMemoryAsyncAtlasDbFactoryTest.javaj~5 modifiedjv5 K jw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactoryTest.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactoryTest.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactoryTest.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 Xb  @@ -80,7 +80,6 @@ private KeyValueService createRawKeyValueService(boolean initializeAsync, boolea
                 new InMemoryAsyncAtlasDbConfig(eventuallySucceed),
                 Refreshable.only(Optional.empty()),
                 Optional.empty(),
-                Optional.empty(),
                 null,
                 initializeAsync);
     }u}(j5 (2bb76883abdb0aeefd14bca1e2f5ac642666ff8cj|5 Xatlasdb-config/src/test/java/com/palantir/atlasdb/memory/InMemoryAtlasDbFactoryTest.javaj~5 modifiedjv5 Kjw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactoryTest.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactoryTest.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactoryTest.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 X$  @@ -59,12 +59,6 @@ public void asyncInitTimestampServiceSynchronous() {
 
     private KeyValueService createRawKeyValueService(boolean initializeAsync) {
         return factory.createRawKeyValueService(
-                null,
-                null,
-                Refreshable.only(Optional.empty()),
-                Optional.empty(),
-                Optional.empty(),
-                null,
-                initializeAsync);
+                null, null, Refreshable.only(Optional.empty()), Optional.empty(), null, initializeAsync);
     }
 }u}(j5 (49641fbb8014ea4755f443d2a46dd847148cf6c9j|5 batlasdb-container-test-utils/src/main/java/com/palantir/atlasdb/containers/CassandraContainer.javaj~5 modifiedjv5 K jw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FCassandraContainer.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FCassandraContainer.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FCassandraContainer.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 Xp  @@ -16,16 +16,13 @@
 package com.palantir.atlasdb.containers;
 
 import com.datastax.driver.core.Cluster;
-import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CqlCapableConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCassandraCredentialsConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCqlCapableConfig;
-import com.palantir.atlasdb.config.ImmutableLeaderConfig;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueService;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl;
 import com.palantir.atlasdb.keyvalue.cassandra.async.DefaultCassandraAsyncKeyValueServiceFactory;
@@ -37,7 +34,6 @@
 import java.net.InetSocketAddress;
 import java.net.SocketAddress;
 import java.util.Map;
-import java.util.Optional;
 import java.util.UUID;
 import java.util.function.Supplier;
 
@@ -49,13 +45,6 @@ public class CassandraContainer extends Container {
     private static final String CONTAINER_NAME = "cassandra";
     private static final String THROWAWAY_CONTAINER_NAME = "cassandra2";
 
-    @SuppressWarnings("OptionalUsedAsFieldOrParameterType")
-    static final Optional<LeaderConfig> LEADER_CONFIG = Optional.of(ImmutableLeaderConfig.builder()
-            .quorumSize(1)
-            .localServer("localhost")
-            .leaders(ImmutableSet.of("localhost"))
-            .build());
-
     private final CassandraKeyValueServiceConfig config;
     private final String dockerComposeFile;
     private final String name;u}(j5 (e7af481eab1762bea3f999752f6d2741324bf145j|5 Natlasdb-dagger/src/main/java/com/palantir/atlasdb/services/ServicesConfig.javaj~5 modifiedjv5 K jw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-dagger%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fservices%2FServicesConfig.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-dagger%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fservices%2FServicesConfig.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dagger%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fservices%2FServicesConfig.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 X  @@ -46,7 +46,6 @@ public ServiceDiscoveringAtlasSupplier atlasDbSupplier(MetricsManager metrics) {
                 metrics,
                 atlasDbConfig().keyValueService(),
                 Refreshable.only(atlasDbRuntimeConfig().keyValueService()),
-                atlasDbConfig().leader(),
                 atlasDbConfig().namespace(),
                 Optional.empty(),
                 atlasDbConfig().initializeAsync(),u}(j5 (27ef72e8bb9601a68c5a9a8c8b770c691b18b92aj|5 atlasdb-dbkvs-tests/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/DbTimestampStoreInvalidatorCreationTest.javaj~5 modifiedjv5 K jw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-dbkvs-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FDbTimestampStoreInvalidatorCreationTest.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-dbkvs-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FDbTimestampStoreInvalidatorCreationTest.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FDbTimestampStoreInvalidatorCreationTest.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 X  @@ -19,13 +19,11 @@
 import static com.palantir.atlasdb.spi.AtlasDbFactory.NO_OP_FAST_FORWARD_TIMESTAMP;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.Mockito.mock;
 
 import com.google.common.collect.ImmutableSet;
 import com.google.common.util.concurrent.SimpleTimeLimiter;
 import com.google.common.util.concurrent.TimeLimiter;
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.factory.ServiceDiscoveringAtlasSupplier;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.dbkvs.InvalidationRunner;
@@ -49,7 +47,6 @@
 
 public class DbTimestampStoreInvalidatorCreationTest {
     private final MetricsManager metrics = MetricsManagers.createForTests();
-    private final Optional<LeaderConfig> leaderConfig = Optional.of(mock(LeaderConfig.class));
 
     @ClassRule
     public static final TestResourceManager TRM = new TestResourceManager(DbKvsPostgresTestSuite::createKvs);
@@ -124,7 +121,6 @@ private ServiceDiscoveringAtlasSupplier createAtlasSupplier(
                 metrics,
                 providedKvsConfig,
                 Refreshable.only(Optional.empty()),
-                leaderConfig,
                 Optional.empty(),
                 tableReference,
                 AtlasDbConstants.DEFAULT_INITIALIZE_ASYNC,u}(j5 (0a8f1ae139f220797b9abeebbd4c969fee53e76ej|5 Uatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/DbAtlasDbFactory.javaj~5 modifiedjv5 K jw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FDbAtlasDbFactory.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FDbAtlasDbFactory.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FDbAtlasDbFactory.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 X*  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.ConnectionManagerAwareDbKvs;
@@ -53,7 +52,6 @@ public String getType() {
      *
      * @param config Configuration file.
      * @param runtimeConfig unused.
-     * @param leaderConfig unused.
      * @param namespace unused.
      * @param unusedLongSupplier unused.
      * @param initializeAsync initialize asynchronously
@@ -64,7 +62,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> namespace,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(j5 (65a0b7f0f54b0b2a052a4cbcb93084d57486a983j|5 `atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/RelationalDbTimeLockFactory.javaj~5 modifiedjv5 K jw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FRelationalDbTimeLockFactory.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FRelationalDbTimeLockFactory.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FRelationalDbTimeLockFactory.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 X~  @@ -19,7 +19,6 @@
 import com.google.auto.service.AutoService;
 import com.google.common.base.Preconditions;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
@@ -54,13 +53,11 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean initializeAsync) {
         return delegate.createRawKeyValueService(
                 metricsManager,
                 config,
                 runtimeConfig,
-                Optional.of(leaderConfig),
                 Optional.empty(), // This refers to an AtlasDB namespace - we use the config to talk to the db
                 AtlasDbFactory.THROWING_FRESH_TIMESTAMP_SOURCE, // This is how we give out timestamps!
                 initializeAsync);u}(j5 (03e1ff19bb39c0ec79ee29033b2ebfb1c90ec09bj|5 btimelock-agent/src/main/java/com/palantir/timelock/ServiceDiscoveringDatabaseTimeLockSupplier.javaj~5 modifiedjv5 Kjw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplier.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplier.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplier.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 X  @@ -19,7 +19,6 @@
 import com.google.common.base.Suppliers;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.factory.AtlasDbServiceDiscovery;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
@@ -49,11 +48,10 @@ public ServiceDiscoveringDatabaseTimeLockSupplier(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean initializeAsync) {
         DbTimeLockFactory dbTimeLockFactory = AtlasDbServiceDiscovery.createDbTimeLockFactoryOfCorrectType(config);
-        keyValueService = Suppliers.memoize(() -> dbTimeLockFactory.createRawKeyValueService(
-                metricsManager, config, runtimeConfig, leaderConfig, initializeAsync));
+        keyValueService = Suppliers.memoize(() ->
+                dbTimeLockFactory.createRawKeyValueService(metricsManager, config, runtimeConfig, initializeAsync));
         timestampServiceFactory = creationSetting -> dbTimeLockFactory.createManagedTimestampService(
                 keyValueService.get(), creationSetting, initializeAsync);
         timestampSeriesProvider = tableRef ->u}(j5 (67fff0cb73fea18f882abfc897fad053face2cf4j|5 Utimelock-agent/src/main/java/com/palantir/timelock/paxos/DbBoundTimestampCreator.javaj~5 modifiedjv5 Kjw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FDbBoundTimestampCreator.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FDbBoundTimestampCreator.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FDbBoundTimestampCreator.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 XB  @@ -18,7 +18,6 @@
 import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
 import com.palantir.paxos.Client;
 import com.palantir.timelock.ServiceDiscoveringDatabaseTimeLockSupplier;
@@ -35,7 +34,7 @@ public DbBoundTimestampCreator(
     }
 
     @Override
-    public Supplier<ManagedTimestampService> createTimestampService(Client client, LeaderConfig leaderConfig) {
+    public Supplier<ManagedTimestampService> createTimestampService(Client client) {
         return () -> serviceDiscoveringDatabaseTimeLockSupplier.getManagedTimestampService(
                 getTimestampCreationParameters(client));
     }u}(j5 (6a079ccf904035895dc3706a491d2647bcd7900dj|5 Stimelock-agent/src/main/java/com/palantir/timelock/paxos/PaxosTimestampCreator.javaj~5 modifiedjv5 Kjw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FPaxosTimestampCreator.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FPaxosTimestampCreator.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FPaxosTimestampCreator.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 X  @@ -15,7 +15,6 @@
  */
 package com.palantir.timelock.paxos;
 
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.timelock.paxos.NetworkClientFactories;
 import com.palantir.paxos.Client;
 import com.palantir.timestamp.ManagedTimestampService;
@@ -29,7 +28,7 @@ public class PaxosTimestampCreator implements TimestampCreator {
     }
 
     @Override
-    public Supplier<ManagedTimestampService> createTimestampService(Client client, LeaderConfig unused) {
+    public Supplier<ManagedTimestampService> createTimestampService(Client client) {
         return () -> timestampServiceFactory.create(client);
     }
 u}(j5 (26ffe31b9e2575d9a3aee3ac2c3795d73e01dd5cj|5 Ktimelock-agent/src/main/java/com/palantir/timelock/paxos/TimeLockAgent.javaj~5 modifiedjv5 Kjw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 X  @@ -15,19 +15,13 @@
  */
 package com.palantir.timelock.paxos;
 
-import static com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants.ACCEPTOR_SUBDIRECTORY_PATH;
-import static com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants.LEADER_PAXOS_NAMESPACE;
-import static com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants.LEARNER_SUBDIRECTORY_PATH;
-
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
 import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
-import com.palantir.atlasdb.config.ImmutableLeaderConfig;
 import com.palantir.atlasdb.config.ImmutableServerListConfig;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.config.RemotingClientConfigs;
 import com.palantir.atlasdb.config.ServerListConfig;
 import com.palantir.atlasdb.http.BlockingTimeoutExceptionMapper;
@@ -93,7 +87,6 @@
 import com.palantir.timestamp.ManagedTimestampService;
 import com.zaxxer.hikari.HikariDataSource;
 import java.net.URL;
-import java.nio.file.Path;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
@@ -287,7 +280,6 @@ private TimestampStorage createDatabaseTimestampStorage(
                 metricsManager,
                 timestampBoundPersistence.keyValueServiceConfig(),
                 runtime.map(TimeLockAgent::getKeyValueServiceRuntimeConfig),
-                createLeaderConfig(),
                 timestampBoundPersistence.initializeAsync());
         return ImmutableTimestampStorage.builder()
                 .timestampCreator(new DbBoundTimestampCreator(dbTimeLockSupplier))
@@ -570,34 +562,14 @@ RedirectRetryTargeter redirectRetryTargeter() {
      * @return Invalidating timestamp and lock services
      */
     public TimeLockServices createInvalidatingTimeLockServices(String client) {
-        LeaderConfig leaderConfig = createLeaderConfig();
-
         Client typedClient = Client.of(client);
 
         Supplier<ManagedTimestampService> rawTimestampServiceSupplier =
-                timestampStorage.timestampCreator().createTimestampService(typedClient, leaderConfig);
+                timestampStorage.timestampCreator().createTimestampService(typedClient);
         Supplier<LockService> rawLockServiceSupplier = lockCreator::createThreadPoolingLockService;
         return timelockCreator.createTimeLockServices(typedClient, rawTimestampServiceSupplier, rawLockServiceSupplier);
     }
 
-    private LeaderConfig createLeaderConfig() {
-        List<String> uris = cluster.clusterMembers();
-        Path leaderPaxosDataDirectory = install.paxos().dataDirectory().toPath().resolve(LEADER_PAXOS_NAMESPACE);
-
-        return ImmutableLeaderConfig.builder()
-                .addLeaders(uris.toArray(new String[0]))
-                .localServer(cluster.localServer())
-                .sslConfiguration(PaxosRemotingUtils.getSslConfigurationOptional(cluster))
-                .quorumSize(PaxosRemotingUtils.getQuorumSize(uris))
-                .learnerLogDir(leaderPaxosDataDirectory
-                        .resolve(LEARNER_SUBDIRECTORY_PATH)
-                        .toFile())
-                .acceptorLogDir(leaderPaxosDataDirectory
-                        .resolve(ACCEPTOR_SUBDIRECTORY_PATH)
-                        .toFile())
-                .build();
-    }
-
     public HealthStatusReport timeLockAdjudicationFeedback() {
         return feedbackHandler.getTimeLockHealthStatus();
     }u}(j5 (0f2c1df56bad08127cb2d5a035c597cdd96e3b20j|5 Ntimelock-agent/src/main/java/com/palantir/timelock/paxos/TimestampCreator.javaj~5 modifiedjv5 Kjw5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimestampCreator.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimestampCreator.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimestampCreator.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 X
  @@ -15,13 +15,12 @@
  */
 package com.palantir.timelock.paxos;
 
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.paxos.Client;
 import com.palantir.timestamp.ManagedTimestampService;
 import java.util.function.Supplier;
 
 public interface TimestampCreator extends AutoCloseable {
-    Supplier<ManagedTimestampService> createTimestampService(Client client, LeaderConfig leaderConfig);
+    Supplier<ManagedTimestampService> createTimestampService(Client client);
 
     @Override
     void close();u}(j5 (37cb9e1dd5d4d778cebc3d4cd60e5120d14a3a28j|5 ftimelock-agent/src/test/java/com/palantir/timelock/ServiceDiscoveringDatabaseTimeLockSupplierTest.javaj~5 modifiedjv5 Kjw5 K	j5 K
j5 https://github.com/palantir/atlasdb/blob/499a54762e5ec059975d08031d4be0fa010137e3/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplierTest.javaj5 https://github.com/palantir/atlasdb/raw/499a54762e5ec059975d08031d4be0fa010137e3/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplierTest.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplierTest.java?ref=499a54762e5ec059975d08031d4be0fa010137e3j5 X  @@ -19,11 +19,8 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
-import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.ImmutableLeaderConfig;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeriesProvider;
@@ -43,15 +40,10 @@ public class ServiceDiscoveringDatabaseTimeLockSupplierTest {
 
     private final MetricsManager metricsManager = MetricsManagers.createForTests();
     private final KeyValueServiceConfig keyValueServiceConfig = new InMemoryAtlasDbConfig();
-    private final LeaderConfig leaderConfig = ImmutableLeaderConfig.builder()
-            .localServer("me")
-            .leaders(ImmutableList.of("me"))
-            .quorumSize(1)
-            .build();
 
     private final ServiceDiscoveringDatabaseTimeLockSupplier timeLockSupplier =
             new ServiceDiscoveringDatabaseTimeLockSupplier(
-                    metricsManager, keyValueServiceConfig, Refreshable.only(Optional.empty()), leaderConfig, false);
+                    metricsManager, keyValueServiceConfig, Refreshable.only(Optional.empty()), false);
 
     @Test
     public void canGetTimestampServiceForDifferentSeries() {ueu(32dac63e002eb6890ead391c7783bd1c86af8443}(sha(32dac63e002eb6890ead391c7783bd1c86af8443node_idEC_kwDOAjP5fdoAKDMyZGFjNjNlMDAyZWI2ODkwZWFkMzkxYzc3ODNiZDFjODZhZjg0NDMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-18T10:57:27Zu	committer}(jK6 
Sam KramerjM6 skramer@palantir.comjO6 2023-04-18T10:57:27Zumessage
some clean uptree}(jC6 (348adf09a146961105373a49327bbe62db152234url`https://api.github.com/repos/palantir/atlasdb/git/trees/348adf09a146961105373a49327bbe62db152234uj[6 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/32dac63e002eb6890ead391c7783bd1c86af8443
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ+d5cACgkQmPPOpKR4
XS3IhQgAqFXWljLEeAe9KORwS+iEioHghH/dUDhTC+13C7XS9EHghZ0lH+WN3UKp
aPYe5BsuPdyPAneTfmeAXRd3HFni0ODqptvL+JVR66Ku5/rOzTlN2Px0FMo0ozFe
mOaJ6ONgFuYwlePW5w6N8LU9a7dO2eo5nulLbPo7qwoN4ROAFV+2ycVFSIrvMFna
ImzFPf/Rm1hOaDMsTepGSgBs7Ejpe6KM6bC5xUEh/ojqddkgMMdjPA99xzW4Mmdg
KQGFvKKtnC77+84x5MZP2Wj+QQ9TB+a3WiXkG89hsO2ABVGQYnHDPZH2V0Prxur7
JDqKK2llCX1lvu7JyTHH5hq4m6EYFw==
=bHvi
-----END PGP SIGNATURE-----payloadtree 348adf09a146961105373a49327bbe62db152234
parent ca39726306d4cc5051d714ac5a6404572f650764
author Sam Kramer <skramer@palantir.com> 1681815447 +0100
committer Sam Kramer <skramer@palantir.com> 1681815447 +0100

some clean up
uuj[6 ^https://api.github.com/repos/palantir/atlasdb/commits/32dac63e002eb6890ead391c7783bd1c86af8443html_urlShttps://github.com/palantir/atlasdb/commit/32dac63e002eb6890ead391c7783bd1c86af8443comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/32dac63e002eb6890ead391c7783bd1c86af8443/commentsjI6 }(login
Sam-KrameridJ^2_ jE6 MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j[6 'https://api.github.com/users/Sam-Kramerji6 https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujQ6 }(jn6 
Sam-Kramerjp6 J^2_ jE6 MDQ6VXNlcjYyMzg4MTQ=jr6 3https://avatars.githubusercontent.com/u/6238814?v=4jt6 h5j[6 'https://api.github.com/users/Sam-Kramerji6 https://github.com/Sam-Kramerjw6 1https://api.github.com/users/Sam-Kramer/followersjy6 >https://api.github.com/users/Sam-Kramer/following{/other_user}j{6 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j}6 >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j6 5https://api.github.com/users/Sam-Kramer/subscriptionsj6 ,https://api.github.com/users/Sam-Kramer/orgsj6 -https://api.github.com/users/Sam-Kramer/reposj6 8https://api.github.com/users/Sam-Kramer/events{/privacy}j6 7https://api.github.com/users/Sam-Kramer/received_eventsj6 Userj6 uparents]}(jC6 (ca39726306d4cc5051d714ac5a6404572f650764j[6 ^https://api.github.com/repos/palantir/atlasdb/commits/ca39726306d4cc5051d714ac5a6404572f650764ji6 Shttps://github.com/palantir/atlasdb/commit/ca39726306d4cc5051d714ac5a6404572f650764uastats}(totalK	additionsK	deletionsKufiles]}(jC6 (0ba18e00eabc917a1fd7025d0f9113112c9b8615filenameatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitor.javastatusmodifiedj6 Kj6 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/32dac63e002eb6890ead391c7783bd1c86af8443/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javaraw_urlhttps://github.com/palantir/atlasdb/raw/32dac63e002eb6890ead391c7783bd1c86af8443/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.java?ref=32dac63e002eb6890ead391c7783bd1c86af8443patchX  @@ -20,7 +20,7 @@
 import java.util.Optional;
 
 public final class OnlyCommittedWitnessedTransactionVisitor
-        implements WitnessedTransactionVisitor<Optional<WitnessedTransaction>> {
+        implements WitnessedTransactionVisitor<Optional<FullyWitnessedTransaction>> {
 
     private final ReadOnlyTransactionStore readOnlyTransactionStore;
 
@@ -29,12 +29,12 @@ public OnlyCommittedWitnessedTransactionVisitor(ReadOnlyTransactionStore readOnl
     }
 
     @Override
-    public Optional<WitnessedTransaction> visit(FullyWitnessedTransaction witnessedTransaction) {
+    public Optional<FullyWitnessedTransaction> visit(FullyWitnessedTransaction witnessedTransaction) {
         return Optional.of(witnessedTransaction);
     }
 
     @Override
-    public Optional<WitnessedTransaction> visit(MaybeWitnessedTransaction maybeWitnessedTransaction) {
+    public Optional<FullyWitnessedTransaction> visit(MaybeWitnessedTransaction maybeWitnessedTransaction) {
         return readOnlyTransactionStore.isCommitted(maybeWitnessedTransaction.startTimestamp())
                 ? Optional.of(maybeWitnessedTransaction.toFullyWitnessed())
                 : Optional.empty();uau(0570d68ca09820fed0dc364a381962ab23a477c2}(sha(0570d68ca09820fed0dc364a381962ab23a477c2node_idEC_kwDOAjP5fdoAKDA1NzBkNjhjYTA5ODIwZmVkMGRjMzY0YTM4MTk2MmFiMjNhNDc3YzIcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-04-11T09:07:09Zu	committer}(j6 
svc-changelogj6 svc-changelog@palantir.comj6 2023-04-11T09:07:09ZumessageAdd generated changelog entriestree}(j6 (b0f3b7a1c4d5d13e4f47c9dd44f2edf376a3a33eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/b0f3b7a1c4d5d13e4f47c9dd44f2edf376a3a33euj6 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0570d68ca09820fed0dc364a381962ab23a477c2
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQ1Iz0JEHYaJX37fAFQAAB2kwEAkj5ZjxhDciLqA+QJcyDq7Lgt
r4XUaZrJzkEvfDEtwMwBALHZSvRK2czOJVxaUrXlykKAugHxqHl316LaDOmHTwWG
=vt1U
-----END PGP SIGNATURE-----payloadX  tree b0f3b7a1c4d5d13e4f47c9dd44f2edf376a3a33e
parent 31e633d4e6cd32ff2f231ceb04d4e8e766ad0bdf
author svc-changelog <svc-changelog@palantir.com> 1681204029 +0000
committer svc-changelog <svc-changelog@palantir.com> 1681204029 +0000

Add generated changelog entriesuuj6 ^https://api.github.com/repos/palantir/atlasdb/commits/0570d68ca09820fed0dc364a381962ab23a477c2html_urlShttps://github.com/palantir/atlasdb/commit/0570d68ca09820fed0dc364a381962ab23a477c2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0570d68ca09820fed0dc364a381962ab23a477c2/commentsj6 }(login
svc-changelogidJ#j6 MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j6 *https://api.github.com/users/svc-changelogj6  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj6 }(j6 
svc-changelogj6 J#j6 MDQ6VXNlcjg0MDc3NjAzj6 4https://avatars.githubusercontent.com/u/84077603?v=4j6 h5j6 *https://api.github.com/users/svc-changelogj6  https://github.com/svc-changelogj6 4https://api.github.com/users/svc-changelog/followersj6 Ahttps://api.github.com/users/svc-changelog/following{/other_user}j6 :https://api.github.com/users/svc-changelog/gists{/gist_id}j6 Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j6 8https://api.github.com/users/svc-changelog/subscriptionsj6 /https://api.github.com/users/svc-changelog/orgsj6 0https://api.github.com/users/svc-changelog/reposj6 ;https://api.github.com/users/svc-changelog/events{/privacy}j6 :https://api.github.com/users/svc-changelog/received_eventsj 7 Userj7 uparents]}(j6 (31e633d4e6cd32ff2f231ceb04d4e8e766ad0bdfj6 ^https://api.github.com/repos/palantir/atlasdb/commits/31e633d4e6cd32ff2f231ceb04d4e8e766ad0bdfj6 Shttps://github.com/palantir/atlasdb/commit/31e633d4e6cd32ff2f231ceb04d4e8e766ad0bdfuastats}(totalK	additionsK	deletionsK ufiles]}(j6 (f78ad2562cc65a8da82f8d8fc92f20368d1a9981filename$changelog/@unreleased/pr-6518.v2.ymlstatusaddedj7 Kj7 K changesKblob_url|https://github.com/palantir/atlasdb/blob/0570d68ca09820fed0dc364a381962ab23a477c2/changelog%2F%40unreleased%2Fpr-6518.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/0570d68ca09820fed0dc364a381962ab23a477c2/changelog%2F%40unreleased%2Fpr-6518.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6518.v2.yml?ref=0570d68ca09820fed0dc364a381962ab23a477c2patchX+  @@ -0,0 +1,7 @@
+type: improvement
+improvement:
+  description: We no longer use Jersey sub-resource locators for user-facing timestamp,
+    timestamp management and lock v1 endpoints (except for the asynchronous TimeLock
+    service).
+  links:
+  - https://github.com/palantir/atlasdb/pull/6518uau(1eaca39f57caf130cd591ba5f38af03e1292b3ab}(sha(1eaca39f57caf130cd591ba5f38af03e1292b3abnode_idEC_kwDOAjP5fdoAKDFlYWNhMzlmNTdjYWYxMzBjZDU5MWJhNWYzOGFmMDNlMTI5MmIzYWIcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-07-21T00:56:39Zu	committer}(j97 David Schlosnaglej;7 davids@palantir.comj=7 2023-07-21T01:01:46Zumessage:SweepableCells uses primitive set for committed timestampstree}(j17 (f4ae0e68b9172fb6dccaf3a70d4fac3a931b5f38url`https://api.github.com/repos/palantir/atlasdb/git/trees/f4ae0e68b9172fb6dccaf3a70d4fac3a931b5f38ujI7 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1eaca39f57caf130cd591ba5f38af03e1292b3ab
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmS52PwACgkQR9hsJ74Q
0l8mIggAosPAk+VrHh73/rgKn4H0vTyZA84oXszyRFpZh6LsC7lmmhrNL5wibWll
xhGeXkwt1vwtWgHXQPhykbS7qloylNWgHlx+j+NrguL1zE07aPYPe5tgz87ulYzE
MtyIVc8LRwBB6Ph/KewdVbr79sg1xFEYN8qa4DtLJxfQmpb/cmnKovVX8x++RVfo
v5uQ7r72yx3ZNSA59IXM5qPKZfplBF5QDSvG4307D007AcqvmKYqaCM5k81xRcG7
H3jEZfDa7w6ZgqIIV4G/Q42EIuWDgKRynw88thhI3GQRe69VMzrdMKKifqzC//bl
D0zxA6aGBw+VW/1I/RWuiTBodQ6vpg==
=aj0C
-----END PGP SIGNATURE-----payloadX  tree f4ae0e68b9172fb6dccaf3a70d4fac3a931b5f38
parent 93898d301737cf69e2d10efe6a6a9f7c40ce6360
author David Schlosnagle <davids@palantir.com> 1689900999 -0400
committer David Schlosnagle <davids@palantir.com> 1689901306 -0400

SweepableCells uses primitive set for committed timestamps
uujI7 ^https://api.github.com/repos/palantir/atlasdb/commits/1eaca39f57caf130cd591ba5f38af03e1292b3abhtml_urlShttps://github.com/palantir/atlasdb/commit/1eaca39f57caf130cd591ba5f38af03e1292b3abcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1eaca39f57caf130cd591ba5f38af03e1292b3ab/commentsj77 }(loginschlosnaidMBj37 MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jI7 %https://api.github.com/users/schlosnajW7 https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj?7 }(j\7 schlosnaj^7 MBj37 MDQ6VXNlcjU0NTk0j`7 1https://avatars.githubusercontent.com/u/54594?v=4jb7 h5jI7 %https://api.github.com/users/schlosnajW7 https://github.com/schlosnaje7 /https://api.github.com/users/schlosna/followersjg7 <https://api.github.com/users/schlosna/following{/other_user}ji7 5https://api.github.com/users/schlosna/gists{/gist_id}jk7 <https://api.github.com/users/schlosna/starred{/owner}{/repo}jm7 3https://api.github.com/users/schlosna/subscriptionsjo7 *https://api.github.com/users/schlosna/orgsjq7 +https://api.github.com/users/schlosna/reposjs7 6https://api.github.com/users/schlosna/events{/privacy}ju7 5https://api.github.com/users/schlosna/received_eventsjw7 Userjy7 uparents]}(j17 (93898d301737cf69e2d10efe6a6a9f7c40ce6360jI7 ^https://api.github.com/repos/palantir/atlasdb/commits/93898d301737cf69e2d10efe6a6a9f7c40ce6360jW7 Shttps://github.com/palantir/atlasdb/commit/93898d301737cf69e2d10efe6a6a9f7c40ce6360uastats}(totalK,	additionsK	deletionsKufiles]}(j17 (a9b4705f8f7aa3df1b445c48b97b8bbc12756d22filenameVatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/SweepableCells.javastatusmodifiedj7 Kj7 KchangesK,blob_urlhttps://github.com/palantir/atlasdb/blob/1eaca39f57caf130cd591ba5f38af03e1292b3ab/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepableCells.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1eaca39f57caf130cd591ba5f38af03e1292b3ab/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepableCells.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepableCells.java?ref=1eaca39f57caf130cd591ba5f38af03e1292b3abpatchX  @@ -52,6 +52,7 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.ArrayList;
 import java.util.Collection;
+import java.util.Comparator;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Iterator;
@@ -61,6 +62,9 @@
 import java.util.Set;
 import java.util.SortedSet;
 import java.util.stream.Collectors;
+import org.eclipse.collections.api.factory.primitive.LongSets;
+import org.eclipse.collections.api.set.primitive.LongSet;
+import org.eclipse.collections.api.set.primitive.MutableLongSet;
 
 public class SweepableCells extends SweepQueueTable {
     private static final SafeLogger log = SafeLoggerFactory.get(SweepableCells.class);
@@ -208,7 +212,7 @@ private WriteBatch getBatchOfWrites(
             writeBatch.merge(getWrites(row, col, entry.getValue()));
         }
         // there may be entries remaining with the same start timestamp as the last processed one. If that is the case
-        // we want to include these ones as well. This is OK since there are at most MAX_CELLS_GENERIC - 1 of them.
+        // we want to include these as well. This is OK since there are at most MAX_CELLS_GENERIC - 1 of them.
         while (resultIterator.hasNext()) {
             Map.Entry<Cell, Value> entry = resultIterator.peek();
             SweepableCellsTable.SweepableCellsColumn col = computeColumn(entry);
@@ -227,10 +231,9 @@ private static final class WriteBatch {
         private final Multimap<Long, WriteInfo> writesByStartTs = HashMultimap.create();
         private final List<SweepableCellsRow> dedicatedRows = new ArrayList<>();
 
-        WriteBatch merge(WriteBatch other) {
+        void merge(WriteBatch other) {
             writesByStartTs.putAll(other.writesByStartTs);
             dedicatedRows.addAll(other.dedicatedRows);
-            return this;
         }
 
         static WriteBatch single(WriteInfo writeInfo) {
@@ -264,7 +267,7 @@ private TimestampsToSweep getTimestampsToSweepDescendingAndCleanupAborted(
             Multimap<Long, WriteInfo> writesByStartTs) {
         Map<Long, Long> startToCommitTs = commitTsCache.loadBatch(writesByStartTs.keySet());
         Map<TableReference, Multimap<Cell, Long>> cellsToDelete = new HashMap<>();
-        List<Long> committedTimestamps = new ArrayList<>();
+        MutableLongSet committedTimestamps = LongSets.mutable.empty();
         long lastSweptTs = minTsExclusive;
         long lastSeenCommitTs = 0L;
         boolean processedAll = true;
@@ -277,11 +280,12 @@ private TimestampsToSweep getTimestampsToSweepDescendingAndCleanupAborted(
             if (commitTs == TransactionConstants.FAILED_COMMIT_TS) {
                 lastSweptTs = startTs;
                 abortedTimestamps.add(startTs);
-                writesByStartTs.get(startTs).stream()
-                        .filter(info -> info.writeRef().isPresent())
-                        .forEach(write -> cellsToDelete
-                                .computeIfAbsent(write.writeRef().get().tableRef(), ignore -> HashMultimap.create())
-                                .put(write.writeRef().get().cell(), write.timestamp()));
+                writesByStartTs.get(startTs).forEach(write -> {
+                    Optional<WriteReference> writeReference = write.writeRef();
+                    writeReference.ifPresent(reference -> cellsToDelete
+                            .computeIfAbsent(reference.tableRef(), _ignore -> HashMultimap.create())
+                            .put(reference.cell(), write.timestamp()));
+                });
             } else if (commitTs < sweepTs) {
                 lastSweptTs = startTs;
                 committedTimestamps.add(startTs);
@@ -318,24 +322,26 @@ private TimestampsToSweep getTimestampsToSweepDescendingAndCleanupAborted(
         });
 
         return ImmutableTimestampsToSweep.builder()
-                .timestampsDescending(
-                        ImmutableSortedSet.copyOf(committedTimestamps).descendingSet())
+                .timestampsDescending(sortDescending(committedTimestamps))
                 .abortedTimestamps(abortedTimestamps)
                 .maxSwept(lastSweptTs)
                 .lastSeenCommitTs(lastSeenCommitTs)
                 .processedAll(processedAll)
                 .build();
     }
 
+    private static ImmutableSortedSet<Long> sortDescending(LongSet committedTimestamps) {
+        ImmutableSortedSet.Builder<Long> timestampsDescending =
+                ImmutableSortedSet.<Long>orderedBy(Comparator.reverseOrder());
+        committedTimestamps.forEach(timestampsDescending::add);
+        return timestampsDescending.build();
+    }
+
     private Collection<WriteInfo> getWritesToSweep(Multimap<Long, WriteInfo> writesByStartTs, SortedSet<Long> startTs) {
-        Map<CellReference, WriteInfo> writesToSweepFor = new HashMap<>();
-        startTs.stream()
-                .map(writesByStartTs::get)
-                .flatMap(Collection::stream)
-                .filter(write -> write.writeRef().isPresent())
-                .forEach(write ->
-                        writesToSweepFor.putIfAbsent(write.writeRef().get().cellReference(), write));
-        return writesToSweepFor.values();
+        Map<CellReference, WriteInfo> writesToSweep = new HashMap<>();
+        startTs.stream().map(writesByStartTs::get).flatMap(Collection::stream).forEach(write -> write.writeRef()
+                .ifPresent(reference -> writesToSweep.putIfAbsent(reference.cellReference(), write)));
+        return writesToSweep.values();
     }
 
     private long getLastSweptTs(uau(590da2c2037f1016d058c65dae37e973a6189c71}(sha(590da2c2037f1016d058c65dae37e973a6189c71node_idEC_kwDOAjP5fdoAKDU5MGRhMmMyMDM3ZjEwMTZkMDU4YzY1ZGFlMzdlOTczYTYxODljNzEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-03-24T15:30:36Zu	committer}(j7 Jeremy Kongj7 jkong@palantir.comj7 2023-03-24T15:30:36Zumessageconsistencytree}(j7 (54b4ce85a615351c72788b0c7037047b27cc384burl`https://api.github.com/repos/palantir/atlasdb/git/trees/54b4ce85a615351c72788b0c7037047b27cc384buj7 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/590da2c2037f1016d058c65dae37e973a6189c71
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQdwhwACgkQTLdFKain
zjwYHggAkyDF5RttQ87qLtDOf3EpQuzKkTXLEc7ETJOmEHhqZ9zzWUvbgh18Wc2V
dppidLkLbxz1YiTJN0mS2dly9KeSpiDPukByhOgkquzYCI3JU9x4nbLOHaNowTBO
wOOXFlMjJSMpbK32/j85n6OurhCyohBxmd7YWtPGprO3Ln3xXqt3BksoWZiT/z+i
cuopRkAT88J7Brs5OU4mTLl9G6nccVZw1QzeBQk7kP71mI3OEoBMIeHZ+WPdSpVd
Bn+ni5DQu7zZByCcwMALvUn6pmXpKNObu0QNy9drC+EDXZ2Q5H1bl2Nz9Y18oqDk
utNxJlCN324HvXeQTE9pwqgCxt9KZg==
=g7wE
-----END PGP SIGNATURE-----payloadtree 54b4ce85a615351c72788b0c7037047b27cc384b
parent edf233499fca6578767b593f8cbd455e1462eef5
author Jeremy Kong <jkong@palantir.com> 1679671836 +0000
committer Jeremy Kong <jkong@palantir.com> 1679671836 +0000

consistency
uuj7 ^https://api.github.com/repos/palantir/atlasdb/commits/590da2c2037f1016d058c65dae37e973a6189c71html_urlShttps://github.com/palantir/atlasdb/commit/590da2c2037f1016d058c65dae37e973a6189c71comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/590da2c2037f1016d058c65dae37e973a6189c71/commentsj7 }(login
jeremyk-91idJZ j7 MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j7 'https://api.github.com/users/jeremyk-91j7 https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj7 }(j7 
jeremyk-91j7 JZ j7 MDQ6VXNlcjU5NTU1MTA=j7 3https://avatars.githubusercontent.com/u/5955510?v=4j7 h5j7 'https://api.github.com/users/jeremyk-91j7 https://github.com/jeremyk-91j7 1https://api.github.com/users/jeremyk-91/followersj7 >https://api.github.com/users/jeremyk-91/following{/other_user}j7 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j7 >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j7 5https://api.github.com/users/jeremyk-91/subscriptionsj7 ,https://api.github.com/users/jeremyk-91/orgsj7 -https://api.github.com/users/jeremyk-91/reposj7 8https://api.github.com/users/jeremyk-91/events{/privacy}j7 7https://api.github.com/users/jeremyk-91/received_eventsj7 Userj7 uparents]}(j7 (edf233499fca6578767b593f8cbd455e1462eef5j7 ^https://api.github.com/repos/palantir/atlasdb/commits/edf233499fca6578767b593f8cbd455e1462eef5j7 Shttps://github.com/palantir/atlasdb/commit/edf233499fca6578767b593f8cbd455e1462eef5uastats}(totalK	additionsK	deletionsKufiles]}(j7 (458a66580d20def160b34b862aa2395146855a26filenameRatlasdb-commons/src/main/java/com/palantir/async/initializer/AsyncInitializer.javastatusmodifiedj
8 Kj8 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/590da2c2037f1016d058c65dae37e973a6189c71/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.javaraw_urlhttps://github.com/palantir/atlasdb/raw/590da2c2037f1016d058c65dae37e973a6189c71/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.java?ref=590da2c2037f1016d058c65dae37e973a6189c71patchX&  @@ -72,7 +72,7 @@ private void tryInitializationLoop() {
         try {
             log.info(
                     "Attempting to initialize {} on the attempt {}. The amount of time elapsed since we began was {}"
-                            + " ms.",
+                            + " milliseconds.",
                     SafeArg.of("className", getInitializingClassName()),
                     SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
                     SafeArg.of("initializationDuration", getTimeSinceInitialization()));uau(b0e9ca649f711b5c6e022d599d25561b3051a336}(sha(b0e9ca649f711b5c6e022d599d25561b3051a336node_idEC_kwDOAjP5fdoAKGIwZTljYTY0OWY3MTFiNWM2ZTAyMmQ1OTlkMjU1NjFiMzA1MWEzMzYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-07-17T15:51:52Zu	committer}(j'8 
Sam Kramerj)8 skramer@palantir.comj+8 2023-07-17T15:51:52Zumessageadd tests for anytree}(j8 (654c29bc01ee57f9bbdbeeaf58588d61713d6d4burl`https://api.github.com/repos/palantir/atlasdb/git/trees/654c29bc01ee57f9bbdbeeaf58588d61713d6d4buj78 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b0e9ca649f711b5c6e022d599d25561b3051a336
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmS1Y5gACgkQmPPOpKR4
XS3xcggAkz0NaOu0zS2oi/zy67Mo2jgG4qH06x0bmc/H5n7xzOJOmJOme34e5Mui
FCu0T5PIXROXdL4Twp/oBvDZQVTiG2ry6e2zK0idKQBdJvMPFeEU/ejqkMuS6MaM
UNh6k/i3yy9gNpx0MIMcx3ysG+IUGxXG2jh/BczHuX6kyVd4bOMRS2+KUYi7PsIo
s8H2kK9T9jB9iO55PHauuhnDS2IOaYOWHx+yw9BNFO6hoRha/zOk595wCuRG+HFp
u+6ClO++ZjkTHP4a611SMgR046NGQ/FwC3OPzkoC+IfFeZgFOAAE+JQF3HbbuFat
vhzUljnZtUpmi1u4jQT7Pw3Hu/6n8w==
=R+hs
-----END PGP SIGNATURE-----payloadtree 654c29bc01ee57f9bbdbeeaf58588d61713d6d4b
parent 29cb01242c87bacfdd759d16cc3862b14aec33d8
author Sam Kramer <skramer@palantir.com> 1689609112 +0100
committer Sam Kramer <skramer@palantir.com> 1689609112 +0100

add tests for any
uuj78 ^https://api.github.com/repos/palantir/atlasdb/commits/b0e9ca649f711b5c6e022d599d25561b3051a336html_urlShttps://github.com/palantir/atlasdb/commit/b0e9ca649f711b5c6e022d599d25561b3051a336comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b0e9ca649f711b5c6e022d599d25561b3051a336/commentsj%8 }(login
Sam-KrameridJ^2_ j!8 MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j78 'https://api.github.com/users/Sam-KramerjE8 https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj-8 }(jJ8 
Sam-KramerjL8 J^2_ j!8 MDQ6VXNlcjYyMzg4MTQ=jN8 3https://avatars.githubusercontent.com/u/6238814?v=4jP8 h5j78 'https://api.github.com/users/Sam-KramerjE8 https://github.com/Sam-KramerjS8 1https://api.github.com/users/Sam-Kramer/followersjU8 >https://api.github.com/users/Sam-Kramer/following{/other_user}jW8 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jY8 >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j[8 5https://api.github.com/users/Sam-Kramer/subscriptionsj]8 ,https://api.github.com/users/Sam-Kramer/orgsj_8 -https://api.github.com/users/Sam-Kramer/reposja8 8https://api.github.com/users/Sam-Kramer/events{/privacy}jc8 7https://api.github.com/users/Sam-Kramer/received_eventsje8 Userjg8 uparents]}(j8 (29cb01242c87bacfdd759d16cc3862b14aec33d8j78 ^https://api.github.com/repos/palantir/atlasdb/commits/29cb01242c87bacfdd759d16cc3862b14aec33d8jE8 Shttps://github.com/palantir/atlasdb/commit/29cb01242c87bacfdd759d16cc3862b14aec33d8uastats}(totalKH	additionsK,	deletionsKufiles]}(j8 (98ecba6b0514c4d8dae325d59e59541b55b9e693filenameyatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServicesSchemaConsensusTest.javastatusmodifiedj8 K,j8 KchangesKHblob_urlhttps://github.com/palantir/atlasdb/blob/b0e9ca649f711b5c6e022d599d25561b3051a336/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServicesSchemaConsensusTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b0e9ca649f711b5c6e022d599d25561b3051a336/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServicesSchemaConsensusTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServicesSchemaConsensusTest.java?ref=b0e9ca649f711b5c6e022d599d25561b3051a336patchX  @@ -23,8 +23,7 @@
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableSet;
-import java.net.InetSocketAddress;
+import com.palantir.util.io.AvailabilityRequirement;
 import org.apache.thrift.TException;
 import org.junit.Test;
 
@@ -33,13 +32,6 @@ public class CassandraKeyValueServicesSchemaConsensusTest {
     private static final int WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS = 10000;
 
     private static CassandraClient client = mock(CassandraClient.class);
-
-    private static final ImmutableSet<InetSocketAddress> FIVE_SERVERS = ImmutableSet.of(
-            InetSocketAddress.createUnresolved("1", 1),
-            InetSocketAddress.createUnresolved("2", 1),
-            InetSocketAddress.createUnresolved("3", 1),
-            InetSocketAddress.createUnresolved("4", 1),
-            InetSocketAddress.createUnresolved("5", 1));
     private static final String TABLE = "table";
     private static final String VERSION_1 = "v1";
     private static final String VERSION_2 = "v2";
@@ -51,59 +43,80 @@ public class CassandraKeyValueServicesSchemaConsensusTest {
     @Test
     public void waitSucceedsForSameSchemaVersion() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of(VERSION_1, ALL_NODES));
-        assertWaitForSchemaVersionsDoesNotThrow();
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.ANY);
     }
 
     @Test
     public void waitThrowsForAllUnknownSchemaVersion() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of());
-        assertWaitForSchemaVersionsThrows();
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.QUORUM);
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.ANY);
     }
 
     @Test
     public void waitThrowsForAllUnreachableSchemaVersion() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of(VERSION_UNREACHABLE, ALL_NODES));
-        assertWaitForSchemaVersionsThrows();
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.QUORUM);
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.ANY);
+    }
+
+    @Test
+    public void waitThrowsForDifferentSchemaVersion() throws TException {
+        when(client.describe_schema_versions())
+                .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_2, REST_OF_NODES));
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.QUORUM);
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.ANY);
     }
 
     @Test
     public void waitSucceedsWithClusterHavingDownsizedAtRuntime() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of(VERSION_1, REST_OF_NODES));
-        assertWaitForSchemaVersionsDoesNotThrow();
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
     }
 
     @Test
-    public void waitFailsOnMinorityOnSameVersionAndRestUnreachable() throws TException {
+    public void waitFailsForQuorumOnMinorityOnSameVersionAndRestUnreachable() throws TException {
         when(client.describe_schema_versions())
                 .thenReturn(ImmutableMap.of(VERSION_UNREACHABLE, QUORUM_OF_NODES, VERSION_1, REST_OF_NODES));
-        assertWaitForSchemaVersionsThrows();
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.QUORUM);
     }
 
     @Test
     public void waitSucceedsForQuorumOnlyWithUnknownSchemaVersion() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES));
-        assertWaitForSchemaVersionsDoesNotThrow();
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
     }
 
     @Test
     public void waitSucceedsForQuorumOnlyWithUnreachableSchemaVersion() throws TException {
         when(client.describe_schema_versions())
                 .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_UNREACHABLE, REST_OF_NODES));
-        assertWaitForSchemaVersionsDoesNotThrow();
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
     }
 
     @Test
-    public void waitThrowsForDifferentSchemaVersion() throws TException {
+    public void waitSucceedsForQuorumOnlyWithUnknownAndUnreachableSchemaVersion() throws TException {
         when(client.describe_schema_versions())
-                .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_2, REST_OF_NODES));
-        assertWaitForSchemaVersionsThrows();
+                .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_UNREACHABLE, ImmutableList.of("5")));
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
     }
 
     @Test
-    public void waitSucceedsForQuorumOnlyWithUnknownAndUnreachableSchemaVersion() throws TException {
+    public void waitChecksForQuorumByDefault() throws TException {
         when(client.describe_schema_versions())
-                .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_UNREACHABLE, ImmutableList.of("5")));
-        assertWaitForSchemaVersionsDoesNotThrow();
+                .thenReturn(ImmutableMap.of(VERSION_UNREACHABLE, QUORUM_OF_NODES, VERSION_1, REST_OF_NODES));
+        assertThatThrownBy(() -> CassandraKeyValueServices.waitForSchemaVersions(
+                        NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE))
+                .isInstanceOf(IllegalStateException.class)
+                .hasMessageContaining("Cassandra cluster cannot come to agreement on schema versions");
+    }
+
+    @Test
+    public void waitSucceedsForAnyWithOnlyOneReachableHost() throws TException {
+        when(client.describe_schema_versions())
+                .thenReturn(ImmutableMap.of(VERSION_1, ImmutableList.of("5"), VERSION_UNREACHABLE, QUORUM_OF_NODES));
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.ANY);
     }
 
     @Test
@@ -117,18 +130,21 @@ public void waitWaitsForSchemaVersions() throws TException {
                         ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_UNREACHABLE, REST_OF_NODES),
                         ImmutableMap.of(VERSION_1, ALL_NODES));
 
-        CassandraKeyValueServices.waitForSchemaVersions(WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, waitingClient, TABLE);
+        CassandraKeyValueServices.waitForSchemaVersions(
+                WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, waitingClient, TABLE, AvailabilityRequirement.QUORUM);
         verify(waitingClient, times(4)).describe_schema_versions();
     }
 
-    private void assertWaitForSchemaVersionsThrows() {
+    private void assertWaitForSchemaVersionsThrows(AvailabilityRequirement availabilityRequirement) {
         assertThatThrownBy(() -> CassandraKeyValueServices.waitForSchemaVersions(
-                        NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE))
+                        NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE, availabilityRequirement))
                 .isInstanceOf(IllegalStateException.class)
                 .hasMessageContaining("Cassandra cluster cannot come to agreement on schema versions");
     }
 
-    private void assertWaitForSchemaVersionsDoesNotThrow() throws TException {
-        CassandraKeyValueServices.waitForSchemaVersions(NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE);
+    private void assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement availabilityRequirement)
+            throws TException {
+        CassandraKeyValueServices.waitForSchemaVersions(
+                NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE, availabilityRequirement);
     }
 }uau(cb936c63ffebe84004949506c9079c22805c484d}(sha(cb936c63ffebe84004949506c9079c22805c484dnode_idEC_kwDOAjP5fdoAKGNiOTM2YzYzZmZlYmU4NDAwNDk0OTUwNmM5MDc5YzIyODA1YzQ4NGQcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-03-23T17:01:31Zu	committer}(j8 GitHubj8 noreply@github.comj8 2023-03-23T17:01:31ZumessagehWorkload dropwizard container (#6479)

Add dropwizard container and docker image for the workload-servertree}(j8 (394c4846ccad334154600bfb09ce0e316cd141e0url`https://api.github.com/repos/palantir/atlasdb/git/trees/394c4846ccad334154600bfb09ce0e316cd141e0uj8 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cb936c63ffebe84004949506c9079c22805c484d
comment_countK verification}(verifiedreasonvalid	signature      X  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkHIXrCRBK7hj4Ov3rIwAAorkIAHdahGpNQ8t2O3c7DNzzg6Jw
baHJYWNM8JQd2bAZYS1nT9wsz5j26hvkQzV9JCZJv7C3x7oQhrtSQJKlMp/i05PR
shW90ahIgGwFIbyKL9p0s5YrHPhygjXSF5b0N+WT2I4mGfJCoZHTv6QJ8Pv1kBxq
pAsArQYYksDtEYBBPLNRUm3DUbfxoXsY3XpBmMo5klZT5Ni7RZuQ6Lju2H0JuyRM
TepOtMkB/rxfEJKXY7Gb9wZ48nLXvZ7/wYucSm+UWoMHpJ4JUsLIkCMMShayF5Qp
nELdN72x1HEdQd7myOojAC4kByKtaSHgv6CBqGb5y5A4VERYR8ZGCLo3rAg7dP8=
=otqW
-----END PGP SIGNATURE-----
payloadX;  tree 394c4846ccad334154600bfb09ce0e316cd141e0
parent 3e6b1b291c3d8d0baa75571bf9c7ca14dadd235b
author Sam-Kramer <sam.c.kramer@gmail.com> 1679590891 +0000
committer GitHub <noreply@github.com> 1679590891 +0000

Workload dropwizard container (#6479)

Add dropwizard container and docker image for the workload-server
uuj8 ^https://api.github.com/repos/palantir/atlasdb/commits/cb936c63ffebe84004949506c9079c22805c484dhtml_urlShttps://github.com/palantir/atlasdb/commit/cb936c63ffebe84004949506c9079c22805c484dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cb936c63ffebe84004949506c9079c22805c484d/commentsj8 }(login
Sam-KrameridJ^2_ j8 MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j8 'https://api.github.com/users/Sam-Kramerj8 https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj8 }(j8 web-flowj8 J/j8 MDQ6VXNlcjE5ODY0NDQ3j8 4https://avatars.githubusercontent.com/u/19864447?v=4j8 h5j8 %https://api.github.com/users/web-flowj8 https://github.com/web-flowj8 /https://api.github.com/users/web-flow/followersj8 <https://api.github.com/users/web-flow/following{/other_user}j8 5https://api.github.com/users/web-flow/gists{/gist_id}j8 <https://api.github.com/users/web-flow/starred{/owner}{/repo}j8 3https://api.github.com/users/web-flow/subscriptionsj8 *https://api.github.com/users/web-flow/orgsj8 +https://api.github.com/users/web-flow/reposj8 6https://api.github.com/users/web-flow/events{/privacy}j8 5https://api.github.com/users/web-flow/received_eventsj8 Userj8 uparents]}(j8 (3e6b1b291c3d8d0baa75571bf9c7ca14dadd235bj8 ^https://api.github.com/repos/palantir/atlasdb/commits/3e6b1b291c3d8d0baa75571bf9c7ca14dadd235bj8 Shttps://github.com/palantir/atlasdb/commit/3e6b1b291c3d8d0baa75571bf9c7ca14dadd235buastats}(totalMe	additionsMd	deletionsKufiles](}(j8 (9df48b200bfac9a63133d522bf43ef6e6d502329filename/atlasdb-workload-server-distribution/Dockerfilestatusaddedj8 Kj8 K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/cb936c63ffebe84004949506c9079c22805c484d/atlasdb-workload-server-distribution%2FDockerfileraw_urlhttps://github.com/palantir/atlasdb/raw/cb936c63ffebe84004949506c9079c22805c484d/atlasdb-workload-server-distribution%2FDockerfilecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2FDockerfile?ref=cb936c63ffebe84004949506c9079c22805c484dpatchX  @@ -0,0 +1,14 @@
+FROM adoptopenjdk/openjdk11:jre-11.0.9_11.1-alpine
+MAINTAINER AtlasDB Team
+
+# Bash and curl are convenient for monitoring and debugging
+RUN apk update && apk add bash curl
+
+# Prefer ADD to COPY because it does the tar handling
+ADD atlasdb-workload-server-*.tgz /
+
+RUN mv /atlasdb-workload-server-* /atlasdb-workload-server
+
+WORKDIR /atlasdb-workload-server
+
+CMD ["service/bin/init.sh", "console"]u}(j8 (808f311155ea3c78418d424bc99d2379446a8356j8 1atlasdb-workload-server-distribution/build.gradlej 9 addedj8 K*j8 K j9 K*j9 https://github.com/palantir/atlasdb/blob/cb936c63ffebe84004949506c9079c22805c484d/atlasdb-workload-server-distribution%2Fbuild.gradlej9 https://github.com/palantir/atlasdb/raw/cb936c63ffebe84004949506c9079c22805c484d/atlasdb-workload-server-distribution%2Fbuild.gradlej9 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=cb936c63ffebe84004949506c9079c22805c484dj	9 X  @@ -0,0 +1,42 @@
+apply plugin: 'com.palantir.sls-java-service-distribution'
+apply plugin: 'com.palantir.external-publish-dist'
+apply from: "../gradle/docker.gradle"
+apply from: "../gradle/shared.gradle"
+apply from: "../gradle/non-client-dist.gradle"
+
+dependencies {
+    implementation 'com.fasterxml.jackson.core:jackson-annotations'
+    implementation 'com.fasterxml.jackson.core:jackson-core'
+    implementation 'com.fasterxml.jackson.core:jackson-databind'
+    implementation 'io.dropwizard.metrics:metrics-core'
+    implementation 'io.dropwizard:dropwizard-core'
+    implementation 'io.dropwizard:dropwizard-http2'
+    implementation 'io.dropwizard:dropwizard-jackson'
+    implementation 'io.dropwizard:dropwizard-jersey'
+    implementation 'io.dropwizard:dropwizard-lifecycle'
+    implementation 'io.dropwizard:dropwizard-logging'
+    implementation 'io.dropwizard:dropwizard-request-logging'
+    implementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
+    implementation 'com.palantir.conjure.java.runtime:conjure-java-jersey-server'
+    implementation 'com.google.guava:guava'
+
+
+    implementation project(':atlasdb-client')
+    implementation project(':atlasdb-cassandra')
+    implementation project(':atlasdb-workload-server')
+    implementation project(':atlasdb-workload-server-api')
+    implementation project(':atlasdb-config')
+
+    testImplementation 'io.dropwizard:dropwizard-testing'
+
+    compileOnly 'org.immutables:value::annotations'
+    annotationProcessor 'org.immutables:value'
+}
+
+
+distribution {
+    serviceName "atlasdb-workload-server"
+    mainClass 'com.palantir.atlasdb.workload.WorkloadServerLauncher'
+    args 'server', 'var/conf/workload-server.yml'
+    defaultJvmOpts "-Xms512m", "-Xmx512m"
+}
\ No newline at end of fileu}(j8 (44582631544b31080c761064fcdd5ec05fee35e0j8 latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj 9 addedj8 Kj8 K j9 Kj9 https://github.com/palantir/atlasdb/blob/cb936c63ffebe84004949506c9079c22805c484d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj9 https://github.com/palantir/atlasdb/raw/cb936c63ffebe84004949506c9079c22805c484d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj9 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=cb936c63ffebe84004949506c9079c22805c484dj	9 X  @@ -0,0 +1,128 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload;
+
+import com.codahale.metrics.MetricRegistry;
+import com.codahale.metrics.SharedMetricRegistries;
+import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
+import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.util.MetricsManager;
+import com.palantir.atlasdb.util.MetricsManagers;
+import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
+import com.palantir.atlasdb.workload.invariant.DurableWritesMetricInvariantReporter;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.workflow.RunOnceWorkflowRunner;
+import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
+import com.palantir.conjure.java.api.config.service.UserAgent;
+import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.refreshable.Refreshable;
+import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
+import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
+import io.dropwizard.Application;
+import io.dropwizard.jackson.DiscoverableSubtypeResolver;
+import io.dropwizard.setup.Bootstrap;
+import io.dropwizard.setup.Environment;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+
+public class WorkloadServerLauncher extends Application<WorkloadServerConfiguration> {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(WorkloadServerLauncher.class);
+    private static final UserAgent USER_AGENT = UserAgent.of(Agent.of("AtlasDbWorkloadServer", "0.0.0"));
+
+    private final TaggedMetricRegistry taggedMetricRegistry = new DefaultTaggedMetricRegistry();
+    private final CountDownLatch workflowsRanLatch = new CountDownLatch(1);
+
+    public static void main(String[] args) throws Exception {
+        new WorkloadServerLauncher().run(args);
+    }
+
+    @Override
+    public void initialize(Bootstrap<WorkloadServerConfiguration> bootstrap) {
+        MetricRegistry metricRegistry = SharedMetricRegistries.getOrCreate("AtlasDbWorkLoadServer");
+        bootstrap.setMetricRegistry(metricRegistry);
+        bootstrap.setObjectMapper(ObjectMappers.newServerObjectMapper());
+        bootstrap.getObjectMapper().setSubtypeResolver(new DiscoverableSubtypeResolver());
+        bootstrap.getObjectMapper().registerModule(new Jdk8Module());
+        super.initialize(bootstrap);
+    }
+
+    @Override
+    public void run(WorkloadServerConfiguration configuration, Environment environment) {
+        environment.getObjectMapper().registerModule(new Jdk8Module()).registerModule(new JavaTimeModule());
+
+        ExecutorService workflowRunnerExecutor =
+                environment.lifecycle().executorService("workflow-runner").build();
+
+        workflowRunnerExecutor.execute(() -> runWorkflows(configuration, environment));
+    }
+
+    private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {
+        ExecutorService singleRowTwoCellsExecutorService = environment
+                .lifecycle()
+                .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
+                .build();
+        MetricsManager metricsManager = MetricsManagers.of(environment.metrics(), taggedMetricRegistry);
+        AtlasDbTransactionStoreFactory transactionStoreFactory = AtlasDbTransactionStoreFactory.createFromConfig(
+                configuration.install().atlas(),
+                Refreshable.only(configuration.runtime().atlas()),
+                USER_AGENT,
+                metricsManager);
+        SingleRowTwoCellsWorkflowConfiguration workflowConfig =
+                configuration.install().singleRowTwoCellsConfig();
+
+        log.info("antithesis: start_faults");
+        RunOnceWorkflowRunner.INSTANCE.run(
+                SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
+                        transactionStoreFactory.create(
+                                Map.of(
+                                        workflowConfig.tableConfiguration().tableName(),
+                                        workflowConfig.tableConfiguration().isolationLevel()),
+                                Set.of()),
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)),
+                List.of(new DurableWritesMetricInvariantReporter(
+                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry))));
+        log.info("antithesis: terminate");
+
+        workflowsRanLatch.countDown();
+
+        if (configuration.install().exitAfterRunning()) {
+            System.exit(0);
+        }
+    }
+
+    @VisibleForTesting
+    CountDownLatch workflowsRanLatch() {
+        return workflowsRanLatch;
+    }
+
+    @VisibleForTesting
+    TaggedMetricRegistry getTaggedMetricRegistry() {
+        return taggedMetricRegistry;
+    }
+}u}(j8 (655b2984713096f58ef552b3e999b0c467a73c48j8 xatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerConfiguration.javaj 9 addedj8 K)j8 K j9 K)j9 https://github.com/palantir/atlasdb/blob/cb936c63ffebe84004949506c9079c22805c484d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerConfiguration.javaj9 https://github.com/palantir/atlasdb/raw/cb936c63ffebe84004949506c9079c22805c484d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerConfiguration.javaj9 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerConfiguration.java?ref=cb936c63ffebe84004949506c9079c22805c484dj	9 X  @@ -0,0 +1,41 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.config;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.dropwizard.Configuration;
+
+public class WorkloadServerConfiguration extends Configuration {
+
+    private final WorkloadServerRuntimeConfiguration runtime;
+    private final WorkloadServerInstallConfiguration install;
+
+    public WorkloadServerConfiguration(
+            @JsonProperty(value = "install", required = true) WorkloadServerInstallConfiguration install,
+            @JsonProperty(value = "runtime", required = true) WorkloadServerRuntimeConfiguration runtime) {
+        this.install = install;
+        this.runtime = runtime;
+    }
+
+    public WorkloadServerRuntimeConfiguration runtime() {
+        return runtime;
+    }
+
+    public WorkloadServerInstallConfiguration install() {
+        return install;
+    }
+}u}(j8 (009d1e836cb4f2d06c17d17b2580dcc7ec4d27e7j8 atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj 9 addedj8 K"j8 K j9 K"j9 https://github.com/palantir/atlasdb/blob/cb936c63ffebe84004949506c9079c22805c484d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj9 https://github.com/palantir/atlasdb/raw/cb936c63ffebe84004949506c9079c22805c484d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj9 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=cb936c63ffebe84004949506c9079c22805c484dj	9 Xg  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.config;
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import org.immutables.value.Value;
+
+@JsonDeserialize(as = ImmutableWorkloadServerInstallConfiguration.class)
+@JsonSerialize(as = ImmutableWorkloadServerInstallConfiguration.class)
+@Value.Immutable
+public interface WorkloadServerInstallConfiguration {
+    AtlasDbConfig atlas();
+
+    SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig();
+
+    boolean exitAfterRunning();
+}u}(j8 (2824c644dc8df565316087e7978c2a1b336f0bf9j8 atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerRuntimeConfiguration.javaj 9 addedj8 Kj8 K j9 Kj9 https://github.com/palantir/atlasdb/blob/cb936c63ffebe84004949506c9079c22805c484d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerRuntimeConfiguration.javaj9 https://github.com/palantir/atlasdb/raw/cb936c63ffebe84004949506c9079c22805c484d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerRuntimeConfiguration.javaj9 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerRuntimeConfiguration.java?ref=cb936c63ffebe84004949506c9079c22805c484dj	9 X  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.config;
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.palantir.atlasdb.config.AtlasDbRuntimeConfig;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@JsonDeserialize(as = ImmutableWorkloadServerRuntimeConfiguration.class)
+@JsonSerialize(as = ImmutableWorkloadServerRuntimeConfiguration.class)
+@Value.Immutable
+public interface WorkloadServerRuntimeConfiguration {
+    Optional<AtlasDbRuntimeConfig> atlas();
+}u}(j8 (de8ac8137080a18591a69dabb98316ec9897dfa3j8 patlasdb-workload-server-distribution/src/test/java/com/palantir/atlasdb/workload/WorkloadServerLauncherTest.javaj 9 addedj8 K4j8 K j9 K4j9 https://github.com/palantir/atlasdb/blob/cb936c63ffebe84004949506c9079c22805c484d/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncherTest.javaj9 https://github.com/palantir/atlasdb/raw/cb936c63ffebe84004949506c9079c22805c484d/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncherTest.javaj9 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncherTest.java?ref=cb936c63ffebe84004949506c9079c22805c484dj	9 XM	  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.codahale.metrics.Timer;
+import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
+import com.palantir.tritium.metrics.registry.MetricName;
+import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
+import io.dropwizard.testing.ResourceHelpers;
+import io.dropwizard.testing.junit.DropwizardAppRule;
+import java.util.Map;
+import java.util.concurrent.TimeUnit;
+import org.junit.ClassRule;
+import org.junit.Test;
+
+public class WorkloadServerLauncherTest {
+    @ClassRule
+    public static final DropwizardAppRule<WorkloadServerConfiguration> RULE = new DropwizardAppRule<>(
+            WorkloadServerLauncher.class, ResourceHelpers.resourceFilePath("workload-server.yml"));
+
+    @Test
+    public void runsWorkflow() throws InterruptedException {
+        WorkloadServerLauncher workloadServerLauncher = RULE.getApplication();
+        workloadServerLauncher.workflowsRanLatch().await(20, TimeUnit.SECONDS);
+        TaggedMetricRegistry metricRegistry = workloadServerLauncher.getTaggedMetricRegistry();
+        MetricName metricName = MetricName.builder()
+                .safeName("com.palantir.atlasdb.keyvalue.api.KeyValueService.get")
+                .safeTags(Map.of("libraryOrigin", "atlasdb"))
+                .build();
+        Timer kvsGetMetric = (Timer) metricRegistry.getMetrics().get(metricName);
+        assertThat(kvsGetMetric.getCount())
+                .as("Count of KeyValueService get calls should be greater than one,"
+                        + "as a workflow should have been executed")
+                .isGreaterThan(1);
+    }
+}u}(j8 (7e40ac0af622142842a15da5fabb1d3cac282fd3j8 Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj 9 addedj8 K
j8 K j9 K
j9 https://github.com/palantir/atlasdb/blob/cb936c63ffebe84004949506c9079c22805c484d/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj9 https://github.com/palantir/atlasdb/raw/cb936c63ffebe84004949506c9079c22805c484d/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj9 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=cb936c63ffebe84004949506c9079c22805c484dj	9 XW  @@ -0,0 +1,13 @@
+runtime: {}
+install:
+  atlas:
+    namespace: test
+    keyValueService:
+      type: memory
+  singleRowTwoCellsConfig:
+    tableConfiguration:
+      tableName: two-cells-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: singleRowTwoCells
+  exitAfterRunning: false
\ No newline at end of fileu}(j8 (64294ae949e876e90849cc856e5f5959e722f79aj8 xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javaj 9 modifiedj8 Kj8 Kj9 Kj9 https://github.com/palantir/atlasdb/blob/cb936c63ffebe84004949506c9079c22805c484d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj9 https://github.com/palantir/atlasdb/raw/cb936c63ffebe84004949506c9079c22805c484d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj9 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=cb936c63ffebe84004949506c9079c22805c484dj	9 Xy  @@ -27,7 +27,7 @@
 @JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
 @JsonTypeName(SingleRowTwoCellsWorkflowConfiguration.TYPE)
 public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfiguration {
-    String TYPE = "SINGLE_ROW_TWO_CELLS";
+    String TYPE = "singleRowTwoCells";
 
     TableConfiguration tableConfiguration();
 u}(j8 (386cf16ebb6be475023b0b5ad84883a9519f290dj8 settings.gradlej 9 modifiedj8 Kj8 K j9 Kj9 ahttps://github.com/palantir/atlasdb/blob/cb936c63ffebe84004949506c9079c22805c484d/settings.gradlej9 `https://github.com/palantir/atlasdb/raw/cb936c63ffebe84004949506c9079c22805c484d/settings.gradlej9 shttps://api.github.com/repos/palantir/atlasdb/contents/settings.gradle?ref=cb936c63ffebe84004949506c9079c22805c484dj	9 X  @@ -31,6 +31,7 @@ include ":atlasdb-service"
 include ":atlasdb-tests-shared"
 include ":atlasdb-workload-server"
 include ":atlasdb-workload-server-api"
+include ":atlasdb-workload-server-distribution"
 include ":commons-annotations"
 include ":commons-api"
 include ":commons-db"ueu(aeaa2477790bfabd9968be5234ff598defbc81f3}(sha(aeaa2477790bfabd9968be5234ff598defbc81f3node_idEC_kwDOAjP5fdoAKGFlYWEyNDc3NzkwYmZhYmQ5OTY4YmU1MjM0ZmY1OThkZWZiYzgxZjMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-22T22:40:37Zu	committer}(j]9 Jeremy Kongj_9 jkong@palantir.comja9 2023-02-22T22:40:37Zumessage#proof-of-concept: one row two cellstree}(jU9 (c50f82fe2420ab330236e3b2760983f291fd50a3url`https://api.github.com/repos/palantir/atlasdb/git/trees/c50f82fe2420ab330236e3b2760983f291fd50a3ujm9 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/aeaa2477790bfabd9968be5234ff598defbc81f3
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEuTY+4bHE452z2GUfsC5B2upnoZgFAmP2meUACgkQsC5B2upn
oZiaLQf/f5F85KyYlABlVfY29ie8QV+xt4ZI74TDnJrwj5CgOlrG4DzCmRams73t
0cXT2Q/CFDmSHcPNTgjr+K/Lh4XJLIlUa1Fpa2M6mR/GueQROCyO95U7UDhb3L0o
utTW2faty8ZiObxRJQQ6crvV0DWBS0oRWk65aUxkCcS7Lzev9alOc3DRttAlIDTw
egj8sX5vQ9cyV8HvpE55nPmwB1zcquEK1lBJQgHIFnI9Zhv+iR90eETtmysKx0i7
Dp6akTYnMPUGneitTATLI20ITH4ZEKz2pKtXfry0jDEA8nyKGXtHAscbJ/D6ebfP
+Xsg1sEVX3yMIYyD0ZU/VAEM7qxbKQ==
=YSQW
-----END PGP SIGNATURE-----payloadtree c50f82fe2420ab330236e3b2760983f291fd50a3
parent b88420e258b82530e6022008ca42e5c4cbe0b25d
author Jeremy Kong <jkong@palantir.com> 1677105637 +0000
committer Jeremy Kong <jkong@palantir.com> 1677105637 +0000

proof-of-concept: one row two cells
uujm9 ^https://api.github.com/repos/palantir/atlasdb/commits/aeaa2477790bfabd9968be5234ff598defbc81f3html_urlShttps://github.com/palantir/atlasdb/commit/aeaa2477790bfabd9968be5234ff598defbc81f3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/aeaa2477790bfabd9968be5234ff598defbc81f3/commentsj[9 }(login
jeremyk-91idJZ jW9 MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jm9 'https://api.github.com/users/jeremyk-91j{9 https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujc9 }(j9 
jeremyk-91j9 JZ jW9 MDQ6VXNlcjU5NTU1MTA=j9 3https://avatars.githubusercontent.com/u/5955510?v=4j9 h5jm9 'https://api.github.com/users/jeremyk-91j{9 https://github.com/jeremyk-91j9 1https://api.github.com/users/jeremyk-91/followersj9 >https://api.github.com/users/jeremyk-91/following{/other_user}j9 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j9 >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j9 5https://api.github.com/users/jeremyk-91/subscriptionsj9 ,https://api.github.com/users/jeremyk-91/orgsj9 -https://api.github.com/users/jeremyk-91/reposj9 8https://api.github.com/users/jeremyk-91/events{/privacy}j9 7https://api.github.com/users/jeremyk-91/received_eventsj9 Userj9 uparents]}(jU9 (b88420e258b82530e6022008ca42e5c4cbe0b25djm9 ^https://api.github.com/repos/palantir/atlasdb/commits/b88420e258b82530e6022008ca42e5c4cbe0b25dj{9 Shttps://github.com/palantir/atlasdb/commit/b88420e258b82530e6022008ca42e5c4cbe0b25duastats}(totalM2	additionsM/	deletionsKufiles](}(jU9 (fd5d78013eb4056187846856e7f21d019bd37382filename^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/Workflow.javastatusmodifiedj9 Kj9 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/aeaa2477790bfabd9968be5234ff598defbc81f3/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.javaraw_urlhttps://github.com/palantir/atlasdb/raw/aeaa2477790bfabd9968be5234ff598defbc81f3/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.java?ref=aeaa2477790bfabd9968be5234ff598defbc81f3patch@@ -20,7 +20,7 @@
 
 public interface Workflow {
     /**
-     * Runs desired workflow until completion.
+     * Runs desired workflow until completion, including calling callbacks registered via {@link #onComplete(Consumer)}.
      */
     void run();
 u}(jU9 (553ad07e771baca9b0f785b82615f3a485194b46j9 matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunner.javaj9 modifiedj9 Kj9 Kj9 Kj9 https://github.com/palantir/atlasdb/blob/aeaa2477790bfabd9968be5234ff598defbc81f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javaj9 https://github.com/palantir/atlasdb/raw/aeaa2477790bfabd9968be5234ff598defbc81f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javaj9 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.java?ref=aeaa2477790bfabd9968be5234ff598defbc81f3j9 X
  @@ -47,8 +47,8 @@ public Future<List<WitnessedTransaction>> runConcurrentTransactionTask(
                 "Tasks must be run a non-negative number of times",
                 SafeArg.of("providedTaskMultiplicity", taskMultiplicity));
         List<ListenableFuture<Optional<WitnessedTransaction>>> taskFutures = IntStream.range(0, taskMultiplicity)
-                .mapToObj(index ->
-                        listeningExecutorService.submit(() -> transactionTask.apply(transactionStore, index)))
+                .mapToObj(
+                        index -> listeningExecutorService.submit(() -> transactionTask.apply(transactionStore, index)))
                 .collect(Collectors.toList());
         return Futures.transform(
                 Futures.allAsList(taskFutures),u}(jU9 (dd3659061e45876906880b7f61a53b8d9ffecd66j9 qatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleCellWorkflowConfiguration.javaj9 addedj9 Kj9 K j9 Kj9 https://github.com/palantir/atlasdb/blob/aeaa2477790bfabd9968be5234ff598defbc81f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleCellWorkflowConfiguration.javaj9 https://github.com/palantir/atlasdb/raw/aeaa2477790bfabd9968be5234ff598defbc81f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleCellWorkflowConfiguration.javaj9 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleCellWorkflowConfiguration.java?ref=aeaa2477790bfabd9968be5234ff598defbc81f3j9 X  @@ -0,0 +1,29 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.util.concurrent.RateLimiter;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface SingleCellWorkflowConfiguration extends WorkflowConfiguration {
+    String tableName();
+
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(100);
+    }
+}u}(jU9 (9d3eee3171e2898a2c97061412a3a808ae35e6e1j9 latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javaj9 addedj9 KMj9 K j9 KMj9 https://github.com/palantir/atlasdb/blob/aeaa2477790bfabd9968be5234ff598defbc81f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj9 https://github.com/palantir/atlasdb/raw/aeaa2477790bfabd9968be5234ff598defbc81f3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj9 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=aeaa2477790bfabd9968be5234ff598defbc81f3j9 X,  @@ -0,0 +1,77 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.Streams;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+
+public final class SingleRowTwoCellsWorkflows {
+    private static final int SINGLE_ROW = 1;
+    private static final int FIRST_COLUMN = 1;
+    private static final int SECOND_COLUMN = 2;
+
+    @VisibleForTesting
+    static final WorkloadCell FIRST_CELL = ImmutableWorkloadCell.of(SINGLE_ROW, FIRST_COLUMN);
+
+    static final WorkloadCell SECOND_CELL = ImmutableWorkloadCell.of(SINGLE_ROW, SECOND_COLUMN);
+
+    private SingleRowTwoCellsWorkflows() {
+        // static factory
+    }
+
+    public static Workflow createSingleRowTwoCell(
+            TransactionStore store, SingleCellWorkflowConfiguration singleCellWorkflowConfiguration) {
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, index) -> run(txnStore, index, singleCellWorkflowConfiguration),
+                singleCellWorkflowConfiguration);
+    }
+
+    private static Optional<WitnessedTransaction> run(
+            TransactionStore store, int taskIndex, SingleCellWorkflowConfiguration workflowConfiguration) {
+        workflowConfiguration.transactionRateLimiter().acquire();
+
+        String tableName = workflowConfiguration.tableName();
+        List<TransactionAction> cellReads = ImmutableList.of(
+                ReadTransactionAction.of(tableName, FIRST_CELL), ReadTransactionAction.of(tableName, SECOND_CELL));
+        List<TransactionAction> cellUpdates = shouldWriteToFirstCell(taskIndex)
+                ? ImmutableList.of(
+                        WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
+                        DeleteTransactionAction.of(tableName, SECOND_CELL))
+                : ImmutableList.of(
+                        DeleteTransactionAction.of(tableName, FIRST_CELL),
+                        WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
+        return store.readWrite(Streams.concat(cellReads.stream(), cellUpdates.stream(), cellReads.stream())
+                .collect(Collectors.toList()));
+    }
+
+    private static boolean shouldWriteToFirstCell(int taskIndex) {
+        return taskIndex % 2 == 0;
+    }
+}u}(jU9 (6af3adf3ddf08c79f9dad9d294bdbc1ec93343a1j9 patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javaj9 addedj9 Kj9 K j9 Kj9 https://github.com/palantir/atlasdb/blob/aeaa2477790bfabd9968be5234ff598defbc81f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj9 https://github.com/palantir/atlasdb/raw/aeaa2477790bfabd9968be5234ff598defbc81f3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj9 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=aeaa2477790bfabd9968be5234ff598defbc81f3j9 XP&  @@ -0,0 +1,194 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.Namespace;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.Comparator;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import org.junit.Test;
+
+public class SingleRowTwoCellsWorkflowsTest {
+    private static final TableReference TEST_TABLE =
+            TableReference.create(Namespace.create("test"), "singleRowTwoCells");
+    private static final TransactionStore TRANSACTION_STORE = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(TEST_TABLE, AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
+    private static final int ITERATION_COUNT = 1_000;
+
+    @Test
+    public void smokeTest() {
+        Workflow workflow = SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
+                TRANSACTION_STORE,
+                ImmutableSingleCellWorkflowConfiguration.builder()
+                        .iterationCount(ITERATION_COUNT)
+                        .tableName(TEST_TABLE.getTableName())
+                        .executionExecutor(MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(100)))
+                        .build());
+        workflow.onComplete(this::assertWorkflowHistoryConsistent);
+        workflow.run();
+    }
+
+    // This is basically a very simple invariant checker
+    private void assertWorkflowHistoryConsistent(WorkflowHistory workflowHistory) {
+        List<WitnessedTransaction> transactionsByCommitTime = workflowHistory.history().stream()
+                .sorted(Comparator.comparingLong(witnessedTransaction ->
+                        witnessedTransaction.commitTimestamp().orElseThrow()))
+                .collect(Collectors.toList());
+
+        for (WitnessedTransaction transaction : transactionsByCommitTime) {
+            validateLocalReadsMatchLocalWrites(transaction);
+        }
+
+        // Start from 1 intentional as we want to look at pairs of transactions
+        for (int index = 1; index < transactionsByCommitTime.size(); index++) {
+            WitnessedTransaction predecessor = transactionsByCommitTime.get(index - 1);
+            WitnessedTransaction successor = transactionsByCommitTime.get(index);
+
+            assertThat(predecessor.commitTimestamp().orElseThrow())
+                    .as("given all transactions touch the same cells, they should conflict and so concurrency should "
+                            + "not be allowed")
+                    .isLessThan(successor.startTimestamp());
+
+            validatePredecessorWritesSeenBySuccessor(predecessor, successor);
+        }
+
+        validateFinalTableState(workflowHistory);
+    }
+
+    private static void validateLocalReadsMatchLocalWrites(WitnessedTransaction transaction) {
+        // The indexing is nasty, but I imagine verifiers are always going to be coupled to the implementation of the
+        // task.
+        WitnessedReadTransactionAction firstCellRead =
+                transaction.actions().get(4).accept(ReadWitnessCaster.INSTANCE);
+        WitnessedReadTransactionAction secondCellRead =
+                transaction.actions().get(5).accept(ReadWitnessCaster.INSTANCE);
+        transaction.actions().get(2).accept(new ReadValidationVisitor(firstCellRead));
+        transaction.actions().get(3).accept(new ReadValidationVisitor(secondCellRead));
+    }
+
+    private static void validatePredecessorWritesSeenBySuccessor(
+            WitnessedTransaction predecessor, WitnessedTransaction successor) {
+        // The indexing is nasty, but I imagine verifiers are always going to be coupled to the implementation of the
+        // task.
+        WitnessedReadTransactionAction firstCellRead =
+                successor.actions().get(0).accept(ReadWitnessCaster.INSTANCE);
+        WitnessedReadTransactionAction secondCellRead =
+                successor.actions().get(1).accept(ReadWitnessCaster.INSTANCE);
+        predecessor.actions().get(2).accept(new ReadValidationVisitor(firstCellRead));
+        predecessor.actions().get(3).accept(new ReadValidationVisitor(secondCellRead));
+    }
+
+    private static void validateFinalTableState(WorkflowHistory workflowHistory) {
+        Optional<Integer> firstCellState = workflowHistory
+                .transactionStore()
+                .get(TEST_TABLE.getTableName(), SingleRowTwoCellsWorkflows.FIRST_CELL);
+        Optional<Integer> secondCellState = workflowHistory
+                .transactionStore()
+                .get(TEST_TABLE.getTableName(), SingleRowTwoCellsWorkflows.SECOND_CELL);
+        assertThat(firstCellState.isPresent() ^ secondCellState.isPresent())
+                .as("exactly one of the cells should be present")
+                .isTrue();
+        int cellValue = Stream.of(firstCellState, secondCellState)
+                .flatMap(Optional::stream)
+                .findAny()
+                .orElseThrow();
+        assertThat(cellValue)
+                .as("cell value must correspond with the ID of a writer")
+                .isBetween(0, ITERATION_COUNT);
+    }
+
+    private static class ReadValidationVisitor implements WitnessedTransactionActionVisitor<Void> {
+        private final WitnessedReadTransactionAction readWitness;
+
+        private ReadValidationVisitor(WitnessedReadTransactionAction readWitness) {
+            this.readWitness = readWitness;
+        }
+
+        @Override
+        public Void visit(WitnessedReadTransactionAction readTransactionAction) {
+            throw new SafeIllegalStateException("Meaningless to validate read against another read");
+        }
+
+        @Override
+        public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
+            Preconditions.checkState(
+                    writeTransactionAction.cell().equals(readWitness.cell()),
+                    "Read validations should only happen in relation to mutations of the same cell",
+                    SafeArg.of("readWitness", readWitness),
+                    SafeArg.of("writeTransactionAction", writeTransactionAction));
+            assertThat(readWitness.value())
+                    .as("reads should match the preceding write")
+                    .contains(writeTransactionAction.value());
+            return null;
+        }
+
+        @Override
+        public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+            Preconditions.checkState(
+                    deleteTransactionAction.cell().equals(readWitness.cell()),
+                    "Read validations should only happen in relation to mutations of the same cell",
+                    SafeArg.of("readWitness", readWitness),
+                    SafeArg.of("deleteTransactionAction", deleteTransactionAction));
+            assertThat(readWitness.value())
+                    .as("deletions should mean we do not read a value")
+                    .isEmpty();
+            return null;
+        }
+    }
+
+    private enum ReadWitnessCaster implements WitnessedTransactionActionVisitor<WitnessedReadTransactionAction> {
+        INSTANCE;
+
+        @Override
+        public WitnessedReadTransactionAction visit(WitnessedReadTransactionAction readTransactionAction) {
+            return readTransactionAction;
+        }
+
+        @Override
+        public WitnessedReadTransactionAction visit(WitnessedWriteTransactionAction writeTransactionAction) {
+            throw new SafeIllegalStateException("Expecting a read transaction action, but found a write");
+        }
+
+        @Override
+        public WitnessedReadTransactionAction visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+            throw new SafeIllegalStateException("Expecting a read transaction action, but found a delete");
+        }
+    }
+}ueu(cdb0b2ee134c7275bc9e3133ef76334b857a678c}(sha(cdb0b2ee134c7275bc9e3133ef76334b857a678cnode_idEC_kwDOAjP5fdoAKGNkYjBiMmVlMTM0YzcyNzViYzllMzEzM2VmNzYzMzRiODU3YTY3OGMcommit}(author}(nameFabian Windheuseremailfwindheuser@palantir.comdate2023-07-06T09:19:43Zu	committer}(j9 Fabian Windheuserj9 fwindheuser@palantir.comj9 2023-07-06T09:19:43ZumessageUpdate Guavatree}(j9 (453463c5635821a350f43572080198c6b51f7206url`https://api.github.com/repos/palantir/atlasdb/git/trees/453463c5635821a350f43572080198c6b51f7206uj: bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cdb0b2ee134c7275bc9e3133ef76334b857a678c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEAib7yudlmWjYX+B11nJEKx9MErIFAmSmhy8ACgkQ1nJEKx9M
ErJf2Af/TjU5uD/+2kquLKHDMVDeR0gnl6mgF4qde8Mb/aya9+kze6hwQuRZ7nfA
eOeQrOqJrBmEgSd4zp9804ouWLGVxSEnt0jmvcy8w9QfDIzJRoqZygVpGV9sI9Fe
B6qUrXpj0/UyZkFerquaiPUYZLom7uDxdlvTYpyEAocGy3a43410vULDNvhldqoN
vQ32pIi8bHSgBi+UHbXsygM1htuklNcYZ3MIACk1b2P/zAedUL7jwJnX91r8JNFi
ngLjfJMuQkqrQMzXJNsoyKexy6gaqJYI3TTC5jiIJEpDidHsMa4bVCV0018DjTJG
5uASNNYUcCV3N0k5GYF+1Uqc4e5G2w==
=Z6v6
-----END PGP SIGNATURE-----payloadtree 453463c5635821a350f43572080198c6b51f7206
parent ce5995e9c0f0098e6cff531d1e687c682e7052f3
author Fabian Windheuser <fwindheuser@palantir.com> 1688635183 +0100
committer Fabian Windheuser <fwindheuser@palantir.com> 1688635183 +0100

Update Guava
uuj: ^https://api.github.com/repos/palantir/atlasdb/commits/cdb0b2ee134c7275bc9e3133ef76334b857a678chtml_urlShttps://github.com/palantir/atlasdb/commit/cdb0b2ee134c7275bc9e3133ef76334b857a678ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cdb0b2ee134c7275bc9e3133ef76334b857a678c/commentsj9 }(loginfawindidJb@q j9 MDQ6VXNlcjc0MjIwNTA=
avatar_url3https://avatars.githubusercontent.com/u/7422050?v=4gravatar_idh5j: #https://api.github.com/users/fawindj: https://github.com/fawind
followers_url-https://api.github.com/users/fawind/followers
following_url:https://api.github.com/users/fawind/following{/other_user}	gists_url3https://api.github.com/users/fawind/gists{/gist_id}starred_url:https://api.github.com/users/fawind/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/fawind/subscriptionsorganizations_url(https://api.github.com/users/fawind/orgs	repos_url)https://api.github.com/users/fawind/repos
events_url4https://api.github.com/users/fawind/events{/privacy}received_events_url3https://api.github.com/users/fawind/received_eventstypeUser
site_adminuj9 }(j: fawindj: Jb@q j9 MDQ6VXNlcjc0MjIwNTA=j: 3https://avatars.githubusercontent.com/u/7422050?v=4j: h5j: #https://api.github.com/users/fawindj: https://github.com/fawindj : -https://api.github.com/users/fawind/followersj": :https://api.github.com/users/fawind/following{/other_user}j$: 3https://api.github.com/users/fawind/gists{/gist_id}j&: :https://api.github.com/users/fawind/starred{/owner}{/repo}j(: 1https://api.github.com/users/fawind/subscriptionsj*: (https://api.github.com/users/fawind/orgsj,: )https://api.github.com/users/fawind/reposj.: 4https://api.github.com/users/fawind/events{/privacy}j0: 3https://api.github.com/users/fawind/received_eventsj2: Userj4: uparents]}(j9 (ce5995e9c0f0098e6cff531d1e687c682e7052f3j: ^https://api.github.com/repos/palantir/atlasdb/commits/ce5995e9c0f0098e6cff531d1e687c682e7052f3j: Shttps://github.com/palantir/atlasdb/commit/ce5995e9c0f0098e6cff531d1e687c682e7052f3uastats}(totalK	additionsK	deletionsKufiles](}(j9 (9f1fb8e536888de78071bd067b317dbf60414a85filename
versions.lockstatusmodifiedjN: KjO: KchangesK
blob_url_https://github.com/palantir/atlasdb/blob/cdb0b2ee134c7275bc9e3133ef76334b857a678c/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/cdb0b2ee134c7275bc9e3133ef76334b857a678c/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=cdb0b2ee134c7275bc9e3133ef76334b857a678cpatchX	  @@ -45,13 +45,13 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f2947442)
+com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f994935f)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
-com.google.guava:guava:31.1-jre (48 constraints: a337bcb3)
+com.google.guava:guava:32.1.1-jre (48 constraints: 03383c24)
 com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava (1 constraints: bd17c918)
-com.google.j2objc:j2objc-annotations:1.3 (1 constraints: b809eda0)
+com.google.j2objc:j2objc-annotations:2.8 (1 constraints: be09f5a0)
 com.google.protobuf:protobuf-java:3.21.9 (1 constraints: 4105453b)
 com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4 (1 constraints: 350f7769)
 com.googlecode.json-simple:json-simple:1.1 (1 constraints: 320f7469)
@@ -94,7 +94,7 @@ com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 cons
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
 com.palantir.docker.proxy:docker-proxy-rule-core:1.6.0 (2 constraints: 161ab906)
 com.palantir.docker.proxy:docker-proxy-rule-junit4:1.6.0 (1 constraints: 09050236)
-com.palantir.goethe:goethe:0.9.0 (1 constraints: 0b050636)
+com.palantir.goethe:goethe:0.11.0 (1 constraints: 3405263b)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
 com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
@@ -225,7 +225,7 @@ org.assertj:assertj-guava:3.24.2 (1 constraints: 3d05473b)
 org.awaitility:awaitility:4.2.0 (2 constraints: c71a893b)
 org.caffinitas.ohc:ohc-core:0.3.4 (1 constraints: 950f6988)
 org.checkerframework:checker-compat-qual:2.5.5 (2 constraints: 1f1d1717)
-org.checkerframework:checker-qual:3.32.0 (3 constraints: 6c2607e2)
+org.checkerframework:checker-qual:3.33.0 (3 constraints: 6f2678e2)
 org.clojure:clojure:1.8.0 (1 constraints: 0b050836)
 org.codehaus.groovy:groovy:2.5.14 (23 constraints: b55185ba)
 org.codehaus.groovy:groovy-cli-picocli:2.5.14 (5 constraints: d54e9017)u}(j9 (d701bfa52ce6217e8aa4eee2d0b14afcd17bce6ajT: versions.propsjV: modifiedjN: KjO: KjX: KjY: `https://github.com/palantir/atlasdb/blob/cdb0b2ee134c7275bc9e3133ef76334b857a678c/versions.propsj[: _https://github.com/palantir/atlasdb/raw/cdb0b2ee134c7275bc9e3133ef76334b857a678c/versions.propsj]: rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=cdb0b2ee134c7275bc9e3133ef76334b857a678cj_: X)  @@ -17,7 +17,7 @@ com.google.dagger:* = 2.44.1
 com.google.devtools.ksp:symbol-processing-api = 1.5.21-1.0.0-beta07
 com.google.errorprone:* = 2.10.0 # upgrading to 2.11.0 is blocked by a google bug
 com.google.errorprone:error_prone_annotations = 2.10.0
-com.google.guava:guava = 31.1-jre
+com.google.guava:guava = 32.1.1-jre
 com.google.protobuf:* = 3.21.9
 com.googlecode.protobuf-java-format:* = 1.4
 com.lmax:disruptor = 3.4.2
@@ -30,7 +30,7 @@ com.palantir.conjure:conjure = 4.36.0
 com.palantir.dialogue:* = 3.78.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
-com.palantir.goethe:* = 0.9.0
+com.palantir.goethe:* = 0.11.0
 com.palantir.nylon:* = 0.3.0
 com.palantir.refreshable:refreshable = 2.2.0
 com.palantir.safe-logging:* = 3.2.0ueu(ad936a859c3bd0026b09c354741741a5c3cb5670}(sha(ad936a859c3bd0026b09c354741741a5c3cb5670node_idEC_kwDOAjP5fdoAKGFkOTM2YTg1OWMzYmQwMDI2YjA5YzM1NDc0MTc0MWE1YzNjYjU2NzAcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-12T15:52:13Zu	committer}(js: Lucas Meirelesju: meireles31@msn.comjw: 2023-06-12T15:52:13Zumessage9continue denying ReadTransaction on ThoroughlySweptTablestree}(jk: (cf35b07be8cd14f9be44b739c5d116fec3166a28url`https://api.github.com/repos/palantir/atlasdb/git/trees/cf35b07be8cd14f9be44b739c5d116fec3166a28uj: bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ad936a859c3bd0026b09c354741741a5c3cb5670
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSHPy0ACgkQJd22kJ7J
GiwCTwgAiZ5oe/Sjs/No66xOUlxXhjiiLdiI2romIumbOgjsJEiwxIBidhg8FB/4
oEHzCawEG1vC4EcV/wF6OWxdSWvunB4aeeGorMrzEfMm8YR9+7+0L6/gfhnBIS/Z
hfDDjslSvh6+EOw2t+zwoDBVQ9XUiQvYuyYTxStikF0jL66mY7iTZN7A9BMoQiot
l/uXplxx3aem8ZOQWnRK3p8hjELkYQl8t7/JoZ8qg9vzjwWlHYa6clvXvJoVuSvA
TtY3oMi6XFjjXF76NgqhY3vIE4Yi/aGF2+1sG4yQ0MYtmx6wb4Ygv2KtyXQB9m4K
7hTcAkHwag/kYAuu6v81wlTvasbvdA==
=asm0
-----END PGP SIGNATURE-----payloadX  tree cf35b07be8cd14f9be44b739c5d116fec3166a28
parent 081511c27837c3dc934a43d4fcf069fd998bbf5b
author Lucas Meireles <meireles31@msn.com> 1686585133 +0100
committer Lucas Meireles <meireles31@msn.com> 1686585133 +0100

continue denying ReadTransaction on ThoroughlySweptTables
uuj: ^https://api.github.com/repos/palantir/atlasdb/commits/ad936a859c3bd0026b09c354741741a5c3cb5670html_urlShttps://github.com/palantir/atlasdb/commit/ad936a859c3bd0026b09c354741741a5c3cb5670comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ad936a859c3bd0026b09c354741741a5c3cb5670/commentsjq: }(loginLucasIMEidJg jm: MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j: %https://api.github.com/users/LucasIMEj: https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujy: }(j: LucasIMEj: Jg jm: MDQ6VXNlcjY3ODczMTE=j: 3https://avatars.githubusercontent.com/u/6787311?v=4j: h5j: %https://api.github.com/users/LucasIMEj: https://github.com/LucasIMEj: /https://api.github.com/users/LucasIME/followersj: <https://api.github.com/users/LucasIME/following{/other_user}j: 5https://api.github.com/users/LucasIME/gists{/gist_id}j: <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j: 3https://api.github.com/users/LucasIME/subscriptionsj: *https://api.github.com/users/LucasIME/orgsj: +https://api.github.com/users/LucasIME/reposj: 6https://api.github.com/users/LucasIME/events{/privacy}j: 5https://api.github.com/users/LucasIME/received_eventsj: Userj: uparents]}(jk: (081511c27837c3dc934a43d4fcf069fd998bbf5bj: ^https://api.github.com/repos/palantir/atlasdb/commits/081511c27837c3dc934a43d4fcf069fd998bbf5bj: Shttps://github.com/palantir/atlasdb/commit/081511c27837c3dc934a43d4fcf069fd998bbf5buastats}(totalK	additionsK	deletionsKufiles]}(jk: (47323c005485795a97d3b3c89eda850fe0822387filenameWatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ReadTransaction.javastatusmodifiedj: Kj: KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ad936a859c3bd0026b09c354741741a5c3cb5670/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ad936a859c3bd0026b09c354741741a5c3cb5670/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.java?ref=ad936a859c3bd0026b09c354741741a5c3cb5670patchX  @@ -138,7 +138,8 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
     private void checkTableName(TableReference tableRef) {
         SweepStrategy sweepStrategy = sweepStrategies.get(tableRef);
         Preconditions.checkState(
-                !sweepStrategy.mustCheckImmutableLock(false /* no read was actually done */),
+                !sweepStrategy.mustCheckImmutableLock(true /* no read was actually done, but we don't want to use
+                ReadTransaction on thoroughly swept tables */),
                 "This table cannot be read from a read-only transaction, because its "
                         + "sweep strategy is neither NOTHING nor CONSERVATIVE",
                 LoggingArgs.tableRef(tableRef));uau(ee5713848ae91bc2c7e1d8c403c2c4eb4c19b96e}(sha(ee5713848ae91bc2c7e1d8c403c2c4eb4c19b96enode_idEC_kwDOAjP5fdoAKGVlNTcxMzg0OGFlOTFiYzJjN2UxZDhjNDAzYzJjNGViNGMxOWI5NmUcommit}(author}(nameMohammed Daudaliemailmdaudali@palantir.comdate2023-05-19T13:21:06Zu	committer}(j: Mohammed Daudalij: mdaudali@palantir.comj: 2023-05-19T13:21:06Zumessage&make it all info since it's just an RCtree}(j: (fb6c780c71656eaf75fba7d110e95d34fb23d092url`https://api.github.com/repos/palantir/atlasdb/git/trees/fb6c780c71656eaf75fba7d110e95d34fb23d092uj: bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ee5713848ae91bc2c7e1d8c403c2c4eb4c19b96e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE85NpmxiQII63+jWv1DJ7K5YIya0FAmRnd8IACgkQ1DJ7K5YI
ya2X9Af9GSu2PO3IBNsNloI3I5bQq6uApoU8zhcefm66WaoPcdJqI+KSXPj91f4U
X30UxArlH1AkGondQIlhaOZpwFK8Qy6l3Pk3Btu8ELFTYWO4Ku/do63LiBTrFfSq
sZxWZANXiiawhj5JNVnNLTHBfxLkTS5h5WJurpWwteqAPPzttpUajYYYZxFurMMI
BvAWqmPC6etnXf1nU9OhlQH4KrDXKy1PMaF0jfPm4BioZ3HOgYvDXotEN+dPHO9u
z+JY6UmEJvyJo5L7IqksoaAABSc8ZG14ZZdB9mZpzVb1IiZ3ikPbRSmAwcBXgPkR
x0cJ067iKcKaLuDot5tBkEfGm8PVxg==
=Vi5k
-----END PGP SIGNATURE-----;      payloadX  tree fb6c780c71656eaf75fba7d110e95d34fb23d092
parent 0f014d7af9f371e8c7944b7b3e2a6deb9bda10d0
author Mohammed Daudali <mdaudali@palantir.com> 1684502466 +0100
committer Mohammed Daudali <mdaudali@palantir.com> 1684502466 +0100

make it all info since it's just an RC
uuj: ^https://api.github.com/repos/palantir/atlasdb/commits/ee5713848ae91bc2c7e1d8c403c2c4eb4c19b96ehtml_urlShttps://github.com/palantir/atlasdb/commit/ee5713848ae91bc2c7e1d8c403c2c4eb4c19b96ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ee5713848ae91bc2c7e1d8c403c2c4eb4c19b96e/commentsj: }(loginmdaudaliidJ j: MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5j: %https://api.github.com/users/mdaudalij; https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminuj: }(j
; mdaudalij; J j: MDQ6VXNlcjE4MTI3NjQ=j; 3https://avatars.githubusercontent.com/u/1812764?v=4j; h5j: %https://api.github.com/users/mdaudalij; https://github.com/mdaudalij; /https://api.github.com/users/mdaudali/followersj; <https://api.github.com/users/mdaudali/following{/other_user}j; 5https://api.github.com/users/mdaudali/gists{/gist_id}j; <https://api.github.com/users/mdaudali/starred{/owner}{/repo}j; 3https://api.github.com/users/mdaudali/subscriptionsj ; *https://api.github.com/users/mdaudali/orgsj"; +https://api.github.com/users/mdaudali/reposj$; 6https://api.github.com/users/mdaudali/events{/privacy}j&; 5https://api.github.com/users/mdaudali/received_eventsj(; Userj*; uparents]}(j: (0f014d7af9f371e8c7944b7b3e2a6deb9bda10d0j: ^https://api.github.com/repos/palantir/atlasdb/commits/0f014d7af9f371e8c7944b7b3e2a6deb9bda10d0j; Shttps://github.com/palantir/atlasdb/commit/0f014d7af9f371e8c7944b7b3e2a6deb9bda10d0uastats}(totalK!	additionsK
	deletionsKufiles]}(j: (d3d0934580d2238766440f21f24a6cdcdb89c589filename_atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTable.javastatusmodifiedjD; K
jE; KchangesK!blob_urlhttps://github.com/palantir/atlasdb/blob/ee5713848ae91bc2c7e1d8c403c2c4eb4c19b96e/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ee5713848ae91bc2c7e1d8c403c2c4eb4c19b96e/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.java?ref=ee5713848ae91bc2c7e1d8c403c2c4eb4c19b96epatchX\  @@ -101,13 +101,9 @@ public void create(byte[] tableMetadata) {
         int compressionSetting = getOptimalIndexCompression(metadata);
 
         if (tableExists()) {
-            if (log.isDebugEnabled()) {
-                log.debug("Table {} already exists.", LoggingArgs.tableRef(tableRef));
-            }
+            log.info("Table {} already exists.", LoggingArgs.tableRef(tableRef));
             if (needsOverflow) {
-                if (log.isDebugEnabled()) {
-                    log.debug("Table {} needs overflow.", LoggingArgs.tableRef(tableRef));
-                }
+                log.info("Table {} needs overflow.", LoggingArgs.tableRef(tableRef));
                 TableValueStyle existingStyle = valueStyleCache.getTableType(conns, tableRef, config.metadataTable());
                 if (existingStyle != TableValueStyle.OVERFLOW) {
                     throwForMissingOverflowTable();
@@ -133,23 +129,20 @@ public void create(byte[] tableMetadata) {
     }
 
     private void maybeAlterTableToHaveOverflowColumn() {
-        if (log.isDebugEnabled()) {
-            log.debug("Potentially altering table {} to have overflow column.", LoggingArgs.tableRef(tableRef));
-        }
+        log.info("Potentially altering table {} to have overflow column.", LoggingArgs.tableRef(tableRef));
         if (config.alterTablesOrMetadataToMatch().contains(tableRef)) {
-            if (log.isDebugEnabled()) {
-                log.debug("Config contains table {}, checking if we can alter table.", LoggingArgs.tableRef(tableRef));
-            }
+            log.info("Config contains table {}, checking if we can alter table.", LoggingArgs.tableRef(tableRef));
             try {
                 String shortTableName = oracleTableNameGetter.getInternalShortTableName(conns, tableRef);
-                if (log.isDebugEnabled()) {
-                    log.debug(
-                            "Overflow table migrated status: {}, overflow table existence status: {}, overflow "
-                                    + "column exists status: {}",
-                            SafeArg.of("overflowTableHasMigrated", overflowTableHasMigrated()),
-                            SafeArg.of("overflowTableExists", overflowTableExists()),
-                            SafeArg.of("overflowColumnExists", overflowColumnExists(shortTableName)));
-                }
+                log.info(
+                        "Table name: {}, Overflow table migrated status: {}, overflow table existence status: {}, "
+                                + "overflow "
+                                + "column exists status: {}",
+                        LoggingArgs.tableRef(tableRef),
+                        SafeArg.of("overflowTableHasMigrated", overflowTableHasMigrated()),
+                        SafeArg.of("overflowTableExists", overflowTableExists()),
+                        SafeArg.of("overflowColumnExists", overflowColumnExists(shortTableName)));
+
                 if (overflowTableHasMigrated() && overflowTableExists() && !overflowColumnExists(shortTableName)) {
                     alterTableToHaveOverflowColumn(shortTableName);
                 }uau(6e753ce058758df99aa9cf20a0e12cd0c6c54c89}(sha(6e753ce058758df99aa9cf20a0e12cd0c6c54c89node_idEC_kwDOAjP5fdoAKDZlNzUzY2UwNTg3NThkZjk5YWE5Y2YyMGEwZTEyY2QwYzZjNTRjODkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-24T09:18:47Zu	committer}(ja; 
Ahmed Alouanejc; aalouane@palantir.comje; 2023-04-24T09:18:47Zumessagewhat can I not do exactly?tree}(jY; (ae8a52899b15932de1bc695b0b7078f4f9a1f0ceurl`https://api.github.com/repos/palantir/atlasdb/git/trees/ae8a52899b15932de1bc695b0b7078f4f9a1f0ceujq; bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6e753ce058758df99aa9cf20a0e12cd0c6c54c89
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRGSXcACgkQPlMHVIT1
yhp2qQf/So4I0Fj/79jeO+GG4CVVSmTJqM4x8k3N0cZg8Z+u7mDFqtZnRG2WMamk
oKlVfEdj57t9hFgfTlkW0DJII1XBpSTmbm8qU63YtveLu7TMYhAcZUgvpvWuvti5
ES4vgR+FrkgR0rI5SpKfsepg4+HKI5ZSb3dc3Ubjcp4dk+zeJhF437tDNWbz2HoW
FuGaxmJWpl4pR40kd99uHNvy8Zh87R23UbkddpLsNvb5SOTOCwzTzmGOwYWiBywH
t4uZ0qdWcaeazdmT0i5gOVoyjxyAuIPIHZk7EgiVbd1I86MLGrPb0YTxzhbbhXF4
CGXz1QIFhbKPD8GxWpsZbJ8xG/nF/w==
=XRgG
-----END PGP SIGNATURE-----payloadtree ae8a52899b15932de1bc695b0b7078f4f9a1f0ce
parent b0f9cf5178df6a7dbe45155cf2cdf9c210d87f35
author Ahmed Alouane <aalouane@palantir.com> 1682327927 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682327927 +0100

what can I not do exactly?
uujq; ^https://api.github.com/repos/palantir/atlasdb/commits/6e753ce058758df99aa9cf20a0e12cd0c6c54c89html_urlShttps://github.com/palantir/atlasdb/commit/6e753ce058758df99aa9cf20a0e12cd0c6c54c89comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6e753ce058758df99aa9cf20a0e12cd0c6c54c89/commentsj_; }(loginergo14idJj[; MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jq; #https://api.github.com/users/ergo14j; https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujg; }(j; ergo14j; Jj[; MDQ6VXNlcjMwOTAzNzM2j; 4https://avatars.githubusercontent.com/u/30903736?v=4j; h5jq; #https://api.github.com/users/ergo14j; https://github.com/ergo14j; -https://api.github.com/users/ergo14/followersj; :https://api.github.com/users/ergo14/following{/other_user}j; 3https://api.github.com/users/ergo14/gists{/gist_id}j; :https://api.github.com/users/ergo14/starred{/owner}{/repo}j; 1https://api.github.com/users/ergo14/subscriptionsj; (https://api.github.com/users/ergo14/orgsj; )https://api.github.com/users/ergo14/reposj; 4https://api.github.com/users/ergo14/events{/privacy}j; 3https://api.github.com/users/ergo14/received_eventsj; Userj; uparents]}(jY; (b0f9cf5178df6a7dbe45155cf2cdf9c210d87f35jq; ^https://api.github.com/repos/palantir/atlasdb/commits/b0f9cf5178df6a7dbe45155cf2cdf9c210d87f35j; Shttps://github.com/palantir/atlasdb/commit/b0f9cf5178df6a7dbe45155cf2cdf9c210d87f35uastats}(totalK	additionsK	deletionsKufiles]}(jY; (5141e8ad2ffbd3d9b9c7f491fc38a18c40e1bb39filenamescripts/circle-ci/abort.shstatusmodifiedj; Kj; KchangesKblob_urlphttps://github.com/palantir/atlasdb/blob/6e753ce058758df99aa9cf20a0e12cd0c6c54c89/scripts%2Fcircle-ci%2Fabort.shraw_urlohttps://github.com/palantir/atlasdb/raw/6e753ce058758df99aa9cf20a0e12cd0c6c54c89/scripts%2Fcircle-ci%2Fabort.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fabort.sh?ref=6e753ce058758df99aa9cf20a0e12cd0c6c54c89patch@@ -16,5 +16,5 @@
 
 for i in $(seq 1 $(expr $CIRCLE_NODE_TOTAL - 1));
 do
-  if [ $i -ne $CIRCLE_NODE_INDEX ]; then ssh node$i 'circleci-agent step halt'; fi
+  if [ $i -ne $CIRCLE_NODE_INDEX ]; then ssh node$i 'echo "hello"'; fi
 doneuau(b7acc6020b48e68a0a2097706d411f1436127bdc}(sha(b7acc6020b48e68a0a2097706d411f1436127bdcnode_idEC_kwDOAjP5fdoAKGI3YWNjNjAyMGI0OGU2OGEwYTIwOTc3MDZkNDExZjE0MzYxMjdiZGMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-20T14:41:19Zu	committer}(j; 
Sam Kramerj; skramer@palantir.comj; 2023-06-20T14:41:19Zumessage0NEVER mock executor service unless you want OOMstree}(j; (65a15fd43e6711139bcbfd3960079e9154996c1curl`https://api.github.com/repos/palantir/atlasdb/git/trees/65a15fd43e6711139bcbfd3960079e9154996c1cuj; bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b7acc6020b48e68a0a2097706d411f1436127bdc
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSRupAACgkQmPPOpKR4
XS1f4ggAwpiCUwTwyBOrl3ZzUQ4DIYNaREgq3ERDTGmF5p/CWBAKMKSxVHijOzOW
YxNRC10pYdtOPaA29HKryVKUH9QsqirTO7ejxg+vcBCNem04xgRqnZO3megOBGWF
LcndEc7QUf87+nfnvgkSxyZP4HX/t9gtrhdExtBjvGHSrpZGP7YyZ5osQWzJfUk7
jU3b7t9qwVUzwy/hqWQJwNPm075Uscch1S8KjhCuuJMtTLWF8MIADNK4xGI5glfZ
9JNMSxg1s1edsQyC4t6q3qUjHZ+2rooDNTFx9Ex088EyJzZJxLCpYkx3XeOte5Bw
f6WN8gyjZCuX5L8Ldsa3UVrvZrobuw==
=f+FN
-----END PGP SIGNATURE-----payloadX  tree 65a15fd43e6711139bcbfd3960079e9154996c1c
parent 5256474c5a21711899e45e3fa045a0dbfef4d7f2
author Sam Kramer <skramer@palantir.com> 1687272079 +0100
committer Sam Kramer <skramer@palantir.com> 1687272079 +0100

NEVER mock executor service unless you want OOMs
uuj; ^https://api.github.com/repos/palantir/atlasdb/commits/b7acc6020b48e68a0a2097706d411f1436127bdchtml_urlShttps://github.com/palantir/atlasdb/commit/b7acc6020b48e68a0a2097706d411f1436127bdccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b7acc6020b48e68a0a2097706d411f1436127bdc/commentsj; }(login
Sam-KrameridJ^2_ j; MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j; 'https://api.github.com/users/Sam-Kramerj; https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj; }(j; 
Sam-Kramerj; J^2_ j; MDQ6VXNlcjYyMzg4MTQ=j; 3https://avatars.githubusercontent.com/u/6238814?v=4j< h5j; 'https://api.github.com/users/Sam-Kramerj; https://github.com/Sam-Kramerj< 1https://api.github.com/users/Sam-Kramer/followersj< >https://api.github.com/users/Sam-Kramer/following{/other_user}j< 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j
< >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j< 5https://api.github.com/users/Sam-Kramer/subscriptionsj< ,https://api.github.com/users/Sam-Kramer/orgsj< -https://api.github.com/users/Sam-Kramer/reposj< 8https://api.github.com/users/Sam-Kramer/events{/privacy}j< 7https://api.github.com/users/Sam-Kramer/received_eventsj< Userj< uparents]}(j; (5256474c5a21711899e45e3fa045a0dbfef4d7f2j; ^https://api.github.com/repos/palantir/atlasdb/commits/5256474c5a21711899e45e3fa045a0dbfef4d7f2j; Shttps://github.com/palantir/atlasdb/commit/5256474c5a21711899e45e3fa045a0dbfef4d7f2uastats}(totalK?	additionsK!	deletionsKufiles](}(j; (6845a8ddc4fd6615a1d22abe78d841f44fb0bbccfilenameLatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/AtlasDbTestCase.javastatusmodifiedj2< Kj3< KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b7acc6020b48e68a0a2097706d411f1436127bdc/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b7acc6020b48e68a0a2097706d411f1436127bdc/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.java?ref=b7acc6020b48e68a0a2097706d411f1436127bdcpatchXh  @@ -52,6 +52,7 @@
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Rule;
@@ -82,11 +83,9 @@ public class AtlasDbTestCase {
     @Rule
     public InMemoryTimeLockRule inMemoryTimeLockRule = new InMemoryTimeLockRule(CLIENT);
 
-    // Needed for preventing runnables from being executed by an executor service
-    @SuppressWarnings("DoNotMock")
     @Before
     public void setUp() throws Exception {
-        deleteExecutor = MoreExecutors.newDirectExecutorService();
+        deleteExecutor = Executors.newSingleThreadExecutor();
         lockClient = LockClient.of(CLIENT);
         lockService = inMemoryTimeLockRule.getLockService();
         timelockService = inMemoryTimeLockRule.getLegacyTimelockService();u}(j; (68764f393c39a5a342e69148f5db3c0f194af96aj8< eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj:< modifiedj2< Kj3< Kj<< K:j=< https://github.com/palantir/atlasdb/blob/b7acc6020b48e68a0a2097706d411f1436127bdc/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj?< https://github.com/palantir/atlasdb/raw/b7acc6020b48e68a0a2097706d411f1436127bdc/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajA< https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=b7acc6020b48e68a0a2097706d411f1436127bdcjC< X  @@ -24,8 +24,6 @@
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyLong;
 import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.doCallRealMethod;
-import static org.mockito.Mockito.doNothing;
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.doThrow;
 import static org.mockito.Mockito.mock;
@@ -153,6 +151,7 @@
 import java.util.concurrent.Executors;
 import java.util.concurrent.Future;
 import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.Semaphore;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.function.BiFunction;
@@ -2437,31 +2436,36 @@ public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigratio
         assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
     }
 
-    // @Test
-    // public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
-    //     // Need to block deleter executor from deleting aborted values to help bloat the row.
-    //     doNothing().when(deleteExecutor).execute(any());
-    //
-    //     for (int idx = 0; idx < SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS; idx++) {
-    //         try {
-    //             txManager.runTaskWithConditionThrowOnConflict(ALWAYS_FAILS_CONDITION, (txn, _c) -> {
-    //                 txn.put(TABLE_NO_SWEEP, ImmutableMap.of(TEST_CELL, TEST_VALUE));
-    //                 return null;
-    //             });
-    //         } catch (TransactionFailedRetriableException _t) {
-    //             // Expected, as we want to create a large row with only aborted values.
-    //         }
-    //     }
-    //     assertThatLoggableExceptionThrownBy(
-    //                     () -> txManager.runTaskThrowOnConflict(txn -> txn.get(TABLE_NO_SWEEP, Set.of(TEST_CELL))))
-    //             .isInstanceOf(SafeIllegalStateException.class)
-    //             .hasMessageStartingWith("Unable to filter cells")
-    //             .hasExactlyArgs(
-    //                     SafeArg.of("table", TABLE_NO_SWEEP),
-    //                     SafeArg.of("maxIterations", SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS));
-    //     doCallRealMethod().when(deleteExecutor).execute(any());
-    //     txManager.getKeyValueService().truncateTable(TABLE_NO_SWEEP);
-    // }
+    @Test
+    public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
+        // Need to block deleter executor from deleting aborted values to help bloat the row.
+        Future<?> future = deleteExecutor.submit(() -> {
+            try {
+                new Semaphore(0).acquire();
+            } catch (InterruptedException e) {
+                // Do nothing, we should stop.
+            }
+        });
+
+        for (int idx = 0; idx < SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS; idx++) {
+            try {
+                txManager.runTaskWithConditionThrowOnConflict(ALWAYS_FAILS_CONDITION, (txn, _c) -> {
+                    txn.put(TABLE_NO_SWEEP, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+                    return null;
+                });
+            } catch (TransactionFailedRetriableException _t) {
+                // Expected, as we want to create a large row with only aborted values.
+            }
+        }
+        assertThatLoggableExceptionThrownBy(
+                        () -> txManager.runTaskThrowOnConflict(txn -> txn.get(TABLE_NO_SWEEP, Set.of(TEST_CELL))))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageStartingWith("Unable to filter cells")
+                .hasExactlyArgs(
+                        SafeArg.of("table", TABLE_NO_SWEEP),
+                        SafeArg.of("maxIterations", SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS));
+        future.cancel(true);
+    }
 
     private void verifyPrefetchValidations(
             List<byte[]> rows,ueu(9534db5ab161bf5f4aedd1c8a809b29f0350390f}(sha(9534db5ab161bf5f4aedd1c8a809b29f0350390fnode_idEC_kwDOAjP5fdoAKDk1MzRkYjVhYjE2MWJmNWY0YWVkZDFjOGE4MDliMjlmMDM1MDM5MGYcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-08-08T13:15:42Zu	committer}(jW< 	Tom PapkejY< tpapke@palantir.comj[< 2023-08-08T13:15:42Zumessage(Extract random value generator functionstree}(jO< (758d0b85ee9d0250e05af1eba7c609240ac404f5url`https://api.github.com/repos/palantir/atlasdb/git/trees/758d0b85ee9d0250e05af1eba7c609240ac404f5ujg< bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9534db5ab161bf5f4aedd1c8a809b29f0350390f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTSP/4ACgkQmF9s0kaF
Iw3UWwf+K9epnr+yvetJEvIlUKw8ZaXlPrnjXyQvYBHiSFj3fn1ACkg9OftsEfTX
Tnc2aT5j/fa5NQXwmxmKRgj/j1Zgy3rtxzMFNMMk/jw0VTI7UunsVyHzj2Ylzw/P
Jl5iO4MaQbY2k+9T6fkpf1aEfw4TjEuNH8AhvRlMxOCcr42cUiHf0f1iz0fYuQsl
P+bkFjAi5UZb/RH4kbNGmjYhAbEKGW8LCYaFeosXWJ4CH2QSG4tI12jPtdUHnpb9
nqUmqJRgCJSJf6cl+NfghpAhL8zrBeuyIJcWkkxMq38LpiADDVqz9fN0eebRzbNW
gthgOUHvauJbFvB7o/xwXmclHvoWng==
=sKu8
-----END PGP SIGNATURE-----payloadtree 758d0b85ee9d0250e05af1eba7c609240ac404f5
parent a88bd3e8db0ab427b8afa515f6b19167c9a6d0cf
author Tom Papke <tpapke@palantir.com> 1691500542 +0100
committer Tom Papke <tpapke@palantir.com> 1691500542 +0100

Extract random value generator functions
uujg< ^https://api.github.com/repos/palantir/atlasdb/commits/9534db5ab161bf5f4aedd1c8a809b29f0350390fhtml_urlShttps://github.com/palantir/atlasdb/commit/9534db5ab161bf5f4aedd1c8a809b29f0350390fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9534db5ab161bf5f4aedd1c8a809b29f0350390f/commentsjU< }(login	ToemmscheidJbojQ< MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jg< &https://api.github.com/users/Toemmscheju< https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj]< }(jz< 	Toemmschej|< JbojQ< MDQ6VXNlcjQzNjc1NDkwj~< 4https://avatars.githubusercontent.com/u/43675490?v=4j< h5jg< &https://api.github.com/users/Toemmscheju< https://github.com/Toemmschej< 0https://api.github.com/users/Toemmsche/followersj< =https://api.github.com/users/Toemmsche/following{/other_user}j< 6https://api.github.com/users/Toemmsche/gists{/gist_id}j< =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j< 4https://api.github.com/users/Toemmsche/subscriptionsj< +https://api.github.com/users/Toemmsche/orgsj< ,https://api.github.com/users/Toemmsche/reposj< 7https://api.github.com/users/Toemmsche/events{/privacy}j< 6https://api.github.com/users/Toemmsche/received_eventsj< Userj< uparents]}(jO< (a88bd3e8db0ab427b8afa515f6b19167c9a6d0cfjg< ^https://api.github.com/repos/palantir/atlasdb/commits/a88bd3e8db0ab427b8afa515f6b19167c9a6d0cfju< Shttps://github.com/palantir/atlasdb/commit/a88bd3e8db0ab427b8afa515f6b19167c9a6d0cfuastats}(totalKU	additionsK*	deletionsK+ufiles]}(jO< (5ca5f581c1e05af0e37ce79d42847707ee17ed78filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedj< K*j< K+changesKUblob_urlhttps://github.com/palantir/atlasdb/blob/9534db5ab161bf5f4aedd1c8a809b29f0350390f/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9534db5ab161bf5f4aedd1c8a809b29f0350390f/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=9534db5ab161bf5f4aedd1c8a809b29f0350390fpatchX.  @@ -2574,11 +2574,7 @@ public void metadataIsTransferredToCellLocks() {
         // Only locks cells
         Transaction txn = getSnapshotTransactionWith(
                 timelockService,
-                ImmutableMap.of(
-                        TABLE,
-                        Optional.of(ConflictHandler.SERIALIZABLE_CELL),
-                        TABLE2,
-                        Optional.of(ConflictHandler.SERIALIZABLE_CELL)));
+                ImmutableMap.of(TABLE, ConflictHandler.SERIALIZABLE_CELL, TABLE2, ConflictHandler.SERIALIZABLE_CELL));
 
         txn.putWithMetadata(
                 TABLE, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA)));
@@ -2613,11 +2609,7 @@ public void metadataIsTransferredToRowLocks() {
         // Only locks rows
         Transaction txn = getSnapshotTransactionWith(
                 timelockService,
-                ImmutableMap.of(
-                        TABLE,
-                        Optional.of(ConflictHandler.SERIALIZABLE),
-                        TABLE2,
-                        Optional.of(ConflictHandler.SERIALIZABLE)));
+                ImmutableMap.of(TABLE, ConflictHandler.SERIALIZABLE, TABLE2, ConflictHandler.SERIALIZABLE));
 
         txn.put(TABLE, ImmutableMap.of(Cell.create(ROW_FOO, COL_A), TEST_VALUE));
         txn.putWithMetadata(
@@ -2643,8 +2635,7 @@ public void metadataCanBeTransferredToCellAndRowLocksSimultaneously() {
         TimelockService timelockService = spy(txManager.getTimelockService());
         // locks both rows and cells
         Transaction txn = getSnapshotTransactionWith(
-                timelockService,
-                ImmutableMap.of(TABLE, Optional.of(ConflictHandler.SERIALIZABLE_LOCK_LEVEL_MIGRATION)));
+                timelockService, ImmutableMap.of(TABLE, ConflictHandler.SERIALIZABLE_LOCK_LEVEL_MIGRATION));
 
         txn.putWithMetadata(
                 TABLE, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA)));
@@ -2664,8 +2655,8 @@ public void metadataCanBeTransferredToCellAndRowLocksSimultaneously() {
     @Test
     public void noMetadataResultsInEmptyOptional() {
         TimelockService timelockService = spy(txManager.getTimelockService());
-        Transaction txn = getSnapshotTransactionWith(
-                timelockService, ImmutableMap.of(TABLE, Optional.of(ConflictHandler.SERIALIZABLE)));
+        Transaction txn =
+                getSnapshotTransactionWith(timelockService, ImmutableMap.of(TABLE, ConflictHandler.SERIALIZABLE));
         txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
         verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
                 txn,
@@ -2678,29 +2669,15 @@ public void noMetadataResultsInEmptyOptional() {
     @Test
     public void lockCollectionWithoutMetadataIsCorrectForRandomWrites() {
         long randomSeed = System.currentTimeMillis();
-        int numberOfTables = ConflictHandler.values().length;
         int numberOfRowsPerTable = 10;
         int numberOfCellsPerRow = 10;
         int maxWritesPerCell = 200;
 
         Random random = new Random(randomSeed);
-        Namespace namespace = Namespace.create("random_test");
-        Map<TableReference, Optional<ConflictHandler>> tableToConflictHandler = KeyedStream.of(
-                        IntStream.range(0, numberOfTables).boxed())
-                .mapKeys(i -> {
-                    TableReference tableReference = TableReference.create(
-                            namespace, String.format("table_%d_%s", i, ConflictHandler.values()[i].name()));
-                    keyValueService.createTable(tableReference, AtlasDbConstants.GENERIC_TABLE_METADATA);
-                    return tableReference;
-                })
-                .map(i -> Optional.of(ConflictHandler.values()[i]))
-                .collectToMap();
+        Map<TableReference, ConflictHandler> tableToConflictHandler = getTablesForAllConflictHandlers();
         List<TableReference> tables = ImmutableList.copyOf(tableToConflictHandler.keySet());
         TimelockService timelockService = spy(txManager.getTimelockService());
-        List<Cell> cells = IntStream.range(0, numberOfRowsPerTable * numberOfCellsPerRow)
-                .mapToObj(i ->
-                        Cell.create(PtBytes.toBytes("row" + (i % numberOfCellsPerRow)), PtBytes.toBytes("column" + i)))
-                .collect(Collectors.toUnmodifiableList());
+        List<Cell> cells = generateCells(numberOfRowsPerTable, numberOfCellsPerRow);
 
         Transaction txn = getSnapshotTransactionWith(timelockService, tableToConflictHandler);
 
@@ -2852,7 +2829,7 @@ private void setTransactionConfig(TransactionConfig config) {
     }
 
     private Transaction getSnapshotTransactionWith(
-            TimelockService timelockService, Map<TableReference, Optional<ConflictHandler>> tableConflictHandlers) {
+            TimelockService timelockService, Map<TableReference, ConflictHandler> tableConflictHandlers) {
         ConjureStartTransactionsResponse conjureResponse = startTransactionWithWatches();
         LockImmutableTimestampResponse lockImmutableTimestampResponse = conjureResponse.getImmutableTimestamp();
         long transactionTs = conjureResponse.getTimestamps().start();
@@ -2886,7 +2863,7 @@ private Transaction getSnapshotTransactionWith(
                 lockImmutableTimestampResponse,
                 preCommitCondition,
                 validateLocksOnReads,
-                ImmutableMap.of(TABLE, Optional.of(ConflictHandler.RETRY_ON_WRITE_WRITE)));
+                ImmutableMap.of(TABLE, ConflictHandler.RETRY_ON_WRITE_WRITE));
     }
 
     private Transaction getSnapshotTransactionWith(
@@ -2895,8 +2872,10 @@ private Transaction getSnapshotTransactionWith(
             LockImmutableTimestampResponse lockImmutableTimestampResponse,
             PreCommitCondition preCommitCondition,
             boolean validateLocksOnReads,
-            Map<TableReference, Optional<ConflictHandler>> tableConflictHandlers) {
+            Map<TableReference, ConflictHandler> tableConflictHandlers) {
         PathTypeTracker pathTypeTracker = PathTypeTrackers.constructSynchronousTracker();
+        Map<TableReference, Optional<ConflictHandler>> optTableConflictHandlers =
+                Maps.transformValues(tableConflictHandlers, Optional::of);
         SnapshotTransaction transaction = new SnapshotTransaction(
                 metricsManager,
                 keyValueServiceWrapper.apply(keyValueService, pathTypeTracker),
@@ -2905,7 +2884,7 @@ private Transaction getSnapshotTransactionWith(
                 transactionService,
                 NoOpCleaner.INSTANCE,
                 startTs,
-                TestConflictDetectionManagers.createWithStaticConflictDetection(tableConflictHandlers),
+                TestConflictDetectionManagers.createWithStaticConflictDetection(optTableConflictHandlers),
                 SweepStrategyManagers.createDefault(keyValueService),
                 lockImmutableTimestampResponse.getImmutableTimestamp(),
                 Optional.of(lockImmutableTimestampResponse.getLock()),
@@ -3057,13 +3036,27 @@ private static void verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
                         any());
     }
 
+    private Map<TableReference, ConflictHandler> getTablesForAllConflictHandlers() {
+        int numberOfTables = ConflictHandler.values().length;
+        Namespace namespace = Namespace.create("all_conflict_handlers");
+        return KeyedStream.of(IntStream.range(0, numberOfTables).boxed())
+                .mapKeys(i -> {
+                    TableReference tableReference = TableReference.create(
+                            namespace, String.format("table_%d_%s", i, ConflictHandler.values()[i].name()));
+                    keyValueService.createTable(tableReference, AtlasDbConstants.GENERIC_TABLE_METADATA);
+                    return tableReference;
+                })
+                .map(i -> ConflictHandler.values()[i])
+                .collectToMap();
+    }
+
     private static LocksAndMetadata getExpectedLocksAndMetadata(
-            Map<TableReference, Optional<ConflictHandler>> tableToConflictHandler,
+            Map<TableReference, ConflictHandler> tableToConflictHandler,
             Map<TableReference, Set<Cell>> cellsWithWrites,
             Map<TableReference, Map<Cell, ChangeMetadata>> cellsWithMetadata) {
         ImmutableSet.Builder<LockDescriptor> locksBuilder = ImmutableSet.builder();
         cellsWithWrites.forEach((table, writes) -> {
-            ConflictHandler conflictHandler = tableToConflictHandler.get(table).orElseThrow();
+            ConflictHandler conflictHandler = tableToConflictHandler.get(table);
             writes.forEach(cell -> {
                 if (conflictHandler.lockCellsForConflicts()) {
                     locksBuilder.add(AtlasCellLockDescriptor.of(
@@ -3077,7 +3070,7 @@ private static LocksAndMetadata getExpectedLocksAndMetadata(
         ImmutableMap.Builder<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadataBuilder =
                 ImmutableMap.builder();
         cellsWithMetadata.forEach((table, metadataMap) -> {
-            ConflictHandler conflictHandler = tableToConflictHandler.get(table).orElseThrow();
+            ConflictHandler conflictHandler = tableToConflictHandler.get(table);
             metadataMap.forEach((cell, metadata) -> {
                 if (conflictHandler.lockCellsForConflicts()) {
                     lockDescriptorToChangeMetadataBuilder.put(
@@ -3104,20 +3097,19 @@ private static void applyRandomWriteMaybeWithMetadata(
             Random random,
             Transaction txn,
             List<TableReference> tables,
-            Map<TableReference, Optional<ConflictHandler>> tableToConflictHandler,
+            Map<TableReference, ConflictHandler> tableToConflictHandler,
             List<Cell> cells,
             Map<TableReference, Set<Cell>> cellsWithWrites,
             Map<TableReference, Map<Cell, ChangeMetadata>> cellsWithMetadata) {
         TableReference table = tables.get(random.nextInt(tables.size()));
         Cell cell = cells.get(random.nextInt(cells.size()));
 
-        boolean canWriteMetadata =
-                !(tableToConflictHandler.get(table).orElseThrow().lockRowsForConflicts()
-                        && cellsWithMetadata.getOrDefault(table, ImmutableMap.of()).keySet().stream()
+        boolean canWriteMetadata = !(tableToConflictHandler.get(table).lockRowsForConflicts()
+                && cellsWithMetadata.getOrDefault(table, ImmutableMap.of()).keySet().stream()
                         .anyMatch(c -> Arrays.equals(c.getRowName(), cell.getRowName())));
         // With metadata or not?
         if (canWriteMetadata && random.nextBoolean()) {
-            ChangeMetadata metadata = createRandomMetadata(random);
+            ChangeMetadata metadata = generateRandomChangeMetadata(random);
             if (random.nextBoolean()) {
                 txn.putWithMetadata(table, ImmutableMap.of(cell, ValueAndChangeMetadata.of(TEST_VALUE, metadata)));
             } else {
@@ -3137,7 +3129,14 @@ private static void applyRandomWriteMaybeWithMetadata(
         }
     }
 
-    private static ChangeMetadata createRandomMetadata(Random random) {
+    private static List<Cell> generateCells(int numberOfRowsPerTable, int numberOfCellsPerRow) {
+        return IntStream.range(0, numberOfRowsPerTable * numberOfCellsPerRow)
+                .mapToObj(i ->
+                        Cell.create(PtBytes.toBytes("row" + (i % numberOfCellsPerRow)), PtBytes.toBytes("column" + i)))
+                .collect(Collectors.toUnmodifiableList());
+    }
+
+    private static ChangeMetadata generateRandomChangeMetadata(Random random) {
         switch (random.nextInt(4)) {
             case 0:
                 return ChangeMetadata.unchanged();uau(5bce9474e0c19bcd3ea1a95d317ade27a61a33e2}(sha(5bce9474e0c19bcd3ea1a95d317ade27a61a33e2node_idEC_kwDOAjP5fdoAKDViY2U5NDc0ZTBjMTliY2QzZWExYTk1ZDMxN2FkZTI3YTYxYTMzZTIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-03-09T15:52:02Zu	committer}(j< Jeremy Kongj< jkong@palantir.comj< 2023-03-09T15:52:02Zumessage
clair de lunetree}(j< (725c43454ae59224d1fae2aa01b51fe9c983c7dcurl`https://api.github.com/repos/palantir/atlasdb/git/trees/725c43454ae59224d1fae2aa01b51fe9c983c7dcuj< bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5bce9474e0c19bcd3ea1a95d317ade27a61a33e2
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQKAKIACgkQTLdFKain
zjw7egf/dXt/Gf3hBL56ZO/31UPpBO/TPMmsm+UjPJXWIHoT3ytVH1otNUfzyuMu
3gmaC2IfLqzzHHU+noMPL2eGx695Bn/2a8VXs5Lf+fZ98SI3aY0vmMg39rAsa6zj
hnUu8+UP7qnRf1Pf3VUuKY02p9h9fhcSczrNAwVGzqRR/Tvr4DR5sCDHrue8q3aY
eFRkMsfILUvorW2/0HVN4yCWbX4y2SYQSYw0AqZapBLqF9cR3J2JwW5r3hCJQk3n
u70UQbvA9XSCIZHda/gpd9CtCcM0ofK43EE3Mc1FV5OjNn3IMONG5INTW6n2v4+W
VV0KIBYRAeEKHLEq0tJr2zD8XVluGA==
=i/oQ
-----END PGP SIGNATURE-----payloadtree 725c43454ae59224d1fae2aa01b51fe9c983c7dc
parent af0744e3a36f58aaac4d687a7b69a7fac73f0674
author Jeremy Kong <jkong@palantir.com> 1678377122 +0000
committer Jeremy Kong <jkong@palantir.com> 1678377122 +0000

clair de lune
uuj< ^https://api.github.com/repos/palantir/atlasdb/commits/5bce9474e0c19bcd3ea1a95d317ade27a61a33e2html_urlShttps://github.com/palantir/atlasdb/commit/5bce9474e0c19bcd3ea1a95d317ade27a61a33e2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5bce9474e0c19bcd3ea1a95d317ade27a61a33e2/commentsj< }(login
jeremyk-91idJZ j< MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j< 'https://api.github.com/users/jeremyk-91j< https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj< }(j< 
jeremyk-91j< JZ j< MDQ6VXNlcjU5NTU1MTA=j< 3https://avatars.githubusercontent.com/u/5955510?v=4j< h5j< 'https://api.github.com/users/jeremyk-91j< https://github.com/jeremyk-91j< 1https://api.github.com/users/jeremyk-91/followersj< >https://api.github.com/users/jeremyk-91/following{/other_user}j< 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j = >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j= 5https://api.github.com/users/jeremyk-91/subscriptionsj= ,https://api.github.com/users/jeremyk-91/orgsj= -https://api.github.com/users/jeremyk-91/reposj= 8https://api.github.com/users/jeremyk-91/events{/privacy}j
= 7https://api.github.com/users/jeremyk-91/received_eventsj= Userj= uparents]}(j< (af0744e3a36f58aaac4d687a7b69a7fac73f0674j< ^https://api.github.com/repos/palantir/atlasdb/commits/af0744e3a36f58aaac4d687a7b69a7fac73f0674j< Shttps://github.com/palantir/atlasdb/commit/af0744e3a36f58aaac4d687a7b69a7fac73f0674uastats}(totalK[	additionsKF	deletionsKufiles](}(j< (21031a3513f4e1838734e73db6f9d5a6f0bc2c35filenamexatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javastatusrenamedj(= K	j)= KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5bce9474e0c19bcd3ea1a95d317ade27a61a33e2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5bce9474e0c19bcd3ea1a95d317ade27a61a33e2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=5bce9474e0c19bcd3ea1a95d317ade27a61a33e2patchX@  @@ -20,12 +20,18 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface SingleCellWorkflowConfiguration {
+public interface SingleRowTwoCellsWorkflowConfiguration {
     WorkflowConfiguration genericWorkflowConfiguration();
 
-    String tableName();
+    TableConfiguration tableConfiguration();
 
+    @Value.Default
+    default double rateLimit() {
+        return 100;
+    }
+
+    @Value.Derived
     default RateLimiter transactionRateLimiter() {
-        return RateLimiter.create(100);
+        return RateLimiter.create(rateLimit());
     }
 }previous_filenameqatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleCellWorkflowConfiguration.javau}(j< (57c8a0e6fc8ee0ff5d75168ecac1dab177bff097j.= latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javaj0= modifiedj(= Kj)= Kj2= K
j3= https://github.com/palantir/atlasdb/blob/5bce9474e0c19bcd3ea1a95d317ade27a61a33e2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj5= https://github.com/palantir/atlasdb/raw/5bce9474e0c19bcd3ea1a95d317ade27a61a33e2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj7= https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=5bce9474e0c19bcd3ea1a95d317ade27a61a33e2j9= X   @@ -52,18 +52,18 @@ private SingleRowTwoCellsWorkflows() {
     }
 
     public static Workflow createSingleRowTwoCell(
-            TransactionStore store, SingleCellWorkflowConfiguration singleCellWorkflowConfiguration) {
+            TransactionStore store, SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsWorkflowConfiguration) {
         return DefaultWorkflow.create(
                 store,
-                (txnStore, index) -> run(txnStore, index, singleCellWorkflowConfiguration),
-                singleCellWorkflowConfiguration.genericWorkflowConfiguration());
+                (txnStore, index) -> run(txnStore, index, singleRowTwoCellsWorkflowConfiguration),
+                singleRowTwoCellsWorkflowConfiguration.genericWorkflowConfiguration());
     }
 
     private static Optional<WitnessedTransaction> run(
-            TransactionStore store, int taskIndex, SingleCellWorkflowConfiguration workflowConfiguration) {
+            TransactionStore store, int taskIndex, SingleRowTwoCellsWorkflowConfiguration workflowConfiguration) {
         workflowConfiguration.transactionRateLimiter().acquire();
 
-        String tableName = workflowConfiguration.tableName();
+        String tableName = workflowConfiguration.tableConfiguration().tableName();
         List<TransactionAction> cellReads = ImmutableList.of(
                 ReadTransactionAction.of(tableName, FIRST_CELL), ReadTransactionAction.of(tableName, SECOND_CELL));
         List<TransactionAction> cellUpdates = shouldWriteToFirstCell(taskIndex)u}(j< (146d14c1ed0a405b61bc4898fa656154da156eb6j.= datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TableConfiguration.javaj0= addedj(= Kj)= K j2= Kj3= https://github.com/palantir/atlasdb/blob/5bce9474e0c19bcd3ea1a95d317ade27a61a33e2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.javaj5= https://github.com/palantir/atlasdb/raw/5bce9474e0c19bcd3ea1a95d317ade27a61a33e2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.javaj7= https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.java?ref=5bce9474e0c19bcd3ea1a95d317ade27a61a33e2j9= X  @@ -0,0 +1,27 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface TableConfiguration {
+    String tableName();
+
+    ConflictHandler conflictHandler();
+}u}(j< (ae4f6217e2c9dee44cb6111a408da3ab9302f9a3j.= patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javaj0= modifiedj(= Kj)= K
j2= K*j3= https://github.com/palantir/atlasdb/blob/5bce9474e0c19bcd3ea1a95d317ade27a61a33e2/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj5= https://github.com/palantir/atlasdb/raw/5bce9474e0c19bcd3ea1a95d317ade27a61a33e2/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj7= https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=5bce9474e0c19bcd3ea1a95d317ade27a61a33e2j9= Xc  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
@@ -45,23 +46,38 @@
 public class SingleRowTwoCellsWorkflowsTest {
     private static final TableReference TEST_TABLE =
             TableReference.create(Namespace.create("test"), "singleRowTwoCells");
-    private static final TransactionStore TRANSACTION_STORE = AtlasDbTransactionStore.create(
-            TransactionManagers.createInMemory(ImmutableSet.of()),
-            ImmutableMap.of(TEST_TABLE, AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
     private static final int ITERATION_COUNT = 1_000;
 
     @Test
-    public void smokeTest() {
-        Workflow workflow = SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
-                TRANSACTION_STORE,
-                ImmutableSingleCellWorkflowConfiguration.builder()
+    public void workflowPassesWithSerializableConflictChecking() {
+        runWorkflowWithConflictHandler(ConflictHandler.SERIALIZABLE, ITERATION_COUNT);
+    }
+
+    @Test
+    public void workflowDoesNotPassWhenConflictsAreNotHandled() {
+        assertThatThrownBy(() -> runWorkflowWithConflictHandler(ConflictHandler.IGNORE_ALL, 100))
+                .isInstanceOf(AssertionError.class);
+    }
+
+    private void runWorkflowWithConflictHandler(ConflictHandler conflictHandler, int iterations) {
+        SingleRowTwoCellsWorkflowConfiguration configuration = ImmutableSingleRowTwoCellsWorkflowConfiguration.builder()
+                .tableConfiguration(ImmutableTableConfiguration.builder()
                         .tableName(TEST_TABLE.getTableName())
-                        .genericWorkflowConfiguration(ImmutableWorkflowConfiguration.builder()
-                                .iterationCount(ITERATION_COUNT)
-                                .executionExecutor(
-                                        MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(100)))
-                                .build())
-                        .build());
+                        .conflictHandler(conflictHandler)
+                        .build())
+                .genericWorkflowConfiguration(ImmutableWorkflowConfiguration.builder()
+                        .iterationCount(iterations)
+                        .executionExecutor(MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(100)))
+                        .build())
+                .build();
+
+        TransactionStore transactionStore = AtlasDbTransactionStore.create(
+                TransactionManagers.createInMemory(ImmutableSet.of()),
+                ImmutableMap.of(
+                        TEST_TABLE,
+                        AtlasDbUtils.tableMetadata(
+                                configuration.tableConfiguration().conflictHandler())));
+        Workflow workflow = SingleRowTwoCellsWorkflows.createSingleRowTwoCell(transactionStore, configuration);
         assertWorkflowHistoryConsistent(workflow.run());
     }
 ueu(a405a2743e47a95a394bf17cb6f54ce7dc44c9dc}(sha(a405a2743e47a95a394bf17cb6f54ce7dc44c9dcnode_idEC_kwDOAjP5fdoAKGE0MDVhMjc0M2U0N2E5NWEzOTRiZjE3Y2I2ZjU0Y2U3ZGM0NGM5ZGMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-05T17:12:53Zu	committer}(j_= Jeremy Kongja= jkong@palantir.comjc= 2023-05-05T17:12:53Zumessagespottree}(jW= (d119441ae185320bcf2b3ee947a8a12a1a3da26furl`https://api.github.com/repos/palantir/atlasdb/git/trees/d119441ae185320bcf2b3ee947a8a12a1a3da26fujo= bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a405a2743e47a95a394bf17cb6f54ce7dc44c9dc
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRVORUACgkQTLdFKain
zjxepgf/UtaGBWfSejg5QeR5A4KsN66c7TlMhxPOSyrFuuOyHZBIGdhWGEewXohw
K0d/5y5Ir4/0IU83Z4yrL1YS+lDWkAaUGDYXW5YEUgqBgK25wUh8H1uNkK3qmMJk
AMOBHn+QWh3q1872pf2zKtoSooMskguCQ09JK2JllhWbRSe4rDbHI1sH27ARkw0u
ScjXTvo+Bf09BWbs0NDyogZscIKIE56lmLjcdwVuMbb7PN70xV2e165OOFqhYNc5
B/NBqoOhtcE517MGTFzubgHvIXamzwNtf0Pnbcv4N9ZK3fVORkLwlPTwx7P1/zXs
GsQugtP+jB622ROPGZfDYqI8dyCFMg==
=Ijeq
-----END PGP SIGNATURE-----payloadtree d119441ae185320bcf2b3ee947a8a12a1a3da26f
parent ac7a8cd4b35ecbe034b47f6876d8fa9c0d3ba79a
author Jeremy Kong <jkong@palantir.com> 1683306773 +0100
committer Jeremy Kong <jkong@palantir.com> 1683306773 +0100

spot
uujo= ^https://api.github.com/repos/palantir/atlasdb/commits/a405a2743e47a95a394bf17cb6f54ce7dc44c9dchtml_urlShttps://github.com/palantir/atlasdb/commit/a405a2743e47a95a394bf17cb6f54ce7dc44c9dccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a405a2743e47a95a394bf17cb6f54ce7dc44c9dc/commentsj]= }(login
jeremyk-91idJZ jY= MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jo= 'https://api.github.com/users/jeremyk-91j}= https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuje= }(j= 
jeremyk-91j= JZ jY= MDQ6VXNlcjU5NTU1MTA=j= 3https://avatars.githubusercontent.com/u/5955510?v=4j= h5jo= 'https://api.github.com/users/jeremyk-91j}= https://github.com/jeremyk-91j= 1https://api.github.com/users/jeremyk-91/followersj= >https://api.github.com/users/jeremyk-91/following{/other_user}j= 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j= >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j= 5https://api.github.com/users/jeremyk-91/subscriptionsj= ,https://api.github.com/users/jeremyk-91/orgsj= -https://api.github.com/users/jeremyk-91/reposj= 8https://api.github.com/users/jeremyk-91/events{/privacy}j= 7https://api.github.com/users/jeremyk-91/received_eventsj= Userj= uparents]}(jW= (ac7a8cd4b35ecbe034b47f6876d8fa9c0d3ba79ajo= ^https://api.github.com/repos/palantir/atlasdb/commits/ac7a8cd4b35ecbe034b47f6876d8fa9c0d3ba79aj}= Shttps://github.com/palantir/atlasdb/commit/ac7a8cd4b35ecbe034b47f6876d8fa9c0d3ba79auastats}(totalK	additionsK	deletionsKufiles]}(jW= (da3109e146d361ca31d2958b0fc223d0d2334824filename?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javastatusmodifiedj= Kj= KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/a405a2743e47a95a394bf17cb6f54ce7dc44c9dc/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a405a2743e47a95a394bf17cb6f54ce7dc44c9dc/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=a405a2743e47a95a394bf17cb6f54ce7dc44c9dcpatchX  @@ -184,8 +184,7 @@ public static Builder builder() {
         return new Builder();
     }
 
-    public static final class Builder extends ImmutableLockServerOptions.Builder {
-    }
+    public static final class Builder extends ImmutableLockServerOptions.Builder {}
 
     static class SerializationProxy implements Serializable {
         private static final long serialVersionUID = 4043798817916565364L;uau(3acee7efef8617f3e3c316aea88b8f40057a969b}(sha(3acee7efef8617f3e3c316aea88b8f40057a969bnode_idEC_kwDOAjP5fdoAKDNhY2VlN2VmZWY4NjE3ZjNlM2MzMTZhZWE4OGI4ZjQwMDU3YTk2OWIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-08-08T14:26:38Zu	committer}(j= Jeremy Kongj= jkong@palantir.comj= 2023-08-08T14:26:38ZumessageIMerge remote-tracking branch 'origin/develop' into jkong/sins-of-omissiontree}(j= (75e331411f914f6db3e6538b3795eebd312e9d98url`https://api.github.com/repos/palantir/atlasdb/git/trees/75e331411f914f6db3e6538b3795eebd312e9d98uj= bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3acee7efef8617f3e3c316aea88b8f40057a969b
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmTSUKIACgkQTLdFKain
zjz+TQgAqZV9c7Mdu/CQhyoBvVU3f7kPpt+Tr4EB5yxBeE5omq6t6s9oSCfbHvtb
t65MJ3e7fdCHbuxAU183CyjVm2uGA80ct84M4GyFgDl8KOHhjZupO3msmN3sKGsB
ONRWGylXp25mo+i1qDf/YmKOHzY1XePwhPU4LDZ9D/1jzH780GheRSvcGNRv5Efu
FkwHtlZ2ZUeII87g0TEse0bVCjbCZGOG3KWNT2brwGEs7HmXyIctt9itYUyon+dv
w5DKmRgG/rEuXHmCXTezphnemYkpe4seE4uiGKkf5Q5EVQ85j8wSdRZZGqL076cq
7lwUu8JKp2nq8KdRdmg7F38/du38Zg==
=yOxq
-----END PGP SIGNATURE-----payloadXN  tree 75e331411f914f6db3e6538b3795eebd312e9d98
parent 9458838f336b95e56aec98b7b6fdeb43d87d966f
parent e856c6795f27c92a4f037fcfc7bed83c0283d0a2
author Jeremy Kong <jkong@palantir.com> 1691504798 +0100
committer Jeremy Kong <jkong@palantir.com> 1691504798 +0100

Merge remote-tracking branch 'origin/develop' into jkong/sins-of-omission
uuj= ^https://api.github.com/repos/palantir/atlasdb/commits/3acee7efef8617f3e3c316aea88b8f40057a969bhtml_urlShttps://github.com/palantir/atlasdb/commit/3acee7efef8617f3e3c316aea88b8f40057a969bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3acee7efef8617f3e3c316aea88b8f40057a969b/commentsj= }(login
jeremyk-91idJZ j= MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j= 'https://api.github.com/users/jeremyk-91j= https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj= }(j= 
jeremyk-91j= JZ j= MDQ6VXNlcjU5NTU1MTA=j= 3https://avatars.githubusercontent.com/u/5955510?v=4j= h5j= 'https://api.github.com/users/jeremyk-91j= https://github.com/jeremyk-91j> 1https://api.github.com/users/jeremyk-91/followersj> >https://api.github.com/users/jeremyk-91/following{/other_user}j> 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j> >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j
> 5https://api.github.com/users/jeremyk-91/subscriptionsj> ,https://api.github.com/users/jeremyk-91/orgsj> -https://api.github.com/users/jeremyk-91/reposj> 8https://api.github.com/users/jeremyk-91/events{/privacy}j> 7https://api.github.com/users/jeremyk-91/received_eventsj> Userj> uparents](}(j= (9458838f336b95e56aec98b7b6fdeb43d87d966fj= ^https://api.github.com/repos/palantir/atlasdb/commits/9458838f336b95e56aec98b7b6fdeb43d87d966fj= Shttps://github.com/palantir/atlasdb/commit/9458838f336b95e56aec98b7b6fdeb43d87d966fu}(j= (e856c6795f27c92a4f037fcfc7bed83c0283d0a2j= ^https://api.github.com/repos/palantir/atlasdb/commits/e856c6795f27c92a4f037fcfc7bed83c0283d0a2j= Shttps://github.com/palantir/atlasdb/commit/e856c6795f27c92a4f037fcfc7bed83c0283d0a2uestats}(totalM	additionsM	deletionsMufiles](}(j= (95c0afd59482612e75dcd14fb8ccaca826a94dfdfilename.policy.ymlstatusmodifiedj4> Kj5> KchangesKblob_url]https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/.policy.ymlraw_url\https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/.policy.ymlcontents_urlohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=3acee7efef8617f3e3c316aea88b8f40057a969bpatchXe  @@ -48,20 +48,22 @@ approval_rules:
       permissions: ["admin", "maintain"]
     if:
       has_author_in:
-        users: [ "svc-excavator-bot" ]
+        users: [ "svc-excavator-bot", "dependabot[bot]" ]
 
   - name: excavator only touched baseline, circle, gradle files, godel files, generated code, go dependencies, docker-compose-rule config or versions.props
     requires:
       count: 0
     if:
       has_author_in:
-        users: [ "svc-excavator-bot" ]
+        users: [ "svc-excavator-bot", "dependabot[bot]" ]
       only_changed_files:
         # product-dependencies.lock should never go here, to force review of all product (SLS) dependency changes
         # this way excavator cannot change the deployability of a service or product via auto-merge
         paths:
           - "changelog/@unreleased/.*\\.yml"
           - "^\\.baseline/.*$"
+          - "^(.+/)?Cargo.toml$"
+          - "^Cargo.lock$"
           - "^\\.circleci/.*$"
           - "^\\.docker-compose-rule\\.yml$"
           - "^.*gradle$"
@@ -83,7 +85,7 @@ approval_rules:
           - "^internal/generated_src/.*"
           - "^gradle-baseline-java/src/main/resources/checkstyle.version$"
       has_valid_signatures_by_keys:
-        key_ids: ["C9AF124A484882E0"]
+        key_ids: ["C9AF124A484882E0", "4AEE18F83AFDEB23"]
 
   - name: excavator only touched config files
     requires:u}(j= (ac5151208f3564728fb656114e6d47b89cd33bb2j:> atlasdb-cassandra/build.gradlej<> modifiedj4> Kj5> K j>> Kj?> rhttps://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-cassandra%2Fbuild.gradlejA> qhttps://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-cassandra%2Fbuild.gradlejC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fbuild.gradle?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X  @@ -58,6 +58,10 @@ dependencies {
   implementation project(':commons-executors')
   implementation project(':timestamp-api')
 
+  // transitive from cassandra-driver-core
+  // need to specify as a direct dep so downstream projects get the correct version
+  runtimeOnly 'io.netty:netty-handler'
+
   testImplementation 'commons-codec:commons-codec'
   testImplementation 'com.fasterxml.jackson.core:jackson-databind'
   testImplementation 'com.google.protobuf:protobuf-java'u}(j= (9f0c7fbc486ed33c7d2e87d7bec15a60af80050bj:> Katlasdb-commons/src/test/java/com/palantir/util/IndexEncodingUtilsTest.javaj<> modifiedj4> Kj5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X  @@ -78,7 +78,8 @@ public void cannotLookupUnknownChecksumType() {
 
     @Test
     public void canEncodeSimpleData() {
-        assertThat(createIndexEncoding().indexToValue()).isEqualTo(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
+        assertThat(createIndexEncoding().indexToValue())
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
     }
 
     @Testu}(j= (b173565d678b7b542b83a400be83c1df5712c1cbj:> datlasdb-config/src/main/java/com/palantir/atlasdb/factory/DefaultLockAndTimestampServiceFactory.javaj<> modifiedj4> Kj5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java+      jA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X?  @@ -262,7 +262,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
                     timelockRequestBatcherProviders,
                     knownSchemas);
         } else {
-            return createRawEmbeddedServices(metricsManager, registrar, lock, time);
+            return createRawEmbeddedServices(metricsManager, lock, time);
         }
     }
 
@@ -621,7 +621,6 @@ private static LockAndTimestampServices createRawRemoteServices(
 
     private static LockAndTimestampServices createRawEmbeddedServices(
             MetricsManager metricsManager,
-            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> managedTimestampServiceSupplier) {
         LockService lockService =
@@ -634,10 +633,6 @@ private static LockAndTimestampServices createRawEmbeddedServices(
         TimestampManagementService timestampManagementService = ServiceCreator.instrumentService(
                 metricsManager.getRegistry(), managedTimestampService, TimestampManagementService.class);
 
-        registrar.accept(lockService);
-        registrar.accept(timeService);
-        registrar.accept(timestampManagementService);
-
         return ImmutableLockAndTimestampServices.builder()
                 .lock(lockService)
                 .timestamp(timeService)u}(j= (b8581c6ca1106927b53fd0a43ed2256f151e06a2j:> Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javaj<> modifiedj4> K j5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X  @@ -542,7 +542,6 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                         metricsManager,
                         config(),
                         runtime,
-                        registrar(),
                         keyValueService,
                         transactionService,
                         follower,
@@ -817,7 +816,6 @@ private static BackgroundSweeperImpl initializeSweepBackgroundProcess(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Supplier<AtlasDbRuntimeConfig> runtimeConfigSupplier,
-            Consumer<Object> registrar,
             KeyValueService kvs,
             TransactionService transactionService,
             CleanupFollower follower,u}(j= (ea4b71016e096289330369e362cf9264b81ec3dcj:> atlasdb-ete-tests/build.gradlej<> modifiedj4> KVj5> Kj>> Koj?> rhttps://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fbuild.gradlejA> qhttps://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fbuild.gradlejC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fbuild.gradle?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X  @@ -94,50 +94,111 @@ dependencies {
     testCompileOnly 'org.immutables:value::annotations'
 }
 
+// ETE Test Wiring
+//
+// For each non-trivially sized ETE test and all ETE test suites:
+// - define a custom gradle task for just that test [suite]
+// - remove that test [suite] from :atlasdb-ete-tests:test
+// - add that custom task as a dependency of :customEteTasks, which :atlasdb-ete-tests:test then depends on
+// - use task exclusion in our circleci commands to ensure only specific things get run in certain containers at CI time
+//
+// This does a few things:
+// - for test suites, makes it easier to reason about which suite class executions belong to what test suites in the
+//   generated junit reports and test suite cost in gradle build scans
+// - allows us to run certain tests in their own containers for CI speed reasons
+// - on the off chance someone adds or re-names a test in the future, but forgets to give it its own task and wiring
+//   described above, that test will still get run via :atlasdb-ete-tests:test to avoid a situation where the new test
+//   isn't run in CI without us realizing
+
+// Tasks required before ETE tests can be run
+
 task prepareForEteTests(type: Copy, dependsOn: 'distTar') {
     from distTar.outputs
     into 'build/docker/'
 
     rename { filename -> 'atlasdb-ete-snapshot.tgz' }
 }
 
-task longTest(type: Test) {
-    dependsOn prepareForEteTests
-    include '**/MultiCassandraTestSuite.class'
+task prepareForTimelockEteTests() {
+    dependsOn 'prepareForEteTests', ':timelock-server-distribution:dockerTag'
 }
 
-task timeLockTest(type: Test) {
-    dependsOn prepareForEteTests, ':timelock-server-distribution:dockerTag'
-    include '**/*TimeLock*.class'
-    exclude '**/*TimeLockMigration*.class'
+// Individual ETE Test Tasks
+
+task timeLockMigrationTest(type: Test, dependsOn: 'prepareForTimelockEteTests') {
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.standalone.TimeLockMigrationEteTest'
+    }
 }
 
-task timeLockMigrationTest(type: Test) {
-    dependsOn prepareForEteTests, ':timelock-server-distribution:dockerTag'
-    include '**/*TimeLockMigration*.class'
+task multiClientWithPostgresTimelockAndPostgresTest(type: Test, dependsOn: 'prepareForTimelockEteTests') {
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.MultiClientWithPostgresTimelockAndPostgresTestSuite'
+    }
 }
 
-task dbkvsTest(type: Test) {
-    dependsOn prepareForEteTests
-    include '**/DbKvsTestSuite.class'
+task multiClientWithTimelockAndCassandraTest(type: Test, dependsOn: 'prepareForTimelockEteTests') {
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.MultiClientWithTimelockAndCassandraTestSuite'
+    }
 }
 
-task oracleTest(type: Test) {
-    dependsOn prepareForEteTests
-    include '**/OracleDbKvsEteTestSuite.class'
+task singleClientWithEmbeddedAndCassandraTest(type: Test, dependsOn: 'prepareForEteTests') {
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndCassandraTestSuite'
+    }
 }
 
-test {
-    dependsOn longTest, prepareForEteTests, timeLockTest, dbkvsTest
-    exclude '**/MultiCassandraTestSuite.class'
+task singleClientWithEmbeddedAndOracleTest(type: Test, dependsOn: 'prepareForEteTests') {
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndOracleTestSuite'
+    }
+}
 
-    exclude '**/*TimeLock*.class'
-    // Technically covered by previous line, but explicitly avoiding in case of refactor
-    exclude '**/*TimeLockMigration*.class'
+task singleClientWithEmbeddedAndPostgresTest(type: Test, dependsOn: 'prepareForEteTests') {
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndPostgresTestSuite'
+    }
+}
+
+task singleClientWithEmbeddedAndThreeNodeCassandraTest(type: Test, dependsOn: 'prepareForEteTests') {
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite'
+    }
+}
+
+// Re-wire 'test' to include custom tasks as dependencies via a single task instead of directly running them
 
-    exclude '**/*EteTest.class'
-    exclude '**/DbKvsTestSuite.class'
-    exclude '**/OracleDbKvsEteTestSuite.class'
+task customEteTasks() {
+    dependsOn multiClientWithPostgresTimelockAndPostgresTest,
+        multiClientWithTimelockAndCassandraTest,
+        singleClientWithEmbeddedAndCassandraTest,
+        singleClientWithEmbeddedAndOracleTest,
+        singleClientWithEmbeddedAndPostgresTest,
+        singleClientWithEmbeddedAndThreeNodeCassandraTest
+        // timeLockMigrationTest // intentionally not run on every commit/PR due to length
+}
+
+test {
+    dependsOn customEteTasks
+
+    filter {
+        // in the expected case "test" doesn't actually have any tests to run because they're all in custom tasks
+        // gradle would normally fail a task of type Test that doesn't actually have any tests to run
+        setFailOnNoMatchingTests(false)
+
+        // suite classes that should not be run outside of suites
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suiteclasses.*'
+
+        // tests with 1-off tasks
+        excludeTestsMatching 'com.palantir.atlasdb.ete.standalone.TimeLockMigrationEteTest'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.MultiClientWithPostgresTimelockAndPostgresTestSuite'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.MultiClientWithTimelockAndCassandraTestSuite'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndCassandraTestSuite'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndOracleTestSuite'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndPostgresTestSuite'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite'
+    }
 }
 
 distribution {u}(j= (b0d6432234b88e585a3b355eb298ab1f500744d6j:> .atlasdb-ete-tests/docker-compose.cassandra.ymlj<> removedj4> K j5> K4j>> K4j?> https://github.com/palantir/atlasdb/blob/9458838f336b95e56aec98b7b6fdeb43d87d966f/atlasdb-ete-tests%2Fdocker-compose.cassandra.ymljA> https://github.com/palantir/atlasdb/raw/9458838f336b95e56aec98b7b6fdeb43d87d966f/atlasdb-ete-tests%2Fdocker-compose.cassandra.ymljC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.cassandra.yml?ref=9458838f336b95e56aec98b7b6fdeb43d87d966fjE> X  @@ -1,52 +0,0 @@
-version: '2'
-
-services:
-  cassandra:
-    image: palantirtechnologies/docker-cassandra-atlasdb:$CASSANDRA_VERSION
-    ports:
-      - "9160"
-      - "9042"
-      - "7199"
-    environment:
-      - MAX_HEAP_SIZE=$CASSANDRA_MAX_HEAP_SIZE
-      - HEAP_NEWSIZE=$CASSANDRA_HEAP_NEWSIZE
-      - LOCAL_JMX=no
-
-  ete1:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console'
-    depends_on:
-      - cassandra
-    environment:
-      - ME=ete1
-    ports:
-      - "3828"
-
-  ete2:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console'
-    depends_on:
-      - cassandra
-    environment:
-      - ME=ete2
-    ports:
-      - "3828"
-
-  ete3:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console'
-    depends_on:
-      - cassandra
-    environment:
-      - ME=ete3
-    ports:
-      - "3828"
-
-  ete-cli:
-    build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.cassandra.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
-    environment:
-      - ME=ete1
-    depends_on:
-      - ete1u}(j= (cf0290d516e630754c368658c2f7f72e74bd6e27j:> *atlasdb-ete-tests/docker-compose.dbkvs.ymlj<> removedj4> K j5> K2j>> K2j?> ~https://github.com/palantir/atlasdb/blob/9458838f336b95e56aec98b7b6fdeb43d87d966f/atlasdb-ete-tests%2Fdocker-compose.dbkvs.ymljA> }https://github.com/palantir/atlasdb/raw/9458838f336b95e56aec98b7b6fdeb43d87d966f/atlasdb-ete-tests%2Fdocker-compose.dbkvs.ymljC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.dbkvs.yml?ref=9458838f336b95e56aec98b7b6fdeb43d87d966fjE> X#  @@ -1,50 +0,0 @@
-version: '2'
-
-services:
-  postgres:
-    image: postgres:9.6-alpine
-    environment:
-       POSTGRES_PASSWORD: palantir
-       POSTGRES_USER: palantir
-       POSTGRES_DB: atlas
-    ports:
-      - "5432"
-
-  ete1:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.dbkvs.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console'
-    depends_on:
-      - postgres
-    environment:
-      - ME=ete1
-    ports:
-      - "3828"
-
-  ete2:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.dbkvs.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console'
-    depends_on:
-      - postgres
-    environment:
-      - ME=ete2
-    ports:
-      - "3828"
-
-  ete3:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.dbkvs.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console'
-    depends_on:
-      - postgres
-    environment:
-      - ME=ete3
-    ports:
-      - "3828"
-
-  ete-cli:
-    build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.dbkvs.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
-    environment:
-      - ME=ete1
-    depends_on:
-      - ete1u}(j= (07187320b13fc117cd4600f52f413c997120b078j:> Uatlasdb-ete-tests/docker-compose.multi-client-with-postgres-timelock-and-postgres.ymlj<> renamedj4> K	j5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-postgres-timelock-and-postgres.ymljA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-postgres-timelock-and-postgres.ymljC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-postgres-timelock-and-postgres.yml?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X	  @@ -21,7 +21,7 @@ services:
 
   ete1:
     build: .
-    command: [bash, -c, 'cp var/conf/atlasdb-ete.timelock.dbkvs.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console']
+    command: [bash, -c, 'cp var/conf/atlasdb-ete.postgres-timelock-and-postgres.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console']
     ports:
       - "3828"
     environment:
@@ -30,9 +30,13 @@ services:
       - postgres
       - timelock
 
-  ete-cli:
+  ete2:
     build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.timelock.dbkvs.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
+    command: [bash, -c, 'cp var/conf/atlasdb-ete.postgres-timelock-and-postgres.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console']
+    ports:
+      - "3828"
+    environment:
+      - ME=ete2
     depends_on:
-      - ete1
+      - postgres
+      - timelockprevious_filenameEatlasdb-ete-tests/docker-compose.timelock.database.bound.postgres.ymlu}(j= (21fed136618090c281f8a5228d1da2b9b72eeb1dj:> Matlasdb-ete-tests/docker-compose.multi-client-with-timelock-and-cassandra.ymlj<> renamedj4> Kj5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-timelock-and-cassandra.ymljA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-timelock-and-cassandra.ymljC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-timelock-and-cassandra.yml?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X  @@ -20,7 +20,7 @@ services:
 
   ete1:
     build: .
-    command: [bash, -c, 'cp var/conf/atlasdb-ete.timelock.cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console']
+    command: [bash, -c, 'cp var/conf/atlasdb-ete.timelock-and-cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console']
     ports:
       - "3828"
     depends_on:
@@ -29,11 +29,13 @@ services:
     environment:
       - ME=ete1
 
-  ete-cli:
+  ete2:
     build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.timelock.cassandra.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
+    command: [bash, -c, 'cp var/conf/atlasdb-ete.timelock-and-cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console']
+    ports:
+      - "3828"
     depends_on:
-      - ete1
+      - cassandra
+      - timelock
     environment:
-      - ME=ete1
+      - ME=ete2j> 7atlasdb-ete-tests/docker-compose.timelock.cassandra.ymlu}(j= (1d193b8827aecd4f6d245fb465dfbdc647f5e14aj:> +atlasdb-ete-tests/docker-compose.oracle.ymlj<> removedj4> K j5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/9458838f336b95e56aec98b7b6fdeb43d87d966f/atlasdb-ete-tests%2Fdocker-compose.oracle.ymljA> ~https://github.com/palantir/atlasdb/raw/9458838f336b95e56aec98b7b6fdeb43d87d966f/atlasdb-ete-tests%2Fdocker-compose.oracle.ymljC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.oracle.yml?ref=9458838f336b95e56aec98b7b6fdeb43d87d966fjE> X  @@ -1,26 +0,0 @@
-version: '2'
-
-services:
-  oracle:
-    image: palantirtechnologies/oracle-atlasdb:19.19.0.0-se
-    ports:
-      - "1521"
-
-  ete1:
-    build: .
-    command: [bash, -c, 'cp var/conf/atlasdb-ete.oracle.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://oracle:1521 && service/bin/init.sh console']
-    ports:
-      - "3828"
-    depends_on:
-      - oracle
-    environment:
-      - ME=ete1
-
-  ete-cli:
-    build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.oracle.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
-    depends_on:
-      - ete1
-    environment:
-      - ME=ete1u}(j= (d312be230917aef7f5b7fdc8f70e506af40539f4j:> Natlasdb-ete-tests/docker-compose.single-client-with-embedded-and-cassandra.ymlj<> renamedj4> Kj5> K
j>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-cassandra.ymljA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-cassandra.ymljC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-cassandra.yml?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X  @@ -14,19 +14,10 @@ services:
 
   ete1:
     build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.no-leader.cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console'
+    command: bash -c 'cp var/conf/atlasdb-ete.embedded-and-cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console'
     depends_on:
       - cassandra
     environment:
       - ME=ete1
     ports:
       - "3828"
-
-  ete-cli:
-    build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.no-leader.cassandra.client.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
-    environment:
-      - ME=ete1
-    depends_on:
-      - ete1j> 8atlasdb-ete-tests/docker-compose.no-leader.cassandra.ymlu}(j= (ba464419ea696a2af89118c5538fb23ca95d46d5j:> Katlasdb-ete-tests/docker-compose.single-client-with-embedded-and-oracle.ymlj<> addedj4> Kj5> K j>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-oracle.ymljA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-oracle.ymljC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-oracle.yml?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X  @@ -0,0 +1,17 @@
+version: '2'
+
+services:
+  oracle:
+    image: palantirtechnologies/oracle-atlasdb:19.20.0.0-se
+    ports:
+      - "1521"
+
+  ete1:
+    build: .
+    command: [bash, -c, 'cp var/conf/atlasdb-ete.embedded-and-oracle.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://oracle:1521 && service/bin/init.sh console']
+    ports:
+      - "3828"
+    depends_on:
+      - oracle
+    environment:
+      - ME=ete1u}(j= (b347aa74093dbeb0943cd9f60c89935c4c4985c5j:> Matlasdb-ete-tests/docker-compose.single-client-with-embedded-and-postgres.ymlj<> addedj4> Kj5> K j>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-postgres.ymljA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-postgres.ymljC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-postgres.yml?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X  @@ -0,0 +1,21 @@
+version: '2'
+
+services:
+  postgres:
+    image: postgres:9.6-alpine
+    environment:
+       POSTGRES_PASSWORD: palantir
+       POSTGRES_USER: palantir
+       POSTGRES_DB: atlas
+    ports:
+      - "5432"
+
+  ete1:
+    build: .
+    command: bash -c 'cp var/conf/atlasdb-ete.embedded-and-postgres.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console'
+    depends_on:
+      - postgres
+    environment:
+      - ME=ete1
+    ports:
+      - "3828"u}(j= (812166d4ee2f660ecd1a7baff916e76437cc8fb4j:> Yatlasdb-ete-tests/docker-compose.single-client-with-embedded-and-three-node-cassandra.ymlj<> renamedj4> Kj5> K
j>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-three-node-cassandra.ymljA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-three-node-cassandra.ymljC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-three-node-cassandra.yml?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> XD  @@ -30,17 +30,8 @@ services:
 
   ete1:
     build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.multiple-cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160 && service/bin/init.sh console'
+    command: bash -c 'cp var/conf/atlasdb-ete.embedded-and-three-node-cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160 && service/bin/init.sh console'
     environment:
       - ME=ete1
     ports:
       - "3828"
-
-  ete-cli:
-    build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.multiple-cassandra.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
-    environment:
-      - ME=ete1
-    depends_on:
-      - ete1j> 7atlasdb-ete-tests/docker-compose.multiple-cassandra.ymlu}(j= (e7099ea45e5560e0f7f61a19ef8bbe688428149dj:> 7atlasdb-ete-tests/docker/conf/atlasdb-ete.cassandra.ymlj<> removedj4> K j5> K*j>> K*j?> https://github.com/palantir/atlasdb/blob/9458838f336b95e56aec98b7b6fdeb43d87d966f/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.cassandra.ymljA> https://github.com/palantir/atlasdb/raw/9458838f336b95e56aec98b7b6fdeb43d87d966f/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.cassandra.ymljC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.cassandra.yml?ref=9458838f336b95e56aec98b7b6fdeb43d87d966fjE> X  @@ -1,42 +0,0 @@
-server:
-  #rootPath: /api/*
-  #applicationContextPath: /
-  #adminContextPath: /
-  applicationConnectors:
-    - type: http
-      port: 3828
-  adminConnectors:
-    - type: http
-      port: 3829
-
-atlasdb:
-  keyValueService:
-    type: cassandra
-    servers:
-      - cassandra:9160
-    poolSize: 20
-    credentials:
-      username: cassandra
-      password: cassandra
-    ssl: false
-    replicationFactor: 1
-    mutationBatchCount: 10000
-    mutationBatchSizeBytes: 10000000
-    fetchBatchCount: 1000
-    autoRefreshNodes: false
-
-  namespace: atlasete
-
-  leader:
-    quorumSize: 2
-    learnerLogDir: var/data/paxosLog/learner1
-    acceptorLogDir: var/data/paxosLog/acceptor1
-    localServer: http://${ME}:3828
-    leaders:
-      - http://ete1:3828
-      - http://ete2:3828
-      - http://ete3:3828
-    sslConfiguration:
-      keyStorePath: "var/security/keyStore.jks"
-      keyStorePassword: "keystore"
-      trustStorePath: "var/security/trustStore.jks"u}(j= (0f3fca984aef06482c3550558b9641048da27f88j:> Datlasdb-ete-tests/docker/conf/atlasdb-ete.embedded-and-cassandra.ymlj<> renamedj4> Kj5> Kj>> K
j?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-cassandra.ymljA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-cassandra.ymljC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-cassandra.yml?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X  @@ -15,7 +15,6 @@ atlasdb:
     servers:
       - cassandra:9160
     poolSize: 20
-    keyspace: atlasete
     credentials:
       username: cassandra
       password: cassandra
@@ -26,14 +25,4 @@ atlasdb:
     fetchBatchCount: 1000
     autoRefreshNodes: false
 
-  leader:
-    quorumSize: 1
-    learnerLogDir: var/data/paxosLog/learner1
-    acceptorLogDir: var/data/paxosLog/acceptor1
-    localServer: http://${ME}:3828
-    leaders:
-      - http://ete1:3828
-    sslConfiguration:
-      keyStorePath: "var/security/keyStore.jks"
-      keyStorePassword: "keystore"
-      trustStorePath: "var/security/trustStore.jks"
+  namespace: atlasetej> Hatlasdb-ete-tests/docker/conf/atlasdb-ete.no-leader.cassandra.client.ymlu}(j= (9c4e53b0d64b2fb53b069e5fdfa592d0e97c00c8j:> Aatlasdb-ete-tests/docker/conf/atlasdb-ete.embedded-and-oracle.ymlj<> renamedj4> K j5> K j>> K j?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-oracle.ymljA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-oracle.ymljC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-oracle.yml?ref=3acee7efef8617f3e3c316aea88b8f40057a969bj> 4atlasdb-ete-tests/docker/conf/atlasdb-ete.oracle.ymlu}(j= (d90d50b7ad7f52c3baa55d662d2f5edaa066bda2j:> Catlasdb-ete-tests/docker/conf/atlasdb-ete.embedded-and-postgres.ymlj<> renamedj4> K j5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-postgres.ymljA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-postgres.ymljC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-postgres.yml?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X  @@ -21,17 +21,3 @@ atlasdb:
       dbName: atlas
       dbLogin: palantir
       dbPassword: palantir
-
-  leader:
-    quorumSize: 2
-    learnerLogDir: var/data/paxosLog/learner1
-    acceptorLogDir: var/data/paxosLog/acceptor1
-    localServer: http://${ME}:3828
-    leaders:
-      - http://ete1:3828
-      - http://ete2:3828
-      - http://ete3:3828
-    sslConfiguration:
-      keyStorePath: "var/security/keyStore.jks"
-      keyStorePassword: "keystore"
-      trustStorePath: "var/security/trustStore.jks"j> 3atlasdb-ete-tests/docker/conf/atlasdb-ete.dbkvs.ymlu}(j= (ac10fa9faf73514073f11f37795985494d6695e7j:> Oatlasdb-ete-tests/docker/conf/atlasdb-ete.embedded-and-three-node-cassandra.ymlj<> renamedj4> K j5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-three-node-cassandra.ymljA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-three-node-cassandra.ymljC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-three-node-cassandra.yml?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X  @@ -29,15 +29,3 @@ atlasdb:
     replicationFactor: 3
 
   namespace: atlasete
-
-  leader:
-    quorumSize: 1
-    learnerLogDir: var/data/paxosLog/learner1
-    acceptorLogDir: var/data/paxosLog/acceptor1
-    localServer: http://${ME}:3828
-    leaders:
-      - http://ete1:3828
-    sslConfiguration:
-      keyStorePath: "var/security/keyStore.jks"
-      keyStorePassword: "keystore"
-      trustStorePath: "var/security/trustStore.jks"j> @atlasdb-ete-tests/docker/conf/atlasdb-ete.multiple-cassandra.ymlu}(j= (9addcfbf688c010f290472ca32822e97cdb84b49j:> Latlasdb-ete-tests/docker/conf/atlasdb-ete.postgres-timelock-and-postgres.ymlj<> renamedj4> K j5> K j>> K j?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.postgres-timelock-and-postgres.ymljA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.postgres-timelock-and-postgres.ymljC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.postgres-timelock-and-postgres.yml?ref=3acee7efef8617f3e3c316aea88b8f40057a969bj> <atlasdb-ete-tests/docker/conf/atlasdb-ete.timelock.dbkvs.ymlu}(j= (f46fae135144900f14845de3c8c7efc5b0b06e24j:> Datlasdb-ete-tests/docker/conf/atlasdb-ete.timelock-and-cassandra.ymlj<> renamedj4> K j5> K j>> K j?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.timelock-and-cassandra.ymljA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.timelock-and-cassandra.ymljC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.timelock-and-cassandra.yml?ref=3acee7efef8617f3e3c316aea88b8f40057a969bj> @atlasdb-ete-tests/docker/conf/atlasdb-ete.timelock.cassandra.ymlu}(j= (1859fc8d2d57dc2b3a048c08afb963f513a0ac9aj:> Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraTimeLockTestSuite.javaj<> removedj4> K j5> K.j>> K.j?> https://github.com/palantir/atlasdb/blob/9458838f336b95e56aec98b7b6fdeb43d87d966f/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javajA> https://github.com/palantir/atlasdb/raw/9458838f336b95e56aec98b7b6fdeb43d87d966f/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.java?ref=9458838f336b95e56aec98b7b6fdeb43d87d966fjE> X)  @@ -1,46 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.ete;
-
-import com.google.common.collect.ImmutableList;
-import com.palantir.atlasdb.containers.CassandraEnvironment;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import com.palantir.atlasdb.ete.coordination.MultipleSchemaVersionsCoordinationEteTest;
-import org.junit.ClassRule;
-import org.junit.rules.RuleChain;
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-
-@RunWith(Suite.class)
-@Suite.SuiteClasses({
-    TodoEteTest.class,
-    TargetedSweepEteTest.class,
-    CassandraTimestampsEteTest.class,
-    TimestampManagementEteTest.class,
-    CoordinationEteTest.class,
-    MultipleSchemaVersionsCoordinationEteTest.class,
-    LockWithTimelockEteTest.class
-})
-public class CassandraTimeLockTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");
-
-    @ClassRule
-    public static final RuleChain COMPOSITION_SETUP = EteSetup.setupCompositionWithTimelock(
-            CassandraTimeLockTestSuite.class,
-            "docker-compose.timelock.cassandra.yml",
-            CLIENTS,
-            CassandraEnvironment.get());
-}u}(j= (87848b037ef3ec51861ef46e47cc79daf74b1e96j:> Latlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/DbKvsTestSuite.javaj<> removedj4> K j5> K&j>> K&j?> https://github.com/palantir/atlasdb/blob/9458838f336b95e56aec98b7b6fdeb43d87d966f/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FDbKvsTestSuite.javajA> https://github.com/palantir/atlasdb/raw/9458838f336b95e56aec98b7b6fdeb43d87d966f/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FDbKvsTestSuite.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FDbKvsTestSuite.java?ref=9458838f336b95e56aec98b7b6fdeb43d87d966fjE> X  @@ -1,38 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.ete;
-
-import com.google.common.collect.ImmutableList;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import org.junit.ClassRule;
-import org.junit.rules.RuleChain;
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-
-@RunWith(Suite.class)
-@Suite.SuiteClasses({
-    TodoEteTest.class,
-    TimestampManagementEteTest.class,
-    CoordinationEteTest.class,
-    LockWithoutTimelockEteTest.class
-})
-public class DbKvsTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1", "ete2", "ete3");
-
-    @ClassRule
-    public static final RuleChain COMPOSITION_SETUP =
-            EteSetup.setupComposition(DbKvsTestSuite.class, "docker-compose.dbkvs.yml", CLIENTS);
-}u}(j= (f48aee4be35889d0da53f6362d8bab1e56d41345j:> Tatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/ServiceExposureEteTest.javaj<> removedj4> K j5> K-j>> K-j?> https://github.com/palantir/atlasdb/blob/9458838f336b95e56aec98b7b6fdeb43d87d966f/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FServiceExposureEteTest.javajA> https://github.com/palantir/atlasdb/raw/9458838f336b95e56aec98b7b6fdeb43d87d966f/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FServiceExposureEteTest.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FServiceExposureEteTest.java?ref=9458838f336b95e56aec98b7b6fdeb43d87d966fjE> X  @@ -1,45 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.ete;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.palantir.timestamp.TimestampManagementService;
-import com.palantir.timestamp.TimestampService;
-import org.junit.Test;
-
-public class ServiceExposureEteTest {
-    @Test
-    public void shouldExposeATimestampServer() {
-        TimestampService timestampClient = EteSetup.createClientToAllNodes(TimestampService.class);
-
-        assertThat(timestampClient.getFreshTimestamp()).isNotNull();
-    }
-
-    @Test
-    public void shouldExposeATimestampManagementServer() {
-        TimestampService timestampClient = EteSetup.createClientToAllNodes(TimestampService.class);
-        TimestampManagementService timestampManagementClient =
-                EteSetup.createClientToAllNodes(TimestampManagementService.class);
-
-        assertThat(timestampClient.getFreshTimestamp()).isNotNull();
-
-        long newts = timestampClient.getFreshTimestamp() + 10000000;
-        timestampManagementClient.fastForwardTimestamp(newts);
-
-        assertThat(timestampClient.getFreshTimestamp()).isGreaterThan(newts);
-    }
-}u}(j= (3e5e78208bd362f331e92ea8ca27a7a5449f0fc1j:> aatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/standalone/TimeLockMigrationEteTest.javaj<> renamedj4> Kj5> K
j>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fstandalone%2FTimeLockMigrationEteTest.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fstandalone%2FTimeLockMigrationEteTest.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fstandalone%2FTimeLockMigrationEteTest.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,12 +13,15 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.standalone;
 
 import static org.assertj.core.api.Assertions.catchThrowable;
 
 import com.google.common.util.concurrent.Uninterruptibles;
-import com.palantir.atlasdb.ete.DockerClientOrchestrationRule.DockerClientConfiguration;
+import com.palantir.atlasdb.ete.Gradle;
+import com.palantir.atlasdb.ete.utilities.DockerClientOrchestrationRule;
+import com.palantir.atlasdb.ete.utilities.DockerClientOrchestrationRule.DockerClientConfiguration;
+import com.palantir.atlasdb.ete.utilities.ImmutableDockerClientConfiguration;
 import com.palantir.atlasdb.http.AtlasDbHttpClients;
 import com.palantir.atlasdb.http.TestProxyUtils;
 import com.palantir.atlasdb.todo.ImmutableTodo;
@@ -66,7 +69,7 @@ public class TimeLockMigrationEteTest {
                         .build();
                 TEST_CONTEXT = ImmutableTimeLockMigrationTestContext.builder()
                         .eteConfigWithEmbedded(embeddedConfig)
-                        .eteConfigWithTimeLock(new File("docker/conf/atlasdb-ete.timelock.cassandra.yml"))
+                        .eteConfigWithTimeLock(new File("docker/conf/atlasdb-ete.timelock-and-cassandra.yml"))
                         .dockerClientConfiguration(dockerClientConfiguration)
                         .build();
                 break;
@@ -79,7 +82,7 @@ public class TimeLockMigrationEteTest {
                         .build();
                 TEST_CONTEXT = ImmutableTimeLockMigrationTestContext.builder()
                         .eteConfigWithEmbedded(embeddedConfig)
-                        .eteConfigWithTimeLock(new File("docker/conf/atlasdb-ete.timelock.dbkvs.yml"))
+                        .eteConfigWithTimeLock(new File("docker/conf/atlasdb-ete.postgres-timelock-and-postgres.yml"))
                         .dockerClientConfiguration(dockerClientConfiguration)
                         .build();
                 break;
@@ -100,6 +103,7 @@ public class TimeLockMigrationEteTest {
             SslConfiguration.of(Paths.get("var/security/trustStore.jks"));
     public static final TrustContext TRUST_CONTEXT = SslSocketFactories.createTrustContext(SSL_CONFIGURATION);
 
+    private static final long ID = 1L;
     private static final Todo TODO = ImmutableTodo.of("some stuff to do");
     private static final Todo TODO_2 = ImmutableTodo.of("more stuff to do");
     private static final Todo TODO_3 = ImmutableTodo.of("even more stuff to do");
@@ -126,17 +130,14 @@ public static void setUp() {
     }
 
     @Test
-    public void automaticallyMigratesTimestampsAndFailsOnRestart() throws Exception {
-        TimestampService timestampClient = createEteClientFor(TimestampService.class);
+    public void automaticallyMigratesTimestampsAndFailsOnRestart() {
         TodoResource todoClient = createEteClientFor(TodoResource.class);
 
-        todoClient.addTodo(TODO);
+        long embeddedTimestamp = todoClient.addTodoWithIdAndReturnTimestamp(ID, TODO);
         softAssertions
                 .assertThat(todoClient.getTodoList())
                 .as("contains one todo pre-migration")
                 .contains(TODO);
-
-        long embeddedTimestamp = timestampClient.getFreshTimestamp();
         softAssertions
                 .assertThat(embeddedTimestamp)
                 .as("can get a timestamp before migration")j> Vatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/TimeLockMigrationEteTest.javau}(j= (d2eb3ff2ef5633bf5fca376606a0944a7b8a1406j:> eatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/CassandraTimestampsEteTest.javaj<> renamedj4> Kj5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FCassandraTimestampsEteTest.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FCassandraTimestampsEteTest.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FCassandraTimestampsEteTest.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,12 +13,13 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.google.common.collect.Iterables;
-import com.palantir.atlasdb.ete.cassandra.util.CassandraCommands;
+import com.palantir.atlasdb.ete.utilities.CassandraCommands;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import com.palantir.atlasdb.table.description.ValueType;
 import com.palantir.atlasdb.todo.ImmutableTodo;
 import com.palantir.atlasdb.todo.Todo;j> Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraTimestampsEteTest.javau}(j= (a0cbd2bd9e1b4a2bbabc01cc187fd6af6e89ec24j:> ^atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/CoordinationEteTest.javaj<> renamedj4> Kj5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FCoordinationEteTest.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FCoordinationEteTest.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FCoordinationEteTest.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,12 +14,12 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.ete.coordination;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.palantir.atlasdb.coordination.CoordinationResource;
-import com.palantir.atlasdb.ete.EteSetup;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import org.junit.Before;
 import org.junit.Test;
 j> ^atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/coordination/CoordinationEteTest.javau}(j= (1d228445e551125627e9f4e3c1d64a5848e68df5j:> batlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/LockWithTimelockEteTest.javaj<> renamedj4> Kj5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FLockWithTimelockEteTest.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FLockWithTimelockEteTest.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FLockWithTimelockEteTest.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X}  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,10 +14,11 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import com.palantir.atlasdb.lock.LockResource;
 import org.junit.Test;
 j> Uatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/LockWithTimelockEteTest.javau}(j= (2162a2a261b3e53e8515c7650f68a9fae42d1d15j:> eatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/LockWithoutTimelockEteTest.javaj<> renamedj4> Kj5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FLockWithoutTimelockEteTest.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FLockWithoutTimelockEteTest.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FLockWithoutTimelockEteTest.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X}  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,10 +14,11 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import com.palantir.atlasdb.lock.LockResource;
 import org.junit.Test;
 j> Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/LockWithoutTimelockEteTest.javau}(j= (8e362098b30218b39c6a29ebfc48ba0227d201eaj:> natlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/MultiCassandraDoubleNodeDownEteTest.javaj<> renamedj4> Kj5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultiCassandraDoubleNodeDownEteTest.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultiCassandraDoubleNodeDownEteTest.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultiCassandraDoubleNodeDownEteTest.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,12 +13,14 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
+import com.palantir.atlasdb.ete.utilities.MultiCassandraUtils;
 import com.palantir.atlasdb.todo.ImmutableTodo;
 import com.palantir.atlasdb.todo.Todo;
 import com.palantir.atlasdb.todo.TodoResource;j> aatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/MultiCassandraDoubleNodeDownEteTest.javau}(j= (1e8e59ecea793ea0e738113a5fc549df9d547118j:> natlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/MultiCassandraSingleNodeDownEteTest.javaj<> renamedj4> Kj5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultiCassandraSingleNodeDownEteTest.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultiCassandraSingleNodeDownEteTest.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultiCassandraSingleNodeDownEteTest.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> Xr  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,11 +13,13 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
+import com.palantir.atlasdb.ete.utilities.MultiCassandraUtils;
 import com.palantir.atlasdb.todo.ImmutableTodo;
 import com.palantir.atlasdb.todo.Todo;
 import com.palantir.atlasdb.todo.TodoResource;j> aatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/MultiCassandraSingleNodeDownEteTest.javau}(j= (ab481bbb799dd4dfc95851565247e2259ad2730fj:> tatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/MultipleSchemaVersionsCoordinationEteTest.javaj<> renamedj4> Kj5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultipleSchemaVersionsCoordinationEteTest.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultipleSchemaVersionsCoordinationEteTest.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultipleSchemaVersionsCoordinationEteTest.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X>  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,13 +14,13 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.ete.coordination;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 
 import com.palantir.atlasdb.coordination.CoordinationResource;
-import com.palantir.atlasdb.ete.EteSetup;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import org.junit.Test;
 
 public class MultipleSchemaVersionsCoordinationEteTest {j> tatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/coordination/MultipleSchemaVersionsCoordinationEteTest.javau}(j= (549c625af31fd66c34ed255df058100f5ee8ad3bj:> _atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/TargetedSweepEteTest.javaj<> renamedj4> Kj5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTargetedSweepEteTest.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTargetedSweepEteTest.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTargetedSweepEteTest.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> XU  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,10 +13,12 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.ete.utilities.EteSetup;
+import com.palantir.atlasdb.ete.utilities.StreamTestUtils;
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.todo.ImmutableTodo;j> Ratlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/TargetedSweepEteTest.javau}(j= (7423cffd6511933700cb3577543613bb080abce6j:> eatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/TimestampManagementEteTest.javaj<> renamedj4> Kj5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTimestampManagementEteTest.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTimestampManagementEteTest.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTimestampManagementEteTest.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,10 +13,11 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import com.palantir.atlasdb.timestamp.EteTimestampResource;
 import org.junit.Test;
 j> Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/TimestampManagementEteTest.javau}(j= (6c0f4537e9eb3ec7925e5af18c617ace3951e4ddj:> Vatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/TodoEteTest.javaj<> renamedj4> Kj5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTodoEteTest.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTodoEteTest.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTodoEteTest.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> XF  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,10 +13,12 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.ete.utilities.EteSetup;
+import com.palantir.atlasdb.ete.utilities.StreamTestUtils;
 import com.palantir.atlasdb.keyvalue.api.SweepResults;
 import com.palantir.atlasdb.todo.ImmutableTodo;
 import com.palantir.atlasdb.todo.Todo;j> Iatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/TodoEteTest.javau}(j= (3c06663b222d617847d95afe0698c144caa0d045j:> xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/MultiClientWithPostgresTimelockAndPostgresTestSuite.javaj<> renamedj4> Kj5> K
j>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithPostgresTimelockAndPostgresTestSuite.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithPostgresTimelockAndPostgresTestSuite.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithPostgresTimelockAndPostgresTestSuite.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> Xx  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,11 +13,14 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suites;
 
-import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.CoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.LockWithTimelockEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TimestampManagementEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TodoEteTest;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;
@@ -30,13 +33,11 @@
     CoordinationEteTest.class,
     LockWithTimelockEteTest.class
 })
-public class PostgresDbPersistenceTimeLockTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");
-
+public class MultiClientWithPostgresTimelockAndPostgresTestSuite extends EteSetup {
     @ClassRule
     public static final RuleChain COMPOSITION_SETUP = EteSetup.setupCompositionWithTimelock(
-            PostgresDbPersistenceTimeLockTestSuite.class,
-            "docker-compose.timelock.database.bound.postgres.yml",
-            CLIENTS,
+            MultiClientWithPostgresTimelockAndPostgresTestSuite.class,
+            "docker-compose.multi-client-with-postgres-timelock-and-postgres.yml",
+            Clients.MULTI,
             ImmutableMap.of());
 }j> datlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/PostgresDbPersistenceTimeLockTestSuite.javau}(j= (a7b7d101d649e13915fdba7c9ac71c82bf51b385j:> qatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/MultiClientWithTimelockAndCassandraTestSuite.javaj<> addedj4> K1j5> K j>> K1j?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithTimelockAndCassandraTestSuite.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithTimelockAndCassandraTestSuite.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithTimelockAndCassandraTestSuite.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bC     jE> X  @@ -0,0 +1,49 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.palantir.atlasdb.ete.suites;
+
+import com.palantir.atlasdb.containers.CassandraEnvironment;
+import com.palantir.atlasdb.ete.suiteclasses.CassandraTimestampsEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.CoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.LockWithTimelockEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.MultipleSchemaVersionsCoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TargetedSweepEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TimestampManagementEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TodoEteTest;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
+import org.junit.ClassRule;
+import org.junit.rules.RuleChain;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+@RunWith(Suite.class)
+@Suite.SuiteClasses({
+        TodoEteTest.class,
+        TargetedSweepEteTest.class,
+        CassandraTimestampsEteTest.class,
+        TimestampManagementEteTest.class,
+        CoordinationEteTest.class,
+        MultipleSchemaVersionsCoordinationEteTest.class,
+        LockWithTimelockEteTest.class
+})
+public class MultiClientWithTimelockAndCassandraTestSuite extends EteSetup {
+    @ClassRule
+    public static final RuleChain COMPOSITION_SETUP = EteSetup.setupCompositionWithTimelock(
+            MultiClientWithTimelockAndCassandraTestSuite.class,
+            "docker-compose.multi-client-with-timelock-and-cassandra.yml",
+            Clients.MULTI,
+            CassandraEnvironment.get());
+}u}(j= (3144e5d0d359764709d0f81a49d14bf7c97f81e6j:> ratlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/SingleClientWithEmbeddedAndCassandraTestSuite.javaj<> renamedj4> Kj5> K
j>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndCassandraTestSuite.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndCassandraTestSuite.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndCassandraTestSuite.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> Xd  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,12 +13,14 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suites;
 
-import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.containers.CassandraEnvironment;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import com.palantir.atlasdb.ete.coordination.MultipleSchemaVersionsCoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.CoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.MultipleSchemaVersionsCoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TimestampManagementEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TodoEteTest;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;
@@ -27,15 +29,15 @@
 @RunWith(Suite.class)
 @Suite.SuiteClasses({
     TodoEteTest.class,
-    ServiceExposureEteTest.class,
     TimestampManagementEteTest.class,
     CoordinationEteTest.class,
     MultipleSchemaVersionsCoordinationEteTest.class
 })
-public class CassandraMultinodeTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1", "ete2", "ete3");
-
+public class SingleClientWithEmbeddedAndCassandraTestSuite extends EteSetup {
     @ClassRule
     public static final RuleChain COMPOSITION_SETUP = EteSetup.setupComposition(
-            CassandraMultinodeTestSuite.class, "docker-compose.cassandra.yml", CLIENTS, CassandraEnvironment.get());
+            SingleClientWithEmbeddedAndCassandraTestSuite.class,
+            "docker-compose.single-client-with-embedded-and-cassandra.yml",
+            Clients.SINGLE,
+            CassandraEnvironment.get());
 }j> Yatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraMultinodeTestSuite.javau}(j= (9e14624754af58cf6c39d80ca73e37b15462d10cj:> oatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/SingleClientWithEmbeddedAndOracleTestSuite.javaj<> renamedj4> Kj5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndOracleTestSuite.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndOracleTestSuite.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndOracleTestSuite.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,12 +13,15 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
 
-import com.google.common.collect.ImmutableList;
-import com.palantir.atlasdb.containers.CassandraEnvironment;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import com.palantir.atlasdb.ete.coordination.MultipleSchemaVersionsCoordinationEteTest;
+package com.palantir.atlasdb.ete.suites;
+
+import com.palantir.atlasdb.ete.suiteclasses.CoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.LockWithoutTimelockEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TimestampManagementEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TodoEteTest;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
+import java.time.Duration;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;
@@ -27,20 +30,15 @@
 @RunWith(Suite.class)
 @Suite.SuiteClasses({
     TodoEteTest.class,
-    ServiceExposureEteTest.class,
-    CassandraTimestampsEteTest.class,
     TimestampManagementEteTest.class,
     CoordinationEteTest.class,
-    MultipleSchemaVersionsCoordinationEteTest.class,
     LockWithoutTimelockEteTest.class
 })
-public class CassandraNoLeaderTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");
-
+public class SingleClientWithEmbeddedAndOracleTestSuite extends EteSetup {
     @ClassRule
     public static final RuleChain COMPOSITION_SETUP = EteSetup.setupComposition(
-            CassandraNoLeaderTestSuite.class,
-            "docker-compose.no-leader.cassandra.yml",
-            CLIENTS,
-            CassandraEnvironment.get());
+            SingleClientWithEmbeddedAndOracleTestSuite.class,
+            "docker-compose.single-client-with-embedded-and-oracle.yml",
+            Clients.SINGLE,
+            Duration.ofMinutes(10));
 }j> Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraNoLeaderTestSuite.javau}(j= (629701f7b6ac2e83594f215e880dc5791d78f360j:> qatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/SingleClientWithEmbeddedAndPostgresTestSuite.javaj<> renamedj4> Kj5> K
j>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndPostgresTestSuite.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndPostgresTestSuite.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndPostgresTestSuite.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,12 +13,13 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+package com.palantir.atlasdb.ete.suites;
 
-package com.palantir.atlasdb.ete;
-
-import com.google.common.collect.ImmutableList;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import java.time.Duration;
+import com.palantir.atlasdb.ete.suiteclasses.CoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.LockWithoutTimelockEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TimestampManagementEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TodoEteTest;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;
@@ -31,10 +32,10 @@
     CoordinationEteTest.class,
     LockWithoutTimelockEteTest.class
 })
-public class OracleDbKvsEteTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");
-
+public class SingleClientWithEmbeddedAndPostgresTestSuite extends EteSetup {
     @ClassRule
     public static final RuleChain COMPOSITION_SETUP = EteSetup.setupComposition(
-            OracleDbKvsEteTestSuite.class, "docker-compose.oracle.yml", CLIENTS, Duration.ofMinutes(10));
+            SingleClientWithEmbeddedAndPostgresTestSuite.class,
+            "docker-compose.single-client-with-embedded-and-postgres.yml",
+            Clients.SINGLE);
 }j> Uatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/OracleDbKvsEteTestSuite.javau}(j= (3e5ff3ed258aaf6fd089362f79ffb7c07cacefa4j:> {atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.javaj<> renamedj4> Kj5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X	  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,12 +13,17 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suites;
 
-import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.containers.CassandraEnvironment;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import com.palantir.atlasdb.ete.coordination.MultipleSchemaVersionsCoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.CoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.LockWithoutTimelockEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.MultiCassandraDoubleNodeDownEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.MultiCassandraSingleNodeDownEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.MultipleSchemaVersionsCoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TimestampManagementEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TodoEteTest;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;
@@ -27,21 +32,18 @@
 @RunWith(Suite.class)
 @Suite.SuiteClasses({
     TodoEteTest.class,
-    ServiceExposureEteTest.class,
     MultiCassandraSingleNodeDownEteTest.class,
     MultiCassandraDoubleNodeDownEteTest.class,
     TimestampManagementEteTest.class,
     CoordinationEteTest.class,
     MultipleSchemaVersionsCoordinationEteTest.class,
     LockWithoutTimelockEteTest.class
 })
-public class MultiCassandraTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");
-
+public class SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite extends EteSetup {
     @ClassRule
     public static final RuleChain COMPOSITION_SETUP = EteSetup.setupComposition(
-            MultiCassandraTestSuite.class,
-            "docker-compose.multiple-cassandra.yml",
-            CLIENTS,
+            SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.class,
+            "docker-compose.single-client-with-embedded-and-three-node-cassandra.yml",
+            Clients.SINGLE,
             CassandraEnvironment.get());
 }j> Uatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/MultiCassandraTestSuite.javau}(j= (69bf3c9a8268915b86a87ee9bf78263b70325019j:> Yatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/utilities/CassandraCommands.javaj<> renamedj4> Kj5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FCassandraCommands.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FCassandraCommands.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FCassandraCommands.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X
  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,10 +13,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete.cassandra.util;
+package com.palantir.atlasdb.ete.utilities;
 
 import com.google.common.io.BaseEncoding;
-import com.palantir.atlasdb.ete.EteSetup;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl;
 import java.io.IOException;j> ^atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/cassandra/util/CassandraCommands.javau}(j= (0c44336121ccd9b0cd7410a7e2966f0d7f9997d9j:> eatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/utilities/DockerClientOrchestrationRule.javaj<> renamedj4> Kj5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FDockerClientOrchestrationRule.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FDockerClientOrchestrationRule.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FDockerClientOrchestrationRule.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,11 +13,12 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.utilities;
 
 import com.google.common.base.Throwables;
 import com.google.common.collect.ImmutableMap;
 import com.palantir.atlasdb.containers.CassandraEnvironment;
+import com.palantir.atlasdb.ete.standalone.TimeLockMigrationEteTest;
 import com.palantir.docker.compose.DockerComposeRule;
 import com.palantir.docker.compose.connection.DockerMachine;
 import com.palantir.docker.compose.connection.waiting.ClusterHealthCheck;j> [atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/DockerClientOrchestrationRule.javau}(j= (e6fe91c9f447033dde9232d11a47161d80eb6dd4j:> Patlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/utilities/EteSetup.javaj<> renamedj4> K!j5> K(j>> KIj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FEteSetup.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FEteSetup.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FEteSetup.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> Xw  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,17 +13,16 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.utilities;
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.AtlasDbEteServer;
-import com.palantir.atlasdb.config.ImmutableServerListConfig;
+import com.palantir.atlasdb.ete.Gradle;
 import com.palantir.atlasdb.http.AtlasDbHttpClients;
 import com.palantir.atlasdb.http.TestProxyUtils;
 import com.palantir.atlasdb.todo.TodoResource;
-import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.conjure.java.api.config.ssl.SslConfiguration;
 import com.palantir.conjure.java.config.ssl.SslSocketFactories;
 import com.palantir.conjure.java.config.ssl.TrustContext;
@@ -38,12 +37,10 @@
 import java.io.IOException;
 import java.nio.file.Paths;
 import java.time.Duration;
-import java.util.Collection;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.Callable;
-import java.util.stream.Collectors;
 import org.awaitility.Awaitility;
 import org.junit.rules.ExternalResource;
 import org.junit.rules.RuleChain;
@@ -65,48 +62,48 @@ public abstract class EteSetup {
     private static List<String> availableClients;
     private static Duration waitDuration;
 
-    public static RuleChain setupComposition(Class<?> eteClass, String composeFile, List<String> availableClientNames) {
-        return setupComposition(eteClass, composeFile, availableClientNames, Duration.ofMinutes(2));
+    public static RuleChain setupComposition(Class<?> eteClass, String composeFile, Clients clients) {
+        return setupComposition(eteClass, composeFile, clients, Duration.ofMinutes(2));
     }
 
     public static RuleChain setupComposition(
-            Class<?> eteClass, String composeFile, List<String> availableClientNames, Duration waitTime) {
-        return setupComposition(eteClass, composeFile, availableClientNames, waitTime, ImmutableMap.of());
+            Class<?> eteClass, String composeFile, Clients clients, Duration waitTime) {
+        return setupComposition(eteClass, composeFile, clients, waitTime, ImmutableMap.of());
     }
 
     public static RuleChain setupComposition(
-            Class<?> eteClass, String composeFile, List<String> availableClientNames, Map<String, String> environment) {
-        return setupComposition(eteClass, composeFile, availableClientNames, Duration.ofMinutes(2), environment);
+            Class<?> eteClass, String composeFile, Clients clients, Map<String, String> environment) {
+        return setupComposition(eteClass, composeFile, clients, Duration.ofMinutes(2), environment);
     }
 
     public static RuleChain setupComposition(
             Class<?> eteClass,
             String composeFile,
-            List<String> availableClientNames,
+            Clients clients,
             Duration waitTime,
             Map<String, String> environment) {
         waitDuration = waitTime;
-        return setup(eteClass, composeFile, availableClientNames, environment);
+        return setup(eteClass, composeFile, clients, environment);
     }
 
     public static RuleChain setupCompositionWithTimelock(
-            Class<?> eteClass, String composeFile, List<String> availableClientNames, Map<String, String> environment) {
+            Class<?> eteClass, String composeFile, Clients clients, Map<String, String> environment) {
         waitDuration = Duration.ofMinutes(2);
-        return setup(eteClass, composeFile, availableClientNames, environment, true);
+        return setup(eteClass, composeFile, clients, environment, true);
     }
 
     public static RuleChain setup(
-            Class<?> eteClass, String composeFile, List<String> availableClientNames, Map<String, String> environment) {
-        return setup(eteClass, composeFile, availableClientNames, environment, false);
+            Class<?> eteClass, String composeFile, Clients clients, Map<String, String> environment) {
+        return setup(eteClass, composeFile, clients, environment, false);
     }
 
     public static RuleChain setup(
             Class<?> eteClass,
             String composeFile,
-            List<String> availableClientNames,
+            Clients clients,
             Map<String, String> environment,
             boolean usingTimelock) {
-        availableClients = ImmutableList.copyOf(availableClientNames);
+        availableClients = clients.getClients();
 
         DockerMachine machine =
                 DockerMachine.localMachine().withEnvironment(environment).build();
@@ -145,18 +142,14 @@ public static <T> T createClientToSingleNodeWithExtendedTimeout(Class<T> clazz)
         return createClientWithExtendedTimeout(clazz, Iterables.getFirst(availableClients, null), SERVER_PORT);
     }
 
-    static <T> T createClientToAllNodes(Class<T> clazz) {
-        return createClientToMultipleNodes(clazz, availableClients, SERVER_PORT);
-    }
-
     public static Container getContainer(String containerName) {
         return docker.containers().container(containerName);
     }
 
     private static ExternalResource waitForServersToBeReady() {
         return new ExternalResource() {
             @Override
-            protected void before() throws Throwable {
+            protected void before() {
                 Awaitility.await()
                         .ignoreExceptions()
                         .atMost(waitDuration)
@@ -176,21 +169,6 @@ private static Callable<Boolean> serversAreReady() {
         };
     }
 
-    private static <T> T createClientToMultipleNodes(Class<T> clazz, List<String> nodeNames, short port) {
-        Collection<String> uris = nodeNames.stream()
-                .map(nodeName -> String.format("http://%s:%s", nodeName, port))
-                .collect(Collectors.toList());
-
-        return AtlasDbHttpClients.createProxyWithFailover(
-                MetricsManagers.createForTests(),
-                ImmutableServerListConfig.builder()
-                        .addAllServers(uris)
-                        .sslConfiguration(SSL_CONFIGURATION)
-                        .build(),
-                clazz,
-                TestProxyUtils.AUXILIARY_REMOTING_PARAMETERS_RETRYING);
-    }
-
     private static <T> T createClientFor(Class<T> clazz, String host, short port) {
         String uri = String.format("http://%s:%s", host, port);
         return AtlasDbHttpClients.createProxy(
@@ -202,4 +180,19 @@ private static <T> T createClientWithExtendedTimeout(Class<T> clazz, String host
         return AtlasDbHttpClients.createProxy(
                 Optional.of(TRUST_CONTEXT), uri, clazz, TestProxyUtils.AUXILIARY_REMOTING_PARAMETERS_EXTENDED_TIMEOUT);
     }
+
+    public enum Clients {
+        SINGLE(ImmutableList.of("ete1")),
+        MULTI(ImmutableList.of("ete1", "ete2"));
+
+        private final ImmutableList<String> clients;
+
+        Clients(ImmutableList<String> clients) {
+            this.clients = clients;
+        }
+
+        List<String> getClients() {
+            return clients;
+        }
+    }
 }j> Fatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/EteSetup.javau}(j= (c352725f9e8fafdda672636663a32eddca7f693cj:> [atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/utilities/MultiCassandraUtils.javaj<> renamedj4> Kj5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FMultiCassandraUtils.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FMultiCassandraUtils.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FMultiCassandraUtils.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> Xg  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.utilities;
 
 import com.google.common.base.Throwables;
 import com.palantir.docker.compose.connection.Container;j> Qatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/MultiCassandraUtils.javau}(j= (e6e007b6ed0522e2abf26b463ff1f0f8bcc9cf68j:> Watlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/utilities/StreamTestUtils.javaj<> renamedj4> Kj5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FStreamTestUtils.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FStreamTestUtils.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FStreamTestUtils.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> Xa  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.utilities;
 
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.todo.TodoResource;j> Matlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/StreamTestUtils.javau}(j= (a251b92eabd208ac88784e2fdc765f1f810ce9fbj:> patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj<> modifiedj4> Kj5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> Xx  @@ -130,7 +130,7 @@ public void allRelevantCellsAreRecordedForFullColumnScan() {
                         .isInstanceOfSatisfying(
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
-                                        .isEqualTo(IntStream.range(0, iterationCount)
+                                        .containsExactlyElementsOf(IntStream.range(0, iterationCount)
                                                 .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
                                                 .collect(Collectors.toList()))));
     }
@@ -158,7 +158,7 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
                         .isInstanceOfSatisfying(
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
-                                        .isEqualTo(IntStream.range(startInclusive, endExclusive)
+                                        .containsExactlyElementsOf(IntStream.range(startInclusive, endExclusive)
                                                 .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
                                                 .collect(Collectors.toList()))));
     }u}(j= (8662e0582f5aff3fdfa81d6e33ab22e4049363f9j:> qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflowTest.javaj<> modifiedj4> Kj5> Kj>> Kj?> https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javajA> https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javajC> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.java?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X  @@ -101,7 +101,7 @@ public void writesThenDeletes() {
 
         List<WitnessedTransaction> transactions = workflow.run().history();
 
-        assertThat(transactions.size()).isEqualTo(4);
+        assertThat(transactions).hasSize(4);
         assertWriteTransaction(transactions.get(0), 0);
         assertDeleteTransaction(transactions.get(1), 0);
         assertWriteTransaction(transactions.get(2), 1);u}(j= (f5acd046834792f42b2401b67305dfa6f3509572j:> build.gradlej<> modifiedj4> Kj5> Kj>> Kj?> ^https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/build.gradlejA> ]https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/build.gradlejC> phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X  @@ -7,20 +7,20 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.4'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.6'
         classpath 'com.netflix.nebula:nebula-publishing-plugin:20.3.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.39.0'
-        classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.41.0'
+        classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.13.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
-        classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.34.0'
+        classpath 'com.palantir.metricschema:gradle-metric-schema:0.22.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
-        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.3'
+        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.4'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
         classpath 'gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1'
         classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'u}(j= (fee58d12969ff103787c5364360b6099175e95ebj:>  changelog/0.902.0/pr-6678.v2.ymlj<> addedj4> Kj5> K j>> Kj?> vhttps://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/changelog%2F0.902.0%2Fpr-6678.v2.ymljA> uhttps://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/changelog%2F0.902.0%2Fpr-6678.v2.ymljC> https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.902.0%2Fpr-6678.v2.yml?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Bump CI to Oracle 19.20
+  links:
+  - https://github.com/palantir/atlasdb/pull/6678u}(j= (cff52dc50fc6337a027d771d49cd4ea9c634d6ecj:>  changelog/0.903.0/pr-6673.v2.ymlj<> addedj4> Kj5> K j>> Kj?> vhttps://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/changelog%2F0.903.0%2Fpr-6673.v2.ymljA> uhttps://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/changelog%2F0.903.0%2Fpr-6673.v2.ymljC> https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.903.0%2Fpr-6673.v2.yml?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> @@ -0,0 +1,6 @@
+type: feature
+feature:
+  description: AtlasDB no longer register timelock endpoints when using single-node
+    embedded timelock.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6673u}(j= (7a91f7592f47ecc1f882f17bdc496678ee21aac3j:>  changelog/0.907.0/pr-6688.v2.ymlj<> addedj4> Kj5> K j>> Kj?> vhttps://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/changelog%2F0.907.0%2Fpr-6688.v2.ymljA> uhttps://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/changelog%2F0.907.0%2Fpr-6688.v2.ymljC> https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.907.0%2Fpr-6688.v2.yml?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> @@ -0,0 +1,6 @@
+type: fix
+fix:
+  description: add netty-handler as a direct dependency so that downstream projects
+    resolve the correct version
+  links:
+  - https://github.com/palantir/atlasdb/pull/6688u}(j= (afba109285af78dbd2a1d187e33ac4f87c76e392j:> !gradle/wrapper/gradle-wrapper.jarj<> modifiedj4> K j5> K j>> K j?> whttps://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/gradle%2Fwrapper%2Fgradle-wrapper.jarjA> vhttps://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/gradle%2Fwrapper%2Fgradle-wrapper.jarjC> https://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fwrapper%2Fgradle-wrapper.jar?ref=3acee7efef8617f3e3c316aea88b8f40057a969bu}(j= (4e86b9270786fb25deb2931bfa2e777799ec2a25j:> (gradle/wrapper/gradle-wrapper.propertiesj<> modifiedj4> Kj5> Kj>> Kj?> ~https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/gradle%2Fwrapper%2Fgradle-wrapper.propertiesjA> }https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/gradle%2Fwrapper%2Fgradle-wrapper.propertiesjC> https://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fwrapper%2Fgradle-wrapper.properties?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> XC  @@ -1,6 +1,6 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip
 networkTimeout=10000
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/distsu}(j= (b5f796ab3477670b4547dbda5fd7b6989458a0fcj:> Ilock-impl/src/main/java/com/palantir/lock/logger/LockStateYamlWriter.javaj<> removedj4> K j5> Kbj>> Kbj?> https://github.com/palantir/atlasdb/blob/9458838f336b95e56aec98b7b6fdeb43d87d966f/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockStateYamlWriter.javajA> https://github.com/palantir/atlasdb/raw/9458838f336b95e56aec98b7b6fdeb43d87d966f/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockStateYamlWriter.javajC> https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockStateYamlWriter.java?ref=9458838f336b95e56aec98b7b6fdeb43d87d966fjE> X
  @@ -1,98 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.lock.logger;
-
-import com.palantir.lock.LockDescriptor;
-import java.io.Closeable;
-import java.io.File;
-import java.io.IOException;
-import java.io.Writer;
-import java.nio.charset.StandardCharsets;
-import java.nio.file.Files;
-import java.nio.file.StandardOpenOption;
-import org.yaml.snakeyaml.DumperOptions;
-import org.yaml.snakeyaml.Yaml;
-import org.yaml.snakeyaml.nodes.Tag;
-import org.yaml.snakeyaml.representer.Representer;
-
-/**
- * A simple wrapper for writing lock state as YAML to a file.
- */
-class LockStateYamlWriter implements Closeable {
-    private static final Yaml yaml = new Yaml(getRepresenter(), getDumperOptions());
-
-    private final Writer writer;
-
-    LockStateYamlWriter(Writer fileWriter) {
-        this.writer = fileWriter;
-    }
-
-    /**
-     * Creates a LockStateYamlWriter for the given file in append mode.
-     */
-    public static LockStateYamlWriter create(File file) throws IOException {
-        return new LockStateYamlWriter(Files.newBufferedWriter(
-                file.toPath(), StandardCharsets.UTF_8, StandardOpenOption.CREATE, StandardOpenOption.APPEND));
-    }
-
-    /**
-     * Write an object to the file as YAML.
-     */
-    public void dumpObject(Object data) {
-        yaml.dump(data, writer);
-    }
-
-    /**
-     * Write a string to the file as a YAML comment.
-     * The string must be a single line.
-     */
-    public void appendComment(String string) throws IOException {
-        writer.append("# ");
-        writer.append(string);
-        writer.append("\n");
-    }
-
-    private static Representer getRepresenter() {
-        Representer representer = new LockDescriptorAwareRepresenter();
-        representer.addClassTag(ImmutableSimpleTokenInfo.class, Tag.MAP);
-        representer.addClassTag(ImmutableSimpleLockRequest.class, Tag.MAP);
-        representer.addClassTag(ImmutableSanitizedLockRequestProgress.class, Tag.MAP);
-        representer.addClassTag(SimpleLockRequestsWithSameDescriptor.class, Tag.MAP);
-        representer.addClassTag(LockDescriptor.class, Tag.MAP);
-        return representer;
-    }
-
-    private static DumperOptions getDumperOptions() {
-        DumperOptions options = new DumperOptions();
-        options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
-        options.setIndent(4);
-        options.setAllowReadOnlyProperties(true);
-        options.setExplicitStart(true);
-        return options;
-    }
-
-    @Override
-    public void close() throws IOException {
-        writer.close();
-    }
-
-    private static class LockDescriptorAwareRepresenter extends Representer {
-        LockDescriptorAwareRepresenter() {
-            super();
-            this.representers.put(LockDescriptor.class, data -> representScalar(Tag.STR, data.toString()));
-        }
-    }
-}u}(j= (46b08373d5f2c6671184ea4db24958e4b16ecbf7j:> %scripts/circle-ci/run-circle-tests.shj<> modifiedj4> Kj5> Kj>> K
j?> {https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/scripts%2Fcircle-ci%2Frun-circle-tests.shjA> zhttps://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/scripts%2Fcircle-ci%2Frun-circle-tests.shjC> https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X
  @@ -15,21 +15,21 @@ function checkDocsBuild {
 
 CONTAINER_1=(':atlasdb-cassandra-integration-tests:testSubset1')
 
-CONTAINER_2=(':atlasdb-ete-tests:check')
+CONTAINER_2=(':atlasdb-ete-tests:check' ':atlasdb-ete-tests:multiClientWithPostgresTimelockAndPostgresTest' ':atlasdb-ete-tests:multiClientWithTimelockAndCassandraTest')
 
 CONTAINER_3=(':timelock-server:integTest')
 
-CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:dbkvsTest')
+CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:singleClientWithEmbeddedAndPostgresTest')
 
-CONTAINER_5=(':lock-impl:check' ':atlasdb-dbkvs-tests:postgresTest' ':atlasdb-ete-test-utils:check' ':atlasdb-ete-tests:longTest')
+CONTAINER_5=(':lock-impl:check' ':atlasdb-dbkvs-tests:postgresTest' ':atlasdb-ete-test-utils:check' ':atlasdb-ete-tests:singleClientWithEmbeddedAndThreeNodeCassandraTest' ':atlasdb-ete-tests:singleClientWithEmbeddedAndCassandraTest')
 
 CONTAINER_6=(':timelock-server:suiteTest')
 
 CONTAINER_7=(':timelock-server:stressTest')
 
 CONTAINER_8=(':atlasdb-cassandra-integration-tests:testSubset2')
 
-CONTAINER_9=(':atlasdb-ete-tests:oracleTest')
+CONTAINER_9=(':atlasdb-ete-tests:singleClientWithEmbeddedAndOracleTest')
 
 CONTAINER_10=('atlasdb-dbkvs-tests:oracleTest')
 
@@ -92,7 +92,7 @@ export CASSANDRA_HEAP_NEWSIZE=64m
 case "$test_suite_index" in
     0) ./gradlew $BASE_GRADLE_ARGS check $CONTAINER_0_EXCLUDE_ARGS -x :atlasdb-jepsen-tests:check;;
     1) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_1[@]} ;;
-    2) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_2[@]} -x :atlasdb-ete-tests:longTest -x atlasdb-ete-tests:dbkvsTest -x :atlasdb-ete-tests:timeLockMigrationTest ;;
+    2) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_2[@]} -x :atlasdb-ete-tests:customEteTasks ;;
     3) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_3[@]} ;;
     4) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_4[@]} ;;
     5) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_5[@]} ;;u}(j= (404b7a5ade2768d4f0eb2774facc256dc79e0f45j:> 
versions.lockj<> modifiedj4> KKj5> KKj>> Kj?> _https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/versions.lockjA> ^https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/versions.lockjC> qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X	K  @@ -8,24 +8,24 @@ com.boundary:high-scale-lib:1.0.6 (2 constraints: 9d14d4a0)
 com.clearspring.analytics:stream:2.5.2 (1 constraints: 970f7788)
 com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
-com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c38132bb)
-com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bbb5dd72)
-com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 06bad036)
-com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e233e000)
-com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7f1c9ea4)
-com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2 (4 constraints: 2244332b)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 343f76b0)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6c30915e)
-com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 322bf7af)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6c30915e)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 41197bbb)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.2 (2 constraints: 251d9309)
-com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9b1c99a6)
-com.fasterxml.jackson.module:jackson-module-blackbird:2.14.2 (1 constraints: b40e625e)
-com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 2dce2620)
+com.fasterxml.jackson.core:jackson-annotations:2.15.2 (24 constraints: c98164d0)
+com.fasterxml.jackson.core:jackson-core:2.15.2 (22 constraints: c9b52a9f)
+com.fasterxml.jackson.core:jackson-databind:2.15.2 (37 constraints: 17ba4690)
+com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.15.2 (2 constraints: e3333101)
+com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.15.2 (1 constraints: 7f1c9ea4)
+com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.15.2 (4 constraints: 2344e62b)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.15.2 (4 constraints: 353f1bb1)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.2 (3 constraints: 6d300c5f)
+com.fasterxml.jackson.datatype:jackson-datatype-joda:2.15.2 (2 constraints: 322bf7af)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.2 (3 constraints: 6d300c5f)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.15.2 (2 constraints: dd2ecb69)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.15.2 (1 constraints: 41197bbb)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.15.2 (2 constraints: 251d9309)
+com.fasterxml.jackson.module:jackson-module-afterburner:2.15.2 (1 constraints: 9b1c99a6)
+com.fasterxml.jackson.module:jackson-module-blackbird:2.15.2 (1 constraints: b40e625e)
+com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.15.2 (2 constraints: dd2ecb69)
+com.fasterxml.jackson.module:jackson-module-parameter-names:2.15.2 (1 constraints: b40e625e)
+com.github.ben-manes.caffeine:caffeine:3.1.6 (13 constraints: 34ce7029)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -45,11 +45,11 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f994935f)
+com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: 1595607f)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
-com.google.guava:guava:32.1.1-jre (48 constraints: 03383c24)
+com.google.guava:guava:32.1.1-jre (48 constraints: d13c9656)
 com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava (1 constraints: bd17c918)
 com.google.j2objc:j2objc-annotations:2.8 (1 constraints: be09f5a0)
 com.google.protobuf:protobuf-java:3.21.9 (1 constraints: 4105453b)
@@ -67,28 +67,28 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:7.5.0 (5 constraints: cd530c72)
-com.palantir.conjure.java:conjure-undertow-annotations:7.5.0 (1 constraints: 0e051d36)
-com.palantir.conjure.java:conjure-undertow-lib:7.5.0 (2 constraints: 1d1c4081)
-com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 3d696e70)
-com.palantir.conjure.java.api:service-config:2.34.0 (5 constraints: 724d79ca)
-com.palantir.conjure.java.api:ssl-config:2.34.0 (3 constraints: e22a0da5)
-com.palantir.conjure.java.runtime:client-config:7.45.0 (6 constraints: bd6b2133)
-com.palantir.conjure.java.runtime:conjure-java-annotations:7.45.0 (1 constraints: c6188d9e)
-com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.45.0 (2 constraints: ca210f7b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.45.0 (6 constraints: 3f6ee88e)
-com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.45.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.45.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.45.0 (1 constraints: c6188d9e)
-com.palantir.conjure.java.runtime:keystores:7.45.0 (3 constraints: 202a4c60)
-com.palantir.conjure.java.runtime:refresh-utils:7.45.0 (2 constraints: 0a1e6f45)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.78.0 (2 constraints: 83295d02)
-com.palantir.dialogue:dialogue-blocking-channels:3.78.0 (2 constraints: e32369b4)
-com.palantir.dialogue:dialogue-clients:3.78.0 (1 constraints: 4405653b)
-com.palantir.dialogue:dialogue-core:3.78.0 (3 constraints: 883d62e3)
-com.palantir.dialogue:dialogue-futures:3.78.0 (3 constraints: dd33dac0)
-com.palantir.dialogue:dialogue-serde:3.78.0 (3 constraints: c62e7fa5)
-com.palantir.dialogue:dialogue-target:3.78.0 (7 constraints: a7763c6a)
+com.palantir.conjure.java:conjure-lib:7.14.0 (5 constraints: 8754055e)
+com.palantir.conjure.java:conjure-undertow-annotations:7.14.0 (1 constraints: 3e05593b)
+com.palantir.conjure.java:conjure-undertow-lib:7.14.0 (2 constraints: 7d1cc7ae)
+com.palantir.conjure.java.api:errors:2.35.0 (6 constraints: 4269c872)
+com.palantir.conjure.java.api:service-config:2.35.0 (5 constraints: 764da6cb)
+com.palantir.conjure.java.api:ssl-config:2.35.0 (4 constraints: 983b9c6e)
+com.palantir.conjure.java.runtime:client-config:7.57.0 (6 constraints: cc6b5039)
+com.palantir.conjure.java.runtime:conjure-java-annotations:7.57.0 (1 constraints: c918979e)
+com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.57.0 (2 constraints: cd21197b)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.57.0 (6 constraints: 486ed394)
+com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.57.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.57.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.57.0 (1 constraints: c918979e)
+com.palantir.conjure.java.runtime:keystores:7.57.0 (3 constraints: 262af060)
+com.palantir.conjure.java.runtime:refresh-utils:7.57.0 (2 constraints: 0d1e7945)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.86.0 (2 constraints: 7f29c301)
+com.palantir.dialogue:dialogue-blocking-channels:3.86.0 (2 constraints: e12337b4)
+com.palantir.dialogue:dialogue-clients:3.86.0 (1 constraints: 4305633b)
+com.palantir.dialogue:dialogue-core:3.86.0 (3 constraints: 833de8e1)
+com.palantir.dialogue:dialogue-futures:3.86.0 (3 constraints: da334bc0)
+com.palantir.dialogue:dialogue-serde:3.86.0 (3 constraints: c12e6ea4)
+com.palantir.dialogue:dialogue-target:3.86.0 (7 constraints: 9e760e64)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -97,28 +97,28 @@ com.palantir.docker.proxy:docker-proxy-rule-junit4:1.6.0 (1 constraints: 0905023
 com.palantir.goethe:goethe:0.11.0 (1 constraints: 3405263b)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
-com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
-com.palantir.safe-logging:logger:3.2.0 (24 constraints: 98a4d6fa)
-com.palantir.safe-logging:logger-slf4j:3.2.0 (1 constraints: 000e5942)
-com.palantir.safe-logging:logger-spi:3.2.0 (2 constraints: 0f1e997a)
-com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: f7178aeb)
-com.palantir.safe-logging:safe-logging:3.2.0 (28 constraints: 0cd34fc4)
+com.palantir.ri:resource-identifier:2.6.0 (3 constraints: aa2f1337)
+com.palantir.safe-logging:logger:3.5.0 (24 constraints: c4a4cd59)
+com.palantir.safe-logging:logger-slf4j:3.5.0 (1 constraints: 030e6242)
+com.palantir.safe-logging:logger-spi:3.5.0 (2 constraints: 151e387b)
+com.palantir.safe-logging:preconditions:3.5.0 (31 constraints: 30182f82)
+com.palantir.safe-logging:safe-logging:3.5.0 (28 constraints: 0ed394c2)
 com.palantir.safethreadlocalrandom:safe-thread-local-random:0.1.0 (3 constraints: 933225f9)
 com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
-com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 485c7290)
+com.palantir.tokens:auth-tokens:3.18.0 (5 constraints: 4d5c8992)
 com.palantir.tracing:tracing:6.17.0 (8 constraints: f97d045e)
 com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 1745b4f5)
 com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 46199abb)
-com.palantir.tritium:tritium-api:0.64.0 (6 constraints: 5052c7ce)
-com.palantir.tritium:tritium-caffeine:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-core:0.64.0 (5 constraints: 5d43281d)
-com.palantir.tritium:tritium-lib:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f96b65dd)
-com.palantir.tritium:tritium-proxy:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-registry:0.64.0 (13 constraints: 88ef0d92)
-com.palantir.tritium:tritium-slf4j:0.64.0 (2 constraints: bd138370)
-com.palantir.tritium:tritium-time:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-tracing:0.64.0 (1 constraints: 820e8359)
+com.palantir.tritium:tritium-api:0.68.0 (6 constraints: 64520bd6)
+com.palantir.tritium:tritium-caffeine:0.68.0 (1 constraints: 3c05433b)
+com.palantir.tritium:tritium-core:0.68.0 (5 constraints: 6d439821)
+com.palantir.tritium:tritium-lib:0.68.0 (1 constraints: 3c05433b)
+com.palantir.tritium:tritium-metrics:0.68.0 (7 constraints: 116c5de8)
+com.palantir.tritium:tritium-proxy:0.68.0 (1 constraints: 860e8f59)
+com.palantir.tritium:tritium-registry:0.68.0 (13 constraints: b4efdfbd)
+com.palantir.tritium:tritium-slf4j:0.68.0 (2 constraints: c1138f70)
+com.palantir.tritium:tritium-time:0.68.0 (1 constraints: 860e8f59)
+com.palantir.tritium:tritium-tracing:0.68.0 (1 constraints: 860e8f59)
 com.squareup:javapoet:1.13.0 (4 constraints: 102cc1ed)
 com.squareup:kotlinpoet:1.11.0 (1 constraints: 6a0c7f0d)
 com.thinkaurelius.thrift:thrift-server:0.3.7 (1 constraints: 980f6c88)
@@ -145,7 +145,7 @@ io.dropwizard:dropwizard-util:2.1.2 (12 constraints: 6eb0fdf0)
 io.dropwizard:dropwizard-validation:2.1.2 (8 constraints: 85778aa6)
 io.dropwizard.logback:logback-throttling-appender:1.1.9 (1 constraints: 830ed74f)
 io.dropwizard.metrics:metrics-annotation:4.2.12 (3 constraints: 6c2e5a89)
-io.dropwizard.metrics:metrics-core:4.2.12 (29 constraints: 2fcff7c9)
+io.dropwizard.metrics:metrics-core:4.2.19 (29 constraints: f5d02e7e)
 io.dropwizard.metrics:metrics-healthchecks:4.2.12 (5 constraints: 4b4964b0)
 io.dropwizard.metrics:metrics-jersey2:4.2.12 (1 constraints: 5c0e744e)
 io.dropwizard.metrics:metrics-jetty9:4.2.12 (3 constraints: 2729b8ff)
@@ -170,7 +170,7 @@ io.netty:netty-codec-socks:4.1.90.Final (2 constraints: 0b1ae71e)
 io.netty:netty-codec-stomp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-codec-xml:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-common:4.1.90.Final (17 constraints: 9f060892)
-io.netty:netty-handler:4.1.90.Final (4 constraints: 5b3c2eaa)
+io.netty:netty-handler:4.1.90.Final (5 constraints: b2435f26)
 io.netty:netty-handler-proxy:4.1.90.Final (2 constraints: 53120c2a)
 io.netty:netty-handler-ssl-ocsp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-resolver:4.1.90.Final (4 constraints: f133a9f6)
@@ -186,21 +186,21 @@ io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf
 io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
-io.undertow:undertow-core:2.2.25.Final (2 constraints: 331dfa06)
+io.undertow:undertow-core:2.2.24.Final (2 constraints: 321db506)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
 jakarta.activation:jakarta.activation-api:1.2.2 (3 constraints: 4e3741b6)
-jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 26793e31)
+jakarta.annotation:jakarta.annotation-api:1.3.5 (7 constraints: 396987f4)
 jakarta.inject:jakarta.inject-api:1.0.5 (13 constraints: decbc9f9)
 jakarta.servlet:jakarta.servlet-api:4.0.4 (10 constraints: 7b9def70)
 jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
 jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (17 constraints: 6f283f6d)
 jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
-joda-time:joda-time:2.12.5 (6 constraints: 845987f4)
+joda-time:joda-time:2.12.5 (6 constraints: b1596f2f)
 junit:junit:4.13.2 (8 constraints: 5a9c5baf)
-net.bytebuddy:byte-buddy:1.14.4 (3 constraints: 4025da91)
+net.bytebuddy:byte-buddy:1.14.4 (3 constraints: 41252092)
 net.bytebuddy:byte-buddy-agent:1.14.4 (1 constraints: 440b42de)
 net.java.dev.jna:jna:4.1.0 (2 constraints: 6e1bbbad)
 net.jpountz.lz4:lz4:1.3.0 (2 constraints: 971453a0)
@@ -212,20 +212,20 @@ one.util:streamex:0.8.1 (3 constraints: 272f96ae)
 org.antlr:ST4:4.0.8 (1 constraints: 96073c6c)
 org.antlr:antlr:3.5.2 (1 constraints: 980f7c88)
 org.antlr:antlr-runtime:3.5.2 (3 constraints: 781d0aae)
-org.apache.commons:commons-lang3:3.12.0 (8 constraints: 5873a6cf)
+org.apache.commons:commons-lang3:3.12.0 (8 constraints: b773beac)
 org.apache.commons:commons-math3:3.2 (2 constraints: 90196ff8)
 org.apache.commons:commons-pool2:2.11.1 (1 constraints: 3705333b)
-org.apache.commons:commons-text:1.9 (1 constraints: b5102f9b)
+org.apache.commons:commons-text:1.10.0 (2 constraints: e8155ec0)
 org.apache.httpcomponents.client5:httpclient5:5.2.1 (2 constraints: d518b1c3)
-org.apache.httpcomponents.core5:httpcore5:5.2.1 (3 constraints: 9f383c39)
+org.apache.httpcomponents.core5:httpcore5:5.2.2 (3 constraints: a038a439)
 org.apache.httpcomponents.core5:httpcore5-h2:5.2 (1 constraints: dd12c315)
 org.apache.thrift:libthrift:0.17.0 (4 constraints: 00372854)
-org.assertj:assertj-core:3.24.2 (4 constraints: a136076b)
+org.assertj:assertj-core:3.24.2 (4 constraints: a5360d6c)
 org.assertj:assertj-guava:3.24.2 (1 constraints: 3d05473b)
 org.awaitility:awaitility:4.2.0 (2 constraints: c71a893b)
 org.caffinitas.ohc:ohc-core:0.3.4 (1 constraints: 950f6988)
 org.checkerframework:checker-compat-qual:2.5.5 (2 constraints: 1f1d1717)
-org.checkerframework:checker-qual:3.33.0 (3 constraints: 6f2678e2)
+org.checkerframework:checker-qual:3.33.0 (3 constraints: 7026bde2)
 org.clojure:clojure:1.8.0 (1 constraints: 0b050836)
 org.codehaus.groovy:groovy:2.5.14 (23 constraints: b55185ba)
 org.codehaus.groovy:groovy-cli-picocli:2.5.14 (5 constraints: d54e9017)
@@ -284,7 +284,7 @@ org.jboss.xnio:xnio-api:3.8.7.Final (2 constraints: 771a3146)
 org.jboss.xnio:xnio-nio:3.8.7.Final (1 constraints: c80dcb30)
 org.jdbi:jdbi3-core:3.30.0 (2 constraints: 0e10d5bf)
 org.jdbi:jdbi3-sqlobject:3.30.0 (1 constraints: 38053d3b)
-org.jetbrains:annotations:23.0.0 (4 constraints: 0c35f637)
+org.jetbrains:annotations:24.0.1 (4 constraints: 10350c39)
 org.jetbrains.kotlin:kotlin-reflect:1.6.10 (1 constraints: 360b7dd6)
 org.jetbrains.kotlin:kotlin-stdlib:1.7.0 (7 constraints: 07713968)
 org.jetbrains.kotlin:kotlin-stdlib-common:1.7.0 (1 constraints: 110f8b6b)
@@ -293,7 +293,7 @@ org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.0 (3 constraints: c125b5a3)
 org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.5.0 (1 constraints: 4b0ea44e)
 org.jvnet:animal-sniffer-annotation:1.0 (1 constraints: f20b95eb)
 org.mindrot:jbcrypt:0.4 (2 constraints: 4714f171)
-org.mockito:mockito-core:5.3.1 (2 constraints: 5316c412)
+org.mockito:mockito-core:5.3.1 (2 constraints: 26166bfc)
 org.mpierce.metrics.reservoir:hdrhistogram-metrics-reservoir:1.1.3 (1 constraints: 0d10f991)
 org.objenesis:objenesis:3.3 (2 constraints: c71412ab)
 org.openjdk.jmh:jmh-core:1.36 (2 constraints: f51525d9)
@@ -314,7 +314,7 @@ org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
 org.wildfly.common:wildfly-common:1.6.0.Final (4 constraints: 3f390b3d)
 org.xerial:sqlite-jdbc:3.42.0.0 (1 constraints: 99054946)
 org.xerial.snappy:snappy-java:1.1.10.1 (2 constraints: 891546f4)
-org.yaml:snakeyaml:1.33 (5 constraints: 0a4c5570)
+org.yaml:snakeyaml:2.0 (5 constraints: d54b952a)
 
 [Test dependencies]
 cglib:cglib:3.2.8 (1 constraints: 1f0a62b5)
@@ -324,8 +324,8 @@ com.github.peterwippermann.junit4:parameterized-suite:1.1.0 (1 constraints: 0405
 com.github.stefanbirkner:system-rules:1.19.0 (1 constraints: 3d05443b)
 com.github.tomakehurst:wiremock-standalone:2.27.2 (1 constraints: 3f054a3b)
 com.google.code.findbugs:annotations:3.0.1 (1 constraints: 9e0aafc3)
-com.palantir.conjure.java.api:test-utils:2.34.0 (1 constraints: 3f054e3b)
-com.palantir.safe-logging:preconditions-assertj:3.2.0 (1 constraints: 07050036)
+com.palantir.conjure.java.api:test-utils:2.35.0 (1 constraints: 3f054e3b)
+com.palantir.safe-logging:preconditions-assertj:3.5.0 (1 constraints: 07050036)
 com.palantir.tracing:tracing-test-utils:6.17.0 (1 constraints: 3e05563b)
 com.spotify.dataenum:dataenum:1.4.1 (1 constraints: e9105ac1)
 com.thoughtworks.qdox:qdox:1.12.1 (1 constraints: 6d11f7d9)u      }(j= (a6c841d15d2050fb2f38444225b555f47cf7510bj:> versions.propsj<> modifiedj4> Kj5> Kj>> K
j?> `https://github.com/palantir/atlasdb/blob/3acee7efef8617f3e3c316aea88b8f40057a969b/versions.propsjA> _https://github.com/palantir/atlasdb/raw/3acee7efef8617f3e3c316aea88b8f40057a969b/versions.propsjC> rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=3acee7efef8617f3e3c316aea88b8f40057a969bjE> X2  @@ -1,7 +1,7 @@
 com.boundary:high-scale-lib = 1.0.6
 com.ea.agentloader:ea-agent-loader = 1.0.3
-com.fasterxml.jackson.*:* = 2.14.2
-com.fasterxml.jackson.core:jackson-databind = 2.14.2
+com.fasterxml.jackson.*:* = 2.15.2
+com.fasterxml.jackson.core:jackson-databind = 2.15.2
 com.github.ben-manes.caffeine:caffeine = 3.1.5
 com.github.peterwippermann.junit4:parameterized-suite = 1.1.0
 com.github.rholder:guava-retrying = 2.0.0
@@ -25,9 +25,9 @@ com.palantir.common:streams = 2.1.0
 com.palantir.config.crypto:* = 5.1.0
 com.palantir.conjure.java.api:* = 2.29.0
 com.palantir.conjure.java.runtime:* = 7.39.0
-com.palantir.conjure.java:* = 7.5.0
-com.palantir.conjure:conjure = 4.36.0
-com.palantir.dialogue:* = 3.78.0
+com.palantir.conjure.java:* = 7.14.0
+com.palantir.conjure:conjure = 4.38.0
+com.palantir.dialogue:* = 3.86.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
 com.palantir.goethe:* = 0.11.0
@@ -46,7 +46,7 @@ commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
 io.netty:* = 4.1.90.Final
-io.undertow:* = 2.2.25.Final
+io.undertow:* = 2.2.24.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2
@@ -57,6 +57,7 @@ net.jpountz.lz4:lz4 = 1.3.0
 one.util:streamex = 0.8.1
 org.apache.commons:commons-lang3 = 3.12.0
 org.apache.commons:commons-pool2 = 2.11.1
+org.apache.commons:commons-text = 1.10.0
 org.apache.httpcomponents.client5:httpclient5 = 5.2.1
 org.assertj:* = 3.24.2
 org.awaitility:awaitility = 4.2.0ueu(ba2c276a6a000c8742d2b0ec2a4686ee32ac054d}(sha(ba2c276a6a000c8742d2b0ec2a4686ee32ac054dnode_idEC_kwDOAjP5fdoAKGJhMmMyNzZhNmEwMDBjODc0MmQyYjBlYzJhNDY4NmVlMzJhYzA1NGQcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-08-01T00:42:07Zu	committer}(j=@ Tom Petraccaj?@ tpetracca@palantir.comjA@ 2023-08-01T00:42:07Zumessagebump commons-text to 1.10.0tree}(j5@ (830b65aac8b64aabd1274e3bcd2001cfe0be5deeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/830b65aac8b64aabd1274e3bcd2001cfe0be5deeujM@ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ba2c276a6a000c8742d2b0ec2a4686ee32ac054d
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEHTC5rqjQ6qmsb7sZRnUGJaXvqFMFAmTIVN8ACgkQRnUGJaXv
qFPThAf9HCi0DG47LKuFnNa/d8MuxhutdbRptNLzT4urKV6YAKbTM86EQFPhDa8O
+oiuzopgoT6Glp+dIlW+bGp6FGWtWCOOc616G3XjaJTVYQNLyRDc1ssND+LUJf3c
A62BS8JEVgLu3nzWJlXxttiiopz5lK0SbeC8PZbYROcpTZ0FPUPXvt5EHYaN0j+o
U6F040Llsgn3XXs9STHkmRaZ76q6V/OaPb7O617ix74cNpmNVepZR7HRfBMOilMr
cCMI9O4vhMxdRgNovDJ4nrYA6nDc/wNGNjHpYJo+l7+2s+Nlwc83EVdxKWZe7e9a
xRsAl71+9bM5e1miiTRzWyV7be3EOw==
=/wpq
-----END PGP SIGNATURE-----payloadtree 830b65aac8b64aabd1274e3bcd2001cfe0be5dee
parent e350ee1f07d1e420581afcb4151521b7b051acd1
author Tom Petracca <tpetracca@palantir.com> 1690850527 -0400
committer Tom Petracca <tpetracca@palantir.com> 1690850527 -0400

bump commons-text to 1.10.0
uujM@ ^https://api.github.com/repos/palantir/atlasdb/commits/ba2c276a6a000c8742d2b0ec2a4686ee32ac054dhtml_urlShttps://github.com/palantir/atlasdb/commit/ba2c276a6a000c8742d2b0ec2a4686ee32ac054dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ba2c276a6a000c8742d2b0ec2a4686ee32ac054d/commentsj;@ }(login	tpetraccaidJ& j7@ MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5jM@ &https://api.github.com/users/tpetraccaj[@ https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminujC@ }(j`@ 	tpetraccajb@ J& j7@ MDQ6VXNlcjI1NTQzMjg=jd@ 3https://avatars.githubusercontent.com/u/2554328?v=4jf@ h5jM@ &https://api.github.com/users/tpetraccaj[@ https://github.com/tpetraccaji@ 0https://api.github.com/users/tpetracca/followersjk@ =https://api.github.com/users/tpetracca/following{/other_user}jm@ 6https://api.github.com/users/tpetracca/gists{/gist_id}jo@ =https://api.github.com/users/tpetracca/starred{/owner}{/repo}jq@ 4https://api.github.com/users/tpetracca/subscriptionsjs@ +https://api.github.com/users/tpetracca/orgsju@ ,https://api.github.com/users/tpetracca/reposjw@ 7https://api.github.com/users/tpetracca/events{/privacy}jy@ 6https://api.github.com/users/tpetracca/received_eventsj{@ Userj}@ uparents]}(j5@ (e350ee1f07d1e420581afcb4151521b7b051acd1jM@ ^https://api.github.com/repos/palantir/atlasdb/commits/e350ee1f07d1e420581afcb4151521b7b051acd1j[@ Shttps://github.com/palantir/atlasdb/commit/e350ee1f07d1e420581afcb4151521b7b051acd1uastats}(totalK	additionsK	deletionsKufiles](}(j5@ (e03b7aa4cf31db621db8cd0e42a4534f1966dfdcfilename
versions.lockstatusmodifiedj@ Kj@ KchangesKblob_url_https://github.com/palantir/atlasdb/blob/ba2c276a6a000c8742d2b0ec2a4686ee32ac054d/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/ba2c276a6a000c8742d2b0ec2a4686ee32ac054d/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=ba2c276a6a000c8742d2b0ec2a4686ee32ac054dpatchXP  @@ -212,10 +212,10 @@ one.util:streamex:0.8.1 (3 constraints: 272f96ae)
 org.antlr:ST4:4.0.8 (1 constraints: 96073c6c)
 org.antlr:antlr:3.5.2 (1 constraints: 980f7c88)
 org.antlr:antlr-runtime:3.5.2 (3 constraints: 781d0aae)
-org.apache.commons:commons-lang3:3.12.0 (8 constraints: 5873a6cf)
+org.apache.commons:commons-lang3:3.12.0 (8 constraints: b773beac)
 org.apache.commons:commons-math3:3.2 (2 constraints: 90196ff8)
 org.apache.commons:commons-pool2:2.11.1 (1 constraints: 3705333b)
-org.apache.commons:commons-text:1.9 (1 constraints: b5102f9b)
+org.apache.commons:commons-text:1.10.0 (2 constraints: e8155ec0)
 org.apache.httpcomponents.client5:httpclient5:5.2.1 (2 constraints: d518b1c3)
 org.apache.httpcomponents.core5:httpcore5:5.2.2 (3 constraints: a038a439)
 org.apache.httpcomponents.core5:httpcore5-h2:5.2 (1 constraints: dd12c315)u}(j5@ (a6c841d15d2050fb2f38444225b555f47cf7510bj@ versions.propsj@ modifiedj@ Kj@ K j@ Kj@ `https://github.com/palantir/atlasdb/blob/ba2c276a6a000c8742d2b0ec2a4686ee32ac054d/versions.propsj@ _https://github.com/palantir/atlasdb/raw/ba2c276a6a000c8742d2b0ec2a4686ee32ac054d/versions.propsj@ rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=ba2c276a6a000c8742d2b0ec2a4686ee32ac054dj@ X:  @@ -57,6 +57,7 @@ net.jpountz.lz4:lz4 = 1.3.0
 one.util:streamex = 0.8.1
 org.apache.commons:commons-lang3 = 3.12.0
 org.apache.commons:commons-pool2 = 2.11.1
+org.apache.commons:commons-text = 1.10.0
 org.apache.httpcomponents.client5:httpclient5 = 5.2.1
 org.assertj:* = 3.24.2
 org.awaitility:awaitility = 4.2.0ueu(1639a589a121cbf2ccf20b142889554ffef8ae59}(sha(1639a589a121cbf2ccf20b142889554ffef8ae59node_idEC_kwDOAjP5fdoAKDE2MzlhNTg5YTEyMWNiZjJjY2YyMGIxNDI4ODk1NTRmZmVmOGFlNTkcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-03-21T20:07:42Zu	committer}(j@ Jeremy Kongj@ jkong@palantir.comj@ 2023-03-21T20:07:42Zumessage123tree}(j@ (a2e81dae5c3753ac0890bf9e760c7262e7e76594url`https://api.github.com/repos/palantir/atlasdb/git/trees/a2e81dae5c3753ac0890bf9e760c7262e7e76594uj@ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1639a589a121cbf2ccf20b142889554ffef8ae59
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQaDo4ACgkQTLdFKain
zjwZEggAphLvHcbu2bsDvRBePDXeDv0CmyDV23bNAaXgZAzoVG4YDKtbO9cS5acq
GDEz9R4UtjDfAArnd8T0VfevpK8DdAtssQra5Ru2yDEe8jfynSU0lR1/LBlVH4KA
nNE98BLZPJ6dYLlX/x3hS+CcZVB0iWip1NJh1aKh+T5ezCSLsAfHEx97Tw5BuMoU
+6wdTEDfxfSU+j9nBqyCVzUCRza/Rx97Q25/fX4iCn4TKSwbNnijZ+tfSrissx/t
vT/wt8P5RNRVdv4IMdj/WtSLgSQ7x/pW8wG1GJnnRyCPN3P0v1MsPdSHefZPUcK2
B6rWSXDH6s7sSzgNbCT7iwdFKUWSuA==
=ou25
-----END PGP SIGNATURE-----payloadtree a2e81dae5c3753ac0890bf9e760c7262e7e76594
parent a42131ee33a515014880678858e8d2769c4968d0
author Jeremy Kong <jkong@palantir.com> 1679429262 +0000
committer Jeremy Kong <jkong@palantir.com> 1679429262 +0000

123
uuj@ ^https://api.github.com/repos/palantir/atlasdb/commits/1639a589a121cbf2ccf20b142889554ffef8ae59html_urlShttps://github.com/palantir/atlasdb/commit/1639a589a121cbf2ccf20b142889554ffef8ae59comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1639a589a121cbf2ccf20b142889554ffef8ae59/commentsj@ }(login
jeremyk-91idJZ j@ MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j@ 'https://api.github.com/users/jeremyk-91j@ https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj@ }(j@ 
jeremyk-91j@ JZ j@ MDQ6VXNlcjU5NTU1MTA=j@ 3https://avatars.githubusercontent.com/u/5955510?v=4j@ h5j@ 'https://api.github.com/users/jeremyk-91j@ https://github.com/jeremyk-91j@ 1https://api.github.com/users/jeremyk-91/followersj@ >https://api.github.com/users/jeremyk-91/following{/other_user}j@ 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j@ >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j@ 5https://api.github.com/users/jeremyk-91/subscriptionsj@ ,https://api.github.com/users/jeremyk-91/orgsj@ -https://api.github.com/users/jeremyk-91/reposj@ 8https://api.github.com/users/jeremyk-91/events{/privacy}j@ 7https://api.github.com/users/jeremyk-91/received_eventsj@ Userj@ uparents]}(j@ (a42131ee33a515014880678858e8d2769c4968d0j@ ^https://api.github.com/repos/palantir/atlasdb/commits/a42131ee33a515014880678858e8d2769c4968d0j@ Shttps://github.com/palantir/atlasdb/commit/a42131ee33a515014880678858e8d2769c4968d0uastats}(totalK	additionsK	deletionsKufiles](}(j@ (5d0fef5ba0f468dff9389dea40c5fbfa1843e1cefilenamedatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javastatusmodifiedjA K
jA K changesK
blob_urlhttps://github.com/palantir/atlasdb/blob/1639a589a121cbf2ccf20b142889554ffef8ae59/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1639a589a121cbf2ccf20b142889554ffef8ae59/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=1639a589a121cbf2ccf20b142889554ffef8ae59patchX0	  @@ -352,24 +352,32 @@ private synchronized void refreshPool() {
 
     @VisibleForTesting
     void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> desiredServers) {
+        log.info("<4.2b.1>");
         Set<CassandraServer> currentServers = getCachedServers();
+        log.info("<4.2b.2>");
         Map<CassandraServer, CassandraServerOrigin> serversToAdd = EntryStream.of(desiredServers)
                 .removeKeys(currentServers::contains)
                 .toImmutableMap();
         SetView<CassandraServer> absentServers = Sets.difference(currentServers, desiredServers.keySet());
+        log.info("<4.2b.3>");
 
         absentServers.forEach(cassandraServer -> {
             CassandraClientPoolingContainer container = cassandra.removePool(cassandraServer);
             absentHostTracker.trackAbsentCassandraServer(cassandraServer, container);
         });
+        log.info("<4.2b.4>");
 
         Set<CassandraServer> serversToShutdown = absentHostTracker.incrementAbsenceAndRemove();
 
+        log.info("<4.2b.5>");
         Set<CassandraServer> validatedServersToAdd =
                 validateNewHostsTopologiesAndMaybeAddToPool(getCurrentPools(), serversToAdd);
+        log.info("<4.2b.6>");
 
         if (!(validatedServersToAdd.isEmpty() && absentServers.isEmpty())) { // if we made any changes
+            log.info("<4.2b.7>");
             cassandra.refreshTokenRangesAndGetServers();
+            log.info("<4.2b.8>");
         }
 
         Preconditions.checkState(
@@ -449,6 +457,7 @@ private static void logRefreshedHosts(
             Set<CassandraServer> serversToAdd,
             Set<CassandraServer> serversToShutdown,
             Set<CassandraServer> absentServers) {
+        log.info("<4.2b.9>");
         if (serversToShutdown.isEmpty() && serversToAdd.isEmpty() && absentServers.isEmpty()) {
             log.debug("No hosts added or removed during Cassandra pool refresh");
         } else {
@@ -458,6 +467,7 @@ private static void logRefreshedHosts(
                     SafeArg.of("serversToShutdown", CassandraLogHelper.collectionOfHosts(serversToShutdown)),
                     SafeArg.of("absentServers", CassandraLogHelper.collectionOfHosts(absentServers)));
         }
+        log.info("<4.2b.10>");
     }
 
     private ImmutableSet<CassandraServer> getCachedServers() {u}(j@ (a035fa3f767245d8cde6f080a6688cc5c121d824jA batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javajA modifiedjA K
jA K j A K
j!A https://github.com/palantir/atlasdb/blob/1639a589a121cbf2ccf20b142889554ffef8ae59/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj#A https://github.com/palantir/atlasdb/raw/1639a589a121cbf2ccf20b142889554ffef8ae59/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj%A https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=1639a589a121cbf2ccf20b142889554ffef8ae59j'A X  @@ -129,6 +129,7 @@ public void close() {}
 
     public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAndGetServers() {
         // explicitly not using immutable builders to deduplicate nodes
+        log.info("<4.2.1>");
         Set<CassandraServer> servers = new HashSet<>();
         Map<CassandraServer, String> hostToDatacentersThisRefresh = new HashMap<>();
 
@@ -137,8 +138,11 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
                     ImmutableRangeMap.builder();
 
             // grab latest token ring view from a random node in the cluster and update local hosts
+            log.info("<4.2.2>");
             List<TokenRange> tokenRanges = getTokenRanges();
+            log.info("<4.2.3>");
             localHosts = refreshLocalHosts(tokenRanges);
+            log.info("<4.2.4>");
 
             // RangeMap needs a little help with weird 1-node, 1-vnode, this-entire-feature-is-useless case
             if (tokenRanges.size() == 1) {
@@ -149,6 +153,7 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
                 servers.add(onlyHost);
                 hostToDatacentersThisRefresh.put(onlyHost, onlyEndpoint.getDatacenter());
             } else { // normal case, large cluster with many vnodes
+                log.info("<4.2.5>");
                 for (TokenRange tokenRange : tokenRanges) {
                     Map<CassandraServer, String> hostToDatacentersOnThisTokenRange = KeyedStream.of(
                                     tokenRange.getEndpoint_details())
@@ -157,11 +162,13 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
                             .map(EndpointDetails::getDatacenter)
                             .collectToMap();
 
+                    log.info("<4.2.6>");
                     ImmutableSet<CassandraServer> hosts =
                             ImmutableSet.copyOf(hostToDatacentersOnThisTokenRange.keySet());
                     servers.addAll(hosts);
                     hostToDatacentersThisRefresh.putAll(hostToDatacentersOnThisTokenRange);
 
+                    log.info("<4.2.7>");
                     LightweightOppToken startToken = new LightweightOppToken(BaseEncoding.base16()
                             .decode(tokenRange.getStart_token().toUpperCase(Locale.ROOT)));
                     LightweightOppToken endToken = new LightweightOppToken(BaseEncoding.base16()
@@ -175,11 +182,13 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
                     }
                 }
             }
+            log.info("<4.2.8>");
             tokenMap = tokensInterner.intern(newTokenRing.build());
             hostToDatacenter = ImmutableMap.copyOf(hostToDatacentersThisRefresh);
             logHostToDatacenterMapping(hostToDatacenter);
             return CassandraServerOrigin.mapAllServersToOrigin(servers, CassandraServerOrigin.TOKEN_RANGE);
         } catch (Exception e) {
+            // This one does not arise so no need to worry about exception cases. Maybe we get stuck though
             log.info(
                     "Couldn't grab new token ranges for token aware cassandra mapping. We will retry in {} seconds.",
                     SafeArg.of("poolRefreshIntervalSeconds", config.poolRefreshIntervalSeconds()),
@@ -218,6 +227,7 @@ private ImmutableSet<InetSocketAddress> getServersSocketAddressesFromConfig() {
     }
 
     private void logHostToDatacenterMapping(Map<CassandraServer, String> hostToDatacentersThisRefresh) {
+        log.info("<4.2.9>");
         if (log.isDebugEnabled()) {
             Map<String, String> hostAddressToDatacenter = KeyedStream.stream(hostToDatacentersThisRefresh)
                     .mapKeys(CassandraServer::cassandraHostName)u}(j@ (4b70c192af4c0b38ed30fee618f3842593c2f126jA Ratlasdb-commons/src/main/java/com/palantir/async/initializer/AsyncInitializer.javajA modifiedjA KjA Kj A Kj!A https://github.com/palantir/atlasdb/blob/1639a589a121cbf2ccf20b142889554ffef8ae59/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.javaj#A https://github.com/palantir/atlasdb/raw/1639a589a121cbf2ccf20b142889554ffef8ae59/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.javaj%A https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.java?ref=1639a589a121cbf2ccf20b142889554ffef8ae59j'A X@  @@ -60,7 +60,8 @@ public final void initialize(boolean initializeAsync) {
 
     private void tryInitializationLoop() {
         if (state.isCancelled()) {
-            log.info("Shutting down executor associated with asynchronous initialisation, as it was cancelled",
+            log.info(
+                    "Shutting down executor associated with asynchronous initialisation, as it was cancelled",
                     SafeArg.of("className", getInitializingClassName()),
                     SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
                     SafeArg.of("durationbeforeCancellation", System.currentTimeMillis() - initializationStartTime));
@@ -69,7 +70,9 @@ private void tryInitializationLoop() {
         }
 
         try {
-            log.info("Attempting to initialize {} on the attempt {}. The amount of time elapsed since we began was {} ms.",
+            log.info(
+                    "Attempting to initialize {} on the attempt {}. The amount of time elapsed since we began was {}"
+                            + " ms.",
                     SafeArg.of("className", getInitializingClassName()),
                     SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
                     SafeArg.of("initializationDuration", System.currentTimeMillis() - initializationStartTime));ueu(473ca16aab2f69c9ff65d9ddd5dbbb06cccbdef2}(sha(473ca16aab2f69c9ff65d9ddd5dbbb06cccbdef2node_idEC_kwDOAjP5fdoAKDQ3M2NhMTZhYWIyZjY5YzlmZjY1ZDlkZGQ1ZGJiYjA2Y2NjYmRlZjIcommit}(author}(name
Samuel Krameremailskramer@palantir.comdate2023-04-03T15:59:56Zu	committer}(jCA 
Samuel KramerjEA skramer@palantir.comjGA 2023-04-03T15:59:56Zumessage:only log invariants when found and print map of violationstree}(j;A (dee76f84c19c0aff7619da37602e2393f8de6acburl`https://api.github.com/repos/palantir/atlasdb/git/trees/dee76f84c19c0aff7619da37602e2393f8de6acbujSA bhttps://api.github.com/repos/palantir/atlasdb/git/commits/473ca16aab2f69c9ff65d9ddd5dbbb06cccbdef2
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujSA ^https://api.github.com/repos/palantir/atlasdb/commits/473ca16aab2f69c9ff65d9ddd5dbbb06cccbdef2html_urlShttps://github.com/palantir/atlasdb/commit/473ca16aab2f69c9ff65d9ddd5dbbb06cccbdef2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/473ca16aab2f69c9ff65d9ddd5dbbb06cccbdef2/commentsjAA }(login
Sam-KrameridJ^2_ j=A MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jSA 'https://api.github.com/users/Sam-Kramerj_A https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujIA }(jdA 
Sam-KramerjfA J^2_ j=A MDQ6VXNlcjYyMzg4MTQ=jhA 3https://avatars.githubusercontent.com/u/6238814?v=4jjA h5jSA 'https://api.github.com/users/Sam-Kramerj_A https://github.com/Sam-KramerjmA 1https://api.github.com/users/Sam-Kramer/followersjoA >https://api.github.com/users/Sam-Kramer/following{/other_user}jqA 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jsA >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}juA 5https://api.github.com/users/Sam-Kramer/subscriptionsjwA ,https://api.github.com/users/Sam-Kramer/orgsjyA -https://api.github.com/users/Sam-Kramer/reposj{A 8https://api.github.com/users/Sam-Kramer/events{/privacy}j}A 7https://api.github.com/users/Sam-Kramer/received_eventsjA UserjA uparents]}(j;A (d9d70d52896bb28a26ffb3cf4e54084e3e014a37jSA ^https://api.github.com/repos/palantir/atlasdb/commits/d9d70d52896bb28a26ffb3cf4e54084e3e014a37j_A Shttps://github.com/palantir/atlasdb/commit/d9d70d52896bb28a26ffb3cf4e54084e3e014a37uastats}(totalK	additionsK	deletionsKufiles](}(j;A (4abe2734e0a87a6cc8c80e194a954285997f9d2cfilename1atlasdb-workload-server-distribution/build.gradlestatusmodifiedjA KjA K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/473ca16aab2f69c9ff65d9ddd5dbbb06cccbdef2/atlasdb-workload-server-distribution%2Fbuild.gradleraw_urlhttps://github.com/palantir/atlasdb/raw/473ca16aab2f69c9ff65d9ddd5dbbb06cccbdef2/atlasdb-workload-server-distribution%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=473ca16aab2f69c9ff65d9ddd5dbbb06cccbdef2patchX  @@ -5,6 +5,8 @@ apply from: "../gradle/shared.gradle"
 apply from: "../gradle/non-client-dist.gradle"
 
 dependencies {
+    implementation 'ch.qos.logback:logback-classic'
+    implementation 'ch.qos.logback:logback-core'
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'
     implementation 'com.fasterxml.jackson.core:jackson-databind'u}(j;A (457f6d79b122913be9fac3d78d156cbefead5935jA watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporter.javajA modifiedjA KjA KjA KjA https://github.com/palantir/atlasdb/blob/473ca16aab2f69c9ff65d9ddd5dbbb06cccbdef2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.javajA https://github.com/palantir/atlasdb/raw/473ca16aab2f69c9ff65d9ddd5dbbb06cccbdef2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.java?ref=473ca16aab2f69c9ff65d9ddd5dbbb06cccbdef2jA XW  @@ -51,7 +51,11 @@ public Consumer<Map<TableAndWorkloadCell, MismatchedValue>> consumer() {
                     .table(tableAndWorkloadCell.tableName())
                     .build()
                     .inc());
-            log.warn("Durable writes invariant violations found!", SafeArg.of("mismatchingValues", mismatchingValues));
+            if (!mismatchingValues.isEmpty()) {
+                log.warn(
+                        "Durable writes invariant violations found: {}",
+                        SafeArg.of("mismatchingValues", mismatchingValues));
+            }
         };
     }
 }ueu(7b778d856d3b579d2699735d2b772c782646f85b}(sha(7b778d856d3b579d2699735d2b772c782646f85bnode_idEC_kwDOAjP5fdoAKDdiNzc4ZDg1NmQzYjU3OWQyNjk5NzM1ZDJiNzcyYzc4MjY0NmY4NWIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-11T14:39:55Zu	committer}(jA Jeremy KongjA jkong@palantir.comjA 2023-04-11T14:39:55Zumessagestrict unused variabletree}(jA (fca23b5287a60944f57f91f8436e07a8e025be4aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/fca23b5287a60944f57f91f8436e07a8e025be4aujA bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7b778d856d3b579d2699735d2b772c782646f85b
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ1cTwACgkQTLdFKain
zjw5Tgf/dcrxfuL1eq8u2pQah77CNpr0W1ZHdeW/oowAZ2bi04Zb4u9yjOF2QaUJ
MTTM13zH0IpgAfxGrAdyTZ7fyVOyZdI2xm0VyMQTi9xHQW3EnOO/tHZfCS+AZ2tv
0rAhURFXhV6ONRMnMcVJjrTzMo3FYjE9xmq2jjNS6DYv0VFSPOqBkAyMgh2OxPZX
jf3oVQiSgzXhfudq9ulFS+5EIrEsthLeaS+ZMSgTnAv5Lk0Fjmus+vEwORHOa60i
IlZXJYUJIk6A/ojCY48HUcsUEsjt5e1DyO2mVlcXe7uUy8AoGismOP3hbvYhrRrT
EaEjgIjEgsji7agKK2+miZZTx5jrPw==
=O2Ly
-----END PGP SIGNATURE-----payloadtree fca23b5287a60944f57f91f8436e07a8e025be4a
parent d208b13b8180a01bf660acd0b53c5bc387576326
author Jeremy Kong <jkong@palantir.com> 1681223995 +0800
committer Jeremy Kong <jkong@palantir.com> 1681223995 +0800

strict unused variable
uujA ^https://api.github.com/repos/palantir/atlasdb/commits/7b778d856d3b579d2699735d2b772c782646f85bhtml_urlShttps://github.com/palantir/atlasdb/commit/7b778d856d3b579d2699735d2b772c782646f85bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7b778d856d3b579d2699735d2b772c782646f85b/commentsjA }(login
jeremyk-91idJZ jA MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jA 'https://api.github.com/users/jeremyk-91jA https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujA }(jA 
jeremyk-91jA JZ jA MDQ6VXNlcjU5NTU1MTA=jA 3https://avatars.githubusercontent.com/u/5955510?v=4jA h5jA 'https://api.github.com/users/jeremyk-91jA https://github.com/jeremyk-91jA 1https://api.github.com/users/jeremyk-91/followersjA >https://api.github.com/users/jeremyk-91/following{/other_user}jA 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jA >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jA 5https://api.github.com/users/jeremyk-91/subscriptionsjA ,https://api.github.com/users/jeremyk-91/orgsjA -https://api.github.com/users/jeremyk-91/reposjA 8https://api.github.com/users/jeremyk-91/events{/privacy}jA 7https://api.github.com/users/jeremyk-91/received_eventsjA Userj B uparents]}(jA (d208b13b8180a01bf660acd0b53c5bc387576326jA ^https://api.github.com/repos/palantir/atlasdb/commits/d208b13b8180a01bf660acd0b53c5bc387576326jA Shttps://github.com/palantir/atlasdb/commit/d208b13b8180a01bf660acd0b53c5bc387576326uastats}(totalK	additionsK 	deletionsKufiles]}(jA (3b0856b663546652efc3f7487ff8622b39db58fdfilenameStimelock-impl/src/test/java/com/palantir/atlasdb/timelock/TimeLockServicesTest.javastatusmodifiedjB K jB KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7b778d856d3b579d2699735d2b772c782646f85b/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServicesTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7b778d856d3b579d2699735d2b772c782646f85b/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServicesTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServicesTest.java?ref=7b778d856d3b579d2699735d2b772c782646f85bpatchX  @@ -32,7 +32,6 @@ public class TimeLockServicesTest {
     public void doNotCloseRepeatedInterfaceMultipleTimes() throws IOException {
         LockService lockService = mock(LockService.class);
         AsyncTimelockService asyncTimelockService = mock(AsyncTimelockService.class);
-        JerseyAsyncTimelockResource asyncTimelockResource = mock(JerseyAsyncTimelockResource.class);
 
         getTimeLockServices(lockService, asyncTimelockService)
                 .close();uau(dfe82c463cb5459dd20b865c9ed7c245cc71bcc8}(sha(dfe82c463cb5459dd20b865c9ed7c245cc71bcc8node_idEC_kwDOAjP5fdoAKGRmZTgyYzQ2M2NiNTQ1OWRkMjBiODY1YzllZDdjMjQ1Y2M3MWJjYzgcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-03-30T22:28:03Zu	committer}(j7B Patrick Koenigj9B pkoenig10@gmail.comj;B 2023-03-30T22:51:14Zumessage%Don't add executor metrics by defaulttree}(j/B (5b44cb68bb93c011fcad26a1ae667e37ca6cc3b3url`https://api.github.com/repos/palantir/atlasdb/git/trees/5b44cb68bb93c011fcad26a1ae667e37ca6cc3b3ujGB bhttps://api.github.com/repos/palantir/atlasdb/git/commits/dfe82c463cb5459dd20b865c9ed7c245cc71bcc8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAAhcAAAAHc3NoLXJzYQAAAAMBAAEAAAIBAOLBVI00yZaP7395xCyqzy
aD/kgGj5GS8qP2f4Q0hM5gFbEYaTLwKvZTgcFMKJEw/3tOlCyuFoQChwrZ+YjoX3ZcTdIs
QnoGeYlwKUGY4x3QXLvrURZtGaXWggfEc+UKHT3mnGXM9FpX9CSdpTopg7KhxDlx3/Jv90
zimWImFPxKFUSZrhVGqD8qAQibPTFDs+JhK0cqllhsvm0PR9PilTde++NKLCQUNrRJi2+f
BjLBjJMJshRwXkkM6J8hDvyjiLJz4Bg9hq+5QLnO1fYaetU7aP4bsCs6ix5pyD4WO6cr6T
SMCtJThNdHvOVuOaCCHBOQrdVGjbMH9lmW5FL5oMsTZ86p24rZOFD9ly44mMJWYGk6F81y
japNgWorhR0tSZMSZPVlisGQQsRnsqQidrVPe3IR4MTUsKx39CAutxgk6N+BseeByXKw+H
aBKmd75u/FU7IoxEbXX7EuDq2TCtUmujYXiY7SY4T0DQDjNpHq+vrEUsKyi5mbRTdNahvt
eFWJU5UIwO7Ao+HdsqfUjGN6zw2HSkiHEG3iOj5OY+byI/ykoYGMQ40w6w7shCt7XDbUXa
/kGqIyicthBGQ7Y4/TtquH5Ag2UPSlN9C0Rt/ZBolkTfoLz4wCtTMzd7hdixs5yuocVTn7
njhSYSXRyRbbVcF/q56x1NAAsVOe9epxAAAAA2dpdAAAAAAAAAAGc2hhNTEyAAACFAAAAA
xyc2Etc2hhMi01MTIAAAIAMZQCN4O/OBa+2gUUuV7cjaiwzkKE0sMlaGhXyVWs7jtAWqh8
0/Cz9wjJFbb77aNHipzCsfFFpIrtjPp0WWjkHprENBWBYLtEUhQab/FxAj4OsHAdrMJWO6
py6Kxjy57YEV5umM5Ab1igCOI4Dvun8tlZ10UvqeGgMN+nVP6DzVIdvDzL02R9zyhtOYVY
KqYxc/msQ3gikocCkiaFDrhMDX3lnjcyra07wQYY4oOxyjPcmCwUzDzZrI4pLFnTbollPd
oW7Lt7YnbD6NY2soNny98+StkH8Pc/vMqd1Z90uUdmxyJ8EGiIhNSZVbgO8QT8/EHpk5/L
25n/0wJiy/QKtmCaVwkEXo1sZ0Vp35CESdbP4PjI6nkfEf4008WPrblpfDG3MiuBsQWsqJ
+X/L5Guss8sVffVbnlIK5iQP/lgR3oB0dTbx/Q/1IA9Jr3jPG3dy7vO3h5MePzH8eLfJOd
oG/22nfABHeaJqP93FHbw6teWFO/uNG9825mIG4Ki2oOrxRKK1vm0RlqVO/I7tm7I6LjGF
gLaaZyvSIpDCUoh3FOnMWoH65y9Q8FZIrSwzlAg9D0Ve/SVDnt9VrBSt+3jY/XB9vmWips
CGgohrsLchsP/3gE0G0lgXALYISh6eC8uBCKL/d1zx9lApwWzdEulWt/LoArADW8AMeFRm
8DHuk=
-----END SSH SIGNATURE-----payloadX  tree 5b44cb68bb93c011fcad26a1ae667e37ca6cc3b3
parent 44a6930443bb70b40ca00f76d282a73d2681dc7a
author Patrick Koenig <pkoenig10@gmail.com> 1680215283 -0700
committer Patrick Koenig <pkoenig10@gmail.com> 1680216674 -0700

Don't add executor metrics by default
uujGB ^https://api.github.com/repos/palantir/atlasdb/commits/dfe82c463cb5459dd20b865c9ed7c245cc71bcc8html_urlShttps://github.com/palantir/atlasdb/commit/dfe82c463cb5459dd20b865c9ed7c245cc71bcc8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/dfe82c463cb5459dd20b865c9ed7c245cc71bcc8/commentsj5B }(login	pkoenig10idJLvP j1B MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5jGB &https://api.github.com/users/pkoenig10jUB https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminuj=B }(jZB 	pkoenig10j\B JLvP j1B MDQ6VXNlcjUyNzMxNjQ=j^B 3https://avatars.githubusercontent.com/u/5273164?v=4j`B h5jGB &https://api.github.com/users/pkoenig10jUB https://github.com/pkoenig10jcB 0https://api.github.com/users/pkoenig10/followersjeB =https://api.github.com/users/pkoenig10/following{/other_user}jgB 6https://api.github.com/users/pkoenig10/gists{/gist_id}jiB =https://api.github.com/users/pkoenig10/starred{/owner}{/repo}jkB 4https://api.github.com/users/pkoenig10/subscriptionsjmB +https://api.github.com/users/pkoenig10/orgsjoB ,https://api.github.com/users/pkoenig10/reposjqB 7https://api.github.com/users/pkoenig10/events{/privacy}jsB 6https://api.github.com/users/pkoenig10/received_eventsjuB UserjwB uparents]}(j/B (44a6930443bb70b40ca00f76d282a73d2681dc7ajGB ^https://api.github.com/repos/palantir/atlasdb/commits/44a6930443bb70b40ca00f76d282a73d2681dc7ajUB Shttps://github.com/palantir/atlasdb/commit/44a6930443bb70b40ca00f76d282a73d2681dc7auastats}(totalKj	additionsK"	deletionsKHufiles](}(j/B (7a18b9e67bf7a0bbaf7ec3265b80aa581d1f2531filenameiatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javastatusmodifiedjB KjB KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/dfe82c463cb5459dd20b865c9ed7c245cc71bcc8/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/dfe82c463cb5459dd20b865c9ed7c245cc71bcc8/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=dfe82c463cb5459dd20b865c9ed7c245cc71bcc8patchX<  @@ -108,8 +108,6 @@
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
-import com.palantir.tracing.Tracers;
-import com.palantir.tritium.metrics.MetricRegistries;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import com.palantir.util.Pair;
 import com.palantir.util.paging.AbstractPagingIterable;
@@ -485,10 +483,7 @@ private static Supplier<ExecutorService> instrumentedFixedThreadPoolSupplier(
             int numberOfThriftHosts = serversConfig.numberOfThriftHosts();
             int corePoolSize = poolSize * numberOfThriftHosts;
             int maxPoolSize = maxConnectionBurstSize * numberOfThriftHosts;
-            return Tracers.wrap(MetricRegistries.instrument(
-                    registry,
-                    createThreadPoolWihtoutSpans("Atlas Cassandra KVS", corePoolSize, maxPoolSize),
-                    "Atlas Cassandra KVS"));
+            return createThreadPoolWithoutSpans(registry, "Atlas Cassandra KVS", corePoolSize, maxPoolSize);
         };
     }
 u}(j/B (ea49e7c8474a296c118bb455af815344ab2b4a5fjB \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/AbstractKeyValueService.javajB modifiedjB KjB K
jB K jB https://github.com/palantir/atlasdb/blob/dfe82c463cb5459dd20b865c9ed7c245cc71bcc8/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javajB https://github.com/palantir/atlasdb/raw/dfe82c463cb5459dd20b865c9ed7c245cc71bcc8/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javajB https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.java?ref=dfe82c463cb5459dd20b865c9ed7c245cc71bcc8jB X  @@ -39,6 +39,8 @@
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.common.base.ClosableIterator;
 import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.tritium.metrics.MetricRegistries;
+import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
 import java.util.ArrayList;
 import java.util.Collection;
@@ -70,38 +72,48 @@ public AbstractKeyValueService(ExecutorService executor) {
     /**
      * Creates a fixed thread pool.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param corePoolSize size of the core pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createFixedThreadPool(String threadNamePrefix, int corePoolSize) {
-        return createThreadPool(threadNamePrefix, corePoolSize, corePoolSize);
+    protected static ExecutorService createFixedThreadPool(
+            TaggedMetricRegistry registry, String name, int corePoolSize) {
+        return createThreadPool(registry, name, corePoolSize, corePoolSize);
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPool(String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPool(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPool(
+            TaggedMetricRegistry registry, String name, int _corePoolSize, int maxPoolSize) {
+        return MetricRegistries.executor()
+                .registry(registry)
+                .name(name)
+                .executor(PTExecutors.newFixedThreadPool(maxPoolSize, name))
+                .build();
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      * It does not create a span.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPoolWihtoutSpans(
-            String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPoolWithoutSpans(
+            TaggedMetricRegistry registry, String name, int _corePoolSize, int maxPoolSize) {
+        return MetricRegistries.executor()
+                .registry(registry)
+                .name(name)
+                .executor(PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, name))
+                .build();
     }
 
     @Overrideu}(j/B (f428815f3f7113b225c48e33696f1bff91678f89jB Vcommons-executors/src/main/java/com/palantir/common/concurrent/NamedThreadFactory.javajB modifiedjB KjB KjB KjB https://github.com/palantir/atlasdb/blob/dfe82c463cb5459dd20b865c9ed7c245cc71bcc8/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FNamedThreadFactory.javajB https://github.com/palantir/atlasdb/raw/dfe82c463cb5459dd20b865c9ed7c245cc71bcc8/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FNamedThreadFactory.javajB https://api.github.com/repos/palantir/atlasdb/contents/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FNamedThreadFactory.java?ref=dfe82c463cb5459dd20b865c9ed7c245cc71bcc8jB X  @@ -15,8 +15,6 @@
  */
 package com.palantir.common.concurrent;
 
-import com.palantir.tritium.metrics.MetricRegistries;
-import com.palantir.tritium.metrics.registry.SharedTaggedMetricRegistries;
 import java.util.concurrent.Executors;
 import java.util.concurrent.ThreadFactory;
 import java.util.concurrent.atomic.AtomicLong;
@@ -52,12 +50,10 @@ public NamedThreadFactory(String prefix) {
      * @param prefix The prefix for each constructed thread.
      * @param isDaemon {@code true} iff the constructed threads should be daemon threads.
      */
-    @SuppressWarnings("deprecation") // No reasonable way to pass a TaggedMetricRegistry
     public NamedThreadFactory(String prefix, boolean isDaemon) {
         this.prefix = prefix;
         this.isDaemon = isDaemon;
-        this.threadFactory = MetricRegistries.instrument(
-                SharedTaggedMetricRegistries.getSingleton(), Executors.defaultThreadFactory(), prefix);
+        this.threadFactory = Executors.defaultThreadFactory();
     }
 
     /** {@inheritDoc} */u}(j/B (37ade6c5706e0f74a88549e5074309482d52c373jB Ocommons-executors/src/main/java/com/palantir/common/concurrent/PTExecutors.javajB modifiedjB K
jB K3jB K=jB https://github.com/palantir/atlasdb/blob/dfe82c463cb5459dd20b865c9ed7c245cc71bcc8/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutors.javajB https://github.com/palantir/atlasdb/raw/dfe82c463cb5459dd20b865c9ed7c245cc71bcc8/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutors.javajB https://api.github.com/repos/palantir/atlasdb/contents/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutors.java?ref=dfe82c463cb5459dd20b865c9ed7c245cc71bcc8jB X?  @@ -28,8 +28,6 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.nylon.threads.NylonExecutor;
 import com.palantir.tracing.Tracers;
-import com.palantir.tritium.metrics.MetricRegistries;
-import com.palantir.tritium.metrics.registry.SharedTaggedMetricRegistries;
 import java.lang.ref.WeakReference;
 import java.util.ArrayList;
 import java.util.Collection;
@@ -148,14 +146,12 @@ public static ExecutorService newCachedThreadPool(ThreadFactory threadFactory) {
      */
     @Deprecated
     public static ExecutorService newCachedThreadPool(ThreadFactory threadFactory, int threadTimeoutMillis) {
-        return tryInstrumentCachedExecutor(
-                newThreadPoolExecutor(
-                        0,
-                        Integer.MAX_VALUE,
-                        threadTimeoutMillis,
-                        TimeUnit.MILLISECONDS,
-                        new SynchronousQueue<Runnable>(),
-                        threadFactory),
+        return newThreadPoolExecutor(
+                0,
+                Integer.MAX_VALUE,
+                threadTimeoutMillis,
+                TimeUnit.MILLISECONDS,
+                new SynchronousQueue<>(),
                 threadFactory);
     }
 
@@ -190,13 +186,7 @@ public static ExecutorService newCachedThreadPoolWithoutSpan(String name) {
     public static ExecutorService newCachedThreadPoolWithMaxThreads(int maxThreads, String name) {
         verifyName(name);
         Preconditions.checkArgument(maxThreads > 0, "Max threads must be positive");
-        return MetricRegistries.executor()
-                .registry(SharedTaggedMetricRegistries.getSingleton())
-                .name(name)
-                .executor(PTExecutors.wrap(name, getViewExecutor(name, maxThreads, 0, SHARED_EXECUTOR.get())))
-                // Unhelpful for cached executors
-                .reportQueuedDuration(false)
-                .build();
+        return PTExecutors.wrap(name, getViewExecutor(name, maxThreads, 0, SHARED_EXECUTOR.get()));
     }
 
     /** Specialized cached executor which throws
@@ -209,31 +199,7 @@ public static ExecutorService newCachedThreadPoolWithMaxThreads(int maxThreads,
     public static ExecutorService newCachedThreadPoolWithMaxThreadsWithoutSpan(int maxThreads, String name) {
         verifyName(name);
         Preconditions.checkArgument(maxThreads > 0, "Max threads must be positive");
-        return MetricRegistries.executor()
-                .registry(SharedTaggedMetricRegistries.getSingleton())
-                .name(name)
-                .executor(PTExecutors.wrapWithoutSpan(getViewExecutor(name, maxThreads, 0, SHARED_EXECUTOR.get())))
-                // Unhelpful for cached executors
-                .reportQueuedDuration(false)
-                .build();
-    }
-
-    /**
-     * Instruments the provided {@link ExecutorService} if the {@link ThreadFactory} is a {@link NamedThreadFactory}.
-     */
-    @SuppressWarnings("deprecation") // No reasonable way to pass a TaggedMetricRegistry
-    private static ExecutorService tryInstrumentCachedExecutor(ExecutorService executorService, ThreadFactory factory) {
-        if (factory instanceof NamedThreadFactory) {
-            String name = ((NamedThreadFactory) factory).getPrefix();
-            return MetricRegistries.executor()
-                    .registry(SharedTaggedMetricRegistries.getSingleton())
-                    .name(name)
-                    .executor(executorService)
-                    // Unhelpful for cached executors
-                    .reportQueuedDuration(false)
-                    .build();
-        }
-        return executorService;
+        return PTExecutors.wrapWithoutSpan(getViewExecutor(name, maxThreads, 0, SHARED_EXECUTOR.get()));
     }
 
     /**
@@ -295,10 +261,7 @@ public static ThreadPoolExecutor newFixedThreadPool(int numThreads, ThreadFactor
      * @throws IllegalArgumentException if <tt>numThreads &lt;= 0</tt>
      */
     public static ExecutorService newFixedThreadPool(int numThreads, String name) {
-        return MetricRegistries.instrument(
-                SharedTaggedMetricRegistries.getSingleton(),
-                PTExecutors.wrap(name, getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())),
-                name);
+        return PTExecutors.wrap(name, getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get()));
     }
 
     /**
@@ -316,11 +279,7 @@ public static ExecutorService newFixedThreadPool(int numThreads, String name) {
      * @throws IllegalArgumentException if <tt>numThreads &lt;= 0</tt>
      */
     public static ExecutorService newFixedThreadPoolWithoutSpan(int numThreads, String name) {
-        return MetricRegistries.instrument(
-                SharedTaggedMetricRegistries.getSingleton(),
-                PTExecutors.wrapWithoutSpan(
-                        getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())),
-                name);
+        return PTExecutors.wrapWithoutSpan(getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get()));
     }
 
     public static ExecutorService getViewExecutor(ueu(6b290a4fe35aa269f73545bb21d88e818deea65d}(sha(6b290a4fe35aa269f73545bb21d88e818deea65dnode_idEC_kwDOAjP5fdoAKDZiMjkwYTRmZTM1YWEyNjlmNzM1NDViYjIxZDg4ZTgxOGRlZWE2NWQcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-30T13:14:47Zu	committer}(jB 	Tom PapkejB tpapke@palantir.comjB 2023-06-30T13:14:47ZumessageAdjust commentstree}(jB (536b26a94dd75ae151dd705bfb61cc2ec4879b4durl`https://api.github.com/repos/palantir/atlasdb/git/trees/536b26a94dd75ae151dd705bfb61cc2ec4879b4dujB bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6b290a4fe35aa269f73545bb21d88e818deea65d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSe1UcACgkQmF9s0kaF
Iw1PgQf/X0DXp0hzXhqTiR8ydiaGmmN51h13zlXTorC0Q3dT5n50ZI8MO3p7h3mH
j7B2nypkXbDlW7EIDL+/obKSzP3VQVXzi67ccOJE10QL0EXeOegE5KWf7kqwq1wh
Klx55qCkEAQZBwEWJs1qBUq5cs6+1U/G0V08O4hNyJSLWhAWdm8m8RN8RdaGB1UQ
Hf+1GgARFPefxHH5fyabmsBgBHW3+Goc+NM/kXLnkLG2JHoxXDxCI7uCuONeA07n
l2oAK/RYDIvfH5PH6w7knYEYv1xvblTohcagxNBHvUS8NC8QSLyf9rM6G7nYCEgR
PWb9FcVBGXkcoycfhN8BrAd3Of+MKA==
=oe9u
-----END PGP SIGNATURE-----payloadtree 536b26a94dd75ae151dd705bfb61cc2ec4879b4d
parent dc9d9f5aeb40a3e9efd46f427f8e8ed9ee2cae99
author Tom Papke <tpapke@palantir.com> 1688130887 +0100
committer Tom Papke <tpapke@palantir.com> 1688130887 +0100

Adjust comments
uujB ^https://api.github.com/repos/palantir/atlasdb/commits/6b290a4fe35aa269f73545bb21d88e818deea65dhtml_urlShttps://github.com/palantir/atlasdb/commit/6b290a4fe35aa269f73545bb21d88e818deea65dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6b290a4fe35aa269f73545bb21d88e818deea65d/commentsjB }(login	ToemmscheidJbojB MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jB &https://api.github.com/users/ToemmschejB https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujB }(jB 	ToemmschejB JbojB MDQ6VXNlcjQzNjc1NDkwjB 4https://avatars.githubusercontent.com/u/43675490?v=4jB h5jB &https://api.github.com/users/ToemmschejB https://github.com/ToemmschejB 0https://api.github.com/users/Toemmsche/followersjB =https://api.github.com/users/Toemmsche/following{/other_user}jB 6https://api.github.com/users/Toemmsche/gists{/gist_id}jB =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jB 4https://api.github.com/users/Toemmsche/subscriptionsjB +https://api.github.com/users/Toemmsche/orgsjB ,https://api.github.com/users/Toemmsche/reposj C 7https://api.github.com/users/Toemmsche/events{/privacy}jC 6https://api.github.com/users/Toemmsche/received_eventsjC UserjC uparents]}(jB (dc9d9f5aeb40a3e9efd46f427f8e8ed9ee2cae99jB ^https://api.github.com/repos/palantir/atlasdb/commits/dc9d9f5aeb40a3e9efd46f427f8e8ed9ee2cae99jB Shttps://github.com/palantir/atlasdb/commit/dc9d9f5aeb40a3e9efd46f427f8e8ed9ee2cae99uastats}(totalK	additionsK 	deletionsKufiles]}(jB (46cc4b9fe4d9bf70423d03668685b38ba27e3340filenameatimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javastatusmodifiedj C K j!C KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/6b290a4fe35aa269f73545bb21d88e818deea65d/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6b290a4fe35aa269f73545bb21d88e818deea65d/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=6b290a4fe35aa269f73545bb21d88e818deea65dpatchXb  @@ -169,7 +169,6 @@ private void runIfDescriptorsMatchLockWatchesWithMetadata(
             RangeSet<LockDescriptor> ranges = watches.get().ranges();
             Set<LockDescriptor> filteredLocks =
                     unfilteredLocks.stream().filter(ranges::contains).collect(Collectors.toSet());
-            // We would expect metadata to be absent in ~1/2 of the cases, so this ternary will save us some overhead
             Optional<LockRequestMetadata> filteredMetadata = unfilteredMetadata
                     .map(LockRequestMetadata::lockDescriptorToChangeMetadata)
                     .map(unfilteredLockMetadata -> {
@@ -180,7 +179,6 @@ private void runIfDescriptorsMatchLockWatchesWithMetadata(
                         return LockRequestMetadata.of(filteredLockMetadata);
                     });
             // Even if our metadata is non-empty after filtering, but our locks are, we do not proceed.
-            // This is done to maintain the existing lock watch semantics
             if (!filteredLocks.isEmpty()) {
                 biConsumer.accept(filteredLocks, filteredMetadata);
             }uau(fc8a47809887935b7acec13ea51e2514e3d7e27b}(sha(fc8a47809887935b7acec13ea51e2514e3d7e27bnode_idEC_kwDOAjP5fdoAKGZjOGE0NzgwOTg4NzkzNWI3YWNlYzEzZWE1MWUyNTE0ZTNkN2UyN2Icommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-06-26T17:09:00Zu	committer}(j=C 
svc-changelogj?C svc-changelog@palantir.comjAC 2023-06-26T17:09:00ZumessageAdd generated changelog entriestree}(j5C (ea2c04acf626b7c898cc260bae63920cab95db5furl`https://api.github.com/repos/palantir/atlasdb/git/trees/ea2c04acf626b7c898cc260bae63920cab95db5fujMC bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fc8a47809887935b7acec13ea51e2514e3d7e27b
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSZxiwJEHYaJX37fAFQAACuOgEAoqBSQ3xuxDX/uZWBuSdqFa1i
wCtBRho/gfT+ny5MHzYBAOw3vyFEBimNOqNCCGYjtDrD3zuX4ziO5qo/DJfwzQTX
=pgsr
-----END PGP SIGNATURE-----payloadX  tree ea2c04acf626b7c898cc260bae63920cab95db5f
parent 70b82e859d6edee9d22fe55a51beef27149755cb
author svc-changelog <svc-changelog@palantir.com> 1687799340 +0000
committer svc-changelog <svc-changelog@palantir.com> 1687799340 +0000

Add generated changelog entriesuujMC ^https://api.github.com/repos/palantir/atlasdb/commits/fc8a47809887935b7acec13ea51e2514e3d7e27bhtml_urlShttps://github.com/palantir/atlasdb/commit/fc8a47809887935b7acec13ea51e2514e3d7e27bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fc8a47809887935b7acec13ea51e2514e3d7e27b/commentsj;C }(login
svc-changelogidJ#j7C MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jMC *https://api.github.com/users/svc-changelogj[C  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujCC }(j`C 
svc-changelogjbC J#j7C MDQ6VXNlcjg0MDc3NjAzjdC 4https://avatars.githubusercontent.com/u/84077603?v=4jfC h5jMC *https://api.github.com/users/svc-changelogj[C  https://github.com/svc-changelogjiC 4https://api.github.com/users/svc-changelog/followersjkC Ahttps://api.github.com/users/svc-changelog/following{/other_user}jmC :https://api.github.com/users/svc-changelog/gists{/gist_id}joC Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jqC 8https://api.github.com/users/svc-changelog/subscriptionsjsC /https://api.github.com/users/svc-changelog/orgsjuC 0https://api.github.com/users/svc-changelog/reposjwC ;https://api.github.com/users/svc-changelog/events{/privacy}jyC :https://api.github.com/users/svc-changelog/received_eventsj{C Userj}C uparents]}(j5C (70b82e859d6edee9d22fe55a51beef27149755cbjMC ^https://api.github.com/repos/palantir/atlasdb/commits/70b82e859d6edee9d22fe55a51beef27149755cbj[C Shttps://github.com/palantir/atlasdb/commit/70b82e859d6edee9d22fe55a51beef27149755cbuastats}(totalK	additionsK	deletionsK ufiles]}(j5C (a17f90ec5d7c8dabd4b8d110ace6016af8cfad9cfilename$changelog/@unreleased/pr-6641.v2.ymlstatusaddedjC KjC K changesKblob_url|https://github.com/palantir/atlasdb/blob/fc8a47809887935b7acec13ea51e2514e3d7e27b/changelog%2F%40unreleased%2Fpr-6641.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/fc8a47809887935b7acec13ea51e2514e3d7e27b/changelog%2F%40unreleased%2Fpr-6641.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6641.v2.yml?ref=fc8a47809887935b7acec13ea51e2514e3d7e27bpatch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize CassandraService#refreshTokenRangesAndGetServers
+  links:
+  - https://github.com/palantir/atlasdb/pull/6641uau(633429c6d335467092783f920bb5b1221c99b1d7}(sha(633429c6d335467092783f920bb5b1221c99b1d7node_idEC_kwDOAjP5fdoAKDYzMzQyOWM2ZDMzNTQ2NzA5Mjc4M2Y5MjBiYjViMTIyMWM5OWIxZDccommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-05-19T15:17:00Zu	committer}(jC GitHubjC noreply@github.comjC 2023-05-19T15:17:00ZumessageExplicitly pin guava versions to avoid slow dependency resolution (#6525)

Explicitly pin guava versions to avoid slow dependency resolutiontree}(jC (1f1b06cdff25f5edef15e98b887e69a2e5a5eb3burl`https://api.github.com/repos/palantir/atlasdb/git/trees/1f1b06cdff25f5edef15e98b887e69a2e5a5eb3bujC bhttps://api.github.com/repos/palantir/atlasdb/git/commits/633429c6d335467092783f920bb5b1221c99b1d7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkZ5LsCRBK7hj4Ov3rIwAAeNQIAA96oXymTlHOraPd4mQxX6m0
CHSBLZData8aqDbiYcVFFx2D8s/lH4XWzGTl6sznRdDb+zKV89BKzgENy+Et0Y59
7q9Fy8XgIk6B2YWr7VdOtMw80oEIfk89WVYfbAaSYW8Tan2OS5x7IAdAYDHU3xPa
nXRe2PIonEbuKaqKvhMLjRwXvGhBJ4FvqSVRMO8/4A0yFQWUxDgk87PpPSpwZpBW
ZnOMAuZlqQDQXof01i2B3V0wCkUGyhYzZPaVLdpOqyQkYGeZogCz+X9/mTLJgAQE
zOMkk0z+9QPZzRuKnxa053lcWcnpyOIBUcBIg5lsWFspTq6ANqRMRPE2h8MQU3k=
=M3/X
-----END PGP SIGNATURE-----
payloadXc  tree 1f1b06cdff25f5edef15e98b887e69a2e5a5eb3b
parent 18136f74744130fd2c8b5f2222360c1683664fa2
author David Schlosnagle <davids@palantir.com> 1684509420 -0400
committer GitHub <noreply@github.com> 1684509420 +0000

Explicitly pin guava versions to avoid slow dependency resolution (#6525)

Explicitly pin guava versions to avoid slow dependency resolution
uujC ^https://api.github.com/repos/palantir/atlasdb/commits/633429c6d335467092783f920bb5b1221c99b1d7html_urlShttps://github.com/palantir/atlasdb/commit/633429c6d335467092783f920bb5b1221c99b1d7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/633429c6d335467092783f920bb5b1221c99b1d7/commentsjC }(loginschlosnaidMBjC MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jC %https://api.github.com/users/schlosnajC https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujC }(jC web-flowjC J/jC MDQ6VXNlcjE5ODY0NDQ3jC 4https://avatars.githubusercontent.com/u/19864447?v=4jC h5jC %https://api.github.com/users/web-flowjC https://github.com/web-flowjC /https://api.github.com/users/web-flow/followersjC <https://api.github.com/users/web-flow/following{/other_user}jC 5https://api.github.com/users/web-flow/gists{/gist_id}jC <https://api.github.com/users/web-flow/starred{/owner}{/repo}jC 3https://api.github.com/users/web-flow/subscriptionsjC *https://api.github.com/users/web-flow/orgsjC +https://api.github.com/users/web-flow/reposjC 6https://api.github.com/users/web-flow/events{/privacy}jC 5https://api.github.com/users/web-flow/received_eventsjC UserjC uparents]}(jC (18136f74744130fd2c8b5f2222360c1683664fa2jC ^https://api.github.com/repos/palantir/atlasdb/commits/18136f74744130fd2c8b5f2222360c1683664fa2     jC Shttps://github.com/palantir/atlasdb/commit/18136f74744130fd2c8b5f2222360c1683664fa2uastats}(totalK	additionsK	deletionsKufiles]}(jC (a510647b74daa828dda4e74270e1dbeaa363e859filenameversions.propsstatusmodifiedjD KjD KchangesKblob_url`https://github.com/palantir/atlasdb/blob/633429c6d335467092783f920bb5b1221c99b1d7/versions.propsraw_url_https://github.com/palantir/atlasdb/raw/633429c6d335467092783f920bb5b1221c99b1d7/versions.propscontents_urlrhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=633429c6d335467092783f920bb5b1221c99b1d7patchX  @@ -17,7 +17,7 @@ com.google.dagger:* = 2.44.1
 com.google.devtools.ksp:symbol-processing-api = 1.5.21-1.0.0-beta07
 com.google.errorprone:* = 2.10.0 # upgrading to 2.11.0 is blocked by a google bug
 com.google.errorprone:error_prone_annotations = 2.10.0
-com.google.guava:* = 31.1-jre
+com.google.guava:guava = 31.1-jre
 com.google.protobuf:* = 3.21.9
 com.googlecode.protobuf-java-format:* = 1.4
 com.lmax:disruptor = 3.4.2uau(03c9a51fc736b9a376aef0afbde6d1076bc8486f}(sha(03c9a51fc736b9a376aef0afbde6d1076bc8486fnode_idEC_kwDOAjP5fdoAKDAzYzlhNTFmYzczNmI5YTM3NmFlZjBhZmJkZTZkMTA3NmJjODQ4NmYcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-07-20T09:04:30Zu	committer}(j+D svc-excavator-botj-D svc-excavator-bot@palantir.comj/D 2023-07-20T09:04:30Zumessage$Excavator:  Update policy-bot configtree}(j#D (703b800440bdfb791f47fc890823fdbda8c0ae40url`https://api.github.com/repos/palantir/atlasdb/git/trees/703b800440bdfb791f47fc890823fdbda8c0ae40uj;D bhttps://api.github.com/repos/palantir/atlasdb/git/commits/03c9a51fc736b9a376aef0afbde6d1076bc8486f
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmS4+J4JEMmvEkpISILgAAAkXgD9HbWmoxZp/i3NIPlJn2zSgEDe
PdhjJJ5T9K6Pmncx9OsBAI3V2Q1g5pTWbEP/lU57cIQwmmNOZf0sd+Am2kRGx5tR
=Uz79
-----END PGP SIGNATURE-----
payloadX  tree 703b800440bdfb791f47fc890823fdbda8c0ae40
parent bfe7051211ad42fc0f3f59928e8602f422bf630b
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1689843870 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1689843870 +0000

Excavator:  Update policy-bot configuuj;D ^https://api.github.com/repos/palantir/atlasdb/commits/03c9a51fc736b9a376aef0afbde6d1076bc8486fhtml_urlShttps://github.com/palantir/atlasdb/commit/03c9a51fc736b9a376aef0afbde6d1076bc8486fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/03c9a51fc736b9a376aef0afbde6d1076bc8486f/commentsj)D }(loginsvc-excavator-botidJj%D MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j;D .https://api.github.com/users/svc-excavator-botjID $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj1D }(jND svc-excavator-botjPD Jj%D MDQ6VXNlcjMzMjY2MzY4jRD 4https://avatars.githubusercontent.com/u/33266368?v=4jTD h5j;D .https://api.github.com/users/svc-excavator-botjID $https://github.com/svc-excavator-botjWD 8https://api.github.com/users/svc-excavator-bot/followersjYD Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}j[D >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}j]D Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}j_D <https://api.github.com/users/svc-excavator-bot/subscriptionsjaD 3https://api.github.com/users/svc-excavator-bot/orgsjcD 4https://api.github.com/users/svc-excavator-bot/reposjeD ?https://api.github.com/users/svc-excavator-bot/events{/privacy}jgD >https://api.github.com/users/svc-excavator-bot/received_eventsjiD UserjkD uparents]}(j#D (bfe7051211ad42fc0f3f59928e8602f422bf630bj;D ^https://api.github.com/repos/palantir/atlasdb/commits/bfe7051211ad42fc0f3f59928e8602f422bf630bjID Shttps://github.com/palantir/atlasdb/commit/bfe7051211ad42fc0f3f59928e8602f422bf630buastats}(totalK	additionsK	deletionsKufiles]}(j#D (95c0afd59482612e75dcd14fb8ccaca826a94dfdfilename.policy.ymlstatusmodifiedjD KjD KchangesKblob_url]https://github.com/palantir/atlasdb/blob/03c9a51fc736b9a376aef0afbde6d1076bc8486f/.policy.ymlraw_url\https://github.com/palantir/atlasdb/raw/03c9a51fc736b9a376aef0afbde6d1076bc8486f/.policy.ymlcontents_urlohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=03c9a51fc736b9a376aef0afbde6d1076bc8486fpatchXe  @@ -48,20 +48,22 @@ approval_rules:
       permissions: ["admin", "maintain"]
     if:
       has_author_in:
-        users: [ "svc-excavator-bot" ]
+        users: [ "svc-excavator-bot", "dependabot[bot]" ]
 
   - name: excavator only touched baseline, circle, gradle files, godel files, generated code, go dependencies, docker-compose-rule config or versions.props
     requires:
       count: 0
     if:
       has_author_in:
-        users: [ "svc-excavator-bot" ]
+        users: [ "svc-excavator-bot", "dependabot[bot]" ]
       only_changed_files:
         # product-dependencies.lock should never go here, to force review of all product (SLS) dependency changes
         # this way excavator cannot change the deployability of a service or product via auto-merge
         paths:
           - "changelog/@unreleased/.*\\.yml"
           - "^\\.baseline/.*$"
+          - "^(.+/)?Cargo.toml$"
+          - "^Cargo.lock$"
           - "^\\.circleci/.*$"
           - "^\\.docker-compose-rule\\.yml$"
           - "^.*gradle$"
@@ -83,7 +85,7 @@ approval_rules:
           - "^internal/generated_src/.*"
           - "^gradle-baseline-java/src/main/resources/checkstyle.version$"
       has_valid_signatures_by_keys:
-        key_ids: ["C9AF124A484882E0"]
+        key_ids: ["C9AF124A484882E0", "4AEE18F83AFDEB23"]
 
   - name: excavator only touched config files
     requires:uau(8d9ed7583f3c695e90886a0d303f32c1925fcf1a}(sha(8d9ed7583f3c695e90886a0d303f32c1925fcf1anode_idEC_kwDOAjP5fdoAKDhkOWVkNzU4M2YzYzY5NWU5MDg4NmEwZDMwM2YzMmMxOTI1ZmNmMWEcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-05-23T12:07:36Zu	committer}(jD GitHubjD noreply@github.comjD 2023-05-23T12:07:36Zumessage~Optimize TimestampMapping::leader to avoid stream overhead (#6506)

Optimize TimestampMapping::leader to avoid stream overheadtree}(jD (46059aeeef79ecbf07b648a8649844050d50f8e6url`https://api.github.com/repos/palantir/atlasdb/git/trees/46059aeeef79ecbf07b648a8649844050d50f8e6ujD bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8d9ed7583f3c695e90886a0d303f32c1925fcf1a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkbKyICRBK7hj4Ov3rIwAAiYMIADDoVERhkSAhuvscUVgOQKZy
B2KRtcQvRtd2dEo5LJcSe6B/ZJ5pXXRigEOKUrbKsVbTRwvds/5ntJe4zyAjkAS8
aRTAVxlxpxEHO5/1+2p6r+9opStA3rhgw+8+jOHGaF5z7TwoIPp1jrQsByNY85zc
bhOIPlagUyOescqN6UHZT1VFwNft6q/f6gMPFZupBSMwqxYiJBUEwdnlfwclYe0W
VmpFnOf7vKf/RW3yw+ibafSLfbF+O/Zsp2pmq1fH0SAGqxeHakY0HVAtD9BdPI8V
tU3DxaDep9gM/kND77wV8T1t33oRwJTYY32n0NnOIZbJMk1i6RW+mIvtxEwVoAg=
=zhQT
-----END PGP SIGNATURE-----
payloadXU  tree 46059aeeef79ecbf07b648a8649844050d50f8e6
parent 571be71ae44483a76ca407d2d397f0d5cdb9c66c
author David Schlosnagle <davids@palantir.com> 1684843656 -0400
committer GitHub <noreply@github.com> 1684843656 +0000

Optimize TimestampMapping::leader to avoid stream overhead (#6506)

Optimize TimestampMapping::leader to avoid stream overhead
uujD ^https://api.github.com/repos/palantir/atlasdb/commits/8d9ed7583f3c695e90886a0d303f32c1925fcf1ahtml_urlShttps://github.com/palantir/atlasdb/commit/8d9ed7583f3c695e90886a0d303f32c1925fcf1acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8d9ed7583f3c695e90886a0d303f32c1925fcf1a/commentsjD }(loginschlosnaidMBjD MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jD %https://api.github.com/users/schlosnajD https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujD }(jD web-flowjD J/jD MDQ6VXNlcjE5ODY0NDQ3jD 4https://avatars.githubusercontent.com/u/19864447?v=4jD h5jD %https://api.github.com/users/web-flowjD https://github.com/web-flowjD /https://api.github.com/users/web-flow/followersjD <https://api.github.com/users/web-flow/following{/other_user}jD 5https://api.github.com/users/web-flow/gists{/gist_id}jD <https://api.github.com/users/web-flow/starred{/owner}{/repo}jD 3https://api.github.com/users/web-flow/subscriptionsjD *https://api.github.com/users/web-flow/orgsjD +https://api.github.com/users/web-flow/reposjD 6https://api.github.com/users/web-flow/events{/privacy}jD 5https://api.github.com/users/web-flow/received_eventsjD UserjD uparents]}(jD (571be71ae44483a76ca407d2d397f0d5cdb9c66cjD ^https://api.github.com/repos/palantir/atlasdb/commits/571be71ae44483a76ca407d2d397f0d5cdb9c66cjD Shttps://github.com/palantir/atlasdb/commit/571be71ae44483a76ca407d2d397f0d5cdb9c66cuastats}(totalK~	additionsKy	deletionsKufiles](}(jD (c480df0088f6789eb9035ca913cc7cc57d932d70filename_atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/watch/TimestampMapping.javastatusmodifiedjD KjD KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/8d9ed7583f3c695e90886a0d303f32c1925fcf1a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.javaraw_urlhttps://github.com/palantir/atlasdb/raw/8d9ed7583f3c695e90886a0d303f32c1925fcf1a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.java?ref=8d9ed7583f3c695e90886a0d303f32c1925fcf1apatchX  @@ -16,12 +16,17 @@
 
 package com.palantir.atlasdb.keyvalue.api.watch;
 
-import com.google.common.collect.MoreCollectors;
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.Collections2;
 import com.google.common.collect.Range;
 import com.palantir.lock.watch.LockWatchVersion;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Iterator;
 import java.util.LongSummaryStatistics;
 import java.util.Map;
+import java.util.Objects;
 import java.util.UUID;
 import org.immutables.value.Value;
 
@@ -44,10 +49,8 @@ default LockWatchVersion lastVersion() {
 
     @Value.Derived
     default UUID leader() {
-        return timestampMapping().values().stream()
-                .map(LockWatchVersion::id)
-                .distinct()
-                .collect(MoreCollectors.onlyElement());
+        // explicitly avoiding stream and distinct collection copy when all IDs should be identical
+        return identicalElement(Collections2.transform(timestampMapping().values(), LockWatchVersion::id));
     }
 
     @Value.Check
@@ -58,4 +61,20 @@ default void nonEmptyMapping() {
     static ImmutableTimestampMapping.Builder builder() {
         return ImmutableTimestampMapping.builder();
     }
+
+    @VisibleForTesting
+    static <T> T identicalElement(Iterable<? extends T> iterable) {
+        Iterator<? extends T> iterator = iterable.iterator();
+        T element = iterator.next();
+        while (iterator.hasNext()) {
+            T next = iterator.next();
+            if (!Objects.equals(element, next)) {
+                throw new SafeIllegalArgumentException(
+                        "Input contains multiple distinct elements",
+                        SafeArg.of("element", element),
+                        SafeArg.of("next", next));
+            }
+        }
+        return element;
+    }
 }u}(jD (2de6f288bf092213b4b2345a73a735695f0f3c27jE catlasdb-impl-shared/src/test/java/com/palantir/atlasdb/keyvalue/api/watch/TimestampMappingTest.javajE addedjD K\jD K jE K\jE https://github.com/palantir/atlasdb/blob/8d9ed7583f3c695e90886a0d303f32c1925fcf1a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.javaj	E https://github.com/palantir/atlasdb/raw/8d9ed7583f3c695e90886a0d303f32c1925fcf1a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.javajE https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.java?ref=8d9ed7583f3c695e90886a0d303f32c1925fcf1aj
E X;  @@ -0,0 +1,92 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.api.watch;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.google.common.collect.Iterables;
+import com.palantir.lock.watch.LockWatchVersion;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import java.util.NoSuchElementException;
+import java.util.UUID;
+import org.junit.Test;
+
+public class TimestampMappingTest {
+    @Test
+    public void singleLeaderMappingIsValid() {
+        UUID id = UUID.randomUUID();
+        ImmutableTimestampMapping timestampMapping = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(id, 1))
+                .build();
+        assertThat(timestampMapping.leader()).isEqualTo(id);
+    }
+
+    @Test
+    public void singleDistinctLeaderMappingIsValid() {
+        UUID id = UUID.randomUUID();
+        ImmutableTimestampMapping timestampMapping = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(id, 1))
+                .putTimestampMapping(2L, LockWatchVersion.of(id, 1))
+                .build();
+        assertThat(timestampMapping.leader()).isEqualTo(id);
+    }
+
+    @Test
+    public void conflictingLeaderMappingIsInvalid() {
+        ImmutableTimestampMapping.Builder builder = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(UUID.randomUUID(), 1))
+                .putTimestampMapping(2L, LockWatchVersion.of(UUID.randomUUID(), 1));
+
+        assertThatThrownBy(builder::build)
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+    }
+
+    @Test
+    public void emptyMappingIsInvalid() {
+        assertThatThrownBy(() -> TimestampMapping.builder().build())
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("Invalid range");
+    }
+
+    @Test
+    public void onlyIdenticalElements() {
+        assertThat(TimestampMapping.identicalElement(List.of("test"))).isEqualTo("test");
+        assertThat(TimestampMapping.identicalElement(Iterables.limit(Iterables.cycle("test"), 1000)))
+                .isEqualTo("test");
+        assertThat(TimestampMapping.identicalElement(Iterables.limit(Iterables.cycle(42L), 1000)))
+                .isEqualTo(42L);
+    }
+
+    @Test
+    public void emptyDistinctElements() {
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of()))
+                .isInstanceOf(NoSuchElementException.class);
+    }
+
+    @Test
+    public void multipleDistinctElements() {
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of("a", "b", "a")))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of("a", "a", "b")))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+    }
+}u}(jD (16fb8eee169fd963709ea4a7cfbd511308736f08jE $changelog/@unreleased/pr-6506.v2.ymljE addedjD KjD K jE KjE |https://github.com/palantir/atlasdb/blob/8d9ed7583f3c695e90886a0d303f32c1925fcf1a/changelog%2F%40unreleased%2Fpr-6506.v2.ymlj	E {https://github.com/palantir/atlasdb/raw/8d9ed7583f3c695e90886a0d303f32c1925fcf1a/changelog%2F%40unreleased%2Fpr-6506.v2.ymljE https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6506.v2.yml?ref=8d9ed7583f3c695e90886a0d303f32c1925fcf1aj
E @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize TimestampMapping::leader to avoid stream overhead
+  links:
+  - https://github.com/palantir/atlasdb/pull/6506ueu(938e71b1bfa083f258458b0c5c0649f6564863c0}(sha(938e71b1bfa083f258458b0c5c0649f6564863c0node_idEC_kwDOAjP5fdoAKDkzOGU3MWIxYmZhMDgzZjI1ODQ1OGIwYzVjMDY0OWY2NTY0ODYzYzAcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-29T00:16:21Zu	committer}(j)E 
Ahmed Alouanej+E aalouane@palantir.comj-E 2023-04-29T00:16:21ZumessageDMerge branch 'aatest23' of github.com:palantir/atlasdb into aatest23tree}(j!E (9885749b7fb2e05afca2edc8e3a05f94e20f2f06url`https://api.github.com/repos/palantir/atlasdb/git/trees/9885749b7fb2e05afca2edc8e3a05f94e20f2f06uj9E bhttps://api.github.com/repos/palantir/atlasdb/git/commits/938e71b1bfa083f258458b0c5c0649f6564863c0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRMYdgACgkQPlMHVIT1
yhohHwf/RxMwnKIpmnNWLx7sbzgp3Uet8CLyildiIk/8emqMzavtu8nZCHL6oT9C
udc52DUxFp+0p3iRra279WGMyJbC0akY5UrZ4qL/Sn3l5jkEL9kAqElXK46JXMj9
pW2gPIUu7fPwYFuP0QiS+ZSnKCYmxIeyubmCHVi1YIfyLPTQXuO2ERbr9xWJ8Ma1
OQH+yp/SDaujgJ0UdfmN7MaL7Z2MqpIlTvkAwMqY4VozY0pT0fVdZ+7s1rasjf8L
xuyrX94l2aMxXkxe+Vq9ce537DwshEuFn9Oq3PCKdX8u2bK4EN5IpP/OcTdNQXfq
wWdiwtd6TgIXp3G3vpdjt/xsjSYW4w==
=kM4o
-----END PGP SIGNATURE-----payloadXS  tree 9885749b7fb2e05afca2edc8e3a05f94e20f2f06
parent 7a77a5fca325b540183d51c72f91f4f8544e6e89
parent 8fa96abcf9548ccac318b21343f12e628f85605f
author Ahmed Alouane <aalouane@palantir.com> 1682727381 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682727381 +0100

Merge branch 'aatest23' of github.com:palantir/atlasdb into aatest23
uuj9E ^https://api.github.com/repos/palantir/atlasdb/commits/938e71b1bfa083f258458b0c5c0649f6564863c0html_urlShttps://github.com/palantir/atlasdb/commit/938e71b1bfa083f258458b0c5c0649f6564863c0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/938e71b1bfa083f258458b0c5c0649f6564863c0/commentsj'E }(loginergo14idJj#E MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j9E #https://api.github.com/users/ergo14jGE https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj/E }(jLE ergo14jNE Jj#E MDQ6VXNlcjMwOTAzNzM2jPE 4https://avatars.githubusercontent.com/u/30903736?v=4jRE h5j9E #https://api.github.com/users/ergo14jGE https://github.com/ergo14jUE -https://api.github.com/users/ergo14/followersjWE :https://api.github.com/users/ergo14/following{/other_user}jYE 3https://api.github.com/users/ergo14/gists{/gist_id}j[E :https://api.github.com/users/ergo14/starred{/owner}{/repo}j]E 1https://api.github.com/users/ergo14/subscriptionsj_E (https://api.github.com/users/ergo14/orgsjaE )https://api.github.com/users/ergo14/reposjcE 4https://api.github.com/users/ergo14/events{/privacy}jeE 3https://api.github.com/users/ergo14/received_eventsjgE UserjiE uparents](}(j!E (7a77a5fca325b540183d51c72f91f4f8544e6e89j9E ^https://api.github.com/repos/palantir/atlasdb/commits/7a77a5fca325b540183d51c72f91f4f8544e6e89jGE Shttps://github.com/palantir/atlasdb/commit/7a77a5fca325b540183d51c72f91f4f8544e6e89u}(j!E (8fa96abcf9548ccac318b21343f12e628f85605fj9E ^https://api.github.com/repos/palantir/atlasdb/commits/8fa96abcf9548ccac318b21343f12e628f85605fjGE Shttps://github.com/palantir/atlasdb/commit/8fa96abcf9548ccac318b21343f12e628f85605fuestats}(totalK 	additionsK 	deletionsK ufiles]u(0c1c9e1de12352c7021af26f626b09d7e1f3d4b2}(sha(0c1c9e1de12352c7021af26f626b09d7e1f3d4b2node_idEC_kwDOAjP5fdoAKDBjMWM5ZTFkZTEyMzUyYzcwMjFhZjI2ZjYyNmIwOWQ3ZTFmM2Q0YjIcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-08-08T16:10:20Zu	committer}(jE 	Tom PapkejE tpapke@palantir.comjE 2023-08-08T16:10:20Zumessage8separate test for deleteWithMetadata
test for forwardingtree}(jE (d2a048674ec99e75f4e5138f19af75451c804de7url`https://api.github.com/repos/palantir/atlasdb/git/trees/d2a048674ec99e75f4e5138f19af75451c804de7ujE bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0c1c9e1de12352c7021af26f626b09d7e1f3d4b2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTSaOwACgkQmF9s0kaF
Iw2jZAgAwyKu0VqxvfLHvTcQKw5KdQp0HvFxZ1Vw9Rd7lZyLoid/BA2wbkBY2A6G
FfYuyToJOTujMX/StfTGaRPCDmcHt815S1uMjnKvarYd+NzEMwb/X9yP1gFF2Yvw
ZBKccvhoI4ejBRunrf3BM7V0tJ8BLRMP1Agq5aGub382a5hGg/LkJMXpzJk7xM1k
wWwpdoYfzEF+aeaHEjo8+DA9SYmWeU3HDkZrMr681efopgthdalvumQUVmXS2nI7
wfKJQITkWi3k2mkuWFXGCKffVZDTP6J36SjmYW5cJA0+GqEwENuZYnONqUtkIxPJ
AfWNRs49RWN2wFJ1v50/Vd/OaEqDww==
=XbGx
-----END PGP SIGNATURE-----payloadX  tree d2a048674ec99e75f4e5138f19af75451c804de7
parent cf3b124550171321d16a26aa990b14ad842f6a27
author Tom Papke <tpapke@palantir.com> 1691511020 +0100
committer Tom Papke <tpapke@palantir.com> 1691511020 +0100

separate test for deleteWithMetadata
test for forwarding
uujE ^https://api.github.com/repos/palantir/atlasdb/commits/0c1c9e1de12352c7021af26f626b09d7e1f3d4b2html_urlShttps://github.com/palantir/atlasdb/commit/0c1c9e1de12352c7021af26f626b09d7e1f3d4b2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0c1c9e1de12352c7021af26f626b09d7e1f3d4b2/commentsjE }(login	ToemmscheidJbojE MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jE &https://api.github.com/users/ToemmschejE https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujE }(jE 	ToemmschejE JbojE MDQ6VXNlcjQzNjc1NDkwjE 4https://avatars.githubusercontent.com/u/43675490?v=4jE h5jE &https://api.github.com/users/ToemmschejE https://github.com/ToemmschejE 0https://api.github.com/users/Toemmsche/followersjE =https://api.github.com/users/Toemmsche/following{/other_user}jE 6https://api.github.com/users/Toemmsche/gists{/gist_id}jE =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jE 4https://api.github.com/users/Toemmsche/subscriptionsjE +https://api.github.com/users/Toemmsche/orgsjE ,https://api.github.com/users/Toemmsche/reposjE 7https://api.github.com/users/Toemmsche/events{/privacy}jE 6https://api.github.com/users/Toemmsche/received_eventsjE UserjE uparents]}(jE (cf3b124550171321d16a26aa990b14ad842f6a27jE ^https://api.github.com/repos/palantir/atlasdb/commits/cf3b124550171321d16a26aa990b14ad842f6a27jE Shttps://github.com/palantir/atlasdb/commit/cf3b124550171321d16a26aa990b14ad842f6a27uastats}(totalKT	additionsKN	deletionsKufiles](}(jE (f5ddbc59e05947ad6a1ba4a881ba71c902dd4b73filenamedatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/CachingTransactionTest.javastatusmodifiedjE K'jE K changesK'blob_urlhttps://github.com/palantir/atlasdb/blob/0c1c9e1de12352c7021af26f626b09d7e1f3d4b2/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0c1c9e1de12352c7021af26f626b09d7e1f3d4b2/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransactionTest.java?ref=0c1c9e1de12352c7021af26f626b09d7e1f3d4b2patchX  @@ -16,6 +16,8 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.verify;
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
@@ -29,6 +31,8 @@
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.ValueAndChangeMetadata;
+import com.palantir.lock.watch.ChangeMetadata;
 import java.nio.charset.StandardCharsets;
 import java.util.Arrays;
 import java.util.Collection;
@@ -49,6 +53,11 @@ public class CachingTransactionTest {
     private static final byte[] ROW_BYTES = "row".getBytes(StandardCharsets.UTF_8);
     private static final byte[] COL_BYTES = "col".getBytes(StandardCharsets.UTF_8);
     private static final byte[] VALUE_BYTES = "value".getBytes(StandardCharsets.UTF_8);
+    private static final Cell CELL_1 = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("col1"));
+    private static final Cell CELL_2 = Cell.create(PtBytes.toBytes("row2"), PtBytes.toBytes("col2"));
+    private static final ChangeMetadata CHANGE_METADATA_1 = ChangeMetadata.unchanged();
+    private static final ChangeMetadata CHANGE_METADATA_2 = ChangeMetadata.created(PtBytes.toBytes("new"));
+
     private static final String SYNC = "sync";
     private static final String ASYNC = "async";
 
@@ -163,6 +172,36 @@ public void testGetEmptyCell() {
         testGetCellResults(cell, emptyCellValueMap);
     }
 
+    @Test
+    public void metadataIsForwardedForPutWithMetadata() {
+        Transaction txn = mock(Transaction.class);
+        CachingTransaction cachingTransaction = new CachingTransaction(txn);
+        cachingTransaction.putWithMetadata(
+                table,
+                ImmutableMap.of(
+                        CELL_1,
+                        ValueAndChangeMetadata.of(VALUE_BYTES, CHANGE_METADATA_1),
+                        CELL_2,
+                        ValueAndChangeMetadata.of(VALUE_BYTES, CHANGE_METADATA_2)));
+        verify(txn)
+                .putWithMetadata(
+                        table,
+                        ImmutableMap.of(
+                                CELL_1,
+                                ValueAndChangeMetadata.of(VALUE_BYTES, CHANGE_METADATA_1),
+                                CELL_2,
+                                ValueAndChangeMetadata.of(VALUE_BYTES, CHANGE_METADATA_2)));
+    }
+
+    @Test
+    public void metadataIsForwardedForDeleteWithMetadata() {
+        Transaction txn = mock(Transaction.class);
+        CachingTransaction cachingTransaction = new CachingTransaction(txn);
+        cachingTransaction.deleteWithMetadata(
+                table, ImmutableMap.of(CELL_1, CHANGE_METADATA_1, CELL_2, CHANGE_METADATA_2));
+        verify(txn).deleteWithMetadata(table, ImmutableMap.of(CELL_1, CHANGE_METADATA_1, CELL_2, CHANGE_METADATA_2));
+    }
+
     private void testGetCellResults(Cell cell, Map<Cell, byte[]> cellValueMap) {
         final Set<Cell> cellSet = ImmutableSet.of(cell);
         mockery.checking(expectationsMapping.get(name).apply(cellSet, cellValueMap));u}(jE (0c583a22f04dd524fd19cfadc30f843a1fdc8f69jE eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javajE modifiedjE K'jE KjE K-jE https://github.com/palantir/atlasdb/blob/0c1c9e1de12352c7021af26f626b09d7e1f3d4b2/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajE https://github.com/palantir/atlasdb/raw/0c1c9e1de12352c7021af26f626b09d7e1f3d4b2/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajE https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=0c1c9e1de12352c7021af26f626b09d7e1f3d4b2j F X  @@ -2568,7 +2568,7 @@ public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
     }
 
     @Test
-    public void metadataIsTransferredToCellLocks() {
+    public void metadataIsTransferredToCellLocksForPutWithMetadata() {
         TimelockService timelockService = spy(txManager.getTimelockService());
         // Only locks cells
         Transaction txn = getSnapshotTransactionWith(
@@ -2605,6 +2605,38 @@ public void metadataIsTransferredToCellLocks() {
                                 UNCHANGED_CHANGE_METADATA)))));
     }
 
+    @Test
+    public void metadataIsTransferredToCellLocksForDeleteWithMetadata() {
+        TimelockService timelockService = spy(txManager.getTimelockService());
+        // Only locks cells
+        Transaction txn = getSnapshotTransactionWith(
+                timelockService,
+                ImmutableMap.of(TABLE, ConflictHandler.SERIALIZABLE_CELL, TABLE2, ConflictHandler.SERIALIZABLE_CELL));
+
+        txn.deleteWithMetadata(
+                TABLE, ImmutableMap.of(TEST_CELL, UPDATE_CHANGE_METADATA, TEST_CELL_2, DELETE_CHANGE_METADATA));
+        txn.deleteWithMetadata(TABLE2, ImmutableMap.of(TEST_CELL, UNCHANGED_CHANGE_METADATA));
+
+        LockDescriptor cellLock =
+                AtlasCellLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL.getRowName(), TEST_CELL.getColumnName());
+        LockDescriptor cellLock2 = AtlasCellLockDescriptor.of(
+                TABLE.getQualifiedName(), TEST_CELL_2.getRowName(), TEST_CELL_2.getColumnName());
+        LockDescriptor cellLock3 = AtlasCellLockDescriptor.of(
+                TABLE2.getQualifiedName(), TEST_CELL.getRowName(), TEST_CELL.getColumnName());
+        verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
+                txn,
+                timelockService,
+                LocksAndMetadata.of(
+                        ImmutableSet.of(cellLock, cellLock2, cellLock3),
+                        Optional.of(LockRequestMetadata.of(ImmutableMap.of(
+                                cellLock,
+                                UPDATE_CHANGE_METADATA,
+                                cellLock2,
+                                DELETE_CHANGE_METADATA,
+                                cellLock3,
+                                UNCHANGED_CHANGE_METADATA)))));
+    }
+
     @Test
     public void metadataIsTransferredToRowLocks() {
         TimelockService timelockService = spy(txManager.getTimelockService());
@@ -2613,13 +2645,14 @@ public void metadataIsTransferredToRowLocks() {
                 timelockService,
                 ImmutableMap.of(TABLE, ConflictHandler.SERIALIZABLE, TABLE2, ConflictHandler.SERIALIZABLE));
 
-        txn.delete(TABLE, ImmutableSet.of(Cell.create(ROW_FOO, COL_A)));
-        txn.deleteWithMetadata(
+        txn.put(TABLE, ImmutableMap.of(Cell.create(ROW_FOO, COL_A), TEST_VALUE));
+        txn.putWithMetadata(
                 TABLE,
                 ImmutableMap.of(
-                        Cell.create(ROW_FOO, COL_B), UPDATE_CHANGE_METADATA,
-                        Cell.create(ROW_BAR, COL_A), DELETE_CHANGE_METADATA));
-        txn.deleteWithMetadata(TABLE2, ImmutableMap.of(TEST_CELL, UNCHANGED_CHANGE_METADATA));
+                        Cell.create(ROW_FOO, COL_B), ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA),
+                        Cell.create(ROW_BAR, COL_A), ValueAndChangeMetadata.of(TEST_VALUE, DELETE_CHANGE_METADATA)));
+        txn.putWithMetadata(
+                TABLE2, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, UNCHANGED_CHANGE_METADATA)));
 
         LockDescriptor rowLock = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), ROW_FOO);
         LockDescriptor rowLock2 = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), ROW_BAR);ueu(457e2835e1cd8c7f87253d381eefa7b02e82c0a9}(sha(457e2835e1cd8c7f87253d381eefa7b02e82c0a9node_idEC_kwDOAjP5fdoAKDQ1N2UyODM1ZTFjZDhjN2Y4NzI1M2QzODFlZWZhN2IwMmU4MmMwYTkcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-07-14T14:28:02Zu	committer}(jF 
Sam KramerjF skramer@palantir.comjF 2023-07-14T14:28:02Zumessagedouble quotetree}(jF (c58035c8743eb6bc29dc90978fdc1d8c1f75512eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/c58035c8743eb6bc29dc90978fdc1d8c1f75512euj$F bhttps://api.github.com/repos/palantir/atlasdb/git/commits/457e2835e1cd8c7f87253d381eefa7b02e82c0a9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSxW3IACgkQmPPOpKR4
XS16Lwf/ZRlFSWiDJ8qxyLR9Pxfs6bUFJXk5S0a+PeMzBzrLN1bouGK5TMHWOJCI
VFSA5TRHWDi9kqiSE6V7f5VbrtSv5QPI7v3jtinZ2LsOtQWB8U/3f+kBOnBnJfk2
J3knJQr3K/b+Nx6Imz8QUQAwA/p2l1sZS8J0GO/c+b6rRLtvgoyzFIyKDZK9YXbZ
prxk9/DV3+aRde7Mqgh7MH507UEwjsRahywvu4/ftNtCkg3pIH3fZxJ6s2xTlz5o
0fc9J2UO0keEFDxT7JoMyqOEyX8wNETVaosc4snzpoL5kSTU/6J6QxtELOC+fWVK
CgXJwctMUN3rqPIvX/pBiAUEWxHrkA==
=LSuY
-----END PGP SIGNATURE-----payloadtree c58035c8743eb6bc29dc90978fdc1d8c1f75512e
parent bb6c8adb63d8f648370e369e1eebfc02b3fe815b
author Sam Kramer <skramer@palantir.com> 1689344882 +0100
committer Sam Kramer <skramer@palantir.com> 1689344882 +0100

double quote
uuj$F ^https://api.github.com/repos/palantir/atlasdb/commits/457e2835e1cd8c7f87253d381eefa7b02e82c0a9html_urlShttps://github.com/palantir/atlasdb/commit/457e2835e1cd8c7f87253d381eefa7b02e82c0a9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/457e2835e1cd8c7f87253d381eefa7b02e82c0a9/commentsjF }(login
Sam-KrameridJ^2_ jF MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j$F 'https://api.github.com/users/Sam-Kramerj2F https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujF }(j7F 
Sam-Kramerj9F J^2_ jF MDQ6VXNlcjYyMzg4MTQ=j;F 3https://avatars.githubusercontent.com/u/6238814?v=4j=F h5j$F 'https://api.github.com/users/Sam-Kramerj2F https://github.com/Sam-Kramerj@F 1https://api.github.com/users/Sam-Kramer/followersjBF >https://api.github.com/users/Sam-Kramer/following{/other_user}jDF 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jFF >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jHF 5https://api.github.com/users/Sam-Kramer/subscriptionsjJF ,https://api.github.com/users/Sam-Kramer/orgsjLF -https://api.github.com/users/Sam-Kramer/reposjNF 8https://api.github.com/users/Sam-Kramer/events{/privacy}jPF 7https://api.github.com/users/Sam-Kramer/received_eventsjRF UserjTF uparents]}(jF (bb6c8adb63d8f648370e369e1eebfc02b3fe815bj$F ^https://api.github.com/repos/palantir/atlasdb/commits/bb6c8adb63d8f648370e369e1eebfc02b3fe815bj2F Shttps://github.com/palantir/atlasdb/commit/bb6c8adb63d8f648370e369e1eebfc02b3fe815buastats}(totalK	additionsK	deletionsKufiles]}(jF (6bc6d533a2c274beb9c4b16827463b3da18fc6c6filenameWdocs/source/configuration/key_value_service_configs/oracle_key_value_service_config.rststatusmodifiedjnF KjoF KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/457e2835e1cd8c7f87253d381eefa7b02e82c0a9/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rstraw_urlhttps://github.com/palantir/atlasdb/raw/457e2835e1cd8c7f87253d381eefa7b02e82c0a9/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rstcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rst?ref=457e2835e1cd8c7f87253d381eefa7b02e82c0a9patchX  @@ -227,8 +227,8 @@ performing table mapping, then it is expected that this could break one of the s
 still satisfies the status quo, thus it's on the configurator to determine if this change is safe to make.
 
 Although the alter action is idempotent, it is recommended to remove the configuration after it has ran. Check the logs
-for `Altering table to have overflow column to match metadata.` to determine if a table has been successfully altered,
-and there have been no exceptions.
+for ``Altering table to have overflow column to match metadata.`` and that there were no error logs printed to ensure that
+has successfully ran.
 
 
 uau(ed323d4dbb9a0fd308f9b31826ccf1e91b74752a}(sha(ed323d4dbb9a0fd308f9b31826ccf1e91b74752anode_idEC_kwDOAjP5fdoAKGVkMzIzZDRkYmI5YTBmZDMwOGY5YjMxODI2Y2NmMWU5MWI3NDc1MmEcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-07-18T17:29:20Zu	committer}(jF svc-excavator-botjF svc-excavator-bot@palantir.comjF 2023-07-18T17:29:20ZumessageExcavator:  Prefer AssertJtree}(jF (ab51d57cc0d3e875683a8bacf1efa3abda895eb1url`https://api.github.com/repos/palantir/atlasdb/git/trees/ab51d57cc0d3e875683a8bacf1efa3abda895eb1ujF bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ed323d4dbb9a0fd308f9b31826ccf1e91b74752a
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmS2y/AJEMmvEkpISILgAABFqQEAn0eEBsSnNhOIHJRMHWEmdykV
V72RBzSOrfsvR9h1kocA/AgXDLyXHRiJgaNmxH2n0maw2yghn3xldWSTFCy5POof
=VW/o
-----END PGP SIGNATURE-----
payloadX  tree ab51d57cc0d3e875683a8bacf1efa3abda895eb1
parent ce30466603b4041b56400dea78e01588e4ba3369
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1689701360 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1689701360 +0000

Excavator:  Prefer AssertJuujF ^https://api.github.com/repos/palantir/atlasdb/commits/ed323d4dbb9a0fd308f9b31826ccf1e91b74752ahtml_urlShttps://github.com/palantir/atlasdb/commit/ed323d4dbb9a0fd308f9b31826ccf1e91b74752acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ed323d4dbb9a0fd308f9b31826ccf1e91b74752a/commentsjF }(loginsvc-excavator-botidJjF MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5jF .https://api.github.com/users/svc-excavator-botjF $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminujF }(jF svc-excavator-botjF JjF MDQ6VXNlcjMzMjY2MzY4jF 4https://avatars.githubusercontent.com/u/33266368?v=4jF h5jF .https://api.github.com/users/svc-excavator-botjF $https://github.com/svc-excavator-botjF 8https://api.github.com/users/svc-excavator-bot/followersjF Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}jF >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}jF Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}jF <https://api.github.com/users/svc-excavator-bot/subscriptionsjF 3https://api.github.com/users/svc-excavator-bot/orgsjF 4https://api.github.com/users/svc-excavator-bot/reposjF ?https://api.github.com/users/svc-excavator-bot/events{/privacy}jF >https://api.github.com/users/svc-excavator-bot/received_eventsjF UserjF uparents]}(jF (ce30466603b4041b56400dea78e01588e4ba3369jF ^https://api.github.com/repos/palantir/atlasdb/commits/ce30466603b4041b56400dea78e01588e4ba3369jF Shttps://github.com/palantir/atlasdb/commit/ce30466603b4041b56400dea78e01588e4ba3369uastats}(totalK		additionsK	deletionsKufiles](}(jF (9f0c7fbc486ed33c7d2e87d7bec15a60af80050bfilenameKatlasdb-commons/src/test/java/com/palantir/util/IndexEncodingUtilsTest.javastatusmodifiedjF KjF KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ed323d4dbb9a0fd308f9b31826ccf1e91b74752a/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ed323d4dbb9a0fd308f9b31826ccf1e91b74752a/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.java?ref=ed323d4dbb9a0fd308f9b31826ccf1e91b74752apatchX  @@ -78,7 +78,8 @@ public void cannotLookupUnknownChecksumType() {
 
     @Test
     public void canEncodeSimpleData() {
-        assertThat(createIndexEncoding().indexToValue()).isEqualTo(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
+        assertThat(createIndexEncoding().indexToValue())
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
     }
 
     @Testu}(jF (a251b92eabd208ac88784e2fdc765f1f810ce9fbjF patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/ed323d4dbb9a0fd308f9b31826ccf1e91b74752a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajF https://github.com/palantir/atlasdb/raw/ed323d4dbb9a0fd308f9b31826ccf1e91b74752a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=ed323d4dbb9a0fd308f9b31826ccf1e91b74752ajF Xx  @@ -130,7 +130,7 @@ public void allRelevantCellsAreRecordedForFullColumnScan() {
                         .isInstanceOfSatisfying(
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
-                                        .isEqualTo(IntStream.range(0, iterationCount)
+                                        .containsExactlyElementsOf(IntStream.range(0, iterationCount)
                                                 .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
                                                 .collect(Collectors.toList()))));
     }
@@ -158,7 +158,7 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
                         .isInstanceOfSatisfying(
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
-                                        .isEqualTo(IntStream.range(startInclusive, endExclusive)
+                                        .containsExactlyElementsOf(IntStream.range(startInclusive, endExclusive)
                                                 .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
                                                 .collect(Collectors.toList()))));
     }u}(jF (8662e0582f5aff3fdfa81d6e33ab22e4049363f9jF qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflowTest.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/ed323d4dbb9a0fd308f9b31826ccf1e91b74752a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javajF https://github.com/palantir/atlasdb/raw/ed323d4dbb9a0fd308f9b31826ccf1e91b74752a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.java?ref=ed323d4dbb9a0fd308f9b31826ccf1e91b74752ajF X  @@ -101,7 +101,7 @@ public void writesThenDeletes() {
 
         List<WitnessedTransaction> transactions = workflow.run().history();
 
-        assertThat(transactions.size()).isEqualTo(4);
+        assertThat(transactions).hasSize(4);
         assertWriteTransaction(transactions.get(0), 0);
         assertDeleteTransaction(transactions.get(1), 0);
         assertWriteTransaction(transactions.get(2), 1);ueu(7113edf204356f494a787ab259575b5ba9132076}(sha(7113edf204356f494a787ab259575b5ba9132076node_idEC_kwDOAjP5fdoAKDcxMTNlZGYyMDQzNTZmNDk0YTc4N2FiMjU5NTc1YjViYTkxMzIwNzYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-18T10:27:04Zu	committer}(jG 
Sam KramerjG skramer@palantir.comjG 2023-04-18T10:27:04Zumessage&handle kae exceptions during executiontree}(j
G (da26924ee1ef18ae4e0ba16ab863924df44caeadurl`https://api.github.com/repos/palantir/atlasdb/git/trees/da26924ee1ef18ae4e0ba16ab863924df44caeaduj"G bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7113edf204356f494a787ab259575b5ba9132076
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ+cHgACgkQmPPOpKR4
XS3ZIAf9FJvts1Bz59klAJLf59wiYP0wYxbWWGK4lBC8GdA2x4y9hDPW4iO8aEkD
Oj0cRYh31dfuja0m3cjxHzABDh+XO1oKwiG0Yxs24aWBtYKpdAhp/GVuvFusOdsi
yFQ5AgjuoINK+B8mhzyKjIkwtMBmShowfJ7JLlerABj9Lj7OjbwKoJ0p5LSc+xOy
1GOCVgpHFHKow5EVdWS1wrZ0hJnmGbBc7upQo95SWJfLNNZDrqMFM7m1g8puhDRZ
VI2NqNGASgZWlpvUzOtI2r2BbXv3pj5jB8ggNo0+EkNOs4fJpcjlTwcOfa9pObeY
yKQ96IPCzeNGI/p97lTOWdobWDBN/g==
=wgYv
-----END PGP SIGNATURE-----payloadtree da26924ee1ef18ae4e0ba16ab863924df44caead
parent 143be05923383c9ea844ab41a19b4e0a324bd87c
author Sam Kramer <skramer@palantir.com> 1681813624 +0100
committer Sam Kramer <skramer@palantir.com> 1681813624 +0100

handle kae exceptions during execution
uuj"G ^https://api.github.com/repos/palantir/atlasdb/commits/7113edf204356f494a787ab259575b5ba9132076html_urlShttps://github.com/palantir/atlasdb/commit/7113edf204356f494a787ab259575b5ba9132076comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7113edf204356f494a787ab259575b5ba9132076/commentsjG }(login
Sam-KrameridJ^2_ jG MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j"G 'https://api.github.com/users/Sam-Kramerj0G https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujG }(j5G 
Sam-Kramerj7G J^2_ jG MDQ6VXNlcjYyMzg4MTQ=j9G 3https://avatars.githubusercontent.com/u/6238814?v=4j;G h5j"G 'https://api.github.com/users/Sam-Kramerj0G https://github.com/Sam-Kramerj>G 1https://api.github.com/users/Sam-Kramer/followersj@G >https://api.github.com/users/Sam-Kramer/following{/other_user}jBG 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jDG >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jFG 5https://api.github.com/users/Sam-Kramer/subscriptionsjHG ,https://api.github.com/users/Sam-Kramer/orgsjJG -https://api.github.com/users/Sam-Kramer/reposjLG 8https://api.github.com/users/Sam-Kramer/events{/privacy}jNG 7https://api.github.com/users/Sam-Kramer/received_eventsjPG UserjRG uparents]}(j
G (143be05923383c9ea844ab41a19b4e0a324bd87cj"G ^https://api.github.com/repos/palantir/atlasdb/commits/143be05923383c9ea844ab41a19b4e0a324bd87cj0G Shttps://github.com/palantir/atlasdb/commit/143be05923383c9ea844ab41a19b4e0a324bd87cuastats}(totalMW	additionsM#	deletionsK4ufiles](}(j
G (4c26a43c3e6c457fe7515dca34be000636b17064filenamekatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ReadableTransactionStore.javastatusmodifiedjlG KjmG K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.java?ref=7113edf204356f494a787ab259575b5ba9132076patchXV  @@ -28,4 +28,9 @@ public interface ReadableTransactionStore {
      * @return The value of the cell for a given table.
      */
     Optional<Integer> get(String table, WorkloadCell cell);
+
+    /**
+     * Checks the startTimestamp for a given transaction whether it has committed.
+     */
+    boolean isCommitted(long startTimestamp);
 }u}(j
G (574a86c53458c2bbb5f43c19c269eb2ee52679c7jrG |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/FullyWitnessedTransaction.javajtG addedjlG K"jmG K jvG K"jwG https://github.com/palantir/atlasdb/blob/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javajyG https://github.com/palantir/atlasdb/raw/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javaj{G https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.java?ref=7113edf204356f494a787ab259575b5ba9132076j}G X  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we know for certain we've witnessed.
+ */
+@Value.Immutable
+public interface FullyWitnessedTransaction extends WitnessedTransaction {
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableFullyWitnessedTransaction.Builder builder() {
+        return ImmutableFullyWitnessedTransaction.builder();
+    }
+}u}(j
G (76047ca7a4ee88decbff264f3cc64d57819cf74ajrG |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransaction.javajtG addedjlG K,jmG K jvG K,jwG https://github.com/palantir/atlasdb/blob/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javajyG https://github.com/palantir/atlasdb/raw/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javaj{G https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.java?ref=7113edf204356f494a787ab259575b5ba9132076j}G X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.logsafe.Preconditions;
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we witnessed, but are in a state which we are
+ * unsure if they have committed or not due to failures.
+ */
+@Value.Immutable
+public interface MaybeWitnessedTransaction extends WitnessedTransaction {
+    @Value.Check
+    default void check() {
+        Preconditions.checkArgument(
+                commitTimestamp().isPresent(),
+                "Commit timestamp must be present in a potentially witnessed transaction, as otherwise it is not"
+                        + " possible to validate whether or not a transaction has been committed.");
+    }
+
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableMaybeWitnessedTransaction.Builder builder() {
+        return ImmutableMaybeWitnessedTransaction.builder();
+    }
+}u}(j
G (525e82582d3affac4608bebfe366141f3088a716jrG watlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransaction.javajtG modifiedjlG KjmG KjvG KjwG https://github.com/palantir/atlasdb/blob/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javajyG https://github.com/palantir/atlasdb/raw/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javaj{G https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.java?ref=7113edf204356f494a787ab259575b5ba9132076j}G X
  @@ -18,9 +18,7 @@
 
 import java.util.List;
 import java.util.Optional;
-import org.immutables.value.Value;
 
-@Value.Immutable
 public interface WitnessedTransaction {
     /** Start timestamp of the transaction. */
     long startTimestamp();
@@ -30,4 +28,6 @@ public interface WitnessedTransaction {
 
     /** Provides an in-order list of actions that were performed during the transaction's execution. */
     List<WitnessedTransactionAction> actions();
+
+    <T> T accept(WitnessedTransactionVisitor<T> visitor);
 }u}(j
G (33682bf649e7b87408367a7f23d4995c94c96d98jrG ~atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionVisitor.javajtG addedjlG KjmG K jvG KjwG https://github.com/palantir/atlasdb/blob/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javajyG https://github.com/palantir/atlasdb/raw/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javaj{G https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.java?ref=7113edf204356f494a787ab259575b5ba9132076j}G X  @@ -0,0 +1,23 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+public interface WitnessedTransactionVisitor<T> {
+    T visit(FullyWitnessedTransaction witnessedTransaction);
+
+    T visit(MaybeWitnessedTransaction maybeWitnessedTransaction);
+}u}(j
G (41fdfcc855ccff698dd3c4756ddb449a9fb419cajrG fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javajtG modifiedjlG K'jmG KjvG K3jwG https://github.com/palantir/atlasdb/blob/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javajyG https://github.com/palantir/atlasdb/raw/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj{G https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=7113edf204356f494a787ab259575b5ba9132076j}G X|  @@ -18,19 +18,23 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
+import com.palantir.atlasdb.keyvalue.api.KeyAlreadyExistsException;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.PreCommitCondition;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -63,6 +67,13 @@ public Optional<Integer> get(String table, WorkloadCell cell) {
                 transaction -> new AtlasDbInteractiveTransaction(transaction, tables).read(table, cell));
     }
 
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return TransactionStatus.getCommitTimestamp(
+                        transactionManager.getTransactionService().getV2(startTimestamp))
+                .isPresent();
+    }
+
     @Override
     public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
         return readWrite(txn -> {
@@ -74,23 +85,26 @@ public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions)
     @Override
     public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer) {
         AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
+        AtomicReference<Transaction> transactionReference = new AtomicReference<>();
         Supplier<CommitTimestampProvider> commitTimestampProvider =
                 Suppliers.memoize(() -> new CommitTimestampProvider());
         try {
-            Transaction transaction =
-                    transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
-                        AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
-                                new AtlasDbInteractiveTransaction(txn, tables);
-                        interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
-                        witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
-                        return txn;
-                    });
+            transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
+                AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
+                        new AtlasDbInteractiveTransaction(txn, tables);
+                interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
+                witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
+                transactionReference.set(txn);
+                return null;
+            });
+
+            Transaction transaction = transactionReference.get();
 
             if (transaction.isAborted()) {
                 return Optional.empty();
             }
 
-            return Optional.of(ImmutableWitnessedTransaction.builder()
+            return Optional.of(FullyWitnessedTransaction.builder()
                     .startTimestamp(transaction.getTimestamp())
                     .commitTimestamp(commitTimestampProvider
                             .get()
@@ -99,9 +113,22 @@ public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction>
                     .build());
         } catch (SafeIllegalArgumentException e) {
             throw e;
+        } catch (KeyAlreadyExistsException e) {
+            Transaction transaction = transactionReference.get();
+            return Optional.of(MaybeWitnessedTransaction.builder()
+                    .startTimestamp(transaction.getTimestamp())
+                    .commitTimestamp(commitTimestampProvider
+                            .get()
+                            .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
+                    .actions(witnessedActionsReference.get())
+                    .build());
         } catch (Exception e) {
-            // TODO: Need to eventually handle PuE exceptions, as they could've succeeded in committing.
-            log.info("Failed to record transaction due to an exception", e);
+            Optional<Long> startTimestamp =
+                    Optional.ofNullable(transactionReference.get()).map(Transaction::getTimestamp);
+            log.info(
+                    "Failed to record transaction due to an exception for startTimestamp {}",
+                    SafeArg.of("startTimestamp", startTimestamp),
+                    e);
             return Optional.empty();
         }
     }uZ      }(j
G (cb6dfce8a01b80d7f3c5368970de60190ce81ddcjrG gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/ReadOnlyTransactionStore.javajtG modifiedjlG KjmG K jvG KjwG https://github.com/palantir/atlasdb/blob/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javajyG https://github.com/palantir/atlasdb/raw/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javaj{G https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.java?ref=7113edf204356f494a787ab259575b5ba9132076j}G XU  @@ -33,4 +33,9 @@ public ReadOnlyTransactionStore(ReadableTransactionStore delegate) {
     public Optional<Integer> get(String table, WorkloadCell cell) {
         return delegate.get(table, cell);
     }
+
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return delegate.isCommitted(startTimestamp);
+    }
 }u}(j
G (fc167305fd73dcf41122863f0ef41494ce81869ejrG tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWitnessedTransactionVisitor.javajtG addedjlG K.jmG K jvG K.jwG https://github.com/palantir/atlasdb/blob/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWitnessedTransactionVisitor.javajyG https://github.com/palantir/atlasdb/raw/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWitnessedTransactionVisitor.javaj{G https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWitnessedTransactionVisitor.java?ref=7113edf204356f494a787ab259575b5ba9132076j}G X  @@ -0,0 +1,46 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionVisitor;
+import java.util.Optional;
+
+public final class DefaultWitnessedTransactionVisitor
+        implements WitnessedTransactionVisitor<Optional<WitnessedTransaction>> {
+
+    private final ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    public DefaultWitnessedTransactionVisitor(ReadOnlyTransactionStore readOnlyTransactionStore) {
+        this.readOnlyTransactionStore = readOnlyTransactionStore;
+    }
+
+    @Override
+    public Optional<WitnessedTransaction> visit(FullyWitnessedTransaction witnessedTransaction) {
+        return Optional.of(witnessedTransaction);
+    }
+
+    @Override
+    public Optional<WitnessedTransaction> visit(MaybeWitnessedTransaction maybeWitnessedTransaction) {
+        return readOnlyTransactionStore.isCommitted(maybeWitnessedTransaction.startTimestamp())
+                ? Optional.of(maybeWitnessedTransaction)
+                : Optional.empty();
+    }
+}u}(j
G (4d11a21c71b74cb2250d8ab38d68ef535f1b78f7jrG aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javajtG modifiedjlG KjmG KjvG KjwG https://github.com/palantir/atlasdb/blob/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajyG https://github.com/palantir/atlasdb/raw/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj{G https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=7113edf204356f494a787ab259575b5ba9132076j}G X  @@ -26,7 +26,7 @@
 import java.util.List;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
-import java.util.stream.Collectors;
+import one.util.streamex.StreamEx;
 
 public final class DefaultWorkflow<T extends TransactionStore> implements Workflow {
     private final ConcurrentTransactionRunner<T> concurrentTransactionRunner;
@@ -45,7 +45,7 @@ private DefaultWorkflow(
         this.readOnlyTransactionStore = readOnlyTransactionStore;
     }
 
-    public static <T extends TransactionStore> Workflow create(
+    public static <T extends TransactionStore> DefaultWorkflow<T> create(
             T store,
             KeyedTransactionTask<T> transactionTask,
             WorkflowConfiguration configuration,
@@ -60,7 +60,7 @@ public static <T extends TransactionStore> Workflow create(
     @Override
     public WorkflowHistory run() {
         return ImmutableWorkflowHistory.builder()
-                .history(sortByEffectiveTimestamp(runTransactionTask()))
+                .history(sortAndFilterTransactions(runTransactionTask()))
                 .transactionStore(readOnlyTransactionStore)
                 .build();
     }
@@ -79,11 +79,16 @@ private List<WitnessedTransaction> runTransactionTask() {
         }
     }
 
+    /**
+     * Sorts transactions by their effective timestamp and filters out transactions that are not fully committed.
+     */
     @VisibleForTesting
-    static List<WitnessedTransaction> sortByEffectiveTimestamp(List<WitnessedTransaction> unorderedTransactions) {
-        return unorderedTransactions.stream()
+    List<WitnessedTransaction> sortAndFilterTransactions(List<WitnessedTransaction> unorderedTransactions) {
+        DefaultWitnessedTransactionVisitor visitor = new DefaultWitnessedTransactionVisitor(readOnlyTransactionStore);
+        return StreamEx.of(unorderedTransactions)
+                .mapPartial(transaction -> transaction.accept(visitor))
                 .sorted(Comparator.comparingLong(DefaultWorkflow::effectiveTimestamp))
-                .collect(Collectors.toList());
+                .toList();
     }
 
     private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {u}(j
G (3d12ec12a07e0b90193451a34a6dccfcfa6f8e76jrG {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporterTest.javajtG modifiedjlG KjmG KjvG KjwG https://github.com/palantir/atlasdb/blob/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javajyG https://github.com/palantir/atlasdb/raw/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj{G https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.java?ref=7113edf204356f494a787ab259575b5ba9132076j}G X  @@ -25,7 +25,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -60,7 +60,7 @@ public void runIncreasesMetricsIfViolationsFound() {
                         .build()));
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
                 .transactionStore(store)
-                .history(List.of(ImmutableWitnessedTransaction.builder()
+                .history(List.of(FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(u}(j
G (39cc7f77a28bd84fc271bbca23d8e9195abf6fd6jrG matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantTest.javajtG modifiedjlG KjmG KjvG K
jwG https://github.com/palantir/atlasdb/blob/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javajyG https://github.com/palantir/atlasdb/raw/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj{G https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.java?ref=7113edf204356f494a787ab259575b5ba9132076j}G X
  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -59,12 +59,12 @@ public void before() {
     public void cellsExpectedToBeDeletedAreFound() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)
@@ -86,12 +86,12 @@ public void cellsExpectedToBeDeletedAreFound() {
     public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)u}(j
G (398677d5ff242f5cee92de9c2737a0843621c59djrG watlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporterTest.javajtG modifiedjlG KjmG KjvG KjwG https://github.com/palantir/atlasdb/blob/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javajyG https://github.com/palantir/atlasdb/raw/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj{G https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.java?ref=7113edf204356f494a787ab259575b5ba9132076j}G X  @@ -19,7 +19,7 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import java.util.List;
 import org.junit.Test;
@@ -35,7 +35,7 @@ public void consumerDoesNotThrowWhenAcceptingViolations() {
         assertThatCode(() -> SerializableInvariantLogReporter.INSTANCE
                         .consumer()
                         .accept(List.of(InvalidWitnessedTransaction.of(
-                                ImmutableWitnessedTransaction.builder()
+                                FullyWitnessedTransaction.builder()
                                         .startTimestamp(1)
                                         .build(),
                                 List.of()))))u}(j
G (f4757d01ced2644e49e72e333f0a8c652c84e444jrG jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javajtG modifiedjlG KjmG K jvG KjwG https://github.com/palantir/atlasdb/blob/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajyG https://github.com/palantir/atlasdb/raw/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj{G https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=7113edf204356f494a787ab259575b5ba9132076j}G X  @@ -28,14 +28,17 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doAnswer;
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
 
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.KeyAlreadyExistsException;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
+import com.palantir.atlasdb.transaction.api.ConditionAwareTransactionTask;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
@@ -44,6 +47,7 @@
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -162,6 +166,29 @@ public void abortedTransactionsReturnEmpty() {
                 .isEmpty();
     }
 
+    @Test
+    public void keyAlreadyExistExceptionResultsInMaybeWitnessedTransaction() {
+        WriteTransactionAction writeTransactionAction =
+                WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+        TransactionManager onlyThrowsKeyAlreadyExistsExceptionManager = spy(manager);
+        doAnswer(answer -> {
+                    Supplier<CommitTimestampProvider> commitTimestampFetcher = answer.getArgument(0);
+                    ConditionAwareTransactionTask<Void, CommitTimestampProvider, Exception> task =
+                            answer.getArgument(1);
+                    manager.runTaskWithConditionWithRetry(commitTimestampFetcher, task);
+                    throw new KeyAlreadyExistsException("foobar");
+                })
+                .when(onlyThrowsKeyAlreadyExistsExceptionManager)
+                .runTaskWithConditionWithRetry(any(Supplier.class), any());
+        AtlasDbTransactionStore onlyKeyAlreadyExistsThrowingStore =
+                AtlasDbTransactionStore.create(onlyThrowsKeyAlreadyExistsExceptionManager, TABLES_TO_ATLAS_METADATA);
+        assertThat(onlyKeyAlreadyExistsThrowingStore.readWrite(List.of(writeTransactionAction)))
+                .hasValueSatisfying(witnessedTransaction -> {
+                    assertThat(witnessedTransaction).isInstanceOf(MaybeWitnessedTransaction.class);
+                    assertThat(witnessedTransaction.actions()).containsExactly(writeTransactionAction.witness());
+                });
+    }
+
     @Test
     public void getCommitTimestampIsEmptyWhenMatchesStartTimestamp() {
         CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();u}(j
G (d2773b68972e300a262ebb1f8c2a24f280280cfdjrG patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javajtG modifiedjlG KjmG KjvG KjwG https://github.com/palantir/atlasdb/blob/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javajyG https://github.com/palantir/atlasdb/raw/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj{G https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=7113edf204356f494a787ab259575b5ba9132076j}G X  @@ -27,7 +27,7 @@
 
 import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.store.ValidationStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import java.util.List;
@@ -40,12 +40,12 @@ public final class InMemoryValidationStoreTest {
     @Test
     public void writeActionsPersistValues() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
@@ -61,13 +61,13 @@ public void writeActionsPersistValues() {
     @Test
     public void deleteActionsPutsEmptyOptionalForCell() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
@@ -80,17 +80,17 @@ public void deleteActionsPutsEmptyOptionalForCell() {
     @Test
     public void writesDeletesAreProcessedInOrder() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(5)
                         .commitTimestamp(6)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_TWO))u}(j
G (2b067a134a06d3e605fca8d36dacf3678a76ffcejrG qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javajtG modifiedjlG KjmG KjvG KjwG https://github.com/palantir/atlasdb/blob/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajyG https://github.com/palantir/atlasdb/raw/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj{G https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=7113edf204356f494a787ab259575b5ba9132076j}G X  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -103,7 +103,7 @@ public WitnessedTransactionsBuilder endTransaction(Optional<Long> commitTimestam
                         startTimestamp < commitTimestamp.get(),
                         "Commit timestamp must be greater than the start timestamp.");
             }
-            witnessedTransactions.add(ImmutableWitnessedTransaction.builder()
+            witnessedTransactions.add(FullyWitnessedTransaction.builder()
                     .startTimestamp(startTimestamp)
                     .actions(actions)
                     .commitTimestamp(commitTimestamp)u}(j
G (c661ec5533851b62afb963d1f472d967b8a67e83jrG qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunnerTest.javajtG modifiedjlG KjmG KjvG KjwG https://github.com/palantir/atlasdb/blob/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javajyG https://github.com/palantir/atlasdb/raw/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj{G https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.java?ref=7113edf204356f494a787ab259575b5ba9132076j}G X  @@ -33,7 +33,7 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.List;
@@ -126,7 +126,7 @@ public void storePassedThroughToIndividualTasks() {
     }
 
     private static WitnessedTransaction createWitnessedTransactionWithStartTimestamp(int startTimestamp) {
-        return ImmutableWitnessedTransaction.builder()
+        return FullyWitnessedTransaction.builder()
                 .startTimestamp(startTimestamp)
                 .build();
     }u}(j
G (356214984f24a05d56cb477259bc8de050c7942fjrG eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javajtG modifiedjlG K"jmG KjvG K-jwG https://github.com/palantir/atlasdb/blob/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javajyG https://github.com/palantir/atlasdb/raw/7113edf204356f494a787ab259575b5ba9132076/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj{G https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=7113edf204356f494a787ab259575b5ba9132076j}G X  @@ -27,9 +27,11 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.common.concurrent.PTExecutors;
+import java.util.List;
 import java.util.concurrent.ScheduledExecutorService;
 import org.junit.Test;
 
@@ -41,13 +43,13 @@ public class DefaultWorkflowTest {
     private final ScheduledExecutorService scheduler = PTExecutors.newSingleThreadScheduledExecutor();
     private final ListeningExecutorService executionExecutor = MoreExecutors.listeningDecorator(scheduler);
 
+    private final DefaultWorkflow<TransactionStore> workflow =
+            DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
+
     @Test
     public void handlesExceptionsInUnderlyingTasks() {
         RuntimeException transactionException = new RuntimeException("boo");
         when(transactionTask.apply(eq(store), anyInt())).thenThrow(transactionException);
-
-        Workflow workflow =
-                DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
         assertThatThrownBy(workflow::run)
                 .hasMessage("Error when running workflow task")
                 .hasCause(transactionException);
@@ -58,9 +60,9 @@ public void returnsUnderlyingWitnessedTransactions() {
         WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
         WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight)))
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight)))
                 .containsExactly(twoToEight);
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(readOnlyAtFive)))
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(readOnlyAtFive)))
                 .containsExactly(readOnlyAtFive);
     }
 
@@ -70,7 +72,7 @@ public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
         WitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
         WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
                 .containsExactly(fourToSix, threeToSeven, twoToEight);
     }
 
@@ -80,7 +82,7 @@ public void sortsReadOnlyTransactionsByStartTimestamp() {
         WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
         WitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(
+        assertThat(workflow.sortAndFilterTransactions(
                         ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
                 .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
     }
@@ -95,12 +97,24 @@ public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
         WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
         WitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(
                         twoToEight, readOnlyAtNine, fourToSix, readOnlyAtFive, readOnlyAtThree, readOnlyAtSeven)))
                 .containsExactly(
                         readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
     }
 
+    @Test
+    public void filterRemovesUncommittedTransactions() {
+        WitnessedTransaction committedMaybeWitnessedTransaction =
+                createMaybeWitnessedTransactionWithoutActions(1, 3, true);
+        WitnessedTransaction notCommittedTransaction = createMaybeWitnessedTransactionWithoutActions(2, 8, false);
+        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        assertThat(workflow.sortAndFilterTransactions(List.of(
+                        committedMaybeWitnessedTransaction, notCommittedTransaction, readOnlyAtFive, fourToSix)))
+                .containsExactly(committedMaybeWitnessedTransaction, readOnlyAtFive, fourToSix);
+    }
+
     private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
         return new WorkflowConfiguration() {
             @Override
@@ -110,12 +124,21 @@ public int iterationCount() {
         };
     }
 
+    private MaybeWitnessedTransaction createMaybeWitnessedTransactionWithoutActions(
+            long start, long commit, boolean committed) {
+        when(store.isCommitted(eq(start))).thenReturn(committed);
+        return MaybeWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+
     private static WitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
-        return ImmutableWitnessedTransaction.builder().startTimestamp(start).build();
+        return FullyWitnessedTransaction.builder().startTimestamp(start).build();
     }
 
     private static WitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
-        return ImmutableWitnessedTransaction.builder()
+        return FullyWitnessedTransaction.builder()
                 .startTimestamp(start)
                 .commitTimestamp(commit)
                 .build();ueu(608d33074d19e9bb95a59dbc2886b2f22fd416d8}(sha(608d33074d19e9bb95a59dbc2886b2f22fd416d8node_idEC_kwDOAjP5fdoAKDYwOGQzMzA3NGQxOWU5YmI5NWE1OWRiYzI4ODZiMmYyMmZkNDE2ZDgcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-05T18:14:07Zu	committer}(j	H Jeremy KongjH jkong@palantir.comj
H 2023-07-05T18:14:07Zumessage,semantic merge conflicts are unfortunate andtree}(jH (596861fcc01ebf7ab0eab7889f4780234be4b9b8url`https://api.github.com/repos/palantir/atlasdb/git/trees/596861fcc01ebf7ab0eab7889f4780234be4b9b8ujH bhttps://api.github.com/repos/palantir/atlasdb/git/commits/608d33074d19e9bb95a59dbc2886b2f22fd416d8
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSlsu8ACgkQTLdFKain
zjx6Mwf+M/cO0BZwO2NLert8OHDTxQrumbXFv6mmh6SwJHpgYZHJmXaaqe7pUB1g
+lJ2LkwimWM5BatFdLaM73pn0TDTHcsKg4q+Ond1vX5I79cK2R9Rr4i1BkfR89If
YmkK1OINQin36ykCKIUjLngkXwFbh1yHUZlg6ZjM05OdVHs7titj6JL95DX/M0Wz
CAwMjAYmeDr/X3KpG4qs0PDfJhovnt33Xb4acizI5R8YBy1WR8iOuQszYUEG0q26
l0sMytqNXrButY6rDg80nn+ku2M2IWN6KBXMHgC/RKHI7EWRplNBTbhKrO+GFPDa
NlqDIPm20OlE+uw7YvJAtOkB5jtT4Q==
=9+11
-----END PGP SIGNATURE-----payloadX  tree 596861fcc01ebf7ab0eab7889f4780234be4b9b8
parent be7fdf1a9b6cc94c4772299faf32b72918403e65
author Jeremy Kong <jkong@palantir.com> 1688580847 +0100
committer Jeremy Kong <jkong@palantir.com> 1688580847 +0100

semantic merge conflicts are unfortunate and
uujH ^https://api.github.com/repos/palantir/atlasdb/commits/608d33074d19e9bb95a59dbc2886b2f22fd416d8html_urlShttps://github.com/palantir/atlasdb/commit/608d33074d19e9bb95a59dbc2886b2f22fd416d8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/608d33074d19e9bb95a59dbc2886b2f22fd416d8/commentsjH }(login
jeremyk-91idJZ jH MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jH 'https://api.github.com/users/jeremyk-91j'H https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujH }(j,H 
jeremyk-91j.H JZ jH MDQ6VXNlcjU5NTU1MTA=j0H 3https://avatars.githubusercontent.com/u/5955510?v=4j2H h5jH 'https://api.github.com/users/jeremyk-91j'H https://github.com/jeremyk-91j5H 1https://api.github.com/users/jeremyk-91/followersj7H >https://api.github.com/users/jeremyk-91/following{/other_user}j9H 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j;H >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j=H 5https://api.github.com/users/jeremyk-91/subscriptionsj?H ,https://api.github.com/users/jeremyk-91/orgsjAH -https://api.github.com/users/jeremyk-91/reposjCH 8https://api.github.com/users/jeremyk-91/events{/privacy}jEH 7https://api.github.com/users/jeremyk-91/received_eventsjGH UserjIH uparents]}(jH (be7fdf1a9b6cc94c4772299faf32b72918403e65jH ^https://api.github.com/repos/palantir/atlasdb/commits/be7fdf1a9b6cc94c4772299faf32b72918403e65j'H Shttps://github.com/palantir/atlasdb/commit/be7fdf1a9b6cc94c4772299faf32b72918403e65uastats}(totalK+	additionsK	deletionsKufiles](}(jH (0afb2f8d855ce6f274bf6d59e8fa8724ec38f7e8filenameJatlasdb-client/src/main/java/com/palantir/atlasdb/util/AtlasDbMetrics.javastatusmodifiedjcH KjdH KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/608d33074d19e9bb95a59dbc2886b2f22fd416d8/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FAtlasDbMetrics.javaraw_urlhttps://github.com/palantir/atlasdb/raw/608d33074d19e9bb95a59dbc2886b2f22fd416d8/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FAtlasDbMetrics.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FAtlasDbMetrics.java?ref=608d33074d19e9bb95a59dbc2886b2f22fd416d8patchX  @@ -118,7 +118,7 @@ private static <T, U extends T> T instrument(
                         LoggerFactory.getLogger("performance." + name),
                         LoggingLevel.TRACE,
                         LoggingInvocationEventHandler.LOG_DURATIONS_GREATER_THAN_1_MICROSECOND)
-                .build();
+                .build(); // Ok
     }
 
     private static InstrumentationFilter instrumentTimedOnly() {u}(jH (7c4c67541d67c4aac64d40c0c8b2421caf7ea3d5jiH Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javajkH modifiedjcH K	jdH K	jmH KjnH https://github.com/palantir/atlasdb/blob/608d33074d19e9bb95a59dbc2886b2f22fd416d8/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajpH https://github.com/palantir/atlasdb/raw/608d33074d19e9bb95a59dbc2886b2f22fd416d8/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajrH https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=608d33074d19e9bb95a59dbc2886b2f22fd416d8jtH X  @@ -223,7 +223,7 @@ Function<TimelockService, TimeLockClient> defaultTimelockClientFactory() {
      * TransactionManager will stay uninitialized and continue to throw for all other purposes until the callback
      * returns at which point it will become initialized. If asynchronous initialization is disabled, the callback will
      * be run just before the TM is returned.
-     *
+     * <p>
      * Note that if the callback blocks forever, the TransactionManager will never become initialized, and calling its
      * close() method will block forever as well. If the callback init() fails, and its cleanup() method throws,
      * the TransactionManager will not become initialized and it will be closed.
@@ -402,10 +402,10 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
 
         KeyValueService keyValueService = initializeCloseable(
                 () -> {
-                    KeyValueService kvs = atlasFactory.getKeyValueService();
-                    kvs = ProfilingKeyValueService.create(kvs);
+                    KeyValueService kvs = atlasFactory.getKeyValueService(); // CassandraKeyValueServiceImpl
+                    kvs = ProfilingKeyValueService.create(kvs); // Profiling, we think ok
                     kvs = new SafeTableClearerKeyValueService(
-                            lockAndTimestampServices.timelock()::getImmutableTimestamp, kvs);
+                            lockAndTimestampServices.timelock()::getImmutableTimestamp, kvs); // Autodelegate, ok
 
                     // Even if sweep queue writes are enabled, unless targeted sweep is enabled we generally still want
                     // to
@@ -420,13 +420,13 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                                 () -> true);
                     }
 
-                    kvs = TracingKeyValueService.create(kvs);
+                    kvs = TracingKeyValueService.create(kvs); // ok
                     kvs = AtlasDbMetrics.instrumentTimed(
                             metricsManager.getRegistry(),
                             KeyValueService.class,
                             kvs,
-                            MetricRegistry.name(KeyValueService.class));
-                    return ValidatingQueryRewritingKeyValueService.create(kvs);
+                            MetricRegistry.name(KeyValueService.class)); // ok?
+                    return ValidatingQueryRewritingKeyValueService.create(kvs); // ok
                 },
                 closeables);
 
@@ -670,10 +670,10 @@ private static Callback<TransactionManager> createClearsTable() {
     /**
      * If we decide to move a service to use thorough sweep; we need to make sure that background sweep won't cause any
      * trouble by deleting large number of empty values at once - causing Cassandra OOMs.
-     *
+     * <p>
      * lockImmutableTsOnReadOnlyTransaction flag is used to decide on disabling background sweep, as this flag is used
      * as an intermediate step for migrating to thorough sweep.
-     *
+     * <p>
      * Separately, users may disable the background sweep process entirely in config, which we respect.
      */
     private boolean runBackgroundSweepProcess() {u}(jH (5022c993a6c8701af08093ae47ccd0f26ec456eejiH Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraTimeLockTestSuite.javajkH modifiedjcH KjdH K
jmH KjnH https://github.com/palantir/atlasdb/blob/608d33074d19e9bb95a59dbc2886b2f22fd416d8/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javajpH https://github.com/palantir/atlasdb/raw/608d33074d19e9bb95a59dbc2886b2f22fd416d8/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javajrH https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.java?ref=608d33074d19e9bb95a59dbc2886b2f22fd416d8jtH X  @@ -17,22 +17,19 @@
 
 import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.containers.CassandraEnvironment;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import com.palantir.atlasdb.ete.coordination.MultipleSchemaVersionsCoordinationEteTest;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;
 import org.junit.runners.Suite;
 
 @RunWith(Suite.class)
-@Suite.SuiteClasses({
-    TodoEteTest.class,
-    TargetedSweepEteTest.class,
-    CassandraTimestampsEteTest.class,
-    TimestampManagementEteTest.class,
-    CoordinationEteTest.class,
-    MultipleSchemaVersionsCoordinationEteTest.class,
-    LockWithTimelockEteTest.class
+@Suite.SuiteClasses({TodoEteTest.class
+    //    TargetedSweepEteTest.class,
+    //    CassandraTimestampsEteTest.class,
+    //    TimestampManagementEteTest.class,
+    //    CoordinationEteTest.class,
+    //    MultipleSchemaVersionsCoordinationEteTest.class,
+    //    LockWithTimelockEteTest.class
 })
 public class CassandraTimeLockTestSuite extends EteSetup {
     private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");u}(jH (124e2c01deaa1003ede706ad9dde1194b5eabbbbjiH latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javajkH modifiedjcH KjdH KjmH KjnH https://github.com/palantir/atlasdb/blob/608d33074d19e9bb95a59dbc2886b2f22fd416d8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javajpH https://github.com/palantir/atlasdb/raw/608d33074d19e9bb95a59dbc2886b2f22fd416d8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javajrH https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=608d33074d19e9bb95a59dbc2886b2f22fd416d8jtH XY  @@ -198,8 +198,7 @@ public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
         WitnessedSingleCellReadTransactionAction readWitness = WitnessedSingleCellReadTransactionAction.of(
                 TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
         WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
-        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {
-        }))
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Expected to find a read of the summary row")
                 .hasExactlyArgs(SafeArg.of("actions", ImmutableList.of(readWitness)));
@@ -213,8 +212,7 @@ public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCor
                 WitnessedSingleCellReadTransactionAction.of(
                         TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
         WorkflowHistory history = getWorkflowHistory(actions);
-        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {
-        }))
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Expected to find a read of a corresponding normal row")
                 .hasExactlyArgs(SafeArg.of("actions", actions));ueu(0d41772d1bd63d1feac146ac307c87f0b439d2c2}(sha(0d41772d1bd63d1feac146ac307c87f0b439d2c2node_idEC_kwDOAjP5fdoAKDBkNDE3NzJkMWJkNjNkMWZlYWMxNDZhYzMwN2M4N2YwYjQzOWQyYzIcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-23T23:18:32Zu	committer}(jH 
Ahmed AlouanejH aalouane@palantir.comjH 2023-04-23T23:18:32Zumessagetestingtree}(jH (b4f8c58575e52537252feb6b06e76419164765bfurl`https://api.github.com/repos/palantir/atlasdb/git/trees/b4f8c58575e52537252feb6b06e76419164765bfujH bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0d41772d1bd63d1feac146ac307c87f0b439d2c2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRFvMgACgkQPlMHVIT1
yho3BggAthcK3ZXDzTo6z1CNogUu0VFy30zyPMm+sCUuP40ocnf+GMI1LQWuBM70
TD+OaZeU2AOaiVRUsDVT3U6/sbiq8V+GmKAM+/hZo97S28WF5qobdy+xPoIsTs9+
wqaImvhh47YH1SvJGvWCaFWXE0D+nW4SxSS3fFSoW+MDNzLPsG4c5w9ICEXJNXP1
V5nG3ogVW7aX9n6wckhCcHpb1xGIJNvqzWdZKZnm2OxCcrmIvLGBfKoB21/EF2sS
Gl0MTbG4bmnOrALWfYcqjDJxrRMbNDW61NkE+oHv404jfpdLJcAoYlh0AVxntXsp
MLeYg2Vm76rH7GTseptkxXsqD/17Wg==
=NRRl
-----END PGP SIGNATURE-----payloadtree b4f8c58575e52537252feb6b06e76419164765bf
parent 0e042c5db32fd526cc9e1506788bee2cda4f3a43
author Ahmed Alouane <aalouane@palantir.com> 1682291912 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682291912 +0100

testing
uujH ^https://api.github.com/repos/palantir/atlasdb/commits/0d41772d1bd63d1feac146ac307c87f0b439d2c2html_urlShttps://github.com/palantir/atlasdb/commit/0d41772d1bd63d1feac146ac307c87f0b439d2c2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0d41772d1bd63d1feac146ac307c87f0b439d2c2/commentsjH }(loginergo14idJjH MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jH #https://api.github.com/users/ergo14jH https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujH }(jH ergo14jH JjH MDQ6VXNlcjMwOTAzNzM2jH 4https://avatars.githubusercontent.com/u/30903736?v=4jH h5jH #https://api.github.com/users/ergo14jH https://github.com/ergo14jH -https://api.github.com/users/ergo14/followersjH :https://api.github.com/users/ergo14/following{/other_user}jH 3https://api.github.com/users/ergo14/gists{/gist_id}jH :https://api.github.com/users/ergo14/starred{/owner}{/repo}jH 1https://api.github.com/users/ergo14/subscriptionsjH (https://api.github.com/users/ergo14/orgsjH )https://api.github.com/users/ergo14/reposjH 4https://api.github.com/users/ergo14/events{/privacy}jH 3https://api.github.com/users/ergo14/received_eventsjH UserjH uparents]}(jH (0e042c5db32fd526cc9e1506788bee2cda4f3a43jH ^https://api.github.com/repos/palantir/atlasdb/commits/0e042c5db32fd526cc9e1506788bee2cda4f3a43jH Shttps://github.com/palantir/atlasdb/commit/0e042c5db32fd526cc9e1506788bee2cda4f3a43uastats}(totalK	additionsK	deletionsKufiles](}(jH (8226a78edce366711472eec8e454135715b0490cfilenameVatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/TimeLockMigrationEteTest.javastatusmodifiedjH KjH K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/0d41772d1bd63d1feac146ac307c87f0b439d2c2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0d41772d1bd63d1feac146ac307c87f0b439d2c2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.java?ref=0d41772d1bd63d1feac146ac307c87f0b439d2c2patchX  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.ete;
 
+import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.catchThrowable;
 
 import com.google.common.util.concurrent.Uninterruptibles;
@@ -167,6 +168,11 @@ public void automaticallyMigratesTimestampsAndFailsOnRestart() throws Exception
         CLIENT_ORCHESTRATION_RULE.stopAtlasClient();
     }
 
+    @Test
+    public void fakeTest() {
+        assertThat(1 + 10).isEqualTo(12);
+    }
+
     private void upgradeAtlasClientToTimelock() {
         CLIENT_ORCHESTRATION_RULE.updateClientConfig(TEST_CONTEXT.eteConfigWithTimeLock());
         CLIENT_ORCHESTRATION_RULE.restartAtlasClient();u}(jH (daa3ec06791920880b9fdc44d6a5958475931086jH %scripts/circle-ci/run-circle-tests.shjH modifiedjH KjH KjH KjH {https://github.com/palantir/atlasdb/blob/0d41772d1bd63d1feac146ac307c87f0b439d2c2/scripts%2Fcircle-ci%2Frun-circle-tests.shjH zhttps://github.com/palantir/atlasdb/raw/0d41772d1bd63d1feac146ac307c87f0b439d2c2/scripts%2Fcircle-ci%2Frun-circle-tests.shjI https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=0d41772d1bd63d1feac146ac307c87f0b439d2c2jI @@ -2,7 +2,7 @@
 
 set -x
 
-BASE_GRADLE_ARGS="--profile --continue"
+BASE_GRADLE_ARGS="--profile"
 
 function checkDocsBuild {
      pyenv install 3.5.4ueu(e232a5adef05144d885139c9f3801a5f831c4247}(sha(e232a5adef05144d885139c9f3801a5f831c4247node_idEC_kwDOAjP5fdoAKGUyMzJhNWFkZWYwNTE0NGQ4ODUxMzljOWYzODAxYTVmODMxYzQyNDccommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-03-31T11:16:44Zu	committer}(jI svc-excavator-botjI svc-excavator-bot@palantir.comjI 2023-03-31T11:16:44Zumessage5Excavator:  Update gradle-jdks infrastructure pluginstree}(jI (2c8267cd11697d62b9ca2e66c69e0bbdf131e928url`https://api.github.com/repos/palantir/atlasdb/git/trees/2c8267cd11697d62b9ca2e66c69e0bbdf131e928uj'I bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e232a5adef05144d885139c9f3801a5f831c4247
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQmwRwJEMmvEkpISILgAABtmwEA+J47RYcyYYv9kYpiy/k8JKbe
7VpyYch3UHTnFYfDPJkBAPzdsYp24sascckzTKXfCwZBOKMw3UQOJPS3t9MrzhI9
=V6KU
-----END PGP SIGNATURE-----
payloadX-  tree 2c8267cd11697d62b9ca2e66c69e0bbdf131e928
parent 7cc5501bd242badcf433815b00b31d3574efa99c
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1680261404 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1680261404 +0000

Excavator:  Update gradle-jdks infrastructure pluginsuuj'I ^https://api.github.com/repos/palantir/atlasdb/commits/e232a5adef05144d885139c9f3801a5f831c4247html_urlShttps://github.com/palantir/atlasdb/commit/e232a5adef05144d885139c9f3801a5f831c4247comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e232a5adef05144d885139c9f3801a5f831c4247/commentsjI }(loginsvc-excavator-botidJjI MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j'I .https://api.github.com/users/svc-excavator-botj5I $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminujI }(j:I svc-excavator-botj<I JjI MDQ6VXNlcjMzMjY2MzY4j>I 4https://avatars.githubusercontent.com/u/33266368?v=4j@I h5j'I .https://api.github.com/users/svc-excavator-botj5I $https://github.com/svc-excavator-botjCI 8https://api.github.com/users/svc-excavator-bot/followersjEI Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}jGI >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}jII Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}jKI <https://api.github.com/users/svc-excavator-bot/subscriptionsjMI 3https://api.github.com/users/svc-excavator-bot/orgsjOI 4https://api.github.com/users/svc-excavator-bot/reposjQI ?https://api.github.com/users/svc-excavator-bot/events{/privacy}jSI >https://api.github.com/users/svc-excavator-bot/received_eventsjUI UserjWI uparents]}(jI (7cc5501bd242badcf433815b00b31d3574efa99cj'I ^https://api.github.com/repos/palantir/atlasdb/commits/7cc5501bd242badcf433815b00b31d3574efa99cj5I Shttps://github.com/palantir/atlasdb/commit/7cc5501bd242badcf433815b00b31d3574efa99cuastats}(totalK	additionsK	deletionsKufiles]}(jI (2ba6283c07674f48446c8ddfba713981b3636d9efilenamebuild.gradlestatusmodifiedjqI KjrI KchangesKblob_url^https://github.com/palantir/atlasdb/blob/e232a5adef05144d885139c9f3801a5f831c4247/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/e232a5adef05144d885139c9f3801a5f831c4247/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=e232a5adef05144d885139c9f3801a5f831c4247patchXz  @@ -15,7 +15,7 @@ buildscript {
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:2.0.0'
-        classpath 'com.palantir.gradle.jdks:gradle-jdks:0.31.0'
+        classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'uau(eeb021e4bfdc28d8c4f2876081cbe944cbebf19e}(sha(eeb021e4bfdc28d8c4f2876081cbe944cbebf19enode_idEC_kwDOAjP5fdoAKGVlYjAyMWU0YmZkYzI4ZDhjNGYyODc2MDgxY2JlOTQ0Y2JlYmYxOWUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-31T21:03:22Zu	committer}(jI Jeremy KongjI jkong@palantir.comjI 2023-05-31T21:03:22Zumessage+Refactor to mention explicitly single cellstree}(jI (e3ce7d49bf0c064dffc55be9ef9d4f5b087f04d1url`https://api.github.com/repos/palantir/atlasdb/git/trees/e3ce7d49bf0c064dffc55be9ef9d4f5b087f04d1ujI bhttps://api.github.com/repos/palantir/atlasdb/git/commits/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR3thoACgkQTLdFKain
zjyiBQf/fzW5nh4Iyn4iYW79XSjMHjfyjKyfP55jxjYwbJlYG52rh1Q0b3b9b8gB
aYy6ekbTdzl/vnDgaZZZ4AoCIs60iAi+nXRROAl3NsgFIFPaaBftY9ONzYOxf4LL
SIQZkMFSDcBBrk/aQLaRFWf8sGSPLIRcyq63h1xFJEx6xKCZPSkdXCtzW3jDhBKa
LMSLI4WFLsKcBSULtL/dRXbaV1nSGQJcaHoDdSW5bAkrd6HLf3kKs/HGb5Skz5Z8
+I6gW00o6RNPcu14QaonRqIaQAqRMxez6kml0YpUSBZluoC05iq5M79vWcDt9D0y
OD4q5B7sgmoRW1FKnA5MOTIIeeD7ew==
=qKv7
-----END PGP SIGNATURE-----payloadX   tree e3ce7d49bf0c064dffc55be9ef9d4f5b087f04d1
parent 5b1d8f7aca163d24d017e12af916e7c4af87b7a6
author Jeremy Kong <jkong@palantir.com> 1685567002 +0100
committer Jeremy Kong <jkong@palantir.com> 1685567002 +0100

Refactor to mention explicitly single cells
uujI ^https://api.github.com/repos/palantir/atlasdb/commits/eeb021e4bfdc28d8c4f2876081cbe944cbebf19ehtml_urlShttps://github.com/palantir/atlasdb/commit/eeb021e4bfdc28d8c4f2876081cbe944cbebf19ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/commentsjI }(login
jeremyk-91idJZ jI MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jI 'https://api.github.com/users/jeremyk-91jI https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujI }(jI 
jeremyk-91jI JZ jI MDQ6VXNlcjU5NTU1MTA=jI 3https://avatars.githubusercontent.com/u/5955510?v=4jI h5jI 'https://api.github.com/users/jeremyk-91jI https://github.com/jeremyk-91jI 1https://api.github.com/users/jeremyk-91/followersjI >https://api.github.com/users/jeremyk-91/following{/other_user}jI 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jI >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jI 5https://api.github.com/users/jeremyk-91/subscriptionsjI ,https://api.github.com/users/jeremyk-91/orgsjI -https://api.github.com/users/jeremyk-91/reposjI 8https://api.github.com/users/jeremyk-91/events{/privacy}jI 7https://api.github.com/users/jeremyk-91/received_eventsjI UserjI uparents]}(jI (5b1d8f7aca163d24d017e12af916e7c4af87b7a6jI ^https://api.github.com/repos/palantir/atlasdb/commits/5b1d8f7aca163d24d017e12af916e7c4af87b7a6jI Shttps://github.com/palantir/atlasdb/commit/5b1d8f7aca163d24d017e12af916e7c4af87b7a6uastats}(totalK	additionsK	deletionsKWufiles](}(jI (bd06cc1312715a991167d81bd1ceb940ff719fc1filenamepatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/DeleteTransactionAction.javastatusmodifiedjI KjI KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.java?ref=eeb021e4bfdc28d8c4f2876081cbe944cbebf19epatchX{  @@ -22,7 +22,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface DeleteTransactionAction extends TransactionAction {
+public interface DeleteTransactionAction extends SingleCellTransactionAction {
 
     default WitnessedDeleteTransactionAction witness() {
         return ImmutableWitnessedDeleteTransactionAction.of(table(), cell());u}(jI (e9ae2e08974eda0443281b98d5bc9d2fb9243eccjI natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ReadTransactionAction.javajI modifiedjI KjI KjI KjI https://github.com/palantir/atlasdb/blob/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javajI https://github.com/palantir/atlasdb/raw/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.java?ref=eeb021e4bfdc28d8c4f2876081cbe944cbebf19ejI X  @@ -23,7 +23,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface ReadTransactionAction extends TransactionAction {
+public interface ReadTransactionAction extends SingleCellTransactionAction {
 
     default WitnessedReadTransactionAction witness(Optional<Integer> value) {
         return ImmutableWitnessedReadTransactionAction.of(table(), cell(), value);u}(jI (47b25ab538c861987aa480e47c2bb08032e32fc0jI tatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/SingleCellTransactionAction.java>      jI addedjI KjI K jI KjI https://github.com/palantir/atlasdb/blob/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.javajI https://github.com/palantir/atlasdb/raw/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.java?ref=eeb021e4bfdc28d8c4f2876081cbe944cbebf19ejI X>  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface SingleCellTransactionAction extends TransactionAction {
+    /** Table to apply transaction to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) to apply the action to. */
+    @Value.Parameter
+    WorkloadCell cell();
+}u}(jI (e6ee57fa3732a9a1984c98b088bfc9a577a7fbe8jI jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionAction.javajI modifiedjI K jI KjI KjI https://github.com/palantir/atlasdb/blob/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javajI https://github.com/palantir/atlasdb/raw/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.java?ref=eeb021e4bfdc28d8c4f2876081cbe944cbebf19ejI X  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.WorkloadCell;
-import org.immutables.value.Value;
-
 public interface TransactionAction {
-
-    /** Table to apply transaction to. */
-    @Value.Parameter
-    String table();
-
-    /** Cell (Key, Column) to apply the action to. */
-    @Value.Parameter
-    WorkloadCell cell();
-
     <T> T accept(TransactionActionVisitor<T> visitor);
 }u}(jI (7b9112fa4356eade1fb793e23ca54d962811ccfcjI oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/WriteTransactionAction.javajI modifiedjI KjI KjI KjI https://github.com/palantir/atlasdb/blob/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javajI https://github.com/palantir/atlasdb/raw/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.java?ref=eeb021e4bfdc28d8c4f2876081cbe944cbebf19ejI X  @@ -22,7 +22,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WriteTransactionAction extends TransactionAction {
+public interface WriteTransactionAction extends SingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(jI (2f66134a6e594e63bdba1ebec482177c03bd9220jI atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedSingleCellTransactionAction.javajI addedjI K"jI K jI K"jI https://github.com/palantir/atlasdb/blob/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.javajI https://github.com/palantir/atlasdb/raw/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.javajI X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.java?ref=eeb021e4bfdc28d8c4f2876081cbe944cbebf19ejI XP  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.invariant.MismatchedValue;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedSingleCellTransactionAction extends InvalidWitnessedTransactionAction {
+    @Value.Parameter
+    WitnessedSingleCellTransactionAction action();
+
+    @Value.Parameter
+    MismatchedValue mismatchedValue();
+
+    static InvalidWitnessedSingleCellTransactionAction of(
+            WitnessedSingleCellTransactionAction action, MismatchedValue mismatchedValue) {
+        return ImmutableInvalidWitnessedSingleCellTransactionAction.of(action, mismatchedValue);
+    }
+}u}(jI (f03a1a46125b0275501eb1e90fd2638b4b5832cajI ~atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransaction.javajI modifiedjI KjI KjI KjI https://github.com/palantir/atlasdb/blob/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.javajI https://github.com/palantir/atlasdb/raw/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.java?ref=eeb021e4bfdc28d8c4f2876081cbe944cbebf19ejI X  @@ -28,7 +28,8 @@ public interface InvalidWitnessedTransaction {
     List<InvalidWitnessedTransactionAction> invalidActions();
 
     static InvalidWitnessedTransaction of(
-            WitnessedTransaction witnessedTransaction, List<InvalidWitnessedTransactionAction> invalidActions) {
+            WitnessedTransaction witnessedTransaction,
+            List<InvalidWitnessedSingleCellTransactionAction> invalidActions) {
         return ImmutableInvalidWitnessedTransaction.of(witnessedTransaction, invalidActions);
     }
 }u}(jI (accf0fe147703dd4c2fb6b592893771eb6219719jI atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javajI modifiedjI KjI KjI KjI https://github.com/palantir/atlasdb/blob/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javajI https://github.com/palantir/atlasdb/raw/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=eeb021e4bfdc28d8c4f2876081cbe944cbebf19ejI X  @@ -16,18 +16,4 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.invariant.MismatchedValue;
-import org.immutables.value.Value;
-
-@Value.Immutable
-public interface InvalidWitnessedTransactionAction {
-    @Value.Parameter
-    WitnessedTransactionAction action();
-
-    @Value.Parameter
-    MismatchedValue mismatchedValue();
-
-    static InvalidWitnessedTransactionAction of(WitnessedTransactionAction action, MismatchedValue mismatchedValue) {
-        return ImmutableInvalidWitnessedTransactionAction.of(action, mismatchedValue);
-    }
-}
+public interface InvalidWitnessedTransactionAction {}u}(jI (664e279d4223b1f5897c5f45615e3cdbdaa71ac3jI atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedDeleteTransactionAction.javajI modifiedjI KjI KjI KjI https://github.com/palantir/atlasdb/blob/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javajI https://github.com/palantir/atlasdb/raw/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.java?ref=eeb021e4bfdc28d8c4f2876081cbe944cbebf19ejI Xo  @@ -20,7 +20,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedDeleteTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedDeleteTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {u}(jI (beff6229abcbdbf535af57c09c43ad7c92566201jI atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedReadTransactionAction.javajI modifiedjI KjI KjI KjI https://github.com/palantir/atlasdb/blob/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javajI https://github.com/palantir/atlasdb/raw/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.java?ref=eeb021e4bfdc28d8c4f2876081cbe944cbebf19ejI X7  @@ -21,7 +21,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedReadTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedReadTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(jI (eed34c03b4bd04c09374ca41608cb74986cb40c0jI atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedSingleCellTransactionAction.javajI addedjI KjI K jI KjI https://github.com/palantir/atlasdb/blob/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.javajI https://github.com/palantir/atlasdb/raw/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.java?ref=eeb021e4bfdc28d8c4f2876081cbe944cbebf19ejI XW  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface WitnessedSingleCellTransactionAction extends WitnessedTransactionAction {
+    /** Table action was applied to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) the action applied to. */
+    @Value.Parameter
+    WorkloadCell cell();
+}u}(jI (3e350184f320b0cd81f7019819c5d83c6a9d8602jI }atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionAction.javajI modifiedjI K jI KjI KjI https://github.com/palantir/atlasdb/blob/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javajI https://github.com/palantir/atlasdb/raw/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.java?ref=eeb021e4bfdc28d8c4f2876081cbe944cbebf19ejI X  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.store.WorkloadCell;
-import org.immutables.value.Value;
-
 public interface WitnessedTransactionAction {
-
-    /** Table action was applied to. */
-    @Value.Parameter
-    String table();
-
-    /** Cell (Key, Column) the action applied to. */
-    @Value.Parameter
-    WorkloadCell cell();
-
     <T> T accept(WitnessedTransactionActionVisitor<T> visitor);
 }u}(jI (43687fd4d7dbdc3a1ac0ec26f2f38d0366613022jI atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedWriteTransactionAction.javajI modifiedjI KjI KjI KjI https://github.com/palantir/atlasdb/blob/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javajI https://github.com/palantir/atlasdb/raw/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.java?ref=eeb021e4bfdc28d8c4f2876081cbe944cbebf19ejI X(  @@ -20,7 +20,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WitnessedWriteTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedWriteTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(jI (121fef6e76e35e49a03af318af7e11ca8febcbbcjI hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javajI modifiedjI KjI KjI KjI https://github.com/palantir/atlasdb/blob/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajI https://github.com/palantir/atlasdb/raw/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=eeb021e4bfdc28d8c4f2876081cbe944cbebf19ejI X
  @@ -18,8 +18,8 @@
 
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
@@ -39,7 +39,7 @@ public void accept(
         SerializableInvariantVisitor visitor = new SerializableInvariantVisitor();
         List<InvalidWitnessedTransaction> transactions = StreamEx.of(workflowHistory.history())
                 .mapPartial(witnessedTransaction -> {
-                    List<InvalidWitnessedTransactionAction> invalidTransactions = StreamEx.of(
+                    List<InvalidWitnessedSingleCellTransactionAction> invalidTransactions = StreamEx.of(
                                     witnessedTransaction.actions())
                             .mapPartial(action -> action.accept(visitor))
                             .toList();
@@ -55,35 +55,36 @@ public void accept(
     }
 
     private static final class SerializableInvariantVisitor
-            implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
+            implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedSingleCellTransactionAction>> {
 
         private final InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
 
         @Override
-        public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+        public Optional<InvalidWitnessedSingleCellTransactionAction> visit(
+                WitnessedReadTransactionAction readTransactionAction) {
             Optional<Integer> expectedValue = inMemoryTransactionReplayer
                     .getValues()
                     .get(TableAndWorkloadCell.of(readTransactionAction.table(), readTransactionAction.cell()))
                     .toJavaOptional()
                     .orElseGet(Optional::empty);
 
             if (!expectedValue.equals(readTransactionAction.value())) {
-                return Optional.of(InvalidWitnessedTransactionAction.of(
+                return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
                         readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expectedValue)));
             }
 
             return Optional.empty();
         }
 
         @Override
-        public Optional<InvalidWitnessedTransactionAction> visit(
+        public Optional<InvalidWitnessedSingleCellTransactionAction> visit(
                 WitnessedWriteTransactionAction writeTransactionAction) {
             inMemoryTransactionReplayer.visit(writeTransactionAction);
             return Optional.empty();
         }
 
         @Override
-        public Optional<InvalidWitnessedTransactionAction> visit(
+        public Optional<InvalidWitnessedSingleCellTransactionAction> visit(
                 WitnessedDeleteTransactionAction deleteTransactionAction) {
             inMemoryTransactionReplayer.visit(deleteTransactionAction);
             return Optional.empty();u}(jI (9cda78d0d6a702d22b2d5114b0d40bb08e5e7d1bjI datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariant.javajI modifiedjI KjI KjI KjI https://github.com/palantir/atlasdb/blob/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javajI https://github.com/palantir/atlasdb/raw/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.java?ref=eeb021e4bfdc28d8c4f2876081cbe944cbebf19ejI XR  @@ -19,8 +19,8 @@
 import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -62,13 +62,13 @@ public void accept(
                     latestTableView,
                     tableView.getView(witnessedTransaction.startTimestamp()));
 
-            ImmutableList.Builder<InvalidWitnessedTransactionAction> invalidTransactionActionsBuilder =
+            ImmutableList.Builder<InvalidWitnessedSingleCellTransactionAction> invalidTransactionActionsBuilder =
                     new ImmutableList.Builder<>();
             for (WitnessedTransactionAction action : witnessedTransaction.actions()) {
                 action.accept(visitor).ifPresent(invalidTransactionActionsBuilder::add);
             }
 
-            List<InvalidWitnessedTransactionAction> invalidTransactionActions =
+            List<InvalidWitnessedSingleCellTransactionAction> invalidTransactionActions =
                     invalidTransactionActionsBuilder.build();
 
             witnessedTransactionu}(jI (7414be19e440e105c6c854d612db22c4748fed7djI katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javajI modifiedjI KjI KjI KjI https://github.com/palantir/atlasdb/blob/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajI https://github.com/palantir/atlasdb/raw/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=eeb021e4bfdc28d8c4f2876081cbe944cbebf19ejI X*  @@ -19,7 +19,7 @@
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
@@ -29,14 +29,14 @@
 
 /**
  * Replays transactions and validates for conflicts on the latest and read view.
- *
+ * <p>
  * The latest view will be a view of the database at the commit timestamp, while the read view will be the view of
  * the database at the start timestamp.
- *
+ * <p>
  * Objects created from this class should only be used within a scope of a single transaction.
  */
 final class SnapshotInvariantVisitor
-        implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
+        implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedSingleCellTransactionAction>> {
 
     private final Long startTimestamp;
     private final StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestView;
@@ -52,22 +52,25 @@ final class SnapshotInvariantVisitor
     }
 
     @Override
-    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+    public Optional<InvalidWitnessedSingleCellTransactionAction> visit(
+            WitnessedReadTransactionAction readTransactionAction) {
         Optional<Integer> expected = fetchValueFromView(
                         readTransactionAction.table(), readTransactionAction.cell(), readView)
                 .value();
         if (!expected.equals(readTransactionAction.value())) {
-            return Optional.of(InvalidWitnessedTransactionAction.of(
+            return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
                     readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expected)));
         }
         return Optional.empty();
     }
 
     @Override
-    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
-        Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
+    public Optional<InvalidWitnessedSingleCellTransactionAction> visit(
+            WitnessedWriteTransactionAction writeTransactionAction) {
+        Optional<InvalidWitnessedSingleCellTransactionAction> invalidAction = checkForWriteWriteConflicts(
                         writeTransactionAction.table(), writeTransactionAction.cell())
-                .map(mismatchedValue -> InvalidWitnessedTransactionAction.of(writeTransactionAction, mismatchedValue));
+                .map(mismatchedValue ->
+                        InvalidWitnessedSingleCellTransactionAction.of(writeTransactionAction, mismatchedValue));
 
         applyWrites(
                 writeTransactionAction.table(),
@@ -77,10 +80,12 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransacti
     }
 
     @Override
-    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
-        Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
+    public Optional<InvalidWitnessedSingleCellTransactionAction> visit(
+            WitnessedDeleteTransactionAction deleteTransactionAction) {
+        Optional<InvalidWitnessedSingleCellTransactionAction> invalidAction = checkForWriteWriteConflicts(
                         deleteTransactionAction.table(), deleteTransactionAction.cell())
-                .map(mismatchedValue -> InvalidWitnessedTransactionAction.of(deleteTransactionAction, mismatchedValue));
+                .map(mismatchedValue ->
+                        InvalidWitnessedSingleCellTransactionAction.of(deleteTransactionAction, mismatchedValue));
 
         applyWrites(deleteTransactionAction.table(), deleteTransactionAction.cell(), Optional.empty());
         return invalidAction;u}(jI (0db0afc0570e8993b0ec99aac00c3f57657d6828jI latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javajI modifiedjI K
jI KjI KjI https://github.com/palantir/atlasdb/blob/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajI https://github.com/palantir/atlasdb/raw/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=eeb021e4bfdc28d8c4f2876081cbe944cbebf19ejI X  @@ -22,6 +22,7 @@
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
@@ -116,13 +117,18 @@ public void catchesWriteSkew() {
         InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
                 Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
 
-        assertThat(invalidWitnessedTransactionAction.action())
-                .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
-                    assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
-                    assertThat(action.value()).contains(15);
-                });
-        assertThat(invalidWitnessedTransactionAction.mismatchedValue())
-                .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(
+                        InvalidWitnessedSingleCellTransactionAction.class,
+                        invalidSingleCellWitnessedTransactionAction -> {
+                            assertThat(invalidSingleCellWitnessedTransactionAction.action())
+                                    .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
+                                        assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
+                                        assertThat(action.value()).contains(15);
+                                    });
+                            assertThat(invalidSingleCellWitnessedTransactionAction.mismatchedValue())
+                                    .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+                        });
     }
 
     @Testu}(jI (fb5813b8d5288d435a36c31b8acf757dd6e9083bjI hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javajI modifiedjI KjI KjI KjI https://github.com/palantir/atlasdb/blob/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javajI https://github.com/palantir/atlasdb/raw/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=eeb021e4bfdc28d8c4f2876081cbe944cbebf19ejI X  @@ -22,6 +22,7 @@
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
 import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -62,10 +63,14 @@ public void catchesWriteWriteConflict() {
         assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
 
         InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
-        assertThat(invalidAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
-        assertThat(invalidAction.mismatchedValue())
-                .isEqualTo(MismatchedValue.of(
-                        ValueAndMaybeTimestamp.of(WorkloadTestHelpers.VALUE_ONE, 1L), ValueAndMaybeTimestamp.empty()));
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(InvalidWitnessedSingleCellTransactionAction.class, invalidSingleCellAction -> {
+                    assertThat(invalidSingleCellAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+                    assertThat(invalidSingleCellAction.mismatchedValue())
+                            .isEqualTo(MismatchedValue.of(
+                                    ValueAndMaybeTimestamp.of(WorkloadTestHelpers.VALUE_ONE, 1L),
+                                    ValueAndMaybeTimestamp.empty()));
+                });
     }
 
     @Test
@@ -90,10 +95,13 @@ public void catchesAbaWriteWriteConflictForDeletes() {
         assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
 
         InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
-        assertThat(invalidAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
-        assertThat(invalidAction.mismatchedValue())
-                .isEqualTo(MismatchedValue.of(
-                        ValueAndMaybeTimestamp.of(Optional.empty(), 1L), ValueAndMaybeTimestamp.empty()));
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(InvalidWitnessedSingleCellTransactionAction.class, invalidSingleCellAction -> {
+                    assertThat(invalidSingleCellAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+                    assertThat(invalidSingleCellAction.mismatchedValue())
+                            .isEqualTo(MismatchedValue.of(
+                                    ValueAndMaybeTimestamp.of(Optional.empty(), 1L), ValueAndMaybeTimestamp.empty()));
+                });
     }
 
     @Testu}(jI (241e8471f3f2d7c765f6ff9e98e1c055938e3a50jI matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowsTest.javajI modifiedjI KjI KjI KjI https://github.com/palantir/atlasdb/blob/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javajI https://github.com/palantir/atlasdb/raw/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.java?ref=eeb021e4bfdc28d8c4f2876081cbe944cbebf19ejI X  @@ -29,6 +29,7 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -77,9 +78,10 @@ public void transactionsDoNotConflictExcessively() {
     @Test
     public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
         WorkflowHistory workflowHistory = workflow.run();
-        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+        List<WitnessedSingleCellTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
                 .map(WitnessedTransaction::actions)
                 .flatMap(Collection::stream)
+                .map(WitnessedSingleCellTransactionAction.class::cast)
                 .collect(Collectors.toList());
         assertThat(witnessedTransactionActions)
                 .allMatch(action -> action.table().equals(TABLE_NAME));u}(jI (92c9804801360d926817f2617d789a40fbf5371fjI latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javajI modifiedjI KjI KjI KjI https://github.com/palantir/atlasdb/blob/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javajI https://github.com/palantir/atlasdb/raw/eeb021e4bfdc28d8c4f2876081cbe944cbebf19e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=eeb021e4bfdc28d8c4f2876081cbe944cbebf19ejI X`  @@ -191,11 +191,12 @@ public void invariantReportsViolationsFromTransactionHistory() {
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(
             WitnessedTransactionAction action) {
         if (action instanceof WitnessedReadTransactionAction) {
-            if (action.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
-                return WitnessedReadTransactionAction.of(action.table(), action.cell(), Optional.empty());
+            WitnessedReadTransactionAction readAction = (WitnessedReadTransactionAction) action;
+            if (readAction.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
+                return WitnessedReadTransactionAction.of(readAction.table(), readAction.cell(), Optional.empty());
             } else {
                 return WitnessedReadTransactionAction.of(
-                        action.table(), action.cell(), Optional.of(TransientRowsWorkflows.VALUE));
+                        readAction.table(), readAction.cell(), Optional.of(TransientRowsWorkflows.VALUE));
             }
         } else {
             return action;ueu(fbc938ba3f41c17da28954f1d100c0e46b444f03}(sha(fbc938ba3f41c17da28954f1d100c0e46b444f03node_idEC_kwDOAjP5fdoAKGZiYzkzOGJhM2Y0MWMxN2RhMjg5NTRmMWQxMDBjMGU0NmI0NDRmMDMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-02-27T14:31:04Zu	committer}(jJ 
Sam KramerjJ skramer@palantir.comjJ 2023-02-27T14:31:04Zumessagenitstree}(jJ (a83ed15d4bb8d9162276791fc51e9692cdcbbbb2url`https://api.github.com/repos/palantir/atlasdb/git/trees/a83ed15d4bb8d9162276791fc51e9692cdcbbbb2ujJ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fbc938ba3f41c17da28954f1d100c0e46b444f03
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmP8vqgACgkQmPPOpKR4
XS3roAf/f/Sb2q+Uqx1gJHewxPtdWePU6yDHygE9dbCJUC0ib68HT9zc2CBCTTPy
HYOCe78oB1J9ustkplSsd8niW9/s016FlUz/1izAeefQ4XzeOQQ9BUzMvF+UjaIP
Z15BoME4Z0ttZIPNhuy2xHIPpNjrqdjd5Y7kaZGeyKwif9U3RkqhxnwRZkzmSV+q
2YL46EVEwVD3VmaG5FjIXLtfCOWuWf6Bx9MvyDwPhtArPi7zz9B2mHAYAHrN9IYh
F55rcH6pezawaWWr0gqVlFOibSmOz67OGJWi+fQb2Au2WkvOBssYy/913F2XTMaR
2FuzsVC4f/n819NPnhRXTcc1m6Mubw==
=YR2o
-----END PGP SIGNATURE-----payloadtree a83ed15d4bb8d9162276791fc51e9692cdcbbbb2
parent a4b0351071c791519f2c71c8bef37b4cb18abcd4
author Sam Kramer <skramer@palantir.com> 1677508264 +0000
committer Sam Kramer <skramer@palantir.com> 1677508264 +0000

nits
uujJ ^https://api.github.com/repos/palantir/atlasdb/commits/fbc938ba3f41c17da28954f1d100c0e46b444f03html_urlShttps://github.com/palantir/atlasdb/commit/fbc938ba3f41c17da28954f1d100c0e46b444f03comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fbc938ba3f41c17da28954f1d100c0e46b444f03/commentsjJ }(login
Sam-KrameridJ^2_ jJ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jJ 'https://api.github.com/users/Sam-KramerjJ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujJ }(jJ 
Sam-KramerjJ J^2_ jJ MDQ6VXNlcjYyMzg4MTQ=jJ 3https://avatars.githubusercontent.com/u/6238814?v=4jJ h5jJ 'https://api.github.com/users/Sam-KramerjJ https://github.com/Sam-KramerjJ 1https://api.github.com/users/Sam-Kramer/followersjJ >https://api.github.com/users/Sam-Kramer/following{/other_user}jJ 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jJ >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jJ 5https://api.github.com/users/Sam-Kramer/subscriptionsjJ ,https://api.github.com/users/Sam-Kramer/orgsjJ -https://api.github.com/users/Sam-Kramer/reposjJ 8https://api.github.com/users/Sam-Kramer/events{/privacy}jJ 7https://api.github.com/users/Sam-Kramer/received_eventsjJ UserjJ uparents]}(jJ (a4b0351071c791519f2c71c8bef37b4cb18abcd4jJ ^https://api.github.com/repos/palantir/atlasdb/commits/a4b0351071c791519f2c71c8bef37b4cb18abcd4jJ Shttps://github.com/palantir/atlasdb/commit/a4b0351071c791519f2c71c8bef37b4cb18abcd4uastats}(totalK	additionsK	deletionsKufiles](}(jJ (f3e823e2f90e9d89ec9252e6694b2508fc50ba9afilenameQatlasdb-commons/src/main/java/com/palantir/exception/NotInitializedException.javastatusmodifiedjJ KjJ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/fbc938ba3f41c17da28954f1d100c0e46b444f03/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/fbc938ba3f41c17da28954f1d100c0e46b444f03/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.java?ref=fbc938ba3f41c17da28954f1d100c0e46b444f03patchX  @@ -22,7 +22,7 @@
 import com.palantir.logsafe.SafeLoggable;
 import java.util.List;
 
-public class NotInitializedException extends AtlasDbDependencyException implements SafeLoggable {
+public final class NotInitializedException extends AtlasDbDependencyException implements SafeLoggable {
 
     private static final String EXCEPTION_MESSAGE =
             "The object is not yet initialized, and as a result, all calls to it will fail. Interactions with this"u}(jJ (36183398d591e7764b170dab045a81645e741819jJ [atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/TargetedSweeperTest.javajJ modifiedjJ KjJ KjK KjK https://github.com/palantir/atlasdb/blob/fbc938ba3f41c17da28954f1d100c0e46b444f03/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FTargetedSweeperTest.javajK https://github.com/palantir/atlasdb/raw/fbc938ba3f41c17da28954f1d100c0e46b444f03/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FTargetedSweeperTest.javajK https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FTargetedSweeperTest.java?ref=fbc938ba3f41c17da28954f1d100c0e46b444f03jK Xe  @@ -231,8 +231,9 @@ public void increaseInShardsReflectedOnLastSweptTimestamp() {
     @Test
     public void callingEnqueueAndSweepOnUninitializedSweeperThrows() {
         TargetedSweeper uninitializedSweeper = TargetedSweeper.createUninitializedForTest(() -> 1);
-        assertThatThrownBy(() -> uninitializedSweeper.enqueue(ImmutableList.of()))
-                .isInstanceOf(NotInitializedException.class);
+        assertThatLoggableExceptionThrownBy(() -> uninitializedSweeper.enqueue(ImmutableList.of()))
+                .isInstanceOf(NotInitializedException.class)
+                .hasExactlyArgs(SafeArg.of("objectName", "Targeted Sweeper"));
         assertThatLoggableExceptionThrownBy(
                         () -> uninitializedSweeper.sweepNextBatch(ShardAndStrategy.conservative(0), 1L))
                 .isInstanceOf(NotInitializedException.class)ueu(c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263}(sha(c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263node_idEC_kwDOAjP5fdoAKGM3YjI3NGZkYjVhZDJiODZjODZjY2U0ZTVmYTZhODNjOWVlNzYyNjMcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-04-03T18:17:18Zu	committer}(jK svc-autoreleasejK -pd-foundry-infrastructure-notify@palantir.comj K 2023-04-03T18:17:18ZumessageAutorelease 0.829.0

[skip ci]tree}(jK (ece71d22024e353e40f14496d8c838e7c1b6e5a7url`https://api.github.com/repos/palantir/atlasdb/git/trees/ece71d22024e353e40f14496d8c838e7c1b6e5a7uj,K bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQrGDQACgkQhbrR8ip7mDAILAD/ayDqOjB3gWbvu8FP08/hOUtk
TiTHrGRZUh5qp0mDQNsA/14l0cgmMcPJW+Ya2M46HHDOrZDkxgCgtocw41kIshMi
=bXBY
-----END PGP SIGNATURE-----
payloadX0  tree ece71d22024e353e40f14496d8c838e7c1b6e5a7
parent 835ccdfee183a7ac97ca99e097471e2d44168047
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1680545838 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1680545838 +0000

Autorelease 0.829.0

[skip ci]uuj,K ^https://api.github.com/repos/palantir/atlasdb/commits/c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263html_urlShttps://github.com/palantir/atlasdb/commit/c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263/commentsjK }(loginsvc-autoreleaseidJ(jK MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j,K ,https://api.github.com/users/svc-autoreleasej:K "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj"K }(j?K svc-autoreleasejAK J(jK MDQ6VXNlcjUxNzE4MzQ2jCK 4https://avatars.githubusercontent.com/u/51718346?v=4jEK h5j,K ,https://api.github.com/users/svc-autoreleasej:K "https://github.com/svc-autoreleasejHK 6https://api.github.com/users/svc-autorelease/followersjJK Chttps://api.github.com/users/svc-autorelease/following{/other_user}jLK <https://api.github.com/users/svc-autorelease/gists{/gist_id}jNK Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jPK :https://api.github.com/users/svc-autorelease/subscriptionsjRK 1https://api.github.com/users/svc-autorelease/orgsjTK 2https://api.github.com/users/svc-autorelease/reposjVK =https://api.github.com/users/svc-autorelease/events{/privacy}jXK <https://api.github.com/users/svc-autorelease/received_eventsjZK Userj\K uparents]}(jK (835ccdfee183a7ac97ca99e097471e2d44168047j,K ^https://api.github.com/repos/palantir/atlasdb/commits/835ccdfee183a7ac97ca99e097471e2d44168047j:K Shttps://github.com/palantir/atlasdb/commit/835ccdfee183a7ac97ca99e097471e2d44168047uastats}(totalK 	additionsK 	deletionsK ufiles]}(jK (5f61b2bef5ebfcacc253aaa5cda9840887460417filename changelog/0.829.0/pr-6499.v2.ymlstatusrenamedjvK K jwK K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263/changelog%2F0.829.0%2Fpr-6499.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263/changelog%2F0.829.0%2Fpr-6499.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.829.0%2Fpr-6499.v2.yml?ref=c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263previous_filename$changelog/@unreleased/pr-6499.v2.ymluau(9ab8685901e94374f3b903aad7b788830bb6ebcc}(sha(9ab8685901e94374f3b903aad7b788830bb6ebccnode_idEC_kwDOAjP5fdoAKDlhYjg2ODU5MDFlOTQzNzRmM2I5MDNhYWQ3Yjc4ODgzMGJiNmViY2Mcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-20T13:21:38Zu	committer}(jK Lucas MeirelesjK meireles31@msn.comjK 2023-06-20T13:21:38Zumessage&implement interface for remaining KVSstree}(jK (23f27dfffc411596c9fb497ef0cd92a779a7fb72url`https://api.github.com/repos/palantir/atlasdb/git/trees/23f27dfffc411596c9fb497ef0cd92a779a7fb72ujK bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9ab8685901e94374f3b903aad7b788830bb6ebcc
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSRp+IACgkQJd22kJ7J
GiwNgQgAxu+D68OJpOP0JteMZlvgx/VojnSXxDOZqsTlZgHaUdAZqnQAEZh/4+5E
y78PorGP8/Mo+vjRTgFfvo/8G1Zl93jawbMy5s0FbseqJwkT8QiBZc3gkbupKj6d
HIkEisYNnrgd/1816/CWfyqYkeQ4ea2f4/5hcmUj+dWnRZ2wj0hcrIuN29Nq426N
qtCyJJnZyVyiMaTo1/eV35gyogdf96oy2IGTdgOD7rc0RuUTGUSMcvn1mYhWjhfG
z5c+r3Zq0tmKTnSmWKzeHOyquwGydQGSdCRZZ6/A8qqw1HPdzZc2+ZTN8HSDTLv6
RFJIOumIOJzm279gVzHxWDXogPXnRQ==
=to/J
-----END PGP SIGNATURE-----payloadX  tree 23f27dfffc411596c9fb497ef0cd92a779a7fb72
parent e3a256da2291bcebc880fce9d674c40a695d3845
author Lucas Meireles <meireles31@msn.com> 1687267298 +0100
committer Lucas Meireles <meireles31@msn.com> 1687267298 +0100

implement interface for remaining KVSs
uujK ^https://api.github.com/repos/palantir/atlasdb/commits/9ab8685901e94374f3b903aad7b788830bb6ebcchtml_urlShttps://github.com/palantir/atlasdb/commit/9ab8685901e94374f3b903aad7b788830bb6ebcccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9ab8685901e94374f3b903aad7b788830bb6ebcc/commentsjK }(loginLucasIMEidJg jK MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jK %https://api.github.com/users/LucasIMEjK https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujK }(jK LucasIMEjK Jg jK MDQ6VXNlcjY3ODczMTE=jK 3https://avatars.githubusercontent.com/u/6787311?v=4jK h5jK %https://api.github.com/users/LucasIMEjK https://github.com/LucasIMEjK /https://api.github.com/users/LucasIME/followersjK <https://api.github.com/users/LucasIME/following{/other_user}jK 5https://api.github.com/users/LucasIME/gists{/gist_id}jK <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jK 3https://api.github.com/users/LucasIME/subscriptionsjK *https://api.github.com/users/LucasIME/orgsjK +https://api.github.com/users/LucasIME/reposjK 6https://api.github.com/users/LucasIME/events{/privacy}jK 5https://api.github.com/users/LucasIME/received_eventsjK UserjK uparents]}(jK (e3a256da2291bcebc880fce9d674c40a695d3845jK ^https://api.github.com/repos/palantir/atlasdb/commits/e3a256da2291bcebc880fce9d674c40a695d3845jK Shttps://github.com/palantir/atlasdb/commit/e3a256da2291bcebc880fce9d674c40a695d3845uastats}(totalK	additionsK	deletionsK ufiles](}(jK (a0daffcaa0a4ea862e707fb50afd62871f197c8efilename]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/DualWriteKeyValueService.javastatusmodifiedjK KjK K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/9ab8685901e94374f3b903aad7b788830bb6ebcc/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9ab8685901e94374f3b903aad7b788830bb6ebcc/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.java?ref=9ab8685901e94374f3b903aad7b788830bb6ebccpatchX  @@ -318,4 +318,9 @@ public List<byte[]> getRowKeysInRange(TableReference tableRef, byte[] startRow,
     public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<Cell, Long> timestampByCell) {
         return delegate1.getAsync(tableRef, timestampByCell);
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate1.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(jK (d41572b88d0c8b10e1042d4d64b59e123b40c6c1jK ]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/ProfilingKeyValueService.javajK modifiedjK KjK K jK KjK https://github.com/palantir/atlasdb/blob/9ab8685901e94374f3b903aad7b788830bb6ebcc/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javajK https://github.com/palantir/atlasdb/raw/9ab8685901e94374f3b903aad7b788830bb6ebcc/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javajK https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.java?ref=9ab8685901e94374f3b903aad7b788830bb6ebccjK X|  @@ -554,4 +554,9 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
                         LoggingArgs.durationMillis(stopwatch)),
                 logCellResultSize(4L));
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(jK (07430a7ea8f348014166e1a21707d9a2d6fa0656jK gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableRemappingKeyValueService.javajK modifiedjK KjK K jK KjK https://github.com/palantir/atlasdb/blob/9ab8685901e94374f3b903aad7b788830bb6ebcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javajK https://github.com/palantir/atlasdb/raw/9ab8685901e94374f3b903aad7b788830bb6ebcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javajK https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.java?ref=9ab8685901e94374f3b903aad7b788830bb6ebccjK XQ  @@ -482,4 +482,9 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
             throw new IllegalArgumentException(e);
         }
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(jK (5ef033a6ef29cb0e07d55d81f9e01236df5838d0jK gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableSplittingKeyValueService.javajK modifiedjK KjK K jK KjK https://github.com/palantir/atlasdb/blob/9ab8685901e94374f3b903aad7b788830bb6ebcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javajK https://github.com/palantir/atlasdb/raw/9ab8685901e94374f3b903aad7b788830bb6ebcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javajK https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.java?ref=9ab8685901e94374f3b903aad7b788830bb6ebccjK X  @@ -413,4 +413,9 @@ public List<byte[]> getRowKeysInRange(TableReference tableRef, byte[] startRow,
     public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<Cell, Long> timestampByCell) {
         return getDelegate(tableRef).getAsync(tableRef, timestampByCell);
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegates.stream().allMatch(KeyValueService::sweepsEntriesInStrictlyNonDecreasingFashion);
+    }
 }ueu(0ac05a0b49e9df6887038e978cc0ddc8d7a08729}(sha(0ac05a0b49e9df6887038e978cc0ddc8d7a08729node_idEC_kwDOAjP5fdoAKDBhYzA1YTBiNDllOWRmNjg4NzAzOGU5NzhjYzBkZGM4ZDdhMDg3Mjkcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-07T13:48:22Zu	committer}(j"L Lucas Meirelesj$L meireles31@msn.comj&L 2023-06-07T13:48:22ZumessageOMerge branch 'develop' into lmeireles/add-busy-sell-with-read-only-txn-workflowtree}(jL (0fcb28b0aaa5a6cb2a08c4ff52c59c6407413a92url`https://api.github.com/repos/palantir/atlasdb/git/trees/0fcb28b0aaa5a6cb2a08c4ff52c59c6407413a92uj2L bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0ac05a0b49e9df6887038e978cc0ddc8d7a08729
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSAiqkACgkQJd22kJ7J
GixYOAgAyJUzwWz/GUeonUSyTRSR/HekKhXJUuGNLfcC0R9rsulz1wIzKHBEuzOv
Uu7QHWSrKS6Hp2Tf/kf/BYZf01axmWK3yLziKwnpoaQfpm6kYUnQIGoyllea4r2N
YsLjSrpK6agPtyr4s735Cd+/JKab7G2g2ynUCJfP4jZflMeGX2TFmYHKiK1Q9+7t
Puk27gmybkTsKD0jNPCsXyVK13cl3YcEippqnbgcscbnV/lJyE3EG+1Gy+s4UWic
emJ1CcjQ3oTe9RyaXio0dNb2R5BNnzocpvH3jA6Uf8y4WOlNOg3aT0Z1u1pPJbG4
NVCxasSH+c1l9/TAB3UmLRFYlBA6hA==
=8LRI
-----END PGP SIGNATURE-----payloadXZ  tree 0fcb28b0aaa5a6cb2a08c4ff52c59c6407413a92
parent c6c9fb54d2e5ea9695a958a4aa1624c74a64a4db
parent acdd8b440cf16a635a7163ab8e533e4576073ab9
author Lucas Meireles <meireles31@msn.com> 1686145702 +0100
committer Lucas Meireles <meireles31@msn.com> 1686145702 +0100

Merge branch 'develop' into lmeireles/add-busy-sell-with-read-only-txn-workflow
uuj2L ^https://api.github.com/repos/palantir/atlasdb/commits/0ac05a0b49e9df6887038e978cc0ddc8d7a08729html_urlShttps://github.com/palantir/atlasdb/commit/0ac05a0b49e9df6887038e978cc0ddc8d7a08729comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0ac05a0b49e9df6887038e978cc0ddc8d7a08729/commentsj L }(loginLucasIMEidJg jL MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j2L %https://api.github.com/users/LucasIMEj@L https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj(L }(jEL LucasIMEjGL Jg jL MDQ6VXNlcjY3ODczMTE=jIL 3https://avatars.githubusercontent.com/u/6787311?v=4jKL h5j2L %https://api.github.com/users/LucasIMEj@L https://github.com/LucasIMEjNL /https://api.github.com/users/LucasIME/followersjPL <https://api.github.com/users/LucasIME/following{/other_user}jRL 5https://api.github.com/users/LucasIME/gists{/gist_id}jTL <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jVL 3https://api.github.com/users/LucasIME/subscriptionsjXL *https://api.github.com/users/LucasIME/orgsjZL +https://api.github.com/users/LucasIME/reposj\L 6https://api.github.com/users/LucasIME/events{/privacy}j^L 5https://api.github.com/users/LucasIME/received_eventsj`L UserjbL uparents](}(jL (c6c9fb54d2e5ea9695a958a4aa1624c74a64a4dbj2L ^https://api.github.com/repos/palantir/atlasdb/commits/c6c9fb54d2e5ea9695a958a4aa1624c74a64a4dbj@L Shttps://github.com/palantir/atlasdb/commit/c6c9fb54d2e5ea9695a958a4aa1624c74a64a4dbu}(jL (acdd8b440cf16a635a7163ab8e533e4576073ab9j2L ^https://api.github.com/repos/palantir/atlasdb/commits/acdd8b440cf16a635a7163ab8e533e4576073ab9j@L Shttps://github.com/palantir/atlasdb/commit/acdd8b440cf16a635a7163ab8e533e4576073ab9uestats}(totalK	additionsK	deletionsKufiles](}(jL (088ecb3494e3094a7ce37361e9ec8cf8f2816acafilename changelog/0.868.0/pr-6598.v2.ymlstatusrenamedjL K jL K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/0ac05a0b49e9df6887038e978cc0ddc8d7a08729/changelog%2F0.868.0%2Fpr-6598.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/0ac05a0b49e9df6887038e978cc0ddc8d7a08729/changelog%2F0.868.0%2Fpr-6598.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.868.0%2Fpr-6598.v2.yml?ref=0ac05a0b49e9df6887038e978cc0ddc8d7a08729      previous_filename$changelog/@unreleased/pr-6598.v2.ymlu}(jL (2ca2d06a87f80d36d91dc297b011ed76b75b7af2jL 
versions.lockjL modifiedjL KjL KjL KjL _https://github.com/palantir/atlasdb/blob/0ac05a0b49e9df6887038e978cc0ddc8d7a08729/versions.lockjL ^https://github.com/palantir/atlasdb/raw/0ac05a0b49e9df6887038e978cc0ddc8d7a08729/versions.lockjL qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=0ac05a0b49e9df6887038e978cc0ddc8d7a08729patchX  @@ -312,7 +312,7 @@ org.slf4j:log4j-over-slf4j:1.7.36 (3 constraints: 492febed)
 org.slf4j:slf4j-api:1.7.36 (44 constraints: 8180995b)
 org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
 org.wildfly.common:wildfly-common:1.6.0.Final (4 constraints: 3f390b3d)
-org.xerial:sqlite-jdbc:3.36.0 (1 constraints: 3e054f3b)
+org.xerial:sqlite-jdbc:3.42.0.0 (1 constraints: 99054946)
 org.xerial.snappy:snappy-java:1.1.8 (2 constraints: 011529cb)
 org.yaml:snakeyaml:1.33 (5 constraints: 0a4c5570)
 u}(jL (46803d60bac01d23eb7310c59fc295cb01df7f2bjL versions.propsjL modifiedjL KjL KjL KjL `https://github.com/palantir/atlasdb/blob/0ac05a0b49e9df6887038e978cc0ddc8d7a08729/versions.propsjL _https://github.com/palantir/atlasdb/raw/0ac05a0b49e9df6887038e978cc0ddc8d7a08729/versions.propsjL rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=0ac05a0b49e9df6887038e978cc0ddc8d7a08729jL X"  @@ -79,7 +79,7 @@ org.rocksdb:rocksdbjni = 7.9.2
 org.slf4j:* = 1.7.36
 org.wildfly.common:wildfly-common = 1.6.0.Final
 org.xerial.snappy:snappy-java = 1.1.8
-org.xerial:sqlite-jdbc = 3.36.0
+org.xerial:sqlite-jdbc = 3.42.0.0
 org.yaml:snakeyaml = 1.33
 uk.org.lidalia:slf4j-test = 1.1.0
 ueu(090387011fca0ffca30ed85428caff1b2dba0a43}(sha(090387011fca0ffca30ed85428caff1b2dba0a43node_idEC_kwDOAjP5fdoAKDA5MDM4NzAxMWZjYTBmZmNhMzBlZDg1NDI4Y2FmZjFiMmRiYTBhNDMcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-24T10:52:57Zu	committer}(jL 
Ahmed AlouanejL aalouane@palantir.comjL 2023-04-24T10:52:57Zumessagestufftree}(jL (71d8889e12525f76a233f700a14608b87468abacurl`https://api.github.com/repos/palantir/atlasdb/git/trees/71d8889e12525f76a233f700a14608b87468abacujL bhttps://api.github.com/repos/palantir/atlasdb/git/commits/090387011fca0ffca30ed85428caff1b2dba0a43
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRGX4kACgkQPlMHVIT1
yhrqvwf/RSzvgrAk1XKleJC9i7KjcsJ9TE4Y43PGxhAgz7yDdaG0oi9NSiVLp9uf
R2cs+1PRPypJaxook1+i+MntM5D5nwqE84Sw25ZqLzSGV2guOxCNbX8mDfN8WwiD
Dx4nZy8572VgqyvjTRKy3+gK974TyWK3/mFLjcDFBjTD5PyWkH6sGFppbgH/v8Ax
taGdTFnROIl/fwzxKAXIzuwHL3cqcncEgGuDd/YlPRtuAd0Hb0/XScrBEqA5NMyU
DRWz08XSrrWyS1doqS81mtteAeNZRZv80pkhufGLb0x4GXQ9DauIerIUcMT7xnXC
BmcPOTSIZ6t34Z/FPKXLdLZgqAeYuA==
=aK32
-----END PGP SIGNATURE-----payloadtree 71d8889e12525f76a233f700a14608b87468abac
parent 0e042c5db32fd526cc9e1506788bee2cda4f3a43
author Ahmed Alouane <aalouane@palantir.com> 1682333577 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682333577 +0100

stuff
uujL ^https://api.github.com/repos/palantir/atlasdb/commits/090387011fca0ffca30ed85428caff1b2dba0a43html_urlShttps://github.com/palantir/atlasdb/commit/090387011fca0ffca30ed85428caff1b2dba0a43comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/090387011fca0ffca30ed85428caff1b2dba0a43/commentsjL }(loginergo14idJjL MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jL #https://api.github.com/users/ergo14jL https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujL }(jL ergo14jL JjL MDQ6VXNlcjMwOTAzNzM2jL 4https://avatars.githubusercontent.com/u/30903736?v=4jL h5jL #https://api.github.com/users/ergo14jL https://github.com/ergo14jL -https://api.github.com/users/ergo14/followersjL :https://api.github.com/users/ergo14/following{/other_user}jL 3https://api.github.com/users/ergo14/gists{/gist_id}jL :https://api.github.com/users/ergo14/starred{/owner}{/repo}jL 1https://api.github.com/users/ergo14/subscriptionsjL (https://api.github.com/users/ergo14/orgsjL )https://api.github.com/users/ergo14/reposjL 4https://api.github.com/users/ergo14/events{/privacy}jL 3https://api.github.com/users/ergo14/received_eventsjL UserjL uparents]}(jL (0e042c5db32fd526cc9e1506788bee2cda4f3a43jL ^https://api.github.com/repos/palantir/atlasdb/commits/0e042c5db32fd526cc9e1506788bee2cda4f3a43jL Shttps://github.com/palantir/atlasdb/commit/0e042c5db32fd526cc9e1506788bee2cda4f3a43uastats}(totalK	additionsK	deletionsKufiles]}(jL (93de1fe991bdcc2e4be141136a562f6231b7ab2efilename%scripts/circle-ci/run-circle-tests.shstatusmodifiedjM Kj	M KchangesKblob_url{https://github.com/palantir/atlasdb/blob/090387011fca0ffca30ed85428caff1b2dba0a43/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/090387011fca0ffca30ed85428caff1b2dba0a43/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=090387011fca0ffca30ed85428caff1b2dba0a43patchX	  @@ -27,16 +27,14 @@ CONTAINER_6=(':timelock-server:suiteTest')
 
 CONTAINER_7=(':timelock-server:stressTest')
 
-CONTAINER_8=(':atlasdb-ete-tests:timeLockMigrationTest')
+CONTAINER_8=(':atlasdb-ete-tests:oracleTest')
 
-CONTAINER_9=(':atlasdb-ete-tests:oracleTest')
-
-CONTAINER_10=('atlasdb-dbkvs-tests:oracleTest')
-
-CONTAINER_11=('compileJava' 'compileTestJava')
+CONTAINER_9=('atlasdb-dbkvs-tests:oracleTest')
 
+CONTAINER_10=('compileJava' 'compileTestJava')
+# 7 _8_ 9 10 11
 # Container 0 - runs tasks not found in the below containers
-CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}")
+CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}")
 
 for task in "${CONTAINER_0_EXCLUDE[@]}"
 do
@@ -52,7 +50,7 @@ if ./scripts/circle-ci/check-only-docs-changes.sh; then
     exit 0
 fi
 
-if [ $CIRCLE_NODE_INDEX -eq 9 ] || [ $CIRCLE_NODE_INDEX -eq 10 ]; then
+if [ $CIRCLE_NODE_INDEX -eq 8 ] || [ $CIRCLE_NODE_INDEX -eq 9 ]; then
     printenv DOCKERHUB_PASSWORD | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
     # The oracle container is very large and takes a long time to pull.
     # If this image is not pulled here, the circle build usually times out.
@@ -64,7 +62,7 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
 # External builds have a 16gb limit.
-if [ "$CIRCLE_NODE_INDEX" -eq "11" ]; then
+if [ "$CIRCLE_NODE_INDEX" -eq "10" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
@@ -84,6 +82,5 @@ case $CIRCLE_NODE_INDEX in
     7) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_7[@]} ;;
     8) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_8[@]} ;;
     9) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_9[@]} ;;
-    10) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_10[@]} ;;
-    11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
+    10) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_10[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
 esacuau(c38dd0b2b656e3cdc3dad7d3ced8b41f7b638db7}(sha(c38dd0b2b656e3cdc3dad7d3ced8b41f7b638db7node_idEC_kwDOAjP5fdoAKGMzOGRkMGIyYjY1NmUzY2RjM2RhZDdkM2NlZDhiNDFmN2I2MzhkYjccommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-03-31T10:53:27Zu	committer}(j%M Jeremy Kongj'M jkong@palantir.comj)M 2023-03-31T10:53:27Zumessagepostgrestree}(jM (a6503572fcc96b1d57d866bb815c926123787d2furl`https://api.github.com/repos/palantir/atlasdb/git/trees/a6503572fcc96b1d57d866bb815c926123787d2fuj5M bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c38dd0b2b656e3cdc3dad7d3ced8b41f7b638db7
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQmu6cACgkQTLdFKain
zjy5jAgAu9b9QE5cVo//4OIgPsujuDtdfRQqEO/fKeqK1Ny4gngtfzWw2Ogx01/0
aJAUPjWSDMlgZXGD/6nweZ8X/q1HHz/TdfzFw5Jum0qpSiVyYkKZIj52leEK2u0F
VuWn1pIi9BWF/CSzJFhvcob2YvVDihhMFka55qhyh0ro2U7E89mjw6Xa0rjnsw1r
V8LCAc6/15k7WjnIofHqtp+gANMPsHAzlZY6G/PLfEy+7gRrbi1BBOp+AIuXc9Vr
1jNjrPkKYBRvGBH/BUasCh9y+I8Mx6FGg+CJLtlV/hfJC1M8+IILDb8yMf5PAnEp
0StL8JaYSd1k+27ppaXNF+82sGoB/g==
=yB74
-----END PGP SIGNATURE-----payloadtree a6503572fcc96b1d57d866bb815c926123787d2f
parent 7cc5501bd242badcf433815b00b31d3574efa99c
author Jeremy Kong <jkong@palantir.com> 1680260007 +0800
committer Jeremy Kong <jkong@palantir.com> 1680260007 +0800

postgres
uuj5M ^https://api.github.com/repos/palantir/atlasdb/commits/c38dd0b2b656e3cdc3dad7d3ced8b41f7b638db7html_urlShttps://github.com/palantir/atlasdb/commit/c38dd0b2b656e3cdc3dad7d3ced8b41f7b638db7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c38dd0b2b656e3cdc3dad7d3ced8b41f7b638db7/commentsj#M }(login
jeremyk-91idJZ jM MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j5M 'https://api.github.com/users/jeremyk-91jCM https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj+M }(jHM 
jeremyk-91jJM JZ jM MDQ6VXNlcjU5NTU1MTA=jLM 3https://avatars.githubusercontent.com/u/5955510?v=4jNM h5j5M 'https://api.github.com/users/jeremyk-91jCM https://github.com/jeremyk-91jQM 1https://api.github.com/users/jeremyk-91/followersjSM >https://api.github.com/users/jeremyk-91/following{/other_user}jUM 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jWM >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jYM 5https://api.github.com/users/jeremyk-91/subscriptionsj[M ,https://api.github.com/users/jeremyk-91/orgsj]M -https://api.github.com/users/jeremyk-91/reposj_M 8https://api.github.com/users/jeremyk-91/events{/privacy}jaM 7https://api.github.com/users/jeremyk-91/received_eventsjcM UserjeM uparents]}(jM (7cc5501bd242badcf433815b00b31d3574efa99cj5M ^https://api.github.com/repos/palantir/atlasdb/commits/7cc5501bd242badcf433815b00b31d3574efa99cjCM Shttps://github.com/palantir/atlasdb/commit/7cc5501bd242badcf433815b00b31d3574efa99cuastats}(totalK	additionsK	deletionsKufiles](}(jM (525fdb350bc2f8468190f9bf23e6e9e078f1e0ddfilename
versions.lockstatusmodifiedjM KjM KchangesKblob_url_https://github.com/palantir/atlasdb/blob/c38dd0b2b656e3cdc3dad7d3ced8b41f7b638db7/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/c38dd0b2b656e3cdc3dad7d3ced8b41f7b638db7/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=c38dd0b2b656e3cdc3dad7d3ced8b41f7b638db7patchX  @@ -302,7 +302,7 @@ org.ow2.asm:asm-analysis:5.0.3 (1 constraints: ee09d4b2)
 org.ow2.asm:asm-commons:5.0.3 (1 constraints: ee09d4b2)
 org.ow2.asm:asm-tree:5.0.3 (4 constraints: d8272223)
 org.ow2.asm:asm-util:5.0.3 (1 constraints: ee09d4b2)
-org.postgresql:postgresql:42.4.1 (1 constraints: 3d05503b)
+org.postgresql:postgresql:42.4.3 (1 constraints: 3f05523b)
 org.reflections:reflections:0.10.2 (1 constraints: 3505253b)
 org.rocksdb:rocksdbjni:7.7.3 (1 constraints: 13052636)
 org.slf4j:jcl-over-slf4j:1.7.36 (3 constraints: 492febed)u}(jM (29db6add2c347830a5429215a06b16b4c54fe914jM versions.propsjM modifiedjM KjM KjM KjM `https://github.com/palantir/atlasdb/blob/c38dd0b2b656e3cdc3dad7d3ced8b41f7b638db7/versions.propsjM _https://github.com/palantir/atlasdb/raw/c38dd0b2b656e3cdc3dad7d3ced8b41f7b638db7/versions.propsjM rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=c38dd0b2b656e3cdc3dad7d3ced8b41f7b638db7jM XU  @@ -96,7 +96,7 @@ ch.qos.logback:* = 1.2.11
 com.datastax.cassandra:cassandra-driver-core = 3.8.0
 com.oracle.database.jdbc:ojdbc11 = 21.5.0.0
 com.palantir.cassandra:* = 2.2.18-1.108.0
-org.postgresql:postgresql = 42.4.1
+org.postgresql:postgresql = 42.4.3
 
 # transitive dep with API breaks in 0.14.0
 org.apache.thrift:libthrift = 0.17.0ueu(3227916d28f222e7520c184989ef679b7335af31}(sha(3227916d28f222e7520c184989ef679b7335af31node_idEC_kwDOAjP5fdoAKDMyMjc5MTZkMjhmMjIyZTc1MjBjMTg0OTg5ZWY2NzliNzMzNWFmMzEcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-08-07T14:13:28Zu	committer}(jM Lucas MeirelesjM meireles31@msn.comjM 2023-08-07T14:13:28Zumessagerev apitree}(jM (45863b41e2124380da3883ff67852b19a97cf755url`https://api.github.com/repos/palantir/atlasdb/git/trees/45863b41e2124380da3883ff67852b19a97cf755ujM bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3227916d28f222e7520c184989ef679b7335af31
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmTQ/AkACgkQJd22kJ7J
GiwxOgf9GCqcETZKvWqI6NZD2tv9DmXRQyN2nl/VNXIcyQfo3rNNPZ4R+3JXYeOg
llDcJPHSNEDqlir88ZsGwLCUgnkldYHNOCu8EmBRfacn9gDLnQSfYrXHMuJ910lk
3X5h/zlR7KR/4Hohze3P5lr15YlXwGSLyKU+DReO9X8vJgnwbTEIWD9eBZCN53T6
HxO4yn6nziS3CkUnToBSUhGWrkGAMZ1c6b17LcGsDtyQX0bfONK6OhyChtSGLe3u
rlfAu7SLg2byZ7p8J7cImBjE578fTKrJi6HEbptNyKlq3tsMZTdOa+AuK/Zeqhl/
xy4ezEvIljCQ4tOCiY9Mh5bKbckewg==
=DV5c
-----END PGP SIGNATURE-----payloadtree 45863b41e2124380da3883ff67852b19a97cf755
parent ad4d98488bd0a38b6fbb89d323346f0906d021fe
author Lucas Meireles <meireles31@msn.com> 1691417608 +0100
committer Lucas Meireles <meireles31@msn.com> 1691417608 +0100

rev api
uujM ^https://api.github.com/repos/palantir/atlasdb/commits/3227916d28f222e7520c184989ef679b7335af31html_urlShttps://github.com/palantir/atlasdb/commit/3227916d28f222e7520c184989ef679b7335af31comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3227916d28f222e7520c184989ef679b7335af31/commentsjM }(loginLucasIMEidJg jM MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jM %https://api.github.com/users/LucasIMEjM https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujM }(jM LucasIMEjM Jg jM MDQ6VXNlcjY3ODczMTE=jM 3https://avatars.githubusercontent.com/u/6787311?v=4jM h5jM %https://api.github.com/users/LucasIMEjM https://github.com/LucasIMEjM /https://api.github.com/users/LucasIME/followersjM <https://api.github.com/users/LucasIME/following{/other_user}jM 5https://api.github.com/users/LucasIME/gists{/gist_id}jM <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jM 3https://api.github.com/users/LucasIME/subscriptionsjM *https://api.github.com/users/LucasIME/orgsjM +https://api.github.com/users/LucasIME/reposjM 6https://api.github.com/users/LucasIME/events{/privacy}jM 5https://api.github.com/users/LucasIME/received_eventsjM UserjM uparents]}(jM (ad4d98488bd0a38b6fbb89d323346f0906d021fejM ^https://api.github.com/repos/palantir/atlasdb/commits/ad4d98488bd0a38b6fbb89d323346f0906d021fejM Shttps://github.com/palantir/atlasdb/commit/ad4d98488bd0a38b6fbb89d323346f0906d021feuastats}(totalK	additionsK	deletionsK ufiles]}(jM (882c069f2e38540bc7729184fd635d105043cf95filename.palantir/revapi.ymlstatusmodifiedjM KjM K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/3227916d28f222e7520c184989ef679b7335af31/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/3227916d28f222e7520c184989ef679b7335af31/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=3227916d28f222e7520c184989ef679b7335af31patchXL	  @@ -130,6 +130,26 @@ acceptedBreaks:
         \ ===java.util.function.ToLongFunction<T>===)"
       justification: "Avoid autoboxing long to Long"
   "0.899.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.method.addedToInterface"
+      new: "method com.google.common.util.concurrent.ListenableFuture<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
+        \ byte[]>> com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCache::getAsyncWithCachedRef(com.palantir.atlasdb.keyvalue.api.TableReference,\
+        \ java.util.Set<com.palantir.atlasdb.keyvalue.api.Cell>, java.util.function.Function<com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCache.CacheLookupResult,\
+        \ com.google.common.util.concurrent.ListenableFuture<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
+        \ byte[]>>>)"
+      justification: "new Get API for Atlas to specify number of expected cells"
+    - code: "java.method.addedToInterface"
+      new: "method com.palantir.util.result.Result<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
+        \ byte[]>, com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException>\
+        \ com.palantir.atlasdb.transaction.api.Transaction::getWithExpectedNumberOfCells(com.palantir.atlasdb.keyvalue.api.TableReference,\
+        \ java.util.Set<com.palantir.atlasdb.keyvalue.api.Cell>, long)"
+      justification: "new Get API for Atlas to specify number of expected cells"
+    - code: "java.method.addedToInterface"
+      new: "method java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell, byte[]> com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCache::getWithCachedRef(com.palantir.atlasdb.keyvalue.api.TableReference,\
+        \ java.util.Set<com.palantir.atlasdb.keyvalue.api.Cell>, java.util.function.Function<com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCache.CacheLookupResult,\
+        \ com.google.common.util.concurrent.ListenableFuture<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
+        \ byte[]>>>)"
+      justification: "new Get API for Atlas to specify number of expected cells"
     com.palantir.atlasdb:atlasdb-cassandra:
     - code: "java.method.parameterTypeChanged"
       old: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\uau(76c409108c6e7aa7b560ba34504f4deb5ec7c27b}(sha(76c409108c6e7aa7b560ba34504f4deb5ec7c27bnode_idEC_kwDOAjP5fdoAKDc2YzQwOTEwOGM2ZTdhYTdiNTYwYmEzNDUwNGY0ZGViNWVjN2MyN2Icommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-04-07T13:07:56Zu	committer}(jN David SchlosnaglejN davids@palantir.comjN 2023-05-05T15:50:31Zumessage,Avoid boxing for Cassandra known port checkstree}(jN (b77db882ca20bd0601a7eba4184e021201bc3edaurl`https://api.github.com/repos/palantir/atlasdb/git/trees/b77db882ca20bd0601a7eba4184e021201bc3edauj+N bhttps://api.github.com/repos/palantir/atlasdb/git/commits/76c409108c6e7aa7b560ba34504f4deb5ec7c27b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmRVJckACgkQR9hsJ74Q
0l+/kwf/SamhKPFyBL5XgOXxwgHfQmXYPW9Y3wJ+5cnPmAPfJ8iiKYXR9DKfn6BC
wDnVC4VMgx6qHVDgNcaFlwZsT1qQTk6X+bMslJXEMBZbeuf6rOt8AgBmNfO9CMLg
eylN3A26fegBm73mqQ+fFrXVTlnTT68S4DAfEMEWwaRBdfkMEcTf8+48yUQ4bUkz
L9CCKKdjvyEgSAVE/un3krX1opLkH6yYUN7vGeeSt00oFnsZ7ZlPBbgi8b1Z106F
kSmdlvxJlx4oV4d+D4rr0+hkItXTM2bH7NJDSUYi5eiRT4vDsijm7xwUb0wcDGXZ
c0sCOrdYTH213Op77zI+19yw9HxRCg==
=1jut
-----END PGP SIGNATURE-----payloadX  tree b77db882ca20bd0601a7eba4184e021201bc3eda
parent 89301daada3aa480a1d2baae560213a3292c52b9
author David Schlosnagle <davids@palantir.com> 1680872876 -0400
committer David Schlosnagle <davids@palantir.com> 1683301831 -0400

Avoid boxing for Cassandra known port checks
uuj+N ^https://api.github.com/repos/palantir/atlasdb/commits/76c409108c6e7aa7b560ba34504f4deb5ec7c27bhtml_urlShttps://github.com/palantir/atlasdb/commit/76c409108c6e7aa7b560ba34504f4deb5ec7c27bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/76c409108c6e7aa7b560ba34504f4deb5ec7c27b/commentsjN }(loginschlosnaidMBjN MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j+N %https://api.github.com/users/schlosnaj9N https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj!N }(j>N schlosnaj@N MBjN MDQ6VXNlcjU0NTk0jBN 1https://avatars.githubusercontent.com/u/54594?v=4jDN h5j+N %https://api.github.com/users/schlosnaj9N https://github.com/schlosnajGN /https://api.github.com/users/schlosna/followersjIN <https://api.github.com/users/schlosna/following{/other_user}jKN 5https://api.github.com/users/schlosna/gists{/gist_id}jMN <https://api.github.com/users/schlosna/starred{/owner}{/repo}jON 3https://api.github.com/users/schlosna/subscriptionsjQN *https://api.github.com/users/schlosna/orgsjSN +https://api.github.com/users/schlosna/reposjUN 6https://api.github.com/users/schlosna/events{/privacy}jWN 5https://api.github.com/users/schlosna/received_eventsjYN Userj[N uparents]}(jN (89301daada3aa480a1d2baae560213a3292c52b9j+N ^https://api.github.com/repos/palantir/atlasdb/commits/89301daada3aa480a1d2baae560213a3292c52b9j9N Shttps://github.com/palantir/atlasdb/commit/89301daada3aa480a1d2baae560213a3292c52b9uastats}(totalK	additionsK
	deletionsKufiles](}(jN (a1974a0a70f2e9dc1483e8b6fcc59cc3a141917bfilenamebatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javastatusmodifiedjuN K	jvN K	changesKblob_urlhttps://github.com/palantir/atlasdb/blob/76c409108c6e7aa7b560ba34504f4deb5ec7c27b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/76c409108c6e7aa7b560ba34504f4deb5ec7c27b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=76c409108c6e7aa7b560ba34504f4deb5ec7c27bpatchX	  @@ -17,7 +17,6 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
-import com.google.common.collect.FluentIterable;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableRangeMap;
@@ -62,13 +61,13 @@
 import java.util.Comparator;
 import java.util.HashMap;
 import java.util.HashSet;
-import java.util.Iterator;
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
 import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Optional;
+import java.util.PrimitiveIterator.OfInt;
 import java.util.Random;
 import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
@@ -77,6 +76,7 @@
 import java.util.function.Predicate;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import java.util.stream.Stream;
 import org.apache.cassandra.thrift.EndpointDetails;
 import org.apache.cassandra.thrift.TokenRange;
@@ -306,16 +306,16 @@ private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) th
     }
 
     private int getKnownPort() throws UnknownHostException {
-        // explicitly not using streams due to allocation overhead
-        return onlyPort(FluentIterable.concat(
-                        FluentIterable.from(currentPools.keySet()).transform(CassandraServer::proxy),
-                        getServersSocketAddressesFromConfig())
-                .transform(InetSocketAddress::getPort));
+        // Avoid allocations and intermediate collection as this is on hot path
+        return only(Stream.concat(
+                        currentPools.keySet().stream().map(CassandraServer::proxy),
+                        getServersSocketAddressesFromConfig().stream())
+                .mapToInt(InetSocketAddress::getPort));
     }
 
     @VisibleForTesting
-    static int onlyPort(Iterable<? extends Integer> iterable) throws UnknownHostException {
-        Iterator<? extends Integer> iterator = iterable.iterator();
+    static int only(IntStream intStream) throws UnknownHostException {
+        OfInt iterator = intStream.iterator();
         if (!iterator.hasNext()) {
             throw new UnknownHostException("No single known port");
         }u}(jN (ea93d4225293149bfc275c742ea245b6b263274fj{N fatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraServiceTest.javaj}N modifiedjuN KjvN KjN KjN https://github.com/palantir/atlasdb/blob/76c409108c6e7aa7b560ba34504f4deb5ec7c27b/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javajN https://github.com/palantir/atlasdb/raw/76c409108c6e7aa7b560ba34504f4deb5ec7c27b/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javajN https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.java?ref=76c409108c6e7aa7b560ba34504f4deb5ec7c27bjN X  @@ -33,7 +33,6 @@
 import com.palantir.refreshable.Refreshable;
 import java.net.InetSocketAddress;
 import java.net.UnknownHostException;
-import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.ThreadLocalRandom;
@@ -272,12 +271,10 @@ public void getRandomHostByActiveConnectionsReturnsDesiredHost() {
 
     @Test
     public void ports() throws Exception {
-        assertThat(CassandraService.onlyPort(List.of(1, 1, 1))).isEqualTo(1);
-        assertThat(IntStream.generate(() -> 4224).boxed().limit(15).collect(Collectors.toList()))
-                .hasSize(15)
-                .satisfies(cluster ->
-                        assertThat(CassandraService.onlyPort(cluster)).isEqualTo(4224));
-        assertThatThrownBy(() -> CassandraService.onlyPort(List.of(1, 2, 1)))
+        assertThat(CassandraService.only(IntStream.of(1, 1, 1))).isEqualTo(1);
+        assertThat(CassandraService.only(IntStream.generate(() -> 4224).limit(15)))
+                .isEqualTo(4224);
+        assertThatThrownBy(() -> CassandraService.only(IntStream.of(1, 2, 1)))
                 .isInstanceOf(UnknownHostException.class)
                 .hasMessageContaining("No single known port");
     }ueu(4cacce97787e30570ed2dda5dd92471f6f677ab9}(sha(4cacce97787e30570ed2dda5dd92471f6f677ab9node_idEC_kwDOAjP5fdoAKDRjYWNjZTk3Nzg3ZTMwNTcwZWQyZGRhNWRkOTI0NzFmNmY2NzdhYjkcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-03-19T13:18:38Zu	committer}(jN svc-excavator-botjN svc-excavator-bot@palantir.comjN 2023-03-19T13:18:38Zumessage1Excavator:  Update open-source publishing pluginstree}(jN (d659e5d792722a6b280a5209906c675ac2ab398eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/d659e5d792722a6b280a5209906c675ac2ab398eujN bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4cacce97787e30570ed2dda5dd92471f6f677ab9
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQXC64JEMmvEkpISILgAADYXgEA4offf8soEheNv9Ac/VzYh1S9
Ja2eDJWnkBkYK20jz7kBAL0z/HXTOjAqaQVFoR2FoWNUENfkf59ttmjnU9d7MSQo
=svWq
-----END PGP SIGNATURE-----
payloadX)  tree d659e5d792722a6b280a5209906c675ac2ab398e
parent 868f3e786068a9f2e93808be26fd7f4f00a75a09
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1679231918 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1679231918 +0000

Excavator:  Update open-source publishing pluginsuujN ^https://api.github.com/repos/palantir/atlasdb/commits/4cacce97787e30570ed2dda5dd92471f6f677ab9html_urlShttps://github.com/palantir/atlasdb/commit/4cacce97787e30570ed2dda5dd92471f6f677ab9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4cacce97787e30570ed2dda5dd92471f6f677ab9/commentsjN }(loginsvc-excavator-botidJjN MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5jN .https://api.github.com/users/svc-excavator-botjN $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminujN }(jN svc-excavator-botjN JjN MDQ6VXNlcjMzMjY2MzY4jN 4https://avatars.githubusercontent.com/u/33266368?v=4jN h5jN .https://api.github.com/users/svc-excavator-botjN $https://github.com/svc-excavator-botjN 8https://api.github.com/users/svc-excavator-bot/followersjN Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}jN >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}jN Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}jN <https://api.github.com/users/svc-excavator-bot/subscriptionsjN 3https://api.github.com/users/svc-excavator-bot/orgsjN 4https://api.github.com/users/svc-excavator-bot/reposjN ?https://api.github.com/users/svc-excavator-bot/events{/privacy}jN >https://api.github.com/users/svc-excavator-bot/received_eventsjN UserjN uparents]}(jN (868f3e786068a9f2e93808be26fd7f4f00a75a09jN ^https://api.github.com/repos/palantir/atlasdb/commits/868f3e786068a9f2e93808be26fd7f4f00a75a09jN Shttps://github.com/palantir/atlasdb/commit/868f3e786068a9f2e93808be26fd7f4f00a75a09uastats}(totalK	additionsK	deletionsKufiles]}(jN (5b6e6ba0effbb79875f5e92ada2781b786bc64d2filenamebuild.gradlestatusmodifiedjN KjN KchangesKblob_url^https://github.com/palantir/atlasdb/blob/4cacce97787e30570ed2dda5dd92471f6f677ab9/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/4cacce97787e30570ed2dda5dd92471f6f677ab9/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=4cacce97787e30570ed2dda5dd92471f6f677ab9patchX  @@ -13,7 +13,7 @@ buildscript {
         classpath 'com.palantir.gradle.conjure:gradle-conjure:5.34.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
-        classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.11.0'
+        classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:1.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.31.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'uau(7466c4187727314b45a35469b31da6e79b69c4c0}(sha(7466c4187727314b45a35469b31da6e79b69c4c0node_idEC_kwDOAjP5fdoAKDc0NjZjNDE4NzcyNzMxNGI0NWEzNTQ2OWIzMWRhNmU3OWI2OWM0YzAcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-28T10:57:31Zu	committer}(jO 
Sam KramerjO skramer@palantir.comjO 2023-04-28T10:57:31Zumessage$Proper tag publishing for antithesistree}(j	O (d6a5ee2201badf80a2eac4d00d3a90a683cc882aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/d6a5ee2201badf80a2eac4d00d3a90a683cc882auj!O bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7466c4187727314b45a35469b31da6e79b69c4c0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRLppsACgkQmPPOpKR4
XS2zFQf9FCMbmlce/beAXFz19Ye+0bsuvRKRbkh6zL4MJc2LTBZIRb0M7HWjZuUq
6pjB5GEQ4Ddbac3ewAh9c5ng+varj61JNzUaCZqCL3hlCYWo1hRHDLDFTUADBRvH
zjPV5uSQKYY5bM9mAovT6jDuTD9PUUGqtTWWVSnfw44agCyEeyXdBZna25+1CzCd
MpKg+RJ3EuHIcoinpoDHFdlYG4o3/WXwWy3Gnyul+izQg1fCuVaJwCNnMaiCegfu
xMVIHGAVjRs/5FlZc2i6wQ2yidSasMm0WkYISZyv3WjjAV4DQ5nhc759Fce7pRx5
n3FmidkeuJJJ3O+m9YobPUgbKg7aEA==
=HjrK
-----END PGP SIGNATURE-----payloadtree d6a5ee2201badf80a2eac4d00d3a90a683cc882a
parent 43adb2ed2ed640a3862ee0527e4d5f8ba090356a
author Sam Kramer <skramer@palantir.com> 1682679451 +0100
committer Sam Kramer <skramer@palantir.com> 1682679451 +0100

Proper tag publishing for antithesis
uuj!O ^https://api.github.com/repos/palantir/atlasdb/commits/7466c4187727314b45a35469b31da6e79b69c4c0html_urlShttps://github.com/palantir/atlasdb/commit/7466c4187727314b45a35469b31da6e79b69c4c0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7466c4187727314b45a35469b31da6e79b69c4c0/commentsjO }(login
Sam-KrameridJ^2_ jO MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j!O 'https://api.github.com/users/Sam-Kramerj/O https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujO }(j4O 
Sam-Kramerj6O J^2_ jO MDQ6VXNlcjYyMzg4MTQ=j8O 3https://avatars.githubusercontent.com/u/6238814?v=4j:O h5j!O 'https://api.github.com/users/Sam-Kramerj/O https://github.com/Sam-Kramerj=O 1https://api.github.com/users/Sam-Kramer/followersj?O >https://api.github.com/users/Sam-Kramer/following{/other_user}jAO 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jCO >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jEO 5https://api.github.com/users/Sam-Kramer/subscriptionsjGO ,https://api.github.com/users/Sam-Kramer/orgsjIO -https://api.github.com/users/Sam-Kramer/reposjKO 8https://api.github.com/users/Sam-Kramer/events{/privacy}jMO 7https://api.github.com/users/Sam-Kramer/received_eventsjOO UserjQO uparents]}(j	O (43adb2ed2ed640a3862ee0527e4d5f8ba090356aj!O ^https://api.github.com/repos/palantir/atlasdb/commits/43adb2ed2ed640a3862ee0527e4d5f8ba090356aj/O Shttps://github.com/palantir/atlasdb/commit/43adb2ed2ed640a3862ee0527e4d5f8ba090356auastats}(totalK	additionsK		deletionsKufiles]}(j	O (77a4a23bc29650398d2aeb66562f8429305e2753filename*scripts/circle-ci/publish-to-antithesis.shstatusmodifiedjkO K	jlO KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7466c4187727314b45a35469b31da6e79b69c4c0/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shraw_urlhttps://github.com/palantir/atlasdb/raw/7466c4187727314b45a35469b31da6e79b69c4c0/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=7466c4187727314b45a35469b31da6e79b69c4c0patchXl  @@ -12,18 +12,19 @@ fi
 
 printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://${ANTITHESIS_REPO_URL} --password-stdin
 
-./gradlew --scan docker
+./gradlew dockerTag
+
+VERSION=$(./gradlew -q printVersion)
 
 docker pull palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
 docker tag palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra ${ANTITHESIS_REPO_URL}/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
 docker push ${ANTITHESIS_REPO_URL}/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
 
-docker tag palantirtechnologies/timelock-server-distribution:unspecified ${ANTITHESIS_REPO_URL}/timelock-server-distribution:unspecified
-docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:unspecified
+docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${VERSION}
+docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${VERSION}
 
-docker tag palantirtechnologies/atlasdb-workload-server-distribution:unspecified ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:unspecified
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:unspecified
+docker tag palantirtechnologies/atlasdb-workload-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${VERSION}
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${VERSION}
 
-LATEST_ANTITHESIS_TAG=$(docker image ls palantirtechnologies/atlasdb-workload-server-antithesis --format "{{.Tag}}")
-docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}
+docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${VERSION}
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${VERSION}
\ No newline at end of fileuau(e98ea7f5640e5e30a9eb15174251b01a152b9901}(sha(e98ea7f5640e5e30a9eb15174251b01a152b9901node_idEC_kwDOAjP5fdoAKGU5OGVhN2Y1NjQwZTVlMzBhOWViMTUxNzQyNTFiMDFhMTUyYjk5MDEcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-23T22:49:16Zu	committer}(jO 
Ahmed AlouanejO aalouane@palantir.comjO 2023-04-23T22:49:16Zumessageadd flake rule to build filetree}(jO (c6e08bc9c4fa4b1eec7ec8a33062adf83b8eb740url`https://api.github.com/repos/palantir/atlasdb/git/trees/c6e08bc9c4fa4b1eec7ec8a33062adf83b8eb740ujO bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e98ea7f5640e5e30a9eb15174251b01a152b9901
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRFtewACgkQPlMHVIT1
yhr1lQf6AhheLtM5xFK4KJ+9+r+Sp/xubPlemB97HZgqBg712UYOBKd3hv5FyOeJ
aKnF4SdTFCi+EeBWx/ZPMlC8cdyT8U7b3fU6OM71Zpi2SMzRNHw9rfmv/njzd+WA
+5XTJwpj0p4Wve3qRok9OD55xOZp47+xY2flMvSiJqUmtx+IyjmLTQrkcVtQPOJ4
ZgK7ah+6rObUG7mPlEBpPmH6Lj+ANm/jDZVftuxZGvXO1o6fO2RmPys4PD8XEeoH
8OCsucrYI/iwYZc1L3HcVsmhx7w4Nyzzh55NQxUqSKWFx1ykfHf7JhkKl223J9YA
Ob2R9yGkEIZVIB6mQex0FgzNFrX7ZA==
=IZin
-----END PGP SIGNATURE-----payloadtree c6e08bc9c4fa4b1eec7ec8a33062adf83b8eb740
parent fa872ce2c305827598d58580fee5aa3866d92b93
author Ahmed Alouane <aalouane@palantir.com> 1682290156 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682290156 +0100

add flake rule to build file
uujO ^https://api.github.com/repos/palantir/atlasdb/commits/e98ea7f5640e5e30a9eb15174251b01a152b9901html_urlShttps://github.com/palantir/atlasdb/commit/e98ea7f5640e5e30a9eb15174251b01a152b9901comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e98ea7f5640e5e30a9eb15174251b01a152b9901/commentsjO }(loginergo14idJjO MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jO #https://api.github.com/users/ergo14jO https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujO }(jO ergo14jO JjO MDQ6VXNlcjMwOTAzNzM2jO 4https://avatars.githubusercontent.com/u/30903736?v=4jO h5jO #https://api.github.com/users/ergo14jO https://github.com/ergo14jO -https://api.github.com/users/ergo14/followersjO :https://api.github.com/users/ergo14/following{/other_user}jO 3https://api.github.com/users/ergo14/gists{/gist_id}jO :https://api.github.com/users/ergo14/starred{/owner}{/repo}jO 1https://api.github.com/users/ergo14/subscriptionsjO (https://api.github.com/users/ergo14/orgsjO )https://api.github.com/users/ergo14/reposjO 4https://api.github.com/users/ergo14/events{/privacy}jO 3https://api.github.com/users/ergo14/received_eventsjO UserjO uparents]}(jO (fa872ce2c305827598d58580fee5aa3866d92b93jO ^https://api.github.com/repos/palantir/atlasdb/commits/fa872ce2c305827598d58580fee5aa3866d92b93jO Shttps://github.com/palantir/atlasdb/commit/fa872ce2c305827598d58580fee5aa3866d92b93uastats}(totalK	additionsK	deletionsK ufiles]}(jO (5504ea3d7692e9bd5feb8a902db77c14b223e48ffilenameatlasdb-cli/build.gradlestatusmodifiedjO KjO K changesKblob_urllhttps://github.com/palantir/atlasdb/blob/e98ea7f5640e5e30a9eb15174251b01a152b9901/atlasdb-cli%2Fbuild.gradleraw_urlkhttps://github.com/palantir/atlasdb/raw/e98ea7f5640e5e30a9eb15174251b01a152b9901/atlasdb-cli%2Fbuild.gradlecontents_url~https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cli%2Fbuild.gradle?ref=e98ea7f5640e5e30a9eb15174251b01a152b9901patchX  @@ -8,6 +8,7 @@ dependencies {
     api project(':atlasdb-client')
     api project(':atlasdb-config')
     api project(':timestamp-api')
+    testImplementation project(path: ':flake-rule')
 
     compileOnly 'com.google.dagger:dagger'
     implementation 'io.airlift:airline'uau(70e74bbb05e17200e72cd2f193c178fdaea96512}(sha(70e74bbb05e17200e72cd2f193c178fdaea96512node_idEC_kwDOAjP5fdoAKDcwZTc0YmJiMDVlMTcyMDBlNzJjZDJmMTkzYzE3OGZkYWVhOTY1MTIcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-06-14T10:30:17Zu	committer}(jO GitHubjP noreply@github.comjP 2023-06-14T10:30:17Zumessage%Remove DefaultLocale override (#6605)tree}(jO (837003a98e627e4182a108c411c2413b36175c8furl`https://api.github.com/repos/palantir/atlasdb/git/trees/837003a98e627e4182a108c411c2413b36175c8fujP bhttps://api.github.com/repos/palantir/atlasdb/git/commits/70e74bbb05e17200e72cd2f193c178fdaea96512
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkiZa5CRBK7hj4Ov3rIwAAdUYIAJYzprQ/feHDw8L6sxc6241M
j0CoP07kAs/YXtyqKOFVlveMbmKmSwaI+vJU5CFtr479so7M/uYbovCSQ94Z5VfG
SBuZA7jTvorPZVWy7n3VKyyJwWXSPG1AwTt07ZTi1WYmCHTekMtNUziZf71Izdsa
I0zrgZwNYMS/SRGs+7ptRV4yD3Nvona+4tOfwXBw43dUQmrLqS/23uRpeSV8sAvX
4t18xtbAoEWhZ2Ig1w/ChhX1RdQazN88EVXAyZS4y7AIly65Ea9ry/7YUTFJ6RuV
EXg+vVUE2bxJQyDBm62rPORY7kX8lHHO9DXOYUG1amKJdwWW7zERcKvG5yvXPTA=
=ihx5
-----END PGP SIGNATURE-----
payloadtree 837003a98e627e4182a108c411c2413b36175c8f
parent 20e92777b54ac5a285338bfac7caf6c222fab994
author Patrick Koenig <pkoenig10@gmail.com> 1686738617 -0700
committer GitHub <noreply@github.com> 1686738617 +0000

Remove DefaultLocale override (#6605)

 uujP ^https://api.github.com/repos/palantir/atlasdb/commits/70e74bbb05e17200e72cd2f193c178fdaea96512html_urlShttps://github.com/palantir/atlasdb/commit/70e74bbb05e17200e72cd2f193c178fdaea96512comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/70e74bbb05e17200e72cd2f193c178fdaea96512/commentsjO }(login	pkoenig10idJLvP jO MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5jP &https://api.github.com/users/pkoenig10jP https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminujP }(j"P web-flowj$P J/jO MDQ6VXNlcjE5ODY0NDQ3j&P 4https://avatars.githubusercontent.com/u/19864447?v=4j(P h5jP %https://api.github.com/users/web-flowjP https://github.com/web-flowj+P /https://api.github.com/users/web-flow/followersj-P <https://api.github.com/users/web-flow/following{/other_user}j/P 5https://api.github.com/users/web-flow/gists{/gist_id}j1P <https://api.github.com/users/web-flow/starred{/owner}{/repo}j3P 3https://api.github.com/users/web-flow/subscriptionsj5P *https://api.github.com/users/web-flow/orgsj7P +https://api.github.com/users/web-flow/reposj9P 6https://api.github.com/users/web-flow/events{/privacy}j;P 5https://api.github.com/users/web-flow/received_eventsj=P Userj?P uparents]}(jO (20e92777b54ac5a285338bfac7caf6c222fab994jP ^https://api.github.com/repos/palantir/atlasdb/commits/20e92777b54ac5a285338bfac7caf6c222fab994jP Shttps://github.com/palantir/atlasdb/commit/20e92777b54ac5a285338bfac7caf6c222fab994uastats}(totalK	additionsK	deletionsKufiles]}(jO (37cadd28010d8b86de06b5d25a04496445812ba9filenamebuild.gradlestatusmodifiedjYP KjZP KchangesKblob_url^https://github.com/palantir/atlasdb/blob/70e74bbb05e17200e72cd2f193c178fdaea96512/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/70e74bbb05e17200e72cd2f193c178fdaea96512/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=70e74bbb05e17200e72cd2f193c178fdaea96512patchXD  @@ -113,8 +113,7 @@ allprojects {
                 'Slf4jLogsafeArgs',
                 'StaticAssignmentInConstructor',
                 'StrictUnusedVariable'
-        options.errorprone.error 'DefaultLocale',
-                'SafeLoggingPropagation'
+        options.errorprone.error 'SafeLoggingPropagation'
     }
 }
 uau(560e7030b459810e22d2e068944790e38a965506}(sha(560e7030b459810e22d2e068944790e38a965506node_idEC_kwDOAjP5fdoAKDU2MGU3MDMwYjQ1OTgxMGUyMmQyZTA2ODk0NDc5MGUzOGE5NjU1MDYcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-08-08T14:59:15Zu	committer}(jvP 	Tom PapkejxP tpapke@palantir.comjzP 2023-08-08T14:59:15ZumessageRevert to non-metadata versiontree}(jnP (08cfaee26d6460932e8204342af6e42bad711e19url`https://api.github.com/repos/palantir/atlasdb/git/trees/08cfaee26d6460932e8204342af6e42bad711e19ujP bhttps://api.github.com/repos/palantir/atlasdb/git/commits/560e7030b459810e22d2e068944790e38a965506
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTSWEMACgkQmF9s0kaF
Iw1DlggAv6UKWClkGcVbwDZobgIqmg15vgjTSeLlGHxmbz3OAP0zPypZbrAH9kC1
IqaqxM0CYx4u4OZno9pg2xyvhybk8H46wXzv0mbM55dBugx43gkc43xe1juClZ8O
+URyY7IcVdoEeDuZpxV8gLVYM3iwk+v0nI8d7VfCEMF7Q2Mg/1KCzqWSSYcpKueA
Q0m8cBTHR9E+ZLvIg3NpBGj/YmQchTGWgkcoVug/XDdIaWKwz+GOwlHIybrDJ9jF
Nd7Sy+ZyBSiPxYASlebOgHXVrtuA561K+yjxHSaCyOfHhwt4NCk4uKdUWr9PBfvP
HmoEa1/K9EQ95s3Uz8EIlgywHwIWpQ==
=OZB2
-----END PGP SIGNATURE-----payloadtree 08cfaee26d6460932e8204342af6e42bad711e19
parent b072666aa44be73d77f8ae9498d9372c6d6ef4c8
author Tom Papke <tpapke@palantir.com> 1691506755 +0100
committer Tom Papke <tpapke@palantir.com> 1691506755 +0100

Revert to non-metadata version
uujP ^https://api.github.com/repos/palantir/atlasdb/commits/560e7030b459810e22d2e068944790e38a965506html_urlShttps://github.com/palantir/atlasdb/commit/560e7030b459810e22d2e068944790e38a965506comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/560e7030b459810e22d2e068944790e38a965506/commentsjtP }(login	ToemmscheidJbojpP MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jP &https://api.github.com/users/ToemmschejP https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj|P }(jP 	ToemmschejP JbojpP MDQ6VXNlcjQzNjc1NDkwjP 4https://avatars.githubusercontent.com/u/43675490?v=4jP h5jP &https://api.github.com/users/ToemmschejP https://github.com/ToemmschejP 0https://api.github.com/users/Toemmsche/followersjP =https://api.github.com/users/Toemmsche/following{/other_user}jP 6https://api.github.com/users/Toemmsche/gists{/gist_id}jP =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jP 4https://api.github.com/users/Toemmsche/subscriptionsjP +https://api.github.com/users/Toemmsche/orgsjP ,https://api.github.com/users/Toemmsche/reposjP 7https://api.github.com/users/Toemmsche/events{/privacy}jP 6https://api.github.com/users/Toemmsche/received_eventsjP UserjP uparents]}(jnP (b072666aa44be73d77f8ae9498d9372c6d6ef4c8jP ^https://api.github.com/repos/palantir/atlasdb/commits/b072666aa44be73d77f8ae9498d9372c6d6ef4c8jP Shttps://github.com/palantir/atlasdb/commit/b072666aa44be73d77f8ae9498d9372c6d6ef4c8uastats}(totalKd	additionsK	deletionsKUufiles]}(jnP (707d944c79dae8e5abf61228984f528be68ecae2filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedjP KjP KUchangesKdblob_urlhttps://github.com/palantir/atlasdb/blob/560e7030b459810e22d2e068944790e38a965506/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/560e7030b459810e22d2e068944790e38a965506/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=560e7030b459810e22d2e068944790e38a965506patchX  @@ -2680,19 +2680,23 @@ public void lockCollectionWithoutMetadataIsCorrectForRandomWrites() {
         List<Cell> cells = generateCells(numberOfRowsPerTable, numberOfCellsPerRow);
 
         Transaction txn = getSnapshotTransactionWith(timelockService, tableToConflictHandler);
-
         Map<TableReference, Set<Cell>> cellsWithWrites = new HashMap<>();
-        Map<TableReference, Map<Cell, ChangeMetadata>> cellsWithMetadata = new HashMap<>();
-
-        IntStream.range(0, maxWritesPerCell)
-                .forEach(_unused -> applyRandomWriteMaybeWithMetadata(
-                        random, txn, tables, tableToConflictHandler, cells, cellsWithWrites, cellsWithMetadata));
+        for (int i = 0; i < maxWritesPerCell; i++) {
+            TableReference table = tables.get(random.nextInt(tables.size()));
+            Cell cell = cells.get(random.nextInt(cells.size()));
+            if (random.nextBoolean()) {
+                txn.put(table, ImmutableMap.of(cell, TEST_VALUE));
+            } else {
+                txn.delete(table, ImmutableSet.of(cell));
+            }
+            cellsWithWrites.computeIfAbsent(table, _unused -> new HashSet<>()).add(cell);
+        }
 
         verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
                 txn,
                 timelockService,
-                getExpectedLocksAndMetadata(tableToConflictHandler, cellsWithWrites, cellsWithMetadata),
-                "Expect locks and metadata to be passed to TimeLock. Random seed: " + randomSeed);
+                LocksAndMetadata.of(getExpectedLocks(tableToConflictHandler, cellsWithWrites), Optional.empty()),
+                "Expect locks to be passed to TimeLock. Random seed: " + randomSeed);
     }
 
     @Test
@@ -3050,10 +3054,9 @@ private Map<TableReference, ConflictHandler> getTablesForAllConflictHandlers() {
                 .collectToMap();
     }
 
-    private static LocksAndMetadata getExpectedLocksAndMetadata(
+    private static Set<LockDescriptor> getExpectedLocks(
             Map<TableReference, ConflictHandler> tableToConflictHandler,
-            Map<TableReference, Set<Cell>> cellsWithWrites,
-            Map<TableReference, Map<Cell, ChangeMetadata>> cellsWithMetadata) {
+            Map<TableReference, Set<Cell>> cellsWithWrites) {
         ImmutableSet.Builder<LockDescriptor> locksBuilder = ImmutableSet.builder();
         cellsWithWrites.forEach((table, writes) -> {
             ConflictHandler conflictHandler = tableToConflictHandler.get(table);
@@ -3067,66 +3070,7 @@ private static LocksAndMetadata getExpectedLocksAndMetadata(
                 }
             });
         });
-        ImmutableMap.Builder<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadataBuilder =
-                ImmutableMap.builder();
-        cellsWithMetadata.forEach((table, metadataMap) -> {
-            ConflictHandler conflictHandler = tableToConflictHandler.get(table);
-            metadataMap.forEach((cell, metadata) -> {
-                if (conflictHandler.lockCellsForConflicts()) {
-                    lockDescriptorToChangeMetadataBuilder.put(
-                            AtlasCellLockDescriptor.of(
-                                    table.getQualifiedName(), cell.getRowName(), cell.getColumnName()),
-                            metadata);
-                }
-                if (conflictHandler.lockRowsForConflicts()) {
-                    lockDescriptorToChangeMetadataBuilder.put(
-                            AtlasRowLockDescriptor.of(table.getQualifiedName(), cell.getRowName()), metadata);
-                }
-            });
-        });
-        Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata =
-                lockDescriptorToChangeMetadataBuilder.buildOrThrow();
-        return LocksAndMetadata.of(
-                locksBuilder.build(),
-                lockDescriptorToChangeMetadata.isEmpty()
-                        ? Optional.empty()
-                        : Optional.of(LockRequestMetadata.of(lockDescriptorToChangeMetadata)));
-    }
-
-    private static void applyRandomWriteMaybeWithMetadata(
-            Random random,
-            Transaction txn,
-            List<TableReference> tables,
-            Map<TableReference, ConflictHandler> tableToConflictHandler,
-            List<Cell> cells,
-            Map<TableReference, Set<Cell>> cellsWithWrites,
-            Map<TableReference, Map<Cell, ChangeMetadata>> cellsWithMetadata) {
-        TableReference table = tables.get(random.nextInt(tables.size()));
-        Cell cell = cells.get(random.nextInt(cells.size()));
-
-        boolean canWriteMetadata = !(tableToConflictHandler.get(table).lockRowsForConflicts()
-                && cellsWithMetadata.getOrDefault(table, ImmutableMap.of()).keySet().stream()
-                        .anyMatch(c -> Arrays.equals(c.getRowName(), cell.getRowName())));
-        // With metadata or not?
-        if (canWriteMetadata && random.nextBoolean()) {
-            ChangeMetadata metadata = generateRandomChangeMetadata(random);
-            if (random.nextBoolean()) {
-                txn.putWithMetadata(table, ImmutableMap.of(cell, ValueAndChangeMetadata.of(TEST_VALUE, metadata)));
-            } else {
-                txn.deleteWithMetadata(table, ImmutableMap.of(cell, metadata));
-            }
-            cellsWithWrites.computeIfAbsent(table, ignored -> new HashSet<>()).add(cell);
-            cellsWithMetadata.computeIfAbsent(table, ignored -> new HashMap<>()).put(cell, metadata);
-        } else {
-            if (random.nextBoolean()) {
-                txn.put(table, ImmutableMap.of(cell, TEST_VALUE));
-            } else {
-                txn.delete(table, ImmutableSet.of(cell));
-            }
-            cellsWithWrites.computeIfAbsent(table, ignored -> new HashSet<>()).add(cell);
-            // no metadata
-            cellsWithMetadata.computeIfAbsent(table, ignored -> new HashMap<>()).remove(cell);
-        }
+        return locksBuilder.build();
     }
 
     private static List<Cell> generateCells(int numberOfRowsPerTable, int numberOfCellsPerRow) {
@@ -3136,20 +3080,6 @@ private static List<Cell> generateCells(int numberOfRowsPerTable, int numberOfCe
                 .collect(Collectors.toUnmodifiableList());
     }
 
-    private static ChangeMetadata generateRandomChangeMetadata(Random random) {
-        switch (random.nextInt(4)) {
-            case 0:
-                return ChangeMetadata.unchanged();
-            case 1:
-                return ChangeMetadata.updated(PtBytes.toBytes(random.nextLong()), PtBytes.toBytes(random.nextLong()));
-            case 2:
-                return ChangeMetadata.created(PtBytes.toBytes(random.nextLong()));
-            case 3:
-                return ChangeMetadata.deleted(PtBytes.toBytes(random.nextLong()));
-        }
-        throw new RuntimeException("unreachable");
-    }
-
     private static class VerifyingKeyValueServiceDelegate extends ForwardingKeyValueService {
         private final KeyValueService delegate;
         private final PathTypeTracker pathTypeTracker;uau(37491be5f60d580fde1d0112266867e26ce73422}(sha(37491be5f60d580fde1d0112266867e26ce73422node_idEC_kwDOAjP5fdoAKDM3NDkxYmU1ZjYwZDU4MGZkZTFkMDExMjI2Njg2N2UyNmNlNzM0MjIcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-16T00:02:16Zu	committer}(jP 
Ahmed AlouanejP aalouane@palantir.comjP 2023-05-16T00:02:16ZumessageJMerge branch 'tlmetexxxxx' of github.com:palantir/atlasdb into tlmetexxxxxtree}(jP (5d2ecf384a10cc990764db3777576cdc5dbd32b9url`https://api.github.com/repos/palantir/atlasdb/git/trees/5d2ecf384a10cc990764db3777576cdc5dbd32b9ujP bhttps://api.github.com/repos/palantir/atlasdb/git/commits/37491be5f60d580fde1d0112266867e26ce73422
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiyDIACgkQPlMHVIT1
yhpO+wf+PoO447hTNiP2AENIY9TY7H98heMCe4HPLpS4FHWqS6FZowkp6LLH+6bW
SSc+kw488iS1V3dPNXCAxzyYUkG/LMsDt9arVgjZJGxPRoKc5FXQYZEOjFU/SSdM
drZeJFKgaOu+dqwkvVeQ6JCMSIkmk+25s7d68RaP/vfWWfRMBi4JioFejFb4Hz8A
OYlymP6tEw/fAxegtyzN/jAe+q7z2B3h00EgKnJIW4cZBxJx1JslrbUba7xIcGpI
uoisrfti5D/jNJFea8pOAYUY9twfH0hs4960lG0XUvsQmPe1HnhM/gYttgB+TJko
oHfx5e5WNLbmTjcc5j210tGdgDE1UA==
=o/pl
-----END PGP SIGNATURE-----payloadXY  tree 5d2ecf384a10cc990764db3777576cdc5dbd32b9
parent 9a85aab5220dd6762c21eacc9f0cc375dabeee64
parent aad68bbf9d1e6ef848f56ab9e80bfd77fc09b825
author Ahmed Alouane <aalouane@palantir.com> 1684195336 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684195336 +0100

Merge branch 'tlmetexxxxx' of github.com:palantir/atlasdb into tlmetexxxxx
uujP ^https://api.github.com/repos/palantir/atlasdb/commits/37491be5f60d580fde1d0112266867e26ce73422html_urlShttps://github.com/palantir/atlasdb/commit/37491be5f60d580fde1d0112266867e26ce73422comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/37491be5f60d580fde1d0112266867e26ce73422/commentsjP }(loginergo14idJjP MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jP #https://api.github.com/users/ergo14jQ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_admin      ujP }(jQ ergo14jQ JjP MDQ6VXNlcjMwOTAzNzM2jQ 4https://avatars.githubusercontent.com/u/30903736?v=4jQ h5jP #https://api.github.com/users/ergo14jQ https://github.com/ergo14jQ -https://api.github.com/users/ergo14/followersjQ :https://api.github.com/users/ergo14/following{/other_user}jQ 3https://api.github.com/users/ergo14/gists{/gist_id}jQ :https://api.github.com/users/ergo14/starred{/owner}{/repo}j!Q 1https://api.github.com/users/ergo14/subscriptionsj#Q (https://api.github.com/users/ergo14/orgsj%Q )https://api.github.com/users/ergo14/reposj'Q 4https://api.github.com/users/ergo14/events{/privacy}j)Q 3https://api.github.com/users/ergo14/received_eventsj+Q Userj-Q uparents](}(jP (9a85aab5220dd6762c21eacc9f0cc375dabeee64jP ^https://api.github.com/repos/palantir/atlasdb/commits/9a85aab5220dd6762c21eacc9f0cc375dabeee64jQ Shttps://github.com/palantir/atlasdb/commit/9a85aab5220dd6762c21eacc9f0cc375dabeee64u}(jP (aad68bbf9d1e6ef848f56ab9e80bfd77fc09b825jP ^https://api.github.com/repos/palantir/atlasdb/commits/aad68bbf9d1e6ef848f56ab9e80bfd77fc09b825jQ Shttps://github.com/palantir/atlasdb/commit/aad68bbf9d1e6ef848f56ab9e80bfd77fc09b825uestats}(totalK 	additionsK 	deletionsK ufiles]u(5fff27f9738a90b791fa10c302adb43339ca28ee}(sha(5fff27f9738a90b791fa10c302adb43339ca28eenode_idEC_kwDOAjP5fdoAKDVmZmYyN2Y5NzM4YTkwYjc5MWZhMTBjMzAyYWRiNDMzMzljYTI4ZWUcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-15T08:59:52Zu	committer}(jYQ 	Tom Papkej[Q tpapke@palantir.comj]Q 2023-06-15T08:59:52ZumessageMake start() synchronized to prevent double starts
Actually close snapshot manager when close on LockService is called

Increase default thread info snapshot intervaltree}(jQQ (5693a0eed23321070d654c2c8b45f420b5d25a27url`https://api.github.com/repos/palantir/atlasdb/git/trees/5693a0eed23321070d654c2c8b45f420b5d25a27ujiQ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5fff27f9738a90b791fa10c302adb43339ca28ee
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSK0wgACgkQmF9s0kaF
Iw3kywf+KRTItY8KRY9I6sFMV/MiAy8g8dy+e3tyndOjEKy4od7Fro1TI5HpJfSn
EdcjstWw0DjRb9HNqlFfmeqLA0g3KrM5fyao353oOhdy56TvSqK6Z9Pw5ZqP0S0Z
VxRoUXKjrU56VrHe40mA/nSG+E3siIRlGEJtdFPqjX1kRl0NtLW+/WgUih5e3M2m
zI2oF5HWq7A+eJ9oleHCAxPYymijNaaJmJk8K+OMGC052E3ehspKLD1RQPnSI/C6
CRD6CZNPtkjWJ0IvqhXfvYrahHYCkikqw2Moe1xG58h1504fMJ7S8Uieem++MSq+
rc01BjN57qGOa4TkoeZq6ppgr5E5nw==
=63LP
-----END PGP SIGNATURE-----payloadXy  tree 5693a0eed23321070d654c2c8b45f420b5d25a27
parent 051f92a393a0f77ccc3027255d1ddeb5375e99d4
author Tom Papke <tpapke@palantir.com> 1686819592 +0100
committer Tom Papke <tpapke@palantir.com> 1686819592 +0100

Make start() synchronized to prevent double starts
Actually close snapshot manager when close on LockService is called

Increase default thread info snapshot interval
uujiQ ^https://api.github.com/repos/palantir/atlasdb/commits/5fff27f9738a90b791fa10c302adb43339ca28eehtml_urlShttps://github.com/palantir/atlasdb/commit/5fff27f9738a90b791fa10c302adb43339ca28eecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5fff27f9738a90b791fa10c302adb43339ca28ee/commentsjWQ }(login	ToemmscheidJbojSQ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jiQ &https://api.github.com/users/ToemmschejwQ https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj_Q }(j|Q 	Toemmschej~Q JbojSQ MDQ6VXNlcjQzNjc1NDkwjQ 4https://avatars.githubusercontent.com/u/43675490?v=4jQ h5jiQ &https://api.github.com/users/ToemmschejwQ https://github.com/ToemmschejQ 0https://api.github.com/users/Toemmsche/followersjQ =https://api.github.com/users/Toemmsche/following{/other_user}jQ 6https://api.github.com/users/Toemmsche/gists{/gist_id}jQ =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jQ 4https://api.github.com/users/Toemmsche/subscriptionsjQ +https://api.github.com/users/Toemmsche/orgsjQ ,https://api.github.com/users/Toemmsche/reposjQ 7https://api.github.com/users/Toemmsche/events{/privacy}jQ 6https://api.github.com/users/Toemmsche/received_eventsjQ UserjQ uparents]}(jQQ (051f92a393a0f77ccc3027255d1ddeb5375e99d4jiQ ^https://api.github.com/repos/palantir/atlasdb/commits/051f92a393a0f77ccc3027255d1ddeb5375e99d4jwQ Shttps://github.com/palantir/atlasdb/commit/051f92a393a0f77ccc3027255d1ddeb5375e99d4uastats}(totalK 	additionsK	deletionsKufiles](}(jQQ (8e3edb51b7ae6b3309b255039a0a6dd18134f32dfilenameJlock-api/src/main/java/com/palantir/lock/DebugThreadInfoConfiguration.javastatusmodifiedjQ KjQ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5fff27f9738a90b791fa10c302adb43339ca28ee/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5fff27f9738a90b791fa10c302adb43339ca28ee/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.java?ref=5fff27f9738a90b791fa10c302adb43339ca28eepatch@@ -35,6 +35,6 @@ default boolean recordThreadInfo() {
     @JsonProperty("thread-info-snapshot-interval-millis")
     @Value.Default
     default long threadInfoSnapshotIntervalMillis() {
-        return 5000L;
+        return 300000L;
     }
 }u}(jQQ (009674f93f879779b615a401d509458300d728c2jQ Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javajQ modifiedjQ KjQ K jQ KjQ https://github.com/palantir/atlasdb/blob/5fff27f9738a90b791fa10c302adb43339ca28ee/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javajQ https://github.com/palantir/atlasdb/raw/5fff27f9738a90b791fa10c302adb43339ca28ee/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javajQ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=5fff27f9738a90b791fa10c302adb43339ca28eejQ X@  @@ -1231,6 +1231,7 @@ private String safeLockStats() {
     public void close() {
         if (isShutDown.compareAndSet(false, true)) {
             lockReapRunner.close();
+            threadInfoSnapshotManager.close();
             blockingThreads.forEach(Thread::interrupt);
             callOnClose.run();
         }u}(jQQ (91d14e52a8ba4c982aeb99e4cca0e7778c623912jQ Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javajQ modifiedjQ KjQ KjQ KjQ https://github.com/palantir/atlasdb/blob/5fff27f9738a90b791fa10c302adb43339ca28ee/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javajQ https://github.com/palantir/atlasdb/raw/5fff27f9738a90b791fa10c302adb43339ca28ee/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javajQ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=5fff27f9738a90b791fa10c302adb43339ca28eejQ Xh  @@ -53,7 +53,7 @@ public class LockThreadInfoSnapshotManager implements AutoCloseable {
 
     private ScheduledExecutorService scheduledExecutorService = PTExecutors.newSingleThreadScheduledExecutor();
 
-    private Disposable disposable;
+    private Optional<Disposable> disposable;
 
     @GuardedBy("this")
     private boolean isRunning = false;
@@ -65,15 +65,18 @@ public LockThreadInfoSnapshotManager(
         this.tokenMapSupplier = mapSupplier;
     }
 
-    public void start() {
+    public synchronized void start() {
+        if (isRunning || isClosed()) {
+            return;
+        }
         scheduleRun();
-        disposable = threadInfoConfiguration.subscribe(newThreadInfoConfiguration -> {
+        disposable = Optional.of(threadInfoConfiguration.subscribe(newThreadInfoConfiguration -> {
             synchronized (this) {
                 if (!isRunning) {
                     scheduleRun();
                 }
             }
-        });
+        }));
     }
 
     private void run() {
@@ -91,6 +94,9 @@ synchronized boolean isRunning() {
     }
 
     private synchronized void scheduleRun() {
+        if (isClosed()) {
+            return;
+        }
         if (threadInfoConfiguration.current().recordThreadInfo()) {
             if (!isRunning) {
                 log.info(
@@ -148,11 +154,14 @@ void takeSnapshot() {
                 .collect(Collectors.toMap(Entry::getKey, Entry::getValue, (existing, replacement) -> existing));
     }
 
+    @VisibleForTesting
+    boolean isClosed() {
+        return scheduledExecutorService.isShutdown();
+    }
+
     @Override
     public synchronized void close() {
         scheduledExecutorService.shutdown();
-        // To prevent scheduling of future tasks, which will throw an exception
-        isRunning = true;
-        disposable.dispose();
+        disposable.ifPresent(Disposable::dispose);
     }
 }u}(jQQ (dd2ac7cc4a785154501b8038bc4c1f375ea4194ajQ Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javajQ modifiedjQ KjQ K jQ KjQ https://github.com/palantir/atlasdb/blob/5fff27f9738a90b791fa10c302adb43339ca28ee/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javajQ https://github.com/palantir/atlasdb/raw/5fff27f9738a90b791fa10c302adb43339ca28ee/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javajQ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=5fff27f9738a90b791fa10c302adb43339ca28eejQ X  @@ -386,6 +386,12 @@ public void willRestartWhenConfigIsUpdated() throws InterruptedException {
                 .doesNotContainKey(TEST_LOCK_1));
     }
 
+    @Test
+    public void closesWithLockService() {
+        lockService.close();
+        assertThat(lockService.getSnapshotManager().isClosed()).isTrue();
+    }
+
     private void forceSnapshot() {
         lockService.getSnapshotManager().takeSnapshot();
     }ueu(19b62c179d41b87d35c7dca866b5e134cc05b906}(sha(19b62c179d41b87d35c7dca866b5e134cc05b906node_idEC_kwDOAjP5fdoAKDE5YjYyYzE3OWQ0MWI4N2QzNWM3ZGNhODY2YjVlMTM0Y2MwNWI5MDYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T15:36:14Zu	committer}(jQ 
Ahmed AlouanejQ aalouane@palantir.comjQ 2023-05-15T15:36:14Zumessage	fail fasttree}(jQ (ff498f59dfd6cddab7576b9250d065d9a405d9eburl`https://api.github.com/repos/palantir/atlasdb/git/trees/ff498f59dfd6cddab7576b9250d065d9a405d9ebujQ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/19b62c179d41b87d35c7dca866b5e134cc05b906
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiUW4ACgkQPlMHVIT1
yhrzewf+PCEioLAPn9+8rvI8eHOATNaIuA7OSF186WlUGAk+5KDB3HkjKKU1VRi7
gw2CKwrNcfW1OK9FOmOFOAueNI2TttDlpevAR8L+1py6zZfo13t4IgVdJP3dpkfm
5gFt+eX7lWe3GiNLQuvM6winxwrE6VOvm6Kq+J29nM2+SwbqHmT06A5XJyyk+Zwd
eu1125g3IJxrSl6+2U7j2FFvlKLITdg94UHcc1YKU4fb4vcm9SiLOfGGrVkqzPLQ
r5/8XX4NGMtPBPYUrmEdg/7xRK23N+zO94r4WoPq/upla4Ru4nFFWSjT80vy5U25
f7mi+yHj2Z0S6KT9t94jnrlevSQ8YQ==
=evHa
-----END PGP SIGNATURE-----payloadtree ff498f59dfd6cddab7576b9250d065d9a405d9eb
parent fbb9a1ec7f4df11d5143c74ea3874843b379e789
author Ahmed Alouane <aalouane@palantir.com> 1684164974 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684164974 +0100

fail fast
uujQ ^https://api.github.com/repos/palantir/atlasdb/commits/19b62c179d41b87d35c7dca866b5e134cc05b906html_urlShttps://github.com/palantir/atlasdb/commit/19b62c179d41b87d35c7dca866b5e134cc05b906comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/19b62c179d41b87d35c7dca866b5e134cc05b906/commentsjQ }(loginergo14idJjQ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jQ #https://api.github.com/users/ergo14jR https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujQ }(jR ergo14j
R JjQ MDQ6VXNlcjMwOTAzNzM2jR 4https://avatars.githubusercontent.com/u/30903736?v=4jR h5jQ #https://api.github.com/users/ergo14jR https://github.com/ergo14jR -https://api.github.com/users/ergo14/followersjR :https://api.github.com/users/ergo14/following{/other_user}jR 3https://api.github.com/users/ergo14/gists{/gist_id}jR :https://api.github.com/users/ergo14/starred{/owner}{/repo}jR 1https://api.github.com/users/ergo14/subscriptionsjR (https://api.github.com/users/ergo14/orgsj R )https://api.github.com/users/ergo14/reposj"R 4https://api.github.com/users/ergo14/events{/privacy}j$R 3https://api.github.com/users/ergo14/received_eventsj&R Userj(R uparents]}(jQ (fbb9a1ec7f4df11d5143c74ea3874843b379e789jQ ^https://api.github.com/repos/palantir/atlasdb/commits/fbb9a1ec7f4df11d5143c74ea3874843b379e789jR Shttps://github.com/palantir/atlasdb/commit/fbb9a1ec7f4df11d5143c74ea3874843b379e789uastats}(totalK	additionsK	deletionsKufiles](}(jQ (2caa47ac951f1248b2272f5652f42a85e858f016filenamegradle/shared.gradlestatusmodifiedjBR KjCR K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/19b62c179d41b87d35c7dca866b5e134cc05b906/gradle%2Fshared.gradleraw_urlghttps://github.com/palantir/atlasdb/raw/19b62c179d41b87d35c7dca866b5e134cc05b906/gradle%2Fshared.gradlecontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fshared.gradle?ref=19b62c179d41b87d35c7dca866b5e134cc05b906patch@@ -88,6 +88,7 @@ afterEvaluate {
 
 tasks.withType(Test) {
     enableAssertions = true
+    failFast = true
 }
 
 ext.atlasdb_shaded = 'com.palantir.atlasdb.shaded.'u}(jQ (06558f300498d2812408cc222363a9c7a2cae7e5jHR %scripts/circle-ci/run-circle-tests.shjJR modifiedjBR KjCR KjLR KjMR {https://github.com/palantir/atlasdb/blob/19b62c179d41b87d35c7dca866b5e134cc05b906/scripts%2Fcircle-ci%2Frun-circle-tests.shjOR zhttps://github.com/palantir/atlasdb/raw/19b62c179d41b87d35c7dca866b5e134cc05b906/scripts%2Fcircle-ci%2Frun-circle-tests.shjQR https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=19b62c179d41b87d35c7dca866b5e134cc05b906jSR @@ -2,7 +2,7 @@
 
 set -x
 
-BASE_GRADLE_ARGS="--profile --continue"
+BASE_GRADLE_ARGS="--profile"
 
 function checkDocsBuild {
      pyenv install 3.5.4ueu(ffaa25caaa6d8fe13003152cc5569f31acb58507}(sha(ffaa25caaa6d8fe13003152cc5569f31acb58507node_idEC_kwDOAjP5fdoAKGZmYWEyNWNhYWE2ZDhmZTEzMDAzMTUyY2M1NTY5ZjMxYWNiNTg1MDccommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-20T15:16:43Zu	committer}(jgR Lucas MeirelesjiR meireles31@msn.comjkR 2023-07-20T15:16:43Zumessagedescriptiontree}(j_R (1511a128ee654d8465d468f0a37c5582571fbed5url`https://api.github.com/repos/palantir/atlasdb/git/trees/1511a128ee654d8465d468f0a37c5582571fbed5ujwR bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ffaa25caaa6d8fe13003152cc5569f31acb58507
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS5T9sACgkQJd22kJ7J
Giwj0Af/QRzwQG6jLG86omNPoqu7fi5wB/zIDKewXR+2Hjbu3Y4VMq/wRXdeWTuQ
2dQj8Ii8Z/eM0Slbvty8TQUIdi3eDJoyjbTIRSDMjrr5RKT2UlsQ7uRbzO2xwEQY
pmmbJ6/w/uruJCCVzc5/FI38XToV0VkhACcWbMbbjT0kkEpGvZnfgRXHgJ5h2jF3
LeT+NzuhHKXoQJFIW+Nr3U3DnCIWJkem7SmCuxbXsxBH113v0LyU670+sduAAVqP
xvenWNX2/WrFwaeHhvdPBaAV7FhC2JAouxdum24erLeeOOQl6D66aETDMdAaqmlc
CReOBD2aO81mtHRBVEj9uHBtuBb25Q==
=8nlg
-----END PGP SIGNATURE-----payloadtree 1511a128ee654d8465d468f0a37c5582571fbed5
parent 90477bd0a16681c6415030719d9ecf2a27df0611
author Lucas Meireles <meireles31@msn.com> 1689866203 +0100
committer Lucas Meireles <meireles31@msn.com> 1689866203 +0100

description
uujwR ^https://api.github.com/repos/palantir/atlasdb/commits/ffaa25caaa6d8fe13003152cc5569f31acb58507html_urlShttps://github.com/palantir/atlasdb/commit/ffaa25caaa6d8fe13003152cc5569f31acb58507comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ffaa25caaa6d8fe13003152cc5569f31acb58507/commentsjeR }(loginLucasIMEidJg jaR MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jwR %https://api.github.com/users/LucasIMEjR https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujmR }(jR LucasIMEjR Jg jaR MDQ6VXNlcjY3ODczMTE=jR 3https://avatars.githubusercontent.com/u/6787311?v=4jR h5jwR %https://api.github.com/users/LucasIMEjR https://github.com/LucasIMEjR /https://api.github.com/users/LucasIME/followersjR <https://api.github.com/users/LucasIME/following{/other_user}jR 5https://api.github.com/users/LucasIME/gists{/gist_id}jR <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jR 3https://api.github.com/users/LucasIME/subscriptionsjR *https://api.github.com/users/LucasIME/orgsjR +https://api.github.com/users/LucasIME/reposjR 6https://api.github.com/users/LucasIME/events{/privacy}jR 5https://api.github.com/users/LucasIME/received_eventsjR UserjR uparents]}(j_R (90477bd0a16681c6415030719d9ecf2a27df0611jwR ^https://api.github.com/repos/palantir/atlasdb/commits/90477bd0a16681c6415030719d9ecf2a27df0611jR Shttps://github.com/palantir/atlasdb/commit/90477bd0a16681c6415030719d9ecf2a27df0611uastats}(totalK	additionsK	deletionsKufiles]}(j_R (ad251a4ccbf212240935e636746075522eafc994filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedjR KjR KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ffaa25caaa6d8fe13003152cc5569f31acb58507/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ffaa25caaa6d8fe13003152cc5569f31acb58507/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=ffaa25caaa6d8fe13003152cc5569f31acb58507patchX#  @@ -1726,7 +1726,7 @@ public void keepNumberOfExpectedCellsTheSameIfNoneCached() {
                 spy(getSnapshotTransactionWith(transactionTs, res, mockLockWatchManager, pathTypeTracker));
         Transaction transaction = transactionWrapper.apply(spiedSnapshotTransaction, pathTypeTracker);
 
-        // Fetching 3 cells, but expect only 2 to be present.
+        // Fetching 3 cells, but expect only 2 to be present, for example
         assertThatCode(() -> transaction.getWithExpectedNumberOfCells(
                         TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2))
                 .doesNotThrowAnyException();
@@ -1763,7 +1763,7 @@ public void reduceCachedCellsFromNumberOfExpectedCells() {
                 spy(getSnapshotTransactionWith(transactionTs, res, mockLockWatchManager, pathTypeTracker));
         Transaction transaction = transactionWrapper.apply(spiedSnapshotTransaction, pathTypeTracker);
 
-        // Fetching 3 cells, but expect only 2 to be present.
+        // Fetching 3 cells, but expect only 2 to be present, for example
         assertThatCode(() -> transaction.getWithExpectedNumberOfCells(
                         TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2))
                 .doesNotThrowAnyException();uau(aec382ff5fabb576327a4b4228a46c26a6058609}(sha(aec382ff5fabb576327a4b4228a46c26a6058609node_idEC_kwDOAjP5fdoAKGFlYzM4MmZmNWZhYmI1NzYzMjdhNGI0MjI4YTQ2YzI2YTYwNTg2MDkcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-06-12T14:00:24Zu	committer}(jR 
svc-changelogjR svc-changelog@palantir.comjR 2023-06-12T14:00:24ZumessageAdd generated changelog entriestree}(jR (5e09bdb918f0f96a40ef07c685e562b9a058eb77url`https://api.github.com/repos/palantir/atlasdb/git/trees/5e09bdb918f0f96a40ef07c685e562b9a058eb77ujR bhttps://api.github.com/repos/palantir/atlasdb/git/commits/aec382ff5fabb576327a4b4228a46c26a6058609
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSHJPgJEHYaJX37fAFQAAB4LAEAkYFk5PSTL2XeiHposx12VZIK
Jpp7MDB7NVCv8jCJU3QBALXzDLgTOI+v7Hay63dBUDgFChALseZ7apJAT6QijLYc
=PDgg
-----END PGP SIGNATURE-----payloadX  tree 5e09bdb918f0f96a40ef07c685e562b9a058eb77
parent 975bc6f1b09954754df8b311193f45c17d2d0b0e
author svc-changelog <svc-changelog@palantir.com> 1686578424 +0000
committer svc-changelog <svc-changelog@palantir.com> 1686578424 +0000

Add generated changelog entriesuujR ^https://api.github.com/repos/palantir/atlasdb/commits/aec382ff5fabb576327a4b4228a46c26a6058609html_urlShttps://github.com/palantir/atlasdb/commit/aec382ff5fabb576327a4b4228a46c26a6058609comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/aec382ff5fabb576327a4b4228a46c26a6058609/commentsjR }(login
svc-changelogidJ#jR MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jR *https://api.github.com/users/svc-changelogjR  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujR }(jS 
svc-changelogjS J#jR MDQ6VXNlcjg0MDc3NjAzjS 4https://avatars.githubusercontent.com/u/84077603?v=4jS h5jR *https://api.github.com/users/svc-changelogjR  https://github.com/svc-changelogj
S 4https://api.github.com/users/svc-changelog/followersjS Ahttps://api.github.com/users/svc-changelog/following{/other_user}jS :https://api.github.com/users/svc-changelog/gists{/gist_id}jS Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jS 8https://api.github.com/users/svc-changelog/subscriptionsjS /https://api.github.com/users/svc-changelog/orgsjS 0https://api.github.com/users/svc-changelog/reposjS ;https://api.github.com/users/svc-changelog/events{/privacy}jS :https://api.github.com/users/svc-changelog/received_eventsjS UserjS uparents]}(jR (975bc6f1b09954754df8b311193f45c17d2d0b0ejR ^https://api.github.com/repos/palantir/atlasdb/commits/975bc6f1b09954754df8b311193f45c17d2d0b0ejR Shttps://github.com/palantir/atlasdb/commit/975bc6f1b09954754df8b311193f45c17d2d0b0euastats}(totalK	additionsK	deletionsK ufiles]}(jR (7afdb03a2af8b0138cc1524e0d39e84990810e28filename$changelog/@unreleased/pr-6624.v2.ymlstatusaddedj8S Kj9S K changesKblob_url|https://github.com/palantir/atlasdb/blob/aec382ff5fabb576327a4b4228a46c26a6058609/changelog%2F%40unreleased%2Fpr-6624.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/aec382ff5fabb576327a4b4228a46c26a6058609/changelog%2F%40unreleased%2Fpr-6624.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6624.v2.yml?ref=aec382ff5fabb576327a4b4228a46c26a6058609patch@@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Stopped checking immutable timestamp lock on thoroughly swept tables
+    when reading an empty value.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6624uau(c47bde42e601594684f73e194e68cd20884ad510}(sha(c47bde42e601594684f73e194e68cd20884ad510node_idEC_kwDOAjP5fdoAKGM0N2JkZTQyZTYwMTU5NDY4NGY3M2UxOTRlNjhjZDIwODg0YWQ1MTAcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-06T14:54:05Zu	committer}(jUS 
Sam KramerjWS skramer@palantir.comjYS 2023-04-06T14:54:05Zumessage,return no transaction if it has been abortedtree}(jMS (4029170f98f90caae0dd61ab0d00b07ce5b90a47url`https://api.github.com/repos/palantir/atlasdb/git/trees/4029170f98f90caae0dd61ab0d00b07ce5b90a47ujeS bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c47bde42e601594684f73e194e68cd20884ad510
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQu3Q0ACgkQmPPOpKR4
XS1JvAf/e6E+tL/TC5wcPAOSpfVh73dfvkSy71IPbbtwHbA91brDwlwJLCqzpnZ6
uUsVgSUG98Xg9udDtZciH9wQ/AYJyNRwB9GS8CLmOuQNC6vXMT07HKER3trZJ3C3
Zgamr5S7Yz93Lcb/1uj6/dU3S1vsCr8VWL1pZihysXA9a2vwk9r5kyqdA+m3sMhi
ZLHBa7ogWe+aJmfgBxdVo0FnSc0nZ7/U2YYcVlZFyWz802P4z6xeVuwSzNclB+gx
HPWIJIu8UqHl1PQM6RIOp6PAJKNcEWJK+W5kRje46+4EmFR4cad2ytLBlnik6xc6
3Bm0NSTO7xDEF8KQWQZ/kqIwrE//rA==
=lnut
-----END PGP SIGNATURE-----payloadX  tree 4029170f98f90caae0dd61ab0d00b07ce5b90a47
parent 818a67c798d6aeee18491472b3483ab4905fd093
author Sam Kramer <skramer@palantir.com> 1680792845 +0100
committer Sam Kramer <skramer@palantir.com> 1680792845 +0100

return no transaction if it has been aborted
uujeS ^https://api.github.com/repos/palantir/atlasdb/commits/c47bde42e601594684f73e194e68cd20884ad510html_urlShttps://github.com/palantir/atlasdb/commit/c47bde42e601594684f73e194e68cd20884ad510comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c47bde42e601594684f73e194e68cd20884ad510/commentsjSS }(login
Sam-KrameridJ^2_ jOS MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jeS 'https://api.github.com/users/Sam-KramerjsS https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj[S }(jxS 
Sam-KramerjzS J^2_ jOS MDQ6VXNlcjYyMzg4MTQ=j|S 3https://avatars.githubusercontent.com/u/6238814?v=4j~S h5jeS 'https://api.github.com/users/Sam-KramerjsS https://github.com/Sam-KramerjS 1https://api.github.com/users/Sam-Kramer/followersjS >https://api.github.com/users/Sam-Kramer/following{/other_user}jS 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jS >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jS 5https://api.github.com/users/Sam-Kramer/subscriptionsjS ,https://api.github.com/users/Sam-Kramer/orgsjS -https://api.github.com/users/Sam-Kramer/reposjS 8https://api.github.com/users/Sam-Kramer/events{/privacy}jS 7https://api.github.com/users/Sam-Kramer/received_eventsjS UserjS uparents]}(jMS (818a67c798d6aeee18491472b3483ab4905fd093jeS ^https://api.github.com/repos/palantir/atlasdb/commits/818a67c798d6aeee18491472b3483ab4905fd093jsS Shttps://github.com/palantir/atlasdb/commit/818a67c798d6aeee18491472b3483ab4905fd093uastats}(totalK6	additionsK&	deletionsKufiles](}(jMS (6d01c6b69f8a35c121d5caede8cdcd332550c042filenamefatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javastatusmodifiedjS KjS K	changesKblob_urlhttps://github.com/palantir/atlasdb/blob/c47bde42e601594684f73e194e68cd20884ad510/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c47bde42e601594684f73e194e68cd20884ad510/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=c47bde42e601594684f73e194e68cd20884ad510patchX  @@ -78,15 +78,21 @@ public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions)
         Supplier<CommitTimestampProvider> commitTimestampProvider =
                 Suppliers.memoize(() -> new CommitTimestampProvider());
         try {
-            transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
-                AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
-                startTimestampReference.set(txn.getTimestamp());
-                witnessedActionsReference.set(actions.stream()
-                        .sequential()
-                        .map(action -> action.accept(visitor))
-                        .collect(Collectors.toList()));
-                return null;
-            });
+            Transaction transaction =
+                    transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
+                        AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
+                        startTimestampReference.set(txn.getTimestamp());
+                        witnessedActionsReference.set(actions.stream()
+                                .sequential()
+                                .map(action -> action.accept(visitor))
+                                .collect(Collectors.toList()));
+                        return txn;
+                    });
+
+            if (transaction.isAborted()) {
+                return Optional.empty();
+            }
+
             return Optional.of(ImmutableWitnessedTransaction.builder()
                     .startTimestamp(startTimestampReference.get())
                     .commitTimestamp(commitTimestampProvideru}(jMS (7a6977bbe99192a8d37661df68d682abb474eb87jS jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javajS modifiedjS KjS KjS KjS https://github.com/palantir/atlasdb/blob/c47bde42e601594684f73e194e68cd20884ad510/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajS https://github.com/palantir/atlasdb/raw/c47bde42e601594684f73e194e68cd20884ad510/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=c47bde42e601594684f73e194e68cd20884ad510jS Xv  @@ -27,13 +27,17 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
 
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore.CommitTimestampProvider;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
@@ -51,6 +55,7 @@
 import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
+import java.util.function.Supplier;
 import java.util.stream.Collectors;
 import org.junit.Before;
 import org.junit.Test;
@@ -60,20 +65,20 @@ public final class AtlasDbTransactionStoreTest {
     private static final long START_TS = 1;
     private static final long COMMIT_TS = 2;
 
+    private static final Map<TableReference, byte[]> TABLES = Map.of(
+            TABLE_REFERENCE,
+            AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
+            INDEX_REFERENCE,
+            AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE));
+
     private TransactionManager manager;
 
     private AtlasDbTransactionStore store;
 
     @Before
     public void before() {
         manager = TransactionManagers.createInMemory(Set.of());
-        store = AtlasDbTransactionStore.create(
-                manager,
-                Map.of(
-                        TABLE_REFERENCE,
-                        AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
-                        INDEX_REFERENCE,
-                        AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE)));
+        store = AtlasDbTransactionStore.create(manager, TABLES);
     }
 
     @Test
@@ -151,6 +156,17 @@ public void readWriteHandlesReadOnlyTransaction() {
         assertThat(witnessedTransaction.get().commitTimestamp()).isEmpty();
     }
 
+    @Test
+    public void abortedTransactionsReturnEmpty() {
+        TransactionManager onlyAbortsManager = spy(manager);
+        Transaction abortedTransaction = mock(Transaction.class);
+        when(abortedTransaction.isAborted()).thenReturn(true);
+        doReturn(abortedTransaction).when(onlyAbortsManager).runTaskWithConditionWithRetry(any(Supplier.class), any());
+        AtlasDbTransactionStore onlyAbortsStore = AtlasDbTransactionStore.create(onlyAbortsManager, TABLES);
+        assertThat(onlyAbortsStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+                .isEmpty();
+    }
+
     @Test
     public void getCommitTimestampIsEmptyWhenMatchesStartTimestamp() {
         CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();ueu(bb560d91ca79c925d7bba16296cfbe85b3d28d37}(sha(bb560d91ca79c925d7bba16296cfbe85b3d28d37node_idEC_kwDOAjP5fdoAKGJiNTYwZDkxY2E3OWM5MjVkN2JiYTE2Mjk2Y2ZiZTg1YjNkMjhkMzccommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-09T08:16:50Zu	committer}(jS Jeremy KongjS jkong@palantir.comjS 2023-04-09T08:16:50Zumessagelock updatestree}(jS (ec45b98faa7bd6dd151a9f36583a8ad7d3b487eburl`https://api.github.com/repos/palantir/atlasdb/git/trees/ec45b98faa7bd6dd151a9f36583a8ad7d3b487ebujS bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bb560d91ca79c925d7bba16296cfbe85b3d28d37
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQydHIACgkQTLdFKain
zjx4TQf9GousKDnTZ2n4K+feSkOxkgH1HRFcEvskdNYr99B7pu4FxIouzjZvs+88
YJ+KAIPsxrZqqPWcoH2TqsciKY4VVdy7p1iTp/R/vL29io3+XjnwqWgElc9JdPEw
P7i0eeN95lyAMHF07TlmilRvyCWsIzVDaf09/VSW0P/DK53+sE0BEZ5nRI2TKNnu
gVPjV9YQkVmODibhF4hY9QPgcYICqSFDz6PauWB+uOvqqlVoTd9Z6CvSljgHEs8v
tMGat9eMGujgwtwM7BOFCzaQ1BgWus1uD1846G+vNdavW/z2BFtMqKwJtCPH7tPG
fb+ERnh2XUa5D2cNl2CtHJg4A3x2Rw==
=n292
-----END PGP SIGNATURE-----payloadtree ec45b98faa7bd6dd151a9f36583a8ad7d3b487eb
parent e3d7d7a8cdd5de278e4a154325e0862f1f5d62f6
author Jeremy Kong <jkong@palantir.com> 1681028210 +0800
committer Jeremy Kong <jkong@palantir.com> 1681028210 +0800

lock updates
uujS ^https://api.github.com/repos/palantir/atlasdb/commits/bb560d91ca79c925d7bba16296cfbe85b3d28d37html_urlShttps://github.com/palantir/atlasdb/commit/bb560d91ca79c925d7bba16296cfbe85b3d28d37comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bb560d91ca79c925d7bba16296cfbe85b3d28d37/commentsjS }(login
jeremyk-91idJZ jS MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jS 'https://api.github.com/users/jeremyk-91jS https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujS }(jS 
jeremyk-91jS JZ jS MDQ6VXNlcjU5NTU1MTA=jS 3https://avatars.githubusercontent.com/u/5955510?v=4jS h5jS 'https://api.github.com/users/jeremyk-91jS https://github.com/jeremyk-91j T 1https://api.github.com/users/jeremyk-91/followersjT >https://api.github.com/users/jeremyk-91/following{/other_user}jT 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jT >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jT 5https://api.github.com/users/jeremyk-91/subscriptionsj
T ,https://api.github.com/users/jeremyk-91/orgsjT -https://api.github.com/users/jeremyk-91/reposjT 8https://api.github.com/users/jeremyk-91/events{/privacy}jT 7https://api.github.com/users/jeremyk-91/received_eventsjT UserjT uparents]}(jS (e3d7d7a8cdd5de278e4a154325e0862f1f5d62f6jS ^https://api.github.com/repos/palantir/atlasdb/commits/e3d7d7a8cdd5de278e4a154325e0862f1f5d62f6jS Shttps://github.com/palantir/atlasdb/commit/e3d7d7a8cdd5de278e4a154325e0862f1f5d62f6uastats}(totalKΌ	additionsK͌	deletionsKufiles]}(jS (36e2dc7fe734c842753b4ed50aad6a7a94ccb732filename_timelock-impl/src/main/java/com/palantir/atlasdb/timelock/LegacyAggregatedTimelockResource.javastatusmodifiedj.T Kj/T KchangesKΌblob_urlhttps://github.com/palantir/atlasdb/blob/bb560d91ca79c925d7bba16296cfbe85b3d28d37/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAggregatedTimelockResource.javaraw_urlhttps://github.com/palantir/atlasdb/raw/bb560d91ca79c925d7bba16296cfbe85b3d28d37/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAggregatedTimelockResource.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAggregatedTimelockResource.java?ref=bb560d91ca79c925d7bba16296cfbe85b3d28d37patchX)  @@ -16,21 +16,35 @@
 
 package com.palantir.atlasdb.timelock;
 
+import com.palantir.annotations.remoting.CancelableServerCall;
+import com.palantir.common.annotation.Idempotent;
+import com.palantir.common.annotation.NonIdempotent;
 import com.palantir.conjure.java.undertow.annotations.Handle;
 import com.palantir.conjure.java.undertow.annotations.HttpMethod;
 import com.palantir.conjure.java.undertow.annotations.SerializerFactory;
 import com.palantir.conjure.java.undertow.lib.Endpoint;
 import com.palantir.conjure.java.undertow.lib.Serializer;
 import com.palantir.conjure.java.undertow.lib.TypeMarker;
 import com.palantir.conjure.java.undertow.lib.UndertowRuntime;
+import com.palantir.lock.HeldLocksGrant;
+import com.palantir.lock.HeldLocksToken;
+import com.palantir.lock.LockClient;
+import com.palantir.lock.LockRequest;
+import com.palantir.lock.LockResponse;
+import com.palantir.lock.LockServerOptions;
+import com.palantir.lock.SimpleHeldLocksToken;
 import com.palantir.logsafe.Safe;
 import com.palantir.timestamp.TimestampRange;
 import io.undertow.server.HttpServerExchange;
 import io.undertow.util.Headers;
 import java.io.IOException;
+import java.math.BigInteger;
 import java.nio.charset.StandardCharsets;
+import java.util.Set;
 import javax.annotation.CheckReturnValue;
+import javax.annotation.Nullable;
 import javax.annotation.meta.When;
+import javax.ws.rs.Consumes;
 import javax.ws.rs.DefaultValue;
 import javax.ws.rs.GET;
 import javax.ws.rs.POST;
@@ -75,7 +89,7 @@ public long getFreshTimestamp(@Safe @PathParam("namespace") @Handle.PathParam St
     }
 
     @POST // This has to be POST because we can't allow caching.
-    @Path("fresh-timestamps")
+    @Path("/{namespace}/timestamp/fresh-timestamps")
     @Produces(MediaType.APPLICATION_JSON)
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timestamp/fresh-timestamps")
     public TimestampRange getFreshTimestamps(
@@ -84,6 +98,196 @@ public TimestampRange getFreshTimestamps(
         return namespaces.get(namespace).getTimestampService().getFreshTimestamps(numTimestampsRequested);
     }
 
+    // Lock v1
+    @POST
+    @Path("/{namespace}/lock/lock-with-full-response/{client}")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @CancelableServerCall
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock-with-full-response/{client}")
+    public LockResponse lockWithFullLockResponse(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Safe @PathParam("client") @Handle.PathParam LockClient client,
+            @Handle.Body LockRequest request)
+            throws InterruptedException {
+        return namespaces.get(namespace).getLockService().lockWithFullLockResponse(client, request);
+    }
+
+    @POST
+    @Path("/{namespace}/lock/unlock-deprecated")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Deprecated
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/unlock-deprecated")
+    public boolean unlock(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body HeldLocksToken token) {
+        return namespaces.get(namespace).getLockService().unlock(token);
+    }
+
+    @POST
+    @Path("/{namespace}/lock/unlock-simple")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/unlock-simple")
+    public boolean unlockSimple(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body SimpleHeldLocksToken token) {
+        return namespaces.get(namespace).getLockService().unlockSimple(token);
+    }
+
+    @POST
+    @Path("/{namespace}/lock/unlock-and-freeze")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/unlock-and-freeze")
+    public boolean unlockAndFreeze(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body HeldLocksToken token) {
+        return namespaces.get(namespace).getLockService().unlockAndFreeze(token);
+    }
+
+    @POST
+    @Path("/{namespace}/lock/get-tokens/{client}")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @CancelableServerCall
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/get-tokens/{client}")
+    public Set<HeldLocksToken> getTokens(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Safe @PathParam("client") @Handle.PathParam LockClient client) {
+        return namespaces.get(namespace).getLockService().getTokens(client);
+    }
+
+    @POST
+    @Path("/{namespace}/lock/refresh-tokens")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Deprecated
+    @Idempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/refresh-tokens")
+    public Set<HeldLocksToken> refreshTokens(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Handle.Body Iterable<HeldLocksToken> tokens) {
+        return namespaces.get(namespace).getLockService().refreshTokens(tokens);
+    }
+
+    @POST
+    @Path("/{namespace}/lock/refresh-grant")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Idempotent
+    @Nullable
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/refresh-grant")
+    public HeldLocksGrant refreshGrant(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body HeldLocksGrant grant) {
+        return namespaces.get(namespace).getLockService().refreshGrant(grant);
+    }
+
+    @POST
+    @Path("/{namespace}/lock/refresh-grant-id")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Idempotent
+    @Nullable
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/refresh-grant-id")
+    public HeldLocksGrant refreshGrant(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body BigInteger grantId) {
+        return namespaces.get(namespace).getLockService().refreshGrant(grantId);
+    }
+
+    @POST
+    @Path("/{namespace}/lock/convert-to-grant")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/convert-to-grant")
+    public HeldLocksGrant convertToGrant(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body HeldLocksToken token) {
+        return namespaces.get(namespace).getLockService().convertToGrant(token);
+    }
+
+    @POST
+    @Path("/{namespace}/lock/use-grant/{client}")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/use-grant/{client}")
+    public HeldLocksToken useGrant(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Safe @PathParam("client") @Handle.PathParam LockClient client,
+            @Handle.Body HeldLocksGrant grant) {
+        return namespaces.get(namespace).getLockService().useGrant(client, grant);
+    }
+
+    @POST
+    @Path("/{namespace}/lock/use-grant-id/{client}")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/use-grant-id/{client}")
+    public HeldLocksToken useGrant(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Safe @PathParam("client") @Handle.PathParam LockClient client,
+            @Handle.Body BigInteger grantId) {
+        return namespaces.get(namespace).getLockService().useGrant(client, grantId);
+    }
+
+    @POST
+    @Path("/{namespace}/lock/min-locked-in-version-id")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Deprecated
+    @Idempotent
+    @Nullable
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version-id")
+    public Long getMinLockedInVersionId(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        return namespaces.get(namespace).getLockService().getMinLockedInVersionId(namespace);
+    }
+
+    @POST
+    @Path("/{namespace}/lock/min-locked-in-version-id-for-client/{client}")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version-id-for-client/{client}")
+    public Long getMinLockedInVersionId(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Safe @PathParam("client") @Handle.PathParam LockClient client) {
+        return namespaces.get(namespace).getLockService().getMinLockedInVersionId(client);
+    }
+
+    @POST
+    @Path("/{namespace}/lock/lock-server-options")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Idempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock-server-options")
+    public LockServerOptions getLockServerOptions(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        return namespaces.get(namespace).getLockService().getLockServerOptions();
+    }
+
+    @POST
+    @Path("/{namespace}/lock/current-time-millis")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Idempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/current-time-millis")
+    public long currentTimeMillis(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        return namespaces.get(namespace).getLockService().currentTimeMillis();
+    }
+
+    @POST
+    @Path("/{namespace}/lock/log-current-state")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Idempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/log-current-state")
+    public void logCurrentState(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        namespaces.get(namespace).getLockService().logCurrentState();
+    }
+
     // Timestamp management
     @POST
     @Path("/{namespace}/timestamp-management/fast-forward")uau(103c91300748570c787234e4311fc1d1eec1d4b2}(sha(103c91300748570c787234e4311fc1d1eec1d4b2node_idEC_kwDOAjP5fdoAKDEwM2M5MTMwMDc0ODU3MGM3ODcyMzRlNDMxMWZjMWQxZWVjMWQ0YjIcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-05-30T15:31:28Zu	committer}(jKT Lucas MeirelesjMT meireles31@msn.comjOT 2023-05-30T15:31:28Zumessageuse correct class for ser/detree}(jCT (b39f7cecc29191c6a3678efa36c095bd0c1b7204url`https://api.github.com/repos/palantir/atlasdb/git/trees/b39f7cecc29191c6a3678efa36c095bd0c1b7204uj[T bhttps://api.github.com/repos/palantir/atlasdb/git/commits/103c91300748570c787234e4311fc1d1eec1d4b2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmR2FtAACgkQJd22kJ7J
GizfBAf+P+Nfb4Y6y9wZWq1rp6OVGo41XtCiKPn5/m4tXLj01YsNg+Kn5LWl5fQb
b3FJ/TKuiL++0Y8qQtfvPjEO7NszzVI6vU9j9Yyer6tOK+IglAHnhiJzbldF99kg
M5v4waWBJ3zDwNCJA8k1gbujX96p1cD8AlWArHLt+DV/4ylDSAQUsCVu05xKLLPS
4E2ZdvWqZJnOr2y4LOGs03KrA2gb4BL23t31lmu1BwcOEjCJ+oP71GAB3k2awBlt
RdpPehjhdni8PtQ0EBNVQ8acOhxOoUptuVGjZ2xYbzubexkhif1/0Cho+jFSwi/e
z69Lm5b5y23YvFheabmCVpCwCnYF8Q==
=5jD7
-----END PGP SIGNATURE-----payloadtree b39f7cecc29191c6a3678efa36c095bd0c1b7204
parent d4f6b26a4ba49b0f817984083927b43b617dfcd1
author Lucas Meireles <meireles31@msn.com> 1685460688 +0100
committer Lucas Meireles <meireles31@msn.com> 1685460688 +0100

use correct class for ser/de
uuj[T ^https://api.github.com/repos/palantir/atlasdb/commits/103c91300748570c787234e4311fc1d1eec1d4b2html_urlShttps://github.com/palantir/atlasdb/commit/103c91300748570c787234e4311fc1d1eec1d4b2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/103c91300748570c787234e4311fc1d1eec1d4b2/commentsjIT }(loginLucasIMEidJg jET MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j[T %https://api.github.com/users/LucasIMEjiT https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujQT }(jnT LucasIMEjpT Jg jET MDQ6VXNlcjY3ODczMTE=jrT 3https://avatars.githubusercontent.com/u/6787311?v=4jtT h5j[T %https://api.github.com/users/LucasIMEjiT https://github.com/LucasIMEjwT /https://api.github.com/users/LucasIME/followersjyT <https://api.github.com/users/LucasIME/following{/other_user}j{T 5https://api.github.com/users/LucasIME/gists{/gist_id}j}T <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jT 3https://api.github.com/users/LucasIME/subscriptionsjT *https://api.github.com/users/LucasIME/orgsjT +https://api.github.com/users/LucasIME/reposjT 6https://api.github.com/users/LucasIME/events{/privacy}jT 5https://api.github.com/users/LucasIME/received_eventsjT UserjT uparents]}(jCT (d4f6b26a4ba49b0f817984083927b43b617dfcd1j[T ^https://api.github.com/repos/palantir/atlasdb/commits/d4f6b26a4ba49b0f817984083927b43b617dfcd1jiT Shttps://github.com/palantir/atlasdb/commit/d4f6b26a4ba49b0f817984083927b43b617dfcd1uastats}(totalK	additionsK	deletionsKufiles]}(jCT (1d8551f4e51e68c33483b719c632eeffdad36382filenameatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadsNoTouchWorkflowConfiguration.javastatusmodifiedjT KjT KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/103c91300748570c787234e4311fc1d1eec1d4b2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadsNoTouchWorkflowConfiguration.javaraw_urlhttps://github.com/palantir/atlasdb/raw/103c91300748570c787234e4311fc1d1eec1d4b2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadsNoTouchWorkflowConfiguration.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadsNoTouchWorkflowConfiguration.java?ref=103c91300748570c787234e4311fc1d1eec1d4b2patchXf  @@ -22,8 +22,8 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-@JsonSerialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
-@JsonDeserialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
+@JsonSerialize(as = ImmutableSingleBusyCellReadsNoTouchWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellReadsNoTouchWorkflowConfiguration.class)
 @JsonTypeName(SingleBusyCellReadsNoTouchWorkflowConfiguration.TYPE)
 public interface SingleBusyCellReadsNoTouchWorkflowConfiguration extends WorkflowConfiguration {
     String TYPE = "single-busy-cell-reads-no-touch";uau(b366e24fa8855ee1a1b7c9a720679999afed9f08}(sha(b366e24fa8855ee1a1b7c9a720679999afed9f08node_idEC_kwDOAjP5fdoAKGIzNjZlMjRmYTg4NTVlZTFhMWI3YzlhNzIwNjc5OTk5YWZlZDlmMDgcommit}(author}(name
Nimai Agarwalemailnagarwal@palantir.comdate2023-04-17T19:01:43Zu	committer}(jT 
Nimai AgarwaljT nagarwal@palantir.comjT 2023-04-17T19:07:05Zumessage)Changed param to long instead of safelongtree}(jT (5964de0f08eb5aab66ee7ef6165531e604527f06url`https://api.github.com/repos/palantir/atlasdb/git/trees/5964de0f08eb5aab66ee7ef6165531e604527f06ujT bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b366e24fa8855ee1a1b7c9a720679999afed9f08
comment_countK verification}(verifiedreasonno_user	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEJmdCZzv7/iUs98lyHp7dxz7XLrgFAmQ9mNkACgkQHp7dxz7X
LriH5wf8DyfamsfSfme7eZarQyXq4m9lhrWiAqmvseaoQOvsDwIyHpwfbLXso9UM
iKVvmLySSndSHShTPpBzWtO9ZGQ72KE+WIXs4506FNNzFpku2KIw34tGGp6UEJVB
52+kp2W3oCF9dNvQUTyGFII7k+n9mRILoDMzDhfpyHbBKGVhTxbtuWmualK7RMPq
wE96FBelfRNTEUB0I+Dtwip46v43xvzSsxlPi57Aj2M6iJm0eP9pY3dAtuvuGYmb
z9qZdyot8W8xKsSnyqqbkeuWzOZg/uQc2GCVx3A/x2xK78alKElkWxGV+g2AppPW
NSAqe4osURBvV3Ap5ZT8dhFIHvo4Nw==
=zfVQ
-----END PGP SIGNATURE-----payloadX  tree 5964de0f08eb5aab66ee7ef6165531e604527f06
parent 8cd6310987f845be632817abb7699473e80a7221
author Nimai Agarwal <nagarwal@palantir.com> 1681758103 -0400
committer Nimai Agarwal <nagarwal@palantir.com> 1681758425 -0400

Changed param to long instead of safelong
uujT ^https://api.github.com/repos/palantir/atlasdb/commits/b366e24fa8855ee1a1b7c9a720679999afed9f08html_urlShttps://github.com/palantir/atlasdb/commit/b366e24fa8855ee1a1b7c9a720679999afed9f08comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b366e24fa8855ee1a1b7c9a720679999afed9f08/commentsjT NjT Nparents]}(jT (8cd6310987f845be632817abb7699473e80a7221jT ^https://api.github.com/repos/palantir/atlasdb/commits/8cd6310987f845be632817abb7699473e80a7221jT Shttps://github.com/palantir/atlasdb/commit/8cd6310987f845be632817abb7699473e80a7221uastats}(totalK	additionsK
	deletionsK
ufiles](}(jT (1024e54ed07d4e2bd922e5dfe54d99940eafcda2filename9timelock-api/src/main/conjure/timelock-management-api.ymlstatusmodifiedjT KjT KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/b366e24fa8855ee1a1b7c9a720679999afed9f08/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/b366e24fa8855ee1a1b7c9a720679999afed9f08/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.yml?ref=b366e24fa8855ee1a1b7c9a720679999afed9f08patchX  @@ -1,3 +1,9 @@
+types:
+  imports:
+    Long:
+      base-type: string
+      external:
+        java: java.lang.Long
 services:
   TimeLockManagementService:
     name: TimeLock Management Service
@@ -68,8 +74,7 @@ services:
             safety: safe
             param-type: query
           currentTimestamp:
-            type: safelong
-            safety: safe
+            type: Long
             param-type: query
             docs: the largest timestamp issued until the fast-forward call
         docs: |u}(jT (53c528056463748405e592612eb92e12b07a2de4jT dtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/TimeLockManagementResource.javajT modifiedjT KjT KjT KjT https://github.com/palantir/atlasdb/blob/b366e24fa8855ee1a1b7c9a720679999afed9f08/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.javajT https://github.com/palantir/atlasdb/raw/b366e24fa8855ee1a1b7c9a720679999afed9f08/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.javajT https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.java?ref=b366e24fa8855ee1a1b7c9a720679999afed9f08jT X  @@ -28,7 +28,6 @@
 import com.palantir.atlasdb.timelock.api.management.TimeLockManagementServiceEndpoints;
 import com.palantir.atlasdb.timelock.api.management.UndertowTimeLockManagementService;
 import com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants;
-import com.palantir.conjure.java.lib.SafeLong;
 import com.palantir.conjure.java.undertow.lib.UndertowService;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
@@ -139,13 +138,9 @@ public ListenableFuture<UUID> forceKillTimeLockServer(AuthHeader authHeader) {
     }
 
     @Override
-    public ListenableFuture<Void> fastForwardTimestamp(
-            AuthHeader authHeader, String namespace, SafeLong currentTimestamp) {
+    public ListenableFuture<Void> fastForwardTimestamp(AuthHeader authHeader, String namespace, long currentTimestamp) {
         return handleExceptions(() -> {
-            timelockNamespaces
-                    .get(namespace)
-                    .getTimestampManagementService()
-                    .fastForwardTimestamp(currentTimestamp.longValue());
+            timelockNamespaces.get(namespace).getTimestampManagementService().fastForwardTimestamp(currentTimestamp);
             return Futures.immediateFuture(null);
         });
     }
@@ -206,7 +201,7 @@ public UUID forceKillTimeLockServer(AuthHeader authHeader) {
         }
 
         @Override
-        public void fastForwardTimestamp(AuthHeader authHeader, String namespace, SafeLong currentTimestamp) {
+        public void fastForwardTimestamp(AuthHeader authHeader, String namespace, long currentTimestamp) {
             unwrap(resource.fastForwardTimestamp(authHeader, namespace, currentTimestamp));
         }
 ueu(0f52e48c1b8cff71852bc77920da133aa57d3a27}(sha(0f52e48c1b8cff71852bc77920da133aa57d3a27node_idEC_kwDOAjP5fdoAKDBmNTJlNDhjMWI4Y2ZmNzE4NTJiYzc3OTIwZGExMzNhYTU3ZDNhMjccommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-12T13:33:51Zu	committer}(jU 
Ahmed AlouanejU aalouane@palantir.comjU 2023-05-12T13:33:51Zumessageapptree}(j
U (6d80577cb0e136b46a6bddf5776e3e5fb9cf4cd5url`https://api.github.com/repos/palantir/atlasdb/git/trees/6d80577cb0e136b46a6bddf5776e3e5fb9cf4cd5uj"U bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0f52e48c1b8cff71852bc77920da133aa57d3a27
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmReQD8ACgkQPlMHVIT1
yhpzhAf+MSKrTMnJjWlwzEuDn4pHQ4n2XfPqzmJ4NmFLEtty6GA7g6dFQ6D8xNsP
8G9Et4VrD6edZwdw40ZK3W4321f2WQ/M1YDmZyqAGwexh5RcSydkQqRG6pk6JqhG
h5s0xvMGex5+a4h5bcDkz4fecUtMaQU2/KnxS59c65b7tgqWNRGID3f0Y43Hv7HL
vgIhxnQSBhFEJzIscJjgTYP+u9YfTQf9kUxc2Xn+i+q13N/o3wivpsWYW8GY+5DN
jpzBeZGgJ7CeIzSC4aDOaepm2np1TZZkRrmhoTvdScz+ZuxHiqbmCwZokM5BHEQG
kvdQeRM0yX4DxR7d577ZhjaS9U1KtA==
=DXkL
-----END PGP SIGNATURE-----R      payloadtree 6d80577cb0e136b46a6bddf5776e3e5fb9cf4cd5
parent c49862fa286a6661d238aacc0e13f5de4112090e
author Ahmed Alouane <aalouane@palantir.com> 1683898431 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1683898431 +0100

app
uuj"U ^https://api.github.com/repos/palantir/atlasdb/commits/0f52e48c1b8cff71852bc77920da133aa57d3a27html_urlShttps://github.com/palantir/atlasdb/commit/0f52e48c1b8cff71852bc77920da133aa57d3a27comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0f52e48c1b8cff71852bc77920da133aa57d3a27/commentsjU }(loginergo14idJjU MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j"U #https://api.github.com/users/ergo14j0U https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujU }(j5U ergo14j7U JjU MDQ6VXNlcjMwOTAzNzM2j9U 4https://avatars.githubusercontent.com/u/30903736?v=4j;U h5j"U #https://api.github.com/users/ergo14j0U https://github.com/ergo14j>U -https://api.github.com/users/ergo14/followersj@U :https://api.github.com/users/ergo14/following{/other_user}jBU 3https://api.github.com/users/ergo14/gists{/gist_id}jDU :https://api.github.com/users/ergo14/starred{/owner}{/repo}jFU 1https://api.github.com/users/ergo14/subscriptionsjHU (https://api.github.com/users/ergo14/orgsjJU )https://api.github.com/users/ergo14/reposjLU 4https://api.github.com/users/ergo14/events{/privacy}jNU 3https://api.github.com/users/ergo14/received_eventsjPU UserjRU uparents]}(j
U (c49862fa286a6661d238aacc0e13f5de4112090ej"U ^https://api.github.com/repos/palantir/atlasdb/commits/c49862fa286a6661d238aacc0e13f5de4112090ej0U Shttps://github.com/palantir/atlasdb/commit/c49862fa286a6661d238aacc0e13f5de4112090euastats}(totalK	additionsK	deletionsKufiles]}(j
U (ab44dbc9155aa19dba60b4a510539fdd03456e3cfilename.circleci/config.ymlstatusmodifiedjlU KjmU KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/0f52e48c1b8cff71852bc77920da133aa57d3a27/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/0f52e48c1b8cff71852bc77920da133aa57d3a27/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=0f52e48c1b8cff71852bc77920da133aa57d3a27patchX  @@ -88,7 +88,7 @@ jobs:
       - run:
           name: "Cancel workflows on failure"
           command: |
-            curl --request POST --url https://circleci.com/api/v2/workflow/$CIRCLE_WORKFLOW_ID/cancel -u "$CIRCLE_API_TOKEN:"
+            curl --silent --show-error -X POST https://circleci.com/api/v2/workflow/$CIRCLE_WORKFLOW_ID/cancel?"circle-token=$CIRCLE_TOKEN"
           when: on_fail
 
   trial-publish:uau(ef49fadb5c74a3f6141025482d7ccd5cbe3aee58}(sha(ef49fadb5c74a3f6141025482d7ccd5cbe3aee58node_idEC_kwDOAjP5fdoAKGVmNDlmYWRiNWM3NGEzZjYxNDEwMjU0ODJkN2NjZDVjYmUzYWVlNTgcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-13T21:22:58Zu	committer}(jU Jeremy KongjU jkong@palantir.comjU 2023-04-13T21:22:58Zumessageloltree}(jU (df1f28450b2d8c4d0e2d11449133cee2bf0f5319url`https://api.github.com/repos/palantir/atlasdb/git/trees/df1f28450b2d8c4d0e2d11449133cee2bf0f5319ujU bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ef49fadb5c74a3f6141025482d7ccd5cbe3aee58
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ4crIACgkQTLdFKain
zjyzPwgAkzPxUsOsuwemyEdbkCahGVUR9rHd1WpJRyVSwbCzvTohZCdUUh/MFyHc
rv5P6rddZ5a6IQEtYSq9qkOQOrhRU6g6RjPfCHLK/9xrVIo6/bvZmGKenhI7sFJW
VrUQX/sVAV9yN3zFUnkrVu5wrgUgulozavfYLYH92vPBbWmc/K+xombXAdBTyDQC
NmZFfepMZoI7+BbmpG60QqwkLD4dw0QRoWJ91HiqKrLMXyIp2saPQ4UGtmeSWezu
8RL5jQv882PJckSCYzbJz1ZDvP6cMcUHHw1hwv9XOmrBN+3lprC/uwASl862TtrF
JUYz2C0MJ+ChpsFQ3ziwJgpjA9D5wA==
=Aj81
-----END PGP SIGNATURE-----payloadtree df1f28450b2d8c4d0e2d11449133cee2bf0f5319
parent 8d4ed4c4938648e08afa5fad3ab4db568baff191
author Jeremy Kong <jkong@palantir.com> 1681420978 +0100
committer Jeremy Kong <jkong@palantir.com> 1681420978 +0100

lol
uujU ^https://api.github.com/repos/palantir/atlasdb/commits/ef49fadb5c74a3f6141025482d7ccd5cbe3aee58html_urlShttps://github.com/palantir/atlasdb/commit/ef49fadb5c74a3f6141025482d7ccd5cbe3aee58comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ef49fadb5c74a3f6141025482d7ccd5cbe3aee58/commentsjU }(login
jeremyk-91idJZ jU MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jU 'https://api.github.com/users/jeremyk-91jU https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujU }(jU 
jeremyk-91jU JZ jU MDQ6VXNlcjU5NTU1MTA=jU 3https://avatars.githubusercontent.com/u/5955510?v=4jU h5jU 'https://api.github.com/users/jeremyk-91jU https://github.com/jeremyk-91jU 1https://api.github.com/users/jeremyk-91/followersjU >https://api.github.com/users/jeremyk-91/following{/other_user}jU 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jU >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jU 5https://api.github.com/users/jeremyk-91/subscriptionsjU ,https://api.github.com/users/jeremyk-91/orgsjU -https://api.github.com/users/jeremyk-91/reposjU 8https://api.github.com/users/jeremyk-91/events{/privacy}jU 7https://api.github.com/users/jeremyk-91/received_eventsjU UserjU uparents]}(jU (8d4ed4c4938648e08afa5fad3ab4db568baff191jU ^https://api.github.com/repos/palantir/atlasdb/commits/8d4ed4c4938648e08afa5fad3ab4db568baff191jU Shttps://github.com/palantir/atlasdb/commit/8d4ed4c4938648e08afa5fad3ab4db568baff191uastats}(totalK+	additionsK	deletionsKufiles]}(jU (d2fa8277c1fe0a5f8523c224153bf2e0743e7df1filenameMtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/LockV1Resource.javastatusmodifiedjU KjU KchangesK+blob_urlhttps://github.com/palantir/atlasdb/blob/ef49fadb5c74a3f6141025482d7ccd5cbe3aee58/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ef49fadb5c74a3f6141025482d7ccd5cbe3aee58/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.java?ref=ef49fadb5c74a3f6141025482d7ccd5cbe3aee58patchX   @@ -34,6 +34,7 @@
 import com.palantir.lock.SimpleHeldLocksToken;
 import com.palantir.logsafe.Safe;
 import java.math.BigInteger;
+import java.util.Optional;
 import java.util.Set;
 import javax.annotation.Nullable;
 import javax.ws.rs.Consumes;
@@ -59,12 +60,12 @@ public LockV1Resource(TimelockNamespaces namespaces) {
     @CancelableServerCall
     @NonIdempotent
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock-with-full-response/{client}")
-    public LockResponse lockWithFullLockResponse(
+    public Optional<LockResponse> lockWithFullLockResponse(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Safe @PathParam("client") @Handle.PathParam LockClient client,
             @Handle.Body LockRequest request)
             throws InterruptedException {
-        return getLockService(namespace).lockWithFullLockResponse(client, request);
+        return Optional.ofNullable(getLockService(namespace).lockWithFullLockResponse(client, request));
     }
 
     @POST
@@ -74,7 +75,7 @@ public LockResponse lockWithFullLockResponse(
     @CancelableServerCall
     @NonIdempotent
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock-with-full-response")
-    public LockResponse lockWithFullLockResponse(
+    public Optional<LockResponse> lockWithFullLockResponse(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockRequest request)
             throws InterruptedException {
         return lockWithFullLockResponse(namespace, LockClient.ANONYMOUS, request);
@@ -156,9 +157,9 @@ public Set<HeldLocksToken> refreshTokens(
     @Idempotent
     @Nullable
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/refresh-grant")
-    public HeldLocksGrant refreshGrant(
+    public Optional<HeldLocksGrant> refreshGrant(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body HeldLocksGrant grant) {
-        return getLockService(namespace).refreshGrant(grant);
+        return Optional.ofNullable(getLockService(namespace).refreshGrant(grant));
     }
 
     @POST
@@ -168,9 +169,9 @@ public HeldLocksGrant refreshGrant(
     @Idempotent
     @Nullable
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/refresh-grant-id")
-    public HeldLocksGrant refreshGrant(
+    public Optional<HeldLocksGrant> refreshGrant(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body BigInteger grantId) {
-        return getLockService(namespace).refreshGrant(grantId);
+        return Optional.ofNullable(getLockService(namespace).refreshGrant(grantId));
     }
 
     @POST
@@ -240,27 +241,27 @@ public HeldLocksToken useGrant(
     @Idempotent
     @Nullable
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version-id")
-    public Long getMinLockedInVersionId(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
-        return getLockService(namespace).getMinLockedInVersionId();
+    public Optional<Long> getMinLockedInVersionId(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        return Optional.ofNullable(getLockService(namespace).getMinLockedInVersionId());
     }
 
     @POST
     @Path("lock/min-locked-in-version-id-for-client/{client}")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version-id-for-client/{client}")
-    public Long getMinLockedInVersionId(
+    public Optional<Long> getMinLockedInVersionId(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Safe @PathParam("client") @Handle.PathParam LockClient client) {
-        return getLockService(namespace).getMinLockedInVersionId(client);
+        return Optional.ofNullable(getLockService(namespace).getMinLockedInVersionId(client));
     }
 
     @POST
     @Path("lock/min-locked-in-version-id-for-client")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version-id-for-client")
-    public Long getMinLockedInVersionIdForAnonymousClient(
+    public Optional<Long> getMinLockedInVersionIdForAnonymousClient(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace) {
         return getMinLockedInVersionId(namespace, LockClient.ANONYMOUS);
     }
@@ -302,12 +303,12 @@ public void logCurrentState(@Safe @PathParam("namespace") @Handle.PathParam Stri
     @Consumes(MediaType.APPLICATION_JSON)
     @Nullable
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock/{client}")
-    public LockRefreshToken lock(
+    public Optional<LockRefreshToken> lock(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Safe @PathParam("client") @Handle.PathParam String client,
             @Handle.Body LockRequest request)
             throws InterruptedException {
-        return getLockService(namespace).lock(client, request);
+        return Optional.ofNullable(getLockService(namespace).lock(client, request));
     }
 
     @POST
@@ -316,7 +317,7 @@ public LockRefreshToken lock(
     @Consumes(MediaType.APPLICATION_JSON)
     @Nullable
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock")
-    public LockRefreshToken lock(
+    public Optional<LockRefreshToken> lock(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockRequest request)
             throws InterruptedException {
         return lock(namespace, LockClient.ANONYMOUS.getClientId(), request);
@@ -327,20 +328,20 @@ public LockRefreshToken lock(
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/try-lock/{client}")
-    public HeldLocksToken lockAndGetHeldLocks(
+    public Optional<HeldLocksToken> lockAndGetHeldLocks(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Safe @PathParam("client") @Handle.PathParam String client,
             @Handle.Body LockRequest request)
             throws InterruptedException {
-        return getLockService(namespace).lockAndGetHeldLocks(client, request);
+        return Optional.ofNullable(getLockService(namespace).lockAndGetHeldLocks(client, request));
     }
 
     @POST
     @Path("lock/try-lock")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/try-lock")
-    public HeldLocksToken lockAndGetHeldLocks(
+    public Optional<HeldLocksToken> lockAndGetHeldLocks(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockRequest request)
             throws InterruptedException {
         return lockAndGetHeldLocks(namespace, LockClient.ANONYMOUS.getClientId(), request);
@@ -376,10 +377,10 @@ public Set<LockRefreshToken> refreshLockRefreshTokens(
     @Idempotent
     @Nullable
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version/{client}")
-    public Long getMinLockedInVersionId(
+    public Optional<Long> getMinLockedInVersionId(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Safe @PathParam("client") @Handle.PathParam String client) {
-        return getLockService(namespace).getMinLockedInVersionId(client);
+        return Optional.ofNullable(getLockService(namespace).getMinLockedInVersionId(client));
     }
 
     @POST
@@ -389,7 +390,7 @@ public Long getMinLockedInVersionId(
     @Idempotent
     @Nullable
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version")
-    public Long getMinLockedInVersionIdForAnonymousClientString(
+    public Optional<Long> getMinLockedInVersionIdForAnonymousClientString(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace) {
         return getMinLockedInVersionId(namespace, LockClient.ANONYMOUS.getClientId());
     }uau(8475920a2fdea75ec5e32191b77dd0468713bd77}(sha(8475920a2fdea75ec5e32191b77dd0468713bd77node_idEC_kwDOAjP5fdoAKDg0NzU5MjBhMmZkZWE3NWVjNWUzMjE5MWI3N2RkMDQ2ODcxM2JkNzccommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-23T13:18:24Zu	committer}(j V 
Sam KramerjV skramer@palantir.comjV 2023-05-23T13:18:24Zumessage,only record poolsize where there are changestree}(jU (0e1f06c79edda6b58e3efbaf62ac76b084eca3ceurl`https://api.github.com/repos/palantir/atlasdb/git/trees/0e1f06c79edda6b58e3efbaf62ac76b084eca3ceujV bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8475920a2fdea75ec5e32191b77dd0468713bd77
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRsvSAACgkQmPPOpKR4
XS13FAf9HZ65piF3dxyYcVm8NFpM5rVAzR/aR/+psTCFiVG7GbkqggRSFJBagqFa
upNbNLeqg1RX2aGJKlXXpAcE29lwl/RHPkyiN5tfdWC5JNKcGFRfQn60pPfUXDDe
hXNQKGxECugC5Aux5zroD5VutvfZ5EbsuPngzppAPHNhysA6z0hZGZB4R3gci7uw
+rBsQ6j80y4i0FBQWmPY1jGFDYV175F8synPW7fYoTWYS2bwS7WV98AYLzORhS8O
LPMv441uA9d6r0nY5nph3z7UfcnnSVhiyxnVRbXVfu3ScI1EM1KINEwpeozOOLq/
16uuYdiVZqtMeliG8VwPgv4f0xjkAA==
=BvWO
-----END PGP SIGNATURE-----payloadX  tree 0e1f06c79edda6b58e3efbaf62ac76b084eca3ce
parent ab7e9cb4adc2c1aff9c5cdedf5ae722d5a94bbc4
author Sam Kramer <skramer@palantir.com> 1684847904 +0100
committer Sam Kramer <skramer@palantir.com> 1684847904 +0100

only record poolsize where there are changes
uujV ^https://api.github.com/repos/palantir/atlasdb/commits/8475920a2fdea75ec5e32191b77dd0468713bd77html_urlShttps://github.com/palantir/atlasdb/commit/8475920a2fdea75ec5e32191b77dd0468713bd77comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8475920a2fdea75ec5e32191b77dd0468713bd77/commentsjU }(login
Sam-KrameridJ^2_ jU MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jV 'https://api.github.com/users/Sam-KramerjV https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujV }(j#V 
Sam-Kramerj%V J^2_ jU MDQ6VXNlcjYyMzg4MTQ=j'V 3https://avatars.githubusercontent.com/u/6238814?v=4j)V h5jV 'https://api.github.com/users/Sam-KramerjV https://github.com/Sam-Kramerj,V 1https://api.github.com/users/Sam-Kramer/followersj.V >https://api.github.com/users/Sam-Kramer/following{/other_user}j0V 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j2V >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j4V 5https://api.github.com/users/Sam-Kramer/subscriptionsj6V ,https://api.github.com/users/Sam-Kramer/orgsj8V -https://api.github.com/users/Sam-Kramer/reposj:V 8https://api.github.com/users/Sam-Kramer/events{/privacy}j<V 7https://api.github.com/users/Sam-Kramer/received_eventsj>V Userj@V uparents]}(jU (ab7e9cb4adc2c1aff9c5cdedf5ae722d5a94bbc4jV ^https://api.github.com/repos/palantir/atlasdb/commits/ab7e9cb4adc2c1aff9c5cdedf5ae722d5a94bbc4jV Shttps://github.com/palantir/atlasdb/commit/ab7e9cb4adc2c1aff9c5cdedf5ae722d5a94bbc4uastats}(totalK		additionsK	deletionsKufiles]}(jU (12e75801e74b8e222aefde1c239787832bbf2ce0filenamedatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javastatusmodifiedjZV Kj[V KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/8475920a2fdea75ec5e32191b77dd0468713bd77/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/8475920a2fdea75ec5e32191b77dd0468713bd77/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=8475920a2fdea75ec5e32191b77dd0468713bd77patchX  @@ -359,16 +359,15 @@ void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> des
 
         if (!(validatedServersToAdd.isEmpty() && absentServers.isEmpty())) { // if we made any changes
             cassandra.refreshTokenRangesAndGetServers();
+            metrics.recordPoolSize(getCurrentPools().size());
         }
 
-        metrics.recordPoolSize(getCurrentPools().size());
-
         Preconditions.checkState(
                 !getCurrentPools().isEmpty() || serversToAdd.isEmpty(),
                 "No servers were successfully added to the pool. This means we could not come to a consensus on"
-                    + " cluster topology, and the client cannot connect as there are no valid hosts. This state should"
-                    + " be transient (<5 minutes), and if it is not, indicates that the user may have accidentally"
-                    + " configured AltasDB to use two separate Cassandra clusters (i.e., user-led split brain).",
+                        + " cluster topology, and the client cannot connect as there are no valid hosts. This state should"
+                        + " be transient (<5 minutes), and if it is not, indicates that the user may have accidentally"
+                        + " configured AltasDB to use two separate Cassandra clusters (i.e., user-led split brain).",
                 SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())));
 
         logRefreshedHosts(validatedServersToAdd, serversToShutdown, absentServers);uau(94491f3e385fb07d410cb514dd88a7df2ca86d48}(sha(94491f3e385fb07d410cb514dd88a7df2ca86d48node_idEC_kwDOAjP5fdoAKDk0NDkxZjNlMzg1ZmIwN2Q0MTBjYjUxNGRkODhhN2RmMmNhODZkNDgcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-04-04T14:03:45Zu	committer}(jwV David SchlosnaglejyV davids@palantir.comj{V 2023-04-04T14:03:45Zumessage#[0.780.x] Use undertow 2.2.24.Finaltree}(joV (94bc0c7b166878c023038f384a5680cfe2f66471url`https://api.github.com/repos/palantir/atlasdb/git/trees/94bc0c7b166878c023038f384a5680cfe2f66471ujV bhttps://api.github.com/repos/palantir/atlasdb/git/commits/94491f3e385fb07d410cb514dd88a7df2ca86d48
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmQsLkEACgkQR9hsJ74Q
0l9iSQf+IomV8EY3JM5txQeCNEP1+eDaELruYFHm7VlE5PkYRANH6ld3wYqQRY+p
Xa7gL9tQ2yyG4v8j68yIu9G4/KU5aib1+kNLrr2ZE2Bjan/zz+pwNGtCQYBIZS3C
A/n3sF9eaLSzqgTbdof3x40PDE8hieh97ZPb0gOS0Xj5eEb2ItLrdalxefHe4Fka
R9J67JPvBAPpE0ggkoUpfprTiGE3xg4ZP9Z2gVAbv/RXuonPlzakiHiaSDIJDiPH
cdSudZHZ5zkGMs9lqyG5pUXud9/b5mjXhg257Ei6lv63ubI+N70ZoCb+xdnmweVC
Kf0zlFhW8m9/YT4FokLKGmYJPz5FyQ==
=8XwE
-----END PGP SIGNATURE-----payloadX  tree 94bc0c7b166878c023038f384a5680cfe2f66471
parent 4501d2dabce3419f779dd65220a89942820fd75f
author David Schlosnagle <davids@palantir.com> 1680617025 -0400
committer David Schlosnagle <davids@palantir.com> 1680617025 -0400

[0.780.x] Use undertow 2.2.24.Final
uujV ^https://api.github.com/repos/palantir/atlasdb/commits/94491f3e385fb07d410cb514dd88a7df2ca86d48html_urlShttps://github.com/palantir/atlasdb/commit/94491f3e385fb07d410cb514dd88a7df2ca86d48comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/94491f3e385fb07d410cb514dd88a7df2ca86d48/commentsjuV }(loginschlosnaidMBjqV MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jV %https://api.github.com/users/schlosnajV https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj}V }(jV schlosnajV MBjqV MDQ6VXNlcjU0NTk0jV 1https://avatars.githubusercontent.com/u/54594?v=4jV h5jV %https://api.github.com/users/schlosnajV https://github.com/schlosnajV /https://api.github.com/users/schlosna/followersjV <https://api.github.com/users/schlosna/following{/other_user}jV 5https://api.github.com/users/schlosna/gists{/gist_id}jV <https://api.github.com/users/schlosna/starred{/owner}{/repo}jV 3https://api.github.com/users/schlosna/subscriptionsjV *https://api.github.com/users/schlosna/orgsjV +https://api.github.com/users/schlosna/reposjV 6https://api.github.com/users/schlosna/events{/privacy}jV 5https://api.github.com/users/schlosna/received_eventsjV UserjV uparents]}(joV (4501d2dabce3419f779dd65220a89942820fd75fjV ^https://api.github.com/repos/palantir/atlasdb/commits/4501d2dabce3419f779dd65220a89942820fd75fjV Shttps://github.com/palantir/atlasdb/commit/4501d2dabce3419f779dd65220a89942820fd75fuastats}(totalK	additionsK	deletionsKufiles](}(joV (c77c5a29c759c6406e1675eae8bdf5ac1b762c17filename
versions.lockstatusmodifiedjV KjV KchangesK
blob_url_https://github.com/palantir/atlasdb/blob/94491f3e385fb07d410cb514dd88a7df2ca86d48/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/94491f3e385fb07d410cb514dd88a7df2ca86d48/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=94491f3e385fb07d410cb514dd88a7df2ca86d48patchX  @@ -185,7 +185,7 @@ io.netty:netty-transport-native-unix-common:4.1.85.Final (7 constraints: 1f78440
 io.netty:netty-transport-rxtx:4.1.85.Final (1 constraints: 000b22cf)
 io.netty:netty-transport-sctp:4.1.85.Final (1 constraints: 000b22cf)
 io.netty:netty-transport-udt:4.1.85.Final (1 constraints: 000b22cf)
-io.undertow:undertow-core:2.3.0.Final (2 constraints: 011d72f3)
+io.undertow:undertow-core:2.2.24.Final (2 constraints: 361dd006)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
@@ -276,11 +276,11 @@ org.hibernate:hibernate-validator:4.3.0.Final (2 constraints: ee248003)
 org.hibernate.validator:hibernate-validator:6.2.4.Final (4 constraints: 9a4748ce)
 org.immutables:value:2.8.8 (1 constraints: 060bd5af)
 org.javassist:javassist:3.29.1-GA (3 constraints: b52d27ad)
-org.jboss.logging:jboss-logging:3.4.3.Final (5 constraints: 3b55b666)
+org.jboss.logging:jboss-logging:3.4.1.Final (5 constraints: 39550e65)
 org.jboss.marshalling:jboss-marshalling:2.1.1.Final (1 constraints: 1e07ab5a)
-org.jboss.threads:jboss-threads:3.5.0.Final (4 constraints: db316abc)
-org.jboss.xnio:xnio-api:3.8.8.Final (2 constraints: 791a6546)
-org.jboss.xnio:xnio-nio:3.8.8.Final (1 constraints: c90dd230)
+org.jboss.threads:jboss-threads:3.5.0.Final (4 constraints: d731aebb)
+org.jboss.xnio:xnio-api:3.8.7.Final (2 constraints: 771a3146)
+org.jboss.xnio:xnio-nio:3.8.7.Final (1 constraints: c80dcb30)
 org.jdbi:jdbi3-core:3.30.0 (2 constraints: 0e10d5bf)
 org.jdbi:jdbi3-sqlobject:3.30.0 (1 constraints: 38053d3b)
 org.jetbrains:annotations:23.0.0 (3 constraints: 45257f15)u}(joV (5978dacbfd673657c29e13a697da7b87dca5188cjV versions.propsjV modifiedjV KjV KjV KjV `https://github.com/palantir/atlasdb/blob/94491f3e385fb07d410cb514dd88a7df2ca86d48/versions.propsjV _https://github.com/palantir/atlasdb/raw/94491f3e385fb07d410cb514dd88a7df2ca86d48/versions.propsjV rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=94491f3e385fb07d410cb514dd88a7df2ca86d48jV X2  @@ -46,7 +46,7 @@ commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
 io.netty:* = 4.1.85.Final
-io.undertow:undertow-core = 2.3.0.Final
+io.undertow:* = 2.2.24.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2ueu(b867143710e71a1a7396efada08264b5285c0b5d}(sha(b867143710e71a1a7396efada08264b5285c0b5dnode_idEC_kwDOAjP5fdoAKGI4NjcxNDM3MTBlNzFhMWE3Mzk2ZWZhZGEwODI2NGI1Mjg1YzBiNWQcommit}(author}(nameCVdV-auemail)69226052+CVdV-au@users.noreply.github.comdate2023-03-30T02:25:15Zu	committer}(jV GitHubjV noreply@github.comjV 2023-03-30T02:25:15ZumessageSince Atlas tables are append only, reserve no space for row growth on Oracle (#6489)

Oracle tables (including overflow) will be created with PCTFREE 0.tree}(jV (02a578a99d49027760759ddaa973aa5237e114aburl`https://api.github.com/repos/palantir/atlasdb/git/trees/02a578a99d49027760759ddaa973aa5237e114abujW bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b867143710e71a1a7396efada08264b5285c0b5d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkJPMLCRBK7hj4Ov3rIwAAxdsIAAwYg7AD3XoIafYCk2cJqTga
oObRwttQHrocKwDSS5/sEQT01FTR3sw2HUbrYJEtdvp3L9CIXbZsX+dCkpcccO6e
VFfg+f9FbwVYCVYfbUw1G47fQ/a8+rBypU5TMWhaoDy51W6l/3m+DBnAo7i0WSiv
oxWLKblQAvGoJNe/FBBBBJGojZlcpx9/SUb/kcsTfK611+mSeO176hUPbXY+Eo0L
S/tMcdYbpw78LgF+6iytNNUhyWbsSOdDW4U4tpIn/YHAvZlFlJfcoCRj2w7Xrvrr
yedL9QmWSrlOY1cFvtWlls+TpNbhVFxedSQPV3KsFPDJXx3z+umiHRDMr4FxQuw=
=o+zs
-----END PGP SIGNATURE-----
payloadX|  tree 02a578a99d49027760759ddaa973aa5237e114ab
parent 2f93f28efa9110716fa55db64abdf449478b6a4b
author CVdV-au <69226052+CVdV-au@users.noreply.github.com> 1680143115 +1100
committer GitHub <noreply@github.com> 1680143115 +0000

Since Atlas tables are append only, reserve no space for row growth on Oracle (#6489)

Oracle tables (including overflow) will be created with PCTFREE 0.
uujW ^https://api.github.com/repos/palantir/atlasdb/commits/b867143710e71a1a7396efada08264b5285c0b5dhtml_urlShttps://github.com/palantir/atlasdb/commit/b867143710e71a1a7396efada08264b5285c0b5dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b867143710e71a1a7396efada08264b5285c0b5d/commentsjV }(loginCVdV-auidJDN jV MDQ6VXNlcjY5MjI2MDUy
avatar_url4https://avatars.githubusercontent.com/u/69226052?v=4gravatar_idh5jW $https://api.github.com/users/CVdV-aujW https://github.com/CVdV-au
followers_url.https://api.github.com/users/CVdV-au/followers
following_url;https://api.github.com/users/CVdV-au/following{/other_user}	gists_url4https://api.github.com/users/CVdV-au/gists{/gist_id}starred_url;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/CVdV-au/subscriptionsorganizations_url)https://api.github.com/users/CVdV-au/orgs	repos_url*https://api.github.com/users/CVdV-au/repos
events_url5https://api.github.com/users/CVdV-au/events{/privacy}received_events_url4https://api.github.com/users/CVdV-au/received_eventstypeUser
site_adminujV }(jW web-flowjW J/jV MDQ6VXNlcjE5ODY0NDQ3jW 4https://avatars.githubusercontent.com/u/19864447?v=4jW h5jW %https://api.github.com/users/web-flowjW https://github.com/web-flowj"W /https://api.github.com/users/web-flow/followersj$W <https://api.github.com/users/web-flow/following{/other_user}j&W 5https://api.github.com/users/web-flow/gists{/gist_id}j(W <https://api.github.com/users/web-flow/starred{/owner}{/repo}j*W 3https://api.github.com/users/web-flow/subscriptionsj,W *https://api.github.com/users/web-flow/orgsj.W +https://api.github.com/users/web-flow/reposj0W 6https://api.github.com/users/web-flow/events{/privacy}j2W 5https://api.github.com/users/web-flow/received_eventsj4W Userj6W uparents]}(jV (2f93f28efa9110716fa55db64abdf449478b6a4bjW ^https://api.github.com/repos/palantir/atlasdb/commits/2f93f28efa9110716fa55db64abdf449478b6a4bjW Shttps://github.com/palantir/atlasdb/commit/2f93f28efa9110716fa55db64abdf449478b6a4buastats}(totalK	additionsK	deletionsKufiles](}(jV (b4249b75d5772865e17b9612368a1245c17ad38dfilename_atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTable.javastatusmodifiedjPW K
jQW KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b867143710e71a1a7396efada08264b5285c0b5d/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b867143710e71a1a7396efada08264b5285c0b5d/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.java?ref=b867143710e71a1a7396efada08264b5285c0b5dpatchX  @@ -196,7 +196,12 @@ private String createTable(boolean needsOverflow) {
                         + (needsOverflow ? "overflow   NUMBER(38), " : "")
                         + "  CONSTRAINT " + PrimaryKeyConstraintNames.get(shortTableName)
                         + " PRIMARY KEY (row_name, col_name, ts) "
-                        + ") organization index compress overflow",
+                        + ") "
+                        + "organization index compress "
+                        // Since append only completely fill blocks - no benefit in leaving space for updates of rows
+                        // PCTUSED N/A to Index Organized Tables
+                        + "PCTFREE 0 "
+                        + "overflow",
                 OracleErrorConstants.ORACLE_ALREADY_EXISTS_ERROR);
         putTableNameMapping(oracleTableNameGetter.getPrefixedTableName(tableRef), shortTableName);
         return shortTableName;
@@ -209,7 +214,10 @@ private void createOverflowTable() {
                         + "  id  NUMBER(38) NOT NULL, "
                         + "  val BLOB NOT NULL,"
                         + "  CONSTRAINT " + PrimaryKeyConstraintNames.get(shortOverflowTableName) + " PRIMARY KEY (id)"
-                        + ")",
+                        + ") "
+                        // Since append only completely fill blocks - no benefit in leaving space for updates of rows
+                        // Assume auto segment space management, so PCTUSED ignored
+                        + "PCTFREE 0",
                 OracleErrorConstants.ORACLE_ALREADY_EXISTS_ERROR);
         putTableNameMapping(oracleTableNameGetter.getPrefixedOverflowTableName(tableRef), shortOverflowTableName);
     }u}(jV (b6ee9b4dfa1da170c4c398511447a1f49d7e82b7jVW $changelog/@unreleased/pr-6489.v2.ymljXW addedjPW KjQW K jZW Kj[W |https://github.com/palantir/atlasdb/blob/b867143710e71a1a7396efada08264b5285c0b5d/changelog%2F%40unreleased%2Fpr-6489.v2.ymlj]W {https://github.com/palantir/atlasdb/raw/b867143710e71a1a7396efada08264b5285c0b5d/changelog%2F%40unreleased%2Fpr-6489.v2.ymlj_W https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6489.v2.yml?ref=b867143710e71a1a7396efada08264b5285c0b5djaW @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Oracle tables (including overflow) will be created with PCTFREE 0.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6489ueu(c05f5e76648b4076bac35f7b1c121d5dbc0251a6}(sha(c05f5e76648b4076bac35f7b1c121d5dbc0251a6node_idEC_kwDOAjP5fdoAKGMwNWY1ZTc2NjQ4YjQwNzZiYWMzNWY3YjFjMTIxZDVkYmMwMjUxYTYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-21T12:15:22Zu	committer}(juW 
Ahmed AlouanejwW aalouane@palantir.comjyW 2023-04-21T12:15:22Zumessagebuild with 2xlargetree}(jmW (eaf3f5a2fcb82456bd252c0e8487424019083955url`https://api.github.com/repos/palantir/atlasdb/git/trees/eaf3f5a2fcb82456bd252c0e8487424019083955ujW bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c05f5e76648b4076bac35f7b1c121d5dbc0251a6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRCfloACgkQPlMHVIT1
yhr+cAf/bT0XHzrbK9076jfaiN34vZtdUpt97sU28W3xpJJy3BOnQxhh+AeMamiA
fBOE3xCVw3BdYCPnQuqGIA6m9Pi3BJZ56QWBKcCBAX9CMyTMIUfeQ0QmMz0ON33C
G1zR6kZWxYYnUk6bl29OV1YdoWSRdA8TidVh7JluHBjy6XDjzBKVCu72KF0bj5if
Tw+ZlPIW9ZYhA2JftHXauwHijoVv5yYgQGs/d18hEx9mXA0wJIwcH6chq6qL+Ugt
oOj6Mqn7sp/k9Tje1PHxFwcVPycrmFpX6oys+k6msQx9iYLtI7u470hxc1c8INhd
+haE+lAl/7tOxJBEi3I8efTUvnL0Ww==
=eOVJ
-----END PGP SIGNATURE-----payloadtree eaf3f5a2fcb82456bd252c0e8487424019083955
parent 0e042c5db32fd526cc9e1506788bee2cda4f3a43
author Ahmed Alouane <aalouane@palantir.com> 1682079322 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682079322 +0100

build with 2xlarge
uujW ^https://api.github.com/repos/palantir/atlasdb/commits/c05f5e76648b4076bac35f7b1c121d5dbc0251a6html_urlShttps://github.com/palantir/atlasdb/commit/c05f5e76648b4076bac35f7b1c121d5dbc0251a6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c05f5e76648b4076bac35f7b1c121d5dbc0251a6/commentsjsW }(loginergo14idJjoW MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jW #https://api.github.com/users/ergo14jW https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj{W }(jW ergo14jW JjoW MDQ6VXNlcjMwOTAzNzM2jW 4https://avatars.githubusercontent.com/u/30903736?v=4jW h5jW #https://api.github.com/users/ergo14jW https://github.com/ergo14jW -https://api.github.com/users/ergo14/followersjW :https://api.github.com/users/ergo14/following{/other_user}jW 3https://api.github.com/users/ergo14/gists{/gist_id}jW :https://api.github.com/users/ergo14/starred{/owner}{/repo}jW 1https://api.github.com/users/ergo14/subscriptionsjW (https://api.github.com/users/ergo14/orgsjW )https://api.github.com/users/ergo14/reposjW 4https://api.github.com/users/ergo14/events{/privacy}jW 3https://api.github.com/users/ergo14/received_eventsjW UserjW uparents]}(jmW (0e042c5db32fd526cc9e1506788bee2cda4f3a43jW ^https://api.github.com/repos/palantir/atlasdb/commits/0e042c5db32fd526cc9e1506788bee2cda4f3a43jW Shttps://github.com/palantir/atlasdb/commit/0e042c5db32fd526cc9e1506788bee2cda4f3a43uastats}(totalK	additionsK	deletionsKufiles]}(jmW (d2b3c3b68679a697a69d34da94a33bd15fd0e53afilename.circleci/config.ymlstatusmodifiedjW KjW KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/c05f5e76648b4076bac35f7b1c121d5dbc0251a6/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/c05f5e76648b4076bac35f7b1c121d5dbc0251a6/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=c05f5e76648b4076bac35f7b1c121d5dbc0251a6patchX}  @@ -4,7 +4,7 @@ jobs:
   build:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: xlarge
+    resource_class: 2xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"uau(64b317a6eb698f0a80750ffc665082831c2d2c8f}(sha(64b317a6eb698f0a80750ffc665082831c2d2c8fnode_idEC_kwDOAjP5fdoAKDY0YjMxN2E2ZWI2OThmMGE4MDc1MGZmYzY2NTA4MjgzMWMyZDJjOGYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-15T16:05:37Zu	committer}(jW Jeremy KongjW jkong@palantir.comjW 2023-06-15T16:05:37Zumessageughtree}(jW (5b2a22a058f5e83d95aa15abb0ff0dd6aed3621aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/5b2a22a058f5e83d95aa15abb0ff0dd6aed3621aujW bhttps://api.github.com/repos/palantir/atlasdb/git/commits/64b317a6eb698f0a80750ffc665082831c2d2c8f
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSLNtIACgkQTLdFKain
zjxRrQgAtrBjxeBVXwsX5yQ/OqqMe7vSLr02pBlFl1tFJ49LrdP8rWL96IlKD76v
fu7PiROa8erbYSKWSkHxZmh2Uvrkk5jtTQA9tVu6D04yca3b5jx3yqM+HEcG0Qlq
Xi7BZZbEIVb5kdK/yKXzL8K0Baba7b1R0bepqCbQ6PvNFZRss9oxJWAzk2vL2Pqy
gH2dzdzPboWfKIm3UyHY45PJ/iNDlNVTJrWOPUiFDB9jcUlOatObhEjAA6/VsA0v
yuLYdCCRYjEsf68no0EqVVz+ynL0odYfTrl9cf+/NfP1/JzdC8WBWOQaa4Q9gsea
cM6IdWFts4XlRMQYr0mvCz/VDBFkcg==
=kBa8
-----END PGP SIGNATURE-----payloadtree 5b2a22a058f5e83d95aa15abb0ff0dd6aed3621a
parent ac510abe197b934e76d940bea69a189502954fa4
author Jeremy Kong <jkong@palantir.com> 1686845137 +0800
committer Jeremy Kong <jkong@palantir.com> 1686845137 +0800

ugh
uujW ^https://api.github.com/repos/palantir/atlasdb/commits/64b317a6eb698f0a80750ffc665082831c2d2c8fhtml_urlShttps://github.com/palantir/atlasdb/commit/64b317a6eb698f0a80750ffc665082831c2d2c8fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/64b317a6eb698f0a80750ffc665082831c2d2c8f/commentsjW }(login
jeremyk-91idJZ jW MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jW 'https://api.github.com/users/jeremyk-91j
X https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujW }(jX 
jeremyk-91jX JZ jW MDQ6VXNlcjU5NTU1MTA=jX 3https://avatars.githubusercontent.com/u/5955510?v=4jX h5jW 'https://api.github.com/users/jeremyk-91j
X https://github.com/jeremyk-91jX 1https://api.github.com/users/jeremyk-91/followersjX >https://api.github.com/users/jeremyk-91/following{/other_user}jX 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jX >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j X 5https://api.github.com/users/jeremyk-91/subscriptionsj"X ,https://api.github.com/users/jeremyk-91/orgsj$X -https://api.github.com/users/jeremyk-91/reposj&X 8https://api.github.com/users/jeremyk-91/events{/privacy}j(X 7https://api.github.com/users/jeremyk-91/received_eventsj*X Userj,X uparents]}(jW (ac510abe197b934e76d940bea69a189502954fa4jW ^https://api.github.com/repos/palantir/atlasdb/commits/ac510abe197b934e76d940bea69a189502954fa4j
X Shttps://github.com/palantir/atlasdb/commit/ac510abe197b934e76d940bea69a189502954fa4uastats}(totalK	additionsK	deletionsKufiles]}(jW (cca54e367381243e6c9ee4875496ebcbd7293097filenameJlock-impl/src/main/java/com/palantir/lock/logger/LockDescriptorMapper.javastatusmodifiedjFX KjGX KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/64b317a6eb698f0a80750ffc665082831c2d2c8f/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockDescriptorMapper.javaraw_urlhttps://github.com/palantir/atlasdb/raw/64b317a6eb698f0a80750ffc665082831c2d2c8f/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockDescriptorMapper.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockDescriptorMapper.java?ref=64b317a6eb698f0a80750ffc665082831c2d2c8fpatchX  @@ -40,8 +40,7 @@ ObfuscatedLockDescriptor getDescriptorMapping(LockDescriptor descriptor) {
     }
 
     /**
-     *
-     * @return map from mapping to real descriptor.
+     * Return a map from mapping to real descriptor.
      */
     Map<ObfuscatedLockDescriptor, LockDescriptor> getReversedMapper() {
         return mapper.entrySet().stream().collect(Collectors.toMap(Map.Entry::getValue, Map.Entry::getKey));uau(99b87f5e8db8523d1358bf2d1d21a1a1604fb292}(sha(99b87f5e8db8523d1358bf2d1d21a1a1604fb292node_idEC_kwDOAjP5fdoAKDk5Yjg3ZjVlOGRiODUyM2QxMzU4YmYyZDFkMjFhMWExNjA0ZmIyOTIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-11T01:58:39Zu	committer}(jcX Jeremy KongjeX jkong@palantir.comjgX 2023-04-11T01:58:39Zumessagespotlesstree}(j[X (d5ca9ba6c6b1509826d7a77cffb54fef2a0720d4url`https://api.github.com/repos/palantir/atlasdb/git/trees/d5ca9ba6c6b1509826d7a77cffb54fef2a0720d4ujsX bhttps://api.github.com/repos/palantir/atlasdb/git/commits/99b87f5e8db8523d1358bf2d1d21a1a1604fb292
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ0vs8ACgkQTLdFKain
zjxe2ggAnvS98LSsDLe10STDgOPQo75lLAgSbXgm0zGwTckvYWPe1D2J7ZwDIpYz
Hqz/5BwRGlMPX99r6QPB54CjimPtNJync5AQN/k3go06Z2A9C8RKC8I3ixEbfg8w
X551xIKDEHFcfjLOLAwXUoUqyRCJdDlZQwZIPtCxyLZ77x43ruPtsoY2HsbMKqeg
Lc3wVx+g9rIHOpSOnyeSCZJwvQRv7CawKAh5jh2Svam6YUtZe3ms9hTnep2X3kVt
n+xQkuXW73v1hovoPl8VzVFJIHIlcvbVSpDyG1DyXGHozjQfZBexE42fo7sxkXSY
WcQEGRuWSlhE9V575jsoSKe8RMMOrw==
=4vKZ
-----END PGP SIGNATURE-----payloadtree d5ca9ba6c6b1509826d7a77cffb54fef2a0720d4
parent 19d42f40a5a5c1a84af21206b353ed318d9125f8
author Jeremy Kong <jkong@palantir.com> 1681178319 +0800
committer Jeremy Kong <jkong@palantir.com> 1681178319 +0800

spotless
uujsX ^https://api.github.com/repos/palantir/atlasdb/commits/99b87f5e8db8523d1358bf2d1d21a1a1604fb292html_urlShttps://github.com/palantir/atlasdb/commit/99b87f5e8db8523d1358bf2d1d21a1a1604fb292comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/99b87f5e8db8523d1358bf2d1d21a1a1604fb292/commentsjaX }(login
jeremyk-91idJZ j]X MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jsX 'https://api.github.com/users/jeremyk-91jX https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujiX }(jX 
jeremyk-91jX JZ j]X MDQ6VXNlcjU5NTU1MTA=jX 3https://avatars.githubusercontent.com/u/5955510?v=4jX h5jsX 'https://api.github.com/users/jeremyk-91jX https://github.com/jeremyk-91jX 1https://api.github.com/users/jeremyk-91/followersjX >https://api.github.com/users/jeremyk-91/following{/other_user}jX 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jX >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jX 5https://api.github.com/users/jeremyk-91/subscriptionsjX ,https://api.github.com/users/jeremyk-91/orgsjX -https://api.github.com/users/jeremyk-91/reposjX 8https://api.github.com/users/jeremyk-91/events{/privacy}jX 7https://api.github.com/users/jeremyk-91/received_eventsjX UserjX uparents]}(j[X (19d42f40a5a5c1a84af21206b353ed318d9125f8jsX ^https://api.github.com/repos/palantir/atlasdb/commits/19d42f40a5a5c1a84af21206b353ed318d9125f8jX Shttps://github.com/palantir/atlasdb/commit/19d42f40a5a5c1a84af21206b353ed318d9125f8uastats}(totalK5	additionsK	deletionsKufiles](}(j[X (413c3f1d6f54576bda9a38d20513148afdaf45c5filenameKtimelock-agent/src/main/java/com/palantir/timelock/paxos/TimeLockAgent.javastatusmodifiedjX KjX KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/99b87f5e8db8523d1358bf2d1d21a1a1604fb292/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javaraw_urlhttps://github.com/palantir/atlasdb/raw/99b87f5e8db8523d1358bf2d1d21a1a1604fb292/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.java?ref=99b87f5e8db8523d1358bf2d1d21a1a1604fb292patchX  @@ -54,7 +54,6 @@
 import com.palantir.atlasdb.timelock.management.ServiceLifecycleController;
 import com.palantir.atlasdb.timelock.management.TimeLockManagementResource;
 import com.palantir.atlasdb.timelock.paxos.ImmutableTimelockPaxosInstallationContext;
-import com.palantir.atlasdb.timelock.paxos.LeaderAcceptorResourceEndpoints;
 import com.palantir.atlasdb.timelock.paxos.PaxosResources;
 import com.palantir.atlasdb.timelock.paxos.PaxosResourcesFactory;
 import com.palantir.atlasdb.timelock.paxos.TimeLockCorruptionComponents;
@@ -355,7 +354,8 @@ private void createAndRegisterResources() {
                     presentUndertowRegistrar,
                     MultiClientConjureTimelockResource.undertow(redirectRetryTargeter, asyncTimelockServiceGetter));
 
-            LegacyAggregatedTimelockResource aggregatedTimelockResource = LegacyAggregatedTimelockResource.create(namespaces);
+            LegacyAggregatedTimelockResource aggregatedTimelockResource =
+                    LegacyAggregatedTimelockResource.create(namespaces);
             registerCorruptionHandlerWrappedService(
                     presentUndertowRegistrar,
                     new TimelockUndertowExceptionWrapper(u}(j[X (8d45e24e7d667a9855d7e434aafc3e4044e66fd7jX _timelock-impl/src/main/java/com/palantir/atlasdb/timelock/LegacyAggregatedTimelockResource.javajX modifiedjX KjX KjX K.jX https://github.com/palantir/atlasdb/blob/99b87f5e8db8523d1358bf2d1d21a1a1604fb292/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAggregatedTimelockResource.javajX https://github.com/palantir/atlasdb/raw/99b87f5e8db8523d1358bf2d1d21a1a1604fb292/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAggregatedTimelockResource.javajX https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAggregatedTimelockResource.java?ref=99b87f5e8db8523d1358bf2d1d21a1a1604fb292jX X  @@ -125,8 +125,7 @@ public LockResponse lockWithFullLockResponse(
     @NonIdempotent
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock-with-full-response")
     public LockResponse lockWithFullLockResponse(
-            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
-            @Handle.Body LockRequest request)
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockRequest request)
             throws InterruptedException {
         return lockWithFullLockResponse(namespace, LockClient.ANONYMOUS, request);
     }
@@ -185,8 +184,7 @@ public Set<HeldLocksToken> getTokens(
     @CancelableServerCall
     @NonIdempotent
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/get-tokens")
-    public Set<HeldLocksToken> getTokens(
-            @Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+    public Set<HeldLocksToken> getTokens(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
         return getTokens(namespace, LockClient.ANONYMOUS);
     }
 
@@ -258,8 +256,7 @@ public HeldLocksToken useGrant(
     @NonIdempotent
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/use-grant")
     public HeldLocksToken useGrant(
-            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
-            @Handle.Body HeldLocksGrant grant) {
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body HeldLocksGrant grant) {
         return useGrant(namespace, LockClient.ANONYMOUS, grant);
     }
 
@@ -283,8 +280,7 @@ public HeldLocksToken useGrant(
     @NonIdempotent
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/use-grant-id")
     public HeldLocksToken useGrant(
-            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
-            @Handle.Body BigInteger grantId) {
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body BigInteger grantId) {
         return useGrant(namespace, LockClient.ANONYMOUS, grantId);
     }
 
@@ -358,9 +354,11 @@ public void logCurrentState(@Safe @PathParam("namespace") @Handle.PathParam Stri
     @Consumes(MediaType.APPLICATION_JSON)
     @Nullable
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock/{client}")
-    public LockRefreshToken lock(@Safe @PathParam("namespace") @Handle.PathParam String namespace,
+    public LockRefreshToken lock(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Safe @PathParam("client") @Handle.PathParam String client,
-                                 @Handle.Body LockRequest request) throws InterruptedException {
+            @Handle.Body LockRequest request)
+            throws InterruptedException {
         return namespaces.get(namespace).getLockService().lock(client, request);
     }
 
@@ -370,8 +368,9 @@ public LockRefreshToken lock(@Safe @PathParam("namespace") @Handle.PathParam Str
     @Consumes(MediaType.APPLICATION_JSON)
     @Nullable
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock")
-    public LockRefreshToken lock(@Safe @PathParam("namespace") @Handle.PathParam String namespace,
-                                 @Handle.Body LockRequest request) throws InterruptedException {
+    public LockRefreshToken lock(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockRequest request)
+            throws InterruptedException {
         return lock(namespace, LockClient.ANONYMOUS.getClientId(), request);
     }
 
@@ -380,8 +379,10 @@ public LockRefreshToken lock(@Safe @PathParam("namespace") @Handle.PathParam Str
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/try-lock/{client}")
-    public HeldLocksToken lockAndGetHeldLocks(@Safe @PathParam("namespace") @Handle.PathParam String namespace,
-            @Safe @PathParam("client") @Handle.PathParam String client, @Handle.Body LockRequest request)
+    public HeldLocksToken lockAndGetHeldLocks(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Safe @PathParam("client") @Handle.PathParam String client,
+            @Handle.Body LockRequest request)
             throws InterruptedException {
         return namespaces.get(namespace).getLockService().lockAndGetHeldLocks(client, request);
     }
@@ -391,8 +392,8 @@ public HeldLocksToken lockAndGetHeldLocks(@Safe @PathParam("namespace") @Handle.
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/try-lock")
-    public HeldLocksToken lockAndGetHeldLocks(@Safe @PathParam("namespace") @Handle.PathParam String namespace,
-                                               @Handle.Body LockRequest request)
+    public HeldLocksToken lockAndGetHeldLocks(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockRequest request)
             throws InterruptedException {
         return lockAndGetHeldLocks(namespace, LockClient.ANONYMOUS.getClientId(), request);
     }
@@ -403,7 +404,8 @@ public HeldLocksToken lockAndGetHeldLocks(@Safe @PathParam("namespace") @Handle.
     @Consumes(MediaType.APPLICATION_JSON)
     @NonIdempotent
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/unlock")
-    public boolean unlock(@Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockRefreshToken token) {
+    public boolean unlock(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockRefreshToken token) {
         return namespaces.get(namespace).getLockService().unlock(token);
     }
 
@@ -413,7 +415,8 @@ public boolean unlock(@Safe @PathParam("namespace") @Handle.PathParam String nam
     @Consumes(MediaType.APPLICATION_JSON)
     @Idempotent
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/refresh-lock-tokens")
-    public Set<LockRefreshToken> refreshLockRefreshTokens(@Safe @PathParam("namespace") @Handle.PathParam String namespace,
+    public Set<LockRefreshToken> refreshLockRefreshTokens(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Handle.Body Iterable<LockRefreshToken> tokens) {
         return namespaces.get(namespace).getLockService().refreshLockRefreshTokens(tokens);
     }
@@ -425,7 +428,9 @@ public Set<LockRefreshToken> refreshLockRefreshTokens(@Safe @PathParam("namespac
     @Idempotent
     @Nullable
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version/{client}")
-    public Long getMinLockedInVersionId(@Safe @PathParam("namespace") @Handle.PathParam String namespace, @Safe @PathParam("client") @Handle.PathParam String client) {
+    public Long getMinLockedInVersionId(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Safe @PathParam("client") @Handle.PathParam String client) {
         return namespaces.get(namespace).getLockService().getMinLockedInVersionId(client);
     }
 
@@ -436,8 +441,7 @@ public Long getMinLockedInVersionId(@Safe @PathParam("namespace") @Handle.PathPa
     @Consumes(MediaType.APPLICATION_JSON)
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/get-debugging-lock-state")
     public LockState getLockState(
-            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
-            @Handle.Body LockDescriptor lock) {
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockDescriptor lock) {
         return namespaces.get(namespace).getLockService().getLockState(lock);
     }
 u}(j[X (bd3a2ba95ba30b897cf251bbfcd4675e993540b6jX Otimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimeLockResource.javajX modifiedjX K jX KjX KjX https://github.com/palantir/atlasdb/blob/99b87f5e8db8523d1358bf2d1d21a1a1604fb292/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockResource.javajX https://github.com/palantir/atlasdb/raw/99b87f5e8db8523d1358bf2d1d21a1a1604fb292/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockResource.javajX https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockResource.java?ref=99b87f5e8db8523d1358bf2d1d21a1a1604fb292jX X2  @@ -15,10 +15,7 @@
  */
 package com.palantir.atlasdb.timelock;
 
-import com.palantir.lock.LockService;
 import com.palantir.logsafe.Safe;
-import com.palantir.timestamp.TimestampManagementService;
-import com.palantir.timestamp.TimestampService;
 import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
 ueu(41d902e085f4c9b35a27d817f74c462eb3750462}(sha(41d902e085f4c9b35a27d817f74c462eb3750462node_idEC_kwDOAjP5fdoAKDQxZDkwMmUwODVmNGM5YjM1YTI3ZDgxN2Y3NGM0NjJlYjM3NTA0NjIcommit}(author}(nameTom Petraccaemail"tpetracca@users.noreply.github.comdate2023-08-08T20:59:39Zu	committer}(jX GitHubjX noreply@github.comjX 2023-08-08T20:59:39ZumessageQfix: fix TransactionManagers ABI break (#6698)

fix TransactionManagers ABI breaktree}(jX (3ea842556eb42deb1b370514b71b17370db768bdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/3ea842556eb42deb1b370514b71b17370db768bdujX bhttps://api.github.com/repos/palantir/atlasdb/git/commits/41d902e085f4c9b35a27d817f74c462eb3750462
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk0qy7CRBK7hj4Ov3rIwAAGygIAKCw/vMpZmpHU0Q6c8rrVuZB
WAdk/b7kXFNKafzEgHTiArP1H+84OAfJ0TijADrIK+f2Hah6UBqUVcSX/qeeIezw
1hmG5O/gKh3Xey0KgzpmYlsojj71EpYEVZ67ARkddY+/qobCgdkgUeAdt3YmF1mE
GLEK7ui2J20v4CXspXToKeSTWxupsTIQSBqpyLLHcB6dpEd/6jpBGsR50eYCymIq
+TRW+D83AXwwQ/twBi/N32e+t0i4eKbxjaECJVKMuQ3mV/2Zf1usrDyuyoEQfBEO
WQiiF/UBQaoXTpvWtrlHhUrx4VQWNT63qOKt36k6Zde56oV7YWG/lfs/uMQJRu0=
=Bk0/
-----END PGP SIGNATURE-----
payloadX2  tree 3ea842556eb42deb1b370514b71b17370db768bd
parent 9970453d639510f15d35a8fae963e600ccbd7d83
author Tom Petracca <tpetracca@users.noreply.github.com> 1691528379 -0400
committer GitHub <noreply@github.com> 1691528379 +0000

fix: fix TransactionManagers ABI break (#6698)

fix TransactionManagers ABI break
uujX ^https://api.github.com/repos/palantir/atlasdb/commits/41d902e085f4c9b35a27d817f74c462eb3750462html_urlShttps://github.com/palantir/atlasdb/commit/41d902e085f4c9b35a27d817f74c462eb3750462comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/41d902e085f4c9b35a27d817f74c462eb3750462/commentsjX }(login	tpetraccaidJ& jX MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5jX &https://api.github.com/users/tpetraccajY https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminujX }(j
Y web-flowjY J/jX MDQ6VXNlcjE5ODY0NDQ3jY 4https://avatars.githubusercontent.com/u/19864447?v=4jY h5jX %https://api.github.com/users/web-flowjY https://github.com/web-flowjY /https://api.github.com/users/web-flow/followersjY <https://api.github.com/users/web-flow/following{/other_user}jY 5https://api.github.com/users/web-flow/gists{/gist_id}jY <https://api.github.com/users/web-flow/starred{/owner}{/repo}jY 3https://api.github.com/users/web-flow/subscriptionsj Y *https://api.github.com/users/web-flow/orgsj"Y +https://api.github.com/users/web-flow/reposj$Y 6https://api.github.com/users/web-flow/events{/privacy}j&Y 5https://api.github.com/users/web-flow/received_eventsj(Y Userj*Y uparents]}(jX (9970453d639510f15d35a8fae963e600ccbd7d83jX ^https://api.github.com/repos/palantir/atlasdb/commits/9970453d639510f15d35a8fae963e600ccbd7d83D      jY Shttps://github.com/palantir/atlasdb/commit/9970453d639510f15d35a8fae963e600ccbd7d83uastats}(totalKK	additionsKK	deletionsK ufiles](}(jX (3a9b0845d256f702e787162e41056d0c4cc02816filename.palantir/revapi.ymlstatusmodifiedjDY K8jEY K changesK8blob_urlhhttps://github.com/palantir/atlasdb/blob/41d902e085f4c9b35a27d817f74c462eb3750462/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/41d902e085f4c9b35a27d817f74c462eb3750462/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=41d902e085f4c9b35a27d817f74c462eb3750462patchX)  @@ -193,3 +193,59 @@ acceptedBreaks:
       new: "method void com.palantir.atlasdb.transaction.api.Transaction::putWithMetadata(com.palantir.atlasdb.keyvalue.api.TableReference,\
         \ java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell, com.palantir.atlasdb.transaction.api.ValueAndChangeMetadata>)"
       justification: "Adding new metadata interface methods"
+  "0.909.0":
+    com.palantir.atlasdb:atlasdb-config:
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.factory.ImmutableLocalPaxosServices"
+      justification: "None of the impacted classes are used or inherited from any\
+        \ other library or product"
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.factory.ImmutableRemotePaxosServerSpec"
+      justification: "None of the impacted classes are used or inherited from any\
+        \ other library or product"
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.factory.Leaders"
+      justification: "None of the impacted classes are used or inherited from any\
+        \ other library or product"
+    - code: "java.method.numberOfParametersChanged"
+      old: "method void com.palantir.atlasdb.factory.DefaultLockAndTimestampServiceFactory::<init>(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.config.AtlasDbConfig, com.palantir.refreshable.Refreshable<com.palantir.atlasdb.config.AtlasDbRuntimeConfig>,\
+        \ java.util.function.Consumer<java.lang.Object>, java.util.function.Supplier<com.palantir.lock.LockService>,\
+        \ java.util.function.Supplier<com.palantir.timestamp.ManagedTimestampService>,\
+        \ com.palantir.timestamp.TimestampStoreInvalidator, com.palantir.conjure.java.api.config.service.UserAgent,\
+        \ java.util.Optional<com.palantir.atlasdb.debug.LockDiagnosticComponents>,\
+        \ com.palantir.dialogue.clients.DialogueClients.ReloadingFactory, java.util.Optional<com.palantir.lock.client.metrics.TimeLockFeedbackBackgroundTask>,\
+        \ java.util.Optional<com.palantir.atlasdb.config.TimeLockRequestBatcherProviders>,\
+        \ java.util.Set<com.palantir.atlasdb.table.description.Schema>)"
+      new: "method void com.palantir.atlasdb.factory.DefaultLockAndTimestampServiceFactory::<init>(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.config.AtlasDbConfig, com.palantir.refreshable.Refreshable<com.palantir.atlasdb.config.AtlasDbRuntimeConfig>,\
+        \ java.util.function.Supplier<com.palantir.lock.LockService>, java.util.function.Supplier<com.palantir.timestamp.ManagedTimestampService>,\
+        \ com.palantir.timestamp.TimestampStoreInvalidator, com.palantir.conjure.java.api.config.service.UserAgent,\
+        \ java.util.Optional<com.palantir.atlasdb.debug.LockDiagnosticComponents>,\
+        \ com.palantir.dialogue.clients.DialogueClients.ReloadingFactory, java.util.Optional<com.palantir.lock.client.metrics.TimeLockFeedbackBackgroundTask>,\
+        \ java.util.Optional<com.palantir.atlasdb.config.TimeLockRequestBatcherProviders>,\
+        \ java.util.Set<com.palantir.atlasdb.table.description.Schema>)"
+      justification: "None of the impacted classes are used or inherited from any\
+        \ other library or product"
+    - code: "java.method.numberOfParametersChanged"
+      old: "method void com.palantir.atlasdb.factory.DefaultLockAndTimestampServiceFactory::<init>(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.config.AtlasDbConfig, com.palantir.refreshable.Refreshable<com.palantir.atlasdb.config.AtlasDbRuntimeConfig>,\
+        \ java.util.function.Consumer<java.lang.Object>, java.util.function.Supplier<com.palantir.lock.LockService>,\
+        \ java.util.function.Supplier<com.palantir.timestamp.ManagedTimestampService>,\
+        \ com.palantir.timestamp.TimestampStoreInvalidator, com.palantir.conjure.java.api.config.service.UserAgent,\
+        \ java.util.Optional<com.palantir.atlasdb.debug.LockDiagnosticComponents>,\
+        \ com.palantir.dialogue.clients.DialogueClients.ReloadingFactory, java.util.Optional<com.palantir.lock.client.metrics.TimeLockFeedbackBackgroundTask>,\
+        \ java.util.Optional<com.palantir.atlasdb.config.TimeLockRequestBatcherProviders>,\
+        \ java.util.Set<com.palantir.atlasdb.table.description.Schema>, java.util.function.Function<com.palantir.lock.v2.TimelockService,\
+        \ com.palantir.lock.client.TimeLockClient>)"
+      new: "method void com.palantir.atlasdb.factory.DefaultLockAndTimestampServiceFactory::<init>(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.config.AtlasDbConfig, com.palantir.refreshable.Refreshable<com.palantir.atlasdb.config.AtlasDbRuntimeConfig>,\
+        \ java.util.function.Supplier<com.palantir.lock.LockService>, java.util.function.Supplier<com.palantir.timestamp.ManagedTimestampService>,\
+        \ com.palantir.timestamp.TimestampStoreInvalidator, com.palantir.conjure.java.api.config.service.UserAgent,\
+        \ java.util.Optional<com.palantir.atlasdb.debug.LockDiagnosticComponents>,\
+        \ com.palantir.dialogue.clients.DialogueClients.ReloadingFactory, java.util.Optional<com.palantir.lock.client.metrics.TimeLockFeedbackBackgroundTask>,\
+        \ java.util.Optional<com.palantir.atlasdb.config.TimeLockRequestBatcherProviders>,\
+        \ java.util.Set<com.palantir.atlasdb.table.description.Schema>, java.util.function.Function<com.palantir.lock.v2.TimelockService,\
+        \ com.palantir.lock.client.TimeLockClient>)"
+      justification: "None of the impacted classes are used or inherited from any\
+        \ other library or product"u}(jX (c94bff011cdc23b5b61ec7b23ea30e6c9ce1fec0jJY atlasdb-config/build.gradlejLY modifiedjDY KjEY K jNY KjOY ohttps://github.com/palantir/atlasdb/blob/41d902e085f4c9b35a27d817f74c462eb3750462/atlasdb-config%2Fbuild.gradlejQY nhttps://github.com/palantir/atlasdb/raw/41d902e085f4c9b35a27d817f74c462eb3750462/atlasdb-config%2Fbuild.gradlejSY https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fbuild.gradle?ref=41d902e085f4c9b35a27d817f74c462eb3750462jUY XN  @@ -1,4 +1,5 @@
 apply from: "../gradle/shared.gradle"
+apply plugin: 'com.palantir.revapi'
 
 dependencies {
     api project(':atlasdb-api')
@@ -86,3 +87,7 @@ dependencies {
     // Needed for Jersey Response-based tests
     testImplementation 'org.glassfish.jersey.core:jersey-common'
 }
+
+revapi {
+    oldVersion = '0.909.0'
+}u}(jX (25e42a91ab4e5010e8ec19188ac233f00c6b4cbbjJY Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javajLY modifiedjDY K	jEY K jNY K	jOY https://github.com/palantir/atlasdb/blob/41d902e085f4c9b35a27d817f74c462eb3750462/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajQY https://github.com/palantir/atlasdb/raw/41d902e085f4c9b35a27d817f74c462eb3750462/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajSY https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=41d902e085f4c9b35a27d817f74c462eb3750462jUY X  @@ -169,6 +169,15 @@ public abstract class TransactionManagers {
 
     abstract Set<Schema> schemas();
 
+    /**
+     * This method is not used and should not be overriden from the default. It only exists because deleting
+     * it would be an ABI break.
+     */
+    @Value.Default
+    Consumer<Object> registrar() {
+        return resource -> {};
+    }
+
     @Value.Default
     LockServerOptions lockServerOptions() {
         return LockServerConfigs.DEFAULT;u}(jX (ae5b6dc095d5c6cd4217b7bcf63b7026ec96c159jJY $changelog/@unreleased/pr-6698.v2.ymljLY addedjDY KjEY K jNY KjOY |https://github.com/palantir/atlasdb/blob/41d902e085f4c9b35a27d817f74c462eb3750462/changelog%2F%40unreleased%2Fpr-6698.v2.ymljQY {https://github.com/palantir/atlasdb/raw/41d902e085f4c9b35a27d817f74c462eb3750462/changelog%2F%40unreleased%2Fpr-6698.v2.ymljSY https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6698.v2.yml?ref=41d902e085f4c9b35a27d817f74c462eb3750462jUY @@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: fix TransactionManagers ABI break
+  links:
+  - https://github.com/palantir/atlasdb/pull/6698ueu(5a6886cac13d4d25a49364b183098e72b583383c}(sha(5a6886cac13d4d25a49364b183098e72b583383cnode_idEC_kwDOAjP5fdoAKDVhNjg4NmNhYzEzZDRkMjVhNDkzNjRiMTgzMDk4ZTcyYjU4MzM4M2Mcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-25T16:54:29Zu	committer}(jyY Lucas Meirelesj{Y meireles31@msn.comj}Y 2023-07-25T16:54:29ZumessageMerge branch 'lmeireles/expose-get-with-expected-size' into lmeireles/api-with-result-type

# Conflicts:
#	atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javatree}(jqY (2f437a97453e3817d3fbb2faddd2d68dd41ce8a3url`https://api.github.com/repos/palantir/atlasdb/git/trees/2f437a97453e3817d3fbb2faddd2d68dd41ce8a3ujY bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5a6886cac13d4d25a49364b183098e72b583383c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS//kUACgkQJd22kJ7J
GizSAQf/QYM+E1PFJCJE+9Z/N0Ao9iJk54vWa61IChFxJSW4dNo7ghpVplWunVGD
pIqMitZAYvVCBGWxrFULK76eWY+IoSwec0L42EyZFjUybSGqDeoduMNh3HoCZGjf
vVam+g4kWP4JKJNxAut4UKV/a1dDpf8BO8dmOKrLdXJBmg+W7zSK+HT4s/LXPXxH
e2JSPMxH49TIyCeDmOtvpD7AHHlR8kzpQIZTIR39oe7MP5LMqgK7liI4KcpvO2Kq
Vvr+9LP951Bxo3DmCMMoqwp9ahZpiqUqADTg8T7o4+gGGmEaegnbjSzavl1TbF0k
aPF1s3DghrhenWsSKG0Jg4LtCLHyZg==
=a+/E
-----END PGP SIGNATURE-----payloadX  tree 2f437a97453e3817d3fbb2faddd2d68dd41ce8a3
parent 6afa0012dcacc15976938c17c83097f8744ab020
parent 918ead8d3ad89496e197ccd0f48752cb2666fc4b
author Lucas Meireles <meireles31@msn.com> 1690304069 +0100
committer Lucas Meireles <meireles31@msn.com> 1690304069 +0100

Merge branch 'lmeireles/expose-get-with-expected-size' into lmeireles/api-with-result-type

# Conflicts:
#	atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.java
uujY ^https://api.github.com/repos/palantir/atlasdb/commits/5a6886cac13d4d25a49364b183098e72b583383chtml_urlShttps://github.com/palantir/atlasdb/commit/5a6886cac13d4d25a49364b183098e72b583383ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5a6886cac13d4d25a49364b183098e72b583383c/commentsjwY }(loginLucasIMEidJg jsY MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jY %https://api.github.com/users/LucasIMEjY https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujY }(jY LucasIMEjY Jg jsY MDQ6VXNlcjY3ODczMTE=jY 3https://avatars.githubusercontent.com/u/6787311?v=4jY h5jY %https://api.github.com/users/LucasIMEjY https://github.com/LucasIMEjY /https://api.github.com/users/LucasIME/followersjY <https://api.github.com/users/LucasIME/following{/other_user}jY 5https://api.github.com/users/LucasIME/gists{/gist_id}jY <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jY 3https://api.github.com/users/LucasIME/subscriptionsjY *https://api.github.com/users/LucasIME/orgsjY +https://api.github.com/users/LucasIME/reposjY 6https://api.github.com/users/LucasIME/events{/privacy}jY 5https://api.github.com/users/LucasIME/received_eventsjY UserjY uparents](}(jqY (6afa0012dcacc15976938c17c83097f8744ab020jY ^https://api.github.com/repos/palantir/atlasdb/commits/6afa0012dcacc15976938c17c83097f8744ab020jY Shttps://github.com/palantir/atlasdb/commit/6afa0012dcacc15976938c17c83097f8744ab020u}(jqY (918ead8d3ad89496e197ccd0f48752cb2666fc4bjY ^https://api.github.com/repos/palantir/atlasdb/commits/918ead8d3ad89496e197ccd0f48752cb2666fc4bjY Shttps://github.com/palantir/atlasdb/commit/918ead8d3ad89496e197ccd0f48752cb2666fc4buestats}(totalK 	additionsK 	deletionsK ufiles]u(bde83b0dd394ba9dc51321bd2364ae23edc2887d}(sha(bde83b0dd394ba9dc51321bd2364ae23edc2887dnode_idEC_kwDOAjP5fdoAKGJkZTgzYjBkZDM5NGJhOWRjNTEzMjFiZDIzNjRhZTIzZWRjMjg4N2Qcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-03-06T16:47:15Zu	committer}(jY GitHubjY noreply@github.comjY 2023-03-06T16:47:15ZumessageV[PDS-339803] mapAllServersToOrigin accounts for duplicates in map construction (#6462)tree}(jY (326c29468b98ecc7c6b923dc85aeb95cca36545curl`https://api.github.com/repos/palantir/atlasdb/git/trees/326c29468b98ecc7c6b923dc85aeb95cca36545cujY bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bde83b0dd394ba9dc51321bd2364ae23edc2887d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkBhkTCRBK7hj4Ov3rIwAAocAIAGDNVlzF2+tfE5fZu+R64MMF
3ITCtxtRjphcg3/Mb+Iu0nvOONvbLmjp7BkIsok6L+sz7N4RR8c44ZxtLVHTRIGk
rKYD91DTdYSjOY8FH9ljJbHxl8qsC1ZWYgbQPnrm7Dce0/xAOfdVITh1OMHDFLPA
TbLQxwfaJ5TpDaB8U/18fRJaKrHlKA6UciN2dJgjPhwcRI6I8SCjGakIz9YsDxVg
GNCk8NSHqyp1a4zzY4ndZGbsa0cdP153pzEzRq5EicodDr7afoBti+7Er3uEo6LO
8uBBUZvfScrFgaootg3Lkah7zcmmjT82FJKZFa6ebMfKMr3V+xlZL2bUSYCsdHQ=
=eDgb
-----END PGP SIGNATURE-----
payloadX;  tree 326c29468b98ecc7c6b923dc85aeb95cca36545c
parent 6f0f7c5849e31c772989b9565d870a5ba17cd721
author aalouane <30903736+ergo14@users.noreply.github.com> 1678121235 +0000
committer GitHub <noreply@github.com> 1678121235 +0000

[PDS-339803] mapAllServersToOrigin accounts for duplicates in map construction (#6462)

 uujY ^https://api.github.com/repos/palantir/atlasdb/commits/bde83b0dd394ba9dc51321bd2364ae23edc2887dhtml_urlShttps://github.com/palantir/atlasdb/commit/bde83b0dd394ba9dc51321bd2364ae23edc2887dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bde83b0dd394ba9dc51321bd2364ae23edc2887d/commentsjY }(loginergo14idJjY MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jY #https://api.github.com/users/ergo14jZ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujY }(jZ web-flowj
Z J/jY MDQ6VXNlcjE5ODY0NDQ3jZ 4https://avatars.githubusercontent.com/u/19864447?v=4jZ h5jY %https://api.github.com/users/web-flowjZ https://github.com/web-flowjZ /https://api.github.com/users/web-flow/followersjZ <https://api.github.com/users/web-flow/following{/other_user}jZ 5https://api.github.com/users/web-flow/gists{/gist_id}jZ <https://api.github.com/users/web-flow/starred{/owner}{/repo}jZ 3https://api.github.com/users/web-flow/subscriptionsjZ *https://api.github.com/users/web-flow/orgsjZ +https://api.github.com/users/web-flow/reposjZ 6https://api.github.com/users/web-flow/events{/privacy}j!Z 5https://api.github.com/users/web-flow/received_eventsj#Z Userj%Z uparents]}(jY (6f0f7c5849e31c772989b9565d870a5ba17cd721jY ^https://api.github.com/repos/palantir/atlasdb/commits/6f0f7c5849e31c772989b9565d870a5ba17cd721jZ Shttps://github.com/palantir/atlasdb/commit/6f0f7c5849e31c772989b9565d870a5ba17cd721uastats}(totalKO	additionsKN	deletionsKufiles](}(jY (ceeeeed1ad626f017443a86551facc263dbb0a09filenamebatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraServerOrigin.javastatusmodifiedj?Z Kj@Z KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/bde83b0dd394ba9dc51321bd2364ae23edc2887d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.javaraw_urlhttps://github.com/palantir/atlasdb/raw/bde83b0dd394ba9dc51321bd2364ae23edc2887d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.java?ref=bde83b0dd394ba9dc51321bd2364ae23edc2887dpatchX  @@ -33,6 +33,6 @@ public static ImmutableMap<CassandraServer, CassandraServerOrigin> mapAllServers
 
     public static ImmutableMap<CassandraServer, CassandraServerOrigin> mapAllServersToOrigin(
             Stream<CassandraServer> servers, CassandraServerOrigin origin) {
-        return servers.collect(ImmutableMap.toImmutableMap(Function.identity(), _v -> origin));
+        return servers.distinct().collect(ImmutableMap.toImmutableMap(Function.identity(), _v -> origin));
     }
 }u}(jY (3c2278c182bf5531073adaa0f330188e64592508jEZ fatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraServerOriginTest.javajGZ addedj?Z KHj@Z K jIZ KHjJZ https://github.com/palantir/atlasdb/blob/bde83b0dd394ba9dc51321bd2364ae23edc2887d/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.javajLZ https://github.com/palantir/atlasdb/raw/bde83b0dd394ba9dc51321bd2364ae23edc2887d/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.javajNZ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.java?ref=bde83b0dd394ba9dc51321bd2364ae23edc2887djPZ XU
  @@ -0,0 +1,72 @@
+/*
+ * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
+import java.net.InetSocketAddress;
+import java.util.Map;
+import java.util.Set;
+import java.util.stream.Stream;
+import org.junit.Test;
+
+public final class CassandraServerOriginTest {
+
+    private static final CassandraServer SERVER_1 = createCassandraServer("serverOne");
+    private static final CassandraServer SERVER_2 = createCassandraServer("serverTwo");
+    private static final CassandraServer SERVER_3 = createCassandraServer("serverThree");
+
+    @Test
+    public void mapAllServersToOriginFromServerStreamDeduplicatesInput() {
+        CassandraServer cloneOfServer1 = createCassandraServer(SERVER_1.cassandraHostName());
+        CassandraServerOrigin origin = CassandraServerOrigin.CONFIG;
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(
+                        Stream.of(SERVER_1, SERVER_2, SERVER_3, cloneOfServer1, SERVER_2, SERVER_3, SERVER_2), origin))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(SERVER_1, origin, SERVER_2, origin, SERVER_3, origin));
+    }
+
+    @Test
+    public void mapAllServersToOriginFromServerSetReturnsMapWithAllSetElementsAsKeysAndAUniqueValue() {
+        CassandraServerOrigin origin = CassandraServerOrigin.TOKEN_RANGE;
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Set.of(SERVER_1, SERVER_2, SERVER_3), origin))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(SERVER_1, origin, SERVER_2, origin, SERVER_3, origin));
+    }
+
+    @Test
+    public void mapAllServersToOriginFromServerStreamWithUniqueElementsReturnsMapWithAllElementsAndAUniqueValue() {
+        CassandraServerOrigin origin = CassandraServerOrigin.LAST_KNOWN;
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Stream.of(SERVER_1, SERVER_2, SERVER_3), origin))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(SERVER_1, origin, SERVER_2, origin, SERVER_3, origin));
+    }
+
+    @Test
+    public void mapAllServersToOriginFromServerStreamReturnsEmptyMapOnEmptyStream() {
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Stream.empty(), CassandraServerOrigin.CONFIG))
+                .isEmpty();
+    }
+
+    @Test
+    public void mapAllServersToOriginFromSetStreamReturnsEmptyMapOnEmptySet() {
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Set.of(), CassandraServerOrigin.LAST_KNOWN))
+                .isEmpty();
+    }
+
+    private static CassandraServer createCassandraServer(String hostname) {
+        return CassandraServer.of(hostname, InetSocketAddress.createUnresolved(hostname, 88));
+    }
+}u}(jY (bc64692f16e707b561a8379f3f0058ed44b4c10ajEZ $changelog/@unreleased/pr-6462.v2.ymljGZ addedj?Z Kj@Z K jIZ KjJZ |https://github.com/palantir/atlasdb/blob/bde83b0dd394ba9dc51321bd2364ae23edc2887d/changelog%2F%40unreleased%2Fpr-6462.v2.ymljLZ {https://github.com/palantir/atlasdb/raw/bde83b0dd394ba9dc51321bd2364ae23edc2887d/changelog%2F%40unreleased%2Fpr-6462.v2.ymljNZ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6462.v2.yml?ref=bde83b0dd394ba9dc51321bd2364ae23edc2887djPZ @@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: mapAllServersToOrigin accounts for duplicates in map construction
+  links:
+  - https://github.com/palantir/atlasdb/pull/6462ueu(8183e7bf46e9a83621d715c516dcb21f50f6ed75}(sha(8183e7bf46e9a83621d715c516dcb21f50f6ed75node_idEC_kwDOAjP5fdoAKDgxODNlN2JmNDZlOWE4MzYyMWQ3MTVjNTE2ZGNiMjFmNTBmNmVkNzUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-23T22:58:24Zu	committer}(jlZ 
Ahmed AlouanejnZ aalouane@palantir.comjpZ 2023-05-23T22:58:24Zumessagethis might failtree}(jdZ (b351fbc7ba798c6f537cb6a486e7651b027ba065url`https://api.github.com/repos/palantir/atlasdb/git/trees/b351fbc7ba798c6f537cb6a486e7651b027ba065uj|Z bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8183e7bf46e9a83621d715c516dcb21f50f6ed75
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRtRRAACgkQPlMHVIT1
yhoYPwgAkOOVYOtPnkEM3n7TjdI6SgGe15VohO5tc0DUkuS1CVxZnmhfEJ3cqwbU
sOwcIoZv/bdQsVgPoPbp36F8ZYV5RONxNVLPrd0OOB8q8akLKqujSqRnRcFUWhqR
7UMat3eYwGM0I8r27PuEP36PGrfyzCB1zckc25MvBFiUzERSiQAoAX9CVWAGfsYz
nM3P8crUc3OQG4ADJTqiS+h/FqIICauZicorreMi3miU3CJZOlR7EF/jgt656MpZ
6PZNZnckc2xcgfbauRnm55SWJ64xd9CxTS4ZQOTPUDZNGC48PXtMk5KqspWkoV+6
axr1ClJSOc1QzwSvAc+J/CI7ag+jNA==
=56Se
-----END PGP SIGNATURE-----payloadtree b351fbc7ba798c6f537cb6a486e7651b027ba065
parent 0d479286dc50d9832b4dab33260e199f9fe9959d
author Ahmed Alouane <aalouane@palantir.com> 1684882704 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684882704 +0100

this might fail
uuj|Z ^https://api.github.com/repos/palantir/atlasdb/commits/8183e7bf46e9a83621d715c516dcb21f50f6ed75html_urlShttps://github.com/palantir/atlasdb/commit/8183e7bf46e9a83621d715c516dcb21f50f6ed75comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8183e7bf46e9a83621d715c516dcb21f50f6ed75/commentsjjZ }(loginergo14idJjfZ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j|Z #https://api.github.com/users/ergo14jZ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujrZ }(jZ ergo14jZ JjfZ MDQ6VXNlcjMwOTAzNzM2jZ 4https://avatars.githubusercontent.com/u/30903736?v=4jZ h5j|Z #https://api.github.com/users/ergo14jZ https://github.com/ergo14jZ -https://api.github.com/users/ergo14/followersjZ :https://api.github.com/users/ergo14/following{/other_user}jZ 3https://api.github.com/users/ergo14/gists{/gist_id}jZ :https://api.github.com/users/ergo14/starred{/owner}{/repo}jZ 1https://api.github.com/users/ergo14/subscriptionsjZ (https://api.github.com/users/ergo14/orgsjZ )https://api.github.com/users/ergo14/reposjZ 4https://api.github.com/users/ergo14/events{/privacy}jZ 3https://api.github.com/users/ergo14/received_eventsjZ UserjZ uparents]}(jdZ (0d479286dc50d9832b4dab33260e199f9fe9959dj|Z ^https://api.github.com/repos/palantir/atlasdb/commits/0d479286dc50d9832b4dab33260e199f9fe9959djZ Shttps://github.com/palantir/atlasdb/commit/0d479286dc50d9832b4dab33260e199f9fe9959duastats}(totalK	additionsK	deletionsKufiles]}(jdZ (6a1fed0e0ab3c30c1182dbf78cd1bc9d76483519filename.circleci/config.ymlstatusmodifiedjZ KjZ KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/8183e7bf46e9a83621d715c516dcb21f50f6ed75/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/8183e7bf46e9a83621d715c516dcb21f50f6ed75/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=8183e7bf46e9a83621d715c516dcb21f50f6ed75patchX  @@ -35,9 +35,11 @@ jobs:
     parameters:
       suite:
         type: integer
+      resource_class:
+        type: string
     machine:
       image: ubuntu-2004:202111-02
-    resource_class: xlarge
+    resource_class: << parameters.resource_class >>
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       JAVA_HOME: /opt/java8
@@ -150,13 +152,13 @@ workflows:
             tags:
               only: /.*/
       - test-suite:
-          resource_class: 2xlarge
           requires: [build]
           matrix:
             alias: test-no-tl
             parameters:
               # intentionally excluding 13 (TimeLock migration ETE test) from this collection
               suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14]
+              resource_class: ["xlarge"]
           filters:
             tags:
               only: /.*/
@@ -166,6 +168,7 @@ workflows:
             alias: test-tl
             parameters:
               suite: [13]
+              resource_class: ["2xlarge"]
           filters:
             branches:
               only: /(tlmete.*|develop)/uau(f56b1b67d4452a7c72fc90a29ec1e07210d2f9d0}(sha(f56b1b67d4452a7c72fc90a29ec1e07210d2f9d0node_idEC_kwDOAjP5fdoAKGY1NmIxYjY3ZDQ0NTJhN2M3MmZjOTBhMjllYzFlMDcyMTBkMmY5ZDAcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-03-13T11:47:17Zu	committer}(jZ GitHubjZ noreply@github.comjZ 2023-03-13T11:47:17ZumessageUpdate pr-6467.v2.ymltree}(jZ (7ae983b09acc58ee4503ce0cd8c324614e55d40aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/7ae983b09acc58ee4503ce0cd8c324614e55d40aujZ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f56b1b67d4452a7c72fc90a29ec1e07210d2f9d0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkDw1FCRBK7hj4Ov3rIwAACA0IAIhvuG8gK5EX+MutpQodixtv
nAuqBiZvzuotewQObh0VyWOl2orzkh8FpOOnuwVUtZ3B6orDZm6SosJEo42BVLhT
iY/mnjDVS0EAVLjdWDqnBh2jRoFGDM/TBCE2xZr3LCtYyOHrVpcjeCWngyuZ0lod
k2KiH7S1o4UIeXM/X/G8DmIdjhEW6qKPwQmYGRDBZIAb2Z6VVERM3CW7TiJCZdTt
wiG9dFwtmXsb8Nq0uefwt+S6GKniaikou4WQ40oqBMe43uVu916oI500MLaUU76/
fEKp4fyPaDo+BfPqKMG4YS6szyetu4Ds6hEmTXLXOFW4mlF3PbIwx5ZVOkjO7Yk=
=XAEv
-----END PGP SIGNATURE-----
payloadtree 7ae983b09acc58ee4503ce0cd8c324614e55d40a
parent f9d497d395cbf2c33baa2a7b7910bff6945ff420
author David Schlosnagle <davids@palantir.com> 1678708037 -0400
committer GitHub <noreply@github.com> 1678708037 -0400

Update pr-6467.v2.ymluujZ ^https://api.github.com/repos/palantir/atlasdb/commits/f56b1b67d4452a7c72fc90a29ec1e07210d2f9d0html_urlShttps://github.com/palantir/atlasdb/commit/f56b1b67d4452a7c72fc90a29ec1e07210d2f9d0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f56b1b67d4452a7c72fc90a29ec1e07210d2f9d0/commentsjZ }(loginschlosnaidMBjZ MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jZ %https://api.github.com/users/schlosnaj[ https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujZ }(j[ web-flowj[ J/jZ MDQ6VXNlcjE5ODY0NDQ3j
[ 4https://avatars.githubusercontent.com/u/19864447?v=4j[ h5jZ %https://api.github.com/users/web-flowj[ https://github.com/web-flowj[ /https://api.github.com/users/web-flow/followersj[ <https://api.github.com/users/web-flow/following{/other_user}j[ 5https://api.github.com/users/web-flow/gists{/gist_id}j[ <https://api.github.com/users/web-flow/starred{/owner}{/repo}j[ 3https://api.github.com/users/web-flow/subscriptionsj[ *https://api.github.com/users/web-flow/orgsj[ +https://api.github.com/users/web-flow/reposj[ 6https://api.github.com/users/web-flow/events{/privacy}j[ 5https://api.github.com/users/web-flow/received_eventsj![ Userj#[ uparents]}(jZ (f9d497d395cbf2c33baa2a7b7910bff6945ff420jZ ^https://api.github.com/repos/palantir/atlasdb/commits/f9d497d395cbf2c33baa2a7b7910bff6945ff420j[ Shttps://github.com/palantir/atlasdb/commit/f9d497d395cbf2c33baa2a7b7910bff6945ff420uastats}(totalK	additionsK	deletionsKufiles]}(jZ (5b0f02dce8a3b1ce70a2ebe8001043a75759ffeafilename$changelog/@unreleased/pr-6467.v2.ymlstatusmodifiedj=[ Kj>[ KchangesKblob_url|https://github.com/palantir/atlasdb/blob/f56b1b67d4452a7c72fc90a29ec1e07210d2f9d0/changelog%2F%40unreleased%2Fpr-6467.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/f56b1b67d4452a7c72fc90a29ec1e07210d2f9d0/changelog%2F%40unreleased%2Fpr-6467.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6467.v2.yml?ref=f56b1b67d4452a7c72fc90a29ec1e07210d2f9d0patch@@ -1,5 +1,5 @@
 type: fix
 fix:
-  description: Update slf4j javadocs link to https://www.slf4j.org/apidocs/
+  description: Remove slf4j javadocs link
   links:
   - https://github.com/palantir/atlasdb/pull/6467uau(a3f55599eea4513e13bcd0eccfd6cd1606602bc6}(sha(a3f55599eea4513e13bcd0eccfd6cd1606602bc6node_idEC_kwDOAjP5fdoAKGEzZjU1NTk5ZWVhNDUxM2UxM2JjZDBlY2NmZDZjZDE2MDY2MDJiYzYcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-05T10:33:57Zu	committer}(jZ[ 	Tom Papkej\[ tpapke@palantir.comj^[ 2023-07-05T10:33:57Zumessage-Remove assertDone
More PtBytes
Update commenttree}(jR[ (c9631554a0bc5a90ecb74c89d95a94fa3d106644url`https://api.github.com/repos/palantir/atlasdb/git/trees/c9631554a0bc5a90ecb74c89d95a94fa3d106644ujj[ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a3f55599eea4513e13bcd0eccfd6cd1606602bc6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSlRxUACgkQmF9s0kaF
Iw2h0gf/cSV3zZDloJ9izzQiNX5ODkeOk7SCHLRmXO1CPNFjzM+8gi0D6JyMHYxA
Gc0uh3WQjT+dIFIn5GAXDDNzNEyakiq0rVciDs5A4zdIuw8eFu4FX6jNT6+v7bft
57gcHUtjI2dFRgB/MX1RVR24wRSKiCGtoZlmIkhu4ze3pB/YCa8WJ8TizDm8bnZW
hzoeI50oJnTUADJrHkQir/7MxpqNr9TlyC1zzti8/NqAAP3FTYsCyRQuiEM5rtGK
oYv7btu0OcJuA0gtHYCsfzk7+mTVvzqXBglTe4ZBDXmU83Gf8isEPQljqn6eW6to
+SFNzf2MoW/8dkbgMrtaIwXJC2i1gA==
=k/uq
-----END PGP SIGNATURE-----payloadX   tree c9631554a0bc5a90ecb74c89d95a94fa3d106644
parent c8c5021a06a8473de70f79d82a59faceabe399ae
author Tom Papke <tpapke@palantir.com> 1688553237 +0100
committer Tom Papke <tpapke@palantir.com> 1688553237 +0100

Remove assertDone
More PtBytes
Update comment
uujj[ ^https://api.github.com/repos/palantir/atlasdb/commits/a3f55599eea4513e13bcd0eccfd6cd1606602bc6html_urlShttps://github.com/palantir/atlasdb/commit/a3f55599eea4513e13bcd0eccfd6cd1606602bc6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a3f55599eea4513e13bcd0eccfd6cd1606602bc6/commentsjX[ }(login	ToemmscheidJbojT[ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jj[ &https://api.github.com/users/Toemmschejx[ https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj`[ }(j}[ 	Toemmschej[ JbojT[ MDQ6VXNlcjQzNjc1NDkwj[ 4https://avatars.githubusercontent.com/u/43675490?v=4j[ h5jj[ &https://api.github.com/users/Toemmschejx[ https://github.com/Toemmschej[ 0https://api.github.com/users/Toemmsche/followersj[ =https://api.github.com/users/Toemmsche/following{/other_user}j[ 6https://api.github.com/users/Toemmsche/gists{/gist_id}j[ =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j[ 4https://api.github.com/users/Toemmsche/subscriptionsj[ +https://api.github.com/users/Toemmsche/orgsj[ ,https://api.github.com/users/Toemmsche/reposj[ 7https://api.github.com/users/Toemmsche/events{/privacy}j[ 6https://api.github.com/users/Toemmsche/received_eventsj[ Userj[ uparents]}(jR[ (c8c5021a06a8473de70f79d82a59faceabe399aejj[ ^https://api.github.com/repos/palantir/atlasdb/commits/c8c5021a06a8473de70f79d82a59faceabe399aejx[ Shttps://github.com/palantir/atlasdb/commit/c8c5021a06a8473de70f79d82a59faceabe399aeuastats}(totalK!	additionsK
	deletionsKufiles](}(jR[ (4ad83f5e809e14d93184f79c27f3d9e19ef95f29filenameatimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javastatusmodifiedj[ Kj[ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/a3f55599eea4513e13bcd0eccfd6cd1606602bc6/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a3f55599eea4513e13bcd0eccfd6cd1606602bc6/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=a3f55599eea4513e13bcd0eccfd6cd1606602bc6patchXA  @@ -179,8 +179,9 @@ private void runIfDescriptorsMatchLockWatchesWithMetadata(
         }
     }
 
-    // For an efficient encoding, we enforce that metadata is never attached to a lock descriptor that is not contained
-    // in the original request, so filtering metadata based on the already filtered locks is sufficient.
+    // For an efficient encoding, we expect that metadata is never attached to a lock descriptor that is not contained
+    // in the original request, so filtering metadata based on the already filtered locks is sufficient and enforces
+    // this invariant.
     // It is also cheaper than calling RangeSet::contains.
     private static Optional<LockRequestMetadata> filterMetadataBasedOnFilteredLocks(
             Set<LockDescriptor> filteredLocks, Optional<LockRequestMetadata> unfilteredMetadata) {u}(jR[ (73984b9eff9c6be1c6bbf5f3360e0c83ec98b5a1j[ ftimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataTest.javaj[ modifiedj[ K
j[ Kj[ Kj[ https://github.com/palantir/atlasdb/blob/a3f55599eea4513e13bcd0eccfd6cd1606602bc6/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj[ https://github.com/palantir/atlasdb/raw/a3f55599eea4513e13bcd0eccfd6cd1606602bc6/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj[ https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.java?ref=a3f55599eea4513e13bcd0eccfd6cd1606602bc6j[ X  @@ -22,6 +22,7 @@
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.ListenableFuture;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.timelock.api.ConjureIdentifiedVersion;
 import com.palantir.atlasdb.timelock.api.ConjureStartTransactionsRequest;
@@ -44,12 +45,10 @@
 import com.palantir.lock.watch.LockWatchStateUpdate.Success;
 import com.palantir.lock.watch.UnlockEvent;
 import com.palantir.timestamp.InMemoryTimestampService;
-import java.nio.charset.StandardCharsets;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
 import java.util.UUID;
-import java.util.concurrent.Future;
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.stream.Collectors;
 import org.jmock.lib.concurrent.DeterministicScheduler;
@@ -68,7 +67,7 @@ public class AsyncTimeLockServiceMetadataTest {
             ImmutableMap.of(WATCHED_LOCK, ChangeMetadata.updated(PtBytes.toBytes("old"), PtBytes.toBytes("new")));
     private static final String UNWATCHED_TABLE_NAME = "a-random-unwatched-table";
     private static final LockDescriptor UNWATCHED_LOCK_1 =
-            AtlasRowLockDescriptor.of(UNWATCHED_TABLE_NAME, "lock1".getBytes(StandardCharsets.UTF_8));
+            AtlasRowLockDescriptor.of(UNWATCHED_TABLE_NAME, PtBytes.toBytes("lock1"));
     private static final IdentifiedLockRequest WATCHED_LOCK_REQUEST_WITH_METADATA =
             standardRequestWithMetadata(ALL_WATCHED_LOCKS_WITH_METADATA);
 
@@ -99,14 +98,14 @@ public void absentMetadataIsPassedThrough() {
         IdentifiedLockRequest requestWithoutMetadata = ImmutableIdentifiedLockRequest.copyOf(
                         standardRequestWithMetadata(ALL_WATCHED_LOCKS_WITH_METADATA))
                 .withMetadata(Optional.empty());
-        assertDone(timeLockService.lock(requestWithoutMetadata));
+        assertThat(timeLockService.lock(requestWithoutMetadata)).isDone();
 
         assertThat(getAllLockEventsMetadata()).containsExactly(Optional.empty());
     }
 
     @Test
     public void metadataIsPassedThroughForWatchedTable() {
-        assertDone(timeLockService.lock(WATCHED_LOCK_REQUEST_WITH_METADATA));
+        assertThat(timeLockService.lock(WATCHED_LOCK_REQUEST_WITH_METADATA)).isDone();
 
         assertThat(getAllLockEventsMetadata())
                 .containsExactly(Optional.of(LockRequestMetadata.of(ALL_WATCHED_LOCKS_WITH_METADATA)));
@@ -117,10 +116,8 @@ public void metadataIsPassedThroughForWatchedTable() {
     @Test
     public void noLockEventIsPublishedIfNothingIsWatched() {
         IdentifiedLockRequest mixedRequest = standardRequestWithMetadata(ImmutableMap.of(
-                UNWATCHED_LOCK_1,
-                ChangeMetadata.updated(
-                        "bla".getBytes(StandardCharsets.UTF_8), "blabla".getBytes(StandardCharsets.UTF_8))));
-        assertDone(timeLockService.lock(mixedRequest));
+                UNWATCHED_LOCK_1, ChangeMetadata.updated(PtBytes.toBytes("bla"), PtBytes.toBytes("blabla"))));
+        assertThat(timeLockService.lock(mixedRequest)).isDone();
 
         assertThat(getAllLockEventsMetadata()).isEmpty();
     }
@@ -134,16 +131,11 @@ private List<Optional<LockRequestMetadata>> getAllLockEventsMetadata() {
     }
 
     private List<LockWatchEvent> getAllLockWatchEvents() {
-        ConjureStartTransactionsResponse response =
-                assertDone(timeLockService.startTransactionsWithWatches(startTransactionsRequestWithInitialVersion));
-
-        return response.getLockWatchUpdate().accept(LOCK_WATCH_STATE_UPDATE_VISITOR);
-    }
-
-    private static <T> T assertDone(Future<T> future) {
-        assertThat(future).isDone();
+        ListenableFuture<ConjureStartTransactionsResponse> responseFuture =
+                timeLockService.startTransactionsWithWatches(startTransactionsRequestWithInitialVersion);
+        assertThat(responseFuture).isDone();
         try {
-            return future.get();
+            return responseFuture.get().getLockWatchUpdate().accept(LOCK_WATCH_STATE_UPDATE_VISITOR);
         } catch (Throwable t) {
             throw new RuntimeException(t);
         }ueu(9aac005ef1effc27a431da057d341710cfc27515}(sha(9aac005ef1effc27a431da057d341710cfc27515node_idEC_kwDOAjP5fdoAKDlhYWMwMDVlZjFlZmZjMjdhNDMxZGEwNTdkMzQxNzEwY2ZjMjc1MTUcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-20T16:37:27Zu	committer}(j[ Lucas Meirelesj[ meireles31@msn.comj[ 2023-06-20T16:37:27ZumessageNAdding comment to validate on read function and simplifying setting of booleantree}(j[ (93df989c65d0800873587af97f25bd30e0a644f5url`https://api.github.com/repos/palantir/atlasdb/git/trees/93df989c65d0800873587af97f25bd30e0a644f5uj[ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9aac005ef1effc27a431da057d341710cfc27515
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSR1ccACgkQJd22kJ7J
GixJIwf+PT5o0q02eM9W4ZcKLKXhquTS+CLyvkpr20ogCzZMqqcA1N//BJVLLcrc
OkVOW6JlPNaYGgx7ccRE+lsir6g0AGLNKojxdyqMMkEtuQa2WP68HlaRnlulfLkF
wfR1XUGRtuRhJCIsVTwZCugyYxu0pGH2MDNmWw7JJUaxXulBIp2zv7Zva5+NL89q
u9Wjb6Nva+3v8NHFP9fePh9acRTgmfl8rbHmmkdqUlJb6ShqYkVv0DBrC+9x8Uum
CGQpZRN4XHdQFTEKr1v5K2Blwtaeq4JMECM1C1ylO74vKHgkJtclp2TKezMv5gD1
vCl6+7Zs3kIRXVA+8prTHdegh321ZQ==
=/N6E
-----END PGP SIGNATURE-----payloadX)  tree 93df989c65d0800873587af97f25bd30e0a644f5
parent e7ba03b6036b88245360a4753174849cab56ebd3
author Lucas Meireles <meireles31@msn.com> 1687279047 +0100
committer Lucas Meireles <meireles31@msn.com> 1687279047 +0100

Adding comment to validate on read function and simplifying setting of boolean
uuj[ ^https://api.github.com/repos/palantir/atlasdb/commits/9aac005ef1effc27a431da057d341710cfc27515html_urlShttps://github.com/palantir/atlasdb/commit/9aac005ef1effc27a431da057d341710cfc27515comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9aac005ef1effc27a431da057d341710cfc27515/commentsj[ }(loginLucasIMEidJg j[ MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j[ %https://api.github.com/users/LucasIMEj[ https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj[ }(j[ LucasIMEj[ Jg j[ MDQ6VXNlcjY3ODczMTE=j \ 3https://avatars.githubusercontent.com/u/6787311?v=4j\ h5j[ %https://api.github.com/users/LucasIMEj[ https://github.com/LucasIMEj\ /https://api.github.com/users/LucasIME/followersj\ <https://api.github.com/users/LucasIME/following{/other_user}j	\ 5https://api.github.com/users/LucasIME/gists{/gist_id}j\ <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j
\ 3https://api.github.com/users/LucasIME/subscriptionsj\ *https://api.github.com/users/LucasIME/orgsj\ +https://api.github.com/users/LucasIME/reposj\ 6https://api.github.com/users/LucasIME/events{/privacy}j\ 5https://api.github.com/users/LucasIME/received_eventsj\ Userj\ uparents]}(j[ (e7ba03b6036b88245360a4753174849cab56ebd3j[ ^https://api.github.com/repos/palantir/atlasdb/commits/e7ba03b6036b88245360a4753174849cab56ebd3j[ Shttps://github.com/palantir/atlasdb/commit/e7ba03b6036b88245360a4753174849cab56ebd3uastats}(totalKH	additionsK'	deletionsK!ufiles]}(j[ (50c168da455d0ea4b5fd59cad0ef2f67c29cb135filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj3\ K'j4\ K!changesKHblob_urlhttps://github.com/palantir/atlasdb/blob/9aac005ef1effc27a431da057d341710cfc27515/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9aac005ef1effc27a431da057d341710cfc27515/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=9aac005ef1effc27a431da057d341710cfc27515patchX&  @@ -441,10 +441,8 @@ private NavigableMap<byte[], RowResult<byte[]>> getRowsInternal(
                     SafeArg.of("timeTakenMillis", getRowsMillis));
         }
 
-        validatePreCommitRequirementsOnReadIfNecessary(
-                tableRef,
-                getStartTimestamp(),
-                false /* can't skip lock check as we don't know how many cells to expect for the column selection */);
+        /* can't skip lock check as we don't know how many cells to expect for the column selection */
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return results;
     }
 
@@ -469,9 +467,8 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
         RowColumnRangeIterator rawResults = keyValueService.getRowsColumnRange(
                 tableRef, stableRows, columnRangeSelection, batchHint, getStartTimestamp());
         if (!rawResults.hasNext()) {
-            hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
-            validatePreCommitRequirementsOnReadIfNecessary(
-                    tableRef, getStartTimestamp(), false /* we can't skip checks for range scans*/);
+            // we can't skip checks for range scans
+            validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         } // else the postFiltered iterator will check for each batch.
 
         BatchColumnRangeSelection batchColumnRangeSelection =
@@ -508,10 +505,9 @@ public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator
                     return scopeToTransaction(entryIterator);
                 }));
 
-        hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
         // validate requirements here as the first batch for each of the above iterators will not check
-        validatePreCommitRequirementsOnReadIfNecessary(
-                tableRef, getStartTimestamp(), false /* we can't skip checks on range scans */);
+        // we can't skip checks on range scans
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return postFilteredResults;
     }
 
@@ -707,9 +703,8 @@ private ClosableIterator<Map.Entry<Cell, byte[]>> getRowColumnRangePostFiltered(
                 rawIterator,
                 columnRangeSelection,
                 () -> {
-                    hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
-                    validatePreCommitRequirementsOnReadIfNecessary(
-                            tableRef, getStartTimestamp(), false /* we can't skip lock checks on range scans */);
+                    // we can't skip lock checks on range scans
+                    validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
                 },
                 raw -> getWithPostFilteringSync(tableRef, raw, Value.GET_VALUE));
     }
@@ -843,11 +838,8 @@ public SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(
         Map<Cell, Value> rawResults =
                 new HashMap<>(keyValueService.getRows(tableRef, rows, ColumnSelection.all(), getStartTimestamp()));
 
-        hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
-        validatePreCommitRequirementsOnReadIfNecessary(
-                tableRef,
-                getStartTimestamp(),
-                false /* can't skip lock check as we don't know how many cells to expect for the column selection */);
+        // can't skip lock check as we don't know how many cells to expect for the column selection
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return filterRowResults(tableRef, rawResults, ImmutableMap.builderWithExpectedSize(rawResults.size()));
     }
 
@@ -959,11 +951,9 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
                                 SafeArg.of("getOperation", operationName),
                                 SafeArg.of("durationMillis", getMillis));
                     }
+
                     boolean allPossibleCellsReadAndNonEmpty =
                             fromKeyValueService.size() == cellsWithNoLocalWrites.size();
-                    if (!allPossibleCellsReadAndNonEmpty) {
-                        hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
-                    }
                     validatePreCommitRequirementsOnReadIfNecessary(
                             tableRef, getStartTimestamp(), allPossibleCellsReadAndNonEmpty);
                     return removeEmptyColumns(result, tableRef);
@@ -986,10 +976,8 @@ public Map<Cell, byte[]> getIgnoringLocalWrites(TableReference tableRef, Set<Cel
         Map<Cell, byte[]> filtered = Maps.filterValues(unfiltered, Predicates.not(Value::isTombstone));
 
         TraceStatistics.incEmptyValues(unfiltered.size() - filtered.size());
+
         boolean allPossibleCellsReadAndNonEmpty = unfiltered.size() == cells.size();
-        if (!allPossibleCellsReadAndNonEmpty) {
-            hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
-        }
         validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndNonEmpty);
 
         return filtered;
@@ -1044,9 +1032,8 @@ public Iterable<BatchingVisitable<RowResult<byte[]>>> getRanges(
                     Timer.Context timer = getTimer("processedRangeMillis").time();
                     Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> firstPages =
                             keyValueService.getFirstBatchForRanges(tableRef, input, getStartTimestamp());
-                    hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
-                    validatePreCommitRequirementsOnReadIfNecessary(
-                            tableRef, getStartTimestamp(), false /* can't skip lock check for range scans */);
+                    // can't skip lock check for range scans
+                    validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
 
                     SortedMap<Cell, byte[]> postFiltered = postFilterPages(tableRef, firstPages.values());
 
@@ -1172,10 +1159,33 @@ protected <K extends Exception> void batchAcceptSizeHint(
         };
     }
 
+    private void validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(TableReference tableRef, long timestamp) {
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, timestamp, false);
+    }
+
+    /*
+    We don't have any guarantees that reads and commit will be executed in a single threaded manner, so we could in
+    theory return wrong results if we perform async reads while trying to commit. But our protocol doesn't aim to
+    support such case, and we're OK with having undefined behaviour in these occasions.
+
+    Example of such case:
+       - We're reading a thoroughly swept table with no configuration for immediate validation on reads.
+       - An async range scan is performed, but hasn't started executing yet.
+       - We start commit round on the main thread
+       - Commit doesn't check for immutable timestamp lock because
+           hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound is false
+       - We finish the range scan on the second thread, but validation is skipped due to the configuration and it sets
+           hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound to true, but that is never checked due to
+            the commit round having already happened.
+       - We then risk having returned inconsistent values in this transaction, since we could have lost the immutableT
+            lock, but never checked it and values could've been swept under us.
+    */
     private void validatePreCommitRequirementsOnReadIfNecessary(
             TableReference tableRef, long timestamp, boolean allPossibleCellsReadAndNonEmpty) {
         if (isValidationNecessaryOnReads(tableRef, allPossibleCellsReadAndNonEmpty)) {
             throwIfPreCommitRequirementsNotMet(null, timestamp);
+        } else if (!allPossibleCellsReadAndNonEmpty) {
+            hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
         }
     }
 
@@ -1339,9 +1349,8 @@ protected Iterator<RowResult<T>> computeNext() {
                 }
                 SortedMap<Cell, T> postFilter = postFilterRows(tableRef, batch, transformer);
 
-                hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
-                validatePreCommitRequirementsOnReadIfNecessary(
-                        tableRef, getStartTimestamp(), false /* can't skip lock checks for range scans */);
+                // can't skip lock checks for range scans
+                validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
                 results.markNumResultsNotDeleted(
                         Cells.getRows(postFilter.keySet()).size());
                 return Cells.createRowView(postFilter.entrySet());
@@ -1713,9 +1722,6 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
                     asyncKeyValueService.getAsync(tableRef, keysToReload),
                     nextRawResults -> {
                         boolean allPossibleCellsReadAndNonEmpty = nextRawResults.size() == keysToReload.size();
-                        if (!allPossibleCellsReadAndNonEmpty) {
-                            hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
-                        }
                         validatePreCommitRequirementsOnReadIfNecessary(
                                 tableRef, getStartTimestamp(), allPossibleCellsReadAndNonEmpty);
                         return getRemainingResults(nextRawResults, keysAddedToResults);uau(5cc51e408d3cb52cc5c8560024625ff6bd934e31}(sha(5cc51e408d3cb52cc5c8560024625ff6bd934e31node_idEC_kwDOAjP5fdoAKDVjYzUxZTQwOGQzY2I1MmNjNWM4NTYwMDI0NjI1ZmY2YmQ5MzRlMzEcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-04T14:41:14Zu	committer}(jP\ 
Ahmed AlouanejR\ aalouane@palantir.comjT\ 2023-04-04T14:41:33Zumessagebuild.gradle conflicttree}(jH\ (d6de9c1f24bd7ec99a8e88799224db65a00133edurl`https://api.github.com/repos/palantir/atlasdb/git/trees/d6de9c1f24bd7ec99a8e88799224db65a00133eduj`\ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5cc51e408d3cb52cc5c8560024625ff6bd934e31
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQsNyMACgkQPlMHVIT1
yhrjYgf6AtS2rybt/QGz0zqfqFdqQSmYgRpqwjNgYh8SDJ4lX1JE+dtKjjcdzmKu
MYuqnh4IYPQs6O5RWo/2M4Ro0QCgDLz8A1rYwlQc4Y/hdx0b7RW6KQ8XJyUvhx70
k0S4cyOwOrOnz0GEmwcHH0Dhgd6Pp2/+RVzwHsWKmh2jQmdebXs4EnlsI82bt1+L
PaH/DCvbHfEeFvpW06HhzEPitW4fyj6hX7V+eurWzW0qg9nZlsa4rZcSKcR/7pqc
Q0vJM4iAf6YYuYkmDn0I1xL8PHRWarHMkHExtKVZKPTLD6komY0W24vfvzgtpsnU
TV1hLDrrxtKD0zu2sf9kPhEkxtpXmw==
=0sQW
-----END PGP SIGNATURE-----payloadX$  tree d6de9c1f24bd7ec99a8e88799224db65a00133ed
parent 5158e50de9bbf05658b1323254585e911a0577cd
parent 037dd3c00910e8d68932e9274aa79dab0dce86ba
author Ahmed Alouane <aalouane@palantir.com> 1680619274 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1680619293 +0100

build.gradle conflict
uuj`\ ^https://api.github.com/repos/palantir/atlasdb/commits/5cc51e408d3cb52cc5c8560024625ff6bd934e31html_urlShttps://github.com/palantir/atlasdb/commit/5cc51e408d3cb52cc5c8560024625ff6bd934e31comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5cc51e408d3cb52cc5c8560024625ff6bd934e31/commentsjN\ }(loginergo14idJjJ\ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j`\ #https://api.github.com/users/ergo14jn\ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujV\ }(js\ ergo14ju\ JjJ\ MDQ6VXNlcjMwOTAzNzM2jw\ 4https://avatars.githubusercontent.com/u/30903736?v=4jy\ h5j`\ #https://api.github.com/users/ergo14jn\ https://github.com/ergo14j|\ -https://api.github.com/users/ergo14/followersj~\ :https://api.github.com/users/ergo14/following{/other_user}j\ 3https://api.github.com/users/ergo14/gists{/gist_id}j\ :https://api.github.com/users/ergo14/starred{/owner}{/repo}j\ 1https://api.github.com/users/ergo14/subscriptionsj\ (https://api.github.com/users/ergo14/orgsj\ )https://api.github.com/users/ergo14/reposj\ 4https://api.github.com/users/ergo14/events{/privacy}j\ 3https://api.github.com/users/ergo14/received_eventsj\ Userj\ uparents](}(jH\ (5158e50de9bbf05658b1323254585e911a0577cdj`\ ^https://api.github.com/repos/palantir/atlasdb/commits/5158e50de9bbf05658b1323254585e911a0577cdjn\ Shttps://github.com/palantir/atlasdb/commit/5158e50de9bbf05658b1323254585e911a0577cdu}(jH\ (037dd3c00910e8d68932e9274aa79dab0dce86baj`\ ^https://api.github.com/repos/palantir/atlasdb/commits/037dd3c00910e8d68932e9274aa79dab0dce86bajn\ Shttps://github.com/palantir/atlasdb/commit/037dd3c00910e8d68932e9274aa79dab0dce86bauestats}(totalM
	additionsM	deletionsM.ufiles](}(jH\ (b2cafdc6a87f54c1f818962d2801a2edd0ae1f12filename.palantir/revapi.ymlstatusmodifiedj\ Kj\ K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31patchX  @@ -110,3 +110,8 @@ acceptedBreaks:
     - code: "java.method.removed"
       old: "method boolean com.palantir.atlasdb.transaction.service.TransactionStatus::equals(java.lang.Object)"
       justification: "Internal methods"
+  "0.815.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.class.removed"
+      old: "interface com.palantir.atlasdb.transaction.api.expectations.ExpectationsAwareTransaction"
+      justification: "moving out of API"u}(jH\ (b9dc830bb20b031d2b9e0db0007dbe449c528f7aj\ .policy.ymlj\ modifiedj\ Kj\ K j\ Kj\ ]https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/.policy.ymlj\ \https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/.policy.ymlj\ ohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X*  @@ -81,6 +81,7 @@ approval_rules:
           - "^versions.lock$"
           - "^internal/generated/.*"
           - "^internal/generated_src/.*"
+          - "^gradle-baseline-java/src/main/resources/checkstyle.version$"
       has_valid_signatures_by_keys:
         key_ids: ["C9AF124A484882E0"]
 u}(jH\ (0080c3f7113ff49f387d0c758020e1ca01ce5e35j\ Zatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/BatchColumnRangeSelection.javaj\ modifiedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FBatchColumnRangeSelection.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FBatchColumnRangeSelection.javaF     j\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FBatchColumnRangeSelection.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X|  @@ -22,6 +22,7 @@
 import com.palantir.atlasdb.encoding.PtBytes;
 import java.io.Serializable;
 import java.util.regex.Pattern;
+import org.checkerframework.checker.nullness.qual.Nullable;
 
 public final class BatchColumnRangeSelection implements Serializable {
     private static final long serialVersionUID = 1L;
@@ -40,8 +41,8 @@ public static BatchColumnRangeSelection create(ColumnRangeSelection columnRangeS
 
     @JsonCreator
     public static BatchColumnRangeSelection create(
-            @JsonProperty("startCol") byte[] startCol,
-            @JsonProperty("endCol") byte[] endCol,
+            @JsonProperty("startCol") byte @Nullable [] startCol,
+            @JsonProperty("endCol") byte @Nullable [] endCol,
             @JsonProperty("batchHint") int batchHint) {
         return new BatchColumnRangeSelection(new ColumnRangeSelection(startCol, endCol), batchHint);
     }u}(jH\ (19e81f650612c73f16c316beabd226ea34ac6293j\ Uatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/ColumnRangeSelection.javaj\ modifiedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FColumnRangeSelection.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FColumnRangeSelection.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FColumnRangeSelection.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -26,6 +26,7 @@
 import java.util.Arrays;
 import java.util.Objects;
 import java.util.regex.Pattern;
+import org.checkerframework.checker.nullness.qual.Nullable;
 
 public class ColumnRangeSelection implements Serializable {
     private static final long serialVersionUID = 1L;
@@ -36,7 +37,8 @@ public class ColumnRangeSelection implements Serializable {
     private final byte[] endCol;
 
     @JsonCreator
-    public ColumnRangeSelection(@JsonProperty("startCol") byte[] startCol, @JsonProperty("endCol") byte[] endCol) {
+    public ColumnRangeSelection(
+            @JsonProperty("startCol") byte @Nullable [] startCol, @JsonProperty("endCol") byte @Nullable [] endCol) {
         this.startCol = Objects.requireNonNullElse(startCol, PtBytes.EMPTY_BYTE_ARRAY);
         this.endCol = Objects.requireNonNullElse(endCol, PtBytes.EMPTY_BYTE_ARRAY);
         if (!isValidRange(this.startCol, this.endCol)) {u}(jH\ (54106dfa0477a8d02f1cf93167ddaa80b4701778j\ Matlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/RangeRequest.javaj\ modifiedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRangeRequest.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRangeRequest.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRangeRequest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -352,7 +352,7 @@ public Builder retainColumns(ColumnSelection selection) {
          * this means the batch size will be whatever is passed as the batch size to
          * BatchingVisitable#batchAccept(int, com.palantir.common.base.AbortingVisitor)
          */
-        public Builder batchHint(Integer hint) {
+        public Builder batchHint(@Nullable Integer hint) {
             Preconditions.checkArgument(hint == null || hint > 0);
             batchHint = hint;
             return this;u}(jH\ (3119f655157ee521b742eccfb81bf4fbbda595d2j\ [atlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/RetryLimitReachedException.javaj\ modifiedj\ Kj\ K j\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRetryLimitReachedException.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRetryLimitReachedException.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRetryLimitReachedException.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X   @@ -25,6 +25,7 @@
 import java.util.List;
 
 public class RetryLimitReachedException extends AtlasDbDependencyException implements SafeLoggable {
+
     private static final String MESSAGE = "Request was retried and failed each time for the request.";
 
     private final int numRetries;u}(jH\ (849885796051302ae2255080efd29ca7c50eddc8j\ catlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientFactory.javaj\ modifiedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientFactory.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientFactory.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientFactory.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -303,17 +303,12 @@ public void destroyObject(PooledObject<CassandraClient> client) {
         }
     }
 
-    static class ClientCreationFailedException extends AtlasDbDependencyException {
+    static final class ClientCreationFailedException extends AtlasDbDependencyException {
         private static final long serialVersionUID = 1L;
 
         ClientCreationFailedException(String message, Exception cause) {
             super(message, cause);
         }
-
-        @Override
-        public Exception getCause() {
-            return (Exception) super.getCause();
-        }
     }
 
     private static void setSocketOptions(TSocket thriftSocket, SocketConsumer consumer, InetSocketAddress addr) {u}(jH\ (8dc5cfb3bdba96fc8c1896859651e04d79218056j\ batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaj\ modifiedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ XN  @@ -42,9 +42,13 @@
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.base.FunctionCheckedException;
 import com.palantir.common.base.Throwables;
+import com.palantir.common.exception.AtlasDbDependencyException;
 import com.palantir.common.pooling.PoolingContainer;
 import com.palantir.common.streams.KeyedStream;
+import com.palantir.logsafe.Arg;
+import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.SafeLoggable;
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -386,8 +390,7 @@ public List<PoolingContainer<CassandraClient>> getAllNonBlacklistedHosts() {
     }
 
     public CassandraClientPoolingContainer getRandomGoodHost() {
-        return getRandomGoodHostForPredicate(address -> true)
-                .orElseThrow(() -> new SafeIllegalStateException("No hosts available."));
+        return getRandomGoodHostForPredicate(address -> true).orElseThrow(NoHostsAvailableException::new);
     }
 
     private String getRingViewDescription() {
@@ -526,4 +529,23 @@ public void clearInitialCassandraHosts() {
     void overrideHostToDatacenterMapping(ImmutableMap<CassandraServer, String> hostToDatacenterOverride) {
         this.hostToDatacenter = hostToDatacenterOverride;
     }
+
+    private static final class NoHostsAvailableException extends AtlasDbDependencyException implements SafeLoggable {
+
+        private static final String MESSAGE = "No hosts available.";
+
+        NoHostsAvailableException() {
+            super(MESSAGE);
+        }
+
+        @Override
+        public @Safe String getLogMessage() {
+            return MESSAGE;
+        }
+
+        @Override
+        public List<Arg<?>> getArgs() {
+            return List.of();
+        }
+    }
 }u}(jH\ (17e6e0aeb1b64c151980df0c777b470289e11f67j\ batlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractTransactionManager.javaj\ modifiedj\ Kj\ K j\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionManager.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionManager.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionManager.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X&  @@ -81,6 +81,7 @@ protected final <T, E extends Exception> T runTaskThrowOnConflictWithCallback(
             }
         } finally {
             callback.run();
+            txn.reportExpectationsCollectedData();
             txn.runSuccessCallbacksIfDefinitivelyCommitted();
         }
     }u}(jH\ (312e2352c1ff098b40a0bde4a89d1d06d92a2267j\ `atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CallbackAwareTransaction.javaj\ modifiedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCallbackAwareTransaction.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCallbackAwareTransaction.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCallbackAwareTransaction.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X,  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.PreCommitCondition;
-import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionFailedException;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 
@@ -26,7 +25,7 @@
  * are run. This can be used to e.g run {@link PreCommitCondition#cleanup()} <i>before</i> the onSuccess callbacks
  * are run.
  */
-public interface CallbackAwareTransaction extends Transaction {
+public interface CallbackAwareTransaction extends ExpectationsAwareTransaction {
     void commitWithoutCallbacks() throws TransactionFailedException;
 
     void commitWithoutCallbacks(TransactionService transactionService) throws TransactionFailedException;u}(jH\ (7e87069870a53942641d65bb9f40d143a983e452j\ datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ExpectationsAwareTransaction.javaj\ renamedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ XU  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,15 +14,15 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.transaction.api.expectations;
+package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 /**
  * Implementors of this interface provide methods useful for tracking transactional expectations and whether
  * they were breached as well as relevant metrics and alerts. Transactional expectations represent transaction-level
  * limits and rules for proper usage of AtlasDB transactions (e.g. reading too much data overall).
- * Todo(aalouane): move this out of API once part 4 is merged
  */
 public interface ExpectationsAwareTransaction extends Transaction {
     long getAgeMillis();previous_filenamematlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/ExpectationsAwareTransaction.javau}(jH\ (71c4c8f8ff1bba49188c7bece8ec3b1fdebf6e66j\ jatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingCallbackAwareTransaction.javaj\ modifiedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingCallbackAwareTransaction.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingCallbackAwareTransaction.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingCallbackAwareTransaction.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -19,7 +19,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionFailedException;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 
-public abstract class ForwardingCallbackAwareTransaction extends ForwardingTransaction
+public abstract class ForwardingCallbackAwareTransaction extends ForwardingExpectationsAwareTransaction
         implements CallbackAwareTransaction {
 
     @Overrideu}(jH\ (b0f9e2b48803d8c98708f77f72b9c6d498e1be5aj\ natlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingExpectationsAwareTransaction.javaj\ addedj\ K)j\ K j\ K)j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X[  @@ -0,0 +1,41 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+
+public abstract class ForwardingExpectationsAwareTransaction extends ForwardingTransaction
+        implements ExpectationsAwareTransaction {
+
+    @Override
+    public abstract ExpectationsAwareTransaction delegate();
+
+    @Override
+    public long getAgeMillis() {
+        return delegate().getAgeMillis();
+    }
+
+    @Override
+    public TransactionReadInfo getReadInfo() {
+        return delegate().getReadInfo();
+    }
+
+    @Override
+    public void reportExpectationsCollectedData() {
+        delegate().reportExpectationsCollectedData();
+    }
+}u}(jH\ (0d2d4ad98a55ca825efe3a6a9aaedd1b0acd5728j\ Ratlasdb-commons/src/main/java/com/palantir/async/initializer/AsyncInitializer.javaj\ modifiedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -60,17 +60,28 @@ public final void initialize(boolean initializeAsync) {
 
     private void tryInitializationLoop() {
         if (state.isCancelled()) {
+            log.info(
+                    "Shutting down executor associated with asynchronous initialisation, as it was cancelled",
+                    SafeArg.of("className", getInitializingClassName()),
+                    SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
+                    SafeArg.of("durationBeforeCancellation", getMillisecondsSinceInitialization()));
             singleThreadedExecutor.shutdown();
             return;
         }
 
         try {
+            log.info(
+                    "Attempting to initialize {} on the attempt {}. The amount of time elapsed since we began was {}"
+                            + " milliseconds.",
+                    SafeArg.of("className", getInitializingClassName()),
+                    SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
+                    SafeArg.of("initializationDuration", getMillisecondsSinceInitialization()));
             tryInitializeInternal();
             log.info(
                     "Initialized {} on the attempt {} in {} milliseconds",
                     SafeArg.of("className", getInitializingClassName()),
                     SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
-                    SafeArg.of("initializationDuration", System.currentTimeMillis() - initializationStartTime));
+                    SafeArg.of("initializationDuration", getMillisecondsSinceInitialization()));
         } catch (Throwable throwable) {
             log.info(
                     "Failed to initialize {} on the attempt {}",
@@ -84,19 +95,23 @@ private void tryInitializationLoop() {
                         "Failed to cleanup when initialization of {} failed on attempt {} with {} milliseconds",
                         SafeArg.of("className", getInitializingClassName()),
                         SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
-                        SafeArg.of("initializationDuration", System.currentTimeMillis() - initializationStartTime),
+                        SafeArg.of("initializationDuration", getMillisecondsSinceInitialization()),
                         cleanupThrowable);
             }
             scheduleInitialization(sleepInterval());
         }
     }
 
+    private long getMillisecondsSinceInitialization() {
+        return System.currentTimeMillis() - initializationStartTime;
+    }
+
     // Not final for tests.
     void scheduleInitialization(Duration delay) {
         singleThreadedExecutor.schedule(this::tryInitializationLoop, delay.toMillis(), TimeUnit.MILLISECONDS);
     }
 
-    // Not final for tests
+    // Not final for tests.
     ScheduledExecutorService createExecutorService() {
         return PTExecutors.newSingleThreadScheduledExecutor(
                 new NamedThreadFactory("AsyncInitializer-" + getInitializingClassName(), true));u}(jH\ (3f12cc30de4b2565eb5b519d76b28f4a643de42cj\ Qatlasdb-commons/src/main/java/com/palantir/exception/NotInitializedException.javaj\ modifiedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X"  @@ -24,7 +24,7 @@
 
 public class NotInitializedException extends AtlasDbDependencyException implements SafeLoggable {
 
-    private static final String EXCEPTION_MESSAGE =
+    private static final String MESSAGE =
             "The object is not yet initialized, and as a result, all calls to it will fail. Interactions with this"
                     + " object should not take place until after initialization has completed. For example, if your"
                     + " service that handles REST requests relies on this object, it should not service REST requests"
@@ -33,19 +33,19 @@ public class NotInitializedException extends AtlasDbDependencyException implemen
     private final String objectNotInitialized;
 
     public NotInitializedException(@Safe String objectNotInitialized) {
-        super(EXCEPTION_MESSAGE);
+        super(MESSAGE);
         this.objectNotInitialized = objectNotInitialized;
     }
 
     public NotInitializedException(@Safe String objectNotInitialized, Throwable throwable) {
-        super(EXCEPTION_MESSAGE, throwable);
+        super(MESSAGE, throwable);
         this.objectNotInitialized = objectNotInitialized;
     }
 
     @Override
     @Safe
     public String getLogMessage() {
-        return EXCEPTION_MESSAGE;
+        return MESSAGE;
     }
 
     @Overrideu}(jH\ (63285014148e1955618c0b9c9c8fa5df70e05e2aj\ Ratlasdb-commons/src/test/java/com/palantir/common/base/BatchingVisitablesTest.javaj\ modifiedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fbase%2FBatchingVisitablesTest.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fbase%2FBatchingVisitablesTest.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fbase%2FBatchingVisitablesTest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -41,12 +41,13 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.mockito.Mock;
+import org.mockito.MockMakers;
 import org.mockito.junit.MockitoJUnitRunner;
 
 @RunWith(MockitoJUnitRunner.class)
 @SuppressWarnings("Guava") // BatchingVisitables uses Guava.
 public class BatchingVisitablesTest {
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private AbstractBatchingVisitable<Void> bv;
 
     @Testu}(jH\ (fa0abb8e2533a26b49003b3fb3c3acb92f58f9adj\ Zatlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/ConnectionConfig.javaj\ modifiedj\ Kj\ Kj\ K	j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X#  @@ -58,7 +58,10 @@ public MaskedValue getDbPassword() {
 
     public abstract String getDriverClass();
 
-    public abstract String getTestQuery();
+    @Value.Default
+    public String getTestQuery() {
+        return "";
+    }
 
     @JsonIgnore
     @Value.Derived
@@ -132,7 +135,7 @@ public String getConnectionPoolName() {
 
     @Value.Default
     public boolean testConnectionBeforeHandout() {
-        return true;
+        return false;
     }
 
     /**
@@ -182,7 +185,7 @@ public HikariConfig getHikariConfig() {
 
         initializeFailTimeoutMillis().ifPresent(config::setInitializationFailTimeout);
 
-        if (getTestQuery() != null && !getTestQuery().isEmpty()) {
+        if (!getTestQuery().isEmpty()) {
             config.setConnectionTestQuery(getTestQuery());
         }
 u}(jH\ (a2ad768a82efd1e1c312c4709fc4d57be8af1b8ej\ \atlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/H2ConnectionConfig.javaj\ modifiedj\ K j\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FH2ConnectionConfig.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FH2ConnectionConfig.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FH2ConnectionConfig.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X!  @@ -50,12 +50,6 @@ public String getDriverClass() {
         return "org.h2.Driver";
     }
 
-    @Override
-    @Value.Default
-    public String getTestQuery() {
-        return "SELECT 1";
-    }
-
     @Override
     public final DBType getDbType() {
         return DBType.H2_MEMORY;u}(jH\ (41a91b3af333f4beb327239129f2b5db59d5dc2ej\ `atlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/OracleConnectionConfig.javaj\ modifiedj\ K j\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FOracleConnectionConfig.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FOracleConnectionConfig.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FOracleConnectionConfig.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ XY  @@ -88,12 +88,6 @@ public String getDriverClass() {
         return "oracle.jdbc.driver.OracleDriver";
     }
 
-    @Override
-    @Value.Default
-    public String getTestQuery() {
-        return "";
-    }
-
     public abstract Optional<String> getSid();
 
     public abstract Optional<ServiceNameConfiguration> serviceNameConfiguration();u}(jH\ (814cb717b3d8c2d5aeb4ff0368d10e7cb32fa81dj\ batlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/PostgresConnectionConfig.javaj\ modifiedj\ K j\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FPostgresConnectionConfig.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FPostgresConnectionConfig.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FPostgresConnectionConfig.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -66,12 +66,6 @@ public String getDriverClass() {
         return "org.postgresql.Driver";
     }
 
-    @Override
-    @Value.Default
-    public String getTestQuery() {
-        return "SELECT 1";
-    }
-
     public abstract String getDbName();
 
     @Overrideu}(jH\ (b4249b75d5772865e17b9612368a1245c17ad38dj\ _atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTable.javaj\ modifiedj\ K
j\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -196,7 +196,12 @@ private String createTable(boolean needsOverflow) {
                         + (needsOverflow ? "overflow   NUMBER(38), " : "")
                         + "  CONSTRAINT " + PrimaryKeyConstraintNames.get(shortTableName)
                         + " PRIMARY KEY (row_name, col_name, ts) "
-                        + ") organization index compress overflow",
+                        + ") "
+                        + "organization index compress "
+                        // Since append only completely fill blocks - no benefit in leaving space for updates of rows
+                        // PCTUSED N/A to Index Organized Tables
+                        + "PCTFREE 0 "
+                        + "overflow",
                 OracleErrorConstants.ORACLE_ALREADY_EXISTS_ERROR);
         putTableNameMapping(oracleTableNameGetter.getPrefixedTableName(tableRef), shortTableName);
         return shortTableName;
@@ -209,7 +214,10 @@ private void createOverflowTable() {
                         + "  id  NUMBER(38) NOT NULL, "
                         + "  val BLOB NOT NULL,"
                         + "  CONSTRAINT " + PrimaryKeyConstraintNames.get(shortOverflowTableName) + " PRIMARY KEY (id)"
-                        + ")",
+                        + ") "
+                        // Since append only completely fill blocks - no benefit in leaving space for updates of rows
+                        // Assume auto segment space management, so PCTUSED ignored
+                        + "PCTFREE 0",
                 OracleErrorConstants.ORACLE_ALREADY_EXISTS_ERROR);
         putTableNameMapping(oracleTableNameGetter.getPrefixedOverflowTableName(tableRef), shortOverflowTableName);
     }u}(jH\ (a4d7e0bf2840561582e23f5dd2c6582df9f5bdfej\ `atlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/OracleTableNameUnmapperTest.javaj\ modifiedj\ Kj\ Kj\ K,j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -46,6 +46,7 @@
 import com.palantir.nexus.db.sql.AgnosticResultSetImpl;
 import com.palantir.nexus.db.sql.SqlConnection;
 import java.sql.Connection;
+import java.util.Arrays;
 import java.util.Collections;
 import java.util.List;
 import java.util.Map;
@@ -55,9 +56,14 @@
 import java.util.stream.IntStream;
 import org.junit.Before;
 import org.junit.Test;
+import org.junit.runner.RunWith;
 import org.mockito.ArgumentCaptor;
+import org.mockito.Mock;
+import org.mockito.Mock.Strictness;
+import org.mockito.junit.MockitoJUnitRunner;
 import org.mockito.stubbing.OngoingStubbing;
 
+@RunWith(MockitoJUnitRunner.class)
 public class OracleTableNameUnmapperTest {
 
     private static final String TEST_PREFIX = "a_";
@@ -68,21 +74,24 @@ public class OracleTableNameUnmapperTest {
     private static final TableReference TABLE_REF = TableReference.create(TEST_NAMESPACE, LONG_TABLE_NAME);
     private static final TableReference TABLE_REF_2 = TableReference.create(TEST_NAMESPACE, LONG_TABLE_NAME + "2");
 
-    private OracleTableNameUnmapper oracleTableNameUnmapper;
-    private AgnosticResultSet shortNameResultSet;
-    private ConnectionSupplier connectionSupplier;
-    private SqlConnection sqlConnection;
+    private final OracleTableNameUnmapper oracleTableNameUnmapper = new OracleTableNameUnmapper();
+
+    @Mock
+    AgnosticResultSet shortNameResultSet;
+
+    @Mock
+    ConnectionSupplier connectionSupplier;
+
+    @Mock(strictness = Strictness.LENIENT)
+    SqlConnection sqlConnection;
+
+    @Mock
+    Connection connection;
 
     @Before
     public void setup() {
-        connectionSupplier = mock(ConnectionSupplier.class);
-        oracleTableNameUnmapper = new OracleTableNameUnmapper();
-        sqlConnection = mock(SqlConnection.class);
-        Connection connection = mock(Connection.class);
         when(sqlConnection.getUnderlyingConnection()).thenReturn(connection);
         when(connectionSupplier.get()).thenReturn(sqlConnection);
-
-        shortNameResultSet = mock(AgnosticResultSet.class);
         when(sqlConnection.selectResultSetUnregisteredQuery(
                         startsWith("SELECT short_table_name FROM atlasdb_table_names WHERE table_name"), any()))
                 .thenReturn(shortNameResultSet);
@@ -135,7 +144,7 @@ public void cacheIsActuallyUsed() throws TableMappingNotFoundException {
 
     @Test
     public void getShortToLongTableNamesFromMappingTableReturnsLongNames() {
-        ArgumentCaptor<Object> tableNameCaptor = ArgumentCaptor.forClass(Object.class);
+        ArgumentCaptor<Object[]> tableNameCaptor = ArgumentCaptor.forClass(Object[].class);
         Map<String, String> shortNamesToLongNames = ImmutableMap.<String, String>builder()
                 .put("shortNameOne", "superLongNameOne")
                 .put("shortNameTwo", "superLongNameTwo")
@@ -153,7 +162,8 @@ public void getShortToLongTableNamesFromMappingTableReturnsLongNames() {
                                 + "(short_table_name) IN (" + generatePlaceholders(3) + ")"),
                         tableNameCaptor.capture());
 
-        assertThat(tableNameCaptor.getAllValues()).containsExactlyInAnyOrderElementsOf(shortNamesToLongNames.keySet());
+        assertThat(tableNameCaptor.getAllValues().stream().flatMap(Arrays::stream))
+                .containsExactlyInAnyOrderElementsOf(shortNamesToLongNames.keySet());
         verifyNoMoreInteractions(sqlConnection);
     }
 
@@ -174,15 +184,15 @@ public void getShortToLongTableNamesFromMappingTableDoesMultipleQueriesIfMoreTab
                         eq("SELECT short_table_name, table_name FROM atlasdb_table_names WHERE LOWER"
                                 + "(short_table_name) IN ("
                                 + generatePlaceholders(AtlasDbConstants.MINIMUM_IN_CLAUSE_EXPRESSION_LIMIT) + ")"),
-                        any());
+                        any(Object[].class));
         verify(sqlConnection)
                 .selectResultSetUnregisteredQuery(
                         eq("SELECT short_table_name, table_name FROM atlasdb_table_names WHERE LOWER"
                                 + "(short_table_name) IN ("
                                 + generatePlaceholders(
                                         numberOfEntries - AtlasDbConstants.MINIMUM_IN_CLAUSE_EXPRESSION_LIMIT)
                                 + ")"),
-                        any());
+                        any(Object[].class));
         verifyNoMoreInteractions(sqlConnection);
     }
 
@@ -221,11 +231,12 @@ public void getShortToLongTableNamesFromMappingReturnsEmptyMapIfMappingTableNotP
                 .isEmpty();
     }
 
-    private void mockShortNamesToLongNamesQuery(Map<String, String> shortTableNamesToLongTableNames) {
+    private OngoingStubbing<AgnosticResultSet> mockShortNamesToLongNamesQuery(
+            Map<String, String> shortTableNamesToLongTableNames) {
         OngoingStubbing<AgnosticResultSet> ongoingStubbing = when(sqlConnection.selectResultSetUnregisteredQuery(
                 startsWith("SELECT short_table_name, table_name FROM " + AtlasDbConstants.ORACLE_NAME_MAPPING_TABLE
                         + " WHERE LOWER(short_table_name)"),
-                any()));
+                any(Object[].class)));
 
         for (List<Entry<String, String>> batch : Iterables.partition(
                 shortTableNamesToLongTableNames.entrySet(), AtlasDbConstants.MINIMUM_IN_CLAUSE_EXPRESSION_LIMIT)) {
@@ -236,6 +247,7 @@ private void mockShortNamesToLongNamesQuery(Map<String, String> shortTableNamesT
                     DBType.ORACLE,
                     Map.of("short_table_name", 0, "SHORT_TABLE_NAME", 0, "table_name", 1, "TABLE_NAME", 1)));
         }
+        return ongoingStubbing;
     }
 
     private String generatePlaceholders(int numberOfPlaceholders) {u}(jH\ (a25afbbd55977ee4a1b82d1a983a012dc886d075j\ _atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/cleaner/KeyValueServicePuncherStore.javaj\ modifiedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FKeyValueServicePuncherStore.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FKeyValueServicePuncherStore.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FKeyValueServicePuncherStore.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -41,6 +41,7 @@
 import java.util.Optional;
 import java.util.concurrent.ThreadLocalRandom;
 import java.util.concurrent.TimeUnit;
+import org.checkerframework.checker.nullness.qual.Nullable;
 import org.immutables.value.Value.Check;
 import org.immutables.value.Value.Immutable;
 
@@ -185,7 +186,7 @@ public static long getMillisForTimestamp(KeyValueService kvs, long timestamp) {
      * within the specified bounds.
      */
     public static Optional<MillisAndMaybeTimestamp> getMillisForTimestampWithinBounds(
-            KeyValueService kvs, long timestamp, MillisAndMaybeTimestamp lowerBound, long upperBound) {
+            KeyValueService kvs, long timestamp, @Nullable MillisAndMaybeTimestamp lowerBound, long upperBound) {
         MillisAndMaybeTimestamp lowerBoundToUse =
                 Optional.ofNullable(lowerBound).orElseGet(() -> findOlder(kvs, timestamp, upperBound));
 u}(jH\ (4d13603f168edbd66a401b0f573473fe144b24a4j\ `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj\ modifiedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X
  @@ -97,6 +97,9 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
+import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueServiceImpl;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.TransactionOutcomeMetrics;
 import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
@@ -219,7 +222,7 @@ private enum State {
 
     protected final TimelockService timelockService;
     protected final LockWatchManagerInternal lockWatchManager;
-    final KeyValueService keyValueService;
+    final TrackingKeyValueService keyValueService;
     final AsyncKeyValueService immediateKeyValueService;
     final TransactionService defaultTransactionService;
     private final AsyncTransactionService immediateTransactionService;
@@ -277,7 +280,7 @@ private enum State {
      */
     /* package */ SnapshotTransaction(
             MetricsManager metricsManager,
-            KeyValueService keyValueService,
+            KeyValueService delegateKeyValueService,
             TimelockService timelockService,
             LockWatchManagerInternal lockWatchManager,
             TransactionService transactionService,
@@ -306,7 +309,7 @@ private enum State {
         this.lockWatchManager = lockWatchManager;
         this.conflictTracer = conflictTracer;
         this.transactionTimerContext = getTimer("transactionMillis").time();
-        this.keyValueService = keyValueService;
+        this.keyValueService = new TrackingKeyValueServiceImpl(delegateKeyValueService);
         this.immediateKeyValueService = KeyValueServices.synchronousAsAsyncKeyValueService(keyValueService);
         this.timelockService = timelockService;
         this.defaultTransactionService = transactionService;
@@ -2583,6 +2586,20 @@ private boolean validationNecessaryForInvolvedTablesOnCommit() {
         return anyTableRequiresImmutableTimestampLocking && needsToValidate;
     }
 
+    @Override
+    public long getAgeMillis() {
+        return System.currentTimeMillis() - timeCreated;
+    }
+
+    @Override
+    public TransactionReadInfo getReadInfo() {
+        return keyValueService.getOverallReadInfo();
+    }
+
+    // TODO(aalouane): implement and call this on transaction exit
+    @Override
+    public void reportExpectationsCollectedData() {}
+
     private long getStartTimestamp() {
         return startTimestamp.get();
     }u}(jH\ (0936c8842d9f7738cbd5017afd9659293095521dj\ gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManager.javaj\ modifiedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManager.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManager.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManager.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -246,7 +246,7 @@ private OpenTransactionImpl(CallbackAwareTransaction delegate, LockToken immutab
         }
 
         @Override
-        public Transaction delegate() {
+        public CallbackAwareTransaction delegate() {
             return delegate;
         }
 u}(jH\ (8d3be841271bd5b738aeb04915dfea33129f9ecfj\ tatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/knowledge/KnownAbandonedTransactionsImplTest.javaj\ modifiedj\ Kj\ Kj\ K&j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fknowledge%2FKnownAbandonedTransactionsImplTest.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fknowledge%2FKnownAbandonedTransactionsImplTest.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fknowledge%2FKnownAbandonedTransactionsImplTest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X{  @@ -18,8 +18,8 @@
 
 import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
 import static org.mockito.ArgumentMatchers.anyLong;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.times;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.atLeastOnce;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
@@ -32,16 +32,30 @@
 import java.util.Set;
 import java.util.stream.Collectors;
 import java.util.stream.LongStream;
+import org.junit.Before;
 import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
 
+@RunWith(MockitoJUnitRunner.class)
 public final class KnownAbandonedTransactionsImplTest {
-    private final AbandonedTimestampStore abandonedTimestampStore = mock(AbandonedTimestampStore.class);
-    private final AbandonedTransactionSoftCache softCache = mock(AbandonedTransactionSoftCache.class);
-    private final KnownAbandonedTransactionsImpl knownAbortedTransactions = new KnownAbandonedTransactionsImpl(
-            abandonedTimestampStore,
-            softCache,
-            new DefaultTaggedMetricRegistry(),
-            KnownAbandonedTransactionsImpl.MAXIMUM_CACHE_WEIGHT);
+    @Mock
+    AbandonedTimestampStore abandonedTimestampStore;
+
+    @Mock
+    AbandonedTransactionSoftCache softCache;
+
+    private KnownAbandonedTransactionsImpl knownAbortedTransactions;
+
+    @Before
+    public void before() {
+        knownAbortedTransactions = new KnownAbandonedTransactionsImpl(
+                abandonedTimestampStore,
+                softCache,
+                new DefaultTaggedMetricRegistry(),
+                KnownAbandonedTransactionsImpl.MAXIMUM_CACHE_WEIGHT);
+    }
 
     @Test
     public void testIsKnownAbortedReturnsTrueIfAbortedInSoftCache() {
@@ -141,7 +155,7 @@ public void testReliableCacheEvictsIfWeightLimitReached() {
         // First query for bucket 1 goes to the store
         knownAbortedTransactions.isKnownAbandoned(rangeForBucket.lowerEndpoint());
         verify(abandonedTimestampStore)
-                .getAbandonedTimestampsInRange(rangeForBucket.lowerEndpoint(), rangeForBucket.upperEndpoint());
+                .getAbandonedTimestampsInRange(eq(rangeForBucket.lowerEndpoint()), eq(rangeForBucket.upperEndpoint()));
 
         // Subsequent queries for bucket 1 are resolved from cache
         knownAbortedTransactions.isKnownAbandoned(rangeForBucket.lowerEndpoint());
@@ -155,8 +169,8 @@ public void testReliableCacheEvictsIfWeightLimitReached() {
 
         // Now the query for bucket 1 will go to the futile store due to cache eviction
         knownAbortedTransactions.isKnownAbandoned(rangeForBucket.lowerEndpoint());
-        verify(abandonedTimestampStore, times(2))
-                .getAbandonedTimestampsInRange(rangeForBucket.lowerEndpoint(), rangeForBucket.upperEndpoint());
+        verify(abandonedTimestampStore, atLeastOnce())
+                .getAbandonedTimestampsInRange(eq(rangeForBucket.lowerEndpoint()), eq(rangeForBucket.upperEndpoint()));
     }
 
     @Testu}(jH\ (d1bf1debf194d0e7d439b60289e1831101bbfa6fj\ -atlasdb-workload-server-antithesis/Dockerfilej\ addedj\ Kj\ K j\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-antithesis%2FDockerfilej\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-antithesis%2FDockerfilej\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2FDockerfile?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ n@@ -0,0 +1,4 @@
+FROM scratch
+MAINTAINER AtlasDB Team
+
+ADD docker-compose.yml /
\ No newline at end of fileu}(jH\ (3fe03f84c4a9ef10137f13d2f0bfe773525ba2b7j\ /atlasdb-workload-server-antithesis/build.gradlej\ addedj\ Kj\ K j\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-antithesis%2Fbuild.gradlej\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-antithesis%2Fbuild.gradlej\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fbuild.gradle?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -0,0 +1,11 @@
+apply plugin: 'com.palantir.docker'
+apply from: "../gradle/shared.gradle"
+apply from: "../gradle/non-client-dist.gradle"
+
+def imageVersion = "${project.version.toString().replaceAll('\\+', '-')}"
+
+docker {
+    name "palantirtechnologies/${project.name}:${imageVersion}"
+    tags 'latest', 'snapshot'
+    files 'var/docker-compose.yml'
+}
\ No newline at end of fileu}(jH\ (00359012166e4ba56e683294b97132670a929abdj\ 9atlasdb-workload-server-antithesis/var/docker-compose.ymlj\ addedj\ KUj\ K j\ KUj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X	  @@ -0,0 +1,85 @@
+version: '2'
+
+services:
+  cassandra1:
+    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    ports:
+      - "9160"
+      - "9042"
+      - "7199"
+    environment:
+      - CASSANDRA_SEEDS=cassandra1,cassandra2,cassandra3
+      - CASSANDRA_ENDPOINT_SNITCH=PropertyFileSnitch
+      - MAX_HEAP_SIZE=512m
+      - HEAP_NEWSIZE=64m
+      - LOCAL_JMX=no
+    container_name: cassandra1
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.2
+
+  cassandra2:
+    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    ports:
+      - "9160"
+      - "9042"
+      - "7199"
+    environment:
+      - CASSANDRA_SEEDS=cassandra1,cassandra2,cassandra3
+      - CASSANDRA_ENDPOINT_SNITCH=PropertyFileSnitch
+      - MAX_HEAP_SIZE=512m
+      - HEAP_NEWSIZE=64m
+      - LOCAL_JMX=no
+    container_name: cassandra2
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.3
+
+  cassandra3:
+    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    ports:
+      - "9160"
+      - "9042"
+      - "7199"
+    environment:
+      - CASSANDRA_SEEDS=cassandra1,cassandra2,cassandra3
+      - CASSANDRA_ENDPOINT_SNITCH=PropertyFileSnitch
+      - MAX_HEAP_SIZE=512m
+      - HEAP_NEWSIZE=64m
+      - LOCAL_JMX=no
+    container_name: cassandra3
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.4
+
+  timelock:
+    image: palantirtechnologies/timelock-server-distribution:unspecified
+    ports:
+      - "8421"
+      - "8422"
+    container_name: timelock
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.5
+
+  workload-server:
+    image: palantirtechnologies/atlasdb-workload-server-distribution:unspecified
+    command: [bash, -c, 'cp var/conf/workload-server.timelock.cassandra.yml var/conf/workload-server.yml 
+                         && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160 
+                         && service/bin/init.sh console']
+    container_name: workload-server
+    depends_on:
+      - cassandra1
+      - cassandra2
+      - cassandra3
+      - timelock
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.6
+
+networks:
+  antithesis-net:
+    driver: bridge
+    ipam:
+      config:
+        - subnet: 10.20.20.0/24
\ No newline at end of fileu}(jH\ (e7305ade35c915bb53a9c53289a6a434cfb626dbj\ hatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/InvariantReporter.javaj\ addedj\ K#j\ K j\ K#j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariantReporter.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariantReporter.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariantReporter.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.function.Consumer;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvariantReporter<ViolationsT> {
+
+    @Value.Parameter
+    Invariant<ViolationsT> invariant();
+
+    @Value.Parameter
+    Consumer<ViolationsT> consumer();
+
+    default void report(WorkflowHistory history) {
+        invariant().accept(history, consumer());
+    }
+}u}(jH\ (74577176782254379012e1999cadb8c1ea4b8edcj\ ]atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/IndexTable.javaj\ addedj\ K,j\ K j\ K,j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTable.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTable.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTable.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface IndexTable {
+
+    @Value.Parameter
+    String indexTableName();
+
+    @Value.Parameter
+    String primaryTableName();
+
+    @Value.Check
+    default void checkNameAndPrimaryTableAreNotEqual() {
+        Preconditions.checkArgument(
+                !indexTableName().equalsIgnoreCase(primaryTableName()),
+                "Index table name and primary table name are identical.",
+                SafeArg.of("name", indexTableName()),
+                SafeArg.of("primaryTable", primaryTableName()));
+    }
+
+    static ImmutableIndexTable.Builder builder() {
+        return ImmutableIndexTable.builder();
+    }
+}u}(jH\ (360fb590830275fb2bcc053744705e446a7931faj\ aatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/IsolationLevel.javaj\ addedj\ Kj\ K j\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIsolationLevel.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIsolationLevel.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIsolationLevel.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -0,0 +1,23 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+public enum IsolationLevel {
+    SERIALIZABLE,
+    SNAPSHOT,
+    NONE;
+}u}(jH\ (388c429b93e386dccfaa31596a889119c7973aafj\ jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStoreFactory.javaj\ addedj\ Kj\ K j\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -0,0 +1,27 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import java.util.Map;
+import java.util.Set;
+
+/**
+ * Creates transaction stores of a certain type which are bounded to the provided tables/indexes.
+ */
+public interface TransactionStoreFactory {
+    TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
+}u}(jH\ (f3b4e04f4d4358c82e503f82cffa59f41a139357j\ hatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/TableConfiguration.javaj\ addedj\ Kj\ K j\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -0,0 +1,31 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableTableConfiguration.class)
+@JsonDeserialize(as = ImmutableTableConfiguration.class)
+public interface TableConfiguration {
+    String tableName();
+
+    IsolationLevel isolationLevel();
+}u}(jH\ (a62866eedfc187b1d057728b326c060a7c0d1062j\ katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowConfiguration.javaj\ modifiedj\ Kj\ Kj\ K
j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -16,15 +16,9 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import com.google.common.util.concurrent.ListeningExecutorService;
-import org.immutables.value.Value;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
 
-@Value.Immutable
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
 public interface WorkflowConfiguration {
     int iterationCount();
-
-    /**
-     * Executor used to execute workload threads (i.e., transactions).
-     */
-    ListeningExecutorService executionExecutor();
 }u	     }(jH\ (68e4a118ee1dbb9012da769c64aa3cb5d16096f9j\ datlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowRunner.javaj\ addedj\ Kj\ K j\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowRunner.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowRunner.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowRunner.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import java.util.List;
+
+/**
+ * Run the provided workflow and execute the provided invariant reporters.
+ *
+ * The idea of this class is that long-term we will want to have multiple ways to run/execute workflows,
+ * rather than biasing towards the present case (just once).
+ */
+public interface WorkflowRunner<WorkflowTypeT extends Workflow> {
+    void run(WorkflowTypeT workflow, List<InvariantReporter<?>> invariantReporters);
+}u}(jH\ (e29feefdc7506942a05d1a7938b0903280f26161j\ aatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/store/IndexTableTest.javaj\ addedj\ KAj\ K j\ KAj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTableTest.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTableTest.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTableTest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X
  @@ -0,0 +1,65 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.palantir.logsafe.SafeArg;
+import java.util.Locale;
+import org.junit.Test;
+
+public final class IndexTableTest {
+
+    private static final String TABLE_1 = "foo";
+    private static final String TABLE_2 = "bar";
+
+    @Test
+    public void doesNotThrowWhenNamesAreDifferent() {
+        assertThatCode(() -> createIndexTable("foo", "bar")).doesNotThrowAnyException();
+    }
+
+    @Test
+    public void indexTableNameIsFirstArgumentAndPrimaryTableIsSecondArgument() {
+        IndexTable indexTable = createIndexTable(TABLE_1, TABLE_2);
+        assertThat(indexTable.indexTableName()).isEqualTo(TABLE_1);
+        assertThat(indexTable.primaryTableName()).isEqualTo(TABLE_2);
+    }
+
+    @Test
+    public void throwsWhenIndexNameIsTheSameAsPrimary() {
+        assertThatLoggableExceptionThrownBy(() -> createIndexTable(TABLE_1, TABLE_1))
+                .hasMessageContaining("Index table name and primary table name are identical.")
+                .hasExactlyArgs(SafeArg.of("name", TABLE_1), SafeArg.of("primaryTable", TABLE_1));
+    }
+
+    @Test
+    public void throwsWhenIndexNameIsTheSameAsPrimaryIgnoresCase() {
+        assertThatLoggableExceptionThrownBy(() -> createIndexTable(TABLE_1, TABLE_1.toUpperCase(Locale.ROOT)))
+                .hasMessageContaining("Index table name and primary table name are identical.")
+                .hasExactlyArgs(
+                        SafeArg.of("name", TABLE_1), SafeArg.of("primaryTable", TABLE_1.toUpperCase(Locale.ROOT)));
+    }
+
+    private IndexTable createIndexTable(String indexTableName, String primaryTableName) {
+        return IndexTable.builder()
+                .primaryTableName(primaryTableName)
+                .indexTableName(indexTableName)
+                .build();
+    }
+}u}(jH\ (1b2d452e3c07bb6f7e7dcbd97b739698e0817c15j\ /atlasdb-workload-server-distribution/Dockerfilej\ addedj\ Kj\ K j\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2FDockerfilej\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2FDockerfilej\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2FDockerfile?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -0,0 +1,18 @@
+FROM adoptopenjdk/openjdk11:jre-11.0.9_11.1-alpine
+MAINTAINER AtlasDB Team
+
+ENV DOCKERIZE_VERSION v0.2.0
+
+# Bash is useful for monitoring; curl is used by our healthchecks.
+RUN apk update && apk add bash curl procps wget  \
+    && wget --no-check-certificate http://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
+    && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
+
+# Prefer ADD to COPY because it does the tar handling
+ADD atlasdb-workload-server-*.tgz /
+
+RUN mv /atlasdb-workload-server-* /atlasdb-workload-server
+
+WORKDIR /atlasdb-workload-server
+
+CMD ["service/bin/init.sh", "console"]u}(jH\ (77aa082a3f56273b255cc5a16f5dfd48dbf64a7aj\ 1atlasdb-workload-server-distribution/build.gradlej\ addedj\ K)j\ K j\ K)j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fbuild.gradlej\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fbuild.gradlej\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -0,0 +1,41 @@
+apply plugin: 'com.palantir.sls-java-service-distribution'
+apply plugin: 'com.palantir.external-publish-dist'
+apply from: "../gradle/docker.gradle"
+apply from: "../gradle/shared.gradle"
+apply from: "../gradle/non-client-dist.gradle"
+
+dependencies {
+    implementation 'com.fasterxml.jackson.core:jackson-annotations'
+    implementation 'com.fasterxml.jackson.core:jackson-core'
+    implementation 'com.fasterxml.jackson.core:jackson-databind'
+    implementation 'io.dropwizard.metrics:metrics-core'
+    implementation 'io.dropwizard:dropwizard-core'
+    implementation 'io.dropwizard:dropwizard-http2'
+    implementation 'io.dropwizard:dropwizard-jackson'
+    implementation 'io.dropwizard:dropwizard-jersey'
+    implementation 'io.dropwizard:dropwizard-lifecycle'
+    implementation 'io.dropwizard:dropwizard-logging'
+    implementation 'io.dropwizard:dropwizard-request-logging'
+    implementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
+    implementation 'com.palantir.conjure.java.runtime:conjure-java-jersey-server'
+    implementation 'com.google.guava:guava'
+
+    implementation project(':atlasdb-client')
+    implementation project(':atlasdb-cassandra')
+    implementation project(':atlasdb-workload-server')
+    implementation project(':atlasdb-workload-server-api')
+    implementation project(':atlasdb-config')
+
+    testImplementation 'io.dropwizard:dropwizard-testing'
+
+    compileOnly 'org.immutables:value::annotations'
+    annotationProcessor 'org.immutables:value'
+}
+
+
+distribution {
+    serviceName "atlasdb-workload-server"
+    mainClass 'com.palantir.atlasdb.workload.WorkloadServerLauncher'
+    args 'server', 'var/conf/workload-server.yml'
+    defaultJvmOpts "-Xms512m", "-Xmx512m"
+}
\ No newline at end of fileu}(jH\ (44582631544b31080c761064fcdd5ec05fee35e0j\ latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj\ addedj\ Kj\ K j\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -0,0 +1,128 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload;
+
+import com.codahale.metrics.MetricRegistry;
+import com.codahale.metrics.SharedMetricRegistries;
+import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
+import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.util.MetricsManager;
+import com.palantir.atlasdb.util.MetricsManagers;
+import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
+import com.palantir.atlasdb.workload.invariant.DurableWritesMetricInvariantReporter;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.workflow.RunOnceWorkflowRunner;
+import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
+import com.palantir.conjure.java.api.config.service.UserAgent;
+import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.refreshable.Refreshable;
+import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
+import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
+import io.dropwizard.Application;
+import io.dropwizard.jackson.DiscoverableSubtypeResolver;
+import io.dropwizard.setup.Bootstrap;
+import io.dropwizard.setup.Environment;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+
+public class WorkloadServerLauncher extends Application<WorkloadServerConfiguration> {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(WorkloadServerLauncher.class);
+    private static final UserAgent USER_AGENT = UserAgent.of(Agent.of("AtlasDbWorkloadServer", "0.0.0"));
+
+    private final TaggedMetricRegistry taggedMetricRegistry = new DefaultTaggedMetricRegistry();
+    private final CountDownLatch workflowsRanLatch = new CountDownLatch(1);
+
+    public static void main(String[] args) throws Exception {
+        new WorkloadServerLauncher().run(args);
+    }
+
+    @Override
+    public void initialize(Bootstrap<WorkloadServerConfiguration> bootstrap) {
+        MetricRegistry metricRegistry = SharedMetricRegistries.getOrCreate("AtlasDbWorkLoadServer");
+        bootstrap.setMetricRegistry(metricRegistry);
+        bootstrap.setObjectMapper(ObjectMappers.newServerObjectMapper());
+        bootstrap.getObjectMapper().setSubtypeResolver(new DiscoverableSubtypeResolver());
+        bootstrap.getObjectMapper().registerModule(new Jdk8Module());
+        super.initialize(bootstrap);
+    }
+
+    @Override
+    public void run(WorkloadServerConfiguration configuration, Environment environment) {
+        environment.getObjectMapper().registerModule(new Jdk8Module()).registerModule(new JavaTimeModule());
+
+        ExecutorService workflowRunnerExecutor =
+                environment.lifecycle().executorService("workflow-runner").build();
+
+        workflowRunnerExecutor.execute(() -> runWorkflows(configuration, environment));
+    }
+
+    private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {
+        ExecutorService singleRowTwoCellsExecutorService = environment
+                .lifecycle()
+                .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
+                .build();
+        MetricsManager metricsManager = MetricsManagers.of(environment.metrics(), taggedMetricRegistry);
+        AtlasDbTransactionStoreFactory transactionStoreFactory = AtlasDbTransactionStoreFactory.createFromConfig(
+                configuration.install().atlas(),
+                Refreshable.only(configuration.runtime().atlas()),
+                USER_AGENT,
+                metricsManager);
+        SingleRowTwoCellsWorkflowConfiguration workflowConfig =
+                configuration.install().singleRowTwoCellsConfig();
+
+        log.info("antithesis: start_faults");
+        RunOnceWorkflowRunner.INSTANCE.run(
+                SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
+                        transactionStoreFactory.create(
+                                Map.of(
+                                        workflowConfig.tableConfiguration().tableName(),
+                                        workflowConfig.tableConfiguration().isolationLevel()),
+                                Set.of()),
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)),
+                List.of(new DurableWritesMetricInvariantReporter(
+                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry))));
+        log.info("antithesis: terminate");
+
+        workflowsRanLatch.countDown();
+
+        if (configuration.install().exitAfterRunning()) {
+            System.exit(0);
+        }
+    }
+
+    @VisibleForTesting
+    CountDownLatch workflowsRanLatch() {
+        return workflowsRanLatch;
+    }
+
+    @VisibleForTesting
+    TaggedMetricRegistry getTaggedMetricRegistry() {
+        return taggedMetricRegistry;
+    }
+}u}(jH\ (655b2984713096f58ef552b3e999b0c467a73c48j\ xatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerConfiguration.javaj\ addedj\ K)j\ K j\ K)j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerConfiguration.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerConfiguration.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerConfiguration.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -0,0 +1,41 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.config;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.dropwizard.Configuration;
+
+public class WorkloadServerConfiguration extends Configuration {
+
+    private final WorkloadServerRuntimeConfiguration runtime;
+    private final WorkloadServerInstallConfiguration install;
+
+    public WorkloadServerConfiguration(
+            @JsonProperty(value = "install", required = true) WorkloadServerInstallConfiguration install,
+            @JsonProperty(value = "runtime", required = true) WorkloadServerRuntimeConfiguration runtime) {
+        this.install = install;
+        this.runtime = runtime;
+    }
+
+    public WorkloadServerRuntimeConfiguration runtime() {
+        return runtime;
+    }
+
+    public WorkloadServerInstallConfiguration install() {
+        return install;
+    }
+}u}(jH\ (009d1e836cb4f2d06c17d17b2580dcc7ec4d27e7j\ atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj\ addedj\ K"j\ K j\ K"j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ Xg  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.config;
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import org.immutables.value.Value;
+
+@JsonDeserialize(as = ImmutableWorkloadServerInstallConfiguration.class)
+@JsonSerialize(as = ImmutableWorkloadServerInstallConfiguration.class)
+@Value.Immutable
+public interface WorkloadServerInstallConfiguration {
+    AtlasDbConfig atlas();
+
+    SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig();
+
+    boolean exitAfterRunning();
+}u}(jH\ (2824c644dc8df565316087e7978c2a1b336f0bf9j\ atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerRuntimeConfiguration.javaj\ addedj\ Kj\ K j\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerRuntimeConfiguration.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerRuntimeConfiguration.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerRuntimeConfiguration.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.config;
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.palantir.atlasdb.config.AtlasDbRuntimeConfig;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@JsonDeserialize(as = ImmutableWorkloadServerRuntimeConfiguration.class)
+@JsonSerialize(as = ImmutableWorkloadServerRuntimeConfiguration.class)
+@Value.Immutable
+public interface WorkloadServerRuntimeConfiguration {
+    Optional<AtlasDbRuntimeConfig> atlas();
+}u}(jH\ (de8ac8137080a18591a69dabb98316ec9897dfa3j\ patlasdb-workload-server-distribution/src/test/java/com/palantir/atlasdb/workload/WorkloadServerLauncherTest.javaj\ addedj\ K4j\ K j\ K4j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncherTest.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncherTest.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncherTest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ XM	  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.codahale.metrics.Timer;
+import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
+import com.palantir.tritium.metrics.registry.MetricName;
+import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
+import io.dropwizard.testing.ResourceHelpers;
+import io.dropwizard.testing.junit.DropwizardAppRule;
+import java.util.Map;
+import java.util.concurrent.TimeUnit;
+import org.junit.ClassRule;
+import org.junit.Test;
+
+public class WorkloadServerLauncherTest {
+    @ClassRule
+    public static final DropwizardAppRule<WorkloadServerConfiguration> RULE = new DropwizardAppRule<>(
+            WorkloadServerLauncher.class, ResourceHelpers.resourceFilePath("workload-server.yml"));
+
+    @Test
+    public void runsWorkflow() throws InterruptedException {
+        WorkloadServerLauncher workloadServerLauncher = RULE.getApplication();
+        workloadServerLauncher.workflowsRanLatch().await(20, TimeUnit.SECONDS);
+        TaggedMetricRegistry metricRegistry = workloadServerLauncher.getTaggedMetricRegistry();
+        MetricName metricName = MetricName.builder()
+                .safeName("com.palantir.atlasdb.keyvalue.api.KeyValueService.get")
+                .safeTags(Map.of("libraryOrigin", "atlasdb"))
+                .build();
+        Timer kvsGetMetric = (Timer) metricRegistry.getMetrics().get(metricName);
+        assertThat(kvsGetMetric.getCount())
+                .as("Count of KeyValueService get calls should be greater than one,"
+                        + "as a workflow should have been executed")
+                .isGreaterThan(1);
+    }
+}u}(jH\ (7e40ac0af622142842a15da5fabb1d3cac282fd3j\ Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj\ addedj\ K
j\ K j\ K
j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ XW  @@ -0,0 +1,13 @@
+runtime: {}
+install:
+  atlas:
+    namespace: test
+    keyValueService:
+      type: memory
+  singleRowTwoCellsConfig:
+    tableConfiguration:
+      tableName: two-cells-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: singleRowTwoCells
+  exitAfterRunning: false
\ No newline at end of fileu}(jH\ (85cb331280d6f96e3eedd1c99343b3a58af383ebj\ Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj\ addedj\ K.j\ K j\ K.j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -0,0 +1,46 @@
+runtime:
+  atlas:
+    internalSchema:
+      targetTransactionsSchemaVersion: 3
+    sweep:
+      enabled: false
+    targetedSweep:
+      enabled: true
+      shards: 1
+    timelockRuntime:
+      serversList:
+        servers:
+          - 'http://timelock:8421'
+        sslConfiguration:
+          keyStorePath: "var/security/keyStore.jks"
+          keyStorePassword: "keystore"
+          trustStorePath: "var/security/trustStore.jks"
+install:
+  atlas:
+    keyValueService:
+      type: cassandra
+      servers:
+        type: cqlCapable
+        cqlHosts:
+          - cassandra1:9042
+          - cassandra2:9042
+          - cassandra3:9042
+        thriftHosts:
+          - cassandra1:9160
+          - cassandra2:9160
+          - cassandra3:9160
+      credentials:
+        username: cassandra
+        password: cassandra
+      ssl: false
+      replicationFactor: 3
+    targetedSweep:
+      enableSweepQueueWrites: true
+    namespace: workload_server
+  singleRowTwoCellsConfig:
+    tableConfiguration:
+      tableName: two_cells_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: singleRowTwoCells
+  exitAfterRunning: trueu}(jH\ (460140589050272c4b15d430c3846aeae4273f6dj\ Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj\ addedj\ K
j\ K j\ K
j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ XV  @@ -0,0 +1,13 @@
+runtime: {}
+install:
+  atlas:
+    namespace: test
+    keyValueService:
+      type: memory
+  singleRowTwoCellsConfig:
+    tableConfiguration:
+      tableName: two-cells-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: singleRowTwoCells
+  exitAfterRunning: true
\ No newline at end of fileu}(jH\ (7d7c58d85db7aec41551dce0fc7be0a3e2d22fb1j\ >atlasdb-workload-server-distribution/var/security/keyStore.jksj\ addedj\ K j\ K j\ K j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FkeyStore.jksj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FkeyStore.jksj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FkeyStore.jks?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31u}(jH\ (49dd792296e2678272e6b07df09e286ff5b8879ej\ @atlasdb-workload-server-distribution/var/security/trustStore.jksj\ addedj\ K j\ K j\ K j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FtrustStore.jksj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FtrustStore.jksj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FtrustStore.jks?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31u}(jH\ (0b023f1d2ff15d80396fa73ae4c1939d24406f3bj\ $atlasdb-workload-server/build.gradlej\ modifiedj\ Kj\ K j\ Kj\ xhttps://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fbuild.gradlej\ whttps://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fbuild.gradlej\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ Xu  @@ -1,4 +1,9 @@
 apply from: "../gradle/shared.gradle"
+apply plugin: 'com.palantir.metric-schema'
+
+license {
+    exclude '**/DurableWritesMetrics.java'
+}
 
 dependencies {
     implementation project(':atlasdb-workload-server-api')
@@ -17,6 +22,7 @@ dependencies {
 
     testImplementation project(':commons-executors')
     testImplementation 'org.mockito:mockito-core'
+    testImplementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
     testImplementation 'com.palantir.safe-logging:preconditions-assertj'
     testImplementation('org.jmock:jmock') {
         exclude group: 'org.hamcrest'u}(jH\ (457f6d79b122913be9fac3d78d156cbefead5935j\ watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporter.javaj\ addedj\ K=j\ K j\ K=j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X	  @@ -0,0 +1,61 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.DurableWritesMetrics;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.Map;
+import java.util.function.Consumer;
+
+public final class DurableWritesMetricInvariantReporter
+        implements InvariantReporter<Map<TableAndWorkloadCell, MismatchedValue>> {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(DurableWritesMetricInvariantReporter.class);
+
+    private final String workflow;
+    private final DurableWritesMetrics durableWritesMetrics;
+
+    public DurableWritesMetricInvariantReporter(String workflow, DurableWritesMetrics durableWritesMetrics) {
+        this.workflow = workflow;
+        this.durableWritesMetrics = durableWritesMetrics;
+    }
+
+    @Override
+    public Invariant<Map<TableAndWorkloadCell, MismatchedValue>> invariant() {
+        return DurableWritesInvariant.INSTANCE;
+    }
+
+    @Override
+    public Consumer<Map<TableAndWorkloadCell, MismatchedValue>> consumer() {
+        return mismatchingValues -> {
+            mismatchingValues.forEach((tableAndWorkloadCell, _mismatchedValue) -> durableWritesMetrics
+                    .numberOfViolations()
+                    .workflow(workflow)
+                    .table(tableAndWorkloadCell.tableName())
+                    .build()
+                    .inc());
+            if (!mismatchingValues.isEmpty()) {
+                log.warn(
+                        "Durable writes invariant violations found: {}",
+                        SafeArg.of("mismatchingValues", mismatchingValues));
+            }
+        };
+    }
+}u}(jH\ (945bd51a9e1af43213942c8be181025324041dd8j\ matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javaj\ addedj\ Kj\ K j\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ Xu  @@ -0,0 +1,147 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.Sets;
+import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.config.AtlasDbRuntimeConfig;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.Namespace;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.util.MetricsManager;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.conjure.java.api.config.service.UserAgent;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.refreshable.Refreshable;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import one.util.streamex.EntryStream;
+import one.util.streamex.StreamEx;
+
+public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory {
+
+    private final TransactionManager transactionManager;
+    private final Optional<Namespace> maybeNamespace;
+
+    public AtlasDbTransactionStoreFactory(TransactionManager transactionManager, Optional<String> maybeNamespace) {
+        this.transactionManager = transactionManager;
+        this.maybeNamespace = maybeNamespace.map(Namespace::create);
+    }
+
+    @Override
+    public TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
+        return AtlasDbTransactionStore.create(transactionManager, toAtlasTables(tables, indexes));
+    }
+
+    @VisibleForTesting
+    Map<TableReference, byte[]> toAtlasTables(Map<String, IsolationLevel> tables, Set<IndexTable> indexTables) {
+        checkIndexesReferenceExistingPrimaryTable(tables, indexTables);
+        checkIndexAndPrimaryTableNamesDoNotConflict(tables, indexTables);
+        checkIndexesDoNotHaveDuplicateNames(indexTables);
+
+        Map<TableReference, ConflictHandler> atlasPrimaryTables = EntryStream.of(tables)
+                .mapKeys(this::createTableReference)
+                .mapValues(AtlasDbUtils::toConflictHandler)
+                .toMap();
+        Map<TableReference, ConflictHandler> atlasIndexTables = StreamEx.of(indexTables)
+                .mapToEntry(IndexTable::indexTableName, IndexTable::primaryTableName)
+                .mapKeys(this::createTableReference)
+                .mapValues(tables::get)
+                .mapValues(AtlasDbUtils::toConflictHandler)
+                .mapValues(AtlasDbUtils::toIndexConflictHandler)
+                .toMap();
+        return EntryStream.of(atlasPrimaryTables)
+                .append(atlasIndexTables)
+                .mapValues(AtlasDbUtils::tableMetadata)
+                .toMap();
+    }
+
+    @VisibleForTesting
+    TableReference createTableReference(String tableName) {
+        return maybeNamespace
+                .map(namespace -> TableReference.create(namespace, tableName))
+                .orElseGet(() -> TableReference.createWithEmptyNamespace(tableName));
+    }
+
+    private static void checkIndexesDoNotHaveDuplicateNames(Set<IndexTable> indexTables) {
+        Map<String, Long> countOfIndexNames = indexTables.stream()
+                .map(IndexTable::indexTableName)
+                .map(String::toLowerCase)
+                .collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
+        Set<String> duplicateTableIndexNames = EntryStream.of(countOfIndexNames)
+                .removeValues(value -> value <= 1)
+                .keys()
+                .toSet();
+
+        Preconditions.checkArgument(
+                duplicateTableIndexNames.isEmpty(),
+                "Found index tables with the same name",
+                SafeArg.of("duplicateTableIndexNames", duplicateTableIndexNames));
+    }
+
+    private static void checkIndexAndPrimaryTableNamesDoNotConflict(
+            Map<String, IsolationLevel> tables, Set<IndexTable> indexTables) {
+        Set<String> primaryTableNames =
+                tables.keySet().stream().map(String::toLowerCase).collect(Collectors.toSet());
+        Set<String> indexTableNames = indexTables.stream()
+                .map(IndexTable::indexTableName)
+                .map(String::toLowerCase)
+                .collect(Collectors.toSet());
+        Set<String> conflictingTableNames = Sets.intersection(primaryTableNames, indexTableNames);
+        Preconditions.checkArgument(
+                conflictingTableNames.isEmpty(),
+                "Found indexes which have the same name as primary tables",
+                SafeArg.of("conflictingTableNames", conflictingTableNames));
+    }
+
+    private static void checkIndexesReferenceExistingPrimaryTable(
+            Map<String, IsolationLevel> tables, Set<IndexTable> indexTables) {
+        Set<IndexTable> indexesWithUnknownPrimaryTables = StreamEx.of(indexTables)
+                .remove(indexTable -> tables.containsKey(indexTable.primaryTableName()))
+                .toSet();
+
+        Preconditions.checkArgument(
+                indexesWithUnknownPrimaryTables.isEmpty(),
+                "Found indexes which reference an unknown primary table",
+                SafeArg.of("indexesWithUnknownPrimaryTables", indexesWithUnknownPrimaryTables));
+    }
+
+    public static AtlasDbTransactionStoreFactory createFromConfig(
+            AtlasDbConfig installConfig,
+            Refreshable<Optional<AtlasDbRuntimeConfig>> atlasDbRuntimeConfig,
+            UserAgent userAgent,
+            MetricsManager metricsManager) {
+        TransactionManager transactionManager = TransactionManagers.builder()
+                .config(installConfig)
+                .userAgent(userAgent)
+                .globalMetricsRegistry(metricsManager.getRegistry())
+                .globalTaggedMetricRegistry(metricsManager.getTaggedRegistry())
+                .runtimeConfigSupplier(atlasDbRuntimeConfig)
+                .build()
+                .serializable();
+
+        return new AtlasDbTransactionStoreFactory(
+                transactionManager, installConfig.namespace().or(installConfig.keyValueService()::namespace));
+    }
+}u}(jH\ (3346534c0f8b833d132668a0d60c525f4cc3b7fbj\ Zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/AtlasDbUtils.javaj\ modifiedj\ K(j\ Kj\ K7j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X
  @@ -24,12 +24,32 @@
 import com.palantir.atlasdb.table.description.NameMetadataDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 
 public final class AtlasDbUtils {
 
     private AtlasDbUtils() {}
 
+    public static ConflictHandler toConflictHandler(IsolationLevel isolationLevel) {
+        switch (isolationLevel) {
+            case NONE:
+                return ConflictHandler.IGNORE_ALL;
+            case SNAPSHOT:
+                return ConflictHandler.RETRY_ON_WRITE_WRITE;
+            case SERIALIZABLE:
+                return ConflictHandler.SERIALIZABLE;
+            default:
+                throw new SafeIllegalArgumentException(
+                        "Cannot convert isolation level into a AtlasDb conflict handler due to unknown isolation"
+                                + " level.",
+                        SafeArg.of("isolationLevel", isolationLevel.name()));
+        }
+    }
+
     public static Cell toAtlasCell(WorkloadCell cell) {
         return Cell.create(Ints.toByteArray(cell.key()), Ints.toByteArray(cell.column()));
     }
@@ -50,22 +70,27 @@ public static byte[] tableMetadata(ConflictHandler conflictHandler) {
                 .persistToBytes();
     }
 
-    public static byte[] indexMetadata(ConflictHandler baseTableConflictHandler) {
-        ConflictHandler conflictHandler = baseTableConflictHandler.checkReadWriteConflicts()
+    public static byte[] tableMetadata(IsolationLevel isolationLevel) {
+        switch (isolationLevel) {
+            case SERIALIZABLE:
+                return tableMetadata(ConflictHandler.SERIALIZABLE);
+            case SNAPSHOT:
+                return tableMetadata(ConflictHandler.RETRY_ON_WRITE_WRITE);
+            case NONE:
+                return tableMetadata(ConflictHandler.IGNORE_ALL);
+            default:
+                throw new SafeIllegalStateException(
+                        "Unknown isolation level", SafeArg.of("isolationLevel", isolationLevel));
+        }
+    }
+
+    public static ConflictHandler toIndexConflictHandler(ConflictHandler baseTableConflictHandler) {
+        return baseTableConflictHandler.checkReadWriteConflicts()
                 ? ConflictHandler.SERIALIZABLE_INDEX
                 : ConflictHandler.IGNORE_ALL;
-        return new TableMetadata.Builder()
-                .rowMetadata(new NameMetadataDescription())
-                .columns(new ColumnMetadataDescription())
-                .conflictHandler(conflictHandler)
-                .cachePriority(TableMetadataPersistence.CachePriority.WARM)
-                .rangeScanAllowed(true)
-                .explicitCompressionBlockSizeKB(AtlasDbConstants.DEFAULT_TABLE_COMPRESSION_BLOCK_SIZE_KB)
-                .negativeLookups(true)
-                .sweepStrategy(TableMetadataPersistence.SweepStrategy.THOROUGH)
-                .appendHeavyAndReadLight(false)
-                .nameLogSafety(TableMetadataPersistence.LogSafety.SAFE)
-                .build()
-                .persistToBytes();
+    }
+
+    public static byte[] indexMetadata(ConflictHandler baseTableConflictHandler) {
+        return tableMetadata(toIndexConflictHandler(baseTableConflictHandler));
     }
 }u}(jH\ (cdafd0cea6d319a2cc5b488f7348f8f55229c3d8j\ aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javaj\ modifiedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ Xm  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -45,9 +46,12 @@ private DefaultWorkflow(
     }
 
     public static Workflow create(
-            TransactionStore store, KeyedTransactionTask transactionTask, WorkflowConfiguration configuration) {
+            TransactionStore store,
+            KeyedTransactionTask transactionTask,
+            WorkflowConfiguration configuration,
+            ListeningExecutorService executionExecutor) {
         return new DefaultWorkflow(
-                new ConcurrentTransactionRunner(store, configuration.executionExecutor()),
+                new ConcurrentTransactionRunner(store, executionExecutor),
                 transactionTask,
                 configuration,
                 new ReadOnlyTransactionStore(store));u}(jH\ (b4ee017980d3bf2f40b872865df3d113ba69f56bj\ gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RunOnceWorkflowRunner.javaj\ addedj\ K*j\ K j\ K*j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRunOnceWorkflowRunner.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRunOnceWorkflowRunner.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRunOnceWorkflowRunner.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+
+public enum RunOnceWorkflowRunner implements WorkflowRunner<Workflow> {
+    INSTANCE;
+
+    private static final SafeLogger log = SafeLoggerFactory.get(RunOnceWorkflowRunner.class);
+
+    @Override
+    public void run(Workflow workflow, List<InvariantReporter<?>> invariants) {
+        WorkflowHistory workflowHistory = workflow.run();
+        invariants.forEach(reporter -> {
+            try {
+                reporter.report(workflowHistory);
+            } catch (RuntimeException e) {
+                log.error("Caught an exception when running and reporting an invariant.", e);
+            }
+        });
+        log.info("Dumping transaction log {}", SafeArg.of("transactionLog", workflowHistory.history()));
+    }
+}u}(jH\ (64294ae949e876e90849cc856e5f5959e722f79aj\ xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javaj\ addedj\ K+j\ K j\ K+j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ XV  @@ -0,0 +1,43 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonTypeName(SingleRowTwoCellsWorkflowConfiguration.TYPE)
+public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "singleRowTwoCells";
+
+    TableConfiguration tableConfiguration();
+
+    @Value.Default
+    default double rateLimit() {
+        return 100;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jH\ (a051b9750921550bf6cef8e388f821ed91ce81c5j\ latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javaj\ addedj\ Kgj\ K j\ Kgj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -0,0 +1,103 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.Streams;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+
+/**
+ * Consider a single row in a database that has two cells, which should between them maintain the invariant that
+ * at most one cell has a value (this workflow is extremely common in AtlasDB Proxy). This workflow maintains
+ * concurrent transactions that read the row (both cells), and then sends an update to one of the cells and attempts
+ * to delete the other.
+ */
+public final class SingleRowTwoCellsWorkflows {
+    private static final int SINGLE_ROW = 1;
+    private static final int FIRST_COLUMN = 1;
+    private static final int SECOND_COLUMN = 2;
+
+    @VisibleForTesting
+    static final WorkloadCell FIRST_CELL = ImmutableWorkloadCell.of(SINGLE_ROW, FIRST_COLUMN);
+
+    @VisibleForTesting
+    static final WorkloadCell SECOND_CELL = ImmutableWorkloadCell.of(SINGLE_ROW, SECOND_COLUMN);
+
+    private SingleRowTwoCellsWorkflows() {
+        // static factory
+    }
+
+    public static Workflow createSingleRowTwoCell(
+            TransactionStore store,
+            SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, index) -> run(txnStore, index, singleRowTwoCellsWorkflowConfiguration),
+                singleRowTwoCellsWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    private static Optional<WitnessedTransaction> run(
+            TransactionStore store, int taskIndex, SingleRowTwoCellsWorkflowConfiguration workflowConfiguration) {
+        workflowConfiguration.transactionRateLimiter().acquire();
+
+        List<TransactionAction> transactionActions = createTransactionActions(
+                taskIndex, workflowConfiguration.tableConfiguration().tableName());
+        return store.readWrite(transactionActions);
+    }
+
+    @VisibleForTesting
+    static List<TransactionAction> createTransactionActions(int taskIndex, String tableName) {
+        List<TransactionAction> cellReads = createCellReadActions(tableName);
+        List<TransactionAction> cellUpdates = createCellUpdateActions(taskIndex, tableName);
+        return Streams.concat(cellReads.stream(), cellUpdates.stream(), cellReads.stream())
+                .collect(Collectors.toList());
+    }
+
+    @VisibleForTesting
+    static boolean shouldWriteToFirstCell(int taskIndex) {
+        return taskIndex % 2 == 0;
+    }
+
+    private static List<TransactionAction> createCellUpdateActions(int taskIndex, String tableName) {
+        return shouldWriteToFirstCell(taskIndex)
+                ? ImmutableList.of(
+                        WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
+                        DeleteTransactionAction.of(tableName, SECOND_CELL))
+                : ImmutableList.of(
+                        DeleteTransactionAction.of(tableName, FIRST_CELL),
+                        WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
+    }
+
+    private static List<TransactionAction> createCellReadActions(String tableName) {
+        return ImmutableList.of(
+                ReadTransactionAction.of(tableName, FIRST_CELL), ReadTransactionAction.of(tableName, SECOND_CELL));
+    }
+}u}(jH\ (54dd470d5e4868599f8d83ecf582c00fc31591dcj\ =atlasdb-workload-server/src/main/metrics/workload-metrics.ymlj\ addedj\ Kj\ K j\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Fmain%2Fmetrics%2Fworkload-metrics.ymlj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Fmain%2Fmetrics%2Fworkload-metrics.ymlj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fmetrics%2Fworkload-metrics.yml?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X4  @@ -0,0 +1,16 @@
+options:
+  javaPackage: 'com.palantir.atlasdb.workload'
+
+namespaces:
+  com.palantir.atlasdb.workload.invariant:
+    shortName: DurableWrites
+    docs: Metrics for the durable writes invariant.
+    metrics:
+      numberOfViolations:
+        type: counter
+        tags:
+          - workflow
+          - table
+        docs: >-
+          Number of cells that have a mismatching value from what we expect and what is actually there.
+          This includes cells which have been deleted and have re-appeared.
\ No newline at end of fileu}(jH\ (d23431ac2f81324533af6cc3914b2abc3a0b2e69j\ matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantTest.javaj\ modifiedj\ K
j\ K
j\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
-import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
@@ -60,12 +60,12 @@ public void cellsExpectedToBeDeletedAreFound() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
                 ImmutableWitnessedTransaction.builder()
-                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
                 ImmutableWitnessedTransaction.builder()
-                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO))
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .build());
@@ -74,11 +74,11 @@ public void cellsExpectedToBeDeletedAreFound() {
                 .transactionStore(store)
                 .build();
 
-        store.readWrite(List.of(WriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_ONE)));
+        store.readWrite(List.of(WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE)));
         DurableWritesInvariant.INSTANCE.accept(history, mismatchingCells::set);
         assertThat(mismatchingCells.get())
                 .containsExactlyInAnyOrderEntriesOf(Map.of(
-                        TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_TWO),
+                        TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO),
                         MismatchedValue.of(Optional.of(VALUE_ONE), Optional.empty())));
     }
 
@@ -87,12 +87,12 @@ public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
                 ImmutableWitnessedTransaction.builder()
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
                 ImmutableWitnessedTransaction.builder()
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_TWO))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .build());
@@ -102,12 +102,12 @@ public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
                 .build();
 
         store.readWrite(List.of(
-                WriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE),
-                WriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_ONE)));
+                WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
+                WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE)));
         DurableWritesInvariant.INSTANCE.accept(history, mismatchingCells::set);
         assertThat(mismatchingCells.get())
                 .containsExactlyInAnyOrderEntriesOf(Map.of(
-                        TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_TWO),
+                        TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO),
                         MismatchedValue.of(Optional.of(VALUE_ONE), Optional.of(VALUE_TWO))));
     }
 }u      }(jH\ (51f41ef65396c2c3af8a2123ae8817095f01bbc9j\ {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporterTest.javaj\ addedj\ K\j\ K j\ K\j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporterTest.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporterTest.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporterTest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -0,0 +1,92 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.workload.DurableWritesMetrics;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.store.IndexTable;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
+import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import org.junit.Test;
+
+public final class DurableWritesMetricInvariantReporterTest {
+
+    private final TaggedMetricRegistry taggedMetricRegistry = new DefaultTaggedMetricRegistry();
+    private final DurableWritesMetrics metrics = DurableWritesMetrics.of(taggedMetricRegistry);
+
+    @Test
+    public void runIncreasesMetricsIfViolationsFound() {
+        DurableWritesMetricInvariantReporter reporter =
+                new DurableWritesMetricInvariantReporter(WorkloadTestHelpers.WORKFLOW, metrics);
+        AtlasDbTransactionStoreFactory factory = new AtlasDbTransactionStoreFactory(
+                TransactionManagers.createInMemory(Set.of()), Optional.of("keyspace"));
+        TransactionStore store = factory.create(
+                Map.of(
+                        WorkloadTestHelpers.TABLE_1,
+                        IsolationLevel.SERIALIZABLE,
+                        WorkloadTestHelpers.TABLE_2,
+                        IsolationLevel.SERIALIZABLE),
+                Set.of(IndexTable.builder()
+                        .indexTableName(WorkloadTestHelpers.TABLE_1_INDEX_1)
+                        .primaryTableName(WorkloadTestHelpers.TABLE_1)
+                        .build()));
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .transactionStore(store)
+                .history(List.of(ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .addActions(WitnessedWriteTransactionAction.of(
+                                WorkloadTestHelpers.TABLE_1,
+                                WorkloadTestHelpers.WORKLOAD_CELL_ONE,
+                                WorkloadTestHelpers.VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(
+                                WorkloadTestHelpers.TABLE_2,
+                                WorkloadTestHelpers.WORKLOAD_CELL_ONE,
+                                WorkloadTestHelpers.VALUE_ONE))
+                        .build()))
+                .build();
+        reporter.report(workflowHistory);
+        assertThat(getViolationCount(WorkloadTestHelpers.WORKFLOW, WorkloadTestHelpers.TABLE_1))
+                .isEqualTo(1);
+        assertThat(getViolationCount(WorkloadTestHelpers.WORKFLOW, WorkloadTestHelpers.TABLE_2))
+                .isEqualTo(1);
+        assertThat(getViolationCount(WorkloadTestHelpers.WORKFLOW, WorkloadTestHelpers.TABLE_1_INDEX_1))
+                .isEqualTo(0);
+    }
+
+    private long getViolationCount(String workflow, String table) {
+        return metrics.numberOfViolations()
+                .workflow(workflow)
+                .table(table)
+                .build()
+                .getCount();
+    }
+}u}(jH\ (f9527e173d1407deb811ea00448699afa0a4afd1j\ iatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/server/RunOnceWorkflowRunnerTest.javaj\ addedj\ K.j\ K j\ K.j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X0  @@ -0,0 +1,46 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.server;
+
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.times;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
+
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.workflow.RunOnceWorkflowRunner;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.List;
+import org.junit.Test;
+
+public class RunOnceWorkflowRunnerTest {
+    @Test
+    public void runExecutesWorkflowsAndInvokesInvariantReporter() {
+        Workflow exampleWorkflow = mock(Workflow.class);
+        WorkflowHistory workflowHistory = mock(WorkflowHistory.class);
+        when(exampleWorkflow.run()).thenReturn(workflowHistory);
+        InvariantReporter<Void> exampleInvariantReporterOne = mock(InvariantReporter.class);
+        InvariantReporter<Void> exampleInvariantReporterTwo = mock(InvariantReporter.class);
+        RunOnceWorkflowRunner.INSTANCE.run(
+                exampleWorkflow, List.of(exampleInvariantReporterOne, exampleInvariantReporterTwo));
+        verify(exampleWorkflow, times(1)).run();
+        verify(exampleInvariantReporterOne, times(1)).report(any());
+        verify(exampleInvariantReporterTwo, times(1)).report(any());
+    }
+}u}(jH\ (fa2b7e0a76d3a58878ebde01fd053f11ba48b28cj\ qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactoryTest.javaj\ addedj\ Kj\ K j\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactoryTest.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactoryTest.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactoryTest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X@#  @@ -0,0 +1,164 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.logsafe.SafeArg;
+import java.util.Locale;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import org.junit.Test;
+
+public final class AtlasDbTransactionStoreFactoryTest {
+
+    private final TransactionManager transactionManager = TransactionManagers.createInMemory(Set.of());
+    private final AtlasDbTransactionStoreFactory defaultFactory =
+            new AtlasDbTransactionStoreFactory(transactionManager, Optional.empty());
+
+    @Test
+    public void createWillCreateProvidedTablesAndIndexes() {
+        AtlasDbTransactionStoreFactory factory = new AtlasDbTransactionStoreFactory(
+                transactionManager,
+                Optional.of(WorkloadTestHelpers.TABLE_REFERENCE.getNamespace().getName()));
+        factory.create(
+                Map.of(WorkloadTestHelpers.TABLE_1, IsolationLevel.SERIALIZABLE),
+                Set.of(createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_1)));
+        assertThat(transactionManager.getKeyValueService().getAllTableNames())
+                .contains(WorkloadTestHelpers.TABLE_REFERENCE, WorkloadTestHelpers.INDEX_REFERENCE);
+    }
+
+    @Test
+    public void createTableReferenceWithEmptyNamespaceIfNoNamespaceProvided() {
+        assertThat(defaultFactory
+                        .createTableReference(WorkloadTestHelpers.TABLE_1)
+                        .getNamespace()
+                        .isEmptyNamespace())
+                .isTrue();
+    }
+
+    @Test
+    public void createTableReferenceHasNamespaceWhenProvided() {
+        AtlasDbTransactionStoreFactory factory = new AtlasDbTransactionStoreFactory(
+                transactionManager, Optional.of(WorkloadTestHelpers.NAMESPACE.getName()));
+        assertThat(factory.createTableReference(WorkloadTestHelpers.TABLE_1).getNamespace())
+                .isEqualTo(WorkloadTestHelpers.NAMESPACE);
+    }
+
+    @Test
+    public void toAtlasTablesConvertsSerializableTablesCorrectly() {
+        assertThat(defaultFactory.toAtlasTables(
+                        Map.of(WorkloadTestHelpers.TABLE_1, IsolationLevel.SERIALIZABLE), Set.of()))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1),
+                        AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
+    }
+
+    @Test
+    public void toAtlasTablesConvertsSerializableIndexTablesCorrectly() {
+        assertThat(defaultFactory.toAtlasTables(
+                        Map.of(WorkloadTestHelpers.TABLE_1, IsolationLevel.SERIALIZABLE),
+                        Set.of(createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_1))))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1),
+                        AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1_INDEX_1),
+                        AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE)));
+    }
+
+    @Test
+    public void toAtlasTablesHandlesMultipleTablesAndIndexesCorrectly() {
+        assertThat(defaultFactory.toAtlasTables(
+                        Map.of(
+                                WorkloadTestHelpers.TABLE_1,
+                                IsolationLevel.SERIALIZABLE,
+                                WorkloadTestHelpers.TABLE_2,
+                                IsolationLevel.SNAPSHOT),
+                        Set.of(
+                                createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_1),
+                                createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_2, WorkloadTestHelpers.TABLE_1),
+                                createIndexTable(WorkloadTestHelpers.TABLE_2_INDEX_1, WorkloadTestHelpers.TABLE_2))))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1),
+                        AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1_INDEX_1),
+                        AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1_INDEX_2),
+                        AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_2),
+                        AtlasDbUtils.tableMetadata(ConflictHandler.RETRY_ON_WRITE_WRITE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_2_INDEX_1),
+                        AtlasDbUtils.tableMetadata(ConflictHandler.IGNORE_ALL)));
+    }
+
+    @Test
+    public void throwsWhenIndexReferencesUnknownPrimaryTable() {
+        IndexTable goodIndexTable = createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_2, WorkloadTestHelpers.TABLE_1);
+        IndexTable badIndexTable = createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, "blah");
+        assertThatLoggableExceptionThrownBy(() -> defaultFactory.create(
+                        Map.of(WorkloadTestHelpers.TABLE_1, IsolationLevel.SERIALIZABLE),
+                        Set.of(goodIndexTable, badIndexTable)))
+                .hasMessageContaining("Found indexes which reference an unknown primary table")
+                .hasExactlyArgs(SafeArg.of("indexesWithUnknownPrimaryTables", Set.of(badIndexTable)));
+    }
+
+    @Test
+    public void throwsWhenPrimaryAndIndexTableHaveConflictingNames() {
+        assertThatLoggableExceptionThrownBy(() -> defaultFactory.create(
+                        Map.of(
+                                WorkloadTestHelpers.TABLE_1,
+                                IsolationLevel.SERIALIZABLE,
+                                WorkloadTestHelpers.TABLE_1_INDEX_1,
+                                IsolationLevel.SERIALIZABLE),
+                        Set.of(createIndexTable(
+                                WorkloadTestHelpers.TABLE_1.toUpperCase(Locale.ROOT),
+                                WorkloadTestHelpers.TABLE_1_INDEX_1))))
+                .hasMessageContaining("Found indexes which have the same name as primary tables")
+                .hasExactlyArgs(SafeArg.of("conflictingTableNames", Set.of(WorkloadTestHelpers.TABLE_1)));
+    }
+
+    @Test
+    public void throwsWhenIndexTablesHaveDuplicateNames() {
+        assertThatLoggableExceptionThrownBy(() -> defaultFactory.create(
+                        Map.of(
+                                WorkloadTestHelpers.TABLE_1,
+                                IsolationLevel.SERIALIZABLE,
+                                WorkloadTestHelpers.TABLE_2,
+                                IsolationLevel.SERIALIZABLE),
+                        Set.of(
+                                createIndexTable(
+                                        WorkloadTestHelpers.TABLE_1_INDEX_1.toUpperCase(Locale.ROOT),
+                                        WorkloadTestHelpers.TABLE_1),
+                                createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_2))))
+                .hasMessageContaining("Found index tables with the same name")
+                .hasExactlyArgs(SafeArg.of("duplicateTableIndexNames", Set.of(WorkloadTestHelpers.TABLE_1_INDEX_1)));
+    }
+
+    private IndexTable createIndexTable(String indexTableName, String primaryTableName) {
+        return IndexTable.builder()
+                .indexTableName(indexTableName)
+                .primaryTableName(primaryTableName)
+                .build();
+    }
+}u}(jH\ (3ebff159b66faf4e21287665a710c5af8e995ae5j\ jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj\ modifiedj\ Kj\ Kj\ K"j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -17,8 +17,8 @@
 package com.palantir.atlasdb.workload.store;
 
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.INDEX_REFERENCE;
-import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.INDEX_TABLE;
-import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1_INDEX_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
@@ -79,23 +79,23 @@ public void createsTables() {
     @Test
     public void canWriteDataToStore() {
         Optional<WitnessedTransaction> witnessedTransactionPrimaryTable =
-                store.readWrite(List.of(WriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE)));
+                store.readWrite(List.of(WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE)));
         Optional<WitnessedTransaction> witnessedTransactionIndexTable =
-                store.readWrite(List.of(WriteTransactionAction.of(INDEX_TABLE, WORKLOAD_CELL_TWO, VALUE_ONE)));
+                store.readWrite(List.of(WriteTransactionAction.of(TABLE_1_INDEX_1, WORKLOAD_CELL_TWO, VALUE_ONE)));
         assertThat(witnessedTransactionPrimaryTable).isPresent();
         assertThat(witnessedTransactionIndexTable).isPresent();
-        assertThat(store.get(TABLE, WORKLOAD_CELL_ONE)).contains(VALUE_ONE);
-        assertThat(store.get(INDEX_TABLE, WORKLOAD_CELL_TWO)).contains(VALUE_ONE);
+        assertThat(store.get(TABLE_1, WORKLOAD_CELL_ONE)).contains(VALUE_ONE);
+        assertThat(store.get(TABLE_1_INDEX_1, WORKLOAD_CELL_TWO)).contains(VALUE_ONE);
     }
 
     @Test
     public void witnessedTransactionMaintainsOrder() {
         List<WitnessedTransactionAction> actions = List.of(
-                WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, 100),
-                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, Optional.of(100)),
-                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL_THREE, Optional.empty()),
-                WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, 24),
-                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, Optional.of(24)));
+                WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, 100),
+                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, Optional.of(100)),
+                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_THREE, Optional.empty()),
+                WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, 24),
+                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(24)));
         Optional<WitnessedTransaction> maybeTransaction = store.readWrite(actions.stream()
                 .map(action -> action.accept(WitnessToActionVisitor.INSTANCE))
                 .collect(Collectors.toList()));
@@ -107,16 +107,16 @@ public void witnessedTransactionMaintainsOrder() {
 
     @Test
     public void readWriteHandlesAllTransactionTypes() {
-        store.readWrite(List.of(WriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE)));
-        assertThat(store.readWrite(List.of(ReadTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))))
+        store.readWrite(List.of(WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE)));
+        assertThat(store.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isPresent()
                 .map(WitnessedTransaction::actions)
                 .map(Iterables::getOnlyElement)
                 .map(WitnessedReadTransactionAction.class::cast)
                 .map(WitnessedReadTransactionAction::value)
                 .contains(Optional.of(VALUE_ONE));
-        store.readWrite(List.of(DeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE)));
-        assertThat(store.get(TABLE, WORKLOAD_CELL_ONE)).isEmpty();
+        store.readWrite(List.of(DeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
+        assertThat(store.get(TABLE_1, WORKLOAD_CELL_ONE)).isEmpty();
     }
 
     @Test
@@ -134,14 +134,14 @@ public void readWriteReturnsEmptyWhenExceptionThrown() {
         when(transactionManager.runTaskWithRetry(any())).thenThrow(new RuntimeException());
         AtlasDbTransactionStore transactionStore = AtlasDbTransactionStore.create(
                 transactionManager, Map.of(TABLE_REFERENCE, AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
-        assertThat(transactionStore.readWrite(List.of(ReadTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))))
+        assertThat(transactionStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isEmpty();
     }
 
     @Test
     public void readWriteHandlesReadOnlyTransaction() {
         Optional<WitnessedTransaction> witnessedTransaction =
-                store.readWrite(List.of(ReadTransactionAction.of(TABLE, WORKLOAD_CELL_ONE)));
+                store.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
         assertThat(witnessedTransaction).isPresent();
         assertThat(witnessedTransaction.get().commitTimestamp()).isEmpty();
     }u}(jH\ (304e65e341fff032a9ecbda7327c1b4af412990ej\ patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javaj\ modifiedj\ K	j\ K	j\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_ONE;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_TWO;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
@@ -42,12 +42,12 @@ public void writeActionsPersistValues() {
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_TWO))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
                         .build()));
         assertThat(store.values().toJavaMap())
                 .containsExactlyInAnyOrderEntriesOf(Map.of(
@@ -63,13 +63,13 @@ public void deleteActionsPutsEmptyOptionalForCell() {
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE))
                         .build(),
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
-                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .build()));
         assertThat(store.values().toJavaMap())
                 .containsExactlyInAnyOrderEntriesOf(Map.of(
@@ -82,17 +82,17 @@ public void writesDeletesAreProcessedInOrder() {
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
-                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .build(),
                 ImmutableWitnessedTransaction.builder()
                         .startTimestamp(5)
                         .commitTimestamp(6)
-                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_TWO))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_TWO))
                         .build()));
         assertThat(store.values().toJavaMap())
                 .containsExactlyInAnyOrderEntriesOf(Map.of(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_TWO)));u}(jH\ (955d7f7215e9fbbffa22ce353aa014fca3e1849cj\ hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javaj\ modifiedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -23,19 +23,27 @@
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 
 public final class WorkloadTestHelpers {
-    public static final String TABLE = "foo";
-    public static final String INDEX_TABLE = TABLE + "_index";
-    public static final TableReference TABLE_REFERENCE = TableReference.create(Namespace.DEFAULT_NAMESPACE, TABLE);
+    public static final String TABLE_1 = "foo";
+
+    public static final String TABLE_2 = "bar";
+    public static final String TABLE_1_INDEX_1 = TABLE_1 + "_index";
+
+    public static final String TABLE_1_INDEX_2 = TABLE_1 + "_index_2";
+    public static final String TABLE_2_INDEX_1 = TABLE_2 + "_index";
+    public static final TableReference TABLE_REFERENCE = TableReference.create(Namespace.DEFAULT_NAMESPACE, TABLE_1);
     public static final TableReference INDEX_REFERENCE =
-            TableReference.create(TABLE_REFERENCE.getNamespace(), INDEX_TABLE);
+            TableReference.create(TABLE_REFERENCE.getNamespace(), TABLE_1_INDEX_1);
+
+    public static final Namespace NAMESPACE = Namespace.create("workload");
     public static final WorkloadCell WORKLOAD_CELL_ONE = ImmutableWorkloadCell.of(50, 10);
     public static final WorkloadCell WORKLOAD_CELL_TWO = ImmutableWorkloadCell.of(1257, 521);
     public static final WorkloadCell WORKLOAD_CELL_THREE =
             ImmutableWorkloadCell.builder().key(567).column(405234).build();
     public static final Integer VALUE_ONE = 541;
     public static final Integer VALUE_TWO = 334;
     public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_ONE =
-            TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_ONE);
+            TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_ONE);
     public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
-            TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_TWO);
+            TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO);
+    public static final String WORKFLOW = "example-workflow";
 }u}(jH\ (c09467b6d6f4e762d6c4c365ffa0ba54a464e80ej\ ^atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/util/AtlasDbUtilsTest.javaj\ modifiedj\ K	j\ K j\ K	j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtilsTest.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtilsTest.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtilsTest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -21,6 +21,7 @@
 import com.google.protobuf.InvalidProtocolBufferException;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
 import org.junit.Test;
 
 public class AtlasDbUtilsTest {
@@ -43,4 +44,12 @@ public void indexMetadataUsesTheCorrectConflictHandler() throws InvalidProtocolB
                         .getConflictHandler())
                 .isEqualTo(TableMetadataPersistence.TableConflictHandler.IGNORE_ALL);
     }
+
+    @Test
+    public void toConflictHandlerHandlesAllIsolationLevelCases() {
+        assertThat(AtlasDbUtils.toConflictHandler(IsolationLevel.NONE)).isEqualTo(ConflictHandler.IGNORE_ALL);
+        assertThat(AtlasDbUtils.toConflictHandler(IsolationLevel.SNAPSHOT))
+                .isEqualTo(ConflictHandler.RETRY_ON_WRITE_WRITE);
+        assertThat(AtlasDbUtils.toConflictHandler(IsolationLevel.SERIALIZABLE)).isEqualTo(ConflictHandler.SERIALIZABLE);
+    }
 }u}(jH\ (74c98c744a224ef0887b3c37e94c7aaff43a4feej\ eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javaj\ modifiedj\ K
j\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X(  @@ -24,6 +24,7 @@
 import static org.mockito.Mockito.when;
 
 import com.google.common.collect.ImmutableList;
+import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
@@ -38,13 +39,15 @@ public class DefaultWorkflowTest {
     private final KeyedTransactionTask transactionTask = mock(KeyedTransactionTask.class);
 
     private final ScheduledExecutorService scheduler = PTExecutors.newSingleThreadScheduledExecutor();
+    private final ListeningExecutorService executionExecutor = MoreExecutors.listeningDecorator(scheduler);
 
     @Test
     public void handlesExceptionsInUnderlyingTasks() {
         RuntimeException transactionException = new RuntimeException("boo");
         when(transactionTask.apply(eq(store), anyInt())).thenThrow(transactionException);
 
-        Workflow workflow = DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2));
+        Workflow workflow =
+                DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
         assertThatThrownBy(workflow::run)
                 .hasMessage("Error when running workflow task")
                 .hasCause(transactionException);
@@ -99,10 +102,12 @@ public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
     }
 
     private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
-        return ImmutableWorkflowConfiguration.builder()
-                .iterationCount(iterationCount)
-                .executionExecutor(MoreExecutors.listeningDecorator(scheduler))
-                .build();
+        return new WorkflowConfiguration() {
+            @Override
+            public int iterationCount() {
+                return iterationCount;
+            }
+        };
     }
 
     private static WitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {u}(jH\ (9f49c914b405f0e6c73f59a556f42bf3df6f83c6j\ |atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfigurationTest.javaj\ addedj\ KHj\ K j\ KHj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfigurationTest.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfigurationTest.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfigurationTest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -0,0 +1,72 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.google.common.util.concurrent.RateLimiter;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import org.junit.Test;
+
+public class SingleRowTwoCellsWorkflowConfigurationTest {
+    private static final TableConfiguration TABLE_CONFIGURATION = ImmutableTableConfiguration.builder()
+            .tableName(WorkloadTestHelpers.TABLE_1)
+            .isolationLevel(IsolationLevel.SERIALIZABLE)
+            .build();
+    private static final ObjectMapper OBJECT_MAPPER = ObjectMappers.newServerObjectMapper();
+
+    static {
+        OBJECT_MAPPER.registerSubtypes(SingleRowTwoCellsWorkflowConfiguration.class);
+    }
+
+    @Test
+    public void rateLimiterCreatedWithConfiguredNumberOfPermits() {
+        SingleRowTwoCellsWorkflowConfiguration configuration = createWithRateLimit(Double.MIN_NORMAL);
+        RateLimiter rateLimiter = configuration.transactionRateLimiter();
+        assertThat(rateLimiter.tryAcquire()).isTrue();
+        assertThat(rateLimiter.tryAcquire())
+                .as("the rate limiter granted two requests, but was not configured to accept more than one every"
+                        + " ~2.2 * 10^308 seconds")
+                .isFalse();
+    }
+
+    @Test
+    public void deserializationIsInverseOfSerialization() throws JsonProcessingException {
+        SingleRowTwoCellsWorkflowConfiguration configuration = createWithRateLimit(5);
+        assertThat(OBJECT_MAPPER.readValue(
+                        OBJECT_MAPPER.writeValueAsString(configuration), WorkflowConfiguration.class))
+                .isEqualTo(configuration);
+    }
+
+    @Test
+    public void rateLimitAccountedForInSerializedForm() throws JsonProcessingException {
+        assertThat(OBJECT_MAPPER.writeValueAsString(createWithRateLimit(10)))
+                .isNotEqualTo(OBJECT_MAPPER.writeValueAsString(createWithRateLimit(20)));
+    }
+
+    private static SingleRowTwoCellsWorkflowConfiguration createWithRateLimit(double rateLimit) {
+        return ImmutableSingleRowTwoCellsWorkflowConfiguration.builder()
+                .tableConfiguration(TABLE_CONFIGURATION)
+                .rateLimit(rateLimit)
+                .iterationCount(10)
+                .build();
+    }
+}u}(jH\ (4bc5be54fe26532ca6b52d1b18be46aa4b43832dj\ patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javaj\ addedj\ Kj\ K j\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X   @@ -0,0 +1,135 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Optional;
+import org.junit.Test;
+
+public class SingleRowTwoCellsWorkflowsTest {
+    private static final String TABLE_NAME = "my.coffee";
+    private static final SingleRowTwoCellsWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleRowTwoCellsWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .rateLimit(Double.MAX_VALUE)
+                    .iterationCount(1)
+                    .build();
+
+    @Test
+    public void shouldWriteToFirstCellOnEvenIndices() {
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(0)).isTrue();
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(2)).isTrue();
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(24682468)).isTrue();
+    }
+
+    @Test
+    public void shouldNotWriteToFirstCellOnOddIndices() {
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(1)).isFalse();
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(3)).isFalse();
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(35793579)).isFalse();
+    }
+
+    @Test
+    public void createsReadsThenMutationsThenReads() {
+        assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(0, TABLE_NAME))
+                .containsExactly(
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
+                        DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+        assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(1, TABLE_NAME))
+                .containsExactly(
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, 1),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+    }
+
+    @Test
+    public void writesValueCorrespondingToTaskIndexInRelevantCell() {
+        assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(31415926, TABLE_NAME))
+                .containsExactly(
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 31415926),
+                        DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+        assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(6021023, TABLE_NAME))
+                .containsExactly(
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, 6021023),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+    }
+
+    @Test
+    public void workflowHistoryPreservesStoreAndCapturesWitnessedActions() {
+        TransactionStore memoryStore = AtlasDbTransactionStore.create(
+                TransactionManagers.createInMemory(ImmutableSet.of()),
+                ImmutableMap.of(
+                        TableReference.createWithEmptyNamespace(TABLE_NAME),
+                        AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+        WorkflowHistory history = SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
+                        memoryStore, CONFIGURATION, MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)))
+                .run();
+
+        assertThat(history.transactionStore())
+                .as("should return a read only tranasction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+        assertThat(Iterables.getOnlyElement(history.history()).actions())
+                .containsExactly(
+                        WitnessedReadTransactionAction.of(
+                                TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.empty()),
+                        WitnessedReadTransactionAction.of(
+                                TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()),
+                        WitnessedWriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
+                        WitnessedDeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        WitnessedReadTransactionAction.of(
+                                TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.of(0)),
+                        WitnessedReadTransactionAction.of(
+                                TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()));
+    }
+}u}(jH\ (8c1cc271703d6463e9929de5c8dbbfdc1f9403f8j\ build.gradlej\ modifiedj\ Kj\ Kj\ Kj\ ^https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/build.gradlej\ ]https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/build.gradlej\ phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -7,18 +7,18 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.0.1'
-        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.0.0'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.0'
+        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.2.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:5.0.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.34.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.38.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
-        classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.11.0'
-        classpath 'com.palantir.gradle.gitversion:gradle-git-version:1.0.0'
-        classpath 'com.palantir.gradle.jdks:gradle-jdks:0.31.0'
+        classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
+        classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
+        classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'
-        classpath 'com.palantir.metricschema:gradle-metric-schema:0.19.0'
+        classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
         classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'u}(jH\ (146eafaef341f53b563527d249d44fac28f8c6d9j\  changelog/0.813.0/pr-6471.v2.ymlj\ addedj\ Kj\ K j\ Kj\ vhttps://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/changelog%2F0.813.0%2Fpr-6471.v2.ymlj\ uhttps://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/changelog%2F0.813.0%2Fpr-6471.v2.ymlj\ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.813.0%2Fpr-6471.v2.yml?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Adds interfaces to the workload server which makes integration with
+    dropwizard or other server frameworks.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6471u}(jH\ (910ff9b18328d5969f5dbcc3ae9411d1bcb02878j\  changelog/0.814.0/pr-6473.v2.ymlj\ addedj\ Kj\ K j\ Kj\ vhttps://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/changelog%2F0.814.0%2Fpr-6473.v2.ymlj\ uhttps://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/changelog%2F0.814.0%2Fpr-6473.v2.ymlj\ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.814.0%2Fpr-6473.v2.yml?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: When no Cassandra hosts are available, AtlasDB throws `AtlasDbDependencyException`
+    instead of `SafeIllegalStateException`.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6473u}(jH\ (3309c1d1cee08ce85d9ae1b7416b9cc06ad14e0fj\  changelog/0.816.0/pr-6474.v2.ymlj\ addedj\ Kj\ K j\ Kj\ vhttps://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/changelog%2F0.816.0%2Fpr-6474.v2.ymlj\ uhttps://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/changelog%2F0.816.0%2Fpr-6474.v2.ymlj\ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.816.0%2Fpr-6474.v2.yml?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ @@ -0,0 +1,5 @@
+type: feature
+feature:
+  description: Add getActiveNamespaces endpoint
+  links:
+  - https://github.com/palantir/atlasdb/pull/6474u}(jH\ (7a46efe502264df936f40615fb54393461e5d277j\  changelog/0.820.0/pr-6475.v2.ymlj\ addedj\ Kj\ K j\ Kj\ vhttps://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/changelog%2F0.820.0%2Fpr-6475.v2.ymlj\ uhttps://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/changelog%2F0.820.0%2Fpr-6475.v2.ymlj\ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.820.0%2Fpr-6475.v2.yml?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ @@ -0,0 +1,5 @@
+type: feature
+feature:
+  description: '[TEX] Wrap KVS service reads and track bytes read (no metrics)'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6475u}(jH\ (1982907aadb718672df6cccb587875586f7006c9j\  changelog/0.823.0/pr-6485.v2.ymlj\ addedj\ Kj\ K j\ Kj\ vhttps://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/changelog%2F0.823.0%2Fpr-6485.v2.ymlj\ uhttps://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/changelog%2F0.823.0%2Fpr-6485.v2.ymlj\ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.823.0%2Fpr-6485.v2.yml?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Asynchronous initialisation now logs when the initialisation an individual
+    object starts, as well as when the executor is shutdown.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6485u}(jH\ (b6ee9b4dfa1da170c4c398511447a1f49d7e82b7j\  changelog/0.824.0/pr-6489.v2.ymlj\ addedj\ Kj\ K j\ Kj\ vhttps://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/changelog%2F0.824.0%2Fpr-6489.v2.ymlj\ uhttps://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/changelog%2F0.824.0%2Fpr-6489.v2.ymlj\ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.824.0%2Fpr-6489.v2.yml?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Oracle tables (including overflow) will be created with PCTFREE 0.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6489u}(jH\ (362f242519ecfa9cf598fb9dcff80dc55b91c4b9j\  changelog/0.826.0/pr-6496.v2.ymlj\ addedj\ Kj\ K j\ Kj\ vhttps://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/changelog%2F0.826.0%2Fpr-6496.v2.ymlj\ uhttps://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/changelog%2F0.826.0%2Fpr-6496.v2.ymlj\ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.826.0%2Fpr-6496.v2.yml?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ @@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: Upgraded Postgres from 42.4.1 -> 42.4.3 to resolve a CVE.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6496u}(jH\ (d950412e3468eb3c6435b88c85e31c8234c831c5j\  changelog/0.828.0/pr-6488.v2.ymlj\ addedj\ Kj\ K j\ Kj\ vhttps://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/changelog%2F0.828.0%2Fpr-6488.v2.ymlj\ uhttps://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/changelog%2F0.828.0%2Fpr-6488.v2.ymlj\ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.828.0%2Fpr-6488.v2.yml?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Improve Sqlite namespace loader implementation
+  links:
+  - https://github.com/palantir/atlasdb/pull/6488u}(jH\ (5f61b2bef5ebfcacc253aaa5cda9840887460417j\  changelog/0.829.0/pr-6499.v2.ymlj\ addedj\ Kj\ K j\ Kj\ vhttps://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/changelog%2F0.829.0%2Fpr-6499.v2.ymlj\ uhttps://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/changelog%2F0.829.0%2Fpr-6499.v2.ymlj\ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.829.0%2Fpr-6499.v2.yml?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Disable AtlasDB DB connection testing by default in favor of relying
+    on Hikari's connection testing.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6499u}(jH\ (88bd214a5821cbc0c51c4de2bb7212dc6f8ae78cj\ Nleader-election-impl/src/main/java/com/palantir/paxos/SqlitePaxosStateLog.javaj\ modifiedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FSqlitePaxosStateLog.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FSqlitePaxosStateLog.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FSqlitePaxosStateLog.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -17,8 +17,8 @@
 package com.palantir.paxos;
 
 import com.palantir.common.persist.Persistable;
+import java.util.Optional;
 import java.util.OptionalLong;
-import java.util.Set;
 import java.util.function.Function;
 import javax.sql.DataSource;
 import org.jdbi.v3.core.Jdbi;
@@ -138,7 +138,9 @@ <V extends Persistable & Versionable> boolean[] writeBatchOfRounds(
                 @Bind("useCase") String useCase,
                 @BindPojo("round") Iterable<PaxosRound<V>> rounds);
 
-        @SqlQuery("SELECT DISTINCT(namespace) FROM paxosLog")
-        Set<String> getAllNamespaces();
+        // This is performant as long as the query plan is SEARCH.
+        @SqlQuery("SELECT MIN(namespace) FROM paxosLog WHERE namespace > :maybeLastReadNamespace")
+        Optional<String> getNextLexicographicallySmallestNamespace(
+                @Bind("maybeLastReadNamespace") String maybeLastReadNamespace);
     }
 }u}(jH\ (30ae8194254f4d9e5df10537828fed52ef8a5635j\ settings.gradlej\ modifiedj\ Kj\ K j\ Kj\ ahttps://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/settings.gradlej\ `https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/settings.gradlej\ shttps://api.github.com/repos/palantir/atlasdb/contents/settings.gradle?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ XH  @@ -31,6 +31,8 @@ include ":atlasdb-service"
 include ":atlasdb-tests-shared"
 include ":atlasdb-workload-server"
 include ":atlasdb-workload-server-api"
+include ":atlasdb-workload-server-distribution"
+include ":atlasdb-workload-server-antithesis"
 include ":commons-annotations"
 include ":commons-api"
 include ":commons-db"u}(jH\ (c197825eb345ab238d541f81b6461fa6f76f3729j\ \timelock-agent/src/test/java/com/palantir/atlasdb/timelock/paxos/PaxosRemoteClientsTest.javaj\ modifiedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosRemoteClientsTest.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosRemoteClientsTest.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosRemoteClientsTest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X?  @@ -42,32 +42,33 @@
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.TemporaryFolder;
+import org.junit.runner.RunWith;
+import org.mockito.junit.MockitoJUnitRunner;
 
+@RunWith(MockitoJUnitRunner.class)
 @SuppressWarnings("DangerousIdentityKey")
 public class PaxosRemoteClientsTest {
     @Rule
     public final TemporaryFolder temporaryFolder = new TemporaryFolder();
 
-    private PaxosInstallConfiguration paxosInstallConfiguration;
-    private TimeLockInstallConfiguration installConfiguration;
     private PaxosResourcesFactory.TimelockPaxosInstallationContext context;
 
     @Before
     public void setUp() {
-        paxosInstallConfiguration = PaxosInstallConfiguration.builder()
+        PaxosInstallConfiguration paxosInstallConfiguration = PaxosInstallConfiguration.builder()
                 .isNewService(false)
                 .dataDirectory(temporaryFolder.getRoot())
                 .sqlitePersistence(SqlitePaxosPersistenceConfigurations.DEFAULT)
                 .leaderMode(PaxosInstallConfiguration.PaxosLeaderMode.SINGLE_LEADER)
                 .build();
-        installConfiguration = TimeLockInstallConfiguration.builder()
+        TimeLockInstallConfiguration installConfiguration = TimeLockInstallConfiguration.builder()
                 .paxos(paxosInstallConfiguration) // Normally awful, but too onerous to set up
                 .timestampBoundPersistence(
                         ImmutablePaxosTsBoundPersisterConfiguration.builder().build())
                 .build();
         TimeLockDialogueServiceProvider dialogueServiceProvider = mock(TimeLockDialogueServiceProvider.class);
         when(dialogueServiceProvider.createSingleNodeInstrumentedProxy(anyString(), any(), anyBoolean()))
-                .thenAnswer(invocation -> mock(invocation.getArgument(1)));
+                .thenAnswer(invocation -> mock(invocation.<Class<?>>getArgument(1)));
         context = ImmutableTimelockPaxosInstallationContext.builder()
                 .install(installConfiguration)
                 .cluster(ImmutableDefaultClusterConfiguration.builder()u}(jH\ (81f2ab027cd69727dec27f2b9a0f6a7d1ad868b2j\ 9timelock-api/src/main/conjure/timelock-management-api.ymlj\ modifiedj\ K	j\ Kj\ K
j\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymlj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymlj\ https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.yml?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31      j\ X  @@ -10,7 +10,15 @@ services:
         returns: set<string>
         docs: |
           The endpoint loads all persisted namespaces. ``leaderPaxos`` is filtered out from the set
-          as it is not a namespace.
+          as it is not a namespace. No transactionality guarantees are given: namespace additions and
+          deletions while the request is running may or may not be reflected in the output.
+
+      getActiveNamespaces:
+        http: POST /getActiveNamespaces
+        returns: set<string>
+        docs: |
+          The endpoint loads all namespaces with new timestamps since the last restart. 
+          ``leaderPaxos`` is filtered out from the set as it is not a namespace.
 
       achieveConsensus:
         http: POST /achieveConsensusu}(jH\ (f51d42df113edf4565c16d14a214a1259f59b6ecj\ ctimelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/PersistentNamespaceLoader.javaj\ modifiedj\ Kj\ K j\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FPersistentNamespaceLoader.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FPersistentNamespaceLoader.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FPersistentNamespaceLoader.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -22,6 +22,8 @@
 public interface PersistentNamespaceLoader {
     /**
      * Gets all namespaces that have been persisted (via the persistence method under question).
+     * No transactionality guarantees are given: namespace additions and deletions while the
+     * request is running may or may not be reflected in the output.
      */
     Set<Client> getAllPersistedNamespaces();
 }u}(jH\ (9fe3888160a6f9940e4ac562b73f4e9b808e9a3cj\ _timelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/SqliteNamespaceLoader.javaj\ modifiedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FSqliteNamespaceLoader.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FSqliteNamespaceLoader.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FSqliteNamespaceLoader.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X7  @@ -18,13 +18,16 @@
 
 import com.palantir.paxos.Client;
 import com.palantir.paxos.SqlitePaxosStateLog;
+import java.util.HashSet;
+import java.util.Optional;
 import java.util.Set;
-import java.util.stream.Collectors;
 import javax.sql.DataSource;
 import org.jdbi.v3.core.Jdbi;
 import org.jdbi.v3.sqlobject.SqlObjectPlugin;
 
 final class SqliteNamespaceLoader implements PersistentNamespaceLoader {
+    private static final String EMPTY_STRING = "";
+
     private final Jdbi jdbi;
 
     private SqliteNamespaceLoader(Jdbi jdbi) {
@@ -39,10 +42,23 @@ public static PersistentNamespaceLoader create(DataSource dataSource) {
 
     @Override
     public Set<Client> getAllPersistedNamespaces() {
-        return jdbi
-                .withExtension(SqlitePaxosStateLog.Queries.class, SqlitePaxosStateLog.Queries::getAllNamespaces)
-                .stream()
-                .map(Client::of)
-                .collect(Collectors.toSet());
+        Set<Client> clients = new HashSet<>();
+
+        // Namespaces contain at least one character implying the empty string is lexicographically strictly smaller
+        // than any namespace.
+        Optional<String> currentNamespace = getNextLexicographicallySmallestNamespace(EMPTY_STRING);
+        while (currentNamespace.isPresent()) {
+            String namespaceString = currentNamespace.get();
+            clients.add(Client.of(namespaceString));
+            currentNamespace = getNextLexicographicallySmallestNamespace(namespaceString);
+        }
+
+        return clients;
+    }
+
+    private Optional<String> getNextLexicographicallySmallestNamespace(String maybeLastReadNamespace) {
+        return jdbi.withExtension(
+                SqlitePaxosStateLog.Queries.class,
+                dao -> dao.getNextLexicographicallySmallestNamespace(maybeLastReadNamespace));
     }
 }u}(jH\ (9de376eff6a2ade06d2a17b7271c4a04db9991dbj\ dtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/TimeLockManagementResource.javaj\ modifiedj\ Kj\ K j\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ Xp  @@ -87,6 +87,15 @@ public static TimeLockManagementService jersey(
                 persistentNamespaceContext, timelockNamespaces, redirectRetryTargeter, serviceLifecycleController));
     }
 
+    @Override
+    public ListenableFuture<Set<String>> getActiveNamespaces(AuthHeader authHeader) {
+        // This endpoint only returns state already in memory, so it's okay to NOT make it async.
+        return Futures.immediateFuture(timelockNamespaces.getActiveClients().stream()
+                .map(Client::value)
+                .filter(value -> !value.equals(PaxosTimeLockConstants.LEADER_PAXOS_NAMESPACE))
+                .collect(Collectors.toSet()));
+    }
+
     @Override
     public ListenableFuture<Set<String>> getNamespaces(AuthHeader authHeader) {
         // This endpoint is not used frequently (only called by migration cli), so it's okay to NOT make it async.
@@ -158,6 +167,11 @@ public Set<String> getNamespaces(AuthHeader authHeader) {
             return unwrap(resource.getNamespaces(authHeader));
         }
 
+        @Override
+        public Set<String> getActiveNamespaces(AuthHeader authHeader) {
+            return unwrap(resource.getActiveNamespaces(authHeader));
+        }
+
         @Override
         public void achieveConsensus(AuthHeader authHeader, Set<String> namespaces) {
             unwrap(resource.achieveConsensus(authHeader, namespaces));u}(jH\ (e4aeffa4b79ab211ecca045642ba7166133fe5b6j\ etimelock-impl/src/main/java/com/palantir/atlasdb/timelock/paxos/InvalidAcceptorCacheKeyException.javaj\ modifiedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FInvalidAcceptorCacheKeyException.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FInvalidAcceptorCacheKeyException.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FInvalidAcceptorCacheKeyException.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X  @@ -24,18 +24,18 @@
 
 public class InvalidAcceptorCacheKeyException extends Exception implements SafeLoggable {
 
-    private static final String ERROR_MESSAGE = "Provided acceptor cache key is either invalid/expired.";
+    private static final String MESSAGE = "Provided acceptor cache key is either invalid/expired.";
 
     private final AcceptorCacheKey cacheKey;
 
     public InvalidAcceptorCacheKeyException(AcceptorCacheKey cacheKey) {
-        super(ERROR_MESSAGE);
+        super(MESSAGE);
         this.cacheKey = cacheKey;
     }
 
     @Override
     public String getLogMessage() {
-        return ERROR_MESSAGE;
+        return MESSAGE;
     }
 
     @Overrideu}(jH\ (778704192bd5c7d127baa2fe4e47a41236e0980ej\ qtimelock-server/src/suiteTest/java/com/palantir/atlasdb/timelock/MultiNodePaxosTimeLockServerIntegrationTest.javaj\ modifiedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/timelock-server%2Fsrc%2FsuiteTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FMultiNodePaxosTimeLockServerIntegrationTest.javaj\ https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/timelock-server%2Fsrc%2FsuiteTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FMultiNodePaxosTimeLockServerIntegrationTest.javaj\ https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FsuiteTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FMultiNodePaxosTimeLockServerIntegrationTest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X	  @@ -23,7 +23,6 @@
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.ImmutableSortedMap;
 import com.google.common.collect.Iterables;
-import com.google.common.collect.Sets;
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.http.v2.ClientOptionsConstants;
@@ -340,6 +339,8 @@ public void canGetAllNamespaces() {
 
         Set<String> knownNamespaces = getKnownNamespaces();
         assertThat(knownNamespaces).contains(randomNamespace);
+        Set<String> activeNamespaces = getActiveNamespaces();
+        assertThat(activeNamespaces).contains(randomNamespace);
 
         for (TestableTimelockServer server : cluster.servers()) {
             server.killSync();
@@ -349,10 +350,13 @@ public void canGetAllNamespaces() {
         cluster.waitUntilAllServersOnlineAndReadyToServeNamespaces(
                 ImmutableList.of(cluster.clientForRandomNamespace().namespace()));
 
-        Set<String> namespacesAfterRestart = getKnownNamespaces();
-        assertThat(namespacesAfterRestart).contains(randomNamespace);
-        assertThat(namespacesAfterRestart).doesNotContain("learner", "acceptor");
-        assertThat(Sets.difference(knownNamespaces, namespacesAfterRestart)).isEmpty();
+        Set<String> knownNamespacesAfterRestart = getKnownNamespaces();
+        assertThat(knownNamespacesAfterRestart).contains(randomNamespace);
+        assertThat(knownNamespacesAfterRestart).doesNotContain("learner", "acceptor");
+        assertThat(knownNamespaces).isSubsetOf(knownNamespacesAfterRestart);
+
+        Set<String> activeNamespacesAfterRestart = getActiveNamespaces();
+        assertThat(activeNamespacesAfterRestart).doesNotContain(randomNamespace);
     }
 
     private Set<String> getKnownNamespaces() {
@@ -363,6 +367,14 @@ private Set<String> getKnownNamespaces() {
                 .collect(Collectors.toSet());
     }
 
+    private Set<String> getActiveNamespaces() {
+        return cluster.servers().stream()
+                .map(TestableTimelockServer::timeLockManagementService)
+                .map(resource -> resource.getActiveNamespaces(AuthHeader.valueOf("Bearer omitted")))
+                .flatMap(Set::stream)
+                .collect(Collectors.toSet());
+    }
+
     @Test
     public void directLegacyAndConjureLockServicesInteractCorrectly() throws InterruptedException {
         LockRefreshToken token = client.legacyLockService()u}(jH\ (beb847c98456507c4d4b1a5a8801accabc1394e4j\ 
versions.lockj\ modifiedj\ Kij\ Khj\ Kj\ _https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/versions.lockj\ ^https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/versions.lockj\ qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X=Z  @@ -8,24 +8,24 @@ com.boundary:high-scale-lib:1.0.6 (2 constraints: 9d14d4a0)
 com.clearspring.analytics:stream:2.5.2 (1 constraints: 970f7788)
 com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
-com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c281d1b7)
-com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: b9b52971)
-com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 68ba1e86)
-com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e233de00)
-com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7f1c9ca4)
+com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c38132bb)
+com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bbb5dd72)
+com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 03bafb2e)
+com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e133df00)
+com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7e1c9da4)
 com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2 (4 constraints: 2244332b)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 343f74b0)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6c308f5e)
-com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 322bf5af)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6c308f5e)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 333f21b0)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6b30665e)
+com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 312bccaf)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6b30665e)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 411979bb)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 40197abb)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.2 (2 constraints: 251d9309)
-com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9b1c97a6)
+com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9a1c98a6)
 com.fasterxml.jackson.module:jackson-module-blackbird:2.14.2 (1 constraints: b40e625e)
 com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.2 (2 constraints: db2e8469)
 com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.1 (13 constraints: 0dce07f2)
+com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 24cec010)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -45,11 +45,11 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (23 constraints: 8f781fe2)
+com.google.errorprone:error_prone_annotations:2.10.0 (23 constraints: a3788bf6)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
-com.google.guava:guava:31.1-jre (48 constraints: ad379dcf)
+com.google.guava:guava:31.1-jre (48 constraints: a337bcb3)
 com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava (1 constraints: bd17c918)
 com.google.j2objc:j2objc-annotations:1.3 (1 constraints: b809eda0)
 com.google.protobuf:protobuf-java:3.21.9 (1 constraints: 4105453b)
@@ -67,28 +67,28 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:6.66.0 (5 constraints: a554a26e)
-com.palantir.conjure.java:conjure-undertow-annotations:6.66.0 (1 constraints: 44056d3b)
-com.palantir.conjure.java:conjure-undertow-lib:6.66.0 (2 constraints: 891c6fb0)
-com.palantir.conjure.java.api:errors:2.29.0 (6 constraints: 5169d179)
-com.palantir.conjure.java.api:service-config:2.29.0 (5 constraints: 824d29cf)
-com.palantir.conjure.java.api:ssl-config:2.29.0 (3 constraints: ea2af7a5)
-com.palantir.conjure.java.runtime:client-config:7.39.0 (6 constraints: cc6b4639)
-com.palantir.conjure.java.runtime:conjure-java-annotations:7.39.0 (1 constraints: c918959e)
-com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.39.0 (2 constraints: cd21177b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.39.0 (6 constraints: 4a6ed294)
-com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.39.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.39.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.39.0 (1 constraints: c918959e)
-com.palantir.conjure.java.runtime:keystores:7.39.0 (3 constraints: 262aec60)
-com.palantir.conjure.java.runtime:refresh-utils:7.39.0 (2 constraints: 0d1e7745)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.71.0 (2 constraints: 7c294702)
-com.palantir.dialogue:dialogue-blocking-channels:3.71.0 (2 constraints: d523fdb2)
-com.palantir.dialogue:dialogue-clients:3.71.0 (1 constraints: 3d05503b)
-com.palantir.dialogue:dialogue-core:3.71.0 (3 constraints: 7a3de7e1)
-com.palantir.dialogue:dialogue-futures:3.71.0 (3 constraints: c833dcbc)
-com.palantir.dialogue:dialogue-serde:3.71.0 (3 constraints: b82e21a2)
-com.palantir.dialogue:dialogue-target:3.71.0 (7 constraints: 7d76f253)
+com.palantir.conjure.java:conjure-lib:6.77.0 (5 constraints: ad546073)
+com.palantir.conjure.java:conjure-undertow-annotations:6.77.0 (1 constraints: 4605743b)
+com.palantir.conjure.java:conjure-undertow-lib:6.77.0 (2 constraints: 8d1cfdb0)
+com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 3d696e70)
+com.palantir.conjure.java.api:service-config:2.34.0 (5 constraints: 724d79ca)
+com.palantir.conjure.java.api:ssl-config:2.34.0 (3 constraints: e22a0da5)
+com.palantir.conjure.java.runtime:client-config:7.40.0 (6 constraints: a46bdb28)
+com.palantir.conjure.java.runtime:conjure-java-annotations:7.40.0 (1 constraints: c1187e9e)
+com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.40.0 (2 constraints: c521007b)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.40.0 (6 constraints: 306e1085)
+com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.40.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.40.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.40.0 (1 constraints: c1187e9e)
+com.palantir.conjure.java.runtime:keystores:7.40.0 (3 constraints: 162a3e5f)
+com.palantir.conjure.java.runtime:refresh-utils:7.40.0 (2 constraints: 051e6045)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.77.0 (2 constraints: 7f29c101)
+com.palantir.dialogue:dialogue-blocking-channels:3.77.0 (2 constraints: e12335b4)
+com.palantir.dialogue:dialogue-clients:3.77.0 (1 constraints: 4305623b)
+com.palantir.dialogue:dialogue-core:3.77.0 (3 constraints: 833de5e1)
+com.palantir.dialogue:dialogue-futures:3.77.0 (3 constraints: da3348c0)
+com.palantir.dialogue:dialogue-serde:3.77.0 (3 constraints: c12e6ba4)
+com.palantir.dialogue:dialogue-target:3.77.0 (7 constraints: 9e760764)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -98,27 +98,27 @@ com.palantir.goethe:goethe:0.9.0 (1 constraints: 0b050636)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
 com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
-com.palantir.safe-logging:logger:3.2.0 (23 constraints: 74886d78)
+com.palantir.safe-logging:logger:3.2.0 (23 constraints: 4e88492a)
 com.palantir.safe-logging:logger-slf4j:3.2.0 (1 constraints: 000e5942)
 com.palantir.safe-logging:logger-spi:3.2.0 (2 constraints: 0f1e997a)
-com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: 191828aa)
-com.palantir.safe-logging:safe-logging:3.2.0 (28 constraints: 34d3cb53)
+com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: f7178aeb)
+com.palantir.safe-logging:safe-logging:3.2.0 (28 constraints: 0cd34fc4)
 com.palantir.safethreadlocalrandom:safe-thread-local-random:0.1.0 (3 constraints: 933225f9)
 com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
-com.palantir.tokens:auth-tokens:3.16.0 (5 constraints: 445c018f)
-com.palantir.tracing:tracing:6.15.0 (8 constraints: eb7d2456)
-com.palantir.tracing:tracing-api:6.15.0 (5 constraints: 0f459cf3)
-com.palantir.tracing:tracing-jersey:6.15.0 (1 constraints: 441994bb)
-com.palantir.tritium:tritium-api:0.57.0 (6 constraints: 5c5223d4)
-com.palantir.tritium:tritium-caffeine:0.57.0 (1 constraints: 3e05483b)
-com.palantir.tritium:tritium-core:0.57.0 (5 constraints: 6743c520)
-com.palantir.tritium:tritium-lib:0.57.0 (1 constraints: 3e05483b)
-com.palantir.tritium:tritium-metrics:0.57.0 (7 constraints: 076c30e5)
-com.palantir.tritium:tritium-proxy:0.57.0 (1 constraints: 840e8859)
-com.palantir.tritium:tritium-registry:0.57.0 (12 constraints: 21d37368)
-com.palantir.tritium:tritium-slf4j:0.57.0 (2 constraints: c113e170)
-com.palantir.tritium:tritium-time:0.57.0 (1 constraints: 840e8859)
-com.palantir.tritium:tritium-tracing:0.57.0 (1 constraints: 840e8859)
+com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 485c7290)
+com.palantir.tracing:tracing:6.17.0 (8 constraints: f97d045e)
+com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 1745b4f5)
+com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 441994bb)
+com.palantir.tritium:tritium-api:0.64.0 (6 constraints: 5052c7ce)
+com.palantir.tritium:tritium-caffeine:0.64.0 (1 constraints: 3c05433b)
+com.palantir.tritium:tritium-core:0.64.0 (5 constraints: 5d43281d)
+com.palantir.tritium:tritium-lib:0.64.0 (1 constraints: 3c05433b)
+com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f16b49d8)
+com.palantir.tritium:tritium-proxy:0.64.0 (1 constraints: 820e8359)
+com.palantir.tritium:tritium-registry:0.64.0 (12 constraints: f6d27f35)
+com.palantir.tritium:tritium-slf4j:0.64.0 (2 constraints: bd138370)
+com.palantir.tritium:tritium-time:0.64.0 (1 constraints: 820e8359)
+com.palantir.tritium:tritium-tracing:0.64.0 (1 constraints: 820e8359)
 com.squareup:javapoet:1.13.0 (4 constraints: 102cc1ed)
 com.squareup:kotlinpoet:1.11.0 (1 constraints: 6a0c7f0d)
 com.thinkaurelius.thrift:thrift-server:0.3.7 (1 constraints: 980f6c88)
@@ -155,52 +155,53 @@ io.dropwizard.metrics:metrics-jvm:4.2.12 (3 constraints: 1b2ec84e)
 io.dropwizard.metrics:metrics-logback:4.2.12 (1 constraints: b10e925e)
 io.dropwizard.metrics:metrics-servlets:4.2.12 (1 constraints: 730daf2c)
 io.leangen.geantyref:geantyref:1.3.13 (1 constraints: bb08bd94)
-io.netty:netty-all:4.1.85.Final (1 constraints: e21188fd)
-io.netty:netty-buffer:4.1.85.Final (14 constraints: 57d94af6)
-io.netty:netty-codec:4.1.85.Final (7 constraints: 5c5e624a)
-io.netty:netty-codec-dns:4.1.85.Final (2 constraints: aa199904)
-io.netty:netty-codec-haproxy:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-http:4.1.85.Final (2 constraints: 131acd1f)
-io.netty:netty-codec-http2:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-memcache:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-mqtt:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-redis:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-smtp:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-socks:4.1.85.Final (2 constraints: 131acd1f)
-io.netty:netty-codec-stomp:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-xml:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-common:4.1.85.Final (17 constraints: e3069ffc)
-io.netty:netty-handler:4.1.85.Final (4 constraints: 673c7bac)
-io.netty:netty-handler-proxy:4.1.85.Final (2 constraints: 5b12ca2a)
-io.netty:netty-resolver:4.1.85.Final (4 constraints: 0134e5fa)
-io.netty:netty-resolver-dns:4.1.85.Final (2 constraints: 051f31b1)
-io.netty:netty-resolver-dns-classes-macos:4.1.85.Final (2 constraints: 9e1ec28f)
-io.netty:netty-resolver-dns-native-macos:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-transport:4.1.85.Final (14 constraints: ffd205e6)
-io.netty:netty-transport-classes-epoll:4.1.85.Final (2 constraints: b01d1135)
-io.netty:netty-transport-classes-kqueue:4.1.85.Final (2 constraints: 241eb356)
-io.netty:netty-transport-native-epoll:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-transport-native-kqueue:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-transport-native-unix-common:4.1.85.Final (7 constraints: 1f78440c)
-io.netty:netty-transport-rxtx:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-transport-sctp:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-transport-udt:4.1.85.Final (1 constraints: 000b22cf)
-io.undertow:undertow-core:2.2.22.Final (2 constraints: 341d4606)
+io.netty:netty-all:4.1.90.Final (1 constraints: e21188fd)
+io.netty:netty-buffer:4.1.90.Final (14 constraints: 1fd940ae)
+io.netty:netty-codec:4.1.90.Final (7 constraints: 405eed3b)
+io.netty:netty-codec-dns:4.1.90.Final (2 constraints: a219b703)
+io.netty:netty-codec-haproxy:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-codec-http:4.1.90.Final (2 constraints: 0b1ae71e)
+io.netty:netty-codec-http2:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-codec-memcache:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-codec-mqtt:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-codec-redis:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-codec-smtp:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-codec-socks:4.1.90.Final (2 constraints: 0b1ae71e)
+io.netty:netty-codec-stomp:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-codec-xml:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-common:4.1.90.Final (17 constraints: 9f060892)
+io.netty:netty-handler:4.1.90.Final (4 constraints: 5b3c2eaa)
+io.netty:netty-handler-proxy:4.1.90.Final (2 constraints: 53120c2a)
+io.netty:netty-handler-ssl-ocsp:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-resolver:4.1.90.Final (4 constraints: f133a9f6)
+io.netty:netty-resolver-dns:4.1.90.Final (2 constraints: fd1e17b0)
+io.netty:netty-resolver-dns-classes-macos:4.1.90.Final (2 constraints: 961eac8e)
+io.netty:netty-resolver-dns-native-macos:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-transport:4.1.90.Final (14 constraints: c7d2039e)
+io.netty:netty-transport-classes-epoll:4.1.90.Final (2 constraints: a81d0734)
+io.netty:netty-transport-classes-kqueue:4.1.90.Final (2 constraints: 1c1ea555)
+io.netty:netty-transport-native-epoll:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-transport-native-kqueue:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf9)
+io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
+io.undertow:undertow-core:2.2.24.Final (2 constraints: 361dd006)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
 jakarta.activation:jakarta.activation-api:1.2.2 (3 constraints: 4e3741b6)
-jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 29799834)
+jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 26793e31)
 jakarta.inject:jakarta.inject-api:1.0.5 (13 constraints: decbc9f9)
 jakarta.servlet:jakarta.servlet-api:4.0.4 (10 constraints: 7b9def70)
 jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
-jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (19 constraints: 0348c6c3)
+jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (18 constraints: 5a38d98d)
 jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
-joda-time:joda-time:2.12.1 (6 constraints: 8059c3f0)
+joda-time:joda-time:2.12.5 (6 constraints: 845987f4)
 junit:junit:4.13.2 (8 constraints: 5a9c5baf)
-net.bytebuddy:byte-buddy:1.12.18 (3 constraints: a325ded3)
-net.bytebuddy:byte-buddy-agent:1.12.16 (1 constraints: 750baee9)
+net.bytebuddy:byte-buddy:1.14.3 (3 constraints: 3d25d791)
+net.bytebuddy:byte-buddy-agent:1.14.1 (1 constraints: 410b3fde)
 net.java.dev.jna:jna:4.1.0 (2 constraints: 6e1bbbad)
 net.jpountz.lz4:lz4:1.3.0 (2 constraints: 971453a0)
 net.ltgt.gradle.incap:incap:0.2 (1 constraints: ea0d3b32)
@@ -215,16 +216,16 @@ org.apache.commons:commons-lang3:3.12.0 (8 constraints: 5873a6cf)
 org.apache.commons:commons-math3:3.2 (2 constraints: 90196ff8)
 org.apache.commons:commons-pool2:2.11.1 (1 constraints: 3705333b)
 org.apache.commons:commons-text:1.9 (1 constraints: b5102f9b)
-org.apache.httpcomponents.client5:httpclient5:5.2 (2 constraints: 1718ec73)
-org.apache.httpcomponents.core5:httpcore5:5.2 (3 constraints: 40388deb)
+org.apache.httpcomponents.client5:httpclient5:5.2.1 (2 constraints: d518b1c3)
+org.apache.httpcomponents.core5:httpcore5:5.2.1 (3 constraints: 9f383c39)
 org.apache.httpcomponents.core5:httpcore5-h2:5.2 (1 constraints: dd12c315)
 org.apache.thrift:libthrift:0.17.0 (4 constraints: 00372854)
-org.assertj:assertj-core:3.23.1 (4 constraints: 9d36e469)
-org.assertj:assertj-guava:3.4.0 (1 constraints: 09050636)
+org.assertj:assertj-core:3.24.2 (4 constraints: a136076b)
+org.assertj:assertj-guava:3.24.2 (1 constraints: 3d05473b)
 org.awaitility:awaitility:4.2.0 (2 constraints: c71a893b)
 org.caffinitas.ohc:ohc-core:0.3.4 (1 constraints: 950f6988)
 org.checkerframework:checker-compat-qual:2.5.5 (2 constraints: 1f1d1717)
-org.checkerframework:checker-qual:3.22.0 (3 constraints: 6b26c1e1)
+org.checkerframework:checker-qual:3.32.0 (3 constraints: 6c2607e2)
 org.clojure:clojure:1.8.0 (1 constraints: 0b050836)
 org.codehaus.groovy:groovy:2.5.14 (23 constraints: b55185ba)
 org.codehaus.groovy:groovy-cli-picocli:2.5.14 (5 constraints: d54e9017)
@@ -283,7 +284,7 @@ org.jboss.xnio:xnio-api:3.8.7.Final (2 constraints: 771a3146)
 org.jboss.xnio:xnio-nio:3.8.7.Final (1 constraints: c80dcb30)
 org.jdbi:jdbi3-core:3.30.0 (2 constraints: 0e10d5bf)
 org.jdbi:jdbi3-sqlobject:3.30.0 (1 constraints: 38053d3b)
-org.jetbrains:annotations:23.0.0 (3 constraints: 45257f15)
+org.jetbrains:annotations:23.0.0 (4 constraints: 0c35f637)
 org.jetbrains.kotlin:kotlin-reflect:1.6.10 (1 constraints: 360b7dd6)
 org.jetbrains.kotlin:kotlin-stdlib:1.7.0 (7 constraints: 07713968)
 org.jetbrains.kotlin:kotlin-stdlib-common:1.7.0 (1 constraints: 110f8b6b)
@@ -292,25 +293,25 @@ org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.0 (3 constraints: c125b5a3)
 org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.5.0 (1 constraints: 4b0ea44e)
 org.jvnet:animal-sniffer-annotation:1.0 (1 constraints: f20b95eb)
 org.mindrot:jbcrypt:0.4 (2 constraints: 4714f171)
-org.mockito:mockito-core:4.8.1 (2 constraints: 2e1643fd)
+org.mockito:mockito-core:5.2.0 (2 constraints: 51165c12)
 org.mpierce.metrics.reservoir:hdrhistogram-metrics-reservoir:1.1.3 (1 constraints: 0d10f991)
-org.objenesis:objenesis:3.2 (2 constraints: c61411ab)
+org.objenesis:objenesis:3.3 (2 constraints: c71412ab)
 org.openjdk.jmh:jmh-core:1.36 (2 constraints: f51525d9)
 org.openjdk.jmh:jmh-generator-annprocess:1.36 (1 constraints: de04fb30)
 org.ow2.asm:asm:7.1 (4 constraints: d71f9495)
 org.ow2.asm:asm-analysis:5.0.3 (1 constraints: ee09d4b2)
 org.ow2.asm:asm-commons:5.0.3 (1 constraints: ee09d4b2)
 org.ow2.asm:asm-tree:5.0.3 (4 constraints: d8272223)
 org.ow2.asm:asm-util:5.0.3 (1 constraints: ee09d4b2)
-org.postgresql:postgresql:42.4.1 (1 constraints: 3d05503b)
+org.postgresql:postgresql:42.4.3 (1 constraints: 3f05523b)
 org.reflections:reflections:0.10.2 (1 constraints: 3505253b)
-org.rocksdb:rocksdbjni:7.7.3 (1 constraints: 13052636)
+org.rocksdb:rocksdbjni:7.9.2 (1 constraints: 14052b36)
 org.slf4j:jcl-over-slf4j:1.7.36 (3 constraints: 492febed)
 org.slf4j:jul-to-slf4j:1.7.36 (1 constraints: b90e9c5e)
 org.slf4j:log4j-over-slf4j:1.7.36 (3 constraints: 492febed)
-org.slf4j:slf4j-api:1.7.36 (44 constraints: 79807531)
+org.slf4j:slf4j-api:1.7.36 (44 constraints: 8180995b)
 org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
-org.wildfly.common:wildfly-common:1.6.0.Final (3 constraints: 94236ea3)
+org.wildfly.common:wildfly-common:1.6.0.Final (4 constraints: 3f390b3d)
 org.xerial:sqlite-jdbc:3.36.0 (1 constraints: 3e054f3b)
 org.xerial.snappy:snappy-java:1.1.8 (2 constraints: 011529cb)
 org.yaml:snakeyaml:1.33 (5 constraints: 0a4c5570)
@@ -323,9 +324,9 @@ com.github.peterwippermann.junit4:parameterized-suite:1.1.0 (1 constraints: 0405
 com.github.stefanbirkner:system-rules:1.19.0 (1 constraints: 3d05443b)
 com.github.tomakehurst:wiremock-standalone:2.27.2 (1 constraints: 3f054a3b)
 com.google.code.findbugs:annotations:3.0.1 (1 constraints: 9e0aafc3)
-com.palantir.conjure.java.api:test-utils:2.29.0 (1 constraints: 3f054e3b)
+com.palantir.conjure.java.api:test-utils:2.34.0 (1 constraints: 3f054e3b)
 com.palantir.safe-logging:preconditions-assertj:3.2.0 (1 constraints: 07050036)
-com.palantir.tracing:tracing-test-utils:6.15.0 (1 constraints: 3e05563b)
+com.palantir.tracing:tracing-test-utils:6.17.0 (1 constraints: 3e05563b)
 com.spotify.dataenum:dataenum:1.4.1 (1 constraints: e9105ac1)
 com.thoughtworks.qdox:qdox:1.12.1 (1 constraints: 6d11f7d9)
 io.dropwizard:dropwizard-testing:2.1.2 (1 constraints: 0705fa35)
@@ -351,7 +352,7 @@ org.codehaus.groovy:groovy-sql:2.5.14 (1 constraints: b00d2137)
 org.codehaus.groovy:groovy-test:2.5.14 (2 constraints: ed12fb43)
 org.codehaus.groovy:groovy-test-junit5:2.5.14 (1 constraints: b00d2137)
 org.codehaus.groovy:groovy-testng:2.5.14 (1 constraints: b00d2137)
-org.freemarker:freemarker:2.3.31 (1 constraints: 3b053c3b)
+org.freemarker:freemarker:2.3.32 (1 constraints: 3c053d3b)
 org.glassfish.grizzly:connection-pool:2.4.4 (1 constraints: 1418374b)
 org.glassfish.grizzly:grizzly-framework:2.4.4 (3 constraints: bc31e6d7)
 org.glassfish.grizzly:grizzly-http:2.4.4 (1 constraints: e11123e3)u}(jH\ (4b89bc1a7343e19e2133e9125547fc4f7bbd1800j\ versions.propsj\ modifiedj\ K
j\ Kj\ Kj\ `https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/versions.propsj\ _https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/versions.propsj\ rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j\ X=  @@ -2,7 +2,7 @@ com.boundary:high-scale-lib = 1.0.6
 com.ea.agentloader:ea-agent-loader = 1.0.3
 com.fasterxml.jackson.*:* = 2.14.2
 com.fasterxml.jackson.core:jackson-databind = 2.14.2
-com.github.ben-manes.caffeine:caffeine = 3.1.1
+com.github.ben-manes.caffeine:caffeine = 3.1.5
 com.github.peterwippermann.junit4:parameterized-suite = 1.1.0
 com.github.rholder:guava-retrying = 2.0.0
 com.github.stefanbirkner:system-rules = 1.19.0
@@ -25,9 +25,9 @@ com.palantir.common:streams = 2.1.0
 com.palantir.config.crypto:* = 5.1.0
 com.palantir.conjure.java.api:* = 2.29.0
 com.palantir.conjure.java.runtime:* = 7.39.0
-com.palantir.conjure.java:* = 6.66.0
+com.palantir.conjure.java:* = 6.77.0
 com.palantir.conjure:conjure = 4.35.0
-com.palantir.dialogue:* = 3.71.0
+com.palantir.dialogue:* = 3.77.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
 com.palantir.goethe:* = 0.9.0
@@ -36,7 +36,7 @@ com.palantir.refreshable:refreshable = 2.2.0
 com.palantir.safe-logging:* = 3.2.0
 com.palantir.sls.versions:* = 1.4.0
 com.palantir.tracing:* = 6.15.0
-com.palantir.tritium:* = 0.57.0
+com.palantir.tritium:* = 0.64.0
 com.squareup:javapoet = 1.13.0
 com.zaxxer:HikariCP = 5.0.1
 commons-cli:* = 1.5.0
@@ -45,26 +45,25 @@ commons-dbutils:* = 1.7
 commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
-io.netty:* = 4.1.85.Final
-io.undertow:* = 2.2.22.Final
+io.netty:* = 4.1.90.Final
+io.undertow:* = 2.2.24.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2
-joda-time:joda-time = 2.12.1
+joda-time:joda-time = 2.12.5
 junit:junit = 4.13.2
 net.jcip:jcip-annotations = 1.0
 net.jpountz.lz4:lz4 = 1.3.0
 one.util:streamex = 0.8.1
 org.apache.commons:commons-lang3 = 3.12.0
 org.apache.commons:commons-pool2 = 2.11.1
-org.apache.httpcomponents.client5:httpclient5 = 5.2
-org.assertj:assertj-* = 3.23.1
-org.assertj:assertj-guava = 3.4.0
+org.apache.httpcomponents.client5:httpclient5 = 5.2.1
+org.assertj:* = 3.24.2
 org.awaitility:awaitility = 4.2.0
 org.clojure:clojure = 1.8.0
 org.derive4j:* = 1.1.1
 org.eclipse.collections:* = 11.1.0
-org.freemarker:freemarker = 2.3.31
+org.freemarker:freemarker = 2.3.32
 org.glassfish.jersey.core:jersey-common = 2.34
 org.gmock:* = 0.8.3
 org.immutables:* = 2.8.8
@@ -73,10 +72,10 @@ org.jboss.threads:jboss-threads = 3.5.0.Final
 org.jdbi:* = 3.30.0
 org.jmock:jmock* = 2.12.0
 org.mindrot:jbcrypt = 0.4
-org.mockito:mockito-* = 4.8.1
+org.mockito:* = 5.2.0
 org.openjdk.jmh:* = 1.36
 org.reflections:reflections = 0.10.2
-org.rocksdb:rocksdbjni = 7.7.3
+org.rocksdb:rocksdbjni = 7.9.2
 org.slf4j:* = 1.7.36
 org.wildfly.common:wildfly-common = 1.6.0.Final
 org.xerial.snappy:snappy-java = 1.1.8
@@ -96,7 +95,7 @@ ch.qos.logback:* = 1.2.11
 com.datastax.cassandra:cassandra-driver-core = 3.8.0
 com.oracle.database.jdbc:ojdbc11 = 21.5.0.0
 com.palantir.cassandra:* = 2.2.18-1.108.0
-org.postgresql:postgresql = 42.4.1
+org.postgresql:postgresql = 42.4.3
 
 # transitive dep with API breaks in 0.14.0
 org.apache.thrift:libthrift = 0.17.0ueu(c6888a628d89db6f83115d0be0a705f5745ed7ff}(sha(c6888a628d89db6f83115d0be0a705f5745ed7ffnode_idEC_kwDOAjP5fdoAKGM2ODg4YTYyOGQ4OWRiNmY4MzExNWQwYmUwYTcwNWY1NzQ1ZWQ3ZmYcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-03-29T11:40:47Zu	committer}(j_ svc-autoreleasej_ -pd-foundry-infrastructure-notify@palantir.comj_ 2023-03-29T11:40:47Zumessage"Autorelease 0.822.0-rc1

[skip ci]tree}(j_ (1df24699530268c5c7088402c0033ed5bfe38189url`https://api.github.com/repos/palantir/atlasdb/git/trees/1df24699530268c5c7088402c0033ed5bfe38189uj_ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c6888a628d89db6f83115d0be0a705f5745ed7ff
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQkI8AACgkQhbrR8ip7mDBfjAD/cD51fbrbmO0r0FhNIgluQtFA
iM/UquwFD9AoOLfPcbYBANX8QWvh9ePEORT9dIR1mg5f4IlvBh+EllifrRmqof43
=+BU/
-----END PGP SIGNATURE-----
payloadX(  tree 1df24699530268c5c7088402c0033ed5bfe38189
parent f8c76949424e7a06aa162df6a100f5c02e594d29
author aalouane <30903736+ergo14@users.noreply.github.com> 1680090047 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1680090047 +0000

Autorelease 0.822.0-rc1

[skip ci]uuj_ ^https://api.github.com/repos/palantir/atlasdb/commits/c6888a628d89db6f83115d0be0a705f5745ed7ffhtml_urlShttps://github.com/palantir/atlasdb/commit/c6888a628d89db6f83115d0be0a705f5745ed7ffcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c6888a628d89db6f83115d0be0a705f5745ed7ff/commentsj_ }(loginergo14idJj_ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j_ #https://api.github.com/users/ergo14j_ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj_ }(j_ svc-autoreleasej_ J(j_ MDQ6VXNlcjUxNzE4MzQ2j_ 4https://avatars.githubusercontent.com/u/51718346?v=4j_ h5j_ ,https://api.github.com/users/svc-autoreleasej_ "https://github.com/svc-autoreleasej_ 6https://api.github.com/users/svc-autorelease/followersj_ Chttps://api.github.com/users/svc-autorelease/following{/other_user}j_ <https://api.github.com/users/svc-autorelease/gists{/gist_id}j_ Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j_ :https://api.github.com/users/svc-autorelease/subscriptionsj_ 1https://api.github.com/users/svc-autorelease/orgsj_ 2https://api.github.com/users/svc-autorelease/reposj_ =https://api.github.com/users/svc-autorelease/events{/privacy}j_ <https://api.github.com/users/svc-autorelease/received_eventsj_ Userj_ uparents]}(j_ (f8c76949424e7a06aa162df6a100f5c02e594d29j_ ^https://api.github.com/repos/palantir/atlasdb/commits/f8c76949424e7a06aa162df6a100f5c02e594d29j_ Shttps://github.com/palantir/atlasdb/commit/f8c76949424e7a06aa162df6a100f5c02e594d29uastats}(totalK 	additionsK 	deletionsK ufiles]u(9d9c33bc199ba48f8ef9a478d32c5cb4c8c3014e}(sha(9d9c33bc199ba48f8ef9a478d32c5cb4c8c3014enode_idEC_kwDOAjP5fdoAKDlkOWMzM2JjMTk5YmE0OGY4ZWY5YTQ3OGQzMmM1Y2I0YzhjMzAxNGUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-23T14:21:51Zu	committer}(j_ 
Sam Kramerj_ skramer@palantir.comj_ 2023-05-23T14:21:51Zumessage[sii] Fix mismatch teststree}(j_ (e2eaa1f47f028d10ff51aa5677d7361418cf7508url`https://api.github.com/repos/palantir/atlasdb/git/trees/e2eaa1f47f028d10ff51aa5677d7361418cf7508uj` bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9d9c33bc199ba48f8ef9a478d32c5cb4c8c3014e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRsy/8ACgkQmPPOpKR4
XS0R6Af/T+dTiXW/r0zl0B3hAbi4SVcCN+l1VV2yNCEBxwasTqZSTKcjNufJ6m5q
JIgCOQBNk4yE5g+HbpEDZ9JrItjTmzI46xU9FNVTaMVXE+CgxBlnnyMwf6b5Jqvg
q7ImeEaydE7ia4YSdnf6jKSOjnNjGuJEJlqG7F1YVCTO58JhyHmQp5VW4tg26keI
hyi9VNujCvZ8Tcq6jp/vE7dJtj6xUJkzShFjWNUQOuTSU7MYFVnkbPo6AZ992l+1
KVBh3hU9FoOgWBiGqQqCd9Q+VgrTKCiR+755WMyjIqXWhmmM5rF+V/d0xxPCtsHP
iTJGvQCzQ5RllYVNv0nbJC6sLbqRGQ==
=WAF4
-----END PGP SIGNATURE-----payloadtree e2eaa1f47f028d10ff51aa5677d7361418cf7508
parent a86a13155478cdbf653cb4098914b6e25a97f1d0
author Sam Kramer <skramer@palantir.com> 1684851711 +0100
committer Sam Kramer <skramer@palantir.com> 1684851711 +0100

[sii] Fix mismatch tests
uuj` ^https://api.github.com/repos/palantir/atlasdb/commits/9d9c33bc199ba48f8ef9a478d32c5cb4c8c3014ehtml_urlShttps://github.com/palantir/atlasdb/commit/9d9c33bc199ba48f8ef9a478d32c5cb4c8c3014ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9d9c33bc199ba48f8ef9a478d32c5cb4c8c3014e/commentsj_ }(login
Sam-KrameridJ^2_ j_ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j` 'https://api.github.com/users/Sam-Kramerj` https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj` }(j` 
Sam-Kramerj ` J^2_ j_ MDQ6VXNlcjYyMzg4MTQ=j"` 3https://avatars.githubusercontent.com/u/6238814?v=4j$` h5j` 'https://api.github.com/users/Sam-Kramerj` https://github.com/Sam-Kramerj'` 1https://api.github.com/users/Sam-Kramer/followersj)` >https://api.github.com/users/Sam-Kramer/following{/other_user}j+` 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j-` >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j/` 5https://api.github.com/users/Sam-Kramer/subscriptionsj1` ,https://api.github.com/users/Sam-Kramer/orgsj3` -https://api.github.com/users/Sam-Kramer/reposj5` 8https://api.github.com/users/Sam-Kramer/events{/privacy}j7` 7https://api.github.com/users/Sam-Kramer/received_eventsj9` Userj;` uparents]}(j_ (a86a13155478cdbf653cb4098914b6e25a97f1d0j` ^https://api.github.com/repos/palantir/atlasdb/commits/a86a13155478cdbf653cb4098914b6e25a97f1d0j` Shttps://github.com/palantir/atlasdb/commit/a86a13155478cdbf653cb4098914b6e25a97f1d0uastats}(totalK		additionsK	deletionsKufiles](}(j_ (66bc88b337878a8e0a97f29c19b3c562aefa27defilenamehatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/ValueAndTimestamp.javastatusmodifiedjU` KjV` K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/9d9c33bc199ba48f8ef9a478d32c5cb4c8c3014e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndTimestamp.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9d9c33bc199ba48f8ef9a478d32c5cb4c8c3014e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndTimestamp.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndTimestamp.java?ref=9d9c33bc199ba48f8ef9a478d32c5cb4c8c3014epatchX(  @@ -40,6 +40,10 @@ static ValueAndTimestamp empty() {
         return EMPTY;
     }
 
+    static ValueAndTimestamp of(Integer value) {
+        return of(Optional.of(value));
+    }
+
     static ValueAndTimestamp of(Optional<Integer> value) {
         return of(value, Optional.empty());
     }u}(j_ (321459a3d31f1dfdcb0b2831c2e9857f2f390504j[` jatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/invariant/MismatchedValueTest.javaj]` modifiedjU` KjV` Kj_` Kj`` https://github.com/palantir/atlasdb/blob/9d9c33bc199ba48f8ef9a478d32c5cb4c8c3014e/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javajb` https://github.com/palantir/atlasdb/raw/9d9c33bc199ba48f8ef9a478d32c5cb4c8c3014e/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javajd` https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.java?ref=9d9c33bc199ba48f8ef9a478d32c5cb4c8c3014ejf` Xf  @@ -21,13 +21,12 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 
 import com.palantir.logsafe.SafeArg;
-import java.util.Optional;
 import org.junit.Test;
 
 public final class MismatchedValueTest {
 
-    private static final Optional<Integer> VALUE_ONE = Optional.of(15);
-    private static final Optional<Integer> VALUE_TWO = Optional.of(25);
+    private static final ValueAndTimestamp VALUE_ONE = ValueAndTimestamp.of(25);
+    private static final ValueAndTimestamp VALUE_TWO = ValueAndTimestamp.of(15);
 
     @Test
     public void canConstructMismatchedValueFromTwoDifferentValues() {ueu(9b99127f5b606363336c8833f6415435773c3a93}(sha(9b99127f5b606363336c8833f6415435773c3a93node_idEC_kwDOAjP5fdoAKDliOTkxMjdmNWI2MDYzNjMzMzZjODgzM2Y2NDE1NDM1NzczYzNhOTMcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-05-23T00:22:32Zu	committer}(jz` svc-excavator-botj|` svc-excavator-bot@palantir.comj~` 2023-05-23T00:22:32ZumessageExcavator:  Format Java filestree}(jr` (01f8c3cef43d4637c6a2c5ecc22c2a61fed8a4d0url`https://api.github.com/repos/palantir/atlasdb/git/trees/01f8c3cef43d4637c6a2c5ecc22c2a61fed8a4d0uj` bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9b99127f5b606363336c8833f6415435773c3a93
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmRsB0gJEMmvEkpISILgAAAICgEAo9YIpRrKsKmRjxTNv9j2jmyX
ZilPIw0kNHGpDTnhsTkA/ReHyL/5TQMaZAExzP3hurrC6aw4ppHkgkHmtopD0bMX
=bdRe
-----END PGP SIGNATURE-----
payloadX  tree 01f8c3cef43d4637c6a2c5ecc22c2a61fed8a4d0
parent 1083711b382690fa3e64f57135fe510943c3083c
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1684801352 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1684801352 +0000

Excavator:  Format Java filesuuj` ^https://api.github.com/repos/palantir/atlasdb/commits/9b99127f5b606363336c8833f6415435773c3a93html_urlShttps://github.com/palantir/atlasdb/commit/9b99127f5b606363336c8833f6415435773c3a93comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9b99127f5b606363336c8833f6415435773c3a93/commentsjx` }(loginsvc-excavator-botidJjt` MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j` .https://api.github.com/users/svc-excavator-botj` $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj` }(j` svc-excavator-botj` Jjt` MDQ6VXNlcjMzMjY2MzY4j` 4https://avatars.githubusercontent.com/u/33266368?v=4j` h5j` .https://api.github.com/users/svc-excavator-botj` $https://github.com/svc-excavator-botj` 8https://api.github.com/users/svc-excavator-bot/followersj` Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}j` >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}j` Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}j` <https://api.github.com/users/svc-excavator-bot/subscriptionsj` 3https://api.github.com/users/svc-excavator-bot/orgsj` 4https://api.github.com/users/svc-excavator-bot/reposj` ?https://api.github.com/users/svc-excavator-bot/events{/privacy}j` >https://api.github.com/users/svc-excavator-bot/received_eventsj` Userj` uparents]}(jr` (1083711b382690fa3e64f57135fe510943c3083cj` ^https://api.github.com/repos/palantir/atlasdb/commits/1083711b382690fa3e64f57135fe510943c3083cj` Shttps://github.com/palantir/atlasdb/commit/1083711b382690fa3e64f57135fe510943c3083cuastats}(totalK	additionsK	deletionsKufiles]}(jr` (0a67965f248dc6c77872217a9f2d26da88537b99filenamebuild.gradlestatusmodifiedj` Kj` KchangesKblob_url^https://github.com/palantir/atlasdb/blob/9b99127f5b606363336c8833f6415435773c3a93/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/9b99127f5b606363336c8833f6415435773c3a93/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=9b99127f5b606363336c8833f6415435773c3a93patchXw  @@ -17,7 +17,7 @@ buildscript {
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.30.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
         classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'uau(be49de0bbfd2c4efbffbbd017120c433a7060fe6}(sha(be49de0bbfd2c4efbffbbd017120c433a7060fe6node_idEC_kwDOAjP5fdoAKGJlNDlkZTBiYmZkMmM0ZWZiZmZiYmQwMTcxMjBjNDMzYTcwNjBmZTYcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-09T15:37:48Zu	committer}(j` 	Tom Papkej` tpapke@palantir.comj` 2023-06-09T15:37:48ZumessageCAdd long comment explainin the decision to construct a new Executortree}(j` (52a698edbd383e0b33a4b508131ac979a080b35durl`https://api.github.com/repos/palantir/atlasdb/git/trees/52a698edbd383e0b33a4b508131ac979a080b35duja bhttps://api.github.com/repos/palantir/atlasdb/git/commits/be49de0bbfd2c4efbffbbd017120c433a7060fe6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSDR00ACgkQmF9s0kaF
Iw2Ciwf+Pf6syKXlK/DEgevjIgOIzlM/qNbymHdCJArqUYLc6PQox4Cuwjd+RDvG
vD3sYoPs8HV8+WbJzDbNqxT/1nAafcB9riJKPzq7H2TINVldqBEK78s3j9kPzAd1
GJ8I6DJCZm33R6Z+kX23TC6PBCHHPpneXr9NESl63c6tpWWLwZIYgsltLiwWTQnw
+vCyTcaRFmS4LaW8jEGLDyzyormLsc2p1RyT1WuwCd9R7hcVYsID65OwqybEXTx7
kgQbudFkjN+wnHnPqPSBp56m1+glcWGuC0ZtuT/TOmB+W42VlHvXGGcN5HaoWjdi
hTkg04Fkpl53f2aDr94nOE+Xvz9Gcg==
=v2YE
-----END PGP SIGNATURE-----payloadX  tree 52a698edbd383e0b33a4b508131ac979a080b35d
parent e3dfa9bb0f24106d74afce2fc4844464182b843e
author Tom Papke <tpapke@palantir.com> 1686325068 +0100
committer Tom Papke <tpapke@palantir.com> 1686325068 +0100

Add long comment explainin the decision to construct a new Executor
uuja ^https://api.github.com/repos/palantir/atlasdb/commits/be49de0bbfd2c4efbffbbd017120c433a7060fe6html_urlShttps://github.com/palantir/atlasdb/commit/be49de0bbfd2c4efbffbbd017120c433a7060fe6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/be49de0bbfd2c4efbffbbd017120c433a7060fe6/commentsj` }(login	ToemmscheidJboj` MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5ja &https://api.github.com/users/Toemmscheja https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj` }(ja 	Toemmscheja Jboj` MDQ6VXNlcjQzNjc1NDkwja 4https://avatars.githubusercontent.com/u/43675490?v=4ja h5ja &https://api.github.com/users/Toemmscheja https://github.com/Toemmscheja 0https://api.github.com/users/Toemmsche/followersja =https://api.github.com/users/Toemmsche/following{/other_user}j!a 6https://api.github.com/users/Toemmsche/gists{/gist_id}j#a =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j%a 4https://api.github.com/users/Toemmsche/subscriptionsj'a +https://api.github.com/users/Toemmsche/orgsj)a ,https://api.github.com/users/Toemmsche/reposj+a 7https://api.github.com/users/Toemmsche/events{/privacy}j-a 6https://api.github.com/users/Toemmsche/received_eventsj/a Userj1a uparents]}(j` (e3dfa9bb0f24106d74afce2fc4844464182b843eja ^https://api.github.com/repos/palantir/atlasdb/commits/e3dfa9bb0f24106d74afce2fc4844464182b843eja Shttps://github.com/palantir/atlasdb/commit/e3dfa9bb0f24106d74afce2fc4844464182b843euastats}(totalK
	additionsK		deletionsKufiles]}(j` (97269d58b8087f93703cdef7a9668306b7e961d8filenameClock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javastatusmodifiedjKa K	jLa KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/be49de0bbfd2c4efbffbbd017120c433a7060fe6/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/be49de0bbfd2c4efbffbbd017120c433a7060fe6/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=be49de0bbfd2c4efbffbbd017120c433a7060fe6patchX(  @@ -1338,11 +1338,19 @@ private final class ThreadInfoSnapshotRunner {
         private final Optional<ScheduledFuture<?>> scheduledFuture;
 
         private ThreadInfoSnapshotRunner() {
+            // Although LockServiceImpl is passed an executor, which is used by other background tasks like
+            // LockReapRunner, taking periodic snapshots of the current lock state requires a ScheduledExecutor.
+            // Since there is no scheduled counterpart to a CachedThreadPoolExecutor, we cannot just pass a
+            // scheduled executor to LockServiceImpl without possibly altering concurrent scaling behavior.
+            // Hence, the decision was made to construct a new executor instead, ignoring the one passed in the
+            // LockServiceImpl constructor. This decision should be revisited/reverted if
+            // - we decide to pass ScheduledExecutors for LockServiceImpl
+            // - we have the ability to wrap an existing executor to create a scheduled variant
             this.scheduledExecutor = PTExecutors.newSingleThreadScheduledExecutor();
             if (collectThreadInfo) {
                 ScheduledFuture<?> future = scheduledExecutor.scheduleWithFixedDelay(
                         () -> {
-                            ThreadNames.setThreadName(Thread.currentThread(), " Thread Info Snapshotter");
+                            ThreadNames.setThreadName(Thread.currentThread(), "Thread Info Snapshotter");
                             updateThreadInfoSnapshot();
                         },
                         0,uau(f648c28d04b4ee51cbc97780408dc443857a03f9}(sha(f648c28d04b4ee51cbc97780408dc443857a03f9node_idEC_kwDOAjP5fdoAKGY2NDhjMjhkMDRiNGVlNTFjYmM5Nzc4MDQwOGRjNDQzODU3YTAzZjkcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-08-18T13:31:04Zu	committer}(jha GitHubjja noreply@github.comjla 2023-08-18T13:31:04Zumessagethrow only once when leadership is lost (#6711)

Throw not current leader exception only once per instance. This should prevent multiple class creations, thus preventing resource contention and resource leakage.tree}(j`a (44a5dab2b54ef5902059cf333b5aeed56966430curl`https://api.github.com/repos/palantir/atlasdb/git/trees/44a5dab2b54ef5902059cf333b5aeed56966430cujxa bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f648c28d04b4ee51cbc97780408dc443857a03f9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk33KYCRBK7hj4Ov3rIwAA0wsIAIF+LbBARmgNDFb5eGiZn/M6
hZ9goF9MLGj/uuaPgiQm0dbeZtfC5J+lk9l9tmRN4GvAhISogK4b0v9e+8fMP6Sf
ZGLjrhV4ngt2B6siXqRDIavdXBpEgfNaAxPZrWtsy+Iy1FTc0oA73bn77wye1cbw
Ms9sVrFFWB2lNw+X/MgtG/t9Qqm2I683k5+z6wId/RWEU2LoDPHQf+85v3F4y5DP
ngZUD5bkkweB0kextiCsh/s9UEhKI0fcA5z0n0pa7J9F4NwXejj/NFDonvqL1d1D
dp4y3L67QumXwmSEtDMTfPzggZ/AHCC2oy9z7F7ucYC5/3JR9BUHd2LtskZ47BE=
=/b5+
-----END PGP SIGNATURE-----
payloadX  tree 44a5dab2b54ef5902059cf333b5aeed56966430c
parent 78d595ff4fc963ae112f48198af44d9121e0ba7a
author Sam-Kramer <sam.c.kramer@gmail.com> 1692365464 +0100
committer GitHub <noreply@github.com> 1692365464 +0000

throw only once when leadership is lost (#6711)

Throw not current leader exception only once per instance. This should prevent multiple class creations, thus preventing resource contention and resource leakage. 
uujxa ^https://api.github.com/repos/palantir/atlasdb/commits/f648c28d04b4ee51cbc97780408dc443857a03f9html_urlShttps://github.com/palantir/atlasdb/commit/f648c28d04b4ee51cbc97780408dc443857a03f9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f648c28d04b4ee51cbc97780408dc443857a03f9/commentsjfa }(login
Sam-KrameridJ^2_ jba MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jxa 'https://api.github.com/users/Sam-Kramerja https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujna }(ja web-flowja J/jba MDQ6VXNlcjE5ODY0NDQ3ja 4https://avatars.githubusercontent.com/u/19864447?v=4ja h5jxa %https://api.github.com/users/web-flowja https://github.com/web-flowja /https://api.github.com/users/web-flow/followersja <https://api.github.com/users/web-flow/following{/other_user}ja 5https://api.github.com/users/web-flow/gists{/gist_id}ja <https://api.github.com/users/web-flow/starred{/owner}{/repo}ja 3https://api.github.com/users/web-flow/subscriptionsja *https://api.github.com/users/web-flow/orgsja +https://api.github.com/users/web-flow/reposja 6https://api.github.com/users/web-flow/events{/privacy}ja 5https://api.github.com/users/web-flow/received_eventsja Userja uparents]}(j`a (78d595ff4fc963ae112f48198af44d9121e0ba7ajxa ^https://api.github.com/repos/palantir/atlasdb/commits/78d595ff4fc963ae112f48198af44d9121e0ba7aja Shttps://github.com/palantir/atlasdb/commit/78d595ff4fc963ae112f48198af44d9121e0ba7auastats}(totalK.	additionsK&	deletionsKufiles](}(j`a (8a71e873186bb672aea6b894cf713621b1c19547filename$changelog/@unreleased/pr-6711.v2.ymlstatusaddedja Kja K changesKblob_url|https://github.com/palantir/atlasdb/blob/f648c28d04b4ee51cbc97780408dc443857a03f9/changelog%2F%40unreleased%2Fpr-6711.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/f648c28d04b4ee51cbc97780408dc443857a03f9/changelog%2F%40unreleased%2Fpr-6711.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6711.v2.yml?ref=f648c28d04b4ee51cbc97780408dc443857a03f9patchX*  @@ -0,0 +1,7 @@
+type: improvement
+improvement:
+  description: Throw not current leader exception only once per instance. This should
+    prevent multiple class creations, thus preventing resource contention and resource
+    leakage.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6711u}(j`a (312dfc06de521f1b5a6abdcce348470f61da4b80ja ]timelock-impl/src/main/java/com/palantir/atlasdb/timelock/paxos/PaxosTimestampBoundStore.java      ja modifiedja Kja Kja Kja https://github.com/palantir/atlasdb/blob/f648c28d04b4ee51cbc97780408dc443857a03f9/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javaja https://github.com/palantir/atlasdb/raw/f648c28d04b4ee51cbc97780408dc443857a03f9/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javaja https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.java?ref=f648c28d04b4ee51cbc97780408dc443857a03f9ja Xf  @@ -16,12 +16,12 @@
 package com.palantir.atlasdb.timelock.paxos;
 
 import com.google.common.annotations.VisibleForTesting;
-import com.google.common.base.Preconditions;
 import com.google.common.collect.Ordering;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.timelock.paxos.PaxosQuorumCheckingCoalescingFunction.PaxosContainer;
 import com.palantir.common.remoting.ServiceNotAvailableException;
 import com.palantir.leader.NotCurrentLeaderException;
+import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -58,6 +58,9 @@ public class PaxosTimestampBoundStore implements TimestampBoundStore {
     @GuardedBy("this")
     private SequenceAndBound agreedState;
 
+    @GuardedBy("this")
+    private boolean hasLostLeadership = false;
+
     public PaxosTimestampBoundStore(
             PaxosProposer proposer,
             PaxosLearner knowledge,
@@ -175,7 +178,8 @@ SequenceAndBound forceAgreedState(long seq, @Nullable Long oldState) {
             try {
                 byte[] acceptedValue = proposer.propose(seq, oldState == null ? null : PtBytes.toBytes(oldState));
                 // propose must never return null.  We only pass in null for things we know are agreed upon already.
-                Preconditions.checkNotNull(acceptedValue, "Proposed value can't be null, but was in sequence %s", seq);
+                Preconditions.checkNotNull(
+                        acceptedValue, "Proposed value can't be null, but was in sequence", SafeArg.of("seq", seq));
                 return ImmutableSequenceAndBound.of(seq, PtBytes.toLong(acceptedValue));
             } catch (PaxosRoundFailureException e) {
                 waitForRandomBackoff(e, Thread::sleep);
@@ -221,13 +225,14 @@ private Optional<SequenceAndBound> getLearnedState(long seq) {
      */
     @Override
     public synchronized void storeUpperLimit(long limit) throws MultipleRunningTimestampServiceError {
+        Preconditions.checkState(!hasLostLeadership, "Cannot store upper limit as leadership has been lost.");
         long newSeq = PaxosAcceptor.NO_LOG_ENTRY + 1;
         if (agreedState != null) {
             Preconditions.checkArgument(
                     limit >= agreedState.getBound(),
-                    "Tried to store an upper limit %s less than the current limit %s",
-                    limit,
-                    agreedState.getBound());
+                    "Tried to store an upper limit less than the current limit",
+                    SafeArg.of("proposedLimit", limit),
+                    SafeArg.of("currentLimit", agreedState.getBound()));
             newSeq = agreedState.getSeqId() + 1;
         }
         while (true) {
@@ -252,7 +257,8 @@ public synchronized void storeUpperLimit(long limit) throws MultipleRunningTimes
                                     + " lost and regained leadership. For safety, we are now stopping this service.",
                             SafeArg.of("newLimit", newLimit),
                             SafeArg.of("target", limit));
-                    throw new NotCurrentLeaderException(String.format(
+
+                    throwNotCurrentLeaderException(String.format(
                             "We updated the timestamp limit to %s, which was less than our target %s.",
                             newLimit, limit));
                 }
@@ -280,7 +286,7 @@ private void checkAgreedBoundIsOurs(long limit, long newSeq, PaxosValue value) t
                             + " The offending bound was '%s'; we tried to propose"
                             + " a bound of '%s'. (The offending Paxos value was '%s'.)",
                     newSeq, value.getLeaderUUID(), proposer.getUuid(), PtBytes.toLong(value.getData()), limit, value);
-            throw new NotCurrentLeaderException(errorMsg);
+            throwNotCurrentLeaderException(errorMsg);
         }
         DebugLogger.logger.info(
                 "Trying to store limit '{}' for sequence '{}' yielded consensus on the value '{}'.",
@@ -289,6 +295,11 @@ private void checkAgreedBoundIsOurs(long limit, long newSeq, PaxosValue value) t
                 SafeArg.of("paxosValue", value));
     }
 
+    private synchronized void throwNotCurrentLeaderException(String message) {
+        hasLostLeadership = true;
+        throw new NotCurrentLeaderException(message);
+    }
+
     /**
      * Executes a backoff action which is given a random amount of time to wait in milliseconds. This is used in Paxos
      * to resolve multiple concurrent proposals. Users are allowed to specify their own backoff action,u}(j`a (79cc5c2ecb35d733a79932659d8cf09810a66cd0ja atimelock-impl/src/test/java/com/palantir/atlasdb/timelock/paxos/PaxosTimestampBoundStoreTest.javaja modifiedja K
ja Kja Kja https://github.com/palantir/atlasdb/blob/f648c28d04b4ee51cbc97780408dc443857a03f9/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.javaja https://github.com/palantir/atlasdb/raw/f648c28d04b4ee51cbc97780408dc443857a03f9/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.javaja https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.java?ref=f648c28d04b4ee51cbc97780408dc443857a03f9ja X  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.timelock.paxos;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static java.util.stream.Collectors.toList;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
@@ -34,6 +35,7 @@
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.leader.NotCurrentLeaderException;
 import com.palantir.leader.proxy.ToggleableExceptionProxy;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.paxos.Client;
 import com.palantir.paxos.PaxosAcceptor;
 import com.palantir.paxos.PaxosAcceptorNetworkClient;
@@ -241,12 +243,22 @@ public void retriesProposeUntilSuccessful() throws Exception {
     }
 
     @Test
-    public void throwsIfBoundUnexpectedlyChangedUnderUs() {
+    public void throwsNotCurrentLeaderExceptionIfBoundUnexpectedlyChangedUnderUs() {
         PaxosTimestampBoundStore additionalStore = createPaxosTimestampBoundStore(1);
         additionalStore.storeUpperLimit(TIMESTAMP_1);
         assertThatThrownBy(() -> store.storeUpperLimit(TIMESTAMP_2)).isInstanceOf(NotCurrentLeaderException.class);
     }
 
+    @Test
+    public void throwsSafeIllegalStateExceptionIfCalledAfterNotCurrentLeaderException() {
+        PaxosTimestampBoundStore additionalStore = createPaxosTimestampBoundStore(1);
+        additionalStore.storeUpperLimit(TIMESTAMP_1);
+        assertThatThrownBy(() -> store.storeUpperLimit(TIMESTAMP_2)).isInstanceOf(NotCurrentLeaderException.class);
+        assertThatLoggableExceptionThrownBy(() -> store.storeUpperLimit(TIMESTAMP_2))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Cannot store upper limit as leadership has been lost.");
+    }
+
     @Test
     public void canReadStateFromDistributedLogs() {
         PaxosTimestampBoundStore additionalStore = createPaxosTimestampBoundStore(1);ueu(acf61cc4484e348b86445324e858eb1093c2dfb3}(sha(acf61cc4484e348b86445324e858eb1093c2dfb3node_idEC_kwDOAjP5fdoAKGFjZjYxY2M0NDg0ZTM0OGI4NjQ0NTMyNGU4NThlYjEwOTNjMmRmYjMcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-05-05T18:15:45Zu	committer}(ja GitHubja noreply@github.comja 2023-05-05T18:15:45ZumessagebAvoid boxing for Cassandra known port checks (#6562)

Avoid boxing for Cassandra known port checkstree}(ja (863519d011b02b3209feccd886a23afef236dfb2url`https://api.github.com/repos/palantir/atlasdb/git/trees/863519d011b02b3209feccd886a23afef236dfb2uja bhttps://api.github.com/repos/palantir/atlasdb/git/commits/acf61cc4484e348b86445324e858eb1093c2dfb3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkVUfRCRBK7hj4Ov3rIwAAO1AIABIRHnmNAgUWQjheC0oerPFe
gj+PHUu/gR4YPe/0+FFJyDoApN+eumlaLj3ud1i/j0vKdJuf+rCHvWh9M9oHQtPu
fQEYbEF7ls1Nfqc7OCJj/V473kPCbaD6UYV81sS4CkI8gq4yuwbi/IbTTV11mcYi
0XFI3Hpxgsr5313peeqb986WpPxLr2A5xWUmuaTEVu9bOiaav/vxmCvDvvdmoXQb
OPcM5tVNJa9nX3wxgbfQ1YiAl9t5z+PvJHdrzOthzS8sg6ghhya6LWbc8EFndH22
keoTAdhOQWNmnF39SLEBCVlpEFDsewP6oCDjSQe6Fitzv6HCb3776AhRJXnx6p0=
=eDw2
-----END PGP SIGNATURE-----
payloadX9  tree 863519d011b02b3209feccd886a23afef236dfb2
parent 89301daada3aa480a1d2baae560213a3292c52b9
author David Schlosnagle <davids@palantir.com> 1683310545 -0400
committer GitHub <noreply@github.com> 1683310545 +0000

Avoid boxing for Cassandra known port checks (#6562)

Avoid boxing for Cassandra known port checks
uuja ^https://api.github.com/repos/palantir/atlasdb/commits/acf61cc4484e348b86445324e858eb1093c2dfb3html_urlShttps://github.com/palantir/atlasdb/commit/acf61cc4484e348b86445324e858eb1093c2dfb3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/acf61cc4484e348b86445324e858eb1093c2dfb3/commentsja }(loginschlosnaidMBja MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5ja %https://api.github.com/users/schlosnaj
b https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuja }(jb web-flowjb J/ja MDQ6VXNlcjE5ODY0NDQ3jb 4https://avatars.githubusercontent.com/u/19864447?v=4jb h5ja %https://api.github.com/users/web-flowj
b https://github.com/web-flowjb /https://api.github.com/users/web-flow/followersjb <https://api.github.com/users/web-flow/following{/other_user}jb 5https://api.github.com/users/web-flow/gists{/gist_id}j!b <https://api.github.com/users/web-flow/starred{/owner}{/repo}j#b 3https://api.github.com/users/web-flow/subscriptionsj%b *https://api.github.com/users/web-flow/orgsj'b +https://api.github.com/users/web-flow/reposj)b 6https://api.github.com/users/web-flow/events{/privacy}j+b 5https://api.github.com/users/web-flow/received_eventsj-b Userj/b uparents]}(ja (89301daada3aa480a1d2baae560213a3292c52b9ja ^https://api.github.com/repos/palantir/atlasdb/commits/89301daada3aa480a1d2baae560213a3292c52b9j
b Shttps://github.com/palantir/atlasdb/commit/89301daada3aa480a1d2baae560213a3292c52b9uastats}(totalK"	additionsK	deletionsKufiles](}(ja (a1974a0a70f2e9dc1483e8b6fcc59cc3a141917bfilenamebatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javastatusmodifiedjIb K	jJb K	changesKblob_urlhttps://github.com/palantir/atlasdb/blob/acf61cc4484e348b86445324e858eb1093c2dfb3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/acf61cc4484e348b86445324e858eb1093c2dfb3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=acf61cc4484e348b86445324e858eb1093c2dfb3patchX	  @@ -17,7 +17,6 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
-import com.google.common.collect.FluentIterable;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableRangeMap;
@@ -62,13 +61,13 @@
 import java.util.Comparator;
 import java.util.HashMap;
 import java.util.HashSet;
-import java.util.Iterator;
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
 import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Optional;
+import java.util.PrimitiveIterator.OfInt;
 import java.util.Random;
 import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
@@ -77,6 +76,7 @@
 import java.util.function.Predicate;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import java.util.stream.Stream;
 import org.apache.cassandra.thrift.EndpointDetails;
 import org.apache.cassandra.thrift.TokenRange;
@@ -306,16 +306,16 @@ private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) th
     }
 
     private int getKnownPort() throws UnknownHostException {
-        // explicitly not using streams due to allocation overhead
-        return onlyPort(FluentIterable.concat(
-                        FluentIterable.from(currentPools.keySet()).transform(CassandraServer::proxy),
-                        getServersSocketAddressesFromConfig())
-                .transform(InetSocketAddress::getPort));
+        // Avoid allocations and intermediate collection as this is on hot path
+        return only(Stream.concat(
+                        currentPools.keySet().stream().map(CassandraServer::proxy),
+                        getServersSocketAddressesFromConfig().stream())
+                .mapToInt(InetSocketAddress::getPort));
     }
 
     @VisibleForTesting
-    static int onlyPort(Iterable<? extends Integer> iterable) throws UnknownHostException {
-        Iterator<? extends Integer> iterator = iterable.iterator();
+    static int only(IntStream intStream) throws UnknownHostException {
+        OfInt iterator = intStream.iterator();
         if (!iterator.hasNext()) {
             throw new UnknownHostException("No single known port");
         }u}(ja (ea93d4225293149bfc275c742ea245b6b263274fjOb fatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraServiceTest.javajQb modifiedjIb KjJb KjSb KjTb https://github.com/palantir/atlasdb/blob/acf61cc4484e348b86445324e858eb1093c2dfb3/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javajVb https://github.com/palantir/atlasdb/raw/acf61cc4484e348b86445324e858eb1093c2dfb3/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javajXb https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.java?ref=acf61cc4484e348b86445324e858eb1093c2dfb3jZb X  @@ -33,7 +33,6 @@
 import com.palantir.refreshable.Refreshable;
 import java.net.InetSocketAddress;
 import java.net.UnknownHostException;
-import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.ThreadLocalRandom;
@@ -272,12 +271,10 @@ public void getRandomHostByActiveConnectionsReturnsDesiredHost() {
 
     @Test
     public void ports() throws Exception {
-        assertThat(CassandraService.onlyPort(List.of(1, 1, 1))).isEqualTo(1);
-        assertThat(IntStream.generate(() -> 4224).boxed().limit(15).collect(Collectors.toList()))
-                .hasSize(15)
-                .satisfies(cluster ->
-                        assertThat(CassandraService.onlyPort(cluster)).isEqualTo(4224));
-        assertThatThrownBy(() -> CassandraService.onlyPort(List.of(1, 2, 1)))
+        assertThat(CassandraService.only(IntStream.of(1, 1, 1))).isEqualTo(1);
+        assertThat(CassandraService.only(IntStream.generate(() -> 4224).limit(15)))
+                .isEqualTo(4224);
+        assertThatThrownBy(() -> CassandraService.only(IntStream.of(1, 2, 1)))
                 .isInstanceOf(UnknownHostException.class)
                 .hasMessageContaining("No single known port");
     }u}(ja (b4f0f9cfa1631ef560d32a317b1d9e42a3cac71fjOb $changelog/@unreleased/pr-6562.v2.ymljQb addedjIb KjJb K jSb KjTb |https://github.com/palantir/atlasdb/blob/acf61cc4484e348b86445324e858eb1093c2dfb3/changelog%2F%40unreleased%2Fpr-6562.v2.ymljVb {https://github.com/palantir/atlasdb/raw/acf61cc4484e348b86445324e858eb1093c2dfb3/changelog%2F%40unreleased%2Fpr-6562.v2.ymljXb https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6562.v2.yml?ref=acf61cc4484e348b86445324e858eb1093c2dfb3jZb @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Avoid boxing for Cassandra known port checks
+  links:
+  - https://github.com/palantir/atlasdb/pull/6562ueu(8b10152e066488cd8226106bbf4105200ae03336}(sha(8b10152e066488cd8226106bbf4105200ae03336node_idEC_kwDOAjP5fdoAKDhiMTAxNTJlMDY2NDg4Y2Q4MjI2MTA2YmJmNDEwNTIwMGFlMDMzMzYcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-07-21T19:01:21Zu	committer}(jvb svc-autoreleasejxb -pd-foundry-infrastructure-notify@palantir.comjzb 2023-07-21T19:01:21ZumessageAutorelease 0.901.0

[skip ci]tree}(jnb (8c5bd5084642d3c8d0977cf4045dd5ff3cff60c7url`https://api.github.com/repos/palantir/atlasdb/git/trees/8c5bd5084642d3c8d0977cf4045dd5ff3cff60c7ujb bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8b10152e066488cd8226106bbf4105200ae03336
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmS61gYACgkQhbrR8ip7mDCuHgEAhwuYfhmQdbIDWv6zfcRLJ/69
A+2V+5kP3GLVujSlfGcBAOeGYzUWeIkFM+slbYNHTLGTd4PFJQRK6v/gpZbjh2gx
=oUny
-----END PGP SIGNATURE-----
payloadX0  tree 8c5bd5084642d3c8d0977cf4045dd5ff3cff60c7
parent 499a54762e5ec059975d08031d4be0fa010137e3
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1689966081 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1689966081 +0000

Autorelease 0.901.0

[skip ci]uujb ^https://api.github.com/repos/palantir/atlasdb/commits/8b10152e066488cd8226106bbf4105200ae03336html_urlShttps://github.com/palantir/atlasdb/commit/8b10152e066488cd8226106bbf4105200ae03336comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8b10152e066488cd8226106bbf4105200ae03336/commentsjtb }(loginsvc-autoreleaseidJ(jpb MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5jb ,https://api.github.com/users/svc-autoreleasejb "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj|b }(jb svc-autoreleasejb J(jpb MDQ6VXNlcjUxNzE4MzQ2jb 4https://avatars.githubusercontent.com/u/51718346?v=4jb h5jb ,https://api.github.com/users/svc-autoreleasejb "https://github.com/svc-autoreleasejb 6https://api.github.com/users/svc-autorelease/followersjb Chttps://api.github.com/users/svc-autorelease/following{/other_user}jb <https://api.github.com/users/svc-autorelease/gists{/gist_id}jb Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jb :https://api.github.com/users/svc-autorelease/subscriptionsjb 1https://api.github.com/users/svc-autorelease/orgsjb 2https://api.github.com/users/svc-autorelease/reposjb =https://api.github.com/users/svc-autorelease/events{/privacy}jb <https://api.github.com/users/svc-autorelease/received_eventsjb Userjb uparents]}(jnb (499a54762e5ec059975d08031d4be0fa010137e3jb ^https://api.github.com/repos/palantir/atlasdb/commits/499a54762e5ec059975d08031d4be0fa010137e3jb Shttps://github.com/palantir/atlasdb/commit/499a54762e5ec059975d08031d4be0fa010137e3uastats}(totalK 	additionsK 	deletionsK ufiles](}(jnb (0ec771af62ea2a6ddaf5d9b6139d48293d4a25a7filename changelog/0.901.0/pr-6640.v2.ymlstatusrenamedjb K jb K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/8b10152e066488cd8226106bbf4105200ae03336/changelog%2F0.901.0%2Fpr-6640.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/8b10152e066488cd8226106bbf4105200ae03336/changelog%2F0.901.0%2Fpr-6640.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.901.0%2Fpr-6640.v2.yml?ref=8b10152e066488cd8226106bbf4105200ae03336previous_filename$changelog/@unreleased/pr-6640.v2.ymlu}(jnb (529fa046cce7dd2027f9b419812813bb3a2540a8jb  changelog/0.901.0/pr-6676.v2.ymljb renamedjb K jb K jb K jb vhttps://github.com/palantir/atlasdb/blob/8b10152e066488cd8226106bbf4105200ae03336/changelog%2F0.901.0%2Fpr-6676.v2.ymljb uhttps://github.com/palantir/atlasdb/raw/8b10152e066488cd8226106bbf4105200ae03336/changelog%2F0.901.0%2Fpr-6676.v2.ymljb https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.901.0%2Fpr-6676.v2.yml?ref=8b10152e066488cd8226106bbf4105200ae03336jb $changelog/@unreleased/pr-6676.v2.ymlu}(jnb (c496eeef07c431ee355d88f1ca7abecdff679476jb  changelog/0.901.0/pr-6677.v2.ymljb renamedjb K jb K jb K jb vhttps://github.com/palantir/atlasdb/blob/8b10152e066488cd8226106bbf4105200ae03336/changelog%2F0.901.0%2Fpr-6677.v2.ymljb uhttps://github.com/palantir/atlasdb/raw/8b10152e066488cd8226106bbf4105200ae03336/changelog%2F0.901.0%2Fpr-6677.v2.ymljb https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.901.0%2Fpr-6677.v2.yml?ref=8b10152e066488cd8226106bbf4105200ae03336jb $changelog/@unreleased/pr-6677.v2.ymlueu(031cf862dff7fed53bbfb12f4609fd62b68769b2}(sha(031cf862dff7fed53bbfb12f4609fd62b68769b2node_idEC_kwDOAjP5fdoAKDAzMWNmODYyZGZmN2ZlZDUzYmJmYjEyZjQ2MDlmZDYyYjY4NzY5YjIcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-07-24T14:39:54Zu	committer}(jb GitHubjb noreply@github.comjc 2023-07-24T14:39:54Zumessage%Excavator:  Format Java files (#6633)tree}(jb (ed38c993467055009ddb25fd662fe410e2bbb220url`https://api.github.com/repos/palantir/atlasdb/git/trees/ed38c993467055009ddb25fd662fe410e2bbb220uj
c bhttps://api.github.com/repos/palantir/atlasdb/git/commits/031cf862dff7fed53bbfb12f4609fd62b68769b2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkvo06CRBK7hj4Ov3rIwAACwsIAEjhgMHkpnU3DtHx9CjbX29F
sipmHWO+M7piL0/PYLoP7AUda4V1YOEdCJcJQtKHAdXypDx+QxtZuvl+Sw1DkaEE
5A8TSO5hwR40D4oHUQfWxOy9HvSaeLalthlX+jsCammry2s3TogSYRW//X0qV8Kq
Oeerz0TELc6iilT5l78Blc87ECGmntqCL0jiU1HO5gqfuNG/FajXHf5skBYn7Hwd
U7e1j51bSEoeUT5LjjYpQ9DPiT7A3hYzFKW6MjW9UNmEVCurnahMgN0rXSlpIlMB
KUD+w+9332aSUy7lvQL1+hN5jN0/ovS4Ff4T8vLXTyapoDHZrheTWDEeGIMxoQs=
=ymAO
-----END PGP SIGNATURE-----
payloadX  tree ed38c993467055009ddb25fd662fe410e2bbb220
parent 71be8834dabf9b1f15366bf61843f9e91705f0da
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1690209594 -0700
committer GitHub <noreply@github.com> 1690209594 +0000

Excavator:  Format Java files (#6633)

 uuj
c ^https://api.github.com/repos/palantir/atlasdb/commits/031cf862dff7fed53bbfb12f4609fd62b68769b2html_urlShttps://github.com/palantir/atlasdb/commit/031cf862dff7fed53bbfb12f4609fd62b68769b2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/031cf862dff7fed53bbfb12f4609fd62b68769b2/commentsjb }(loginsvc-excavator-botidJjb MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j
c .https://api.github.com/users/svc-excavator-botjc $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminujc }(j c web-flowj"c J/jb MDQ6VXNlcjE5ODY0NDQ3j$c 4https://avatars.githubusercontent.com/u/19864447?v=4j&c h5j
c %https://api.github.com/users/web-flowjc https://github.com/web-flowj)c /https://api.github.com/users/web-flow/followersj+c <https://api.github.com/users/web-flow/following{/other_user}j-c 5https://api.github.com/users/web-flow/gists{/gist_id}j/c <https://api.github.com/users/web-flow/starred{/owner}{/repo}j1c 3https://api.github.com/users/web-flow/subscriptionsj3c *https://api.github.com/users/web-flow/orgsj5c +https://api.github.com/users/web-flow/reposj7c 6https://api.github.com/users/web-flow/events{/privacy}j9c 5https://api.github.com/users/web-flow/received_eventsj;c Userj=c uparents]}(jb (71be8834dabf9b1f15366bf61843f9e91705f0daj
c ^https://api.github.com/repos/palantir/atlasdb/commits/71be8834dabf9b1f15366bf61843f9e91705f0dajc Shttps://github.com/palantir/atlasdb/commit/71be8834dabf9b1f15366bf61843f9e91705f0dauastats}(totalK	additionsK	deletionsKufiles]}(jb (ebf20a208b87726f6e94b4e8b4361258f42810aefilenamebuild.gradlestatusmodifiedjWc KjXc KchangesKblob_url^https://github.com/palantir/atlasdb/blob/031cf862dff7fed53bbfb12f4609fd62b68769b2/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/031cf862dff7fed53bbfb12f4609fd62b68769b2/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=031cf862dff7fed53bbfb12f4609fd62b68769b2patchXw  @@ -17,7 +17,7 @@ buildscript {
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.33.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
         classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.3'uau(a5db530392136df1e9d8986516da0a254b61ca75}(sha(a5db530392136df1e9d8986516da0a254b61ca75node_idEC_kwDOAjP5fdoAKGE1ZGI1MzAzOTIxMzZkZjFlOWQ4OTg2NTE2ZGEwYTI1NGI2MWNhNzUcommit}(author}(name
Nimai Agarwalemailnagarwal@palantir.comdate2023-04-17T16:13:03Zu	committer}(jtc 
Nimai Agarwaljvc nagarwal@palantir.comjxc 2023-04-17T16:13:03ZumessageHAdded fastForwardTimestamp endpoint to conjure TimeLockManagementServicetree}(jlc (fa414175b871031bb545585b1c3e7ea4ad9b68f2url`https://api.github.com/repos/palantir/atlasdb/git/trees/fa414175b871031bb545585b1c3e7ea4ad9b68f2ujc bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a5db530392136df1e9d8986516da0a254b61ca75
comment_countK verification}(verifiedreasonno_user	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEJmdCZzv7/iUs98lyHp7dxz7XLrgFAmQ9cA8ACgkQHp7dxz7X
LrhC8ggAjGLUR8cm6TFoLDaVSiJ7pF/xbMgZdrrhF+HwFI/3Ae3yFCYyhiphcBzu
Yu9swNAVaobiYjPhbpaI+iHt+DJv63nqZdm1vxMHV8ofPLyusyp3N5uigIrxiQuS
+b9hL/BM64iphnrb5/Fs80zjpQgDkTPPBsBU8yefAlsf/ve9XEKgoOVk6b93pipX
cbuc+h/FlYdESNYniTvTyp7WUuoUuXtmHNTI9vVeGWkY4fRU7vEQu2u8dM5B7WAM
iqI8rON3gdrMqDS1vYycWimTCqTYzzc39zqcnnTU1odgdmO/yYsYQ4sWunccLXQ6
MjLuGy/swavzWTwctVMfBv1R5ETIwA==
=7uDT
-----END PGP SIGNATURE-----payloadX'  tree fa414175b871031bb545585b1c3e7ea4ad9b68f2
parent 5a1e86e8ab326717a679f0df1329141dea8519d8
author Nimai Agarwal <nagarwal@palantir.com> 1681747983 -0400
committer Nimai Agarwal <nagarwal@palantir.com> 1681747983 -0400

Added fastForwardTimestamp endpoint to conjure TimeLockManagementService
uujc ^https://api.github.com/repos/palantir/atlasdb/commits/a5db530392136df1e9d8986516da0a254b61ca75html_urlShttps://github.com/palantir/atlasdb/commit/a5db530392136df1e9d8986516da0a254b61ca75comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a5db530392136df1e9d8986516da0a254b61ca75/commentsjrc Njzc Nparents]}(jlc (5a1e86e8ab326717a679f0df1329141dea8519d8jc ^https://api.github.com/repos/palantir/atlasdb/commits/5a1e86e8ab326717a679f0df1329141dea8519d8jc Shttps://github.com/palantir/atlasdb/commit/5a1e86e8ab326717a679f0df1329141dea8519d8uastats}(totalK
	additionsK
	deletionsK ufiles]}(jlc (43b0c02a3466b112bafdd11527b681a23bcd9c7ffilename9timelock-api/src/main/conjure/timelock-management-api.ymlstatusmodifiedjc K
jc K changesK
blob_urlhttps://github.com/palantir/atlasdb/blob/a5db530392136df1e9d8986516da0a254b61ca75/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/a5db530392136df1e9d8986516da0a254b61ca75/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.yml?ref=a5db530392136df1e9d8986516da0a254b61ca75patchX  @@ -59,3 +59,16 @@ services:
           external intervention to start up the service again. The endpoint returns the (randomly generated) server id
           associated with server upon start up. A client can then make `getServerId` requests wherein change in
           server id would imply that the server was bounced.
+
+      fastForwardTimestamp:
+        http: POST /fastForward
+        args:
+          currentTimestamp:
+            type: safelong
+            param-type: query
+            docs: the largest timestamp issued until the fast-forward call
+        docs: |
+          Updates the timestamp service to the currentTimestamp to ensure that all fresh timestamps issued after
+          this request are greater than the current timestamp.
+          The caller of this is responsible for not using any of the fresh timestamps previously served to it,
+          and must call getFreshTimestamps() to ensure it is using timestamps after the fastforward point.uau(09046a3f8f4b7a6afc1b71d37d82743366eda06d}(sha(09046a3f8f4b7a6afc1b71d37d82743366eda06dnode_idEC_kwDOAjP5fdoAKDA5MDQ2YTNmOGY0YjdhNmFmYzFiNzFkMzdkODI3NDMzNjZlZGEwNmQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-06T21:05:23Zu	committer}(jc Jeremy Kongjc jkong@palantir.comjc 2023-06-06T21:05:23Zumessagesnapshot supporttree}(jc (c4cf712ed84b85431a90bfa7dfbe0ecfdaaf90acurl`https://api.github.com/repos/palantir/atlasdb/git/trees/c4cf712ed84b85431a90bfa7dfbe0ecfdaaf90acujc bhttps://api.github.com/repos/palantir/atlasdb/git/commits/09046a3f8f4b7a6afc1b71d37d82743366eda06d
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR/n5QACgkQTLdFKain
zjyMmQgAwZcYGI3JJcqqHzTXsw4qsXiJKDYUUc61sKEOmJ+AxAPoGNUSn0OVTGbv
V9q7pZaEXTQ3iK7pzCZsRlouVyQiFcCeAAYmUsl0YwbDK716Aen2mf+/RPl9h8wF
rj2n4LGXtjTUBw1O70JJgR367FV6hYPjgjKbb4ZKf6JlV49eMqQUV1d00vicBKqk
xOKtJVEBeTHpVI3yWzclr9mid1SErI71NEsZViCJ0HsYgSlfJX8EMkNNP5C6J/TB
j7mtpI3RGJTDhT8NBgqwnhJYJFG8cEp/qjVPp5ZUa4UBXfRE8GYrc0e2FSz7gjRF
v/pFhzoX5DcNIiTu0+XcoeTiTYL3hw==
=Wnfd
-----END PGP SIGNATURE-----payloadtree c4cf712ed84b85431a90bfa7dfbe0ecfdaaf90ac
parent 65eadc920dbc517358638c195f224ae5c053b20d
author Jeremy Kong <jkong@palantir.com> 1686085523 +0100
committer Jeremy Kong <jkong@palantir.com> 1686085523 +0100

snapshot support
uujc ^https://api.github.com/repos/palantir/atlasdb/commits/09046a3f8f4b7a6afc1b71d37d82743366eda06dhtml_urlShttps://github.com/palantir/atlasdb/commit/09046a3f8f4b7a6afc1b71d37d82743366eda06dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/09046a3f8f4b7a6afc1b71d37d82743366eda06d/commentsjc }(login
jeremyk-91idJZ jc MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jc 'https://api.github.com/users/jeremyk-91jc https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujc }(jc 
jeremyk-91jc JZ jc MDQ6VXNlcjU5NTU1MTA=jc 3https://avatars.githubusercontent.com/u/5955510?v=4jc h5jc 'https://api.github.com/users/jeremyk-91jc https://github.com/jeremyk-91jc 1https://api.github.com/users/jeremyk-91/followersjc >https://api.github.com/users/jeremyk-91/following{/other_user}jc 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jc >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jc 5https://api.github.com/users/jeremyk-91/subscriptionsjc ,https://api.github.com/users/jeremyk-91/orgsjc -https://api.github.com/users/jeremyk-91/reposjc 8https://api.github.com/users/jeremyk-91/events{/privacy}jc 7https://api.github.com/users/jeremyk-91/received_eventsjc Userjc uparents]}(jc (65eadc920dbc517358638c195f224ae5c053b20djc ^https://api.github.com/repos/palantir/atlasdb/commits/65eadc920dbc517358638c195f224ae5c053b20djc Shttps://github.com/palantir/atlasdb/commit/65eadc920dbc517358638c195f224ae5c053b20duastats}(totalKf	additionsKe	deletionsKufiles](}(jc (df44cd86caf6c1ec9443e1f5727908ddeee85561filenamekatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javastatusmodifiedjd Kjd KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/09046a3f8f4b7a6afc1b71d37d82743366eda06d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaraw_urlhttps://github.com/palantir/atlasdb/raw/09046a3f8f4b7a6afc1b71d37d82743366eda06d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=09046a3f8f4b7a6afc1b71d37d82743366eda06dpatchX  @@ -17,8 +17,11 @@
 package com.palantir.atlasdb.workload.invariant;
 
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.SimpleRangeQueryReader;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
@@ -27,6 +30,7 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.Map;
+import java.util.List;
 import java.util.Optional;
 
 /**
@@ -93,7 +97,14 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransact
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(
             WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
-        // TODO (jkong): Not implemented yet
+        List<ColumnValue> expectedReads = SimpleRangeQueryReader.createForSnapshot(readView)
+                .readRange(rowColumnRangeReadTransactionAction.originalQuery());
+        if (!expectedReads.equals(rowColumnRangeReadTransactionAction.columnsAndValues())) {
+            return Optional.of(InvalidWitnessedRowColumnRangeReadTransactionAction.builder()
+                    .witness(rowColumnRangeReadTransactionAction)
+                    .expectedColumnsAndValues(expectedReads)
+                    .build());
+        }
         return Optional.empty();
     }
 u}(jc (dca6f5c98c29c446fd3c025580cd0d98141bc1a7jd katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReader.javajd modifiedjd Kjd K j d Kj!d https://github.com/palantir/atlasdb/blob/09046a3f8f4b7a6afc1b71d37d82743366eda06d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj#d https://github.com/palantir/atlasdb/raw/09046a3f8f4b7a6afc1b71d37d82743366eda06d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj%d https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.java?ref=09046a3f8f4b7a6afc1b71d37d82743366eda06dj'd X2  @@ -17,6 +17,8 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.invariant.ValueAndMaybeTimestamp;
 import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.logsafe.SafeArg;
@@ -44,6 +46,11 @@ public static RangeQueryReader create(InMemoryTransactionReplayer replayer) {
         return new SimpleRangeQueryReader(replayer::getValues);
     }
 
+    public static RangeQueryReader createForSnapshot(
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> readView) {
+        return new SimpleRangeQueryReader(() -> readView.getSnapshot().mapValues(ValueAndMaybeTimestamp::value));
+    }
+
     @Override
     public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction) {
         Map<TableAndWorkloadCell, Optional<Integer>> allValues = rawValueSupplier.get();u}(jc (c51ae3380a67f519f6e9a882625f2a22fa5a1c9djd hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javajd modifiedjd KRjd K j d KRj!d https://github.com/palantir/atlasdb/blob/09046a3f8f4b7a6afc1b71d37d82743366eda06d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj#d https://github.com/palantir/atlasdb/raw/09046a3f8f4b7a6afc1b71d37d82743366eda06d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj%d https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=09046a3f8f4b7a6afc1b71d37d82743366eda06dj'd X  @@ -18,13 +18,19 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
 import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -167,4 +173,80 @@ public void properlyReplaysReadsAndWrites() {
         SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
         assertThat(invalidTransactions).isEmpty();
     }
+
+    @Test
+    public void rowColumnRangeScanNotExpectedToReadColumnsCommittingAfterOurStart() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .write(5, 20, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(15L)
+                .startTransaction(12L)
+                .write(5, 30, WorkloadTestHelpers.VALUE_ONE + WorkloadTestHelpers.VALUE_TWO)
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(
+                                ColumnValue.of(10, WorkloadTestHelpers.VALUE_ONE),
+                                ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE + WorkloadTestHelpers.VALUE_TWO)))
+                .endTransaction(21L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void rowColumnRangeScanFlagsColumnCommittingAfterOurStartAsViolating() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(5L)
+                .write(5, 20, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(15L)
+                .startTransaction(12L)
+                .write(5, 30, WorkloadTestHelpers.VALUE_ONE)
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(
+                                ColumnValue.of(20, WorkloadTestHelpers.VALUE_TWO),
+                                ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
+                .endTransaction(21L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidTransaction.transaction().startTimestamp()).isEqualTo(12L);
+        assertThat(invalidTransaction.transaction().commitTimestamp()).contains(21L);
+
+        InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(
+                        InvalidWitnessedRowColumnRangeReadTransactionAction.class, invalidRowColumnRangeRead -> {
+                            assertThat(invalidRowColumnRangeRead.witness())
+                                    .isEqualTo(WitnessedRowColumnRangeReadTransactionAction.builder()
+                                            .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                                    .table(WorkloadTestHelpers.TABLE_1)
+                                                    .row(5)
+                                                    .columnRangeSelection(ColumnRangeSelection.builder()
+                                                            .build())
+                                                    .build())
+                                            .columnsAndValues(ImmutableList.of(
+                                                    ColumnValue.of(20, WorkloadTestHelpers.VALUE_TWO),
+                                                    ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
+                                            .build());
+                            assertThat(invalidRowColumnRangeRead.expectedColumnsAndValues())
+                                    .containsExactly(ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE));
+                        });
+    }
 }ueu(d2106039798497064207e6366fc95c76b7df3d3d}(sha(d2106039798497064207e6366fc95c76b7df3d3dnode_idEC_kwDOAjP5fdoAKGQyMTA2MDM5Nzk4NDk3MDY0MjA3ZTYzNjZmYzk1Yzc2YjdkZjNkM2Qcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-08-11T14:15:24Zu	committer}(jCd 	Tom PapkejEd tpapke@palantir.comjGd 2023-08-11T14:15:24Zumessage Make Visitor API change breakingtree}(j;d (046f9f017f92176f3e6a7700dfc576d4cb8e405curl`https://api.github.com/repos/palantir/atlasdb/git/trees/046f9f017f92176f3e6a7700dfc576d4cb8e405cujSd bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d2106039798497064207e6366fc95c76b7df3d3d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTWQnwACgkQmF9s0kaF
Iw0xcAf/SglcEFbr09CDBOsPNWzzHujjXN42v51C71JlyRS6B3IdJ4FC0/mn84V2
hK6O2wsyaVDvzqp95UDNcyAscvR5yk8xhwZKkhqbY7epMidDb5rCxIvmOog3v6TT
NUtYZ++thX4QBF+heItKvFqsW4v9QYeHc63tzyabynPPI7SoRP8OhseyKQ9kCyps
WOPTHxvP0tSFkGupPJnKNNvahgx/0NB1DdKZemnFBgeRutqtGKcu9FLrK1ve8nh8
7q7xzQH3YNbZ1WiWwuoun5tRM9ETVZtPvRSU+bPFLSx4aeh2pfr1/8u2zG+ZzU5R
C9AqvLo4F2jFg7KVaRoattlBsJg9aA==
=RCLW
-----END PGP SIGNATURE-----payloadtree 046f9f017f92176f3e6a7700dfc576d4cb8e405c
parent 234482b84cdcc61fdeb8bc0f351ebedddea98f62
author Tom Papke <tpapke@palantir.com> 1691763324 +0100
committer Tom Papke <tpapke@palantir.com> 1691763324 +0100

Make Visitor API change breaking
uujSd ^https://api.github.com/repos/palantir/atlasdb/commits/d2106039798497064207e6366fc95c76b7df3d3dhtml_urlShttps://github.com/palantir/atlasdb/commit/d2106039798497064207e6366fc95c76b7df3d3dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d2106039798497064207e6366fc95c76b7df3d3d/commentsjAd }(login	ToemmscheidJboj=d MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jSd &https://api.github.com/users/Toemmschejad https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujId }(jfd 	Toemmschejhd Jboj=d MDQ6VXNlcjQzNjc1NDkwjjd 4https://avatars.githubusercontent.com/u/43675490?v=4jld h5jSd &https://api.github.com/users/Toemmschejad https://github.com/Toemmschejod 0https://api.github.com/users/Toemmsche/followersjqd =https://api.github.com/users/Toemmsche/following{/other_user}jsd 6https://api.github.com/users/Toemmsche/gists{/gist_id}jud =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jwd 4https://api.github.com/users/Toemmsche/subscriptionsjyd +https://api.github.com/users/Toemmsche/orgsj{d ,https://api.github.com/users/Toemmsche/reposj}d 7https://api.github.com/users/Toemmsche/events{/privacy}jd 6https://api.github.com/users/Toemmsche/received_eventsjd Userjd uparents]}(j;d (234482b84cdcc61fdeb8bc0f351ebedddea98f62jSd ^https://api.github.com/repos/palantir/atlasdb/commits/234482b84cdcc61fdeb8bc0f351ebedddea98f62jad Shttps://github.com/palantir/atlasdb/commit/234482b84cdcc61fdeb8bc0f351ebedddea98f62uastats}(totalK/	additionsK	deletionsKufiles](}(j;d (e8d08dc69e385f4a84ea0cd3f671a265185394c9filenamejatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/cache/FilteringValueCacheSnapshot.javastatusmodifiedjd Kjd KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/d2106039798497064207e6366fc95c76b7df3d3d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FFilteringValueCacheSnapshot.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d2106039798497064207e6366fc95c76b7df3d3d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FFilteringValueCacheSnapshot.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FFilteringValueCacheSnapshot.java?ref=d2106039798497064207e6366fc95c76b7df3d3dpatchX  @@ -20,9 +20,11 @@
 import com.palantir.atlasdb.keyvalue.api.CellReference;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.watch.ChangeMetadata;
 import com.palantir.lock.watch.CommitUpdate;
 import com.palantir.lock.watch.CommitUpdate.Visitor;
 import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
 import java.util.stream.Collectors;
@@ -73,7 +75,9 @@ public LockedCells invalidateAll() {
             }
 
             @Override
-            public LockedCells invalidateSome(Set<LockDescriptor> invalidatedLocks) {
+            public LockedCells invalidateSome(
+                    Set<LockDescriptor> invalidatedLocks,
+                    Map<LockDescriptor, List<ChangeMetadata>> _aggregatedMetadata) {
                 return LockedCells.invalidateSome(invalidatedLocks);
             }
         });u}(j;d (e8caf42575cb893f52734c73f377eea31247cd26jd matlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/cache/LockWatchValueScopingCacheImpl.javajd modifiedjd Kjd Kjd Kjd https://github.com/palantir/atlasdb/blob/d2106039798497064207e6366fc95c76b7df3d3d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FLockWatchValueScopingCacheImpl.javajd https://github.com/palantir/atlasdb/raw/d2106039798497064207e6366fc95c76b7df3d3d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FLockWatchValueScopingCacheImpl.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FLockWatchValueScopingCacheImpl.java?ref=d2106039798497064207e6366fc95c76b7df3d3djd X  @@ -29,6 +29,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockWatchFailedException;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.watch.ChangeMetadata;
 import com.palantir.lock.watch.CommitUpdate;
 import com.palantir.lock.watch.LockWatchEvent;
 import com.palantir.lock.watch.LockWatchEventCache;
@@ -146,7 +147,9 @@ public Void invalidateAll() {
                 }
 
                 @Override
-                public Void invalidateSome(Set<LockDescriptor> invalidatedLocks) {
+                public Void invalidateSome(
+                        Set<LockDescriptor> invalidatedLocks,
+                        Map<LockDescriptor, List<ChangeMetadata>> _aggregatedMetadata) {
                     Set<CellReference> invalidatedCells = invalidatedLocks.stream()
                             .map(AtlasLockDescriptorUtils::candidateCells)
                             .flatMap(List::stream)u}(j;d (8143d7372cb2c0689affdef337869e5bbaccbf40jd batlasdb-impl-shared/src/test/java/com/palantir/atlasdb/keyvalue/api/watch/ClientLogEventsTest.javajd modifiedjd Kjd Kjd K
jd https://github.com/palantir/atlasdb/blob/d2106039798497064207e6366fc95c76b7df3d3d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FClientLogEventsTest.javajd https://github.com/palantir/atlasdb/raw/d2106039798497064207e6366fc95c76b7df3d3d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FClientLogEventsTest.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FClientLogEventsTest.java?ref=d2106039798497064207e6366fc95c76b7df3d3djd X  @@ -356,7 +356,9 @@ public Set<LockDescriptor> invalidateAll() {
             }
 
             @Override
-            public Set<LockDescriptor> invalidateSome(Set<LockDescriptor> invalidatedLocks) {
+            public Set<LockDescriptor> invalidateSome(
+                    Set<LockDescriptor> invalidatedLocks,
+                    Map<LockDescriptor, List<ChangeMetadata>> _aggregatedMetadata) {
                 return invalidatedLocks;
             }
         });
@@ -370,7 +372,9 @@ public Boolean invalidateAll() {
             }
 
             @Override
-            public Boolean invalidateSome(Set<LockDescriptor> invalidatedLocks) {
+            public Boolean invalidateSome(
+                    Set<LockDescriptor> invalidatedLocks,
+                    Map<LockDescriptor, List<ChangeMetadata>> _aggregatedMetadata) {
                 return false;
             }
         });
@@ -415,11 +419,6 @@ public Map<LockDescriptor, List<ChangeMetadata>> invalidateAll() {
             throw new SafeIllegalStateException("commit update was invalidate all");
         }
 
-        @Override
-        public Map<LockDescriptor, List<ChangeMetadata>> invalidateSome(Set<LockDescriptor> invalidatedLocks) {
-            throw new SafeIllegalStateException("invalidate some without metadata");
-        }
-
         @Override
         public Map<LockDescriptor, List<ChangeMetadata>> invalidateSome(
                 Set<LockDescriptor> invalidatedLocks, Map<LockDescriptor, List<ChangeMetadata>> aggregatedMetadata) {u}(j;d (f3a4aa1241b56c669f109a19db058dd54cccdf51jd qatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/keyvalue/api/watch/LockWatchEventCacheIntegrationTest.javajd modifiedjd Kjd Kjd Kjd https://github.com/palantir/atlasdb/blob/d2106039798497064207e6366fc95c76b7df3d3d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FLockWatchEventCacheIntegrationTest.javajd https://github.com/palantir/atlasdb/raw/d2106039798497064207e6366fc95c76b7df3d3d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FLockWatchEventCacheIntegrationTest.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FLockWatchEventCacheIntegrationTest.java?ref=d2106039798497064207e6366fc95c76b7df3d3djd X  @@ -41,6 +41,7 @@
 import com.palantir.lock.v2.LeadershipId;
 import com.palantir.lock.v2.Lease;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.ChangeMetadata;
 import com.palantir.lock.watch.CommitUpdate;
 import com.palantir.lock.watch.LockEvent;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
@@ -59,6 +60,8 @@
 import java.nio.file.Path;
 import java.nio.file.Paths;
 import java.time.Duration;
+import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
@@ -633,7 +636,8 @@ public Set<LockDescriptor> invalidateAll() {
         }
 
         @Override
-        public Set<LockDescriptor> invalidateSome(Set<LockDescriptor> invalidatedLocks) {
+        public Set<LockDescriptor> invalidateSome(
+                Set<LockDescriptor> invalidatedLocks, Map<LockDescriptor, List<ChangeMetadata>> _aggregatedMetadata) {
             return invalidatedLocks;
         }
     }u}(j;d (6fbf62bf9ca7336727a4867d9c91291e125f1254jd Hlock-api-objects/src/main/java/com/palantir/lock/watch/CommitUpdate.javajd modifiedjd Kjd Kjd Kjd https://github.com/palantir/atlasdb/blob/d2106039798497064207e6366fc95c76b7df3d3d/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FCommitUpdate.javajd https://github.com/palantir/atlasdb/raw/d2106039798497064207e6366fc95c76b7df3d3d/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FCommitUpdate.javajd https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FCommitUpdate.java?ref=d2106039798497064207e6366fc95c76b7df3d3djd X0  @@ -91,11 +91,7 @@ default <T> T accept(Visitor<T> visitor) {
     interface Visitor<T> {
         T invalidateAll();
 
-        T invalidateSome(Set<LockDescriptor> invalidatedLocks);
-
-        default T invalidateSome(
-                Set<LockDescriptor> invalidatedLocks, Map<LockDescriptor, List<ChangeMetadata>> aggregatedMetadata) {
-            return invalidateSome(invalidatedLocks);
-        }
+        T invalidateSome(
+                Set<LockDescriptor> invalidatedLocks, Map<LockDescriptor, List<ChangeMetadata>> aggregatedMetadata);
     }
 }u}(j;d (5c3bafacb0dda1121b4141b040aff4e921ec07b4jd ctimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchEventIntegrationTest.javajd modifiedjd Kjd Kjd K	jd https://github.com/palantir/atlasdb/blob/d2106039798497064207e6366fc95c76b7df3d3d/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javajd https://github.com/palantir/atlasdb/raw/d2106039798497064207e6366fc95c76b7df3d3d/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javajd https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.java?ref=d2106039798497064207e6366fc95c76b7df3d3djd Xu  @@ -571,7 +571,9 @@ public Set<LockDescriptor> invalidateAll() {
             }
 
             @Override
-            public Set<LockDescriptor> invalidateSome(Set<LockDescriptor> invalidatedLocks) {
+            public Set<LockDescriptor> invalidateSome(
+                    Set<LockDescriptor> invalidatedLocks,
+                    Map<LockDescriptor, List<ChangeMetadata>> _aggregatedMetadata) {
                 return invalidatedLocks;
             }
         }));
@@ -658,11 +660,6 @@ public Map<LockDescriptor, List<ChangeMetadata>> invalidateAll() {
             throw new SafeIllegalStateException("Should not be visiting invalidateAll update");
         }
 
-        @Override
-        public Map<LockDescriptor, List<ChangeMetadata>> invalidateSome(Set<LockDescriptor> invalidatedLocks) {
-            throw new SafeIllegalStateException("Should not be visiting invalidateSome update without metadata");
-        }
-
         @Override
         public Map<LockDescriptor, List<ChangeMetadata>> invalidateSome(
                 Set<LockDescriptor> invalidatedLocks, Map<LockDescriptor, List<ChangeMetadata>> aggregatedMetadata) {ueu(5e0a72721550b0ab65bde6f2071fe846466d7474}(sha(5e0a72721550b0ab65bde6f2071fe846466d7474node_idEC_kwDOAjP5fdoAKDVlMGE3MjcyMTU1MGIwYWI2NWJkZTZmMjA3MWZlODQ2NDY2ZDc0NzQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-24T22:01:19Zu	committer}(jd 
Sam Kramerjd skramer@palantir.comjd 2023-05-24T22:01:19Zumessage.Add random workflow, this better find a bug...tree}(jd (df739435153cae1a9256effb1b3b06ddece63d1durl`https://api.github.com/repos/palantir/atlasdb/git/trees/df739435153cae1a9256effb1b3b06ddece63d1dujd bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5e0a72721550b0ab65bde6f2071fe846466d7474
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRuiTAACgkQmPPOpKR4
XS2TzAgA0Y49gSdy8UdMPejoPExJBhWK6M4FgGRk255hKeLWWhysaHIWcPixikgA
yZeW0Ub1PwfJ2Z0pUjpVfuqeIepCiCjqWkJg6p6GkiKRiMS6rAjBS4TGbCP274YI
bXy4a3k2p/v5bSu/TvocmAdmfqGxMTYGH3tSWa5L29lWQmfdXfZlEh1FwjfPdCuc
Mic8HzDRugRrWuB9De+tfBbQCPOjG5V/T3PkMX0mH/0NYylgGiGw+Fxhcn97oP/o
2nfTgGCWOMasCAzmYYpwqHL4Mn5diX5PBWZpSJ6GigvardSLKMvWeDgdGE2LFR4V
vEfCZ+qmOeA5eOrQOthlz21orQMpaA==
=uoFv
-----END PGP SIGNATURE-----payloadX  tree df739435153cae1a9256effb1b3b06ddece63d1d
parent 8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813
author Sam Kramer <skramer@palantir.com> 1684965679 +0100
committer Sam Kramer <skramer@palantir.com> 1684965679 +0100

Add random workflow, this better find a bug...
uujd ^https://api.github.com/repos/palantir/atlasdb/commits/5e0a72721550b0ab65bde6f2071fe846466d7474html_urlShttps://github.com/palantir/atlasdb/commit/5e0a72721550b0ab65bde6f2071fe846466d7474comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5e0a72721550b0ab65bde6f2071fe846466d7474/commentsjd }(login
Sam-KrameridJ^2_ jd MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4      gravatar_idh5jd 'https://api.github.com/users/Sam-Kramerj e https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujd }(je 
Sam-Kramerje J^2_ jd MDQ6VXNlcjYyMzg4MTQ=j	e 3https://avatars.githubusercontent.com/u/6238814?v=4je h5jd 'https://api.github.com/users/Sam-Kramerj e https://github.com/Sam-Kramerje 1https://api.github.com/users/Sam-Kramer/followersje >https://api.github.com/users/Sam-Kramer/following{/other_user}je 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}je >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}je 5https://api.github.com/users/Sam-Kramer/subscriptionsje ,https://api.github.com/users/Sam-Kramer/orgsje -https://api.github.com/users/Sam-Kramer/reposje 8https://api.github.com/users/Sam-Kramer/events{/privacy}je 7https://api.github.com/users/Sam-Kramer/received_eventsj e Userj"e uparents]}(jd (8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813jd ^https://api.github.com/repos/palantir/atlasdb/commits/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813j e Shttps://github.com/palantir/atlasdb/commit/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813uastats}(totalM 	additionsM 	deletionsK ufiles](}(jd (e0b5354ebacbf6077ea736f29765fb8d71159fcdfilenamematlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowConfiguration.javastatusaddedj<e K:j=e K changesK:blob_urlhttps://github.com/palantir/atlasdb/blob/5e0a72721550b0ab65bde6f2071fe846466d7474/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5e0a72721550b0ab65bde6f2071fe846466d7474/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.java?ref=5e0a72721550b0ab65bde6f2071fe846466d7474patchX  @@ -0,0 +1,58 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableRandomWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableRandomWorkflowConfiguration.class)
+@JsonTypeName(RandomWorkflowConfiguration.TYPE)
+public interface RandomWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "random";
+
+    TableConfiguration tableConfiguration();
+
+    @Value.Default
+    default Integer maxWrites() {
+        return 5;
+    }
+
+    @Value.Default
+    default Integer maxReads() {
+        return 5;
+    }
+
+    @Value.Default
+    default Integer maxDeletes() {
+        return 2;
+    }
+
+    @Value.Default
+    default Integer maxCells() {
+        return 10;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jd (3639b43d698f9487b4b29373ba6bea18331f5f20jBe aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javajDe addedj<e Kbj=e K jFe KbjGe https://github.com/palantir/atlasdb/blob/5e0a72721550b0ab65bde6f2071fe846466d7474/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javajIe https://github.com/palantir/atlasdb/raw/5e0a72721550b0ab65bde6f2071fe846466d7474/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javajKe https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=5e0a72721550b0ab65bde6f2071fe846466d7474jMe X  @@ -0,0 +1,98 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.security.SecureRandom;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+import org.jetbrains.annotations.VisibleForTesting;
+
+public final class RandomWorkflows {
+    private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+    private static final Integer COLUMN = 0;
+
+    private RandomWorkflows() {
+        // static factory
+    }
+
+    public static Workflow create(
+            TransactionStore store,
+            RandomWorkflowConfiguration randomWorkflowConfig,
+            ListeningExecutorService executionExecutor) {
+        return create(store, randomWorkflowConfig, executionExecutor, RANDOM);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            TransactionStore store,
+            RandomWorkflowConfiguration randomWorkflowConfig,
+            ListeningExecutorService executionExecutor,
+            SecureRandom random) {
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, index) -> run(txnStore, randomWorkflowConfig, random),
+                randomWorkflowConfig,
+                executionExecutor);
+    }
+
+    private static Optional<WitnessedTransaction> run(
+            TransactionStore store, RandomWorkflowConfiguration workflowConfiguration, SecureRandom random) {
+        workflowConfiguration.transactionRateLimiter().acquire();
+        String tableName = workflowConfiguration.tableConfiguration().tableName();
+        List<ReadTransactionAction> reads = IntStream.range(0, random.nextInt(workflowConfiguration.maxReads()))
+                .boxed()
+                .map(index -> ImmutableReadTransactionAction.of(
+                        tableName, cell(random.nextInt(workflowConfiguration.maxCells()))))
+                .collect(Collectors.toList());
+        List<WriteTransactionAction> writes = IntStream.range(0, random.nextInt(workflowConfiguration.maxWrites()))
+                .boxed()
+                .map(index -> ImmutableWriteTransactionAction.of(
+                        tableName, cell(random.nextInt(workflowConfiguration.maxCells())), random.nextInt(100)))
+                .collect(Collectors.toList());
+        List<DeleteTransactionAction> deletes = IntStream.range(0, random.nextInt(workflowConfiguration.maxDeletes()))
+                .boxed()
+                .map(index -> ImmutableDeleteTransactionAction.of(
+                        tableName, cell(random.nextInt(workflowConfiguration.maxCells()))))
+                .collect(Collectors.toList());
+        List<TransactionAction> actions =
+                Stream.of(reads, writes, deletes).flatMap(Collection::stream).collect(Collectors.toList());
+        Collections.shuffle(actions);
+        return store.readWrite(actions);
+    }
+
+    private static WorkloadCell cell(int key) {
+        return ImmutableWorkloadCell.of(key, COLUMN);
+    }
+}u}(jd (5304dd2c4cbc0befad32c1147d07b4e6dfdb9982jBe eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowsTest.javajDe addedj<e Kdj=e K jFe KdjGe https://github.com/palantir/atlasdb/blob/5e0a72721550b0ab65bde6f2071fe846466d7474/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javajIe https://github.com/palantir/atlasdb/raw/5e0a72721550b0ab65bde6f2071fe846466d7474/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javajKe https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.java?ref=5e0a72721550b0ab65bde6f2071fe846466d7474jMe Xd  @@ -0,0 +1,100 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.security.SecureRandom;
+import java.util.Collection;
+import java.util.List;
+import java.util.stream.Collectors;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class RandomWorkflowsTest {
+    private static final String TABLE_NAME = "random.random";
+    private static final RandomWorkflowConfiguration CONFIGURATION = ImmutableRandomWorkflowConfiguration.builder()
+            .tableConfiguration(ImmutableTableConfiguration.builder()
+                    .tableName(TABLE_NAME)
+                    .isolationLevel(IsolationLevel.SERIALIZABLE)
+                    .build())
+            .iterationCount(1)
+            .build();
+
+    private final TransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+
+    @Mock
+    private SecureRandom random;
+
+    private Workflow workflow;
+
+    @Before
+    public void before() {
+        this.workflow = RandomWorkflows.create(
+                memoryStore,
+                CONFIGURATION,
+                MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)),
+                random);
+    }
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore())
+                .as("should return a read only transaction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void workflowRunsReadWritesDeletes() {
+        when(random.nextInt(anyInt())).thenReturn(1);
+        WorkflowHistory history = workflow.run();
+        List<WitnessedTransactionAction> actions = history.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(actions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+}ueu(3102ef1addadb4ebd79e624fb701e9db60a94733}(sha(3102ef1addadb4ebd79e624fb701e9db60a94733node_idEC_kwDOAjP5fdoAKDMxMDJlZjFhZGRhZGI0ZWJkNzllNjI0ZmI3MDFlOWRiNjBhOTQ3MzMcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-03-06T15:35:59Zu	committer}(jie 
Ahmed Alouanejke aalouane@palantir.comjme 2023-03-06T15:35:59Zumessagepushingtree}(jae (d59d41e87ddd2a68205ad640114a1bd74ae02e12url`https://api.github.com/repos/palantir/atlasdb/git/trees/d59d41e87ddd2a68205ad640114a1bd74ae02e12ujye bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3102ef1addadb4ebd79e624fb701e9db60a94733
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQGCF8ACgkQPlMHVIT1
yhoyxAf/cM4yVEcapQj5TrqWO/BBVHvBJpMU/2plGWXdDS4wT+Gb5895gforMT5a
PRn7NfDgQGUbJqTn/EQ3FnfgY8lcJ/mtMZwg81YEbQx6h/chZxiXHQ5Ori4rMDlG
ZZF7lt+X7XxKie0zrz8dzUh0qs1AUPlFbHwjY89wQy6qUx+WsG8D3MS2yttpJzFa
9V7kUTf5huoUk/ceEVOUVTiV9QaC2YybXuM/I6Gk9+rS0y2Skn0LDEtaF+5gZOgO
y/gXSQ+BK5TlDWMYMXvdm4770XMu2wYqTGj/wgogBVaLchkxN+99rikrbdJB5O5b
2q8lQO4QiWAnYXGgxnl0R0xrt3V96A==
=0tfD
-----END PGP SIGNATURE-----payloadtree d59d41e87ddd2a68205ad640114a1bd74ae02e12
parent 6f0f7c5849e31c772989b9565d870a5ba17cd721
author Ahmed Alouane <aalouane@palantir.com> 1678116959 +0000
committer Ahmed Alouane <aalouane@palantir.com> 1678116959 +0000

pushing
uujye ^https://api.github.com/repos/palantir/atlasdb/commits/3102ef1addadb4ebd79e624fb701e9db60a94733html_urlShttps://github.com/palantir/atlasdb/commit/3102ef1addadb4ebd79e624fb701e9db60a94733comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3102ef1addadb4ebd79e624fb701e9db60a94733/commentsjge }(loginergo14idJjce MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jye #https://api.github.com/users/ergo14je https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujoe }(je ergo14je Jjce MDQ6VXNlcjMwOTAzNzM2je 4https://avatars.githubusercontent.com/u/30903736?v=4je h5jye #https://api.github.com/users/ergo14je https://github.com/ergo14je -https://api.github.com/users/ergo14/followersje :https://api.github.com/users/ergo14/following{/other_user}je 3https://api.github.com/users/ergo14/gists{/gist_id}je :https://api.github.com/users/ergo14/starred{/owner}{/repo}je 1https://api.github.com/users/ergo14/subscriptionsje (https://api.github.com/users/ergo14/orgsje )https://api.github.com/users/ergo14/reposje 4https://api.github.com/users/ergo14/events{/privacy}je 3https://api.github.com/users/ergo14/received_eventsje Userje uparents]}(jae (6f0f7c5849e31c772989b9565d870a5ba17cd721jye ^https://api.github.com/repos/palantir/atlasdb/commits/6f0f7c5849e31c772989b9565d870a5ba17cd721je Shttps://github.com/palantir/atlasdb/commit/6f0f7c5849e31c772989b9565d870a5ba17cd721uastats}(totalK:	additionsK9	deletionsKufiles](}(jae (ceeeeed1ad626f017443a86551facc263dbb0a09filenamebatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraServerOrigin.javastatusmodifiedje Kje KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/3102ef1addadb4ebd79e624fb701e9db60a94733/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.javaraw_urlhttps://github.com/palantir/atlasdb/raw/3102ef1addadb4ebd79e624fb701e9db60a94733/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.java?ref=3102ef1addadb4ebd79e624fb701e9db60a94733patchX  @@ -33,6 +33,6 @@ public static ImmutableMap<CassandraServer, CassandraServerOrigin> mapAllServers
 
     public static ImmutableMap<CassandraServer, CassandraServerOrigin> mapAllServersToOrigin(
             Stream<CassandraServer> servers, CassandraServerOrigin origin) {
-        return servers.collect(ImmutableMap.toImmutableMap(Function.identity(), _v -> origin));
+        return servers.distinct().collect(ImmutableMap.toImmutableMap(Function.identity(), _v -> origin));
     }
 }u}(jae (8d1f1ceb01567915c58f3ee20a7717d57f39e9b3je fatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraServerOriginTest.javaje addedje K8je K je K8je https://github.com/palantir/atlasdb/blob/3102ef1addadb4ebd79e624fb701e9db60a94733/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.javaje https://github.com/palantir/atlasdb/raw/3102ef1addadb4ebd79e624fb701e9db60a94733/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.javaje https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.java?ref=3102ef1addadb4ebd79e624fb701e9db60a94733je X
  @@ -0,0 +1,56 @@
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
+import java.net.InetSocketAddress;
+import java.util.Map;
+import java.util.Set;
+import java.util.stream.Stream;
+import org.junit.Test;
+
+public final class CassandraServerOriginTest {
+
+    private static final CassandraServer SERVER_1 = createCassandraServer("serverOne");
+    private static final CassandraServer SERVER_2 = createCassandraServer("serverTwo");
+    private static final CassandraServer SERVER_3 = createCassandraServer("serverThree");
+
+    @Test
+    public void mapAllServersToOriginFromServerStreamDeduplicatesInput() {
+        CassandraServer cloneOfServer1 = createCassandraServer(SERVER_1.cassandraHostName());
+        CassandraServerOrigin origin = CassandraServerOrigin.CONFIG;
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(
+                        Stream.of(SERVER_1, SERVER_2, SERVER_3, cloneOfServer1, SERVER_2, SERVER_3, SERVER_2), origin))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(SERVER_1, origin, SERVER_2, origin, SERVER_3, origin));
+    }
+
+    @Test
+    public void mapAllServersToOriginFromServerSetReturnsMapWithAllSetElementsAsKeysAndAUniqueValue() {
+        CassandraServerOrigin origin = CassandraServerOrigin.TOKEN_RANGE;
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Set.of(SERVER_1, SERVER_2, SERVER_3), origin))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(SERVER_1, origin, SERVER_2, origin, SERVER_3, origin));
+    }
+
+    @Test
+    public void mapAllServersToOriginFromServerStreamWithUniqueElementsReturnsMapWithAllElementsAndAUniqueValue() {
+        CassandraServerOrigin origin = CassandraServerOrigin.LAST_KNOWN;
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Set.of(SERVER_1, SERVER_2, SERVER_3), origin))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(SERVER_1, origin, SERVER_2, origin, SERVER_3, origin));
+    }
+
+    @Test
+    public void mapAllServersToOriginFromServerStreamReturnsEmptyMapOnEmptyStream() {
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Stream.empty(), CassandraServerOrigin.CONFIG))
+                .isEmpty();
+    }
+
+    @Test
+    public void mapAllServersToOriginFromSetStreamReturnsEmptyMapOnEmptySet() {
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Set.of(), CassandraServerOrigin.LAST_KNOWN))
+                .isEmpty();
+    }
+
+    private static CassandraServer createCassandraServer(String hostname) {
+        return CassandraServer.of(hostname, InetSocketAddress.createUnresolved(hostname, 88));
+    }
+}
\ No newline at end of fileueu(8543fd2be6850ba6f01a559ec3d9030a27557781}(sha(8543fd2be6850ba6f01a559ec3d9030a27557781node_idEC_kwDOAjP5fdoAKDg1NDNmZDJiZTY4NTBiYTZmMDFhNTU5ZWMzZDkwMzBhMjc1NTc3ODEcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-06-15T10:20:47Zu	committer}(je svc-autoreleaseje -pd-foundry-infrastructure-notify@palantir.comje 2023-06-15T10:20:47ZumessageAutorelease 0.875.0

[skip ci]tree}(je (7d20b6371ded6d6550c1dc41963e9b4d57f84e5aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/7d20b6371ded6d6550c1dc41963e9b4d57f84e5auje bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8543fd2be6850ba6f01a559ec3d9030a27557781
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmSK5gYACgkQhbrR8ip7mDBRqgD/eufe+fFrz0IwKEg+xuS3wCg4
Nq4W/F64p0YmBcRxeOYA/0cEaSIVejZcq64Rcafre82QrZmsEhDFMoyHauw1uczJ
=pRvq
-----END PGP SIGNATURE-----
payloadX0  tree 7d20b6371ded6d6550c1dc41963e9b4d57f84e5a
parent b4f5ea7955bd88083f488244a5895d0b48319268
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1686824447 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1686824447 +0000

Autorelease 0.875.0

[skip ci]uuje ^https://api.github.com/repos/palantir/atlasdb/commits/8543fd2be6850ba6f01a559ec3d9030a27557781html_urlShttps://github.com/palantir/atlasdb/commit/8543fd2be6850ba6f01a559ec3d9030a27557781comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8543fd2be6850ba6f01a559ec3d9030a27557781/commentsje }(loginsvc-autoreleaseidJ(je MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5je ,https://api.github.com/users/svc-autoreleasejf "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuje }(jf svc-autoreleasej
f J(je MDQ6VXNlcjUxNzE4MzQ2jf 4https://avatars.githubusercontent.com/u/51718346?v=4jf h5je ,https://api.github.com/users/svc-autoreleasejf "https://github.com/svc-autoreleasejf 6https://api.github.com/users/svc-autorelease/followersjf Chttps://api.github.com/users/svc-autorelease/following{/other_user}jf <https://api.github.com/users/svc-autorelease/gists{/gist_id}jf Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jf :https://api.github.com/users/svc-autorelease/subscriptionsjf 1https://api.github.com/users/svc-autorelease/orgsj f 2https://api.github.com/users/svc-autorelease/reposj"f =https://api.github.com/users/svc-autorelease/events{/privacy}j$f <https://api.github.com/users/svc-autorelease/received_eventsj&f Userj(f uparents]}(je (b4f5ea7955bd88083f488244a5895d0b48319268je ^https://api.github.com/repos/palantir/atlasdb/commits/b4f5ea7955bd88083f488244a5895d0b48319268jf Shttps://github.com/palantir/atlasdb/commit/b4f5ea7955bd88083f488244a5895d0b48319268uastats}(totalK 	additionsK 	deletionsK ufiles]}(je (a6c9d3dd239346b5de33d708683efcea7ca6e0d1filename changelog/0.875.0/pr-6623.v2.ymlstatusrenamedjBf K jCf K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/8543fd2be6850ba6f01a559ec3d9030a27557781/changelog%2F0.875.0%2Fpr-6623.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/8543fd2be6850ba6f01a559ec3d9030a27557781/changelog%2F0.875.0%2Fpr-6623.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.875.0%2Fpr-6623.v2.yml?ref=8543fd2be6850ba6f01a559ec3d9030a27557781previous_filename$changelog/@unreleased/pr-6623.v2.ymluau(3598f630d7a376c88a9edebe1a1b5d19b249a3a5}(sha(3598f630d7a376c88a9edebe1a1b5d19b249a3a5node_idEC_kwDOAjP5fdoAKDM1OThmNjMwZDdhMzc2Yzg4YTllZGViZTFhMWI1ZDE5YjI0OWEzYTUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-31T19:27:13Zu	committer}(j_f Jeremy Kongjaf jkong@palantir.comjcf 2023-05-31T19:27:13ZumessageMerge conflicttree}(jWf (98a10c3cfc0bcf6d945434486a8c6bfd60541b30url`https://api.github.com/repos/palantir/atlasdb/git/trees/98a10c3cfc0bcf6d945434486a8c6bfd60541b30ujof bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3598f630d7a376c88a9edebe1a1b5d19b249a3a5
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR3n5EACgkQTLdFKain
zjyZnQgA6J6stSLHAemOEcYnO8uboeRjLJXJlW0LZbLwqit/okj77qifoo6k7PDn
4gme5WPJoPofway7o+Ppbwf7fFhgCldr07VO3l0SZFU7YgYBmMwqxUQvMwjt+Aip
v4DoFGcP1OAkMcVkgwCAj2qHSwezy8jJ5e9PYkoJ03tK5xld2GWY+wQQR6WPdEx9
/O6wL6ZX/h+kEqa76fB1U3tQSv/2UcLxBFj2cKr4kPQXT4qetYNhSY4+a5KDyw+u
Davo43/EEHoLfqgoSV4yZsOkP4Lfb+Gds/ratAvQgSFgnjg3/4ULl0lAkWghcHPH
UUvtG9uHfe41AYQBQBD+UuB4UjmUtg==
=fXni
-----END PGP SIGNATURE-----payloadX  tree 98a10c3cfc0bcf6d945434486a8c6bfd60541b30
parent 4f8e7d6c73c781ce6c13c81718021c347a29aa39
parent 5b1d8f7aca163d24d017e12af916e7c4af87b7a6
author Jeremy Kong <jkong@palantir.com> 1685561233 +0100
committer Jeremy Kong <jkong@palantir.com> 1685561233 +0100

Merge conflict
uujof ^https://api.github.com/repos/palantir/atlasdb/commits/3598f630d7a376c88a9edebe1a1b5d19b249a3a5html_urlShttps://github.com/palantir/atlasdb/commit/3598f630d7a376c88a9edebe1a1b5d19b249a3a5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/commentsj]f }(login
jeremyk-91idJZ jYf MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jof 'https://api.github.com/users/jeremyk-91j}f https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujef }(jf 
jeremyk-91jf JZ jYf MDQ6VXNlcjU5NTU1MTA=jf 3https://avatars.githubusercontent.com/u/5955510?v=4jf h5jof 'https://api.github.com/users/jeremyk-91j}f https://github.com/jeremyk-91jf 1https://api.github.com/users/jeremyk-91/followersjf >https://api.github.com/users/jeremyk-91/following{/other_user}jf 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jf >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jf 5https://api.github.com/users/jeremyk-91/subscriptionsjf ,https://api.github.com/users/jeremyk-91/orgsjf -https://api.github.com/users/jeremyk-91/reposjf 8https://api.github.com/users/jeremyk-91/events{/privacy}jf 7https://api.github.com/users/jeremyk-91/received_eventsjf Userjf uparents](}(jWf (4f8e7d6c73c781ce6c13c81718021c347a29aa39jof ^https://api.github.com/repos/palantir/atlasdb/commits/4f8e7d6c73c781ce6c13c81718021c347a29aa39j}f Shttps://github.com/palantir/atlasdb/commit/4f8e7d6c73c781ce6c13c81718021c347a29aa39u}(jWf (5b1d8f7aca163d24d017e12af916e7c4af87b7a6jof ^https://api.github.com/repos/palantir/atlasdb/commits/5b1d8f7aca163d24d017e12af916e7c4af87b7a6j}f Shttps://github.com/palantir/atlasdb/commit/5b1d8f7aca163d24d017e12af916e7c4af87b7a6uestats}(totalM	additionsMc	deletionsK)ufiles](}(jWf (08cd766747be7ea89f3186414b112d6fff840236filenameiatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleOverflowWriteTable.javastatusmodifiedjf K,jf KchangesKJblob_urlhttps://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javaraw_urlhttps://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.java?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5patchXQ  @@ -351,31 +351,41 @@ private void deleteOverflow(String overflowTable, List<Object[]> args) {
         String shortTableName = oraclePrefixedTableNames.get(tableRef, conns);
         conns.get()
                 .updateManyUnregisteredQuery(
-                        " /* DELETE_ONE_OVERFLOW (" + overflowTable + ") */ "
-                                + " DELETE /*+ INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */ "
-                                + "   FROM " + overflowTable + " m "
-                                + "  WHERE m.id IN (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName)
-                                + ") */ "
-                                + "                        i.overflow "
-                                + "                   FROM " + shortTableName + " i "
-                                + "                  WHERE i.row_name = ? "
-                                + "                    AND i.col_name = ? "
-                                + "                    AND i.ts = ? "
-                                + "                    AND i.overflow IS NOT NULL)",
+                        "/* DELETE_ONE_OVERFLOW (" + overflowTable + ") */"
+                                + " DELETE"
+                                + " /*+"
+                                + "   INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ")"
+                                + "   LEADING(i) USE_NL(i m)"
+                                + " */"
+                                + " FROM " + overflowTable + " m"
+                                + " WHERE m.id IN"
+                                + "   (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName) + ") */"
+                                + "     i.overflow"
+                                + "     FROM " + shortTableName + " i"
+                                + "     WHERE i.row_name = ?"
+                                + "       AND i.col_name = ?"
+                                + "       AND i.ts = ?"
+                                + "       AND i.overflow IS NOT NULL)",
                         args);
     }
 
     private void deleteOverflowRange(String overflowTable, String shortTableName, RangeRequest range) {
         StringBuilder query = new StringBuilder();
-        query.append(" /* DELETE_RANGE_OVERFLOW (").append(overflowTable).append(") */ ");
-        query.append(" DELETE /*+ INDEX(m pk_").append(overflowTable).append(") */ ");
-        query.append("   FROM ").append(overflowTable).append(" m ");
-        query.append(" WHERE m.id IN (");
+        query.append("/* DELETE_RANGE_OVERFLOW (")
+                .append(overflowTable)
+                .append(") */ DELETE /*+ INDEX(m ")
+                .append(PrimaryKeyConstraintNames.get(overflowTable))
+                .append(") LEADING(i) USE_NL(i m) */ FROM ")
+                .append(overflowTable)
+                .append(" m WHERE m.id IN (");
 
         // subquery for finding rows in the short table
-        query.append("SELECT /*+ INDEX(i pk_").append(shortTableName).append(") */ ");
-        query.append("       i.overflow ");
-        query.append("    FROM ").append(shortTableName).append(" i ");
+        query.append("SELECT /*+ INDEX(i ")
+                .append(PrimaryKeyConstraintNames.get(shortTableName))
+                .append(") */")
+                .append(" i.overflow FROM ")
+                .append(shortTableName)
+                .append(" i");
 
         // add where clauses
         WhereClauses whereClauses = WhereClauses.create("i", range, "i.overflow IS NOT NULL");
@@ -398,18 +408,22 @@ private void deleteAllTimestampsOverflow(String overflowTable, List<Object[]> ar
         String shortTableName = oraclePrefixedTableNames.get(tableRef, conns);
         conns.get()
                 .updateManyUnregisteredQuery(
-                        " /* DELETE_ALL_TS_OVERFLOW (" + overflowTable + ") */ "
-                                + " DELETE /*+ INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */ "
-                                + "   FROM " + overflowTable + " m "
-                                + "  WHERE m.id IN (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName)
-                                + ") */ "
-                                + "                        i.overflow "
-                                + "                   FROM " + shortTableName + " i "
-                                + "                  WHERE i.row_name = ? "
-                                + "                    AND i.col_name = ? "
-                                + "                    AND i.ts >= ? "
-                                + "                    AND i.ts <= ? "
-                                + "                    AND i.overflow IS NOT NULL)",
+                        " /* DELETE_ALL_TS_OVERFLOW (" + overflowTable + ") */"
+                                + " DELETE"
+                                + " /*+"
+                                + "   INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ")"
+                                + "   LEADING(i) USE_NL(i m)"
+                                + " */"
+                                + " FROM " + overflowTable + " m"
+                                + " WHERE m.id IN"
+                                + "   (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName) + ") */"
+                                + "     i.overflow"
+                                + "     FROM " + shortTableName + " i"
+                                + "     WHERE i.row_name = ?"
+                                + "       AND i.col_name = ?"
+                                + "       AND i.ts >= ?"
+                                + "       AND i.ts <= ?"
+                                + "       AND i.overflow IS NOT NULL)",
                         args);
     }
 u}(jWf (88f8467b9c138fc4cb41ea3c961977dd5dd0f8e4jf  atlasdb-impl-shared/build.gradlejf modifiedjf Kjf K jf Kjf thttps://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-impl-shared%2Fbuild.gradlejf shttps://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-impl-shared%2Fbuild.gradlejf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fbuild.gradle?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf X
  @@ -12,6 +12,7 @@ license {
   exclude '**/PutUnlessExistsTableMetrics.java'
   exclude '**/TargetedSweepProgressMetrics.java'
   exclude '**/TimestampCorrectnessMetrics.java'
+  exclude '**/ExpectationsMetrics.java'
   exclude '**/VerificationModeMetrics.java'
 }
 u}(jWf (f93956c564df967c827fb4d2fd2ff0c499a92050jf `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javajf modifiedjf Kjf Kjf K"jf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf X  @@ -98,6 +98,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueServiceImpl;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
@@ -265,12 +266,14 @@ private enum State {
     protected final TableLevelMetricsController tableLevelMetricsController;
     protected final SuccessCallbackManager successCallbackManager = new SuccessCallbackManager();
     private final CommitTimestampLoader commitTimestampLoader;
+    private final ExpectationsMetrics expectationsDataCollectionMetrics;
 
     protected volatile boolean hasReads;
 
     protected final TimestampCache timestampCache;
 
     protected final TransactionKnowledgeComponents knowledge;
+
     protected final Closer closer = Closer.create();
 
     /**
@@ -345,6 +348,7 @@ private enum State {
                 timelockService,
                 immutableTimestamp,
                 knowledge);
+        this.expectationsDataCollectionMetrics = ExpectationsMetrics.of(metricsManager.getTaggedRegistry());
     }
 
     protected TransactionScopedCache getCache() {
@@ -1817,11 +1821,16 @@ private void ensureUncommitted() {
     }
 
     private void ensureStillRunning() {
-        if (!(state.get() == State.UNCOMMITTED || state.get() == State.COMMITTING)) {
+        if (!isStillRunning()) {
             throw new CommittedTransactionException();
         }
     }
 
+    private boolean isStillRunning() {
+        State stateNow = state.get();
+        return stateNow == State.UNCOMMITTED || stateNow == State.COMMITTING;
+    }
+
     /**
      * Returns true iff the transaction is known to have successfully committed.
      *
@@ -2597,9 +2606,28 @@ public TransactionReadInfo getReadInfo() {
         return keyValueService.getOverallReadInfo();
     }
 
-    // TODO(aalouane): implement and call this on transaction exit
     @Override
-    public void reportExpectationsCollectedData() {}
+    public void reportExpectationsCollectedData() {
+        if (isStillRunning()) {
+            log.error(
+                    "reportExpectationsCollectedData is called on an in-progress transaction",
+                    SafeArg.of("state", state.get()));
+            return;
+        }
+
+        reportExpectationsCollectedData(getAgeMillis(), getReadInfo(), expectationsDataCollectionMetrics);
+    }
+
+    @VisibleForTesting
+    static void reportExpectationsCollectedData(
+            long ageMillis, TransactionReadInfo readInfo, ExpectationsMetrics metrics) {
+        metrics.ageMillis().update(ageMillis);
+        metrics.bytesRead().update(readInfo.bytesRead());
+        metrics.kvsReads().update(readInfo.kvsCalls());
+
+        readInfo.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
+                .update(kvsCallReadInfo.bytesRead()));
+    }
 
     private long getStartTimestamp() {
         return startTimestamp.get();u}(jWf (e696a4e851cc0de0f72f1af470c874f29b2e719bjf 5atlasdb-impl-shared/src/main/metrics/expectations.ymljf addedjf Kjf K jf Kjf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymljf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymljf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf X  @@ -0,0 +1,19 @@
+options:
+  javaPackage: 'com.palantir.atlasdb.transaction.expectations'
+
+namespaces:
+  expectations:
+    docs: Data collection on transaction patterns
+    metrics:
+      bytesRead:
+        docs: Bytes read by a transaction through Atlas kvs read calls
+        type: histogram
+      kvsReads:
+        docs: Number of Atlas kvs read calls made by a transaction
+        type: histogram
+      ageMillis:
+        docs: Elapsed duration in milliseconds for a transaction
+        type: histogram
+      mostKvsBytesReadInSingleCall:
+        docs: Most bytes read by a transaction in one Atlas kvs read call
+        type: histogramu}(jWf (c8823c29da58eca2fbdcdf7fc98f8ab892c82d54jf matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javajf addedjf KSjf K jf KSjf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf X<
  @@ -0,0 +1,83 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class ExpectationsMetricsReportingTest {
+    // immutable in type declaration for better 'withX' ergonomics
+    private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
+            ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
+
+    private ExpectationsMetrics metrics;
+
+    @Before
+    public void setUp() {
+        metrics = ExpectationsMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
+    }
+
+    @Test
+    public void ageReported() {
+        long age = 129L;
+        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, metrics);
+        assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
+    }
+
+    @Test
+    public void bytesReadReported() {
+        long bytes = 1290L;
+        reportMetrics(BLANK_READ_INFO.withBytesRead(bytes));
+        assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
+    }
+
+    @Test
+    public void kvsCallsReported() {
+        long calls = 12L;
+        reportMetrics(BLANK_READ_INFO.withKvsCalls(calls));
+        assertThat(metrics.kvsReads().getSnapshot().getValues()).containsOnly(calls);
+    }
+
+    @Test
+    public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
+        reportMetrics(BLANK_READ_INFO);
+        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+                .isEmpty();
+    }
+
+    @Test
+    public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
+        long bytes = 193L;
+        reportMetrics(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+                .containsOnly(bytes);
+    }
+
+    private void reportMetrics(TransactionReadInfo readInfo) {
+        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, metrics);
+    }
+}u}(jWf (18e3bf26bf01f5384536788e145f8e8f37200656jf latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javajf modifiedjf Kjf Kjf Kjf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javajf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf X  @@ -237,7 +237,10 @@ public void registersMetrics() throws InterruptedException {
         TaggedMetricRegistry registry = snapshotTransactionManager.metricsManager.getTaggedRegistry();
         assertThat(registry.getMetrics().keySet().stream().map(MetricName::safeName))
                 .contains(SETUP_TASK_METRIC_NAME)
-                .contains(FINISH_TASK_METRIC_NAME);
+                .contains(FINISH_TASK_METRIC_NAME)
+                .contains("expectations.bytesRead")
+                .contains("expectations.kvsReads")
+                .contains("expectations.ageMillis");
         assertThat(registry.timer(MetricName.builder()
                                 .safeName(SETUP_TASK_METRIC_NAME)
                                 .build())u}(jWf (29fc330cc18e86d9e89097012f497c48a1e6c4b9jf fatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/MismatchedValue.javajf modifiedjf Kjf Kjf Kjf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javajf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.java?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf X&  @@ -24,10 +24,10 @@
 @Value.Immutable
 public interface MismatchedValue {
     @Value.Parameter
-    Optional<Integer> actual();
+    ValueAndMaybeTimestamp actual();
 
     @Value.Parameter
-    Optional<Integer> expected();
+    ValueAndMaybeTimestamp expected();
 
     @Value.Check
     default void actualAndExpectedAreNotEqualToEachOther() {
@@ -39,6 +39,10 @@ default void actualAndExpectedAreNotEqualToEachOther() {
     }
 
     static MismatchedValue of(Optional<Integer> actual, Optional<Integer> expected) {
+        return MismatchedValue.of(ValueAndMaybeTimestamp.of(actual), ValueAndMaybeTimestamp.of(expected));
+    }
+
+    static MismatchedValue of(ValueAndMaybeTimestamp actual, ValueAndMaybeTimestamp expected) {
         return ImmutableMismatchedValue.of(actual, expected);
     }
 }u}(jWf (596cccc8bfe0813aaf92d90536ccec5e30931db3jf katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/TransactionInvariant.javajf addedjf Kjf K jf Kjf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.javajf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.java?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf X  @@ -0,0 +1,22 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import java.util.List;
+
+public interface TransactionInvariant extends Invariant<List<InvalidWitnessedTransaction>> {}u}(jWf (f4cdcb16e74fcf6db212f3bb382ada34382c7076jf matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/ValueAndMaybeTimestamp.javajf addedjf KEjf K jf KEjf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.javajf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.java?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf X	  @@ -0,0 +1,69 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import java.util.Optional;
+import org.immutables.value.Value;
+
+/**
+ * Occasionally, storing just a value might not be enough context needed when validating an invariant.
+ *
+ * For example, to detect that the ABA problem has occurred (ABA problem (https://en.wikipedia.org/wiki/ABA_problem),
+ * values alone would not be sufficient. Storing the timestamp associated with the value, such as the start timestamp,
+ * would be able to catch these sort of cases.
+ */
+@Value.Immutable
+public interface ValueAndMaybeTimestamp {
+    ValueAndMaybeTimestamp EMPTY = of(Optional.empty(), Optional.empty());
+
+    /**
+     * Value, which when empty either indicates it does not exist, or has been deleted.
+     */
+    @Value.Parameter
+    Optional<Integer> value();
+
+    /**
+     * Optional timestamp associated with the value. When empty it means either it does not exist, or it is not needed
+     * for comparison.
+     */
+    @Value.Parameter
+    Optional<Long> timestamp();
+
+    static ValueAndMaybeTimestamp empty() {
+        return EMPTY;
+    }
+
+    static ValueAndMaybeTimestamp of(Integer value) {
+        return of(Optional.of(value));
+    }
+
+    static ValueAndMaybeTimestamp of(Optional<Integer> value) {
+        return of(value, Optional.empty());
+    }
+
+    static ValueAndMaybeTimestamp of(Optional<Integer> value, Long timestamp) {
+        return of(value, Optional.of(timestamp));
+    }
+
+    static ValueAndMaybeTimestamp of(Integer value, Long timestamp) {
+        return of(Optional.of(value), Optional.of(timestamp));
+    }
+
+    static ValueAndMaybeTimestamp of(Optional<Integer> value, Optional<Long> timestamp) {
+        return ImmutableValueAndMaybeTimestamp.of(value, timestamp);
+    }
+}u}(jWf (636e11dbc52b78329590a8ee90644f9728e5fb69jf jatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/invariant/MismatchedValueTest.javajf modifiedjf Kjf Kjf Kjf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javajf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.java?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf Xz  @@ -21,13 +21,12 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 
 import com.palantir.logsafe.SafeArg;
-import java.util.Optional;
 import org.junit.Test;
 
 public final class MismatchedValueTest {
 
-    private static final Optional<Integer> VALUE_ONE = Optional.of(15);
-    private static final Optional<Integer> VALUE_TWO = Optional.of(25);
+    private static final ValueAndMaybeTimestamp VALUE_ONE = ValueAndMaybeTimestamp.of(25);
+    private static final ValueAndMaybeTimestamp VALUE_TWO = ValueAndMaybeTimestamp.of(15);
 
     @Test
     public void canConstructMismatchedValueFromTwoDifferentValues() {u}(jWf (8a088477a58114cf21e452da7431fdf604febdddjf latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javajf modifiedjf Kjf Kjf Kjf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf X  @@ -35,6 +35,8 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
@@ -140,6 +142,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().singleBusyCellConfig();
         BankBalanceWorkflowConfiguration bankBalanceConfig =
                 configuration.install().bankBalanceConfig();
+        RandomWorkflowConfiguration randomWorkflowConfig =
+                configuration.install().randomConfig();
 
         waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
 
@@ -153,7 +157,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
                         createSingleBusyCellWorkflowValidator(
                                 transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
-                        createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()));
+                        createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
+                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -291,6 +296,25 @@ private WorkflowAndInvariants<Workflow> createBankBalanceWorkflow(
                 .build();
     }
 
+    private WorkflowAndInvariants<Workflow> createRandomWorkflow(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            RandomWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RandomWorkflows.class);
+        TransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(RandomWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        RandomWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
     @VisibleForTesting
     CountDownLatch workflowsRanLatch() {
         return workflowsRanLatch;u}(jWf (bc69acd52d73dc58fff6ef1b1ca4cf77787a00c0jf atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javajf modifiedjf Kjf K jf Kjf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javajf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf X  @@ -19,6 +19,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
@@ -42,5 +43,7 @@ public interface WorkloadServerInstallConfiguration {
 
     BankBalanceWorkflowConfiguration bankBalanceConfig();
 
+    RandomWorkflowConfiguration randomConfig();
+
     boolean exitAfterRunning();
 }u     }(jWf (04f864e5b876d33a808c51102f6b056e8d71f759jf Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymljf modifiedjf Kjf K jf Kjf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymljf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymljf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf X:  @@ -35,4 +35,10 @@ install:
       isolationLevel: SNAPSHOT
     iterationCount: 100
     type: bank-balance
+  randomConfig:
+    tableConfiguration:
+      tableName: random-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
   exitAfterRunning: false
\ No newline at end of fileu}(jWf (96d6b94c3febb7e87d33cfa10b94341467124c1ejf Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymljf modifiedjf Kjf K jf Kjf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf X  @@ -72,4 +72,10 @@ install:
       isolationLevel: SNAPSHOT
     iterationCount: 100
     type: bank-balance
+  randomConfig:
+    tableConfiguration:
+      tableName: random_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
   exitAfterRunning: trueu}(jWf (c7ff15738ad384c45f45dde3e9cfe6ff811f27ecjf Aatlasdb-workload-server-distribution/var/conf/workload-server.ymljf modifiedjf Kjf K jf Kjf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf X9  @@ -36,4 +36,10 @@ install:
       isolationLevel: SNAPSHOT
     iterationCount: 100
     type: bank-balance
+  randomConfig:
+    tableConfiguration:
+      tableName: random-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
   exitAfterRunning: true
\ No newline at end of fileu}(jWf (25eeb2753827a113d65e7a92368037434d429216jf hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javajf modifiedjf Kjf Kjf Kjf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf X  @@ -30,7 +30,7 @@
 import java.util.function.Consumer;
 import one.util.streamex.StreamEx;
 
-public enum SerializableInvariant implements Invariant<List<InvalidWitnessedTransaction>> {
+public enum SerializableInvariant implements TransactionInvariant {
     INSTANCE;
 
     @Overrideu}(jWf (875d7b415beab11ac8c7b5cb94591f3b3a874168jf datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariant.javajf addedjf KUjf K jf KUjf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javajf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.java?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf X  @@ -0,0 +1,85 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.function.Consumer;
+
+/**
+ * This invariant checks that the snapshot isolation property is maintained.
+ * <p>
+ * The way this check works, is by replaying all transactions sorted by their effective timestamp. Transactions are
+ * replayed to an immutable map, allowing us to track each table's state at any given time. These table views are
+ * persisted to a {@link java.util.NavigableMap} by the commit timestamp of each transaction, with the value being
+ * the version of the immutable map at that point-in-time.
+ * <p>
+ * Reads are validated by comparing values from the view of a table at the start timestamp (read view),
+ * and comparing to what we've witnessed. Local writes are replayed onto the read view to ensure we
+ * don't flag false-positives, but is not witnessed by other transactions.
+ * <p>
+ * Writes are validated by first checking that the value we're writing to hasn't changed between the read view and the
+ * latest view. This would indicate a write-write conflict miss, as we should've conflicted with this transaction.
+ * Otherwise, once the transaction is replayed on top of the latest view, we persist this new view at the
+ * commit timestamp.
+ */
+public enum SnapshotInvariant implements TransactionInvariant {
+    INSTANCE;
+
+    @Override
+    public void accept(
+            WorkflowHistory workflowHistory, Consumer<List<InvalidWitnessedTransaction>> invalidWitnessedTransactions) {
+        ImmutableList.Builder<InvalidWitnessedTransaction> invalidTransactionsBuilder = new ImmutableList.Builder<>();
+        VersionedTableView<TableAndWorkloadCell, ValueAndMaybeTimestamp> tableView = new VersionedTableView<>();
+        for (WitnessedTransaction witnessedTransaction : workflowHistory.history()) {
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestTableView =
+                    tableView.getLatestTableView();
+
+            SnapshotInvariantVisitor visitor = new SnapshotInvariantVisitor(
+                    witnessedTransaction.startTimestamp(),
+                    latestTableView,
+                    tableView.getView(witnessedTransaction.startTimestamp()));
+
+            ImmutableList.Builder<InvalidWitnessedTransactionAction> invalidTransactionActionsBuilder =
+                    new ImmutableList.Builder<>();
+            for (WitnessedTransactionAction action : witnessedTransaction.actions()) {
+                action.accept(visitor).ifPresent(invalidTransactionActionsBuilder::add);
+            }
+
+            List<InvalidWitnessedTransactionAction> invalidTransactionActions =
+                    invalidTransactionActionsBuilder.build();
+
+            witnessedTransaction
+                    .commitTimestamp()
+                    .ifPresent(commitTimestamp -> tableView.put(commitTimestamp, latestTableView.getSnapshot()));
+
+            if (!invalidTransactionActions.isEmpty()) {
+                invalidTransactionsBuilder.add(
+                        InvalidWitnessedTransaction.of(witnessedTransaction, invalidTransactionActions));
+            }
+        }
+        invalidWitnessedTransactions.accept(invalidTransactionsBuilder.build());
+    }
+}u}(jWf (9105d7ebd3f6af94cfaa196d41e9f2263cfb313ejf katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javajf addedjf K{jf K jf K{jf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf X:  @@ -0,0 +1,123 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.collection.Map;
+import java.util.Optional;
+
+/**
+ * Replays transactions and validates for conflicts on the latest and read view.
+ *
+ * The latest view will be a view of the database at the commit timestamp, while the read view will be the view of
+ * the database at the start timestamp.
+ *
+ * Objects created from this class should only be used within a scope of a single transaction.
+ */
+final class SnapshotInvariantVisitor
+        implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
+
+    private final Long startTimestamp;
+    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestView;
+    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> readView;
+
+    SnapshotInvariantVisitor(
+            Long startTimestamp,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestView,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> readView) {
+        this.startTimestamp = startTimestamp;
+        this.latestView = latestView;
+        this.readView = readView;
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+        Optional<Integer> expected = fetchValueFromView(
+                        readTransactionAction.table(), readTransactionAction.cell(), readView)
+                .value();
+        if (!expected.equals(readTransactionAction.value())) {
+            return Optional.of(InvalidWitnessedTransactionAction.of(
+                    readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expected)));
+        }
+        return Optional.empty();
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
+        Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
+                        writeTransactionAction.table(), writeTransactionAction.cell())
+                .map(mismatchedValue -> InvalidWitnessedTransactionAction.of(writeTransactionAction, mismatchedValue));
+
+        applyWrites(
+                writeTransactionAction.table(),
+                writeTransactionAction.cell(),
+                Optional.of(writeTransactionAction.value()));
+        return invalidAction;
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+        Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
+                        deleteTransactionAction.table(), deleteTransactionAction.cell())
+                .map(mismatchedValue -> InvalidWitnessedTransactionAction.of(deleteTransactionAction, mismatchedValue));
+
+        applyWrites(deleteTransactionAction.table(), deleteTransactionAction.cell(), Optional.empty());
+        return invalidAction;
+    }
+
+    /**
+     * Applies writes to both our read and latest table view.
+     * Latest table view needs to be updated to apply our writes from our transaction,
+     * while the read view is updated to reflect local writes.
+     */
+    private void applyWrites(String tableName, WorkloadCell cell, Optional<Integer> value) {
+        readView.with(table ->
+                table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndMaybeTimestamp.of(value, startTimestamp)));
+        latestView.with(table ->
+                table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndMaybeTimestamp.of(value, startTimestamp)));
+    }
+
+    /**
+     * Checks that the value we are writing has not changed from our read view and the latest view. If it has,
+     * that means we have missed a write-write conflict, as it should have conflicted with this transaction.
+     */
+    private Optional<MismatchedValue> checkForWriteWriteConflicts(String table, WorkloadCell cell) {
+        ValueAndMaybeTimestamp previous = fetchValueFromView(table, cell, readView);
+        ValueAndMaybeTimestamp latest = fetchValueFromView(table, cell, latestView);
+
+        if (!previous.equals(latest)) {
+            return Optional.of(MismatchedValue.of(latest, previous));
+        }
+
+        return Optional.empty();
+    }
+
+    private static ValueAndMaybeTimestamp fetchValueFromView(
+            String tableName,
+            WorkloadCell workloadCell,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> view) {
+        TableAndWorkloadCell tableAndWorkloadCell = TableAndWorkloadCell.of(tableName, workloadCell);
+        return view.getSnapshot().get(tableAndWorkloadCell).toJavaOptional().orElseGet(ValueAndMaybeTimestamp::empty);
+    }
+}u}(jWf (0729ad724e2b47dc1415a32180124d780320f58ejf eatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/VersionedTableView.javajf addedjf K6jf K jf K6jf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.javajf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.java?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf XG	  @@ -0,0 +1,54 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.Optional;
+import java.util.TreeMap;
+import javax.annotation.concurrent.NotThreadSafe;
+
+@NotThreadSafe
+public final class VersionedTableView<K, V> {
+    private final java.util.NavigableMap<Long, Map<K, V>> tableViews = new TreeMap<>();
+
+    public void put(Long commitTimestamp, Map<K, V> tableView) {
+        tableViews.put(commitTimestamp, tableView);
+    }
+
+    public StructureHolder<Map<K, V>> getView(Long startTimestamp) {
+        Preconditions.checkArgument(
+                !tableViews.containsKey(startTimestamp),
+                "It is expected when obtaining a view "
+                        + "from the start timestamp, that it should not already exist or be present within the map. "
+                        + "As all keys in this map should be commit timestamps, and all timestamps are immutable.",
+                SafeArg.of("startTimestamp", startTimestamp),
+                SafeArg.of("tableViews", tableViews));
+        return StructureHolder.create(() -> Optional.ofNullable(tableViews.lowerEntry(startTimestamp))
+                .map(java.util.Map.Entry::getValue)
+                .orElseGet(HashMap::empty));
+    }
+
+    public StructureHolder<Map<K, V>> getLatestTableView() {
+        return StructureHolder.create(() -> Optional.ofNullable(tableViews.lastEntry())
+                .map(java.util.Map.Entry::getValue)
+                .orElseGet(HashMap::empty));
+    }
+}u}(jWf (e0b5354ebacbf6077ea736f29765fb8d71159fcdjf matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowConfiguration.javajf addedjf K:jf K jf K:jf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javajf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.java?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf X  @@ -0,0 +1,58 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableRandomWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableRandomWorkflowConfiguration.class)
+@JsonTypeName(RandomWorkflowConfiguration.TYPE)
+public interface RandomWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "random";
+
+    TableConfiguration tableConfiguration();
+
+    @Value.Default
+    default Integer maxWrites() {
+        return 5;
+    }
+
+    @Value.Default
+    default Integer maxReads() {
+        return 5;
+    }
+
+    @Value.Default
+    default Integer maxDeletes() {
+        return 2;
+    }
+
+    @Value.Default
+    default Integer maxCells() {
+        return 10;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jWf (a9726d8998a6fbf1c745d6616a2e4356d3889a34jf aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javajf addedjf Kvjf K jf Kvjf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javajf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf Xw  @@ -0,0 +1,118 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.security.SecureRandom;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+import org.jetbrains.annotations.VisibleForTesting;
+
+public final class RandomWorkflows {
+    private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+    private static final Integer COLUMN = 0;
+
+    private RandomWorkflows() {
+        // static factory
+    }
+
+    public static Workflow create(
+            TransactionStore store,
+            RandomWorkflowConfiguration randomWorkflowConfig,
+            ListeningExecutorService executionExecutor) {
+        return create(store, randomWorkflowConfig, executionExecutor, RANDOM);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            TransactionStore store,
+            RandomWorkflowConfiguration randomWorkflowConfig,
+            ListeningExecutorService executionExecutor,
+            SecureRandom random) {
+        RandomWorkflowTask task = new RandomWorkflowTask(randomWorkflowConfig, random);
+        return DefaultWorkflow.create(
+                store, (txnStore, _index) -> task.run(txnStore), randomWorkflowConfig, executionExecutor);
+    }
+
+    private static final class RandomWorkflowTask {
+
+        private final RandomWorkflowConfiguration workflowConfiguration;
+        private final SecureRandom random;
+
+        public RandomWorkflowTask(RandomWorkflowConfiguration workflowConfiguration, SecureRandom random) {
+            this.workflowConfiguration = workflowConfiguration;
+            this.random = random;
+        }
+
+        public Optional<WitnessedTransaction> run(TransactionStore store) {
+            workflowConfiguration.transactionRateLimiter().acquire();
+            List<TransactionAction> actions = Stream.of(
+                            generateReadActions(), generateWriteActions(), generateDeleteActions())
+                    .flatMap(Collection::stream)
+                    .collect(Collectors.toList());
+            Collections.shuffle(actions, random);
+            return store.readWrite(actions);
+        }
+
+        private List<ReadTransactionAction> generateReadActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxReads() + 1))
+                    .boxed()
+                    .map(_index -> ImmutableReadTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(), randomCell()))
+                    .collect(Collectors.toList());
+        }
+
+        private List<WriteTransactionAction> generateWriteActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxWrites() + 1))
+                    .boxed()
+                    .map(_index -> ImmutableWriteTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(),
+                            randomCell(),
+                            random.nextInt(100_000)))
+                    .collect(Collectors.toList());
+        }
+
+        private List<DeleteTransactionAction> generateDeleteActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxDeletes() + 1))
+                    .boxed()
+                    .map(_index -> ImmutableDeleteTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(), randomCell()))
+                    .collect(Collectors.toList());
+        }
+
+        private WorkloadCell randomCell() {
+            return ImmutableWorkloadCell.of(random.nextInt(workflowConfiguration.maxCells()), COLUMN);
+        }
+    }
+}u}(jWf (165c14bed2da1c40158e60686d3e57607f512258jf hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javajf addedjf Kjf K jf Kjf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javajf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf X?  @@ -0,0 +1,162 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class SnapshotInvariantTest {
+    @Mock
+    private ReadableTransactionStore readableTransactionStore;
+
+    @Test
+    public void catchesWriteWriteConflict() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidTransaction.transaction().startTimestamp()).isEqualTo(5L);
+        assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
+
+        InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
+        assertThat(invalidAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+        assertThat(invalidAction.mismatchedValue())
+                .isEqualTo(MismatchedValue.of(
+                        ValueAndMaybeTimestamp.of(WorkloadTestHelpers.VALUE_ONE, 1L), ValueAndMaybeTimestamp.empty()));
+    }
+
+    @Test
+    public void catchesAbaWriteWriteConflictForDeletes() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .delete(5, 10)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidTransaction.transaction().startTimestamp()).isEqualTo(5L);
+        assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
+
+        InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
+        assertThat(invalidAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+        assertThat(invalidAction.mismatchedValue())
+                .isEqualTo(MismatchedValue.of(
+                        ValueAndMaybeTimestamp.of(Optional.empty(), 1L), ValueAndMaybeTimestamp.empty()));
+    }
+
+    @Test
+    public void doesNotCatchWriteSkew() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .read(5, 10)
+                .write(6, 10, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void doesNotCatchReadOnlyTransactionAnomaly() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(11L)
+                .read(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .startTransaction(12L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(13L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void properlyReplaysReadsAndWrites() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .read(5, 10)
+                .endTransaction(15L)
+                .startTransaction(16L)
+                .read(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(17L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+}u}(jWf (536813aeb3973b4b9f9bd25d91bf425cf6efeb37jf iatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/VersionedTableViewTest.javajf addedjf KHjf K jf KHjf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.javajf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.java?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf XU  @@ -0,0 +1,72 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.TreeMap;
+import org.junit.Test;
+
+public final class VersionedTableViewTest {
+    @Test
+    public void putStoresTable() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        tableView.put(1L, HashMap.of(10L, 20L));
+        assertThat(tableView.getLatestTableView().getSnapshot().toJavaMap())
+                .containsExactlyEntriesOf(java.util.Map.of(10L, 20L));
+    }
+
+    @Test
+    public void getLatestTableViewFetchesLargestVersion() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedLastView = HashMap.of(30L, 40L);
+        tableView.put(1L, HashMap.of(10L, 20L));
+        tableView.put(2L, HashMap.of(20L, 30L));
+        tableView.put(3L, HashMap.of(30L, 40L));
+        assertThat(tableView.getLatestTableView().getSnapshot()).isEqualTo(expectedLastView);
+    }
+
+    @Test
+    public void getViewFetchesViewBeforeTimestamp() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedView = HashMap.of(10L, 20L);
+        tableView.put(1L, expectedView);
+        tableView.put(3L, HashMap.of(20L, 30L));
+        assertThat(tableView.getView(2L).getSnapshot()).isEqualTo(expectedView);
+    }
+
+    @Test
+    public void getViewThrowsWhenFetchingViewForTimestampThatExists() {
+        Long timestamp = 1L;
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedView = HashMap.of(10L, 20L);
+        tableView.put(timestamp, expectedView);
+
+        TreeMap<Long, Map<Long, Long>> tableViews = new TreeMap<>();
+        tableViews.put(timestamp, tableView.getLatestTableView().getSnapshot());
+
+        assertThatLoggableExceptionThrownBy(() -> tableView.getView(1L).getSnapshot())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("It is expected when obtaining a view")
+                .hasExactlyArgs(SafeArg.of("startTimestamp", 1L), SafeArg.of("tableViews", tableViews));
+    }
+}u}(jWf (cad53b71091234e55f82b97b4b6e475eebb5559bjf qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javajf modifiedjf Kjf K jf Kjf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf X  @@ -40,6 +40,13 @@ public WitnessedTransactionsBuilder(String table) {
         this.table = table;
     }
 
+    public WitnessedTransactionBuilder startTransaction(long startTimestamp) {
+        if (startTimestamp > timestampCounter.get()) {
+            timestampCounter.set(startTimestamp);
+        }
+        return new WitnessedTransactionBuilder(startTimestamp);
+    }
+
     public WitnessedTransactionBuilder startTransaction() {
         return new WitnessedTransactionBuilder(timestampCounter.incrementAndGet());
     }u}(jWf (bdf9a77b3f524e363e5144842e79d33e09bcbe78jf hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javajf modifiedjf Kjf K jf Kjf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javajf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf X  @@ -19,6 +19,7 @@
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.invariant.ValueAndMaybeTimestamp;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
@@ -58,5 +59,9 @@ public final class WorkloadTestHelpers {
             TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_ONE);
     public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
             TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO);
+
+    public static final ValueAndMaybeTimestamp VALUE_ONE_AND_TIMESTAMP = ValueAndMaybeTimestamp.of(VALUE_ONE, 1L);
+
+    public static final ValueAndMaybeTimestamp VALUE_TWO_AND_TIMESTAMP = ValueAndMaybeTimestamp.of(VALUE_TWO, 1L);
     public static final String WORKFLOW = "example-workflow";
 }u}(jWf (aab6c8e21d5584a8291807921d8d032d4786559djf eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowsTest.javajf addedjf Kdjf K jf Kdjf https://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javajf https://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.java?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf Xh  @@ -0,0 +1,100 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.security.SecureRandom;
+import java.util.Collection;
+import java.util.List;
+import java.util.stream.Collectors;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class RandomWorkflowsTest {
+    private static final String TABLE_NAME = "random.random";
+    private static final RandomWorkflowConfiguration CONFIGURATION = ImmutableRandomWorkflowConfiguration.builder()
+            .tableConfiguration(ImmutableTableConfiguration.builder()
+                    .tableName(TABLE_NAME)
+                    .isolationLevel(IsolationLevel.SERIALIZABLE)
+                    .build())
+            .iterationCount(1)
+            .build();
+
+    private final TransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+
+    @Mock
+    private SecureRandom random;
+
+    private Workflow workflow;
+
+    @Before
+    public void before() {
+        this.workflow = RandomWorkflows.create(
+                memoryStore,
+                CONFIGURATION,
+                MoreExecutors.listeningDecorator(PTExecutors.newSingleThreadExecutor()),
+                random);
+    }
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore())
+                .as("should return a read only transaction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void workflowRunsReadWritesDeletes() {
+        when(random.nextInt(anyInt())).thenReturn(1);
+        WorkflowHistory history = workflow.run();
+        List<WitnessedTransactionAction> actions = history.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(actions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+}u}(jWf (b92e0f6636b00a68d6b900daa1da10ff5cbb9a1ejf  changelog/0.865.0/pr-6595.v2.ymljf addedjf Kjf K jf Kjf vhttps://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/changelog%2F0.865.0%2Fpr-6595.v2.ymljf uhttps://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/changelog%2F0.865.0%2Fpr-6595.v2.ymljf https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.865.0%2Fpr-6595.v2.yml?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf @@ -0,0 +1,5 @@
+type: feature
+feature:
+  description: '[TEX] Report transaction level metrics'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6595u}(jWf (24da7696d056cef662a3a0936f5eaef73ca2f9f2jf  changelog/0.866.0/pr-6581.v2.ymljf addedjf Kjf K jf Kjf vhttps://github.com/palantir/atlasdb/blob/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/changelog%2F0.866.0%2Fpr-6581.v2.ymljf uhttps://github.com/palantir/atlasdb/raw/3598f630d7a376c88a9edebe1a1b5d19b249a3a5/changelog%2F0.866.0%2Fpr-6581.v2.ymljf https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.866.0%2Fpr-6581.v2.yml?ref=3598f630d7a376c88a9edebe1a1b5d19b249a3a5jf @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Add leading/nested loop hints on Oracle delete overflow related SQL
+    to improve perf
+  links:
+  - https://github.com/palantir/atlasdb/pull/6581ueu(c367c1d62d8630efab42df476949fa3da80d0e7d}(sha(c367c1d62d8630efab42df476949fa3da80d0e7dnode_idEC_kwDOAjP5fdoAKGMzNjdjMWQ2MmQ4NjMwZWZhYjQyZGY0NzY5NDlmYTNkYTgwZDBlN2Qcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-05-22T22:54:11Zu	committer}(jg 
svc-changelogjg svc-changelog@palantir.comjg 2023-05-22T22:54:11ZumessageAdd generated changelog entriestree}(jg (08c9df57b3baab2418bde68ed9816b1381b7ca03url`https://api.github.com/repos/palantir/atlasdb/git/trees/08c9df57b3baab2418bde68ed9816b1381b7ca03ujg bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c367c1d62d8630efab42df476949fa3da80d0e7d
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmRr8pMJEHYaJX37fAFQAABX4gEApPUa9jEnw0XqOsCinL7TPj/B
Zqcuexr8H2kE93fzfEkBAKW92YEbNxVgsK+ynaoFa/WeZdUkbuOhKuI8Fb+p866t
=3saL
-----END PGP SIGNATURE-----payloadX  tree 08c9df57b3baab2418bde68ed9816b1381b7ca03
parent 7d27d1bf8ae6931fbae7a130ef33309e0faa7078
author svc-changelog <svc-changelog@palantir.com> 1684796051 +0000
committer svc-changelog <svc-changelog@palantir.com> 1684796051 +0000

Add generated changelog entriesuujg ^https://api.github.com/repos/palantir/atlasdb/commits/c367c1d62d8630efab42df476949fa3da80d0e7dhtml_urlShttps://github.com/palantir/atlasdb/commit/c367c1d62d8630efab42df476949fa3da80d0e7dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c367c1d62d8630efab42df476949fa3da80d0e7d/commentsjg }(login
svc-changelogidJ#jg MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jg *https://api.github.com/users/svc-changelogjg  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujg }(jg 
svc-changelogjg J#jg MDQ6VXNlcjg0MDc3NjAzjg 4https://avatars.githubusercontent.com/u/84077603?v=4jg h5jg *https://api.github.com/users/svc-changelogjg  https://github.com/svc-changelogjg 4https://api.github.com/users/svc-changelog/followersjg Ahttps://api.github.com/users/svc-changelog/following{/other_user}jg :https://api.github.com/users/svc-changelog/gists{/gist_id}jg Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jg 8https://api.github.com/users/svc-changelog/subscriptionsjg /https://api.github.com/users/svc-changelog/orgsjg 0https://api.github.com/users/svc-changelog/reposjg ;https://api.github.com/users/svc-changelog/events{/privacy}jg :https://api.github.com/users/svc-changelog/received_eventsjg Userjg uparents]}(jg (7d27d1bf8ae6931fbae7a130ef33309e0faa7078jg ^https://api.github.com/repos/palantir/atlasdb/commits/7d27d1bf8ae6931fbae7a130ef33309e0faa7078jg Shttps://github.com/palantir/atlasdb/commit/7d27d1bf8ae6931fbae7a130ef33309e0faa7078uastats}(totalK	additionsK	deletionsK ufiles]}(jg (be28e0890da21d6d8b36c3d7f6d13422933da314filename$changelog/@unreleased/pr-6584.v2.ymlstatusaddedjh Kj
h K changesKblob_url|https://github.com/palantir/atlasdb/blob/c367c1d62d8630efab42df476949fa3da80d0e7d/changelog%2F%40unreleased%2Fpr-6584.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/c367c1d62d8630efab42df476949fa3da80d0e7d/changelog%2F%40unreleased%2Fpr-6584.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6584.v2.yml?ref=c367c1d62d8630efab42df476949fa3da80d0e7dpatch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[CBT] Split up container 3 and add more max heap to timelock integTest'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6584uau(419ce921509634e1762d33764836b48195afabfd}(sha(419ce921509634e1762d33764836b48195afabfdnode_idEC_kwDOAjP5fdoAKDQxOWNlOTIxNTA5NjM0ZTE3NjJkMzM3NjQ4MzZiNDgxOTVhZmFiZmQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-02-27T12:59:04Zu	committer}(j)h 
Sam Kramerj+h skramer@palantir.comj-h 2023-02-27T12:59:04Zumessageaddress nitstree}(j!h (611e8c50e54f441cf1e171f5455dd27d3c91f393url`https://api.github.com/repos/palantir/atlasdb/git/trees/611e8c50e54f441cf1e171f5455dd27d3c91f393uj9h bhttps://api.github.com/repos/palantir/atlasdb/git/commits/419ce921509634e1762d33764836b48195afabfd
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmP8qRkACgkQmPPOpKR4
XS3cgAf/dptj/xV7Q27hdoU/VpOgeJcONQTh3SOwdrBQg34zzgbkxh6hF3ptzqnI
ygBtguBKvRAOrVA7Ei3neUhvs1yMV5ECg0hNb7hSM+9ru6b1TGQitLxRG4N7fBRu
Lg3CdpOiMX5jAYjup8xiTDsSi/ZRBiJ7YTZaQghyb+NTUMkY7lTe81T+rS0nm9tz
WlENT/sBhD+v54n1hlxYNGKQYO8pCQFzoiq3TGArPC9xbnUyGPowX5WoChOHhubK
2++WYqd8KsovpnQ8/8vYATcBmV+mB6ple9znOBNR+9j36LD2tsAPsKQOYEgRUsU4
TJQsAyL5Beg2PywHJGU3ksr1McyUjA==
=7qf3
-----END PGP SIGNATURE-----payloadtree 611e8c50e54f441cf1e171f5455dd27d3c91f393
parent 33c3b9130636a2ad33ff06ee6339fa9fe1dba0ba
author Sam Kramer <skramer@palantir.com> 1677502744 +0000
committer Sam Kramer <skramer@palantir.com> 1677502744 +0000

address nits
uuj9h ^https://api.github.com/repos/palantir/atlasdb/commits/419ce921509634e1762d33764836b48195afabfdhtml_urlShttps://github.com/palantir/atlasdb/commit/419ce921509634e1762d33764836b48195afabfdcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/419ce921509634e1762d33764836b48195afabfd/commentsj'h }(login
Sam-KrameridJ^2_ j#h MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j9h 'https://api.github.com/users/Sam-KramerjGh https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj/h }(jLh 
Sam-KramerjNh J^2_ j#h MDQ6VXNlcjYyMzg4MTQ=jPh 3https://avatars.githubusercontent.com/u/6238814?v=4jRh h5j9h 'https://api.github.com/users/Sam-KramerjGh https://github.com/Sam-KramerjUh 1https://api.github.com/users/Sam-Kramer/followersjWh >https://api.github.com/users/Sam-Kramer/following{/other_user}jYh 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j[h >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j]h 5https://api.github.com/users/Sam-Kramer/subscriptionsj_h ,https://api.github.com/users/Sam-Kramer/orgsjah -https://api.github.com/users/Sam-Kramer/reposjch 8https://api.github.com/users/Sam-Kramer/events{/privacy}jeh 7https://api.github.com/users/Sam-Kramer/received_eventsjgh Userjih uparents]}(j!h (33c3b9130636a2ad33ff06ee6339fa9fe1dba0baj9h ^https://api.github.com/repos/palantir/atlasdb/commits/33c3b9130636a2ad33ff06ee6339fa9fe1dba0bajGh Shttps://github.com/palantir/atlasdb/commit/33c3b9130636a2ad33ff06ee6339fa9fe1dba0bauastats}(totalK6	additionsK-	deletionsK	ufiles](}(j!h (e5c2480e12b1d1e1a9b545986d3f5344eca6b30afilenameQatlasdb-commons/src/main/java/com/palantir/exception/NotInitializedException.javastatusmodifiedjh Kjh KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/419ce921509634e1762d33764836b48195afabfd/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/419ce921509634e1762d33764836b48195afabfd/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.java?ref=419ce921509634e1762d33764836b48195afabfdpatchX  @@ -15,6 +15,7 @@
  */
 package com.palantir.exception;
 
+import com.google.errorprone.annotations.CompileTimeConstant;
 import com.palantir.common.exception.AtlasDbDependencyException;
 import com.palantir.logsafe.Arg;
 import com.palantir.logsafe.Safe;
@@ -32,7 +33,7 @@ public class NotInitializedException extends AtlasDbDependencyException implemen
                     + " expected that initialization of some object types do take some time.";
     private final String objectNotInitialized;
 
-    public NotInitializedException(String objectNotInitialized) {
+    public NotInitializedException(@CompileTimeConstant String objectNotInitialized) {
         super(EXCEPTION_MESSAGE);
         this.objectNotInitialized = objectNotInitialized;
     }
@@ -43,7 +44,8 @@ public NotInitializedException(String objectNotInitialized, Throwable throwable)
     }
 
     @Override
-    public @Safe String getLogMessage() {
+    @Safe
+    public String getLogMessage() {
         return EXCEPTION_MESSAGE;
     }
 u}(j!h (663fb329a1528db6163b9b1f4439285891583a43jh [atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/TargetedSweeperTest.javajh modifiedjh K)jh Kjh K0jh https://github.com/palantir/atlasdb/blob/419ce921509634e1762d33764836b48195afabfd/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FTargetedSweeperTest.javajh https://github.com/palantir/atlasdb/raw/419ce921509634e1762d33764836b48195afabfd/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FTargetedSweeperTest.javajh https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FTargetedSweeperTest.java?ref=419ce921509634e1762d33764836b48195afabfdjh X/  @@ -16,22 +16,51 @@
 package com.palantir.atlasdb.sweep.queue;
 
 import static com.palantir.atlasdb.sweep.metrics.SweepMetricsAssert.assertThat;
-import static com.palantir.atlasdb.sweep.queue.SweepQueueUtils.*;
+import static com.palantir.atlasdb.sweep.queue.SweepQueueUtils.BATCH_SIZE_KVS;
+import static com.palantir.atlasdb.sweep.queue.SweepQueueUtils.MAX_CELLS_GENERIC;
+import static com.palantir.atlasdb.sweep.queue.SweepQueueUtils.SWEEP_BATCH_SIZE;
+import static com.palantir.atlasdb.sweep.queue.SweepQueueUtils.TS_COARSE_GRANULARITY;
+import static com.palantir.atlasdb.sweep.queue.SweepQueueUtils.TS_FINE_GRANULARITY;
+import static com.palantir.atlasdb.sweep.queue.SweepQueueUtils.maxTsForFinePartition;
+import static com.palantir.atlasdb.sweep.queue.SweepQueueUtils.minTsForCoarsePartition;
+import static com.palantir.atlasdb.sweep.queue.SweepQueueUtils.minTsForFinePartition;
+import static com.palantir.atlasdb.sweep.queue.SweepQueueUtils.tsPartitionFine;
 import static com.palantir.atlasdb.table.description.SweeperStrategy.CONSERVATIVE;
 import static com.palantir.atlasdb.table.description.SweeperStrategy.THOROUGH;
 import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.ArgumentMatchers.*;
-import static org.mockito.Mockito.*;
-
-import com.google.common.collect.*;
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.ArgumentMatchers.anyLong;
+import static org.mockito.ArgumentMatchers.anyMap;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.atLeast;
+import static org.mockito.Mockito.atMost;
+import static org.mockito.Mockito.doAnswer;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.never;
+import static org.mockito.Mockito.times;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.collect.Multimap;
 import com.google.common.math.IntMath;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.cleaner.KeyValueServicePuncherStore;
 import com.palantir.atlasdb.cleaner.PuncherStore;
 import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.*;
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.keyvalue.api.KeyValueService;
+import com.palantir.atlasdb.keyvalue.api.RangeRequest;
+import com.palantir.atlasdb.keyvalue.api.RowResult;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.keyvalue.api.TargetedSweepMetadata;
+import com.palantir.atlasdb.keyvalue.api.TimestampRangeDelete;
+import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.schema.generated.SweepableCellsTable;
 import com.palantir.atlasdb.schema.generated.TargetedSweepTableFactory;
 import com.palantir.atlasdb.sweep.Sweeper;
@@ -55,7 +84,12 @@
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.SafeArg;
 import java.time.Duration;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.UUID;
 import java.util.concurrent.atomic.AtomicLong;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.stream.Collectors;ueuS      (7a8b5f26f23166c4a0cf30b44f4066044079a185}(sha(7a8b5f26f23166c4a0cf30b44f4066044079a185node_idEC_kwDOAjP5fdoAKDdhOGI1ZjI2ZjIzMTY2YzRhMGNmMzBiNDRmNDA2NjA0NDA3OWExODUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-11T15:35:19Zu	committer}(jh 
Sam Kramerjh skramer@palantir.comjh 2023-04-11T17:47:31Zumessagexstash - support interactive transactions

Add interactive transaction method to TransactionStore and implement for atlastree}(jh (37acd9fae8d9fbd9cc775400176e3d1893426059url`https://api.github.com/repos/palantir/atlasdb/git/trees/37acd9fae8d9fbd9cc775400176e3d1893426059ujh bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7a8b5f26f23166c4a0cf30b44f4066044079a185
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ1nTUACgkQmPPOpKR4
XS1nWAgAj6YjidUBNH2n2mNiazjkXP5oCHUYx/7RjIXNJek3crOXx8XZprt1RwhA
5HqYkCk76YS7FNxTE7aQteIgiyph9KErxIAZAgknuVojnRaRXsxgi7cAd1qw15Sh
CAaFb9IslLxSfCZkxgPZzArBVVDubUnJLsl+rUo2G9TBv7qf5ORHdKpMeWvaeLvP
lTiDtwh7I2L4NH81HGLDtYmlaEs5kEVlhWERbcQyoNZ/LpBt9k3uPGfRPvmhTF+/
PAFiEeTCxRzryOdW6LoL3acH3FEjF0uhECPrUvFXGFLssL9+R1g+JlUA0Ld0WP1A
LO12VXLbXZ2x3p7NBdDHrlG98wp1Kw==
=QMAe
-----END PGP SIGNATURE-----payloadXO  tree 37acd9fae8d9fbd9cc775400176e3d1893426059
parent 6e081f04521863ae0874fd2ba63760f3ef0f0d68
author Sam Kramer <skramer@palantir.com> 1681227319 +0100
committer Sam Kramer <skramer@palantir.com> 1681235251 +0100

stash - support interactive transactions

Add interactive transaction method to TransactionStore and implement for atlas
uujh ^https://api.github.com/repos/palantir/atlasdb/commits/7a8b5f26f23166c4a0cf30b44f4066044079a185html_urlShttps://github.com/palantir/atlasdb/commit/7a8b5f26f23166c4a0cf30b44f4066044079a185comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7a8b5f26f23166c4a0cf30b44f4066044079a185/commentsjh }(login
Sam-KrameridJ^2_ jh MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jh 'https://api.github.com/users/Sam-Kramerjh https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujh }(jh 
Sam-Kramerjh J^2_ jh MDQ6VXNlcjYyMzg4MTQ=jh 3https://avatars.githubusercontent.com/u/6238814?v=4jh h5jh 'https://api.github.com/users/Sam-Kramerjh https://github.com/Sam-Kramerjh 1https://api.github.com/users/Sam-Kramer/followersjh >https://api.github.com/users/Sam-Kramer/following{/other_user}jh 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jh >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jh 5https://api.github.com/users/Sam-Kramer/subscriptionsjh ,https://api.github.com/users/Sam-Kramer/orgsjh -https://api.github.com/users/Sam-Kramer/reposjh 8https://api.github.com/users/Sam-Kramer/events{/privacy}jh 7https://api.github.com/users/Sam-Kramer/received_eventsjh Userjh uparents]}(jh (6e081f04521863ae0874fd2ba63760f3ef0f0d68jh ^https://api.github.com/repos/palantir/atlasdb/commits/6e081f04521863ae0874fd2ba63760f3ef0f0d68jh Shttps://github.com/palantir/atlasdb/commit/6e081f04521863ae0874fd2ba63760f3ef0f0d68uastats}(totalM	additionsM^	deletionsK<ufiles](}(jh (1af1a7db2e9134693c98fe2077fa945e919a44d7filenamecatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStore.javastatusmodifiedji K	ji K changesK	blob_urlhttps://github.com/palantir/atlasdb/blob/7a8b5f26f23166c4a0cf30b44f4066044079a185/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7a8b5f26f23166c4a0cf30b44f4066044079a185/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.java?ref=7a8b5f26f23166c4a0cf30b44f4066044079a185patchXc  @@ -16,10 +16,12 @@
 
 package com.palantir.atlasdb.workload.store;
 
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import java.util.List;
 import java.util.Optional;
+import java.util.function.Consumer;
 
 /**
  * A transactional store for the workload server to read/write from.
@@ -33,4 +35,11 @@ public interface TransactionStore extends ReadableTransactionStore {
      * @return The witnessed transaction, if successfully committed.
      */
     Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions);
+
+    /**
+     * Provides a convenient interface for interacting with a transaction, and having each action automatically recorded.
+     * @param interactiveTransactionConsumer Consumer which performs gets/puts/deletes
+     * @return The witnessed transaction, if successfully committed.
+     */
+    Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer);
 }u}(jh (4f80972ed51d1ca703c845e6db8af278009a14f3ji oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javaj
i addedji K#ji K ji K#j
i https://github.com/palantir/atlasdb/blob/7a8b5f26f23166c4a0cf30b44f4066044079a185/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaji https://github.com/palantir/atlasdb/raw/7a8b5f26f23166c4a0cf30b44f4066044079a185/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaji https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=7a8b5f26f23166c4a0cf30b44f4066044079a185ji X  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import java.util.List;
+import java.util.Optional;
+
+/**
+ * Allows for convenient interaction with a transactional store.
+ */
+public interface InteractiveTransaction {
+    Optional<Integer> read(String table, WorkloadCell workloadCell);
+
+    void write(String table, WorkloadCell workloadCell, Integer value);
+
+    void delete(String table, WorkloadCell workloadCell);
+
+    List<WitnessedTransactionAction> witness();
+}u}(jh (eaea1261cdd1ff9391385beb93861d9f9c2bb3fbji latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj
i addedji Ksji K ji Ksj
i https://github.com/palantir/atlasdb/blob/7a8b5f26f23166c4a0cf30b44f4066044079a185/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaji https://github.com/palantir/atlasdb/raw/7a8b5f26f23166c4a0cf30b44f4066044079a185/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaji https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=7a8b5f26f23166c4a0cf30b44f4066044079a185ji Xc  @@ -0,0 +1,115 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.BiFunction;
+import javax.annotation.concurrent.NotThreadSafe;
+
+@NotThreadSafe
+final class AtlasDbInteractiveTransaction implements InteractiveTransaction {
+
+    private final Transaction transaction;
+
+    private final Map<String, TableReference> tables;
+
+    private final List<WitnessedTransactionAction> witnessedTransactionActions = new ArrayList<>();
+
+    private boolean hasFinished = false;
+
+    public AtlasDbInteractiveTransaction(Transaction transaction, Map<String, TableReference> tables) {
+        this.transaction = transaction;
+        this.tables = tables;
+    }
+
+    @Override
+    public Optional<Integer> read(String table, WorkloadCell workloadCell) {
+        return run(
+                (tableReference, atlasCell) -> {
+                    Map<Cell, byte[]> values = transaction.get(tableReference, Set.of(atlasCell));
+                    Optional<Integer> valueRead =
+                            Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
+                    witnessedTransactionActions.add(WitnessedReadTransactionAction.of(table, workloadCell, valueRead));
+                    return valueRead;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public void write(String table, WorkloadCell workloadCell, Integer value) {
+        run(
+                (tableReference, atlasCell) -> {
+                    transaction.put(tableReference, Map.of(atlasCell, Ints.toByteArray(value)));
+                    witnessedTransactionActions.add(WitnessedWriteTransactionAction.of(table, workloadCell, value));
+                    return null;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public void delete(String table, WorkloadCell workloadCell) {
+        run(
+                (tableReference, atlasCell) -> {
+                    transaction.delete(tableReference, Set.of(atlasCell));
+                    witnessedTransactionActions.add(WitnessedDeleteTransactionAction.of(table, workloadCell));
+                    return null;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public List<WitnessedTransactionAction> witness() {
+        hasFinished = true;
+        return witnessedTransactionActions;
+    }
+
+    private TableReference getTableReferenceOrThrow(String table) {
+        return Optional.ofNullable(tables.get(table))
+                .orElseThrow(() -> new SafeIllegalArgumentException(
+                        "Transaction action has unknown table.",
+                        SafeArg.of("readTransactionTableName", table),
+                        SafeArg.of("availableTables", tables)));
+    }
+
+    private <T> T run(BiFunction<TableReference, Cell, T> function, String table, WorkloadCell workloadCell) {
+        Preconditions.checkState(
+                !hasFinished, "Transaction has already been witnessed and can no longer perform any actions.");
+        Cell atlasCell = AtlasDbUtils.toAtlasCell(workloadCell);
+        TableReference tableReference = getTableReferenceOrThrow(table);
+        return function.apply(tableReference, atlasCell);
+    }
+}u}(jh (bad2553829edbb5a9d040dc90a8cac6d35dcacd4ji fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj
i modifiedji Kji K3ji KPj
i https://github.com/palantir/atlasdb/blob/7a8b5f26f23166c4a0cf30b44f4066044079a185/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaji https://github.com/palantir/atlasdb/raw/7a8b5f26f23166c4a0cf30b44f4066044079a185/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaji https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=7a8b5f26f23166c4a0cf30b44f4066044079a185ji XJ  @@ -18,34 +18,30 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
-import com.google.common.primitives.Ints;
-import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.PreCommitCondition;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
-import com.palantir.atlasdb.workload.util.AtlasDbUtils;
-import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
-import java.util.Set;
 import java.util.concurrent.atomic.AtomicReference;
+import java.util.function.Consumer;
 import java.util.function.Function;
 import java.util.function.Supplier;
-import java.util.stream.Collectors;
 import javax.annotation.concurrent.NotThreadSafe;
 import one.util.streamex.EntryStream;
 
@@ -63,27 +59,30 @@ private AtlasDbTransactionStore(TransactionManager transactionManager, Map<Strin
 
     @Override
     public Optional<Integer> get(String table, WorkloadCell cell) {
-        Cell atlasCell = AtlasDbUtils.toAtlasCell(cell);
-        TableReference tableReference = getTableReferenceOrThrow(table);
-        return transactionManager.runTaskWithRetry(task -> {
-            Map<Cell, byte[]> values = task.get(tableReference, Set.of(atlasCell));
-            return Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
-        });
+        return transactionManager.runTaskWithRetry(
+                transaction -> new AtlasDbInteractiveTransaction(transaction, tables).read(table, cell));
     }
 
     @Override
     public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
+        return readWrite(txn -> {
+            AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
+            actions.stream().sequential().forEach(action -> action.accept(visitor));
+        });
+    }
+
+    @Override
+    public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer) {
         AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
         Supplier<CommitTimestampProvider> commitTimestampProvider =
                 Suppliers.memoize(() -> new CommitTimestampProvider());
         try {
             Transaction transaction =
                     transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
-                        AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
-                        witnessedActionsReference.set(actions.stream()
-                                .sequential()
-                                .map(action -> action.accept(visitor))
-                                .collect(Collectors.toList()));
+                        AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
+                                new AtlasDbInteractiveTransaction(txn, tables);
+                        interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
+                        witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
                         return txn;
                     });
 
@@ -107,52 +106,31 @@ public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions)
         }
     }
 
-    private TableReference getTableReferenceOrThrow(TransactionAction action) {
-        return getTableReferenceOrThrow(action.table());
-    }
-
-    private TableReference getTableReferenceOrThrow(String table) {
-        return Optional.ofNullable(tables.get(table))
-                .orElseThrow(() -> new SafeIllegalArgumentException(
-                        "Transaction action has unknown table.",
-                        SafeArg.of("readTransactionTableName", table),
-                        SafeArg.of("availableTables", tables)));
-    }
-
-    private class AtlasDbTransactionActionVisitor implements TransactionActionVisitor<WitnessedTransactionAction> {
+    private static class AtlasDbTransactionActionVisitor implements TransactionActionVisitor<Void> {
 
-        private final Transaction transaction;
+        private final InteractiveTransaction transaction;
 
-        public AtlasDbTransactionActionVisitor(Transaction transaction) {
+        public AtlasDbTransactionActionVisitor(InteractiveTransaction transaction) {
             this.transaction = transaction;
         }
 
         @Override
-        public WitnessedTransactionAction visit(ReadTransactionAction readTransactionAction) {
-            Cell cell = AtlasDbUtils.toAtlasCell(readTransactionAction.cell());
-            TableReference tableReference = getTableReferenceOrThrow(readTransactionAction);
-            Map<Cell, byte[]> cells =
-                    transaction.get(tableReference, Set.of(AtlasDbUtils.toAtlasCell(readTransactionAction.cell())));
-            Optional<Integer> value = Optional.ofNullable(cells.get(cell)).map(Ints::fromByteArray);
-            return readTransactionAction.witness(value);
+        public Void visit(ReadTransactionAction readTransactionAction) {
+            transaction.read(readTransactionAction.table(), readTransactionAction.cell());
+            return null;
         }
 
         @Override
-        public WitnessedTransactionAction visit(WriteTransactionAction writeTransactionAction) {
-            TableReference tableReference = getTableReferenceOrThrow(writeTransactionAction);
-            transaction.put(
-                    tableReference,
-                    Map.of(
-                            AtlasDbUtils.toAtlasCell(writeTransactionAction.cell()),
-                            Ints.toByteArray(writeTransactionAction.value())));
-            return writeTransactionAction.witness();
+        public Void visit(WriteTransactionAction writeTransactionAction) {
+            transaction.write(
+                    writeTransactionAction.table(), writeTransactionAction.cell(), writeTransactionAction.value());
+            return null;
         }
 
         @Override
-        public WitnessedTransactionAction visit(DeleteTransactionAction deleteTransactionAction) {
-            TableReference tableReference = getTableReferenceOrThrow(deleteTransactionAction);
-            transaction.delete(tableReference, Set.of(AtlasDbUtils.toAtlasCell(deleteTransactionAction.cell())));
-            return deleteTransactionAction.witness();
+        public Void visit(DeleteTransactionAction deleteTransactionAction) {
+            transaction.delete(deleteTransactionAction.table(), deleteTransactionAction.cell());
+            return null;
         }
     }
 u}(jh (b5153a38953e7417f0f9867686cd369359e28c9eji patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj
i addedji Kji K ji Kj
i https://github.com/palantir/atlasdb/blob/7a8b5f26f23166c4a0cf30b44f4066044079a185/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaji https://github.com/palantir/atlasdb/raw/7a8b5f26f23166c4a0cf30b44f4066044079a185/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaji https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=7a8b5f26f23166c4a0cf30b44f4066044079a185ji X_  @@ -0,0 +1,145 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.NAMES_TO_REFERENCES_TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLES_TO_ATLAS_METADATA;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Consumer;
+import org.junit.Before;
+import org.junit.Test;
+
+public final class AtlasDbInteractiveTransactionTest {
+
+    private TransactionManager manager;
+
+    @Before
+    public void before() {
+        manager = TransactionManagers.createInMemory(Set.of());
+        manager.getKeyValueService().createTables(TABLES_TO_ATLAS_METADATA);
+    }
+
+    @Test
+    public void witnessRecordAllActions() {
+        assertThat(readWrite(transaction -> {
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
+                .containsExactly(
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void readHandlesEmptyAndPresentValue() {
+        assertThat(readWrite(transaction -> {
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
+                .containsExactly(
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+    }
+
+    @Test
+    public void readThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.read(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void writeThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(
+                transaction -> transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE));
+    }
+
+    @Test
+    public void deleteThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void readThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.read(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void writeThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE));
+    }
+
+    @Test
+    public void deleteThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        return manager.runTaskWithRetry(atlasTransaction -> {
+            AtlasDbInteractiveTransaction interactiveTransaction =
+                    new AtlasDbInteractiveTransaction(atlasTransaction, NAMES_TO_REFERENCES_TABLE_1);
+            transactionConsumer.accept(interactiveTransaction);
+            return interactiveTransaction.witness();
+        });
+    }
+
+    private void assertThatThrownWhenUnknownTableReferenced(
+            Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
+                    transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
+                    return null;
+                }))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Transaction action has unknown table.");
+    }
+
+    private void assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+            Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
+                    AtlasDbInteractiveTransaction transaction =
+                            new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
+                    transaction.witness();
+                    transactionConsumer.accept(transaction);
+                    return null;
+                }))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Transaction has already been witnessed and can no longer perform any actions.");
+    }
+}u}(jh (f078b01f9f07ade1c536865d8b2a68a6e10d8d76ji jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj
i modifiedji Kji K	ji K
j
i https://github.com/palantir/atlasdb/blob/7a8b5f26f23166c4a0cf30b44f4066044079a185/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaji https://github.com/palantir/atlasdb/raw/7a8b5f26f23166c4a0cf30b44f4066044079a185/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaji https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=7a8b5f26f23166c4a0cf30b44f4066044079a185ji X	  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.workload.store;
 
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.INDEX_REFERENCE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLES_TO_ATLAS_METADATA;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1_INDEX_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
@@ -35,7 +36,6 @@
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
@@ -65,20 +65,14 @@ public final class AtlasDbTransactionStoreTest {
     private static final long START_TS = 1;
     private static final long COMMIT_TS = 2;
 
-    private static final Map<TableReference, byte[]> TABLES = Map.of(
-            TABLE_REFERENCE,
-            AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
-            INDEX_REFERENCE,
-            AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE));
-
     private TransactionManager manager;
 
     private AtlasDbTransactionStore store;
 
     @Before
     public void before() {
         manager = TransactionManagers.createInMemory(Set.of());
-        store = AtlasDbTransactionStore.create(manager, TABLES);
+        store = AtlasDbTransactionStore.create(manager, TABLES_TO_ATLAS_METADATA);
     }
 
     @Test
@@ -162,7 +156,8 @@ public void abortedTransactionsReturnEmpty() {
         Transaction abortedTransaction = mock(Transaction.class);
         when(abortedTransaction.isAborted()).thenReturn(true);
         doReturn(abortedTransaction).when(onlyAbortsManager).runTaskWithConditionWithRetry(any(Supplier.class), any());
-        AtlasDbTransactionStore onlyAbortsStore = AtlasDbTransactionStore.create(onlyAbortsManager, TABLES);
+        AtlasDbTransactionStore onlyAbortsStore =
+                AtlasDbTransactionStore.create(onlyAbortsManager, TABLES_TO_ATLAS_METADATA);
         assertThat(onlyAbortsStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isEmpty();
     }u}(jh (8ffdace14399047bd326fd7444f140ee6bceeaffji hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javaj
i modifiedji K
ji K ji K
j
i https://github.com/palantir/atlasdb/blob/7a8b5f26f23166c4a0cf30b44f4066044079a185/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaji https://github.com/palantir/atlasdb/raw/7a8b5f26f23166c4a0cf30b44f4066044079a185/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaji https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=7a8b5f26f23166c4a0cf30b44f4066044079a185ji X  @@ -18,9 +18,12 @@
 
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import java.util.Map;
 
 public final class WorkloadTestHelpers {
     public static final String TABLE_1 = "foo";
@@ -34,6 +37,16 @@ public final class WorkloadTestHelpers {
     public static final TableReference INDEX_REFERENCE =
             TableReference.create(TABLE_REFERENCE.getNamespace(), TABLE_1_INDEX_1);
 
+    public static final Map<String, TableReference> NAMES_TO_REFERENCES_TABLE_1 = Map.of(
+            TABLE_1, TABLE_REFERENCE,
+            TABLE_1_INDEX_1, INDEX_REFERENCE);
+
+    public static final Map<TableReference, byte[]> TABLES_TO_ATLAS_METADATA = Map.of(
+            TABLE_REFERENCE,
+            AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
+            INDEX_REFERENCE,
+            AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE));
+
     public static final Namespace NAMESPACE = Namespace.create("workload");
     public static final WorkloadCell WORKLOAD_CELL_ONE = ImmutableWorkloadCell.of(50, 10);
     public static final WorkloadCell WORKLOAD_CELL_TWO = ImmutableWorkloadCell.of(1257, 521);ueu(30f3c21ccbae7dfbc74864e0b1d50d70ff882405}(sha(30f3c21ccbae7dfbc74864e0b1d50d70ff882405node_idEC_kwDOAjP5fdoAKDMwZjNjMjFjY2JhZTdkZmJjNzQ4NjRlMGIxZDUwZDcwZmY4ODI0MDUcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-06-29T14:38:31Zu	committer}(jOi David SchlosnaglejQi davids@palantir.comjSi 2023-07-09T19:17:09Zumessage&[revapi] Avoid autoboxing long to Longtree}(jGi (fb3e896960af1cdab8dad51146b7c2746237721curl`https://api.github.com/repos/palantir/atlasdb/git/trees/fb3e896960af1cdab8dad51146b7c2746237721cuj_i bhttps://api.github.com/repos/palantir/atlasdb/git/commits/30f3c21ccbae7dfbc74864e0b1d50d70ff882405
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmSrB7UACgkQR9hsJ74Q
0l9CxQgArj/C6NQhdYsliKg3PCgI4rKkULEqgwPEnASac9oA0MEUBndsR23nKb3p
gSStQoswUsQgSPn+9XR+J9q22bFnE7InN+eZ9PjRah5nvvfD0nnX21W/z/OxYw33
yLRilx0OHF5b0d9G4GPBUH5Ckrfi9kE6AaCGsNIKI0oL0wLgRpJRX3Qijw3fGS5e
aFB7klByD5lzNYZoB5etfonVpD12ipeuJ8P4LooegHflf7WcKK7xen6Ydsz/tJoB
G5qucbbIfollZEt7YKH3fFmPYvd5wzLYOxyLLI1IyOp9VyaBO/EIeURNgvmDu1HY
KPCkNd1BTxy1vn6DQLt5k4a3MmgsDQ==
=vw5I
-----END PGP SIGNATURE-----payloadX	  tree fb3e896960af1cdab8dad51146b7c2746237721c
parent dcd70b6e2e58bb1c0d2ee5a712f8d81b64b5d98c
author David Schlosnagle <davids@palantir.com> 1688049511 -0400
committer David Schlosnagle <davids@palantir.com> 1688930229 -0400

[revapi] Avoid autoboxing long to Long
uuj_i ^https://api.github.com/repos/palantir/atlasdb/commits/30f3c21ccbae7dfbc74864e0b1d50d70ff882405html_urlShttps://github.com/palantir/atlasdb/commit/30f3c21ccbae7dfbc74864e0b1d50d70ff882405comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/30f3c21ccbae7dfbc74864e0b1d50d70ff882405/commentsjMi }(loginschlosnaidMBjIi MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j_i %https://api.github.com/users/schlosnajmi https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujUi }(jri schlosnajti MBjIi MDQ6VXNlcjU0NTk0jvi 1https://avatars.githubusercontent.com/u/54594?v=4jxi h5j_i %https://api.github.com/users/schlosnajmi https://github.com/schlosnaj{i /https://api.github.com/users/schlosna/followersj}i <https://api.github.com/users/schlosna/following{/other_user}ji 5https://api.github.com/users/schlosna/gists{/gist_id}ji <https://api.github.com/users/schlosna/starred{/owner}{/repo}ji 3https://api.github.com/users/schlosna/subscriptionsji *https://api.github.com/users/schlosna/orgsji +https://api.github.com/users/schlosna/reposji 6https://api.github.com/users/schlosna/events{/privacy}ji 5https://api.github.com/users/schlosna/received_eventsji Userji uparents]}(jGi (dcd70b6e2e58bb1c0d2ee5a712f8d81b64b5d98cj_i ^https://api.github.com/repos/palantir/atlasdb/commits/dcd70b6e2e58bb1c0d2ee5a712f8d81b64b5d98cjmi Shttps://github.com/palantir/atlasdb/commit/dcd70b6e2e58bb1c0d2ee5a712f8d81b64b5d98cuastats}(totalK	additionsK	deletionsK ufiles]}(jGi (7fa6e573e6b5f2ef697deaef51ce4df058945c7bfilename.palantir/revapi.ymlstatusmodifiedji Kji K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/30f3c21ccbae7dfbc74864e0b1d50d70ff882405/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/30f3c21ccbae7dfbc74864e0b1d50d70ff882405/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=30f3c21ccbae7dfbc74864e0b1d50d70ff882405patchX  @@ -121,3 +121,11 @@ acceptedBreaks:
       old: "method java.util.concurrent.ExecutorService com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService::createThreadPoolWihtoutSpans(java.lang.String,\
         \ int, int) @ com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl"
       justification: "Protected method"
+  "0.881.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter <T> long com.palantir.atlasdb.keyvalue.cassandra.thrift.ThriftObjectSizeUtils::getCollectionSize(java.util.Collection<T>,\
+        \ ===java.util.function.Function<T, java.lang.Long>===)"
+      new: "parameter <T> long com.palantir.atlasdb.keyvalue.cassandra.thrift.ThriftObjectSizeUtils::getCollectionSize(java.util.Collection<T>,\
+        \ ===java.util.function.ToLongFunction<T>===)"
+      justification: "Avoid autoboxing long to Long"uau(09bf36946428fa380e00a724683d6a2fb86a57e9}(sha(09bf36946428fa380e00a724683d6a2fb86a57e9node_idEC_kwDOAjP5fdoAKDA5YmYzNjk0NjQyOGZhMzgwZTAwYTcyNDY4M2Q2YTJmYjg2YTU3ZTkcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-23T20:06:28Zu	committer}(ji Jeremy Kongji jkong@palantir.comji 2023-05-23T20:06:28Zumessage6Merge branch 'develop' into jkong/antithesis-fall-guystree}(ji (29fe46702df74b468a1f0614b4b5130e2f8a5459url`https://api.github.com/repos/palantir/atlasdb/git/trees/29fe46702df74b468a1f0614b4b5130e2f8a5459uji bhttps://api.github.com/repos/palantir/atlasdb/git/commits/09bf36946428fa380e00a724683d6a2fb86a57e9
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRtHMcACgkQTLdFKain
zjzelQf/cQ47SbTRa2m39V6yWrr+kBu12/HS9Y9hb0j7YTlpWW8d0Ec7TFY3qT/N
VQfgPJSwAG3hue3SnwfTzYIpLNUUO3BHsYJk1d/V+9cgvqE2/uk8mwNu27TGjrjB
mxHk61u1wak9RZL8Cl86n7HZIHng48wTfB4qUVGV3IEQn8LUFv3eHakDuUSyJ9D4
E0LwXUc/Q/uzHZj8fRXaZiSSgPaRLRh/WUtWDXNu/fEoK2qEvHa1UL3Wu4LquyvZ
B+ieHVPV3hpAv9B2AQkjsXyM1ccpVyzMoDhWubkIaMxlQK5Acx3GntCoyhYhH+r1
KkUof2nB3Rd9iwK9/R3xQWOV6JfRBA==
=hVBK
-----END PGP SIGNATURE-----payloadX;  tree 29fe46702df74b468a1f0614b4b5130e2f8a5459
parent a86beccd40c2e299190f26a35cb9acd559cfd717
parent d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02
author Jeremy Kong <jkong@palantir.com> 1684872388 +0100
committer Jeremy Kong <jkong@palantir.com> 1684872388 +0100

Merge branch 'develop' into jkong/antithesis-fall-guys
uuji ^https://api.github.com/repos/palantir/atlasdb/commits/09bf36946428fa380e00a724683d6a2fb86a57e9html_urlShttps://github.com/palantir/atlasdb/commit/09bf36946428fa380e00a724683d6a2fb86a57e9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/09bf36946428fa380e00a724683d6a2fb86a57e9/commentsji }(login
jeremyk-91idJZ ji MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5ji 'https://api.github.com/users/jeremyk-91ji https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuji }(ji 
jeremyk-91ji JZ ji MDQ6VXNlcjU5NTU1MTA=ji 3https://avatars.githubusercontent.com/u/5955510?v=4ji h5ji 'https://api.github.com/users/jeremyk-91ji https://github.com/jeremyk-91ji 1https://api.github.com/users/jeremyk-91/followersji >https://api.github.com/users/jeremyk-91/following{/other_user}ji 7https://api.github.com/users/jeremyk-91/gists{/gist_id}ji >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}ji 5https://api.github.com/users/jeremyk-91/subscriptionsji ,https://api.github.com/users/jeremyk-91/orgsji -https://api.github.com/users/jeremyk-91/reposj j 8https://api.github.com/users/jeremyk-91/events{/privacy}jj 7https://api.github.com/users/jeremyk-91/received_eventsjj Userjj uparents](}(ji (a86beccd40c2e299190f26a35cb9acd559cfd717ji ^https://api.github.com/repos/palantir/atlasdb/commits/a86beccd40c2e299190f26a35cb9acd559cfd717ji Shttps://github.com/palantir/atlasdb/commit/a86beccd40c2e299190f26a35cb9acd559cfd717u}(ji (d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02ji ^https://api.github.com/repos/palantir/atlasdb/commits/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02ji Shttps://github.com/palantir/atlasdb/commit/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02uestats}(totalMO	additionsM;	deletionsKufiles](}(ji (97d4354e82ad28af333625140441ffe7750a2b0dfilename.circleci/config.ymlstatusmodifiedj$j K*j%j K	changesK3blob_urlhhttps://github.com/palantir/atlasdb/blob/09bf36946428fa380e00a724683d6a2fb86a57e9/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/09bf36946428fa380e00a724683d6a2fb86a57e9/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=09bf36946428fa380e00a724683d6a2fb86a57e9patchX  @@ -1,4 +1,4 @@
-version: 2
+version: 2.1
 
 jobs:
   build:
@@ -31,8 +31,10 @@ jobs:
           root: .
           paths: [ . ]
 
-  test:
-    parallelism: 14
+  test-suite:
+    parameters:
+      suite:
+        type: integer
     machine:
       image: ubuntu-2004:202111-02
     resource_class: xlarge
@@ -66,7 +68,7 @@ jobs:
               curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
               sudo ln -s /opt/java/zulu*/ /opt/java8
       - run:
-          command: ./scripts/circle-ci/run-circle-tests.sh
+          command: ./scripts/circle-ci/run-circle-tests.sh << parameters.suite >>
           no_output_timeout: 900
       - run: ./scripts/circle-ci/ensure-repo-clean.sh
       - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
@@ -78,11 +80,16 @@ jobs:
       - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
       - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
       - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - when:
+          # Persist to workspace for the compile/compileTest container to keep deploy fast.
+          condition:
+            equal: [ 13, << parameters.suite >> ]
+          steps:
+            - persist_to_workspace:
+                root: .
+                paths: [ . ]
       - store_artifacts:
           path: /home/circleci/artifacts
-      - persist_to_workspace:
-          root: .
-          paths: [ . ]
 
   trial-publish:
     docker:
@@ -97,6 +104,12 @@ jobs:
       - attach_workspace: { at: . }
       - run: ./gradlew --scan --profile --stacktrace --continue publishToMavenLocal
 
+  test:
+    docker: [ { image: 'busybox:1.34.1' } ]
+    resource_class: small
+    steps:
+      - run: {command: echo "Ran all required tests successfully"}
+
   deploy:
     docker:
       - image: cimg/openjdk:11.0.10-node
@@ -130,15 +143,35 @@ jobs:
             fi
 
 workflows:
-  version: 2
   check:
     jobs:
       - build:
           filters:
             tags:
               only: /.*/
-      - test:
+      - test-suite:
           requires: [build]
+          matrix:
+            alias: test-no-tl
+            parameters:
+              # intentionally excluding 12 (TimeLock migration ETE test) from this collection
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13]
+          filters:
+            tags:
+              only: /.*/
+      - test-suite:
+          requires: [build]
+          matrix:
+            alias: test-tl
+            parameters:
+              suite: [12]
+          filters:
+            branches:
+              only: /(tlmete.*|develop)/
+            tags:
+              only: /.*/
+      - test:
+          requires: [test-tl, test-no-tl]
           filters:
             tags:
               only: /.*/u}(ji (7ed6f31d91209eb01a70cc1992699c7d6b7590bdj*j Tatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/AlwaysBuggifyFactory.javaj,j addedj$j Kj%j K j.j Kj/j https://github.com/palantir/atlasdb/blob/09bf36946428fa380e00a724683d6a2fb86a57e9/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.javaj1j https://github.com/palantir/atlasdb/raw/09bf36946428fa380e00a724683d6a2fb86a57e9/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.javaj3j https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.java?ref=09bf36946428fa380e00a724683d6a2fb86a57e9j5j X.  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggify;
+
+public enum AlwaysBuggifyFactory implements BuggifyFactory {
+    INSTANCE;
+
+    @Override
+    public Buggify maybe(double _probability) {
+        return DefaultBuggify.INSTANCE;
+    }
+}u}(ji (8fc45b8b9ddc37ded24af638207557f822511685j*j 1atlasdb-workload-server-antithesis/var/compact.shj,j addedj$j Kj%j K j.j Kj/j https://github.com/palantir/atlasdb/blob/09bf36946428fa380e00a724683d6a2fb86a57e9/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shj1j https://github.com/palantir/atlasdb/raw/09bf36946428fa380e00a724683d6a2fb86a57e9/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shj3j https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.sh?ref=09bf36946428fa380e00a724683d6a2fb86a57e9j5j X  @@ -0,0 +1,19 @@
+#!/bin/bash
+
+##
+# (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool compact'¡
\ No newline at end of fileu}(ji (b5c7b9efcec99e2e4e3b5ccc3eb2f13e725dca1aj*j 9atlasdb-workload-server-antithesis/var/docker-compose.ymlj,j modifiedj$j Kj%j Kj.j K	j/j https://github.com/palantir/atlasdb/blob/09bf36946428fa380e00a724683d6a2fb86a57e9/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj1j https://github.com/palantir/atlasdb/raw/09bf36946428fa380e00a724683d6a2fb86a57e9/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj3j https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=09bf36946428fa380e00a724683d6a2fb86a57e9j5j X  @@ -2,7 +2,7 @@ version: '2'
 
 services:
   cassandra1:
-    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
     ports:
       - "9160"
       - "9042"
@@ -13,13 +13,14 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra1
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
 
   cassandra2:
-    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
     ports:
       - "9160"
       - "9042"
@@ -30,13 +31,14 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra2
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
 
   cassandra3:
-    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
     ports:
       - "9160"
       - "9042"
@@ -47,6 +49,7 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra3
     networks:
       antithesis-net:u}(ji (507c4267b553dffafece23d33ad88df6fd5f4bb2j*j /atlasdb-workload-server-antithesis/var/flush.shj,j addedj$j Kj%j K j.j Kj/j https://github.com/palantir/atlasdb/blob/09bf36946428fa380e00a724683d6a2fb86a57e9/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shj1j https://github.com/palantir/atlasdb/raw/09bf36946428fa380e00a724683d6a2fb86a57e9/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shj3j https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fflush.sh?ref=09bf36946428fa380e00a724683d6a2fb86a57e9j5j X  @@ -0,0 +1,19 @@
+#!/bin/bash
+
+##
+# (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool flush'
\ No newline at end of fileu}(ji (e413798427db97d025ad85b9f49ea4d26c076e02j*j natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/resource/CassandraSidecarResource.javaj,j addedj$j Kj%j K j.j Kj/j https://github.com/palantir/atlasdb/blob/09bf36946428fa380e00a724683d6a2fb86a57e9/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.javaj1j https://github.com/palantir/atlasdb/raw/09bf36946428fa380e00a724683d6a2fb86a57e9/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.javaj3j https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.java?ref=09bf36946428fa380e00a724683d6a2fb86a57e9j5j X  @@ -0,0 +1,29 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.resource;
+
+public interface CassandraSidecarResource {
+    /**
+     * Asynchronous method that flushes all keyspaces on a Cassandra host.
+     */
+    void flush(String host);
+
+    /**
+     * Asynchronous method that performs a major compaction for all keyspaces on Cassandra.
+     */
+    void compact(String host);
+}u}(ji (7f3e9e8f12ab40d4c411f5e94cce359dfef3b112j*j 1atlasdb-workload-server-distribution/build.gradlej,j modifiedj$j Kj%j K j.j Kj/j https://github.com/palantir/atlasdb/blob/09bf36946428fa380e00a724683d6a2fb86a57e9/atlasdb-workload-server-distribution%2Fbuild.gradlej1j https://github.com/palantir/atlasdb/raw/09bf36946428fa380e00a724683d6a2fb86a57e9/atlasdb-workload-server-distribution%2Fbuild.gradlej3j https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=09bf36946428fa380e00a724683d6a2fb86a57e9j5j Xk  @@ -20,6 +20,7 @@ dependencies {
     implementation 'com.palantir.conjure.java.runtime:conjure-java-jersey-server'
     implementation 'com.google.guava:guava'
 
+    implementation project(':atlasdb-buggify')
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-cassandra')
     implementation project(':atlasdb-workload-server')u}(ji (36957540ef4c4bb05a01d7c6adace05e608bccebj*j latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj,j modifiedj$j Kj%j Kj.j Kj/j https://github.com/palantir/atlasdb/blob/09bf36946428fa380e00a724683d6a2fb86a57e9/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj1j https://github.com/palantir/atlasdb/raw/09bf36946428fa380e00a724683d6a2fb86a57e9/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj3j https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=09bf36946428fa380e00a724683d6a2fb86a57e9j5j Xq  @@ -22,11 +22,14 @@
 import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
+import com.palantir.atlasdb.workload.background.BackgroundCassandraJob;
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
 import com.palantir.atlasdb.workload.invariant.DurableWritesInvariantMetricReporter;
 import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
+import com.palantir.atlasdb.workload.resource.AntithesisCassandraSidecarResource;
 import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
@@ -53,10 +56,13 @@
 import io.dropwizard.lifecycle.setup.LifecycleEnvironment;
 import io.dropwizard.setup.Bootstrap;
 import io.dropwizard.setup.Environment;
+import java.util.List;
 import java.util.Map;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutorService;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
 
 public class WorkloadServerLauncher extends Application<WorkloadServerConfiguration> {
 
@@ -84,12 +90,28 @@ public void initialize(Bootstrap<WorkloadServerConfiguration> bootstrap) {
     public void run(WorkloadServerConfiguration configuration, Environment environment) {
         environment.getObjectMapper().registerModule(new Jdk8Module()).registerModule(new JavaTimeModule());
 
+        scheduleBackgroundJobs(environment);
+
         ExecutorService workflowRunnerExecutor =
                 environment.lifecycle().executorService("workflow-runner").build();
-
         workflowRunnerExecutor.execute(() -> runWorkflows(configuration, environment));
     }
 
+    private void scheduleBackgroundJobs(Environment environment) {
+        ScheduledExecutorService backgroundJobExecutor = environment
+                .lifecycle()
+                .scheduledExecutorService("background-job")
+                .build();
+        backgroundJobExecutor.scheduleAtFixedRate(
+                new BackgroundCassandraJob(
+                        List.of("cassandra1", "cassandra2", "cassandra3"),
+                        AntithesisCassandraSidecarResource.INSTANCE,
+                        DefaultBuggifyFactory.INSTANCE),
+                0,
+                10,
+                TimeUnit.SECONDS);
+    }
+
     private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {
         ExecutorService antithesisWorkflowRunnerExecutorService = environment
                 .lifecycle()u}(ji (8b9834003c52ed4630cb687d233e97192635cc24j*j jatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/background/BackgroundCassandraJob.javaj,j addedj$j K,j%j K j.j K,j/j https://github.com/palantir/atlasdb/blob/09bf36946428fa380e00a724683d6a2fb86a57e9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.javaj1j https://github.com/palantir/atlasdb/raw/09bf36946428fa380e00a724683d6a2fb86a57e9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.javaj3j https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.java?ref=09bf36946428fa380e00a724683d6a2fb86a57e9j5j X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.background;
+
+import com.google.common.collect.Iterators;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.workload.resource.CassandraSidecarResource;
+import java.util.Iterator;
+import java.util.List;
+
+public class BackgroundCassandraJob implements Runnable {
+
+    private final CassandraSidecarResource cassandraSidecarResource;
+    private final Iterator<String> cassandraHosts;
+
+    private final BuggifyFactory buggify;
+
+    public BackgroundCassandraJob(
+            List<String> cassandraHosts, CassandraSidecarResource cassandraSidecarResource, BuggifyFactory buggify) {
+        this.cassandraSidecarResource = cassandraSidecarResource;
+        this.cassandraHosts = Iterators.cycle(cassandraHosts);
+        this.buggify = buggify;
+    }
+
+    @Override
+    public void run() {
+        buggify.maybe(0.20).run(() -> cassandraSidecarResource.flush(cassandraHosts.next()));
+        buggify.maybe(0.20).run(() -> cassandraSidecarResource.compact(cassandraHosts.next()));
+    }
+}u}(ji (afc5fd9e1645d1faf8b1f77f62a39f67390b4c87j*j tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/resource/AntithesisCassandraSidecarResource.javaj,j addedj$j K%j%j K j.j K%j/j https://github.com/palantir/atlasdb/blob/09bf36946428fa380e00a724683d6a2fb86a57e9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.java      j1j https://github.com/palantir/atlasdb/raw/09bf36946428fa380e00a724683d6a2fb86a57e9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.javaj3j https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.java?ref=09bf36946428fa380e00a724683d6a2fb86a57e9j5j X>  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.resource;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+
+public enum AntithesisCassandraSidecarResource implements CassandraSidecarResource {
+    INSTANCE;
+
+    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisCassandraSidecarResource.class);
+
+    @Override
+    public void flush(String host) {
+        log.info("antithesis: flush {}", SafeArg.of("host", host));
+    }
+
+    @Override
+    public void compact(String host) {
+        log.info("antithesis: compact {}", SafeArg.of("host", host));
+    }
+}u}(ji (c89f46a34f99a9fca258b76f8b9fdf692e350760j*j natlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/background/BackgroundCassandraJobTest.javaj,j addedj$j K2j%j K j.j K2j/j https://github.com/palantir/atlasdb/blob/09bf36946428fa380e00a724683d6a2fb86a57e9/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.javaj1j https://github.com/palantir/atlasdb/raw/09bf36946428fa380e00a724683d6a2fb86a57e9/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.javaj3j https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.java?ref=09bf36946428fa380e00a724683d6a2fb86a57e9j5j X  @@ -0,0 +1,50 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.background;
+
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.verify;
+
+import com.palantir.atlasdb.buggify.AlwaysBuggifyFactory;
+import com.palantir.atlasdb.workload.resource.CassandraSidecarResource;
+import java.util.List;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class BackgroundCassandraJobTest {
+
+    private static final String HOST_ONE = "cassandra1";
+    private static final String HOST_TWO = "cassandra2";
+    private static final String HOST_THREE = "cassandra3";
+
+    private static final List<String> CASSANDRA_HOSTS = List.of(HOST_ONE, HOST_TWO, HOST_THREE);
+
+    @Mock
+    private CassandraSidecarResource cassandraSidecarResource;
+
+    @Test
+    public void runCanExecuteCompactFlushOnAllCassandraHosts() {
+        BackgroundCassandraJob backgroundCassandraJob =
+                new BackgroundCassandraJob(CASSANDRA_HOSTS, cassandraSidecarResource, AlwaysBuggifyFactory.INSTANCE);
+        CASSANDRA_HOSTS.forEach(_ignore -> backgroundCassandraJob.run());
+        CASSANDRA_HOSTS.forEach(host -> verify(cassandraSidecarResource).compact(eq(host)));
+        CASSANDRA_HOSTS.forEach(host -> verify(cassandraSidecarResource).flush(eq(host)));
+    }
+}u}(ji (8dec3b76640ffbcc9b9795bc2408b874d1f25be9j*j  changelog/0.855.0/pr-6569.v2.ymlj,j addedj$j Kj%j K j.j Kj/j vhttps://github.com/palantir/atlasdb/blob/09bf36946428fa380e00a724683d6a2fb86a57e9/changelog%2F0.855.0%2Fpr-6569.v2.ymlj1j uhttps://github.com/palantir/atlasdb/raw/09bf36946428fa380e00a724683d6a2fb86a57e9/changelog%2F0.855.0%2Fpr-6569.v2.ymlj3j https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.855.0%2Fpr-6569.v2.yml?ref=09bf36946428fa380e00a724683d6a2fb86a57e9j5j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[CBT] Split test into multiple workflows'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6569u}(ji (2caa47ac951f1248b2272f5652f42a85e858f016j*j gradle/shared.gradlej,j modifiedj$j Kj%j K j.j Kj/j hhttps://github.com/palantir/atlasdb/blob/09bf36946428fa380e00a724683d6a2fb86a57e9/gradle%2Fshared.gradlej1j ghttps://github.com/palantir/atlasdb/raw/09bf36946428fa380e00a724683d6a2fb86a57e9/gradle%2Fshared.gradlej3j zhttps://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fshared.gradle?ref=09bf36946428fa380e00a724683d6a2fb86a57e9j5j @@ -88,6 +88,7 @@ afterEvaluate {
 
 tasks.withType(Test) {
     enableAssertions = true
+    failFast = true
 }
 
 ext.atlasdb_shaded = 'com.palantir.atlasdb.shaded.'u}(ji (bba9d63fbbe8164d0cd4c0489e523982076a1ba1j*j %scripts/circle-ci/run-circle-tests.shj,j modifiedj$j K	j%j Kj.j Kj/j {https://github.com/palantir/atlasdb/blob/09bf36946428fa380e00a724683d6a2fb86a57e9/scripts%2Fcircle-ci%2Frun-circle-tests.shj1j zhttps://github.com/palantir/atlasdb/raw/09bf36946428fa380e00a724683d6a2fb86a57e9/scripts%2Fcircle-ci%2Frun-circle-tests.shj3j https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=09bf36946428fa380e00a724683d6a2fb86a57e9j5j X|	  @@ -2,7 +2,7 @@
 
 set -x
 
-BASE_GRADLE_ARGS="--profile --continue"
+BASE_GRADLE_ARGS="--profile"
 
 function checkDocsBuild {
      pyenv install 3.5.4
@@ -27,15 +27,15 @@ CONTAINER_6=(':timelock-server:suiteTest')
 
 CONTAINER_7=(':timelock-server:stressTest')
 
-CONTAINER_8=(':atlasdb-ete-tests:timeLockMigrationTest')
+CONTAINER_8=(':atlasdb-cassandra-integration-tests:testSubset2')
 
 CONTAINER_9=(':atlasdb-ete-tests:oracleTest')
 
 CONTAINER_10=('atlasdb-dbkvs-tests:oracleTest')
 
 CONTAINER_11=(':atlasdb-impl-shared:check' )
 
-CONTAINER_12=(':atlasdb-cassandra-integration-tests:testSubset2')
+CONTAINER_12=(':atlasdb-ete-tests:timeLockMigrationTest')
 
 CONTAINER_13=('compileJava' 'compileTestJava')
 
@@ -50,16 +50,18 @@ do
     CONTAINER_0_EXCLUDE_ARGS="$CONTAINER_0_EXCLUDE_ARGS -x $task"
 done
 
+test_suite_index=$1
+
 # Short circuit the build if it's docs only
 if ./scripts/circle-ci/check-only-docs-changes.sh; then
-    if [ $CIRCLE_NODE_INDEX -eq 0 ]; then
+    if [ "$test_suite_index" -eq 0 ]; then
         checkDocsBuild
         exit $?
     fi
     exit 0
 fi
 
-if [ $CIRCLE_NODE_INDEX -eq 9 ] || [ $CIRCLE_NODE_INDEX -eq 10 ]; then
+if [ "$test_suite_index" -eq 9 ] || [ "$test_suite_index" -eq 10 ]; then
     printenv DOCKERHUB_PASSWORD | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
     # The oracle container is very large and takes a long time to pull.
     # If this image is not pulled here, the circle build usually times out.
@@ -71,7 +73,7 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
 # External builds have a 16gb limit.
-if [ "$CIRCLE_NODE_INDEX" -eq "13" ]; then
+if [ "$test_suite_index" -eq "13" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
@@ -80,7 +82,7 @@ fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64m
 
-case $CIRCLE_NODE_INDEX in
+case "$test_suite_index" in
     0) ./gradlew $BASE_GRADLE_ARGS check $CONTAINER_0_EXCLUDE_ARGS -x :atlasdb-jepsen-tests:check;;
     1) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_1[@]} ;;
     2) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_2[@]} -x :atlasdb-ete-tests:longTest -x atlasdb-ete-tests:dbkvsTest -x :atlasdb-ete-tests:timeLockMigrationTest ;;ueu(84a1ac8407c0ad8be1bdf530a29893b7b74b53a3}(sha(84a1ac8407c0ad8be1bdf530a29893b7b74b53a3node_idEC_kwDOAjP5fdoAKDg0YTFhYzg0MDdjMGFkOGJlMWJkZjUzMGEyOTg5M2I3Yjc0YjUzYTMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-15T16:28:15Zu	committer}(jj 
Sam Kramerjj skramer@palantir.comjj 2023-05-15T16:28:15Zumessageadd compact/flush scriptstree}(jj (82d96c06ba79a854077776ab9e8144268c1c1ab1url`https://api.github.com/repos/palantir/atlasdb/git/trees/82d96c06ba79a854077776ab9e8144268c1c1ab1ujj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/84a1ac8407c0ad8be1bdf530a29893b7b74b53a3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRiXZ8ACgkQmPPOpKR4
XS3Wvgf/epi1FeixMNR96n0fLwAUO9gwtQsEgTPHoIj5sr1PfDAcbq9uQjfjiNZc
LuXY6X3LN7T+UDK0dMPq9THPAy9qgeFhnt6lp5ONWk3Qwy81wtvhUbYkjiPn3swt
tMAzkzDg0+qKx4l5ZGxu+qXhh+uo1kqPpWW5W9FCWQ0VARGW9iJjwFk+e4PrPPWm
r7hlKthlLLykyAOMlbS7BvUV4sPmsn4PzkQPUH8P56cOj4Wv5fWMLVqa/C2Q/Z33
2vFktm/uPkXIqHeP++iLb2QxPHCsjXR2q82p/99NPu4KPdgiupHApwFj88TQwaPw
2hgKC/pf1utuZjLdMpU9HmCkvkR1Aw==
=LpA3
-----END PGP SIGNATURE-----payloadtree 82d96c06ba79a854077776ab9e8144268c1c1ab1
parent f4d98b3921d65ced41324368fe3b0b681fd4db0f
author Sam Kramer <skramer@palantir.com> 1684168095 +0100
committer Sam Kramer <skramer@palantir.com> 1684168095 +0100

add compact/flush scripts
uujj ^https://api.github.com/repos/palantir/atlasdb/commits/84a1ac8407c0ad8be1bdf530a29893b7b74b53a3html_urlShttps://github.com/palantir/atlasdb/commit/84a1ac8407c0ad8be1bdf530a29893b7b74b53a3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/84a1ac8407c0ad8be1bdf530a29893b7b74b53a3/commentsjj }(login
Sam-KrameridJ^2_ jj MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jj 'https://api.github.com/users/Sam-Kramerjj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujj }(jj 
Sam-Kramerjj J^2_ jj MDQ6VXNlcjYyMzg4MTQ=jj 3https://avatars.githubusercontent.com/u/6238814?v=4jj h5jj 'https://api.github.com/users/Sam-Kramerjj https://github.com/Sam-Kramerjj 1https://api.github.com/users/Sam-Kramer/followersjj >https://api.github.com/users/Sam-Kramer/following{/other_user}jj 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jj >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jj 5https://api.github.com/users/Sam-Kramer/subscriptionsjj ,https://api.github.com/users/Sam-Kramer/orgsjj -https://api.github.com/users/Sam-Kramer/reposjj 8https://api.github.com/users/Sam-Kramer/events{/privacy}jj 7https://api.github.com/users/Sam-Kramer/received_eventsjj Userjj uparents]}(jj (f4d98b3921d65ced41324368fe3b0b681fd4db0fjj ^https://api.github.com/repos/palantir/atlasdb/commits/f4d98b3921d65ced41324368fe3b0b681fd4db0fjj Shttps://github.com/palantir/atlasdb/commit/f4d98b3921d65ced41324368fe3b0b681fd4db0fuastats}(totalK$	additionsK$	deletionsK ufiles](}(jj (cc92b15756ef07130de8175f9d47e9b21d940ffdfilename1atlasdb-workload-server-antithesis/var/compact.shstatusaddedjk Kjk K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/84a1ac8407c0ad8be1bdf530a29893b7b74b53a3/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shraw_urlhttps://github.com/palantir/atlasdb/raw/84a1ac8407c0ad8be1bdf530a29893b7b74b53a3/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.sh?ref=84a1ac8407c0ad8be1bdf530a29893b7b74b53a3patchX  @@ -0,0 +1,18 @@
+##
+# (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+#!/bin/bash
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool compact'
\ No newline at end of fileu}(jj (1494a88d2ac33320173cde37013776ebff592a34j	k /atlasdb-workload-server-antithesis/var/flush.shjk addedjk Kjk K j
k Kjk https://github.com/palantir/atlasdb/blob/84a1ac8407c0ad8be1bdf530a29893b7b74b53a3/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shjk https://github.com/palantir/atlasdb/raw/84a1ac8407c0ad8be1bdf530a29893b7b74b53a3/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shjk https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fflush.sh?ref=84a1ac8407c0ad8be1bdf530a29893b7b74b53a3jk X  @@ -0,0 +1,18 @@
+##
+# (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+#!/bin/bash
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool flush'
\ No newline at end of fileueu(baa6f7df112edb5789cc9bbc688e1e6fe3d80fde}(sha(baa6f7df112edb5789cc9bbc688e1e6fe3d80fdenode_idEC_kwDOAjP5fdoAKGJhYTZmN2RmMTEyZWRiNTc4OWNjOWJiYzY4OGUxZTZmZTNkODBmZGUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-16T12:04:39Zu	committer}(j(k 
Ahmed Alouanej*k aalouane@palantir.comj,k 2023-05-16T12:04:39Zumessagehollaaaatree}(j k (a18ca3c47d19bb53eaf4a075537d45f4ac27b690url`https://api.github.com/repos/palantir/atlasdb/git/trees/a18ca3c47d19bb53eaf4a075537d45f4ac27b690uj8k bhttps://api.github.com/repos/palantir/atlasdb/git/commits/baa6f7df112edb5789cc9bbc688e1e6fe3d80fde
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRjcVcACgkQPlMHVIT1
yhqkcAgAjIIRF6tWZdSYPKdPJCgEheyENdlcUsz80dKwxZeiPNm+l9vl16jjXgLQ
/Eubj4EKC3yeZJrvhrGn0x+HQWF9RCjYySUmcxVtSXgMIXUkauwNJUQw4vwPRNQH
Ip9DF+dQ9yiicf1Inw8BBQFBU71DeeS2f6kfwJv+QoSTM9z0/WHrQ5sLIrwyd3TF
zojhHM4BctwVQbYYa86IJIlnpFhV2qSMNYGYooeJ8/kTk2e8D9kxNT8Jhb1N/kQ8
OlX0B3ZEjsGdKSWUXd7DzTby2ApHmWPDlEI8f5WCRLSqcGBYI0vMMkFBGh+/FVNg
MDk8gEqBzDbB5J0nfJCoi8bJxnR8pQ==
=oaEa
-----END PGP SIGNATURE-----payloadtree a18ca3c47d19bb53eaf4a075537d45f4ac27b690
parent 294519fa6f6dc1183d59fdef9ef3b338849b7679
author Ahmed Alouane <aalouane@palantir.com> 1684238679 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684238679 +0100

hollaaaa
uuj8k ^https://api.github.com/repos/palantir/atlasdb/commits/baa6f7df112edb5789cc9bbc688e1e6fe3d80fdehtml_urlShttps://github.com/palantir/atlasdb/commit/baa6f7df112edb5789cc9bbc688e1e6fe3d80fdecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/baa6f7df112edb5789cc9bbc688e1e6fe3d80fde/commentsj&k }(loginergo14idJj"k MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j8k #https://api.github.com/users/ergo14jFk https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj.k }(jKk ergo14jMk Jj"k MDQ6VXNlcjMwOTAzNzM2jOk 4https://avatars.githubusercontent.com/u/30903736?v=4jQk h5j8k #https://api.github.com/users/ergo14jFk https://github.com/ergo14jTk -https://api.github.com/users/ergo14/followersjVk :https://api.github.com/users/ergo14/following{/other_user}jXk 3https://api.github.com/users/ergo14/gists{/gist_id}jZk :https://api.github.com/users/ergo14/starred{/owner}{/repo}j\k 1https://api.github.com/users/ergo14/subscriptionsj^k (https://api.github.com/users/ergo14/orgsj`k )https://api.github.com/users/ergo14/reposjbk 4https://api.github.com/users/ergo14/events{/privacy}jdk 3https://api.github.com/users/ergo14/received_eventsjfk Userjhk uparents]}(j k (294519fa6f6dc1183d59fdef9ef3b338849b7679j8k ^https://api.github.com/repos/palantir/atlasdb/commits/294519fa6f6dc1183d59fdef9ef3b338849b7679jFk Shttps://github.com/palantir/atlasdb/commit/294519fa6f6dc1183d59fdef9ef3b338849b7679uastats}(totalK	additionsK	deletionsKufiles]}(j k (aae2736eee00e93ba366fe1dd68b58be4c35071dfilename.circleci/config.ymlstatusmodifiedjk Kjk KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/baa6f7df112edb5789cc9bbc688e1e6fe3d80fde/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/baa6f7df112edb5789cc9bbc688e1e6fe3d80fde/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=baa6f7df112edb5789cc9bbc688e1e6fe3d80fdepatchXa  @@ -112,14 +112,18 @@ jobs:
   deploy:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: 2xlarge+
+    resource_class: xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
       CIRCLE_TEST_REPORTS: /tmp/test-reports
       CIRCLE_ARTIFACTS: /tmp/artifacts
     steps:
       - attach_workspace: { at: . }
+      - restore_cache:
+          key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
+      - restore_cache:
+          key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
       - add_ssh_keys:
           fingerprints:
             - "b6:ba:27:37:84:8f:eb:b0:ee:0b:7c:c1:fc:18:32:5f"uau(4aa0e421da39f8ef14f0398d9b73a1fae85a0752}(sha(4aa0e421da39f8ef14f0398d9b73a1fae85a0752node_idEC_kwDOAjP5fdoAKDRhYTBlNDIxZGEzOWY4ZWYxNGYwMzk4ZDliNzNhMWZhZTg1YTA3NTIcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-08-08T15:21:17Zu	committer}(jk 	Tom Papkejk tpapke@palantir.comjk 2023-08-08T15:21:17Zumessage*Construct transaction table lock ourselvestree}(jk (e70f01bf688790edddfd8ad354ef53e86e7240e3url`https://api.github.com/repos/palantir/atlasdb/git/trees/e70f01bf688790edddfd8ad354ef53e86e7240e3ujk bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4aa0e421da39f8ef14f0398d9b73a1fae85a0752
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTSXW0ACgkQmF9s0kaF
Iw0TVQf/V3K+V2hp7fDCZzeizrB1vP6JGHonshUXRUMEyTPddNlxyaeSR4BAXOPB
lxeiEw0aHp/kso6OqbNu2Q87YREtZdpf+U8rFuZsnOqDin6ktotR8PnLvPPme70q
79Zxu+peJGL6fjA8U/iRLeA0OIveGpUsyGEfCIpiCmOUqC3SnRMJhYzYR2Xn4MnE
0uldYf2DV1phTy2w2mQYecdhgbJztHG6ziFqfcsHirId3Z5uiBo8Zf0iXNFXWqx0
YsdmbN0RrV2PNv2iN7y3Ledob60L89RM2oTSSFsIIdPpzdPNbO5Sm40bWsT0+aQg
xD4oqsPLS/gRis5e9u9VRC3WzAPKzw==
=45Vf
-----END PGP SIGNATURE-----payloadtree e70f01bf688790edddfd8ad354ef53e86e7240e3
parent 560e7030b459810e22d2e068944790e38a965506
author Tom Papke <tpapke@palantir.com> 1691508077 +0100
committer Tom Papke <tpapke@palantir.com> 1691508077 +0100

Construct transaction table lock ourselves
uujk ^https://api.github.com/repos/palantir/atlasdb/commits/4aa0e421da39f8ef14f0398d9b73a1fae85a0752html_urlShttps://github.com/palantir/atlasdb/commit/4aa0e421da39f8ef14f0398d9b73a1fae85a0752comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4aa0e421da39f8ef14f0398d9b73a1fae85a0752/commentsjk }(login	ToemmscheidJbojk MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jk &https://api.github.com/users/Toemmschejk https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujk }(jk 	Toemmschejk Jbojk MDQ6VXNlcjQzNjc1NDkwjk 4https://avatars.githubusercontent.com/u/43675490?v=4jk h5jk &https://api.github.com/users/Toemmschejk https://github.com/Toemmschejk 0https://api.github.com/users/Toemmsche/followersjk =https://api.github.com/users/Toemmsche/following{/other_user}jk 6https://api.github.com/users/Toemmsche/gists{/gist_id}jk =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jk 4https://api.github.com/users/Toemmsche/subscriptionsjk +https://api.github.com/users/Toemmsche/orgsjk ,https://api.github.com/users/Toemmsche/reposjk 7https://api.github.com/users/Toemmsche/events{/privacy}jk 6https://api.github.com/users/Toemmsche/received_eventsjk Userjk uparents]}(jk (560e7030b459810e22d2e068944790e38a965506jk ^https://api.github.com/repos/palantir/atlasdb/commits/560e7030b459810e22d2e068944790e38a965506jk Shttps://github.com/palantir/atlasdb/commit/560e7030b459810e22d2e068944790e38a965506uastats}(totalK	additionsK		deletionsKufiles]}(jk (1aefcf03b3d2cab297318d0616b890bf5775a496filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedjk K	jk KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/4aa0e421da39f8ef14f0398d9b73a1fae85a0752/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4aa0e421da39f8ef14f0398d9b73a1fae85a0752/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=4aa0e421da39f8ef14f0398d9b73a1fae85a0752patchX 
  @@ -346,7 +346,6 @@ public void cleanup() {}
             ChangeMetadata.updated(PtBytes.toBytes("abc"), PtBytes.toBytes("def"));
     private static final ChangeMetadata DELETE_CHANGE_METADATA = ChangeMetadata.deleted(PtBytes.toBytes("old"));
     private static final ChangeMetadata UNCHANGED_CHANGE_METADATA = ChangeMetadata.unchanged();
-    private static final ChangeMetadata CREATE_CHANGE_METADATA = ChangeMetadata.created(PtBytes.toBytes("new"));
 
     @Override
     @Before
@@ -3019,19 +3018,17 @@ private static void verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
         verify(spiedTimelockService)
                 .lock(
                         argThat(lockRequest -> {
-                            // We always acquire a lock on the transaction table, whose suffix depends on the start
-                            // timestamp
+                            // We always acquire a lock on the transaction table
+                            Set<LockDescriptor> locksWithTransactionTableLock = new ImmutableSet.Builder<
+                                    LockDescriptor>()
+                                    .addAll(locksAndMetadata.lockDescriptors())
+                                    .add(AtlasRowLockDescriptor.of(
+                                            TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
+                                            TransactionConstants.getValueForTimestamp(txn.getTimestamp())))
+                                    .build();
                             assertThat(lockRequest.getLockDescriptors())
                                     .as(assertionMessage)
-                                    .containsAll(locksAndMetadata.lockDescriptors());
-                            assertThat(lockRequest.getLockDescriptors()).allSatisfy(lock -> {
-                                if (!lock.getLockIdAsString()
-                                        .startsWith(TransactionConstants.TRANSACTION_TABLE.getQualifiedName())) {
-                                    assertThat(locksAndMetadata.lockDescriptors())
-                                            .as(assertionMessage)
-                                            .contains(lock);
-                                }
-                            });
+                                    .containsExactlyInAnyOrderElementsOf(locksWithTransactionTableLock);
                             assertThat(lockRequest.getMetadata())
                                     .as(assertionMessage)
                                     .isEqualTo(locksAndMetadata.metadata());uau(f5ecbdca1c46da835c50cee1e4249e7fa4421863}(sha(f5ecbdca1c46da835c50cee1e4249e7fa4421863node_idEC_kwDOAjP5fdoAKGY1ZWNiZGNhMWM0NmRhODM1YzUwY2VlMWU0MjQ5ZTdmYTQ0MjE4NjMcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-21T01:51:41Zu	committer}(jl 
Ahmed Alouanejl aalouane@palantir.comjl 2023-04-21T01:51:41Zumessageactually import the thingtree}(jl (0e890a0ed146981ccaf87a339306712fdbc5a5a0url`https://api.github.com/repos/palantir/atlasdb/git/trees/0e890a0ed146981ccaf87a339306712fdbc5a5a0uj&l bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f5ecbdca1c46da835c50cee1e4249e7fa4421863
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRB7C0ACgkQPlMHVIT1
yhoh9wf+L4hg3LIqyuPjKUS618UJjZ2mRiPvlGzIoe8FIqrlPDkbbTkVUtnrKiJ9
1s6u5fbdJygQV+BKwJL3uWhecNnWFLn4Tckt8hjRcYYm5UYi1cu0yBb1ALg0cxdT
GdVB0l5KWHeCYlHqQuKnN/iHEPcAfKC/RiThJIjoxEOteVYMr7dPLolnD/K8p50d
FLXSAeUgTrdQHsJn+BwTyPPUte1OH0tTZuxr8WxU1T3oZFpi0fDVIwJRAWJqem7Z
JQl1+aiU+rPAWv3SgBZKMhbKmbSYviGvQ0scoBUpE8VfIWIlqM9+XvfVuB/17SFQ
I1JAuzc/MIbLGBXUxgzakfuFknTPzA==
=qwWm
-----END PGP SIGNATURE-----payloadtree 0e890a0ed146981ccaf87a339306712fdbc5a5a0
parent 16de6309892fd75185d1c8f9a8622614491b4ae5
author Ahmed Alouane <aalouane@palantir.com> 1682041901 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682041901 +0100

actually import the thing
uuj&l ^https://api.github.com/repos/palantir/atlasdb/commits/f5ecbdca1c46da835c50cee1e4249e7fa4421863html_urlShttps://github.com/palantir/atlasdb/commit/f5ecbdca1c46da835c50cee1e4249e7fa4421863comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f5ecbdca1c46da835c50cee1e4249e7fa4421863/commentsjl }(loginergo14idJjl MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j&l #https://api.github.com/users/ergo14j4l https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujl }(j9l ergo14j;l Jjl MDQ6VXNlcjMwOTAzNzM2j=l 4https://avatars.githubusercontent.com/u/30903736?v=4j?l h5j&l #https://api.github.com/users/ergo14j4l https://github.com/ergo14jBl -https://api.github.com/users/ergo14/followersjDl :https://api.github.com/users/ergo14/following{/other_user}jFl 3https://api.github.com/users/ergo14/gists{/gist_id}jHl :https://api.github.com/users/ergo14/starred{/owner}{/repo}jJl 1https://api.github.com/users/ergo14/subscriptionsjLl (https://api.github.com/users/ergo14/orgsjNl )https://api.github.com/users/ergo14/reposjPl 4https://api.github.com/users/ergo14/events{/privacy}jRl 3https://api.github.com/users/ergo14/received_eventsjTl UserjVl uparents]}(jl (16de6309892fd75185d1c8f9a8622614491b4ae5j&l ^https://api.github.com/repos/palantir/atlasdb/commits/16de6309892fd75185d1c8f9a8622614491b4ae5j4l Shttps://github.com/palantir/atlasdb/commit/16de6309892fd75185d1c8f9a8622614491b4ae5uastats}(totalK	additionsK	deletionsK ufiles]}(jl (16209d4d7ab0d584ba01cb1714c9df4852781e1efilenameTatlasdb-cli/src/test/java/com/palantir/atlasdb/cli/command/TestTimestampCommand.javastatusmodifiedjpl Kjql K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/f5ecbdca1c46da835c50cee1e4249e7fa4421863/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f5ecbdca1c46da835c50cee1e4249e7fa4421863/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.java?ref=f5ecbdca1c46da835c50cee1e4249e7fa4421863patchX[  @@ -37,6 +37,7 @@
 import com.palantir.atlasdb.services.test.DaggerTestAtlasDbServices;
 import com.palantir.atlasdb.services.test.TestAtlasDbServices;
 import com.palantir.common.time.Clock;
+import com.palantir.flake.ShouldRetry;
 import com.palantir.lock.LockClient;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;uau(bb0b5b081bcc81b12c494f4a500b4c1a3919e34f}(sha(bb0b5b081bcc81b12c494f4a500b4c1a3919e34fnode_idEC_kwDOAjP5fdoAKGJiMGI1YjA4MWJjYzgxYjEyYzQ5NGY0YTUwMGI0YzFhMzkxOWUzNGYcommit}(author}(nameCVdV-auemail)69226052+CVdV-au@users.noreply.github.comdate2023-04-21T03:10:29Zu	committer}(jl GitHubjl noreply@github.comjl 2023-04-21T03:10:29ZumessageBump testing to 19.19 Apr 2023tree}(jl (3dce447d7825e74d9776d7462cddbdc10a96d6f1url`https://api.github.com/repos/palantir/atlasdb/git/trees/3dce447d7825e74d9776d7462cddbdc10a96d6f1ujl bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bb0b5b081bcc81b12c494f4a500b4c1a3919e34f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkQf6lCRBK7hj4Ov3rIwAAKckIAHou2yTqM/3MLeOuHxfmAPWb
gG/2rXCLzYJTNAKWQLCpMZhOsIEwgI+y+TYQeKBOlsCZ5og/SjTzmJYgTFtFbi6k
ryuWQdORzvH0hsgNOiF1QhQwJ9NgZN4sLSxnUG1r/++NCJAQSvLS/juUfsq513lQ
kI1ggQllD6XEqZ6RHjggDn3HiWCQeG1fzRRcT6Zl0CxP9NcNIp8KpExgMRhKUwqy
iLOn2oJlPKl1NWKAGe8l+1wh5MAirEC1u63H9j4/2JKbYf0ESUqU8kZMBso2MpzE
YpY/C2OsOIb0jR2OlFQmRiGa93pjE2JUy73RJC5rbEWYxi19SnH2uUv1h3VTsnE=
=y6YB
-----END PGP SIGNATURE-----
payloadX   tree 3dce447d7825e74d9776d7462cddbdc10a96d6f1
parent 0e042c5db32fd526cc9e1506788bee2cda4f3a43
author CVdV-au <69226052+CVdV-au@users.noreply.github.com> 1682046629 +1000
committer GitHub <noreply@github.com> 1682046629 +1000

Bump testing to 19.19 Apr 2023uujl ^https://api.github.com/repos/palantir/atlasdb/commits/bb0b5b081bcc81b12c494f4a500b4c1a3919e34fhtml_urlShttps://github.com/palantir/atlasdb/commit/bb0b5b081bcc81b12c494f4a500b4c1a3919e34fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bb0b5b081bcc81b12c494f4a500b4c1a3919e34f/commentsjl }(loginCVdV-auidJDN jl MDQ6VXNlcjY5MjI2MDUy
avatar_url4https://avatars.githubusercontent.com/u/69226052?v=4gravatar_idh5jl $https://api.github.com/users/CVdV-aujl https://github.com/CVdV-au
followers_url.https://api.github.com/users/CVdV-au/followers
following_url;https://api.github.com/users/CVdV-au/following{/other_user}	gists_url4https://api.github.com/users/CVdV-au/gists{/gist_id}starred_url;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/CVdV-au/subscriptionsorganizations_url)https://api.github.com/users/CVdV-au/orgs	repos_url*https://api.github.com/users/CVdV-au/repos
events_url5https://api.github.com/users/CVdV-au/events{/privacy}received_events_url4https://api.github.com/users/CVdV-au/received_eventstypeUser
site_adminujl }(jl web-flowjl J/jl MDQ6VXNlcjE5ODY0NDQ3jl 4https://avatars.githubusercontent.com/u/19864447?v=4jl h5jl %https://api.github.com/users/web-flowjl https://github.com/web-flowjl /https://api.github.com/users/web-flow/followersjl <https://api.github.com/users/web-flow/following{/other_user}jl 5https://api.github.com/users/web-flow/gists{/gist_id}jl <https://api.github.com/users/web-flow/starred{/owner}{/repo}jl 3https://api.github.com/users/web-flow/subscriptionsjl *https://api.github.com/users/web-flow/orgsjl +https://api.github.com/users/web-flow/reposjl 6https://api.github.com/users/web-flow/events{/privacy}jl 5https://api.github.com/users/web-flow/received_eventsjl Userjl uparents]}(jl (0e042c5db32fd526cc9e1506788bee2cda4f3a43jl ^https://api.github.com/repos/palantir/atlasdb/commits/0e042c5db32fd526cc9e1506788bee2cda4f3a43jl Shttps://github.com/palantir/atlasdb/commit/0e042c5db32fd526cc9e1506788bee2cda4f3a43uastats}(totalK	additionsK	deletionsKufiles]}(jl (1d193b8827aecd4f6d245fb465dfbdc647f5e14afilename+atlasdb-ete-tests/docker-compose.oracle.ymlstatusmodifiedjl Kjl KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/bb0b5b081bcc81b12c494f4a500b4c1a3919e34f/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlraw_url~https://github.com/palantir/atlasdb/raw/bb0b5b081bcc81b12c494f4a500b4c1a3919e34f/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.oracle.yml?ref=bb0b5b081bcc81b12c494f4a500b4c1a3919e34fpatch@@ -2,7 +2,7 @@ version: '2'
 
 services:
   oracle:
-    image: palantirtechnologies/oracle-atlasdb:19.18.0.0-se
+    image: palantirtechnologies/oracle-atlasdb:19.19.0.0-se
     ports:
       - "1521"
 uau(ff7e74a80377117f45ed0ea9aabe5368b821fb5e}(sha(ff7e74a80377117f45ed0ea9aabe5368b821fb5enode_idEC_kwDOAjP5fdoAKGZmN2U3NGE4MDM3NzExN2Y0NWVkMGVhOWFhYmU1MzY4YjgyMWZiNWUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-25T16:11:47Zu	committer}(jm 
Ahmed Alouanejm aalouane@palantir.comjm 2023-05-25T16:11:47Zumessageno boolean paramtree}(jl (025aa67db14b2d64c33546c61c66b8b063139d6eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/025aa67db14b2d64c33546c61c66b8b063139d6eujm bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ff7e74a80377117f45ed0ea9aabe5368b821fb5e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRviMMACgkQPlMHVIT1
yhr5Gwf/T8/WBKqwj8DyruT7YBe4k/dZVdzUqu9zZNoAk3nPVn/3xgQ8zvw3sDrn
tHPRhJVYydyhWTLR/yDVyTp0InSojWRh6J4wT9FZKNQvF6PZ4F7eAUTnV8FAM/0b
mWuF0gP8xO9K0RY/j8gdq8Rcj+Y/mIr0jsms4FxFOkVC9MXKAJknCNElCZ46Y9hg
CTtKK686FF0xsQvTfKP7CWKmnaqk0jZU5P0EfPS41XGuNQahOvhcqDWJUR5mf3DT
65kaAKAsZJlxqGJ5e87rgOq/zYDhvO0Yx1oaC+nqYBG4UdGnzgimY+Ax5LUlS8Qt
vgbQ3RBPZ9ajnK249VZZvKezshKkAQ==
=2CUH
-----END PGP SIGNATURE-----payloadtree 025aa67db14b2d64c33546c61c66b8b063139d6e
parent e99bfdce803cf07d4cff370e14d94af9ee42974c
author Ahmed Alouane <aalouane@palantir.com> 1685031107 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1685031107 +0100

no boolean param
uujm ^https://api.github.com/repos/palantir/atlasdb/commits/ff7e74a80377117f45ed0ea9aabe5368b821fb5ehtml_urlShttps://github.com/palantir/atlasdb/commit/ff7e74a80377117f45ed0ea9aabe5368b821fb5ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ff7e74a80377117f45ed0ea9aabe5368b821fb5e/commentsjm }(loginergo14idJjl MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jm #https://api.github.com/users/ergo14j"m https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj
m }(j'm ergo14j)m Jjl MDQ6VXNlcjMwOTAzNzM2j+m 4https://avatars.githubusercontent.com/u/30903736?v=4j-m h5jm #https://api.github.com/users/ergo14j"m https://github.com/ergo14j0m -https://api.github.com/users/ergo14/followersj2m :https://api.github.com/users/ergo14/following{/other_user}j4m 3https://api.github.com/users/ergo14/gists{/gist_id}j6m :https://api.github.com/users/ergo14/starred{/owner}{/repo}j8m 1https://api.github.com/users/ergo14/subscriptionsj:m (https://api.github.com/users/ergo14/orgsj<m )https://api.github.com/users/ergo14/reposj>m 4https://api.github.com/users/ergo14/events{/privacy}j@m 3https://api.github.com/users/ergo14/received_eventsjBm UserjDm uparents]}(jl (e99bfdce803cf07d4cff370e14d94af9ee42974cjm ^https://api.github.com/repos/palantir/atlasdb/commits/e99bfdce803cf07d4cff370e14d94af9ee42974cj"m Shttps://github.com/palantir/atlasdb/commit/e99bfdce803cf07d4cff370e14d94af9ee42974cuastats}(totalK,	additionsK	deletionsKufiles](}(jl (52c3fced5e45bf4c57da0411f855cbc245aad104filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj^m K	j_m KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ff7e74a80377117f45ed0ea9aabe5368b821fb5e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ff7e74a80377117f45ed0ea9aabe5368b821fb5e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=ff7e74a80377117f45ed0ea9aabe5368b821fb5epatchX  @@ -2606,17 +2606,18 @@ public TransactionReadInfo getReadInfo() {
 
     @Override
     public void reportExpectationsCollectedData() {
-        reportExpectationsCollectedData(this, expectationsDataCollectionMetrics, isStillRunning());
-    }
-
-    @VisibleForTesting
-    static void reportExpectationsCollectedData(
-            ExpectationsAwareTransaction transaction, ExpectationsMetrics metrics, boolean isStillRunning) {
-        if (isStillRunning) {
-            log.error("reportExpectationsCollectedData is called on an in-progress transaction");
+        if (isStillRunning()) {
+            log.error(
+                    "reportExpectationsCollectedData is called on an in-progress transaction",
+                    SafeArg.of("state", state.get()));
             return;
         }
 
+        reportExpectationsCollectedData(this, expectationsDataCollectionMetrics);
+    }
+
+    @VisibleForTesting
+    static void reportExpectationsCollectedData(ExpectationsAwareTransaction transaction, ExpectationsMetrics metrics) {
         long ageMillis = transaction.getAgeMillis();
         TransactionReadInfo info = transaction.getReadInfo();
 u}(jl (f77111dfc6e25bc4881c3dab340e057c3c75bed7jdm matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javajfm modifiedj^m K
j_m Kjhm Kjim https://github.com/palantir/atlasdb/blob/ff7e74a80377117f45ed0ea9aabe5368b821fb5e/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajkm https://github.com/palantir/atlasdb/raw/ff7e74a80377117f45ed0ea9aabe5368b821fb5e/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajmm https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=ff7e74a80377117f45ed0ea9aabe5368b821fb5ejom X	  @@ -50,39 +50,32 @@ public void setUp() {
     }
 
     @Test
-    public void noMetricsAreReportedOnRunningTransaction() {
-        ExpectationsMetrics spiedOnMetrics = spy(metrics);
-        SnapshotTransaction.reportExpectationsCollectedData(transaction, spiedOnMetrics, true);
-        verifyNoInteractions(spiedOnMetrics);
-    }
-
-    @Test
-    public void ageReportedOnFinishedTransaction() {
+    public void ageReported() {
         long age = 129L;
         when(transaction.getAgeMillis()).thenReturn(age);
-        reportMetricsOnFinishedTransaction();
+        reportMetrics();
         assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
     }
 
     @Test
-    public void bytesReadReportedOnFinishedTransaction() {
+    public void bytesReadReported() {
         long bytes = 1290L;
         when(transaction.getReadInfo()).thenReturn(BLANK_READ_INFO.withBytesRead(bytes));
-        reportMetricsOnFinishedTransaction();
+        reportMetrics();
         assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
     }
 
     @Test
-    public void kvsCallsReportedOnFinishedTransaction() {
+    public void kvsCallsReported() {
         long calls = 12L;
         when(transaction.getReadInfo()).thenReturn(BLANK_READ_INFO.withKvsCalls(calls));
-        reportMetricsOnFinishedTransaction();
+        reportMetrics();
         assertThat(metrics.kvsCalls().getSnapshot().getValues()).containsOnly(calls);
     }
 
     @Test
     public void worstKvsBytesReadNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
-        reportMetricsOnFinishedTransaction();
+        reportMetrics();
         assertThat(metrics.worstKvsBytesRead().getSnapshot().getValues()).isEmpty();
     }
 
@@ -91,11 +84,11 @@ public void worstKvsBytesReadReportedOnReadInfoWithPresentMaximumBytesKvsCallOnF
         long bytes = 193L;
         when(transaction.getReadInfo())
                 .thenReturn(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
-        reportMetricsOnFinishedTransaction();
+        reportMetrics();
         assertThat(metrics.worstKvsBytesRead().getSnapshot().getValues()).containsOnly(bytes);
     }
 
-    private void reportMetricsOnFinishedTransaction() {
-        SnapshotTransaction.reportExpectationsCollectedData(transaction, metrics, false);
+    private void reportMetrics() {
+        SnapshotTransaction.reportExpectationsCollectedData(transaction, metrics);
     }
 }ueu(84f6111b8bb65226027d3e147bda70c1c0128650}(sha(84f6111b8bb65226027d3e147bda70c1c0128650node_idEC_kwDOAjP5fdoAKDg0ZjYxMTFiOGJiNjUyMjYwMjdkM2UxNDdiZGE3MGMxYzAxMjg2NTAcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-27T14:01:35Zu	committer}(jm Jeremy Kongjm jkong@palantir.comjm 2023-02-27T14:01:35Zumessageworkflow behaves differentlytree}(j{m (71e1d4c214dccd98840a01959f0a465ba142b658url`https://api.github.com/repos/palantir/atlasdb/git/trees/71e1d4c214dccd98840a01959f0a465ba142b658ujm bhttps://api.github.com/repos/palantir/atlasdb/git/commits/84f6111b8bb65226027d3e147bda70c1c0128650
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmP8t78ACgkQTLdFKain
zjzGtggAjs1JjV0YIMBvzQSSdukCPy7OUlnDS6UGTJSdAgvFs+v0/gMJNQHg1jgr
JXXtrfcmgQLIhmEEzWEN8SkwN3de7JA7FCMX8eprEE+mEm+HAXV1elQ/213zwa/b
eznmSQbW0oshTlsfBOdXDEAjs7NY6ML/RDT/fl0svq3i3XttxnUD+TRz68V4MYQ8
7KN7xWkVm+dSClywHSn94HNGJGRxn7poqSBynaU2Vz/bDk8lCkJoCB8uQdBZWVk4
zzqEua8jYJQfyCkBAqxUBFpTeDmv1N+tzUnLgdIUD7XNixzSOpDA8BklkMO1THAw
6pvzmJxOMGfxbVpmnbkA6TmWVRP0FA==
=8PPO
-----END PGP SIGNATURE-----payloadtree 71e1d4c214dccd98840a01959f0a465ba142b658
parent b0b25b88284141ca3729494caadeaf1033f9cf76
author Jeremy Kong <jkong@palantir.com> 1677506495 +0000
committer Jeremy Kong <jkong@palantir.com> 1677506495 +0000

workflow behaves differently
uujm ^https://api.github.com/repos/palantir/atlasdb/commits/84f6111b8bb65226027d3e147bda70c1c0128650html_urlShttps://github.com/palantir/atlasdb/commit/84f6111b8bb65226027d3e147bda70c1c0128650comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/84f6111b8bb65226027d3e147bda70c1c0128650/commentsjm }(login
jeremyk-91idJZ j}m MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jm 'https://api.github.com/users/jeremyk-91jm https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujm }(jm 
jeremyk-91jm JZ j}m MDQ6VXNlcjU5NTU1MTA=jm 3https://avatars.githubusercontent.com/u/5955510?v=4jm h5jm 'https://api.github.com/users/jeremyk-91jm https://github.com/jeremyk-91jm 1https://api.github.com/users/jeremyk-91/followersjm >https://api.github.com/users/jeremyk-91/following{/other_user}jm 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jm >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jm 5https://api.github.com/users/jeremyk-91/subscriptionsjm ,https://api.github.com/users/jeremyk-91/orgsjm -https://api.github.com/users/jeremyk-91/reposjm 8https://api.github.com/users/jeremyk-91/events{/privacy}jm 7https://api.github.com/users/jeremyk-91/received_eventsjm Userjm uparents]}(j{m (b0b25b88284141ca3729494caadeaf1033f9cf76jm ^https://api.github.com/repos/palantir/atlasdb/commits/b0b25b88284141ca3729494caadeaf1033f9cf76jm Shttps://github.com/palantir/atlasdb/commit/b0b25b88284141ca3729494caadeaf1033f9cf76uastats}(totalK	additionsK	deletionsK
ufiles](}(j{m (65d3983ff664082fe5b4995c46765f9b36f47deefilename^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/Workflow.javastatusmodifiedjm Kjm KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/84f6111b8bb65226027d3e147bda70c1c0128650/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.javaraw_urlhttps://github.com/palantir/atlasdb/raw/84f6111b8bb65226027d3e147bda70c1c0128650/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.java?ref=84f6111b8bb65226027d3e147bda70c1c0128650patchXF  @@ -16,15 +16,12 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
-import java.util.List;
-
 public interface Workflow {
     /**
-     * Runs desired workflow until completion. Returns a list of {@link WitnessedTransaction}, that corresponds to
-     * transactions that were known to be completed.
+     * Runs desired workflow until completion. Returns {@link WorkflowHistory}, that corresponds to transactions that
+     * were known to be completed.
      * This list is sorted by ascending "timeline timestamp", which is taken to be the commit timestamp in the case
      * of read-write transactions, and the start timestamp in the case of read-only transactions.
      */
-    List<WitnessedTransaction> run();
+    WorkflowHistory run();
 }u}(j{m (fc8e0c564b1cd37e767ca93ef66983604fad5e84jm aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javajm modifiedjm Kjm Kjm Kjm https://github.com/palantir/atlasdb/blob/84f6111b8bb65226027d3e147bda70c1c0128650/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajm https://github.com/palantir/atlasdb/raw/84f6111b8bb65226027d3e147bda70c1c0128650/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajm https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=84f6111b8bb65226027d3e147bda70c1c0128650jm X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
@@ -30,27 +31,34 @@ public final class DefaultWorkflow implements Workflow {
     private final ConcurrentTransactionRunner concurrentTransactionRunner;
     private final KeyedTransactionTask transactionTask;
     private final WorkflowConfiguration workflowConfiguration;
+    private final ReadOnlyTransactionStore readOnlyTransactionStore;
 
     private DefaultWorkflow(
             ConcurrentTransactionRunner concurrentTransactionRunner,
             KeyedTransactionTask transactionTask,
-            WorkflowConfiguration workflowConfiguration) {
+            WorkflowConfiguration workflowConfiguration,
+            ReadOnlyTransactionStore readOnlyTransactionStore) {
         this.concurrentTransactionRunner = concurrentTransactionRunner;
         this.transactionTask = transactionTask;
         this.workflowConfiguration = workflowConfiguration;
+        this.readOnlyTransactionStore = readOnlyTransactionStore;
     }
 
     public static Workflow create(
             TransactionStore store, KeyedTransactionTask transactionTask, WorkflowConfiguration configuration) {
         return new DefaultWorkflow(
                 new ConcurrentTransactionRunner(store, configuration.executionExecutor()),
                 transactionTask,
-                configuration);
+                configuration,
+                new ReadOnlyTransactionStore(store));
     }
 
     @Override
-    public List<WitnessedTransaction> run() {
-        return sortByEffectiveTimestamp(runTransactionTask());
+    public WorkflowHistory run() {
+        return ImmutableWorkflowHistory.builder()
+                .history(sortByEffectiveTimestamp(runTransactionTask()))
+                .transactionStore(readOnlyTransactionStore)
+                .build();
     }
 
     private List<WitnessedTransaction> runTransactionTask() {ueu(43cc035c126d99a177ab6d8534e26b0471ddb44a}(sha(43cc035c126d99a177ab6d8534e26b0471ddb44anode_idEC_kwDOAjP5fdoAKDQzY2MwMzVjMTI2ZDk5YTE3N2FiNmQ4NTM0ZTI2YjA0NzFkZGI0NGEcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-05-17T13:09:48Zu	committer}(jn svc-autoreleasejn -pd-foundry-infrastructure-notify@palantir.comjn 2023-05-17T13:09:48ZumessageAutorelease 0.855.0

[skip ci]tree}(jm (892b907f017e8d44e20442b8011cf50cb7a1e1bcurl`https://api.github.com/repos/palantir/atlasdb/git/trees/892b907f017e8d44e20442b8011cf50cb7a1e1bcujn bhttps://api.github.com/repos/palantir/atlasdb/git/commits/43cc035c126d99a177ab6d8534e26b0471ddb44a
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRk0iIACgkQhbrR8ip7mDBeTQEA1nmAvwntbEosJkZVL7bKxR7/
kGMxMNHbO6wvowwv/ooA/0xWL1K8gSPFi8MYYP+8Vd17yIrbCifOHDYbWWlosHO4
=4VeX
-----END PGP SIGNATURE-----
payloadX0  tree 892b907f017e8d44e20442b8011cf50cb7a1e1bc
parent 60cfe5f80bc98e6633662a39720a7e56a4f391bb
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684328988 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684328988 +0000

Autorelease 0.855.0

[skip ci]uujn ^https://api.github.com/repos/palantir/atlasdb/commits/43cc035c126d99a177ab6d8534e26b0471ddb44ahtml_urlShttps://github.com/palantir/atlasdb/commit/43cc035c126d99a177ab6d8534e26b0471ddb44acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/43cc035c126d99a177ab6d8534e26b0471ddb44a/commentsj n }(loginsvc-autoreleaseidJ(jm MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5jn ,https://api.github.com/users/svc-autoreleasej n "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminujn }(j%n svc-autoreleasej'n J(jm MDQ6VXNlcjUxNzE4MzQ2j)n 4https://avatars.githubusercontent.com/u/51718346?v=4j+n h5jn ,https://api.github.com/users/svc-autoreleasej n "https://github.com/svc-autoreleasej.n 6https://api.github.com/users/svc-autorelease/followersj0n Chttps://api.github.com/users/svc-autorelease/following{/other_user}j2n <https://api.github.com/users/svc-autorelease/gists{/gist_id}j4n Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j6n :https://api.github.com/users/svc-autorelease/subscriptionsj8n 1https://api.github.com/users/svc-autorelease/orgsj:n 2https://api.github.com/users/svc-autorelease/reposj<n =https://api.github.com/users/svc-autorelease/events{/privacy}j>n <https://api.github.com/users/svc-autorelease/received_eventsj@n UserjBn uparents]}(jm (60cfe5f80bc98e6633662a39720a7e56a4f391bbjn ^https://api.github.com/repos/palantir/atlasdb/commits/60cfe5f80bc98e6633662a39720a7e56a4f391bbj n Shttps://github.com/palantir/atlasdb/commit/60cfe5f80bc98e6633662a39720a7e56a4f391bbuastats}(totalK 	additionsK 	deletionsK ufiles]}(jm (8dec3b76640ffbcc9b9795bc2408b874d1f25be9filename changelog/0.855.0/pr-6569.v2.ymlstatusrenamedj\n K j]n K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/43cc035c126d99a177ab6d8534e26b0471ddb44a/changelog%2F0.855.0%2Fpr-6569.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/43cc035c126d99a177ab6d8534e26b0471ddb44a/changelog%2F0.855.0%2Fpr-6569.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.855.0%2Fpr-6569.v2.yml?ref=43cc035c126d99a177ab6d8534e26b0471ddb44aprevious_filename$changelog/@unreleased/pr-6569.v2.ymluau(44a6930443bb70b40ca00f76d282a73d2681dc7a}(sha(44a6930443bb70b40ca00f76d282a73d2681dc7anode_idEC_kwDOAjP5fdoAKDQ0YTY5MzA0NDNiYjcwYjQwY2EwMGY3NmQyODJhNzNkMjY4MWRjN2Ecommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-03-30T03:25:35Zu	committer}(jyn svc-autoreleasej{n -pd-foundry-infrastructure-notify@palantir.comj}n 2023-03-30T03:25:35ZumessageAutorelease 0.824.0

[skip ci]tree}(jqn (90c80b9519c8e7b60739a191013a6e48774a86e5url`https://api.github.com/repos/palantir/atlasdb/git/trees/90c80b9519c8e7b60739a191013a6e48774a86e5ujn bhttps://api.github.com/repos/palantir/atlasdb/git/commits/44a6930443bb70b40ca00f76d282a73d2681dc7a
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQlATMACgkQhbrR8ip7mDB+EAD7BsPLKSorkr6nG9UHiC6KqmEn
YiUpb4TzzEajtz/NDaQA/2Cd5iJodrTmIg1OD5TES5N3y+ylLf1KglcYXQpEJZ8L
=JBa5
-----END PGP SIGNATURE-----
payloadX0  tree 90c80b9519c8e7b60739a191013a6e48774a86e5
parent b867143710e71a1a7396efada08264b5285c0b5d
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1680146735 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1680146735 +0000

Autorelease 0.824.0

[skip ci]uujn ^https://api.github.com/repos/palantir/atlasdb/commits/44a6930443bb70b40ca00f76d282a73d2681dc7ahtml_urlShttps://github.com/palantir/atlasdb/commit/44a6930443bb70b40ca00f76d282a73d2681dc7acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/44a6930443bb70b40ca00f76d282a73d2681dc7a/commentsjwn }(loginsvc-autoreleaseidJ(jsn MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5jn ,https://api.github.com/users/svc-autoreleasejn "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminujn }(jn svc-autoreleasejn J(jsn MDQ6VXNlcjUxNzE4MzQ2jn 4https://avatars.githubusercontent.com/u/51718346?v=4jn h5jn ,https://api.github.com/users/svc-autoreleasejn "https://github.com/svc-autoreleasejn 6https://api.github.com/users/svc-autorelease/followersjn Chttps://api.github.com/users/svc-autorelease/following{/other_user}jn <https://api.github.com/users/svc-autorelease/gists{/gist_id}jn Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jn :https://api.github.com/users/svc-autorelease/subscriptionsjn 1https://api.github.com/users/svc-autorelease/orgsjn 2https://api.github.com/users/svc-autorelease/reposjn =https://api.github.com/users/svc-autorelease/events{/privacy}jn <https://api.github.com/users/svc-autorelease/received_eventsjn Userjn uparents]}(jqn (b867143710e71a1a7396efada08264b5285c0b5djn ^https://api.github.com/repos/palantir/atlasdb/commits/b867143710e71a1a7396efada08264b5285c0b5djn Shttps://github.com/palantir/atlasdb/commit/b867143710e71a1a7396efada08264b5285c0b5duastats}(totalK 	additionsK 	deletionsK ufiles]}(jqn (b6ee9b4dfa1da170c4c398511447a1f49d7e82b7filename changelog/0.824.0/pr-6489.v2.ymlstatusrenamedjn K jn K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/44a6930443bb70b40ca00f76d282a73d2681dc7a/changelog%2F0.824.0%2Fpr-6489.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/44a6930443bb70b40ca00f76d282a73d2681dc7a/changelog%2F0.824.0%2Fpr-6489.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.824.0%2Fpr-6489.v2.yml?ref=44a6930443bb70b40ca00f76d282a73d2681dc7aprevious_filename$changelog/@unreleased/pr-6489.v2.ymluau(27f08bb3b9ad6079d30ebc98c49de8672c336abf}(sha(27f08bb3b9ad6079d30ebc98c49de8672c336abfnode_idEC_kwDOAjP5fdoAKDI3ZjA4YmIzYjlhZDYwNzlkMzBlYmM5OGM0OWRlODY3MmMzMzZhYmYcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-27T09:24:18Zu	committer}(jn 	Tom Papkejn tpapke@palantir.comjn 2023-06-27T09:24:18ZumessageJmake task private final in tests
Add test for increasing interval durationtree}(jn (65efab7d26edc245ec4be847efda48eed39a701eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/65efab7d26edc245ec4be847efda48eed39a701euj o bhttps://api.github.com/repos/palantir/atlasdb/git/commits/27f08bb3b9ad6079d30ebc98c49de8672c336abf
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSaqsIACgkQmF9s0kaF
Iw2ObAf6AnmYlxpIdG+cKCtdeDrKGc8oyzDeSYM0McopSMIOlQS9OTz0aTNfh8U6
sHbe6VCUSQ2CkiTfuC75teRXU7CxxyHRPB3nEy7Og29F6J9p32oGxLhP8Py1NjuP
B7TWOzJv6UqKy2bw2OovMwbxu7oF+c7/NklueWipU41s422w4huZggtUoiWs+ZSu
P9sDX3eBsNQ6Y/L8qcXO5aAbknutUULX0cC/8W2e6L4/MpxRftMCj6idWFa5pPHw
Wh9995uGjct1X5A6Ons2QStX2WhjdvACFM18modYXObAjuEolwL9fbnCB6u60Wmg
k9mz0fhKIvfPhGOCrqOqiVc+ilVxuA==
=lJ3j
-----END PGP SIGNATURE-----     payloadX  tree 65efab7d26edc245ec4be847efda48eed39a701e
parent 9e6ee10933f491e5a1ff1db4c9ba5764883a8af0
author Tom Papke <tpapke@palantir.com> 1687857858 +0100
committer Tom Papke <tpapke@palantir.com> 1687857858 +0100

make task private final in tests
Add test for increasing interval duration
uuj o ^https://api.github.com/repos/palantir/atlasdb/commits/27f08bb3b9ad6079d30ebc98c49de8672c336abfhtml_urlShttps://github.com/palantir/atlasdb/commit/27f08bb3b9ad6079d30ebc98c49de8672c336abfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/27f08bb3b9ad6079d30ebc98c49de8672c336abf/commentsjn }(login	ToemmscheidJbojn MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j o &https://api.github.com/users/Toemmschejo https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujn }(jo 	Toemmschejo Jbojn MDQ6VXNlcjQzNjc1NDkwjo 4https://avatars.githubusercontent.com/u/43675490?v=4jo h5j o &https://api.github.com/users/Toemmschejo https://github.com/Toemmschejo 0https://api.github.com/users/Toemmsche/followersjo =https://api.github.com/users/Toemmsche/following{/other_user}j o 6https://api.github.com/users/Toemmsche/gists{/gist_id}j"o =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j$o 4https://api.github.com/users/Toemmsche/subscriptionsj&o +https://api.github.com/users/Toemmsche/orgsj(o ,https://api.github.com/users/Toemmsche/reposj*o 7https://api.github.com/users/Toemmsche/events{/privacy}j,o 6https://api.github.com/users/Toemmsche/received_eventsj.o Userj0o uparents]}(jn (9e6ee10933f491e5a1ff1db4c9ba5764883a8af0j o ^https://api.github.com/repos/palantir/atlasdb/commits/9e6ee10933f491e5a1ff1db4c9ba5764883a8af0jo Shttps://github.com/palantir/atlasdb/commit/9e6ee10933f491e5a1ff1db4c9ba5764883a8af0uastats}(totalK1	additionsK	deletionsKufiles](}(jn (6d4535af3d368e5c1b4da157c053a11d2f7f0b74filenameLlock-impl/src/main/java/com/palantir/lock/impl/AdjustableBackgroundTask.javastatusmodifiedjJo KjKo KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/27f08bb3b9ad6079d30ebc98c49de8672c336abf/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javaraw_urlhttps://github.com/palantir/atlasdb/raw/27f08bb3b9ad6079d30ebc98c49de8672c336abf/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.java?ref=27f08bb3b9ad6079d30ebc98c49de8672c336abfpatchX  @@ -34,7 +34,7 @@ public final class AdjustableBackgroundTask implements Closeable {
      * This is to prevent having a blocking thread in the background that does nothing.
      */
     @VisibleForTesting
-    static final Duration MINIMUM_DELAY_IF_NOT_RUNNING = Duration.ofSeconds(1);
+    static final Duration MINIMUM_INTERVAL_IF_NOT_RUNNING = Duration.ofSeconds(1);
 
     private static final SafeLogger log = SafeLoggerFactory.get(AdjustableBackgroundTask.class);
 
@@ -80,7 +80,7 @@ private void run() {
             long intervalMillis = intervalSupplier.get().toMillis();
             scheduledExecutor.schedule(
                     this::run,
-                    shouldRun ? intervalMillis : Math.max(MINIMUM_DELAY_IF_NOT_RUNNING.toMillis(), intervalMillis),
+                    shouldRun ? intervalMillis : Math.max(MINIMUM_INTERVAL_IF_NOT_RUNNING.toMillis(), intervalMillis),
                     TimeUnit.MILLISECONDS);
         } catch (RejectedExecutionException e) {
             // that's ok, we were probably closedu}(jn (08b3a194b7b6a7e7b67f95f1ed980082ce8a5b6fjPo Plock-impl/src/test/java/com/palantir/lock/impl/AdjustableBackgroundTaskTest.javajRo modifiedjJo KjKo KjTo K-jUo https://github.com/palantir/atlasdb/blob/27f08bb3b9ad6079d30ebc98c49de8672c336abf/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javajWo https://github.com/palantir/atlasdb/raw/27f08bb3b9ad6079d30ebc98c49de8672c336abf/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javajYo https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.java?ref=27f08bb3b9ad6079d30ebc98c49de8672c336abfj[o X3  @@ -28,17 +28,14 @@
 import org.junit.Test;
 
 public class AdjustableBackgroundTaskTest {
-
-    // We have to ensure all of our delays are higher than MINIMUM_DELAY_IF_NOT_RUNNING
-    // so it doesn't interfere with our tests
-    private static final Duration DEFAULT_DELAY = Duration.ofSeconds(10);
+    private static final Duration DEFAULT_INTERVAL = Duration.ofSeconds(10);
     private final AtomicInteger field = new AtomicInteger(0);
     private final SettableRefreshable<Boolean> shouldRun = Refreshable.create(false);
-    private final SettableRefreshable<Duration> interval = Refreshable.create(DEFAULT_DELAY);
+    private final SettableRefreshable<Duration> interval = Refreshable.create(DEFAULT_INTERVAL);
     private final DeterministicScheduler scheduledExecutor = new DeterministicScheduler();
     private final AtomicInteger numCallsToShouldRunSupplier = new AtomicInteger();
     private final AtomicInteger numCallsToIntervalSupplier = new AtomicInteger(0);
-    AdjustableBackgroundTask adjustableBackgroundTask = new AdjustableBackgroundTask(
+    private final AdjustableBackgroundTask adjustableBackgroundTask = new AdjustableBackgroundTask(
             () -> {
                 numCallsToShouldRunSupplier.incrementAndGet();
                 return shouldRun.current();
@@ -52,7 +49,9 @@ public class AdjustableBackgroundTaskTest {
 
     @BeforeClass
     public static void testDelayShouldNotExceedMinimumDelay() {
-        assertThat(DEFAULT_DELAY).isGreaterThanOrEqualTo(AdjustableBackgroundTask.MINIMUM_DELAY_IF_NOT_RUNNING);
+        // We have to ensure that our default interval is higher than MINIMUM_INTERVAL_IF_NOT_RUNNING
+        // so our tests are actually meaningful
+        assertThat(DEFAULT_INTERVAL).isGreaterThanOrEqualTo(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING);
     }
 
     @Test
@@ -62,33 +61,44 @@ public void doesNotRunTaskDuringConstruction() {
 
     @Test
     public void doesNotRunTaskByDefault() {
-        tick(DEFAULT_DELAY);
+        tick(DEFAULT_INTERVAL);
         assertThat(field.get()).isEqualTo(0);
     }
 
     @Test
     public void canBeEnabledDisabledAndReEnabled() {
         shouldRun.update(true);
-        tick(DEFAULT_DELAY);
+        tick(DEFAULT_INTERVAL);
         int after = field.get();
         assertThat(after).isEqualTo(1);
 
         shouldRun.update(false);
-        tick(DEFAULT_DELAY);
+        tick(DEFAULT_INTERVAL);
         assertThat(field.get()).isEqualTo(after);
 
         shouldRun.update(true);
-        tick(DEFAULT_DELAY);
+        tick(DEFAULT_INTERVAL);
         assertThat(field.get()).isEqualTo(after + 1);
     }
 
     @Test
-    public void canAdjustDurationBelowMinimumDelayIfRunning() {
+    public void canAdjustInterval() {
+        Duration newInterval = Duration.ofMinutes(1);
+        interval.update(newInterval);
+        shouldRun.update(true);
+        // will run the task once
+        tick(DEFAULT_INTERVAL);
+        tick(Duration.ofMinutes(42 - 1));
+        assertThat(field.get()).isEqualTo(42);
+    }
+
+    @Test
+    public void canAdjustIntervalBelowMinimumDelayIfRunning() {
         Duration newInterval = Duration.ofMillis(1);
         interval.update(newInterval);
         shouldRun.update(true);
         // will run the task once
-        tick(DEFAULT_DELAY);
+        tick(DEFAULT_INTERVAL);
         tick(Duration.ofMillis(10 - 1));
         assertThat(field.get()).isEqualTo(10);
     }
@@ -99,21 +109,20 @@ public void runsSuppliersAtReducedIntervalIfNotRunning() {
         interval.update(newInterval);
         Duration elapsedDuration = Duration.ofSeconds(10);
         // will invoke suppliers an additional time
-        tick(DEFAULT_DELAY);
+        tick(DEFAULT_INTERVAL);
         tick(elapsedDuration);
-
         assertThat(field.get()).isEqualTo(0);
         // suppliers are also called once when running the constructor
         assertThat(numCallsToShouldRunSupplier.get())
-                .isEqualTo(elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_DELAY_IF_NOT_RUNNING) + 2);
+                .isEqualTo(elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
         assertThat(numCallsToIntervalSupplier.get())
-                .isEqualTo(elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_DELAY_IF_NOT_RUNNING) + 2);
+                .isEqualTo(elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
     }
 
     @Test
     public void suppliersAreCalledTogetherWithTask() {
         shouldRun.update(true);
-        tick(Duration.ofSeconds(10 * DEFAULT_DELAY.toSeconds()));
+        tick(Duration.ofSeconds(10 * DEFAULT_INTERVAL.toSeconds()));
         assertThat(field.get()).isEqualTo(10);
         // suppliers are also called once when running the constructor
         assertThat(numCallsToShouldRunSupplier.get()).isEqualTo(11);ueu(44cebe27980152b451780b000f44c3df159fceb0}(sha(44cebe27980152b451780b000f44c3df159fceb0node_idEC_kwDOAjP5fdoAKDQ0Y2ViZTI3OTgwMTUyYjQ1MTc4MGIwMDBmNDRjM2RmMTU5ZmNlYjAcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-29T09:23:21Zu	committer}(joo Lucas Meirelesjqo meireles31@msn.comjso 2023-07-29T09:23:21Zumessagedrytree}(jgo (991ad9e5dc20b0245d7d50c1f30a0be47ebcd532url`https://api.github.com/repos/palantir/atlasdb/git/trees/991ad9e5dc20b0245d7d50c1f30a0be47ebcd532ujo bhttps://api.github.com/repos/palantir/atlasdb/git/commits/44cebe27980152b451780b000f44c3df159fceb0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmTE2okACgkQJd22kJ7J
GixMiQf8CEu1cJ9IliSvmnEp841eK5cx7+4AUV721MpTNzsk4LlHrzVECj3kSpJs
rAmZ5ExGNOmf1duUTpGOGQN5UmJdy1aoXhI0PGfuOOOG+X9pTFBYmUUQ4HH0WQtE
gCFmLr2tuk4RaAgzXSDPpMlxWeRULMsvUM+WSwStCck6RXNiwfeP0XpTAxM1+ZqG
y2Pq6el2yB+Y7aZTzRm91ZlkzuR5npO9lxEaDSW8NL1BlF+rvhAqK0HOGmPljV2V
7k7kzgJcnQ4Zu9gaAtw/xYYSEQJxUb81HI1eY2NXUDG21xsrZkyGwPinnA5bO/Lr
KKnwsq9qGby+ZS8yZqb9woWwfMcN7Q==
=yMg8
-----END PGP SIGNATURE-----payloadtree 991ad9e5dc20b0245d7d50c1f30a0be47ebcd532
parent 4d8103a42eb121d301b518817ac4adb6be469268
author Lucas Meireles <meireles31@msn.com> 1690622601 +0100
committer Lucas Meireles <meireles31@msn.com> 1690622601 +0100

dry
uujo ^https://api.github.com/repos/palantir/atlasdb/commits/44cebe27980152b451780b000f44c3df159fceb0html_urlShttps://github.com/palantir/atlasdb/commit/44cebe27980152b451780b000f44c3df159fceb0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/44cebe27980152b451780b000f44c3df159fceb0/commentsjmo }(loginLucasIMEidJg jio MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jo %https://api.github.com/users/LucasIMEjo https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujuo }(jo LucasIMEjo Jg jio MDQ6VXNlcjY3ODczMTE=jo 3https://avatars.githubusercontent.com/u/6787311?v=4jo h5jo %https://api.github.com/users/LucasIMEjo https://github.com/LucasIMEjo /https://api.github.com/users/LucasIME/followersjo <https://api.github.com/users/LucasIME/following{/other_user}jo 5https://api.github.com/users/LucasIME/gists{/gist_id}jo <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jo 3https://api.github.com/users/LucasIME/subscriptionsjo *https://api.github.com/users/LucasIME/orgsjo +https://api.github.com/users/LucasIME/reposjo 6https://api.github.com/users/LucasIME/events{/privacy}jo 5https://api.github.com/users/LucasIME/received_eventsjo Userjo uparents]}(jgo (4d8103a42eb121d301b518817ac4adb6be469268jo ^https://api.github.com/repos/palantir/atlasdb/commits/4d8103a42eb121d301b518817ac4adb6be469268jo Shttps://github.com/palantir/atlasdb/commit/4d8103a42eb121d301b518817ac4adb6be469268uastats}(totalK	additionsK	deletionsKufiles]}(jgo (8b25d0958f9bfd038873d4c4fd49583f724bfdcefilenameBatlasdb-commons/src/main/java/com/palantir/util/result/Result.javastatusmodifiedjo Kjo KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/44cebe27980152b451780b000f44c3df159fceb0/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FResult.javaraw_urlhttps://github.com/palantir/atlasdb/raw/44cebe27980152b451780b000f44c3df159fceb0/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FResult.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FResult.java?ref=44cebe27980152b451780b000f44c3df159fceb0patchX%  @@ -55,15 +55,15 @@ public final boolean isErr() {
     }
 
     public T unwrap() {
-        if (this instanceof Ok) {
+        if (isOk()) {
             return ((Ok<T, E>) this).getValue();
         } else {
             throw new SafeRuntimeException("Called unwrap() on an Err value");
         }
     }
 
     public E unwrapErr() {
-        if (this instanceof Err) {
+        if (isErr()) {
             return ((Err<T, E>) this).getError();
         } else {
             throw new SafeRuntimeException("Called unwrapErr() on an Ok value");uau(2739a482d48aaff7b793a228f388db90913d1e53}(sha(2739a482d48aaff7b793a228f388db90913d1e53node_idEC_kwDOAjP5fdoAKDI3MzlhNDgyZDQ4YWFmZjdiNzkzYTIyOGYzODhkYjkwOTEzZDFlNTMcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-25T14:48:29Zu	committer}(jo Lucas Meirelesjo meireles31@msn.comjo 2023-07-25T14:48:29ZumessageRestrict dangerous API usagetree}(jo (a8b346153c3b07c831ac94769043863378b38c24url`https://api.github.com/repos/palantir/atlasdb/git/trees/a8b346153c3b07c831ac94769043863378b38c24ujo bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2739a482d48aaff7b793a228f388db90913d1e53
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS/4L0ACgkQJd22kJ7J
GiwkLggA4h6T3G+Lif2hc0dmnAPOlvp7E/Pvv2sORXHds4Ay0Zu63J1abIc9MJbX
KwuCMAIassfzCGfhWo6BOHRI3M0yXXm/C09Bi5nXAYz4o0f6CFc97zi1Ye/S/d80
DPssbcdtbH3YCRkF9dU6JK/8eXIlHMMwb7G6OD4WCMh1m60oBBkWUeIpZrcIa7Pc
U7VY8aUXfk6+As2JDTlY0/64iEaDP/RK+Eo65hPyZg29PAP5vnXy6ipZpMw45l8g
gIL5RUM2wTrcM5QcQsL5buV1q4+65ybZfk1MmaAfWD+nwbXak9Ls+gHGTOV4ya93
yGLn5XVxFhJ94gCiE+ri1hcEE+Crjg==
=/8ba
-----END PGP SIGNATURE-----payloadtree a8b346153c3b07c831ac94769043863378b38c24
parent bf5b2712e6dee05d8dc96eecf020636af022fc4a
author Lucas Meireles <meireles31@msn.com> 1690296509 +0100
committer Lucas Meireles <meireles31@msn.com> 1690296509 +0100

Restrict dangerous API usage
uujo ^https://api.github.com/repos/palantir/atlasdb/commits/2739a482d48aaff7b793a228f388db90913d1e53html_urlShttps://github.com/palantir/atlasdb/commit/2739a482d48aaff7b793a228f388db90913d1e53comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2739a482d48aaff7b793a228f388db90913d1e53/commentsjo }(loginLucasIMEidJg jo MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jo %https://api.github.com/users/LucasIMEjp https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujo }(j	p LucasIMEjp Jg jo MDQ6VXNlcjY3ODczMTE=j
p 3https://avatars.githubusercontent.com/u/6787311?v=4jp h5jo %https://api.github.com/users/LucasIMEjp https://github.com/LucasIMEjp /https://api.github.com/users/LucasIME/followersjp <https://api.github.com/users/LucasIME/following{/other_user}jp 5https://api.github.com/users/LucasIME/gists{/gist_id}jp <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jp 3https://api.github.com/users/LucasIME/subscriptionsjp *https://api.github.com/users/LucasIME/orgsjp +https://api.github.com/users/LucasIME/reposj p 6https://api.github.com/users/LucasIME/events{/privacy}j"p 5https://api.github.com/users/LucasIME/received_eventsj$p Userj&p uparents]}(jo (bf5b2712e6dee05d8dc96eecf020636af022fc4ajo ^https://api.github.com/repos/palantir/atlasdb/commits/bf5b2712e6dee05d8dc96eecf020636af022fc4ajp Shttps://github.com/palantir/atlasdb/commit/bf5b2712e6dee05d8dc96eecf020636af022fc4auastats}(totalK+	additionsK+	deletionsK ufiles](}(jo (ddaf2ef8b24725cf5d81476879e6b4b31302cb7bfilenameOatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/Transaction.javastatusmodifiedj@p KjAp K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/2739a482d48aaff7b793a228f388db90913d1e53/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2739a482d48aaff7b793a228f388db90913d1e53/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.java?ref=2739a482d48aaff7b793a228f388db90913d1e53patchX  @@ -16,6 +16,7 @@
 package com.palantir.atlasdb.transaction.api;
 
 import com.google.common.util.concurrent.ListenableFuture;
+import com.google.errorprone.annotations.RestrictedApi;
 import com.palantir.atlasdb.keyvalue.api.BatchColumnRangeSelection;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection;
@@ -24,6 +25,7 @@
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.spi.KeyValueServiceConfig;
+import com.palantir.atlasdb.transaction.api.annotations.ReviewedRestrictedApiUsage;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 import com.palantir.common.annotation.Idempotent;
 import com.palantir.common.base.BatchingVisitable;
@@ -196,6 +198,16 @@ Iterator<Map.Entry<Cell, byte[]>> getSortedColumns(
      * @param expectedNumberOfPresentCells the maximum number of cells that are expected to be present.
      * @return a {@link Map} from {@link Cell} to {@code byte[]} representing cell/value pairs
      */
+    @RestrictedApi(
+            explanation = "This API is only meant to be used by AtlasDb proxies that want to make usage of the "
+                    + "performance improvement of skipping the immutable timestamp lock check on non-empty reads of "
+                    + "thoroughly swept tables, but their schema won't allow them to have non empty reads due to "
+                    + "columns being mutually exclusive, for example. So this API gives them a good way to specifying "
+                    + "the max number of values they'd ever expect in a get, which when met would allow them to skip "
+                    + "the lock check. Wrong usage of this API can cause correctness issues, so it's restricted.",
+            link = "https://github.com/palantir/atlasdb/pull/6655",
+            allowedOnPath = ".*/src/test/.*", // Unsafe behavior in tests is ok.
+            allowlistAnnotations = {ReviewedRestrictedApiUsage.class})
     @Idempotent
     Map<Cell, byte[]> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells);u}(jo (b2e4c33ba35c3d5d720c9702855c2ba68c7a8a9fjFp jatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/annotations/ReviewedRestrictedApiUsage.javajHp addedj@p KjAp K jJp KjKp https://github.com/palantir/atlasdb/blob/2739a482d48aaff7b793a228f388db90913d1e53/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fannotations%2FReviewedRestrictedApiUsage.javajMp https://github.com/palantir/atlasdb/raw/2739a482d48aaff7b793a228f388db90913d1e53/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fannotations%2FReviewedRestrictedApiUsage.javajOp https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fannotations%2FReviewedRestrictedApiUsage.java?ref=2739a482d48aaff7b793a228f388db90913d1e53jQp X  @@ -0,0 +1,23 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api.annotations;
+
+/**
+ * Annotation to be used to indicate that usage of a restricted method is intentional and all the nuances about it
+ * are understood.
+ */
+public @interface ReviewedRestrictedApiUsage {}u}(jo (759a38ca0a2182acb8c779919d5ddf4e55580873jFp Zatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CachingTransaction.javajHp modifiedj@p KjAp K jJp KjKp https://github.com/palantir/atlasdb/blob/2739a482d48aaff7b793a228f388db90913d1e53/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javajMp https://github.com/palantir/atlasdb/raw/2739a482d48aaff7b793a228f388db90913d1e53/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javajOp https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.java?ref=2739a482d48aaff7b793a228f388db90913d1e53jQp X  @@ -33,6 +33,7 @@
 import com.palantir.atlasdb.keyvalue.impl.Cells;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionFailedException;
+import com.palantir.atlasdb.transaction.api.annotations.ReviewedRestrictedApiUsage;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 import com.palantir.common.base.Throwables;
 import com.palantir.logsafe.SafeArg;
@@ -135,6 +136,7 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
         }
     }
 
+    @ReviewedRestrictedApiUsage
     @Override
     public Map<Cell, byte[]> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {u}(jo (115bc2b5f9da1c28988112b72ef43df298c91428jFp ]atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingTransaction.javajHp modifiedj@p KjAp K jJp KjKp https://github.com/palantir/atlasdb/blob/2739a482d48aaff7b793a228f388db90913d1e53/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.javajMp https://github.com/palantir/atlasdb/raw/2739a482d48aaff7b793a228f388db90913d1e53/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.javajOp https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.java?ref=2739a482d48aaff7b793a228f388db90913d1e53jQp X)  @@ -29,6 +29,7 @@
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionFailedException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.annotations.ReviewedRestrictedApiUsage;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 import com.palantir.common.base.BatchingVisitable;
 import java.util.Iterator;
@@ -83,6 +84,7 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
         return delegate().get(tableRef, cells);
     }
 
+    @ReviewedRestrictedApiUsage
     @Override
     public Map<Cell, byte[]> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {u}(jo (abe132125b69bc519a0ccd857c48c45c57d162d5jFp Watlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ReadTransaction.javajHp modifiedj@p KjAp K jJp KjKp https://github.com/palantir/atlasdb/blob/2739a482d48aaff7b793a228f388db90913d1e53/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javajMp https://github.com/palantir/atlasdb/raw/2739a482d48aaff7b793a228f388db90913d1e53/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javajOp https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.java?ref=2739a482d48aaff7b793a228f388db90913d1e53jQp X  @@ -26,6 +26,7 @@
 import com.palantir.atlasdb.logging.LoggingArgs;
 import com.palantir.atlasdb.table.description.SweeperStrategy;
 import com.palantir.atlasdb.transaction.api.GetRangesQuery;
+import com.palantir.atlasdb.transaction.api.annotations.ReviewedRestrictedApiUsage;
 import com.palantir.common.base.BatchingVisitable;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
@@ -64,6 +65,7 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
         return delegate().get(tableRef, cells);
     }
 
+    @ReviewedRestrictedApiUsage
     @Override
     public Map<Cell, byte[]> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {u}(jo (475117e2fdde793b9f6b93745fa339db60ceafadjFp datlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.javajHp modifiedj@p KjAp K jJp KjKp https://github.com/palantir/atlasdb/blob/2739a482d48aaff7b793a228f388db90913d1e53/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javajMp https://github.com/palantir/atlasdb/raw/2739a482d48aaff7b793a228f388db90913d1e53/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javajOp https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.java?ref=2739a482d48aaff7b793a228f388db90913d1e53jQp X#  @@ -63,6 +63,7 @@
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.TransactionSerializableConflictException;
+import com.palantir.atlasdb.transaction.api.annotations.ReviewedRestrictedApiUsage;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
 import com.palantir.atlasdb.transaction.service.AsyncTransactionService;
@@ -320,6 +321,7 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
         }
     }
 
+    @ReviewedRestrictedApiUsage
     @Override
     @Idempotent
     public Map<Cell, byte[]> getWithExpectedNumberOfCells(ueu(bb499ad3a6ebb7d4db4938b20fb7a2a8f2e677d7}(sha(bb499ad3a6ebb7d4db4938b20fb7a2a8f2e677d7node_idEC_kwDOAjP5fdoAKGJiNDk5YWQzYTZlYmI3ZDRkYjQ5MzhiMjBmYjdhMmE4ZjJlNjc3ZDccommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-27T10:41:53Zu	committer}(jp 
Sam Kramerjp skramer@palantir.comjp 2023-04-27T10:41:53Zumessagedecrease lock lease durationtree}(j}p (e74e495c454e0089ae761c7c03141a2ee58e47b7url`https://api.github.com/repos/palantir/atlasdb/git/trees/e74e495c454e0089ae761c7c03141a2ee58e47b7ujp bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bb499ad3a6ebb7d4db4938b20fb7a2a8f2e677d7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRKUXEACgkQmPPOpKR4
XS0EUwf/QQuoz4NXwqz4itAuj8UA1RCWVsllJitWh1Lj1devHmOzF/NUzmqxvmzi
fleHxuSb4BeY86YzM1GFN296dOQu6FFQ29vJ4qPxPl4QaWKqlDEl5iG8RXFXbER6
dy+TNiu92oqxYp1fMHfqnNzF2BenPjhN2jEcchS6Uu6/51w2PONc1YC5fVbh5ZtN
qHkoXFhfLzP4jFVR86eunMpW07oRvv3Enyc9gLRvmMoN0/G6CPb3RbGgMvZuxKeE
6Cs4yUNQxeCdHPcbZzzSDcJL+Igx9NpSa1UAtGg1yW1YislTSVwNF4RkMggqcyFw
mZbiWd4cLjNXI8pCDG+yaYplYefYBw==
=Ve55
-----END PGP SIGNATURE-----payloadtree e74e495c454e0089ae761c7c03141a2ee58e47b7
parent 9a8372fe4584ebb5ff8d6614d0f5f5eaa20d912e
author Sam Kramer <skramer@palantir.com> 1682592113 +0100
committer Sam Kramer <skramer@palantir.com> 1682592113 +0100

decrease lock lease duration
uujp ^https://api.github.com/repos/palantir/atlasdb/commits/bb499ad3a6ebb7d4db4938b20fb7a2a8f2e677d7html_urlShttps://github.com/palantir/atlasdb/commit/bb499ad3a6ebb7d4db4938b20fb7a2a8f2e677d7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bb499ad3a6ebb7d4db4938b20fb7a2a8f2e677d7/commentsjp }(login
Sam-KrameridJ^2_ jp MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jp 'https://api.github.com/users/Sam-Kramerjp https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujp }(jp 
Sam-Kramerjp J^2_ jp MDQ6VXNlcjYyMzg4MTQ=jp 3https://avatars.githubusercontent.com/u/6238814?v=4jp h5jp 'https://api.github.com/users/Sam-Kramerjp https://github.com/Sam-Kramerjp 1https://api.github.com/users/Sam-Kramer/followersjp >https://api.github.com/users/Sam-Kramer/following{/other_user}jp 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jp >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jp 5https://api.github.com/users/Sam-Kramer/subscriptionsjp ,https://api.github.com/users/Sam-Kramer/orgsjp -https://api.github.com/users/Sam-Kramer/reposjp 8https://api.github.com/users/Sam-Kramer/events{/privacy}jp 7https://api.github.com/users/Sam-Kramer/received_eventsjp Userjp uparents]}(j}p (9a8372fe4584ebb5ff8d6614d0f5f5eaa20d912ejp ^https://api.github.com/repos/palantir/atlasdb/commits/9a8372fe4584ebb5ff8d6614d0f5f5eaa20d912ejp Shttps://github.com/palantir/atlasdb/commit/9a8372fe4584ebb5ff8d6614d0f5f5eaa20d912euastats}(totalK	additionsK	deletionsKufiles](}(j}p (673ed69a7c17d4e214eeef11cf69e7836d4f56c2filenameClock-api/src/main/java/com/palantir/lock/client/TimeLockClient.javastatusmodifiedjp Kjp KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/bb499ad3a6ebb7d4db4938b20fb7a2a8f2e677d7/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.javaraw_urlhttps://github.com/palantir/atlasdb/raw/bb499ad3a6ebb7d4db4938b20fb7a2a8f2e677d7/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.java?ref=bb499ad3a6ebb7d4db4938b20fb7a2a8f2e677d7patchX  @@ -47,7 +47,7 @@
 public class TimeLockClient implements AutoCloseable, TimelockService {
     private static final ScheduledExecutorService refreshExecutor = createSingleThreadScheduledExecutor("refresh");
 
-    private static final long REFRESH_INTERVAL_MILLIS = 5_000;
+    private static final long REFRESH_INTERVAL_MILLIS = 250;
 
     private final TimelockService delegate;
     private final CloseableTimestampService timestampService;u}(j}p (d8fa437de7f7a3a747c39f439cb9604328743770jp Utimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/LockLeaseContract.javajp modifiedjp Kjp Kjp Kjp https://github.com/palantir/atlasdb/blob/bb499ad3a6ebb7d4db4938b20fb7a2a8f2e677d7/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FLockLeaseContract.javajp https://github.com/palantir/atlasdb/raw/bb499ad3a6ebb7d4db4938b20fb7a2a8f2e677d7/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FLockLeaseContract.javajp https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FLockLeaseContract.java?ref=bb499ad3a6ebb7d4db4938b20fb7a2a8f2e677d7jp X  @@ -21,7 +21,7 @@
 public final class LockLeaseContract {
     private LockLeaseContract() {}
 
-    public static final Duration SERVER_LEASE_TIMEOUT = Duration.ofSeconds(20);
+    public static final Duration SERVER_LEASE_TIMEOUT = Duration.ofSeconds(1);
 
     /**
      * This value can be changed without requiring any change on client side.
@@ -32,5 +32,5 @@ private LockLeaseContract() {}
      * period. Current value is picked such that client will be able to refresh held locks even after two consecutive
      * failed refresh calls. (Where client side refresh period is 5 seconds)
      */
-    public static final Duration CLIENT_LEASE_TIMEOUT = Duration.ofSeconds(8);
+    public static final Duration CLIENT_LEASE_TIMEOUT = Duration.ofMillis(500);
 }ueu(a86beccd40c2e299190f26a35cb9acd559cfd717}(sha(a86beccd40c2e299190f26a35cb9acd559cfd717node_idEC_kwDOAjP5fdoAKGE4NmJlY2NkNDBjMmUyOTkxOTBmMjZhMzVjYjlhY2Q1NTljZmQ3MTccommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-23T11:03:22Zu	committer}(jq Jeremy Kongjq jkong@palantir.comjq 2023-05-23T11:03:22Zumessageblehtree}(jp (44237b3f40d36f0329ff45e17503e73bfd006c07url`https://api.github.com/repos/palantir/atlasdb/git/trees/44237b3f40d36f0329ff45e17503e73bfd006c07ujq bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a86beccd40c2e299190f26a35cb9acd559cfd717
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRsnXoACgkQTLdFKain
zjzrJAgA2bgD5jSp//OQwP/RZ0AvNFv9RGL/jMRWyhbvKU05WHmHlC6+KMvO8Agn
D7e5rFIebbwt911JyriJiGJOLu68KWhDYga39kiGwxwI7ljW4e4yPfP6D6iMgTl1
golu4tQE6p6vHFxCdpTusaWjUBpIYqPw/30p6knTWTt0ulvUfcxyPH7UEOuHVy1l
9xjK1qziIJoX7sZCyjY8LzyHTIeSjlHAPvj8l8HmPpgEjHbl1Pzg8R/8FUrOtw3B
Xlm+xBOpXX3VOEyOmeTfMwP5/bDqbsHzkQ4M/gC8ZOoLiyOnyE6hBmo3Nq/N3LP1
TNdc9zjU2kRtpy82I8x4hPZcsNNmVA==
=7isa
-----END PGP SIGNATURE-----payloadtree 44237b3f40d36f0329ff45e17503e73bfd006c07
parent 9a9498864da1458f73cfe6727b6f7ad06e27f93c
author Jeremy Kong <jkong@palantir.com> 1684839802 +0100
committer Jeremy Kong <jkong@palantir.com> 1684839802 +0100

bleh
uujq ^https://api.github.com/repos/palantir/atlasdb/commits/a86beccd40c2e299190f26a35cb9acd559cfd717html_urlShttps://github.com/palantir/atlasdb/commit/a86beccd40c2e299190f26a35cb9acd559cfd717comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a86beccd40c2e299190f26a35cb9acd559cfd717/commentsjq }(login
jeremyk-91idJZ jp MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jq 'https://api.github.com/users/jeremyk-91j"q https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj
q }(j'q 
jeremyk-91j)q JZ jp MDQ6VXNlcjU5NTU1MTA=j+q 3https://avatars.githubusercontent.com/u/5955510?v=4j-q h5jq 'https://api.github.com/users/jeremyk-91j"q https://github.com/jeremyk-91j0q 1https://api.github.com/users/jeremyk-91/followersj2q >https://api.github.com/users/jeremyk-91/following{/other_user}j4q 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j6q >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j8q 5https://api.github.com/users/jeremyk-91/subscriptionsj:q ,https://api.github.com/users/jeremyk-91/orgsj<q -https://api.github.com/users/jeremyk-91/reposj>q 8https://api.github.com/users/jeremyk-91/events{/privacy}j@q 7https://api.github.com/users/jeremyk-91/received_eventsjBq UserjDq uparents]}(jp (9a9498864da1458f73cfe6727b6f7ad06e27f93cjq ^https://api.github.com/repos/palantir/atlasdb/commits/9a9498864da1458f73cfe6727b6f7ad06e27f93cj"q Shttps://github.com/palantir/atlasdb/commit/9a9498864da1458f73cfe6727b6f7ad06e27f93cuastats}(totalK	additionsK 	deletionsKufiles]}(jp (61a0c83cdc9b222053cb946e1e139aec27dcf76afilenamelatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javastatusmodifiedj^q K j_q KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/a86beccd40c2e299190f26a35cb9acd559cfd717/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a86beccd40c2e299190f26a35cb9acd559cfd717/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=a86beccd40c2e299190f26a35cb9acd559cfd717patchX  @@ -17,9 +17,6 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoMoreInteractions;
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
@@ -48,10 +45,8 @@
 import java.util.List;
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicReference;
-import java.util.function.Consumer;
 import java.util.stream.Collectors;
 import org.junit.Test;
-import org.mockito.ArgumentCaptor;
 
 public class TransientRowsWorkflowsTest {
     private static final int ITERATION_COUNT = 5;uau(b557bc7d7e2d0a010131c6e2f3ee3927b4d3e7a9}(sha(b557bc7d7e2d0a010131c6e2f3ee3927b4d3e7a9node_idEC_kwDOAjP5fdoAKGI1NTdiYzdkN2UyZDBhMDEwMTMxYzZlMmYzZWUzOTI3YjRkM2U3YTkcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-20T15:04:19Zu	committer}(j{q Lucas Meirelesj}q meireles31@msn.comjq 2023-07-20T15:04:19Zumessagefix testtree}(jsq (12ac5c75d9992b744a8bce4242391c8f89d1729aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/12ac5c75d9992b744a8bce4242391c8f89d1729aujq bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b557bc7d7e2d0a010131c6e2f3ee3927b4d3e7a9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS5TPMACgkQJd22kJ7J
GixVJQgA18ePUQ8Z3oV9MzXc4W58QgC8PWDUqGAEHhMYH6SjWOQOMBOBu9MsMR5w
KaT+95URjQYnutVnmBvu5vqfmkYmcaSCaSwNZmSOv5dfItG5WcblJCzEJH+aFNfX
8l1c7VKdAsezD+C6K76TUFDWYZ0CsmZcwdU6kM5M7918vg8VAWpLuLFCbpRd5Sbd
hRSvOscxiD6S7NYBFxZxCnonx87cVE1Faayv/ePPt5by4TEXokKd21CuTxj6oCLA
AKc4ahatB4sYZdAYPMg9mADkkUpNYbmFgrL5ATqFmYduF4b/PjJFVifdYWcEGerS
cUYpybidj1SHgo88pEHh66pKcD1tSw==
=Lq0R
-----END PGP SIGNATURE-----payloadtree 12ac5c75d9992b744a8bce4242391c8f89d1729a
parent 37ac526dcf41a772635987aae9bced6365590007
author Lucas Meireles <meireles31@msn.com> 1689865459 +0100
committer Lucas Meireles <meireles31@msn.com> 1689865459 +0100

fix test
uujq ^https://api.github.com/repos/palantir/atlasdb/commits/b557bc7d7e2d0a010131c6e2f3ee3927b4d3e7a9html_urlShttps://github.com/palantir/atlasdb/commit/b557bc7d7e2d0a010131c6e2f3ee3927b4d3e7a9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b557bc7d7e2d0a010131c6e2f3ee3927b4d3e7a9/commentsjyq }(loginLucasIMEidJg juq MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jq %https://api.github.com/users/LucasIMEjq https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujq }(jq LucasIMEjq Jg juq MDQ6VXNlcjY3ODczMTE=jq 3https://avatars.githubusercontent.com/u/6787311?v=4jq h5jq %https://api.github.com/users/LucasIMEjq https://github.com/LucasIMEjq /https://api.github.com/users/LucasIME/followersjq <https://api.github.com/users/LucasIME/following{/other_user}jq 5https://api.github.com/users/LucasIME/gists{/gist_id}jq <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jq 3https://api.github.com/users/LucasIME/subscriptionsjq *https://api.github.com/users/LucasIME/orgsjq +https://api.github.com/users/LucasIME/reposjq 6https://api.github.com/users/LucasIME/events{/privacy}jq 5https://api.github.com/users/LucasIME/received_eventsjq Userjq uparents]}(jsq (37ac526dcf41a772635987aae9bced6365590007jq ^https://api.github.com/repos/palantir/atlasdb/commits/37ac526dcf41a772635987aae9bced6365590007jq Shttps://github.com/palantir/atlasdb/commit/37ac526dcf41a772635987aae9bced6365590007uastats}(totalK	additionsK	deletionsKufiles]}(jsq (93615c3b8acdfaab4ec06aa505e0353a596da6d5filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedjq Kjq KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b557bc7d7e2d0a010131c6e2f3ee3927b4d3e7a9/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b557bc7d7e2d0a010131c6e2f3ee3927b4d3e7a9/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=b557bc7d7e2d0a010131c6e2f3ee3927b4d3e7a9patchX  @@ -1707,7 +1707,7 @@ public void throwsIfReadingMoreThanExpectedNumberOfValues() {
 
     @Test
     public void reduceCachedCellsFromNumberOfExpectedCells() {
-        putCellsInTable(List.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3, TEST_CELL_4), TABLE_SWEPT_THOROUGH);
+        putCellsInTable(List.of(TEST_CELL, TEST_CELL_2, TEST_CELL_4), TABLE_SWEPT_THOROUGH);
 
         TimelockService spiedTimeLockService = spy(timelockService);
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
@@ -1736,7 +1736,7 @@ public void reduceCachedCellsFromNumberOfExpectedCells() {
                 .getInternal(
                         eq("getWithExpectedNumberOfCells"),
                         eq(TABLE_SWEPT_THOROUGH),
-                        eq(Set.of(TEST_CELL_2)),
+                        eq(Set.of(TEST_CELL_2, TEST_CELL_3)), // Don't expect to ask for cell1 because it's cached
                         eq(1),
                         any(),
                         any());uau(7a7a8d4998fa9dcc7592ecf97105207092b2c793}(sha(7a7a8d4998fa9dcc7592ecf97105207092b2c793node_idEC_kwDOAjP5fdoAKDdhN2E4ZDQ5OThmYTlkY2M3NTkyZWNmOTcxMDUyMDcwOTJiMmM3OTMcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-08-18T13:18:00Zu	committer}(jq 
svc-changelogjq svc-changelog@palantir.comjq 2023-08-18T13:18:00ZumessageAdd generated changelog entriestree}(jq (44a5dab2b54ef5902059cf333b5aeed56966430curl`https://api.github.com/repos/palantir/atlasdb/git/trees/44a5dab2b54ef5902059cf333b5aeed56966430cujr bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7a7a8d4998fa9dcc7592ecf97105207092b2c793
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmTfb4gJEHYaJX37fAFQAADgUQD6AlmGQkk1r/p1bSKeikQeQB6u
tYIB3Trzj1wpJFPP1ogA/AsfUQiC3k7mizSRhb9i2mXNkUdgqXBkxN2wlFistQ2N
=9+PO
-----END PGP SIGNATURE-----payloadX  tree 44a5dab2b54ef5902059cf333b5aeed56966430c
parent 9c5b9febb991d4672d2c760736edb97684778a60
author svc-changelog <svc-changelog@palantir.com> 1692364680 +0000
committer svc-changelog <svc-changelog@palantir.com> 1692364680 +0000

Add generated changelog entriesuujr ^https://api.github.com/repos/palantir/atlasdb/commits/7a7a8d4998fa9dcc7592ecf97105207092b2c793html_urlShttps://github.com/palantir/atlasdb/commit/7a7a8d4998fa9dcc7592ecf97105207092b2c793comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7a7a8d4998fa9dcc7592ecf97105207092b2c793/commentsjq }(login
svc-changelogidJ#jq MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jr *https://api.github.com/users/svc-changelogjr  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujq }(jr 
svc-changelogjr J#jq MDQ6VXNlcjg0MDc3NjAzjr 4https://avatars.githubusercontent.com/u/84077603?v=4jr h5jr *https://api.github.com/users/svc-changelogjr  https://github.com/svc-changelogjr 4https://api.github.com/users/svc-changelog/followersj r Ahttps://api.github.com/users/svc-changelog/following{/other_user}j"r :https://api.github.com/users/svc-changelog/gists{/gist_id}j$r Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j&r 8https://api.github.com/users/svc-changelog/subscriptionsj(r /https://api.github.com/users/svc-changelog/orgsj*r 0https://api.github.com/users/svc-changelog/reposj,r ;https://api.github.com/users/svc-changelog/events{/privacy}j.r :https://api.github.com/users/svc-changelog/received_eventsj0r Userj2r uparents]}(jq (9c5b9febb991d4672d2c760736edb97684778a60jr ^https://api.github.com/repos/palantir/atlasdb/commits/9c5b9febb991d4672d2c760736edb97684778a60jr Shttps://github.com/palantir/atlasdb/commit/9c5b9febb991d4672d2c760736edb97684778a60uastats}(totalK	additionsK	deletionsK ufiles]}(jq (8a71e873186bb672aea6b894cf713621b1c19547filename$changelog/@unreleased/pr-6711.v2.ymlstatusaddedjLr KjMr K changesKblob_url|https://github.com/palantir/atlasdb/blob/7a7a8d4998fa9dcc7592ecf97105207092b2c793/changelog%2F%40unreleased%2Fpr-6711.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/7a7a8d4998fa9dcc7592ecf97105207092b2c793/changelog%2F%40unreleased%2Fpr-6711.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6711.v2.yml?ref=7a7a8d4998fa9dcc7592ecf97105207092b2c793patchX*  @@ -0,0 +1,7 @@
+type: improvement
+improvement:
+  description: Throw not current leader exception only once per instance. This should
+    prevent multiple class creations, thus preventing resource contention and resource
+    leakage.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6711uau(4dbe5d32764161fd8a768c451ca288fd86889cc6}(sha(4dbe5d32764161fd8a768c451ca288fd86889cc6node_idEC_kwDOAjP5fdoAKDRkYmU1ZDMyNzY0MTYxZmQ4YTc2OGM0NTFjYTI4OGZkODY4ODljYzYcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-16T12:55:20Zu	committer}(jir svc-autoreleasejkr -pd-foundry-infrastructure-notify@palantir.comjmr 2023-05-16T12:55:20Zumessage#Autorelease 0.854.0-rc25

[skip ci]tree}(jar (7503efe2cf8d4848e343c0a5c51421000dfa7fe9url`https://api.github.com/repos/palantir/atlasdb/git/trees/7503efe2cf8d4848e343c0a5c51421000dfa7fe9ujyr bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4dbe5d32764161fd8a768c451ca288fd86889cc6
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRjfTkACgkQhbrR8ip7mDCE5gD+Ny8xtkXUoUP9mIi2lLaGdYYn
cPWJsWb74qFh3QmBPOgA/1NZ+5++Vz9mkQBgZLwNc5nneOG9zvHeWjwegTamKsdg
=d3EH
-----END PGP SIGNATURE-----
payloadX)  tree 7503efe2cf8d4848e343c0a5c51421000dfa7fe9
parent a4bd187afb5bdf124ae935b93c4fa9fb570c6ede
author aalouane <30903736+ergo14@users.noreply.github.com> 1684241720 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684241720 +0000

Autorelease 0.854.0-rc25

[skip ci]uujyr ^https://api.github.com/repos/palantir/atlasdb/commits/4dbe5d32764161fd8a768c451ca288fd86889cc6html_urlShttps://github.com/palantir/atlasdb/commit/4dbe5d32764161fd8a768c451ca288fd86889cc6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4dbe5d32764161fd8a768c451ca288fd86889cc6/commentsjgr }(loginergo14idJjcr MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jyr #https://api.github.com/users/ergo14jr https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujor }(jr svc-autoreleasejr J(jcr MDQ6VXNlcjUxNzE4MzQ2jr 4https://avatars.githubusercontent.com/u/51718346?v=4jr h5jyr ,https://api.github.com/users/svc-autoreleasejr "https://github.com/svc-autoreleasejr 6https://api.github.com/users/svc-autorelease/followersjr Chttps://api.github.com/users/svc-autorelease/following{/other_user}jr <https://api.github.com/users/svc-autorelease/gists{/gist_id}jr Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jr :https://api.github.com/users/svc-autorelease/subscriptionsjr 1https://api.github.com/users/svc-autorelease/orgsjr 2https://api.github.com/users/svc-autorelease/reposjr =https://api.github.com/users/svc-autorelease/events{/privacy}jr <https://api.github.com/users/svc-autorelease/received_eventsjr Userjr uparents]}(jar (a4bd187afb5bdf124ae935b93c4fa9fb570c6edejyr ^https://api.github.com/repos/palantir/atlasdb/commits/a4bd187afb5bdf124ae935b93c4fa9fb570c6edejr Shttps://github.com/palantir/atlasdb/commit/a4bd187afb5bdf124ae935b93c4fa9fb570c6edeuastats}(totalK 	additionsK 	deletionsK ufiles]u(3e7f1a8eb1c5127c18a4fa884f79af00ab686a98}(sha(3e7f1a8eb1c5127c18a4fa884f79af00ab686a98node_idEC_kwDOAjP5fdoAKDNlN2YxYThlYjFjNTEyN2MxOGE0ZmE4ODRmNzlhZjAwYWI2ODZhOTgcommit}(author}(nameStephen Freibergemailsfreiberg@palantir.comdate2023-05-19T15:02:08Zu	committer}(jr Stephen Freibergjr sfreiberg@palantir.comjr 2023-05-19T15:19:51Zumessage.held locks is a multimap (multiple read locks)tree}(jr (d5b4be1ee219f853399068fb1acaa361b3526127url`https://api.github.com/repos/palantir/atlasdb/git/trees/d5b4be1ee219f853399068fb1acaa361b3526127ujr bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3e7f1a8eb1c5127c18a4fa884f79af00ab686a98
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEoaCu/Sw33A5Tv+2c3uI2rJSLVJUFAmRnk5gACgkQ3uI2rJSL
VJU69gf/YBnzJtbt3OjWomRMQTVxkxqa6CAeFfS0M1My3/fu3XiKQjeOFPpJp35X
NtwIPWGvsJQIcJgMyC8Vv1ZLOll4evPjUPrn/sE1XJBceq2202c1sXL0VCh3mMRF
ccUHnkxngwlAMLdQXmf3Ykkxj3YWz5t651er/5SXxh54nNKL7tYnpdmtdmsOuQNV
spkwEscKqfsEUixIwMBeP8iYlMiJ0MhvJ0I925Sbz62BWeUXBK8HXv/kLiU5H0N5
DNqEABTO9G40pHgVaLQKFyGkNpIoSbW3lvZS3P6QnIZZhDuS+Xv/SUdvU3bIstF1
8FfE9CL8PBv2O4CdYdUJrdqrb+ADDQ==
=EZq1
-----END PGP SIGNATURE-----payloadX  tree d5b4be1ee219f853399068fb1acaa361b3526127
parent 6d014a5f21edd6ca9a7de56b98f94e4875dfa077
author Stephen Freiberg <sfreiberg@palantir.com> 1684508528 -0400
committer Stephen Freiberg <sfreiberg@palantir.com> 1684509591 -0400

held locks is a multimap (multiple read locks)
uujr ^https://api.github.com/repos/palantir/atlasdb/commits/3e7f1a8eb1c5127c18a4fa884f79af00ab686a98html_urlShttps://github.com/palantir/atlasdb/commit/3e7f1a8eb1c5127c18a4fa884f79af00ab686a98comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3e7f1a8eb1c5127c18a4fa884f79af00ab686a98/commentsjr }(loginsfreiberg-palantiridJ=jr MDQ6VXNlcjIwODA3NzA1
avatar_url4https://avatars.githubusercontent.com/u/20807705?v=4gravatar_idh5jr /https://api.github.com/users/sfreiberg-palantirjr %https://github.com/sfreiberg-palantir
followers_url9https://api.github.com/users/sfreiberg-palantir/followers
following_urlFhttps://api.github.com/users/sfreiberg-palantir/following{/other_user}	gists_url?https://api.github.com/users/sfreiberg-palantir/gists{/gist_id}starred_urlFhttps://api.github.com/users/sfreiberg-palantir/starred{/owner}{/repo}subscriptions_url=https://api.github.com/users/sfreiberg-palantir/subscriptionsorganizations_url4https://api.github.com/users/sfreiberg-palantir/orgs	repos_url5https://api.github.com/users/sfreiberg-palantir/repos
events_url@https://api.github.com/users/sfreiberg-palantir/events{/privacy}received_events_url?https://api.github.com/users/sfreiberg-palantir/received_eventstypeUser
site_adminujr }(jr sfreiberg-palantirjr J=jr MDQ6VXNlcjIwODA3NzA1jr 4https://avatars.githubusercontent.com/u/20807705?v=4jr h5jr /https://api.github.com/users/sfreiberg-palantirjr %https://github.com/sfreiberg-palantirjr 9https://api.github.com/users/sfreiberg-palantir/followersjr Fhttps://api.github.com/users/sfreiberg-palantir/following{/other_user}js ?https://api.github.com/users/sfreiberg-palantir/gists{/gist_id}js Fhttps://api.github.com/users/sfreiberg-palantir/starred{/owner}{/repo}js =https://api.github.com/users/sfreiberg-palantir/subscriptionsjs 4https://api.github.com/users/sfreiberg-palantir/orgsj	s 5https://api.github.com/users/sfreiberg-palantir/reposjs @https://api.github.com/users/sfreiberg-palantir/events{/privacy}j
s ?https://api.github.com/users/sfreiberg-palantir/received_eventsjs Userjs uparents]}(jr (6d014a5f21edd6ca9a7de56b98f94e4875dfa077jr ^https://api.github.com/repos/palantir/atlasdb/commits/6d014a5f21edd6ca9a7de56b98f94e4875dfa077jr Shttps://github.com/palantir/atlasdb/commit/6d014a5f21edd6ca9a7de56b98f94e4875dfa077uastats}(totalK:	additionsK'	deletionsKufiles](}(jr (9fe9d43261f7a9aee7f98c3febb6dfc81ee82d3cfilenameLlock-impl/src/main/java/com/palantir/lock/logger/LockServiceStateLogger.javastatusmodifiedj+s Kj,s KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/3e7f1a8eb1c5127c18a4fa884f79af00ab686a98/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLogger.javaraw_urlhttps://github.com/palantir/atlasdb/raw/3e7f1a8eb1c5127c18a4fa884f79af00ab686a98/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLogger.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLogger.java?ref=3e7f1a8eb1c5127c18a4fa884f79af00ab686a98patchX.  @@ -16,6 +16,7 @@
 package com.palantir.lock.logger;
 
 import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.ImmutableSetMultimap;
 import com.google.common.collect.Multimap;
 import com.google.common.collect.Multimaps;
 import com.google.common.collect.SetMultimap;
@@ -66,7 +67,7 @@ public LockServiceStateLogger(
     public LogState logLocks() {
         List<SimpleLockRequestsWithSameDescriptor> generatedOutstandingRequests =
                 generateOutstandingLocks(outstandingLockRequests);
-        Map<ObfuscatedLockDescriptor, SimpleTokenInfo> generatedHeldLocks = generateHeldLocks(heldLocks);
+        Multimap<ObfuscatedLockDescriptor, SimpleTokenInfo> generatedHeldLocks = generateHeldLocks(heldLocks);
         Map<ObfuscatedLockDescriptor, String> generatedSyncState = generateSyncState(descriptorToLockMap);
         Map<ClientId, List<SanitizedLockRequestProgress>> synthesizedRequestState =
                 synthesizeRequestState(outstandingLockRequests, descriptorToLockMap);
@@ -130,14 +131,14 @@ private List<SimpleLockRequestsWithSameDescriptor> generateOutstandingLocks(
                 .collect(Collectors.toList());
     }
 
-    private Map<ObfuscatedLockDescriptor, SimpleTokenInfo> generateHeldLocks(
+    private Multimap<ObfuscatedLockDescriptor, SimpleTokenInfo> generateHeldLocks(
             ConcurrentMap<HeldLocksToken, LockServiceImpl.HeldLocks<HeldLocksToken>> heldLocksTokenMap) {
         return heldLocksTokenMap.values().stream()
                 .flatMap(locks -> locks.getRealToken().getLocks().stream()
                         .map(lock -> Map.entry(
                                 this.lockDescriptorMapper.getDescriptorMapping(lock.getLockDescriptor()),
                                 SimpleTokenInfo.of(locks.getRealToken(), lock.getLockMode()))))
-                .collect(Collectors.toMap(Entry::getKey, Entry::getValue));
+                .collect(ImmutableSetMultimap.toImmutableSetMultimap(Entry::getKey, Entry::getValue));
     }
 
     private Map<ObfuscatedLockDescriptor, String> generateSyncState(u}(jr (a5db35d08e52dedc10c9a0db02572d3b809a9531j1s Jlock-impl/src/main/java/com/palantir/lock/logger/LockServiceTestUtils.javaj3s modifiedj+s Kj,s K	j5s Kj6s https://github.com/palantir/atlasdb/blob/3e7f1a8eb1c5127c18a4fa884f79af00ab686a98/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceTestUtils.javaj8s https://github.com/palantir/atlasdb/raw/3e7f1a8eb1c5127c18a4fa884f79af00ab686a98/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceTestUtils.javaj:s https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceTestUtils.java?ref=3e7f1a8eb1c5127c18a4fa884f79af00ab686a98j<s X)  @@ -24,15 +24,13 @@
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.StringLockDescriptor;
 import java.math.BigInteger;
-import java.util.Arrays;
-import java.util.List;
+import java.util.Map;
 
 public class LockServiceTestUtils {
 
     public static HeldLocksToken getFakeHeldLocksToken(
-            String clientName, String requestingThread, BigInteger tokenId, String... descriptors) {
-        ImmutableSortedMap<LockDescriptor, LockMode> lockDescriptorLockMode =
-                getLockDescriptorLockMode(Arrays.asList(descriptors));
+            String clientName, String requestingThread, BigInteger tokenId, Map<String, LockMode> descriptors) {
+        ImmutableSortedMap<LockDescriptor, LockMode> lockDescriptorLockMode = getLockDescriptorLockMode(descriptors);
 
         return new HeldLocksToken(
                 tokenId,
@@ -45,11 +43,12 @@ public static HeldLocksToken getFakeHeldLocksToken(
                 requestingThread);
     }
 
-    public static ImmutableSortedMap<LockDescriptor, LockMode> getLockDescriptorLockMode(List<String> descriptors) {
+    public static ImmutableSortedMap<LockDescriptor, LockMode> getLockDescriptorLockMode(
+            Map<String, LockMode> descriptors) {
         ImmutableSortedMap.Builder<LockDescriptor, LockMode> builder = ImmutableSortedMap.naturalOrder();
-        for (String descriptor : descriptors) {
-            LockDescriptor descriptor1 = StringLockDescriptor.of(descriptor);
-            builder.put(descriptor1, LockMode.WRITE);
+        for (Map.Entry<String, LockMode> descriptorAndMode : descriptors.entrySet()) {
+            LockDescriptor descriptor1 = StringLockDescriptor.of(descriptorAndMode.getKey());
+            builder.put(descriptor1, descriptorAndMode.getValue());
         }
         return builder.buildOrThrow();
     }u     }(jr (296c1bf1d09ef2afae13517b51f18c423208a9e6j1s >lock-impl/src/main/java/com/palantir/lock/logger/LogState.javaj3s modifiedj+s Kj,s Kj5s Kj6s https://github.com/palantir/atlasdb/blob/3e7f1a8eb1c5127c18a4fa884f79af00ab686a98/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLogState.javaj8s https://github.com/palantir/atlasdb/raw/3e7f1a8eb1c5127c18a4fa884f79af00ab686a98/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLogState.javaj:s https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLogState.java?ref=3e7f1a8eb1c5127c18a4fa884f79af00ab686a98j<s X1  @@ -16,6 +16,7 @@
 
 package com.palantir.lock.logger;
 
+import com.google.common.collect.Multimap;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.SafeArg;
@@ -33,7 +34,7 @@ public interface LogState {
     List<SimpleLockRequestsWithSameDescriptor> getOutstandingRequests();
 
     @Safe
-    Map<ObfuscatedLockDescriptor, SimpleTokenInfo> getHeldLocks();
+    Multimap<ObfuscatedLockDescriptor, SimpleTokenInfo> getHeldLocks();
 
     @Safe
     Map<ObfuscatedLockDescriptor, String> getSyncState();u}(jr (5b2b8d65d1a16e7b6ff4a49446104efd578d647dj1s Jlock-impl/src/test/java/com/palantir/lock/logger/LockServiceSerDeTest.javaj3s modifiedj+s K
j,s Kj5s Kj6s https://github.com/palantir/atlasdb/blob/3e7f1a8eb1c5127c18a4fa884f79af00ab686a98/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceSerDeTest.javaj8s https://github.com/palantir/atlasdb/raw/3e7f1a8eb1c5127c18a4fa884f79af00ab686a98/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceSerDeTest.javaj:s https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceSerDeTest.java?ref=3e7f1a8eb1c5127c18a4fa884f79af00ab686a98j<s XP	  @@ -18,7 +18,6 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.fasterxml.jackson.databind.ObjectMapper;
-import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.lock.HeldLocksGrant;
@@ -42,7 +41,10 @@ public class LockServiceSerDeTest {
     @Test
     public void testSerialisationAndDeserialisationOfLockResponse() throws Exception {
         HeldLocksToken token = LockServiceTestUtils.getFakeHeldLocksToken(
-                "client A", "Fake thread", new BigInteger("1"), "held-lock-1", "logger-lock");
+                "client A",
+                "Fake thread",
+                new BigInteger("1"),
+                ImmutableMap.of("held-lock-1", LockMode.WRITE, "logger-lock", LockMode.WRITE));
         LockResponse response = new LockResponse(token);
         ObjectMapper mapper = new ObjectMapper();
         LockResponse deserializedLockResponse =
@@ -53,7 +55,10 @@ public void testSerialisationAndDeserialisationOfLockResponse() throws Exception
     @Test
     public void testSerialisationAndDeserialisationOfLockResponseWithLockHolders() throws Exception {
         HeldLocksToken token = LockServiceTestUtils.getFakeHeldLocksToken(
-                "client A", "Fake thread", new BigInteger("1"), "held-lock-1", "logger-lock");
+                "client A",
+                "Fake thread",
+                new BigInteger("1"),
+                ImmutableMap.of("held-lock-1", LockMode.WRITE, "logger-lock", LockMode.WRITE));
         Map<LockDescriptor, LockClient> lockHolders = ImmutableMap.of(
                 StringLockDescriptor.of("lock_id"),
                 LockClient.ANONYMOUS,
@@ -92,7 +97,8 @@ public void testSerialisationAndDeserialisationOfLockServerOptions() throws Exce
     @Test
     public void testSerialisationAndDeserialisationOfHeldLocksGrant() throws Exception {
         ImmutableSortedMap<LockDescriptor, LockMode> lockDescriptorLockMode =
-                LockServiceTestUtils.getLockDescriptorLockMode(ImmutableList.of("lock1", "lock2"));
+                LockServiceTestUtils.getLockDescriptorLockMode(
+                        ImmutableMap.of("lock1", LockMode.WRITE, "lock2", LockMode.WRITE));
 
         HeldLocksGrant heldLocksGrant = new HeldLocksGrant(
                 BigInteger.ONE,u}(jr (072fb1ef70cfd7dc1f19cb3684f7d835be7c52fej1s Plock-impl/src/test/java/com/palantir/lock/logger/LockServiceStateLoggerTest.javaj3s modifiedj+s Kj,s Kj5s Kj6s https://github.com/palantir/atlasdb/blob/3e7f1a8eb1c5127c18a4fa884f79af00ab686a98/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLoggerTest.javaj8s https://github.com/palantir/atlasdb/raw/3e7f1a8eb1c5127c18a4fa884f79af00ab686a98/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLoggerTest.javaj:s https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLoggerTest.java?ref=3e7f1a8eb1c5127c18a4fa884f79af00ab686a98j<s XL  @@ -19,6 +19,7 @@
 
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.common.collect.HashMultimap;
+import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSortedMap;
 import com.google.common.collect.MapMaker;
 import com.google.common.collect.Multimaps;
@@ -82,12 +83,24 @@ public static void setUp() {
         outstandingLockRequestMultimap.put(clientA, request2);
 
         HeldLocksToken token = LockServiceTestUtils.getFakeHeldLocksToken(
-                "client A", "Fake thread", new BigInteger("1"), "held-lock-1", "logger-lock");
+                "client A",
+                "Fake thread",
+                new BigInteger("1"),
+                ImmutableMap.of("held-lock-1", LockMode.WRITE, "logger-lock", LockMode.WRITE));
         HeldLocksToken token2 = LockServiceTestUtils.getFakeHeldLocksToken(
-                "client B", "Fake thread 2", new BigInteger("2"), "held-lock-2", "held-lock-3");
+                "client B",
+                "Fake thread 2",
+                new BigInteger("2"),
+                ImmutableMap.of("held-lock-2", LockMode.WRITE, "held-lock-3", LockMode.WRITE));
+        HeldLocksToken token3 = LockServiceTestUtils.getFakeHeldLocksToken(
+                "client C", "Fake thread 3", new BigInteger("3"), ImmutableMap.of("held-lock-4", LockMode.READ));
+        HeldLocksToken token4 = LockServiceTestUtils.getFakeHeldLocksToken(
+                "client D", "Fake thread 4", new BigInteger("4"), ImmutableMap.of("held-lock-4", LockMode.READ));
 
         heldLocksTokenMap.putIfAbsent(token, LockServiceImpl.HeldLocks.of(token, LockCollections.of()));
         heldLocksTokenMap.putIfAbsent(token2, LockServiceImpl.HeldLocks.of(token2, LockCollections.of()));
+        heldLocksTokenMap.putIfAbsent(token3, LockServiceImpl.HeldLocks.of(token2, LockCollections.of()));
+        heldLocksTokenMap.putIfAbsent(token4, LockServiceImpl.HeldLocks.of(token2, LockCollections.of()));
 
         LockServerLock lock1 = new LockServerLock(DESCRIPTOR_1, new LockClientIndices());
         syncStateMap.put(DESCRIPTOR_1, lock1);ueu(d9d89642cfb9052cc148c22ce5ff46e5f148384d}(sha(d9d89642cfb9052cc148c22ce5ff46e5f148384dnode_idEC_kwDOAjP5fdoAKGQ5ZDg5NjQyY2ZiOTA1MmNjMTQ4YzIyY2U1ZmY0NmU1ZjE0ODM4NGQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-20T17:43:31Zu	committer}(jhs Jeremy Kongjjs jkong@palantir.comjls 2023-04-20T17:43:31Zumessagetraptree}(j`s (72dab6ce029192af12499b633ae8efafc8498533url`https://api.github.com/repos/palantir/atlasdb/git/trees/72dab6ce029192af12499b633ae8efafc8498533ujxs bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d9d89642cfb9052cc148c22ce5ff46e5f148384d
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRBecMACgkQTLdFKain
zjxCUgf/VQpVMfo4O9lMtHIxgkeYGAV2XohZeYUWgucxbaX87q7jbEbIoBXdrc64
Q66hh42QbTJ2tWxGzjSTiYep6zsBNjc5cu9GmcJUWx07xwhw+6+Bex3GGx/I0k79
qlw4oBKM9+7YM3nc3PG2GaZfgbcvepgM+k+NF9G1lheNC3k6o+gUEFjB/gKgKeXG
IG1nCk0gc5J+UnNLDuEZLRRm2dZ8WXsJQ2UPdZdgNQiu/h/7VsCawH/Vz8QY8P3g
4mSvXiz2/JVSSZfSuKTy6ARidEY0pVT9/ie6fnSfLOFQ2H7gqbTAPg69vDucw4KO
9ZBzlNmiG6gPNnx9AnChcrmIVcpU1A==
=izJz
-----END PGP SIGNATURE-----payloadtree 72dab6ce029192af12499b633ae8efafc8498533
parent f8bf34176eae5fa8f2122a40292f5b8aee0f9b9b
author Jeremy Kong <jkong@palantir.com> 1682012611 +0100
committer Jeremy Kong <jkong@palantir.com> 1682012611 +0100

trap
uujxs ^https://api.github.com/repos/palantir/atlasdb/commits/d9d89642cfb9052cc148c22ce5ff46e5f148384dhtml_urlShttps://github.com/palantir/atlasdb/commit/d9d89642cfb9052cc148c22ce5ff46e5f148384dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d9d89642cfb9052cc148c22ce5ff46e5f148384d/commentsjfs }(login
jeremyk-91idJZ jbs MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jxs 'https://api.github.com/users/jeremyk-91js https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujns }(js 
jeremyk-91js JZ jbs MDQ6VXNlcjU5NTU1MTA=js 3https://avatars.githubusercontent.com/u/5955510?v=4js h5jxs 'https://api.github.com/users/jeremyk-91js https://github.com/jeremyk-91js 1https://api.github.com/users/jeremyk-91/followersjs >https://api.github.com/users/jeremyk-91/following{/other_user}js 7https://api.github.com/users/jeremyk-91/gists{/gist_id}js >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}js 5https://api.github.com/users/jeremyk-91/subscriptionsjs ,https://api.github.com/users/jeremyk-91/orgsjs -https://api.github.com/users/jeremyk-91/reposjs 8https://api.github.com/users/jeremyk-91/events{/privacy}js 7https://api.github.com/users/jeremyk-91/received_eventsjs Userjs uparents]}(j`s (f8bf34176eae5fa8f2122a40292f5b8aee0f9b9bjxs ^https://api.github.com/repos/palantir/atlasdb/commits/f8bf34176eae5fa8f2122a40292f5b8aee0f9b9bjs Shttps://github.com/palantir/atlasdb/commit/f8bf34176eae5fa8f2122a40292f5b8aee0f9b9buastats}(totalK	additionsK	deletionsKufiles](}(j`s (546f00c5a057265f0aa389ffdfd822f7968ec459filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedjs Kjs KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/d9d89642cfb9052cc148c22ce5ff46e5f148384d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d9d89642cfb9052cc148c22ce5ff46e5f148384d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=d9d89642cfb9052cc148c22ce5ff46e5f148384dpatchX  @@ -48,6 +48,7 @@
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.common.util.concurrent.Uninterruptibles;
 import com.google.errorprone.annotations.MustBeClosed;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.AtlasDbMetricNames;
@@ -169,6 +170,7 @@
 import java.util.concurrent.CopyOnWriteArrayList;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.RejectedExecutionException;
+import java.util.concurrent.ThreadLocalRandom;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.atomic.AtomicLong;
 import java.util.concurrent.atomic.AtomicReference;
@@ -2003,13 +2005,6 @@ private void commitWrites(TransactionService transactionService) {
                 // Not timed as this is generally an asynchronous operation.
                 traced("microsForPunch", () -> cleaner.punch(commitTimestamp));
 
-                // Serializable transactions need to check their reads haven't changed, by reading again at
-                // commitTs + 1. This must happen before the lock check for thorough tables, because the lock check
-                // verifies the immutable timestamp hasn't moved forward - thorough sweep might sweep a conflict out
-                // from underneath us.
-                timedAndTraced(
-                        "readWriteConflictCheck", () -> throwIfReadWriteConflictForSerializable(commitTimestamp));
-
                 // Verify that our locks and pre-commit conditions are still valid before we actually commit;
                 // this throwIfPreCommitRequirementsNotMet is required by the transaction protocol for correctness.
                 // We check the pre-commit conditions first since they may operate similarly to read write conflict
@@ -2020,6 +2015,21 @@ private void commitWrites(TransactionService transactionService) {
                 // timed.
                 traced("preCommitLockCheck", () -> throwIfImmutableTsOrCommitLocksExpired(commitLocksToken));
 
+                // Buggify stuff
+                Set<LockToken> tokensToUnlock = new HashSet<>();
+                tokensToUnlock.add(commitLocksToken);
+                immutableTimestampLock.ifPresent(tokensToUnlock::add);
+                Uninterruptibles.sleepUninterruptibly(
+                        Duration.ofMillis(ThreadLocalRandom.current().nextInt(60_000)));
+
+                // This can fail :(
+                // Serializable transactions need to check their reads haven't changed, by reading again at
+                // commitTs + 1. This must happen before the lock check for thorough tables, because the lock check
+                // verifies the immutable timestamp hasn't moved forward - thorough sweep might sweep a conflict out
+                // from underneath us.
+                timedAndTraced(
+                        "readWriteConflictCheck", () -> throwIfReadWriteConflictForSerializable(commitTimestamp));
+
                 // Not timed, because this just calls TransactionService.putUnlessExists, and that is timed.
                 traced(
                         "commitPutCommitTs",u}(j`s (361709b7f355f4eb5886bfd7f15247f38e24059ejs latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javajs modifiedjs Kjs K
js Kjs https://github.com/palantir/atlasdb/blob/d9d89642cfb9052cc148c22ce5ff46e5f148384d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajs https://github.com/palantir/atlasdb/raw/d9d89642cfb9052cc148c22ce5ff46e5f148384d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajs https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=d9d89642cfb9052cc148c22ce5ff46e5f148384djs X8  @@ -21,14 +21,14 @@
 import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
 import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
 import com.google.common.annotations.VisibleForTesting;
-import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
 import com.palantir.atlasdb.workload.invariant.DurableWritesInvariantMetricReporter;
 import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
 import com.palantir.atlasdb.workload.runner.AntithesisWorkflowRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.workflow.BouncingValueWorkflow;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;
@@ -82,10 +82,10 @@ public void run(WorkloadServerConfiguration configuration, Environment environme
     }
 
     private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {
-        ExecutorService singleRowTwoCellsExecutorService = environment
-                .lifecycle()
-                .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
-                .build();
+        //        ExecutorService singleRowTwoCellsExecutorService = environment
+        //                .lifecycle()
+        //                .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
+        //                .build();
         MetricsManager metricsManager = MetricsManagers.of(environment.metrics(), taggedMetricRegistry);
         AtlasDbTransactionStoreFactory transactionStoreFactory = AtlasDbTransactionStoreFactory.createFromConfig(
                 configuration.install().atlas(),
@@ -97,14 +97,19 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
 
         log.info("antithesis: start_faults");
         AntithesisWorkflowRunner.INSTANCE.run(
-                SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
-                        transactionStoreFactory.create(
-                                Map.of(
-                                        workflowConfig.tableConfiguration().tableName(),
-                                        workflowConfig.tableConfiguration().isolationLevel()),
-                                Set.of()),
-                        workflowConfig,
-                        MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)),
+                BouncingValueWorkflow.createBouncingValue(transactionStoreFactory.create(
+                        Map.of(
+                                workflowConfig.tableConfiguration().tableName(),
+                                workflowConfig.tableConfiguration().isolationLevel()),
+                        Set.of())),
+                //                SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
+                //                        transactionStoreFactory.create(
+                //                                Map.of(
+                //                                        workflowConfig.tableConfiguration().tableName(),
+                //                                        workflowConfig.tableConfiguration().isolationLevel()),
+                //                                Set.of()),
+                //                        workflowConfig,
+                //                        MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)),
                 List.of(
                         new DurableWritesInvariantMetricReporter(
                                 SingleRowTwoCellsWorkflows.class.getSimpleName(),u}(j`s (7c09fa7df9c4cabb886ba310573de4e7c83adecejs matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javajs modifiedjs Kjs Kjs Kjs https://github.com/palantir/atlasdb/blob/d9d89642cfb9052cc148c22ce5ff46e5f148384d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javajs https://github.com/palantir/atlasdb/raw/d9d89642cfb9052cc148c22ce5ff46e5f148384d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javajs https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=d9d89642cfb9052cc148c22ce5ff46e5f148384djs X  @@ -50,7 +50,7 @@ public AtlasDbTransactionStoreFactory(TransactionManager transactionManager, Opt
     }
 
     @Override
-    public TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
+    public InteractiveTransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
         return AtlasDbTransactionStore.create(transactionManager, toAtlasTables(tables, indexes));
     }
 u}(j`s (e749f9df76faaaed267dc5f8e040b8f5eac95a77js gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/BouncingValueWorkflow.javajs addedjs Khjs K js Khjs https://github.com/palantir/atlasdb/blob/d9d89642cfb9052cc148c22ce5ff46e5f148384d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FBouncingValueWorkflow.javajs https://github.com/palantir/atlasdb/raw/d9d89642cfb9052cc148c22ce5ff46e5f148384d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FBouncingValueWorkflow.javajs https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FBouncingValueWorkflow.java?ref=d9d89642cfb9052cc148c22ce5ff46e5f148384djs X  @@ -0,0 +1,104 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.OnlyCommittedWitnessedTransactionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Comparator;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.Executors;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+import one.util.streamex.StreamEx;
+
+public class BouncingValueWorkflow {
+    private static final String TEST_TABLE = "bouncingValue";
+    private static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow createBouncingValue(InteractiveTransactionStore store) {
+        return new Workflow() {
+            @Override
+            public WorkflowHistory run() {
+                ListeningExecutorService readExecutor =
+                        MoreExecutors.listeningDecorator(Executors.newSingleThreadExecutor());
+                ListeningExecutorService writeExecutor =
+                        MoreExecutors.listeningDecorator(Executors.newSingleThreadExecutor());
+                List<ListenableFuture<Optional<WitnessedTransaction>>> reads = IntStream.range(0, 1_000)
+                        .mapToObj(idx -> readExecutor.submit(() -> {
+                            return store.readWrite(txn -> {
+                                Optional<Integer> value = txn.read(TEST_TABLE, BUSY_CELL);
+                                txn.write(TEST_TABLE, BUSY_CELL, value.orElse(-1));
+                            });
+                        }))
+                        .collect(Collectors.toList());
+
+                List<ListenableFuture<Optional<WitnessedTransaction>>> writes = new ArrayList<>();
+                for (int i = 0; i < 500; i++) {
+                    int stableI = i;
+                    writes.add(writeExecutor.submit(
+                            () -> store.readWrite(List.of(WriteTransactionAction.of(TEST_TABLE, BUSY_CELL, stableI)))));
+                    writes.add(writeExecutor.submit(
+                            () -> store.readWrite(List.of(DeleteTransactionAction.of(TEST_TABLE, BUSY_CELL)))));
+                }
+                ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                        Futures.allAsList(Stream.of(reads, writes)
+                                .flatMap(Collection::stream)
+                                .collect(Collectors.toList())),
+                        maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                                .flatMap(Optional::stream)
+                                .collect(Collectors.toList()),
+                        MoreExecutors.directExecutor());
+                ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+                return ImmutableWorkflowHistory.builder()
+                        .addAllHistory(sortAndFilterTransactions(
+                                readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                        .transactionStore(readOnlyTransactionStore)
+                        .build();
+            }
+        };
+    }
+
+    // Naughty
+    static List<FullyWitnessedTransaction> sortAndFilterTransactions(
+            ReadOnlyTransactionStore readOnlyTransactionStore, List<WitnessedTransaction> unorderedTransactions) {
+        OnlyCommittedWitnessedTransactionVisitor visitor =
+                new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
+        return StreamEx.of(unorderedTransactions)
+                .mapPartial(transaction -> transaction.accept(visitor))
+                .sorted(Comparator.comparingLong(BouncingValueWorkflow::effectiveTimestamp))
+                .toList();
+    }
+
+    private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
+        return witnessedTransaction.commitTimestamp().orElseGet(witnessedTransaction::startTimestamp);
+    }
+}ueu(7b67b7d7f4dae52490818afcd812f93dcc4c5c87}(sha(7b67b7d7f4dae52490818afcd812f93dcc4c5c87node_idEC_kwDOAjP5fdoAKDdiNjdiN2Q3ZjRkYWU1MjQ5MDgxOGFmY2Q4MTJmOTNkY2M0YzVjODccommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-18T17:05:14Zu	committer}(js 	Tom Papkejs tpapke@palantir.comjs 2023-07-18T17:05:14ZumessageXAdd old version of conjure lock request and test that we don't need a product dependencytree}(js (20241fc68e2153d694430d96314d2ba014961a02url`https://api.github.com/repos/palantir/atlasdb/git/trees/20241fc68e2153d694430d96314d2ba014961a02ujt bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7b67b7d7f4dae52490818afcd812f93dcc4c5c87
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS2xkoACgkQmF9s0kaF
Iw0bNAgAk7422f6LcnzUifzGmZNSsPqts2JUDoPozHYD3axeKAtl+2xdCIoz81M+
NXsAZJfimlgaa1Knjdlz91CAm5JQHs2aEqGrvYwXr1rmDrKg1waWGgzq3aELXyF+
hYUEerAOGgdOxqEmh98UHzLVtlph6eX4P6WCsptwZlnY3UbDGak8M3FsGwNT1e3L
2dN7KQOZpEmneFB16OwyUXuli8bBickCU13EurjqozrhDMj25hxa5E9CEQKiemjr
X9VKsXRzx2bjn1c/LnYd4cHEcQNbCN2x4tYiBn/3jvVwqMgBAR9Z5c/suvH9cNbX
9iJCtkAEp4dgqpUEoKy77GhpmFX6uw==
=5ozO
-----END PGP SIGNATURE-----payloadX+  tree 20241fc68e2153d694430d96314d2ba014961a02
parent 14484da9c5b2c78a513808a86d968c5864ba4868
author Tom Papke <tpapke@palantir.com> 1689699914 +0100
committer Tom Papke <tpapke@palantir.com> 1689699914 +0100

Add old version of conjure lock request and test that we don't need a product dependency
uujt ^https://api.github.com/repos/palantir/atlasdb/commits/7b67b7d7f4dae52490818afcd812f93dcc4c5c87html_urlShttps://github.com/palantir/atlasdb/commit/7b67b7d7f4dae52490818afcd812f93dcc4c5c87comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7b67b7d7f4dae52490818afcd812f93dcc4c5c87/commentsjs }(login	ToemmscheidJbojs MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jt &https://api.github.com/users/Toemmschejt https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujs }(jt 	Toemmschejt Jbojs MDQ6VXNlcjQzNjc1NDkwjt 4https://avatars.githubusercontent.com/u/43675490?v=4j t h5jt &https://api.github.com/users/Toemmschejt https://github.com/Toemmschej#t 0https://api.github.com/users/Toemmsche/followersj%t =https://api.github.com/users/Toemmsche/following{/other_user}j't 6https://api.github.com/users/Toemmsche/gists{/gist_id}j)t =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j+t 4https://api.github.com/users/Toemmsche/subscriptionsj-t +https://api.github.com/users/Toemmsche/orgsj/t ,https://api.github.com/users/Toemmsche/reposj1t 7https://api.github.com/users/Toemmsche/events{/privacy}j3t 6https://api.github.com/users/Toemmsche/received_eventsj5t Userj7t uparents]}(js (14484da9c5b2c78a513808a86d968c5864ba4868jt ^https://api.github.com/repos/palantir/atlasdb/commits/14484da9c5b2c78a513808a86d968c5864ba4868jt Shttps://github.com/palantir/atlasdb/commit/14484da9c5b2c78a513808a86d968c5864ba4868uastats}(totalM+	additionsM	deletionsKufiles](}(js (e82dfb8fb3ac704571c72a868213133c36e5489bfilenameIlock-api-objects/src/test/java/com/palantir/lock/watch/LockEventTest.javastatusmodifiedjQt KjRt KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7b67b7d7f4dae52490818afcd812f93dcc4c5c87/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7b67b7d7f4dae52490818afcd812f93dcc4c5c87/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.java?ref=7b67b7d7f4dae52490818afcd812f93dcc4c5c87patchXl  @@ -206,7 +206,7 @@ private static <T> void assertDeserializedEquals(String jsonFileName, T object,
     }
 
     private static Path getJsonPath(String jsonFileName) {
-        return Paths.get(BASE + jsonFileName + ".json");
+        return Paths.get(BASE, jsonFileName + ".json");
     }
 
     // This is a copy of the LockEvent class before metadata was addedu}(js (50e2141d4a60c42433d4e8478022f87ca76a107bjWt Klock-api/src/test/java/com/palantir/lock/client/ConjureLockRequestTest.javajYt modifiedjQt MjRt K
j[t M'j\t https://github.com/palantir/atlasdb/blob/7b67b7d7f4dae52490818afcd812f93dcc4c5c87/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequestTest.javaj^t https://github.com/palantir/atlasdb/raw/7b67b7d7f4dae52490818afcd812f93dcc4c5c87/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequestTest.javaj`t https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequestTest.java?ref=7b67b7d7f4dae52490818afcd812f93dcc4c5c87jbt X=  @@ -18,10 +18,16 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonSetter;
+import com.fasterxml.jackson.annotation.Nulls;
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.fasterxml.jackson.databind.SerializationFeature;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.timelock.api.ConjureChangeMetadata;
 import com.palantir.atlasdb.timelock.api.ConjureCreatedChangeMetadata;
@@ -33,12 +39,26 @@
 import com.palantir.atlasdb.timelock.api.ConjureUnchangedChangeMetadata;
 import com.palantir.atlasdb.timelock.api.ConjureUpdatedChangeMetadata;
 import com.palantir.conjure.java.lib.Bytes;
+import com.palantir.conjure.java.lib.internal.ConjureCollections;
 import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.Safe;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.Unsafe;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.io.IOException;
 import java.nio.file.Files;
 import java.nio.file.Path;
 import java.nio.file.Paths;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.LinkedHashSet;
+import java.util.List;
+import java.util.Optional;
+import java.util.Set;
 import java.util.UUID;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
 import org.junit.Test;
 
 public class ConjureLockRequestTest {
@@ -51,6 +71,22 @@ public class ConjureLockRequestTest {
     private static final ConjureLockDescriptor LOCK_2 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("def")));
     private static final ConjureLockDescriptor LOCK_3 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("ghi")));
     private static final ConjureLockDescriptor LOCK_4 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("jkl")));
+    private static final UUID REQUEST_ID = new UUID(1337, 42);
+    private static final int ACQUIRE_TIMEOUT_MS = 100;
+    private static final String CLIENT_DESCRIPTION = "client: test, thread: test";
+    private static final OldConjureLockRequest OLD_CONJURE_LOCK_REQUEST = OldConjureLockRequest.builder()
+            .requestId(REQUEST_ID)
+            .lockDescriptors(ImmutableSet.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4))
+            .acquireTimeoutMs(ACQUIRE_TIMEOUT_MS)
+            .clientDescription(CLIENT_DESCRIPTION)
+            .build();
+    private static final ConjureLockRequest DEFAULT_CONJURE_LOCK_REQUEST = ConjureLockRequest.builder()
+            .requestId(REQUEST_ID)
+            .lockDescriptors(ImmutableList.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4))
+            .acquireTimeoutMs(ACQUIRE_TIMEOUT_MS)
+            .clientDescription(CLIENT_DESCRIPTION)
+            .build();
+
     private static final byte[] BYTES_OLD = PtBytes.toBytes("old");
     private static final byte[] BYTES_NEW = PtBytes.toBytes("new");
     private static final byte[] BYTES_DELETED = PtBytes.toBytes("deleted");
@@ -69,12 +105,6 @@ public class ConjureLockRequestTest {
                     3,
                     ConjureChangeMetadata.created(ConjureCreatedChangeMetadata.of(Bytes.from(BYTES_CREATED)))),
             ConjureLockDescriptorListChecksum.of(0, Bytes.from(PtBytes.toBytes("test-checksum-value"))));
-    private static final ConjureLockRequest CONJURE_LOCK_REQUEST = ConjureLockRequest.builder()
-            .requestId(new UUID(1337, 42))
-            .lockDescriptors(ImmutableList.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4))
-            .acquireTimeoutMs(100)
-            .clientDescription("client: test, thread: test")
-            .build();
 
     // AtlasDB (Client) serializes and TimeLock (Server) deserializes ConjureLockRequest objects.
     // These are the respective mappers used internally by Conjure.
@@ -86,20 +116,39 @@ public class ConjureLockRequestTest {
     private static final ObjectMapper VERIFYING_MAPPER = new ObjectMapper();
 
     @Test
-    public void newServerCanHandleMissingMetadata() {
-        assertDeserializedEquals(OLD_CONJURE_LOCK_REQUEST_FILE, CONJURE_LOCK_REQUEST, ConjureLockRequest.class);
+    public void oldConjureLockRequestSerializesDeserializes() {
+        assertSerializedEquals(OLD_CONJURE_LOCK_REQUEST, OLD_CONJURE_LOCK_REQUEST_FILE);
+        assertDeserializedEquals(OLD_CONJURE_LOCK_REQUEST_FILE, OLD_CONJURE_LOCK_REQUEST, OldConjureLockRequest.class);
+    }
+
+    // Requires excludeEmptyOptionals = true
+    @Test
+    public void absentMetadataSerializesDeserializes() {
+        assertSerializedEquals(DEFAULT_CONJURE_LOCK_REQUEST, OLD_CONJURE_LOCK_REQUEST_FILE);
+        assertDeserializedEquals(OLD_CONJURE_LOCK_REQUEST_FILE, DEFAULT_CONJURE_LOCK_REQUEST, ConjureLockRequest.class);
     }
 
     @Test
     public void presentMetadataSerializesDeserializes() {
         ConjureLockRequest requestWithMetadata = ConjureLockRequest.builder()
-                .from(CONJURE_LOCK_REQUEST)
+                .from(DEFAULT_CONJURE_LOCK_REQUEST)
                 .metadata(CONJURE_LOCK_REQUEST_METADATA)
                 .build();
         assertSerializedEquals(requestWithMetadata, WITH_METADATA_FILE);
         assertDeserializedEquals(WITH_METADATA_FILE, requestWithMetadata, ConjureLockRequest.class);
     }
 
+    @Test
+    public void newServerCanHandleMissingMetadata() {
+        assertDeserializedEquals(OLD_CONJURE_LOCK_REQUEST_FILE, DEFAULT_CONJURE_LOCK_REQUEST, ConjureLockRequest.class);
+    }
+
+    // Possible because we do not use strict objects
+    @Test
+    public void oldServerCanHandlePresentMetadata() {
+        assertDeserializedEquals(WITH_METADATA_FILE, OLD_CONJURE_LOCK_REQUEST, OldConjureLockRequest.class);
+    }
+
     private static <T> void assertSerializedEquals(T object, String jsonFileName) {
         try {
             Path path = getJsonPath(jsonFileName);
@@ -126,6 +175,232 @@ private static <T> void assertDeserializedEquals(String jsonFileName, T object,
     }
 
     private static Path getJsonPath(String jsonFileName) {
-        return Paths.get(BASE + jsonFileName + ".json");
+        return Paths.get(BASE, jsonFileName + ".json");
+    }
+
+    // Copy of Conjure-generated file and prefixed with "Old"
+    @Unsafe
+    @JsonDeserialize(builder = OldConjureLockRequest.Builder.class)
+    public static final class OldConjureLockRequest {
+        private final UUID requestId;
+
+        private final Set<ConjureLockDescriptor> lockDescriptors;
+
+        private final int acquireTimeoutMs;
+
+        private final Optional<String> clientDescription;
+
+        private int memoizedHashCode;
+
+        private OldConjureLockRequest(
+                UUID requestId,
+                Set<ConjureLockDescriptor> lockDescriptors,
+                int acquireTimeoutMs,
+                Optional<String> clientDescription) {
+            validateFields(requestId, lockDescriptors, clientDescription);
+            this.requestId = requestId;
+            this.lockDescriptors = Collections.unmodifiableSet(lockDescriptors);
+            this.acquireTimeoutMs = acquireTimeoutMs;
+            this.clientDescription = clientDescription;
+        }
+
+        @JsonProperty("requestId")
+        @Safe
+        public UUID getRequestId() {
+            return this.requestId;
+        }
+
+        @JsonProperty("lockDescriptors")
+        public Set<ConjureLockDescriptor> getLockDescriptors() {
+            return this.lockDescriptors;
+        }
+
+        @JsonProperty("acquireTimeoutMs")
+        @Safe
+        public int getAcquireTimeoutMs() {
+            return this.acquireTimeoutMs;
+        }
+
+        @JsonProperty("clientDescription")
+        @Unsafe
+        public Optional<String> getClientDescription() {
+            return this.clientDescription;
+        }
+
+        @Override
+        public boolean equals(@Nullable Object other) {
+            return this == other || (other instanceof OldConjureLockRequest && equalTo((OldConjureLockRequest) other));
+        }
+
+        private boolean equalTo(OldConjureLockRequest other) {
+            if (this.memoizedHashCode != 0
+                    && other.memoizedHashCode != 0
+                    && this.memoizedHashCode != other.memoizedHashCode) {
+                return false;
+            }
+            return this.requestId.equals(other.requestId)
+                    && this.lockDescriptors.equals(other.lockDescriptors)
+                    && this.acquireTimeoutMs == other.acquireTimeoutMs
+                    && this.clientDescription.equals(other.clientDescription);
+        }
+
+        @Override
+        public int hashCode() {
+            int result = memoizedHashCode;
+            if (result == 0) {
+                int hash = 1;
+                hash = 31 * hash + this.requestId.hashCode();
+                hash = 31 * hash + this.lockDescriptors.hashCode();
+                hash = 31 * hash + this.acquireTimeoutMs;
+                hash = 31 * hash + this.clientDescription.hashCode();
+                result = hash;
+                memoizedHashCode = result;
+            }
+            return result;
+        }
+
+        @Override
+        @Unsafe
+        public String toString() {
+            return "ConjureLockRequest{requestId: " + requestId + ", lockDescriptors: " + lockDescriptors
+                    + ", acquireTimeoutMs: " + acquireTimeoutMs + ", clientDescription: " + clientDescription + '}';
+        }
+
+        private static void validateFields(
+                UUID requestId, Set<ConjureLockDescriptor> lockDescriptors, Optional<String> clientDescription) {
+            List<String> missingFields = null;
+            missingFields = addFieldIfMissing(missingFields, requestId, "requestId");
+            missingFields = addFieldIfMissing(missingFields, lockDescriptors, "lockDescriptors");
+            missingFields = addFieldIfMissing(missingFields, clientDescription, "clientDescription");
+            if (missingFields != null) {
+                throw new SafeIllegalArgumentException(
+                        "Some required fields have not been set", SafeArg.of("missingFields", missingFields));
+            }
+        }
+
+        private static List<String> addFieldIfMissing(List<String> prev, Object fieldValue, String fieldName) {
+            List<String> missingFields = prev;
+            if (fieldValue == null) {
+                if (missingFields == null) {
+                    missingFields = new ArrayList<>(3);
+                }
+                missingFields.add(fieldName);
+            }
+            return missingFields;
+        }
+
+        public static Builder builder() {
+            return new Builder();
+        }
+
+        @JsonIgnoreProperties(ignoreUnknown = true)
+        public static final class Builder {
+            boolean _buildInvoked;
+
+            private @Safe UUID requestId;
+
+            private Set<ConjureLockDescriptor> lockDescriptors = new LinkedHashSet<>();
+
+            private @Safe int acquireTimeoutMs;
+
+            private Optional<@Unsafe String> clientDescription = Optional.empty();
+
+            private boolean _acquireTimeoutMsInitialized = false;
+
+            private Builder() {
+            }
+
+            public Builder from(OldConjureLockRequest other) {
+                checkNotBuilt();
+                requestId(other.getRequestId());
+                lockDescriptors(other.getLockDescriptors());
+                acquireTimeoutMs(other.getAcquireTimeoutMs());
+                clientDescription(other.getClientDescription());
+                return this;
+            }
+
+            @JsonSetter("requestId")
+            public Builder requestId(@Nonnull @Safe UUID requestId) {
+                checkNotBuilt();
+                this.requestId = Preconditions.checkNotNull(requestId, "requestId cannot be null");
+                return this;
+            }
+
+            @JsonSetter(value = "lockDescriptors", nulls = Nulls.SKIP)
+            public Builder lockDescriptors(@Nonnull Iterable<ConjureLockDescriptor> lockDescriptors) {
+                checkNotBuilt();
+                this.lockDescriptors = ConjureCollections.newLinkedHashSet(
+                        Preconditions.checkNotNull(lockDescriptors, "lockDescriptors cannot be null"));
+                return this;
+            }
+
+            public Builder addAllLockDescriptors(@Nonnull Iterable<ConjureLockDescriptor> lockDescriptors) {
+                checkNotBuilt();
+                ConjureCollections.addAll(
+                        this.lockDescriptors,
+                        Preconditions.checkNotNull(lockDescriptors, "lockDescriptors cannot be null"));
+                return this;
+            }
+
+            public Builder lockDescriptors(ConjureLockDescriptor lockDescriptors) {
+                checkNotBuilt();
+                this.lockDescriptors.add(lockDescriptors);
+                return this;
+            }
+
+            @JsonSetter("acquireTimeoutMs")
+            public Builder acquireTimeoutMs(@Safe int acquireTimeoutMs) {
+                checkNotBuilt();
+                this.acquireTimeoutMs = acquireTimeoutMs;
+                this._acquireTimeoutMsInitialized = true;
+                return this;
+            }
+
+            @JsonSetter(value = "clientDescription", nulls = Nulls.SKIP)
+            public Builder clientDescription(@Nonnull Optional<@Unsafe String> clientDescription) {
+                checkNotBuilt();
+                this.clientDescription =
+                        Preconditions.checkNotNull(clientDescription, "clientDescription cannot be null");
+                return this;
+            }
+
+            public Builder clientDescription(@Nonnull @Unsafe String clientDescription) {
+                checkNotBuilt();
+                this.clientDescription =
+                        Optional.of(Preconditions.checkNotNull(clientDescription, "clientDescription cannot be null"));
+                return this;
+            }
+
+            private void validatePrimitiveFieldsHaveBeenInitialized() {
+                List<String> missingFields = null;
+                missingFields = addFieldIfMissing(missingFields, _acquireTimeoutMsInitialized, "acquireTimeoutMs");
+                if (missingFields != null) {
+                    throw new SafeIllegalArgumentException(
+                            "Some required fields have not been set", SafeArg.of("missingFields", missingFields));
+                }
+            }
+
+            private static List<String> addFieldIfMissing(List<String> prev, boolean initialized, String fieldName) {
+                List<String> missingFields = prev;
+                if (!initialized) {
+                    if (missingFields == null) {
+                        missingFields = new ArrayList<>(1);
+                    }
+                    missingFields.add(fieldName);
+                }
+                return missingFields;
+            }
+
+            public OldConjureLockRequest build() {
+                checkNotBuilt();
+                this._buildInvoked = true;
+                validatePrimitiveFieldsHaveBeenInitialized();
+                return new OldConjureLockRequest(requestId, lockDescriptors, acquireTimeoutMs, clientDescription);
+            }
+
+            private void checkNotBuilt() {
+                Preconditions.checkState(!_buildInvoked, "Build has already been called");
+            }
+        }
     }
 }u}(js (96fe402e4d52617d8c36e2a0ce2d98c6c893ef57jWt Nlock-api/src/test/java/com/palantir/lock/client/IdentifiedLockRequestTest.javajYt modifiedjQt KjRt Kj[t Kj\t https://github.com/palantir/atlasdb/blob/7b67b7d7f4dae52490818afcd812f93dcc4c5c87/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj^t https://github.com/palantir/atlasdb/raw/7b67b7d7f4dae52490818afcd812f93dcc4c5c87/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj`t https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.java?ref=7b67b7d7f4dae52490818afcd812f93dcc4c5c87jbt X  @@ -99,6 +99,6 @@ private static IdentifiedLockRequest deserialize(String jsonFileName) {
     }
 
     private static Path getJsonPath(String jsonFileName) {
-        return Paths.get(BASE + jsonFileName + ".json");
+        return Paths.get(BASE, jsonFileName + ".json");
     }
 }ueu(a732d2ad19db9312e9d3ef7b01079b81616c950d}(sha(a732d2ad19db9312e9d3ef7b01079b81616c950dnode_idEC_kwDOAjP5fdoAKGE3MzJkMmFkMTlkYjkzMTJlOWQzZWY3YjAxMDc5YjgxNjE2Yzk1MGQcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-04-14T15:31:25Zu	committer}(j~t GitHubjt noreply@github.comjt 2023-04-14T15:31:25Zumessage,Simplify sweep enabled configuration (#6515)tree}(jvt (f9b533e1b76e393c36fd38f0f3e7cce32eacdd50url`https://api.github.com/repos/palantir/atlasdb/git/trees/f9b533e1b76e393c36fd38f0f3e7cce32eacdd50ujt bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a732d2ad19db9312e9d3ef7b01079b81616c950d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkOXHNCRBK7hj4Ov3rIwAAZUUIAIL06szMmSfoKequY8tYnpp8
kqLtZ14lsmQm8rd0JAqaeqiq6b1P+RZ/mUD4gIhiA/c3gZ3AtqceKtWEySG0Zibj
drxz3hMHZEiUADrphOHfZXO/aahipHAFs+dVUGoNRWGVlU+OiGkhnYEofY9WsP/B
vskgQ+kDPoLpz+PJ2lOf/+tWoTbnIxz3yZc7GSsQN7+hJzOBGKbh52bKiJEEPAKf
oZpKPisLQgyIfZc//nTKRPWR3uQQHKX0j6IEp38CnEjY557L3ENQ8zVWxnrn6JIk
gO+KZMPqj/jCmOXL/GYU5JCXJwf67GfNEDagCityt2hky7ci067YTAIlmgEj764=
=go/n
-----END PGP SIGNATURE-----
payloadX  tree f9b533e1b76e393c36fd38f0f3e7cce32eacdd50
parent 0e14f67617dd788589625ee19cec2170efae2ee4
author Patrick Koenig <pkoenig10@gmail.com> 1681486285 -0700
committer GitHub <noreply@github.com> 1681486285 +0000

Simplify sweep enabled configuration (#6515)

 uujt ^https://api.github.com/repos/palantir/atlasdb/commits/a732d2ad19db9312e9d3ef7b01079b81616c950dhtml_urlShttps://github.com/palantir/atlasdb/commit/a732d2ad19db9312e9d3ef7b01079b81616c950dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a732d2ad19db9312e9d3ef7b01079b81616c950d/commentsj|t }(login	pkoenig10idJLvP jxt MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5jt &https://api.github.com/users/pkoenig10jt https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminujt }(jt web-flowjt J/jxt MDQ6VXNlcjE5ODY0NDQ3jt 4https://avatars.githubusercontent.com/u/19864447?v=4jt h5jt %https://api.github.com/users/web-flowjt https://github.com/web-flowjt /https://api.github.com/users/web-flow/followersjt <https://api.github.com/users/web-flow/following{/other_user}jt 5https://api.github.com/users/web-flow/gists{/gist_id}jt <https://api.github.com/users/web-flow/starred{/owner}{/repo}jt 3https://api.github.com/users/web-flow/subscriptionsjt *https://api.github.com/users/web-flow/orgsjt +https://api.github.com/users/web-flow/reposjt 6https://api.github.com/users/web-flow/events{/privacy}jt 5https://api.github.com/users/web-flow/received_eventsjt Userjt uparents]}(jvt (0e14f67617dd788589625ee19cec2170efae2ee4jt ^https://api.github.com/repos/palantir/atlasdb/commits/0e14f67617dd788589625ee19cec2170efae2ee4jt Shttps://github.com/palantir/atlasdb/commit/0e14f67617dd788589625ee19cec2170efae2ee4uastats}(totalKЌ	additionsK	deletionsKufiles](}(jvt (1f8d140f2fcd68b79edcbd2a6f52017316caa266filename^atlasdb-config/src/main/java/com/palantir/atlasdb/config/ShouldRunBackgroundSweepSupplier.javastatusremovedjt K jt K*changesK*blob_urlhttps://github.com/palantir/atlasdb/blob/0e14f67617dd788589625ee19cec2170efae2ee4/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0e14f67617dd788589625ee19cec2170efae2ee4/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.java?ref=0e14f67617dd788589625ee19cec2170efae2ee4patchX  @@ -1,42 +0,0 @@
-/*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.config;
-
-import java.util.function.BooleanSupplier;
-import java.util.function.Supplier;
-
-/**
- * Synthesises provided install and runtime configurations, and uses this to decide whether the background sweeper
- * should run. Specifically:
- *
- * <ul>
- *     <li>if the background sweeper has been explicitly enabled or disabled, use that setting;</li>
- *     <li>otherwise disable background sweep</li>
- * </ul>
- */
-public class ShouldRunBackgroundSweepSupplier implements BooleanSupplier {
-    private final Supplier<SweepConfig> runtimeConfigSupplier;
-
-    public ShouldRunBackgroundSweepSupplier(Supplier<SweepConfig> runtimeConfig) {
-        this.runtimeConfigSupplier = runtimeConfig;
-    }
-
-    @Override
-    public boolean getAsBoolean() {
-        return runtimeConfigSupplier.get().enabled().orElse(false);
-    }
-}u}(jvt (8e383ff5530f7a77f005d2ff7e7e17df90fef15bjt Iatlasdb-config/src/main/java/com/palantir/atlasdb/config/SweepConfig.javajt modifiedjt Kjt Kjt Kjt https://github.com/palantir/atlasdb/blob/a732d2ad19db9312e9d3ef7b01079b81616c950d/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.javajt https://github.com/palantir/atlasdb/raw/a732d2ad19db9312e9d3ef7b01079b81616c950d/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.java?ref=a732d2ad19db9312e9d3ef7b01079b81616c950djt X  @@ -34,7 +34,10 @@ public abstract class SweepConfig {
      * If unspecified, AtlasDB will decide whether to run the background sweeper or not. This may depend on factors
      * elsewhere in configuration.
      */
-    public abstract Optional<Boolean> enabled();
+    @Value.Default
+    public boolean enabled() {
+        return false;
+    }
 
     // TODO handle live reload
     /**u}(jvt (299a6baf0f3a0a5cf0514c2639c49ba1a5475878jt Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javajt modifiedjt Kjt Kjt Kjt https://github.com/palantir/atlasdb/blob/a732d2ad19db9312e9d3ef7b01079b81616c950d/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajt https://github.com/palantir/atlasdb/raw/a732d2ad19db9312e9d3ef7b01079b81616c950d/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=a732d2ad19db9312e9d3ef7b01079b81616c950djt Xj  @@ -40,7 +40,6 @@
 import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
 import com.palantir.atlasdb.config.ImmutableAtlasDbConfig;
 import com.palantir.atlasdb.config.ServerListConfig;
-import com.palantir.atlasdb.config.ShouldRunBackgroundSweepSupplier;
 import com.palantir.atlasdb.config.SweepConfig;
 import com.palantir.atlasdb.config.TimeLockClientConfig;
 import com.palantir.atlasdb.config.TimeLockRequestBatcherProviders;
@@ -846,8 +845,7 @@ private static BackgroundSweeperImpl initializeSweepBackgroundProcess(
         BackgroundSweeperImpl backgroundSweeper = BackgroundSweeperImpl.create(
                 metricsManager,
                 sweepBatchConfigSource,
-                new ShouldRunBackgroundSweepSupplier(
-                        () -> runtimeConfigSupplier.get().sweep())::getAsBoolean,
+                () -> runtimeConfigSupplier.get().sweep().enabled(),
                 () -> runtimeConfigSupplier.get().sweep().sweepThreads(),
                 () -> runtimeConfigSupplier.get().sweep().pauseMillis(),
                 () -> runtimeConfigSupplier.get().sweep().sweepPriorityOverrides(),u}(jvt (5d339f0ca1b1d528743d2246718cc8b977604ba6jt Vatlasdb-config/src/test/java/com/palantir/atlasdb/config/AtlasDbRuntimeConfigTest.javajt modifiedjt K jt Kjt Kjt https://github.com/palantir/atlasdb/blob/a732d2ad19db9312e9d3ef7b01079b81616c950d/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.javajt https://github.com/palantir/atlasdb/raw/a732d2ad19db9312e9d3ef7b01079b81616c950d/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.java?ref=a732d2ad19db9312e9d3ef7b01079b81616c950djt X  @@ -21,18 +21,6 @@
 import org.junit.Test;
 
 public class AtlasDbRuntimeConfigTest {
-    @Test
-    public void configDoesNotSpecifySweepByDefault() {
-        AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.defaultRuntimeConfig();
-        assertThat(config.sweep().enabled()).isEmpty();
-    }
-
-    @Test
-    public void configWithoutSweepHasSweepDisabled() {
-        AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.withSweepDisabled();
-        assertThat(config.sweep().enabled()).contains(false);
-    }
-
     @Test
     public void configWithoutSpecifyingStreamPersistenceConfigHasDefaultConfig() {
         AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.defaultRuntimeConfig();u}(jvt (99709ed401e5f0d37ebfb9169ea783f5f6e19c95jt batlasdb-config/src/test/java/com/palantir/atlasdb/config/ShouldRunBackgroundSweepSupplierTest.javajt removedjt K jt Kfjt Kfjt https://github.com/palantir/atlasdb/blob/0e14f67617dd788589625ee19cec2170efae2ee4/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.javajt https://github.com/palantir/atlasdb/raw/0e14f67617dd788589625ee19cec2170efae2ee4/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.java?ref=0e14f67617dd788589625ee19cec2170efae2ee4jt X]  @@ -1,102 +0,0 @@
-/*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.config;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
-
-import com.palantir.atlasdb.sweep.queue.config.ImmutableTargetedSweepRuntimeConfig;
-import com.palantir.atlasdb.sweep.queue.config.TargetedSweepRuntimeConfig;
-import java.util.function.Supplier;
-import org.junit.Test;
-
-public class ShouldRunBackgroundSweepSupplierTest {
-
-    private static final TargetedSweepRuntimeConfig TARGETED_SWEEP_ENABLED =
-            ImmutableTargetedSweepRuntimeConfig.builder().enabled(true).build();
-    private static final TargetedSweepRuntimeConfig TARGETED_SWEEP_DISABLED =
-            ImmutableTargetedSweepRuntimeConfig.builder().enabled(false).build();
-
-    private static final SweepConfig BACKGROUND_SWEEP_ENABLED =
-            ImmutableSweepConfig.builder().enabled(true).build();
-    private static final SweepConfig BACKGROUND_SWEEP_UNSET = SweepConfig.defaultSweepConfig();
-    private static final SweepConfig BACKGROUND_SWEEP_DISABLED = SweepConfig.disabled();
-
-    @Test
-    public void disableBackgroundSweepIfBackgroundSweepExplicitlyDisabled() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_DISABLED))
-                .isFalse();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_DISABLED))
-                .isFalse();
-    }
-
-    @Test
-    public void enableBackgroundSweepIfBackgroundSweepExplicitlyEnabled() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_ENABLED))
-                .isTrue();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED))
-                .isTrue();
-    }
-
-    @Test
-    public void disableBackgroundSweepIfNotSet() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET))
-                .isFalse();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET))
-                .isFalse();
-    }
-
-    // Mock assignment known to be safe
-    // Direct mock invocation is safe here as we're using it as a convenient way to create a supplier
-    @SuppressWarnings({"unchecked", "DirectInvocationOnMock"})
-    @Test
-    public void liveReload() {
-        Supplier<AtlasDbRuntimeConfig> runtimeConfigSupplier = mock(Supplier.class);
-        when(runtimeConfigSupplier.get())
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET))
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET))
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED));
-
-        ShouldRunBackgroundSweepSupplier supplier = new ShouldRunBackgroundSweepSupplier(
-                () -> runtimeConfigSupplier.get().sweep());
-
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET")
-                .isFalse();
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET")
-                .isFalse();
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED")
-                .isTrue();
-    }
-
-    private static boolean runBackgroundSweep(TargetedSweepRuntimeConfig tsRuntime, SweepConfig bgSweepConfig) {
-        return new ShouldRunBackgroundSweepSupplier(
-                        () -> createRuntimeConfig(tsRuntime, bgSweepConfig).sweep())
-                .getAsBoolean();
-    }
-
-    private static AtlasDbRuntimeConfig createRuntimeConfig(
-            TargetedSweepRuntimeConfig targetedSweepRuntimeConfig, SweepConfig backgroundSweepConfig) {
-        return ImmutableAtlasDbRuntimeConfig.builder()
-                .targetedSweep(targetedSweepRuntimeConfig)
-                .sweep(backgroundSweepConfig)
-                .build();
-    }
-}u2     }(jvt (8998869ed08a7e30d96c016b7470e3e524faa8c5jt Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/BackgroundSweepThread.javajt modifiedjt Kjt K	jt Kjt https://github.com/palantir/atlasdb/blob/a732d2ad19db9312e9d3ef7b01079b81616c950d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.javajt https://github.com/palantir/atlasdb/raw/a732d2ad19db9312e9d3ef7b01079b81616c950d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.java?ref=a732d2ad19db9312e9d3ef7b01079b81616c950djt XB  @@ -39,6 +39,8 @@
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.TimeUnit;
+import java.util.function.BooleanSupplier;
+import java.util.function.LongSupplier;
 import java.util.function.Supplier;
 
 public class BackgroundSweepThread implements Runnable {
@@ -49,8 +51,8 @@ public class BackgroundSweepThread implements Runnable {
     private final SweepOutcomeMetrics sweepOutcomeMetrics;
     private final SpecificTableSweeper specificTableSweeper;
     private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-    private final Supplier<Long> sweepPauseMillis;
-    private final Supplier<Boolean> isSweepEnabled;
+    private final LongSupplier sweepPauseMillis;
+    private final BooleanSupplier isSweepEnabled;
     private final Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig;
     private final NextTableToSweepProvider nextTableToSweepProvider;
     private final CountDownLatch shuttingDown;
@@ -64,8 +66,8 @@ public static BackgroundSweepThread createForTests(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper,
             MetricsManager metricsManager) {
@@ -86,8 +88,8 @@ public static BackgroundSweepThread createForTests(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper,
             SweepOutcomeMetrics sweepOutcomeMetrics,
@@ -190,7 +192,7 @@ private Duration getSleepDuration(Optional<SweepOutcome> maybeOutcome) {
         return maybeOutcome
                 .flatMap(outcome -> {
                     if (outcome == SweepOutcome.SUCCESS) {
-                        return Optional.of(Duration.ofMillis(sweepPauseMillis.get()));
+                        return Optional.of(Duration.ofMillis(sweepPauseMillis.getAsLong()));
                     } else if (outcome == SweepOutcome.NOTHING_TO_SWEEP) {
                         return Optional.of(getBackoffTimeWhenNothingToSweep());
                     } else {
@@ -202,7 +204,7 @@ private Duration getSleepDuration(Optional<SweepOutcome> maybeOutcome) {
 
     @VisibleForTesting
     Optional<SweepOutcome> checkConfigAndRunSweep(SingleLockService locks) throws InterruptedException {
-        if (isSweepEnabled.get()) {
+        if (isSweepEnabled.getAsBoolean()) {
             return Optional.of(grabLocksAndRun(locks));
         }
 
@@ -233,7 +235,7 @@ private SweepOutcome grabLocksAndRun(SingleLockService locks) throws Interrupted
     }
 
     private Duration getBackoffTimeWhenSweepHasNotRun() {
-        return Duration.ofMillis(sweepPauseMillis.get()).plusSeconds(1).multipliedBy(20); // 2 minutes by default
+        return Duration.ofMillis(sweepPauseMillis.getAsLong()).plusSeconds(1).multipliedBy(20); // 2 minutes by default
     }
 
     private Duration getBackoffTimeWhenNothingToSweep() {u}(jvt (44bc31882603500ba427d3970ff3730e2b7b3a21jt Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/BackgroundSweeperImpl.javajt modifiedjt K
jt K
jt Kjt https://github.com/palantir/atlasdb/blob/a732d2ad19db9312e9d3ef7b01079b81616c950d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.javajt https://github.com/palantir/atlasdb/raw/a732d2ad19db9312e9d3ef7b01079b81616c950d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.java?ref=a732d2ad19db9312e9d3ef7b01079b81616c950djt X  @@ -27,6 +27,9 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
+import java.util.function.BooleanSupplier;
+import java.util.function.IntSupplier;
+import java.util.function.LongSupplier;
 import java.util.function.Supplier;
 
 public final class BackgroundSweeperImpl implements BackgroundSweeper, AutoCloseable {
@@ -35,16 +38,16 @@ public final class BackgroundSweeperImpl implements BackgroundSweeper, AutoClose
     private static final long MAX_DAEMON_CLEAN_SHUTDOWN_TIME_MILLIS = 10_000;
 
     // Thread management
-    private final Supplier<Integer> sweepThreads;
+    private final IntSupplier sweepThreads;
     private Set<Thread> daemons;
     private final CountDownLatch shuttingDown = new CountDownLatch(1);
 
     // Shared between threads
     private final LockService lockService;
     private final NextTableToSweepProvider nextTableToSweepProvider;
     private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-    private final Supplier<Boolean> isSweepEnabled;
-    private final Supplier<Long> sweepPauseMillis;
+    private final BooleanSupplier isSweepEnabled;
+    private final LongSupplier sweepPauseMillis;
     private final Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig;
     private final SpecificTableSweeper specificTableSweeper;
     private final SweepOutcomeMetrics sweepOutcomeMetrics;
@@ -54,9 +57,9 @@ private BackgroundSweeperImpl(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Integer> sweepThreads,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            IntSupplier sweepThreads,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper) {
         this.sweepOutcomeMetrics = SweepOutcomeMetrics.registerLegacy(metricsManager);
@@ -73,9 +76,9 @@ private BackgroundSweeperImpl(
     public static BackgroundSweeperImpl create(
             MetricsManager metricsManager,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Integer> sweepThreads,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            IntSupplier sweepThreads,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper) {
         NextTableToSweepProvider nextTableToSweepProvider = NextTableToSweepProvider.create(
@@ -98,7 +101,7 @@ public static BackgroundSweeperImpl create(
     @Override
     public synchronized void runInBackground() {
         Preconditions.checkState(daemons == null);
-        int numThreads = sweepThreads.get();
+        int numThreads = sweepThreads.getAsInt();
         daemons = Sets.newHashSetWithExpectedSize(numThreads);
 
         for (int idx = 1; idx <= numThreads; idx++) {ueu(6a3c97dc4b7d892b941b13ee16a423c2a7d28bcf}(sha(6a3c97dc4b7d892b941b13ee16a423c2a7d28bcfnode_idEC_kwDOAjP5fdoAKDZhM2M5N2RjNGI3ZDg5MmI5NDFiMTNlZTE2YTQyM2MyYTdkMjhiY2Ycommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-08-15T18:54:15Zu	committer}(j%u David Schlosnaglej'u davids@palantir.comj)u 2023-08-17T13:06:30Zumessagejmh 1.37tree}(ju (2a5c7212184925b43c6ed735af5023deb966f5baurl`https://api.github.com/repos/palantir/atlasdb/git/trees/2a5c7212184925b43c6ed735af5023deb966f5bauj5u bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6a3c97dc4b7d892b941b13ee16a423c2a7d28bcf
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmTeG1YACgkQR9hsJ74Q
0l9qCQf/ZIN7Yhxrpl+iTBLei/UY1p8zkjkUoB92qjV8TRhBPwyk0jR/1lnzG8Mh
7tXw4KfwW+W9t04t+ISmOMCCGGeB0ypun+MkTuairiIN78tuJyMSFcq2R9tjIejt
HqDJPrmp3gxqz+yYsLHNWuWN2lVXhPD/E8G7XQdyjvOcDCKAU/HbtpC4Bowzfs2t
l/yfGrhhMeNMXqeDGT0yJ7hi6/QD7yuapUXp3cIDpCFIrIBTKdyWuGR3xPxC/xMc
d1KIyyWMydgxcSipf7X3UmTO8alQN8SQ/U195Ki78DNHYFSD2bZp8y3RHuBz/zpf
KiKpZKXxum+16IXMLNqkLjhf9OYJjQ==
=Kdxz
-----END PGP SIGNATURE-----payloadtree 2a5c7212184925b43c6ed735af5023deb966f5ba
parent d8ba2e317e25e958b7eb5c9a0c7a279378d73125
author David Schlosnagle <davids@palantir.com> 1692125655 -0400
committer David Schlosnagle <davids@palantir.com> 1692277590 -0400

jmh 1.37
uuj5u ^https://api.github.com/repos/palantir/atlasdb/commits/6a3c97dc4b7d892b941b13ee16a423c2a7d28bcfhtml_urlShttps://github.com/palantir/atlasdb/commit/6a3c97dc4b7d892b941b13ee16a423c2a7d28bcfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6a3c97dc4b7d892b941b13ee16a423c2a7d28bcf/commentsj#u }(loginschlosnaidMBju MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j5u %https://api.github.com/users/schlosnajCu https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj+u }(jHu schlosnajJu MBju MDQ6VXNlcjU0NTk0jLu 1https://avatars.githubusercontent.com/u/54594?v=4jNu h5j5u %https://api.github.com/users/schlosnajCu https://github.com/schlosnajQu /https://api.github.com/users/schlosna/followersjSu <https://api.github.com/users/schlosna/following{/other_user}jUu 5https://api.github.com/users/schlosna/gists{/gist_id}jWu <https://api.github.com/users/schlosna/starred{/owner}{/repo}jYu 3https://api.github.com/users/schlosna/subscriptionsj[u *https://api.github.com/users/schlosna/orgsj]u +https://api.github.com/users/schlosna/reposj_u 6https://api.github.com/users/schlosna/events{/privacy}jau 5https://api.github.com/users/schlosna/received_eventsjcu Userjeu uparents]}(ju (d8ba2e317e25e958b7eb5c9a0c7a279378d73125j5u ^https://api.github.com/repos/palantir/atlasdb/commits/d8ba2e317e25e958b7eb5c9a0c7a279378d73125jCu Shttps://github.com/palantir/atlasdb/commit/d8ba2e317e25e958b7eb5c9a0c7a279378d73125uastats}(totalK	additionsK	deletionsKufiles](}(ju (464c7cb97ec6a01bce707f1c08fceca3dcb3c390filename
versions.lockstatusmodifiedju Kju KchangesKblob_url_https://github.com/palantir/atlasdb/blob/6a3c97dc4b7d892b941b13ee16a423c2a7d28bcf/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/6a3c97dc4b7d892b941b13ee16a423c2a7d28bcf/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=6a3c97dc4b7d892b941b13ee16a423c2a7d28bcfpatchX  @@ -213,7 +213,7 @@ org.antlr:ST4:4.0.8 (1 constraints: 96073c6c)
 org.antlr:antlr:3.5.2 (1 constraints: 980f7c88)
 org.antlr:antlr-runtime:3.5.2 (3 constraints: 781d0aae)
 org.apache.commons:commons-lang3:3.13.0 (8 constraints: b873faad)
-org.apache.commons:commons-math3:3.2 (2 constraints: 90196ff8)
+org.apache.commons:commons-math3:3.6.1 (2 constraints: f319372c)
 org.apache.commons:commons-pool2:2.11.1 (1 constraints: 3705333b)
 org.apache.commons:commons-text:1.10.0 (2 constraints: e8155ec0)
 org.apache.httpcomponents.client5:httpclient5:5.2.1 (2 constraints: d518b1c3)
@@ -295,8 +295,8 @@ org.mindrot:jbcrypt:0.4 (2 constraints: 4714f171)
 org.mockito:mockito-core:5.3.1 (2 constraints: 26166bfc)
 org.mpierce.metrics.reservoir:hdrhistogram-metrics-reservoir:1.1.3 (1 constraints: 0d10f991)
 org.objenesis:objenesis:3.3 (2 constraints: c71412ab)
-org.openjdk.jmh:jmh-core:1.36 (2 constraints: f51525d9)
-org.openjdk.jmh:jmh-generator-annprocess:1.36 (1 constraints: de04fb30)
+org.openjdk.jmh:jmh-core:1.37 (2 constraints: f71557d9)
+org.openjdk.jmh:jmh-generator-annprocess:1.37 (1 constraints: df04fc30)
 org.ow2.asm:asm:7.1 (4 constraints: d71f9495)
 org.ow2.asm:asm-analysis:5.0.3 (1 constraints: ee09d4b2)
 org.ow2.asm:asm-commons:5.0.3 (1 constraints: ee09d4b2)u}(ju (bb1a7a0bce60fe8a34b95276462425c83fbc4575ju versions.propsju modifiedju Kju Kju Kju `https://github.com/palantir/atlasdb/blob/6a3c97dc4b7d892b941b13ee16a423c2a7d28bcf/versions.propsju _https://github.com/palantir/atlasdb/raw/6a3c97dc4b7d892b941b13ee16a423c2a7d28bcf/versions.propsju rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=6a3c97dc4b7d892b941b13ee16a423c2a7d28bcfju X  @@ -74,7 +74,7 @@ org.jdbi:* = 3.30.0
 org.jmock:jmock* = 2.12.0
 org.mindrot:jbcrypt = 0.4
 org.mockito:* = 5.3.1
-org.openjdk.jmh:* = 1.36
+org.openjdk.jmh:* = 1.37
 org.reflections:reflections = 0.10.2
 org.rocksdb:rocksdbjni = 8.3.2
 org.slf4j:* = 1.7.36ueu(7d2efb3f76f33e8705149127e1efca9122ed75fd}(sha(7d2efb3f76f33e8705149127e1efca9122ed75fdnode_idEC_kwDOAjP5fdoAKDdkMmVmYjNmNzZmMzNlODcwNTE0OTEyN2UxZWZjYTkxMjJlZDc1ZmQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-02T10:49:33Zu	committer}(ju 
Sam Kramerju skramer@palantir.comju 2023-05-02T10:50:41Zumessageadd buggify classestree}(ju (a88834cdbfdf3621b4eb15cc5a928b4b3b92c350url`https://api.github.com/repos/palantir/atlasdb/git/trees/a88834cdbfdf3621b4eb15cc5a928b4b3b92c350uju bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7d2efb3f76f33e8705149127e1efca9122ed75fd
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRQ6wIACgkQmPPOpKR4
XS2fPggAnfONAHINSQ/Ubzv8uoc1SVXSpXLI8AdbJGZVeUqqFGUT9CgFvOk73vTw
j+gn6G99FKeHiJDqSLJuEs25/g4UdI+Q79uzi1Tuvxa9FcQ2eCUl0eE2VjcGi65a
B7UWaLcmjem7G3uy7sRJ3vY9TKTH3PLDpsEy9B5xUw2kyKcHuWON+EdMc/Ikki5o
W1IQLXzCSv36rwPluX7Sem8y7VaTRpR13I0+UGEwkZpPogfmmxfZwAYnudxPEkEc
kJ93+fLT3ckUg3j3wKw+R6s6PpzlVnogdbhJ7ldyuakoc0f9uXtyS0irylBChlWt
QQQssMC2nHjrEDVHfLJoLREnKl76bA==
=jkDJ
-----END PGP SIGNATURE-----payloadtree a88834cdbfdf3621b4eb15cc5a928b4b3b92c350
parent 1706eca35a3b85f5cb50de049ae43cb837bf9eaa
author Sam Kramer <skramer@palantir.com> 1683024573 +0100
committer Sam Kramer <skramer@palantir.com> 1683024641 +0100

add buggify classes
uuju ^https://api.github.com/repos/palantir/atlasdb/commits/7d2efb3f76f33e8705149127e1efca9122ed75fdhtml_urlShttps://github.com/palantir/atlasdb/commit/7d2efb3f76f33e8705149127e1efca9122ed75fdcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7d2efb3f76f33e8705149127e1efca9122ed75fd/commentsju }(login
Sam-KrameridJ^2_ ju MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5ju 'https://api.github.com/users/Sam-Kramerju https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuju }(ju 
Sam-Kramerju J^2_ ju MDQ6VXNlcjYyMzg4MTQ=ju 3https://avatars.githubusercontent.com/u/6238814?v=4ju h5ju 'https://api.github.com/users/Sam-Kramerju https://github.com/Sam-Kramerju 1https://api.github.com/users/Sam-Kramer/followersju >https://api.github.com/users/Sam-Kramer/following{/other_user}ju 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}ju >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}ju 5https://api.github.com/users/Sam-Kramer/subscriptionsju ,https://api.github.com/users/Sam-Kramer/orgsju -https://api.github.com/users/Sam-Kramer/reposju 8https://api.github.com/users/Sam-Kramer/events{/privacy}ju 7https://api.github.com/users/Sam-Kramer/received_eventsju Userju uparents]}(ju (1706eca35a3b85f5cb50de049ae43cb837bf9eaaju ^https://api.github.com/repos/palantir/atlasdb/commits/1706eca35a3b85f5cb50de049ae43cb837bf9eaaju Shttps://github.com/palantir/atlasdb/commit/1706eca35a3b85f5cb50de049ae43cb837bf9eaauastats}(totalK	additionsKV	deletionsK0ufiles](}(ju (c8f5ec6d41d45b1db43cb98d871dd8aaff4fbe06filenameatlasdb-buggify/build.gradlestatusmodifiedju K ju KchangesKblob_urlphttps://github.com/palantir/atlasdb/blob/7d2efb3f76f33e8705149127e1efca9122ed75fd/atlasdb-buggify%2Fbuild.gradleraw_urlohttps://github.com/palantir/atlasdb/raw/7d2efb3f76f33e8705149127e1efca9122ed75fd/atlasdb-buggify%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fbuild.gradle?ref=7d2efb3f76f33e8705149127e1efca9122ed75fdpatchX"  @@ -2,38 +2,11 @@
 apply from: "../gradle/shared.gradle"
 
 dependencies {
-    implementation project(":atlasdb-commons")
-    implementation 'com.lmax:disruptor'
-    implementation 'com.palantir.safe-logging:safe-logging'
-    implementation 'com.palantir.tritium:tritium-registry'
-
-    implementation 'com.google.errorprone:error_prone_annotations'
     implementation 'com.google.guava:guava'
-    implementation 'com.palantir.safe-logging:preconditions'
-    implementation 'com.palantir.tracing:tracing'
-    implementation 'io.dropwizard.metrics:metrics-core'
-    implementation 'org.slf4j:slf4j-api'
-    implementation project(':commons-executors')
-
-    testImplementation 'com.google.errorprone:error_prone_annotations'
-    testImplementation 'com.google.guava:guava'
-    testImplementation 'com.palantir.tracing:tracing'
-    testImplementation 'io.dropwizard.metrics:metrics-core'
-
-    annotationProcessor project(":atlasdb-processors")
-    compileOnly project(":atlasdb-processors")
-    annotationProcessor 'org.immutables:value'
-    compileOnly 'org.immutables:value::annotations'
-
-    testAnnotationProcessor 'org.immutables:value'
-    testCompileOnly 'org.immutables:value::annotations'
-
     testImplementation 'junit:junit'
     testImplementation 'org.assertj:assertj-core'
-    testImplementation 'org.awaitility:awaitility'
     testImplementation('org.jmock:jmock') {
       exclude group: 'org.hamcrest'
     }
     testImplementation 'org.mockito:mockito-core'
-    testImplementation 'com.palantir.tracing:tracing-test-utils'
 }u}(ju (eb937e8c1d898695b25395e783333993709c5c28jv Katlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/Buggify.javajv modifiedju Kju Kjv Kj	v https://github.com/palantir/atlasdb/blob/7d2efb3f76f33e8705149127e1efca9122ed75fd/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javajv https://github.com/palantir/atlasdb/raw/7d2efb3f76f33e8705149127e1efca9122ed75fd/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaj
v https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.java?ref=7d2efb3f76f33e8705149127e1efca9122ed75fdjv @@ -28,5 +28,5 @@ public interface Buggify {
     /**
      * Potentially map the provided value to a different value.
      */
-    <T> map(T initialValue, Function<T, T> mapFunction);
+    <T> T map(T initialValue, Function<T, T> mapFunction);
 }u}(ju (1dd56cbc135bee5e5842d481b8d8c14ff6aee41ejv Ratlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/BuggifyFactory.javajv modifiedju Kju Kjv Kj	v https://github.com/palantir/atlasdb/blob/7d2efb3f76f33e8705149127e1efca9122ed75fd/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javajv https://github.com/palantir/atlasdb/raw/7d2efb3f76f33e8705149127e1efca9122ed75fd/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj
v https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.java?ref=7d2efb3f76f33e8705149127e1efca9122ed75fdjv X  @@ -18,12 +18,12 @@
 
 public interface BuggifyFactory {
     /**
-     * @return a Buggify instance that will be used to determine whether to inject bugs.
+     * A Buggify instance that will may or may not run the provided runnable.
      */
     Buggify maybe(double probability);
 
     /**
-     * @return a Buggify instance that will always run the provided runnable.
+     * A Buggify instance that will always run the provided runnable.
      */
     Buggify always();
 }u}(ju (d60fbb6381653cc31e924f46848dcfed40896b42jv Satlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggify.javajv modifiedju Kju Kjv Kj	v https://github.com/palantir/atlasdb/blob/7d2efb3f76f33e8705149127e1efca9122ed75fd/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javajv https://github.com/palantir/atlasdb/raw/7d2efb3f76f33e8705149127e1efca9122ed75fd/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javaj
v https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.java?ref=7d2efb3f76f33e8705149127e1efca9122ed75fdjv X  @@ -18,7 +18,6 @@
 
 import com.palantir.atlasdb.buggify.api.Buggify;
 import java.util.function.Function;
-import java.util.function.Supplier;
 
 public enum DefaultBuggify implements Buggify {
     INSTANCE;
@@ -29,7 +28,7 @@ public void run(Runnable runnable) {
     }
 
     @Override
-    public <T> map(T initialValue, Function<T, T> mapFunction) {
-        return value.get();
+    public <T> T map(T initialValue, Function<T, T> mapFunction) {
+        return mapFunction.apply(initialValue);
     }
 }u}(ju (e2f15915783f5b7c689924f48008cc5fc82d0980jv Zatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactory.javajv modifiedju Kju Kjv Kj	v https://github.com/palantir/atlasdb/blob/7d2efb3f76f33e8705149127e1efca9122ed75fd/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javajv https://github.com/palantir/atlasdb/raw/7d2efb3f76f33e8705149127e1efca9122ed75fd/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj
v https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.java?ref=7d2efb3f76f33e8705149127e1efca9122ed75fdjv X  @@ -16,18 +16,31 @@
 
 package com.palantir.atlasdb.buggify.impl;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.buggify.api.Buggify;
 import com.palantir.atlasdb.buggify.api.BuggifyFactory;
 import java.security.SecureRandom;
+import java.util.function.Supplier;
 
-public enum DefaultBuggifyFactory implements BuggifyFactory {
-    INSTANCE;
-
+public final class DefaultBuggifyFactory implements BuggifyFactory {
     private static final SecureRandom SECURE_RANDOM = new SecureRandom();
 
+    private final Supplier<Double> probabilitySupplier;
+
+    public static final BuggifyFactory INSTANCE = new DefaultBuggifyFactory();
+
+    @VisibleForTesting
+    DefaultBuggifyFactory(Supplier<Double> probabilitySupplier) {
+        this.probabilitySupplier = probabilitySupplier;
+    }
+
+    private DefaultBuggifyFactory() {
+        this(SECURE_RANDOM::nextDouble);
+    }
+
     @Override
     public Buggify maybe(double probability) {
-        if (probability <= SECURE_RANDOM.nextDouble()) {
+        if (probability <= probabilitySupplier.get()) {
             return NoOpBuggify.INSTANCE;
         }
         return DefaultBuggify.INSTANCE;u}(ju (78910b9ab45e6b3030cd1dfd7c9c1dd4ae6565aejv Patlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggify.javajv modifiedju Kju Kjv Kj	v https://github.com/palantir/atlasdb/blob/7d2efb3f76f33e8705149127e1efca9122ed75fd/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javajv https://github.com/palantir/atlasdb/raw/7d2efb3f76f33e8705149127e1efca9122ed75fd/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javaj
v https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.java?ref=7d2efb3f76f33e8705149127e1efca9122ed75fdjv X.  @@ -28,7 +28,7 @@ public void run(Runnable _runnable) {
     }
 
     @Override
-    public <T> map(T initialValue, Function<T, T> mapFunction) {
-        return mapFunction.apply(initialValue);
+    public <T> T map(T initialValue, Function<T, T> mapFunction) {
+        return initialValue;
     }
 }u}(ju (c35b20dfdb4a35f11f695be09191251ae3f64c59jv ^atlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactoryTest.javajv addedju K0ju K jv K0j	v https://github.com/palantir/atlasdb/blob/7d2efb3f76f33e8705149127e1efca9122ed75fd/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javajv https://github.com/palantir/atlasdb/raw/7d2efb3f76f33e8705149127e1efca9122ed75fd/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj
v https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.java?ref=7d2efb3f76f33e8705149127e1efca9122ed75fdjv X  @@ -0,0 +1,48 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import org.junit.Test;
+
+public class DefaultBuggifyFactoryTest {
+    @Test
+    public void alwaysReturnsDefaultBuggify() {
+        assertThat(DefaultBuggifyFactory.INSTANCE.always()).isSameAs(DefaultBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsDefaultWhenMaxProbability() {
+        assertThat(DefaultBuggifyFactory.INSTANCE.maybe(1.0)).isSameAs(DefaultBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsNoOpWhenNeverProbability() {
+        assertThat(DefaultBuggifyFactory.INSTANCE.maybe(0.0)).isSameAs(NoOpBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsNoOpWhenBelowOrEqualToProbability() {
+        assertThat(new DefaultBuggifyFactory(() -> 0.50).maybe(0.50)).isSameAs(NoOpBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsDefaultWhenAboveProbability() {
+        assertThat(new DefaultBuggifyFactory(() -> 0.49).maybe(0.50)).isSameAs(DefaultBuggify.INSTANCE);
+    }
+}u}(ju (dec9104e792ddff0e6e1ae3e1311968ca6874914jv Watlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyTest.javajv modifiedju Kju Kjv K	j	v https://github.com/palantir/atlasdb/blob/7d2efb3f76f33e8705149127e1efca9122ed75fd/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javajv https://github.com/palantir/atlasdb/raw/7d2efb3f76f33e8705149127e1efca9122ed75fd/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj
v https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.java?ref=7d2efb3f76f33e8705149127e1efca9122ed75fdjv X  @@ -19,7 +19,7 @@
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.verify;
 
-import java.util.function.Supplier;
+import java.util.function.Function;
 import org.junit.Test;
 
 public class DefaultBuggifyTest {
@@ -32,8 +32,9 @@ public void runAlwaysExecutes() {
 
     @Test
     public void mapAlwaysCallsSupplier() {
-        Supplier<Object> value = mock(Supplier.class);
-        DefaultBuggify.INSTANCE.map(value);
-        verify(value).get();
+        Function<Object, Object> value = mock(Function.class);
+        Object object = new Object();
+        DefaultBuggify.INSTANCE.map(object, value);
+        verify(value).apply(object);
     }
 }u}(ju (951466fa2eb1b44001eadb9d358f85ab91f6e8b3jv Tatlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyTest.javajv modifiedju K	ju Kjv Kj	v https://github.com/palantir/atlasdb/blob/7d2efb3f76f33e8705149127e1efca9122ed75fd/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javajv https://github.com/palantir/atlasdb/raw/7d2efb3f76f33e8705149127e1efca9122ed75fd/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj
v https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.java?ref=7d2efb3f76f33e8705149127e1efca9122ed75fdjv X  @@ -16,11 +16,13 @@
 
 package com.palantir.atlasdb.buggify.impl;
 
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.verify;
 
-import java.util.function.Supplier;
+import java.util.function.Function;
 import org.junit.Test;
 
 public class NoOpBuggifyTest {
@@ -32,9 +34,11 @@ public void runNeverExecutes() {
     }
 
     @Test
-    public void mapNeverCallsSupplier() {
-        Supplier<Object> value = mock(Supplier.class);
-        NoOpBuggify.INSTANCE.map(value);
-        verify(value, never()).get();
+    public void mapNeverCallsFunction() {
+        Function<Object, Object> value = mock(Function.class);
+        Object object = new Object();
+        Object mappedObject = NoOpBuggify.INSTANCE.map(object, value);
+        assertThat(object).isEqualTo(mappedObject);
+        verify(value, never()).apply(any());
     }
 }ueu(0980cb8cc1c47d03fc40dce531798fe558fdb4b7}(sha(0980cb8cc1c47d03fc40dce531798fe558fdb4b7node_idEC_kwDOAjP5fdoAKDA5ODBjYjhjYzFjNDdkMDNmYzQwZGNlNTMxNzk4ZmU1NThmZGI0Yjccommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-13T14:09:35Zu	committer}(j[v 	Tom Papkej]v tpapke@palantir.comj_v 2023-07-18T15:17:22ZumessageAdd putWithMetadata and deleteWithMetadata to the transaction interface
Store metadata in atomic fashion with value
Attach metadata to lock descriptors, propagating to row level for row lockstree}(jSv (4818bf0445417e4fd70896a7f294ae02257e013burl`https://api.github.com/repos/palantir/atlasdb/git/trees/4818bf0445417e4fd70896a7f294ae02257e013bujkv bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0980cb8cc1c47d03fc40dce531798fe558fdb4b7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS2rQIACgkQmF9s0kaF
Iw1VKgf+KYztibX0vbIU4TJhVIKTLhqDQEZpxiKDKKmiEtl79QVk6LrjOl6Qrwj1
PcTCaEv5UBChuyDOoAU0c44j3SpKf4WJlpB6VyeUgNR2FxxgT827/B7QInxicAp5
ynOu1bgHNjsU6+SI+svYJsJNwZX/NvUq8vIQTBqDfq8SDs/zMdrCS3o+sNhElNEm
YeJQHjND3Gm8QQjUPrUvSJcfp0LyVyQdHMQLxOjKfY2cjDl2UBCii9BeOPZkXj5J
y56inatX9vY5A3j5vW7XfVERgrEju0XF3NzyYmxUn54kVMtp5Hat0BPmICV/Pu3A
ww3BwUFgAFyl6kjjtG+utedDsnQLeA==
=crAK
-----END PGP SIGNATURE-----payloadX  tree 4818bf0445417e4fd70896a7f294ae02257e013b
parent 7e0e841143aefa1be36bb797e74282d75505a61b
author Tom Papke <tpapke@palantir.com> 1689257375 +0100
committer Tom Papke <tpapke@palantir.com> 1689693442 +0100

Add putWithMetadata and deleteWithMetadata to the transaction interface
Store metadata in atomic fashion with value
Attach metadata to lock descriptors, propagating to row level for row locks
uujkv ^https://api.github.com/repos/palantir/atlasdb/commits/0980cb8cc1c47d03fc40dce531798fe558fdb4b7html_urlShttps://github.com/palantir/atlasdb/commit/0980cb8cc1c47d03fc40dce531798fe558fdb4b7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0980cb8cc1c47d03fc40dce531798fe558fdb4b7/commentsjYv }(login	ToemmscheidJbojUv MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jkv &https://api.github.com/users/Toemmschejyv https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujav }(j~v 	Toemmschejv JbojUv MDQ6VXNlcjQzNjc1NDkwjv 4https://avatars.githubusercontent.com/u/43675490?v=4jv h5jkv &https://api.github.com/users/Toemmschejyv https://github.com/Toemmschejv 0https://api.github.com/users/Toemmsche/followersjv =https://api.github.com/users/Toemmsche/following{/other_user}jv 6https://api.github.com/users/Toemmsche/gists{/gist_id}jv =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jv 4https://api.github.com/users/Toemmsche/subscriptionsjv +https://api.github.com/users/Toemmsche/orgsjv ,https://api.github.com/users/Toemmsche/reposjv 7https://api.github.com/users/Toemmsche/events{/privacy}jv 6https://api.github.com/users/Toemmsche/received_eventsjv Userjv uparents]}(jSv (7e0e841143aefa1be36bb797e74282d75505a61bjkv ^https://api.github.com/repos/palantir/atlasdb/commits/7e0e841143aefa1be36bb797e74282d75505a61bjyv Shttps://github.com/palantir/atlasdb/commit/7e0e841143aefa1be36bb797e74282d75505a61buastats}(totalM	additionsM	deletionsK ufiles](}(jSv (d50f78a2d85c67847f9a7d90dce73e02eb1332e9filename`atlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/ChangeMetadataAnnotatedValue.javastatusaddedjv K!jv K changesK!blob_urlhttps://github.com/palantir/atlasdb/blob/0980cb8cc1c47d03fc40dce531798fe558fdb4b7/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FChangeMetadataAnnotatedValue.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0980cb8cc1c47d03fc40dce531798fe558fdb4b7/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FChangeMetadataAnnotatedValue.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FChangeMetadataAnnotatedValue.java?ref=0980cb8cc1c47d03fc40dce531798fe558fdb4b7patchXu  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api;
+
+import com.palantir.lock.watch.ChangeMetadata;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ChangeMetadataAnnotatedValue {
+    @Value.Parameter
+    byte[] value();
+
+    @Value.Parameter
+    ChangeMetadata metadata();
+
+    static ChangeMetadataAnnotatedValue of(byte[] value, ChangeMetadata metadata) {
+        return ImmutableChangeMetadataAnnotatedValue.of(value, metadata);
+    }
+}u}(jSv (794a2bbe82daf722ba6aa18293460488a20768ccjv Oatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/Transaction.javajv modifiedjv Kjv K jv Kjv https://github.com/palantir/atlasdb/blob/0980cb8cc1c47d03fc40dce531798fe558fdb4b7/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javajv https://github.com/palantir/atlasdb/raw/0980cb8cc1c47d03fc40dce531798fe558fdb4b7/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javajv https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.java?ref=0980cb8cc1c47d03fc40dce531798fe558fdb4b7jv X  @@ -27,6 +27,7 @@
 import com.palantir.atlasdb.transaction.service.TransactionService;
 import com.palantir.common.annotation.Idempotent;
 import com.palantir.common.base.BatchingVisitable;
+import com.palantir.lock.watch.ChangeMetadata;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
@@ -271,6 +272,18 @@ Stream<BatchingVisitable<RowResult<byte[]>>> getRangesLazy(
     @Idempotent
     void put(TableReference tableRef, Map<Cell, byte[]> values);
 
+    /**
+     * Behaves like {@link Transaction#put}, but additionally store {@link ChangeMetadata} for cells. This metadata is
+     * forwarded to TimeLock when acquiring locks at the beginning of the commit protocol.
+     * If two cells in the same row have metadata and the {@link ConflictHandler} for the table acquires row locks,
+     * {@link Transaction#commit} will fail.
+     *
+     * @param tableRef the table into which to put the values and metadata
+     * @param metadataAnnotatedValues the metadata-enriched values to append to the table
+     */
+    @Idempotent
+    void putWithMetadata(TableReference tableRef, Map<Cell, ChangeMetadataAnnotatedValue> metadataAnnotatedValues);
+
     /**
      * Deletes values from the key-value store.
      * @param tableRef the table from which to delete the values
@@ -279,6 +292,19 @@ Stream<BatchingVisitable<RowResult<byte[]>>> getRangesLazy(
     @Idempotent
     void delete(TableReference tableRef, Set<Cell> keys);
 
+    /**
+     * Behaves like {@link Transaction#delete}, but additionally stores {@link ChangeMetadata} for the deleted cells.
+     * This metadata is forwarded to TimeLock when acquiring locks at the beginning of the commit protocol.
+     * If two cells in the same row have metadata and the {@link ConflictHandler} for the table acquires row locks,
+     * {@link Transaction#commit} will fail.
+     *
+     * @param tableRef the table from which to delete the values and for which to store metadata
+     * @param keysWithMetadata the cells to delete associated with the metadata that should be stored for
+     * them
+     */
+    @Idempotent
+    void deleteWithMetadata(TableReference tableRef, Map<Cell, ChangeMetadata> keysWithMetadata);
+
     @Idempotent
     TransactionType getTransactionType();
 u}(jSv (09d7ecb62dcf8931fb445db3202aa66742c0495djv ]atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingTransaction.javajv modifiedjv K
jv K jv K
jv https://github.com/palantir/atlasdb/blob/0980cb8cc1c47d03fc40dce531798fe558fdb4b7/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.javajv https://github.com/palantir/atlasdb/raw/0980cb8cc1c47d03fc40dce531798fe558fdb4b7/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.javajv https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.java?ref=0980cb8cc1c47d03fc40dce531798fe558fdb4b7jv XH  @@ -24,13 +24,15 @@
 import com.palantir.atlasdb.keyvalue.api.RangeRequest;
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.ChangeMetadataAnnotatedValue;
 import com.palantir.atlasdb.transaction.api.ConstraintCheckable;
 import com.palantir.atlasdb.transaction.api.GetRangesQuery;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionFailedException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 import com.palantir.common.base.BatchingVisitable;
+import com.palantir.lock.watch.ChangeMetadata;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
@@ -127,11 +129,22 @@ public void put(TableReference tableRef, Map<Cell, byte[]> values) {
         delegate().put(tableRef, values);
     }
 
+    @Override
+    public void putWithMetadata(
+            TableReference tableRef, Map<Cell, ChangeMetadataAnnotatedValue> metadataAnnotatedValues) {
+        delegate().putWithMetadata(tableRef, metadataAnnotatedValues);
+    }
+
     @Override
     public void delete(TableReference tableRef, Set<Cell> keys) {
         delegate().delete(tableRef, keys);
     }
 
+    @Override
+    public void deleteWithMetadata(TableReference tableRef, Map<Cell, ChangeMetadata> keys) {
+        delegate().deleteWithMetadata(tableRef, keys);
+    }
+
     @Override
     public void abort() {
         delegate().abort();u}(jSv (0c16f6097c67e58ed5999fd67ff9d4ea3f526d24jv `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javajv modifiedjv Kjv Kjv Kjv https://github.com/palantir/atlasdb/blob/0980cb8cc1c47d03fc40dce531798fe558fdb4b7/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajv https://github.com/palantir/atlasdb/raw/0980cb8cc1c47d03fc40dce531798fe558fdb4b7/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajv https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=0980cb8cc1c47d03fc40dce531798fe558fdb4b7jv X7  @@ -83,6 +83,7 @@
 import com.palantir.atlasdb.tracing.TraceStatistics;
 import com.palantir.atlasdb.transaction.TransactionConfig;
 import com.palantir.atlasdb.transaction.api.AtlasDbConstraintCheckingMode;
+import com.palantir.atlasdb.transaction.api.ChangeMetadataAnnotatedValue;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.transaction.api.ConstraintCheckable;
 import com.palantir.atlasdb.transaction.api.ConstraintCheckingTransaction;
@@ -131,8 +132,11 @@
 import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.v2.TimelockService;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.Unsafe;
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
@@ -158,7 +162,6 @@
 import java.util.List;
 import java.util.Map;
 import java.util.NavigableMap;
-import java.util.NavigableSet;
 import java.util.NoSuchElementException;
 import java.util.Objects;
 import java.util.Optional;
@@ -174,6 +177,7 @@
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.RejectedExecutionException;
 import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicLong;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.function.BiFunction;
@@ -247,6 +251,8 @@ private enum State {
 
     protected final ConcurrentMap<TableReference, ConcurrentNavigableMap<Cell, byte[]>> writesByTable =
             new ConcurrentHashMap<>();
+    protected final ConcurrentMap<TableReference, ConcurrentNavigableMap<Cell, ChangeMetadata>> metadataByTable =
+            new ConcurrentHashMap<>();
     protected final TransactionConflictDetectionManager conflictDetectionManager;
     private final AtomicLong byteCount = new AtomicLong();
 
@@ -1376,6 +1382,11 @@ private ConcurrentNavigableMap<Cell, byte[]> getLocalWrites(TableReference table
         return writesByTable.computeIfAbsent(tableRef, unused -> new ConcurrentSkipListMap<>());
     }
 
+    @VisibleForTesting
+    ConcurrentNavigableMap<Cell, ChangeMetadata> getChangeMetadataForWrites(TableReference tableRef) {
+        return metadataByTable.computeIfAbsent(tableRef, unused -> new ConcurrentSkipListMap<>());
+    }
+
     /**
      * This includes deleted writes as zero length byte arrays, be sure to strip them out.
      *
@@ -1765,18 +1776,42 @@ protected boolean shouldDeleteAndRollback() {
 
     @Override
     public final void delete(TableReference tableRef, Set<Cell> cells) {
+        deleteInternal(tableRef, cells, ImmutableMap.of());
+    }
+
+    @Override
+    public void deleteWithMetadata(TableReference tableRef, Map<Cell, ChangeMetadata> cellsWithMetadata) {
+        deleteInternal(tableRef, cellsWithMetadata.keySet(), cellsWithMetadata);
+    }
+
+    private void deleteInternal(TableReference tableRef, Set<Cell> cells, Map<Cell, ChangeMetadata> metadata) {
         getCache().delete(tableRef, cells);
-        putInternal(tableRef, Cells.constantValueMap(cells, PtBytes.EMPTY_BYTE_ARRAY));
+        putInternal(tableRef, Cells.constantValueMap(cells, PtBytes.EMPTY_BYTE_ARRAY), metadata);
     }
 
     @Override
     public void put(TableReference tableRef, Map<Cell, byte[]> values) {
+        putWithMetadataInternal(tableRef, values, ImmutableMap.of());
+    }
+
+    @Override
+    public void putWithMetadata(
+            TableReference tableRef, Map<Cell, ChangeMetadataAnnotatedValue> metadataAnnotatedValues) {
+        Map<Cell, byte[]> valuesOnly =
+                Maps.transformValues(metadataAnnotatedValues, ChangeMetadataAnnotatedValue::value);
+        Map<Cell, ChangeMetadata> metadataOnly =
+                Maps.transformValues(metadataAnnotatedValues, ChangeMetadataAnnotatedValue::metadata);
+        putWithMetadataInternal(tableRef, valuesOnly, metadataOnly);
+    }
+
+    private void putWithMetadataInternal(
+            TableReference tableRef, Map<Cell, byte[]> values, Map<Cell, ChangeMetadata> metadata) {
         ensureNoEmptyValues(values);
         getCache().write(tableRef, values);
-        putInternal(tableRef, values);
+        putInternal(tableRef, values, metadata);
     }
 
-    public void putInternal(TableReference tableRef, Map<Cell, byte[]> values) {
+    public void putInternal(TableReference tableRef, Map<Cell, byte[]> values, Map<Cell, ChangeMetadata> metadata) {
         Preconditions.checkArgument(!AtlasDbConstants.HIDDEN_TABLES.contains(tableRef));
         markTableAsInvolvedInThisTransaction(tableRef);
 
@@ -1790,8 +1825,9 @@ public void putInternal(TableReference tableRef, Map<Cell, byte[]> values) {
             ensureUncommitted();
 
             ConcurrentNavigableMap<Cell, byte[]> writes = getLocalWrites(tableRef);
+            ConcurrentNavigableMap<Cell, ChangeMetadata> metadataForWrites = getChangeMetadataForWrites(tableRef);
 
-            putWritesAndLogIfTooLarge(values, writes);
+            putWritesAndLogIfTooLarge(values, writes, metadata, metadataForWrites);
         } finally {
             numWriters.decrementAndGet();
         }
@@ -1806,11 +1842,28 @@ private void ensureNoEmptyValues(Map<Cell, byte[]> values) {
         }
     }
 
-    private void putWritesAndLogIfTooLarge(Map<Cell, byte[]> values, SortedMap<Cell, byte[]> writes) {
+    private void putWritesAndLogIfTooLarge(
+            Map<Cell, byte[]> values,
+            ConcurrentNavigableMap<Cell, byte[]> writes,
+            Map<Cell, ChangeMetadata> metadata,
+            ConcurrentNavigableMap<Cell, ChangeMetadata> metadataForWrites) {
         for (Map.Entry<Cell, byte[]> e : values.entrySet()) {
             byte[] val = MoreObjects.firstNonNull(e.getValue(), PtBytes.EMPTY_BYTE_ARRAY);
             Cell cell = e.getKey();
-            if (writes.put(cell, val) == null) {
+            AtomicBoolean wasNull = new AtomicBoolean(false);
+            boolean hasMetadata = metadata.containsKey(cell);
+            writes.compute(cell, (k, oldVal) -> {
+                wasNull.set(oldVal == null);
+                // If we are not writing metadata for a value, we have to remove any previously stored metadata since
+                // it may not be valid for the new value.
+                if (hasMetadata) {
+                    metadataForWrites.put(cell, metadata.get(cell));
+                } else {
+                    metadataForWrites.remove(cell);
+                }
+                return val;
+            });
+            if (wasNull.get()) {
                 long toAdd = val.length + Cells.getApproxSizeOfCell(cell);
                 long newVal = byteCount.addAndGet(toAdd);
                 if (newVal >= TransactionConstants.WARN_LEVEL_FOR_QUEUED_BYTES
@@ -2458,12 +2511,14 @@ private boolean rollbackOtherTransaction(long startTs, TransactionService transa
      * This method should acquire any locks needed to do proper concurrency control at commit time.
      */
     protected LockToken acquireLocksForCommit() {
-        Set<LockDescriptor> lockDescriptors = getLocksForWrites();
+        LocksAndMetadata locksAndMetadata = getLocksAndMetadataForWrites();
+        Set<LockDescriptor> lockDescriptors = locksAndMetadata.lockDescriptors();
         TransactionConfig currentTransactionConfig = transactionConfig.get();
 
         // TODO(fdesouza): Revert this once PDS-95791 is resolved.
         long lockAcquireTimeoutMillis = currentTransactionConfig.getLockAcquireTimeoutMillis();
-        LockRequest request = LockRequest.of(lockDescriptors, lockAcquireTimeoutMillis);
+        Optional<LockRequestMetadata> metadata = locksAndMetadata.metadata();
+        LockRequest request = LockRequest.of(lockDescriptors, lockAcquireTimeoutMillis, metadata);
 
         RuntimeException stackTraceSnapshot = new SafeRuntimeException("I exist to show you the stack trace");
         LockResponse lockResponse = timelockService.lock(
@@ -2509,38 +2564,81 @@ private void logCommitLockTenureExceeded(
                 stackTraceSnapshot);
     }
 
-    protected Set<LockDescriptor> getLocksForWrites() {
-        Set<LockDescriptor> result = new HashSet<>();
+    protected LocksAndMetadata getLocksAndMetadataForWrites() {
+        Set<LockDescriptor> lockDescriptors = new HashSet<>();
+        Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata = new HashMap<>();
         long cellLockCount = 0L;
         long rowLockCount = 0L;
         for (TableReference tableRef : writesByTable.keySet()) {
             ConflictHandler conflictHandler = getConflictHandlerForTable(tableRef);
+
+            int previousLockCount = lockDescriptors.size();
             if (conflictHandler.lockCellsForConflicts()) {
-                NavigableSet<Cell> cellsToLock = getLocalWrites(tableRef).keySet();
-                for (Cell cell : cellsToLock) {
-                    result.add(AtlasCellLockDescriptor.of(
-                            tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName()));
-                }
-                cellLockCount += cellsToLock.size();
+                collectCellLocks(lockDescriptors, lockDescriptorToChangeMetadata, tableRef);
             }
+            cellLockCount += lockDescriptors.size() - previousLockCount;
 
+            previousLockCount = lockDescriptors.size();
             if (conflictHandler.lockRowsForConflicts()) {
-                Cell lastCell = null;
-                for (Cell cell : getLocalWrites(tableRef).keySet()) {
-                    if (lastCell == null || !Arrays.equals(lastCell.getRowName(), cell.getRowName())) {
-                        result.add(AtlasRowLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName()));
-                        rowLockCount++;
-                    }
-                    lastCell = cell;
-                }
+                collectRowLocks(lockDescriptors, lockDescriptorToChangeMetadata, tableRef);
             }
+            rowLockCount += lockDescriptors.size() - previousLockCount;
         }
-        result.add(AtlasRowLockDescriptor.of(
+        lockDescriptors.add(AtlasRowLockDescriptor.of(
                 TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
                 TransactionConstants.getValueForTimestamp(getStartTimestamp())));
         cellCommitLocksRequested = cellLockCount;
         rowCommitLocksRequested = rowLockCount + 1;
-        return result;
+        return LocksAndMetadata.of(
+                lockDescriptors,
+                // For now, lock request metadata only consists of change metadata. If it is absent, we can save
+                // computation by not doing an index encoding
+                lockDescriptorToChangeMetadata.isEmpty()
+                        ? Optional.empty()
+                        : Optional.of(LockRequestMetadata.of(lockDescriptorToChangeMetadata)));
+    }
+
+    private void collectCellLocks(
+            Set<LockDescriptor> lockDescriptors,
+            Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata,
+            TableReference tableRef) {
+        Map<Cell, ChangeMetadata> changeMetadataForWrites = getChangeMetadataForWrites(tableRef);
+        for (Cell cell : getLocalWrites(tableRef).keySet()) {
+            LockDescriptor lockDescriptor =
+                    AtlasCellLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName());
+            lockDescriptors.add(lockDescriptor);
+            if (changeMetadataForWrites.containsKey(cell)) {
+                lockDescriptorToChangeMetadata.put(lockDescriptor, changeMetadataForWrites.get(cell));
+            }
+        }
+    }
+
+    private void collectRowLocks(
+            Set<LockDescriptor> lockDescriptors,
+            Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata,
+            TableReference tableRef) {
+        Map<Cell, ChangeMetadata> changeMetadataForWrites = getChangeMetadataForWrites(tableRef);
+        Cell lastCell = null;
+        for (Cell cell : getLocalWrites(tableRef).keySet()) {
+            LockDescriptor rowLockDescriptor =
+                    AtlasRowLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName());
+            if (changeMetadataForWrites.containsKey(cell)) {
+                if (lockDescriptorToChangeMetadata.containsKey(rowLockDescriptor)) {
+                    throw new SafeIllegalStateException(
+                            "Two different cells in the same row have metadata and we create locks on row level.",
+                            UnsafeArg.of("tableRef", tableRef),
+                            UnsafeArg.of("rowName", cell.getRowName()),
+                            UnsafeArg.of("existingMetadata", lockDescriptorToChangeMetadata.get(rowLockDescriptor)),
+                            UnsafeArg.of("newMetadata", changeMetadataForWrites.get(cell)));
+                } else {
+                    lockDescriptorToChangeMetadata.put(rowLockDescriptor, changeMetadataForWrites.get(cell));
+                }
+            }
+            if (lastCell == null || !Arrays.equals(lastCell.getRowName(), cell.getRowName())) {
+                lockDescriptors.add(rowLockDescriptor);
+            }
+            lastCell = cell;
+        }
     }
 
     ///////////////////////////////////////////////////////////////////////////
@@ -2839,4 +2937,18 @@ private <T> ListenableFuture<T> scopeToTransaction(ListenableFuture<T> transacti
                 },
                 MoreExecutors.directExecutor());
     }
+
+    @Unsafe
+    @org.immutables.value.Value.Immutable
+    public interface LocksAndMetadata {
+        @org.immutables.value.Value.Parameter
+        Set<LockDescriptor> lockDescriptors();
+
+        @org.immutables.value.Value.Parameter
+        Optional<LockRequestMetadata> metadata();
+
+        static LocksAndMetadata of(Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {
+            return ImmutableLocksAndMetadata.of(lockDescriptors, metadata);
+        }
+    }
 }u}(jSv (70b96cf0476b2addab46fc4bf810b290a457b8bajv eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javajv modifiedjv Kjv Kjv Mjv https://github.com/palantir/atlasdb/blob/0980cb8cc1c47d03fc40dce531798fe558fdb4b7/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajv https://github.com/palantir/atlasdb/raw/0980cb8cc1c47d03fc40dce531798fe558fdb4b7/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajv https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=0980cb8cc1c47d03fc40dce531798fe558fdb4b7jv XZE  @@ -23,6 +23,7 @@
 import static org.assertj.core.api.Assertions.fail;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyLong;
+import static org.mockito.ArgumentMatchers.argThat;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.doThrow;
@@ -46,6 +47,7 @@
 import com.google.common.collect.Maps;
 import com.google.common.collect.Ordering;
 import com.google.common.collect.Streams;
+import com.google.common.primitives.Longs;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.MoreExecutors;
@@ -80,6 +82,7 @@
 import com.palantir.atlasdb.transaction.ImmutableTransactionConfig;
 import com.palantir.atlasdb.transaction.TransactionConfig;
 import com.palantir.atlasdb.transaction.api.AtlasDbConstraintCheckingMode;
+import com.palantir.atlasdb.transaction.api.ChangeMetadataAnnotatedValue;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.transaction.api.ConstraintCheckable;
 import com.palantir.atlasdb.transaction.api.ConstraintCheckingTransaction;
@@ -110,6 +113,7 @@
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.common.proxy.MultiDelegateProxy;
 import com.palantir.common.streams.KeyedStream;
+import com.palantir.lock.AtlasCellLockDescriptor;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.HeldLocksToken;
 import com.palantir.lock.LockClient;
@@ -123,7 +127,10 @@
 import com.palantir.lock.v2.LockImmutableTimestampResponse;
 import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.TimelockService;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.math.BigInteger;
 import java.nio.ByteBuffer;
@@ -331,6 +338,9 @@ public void cleanup() {}
 
     private static final byte[] TEST_VALUE = PtBytes.toBytes("value");
 
+    private static final ChangeMetadata TEST_METADATA =
+            ChangeMetadata.updated(PtBytes.toBytes("abc"), PtBytes.toBytes("def"));
+
     @Override
     @Before
     public void setUp() throws Exception {
@@ -1500,7 +1510,7 @@ public void commitThrowsIfRolledBackAtCommitTime_expiredLocks() {
     public void commitThrowsIfCommitLockAcquisitionFails() {
         TimelockService timelockService = mock(TimelockService.class);
         when(timelockService.lock(any(), any())).thenReturn(LockResponse.timedOut());
-        Transaction txn = getSnapshotTransactionWith(timelockService);
+        Transaction txn = getSnapshotTransactionWith(timelockService, ImmutableMap.of());
 
         // We only request commit locks for transactions that write at least one value
         txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
@@ -2551,6 +2561,163 @@ public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
                         SafeArg.of("maxIterations", SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS));
     }
 
+    @Test
+    public void metadataStoredForPutWithMetadata() {
+        Map<Cell, ChangeMetadata> internalMetadata = txManager.runTaskThrowOnConflict(txn -> {
+            txn.putWithMetadata(
+                    TABLE, ImmutableMap.of(TEST_CELL, ChangeMetadataAnnotatedValue.of(TEST_VALUE, TEST_METADATA)));
+            return unwrapSnapshotTransaction(txn).getChangeMetadataForWrites(TABLE);
+        });
+        assertThat(internalMetadata).containsExactlyEntriesOf(ImmutableMap.of(TEST_CELL, TEST_METADATA));
+    }
+
+    @Test
+    public void metadataRemovedForRegularPutAfterPutWithMetadata() {
+        Map<Cell, ChangeMetadata> internalMetadata = txManager.runTaskThrowOnConflict(txn -> {
+            txn.putWithMetadata(
+                    TABLE, ImmutableMap.of(TEST_CELL, ChangeMetadataAnnotatedValue.of(TEST_VALUE, TEST_METADATA)));
+            txn.put(TABLE, ImmutableMap.of(TEST_CELL, PtBytes.toBytes("feeling lucky")));
+            return unwrapSnapshotTransaction(txn).getChangeMetadataForWrites(TABLE);
+        });
+        assertThat(internalMetadata).isEmpty();
+    }
+
+    @Test
+    public void metadataStoredForDeleteWithMetadata() {
+        Map<Cell, ChangeMetadata> internalMetadata = txManager.runTaskThrowOnConflict(txn -> {
+            txn.deleteWithMetadata(TABLE, ImmutableMap.of(TEST_CELL, TEST_METADATA));
+            return unwrapSnapshotTransaction(txn).getChangeMetadataForWrites(TABLE);
+        });
+        assertThat(internalMetadata).containsExactlyEntriesOf(ImmutableMap.of(TEST_CELL, TEST_METADATA));
+    }
+
+    @Test
+    public void metadataRemovedForRegularDeleteAfterPutWithMetadata() {
+        Map<Cell, ChangeMetadata> internalMetadata = txManager.runTaskThrowOnConflict(txn -> {
+            txn.putWithMetadata(
+                    TABLE, ImmutableMap.of(TEST_CELL, ChangeMetadataAnnotatedValue.of(TEST_VALUE, TEST_METADATA)));
+            txn.delete(TABLE, ImmutableSet.of(TEST_CELL));
+            return unwrapSnapshotTransaction(txn).getChangeMetadataForWrites(TABLE);
+        });
+        assertThat(internalMetadata).isEmpty();
+    }
+
+    // We can save ourselves a separate concurrency test for deleteWithMetadata() since it just calls putInternal()
+    // with the empty byte array value.
+    @Test
+    public void storingMetadataIsAtomicWithLocalWrite() throws InterruptedException {
+        int numThreads = 20;
+        int numCells = 50;
+        long randomSeed = System.currentTimeMillis();
+
+        Random random = new Random(randomSeed);
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+
+        Set<Cell> cells = IntStream.range(0, numCells)
+                .mapToObj(cellIndex -> Cell.create(PtBytes.toBytes(cellIndex), PtBytes.toBytes(cellIndex)))
+                .collect(Collectors.toSet());
+
+        Map<Long, Map<Cell, ChangeMetadata>> metadataWrittenByThread =
+                concurrentlyWriteMetadataToCells(random, txn, cells, numThreads);
+
+        Map<Cell, ChangeMetadata> metadata = txn.getChangeMetadataForWrites(TABLE);
+        for (Cell cell : cells) {
+            byte[] currInternalValue = txn.get(TABLE, ImmutableSet.of(cell)).get(cell);
+            // The thread ID of the thread that won the race, i.e. the thread who was the last to write
+            long winnerThread = Longs.fromByteArray(currInternalValue);
+
+            ChangeMetadata expectedMetadata =
+                    metadataWrittenByThread.get(winnerThread).get(cell);
+            ChangeMetadata actualMetadata = metadata.get(cell);
+
+            assertThat(actualMetadata)
+                    .as(
+                            "Writing a value to the local buffer should be atomic with writing its metadata. If a"
+                                + " value was written without metadata, the metadata should be cleared. Random seed:"
+                                + " %d",
+                            randomSeed)
+                    .isEqualTo(expectedMetadata);
+        }
+    }
+
+    @Test
+    public void metadataIsSentToTimeLock() {
+        TimelockService timelockService = mock(TimelockService.class);
+        Transaction txn = getSnapshotTransactionWith(
+                timelockService, ImmutableMap.of(TABLE, Optional.of(ConflictHandler.SERIALIZABLE_CELL)));
+
+        txn.putWithMetadata(
+                TABLE, ImmutableMap.of(TEST_CELL, ChangeMetadataAnnotatedValue.of(TEST_VALUE, TEST_METADATA)));
+        maybeCommit(txn);
+
+        verifyLockWasCalledWithMetadata(
+                timelockService,
+                Optional.of(LockRequestMetadata.of(ImmutableMap.of(
+                        AtlasCellLockDescriptor.of(
+                                TABLE.getQualifiedName(), TEST_CELL.getRowName(), TEST_CELL.getColumnName()),
+                        TEST_METADATA))));
+    }
+
+    @Test
+    public void noMetadataResultsInEmptyOptional() {
+        TimelockService timelockService = mock(TimelockService.class);
+        Transaction txn = getSnapshotTransactionWith(timelockService, ImmutableMap.of());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        maybeCommit(txn);
+        verifyLockWasCalledWithMetadata(timelockService, Optional.empty());
+    }
+
+    @Test
+    public void metadataIsTransferredToRowLocks() {
+        TimelockService timelockService = mock(TimelockService.class);
+        // Conflict handler that locks rows AND cells
+        Transaction txn = getSnapshotTransactionWith(
+                timelockService,
+                ImmutableMap.of(
+                        TABLE,
+                        Optional.of(ConflictHandler.SERIALIZABLE),
+                        TABLE2,
+                        Optional.of(ConflictHandler.SERIALIZABLE)));
+
+        txn.putWithMetadata(
+                TABLE, ImmutableMap.of(TEST_CELL, ChangeMetadataAnnotatedValue.of(TEST_VALUE, TEST_METADATA)));
+        txn.putWithMetadata(
+                TABLE2, ImmutableMap.of(TEST_CELL_2, ChangeMetadataAnnotatedValue.of(TEST_VALUE, TEST_METADATA)));
+        maybeCommit(txn);
+
+        LockDescriptor rowLock = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL.getRowName());
+        LockDescriptor rowLock2 = AtlasRowLockDescriptor.of(TABLE2.getQualifiedName(), TEST_CELL_2.getRowName());
+        verifyLockWasCalledWithMetadata(
+                timelockService,
+                Optional.of(LockRequestMetadata.of(ImmutableMap.of(rowLock, TEST_METADATA, rowLock2, TEST_METADATA))));
+    }
+
+    @Test
+    public void commitFailsIfMultipleCellsInSameRowHaveMetadataAndUsingRowLocks() {
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE);
+        byte[] row = PtBytes.toBytes("same-row");
+        Cell cell1 = Cell.create(row, PtBytes.toBytes("col1"));
+        Cell cell2 = Cell.create(row, PtBytes.toBytes("col2"));
+        Transaction txn = txManager.createNewTransaction();
+
+        txn.putWithMetadata(
+                TABLE,
+                ImmutableMap.of(
+                        cell1,
+                        ChangeMetadataAnnotatedValue.of(TEST_VALUE, TEST_METADATA),
+                        cell2,
+                        ChangeMetadataAnnotatedValue.of(TEST_VALUE, TEST_METADATA)));
+
+        assertThatLoggableExceptionThrownBy(txn::commit)
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasLogMessage("Two different cells in the same row have metadata and we create locks on row level.")
+                .hasExactlyArgs(
+                        UnsafeArg.of("tableRef", TABLE),
+                        UnsafeArg.of("rowName", cell1.getRowName()),
+                        UnsafeArg.of("existingMetadata", TEST_METADATA),
+                        UnsafeArg.of("newMetadata", TEST_METADATA));
+    }
+
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,
@@ -2660,12 +2827,18 @@ private void setTransactionConfig(TransactionConfig config) {
         transactionConfig = config;
     }
 
-    private Transaction getSnapshotTransactionWith(TimelockService timelockService) {
+    private Transaction getSnapshotTransactionWith(
+            TimelockService timelockService, Map<TableReference, Optional<ConflictHandler>> tableConflictHandlers) {
         ConjureStartTransactionsResponse conjureResponse = startTransactionWithWatches();
         LockImmutableTimestampResponse lockImmutableTimestampResponse = conjureResponse.getImmutableTimestamp();
         long transactionTs = conjureResponse.getTimestamps().start();
         return getSnapshotTransactionWith(
-                timelockService, () -> transactionTs, lockImmutableTimestampResponse, unused -> {});
+                timelockService,
+                () -> transactionTs,
+                lockImmutableTimestampResponse,
+                unused -> {},
+                true,
+                tableConflictHandlers);
     }
 
     private Transaction getSnapshotTransactionWith(
@@ -2683,6 +2856,22 @@ private Transaction getSnapshotTransactionWith(
             LockImmutableTimestampResponse lockImmutableTimestampResponse,
             PreCommitCondition preCommitCondition,
             boolean validateLocksOnReads) {
+        return getSnapshotTransactionWith(
+                timelockService,
+                startTs,
+                lockImmutableTimestampResponse,
+                preCommitCondition,
+                validateLocksOnReads,
+                ImmutableMap.of(TABLE, Optional.of(ConflictHandler.RETRY_ON_WRITE_WRITE)));
+    }
+
+    private Transaction getSnapshotTransactionWith(
+            TimelockService timelockService,
+            Supplier<Long> startTs,
+            LockImmutableTimestampResponse lockImmutableTimestampResponse,
+            PreCommitCondition preCommitCondition,
+            boolean validateLocksOnReads,
+            Map<TableReference, Optional<ConflictHandler>> tableConflictHandlers) {
         PathTypeTracker pathTypeTracker = PathTypeTrackers.constructSynchronousTracker();
         SnapshotTransaction transaction = new SnapshotTransaction(
                 metricsManager,
@@ -2692,8 +2881,7 @@ private Transaction getSnapshotTransactionWith(
                 transactionService,
                 NoOpCleaner.INSTANCE,
                 startTs,
-                TestConflictDetectionManagers.createWithStaticConflictDetection(
-                        ImmutableMap.of(TABLE, Optional.of(ConflictHandler.RETRY_ON_WRITE_WRITE))),
+                TestConflictDetectionManagers.createWithStaticConflictDetection(tableConflictHandlers),
                 SweepStrategyManagers.createDefault(keyValueService),
                 lockImmutableTimestampResponse.getImmutableTimestamp(),
                 Optional.of(lockImmutableTimestampResponse.getLock()),
@@ -2782,6 +2970,13 @@ private long concurrentlyIncrementValueThousandTimesAndGet() throws InterruptedE
                 t1.get(TABLE, ImmutableSet.of(cell)).values().iterator().next());
     }
 
+    private void maybeCommit(Transaction txn) {
+        try {
+            txn.commit();
+        } catch (Throwable ignored) {
+        }
+    }
+
     /**
      * Hack to get reference to underlying {@link SnapshotTransaction}. See how transaction managers are composed at
      * {@link AtlasDbTestCase#setUp()}.
@@ -2808,6 +3003,59 @@ public void cleanup() {
         };
     }
 
+    private static Map<Long, Map<Cell, ChangeMetadata>> concurrentlyWriteMetadataToCells(
+            Random random, Transaction txn, Set<Cell> cells, int numThreads) throws InterruptedException {
+        List<Callable<Void>> tasks = new ArrayList<>();
+        Map<Long, Map<Cell, ChangeMetadata>> metadataWrittenByThread = KeyedStream.of(
+                        LongStream.range(0, numThreads).boxed())
+                .<Map<Cell, ChangeMetadata>>map(threadIndex -> {
+                    Map<Cell, ChangeMetadataAnnotatedValue> valuesToPut =
+                            generateMetadataAnnotatedValuesForThread(random, cells, threadIndex);
+                    if (random.nextBoolean()) {
+                        tasks.add(() -> {
+                            txn.putWithMetadata(TABLE, valuesToPut);
+                            return null;
+                        });
+                        return Maps.transformValues(valuesToPut, ChangeMetadataAnnotatedValue::metadata);
+                    } else {
+                        Map<Cell, byte[]> valuesOnly =
+                                Maps.transformValues(valuesToPut, ChangeMetadataAnnotatedValue::value);
+                        tasks.add(() -> {
+                            txn.put(TABLE, valuesOnly);
+                            return null;
+                        });
+                        return ImmutableMap.of();
+                    }
+                })
+                .collectToMap();
+        ScheduledExecutorService scheduledExecutorService = PTExecutors.newScheduledThreadPool(numThreads);
+        List<Future<Void>> futures = scheduledExecutorService.invokeAll(tasks);
+        Awaitility.await().atMost(Duration.ofMillis(200)).until(() -> futures.stream()
+                .allMatch(Future::isDone));
+        return metadataWrittenByThread;
+    }
+
+    private static Map<Cell, ChangeMetadataAnnotatedValue> generateMetadataAnnotatedValuesForThread(
+            Random random, Set<Cell> cells, long threadId) {
+        byte[] valueToPut = PtBytes.toBytes(threadId);
+        ChangeMetadata metadataToPut = ChangeMetadata.created(valueToPut);
+        return KeyedStream.of(cells.stream())
+                .filter(_unused -> random.nextBoolean())
+                .map(_unused -> ChangeMetadataAnnotatedValue.of(valueToPut, metadataToPut))
+                .collectToMap();
+    }
+
+    private static void verifyLockWasCalledWithMetadata(
+            TimelockService mockTimelockService, Optional<LockRequestMetadata> lockRequestMetadata) {
+        verify(mockTimelockService)
+                .lock(
+                        argThat(lockRequest -> {
+                            assertThat(lockRequest.getMetadata()).isEqualTo(lockRequestMetadata);
+                            return true;
+                        }),
+                        any());
+    }
+
     private static class VerifyingKeyValueServiceDelegate extends ForwardingKeyValueService {
         private final KeyValueService delegate;
         private final PathTypeTracker pathTypeTracker;u      }(jSv (538dd31e4fa210d87d49316ec18c2a461b43b63ajv Dlock-api-objects/src/main/java/com/palantir/lock/v2/LockRequest.javajv modifiedjv Kjv K jv Kjv https://github.com/palantir/atlasdb/blob/0980cb8cc1c47d03fc40dce531798fe558fdb4b7/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fv2%2FLockRequest.javajv https://github.com/palantir/atlasdb/raw/0980cb8cc1c47d03fc40dce531798fe558fdb4b7/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fv2%2FLockRequest.javajv https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fv2%2FLockRequest.java?ref=0980cb8cc1c47d03fc40dce531798fe558fdb4b7jv Xg  @@ -52,6 +52,11 @@ static LockRequest of(Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs
                 lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription), Optional.empty());
     }
 
+    static LockRequest of(
+            Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs, Optional<LockRequestMetadata> metadata) {
+        return ImmutableLockRequest.of(lockDescriptors, acquireTimeoutMs, Optional.empty(), metadata);
+    }
+
     @Value.Check
     default void check() {
         Preconditions.checkState(getAcquireTimeoutMs() >= 0, "Acquire timeout cannot be negative.");ueu(683e36f3a5b297d44571c5298420abef5b59f981}(sha(683e36f3a5b297d44571c5298420abef5b59f981node_idEC_kwDOAjP5fdoAKDY4M2UzNmYzYTViMjk3ZDQ0NTcxYzUyOTg0MjBhYmVmNWI1OWY5ODEcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-03-31T02:48:41Zu	committer}(jv Patrick Koenigjv pkoenig10@gmail.comjv 2023-03-31T02:48:41Zumessage,Eliminate duplicate executor instrumentationtree}(jv (69a0ece5b4c7416b3692fbace1909754e47e4426url`https://api.github.com/repos/palantir/atlasdb/git/trees/69a0ece5b4c7416b3692fbace1909754e47e4426uj
w bhttps://api.github.com/repos/palantir/atlasdb/git/commits/683e36f3a5b297d44571c5298420abef5b59f981
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAAhcAAAAHc3NoLXJzYQAAAAMBAAEAAAIBAOLBVI00yZaP7395xCyqzy
aD/kgGj5GS8qP2f4Q0hM5gFbEYaTLwKvZTgcFMKJEw/3tOlCyuFoQChwrZ+YjoX3ZcTdIs
QnoGeYlwKUGY4x3QXLvrURZtGaXWggfEc+UKHT3mnGXM9FpX9CSdpTopg7KhxDlx3/Jv90
zimWImFPxKFUSZrhVGqD8qAQibPTFDs+JhK0cqllhsvm0PR9PilTde++NKLCQUNrRJi2+f
BjLBjJMJshRwXkkM6J8hDvyjiLJz4Bg9hq+5QLnO1fYaetU7aP4bsCs6ix5pyD4WO6cr6T
SMCtJThNdHvOVuOaCCHBOQrdVGjbMH9lmW5FL5oMsTZ86p24rZOFD9ly44mMJWYGk6F81y
japNgWorhR0tSZMSZPVlisGQQsRnsqQidrVPe3IR4MTUsKx39CAutxgk6N+BseeByXKw+H
aBKmd75u/FU7IoxEbXX7EuDq2TCtUmujYXiY7SY4T0DQDjNpHq+vrEUsKyi5mbRTdNahvt
eFWJU5UIwO7Ao+HdsqfUjGN6zw2HSkiHEG3iOj5OY+byI/ykoYGMQ40w6w7shCt7XDbUXa
/kGqIyicthBGQ7Y4/TtquH5Ag2UPSlN9C0Rt/ZBolkTfoLz4wCtTMzd7hdixs5yuocVTn7
njhSYSXRyRbbVcF/q56x1NAAsVOe9epxAAAAA2dpdAAAAAAAAAAGc2hhNTEyAAACFAAAAA
xyc2Etc2hhMi01MTIAAAIAd8qhQHsHP8KBy34z28Ypr8IJ/s1rb1AvfllvfLLGQN/x1eg2
ZACtTrchcrbK2So4bvlU0HYwoHekDneJMSflrrSNSB7eeOU/rs7CoZ/t4kvxufNicML1+u
5/z3OMbDKwDvtg2mWKbtmWlr0EowuYE0pFwAqgw7rEbLue/GX4hEH6lAoiwgNu2ioLFijg
D7RjrxNqewiGsNNkoTJYQHWqoFbA/kJvbAfIR6REfKd4z7Jsbt8wGs37A83n8YDcflRiAh
iBtgSURyOV+2Kp9VJI3nVMp2s/PwwEEkLDyt9ZMXxWvnRq+JlDBYU4qgWBuyjEksZktYro
3WuPgJEh2rOct5aoVeNGapIbNOGJcz71jr5CpPRqlElY5o/7e/2KSAaZEE7QVeg7rGnYur
g35Y07E/LssdNs0dhDM4yPmCPM2JW21zQksWva/RpTEnQfYIfB4IPJoxaOm/P6mfhRligD
l2nwSzhfITpcgaPDJQ1m46CvjfyV9/FWm4m7bDsDpKJHQ1jfCkZGrxitOVvzphqk6ayXaD
DZgrZAgaJGlfWd8dFYUUkFcXo8Hm/Wm7MdwYVkD4/fQKDDMe5xa/mWMEGBLQRPOFCMgxIB
+yehr5qRHtp8O7KliQC/60ptxxOylT0Tb8155kLPgnPHgRkFbRNOLbTVX5f3sLROZg8gkY
wmTik=
-----END SSH SIGNATURE-----payloadX	  tree 69a0ece5b4c7416b3692fbace1909754e47e4426
parent 44a6930443bb70b40ca00f76d282a73d2681dc7a
author Patrick Koenig <pkoenig10@gmail.com> 1680230921 -0700
committer Patrick Koenig <pkoenig10@gmail.com> 1680230921 -0700

Eliminate duplicate executor instrumentation
uuj
w ^https://api.github.com/repos/palantir/atlasdb/commits/683e36f3a5b297d44571c5298420abef5b59f981html_urlShttps://github.com/palantir/atlasdb/commit/683e36f3a5b297d44571c5298420abef5b59f981comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/683e36f3a5b297d44571c5298420abef5b59f981/commentsjv }(login	pkoenig10idJLvP jv MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5j
w &https://api.github.com/users/pkoenig10jw https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminuj w }(jw 	pkoenig10jw JLvP jv MDQ6VXNlcjUyNzMxNjQ=j!w 3https://avatars.githubusercontent.com/u/5273164?v=4j#w h5j
w &https://api.github.com/users/pkoenig10jw https://github.com/pkoenig10j&w 0https://api.github.com/users/pkoenig10/followersj(w =https://api.github.com/users/pkoenig10/following{/other_user}j*w 6https://api.github.com/users/pkoenig10/gists{/gist_id}j,w =https://api.github.com/users/pkoenig10/starred{/owner}{/repo}j.w 4https://api.github.com/users/pkoenig10/subscriptionsj0w +https://api.github.com/users/pkoenig10/orgsj2w ,https://api.github.com/users/pkoenig10/reposj4w 7https://api.github.com/users/pkoenig10/events{/privacy}j6w 6https://api.github.com/users/pkoenig10/received_eventsj8w Userj:w uparents]}(jv (44a6930443bb70b40ca00f76d282a73d2681dc7aj
w ^https://api.github.com/repos/palantir/atlasdb/commits/44a6930443bb70b40ca00f76d282a73d2681dc7ajw Shttps://github.com/palantir/atlasdb/commit/44a6930443bb70b40ca00f76d282a73d2681dc7auastats}(totalK5	additionsK	deletionsKufiles](}(jv (d712c836408b8b983fda0502a1815c19270ae9e1filename.palantir/revapi.ymlstatusmodifiedjTw KjUw K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/683e36f3a5b297d44571c5298420abef5b59f981/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/683e36f3a5b297d44571c5298420abef5b59f981/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=683e36f3a5b297d44571c5298420abef5b59f981patchX_  @@ -115,3 +115,9 @@ acceptedBreaks:
     - code: "java.class.removed"
       old: "interface com.palantir.atlasdb.transaction.api.expectations.ExpectationsAwareTransaction"
       justification: "moving out of API"
+  "0.824.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.removed"
+      old: "method java.util.concurrent.ExecutorService com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService::createThreadPoolWihtoutSpans(java.lang.String,\
+        \ int, int) @ com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl"
+      justification: "Protected method"u}(jv (69f581236b5f107c22a46408a061b07dd50fd1bcjZw iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj\w modifiedjTw KjUw Kj^w Kj_w https://github.com/palantir/atlasdb/blob/683e36f3a5b297d44571c5298420abef5b59f981/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javajaw https://github.com/palantir/atlasdb/raw/683e36f3a5b297d44571c5298420abef5b59f981/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javajcw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=683e36f3a5b297d44571c5298420abef5b59f981jew X2  @@ -108,8 +108,6 @@
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
-import com.palantir.tracing.Tracers;
-import com.palantir.tritium.metrics.MetricRegistries;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import com.palantir.util.Pair;
 import com.palantir.util.paging.AbstractPagingIterable;
@@ -485,10 +483,7 @@ private static Supplier<ExecutorService> instrumentedFixedThreadPoolSupplier(
             int numberOfThriftHosts = serversConfig.numberOfThriftHosts();
             int corePoolSize = poolSize * numberOfThriftHosts;
             int maxPoolSize = maxConnectionBurstSize * numberOfThriftHosts;
-            return Tracers.wrap(MetricRegistries.instrument(
-                    registry,
-                    createThreadPoolWihtoutSpans("Atlas Cassandra KVS", corePoolSize, maxPoolSize),
-                    "Atlas Cassandra KVS"));
+            return createThreadPoolWithoutSpans("Atlas Cassandra KVS", corePoolSize, maxPoolSize);
         };
     }
 u}(jv (605212243716ab96bbbde3a8b0fd9ec3aa421b48jZw \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/AbstractKeyValueService.javaj\w modifiedjTw K	jUw K
j^w Kj_w https://github.com/palantir/atlasdb/blob/683e36f3a5b297d44571c5298420abef5b59f981/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javajaw https://github.com/palantir/atlasdb/raw/683e36f3a5b297d44571c5298420abef5b59f981/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javajcw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.java?ref=683e36f3a5b297d44571c5298420abef5b59f981jew X^	  @@ -70,38 +70,37 @@ public AbstractKeyValueService(ExecutorService executor) {
     /**
      * Creates a fixed thread pool.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param corePoolSize size of the core pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createFixedThreadPool(String threadNamePrefix, int corePoolSize) {
-        return createThreadPool(threadNamePrefix, corePoolSize, corePoolSize);
+    protected static ExecutorService createFixedThreadPool(String name, int corePoolSize) {
+        return createThreadPool(name, corePoolSize, corePoolSize);
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPool(String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPool(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPool(String name, int _corePoolSize, int maxPoolSize) {
+        return PTExecutors.newFixedThreadPool(maxPoolSize, name);
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      * It does not create a span.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPoolWihtoutSpans(
-            String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPoolWithoutSpans(String name, int _corePoolSize, int maxPoolSize) {
+        return PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, name);
     }
 
     @Overrideu}(jv (be35f6935babe6fd6f3078a75090f80835e5f244jZw Ocommons-executors/src/main/java/com/palantir/common/concurrent/PTExecutors.javaj\w modifiedjTw KjUw K	j^w Kj_w https://github.com/palantir/atlasdb/blob/683e36f3a5b297d44571c5298420abef5b59f981/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutors.javajaw https://github.com/palantir/atlasdb/raw/683e36f3a5b297d44571c5298420abef5b59f981/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutors.javajcw https://api.github.com/repos/palantir/atlasdb/contents/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutors.java?ref=683e36f3a5b297d44571c5298420abef5b59f981jew X  @@ -295,10 +295,12 @@ public static ThreadPoolExecutor newFixedThreadPool(int numThreads, ThreadFactor
      * @throws IllegalArgumentException if <tt>numThreads &lt;= 0</tt>
      */
     public static ExecutorService newFixedThreadPool(int numThreads, String name) {
-        return MetricRegistries.instrument(
-                SharedTaggedMetricRegistries.getSingleton(),
-                PTExecutors.wrap(name, getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())),
-                name);
+        return MetricRegistries.executor()
+                .registry(SharedTaggedMetricRegistries.getSingleton())
+                .name(name)
+                .executor(PTExecutors.wrap(
+                        name, getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())))
+                .build();
     }
 
     /**
@@ -316,11 +318,12 @@ public static ExecutorService newFixedThreadPool(int numThreads, String name) {
      * @throws IllegalArgumentException if <tt>numThreads &lt;= 0</tt>
      */
     public static ExecutorService newFixedThreadPoolWithoutSpan(int numThreads, String name) {
-        return MetricRegistries.instrument(
-                SharedTaggedMetricRegistries.getSingleton(),
-                PTExecutors.wrapWithoutSpan(
-                        getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())),
-                name);
+        return MetricRegistries.executor()
+                .registry(SharedTaggedMetricRegistries.getSingleton())
+                .name(name)
+                .executor(PTExecutors.wrapWithoutSpan(
+                        getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())))
+                .build();
     }
 
     public static ExecutorService getViewExecutor(ueu(7702273fe256abc4ccc69a3b1b2badbde57a9870}(sha(7702273fe256abc4ccc69a3b1b2badbde57a9870node_idEC_kwDOAjP5fdoAKDc3MDIyNzNmZTI1NmFiYzRjY2M2OWEzYjFiMmJhZGJkZTU3YTk4NzAcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-19T16:52:23Zu	committer}(jw 	Tom Papkejw tpapke@palantir.comjw 2023-07-19T16:52:23ZumessageRename "old" to "legacy"tree}(jw (6900bf5fb4cc3b1cef5b400eb307e4a94ed18071url`https://api.github.com/repos/palantir/atlasdb/git/trees/6900bf5fb4cc3b1cef5b400eb307e4a94ed18071ujw bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7702273fe256abc4ccc69a3b1b2badbde57a9870
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS4FMcACgkQmF9s0kaF
Iw1TPwgAjJ2N1klFVlVBKGV1+dakvXmRRDlrh6GU3F+WVJIIbcz/QKWzFzNgLcTo
C5olXXNti7gYcaT3BVvBj65SkDLEEY9KSsYRPRHSKlQ4uXx3mjeMdBdwTi2mtl4G
opdAlzCxQ4WsZDwKvv9X3QYHeiAQ9asba3TLn2QNrnniyfKAMWp26iVQmUUAYkB2
lKVilJqOKAl+pHn0D53uZIdmEvT8aw+g7mY++On/n9F7eiWbv+vJXrHL6QichDNw
3wj7R5kgrREa0hgpS+So6YiFrB/qk3zFK1IpXDCoez1j2ef/tX6Mf+acoJCmEt59
/MI3lu+3/VnBCuu52uvWsX5h1IGC6g==
=Pg2d
-----END PGP SIGNATURE-----payloadtree 6900bf5fb4cc3b1cef5b400eb307e4a94ed18071
parent 645d977d00439c823bf4adff7b63a6f6bedb76e4
author Tom Papke <tpapke@palantir.com> 1689785543 +0100
committer Tom Papke <tpapke@palantir.com> 1689785543 +0100

Rename "old" to "legacy"
uujw ^https://api.github.com/repos/palantir/atlasdb/commits/7702273fe256abc4ccc69a3b1b2badbde57a9870html_urlShttps://github.com/palantir/atlasdb/commit/7702273fe256abc4ccc69a3b1b2badbde57a9870comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7702273fe256abc4ccc69a3b1b2badbde57a9870/commentsjw }(login	ToemmscheidJbojw MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jw &https://api.github.com/users/Toemmschejw https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujw }(jw 	Toemmschejw Jbojw MDQ6VXNlcjQzNjc1NDkwjw 4https://avatars.githubusercontent.com/u/43675490?v=4jw h5jw &https://api.github.com/users/Toemmschejw https://github.com/Toemmschejw 0https://api.github.com/users/Toemmsche/followersjw =https://api.github.com/users/Toemmsche/following{/other_user}jw 6https://api.github.com/users/Toemmsche/gists{/gist_id}jw =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jw 4https://api.github.com/users/Toemmsche/subscriptionsjw +https://api.github.com/users/Toemmsche/orgsjw ,https://api.github.com/users/Toemmsche/reposjw 7https://api.github.com/users/Toemmsche/events{/privacy}jw 6https://api.github.com/users/Toemmsche/received_eventsjw Userjw uparents]}(jw (645d977d00439c823bf4adff7b63a6f6bedb76e4jw ^https://api.github.com/repos/palantir/atlasdb/commits/645d977d00439c823bf4adff7b63a6f6bedb76e4jw Shttps://github.com/palantir/atlasdb/commit/645d977d00439c823bf4adff7b63a6f6bedb76e4uastats}(totalK	additionsK	deletionsKufiles]}(jw (00bacead92b2565926c6a60644ee7001dcabc21bfilenameXtimelock-api/src/test/java/com/palantir/atlasdb/timelock/api/ConjureLockRequestTest.javastatusmodifiedjw Kjw KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7702273fe256abc4ccc69a3b1b2badbde57a9870/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FConjureLockRequestTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7702273fe256abc4ccc69a3b1b2badbde57a9870/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FConjureLockRequestTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FConjureLockRequestTest.java?ref=7702273fe256abc4ccc69a3b1b2badbde57a9870patchX  @@ -35,7 +35,7 @@
 
 public class ConjureLockRequestTest {
     private static final String BASE = "src/test/resources/conjure-lock-request-wire-format/";
-    private static final String LEGACY_CONJURE_LOCK_REQUEST_FILE = "old";
+    private static final String LEGACY_CONJURE_LOCK_REQUEST_FILE = "legacy";
     private static final String WITH_METADATA_FILE = "with-metadata";
     private static final boolean REWRITE_JSON_BLOBS = false;
 uau(d95c5b0e0cd14bb6d47ce4f21a957da61af3617a}(sha(d95c5b0e0cd14bb6d47ce4f21a957da61af3617anode_idEC_kwDOAjP5fdoAKGQ5NWM1YjBlMGNkMTRiYjZkNDdjZTRmMjFhOTU3ZGE2MWFmMzYxN2Ecommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-07-10T18:23:34Zu	committer}(j x David Schlosnaglejx davids@palantir.comjx 2023-07-10T18:23:34ZumessageCall getListSize directlytree}(jw (b481cb393a17dedd4f146959a37f0f751c6f211curl`https://api.github.com/repos/palantir/atlasdb/git/trees/b481cb393a17dedd4f146959a37f0f751c6f211cujx bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d95c5b0e0cd14bb6d47ce4f21a957da61af3617a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmSsTKYACgkQR9hsJ74Q
0l8+7Af/aJWMAMCsKP9wXZ+unk7MiSd6F0RfuPOBxvuzgwqnBgu/yNiFB/Q7qWZd
KCYXOExMcz2we0iMhQSxXkYu7x7JkJ0K4rqHoR0+05QWb6ZJdGu1JrQRmfG28iF8
A+16Q6knMOqQznJKSMgY1fryQRkGtX1PeoiASHn6W5T4UpGsS6NkdRUbyqT9BbGC
DHJgQhpxQ9sHgjbyAHiySIZbZFn8WBY6q92Y47hSiRlkXlNpdn0Gj2WBLvaUQRVW
BxRpEo78OaJhPCuc6KwqiQ3CfXBzTsl6Y3wuMn8l3otFdbzE6iDVO5X9F8NiH4Vn
woGCRzQGKivdF6tiKrV9SfBl3Ay6sQ==
=fR5w
-----END PGP SIGNATURE-----payloadtree b481cb393a17dedd4f146959a37f0f751c6f211c
parent 83a74c81324c1af7f370baed8c0f2ca00f13ece8
author David Schlosnagle <davids@palantir.com> 1689013414 -0400
committer David Schlosnagle <davids@palantir.com> 1689013414 -0400

Call getListSize directly
uujx ^https://api.github.com/repos/palantir/atlasdb/commits/d95c5b0e0cd14bb6d47ce4f21a957da61af3617ahtml_urlShttps://github.com/palantir/atlasdb/commit/d95c5b0e0cd14bb6d47ce4f21a957da61af3617acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d95c5b0e0cd14bb6d47ce4f21a957da61af3617a/commentsjw }(loginschlosnaidMBjw MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jx %https://api.github.com/users/schlosnajx https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujx }(j#x schlosnaj%x MBjw MDQ6VXNlcjU0NTk0j'x 1https://avatars.githubusercontent.com/u/54594?v=4j)x h5jx %https://api.github.com/users/schlosnajx https://github.com/schlosnaj,x /https://api.github.com/users/schlosna/followersj.x <https://api.github.com/users/schlosna/following{/other_user}j0x 5https://api.github.com/users/schlosna/gists{/gist_id}j2x <https://api.github.com/users/schlosna/starred{/owner}{/repo}j4x 3https://api.github.com/users/schlosna/subscriptionsj6x *https://api.github.com/users/schlosna/orgsj8x +https://api.github.com/users/schlosna/reposj:x 6https://api.github.com/users/schlosna/events{/privacy}j<x 5https://api.github.com/users/schlosna/received_eventsj>x Userj@x uparents]}(jw (83a74c81324c1af7f370baed8c0f2ca00f13ece8jx ^https://api.github.com/repos/palantir/atlasdb/commits/83a74c81324c1af7f370baed8c0f2ca00f13ece8jx Shttps://github.com/palantir/atlasdb/commit/83a74c81324c1af7f370baed8c0f2ca00f13ece8uastats}(totalK(	additionsK	deletionsKufiles]}(jw (63787d74ad98cccd71313f8155a246a327aa33a3filenameiatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/thrift/ThriftObjectSizeUtils.javastatusmodifiedjZx Kj[x KchangesK(blob_urlhttps://github.com/palantir/atlasdb/blob/d95c5b0e0cd14bb6d47ce4f21a957da61af3617a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fthrift%2FThriftObjectSizeUtils.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d95c5b0e0cd14bb6d47ce4f21a957da61af3617a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fthrift%2FThriftObjectSizeUtils.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fthrift%2FThriftObjectSizeUtils.java?ref=d95c5b0e0cd14bb6d47ce4f21a957da61af3617apatchX  @@ -55,7 +55,7 @@ public static long getApproximateSizeOfMutationMap(Map<ByteBuffer, Map<String, L
                 currentMap -> getCollectionSize(currentMap.keySet(), ThriftObjectSizeUtils::getStringSize)
                         + getCollectionSize(
                                 currentMap.values(),
-                                mutations -> getCollectionSize(mutations, ThriftObjectSizeUtils::getMutationSize)));
+                                mutations -> getListSize(mutations, ThriftObjectSizeUtils::getMutationSize)));
         return approxBytesForKeys + approxBytesForValues;
     }
 
@@ -69,7 +69,7 @@ public static Map<String, Long> getSizeOfMutationPerTable(
             tableToMutations.forEach((table, mutations) -> {
                 long size = tableToSize.getOrDefault(table, 0L);
                 size += keySize;
-                size += getCollectionSize(mutations, ThriftObjectSizeUtils::getMutationSize);
+                size += getListSize(mutations, ThriftObjectSizeUtils::getMutationSize);
 
                 tableToSize.put(table, size);
             });
@@ -82,7 +82,7 @@ public static long getApproximateSizeOfColsByKey(Map<ByteBuffer, List<ColumnOrSu
         return getCollectionSize(
                 result.entrySet(),
                 rowResult -> ThriftObjectSizeUtils.getByteBufferSize(rowResult.getKey())
-                        + getCollectionSize(rowResult.getValue(), ThriftObjectSizeUtils::getColumnOrSuperColumnSize));
+                        + getListSize(rowResult.getValue(), ThriftObjectSizeUtils::getColumnOrSuperColumnSize));
     }
 
     public static long getApproximateSizeOfColListsByKey(Map<ByteBuffer, List<List<ColumnOrSuperColumn>>> result) {
@@ -92,13 +92,13 @@ public static long getApproximateSizeOfColListsByKey(Map<ByteBuffer, List<List<C
     }
 
     public static long getApproximateSizeOfKeySlices(List<KeySlice> slices) {
-        return getCollectionSize(slices, ThriftObjectSizeUtils::getKeySliceSize);
+        return getListSize(slices, ThriftObjectSizeUtils::getKeySliceSize);
     }
 
     public static long getCasByteCount(List<Column> updates) {
-        // TODO(nziebart): CAS actually writes more bytes than this, because the associated Paxos negotations must
+        // TODO(nziebart): CAS actually writes more bytes than this, because the associated Paxos negotiations must
         // be persisted
-        return getCollectionSize(updates, ThriftObjectSizeUtils::getColumnSize);
+        return getListSize(updates, ThriftObjectSizeUtils::getColumnSize);
     }
 
     public static long getColumnOrSuperColumnSize(ColumnOrSuperColumn columnOrSuperColumn) {
@@ -131,7 +131,7 @@ public static long getCqlResultSize(CqlResult cqlResult) {
             return getNullSize();
         }
         return getThriftEnumSize()
-                + getCollectionSize(cqlResult.getRows(), ThriftObjectSizeUtils::getCqlRowSize)
+                + getListSize(cqlResult.getRows(), ThriftObjectSizeUtils::getCqlRowSize)
                 + Integer.BYTES
                 + getCqlMetadataSize(cqlResult.getSchema());
     }
@@ -141,7 +141,7 @@ public static long getKeySliceSize(KeySlice keySlice) {
             return getNullSize();
         }
         return getBytesSize(keySlice, KeySlice::bufferForKey, KeySlice::getKey)
-                + getCollectionSize(keySlice.getColumns(), ThriftObjectSizeUtils::getColumnOrSuperColumnSize);
+                + getListSize(keySlice.getColumns(), ThriftObjectSizeUtils::getColumnOrSuperColumnSize);
     }
 
     public static long getStringSize(String string) {
@@ -166,7 +166,7 @@ private static long getCounterSuperColumnSize(CounterSuperColumn counterSuperCol
             return getNullSize();
         }
         return getBytesSize(counterSuperColumn, CounterSuperColumn::bufferForName, CounterSuperColumn::getName)
-                + getCollectionSize(counterSuperColumn.getColumns(), ThriftObjectSizeUtils::getCounterColumnSize);
+                + getListSize(counterSuperColumn.getColumns(), ThriftObjectSizeUtils::getCounterColumnSize);
     }
 
     private static long getCounterColumnSize(CounterColumn counterColumn) {
@@ -182,7 +182,7 @@ private static long getSuperColumnSize(SuperColumn superColumn) {
             return getNullSize();
         }
         return getBytesSize(superColumn, SuperColumn::bufferForName, SuperColumn::getName)
-                + getCollectionSize(superColumn.getColumns(), ThriftObjectSizeUtils::getColumnSize);
+                + getListSize(superColumn.getColumns(), ThriftObjectSizeUtils::getColumnSize);
     }
 
     private static long getDeletionSize(Deletion deletion) {
@@ -199,7 +199,7 @@ private static long getSlicePredicateSize(SlicePredicate predicate) {
             return getNullSize();
         }
 
-        return getCollectionSize(predicate.getColumn_names(), ThriftObjectSizeUtils::getByteBufferSize)
+        return getListSize(predicate.getColumn_names(), ThriftObjectSizeUtils::getByteBufferSize)
                 + getSliceRangeSize(predicate.getSlice_range());
     }
 
@@ -236,7 +236,7 @@ private static long getCqlRowSize(CqlRow cqlRow) {
             return getNullSize();
         }
         return getBytesSize(cqlRow, CqlRow::bufferForKey, CqlRow::getKey)
-                + getCollectionSize(cqlRow.getColumns(), ThriftObjectSizeUtils::getColumnSize);
+                + getListSize(cqlRow.getColumns(), ThriftObjectSizeUtils::getColumnSize);
     }
 
     private static long getThriftEnumSize() {
@@ -291,23 +291,20 @@ public static <T> long getCollectionSize(@Nullable Collection<T> collection, ToL
         if (collection == null) {
             return getNullSize();
         }
-
-        // random access lists can be more efficiently accessed via List::get(int)
-        // as this avoids allocating iterator
-        if (isRandomAccessList(collection)) {
-            return getCollectionSize((List<T>) collection, sizeFunction);
+        if (collection instanceof List) {
+            return getListSize((List<T>) collection, sizeFunction);
         }
         return sumSizes(collection, sizeFunction);
     }
 
-    private static <T> long getCollectionSize(@Nullable List<T> list, ToLongFunction<T> sizeFunction) {
+    private static <T> long getListSize(@Nullable List<T> list, ToLongFunction<T> sizeFunction) {
         if (list == null) {
             return getNullSize();
         }
 
         // random access lists can be more efficiently accessed via List::get(int)
         // as this avoids allocating iterator
-        if (isRandomAccessList(list)) {
+        if (list instanceof RandomAccess) {
             long sum = 0L;
             //noinspection ForLoopReplaceableByForEach -- performance sensitive
             for (int i = 0; i < list.size(); i++) {
@@ -321,13 +318,10 @@ private static <T> long getCollectionSize(@Nullable List<T> list, ToLongFunction
 
     private static <T> long sumSizes(Collection<T> collection, ToLongFunction<T> sizeFunction) {
         long sum = 0L;
+        //noinspection ForLoopReplaceableByStream -- performance sensitive, avoiding stream allocations
         for (T t : collection) {
             sum += sizeFunction.applyAsLong(t);
         }
         return sum;
     }
-
-    private static <T> boolean isRandomAccessList(Collection<T> collection) {
-        return collection instanceof RandomAccess && collection instanceof List;
-    }
 }uau(ab7e9cb4adc2c1aff9c5cdedf5ae722d5a94bbc4}(sha(ab7e9cb4adc2c1aff9c5cdedf5ae722d5a94bbc4node_idEC_kwDOAjP5fdoAKGFiN2U5Y2I0YWRjMmMxYWZmOWM1Y2RlZGY1YWU3MjJkNWE5NGJiYzQcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-04-28T16:39:36Zu	committer}(jwx 
svc-changelogjyx svc-changelog@palantir.comj{x 2023-04-28T16:39:36ZumessageAdd generated changelog entriestree}(jox (7229a96ee0e3ac5dfc5525415385e307ac3f3f3burl`https://api.github.com/repos/palantir/atlasdb/git/trees/7229a96ee0e3ac5dfc5525415385e307ac3f3f3bujx bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ab7e9cb4adc2c1aff9c5cdedf5ae722d5a94bbc4
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmRL9sgJEHYaJX37fAFQAADeJgEA5UJZEQHyjwo3BSq36v+EGQ5z
RilDtWcln5NeHNW/JrsA/0cZDZaOTFP4sVd7sl0n4n1oUAlPEX2uuzD5BNSOifEC
=DYoS
-----END PGP SIGNATURE-----payloadX  tree 7229a96ee0e3ac5dfc5525415385e307ac3f3f3b
parent ab5b63b4a9cc50d21e87ede962fc561b66e94559
author svc-changelog <svc-changelog@palantir.com> 1682699976 +0000
committer svc-changelog <svc-changelog@palantir.com> 1682699976 +0000

Add generated changelog entriesuujx ^https://api.github.com/repos/palantir/atlasdb/commits/ab7e9cb4adc2c1aff9c5cdedf5ae722d5a94bbc4html_urlShttps://github.com/palantir/atlasdb/commit/ab7e9cb4adc2c1aff9c5cdedf5ae722d5a94bbc4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ab7e9cb4adc2c1aff9c5cdedf5ae722d5a94bbc4/commentsjux }(login
svc-changelogidJ#jqx MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jx *https://api.github.com/users/svc-changelogjx  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj}x }(jx 
svc-changelogjx J#jqx MDQ6VXNlcjg0MDc3NjAzjx 4https://avatars.githubusercontent.com/u/84077603?v=4jx h5jx *https://api.github.com/users/svc-changelogjx  https://github.com/svc-changelogjx 4https://api.github.com/users/svc-changelog/followersjx Ahttps://api.github.com/users/svc-changelog/following{/other_user}jx :https://api.github.com/users/svc-changelog/gists{/gist_id}jx Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jx 8https://api.github.com/users/svc-changelog/subscriptionsjx /https://api.github.com/users/svc-changelog/orgsjx 0https://api.github.com/users/svc-changelog/reposjx ;https://api.github.com/users/svc-changelog/events{/privacy}jx :https://api.github.com/users/svc-changelog/received_eventsjx Userjx uparents]}(jox (ab5b63b4a9cc50d21e87ede962fc561b66e94559jx ^https://api.github.com/repos/palantir/atlasdb/commits/ab5b63b4a9cc50d21e87ede962fc561b66e94559jx Shttps://github.com/palantir/atlasdb/commit/ab5b63b4a9cc50d21e87ede962fc561b66e94559uastats}(totalK	additionsK	deletionsK ufiles]}(jox (76e1a7993fd1a88f86737b4d470e05d637bc0990filename$changelog/@unreleased/pr-6554.v2.ymlstatusaddedjx Kjx K changesKblob_url|https://github.com/palantir/atlasdb/blob/ab7e9cb4adc2c1aff9c5cdedf5ae722d5a94bbc4/changelog%2F%40unreleased%2Fpr-6554.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/ab7e9cb4adc2c1aff9c5cdedf5ae722d5a94bbc4/changelog%2F%40unreleased%2Fpr-6554.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6554.v2.yml?ref=ab7e9cb4adc2c1aff9c5cdedf5ae722d5a94bbc4patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Adds metric for tracking the size of the cassandra client pool
+  links:
+  - https://github.com/palantir/atlasdb/pull/6554uau(ab5b63b4a9cc50d21e87ede962fc561b66e94559}(sha(ab5b63b4a9cc50d21e87ede962fc561b66e94559node_idEC_kwDOAjP5fdoAKGFiNWI2M2I0YTljYzUwZDIxZTg3ZWRlOTYyZmM1NjFiNjZlOTQ1NTkcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-28T16:36:42Zu	committer}(jx 
Sam Kramerjx skramer@palantir.comjx 2023-04-28T16:36:42Zumessagespotlesstree}(jx (ad2d7ca61d3b621a624948fea4368e6bedd28a4aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/ad2d7ca61d3b621a624948fea4368e6bedd28a4aujx bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ab5b63b4a9cc50d21e87ede962fc561b66e94559
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRL9hoACgkQmPPOpKR4
XS2lQAf9F/xvzhBCaYZNNjUAfVPgjwG07sboAHkwO8SAM3Bqtq0l90XGAZ28+o5S
qvLuo5Jue2T1mtUuNceSh+r44EK7cnxKnrH2Zf4yDs2OIgg/sXCGH7hDwbC9W9dr
NApc6+9u/tSC7BLInLbQMdU+Su47LwlrHqitKnYPQyEGgLVPBRcWHouDH6JFsXNR
+F8oF7QbqvCfvSbNEZpbiLhLsQfSGLIs7w4ll0gFsAIHOtP1K2cnDSTrJy/QsV3J
l1hILeWQ1L1PfqXVtC9kFckze0W4bToxnzEJxjLQUqdCOfGkENZ8qx7OkT5SzGr4
aGtqRBGD7f46Jz2wshVM0gMSHh7L2w==
=ZdV5
-----END PGP SIGNATURE-----payloadtree ad2d7ca61d3b621a624948fea4368e6bedd28a4a
parent cdb8b19f33e296445fe012646583f0ee77e9938e
author Sam Kramer <skramer@palantir.com> 1682699802 +0100
committer Sam Kramer <skramer@palantir.com> 1682699802 +0100

spotless
uujx ^https://api.github.com/repos/palantir/atlasdb/commits/ab5b63b4a9cc50d21e87ede962fc561b66e94559html_urlShttps://github.com/palantir/atlasdb/commit/ab5b63b4a9cc50d21e87ede962fc561b66e94559comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ab5b63b4a9cc50d21e87ede962fc561b66e94559/commentsjx }(login
Sam-KrameridJ^2_ jx MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jx 'https://api.github.com/users/Sam-Kramerjy https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujx }(jy 
Sam-Kramerjy J^2_ jx MDQ6VXNlcjYyMzg4MTQ=jy 3https://avatars.githubusercontent.com/u/6238814?v=4jy h5jx 'https://api.github.com/users/Sam-Kramerjy https://github.com/Sam-Kramerjy 1https://api.github.com/users/Sam-Kramer/followersjy >https://api.github.com/users/Sam-Kramer/following{/other_user}jy 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j y >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j"y 5https://api.github.com/users/Sam-Kramer/subscriptionsj$y ,https://api.github.com/users/Sam-Kramer/orgsj&y -https://api.github.com/users/Sam-Kramer/reposj(y 8https://api.github.com/users/Sam-Kramer/events{/privacy}j*y 7https://api.github.com/users/Sam-Kramer/received_eventsj,y Userj.y uparents]}(jx (cdb8b19f33e296445fe012646583f0ee77e9938ejx ^https://api.github.com/repos/palantir/atlasdb/commits/cdb8b19f33e296445fe012646583f0ee77e9938ejy Shttps://github.com/palantir/atlasdb/commit/cdb8b19f33e296445fe012646583f0ee77e9938euastats}(totalK	additionsK	deletionsKufiles]}(jx (4f5a4bbcc2173130b839fe9867577c157a7bb0d3filenamedatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javastatusmodifiedjHy KjIy KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ab5b63b4a9cc50d21e87ede962fc561b66e94559/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ab5b63b4a9cc50d21e87ede962fc561b66e94559/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=ab5b63b4a9cc50d21e87ede962fc561b66e94559patchX  @@ -366,9 +366,9 @@ void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> des
         Preconditions.checkState(
                 !getCurrentPools().isEmpty() || serversToAdd.isEmpty(),
                 "No servers were successfully added to the pool. This means we could not come to a consensus on"
-                        + " cluster topology, and the client cannot connect as there are no valid hosts. This state should"
-                        + " be transient (<5 minutes), and if it is not, indicates that the user may have accidentally"
-                        + " configured AltasDB to use two separate Cassandra clusters (i.e., user-led split brain).",
+                    + " cluster topology, and the client cannot connect as there are no valid hosts. This state should"
+                    + " be transient (<5 minutes), and if it is not, indicates that the user may have accidentally"
+                    + " configured AltasDB to use two separate Cassandra clusters (i.e., user-led split brain).",
                 SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())));
 
         logRefreshedHosts(validatedServersToAdd, serversToShutdown, absentServers);uau(36de248855643b2d40bd3c9dd1d2cdebad8a79e7}(sha(36de248855643b2d40bd3c9dd1d2cdebad8a79e7node_idEC_kwDOAjP5fdoAKDM2ZGUyNDg4NTU2NDNiMmQ0MGJkM2M5ZGQxZDJjZGViYWQ4YTc5ZTccommit}(author}(nameLucas Sousa Meirelesemailmeireles31@msn.comdate2023-06-21T10:36:35Zu	committer}(jey svc-autoreleasejgy -pd-foundry-infrastructure-notify@palantir.comjiy 2023-06-21T10:36:35Zumessage"Autorelease 0.872.0-rc1

[skip ci]tree}(j]y (42d5e372a9f3600027c89c35c8fdcff3b1fcf1c8url`https://api.github.com/repos/palantir/atlasdb/git/trees/42d5e372a9f3600027c89c35c8fdcff3b1fcf1c8ujuy bhttps://api.github.com/repos/palantir/atlasdb/git/commits/36de248855643b2d40bd3c9dd1d2cdebad8a79e7
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmSS0rQACgkQhbrR8ip7mDCV4wD+KnT1WBLMhZ5fHe7A1T004GNk
+bvgIhrBW6hrjNqPNgkA/1x0ZJOUK/Vh5i6bEMBTGUw3P8G3YBhMOhj+Hstl1WjN
=DdqM
-----END PGP SIGNATURE-----
payloadX  tree 42d5e372a9f3600027c89c35c8fdcff3b1fcf1c8
parent f0f0ced3ece8bb4e51a0f6e86a2e09b1ac23f24a
author Lucas Sousa Meireles <meireles31@msn.com> 1687343795 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1687343795 +0000

Autorelease 0.872.0-rc1

[skip ci]uujuy ^https://api.github.com/repos/palantir/atlasdb/commits/36de248855643b2d40bd3c9dd1d2cdebad8a79e7html_urlShttps://github.com/palantir/atlasdb/commit/36de248855643b2d40bd3c9dd1d2cdebad8a79e7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/36de248855643b2d40bd3c9dd1d2cdebad8a79e7/commentsjcy }(loginLucasIMEidJg j_y MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5juy %https://api.github.com/users/LucasIMEjy https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujky }(jy svc-autoreleasejy J(j_y MDQ6VXNlcjUxNzE4MzQ2jy 4https://avatars.githubusercontent.com/u/51718346?v=4jy h5juy ,https://api.github.com/users/svc-autoreleasejy "https://github.com/svc-autoreleasejy 6https://api.github.com/users/svc-autorelease/followersjy Chttps://api.github.com/users/svc-autorelease/following{/other_user}jy <https://api.github.com/users/svc-autorelease/gists{/gist_id}jy Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jy :https://api.github.com/users/svc-autorelease/subscriptionsjy 1https://api.github.com/users/svc-autorelease/orgsjy 2https://api.github.com/users/svc-autorelease/reposjy =https://api.github.com/users/svc-autorelease/events{/privacy}jy <https://api.github.com/users/svc-autorelease/received_eventsjy Userjy uparents]}(j]y (f0f0ced3ece8bb4e51a0f6e86a2e09b1ac23f24ajuy ^https://api.github.com/repos/palantir/atlasdb/commits/f0f0ced3ece8bb4e51a0f6e86a2e09b1ac23f24ajy Shttps://github.com/palantir/atlasdb/commit/f0f0ced3ece8bb4e51a0f6e86a2e09b1ac23f24auastats}(totalK 	additionsK 	deletionsK ufiles]u(afa3cd9b80299d91edf7d637ef86383c99b076ae}(sha(afa3cd9b80299d91edf7d637ef86383c99b076aenode_idEC_kwDOAjP5fdoAKGFmYTNjZDliODAyOTlkOTFlZGY3ZDYzN2VmODYzODNjOTliMDc2YWUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-27T02:42:17Zu	committer}(jy Jeremy Kongjy jkong@palantir.comjy 2023-06-27T02:42:17Zumessagerc7tree}(jy (06044b27fa6de1d8e3ae9e5c94a07651932d27d1url`https://api.github.com/repos/palantir/atlasdb/git/trees/06044b27fa6de1d8e3ae9e5c94a07651932d27d1ujy bhttps://api.github.com/repos/palantir/atlasdb/git/commits/afa3cd9b80299d91edf7d637ef86383c99b076ae
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSaTIkACgkQTLdFKain
zjwFcAf/QVBHvk/emeJwoEV4NqIxHxLwfhCTKOuRSPJfUU7JnEviAUVuBHAw8Olj
WkyZZNi+EMFjR/MOGr0awe51YfmQ4EfaSUhSHz8K7MxJmOl5In4S90d0pfoFkZxz
3TW9Qrs2ao3XcRi7ZM31Mtq/qX63u9o0DMaAqpvxTFIWV8aMBGtSsa/dIIlZqtck
JklUDkkX7ImhKEpL0ymlVvcS5Jgil3NJvQ11c/3Vs8x3MIvONP0Orfo1xU/wEDnB
AQsewX7KtwDT0K/W8kkfm9c6ldb98eKKpNlKv2nSQ7ZIpxrrWlOKgOINmvEhH1bk
Vgsg1UX5q6l4107oLUw+okMUPdJ3Eg==
=QHED
-----END PGP SIGNATURE-----payloadtree 06044b27fa6de1d8e3ae9e5c94a07651932d27d1
parent 2cd458721176dfde79df9f4764cbf2e23b3291ee
author Jeremy Kong <jkong@palantir.com> 1687833737 +0800
committer Jeremy Kong <jkong@palantir.com> 1687833737 +0800

rc7
uujy ^https://api.github.com/repos/palantir/atlasdb/commits/afa3cd9b80299d91edf7d637ef86383c99b076aehtml_urlShttps://github.com/palantir/atlasdb/commit/afa3cd9b80299d91edf7d637ef86383c99b076aecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/afa3cd9b80299d91edf7d637ef86383c99b076ae/commentsjy }(login
jeremyk-91idJZ jy MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jy 'https://api.github.com/users/jeremyk-91jy https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujy }(jy 
jeremyk-91jy JZ jy MDQ6VXNlcjU5NTU1MTA=jy 3https://avatars.githubusercontent.com/u/5955510?v=4jy h5jy 'https://api.github.com/users/jeremyk-91jy https://github.com/jeremyk-91jy 1https://api.github.com/users/jeremyk-91/followersjy >https://api.github.com/users/jeremyk-91/following{/other_user}jy 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jy >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jz 5https://api.github.com/users/jeremyk-91/subscriptionsjz ,https://api.github.com/users/jeremyk-91/orgsjz -https://api.github.com/users/jeremyk-91/reposjz 8https://api.github.com/users/jeremyk-91/events{/privacy}j	z 7https://api.github.com/users/jeremyk-91/received_eventsjz Userj
z uparents]}(jy (2cd458721176dfde79df9f4764cbf2e23b3291eejy ^https://api.github.com/repos/palantir/atlasdb/commits/2cd458721176dfde79df9f4764cbf2e23b3291eejy Shttps://github.com/palantir/atlasdb/commit/2cd458721176dfde79df9f4764cbf2e23b3291eeuastats}(totalK	additionsK	deletionsKufiles](}(jy (d28834cb346cbfad789589ced7d81f5709fae00cfilename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedj'z Kj(z KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/afa3cd9b80299d91edf7d637ef86383c99b076ae/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/afa3cd9b80299d91edf7d637ef86383c99b076ae/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=afa3cd9b80299d91edf7d637ef86383c99b076aepatchX  @@ -2,7 +2,7 @@ version: '2'
 
 services:
   cassandra1:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
     ports:
       - "9160"
       - "9042"
@@ -22,7 +22,7 @@ services:
         ipv4_address: 10.20.20.2
 
   cassandra2:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
     ports:
       - "9160"
       - "9042"
@@ -42,7 +42,7 @@ services:
         ipv4_address: 10.20.20.3
 
   cassandra3:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
     ports:
       - "9160"
       - "9042"u}(jy (6d65ed99c75a1f027fdaabaea55923135c1ecf5dj-z *scripts/circle-ci/publish-to-antithesis.shj/z modifiedj'z Kj(z Kj1z Kj2z https://github.com/palantir/atlasdb/blob/afa3cd9b80299d91edf7d637ef86383c99b076ae/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj4z https://github.com/palantir/atlasdb/raw/afa3cd9b80299d91edf7d637ef86383c99b076ae/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj6z https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=afa3cd9b80299d91edf7d637ef86383c99b076aej8z X:  @@ -26,9 +26,9 @@ printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://$
 
 VERSION=$(./gradlew -q printVersion)
 
-docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
-docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc8 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc8
-docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc8
+docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
+docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc7 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc7
+docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc7
 
 docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}
 docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}ueu(abc509fc315970b6b62832c8a3c6eb1fe69acf72}(sha(abc509fc315970b6b62832c8a3c6eb1fe69acf72node_idEC_kwDOAjP5fdoAKGFiYzUwOWZjMzE1OTcwYjZiNjI4MzJjOGEzYzZlYjFmZTY5YWNmNzIcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-02-24T15:01:54Zu	committer}(jLz 
svc-changelogjNz svc-changelog@palantir.comjPz 2023-02-24T15:01:54ZumessageAdd generated changelog entriestree}(jDz (fe4aeb1e4357a58683502e190620da41eb4b3a18url`https://api.github.com/repos/palantir/atlasdb/git/trees/fe4aeb1e4357a58683502e190620da41eb4b3a18uj\z bhttps://api.github.com/repos/palantir/atlasdb/git/commits/abc509fc315970b6b62832c8a3c6eb1fe69acf72
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmP40WIJEHYaJX37fAFQAACsmwD/aNO3YIOaLetxzKIGXp40w/HJ
corFlzx0OIl5cJsOSUEA/119kTjgwsn0AWtYjaiOE3j6/dtuYKFwmzYP7OsRT41U
=ohEh
-----END PGP SIGNATURE-----payloadX  tree fe4aeb1e4357a58683502e190620da41eb4b3a18
parent 8ef3eec721ca9d99f65cda315f889069cf587b76
author svc-changelog <svc-changelog@palantir.com> 1677250914 +0000
committer svc-changelog <svc-changelog@palantir.com> 1677250914 +0000

Add generated changelog entriesuuj\z ^https://api.github.com/repos/palantir/atlasdb/commits/abc509fc315970b6b62832c8a3c6eb1fe69acf72html_urlShttps://github.com/palantir/atlasdb/commit/abc509fc315970b6b62832c8a3c6eb1fe69acf72comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/abc509fc315970b6b62832c8a3c6eb1fe69acf72/commentsjJz }(login
svc-changelogidJ#jFz MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j\z *https://api.github.com/users/svc-changelogjjz  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujRz }(joz 
svc-changelogjqz J#jFz MDQ6VXNlcjg0MDc3NjAzjsz 4https://avatars.githubusercontent.com/u/84077603?v=4juz h5j\z *https://api.github.com/users/svc-changelogjjz  https://github.com/svc-changelogjxz 4https://api.github.com/users/svc-changelog/followersjzz Ahttps://api.github.com/users/svc-changelog/following{/other_user}j|z :https://api.github.com/users/svc-changelog/gists{/gist_id}j~z Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jz 8https://api.github.com/users/svc-changelog/subscriptionsjz /https://api.github.com/users/svc-changelog/orgsjz 0https://api.github.com/users/svc-changelog/reposjz ;https://api.github.com/users/svc-changelog/events{/privacy}jz :https://api.github.com/users/svc-changelog/received_eventsjz Userjz uparents]}(jDz (8ef3eec721ca9d99f65cda315f889069cf587b76j\z ^https://api.github.com/repos/palantir/atlasdb/commits/8ef3eec721ca9d99f65cda315f889069cf587b76jjz Shttps://github.com/palantir/atlasdb/commit/8ef3eec721ca9d99f65cda315f889069cf587b76uastats}(totalK	additionsK	deletionsK ufiles]}(jDz (2b7ebf3f2002680b8eeae307892324077aef87b8filename$changelog/@unreleased/pr-6455.v2.ymlstatusaddedjz Kjz K changesKblob_url|https://github.com/palantir/atlasdb/blob/abc509fc315970b6b62832c8a3c6eb1fe69acf72/changelog%2F%40unreleased%2Fpr-6455.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/abc509fc315970b6b62832c8a3c6eb1fe69acf72/changelog%2F%40unreleased%2Fpr-6455.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6455.v2.yml?ref=abc509fc315970b6b62832c8a3c6eb1fe69acf72patch@@ -0,0 +1,6 @@
+type: fix
+fix:
+  description: AtlasDB clients can now recover after receiving a dissenting response
+    to a Cassandra Topology check.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6455uau(3d9d81a4185a326ec16293f69bbb21dca78b6c09}(sha(3d9d81a4185a326ec16293f69bbb21dca78b6c09node_idEC_kwDOAjP5fdoAKDNkOWQ4MWE0MTg1YTMyNmVjMTYyOTNmNjliYmIyMWRjYTc4YjZjMDkcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-04-04T13:49:25Zu	committer}(jz GitHubjz noreply@github.comjz 2023-04-04T13:49:25Zumessage+Excavator:  Upgrade Undertow Server (#6502)tree}(jz (26861a019df0a6487651a5aed9b4bb37c034b0c1url`https://api.github.com/repos/palantir/atlasdb/git/trees/26861a019df0a6487651a5aed9b4bb37c034b0c1ujz bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3d9d81a4185a326ec16293f69bbb21dca78b6c09
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkLCrlCRBK7hj4Ov3rIwAA7h8IAHHlrIJuq1C4GW1DFr6sg75g
MOxkaBKqHjA1fzwm8CHRK5ydgyX5fokLABBREL8E0FxxjPv3W+yC0xcCHIGVxBuM
JOnbiSAIm8FsW2i1ao2NxGoqYKznxaCNAeTiq7M4Tl44pyg7Zw3aGOGrIDvHOiJ5
x9z3g0XfEMOqCJVr5iLZ9YuewT9+eKCDoUbykkZzwnC9ekeNlH2ICv1iytjWZe97
RdhUr8Db92fZZQqmhSvqkH6ujoAJgguArn3MrZdNqjVjY4TtZg1gubFtvBuOi0er
8zKuj8mHmRXiIy2EbvTPIDpHWd/LwaIepWXehQJejIVctopGgOBZtJwEeh1+7fw=
=7AXY
-----END PGP SIGNATURE-----
payloadX   tree 26861a019df0a6487651a5aed9b4bb37c034b0c1
parent b38d46f704c08520dfa0a1ca08490060a2f1ba00
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1680616165 +0100
committer GitHub <noreply@github.com> 1680616165 +0000

Excavator:  Upgrade Undertow Server (#6502)

 uujz ^https://api.github.com/repos/palantir/atlasdb/commits/3d9d81a4185a326ec16293f69bbb21dca78b6c09html_urlShttps://github.com/palantir/atlasdb/commit/3d9d81a4185a326ec16293f69bbb21dca78b6c09comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3d9d81a4185a326ec16293f69bbb21dca78b6c09/commentsjz }(loginsvc-excavator-botidJjz MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5jz .https://api.github.com/users/svc-excavator-botjz $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminujz }(jz web-flowjz J/jz MDQ6VXNlcjE5ODY0NDQ3jz 4https://avatars.githubusercontent.com/u/19864447?v=4jz h5jz %https://api.github.com/users/web-flowjz https://github.com/web-flowjz /https://api.github.com/users/web-flow/followersjz <https://api.github.com/users/web-flow/following{/other_user}jz 5https://api.github.com/users/web-flow/gists{/gist_id}jz <https://api.github.com/users/web-flow/starred{/owner}{/repo}jz 3https://api.github.com/users/web-flow/subscriptionsjz *https://api.github.com/users/web-flow/orgsjz +https://api.github.com/users/web-flow/reposjz 6https://api.github.com/users/web-flow/events{/privacy}jz 5https://api.github.com/users/web-flow/received_eventsj{ Userj{ uparents]}(jz (b38d46f704c08520dfa0a1ca08490060a2f1ba00jz ^https://api.github.com/repos/palantir/atlasdb/commits/b38d46f704c08520dfa0a1ca08490060a2f1ba00jz Shttps://github.com/palantir/atlasdb/commit/b38d46f704c08520dfa0a1ca08490060a2f1ba00uastats}(totalK	additionsK	deletionsKufiles](}(jz (beb847c98456507c4d4b1a5a8801accabc1394e4filename
versions.lockstatusmodifiedj{ Kj{ KchangesKblob_url_https://github.com/palantir/atlasdb/blob/3d9d81a4185a326ec16293f69bbb21dca78b6c09/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/3d9d81a4185a326ec16293f69bbb21dca78b6c09/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=3d9d81a4185a326ec16293f69bbb21dca78b6c09patchXT  @@ -186,7 +186,7 @@ io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf
 io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
-io.undertow:undertow-core:2.2.22.Final (2 constraints: 341d4606)
+io.undertow:undertow-core:2.2.24.Final (2 constraints: 361dd006)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)u}(jz (4b89bc1a7343e19e2133e9125547fc4f7bbd1800j#{ versions.propsj%{ modifiedj{ Kj{ Kj'{ Kj({ `https://github.com/palantir/atlasdb/blob/3d9d81a4185a326ec16293f69bbb21dca78b6c09/versions.propsj*{ _https://github.com/palantir/atlasdb/raw/3d9d81a4185a326ec16293f69bbb21dca78b6c09/versions.propsj,{ rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=3d9d81a4185a326ec16293f69bbb21dca78b6c09j.{ X'  @@ -46,7 +46,7 @@ commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
 io.netty:* = 4.1.90.Final
-io.undertow:* = 2.2.22.Final
+io.undertow:* = 2.2.24.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2ueu(5077f5dcb2e12eb11a23d47a6efd2f5169d25715}(sha(5077f5dcb2e12eb11a23d47a6efd2f5169d25715node_idEC_kwDOAjP5fdoAKDUwNzdmNWRjYjJlMTJlYjExYTIzZDQ3YTZlZmQyZjUxNjlkMjU3MTUcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-04-28T12:23:50Zu	committer}(jB{ svc-autoreleasejD{ -pd-foundry-infrastructure-notify@palantir.comjF{ 2023-04-28T12:23:50Zumessage"Autorelease 0.845.0-rc1

[skip ci]tree}(j:{ (da21810e8120dfd3d1a08977b2436f2198a6a73curl`https://api.github.com/repos/palantir/atlasdb/git/trees/da21810e8120dfd3d1a08977b2436f2198a6a73cujR{ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5077f5dcb2e12eb11a23d47a6efd2f5169d25715
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRLutcACgkQhbrR8ip7mDAT9gEA6Picfi4o35SbBrPHqHuDJn40
pQMleTNfZ/VD7mgwBbUBAJrokUJpJcTaUbH4dTbB+NTZoNBvEDSnVWjdBUUKaDFp
=QB5d
-----END PGP SIGNATURE-----
payloadX(  tree da21810e8120dfd3d1a08977b2436f2198a6a73c
parent 1bd3be81c72338d8bc496cae6c6980f66b1dd638
author aalouane <30903736+ergo14@users.noreply.github.com> 1682684630 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1682684630 +0000

Autorelease 0.845.0-rc1

[skip ci]uujR{ ^https://api.github.com/repos/palantir/atlasdb/commits/5077f5dcb2e12eb11a23d47a6efd2f5169d25715html_urlShttps://github.com/palantir/atlasdb/commit/5077f5dcb2e12eb11a23d47a6efd2f5169d25715comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5077f5dcb2e12eb11a23d47a6efd2f5169d25715/commentsj@{ }(loginergo14idJj<{ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jR{ #https://api.github.com/users/ergo14j`{ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url'      1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujH{ }(je{ svc-autoreleasejg{ J(j<{ MDQ6VXNlcjUxNzE4MzQ2ji{ 4https://avatars.githubusercontent.com/u/51718346?v=4jk{ h5jR{ ,https://api.github.com/users/svc-autoreleasej`{ "https://github.com/svc-autoreleasejn{ 6https://api.github.com/users/svc-autorelease/followersjp{ Chttps://api.github.com/users/svc-autorelease/following{/other_user}jr{ <https://api.github.com/users/svc-autorelease/gists{/gist_id}jt{ Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jv{ :https://api.github.com/users/svc-autorelease/subscriptionsjx{ 1https://api.github.com/users/svc-autorelease/orgsjz{ 2https://api.github.com/users/svc-autorelease/reposj|{ =https://api.github.com/users/svc-autorelease/events{/privacy}j~{ <https://api.github.com/users/svc-autorelease/received_eventsj{ Userj{ uparents]}(j:{ (1bd3be81c72338d8bc496cae6c6980f66b1dd638jR{ ^https://api.github.com/repos/palantir/atlasdb/commits/1bd3be81c72338d8bc496cae6c6980f66b1dd638j`{ Shttps://github.com/palantir/atlasdb/commit/1bd3be81c72338d8bc496cae6c6980f66b1dd638uastats}(totalK 	additionsK 	deletionsK ufiles]u(92beca84c3374f34966737cbd0fe5493962e070f}(sha(92beca84c3374f34966737cbd0fe5493962e070fnode_idEC_kwDOAjP5fdoAKDkyYmVjYTg0YzMzNzRmMzQ5NjY3MzdjYmQwZmU1NDkzOTYyZTA3MGYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-03-14T23:02:23Zu	committer}(j{ Jeremy Kongj{ jkong@palantir.comj{ 2023-03-14T23:02:23ZumessageCRtree}(j{ (81376d0630285f26eb4012ffff123892a1105fc7url`https://api.github.com/repos/palantir/atlasdb/git/trees/81376d0630285f26eb4012ffff123892a1105fc7uj{ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/92beca84c3374f34966737cbd0fe5493962e070f
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQQ/P8ACgkQTLdFKain
zjxnlQgAsZMTYp/rKslZRsFrUhxkqkCNckY8vkwe7zkpAGsX/flSGHtyeQZD30tJ
J7zx3axzf579ZHjThrMGmVRmcouC8YgTeJdEo86zuuki0zaA2RDVU17MRGv80CB+
vhzR1WP3kXUWn4q7FQc1gXM/y+btu8MRwOOncs1jSSaJlKC+NIavARCi8+OfZhOZ
bXSYNRgdmJ9nEXk/yqEoBTvc+2v1F6TThnMDhxUtPa3Dvvgj90GujbCH0wuDay9W
CaTT5CcnYfsoC5upLVUidK0643isDAwqcxuO44MrdZtK5NJEeYv1DzQQ6kWRtbQ2
dpZPg+PUbfs32oLMEIQDgNwBxgGKQw==
=YSIB
-----END PGP SIGNATURE-----payloadtree 81376d0630285f26eb4012ffff123892a1105fc7
parent 796f648e308d4853b8c997f40cf1fc16d9c39b90
author Jeremy Kong <jkong@palantir.com> 1678834943 +0000
committer Jeremy Kong <jkong@palantir.com> 1678834943 +0000

CR
uuj{ ^https://api.github.com/repos/palantir/atlasdb/commits/92beca84c3374f34966737cbd0fe5493962e070fhtml_urlShttps://github.com/palantir/atlasdb/commit/92beca84c3374f34966737cbd0fe5493962e070fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/92beca84c3374f34966737cbd0fe5493962e070f/commentsj{ }(login
jeremyk-91idJZ j{ MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j{ 'https://api.github.com/users/jeremyk-91j{ https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj{ }(j{ 
jeremyk-91j{ JZ j{ MDQ6VXNlcjU5NTU1MTA=j{ 3https://avatars.githubusercontent.com/u/5955510?v=4j{ h5j{ 'https://api.github.com/users/jeremyk-91j{ https://github.com/jeremyk-91j{ 1https://api.github.com/users/jeremyk-91/followersj{ >https://api.github.com/users/jeremyk-91/following{/other_user}j{ 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j{ >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j{ 5https://api.github.com/users/jeremyk-91/subscriptionsj{ ,https://api.github.com/users/jeremyk-91/orgsj{ -https://api.github.com/users/jeremyk-91/reposj{ 8https://api.github.com/users/jeremyk-91/events{/privacy}j{ 7https://api.github.com/users/jeremyk-91/received_eventsj{ Userj{ uparents]}(j{ (796f648e308d4853b8c997f40cf1fc16d9c39b90j{ ^https://api.github.com/repos/palantir/atlasdb/commits/796f648e308d4853b8c997f40cf1fc16d9c39b90j{ Shttps://github.com/palantir/atlasdb/commit/796f648e308d4853b8c997f40cf1fc16d9c39b90uastats}(totalK	additionsKc	deletionsK"ufiles](}(j{ (0cc39a42457a17e4a89093377c3d8864a15768bafilenameSatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/ConflictHandler.javastatusmodifiedj| K j| KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FConflictHandler.javaraw_urlhttps://github.com/palantir/atlasdb/raw/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FConflictHandler.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FConflictHandler.java?ref=92beca84c3374f34966737cbd0fe5493962e070fpatchX  @@ -15,8 +15,6 @@
  */
 package com.palantir.atlasdb.transaction.api;
 
-import com.fasterxml.jackson.databind.ObjectMapper;
-
 public enum ConflictHandler {
     /**
      * If two transactions concurrently write to the same cell the one that has started later will win.  Weu}(j{ (360fb590830275fb2bcc053744705e446a7931faj
| aatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/IsolationLevel.javaj| modifiedj| Kj| Kj| Kj| https://github.com/palantir/atlasdb/blob/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIsolationLevel.javaj| https://github.com/palantir/atlasdb/raw/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIsolationLevel.javaj| https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIsolationLevel.java?ref=92beca84c3374f34966737cbd0fe5493962e070fj| }@@ -20,4 +20,4 @@ public enum IsolationLevel {
     SERIALIZABLE,
     SNAPSHOT,
     NONE;
-}
\ No newline at end of file
+}u}(j{ (a62866eedfc187b1d057728b326c060a7c0d1062j
| katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowConfiguration.javaj| modifiedj| K j| K
j| K
j| https://github.com/palantir/atlasdb/blob/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj| https://github.com/palantir/atlasdb/raw/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj| https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.java?ref=92beca84c3374f34966737cbd0fe5493962e070fj| X  @@ -16,19 +16,9 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import com.fasterxml.jackson.annotation.JsonSubTypes;
 import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import com.fasterxml.jackson.annotation.JsonTypeInfo.As;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.google.common.util.concurrent.ListeningExecutorService;
-import org.immutables.value.Value;
 
 @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
 public interface WorkflowConfiguration {
     int iterationCount();
-
-    /**
-     * Executor used to execute workload threads (i.e., transactions).
-     */
-    ListeningExecutorService executionExecutor();
 }u}(j{ (8f30fb237a5cd358c7c5da59bc5c02eced7d50d1j
| $atlasdb-workload-server/build.gradlej| modifiedj| Kj| K j| Kj| xhttps://github.com/palantir/atlasdb/blob/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-workload-server%2Fbuild.gradlej| whttps://github.com/palantir/atlasdb/raw/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-workload-server%2Fbuild.gradlej| https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=92beca84c3374f34966737cbd0fe5493962e070fj| X  @@ -17,6 +17,7 @@ dependencies {
 
     testImplementation project(':commons-executors')
     testImplementation 'org.mockito:mockito-core'
+    testImplementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
     testImplementation 'com.palantir.safe-logging:preconditions-assertj'
     testImplementation('org.jmock:jmock') {
         exclude group: 'org.hamcrest'u}(j{ (bf29ecb36d37560dd0ff90b22ff674e8ad11a892j
| Zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/AtlasDbUtils.javaj| modifiedj| Kj| Kj| Kj| https://github.com/palantir/atlasdb/blob/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj| https://github.com/palantir/atlasdb/raw/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj| https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.java?ref=92beca84c3374f34966737cbd0fe5493962e070fj| X  @@ -62,7 +62,8 @@ public static byte[] tableMetadata(IsolationLevel isolationLevel) {
             case NONE:
                 return tableMetadata(ConflictHandler.IGNORE_ALL);
             default:
-                throw new SafeIllegalStateException("Unknown isolation level", SafeArg.of("isolationLevel", isolationLevel));
+                throw new SafeIllegalStateException(
+                        "Unknown isolation level", SafeArg.of("isolationLevel", isolationLevel));
         }
     }
 u}(j{ (cdafd0cea6d319a2cc5b488f7348f8f55229c3d8j
| aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javaj| modifiedj| Kj| Kj| Kj| https://github.com/palantir/atlasdb/blob/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj| https://github.com/palantir/atlasdb/raw/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj| https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=92beca84c3374f34966737cbd0fe5493962e070fj| Xm  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -45,9 +46,12 @@ private DefaultWorkflow(
     }
 
     public static Workflow create(
-            TransactionStore store, KeyedTransactionTask transactionTask, WorkflowConfiguration configuration) {
+            TransactionStore store,
+            KeyedTransactionTask transactionTask,
+            WorkflowConfiguration configuration,
+            ListeningExecutorService executionExecutor) {
         return new DefaultWorkflow(
-                new ConcurrentTransactionRunner(store, configuration.executionExecutor()),
+                new ConcurrentTransactionRunner(store, executionExecutor),
                 transactionTask,
                 configuration,
                 new ReadOnlyTransactionStore(store));u}(j{ (05d4f3bfef3b253ef2ed35d6c93d57b5c7fa50f9j
| xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javaj| modifiedj| Kj| Kj| Kj| https://github.com/palantir/atlasdb/blob/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj| https://github.com/palantir/atlasdb/raw/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj| https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=92beca84c3374f34966737cbd0fe5493962e070fj| @@ -36,7 +36,7 @@ default double rateLimit() {
         return 100;
     }
 
-    @Value.Derived
+    @Value.Lazy
     default RateLimiter transactionRateLimiter() {
         return RateLimiter.create(rateLimit());
     }u}(j{ (a051b9750921550bf6cef8e388f821ed91ce81c5j
| latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javaj| modifiedj| Kj| Kj| Kj| https://github.com/palantir/atlasdb/blob/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj| https://github.com/palantir/atlasdb/raw/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj| https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=92beca84c3374f34966737cbd0fe5493962e070fj| X  @@ -19,6 +19,7 @@
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Streams;
+import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
@@ -30,7 +31,6 @@
 import java.util.List;
 import java.util.Optional;
 import java.util.stream.Collectors;
-import org.jetbrains.annotations.NotNull;
 
 /**
  * Consider a single row in a database that has two cells, which should between them maintain the invariant that
@@ -54,18 +54,22 @@ private SingleRowTwoCellsWorkflows() {
     }
 
     public static Workflow createSingleRowTwoCell(
-            TransactionStore store, SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsWorkflowConfiguration) {
+            TransactionStore store,
+            SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
         return DefaultWorkflow.create(
                 store,
                 (txnStore, index) -> run(txnStore, index, singleRowTwoCellsWorkflowConfiguration),
-                singleRowTwoCellsWorkflowConfiguration);
+                singleRowTwoCellsWorkflowConfiguration,
+                executionExecutor);
     }
 
     private static Optional<WitnessedTransaction> run(
             TransactionStore store, int taskIndex, SingleRowTwoCellsWorkflowConfiguration workflowConfiguration) {
         workflowConfiguration.transactionRateLimiter().acquire();
 
-        List<TransactionAction> transactionActions = createTransactionActions(taskIndex, workflowConfiguration.tableConfiguration().tableName());
+        List<TransactionAction> transactionActions = createTransactionActions(
+                taskIndex, workflowConfiguration.tableConfiguration().tableName());
         return store.readWrite(transactionActions);
     }
 
@@ -85,11 +89,11 @@ static boolean shouldWriteToFirstCell(int taskIndex) {
     private static List<TransactionAction> createCellUpdateActions(int taskIndex, String tableName) {
         return shouldWriteToFirstCell(taskIndex)
                 ? ImmutableList.of(
-                WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
-                DeleteTransactionAction.of(tableName, SECOND_CELL))
+                        WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
+                        DeleteTransactionAction.of(tableName, SECOND_CELL))
                 : ImmutableList.of(
-                DeleteTransactionAction.of(tableName, FIRST_CELL),
-                WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
+                        DeleteTransactionAction.of(tableName, FIRST_CELL),
+                        WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
     }
 
     private static List<TransactionAction> createCellReadActions(String tableName) {u}(j{ (74c98c744a224ef0887b3c37e94c7aaff43a4feej
| eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javaj| modifiedj| Kj| Kj| Kj| https://github.com/palantir/atlasdb/blob/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj| https://github.com/palantir/atlasdb/raw/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj| https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=92beca84c3374f34966737cbd0fe5493962e070fj| Xm  @@ -39,13 +39,15 @@ public class DefaultWorkflowTest {
     private final KeyedTransactionTask transactionTask = mock(KeyedTransactionTask.class);
 
     private final ScheduledExecutorService scheduler = PTExecutors.newSingleThreadScheduledExecutor();
+    private final ListeningExecutorService executionExecutor = MoreExecutors.listeningDecorator(scheduler);
 
     @Test
     public void handlesExceptionsInUnderlyingTasks() {
         RuntimeException transactionException = new RuntimeException("boo");
         when(transactionTask.apply(eq(store), anyInt())).thenThrow(transactionException);
 
-        Workflow workflow = DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2));
+        Workflow workflow =
+                DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
         assertThatThrownBy(workflow::run)
                 .hasMessage("Error when running workflow task")
                 .hasCause(transactionException);
@@ -101,17 +103,10 @@ public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
 
     private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
         return new WorkflowConfiguration() {
-            private final ListeningExecutorService executionExecutor = MoreExecutors.listeningDecorator(scheduler);
-
             @Override
             public int iterationCount() {
                 return iterationCount;
             }
-
-            @Override
-            public ListeningExecutorService executionExecutor() {
-                return executionExecutor;
-            }
         };
     }
 u}(j{ (08764ef8040e0a87faef8c586798721177e1c904j
| |atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfigurationTest.javaj| addedj| KHj| K j| KHj| https://github.com/palantir/atlasdb/blob/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfigurationTest.javaj| https://github.com/palantir/atlasdb/raw/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfigurationTest.javaj| https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfigurationTest.java?ref=92beca84c3374f34966737cbd0fe5493962e070fj| X  @@ -0,0 +1,72 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.google.common.util.concurrent.RateLimiter;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import org.junit.Test;
+
+public class SingleRowTwoCellsWorkflowConfigurationTest {
+    private static final TableConfiguration TABLE_CONFIGURATION = ImmutableTableConfiguration.builder()
+            .tableName(WorkloadTestHelpers.TABLE)
+            .isolationLevel(IsolationLevel.SERIALIZABLE)
+            .build();
+    private static final ObjectMapper OBJECT_MAPPER = ObjectMappers.newServerObjectMapper();
+
+    static {
+        OBJECT_MAPPER.registerSubtypes(SingleRowTwoCellsWorkflowConfiguration.class);
+    }
+
+    @Test
+    public void rateLimiterCreatedWithConfiguredNumberOfPermits() {
+        SingleRowTwoCellsWorkflowConfiguration configuration = createWithRateLimit(Double.MIN_NORMAL);
+        RateLimiter rateLimiter = configuration.transactionRateLimiter();
+        assertThat(rateLimiter.tryAcquire()).isTrue();
+        assertThat(rateLimiter.tryAcquire())
+                .as("the rate limiter granted two requests, but was not configured to accept more than one every"
+                        + " ~2.2 * 10^308 seconds")
+                .isFalse();
+    }
+
+    @Test
+    public void deserializationIsInverseOfSerialization() throws JsonProcessingException {
+        SingleRowTwoCellsWorkflowConfiguration configuration = createWithRateLimit(5);
+        assertThat(OBJECT_MAPPER.readValue(
+                        OBJECT_MAPPER.writeValueAsString(configuration), WorkflowConfiguration.class))
+                .isEqualTo(configuration);
+    }
+
+    @Test
+    public void rateLimitAccountedForInSerializedForm() throws JsonProcessingException {
+        assertThat(OBJECT_MAPPER.writeValueAsString(createWithRateLimit(10)))
+                .isNotEqualTo(OBJECT_MAPPER.writeValueAsString(createWithRateLimit(20)));
+    }
+
+    private static SingleRowTwoCellsWorkflowConfiguration createWithRateLimit(double rateLimit) {
+        return ImmutableSingleRowTwoCellsWorkflowConfiguration.builder()
+                .tableConfiguration(TABLE_CONFIGURATION)
+                .rateLimit(rateLimit)
+                .iterationCount(10)
+                .build();
+    }
+}u}(j{ (644fa38e06b01ed0c03cdf93b14463108cc7bac7j
| patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javaj| modifiedj| Kj| Kj| Kj| https://github.com/palantir/atlasdb/blob/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj| https://github.com/palantir/atlasdb/raw/92beca84c3374f34966737cbd0fe5493962e070f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj| https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=92beca84c3374f34966737cbd0fe5493962e070fj| X  @@ -41,7 +41,7 @@ public void shouldNotWriteToFirstCellOnOddIndices() {
     }
 
     @Test
-    public void createsCorrectTransactionActions() {
+    public void createsReadsThenMutationsThenReads() {
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(0, TABLE_NAME))
                 .containsExactly(
                         ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),ueu(1523b549ee1405f7ed75b72333658bd8a7587d24}(sha(1523b549ee1405f7ed75b72333658bd8a7587d24node_idEC_kwDOAjP5fdoAKDE1MjNiNTQ5ZWUxNDA1ZjdlZDc1YjcyMzMzNjU4YmQ4YTc1ODdkMjQcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T13:18:54Zu	committer}(jq| 
Ahmed Alouanejs| aalouane@palantir.comju| 2023-05-15T13:18:54Zumessagefinaltree}(ji| (5d8b7741614ad55949535af9cf9e7e6ddff20b63url`https://api.github.com/repos/palantir/atlasdb/git/trees/5d8b7741614ad55949535af9cf9e7e6ddff20b63uj| bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1523b549ee1405f7ed75b72333658bd8a7587d24
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiMT4ACgkQPlMHVIT1
yhqWNggAvHF1jNHh8xVXaCrHShO7nABGrr5JS1dsIzf3MZL2U5nRkps4HCmRqrAW
d9HsAIt3i8fGo/NvCn27Kvx4dMteNBxfCEqbH4nfRjh8cxhFgGdEAfdLKKyeY0I9
GbwexEGNNDgowd6YmdKfSZJcIsiQMWHcB+aqfQYTeZNdEwEprdSGXYa5kfeDFpvy
svjHoOCVxzWkA6W+qzk3dmsyM0Ufkt8gNE/j4TnIaZ8sAIFxywaNVN0TLFBxwGD2
adcDum8vTKEVX713koSZryU+hn37r/IKe0KTcJoDvngpocU9h4RwsN7SVYk6p3zm
JCI6IXaAJ7BV3GB8kY5S5qDv59o8Ew==
=j1Us
-----END PGP SIGNATURE-----payloadtree 5d8b7741614ad55949535af9cf9e7e6ddff20b63
parent 11ad27b62dcf8fe3f2f5d69a2cf3dae91b206623
author Ahmed Alouane <aalouane@palantir.com> 1684156734 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684156734 +0100

final
uuj| ^https://api.github.com/repos/palantir/atlasdb/commits/1523b549ee1405f7ed75b72333658bd8a7587d24html_urlShttps://github.com/palantir/atlasdb/commit/1523b549ee1405f7ed75b72333658bd8a7587d24comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1523b549ee1405f7ed75b72333658bd8a7587d24/commentsjo| }(loginergo14idJjk| MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j| #https://api.github.com/users/ergo14j| https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujw| }(j| ergo14j| Jjk| MDQ6VXNlcjMwOTAzNzM2j| 4https://avatars.githubusercontent.com/u/30903736?v=4j| h5j| #https://api.github.com/users/ergo14j| https://github.com/ergo14j| -https://api.github.com/users/ergo14/followersj| :https://api.github.com/users/ergo14/following{/other_user}j| 3https://api.github.com/users/ergo14/gists{/gist_id}j| :https://api.github.com/users/ergo14/starred{/owner}{/repo}j| 1https://api.github.com/users/ergo14/subscriptionsj| (https://api.github.com/users/ergo14/orgsj| )https://api.github.com/users/ergo14/reposj| 4https://api.github.com/users/ergo14/events{/privacy}j| 3https://api.github.com/users/ergo14/received_eventsj| Userj| uparents]}(ji| (11ad27b62dcf8fe3f2f5d69a2cf3dae91b206623j| ^https://api.github.com/repos/palantir/atlasdb/commits/11ad27b62dcf8fe3f2f5d69a2cf3dae91b206623j| Shttps://github.com/palantir/atlasdb/commit/11ad27b62dcf8fe3f2f5d69a2cf3dae91b206623uastats}(totalK	additionsK	deletionsKufiles]}(ji| (7c5f9cd0d5fba7d0d90773293eb6877e09876b54filename.circleci/config.ymlstatusmodifiedj| Kj| KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/1523b549ee1405f7ed75b72333658bd8a7587d24/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/1523b549ee1405f7ed75b72333658bd8a7587d24/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=1523b549ee1405f7ed75b72333658bd8a7587d24patchX  @@ -103,7 +103,7 @@ jobs:
     docker: [{ image: 'busybox:1.34.1' }]
     resource_class: small
     steps:
-      - run: {command: echo "Ran all required tests successfully"}
+      - run: {command: echo "No-op as we require a workflow with the name 'test'."}
 
   deploy:
     docker:
@@ -166,17 +166,9 @@ workflows:
             tags:
               only: /.*/
       - test:
-          requires: [test-tl, test-no-tl]
+          # This doesn't require anything in reality as it is a no-op, just avoiding new containers spin-up if possible.
+          requires: [build, test-no-tl]
           filters:
-            branches:
-              only: /(tlmete.*|develop)/
-            tags:
-              only: /.*/
-      - test:
-          requires: [test-no-tl]
-          filters:
-            branches:
-              ignore: /(tlmete.*|develop)/
             tags:
               only: /.*/
       - trial-publish:uau(fa370094fac5252ef12aa91b9622241f57eff096}(sha(fa370094fac5252ef12aa91b9622241f57eff096node_idEC_kwDOAjP5fdoAKGZhMzcwMDk0ZmFjNTI1MmVmMTJhYTkxYjk2MjIyNDFmNTdlZmYwOTYcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-06-14T13:37:36Zu	committer}(j| 
svc-changelogj| svc-changelog@palantir.comj| 2023-06-14T13:37:36ZumessageAdd generated changelog entriestree}(j| (813c1c85d56eef3c1b9a08491b768c377dbfe7ccurl`https://api.github.com/repos/palantir/atlasdb/git/trees/813c1c85d56eef3c1b9a08491b768c377dbfe7ccuj| bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fa370094fac5252ef12aa91b9622241f57eff096
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSJwqAJEHYaJX37fAFQAACiHQEA7Jkrp1HE5oNYHb8/nACoU9qn
AknLEtzTBUZA0Up/Jf4A/2ZGE/MN2uyLnSdkF3FGbdch1ZNUqDS8EKDGdGIGPixJ
=yzaY
-----END PGP SIGNATURE-----payloadX  tree 813c1c85d56eef3c1b9a08491b768c377dbfe7cc
parent d2009d054c126df06cf73f4c214f0967cb760f10
author svc-changelog <svc-changelog@palantir.com> 1686749856 +0000
committer svc-changelog <svc-changelog@palantir.com> 1686749856 +0000

Add generated changelog entriesuuj| ^https://api.github.com/repos/palantir/atlasdb/commits/fa370094fac5252ef12aa91b9622241f57eff096html_urlShttps://github.com/palantir/atlasdb/commit/fa370094fac5252ef12aa91b9622241f57eff096comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fa370094fac5252ef12aa91b9622241f57eff096/commentsj| }(login
svc-changelogidJ#j| MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j| *https://api.github.com/users/svc-changelogj}  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj| }(j} 
svc-changelogj
} J#j| MDQ6VXNlcjg0MDc3NjAzj} 4https://avatars.githubusercontent.com/u/84077603?v=4j} h5j| *https://api.github.com/users/svc-changelogj}  https://github.com/svc-changelogj} 4https://api.github.com/users/svc-changelog/followersj} Ahttps://api.github.com/users/svc-changelog/following{/other_user}j} :https://api.github.com/users/svc-changelog/gists{/gist_id}j} Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j} 8https://api.github.com/users/svc-changelog/subscriptionsj} /https://api.github.com/users/svc-changelog/orgsj } 0https://api.github.com/users/svc-changelog/reposj"} ;https://api.github.com/users/svc-changelog/events{/privacy}j$} :https://api.github.com/users/svc-changelog/received_eventsj&} Userj(} uparents]}(j| (d2009d054c126df06cf73f4c214f0967cb760f10j| ^https://api.github.com/repos/palantir/atlasdb/commits/d2009d054c126df06cf73f4c214f0967cb760f10j} Shttps://github.com/palantir/atlasdb/commit/d2009d054c126df06cf73f4c214f0967cb760f10uastats}(totalK	additionsK	deletionsK ufiles]}(j| (9914bf81d7b0081790e5b357d977f35947ad8b60filename$changelog/@unreleased/pr-6626.v2.ymlstatusaddedjB} KjC} K changesKblob_url|https://github.com/palantir/atlasdb/blob/fa370094fac5252ef12aa91b9622241f57eff096/changelog%2F%40unreleased%2Fpr-6626.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/fa370094fac5252ef12aa91b9622241f57eff096/changelog%2F%40unreleased%2Fpr-6626.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6626.v2.yml?ref=fa370094fac5252ef12aa91b9622241f57eff096patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LockV1] Pass refreshable thread info configuration'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6626uau(414f91e83cc1461d193e2ea91943a3b145b40838}(sha(414f91e83cc1461d193e2ea91943a3b145b40838node_idEC_kwDOAjP5fdoAKDQxNGY5MWU4M2NjMTQ2MWQxOTNlMmVhOTE5NDNhM2IxNDViNDA4Mzgcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-16T12:01:54Zu	committer}(j_} Lucas Meirelesja} meireles31@msn.comjc} 2023-06-16T12:02:56Zumessagemake set finaltree}(jW} (5ce9d86b2603666b44b6b0705fd0e59db60091d1url`https://api.github.com/repos/palantir/atlasdb/git/trees/5ce9d86b2603666b44b6b0705fd0e59db60091d1ujo} bhttps://api.github.com/repos/palantir/atlasdb/git/commits/414f91e83cc1461d193e2ea91943a3b145b40838
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSMT3AACgkQJd22kJ7J
GiyACAgA5Gw+bxqu+HiVBtymd2E6kN0pIWH7Nu4VFhRVI0vM15C+eyesQArMXGN1
J6ttt1KpcI3SV0zygBnGDhhY5PFI737OtR8FHrWlDhtTOeugKMd0cHZ0yTaCh4+C
7GdpPw3MB4C0K8zGU5VIATZ9w+//prNX4WLwqkSA0pwuhPn7r+qsEqyxBpX1Sb2c
YXFPsEx5GC67AXZ5SkHFlalhj9v54ns/FJ8bG14Tu562e6UNXfNC7C4C/lgF/Rbs
yqlXgK7ANRUeKqA/7tCtWv9jaVkl4bZgR8Y5r0d2R5eEwEijgR123R4fVFCCqp5T
Bq6B0pHrp3QG0Gn3NnTGLx8RVA11eA==
=V+Me
-----END PGP SIGNATURE-----payloadtree 5ce9d86b2603666b44b6b0705fd0e59db60091d1
parent 0e4b32c14bf30002a47e9ce278c793f8ad06b779
author Lucas Meireles <meireles31@msn.com> 1686916914 +0100
committer Lucas Meireles <meireles31@msn.com> 1686916976 +0100

make set final
uujo} ^https://api.github.com/repos/palantir/atlasdb/commits/414f91e83cc1461d193e2ea91943a3b145b40838html_urlShttps://github.com/palantir/atlasdb/commit/414f91e83cc1461d193e2ea91943a3b145b40838comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/414f91e83cc1461d193e2ea91943a3b145b40838/commentsj]} }(loginLucasIMEidJg jY} MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jo} %https://api.github.com/users/LucasIMEj}} https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuje} }(j} LucasIMEj} Jg jY} MDQ6VXNlcjY3ODczMTE=j} 3https://avatars.githubusercontent.com/u/6787311?v=4j} h5jo} %https://api.github.com/users/LucasIMEj}} https://github.com/LucasIMEj} /https://api.github.com/users/LucasIME/followersj} <https://api.github.com/users/LucasIME/following{/other_user}j} 5https://api.github.com/users/LucasIME/gists{/gist_id}j} <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j} 3https://api.github.com/users/LucasIME/subscriptionsj} *https://api.github.com/users/LucasIME/orgsj} +https://api.github.com/users/LucasIME/reposj} 6https://api.github.com/users/LucasIME/events{/privacy}j} 5https://api.github.com/users/LucasIME/received_eventsj} Userj} uparents]}(jW} (0e4b32c14bf30002a47e9ce278c793f8ad06b779jo} ^https://api.github.com/repos/palantir/atlasdb/commits/0e4b32c14bf30002a47e9ce278c793f8ad06b779j}} Shttps://github.com/palantir/atlasdb/commit/0e4b32c14bf30002a47e9ce278c793f8ad06b779uastats}(totalK	additionsK	deletionsKufiles]}(jW} (d7ca357bb6b2497446416e2a46b7261d29ffac13filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj} Kj} KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/414f91e83cc1461d193e2ea91943a3b145b40838/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/414f91e83cc1461d193e2ea91943a3b145b40838/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=414f91e83cc1461d193e2ea91943a3b145b40838patchX  @@ -270,7 +270,7 @@ private enum State {
     private final ExpectationsMetrics expectationsDataCollectionMetrics;
 
     protected volatile boolean hasReads;
-    protected Set<UUID> readsRequiringImmutableTimestampValidationAtCommitRound;
+    protected final Set<UUID> readsRequiringImmutableTimestampValidationAtCommitRound;
 
     protected final TimestampCache timestampCache;
 uau(c57926b0c7dc5e60ddd40670e20b6486f07baa81}(sha(c57926b0c7dc5e60ddd40670e20b6486f07baa81node_idEC_kwDOAjP5fdoAKGM1NzkyNmIwYzdkYzVlNjBkZGQ0MDY3MGUyMGI2NDg2ZjA3YmFhODEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-13T14:44:12Zu	committer}(j} 
Sam Kramerj} skramer@palantir.comj} 2023-04-13T14:46:41Zumessage	funky bugtree}(j} (df863bbd13b025cae53880ffd9b04179be69fdf7url`https://api.github.com/repos/palantir/atlasdb/git/trees/df863bbd13b025cae53880ffd9b04179be69fdf7uj} bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c57926b0c7dc5e60ddd40670e20b6486f07baa81
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ4FdEACgkQmPPOpKR4
XS2kWQgAuj9f5LAuj52iqUFJmheg5Ig9A4hF/3iA+CBO2t/dXNs385hZEqitb2Mw
pqgfyvYNxn4UUKUtTV2b4w/VGMOvcreAE5wLKa7sgn3GplwP+1LXYOFpe39GB/cX
iU7H9JwFGkgWV//IEfZJsJdhxQgc9eMijHcW3LM4ENhzgZQ755wDcQ5v+kTCrI/i
s5TnEopkFWUlUwkOn2UIvbFgHcU9iUz08SVPqWa5NyTD4byvDwtJQkBz7V4NnZ+G
no7ssLF2Y187nVarEbelUGHpPx9LzkuhKsiQrSMccooafw8TJPq3rNHUYz5dtGcz
EaTH70k+YL9TTg1yIBX+WGVRjs/15g==
=auWM
-----END PGP SIGNATURE-----payloadtree df863bbd13b025cae53880ffd9b04179be69fdf7
parent ae98c3a91237673fcc9cfadcc178d8a5f1a77be2
author Sam Kramer <skramer@palantir.com> 1681397052 +0100
committer Sam Kramer <skramer@palantir.com> 1681397201 +0100

funky bug
uuj} ^https://api.github.com/repos/palantir/atlasdb/commits/c57926b0c7dc5e60ddd40670e20b6486f07baa81html_urlShttps://github.com/palantir/atlasdb/commit/c57926b0c7dc5e60ddd40670e20b6486f07baa81comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c57926b0c7dc5e60ddd40670e20b6486f07baa81/commentsj} }(login
Sam-KrameridJ^2_ j} MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j} 'https://api.github.com/users/Sam-Kramerj} https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj} }(j} 
Sam-Kramerj} J^2_ j} MDQ6VXNlcjYyMzg4MTQ=j} 3https://avatars.githubusercontent.com/u/6238814?v=4j} h5j} 'https://api.github.com/users/Sam-Kramerj} https://github.com/Sam-Kramerj~ 1https://api.github.com/users/Sam-Kramer/followersj~ >https://api.github.com/users/Sam-Kramer/following{/other_user}j~ 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j~ >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j
~ 5https://api.github.com/users/Sam-Kramer/subscriptionsj~ ,https://api.github.com/users/Sam-Kramer/orgsj~ -https://api.github.com/users/Sam-Kramer/reposj~ 8https://api.github.com/users/Sam-Kramer/events{/privacy}j~ 7https://api.github.com/users/Sam-Kramer/received_eventsj~ Userj~ uparents]}(j} (ae98c3a91237673fcc9cfadcc178d8a5f1a77be2j} ^https://api.github.com/repos/palantir/atlasdb/commits/ae98c3a91237673fcc9cfadcc178d8a5f1a77be2j} Shttps://github.com/palantir/atlasdb/commit/ae98c3a91237673fcc9cfadcc178d8a5f1a77be2uastats}(totalK	additionsK	deletionsKufiles](}(j} (5b31f30e21605a40bc057c7a305c2823188463cffilename`atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingGraph.javastatusmodifiedj0~ Kj1~ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/c57926b0c7dc5e60ddd40670e20b6486f07baa81/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c57926b0c7dc5e60ddd40670e20b6486f07baa81/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.java?ref=c57926b0c7dc5e60ddd40670e20b6486f07baa81patchX  @@ -70,8 +70,9 @@ public Optional<RingError> validate() {
 
         Integer initialNode = ring.keySet().iterator().next();
         Set<Integer> remainingNodes = new HashSet<>(ring.keySet());
+        int maxIterations = ring.keySet().size();
         Optional<Integer> maybeNextNode = ring.get(initialNode);
-        for (int maxIterations = 0; maxIterations <= remainingNodes.size(); maxIterations++) {
+        for (int iterations = 0; iterations < maxIterations; iterations++) {
             // If we do not have a next node, we are missing data, as a ring should cycle
             if (maybeNextNode.isEmpty()) {
                 return Optional.of(RingError.missingEntries(ring));u}(j} (29e6b6348ceca77c0622c9dbc91336bf99f9a368j6~ datlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingGraphTest.javaj8~ modifiedj0~ Kj1~ Kj:~ Kj;~ https://github.com/palantir/atlasdb/blob/c57926b0c7dc5e60ddd40670e20b6486f07baa81/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj=~ https://github.com/palantir/atlasdb/raw/c57926b0c7dc5e60ddd40670e20b6486f07baa81/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj?~ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.java?ref=c57926b0c7dc5e60ddd40670e20b6486f07baa81jA~ X  @@ -86,7 +86,7 @@ public void asMapThrowsWhenMissingEdge() {
         Map<Integer, Optional<Integer>> missingEdge = Map.of(0, Optional.of(1), 1, Optional.empty());
         assertThatThrownBy(() -> RingGraph.fromPartial(missingEdge).asMap())
                 .isInstanceOf(SafeIllegalStateException.class)
-                .hasMessageContaining("Cannot generate ring to map as some edges are missing");
+                .hasMessageContaining("Cannot convert ring to map as some edges are missing");
     }
 
     @Testueu(36b46af103dc4e886be602866115369708793b1b}(sha(36b46af103dc4e886be602866115369708793b1bnode_idEC_kwDOAjP5fdoAKDM2YjQ2YWYxMDNkYzRlODg2YmU2MDI4NjYxMTUzNjk3MDg3OTNiMWIcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-03-08T10:27:26Zu	committer}(jU~ svc-autoreleasejW~ -pd-foundry-infrastructure-notify@palantir.comjY~ 2023-03-08T10:27:26Zumessage"Autorelease 0.809.0-rc1

[skip ci]tree}(jM~ (e14d1b0a3777a371d596dc2387f0673f0284b908url`https://api.github.com/repos/palantir/atlasdb/git/trees/e14d1b0a3777a371d596dc2387f0673f0284b908uje~ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/36b46af103dc4e886be602866115369708793b1b
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQIYxMACgkQhbrR8ip7mDCffQEAuSMZcN3ijhCETWK081nRXio3
6ZU61XhVOHHJokDOmcgA/0yxwYka6fYr0bXOfeOM63HscQ6uk1wpAaWsh9gV90pu
=Tnbk
-----END PGP SIGNATURE-----
payloadX  tree e14d1b0a3777a371d596dc2387f0673f0284b908
parent d9738d00eaf0654e3bf41c613179210a85abfa25
author Sam-Kramer <sam.c.kramer@gmail.com> 1678271246 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1678271246 +0000

Autorelease 0.809.0-rc1

[skip ci]uuje~ ^https://api.github.com/repos/palantir/atlasdb/commits/36b46af103dc4e886be602866115369708793b1bhtml_urlShttps://github.com/palantir/atlasdb/commit/36b46af103dc4e886be602866115369708793b1bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/36b46af103dc4e886be602866115369708793b1b/commentsjS~ }(login
Sam-KrameridJ^2_ jO~ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5je~ 'https://api.github.com/users/Sam-Kramerjs~ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj[~ }(jx~ svc-autoreleasejz~ J(jO~ MDQ6VXNlcjUxNzE4MzQ2j|~ 4https://avatars.githubusercontent.com/u/51718346?v=4j~~ h5je~ ,https://api.github.com/users/svc-autoreleasejs~ "https://github.com/svc-autoreleasej~ 6https://api.github.com/users/svc-autorelease/followersj~ Chttps://api.github.com/users/svc-autorelease/following{/other_user}j~ <https://api.github.com/users/svc-autorelease/gists{/gist_id}j~ Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j~ :https://api.github.com/users/svc-autorelease/subscriptionsj~ 1https://api.github.com/users/svc-autorelease/orgsj~ 2https://api.github.com/users/svc-autorelease/reposj~ =https://api.github.com/users/svc-autorelease/events{/privacy}j~ <https://api.github.com/users/svc-autorelease/received_eventsj~ Userj~ uparents]}(jM~ (d9738d00eaf0654e3bf41c613179210a85abfa25je~ ^https://api.github.com/repos/palantir/atlasdb/commits/d9738d00eaf0654e3bf41c613179210a85abfa25js~ Shttps://github.com/palantir/atlasdb/commit/d9738d00eaf0654e3bf41c613179210a85abfa25uastats}(totalK	additionsK	deletionsK ufiles]}(jM~ (1c40c26a2b7f255ced582014ba59023261e207c9filename$changelog/0.809.0-rc1/pr-6463.v2.ymlstatusaddedj~ Kj~ K changesKblob_urlzhttps://github.com/palantir/atlasdb/blob/36b46af103dc4e886be602866115369708793b1b/changelog%2F0.809.0-rc1%2Fpr-6463.v2.ymlraw_urlyhttps://github.com/palantir/atlasdb/raw/36b46af103dc4e886be602866115369708793b1b/changelog%2F0.809.0-rc1%2Fpr-6463.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.809.0-rc1%2Fpr-6463.v2.yml?ref=36b46af103dc4e886be602866115369708793b1bpatch@@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Never completely empty the Cassandra client pool, even if a new list
+    of hosts are provided.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6463uau(3a15193728baf2f9b61b13cdd72eb67db634e98b}(sha(3a15193728baf2f9b61b13cdd72eb67db634e98bnode_idEC_kwDOAjP5fdoAKDNhMTUxOTM3MjhiYWYyZjliNjFiMTNjZGQ3MmViNjdkYjYzNGU5OGIcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-06-15T15:35:26Zu	committer}(j~ GitHubj~ noreply@github.comj~ 2023-06-15T15:35:26Zumessage"Excavator:  Prefer AssertJ (#6539)tree}(j~ (e53813863e5a4c695c09c2169df89a01aac7abbfurl`https://api.github.com/repos/palantir/atlasdb/git/trees/e53813863e5a4c695c09c2169df89a01aac7abbfuj~ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3a15193728baf2f9b61b13cdd72eb67db634e98b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkiy++CRBK7hj4Ov3rIwAA+GcIADDpdEBYdVz2kkc67R7EMlMX
bigRq1pPJWhTDes3/ywRyGGkr/wdbFSOIyOMb06T2gKsJCqTeXegdSB4QWBQOb0b
UT8JyUyveHClzSeD4+zL2SRfUkfkWNQUoDUOrvGCAhgLaHPxhnyHllBEEXHrPBgk
4Kw3/MAOAFf/61NT4hROQCdD77Ug+UHHFoJWC6daSAaD+6dvtWlKYOMO23Xt8kw+
v2bGKbw+buPaRMdD5QSKcl+kgsAG8IVmrrriqnRY7anE0IHJdBFRkxSb+gf1T2gQ
yitLlK3rB+zep+rwVgZQxZHdUfVSI77hx2y4o8oFHtWE7JTnOJ7TKPFVKHT1Ogk=
=8TFl
-----END PGP SIGNATURE-----
payloadX  tree e53813863e5a4c695c09c2169df89a01aac7abbf
parent d5d4a6aca7620ecbcab65aa479f343ac63f1a44d
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1686843326 +0100
committer GitHub <noreply@github.com> 1686843326 +0000

Excavator:  Prefer AssertJ (#6539)

 uuj~ ^https://api.github.com/repos/palantir/atlasdb/commits/3a15193728baf2f9b61b13cdd72eb67db634e98bhtml_urlShttps://github.com/palantir/atlasdb/commit/3a15193728baf2f9b61b13cdd72eb67db634e98bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3a15193728baf2f9b61b13cdd72eb67db634e98b/commentsj~ }(loginsvc-excavator-botidJj~ MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j~ .https://api.github.com/users/svc-excavator-botj~ $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj~ }(j~ web-flowj~ J/j~ MDQ6VXNlcjE5ODY0NDQ3j~ 4https://avatars.githubusercontent.com/u/19864447?v=4j~ h5j~ %https://api.github.com/users/web-flowj~ https://github.com/web-flowj~ /https://api.github.com/users/web-flow/followersj~ <https://api.github.com/users/web-flow/following{/other_user}j~ 5https://api.github.com/users/web-flow/gists{/gist_id}j~ <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj
 Userj uparents]}(j~ (d5d4a6aca7620ecbcab65aa479f343ac63f1a44dj~ ^https://api.github.com/repos/palantir/atlasdb/commits/d5d4a6aca7620ecbcab65aa479f343ac63f1a44dj~ Shttps://github.com/palantir/atlasdb/commit/d5d4a6aca7620ecbcab65aa479f343ac63f1a44duastats}(totalK	additionsK		deletionsK	ufiles](}(j~ (502ae947a588e3d9dcebd649967cafd91a08374bfilenamedatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppTokenTest.javastatusmodifiedj& Kj' KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/3a15193728baf2f9b61b13cdd72eb67db634e98b/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/3a15193728baf2f9b61b13cdd72eb67db634e98b/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.java?ref=3a15193728baf2f9b61b13cdd72eb67db634e98bpatchX  @@ -46,9 +46,9 @@ public static Collection<Object[]> data() {
     @Test
     public void inputsAreValidBase16Strings() {
         assertThat(input).matches("^[0-9a-fA-F]*$");
-        assertThat(input.length() % 2 == 0)
+        assertThat(input.length() % 2)
                 .as("input must be even length to base16 decode")
-                .isTrue();
+                .isEqualTo(0);
         assertThat(CassandraHex.hexToBytes(input)).hasSize(input.length() / 2);
     }
 u}(j~ (a982645e9685b7e2b328546bb927b2c415ad29bfj, latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj. modifiedj& Kj' Kj0 Kj1 https://github.com/palantir/atlasdb/blob/3a15193728baf2f9b61b13cdd72eb67db634e98b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj3 https://github.com/palantir/atlasdb/raw/3a15193728baf2f9b61b13cdd72eb67db634e98b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=3a15193728baf2f9b61b13cdd72eb67db634e98bj7 X  @@ -130,7 +130,7 @@ public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
         transactionStore.readWrite(txn -> txn.delete(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 1, 1)));
         invariant.accept(history, reference::set);
         assertThat(reference.get())
-                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                .containsExactly(CrossCellInconsistency.builder()
                         .putInconsistentValues(
                                 TableAndWorkloadCell.of(
                                         TABLE_NAME,
@@ -142,7 +142,7 @@ public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
                                         ImmutableWorkloadCell.of(
                                                 TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 1)),
                                 Optional.of(0))
-                        .build()));
+                        .build());
     }
 
     @Test
@@ -155,7 +155,7 @@ public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
                 TransientRowsWorkflows.VALUE));
         invariant.accept(history, reference::set);
         assertThat(reference.get())
-                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                .containsExactly(CrossCellInconsistency.builder()
                         .putInconsistentValues(
                                 TableAndWorkloadCell.of(
                                         TABLE_NAME,
@@ -167,7 +167,7 @@ public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
                                         ImmutableWorkloadCell.of(
                                                 TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 2)),
                                 Optional.empty())
-                        .build()));
+                        .build());
     }
 
     @Testu}(j~ (fe0267e6f697a967a6133f2554009d8a0be04d4cj, katlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtilsTest.javaj. modifiedj& Kj' Kj0 Kj1 https://github.com/palantir/atlasdb/blob/3a15193728baf2f9b61b13cdd72eb67db634e98b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj3 https://github.com/palantir/atlasdb/raw/3a15193728baf2f9b61b13cdd72eb67db634e98b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.java?ref=3a15193728baf2f9b61b13cdd72eb67db634e98bj7 X  @@ -67,7 +67,7 @@ public void performTransfersReturnsBalancesWithCorrectSum() {
         when(random.nextInt(anyInt())).thenReturn(0, 1);
         Map<Integer, Integer> balances = Map.of(0, 1, 1, 1);
         Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
-        assertThat(newBalances).isEqualTo(Map.of(0, 0, 1, 2));
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(Map.of(0, 0, 1, 2));
         assertThat(newBalances.values().stream().mapToInt(Integer::intValue).sum())
                 .isEqualTo(2);
     }
@@ -77,6 +77,6 @@ public void performsTransfersOnlyIfValueWouldNotBeBelowZero() {
         when(random.nextInt(anyInt())).thenReturn(0, 1);
         Map<Integer, Integer> balances = Map.of(0, 0, 1, 2);
         Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
-        assertThat(newBalances).isEqualTo(balances);
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(balances);
     }
 }u}(j~ (7ae440730798415742814c38fb59d0707273036ej, datlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingGraphTest.javaj. modifiedj& Kj' Kj0 Kj1 https://github.com/palantir/atlasdb/blob/3a15193728baf2f9b61b13cdd72eb67db634e98b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj3 https://github.com/palantir/atlasdb/raw/3a15193728baf2f9b61b13cdd72eb67db634e98b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.java?ref=3a15193728baf2f9b61b13cdd72eb67db634e98bj7 X=  @@ -101,6 +101,6 @@ public void generateNewRingReturnsValidRing() {
 
     @Test
     public void asMapConvertsCorrectly() {
-        assertThat(RingGraph.from(VALID_RING).asMap()).isEqualTo(VALID_RING);
+        assertThat(RingGraph.from(VALID_RING).asMap()).containsExactlyInAnyOrderEntriesOf(VALID_RING);
     }
 }ueu(5ca60897a6cfef7d91704d9097640c4a215933a8}(sha(5ca60897a6cfef7d91704d9097640c4a215933a8node_idEC_kwDOAjP5fdoAKDVjYTYwODk3YTZjZmVmN2Q5MTcwNGQ5MDk3NjQwYzRhMjE1OTMzYTgcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-21T00:49:34Zu	committer}(j[ 
Ahmed Alouanej] aalouane@palantir.comj_ 2023-04-21T00:49:34Zumessage	fake testtree}(jS (3f4649be34f224c46690d33a3e187c579aeacb74url`https://api.github.com/repos/palantir/atlasdb/git/trees/3f4649be34f224c46690d33a3e187c579aeacb74ujk bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5ca60897a6cfef7d91704d9097640c4a215933a8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRB3Z4ACgkQPlMHVIT1
yhpwiAf/Riq2ms/QpuGbJnUFecu7VjOxLkPJ1BOJK8Wp0bS9k5IiU2leEYi82qdr
j9a6ZnFZ4Oeb+tq10IU6PY+U0Zl/6Tz+Y74W9SZbJFx+543kf674Xm7T7daKWDNK
0VZ6PfS9vcDHxqcL6WuHv+wWGE0jLt3Z8GgS+kK4nZhoaypMmxUuOrm7r2k9WeZu
Ivyt5FkiFu3xouTqzNlGjlaVuKUxxBuwBVdCh1N//y7wr2Bf2/fbeS0nGiCyAhOD
JYATjOL0AaYw7X9kQgHUcKpzOTieBwBBU52zfoOK+F+2KO61vh6bDj6QkZQVArug
d5RVGYLhP3fXcQMM51S4Lhwpzqe7GA==
=CiU+
-----END PGP SIGNATURE-----payloadtree 3f4649be34f224c46690d33a3e187c579aeacb74
parent e3490f89586d7dbec2e831e4c5a5121a329d23e9
author Ahmed Alouane <aalouane@palantir.com> 1682038174 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682038174 +0100

fake test
uujk ^https://api.github.com/repos/palantir/atlasdb/commits/5ca60897a6cfef7d91704d9097640c4a215933a8html_urlShttps://github.com/palantir/atlasdb/commit/5ca60897a6cfef7d91704d9097640c4a215933a8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5ca60897a6cfef7d91704d9097640c4a215933a8/commentsjY }(loginergo14idJjU MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jk #https://api.github.com/users/ergo14jy https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
      
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuja }(j~ ergo14j JjU MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5jk #https://api.github.com/users/ergo14jy https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jS (e3490f89586d7dbec2e831e4c5a5121a329d23e9jk ^https://api.github.com/repos/palantir/atlasdb/commits/e3490f89586d7dbec2e831e4c5a5121a329d23e9jy Shttps://github.com/palantir/atlasdb/commit/e3490f89586d7dbec2e831e4c5a5121a329d23e9uastats}(totalK	additionsK	deletionsK ufiles](}(jS (35cb0dec0ad98cc661ccbee09d4943db4f59f14ffilename0atlasdb-cassandra-integration-tests/build.gradlestatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/5ca60897a6cfef7d91704d9097640c4a215933a8/atlasdb-cassandra-integration-tests%2Fbuild.gradleraw_urlhttps://github.com/palantir/atlasdb/raw/5ca60897a6cfef7d91704d9097640c4a215933a8/atlasdb-cassandra-integration-tests%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fbuild.gradle?ref=5ca60897a6cfef7d91704d9097640c4a215933a8patch@@ -53,6 +53,7 @@ task memorySensitiveTest(type: Test) {
 }
 
 test {
+    failFast = true
     exclude '**/CassandraKeyValueServiceSweepTaskRunnerIntegrationTest.class'
 }
 u}(jS (8226a78edce366711472eec8e454135715b0490cj Vatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/TimeLockMigrationEteTest.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/5ca60897a6cfef7d91704d9097640c4a215933a8/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.javaj https://github.com/palantir/atlasdb/raw/5ca60897a6cfef7d91704d9097640c4a215933a8/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.java?ref=5ca60897a6cfef7d91704d9097640c4a215933a8j X  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.ete;
 
+import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.catchThrowable;
 
 import com.google.common.util.concurrent.Uninterruptibles;
@@ -167,6 +168,11 @@ public void automaticallyMigratesTimestampsAndFailsOnRestart() throws Exception
         CLIENT_ORCHESTRATION_RULE.stopAtlasClient();
     }
 
+    @Test
+    public void fakeTest() {
+        assertThat(1 + 10).isEqualTo(12);
+    }
+
     private void upgradeAtlasClientToTimelock() {
         CLIENT_ORCHESTRATION_RULE.updateClientConfig(TEST_CONTEXT.eteConfigWithTimeLock());
         CLIENT_ORCHESTRATION_RULE.restartAtlasClient();ueu(9658c3484a7f6cc9662a4110f904e36d5a6948db}(sha(9658c3484a7f6cc9662a4110f904e36d5a6948dbnode_idEC_kwDOAjP5fdoAKDk2NThjMzQ4NGE3ZjZjYzk2NjJhNDExMGY5MDRlMzZkNWE2OTQ4ZGIcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2022-12-18T16:38:03Zu	committer}(j David Schlosnaglej davids@palantir.comj 2023-05-20T16:53:04ZumessageAdd generated changelog entriestree}(j (b4258ae04d02def2aede8e15a002b607923975f0url`https://api.github.com/repos/palantir/atlasdb/git/trees/b4258ae04d02def2aede8e15a002b607923975f0uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9658c3484a7f6cc9662a4110f904e36d5a6948db
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmRo+vAACgkQR9hsJ74Q
0l+q3AgAxzH9tVE12srGOkFsDFDl9WTx3Ge/OyLroC7a/5NsY1MxpRoRh3znUGmg
KBndw1ZTVmpu5zY/hDouIfykhkEo4WhrQuR2JtWZ2lTWAOUgjZDctfV28FTRTb16
baiuMnNWQxfsEO3QSSPSfzushsrKlzMAcmrC6vzoYZk06Tz2LkdUpCWLmwD7DquG
WF695iEOlKvy83gJ4uFQIZsLApHjloWJ1xuzjeRcYfVYNIPa9bJ7qlIiyCsutFu3
pMXwpwA7T8sYlQirrn4FWrotDtXOQ9qjbZpQrS/OHirjAXBU+7gAAt6THB9dDzsi
c4uiAQ0Tz4X+O39Bi263u2Tg2gfZNQ==
=fMcC
-----END PGP SIGNATURE-----payloadX  tree b4258ae04d02def2aede8e15a002b607923975f0
parent c19b9b6547f90f1589e6e84b81a85919adc7715d
author svc-changelog <svc-changelog@palantir.com> 1671381483 +0000
committer David Schlosnagle <davids@palantir.com> 1684601584 -0400

Add generated changelog entriesuuj ^https://api.github.com/repos/palantir/atlasdb/commits/9658c3484a7f6cc9662a4110f904e36d5a6948dbhtml_urlShttps://github.com/palantir/atlasdb/commit/9658c3484a7f6cc9662a4110f904e36d5a6948dbcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9658c3484a7f6cc9662a4110f904e36d5a6948db/commentsj }(login
svc-changelogidJ#j MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj }(j schlosnaj MBj MDQ6VXNlcjU0NTk0j 1https://avatars.githubusercontent.com/u/54594?v=4j h5j %https://api.github.com/users/schlosnaj https://github.com/schlosnaj /https://api.github.com/users/schlosna/followersj <https://api.github.com/users/schlosna/following{/other_user}j
 5https://api.github.com/users/schlosna/gists{/gist_id}j <https://api.github.com/users/schlosna/starred{/owner}{/repo}j 3https://api.github.com/users/schlosna/subscriptionsj *https://api.github.com/users/schlosna/orgsj +https://api.github.com/users/schlosna/reposj 6https://api.github.com/users/schlosna/events{/privacy}j 5https://api.github.com/users/schlosna/received_eventsj Userj uparents]}(j (c19b9b6547f90f1589e6e84b81a85919adc7715dj ^https://api.github.com/repos/palantir/atlasdb/commits/c19b9b6547f90f1589e6e84b81a85919adc7715dj Shttps://github.com/palantir/atlasdb/commit/c19b9b6547f90f1589e6e84b81a85919adc7715duastats}(totalK	additionsK	deletionsK ufiles]}(j (aceed5bc2b1874600ed6c3412972b87ad8b63a51filename$changelog/@unreleased/pr-6410.v2.ymlstatusaddedj4 Kj5 K changesKblob_url|https://github.com/palantir/atlasdb/blob/9658c3484a7f6cc9662a4110f904e36d5a6948db/changelog%2F%40unreleased%2Fpr-6410.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/9658c3484a7f6cc9662a4110f904e36d5a6948db/changelog%2F%40unreleased%2Fpr-6410.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6410.v2.yml?ref=9658c3484a7f6cc9662a4110f904e36d5a6948dbpatch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Use Caffeine instead of Guava caches
+  links:
+  - https://github.com/palantir/atlasdb/pull/6410uau(0a286818e4c89ca2002b89fa1125112e7c9471fb}(sha(0a286818e4c89ca2002b89fa1125112e7c9471fbnode_idEC_kwDOAjP5fdoAKDBhMjg2ODE4ZTRjODljYTIwMDJiODlmYTExMjUxMTJlN2M5NDcxZmIcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-12T09:30:19Zu	committer}(jQ 	Tom PapkejS tpapke@palantir.comjU 2023-07-12T17:25:08Zumessagespotlesstree}(jI (93cbaf9eada68dc782524c15ecbff869d8ce5f3eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/93cbaf9eada68dc782524c15ecbff869d8ce5f3euja bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0a286818e4c89ca2002b89fa1125112e7c9471fb
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSu4fQACgkQmF9s0kaF
Iw3zRwf/RAgtxQnbEnSJIpe7CMeeSuPcuQQt8Hv4cqvg/3kfswWEvVM+PK06mZU7
RvIk5LsWboqM8CLZD10tdIIvhfU+8E34s06VmWFTM2NSYTBPsMjntI1tf/Wvr52a
x/OncjmermsKzBv1RuiRnhqYohQtxGebSIeRt0nbuY7bxgr+96R4ToWJm5fcIvcA
TK+cCd7hSF5hLKw/E+CG8tNkmUOQQiX4iKKokP6DGZZbZZWp2N9ws9VmHWRhS9bk
IbTh+vwM2Q1korueYPf5xLzUdZ81aHPIlyqxYrWME/dbSKy/9f+DSdKpzePT/PRK
80uT93JBaq2iv1Ve1/T35ICCkX5Naw==
=EIn5
-----END PGP SIGNATURE-----payloadtree 93cbaf9eada68dc782524c15ecbff869d8ce5f3e
parent 11535fb1a332039b728a0892c6b63788de2fb410
author Tom Papke <tpapke@palantir.com> 1689154219 +0100
committer Tom Papke <tpapke@palantir.com> 1689182708 +0100

spotless
uuja ^https://api.github.com/repos/palantir/atlasdb/commits/0a286818e4c89ca2002b89fa1125112e7c9471fbhtml_urlShttps://github.com/palantir/atlasdb/commit/0a286818e4c89ca2002b89fa1125112e7c9471fbcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0a286818e4c89ca2002b89fa1125112e7c9471fb/commentsjO }(login	ToemmscheidJbojK MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5ja &https://api.github.com/users/Toemmschejo https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujW }(jt 	Toemmschejv JbojK MDQ6VXNlcjQzNjc1NDkwjx 4https://avatars.githubusercontent.com/u/43675490?v=4jz h5ja &https://api.github.com/users/Toemmschejo https://github.com/Toemmschej} 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(jI (11535fb1a332039b728a0892c6b63788de2fb410ja ^https://api.github.com/repos/palantir/atlasdb/commits/11535fb1a332039b728a0892c6b63788de2fb410jo Shttps://github.com/palantir/atlasdb/commit/11535fb1a332039b728a0892c6b63788de2fb410uastats}(totalK	additionsK	deletionsKufiles]}(jI (7500e79adda67086cdff81e23666a785c5b126eafilenameWlock-api/src/test/java/com/palantir/lock/watch/ConjureLockRequestMetadataUtilsTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/0a286818e4c89ca2002b89fa1125112e7c9471fb/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0a286818e4c89ca2002b89fa1125112e7c9471fb/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.java?ref=0a286818e4c89ca2002b89fa1125112e7c9471fbpatchX  @@ -142,7 +142,7 @@ public void convertingToAndFromConjureYieldsOriginalForRandomData() {
         LockRequestMetadata metadata = LockRequestMetadata.of(lockDescriptorToChangeMetadata);
 
         assertThat(ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(
-                ConjureLockRequestMetadataUtils.toConjureIndexEncoded(lockDescriptors, metadata)))
+                        ConjureLockRequestMetadataUtils.toConjureIndexEncoded(lockDescriptors, metadata)))
                 .as("Converting to Conjure and back yields the original data. Random seed: " + randSeed)
                 .isEqualTo(metadata);
     }
@@ -155,16 +155,16 @@ public void changedLockOrderIsDetected() {
                         conjureMetadataConversionResult)
                 .withLockList(modifiedLockList);
         assertThatLoggableExceptionThrownBy(
-                () -> ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(conversionResult))
+                        () -> ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(conversionResult))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageStartingWith("Key list integrity check failed");
     }
 
     @Test
     public void handlesEmptyData() {
         assertThat(ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(
-                ConjureLockRequestMetadataUtils.toConjureIndexEncoded(
-                        ImmutableSet.of(), LockRequestMetadata.of(ImmutableMap.of()))))
+                        ConjureLockRequestMetadataUtils.toConjureIndexEncoded(
+                                ImmutableSet.of(), LockRequestMetadata.of(ImmutableMap.of()))))
                 .isEqualTo(LockRequestMetadata.of(ImmutableMap.of()));
     }
 }uau(c5eba7a4f331f463b13593e3c43fff2bdda8d704}(sha(c5eba7a4f331f463b13593e3c43fff2bdda8d704node_idEC_kwDOAjP5fdoAKGM1ZWJhN2E0ZjMzMWY0NjNiMTM1OTNlM2M0M2ZmZjJiZGRhOGQ3MDQcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-03-31T01:22:56Zu	committer}(jȀ David Schlosnaglejʀ davids@palantir.comj̀ 2023-03-31T01:22:56Zumessage.Cleanup and purge metrics from PTExecutorsTesttree}(j (9f2584bdcd065b5bc963a9b59e4c33ee593391d6url`https://api.github.com/repos/palantir/atlasdb/git/trees/9f2584bdcd065b5bc963a9b59e4c33ee593391d6uj؀ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c5eba7a4f331f463b13593e3c43fff2bdda8d704
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmQmNfAACgkQR9hsJ74Q
0l+62wf/WoaGUTMs6GJ0FWvKhwgKjCZSKkYREKRE/GFOpaDzIbHqIXKG7jHMJs40
Cn/1QTr1gscskynEa4NbKV2rxfnvS9NI003Vx0IIcxv63kemBaLM8bBqD1GrsYyZ
eHOzqc7gwMKoCCVf+Paik1/Br61PNKTUs/eJVUXKLsWgOQNPsCJUY0kcIbTvo1CI
GR14Sr4k7ECuK1fzhZcNLR5WjuiNHXUm++VkWjNchHwjA/ZrShknq0Tzc9NwPR/+
UOhCLq3rmdZWYkt++XAY7xPI5MXY1swBMg+DM+c80/6jRr7qqLU3WKeGAZgdUwJD
JUXjloTb+G50Zqne/8P/crGDN3xpCA==
=O8ZC
-----END PGP SIGNATURE-----payloadX  tree 9f2584bdcd065b5bc963a9b59e4c33ee593391d6
parent 90f1a60c4c9a5c488f5c78a7abdd1cd0688954a7
author David Schlosnagle <davids@palantir.com> 1680225776 -0400
committer David Schlosnagle <davids@palantir.com> 1680225776 -0400

Cleanup and purge metrics from PTExecutorsTest
uuj؀ ^https://api.github.com/repos/palantir/atlasdb/commits/c5eba7a4f331f463b13593e3c43fff2bdda8d704html_urlShttps://github.com/palantir/atlasdb/commit/c5eba7a4f331f463b13593e3c43fff2bdda8d704comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c5eba7a4f331f463b13593e3c43fff2bdda8d704/commentsjƀ }(loginschlosnaidMBj MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j؀ %https://api.github.com/users/schlosnaj https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj΀ }(j schlosnaj MBj MDQ6VXNlcjU0NTk0j 1https://avatars.githubusercontent.com/u/54594?v=4j h5j؀ %https://api.github.com/users/schlosnaj https://github.com/schlosnaj /https://api.github.com/users/schlosna/followersj <https://api.github.com/users/schlosna/following{/other_user}j 5https://api.github.com/users/schlosna/gists{/gist_id}j <https://api.github.com/users/schlosna/starred{/owner}{/repo}j 3https://api.github.com/users/schlosna/subscriptionsj *https://api.github.com/users/schlosna/orgsj  +https://api.github.com/users/schlosna/reposj 6https://api.github.com/users/schlosna/events{/privacy}j 5https://api.github.com/users/schlosna/received_eventsj Userj uparents]}(j (90f1a60c4c9a5c488f5c78a7abdd1cd0688954a7j؀ ^https://api.github.com/repos/palantir/atlasdb/commits/90f1a60c4c9a5c488f5c78a7abdd1cd0688954a7j Shttps://github.com/palantir/atlasdb/commit/90f1a60c4c9a5c488f5c78a7abdd1cd0688954a7uastats}(totalK@	additionsK
	deletionsK6ufiles]}(j (5666cd0fa7b9f7d4ef8a715735cdb902d890a106filenameScommons-executors/src/test/java/com/palantir/common/concurrent/PTExecutorsTest.javastatusmodifiedj" K
j# K6changesK@blob_urlhttps://github.com/palantir/atlasdb/blob/c5eba7a4f331f463b13593e3c43fff2bdda8d704/commons-executors%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutorsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c5eba7a4f331f463b13593e3c43fff2bdda8d704/commons-executors%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutorsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/commons-executors%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutorsTest.java?ref=c5eba7a4f331f463b13593e3c43fff2bdda8d704patchX  @@ -18,24 +18,15 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
-import com.codahale.metrics.Meter;
-import com.codahale.metrics.Metric;
-import com.google.common.collect.MoreCollectors;
 import com.google.common.util.concurrent.MoreExecutors;
-import com.google.common.util.concurrent.Runnables;
 import com.google.common.util.concurrent.SettableFuture;
 import com.palantir.tracing.Observability;
 import com.palantir.tracing.Tracer;
 import com.palantir.tracing.api.OpenSpan;
 import com.palantir.tracing.api.Span;
 import com.palantir.tracing.api.SpanType;
-import com.palantir.tritium.metrics.registry.MetricName;
-import com.palantir.tritium.metrics.registry.SharedTaggedMetricRegistries;
-import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import java.util.HashMap;
 import java.util.Map;
-import java.util.Objects;
-import java.util.UUID;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Executors;
 import java.util.concurrent.ScheduledFuture;
@@ -48,9 +39,9 @@
 @SuppressWarnings("checkstyle:AbbreviationAsWordInName") // Name matches the class we're testing
 public class PTExecutorsTest {
 
-    private static String INNER_TRACE_ID = "innerTraceId";
-    private static String INNER_SPAN_ID = "innerSpanId";
-    private static String INNER_SPAN_PARENT_ID = "innerSpanParentId";
+    private static final String INNER_TRACE_ID = "innerTraceId";
+    private static final String INNER_SPAN_ID = "innerSpanId";
+    private static final String INNER_SPAN_PARENT_ID = "innerSpanParentId";
 
     @Test
     public void testExecutorName_namedThreadFactory() {
@@ -79,12 +70,12 @@ public void testExecutorName_customThreadFactory_fallback() {
     }
 
     @Test
-    public void testExecutorThreadLocalState_cachedPoolNospan() {
+    public void testExecutorThreadLocalState_cachedPoolNoSpan() {
         Tracer.initTraceWithSpan(Observability.SAMPLE, "RandomID", "outerSpan", SpanType.LOCAL);
 
         String outerTraceId = Tracer.getTraceId();
 
-        // Because we are doing things within a lamda function, we need to use atomic references outside the lamda
+        // Because we are doing things within a lambda function, we need to use atomic references outside the lambda
         AtomicReference<String> innerSpanId = new AtomicReference<>("");
         AtomicReference<String> innerSpanParentId = new AtomicReference<>("");
         AtomicReference<String> innerTraceId = new AtomicReference<>("");
@@ -93,13 +84,13 @@ public void testExecutorThreadLocalState_cachedPoolNospan() {
             // Submit a task of a function that only starts a span within it
             Map<String, String> innerTracInfo = executor.submit(this::spanTask).get();
 
-            // Set our AtomicReference variables for use outside lamda
+            // Set our AtomicReference variables for use outside lambda
             innerTraceId.set(innerTracInfo.get(INNER_TRACE_ID));
             innerSpanId.set(innerTracInfo.get(INNER_SPAN_ID));
             innerSpanParentId.set(innerTracInfo.get(INNER_SPAN_PARENT_ID));
         });
         // Close outer span, which lets us collect information about it
-        Span outerSpan = Tracer.completeSpan().get();
+        Span outerSpan = Tracer.completeSpan().orElseThrow();
 
         assertThat(innerTraceId.get()).isEqualTo(outerTraceId);
         assertThat(outerSpan.getSpanId()).isNotEqualTo(innerSpanId.get());
@@ -169,41 +160,6 @@ public void testExecutorThreadLocalState_scheduledPool_scheduleAtFixedRate() {
         });
     }
 
-    @Test
-    @SuppressWarnings("deprecation") // Testing a component that relies on the singleton TaggedMetricRegistry
-    public void testCachedExecutorMetricsRecorded() {
-        // Metrics are recorded to the global singleton registry, so we generate a random name to avoid
-        // clobbering state from other tests.
-        String executorName = UUID.randomUUID().toString();
-        TaggedMetricRegistry metrics = SharedTaggedMetricRegistries.getSingleton();
-        withExecutor(() -> PTExecutors.newCachedThreadPool(executorName), executor -> {
-            executor.execute(Runnables.doNothing());
-        });
-        Meter submitted = findMetric(
-                metrics,
-                MetricName.builder()
-                        .safeName("executor.submitted")
-                        .putSafeTags("executor", executorName)
-                        .build(),
-                Meter.class);
-        assertThat(submitted.getCount()).isOne();
-    }
-
-    private static <T extends Metric> T findMetric(TaggedMetricRegistry metrics, MetricName name, Class<T> type) {
-        return metrics.getMetrics().entrySet().stream()
-                .filter(entry -> {
-                    MetricName metricName = entry.getKey();
-                    return Objects.equals(name.safeName(), metricName.safeName())
-                            && metricName
-                                    .safeTags()
-                                    .entrySet()
-                                    .containsAll(name.safeTags().entrySet());
-                })
-                .map(Map.Entry::getValue)
-                .map(type::cast)
-                .collect(MoreCollectors.onlyElement());
-    }
-
     private static <T extends ExecutorService> void withExecutor(Supplier<T> factory, ThrowingConsumer<T> test) {
         T executor = factory.get();
         try {
@@ -220,13 +176,13 @@ private static <T extends ExecutorService> void withExecutor(Supplier<T> factory
         }
     }
 
-    // This method is used only to make a span an return some information about the span
+    // This method is used only to make a span and return some information about the span
     private Map<String, String> spanTask() {
         OpenSpan innerSpan = Tracer.startSpan("innerSpan");
-        Map<String, String> innerTraceInfo = new HashMap<String, String>();
+        Map<String, String> innerTraceInfo = new HashMap<>();
         String innerTraceId = Tracer.getTraceId();
         String innerSpanId = innerSpan.getSpanId();
-        String innerSpanParentId = innerSpan.getParentSpanId().get();
+        String innerSpanParentId = innerSpan.getParentSpanId().orElseThrow();
         innerTraceInfo.put(INNER_TRACE_ID, innerTraceId);
         innerTraceInfo.put(INNER_SPAN_ID, innerSpanId);
         innerTraceInfo.put(INNER_SPAN_PARENT_ID, innerSpanParentId);uau(571be71ae44483a76ca407d2d397f0d5cdb9c66c}(sha(571be71ae44483a76ca407d2d397f0d5cdb9c66cnode_idEC_kwDOAjP5fdoAKDU3MWJlNzFhZTQ0NDgzYTc2Y2E0MDdkMmQzOTdmMGQ1Y2RiOWM2NmMcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-05-23T11:43:56Zu	committer}(j? GitHubjA noreply@github.comjC 2023-05-23T11:43:56ZumessageUse subclass mock maker in atlasdb-commons (#6585)

Work around mockito flakes due to BatchingVisitablesTest requiring subclass MockMaker to mock AbstractBatchingVisitable.tree}(j7 (79b9e32dc7c615cb7f18fd1afb713937d293164burl`https://api.github.com/repos/palantir/atlasdb/git/trees/79b9e32dc7c615cb7f18fd1afb713937d293164bujO bhttps://api.github.com/repos/palantir/atlasdb/git/commits/571be71ae44483a76ca407d2d397f0d5cdb9c66c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkbKb8CRBK7hj4Ov3rIwAAaIAIAGIBTPRViXErPiNveg1en1fh
bybUwJyad8gMG8m68imWPTXYS24/mC9PVqGfS/8qPK/EfM19odIaC2afa3Yx6a8F
W43MVscSxuCljz1ojU+Wuhc1mwl0pdT1So5aEbS194XjGGB+yPw8ab/6v8/S5hZA
l/5wjDwYiUpeVFaOi/1sWB43/28O0o2Zaprw3PeqFvZ8lyXtHNWa0885dWdgzdWh
lCcGDokK4rq7barfzCmq4HqiN5vjvvLfFOdOoPBLavZ3fagRxwsQN8KXwoPBmCbQ
qNdaDDE+4/AVouTiECStQI5x65u0M1G7i90lUTmNszjZkZr3ypnSqEyaQaAHa4Y=
=FCsx
-----END PGP SIGNATURE-----
payloadX  tree 79b9e32dc7c615cb7f18fd1afb713937d293164b
parent 072f87112873c25af3123beabb5fc400745ead96
author David Schlosnagle <davids@palantir.com> 1684842236 -0400
committer GitHub <noreply@github.com> 1684842236 +0000

Use subclass mock maker in atlasdb-commons (#6585)

Work around mockito flakes due to BatchingVisitablesTest requiring subclass MockMaker to mock AbstractBatchingVisitable.
uujO ^https://api.github.com/repos/palantir/atlasdb/commits/571be71ae44483a76ca407d2d397f0d5cdb9c66chtml_urlShttps://github.com/palantir/atlasdb/commit/571be71ae44483a76ca407d2d397f0d5cdb9c66ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/571be71ae44483a76ca407d2d397f0d5cdb9c66c/commentsj= }(loginschlosnaidMBj9 MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jO %https://api.github.com/users/schlosnaj] https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujE }(jb web-flowjd J/j9 MDQ6VXNlcjE5ODY0NDQ3jf 4https://avatars.githubusercontent.com/u/19864447?v=4jh h5jO %https://api.github.com/users/web-flowj] https://github.com/web-flowjk /https://api.github.com/users/web-flow/followersjm <https://api.github.com/users/web-flow/following{/other_user}jo 5https://api.github.com/users/web-flow/gists{/gist_id}jq <https://api.github.com/users/web-flow/starred{/owner}{/repo}js 3https://api.github.com/users/web-flow/subscriptionsju *https://api.github.com/users/web-flow/orgsjw +https://api.github.com/users/web-flow/reposjy 6https://api.github.com/users/web-flow/events{/privacy}j{ 5https://api.github.com/users/web-flow/received_eventsj} Userj uparents]}(j7 (072f87112873c25af3123beabb5fc400745ead96jO ^https://api.github.com/repos/palantir/atlasdb/commits/072f87112873c25af3123beabb5fc400745ead96j] Shttps://github.com/palantir/atlasdb/commit/072f87112873c25af3123beabb5fc400745ead96uastats}(totalK\	additionsK?	deletionsKufiles](}(j7 (2dbc24b32d3c1d36a5252a785ef380d28cefa391filename
.java-versionstatusmodifiedj Kj KchangesKblob_url_https://github.com/palantir/atlasdb/blob/571be71ae44483a76ca407d2d397f0d5cdb9c66c/.java-versionraw_url^https://github.com/palantir/atlasdb/raw/571be71ae44483a76ca407d2d397f0d5cdb9c66c/.java-versioncontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/.java-version?ref=571be71ae44483a76ca407d2d397f0d5cdb9c66cpatch@@ -1 +1 @@
-11
+11.0u}(j7 (e01f8f7d37ce43a9eb4672184fb9c3abd935633ej eatlasdb-commons/src/test/java/com/palantir/common/concurrent/CheckedRejectionExecutorServiceTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/571be71ae44483a76ca407d2d397f0d5cdb9c66c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javaj https://github.com/palantir/atlasdb/raw/571be71ae44483a76ca407d2d397f0d5cdb9c66c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.java?ref=571be71ae44483a76ca407d2d397f0d5cdb9c66cj X#
  @@ -19,31 +19,38 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.doThrow;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.google.common.util.concurrent.Futures;
 import java.util.concurrent.Callable;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.RejectedExecutionException;
 import org.junit.Test;
+import org.mockito.MockMakers;
 
 public class CheckedRejectionExecutorServiceTest {
     private static final Runnable DO_NOTHING = () -> {};
     private static final Callable<Integer> RETURN_ONE = () -> 1;
-    private static final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION = new RejectedExecutionException();
+    private static final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION =
+            new RejectedExecutionException("test");
 
-    private final ExecutorService delegate = mock(ExecutorService.class);
+    private final ExecutorService delegate =
+            mock(ExecutorService.class, withSettings().mockMaker(MockMakers.SUBCLASS));
     private final CheckedRejectionExecutorService checkedRejectionExecutor =
             new CheckedRejectionExecutorService(delegate);
 
     @Test
     public void passesCallThroughExecute() throws CheckedRejectedExecutionException {
         checkedRejectionExecutor.execute(DO_NOTHING);
         verify(delegate, times(1)).execute(DO_NOTHING);
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
@@ -52,22 +59,27 @@ public void passesCallThroughSubmit() throws CheckedRejectedExecutionException {
         assertThat(Futures.getUnchecked(checkedRejectionExecutor.submit(RETURN_ONE)))
                 .isEqualTo(1);
         verify(delegate, times(1)).submit(RETURN_ONE);
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
     public void propagatesRejectionThroughExecute() {
-        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).execute(any());
+        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).execute(any(Runnable.class));
         assertThatThrownBy(() -> checkedRejectionExecutor.execute(DO_NOTHING))
                 .isInstanceOf(CheckedRejectedExecutionException.class)
                 .hasCause(REJECTED_EXECUTION_EXCEPTION);
+        verify(delegate).execute(eq(DO_NOTHING));
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
     @SuppressWarnings("unchecked") // Mocks
     public void propagatesRejectionThroughSubmit() {
-        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).submit(any(Callable.class));
+        when(delegate.submit(any(Callable.class))).thenThrow(REJECTED_EXECUTION_EXCEPTION);
         assertThatThrownBy(() -> checkedRejectionExecutor.submit(RETURN_ONE))
                 .isInstanceOf(CheckedRejectedExecutionException.class)
                 .hasCause(REJECTED_EXECUTION_EXCEPTION);
+        verify(delegate).submit(eq(RETURN_ONE));
+        verifyNoMoreInteractions(delegate);
     }
 }u}(j7 (d0f9372cc1f1f0ca2951aae2549e2f3c289903e7j Xatlasdb-commons/src/test/java/com/palantir/common/concurrent/CoalescingSupplierTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/571be71ae44483a76ca407d2d397f0d5cdb9c66c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.javaj https://github.com/palantir/atlasdb/raw/571be71ae44483a76ca407d2d397f0d5cdb9c66c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.java?ref=571be71ae44483a76ca407d2d397f0d5cdb9c66cj X  @@ -24,6 +24,7 @@
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
@@ -49,12 +50,14 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
+import org.mockito.MockMakers;
 
 @RunWith(Parameterized.class)
 public class CoalescingSupplierTest {
     private static final int DEFAULT_VALUE = 123;
 
-    private final Supplier<Integer> delegate = mock(Supplier.class);
+    private final Supplier<Integer> delegate =
+            mock(Supplier.class, withSettings().mockMaker(MockMakers.SUBCLASS));
     private final FreezableSupplier freezableDelegate = new FreezableSupplier(delegate);
     private final CoalescingSupplier<Integer> coalescing = new CoalescingSupplier<>(freezableDelegate);
 u}(j7 (9146e63073d86fe3d770ab7103a6eb65623b8820j Watlasdb-commons/src/test/java/com/palantir/common/proxy/ExperimentRunningProxyTest.javaj modifiedj K	j Kj Kj https://github.com/palantir/atlasdb/blob/571be71ae44483a76ca407d2d397f0d5cdb9c66c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.javaj https://github.com/palantir/atlasdb/raw/571be71ae44483a76ca407d2d397f0d5cdb9c66c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.java?ref=571be71ae44483a76ca407d2d397f0d5cdb9c66cj X-  @@ -21,6 +21,7 @@
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import java.lang.reflect.Proxy;
 import java.time.Clock;
@@ -31,18 +32,21 @@
 import java.util.function.Supplier;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class ExperimentRunningProxyTest {
     private static final int EXPERIMENTAL_RESULT = 123;
     private static final int FALLBACK_RESULT = 1;
     private static final RuntimeException RUNTIME_EXCEPTION = new RuntimeException("foo");
 
-    private final IntSupplier experimentalIntSupplier = mock(IntSupplier.class);
-    private final Supplier<IntSupplier> experimentSupplier = mock(Supplier.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private final IntSupplier experimentalIntSupplier = mock(IntSupplier.class, mockSettings);
+    private final Supplier<IntSupplier> experimentSupplier = mock(Supplier.class, mockSettings);
     private final IntSupplier fallbackIntSupplier = () -> FALLBACK_RESULT;
-    private final BooleanSupplier useExperimental = mock(BooleanSupplier.class);
-    private final BooleanSupplier enableFallback = mock(BooleanSupplier.class);
-    private final Clock clock = mock(Clock.class);
+    private final BooleanSupplier useExperimental = mock(BooleanSupplier.class, mockSettings);
+    private final BooleanSupplier enableFallback = mock(BooleanSupplier.class, mockSettings);
+    private final Clock clock = mock(Clock.class, mockSettings);
     private final AtomicLong errorCounter = new AtomicLong();
 
     private final IntSupplier proxyInstance = intSupplierForProxy(new ExperimentRunningProxy<>(u}(j7 (b0f2716a61e018a00bbe37c55b0a8985af943d96j Watlasdb-commons/src/test/java/com/palantir/common/proxy/PredicateSwitchedProxyTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/571be71ae44483a76ca407d2d397f0d5cdb9c66c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.javaj https://github.com/palantir/atlasdb/raw/571be71ae44483a76ca407d2d397f0d5cdb9c66c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.java?ref=571be71ae44483a76ca407d2d397f0d5cdb9c66cj X~  @@ -19,14 +19,18 @@
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.withSettings;
 
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.function.IntConsumer;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class PredicateSwitchedProxyTest {
-    private final IntConsumer decorated = mock(IntConsumer.class);
-    private final IntConsumer delegate = mock(IntConsumer.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private final IntConsumer decorated = mock(IntConsumer.class, mockSettings);
+    private final IntConsumer delegate = mock(IntConsumer.class, mockSettings);
 
     private final AtomicBoolean atomicBoolean = new AtomicBoolean(false);
 u}(j7 (afb4f7f151215eb0eb16fab26719c6f0358957e5j `atlasdb-commons/src/test/java/com/palantir/common/proxy/ReplaceIfExceptionMatchingProxyTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/571be71ae44483a76ca407d2d397f0d5cdb9c66c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.javaj https://github.com/palantir/atlasdb/raw/571be71ae44483a76ca407d2d397f0d5cdb9c66c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.java?ref=571be71ae44483a76ca407d2d397f0d5cdb9c66cj Xl  @@ -29,16 +29,17 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.mockito.Mock;
+import org.mockito.MockMakers;
 import org.mockito.junit.MockitoJUnitRunner;
 
 // Mock is used as a convenient supplier, alternatives are rather verbose
 @SuppressWarnings("DirectInvocationOnMock")
 @RunWith(MockitoJUnitRunner.class)
 public class ReplaceIfExceptionMatchingProxyTest {
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private TestInterface delegate;
 
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private Supplier<TestInterface> supplier;
 
     interface TestInterface {u}(j7 (d8fe3c284ed462a646f9db9df6e46865f71c8b7fj Oatlasdb-commons/src/test/java/com/palantir/util/CachedComposedSupplierTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/571be71ae44483a76ca407d2d397f0d5cdb9c66c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.javaj https://github.com/palantir/atlasdb/raw/571be71ae44483a76ca407d2d397f0d5cdb9c66c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.java?ref=571be71ae44483a76ca407d2d397f0d5cdb9c66cj X  @@ -16,7 +16,9 @@
 package com.palantir.util;
 
 import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.concurrent.ExecutorService;
@@ -25,7 +27,7 @@
 import java.util.function.Supplier;
 import org.junit.Before;
 import org.junit.Test;
-import org.mockito.Mockito;
+import org.mockito.MockMakers;
 
 public class CachedComposedSupplierTest {
     private long counter;
@@ -37,7 +39,7 @@ public class CachedComposedSupplierTest {
     public void setup() {
         counter = 0;
         supplierCounter = 0;
-        mockVersionedSupplier = Mockito.mock(Supplier.class);
+        mockVersionedSupplier = mock(Supplier.class, withSettings().mockMaker(MockMakers.SUBCLASS));
         testSupplier = new CachedComposedSupplier<>(this::countingFunction, mockVersionedSupplier);
     }
 u}(j7 (21ad962d9f363b09efeaba7f674e27e337cb763aj Katlasdb-commons/src/test/java/com/palantir/util/SafeShutdownRunnerTest.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/571be71ae44483a76ca407d2d397f0d5cdb9c66c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.javaj https://github.com/palantir/atlasdb/raw/571be71ae44483a76ca407d2d397f0d5cdb9c66c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.java?ref=571be71ae44483a76ca407d2d397f0d5cdb9c66cj X  @@ -24,6 +24,7 @@
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import java.time.Duration;
@@ -32,14 +33,17 @@
 import java.util.stream.Stream;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class SafeShutdownRunnerTest {
     private static final RuntimeException EXCEPTION_1 = new RuntimeException("test");
     private static final RuntimeException EXCEPTION_2 = new RuntimeException("bleh");
 
-    private Runnable mockRunnable = mock(Runnable.class);
-    private Runnable throwingRunnable = mock(Runnable.class);
-    private Runnable blockingUninterruptibleRunnable = mock(Runnable.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private Runnable mockRunnable = mock(Runnable.class, mockSettings);
+    private Runnable throwingRunnable = mock(Runnable.class, mockSettings);
+    private Runnable blockingUninterruptibleRunnable = mock(Runnable.class, mockSettings);
 
     @Before
     public void setupMocks() {u}(j7 (66bef959146e2dc5dd5452e6f9606c9e4120c4f4j Datlasdb-commons/src/test/java/com/palantir/util/TimedRunnerTest.javaj modifiedj K	j Kj Kj https://github.com/palantir/atlasdb/blob/571be71ae44483a76ca407d2d397f0d5cdb9c66c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.javaj https://github.com/palantir/atlasdb/raw/571be71ae44483a76ca407d2d397f0d5cdb9c66c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.java?ref=571be71ae44483a76ca407d2d397f0d5cdb9c66cj X	  @@ -23,19 +23,23 @@
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.util.TimedRunner.TaskContext;
 import java.time.Duration;
 import java.util.concurrent.Callable;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public final class TimedRunnerTest {
     private static final RuntimeException EXCEPTION_1 = new RuntimeException("test");
     private static final RuntimeException EXCEPTION_2 = new RuntimeException("bleh");
 
-    private Runnable noOpRunnable = mock(Runnable.class);
-    private Runnable throwingRunnable = mock(Runnable.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private Runnable noOpRunnable = mock(Runnable.class, mockSettings);
+    private Runnable throwingRunnable = mock(Runnable.class, mockSettings);
 
     @Before
     public void setupMocks() {
@@ -46,7 +50,7 @@ public void setupMocks() {
     public void runnerRunsOneTask() throws Exception {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
 
-        Callable<Integer> task = mock(Callable.class);
+        Callable<Integer> task = mock(Callable.class, mockSettings);
         when(task.call()).thenReturn(5);
         int result = runner.run(TaskContext.create(task, noOpRunnable));
 
@@ -58,7 +62,7 @@ public void runnerRunsOneTask() throws Exception {
     @Test
     public void exceptionsAreThrownWhenRunningSingleton() {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
-        Runnable failureHandler = mock(Runnable.class);
+        Runnable failureHandler = mock(Runnable.class, mockSettings);
 
         assertThatThrownBy(() -> runner.run(TaskContext.createRunnable(throwingRunnable, failureHandler)))
                 .isEqualTo(EXCEPTION_1);
@@ -68,7 +72,7 @@ public void exceptionsAreThrownWhenRunningSingleton() {
     @Test
     public void correctSuppressedExceptionsAreThrownIfFailureHandlerThrows() {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
-        Runnable failureHandler = mock(Runnable.class);
+        Runnable failureHandler = mock(Runnable.class, mockSettings);
         doThrow(EXCEPTION_2).when(failureHandler).run();
 
         assertThatThrownBy(() -> runner.run(TaskContext.createRunnable(throwingRunnable, failureHandler)))u}(j7 (196c276969d650b1d6d0e72c152a4a1d49ef5f6ej 
versions.lockj modifiedj Kj Kj Kj _https://github.com/palantir/atlasdb/blob/571be71ae44483a76ca407d2d397f0d5cdb9c66c/versions.lockj ^https://github.com/palantir/atlasdb/raw/571be71ae44483a76ca407d2d397f0d5cdb9c66c/versions.lockj qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=571be71ae44483a76ca407d2d397f0d5cdb9c66cj X  @@ -200,8 +200,8 @@ jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.5 (6 constraints: 845987f4)
 junit:junit:4.13.2 (8 constraints: 5a9c5baf)
-net.bytebuddy:byte-buddy:1.14.3 (3 constraints: 3d25d791)
-net.bytebuddy:byte-buddy-agent:1.14.1 (1 constraints: 410b3fde)
+net.bytebuddy:byte-buddy:1.14.4 (3 constraints: 4025da91)
+net.bytebuddy:byte-buddy-agent:1.14.4 (1 constraints: 440b42de)
 net.java.dev.jna:jna:4.1.0 (2 constraints: 6e1bbbad)
 net.jpountz.lz4:lz4:1.3.0 (2 constraints: 971453a0)
 net.ltgt.gradle.incap:incap:0.2 (1 constraints: ea0d3b32)
@@ -293,7 +293,7 @@ org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.0 (3 constraints: c125b5a3)
 org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.5.0 (1 constraints: 4b0ea44e)
 org.jvnet:animal-sniffer-annotation:1.0 (1 constraints: f20b95eb)
 org.mindrot:jbcrypt:0.4 (2 constraints: 4714f171)
-org.mockito:mockito-core:5.2.0 (2 constraints: 51165c12)
+org.mockito:mockito-core:5.3.1 (2 constraints: 5316c412)
 org.mpierce.metrics.reservoir:hdrhistogram-metrics-reservoir:1.1.3 (1 constraints: 0d10f991)
 org.objenesis:objenesis:3.3 (2 constraints: c71412ab)
 org.openjdk.jmh:jmh-core:1.36 (2 constraints: f51525d9)u}(j7 (089fade66d09b3cbc4c42ee07a5dca286262895cj versions.propsj modifiedj Kj Kj Kj `https://github.com/palantir/atlasdb/blob/571be71ae44483a76ca407d2d397f0d5cdb9c66c/versions.propsj _https://github.com/palantir/atlasdb/raw/571be71ae44483a76ca407d2d397f0d5cdb9c66c/versions.propsj rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=571be71ae44483a76ca407d2d397f0d5cdb9c66cj X  @@ -72,7 +72,7 @@ org.jboss.threads:jboss-threads = 3.5.0.Final
 org.jdbi:* = 3.30.0
 org.jmock:jmock* = 2.12.0
 org.mindrot:jbcrypt = 0.4
-org.mockito:* = 5.2.0
+org.mockito:* = 5.3.1
 org.openjdk.jmh:* = 1.36
 org.reflections:reflections = 0.10.2
 org.rocksdb:rocksdbjni = 7.9.2ueu(3dd63e3f2da8f889f2e5019da3d9a4c4591510c1}(sha(3dd63e3f2da8f889f2e5019da3d9a4c4591510c1node_idEC_kwDOAjP5fdoAKDNkZDYzZTNmMmRhOGY4ODlmMmU1MDE5ZGEzZDlhNGM0NTkxNTEwYzEcommit}(author}(nameasvobodaemailasvoboda@palantir.comdate2023-04-11T13:03:09Zu	committer}(j asvobodaj asvoboda@palantir.comj
 2023-04-11T13:03:09ZumessageRun gradle with build scanstree}(j (5b14ec019be62189c3022a6eaff1af961650f68durl`https://api.github.com/repos/palantir/atlasdb/git/trees/5b14ec019be62189c3022a6eaff1af961650f68duj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3dd63e3f2da8f889f2e5019da3d9a4c4591510c1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEdIuwDD6Smj9zmaar22lbkXKAY5EFAmQ1Wo0ACgkQ22lbkXKA
Y5HeRgf/fVWEU3xbGRifVhbK+AzCMrqF/ZmDYhC3LTEBHEg6TS2b2ZZY37qskWuu
+a/iXXFT5PwrCvOMvyp0xseRARJGiRvp+OboKNkDhdWgVSEBzpRZAA3qFj1OWiSD
6YuW25ddq6eQkjxMRJcAPa8agZirq/8wT6LRUpk0lwgU+ElMPFizKmCU70DNUNfR
EeQLAbyFCUINgjOAGg7nj9xzJU4UyuG3+VF/79h5me8EdQU3ytI1cRGOPlLmorvv
bJ6s9re2vOZZRMCpul5WREj61wVWnu6Z19i3i4wpNr8RMIQnia100T3Sq0IDAHCN
FUWDAPt7CH07t5IUSNxVcMSQc1SqIQ==
=3ukQ
-----END PGP SIGNATURE-----payloadtree 5b14ec019be62189c3022a6eaff1af961650f68d
parent 6e081f04521863ae0874fd2ba63760f3ef0f0d68
author asvoboda <asvoboda@palantir.com> 1681218189 +0100
committer asvoboda <asvoboda@palantir.com> 1681218189 +0100

Run gradle with build scans
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/3dd63e3f2da8f889f2e5019da3d9a4c4591510c1html_urlShttps://github.com/palantir/atlasdb/commit/3dd63e3f2da8f889f2e5019da3d9a4c4591510c1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3dd63e3f2da8f889f2e5019da3d9a4c4591510c1/commentsj }(loginasvobodaidJ$ j  MDQ6VXNlcjEzMTk5NDQ=
avatar_url3https://avatars.githubusercontent.com/u/1319944?v=4gravatar_idh5j %https://api.github.com/users/asvobodaj$ https://github.com/asvoboda
followers_url/https://api.github.com/users/asvoboda/followers
following_url<https://api.github.com/users/asvoboda/following{/other_user}	gists_url5https://api.github.com/users/asvoboda/gists{/gist_id}starred_url<https://api.github.com/users/asvoboda/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/asvoboda/subscriptionsorganizations_url*https://api.github.com/users/asvoboda/orgs	repos_url+https://api.github.com/users/asvoboda/repos
events_url6https://api.github.com/users/asvoboda/events{/privacy}received_events_url5https://api.github.com/users/asvoboda/received_eventstypeUser
site_adminuj }(j) asvobodaj+ J$ j  MDQ6VXNlcjEzMTk5NDQ=j- 3https://avatars.githubusercontent.com/u/1319944?v=4j/ h5j %https://api.github.com/users/asvobodaj$ https://github.com/asvobodaj2 /https://api.github.com/users/asvoboda/followersj4 <https://api.github.com/users/asvoboda/following{/other_user}j6 5https://api.github.com/users/asvoboda/gists{/gist_id}j8 <https://api.github.com/users/asvoboda/starred{/owner}{/repo}j: 3https://api.github.com/users/asvoboda/subscriptionsj< *https://api.github.com/users/asvoboda/orgsj> +https://api.github.com/users/asvoboda/reposj@ 6https://api.github.com/users/asvoboda/events{/privacy}jB 5https://api.github.com/users/asvoboda/received_eventsjD UserjF uparents]}(j (6e081f04521863ae0874fd2ba63760f3ef0f0d68j ^https://api.github.com/repos/palantir/atlasdb/commits/6e081f04521863ae0874fd2ba63760f3ef0f0d68j$ Shttps://github.com/palantir/atlasdb/commit/6e081f04521863ae0874fd2ba63760f3ef0f0d68uastats}(totalK	additionsK	deletionsKufiles](}(j (8860749f334e2fbd898a532814099762c3c557d7filename.circleci/config.ymlstatusmodifiedj` Kja KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/3dd63e3f2da8f889f2e5019da3d9a4c4591510c1/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/3dd63e3f2da8f889f2e5019da3d9a4c4591510c1/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=3dd63e3f2da8f889f2e5019da3d9a4c4591510c1patchX  @@ -17,7 +17,7 @@ jobs:
           key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
 
       - run: git tag -l | xargs git tag -d && git fetch -t # ensure all tags are fetched and up-to-date
-      - run: ./gradlew --profile --parallel --stacktrace classes testClasses
+      - run: ./gradlew --scan --profile --parallel --stacktrace classes testClasses
 
       - save_cache:
           key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
@@ -95,7 +95,7 @@ jobs:
       CIRCLE_ARTIFACTS: /tmp/artifacts
     steps:
       - attach_workspace: { at: . }
-      - run: ./gradlew --profile --stacktrace --continue publishToMavenLocal
+      - run: ./gradlew --scan --profile --stacktrace --continue publishToMavenLocal
 
   deploy:
     docker:
@@ -118,7 +118,7 @@ jobs:
             # hack - notion of "owners" isn't supported in Circle 2
             if [ $CIRCLE_PROJECT_USERNAME = 'palantir' ] && [ -z $CIRCLE_PR_NUMBER ]; then
               git status
-              ./gradlew --profile --stacktrace --continue publish
+              ./gradlew --scan --profile --stacktrace --continue publish
             fi
       - run:
           command: |u}(j (e69de29bb2d1d6434b8b29ae775ad8c2e48c5391jf .circleci/template.shjh removedj` K ja K jj K jk ihttps://github.com/palantir/atlasdb/blob/6e081f04521863ae0874fd2ba63760f3ef0f0d68/.circleci%2Ftemplate.shjm hhttps://github.com/palantir/atlasdb/raw/6e081f04521863ae0874fd2ba63760f3ef0f0d68/.circleci%2Ftemplate.shjo {https://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Ftemplate.sh?ref=6e081f04521863ae0874fd2ba63760f3ef0f0d68u}(j (e54426d1acfa50edcd80ca6e7c5690038753ddebjf settings.gradlejh modifiedj` K
ja K jj K
jk ahttps://github.com/palantir/atlasdb/blob/3dd63e3f2da8f889f2e5019da3d9a4c4591510c1/settings.gradlejm `https://github.com/palantir/atlasdb/raw/3dd63e3f2da8f889f2e5019da3d9a4c4591510c1/settings.gradlejo shttps://api.github.com/repos/palantir/atlasdb/contents/settings.gradle?ref=3dd63e3f2da8f889f2e5019da3d9a4c4591510c1jq X  @@ -1,4 +1,9 @@
+plugins {
+    id "com.gradle.enterprise" version "3.12.6"
+}
+
 rootProject.name = 'atlasdb'
+
 include ":atlasdb-api"
 include ":atlasdb-autobatch"
 include ":atlasdb-cassandra"
@@ -80,3 +85,11 @@ buildCache {
         enabled = !isCiServer
     }
 }
+
+gradleEnterprise {
+    buildScan {
+        termsOfServiceUrl = "https://gradle.com/terms-of-service"
+        termsOfServiceAgree = "yes"
+        uploadInBackground = !isCiServer
+    }
+}ueu(39b056cb1b105545e84f93ffe4c1291b6f432168}(sha(39b056cb1b105545e84f93ffe4c1291b6f432168node_idEC_kwDOAjP5fdoAKDM5YjA1NmNiMWIxMDU1NDVlODRmOTNmZmU0YzEyOTFiNmY0MzIxNjgcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-07T17:16:37Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-03-07T17:16:37Zumessage!use import rather than full classtree}(j (976ed5c76a16bf7c025f962298ea4a94b2117f6burl`https://api.github.com/repos/palantir/atlasdb/git/trees/976ed5c76a16bf7c025f962298ea4a94b2117f6buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/39b056cb1b105545e84f93ffe4c1291b6f432168
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQHcXUACgkQmPPOpKR4
XS0jwAgAzEAf177U5mRHIe5XJkwbITOYjXtrUcTQkrQf9f0BA7aZn7ifNmkapijJ
tPaa5PxwaoX06airitCBoxDYHNZo15BFZu+EIYA0UNAqPv4Rci1C+cjP/yuYfTAG
IBc+bhAhp3wagpetX4VsouZ5TaPBYKZ9LfZrDMPdfelyd/izrnibM5wsTgJoB0fN
IhFzqnvPjwWsSjjl+puXbDxB1nQvnVUn6MTiKbQlXTIVVfkZs4AFFdbYVJJlilzC
RW1ZmahOKE3SK0WZh7w1G5mnT6l8XPO5F3lhMTGkklg8WWZnA00dm9hCDUHS8RSj
LptyN3FXwsDIMvq3s3JBDLJfNzKUzw==
=mLdp
-----END PGP SIGNATURE-----payloadtree 976ed5c76a16bf7c025f962298ea4a94b2117f6b
parent cd3abc5e91df1670258a109dc7b7887b9b4dc000
author Sam Kramer <skramer@palantir.com> 1678209397 +0000
committer Sam Kramer <skramer@palantir.com> 1678209397 +0000

use import rather than full class
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/39b056cb1b105545e84f93ffe4c1291b6f432168html_urlShttps://github.com/palantir/atlasdb/commit/39b056cb1b105545e84f93ffe4c1291b6f432168comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/39b056cb1b105545e84f93ffe4c1291b6f432168/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsjĂ -https://api.github.com/users/Sam-Kramer/reposjƂ 8https://api.github.com/users/Sam-Kramer/events{/privacy}jȂ 7https://api.github.com/users/Sam-Kramer/received_eventsjʂ Userĵ uparents]}(j (cd3abc5e91df1670258a109dc7b7887b9b4dc000j ^https://api.github.com/repos/palantir/atlasdb/commits/cd3abc5e91df1670258a109dc7b7887b9b4dc000j Shttps://github.com/palantir/atlasdb/commit/cd3abc5e91df1670258a109dc7b7887b9b4dc000uastats}(totalK	additionsK	deletionsKufiles]}(j (b7286928106b877bf88cb2eb9d1a7c176af42092filenamebatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ValidationStore.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/39b056cb1b105545e84f93ffe4c1291b6f432168/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/39b056cb1b105545e84f93ffe4c1291b6f432168/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.java?ref=39b056cb1b105545e84f93ffe4c1291b6f432168patchX  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.store;
 
+import io.vavr.collection.Map;
 import java.util.Optional;
 
 /**
@@ -25,5 +26,5 @@
 public interface ValidationStore {
 
     /** Return all cells and values for all tables. Value is expected to be empty for deleted cells. */
-    io.vavr.collection.Map<TableAndWorkloadCell, Optional<Integer>> values();
+    Map<TableAndWorkloadCell, Optional<Integer>> values();
 }uau(f78ecf6fd9c7ef92cfd45300ca607bfdf87f0aff}(sha(f78ecf6fd9c7ef92cfd45300ca607bfdf87f0affnode_idEC_kwDOAjP5fdoAKGY3OGVjZjZmZDljN2VmOTJjZmQ0NTMwMGNhNjA3YmZkZjg3ZjBhZmYcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-08-07T16:37:49Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-08-07T16:37:49ZumessageAdjust test constantstree}(j (b97ec0b909d7ff40fdebfc3a3bb2096dd0722f2furl`https://api.github.com/repos/palantir/atlasdb/git/trees/b97ec0b909d7ff40fdebfc3a3bb2096dd0722f2fuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f78ecf6fd9c7ef92cfd45300ca607bfdf87f0aff
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTRHd0ACgkQmF9s0kaF
Iw0zQgf/YJKKk4RseXwx+3Ns3jfF9let6TUEluU1i9IcdVloRU/WdNEc4NIdQEZE
ctbyzRHZwq/9codFemeBcnbX4p4EJEsPBecCjYt96DPyA9Upt7trHkpYRmz5Cm5G
RWKpfheqf4YjljPJbKSEmKdPnQv5SKg4Mf4v4SMZ2Kbs1SGD3zFFO71TfPJPE0Qi
IAkJvWjLluqTMiTnQXyTjLVF5OsXOh1dxyG830yJR58fOpJADDKpk3E1/OdA905S
LKp+7Eua/CSbzS65TXQ9e+/atKWhA62+iWUnAcbF94cY0x6ivwZ/nCtq098n4yB0
raVy4W4ryXawkIsix8MKG3vR6WqeUw==
=WrFE
-----END PGP SIGNATURE-----payloadtree b97ec0b909d7ff40fdebfc3a3bb2096dd0722f2f
parent 2378f53192f7e8264b224dc092494f7ccbf8f6d4
author Tom Papke <tpapke@palantir.com> 1691426269 +0100
committer Tom Papke <tpapke@palantir.com> 1691426269 +0100

Adjust test constants
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/f78ecf6fd9c7ef92cfd45300ca607bfdf87f0affhtml_urlShttps://github.com/palantir/atlasdb/commit/f78ecf6fd9c7ef92cfd45300ca607bfdf87f0affcomments_url     ghttps://api.github.com/repos/palantir/atlasdb/commits/f78ecf6fd9c7ef92cfd45300ca607bfdf87f0aff/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej! https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj	 }(j& 	Toemmschej( Jboj MDQ6VXNlcjQzNjc1NDkwj* 4https://avatars.githubusercontent.com/u/43675490?v=4j, h5j &https://api.github.com/users/Toemmschej! https://github.com/Toemmschej/ 0https://api.github.com/users/Toemmsche/followersj1 =https://api.github.com/users/Toemmsche/following{/other_user}j3 6https://api.github.com/users/Toemmsche/gists{/gist_id}j5 =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j7 4https://api.github.com/users/Toemmsche/subscriptionsj9 +https://api.github.com/users/Toemmsche/orgsj; ,https://api.github.com/users/Toemmsche/reposj= 7https://api.github.com/users/Toemmsche/events{/privacy}j? 6https://api.github.com/users/Toemmsche/received_eventsjA UserjC uparents]}(j (2378f53192f7e8264b224dc092494f7ccbf8f6d4j ^https://api.github.com/repos/palantir/atlasdb/commits/2378f53192f7e8264b224dc092494f7ccbf8f6d4j! Shttps://github.com/palantir/atlasdb/commit/2378f53192f7e8264b224dc092494f7ccbf8f6d4uastats}(totalK	additionsK	deletionsKufiles]}(j (f1b85618e7639b071322e1cd5d57a8d241db269cfilenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedj] Kj^ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/f78ecf6fd9c7ef92cfd45300ca607bfdf87f0aff/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f78ecf6fd9c7ef92cfd45300ca607bfdf87f0aff/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=f78ecf6fd9c7ef92cfd45300ca607bfdf87f0affpatchXm  @@ -2683,7 +2683,7 @@ public void noMetadataResultsInEmptyOptional() {
     public void lockCollectionWithoutMetadataIsCorrect() {
         long randomSeed = System.currentTimeMillis();
         int numTables = 10;
-        int numCellsPerTable = 10;
+        int numCellsPerTable = 100;
         int totalWrites = 200;
 
         Random random = new Random(randomSeed);
@@ -2709,8 +2709,16 @@ public void lockCollectionWithoutMetadataIsCorrect() {
         Transaction txn = getSnapshotTransactionWith(timelockService, tableToConflictHandler);
 
         Map<TableReference, Set<Cell>> cellsWithWrites = new HashMap<>();
-        IntStream.range(0, totalWrites)
-                .forEach(_unused -> applyRandomWrite(random, txn, tables, cells, cellsWithWrites));
+        IntStream.range(0, totalWrites).forEach(_unused -> {
+            TableReference table = tables.get(random.nextInt(tables.size()));
+            Cell cell = cells.get(random.nextInt(cells.size()));
+            if (random.nextBoolean()) {
+                txn.put(table, ImmutableMap.of(cell, TEST_VALUE));
+            } else {
+                txn.delete(table, ImmutableSet.of(cell));
+            }
+            cellsWithWrites.computeIfAbsent(table, _ignored -> new HashSet<>()).add(cell);
+        });
 
         Set<LockDescriptor> expectedLocks = getExpectedLocks(tableToConflictHandler, cellsWithWrites);
         verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
@@ -3046,7 +3054,6 @@ private static Set<LockDescriptor> getExpectedLocks(
             Map<TableReference, Optional<ConflictHandler>> tableToConflictHandler,
             Map<TableReference, Set<Cell>> cellsWithWrites) {
         ImmutableSet.Builder<LockDescriptor> locksBuilder = ImmutableSet.builder();
-
         cellsWithWrites.forEach((table, writes) -> {
             ConflictHandler conflictHandler = tableToConflictHandler.get(table).orElseThrow();
             writes.forEach(cell -> {
@@ -3062,22 +3069,6 @@ private static Set<LockDescriptor> getExpectedLocks(
         return locksBuilder.build();
     }
 
-    private static void applyRandomWrite(
-            Random random,
-            Transaction txn,
-            List<TableReference> tables,
-            List<Cell> cells,
-            Map<TableReference, Set<Cell>> cellsWithWrites) {
-        TableReference table = tables.get(random.nextInt(tables.size()));
-        Cell cell = cells.get(random.nextInt(cells.size()));
-        if (random.nextBoolean()) {
-            txn.put(table, ImmutableMap.of(cell, TEST_VALUE));
-        } else {
-            txn.delete(table, ImmutableSet.of(cell));
-        }
-        cellsWithWrites.computeIfAbsent(table, ignored -> new HashSet<>()).add(cell);
-    }
-
     private static class VerifyingKeyValueServiceDelegate extends ForwardingKeyValueService {
         private final KeyValueService delegate;
         private final PathTypeTracker pathTypeTracker;uau(9c5b9febb991d4672d2c760736edb97684778a60}(sha(9c5b9febb991d4672d2c760736edb97684778a60node_idEC_kwDOAjP5fdoAKDljNWI5ZmViYjk5MWQ0NjcyZDJjNzYwNzM2ZWRiOTc2ODQ3NzhhNjAcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-18T10:37:32Zu	committer}(jz 
Sam Kramerj| skramer@palantir.comj~ 2023-08-18T10:37:32Zumessageintellij woes pt IItree}(jr (2030bcb6f17aa9f3676fd1e0bf6bd15e4beb25d4url`https://api.github.com/repos/palantir/atlasdb/git/trees/2030bcb6f17aa9f3676fd1e0bf6bd15e4beb25d4uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9c5b9febb991d4672d2c760736edb97684778a60
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTfSewACgkQmPPOpKR4
XS0GAgf9EC1bDH3bzqKoF5jBAs4uO0YoLF69M4FObwiya43OVRLh426+I0g/udOQ
CIpiXTLNSab4HPN0lZcEKwlL6r2+xkgpK6CU3Zfp3+IbqISSiNPh91aksgp/vXvd
Tksg+f6Tqym8mgRit3+uzXkBH1nbWh//ymo3/r6Z+YOp37C3/1XIAM0X5ZRyxN0r
FYZM6PXPXl9IRtRMAuVJSSeiLDqMCgIm38alFGMaVQApDyfiEBvUXs8bHT48Mud+
ge37iQvfbMcJxXeplXsngD5y8gPSbjfM9CBcP3CHY16vbS7J8MqG935jdQTtakjs
Z0z9IVX/i03joNMnk6/VOzeHu5bKkA==
=G99q
-----END PGP SIGNATURE-----payloadtree 2030bcb6f17aa9f3676fd1e0bf6bd15e4beb25d4
parent 2d29f38d962eac726791049d035b5d266219c3aa
author Sam Kramer <skramer@palantir.com> 1692355052 +0100
committer Sam Kramer <skramer@palantir.com> 1692355052 +0100

intellij woes pt II
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/9c5b9febb991d4672d2c760736edb97684778a60html_urlShttps://github.com/palantir/atlasdb/commit/9c5b9febb991d4672d2c760736edb97684778a60comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9c5b9febb991d4672d2c760736edb97684778a60/commentsjx }(login
Sam-KrameridJ^2_ jt MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ jt MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jr (2d29f38d962eac726791049d035b5d266219c3aaj ^https://api.github.com/repos/palantir/atlasdb/commits/2d29f38d962eac726791049d035b5d266219c3aaj Shttps://github.com/palantir/atlasdb/commit/2d29f38d962eac726791049d035b5d266219c3aauastats}(totalK	additionsK	deletionsKufiles]}(jr (312dfc06de521f1b5a6abdcce348470f61da4b80filename]timelock-impl/src/main/java/com/palantir/atlasdb/timelock/paxos/PaxosTimestampBoundStore.javastatusmodifiedjԃ KjՃ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9c5b9febb991d4672d2c760736edb97684778a60/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9c5b9febb991d4672d2c760736edb97684778a60/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.java?ref=9c5b9febb991d4672d2c760736edb97684778a60patchX  @@ -220,7 +220,7 @@ private Optional<SequenceAndBound> getLearnedState(long seq) {
      * PaxosAcceptor.NO_LOG_ENTRY + 1 if nothing has been proposed or accepted yet.
      *
      * @param limit the new upper limit to be stored
-     * @throws IllegalArgumentException  if trying to persist a limit smaller than the agreed limit
+     * @throws IllegalArgumentException if trying to persist a limit smaller than the agreed limit
      * @throws NotCurrentLeaderException if the timestamp limit has changed out from under us
      */
     @Override
@@ -272,9 +272,9 @@ public synchronized void storeUpperLimit(long limit) throws MultipleRunningTimes
     /**
      * Checks that the PaxosValue agreed upon by a quorum of nodes in our cluster was proposed by us.
      *
-     * @param limit  the limit our node has proposed
+     * @param limit the limit our node has proposed
      * @param newSeq the sequence number for which our node has proposed the limit
-     * @param value  PaxosValue agreed upon by a quorum of nodes, for sequence number newSeq
+     * @param value PaxosValue agreed upon by a quorum of nodes, for sequence number newSeq
      * @throws NotCurrentLeaderException if the agreed timestamp bound (PaxosValue) changed under us
      */
     private void checkAgreedBoundIsOurs(long limit, long newSeq, PaxosValue value) throws NotCurrentLeaderException {
@@ -306,7 +306,7 @@ private synchronized void throwNotCurrentLeaderException(String message) {
      * to handle cases where users hold or do not hold monitor locks, for instance.
      *
      * @param paxosException the PaxosRoundFailureException that caused us to wait
-     * @param backoffAction  the action to take (which consumes the time, in milliseconds, to wait for)
+     * @param backoffAction the action to take (which consumes the time, in milliseconds, to wait for)
      */
     private void waitForRandomBackoff(PaxosRoundFailureException paxosException, BackoffAction backoffAction) {
         long backoffTime = getRandomBackoffTime();uau(7ab1cef98c2e41a1ab0df7fd2e4c95d48a957992}(sha(7ab1cef98c2e41a1ab0df7fd2e4c95d48a957992node_idEC_kwDOAjP5fdoAKDdhYjFjZWY5OGMyZTQxYTFhYjBkZjdmZDJlNGM5NWQ0OGE5NTc5OTIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-10T12:27:29Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-08-10T12:27:29ZumessageFix ring worfklow teststree}(j (3bd197731f94c54ae71ef6a498b19ec14772229durl`https://api.github.com/repos/palantir/atlasdb/git/trees/3bd197731f94c54ae71ef6a498b19ec14772229duj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7ab1cef98c2e41a1ab0df7fd2e4c95d48a957992
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTU17EACgkQmPPOpKR4
XS1QYgf/ZZMc61Oc6p4kgb1Q5RjHADLUTl2XkkZJ1m1kbpIMy3C2lBO1pVWIGHNG
zPmwsf1VoKGSl0+n7X9/qPfDwQsaeSaaXqxuqy/ACYZPWMhJ3jxCXROhp7riaELc
0CeNWT1tyjmDyjp6XdoIza2EjSssHpS4k74Ss24ejl/12HVB/a9Gz5dOqoLd0snY
D4hgyTl6VhU9lRqiXksBHd6gj4ozZx1gNNYCTSE0K0hCK16Idwl/jSBJchmBT4xO
NE2+zbDxyoICutj6zkM+Rdny9xMn1KOocVoJJx6zXrk47LRRkza9jhBYd7KX4MrR
goC4roZJNVJg8eBdFlEALl+DsXs80g==
=J6qI
-----END PGP SIGNATURE-----payloadtree 3bd197731f94c54ae71ef6a498b19ec14772229d
parent 01ac3b6729f6062d205c91e6bd6631355c40bf2f
author Sam Kramer <skramer@palantir.com> 1691670449 +0100
committer Sam Kramer <skramer@palantir.com> 1691670449 +0100

Fix ring worfklow tests
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/7ab1cef98c2e41a1ab0df7fd2e4c95d48a957992html_urlShttps://github.com/palantir/atlasdb/commit/7ab1cef98c2e41a1ab0df7fd2e4c95d48a957992comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7ab1cef98c2e41a1ab0df7fd2e4c95d48a957992/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j! 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j# >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j% 5https://api.github.com/users/Sam-Kramer/subscriptionsj' ,https://api.github.com/users/Sam-Kramer/orgsj) -https://api.github.com/users/Sam-Kramer/reposj+ 8https://api.github.com/users/Sam-Kramer/events{/privacy}j- 7https://api.github.com/users/Sam-Kramer/received_eventsj/ Userj1 uparents]}(j (01ac3b6729f6062d205c91e6bd6631355c40bf2fj ^https://api.github.com/repos/palantir/atlasdb/commits/01ac3b6729f6062d205c91e6bd6631355c40bf2fj Shttps://github.com/palantir/atlasdb/commit/01ac3b6729f6062d205c91e6bd6631355c40bf2fuastats}(totalK	additionsK	deletionsKufiles](}(j (d66b52abcdecd4e76422d24d81b8f9f4afb423e3filenamedatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflows.javastatusmodifiedjK KjL KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7ab1cef98c2e41a1ab0df7fd2e4c95d48a957992/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7ab1cef98c2e41a1ab0df7fd2e4c95d48a957992/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.java?ref=7ab1cef98c2e41a1ab0df7fd2e4c95d48a957992patchX  @@ -106,7 +106,7 @@ public Optional<WitnessedTransaction> apply(InteractiveTransactionStore store, I
 
             workflowConfiguration.transactionRateLimiter().acquire();
             String table = workflowConfiguration.tableConfiguration().tableName();
-            Integer ringSize = workflowConfiguration.ringSize();
+            int ringSize = workflowConfiguration.ringSize();
             return store.readWrite(txn -> {
                 Map<Integer, Optional<Integer>> data = fetchData(ringSize, txn);
                 try {u}(j (e88c0489e7aff97a74f371a9227b22bec8593e1ajQ datlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingGraphTest.javajS modifiedjK KjL K
jU KjV https://github.com/palantir/atlasdb/blob/7ab1cef98c2e41a1ab0df7fd2e4c95d48a957992/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javajX https://github.com/palantir/atlasdb/raw/7ab1cef98c2e41a1ab0df7fd2e4c95d48a957992/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javajZ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.java?ref=7ab1cef98c2e41a1ab0df7fd2e4c95d48a957992j\ X  @@ -22,7 +22,6 @@
 
 import com.google.common.collect.ImmutableMap;
 import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Map;
 import java.util.Optional;
 import org.junit.Test;
@@ -41,15 +40,16 @@ public void fromPartialGeneratesRandomRingWhenAllKeysEmpty() {
     public void fromPartialThrowsWhenSomeEntriesAreEmpty() {
         Map<Integer, Optional<Integer>> partiallyEmptyRing = ImmutableMap.of(0, Optional.of(1), 1, Optional.empty());
         assertThatLoggableExceptionThrownBy(() -> RingGraph.fromPartial(partiallyEmptyRing))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageContaining("Graph contains missing entries, thus cannot be made into a ring.")
-                .hasExactlyArgs(SafeArg.of("ring", partiallyEmptyRing));
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.INCOMPLETE_RING),
+                        SafeArg.of("ring", partiallyEmptyRing));
     }
 
     @Test
     public void fromThrowsMissingEntriesWhenNodeReferencedDoesNotExist() {
-        Map<Integer, Integer> missingNodesRing = ImmutableMap.of(0, 2, 1, 0);
-        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(missingNodesRing))
+        Map<Integer, Optional<Integer>> missingNodesRing = ImmutableMap.of(0, Optional.of(2), 1, Optional.of(0));
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.fromPartial(missingNodesRing))
                 .isInstanceOf(RingValidationException.class)
                 .hasExactlyArgs(
                         SafeArg.of("type", RingValidationException.Type.MISSING_REFERENCE),
@@ -58,8 +58,9 @@ public void fromThrowsMissingEntriesWhenNodeReferencedDoesNotExist() {
 
     @Test
     public void fromThrowsCycleExceptionWhenUnableToReachEveryNode() {
-        Map<Integer, Integer> incompleteRing = ImmutableMap.of(0, 1, 1, 1, 2, 0);
-        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(incompleteRing))
+        Map<Integer, Optional<Integer>> incompleteRing =
+                ImmutableMap.of(0, Optional.of(1), 1, Optional.of(1), 2, Optional.of(0));
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.fromPartial(incompleteRing))
                 .isInstanceOf(RingValidationException.class)
                 .hasExactlyArgs(
                         SafeArg.of("type", RingValidationException.Type.EARLY_CYCLE),
@@ -68,8 +69,8 @@ public void fromThrowsCycleExceptionWhenUnableToReachEveryNode() {
 
     @Test
     public void fromThrowsCycleExceptionWhenEntryNodeNotRevisited() {
-        Map<Integer, Integer> incompleteRing = ImmutableMap.of(0, 1, 1, 1);
-        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(incompleteRing))
+        Map<Integer, Optional<Integer>> incompleteRing = ImmutableMap.of(0, Optional.of(1), 1, Optional.of(1));
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.fromPartial(incompleteRing))
                 .isInstanceOf(RingValidationException.class)
                 .hasExactlyArgs(
                         SafeArg.of("type", RingValidationException.Type.EARLY_CYCLE),ueu(989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4}(sha(989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4node_idEC_kwDOAjP5fdoAKDk4OWNiYzg0MDQzZmI2YWE5YTNkNjkxYzhkYWJhYzhkNGZiN2ZkYTQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-06T15:04:48Zu	committer}(jp Jeremy Kongjr jkong@palantir.comjt 2023-06-06T15:04:48Zumessagebroken teststree}(jh (07cb003e476f93975be3743ad04e27d330ee599furl`https://api.github.com/repos/palantir/atlasdb/git/trees/07cb003e476f93975be3743ad04e27d330ee599fuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR/SxAACgkQTLdFKain
zjw54wf+O3s+hxx5T2g3q8IjpXlRt9rRgz60XmZoKwGI7UsqM5RZoFjUAZsk0TBI
rn2m/EkyVbdmNktcW/w4igMH2wAfSX/6wd9/LM/0/6MqGsieLeOXRZ3V01/PNnde
6G0ugI7QQMoDPm9NvN6GryDRIRDJIYPoIVMoKsWSwX/eBAU+yxCPTpjFBZr+Wjb/
C9zXC9j3XWXyEhUtry9viZvWjrLnySIEJocKquJv8B91JXYUYRp3NQHQlO/5jQlH
BD55K728Hf7DiwrcdC0ykWY85Lz7CTL+XUco1CRap3mr/9hPHazSNQ9/UtrKn+wq
Gz1I9lTVkQBDlsfqEx5OF2PJgHlY0Q==
=cW1b
-----END PGP SIGNATURE-----payloadtree 07cb003e476f93975be3743ad04e27d330ee599f
parent 9835ea930a70d02d373efa14b7a2e756a273b99c
author Jeremy Kong <jkong@palantir.com> 1686063888 +0100
committer Jeremy Kong <jkong@palantir.com> 1686063888 +0100

broken tests
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4html_urlShttps://github.com/palantir/atlasdb/commit/989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4/commentsjn }(login
jeremyk-91idJZ jj MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujv }(j 
jeremyk-91j JZ jj MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(jh (9835ea930a70d02d373efa14b7a2e756a273b99cj ^https://api.github.com/repos/palantir/atlasdb/commits/9835ea930a70d02d373efa14b7a2e756a273b99cj Shttps://github.com/palantir/atlasdb/commit/9835ea930a70d02d373efa14b7a2e756a273b99cuastats}(totalK7	additionsK$	deletionsKufiles](}(jh (0db0afc0570e8993b0ec99aac00c3f57657d6828filenamelatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javastatusmodifiedjʄ K
j˄ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4patchX  @@ -22,6 +22,7 @@
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
@@ -116,13 +117,18 @@ public void catchesWriteSkew() {
         InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
                 Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
 
-        assertThat(invalidWitnessedTransactionAction.action())
-                .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
-                    assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
-                    assertThat(action.value()).contains(15);
-                });
-        assertThat(invalidWitnessedTransactionAction.mismatchedValue())
-                .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(
+                        InvalidWitnessedSingleCellTransactionAction.class,
+                        invalidSingleCellWitnessedTransactionAction -> {
+                            assertThat(invalidSingleCellWitnessedTransactionAction.action())
+                                    .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
+                                        assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
+                                        assertThat(action.value()).contains(15);
+                                    });
+                            assertThat(invalidSingleCellWitnessedTransactionAction.mismatchedValue())
+                                    .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+                        });
     }
 
     @Testu}(jh (fb5813b8d5288d435a36c31b8acf757dd6e9083bjЄ hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javaj҄ modifiedjʄ Kj˄ KjԄ KjՄ https://github.com/palantir/atlasdb/blob/989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javajׄ https://github.com/palantir/atlasdb/raw/989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javajل https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4jۄ X  @@ -22,6 +22,7 @@
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
 import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -62,10 +63,14 @@ public void catchesWriteWriteConflict() {
         assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
 
         InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
-        assertThat(invalidAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
-        assertThat(invalidAction.mismatchedValue())
-                .isEqualTo(MismatchedValue.of(
-                        ValueAndMaybeTimestamp.of(WorkloadTestHelpers.VALUE_ONE, 1L), ValueAndMaybeTimestamp.empty()));
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(InvalidWitnessedSingleCellTransactionAction.class, invalidSingleCellAction -> {
+                    assertThat(invalidSingleCellAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+                    assertThat(invalidSingleCellAction.mismatchedValue())
+                            .isEqualTo(MismatchedValue.of(
+                                    ValueAndMaybeTimestamp.of(WorkloadTestHelpers.VALUE_ONE, 1L),
+                                    ValueAndMaybeTimestamp.empty()));
+                });
     }
 
     @Test
@@ -90,10 +95,13 @@ public void catchesAbaWriteWriteConflictForDeletes() {
         assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
 
         InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
-        assertThat(invalidAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
-        assertThat(invalidAction.mismatchedValue())
-                .isEqualTo(MismatchedValue.of(
-                        ValueAndMaybeTimestamp.of(Optional.empty(), 1L), ValueAndMaybeTimestamp.empty()));
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(InvalidWitnessedSingleCellTransactionAction.class, invalidSingleCellAction -> {
+                    assertThat(invalidSingleCellAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+                    assertThat(invalidSingleCellAction.mismatchedValue())
+                            .isEqualTo(MismatchedValue.of(
+                                    ValueAndMaybeTimestamp.of(Optional.empty(), 1L), ValueAndMaybeTimestamp.empty()));
+                });
     }
 
     @Testu}(jh (241e8471f3f2d7c765f6ff9e98e1c055938e3a50jЄ matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowsTest.javaj҄ modifiedjʄ Kj˄ KjԄ KjՄ https://github.com/palantir/atlasdb/blob/989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javajׄ https://github.com/palantir/atlasdb/raw/989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javajل https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.java?ref=989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4jۄ X  @@ -29,6 +29,7 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -77,9 +78,10 @@ public void transactionsDoNotConflictExcessively() {
     @Test
     public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
         WorkflowHistory workflowHistory = workflow.run();
-        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+        List<WitnessedSingleCellTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
                 .map(WitnessedTransaction::actions)
                 .flatMap(Collection::stream)
+                .map(WitnessedSingleCellTransactionAction.class::cast)
                 .collect(Collectors.toList());
         assertThat(witnessedTransactionActions)
                 .allMatch(action -> action.table().equals(TABLE_NAME));u}(jh (92c9804801360d926817f2617d789a40fbf5371fjЄ latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj҄ modifiedjʄ Kj˄ KjԄ KjՄ https://github.com/palantir/atlasdb/blob/989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javajׄ https://github.com/palantir/atlasdb/raw/989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javajل https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4jۄ X`  @@ -191,11 +191,12 @@ public void invariantReportsViolationsFromTransactionHistory() {
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(
             WitnessedTransactionAction action) {
         if (action instanceof WitnessedReadTransactionAction) {
-            if (action.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
-                return WitnessedReadTransactionAction.of(action.table(), action.cell(), Optional.empty());
+            WitnessedReadTransactionAction readAction = (WitnessedReadTransactionAction) action;
+            if (readAction.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
+                return WitnessedReadTransactionAction.of(readAction.table(), readAction.cell(), Optional.empty());
             } else {
                 return WitnessedReadTransactionAction.of(
-                        action.table(), action.cell(), Optional.of(TransientRowsWorkflows.VALUE));
+                        readAction.table(), readAction.cell(), Optional.of(TransientRowsWorkflows.VALUE));
             }
         } else {
             return action;ueu(d9dc21a21e545eb9c86655062ed27cbc17174055}(sha(d9dc21a21e545eb9c86655062ed27cbc17174055node_idEC_kwDOAjP5fdoAKGQ5ZGMyMWEyMWU1NDVlYjljODY2NTUwNjJlZDI3Y2JjMTcxNzQwNTUcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-08-10T12:40:07Zu	committer}(j GitHubj noreply@github.comj 2023-08-10T12:40:07Zumessage=Refactor ring test to allow external error detection  (#6702)tree}(j (dc6597a06452c464b57f5953423f227b1847765aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/dc6597a06452c464b57f5953423f227b1847765auj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d9dc21a21e545eb9c86655062ed27cbc17174055
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk1NqnCRBK7hj4Ov3rIwAAPSsIACqUdPqcoDrrSp5ghin5QPav
e6KyUn/L+jEe22g2IbpNr+Q1Ghk5ZNqFXy1HrjWvwYBl67HBrLBdUxkXmhzX9gHD
dNjoAcEFCjn7XbJjSA+FqMsF/LxanFirUTjWUd4rS803J7TfHFVSpwW/iaZ5RT+M
keD+ol102X+8/+amQtCVLYR6RvrTk0p5NAPddgiZHwjey0GR//1Fe+kofjEqP18v
68R+SCdRg9JiD//bmgfLIMOemcnL6OifJiM1BRxEM6RmkvKVhT4QhScAireCHcWe
DJQBzdLaTFj1pL9bC9LNL1+z8e746RHcNjCt4nfjnuB0Jf7DG+cC9J+3FHxOjak=
=v1jd
-----END PGP SIGNATURE-----
payloadX  tree dc6597a06452c464b57f5953423f227b1847765a
parent 1de135ec0c9ef0e1cf3536bc7fd49a6f838c04be
author Sam-Kramer <sam.c.kramer@gmail.com> 1691671207 +0100
committer GitHub <noreply@github.com> 1691671207 +0000

Refactor ring test to allow external error detection  (#6702)

 uuj ^https://api.github.com/repos/palantir/atlasdb/commits/d9dc21a21e545eb9c86655062ed27cbc17174055html_urlShttps://github.com/palantir/atlasdb/commit/d9dc21a21e545eb9c86655062ed27cbc17174055comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d9dc21a21e545eb9c86655062ed27cbc17174055/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j" web-flowj$ J/j MDQ6VXNlcjE5ODY0NDQ3j& 4https://avatars.githubusercontent.com/u/19864447?v=4j( h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj+ /https://api.github.com/users/web-flow/followersj- <https://api.github.com/users/web-flow/following{/other_user}j/ 5https://api.github.com/users/web-flow/gists{/gist_id}j1 <https://api.github.com/users/web-flow/starred{/owner}{/repo}j3 3https://api.github.com/users/web-flow/subscriptionsj5 *https://api.github.com/users/web-flow/orgsj7 +https://api.github.com/users/web-flow/reposj9 6https://api.github.com/users/web-flow/events{/privacy}j; 5https://api.github.com/users/web-flow/received_eventsj= Userj? uparents]}(j (1de135ec0c9ef0e1cf3536bc7fd49a6f838c04bej ^https://api.github.com/repos/palantir/atlasdb/commits/1de135ec0c9ef0e1cf3536bc7fd49a6f838c04bej Shttps://github.com/palantir/atlasdb/commit/1de135ec0c9ef0e1cf3536bc7fd49a6f838c04beuastats}(totalK	additionsKq	deletionsK?ufiles](}(j (173eceacf2fc344be6144d9d1c95b404db4913e9filename`atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingGraph.javastatusmodifiedjY KjZ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/d9dc21a21e545eb9c86655062ed27cbc17174055/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d9dc21a21e545eb9c86655062ed27cbc17174055/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.java?ref=d9dc21a21e545eb9c86655062ed27cbc17174055patchX  @@ -18,8 +18,6 @@
 
 import com.google.common.collect.Iterators;
 import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
-import com.palantir.logsafe.Preconditions;
-import com.palantir.logsafe.SafeArg;
 import java.security.SecureRandom;
 import java.util.ArrayList;
 import java.util.Collections;
@@ -52,10 +50,9 @@ public static RingGraph fromPartial(Map<Integer, Optional<Integer>> ring) throws
             return RingGraph.generateNewRing(ring.keySet());
         }
 
-        Preconditions.checkArgument(
-                !anyEmpty(ring),
-                "Graph contains missing entries, thus cannot be made into a ring.",
-                SafeArg.of("ring", ring));
+        if (anyEmpty(ring)) {
+            RingValidationException.throwIncompleteRing(ring);
+        }
 
         return from(EntryStream.of(ring).mapValues(Optional::get).toMap());
     }
@@ -82,7 +79,7 @@ public static void validateGraphIsRing(Map<Integer, Integer> ring) throws RingVa
         for (int iterations = 0; iterations < maxIterations; iterations++) {
             // If we reference a node that does not exist in our ring, it means we are missing data
             if (!ring.containsKey(nextNode)) {
-                RingValidationException.throwMissingEntries(ring);
+                RingValidationException.throwMissingReference(ring);
             }
 
             // If the node already has been visited, it means we're in a cycle within our ringu}(j (1af0211800e026a9e79e5afbbf3c41a93b009fd3j_ natlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingValidationException.javaja modifiedjY KjZ Kjc Kjd https://github.com/palantir/atlasdb/blob/d9dc21a21e545eb9c86655062ed27cbc17174055/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javajf https://github.com/palantir/atlasdb/raw/d9dc21a21e545eb9c86655062ed27cbc17174055/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javajh https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.java?ref=d9dc21a21e545eb9c86655062ed27cbc17174055jj X  @@ -22,13 +22,15 @@
 import com.palantir.logsafe.SafeLoggable;
 import java.util.List;
 import java.util.Map;
+import java.util.Optional;
+import java.util.stream.Collectors;
 
 public final class RingValidationException extends IllegalArgumentException implements SafeLoggable {
 
-    private final Map<Integer, Integer> ring;
+    private final Map<Integer, Optional<Integer>> ring;
     private final Type type;
 
-    private RingValidationException(Map<Integer, Integer> ring, Type type) {
+    private RingValidationException(Map<Integer, Optional<Integer>> ring, Type type) {
         this.ring = ring;
         this.type = type;
     }
@@ -43,12 +45,24 @@ public List<Arg<?>> getArgs() {
         return List.of(SafeArg.of("ring", ring), SafeArg.of("type", type));
     }
 
+    public Map<Integer, Optional<Integer>> getRing() {
+        return ring;
+    }
+
     public static void throwEarlyCycle(Map<Integer, Integer> ring) throws RingValidationException {
-        throw new RingValidationException(ring, Type.EARLY_CYCLE);
+        throw new RingValidationException(wrapMap(ring), Type.EARLY_CYCLE);
+    }
+
+    public static void throwMissingReference(Map<Integer, Integer> ring) throws RingValidationException {
+        throw new RingValidationException(wrapMap(ring), Type.MISSING_REFERENCE);
     }
 
-    public static void throwMissingEntries(Map<Integer, Integer> ring) throws RingValidationException {
-        throw new RingValidationException(ring, Type.MISSING_ENTRIES);
+    public static void throwIncompleteRing(Map<Integer, Optional<Integer>> ring) throws RingValidationException {
+        throw new RingValidationException(ring, Type.INCOMPLETE_RING);
+    }
+
+    private static Map<Integer, Optional<Integer>> wrapMap(Map<Integer, Integer> map) {
+        return map.entrySet().stream().collect(Collectors.toMap(Map.Entry::getKey, e -> Optional.of(e.getValue())));
     }
 
     enum Type {
@@ -58,6 +72,9 @@ enum Type {
 
         // Detected a reference to a node that does not exist,
         // indicating the integrity of our ring has been compromised.
-        MISSING_ENTRIES;
+        MISSING_REFERENCE,
+
+        // Missing entries that are expected to exist.
+        INCOMPLETE_RING;
     }
 }u}(j (d66b52abcdecd4e76422d24d81b8f9f4afb423e3j_ datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflows.javaja modifiedjY K>jZ K&jc Kdjd https://github.com/palantir/atlasdb/blob/d9dc21a21e545eb9c86655062ed27cbc17174055/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javajf https://github.com/palantir/atlasdb/raw/d9dc21a21e545eb9c86655062ed27cbc17174055/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javajh https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.java?ref=d9dc21a21e545eb9c86655062ed27cbc17174055jj XL  @@ -23,12 +23,14 @@
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
+import com.palantir.atlasdb.workload.workflow.KeyedTransactionTask;
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.function.Consumer;
 import java.util.function.Function;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
@@ -50,63 +52,85 @@ private RingWorkflows() {
         // static factory
     }
 
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration ringWorkflowConfiguration,
+            ListeningExecutorService executionExecutor,
+            Consumer<RingValidationException> onFailure) {
+        return create(store, ringWorkflowConfiguration, executionExecutor, new AtomicBoolean(false), onFailure);
+    }
+
     public static Workflow create(
             InteractiveTransactionStore store,
             RingWorkflowConfiguration ringWorkflowConfiguration,
             ListeningExecutorService executionExecutor) {
-        AtomicBoolean skipRunning = new AtomicBoolean(false);
-        return DefaultWorkflow.create(
+        return create(
                 store,
-                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
                 ringWorkflowConfiguration,
-                executionExecutor);
+                executionExecutor,
+                new AtomicBoolean(false),
+                error -> log.error("Detected violation with our ring.", error));
     }
 
     @VisibleForTesting
     static Workflow create(
             InteractiveTransactionStore store,
             RingWorkflowConfiguration ringWorkflowConfiguration,
             ListeningExecutorService executionExecutor,
-            AtomicBoolean skipRunning) {
-        return DefaultWorkflow.create(
-                store,
-                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
-                ringWorkflowConfiguration,
-                executionExecutor);
+            AtomicBoolean skipRunning,
+            Consumer<RingValidationException> onFailure) {
+        RingWorkflowTask task = new RingWorkflowTask(skipRunning, onFailure, ringWorkflowConfiguration);
+        return DefaultWorkflow.create(store, task, ringWorkflowConfiguration, executionExecutor);
     }
 
-    private static Optional<WitnessedTransaction> run(
-            InteractiveTransactionStore store,
-            RingWorkflowConfiguration workflowConfiguration,
-            AtomicBoolean skipRunning) {
-        if (skipRunning.get()) {
-            return Optional.empty();
+    private static final class RingWorkflowTask implements KeyedTransactionTask<InteractiveTransactionStore> {
+
+        private final AtomicBoolean skipRunning;
+        private final Consumer<RingValidationException> onFailure;
+        private final RingWorkflowConfiguration workflowConfiguration;
+
+        public RingWorkflowTask(
+                AtomicBoolean skipRunning,
+                Consumer<RingValidationException> onFailure,
+                RingWorkflowConfiguration workflowConfiguration) {
+            this.skipRunning = skipRunning;
+            this.onFailure = onFailure;
+            this.workflowConfiguration = workflowConfiguration;
         }
 
-        workflowConfiguration.transactionRateLimiter().acquire();
-        String table = workflowConfiguration.tableConfiguration().tableName();
-        Integer ringSize = workflowConfiguration.ringSize();
-        return store.readWrite(txn -> {
-            Map<Integer, Optional<Integer>> data = fetchData(table, ringSize, txn);
-            try {
-                RingGraph ringGraph = RingGraph.fromPartial(data);
-                ringGraph
-                        .generateNewRing()
-                        .asMap()
-                        .forEach((rootNode, nextNode) -> txn.write(table, cell(rootNode), nextNode));
-            } catch (IllegalArgumentException e) {
-                if (skipRunning.compareAndSet(false, true)) {
-                    log.error("Detected violation with our ring.", e);
-                }
+        @Override
+        public Optional<WitnessedTransaction> apply(InteractiveTransactionStore store, Integer integer) {
+            if (skipRunning.get()) {
+                return Optional.empty();
             }
-        });
-    }
 
-    private static Map<Integer, Optional<Integer>> fetchData(
-            String table, int ringSize, InteractiveTransaction transaction) {
-        return IntStream.range(0, ringSize)
-                .boxed()
-                .collect(Collectors.toMap(Function.identity(), index -> transaction.read(table, cell(index))));
+            workflowConfiguration.transactionRateLimiter().acquire();
+            String table = workflowConfiguration.tableConfiguration().tableName();
+            int ringSize = workflowConfiguration.ringSize();
+            return store.readWrite(txn -> {
+                Map<Integer, Optional<Integer>> data = fetchData(ringSize, txn);
+                try {
+                    RingGraph ringGraph = RingGraph.fromPartial(data);
+                    ringGraph
+                            .generateNewRing()
+                            .asMap()
+                            .forEach((rootNode, nextNode) -> txn.write(table, cell(rootNode), nextNode));
+                } catch (RingValidationException e) {
+                    if (skipRunning.compareAndSet(false, true)) {
+                        onFailure.accept(e);
+                    }
+                }
+            });
+        }
+
+        private Map<Integer, Optional<Integer>> fetchData(int ringSize, InteractiveTransaction transaction) {
+            return IntStream.range(0, ringSize)
+                    .boxed()
+                    .collect(Collectors.toMap(
+                            Function.identity(),
+                            index -> transaction.read(
+                                    workflowConfiguration.tableConfiguration().tableName(), cell(index))));
+        }
     }
 
     @VisibleForTestingu}(j (e88c0489e7aff97a74f371a9227b22bec8593e1aj_ datlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingGraphTest.javaja modifiedjY KjZ Kjc Kjd https://github.com/palantir/atlasdb/blob/d9dc21a21e545eb9c86655062ed27cbc17174055/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javajf https://github.com/palantir/atlasdb/raw/d9dc21a21e545eb9c86655062ed27cbc17174055/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javajh https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.java?ref=d9dc21a21e545eb9c86655062ed27cbc17174055jj X  @@ -22,7 +22,6 @@
 
 import com.google.common.collect.ImmutableMap;
 import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Map;
 import java.util.Optional;
 import org.junit.Test;
@@ -41,25 +40,27 @@ public void fromPartialGeneratesRandomRingWhenAllKeysEmpty() {
     public void fromPartialThrowsWhenSomeEntriesAreEmpty() {
         Map<Integer, Optional<Integer>> partiallyEmptyRing = ImmutableMap.of(0, Optional.of(1), 1, Optional.empty());
         assertThatLoggableExceptionThrownBy(() -> RingGraph.fromPartial(partiallyEmptyRing))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageContaining("Graph contains missing entries, thus cannot be made into a ring.")
-                .hasExactlyArgs(SafeArg.of("ring", partiallyEmptyRing));
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.INCOMPLETE_RING),
+                        SafeArg.of("ring", partiallyEmptyRing));
     }
 
     @Test
     public void fromThrowsMissingEntriesWhenNodeReferencedDoesNotExist() {
-        Map<Integer, Integer> missingNodesRing = ImmutableMap.of(0, 2, 1, 0);
-        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(missingNodesRing))
+        Map<Integer, Optional<Integer>> missingNodesRing = ImmutableMap.of(0, Optional.of(2), 1, Optional.of(0));
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.fromPartial(missingNodesRing))
                 .isInstanceOf(RingValidationException.class)
                 .hasExactlyArgs(
-                        SafeArg.of("type", RingValidationException.Type.MISSING_ENTRIES),
+                        SafeArg.of("type", RingValidationException.Type.MISSING_REFERENCE),
                         SafeArg.of("ring", missingNodesRing));
     }
 
     @Test
     public void fromThrowsCycleExceptionWhenUnableToReachEveryNode() {
-        Map<Integer, Integer> incompleteRing = ImmutableMap.of(0, 1, 1, 1, 2, 0);
-        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(incompleteRing))
+        Map<Integer, Optional<Integer>> incompleteRing =
+                ImmutableMap.of(0, Optional.of(1), 1, Optional.of(1), 2, Optional.of(0));
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.fromPartial(incompleteRing))
                 .isInstanceOf(RingValidationException.class)
                 .hasExactlyArgs(
                         SafeArg.of("type", RingValidationException.Type.EARLY_CYCLE),
@@ -68,8 +69,8 @@ public void fromThrowsCycleExceptionWhenUnableToReachEveryNode() {
 
     @Test
     public void fromThrowsCycleExceptionWhenEntryNodeNotRevisited() {
-        Map<Integer, Integer> incompleteRing = ImmutableMap.of(0, 1, 1, 1);
-        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(incompleteRing))
+        Map<Integer, Optional<Integer>> incompleteRing = ImmutableMap.of(0, Optional.of(1), 1, Optional.of(1));
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.fromPartial(incompleteRing))
                 .isInstanceOf(RingValidationException.class)
                 .hasExactlyArgs(
                         SafeArg.of("type", RingValidationException.Type.EARLY_CYCLE),u}(j (0aadb5f50466e50ee5b560d0a06da6bf1c07d67cj_ hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowsTest.javaja modifiedjY KjZ Kjc K
jd https://github.com/palantir/atlasdb/blob/d9dc21a21e545eb9c86655062ed27cbc17174055/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javajf https://github.com/palantir/atlasdb/raw/d9dc21a21e545eb9c86655062ed27cbc17174055/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javajh https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.java?ref=d9dc21a21e545eb9c86655062ed27cbc17174055jj X  @@ -40,6 +40,7 @@
 import java.util.List;
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.concurrent.atomic.AtomicReference;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 import org.junit.Test;
@@ -62,12 +63,14 @@ public class RingWorkflowsTest {
                     AtlasDbUtils.tableMetadata(IsolationLevel.SNAPSHOT)));
 
     private final AtomicBoolean skipRunning = new AtomicBoolean(false);
+    private final AtomicReference<RingValidationException> failure = new AtomicReference<>();
 
     private final Workflow workflow = RingWorkflows.create(
             memoryStore,
             CONFIGURATION,
             MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)),
-            skipRunning);
+            skipRunning,
+            failure::set);
 
     @Test
     public void workflowHistoryTransactionStoreShouldBeReadOnly() {
@@ -126,4 +129,12 @@ public void ringWorkflowDoesNotWitnessTransactionWhenSkipRunningSetToTrue() {
         skipRunning.set(true);
         assertThat(workflow.run().history()).isEmpty();
     }
+
+    @Test
+    public void ringWorkflowAllowsCustomConsumersOfFailures() {
+        assertThat(failure.get()).isNull();
+        memoryStore.readWrite(txn -> txn.write(TABLE_NAME, RingWorkflows.cell(0), 99));
+        workflow.run();
+        assertThat(failure.get()).isNotNull();
+    }
 }ueu(8a0854af57fd14b118772fe048867d961cd48309}(sha(8a0854af57fd14b118772fe048867d961cd48309node_idEC_kwDOAjP5fdoAKDhhMDg1NGFmNTdmZDE0YjExODc3MmZlMDQ4ODY3ZDk2MWNkNDgzMDkcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-06-26T03:45:28Zu	committer}(j David Schlosnaglej davids@palantir.comj 2023-06-26T03:45:28ZumessageMeasuringUtils avoids streamstree}(j (d926d6f700689046235b360bd0d30d19cdc90018url`https://api.github.com/repos/palantir/atlasdb/git/trees/d926d6f700689046235b360bd0d30d19cdc90018uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8a0854af57fd14b118772fe048867d961cd48309
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmSZCdgACgkQR9hsJ74Q
0l9zdwgAk14YwGFFZYhipcHOyRqWx7DJNwqHEp4nErptSorYKX57TxA35JO1gPzY
9G5nG/+3G3XD89JHBAn0JBU9VT3FiWXfqKPJ6tnBKr5LYqjEro5Cc8tFDlIqp7R2
iimj3o4SuEVg7q/80Dc0E5g8kugKf7vHIGVQLWNVZ+6oUzYPwubObOpbpa9qLipx
VB0D7ttOPNMk0M8HvynsJr5rc2VIsTIoFwE1L90U/2Fzvq1eA6zNogKqYzhkPBZn
ExcYd6ilsownj5xtMvdvU0Fu0L9jgsDxp3hPuk/xm4Wmk2s5SzrtbYxjZIdTRgrV
6Y6Ygwywux91IfHJCXuRJARAi9YudQ==
=bNWr
-----END PGP SIGNATURE-----payloadX   tree d926d6f700689046235b360bd0d30d19cdc90018
parent 34f3fd3569190147d5237116eb3178f585b61771
author David Schlosnagle <davids@palantir.com> 1687751128 -0400
committer David Schlosnagle <davids@palantir.com> 1687751128 -0400

MeasuringUtils avoids streams
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/8a0854af57fd14b118772fe048867d961cd48309html_urlShttps://github.com/palantir/atlasdb/commit/8a0854af57fd14b118772fe048867d961cd48309comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8a0854af57fd14b118772fe048867d961cd48309/commentsj }(loginschlosnaidMBj MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j %https://api.github.com/users/schlosnaj https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj }(j schlosnaj MBj MDQ6VXNlcjU0NTk0j 1https://avatars.githubusercontent.com/u/54594?v=4j h5j %https://api.github.com/users/schlosnaj https://github.com/schlosnaj /https://api.github.com/users/schlosna/followersją <https://api.github.com/users/schlosna/following{/other_user}jƅ 5https://api.github.com/users/schlosna/gists{/gist_id}jȅ <https://api.github.com/users/schlosna/starred{/owner}{/repo}jʅ 3https://api.github.com/users/schlosna/subscriptionsj̅ *https://api.github.com/users/schlosna/orgsj΅ +https://api.github.com/users/schlosna/reposjЅ 6https://api.github.com/users/schlosna/events{/privacy}j҅ 5https://api.github.com/users/schlosna/received_eventsjԅ Userjօ uparents]}(j (34f3fd3569190147d5237116eb3178f585b61771j ^https://api.github.com/repos/palantir/atlasdb/commits/34f3fd3569190147d5237116eb3178f585b61771j Shttps://github.com/palantir/atlasdb/commit/34f3fd3569190147d5237116eb3178f585b61771uastats}(totalK	additionsK	deletionsK
ufiles]}(j (5e7f986f7b70e5c550f97a4eafd0ef844c99fe20filenameOatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/util/MeasuringUtils.javastatusmodifiedj Kj K
changesKblob_urlhttps://github.com/palantir/atlasdb/blob/8a0854af57fd14b118772fe048867d961cd48309/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMeasuringUtils.javaraw_urlhttps://github.com/palantir/atlasdb/raw/8a0854af57fd14b118772fe048867d961cd48309/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMeasuringUtils.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMeasuringUtils.java?ref=8a0854af57fd14b118772fe048867d961cd48309patchX  @@ -24,7 +24,6 @@
 import java.lang.reflect.Array;
 import java.util.Collection;
 import java.util.Map;
-import java.util.Map.Entry;
 import java.util.Set;
 import java.util.function.ToLongFunction;
 
@@ -64,7 +63,7 @@ public static long sizeOf(Multimap<? extends Measurable, Long> map) {
         return sizeOf(map.keys()) + ((long) map.size()) * Long.BYTES;
     }
 
-    public static long sizeOf(Entry<? extends Measurable, ? extends Measurable> entry) {
+    public static long sizeOf(Map.Entry<? extends Measurable, ? extends Measurable> entry) {
         return entry.getKey().sizeInBytes() + entry.getValue().sizeInBytes();
     }
 
@@ -86,16 +85,18 @@ private static <T> long sizeOfCollection(Collection<T> collection, ToLongFunctio
 
     private static <K, V> long sizeOfMap(
             Map<K, V> map, ToLongFunction<K> keyMeasurer, ToLongFunction<V> valueMeasurer) {
-        return map.entrySet().stream()
-                .mapToLong(
-                        entry -> keyMeasurer.applyAsLong(entry.getKey()) + valueMeasurer.applyAsLong(entry.getValue()))
-                .sum();
+        long sum = 0L;
+        for (Map.Entry<K, V> entry : map.entrySet()) {
+            sum += keyMeasurer.applyAsLong(entry.getKey()) + valueMeasurer.applyAsLong(entry.getValue());
+        }
+        return sum;
     }
 
     private static <T> long sizeOfRowResult(RowResult<T> rowResult, ToLongFunction<T> measurer) {
-        return rowResult.getRowNameSize()
-                + rowResult.getColumns().entrySet().stream()
-                        .mapToLong(entry -> entry.getKey().length + measurer.applyAsLong(entry.getValue()))
-                        .sum();
+        long sum = rowResult.getRowNameSize();
+        for (Map.Entry<byte[], T> entry : rowResult.getColumns().entrySet()) {
+            sum += entry.getKey().length + measurer.applyAsLong(entry.getValue());
+        }
+        return sum;
     }
 }uau      (0167f497681b5b85665494d98d1df82115da30b2}(sha(0167f497681b5b85665494d98d1df82115da30b2node_idEC_kwDOAjP5fdoAKDAxNjdmNDk3NjgxYjViODU2NjU0OTRkOThkMWRmODIxMTVkYTMwYjIcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-15T23:29:36Zu	committer}(j
 svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-05-15T23:29:36Zumessage#Autorelease 0.854.0-rc13

[skip ci]tree}(j (7798105d8a030b29d8973acfbb90d62ffad4930furl`https://api.github.com/repos/palantir/atlasdb/git/trees/7798105d8a030b29d8973acfbb90d62ffad4930fuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0167f497681b5b85665494d98d1df82115da30b2
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRiwGEACgkQhbrR8ip7mDAsnQEAv7pZLUBfnnBPV6WbWiTxktRw
8iK6JriVjlwyUyFMweMBAJAzYyRQAnTjEMEZX5ru2ltZ+sPPJHLJwNgfrdvibW98
=qsKp
-----END PGP SIGNATURE-----
payloadX)  tree 7798105d8a030b29d8973acfbb90d62ffad4930f
parent d0594f667889eba2f6279639c6f00fccfede3ef9
author aalouane <30903736+ergo14@users.noreply.github.com> 1684193376 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684193376 +0000

Autorelease 0.854.0-rc13

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/0167f497681b5b85665494d98d1df82115da30b2html_urlShttps://github.com/palantir/atlasdb/commit/0167f497681b5b85665494d98d1df82115da30b2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0167f497681b5b85665494d98d1df82115da30b2/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j+ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j0 svc-autoreleasej2 J(j MDQ6VXNlcjUxNzE4MzQ2j4 4https://avatars.githubusercontent.com/u/51718346?v=4j6 h5j ,https://api.github.com/users/svc-autoreleasej+ "https://github.com/svc-autoreleasej9 6https://api.github.com/users/svc-autorelease/followersj; Chttps://api.github.com/users/svc-autorelease/following{/other_user}j= <https://api.github.com/users/svc-autorelease/gists{/gist_id}j? Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jA :https://api.github.com/users/svc-autorelease/subscriptionsjC 1https://api.github.com/users/svc-autorelease/orgsjE 2https://api.github.com/users/svc-autorelease/reposjG =https://api.github.com/users/svc-autorelease/events{/privacy}jI <https://api.github.com/users/svc-autorelease/received_eventsjK UserjM uparents]}(j (d0594f667889eba2f6279639c6f00fccfede3ef9j ^https://api.github.com/repos/palantir/atlasdb/commits/d0594f667889eba2f6279639c6f00fccfede3ef9j+ Shttps://github.com/palantir/atlasdb/commit/d0594f667889eba2f6279639c6f00fccfede3ef9uastats}(totalK 	additionsK 	deletionsK ufiles]u(c855975952bbda4bdef0ad6302caa7c407ca847d}(sha(c855975952bbda4bdef0ad6302caa7c407ca847dnode_idEC_kwDOAjP5fdoAKGM4NTU5NzU5NTJiYmRhNGJkZWYwYWQ2MzAyY2FhN2M0MDdjYTg0N2Qcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-03-23T16:14:22Zu	committer}(ju svc-excavator-botjw svc-excavator-bot@palantir.comjy 2023-03-23T16:14:22Zumessage,Excavator:  Upgrade buildscript dependenciestree}(jm (be02e19fa409ed2d40fac3bfc74cb6b53f547163url`https://api.github.com/repos/palantir/atlasdb/git/trees/be02e19fa409ed2d40fac3bfc74cb6b53f547163uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c855975952bbda4bdef0ad6302caa7c407ca847d
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQcet4JEMmvEkpISILgAACWoAEAsYcSONZONdI9O0GcUcqjHdke
hSZWfcmzrYYn5tsg+gIBAMYaf4qw6AN59vRWpuTLCWUZAA5BhV+Jgj11SQ3E7nH3
=N1fY
-----END PGP SIGNATURE-----
payloadX$  tree be02e19fa409ed2d40fac3bfc74cb6b53f547163
parent 720d0e8e70e1633704a6ba93946ce9e78636fc11
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1679588062 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1679588062 +0000

Excavator:  Upgrade buildscript dependenciesuuj ^https://api.github.com/repos/palantir/atlasdb/commits/c855975952bbda4bdef0ad6302caa7c407ca847dhtml_urlShttps://github.com/palantir/atlasdb/commit/c855975952bbda4bdef0ad6302caa7c407ca847dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c855975952bbda4bdef0ad6302caa7c407ca847d/commentsjs }(loginsvc-excavator-botidJjo MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j .https://api.github.com/users/svc-excavator-botj $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj{ }(j svc-excavator-botj Jjo MDQ6VXNlcjMzMjY2MzY4j 4https://avatars.githubusercontent.com/u/33266368?v=4j h5j .https://api.github.com/users/svc-excavator-botj $https://github.com/svc-excavator-botj 8https://api.github.com/users/svc-excavator-bot/followersj Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}j >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}j Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}j <https://api.github.com/users/svc-excavator-bot/subscriptionsj 3https://api.github.com/users/svc-excavator-bot/orgsj 4https://api.github.com/users/svc-excavator-bot/reposj ?https://api.github.com/users/svc-excavator-bot/events{/privacy}j >https://api.github.com/users/svc-excavator-bot/received_eventsj Userj uparents]}(jm (720d0e8e70e1633704a6ba93946ce9e78636fc11j ^https://api.github.com/repos/palantir/atlasdb/commits/720d0e8e70e1633704a6ba93946ce9e78636fc11j Shttps://github.com/palantir/atlasdb/commit/720d0e8e70e1633704a6ba93946ce9e78636fc11uastats}(totalK	additionsK	deletionsKufiles]}(jm (fa798dbe22e4ced012363026977d38596db31ebafilenamebuild.gradlestatusmodifiedjφ KjІ KchangesKblob_url^https://github.com/palantir/atlasdb/blob/c855975952bbda4bdef0ad6302caa7c407ca847d/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/c855975952bbda4bdef0ad6302caa7c407ca847d/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=c855975952bbda4bdef0ad6302caa7c407ca847dpatchX  @@ -8,17 +8,17 @@ buildscript {
 
     dependencies {
         classpath 'com.netflix.nebula:gradle-info-plugin:12.0.1'
-        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.0.0'
+        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.2.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.34.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.37.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
-        classpath 'com.palantir.gradle.gitversion:gradle-git-version:1.0.0'
+        classpath 'com.palantir.gradle.gitversion:gradle-git-version:2.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.31.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'
-        classpath 'com.palantir.metricschema:gradle-metric-schema:0.19.0'
+        classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
         classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'uau(aa02b5773abf6edd3dd068d5c9f40b5a8b24a0e2}(sha(aa02b5773abf6edd3dd068d5c9f40b5a8b24a0e2node_idEC_kwDOAjP5fdoAKGFhMDJiNTc3M2FiZjZlZGQzZGQwNjhkNWM5ZjQwYjVhOGIyNGEwZTIcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-07-21T09:23:13Zu	committer}(j 
svc-changelogj svc-changelog@palantir.comj 2023-07-21T09:23:13ZumessageAdd generated changelog entriestree}(j (a095d3d71ed61df028afbfed7046834c1605ee17url`https://api.github.com/repos/palantir/atlasdb/git/trees/a095d3d71ed61df028afbfed7046834c1605ee17uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/aa02b5773abf6edd3dd068d5c9f40b5a8b24a0e2
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmS6ToEJEHYaJX37fAFQAAAURwEAgIiCr5a/NANi4sQeosttwEKf
DU6htCupyX6lFw32/cgBAMivVXlhha+zum3hWdII//n8bqNaCOXGiF/63Q0PyM16
=O9gp
-----END PGP SIGNATURE-----payloadX  tree a095d3d71ed61df028afbfed7046834c1605ee17
parent 782cccb3dbc3d215799e421ff60f9ba3d5e2c6d0
author svc-changelog <svc-changelog@palantir.com> 1689931393 +0000
committer svc-changelog <svc-changelog@palantir.com> 1689931393 +0000

Add generated changelog entriesuuj ^https://api.github.com/repos/palantir/atlasdb/commits/aa02b5773abf6edd3dd068d5c9f40b5a8b24a0e2html_urlShttps://github.com/palantir/atlasdb/commit/aa02b5773abf6edd3dd068d5c9f40b5a8b24a0e2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/aa02b5773abf6edd3dd068d5c9f40b5a8b24a0e2/commentsj }(login
svc-changelogidJ#j MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j *https://api.github.com/users/svc-changelogj
  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj }(j 
svc-changelogj J#j MDQ6VXNlcjg0MDc3NjAzj 4https://avatars.githubusercontent.com/u/84077603?v=4j h5j *https://api.github.com/users/svc-changelogj
  https://github.com/svc-changelogj 4https://api.github.com/users/svc-changelog/followersj Ahttps://api.github.com/users/svc-changelog/following{/other_user}j :https://api.github.com/users/svc-changelog/gists{/gist_id}j Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j  8https://api.github.com/users/svc-changelog/subscriptionsj" /https://api.github.com/users/svc-changelog/orgsj$ 0https://api.github.com/users/svc-changelog/reposj& ;https://api.github.com/users/svc-changelog/events{/privacy}j( :https://api.github.com/users/svc-changelog/received_eventsj* Userj, uparents]}(j (782cccb3dbc3d215799e421ff60f9ba3d5e2c6d0j ^https://api.github.com/repos/palantir/atlasdb/commits/782cccb3dbc3d215799e421ff60f9ba3d5e2c6d0j
 Shttps://github.com/palantir/atlasdb/commit/782cccb3dbc3d215799e421ff60f9ba3d5e2c6d0uastats}(totalK	additionsK	deletionsK ufiles]}(j (fee58d12969ff103787c5364360b6099175e95ebfilename$changelog/@unreleased/pr-6678.v2.ymlstatusaddedjF KjG K changesKblob_url|https://github.com/palantir/atlasdb/blob/aa02b5773abf6edd3dd068d5c9f40b5a8b24a0e2/changelog%2F%40unreleased%2Fpr-6678.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/aa02b5773abf6edd3dd068d5c9f40b5a8b24a0e2/changelog%2F%40unreleased%2Fpr-6678.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6678.v2.yml?ref=aa02b5773abf6edd3dd068d5c9f40b5a8b24a0e2patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Bump CI to Oracle 19.20
+  links:
+  - https://github.com/palantir/atlasdb/pull/6678uau(1937afef5678ca5436fbf6c69928840050def5f3}(sha(1937afef5678ca5436fbf6c69928840050def5f3node_idEC_kwDOAjP5fdoAKDE5MzdhZmVmNTY3OGNhNTQzNmZiZjZjNjk5Mjg4NDAwNTBkZWY1ZjMcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-09T15:41:33Zu	committer}(jc 	Tom Papkeje tpapke@palantir.comjg 2023-06-09T15:41:33ZumessageMerge branch 'tpapke/debug-lock-holder-thread-async' into tpapke/configure-threadinfo-and-benchmark

# Conflicts:
#	lock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javatree}(j[ (78ce110969936d0b7732ee2ae40c120923d87743url`https://api.github.com/repos/palantir/atlasdb/git/trees/78ce110969936d0b7732ee2ae40c120923d87743ujs bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1937afef5678ca5436fbf6c69928840050def5f3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSDSC0ACgkQmF9s0kaF
Iw3uTgf+KGwAdAdOiQPLe+5RPcm+yjFPF1a+nmEMwfR0gwHrTS0Dt5kM499Az+9i
7p8YLs7ydulo9lDOcc/2HLj8meWe2/7nj2aTmzY5c5weP4VY2spFkAFlEMBfv/Zv
/RC2x8ME9cRnZztV3jQtBoazG/ScsFv0z/5dS4mpvkHUVmZJh0u+/WFuz2YM+IGR
jS52FSZZHsJJmUmaSgAtleVEGoS16638D8YnC5e8ngRS5L8QCDLau/HwkOc39MJ2
w31Xlb2yiHlv4MI6tpOmRoi6jlhnbzuQSxjouyAN9bXeJ2gBEGZYRGuwUHYvyvJJ
iVUcCyatS7fUjmehTfXtGESvepoisg==
=xgTJ
-----END PGP SIGNATURE-----payloadX  tree 78ce110969936d0b7732ee2ae40c120923d87743
parent 3cc3fdddf3e11f950caa230f591b940b4fe1853d
parent be49de0bbfd2c4efbffbbd017120c433a7060fe6
author Tom Papke <tpapke@palantir.com> 1686325293 +0100
committer Tom Papke <tpapke@palantir.com> 1686325293 +0100

Merge branch 'tpapke/debug-lock-holder-thread-async' into tpapke/configure-threadinfo-and-benchmark

# Conflicts:
#	lock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.java
uujs ^https://api.github.com/repos/palantir/atlasdb/commits/1937afef5678ca5436fbf6c69928840050def5f3html_urlShttps://github.com/palantir/atlasdb/commit/1937afef5678ca5436fbf6c69928840050def5f3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1937afef5678ca5436fbf6c69928840050def5f3/commentsja }(login	ToemmscheidJboj] MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5js &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuji }(j 	Toemmschej Jboj] MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5js &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents](}(j[ (3cc3fdddf3e11f950caa230f591b940b4fe1853djs ^https://api.github.com/repos/palantir/atlasdb/commits/3cc3fdddf3e11f950caa230f591b940b4fe1853dj Shttps://github.com/palantir/atlasdb/commit/3cc3fdddf3e11f950caa230f591b940b4fe1853du}(j[ (be49de0bbfd2c4efbffbbd017120c433a7060fe6js ^https://api.github.com/repos/palantir/atlasdb/commits/be49de0bbfd2c4efbffbbd017120c433a7060fe6j Shttps://github.com/palantir/atlasdb/commit/be49de0bbfd2c4efbffbbd017120c433a7060fe6uestats}(totalKi	additionsK5	deletionsK4ufiles]}(j[ (f21cc8b5772604673a8e15bb1e33123512612ebbfilenameClock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javastatusmodifiedj K5j K4changesKiblob_urlhttps://github.com/palantir/atlasdb/blob/1937afef5678ca5436fbf6c69928840050def5f3/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1937afef5678ca5436fbf6c69928840050def5f3/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=1937afef5678ca5436fbf6c69928840050def5f3patchX  @@ -105,6 +105,8 @@
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Future;
 import java.util.concurrent.PriorityBlockingQueue;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.ScheduledFuture;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicInteger;
@@ -195,8 +197,11 @@ public String toString() {
     /** If enabled, the background this will update the snapshot at this rate */
     private final SimpleTimeDuration threadInfoSnapshotInterval;
 
-    /** If enabled, the background runner that takes snapshots of the current lock state */
-    private final Optional<ThreadInfoSnapshotRunner> threadInfoSnapshotRunner;
+    /**
+     * The background runner that periodically takes snapshots of the current lock state.
+     * If thread info collection is disabled, nothing will actually be run.
+     */
+    private final ThreadInfoSnapshotRunner threadInfoSnapshotRunner;
 
     /**
      * A relatively consistent snapshot of which lock is currently owned by which client-thread
@@ -282,8 +287,7 @@ private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable
         // thread info collection is off by default
         this.collectThreadInfo = options.collectThreadInfo();
         this.threadInfoSnapshotInterval = SimpleTimeDuration.of(options.threadInfoSnapshotInterval());
-        this.threadInfoSnapshotRunner =
-                collectThreadInfo ? Optional.of(new ThreadInfoSnapshotRunner(executor)) : Optional.empty();
+        this.threadInfoSnapshotRunner = new ThreadInfoSnapshotRunner();
     }
 
     private HeldLocksToken createHeldLocksToken(
@@ -1260,20 +1264,6 @@ public Map<LockDescriptor, ThreadAwareLockClient> getLastKnownThreadInfoSnapshot
         return this.lastKnownThreadInfoSnapshot;
     }
 
-    private void updateThreadInfoSnapshotIndefinitely() {
-        while (true) {
-            updateThreadInfoSnapshot();
-            // For benchmarking purposes, we want to retain the ability to run the background task at full load
-            if (threadInfoSnapshotInterval.toMillis() > 0) {
-                try {
-                    Thread.sleep(threadInfoSnapshotInterval.toMillis());
-                } catch (InterruptedException e) {
-                    break;
-                }
-            }
-        }
-    }
-
     @VisibleForTesting
     void updateThreadInfoSnapshot() {
         this.lastKnownThreadInfoSnapshot = heldLocksTokenMap.keySet().stream()
@@ -1308,31 +1298,12 @@ private static String tokenToId(HeldLocksToken from) {
         return from.getTokenId().toString(Character.MAX_RADIX);
     }
 
-    private abstract static class LockServiceRunner implements AutoCloseable {
-        protected final Ownable<ExecutorService> executor;
-        protected List<Future<?>> taskFutures;
-
-        protected LockServiceRunner(Ownable<ExecutorService> executor) {
-            this.executor = executor;
-        }
-
-        @Override
-        public void close() {
-            if (executor.isOwned()) {
-                executor.resource().shutdownNow();
-            } else {
-                // Even if we don't own the executor, these ordinarily run infinitely, and so MUST be interrupted.
-                // It's not enough to simply guard each iteration, because there are calls to blocking methods that may
-                // block infinitely if no further requests come in.
-                taskFutures.forEach(future -> future.cancel(true));
-            }
-        }
-    }
-
-    private final class LockReapRunner extends LockServiceRunner {
+    private final class LockReapRunner implements AutoCloseable {
+        private final Ownable<ExecutorService> executor;
+        private final List<Future<?>> taskFutures;
 
         private LockReapRunner(Ownable<ExecutorService> executor) {
-            super(executor);
+            this.executor = executor;
 
             Future<Void> tokenReaperFuture = executor.resource().submit(() -> {
                 ThreadNames.setThreadName(Thread.currentThread(), "Held Locks Token Reaper");
@@ -1346,19 +1317,49 @@ private LockReapRunner(Ownable<ExecutorService> executor) {
             });
             this.taskFutures = ImmutableList.of(tokenReaperFuture, grantReaperFuture);
         }
-    }
 
-    private final class ThreadInfoSnapshotRunner extends LockServiceRunner {
-
-        private ThreadInfoSnapshotRunner(Ownable<ExecutorService> executor) {
-            super(executor);
+        @Override
+        public void close() {
+            if (executor.isOwned()) {
+                executor.resource().shutdownNow();
+            } else {
+                // Even if we don't own the executor, these ordinarily run infinitely, and so MUST be interrupted.
+                // It's not enough to simply guard each iteration, because there are calls to blocking methods that may
+                // block infinitely if no further requests come in.
+                taskFutures.forEach(future -> future.cancel(true));
+            }
+        }
+    }
 
-            Future<Void> holdingThreadUpdaterFuture = executor.resource().submit(() -> {
-                ThreadNames.setThreadName(Thread.currentThread(), "Holding Thread Updater");
-                updateThreadInfoSnapshotIndefinitely();
-                return null;
-            });
-            this.taskFutures = ImmutableList.of(holdingThreadUpdaterFuture);
+    private final class ThreadInfoSnapshotRunner {
+
+        private final ScheduledExecutorService scheduledExecutor;
+
+        private final Optional<ScheduledFuture<?>> scheduledFuture;
+
+        private ThreadInfoSnapshotRunner() {
+            // Although LockServiceImpl is passed an executor, which is used by other background tasks like
+            // LockReapRunner, taking periodic snapshots of the current lock state requires a ScheduledExecutor.
+            // Since there is no scheduled counterpart to a CachedThreadPoolExecutor, we cannot just pass a
+            // scheduled executor to LockServiceImpl without possibly altering concurrent scaling behavior.
+            // Hence, the decision was made to construct a new executor instead, ignoring the one passed in the
+            // LockServiceImpl constructor. This decision should be revisited/reverted if
+            // - we decide to pass ScheduledExecutors for LockServiceImpl
+            // - we have the ability to wrap an existing executor to create a scheduled variant
+            this.scheduledExecutor = PTExecutors.newSingleThreadScheduledExecutor();
+            if (collectThreadInfo) {
+                ScheduledFuture<?> future = scheduledExecutor.scheduleWithFixedDelay(
+                        () -> {
+                            ThreadNames.setThreadName(Thread.currentThread(), "Thread Info Snapshotter");
+                            updateThreadInfoSnapshot();
+                        },
+                        0,
+                        threadInfoSnapshotInterval.toMillis(),
+                        TimeUnit.MILLISECONDS);
+                this.scheduledFuture = Optional.of(future);
+            } else {
+                this.scheduledFuture = Optional.empty();
+            }
         }
     }
 }uau(af61a7910ad0ee8b49b5b29ad9c29db4cef91065}(sha(af61a7910ad0ee8b49b5b29ad9c29db4cef91065node_idEC_kwDOAjP5fdoAKGFmNjFhNzkxMGFkMGVlOGI0OWI1YjI5YWQ5YzI5ZGI0Y2VmOTEwNjUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-24T09:35:09Zu	committer}(jއ 
Sam Kramerj skramer@palantir.comj 2023-05-24T09:35:09Zumessageaddress commentstree}(jև (b2da40ae391cd2e1850c67d099e04b14b41da3ccurl`https://api.github.com/repos/palantir/atlasdb/git/trees/b2da40ae391cd2e1850c67d099e04b14b41da3ccuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/af61a7910ad0ee8b49b5b29ad9c29db4cef91065
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRt2k4ACgkQmPPOpKR4
XS10vQf/RULSWzVoYKlQhkwPeXG7Y2dy91OTNOAf1/2+jUEuSNN5yaWqMO/84UHc
cB9x9uXK2HuqcpAN+cUUViEESLKDwUY8isP1DpwEsaAtvOVotxvJQwSXvdYD4fjs
8oz+QJ6HGYHlMdG9D00rqHwYoo3TxK017QmTqtrbeeri//1FztZvh3zaoFXcR+L3
uWIs9cKt1lzadqGh0MplyVLkDiFwCT2tlcmVMdm90pQp6MJeAMRSFHVMYG6BOpvg
Gf7yrv9aQ5+jR/kHd/SOnRNRonE7wi+B8EK+iD8hFj89B0U20JqtMXmg9UkQFIxZ
uJSaGwkiBGnyjp3squ5oEFXueifVMQ==
=UkUj
-----END PGP SIGNATURE-----payloadtree b2da40ae391cd2e1850c67d099e04b14b41da3cc
parent 9d9c33bc199ba48f8ef9a478d32c5cb4c8c3014e
author Sam Kramer <skramer@palantir.com> 1684920909 +0100
committer Sam Kramer <skramer@palantir.com> 1684920909 +0100

address comments
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/af61a7910ad0ee8b49b5b29ad9c29db4cef91065html_urlShttps://github.com/palantir/atlasdb/commit/af61a7910ad0ee8b49b5b29ad9c29db4cef91065comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/af61a7910ad0ee8b49b5b29ad9c29db4cef91065/commentsj܇ }(login
Sam-KrameridJ^2_ j؇ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j؇ MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj
 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jև (9d9c33bc199ba48f8ef9a478d32c5cb4c8c3014ej ^https://api.github.com/repos/palantir/atlasdb/commits/9d9c33bc199ba48f8ef9a478d32c5cb4c8c3014ej Shttps://github.com/palantir/atlasdb/commit/9d9c33bc199ba48f8ef9a478d32c5cb4c8c3014euastats}(totalK	additionsK|	deletionsK;ufiles](}(jև (29fc330cc18e86d9e89097012f497c48a1e6c4b9filenamefatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/MismatchedValue.javastatusmodifiedj8 Kj9 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/af61a7910ad0ee8b49b5b29ad9c29db4cef91065/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javaraw_urlhttps://github.com/palantir/atlasdb/raw/af61a7910ad0ee8b49b5b29ad9c29db4cef91065/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.java?ref=af61a7910ad0ee8b49b5b29ad9c29db4cef91065patchX  @@ -24,10 +24,10 @@
 @Value.Immutable
 public interface MismatchedValue {
     @Value.Parameter
-    ValueAndTimestamp actual();
+    ValueAndMaybeTimestamp actual();
 
     @Value.Parameter
-    ValueAndTimestamp expected();
+    ValueAndMaybeTimestamp expected();
 
     @Value.Check
     default void actualAndExpectedAreNotEqualToEachOther() {
@@ -39,10 +39,10 @@ default void actualAndExpectedAreNotEqualToEachOther() {
     }
 
     static MismatchedValue of(Optional<Integer> actual, Optional<Integer> expected) {
-        return MismatchedValue.of(ValueAndTimestamp.of(actual), ValueAndTimestamp.of(expected));
+        return MismatchedValue.of(ValueAndMaybeTimestamp.of(actual), ValueAndMaybeTimestamp.of(expected));
     }
 
-    static MismatchedValue of(ValueAndTimestamp actual, ValueAndTimestamp expected) {
+    static MismatchedValue of(ValueAndMaybeTimestamp actual, ValueAndMaybeTimestamp expected) {
         return ImmutableMismatchedValue.of(actual, expected);
     }
 }u}(jև (f4cdcb16e74fcf6db212f3bb382ada34382c7076j> matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/ValueAndMaybeTimestamp.javaj@ renamedj8 Kj9 K	jB KjC https://github.com/palantir/atlasdb/blob/af61a7910ad0ee8b49b5b29ad9c29db4cef91065/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.javajE https://github.com/palantir/atlasdb/raw/af61a7910ad0ee8b49b5b29ad9c29db4cef91065/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.javajG https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.java?ref=af61a7910ad0ee8b49b5b29ad9c29db4cef91065jI Xm  @@ -27,36 +27,43 @@
  * would be able to catch these sort of cases.
  */
 @Value.Immutable
-public interface ValueAndTimestamp {
-    ValueAndTimestamp EMPTY = of(Optional.empty(), Optional.empty());
+public interface ValueAndMaybeTimestamp {
+    ValueAndMaybeTimestamp EMPTY = of(Optional.empty(), Optional.empty());
 
+    /**
+     * Value, which when empty either indicates it does not exist, or has been deleted.
+     */
     @Value.Parameter
     Optional<Integer> value();
 
+    /**
+     * Optional timestamp associated with the value. When empty it means either it does not exist, or it is not needed
+     * for comparison.
+     */
     @Value.Parameter
     Optional<Long> timestamp();
 
-    static ValueAndTimestamp empty() {
+    static ValueAndMaybeTimestamp empty() {
         return EMPTY;
     }
 
-    static ValueAndTimestamp of(Integer value) {
+    static ValueAndMaybeTimestamp of(Integer value) {
         return of(Optional.of(value));
     }
 
-    static ValueAndTimestamp of(Optional<Integer> value) {
+    static ValueAndMaybeTimestamp of(Optional<Integer> value) {
         return of(value, Optional.empty());
     }
 
-    static ValueAndTimestamp of(Optional<Integer> value, Long timestamp) {
+    static ValueAndMaybeTimestamp of(Optional<Integer> value, Long timestamp) {
         return of(value, Optional.of(timestamp));
     }
 
-    static ValueAndTimestamp of(Integer value, Long timestamp) {
+    static ValueAndMaybeTimestamp of(Integer value, Long timestamp) {
         return of(Optional.of(value), Optional.of(timestamp));
     }
 
-    static ValueAndTimestamp of(Optional<Integer> value, Optional<Long> timestamp) {
-        return ImmutableValueAndTimestamp.of(value, timestamp);
+    static ValueAndMaybeTimestamp of(Optional<Integer> value, Optional<Long> timestamp) {
+        return ImmutableValueAndMaybeTimestamp.of(value, timestamp);
     }
 }previous_filenamehatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/ValueAndTimestamp.javau}(jև (636e11dbc52b78329590a8ee90644f9728e5fb69j> jatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/invariant/MismatchedValueTest.javaj@ modifiedj8 Kj9 KjB KjC https://github.com/palantir/atlasdb/blob/af61a7910ad0ee8b49b5b29ad9c29db4cef91065/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javajE https://github.com/palantir/atlasdb/raw/af61a7910ad0ee8b49b5b29ad9c29db4cef91065/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javajG https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.java?ref=af61a7910ad0ee8b49b5b29ad9c29db4cef91065jI X  @@ -25,8 +25,8 @@
 
 public final class MismatchedValueTest {
 
-    private static final ValueAndTimestamp VALUE_ONE = ValueAndTimestamp.of(25);
-    private static final ValueAndTimestamp VALUE_TWO = ValueAndTimestamp.of(15);
+    private static final ValueAndMaybeTimestamp VALUE_ONE = ValueAndMaybeTimestamp.of(25);
+    private static final ValueAndMaybeTimestamp VALUE_TWO = ValueAndMaybeTimestamp.of(15);
 
     @Test
     public void canConstructMismatchedValueFromTwoDifferentValues() {u}(jև (875d7b415beab11ac8c7b5cb94591f3b3a874168j> datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariant.javaj@ modifiedj8 Kj9 KjB K6jC https://github.com/palantir/atlasdb/blob/af61a7910ad0ee8b49b5b29ad9c29db4cef91065/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javajE https://github.com/palantir/atlasdb/raw/af61a7910ad0ee8b49b5b29ad9c29db4cef91065/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javajG https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.java?ref=af61a7910ad0ee8b49b5b29ad9c29db4cef91065jI X  @@ -16,16 +16,17 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
+import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import io.vavr.collection.Map;
 import java.util.List;
-import java.util.Optional;
 import java.util.function.Consumer;
-import one.util.streamex.StreamEx;
 
 /**
  * This invariant checks that the snapshot isolation property is maintained.
@@ -50,34 +51,35 @@ public enum SnapshotInvariant implements TransactionInvariant {
     @Override
     public void accept(
             WorkflowHistory workflowHistory, Consumer<List<InvalidWitnessedTransaction>> invalidWitnessedTransactions) {
-        VersionedTableView<TableAndWorkloadCell, ValueAndTimestamp> tableView = new VersionedTableView<>();
-        List<InvalidWitnessedTransaction> transactions = StreamEx.of(workflowHistory.history())
-                .mapPartial(witnessedTransaction -> {
-                    StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> latestTableView =
-                            tableView.getLatestTableView();
+        ImmutableList.Builder<InvalidWitnessedTransaction> invalidTransactionsBuilder = new ImmutableList.Builder<>();
+        VersionedTableView<TableAndWorkloadCell, ValueAndMaybeTimestamp> tableView = new VersionedTableView<>();
+        for (WitnessedTransaction witnessedTransaction : workflowHistory.history()) {
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestTableView =
+                    tableView.getLatestTableView();
 
-                    SnapshotInvariantVisitor visitor = new SnapshotInvariantVisitor(
-                            witnessedTransaction.startTimestamp(),
-                            latestTableView,
-                            tableView.getView(witnessedTransaction.startTimestamp()));
+            SnapshotInvariantVisitor visitor = new SnapshotInvariantVisitor(
+                    witnessedTransaction.startTimestamp(),
+                    latestTableView,
+                    tableView.getView(witnessedTransaction.startTimestamp()));
 
-                    List<InvalidWitnessedTransactionAction> invalidTransactions = StreamEx.of(
-                                    witnessedTransaction.actions())
-                            .mapPartial(action -> action.accept(visitor))
-                            .toList();
+            ImmutableList.Builder<InvalidWitnessedTransactionAction> invalidTransactionActionsBuilder =
+                    new ImmutableList.Builder<>();
+            for (WitnessedTransactionAction action : witnessedTransaction.actions()) {
+                action.accept(visitor).ifPresent(invalidTransactionActionsBuilder::add);
+            }
 
-                    witnessedTransaction
-                            .commitTimestamp()
-                            .ifPresent(
-                                    commitTimestamp -> tableView.put(commitTimestamp, latestTableView.getSnapshot()));
+            List<InvalidWitnessedTransactionAction> invalidTransactionActions =
+                    invalidTransactionActionsBuilder.build();
 
-                    if (invalidTransactions.isEmpty()) {
-                        return Optional.empty();
-                    }
+            witnessedTransaction
+                    .commitTimestamp()
+                    .ifPresent(commitTimestamp -> tableView.put(commitTimestamp, latestTableView.getSnapshot()));
 
-                    return Optional.of(InvalidWitnessedTransaction.of(witnessedTransaction, invalidTransactions));
-                })
-                .toList();
-        invalidWitnessedTransactions.accept(transactions);
+            if (!invalidTransactionActions.isEmpty()) {
+                invalidTransactionsBuilder.add(
+                        InvalidWitnessedTransaction.of(witnessedTransaction, invalidTransactionActions));
+            }
+        }
+        invalidWitnessedTransactions.accept(invalidTransactionsBuilder.build());
     }
 }u}(jև (9105d7ebd3f6af94cfaa196d41e9f2263cfb313ej> katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj@ modifiedj8 Kj9 KjB KjC https://github.com/palantir/atlasdb/blob/af61a7910ad0ee8b49b5b29ad9c29db4cef91065/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajE https://github.com/palantir/atlasdb/raw/af61a7910ad0ee8b49b5b29ad9c29db4cef91065/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajG https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=af61a7910ad0ee8b49b5b29ad9c29db4cef91065jI X
  @@ -39,13 +39,13 @@ final class SnapshotInvariantVisitor
         implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
 
     private final Long startTimestamp;
-    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> latestView;
-    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> readView;
+    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestView;
+    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> readView;
 
     SnapshotInvariantVisitor(
             Long startTimestamp,
-            StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> latestView,
-            StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> readView) {
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestView,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> readView) {
         this.startTimestamp = startTimestamp;
         this.latestView = latestView;
         this.readView = readView;
@@ -93,18 +93,18 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransact
      */
     private void applyWrites(String tableName, WorkloadCell cell, Optional<Integer> value) {
         readView.with(table ->
-                table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndTimestamp.of(value, startTimestamp)));
+                table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndMaybeTimestamp.of(value, startTimestamp)));
         latestView.with(table ->
-                table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndTimestamp.of(value, startTimestamp)));
+                table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndMaybeTimestamp.of(value, startTimestamp)));
     }
 
     /**
      * Checks that the value we are writing has not changed from our read view and the latest view. If it has,
      * that means we have missed a write-write conflict, as it should have conflicted with this transaction.
      */
     private Optional<MismatchedValue> checkForWriteWriteConflicts(String table, WorkloadCell cell) {
-        ValueAndTimestamp previous = fetchValueFromView(table, cell, readView);
-        ValueAndTimestamp latest = fetchValueFromView(table, cell, latestView);
+        ValueAndMaybeTimestamp previous = fetchValueFromView(table, cell, readView);
+        ValueAndMaybeTimestamp latest = fetchValueFromView(table, cell, latestView);
 
         if (!previous.equals(latest)) {
             return Optional.of(MismatchedValue.of(latest, previous));
@@ -113,11 +113,11 @@ private Optional<MismatchedValue> checkForWriteWriteConflicts(String table, Work
         return Optional.empty();
     }
 
-    private ValueAndTimestamp fetchValueFromView(
+    private static ValueAndMaybeTimestamp fetchValueFromView(
             String tableName,
             WorkloadCell workloadCell,
-            StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> view) {
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> view) {
         TableAndWorkloadCell tableAndWorkloadCell = TableAndWorkloadCell.of(tableName, workloadCell);
-        return view.getSnapshot().get(tableAndWorkloadCell).toJavaOptional().orElseGet(ValueAndTimestamp::empty);
+        return view.getSnapshot().get(tableAndWorkloadCell).toJavaOptional().orElseGet(ValueAndMaybeTimestamp::empty);
     }
 }u}(jև (0729ad724e2b47dc1415a32180124d780320f58ej> eatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/VersionedTableView.javaj@ modifiedj8 Kj9 K jB KjC https://github.com/palantir/atlasdb/blob/af61a7910ad0ee8b49b5b29ad9c29db4cef91065/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.javajE https://github.com/palantir/atlasdb/raw/af61a7910ad0ee8b49b5b29ad9c29db4cef91065/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.javajG https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.java?ref=af61a7910ad0ee8b49b5b29ad9c29db4cef91065jI X  @@ -17,11 +17,15 @@
 package com.palantir.atlasdb.workload.invariant;
 
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
 import io.vavr.collection.HashMap;
 import io.vavr.collection.Map;
 import java.util.Optional;
 import java.util.TreeMap;
+import javax.annotation.concurrent.NotThreadSafe;
 
+@NotThreadSafe
 public final class VersionedTableView<K, V> {
     private final java.util.NavigableMap<Long, Map<K, V>> tableViews = new TreeMap<>();
 
@@ -30,6 +34,13 @@ public void put(Long commitTimestamp, Map<K, V> tableView) {
     }
 
     public StructureHolder<Map<K, V>> getView(Long startTimestamp) {
+        Preconditions.checkArgument(
+                !tableViews.containsKey(startTimestamp),
+                "It is expected when obtaining a view "
+                        + "from the start timestamp, that it should not already exist or be present within the map. "
+                        + "As all keys in this map should be commit timestamps, and all timestamps are immutable.",
+                SafeArg.of("startTimestamp", startTimestamp),
+                SafeArg.of("tableViews", tableViews));
         return StructureHolder.create(() -> Optional.ofNullable(tableViews.lowerEntry(startTimestamp))
                 .map(java.util.Map.Entry::getValue)
                 .orElseGet(HashMap::empty));u}(jև (165c14bed2da1c40158e60686d3e57607f512258j> hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javaj@ modifiedj8 Kj9 KjB KjC https://github.com/palantir/atlasdb/blob/af61a7910ad0ee8b49b5b29ad9c29db4cef91065/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javajE https://github.com/palantir/atlasdb/raw/af61a7910ad0ee8b49b5b29ad9c29db4cef91065/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javajG https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=af61a7910ad0ee8b49b5b29ad9c29db4cef91065jI X\	  @@ -65,7 +65,7 @@ public void catchesWriteWriteConflict() {
         assertThat(invalidAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
         assertThat(invalidAction.mismatchedValue())
                 .isEqualTo(MismatchedValue.of(
-                        ValueAndTimestamp.of(WorkloadTestHelpers.VALUE_ONE, 1L), ValueAndTimestamp.empty()));
+                        ValueAndMaybeTimestamp.of(WorkloadTestHelpers.VALUE_ONE, 1L), ValueAndMaybeTimestamp.empty()));
     }
 
     @Test
@@ -92,7 +92,8 @@ public void catchesAbaWriteWriteConflictForDeletes() {
         InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
         assertThat(invalidAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
         assertThat(invalidAction.mismatchedValue())
-                .isEqualTo(MismatchedValue.of(ValueAndTimestamp.of(Optional.empty(), 1L), ValueAndTimestamp.empty()));
+                .isEqualTo(MismatchedValue.of(
+                        ValueAndMaybeTimestamp.of(Optional.empty(), 1L), ValueAndMaybeTimestamp.empty()));
     }
 
     @Test
@@ -136,4 +137,26 @@ public void doesNotCatchReadOnlyTransactionAnomaly() {
         SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
         assertThat(invalidTransactions).isEmpty();
     }
+
+    @Test
+    public void properlyReplaysReadsAndWrites() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .read(5, 10)
+                .endTransaction(15L)
+                .startTransaction(16L)
+                .read(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(17L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
 }u}(jև (536813aeb3973b4b9f9bd25d91bf425cf6efeb37j> iatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/VersionedTableViewTest.javaj@ modifiedj8 Kj9 KjB KjC https://github.com/palantir/atlasdb/blob/af61a7910ad0ee8b49b5b29ad9c29db4cef91065/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.javajE https://github.com/palantir/atlasdb/raw/af61a7910ad0ee8b49b5b29ad9c29db4cef91065/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.javajG https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.java?ref=af61a7910ad0ee8b49b5b29ad9c29db4cef91065jI X  @@ -16,10 +16,14 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import io.vavr.collection.HashMap;
 import io.vavr.collection.Map;
+import java.util.TreeMap;
 import org.junit.Test;
 
 public final class VersionedTableViewTest {
@@ -46,7 +50,23 @@ public void getViewFetchesViewBeforeTimestamp() {
         VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
         Map<Long, Long> expectedView = HashMap.of(10L, 20L);
         tableView.put(1L, expectedView);
-        tableView.put(2L, HashMap.of(20L, 30L));
+        tableView.put(3L, HashMap.of(20L, 30L));
         assertThat(tableView.getView(2L).getSnapshot()).isEqualTo(expectedView);
     }
+
+    @Test
+    public void getViewThrowsWhenFetchingViewForTimestampThatExists() {
+        Long timestamp = 1L;
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedView = HashMap.of(10L, 20L);
+        tableView.put(timestamp, expectedView);
+
+        TreeMap<Long, Map<Long, Long>> tableViews = new TreeMap<>();
+        tableViews.put(timestamp, tableView.getLatestTableView().getSnapshot());
+
+        assertThatLoggableExceptionThrownBy(() -> tableView.getView(1L).getSnapshot())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("It is expected when obtaining a view")
+                .hasExactlyArgs(SafeArg.of("startTimestamp", 1L), SafeArg.of("tableViews", tableViews));
+    }
 }u}(jև (cad53b71091234e55f82b97b4b6e475eebb5559bj> qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj@ modifiedj8 Kj9 KjB KjC https://github.com/palantir/atlasdb/blob/af61a7910ad0ee8b49b5b29ad9c29db4cef91065/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajE https://github.com/palantir/atlasdb/raw/af61a7910ad0ee8b49b5b29ad9c29db4cef91065/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajG https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=af61a7910ad0ee8b49b5b29ad9c29db4cef91065jI X  @@ -41,7 +41,9 @@ public WitnessedTransactionsBuilder(String table) {
     }
 
     public WitnessedTransactionBuilder startTransaction(long startTimestamp) {
-        timestampCounter.set(startTimestamp);
+        if (startTimestamp > timestampCounter.get()) {
+            timestampCounter.set(startTimestamp);
+        }
         return new WitnessedTransactionBuilder(startTimestamp);
     }
 u}(jև (bdf9a77b3f524e363e5144842e79d33e09bcbe78j> hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javaj@ modifiedj8 Kj9 KjB KjC https://github.com/palantir/atlasdb/blob/af61a7910ad0ee8b49b5b29ad9c29db4cef91065/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javajE https://github.com/palantir/atlasdb/raw/af61a7910ad0ee8b49b5b29ad9c29db4cef91065/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javajG https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=af61a7910ad0ee8b49b5b29ad9c29db4cef91065jI X  @@ -19,7 +19,7 @@
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
-import com.palantir.atlasdb.workload.invariant.ValueAndTimestamp;
+import com.palantir.atlasdb.workload.invariant.ValueAndMaybeTimestamp;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
@@ -60,8 +60,8 @@ public final class WorkloadTestHelpers {
     public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
             TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO);
 
-    public static final ValueAndTimestamp VALUE_ONE_AND_TIMESTAMP = ValueAndTimestamp.of(VALUE_ONE, 1L);
+    public static final ValueAndMaybeTimestamp VALUE_ONE_AND_TIMESTAMP = ValueAndMaybeTimestamp.of(VALUE_ONE, 1L);
 
-    public static final ValueAndTimestamp VALUE_TWO_AND_TIMESTAMP = ValueAndTimestamp.of(VALUE_TWO, 1L);
+    public static final ValueAndMaybeTimestamp VALUE_TWO_AND_TIMESTAMP = ValueAndMaybeTimestamp.of(VALUE_TWO, 1L);
     public static final String WORKFLOW = "example-workflow";
 }ueu(a99372c15352444226961a045b18ff8b409ad34d}(sha(a99372c15352444226961a045b18ff8b409ad34dnode_idEC_kwDOAjP5fdoAKGE5OTM3MmMxNTM1MjQ0NDIyNjk2MWEwNDViMThmZjhiNDA5YWQzNGQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-09T16:49:52Zu	committer}(j GitHubj noreply@github.comj 2023-05-09T16:49:52Zumessage[PDS-350703 and Others | i like trains] Part 4: The Meaning of What 'Is' Is / Hotfix Boolean Serialization (#6563)

Fixed a serialization issue for users of `LockServerOptions` and `LockState` endpoints in the legacy lock service.tree}(j (381111018089435dbc5e9a3a6305a8ddb658c45burl`https://api.github.com/repos/palantir/atlasdb/git/trees/381111018089435dbc5e9a3a6305a8ddb658c45buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a99372c15352444226961a045b18ff8b409ad34d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkWnmwCRBK7hj4Ov3rIwAAi0kIAHXP1Xg0Px4RFafiFab2nm78
ti8dvvoz2G2opd6CWMlOSi/8E2URop2PtmCjvvj4m6+yUn2O4AfGhz1Gbv2skBFU
9aBLkOOmS8Q3spND4FIKpnxdEKVA3H83j8OyaFpwQ0/TdrkqR0ETUVU78Q2vUcfH
R4h8+EkHqyrHH9p6uQjZEJ2vgt4gzmaiThwxhqFGw8G8TdLYxlTjQ0oZOLPJNEG9
aS12HBjDCEE6F4bXG2vCLgjAwLxSVDyb/wZ2NwBzTSp3Qj11373snpEX7oHEiHH0
N0AlXMDIq+DTO+fOe0NMurDlUhjHUVYx1Gl7GZvCKC8inDSDDlHPGAWhNibBLsc=
=Gw6C
-----END PGP SIGNATURE-----
payloadX  tree 381111018089435dbc5e9a3a6305a8ddb658c45b
parent 62cdcb1dda1fa7a5ea18e88e344a6455edbed055
author Jeremy Kong <jkong@palantir.com> 1683650992 +0100
committer GitHub <noreply@github.com> 1683650992 +0000

[PDS-350703 and Others | i like trains] Part 4: The Meaning of What 'Is' Is / Hotfix Boolean Serialization (#6563)

Fixed a serialization issue for users of `LockServerOptions` and `LockState` endpoints in the legacy lock service.
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/a99372c15352444226961a045b18ff8b409ad34dhtml_urlShttps://github.com/palantir/atlasdb/commit/a99372c15352444226961a045b18ff8b409ad34dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a99372c15352444226961a045b18ff8b409ad34d/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j web-flowjĈ J/j MDQ6VXNlcjE5ODY0NDQ3jƈ 4https://avatars.githubusercontent.com/u/19864447?v=4jȈ h5j %https://api.github.com/users/web-flowj https://github.com/web-flowjˈ /https://api.github.com/users/web-flow/followersj͈ <https://api.github.com/users/web-flow/following{/other_user}jψ 5https://api.github.com/users/web-flow/gists{/gist_id}jш <https://api.github.com/users/web-flow/starred{/owner}{/repo}jӈ 3https://api.github.com/users/web-flow/subscriptionsjՈ *https://api.github.com/users/web-flow/orgsj׈ +https://api.github.com/users/web-flow/reposjو 6https://api.github.com/users/web-flow/events{/privacy}jۈ 5https://api.github.com/users/web-flow/received_eventsj݈ Userj߈ uparents]}(j (62cdcb1dda1fa7a5ea18e88e344a6455edbed055j ^https://api.github.com/repos/palantir/atlasdb/commits/62cdcb1dda1fa7a5ea18e88e344a6455edbed055j Shttps://github.com/palantir/atlasdb/commit/62cdcb1dda1fa7a5ea18e88e344a6455edbed055uastats}(totalK_	additionsK_	deletionsK ufiles](}(j (217d9399bdb068283f3ed607c705739151adc8eafilename$changelog/@unreleased/pr-6563.v2.ymlstatusaddedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/a99372c15352444226961a045b18ff8b409ad34d/changelog%2F%40unreleased%2Fpr-6563.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/a99372c15352444226961a045b18ff8b409ad34d/changelog%2F%40unreleased%2Fpr-6563.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6563.v2.yml?ref=a99372c15352444226961a045b18ff8b409ad34dpatch@@ -0,0 +1,6 @@
+type: fix
+fix:
+  description: Fixed a serialization issue for users of `LockServerOptions` and `LockState`
+    endpoints in the legacy lock service.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6563u}(j (7deaaeb752dd206465461e58105cf13d7c7dbeffj lock-api/build.gradlej modifiedj Kj K j Kj ihttps://github.com/palantir/atlasdb/blob/a99372c15352444226961a045b18ff8b409ad34d/lock-api%2Fbuild.gradlej hhttps://github.com/palantir/atlasdb/raw/a99372c15352444226961a045b18ff8b409ad34d/lock-api%2Fbuild.gradlej {https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fbuild.gradle?ref=a99372c15352444226961a045b18ff8b409ad34dj
 X  @@ -45,6 +45,7 @@ dependencies {
     testImplementation 'com.palantir.common:streams'
     testImplementation 'io.dropwizard.metrics:metrics-core'
     testImplementation 'org.slf4j:slf4j-api'
+    testImplementation project(':lock-api-objects')
     testImplementation project(':lock-conjure-api:lock-conjure-api-objects')
     testImplementation project(':timelock-api:timelock-api-objects')
 u}(j (da3109e146d361ca31d2958b0fc223d0d2334824j ?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/a99372c15352444226961a045b18ff8b409ad34d/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj https://github.com/palantir/atlasdb/raw/a99372c15352444226961a045b18ff8b409ad34d/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=a99372c15352444226961a045b18ff8b409ad34dj
 @@ -48,6 +48,7 @@ public class LockServerOptions implements Serializable {
      * client accessing it.
      */
     @Value.Default
+    @JsonProperty("isStandaloneServer")
     public boolean isStandaloneServer() {
         return true;
     }u}(j (7cd1c34cf31d800e3d13f665c2f83a2f2153b95ej 7lock-api/src/main/java/com/palantir/lock/LockState.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/a99372c15352444226961a045b18ff8b409ad34d/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.javaj https://github.com/palantir/atlasdb/raw/a99372c15352444226961a045b18ff8b409ad34d/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.java?ref=a99372c15352444226961a045b18ff8b409ad34dj
 XD  @@ -16,6 +16,7 @@
 
 package com.palantir.lock;
 
+import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import java.util.List;
@@ -26,8 +27,10 @@
 @JsonSerialize(as = ImmutableLockState.class)
 @JsonDeserialize(as = ImmutableLockState.class)
 public interface LockState {
+    @JsonProperty("isWriteLocked")
     boolean isWriteLocked();
 
+    @JsonProperty("isFrozen")
     boolean isFrozen();
 
     List<LockClient> exactCurrentLockHolders();u     }(j (1926ba4ded622aa9fbfde697ed803a0543ddf1b5j Clock-api/src/test/java/com/palantir/lock/LockServerOptionsTest.javaj addedj KSj K j KSj https://github.com/palantir/atlasdb/blob/a99372c15352444226961a045b18ff8b409ad34d/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.javaj https://github.com/palantir/atlasdb/raw/a99372c15352444226961a045b18ff8b409ad34d/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.java?ref=a99372c15352444226961a045b18ff8b409ad34dj
 Xh  @@ -0,0 +1,83 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.lock.v2.IdentifiedTimeLockRequest;
+import java.io.File;
+import java.io.IOException;
+import java.util.concurrent.TimeUnit;
+import org.junit.Test;
+
+public class LockServerOptionsTest {
+    private static final File LOCK_SERVER_OPTIONS_JSON = new File(IdentifiedTimeLockRequest.class
+            .getResource("/lock-server-options.json")
+            .getPath());
+    private static final LockServerOptions NON_STANDALONE_OPTIONS =
+            LockServerOptions.builder().isStandaloneServer(false).build();
+
+    private final ObjectMapper serverMapper = ObjectMappers.newServerObjectMapper();
+    private final ObjectMapper clientMapper = ObjectMappers.newClientObjectMapper();
+
+    @Test
+    public void serializationContainsIsStandaloneServerExplicitly() throws Exception {
+        assertThat(serverMapper.writeValueAsString(NON_STANDALONE_OPTIONS))
+                .isNotEmpty()
+                .contains("\"isStandaloneServer\":false");
+        assertThat(serverMapper.writeValueAsString(LockServerOptions.builder().build()))
+                .isNotEmpty()
+                .contains("\"isStandaloneServer\":true");
+    }
+
+    @Test
+    public void serializationIsInverseOfDeserialization() throws JsonProcessingException {
+        assertSerializationIsInverseOfDeserialization(NON_STANDALONE_OPTIONS);
+        assertSerializationIsInverseOfDeserialization(
+                LockServerOptions.builder().build());
+    }
+
+    @Test
+    @SuppressWarnings("deprecation") // These are actual fields users might set that we still support...
+    public void existingOptionsCanBeDeserialized() throws IOException {
+        LockServerOptions lockServerOptions = LockServerOptions.builder()
+                .maxAllowedLockTimeout(SimpleTimeDuration.of(1, TimeUnit.MILLISECONDS))
+                .maxAllowedClockDrift(SimpleTimeDuration.of(2, TimeUnit.SECONDS))
+                .maxAllowedBlockingDuration(SimpleTimeDuration.of(3, TimeUnit.MINUTES))
+                .maxNormalLockAge(SimpleTimeDuration.of(4, TimeUnit.HOURS))
+                .randomBitCount(32)
+                .stuckTransactionTimeout(SimpleTimeDuration.of(5, TimeUnit.DAYS))
+                .slowLogTriggerMillis(12345)
+                .isStandaloneServer(false)
+                .build();
+
+        assertThat(clientMapper.readValue(LOCK_SERVER_OPTIONS_JSON, LockServerOptions.class))
+                .isEqualTo(lockServerOptions);
+        assertThat(serverMapper.readValue(LOCK_SERVER_OPTIONS_JSON, LockServerOptions.class))
+                .isEqualTo(lockServerOptions);
+    }
+
+    private void assertSerializationIsInverseOfDeserialization(LockServerOptions options)
+            throws JsonProcessingException {
+        String json = serverMapper.writeValueAsString(options);
+        assertThat(clientMapper.readValue(json, LockServerOptions.class)).isEqualTo(options);
+        assertThat(serverMapper.readValue(json, LockServerOptions.class)).isEqualTo(options);
+    }
+}u}(j (efe8f1aaad6365f7c6d18f7a187cf695d298d214j 4lock-api/src/test/resources/lock-server-options.jsonj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/a99372c15352444226961a045b18ff8b409ad34d/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.jsonj https://github.com/palantir/atlasdb/raw/a99372c15352444226961a045b18ff8b409ad34d/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.jsonj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.json?ref=a99372c15352444226961a045b18ff8b409ad34dj
 Xa  @@ -0,0 +1 @@
+{"maxAllowedLockTimeout":{"time":1,"unit":"MILLISECONDS"},"maxAllowedClockDrift":{"time":2,"unit":"SECONDS"},"maxAllowedBlockingDuration":{"time":3,"unit":"MINUTES"},"maxNormalLockAge":{"time":4,"unit":"HOURS"},"randomBitCount":32,"stuckTransactionTimeout":{"time":5,"unit":"DAYS"},"slowLogTriggerMillis":12345,"isStandaloneServer":false}ueu(1bf0ac732110b1e76634d2dc6ac8a1a1375cf4d9}(sha(1bf0ac732110b1e76634d2dc6ac8a1a1375cf4d9node_idEC_kwDOAjP5fdoAKDFiZjBhYzczMjExMGIxZTc2NjM0ZDJkYzZhYzhhMWExMzc1Y2Y0ZDkcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-28T16:06:31Zu	committer}(j> 
Sam Kramerj@ skramer@palantir.comjB 2023-04-28T16:06:31Zumessage1000 -> 100 iterationstree}(j6 (be3ee9a594feaf3f814db762abc4d85297e5290durl`https://api.github.com/repos/palantir/atlasdb/git/trees/be3ee9a594feaf3f814db762abc4d85297e5290dujN bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1bf0ac732110b1e76634d2dc6ac8a1a1375cf4d9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRL7wcACgkQmPPOpKR4
XS1l9wf+MDk3U+mP2UC0XotdMRbAV+MsJU0DdAxW1bkVwE0OSaaXj9cCE9g1Ffnd
GKgUjpkAGTBahYzLKkVHZQVftXAdbdpEs0bDRe0FIXww0whugH6P5QlGLHEsmk8A
U709kFYTfVTEi0iWkm4a0akMxJXMPjWs4KI7DkMs8CqAk/QWq/39X3OoiWrjbgGp
IGJdxExM9jip/RmChu7cS6HufFL+T5n63MjItwylaCs7nPflqDYTDgZoZ852dXnr
NVFviT5Gkn0NXBbUT/alTtka9rQSDJeLebDeO4ZhXBPp6MPQbUywdpLtqcdpZZNZ
yxWCeXgqde3/wSNjoV2N9MNZd79kMw==
=OvoC
-----END PGP SIGNATURE-----payloadtree be3ee9a594feaf3f814db762abc4d85297e5290d
parent b560a5dfca125b4a981d36668f24b30e2f9579a5
author Sam Kramer <skramer@palantir.com> 1682697991 +0100
committer Sam Kramer <skramer@palantir.com> 1682697991 +0100

1000 -> 100 iterations
uujN ^https://api.github.com/repos/palantir/atlasdb/commits/1bf0ac732110b1e76634d2dc6ac8a1a1375cf4d9html_urlShttps://github.com/palantir/atlasdb/commit/1bf0ac732110b1e76634d2dc6ac8a1a1375cf4d9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1bf0ac732110b1e76634d2dc6ac8a1a1375cf4d9/commentsj< }(login
Sam-KrameridJ^2_ j8 MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jN 'https://api.github.com/users/Sam-Kramerj\ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujD }(ja 
Sam-Kramerjc J^2_ j8 MDQ6VXNlcjYyMzg4MTQ=je 3https://avatars.githubusercontent.com/u/6238814?v=4jg h5jN 'https://api.github.com/users/Sam-Kramerj\ https://github.com/Sam-Kramerjj 1https://api.github.com/users/Sam-Kramer/followersjl >https://api.github.com/users/Sam-Kramer/following{/other_user}jn 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jp >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jr 5https://api.github.com/users/Sam-Kramer/subscriptionsjt ,https://api.github.com/users/Sam-Kramer/orgsjv -https://api.github.com/users/Sam-Kramer/reposjx 8https://api.github.com/users/Sam-Kramer/events{/privacy}jz 7https://api.github.com/users/Sam-Kramer/received_eventsj| Userj~ uparents]}(j6 (b560a5dfca125b4a981d36668f24b30e2f9579a5jN ^https://api.github.com/repos/palantir/atlasdb/commits/b560a5dfca125b4a981d36668f24b30e2f9579a5j\ Shttps://github.com/palantir/atlasdb/commit/b560a5dfca125b4a981d36668f24b30e2f9579a5uastats}(totalK	additionsK	deletionsKufiles](}(j6 (0c3bbb87a5304ff925bb1458cdecd10c1a2c49d3filenameKatlasdb-workload-server-distribution/src/test/resources/workload-server.ymlstatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/1bf0ac732110b1e76634d2dc6ac8a1a1375cf4d9/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/1bf0ac732110b1e76634d2dc6ac8a1a1375cf4d9/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=1bf0ac732110b1e76634d2dc6ac8a1a1375cf4d9patch@@ -14,6 +14,6 @@ install:
     tableConfiguration:
       tableName: ring-test
       isolationLevel: SNAPSHOT
-    iterationCount: 1000
+    iterationCount: 100
     type: ring
   exitAfterRunning: false
\ No newline at end of fileu}(j6 (fbca8423b226413aba0ae3c806e4fd5785aca537j Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/1bf0ac732110b1e76634d2dc6ac8a1a1375cf4d9/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://github.com/palantir/atlasdb/raw/1bf0ac732110b1e76634d2dc6ac8a1a1375cf4d9/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=1bf0ac732110b1e76634d2dc6ac8a1a1375cf4d9j @@ -49,6 +49,6 @@ install:
     tableConfiguration:
       tableName: ring_test
       isolationLevel: SNAPSHOT
-    iterationCount: 1000
+    iterationCount: 100
     type: ring
   exitAfterRunning: trueu}(j6 (046ad31aa351076da621c01e8dacbff48e1056e6j Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/1bf0ac732110b1e76634d2dc6ac8a1a1375cf4d9/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/1bf0ac732110b1e76634d2dc6ac8a1a1375cf4d9/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=1bf0ac732110b1e76634d2dc6ac8a1a1375cf4d9j @@ -14,6 +14,6 @@ install:
     tableConfiguration:
       tableName: ring-test
       isolationLevel: SNAPSHOT
-    iterationCount: 1000
+    iterationCount: 100
     type: ring
   exitAfterRunning: true
\ No newline at end of fileueu(15d37d234ee87597aecc994b05a58827bd9ffaa6}(sha(15d37d234ee87597aecc994b05a58827bd9ffaa6node_idEC_kwDOAjP5fdoAKDE1ZDM3ZDIzNGVlODc1OTdhZWNjOTk0YjA1YTU4ODI3YmQ5ZmZhYTYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-07-26T12:56:50Zu	committer}(jŉ 
Ahmed Alouanejǉ aalouane@palantir.comjɉ 2023-07-26T12:56:50Zumessage1Merge branch 'develop' into roomba/update-conjuretree}(j (48bd7a02bc5658e329de9ab1b352eb66d3568d9furl`https://api.github.com/repos/palantir/atlasdb/git/trees/48bd7a02bc5658e329de9ab1b352eb66d3568d9fujՉ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/15d37d234ee87597aecc994b05a58827bd9ffaa6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmTBGBMACgkQPlMHVIT1
yhq8nwf+PVicqukQUyfBNSSHWR0emWihe3W5WKYEmsQ3GbCIHp+dvpmkBIXvVpzX
FGlteptecIUFyVzy8rdh7Yi3gg2mekg+X0GM+j+mWtbz4wyv9r3f/e5kGv894idb
2rDaKlISrW9brDUUPTYpjQfYMjo8NnZlP6ypAF854V5tAQsXgmLiSuwoTi4o//Xv
jDOKA2BCewr5hQYSK2kJRUJB8rDpUTAmOIQE5LjLcQlHctWWC95C+BlXXapLeu64
DxdQp6U9ob27wVuXECFxvF6IytuVg7+nAqvkZ9uPdlfpLEjxfTTtoxtUIHAk8iy6
2e6D/eb2nAPRwVJnksGtFn1BLgvIFQ==
=Ksuq
-----END PGP SIGNATURE-----payloadX@  tree 48bd7a02bc5658e329de9ab1b352eb66d3568d9f
parent afc579d36cc24577d1c0103097a5c0f86f8060ed
parent a22f5c5cdd00985e3f129884654c1fe4b6e70e2b
author Ahmed Alouane <aalouane@palantir.com> 1690376210 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1690376210 +0100

Merge branch 'develop' into roomba/update-conjure
uujՉ ^https://api.github.com/repos/palantir/atlasdb/commits/15d37d234ee87597aecc994b05a58827bd9ffaa6html_urlShttps://github.com/palantir/atlasdb/commit/15d37d234ee87597aecc994b05a58827bd9ffaa6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/15d37d234ee87597aecc994b05a58827bd9ffaa6/commentsjÉ }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jՉ #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujˉ }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5jՉ #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents](}(j (afc579d36cc24577d1c0103097a5c0f86f8060edjՉ ^https://api.github.com/repos/palantir/atlasdb/commits/afc579d36cc24577d1c0103097a5c0f86f8060edj Shttps://github.com/palantir/atlasdb/commit/afc579d36cc24577d1c0103097a5c0f86f8060edu}(j (a22f5c5cdd00985e3f129884654c1fe4b6e70e2bjՉ ^https://api.github.com/repos/palantir/atlasdb/commits/a22f5c5cdd00985e3f129884654c1fe4b6e70e2bj Shttps://github.com/palantir/atlasdb/commit/a22f5c5cdd00985e3f129884654c1fe4b6e70e2buestats}(totalKd	additionsK	deletionsKcufiles](}(j (f5acd046834792f42b2401b67305dfa6f3509572filenamebuild.gradlestatusmodifiedj# Kj$ KchangesKblob_url^https://github.com/palantir/atlasdb/blob/15d37d234ee87597aecc994b05a58827bd9ffaa6/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/15d37d234ee87597aecc994b05a58827bd9ffaa6/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=15d37d234ee87597aecc994b05a58827bd9ffaa6patchXw  @@ -17,7 +17,7 @@ buildscript {
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.33.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.34.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.22.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
         classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.4'u}(j (b5f796ab3477670b4547dbda5fd7b6989458a0fcj) Ilock-impl/src/main/java/com/palantir/lock/logger/LockStateYamlWriter.javaj+ removedj# K j$ Kbj- Kbj. https://github.com/palantir/atlasdb/blob/afc579d36cc24577d1c0103097a5c0f86f8060ed/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockStateYamlWriter.javaj0 https://github.com/palantir/atlasdb/raw/afc579d36cc24577d1c0103097a5c0f86f8060ed/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockStateYamlWriter.javaj2 https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockStateYamlWriter.java?ref=afc579d36cc24577d1c0103097a5c0f86f8060edj4 X
  @@ -1,98 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.lock.logger;
-
-import com.palantir.lock.LockDescriptor;
-import java.io.Closeable;
-import java.io.File;
-import java.io.IOException;
-import java.io.Writer;
-import java.nio.charset.StandardCharsets;
-import java.nio.file.Files;
-import java.nio.file.StandardOpenOption;
-import org.yaml.snakeyaml.DumperOptions;
-import org.yaml.snakeyaml.Yaml;
-import org.yaml.snakeyaml.nodes.Tag;
-import org.yaml.snakeyaml.representer.Representer;
-
-/**
- * A simple wrapper for writing lock state as YAML to a file.
- */
-class LockStateYamlWriter implements Closeable {
-    private static final Yaml yaml = new Yaml(getRepresenter(), getDumperOptions());
-
-    private final Writer writer;
-
-    LockStateYamlWriter(Writer fileWriter) {
-        this.writer = fileWriter;
-    }
-
-    /**
-     * Creates a LockStateYamlWriter for the given file in append mode.
-     */
-    public static LockStateYamlWriter create(File file) throws IOException {
-        return new LockStateYamlWriter(Files.newBufferedWriter(
-                file.toPath(), StandardCharsets.UTF_8, StandardOpenOption.CREATE, StandardOpenOption.APPEND));
-    }
-
-    /**
-     * Write an object to the file as YAML.
-     */
-    public void dumpObject(Object data) {
-        yaml.dump(data, writer);
-    }
-
-    /**
-     * Write a string to the file as a YAML comment.
-     * The string must be a single line.
-     */
-    public void appendComment(String string) throws IOException {
-        writer.append("# ");
-        writer.append(string);
-        writer.append("\n");
-    }
-
-    private static Representer getRepresenter() {
-        Representer representer = new LockDescriptorAwareRepresenter();
-        representer.addClassTag(ImmutableSimpleTokenInfo.class, Tag.MAP);
-        representer.addClassTag(ImmutableSimpleLockRequest.class, Tag.MAP);
-        representer.addClassTag(ImmutableSanitizedLockRequestProgress.class, Tag.MAP);
-        representer.addClassTag(SimpleLockRequestsWithSameDescriptor.class, Tag.MAP);
-        representer.addClassTag(LockDescriptor.class, Tag.MAP);
-        return representer;
-    }
-
-    private static DumperOptions getDumperOptions() {
-        DumperOptions options = new DumperOptions();
-        options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
-        options.setIndent(4);
-        options.setAllowReadOnlyProperties(true);
-        options.setExplicitStart(true);
-        return options;
-    }
-
-    @Override
-    public void close() throws IOException {
-        writer.close();
-    }
-
-    private static class LockDescriptorAwareRepresenter extends Representer {
-        LockDescriptorAwareRepresenter() {
-            super();
-            this.representers.put(LockDescriptor.class, data -> representScalar(Tag.STR, data.toString()));
-        }
-    }
-}ueu(aef1df380da9e86eacbad569d751f863fa149ac6}(sha(aef1df380da9e86eacbad569d751f863fa149ac6node_idEC_kwDOAjP5fdoAKGFlZjFkZjM4MGRhOWU4NmVhY2JhZDU2OWQ3NTFmODYzZmExNDlhYzYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-08-03T10:10:00Zu	committer}(jH Jeremy KongjJ jkong@palantir.comjL 2023-08-03T10:10:00Zumessage
contiguoustree}(j@ (bdafa2268b2a46ba8aa5a2fe30df9a9294269544url`https://api.github.com/repos/palantir/atlasdb/git/trees/bdafa2268b2a46ba8aa5a2fe30df9a9294269544ujX bhttps://api.github.com/repos/palantir/atlasdb/git/commits/aef1df380da9e86eacbad569d751f863fa149ac6
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmTLfPgACgkQTLdFKain
zjwWhAgAjoOR0aFVuFE7oVQi4jcHwgsdiqX2ZdFtC0weReUUR3HQUwMRDbhse//n
cKb27pkvrM3xI4TdaKcZnEW1Qb/vi3KlGuyY3EAzj9lvqpBGDhHkEhAkN7PpgBw7
msu/YX2ECJTuWu8GFhkNHry7rsGFgxemB6pwvH1h5y36pagpczKKeNmN7D/REZF9
F+hFyLfjUzHpbk3oyeY4BclICrD6Su6mzEiWCsHJYjLRSx7lGDVx151LO2cnkR4V
WntMOlNoVugdjOzwzLOE2XdrP49q6dDsaCA/0mEH/saiD9uqok+oksSsrxEFG042
KHH+7QucKNRB4IwOhuMJ7LyB6HrNnw==
=HObI
-----END PGP SIGNATURE-----payloadtree bdafa2268b2a46ba8aa5a2fe30df9a9294269544
parent a2df32a5c8430028d68c99e5a6a54294375ed779
author Jeremy Kong <jkong@palantir.com> 1691057400 +0100
committer Jeremy Kong <jkong@palantir.com> 1691057400 +0100

contiguous
uujX ^https://api.github.com/repos/palantir/atlasdb/commits/aef1df380da9e86eacbad569d751f863fa149ac6html_urlShttps://github.com/palantir/atlasdb/commit/aef1df380da9e86eacbad569d751f863fa149ac6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/aef1df380da9e86eacbad569d751f863fa149ac6/commentsjF }(login
jeremyk-91idJZ jB MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jX 'https://api.github.com/users/jeremyk-91jf https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujN }(jk 
jeremyk-91jm JZ jB MDQ6VXNlcjU5NTU1MTA=jo 3https://avatars.githubusercontent.com/u/5955510?v=4jq h5jX 'https://api.github.com/users/jeremyk-91jf https://github.com/jeremyk-91jt 1https://api.github.com/users/jeremyk-91/followersjv >https://api.github.com/users/jeremyk-91/following{/other_user}jx 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jz >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j| 5https://api.github.com/users/jeremyk-91/subscriptionsj~ ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j@ (a2df32a5c8430028d68c99e5a6a54294375ed779jX ^https://api.github.com/repos/palantir/atlasdb/commits/a2df32a5c8430028d68c99e5a6a54294375ed779jf Shttps://github.com/palantir/atlasdb/commit/a2df32a5c8430028d68c99e5a6a54294375ed779uastats}(totalM8	additionsM	deletionsK'ufiles](}(j@ (3a7b29f03a23248c5901dc5bad276d42e8cd60ccfilenameZatlasdb-api/src/main/java/com/palantir/atlasdb/contiguous/ArbitraryContiguityCheckers.javastatusaddedj K*j K changesK*blob_urlhttps://github.com/palantir/atlasdb/blob/aef1df380da9e86eacbad569d751f863fa149ac6/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontiguous%2FArbitraryContiguityCheckers.javaraw_urlhttps://github.com/palantir/atlasdb/raw/aef1df380da9e86eacbad569d751f863fa149ac6/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontiguous%2FArbitraryContiguityCheckers.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontiguous%2FArbitraryContiguityCheckers.java?ref=aef1df380da9e86eacbad569d751f863fa149ac6patchXh  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.contiguous;
+
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import java.util.List;
+import java.util.SortedMap;
+
+public final class ArbitraryContiguityCheckers {
+    public enum CellChecker implements ContiguityChecker<Cell> {
+        INSTANCE;
+
+        @Override
+        public boolean checkContiguityAndUpdateLastSeen(Cell element) {
+            return false;
+        }
+
+        @Override
+        public boolean checkContiguityAndUpdateLastSeen(List<Cell> elements) {
+            return false;
+        }
+
+        @Override
+        public <T2> boolean checkContiguityAndUpdateLastSeen(SortedMap<Cell, T2> iterator) {
+            return false;
+        }
+    }
+}u}(j@ (c9d8245ce622579ab5c3edc703259df29a7d658aj Patlasdb-api/src/main/java/com/palantir/atlasdb/contiguous/ContiguityChecker.javaj addedj K,j K j K,j https://github.com/palantir/atlasdb/blob/aef1df380da9e86eacbad569d751f863fa149ac6/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontiguous%2FContiguityChecker.javaj https://github.com/palantir/atlasdb/raw/aef1df380da9e86eacbad569d751f863fa149ac6/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontiguous%2FContiguityChecker.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontiguous%2FContiguityChecker.java?ref=aef1df380da9e86eacbad569d751f863fa149ac6j X5  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.contiguous;
+
+import java.util.List;
+import java.util.SortedMap;
+
+/**
+ * A class that validates that a given value, or set of values, is contiguous. This can accept values one at a time.
+ * <p>
+ * The assumption made by the contiguity checker is that the maximal previously seen element IS sufficient to determine
+ * contiguity. In particular, using the domain of integers and the conventional definition of contiguity, the following
+ * are expected:
+ * <p>
+ * checkContiguityAndUpdateLastSeen(5); // true
+ * checkContiguityAndUpdateLastSeen(6, 8); // false: 7 is missing
+ * checkContiguityAndUpdateLastSeen(9, 10); // true: this is contiguous wrt 8
+ * checkContiguityAndUpdateLastSeen(7): // false: while 7 is now present, this is awkward
+ */
+public interface ContiguityChecker<T> {
+    // TODO (jkong): Support varargs and related variants
+    // TODO (jkong): Support primitives
+
+    boolean checkContiguityAndUpdateLastSeen(T element);
+
+    // Precondition: elements is sorted
+    boolean checkContiguityAndUpdateLastSeen(List<T> elements);
+
+    <T2> boolean checkContiguityAndUpdateLastSeen(SortedMap<T, T2> map);
+}u}(j@ (3774a817663745d978cd3f666438bf79d9183b81j Watlasdb-api/src/main/java/com/palantir/atlasdb/contiguous/GenericContiguityChecker.javaj addedj KKj K j KKj https://github.com/palantir/atlasdb/blob/aef1df380da9e86eacbad569d751f863fa149ac6/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontiguous%2FGenericContiguityChecker.javaj https://github.com/palantir/atlasdb/raw/aef1df380da9e86eacbad569d751f863fa149ac6/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontiguous%2FGenericContiguityChecker.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontiguous%2FGenericContiguityChecker.java?ref=aef1df380da9e86eacbad569d751f863fa149ac6j X  @@ -0,0 +1,75 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.contiguous;
+
+import com.palantir.logsafe.Preconditions;
+import java.util.List;
+import java.util.SortedMap;
+import java.util.concurrent.atomic.AtomicReference;
+import java.util.function.BiFunction;
+import java.util.function.BiPredicate;
+import java.util.function.BinaryOperator;
+
+public class GenericContiguityChecker<T> implements ContiguityChecker<T> {
+    private final AtomicReference<T> upperBound;
+
+    private final BinaryOperator<T> mergeFunction;
+    private final BiPredicate<T, T> isFirstJustBelowSecond;
+    private final BiFunction<T, Integer, T> additionFunction;
+
+    public GenericContiguityChecker(
+            T initialValue,
+            BinaryOperator<T> mergeFunction,
+            BiPredicate<T, T> isFirstJustBelowSecond,
+            BiFunction<T, Integer, T> additionFunction) {
+        this.upperBound = new AtomicReference<>(initialValue);
+        this.mergeFunction = mergeFunction;
+        this.isFirstJustBelowSecond = isFirstJustBelowSecond;
+        this.additionFunction = additionFunction;
+    }
+
+    @Override
+    public boolean checkContiguityAndUpdateLastSeen(T element) {
+        T previousValue = upperBound.getAndAccumulate(element, mergeFunction);
+        if (previousValue == null) {
+            return false;
+        }
+        return isFirstJustBelowSecond.test(previousValue, element);
+    }
+
+    @Override
+    public boolean checkContiguityAndUpdateLastSeen(List<T> elements) {
+        Preconditions.checkState(!elements.isEmpty(), "Cannot check contiguity of an empty list");
+        T previousValue = upperBound.getAndAccumulate(elements.get(elements.size() - 1), mergeFunction);
+        return listIsContiguous(elements) && isFirstJustBelowSecond.test(elements.get(0), previousValue);
+    }
+
+    @Override
+    public <T2> boolean checkContiguityAndUpdateLastSeen(SortedMap<T, T2> map) {
+        Preconditions.checkState(!map.isEmpty(), "Cannot check contiguity of an empty map");
+        T previousValue = upperBound.getAndAccumulate(map.lastKey(), mergeFunction);
+        return mapIsContiguous(map) && isFirstJustBelowSecond.test(map.firstKey(), previousValue);
+    }
+
+    private boolean listIsContiguous(List<T> elements) {
+        return additionFunction.apply(elements.get(0), elements.size() - 1).equals(elements.get(elements.size() - 1));
+    }
+
+    private <T2> boolean mapIsContiguous(SortedMap<T, T2> map) {
+        return additionFunction.apply(map.firstKey(), map.size() - 1).equals(map.lastKey());
+    }
+}u}(j@ (7fb49f0bdc6adad98de695753b9f837ee42c123ej Watlasdb-api/src/main/java/com/palantir/atlasdb/contiguous/IntegerContiguityChecker.javaj addedj K+j K j K+j https://github.com/palantir/atlasdb/blob/aef1df380da9e86eacbad569d751f863fa149ac6/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontiguous%2FIntegerContiguityChecker.javaj https://github.com/palantir/atlasdb/raw/aef1df380da9e86eacbad569d751f863fa149ac6/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontiguous%2FIntegerContiguityChecker.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontiguous%2FIntegerContiguityChecker.java?ref=aef1df380da9e86eacbad569d751f863fa149ac6j XH  @@ -0,0 +1,43 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.contiguous;
+
+import java.util.List;
+import java.util.SortedMap;
+
+public class IntegerContiguityChecker implements ContiguityChecker<Integer> {
+    private final GenericContiguityChecker<Integer> delegate;
+
+    public IntegerContiguityChecker(int initialValue) {
+        this.delegate = new GenericContiguityChecker<>(initialValue, Math::max, (a, b) -> a + 1 == b, Integer::sum);
+    }
+
+    @Override
+    public boolean checkContiguityAndUpdateLastSeen(Integer element) {
+        return delegate.checkContiguityAndUpdateLastSeen(element);
+    }
+
+    @Override
+    public boolean checkContiguityAndUpdateLastSeen(List<Integer> elements) {
+        return delegate.checkContiguityAndUpdateLastSeen(elements);
+    }
+
+    @Override
+    public <T2> boolean checkContiguityAndUpdateLastSeen(SortedMap<Integer, T2> map) {
+        return delegate.checkContiguityAndUpdateLastSeen(map);
+    }
+}u}(j@ (f861a3f6344fbe0e54cd855e76b92298cd4f772dj Oatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/Transaction.javaj modifiedj K&j Kj K?j https://github.com/palantir/atlasdb/blob/aef1df380da9e86eacbad569d751f863fa149ac6/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javaj https://github.com/palantir/atlasdb/raw/aef1df380da9e86eacbad569d751f863fa149ac6/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.java?ref=aef1df380da9e86eacbad569d751f863fa149ac6j X0  @@ -16,6 +16,7 @@
 package com.palantir.atlasdb.transaction.api;
 
 import com.google.common.util.concurrent.ListenableFuture;
+import com.palantir.atlasdb.contiguous.ContiguityChecker;
 import com.palantir.atlasdb.keyvalue.api.BatchColumnRangeSelection;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection;
@@ -36,11 +37,11 @@
 
 /**
  * Provides the methods for a transaction with the key-value store.
- *
+ * <p>
  * In general: users may assume that if maps (including sorted maps) keyed on byte[] are returned to the user,
  * they may be accessed via any byte array that is equivalent in terms of
  * {@link java.util.Arrays#equals(byte[], byte[])}.
- *
+ * <p>
  * Throughout this class, methods that return structures that may not perform all of their loading upfront (batching
  * visitables, iterables, streams and futures, for instance) _must_ be used strictly within the scope of the
  * transaction. Concretely, this means that results must be retrieved before exiting the transaction - in the case of
@@ -55,10 +56,10 @@ public interface Transaction {
      * Returns a mapping of rows to {@link RowResult}s within {@code tableRef} for the specified {@code rows}, loading
      * columns according to the provided {@link ColumnSelection}. Duplicate rows are permitted (but there will be just
      * one key-value pair for that row in the returned {@link NavigableMap}).
-     *
+     * <p>
      * The returned {@link NavigableMap} is sorted on the byte order of row keys; the ordering of the input parameter
      * {@code rows} is irrelevant.
-     *
+     * <p>
      * If there are rows with no cells matching the provided {@link ColumnSelection}, they will not be present in the
      * {@link Map#keySet()} of the output map at all. This accounts for writes and deletes done in this transaction:
      * a row written to in this transaction will be present, and a row which is deleted in this transaction will be
@@ -77,13 +78,13 @@ NavigableMap<byte[], RowResult<byte[]>> getRows(
      * Returns a mapping of requested {@code rows} to corresponding columns from the queried table.
      * Only columns matching the provided predicate will be returned, and the single predicate provided applies across
      * all of the rows. Users should provide unique rows: behaviour is undefined if this is not the case.
-     *
+     * <p>
      * The returned {@link BatchingVisitable}s are guaranteed to return cells matching the predicate. These are sorted
      * by column on byte ordering.
-     *
+     * <p>
      * It is guaranteed that the {@link Map#keySet()} of the returned map has a corresponding element for each of the
      * input {@code rows}, even if there are rows where no columns match the predicate.
-     *
+     * <p>
      * Batching visitables must be used strictly within the scope of the transaction.
      *
      * @param tableRef table to load values from
@@ -99,13 +100,13 @@ Map<byte[], BatchingVisitable<Map.Entry<Cell, byte[]>>> getRowsColumnRange(
      * Returns a single iterator over the cell-value pairs in {@code tableRef} for the specified {@code rows}, where the
      * columns fall within the provided {@link ColumnRangeSelection}. The single provided {@link ColumnRangeSelection}
      * applies to all of the rows.
-     *
+     * <p>
      * The returned iterator is guaranteed to return cell-value pairs in a lexicographic ordering over rows and columns
      * where rows are sorted according to the provided {@code rows} {@link Iterable} and then columns on byte ordering.
      * If the {@link Iterable} does not have a stable ordering (i.e. iteration order can change across iterators
      * returned) then the returned iterator is sorted lexicographically with columns sorted on byte ordering, but
      * the ordering of rows is undefined.
-     *
+     * <p>
      * Iterators must be used strictly within the scope of the transaction.
      *
      * @param tableRef table to load values from
@@ -123,13 +124,13 @@ Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
      * Returns a mapping of rows to {@link Iterator}s over cell-value pairs within {@code tableRef} for the specified
      * {@code rows}, where the columns fall within the provided {@link BatchColumnRangeSelection}. The single provided
      * {@link BatchColumnRangeSelection} applies to all of the rows.
-     *
+     * <p>
      * The returned iterators are guaranteed to return cells matching the predicate. These are sorted by column on
      * byte ordering.
-     *
+     * <p>
      * It is guaranteed that the {@link Map#keySet()} of the returned map has a corresponding element for each of the
      * input {@code rows}, even if there are rows where no columns match the predicate.
-     *
+     * <p>
      * Iterators must be used strictly within the scope of the transaction.
      *
      * @param tableRef table to load values from
@@ -147,14 +148,14 @@ Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator(
      * columns fall within the provided  {@link BatchColumnRangeSelection}.The single provided
      * {@link BatchColumnRangeSelection} applies to all of the rows. The cells for a row appear exactly once even if
      * the same row is included multiple times in {@code rows}.
-     *
+     * <p>
      * The returned iterator is guaranteed to contain cells sorted first in lexicographical order of column on byte
      * ordering, then in order of row, where rows are sorted according to the provided {@code rows} {@link Iterable}.
      * If the {@link Iterable} does not have a stable ordering (i.e. iteration order can change across iterators
      * returned) then the returned iterator is sorted lexicographically with columns sorted on byte ordering, but the
      * ordering of rows is undefined. In case of duplicate rows, the ordering is based on the first occurrence of
      * the row.
-     *
+     * <p>
      * Iterators must be used strictly within the scope of the transaction.
      *
      * @param tableRef table to load values from
@@ -165,6 +166,7 @@ Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator(
     @Idempotent
     Iterator<Map.Entry<Cell, byte[]>> getSortedColumns(
             TableReference tableRef, Iterable<byte[]> rows, BatchColumnRangeSelection batchColumnRangeSelection);
+
     /**
      * Gets the values associated for each cell in {@code cells} from table specified by {@code tableRef}.
      *
@@ -178,7 +180,7 @@ Iterator<Map.Entry<Cell, byte[]>> getSortedColumns(
     /**
      * Gets the values associated for each cell in {@code cells} from table specified by {@code tableRef}. It is not
      * guaranteed that the actual implementations are in fact asynchronous.
-     *
+     * <p>
      * The future must be used strictly within the scope of the transaction.
      *
      * @param tableRef the table from which to get the values
@@ -190,7 +192,7 @@ Iterator<Map.Entry<Cell, byte[]>> getSortedColumns(
 
     /**
      * Creates a visitable that scans the provided range.
-     *
+     * <p>
      * Batching visitables must be used strictly within the scope of the transaction.
      *
      * @param tableRef the table to scan
@@ -200,14 +202,22 @@ Iterator<Map.Entry<Cell, byte[]>> getSortedColumns(
     @Idempotent
     BatchingVisitable<RowResult<byte[]>> getRange(TableReference tableRef, RangeRequest rangeRequest);
 
+    /**
+     * See {@link #getRange(TableReference, RangeRequest)}.
+     * Additionally takes in a domain, that may allow for optimisations
+     */
+    @Idempotent
+    BatchingVisitable<RowResult<byte[]>> getRange(
+            TableReference tableRef, RangeRequest rangeRequest, ContiguityChecker<Cell> contiguityChecker);
+
     /**
      * Creates a visitable that scans the provided range.
      * <p>
      * To get good performance out of this method, it is important to specify
      * the batch hint in each RangeRequest. If this isn't done then this method may do more work
      * than you need and will be slower than it needs to be.  If the batchHint isn't specified it
      * will default to 1 for the first page in each range.
-     *
+     * <p>
      * Batching visitables must be used strictly within the scope of the transaction.
      *
      * @deprecated Should use either {@link #getRanges(TableReference, Iterable, int, BiFunction)} or
@@ -222,10 +232,10 @@ Iterable<BatchingVisitable<RowResult<byte[]>>> getRanges(
     /**
      * Creates unvisited visitables that scan the provided ranges and then applies the provided visitableProcessor
      * function with concurrency specified by the concurrencyLevel parameter.
-     *
+     * <p>
      * It is guaranteed that the range requests seen by the provided visitable processor are equal to the provided
      * iterable of range requests, though no guarantees are made on the order they are encountered in.
-     *
+     * <p>
      * Streams must be read within the scope of the transaction.
      */
     @Idempotent
@@ -255,7 +265,7 @@ <T> Stream<T> getRanges(
     /**
      * Returns visitibles that scan the provided ranges. This does no pre-fetching so visiting the resulting
      * visitibles will incur database reads on first access.
-     *
+     * <p>
      * Streams and visitables must be read within the scope of this transaction.
      */
     @Idempotent
@@ -265,6 +275,7 @@ Stream<BatchingVisitable<RowResult<byte[]>>> getRangesLazy(
     /**
      * Puts values into the key-value store. If you put a null or the empty byte array, then
      * this is treated like a delete to the store.
+     *
      * @param tableRef the table into which to put the values
      * @param values the values to append to the table
      */
@@ -273,6 +284,7 @@ Stream<BatchingVisitable<RowResult<byte[]>>> getRangesLazy(
 
     /**
      * Deletes values from the key-value store.
+     *
      * @param tableRef the table from which to delete the values
      * @param keys the set of cells to delete from the store
      */
@@ -298,7 +310,7 @@ enum TransactionType {
         /**
          * In addition to queuing cells for "scrubbing", we also:
          * - (a) Scrub earlier than we would have otherwise, even at the cost of possibly
-         *       causing open transactions to abort, and
+         * causing open transactions to abort, and
          * - (b) Block until the scrub is complete.
          */
         AGGRESSIVE_HARD_DELETE
@@ -322,6 +334,7 @@ enum TransactionType {
      * <p>
      * NOTE: only cell-level conflicts are detected.  If another transaction writes to the same row
      * but a different cell, then no conflict occurs.
+     *
      * @throws TransactionConflictException if this transaction had a conflict with another running transaction
      * @throws TransactionCommitFailedException if this transaction failed at commit time.  If this exception
      * is thrown, then this transaction may have been committed, but most likely not.
@@ -344,7 +357,7 @@ enum TransactionType {
      * Gets whether the transaction has not been committed.
      *
      * @return <code>true</code> if neither <code>commit()</code> or <code>abort()</code> have been called,
-     *         otherwise <code>false</code>
+     * otherwise <code>false</code>
      */
     @Idempotent
     boolean isUncommitted();
@@ -368,10 +381,10 @@ enum TransactionType {
 
     /**
      * Registers a callback that will be called after the AtlasDB client perceives a successful commit of a transaction.
-     *
+     * <p>
      * We guarantee that if the provided callback runs, the transaction has definitely committed successfully.
      * The converse is NOT true: it is possible that the callback is NOT called even if the transaction was successful.
-     *
+     * <p>
      * The semantics of callbacks are as follows:
      * <ul>
      *     <li>Callbacks must be registered before a transaction commits or aborts; registration of a callback once
@@ -387,7 +400,7 @@ enum TransactionType {
 
     /**
      * Disables read-write conflict checking for this table for the duration of this transaction only.
-     *
+     * <p>
      * This method should be called before any reads are done on this table.
      */
     @Idempotentu}(j@ (1800ea2f1346d9a57411cdebe06cab105485980fj `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj modifiedj Kj Kj K-j https://github.com/palantir/atlasdb/blob/aef1df380da9e86eacbad569d751f863fa149ac6/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://github.com/palantir/atlasdb/raw/aef1df380da9e86eacbad569d751f863fa149ac6/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=aef1df380da9e86eacbad569d751f863fa149ac6j X  @@ -54,6 +54,8 @@
 import com.palantir.atlasdb.AtlasDbPerformanceConstants;
 import com.palantir.atlasdb.cache.TimestampCache;
 import com.palantir.atlasdb.cleaner.api.Cleaner;
+import com.palantir.atlasdb.contiguous.ArbitraryContiguityCheckers;
+import com.palantir.atlasdb.contiguous.ContiguityChecker;
 import com.palantir.atlasdb.debug.ConflictTracer;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.futures.AtlasFutures;
@@ -296,7 +298,7 @@ private enum State {
 
     /**
      * @param immutableTimestamp If we find a row written before the immutableTimestamp we don't need to grab a read
-     *                           lock for it because we know that no writers exist.
+     * lock for it because we know that no writers exist.
      * @param preCommitCondition This check must pass for this transaction to commit.
      */
     /* package */ SnapshotTransaction(
@@ -601,7 +603,7 @@ private Iterator<Map.Entry<Cell, byte[]>> getSortedColumnsLocalWrites(
     /**
      * Provides comparator to sort cells by columns (sorted lexicographically on byte ordering) and then in the order
      * of input rows.
-     * */
+     */
     @VisibleForTesting
     static Comparator<Cell> columnOrderThenPreserveInputRowOrder(Iterable<byte[]> rows) {
         return Cell.COLUMN_COMPARATOR.thenComparing(
@@ -622,7 +624,7 @@ protected static <V> Iterator<Map.Entry<Cell, V>> mergeByComparator(
      * possibility of needing a second batch of fetching.
      * If the batch hint is large, split batch size across rows to avoid loading too much data, while accepting that
      * second fetches may be needed to get everyone their data.
-     * */
+     */
     private static int getPerRowBatchSize(BatchColumnRangeSelection columnRangeSelection, int distinctRowCount) {
         return Math.max(
                 Math.min(MIN_BATCH_SIZE_FOR_DISTRIBUTED_LOAD, columnRangeSelection.getBatchHint()),
@@ -712,7 +714,10 @@ private ClosableIterator<Map.Entry<Cell, byte[]>> getRowColumnRangePostFiltered(
             TableReference tableRef,
             byte[] row,
             BatchColumnRangeSelection columnRangeSelection,
-            RowColumnRangeIterator rawIterator) {
+            RowColumnRangeIterator rawIterator
+            //        Supplier<ContiguityChecker> contiguityChecker
+            // TODO (jkong): AAAAAA
+            ) {
         ColumnRangeBatchProvider batchProvider =
                 new ColumnRangeBatchProvider(keyValueService, tableRef, row, columnRangeSelection, getStartTimestamp());
         return GetRowsColumnRangeIterator.iterator(
@@ -1234,13 +1239,19 @@ private List<Map.Entry<Cell, byte[]>> getPostFilteredWithLocalWrites(
 
     @Override
     public BatchingVisitable<RowResult<byte[]>> getRange(final TableReference tableRef, final RangeRequest range) {
+        return getRange(tableRef, range, ArbitraryContiguityCheckers.CellChecker.INSTANCE);
+    }
+
+    @Override
+    public BatchingVisitable<RowResult<byte[]>> getRange(
+            final TableReference tableRef, final RangeRequest range, ContiguityChecker<Cell> contiguityChecker) {
         checkGetPreconditions(tableRef);
         if (range.isEmptyRange()) {
             return BatchingVisitables.emptyBatchingVisitable();
         }
         hasReads = true;
 
-        return new AbstractBatchingVisitable<RowResult<byte[]>>() {
+        return new AbstractBatchingVisitable<>() {
             @Override
             public <K extends Exception> void batchAcceptSizeHint(
                     int userRequestedSize, ConsistentVisitor<RowResult<byte[]>, K> visitor) throws K {
@@ -1250,7 +1261,8 @@ public <K extends Exception> void batchAcceptSizeHint(
                 int preFilterBatchSize = getRequestHintToKvStore(requestSize);
 
                 Preconditions.checkArgument(!range.isReverse(), "we currently do not support reverse ranges");
-                getBatchingVisitableFromIterator(tableRef, range, requestSize, visitor, preFilterBatchSize);
+                getBatchingVisitableFromIterator(
+                        tableRef, range, requestSize, visitor, preFilterBatchSize, contiguityChecker);
             }
         };
     }
@@ -1260,10 +1272,11 @@ private <K extends Exception> boolean getBatchingVisitableFromIterator(
             RangeRequest range,
             int userRequestedSize,
             AbortingVisitor<List<RowResult<byte[]>>, K> visitor,
-            int preFilterBatchSize)
+            int preFilterBatchSize,
+            ContiguityChecker<Cell> contiguityChecker)
             throws K {
         try (ClosableIterator<RowResult<byte[]>> postFilterIterator =
-                postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
+                postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE, contiguityChecker)) {
             Iterator<RowResult<byte[]>> localWritesInRange = Cells.createRowView(getLocalWritesForRange(
                             tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
                     .entrySet());
@@ -1351,7 +1364,11 @@ private List<Map.Entry<Cell, byte[]>> postFilterEmptyValues(
 
     @MustBeClosed
     protected <T> ClosableIterator<RowResult<T>> postFilterIterator(
-            TableReference tableRef, RangeRequest range, int preFilterBatchSize, Function<Value, T> transformer) {
+            TableReference tableRef,
+            RangeRequest range,
+            int preFilterBatchSize,
+            Function<Value, T> transformer,
+            ContiguityChecker<Cell> contiguityChecker) {
         RowRangeBatchProvider batchProvider =
                 new RowRangeBatchProvider(keyValueService, tableRef, range, getStartTimestamp());
         BatchSizeIncreasingIterator<RowResult<Value>> results =
@@ -1365,8 +1382,8 @@ protected Iterator<RowResult<T>> computeNext() {
                 }
                 SortedMap<Cell, T> postFilter = postFilterRows(tableRef, batch, transformer);
 
-                // can't skip lock checks for range scans
-                validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
+                boolean contiguous = contiguityChecker.checkContiguityAndUpdateLastSeen(postFilter);
+                validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), contiguous);
                 results.markNumResultsNotDeleted(
                         Cells.getRows(postFilter.keySet()).size());
                 return Cells.createRowView(postFilter.entrySet());
@@ -1384,7 +1401,7 @@ private ConcurrentNavigableMap<Cell, byte[]> getLocalWrites(TableReference table
 
     /**
      * This includes deleted writes as zero length byte arrays, be sure to strip them out.
-     *
+     * <p>
      * For the selectedColumns parameter, empty set means all columns. This is unfortunate, but follows the semantics of
      * {@link RangeRequest}.
      */
@@ -1903,7 +1920,7 @@ private boolean isStillRunning() {
 
     /**
      * Returns true iff the transaction is known to have successfully committed.
-     *
+     * <p>
      * Be careful when using this method! A transaction that the client thinks has failed could actually have
      * committed as far as the key-value service is concerned.
      */
@@ -2578,7 +2595,7 @@ private LongLongMap getCommitTimestampsSync(
     /**
      * This will attempt to put the commitTimestamp into the DB.
      *
-     * @throws TransactionLockTimeoutException  If our locks timed out while trying to commit.
+     * @throws TransactionLockTimeoutException If our locks timed out while trying to commit.
      * @throws TransactionCommitFailedException failed when committing in a way that isn't retriable
      */
     private void putCommitTimestamp(long commitTimestamp, LockToken locksToken, TransactionService transactionService)ueu(04c86b1a6b40ebe2df1f608633fc7c13ca0913ef}(sha(04c86b1a6b40ebe2df1f608633fc7c13ca0913efnode_idEC_kwDOAjP5fdoAKDA0Yzg2YjFhNmI0MGViZTJkZjFmNjA4NjMzZmM3YzEzY2EwOTEzZWYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-15T16:16:47Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-05-15T16:16:47Zumessageaddress nitstree}(jߊ (eff43976ff8c62459dc462a137fff2bb573d2f32url`https://api.github.com/repos/palantir/atlasdb/git/trees/eff43976ff8c62459dc462a137fff2bb573d2f32uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/04c86b1a6b40ebe2df1f608633fc7c13ca0913ef
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRiWu8ACgkQmPPOpKR4
XS0ZAAf8Cp2V1I7hyHGSZTOeXNbP0ChHO2QA/zDpU7IREJ8T2QXuUJkvVCes7nfT
JWVaUo9VVNoTpEQZEmhJ+itT6Yg4itHSOIa2qB8RKPLXcw4lQebg2VZCXaN53y/U
/tlp3T+2OxJwicNRHwp7R13oeZFXSn1cc2UG46APukp4AqxKaPnSBNZ5E9okuK1I
5+GXcO7+SuJpZfp73vb21UYS0EKtxMyyPWmG66Y7s8pCb0S0lBLUjHm5NweLeXsJ
KScnpM2sl7HJc7Y9ilP77LKuZde34/UhHuWIZQ905Ox6ULqpaiNAigB0Ix2VRHQY
aqZ3xZ2eBofHVtirTL+Mnt3+Goh8xw==
=gcKa
-----END PGP SIGNATURE-----payloadtree eff43976ff8c62459dc462a137fff2bb573d2f32
parent 6e4a93441f8d84038498a7ec94ef654240d006fa
author Sam Kramer <skramer@palantir.com> 1684167407 +0100
committer Sam Kramer <skramer@palantir.com> 1684167407 +0100

address nits
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/04c86b1a6b40ebe2df1f608633fc7c13ca0913efhtml_urlShttps://github.com/palantir/atlasdb/commit/04c86b1a6b40ebe2df1f608633fc7c13ca0913efcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/04c86b1a6b40ebe2df1f608633fc7c13ca0913ef/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j
 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj! 8https://api.github.com/users/Sam-Kramer/events{/privacy}j# 7https://api.github.com/users/Sam-Kramer/received_eventsj% Userj' uparents]}(jߊ (6e4a93441f8d84038498a7ec94ef654240d006faj ^https://api.github.com/repos/palantir/atlasdb/commits/6e4a93441f8d84038498a7ec94ef654240d006faj Shttps://github.com/palantir/atlasdb/commit/6e4a93441f8d84038498a7ec94ef654240d006fauastats}(totalK9	additionsK3	deletionsKufiles](}(jߊ (6463ef4cae6415ef59ea2385d2536160312d5b42filenamematlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javastatusmodifiedjA KjB KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/04c86b1a6b40ebe2df1f608633fc7c13ca0913ef/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/04c86b1a6b40ebe2df1f608633fc7c13ca0913ef/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=04c86b1a6b40ebe2df1f608633fc7c13ca0913efpatchXm  @@ -43,6 +43,9 @@
 
 public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory<InteractiveTransactionStore> {
 
+    // Purposefully override the lock refresh interval to increase our chances of losing locks.
+    private static final int LOCK_REFRESH_INTERVAL_MS = 100;
+
     private final TransactionManager transactionManager;
     private final Optional<Namespace> maybeNamespace;
 
@@ -140,8 +143,8 @@ public static AtlasDbTransactionStoreFactory createFromConfig(
                 .globalMetricsRegistry(metricsManager.getRegistry())
                 .globalTaggedMetricRegistry(metricsManager.getTaggedRegistry())
                 .runtimeConfigSupplier(atlasDbRuntimeConfig)
-                .defaultTimelockClientFactory(
-                        lockService -> TimeLockClient.createDefault(UnreliableTimeLockService.create(lockService), 100))
+                .defaultTimelockClientFactory(lockService -> TimeLockClient.createDefault(
+                        UnreliableTimeLockService.create(lockService), LOCK_REFRESH_INTERVAL_MS))
                 .build()
                 .serializable();
 u}(jߊ (14f288dccbdaf6346102248e874e454b2c3aae58jG Nlock-api/src/main/java/com/palantir/lock/client/UnreliableTimeLockService.javajI modifiedjA KjB KjK KjL https://github.com/palantir/atlasdb/blob/04c86b1a6b40ebe2df1f608633fc7c13ca0913ef/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javajN https://github.com/palantir/atlasdb/raw/04c86b1a6b40ebe2df1f608633fc7c13ca0913ef/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javajP https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.java?ref=04c86b1a6b40ebe2df1f608633fc7c13ca0913efjR X  @@ -95,7 +95,7 @@ public long getImmutableTimestamp() {
     @Override
     public LockResponse lock(LockRequest request) {
         LockResponse response = delegate.lock(request);
-        buggify.maybe(0.25).run(() -> {
+        buggify.maybe(0.05).run(() -> {
             log.info("BUGGIFY: Unlocking lock token {} after acquiring", SafeArg.of("token", response.getToken()));
             delegate.unlock(Set.of(response.getToken()));
         });
@@ -105,7 +105,7 @@ public LockResponse lock(LockRequest request) {
     @Override
     public LockResponse lock(LockRequest lockRequest, ClientLockingOptions options) {
         LockResponse response = delegate.lock(lockRequest, options);
-        buggify.maybe(0.25).run(() -> {
+        buggify.maybe(0.05).run(() -> {
             log.info("BUGGIFY: Unlocking lock token {} after acquiring", SafeArg.of("token", response.getToken()));
             delegate.unlock(Set.of(response.getToken()));
         });
@@ -120,12 +120,12 @@ public WaitForLocksResponse waitForLocks(WaitForLocksRequest request) {
     @Override
     public Set<LockToken> refreshLockLeases(Set<LockToken> tokens) {
         Set<LockToken> tokensToRefresh = tokens.stream()
-                .filter(_token -> !buggify.maybe(0.10).asBoolean())
+                .filter(_token -> !buggify.maybe(0.025).asBoolean())
                 .collect(Collectors.toSet());
         Set<LockToken> tokensToUnlock = Sets.difference(tokens, tokensToRefresh);
         if (!tokensToUnlock.isEmpty()) {
             log.info("BUGGIFY: Unlocking tokens on refresh: {}", SafeArg.of("tokens", tokensToUnlock));
-            unlock(tokensToUnlock);
+            delegate.unlock(tokensToUnlock);
         }
         return delegate.refreshLockLeases(tokensToRefresh);
     }u     }(jߊ (fcb51a9d2957bb45c95e4bf848d1dd2da8eb2547jG Qlock-api/src/test/java/com/palantir/lock/client/UnreliableTimelockClientTest.javajI modifiedjA K*jB K jK K*jL https://github.com/palantir/atlasdb/blob/04c86b1a6b40ebe2df1f608633fc7c13ca0913ef/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimelockClientTest.javajN https://github.com/palantir/atlasdb/raw/04c86b1a6b40ebe2df1f608633fc7c13ca0913ef/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimelockClientTest.javajP https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimelockClientTest.java?ref=04c86b1a6b40ebe2df1f608633fc7c13ca0913efjR X  @@ -16,15 +16,24 @@
 
 package com.palantir.lock.client;
 
+import static org.mockito.ArgumentMatchers.anyDouble;
+import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
 
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggify;
+import com.palantir.atlasdb.buggify.impl.NoOpBuggify;
 import com.palantir.atlasdb.buggify.impl.NoOpBuggifyFactory;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.StringLockDescriptor;
 import com.palantir.lock.v2.ClientLockingOptions;
 import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.v2.WaitForLocksRequest;
+import java.util.LinkedHashSet;
+import java.util.List;
 import java.util.Set;
 import java.util.UUID;
 import org.junit.Before;
@@ -37,6 +46,8 @@
 public final class UnreliableTimelockClientTest {
 
     private static final LockToken LOCK_TOKEN = LockToken.of(UUID.fromString("00000000-0000-0000-0000-000000000000"));
+
+    private static final LockToken LOCK_TOKEN_2 = LockToken.of(UUID.fromString("00000000-0000-0000-0000-000000000001"));
     private static final LockDescriptor LOCK_DESCRIPTOR = StringLockDescriptor.of("foo");
     private static final LockRequest LOCK_REQUEST = LockRequest.of(Set.of(LOCK_DESCRIPTOR), 1);
 
@@ -98,6 +109,21 @@ public void verifyLockCallsDelegate() {
         verify(timeLockClient).lock(LOCK_REQUEST);
     }
 
+    @Test
+    public void lockMayUnlockImmediately() {
+        when(timeLockClient.lock(LOCK_REQUEST)).thenReturn(LockResponse.successful(LOCK_TOKEN));
+        new UnreliableTimeLockService(timeLockClient, createAlwaysBuggyFactory()).lock(LOCK_REQUEST);
+        verify(timeLockClient).unlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void lockWithOptionMayUnlockImmediately() {
+        ClientLockingOptions lockingOptions = ClientLockingOptions.getDefault();
+        when(timeLockClient.lock(LOCK_REQUEST, lockingOptions)).thenReturn(LockResponse.successful(LOCK_TOKEN));
+        new UnreliableTimeLockService(timeLockClient, createAlwaysBuggyFactory()).lock(LOCK_REQUEST, lockingOptions);
+        verify(timeLockClient).unlock(Set.of(LOCK_TOKEN));
+    }
+
     @Test
     public void verifyLockWithOptionsCallsDelegate() {
         unreliableTimeLockService.lock(LOCK_REQUEST, ClientLockingOptions.getDefault());
@@ -111,6 +137,16 @@ public void verifyWaitForLocksCallsDelegate() {
         verify(timeLockClient).waitForLocks(waitForLocksRequest);
     }
 
+    @Test
+    public void refreshLockLeasesMaybeUnlocksLocks() {
+        BuggifyFactory factory = mock(BuggifyFactory.class);
+        when(factory.maybe(anyDouble())).thenReturn(DefaultBuggify.INSTANCE, NoOpBuggify.INSTANCE);
+        new UnreliableTimeLockService(timeLockClient, factory)
+                .refreshLockLeases(new LinkedHashSet<>(List.of(LOCK_TOKEN, LOCK_TOKEN_2)));
+        verify(timeLockClient).refreshLockLeases(Set.of(LOCK_TOKEN_2));
+        verify(timeLockClient).unlock(Set.of(LOCK_TOKEN));
+    }
+
     @Test
     public void verifyRefreshLockLeasesCallsDelegate() {
         unreliableTimeLockService.refreshLockLeases(Set.of(LOCK_TOKEN));
@@ -134,4 +170,10 @@ public void verifyCurrentTimeMillisCallsDelegate() {
         unreliableTimeLockService.currentTimeMillis();
         verify(timeLockClient).currentTimeMillis();
     }
+
+    private static BuggifyFactory createAlwaysBuggyFactory() {
+        BuggifyFactory factory = mock(BuggifyFactory.class);
+        when(factory.maybe(anyDouble())).thenReturn(DefaultBuggify.INSTANCE);
+        return factory;
+    }
 }ueu(b48b80fc886b4054e26e30b37c1280ecfa2d2a93}(sha(b48b80fc886b4054e26e30b37c1280ecfa2d2a93node_idEC_kwDOAjP5fdoAKGI0OGI4MGZjODg2YjQwNTRlMjZlMzBiMzdjMTI4MGVjZmEyZDJhOTMcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-04-06T17:47:21Zu	committer}(jn GitHubjp noreply@github.comjr 2023-04-06T17:47:21ZumessageFix bug in workload server when failing to fetch commit timestamp due to network errors (#6510)

Obtain commit timestamp from the transaction itself to be resilient to network failures after a transaction has been witnessed.tree}(jf (cc193636a73de32d1bc0f648fd4970dee14d7a6aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/cc193636a73de32d1bc0f648fd4970dee14d7a6auj~ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b48b80fc886b4054e26e30b37c1280ecfa2d2a93
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkLwWpCRBK7hj4Ov3rIwAA3pgIAJmwS9ceBQUqwhGK9AiT4b3C
sgiGaziSqEmADSWJu3tG/Bn0HE0k4asp+Ktogh+m7qB8NsCKC/OM+f1UpnFGAuUG
rldz3vkKEdNVx7OBRAcJOyj3MH5UaLgC9nyQJXYJLFMbv1Jzbo9nk/vIrMnq/ohk
RHOCcLqfbf+T/R39k3Rv8f+5my5uLE1+09MwzCX45Ixcwtsi1Eoi+THI93KOIqOF
CwGwzQSFJ00bTp7x4R8XhjFvv4M1WWpdDLFJ7hk7uXErR+jUs7rJ651XnDnp5Qmo
QByELvEFSegI/pV4ybt6NDFKl3CWNlRv/qB8WMYfQ6NA2eAIMmXrCMkK6psASeo=
=6kIB
-----END PGP SIGNATURE-----
payloadX  tree cc193636a73de32d1bc0f648fd4970dee14d7a6a
parent 8b467ad037b64131e76cac81d375e860a142dcbf
author Sam-Kramer <sam.c.kramer@gmail.com> 1680803241 +0100
committer GitHub <noreply@github.com> 1680803241 +0000

Fix bug in workload server when failing to fetch commit timestamp due to network errors (#6510)

Obtain commit timestamp from the transaction itself to be resilient to network failures after a transaction has been witnessed. 
uuj~ ^https://api.github.com/repos/palantir/atlasdb/commits/b48b80fc886b4054e26e30b37c1280ecfa2d2a93html_urlShttps://github.com/palantir/atlasdb/commit/b48b80fc886b4054e26e30b37c1280ecfa2d2a93comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b48b80fc886b4054e26e30b37c1280ecfa2d2a93/commentsjl }(login
Sam-KrameridJ^2_ jh MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j~ 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujt }(j web-flowj J/jh MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j~ %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(jf (8b467ad037b64131e76cac81d375e860a142dcbfj~ ^https://api.github.com/repos/palantir/atlasdb/commits/8b467ad037b64131e76cac81d375e860a142dcbfj Shttps://github.com/palantir/atlasdb/commit/8b467ad037b64131e76cac81d375e860a142dcbfuastats}(totalK}	additionsKd	deletionsKufiles](}(jf (c55d1d862a932c01521fd1fbf3812e8a3a91dd9bfilenamefatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javastatusmodifiedjȋ K0jɋ KchangesKBblob_urlhttps://github.com/palantir/atlasdb/blob/b48b80fc886b4054e26e30b37c1280ecfa2d2a93/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b48b80fc886b4054e26e30b37c1280ecfa2d2a93/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=b48b80fc886b4054e26e30b37c1280ecfa2d2a93patchX  @@ -16,12 +16,14 @@
 
 package com.palantir.atlasdb.workload.store;
 
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.base.Suppliers;
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.PreCommitCondition;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
-import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
@@ -33,6 +35,7 @@
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
@@ -41,7 +44,9 @@
 import java.util.Set;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.function.Function;
+import java.util.function.Supplier;
 import java.util.stream.Collectors;
+import javax.annotation.concurrent.NotThreadSafe;
 import one.util.streamex.EntryStream;
 
 public final class AtlasDbTransactionStore implements TransactionStore {
@@ -68,27 +73,29 @@ public Optional<Integer> get(String table, WorkloadCell cell) {
 
     @Override
     public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
-        AtomicReference<Long> startTimestampReference = new AtomicReference<>();
         AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
+        Supplier<CommitTimestampProvider> commitTimestampProvider =
+                Suppliers.memoize(() -> new CommitTimestampProvider());
         try {
-            transactionManager.runTaskWithRetry(txn -> {
-                AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
-                startTimestampReference.set(txn.getTimestamp());
-                witnessedActionsReference.set(actions.stream()
-                        .sequential()
-                        .map(action -> action.accept(visitor))
-                        .collect(Collectors.toList()));
-                return null;
-            });
-
-            TransactionStatus status =
-                    transactionManager.getTransactionService().getV2(startTimestampReference.get());
-
-            Optional<Long> commitTimestamp = TransactionStatus.getCommitTimestamp(status);
+            Transaction transaction =
+                    transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
+                        AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
+                        witnessedActionsReference.set(actions.stream()
+                                .sequential()
+                                .map(action -> action.accept(visitor))
+                                .collect(Collectors.toList()));
+                        return txn;
+                    });
+
+            if (transaction.isAborted()) {
+                return Optional.empty();
+            }
 
             return Optional.of(ImmutableWitnessedTransaction.builder()
-                    .startTimestamp(startTimestampReference.get())
-                    .commitTimestamp(commitTimestamp)
+                    .startTimestamp(transaction.getTimestamp())
+                    .commitTimestamp(commitTimestampProvider
+                            .get()
+                            .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
                     .actions(witnessedActionsReference.get())
                     .build());
         } catch (SafeIllegalArgumentException e) {
@@ -158,4 +165,27 @@ public static AtlasDbTransactionStore create(
                 .toMap();
         return new AtlasDbTransactionStore(transactionManager, tableMapping);
     }
+
+    @VisibleForTesting
+    @NotThreadSafe
+    static final class CommitTimestampProvider implements PreCommitCondition {
+
+        private Optional<Long> maybeCommitOrStartTimestamp = Optional.empty();
+
+        @Override
+        public void throwIfConditionInvalid(long timestamp) {
+            maybeCommitOrStartTimestamp = Optional.of(timestamp);
+        }
+
+        public Optional<Long> getCommitTimestampOrThrowIfMaybeNotCommitted(long startTimestamp) {
+            long commitOrStartTimestamp = maybeCommitOrStartTimestamp.orElseThrow(() -> new SafeIllegalStateException(
+                    "Timestamp has not been set, which means the pre commit condition has never been executed,"
+                            + " thus the transaction never committed."));
+            if (startTimestamp == commitOrStartTimestamp) {
+                return Optional.empty();
+            }
+
+            return Optional.of(commitOrStartTimestamp);
+        }
+    }
 }u}(jf (7a6977bbe99192a8d37661df68d682abb474eb87j΋ jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javajЋ modifiedjȋ K4jɋ Kjҋ K;jӋ https://github.com/palantir/atlasdb/blob/b48b80fc886b4054e26e30b37c1280ecfa2d2a93/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajՋ https://github.com/palantir/atlasdb/raw/b48b80fc886b4054e26e30b37c1280ecfa2d2a93/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj׋ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=b48b80fc886b4054e26e30b37c1280ecfa2d2a93jً Xz  @@ -27,14 +27,19 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
 
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore.CommitTimestampProvider;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
@@ -45,30 +50,35 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
+import java.util.function.Supplier;
 import java.util.stream.Collectors;
 import org.junit.Before;
 import org.junit.Test;
 
 public final class AtlasDbTransactionStoreTest {
 
+    private static final long START_TS = 1;
+    private static final long COMMIT_TS = 2;
+
+    private static final Map<TableReference, byte[]> TABLES = Map.of(
+            TABLE_REFERENCE,
+            AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
+            INDEX_REFERENCE,
+            AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE));
+
     private TransactionManager manager;
 
     private AtlasDbTransactionStore store;
 
     @Before
     public void before() {
         manager = TransactionManagers.createInMemory(Set.of());
-        store = AtlasDbTransactionStore.create(
-                manager,
-                Map.of(
-                        TABLE_REFERENCE,
-                        AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
-                        INDEX_REFERENCE,
-                        AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE)));
+        store = AtlasDbTransactionStore.create(manager, TABLES);
     }
 
     @Test
@@ -145,4 +155,39 @@ public void readWriteHandlesReadOnlyTransaction() {
         assertThat(witnessedTransaction).isPresent();
         assertThat(witnessedTransaction.get().commitTimestamp()).isEmpty();
     }
+
+    @Test
+    public void abortedTransactionsReturnEmpty() {
+        TransactionManager onlyAbortsManager = spy(manager);
+        Transaction abortedTransaction = mock(Transaction.class);
+        when(abortedTransaction.isAborted()).thenReturn(true);
+        doReturn(abortedTransaction).when(onlyAbortsManager).runTaskWithConditionWithRetry(any(Supplier.class), any());
+        AtlasDbTransactionStore onlyAbortsStore = AtlasDbTransactionStore.create(onlyAbortsManager, TABLES);
+        assertThat(onlyAbortsStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+                .isEmpty();
+    }
+
+    @Test
+    public void getCommitTimestampIsEmptyWhenMatchesStartTimestamp() {
+        CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();
+        commitTimestampProvider.throwIfConditionInvalid(START_TS);
+        assertThat(commitTimestampProvider.getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .isEmpty();
+    }
+
+    @Test
+    public void getCommitTimestampThrowsWhenNoTimestampSet() {
+        assertThatThrownBy(() -> new CommitTimestampProvider().getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining(
+                        "Timestamp has not been set, which means the pre commit condition has never been executed");
+    }
+
+    @Test
+    public void getCommitTimestampReturnsPresentWhenCommitAndStartTimestampMismatch() {
+        CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();
+        commitTimestampProvider.throwIfConditionInvalid(COMMIT_TS);
+        assertThat(commitTimestampProvider.getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .hasValue(COMMIT_TS);
+    }
 }ueu(b16f4be12004d603cfb885425c90b5d75b7edae2}(sha(b16f4be12004d603cfb885425c90b5d75b7edae2node_idEC_kwDOAjP5fdoAKGIxNmY0YmUxMjAwNGQ2MDNjZmI4ODU0MjVjOTBiNWQ3NWI3ZWRhZTIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-18T15:48:00Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-05-18T15:48:00Zumessage
CR feedback 2tree}(j (cd0dacbdb4d0ae0aa0cb37bf7d59d969b3b77495url`https://api.github.com/repos/palantir/atlasdb/git/trees/cd0dacbdb4d0ae0aa0cb37bf7d59d969b3b77495uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b16f4be12004d603cfb885425c90b5d75b7edae2
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRmSLAACgkQTLdFKain
zjz5xQf+MOFdwobBbDXK+pI8n+ngA4DzwVzxAnbkXJtudCQgAObmCkbWdV8cJZCf
cgGDSxshaNppOaZQZbzIOXbYuHtPMglTOX1vPnhnxU/KJwdIvYe3N6zkIYH4xUUN
wnClOKl57xCu66rK/Ako798tX+o5QEMQEe/HzzFTlQiIUIBpWyAr9vwmepHK+flE
B+PbCzb+r0YwSp3knkNxLQpWRnl3BSQn4r4n3z1Li2rVVxpdxkNBEhJBrk6t6fEG
nNgkgJ2Tk4g+5MxqqEj4kZc/0zdRn37/p7oDE1no4WNjWjBCtGvrtK/csk+YUPZd
tOzz6VVs8HNSO1DwtCO9BH6tt1o5gg==
=KHUx
-----END PGP SIGNATURE-----payloadtree cd0dacbdb4d0ae0aa0cb37bf7d59d969b3b77495
parent b32a4d0540cc4d431112716aefeac82a3e28a840
author Jeremy Kong <jkong@palantir.com> 1684424880 +0100
committer Jeremy Kong <jkong@palantir.com> 1684424880 +0100

CR feedback 2
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/b16f4be12004d603cfb885425c90b5d75b7edae2html_urlShttps://github.com/palantir/atlasdb/commit/b16f4be12004d603cfb885425c90b5d75b7edae2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b16f4be12004d603cfb885425c90b5d75b7edae2/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j! 5https://api.github.com/users/jeremyk-91/subscriptionsj# ,https://api.github.com/users/jeremyk-91/orgsj% -https://api.github.com/users/jeremyk-91/reposj' 8https://api.github.com/users/jeremyk-91/events{/privacy}j) 7https://api.github.com/users/jeremyk-91/received_eventsj+ Userj- uparents]}(j (b32a4d0540cc4d431112716aefeac82a3e28a840j ^https://api.github.com/repos/palantir/atlasdb/commits/b32a4d0540cc4d431112716aefeac82a3e28a840j Shttps://github.com/palantir/atlasdb/commit/b32a4d0540cc4d431112716aefeac82a3e28a840uastats}(totalK/	additionsK!	deletionsKufiles]}(j (6b758e1f6ea5dd02e6ab75fce0a2f349ef99c2a0filenamelatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javastatusmodifiedjG K!jH KchangesK/blob_urlhttps://github.com/palantir/atlasdb/blob/b16f4be12004d603cfb885425c90b5d75b7edae2/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b16f4be12004d603cfb885425c90b5d75b7edae2/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=b16f4be12004d603cfb885425c90b5d75b7edae2patchX5  @@ -43,8 +43,11 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.List;
 import java.util.Optional;
+import java.util.concurrent.atomic.AtomicReference;
 import java.util.function.Consumer;
 import java.util.stream.Collectors;
 import org.junit.Test;
@@ -117,20 +120,19 @@ public void subsequentTransactionsWriteThenReadThenDelete() {
 
     @Test
     public void invariantDoesNotReportViolationsUnderNormalOperation() {
-        Consumer<List<CrossCellInconsistency>> violationConsumer = mock(Consumer.class);
-        invariant.accept(transientRowsWorkflow.run(), violationConsumer);
-        verify(violationConsumer).accept(ImmutableList.of());
-        verifyNoMoreInteractions(violationConsumer);
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        invariant.accept(transientRowsWorkflow.run(), reference::set);
+        assertThat(reference.get()).isEmpty();
     }
 
     @Test
     public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
-        Consumer<List<CrossCellInconsistency>> violationConsumer = mock(Consumer.class);
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
         WorkflowHistory history = transientRowsWorkflow.run();
         transactionStore.readWrite(txn -> txn.delete(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 1, 1)));
-        invariant.accept(history, violationConsumer);
-        verify(violationConsumer)
-                .accept(ImmutableList.of(CrossCellInconsistency.builder()
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
                         .putInconsistentValues(
                                 TableAndWorkloadCell.of(
                                         TABLE_NAME,
@@ -143,20 +145,19 @@ public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
                                                 TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 1)),
                                 Optional.of(0))
                         .build()));
-        verifyNoMoreInteractions(violationConsumer);
     }
 
     @Test
     public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
-        Consumer<List<CrossCellInconsistency>> violationConsumer = mock(Consumer.class);
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
         WorkflowHistory history = transientRowsWorkflow.run();
         transactionStore.readWrite(txn -> txn.write(
                 TABLE_NAME,
                 ImmutableWorkloadCell.of(ITERATION_COUNT - 2, TransientRowsWorkflows.COLUMN),
                 TransientRowsWorkflows.VALUE));
-        invariant.accept(history, violationConsumer);
-        verify(violationConsumer)
-                .accept(ImmutableList.of(CrossCellInconsistency.builder()
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
                         .putInconsistentValues(
                                 TableAndWorkloadCell.of(
                                         TABLE_NAME,
@@ -169,7 +170,6 @@ public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
                                                 TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 2)),
                                 Optional.empty())
                         .build()));
-        verifyNoMoreInteractions(violationConsumer);
     }
 
     @SuppressWarnings("unchecked") // Mocking of a known type
@@ -210,4 +210,23 @@ private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent
             return action;
         }
     }
+
+    private static final class OnceSettableAtomicReference<T> {
+        private final AtomicReference<T> delegate;
+
+        private OnceSettableAtomicReference() {
+            this.delegate = new AtomicReference<>();
+        }
+
+        T get() {
+            return Preconditions.checkNotNull(delegate.get(), "Underlying atomic reference has not been set!");
+        }
+
+        void set(T value) {
+            Preconditions.checkNotNull(value, "Expecting values set to a once-settable atomic reference to be nonnull");
+            if (!delegate.compareAndSet(null, value)) {
+                throw new SafeIllegalStateException("Value already set");
+            }
+        }
+    }
 }uau(a10d5101c35b41effb446c1c54408bf4db62746e}(sha(a10d5101c35b41effb446c1c54408bf4db62746enode_idEC_kwDOAjP5fdoAKGExMGQ1MTAxYzM1YjQxZWZmYjQ0NmMxYzU0NDA4YmY0ZGI2Mjc0NmUcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2022-12-18T17:18:45Zu	committer}(jd David Schlosnaglejf davids@palantir.comjh 2023-05-20T16:53:04Zumessage$Refine cache load exception handlingtree}(j\ (b43575647a15b49db03908eefd1b326d9a4fd62eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/b43575647a15b49db03908eefd1b326d9a4fd62eujt bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a10d5101c35b41effb446c1c54408bf4db62746e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmRo+vAACgkQR9hsJ74Q
0l83gAf/XYDwhUrDPP6AN4v5feF5SEWE0gyNpqcmNen75f3RIP/NwToRi26DBg28
nkKrfaQ+DREYp+eRWlwE8IqSBE5lJzyyeuhijGtQsiofmg6l4Pwp1EqWXjNreYXN
D6exANAf3eG02uOjl5r2UXCEd6YqnIx1jg+Pm+Vj2Uo3ThWwdETXYqZFJ+FeLHYz
kNF1o9VmAhsr0K2JpfpGwHC3oG6Ra5wwqMpmFQaJh5KAuvTMrvvSSuq5oGIPjBYP
yhf3cQcyzF4yt8YJ5QDd7BPKSwP1HYQytEWjywfGT+x8mW5ENDZoTifMsqgxHBVM
mhLaX/3/U9vgpAWGpr+AXzLLn2ZgHQ==
=nEtA
-----END PGP SIGNATURE-----payloadX  tree b43575647a15b49db03908eefd1b326d9a4fd62e
parent d401692960c388c5b5c43b56e337a64ff540fd50
author David Schlosnagle <davids@palantir.com> 1671383925 -0500
committer David Schlosnagle <davids@palantir.com> 1684601584 -0400

Refine cache load exception handling
uujt ^https://api.github.com/repos/palantir/atlasdb/commits/a10d5101c35b41effb446c1c54408bf4db62746ehtml_urlShttps://github.com/palantir/atlasdb/commit/a10d5101c35b41effb446c1c54408bf4db62746ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a10d5101c35b41effb446c1c54408bf4db62746e/commentsjb }(loginschlosnaidMBj^ MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jt %https://api.github.com/users/schlosnaj https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujj }(j schlosnaj MBj^ MDQ6VXNlcjU0NTk0j 1https://avatars.githubusercontent.com/u/54594?v=4j h5jt %https://api.github.com/users/schlosnaj https://github.com/schlosnaj /https://api.github.com/users/schlosna/followersj <https://api.github.com/users/schlosna/following{/other_user}j 5https://api.github.com/users/schlosna/gists{/gist_id}j <https://api.github.com/users/schlosna/starred{/owner}{/repo}j 3https://api.github.com/users/schlosna/subscriptionsj *https://api.github.com/users/schlosna/orgsj +https://api.github.com/users/schlosna/reposj 6https://api.github.com/users/schlosna/events{/privacy}j 5https://api.github.com/users/schlosna/received_eventsj Userj uparents]}(j\ (d401692960c388c5b5c43b56e337a64ff540fd50jt ^https://api.github.com/repos/palantir/atlasdb/commits/d401692960c388c5b5c43b56e337a64ff540fd50j Shttps://github.com/palantir/atlasdb/commit/d401692960c388c5b5c43b56e337a64ff540fd50uastats}(totalK	additionsK	deletionsKufiles](}(j\ (7d30fe4fd283df55958201d1f120806d5611aa18filename^atlasdb-commons/src/main/java/com/palantir/common/exception/TableMappingNotFoundException.javastatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/a10d5101c35b41effb446c1c54408bf4db62746e/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fexception%2FTableMappingNotFoundException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a10d5101c35b41effb446c1c54408bf4db62746e/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fexception%2FTableMappingNotFoundException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fexception%2FTableMappingNotFoundException.java?ref=a10d5101c35b41effb446c1c54408bf4db62746epatchX  @@ -23,4 +23,8 @@ public TableMappingNotFoundException(String msg) {
     public TableMappingNotFoundException(Throwable cause) {
         super(cause);
     }
+
+    public TableMappingNotFoundException(String msg, Throwable cause) {
+        super(msg, cause);
+    }
 }u}(j\ (5ae1b103b3cc86213d6ae94812960a7d892efa6ejČ \atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/OracleTableNameUnmapper.javajƌ modifiedj Kj KjȌ KjɌ https://github.com/palantir/atlasdb/blob/a10d5101c35b41effb446c1c54408bf4db62746e/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapper.javajˌ https://github.com/palantir/atlasdb/raw/a10d5101c35b41effb446c1c54408bf4db62746e/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapper.javaj͌ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapper.java?ref=a10d5101c35b41effb446c1c54408bf4db62746ejό X  @@ -72,7 +72,10 @@ public String getShortTableNameFromMappingTable(
                 return Iterables.getOnlyElement(results.rows()).getString("short_table_name");
             });
         } catch (SafeIllegalStateException e) {
-            throw new TableMappingNotFoundException(e);
+            throw new TableMappingNotFoundException(
+                    "The table " + fullTableName
+                            + " does not have a mapping. This might be because the table does not exist.",
+                    e);
         }
     }
 u}(j\ (ac33fad35d76f1ceb079128628c94f48a6bb5693jČ `atlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/OracleTableNameUnmapperTest.javajƌ modifiedj Kj KjȌ KjɌ https://github.com/palantir/atlasdb/blob/a10d5101c35b41effb446c1c54408bf4db62746e/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javajˌ https://github.com/palantir/atlasdb/raw/a10d5101c35b41effb446c1c54408bf4db62746e/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javaj͌ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.java?ref=a10d5101c35b41effb446c1c54408bf4db62746ejό X  @@ -18,6 +18,7 @@
 import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
+import static org.assertj.core.api.InstanceOfAssertFactories.type;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.ArgumentMatchers.startsWith;
@@ -103,7 +104,16 @@ public void shouldThrowIfTableMappingDoesNotExist() {
         assertThatThrownBy(() -> oracleTableNameUnmapper.getShortTableNameFromMappingTable(
                         connectionSupplier, TEST_PREFIX, TABLE_REF))
                 .isInstanceOf(TableMappingNotFoundException.class)
-                .hasMessageContaining("The table a_test_namespace__ThisIsAVeryLongTableNameThatWillExceed");
+                .hasMessageContaining("The table a_test_namespace__ThisIsAVeryLongTableNameThatWillExceed")
+                .hasRootCauseInstanceOf(SafeIllegalStateException.class)
+                .rootCause()
+                .asInstanceOf(type(SafeIllegalStateException.class))
+                .extracting(SafeIllegalStateException::getArgs)
+                .satisfies(args -> assertThat(args)
+                        .hasSize(1)
+                        .first()
+                        .isEqualTo(
+                                UnsafeArg.of("tableName", "a_test_namespace__ThisIsAVeryLongTableNameThatWillExceed")));
     }
 
     @Testu}(j\ (ed0c8b2b67fd881994a89c56448b471760eee7f3jČ `atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitionerTest.javajƌ modifiedj Kj KjȌ KjɌ https://github.com/palantir/atlasdb/blob/a10d5101c35b41effb446c1c54408bf4db62746e/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javajˌ https://github.com/palantir/atlasdb/raw/a10d5101c35b41effb446c1c54408bf4db62746e/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj͌ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.java?ref=a10d5101c35b41effb446c1c54408bf4db62746ejό X  @@ -30,14 +30,14 @@
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.Iterables;
-import com.google.common.util.concurrent.UncheckedExecutionException;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.atlasdb.table.description.SweeperStrategy;
+import com.palantir.common.exception.PalantirRuntimeException;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
@@ -74,15 +74,16 @@ public void setup() {
     public void getStrategyThrowsForIllegalMetadata() {
         when(mockKvs.getMetadataForTable(any())).thenReturn(AtlasDbConstants.EMPTY_TABLE_METADATA);
         assertThatThrownBy(() -> partitioner.getStrategy(getWriteInfoWithFixedShard(getTableRef("a"), 0, numShards)))
-                .isInstanceOf(UncheckedExecutionException.class);
+                .isInstanceOf(PalantirRuntimeException.class)
+                .hasMessageContaining("Message missing required fields: rowName, columns, conflictHandler");
     }
 
     @Test
     public void getStrategyThrowsOnUncheckedException() {
         RuntimeException cause = new RuntimeException("cause");
         when(mockKvs.getMetadataForTable(any())).thenThrow(cause);
         assertThatThrownBy(() -> partitioner.getStrategy(getWriteInfoWithFixedShard(getTableRef("a"), 0, numShards)))
-                .isInstanceOf(UncheckedExecutionException.class)
+                .isInstanceOf(RuntimeException.class)
                 .hasCause(cause);
     }
 ueu(e5d54893a7237fa248f1ecf50ea55a8c95ee3a79}(sha(e5d54893a7237fa248f1ecf50ea55a8c95ee3a79node_idEC_kwDOAjP5fdoAKGU1ZDU0ODkzYTcyMzdmYTI0OGYxZWNmNTBlYTU1YThjOTVlZTNhNzkcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-05-09T16:49:59Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-05-09T16:49:59ZumessageAutorelease 0.850.0

[skip ci]tree}(j (0dc00a0298fdbcf692ece1e86841db1875764aa8url`https://api.github.com/repos/palantir/atlasdb/git/trees/0dc00a0298fdbcf692ece1e86841db1875764aa8uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e5d54893a7237fa248f1ecf50ea55a8c95ee3a79
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRaeb0ACgkQhbrR8ip7mDAftQD/a+s30nIkXWv9CRBzROBGrgFP
YL75HjGH1Dz3LeYF4GkA/RjshlIen+rJnrM7kb+qcXMp1ZbN0t1dXfjGgYW/Z6Ct
=fFxG
-----END PGP SIGNATURE-----
payloadX0  tree 0dc00a0298fdbcf692ece1e86841db1875764aa8
parent a99372c15352444226961a045b18ff8b409ad34d
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1683650999 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1683650999 +0000

Autorelease 0.850.0

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/e5d54893a7237fa248f1ecf50ea55a8c95ee3a79html_urlShttps://github.com/palantir/atlasdb/commit/e5d54893a7237fa248f1ecf50ea55a8c95ee3a79comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e5d54893a7237fa248f1ecf50ea55a8c95ee3a79/commentsj }(loginsvc-autoreleaseidJ(j MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(j MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj! Chttps://api.github.com/users/svc-autorelease/following{/other_user}j# <https://api.github.com/users/svc-autorelease/gists{/gist_id}j% Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j' :https://api.github.com/users/svc-autorelease/subscriptionsj) 1https://api.github.com/users/svc-autorelease/orgsj+ 2https://api.github.com/users/svc-autorelease/reposj- =https://api.github.com/users/svc-autorelease/events{/privacy}j/ <https://api.github.com/users/svc-autorelease/received_eventsj1 Userj3 uparents]}(j (a99372c15352444226961a045b18ff8b409ad34dj ^https://api.github.com/repos/palantir/atlasdb/commits/a99372c15352444226961a045b18ff8b409ad34dj Shttps://github.com/palantir/atlasdb/commit/a99372c15352444226961a045b18ff8b409ad34duastats}(totalK 	additionsK 	deletionsK ufiles]}(j (217d9399bdb068283f3ed607c705739151adc8eafilename changelog/0.850.0/pr-6563.v2.ymlstatusrenamedjM K jN K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/e5d54893a7237fa248f1ecf50ea55a8c95ee3a79/changelog%2F0.850.0%2Fpr-6563.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/e5d54893a7237fa248f1ecf50ea55a8c95ee3a79/changelog%2F0.850.0%2Fpr-6563.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.850.0%2Fpr-6563.v2.yml?ref=e5d54893a7237fa248f1ecf50ea55a8c95ee3a79previous_filename$changelog/@unreleased/pr-6563.v2.ymluau(4d59f10f1e745f7523e23a8b418b3a05074d7132}(sha(4d59f10f1e745f7523e23a8b418b3a05074d7132node_idEC_kwDOAjP5fdoAKDRkNTlmMTBmMWU3NDVmNzUyM2UyM2E4YjQxOGIzYTA1MDc0ZDcxMzIcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-28T22:53:08Zu	committer}(jj 
Ahmed Alouanejl aalouane@palantir.comjn 2023-04-28T22:53:08Zumessage	2.1 outchtree}(jb (68694846bc0087fbd04b67da118b1a7e5b68115durl`https://api.github.com/repos/palantir/atlasdb/git/trees/68694846bc0087fbd04b67da118b1a7e5b68115dujz bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4d59f10f1e745f7523e23a8b418b3a05074d7132
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRMTlQACgkQPlMHVIT1
yhqYNggAukCWB0czWH8xIVFov5LQzpCTwjZnmp3q48hQHedfTUe1BfXt/Np4fR40
f3RCwInQCvROIe+q56Uj1xOJDmSGlBh7Jvba9JhSEN92zqqIggeYBQWlG/+wi9/9
vjmZaKQp8cFE7PDTEN9q/91YE6HvfBljnVkH35sXiDt4pmulLG0HnWeltsR+35WL
TeJbDTsnx+S5egTJKapi3rm9Q/kbKIMNru0I53bJdjAK2w5ljWK4lOcUNhKQmnau
xUZioehvF0bkLN+aIS3odhldaBfX4s7k+hJdQCd1PRhuSSyzgbW3NNgv8+JPSMSe
bAOgQs2Wqj+5dNxaSIQ8smhwf84D8Q==
=a3sj
-----END PGP SIGNATURE-----payloadtree 68694846bc0087fbd04b67da118b1a7e5b68115d
parent 251d35ffeb7db5b8ec547f3b328bd780b4afeed9
author Ahmed Alouane <aalouane@palantir.com> 1682722388 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682722388 +0100

2.1 outch
uujz ^https://api.github.com/repos/palantir/atlasdb/commits/4d59f10f1e745f7523e23a8b418b3a05074d7132html_urlShttps://github.com/palantir/atlasdb/commit/4d59f10f1e745f7523e23a8b418b3a05074d7132comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4d59f10f1e745f7523e23a8b418b3a05074d7132/commentsjh }(loginergo14idJjd MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jz #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujp }(j ergo14j Jjd MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5jz #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jb (251d35ffeb7db5b8ec547f3b328bd780b4afeed9jz ^https://api.github.com/repos/palantir/atlasdb/commits/251d35ffeb7db5b8ec547f3b328bd780b4afeed9j Shttps://github.com/palantir/atlasdb/commit/251d35ffeb7db5b8ec547f3b328bd780b4afeed9uastats}(totalK	additionsK	deletionsKufiles]}(jb (bb1e948febcdfacfa449b896fb88d5fcfd4a26bafilename.circleci/config.ymlstatusmodifiedjč Kjō KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/4d59f10f1e745f7523e23a8b418b3a05074d7132/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/4d59f10f1e745f7523e23a8b418b3a05074d7132/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=4d59f10f1e745f7523e23a8b418b3a05074d7132patch@@ -1,4 +1,4 @@
-version: 2
+version: 2.1
 
 jobs:
   build:
@@ -130,7 +130,6 @@ jobs:
             fi
 
 workflows:
-  version: 2.1
   check:
     jobs:
       - build:uau(76431c54169c9ae9969c8c6de272bfd470d9c848}(sha(76431c54169c9ae9969c8c6de272bfd470d9c848node_idEC_kwDOAjP5fdoAKDc2NDMxYzU0MTY5YzlhZTk5NjljOGM2ZGUyNzJiZmQ0NzBkOWM4NDgcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-28T15:48:46Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-04-28T15:48:46Zumessagenowwtree}(jٍ (cf1efac82438e8d1b903e10e35626e9b1f556351url`https://api.github.com/repos/palantir/atlasdb/git/trees/cf1efac82438e8d1b903e10e35626e9b1f556351uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/76431c54169c9ae9969c8c6de272bfd470d9c848
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRL6t4ACgkQPlMHVIT1
yhq32gf8CCL+OD2c8X8/G3+v9oKz/hDZQjjJpK5+MFPtrKfl/MFT7SRvrzOdHta2
T8O3GUfaufkWmn8B0luEJypTwo37kKKEDWw1whcGULHGlBALIQkFZPzdo7OBorPX
dlRzqlmyfpKzL0US82saZla3MOVSllabN4CoqdlP+M8rZIJv6XdZB4uMrjTZqL16
QV7hI8NMq0JwzwqB8iNr3mIXsPjH84yRUV5Qq7s2WmPhtRZ2zDk1jROSZm5/iN5i
wsETrHaxApVMD8NSOex0PyGTWVMh87lTw425SzJyjameBTQYFeZgRcpPmYdzEtm4
5Ld6xGnUXd1OtogUA8BuOyorTQbLTA==
=tBei
-----END PGP SIGNATURE-----payloadtree cf1efac82438e8d1b903e10e35626e9b1f556351
parent b87d48c63a75474151199c4f338bdb8d383479be
author Ahmed Alouane <aalouane@palantir.com> 1682696926 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682696926 +0100

noww
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/76431c54169c9ae9969c8c6de272bfd470d9c848html_urlShttps://github.com/palantir/atlasdb/commit/76431c54169c9ae9969c8c6de272bfd470d9c848comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/76431c54169c9ae9969c8c6de272bfd470d9c848/commentsjߍ }(loginergo14idJjۍ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jjۍ MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j
 h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j
 -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj! uparents]}(jٍ (b87d48c63a75474151199c4f338bdb8d383479bej ^https://api.github.com/repos/palantir/atlasdb/commits/b87d48c63a75474151199c4f338bdb8d383479bej Shttps://github.com/palantir/atlasdb/commit/b87d48c63a75474151199c4f338bdb8d383479beuastats}(totalK		additionsK	deletionsKufiles]}(jٍ (fae2ce80f6ca7ec73754c705f375b334b8cb5c87filename%scripts/circle-ci/run-circle-tests.shstatusmodifiedj; Kj< KchangesK	blob_url{https://github.com/palantir/atlasdb/blob/76431c54169c9ae9969c8c6de272bfd470d9c848/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/76431c54169c9ae9969c8c6de272bfd470d9c848/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=76431c54169c9ae9969c8c6de272bfd470d9c848patchX  @@ -50,13 +50,6 @@ do
     CONTAINER_0_EXCLUDE_ARGS="$CONTAINER_0_EXCLUDE_ARGS -x $task"
 done
 
-echo "start"
-printenv CIRCLE_TAG
-printenv CIRCLE_BRANCH
-echo $CIRCLE_TAG
-echo $CIRCLE_BRANCH
-echo "end"
-
 # Short circuit the build if it's docs only
 if ./scripts/circle-ci/check-only-docs-changes.sh; then
     if [ $CIRCLE_NODE_INDEX -eq 0 ]; then
@@ -96,7 +89,7 @@ case $CIRCLE_NODE_INDEX in
     5) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_5[@]} ;;
     6) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_6[@]} ;;
     7) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_7[@]} ;;
-    8) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_8[@]} ;;
+    8) if [ "$CIRCLE_BRANCH" -eq "develop" ] || [ ! -z "$CIRCLE_TAG" ]; then ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_8[@]}; fi ;;
     9) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_9[@]} ;;
     10) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_10[@]} ;;
     11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} ;;uau(2026baad4ae1d5507c80764bd33d45941ead81f1}(sha(2026baad4ae1d5507c80764bd33d45941ead81f1node_idEC_kwDOAjP5fdoAKDIwMjZiYWFkNGFlMWQ1NTA3YzgwNzY0YmQzM2Q0NTk0MWVhZDgxZjEcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-06-27T14:28:06Zu	committer}(jX svc-autoreleasejZ -pd-foundry-infrastructure-notify@palantir.comj\ 2023-06-27T14:28:06Zumessage"Autorelease 0.879.0-rc2

[skip ci]tree}(jP (51bceacc0b636367056f005f23abc05b9c49142curl`https://api.github.com/repos/palantir/atlasdb/git/trees/51bceacc0b636367056f005f23abc05b9c49142cujh bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2026baad4ae1d5507c80764bd33d45941ead81f1
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmSa8fcACgkQhbrR8ip7mDDgtgD9FRe9mvedKdgPahOqdSBVv5gO
nY/67O1KlI80yUvoQR4BAKzTJAAYpILfaLQPua7jOdV1An2OET7agHPpa1ZDc1w0
=t3mK
-----END PGP SIGNATURE-----
payloadX  tree 51bceacc0b636367056f005f23abc05b9c49142c
parent afbbedbbe5961cc1af6f6e4e99ff6821eee4b70f
author Sam-Kramer <sam.c.kramer@gmail.com> 1687876086 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1687876086 +0000

Autorelease 0.879.0-rc2

[skip ci]uujh ^https://api.github.com/repos/palantir/atlasdb/commits/2026baad4ae1d5507c80764bd33d45941ead81f1html_urlShttps://github.com/palantir/atlasdb/commit/2026baad4ae1d5507c80764bd33d45941ead81f1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2026baad4ae1d5507c80764bd33d45941ead81f1/commentsjV }(login
Sam-KrameridJ^2_ jR MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jh 'https://api.github.com/users/Sam-Kramerjv https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj^ }(j{ svc-autoreleasej} J(jR MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5jh ,https://api.github.com/users/svc-autoreleasejv "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(jP (afbbedbbe5961cc1af6f6e4e99ff6821eee4b70fjh ^https://api.github.com/repos/palantir/atlasdb/commits/afbbedbbe5961cc1af6f6e4e99ff6821eee4b70fjv Shttps://github.com/palantir/atlasdb/commit/afbbedbbe5961cc1af6f6e4e99ff6821eee4b70fuastats}(totalK 	additionsK 	deletionsK ufiles]u(71be8834dabf9b1f15366bf61843f9e91705f0da}(sha(71be8834dabf9b1f15366bf61843f9e91705f0danode_idEC_kwDOAjP5fdoAKDcxYmU4ODM0ZGFiZjliMWYxNTM2NmJmNjE4NDNmOWU5MTcwNWYwZGEcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-07-24T14:39:08Zu	committer}(j GitHubj noreply@github.comjĎ 2023-07-24T14:39:08Zumessage"Excavator:  Prefer AssertJ (#6654)tree}(j (f7671d67fb6f100397ec1e33b78bec86d7b244d0url`https://api.github.com/repos/palantir/atlasdb/git/trees/f7671d67fb6f100397ec1e33b78bec86d7b244d0ujЎ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/71be8834dabf9b1f15366bf61843f9e91705f0da
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkvo0MCRBK7hj4Ov3rIwAAJQoIAI3h/d+Ed363XthxNenlrMiY
PgL+RJk0hhMe++VMIKBZvfHfwu0bEFQDbxPHW6MBML/lbu2oHSI4l2JkaMZwQBSq
O/WmbiLQbY3XykjaDfhTbwg5KLD1rTbV2sg8i7gDG/K64hETCRLsKnwmJACnMp+c
sXtF41w3W6H4iP8o0i5ZGtW2pvvwdh6Ao3U7Gd0TDlkGqEY/jJgk53Ggp9fEoUOM
7GVrLp6OxtKoNK9echHFePe561bwtLPKK/4wJGSdAiJLT3YiczeEeSi3dFFvzPTE
+NN+0LO2NCGGy2N4sAV4+XzDhFSGfYYRPHF1M6VvEcJFfn+bCPy2p5J5gonREzs=
=0scg
-----END PGP SIGNATURE-----
payloadX  tree f7671d67fb6f100397ec1e33b78bec86d7b244d0
parent bb8939d9a3b63cdb8db20d59ae344ac2e6d959f4
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1690209548 -0700
committer GitHub <noreply@github.com> 1690209548 +0000

Excavator:  Prefer AssertJ (#6654)

 uujЎ ^https://api.github.com/repos/palantir/atlasdb/commits/71be8834dabf9b1f15366bf61843f9e91705f0dahtml_urlShttps://github.com/palantir/atlasdb/commit/71be8834dabf9b1f15366bf61843f9e91705f0dacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/71be8834dabf9b1f15366bf61843f9e91705f0da/commentsj }(loginsvc-excavator-botidJj MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5jЎ .https://api.github.com/users/svc-excavator-botjގ $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminujƎ }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5jЎ %https://api.github.com/users/web-flowjގ https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj  uparents]}(j (bb8939d9a3b63cdb8db20d59ae344ac2e6d959f4jЎ ^https://api.github.com/repos/palantir/atlasdb/commits/bb8939d9a3b63cdb8db20d59ae344ac2e6d959f4jގ Shttps://github.com/palantir/atlasdb/commit/bb8939d9a3b63cdb8db20d59ae344ac2e6d959f4uastats}(totalK		additionsK	deletionsKufiles](}(j (9f0c7fbc486ed33c7d2e87d7bec15a60af80050bfilenameKatlasdb-commons/src/test/java/com/palantir/util/IndexEncodingUtilsTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/71be8834dabf9b1f15366bf61843f9e91705f0da/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/71be8834dabf9b1f15366bf61843f9e91705f0da/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.java?ref=71be8834dabf9b1f15366bf61843f9e91705f0dapatchX  @@ -78,7 +78,8 @@ public void cannotLookupUnknownChecksumType() {
 
     @Test
     public void canEncodeSimpleData() {
-        assertThat(createIndexEncoding().indexToValue()).isEqualTo(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
+        assertThat(createIndexEncoding().indexToValue())
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
     }
 
     @Testu}(j (a251b92eabd208ac88784e2fdc765f1f810ce9fbj  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj" modifiedj Kj Kj$ Kj% https://github.com/palantir/atlasdb/blob/71be8834dabf9b1f15366bf61843f9e91705f0da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj' https://github.com/palantir/atlasdb/raw/71be8834dabf9b1f15366bf61843f9e91705f0da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj) https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=71be8834dabf9b1f15366bf61843f9e91705f0daj+ Xx  @@ -130,7 +130,7 @@ public void allRelevantCellsAreRecordedForFullColumnScan() {
                         .isInstanceOfSatisfying(
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
-                                        .isEqualTo(IntStream.range(0, iterationCount)
+                                        .containsExactlyElementsOf(IntStream.range(0, iterationCount)
                                                 .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
                                                 .collect(Collectors.toList()))));
     }
@@ -158,7 +158,7 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
                         .isInstanceOfSatisfying(
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
-                                        .isEqualTo(IntStream.range(startInclusive, endExclusive)
+                                        .containsExactlyElementsOf(IntStream.range(startInclusive, endExclusive)
                                                 .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
                                                 .collect(Collectors.toList()))));
     }u      }(j (8662e0582f5aff3fdfa81d6e33ab22e4049363f9j  qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflowTest.javaj" modifiedj Kj Kj$ Kj% https://github.com/palantir/atlasdb/blob/71be8834dabf9b1f15366bf61843f9e91705f0da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javaj' https://github.com/palantir/atlasdb/raw/71be8834dabf9b1f15366bf61843f9e91705f0da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javaj) https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.java?ref=71be8834dabf9b1f15366bf61843f9e91705f0daj+ X  @@ -101,7 +101,7 @@ public void writesThenDeletes() {
 
         List<WitnessedTransaction> transactions = workflow.run().history();
 
-        assertThat(transactions.size()).isEqualTo(4);
+        assertThat(transactions).hasSize(4);
         assertWriteTransaction(transactions.get(0), 0);
         assertDeleteTransaction(transactions.get(1), 0);
         assertWriteTransaction(transactions.get(2), 1);ueu(290595f26484de4cf74c4838b95caa07cbd3fa7e}(sha(290595f26484de4cf74c4838b95caa07cbd3fa7enode_idEC_kwDOAjP5fdoAKDI5MDU5NWYyNjQ4NGRlNGNmNzRjNDgzOGI5NWNhYTA3Y2JkM2ZhN2Ucommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-07-25T21:23:30Zu	committer}(jG Tom PetraccajI tpetracca@palantir.comjK 2023-07-25T21:23:30Zumessageughtree}(j? (726acf5cb9f80e860def5942e108deaf1764e0c4url`https://api.github.com/repos/palantir/atlasdb/git/trees/726acf5cb9f80e860def5942e108deaf1764e0c4ujW bhttps://api.github.com/repos/palantir/atlasdb/git/commits/290595f26484de4cf74c4838b95caa07cbd3fa7e
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEHTC5rqjQ6qmsb7sZRnUGJaXvqFMFAmTAPVIACgkQRnUGJaXv
qFOGqggAose8n7Vrih+S6BzOY+e0cpRe30jSbrDdulsUrnEjOhgH+ncFutj9qnsb
rTYFtWZee+BN33+ZfoSKea4Uf4rn+YTEQ0rU0C/IrNR8lqFYgxKnMQlohshgft5p
2dwnOar/OYVn3KFZsGzNmJlJ82OPR/+2CnaCCWZq8l1h4W7vGTGXI8FCu3CZfo13
N0VIjkb3t9/Z3qGQpfAL9br3P+jXnVyhgLlCaMIDaoouoFoDR5Dorn3dvvcnWsfF
5Y35RCXzqTUEWEMSa1LUBsC7/jbWppjRTXSSBDjrJ0MOxnR216G2phD2aXzPiqCc
7iKSky8UWhbfIaziZWv/ZbBkN/OvuQ==
=SUao
-----END PGP SIGNATURE-----payloadtree 726acf5cb9f80e860def5942e108deaf1764e0c4
parent 6a59d90736361e4fb45e13537d26afef77238c6e
author Tom Petracca <tpetracca@palantir.com> 1690320210 -0400
committer Tom Petracca <tpetracca@palantir.com> 1690320210 -0400

ugh
uujW ^https://api.github.com/repos/palantir/atlasdb/commits/290595f26484de4cf74c4838b95caa07cbd3fa7ehtml_urlShttps://github.com/palantir/atlasdb/commit/290595f26484de4cf74c4838b95caa07cbd3fa7ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/290595f26484de4cf74c4838b95caa07cbd3fa7e/commentsjE }(login	tpetraccaidJ& jA MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5jW &https://api.github.com/users/tpetraccaje https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminujM }(jj 	tpetraccajl J& jA MDQ6VXNlcjI1NTQzMjg=jn 3https://avatars.githubusercontent.com/u/2554328?v=4jp h5jW &https://api.github.com/users/tpetraccaje https://github.com/tpetraccajs 0https://api.github.com/users/tpetracca/followersju =https://api.github.com/users/tpetracca/following{/other_user}jw 6https://api.github.com/users/tpetracca/gists{/gist_id}jy =https://api.github.com/users/tpetracca/starred{/owner}{/repo}j{ 4https://api.github.com/users/tpetracca/subscriptionsj} +https://api.github.com/users/tpetracca/orgsj ,https://api.github.com/users/tpetracca/reposj 7https://api.github.com/users/tpetracca/events{/privacy}j 6https://api.github.com/users/tpetracca/received_eventsj Userj uparents]}(j? (6a59d90736361e4fb45e13537d26afef77238c6ejW ^https://api.github.com/repos/palantir/atlasdb/commits/6a59d90736361e4fb45e13537d26afef77238c6eje Shttps://github.com/palantir/atlasdb/commit/6a59d90736361e4fb45e13537d26afef77238c6euastats}(totalK	additionsK	deletionsK ufiles]}(j? (ffbb5c04867b5b33f87ce3e13faa5560fd838447filenameatlasdb-ete-tests/build.gradlestatusmodifiedj Kj K changesKblob_urlrhttps://github.com/palantir/atlasdb/blob/290595f26484de4cf74c4838b95caa07cbd3fa7e/atlasdb-ete-tests%2Fbuild.gradleraw_urlqhttps://github.com/palantir/atlasdb/raw/290595f26484de4cf74c4838b95caa07cbd3fa7e/atlasdb-ete-tests%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fbuild.gradle?ref=290595f26484de4cf74c4838b95caa07cbd3fa7epatchX  @@ -105,33 +105,45 @@ task prepareForEteTests(type: Copy, dependsOn: 'distTar') {
 // is very expensive and so separate task is used to control when/where it is executed
 task timeLockMigrationTest(type: Test) {
     dependsOn prepareForEteTests, ':timelock-server-distribution:dockerTag'
+    include '**/*TimeLockMigration*.class'
+    /*
     filter {
         includeTestsMatching 'com.palantir.atlasdb.ete.TimeLockMigrationEteTest'
     }
+    */
 }
 
 // test suites with their own test tasks
 // not sure why some have it and others do not
 
 task singleClientWithEmbeddedAndThreeNodeCassandraTest(type: Test) {
     dependsOn prepareForEteTests
+    include '**/SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.class'
+    /*
     filter {
         includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite'
     }
+    */
 }
 
 task singleClientWithEmbeddedAndPostgresTest(type: Test) {
     dependsOn prepareForEteTests
+    include '**/SingleClientWithEmbeddedAndPostgresTestSuite.class'
+    /*
     filter {
         includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndPostgresTestSuite'
     }
+    */
 }
 
 task singleClientWithEmbeddedAndOracleTest(type: Test) {
     dependsOn prepareForEteTests
+    include '**/SingleClientWithEmbeddedAndOracleTestSuite.class'
+    /*
     filter {
         includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndOracleTestSuite'
     }
+    */
 }
 
 test {uau(e9caad876ededaaffdee33ff5eae046d49a0a387}(sha(e9caad876ededaaffdee33ff5eae046d49a0a387node_idEC_kwDOAjP5fdoAKGU5Y2FhZDg3NmVkZWRhYWZmZGVlMzNmZjVlYWUwNDZkNDlhMGEzODccommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-08T14:47:38Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-08T14:47:38Zumessagefail fast and don't continuetree}(j (5c73bb285c01d316e852fc2be0a68d3aac57d4fcurl`https://api.github.com/repos/palantir/atlasdb/git/trees/5c73bb285c01d316e852fc2be0a68d3aac57d4fcujΏ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e9caad876ededaaffdee33ff5eae046d49a0a387
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRZC4sACgkQPlMHVIT1
yhqpKQf/Q2ITi6vRd+Q6M77+ysvC+ZvYEOBCi9Q1LwBLqZ9mjQblOq/87VsNLCNC
KmKtLJLzhzI/D82CjKbSWndVBPgk+c3v0jtuiEz5VQzTAye5DKbXsysRR2QKOnxA
6n8Ssk7J39WkddYuE4Mboqi+cP8GloDAY3sQ3a7+R6wxbsQIMa/WXtYpUacgDmnQ
5huhQ1pNydc/p5raDSxcKDWRGrw+Um8C/sZW9TqJwNWsJG98PMmKA5m3HLsUe5RD
4GQHxBWjnY23cKFCagC7Yj2zXwBcyWwJ5hb12k0UbWZiY6T9+u3rE1C3wDSgGpfN
lCwYfYKM4qf3XJfQnDBsYclwWRfosQ==
=y0UX
-----END PGP SIGNATURE-----payloadtree 5c73bb285c01d316e852fc2be0a68d3aac57d4fc
parent 919d571f0de7222781745198478d0286c515df3b
author Ahmed Alouane <aalouane@palantir.com> 1683557258 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1683557258 +0100

fail fast and don't continue
uujΏ ^https://api.github.com/repos/palantir/atlasdb/commits/e9caad876ededaaffdee33ff5eae046d49a0a387html_urlShttps://github.com/palantir/atlasdb/commit/e9caad876ededaaffdee33ff5eae046d49a0a387comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e9caad876ededaaffdee33ff5eae046d49a0a387/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jΏ #https://api.github.com/users/ergo14j܏ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujď }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5jΏ #https://api.github.com/users/ergo14j܏ https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j (919d571f0de7222781745198478d0286c515df3bjΏ ^https://api.github.com/repos/palantir/atlasdb/commits/919d571f0de7222781745198478d0286c515df3bj܏ Shttps://github.com/palantir/atlasdb/commit/919d571f0de7222781745198478d0286c515df3buastats}(totalK	additionsK	deletionsKufiles](}(j (2caa47ac951f1248b2272f5652f42a85e858f016filenamegradle/shared.gradlestatusmodifiedj Kj K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/e9caad876ededaaffdee33ff5eae046d49a0a387/gradle%2Fshared.gradleraw_urlghttps://github.com/palantir/atlasdb/raw/e9caad876ededaaffdee33ff5eae046d49a0a387/gradle%2Fshared.gradlecontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fshared.gradle?ref=e9caad876ededaaffdee33ff5eae046d49a0a387patch@@ -88,6 +88,7 @@ afterEvaluate {
 
 tasks.withType(Test) {
     enableAssertions = true
+    failFast = true
 }
 
 ext.atlasdb_shaded = 'com.palantir.atlasdb.shaded.'u}(j (af1ac2a48067cb778eb31bcc6a9308c56522cceej %scripts/circle-ci/run-circle-tests.shj  modifiedj Kj Kj" Kj# {https://github.com/palantir/atlasdb/blob/e9caad876ededaaffdee33ff5eae046d49a0a387/scripts%2Fcircle-ci%2Frun-circle-tests.shj% zhttps://github.com/palantir/atlasdb/raw/e9caad876ededaaffdee33ff5eae046d49a0a387/scripts%2Fcircle-ci%2Frun-circle-tests.shj' https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=e9caad876ededaaffdee33ff5eae046d49a0a387j) @@ -2,7 +2,7 @@
 
 set -x
 
-BASE_GRADLE_ARGS="--profile --continue"
+BASE_GRADLE_ARGS="--profile"
 
 function checkDocsBuild {
      pyenv install 3.5.4ueu(6231fb35f9403dfcc7feef9a94c3c72ab87ff0aa}(sha(6231fb35f9403dfcc7feef9a94c3c72ab87ff0aanode_idEC_kwDOAjP5fdoAKDYyMzFmYjM1Zjk0MDNkZmNjN2ZlZWY5YTk0YzNjNzJhYjg3ZmYwYWEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-05T19:56:22Zu	committer}(j= Jeremy Kongj? jkong@palantir.comjA 2023-07-05T19:56:22ZumessageMsemantic merge conflicts are unfortunate and so are irresponsible resolutionstree}(j5 (020d696b51b915f6eeaca645f225a1c8c6a81ccaurl`https://api.github.com/repos/palantir/atlasdb/git/trees/020d696b51b915f6eeaca645f225a1c8c6a81ccaujM bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6231fb35f9403dfcc7feef9a94c3c72ab87ff0aa
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSlyuYACgkQTLdFKain
zjyupwf+IlRK398BgCWzUdgR37QDS1FCML7/VHmyyy9HJZmbIQF3+lC5XBGaXgDT
slCHxz4wOJp4ZeTLxMr2NoPzuKDfX3HGahINvm6guthREpCI0Dxl0jT6fV9gs+Cv
Txn0SwitiWNhY0wgrvlhoZ+aZdewSsAPiAjjXwiJDro1IvGk6QpHCiqxRaOq20lP
2YxbLIU5LP2+J6R2GNFUKgBmLF0ZLAGzz/QU7u+bXEJpxjq6Od1JhTeQEQ6MjlSo
NqQlaNmpOw4aLob9qpraRmLR2DgUvtWn29wTHUP3mhHX0UNzexOMLnD10qKHTbcp
qe17ZK7wTRNNJ22jcwvKtQblrcLfbg==
=ooAx
-----END PGP SIGNATURE-----payloadX"  tree 020d696b51b915f6eeaca645f225a1c8c6a81cca
parent 608d33074d19e9bb95a59dbc2886b2f22fd416d8
author Jeremy Kong <jkong@palantir.com> 1688586982 +0100
committer Jeremy Kong <jkong@palantir.com> 1688586982 +0100

semantic merge conflicts are unfortunate and so are irresponsible resolutions
uujM ^https://api.github.com/repos/palantir/atlasdb/commits/6231fb35f9403dfcc7feef9a94c3c72ab87ff0aahtml_urlShttps://github.com/palantir/atlasdb/commit/6231fb35f9403dfcc7feef9a94c3c72ab87ff0aacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6231fb35f9403dfcc7feef9a94c3c72ab87ff0aa/commentsj; }(login
jeremyk-91idJZ j7 MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jM 'https://api.github.com/users/jeremyk-91j[ https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujC }(j` 
jeremyk-91jb JZ j7 MDQ6VXNlcjU5NTU1MTA=jd 3https://avatars.githubusercontent.com/u/5955510?v=4jf h5jM 'https://api.github.com/users/jeremyk-91j[ https://github.com/jeremyk-91ji 1https://api.github.com/users/jeremyk-91/followersjk >https://api.github.com/users/jeremyk-91/following{/other_user}jm 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jo >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jq 5https://api.github.com/users/jeremyk-91/subscriptionsjs ,https://api.github.com/users/jeremyk-91/orgsju -https://api.github.com/users/jeremyk-91/reposjw 8https://api.github.com/users/jeremyk-91/events{/privacy}jy 7https://api.github.com/users/jeremyk-91/received_eventsj{ Userj} uparents]}(j5 (608d33074d19e9bb95a59dbc2886b2f22fd416d8jM ^https://api.github.com/repos/palantir/atlasdb/commits/608d33074d19e9bb95a59dbc2886b2f22fd416d8j[ Shttps://github.com/palantir/atlasdb/commit/608d33074d19e9bb95a59dbc2886b2f22fd416d8uastats}(totalK
	additionsK	deletionsKufiles]}(j5 (c76b026d8946422a38e2fdce26f880bb95e72d1bfilenamelatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javastatusmodifiedj Kj KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/6231fb35f9403dfcc7feef9a94c3c72ab87ff0aa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6231fb35f9403dfcc7feef9a94c3c72ab87ff0aa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=6231fb35f9403dfcc7feef9a94c3c72ab87ff0aapatchX7  @@ -198,7 +198,8 @@ public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
         WitnessedSingleCellReadTransactionAction readWitness = WitnessedSingleCellReadTransactionAction.of(
                 TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
         WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
-        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {
+        }))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Expected to find a read of the summary row")
                 .hasExactlyArgs(SafeArg.of("actions", ImmutableList.of(readWitness)));
@@ -208,11 +209,10 @@ public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
     public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCorrespondingPrimaryRow() {
         List<WitnessedTransactionAction> actions = ImmutableList.of(
                 WitnessedSingleCellReadTransactionAction.of(
-                        TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()),
-                WitnessedSingleCellReadTransactionAction.of(
-                        TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
+                        TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()));
         WorkflowHistory history = getWorkflowHistory(actions);
-        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {
+        }))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Expected to find a read of a corresponding normal row")
                 .hasExactlyArgs(SafeArg.of("actions", actions));uau(968a1a240fee9a4dcae0fa862fe385c78eaa410a}(sha(968a1a240fee9a4dcae0fa862fe385c78eaa410anode_idEC_kwDOAjP5fdoAKDk2OGExYTI0MGZlZTlhNGRjYWUwZmE4NjJmZTM4NWM3OGVhYTQxMGEcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-15T12:36:00Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-06-15T12:36:00Zumessagepass inverted paramstree}(j (a200b9d10cb4c6e71f752a6012cebcdea1a8bef1url`https://api.github.com/repos/palantir/atlasdb/git/trees/a200b9d10cb4c6e71f752a6012cebcdea1a8bef1ujĐ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/968a1a240fee9a4dcae0fa862fe385c78eaa410a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSLBbAACgkQJd22kJ7J
GiyGxwf/U8EE2iAjwCUC/cHSsL0hs0XLRppsr/14WtPputvfCETApwvu6FqoAIRE
sdY4/g6hIT1XI6b4O/vyx43XvHA/wESroQzazlZOnLkmm3GWvf8+pQUpwyeSvyLq
M1MErBqai8fzuvYsh2eSsKVlIb3ZhtHHtA+0G6tDok+VuOmsuEKG7UqFnzNU+x+t
jQ1Zdyt/asbG8q8vfaKklTAb8KQ+hUwTQmXpvmRDPLWBT2cRUTV/8O44WgQNlGYR
Hn3WX+1lCUQ3yP0VXxSTK3W3F6VuWX35scPH2unoJ67ScNqKn6MEpI8yx49D4cT2
jWy4J25nOeXrkMOFlMlTVSCHJOtS7g==
=9KIk
-----END PGP SIGNATURE-----payloadtree a200b9d10cb4c6e71f752a6012cebcdea1a8bef1
parent 546ad23c6bf5c59aa89b212d123ad9444568cb8d
author Lucas Meireles <meireles31@msn.com> 1686832560 +0100
committer Lucas Meireles <meireles31@msn.com> 1686832560 +0100

pass inverted params
uujĐ ^https://api.github.com/repos/palantir/atlasdb/commits/968a1a240fee9a4dcae0fa862fe385c78eaa410ahtml_urlShttps://github.com/palantir/atlasdb/commit/968a1a240fee9a4dcae0fa862fe385c78eaa410acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/968a1a240fee9a4dcae0fa862fe385c78eaa410a/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jĐ %https://api.github.com/users/LucasIMEjҐ https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(jא LucasIMEjِ Jg j MDQ6VXNlcjY3ODczMTE=jې 3https://avatars.githubusercontent.com/u/6787311?v=4jݐ h5jĐ %https://api.github.com/users/LucasIMEjҐ https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsj Userj uparents]}(j (546ad23c6bf5c59aa89b212d123ad9444568cb8djĐ ^https://api.github.com/repos/palantir/atlasdb/commits/546ad23c6bf5c59aa89b212d123ad9444568cb8djҐ Shttps://github.com/palantir/atlasdb/commit/546ad23c6bf5c59aa89b212d123ad9444568cb8duastats}(totalK,	additionsK	deletionsKufiles]}(j (a150e9203eed900fce5bf8a254529cb4923ef873filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj Kj KchangesK,blob_urlhttps://github.com/palantir/atlasdb/blob/968a1a240fee9a4dcae0fa862fe385c78eaa410a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/968a1a240fee9a4dcae0fa862fe385c78eaa410a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=968a1a240fee9a4dcae0fa862fe385c78eaa410apatchX>(  @@ -441,11 +441,10 @@ private NavigableMap<byte[], RowResult<byte[]>> getRowsInternal(
                     SafeArg.of("timeTakenMillis", getRowsMillis));
         }
 
-        hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
         validatePreCommitRequirementsOnReadIfNecessary(
                 tableRef,
                 getStartTimestamp(),
-                true /* can't skip lock check as we don't know how many cells to expect for the column selection */);
+                false /* can't skip lock check as we don't know how many cells to expect for the column selection */);
         return results;
     }
 
@@ -472,7 +471,7 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
         if (!rawResults.hasNext()) {
             hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
             validatePreCommitRequirementsOnReadIfNecessary(
-                    tableRef, getStartTimestamp(), true /* we can't skip checks for range scans*/);
+                    tableRef, getStartTimestamp(), false /* we can't skip checks for range scans*/);
         } // else the postFiltered iterator will check for each batch.
 
         BatchColumnRangeSelection batchColumnRangeSelection =
@@ -512,7 +511,7 @@ public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator
         hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
         // validate requirements here as the first batch for each of the above iterators will not check
         validatePreCommitRequirementsOnReadIfNecessary(
-                tableRef, getStartTimestamp(), true /* we can't skip checks on range scans */);
+                tableRef, getStartTimestamp(), false /* we can't skip checks on range scans */);
         return postFilteredResults;
     }
 
@@ -685,7 +684,7 @@ private Iterator<Map.Entry<Cell, byte[]>> filterDeletedValues(
     private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFiltered(
             TableReference tableRef, RowColumnRangeIterator iterator, int batchHint) {
         return Iterators.concat(Iterators.transform(Iterators.partition(iterator, batchHint), batch -> {
-            Map<Cell, Value> raw = validateBatch(tableRef, batch, true /* can't skip lock checks on range scans */);
+            Map<Cell, Value> raw = validateBatch(tableRef, batch, false /* can't skip lock checks on range scans */);
             if (raw.isEmpty()) {
                 return Collections.emptyIterator();
             }
@@ -710,7 +709,7 @@ private ClosableIterator<Map.Entry<Cell, byte[]>> getRowColumnRangePostFiltered(
                 () -> {
                     hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
                     validatePreCommitRequirementsOnReadIfNecessary(
-                            tableRef, getStartTimestamp(), true /* we can't skip lock checks on range scans */);
+                            tableRef, getStartTimestamp(), false /* we can't skip lock checks on range scans */);
                 },
                 raw -> getWithPostFilteringSync(tableRef, raw, Value.GET_VALUE));
     }
@@ -721,7 +720,7 @@ private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSor
             int batchHint,
             Comparator<Cell> cellComparator) {
         return Iterators.concat(Iterators.transform(Iterators.partition(iterator, batchHint), batch -> {
-            Map<Cell, Value> raw = validateBatch(tableRef, batch, true /* can't skip lock check on range scans */);
+            Map<Cell, Value> raw = validateBatch(tableRef, batch, false /* can't skip lock check on range scans */);
             if (raw.isEmpty()) {
                 return Collections.emptyIterator();
             }
@@ -733,8 +732,8 @@ private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSor
     }
 
     private Map<Cell, Value> validateBatch(
-            TableReference tableRef, List<Map.Entry<Cell, Value>> batch, boolean hasReadEmptyCells) {
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), hasReadEmptyCells);
+            TableReference tableRef, List<Map.Entry<Cell, Value>> batch, boolean allPossibleCellsReadAndNonEmpty) {
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndNonEmpty);
         return ImmutableMap.copyOf(batch);
     }
 
@@ -848,7 +847,7 @@ public SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(
         validatePreCommitRequirementsOnReadIfNecessary(
                 tableRef,
                 getStartTimestamp(),
-                true /* can't skip lock check as we don't know how many cells to expect for the column selection */);
+                false /* can't skip lock check as we don't know how many cells to expect for the column selection */);
         return filterRowResults(tableRef, rawResults, ImmutableMap.builderWithExpectedSize(rawResults.size()));
     }
 
@@ -962,7 +961,7 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
                     if (hasReadEmptyCells) {
                         hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
                     }
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), hasReadEmptyCells);
+                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), !hasReadEmptyCells);
                     return removeEmptyColumns(result, tableRef);
                 },
                 MoreExecutors.directExecutor());
@@ -987,7 +986,7 @@ public Map<Cell, byte[]> getIgnoringLocalWrites(TableReference tableRef, Set<Cel
         if (hasReadEmptyCells) {
             hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
         }
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), hasReadEmptyCells);
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), !hasReadEmptyCells);
 
         return filtered;
     }
@@ -1043,7 +1042,7 @@ public Iterable<BatchingVisitable<RowResult<byte[]>>> getRanges(
                             keyValueService.getFirstBatchForRanges(tableRef, input, getStartTimestamp());
                     hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
                     validatePreCommitRequirementsOnReadIfNecessary(
-                            tableRef, getStartTimestamp(), true /* can't skip lock check for range scans */);
+                            tableRef, getStartTimestamp(), false /* can't skip lock check for range scans */);
 
                     SortedMap<Cell, byte[]> postFiltered = postFilterPages(tableRef, firstPages.values());
 
@@ -1170,18 +1169,19 @@ protected <K extends Exception> void batchAcceptSizeHint(
     }
 
     private void validatePreCommitRequirementsOnReadIfNecessary(
-            TableReference tableRef, long timestamp, boolean hasReadEmptyCells) {
-        if (isValidationNecessaryOnReads(tableRef, hasReadEmptyCells)) {
+            TableReference tableRef, long timestamp, boolean allPossibleCellsReadAndNonEmpty) {
+        if (isValidationNecessaryOnReads(tableRef, allPossibleCellsReadAndNonEmpty)) {
             throwIfPreCommitRequirementsNotMet(null, timestamp);
         }
     }
 
-    private boolean isValidationNecessaryOnReads(TableReference tableRef, boolean hasReadEmptyCells) {
-        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef, hasReadEmptyCells);
+    private boolean isValidationNecessaryOnReads(TableReference tableRef, boolean allPossibleCellsReadAndNonEmpty) {
+        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef, allPossibleCellsReadAndNonEmpty);
     }
 
-    private boolean requiresImmutableTimestampLocking(TableReference tableRef, boolean hasReadEmptyCells) {
-        return sweepStrategyManager.get(tableRef).mustCheckImmutableLock(hasReadEmptyCells)
+    private boolean requiresImmutableTimestampLocking(
+            TableReference tableRef, boolean allPossibleCellsReadAndNonEmpty) {
+        return sweepStrategyManager.get(tableRef).mustCheckImmutableLock(allPossibleCellsReadAndNonEmpty)
                 || transactionConfig.get().lockImmutableTsOnReadOnlyTransactions();
     }
 
@@ -1337,7 +1337,7 @@ protected Iterator<RowResult<T>> computeNext() {
 
                 hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
                 validatePreCommitRequirementsOnReadIfNecessary(
-                        tableRef, getStartTimestamp(), true /* can't skip lock checks for range scans */);
+                        tableRef, getStartTimestamp(), false /* can't skip lock checks for range scans */);
                 results.markNumResultsNotDeleted(
                         Cells.getRows(postFilter.keySet()).size());
                 return Cells.createRowView(postFilter.entrySet());
@@ -1713,7 +1713,7 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
                             hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
                         }
                         validatePreCommitRequirementsOnReadIfNecessary(
-                                tableRef, getStartTimestamp(), hasReadEmptyCells);
+                                tableRef, getStartTimestamp(), !hasReadEmptyCells);
                         return getRemainingResults(nextRawResults, keysAddedToResults);
                     },
                     MoreExecutors.directExecutor());
@@ -2629,7 +2629,7 @@ private boolean hasAnyInvolvedTables() {
     private boolean validationNecessaryForInvolvedTablesOnCommit() {
         boolean anyTableRequiresImmutableTimestampLocking = involvedTables.stream()
                 .anyMatch(tableRef -> requiresImmutableTimestampLocking(
-                        tableRef, hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound));
+                        tableRef, !hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound));
         boolean needsToValidate = !validateLocksOnReads || !hasReads();
         return anyTableRequiresImmutableTimestampLocking && needsToValidate;
     }uau(5ea314a4f5b84c5f2ce97c721dd1078a0132f20b}(sha(5ea314a4f5b84c5f2ce97c721dd1078a0132f20bnode_idEC_kwDOAjP5fdoAKDVlYTMxNGE0ZjViODRjNWYyY2U5N2M3MjFkZDEwNzhhMDEzMmYyMGIcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-17T12:38:02Zu	committer}(j+ 
Ahmed Alouanej- aalouane@palantir.comj/ 2023-05-17T12:38:02Zumessage6g heap for container 3 [fixed]tree}(j# (cd9d3997087f40601c80e0cf28952897fa83095furl`https://api.github.com/repos/palantir/atlasdb/git/trees/cd9d3997087f40601c80e0cf28952897fa83095fuj; bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5ea314a4f5b84c5f2ce97c721dd1078a0132f20b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRkyqoACgkQPlMHVIT1
yhp9/Qf/QZItOSNJpD+FKbjgejZD//SwA7CMeefRKB2bywEwWXePUz2+RYJfkcT1
aMJBO/Yfu4KsVKRX2nFfTUS4vv/y9Tw7qcW5nhW1OahB0DfMJp1XtgQL8+FgEerZ
qL9Jln0rsUjv8nrBC4C6QGChGMS7j1gfdJsOWkQ7rnUiBjhOLiQPIMRTiKfe0Fp1
Zoiuq1gJlVnb/H1AVHPnHq3v+ItIxWqv4d41JNJklz+hQlndWBVJ9AtgCc+vGEhm
aXMW706tTH4pHeqIqi0UliHJaP5y8lbgSN8Nb+G2aNVYmF/HD1egulyQEDSappkA
2jZkKQuMykoCRhQzdtuIi8OfeBUoTw==
=5VD1
-----END PGP SIGNATURE-----payloadtree cd9d3997087f40601c80e0cf28952897fa83095f
parent 6a2161d8e2f40f201e50ff95805bbb7256784036
author Ahmed Alouane <aalouane@palantir.com> 1684327082 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684327082 +0100

6g heap for container 3 [fixed]
uuj; ^https://api.github.com/repos/palantir/atlasdb/commits/5ea314a4f5b84c5f2ce97c721dd1078a0132f20bhtml_urlShttps://github.com/palantir/atlasdb/commit/5ea314a4f5b84c5f2ce97c721dd1078a0132f20bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5ea314a4f5b84c5f2ce97c721dd1078a0132f20b/commentsj) }(loginergo14idJj% MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j; #https://api.github.com/users/ergo14jI https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj1 }(jN ergo14jP Jj% MDQ6VXNlcjMwOTAzNzM2jR 4https://avatars.githubusercontent.com/u/30903736?v=4jT h5j; #https://api.github.com/users/ergo14jI https://github.com/ergo14jW -https://api.github.com/users/ergo14/followersjY :https://api.github.com/users/ergo14/following{/other_user}j[ 3https://api.github.com/users/ergo14/gists{/gist_id}j] :https://api.github.com/users/ergo14/starred{/owner}{/repo}j_ 1https://api.github.com/users/ergo14/subscriptionsja (https://api.github.com/users/ergo14/orgsjc )https://api.github.com/users/ergo14/reposje 4https://api.github.com/users/ergo14/events{/privacy}jg 3https://api.github.com/users/ergo14/received_eventsji Userjk uparents]}(j# (6a2161d8e2f40f201e50ff95805bbb7256784036j; ^https://api.github.com/repos/palantir/atlasdb/commits/6a2161d8e2f40f201e50ff95805bbb7256784036jI Shttps://github.com/palantir/atlasdb/commit/6a2161d8e2f40f201e50ff95805bbb7256784036uastats}(totalK	additionsK	deletionsKufiles]}(j# (10f0a93f9dd3d1a3b4f62101350556ba1a92f52bfilename%scripts/circle-ci/run-circle-tests.shstatusmodifiedj Kj KchangesKblob_url{https://github.com/palantir/atlasdb/blob/5ea314a4f5b84c5f2ce97c721dd1078a0132f20b/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/5ea314a4f5b84c5f2ce97c721dd1078a0132f20b/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=5ea314a4f5b84c5f2ce97c721dd1078a0132f20bpatchX  @@ -75,7 +75,7 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 # External builds have a 16gb limit.
 if [ "$test_suite_index" -eq "13" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
-elif ["$test_suite_index" -eq "3"]; then
+elif [ "$test_suite_index" -eq "3" ]; then
     export _JAVA_OPTIONS="-Xmx6g ${JAVA_GC_LOGGING_OPTIONS}"
     BASE_GRADLE_ARGS+=" --scan --parallel"
 elseuau(9a6e25f5f3af327985e9a9655e61c62f57636fd2}(sha(9a6e25f5f3af327985e9a9655e61c62f57636fd2node_idEC_kwDOAjP5fdoAKDlhNmUyNWY1ZjNhZjMyNzk4NWU5YTk2NTVlNjFjNjJmNTc2MzZmZDIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-11T09:38:42Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-04-11T09:38:42Zumessagelegacytree}(j (f7ccc7d60ec52a908b816c47c98d5f532bf5185durl`https://api.github.com/repos/palantir/atlasdb/git/trees/f7ccc7d60ec52a908b816c47c98d5f532bf5185duj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9a6e25f5f3af327985e9a9655e61c62f57636fd2
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ1KqIACgkQTLdFKain
zjzQtggAi75LatiiMX1k18owIby6OiheEJebz03B4k3nEPmjWL6Y+A/l5qDiU0ww
696xTUFDJL356qPJyhWsVtyjQ1i8ZmqIjtpqpEhjG4PIAerDh/h/HJv/OXPIxjs8
AT5Dpl1wwfXwlKgOOqiU68KsYyRjj3e4les75QoXZZ8/o4MOMWhR7CqhJJdCU2LX
8Ja1+Y4bNXA9iseK3kwZFb/fNZpZsGPKdNtigXjkkWf6YSzY8ch9rTkJsVHzPP30
PDu3ToQH3zMXPI3aMA4Ynpp5KUP/8+yHqugeHnTenE7uedRftaS8VuosZ1pnBePX
ZOonBMbKkTz2Sb9n9T5EJIzhHK6frA==
=CiV0
-----END PGP SIGNATURE-----payloadtree f7ccc7d60ec52a908b816c47c98d5f532bf5185d
parent 31e633d4e6cd32ff2f231ceb04d4e8e766ad0bdf
author Jeremy Kong <jkong@palantir.com> 1681205922 +0800
committer Jeremy Kong <jkong@palantir.com> 1681205922 +0800

legacy
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/9a6e25f5f3af327985e9a9655e61c62f57636fd2html_urlShttps://github.com/palantir/atlasdb/commit/9a6e25f5f3af327985e9a9655e61c62f57636fd2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9a6e25f5f3af327985e9a9655e61c62f57636fd2/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(jő 
jeremyk-91jǑ JZ j MDQ6VXNlcjU5NTU1MTA=jɑ 3https://avatars.githubusercontent.com/u/5955510?v=4jˑ h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91jΑ 1https://api.github.com/users/jeremyk-91/followersjБ >https://api.github.com/users/jeremyk-91/following{/other_user}jґ 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jԑ >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j֑ 5https://api.github.com/users/jeremyk-91/subscriptionsjؑ ,https://api.github.com/users/jeremyk-91/orgsjڑ -https://api.github.com/users/jeremyk-91/reposjܑ 8https://api.github.com/users/jeremyk-91/events{/privacy}jޑ 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j (31e633d4e6cd32ff2f231ceb04d4e8e766ad0bdfj ^https://api.github.com/repos/palantir/atlasdb/commits/31e633d4e6cd32ff2f231ceb04d4e8e766ad0bdfj Shttps://github.com/palantir/atlasdb/commit/31e633d4e6cd32ff2f231ceb04d4e8e766ad0bdfuastats}(totalK	additionsK 	deletionsKufiles]}(j (3a026fe73ba57c2b47c4694714b518fb19bf708dfilenamePtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimestampResource.javastatusmodifiedj K j KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9a6e25f5f3af327985e9a9655e61c62f57636fd2/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampResource.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9a6e25f5f3af327985e9a9655e61c62f57636fd2/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampResource.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampResource.java?ref=9a6e25f5f3af327985e9a9655e61c62f57636fd2patchX:  @@ -35,7 +35,6 @@ public TimestampResource(TimelockNamespaces timelockNamespaces) {
         this.namespaces = timelockNamespaces;
     }
 
-    // Legacy timestamp
     @POST // This has to be POST because we can't allow caching.
     @Path("/timestamp/fresh-timestamp")
     @Produces(MediaType.APPLICATION_JSON)uau(4f4cba20742fc5b7421971161ade8a826e8fb6ba}(sha(4f4cba20742fc5b7421971161ade8a826e8fb6banode_idEC_kwDOAjP5fdoAKDRmNGNiYTIwNzQyZmM1Yjc0MjE5NzExNjFhZGU4YTgyNmU4ZmI2YmEcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-04-27T02:06:43Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-04-27T02:06:43ZumessageAutorelease 0.843.0

[skip ci]tree}(j (a69aba634cde5c8116f2c544d8a02e8596dfda70url`https://api.github.com/repos/palantir/atlasdb/git/trees/a69aba634cde5c8116f2c544d8a02e8596dfda70uj) bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4f4cba20742fc5b7421971161ade8a826e8fb6ba
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRJ2LkACgkQhbrR8ip7mDCzAwEA9TOzTFvVkBqC3pW9PGlHpEjW
SkQDaIqsaEssLUDTAtABAPv8ObIqx7HtKp0YUagpsGaxwCqYWOwFcRxfW3YH7xKz
=9p8k
-----END PGP SIGNATURE-----
payloadX0  tree a69aba634cde5c8116f2c544d8a02e8596dfda70
parent a90667bdbe564afc78d491359b9e12c143b333a6
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1682561203 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1682561203 +0000

Autorelease 0.843.0

[skip ci]uuj) ^https://api.github.com/repos/palantir/atlasdb/commits/4f4cba20742fc5b7421971161ade8a826e8fb6bahtml_urlShttps://github.com/palantir/atlasdb/commit/4f4cba20742fc5b7421971161ade8a826e8fb6bacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4f4cba20742fc5b7421971161ade8a826e8fb6ba/commentsj }(loginsvc-autoreleaseidJ(j MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j) ,https://api.github.com/users/svc-autoreleasej7 "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj }(j< svc-autoreleasej> J(j MDQ6VXNlcjUxNzE4MzQ2j@ 4https://avatars.githubusercontent.com/u/51718346?v=4jB h5j) ,https://api.github.com/users/svc-autoreleasej7 "https://github.com/svc-autoreleasejE 6https://api.github.com/users/svc-autorelease/followersjG Chttps://api.github.com/users/svc-autorelease/following{/other_user}jI <https://api.github.com/users/svc-autorelease/gists{/gist_id}jK Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jM :https://api.github.com/users/svc-autorelease/subscriptionsjO 1https://api.github.com/users/svc-autorelease/orgsjQ 2https://api.github.com/users/svc-autorelease/reposjS =https://api.github.com/users/svc-autorelease/events{/privacy}jU <https://api.github.com/users/svc-autorelease/received_eventsjW UserjY uparents]}(j (a90667bdbe564afc78d491359b9e12c143b333a6j) ^https://api.github.com/repos/palantir/atlasdb/commits/a90667bdbe564afc78d491359b9e12c143b333a6j7 Shttps://github.com/palantir/atlasdb/commit/a90667bdbe564afc78d491359b9e12c143b333a6uastats}(totalK 	additionsK 	deletionsK ufiles]}(j (9bdb41d8ffed33be231b3497c550f32137ae4e87filename changelog/0.843.0/pr-6540.v2.ymlstatusrenamedjs K jt K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/4f4cba20742fc5b7421971161ade8a826e8fb6ba/changelog%2F0.843.0%2Fpr-6540.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/4f4cba20742fc5b7421971161ade8a826e8fb6ba/changelog%2F0.843.0%2Fpr-6540.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.843.0%2Fpr-6540.v2.yml?ref=4f4cba20742fc5b7421971161ade8a826e8fb6baprevious_filename$changelog/@unreleased/pr-6540.v2.ymluau(fe143901cd8fc5e7fc61dfe143bfc1b7417af093}(sha(fe143901cd8fc5e7fc61dfe143bfc1b7417af093node_idEC_kwDOAjP5fdoAKGZlMTQzOTAxY2Q4ZmM1ZTdmYzYxZGZlMTQzYmZjMWI3NDE3YWYwOTMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-07-03T15:25:59Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-07-10T12:20:26Zumessageboomtree}(j (c3bfc01b84e6c2732d7281dec2f4c5655e3b11f0url`https://api.github.com/repos/palantir/atlasdb/git/trees/c3bfc01b84e6c2732d7281dec2f4c5655e3b11f0uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fe143901cd8fc5e7fc61dfe143bfc1b7417af093
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSr94oACgkQmPPOpKR4
XS0aFAf/T3xMZgo3q6T4XBqRCLgnYhkQ2CcTJFZWVi9+2M2qsRIPOcaW13EkEEvH
dEzmNtxXMPNkldUm+a1NlLvAz7qtDbudG8QpCYD2RLOAkeCA8fbG29zWPbFdmGAv
jLygBj210DYAmyUA5llITVct4meBLsXRRYEK4kjSQeAC8iadk82kzxUNmxtji3WU
nPY8bI6703aiLZAmzh4lU5ynmaSV8OQ4kU1cikl+QEWNEwKa6oyCsTE30p/Do1Az
JN7ie64cZRW1FnT4tZsxHiqTLckKF2BQevIbw7wcYqq056XoNUeYMvfN4P+axdxv
RyDR2PC6LsBuKazQHhaTVh9Nd2CT8w==
=YOM2
-----END PGP SIGNATURE-----payloadtree c3bfc01b84e6c2732d7281dec2f4c5655e3b11f0
parent fa3dfe6ce8a6e2c352c88d5e7de8e1d3c58fea8b
author Sam Kramer <skramer@palantir.com> 1688397959 +0100
committer Sam Kramer <skramer@palantir.com> 1688991626 +0100

boom
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/fe143901cd8fc5e7fc61dfe143bfc1b7417af093html_urlShttps://github.com/palantir/atlasdb/commit/fe143901cd8fc5e7fc61dfe143bfc1b7417af093comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fe143901cd8fc5e7fc61dfe143bfc1b7417af093/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jĒ 5https://api.github.com/users/Sam-Kramer/subscriptionsjƒ ,https://api.github.com/users/Sam-Kramer/orgsjȒ -https://api.github.com/users/Sam-Kramer/reposjʒ 8https://api.github.com/users/Sam-Kramer/events{/privacy}j̒ 7https://api.github.com/users/Sam-Kramer/received_eventsjΒ UserjВ uparents]}(j (fa3dfe6ce8a6e2c352c88d5e7de8e1d3c58fea8bj ^https://api.github.com/repos/palantir/atlasdb/commits/fa3dfe6ce8a6e2c352c88d5e7de8e1d3c58fea8bj Shttps://github.com/palantir/atlasdb/commit/fa3dfe6ce8a6e2c352c88d5e7de8e1d3c58fea8buastats}(totalK 	additionsK	deletionsKufiles]}(j (09413ca77495557d7a108850b4aa895c60d4c089filenameqatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflowTest.javastatusmodifiedj Kj KchangesK blob_urlhttps://github.com/palantir/atlasdb/blob/fe143901cd8fc5e7fc61dfe143bfc1b7417af093/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/fe143901cd8fc5e7fc61dfe143bfc1b7417af093/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.java?ref=fe143901cd8fc5e7fc61dfe143bfc1b7417af093patchXs  @@ -102,22 +102,22 @@ public void writesThenDeletes() {
         List<WitnessedTransaction> transactions = workflow.run().history();
 
         assertThat(transactions.size()).isEqualTo(4);
-        assertThat(getTransactionAction(transactions.get(0), WitnessedWriteTransactionAction.class)
-                        .cell()
-                        .key())
-                .isEqualTo(0);
-        assertThat(getTransactionAction(transactions.get(1), WitnessedDeleteTransactionAction.class)
-                        .cell()
-                        .key())
-                .isEqualTo(0);
-        assertThat(getTransactionAction(transactions.get(2), WitnessedWriteTransactionAction.class)
-                        .cell()
-                        .key())
-                .isEqualTo(1);
-        assertThat(getTransactionAction(transactions.get(3), WitnessedDeleteTransactionAction.class)
-                        .cell()
-                        .key())
-                .isEqualTo(1);
+        assertWriteTransaction(transactions.get(0), 0);
+        assertDeleteTransaction(transactions.get(1), 0);
+        assertWriteTransaction(transactions.get(2), 1);
+        assertDeleteTransaction(transactions.get(3), 1);
+    }
+
+    private void assertWriteTransaction(WitnessedTransaction transaction, int key) {
+        WitnessedWriteTransactionAction action =
+                getTransactionAction(transaction, WitnessedWriteTransactionAction.class);
+        assertThat(action.cell().key()).isEqualTo(key);
+    }
+
+    private void assertDeleteTransaction(WitnessedTransaction transaction, int key) {
+        WitnessedDeleteTransactionAction action =
+                getTransactionAction(transaction, WitnessedDeleteTransactionAction.class);
+        assertThat(action.cell().key()).isEqualTo(key);
     }
 
     private <T> T getTransactionAction(WitnessedTransaction transaction, Class<T> clazz) {uau(a22f5c5cdd00985e3f129884654c1fe4b6e70e2b}(sha(a22f5c5cdd00985e3f129884654c1fe4b6e70e2bnode_idEC_kwDOAjP5fdoAKGEyMmY1YzVjZGQwMDk4NWUzZjEyOTg4NDY1NGMxZmU0YjZlNzBlMmIcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-07-26T12:39:49Zu	committer}(j GitHubj	 noreply@github.comj 2023-07-26T12:39:49Zumessage,Remove unused yaml lock state writer (#6682)tree}(j (8d4dfa11946e06f670110db9546e24f935d17632url`https://api.github.com/repos/palantir/atlasdb/git/trees/8d4dfa11946e06f670110db9546e24f935d17632uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a22f5c5cdd00985e3f129884654c1fe4b6e70e2b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkwRQVCRBK7hj4Ov3rIwAAAtYIAJ/OCiaYuvGNcN/zyO9Amqxs
nhfT9J0NNRqQDnACQZUKPcyRwKZyK5vVz+RZ6aSUGh044XjwzMxby9bT9bzZnJTc
YwDcOCc9dMWE9sS5OMYsaVflouuoMW9N2Yr4BaDrAe7KIAz5PQfpAXaxI8HAqyM6
REHkvTVodJNjOzKW3fM4N7Y7P+8m/yG07hBGPSm2z7Uv5qoEazzUcfkdZSlSovBp
eOTipf8dGa/hWt+WftFCKtsibIp8r2TxmcBOuIGPdaPol76cwiczfhAzrp2LURpu
e84FnkGuJRoAobHK1D4ZpboSsSrHZyDWtmNxjq4k0v1iuvWb0kD5ol7lzuFC3jQ=
=pBlT
-----END PGP SIGNATURE-----
payloadX  tree 8d4dfa11946e06f670110db9546e24f935d17632
parent 69ef02d5a138f5b35e8bbf9b99608faa938874cf
author aalouane <30903736+ergo14@users.noreply.github.com> 1690375189 +0100
committer GitHub <noreply@github.com> 1690375189 +0000

Remove unused yaml lock state writer (#6682)

 uuj ^https://api.github.com/repos/palantir/atlasdb/commits/a22f5c5cdd00985e3f129884654c1fe4b6e70e2bhtml_urlShttps://github.com/palantir/atlasdb/commit/a22f5c5cdd00985e3f129884654c1fe4b6e70e2bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a22f5c5cdd00985e3f129884654c1fe4b6e70e2b/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j% https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj
 }(j* web-flowj, J/j MDQ6VXNlcjE5ODY0NDQ3j. 4https://avatars.githubusercontent.com/u/19864447?v=4j0 h5j %https://api.github.com/users/web-flowj% https://github.com/web-flowj3 /https://api.github.com/users/web-flow/followersj5 <https://api.github.com/users/web-flow/following{/other_user}j7 5https://api.github.com/users/web-flow/gists{/gist_id}j9 <https://api.github.com/users/web-flow/starred{/owner}{/repo}j; 3https://api.github.com/users/web-flow/subscriptionsj= *https://api.github.com/users/web-flow/orgsj? +https://api.github.com/users/web-flow/reposjA 6https://api.github.com/users/web-flow/events{/privacy}jC 5https://api.github.com/users/web-flow/received_eventsjE UserjG uparents]}(j (69ef02d5a138f5b35e8bbf9b99608faa938874cfj ^https://api.github.com/repos/palantir/atlasdb/commits/69ef02d5a138f5b35e8bbf9b99608faa938874cfj% Shttps://github.com/palantir/atlasdb/commit/69ef02d5a138f5b35e8bbf9b99608faa938874cfuastats}(totalKb	additionsK 	deletionsKbufiles]}(j (b5f796ab3477670b4547dbda5fd7b6989458a0fcfilenameIlock-impl/src/main/java/com/palantir/lock/logger/LockStateYamlWriter.javastatusremovedja K jb KbchangesKbblob_urlhttps://github.com/palantir/atlasdb/blob/69ef02d5a138f5b35e8bbf9b99608faa938874cf/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockStateYamlWriter.javaraw_urlhttps://github.com/palantir/atlasdb/raw/69ef02d5a138f5b35e8bbf9b99608faa938874cf/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockStateYamlWriter.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockStateYamlWriter.java?ref=69ef02d5a138f5b35e8bbf9b99608faa938874cfpatchX
  @@ -1,98 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.lock.logger;
-
-import com.palantir.lock.LockDescriptor;
-import java.io.Closeable;
-import java.io.File;
-import java.io.IOException;
-import java.io.Writer;
-import java.nio.charset.StandardCharsets;
-import java.nio.file.Files;
-import java.nio.file.StandardOpenOption;
-import org.yaml.snakeyaml.DumperOptions;
-import org.yaml.snakeyaml.Yaml;
-import org.yaml.snakeyaml.nodes.Tag;
-import org.yaml.snakeyaml.representer.Representer;
-
-/**
- * A simple wrapper for writing lock state as YAML to a file.
- */
-class LockStateYamlWriter implements Closeable {
-    private static final Yaml yaml = new Yaml(getRepresenter(), getDumperOptions());
-
-    private final Writer writer;
-
-    LockStateYamlWriter(Writer fileWriter) {
-        this.writer = fileWriter;
-    }
-
-    /**
-     * Creates a LockStateYamlWriter for the given file in append mode.
-     */
-    public static LockStateYamlWriter create(File file) throws IOException {
-        return new LockStateYamlWriter(Files.newBufferedWriter(
-                file.toPath(), StandardCharsets.UTF_8, StandardOpenOption.CREATE, StandardOpenOption.APPEND));
-    }
-
-    /**
-     * Write an object to the file as YAML.
-     */
-    public void dumpObject(Object data) {
-        yaml.dump(data, writer);
-    }
-
-    /**
-     * Write a string to the file as a YAML comment.
-     * The string must be a single line.
-     */
-    public void appendComment(String string) throws IOException {
-        writer.append("# ");
-        writer.append(string);
-        writer.append("\n");
-    }
-
-    private static Representer getRepresenter() {
-        Representer representer = new LockDescriptorAwareRepresenter();
-        representer.addClassTag(ImmutableSimpleTokenInfo.class, Tag.MAP);
-        representer.addClassTag(ImmutableSimpleLockRequest.class, Tag.MAP);
-        representer.addClassTag(ImmutableSanitizedLockRequestProgress.class, Tag.MAP);
-        representer.addClassTag(SimpleLockRequestsWithSameDescriptor.class, Tag.MAP);
-        representer.addClassTag(LockDescriptor.class, Tag.MAP);
-        return representer;
-    }
-
-    private static DumperOptions getDumperOptions() {
-        DumperOptions options = new DumperOptions();
-        options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
-        options.setIndent(4);
-        options.setAllowReadOnlyProperties(true);
-        options.setExplicitStart(true);
-        return options;
-    }
-
-    @Override
-    public void close() throws IOException {
-        writer.close();
-    }
-
-    private static class LockDescriptorAwareRepresenter extends Representer {
-        LockDescriptorAwareRepresenter() {
-            super();
-            this.representers.put(LockDescriptor.class, data -> representScalar(Tag.STR, data.toString()));
-        }
-    }
-}uau(516a19f90645dae48d405aa5e2795fc82b19a2d5}(sha(516a19f90645dae48d405aa5e2795fc82b19a2d5node_idEC_kwDOAjP5fdoAKDUxNmExOWY5MDY0NWRhZTQ4ZDQwNWFhNWUyNzk1ZmM4MmIxOWEyZDUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-12T08:25:48Zu	committer}(j~ Jeremy Kongj jkong@palantir.comj 2023-06-12T08:25:48Zumessage7Merge branch 'develop' into skramer/sweep-at-quorum-bugtree}(jv (718c3e157503ad1b08c46b5bef22025473d97365url`https://api.github.com/repos/palantir/atlasdb/git/trees/718c3e157503ad1b08c46b5bef22025473d97365uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/516a19f90645dae48d405aa5e2795fc82b19a2d5
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSG1o4ACgkQTLdFKain
zjyAUwf+OPuRwXzqcqPmHk04gB3qBLLzvyiiUvIBVsz+MMjB3x7tHCz4pyi3Nz1z
jj/UmoiSi9eqNcQ3kghp/+sUPeE+u1Z5WK6piihpopp6C2odFudep2OZmpVBl35X
nLezJJ1Rn3NA3Y8FdUiwDRbZS0jP2KhPLEZYkUItXGaAZZUGxt0I6GxwJUjo3Ryy
kklv6s1xqRHjXkfcjCgr6U1MOFisGhMtPqC7JtFGw0Ijp/cMpQ+s2CDGvj2o6wB6
kKqgUmVvMHTt+gGS3pOvwuiPMpBBMZM5mK8Ha0AfwtfpDAGQ1FCEzFSdj9nOy+PC
x6DCDFL5v82dlLr5SK423oiwuiNuvA==
=SVms
-----END PGP SIGNATURE-----payloadX<  tree 718c3e157503ad1b08c46b5bef22025473d97365
parent d4d795825bf2970ece4825adcdbc9d5792db7c2b
parent 8d65a011e35cfff9bbdb38ad706cc252b977467b
author Jeremy Kong <jkong@palantir.com> 1686558348 +0100
committer Jeremy Kong <jkong@palantir.com> 1686558348 +0100

Merge branch 'develop' into skramer/sweep-at-quorum-bug
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/516a19f90645dae48d405aa5e2795fc82b19a2d5html_urlShttps://github.com/palantir/atlasdb/commit/516a19f90645dae48d405aa5e2795fc82b19a2d5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/516a19f90645dae48d405aa5e2795fc82b19a2d5/commentsj| }(login
jeremyk-91idJZ jx MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url     >https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ jx MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents](}(jv (d4d795825bf2970ece4825adcdbc9d5792db7c2bj ^https://api.github.com/repos/palantir/atlasdb/commits/d4d795825bf2970ece4825adcdbc9d5792db7c2bj Shttps://github.com/palantir/atlasdb/commit/d4d795825bf2970ece4825adcdbc9d5792db7c2bu}(jv (8d65a011e35cfff9bbdb38ad706cc252b977467bj ^https://api.github.com/repos/palantir/atlasdb/commits/8d65a011e35cfff9bbdb38ad706cc252b977467bj Shttps://github.com/palantir/atlasdb/commit/8d65a011e35cfff9bbdb38ad706cc252b977467buestats}(totalM 	additionsM
	deletionsKoufiles](}(jv (08cd766747be7ea89f3186414b112d6fff840236filenameiatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleOverflowWriteTable.javastatusmodifiedjܓ K,jݓ KchangesKJblob_urlhttps://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javaraw_urlhttps://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5patchXQ  @@ -351,31 +351,41 @@ private void deleteOverflow(String overflowTable, List<Object[]> args) {
         String shortTableName = oraclePrefixedTableNames.get(tableRef, conns);
         conns.get()
                 .updateManyUnregisteredQuery(
-                        " /* DELETE_ONE_OVERFLOW (" + overflowTable + ") */ "
-                                + " DELETE /*+ INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */ "
-                                + "   FROM " + overflowTable + " m "
-                                + "  WHERE m.id IN (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName)
-                                + ") */ "
-                                + "                        i.overflow "
-                                + "                   FROM " + shortTableName + " i "
-                                + "                  WHERE i.row_name = ? "
-                                + "                    AND i.col_name = ? "
-                                + "                    AND i.ts = ? "
-                                + "                    AND i.overflow IS NOT NULL)",
+                        "/* DELETE_ONE_OVERFLOW (" + overflowTable + ") */"
+                                + " DELETE"
+                                + " /*+"
+                                + "   INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ")"
+                                + "   LEADING(i) USE_NL(i m)"
+                                + " */"
+                                + " FROM " + overflowTable + " m"
+                                + " WHERE m.id IN"
+                                + "   (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName) + ") */"
+                                + "     i.overflow"
+                                + "     FROM " + shortTableName + " i"
+                                + "     WHERE i.row_name = ?"
+                                + "       AND i.col_name = ?"
+                                + "       AND i.ts = ?"
+                                + "       AND i.overflow IS NOT NULL)",
                         args);
     }
 
     private void deleteOverflowRange(String overflowTable, String shortTableName, RangeRequest range) {
         StringBuilder query = new StringBuilder();
-        query.append(" /* DELETE_RANGE_OVERFLOW (").append(overflowTable).append(") */ ");
-        query.append(" DELETE /*+ INDEX(m pk_").append(overflowTable).append(") */ ");
-        query.append("   FROM ").append(overflowTable).append(" m ");
-        query.append(" WHERE m.id IN (");
+        query.append("/* DELETE_RANGE_OVERFLOW (")
+                .append(overflowTable)
+                .append(") */ DELETE /*+ INDEX(m ")
+                .append(PrimaryKeyConstraintNames.get(overflowTable))
+                .append(") LEADING(i) USE_NL(i m) */ FROM ")
+                .append(overflowTable)
+                .append(" m WHERE m.id IN (");
 
         // subquery for finding rows in the short table
-        query.append("SELECT /*+ INDEX(i pk_").append(shortTableName).append(") */ ");
-        query.append("       i.overflow ");
-        query.append("    FROM ").append(shortTableName).append(" i ");
+        query.append("SELECT /*+ INDEX(i ")
+                .append(PrimaryKeyConstraintNames.get(shortTableName))
+                .append(") */")
+                .append(" i.overflow FROM ")
+                .append(shortTableName)
+                .append(" i");
 
         // add where clauses
         WhereClauses whereClauses = WhereClauses.create("i", range, "i.overflow IS NOT NULL");
@@ -398,18 +408,22 @@ private void deleteAllTimestampsOverflow(String overflowTable, List<Object[]> ar
         String shortTableName = oraclePrefixedTableNames.get(tableRef, conns);
         conns.get()
                 .updateManyUnregisteredQuery(
-                        " /* DELETE_ALL_TS_OVERFLOW (" + overflowTable + ") */ "
-                                + " DELETE /*+ INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */ "
-                                + "   FROM " + overflowTable + " m "
-                                + "  WHERE m.id IN (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName)
-                                + ") */ "
-                                + "                        i.overflow "
-                                + "                   FROM " + shortTableName + " i "
-                                + "                  WHERE i.row_name = ? "
-                                + "                    AND i.col_name = ? "
-                                + "                    AND i.ts >= ? "
-                                + "                    AND i.ts <= ? "
-                                + "                    AND i.overflow IS NOT NULL)",
+                        " /* DELETE_ALL_TS_OVERFLOW (" + overflowTable + ") */"
+                                + " DELETE"
+                                + " /*+"
+                                + "   INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ")"
+                                + "   LEADING(i) USE_NL(i m)"
+                                + " */"
+                                + " FROM " + overflowTable + " m"
+                                + " WHERE m.id IN"
+                                + "   (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName) + ") */"
+                                + "     i.overflow"
+                                + "     FROM " + shortTableName + " i"
+                                + "     WHERE i.row_name = ?"
+                                + "       AND i.col_name = ?"
+                                + "       AND i.ts >= ?"
+                                + "       AND i.ts <= ?"
+                                + "       AND i.overflow IS NOT NULL)",
                         args);
     }
 u}(jv (88f8467b9c138fc4cb41ea3c961977dd5dd0f8e4j  atlasdb-impl-shared/build.gradlej modifiedjܓ Kjݓ K j Kj thttps://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-impl-shared%2Fbuild.gradlej shttps://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-impl-shared%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fbuild.gradle?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X
  @@ -12,6 +12,7 @@ license {
   exclude '**/PutUnlessExistsTableMetrics.java'
   exclude '**/TargetedSweepProgressMetrics.java'
   exclude '**/TimestampCorrectnessMetrics.java'
+  exclude '**/ExpectationsMetrics.java'
   exclude '**/VerificationModeMetrics.java'
 }
 u}(jv (3baaaaf51b7360fce9a867bd4f521f4017dceb26j `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj modifiedjܓ K"jݓ Kj K&j https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -98,6 +98,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueServiceImpl;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
@@ -265,12 +266,14 @@ private enum State {
     protected final TableLevelMetricsController tableLevelMetricsController;
     protected final SuccessCallbackManager successCallbackManager = new SuccessCallbackManager();
     private final CommitTimestampLoader commitTimestampLoader;
+    private final ExpectationsMetrics expectationsDataCollectionMetrics;
 
     protected volatile boolean hasReads;
 
     protected final TimestampCache timestampCache;
 
     protected final TransactionKnowledgeComponents knowledge;
+
     protected final Closer closer = Closer.create();
 
     /**
@@ -345,6 +348,7 @@ private enum State {
                 timelockService,
                 immutableTimestamp,
                 knowledge);
+        this.expectationsDataCollectionMetrics = ExpectationsMetrics.of(metricsManager.getTaggedRegistry());
     }
 
     protected TransactionScopedCache getCache() {
@@ -1817,11 +1821,16 @@ private void ensureUncommitted() {
     }
 
     private void ensureStillRunning() {
-        if (!(state.get() == State.UNCOMMITTED || state.get() == State.COMMITTING)) {
+        if (!isStillRunning()) {
             throw new CommittedTransactionException();
         }
     }
 
+    private boolean isStillRunning() {
+        State stateNow = state.get();
+        return stateNow == State.UNCOMMITTED || stateNow == State.COMMITTING;
+    }
+
     /**
      * Returns true iff the transaction is known to have successfully committed.
      *
@@ -1950,8 +1959,9 @@ private void commitWrites(TransactionService transactionService) {
                 if (validationNecessaryForInvolvedTablesOnCommit()) {
                     throwIfImmutableTsOrCommitLocksExpired(null);
                 }
-                return;
             }
+            getTimer("nonWriteCommitTotalTimeSinceTxCreation")
+                    .update(Duration.of(transactionTimerContext.stop(), ChronoUnit.NANOS));
             return;
         }
 
@@ -2402,6 +2412,7 @@ protected LockToken acquireLocksForCommit() {
                                 lockDescriptors, currentTransactionConfig, stackTraceSnapshot))
                         .build());
         if (!lockResponse.wasSuccessful()) {
+            transactionOutcomeMetrics.markCommitLockAcquisitionFailed();
             log.error(
                     "Timed out waiting while acquiring commit locks. Timeout was {} ms. "
                             + "First ten required locks were {}.",
@@ -2596,9 +2607,28 @@ public TransactionReadInfo getReadInfo() {
         return keyValueService.getOverallReadInfo();
     }
 
-    // TODO(aalouane): implement and call this on transaction exit
     @Override
-    public void reportExpectationsCollectedData() {}
+    public void reportExpectationsCollectedData() {
+        if (isStillRunning()) {
+            log.error(
+                    "reportExpectationsCollectedData is called on an in-progress transaction",
+                    SafeArg.of("state", state.get()));
+            return;
+        }
+
+        reportExpectationsCollectedData(getAgeMillis(), getReadInfo(), expectationsDataCollectionMetrics);
+    }
+
+    @VisibleForTesting
+    static void reportExpectationsCollectedData(
+            long ageMillis, TransactionReadInfo readInfo, ExpectationsMetrics metrics) {
+        metrics.ageMillis().update(ageMillis);
+        metrics.bytesRead().update(readInfo.bytesRead());
+        metrics.kvsReads().update(readInfo.kvsCalls());
+
+        readInfo.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
+                .update(kvsCallReadInfo.bytesRead()));
+    }
 
     private long getStartTimestamp() {
         return startTimestamp.get();u}(jv (7a4b02962f2c8fcd57bfd60b8b4b157b2e6ed956j gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcome.javaj modifiedjܓ Kjݓ Kj Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -62,5 +62,10 @@ public enum TransactionOutcome {
      * that started before our start timestamp and hasn't committed). This will be logged at most once for a given
      * transaction being rolled back, even if multiple transactions aim to rollback the same transaction.
      */
-    ROLLBACK_OTHER
+    ROLLBACK_OTHER,
+
+    /**
+     * The transaction failed to acquire commit locks at the beginning of the AtlasDB commit protocol.
+     */
+    COMMIT_LOCK_ACQUISITION_FAILED,
 }u}(jv (0cf6b112d9082ed759671aab0086b2bf32ccbedbj natlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetrics.javaj modifiedjܓ Kjݓ K j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -85,6 +85,10 @@ public void markRollbackOtherTransaction() {
         getMeter(TransactionOutcome.ROLLBACK_OTHER).mark();
     }
 
+    public void markCommitLockAcquisitionFailed() {
+        getMeter(TransactionOutcome.COMMIT_LOCK_ACQUISITION_FAILED).mark();
+    }
+
     @VisibleForTesting
     Meter getMeter(TransactionOutcome outcome) {
         return getMeter(outcome, ImmutableMap.of());u}(jv (e696a4e851cc0de0f72f1af470c874f29b2e719bj 5atlasdb-impl-shared/src/main/metrics/expectations.ymlj addedjܓ Kjݓ K j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -0,0 +1,19 @@
+options:
+  javaPackage: 'com.palantir.atlasdb.transaction.expectations'
+
+namespaces:
+  expectations:
+    docs: Data collection on transaction patterns
+    metrics:
+      bytesRead:
+        docs: Bytes read by a transaction through Atlas kvs read calls
+        type: histogram
+      kvsReads:
+        docs: Number of Atlas kvs read calls made by a transaction
+        type: histogram
+      ageMillis:
+        docs: Elapsed duration in milliseconds for a transaction
+        type: histogram
+      mostKvsBytesReadInSingleCall:
+        docs: Most bytes read by a transaction in one Atlas kvs read call
+        type: histogramu}(jv (c8823c29da58eca2fbdcdf7fc98f8ab892c82d54j matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javaj addedjܓ KSjݓ K j KSj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X<
  @@ -0,0 +1,83 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class ExpectationsMetricsReportingTest {
+    // immutable in type declaration for better 'withX' ergonomics
+    private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
+            ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
+
+    private ExpectationsMetrics metrics;
+
+    @Before
+    public void setUp() {
+        metrics = ExpectationsMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
+    }
+
+    @Test
+    public void ageReported() {
+        long age = 129L;
+        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, metrics);
+        assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
+    }
+
+    @Test
+    public void bytesReadReported() {
+        long bytes = 1290L;
+        reportMetrics(BLANK_READ_INFO.withBytesRead(bytes));
+        assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
+    }
+
+    @Test
+    public void kvsCallsReported() {
+        long calls = 12L;
+        reportMetrics(BLANK_READ_INFO.withKvsCalls(calls));
+        assertThat(metrics.kvsReads().getSnapshot().getValues()).containsOnly(calls);
+    }
+
+    @Test
+    public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
+        reportMetrics(BLANK_READ_INFO);
+        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+                .isEmpty();
+    }
+
+    @Test
+    public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
+        long bytes = 193L;
+        reportMetrics(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+                .containsOnly(bytes);
+    }
+
+    private void reportMetrics(TransactionReadInfo readInfo) {
+        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, metrics);
+    }
+}u}(jv (8732fe7b76fe6fc4d194ebc3c3c808c8ab2df91ej uatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetricsAssert.javaj modifiedjܓ Kjݓ K j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -59,6 +59,11 @@ public TransactionOutcomeMetricsAssert hasRollbackOther(long count) {
         return this;
     }
 
+    public TransactionOutcomeMetricsAssert hasCommitLockAcquisitionFailures(long count) {
+        checkPresentAndCheckCount(TransactionOutcome.COMMIT_LOCK_ACQUISITION_FAILED, count);
+        return this;
+    }
+
     public TransactionOutcomeMetricsAssert hasLocksExpired(long count) {
         checkPresentAndCheckCount(TransactionOutcome.LOCKS_EXPIRED, count);
         return this;u}(jv (18e3bf26bf01f5384536788e145f8e8f37200656j latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javaj modifiedjܓ Kjݓ Kj Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -237,7 +237,10 @@ public void registersMetrics() throws InterruptedException {
         TaggedMetricRegistry registry = snapshotTransactionManager.metricsManager.getTaggedRegistry();
         assertThat(registry.getMetrics().keySet().stream().map(MetricName::safeName))
                 .contains(SETUP_TASK_METRIC_NAME)
-                .contains(FINISH_TASK_METRIC_NAME);
+                .contains(FINISH_TASK_METRIC_NAME)
+                .contains("expectations.bytesRead")
+                .contains("expectations.kvsReads")
+                .contains("expectations.ageMillis");
         assertThat(registry.timer(MetricName.builder()
                                 .safeName(SETUP_TASK_METRIC_NAME)
                                 .build())u}(jv (c66fcac2f74aa5be8cdfd05aebf8029a49d9f883j eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj modifiedjܓ Kjݓ K j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -90,6 +90,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionConflictException;
 import com.palantir.atlasdb.transaction.api.TransactionFailedNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionFailedRetriableException;
+import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
@@ -118,6 +119,7 @@
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.TimeDuration;
 import com.palantir.lock.v2.LockImmutableTimestampResponse;
+import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.math.BigInteger;
@@ -322,6 +324,8 @@ public void cleanup() {}
     private static final Cell TEST_CELL = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("column1"));
     private static final Cell TEST_CELL_2 = Cell.create(PtBytes.toBytes("row2"), PtBytes.toBytes("column2"));
 
+    private static final byte[] TEST_VALUE = PtBytes.toBytes("value");
+
     @Override
     @Before
     public void setUp() throws Exception {
@@ -1484,6 +1488,23 @@ public void commitThrowsIfRolledBackAtCommitTime_expiredLocks() {
                 .hasLocksExpired(1);
     }
 
+    @Test
+    public void commitThrowsIfCommitLockAcquisitionFails() {
+        TimelockService timelockService = mock(TimelockService.class);
+        when(timelockService.lock(any(), any())).thenReturn(LockResponse.timedOut());
+        Transaction txn = getSnapshotTransactionWith(timelockService);
+
+        // We only request commit locks for transactions that write at least one value
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+
+        assertThatThrownBy(txn::commit)
+                .isInstanceOf(TransactionLockAcquisitionTimeoutException.class)
+                .hasMessage("Timed out while acquiring commit locks.");
+        TransactionOutcomeMetricsAssert.assertThat(transactionOutcomeMetrics)
+                .hasFailedCommits(1)
+                .hasCommitLockAcquisitionFailures(1);
+    }
+
     @Test
     public void commitThrowsIfRolledBackAtCommitTime_alreadyAborted() {
         final Cell cell = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("column1"));
@@ -2459,6 +2480,14 @@ private void setTransactionConfig(TransactionConfig config) {
         transactionConfig = config;
     }
 
+    private Transaction getSnapshotTransactionWith(TimelockService timelockService) {
+        ConjureStartTransactionsResponse conjureResponse = startTransactionWithWatches();
+        LockImmutableTimestampResponse lockImmutableTimestampResponse = conjureResponse.getImmutableTimestamp();
+        long transactionTs = conjureResponse.getTimestamps().start();
+        return getSnapshotTransactionWith(
+                timelockService, () -> transactionTs, lockImmutableTimestampResponse, unused -> {});
+    }
+
     private Transaction getSnapshotTransactionWith(
             TimelockService timelockService,
             Supplier<Long> startTs,u}(jv (b86c6ab4d0e299588d4d550dff55a4b053fb2870j satlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetricsTest.javaj modifiedjܓ Kjݓ Kj Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j XL  @@ -72,6 +72,7 @@ public void canMarkVariousOutcomes() {
                 .put(4, transactionOutcomeMetrics::markPutUnlessExistsFailed)
                 .put(5, transactionOutcomeMetrics::markRollbackOtherTransaction)
                 .put(6, transactionOutcomeMetrics::markPreCommitCheckFailed)
+                .put(7, transactionOutcomeMetrics::markCommitLockAcquisitionFailed)
                 .buildOrThrow();
 
         tasks.entrySet().forEach(entry -> IntStream.range(0, entry.getKey())
@@ -83,7 +84,8 @@ public void canMarkVariousOutcomes() {
                 .hasLocksExpired(3)
                 .hasPutUnlessExistsFailures(4)
                 .hasRollbackOther(5)
-                .hasPreCommitCheckFailures(6);
+                .hasPreCommitCheckFailures(6)
+                .hasCommitLockAcquisitionFailures(7);
     }
 
     @Testu}(jv (b5c7b9efcec99e2e4e3b5ccc3eb2f13e725dca1aj 9atlasdb-workload-server-antithesis/var/docker-compose.ymlj modifiedjܓ K jݓ Kj Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X8  @@ -15,8 +15,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra1
-    volumes:
-      - /opt/config/volumes/cassandra1:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
@@ -35,8 +33,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra2
-    volumes:
-      - /opt/config/volumes/cassandra2:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
@@ -55,8 +51,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra3
-    volumes:
-      - /opt/config/volumes/cassandra3:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.4u}(jv (29fc330cc18e86d9e89097012f497c48a1e6c4b9j fatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/MismatchedValue.javaj modifiedjܓ Kjݓ Kj Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X&  @@ -24,10 +24,10 @@
 @Value.Immutable
 public interface MismatchedValue {
     @Value.Parameter
-    Optional<Integer> actual();
+    ValueAndMaybeTimestamp actual();
 
     @Value.Parameter
-    Optional<Integer> expected();
+    ValueAndMaybeTimestamp expected();
 
     @Value.Check
     default void actualAndExpectedAreNotEqualToEachOther() {
@@ -39,6 +39,10 @@ default void actualAndExpectedAreNotEqualToEachOther() {
     }
 
     static MismatchedValue of(Optional<Integer> actual, Optional<Integer> expected) {
+        return MismatchedValue.of(ValueAndMaybeTimestamp.of(actual), ValueAndMaybeTimestamp.of(expected));
+    }
+
+    static MismatchedValue of(ValueAndMaybeTimestamp actual, ValueAndMaybeTimestamp expected) {
         return ImmutableMismatchedValue.of(actual, expected);
     }
 }u}(jv (596cccc8bfe0813aaf92d90536ccec5e30931db3j katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/TransactionInvariant.javaj addedjܓ Kjݓ K j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -0,0 +1,22 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import java.util.List;
+
+public interface TransactionInvariant extends Invariant<List<InvalidWitnessedTransaction>> {}u}(jv (f4cdcb16e74fcf6db212f3bb382ada34382c7076j matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/ValueAndMaybeTimestamp.javaj addedjܓ KEjݓ K j KEj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X	  @@ -0,0 +1,69 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import java.util.Optional;
+import org.immutables.value.Value;
+
+/**
+ * Occasionally, storing just a value might not be enough context needed when validating an invariant.
+ *
+ * For example, to detect that the ABA problem has occurred (ABA problem (https://en.wikipedia.org/wiki/ABA_problem),
+ * values alone would not be sufficient. Storing the timestamp associated with the value, such as the start timestamp,
+ * would be able to catch these sort of cases.
+ */
+@Value.Immutable
+public interface ValueAndMaybeTimestamp {
+    ValueAndMaybeTimestamp EMPTY = of(Optional.empty(), Optional.empty());
+
+    /**
+     * Value, which when empty either indicates it does not exist, or has been deleted.
+     */
+    @Value.Parameter
+    Optional<Integer> value();
+
+    /**
+     * Optional timestamp associated with the value. When empty it means either it does not exist, or it is not needed
+     * for comparison.
+     */
+    @Value.Parameter
+    Optional<Long> timestamp();
+
+    static ValueAndMaybeTimestamp empty() {
+        return EMPTY;
+    }
+
+    static ValueAndMaybeTimestamp of(Integer value) {
+        return of(Optional.of(value));
+    }
+
+    static ValueAndMaybeTimestamp of(Optional<Integer> value) {
+        return of(value, Optional.empty());
+    }
+
+    static ValueAndMaybeTimestamp of(Optional<Integer> value, Long timestamp) {
+        return of(value, Optional.of(timestamp));
+    }
+
+    static ValueAndMaybeTimestamp of(Integer value, Long timestamp) {
+        return of(Optional.of(value), Optional.of(timestamp));
+    }
+
+    static ValueAndMaybeTimestamp of(Optional<Integer> value, Optional<Long> timestamp) {
+        return ImmutableValueAndMaybeTimestamp.of(value, timestamp);
+    }
+}u}(jv (2725912f8e075ab25f996c376910f257d6850d7fj ^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ColumnValue.javaj addedjܓ K jݓ K j K j https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ColumnValue {
+    @Value.Parameter
+    int column();
+
+    @Value.Parameter
+    int value();
+
+    static ColumnValue of(int column, int value) {
+        return ImmutableColumnValue.of(column, value);
+    }
+}u}(jv (8a9dd68a171bcb94d41b777979635f8a4cca5c99j matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelection.javaj addedjܓ KBjݓ K j KBj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j Xq	  @@ -0,0 +1,66 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.google.common.collect.Range;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ColumnRangeSelection {
+    Optional<Integer> startColumnInclusive();
+
+    Optional<Integer> endColumnExclusive();
+
+    default boolean contains(int column) {
+        return asGuavaRange().contains(column);
+    }
+
+    default Range<Integer> asGuavaRange() {
+        if (startColumnInclusive().isEmpty()) {
+            if (endColumnExclusive().isEmpty()) {
+                return Range.all();
+            } else {
+                return Range.lessThan(endColumnExclusive().get());
+            }
+        } else {
+            if (endColumnExclusive().isEmpty()) {
+                return Range.atLeast(startColumnInclusive().get());
+            } else {
+                return Range.closedOpen(
+                        startColumnInclusive().get(), endColumnExclusive().get());
+            }
+        }
+    }
+
+    @Value.Check
+    default void check() {
+        Preconditions.checkState(
+                startColumnInclusive().isEmpty()
+                        || endColumnExclusive().isEmpty()
+                        || startColumnInclusive().get() <= endColumnExclusive().get(),
+                "Start column must be less than or equal to end column",
+                SafeArg.of("startColumnInclusive", startColumnInclusive()),
+                SafeArg.of("endColumnExclusive", endColumnExclusive()));
+    }
+
+    static ImmutableColumnRangeSelection.Builder builder() {
+        return ImmutableColumnRangeSelection.builder();
+    }
+}u}(jv (bd06cc1312715a991167d81bd1ceb940ff719fc1j patlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/DeleteTransactionAction.javaj modifiedjܓ Kjݓ Kj Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X{  @@ -22,7 +22,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface DeleteTransactionAction extends TransactionAction {
+public interface DeleteTransactionAction extends SingleCellTransactionAction {
 
     default WitnessedDeleteTransactionAction witness() {
         return ImmutableWitnessedDeleteTransactionAction.of(table(), cell());u}(jv (e9ae2e08974eda0443281b98d5bc9d2fb9243eccj natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ReadTransactionAction.javaj modifiedjܓ Kjݓ Kj Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -23,7 +23,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface ReadTransactionAction extends TransactionAction {
+public interface ReadTransactionAction extends SingleCellTransactionAction {
 
     default WitnessedReadTransactionAction witness(Optional<Integer> value) {
         return ImmutableWitnessedReadTransactionAction.of(table(), cell(), value);u}(jv (38bd65bb4f96e9501721390809e74a159a2f3b13j |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowColumnRangeReadTransactionAction.javaj addedjܓ K7jݓ K j K7j https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X	  @@ -0,0 +1,55 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import java.util.List;
+import org.immutables.value.Value;
+
+/**
+ * This transaction action models a column range read in AtlasDB ("getRowsColumnRange" in the AtlasDB API).
+ * <p>
+ * In the interest of implementation simplicity, two significant simplifications are made. Firstly, the action is
+ * presumed to act on a single row, though calls to getRowsColumnRange in practice can act on multiple rows in parallel.
+ * Secondly, values read from getRowsColumnRange are accessed through a live iterator, while for purposes of gathering
+ * a witness, we immediately drain the iterator and use the set of columns read as the witness to this action.
+ */
+@Value.Immutable
+public interface RowColumnRangeReadTransactionAction extends TransactionAction {
+    String table();
+
+    int row();
+
+    ColumnRangeSelection columnRangeSelection();
+
+    @Override
+    default <T> T accept(TransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    default WitnessedRowColumnRangeReadTransactionAction witness(List<ColumnValue> columnsAndValues) {
+        return WitnessedRowColumnRangeReadTransactionAction.builder()
+                .originalQuery(this)
+                .columnsAndValues(columnsAndValues)
+                .build();
+    }
+
+    static ImmutableRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableRowColumnRangeReadTransactionAction.builder();
+    }
+}u}(jv (47b25ab538c861987aa480e47c2bb08032e32fc0j tatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/SingleCellTransactionAction.javaj addedjܓ Kjݓ K j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X>  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface SingleCellTransactionAction extends TransactionAction {
+    /** Table to apply transaction to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) to apply the action to. */
+    @Value.Parameter
+    WorkloadCell cell();
+}u}(jv (e6ee57fa3732a9a1984c98b088bfc9a577a7fbe8j jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionAction.javaj modifiedjܓ K jݓ Kj Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.WorkloadCell;
-import org.immutables.value.Value;
-
 public interface TransactionAction {
-
-    /** Table to apply transaction to. */
-    @Value.Parameter
-    String table();
-
-    /** Cell (Key, Column) to apply the action to. */
-    @Value.Parameter
-    WorkloadCell cell();
-
     <T> T accept(TransactionActionVisitor<T> visitor);
 }u}(jv (1625640516054c38d6886dbd91b10123cb0bb223j qatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionActionVisitor.javaj modifiedjܓ Kjݓ K j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -22,4 +22,6 @@ public interface TransactionActionVisitor<T> {
     T visit(WriteTransactionAction writeTransactionAction);
 
     T visit(DeleteTransactionAction deleteTransactionAction);
+
+    T visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction);
 }u}(jv (7b9112fa4356eade1fb793e23ca54d962811ccfcj oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/WriteTransactionAction.javaj modifiedjܓ Kjݓ Kj Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -22,7 +22,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WriteTransactionAction extends TransactionAction {
+public interface WriteTransactionAction extends SingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(jv (2f66134a6e594e63bdba1ebec482177c03bd9220j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedSingleCellTransactionAction.javaj addedjܓ K"jݓ K j K"j https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j XP  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.invariant.MismatchedValue;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedSingleCellTransactionAction extends InvalidWitnessedTransactionAction {
+    @Value.Parameter
+    WitnessedSingleCellTransactionAction action();
+
+    @Value.Parameter
+    MismatchedValue mismatchedValue();
+
+    static InvalidWitnessedSingleCellTransactionAction of(
+            WitnessedSingleCellTransactionAction action, MismatchedValue mismatchedValue) {
+        return ImmutableInvalidWitnessedSingleCellTransactionAction.of(action, mismatchedValue);
+    }
+}u}(jv (f2fc56cca46a09c2ef718c3b7cb6b8d4000c1d8fj atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javaj modifiedjܓ Kjݓ K
j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j Xw  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.invariant.MismatchedValue;
-import org.immutables.value.Value;
-
-@Value.Immutable
 public interface InvalidWitnessedTransactionAction {
-    @Value.Parameter
-    WitnessedTransactionAction action();
-
-    @Value.Parameter
-    MismatchedValue mismatchedValue();
-
-    static InvalidWitnessedTransactionAction of(WitnessedTransactionAction action, MismatchedValue mismatchedValue) {
-        return ImmutableInvalidWitnessedTransactionAction.of(action, mismatchedValue);
-    }
+    // Marker interface
 }u}(jv (664e279d4223b1f5897c5f45615e3cdbdaa71ac3j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedDeleteTransactionAction.javaj modifiedjܓ Kjݓ Kj Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j Xo  @@ -20,7 +20,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedDeleteTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedDeleteTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {u}(jv (beff6229abcbdbf535af57c09c43ad7c92566201j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedReadTransactionAction.javaj modifiedjܓ Kjݓ Kj Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X7  @@ -21,7 +21,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedReadTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedReadTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(jv (284f26075e3ae1ed8320bcbc8402749af631ccddj atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javaj addedjܓ K;jݓ K j K;j https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X	  @@ -0,0 +1,59 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedTransactionAction {
+    RowColumnRangeReadTransactionAction originalQuery();
+
+    // This is a List rather than a Set or Map because the ordering in which the columns and values are returned is
+    // important (it must match the ordering specified by the contract of row column range reads).
+    List<ColumnValue> columnsAndValues();
+
+    @Override
+    default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    @Value.Check
+    default void check() {
+        Set<Integer> knownColumns = new HashSet<>();
+        Set<Integer> duplicateColumns = columnsAndValues().stream()
+                .map(ColumnValue::column)
+                .filter(column -> !knownColumns.add(column))
+                .collect(Collectors.toSet());
+        Preconditions.checkState(
+                duplicateColumns.isEmpty(),
+                "Duplicate columns in columnsAndValues",
+                SafeArg.of("duplicateColumns", duplicateColumns),
+                SafeArg.of("columnsAndValues", columnsAndValues()));
+    }
+
+    static ImmutableWitnessedRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableWitnessedRowColumnRangeReadTransactionAction.builder();
+    }
+}uQ     }(jv (eed34c03b4bd04c09374ca41608cb74986cb40c0j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedSingleCellTransactionAction.javaj addedjܓ Kjݓ K j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j XW  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface WitnessedSingleCellTransactionAction extends WitnessedTransactionAction {
+    /** Table action was applied to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) the action applied to. */
+    @Value.Parameter
+    WorkloadCell cell();
+}u}(jv (3e350184f320b0cd81f7019819c5d83c6a9d8602j }atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionAction.javaj modifiedjܓ K jݓ Kj Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.store.WorkloadCell;
-import org.immutables.value.Value;
-
 public interface WitnessedTransactionAction {
-
-    /** Table action was applied to. */
-    @Value.Parameter
-    String table();
-
-    /** Cell (Key, Column) the action applied to. */
-    @Value.Parameter
-    WorkloadCell cell();
-
     <T> T accept(WitnessedTransactionActionVisitor<T> visitor);
 }u}(jv (ca4d65c16390f51cc645a365e26e4c1c79a67e15j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionActionVisitor.javaj modifiedjܓ Kjݓ K j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X>  @@ -22,4 +22,6 @@ public interface WitnessedTransactionActionVisitor<T> {
     T visit(WitnessedWriteTransactionAction writeTransactionAction);
 
     T visit(WitnessedDeleteTransactionAction deleteTransactionAction);
+
+    T visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction);
 }u}(jv (43687fd4d7dbdc3a1ac0ec26f2f38d0366613022j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedWriteTransactionAction.javaj modifiedjܓ Kjݓ Kj Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X(  @@ -20,7 +20,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WitnessedWriteTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedWriteTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(jv (636e11dbc52b78329590a8ee90644f9728e5fb69j jatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/invariant/MismatchedValueTest.javaj modifiedjܓ Kjݓ Kj Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j Xz  @@ -21,13 +21,12 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 
 import com.palantir.logsafe.SafeArg;
-import java.util.Optional;
 import org.junit.Test;
 
 public final class MismatchedValueTest {
 
-    private static final Optional<Integer> VALUE_ONE = Optional.of(15);
-    private static final Optional<Integer> VALUE_TWO = Optional.of(25);
+    private static final ValueAndMaybeTimestamp VALUE_ONE = ValueAndMaybeTimestamp.of(25);
+    private static final ValueAndMaybeTimestamp VALUE_TWO = ValueAndMaybeTimestamp.of(15);
 
     @Test
     public void canConstructMismatchedValueFromTwoDifferentValues() {u}(jv (e023081417c4bca7cf9bb80aeeb71bd64bdf21a4j qatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelectionTest.javaj addedjܓ Kbjݓ K j Kbj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -0,0 +1,98 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.Optional;
+import org.junit.Test;
+
+public class ColumnRangeSelectionTest {
+    @Test
+    public void cannotCreateRangeWithStartColumnGreaterThanEndColumn() {
+        assertThatLoggableExceptionThrownBy(() -> ColumnRangeSelection.builder()
+                        .startColumnInclusive(5)
+                        .endColumnExclusive(4)
+                        .build())
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Start column must be less than or equal to end column")
+                .hasExactlyArgs(
+                        SafeArg.of("startColumnInclusive", Optional.of(5)),
+                        SafeArg.of("endColumnExclusive", Optional.of(4)));
+    }
+
+    @Test
+    public void emptyRangeDoesNotContainAnyElements() {
+        ColumnRangeSelection emptyRange = ColumnRangeSelection.builder()
+                .startColumnInclusive(6)
+                .endColumnExclusive(6)
+                .build();
+        assertThat(emptyRange.contains(5)).isFalse();
+        assertThat(emptyRange.contains(6)).isFalse();
+        assertThat(emptyRange.contains(7)).isFalse();
+        assertThat(emptyRange.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(emptyRange.contains(Integer.MAX_VALUE)).isFalse();
+    }
+
+    @Test
+    public void singleElementRangeContainsJustItself() {
+        ColumnRangeSelection justSeven = ColumnRangeSelection.builder()
+                .startColumnInclusive(7)
+                .endColumnExclusive(8)
+                .build();
+        assertThat(justSeven.contains(6)).isFalse();
+        assertThat(justSeven.contains(7)).isTrue();
+        assertThat(justSeven.contains(8)).isFalse();
+        assertThat(justSeven.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(justSeven.contains(Integer.MAX_VALUE)).isFalse();
+    }
+
+    @Test
+    public void universalRangeContainsEverything() {
+        ColumnRangeSelection universal = ColumnRangeSelection.builder().build();
+        assertThat(universal.contains(10241024)).isTrue();
+        assertThat(universal.contains(-20482048)).isTrue();
+        assertThat(universal.contains(40924092)).isTrue();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isTrue();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isTrue();
+    }
+
+    @Test
+    public void lowerBoundedRangesContainCorrectElements() {
+        ColumnRangeSelection universal =
+                ColumnRangeSelection.builder().startColumnInclusive(5).build();
+        assertThat(universal.contains(4)).isFalse();
+        assertThat(universal.contains(5)).isTrue();
+        assertThat(universal.contains(6)).isTrue();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isTrue();
+    }
+
+    @Test
+    public void upperBoundedRangesContainCorrectElements() {
+        ColumnRangeSelection universal =
+                ColumnRangeSelection.builder().endColumnExclusive(5).build();
+        assertThat(universal.contains(4)).isTrue();
+        assertThat(universal.contains(5)).isFalse();
+        assertThat(universal.contains(6)).isFalse();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isTrue();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isFalse();
+    }
+}u}(jv (d8ae0172e04f5d987b18981c085af657a86bf0e4j atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javaj modifiedjܓ Kjݓ Kj Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -54,7 +54,7 @@ public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
     public void toFullyWitnessedCopiesArgumentsCorrectly() {
         WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
         WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
-        List<WitnessedTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
+        List<WitnessedSingleCellTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
         FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
                 .startTimestamp(START_TIMESTAMP)
                 .commitTimestamp(COMMIT_TIMESTAMP)u}(jv (b2c905aecbadb5eff96bc5dbc26f890c72dbd00cj atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javaj addedjܓ KGjݓ K j KGj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X
  @@ -0,0 +1,71 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import org.junit.Test;
+
+public class WitnessedRowColumnRangeReadTransactionActionTest {
+    @Test
+    public void canCreateWitness() {
+        assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
+                        .build())
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void cannotCreateWitnessWithDuplicateColumns() {
+        List<ColumnValue> columnsAndValues = ImmutableList.of(
+                ColumnValue.of(1, 5),
+                ColumnValue.of(5, 1),
+                ColumnValue.of(1, 3),
+                ColumnValue.of(5, 8),
+                ColumnValue.of(9, 99));
+
+        assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .addAllColumnsAndValues(columnsAndValues)
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
+                        .build())
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Duplicate columns in columnsAndValues")
+                .hasExactlyArgs(
+                        SafeArg.of("duplicateColumns", ImmutableSet.of(1, 5)),
+                        SafeArg.of("columnsAndValues", columnsAndValues));
+    }
+}u}(jv (37e59da7fde3c443b1071e9b0c484c2da4e9f50ej latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedjܓ K\jݓ Kj K]j https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X'  @@ -35,6 +35,10 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
@@ -44,6 +48,8 @@
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
 import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflows;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;
@@ -118,10 +124,12 @@ private void scheduleBackgroundJobs(Environment environment) {
     }
 
     private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {
+        // This is a single threaded executor; this is intentional, so that we only run one workflow at a time.
         ExecutorService antithesisWorkflowRunnerExecutorService = environment
                 .lifecycle()
                 .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
                 .build();
+
         MetricsManager metricsManager = MetricsManagers.of(environment.metrics(), taggedMetricRegistry);
         AtlasDbTransactionStoreFactory transactionStoreFactory = AtlasDbTransactionStoreFactory.createFromConfig(
                 configuration.install().atlas(),
@@ -136,6 +144,12 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().transientRowsConfig();
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
+        SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadNoTouchWorkflowConfiguration =
+                configuration.install().singleBusyCellReadsNoTouchConfig();
+        BankBalanceWorkflowConfiguration bankBalanceConfig =
+                configuration.install().bankBalanceConfig();
+        RandomWorkflowConfiguration randomWorkflowConfig =
+                configuration.install().randomConfig();
 
         waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
 
@@ -148,7 +162,13 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                         createTransientRowsWorkflowValidator(
                                 transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
                         createSingleBusyCellWorkflowValidator(
-                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()));
+                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellReadNoTouchWorkflowValidator(
+                                transactionStoreFactory,
+                                singleBusyCellReadNoTouchWorkflowConfiguration,
+                                environment.lifecycle()),
+                        createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
+                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -208,10 +228,12 @@ private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
             LifecycleEnvironment lifecycle) {
         ExecutorService readExecutor = lifecycle
                 .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-read")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
                 .maxThreads(workflowConfig.maxThreadCount() / 2)
                 .build();
         ExecutorService writeExecutor = lifecycle
                 .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-write")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
                 .maxThreads(workflowConfig.maxThreadCount() / 2)
                 .build();
         InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
@@ -230,6 +252,37 @@ private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
                 SerializableInvariantLogReporter.INSTANCE);
     }
 
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellReadNoTouchWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellReadNoTouchWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-read")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-write")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellReadNoTouchWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellReadNoTouchWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
     private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             RingWorkflowConfiguration workflowConfig,
@@ -265,6 +318,43 @@ private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator
                 .build();
     }
 
+    private WorkflowAndInvariants<Workflow> createBankBalanceWorkflow(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            BankBalanceWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, BankBalanceWorkflows.class);
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(BankBalanceWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        BankBalanceWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+                .build();
+    }
+
+    private WorkflowAndInvariants<Workflow> createRandomWorkflow(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            RandomWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RandomWorkflows.class);
+        TransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(RandomWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        RandomWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
     @VisibleForTesting
     CountDownLatch workflowsRanLatch() {
         return workflowsRanLatch;
@@ -279,6 +369,7 @@ private static <T> ExecutorService createExecutorService(
             WorkflowConfiguration workflowConfig, LifecycleEnvironment lifecycle, Class<T> workflowFactoryClass) {
         return lifecycle
                 .executorService(workflowFactoryClass.getSimpleName())
+                .minThreads(workflowConfig.maxThreadCount())
                 .maxThreads(workflowConfig.maxThreadCount())
                 .build();
     }u}(jv (388054e20c18c9c8d612db0e6d9ac1018b7f9b14j atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj modifiedjܓ K	jݓ K j K	j https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -19,9 +19,12 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
 
@@ -39,5 +42,11 @@ public interface WorkloadServerInstallConfiguration {
 
     SingleBusyCellWorkflowConfiguration singleBusyCellConfig();
 
+    BankBalanceWorkflowConfiguration bankBalanceConfig();
+
+    RandomWorkflowConfiguration randomConfig();
+
+    SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadsNoTouchConfig();
+
     boolean exitAfterRunning();
 }u}(jv (da4b728986375bd8565c46e930098c1a684a145cj Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj modifiedjܓ Kjݓ K j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -29,4 +29,23 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  bankBalanceConfig:
+    tableConfiguration:
+      tableName: bank-balance-test
+      isolationLevel: SNAPSHOT
+    iterationCount: 100
+    type: bank-balance
+  randomConfig:
+    tableConfiguration:
+      tableName: random-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: false
\ No newline at end of fileu}(jv (50dbd20de7876d2a9cb53eef291722b8b19cd0b5j Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj modifiedjܓ Kjݓ K j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -66,4 +66,23 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  bankBalanceConfig:
+    tableConfiguration:
+      tableName: bank_balance_test
+      isolationLevel: SNAPSHOT
+    iterationCount: 100
+    type: bank-balance
+  randomConfig:
+    tableConfiguration:
+      tableName: random_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single_busy_cell_no_touch_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: trueu}(jv (7bd7f984a5ef15a2179c415620f48a0737332c43j Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj modifiedjܓ Kjݓ K j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -30,4 +30,23 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  bankBalanceConfig:
+    tableConfiguration:
+      tableName: bank-balance-test
+      isolationLevel: SNAPSHOT
+    iterationCount: 100
+    type: bank-balance
+  randomConfig:
+    tableConfiguration:
+      tableName: random-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: true
\ No newline at end of fileu}(jv (7f8015ae9aa8e1cda19fbbfa7a571ed881b71b56j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj modifiedjܓ Kjݓ Kj K
j https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -18,10 +18,12 @@
 
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -30,7 +32,7 @@
 import java.util.function.Consumer;
 import one.util.streamex.StreamEx;
 
-public enum SerializableInvariant implements Invariant<List<InvalidWitnessedTransaction>> {
+public enum SerializableInvariant implements TransactionInvariant {
     INSTANCE;
 
     @Override
@@ -68,7 +70,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactio
                     .orElseGet(Optional::empty);
 
             if (!expectedValue.equals(readTransactionAction.value())) {
-                return Optional.of(InvalidWitnessedTransactionAction.of(
+                return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
                         readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expectedValue)));
             }
 
@@ -88,5 +90,12 @@ public Optional<InvalidWitnessedTransactionAction> visit(
             inMemoryTransactionReplayer.visit(deleteTransactionAction);
             return Optional.empty();
         }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+            // TODO (jkong): Not implemented yet
+            return Optional.empty();
+        }
     }
 }u}(jv (875d7b415beab11ac8c7b5cb94591f3b3a874168j datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariant.javaj addedjܓ KUjݓ K j KUj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -0,0 +1,85 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.function.Consumer;
+
+/**
+ * This invariant checks that the snapshot isolation property is maintained.
+ * <p>
+ * The way this check works, is by replaying all transactions sorted by their effective timestamp. Transactions are
+ * replayed to an immutable map, allowing us to track each table's state at any given time. These table views are
+ * persisted to a {@link java.util.NavigableMap} by the commit timestamp of each transaction, with the value being
+ * the version of the immutable map at that point-in-time.
+ * <p>
+ * Reads are validated by comparing values from the view of a table at the start timestamp (read view),
+ * and comparing to what we've witnessed. Local writes are replayed onto the read view to ensure we
+ * don't flag false-positives, but is not witnessed by other transactions.
+ * <p>
+ * Writes are validated by first checking that the value we're writing to hasn't changed between the read view and the
+ * latest view. This would indicate a write-write conflict miss, as we should've conflicted with this transaction.
+ * Otherwise, once the transaction is replayed on top of the latest view, we persist this new view at the
+ * commit timestamp.
+ */
+public enum SnapshotInvariant implements TransactionInvariant {
+    INSTANCE;
+
+    @Override
+    public void accept(
+            WorkflowHistory workflowHistory, Consumer<List<InvalidWitnessedTransaction>> invalidWitnessedTransactions) {
+        ImmutableList.Builder<InvalidWitnessedTransaction> invalidTransactionsBuilder = new ImmutableList.Builder<>();
+        VersionedTableView<TableAndWorkloadCell, ValueAndMaybeTimestamp> tableView = new VersionedTableView<>();
+        for (WitnessedTransaction witnessedTransaction : workflowHistory.history()) {
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestTableView =
+                    tableView.getLatestTableView();
+
+            SnapshotInvariantVisitor visitor = new SnapshotInvariantVisitor(
+                    witnessedTransaction.startTimestamp(),
+                    latestTableView,
+                    tableView.getView(witnessedTransaction.startTimestamp()));
+
+            ImmutableList.Builder<InvalidWitnessedTransactionAction> invalidTransactionActionsBuilder =
+                    new ImmutableList.Builder<>();
+            for (WitnessedTransactionAction action : witnessedTransaction.actions()) {
+                action.accept(visitor).ifPresent(invalidTransactionActionsBuilder::add);
+            }
+
+            List<InvalidWitnessedTransactionAction> invalidTransactionActions =
+                    invalidTransactionActionsBuilder.build();
+
+            witnessedTransaction
+                    .commitTimestamp()
+                    .ifPresent(commitTimestamp -> tableView.put(commitTimestamp, latestTableView.getSnapshot()));
+
+            if (!invalidTransactionActions.isEmpty()) {
+                invalidTransactionsBuilder.add(
+                        InvalidWitnessedTransaction.of(witnessedTransaction, invalidTransactionActions));
+            }
+        }
+        invalidWitnessedTransactions.accept(invalidTransactionsBuilder.build());
+    }
+}u}(jv (077c0294a2f984f9f97dca7c4b24ef6de5bc6f16j katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj addedjܓ Kjݓ K j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j Xm  @@ -0,0 +1,134 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.collection.Map;
+import java.util.Optional;
+
+/**
+ * Replays transactions and validates for conflicts on the latest and read view.
+ * <p>
+ * The latest view will be a view of the database at the commit timestamp, while the read view will be the view of
+ * the database at the start timestamp.
+ * <p>
+ * Objects created from this class should only be used within a scope of a single transaction.
+ */
+final class SnapshotInvariantVisitor
+        implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
+
+    private final Long startTimestamp;
+    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestView;
+    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> readView;
+
+    SnapshotInvariantVisitor(
+            Long startTimestamp,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestView,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> readView) {
+        this.startTimestamp = startTimestamp;
+        this.latestView = latestView;
+        this.readView = readView;
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+        Optional<Integer> expected = fetchValueFromView(
+                        readTransactionAction.table(), readTransactionAction.cell(), readView)
+                .value();
+        if (!expected.equals(readTransactionAction.value())) {
+            return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
+                    readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expected)));
+        }
+        return Optional.empty();
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
+        Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
+                        writeTransactionAction.table(), writeTransactionAction.cell())
+                .map(mismatchedValue ->
+                        InvalidWitnessedSingleCellTransactionAction.of(writeTransactionAction, mismatchedValue));
+
+        applyWrites(
+                writeTransactionAction.table(),
+                writeTransactionAction.cell(),
+                Optional.of(writeTransactionAction.value()));
+        return invalidAction;
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+        Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
+                        deleteTransactionAction.table(), deleteTransactionAction.cell())
+                .map(mismatchedValue ->
+                        InvalidWitnessedSingleCellTransactionAction.of(deleteTransactionAction, mismatchedValue));
+
+        applyWrites(deleteTransactionAction.table(), deleteTransactionAction.cell(), Optional.empty());
+        return invalidAction;
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(
+            WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        // TODO (jkong): Not implemented yet
+        return Optional.empty();
+    }
+
+    /**
+     * Applies writes to both our read and latest table view.
+     * Latest table view needs to be updated to apply our writes from our transaction,
+     * while the read view is updated to reflect local writes.
+     */
+    private void applyWrites(String tableName, WorkloadCell cell, Optional<Integer> value) {
+        readView.with(table ->
+                table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndMaybeTimestamp.of(value, startTimestamp)));
+        latestView.with(table ->
+                table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndMaybeTimestamp.of(value, startTimestamp)));
+    }
+
+    /**
+     * Checks that the value we are writing has not changed from our read view and the latest view. If it has,
+     * that means we have missed a write-write conflict, as it should have conflicted with this transaction.
+     */
+    private Optional<MismatchedValue> checkForWriteWriteConflicts(String table, WorkloadCell cell) {
+        ValueAndMaybeTimestamp previous = fetchValueFromView(table, cell, readView);
+        ValueAndMaybeTimestamp latest = fetchValueFromView(table, cell, latestView);
+
+        if (!previous.equals(latest)) {
+            return Optional.of(MismatchedValue.of(latest, previous));
+        }
+
+        return Optional.empty();
+    }
+
+    private static ValueAndMaybeTimestamp fetchValueFromView(
+            String tableName,
+            WorkloadCell workloadCell,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> view) {
+        TableAndWorkloadCell tableAndWorkloadCell = TableAndWorkloadCell.of(tableName, workloadCell);
+        return view.getSnapshot().get(tableAndWorkloadCell).toJavaOptional().orElseGet(ValueAndMaybeTimestamp::empty);
+    }
+}u}(jv (0729ad724e2b47dc1415a32180124d780320f58ej eatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/VersionedTableView.javaj addedjܓ K6jݓ K j K6j https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j XG	  @@ -0,0 +1,54 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.Optional;
+import java.util.TreeMap;
+import javax.annotation.concurrent.NotThreadSafe;
+
+@NotThreadSafe
+public final class VersionedTableView<K, V> {
+    private final java.util.NavigableMap<Long, Map<K, V>> tableViews = new TreeMap<>();
+
+    public void put(Long commitTimestamp, Map<K, V> tableView) {
+        tableViews.put(commitTimestamp, tableView);
+    }
+
+    public StructureHolder<Map<K, V>> getView(Long startTimestamp) {
+        Preconditions.checkArgument(
+                !tableViews.containsKey(startTimestamp),
+                "It is expected when obtaining a view "
+                        + "from the start timestamp, that it should not already exist or be present within the map. "
+                        + "As all keys in this map should be commit timestamps, and all timestamps are immutable.",
+                SafeArg.of("startTimestamp", startTimestamp),
+                SafeArg.of("tableViews", tableViews));
+        return StructureHolder.create(() -> Optional.ofNullable(tableViews.lowerEntry(startTimestamp))
+                .map(java.util.Map.Entry::getValue)
+                .orElseGet(HashMap::empty));
+    }
+
+    public StructureHolder<Map<K, V>> getLatestTableView() {
+        return StructureHolder.create(() -> Optional.ofNullable(tableViews.lastEntry())
+                .map(java.util.Map.Entry::getValue)
+                .orElseGet(HashMap::empty));
+    }
+}u}(jv (12ac1ba77ac5173e6e93ae318bde8d17c872de28j fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj modifiedjܓ Kjݓ K j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j XC  @@ -27,6 +27,7 @@
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
@@ -159,6 +160,12 @@ public Void visit(DeleteTransactionAction deleteTransactionAction) {
             transaction.delete(deleteTransactionAction.table(), deleteTransactionAction.cell());
             return null;
         }
+
+        @Override
+        public Void visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+            // TODO (jkong): Not implemented yet
+            throw new UnsupportedOperationException("Not implemented yet");
+        }
     }
 
     public static AtlasDbTransactionStore create(u}(jv (53b40b5fe80de185e89ff3bfca0044e6f97e759dj patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj modifiedjܓ Kjݓ K j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -20,6 +20,7 @@
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.HashMap;
@@ -55,6 +56,11 @@ public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         return null;
     }
 
+    @Override
+    public Void visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        return null;
+    }
+
     public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
         return values.getSnapshot();
     }u}(jv (32db22149cce31693c0af4b33f0f275d03565d29j katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javaj modifiedjܓ Kjݓ K j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -18,6 +18,7 @@
 
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 
@@ -39,4 +40,9 @@ public WriteTransactionAction visit(WitnessedWriteTransactionAction writeTransac
     public DeleteTransactionAction visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         return ImmutableDeleteTransactionAction.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
     }
+
+    @Override
+    public TransactionAction visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        return rowColumnRangeReadTransactionAction.originalQuery();
+    }
 }u}(jv (e0b5354ebacbf6077ea736f29765fb8d71159fcdj matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowConfiguration.javaj addedjܓ K:jݓ K j K:j https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -0,0 +1,58 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableRandomWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableRandomWorkflowConfiguration.class)
+@JsonTypeName(RandomWorkflowConfiguration.TYPE)
+public interface RandomWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "random";
+
+    TableConfiguration tableConfiguration();
+
+    @Value.Default
+    default Integer maxWrites() {
+        return 5;
+    }
+
+    @Value.Default
+    default Integer maxReads() {
+        return 5;
+    }
+
+    @Value.Default
+    default Integer maxDeletes() {
+        return 2;
+    }
+
+    @Value.Default
+    default Integer maxCells() {
+        return 10;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jv (a9726d8998a6fbf1c745d6616a2e4356d3889a34j aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javaj addedjܓ Kvjݓ K j Kvj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j Xw  @@ -0,0 +1,118 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.security.SecureRandom;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+import org.jetbrains.annotations.VisibleForTesting;
+
+public final class RandomWorkflows {
+    private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+    private static final Integer COLUMN = 0;
+
+    private RandomWorkflows() {
+        // static factory
+    }
+
+    public static Workflow create(
+            TransactionStore store,
+            RandomWorkflowConfiguration randomWorkflowConfig,
+            ListeningExecutorService executionExecutor) {
+        return create(store, randomWorkflowConfig, executionExecutor, RANDOM);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            TransactionStore store,
+            RandomWorkflowConfiguration randomWorkflowConfig,
+            ListeningExecutorService executionExecutor,
+            SecureRandom random) {
+        RandomWorkflowTask task = new RandomWorkflowTask(randomWorkflowConfig, random);
+        return DefaultWorkflow.create(
+                store, (txnStore, _index) -> task.run(txnStore), randomWorkflowConfig, executionExecutor);
+    }
+
+    private static final class RandomWorkflowTask {
+
+        private final RandomWorkflowConfiguration workflowConfiguration;
+        private final SecureRandom random;
+
+        public RandomWorkflowTask(RandomWorkflowConfiguration workflowConfiguration, SecureRandom random) {
+            this.workflowConfiguration = workflowConfiguration;
+            this.random = random;
+        }
+
+        public Optional<WitnessedTransaction> run(TransactionStore store) {
+            workflowConfiguration.transactionRateLimiter().acquire();
+            List<TransactionAction> actions = Stream.of(
+                            generateReadActions(), generateWriteActions(), generateDeleteActions())
+                    .flatMap(Collection::stream)
+                    .collect(Collectors.toList());
+            Collections.shuffle(actions, random);
+            return store.readWrite(actions);
+        }
+
+        private List<ReadTransactionAction> generateReadActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxReads() + 1))
+                    .boxed()
+                    .map(_index -> ImmutableReadTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(), randomCell()))
+                    .collect(Collectors.toList());
+        }
+
+        private List<WriteTransactionAction> generateWriteActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxWrites() + 1))
+                    .boxed()
+                    .map(_index -> ImmutableWriteTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(),
+                            randomCell(),
+                            random.nextInt(100_000)))
+                    .collect(Collectors.toList());
+        }
+
+        private List<DeleteTransactionAction> generateDeleteActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxDeletes() + 1))
+                    .boxed()
+                    .map(_index -> ImmutableDeleteTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(), randomCell()))
+                    .collect(Collectors.toList());
+        }
+
+        private WorkloadCell randomCell() {
+            return ImmutableWorkloadCell.of(random.nextInt(workflowConfiguration.maxCells()), COLUMN);
+        }
+    }
+}uo     }(jv (cfa7bb7b766851d22237ea49091b9cce6c50c789j atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowConfiguration.javaj addedjܓ K jݓ K j K j https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j Xz  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellReadNoTouchWorkflowConfiguration.TYPE)
+public interface SingleBusyCellReadNoTouchWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell-reads-no-touch";
+
+    TableConfiguration tableConfiguration();
+}u}(jv (ae852affb871f77d186c4b71ecca052b5aeeed40j tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflows.javaj addedjܓ Kjjݓ K j Kjj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions. This workflow differs
+ * from the {@link SingleBusyCellWorkflows} in the way that its read transaction only does read and doesn't touch the
+ * cell with its current value or -1. This allows us to exercise the code path of read-write transaction that only do
+ * reads, which is necessary to catch bugs like sweep deleting entries under a transaction if it doesn't check for
+ * immutableTimestamp lock.
+ */
+public final class SingleBusyCellReadNoTouchWorkflows {
+    private SingleBusyCellReadNoTouchWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReads(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReads(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(
+                        txn -> txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL))))
+                .collect(Collectors.toList());
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
+    }
+}u}(jv (9002a5ed3382a35694d630c784b417cd15befa46j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javaj modifiedjܓ Kjݓ Kj Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j XA  @@ -38,6 +38,7 @@
 import java.security.SecureRandom;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Objects;
 import java.util.Optional;
 import java.util.Set;
 import java.util.stream.Collectors;
@@ -141,10 +142,12 @@ private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActi
                 .orElseThrow(() -> new SafeIllegalStateException(
                         "Expected to find a read of the summary row", SafeArg.of("actions", actions)));
         WitnessedReadTransactionAction normalRowRead = readTransactionActions.stream()
-                .filter(action -> action.cell().key() != SUMMARY_ROW)
+                .filter(action -> Objects.equals(
+                                action.cell().key(), summaryRowRead.cell().column())
+                        && action.cell().column() == COLUMN)
                 .findAny()
                 .orElseThrow(() -> new SafeIllegalStateException(
-                        "Expected to find a read of a normal row", SafeArg.of("actions", actions)));
+                        "Expected to find a read of a corresponding normal row", SafeArg.of("actions", actions)));
         if (!summaryRowRead.value().equals(normalRowRead.value())) {
             return Stream.of(CrossCellInconsistency.builder()
                     .putInconsistentValues(u}(jv (4c009ebe4699e6665fa0c9590874f7ead9b2f33fj gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtils.javaj addedjܓ K^jݓ K j K^j https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -0,0 +1,94 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import com.google.common.collect.ImmutableMap;
+import java.security.SecureRandom;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Optional;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import one.util.streamex.EntryStream;
+
+public final class BankBalanceUtils {
+
+    private BankBalanceUtils() {}
+
+    /**
+     * Validates all the bank balances provided. If all are empty, we will generate a new set of bank balances. If
+     * any are missing, an empty optional is returned to indicate failure state. If balances do not total to the
+     * expected amount, an empty optional is returned.
+     *
+     * @return An empty optional when validation has failed for bank balances. Otherwise, the optional will contain
+     * the validated (or generated) balances.
+     */
+    public static Optional<Map<Integer, Integer>> validateOrGenerateBalances(
+            Map<Integer, Optional<Integer>> maybeBalances, Integer numberOfAccounts, Integer balancePerAccount) {
+        if (allValuesPresent(maybeBalances)) {
+            Integer total = numberOfAccounts * balancePerAccount;
+            Map<Integer, Integer> balances =
+                    EntryStream.of(maybeBalances).mapValues(Optional::get).toMap();
+            if (!sumOfBalancesMatchTotal(balances, total)) {
+                return Optional.empty();
+            }
+            return Optional.of(balances);
+        }
+
+        if (allValuesEmpty(maybeBalances)) {
+            return Optional.of(generateBalances(numberOfAccounts, balancePerAccount));
+        }
+
+        return Optional.empty();
+    }
+
+    public static Map<Integer, Integer> performTransfers(
+            Map<Integer, Integer> balances, int numberOfTransfers, int transferAmount, SecureRandom random) {
+        Map<Integer, Integer> newBalances = new HashMap<>(balances);
+        for (int idx = 0; idx < numberOfTransfers; idx++) {
+            int from = random.nextInt(newBalances.size());
+            int to = random.nextInt(newBalances.size());
+
+            if (newBalances.get(from) - transferAmount < 0) {
+                continue;
+            }
+
+            newBalances.compute(from, (k, v) -> v - transferAmount);
+            newBalances.compute(to, (k, v) -> v + transferAmount);
+        }
+        return ImmutableMap.copyOf(newBalances);
+    }
+
+    private static boolean sumOfBalancesMatchTotal(Map<Integer, Integer> balances, Integer totalBalance) {
+        return balances.values().stream().mapToInt(Integer::intValue).sum() == totalBalance;
+    }
+
+    private static boolean allValuesPresent(Map<Integer, Optional<Integer>> balances) {
+        return balances.values().stream().allMatch(Optional::isPresent);
+    }
+
+    private static boolean allValuesEmpty(Map<Integer, Optional<Integer>> balances) {
+        return balances.values().stream().allMatch(Optional::isEmpty);
+    }
+
+    private static Map<Integer, Integer> generateBalances(Integer numberOfAccounts, Integer balancePerAccount) {
+        return IntStream.range(0, numberOfAccounts)
+                .boxed()
+                .collect(Collectors.toMap(Function.identity(), index -> balancePerAccount));
+    }
+}u}(jv (dd8ae4bd5d9bdf4ebb6f459b4fc1771835066b3ej watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowConfiguration.javaj addedjܓ K7jݓ K j K7j https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -0,0 +1,55 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import com.palantir.atlasdb.workload.workflow.TableConfiguration;
+import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableBankBalanceWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableBankBalanceWorkflowConfiguration.class)
+@JsonTypeName(BankBalanceWorkflowConfiguration.TYPE)
+public interface BankBalanceWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "bank-balance";
+
+    TableConfiguration tableConfiguration();
+
+    @Value.Default
+    default Integer numberOfAccounts() {
+        return 10;
+    }
+
+    @Value.Default
+    default Integer initialBalancePerAccount() {
+        return 100;
+    }
+
+    @Value.Default
+    default Integer transferAmount() {
+        return 75;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jv (2394a7f410f2773d697a6ff47e5911c814eba351j katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflows.javaj addedjܓ Kjݓ K j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -0,0 +1,136 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.security.SecureRandom;
+import java.util.Map;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.jetbrains.annotations.VisibleForTesting;
+
+/**
+ * A workflow which performs a number of account balance transfers between accounts.
+ */
+public final class BankBalanceWorkflows {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(BankBalanceWorkflows.class);
+    private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+
+    private static final Integer COLUMN = 0;
+
+    private BankBalanceWorkflows() {
+        // utility
+    }
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            BankBalanceWorkflowConfiguration bankBalanceWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        BankBalanceRunTask runTask = new BankBalanceRunTask(bankBalanceWorkflowConfiguration);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> runTask.run(txnStore),
+                bankBalanceWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            InteractiveTransactionStore store,
+            BankBalanceWorkflowConfiguration bankBalanceWorkflowConfiguration,
+            ListeningExecutorService executionExecutor,
+            AtomicBoolean skipRunning) {
+        BankBalanceRunTask runTask = new BankBalanceRunTask(skipRunning, bankBalanceWorkflowConfiguration);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> runTask.run(txnStore),
+                bankBalanceWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    private static class BankBalanceRunTask {
+        private final AtomicBoolean skipRunning;
+
+        private final BankBalanceWorkflowConfiguration workflowConfiguration;
+
+        public BankBalanceRunTask(BankBalanceWorkflowConfiguration workflowConfiguration) {
+            this(new AtomicBoolean(), workflowConfiguration);
+        }
+
+        @VisibleForTesting
+        BankBalanceRunTask(AtomicBoolean skipRunning, BankBalanceWorkflowConfiguration workflowConfiguration) {
+            this.skipRunning = skipRunning;
+            this.workflowConfiguration = workflowConfiguration;
+        }
+
+        public Optional<WitnessedTransaction> run(InteractiveTransactionStore store) {
+            if (skipRunning.get()) {
+                return Optional.empty();
+            }
+            workflowConfiguration.transactionRateLimiter().acquire();
+            return store.readWrite(txn -> {
+                Map<Integer, Optional<Integer>> maybeBalances = getAccountBalances(txn);
+                BankBalanceUtils.validateOrGenerateBalances(
+                                maybeBalances,
+                                workflowConfiguration.numberOfAccounts(),
+                                workflowConfiguration.initialBalancePerAccount())
+                        .ifPresentOrElse(balances -> performTransfers(txn, balances), () -> {
+                            if (skipRunning.compareAndSet(false, true)) {
+                                log.error(
+                                        "Balance validation failed, indicating we have violated snapshot isolation.",
+                                        SafeArg.of("maybeBalances", maybeBalances));
+                            }
+                        });
+            });
+        }
+
+        private void performTransfers(InteractiveTransaction transaction, Map<Integer, Integer> balances) {
+            Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(
+                    balances, RANDOM.nextInt(balances.size()), workflowConfiguration.transferAmount(), RANDOM);
+            newBalances.forEach((account, balance) -> transaction.write(
+                    workflowConfiguration.tableConfiguration().tableName(), getCellForAccount(account), balance));
+        }
+
+        private Map<Integer, Optional<Integer>> getAccountBalances(InteractiveTransaction transaction) {
+            return IntStream.range(0, workflowConfiguration.numberOfAccounts())
+                    .boxed()
+                    .collect(Collectors.toMap(
+                            Function.identity(),
+                            index -> transaction.read(
+                                    workflowConfiguration.tableConfiguration().tableName(), getCellForAccount(index))));
+        }
+    }
+
+    public static WorkloadCell getCellForAccount(int accountIndex) {
+        return ImmutableWorkloadCell.of(accountIndex, COLUMN);
+    }
+}u}(jv (0db0afc0570e8993b0ec99aac00c3f57657d6828j latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj modifiedjܓ K
jݓ Kj Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -22,6 +22,7 @@
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
@@ -116,13 +117,18 @@ public void catchesWriteSkew() {
         InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
                 Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
 
-        assertThat(invalidWitnessedTransactionAction.action())
-                .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
-                    assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
-                    assertThat(action.value()).contains(15);
-                });
-        assertThat(invalidWitnessedTransactionAction.mismatchedValue())
-                .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(
+                        InvalidWitnessedSingleCellTransactionAction.class,
+                        invalidSingleCellWitnessedTransactionAction -> {
+                            assertThat(invalidSingleCellWitnessedTransactionAction.action())
+                                    .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
+                                        assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
+                                        assertThat(action.value()).contains(15);
+                                    });
+                            assertThat(invalidSingleCellWitnessedTransactionAction.mismatchedValue())
+                                    .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+                        });
     }
 
     @Testu}(jv (fb5813b8d5288d435a36c31b8acf757dd6e9083bj hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javaj addedjܓ Kjݓ K j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X!  @@ -0,0 +1,170 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class SnapshotInvariantTest {
+    @Mock
+    private ReadableTransactionStore readableTransactionStore;
+
+    @Test
+    public void catchesWriteWriteConflict() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidTransaction.transaction().startTimestamp()).isEqualTo(5L);
+        assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
+
+        InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(InvalidWitnessedSingleCellTransactionAction.class, invalidSingleCellAction -> {
+                    assertThat(invalidSingleCellAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+                    assertThat(invalidSingleCellAction.mismatchedValue())
+                            .isEqualTo(MismatchedValue.of(
+                                    ValueAndMaybeTimestamp.of(WorkloadTestHelpers.VALUE_ONE, 1L),
+                                    ValueAndMaybeTimestamp.empty()));
+                });
+    }
+
+    @Test
+    public void catchesAbaWriteWriteConflictForDeletes() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .delete(5, 10)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidTransaction.transaction().startTimestamp()).isEqualTo(5L);
+        assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
+
+        InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(InvalidWitnessedSingleCellTransactionAction.class, invalidSingleCellAction -> {
+                    assertThat(invalidSingleCellAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+                    assertThat(invalidSingleCellAction.mismatchedValue())
+                            .isEqualTo(MismatchedValue.of(
+                                    ValueAndMaybeTimestamp.of(Optional.empty(), 1L), ValueAndMaybeTimestamp.empty()));
+                });
+    }
+
+    @Test
+    public void doesNotCatchWriteSkew() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .read(5, 10)
+                .write(6, 10, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void doesNotCatchReadOnlyTransactionAnomaly() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(11L)
+                .read(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .startTransaction(12L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(13L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void properlyReplaysReadsAndWrites() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .read(5, 10)
+                .endTransaction(15L)
+                .startTransaction(16L)
+                .read(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(17L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+}u}(jv (536813aeb3973b4b9f9bd25d91bf425cf6efeb37j iatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/VersionedTableViewTest.javaj addedjܓ KHjݓ K j KHj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j XU  @@ -0,0 +1,72 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.TreeMap;
+import org.junit.Test;
+
+public final class VersionedTableViewTest {
+    @Test
+    public void putStoresTable() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        tableView.put(1L, HashMap.of(10L, 20L));
+        assertThat(tableView.getLatestTableView().getSnapshot().toJavaMap())
+                .containsExactlyEntriesOf(java.util.Map.of(10L, 20L));
+    }
+
+    @Test
+    public void getLatestTableViewFetchesLargestVersion() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedLastView = HashMap.of(30L, 40L);
+        tableView.put(1L, HashMap.of(10L, 20L));
+        tableView.put(2L, HashMap.of(20L, 30L));
+        tableView.put(3L, HashMap.of(30L, 40L));
+        assertThat(tableView.getLatestTableView().getSnapshot()).isEqualTo(expectedLastView);
+    }
+
+    @Test
+    public void getViewFetchesViewBeforeTimestamp() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedView = HashMap.of(10L, 20L);
+        tableView.put(1L, expectedView);
+        tableView.put(3L, HashMap.of(20L, 30L));
+        assertThat(tableView.getView(2L).getSnapshot()).isEqualTo(expectedView);
+    }
+
+    @Test
+    public void getViewThrowsWhenFetchingViewForTimestampThatExists() {
+        Long timestamp = 1L;
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedView = HashMap.of(10L, 20L);
+        tableView.put(timestamp, expectedView);
+
+        TreeMap<Long, Map<Long, Long>> tableViews = new TreeMap<>();
+        tableViews.put(timestamp, tableView.getLatestTableView().getSnapshot());
+
+        assertThatLoggableExceptionThrownBy(() -> tableView.getView(1L).getSnapshot())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("It is expected when obtaining a view")
+                .hasExactlyArgs(SafeArg.of("startTimestamp", 1L), SafeArg.of("tableViews", tableViews));
+    }
+}u}(jv (cad53b71091234e55f82b97b4b6e475eebb5559bj qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj modifiedjܓ Kjݓ K j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -40,6 +40,13 @@ public WitnessedTransactionsBuilder(String table) {
         this.table = table;
     }
 
+    public WitnessedTransactionBuilder startTransaction(long startTimestamp) {
+        if (startTimestamp > timestampCounter.get()) {
+            timestampCounter.set(startTimestamp);
+        }
+        return new WitnessedTransactionBuilder(startTimestamp);
+    }
+
     public WitnessedTransactionBuilder startTransaction() {
         return new WitnessedTransactionBuilder(timestampCounter.incrementAndGet());
     }u}(jv (bdf9a77b3f524e363e5144842e79d33e09bcbe78j hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javaj modifiedjܓ Kjݓ K j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -19,6 +19,7 @@
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.invariant.ValueAndMaybeTimestamp;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
@@ -58,5 +59,9 @@ public final class WorkloadTestHelpers {
             TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_ONE);
     public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
             TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO);
+
+    public static final ValueAndMaybeTimestamp VALUE_ONE_AND_TIMESTAMP = ValueAndMaybeTimestamp.of(VALUE_ONE, 1L);
+
+    public static final ValueAndMaybeTimestamp VALUE_TWO_AND_TIMESTAMP = ValueAndMaybeTimestamp.of(VALUE_TWO, 1L);
     public static final String WORKFLOW = "example-workflow";
 }u}(jv (aab6c8e21d5584a8291807921d8d032d4786559dj eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowsTest.javaj addedjܓ Kdjݓ K j Kdj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j Xh  @@ -0,0 +1,100 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.security.SecureRandom;
+import java.util.Collection;
+import java.util.List;
+import java.util.stream.Collectors;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class RandomWorkflowsTest {
+    private static final String TABLE_NAME = "random.random";
+    private static final RandomWorkflowConfiguration CONFIGURATION = ImmutableRandomWorkflowConfiguration.builder()
+            .tableConfiguration(ImmutableTableConfiguration.builder()
+                    .tableName(TABLE_NAME)
+                    .isolationLevel(IsolationLevel.SERIALIZABLE)
+                    .build())
+            .iterationCount(1)
+            .build();
+
+    private final TransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+
+    @Mock
+    private SecureRandom random;
+
+    private Workflow workflow;
+
+    @Before
+    public void before() {
+        this.workflow = RandomWorkflows.create(
+                memoryStore,
+                CONFIGURATION,
+                MoreExecutors.listeningDecorator(PTExecutors.newSingleThreadExecutor()),
+                random);
+    }
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore())
+                .as("should return a read only transaction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void workflowRunsReadWritesDeletes() {
+        when(random.nextInt(anyInt())).thenReturn(1);
+        WorkflowHistory history = workflow.run();
+        List<WitnessedTransactionAction> actions = history.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(actions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+}u}(jv (ce49e27d10355fb6f5b71d88a206899b12b7f25bj xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javaj addedjܓ K}jݓ K j K}j https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -0,0 +1,125 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Sets;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Collection;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class SingleBusyCellReadNoTouchWorkflowsTest {
+    private static final String TABLE_NAME = "busy.readnotouch.cell";
+    private static final int ITERATION_COUNT = 1_000;
+    private static final SingleBusyCellReadNoTouchWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow workflow = SingleBusyCellReadNoTouchWorkflows.create(
+            transactionStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)),
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)));
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void transactionsDoNotConflictExcessively() {
+        WorkflowHistory workflowHistory = workflow.run();
+        assertThat(workflowHistory.history()).hasSizeBetween(ITERATION_COUNT / 2, ITERATION_COUNT);
+    }
+
+    @Test
+    public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).allSatisfy(action -> assertThat(action)
+                .isInstanceOfSatisfying(WitnessedSingleCellTransactionAction.class, singleCellAction -> {
+                    assertThat(singleCellAction.table()).isEqualTo(TABLE_NAME);
+                    assertThat(singleCellAction.cell()).isEqualTo(SingleBusyCellReadNoTouchWorkflows.BUSY_CELL);
+                }));
+    }
+
+    @Test
+    public void targetCellIsReadModifiedAndDeleted() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+
+    @Test
+    public void readTransactionsDontDoWrites() {
+        WorkflowHistory workflowHistory = workflow.run();
+
+        Set<WitnessedTransaction> witnessedTransactionsWithReads = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream().anyMatch(WitnessedReadTransactionAction.class::isInstance))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> witnessedTransactionsWithWritesOrDeletes = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream()
+                        .anyMatch(action -> action instanceof WitnessedWriteTransactionAction
+                                || action instanceof WitnessedDeleteTransactionAction))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> transactionsWithReadsAndWritesOrDeletes =
+                Sets.intersection(witnessedTransactionsWithReads, witnessedTransactionsWithWritesOrDeletes);
+
+        assertThat(transactionsWithReadsAndWritesOrDeletes).isEmpty();
+    }
+}u}(jv (241e8471f3f2d7c765f6ff9e98e1c055938e3a50j matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowsTest.javaj modifiedjܓ Kjݓ Kj Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -29,6 +29,7 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -77,9 +78,10 @@ public void transactionsDoNotConflictExcessively() {
     @Test
     public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
         WorkflowHistory workflowHistory = workflow.run();
-        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+        List<WitnessedSingleCellTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
                 .map(WitnessedTransaction::actions)
                 .flatMap(Collection::stream)
+                .map(WitnessedSingleCellTransactionAction.class::cast)
                 .collect(Collectors.toList());
         assertThat(witnessedTransactionActions)
                 .allMatch(action -> action.table().equals(TABLE_NAME));u}(jv (67649f06c0f6d4e2b55d3a069e6c8885508b4385j latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj modifiedjܓ K|jݓ Kj Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X"  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.google.common.collect.ImmutableList;
@@ -41,8 +42,10 @@
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.stream.Collectors;
@@ -185,17 +188,134 @@ public void invariantReportsViolationsFromTransactionHistory() {
                 .build();
         invariant.accept(falseHistory, reference::set);
 
-        assertThat(reference.get()).hasSize(ITERATION_COUNT - 1);
+        assertThat(reference.get())
+                .hasSize(ITERATION_COUNT - 1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
+        WitnessedReadTransactionAction readWitness = WitnessedReadTransactionAction.of(
+                TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of the summary row")
+                .hasExactlyArgs(SafeArg.of("actions", ImmutableList.of(readWitness)));
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCorrespondingPrimaryRow() {
+        List<WitnessedTransactionAction> actions = ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of a corresponding normal row")
+                .hasExactlyArgs(SafeArg.of("actions", actions));
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothEmpty() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions = getReadWitnessesForSingleTransaction(
+                2, Optional.of(TransientRowsWorkflows.VALUE), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsPresentAndPrimaryIsAbsent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.of(TransientRowsWorkflows.VALUE), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsAbsentAndPrimaryIsPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    private ImmutableWorkflowHistory getWorkflowHistory(List<WitnessedTransactionAction> actions) {
+        return ImmutableWorkflowHistory.builder()
+                .transactionStore(transactionStore)
+                .history(ImmutableList.of(ImmutableFullyWitnessedTransaction.builder()
+                        .addAllActions(actions)
+                        .startTimestamp(0L)
+                        .commitTimestamp(1L)
+                        .build()))
+                .build();
+    }
+
+    private static List<WitnessedTransactionAction> getReadWitnessesForSingleTransaction(
+            int columnIndex, Optional<Integer> summaryValue, Optional<Integer> primaryValue) {
+        return ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, columnIndex),
+                        summaryValue),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(columnIndex, TransientRowsWorkflows.COLUMN),
+                        primaryValue));
+    }
+
+    private static void inconsistencyInvolvesPairOfPrimaryAndSummaryCells(CrossCellInconsistency inconsistency) {
+        Map<TableAndWorkloadCell, Optional<Integer>> readValues = inconsistency.inconsistentValues();
+        TableAndWorkloadCell summaryCell = readValues.keySet().stream()
+                .filter(tableAndWorkloadCell -> tableAndWorkloadCell.cell().key() == TransientRowsWorkflows.SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of the summary row", SafeArg.of("readValues", readValues)));
+        TableAndWorkloadCell primaryCell = getPrimaryCellForSummaryCell(summaryCell);
+
+        assertThat(readValues.keySet()).containsExactlyInAnyOrder(summaryCell, primaryCell);
+        assertThat(readValues.values())
+                .containsExactlyInAnyOrder(Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+    }
+
+    // This workflow uses a single table, where the summary row's columns correspond to rows with primary values.
+    private static TableAndWorkloadCell getPrimaryCellForSummaryCell(TableAndWorkloadCell summaryCell) {
+        return TableAndWorkloadCell.of(
+                summaryCell.tableName(),
+                ImmutableWorkloadCell.of(summaryCell.cell().column(), TransientRowsWorkflows.COLUMN));
     }
 
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(
             WitnessedTransactionAction action) {
         if (action instanceof WitnessedReadTransactionAction) {
-            if (action.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
-                return WitnessedReadTransactionAction.of(action.table(), action.cell(), Optional.empty());
+            WitnessedReadTransactionAction readAction = (WitnessedReadTransactionAction) action;
+            if (readAction.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
+                return WitnessedReadTransactionAction.of(readAction.table(), readAction.cell(), Optional.empty());
             } else {
                 return WitnessedReadTransactionAction.of(
-                        action.table(), action.cell(), Optional.of(TransientRowsWorkflows.VALUE));
+                        readAction.table(), readAction.cell(), Optional.of(TransientRowsWorkflows.VALUE));
             }
         } else {
             return action;ug      }(jv (be670ac429d852d3616d81f322aac96b14c7e53cj katlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtilsTest.javaj addedjܓ KRjݓ K j KRj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -0,0 +1,82 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.Mockito.when;
+
+import java.security.SecureRandom;
+import java.util.Map;
+import java.util.Optional;
+import one.util.streamex.EntryStream;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class BankBalanceUtilsTest {
+
+    private static final Map<Integer, Optional<Integer>> VALID_BALANCES = Map.of(0, Optional.of(1), 1, Optional.of(1));
+
+    @Mock
+    private SecureRandom random;
+
+    @Test
+    public void validateOrGenerateBalancesReturnsEmptyWhenOnlyOneAccountMissing() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(Map.of(0, Optional.of(1), 1, Optional.empty()), 2, 1))
+                .isEmpty();
+    }
+
+    @Test
+    public void validateOrGenerateBalancesGeneratesWhenAllEmpty() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(Map.of(0, Optional.empty(), 1, Optional.empty()), 2, 1))
+                .contains(Map.of(0, 1, 1, 1));
+    }
+
+    @Test
+    public void validateOrGenerateBalancesEmptyWhenSumOfBalancesDoNotMatchTotal() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(VALID_BALANCES, 2, 3))
+                .isEmpty();
+    }
+
+    @Test
+    public void validateOrGenerateBalancesReturnsBalancesWhenTotalsMatch() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(VALID_BALANCES, 2, 1))
+                .contains(
+                        EntryStream.of(VALID_BALANCES).mapValues(Optional::get).toMap());
+    }
+
+    @Test
+    public void performTransfersReturnsBalancesWithCorrectSum() {
+        when(random.nextInt(anyInt())).thenReturn(0, 1);
+        Map<Integer, Integer> balances = Map.of(0, 1, 1, 1);
+        Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
+        assertThat(newBalances).isEqualTo(Map.of(0, 0, 1, 2));
+        assertThat(newBalances.values().stream().mapToInt(Integer::intValue).sum())
+                .isEqualTo(2);
+    }
+
+    @Test
+    public void performsTransfersOnlyIfValueWouldNotBeBelowZero() {
+        when(random.nextInt(anyInt())).thenReturn(0, 1);
+        Map<Integer, Integer> balances = Map.of(0, 0, 1, 2);
+        Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
+        assertThat(newBalances).isEqualTo(balances);
+    }
+}u}(jv (fc68dc8666083ad7dff19f7cab2825390f18a38aj oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowsTest.javaj addedjܓ Kjݓ K j Kj https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.java?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -0,0 +1,129 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.atlasdb.workload.workflow.ImmutableTableConfiguration;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.Test;
+
+public final class BankBalanceWorkflowsTest {
+    private static final String TABLE_NAME = "bank.bank";
+    private static final BankBalanceWorkflowConfiguration CONFIGURATION =
+            ImmutableBankBalanceWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SNAPSHOT)
+                            .build())
+                    .iterationCount(1)
+                    .build();
+
+    private final AtomicBoolean skipRunning = new AtomicBoolean();
+
+    private final InteractiveTransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SNAPSHOT)));
+
+    private final Workflow workflow = BankBalanceWorkflows.create(
+            memoryStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)),
+            skipRunning);
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore())
+                .as("should return a read only transaction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void bankWorkflowContainsInitialReadsForBalances() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.numberOfAccounts())
+                .boxed()
+                .map(index -> WitnessedReadTransactionAction.of(
+                        TABLE_NAME, BankBalanceWorkflows.getCellForAccount(index), Optional.empty()))
+                .collect(Collectors.toList());
+        assertThat(actions).containsAll(initialReadActions);
+    }
+
+    @Test
+    public void bankWorkflowContainsInitialWritesForBalances() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WorkloadCell> actualWrittenCells = actions.stream()
+                .filter(WitnessedWriteTransactionAction.class::isInstance)
+                .map(WitnessedWriteTransactionAction.class::cast)
+                .map(WitnessedWriteTransactionAction::cell)
+                .collect(Collectors.toList());
+
+        List<WorkloadCell> expectedWrittenCells = IntStream.range(0, CONFIGURATION.numberOfAccounts())
+                .boxed()
+                .map(BankBalanceWorkflows::getCellForAccount)
+                .collect(Collectors.toList());
+
+        assertThat(actualWrittenCells).containsAll(expectedWrittenCells);
+    }
+
+    @Test
+    public void bankWorkflowSetsSkipRunningToTrueWhenInvalidBalanceSet() {
+        assertThat(skipRunning).isFalse();
+        memoryStore.readWrite(txn -> txn.write(TABLE_NAME, BankBalanceWorkflows.getCellForAccount(0), 1));
+        workflow.run();
+        assertThat(skipRunning).isTrue();
+    }
+
+    @Test
+    public void bankWorkflowDoesNotWitnessTransactionWhenSkipRunningSetToTrue() {
+        skipRunning.set(true);
+        assertThat(workflow.run().history()).isEmpty();
+    }
+}u}(jv (b92e0f6636b00a68d6b900daa1da10ff5cbb9a1ej  changelog/0.865.0/pr-6595.v2.ymlj addedjܓ Kjݓ K j Kj vhttps://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/changelog%2F0.865.0%2Fpr-6595.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/changelog%2F0.865.0%2Fpr-6595.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.865.0%2Fpr-6595.v2.yml?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j @@ -0,0 +1,5 @@
+type: feature
+feature:
+  description: '[TEX] Report transaction level metrics'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6595u}(jv (24da7696d056cef662a3a0936f5eaef73ca2f9f2j  changelog/0.866.0/pr-6581.v2.ymlj addedjܓ Kjݓ K j Kj vhttps://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/changelog%2F0.866.0%2Fpr-6581.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/changelog%2F0.866.0%2Fpr-6581.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.866.0%2Fpr-6581.v2.yml?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Add leading/nested loop hints on Oracle delete overflow related SQL
+    to improve perf
+  links:
+  - https://github.com/palantir/atlasdb/pull/6581u}(jv (088ecb3494e3094a7ce37361e9ec8cf8f2816acaj  changelog/0.868.0/pr-6598.v2.ymlj addedjܓ Kjݓ K j Kj vhttps://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/changelog%2F0.868.0%2Fpr-6598.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/changelog%2F0.868.0%2Fpr-6598.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.868.0%2Fpr-6598.v2.yml?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Add metric for number of commit lock acquisition failures
+  links:
+  - https://github.com/palantir/atlasdb/pull/6598u}(jv (351dc558cfb12f3027ca880f55c00742ee516cbdj  changelog/0.870.0/pr-6613.v2.ymlj addedjܓ Kjݓ K j Kj vhttps://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/changelog%2F0.870.0%2Fpr-6613.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/changelog%2F0.870.0%2Fpr-6613.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.870.0%2Fpr-6613.v2.yml?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: There now exists an Antithesis workflow that exercises read-write transactions
+    that only do reads.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6613u}(jv (2ca2d06a87f80d36d91dc297b011ed76b75b7af2j 
versions.lockj modifiedjܓ Kjݓ Kj Kj _https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/versions.lockj ^https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/versions.lockj qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X  @@ -312,7 +312,7 @@ org.slf4j:log4j-over-slf4j:1.7.36 (3 constraints: 492febed)
 org.slf4j:slf4j-api:1.7.36 (44 constraints: 8180995b)
 org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
 org.wildfly.common:wildfly-common:1.6.0.Final (4 constraints: 3f390b3d)
-org.xerial:sqlite-jdbc:3.36.0 (1 constraints: 3e054f3b)
+org.xerial:sqlite-jdbc:3.42.0.0 (1 constraints: 99054946)
 org.xerial.snappy:snappy-java:1.1.8 (2 constraints: 011529cb)
 org.yaml:snakeyaml:1.33 (5 constraints: 0a4c5570)
 u}(jv (46803d60bac01d23eb7310c59fc295cb01df7f2bj versions.propsj modifiedjܓ Kjݓ Kj Kj `https://github.com/palantir/atlasdb/blob/516a19f90645dae48d405aa5e2795fc82b19a2d5/versions.propsj _https://github.com/palantir/atlasdb/raw/516a19f90645dae48d405aa5e2795fc82b19a2d5/versions.propsj rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=516a19f90645dae48d405aa5e2795fc82b19a2d5j X"  @@ -79,7 +79,7 @@ org.rocksdb:rocksdbjni = 7.9.2
 org.slf4j:* = 1.7.36
 org.wildfly.common:wildfly-common = 1.6.0.Final
 org.xerial.snappy:snappy-java = 1.1.8
-org.xerial:sqlite-jdbc = 3.36.0
+org.xerial:sqlite-jdbc = 3.42.0.0
 org.yaml:snakeyaml = 1.33
 uk.org.lidalia:slf4j-test = 1.1.0
 ueu(e1f42cf971b890c5bbb5dfd1abf80d2678ac1b99}(sha(e1f42cf971b890c5bbb5dfd1abf80d2678ac1b99node_idEC_kwDOAjP5fdoAKGUxZjQyY2Y5NzFiODkwYzViYmI1ZGZkMWFiZjgwZDI2NzhhYzFiOTkcommit}(author}(nameMohammed Daudaliemailmdaudali@palantir.comdate2023-05-24T08:40:23Zu	committer}(jA GitHubjC noreply@github.comjE 2023-05-24T08:40:23Zumessage[PDS-363649] Debug logs (#6575)tree}(j9 (7f6a83529d97b779b5475677daf9438a1bdcce1furl`https://api.github.com/repos/palantir/atlasdb/git/trees/7f6a83529d97b779b5475677daf9438a1bdcce1fujQ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e1f42cf971b890c5bbb5dfd1abf80d2678ac1b99
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkbc13CRBK7hj4Ov3rIwAATAQIAISv+MXVbyM2268WxQx4V2m0
rQNgGYyaQ32UOtz0S5XfYiNoVExbbxvRSCGMQ618Fpvk9eMuHu/emawXpURYa7D+
/KPGGj/Q3dbB4DCmkBlVtHfv4JAPA8ue2H06JSryuH7q+5S1X3wZXqM2yRl4DUrv
SNaFgEkp7EJdbMlJUMkXbvBGaoCqnCFZXKLiV/uddmnFRO1Bx9GVFtnjiddYTQ1X
wVgb8oiZQ6EdYA5FNXuuPU+QOhiCESDIxERZHK2veidQtQjcWAqR3Uzk9iK88YaA
Ff5Y73nTXOyu/TAeF5+8UEeUh+O08TKY+GQDkiZmHajbZlHK2dm92mupNmdOxyY=
=T8Kq
-----END PGP SIGNATURE-----
payloadtree 7f6a83529d97b779b5475677daf9438a1bdcce1f
parent a874f84093e25da6d594d8454175fbc4316dfb88
author Mohammed Daudali <mdaudali@palantir.com> 1684917623 +0100
committer GitHub <noreply@github.com> 1684917623 +0000

[PDS-363649] Debug logs (#6575)

 uujQ ^https://api.github.com/repos/palantir/atlasdb/commits/e1f42cf971b890c5bbb5dfd1abf80d2678ac1b99html_urlShttps://github.com/palantir/atlasdb/commit/e1f42cf971b890c5bbb5dfd1abf80d2678ac1b99comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e1f42cf971b890c5bbb5dfd1abf80d2678ac1b99/commentsj? }(loginmdaudaliidJ j; MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5jQ %https://api.github.com/users/mdaudalij_ https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminujG }(jd web-flowjf J/j; MDQ6VXNlcjE5ODY0NDQ3jh 4https://avatars.githubusercontent.com/u/19864447?v=4jj h5jQ %https://api.github.com/users/web-flowj_ https://github.com/web-flowjm /https://api.github.com/users/web-flow/followersjo <https://api.github.com/users/web-flow/following{/other_user}jq 5https://api.github.com/users/web-flow/gists{/gist_id}js <https://api.github.com/users/web-flow/starred{/owner}{/repo}ju 3https://api.github.com/users/web-flow/subscriptionsjw *https://api.github.com/users/web-flow/orgsjy +https://api.github.com/users/web-flow/reposj{ 6https://api.github.com/users/web-flow/events{/privacy}j} 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j9 (a874f84093e25da6d594d8454175fbc4316dfb88jQ ^https://api.github.com/repos/palantir/atlasdb/commits/a874f84093e25da6d594d8454175fbc4316dfb88j_ Shttps://github.com/palantir/atlasdb/commit/a874f84093e25da6d594d8454175fbc4316dfb88uastats}(totalK	additionsK	deletionsK ufiles]}(j9 (d3d0934580d2238766440f21f24a6cdcdb89c589filename_atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTable.javastatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/e1f42cf971b890c5bbb5dfd1abf80d2678ac1b99/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e1f42cf971b890c5bbb5dfd1abf80d2678ac1b99/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.java?ref=e1f42cf971b890c5bbb5dfd1abf80d2678ac1b99patchX  @@ -95,12 +95,15 @@ public static OracleDdlTable create(
 
     @Override
     public void create(byte[] tableMetadata) {
+        log.info("Attempting to create table {}.", LoggingArgs.tableRef(tableRef));
         TableMetadata metadata = TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMetadata);
         boolean needsOverflow = needsOverflow(metadata);
         int compressionSetting = getOptimalIndexCompression(metadata);
 
         if (tableExists()) {
+            log.info("Table {} already exists.", LoggingArgs.tableRef(tableRef));
             if (needsOverflow) {
+                log.info("Table {} needs overflow.", LoggingArgs.tableRef(tableRef));
                 TableValueStyle existingStyle = valueStyleCache.getTableType(conns, tableRef, config.metadataTable());
                 if (existingStyle != TableValueStyle.OVERFLOW) {
                     throwForMissingOverflowTable();
@@ -126,9 +129,20 @@ public void create(byte[] tableMetadata) {
     }
 
     private void maybeAlterTableToHaveOverflowColumn() {
+        log.info("Potentially altering table {} to have overflow column.", LoggingArgs.tableRef(tableRef));
         if (config.alterTablesOrMetadataToMatch().contains(tableRef)) {
+            log.info("Config contains table {}, checking if we can alter table.", LoggingArgs.tableRef(tableRef));
             try {
                 String shortTableName = oracleTableNameGetter.getInternalShortTableName(conns, tableRef);
+                log.info(
+                        "Table name: {}, Overflow table migrated status: {}, overflow table existence status: {}, "
+                                + "overflow "
+                                + "column exists status: {}",
+                        LoggingArgs.tableRef(tableRef),
+                        SafeArg.of("overflowTableHasMigrated", overflowTableHasMigrated()),
+                        SafeArg.of("overflowTableExists", overflowTableExists()),
+                        SafeArg.of("overflowColumnExists", overflowColumnExists(shortTableName)));
+
                 if (overflowTableHasMigrated() && overflowTableExists() && !overflowColumnExists(shortTableName)) {
                     alterTableToHaveOverflowColumn(shortTableName);
                 }uau(d664335d410b9b6bb5d903677a11be944f7a8987}(sha(d664335d410b9b6bb5d903677a11be944f7a8987node_idEC_kwDOAjP5fdoAKGQ2NjQzMzVkNDEwYjliNmJiNWQ5MDM2NzdhMTFiZTk0NGY3YTg5ODccommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-02-27T14:32:04Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-02-27T14:32:04Zumessageone last finaltree}(j (f54d4a8c058bb2c579087d3dab3d62d502bff886url`https://api.github.com/repos/palantir/atlasdb/git/trees/f54d4a8c058bb2c579087d3dab3d62d502bff886ujȖ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d664335d410b9b6bb5d903677a11be944f7a8987
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmP8vuQACgkQmPPOpKR4
XS3bTAf/eLj2v9dG219+VF26i+FIMgrzEfhQ1QXVLVBXtVPTfpWa0B3IvAc8xBUy
ScYc/dB5YN8NApt8k+rTbQmWz7QiLWa/nVRVHWGwxIcllvu1U1oWSoBUVetkaP0E
4DYVgMKCejDYEWEDt6msFVqNL34HSgRhU3OwPn3zDEbKOUOZ8sUAh32H9V17UKYB
9RS2L0RWw2e+XAXub/vOOcpimYCVqClAoyL5+q1VKVNDaQWcmaixwa9hDGqbCEh7
lYA+rvWz6KRqUcqdGX/GDaeGFd/83N3W7IdCZ/pfXrpd9jAKkVKIyarYMIAE7GiW
f7LcQ8WOZTWVDyCQIGrLwB7qeF3AsQ==
=RYms
-----END PGP SIGNATURE-----payloadtree f54d4a8c058bb2c579087d3dab3d62d502bff886
parent fbc938ba3f41c17da28954f1d100c0e46b444f03
author Sam Kramer <skramer@palantir.com> 1677508324 +0000
committer Sam Kramer <skramer@palantir.com> 1677508324 +0000

one last final
uujȖ ^https://api.github.com/repos/palantir/atlasdb/commits/d664335d410b9b6bb5d903677a11be944f7a8987html_urlShttps://github.com/palantir/atlasdb/commit/d664335d410b9b6bb5d903677a11be944f7a8987comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d664335d410b9b6bb5d903677a11be944f7a8987/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jȖ 'https://api.github.com/users/Sam-Kramerj֖ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(jۖ 
Sam-Kramerjݖ J^2_ j MDQ6VXNlcjYyMzg4MTQ=jߖ 3https://avatars.githubusercontent.com/u/6238814?v=4j h5jȖ 'https://api.github.com/users/Sam-Kramerj֖ https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (fbc938ba3f41c17da28954f1d100c0e46b444f03jȖ ^https://api.github.com/repos/palantir/atlasdb/commits/fbc938ba3f41c17da28954f1d100c0e46b444f03j֖ Shttps://github.com/palantir/atlasdb/commit/fbc938ba3f41c17da28954f1d100c0e46b444f03uastats}(totalK	additionsK	deletionsKufiles]}(j (8f95abcb625a7106efe30feea326688422252adafilenameUatlasdb-commons/src/test/java/com/palantir/exception/NotInitializedExceptionTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/d664335d410b9b6bb5d903677a11be944f7a8987/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedExceptionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d664335d410b9b6bb5d903677a11be944f7a8987/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedExceptionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedExceptionTest.java?ref=d664335d410b9b6bb5d903677a11be944f7a8987patchX  @@ -16,12 +16,12 @@
 
 package com.palantir.exception;
 
-import static org.assertj.core.api.Assertions.assertThat;
-
 import com.palantir.logsafe.SafeArg;
 import org.junit.Test;
 
-public class NotInitializedExceptionTest {
+import static org.assertj.core.api.Assertions.assertThat;
+
+public final class NotInitializedExceptionTest {
     @Test
     public void getArgsHasObjectNameAsSafe() {
         String objectName = "foo";uau(2c874d6e7de7571da0e3fa8bb605d5c067fe14bf}(sha(2c874d6e7de7571da0e3fa8bb605d5c067fe14bfnode_idEC_kwDOAjP5fdoAKDJjODc0ZDZlN2RlNzU3MWRhMGUzZmE4YmI2MDVkNWMwNjdmZTE0YmYcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-08-18T13:31:16Zu	committer}(j/ svc-autoreleasej1 -pd-foundry-infrastructure-notify@palantir.comj3 2023-08-18T13:31:16ZumessageAutorelease 0.917.0

[skip ci]tree}(j' (8ea1c73e2d6d811146d580f5100d0f5055c0c3c3url`https://api.github.com/repos/palantir/atlasdb/git/trees/8ea1c73e2d6d811146d580f5100d0f5055c0c3c3uj? bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2c874d6e7de7571da0e3fa8bb605d5c067fe14bf
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmTfcqkACgkQhbrR8ip7mDAE4QD/Xsa6HsTXA2gnrHJQWJViaP65
3A8rnFelzn6IApQBtQIA/i8Wem7aSKjf0k59hq3Ztb0Q1tvFvxN3jTG5XFct+/Ld
=RucO
-----END PGP SIGNATURE-----
payloadX0  tree 8ea1c73e2d6d811146d580f5100d0f5055c0c3c3
parent f648c28d04b4ee51cbc97780408dc443857a03f9
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1692365476 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1692365476 +0000

Autorelease 0.917.0

[skip ci]uuj? ^https://api.github.com/repos/palantir/atlasdb/commits/2c874d6e7de7571da0e3fa8bb605d5c067fe14bfhtml_urlShttps://github.com/palantir/atlasdb/commit/2c874d6e7de7571da0e3fa8bb605d5c067fe14bfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2c874d6e7de7571da0e3fa8bb605d5c067fe14bf/commentsj- }(loginsvc-autoreleaseidJ(j) MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j? ,https://api.github.com/users/svc-autoreleasejM "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj5 }(jR svc-autoreleasejT J(j) MDQ6VXNlcjUxNzE4MzQ2jV 4https://avatars.githubusercontent.com/u/51718346?v=4jX h5j? ,https://api.github.com/users/svc-autoreleasejM "https://github.com/svc-autoreleasej[ 6https://api.github.com/users/svc-autorelease/followersj] Chttps://api.github.com/users/svc-autorelease/following{/other_user}j_ <https://api.github.com/users/svc-autorelease/gists{/gist_id}ja Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jc :https://api.github.com/users/svc-autorelease/subscriptionsje 1https://api.github.com/users/svc-autorelease/orgsjg 2https://api.github.com/users/svc-autorelease/reposji =https://api.github.com/users/svc-autorelease/events{/privacy}jk <https://api.github.com/users/svc-autorelease/received_eventsjm Userjo uparents]}(j' (f648c28d04b4ee51cbc97780408dc443857a03f9j? ^https://api.github.com/repos/palantir/atlasdb/commits/f648c28d04b4ee51cbc97780408dc443857a03f9jM Shttps://github.com/palantir/atlasdb/commit/f648c28d04b4ee51cbc97780408dc443857a03f9uastats}(totalK 	additionsK 	deletionsK ufiles]}(j' (8a71e873186bb672aea6b894cf713621b1c19547filename changelog/0.917.0/pr-6711.v2.ymlstatusrenamedj K j K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/2c874d6e7de7571da0e3fa8bb605d5c067fe14bf/changelog%2F0.917.0%2Fpr-6711.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/2c874d6e7de7571da0e3fa8bb605d5c067fe14bf/changelog%2F0.917.0%2Fpr-6711.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.917.0%2Fpr-6711.v2.yml?ref=2c874d6e7de7571da0e3fa8bb605d5c067fe14bfprevious_filename$changelog/@unreleased/pr-6711.v2.ymluau(f348e017fadf17bd57a6953669d5bd49d57c9b48}(sha(f348e017fadf17bd57a6953669d5bd49d57c9b48node_idEC_kwDOAjP5fdoAKGYzNDhlMDE3ZmFkZjE3YmQ1N2E2OTUzNjY5ZDViZDQ5ZDU3YzliNDgcommit}(author}(name
Samuel Krameremailskramer@palantir.comdate2023-03-23T11:07:38Zu	committer}(j 
Samuel Kramerj skramer@palantir.comj 2023-03-23T11:11:56Zumessageclean up

cleanup v2tree}(j (dc9a24e6e5664587d9f8ea96be3b2dfc68e3a05furl`https://api.github.com/repos/palantir/atlasdb/git/trees/dc9a24e6e5664587d9f8ea96be3b2dfc68e3a05fuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f348e017fadf17bd57a6953669d5bd49d57c9b48
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj ^https://api.github.com/repos/palantir/atlasdb/commits/f348e017fadf17bd57a6953669d5bd49d57c9b48html_urlShttps://github.com/palantir/atlasdb/commit/f348e017fadf17bd57a6953669d5bd49d57c9b48comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f348e017fadf17bd57a6953669d5bd49d57c9b48/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(jǗ 
Sam-Kramerjɗ J^2_ j MDQ6VXNlcjYyMzg4MTQ=j˗ 3https://avatars.githubusercontent.com/u/6238814?v=4j͗ h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-KramerjЗ 1https://api.github.com/users/Sam-Kramer/followersjҗ >https://api.github.com/users/Sam-Kramer/following{/other_user}jԗ 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j֗ >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jؗ 5https://api.github.com/users/Sam-Kramer/subscriptionsjڗ ,https://api.github.com/users/Sam-Kramer/orgsjܗ -https://api.github.com/users/Sam-Kramer/reposjޗ 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (520532d9f7ef0e83256a56761c812bcaced86fd3j ^https://api.github.com/repos/palantir/atlasdb/commits/520532d9f7ef0e83256a56761c812bcaced86fd3j Shttps://github.com/palantir/atlasdb/commit/520532d9f7ef0e83256a56761c812bcaced86fd3uastats}(totalK!	additionsK	deletionsKufiles](}(j (30f051356e6d1ed867342a777a4e1fa58d2b2380filename/atlasdb-workload-server-distribution/Dockerfilestatusmodifiedj K j K	changesK	blob_urlhttps://github.com/palantir/atlasdb/blob/f348e017fadf17bd57a6953669d5bd49d57c9b48/atlasdb-workload-server-distribution%2FDockerfileraw_urlhttps://github.com/palantir/atlasdb/raw/f348e017fadf17bd57a6953669d5bd49d57c9b48/atlasdb-workload-server-distribution%2FDockerfilecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2FDockerfile?ref=f348e017fadf17bd57a6953669d5bd49d57c9b48patchX  @@ -11,13 +11,4 @@ RUN mv /atlasdb-workload-server-* /atlasdb-workload-server
 
 WORKDIR /atlasdb-workload-server
 
-EXPOSE 8421 \
-       8422
-
-# Putting exit code as '1' on failure to adhere to docker specification
-HEALTHCHECK --interval=5s \
-            --timeout=5s \
-            --retries=5 \
-            CMD curl -f http://localhost:8422/healthcheck || exit 1
-
 CMD ["service/bin/init.sh", "console"]u}(j (44582631544b31080c761064fcdd5ec05fee35e0j latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedj Kj Kj Kj	 https://github.com/palantir/atlasdb/blob/f348e017fadf17bd57a6953669d5bd49d57c9b48/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://github.com/palantir/atlasdb/raw/f348e017fadf17bd57a6953669d5bd49d57c9b48/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=f348e017fadf17bd57a6953669d5bd49d57c9b48j X  @@ -74,10 +74,8 @@ public void initialize(Bootstrap<WorkloadServerConfiguration> bootstrap) {
     public void run(WorkloadServerConfiguration configuration, Environment environment) {
         environment.getObjectMapper().registerModule(new Jdk8Module()).registerModule(new JavaTimeModule());
 
-        ExecutorService workflowRunnerExecutor = environment
-                .lifecycle()
-                .executorService("workflow-runner")
-                .build();
+        ExecutorService workflowRunnerExecutor =
+                environment.lifecycle().executorService("workflow-runner").build();
 
         workflowRunnerExecutor.execute(() -> runWorkflows(configuration, environment));
     }u}(j (f7cefd89c83aa1cb9da5d2783d6b944d62b8fe16j atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj modifiedj Kj Kj K	j	 https://github.com/palantir/atlasdb/blob/f348e017fadf17bd57a6953669d5bd49d57c9b48/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://github.com/palantir/atlasdb/raw/f348e017fadf17bd57a6953669d5bd49d57c9b48/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=f348e017fadf17bd57a6953669d5bd49d57c9b48j X  @@ -27,15 +27,12 @@
 @JsonSerialize(as = ImmutableWorkloadServerInstallConfiguration.class)
 @Value.Immutable
 public interface WorkloadServerInstallConfiguration {
-
-    @JsonProperty("exit-after-running")
-    default boolean exitAfterRunning() {
-        return false;
-    }
-
     @JsonProperty("atlas")
     AtlasDbConfig atlas();
 
     @JsonProperty("single-row-two-cells-config")
     SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig();
+
+    @JsonProperty("exit-after-running")
+    boolean exitAfterRunning();
 }u}(j (6ade9ca647afc4b06f6b3d70c4d52b4177312c7bj Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj modifiedj Kj Kj Kj	 https://github.com/palantir/atlasdb/blob/f348e017fadf17bd57a6953669d5bd49d57c9b48/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/f348e017fadf17bd57a6953669d5bd49d57c9b48/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=f348e017fadf17bd57a6953669d5bd49d57c9b48j X  @@ -9,4 +9,5 @@ install:
       table-name: two-cells-test
       isolation-level: SERIALIZABLE
     iteration-count: 100
-    type: singleRowTwoCells
\ No newline at end of file
+    type: singleRowTwoCells
+  exit-after-running: false
\ No newline at end of fileu}(j (8e080ab39272adb9262b248c9333fdaf0d71e2ebj build.gradlej modifiedj K j Kj Kj	 ^https://github.com/palantir/atlasdb/blob/f348e017fadf17bd57a6953669d5bd49d57c9b48/build.gradlej ]https://github.com/palantir/atlasdb/raw/f348e017fadf17bd57a6953669d5bd49d57c9b48/build.gradlej
 phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=f348e017fadf17bd57a6953669d5bd49d57c9b48j X  @@ -161,9 +161,3 @@ allprojects {
         systemProperty 'RUNNING_IN_GRADLE', 'true'
     }
 }
-
-jdks {
-    jdkDistribution('amazon-corretto') {
-        baseUrl = 'https://artifactory.palantir.build/artifactory/internal-dist-thirdparty/corretto'
-    }
-}ueu(46e621c018f0c87fc21c8bd7d7a4e773e88a03af}(sha(46e621c018f0c87fc21c8bd7d7a4e773e88a03afnode_idEC_kwDOAjP5fdoAKDQ2ZTYyMWMwMThmMGM4N2ZjMjFjOGJkN2Q3YTRlNzczZTg4YTAzYWYcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-05-18T17:04:31Zu	committer}(j; GitHubj= noreply@github.comj? 2023-05-18T17:04:31Zumessage|Avoid Stream overhead in getRandomHostByActiveConnections (#6564)

Avoid Stream overhead in getRandomHostByActiveConnectionstree}(j3 (dba9984eb16ee58dcd4508c22eee809f7b1c22deurl`https://api.github.com/repos/palantir/atlasdb/git/trees/dba9984eb16ee58dcd4508c22eee809f7b1c22deujK bhttps://api.github.com/repos/palantir/atlasdb/git/commits/46e621c018f0c87fc21c8bd7d7a4e773e88a03af
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkZlqfCRBK7hj4Ov3rIwAAh8IIACPOY89+V2vpjA+aA0v9xw/b
NSOvW9RFmNlwwjCxI4/WeRpkmQQwZ79EJfpoAoj7DpMhYlP3YHfJ4ZCUQy7yij4s
QAHLgdxUPRWXnH1cNiNr3jxzY9ytmBNuIWpnKvh6Y3TIEGm/Mw807sb3PIehu8xm
Faiap0ridQSERaVfpE2moT2lITTBov3MCeNylGqMQnuCulV8B4bBseAx8VrIUH/K
+WqI4kFr0w8TUcyP5MBwmZysBUpqd0yTQ6pFXPIiwyOUK8imOCczIo7SJi4T7ldn
gvYTpjryG8GJu2UsMzTpGmr+MQxPeh9hYdduBOspCYKlU8TJDgq6oc+rbt+85Ws=
=aYmB
-----END PGP SIGNATURE-----
payloadXS  tree dba9984eb16ee58dcd4508c22eee809f7b1c22de
parent 9d3b419972f969d98a2e09c33312f005c2725460
author David Schlosnagle <davids@palantir.com> 1684429471 -0400
committer GitHub <noreply@github.com> 1684429471 +0000

Avoid Stream overhead in getRandomHostByActiveConnections (#6564)

Avoid Stream overhead in getRandomHostByActiveConnections
uujK ^https://api.github.com/repos/palantir/atlasdb/commits/46e621c018f0c87fc21c8bd7d7a4e773e88a03afhtml_urlShttps://github.com/palantir/atlasdb/commit/46e621c018f0c87fc21c8bd7d7a4e773e88a03afcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/46e621c018f0c87fc21c8bd7d7a4e773e88a03af/commentsj9 }(loginschlosnaidMBj5 MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jK %https://api.github.com/users/schlosnajY https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujA }(j^ web-flowj` J/j5 MDQ6VXNlcjE5ODY0NDQ3jb 4https://avatars.githubusercontent.com/u/19864447?v=4jd h5jK %https://api.github.com/users/web-flowjY https://github.com/web-flowjg /https://api.github.com/users/web-flow/followersji <https://api.github.com/users/web-flow/following{/other_user}jk 5https://api.github.com/users/web-flow/gists{/gist_id}jm <https://api.github.com/users/web-flow/starred{/owner}{/repo}jo 3https://api.github.com/users/web-flow/subscriptionsjq *https://api.github.com/users/web-flow/orgsjs +https://api.github.com/users/web-flow/reposju 6https://api.github.com/users/web-flow/events{/privacy}jw 5https://api.github.com/users/web-flow/received_eventsjy Userj{ uparents]}(j3 (9d3b419972f969d98a2e09c33312f005c2725460jK ^https://api.github.com/repos/palantir/atlasdb/commits/9d3b419972f969d98a2e09c33312f005c2725460jY Shttps://github.com/palantir/atlasdb/commit/9d3b419972f969d98a2e09c33312f005c2725460uastats}(totalK	additionsK	deletionsKufiles](}(j3 (c52d2d055598765a8eaf2152beff312bf3167cddfilenamebatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/46e621c018f0c87fc21c8bd7d7a4e773e88a03af/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/46e621c018f0c87fc21c8bd7d7a4e773e88a03af/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=46e621c018f0c87fc21c8bd7d7a4e773e88a03afpatchXk  @@ -24,6 +24,7 @@
 import com.google.common.collect.Interner;
 import com.google.common.collect.Interners;
 import com.google.common.collect.Iterables;
+import com.google.common.collect.Maps;
 import com.google.common.collect.Range;
 import com.google.common.collect.RangeMap;
 import com.google.common.collect.Sets;
@@ -64,7 +65,6 @@
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
-import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Optional;
 import java.util.PrimitiveIterator.OfInt;
@@ -420,9 +420,8 @@ Set<CassandraServer> maybeFilterLocalHosts(Set<CassandraServer> hosts) {
     @VisibleForTesting
     Optional<CassandraServer> getRandomHostByActiveConnections(Set<CassandraServer> desiredHosts) {
         Set<CassandraServer> localFilteredHosts = maybeFilterLocalHosts(desiredHosts);
-        ImmutableMap<CassandraServer, CassandraClientPoolingContainer> matchingPools = currentPools.entrySet().stream()
-                .filter(e -> localFilteredHosts.contains(e.getKey()))
-                .collect(ImmutableMap.toImmutableMap(Entry::getKey, Entry::getValue));
+        Map<CassandraServer, CassandraClientPoolingContainer> matchingPools =
+                ImmutableMap.copyOf(Maps.filterKeys(currentPools, localFilteredHosts::contains));
         if (matchingPools.isEmpty()) {
             return Optional.empty();
         }u}(j3 (91d691ab16f5b7a0ca12fc7a603e315687a4ed27j $changelog/@unreleased/pr-6564.v2.ymlj addedj Kj K j Kj |https://github.com/palantir/atlasdb/blob/46e621c018f0c87fc21c8bd7d7a4e773e88a03af/changelog%2F%40unreleased%2Fpr-6564.v2.ymlj {https://github.com/palantir/atlasdb/raw/46e621c018f0c87fc21c8bd7d7a4e773e88a03af/changelog%2F%40unreleased%2Fpr-6564.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6564.v2.yml?ref=46e621c018f0c87fc21c8bd7d7a4e773e88a03afj @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Avoid Stream overhead in getRandomHostByActiveConnections
+  links:
+  - https://github.com/palantir/atlasdb/pull/6564ueu(039681ae84124b9469b403dab4b6533b8219c25a}(sha(039681ae84124b9469b403dab4b6533b8219c25anode_idEC_kwDOAjP5fdoAKDAzOTY4MWFlODQxMjRiOTQ2OWI0MDNkYWI0YjY1MzNiODIxOWMyNWEcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-28T20:49:35Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-04-28T20:49:35ZumessageaRevert "test in parallel of build"

This reverts commit 79dde1b234d0441c5fa5b5bf7121e473442e4c2a.tree}(j (838e79e8a1f0bc3c0e06ada58be4274f489360aeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/838e79e8a1f0bc3c0e06ada58be4274f489360aeujʘ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/039681ae84124b9469b403dab4b6533b8219c25a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRMMWAACgkQPlMHVIT1
yho4EwgAqI1hd58LGymnILVv2RypYKPObYb13+HoFmZ9d1LO1RW+chdxUtFnOOmf
Jtr80/UJO0Kj5fg+A1ew1DFzNeMLg0x75U8nnKgEee5B2w1AKLxeCcBI/VkxbjyN
ichg1WDVm5GIX+zN+zHmqf9b6VAZ0vt/9NlWYWiGpFOHqYN6hvf9pJyAtVXemTGk
MBjfCuCB5Lif40ybrPxW3qkfLZBFBgo/ypYKQdmhGmFKicHkq3tY/A9AI9OoXkRp
ERKzik0TdEIT4UOg7uMcOpMsyFB2Uk3RP8MuwOk5KIR/XOMgdFdejzw0L3ZJIUfa
nRo63RihdMaZmtzfVtsCZGAmpBW1sg==
=ZaVj
-----END PGP SIGNATURE-----payloadX@  tree 838e79e8a1f0bc3c0e06ada58be4274f489360ae
parent 79dde1b234d0441c5fa5b5bf7121e473442e4c2a
author Ahmed Alouane <aalouane@palantir.com> 1682714975 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682714975 +0100

Revert "test in parallel of build"

This reverts commit 79dde1b234d0441c5fa5b5bf7121e473442e4c2a.
uujʘ ^https://api.github.com/repos/palantir/atlasdb/commits/039681ae84124b9469b403dab4b6533b8219c25ahtml_urlShttps://github.com/palantir/atlasdb/commit/039681ae84124b9469b403dab4b6533b8219c25acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/039681ae84124b9469b403dab4b6533b8219c25a/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jʘ #https://api.github.com/users/ergo14jؘ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(jݘ ergo14jߘ Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5jʘ #https://api.github.com/users/ergo14jؘ https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j (79dde1b234d0441c5fa5b5bf7121e473442e4c2ajʘ ^https://api.github.com/repos/palantir/atlasdb/commits/79dde1b234d0441c5fa5b5bf7121e473442e4c2ajؘ Shttps://github.com/palantir/atlasdb/commit/79dde1b234d0441c5fa5b5bf7121e473442e4c2auastats}(totalK	additionsK	deletionsK ufiles]}(j (4afe6cfa22e2263f723e942552446af1d1099428filename.circleci/config.ymlstatusmodifiedj Kj K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/039681ae84124b9469b403dab4b6533b8219c25a/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/039681ae84124b9469b403dab4b6533b8219c25a/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=039681ae84124b9469b403dab4b6533b8219c25apatch@@ -138,6 +138,7 @@ workflows:
             tags:
               only: /.*/
       - test:
+          requires: [build]
           filters:
             tags:
               only: /.*/uau(41d5f3fe26ea5fbd7c105f198dc3eecd05df1761}(sha(41d5f3fe26ea5fbd7c105f198dc3eecd05df1761node_idEC_kwDOAjP5fdoAKDQxZDVmM2ZlMjZlYTVmYmQ3YzEwNWYxOThkYzNlZWNkMDVkZjE3NjEcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-08-02T11:18:18Zu	committer}(j1 Lucas Meirelesj3 meireles31@msn.comj5 2023-08-02T11:18:18Zumessageimplement result on childrentree}(j) (32fc8c5fc5896bd036be9b139823c910cb68e4beurl`https://api.github.com/repos/palantir/atlasdb/git/trees/32fc8c5fc5896bd036be9b139823c910cb68e4beujA bhttps://api.github.com/repos/palantir/atlasdb/git/commits/41d5f3fe26ea5fbd7c105f198dc3eecd05df1761
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmTKO3oACgkQJd22kJ7J
GizECggAtil9TL4NFur5f2kkUgvlkHexImos2mi7qqacgeuLc0TuWFRfy+rkXKwZ
iWbXJLUtCwk7ngehp1NV2J24LKGX1kXVp2ILzFVJWkQSdVW/+Y2RvMyd/CZ1RtDG
wRpgRYLUFu1yDg1CmVYhwprR/ua1+/eSoVxPEE/PaxL2Dtzy2w6s4LLKvREYcvRW
GdtmT8Pg/Lc0DhUD52T1wekhGivbFiHBZn+DLg75MbG68DOjDZ0De4pK+na7fsUn
n0EDobmge610RR+n3F+o3ahTrjRAhWbN4os/I4y9hHIPYygKS7fJhG20traNGNIE
h8NE6Cid9ZZBj1lKE/+9Drky8k+hBQ==
=FL/p
-----END PGP SIGNATURE-----payloadtree 32fc8c5fc5896bd036be9b139823c910cb68e4be
parent 01d6635992db36b0e036a0843ec582af011bf489
author Lucas Meireles <meireles31@msn.com> 1690975098 +0100
committer Lucas Meireles <meireles31@msn.com> 1690975098 +0100

implement result on children
uujA ^https://api.github.com/repos/palantir/atlasdb/commits/41d5f3fe26ea5fbd7c105f198dc3eecd05df1761html_urlShttps://github.com/palantir/atlasdb/commit/41d5f3fe26ea5fbd7c105f198dc3eecd05df1761comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/41d5f3fe26ea5fbd7c105f198dc3eecd05df1761/commentsj/ }(loginLucasIMEidJg j+ MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jA %https://api.github.com/users/LucasIMEjO https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj7 }(jT LucasIMEjV Jg j+ MDQ6VXNlcjY3ODczMTE=jX 3https://avatars.githubusercontent.com/u/6787311?v=4jZ h5jA %https://api.github.com/users/LucasIMEjO https://github.com/LucasIMEj] /https://api.github.com/users/LucasIME/followersj_ <https://api.github.com/users/LucasIME/following{/other_user}ja 5https://api.github.com/users/LucasIME/gists{/gist_id}jc <https://api.github.com/users/LucasIME/starred{/owner}{/repo}je 3https://api.github.com/users/LucasIME/subscriptionsjg *https://api.github.com/users/LucasIME/orgsji +https://api.github.com/users/LucasIME/reposjk 6https://api.github.com/users/LucasIME/events{/privacy}jm 5https://api.github.com/users/LucasIME/received_eventsjo Userjq uparents]}(j) (01d6635992db36b0e036a0843ec582af011bf489jA ^https://api.github.com/repos/palantir/atlasdb/commits/01d6635992db36b0e036a0843ec582af011bf489jO Shttps://github.com/palantir/atlasdb/commit/01d6635992db36b0e036a0843ec582af011bf489uastats}(totalK	additionsKd	deletionsK3ufiles](}(j) (c7e87e2d52b81191dec9e505fdc433b0553f3e17filenameZatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CachingTransaction.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/41d5f3fe26ea5fbd7c105f198dc3eecd05df1761/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/41d5f3fe26ea5fbd7c105f198dc3eecd05df1761/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.java?ref=41d5f3fe26ea5fbd7c105f198dc3eecd05df1761patchXJ  @@ -42,7 +42,6 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.util.Pair;
 import com.palantir.util.result.Result;
-import com.palantir.util.result.Result.Ok;
 import java.util.Arrays;
 import java.util.Collection;
 import java.util.Collections;
@@ -170,7 +169,7 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(TableReference tableRef, Set
     private ListenableFuture<Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException>> getWithResultLoader(
             TableReference tableRef, Set<Cell> cells, CellResultLoader cellLoader) {
         if (cells.isEmpty()) {
-            return Futures.immediateFuture(new Result.Ok<>(ImmutableMap.of()));
+            return Futures.immediateFuture(Result.ok(ImmutableMap.of()));
         }
 
         Set<Cell> toLoad = new HashSet<>();
@@ -195,7 +194,7 @@ private ListenableFuture<Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedE
 
                     cacheLoadedCells(tableRef, toLoad, loadedCells.unwrap());
                     cacheHit.putAll(loadedCells.unwrap());
-                    return new Ok<>(cacheHit);
+                    return Result.ok(cacheHit);
                 },
                 MoreExecutors.directExecutor());
     }
@@ -204,7 +203,7 @@ private ListenableFuture<Map<Cell, byte[]>> getWithLoader(
             TableReference tableRef, Set<Cell> cells, CellLoader cellLoader) {
         CellResultLoader resultLoader = (table, cacheCells, cellsToLoad) -> {
             ListenableFuture<Map<Cell, byte[]>> future = cellLoader.load(table, cacheCells, cellsToLoad);
-            return Futures.transform(future, response -> new Result.Ok<>(response), MoreExecutors.directExecutor());
+            return Futures.transform(future, response -> Result.ok(response), MoreExecutors.directExecutor());
         };
 
         return Futures.transform(u}(j) (7069616d58d06eb71d5ff0d2c105e02fb674e1f9j ?atlasdb-commons/src/main/java/com/palantir/util/result/Err.javaj addedj K*j K j K*j https://github.com/palantir/atlasdb/blob/41d5f3fe26ea5fbd7c105f198dc3eecd05df1761/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FErr.javaj https://github.com/palantir/atlasdb/raw/41d5f3fe26ea5fbd7c105f198dc3eecd05df1761/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FErr.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FErr.java?ref=41d5f3fe26ea5fbd7c105f198dc3eecd05df1761j X  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util.result;
+
+import com.palantir.logsafe.exceptions.SafeRuntimeException;
+
+final class Err<T, E> implements Result<T, E> {
+    private final E error;
+
+    Err(E error) {
+        this.error = error;
+    }
+
+    @Override
+    public boolean isOk() {
+        return false;
+    }
+
+    @Override
+    public T unwrap() {
+        throw new SafeRuntimeException("Called unwrap() on an Err value");
+    }
+
+    @Override
+    public E unwrapErr() {
+        return error;
+    }
+}u}(j) (d3a6099713f9f3f5083adbb5f6665fd54b686b0dj >atlasdb-commons/src/main/java/com/palantir/util/result/Ok.javaj addedj K*j K j K*j https://github.com/palantir/atlasdb/blob/41d5f3fe26ea5fbd7c105f198dc3eecd05df1761/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FOk.javaj https://github.com/palantir/atlasdb/raw/41d5f3fe26ea5fbd7c105f198dc3eecd05df1761/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FOk.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FOk.java?ref=41d5f3fe26ea5fbd7c105f198dc3eecd05df1761j X  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util.result;
+
+import com.palantir.logsafe.exceptions.SafeRuntimeException;
+
+final class Ok<T, E> implements Result<T, E> {
+    private final T value;
+
+    Ok(T value) {
+        this.value = value;
+    }
+
+    @Override
+    public boolean isOk() {
+        return true;
+    }
+
+    @Override
+    public T unwrap() {
+        return value;
+    }
+
+    @Override
+    public E unwrapErr() {
+        throw new SafeRuntimeException("Called unwrapErr on an Ok value");
+    }
+}u}(j) (dd9cc35b63d4d1ffa2befb1e8d37f14c7fb2dccbj Batlasdb-commons/src/main/java/com/palantir/util/result/Result.javaj modifiedj K
j K,j K6j https://github.com/palantir/atlasdb/blob/41d5f3fe26ea5fbd7c105f198dc3eecd05df1761/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FResult.javaj https://github.com/palantir/atlasdb/raw/41d5f3fe26ea5fbd7c105f198dc3eecd05df1761/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FResult.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FResult.java?ref=41d5f3fe26ea5fbd7c105f198dc3eecd05df1761j XB  @@ -16,57 +16,23 @@
 
 package com.palantir.util.result;
 
-import com.palantir.logsafe.exceptions.SafeRuntimeException;
+public interface Result<T, E> {
 
-public abstract class Result<T, E> {
-
-    private Result() {}
-
-    public static final class Ok<T, E> extends Result<T, E> {
-        private final T value;
-
-        public Ok(T value) {
-            this.value = value;
-        }
-
-        public T getValue() {
-            return value;
-        }
+    static <T, E> Result<T, E> ok(T value) {
+        return new Ok<>(value);
     }
 
-    public static final class Err<T, E> extends Result<T, E> {
-        private final E error;
-
-        public Err(E error) {
-            this.error = error;
-        }
-
-        public E getError() {
-            return error;
-        }
+    static <T, E> Result<T, E> err(E error) {
+        return new Err<>(error);
     }
 
-    public final boolean isOk() {
-        return this instanceof Ok;
-    }
+    boolean isOk();
 
-    public final boolean isErr() {
-        return this instanceof Err;
+    default boolean isErr() {
+        return !isOk();
     }
 
-    public T unwrap() {
-        if (isOk()) {
-            return ((Ok<T, E>) this).getValue();
-        } else {
-            throw new SafeRuntimeException("Called unwrap() on an Err value");
-        }
-    }
+    T unwrap();
 
-    public E unwrapErr() {
-        if (isErr()) {
-            return ((Err<T, E>) this).getError();
-        } else {
-            throw new SafeRuntimeException("Called unwrapErr() on an Ok value");
-        }
-    }
+    E unwrapErr();
 }u}(j) (6ef8704df2a6d43d19a551285979ccb62e6a46e4j datlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/41d5f3fe26ea5fbd7c105f198dc3eecd05df1761/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaj https://github.com/palantir/atlasdb/raw/41d5f3fe26ea5fbd7c105f198dc3eecd05df1761/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.java     j https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.java?ref=41d5f3fe26ea5fbd7c105f198dc3eecd05df1761j Xx  @@ -360,7 +360,7 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(TableReference tableRef, Set
     ListenableFuture<Map<Cell, byte[]>> getWithLoader(TableReference tableRef, Set<Cell> cells, CellLoader cellLoader) {
         CellResultLoader resultLoader = (table, toRead) -> {
             ListenableFuture<Map<Cell, byte[]>> future = cellLoader.load(table, toRead);
-            return Futures.transform(future, response -> new Result.Ok<>(response), MoreExecutors.directExecutor());
+            return Futures.transform(future, Result::ok, MoreExecutors.directExecutor());
         };
 
         return Futures.transform(u}(j) (3cbd99afee26eee6b9405c8dea74a945d8940bb2j `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/41d5f3fe26ea5fbd7c105f198dc3eecd05df1761/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://github.com/palantir/atlasdb/raw/41d5f3fe26ea5fbd7c105f198dc3eecd05df1761/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=41d5f3fe26ea5fbd7c105f198dc3eecd05df1761j X  @@ -925,7 +925,7 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
     public Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {
         try {
-            return new Result.Ok<>(getCache().getWithCachedRef(tableRef, cells, cacheLookupResult -> {
+            return Result.ok(getCache().getWithCachedRef(tableRef, cells, cacheLookupResult -> {
                 long cachedCellsWithNonEmptyValue = CellCountValidator.validateCacheAndGetNonEmptyValuesCount(
                         expectedNumberOfPresentCells, cacheLookupResult.cacheHits());
                 long numberOfCellsExpectingValuePostCache = expectedNumberOfPresentCells - cachedCellsWithNonEmptyValue;
@@ -939,7 +939,7 @@ public Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> getWithE
                         immediateTransactionService);
             }));
         } catch (MoreCellsPresentThanExpectedException e) {
-            return new Result.Err<>(e);
+            return Result.err(e);
         }
     }
 ueu(c96383764b2c9f46144be7dda78e291b3cb11e46}(sha(c96383764b2c9f46144be7dda78e291b3cb11e46node_idEC_kwDOAjP5fdoAKGM5NjM4Mzc2NGIyYzlmNDYxNDRiZTdkZGE3OGUyOTFiM2NiMTFlNDYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-28T07:32:00Zu	committer}(jЙ Jeremy Kongjҙ jkong@palantir.comjԙ 2023-06-28T07:32:00Zumessageremove volumestree}(jș (707934dc18b3d1aa28c901a9595218aa02d9b734url`https://api.github.com/repos/palantir/atlasdb/git/trees/707934dc18b3d1aa28c901a9595218aa02d9b734uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c96383764b2c9f46144be7dda78e291b3cb11e46
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSb4fEACgkQTLdFKain
zjzQ+Af6AxzDWYDxGcqIgTeRP4RPUwsndg0eEwaMmYjxkrUA3IhBgb0gktg7zNB1
msS0YrG40vA9wC+zFUFHf90INOQJnYXeQ5LLbTppAYP/A9lvVAZpcAtUo6nqjAFk
dtbumLYNX2DvEkaS3cueEKK7hiDfbSxkhNeWC3Ol9QQX2dHMaBr2yQ/+dmZysLgW
NU/Dboeu+iRfNbHPwRf9Dacs9uDdXGwDaimnBPf9My0stQIONjuWrhv35DeevK7m
rOcTi2OcWsFCPgaJInH6UFY1VsKsnGI9soJu9Do5PiLtafvAe35viLqQoKg1y0Gx
9A4fJXAVob7CiMMSmqVQ8USEWCmwPg==
=pUOu
-----END PGP SIGNATURE-----payloadtree 707934dc18b3d1aa28c901a9595218aa02d9b734
parent c7c6d8f39b0d85e4b24a813e7c98ca397471c6c8
author Jeremy Kong <jkong@palantir.com> 1687937520 +0200
committer Jeremy Kong <jkong@palantir.com> 1687937520 +0200

remove volumes
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/c96383764b2c9f46144be7dda78e291b3cb11e46html_urlShttps://github.com/palantir/atlasdb/commit/c96383764b2c9f46144be7dda78e291b3cb11e46comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c96383764b2c9f46144be7dda78e291b3cb11e46/commentsjΙ }(login
jeremyk-91idJZ jʙ MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj֙ }(j 
jeremyk-91j JZ jʙ MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj
 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(jș (c7c6d8f39b0d85e4b24a813e7c98ca397471c6c8j ^https://api.github.com/repos/palantir/atlasdb/commits/c7c6d8f39b0d85e4b24a813e7c98ca397471c6c8j Shttps://github.com/palantir/atlasdb/commit/c7c6d8f39b0d85e4b24a813e7c98ca397471c6c8uastats}(totalK	additionsK 	deletionsKufiles]}(jș (a1a795aca9d4fd841a4cf6f300b5ad151a32e4ecfilename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedj* K j+ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/c96383764b2c9f46144be7dda78e291b3cb11e46/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/c96383764b2c9f46144be7dda78e291b3cb11e46/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=c96383764b2c9f46144be7dda78e291b3cb11e46patchX8  @@ -15,8 +15,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra1
-    volumes:
-      - /opt/config/volumes/cassandra1:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
@@ -35,8 +33,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra2
-    volumes:
-      - /opt/config/volumes/cassandra2:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
@@ -55,8 +51,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra3
-    volumes:
-      - /opt/config/volumes/cassandra3:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.4uau(2a9aed066dbb21b588a64f64f1d6d196a5ac4773}(sha(2a9aed066dbb21b588a64f64f1d6d196a5ac4773node_idEC_kwDOAjP5fdoAKDJhOWFlZDA2NmRiYjIxYjU4OGE2NGY2NGYxZDZkMTk2YTVhYzQ3NzMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-04T15:40:50Zu	committer}(jG 
Sam KramerjI skramer@palantir.comjK 2023-08-04T15:40:50Zumessageclean up prtree}(j? (c82e8a08670483c631ccc656630e643349e727cburl`https://api.github.com/repos/palantir/atlasdb/git/trees/c82e8a08670483c631ccc656630e643349e727cbujW bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2a9aed066dbb21b588a64f64f1d6d196a5ac4773
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTNHAIACgkQmPPOpKR4
XS3lLwf9GdFRGmSA81aBpyuJH4NNBqpOiKMbvkJVnY+7FOSQYWRcGq4tNkgr+8T/
QIP3gZdQCE4vqjAEV8DvhR/pgeCgnt/5yWKBV+Y916sFIzsaAL9O/YoGvFDZYxFF
7oz62EZhr47lE0yVteBjqcsngQM+ZRHgK1xN5BcGtICkAsT/h+/hSYcwqbcFgQwj
0muEeqFYIrrftOn1PVIOHphkRrrfWMbvSjUNtcJPZt46y50GggA/ogX/TdYn3vQW
kiKr0SU55VBMeTgBzwa8LJB4CDULmA2eG6rMTM8fJbCZhX/xy+eJ1l/nzJL8ZZ1B
BaCC7XK/qnQ9v4hPEoooorut5cD0oA==
=6lNd
-----END PGP SIGNATURE-----payloadtree c82e8a08670483c631ccc656630e643349e727cb
parent 5673acc7e293ff081b915f4406a2d9337d939cd8
author Sam Kramer <skramer@palantir.com> 1691163650 +0100
committer Sam Kramer <skramer@palantir.com> 1691163650 +0100

clean up pr
uujW ^https://api.github.com/repos/palantir/atlasdb/commits/2a9aed066dbb21b588a64f64f1d6d196a5ac4773html_urlShttps://github.com/palantir/atlasdb/commit/2a9aed066dbb21b588a64f64f1d6d196a5ac4773comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2a9aed066dbb21b588a64f64f1d6d196a5ac4773/commentsjE }(login
Sam-KrameridJ^2_ jA MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jW 'https://api.github.com/users/Sam-Kramerje https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujM }(jj 
Sam-Kramerjl J^2_ jA MDQ6VXNlcjYyMzg4MTQ=jn 3https://avatars.githubusercontent.com/u/6238814?v=4jp h5jW 'https://api.github.com/users/Sam-Kramerje https://github.com/Sam-Kramerjs 1https://api.github.com/users/Sam-Kramer/followersju >https://api.github.com/users/Sam-Kramer/following{/other_user}jw 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jy >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j{ 5https://api.github.com/users/Sam-Kramer/subscriptionsj} ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j? (5673acc7e293ff081b915f4406a2d9337d939cd8jW ^https://api.github.com/repos/palantir/atlasdb/commits/5673acc7e293ff081b915f4406a2d9337d939cd8je Shttps://github.com/palantir/atlasdb/commit/5673acc7e293ff081b915f4406a2d9337d939cd8uastats}(totalK"	additionsK	deletionsKufiles]}(j? (2c7e93db2598ca6b9b07a017b91696a21256ff0dfilenameYleader-election-impl/src/main/java/com/palantir/leader/proxy/AwaitingLeadershipProxy.javastatusmodifiedj Kj KchangesK"blob_urlhttps://github.com/palantir/atlasdb/blob/2a9aed066dbb21b588a64f64f1d6d196a5ac4773/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2a9aed066dbb21b588a64f64f1d6d196a5ac4773/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.java?ref=2a9aed066dbb21b588a64f64f1d6d196a5ac4773patchX
  @@ -41,6 +41,7 @@
 import java.lang.reflect.Method;
 import java.lang.reflect.Proxy;
 import java.time.Duration;
+import java.util.concurrent.ExecutionException;
 import java.util.function.Supplier;
 
 @SuppressWarnings("ProxyNonConstantType")
@@ -157,20 +158,10 @@ protected Object handleInvocation(Object proxy, Method method, Object[] args) th
 
     private RuntimeException handleDelegateThrewException(
             LeadershipToken leadershipToken, InvocationTargetException exception) throws Exception {
-
         Throwable cause = exception.getCause();
 
-        if (cause instanceof ServiceNotAvailableException) {
-            boolean notLeading = true;
-            if (cause instanceof MaybeNotCurrentLeaderException) {
-                notLeading = isNotLeading(
-                        leadershipCoordinator.isStillLeading(leadershipToken).get());
-            }
+        maybeHandleLeadershipChangeException(leadershipToken, cause);
 
-            if (notLeading) {
-                leadershipStateManager.handleNotLeading(leadershipToken, exception.getCause());
-            }
-        }
         // Prevent blocked lock requests from receiving a non-retryable 500 on interrupts
         // in case of a leader election.
         if (cause instanceof InterruptedException && !leadershipCoordinator.isStillCurrentToken(leadershipToken)) {
@@ -181,6 +172,27 @@ private RuntimeException handleDelegateThrewException(
         throw new RuntimeException(cause);
     }
 
+    /**
+     * Check and see if the provided throwable thew a {@link ServiceNotAvailableException} and if so, check and see
+     * if it is a {@link MaybeNotCurrentLeaderException}. If it is, check and see if we are still leading, as we may
+     * still be, but contending with ourselves. Otherwise, assume we are not, and invalidate our leadership state.
+     */
+    private void maybeHandleLeadershipChangeException(LeadershipToken leadershipToken, Throwable throwable)
+            throws ExecutionException, InterruptedException {
+        if (throwable instanceof ServiceNotAvailableException) {
+            boolean notLeading = true;
+
+            if (throwable instanceof MaybeNotCurrentLeaderException) {
+                notLeading = isNotLeading(
+                        leadershipCoordinator.isStillLeading(leadershipToken).get());
+            }
+
+            if (notLeading) {
+                leadershipStateManager.handleNotLeading(leadershipToken, throwable);
+            }
+        }
+    }
+
     private static boolean isNotLeading(StillLeadingStatus leading) {
         // treat a repeated NO_QUORUM as NOT_LEADING; likely we've been cut off from the other nodes
         // and should assume we're not the leaderuau(7bad649d3c6875d3919d3a8429d239954c4d8c1e}(sha(7bad649d3c6875d3919d3a8429d239954c4d8c1enode_idEC_kwDOAjP5fdoAKDdiYWQ2NDlkM2M2ODc1ZDM5MTlkM2E4NDI5ZDIzOTk1NGM0ZDhjMWUcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-05-16T18:51:58Zu	committer}(j David Schlosnaglej davids@palantir.comj 2023-05-16T18:51:58Zumessage<Generate StreamStore implementations with presized maps/setstree}(j (517313691f1ebbc374d7320e3114afb0945042daurl`https://api.github.com/repos/palantir/atlasdb/git/trees/517313691f1ebbc374d7320e3114afb0945042daujΚ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7bad649d3c6875d3919d3a8429d239954c4d8c1e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmRj0M4ACgkQR9hsJ74Q
0l9o2Qf/QXUU7gZ/wKioR+HbzIQCFH3wMVpCefXL31Zfp5mSjn90t7f4Y8fX2zgS
xl/X/XHQa4BmGHgYfljNlfjcpwr/OTLgMJxf1C09qarvQh/y11NjIs/FofWSnQIR
2OhjCVYXbroU3M90GcAWYDmFl2tKvpwTNqxNrRfyMKk0XRk2LMTCGoSOglsL2Jwg
oKdHy79G3YS/jDelyAZWfEa1Db48q/2XR5OFbHS3hPtNHLiKGdVPqM79eTJ9lJ4B
uBlH/pYAfspwZ7ChOCjmhFsdoLtfJBwtP82e91tTVa99hoF9ndUHR/xdWJHed7qw
+JxwnKiMTOEOGmDCCix7kJAXw315SA==
=I0n4
-----END PGP SIGNATURE-----payloadX  tree 517313691f1ebbc374d7320e3114afb0945042da
parent d0e1df69585786e972d8642a1f50a8f1d5814d8d
author David Schlosnagle <davids@palantir.com> 1684263118 -0400
committer David Schlosnagle <davids@palantir.com> 1684263118 -0400

Generate StreamStore implementations with presized maps/sets
uujΚ ^https://api.github.com/repos/palantir/atlasdb/commits/7bad649d3c6875d3919d3a8429d239954c4d8c1ehtml_urlShttps://github.com/palantir/atlasdb/commit/7bad649d3c6875d3919d3a8429d239954c4d8c1ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7bad649d3c6875d3919d3a8429d239954c4d8c1e/commentsj }(loginschlosnaidMBj MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jΚ %https://api.github.com/users/schlosnajܚ https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujĚ }(j schlosnaj MBj MDQ6VXNlcjU0NTk0j 1https://avatars.githubusercontent.com/u/54594?v=4j h5jΚ %https://api.github.com/users/schlosnajܚ https://github.com/schlosnaj /https://api.github.com/users/schlosna/followersj <https://api.github.com/users/schlosna/following{/other_user}j 5https://api.github.com/users/schlosna/gists{/gist_id}j <https://api.github.com/users/schlosna/starred{/owner}{/repo}j 3https://api.github.com/users/schlosna/subscriptionsj *https://api.github.com/users/schlosna/orgsj +https://api.github.com/users/schlosna/reposj 6https://api.github.com/users/schlosna/events{/privacy}j 5https://api.github.com/users/schlosna/received_eventsj Userj uparents]}(j (d0e1df69585786e972d8642a1f50a8f1d5814d8djΚ ^https://api.github.com/repos/palantir/atlasdb/commits/d0e1df69585786e972d8642a1f50a8f1d5814d8djܚ Shttps://github.com/palantir/atlasdb/commit/d0e1df69585786e972d8642a1f50a8f1d5814d8duastats}(totalK	additionsK	deletionsKufiles]}(j (8adb21b448fa2a5a257bb87fb7a4c6fc9e50e566filenamecatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/render/StreamStoreRenderer.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7bad649d3c6875d3919d3a8429d239954c4d8c1e/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Frender%2FStreamStoreRenderer.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7bad649d3c6875d3919d3a8429d239954c4d8c1e/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Frender%2FStreamStoreRenderer.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Frender%2FStreamStoreRenderer.java?ref=7bad649d3c6875d3919d3a8429d239954c4d8c1epatchX
  @@ -362,7 +362,8 @@ private void putMetadataAndHashIndexTask() {
                     line("}");
                     line("putHashIndexTask(t, rowsToStoredMetadata);");
                     line();
-                    line("Map<", StreamMetadataRow, ", StreamMetadata> rowsToMetadata = new HashMap<>();");
+                    line("Map<", StreamMetadataRow, ", StreamMetadata> rowsToMetadata =");
+                    line("        Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());");
                     line("rowsToMetadata.putAll(rowsToStoredMetadata);");
                     line("rowsToMetadata.putAll(rowsToUnstoredMetadata);");
                     line("mdTable.putMetadata(rowsToMetadata);");
@@ -462,7 +463,10 @@ private void getMetadata() {
                             "Map<",
                             StreamMetadataRow,
                             ", StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));");
-                    line("Map<", StreamId, ", StreamMetadata> ret = new HashMap<>();");
+                    line(
+                            "Map<",
+                            StreamId,
+                            ", StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());");
                     line("for (Map.Entry<", StreamMetadataRow, ", StreamMetadata> e : metadatas.entrySet()) {");
                     {
                         line("ret.put(e.getKey().getId(), e.getValue());");
@@ -494,7 +498,7 @@ private void lookupStreamIdsByHash() {
                             ", ",
                             StreamHashAidxColumnValue,
                             "> m = idx.getRowsMultimap(rows);");
-                    line("Map<", StreamId, ", Sha256Hash> hashForStreams = new HashMap<>();");
+                    line("Map<", StreamId, ", Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());");
                     line("for (", StreamHashAidxRow, " r : m.keySet()) {");
                     {
                         line("for (", StreamHashAidxColumnValue, " v : m.get(r)) {");
@@ -535,7 +539,7 @@ private void lookupStreamIdsByHash() {
             private void getHashIndexRowsForHashes() {
                 line("private Set<", StreamHashAidxRow, "> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {");
                 {
-                    line("Set<", StreamHashAidxRow, "> rows = new HashSet<>();");
+                    line("Set<", StreamHashAidxRow, "> rows = Sets.newHashSetWithExpectedSize(hashes.size());");
                     line("for (Sha256Hash h : hashes) {");
                     {
                         line("rows.add(", StreamHashAidxRow, ".of(h));");uau(d3d20588bfa1092b760fbb3cba7daf8da03f8fc4}(sha(d3d20588bfa1092b760fbb3cba7daf8da03f8fc4node_idEC_kwDOAjP5fdoAKGQzZDIwNTg4YmZhMTA5MmI3NjBmYmIzY2JhN2RhZjhkYTAzZjhmYzQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-14T19:52:37Zu	committer}(j5 
Sam Kramerj7 skramer@palantir.comj9 2023-04-14T19:52:37Zumessageclean uptree}(j- (bfaddf59ae7db194b0a200763d76264691bc1f75url`https://api.github.com/repos/palantir/atlasdb/git/trees/bfaddf59ae7db194b0a200763d76264691bc1f75ujE bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d3d20588bfa1092b760fbb3cba7daf8da03f8fc4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ5rwUACgkQmPPOpKR4
XS14aAf/TKAs6twgFW4EBniOSTlXB8oUcF8JiEBOjM0We217bKE9Uww1CokK4vQ/
fCA3o2qkatl/AEZcpuLIhPepGUA2OmZpvvfidR6s9T4U8fLAANLEZyoCmx2A90zS
5fOENlogBhAbCX6auSA14iuZwodSWTazN+qYsQe3hDxkt8TqbfOynpaqN0YNI19f
Y3H9z8J+v5bMcjWoCkjYrYlJdpOpko3qO6SGjtcCTBZBWt9HLwKVHKWqcmEf8yoY
YiyxK+qrvd90dtkagU8d13IrN/HNIm87XvhPRNwHGH9+B9l7+/URbtz1BSJbHUoL
pnSusX3yeM0zTnCu0OzvmsGJqmidfw==
=JAHV
-----END PGP SIGNATURE-----payloadtree bfaddf59ae7db194b0a200763d76264691bc1f75
parent 1a421ae20774b0f7960d037d782db6f92163d09e
author Sam Kramer <skramer@palantir.com> 1681501957 +0100
committer Sam Kramer <skramer@palantir.com> 1681501957 +0100

clean up
uujE ^https://api.github.com/repos/palantir/atlasdb/commits/d3d20588bfa1092b760fbb3cba7daf8da03f8fc4html_urlShttps://github.com/palantir/atlasdb/commit/d3d20588bfa1092b760fbb3cba7daf8da03f8fc4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d3d20588bfa1092b760fbb3cba7daf8da03f8fc4/commentsj3 }(login
Sam-KrameridJ^2_ j/ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jE 'https://api.github.com/users/Sam-KramerjS https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj; }(jX 
Sam-KramerjZ J^2_ j/ MDQ6VXNlcjYyMzg4MTQ=j\ 3https://avatars.githubusercontent.com/u/6238814?v=4j^ h5jE 'https://api.github.com/users/Sam-KramerjS https://github.com/Sam-Kramerja 1https://api.github.com/users/Sam-Kramer/followersjc >https://api.github.com/users/Sam-Kramer/following{/other_user}je 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jg >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}ji 5https://api.github.com/users/Sam-Kramer/subscriptionsjk ,https://api.github.com/users/Sam-Kramer/orgsjm -https://api.github.com/users/Sam-Kramer/reposjo 8https://api.github.com/users/Sam-Kramer/events{/privacy}jq 7https://api.github.com/users/Sam-Kramer/received_eventsjs Userju uparents]}(j- (1a421ae20774b0f7960d037d782db6f92163d09ejE ^https://api.github.com/repos/palantir/atlasdb/commits/1a421ae20774b0f7960d037d782db6f92163d09ejS Shttps://github.com/palantir/atlasdb/commit/1a421ae20774b0f7960d037d782db6f92163d09euastats}(totalKU	additionsK/	deletionsK&ufiles](}(j- (4bd5c7bff0a6c02e97e8290b6c53b71012fc30f4filenamegatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowValidator.javastatusmodifiedj Kj KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/d3d20588bfa1092b760fbb3cba7daf8da03f8fc4/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidator.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d3d20588bfa1092b760fbb3cba7daf8da03f8fc4/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidator.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidator.java?ref=d3d20588bfa1092b760fbb3cba7daf8da03f8fc4patchX  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import java.util.Arrays;
 import java.util.List;
 import org.immutables.value.Value;
 
@@ -28,15 +29,16 @@ public interface WorkflowValidator<WorkflowTypeT extends Workflow> {
     @Value.Parameter
     List<InvariantReporter<?>> invariants();
 
-    default WorkflowHistoryValidator run() {
-        return WorkflowHistoryValidator.of(workflow().run(), invariants());
-    }
-
     static <WorkflowTypeT extends Workflow> WorkflowValidator<WorkflowTypeT> of(
             WorkflowTypeT workflow, List<InvariantReporter<?>> invariants) {
         return ImmutableWorkflowValidator.of(workflow, invariants);
     }
 
+    static <WorkflowTypeT extends Workflow> WorkflowValidator<WorkflowTypeT> of(
+            WorkflowTypeT workflow, InvariantReporter<?>... invariants) {
+        return ImmutableWorkflowValidator.of(workflow, Arrays.asList(invariants));
+    }
+
     static <WorkflowTypeT extends Workflow> ImmutableWorkflowValidator.Builder<WorkflowTypeT> builder() {
         return ImmutableWorkflowValidator.builder();
     }u}(j- (ad84e0acb9f4d77a8967d665d034ff9136f48e85j latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/d3d20588bfa1092b760fbb3cba7daf8da03f8fc4/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://github.com/palantir/atlasdb/raw/d3d20588bfa1092b760fbb3cba7daf8da03f8fc4/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=d3d20588bfa1092b760fbb3cba7daf8da03f8fc4j X  @@ -97,10 +97,10 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         SingleRowTwoCellsWorkflowConfiguration workflowConfig =
                 configuration.install().singleRowTwoCellsConfig();
 
-        log.info("antithesis: start_faults");
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
-                .run(createSingleRowTwoCellsWorkflowGroup(
+                .run(createSingleRowTwoCellsWorkflowValidator(
                         transactionStoreFactory, workflowConfig, environment.lifecycle()));
+
         log.info("antithesis: terminate");
 
         workflowsRanLatch.countDown();
@@ -110,7 +110,7 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
-    private WorkflowValidator createSingleRowTwoCellsWorkflowGroup(
+    private WorkflowValidator createSingleRowTwoCellsWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             SingleRowTwoCellsWorkflowConfiguration workflowConfig,
             LifecycleEnvironment lifecycle) {u}(j- (68329cde9a8a7c37b9f7dd8eec6eb5aa5199fed9j qatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunner.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/d3d20588bfa1092b760fbb3cba7daf8da03f8fc4/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javaj https://github.com/palantir/atlasdb/raw/d3d20588bfa1092b760fbb3cba7daf8da03f8fc4/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.java?ref=d3d20588bfa1092b760fbb3cba7daf8da03f8fc4j XR  @@ -41,6 +41,7 @@ public AntithesisWorkflowValidatorRunner(ListeningExecutorService listeningExecu
     @Override
     public void run(List<WorkflowValidator<Workflow>> workflowValidators) {
         try {
+            log.info("antithesis: start_faults");
             List<WorkflowHistoryValidator> workflowHistoryValidators = Futures.allAsList(
                             submitWorkflowValidators(workflowValidators))
                     .get();
@@ -67,7 +68,8 @@ private void checkAndReportInvariantViolations(WorkflowHistoryValidator group) {
     private List<ListenableFuture<WorkflowHistoryValidator>> submitWorkflowValidators(
             List<WorkflowValidator<Workflow>> workflowValidators) {
         return workflowValidators.stream()
-                .map(workflowGroup -> listeningExecutorService.submit(workflowGroup::run))
+                .map(workflowValidator -> listeningExecutorService.submit(() -> WorkflowHistoryValidator.of(
+                        workflowValidator.workflow().run(), workflowValidator.invariants())))
                 .collect(Collectors.toList());
     }
 }u}(j- (67a610b30a8911e89be88fee9dc5fd7b4167cf9cj uatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunnerTest.javaj modifiedj K#j Kj KAj https://github.com/palantir/atlasdb/blob/d3d20588bfa1092b760fbb3cba7daf8da03f8fc4/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javaj https://github.com/palantir/atlasdb/raw/d3d20588bfa1092b760fbb3cba7daf8da03f8fc4/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.java?ref=d3d20588bfa1092b760fbb3cba7daf8da03f8fc4j Xl  @@ -19,7 +19,8 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.doAnswer;
-import static org.mockito.Mockito.spy;
+import static org.mockito.Mockito.doThrow;
+import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
@@ -30,7 +31,6 @@
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowValidator;
-import java.util.List;
 import java.util.concurrent.Executors;
 import java.util.concurrent.Semaphore;
 import java.util.concurrent.TimeUnit;
@@ -43,8 +43,8 @@
 @RunWith(MockitoJUnitRunner.class)
 public class AntithesisWorkflowValidatorRunnerTest {
 
-    private final ListeningExecutorService executorService =
-            MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(2));
+    private static final ListeningExecutorService EXECUTOR_SERVICE =
+            MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(8));
 
     @Mock
     private Workflow workflow;
@@ -53,61 +53,66 @@ public class AntithesisWorkflowValidatorRunnerTest {
     private WorkflowHistory workflowHistory;
 
     @Mock
-    private InvariantReporter<Void> exampleInvariantReporterOne;
+    private InvariantReporter<Void> invariantReporterOne;
 
     @Mock
-    private InvariantReporter<Void> exampleInvariantReporterTwo;
+    private InvariantReporter<Void> invariantReporterTwo;
 
     private WorkflowValidator<Workflow> workflowValidator;
 
     @Before
     public void before() {
         when(workflow.run()).thenReturn(workflowHistory);
-        workflowValidator = WorkflowValidator.builder()
-                .workflow(workflow)
-                .addInvariants(exampleInvariantReporterOne)
-                .addInvariants(exampleInvariantReporterTwo)
-                .build();
+        workflowValidator = WorkflowValidator.of(workflow, invariantReporterOne, invariantReporterTwo);
     }
 
     @Test
-    public void runExecutesWorkflowAndInvokesInvariantReporter() {
-        new AntithesisWorkflowValidatorRunner(executorService).run(workflowValidator);
+    public void runExecutesWorkflowAndInvokesInvariantReporters() {
+        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(workflowValidator);
         verify(workflow, times(1)).run();
-        verify(exampleInvariantReporterOne, times(1)).report(any());
-        verify(exampleInvariantReporterTwo, times(1)).report(any());
+        verify(invariantReporterOne, times(1)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+
+    @Test
+    public void runValidatesAllInvariantsIgnoringExceptions() {
+        doThrow(new RuntimeException()).when(invariantReporterOne).report(any());
+        doThrow(new RuntimeException()).when(invariantReporterTwo).report(any());
+        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(workflowValidator);
+        verify(workflow, times(1)).run();
+        verify(invariantReporterOne, times(1)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
     }
 
     @Test
     public void runExecutesMultipleWorkflowsAndWaitsForAllToFinishBeforeInvokingInvariantReporter() {
         Semaphore semaphore = new Semaphore(0);
-        Workflow slowWorkflow = spy(new Workflow() {
-            @Override
-            public WorkflowHistory run() {
-                try {
-                    assertThat(semaphore.tryAcquire(5, TimeUnit.SECONDS)).isFalse();
-                } catch (InterruptedException e) {
-                    throw new RuntimeException(e);
-                }
-                return workflowHistory;
+        Workflow slowWorkflow = mock(Workflow.class);
+        when(slowWorkflow.run()).thenAnswer(_input -> {
+            try {
+                assertThat(semaphore.tryAcquire(5, TimeUnit.SECONDS))
+                        .as("No permits should have been released yet as the invariant reporter should have not ran")
+                        .isFalse();
+            } catch (InterruptedException e) {
+                throw new RuntimeException(e);
             }
+            return workflowHistory;
         });
 
-        WorkflowValidator<Workflow> slowWorkflowValidator =
-                WorkflowValidator.of(slowWorkflow, List.of(exampleInvariantReporterOne));
+        WorkflowValidator<Workflow> slowWorkflowValidator = WorkflowValidator.of(slowWorkflow, invariantReporterOne);
 
         doAnswer(_input -> {
                     semaphore.release();
                     return null;
                 })
-                .when(exampleInvariantReporterOne)
+                .when(invariantReporterOne)
                 .report(any());
 
-        new AntithesisWorkflowValidatorRunner(executorService).run(workflowValidator, slowWorkflowValidator);
+        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(slowWorkflowValidator, workflowValidator);
 
         verify(workflow, times(1)).run();
         verify(slowWorkflow, times(1)).run();
-        verify(exampleInvariantReporterOne, times(2)).report(any());
-        verify(exampleInvariantReporterTwo, times(1)).report(any());
+        verify(invariantReporterOne, times(2)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
     }
 }ueu(b67eb26ee9d8964b7565a92186d37e5512ea124f}(sha(b67eb26ee9d8964b7565a92186d37e5512ea124fnode_idEC_kwDOAjP5fdoAKGI2N2ViMjZlZTlkODk2NGI3NTY1YTkyMTg2ZDM3ZTU1MTJlYTEyNGYcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-06-29T11:12:07Zu	committer}(jě GitHubjƛ noreply@github.comjț 2023-06-29T11:12:07Zumessage`Optimize CassandraService#getAddressForHost (#6648)

Optimize CassandraService#getAddressForHosttree}(j (fb917eeb76d4ae762b89bd7b72377babd7874e95url`https://api.github.com/repos/palantir/atlasdb/git/trees/fb917eeb76d4ae762b89bd7b72377babd7874e95ujԛ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b67eb26ee9d8964b7565a92186d37e5512ea124f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJknWcHCRBK7hj4Ov3rIwAA128IAJrdnnPptFxVCgLrJd+dh4JV
yoKnJGflLGra0Uzfuzhl55I5FPiqJCeeICdl/O6q2iHqTvOxoR7UA8vAcCz3Hk3s
tVFEWymZgpRpio2ZzudrgC5yYMGyud/10xoaXfCeV+eblScAvngEzxlytrq05Ufy
etltXypA9VKyJDMlM7jQvFFfmrIf1Rw2vObI5KDb98DGhqUYslo479c1n6i6XzWW
UfI3fz8Ucqhl/iffLeswK6VgLdR43ibLipD6YK6QKhgJ1LYWNQyOlIkfUPPgv9/7
e7Ayxoe+CYq2JKP0pRWTQNYmioT5yv6htqp64VQB6qMgMuvGljti4JnvKeHXn+o=
=3MqU
-----END PGP SIGNATURE-----
payloadX7  tree fb917eeb76d4ae762b89bd7b72377babd7874e95
parent 37691cc03c3ab63db46ca654ed45ca11faca4b7a
author David Schlosnagle <davids@palantir.com> 1688037127 -0400
committer GitHub <noreply@github.com> 1688037127 +0000

Optimize CassandraService#getAddressForHost (#6648)

Optimize CassandraService#getAddressForHost
uujԛ ^https://api.github.com/repos/palantir/atlasdb/commits/b67eb26ee9d8964b7565a92186d37e5512ea124fhtml_urlShttps://github.com/palantir/atlasdb/commit/b67eb26ee9d8964b7565a92186d37e5512ea124fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b67eb26ee9d8964b7565a92186d37e5512ea124f/commentsj }(loginschlosnaidMBj MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jԛ %https://api.github.com/users/schlosnaj https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujʛ }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5jԛ %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j (37691cc03c3ab63db46ca654ed45ca11faca4b7ajԛ ^https://api.github.com/repos/palantir/atlasdb/commits/37691cc03c3ab63db46ca654ed45ca11faca4b7aj Shttps://github.com/palantir/atlasdb/commit/37691cc03c3ab63db46ca654ed45ca11faca4b7auastats}(totalK	additionsK	deletionsKufiles](}(j (4e16bd6856b710e2bea5df31215dec94adb90e6bfilenamebatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b67eb26ee9d8964b7565a92186d37e5512ea124f/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b67eb26ee9d8964b7565a92186d37e5512ea124f/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=b67eb26ee9d8964b7565a92186d37e5512ea124fpatchXy  @@ -287,17 +287,15 @@ private CassandraServer getAddressForHostThrowUnchecked(String host) {
     CassandraServer getAddressForHost(String inputHost) throws UnknownHostException {
         Map<String, String> hostnamesByIp = hostnameByIpSupplier.get();
         String cassandraHostName = hostnamesByIp.getOrDefault(inputHost, inputHost);
-        return CassandraServer.of(cassandraHostName, getReachableProxies(cassandraHostName));
-    }
-
-    private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) throws UnknownHostException {
-        InetAddress[] resolvedHosts = InetAddress.getAllByName(inputHost);
+        InetAddress[] resolvedHosts = InetAddress.getAllByName(cassandraHostName);
         int knownPort = getKnownPort();
 
         // It is okay to have reachable proxies that do not have a hostname
-        return Stream.of(resolvedHosts)
-                .map(inetAddr -> new InetSocketAddress(inetAddr, knownPort))
-                .collect(ImmutableSet.toImmutableSet());
+        ImmutableSet.Builder<InetSocketAddress> proxies = ImmutableSet.builderWithExpectedSize(resolvedHosts.length);
+        for (InetAddress host : resolvedHosts) {
+            proxies.add(new InetSocketAddress(host, knownPort));
+        }
+        return CassandraServer.of(cassandraHostName, proxies.build());
     }
 
     private int getKnownPort() throws UnknownHostException {u}(j (3750fb7fc4996863b5345b1cb6cbf683dd8cfc1fj$ $changelog/@unreleased/pr-6648.v2.ymlj& addedj Kj K j( Kj) |https://github.com/palantir/atlasdb/blob/b67eb26ee9d8964b7565a92186d37e5512ea124f/changelog%2F%40unreleased%2Fpr-6648.v2.ymlj+ {https://github.com/palantir/atlasdb/raw/b67eb26ee9d8964b7565a92186d37e5512ea124f/changelog%2F%40unreleased%2Fpr-6648.v2.ymlj- https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6648.v2.yml?ref=b67eb26ee9d8964b7565a92186d37e5512ea124fj/ @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize CassandraService#getAddressForHost
+  links:
+  - https://github.com/palantir/atlasdb/pull/6648ueu(5ca6e87d1e1770c0515359e7b3d44769e48fe604}(sha(5ca6e87d1e1770c0515359e7b3d44769e48fe604node_idEC_kwDOAjP5fdoAKDVjYTZlODdkMWUxNzcwYzA1MTUzNTllN2IzZDQ0NzY5ZTQ4ZmU2MDQcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-08-08T16:17:03Zu	committer}(jC 
svc-changelogjE svc-changelog@palantir.comjG 2023-08-08T16:17:03ZumessageAdd generated changelog entriestree}(j; (4a93cd676dc1610d315aa39d42d3622c55e1728furl`https://api.github.com/repos/palantir/atlasdb/git/trees/4a93cd676dc1610d315aa39d42d3622c55e1728fujS bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5ca6e87d1e1770c0515359e7b3d44769e48fe604
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmTSan8JEHYaJX37fAFQAAAXSgD/QucS/H7kro2TzDfV6gKqmff8
QG75vq5xcW4WGaCyYc4BAOwPrjImKMCTno+JNtwJqEYgAFIPFjivpvCLoik9JQBK
=gDcQ
-----END PGP SIGNATURE-----payloadX  tree 4a93cd676dc1610d315aa39d42d3622c55e1728f
parent 0c1c9e1de12352c7021af26f626b09d7e1f3d4b2
author svc-changelog <svc-changelog@palantir.com> 1691511423 +0000
committer svc-changelog <svc-changelog@palantir.com> 1691511423 +0000

Add generated changelog entriesuujS ^https://api.github.com/repos/palantir/atlasdb/commits/5ca6e87d1e1770c0515359e7b3d44769e48fe604html_urlShttps://github.com/palantir/atlasdb/commit/5ca6e87d1e1770c0515359e7b3d44769e48fe604comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5ca6e87d1e1770c0515359e7b3d44769e48fe604/commentsjA }(login
svc-changelogidJ#j= MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jS *https://api.github.com/users/svc-changelogja  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujI }(jf 
svc-changelogjh J#j= MDQ6VXNlcjg0MDc3NjAzjj 4https://avatars.githubusercontent.com/u/84077603?v=4jl h5jS *https://api.github.com/users/svc-changelogja  https://github.com/svc-changelogjo 4https://api.github.com/users/svc-changelog/followersjq Ahttps://api.github.com/users/svc-changelog/following{/other_user}js :https://api.github.com/users/svc-changelog/gists{/gist_id}ju Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jw 8https://api.github.com/users/svc-changelog/subscriptionsjy /https://api.github.com/users/svc-changelog/orgsj{ 0https://api.github.com/users/svc-changelog/reposj} ;https://api.github.com/users/svc-changelog/events{/privacy}j :https://api.github.com/users/svc-changelog/received_eventsj Userj uparents]}(j; (0c1c9e1de12352c7021af26f626b09d7e1f3d4b2jS ^https://api.github.com/repos/palantir/atlasdb/commits/0c1c9e1de12352c7021af26f626b09d7e1f3d4b2ja Shttps://github.com/palantir/atlasdb/commit/0c1c9e1de12352c7021af26f626b09d7e1f3d4b2uastats}(totalK	additionsK	deletionsK ufiles]}(j; (1d3f60e7d26f888f6bd858ac5162ffd0db263556filename$changelog/@unreleased/pr-6671.v2.ymlstatusaddedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/5ca6e87d1e1770c0515359e7b3d44769e48fe604/changelog%2F%40unreleased%2Fpr-6671.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/5ca6e87d1e1770c0515359e7b3d44769e48fe604/changelog%2F%40unreleased%2Fpr-6671.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6671.v2.yml?ref=5ca6e87d1e1770c0515359e7b3d44769e48fe604patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Pass Metadata through SnapshotTransaction'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6671uau(19d42f40a5a5c1a84af21206b353ed318d9125f8}(sha(19d42f40a5a5c1a84af21206b353ed318d9125f8node_idEC_kwDOAjP5fdoAKDE5ZDQyZjQwYTVhNWMxYTg0YWYyMTIwNmIzNTNlZDMxOGQ5MTI1Zjgcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-10T10:35:43Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-04-10T10:35:43Zumessagefixtree}(j (61752763b0fe3879a939f97949847b1b8548e1eaurl`https://api.github.com/repos/palantir/atlasdb/git/trees/61752763b0fe3879a939f97949847b1b8548e1eaujʜ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/19d42f40a5a5c1a84af21206b353ed318d9125f8
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQz5n8ACgkQTLdFKain
zjzbDggAs6c92qLm52xpjXD0UMckGZM2cDUrrT/bpY0Sw97W4TKS7Jdx9Pb5Nm1k
YGETLuymFRdAlqmP9XTXGGZrbKuJm9J3o6MM+NZHo3CWVx+psNpmO3saXG+Yuoe2
e23g9j7kAPu2vo53TtBMcA/E8xlNLUUWvvlDBl5dYvHvtnixOqG1uZy+RXiW/Sd4
LyRUMbtz1pQXqgtHrhOgVqPkZt5iublH6PJc4b50O5nngZv5cHeUQT5tvNHvixsd
nYMgX2BYfrLMdzzg/Pn/AdiR8GMOMe6+Dj+hkXVulGe8fA1ZIkYULSVTcnrZsDjQ
Z9GLTzKLvT2unLMryKMZ7/pV0quxIA==
=D5tT
-----END PGP SIGNATURE-----payloadtree 61752763b0fe3879a939f97949847b1b8548e1ea
parent 5b2f4b9e0992ecf666618b05d667acb98da3c491
author Jeremy Kong <jkong@palantir.com> 1681122943 +0800
committer Jeremy Kong <jkong@palantir.com> 1681122943 +0800

fix
uujʜ ^https://api.github.com/repos/palantir/atlasdb/commits/19d42f40a5a5c1a84af21206b353ed318d9125f8html_urlShttps://github.com/palantir/atlasdb/commit/19d42f40a5a5c1a84af21206b353ed318d9125f8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/19d42f40a5a5c1a84af21206b353ed318d9125f8/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jʜ 'https://api.github.com/users/jeremyk-91j؜ https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(jݜ 
jeremyk-91jߜ JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5jʜ 'https://api.github.com/users/jeremyk-91j؜ https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j (5b2f4b9e0992ecf666618b05d667acb98da3c491jʜ ^https://api.github.com/repos/palantir/atlasdb/commits/5b2f4b9e0992ecf666618b05d667acb98da3c491j؜ Shttps://github.com/palantir/atlasdb/commit/5b2f4b9e0992ecf666618b05d667acb98da3c491uastats}(totalK	additionsK	deletionsKufiles](}(j (391c7f2dd0cbc99955bd3dee1056a1ad2dc3c2e8filenameKtimelock-agent/src/main/java/com/palantir/timelock/paxos/TimeLockAgent.javastatusmodifiedj Kj KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/19d42f40a5a5c1a84af21206b353ed318d9125f8/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javaraw_urlhttps://github.com/palantir/atlasdb/raw/19d42f40a5a5c1a84af21206b353ed318d9125f8/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.java?ref=19d42f40a5a5c1a84af21206b353ed318d9125f8patchX  @@ -329,7 +329,9 @@ private void createAndRegisterResources() {
 
         registerManagementResource();
         healthCheck = paxosResources.leadershipComponents().healthCheck(namespaces::getActiveClients);
-        LegacyAggregatedTimelockResource aggregatedTimelockResource = LegacyAggregatedTimelockResource.create(namespaces);
+
+        TimeLockResource resource = TimeLockResource.create(namespaces);
+        registrar.accept(resource);
 
         Function<String, LockService> lockServiceGetter =
                 namespace -> namespaces.get(namespace).getLockService();
@@ -352,22 +354,22 @@ private void createAndRegisterResources() {
             registerCorruptionHandlerWrappedService(
                     presentUndertowRegistrar,
                     MultiClientConjureTimelockResource.undertow(redirectRetryTargeter, asyncTimelockServiceGetter));
+
+            LegacyAggregatedTimelockResource aggregatedTimelockResource = LegacyAggregatedTimelockResource.create(namespaces);
             registerCorruptionHandlerWrappedService(
                     presentUndertowRegistrar,
                     new TimelockUndertowExceptionWrapper(
                             LegacyAggregatedTimelockResourceEndpoints.of(aggregatedTimelockResource),
                             redirectRetryTargeter));
         } else {
-            TimeLockResource resource = TimeLockResource.create(namespaces);
-            registrar.accept(resource);
+            registrar.accept(LegacyAggregatedTimelockResource.create(namespaces));
 
             registrar.accept(ConjureTimelockResource.jersey(redirectRetryTargeter, asyncTimelockServiceGetter));
             registrar.accept(ConjureLockWatchingResource.jersey(redirectRetryTargeter, asyncTimelockServiceGetter));
             registrar.accept(ConjureLockV1Resource.jersey(redirectRetryTargeter, lockServiceGetter));
             registrar.accept(TimeLockPaxosHistoryProviderResource.jersey(corruptionComponents.localHistoryLoader()));
             registrar.accept(
                     MultiClientConjureTimelockResource.jersey(redirectRetryTargeter, asyncTimelockServiceGetter));
-            registrar.accept(aggregatedTimelockResource);
         }
     }
 u}(j (68084cf0fab4a86ecb6cb25211fdf2341d75244dj _timelock-impl/src/main/java/com/palantir/atlasdb/timelock/LegacyAggregatedTimelockResource.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/19d42f40a5a5c1a84af21206b353ed318d9125f8/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAggregatedTimelockResource.javaj! https://github.com/palantir/atlasdb/raw/19d42f40a5a5c1a84af21206b353ed318d9125f8/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAggregatedTimelockResource.javaj# https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAggregatedTimelockResource.java?ref=19d42f40a5a5c1a84af21206b353ed318d9125f8j% X#  @@ -29,9 +29,12 @@
 import com.palantir.lock.HeldLocksGrant;
 import com.palantir.lock.HeldLocksToken;
 import com.palantir.lock.LockClient;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.LockRefreshToken;
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.LockResponse;
 import com.palantir.lock.LockServerOptions;
+import com.palantir.lock.LockState;
 import com.palantir.lock.SimpleHeldLocksToken;
 import com.palantir.logsafe.Safe;
 import com.palantir.timestamp.TimestampRange;
@@ -114,6 +117,20 @@ public LockResponse lockWithFullLockResponse(
         return namespaces.get(namespace).getLockService().lockWithFullLockResponse(client, request);
     }
 
+    @POST
+    @Path("/lock/lock-with-full-response")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @CancelableServerCall
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock-with-full-response")
+    public LockResponse lockWithFullLockResponse(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Handle.Body LockRequest request)
+            throws InterruptedException {
+        return lockWithFullLockResponse(namespace, LockClient.ANONYMOUS, request);
+    }
+
     @POST
     @Path("lock/unlock-deprecated")
     @Produces(MediaType.APPLICATION_JSON)
@@ -161,6 +178,18 @@ public Set<HeldLocksToken> getTokens(
         return namespaces.get(namespace).getLockService().getTokens(client);
     }
 
+    @POST
+    @Path("lock/get-tokens")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @CancelableServerCall
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/get-tokens")
+    public Set<HeldLocksToken> getTokens(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        return getTokens(namespace, LockClient.ANONYMOUS);
+    }
+
     @POST
     @Path("lock/refresh-tokens")
     @Produces(MediaType.APPLICATION_JSON)
@@ -222,6 +251,18 @@ public HeldLocksToken useGrant(
         return namespaces.get(namespace).getLockService().useGrant(client, grant);
     }
 
+    @POST
+    @Path("lock/use-grant")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/use-grant")
+    public HeldLocksToken useGrant(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Handle.Body HeldLocksGrant grant) {
+        return useGrant(namespace, LockClient.ANONYMOUS, grant);
+    }
+
     @POST
     @Path("lock/use-grant-id/{client}")
     @Produces(MediaType.APPLICATION_JSON)
@@ -235,6 +276,18 @@ public HeldLocksToken useGrant(
         return namespaces.get(namespace).getLockService().useGrant(client, grantId);
     }
 
+    @POST
+    @Path("lock/use-grant-id")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/use-grant-id")
+    public HeldLocksToken useGrant(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Handle.Body BigInteger grantId) {
+        return useGrant(namespace, LockClient.ANONYMOUS, grantId);
+    }
+
     @POST
     @Path("lock/min-locked-in-version-id")
     @Produces(MediaType.APPLICATION_JSON)
@@ -244,7 +297,7 @@ public HeldLocksToken useGrant(
     @Nullable
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version-id")
     public Long getMinLockedInVersionId(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
-        return namespaces.get(namespace).getLockService().getMinLockedInVersionId(namespace);
+        return namespaces.get(namespace).getLockService().getMinLockedInVersionId();
     }
 
     @POST
@@ -258,6 +311,16 @@ public Long getMinLockedInVersionId(
         return namespaces.get(namespace).getLockService().getMinLockedInVersionId(client);
     }
 
+    @POST
+    @Path("lock/min-locked-in-version-id-for-client")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version-id-for-client")
+    public Long getMinLockedInVersionIdForAnonymousClient(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        return getMinLockedInVersionId(namespace, LockClient.ANONYMOUS);
+    }
+
     @POST
     @Path("lock/lock-server-options")
     @Produces(MediaType.APPLICATION_JSON)
@@ -288,6 +351,96 @@ public void logCurrentState(@Safe @PathParam("namespace") @Handle.PathParam Stri
         namespaces.get(namespace).getLockService().logCurrentState();
     }
 
+    // Remote lock service
+    @POST
+    @Path("lock/lock/{client}")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Nullable
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock/{client}")
+    public LockRefreshToken lock(@Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Safe @PathParam("client") @Handle.PathParam String client,
+                                 @Handle.Body LockRequest request) throws InterruptedException {
+        return namespaces.get(namespace).getLockService().lock(client, request);
+    }
+
+    @POST
+    @Path("lock/lock")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Nullable
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock")
+    public LockRefreshToken lock(@Safe @PathParam("namespace") @Handle.PathParam String namespace,
+                                 @Handle.Body LockRequest request) throws InterruptedException {
+        return lock(namespace, LockClient.ANONYMOUS.getClientId(), request);
+    }
+
+    @POST
+    @Path("lock/try-lock/{client}")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/try-lock/{client}")
+    public HeldLocksToken lockAndGetHeldLocks(@Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Safe @PathParam("client") @Handle.PathParam String client, @Handle.Body LockRequest request)
+            throws InterruptedException {
+        return namespaces.get(namespace).getLockService().lockAndGetHeldLocks(client, request);
+    }
+
+    @POST
+    @Path("lock/try-lock")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/try-lock")
+    public HeldLocksToken lockAndGetHeldLocks(@Safe @PathParam("namespace") @Handle.PathParam String namespace,
+                                               @Handle.Body LockRequest request)
+            throws InterruptedException {
+        return lockAndGetHeldLocks(namespace, LockClient.ANONYMOUS.getClientId(), request);
+    }
+
+    @POST
+    @Path("lock/unlock")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/unlock")
+    public boolean unlock(@Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockRefreshToken token) {
+        return namespaces.get(namespace).getLockService().unlock(token);
+    }
+
+    @POST
+    @Path("lock/refresh-lock-tokens")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Idempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/refresh-lock-tokens")
+    public Set<LockRefreshToken> refreshLockRefreshTokens(@Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Handle.Body Iterable<LockRefreshToken> tokens) {
+        return namespaces.get(namespace).getLockService().refreshLockRefreshTokens(tokens);
+    }
+
+    @POST
+    @Path("lock/min-locked-in-version/{client}")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Idempotent
+    @Nullable
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version/{client}")
+    public Long getMinLockedInVersionId(@Safe @PathParam("namespace") @Handle.PathParam String namespace, @Safe @PathParam("client") @Handle.PathParam String client) {
+        return namespaces.get(namespace).getLockService().getMinLockedInVersionId(client);
+    }
+
+    @POST
+    @Path("lock/get-debugging-lock-state")
+    @Idempotent
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/get-debugging-lock-state")
+    public LockState getLockState(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Handle.Body LockDescriptor lock) {
+        return namespaces.get(namespace).getLockService().getLockState(lock);
+    }
+
     // Timestamp management
     @POST
     @Path("timestamp-management/fast-forward")u      }(j (831f2e1538ba19e26452967224afea05844729a2j Otimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimeLockResource.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/19d42f40a5a5c1a84af21206b353ed318d9125f8/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockResource.javaj! https://github.com/palantir/atlasdb/raw/19d42f40a5a5c1a84af21206b353ed318d9125f8/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockResource.javaj# https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockResource.java?ref=19d42f40a5a5c1a84af21206b353ed318d9125f8j% X  @@ -38,23 +38,8 @@ public static TimeLockResource create(TimelockNamespaces namespaces) {
         return new TimeLockResource(namespaces);
     }
 
-    @Path("/lock")
-    public LockService getLockService(@Safe @PathParam("namespace") String namespace) {
-        return namespaces.get(namespace).getLockService();
-    }
-
-    @Path("/timestamp")
-    public TimestampService getTimeService(@Safe @PathParam("namespace") String namespace) {
-        return namespaces.get(namespace).getTimestampService();
-    }
-
     @Path("/timelock")
     public AsyncTimelockResource getTimelockService(@Safe @PathParam("namespace") String namespace) {
         return namespaces.get(namespace).getTimelockResource();
     }
-
-    @Path("/timestamp-management")
-    public TimestampManagementService getTimestampManagementService(@Safe @PathParam("namespace") String namespace) {
-        return namespaces.get(namespace).getTimestampManagementService();
-    }
 }ueu(94de06c7ddd098508dfe05c0b39244681e752b70}(sha(94de06c7ddd098508dfe05c0b39244681e752b70node_idEC_kwDOAjP5fdoAKDk0ZGUwNmM3ZGRkMDk4NTA4ZGZlMDVjMGIzOTI0NDY4MWU3NTJiNzAcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-16T11:56:37Zu	committer}(jA Lucas MeirelesjC meireles31@msn.comjE 2023-06-16T11:56:37ZumessageScreate copy of Sets difference so we don't get a size change after adding to resulttree}(j9 (6c92a4b3d45bbe40aaeb7a90f6fed6f0a6f9b7d1url`https://api.github.com/repos/palantir/atlasdb/git/trees/6c92a4b3d45bbe40aaeb7a90f6fed6f0a6f9b7d1ujQ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/94de06c7ddd098508dfe05c0b39244681e752b70
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSMTfUACgkQJd22kJ7J
Gix9Cwf/Q+AvTdQ9MOo3ggWtS8YXy1j2zzSwdPBlhDlhBLHIAz3dq5LerFhcxjmS
bR6UnH/dsh0XO6NCPDiLOhELgvBL7hx/ezJrvsBsG1bzLaLbbkyam20cqKYDIYr2
toXoNaPNMi+iNh2voj3YnDI82RP3AQqezLDGcys9ogX/8fNye0jCNZVpgIlpHR5u
60UWAffDcJ0tMYv0jRpaOCkByeA7OqagBq5y15oS3MNKBnG7BM81/H3Q9IHZyr/x
jSBIs0CHB2LsfAFzEEQ4NPFNwj4OuL35TqA7pQ+EHeRUgIfMxPF1Di5NWxRvTRDo
FCH06uu5j4H83DBGAKMQEn0R0bLOcg==
=F82Y
-----END PGP SIGNATURE-----payloadX.  tree 6c92a4b3d45bbe40aaeb7a90f6fed6f0a6f9b7d1
parent 4849a8bb50412be15990d2bda83d05850b64c3aa
author Lucas Meireles <meireles31@msn.com> 1686916597 +0100
committer Lucas Meireles <meireles31@msn.com> 1686916597 +0100

create copy of Sets difference so we don't get a size change after adding to result
uujQ ^https://api.github.com/repos/palantir/atlasdb/commits/94de06c7ddd098508dfe05c0b39244681e752b70html_urlShttps://github.com/palantir/atlasdb/commit/94de06c7ddd098508dfe05c0b39244681e752b70comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/94de06c7ddd098508dfe05c0b39244681e752b70/commentsj? }(loginLucasIMEidJg j; MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jQ %https://api.github.com/users/LucasIMEj_ https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujG }(jd LucasIMEjf Jg j; MDQ6VXNlcjY3ODczMTE=jh 3https://avatars.githubusercontent.com/u/6787311?v=4jj h5jQ %https://api.github.com/users/LucasIMEj_ https://github.com/LucasIMEjm /https://api.github.com/users/LucasIME/followersjo <https://api.github.com/users/LucasIME/following{/other_user}jq 5https://api.github.com/users/LucasIME/gists{/gist_id}js <https://api.github.com/users/LucasIME/starred{/owner}{/repo}ju 3https://api.github.com/users/LucasIME/subscriptionsjw *https://api.github.com/users/LucasIME/orgsjy +https://api.github.com/users/LucasIME/reposj{ 6https://api.github.com/users/LucasIME/events{/privacy}j} 5https://api.github.com/users/LucasIME/received_eventsj Userj uparents]}(j9 (4849a8bb50412be15990d2bda83d05850b64c3aajQ ^https://api.github.com/repos/palantir/atlasdb/commits/4849a8bb50412be15990d2bda83d05850b64c3aaj_ Shttps://github.com/palantir/atlasdb/commit/4849a8bb50412be15990d2bda83d05850b64c3aauastats}(totalK	additionsK	deletionsKufiles]}(j9 (cf7c5904ae26ae32c3d46e8942c407dd684fdccbfilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/94de06c7ddd098508dfe05c0b39244681e752b70/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/94de06c7ddd098508dfe05c0b39244681e752b70/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=94de06c7ddd098508dfe05c0b39244681e752b70patchXd  @@ -940,8 +940,10 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
             }
         }
 
-        // We don't need to read any cells that were written locally.
-        Set<Cell> cellsWithNoLocalWrites = Sets.difference(cells, result.keySet());
+        // We don't need to read any cells that were written locally. Making an immutable copy because otherwise adding
+        // values to the result map would prevent us from calculating the correct size for
+        // allPossibleCellsReadAndNonEmpty, since Sets.difference gives us a live view.
+        Set<Cell> cellsWithNoLocalWrites = ImmutableSet.copyOf(Sets.difference(cells, result.keySet()));
         return Futures.transform(
                 getFromKeyValueService(tableRef, cellsWithNoLocalWrites, asyncKeyValueService, asyncTransactionService),
                 fromKeyValueService -> {uau(797e63556ace1c9b902f15a4131c04577752d943}(sha(797e63556ace1c9b902f15a4131c04577752d943node_idEC_kwDOAjP5fdoAKDc5N2U2MzU1NmFjZTFjOWI5MDJmMTVhNDEzMWMwNDU3Nzc1MmQ5NDMcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-24T14:53:31Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-07-24T14:53:31Zumessagefix test descriptiontree}(j (d6aa327196ced4a64e01f7e5acc600b4f7f59d94url`https://api.github.com/repos/palantir/atlasdb/git/trees/d6aa327196ced4a64e01f7e5acc600b4f7f59d94ujȝ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/797e63556ace1c9b902f15a4131c04577752d943
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS+kGsACgkQJd22kJ7J
Gixoqwf/SrtyOwBHIkuYiNVRAbkR8fGNroRW3KyBjRVFPi0m0XCh5BAYqijl9EKD
bcKf5kYiR50Nm64cjGf2qpj/AEOVyjLg4jPL/jKW2EFg+Wai0F/bEINEW/XRdOrm
8iSYUV7Tn0xGeFeBzpNcp+9a2GGTQZbEBtA6+5NYQEDyJBO3Xa3QSs3KnfE0/tp0
l7pzlM6lasRVrdRx0Ui9znHw4XofnZKd/eh8o8zpVY3NELNH5hWQQlUITXHXq6ce
fR566Ww/UJPh9Snyv73dMbo9krdxGP+WjAEXswuI1yM/C0ZaeLScfmyAIGsWDDDT
UrN1oHSqDPbZF6qG7aExKY5O013zNA==
=T/8U
-----END PGP SIGNATURE-----payloadtree d6aa327196ced4a64e01f7e5acc600b4f7f59d94
parent 3d913ff286ee2e82b85f341a36496f4468199cc0
author Lucas Meireles <meireles31@msn.com> 1690210411 +0100
committer Lucas Meireles <meireles31@msn.com> 1690210411 +0100

fix test description
uujȝ ^https://api.github.com/repos/palantir/atlasdb/commits/797e63556ace1c9b902f15a4131c04577752d943html_urlShttps://github.com/palantir/atlasdb/commit/797e63556ace1c9b902f15a4131c04577752d943comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/797e63556ace1c9b902f15a4131c04577752d943/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jȝ %https://api.github.com/users/LucasIMEj֝ https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j۝ LucasIMEjݝ Jg j MDQ6VXNlcjY3ODczMTE=jߝ 3https://avatars.githubusercontent.com/u/6787311?v=4j h5jȝ %https://api.github.com/users/LucasIMEj֝ https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsj Userj uparents]}(j (3d913ff286ee2e82b85f341a36496f4468199cc0jȝ ^https://api.github.com/repos/palantir/atlasdb/commits/3d913ff286ee2e82b85f341a36496f4468199cc0j֝ Shttps://github.com/palantir/atlasdb/commit/3d913ff286ee2e82b85f341a36496f4468199cc0uastats}(totalK	additionsK	deletionsKufiles]}(j (6b54832f5d8e3fc52fdcd3afd15d449ae40214f4filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/797e63556ace1c9b902f15a4131c04577752d943/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/797e63556ace1c9b902f15a4131c04577752d943/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=797e63556ace1c9b902f15a4131c04577752d943patchX  @@ -1735,7 +1735,7 @@ public void keepNumberOfExpectedCellsTheSameIfNoneCached() {
         // that as the expected value
         verify(spiedTimeLockService, never()).refreshLockLeases(any());
 
-        // Since one cell is cached, should only expect 1 to be present on internal call
+        // Since no cells were cached, we continue to expect 2 from the underlying kvs.
         verify(spiedSnapshotTransaction)
                 .getInternal(
                         eq("getWithExpectedNumberOfCells"),uau(e150d9e7eb813ff368884c14cc245ec45f3a6d6f}(sha(e150d9e7eb813ff368884c14cc245ec45f3a6d6fnode_idEC_kwDOAjP5fdoAKGUxNTBkOWU3ZWI4MTNmZjM2ODg4NGMxNGNjMjQ1ZWM0NWYzYTZkNmYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-28T13:17:48Zu	committer}(j/ 
Sam Kramerj1 skramer@palantir.comj3 2023-04-28T13:17:48Zumessagelolstree}(j' (6b94a99805a497ac95fa75e165da9686eab462a2url`https://api.github.com/repos/palantir/atlasdb/git/trees/6b94a99805a497ac95fa75e165da9686eab462a2uj? bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e150d9e7eb813ff368884c14cc245ec45f3a6d6f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRLx3wACgkQmPPOpKR4
XS0JAgf/X4k1BXaYQLRqZu5astkTMUYps/sHghL7pjZ/Aq0lZYuKM1oU6BZIpwXt
OQmZLAcq608yfveSZj0M075xBMjzob1gbNdwbq5n/9DcRpqBtmGw1MlHvJHRKUCA
fOAbs+wiGPuFAng6mhHQOHr909WXHUrG+1ZK5jgW8j1IQwWIqIr+elvoy+nQGdxs
dHwtyRQEp6nCFNHWInB8GDNbXoiDLVGvg1+ZBgWrSMAUrbJvpHfKBrSKwBkRisW/
Dp5t5wSg6S0Riis7QAibV1mFa5U1W2q42zpXaHUrIBxxmcHG69EJbgVpB6r+mXz7
jdQ8wBHWfB4YbVeONRc/RXxH50xIvg==
=+TBy
-----END PGP SIGNATURE-----payloadtree 6b94a99805a497ac95fa75e165da9686eab462a2
parent 6f77cfe0ee84c0c3c0fd4e0bf38e5faefb035620
author Sam Kramer <skramer@palantir.com> 1682687868 +0100
committer Sam Kramer <skramer@palantir.com> 1682687868 +0100

lols
uuj? ^https://api.github.com/repos/palantir/atlasdb/commits/e150d9e7eb813ff368884c14cc245ec45f3a6d6fhtml_urlShttps://github.com/palantir/atlasdb/commit/e150d9e7eb813ff368884c14cc245ec45f3a6d6fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e150d9e7eb813ff368884c14cc245ec45f3a6d6f/commentsj- }(login
Sam-KrameridJ^2_ j) MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j? 'https://api.github.com/users/Sam-KramerjM https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj5 }(jR 
Sam-KramerjT J^2_ j) MDQ6VXNlcjYyMzg4MTQ=jV 3https://avatars.githubusercontent.com/u/6238814?v=4jX h5j? 'https://api.github.com/users/Sam-KramerjM https://github.com/Sam-Kramerj[ 1https://api.github.com/users/Sam-Kramer/followersj] >https://api.github.com/users/Sam-Kramer/following{/other_user}j_ 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}ja >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jc 5https://api.github.com/users/Sam-Kramer/subscriptionsje ,https://api.github.com/users/Sam-Kramer/orgsjg -https://api.github.com/users/Sam-Kramer/reposji 8https://api.github.com/users/Sam-Kramer/events{/privacy}jk 7https://api.github.com/users/Sam-Kramer/received_eventsjm Userjo uparents]}(j' (6f77cfe0ee84c0c3c0fd4e0bf38e5faefb035620j? ^https://api.github.com/repos/palantir/atlasdb/commits/6f77cfe0ee84c0c3c0fd4e0bf38e5faefb035620jM Shttps://github.com/palantir/atlasdb/commit/6f77cfe0ee84c0c3c0fd4e0bf38e5faefb035620uastats}(totalK	additionsK	deletionsKufiles]}(j' (7746b1901d37ab005efb2fedddecc226a6be376dfilenameqatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunner.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e150d9e7eb813ff368884c14cc245ec45f3a6d6f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e150d9e7eb813ff368884c14cc245ec45f3a6d6f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.java?ref=e150d9e7eb813ff368884c14cc245ec45f3a6d6fpatchX  @@ -48,9 +48,10 @@ public void run(List<WorkflowAndInvariants<Workflow>> workflowAndInvariants) {
             log.info("antithesis: stop_faults");
             workflowHistoryValidators.forEach(this::checkAndReportInvariantViolations);
         } catch (InterruptedException e) {
+            Thread.currentThread().interrupt();
             throw new RuntimeException(e);
         } catch (ExecutionException e) {
-            Thread.currentThread().interrupt();
+            throw new RuntimeException(e);
         }
     }
 uau(5f77e40e44257e96dfdbf2c1f04d74d165cd2ef1}(sha(5f77e40e44257e96dfdbf2c1f04d74d165cd2ef1node_idEC_kwDOAjP5fdoAKDVmNzdlNDBlNDQyNTdlOTZkZmRiZjJjMWYwNGQ3NGQxNjVjZDJlZjEcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-22T22:45:22Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-22T22:45:22ZumessageIseparate container 3 and add more max heap to the timelock integTest parttree}(j (47e6476fae82155b25a276b637c6b58b8cdb3d0aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/47e6476fae82155b25a276b637c6b58b8cdb3d0auj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5f77e40e44257e96dfdbf2c1f04d74d165cd2ef1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRr8IIACgkQPlMHVIT1
yhqUhwf+KmRyLI2brgW2eMJ/WpQMiyBWkyrVYEOt9ssLjh0Bd3PS3bEz6W13PIUU
pYGoVYj+kM0F0Q2E0luxdBzk17i8M4hHm9djJ9mv+F+1ckhXOg4rLUCqkR4Q/0lK
87JeMs5VM8HR9NX8QCY1PsDQAaNwYG2MZvwSf5TIZ0odW65zbU48opj4eRo6FnlF
8+tf334EYLAx/+gYgI14jwGlUn1Lpf5jY+ptNuObTxrUddaunw2rwsl7N+KtccPv
rAtxQ1YgOGzktVbafe25aZfBt5n8Ge4/LFtr/kk24nsXHaFXNK78HIS5sDGjPtJe
mSc+X95SDNpVF9KeqI+6LkqbgQOLqw==
=Qkry
-----END PGP SIGNATURE-----payloadX(  tree 47e6476fae82155b25a276b637c6b58b8cdb3d0a
parent 1083711b382690fa3e64f57135fe510943c3083c
author Ahmed Alouane <aalouane@palantir.com> 1684795522 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684795522 +0100

separate container 3 and add more max heap to the timelock integTest part
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/5f77e40e44257e96dfdbf2c1f04d74d165cd2ef1html_urlShttps://github.com/palantir/atlasdb/commit/5f77e40e44257e96dfdbf2c1f04d74d165cd2ef1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5f77e40e44257e96dfdbf2c1f04d74d165cd2ef1/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14jĞ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(jɞ ergo14j˞ Jj MDQ6VXNlcjMwOTAzNzM2j͞ 4https://avatars.githubusercontent.com/u/30903736?v=4jϞ h5j #https://api.github.com/users/ergo14jĞ https://github.com/ergo14jҞ -https://api.github.com/users/ergo14/followersjԞ :https://api.github.com/users/ergo14/following{/other_user}j֞ 3https://api.github.com/users/ergo14/gists{/gist_id}j؞ :https://api.github.com/users/ergo14/starred{/owner}{/repo}jڞ 1https://api.github.com/users/ergo14/subscriptionsjܞ (https://api.github.com/users/ergo14/orgsjޞ )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j (1083711b382690fa3e64f57135fe510943c3083cj ^https://api.github.com/repos/palantir/atlasdb/commits/1083711b382690fa3e64f57135fe510943c3083cjĞ Shttps://github.com/palantir/atlasdb/commit/1083711b382690fa3e64f57135fe510943c3083cuastats}(totalK	additionsK	deletionsK	ufiles](}(j (a31b7819db3f6f91597edd144957cf18b2f7a613filename.circleci/config.ymlstatusmodifiedj  Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/5f77e40e44257e96dfdbf2c1f04d74d165cd2ef1/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/5f77e40e44257e96dfdbf2c1f04d74d165cd2ef1/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=5f77e40e44257e96dfdbf2c1f04d74d165cd2ef1patchX  @@ -154,8 +154,8 @@ workflows:
           matrix:
             alias: test-no-tl
             parameters:
-              # intentionally excluding 12 (TimeLock migration ETE test) from this collection
-              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13]
+              # intentionally excluding 13 (TimeLock migration ETE test) from this collection
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14]
           filters:
             tags:
               only: /.*/
@@ -164,7 +164,7 @@ workflows:
           matrix:
             alias: test-tl
             parameters:
-              suite: [12]
+              suite: [13]
           filters:
             branches:
               only: /(tlmete.*|develop)/u}(j (dd6335efd3a5b83d8abd06d19af90a7fdada0e14j %scripts/circle-ci/run-circle-tests.shj modifiedj  Kj Kj
 Kj {https://github.com/palantir/atlasdb/blob/5f77e40e44257e96dfdbf2c1f04d74d165cd2ef1/scripts%2Fcircle-ci%2Frun-circle-tests.shj
 zhttps://github.com/palantir/atlasdb/raw/5f77e40e44257e96dfdbf2c1f04d74d165cd2ef1/scripts%2Fcircle-ci%2Frun-circle-tests.shj https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=5f77e40e44257e96dfdbf2c1f04d74d165cd2ef1j X
  @@ -17,7 +17,7 @@ CONTAINER_1=(':atlasdb-cassandra-integration-tests:testSubset1')
 
 CONTAINER_2=(':atlasdb-ete-tests:check')
 
-CONTAINER_3=(':atlasdb-dbkvs:check' ':atlasdb-cassandra:check' ':timelock-server:integTest')
+CONTAINER_3=(':timelock-server:integTest')
 
 CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:dbkvsTest')
 
@@ -35,15 +35,17 @@ CONTAINER_10=('atlasdb-dbkvs-tests:oracleTest')
 
 CONTAINER_11=(':atlasdb-impl-shared:check' )
 
-CONTAINER_12=(':atlasdb-ete-tests:timeLockMigrationTest')
+CONTAINER_12=(':atlasdb-dbkvs:check' ':atlasdb-cassandra:check' )
 
-CONTAINER_13=('compileJava' 'compileTestJava')
+CONTAINER_13=(':atlasdb-ete-tests:timeLockMigrationTest')
+
+CONTAINER_14=('compileJava' 'compileTestJava')
 
 # Excluded as it is split into two subsets
 EXCLUDED=(':atlasdb-cassandra-integration-tests:check')
 
 # Container 0 - runs tasks not found in the below containers
-CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}" "${CONTAINER_11[@]}" "${CONTAINER_12[@]}" "${EXCLUDED[@]}")
+CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}" "${CONTAINER_11[@]}" "${CONTAINER_12[@]}" "${CONTAINER_13[@]}" "${EXCLUDED[@]}")
 
 for task in "${CONTAINER_0_EXCLUDE[@]}"
 do
@@ -73,8 +75,11 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
 # External builds have a 16gb limit.
-if [ "$test_suite_index" -eq "13" ]; then
+if [ "$test_suite_index" -eq "14" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
+elif [ "$test_suite_index" -eq "3" ]; then
+    export _JAVA_OPTIONS="-Xmx8g ${JAVA_GC_LOGGING_OPTIONS}"
+    BASE_GRADLE_ARGS+=" --scan --parallel"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
     BASE_GRADLE_ARGS+=" --scan --parallel"
@@ -96,5 +101,6 @@ case "$test_suite_index" in
     10) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_10[@]} ;;
     11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} ;;
     12) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_12[@]} ;;
-    13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_13[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
+    12) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_13[@]} ;;
+    13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_14[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
 esacueu(1922c8e9d4f263f1b2a0223242c93b5787ce12de}(sha(1922c8e9d4f263f1b2a0223242c93b5787ce12denode_idEC_kwDOAjP5fdoAKDE5MjJjOGU5ZDRmMjYzZjFiMmEwMjIzMjQyYzkzYjU3ODdjZTEyZGUcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-05-23T14:10:14Zu	committer}(j% GitHubj' noreply@github.comj) 2023-05-23T14:10:14ZumessageeAdd current pool size metric  (#6554)

Adds metric for tracking the size of the cassandra client pooltree}(j (10ce5538273062267382a9a12493e925d310e3bdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/10ce5538273062267382a9a12493e925d310e3bduj5 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1922c8e9d4f263f1b2a0223242c93b5787ce12de
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkbMlGCRBK7hj4Ov3rIwAAlCYIAI74fv6z9k0W4JsHSePZaQ8I
/emaaenoRc71mUST5pEoPTRnDbpbxRapY/mRbGPLwxStEukSu1YmIXxCAN8fDddb
PkKToKgfseR+MbTWJvACcbl4vXcEovoQ1gDK3BMIIIU8JwZwjGvb7mtpCEZgR70f
yC8BAT2FOXSFh1opmj0Sqg58hSdEdAFIMmQhXk9W15eWFyJSDC8P4MKs5b5glTZU
O+mUvF+JJYHcqz82psDe5wdqLauq6FK1Fv8mA3+eKVqdNlY4aLzmq9kE89uKMdJt
rTFfccjmLKG2xuzr6naOnkyRYRdnK0THmFh7eR+RQjPIb3yokNiymufMOGLSKtY=
=El6C
-----END PGP SIGNATURE-----
payloadX8  tree 10ce5538273062267382a9a12493e925d310e3bd
parent 8d9ed7583f3c695e90886a0d303f32c1925fcf1a
author Sam-Kramer <sam.c.kramer@gmail.com> 1684851014 +0100
committer GitHub <noreply@github.com> 1684851014 +0000

Add current pool size metric  (#6554)

Adds metric for tracking the size of the cassandra client pool
uuj5 ^https://api.github.com/repos/palantir/atlasdb/commits/1922c8e9d4f263f1b2a0223242c93b5787ce12dehtml_urlShttps://github.com/palantir/atlasdb/commit/1922c8e9d4f263f1b2a0223242c93b5787ce12decomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1922c8e9d4f263f1b2a0223242c93b5787ce12de/commentsj# }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j5 'https://api.github.com/users/Sam-KramerjC https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj+ }(jH web-flowjJ J/j MDQ6VXNlcjE5ODY0NDQ3jL 4https://avatars.githubusercontent.com/u/19864447?v=4jN h5j5 %https://api.github.com/users/web-flowjC https://github.com/web-flowjQ /https://api.github.com/users/web-flow/followersjS <https://api.github.com/users/web-flow/following{/other_user}jU 5https://api.github.com/users/web-flow/gists{/gist_id}jW <https://api.github.com/users/web-flow/starred{/owner}{/repo}jY 3https://api.github.com/users/web-flow/subscriptionsj[ *https://api.github.com/users/web-flow/orgsj] +https://api.github.com/users/web-flow/reposj_ 6https://api.github.com/users/web-flow/events{/privacy}ja 5https://api.github.com/users/web-flow/received_eventsjc Userje uparents]}(j (8d9ed7583f3c695e90886a0d303f32c1925fcf1aj5 ^https://api.github.com/repos/palantir/atlasdb/commits/8d9ed7583f3c695e90886a0d303f32c1925fcf1ajC Shttps://github.com/palantir/atlasdb/commit/8d9ed7583f3c695e90886a0d303f32c1925fcf1auastats}(totalK8	additionsK6	deletionsKufiles](}(j (4070f53a1fe32fff1205f946858d747ab540e48bfilenamedatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javastatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/1922c8e9d4f263f1b2a0223242c93b5787ce12de/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1922c8e9d4f263f1b2a0223242c93b5787ce12de/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=1922c8e9d4f263f1b2a0223242c93b5787ce12depatchXw  @@ -359,6 +359,7 @@ void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> des
 
         if (!(validatedServersToAdd.isEmpty() && absentServers.isEmpty())) { // if we made any changes
             cassandra.refreshTokenRangesAndGetServers();
+            metrics.recordPoolSize(getCurrentPools().size());
         }
 
         Preconditions.checkState(u}(j (4d583484e99e4cc63642e62a005732ba4ca0d5d9j latlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetrics.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/1922c8e9d4f263f1b2a0223242c93b5787ce12de/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javaj https://github.com/palantir/atlasdb/raw/1922c8e9d4f263f1b2a0223242c93b5787ce12de/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.java?ref=1922c8e9d4f263f1b2a0223242c93b5787ce12dej X	  @@ -18,6 +18,7 @@
 import com.codahale.metrics.Counter;
 import com.codahale.metrics.Gauge;
 import com.codahale.metrics.Meter;
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableMap;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer;
@@ -26,10 +27,13 @@
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.Map;
+import java.util.concurrent.atomic.AtomicLong;
 import java.util.function.Consumer;
 import java.util.function.Supplier;
 
 public class CassandraClientPoolMetrics {
+
+    public static final String POOL_SIZE_METRIC_NAME = "pool-size";
     private final MetricsManager metricsManager;
     private final RequestMetrics aggregateRequestMetrics;
     private final Map<CassandraServer, RequestMetrics> metricsByHost = new HashMap<>();
@@ -39,12 +43,15 @@ public class CassandraClientPoolMetrics {
     // Not bundled in with request metrics, as we seek to not produce host-level metrics for economic reasons.
     private final Counter poolExhaustionCounter;
 
+    private final AtomicLong poolSize = new AtomicLong(0L);
+
     public CassandraClientPoolMetrics(MetricsManager metricsManager) {
         this.metricsManager = metricsManager;
         this.aggregateRequestMetrics = new RequestMetrics(metricsManager);
         this.poolExhaustionCounter =
                 metricsManager.registerOrGetCounter(CassandraClientPoolMetrics.class, "pool-exhaustion");
         this.outlierControllers = createOutlierControllers(metricsManager);
+        metricsManager.registerMetric(CassandraClientPoolMetrics.class, POOL_SIZE_METRIC_NAME, poolSize::get);
     }
 
     private static Map<CassandraClientPoolHostLevelMetric, DistributionOutlierController> createOutlierControllers(
@@ -93,6 +100,15 @@ public void recordPoolExhaustion() {
         poolExhaustionCounter.inc();
     }
 
+    public void recordPoolSize(long desiredPoolSize) {
+        poolSize.set(desiredPoolSize);
+    }
+
+    @VisibleForTesting
+    Long getPoolSize() {
+        return poolSize.get();
+    }
+
     @SuppressWarnings("unchecked") // Guaranteed to have the correct type
     public void registerPoolMetric(CassandraClientPoolHostLevelMetric metric, Gauge<Long> gauge, int poolNumber) {
         MetricPublicationFilter filter = outlierControllers.get(metric).registerAndCreateFilter(gauge);u}(j (0018cc3f41f93c005b4fbadee9f0f569b180a38cj datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/1922c8e9d4f263f1b2a0223242c93b5787ce12de/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaj https://github.com/palantir/atlasdb/raw/1922c8e9d4f263f1b2a0223242c93b5787ce12de/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.java?ref=1922c8e9d4f263f1b2a0223242c93b5787ce12dej X&  @@ -35,6 +35,7 @@
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs;
 import com.palantir.atlasdb.cassandra.ImmutableDefaultConfig;
+import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraClientPoolMetrics;
 import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
 import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService;
 import com.palantir.atlasdb.util.MetricsManagers;
@@ -224,7 +225,7 @@ private void runTwoNoopsOnTwoHostsAndThrowFromSecondRunOnFirstHost(Exception exc
     }
 
     private CassandraServer getServerForIndex(int index) {
-        return CassandraServer.of(InetSocketAddress.createUnresolved(Integer.toString(index), index));
+        return CassandraServer.of(InetSocketAddress.createUnresolved(Integer.toString(index), 8000));
     }
 
     @Test
@@ -310,6 +311,7 @@ public void hostIsAutomaticallyRemovedOnStartup() {
 
         createClientPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1);
+        assertPoolSizeMetricIsEqualTo(1);
     }
 
     @Test
@@ -321,10 +323,12 @@ public void hostIsAutomaticallyRemovedOnRefresh() {
 
         createClientPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2, CASS_SERVER_3);
+        assertPoolSizeMetricIsEqualTo(3);
 
         setCassandraServersTo(CASS_SERVER_1, CASS_SERVER_2);
         refreshPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2);
+        assertPoolSizeMetricIsEqualTo(2);
     }
 
     @Test
@@ -495,7 +499,7 @@ private void setCassandraServersTo(CassandraServer... servers) {
 
     private CassandraClientPoolImpl createClientPool() {
         return CassandraClientPoolImpl.createImplForTest(
-                MetricsManagers.createForTests(),
+                MetricsManagers.of(metricRegistry, taggedMetricRegistry),
                 config,
                 refreshableRuntimeConfig,
                 CassandraClientPoolImpl.StartupChecks.DO_NOT_RUN,
@@ -687,4 +691,16 @@ private void setupHostsWithInconsistentTopology(CassandraServer... cassandraServ
     private void refreshPool() {
         deterministicExecutor.tick(POOL_REFRESH_INTERVAL_SECONDS, TimeUnit.SECONDS);
     }
+
+    private void assertPoolSizeMetricIsEqualTo(long expected) {
+        assertThat(taggedMetricRegistry
+                        .<Long>gauge(MetricName.builder()
+                                .safeName(MetricRegistry.name(
+                                        CassandraClientPoolMetrics.class,
+                                        CassandraClientPoolMetrics.POOL_SIZE_METRIC_NAME))
+                                .build())
+                        .get()
+                        .getValue())
+                .isEqualTo(expected);
+    }
 }u}(j (bc3e5261d087a84993ba8ae1e523c8b05fc4c179j patlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetricsTest.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/1922c8e9d4f263f1b2a0223242c93b5787ce12de/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javaj https://github.com/palantir/atlasdb/raw/1922c8e9d4f263f1b2a0223242c93b5787ce12de/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.java?ref=1922c8e9d4f263f1b2a0223242c93b5787ce12dej X  @@ -33,6 +33,8 @@ public class CassandraClientPoolMetricsTest {
     private final MetricsManager metricsManager =
             MetricsManagers.of(new MetricRegistry(), new DefaultTaggedMetricRegistry(), Refreshable.only(true));
 
+    private final CassandraClientPoolMetrics metrics = new CassandraClientPoolMetrics(metricsManager);
+
     @Test
     public void metricsAreProducedAndFiltered() {
         CassandraClientPoolMetrics metrics = new CassandraClientPoolMetrics(metricsManager);
@@ -57,6 +59,18 @@ public void metricsAreProducedAndFiltered() {
                 .containsKey(createMeanActiveTimeMillisMetric("mean"));
     }
 
+    @Test
+    public void recordPoolSizeSetsSizeToLastReportedValue() {
+        metrics.recordPoolSize(100);
+        assertThat(metrics.getPoolSize()).isEqualTo(100);
+        metrics.recordPoolSize(-13);
+        assertThat(metrics.getPoolSize()).isEqualTo(-13);
+        metrics.recordPoolSize(25);
+        assertThat(metrics.getPoolSize()).isEqualTo(25);
+        metrics.recordPoolSize(0);
+        assertThat(metrics.getPoolSize()).isEqualTo(0);
+    }
+
     private static MetricName createMeanActiveTimeMillisMetric(String pool) {
         return MetricName.builder()
                 .safeName(MetricRegistry.name(u}(j (76e1a7993fd1a88f86737b4d470e05d637bc0990j $changelog/@unreleased/pr-6554.v2.ymlj addedj Kj K j Kj |https://github.com/palantir/atlasdb/blob/1922c8e9d4f263f1b2a0223242c93b5787ce12de/changelog%2F%40unreleased%2Fpr-6554.v2.ymlj {https://github.com/palantir/atlasdb/raw/1922c8e9d4f263f1b2a0223242c93b5787ce12de/changelog%2F%40unreleased%2Fpr-6554.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6554.v2.yml?ref=1922c8e9d4f263f1b2a0223242c93b5787ce12dej @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Adds metric for tracking the size of the cassandra client pool
+  links:
+  - https://github.com/palantir/atlasdb/pull/6554ueu(fca9cff9451e9f6c147dc8c24b564895ea25dd12}(sha(fca9cff9451e9f6c147dc8c24b564895ea25dd12node_idEC_kwDOAjP5fdoAKGZjYTljZmY5NDUxZTlmNmMxNDdkYzhjMjRiNTY0ODk1ZWEyNWRkMTIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-03T12:37:16Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-05-03T12:37:16Zumessage	fix styletree}(j (23592b3101672c462ed275d160719331237f86b8url`https://api.github.com/repos/palantir/atlasdb/git/trees/23592b3101672c462ed275d160719331237f86b8uj̟ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fca9cff9451e9f6c147dc8c24b564895ea25dd12
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRSVXwACgkQmPPOpKR4
XS2iCwf8CfohqsTkqAJMpQG+W/zCXRQAvAsfDr7pwwjC982UPXYMFhp9E8YRIKBf
b7pBj04JyvZyU4ThPzP5u/SDT6H88AucP+2gllVIsvKiPHsFCuD2DSXto793Ruji
PKcfmn8NbOTAz9x7KUCuuhobCAqy/bVwY/e7QSUXPL6hN4tn7njsgNUmDgbFs+aX
safyB9aGx1WA9a8SNqE0CCbpgTGHH7EzsJH4sLKxUooqtrJBpEHpgvwNDDUMGqY8
yupU3rOInyv0FQXBr45gD0z2MTDUC6DaNQF2J85/fj1H6nKk6DuM5XbvnxdVaxa8
8y9DGJ0LdKhLGq73c768xsp/ASEwZw==
=l1fv
-----END PGP SIGNATURE-----payloadtree 23592b3101672c462ed275d160719331237f86b8
parent bc61f18bfe26f75725f83c1e686f03a03c535d73
author Sam Kramer <skramer@palantir.com> 1683117436 +0100
committer Sam Kramer <skramer@palantir.com> 1683117436 +0100

fix style
uuj̟ ^https://api.github.com/repos/palantir/atlasdb/commits/fca9cff9451e9f6c147dc8c24b564895ea25dd12html_urlShttps://github.com/palantir/atlasdb/commit/fca9cff9451e9f6c147dc8c24b564895ea25dd12comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fca9cff9451e9f6c147dc8c24b564895ea25dd12/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j̟ 'https://api.github.com/users/Sam-Kramerjڟ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(jߟ 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j̟ 'https://api.github.com/users/Sam-Kramerjڟ https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (bc61f18bfe26f75725f83c1e686f03a03c535d73j̟ ^https://api.github.com/repos/palantir/atlasdb/commits/bc61f18bfe26f75725f83c1e686f03a03c535d73jڟ Shttps://github.com/palantir/atlasdb/commit/bc61f18bfe26f75725f83c1e686f03a03c535d73uastats}(totalK	additionsK	deletionsKufiles]}(j (72396cbd183a5589ac7b3cf6593e07b9c5de2fd0filenamekatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ReadableTransactionStore.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/fca9cff9451e9f6c147dc8c24b564895ea25dd12/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/fca9cff9451e9f6c147dc8c24b564895ea25dd12/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.java?ref=fca9cff9451e9f6c147dc8c24b564895ea25dd12patchXm  @@ -30,7 +30,7 @@ public interface ReadableTransactionStore {
     Optional<Integer> get(String table, WorkloadCell cell);
 
     /**
-     * Checks whether the transaction with the provided startTimestamp has committed
+     * Checks whether the transaction with the provided startTimestamp has committed.
      */
     boolean isCommitted(long startTimestamp);
 }uau(9a415a77c129647374617d5fab0a39b36b55385c}(sha(9a415a77c129647374617d5fab0a39b36b55385cnode_idEC_kwDOAjP5fdoAKDlhNDE1YTc3YzEyOTY0NzM3NDYxN2Q1ZmFiMGEzOWIzNmI1NTM4NWMcommit}(author}(name
Louis Bembergemaillbemberg@palantir.comdate2023-06-28T22:11:38Zu	committer}(j3 
Louis Bembergj5 lbemberg@palantir.comj7 2023-06-28T22:11:38Zumessagebump snappy-javatree}(j+ (27408fc506e490ef3510b61ec2712dc6cad63597url`https://api.github.com/repos/palantir/atlasdb/git/trees/27408fc506e490ef3510b61ec2712dc6cad63597ujC bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9a415a77c129647374617d5fab0a39b36b55385c
comment_countK verification}(verifiedreasonno_user	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEWASyGscg/aE7qfKTryYcV6eKVuAFAmScsBoACgkQryYcV6eK
VuAenQf/e++demfJaXhyItAD6W8foMxBptOFe5IHujcU/kKmjfe3lq6r3GuSAfbQ
iX+HAGN6QGCijCq6ZAkVCHUF7lRgeGXX2fzxcjXL5NaVzpPYiNY1PPOsmPZ14L/7
UlHDJ1/UU4RaNvEPW/3mz5x6uvKp6xloFfLkQc0/Rt9zqLi4tov8w4/sPcE+B68w
nkIQeqb4MANnLN+cM3dpv3j2oCyiADWPr2BjZq4XYhvl9SscclQ2sYB6UEnPETUt
b/GrANmEqxQdWlY/mkZHOFr8/IPGvUhxCcOECvQnrllKRv8J7NV/jo34DNnWn/Gr
2dii4LZcl7t0ZafGfFC2b+YTfULgnQ==
=qFoM
-----END PGP SIGNATURE-----payloadtree 27408fc506e490ef3510b61ec2712dc6cad63597
parent 749e80982ecd831eea5946cf02fd3c0ade574578
author Louis Bemberg <lbemberg@palantir.com> 1687990298 -0400
committer Louis Bemberg <lbemberg@palantir.com> 1687990298 -0400

bump snappy-java
uujC ^https://api.github.com/repos/palantir/atlasdb/commits/9a415a77c129647374617d5fab0a39b36b55385chtml_urlShttps://github.com/palantir/atlasdb/commit/9a415a77c129647374617d5fab0a39b36b55385ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9a415a77c129647374617d5fab0a39b36b55385c/commentsj1 Nj9 Nparents]}(j+ (749e80982ecd831eea5946cf02fd3c0ade574578jC ^https://api.github.com/repos/palantir/atlasdb/commits/749e80982ecd831eea5946cf02fd3c0ade574578jQ Shttps://github.com/palantir/atlasdb/commit/749e80982ecd831eea5946cf02fd3c0ade574578uastats}(totalK	additionsK	deletionsKufiles](}(j+ (d3392a1c1b4cebd374d23f72a1c5cd73c77b3bc2filename
versions.lockstatusmodifiedj^ Kj_ KchangesKblob_url_https://github.com/palantir/atlasdb/blob/9a415a77c129647374617d5fab0a39b36b55385c/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/9a415a77c129647374617d5fab0a39b36b55385c/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=9a415a77c129647374617d5fab0a39b36b55385cpatchX  @@ -313,7 +313,7 @@ org.slf4j:slf4j-api:1.7.36 (44 constraints: 8180995b)
 org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
 org.wildfly.common:wildfly-common:1.6.0.Final (4 constraints: 3f390b3d)
 org.xerial:sqlite-jdbc:3.42.0.0 (1 constraints: 99054946)
-org.xerial.snappy:snappy-java:1.1.8 (2 constraints: 011529cb)
+org.xerial.snappy:snappy-java:1.1.10.1 (2 constraints: 891546f4)
 org.yaml:snakeyaml:1.33 (5 constraints: 0a4c5570)
 
 [Test dependencies]u}(j+ (04244236509f194bcfe0d83350f2346909da1318jd versions.propsjf modifiedj^ Kj_ Kjh Kji `https://github.com/palantir/atlasdb/blob/9a415a77c129647374617d5fab0a39b36b55385c/versions.propsjk _https://github.com/palantir/atlasdb/raw/9a415a77c129647374617d5fab0a39b36b55385c/versions.propsjm rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=9a415a77c129647374617d5fab0a39b36b55385cjo XO  @@ -78,7 +78,7 @@ org.reflections:reflections = 0.10.2
 org.rocksdb:rocksdbjni = 7.9.2
 org.slf4j:* = 1.7.36
 org.wildfly.common:wildfly-common = 1.6.0.Final
-org.xerial.snappy:snappy-java = 1.1.8
+org.xerial.snappy:snappy-java = 1.1.10.1
 org.xerial:sqlite-jdbc = 3.42.0.0
 org.yaml:snakeyaml = 1.33
 uk.org.lidalia:slf4j-test = 1.1.0ueu(0a174838c136c794ee674e1146e9a50f3dff048d}(sha(0a174838c136c794ee674e1146e9a50f3dff048dnode_idEC_kwDOAjP5fdoAKDBhMTc0ODM4YzEzNmM3OTRlZTY3NGUxMTQ2ZTlhNTBmM2RmZjA0OGQcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-08-10T09:10:33Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-08-10T09:10:33ZumessageSome cleanuptree}(j{ (d06d303344fd8e6e4dd9642d2d036f4947ab2421url`https://api.github.com/repos/palantir/atlasdb/git/trees/d06d303344fd8e6e4dd9642d2d036f4947ab2421uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0a174838c136c794ee674e1146e9a50f3dff048d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTUqYkACgkQmF9s0kaF
Iw3XEwgAlRjUmEA+V+0MnLTfUTncGc6c4WxuBZ2duKPaqHp2ahGlH6mZLV8tygwV
pugFRE8USSQuyli/oD6H1EhrYwpMB22MmWajq9/WKZgNhYAEBAf8TiSO2hwREeJP
NTZidVRcX+7Y3iLvXiU98ShXnPI9Qvmu6YhHUO3H6MHyPveuAX2ztIhNORNMIpXe
TUULqhSAdb+VTIKc7JK/O/tuVg5qcPYXj1GRXzpJjdBQFpbnofYaWmJCzPAHo2ET
hae5NCTKs8cmLy/hhWCZAjB++eOECltCrP035YToSMSOD0QzNdbvLsOLAE1b9dFy
hZoCJjV51BhBNxmTb+kAn7gXqvtYKA==
=i9l5
-----END PGP SIGNATURE-----payloadtree d06d303344fd8e6e4dd9642d2d036f4947ab2421
parent b8807faa6e2c11bc960ca2bf1c8cd114a8011eb3
author Tom Papke <tpapke@palantir.com> 1691658633 +0100
committer Tom Papke <tpapke@palantir.com> 1691658633 +0100

Some cleanup
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/0a174838c136c794ee674e1146e9a50f3dff048dhtml_urlShttps://github.com/palantir/atlasdb/commit/0a174838c136c794ee674e1146e9a50f3dff048dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0a174838c136c794ee674e1146e9a50f3dff048d/commentsj }(login	ToemmscheidJboj} MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jboj} MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userjà uparents]}(j{ (b8807faa6e2c11bc960ca2bf1c8cd114a8011eb3j ^https://api.github.com/repos/palantir/atlasdb/commits/b8807faa6e2c11bc960ca2bf1c8cd114a8011eb3j Shttps://github.com/palantir/atlasdb/commit/b8807faa6e2c11bc960ca2bf1c8cd114a8011eb3uastats}(totalK		additionsK	deletionsKufiles]}(j{ (a8e8b9b115865566cbb82908ed5b55dad3808741filenamectimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchEventIntegrationTest.javastatusmodifiedjݠ Kjޠ KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/0a174838c136c794ee674e1146e9a50f3dff048d/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0a174838c136c794ee674e1146e9a50f3dff048d/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.java?ref=0a174838c136c794ee674e1146e9a50f3dff048dpatchX  @@ -127,7 +127,7 @@ public void setUpAndAwaitTableWatched() {
         txnManager = LockWatchIntegrationTestUtilities.createTransactionManager(0.0, CLUSTER, NAMESPACE);
         LockWatchIntegrationTestUtilities.awaitTableWatched(txnManager, TABLE_REF);
 
-        // Register watch for TABLE_3 manually since we cannot enable caching for it as it uses the SERIALIZABLE
+        // Register watch for table manually since we cannot enable caching for it as it uses the SERIALIZABLE
         // conflict handler
         LockWatchReference entireTableReference =
                 LockWatchReferences.entireTable(SERIALIZABLE_WATCHED_TABLE_REF.getQualifiedName());
@@ -331,8 +331,8 @@ public void transactionUpdateIncludesMetadataFromPutWithMetadata() {
                         cellInOtherRow,
                         ValueAndChangeMetadata.of(DATA_4, UPDATE_CHANGE_METADATA)));
 
-        OpenTransaction thirdTxn = startSingleTransaction();
-        TransactionsLockWatchUpdate update = getUpdateForTransactions(Optional.of(currentVersion), thirdTxn);
+        TransactionsLockWatchUpdate update =
+                getUpdateForTransactions(Optional.of(currentVersion), startSingleTransaction());
 
         assertThat(LockWatchIntegrationTestUtilities.extractMetadata(update.events()))
                 .containsExactly(
@@ -440,8 +440,7 @@ public void randomMetadataPassedAndFilteredCorrectly() {
         assertThat(LockWatchIntegrationTestUtilities.extractMetadata(update.events()))
                 .as("Expect to receive back the metadata we specified on previous transactions. Random seed: "
                         + randomSeed)
-                // Order does NOT matter as this test is multithreaded
-                .containsExactlyInAnyOrderElementsOf(expectedMetadataBuilder.build());
+                .containsExactlyElementsOf(expectedMetadataBuilder.build());
     }
 
     private Runnable performWriteTransactionThatBlocksAfterLockingCells() {uau(f87ee5c7e61cd99c04269f23b0fe372eee02c985}(sha(f87ee5c7e61cd99c04269f23b0fe372eee02c985node_idEC_kwDOAjP5fdoAKGY4N2VlNWM3ZTYxY2Q5OWMwNDI2OWYyM2IwZmUzNzJlZWUwMmM5ODUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-06-05T15:34:01Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-06-05T15:34:01Zumessagestupid mistaketree}(j (d25b2e07cfb93975b2dbd7ae69d1e1ca56c4bdf0url`https://api.github.com/repos/palantir/atlasdb/git/trees/d25b2e07cfb93975b2dbd7ae69d1e1ca56c4bdf0uj
 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f87ee5c7e61cd99c04269f23b0fe372eee02c985
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmR+AGkACgkQPlMHVIT1
yho2+QgAuZwAjfYjd07B3C/xSBZOQZ0NOPuyfOT1wW32YF5ae1/rGjrW6QrF8vjL
7ix8XgDz0VEtsMz80UMmA30zGGe3O0wa/2OKfEIGIoFHZVxxQPmD+MGoaSq2XsB3
mx5PsYZqWcw1vBsGIYfVCp0qRG96xYwknK+rOvIEdPJy8JxOl7/5iMhkOCAix6Z4
pNYn7ho+tXXtqecRlOuW1R1Z+jgx7ufMw/5gVzMVZMFPmg78PMlT7+z1YPw/q+08
G/6yHQrPUxi6Ud1qqakELuo/lXrWsO3zmW2sbLQeykKtn9OlzC0NXUff577GaCsu
j261JKiT++64XBmXYBZJs4o5gBLqDg==
=UEAb
-----END PGP SIGNATURE-----payloadtree d25b2e07cfb93975b2dbd7ae69d1e1ca56c4bdf0
parent 03381795ef5c2a79643e6f0b0f59577476d3eac8
author Ahmed Alouane <aalouane@palantir.com> 1685979241 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1685979241 +0100

stupid mistake
uuj
 ^https://api.github.com/repos/palantir/atlasdb/commits/f87ee5c7e61cd99c04269f23b0fe372eee02c985html_urlShttps://github.com/palantir/atlasdb/commit/f87ee5c7e61cd99c04269f23b0fe372eee02c985comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f87ee5c7e61cd99c04269f23b0fe372eee02c985/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j
 #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j! 4https://avatars.githubusercontent.com/u/30903736?v=4j# h5j
 #https://api.github.com/users/ergo14j https://github.com/ergo14j& -https://api.github.com/users/ergo14/followersj( :https://api.github.com/users/ergo14/following{/other_user}j* 3https://api.github.com/users/ergo14/gists{/gist_id}j, :https://api.github.com/users/ergo14/starred{/owner}{/repo}j. 1https://api.github.com/users/ergo14/subscriptionsj0 (https://api.github.com/users/ergo14/orgsj2 )https://api.github.com/users/ergo14/reposj4 4https://api.github.com/users/ergo14/events{/privacy}j6 3https://api.github.com/users/ergo14/received_eventsj8 Userj: uparents]}(j (03381795ef5c2a79643e6f0b0f59577476d3eac8j
 ^https://api.github.com/repos/palantir/atlasdb/commits/03381795ef5c2a79643e6f0b0f59577476d3eac8j Shttps://github.com/palantir/atlasdb/commit/03381795ef5c2a79643e6f0b0f59577476d3eac8uastats}(totalK	additionsK	deletionsKufiles]}(j (41947f3d2cc3373ca80158896be7235827ab31b0filename%scripts/circle-ci/run-circle-tests.shstatusmodifiedjT KjU KchangesKblob_url{https://github.com/palantir/atlasdb/blob/f87ee5c7e61cd99c04269f23b0fe372eee02c985/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/f87ee5c7e61cd99c04269f23b0fe372eee02c985/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=f87ee5c7e61cd99c04269f23b0fe372eee02c985patchX,  @@ -108,8 +108,8 @@ case "$test_suite_index" in
     11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} ;;
     12) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_12[@]} ;;
     13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_13[@]} ;;
-    13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_14[@]} ;;
-    13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_15[@]} ;;
-    13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_16[@]} ;;
-    14) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_17[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
+    14) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_14[@]} ;;
+    15) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_15[@]} ;;
+    16) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_16[@]} ;;
+    17) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_17[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
 esacuau(52d520116d856acac9d1442c81f12e0cd7dbdb52}(sha(52d520116d856acac9d1442c81f12e0cd7dbdb52node_idEC_kwDOAjP5fdoAKDUyZDUyMDExNmQ4NTZhY2FjOWQxNDQyYzgxZjEyZTBjZDdkYmRiNTIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-08-08T15:29:37Zu	committer}(jq Jeremy Kongjs jkong@palantir.comju 2023-08-08T15:29:37Zumessagecleanup testtree}(ji (e7d193a8f3b5fcaa3f5bdf2c6b03258c6bab4995url`https://api.github.com/repos/palantir/atlasdb/git/trees/e7d193a8f3b5fcaa3f5bdf2c6b03258c6bab4995uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/52d520116d856acac9d1442c81f12e0cd7dbdb52
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmTSX2EACgkQTLdFKain
zjwFHggA4GAztrUtZvfQYYALtaLICbtrU7i6aaajPpP3Mph81ndB70WdEqK7jgwy
gzeHZVFgcXtU/PtssCrNhcW+OHHOCIFJLWPz4d2pGyJh//JsPvDWYEgfukY218Ns
+6Lngf1XpGcOJGDyPOERZITvHohVAw0VqZhkw1mCfh2fr2eN++2595NzM1k5MGK/
e49qNhuF7z26JkN6hPoCSPyDBrm75O0qsXdgyV/6AhVdhYPJqyy82MWpxG+3Ed9H
1GuofFgk5HSPt7esjqYIY9+rBf/+PrOJEwWa+duylQZ+g/ZstejEkvRiD09W5Hw0
OYfkE0WPM9NDn5++JPtc+K9tjTbJuQ==
=eYRg
-----END PGP SIGNATURE-----payloadtree e7d193a8f3b5fcaa3f5bdf2c6b03258c6bab4995
parent b7ae7fc524208ab2d56a9f602040439421aeb300
author Jeremy Kong <jkong@palantir.com> 1691508577 +0100
committer Jeremy Kong <jkong@palantir.com> 1691508577 +0100

cleanup test
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/52d520116d856acac9d1442c81f12e0cd7dbdb52html_urlShttps://github.com/palantir/atlasdb/commit/52d520116d856acac9d1442c81f12e0cd7dbdb52comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/52d520116d856acac9d1442c81f12e0cd7dbdb52/commentsjo }(login
jeremyk-91idJZ jk MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujw }(j 
jeremyk-91j JZ jk MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptions      j ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(ji (b7ae7fc524208ab2d56a9f602040439421aeb300j ^https://api.github.com/repos/palantir/atlasdb/commits/b7ae7fc524208ab2d56a9f602040439421aeb300j Shttps://github.com/palantir/atlasdb/commit/b7ae7fc524208ab2d56a9f602040439421aeb300uastats}(totalKM	additionsK	deletionsKIufiles]}(ji (87cf95107ba7694161f7107c671122a0577e4fccfilename\atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/factory/TransactionManagersTest.javastatusmodifiedjˡ Kj̡ KIchangesKMblob_urlhttps://github.com/palantir/atlasdb/blob/52d520116d856acac9d1442c81f12e0cd7dbdb52/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/52d520116d856acac9d1442c81f12e0cd7dbdb52/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.java?ref=52d520116d856acac9d1442c81f12e0cd7dbdb52patchX.  @@ -19,7 +19,6 @@
 import static com.github.tomakehurst.wiremock.client.WireMock.containing;
 import static com.github.tomakehurst.wiremock.client.WireMock.findAll;
 import static com.github.tomakehurst.wiremock.client.WireMock.get;
-import static com.github.tomakehurst.wiremock.client.WireMock.getRequestedFor;
 import static com.github.tomakehurst.wiremock.client.WireMock.post;
 import static com.github.tomakehurst.wiremock.client.WireMock.postRequestedFor;
 import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo;
@@ -37,7 +36,6 @@
 import com.github.tomakehurst.wiremock.junit.WireMockRule;
 import com.github.tomakehurst.wiremock.verification.LoggedRequest;
 import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -92,14 +90,12 @@
 import com.palantir.timestamp.TimestampStoreInvalidator;
 import com.palantir.tokens.auth.AuthHeader;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
-import com.palantir.tritium.metrics.registry.MetricName;
 import java.io.IOException;
 import java.nio.charset.StandardCharsets;
 import java.nio.file.Paths;
 import java.time.Duration;
 import java.util.Collection;
 import java.util.List;
-import java.util.Map;
 import java.util.Optional;
 import java.util.UUID;
 import java.util.concurrent.TimeUnit;
@@ -238,31 +234,6 @@ public void userAgentsPresentOnRequestsToRemoteTimestampAndLockServices() {
         verifyUserAgentOnRawTimestampAndLockRequests();
     }
 
-    @Test
-    public void userAgentsPresentOnRequestsWithLeaderBlockConfigured() throws IOException {
-        setUpLeaderBlockInConfig();
-
-        verifyUserAgentOnRawTimestampAndLockRequests();
-    }
-
-    @Test
-    public void remoteCallsStillMadeIfPingableLeader404s() throws IOException {
-        setUpForRemoteServices();
-        setUpLeaderBlockInConfig();
-
-        LockAndTimestampServices lockAndTimestamp = getLockAndTimestampServices();
-        availableServer.verify(getRequestedFor(urlMatching(LEADER_UUID_PATH)));
-
-        lockAndTimestamp.timelock().getFreshTimestamp();
-        lockAndTimestamp.lock().currentTimeMillis();
-
-        // TODO (jkong): Assert v2 once we move Leader Block to v2 as well
-        availableServer.verify(postRequestedFor(urlMatching(TIMESTAMP_PATH))
-                .withHeader(USER_AGENT_HEADER, containing(EXPECTED_USER_AGENT_STRING)));
-        availableServer.verify(postRequestedFor(urlMatching(LOCK_PATH))
-                .withHeader(USER_AGENT_HEADER, containing(EXPECTED_USER_AGENT_STRING)));
-    }
-
     @Test
     public void tryUnlockIsAsync() throws IOException {
         setUpLeaderBlockInConfig();
@@ -527,24 +498,13 @@ private TransactionManagers withLockImmutableTsOnReadOnlyTransaction(boolean opt
     }
 
     @Test
-    public void metricsAreNotDirectlyReportedFromLocalService() throws IOException {
+    public void metricsAreReportedWhenUsingEmbeddedService() throws IOException {
         setUpLeaderBlockInConfig();
 
-        assertThatTimeAndLockMetricsAreNotRecorded(
+        assertThatTimeAndLockMetricsAreRecorded(
                 TIMESTAMP_SERVICE_FRESH_TIMESTAMP_METRIC, LOCK_SERVICE_CURRENT_TIME_METRIC);
     }
 
-    @Test
-    public void metricsAreReportedExactlyOnceWhenUsingRemoteService() throws IOException {
-        setUpForRemoteServices();
-        setUpLeaderBlockInConfig();
-
-        assertThatTimeAndLockMetricsWithTagsAreRecorded(
-                TIMESTAMP_SERVICE_FRESH_TIMESTAMP_METRIC,
-                NAMESPACE_AGNOSTIC_LOCK_RPC_CLIENT_CURRENT_TIME_METRIC,
-                ImmutableMap.of());
-    }
-
     @Test
     public void timeLockMigrationReportsReadyIfMigrationDone() {
         when(migrator.isInitialized()).thenReturn(true);
@@ -641,7 +601,7 @@ private static boolean isSweepStatsKvsPresentInDelegatingChain(KeyValueService k
         return services.stream().anyMatch(TransactionManagersTest::isSweepStatsKvsPresentInDelegatingChain);
     }
 
-    private void assertThatTimeAndLockMetricsAreNotRecorded(String timestampMetric, String lockMetric) {
+    private void assertThatTimeAndLockMetricsAreRecorded(String timestampMetric, String lockMetric) {
         assertThat(metricsManager.getRegistry().timer(timestampMetric).getCount())
                 .isEqualTo(0L);
         assertThat(metricsManager.getRegistry().timer(lockMetric).getCount()).isEqualTo(0L);
@@ -651,37 +611,8 @@ private void assertThatTimeAndLockMetricsAreNotRecorded(String timestampMetric,
         lockAndTimestamp.timelock().currentTimeMillis();
 
         assertThat(metricsManager.getRegistry().timer(timestampMetric).getCount())
-                .isEqualTo(0L);
-        assertThat(metricsManager.getRegistry().timer(lockMetric).getCount()).isEqualTo(0L);
-    }
-
-    private void assertThatTimeAndLockMetricsWithTagsAreRecorded(
-            String timestampMetric, String lockMetric, Map<String, String> tags) {
-        MetricName timestampMetricName = MetricName.builder()
-                .safeName(timestampMetric)
-                .putAllSafeTags(tags)
-                .build();
-        MetricName lockMetricName =
-                MetricName.builder().safeName(lockMetric).putAllSafeTags(tags).build();
-
-        assertThat(metricsManager.getTaggedRegistry().timer(timestampMetricName).getCount())
-                .isEqualTo(0L);
-        assertThat(metricsManager.getTaggedRegistry().timer(lockMetricName).getCount())
-                .isEqualTo(0L);
-
-        LockAndTimestampServices lockAndTimestamp = getLockAndTimestampServices();
-        lockAndTimestamp.timelock().getFreshTimestamp();
-        lockAndTimestamp.timelock().currentTimeMillis();
-
-        assertThat(metricsManager.getTaggedRegistry().timer(timestampMetricName).getCount())
                 .isEqualTo(1L);
-        assertThat(metricsManager.getTaggedRegistry().timer(lockMetricName).getCount())
-                .isEqualTo(1L);
-    }
-
-    private void setUpForRemoteServices() throws IOException {
-        availableServer.stubFor(LEADER_UUID_MAPPING.willReturn(aResponse().withStatus(404)));
-        setUpLeaderBlockInConfig();
+        assertThat(metricsManager.getRegistry().timer(lockMetric).getCount()).isEqualTo(1L);
     }
 
     private void setUpTimeLockBlockInRuntimeConfig() {uau(4739f3e7e80219a2028cb2fbf155b1ebae43571f}(sha(4739f3e7e80219a2028cb2fbf155b1ebae43571fnode_idEC_kwDOAjP5fdoAKDQ3MzlmM2U3ZTgwMjE5YTIwMjhjYjJmYmYxNTViMWViYWU0MzU3MWYcommit}(author}(name
Louis Bembergemaillbemberg@palantir.comdate2023-04-28T18:48:07Zu	committer}(j 
Louis Bembergj lbemberg@palantir.comj 2023-04-28T18:48:07ZumessageMerge branch 'lb/better-logging-lock-retries' of github.com:palantir/atlasdb into lb/better-logging-lock-retries
merge remote branchtree}(j (5afa8eb089d39752f8ecb161a03eae7bcd6cbafburl`https://api.github.com/repos/palantir/atlasdb/git/trees/5afa8eb089d39752f8ecb161a03eae7bcd6cbafbuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4739f3e7e80219a2028cb2fbf155b1ebae43571f
comment_countK verification}(verifiedreasonno_user	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEWASyGscg/aE7qfKTryYcV6eKVuAFAmRMFPsACgkQryYcV6eK
VuAZaggAptLfzYjjCnMSmZRmO4PeHDRoH4C/9bhr3D/9TgKuhTjLpA8HLEJtg2Pw
lfURGmJb1MS0d/HhsFEXlnacArERXkMGx6M70ubrBIJZxPY0+fL7eJcoyC1NSJ74
U9p4cPY7SVvfH0YWtfhUPzeOPm+nyygGkRiIt2ERvBzhFueJlhjxcGvx40zBHwOR
92uNx2vnVXUPNCfONoOU40+e0stftHaKqXHqf/HQV9cLPP39sOjMpvhhrqTZB4UD
FXMSjL+A6cyr9ELfwLfvwgIua0PGCn4W3Z3fR9c6rr+dHj6kVbiWzxQ15Pw+UYXq
p6rOdmm2nHpsC0IJ4kZhUDLze8ArgQ==
=lz9X
-----END PGP SIGNATURE-----payloadX  tree 5afa8eb089d39752f8ecb161a03eae7bcd6cbafb
parent e6a1318c19308d45c0e5cf275de57b6f3ca51579
parent a09d8128a2b8dcd394c3194f2f573a06180a9bbb
author Louis Bemberg <lbemberg@palantir.com> 1682707687 -0400
committer Louis Bemberg <lbemberg@palantir.com> 1682707687 -0400

Merge branch 'lb/better-logging-lock-retries' of github.com:palantir/atlasdb into lb/better-logging-lock-retries
merge remote branch
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/4739f3e7e80219a2028cb2fbf155b1ebae43571fhtml_urlShttps://github.com/palantir/atlasdb/commit/4739f3e7e80219a2028cb2fbf155b1ebae43571fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4739f3e7e80219a2028cb2fbf155b1ebae43571f/commentsj Nj Nparents](}(j (e6a1318c19308d45c0e5cf275de57b6f3ca51579j ^https://api.github.com/repos/palantir/atlasdb/commits/e6a1318c19308d45c0e5cf275de57b6f3ca51579j Shttps://github.com/palantir/atlasdb/commit/e6a1318c19308d45c0e5cf275de57b6f3ca51579u}(j (a09d8128a2b8dcd394c3194f2f573a06180a9bbbj ^https://api.github.com/repos/palantir/atlasdb/commits/a09d8128a2b8dcd394c3194f2f573a06180a9bbbj Shttps://github.com/palantir/atlasdb/commit/a09d8128a2b8dcd394c3194f2f573a06180a9bbbuestats}(totalK	additionsK	deletionsK ufiles]}(j (23134b9e8533848c590920b5b3a3ff99b19db234filename$changelog/@unreleased/pr-6551.v2.ymlstatusaddedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/4739f3e7e80219a2028cb2fbf155b1ebae43571f/changelog%2F%40unreleased%2Fpr-6551.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/4739f3e7e80219a2028cb2fbf155b1ebae43571f/changelog%2F%40unreleased%2Fpr-6551.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6551.v2.yml?ref=4739f3e7e80219a2028cb2fbf155b1ebae43571fpatch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Display as safe arg the failureCount in the "Could not lock successfully"
+  links:
+  - https://github.com/palantir/atlasdb/pull/6551uau(7e76c60c4c3e157ff7b3ef1ca0f85c0c4e913e4b}(sha(7e76c60c4c3e157ff7b3ef1ca0f85c0c4e913e4bnode_idEC_kwDOAjP5fdoAKDdlNzZjNjBjNGMzZTE1N2ZmN2IzZWYxY2EwZjg1YzBjNGU5MTNlNGIcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-04T15:35:12Zu	committer}(j4 Lucas Meirelesj6 meireles31@msn.comj8 2023-07-04T15:35:31Zumessageaccept revapi changetree}(j, (47f418df8cfdc00d0bd1fe9297eb029d529900d2url`https://api.github.com/repos/palantir/atlasdb/git/trees/47f418df8cfdc00d0bd1fe9297eb029d529900d2ujD bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7e76c60c4c3e157ff7b3ef1ca0f85c0c4e913e4b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSkPEMACgkQJd22kJ7J
GiwjsAf/RJbsXIJZgeRFcxzToDQPuS+7hRXcVc1cx+apVS5B0jTq12Py4A4FhFK5
qZ6dVwgtQLINYIKmDAj7ruZTO+LXua7GdC1cD+vDQoWsgdx9GtQ0pAP9xU4edVtd
aj3TTrTa45D90370xZxm7XuiqpRr8Ger6DXIVozDPhv+WCfIfUMP2+miknpsxhZg
FOKHafKXDG4kdrvqUyr0C9XfZnuhCiinTtpDWpudGzuuv36szB0MnvCvFeNVXi9X
pN4ar3xd2OPK5Re7MyrN5IRDHTseWDFtZNU7AD71dVAU29wR3VpY7Et3ni+oygbj
CicTHIqu+OXDXd4NNq1NpWordRqxhA==
=JMJ/
-----END PGP SIGNATURE-----payloadtree 47f418df8cfdc00d0bd1fe9297eb029d529900d2
parent 99f212556286a5f523d611891b97d8db01644d4a
author Lucas Meireles <meireles31@msn.com> 1688484912 +0100
committer Lucas Meireles <meireles31@msn.com> 1688484931 +0100

accept revapi change
uujD ^https://api.github.com/repos/palantir/atlasdb/commits/7e76c60c4c3e157ff7b3ef1ca0f85c0c4e913e4bhtml_urlShttps://github.com/palantir/atlasdb/commit/7e76c60c4c3e157ff7b3ef1ca0f85c0c4e913e4bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7e76c60c4c3e157ff7b3ef1ca0f85c0c4e913e4b/commentsj2 }(loginLucasIMEidJg j. MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jD %https://api.github.com/users/LucasIMEjR https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj: }(jW LucasIMEjY Jg j. MDQ6VXNlcjY3ODczMTE=j[ 3https://avatars.githubusercontent.com/u/6787311?v=4j] h5jD %https://api.github.com/users/LucasIMEjR https://github.com/LucasIMEj` /https://api.github.com/users/LucasIME/followersjb <https://api.github.com/users/LucasIME/following{/other_user}jd 5https://api.github.com/users/LucasIME/gists{/gist_id}jf <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jh 3https://api.github.com/users/LucasIME/subscriptionsjj *https://api.github.com/users/LucasIME/orgsjl +https://api.github.com/users/LucasIME/reposjn 6https://api.github.com/users/LucasIME/events{/privacy}jp 5https://api.github.com/users/LucasIME/received_eventsjr Userjt uparents]}(j, (99f212556286a5f523d611891b97d8db01644d4ajD ^https://api.github.com/repos/palantir/atlasdb/commits/99f212556286a5f523d611891b97d8db01644d4ajR Shttps://github.com/palantir/atlasdb/commit/99f212556286a5f523d611891b97d8db01644d4auastats}(totalK	additionsK	deletionsK ufiles]}(j, (e0e8cbfb0341512e9dc46cf01fcc3a3a7e524bb7filename.palantir/revapi.ymlstatusmodifiedj Kj K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/7e76c60c4c3e157ff7b3ef1ca0f85c0c4e913e4b/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/7e76c60c4c3e157ff7b3ef1ca0f85c0c4e913e4b/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=7e76c60c4c3e157ff7b3ef1ca0f85c0c4e913e4bpatchX   @@ -121,3 +121,9 @@ acceptedBreaks:
       old: "method java.util.concurrent.ExecutorService com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService::createThreadPoolWihtoutSpans(java.lang.String,\
         \ int, int) @ com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl"
       justification: "Protected method"
+  "0.884.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.method.addedToInterface"
+      new: "method java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell, byte[]> com.palantir.atlasdb.transaction.api.Transaction::getWithExpectedNumberOfCells(com.palantir.atlasdb.keyvalue.api.TableReference,\
+        \ java.util.Set<com.palantir.atlasdb.keyvalue.api.Cell>, int)"
+      justification: "Just introducing new Get API"uau(ab84e9466cb0570bbfec1fddf541f0d6259cccff}(sha(ab84e9466cb0570bbfec1fddf541f0d6259cccffnode_idEC_kwDOAjP5fdoAKGFiODRlOTQ2NmNiMDU3MGJiZmVjMWZkZGY1NDFmMGQ2MjU5Y2NjZmYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-17T22:48:26Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-05-17T22:48:26Zumessage#check if value exists before deletetree}(j (35f6d6dccb6e3015c261701fd106ca188eaf802furl`https://api.github.com/repos/palantir/atlasdb/git/trees/35f6d6dccb6e3015c261701fd106ca188eaf802fuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ab84e9466cb0570bbfec1fddf541f0d6259cccff
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRlWboACgkQTLdFKain
zjx6yAgAiBsSl3UNoQNrSbCRd1AleLtPOmwp99GvejmAstHRawvbLeL4ruz6QYC/
aOn8J6+TRzCBIM0dqpScZHGj9loCmSIFTTvJhYl1d8Q3nBpx29GbMQpIGCd6ekLW
KxT3HZ4beH/JvYZHYsDQL6DsUSnfwf3me91KpqzwtwT/Wi/I7i/MMhApFB5Mt9QL
T+12OqmkKAL415GaYtSxFWgVw6PXz8ozAJqAFK5nhnx8Az2T0S0OlCigYEFQnTM2
3KnAYk1dtMb6u2W8TjB1hu74o7FOL3NlrRhj9crJ5q+sFUzQaTlGvpuRzViMhJUW
4w2a95gODqe7LiIxDk47E46Wtf/QTA==
=oaMN
-----END PGP SIGNATURE-----payloadtree 35f6d6dccb6e3015c261701fd106ca188eaf802f
parent 7a3a1b30b6ff647bd8d924697550793ef6b72944
author Jeremy Kong <jkong@palantir.com> 1684363706 +0100
committer Jeremy Kong <jkong@palantir.com> 1684363706 +0100

check if value exists before delete
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/ab84e9466cb0570bbfec1fddf541f0d6259cccffhtml_urlShttps://github.com/palantir/atlasdb/commit/ab84e9466cb0570bbfec1fddf541f0d6259cccffcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ab84e9466cb0570bbfec1fddf541f0d6259cccff/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91jɢ https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j΢ 
jeremyk-91jТ JZ j MDQ6VXNlcjU5NTU1MTA=jҢ 3https://avatars.githubusercontent.com/u/5955510?v=4jԢ h5j 'https://api.github.com/users/jeremyk-91jɢ https://github.com/jeremyk-91jע 1https://api.github.com/users/jeremyk-91/followersj٢ >https://api.github.com/users/jeremyk-91/following{/other_user}jۢ 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jݢ >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jߢ 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j (7a3a1b30b6ff647bd8d924697550793ef6b72944j ^https://api.github.com/repos/palantir/atlasdb/commits/7a3a1b30b6ff647bd8d924697550793ef6b72944jɢ Shttps://github.com/palantir/atlasdb/commit/7a3a1b30b6ff647bd8d924697550793ef6b72944uastats}(totalK		additionsK	deletionsKufiles]}(j (deabf8eefacc59a0eeb2e3e599f509eec755a141filenamehatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javastatusmodifiedj Kj KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/ab84e9466cb0570bbfec1fddf541f0d6259cccff/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ab84e9466cb0570bbfec1fddf541f0d6259cccff/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=ab84e9466cb0570bbfec1fddf541f0d6259cccffpatchXn  @@ -58,7 +58,8 @@ public final class TransientRowsWorkflows {
 
     private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
 
-    private TransientRowsWorkflows() {}
+    private TransientRowsWorkflows() {
+    }
 
     public static Workflow create(
             InteractiveTransactionStore store,
@@ -82,8 +83,10 @@ private static Optional<WitnessedTransaction> run(
                 txn.read(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, indexToRead));
                 txn.read(tableName, ImmutableWorkloadCell.of(indexToRead, COLUMN));
 
-                txn.delete(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex - 1));
-                txn.delete(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN));
+                if (txn.read(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN)).isPresent()) {
+                    txn.delete(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex - 1));
+                    txn.delete(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN));
+                }
             }
         });
     }uau(23b509f30009d6c36a209c56be97556f86d30ca6}(sha(23b509f30009d6c36a209c56be97556f86d30ca6node_idEC_kwDOAjP5fdoAKDIzYjUwOWYzMDAwOWQ2YzM2YTIwOWM1NmJlOTc1NTZmODZkMzBjYTYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-17T15:36:04Zu	committer}(j" 
Sam Kramerj$ skramer@palantir.comj& 2023-08-17T15:36:04Zumessageadd testtree}(j (2c6d3f1699f1039d2d83049ad3f4f3293d784d61url`https://api.github.com/repos/palantir/atlasdb/git/trees/2c6d3f1699f1039d2d83049ad3f4f3293d784d61uj2 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/23b509f30009d6c36a209c56be97556f86d30ca6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTePmQACgkQmPPOpKR4
XS19JwgAllyzOd3N7poglb1aQZDsQP4dgTYSK0AG8EElsmivtD6JHDaXteqpsyku
lVIbavPOzJcCXxqxbssFXOy/gbeRFefIOeKWHbneKkHVNk9kvKoQIpWlfSUkrm/v
rrgwBanyl+KJLMV1Zizw+esRfjKsk9lnILpQqF5WnA4CzVoXx+dLRrKpdK71e3BI
Rh0ozSZFP/yn+12OUfUrAFJECJrk1pAeNb+fldQDxvwXwcDaXX1OSqOj3weH3Q0D
hKsRcmje2lflI+OVTx59L2OVw0r8qt43ummb7hx578fiMVVxg8+cktVmDr2VGk2L
J8yeq8SiJXoB3mlfn4nON7noGdM8vA==
=Hexe
-----END PGP SIGNATURE-----payloadtree 2c6d3f1699f1039d2d83049ad3f4f3293d784d61
parent ce70f3be4eeb4be78935f8bfe8cf719bda37b094
author Sam Kramer <skramer@palantir.com> 1692286564 +0100
committer Sam Kramer <skramer@palantir.com> 1692286564 +0100

add test
uuj2 ^https://api.github.com/repos/palantir/atlasdb/commits/23b509f30009d6c36a209c56be97556f86d30ca6html_urlShttps://github.com/palantir/atlasdb/commit/23b509f30009d6c36a209c56be97556f86d30ca6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/23b509f30009d6c36a209c56be97556f86d30ca6/commentsj  }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j2 'https://api.github.com/users/Sam-Kramerj@ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj( }(jE 
Sam-KramerjG J^2_ j MDQ6VXNlcjYyMzg4MTQ=jI 3https://avatars.githubusercontent.com/u/6238814?v=4jK h5j2 'https://api.github.com/users/Sam-Kramerj@ https://github.com/Sam-KramerjN 1https://api.github.com/users/Sam-Kramer/followersjP >https://api.github.com/users/Sam-Kramer/following{/other_user}jR 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jT >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jV 5https://api.github.com/users/Sam-Kramer/subscriptionsjX ,https://api.github.com/users/Sam-Kramer/orgsjZ -https://api.github.com/users/Sam-Kramer/reposj\ 8https://api.github.com/users/Sam-Kramer/events{/privacy}j^ 7https://api.github.com/users/Sam-Kramer/received_eventsj` Userjb uparents]}(j (ce70f3be4eeb4be78935f8bfe8cf719bda37b094j2 ^https://api.github.com/repos/palantir/atlasdb/commits/ce70f3be4eeb4be78935f8bfe8cf719bda37b094j@ Shttps://github.com/palantir/atlasdb/commit/ce70f3be4eeb4be78935f8bfe8cf719bda37b094uastats}(totalK	additionsK
	deletionsKufiles](}(j (fdf21c1ea5f2bfd66fd368da2ce63c1a07942979filenameatimelock-impl/src/test/java/com/palantir/atlasdb/timelock/paxos/PaxosTimestampBoundStoreTest.javastatusmodifiedj| K
j} KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/23b509f30009d6c36a209c56be97556f86d30ca6/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/23b509f30009d6c36a209c56be97556f86d30ca6/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.java?ref=23b509f30009d6c36a209c56be97556f86d30ca6patchX  @@ -241,12 +241,21 @@ public void retriesProposeUntilSuccessful() throws Exception {
     }
 
     @Test
-    public void throwsIfBoundUnexpectedlyChangedUnderUs() {
+    public void throwsNotCurrentLeaderExceptionIfBoundUnexpectedlyChangedUnderUs() {
         PaxosTimestampBoundStore additionalStore = createPaxosTimestampBoundStore(1);
         additionalStore.storeUpperLimit(TIMESTAMP_1);
         assertThatThrownBy(() -> store.storeUpperLimit(TIMESTAMP_2)).isInstanceOf(NotCurrentLeaderException.class);
     }
 
+    @Test
+    public void throwsSafeIllegalStateExceptionIfCalledAfterNotCurrentLeaderException() {
+        PaxosTimestampBoundStore additionalStore = createPaxosTimestampBoundStore(1);
+        additionalStore.storeUpperLimit(TIMESTAMP_1);
+        assertThatThrownBy(() -> store.storeUpperLimit(TIMESTAMP_2)).isInstanceOf(NotCurrentLeaderException.class);
+        assertThatLoggableExceptionThrownBy(() -> store.storeUpperLimit(TIMESTAMP_2))
+                .isInstanceOf(SafeIllegalStateException.class);
+    }
+
     @Test
     public void canReadStateFromDistributedLogs() {
         PaxosTimestampBoundStore additionalStore = createPaxosTimestampBoundStore(1);u}(j (f281ca47e5f1788f9653e2e7133c51cf908c3369j Mtimestamp-impl/src/main/java/com/palantir/timestamp/PersistentUpperLimit.javaj modifiedj| K j} Kj Kj https://github.com/palantir/atlasdb/blob/23b509f30009d6c36a209c56be97556f86d30ca6/timestamp-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentUpperLimit.javaj https://github.com/palantir/atlasdb/raw/23b509f30009d6c36a209c56be97556f86d30ca6/timestamp-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentUpperLimit.javaj https://api.github.com/repos/palantir/atlasdb/contents/timestamp-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentUpperLimit.java?ref=23b509f30009d6c36a209c56be97556f86d30ca6j X  @@ -16,7 +16,6 @@
 package com.palantir.timestamp;
 
 import com.google.common.annotations.VisibleForTesting;
-import javax.annotation.concurrent.GuardedBy;
 
 public class PersistentUpperLimit {
 
@@ -27,9 +26,7 @@ public class PersistentUpperLimit {
     @VisibleForTesting
     static final long BUFFER = 1_000_000;
 
-    @GuardedBy("this")
     private volatile long currentLimit;
-
     private final TimestampBoundStore store;
 
     public PersistentUpperLimit(TimestampBoundStore boundStore) {ueu(021ef962051c136f8e0a62a96546250b19af7639}(sha(021ef962051c136f8e0a62a96546250b19af7639node_idEC_kwDOAjP5fdoAKDAyMWVmOTYyMDUxYzEzNmY4ZTBhNjJhOTY1NDYyNTBiMTlhZjc2Mzkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-06-05T15:47:19Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-06-05T15:47:19Zumessagestupid mistake 2tree}(j (6dd8d94a90819501cdaf11c58fff91f0d894a25aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/6dd8d94a90819501cdaf11c58fff91f0d894a25auj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/021ef962051c136f8e0a62a96546250b19af7639
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmR+A4gACgkQPlMHVIT1
yhpvGQgAnxIr20TRBAFL+TZ0QI3tVGpwe8B1gSLWL9GXJKBs9JeMNOFCQ2Wz4vkT
g0nbQt1WfgZ3jTTurXSeHTOwCb67bXMRCZ7ogV3IENvvgrFTssRADujH7vp0T/WW
AdjN7lsN4B6prTkgoJZc1pTHKJZS1RsYn2nXXx4gd/BrWj9Bv4xTkiZS10dBkIJr
C+xTH1ruevWXHhCSl079hXRbpopKvVPQGOuNKcsUnk7/iz4JPNIuK8NTTkwbT7/h
KZoagb0cAU+Qs6H5bPE5tRMFYxzaw1aYISJF8QxQlaYQHErFBVP+58oPIBcKOYbW
6tHGgKIedDrPJ31VGIK0ftlwiLH2sA==
=oC8C
-----END PGP SIGNATURE-----payloadtree 6dd8d94a90819501cdaf11c58fff91f0d894a25a
parent f87ee5c7e61cd99c04269f23b0fe372eee02c985
author Ahmed Alouane <aalouane@palantir.com> 1685980039 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1685980039 +0100

stupid mistake 2
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/021ef962051c136f8e0a62a96546250b19af7639html_urlShttps://github.com/palantir/atlasdb/commit/021ef962051c136f8e0a62a96546250b19af7639comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/021ef962051c136f8e0a62a96546250b19af7639/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(jģ ergo14jƣ Jj MDQ6VXNlcjMwOTAzNzM2jȣ 4https://avatars.githubusercontent.com/u/30903736?v=4jʣ h5j #https://api.github.com/users/ergo14j https://github.com/ergo14jͣ -https://api.github.com/users/ergo14/followersjϣ :https://api.github.com/users/ergo14/following{/other_user}jѣ 3https://api.github.com/users/ergo14/gists{/gist_id}jӣ :https://api.github.com/users/ergo14/starred{/owner}{/repo}jգ 1https://api.github.com/users/ergo14/subscriptionsjף (https://api.github.com/users/ergo14/orgsj٣ )https://api.github.com/users/ergo14/reposjۣ 4https://api.github.com/users/ergo14/events{/privacy}jݣ 3https://api.github.com/users/ergo14/received_eventsjߣ Userj uparents]}(j (f87ee5c7e61cd99c04269f23b0fe372eee02c985j ^https://api.github.com/repos/palantir/atlasdb/commits/f87ee5c7e61cd99c04269f23b0fe372eee02c985j Shttps://github.com/palantir/atlasdb/commit/f87ee5c7e61cd99c04269f23b0fe372eee02c985uastats}(totalK	additionsK	deletionsKufiles]}(j (4fdf20ddfcc0edf7e2c2aa7fcd4c48d4bbf71272filename.circleci/config.ymlstatusmodifiedj Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/021ef962051c136f8e0a62a96546250b19af7639/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/021ef962051c136f8e0a62a96546250b19af7639/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=021ef962051c136f8e0a62a96546250b19af7639patchX  @@ -155,7 +155,7 @@ workflows:
             alias: test-no-tl
             parameters:
               # intentionally excluding 13 (TimeLock migration ETE test) from this collection
-              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14]
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 17]
           filters:
             tags:
               only: /.*/uau(2633ebf464ef2a799c685ab95d094a8a1d885d2d}(sha(2633ebf464ef2a799c685ab95d094a8a1d885d2dnode_idEC_kwDOAjP5fdoAKDI2MzNlYmY0NjRlZjJhNzk5YzY4NWFiOTVkMDk0YThhMWQ4ODVkMmQcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-12T17:44:47Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-07-12T17:44:47Zumessage)Address some comments
rebase onto developtree}(j (fb69c829e64aa6cf114087f605da642c44ee4243url`https://api.github.com/repos/palantir/atlasdb/git/trees/fb69c829e64aa6cf114087f605da642c44ee4243uj( bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2633ebf464ef2a799c685ab95d094a8a1d885d2d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSu5pAACgkQmF9s0kaF
Iw0kRgf9GtfDQLdQQCHiSZRrABbdqI0yz8FM+RA2uZVG5v1oG1ni5ytoW/JVd0eb
AMvbp+yepPIkvUvGvIazaruf6fmFzX1Xpz25t2KAI+W9ZEt2bAZjYMKSVHuk7/D6
Y7P9W86FuxtHnUm47VBevIIhlAkI981fCfAawFjNWzGjMIqjzSteHRymfgZwPhX4
pu4bZ75kyu3GSssh386d7HYIG8MuUnPKCQ1CNq6waTda3IYg+ssVUjlFwJAsuROO
JkeAsZ9WQZvk/OM35f2vT1w1Ssuby60MVnIScJaWL5v90arC4pmWzBpvWP0D9Y+L
AQ54yRFu+UacaxPTlG5ZhPJKSZZOag==
=bEFf
-----END PGP SIGNATURE-----payloadtree fb69c829e64aa6cf114087f605da642c44ee4243
parent 0a286818e4c89ca2002b89fa1125112e7c9471fb
author Tom Papke <tpapke@palantir.com> 1689183887 +0100
committer Tom Papke <tpapke@palantir.com> 1689183887 +0100

Address some comments
rebase onto develop
uuj( ^https://api.github.com/repos/palantir/atlasdb/commits/2633ebf464ef2a799c685ab95d094a8a1d885d2dhtml_urlShttps://github.com/palantir/atlasdb/commit/2633ebf464ef2a799c685ab95d094a8a1d885d2dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2633ebf464ef2a799c685ab95d094a8a1d885d2d/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j( &https://api.github.com/users/Toemmschej6 https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j; 	Toemmschej= Jboj MDQ6VXNlcjQzNjc1NDkwj? 4https://avatars.githubusercontent.com/u/43675490?v=4jA h5j( &https://api.github.com/users/Toemmschej6 https://github.com/ToemmschejD 0https://api.github.com/users/Toemmsche/followersjF =https://api.github.com/users/Toemmsche/following{/other_user}jH 6https://api.github.com/users/Toemmsche/gists{/gist_id}jJ =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jL 4https://api.github.com/users/Toemmsche/subscriptionsjN +https://api.github.com/users/Toemmsche/orgsjP ,https://api.github.com/users/Toemmsche/reposjR 7https://api.github.com/users/Toemmsche/events{/privacy}jT 6https://api.github.com/users/Toemmsche/received_eventsjV UserjX uparents]}(j (0a286818e4c89ca2002b89fa1125112e7c9471fbj( ^https://api.github.com/repos/palantir/atlasdb/commits/0a286818e4c89ca2002b89fa1125112e7c9471fbj6 Shttps://github.com/palantir/atlasdb/commit/0a286818e4c89ca2002b89fa1125112e7c9471fbuastats}(totalK)	additionsK	deletionsKufiles](}(j (c2fa8c43f4d3dd1867f4e8fce33ca1d02c7d39a7filenameGatlasdb-commons/src/main/java/com/palantir/util/IndexEncodingUtils.javastatusmodifiedjr Kjs KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/2633ebf464ef2a799c685ab95d094a8a1d885d2d/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2633ebf464ef2a799c685ab95d094a8a1d885d2d/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.java?ref=2633ebf464ef2a799c685ab95d094a8a1d885d2dpatchX  @@ -17,7 +17,6 @@
 package com.palantir.util;
 
 import com.fasterxml.jackson.annotation.JsonIgnoreType;
-import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.Maps;
 import com.google.common.collect.Sets;
 import com.palantir.logsafe.Preconditions;
@@ -115,8 +114,7 @@ public static <K extends DeterministicHashable, V, R> Map<K, R> decode(
         return keyToValue;
     }
 
-    @VisibleForTesting
-    static <K extends DeterministicHashable> KeyListChecksum computeChecksum(
+    public static <K extends DeterministicHashable> KeyListChecksum computeChecksum(
             ChecksumType checksumType, List<K> keyList) {
         switch (checksumType) {
             case CRC32_OF_DETERMINISTIC_HASHCODE: {u}(j (d4d955a4f00bdf9a7d4b62b00f0e7021a4c114a4jx Slock-api/src/main/java/com/palantir/lock/watch/ConjureLockRequestMetadataUtils.javajz modifiedjr K js Kj| Kj} https://github.com/palantir/atlasdb/blob/2633ebf464ef2a799c685ab95d094a8a1d885d2d/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtils.javaj https://github.com/palantir/atlasdb/raw/2633ebf464ef2a799c685ab95d094a8a1d885d2d/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtils.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtils.java?ref=2633ebf464ef2a799c685ab95d094a8a1d885d2dj XP  @@ -80,7 +80,6 @@ public static LockRequestMetadata fromConjureIndexEncoded(ConjureMetadataConvers
         Map<LockDescriptor, Optional<ChangeMetadata>> optChangeMetadata = IndexEncodingUtils.decode(
                 encoded,
                 conjureChangeMetadata -> conjureChangeMetadata.accept(ChangeMetadataFromConjureVisitor.INSTANCE));
-        // visitUnknown() will return an empty optional
         Map<LockDescriptor, ChangeMetadata> changeMetadata = KeyedStream.ofEntries(
                         optChangeMetadata.entrySet().stream())
                 .flatMap(Optional::stream)u}(j (d05ad8a6272b6922ecfa35c752a19afe87dc1ce6jx Wlock-api/src/test/java/com/palantir/lock/watch/ConjureLockRequestMetadataUtilsTest.javajz modifiedjr K
js Kj| K$j} https://github.com/palantir/atlasdb/blob/2633ebf464ef2a799c685ab95d094a8a1d885d2d/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.javaj https://github.com/palantir/atlasdb/raw/2633ebf464ef2a799c685ab95d094a8a1d885d2d/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.java?ref=2633ebf464ef2a799c685ab95d094a8a1d885d2dj X
  @@ -22,7 +22,6 @@
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.timelock.api.ConjureChangeMetadata;
 import com.palantir.atlasdb.timelock.api.ConjureCreatedChangeMetadata;
@@ -31,7 +30,6 @@
 import com.palantir.atlasdb.timelock.api.ConjureLockRequestMetadata;
 import com.palantir.atlasdb.timelock.api.ConjureUnchangedChangeMetadata;
 import com.palantir.atlasdb.timelock.api.ConjureUpdatedChangeMetadata;
-import com.palantir.common.streams.KeyedStream;
 import com.palantir.conjure.java.lib.Bytes;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.StringLockDescriptor;
@@ -41,14 +39,10 @@
 import com.palantir.util.IndexEncodingUtils.KeyListChecksum;
 import java.util.ArrayList;
 import java.util.Collections;
-import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
-import java.util.Random;
-import java.util.Set;
-import java.util.UUID;
 import java.util.stream.Collectors;
-import java.util.stream.Stream;
+import java.util.stream.IntStream;
 import org.junit.BeforeClass;
 import org.junit.Test;
 
@@ -124,26 +118,22 @@ public void convertsFromConjureCorrectly() {
     }
 
     @Test
-    public void convertingToAndFromConjureYieldsOriginalForRandomData() {
-        int randSeed = (int) System.currentTimeMillis();
-        Random random = new Random(randSeed);
-        Set<LockDescriptor> lockDescriptors = Stream.generate(UUID::randomUUID)
-                .map(UUID::toString)
+    public void canConvertSparseMetadata() {
+        List<LockDescriptor> lockDescriptors = IntStream.range(0, 10)
+                .mapToObj(Integer::toString)
                 .map(StringLockDescriptor::of)
-                .limit(1000)
-                .collect(Collectors.toSet());
-        List<ChangeMetadata> shuffled = new ArrayList<>(CHANGE_METADATA_LIST);
-        Collections.shuffle(shuffled, random);
-        Iterator<ChangeMetadata> iterator = Iterables.cycle(shuffled).iterator();
-        Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata = KeyedStream.of(lockDescriptors.stream())
-                .filter(_unused -> random.nextBoolean())
-                .map(_unused -> iterator.next())
-                .collectToMap();
+                .collect(Collectors.toList());
+        // Unique metadata on some locks, but not all
+        Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata = ImmutableMap.of(
+                lockDescriptors.get(0), ChangeMetadata.created(PtBytes.toBytes(0)),
+                lockDescriptors.get(4), ChangeMetadata.created(PtBytes.toBytes(4)),
+                lockDescriptors.get(9), ChangeMetadata.created(PtBytes.toBytes(9)),
+                lockDescriptors.get(5), ChangeMetadata.created(PtBytes.toBytes(5)));
         LockRequestMetadata metadata = LockRequestMetadata.of(lockDescriptorToChangeMetadata);
 
         assertThat(ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(
-                        ConjureLockRequestMetadataUtils.toConjureIndexEncoded(lockDescriptors, metadata)))
-                .as("Converting to Conjure and back yields the original data. Random seed: " + randSeed)
+                        ConjureLockRequestMetadataUtils.toConjureIndexEncoded(
+                                ImmutableSet.copyOf(lockDescriptors), metadata)))
                 .isEqualTo(metadata);
     }
 ueu(4b14a270344ca9b14483ffef6497c46fbf07146e}(sha(4b14a270344ca9b14483ffef6497c46fbf07146enode_idEC_kwDOAjP5fdoAKDRiMTRhMjcwMzQ0Y2E5YjE0NDgzZmZlZjY0OTdjNDZmYmYwNzE0NmUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-22T23:16:35Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-22T23:16:35ZumessageEmpty-Committree}(j (dd3af70d00f38ccdbbe0200f67671dcd68d53744url`https://api.github.com/repos/palantir/atlasdb/git/trees/dd3af70d00f38ccdbbe0200f67671dcd68d53744uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4b14a270344ca9b14483ffef6497c46fbf07146e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRr99MACgkQPlMHVIT1
yhrVjwf/T05J5exK2JLomHXjvJa+DbwBJDPYHNwTBk3vXSPifKfZN4zqhjATbgEs
p89c+OBwytLdEZp2wqN5tMwJ5fKNQMvWVxthYBEDEUAcydWezMjUVVsNhqmih29Q
yw8aIYayg8ZQ1gE95vfnHRiHoq9O06CJxC2BP7hMvjccYmplzBU+kn5CvWvPjVy4
fElIL6lQN4Vb3oDR4/agt2bfcQkvy3FksI+ZB7HowgiyR1gKNFz9fzhx+fhUixWL
GsNFOAsU852PNHTTGq+CW61bDNT7EQO2Q0lLnIuXsPTY8vhb5buSbBaUGiAmoq04
RXez45+DU4Hw3TB7vOHLah01CIQEJw==
=avD6
-----END PGP SIGNATURE-----payloadtree dd3af70d00f38ccdbbe0200f67671dcd68d53744
parent 7d27d1bf8ae6931fbae7a130ef33309e0faa7078
author Ahmed Alouane <aalouane@palantir.com> 1684797395 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684797395 +0100

Empty-Commit
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/4b14a270344ca9b14483ffef6497c46fbf07146ehtml_urlShttps://github.com/palantir/atlasdb/commit/4b14a270344ca9b14483ffef6497c46fbf07146ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4b14a270344ca9b14483ffef6497c46fbf07146e/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j¤ ergo14jĤ Jj MDQ6VXNlcjMwOTAzNzM2jƤ 4https://avatars.githubusercontent.com/u/30903736?v=4jȤ h5j #https://api.github.com/users/ergo14j https://github.com/ergo14jˤ -https://api.github.com/users/ergo14/followersjͤ :https://api.github.com/users/ergo14/following{/other_user}jϤ 3https://api.github.com/users/ergo14/gists{/gist_id}jѤ :https://api.github.com/users/ergo14/starred{/owner}{/repo}jӤ 1https://api.github.com/users/ergo14/subscriptionsjդ (https://api.github.com/users/ergo14/orgsjפ )https://api.github.com/users/ergo14/reposj٤ 4https://api.github.com/users/ergo14/events{/privacy}jۤ 3https://api.github.com/users/ergo14/received_eventsjݤ Userjߤ uparents]}(j (7d27d1bf8ae6931fbae7a130ef33309e0faa7078j ^https://api.github.com/repos/palantir/atlasdb/commits/7d27d1bf8ae6931fbae7a130ef33309e0faa7078j Shttps://github.com/palantir/atlasdb/commit/7d27d1bf8ae6931fbae7a130ef33309e0faa7078uastats}(totalK 	additionsK 	deletionsK ufiles]u(a4b0351071c791519f2c71c8bef37b4cb18abcd4}(sha(a4b0351071c791519f2c71c8bef37b4cb18abcd4node_idEC_kwDOAjP5fdoAKGE0YjAzNTEwNzFjNzkxNTE5ZjJjNzFjOGJlZjM3YjRjYjE4YWJjZDQcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-02-27T14:08:52Zu	committer}(j 
svc-changelogj	 svc-changelog@palantir.comj 2023-02-27T14:08:52ZumessageAdd generated changelog entriestree}(j (a4bd5b1a2f483404a2d121b9b7642096f3bd0a52url`https://api.github.com/repos/palantir/atlasdb/git/trees/a4bd5b1a2f483404a2d121b9b7642096f3bd0a52uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a4b0351071c791519f2c71c8bef37b4cb18abcd4
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmP8uXQJEHYaJX37fAFQAAAihAD/YDOkr8bLCYXQKy5I65vrhunS
qZhgcGJr+1yo6fFp4csA/A9YBqR3R/utGniAJgSVlZMQufbhue6UDrYocevOu/o+
=j1tb
-----END PGP SIGNATURE-----payloadX  tree a4bd5b1a2f483404a2d121b9b7642096f3bd0a52
parent 2e052d36ee9ed8a772e6f7639e03e42f95f4d9b7
author svc-changelog <svc-changelog@palantir.com> 1677506932 +0000
committer svc-changelog <svc-changelog@palantir.com> 1677506932 +0000

Add generated changelog entriesuuj ^https://api.github.com/repos/palantir/atlasdb/commits/a4b0351071c791519f2c71c8bef37b4cb18abcd4html_urlShttps://github.com/palantir/atlasdb/commit/a4b0351071c791519f2c71c8bef37b4cb18abcd4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a4b0351071c791519f2c71c8bef37b4cb18abcd4/commentsj }(login
svc-changelogidJ#j MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j *https://api.github.com/users/svc-changelogj%  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj
 }(j* 
svc-changelogj, J#j MDQ6VXNlcjg0MDc3NjAzj. 4https://avatars.githubusercontent.com/u/84077603?v=4j0 h5j *https://api.github.com/users/svc-changelogj%  https://github.com/svc-changelogj3 4https://api.github.com/users/svc-changelog/followersj5 Ahttps://api.github.com/users/svc-changelog/following{/other_user}j7 :https://api.github.com/users/svc-changelog/gists{/gist_id}j9 Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j; 8https://api.github.com/users/svc-changelog/subscriptionsj= /https://api.github.com/users/svc-changelog/orgsj? 0https://api.github.com/users/svc-changelog/reposjA ;https://api.github.com/users/svc-changelog/events{/privacy}jC :https://api.github.com/users/svc-changelog/received_eventsjE UserjG uparents]}(j (2e052d36ee9ed8a772e6f7639e03e42f95f4d9b7j ^https://api.github.com/repos/palantir/atlasdb/commits/2e052d36ee9ed8a772e6f7639e03e42f95f4d9b7j% Shttps://github.com/palantir/atlasdb/commit/2e052d36ee9ed8a772e6f7639e03e42f95f4d9b7uastats}(totalK	additionsK	deletionsK ufiles]}(j (13dfd77db0f46236b04de3278feb263f5f8427cafilename$changelog/@unreleased/pr-6450.v2.ymlstatusaddedja Kjb K changesKblob_url|https://github.com/palantir/atlasdb/blob/a4b0351071c791519f2c71c8bef37b4cb18abcd4/changelog%2F%40unreleased%2Fpr-6450.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/a4b0351071c791519f2c71c8bef37b4cb18abcd4/changelog%2F%40unreleased%2Fpr-6450.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6450.v2.yml?ref=a4b0351071c791519f2c71c8bef37b4cb18abcd4patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Improved NotInitializedException exception message
+  links:
+  - https://github.com/palantir/atlasdb/pull/6450uau(01bb85f66836351aa69dd81b40bc7964e09ebe2a}(sha(01bb85f66836351aa69dd81b40bc7964e09ebe2anode_idEC_kwDOAjP5fdoAKDAxYmI4NWY2NjgzNjM1MWFhNjlkZDgxYjQwYmM3OTY0ZTA5ZWJlMmEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-04T12:30:57Zu	committer}(j~ 
Sam Kramerj skramer@palantir.comj 2023-05-05T12:20:26ZumessageFix up some bugify stufftree}(jv (716e226b5a34094497fd4b556ff0d4607108ad6burl`https://api.github.com/repos/palantir/atlasdb/git/trees/716e226b5a34094497fd4b556ff0d4607108ad6buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/01bb85f66836351aa69dd81b40bc7964e09ebe2a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRU9IoACgkQmPPOpKR4
XS3hbgf/fjJQJapMxZ3ZKm4pGqtJtGaAGpp97GXvg5vOWAVW/sbHOqmPV5qN2bEb
M2AgJuHqH9bxSDqtBz5sj+5tnjaFgatC865eRdj2ToX0ittpAEuwOMyf9EwSRTNi
rJHCLbn3yICnslP4iUsTwY7VcnOGPQGjrz671BSntRBPCRncbOOXYjjzbalJP4mB
PeN1VRGaZU5k93/RX0dOEvo7l77nHf9iplirNtFNV4UMTiNgAxDr3kEip/Os/P2j
4CCEDwG+YQyZ1NER6dehsxu/8psBk8GKGnkch5efXdaSXr211q/0oqDFe2F7Y83w
JBFw94ngzY0alh9AHHNZXMVmSLyNVQ==
=RrCG
-----END PGP SIGNATURE-----payloadtree 716e226b5a34094497fd4b556ff0d4607108ad6b
parent af64557b6dd0cc5c022c8d42978287945b280d9e
author Sam Kramer <skramer@palantir.com> 1683203457 +0100
committer Sam Kramer <skramer@palantir.com> 1683289226 +0100

Fix up some bugify stuff
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/01bb85f66836351aa69dd81b40bc7964e09ebe2ahtml_urlShttps://github.com/palantir/atlasdb/commit/01bb85f66836351aa69dd81b40bc7964e09ebe2acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/01bb85f66836351aa69dd81b40bc7964e09ebe2a/commentsj| }(login
Sam-KrameridJ^2_ jx MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ jx MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jv (af64557b6dd0cc5c022c8d42978287945b280d9ej ^https://api.github.com/repos/palantir/atlasdb/commits/af64557b6dd0cc5c022c8d42978287945b280d9ej Shttps://github.com/palantir/atlasdb/commit/af64557b6dd0cc5c022c8d42978287945b280d9euastats}(totalK	additionsK	deletionsK	ufiles](}(jv (8fce620da2473d4f99412b1eafb18c42c9b4a1d2filenameKatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/Buggify.javastatusmodifiedjإ Kj٥ K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/01bb85f66836351aa69dd81b40bc7964e09ebe2a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaraw_urlhttps://github.com/palantir/atlasdb/raw/01bb85f66836351aa69dd81b40bc7964e09ebe2a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.java?ref=01bb85f66836351aa69dd81b40bc7964e09ebe2apatchX  @@ -22,6 +22,8 @@
  * downstream users of this class can easily swap out their {@link BuggifyFactory} to change the behavior of their
  * class, without having to change the implementation of their class. This is useful for tests, as we can force the
  * behavior of never running the provided runnable, or always running the provided runnable.
+ *
+ * See https://apple.github.io/foundationdb/client-testing.html for more information.
  */
 public interface Buggify {
     /**u}(jv (0ed48b1c56bc0efc8ac5be656900e3c3a38c67fajޥ Ratlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/BuggifyFactory.javaj modifiedjإ Kj٥ Kj Kj https://github.com/palantir/atlasdb/blob/01bb85f66836351aa69dd81b40bc7964e09ebe2a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj https://github.com/palantir/atlasdb/raw/01bb85f66836351aa69dd81b40bc7964e09ebe2a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.java?ref=01bb85f66836351aa69dd81b40bc7964e09ebe2aj X  @@ -18,7 +18,7 @@
 
 public interface BuggifyFactory {
     /**
-     * A Buggify instance that may or may not perform any actions.
+     * The probability of returning a buggify instance which performs actions.
      */
     Buggify maybe(double probability);
 }u}(jv (c3bbf92469d211a6ab5bde05cefaaba784549d49jޥ Zatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactory.javaj modifiedjإ Kj٥ Kj Kj https://github.com/palantir/atlasdb/blob/01bb85f66836351aa69dd81b40bc7964e09ebe2a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj https://github.com/palantir/atlasdb/raw/01bb85f66836351aa69dd81b40bc7964e09ebe2a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.java?ref=01bb85f66836351aa69dd81b40bc7964e09ebe2aj X  @@ -20,17 +20,17 @@
 import com.palantir.atlasdb.buggify.api.Buggify;
 import com.palantir.atlasdb.buggify.api.BuggifyFactory;
 import java.security.SecureRandom;
-import java.util.function.Supplier;
+import java.util.function.DoubleSupplier;
 
 public final class DefaultBuggifyFactory implements BuggifyFactory {
     private static final SecureRandom SECURE_RANDOM = new SecureRandom();
     public static final BuggifyFactory INSTANCE = new DefaultBuggifyFactory();
 
-    private final Supplier<Double> probabilitySupplier;
+    private final DoubleSupplier doubleSupplier;
 
     @VisibleForTesting
-    DefaultBuggifyFactory(Supplier<Double> probabilitySupplier) {
-        this.probabilitySupplier = probabilitySupplier;
+    DefaultBuggifyFactory(DoubleSupplier doubleSupplier) {
+        this.doubleSupplier = doubleSupplier;
     }
 
     private DefaultBuggifyFactory() {
@@ -39,9 +39,9 @@ private DefaultBuggifyFactory() {
 
     @Override
     public Buggify maybe(double probability) {
-        if (probability <= probabilitySupplier.get()) {
-            return NoOpBuggify.INSTANCE;
+        if (doubleSupplier.getAsDouble() < probability) {
+            return DefaultBuggify.INSTANCE;
         }
-        return DefaultBuggify.INSTANCE;
+        return NoOpBuggify.INSTANCE;
     }
 }u}(jv (28a8b18ae59b101e1489b1e086bbac7d63318767jޥ Watlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyTest.javaj modifiedjإ Kj٥ Kj Kj https://github.com/palantir/atlasdb/blob/01bb85f66836351aa69dd81b40bc7964e09ebe2a/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj https://github.com/palantir/atlasdb/raw/01bb85f66836351aa69dd81b40bc7964e09ebe2a/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.java?ref=01bb85f66836351aa69dd81b40bc7964e09ebe2aj X'  @@ -16,9 +16,9 @@
 
 package com.palantir.atlasdb.buggify.impl;
 
+import static org.assertj.core.api.Assertions.assertThat;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.verify;
-import static org.assertj.core.api.Assertions.assertThat;
 
 import org.junit.Test;
 ueu(485aa94327e5580ddf75869edafb5a4d44f8c273}(sha(485aa94327e5580ddf75869edafb5a4d44f8c273node_idEC_kwDOAjP5fdoAKDQ4NWFhOTQzMjdlNTU4MGRkZjc1ODY5ZWRhZmI1YTRkNDRmOGMyNzMcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-04-24T16:49:55Zu	committer}(j
 
svc-changelogj svc-changelog@palantir.comj 2023-04-24T16:49:55ZumessageAdd generated changelog entriestree}(j (d0077dbd8d7221fdd464396218e44f24f1b0bc85url`https://api.github.com/repos/palantir/atlasdb/git/trees/d0077dbd8d7221fdd464396218e44f24f1b0bc85uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/485aa94327e5580ddf75869edafb5a4d44f8c273
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmRGszMJEHYaJX37fAFQAAC4YAEAo7IHSuzPYQ8wqamtIpogTjUh
bzl7Olmrz82bC0LP2eMBAMZRKA9g0HIBacxS8SEz2a8F5qXtoCXSbhvMjgSbsSTE
=oqyW
-----END PGP SIGNATURE-----payloadX  tree d0077dbd8d7221fdd464396218e44f24f1b0bc85
parent c05f5e76648b4076bac35f7b1c121d5dbc0251a6
author svc-changelog <svc-changelog@palantir.com> 1682354995 +0000
committer svc-changelog <svc-changelog@palantir.com> 1682354995 +0000

Add generated changelog entriesuuj ^https://api.github.com/repos/palantir/atlasdb/commits/485aa94327e5580ddf75869edafb5a4d44f8c273html_urlShttps://github.com/palantir/atlasdb/commit/485aa94327e5580ddf75869edafb5a4d44f8c273comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/485aa94327e5580ddf75869edafb5a4d44f8c273/commentsj }(login
svc-changelogidJ#j MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j *https://api.github.com/users/svc-changelogj+  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj }(j0 
svc-changelogj2 J#j MDQ6VXNlcjg0MDc3NjAzj4 4https://avatars.githubusercontent.com/u/84077603?v=4j6 h5j *https://api.github.com/users/svc-changelogj+  https://github.com/svc-changelogj9 4https://api.github.com/users/svc-changelog/followers     j; Ahttps://api.github.com/users/svc-changelog/following{/other_user}j= :https://api.github.com/users/svc-changelog/gists{/gist_id}j? Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jA 8https://api.github.com/users/svc-changelog/subscriptionsjC /https://api.github.com/users/svc-changelog/orgsjE 0https://api.github.com/users/svc-changelog/reposjG ;https://api.github.com/users/svc-changelog/events{/privacy}jI :https://api.github.com/users/svc-changelog/received_eventsjK UserjM uparents]}(j (c05f5e76648b4076bac35f7b1c121d5dbc0251a6j ^https://api.github.com/repos/palantir/atlasdb/commits/c05f5e76648b4076bac35f7b1c121d5dbc0251a6j+ Shttps://github.com/palantir/atlasdb/commit/c05f5e76648b4076bac35f7b1c121d5dbc0251a6uastats}(totalK	additionsK	deletionsK ufiles]}(j (9bdb41d8ffed33be231b3497c550f32137ae4e87filename$changelog/@unreleased/pr-6540.v2.ymlstatusaddedjg Kjh K changesKblob_url|https://github.com/palantir/atlasdb/blob/485aa94327e5580ddf75869edafb5a4d44f8c273/changelog%2F%40unreleased%2Fpr-6540.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/485aa94327e5580ddf75869edafb5a4d44f8c273/changelog%2F%40unreleased%2Fpr-6540.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6540.v2.yml?ref=485aa94327e5580ddf75869edafb5a4d44f8c273patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[CBT] Run build with 2xlarge'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6540uau(abff28a62c23ef6ec2eee1d25af0881c29b30105}(sha(abff28a62c23ef6ec2eee1d25af0881c29b30105node_idEC_kwDOAjP5fdoAKGFiZmYyOGE2MmMyM2VmNmVjMmVlZTFkMjVhZjA4ODFjMjliMzAxMDUcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-12T09:17:56Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-06-13T22:47:01Zumessage&Remove immutables annotation processortree}(j| (2bd64830a0d7ff9c432d39e02f99eb8679c55e53url`https://api.github.com/repos/palantir/atlasdb/git/trees/2bd64830a0d7ff9c432d39e02f99eb8679c55e53uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/abff28a62c23ef6ec2eee1d25af0881c29b30105
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSI8eUACgkQmF9s0kaF
Iw3SwQf/VfnGrX5ecZdBjhT6wZICitJa3wLtL88//tVmMfYx+J+BDaj/23WJoNq4
IEQI+yU0xGM4Az//JV0hnFQxBHttW4HCyt9+hTvfFDNiNjiOv9tKjexCAXhorGww
5SJDI3bmY16Xy5TBCeA+qdfayabWgSCAn146bdkVnEZu18Yv0smf3W3VbvMsUOKl
tWeUf5VN4FZIrIaWmXyvbpoJUXKsYflFf94dwVPLSazYvpxXqvqmk+mc8VFbwO2Q
jlaMkmPR1R+Zusl6MDZOZKpmwks0hRuxIz+Z8i+P8jmk6v2Lnz4UKLBlh7CeGcNQ
Ep9AmzfyzgLixgo7qrfCVuBMmUO9cw==
=3eUo
-----END PGP SIGNATURE-----payloadtree 2bd64830a0d7ff9c432d39e02f99eb8679c55e53
parent b52155b35081aa0f3728bba53f39b7c001b98d3c
author Tom Papke <tpapke@palantir.com> 1686561476 +0100
committer Tom Papke <tpapke@palantir.com> 1686696421 +0100

Remove immutables annotation processor
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/abff28a62c23ef6ec2eee1d25af0881c29b30105html_urlShttps://github.com/palantir/atlasdb/commit/abff28a62c23ef6ec2eee1d25af0881c29b30105comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/abff28a62c23ef6ec2eee1d25af0881c29b30105/commentsj }(login	ToemmscheidJboj~ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jboj~ MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj¦ UserjĦ uparents]}(j| (b52155b35081aa0f3728bba53f39b7c001b98d3cj ^https://api.github.com/repos/palantir/atlasdb/commits/b52155b35081aa0f3728bba53f39b7c001b98d3cj Shttps://github.com/palantir/atlasdb/commit/b52155b35081aa0f3728bba53f39b7c001b98d3cuastats}(totalK	additionsK 	deletionsKufiles]}(j| (b0c276e2a4537ebf76ff4e9d3fe6ab045950cb60filenamelock-benchmark/build.gradlestatusmodifiedjަ K jߦ KchangesKblob_urlohttps://github.com/palantir/atlasdb/blob/abff28a62c23ef6ec2eee1d25af0881c29b30105/lock-benchmark%2Fbuild.gradleraw_urlnhttps://github.com/palantir/atlasdb/raw/abff28a62c23ef6ec2eee1d25af0881c29b30105/lock-benchmark%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-benchmark%2Fbuild.gradle?ref=abff28a62c23ef6ec2eee1d25af0881c29b30105patchX=  @@ -5,7 +5,6 @@ dependencies {
     jmhImplementation project(path: ':lock-impl')
     jmhImplementation project(path: ':lock-api')
 
-    jmhAnnotationProcessor 'org.immutables:value'
     jmhAnnotationProcessor 'org.openjdk.jmh:jmh-generator-annprocess'
 
     compileOnly 'org.openjdk.jmh:jmh-generator-annprocess'uau(cdb8b19f33e296445fe012646583f0ee77e9938e}(sha(cdb8b19f33e296445fe012646583f0ee77e9938enode_idEC_kwDOAjP5fdoAKGNkYjhiMTlmMzNlMjk2NDQ1ZmUwMTI2NDY1ODNmMGVlNzdlOTkzOGUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-28T16:30:49Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-04-28T16:30:49Zumessageadd current pool size metrictree}(j (f7a66049d311afacb5e2df5d899bb5419af76d88url`https://api.github.com/repos/palantir/atlasdb/git/trees/f7a66049d311afacb5e2df5d899bb5419af76d88uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cdb8b19f33e296445fe012646583f0ee77e9938e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRL9LoACgkQmPPOpKR4
XS1HXAgAy67Q4pT8U1nFtnAUFMw6Im1/ZSMtyr5j5uSsyJCYPfBMR/mHG1Ikg8NX
M6lGPhG3EEm6iQ0rhvrKK4QunP2t791RvYzRhNA+0hFk7hSYqKisd11Lx2eOaMJk
Zc6e9UQHb53Aq0FlbbsRWKSROdYSuqW1YzUw32xmvC5BPNYFkTO3lvu0dnmxPcs+
aCTCUmRMBOG4kJJFUNA6eIx48NYpheEWSPuzY4oDPY46GJZ54CQE6EbSeJ7nzWln
ywmyQ0MBvg1ys0lfgM0MExByqXKU6rdMjH3qP5HLSgXcBh31dVib3Oq+T5z6RBh7
jP+JY24WnzOm9lrjjyCqw67r/Ugknw==
=IA67
-----END PGP SIGNATURE-----payloadtree f7a66049d311afacb5e2df5d899bb5419af76d88
parent cc9bb4733ea5afc3e467218602986b3314468167
author Sam Kramer <skramer@palantir.com> 1682699449 +0100
committer Sam Kramer <skramer@palantir.com> 1682699449 +0100

add current pool size metric
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/cdb8b19f33e296445fe012646583f0ee77e9938ehtml_urlShttps://github.com/palantir/atlasdb/commit/cdb8b19f33e296445fe012646583f0ee77e9938ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cdb8b19f33e296445fe012646583f0ee77e9938e/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj  J^2_ j MDQ6VXNlcjYyMzg4MTQ=j" 3https://avatars.githubusercontent.com/u/6238814?v=4j$ h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj' 1https://api.github.com/users/Sam-Kramer/followersj) >https://api.github.com/users/Sam-Kramer/following{/other_user}j+ 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j- >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j/ 5https://api.github.com/users/Sam-Kramer/subscriptionsj1 ,https://api.github.com/users/Sam-Kramer/orgsj3 -https://api.github.com/users/Sam-Kramer/reposj5 8https://api.github.com/users/Sam-Kramer/events{/privacy}j7 7https://api.github.com/users/Sam-Kramer/received_eventsj9 Userj; uparents]}(j (cc9bb4733ea5afc3e467218602986b3314468167j ^https://api.github.com/repos/palantir/atlasdb/commits/cc9bb4733ea5afc3e467218602986b3314468167j Shttps://github.com/palantir/atlasdb/commit/cc9bb4733ea5afc3e467218602986b3314468167uastats}(totalK:	additionsK5	deletionsKufiles](}(j (801d31396924272e7cafa8be30060f0f5a7e9f70filenamedatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javastatusmodifiedjU KjV KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/cdb8b19f33e296445fe012646583f0ee77e9938e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/cdb8b19f33e296445fe012646583f0ee77e9938e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=cdb8b19f33e296445fe012646583f0ee77e9938epatchXX  @@ -361,12 +361,14 @@ void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> des
             cassandra.refreshTokenRangesAndGetServers();
         }
 
+        metrics.recordPoolSize(getCurrentPools().size());
+
         Preconditions.checkState(
                 !getCurrentPools().isEmpty() || serversToAdd.isEmpty(),
                 "No servers were successfully added to the pool. This means we could not come to a consensus on"
-                    + " cluster topology, and the client cannot connect as there are no valid hosts. This state should"
-                    + " be transient (<5 minutes), and if it is not, indicates that the user may have accidentally"
-                    + " configured AltasDB to use two separate Cassandra clusters (i.e., user-led split brain).",
+                        + " cluster topology, and the client cannot connect as there are no valid hosts. This state should"
+                        + " be transient (<5 minutes), and if it is not, indicates that the user may have accidentally"
+                        + " configured AltasDB to use two separate Cassandra clusters (i.e., user-led split brain).",
                 SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())));
 
         logRefreshedHosts(validatedServersToAdd, serversToShutdown, absentServers);u}(j (4d583484e99e4cc63642e62a005732ba4ca0d5d9j[ latlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetrics.javaj] modifiedjU KjV K j_ Kj` https://github.com/palantir/atlasdb/blob/cdb8b19f33e296445fe012646583f0ee77e9938e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javajb https://github.com/palantir/atlasdb/raw/cdb8b19f33e296445fe012646583f0ee77e9938e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.java?ref=cdb8b19f33e296445fe012646583f0ee77e9938ejf X	  @@ -18,6 +18,7 @@
 import com.codahale.metrics.Counter;
 import com.codahale.metrics.Gauge;
 import com.codahale.metrics.Meter;
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableMap;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer;
@@ -26,10 +27,13 @@
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.Map;
+import java.util.concurrent.atomic.AtomicLong;
 import java.util.function.Consumer;
 import java.util.function.Supplier;
 
 public class CassandraClientPoolMetrics {
+
+    public static final String POOL_SIZE_METRIC_NAME = "pool-size";
     private final MetricsManager metricsManager;
     private final RequestMetrics aggregateRequestMetrics;
     private final Map<CassandraServer, RequestMetrics> metricsByHost = new HashMap<>();
@@ -39,12 +43,15 @@ public class CassandraClientPoolMetrics {
     // Not bundled in with request metrics, as we seek to not produce host-level metrics for economic reasons.
     private final Counter poolExhaustionCounter;
 
+    private final AtomicLong poolSize = new AtomicLong(0L);
+
     public CassandraClientPoolMetrics(MetricsManager metricsManager) {
         this.metricsManager = metricsManager;
         this.aggregateRequestMetrics = new RequestMetrics(metricsManager);
         this.poolExhaustionCounter =
                 metricsManager.registerOrGetCounter(CassandraClientPoolMetrics.class, "pool-exhaustion");
         this.outlierControllers = createOutlierControllers(metricsManager);
+        metricsManager.registerMetric(CassandraClientPoolMetrics.class, POOL_SIZE_METRIC_NAME, poolSize::get);
     }
 
     private static Map<CassandraClientPoolHostLevelMetric, DistributionOutlierController> createOutlierControllers(
@@ -93,6 +100,15 @@ public void recordPoolExhaustion() {
         poolExhaustionCounter.inc();
     }
 
+    public void recordPoolSize(long desiredPoolSize) {
+        poolSize.set(desiredPoolSize);
+    }
+
+    @VisibleForTesting
+    Long getPoolSize() {
+        return poolSize.get();
+    }
+
     @SuppressWarnings("unchecked") // Guaranteed to have the correct type
     public void registerPoolMetric(CassandraClientPoolHostLevelMetric metric, Gauge<Long> gauge, int poolNumber) {
         MetricPublicationFilter filter = outlierControllers.get(metric).registerAndCreateFilter(gauge);u}(j (0018cc3f41f93c005b4fbadee9f0f569b180a38cj[ datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolTest.javaj] modifiedjU KjV Kj_ Kj` https://github.com/palantir/atlasdb/blob/cdb8b19f33e296445fe012646583f0ee77e9938e/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javajb https://github.com/palantir/atlasdb/raw/cdb8b19f33e296445fe012646583f0ee77e9938e/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.java?ref=cdb8b19f33e296445fe012646583f0ee77e9938ejf X&  @@ -35,6 +35,7 @@
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs;
 import com.palantir.atlasdb.cassandra.ImmutableDefaultConfig;
+import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraClientPoolMetrics;
 import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
 import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService;
 import com.palantir.atlasdb.util.MetricsManagers;
@@ -224,7 +225,7 @@ private void runTwoNoopsOnTwoHostsAndThrowFromSecondRunOnFirstHost(Exception exc
     }
 
     private CassandraServer getServerForIndex(int index) {
-        return CassandraServer.of(InetSocketAddress.createUnresolved(Integer.toString(index), index));
+        return CassandraServer.of(InetSocketAddress.createUnresolved(Integer.toString(index), 8000));
     }
 
     @Test
@@ -310,6 +311,7 @@ public void hostIsAutomaticallyRemovedOnStartup() {
 
         createClientPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1);
+        assertPoolSizeMetricIsEqualTo(1);
     }
 
     @Test
@@ -321,10 +323,12 @@ public void hostIsAutomaticallyRemovedOnRefresh() {
 
         createClientPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2, CASS_SERVER_3);
+        assertPoolSizeMetricIsEqualTo(3);
 
         setCassandraServersTo(CASS_SERVER_1, CASS_SERVER_2);
         refreshPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2);
+        assertPoolSizeMetricIsEqualTo(2);
     }
 
     @Test
@@ -495,7 +499,7 @@ private void setCassandraServersTo(CassandraServer... servers) {
 
     private CassandraClientPoolImpl createClientPool() {
         return CassandraClientPoolImpl.createImplForTest(
-                MetricsManagers.createForTests(),
+                MetricsManagers.of(metricRegistry, taggedMetricRegistry),
                 config,
                 refreshableRuntimeConfig,
                 CassandraClientPoolImpl.StartupChecks.DO_NOT_RUN,
@@ -687,4 +691,16 @@ private void setupHostsWithInconsistentTopology(CassandraServer... cassandraServ
     private void refreshPool() {
         deterministicExecutor.tick(POOL_REFRESH_INTERVAL_SECONDS, TimeUnit.SECONDS);
     }
+
+    private void assertPoolSizeMetricIsEqualTo(long expected) {
+        assertThat(taggedMetricRegistry
+                        .<Long>gauge(MetricName.builder()
+                                .safeName(MetricRegistry.name(
+                                        CassandraClientPoolMetrics.class,
+                                        CassandraClientPoolMetrics.POOL_SIZE_METRIC_NAME))
+                                .build())
+                        .get()
+                        .getValue())
+                .isEqualTo(expected);
+    }
 }u}(j (bc3e5261d087a84993ba8ae1e523c8b05fc4c179j[ patlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetricsTest.javaj] modifiedjU KjV K j_ Kj` https://github.com/palantir/atlasdb/blob/cdb8b19f33e296445fe012646583f0ee77e9938e/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javajb https://github.com/palantir/atlasdb/raw/cdb8b19f33e296445fe012646583f0ee77e9938e/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.java?ref=cdb8b19f33e296445fe012646583f0ee77e9938ejf X  @@ -33,6 +33,8 @@ public class CassandraClientPoolMetricsTest {
     private final MetricsManager metricsManager =
             MetricsManagers.of(new MetricRegistry(), new DefaultTaggedMetricRegistry(), Refreshable.only(true));
 
+    private final CassandraClientPoolMetrics metrics = new CassandraClientPoolMetrics(metricsManager);
+
     @Test
     public void metricsAreProducedAndFiltered() {
         CassandraClientPoolMetrics metrics = new CassandraClientPoolMetrics(metricsManager);
@@ -57,6 +59,18 @@ public void metricsAreProducedAndFiltered() {
                 .containsKey(createMeanActiveTimeMillisMetric("mean"));
     }
 
+    @Test
+    public void recordPoolSizeSetsSizeToLastReportedValue() {
+        metrics.recordPoolSize(100);
+        assertThat(metrics.getPoolSize()).isEqualTo(100);
+        metrics.recordPoolSize(-13);
+        assertThat(metrics.getPoolSize()).isEqualTo(-13);
+        metrics.recordPoolSize(25);
+        assertThat(metrics.getPoolSize()).isEqualTo(25);
+        metrics.recordPoolSize(0);
+        assertThat(metrics.getPoolSize()).isEqualTo(0);
+    }
+
     private static MetricName createMeanActiveTimeMillisMetric(String pool) {
         return MetricName.builder()
                 .safeName(MetricRegistry.name(ueu(a88bd3e8db0ab427b8afa515f6b19167c9a6d0cf}(sha(a88bd3e8db0ab427b8afa515f6b19167c9a6d0cfnode_idEC_kwDOAjP5fdoAKGE4OGJkM2U4ZGIwYWI0MjdiOGFmYTUxNWY2YjE5MTY3YzlhNmQwY2Ycommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-08-08T11:12:06Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-08-08T11:12:06Zumessage3Sprinkle metadata into random test
Address commentstree}(j (7bc6489b7c6f35c4b095e54383f504ce5789f935url`https://api.github.com/repos/palantir/atlasdb/git/trees/7bc6489b7c6f35c4b095e54383f504ce5789f935uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a88bd3e8db0ab427b8afa515f6b19167c9a6d0cf
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTSIwYACgkQmF9s0kaF
Iw2cxAgAgJulRxU523MW5IMOyVVi7SiZi28zVG0DlEdDSlDylB8R0Jb6OrQvpzWx
FpvpYOIZa3hgH6+bq1o8qFkGH0XsnSGFy6ZO9bRoISHB9hbCvukh+zW8xMIBe5l8
xZ6RhYBlb5J1t8VzjhtQzZ95t8HPhFSux9VMF1xvVPOxE/1owh94Aodnc3UWPaC1
MhovOiNoem6gMKdTcMBfIaXHbeSwxvZZjxCrUtUrwjjXUHroAI8DDEeimkjMncD5
HX0KO7z62+vPJMM27CRYO5y/bucvmMoMx0+cM0wU2NGfuGjqsImATrT31fJh3fX7
kfOU339A5PeCNHeiyntQ5fTcNoct1g==
=5Cp1
-----END PGP SIGNATURE-----payloadX  tree 7bc6489b7c6f35c4b095e54383f504ce5789f935
parent 9a836cf935bb0af10bb1d149cd9073d2a50c5343
author Tom Papke <tpapke@palantir.com> 1691493126 +0100
committer Tom Papke <tpapke@palantir.com> 1691493126 +0100

Sprinkle metadata into random test
Address comments
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/a88bd3e8db0ab427b8afa515f6b19167c9a6d0cfhtml_urlShttps://github.com/palantir/atlasdb/commit/a88bd3e8db0ab427b8afa515f6b19167c9a6d0cfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a88bd3e8db0ab427b8afa515f6b19167c9a6d0cf/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jboj MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj§ ,https://api.github.com/users/Toemmsche/reposjħ 7https://api.github.com/users/Toemmsche/events{/privacy}jƧ 6https://api.github.com/users/Toemmsche/received_eventsjȧ Userjʧ uparents]}(j (9a836cf935bb0af10bb1d149cd9073d2a50c5343j ^https://api.github.com/repos/palantir/atlasdb/commits/9a836cf935bb0af10bb1d149cd9073d2a50c5343j Shttps://github.com/palantir/atlasdb/commit/9a836cf935bb0af10bb1d149cd9073d2a50c5343uastats}(totalKь	additionsK	deletionsK(ufiles](}(j (badcd6a3588deceb0240cd32c443338ef3851cddfilenameaatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/LocalWriteBufferTest.javastatusmodifiedj K1j KchangesK7blob_urlhttps://github.com/palantir/atlasdb/blob/a88bd3e8db0ab427b8afa515f6b19167c9a6d0cf/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a88bd3e8db0ab427b8afa515f6b19167c9a6d0cf/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.java?ref=a88bd3e8db0ab427b8afa515f6b19167c9a6d0cfpatchX  @@ -30,6 +30,7 @@
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.keyvalue.impl.Cells;
 import com.palantir.atlasdb.logging.LoggingArgs;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.lock.watch.ChangeMetadata;
@@ -51,7 +52,7 @@
 
 public class LocalWriteBufferTest {
     private static final TableReference TABLE = TableReference.create(Namespace.DEFAULT_NAMESPACE, "test-table");
-    private static final TableReference TABLE2 = TableReference.create(Namespace.DEFAULT_NAMESPACE, "test-table2");
+    private static final TableReference TABLE_2 = TableReference.create(Namespace.DEFAULT_NAMESPACE, "test-table2");
     private static final Cell CELL_1 = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("col1"));
     private static final Cell CELL_2 = Cell.create(PtBytes.toBytes("row2"), PtBytes.toBytes("col2"));
     private static final byte[] VALUE_1 = PtBytes.toBytes(1L);
@@ -118,21 +119,23 @@ public void writingWithoutMetadataRemovesMetadata() {
     public void canStoreValuesAndMetadataForMultipleCellsAndTables() {
         buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of(CELL_1, METADATA_1));
         buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_2, VALUE_2), ImmutableMap.of(CELL_2, METADATA_2));
-        buffer.putLocalWritesAndMetadata(TABLE2, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of(CELL_1, METADATA_1));
-        buffer.putLocalWritesAndMetadata(TABLE2, ImmutableMap.of(CELL_2, VALUE_2), ImmutableMap.of(CELL_2, METADATA_2));
+        buffer.putLocalWritesAndMetadata(
+                TABLE_2, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of(CELL_1, METADATA_1));
+        buffer.putLocalWritesAndMetadata(
+                TABLE_2, ImmutableMap.of(CELL_2, VALUE_2), ImmutableMap.of(CELL_2, METADATA_2));
 
         assertThat(buffer.getLocalWritesForTable(TABLE))
                 .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(CELL_1, VALUE_1, CELL_2, VALUE_2));
-        assertThat(buffer.getLocalWritesForTable(TABLE2))
+        assertThat(buffer.getLocalWritesForTable(TABLE_2))
                 .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(CELL_1, VALUE_1, CELL_2, VALUE_2));
         assertThat(buffer.getChangeMetadataForTable(TABLE))
                 .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(CELL_1, METADATA_1, CELL_2, METADATA_2));
-        assertThat(buffer.getChangeMetadataForTable(TABLE2))
+        assertThat(buffer.getChangeMetadataForTable(TABLE_2))
                 .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(CELL_1, METADATA_1, CELL_2, METADATA_2));
     }
 
     @Test
-    public void cannotPutMetadataWithoutAssociatedWrite() {
+    public void cannotPutMetadataWithoutAnyWrite() {
         assertThatLoggableExceptionThrownBy(() ->
                         buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(), ImmutableMap.of(CELL_1, METADATA_1)))
                 .isInstanceOf(SafeIllegalStateException.class)
@@ -141,6 +144,16 @@ public void cannotPutMetadataWithoutAssociatedWrite() {
                         LoggingArgs.tableRef(TABLE), UnsafeArg.of("cellsWithOnlyMetadata", ImmutableSet.of(CELL_1)));
     }
 
+    @Test
+    public void cannotPutMetadataWithoutAssociatedWrite() {
+        assertThatLoggableExceptionThrownBy(() -> buffer.putLocalWritesAndMetadata(
+                        TABLE, ImmutableMap.of(CELL_2, VALUE_1), ImmutableMap.of(CELL_1, METADATA_1)))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasLogMessage("Every metadata we put must be associated with a write")
+                .hasExactlyArgs(
+                        LoggingArgs.tableRef(TABLE), UnsafeArg.of("cellsWithOnlyMetadata", ImmutableSet.of(CELL_1)));
+    }
+
     /**
      * This test would fail for a previous synchronization model for {@link LocalWriteBuffer#putLocalWritesAndMetadata},
      * where we used {@link ConcurrentSkipListMap#compute} in the following way:
@@ -216,4 +229,34 @@ public void writingValueAndMetadataIsAtomicWhenOverwritingWithSameValue()
                     .isTrue();
         }
     }
+
+    @Test
+    public void valueByteCountIsUpdatedCorrectlyWhenOverWritingValue() {
+        buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of());
+        assertThat(buffer.getByteCount()).isEqualTo(Cells.getApproxSizeOfCell(CELL_1) + VALUE_1.length);
+
+        byte[] otherValue = PtBytes.toBytes("some long string");
+        buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, otherValue), ImmutableMap.of());
+        assertThat(buffer.getByteCount()).isEqualTo(Cells.getApproxSizeOfCell(CELL_1) + otherValue.length);
+    }
+
+    @Test
+    public void valueByteCountIsUpdatedCorrectlyWhenDeletingValue() {
+        buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of());
+        assertThat(buffer.getByteCount()).isEqualTo(Cells.getApproxSizeOfCell(CELL_1) + VALUE_1.length);
+
+        buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, new byte[0]), ImmutableMap.of());
+        assertThat(buffer.getByteCount()).isEqualTo(Cells.getApproxSizeOfCell(CELL_1));
+    }
+
+    @Test
+    public void valueByteCountIsMaintainedAcrossMultipleTables() {
+        buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of());
+        buffer.putLocalWritesAndMetadata(TABLE_2, ImmutableMap.of(CELL_2, VALUE_2), ImmutableMap.of());
+        assertThat(buffer.getByteCount())
+                .isEqualTo(Cells.getApproxSizeOfCell(CELL_1)
+                        + VALUE_1.length
+                        + Cells.getApproxSizeOfCell(CELL_2)
+                        + VALUE_2.length);
+    }
 }u}(j (79b32b2e9e04797d67f325501e76473a64d503e5j eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj modifiedj Kxj K"j Kj https://github.com/palantir/atlasdb/blob/a88bd3e8db0ab427b8afa515f6b19167c9a6d0cf/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://github.com/palantir/atlasdb/raw/a88bd3e8db0ab427b8afa515f6b19167c9a6d0cf/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=a88bd3e8db0ab427b8afa515f6b19167c9a6d0cfj X,  @@ -2678,47 +2678,44 @@ public void noMetadataResultsInEmptyOptional() {
     @Test
     public void lockCollectionWithoutMetadataIsCorrectForRandomWrites() {
         long randomSeed = System.currentTimeMillis();
-        int numTables = 10;
-        int numCellsPerTable = 100;
-        int totalWrites = 200;
+        int numberOfTables = ConflictHandler.values().length;
+        int numberOfRowsPerTable = 10;
+        int numberOfCellsPerRow = 10;
+        int maxWritesPerCell = 200;
 
         Random random = new Random(randomSeed);
-
-        List<ConflictHandler> availableConflictHandlers = Arrays.asList(ConflictHandler.values());
-        List<TableReference> tables = IntStream.range(0, numTables)
-                .mapToObj(i -> {
-                    TableReference tableRef = TableReference.create(Namespace.create("random_test"), "table" + i);
-                    keyValueService.createTable(tableRef, AtlasDbConstants.GENERIC_TABLE_METADATA);
-                    return tableRef;
+        Namespace namespace = Namespace.create("random_test");
+        Map<TableReference, Optional<ConflictHandler>> tableToConflictHandler = KeyedStream.of(
+                        IntStream.range(0, numberOfTables).boxed())
+                .mapKeys(i -> {
+                    TableReference tableReference = TableReference.create(
+                            namespace, String.format("table_%d_%s", i, ConflictHandler.values()[i].name()));
+                    keyValueService.createTable(tableReference, AtlasDbConstants.GENERIC_TABLE_METADATA);
+                    return tableReference;
                 })
-                .collect(Collectors.toUnmodifiableList());
-        Map<TableReference, Optional<ConflictHandler>> tableToConflictHandler = KeyedStream.of(tables.stream())
-                .map(tableRef ->
-                        Optional.of(availableConflictHandlers.get(random.nextInt(availableConflictHandlers.size()))))
+                .map(i -> Optional.of(ConflictHandler.values()[i]))
                 .collectToMap();
-        // Ensure that some rows have more than one cell
-        List<Cell> cells = IntStream.range(0, numCellsPerTable)
-                .mapToObj(i -> Cell.create(PtBytes.toBytes("row" + (i % 3)), PtBytes.toBytes("column" + i)))
+        List<TableReference> tables = ImmutableList.copyOf(tableToConflictHandler.keySet());
+        TimelockService timelockService = spy(txManager.getTimelockService());
+        List<Cell> cells = IntStream.range(0, numberOfRowsPerTable * numberOfCellsPerRow)
+                .mapToObj(i ->
+                        Cell.create(PtBytes.toBytes("row" + (i % numberOfCellsPerRow)), PtBytes.toBytes("column" + i)))
                 .collect(Collectors.toUnmodifiableList());
 
-        TimelockService timelockService = spy(txManager.getTimelockService());
         Transaction txn = getSnapshotTransactionWith(timelockService, tableToConflictHandler);
 
         Map<TableReference, Set<Cell>> cellsWithWrites = new HashMap<>();
-        IntStream.range(0, totalWrites).forEach(_unused -> {
-            TableReference table = tables.get(random.nextInt(tables.size()));
-            Cell cell = cells.get(random.nextInt(cells.size()));
-            if (random.nextBoolean()) {
-                txn.put(table, ImmutableMap.of(cell, TEST_VALUE));
-            } else {
-                txn.delete(table, ImmutableSet.of(cell));
-            }
-            cellsWithWrites.computeIfAbsent(table, _ignored -> new HashSet<>()).add(cell);
-        });
+        Map<TableReference, Map<Cell, ChangeMetadata>> cellsWithMetadata = new HashMap<>();
+
+        IntStream.range(0, maxWritesPerCell)
+                .forEach(_unused -> applyRandomWriteMaybeWithMetadata(
+                        random, txn, tables, tableToConflictHandler, cells, cellsWithWrites, cellsWithMetadata));
 
-        Set<LockDescriptor> expectedLocks = getExpectedLocks(tableToConflictHandler, cellsWithWrites);
         verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
-                txn, timelockService, LocksAndMetadata.of(expectedLocks, Optional.empty()));
+                txn,
+                timelockService,
+                getExpectedLocksAndMetadata(tableToConflictHandler, cellsWithWrites, cellsWithMetadata),
+                "Expect locks and metadata to be passed to TimeLock. Random seed: " + randomSeed);
     }
 
     @Test
@@ -3025,30 +3022,45 @@ public void cleanup() {
 
     private static void verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
             Transaction txn, TimelockService spiedTimelockService, LocksAndMetadata locksAndMetadata) {
+        verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
+                txn, spiedTimelockService, locksAndMetadata, "Expect locks and metadata to be passed to TimeLock");
+    }
+
+    private static void verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
+            Transaction txn,
+            TimelockService spiedTimelockService,
+            LocksAndMetadata locksAndMetadata,
+            String assertionMessage) {
         txn.commit();
+
         verify(spiedTimelockService)
                 .lock(
                         argThat(lockRequest -> {
                             // We always acquire a lock on the transaction table, whose suffix depends on the start
                             // timestamp
                             assertThat(lockRequest.getLockDescriptors())
+                                    .as(assertionMessage)
                                     .containsAll(locksAndMetadata.lockDescriptors());
                             assertThat(lockRequest.getLockDescriptors()).allSatisfy(lock -> {
                                 if (!lock.getLockIdAsString()
                                         .startsWith(TransactionConstants.TRANSACTION_TABLE.getQualifiedName())) {
                                     assertThat(locksAndMetadata.lockDescriptors())
+                                            .as(assertionMessage)
                                             .contains(lock);
                                 }
                             });
-                            assertThat(lockRequest.getMetadata()).isEqualTo(locksAndMetadata.metadata());
+                            assertThat(lockRequest.getMetadata())
+                                    .as(assertionMessage)
+                                    .isEqualTo(locksAndMetadata.metadata());
                             return true;
                         }),
                         any());
     }
 
-    private static Set<LockDescriptor> getExpectedLocks(
+    private static LocksAndMetadata getExpectedLocksAndMetadata(
             Map<TableReference, Optional<ConflictHandler>> tableToConflictHandler,
-            Map<TableReference, Set<Cell>> cellsWithWrites) {
+            Map<TableReference, Set<Cell>> cellsWithWrites,
+            Map<TableReference, Map<Cell, ChangeMetadata>> cellsWithMetadata) {
         ImmutableSet.Builder<LockDescriptor> locksBuilder = ImmutableSet.builder();
         cellsWithWrites.forEach((table, writes) -> {
             ConflictHandler conflictHandler = tableToConflictHandler.get(table).orElseThrow();
@@ -3062,7 +3074,81 @@ private static Set<LockDescriptor> getExpectedLocks(
                 }
             });
         });
-        return locksBuilder.build();
+        ImmutableMap.Builder<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadataBuilder =
+                ImmutableMap.builder();
+        cellsWithMetadata.forEach((table, metadataMap) -> {
+            ConflictHandler conflictHandler = tableToConflictHandler.get(table).orElseThrow();
+            metadataMap.forEach((cell, metadata) -> {
+                if (conflictHandler.lockCellsForConflicts()) {
+                    lockDescriptorToChangeMetadataBuilder.put(
+                            AtlasCellLockDescriptor.of(
+                                    table.getQualifiedName(), cell.getRowName(), cell.getColumnName()),
+                            metadata);
+                }
+                if (conflictHandler.lockRowsForConflicts()) {
+                    lockDescriptorToChangeMetadataBuilder.put(
+                            AtlasRowLockDescriptor.of(table.getQualifiedName(), cell.getRowName()), metadata);
+                }
+            });
+        });
+        Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata =
+                lockDescriptorToChangeMetadataBuilder.buildOrThrow();
+        return LocksAndMetadata.of(
+                locksBuilder.build(),
+                lockDescriptorToChangeMetadata.isEmpty()
+                        ? Optional.empty()
+                        : Optional.of(LockRequestMetadata.of(lockDescriptorToChangeMetadata)));
+    }
+
+    private static void applyRandomWriteMaybeWithMetadata(
+            Random random,
+            Transaction txn,
+            List<TableReference> tables,
+            Map<TableReference, Optional<ConflictHandler>> tableToConflictHandler,
+            List<Cell> cells,
+            Map<TableReference, Set<Cell>> cellsWithWrites,
+            Map<TableReference, Map<Cell, ChangeMetadata>> cellsWithMetadata) {
+        TableReference table = tables.get(random.nextInt(tables.size()));
+        Cell cell = cells.get(random.nextInt(cells.size()));
+
+        boolean canWriteMetadata =
+                !(tableToConflictHandler.get(table).orElseThrow().lockRowsForConflicts()
+                        && cellsWithMetadata.getOrDefault(table, ImmutableMap.of()).keySet().stream()
+                        .anyMatch(c -> Arrays.equals(c.getRowName(), cell.getRowName())));
+        // With metadata or not?
+        if (canWriteMetadata && random.nextBoolean()) {
+            ChangeMetadata metadata = createRandomMetadata(random);
+            if (random.nextBoolean()) {
+                txn.putWithMetadata(table, ImmutableMap.of(cell, ValueAndChangeMetadata.of(TEST_VALUE, metadata)));
+            } else {
+                txn.deleteWithMetadata(table, ImmutableMap.of(cell, metadata));
+            }
+            cellsWithWrites.computeIfAbsent(table, ignored -> new HashSet<>()).add(cell);
+            cellsWithMetadata.computeIfAbsent(table, ignored -> new HashMap<>()).put(cell, metadata);
+        } else {
+            if (random.nextBoolean()) {
+                txn.put(table, ImmutableMap.of(cell, TEST_VALUE));
+            } else {
+                txn.delete(table, ImmutableSet.of(cell));
+            }
+            cellsWithWrites.computeIfAbsent(table, ignored -> new HashSet<>()).add(cell);
+            // no metadata
+            cellsWithMetadata.computeIfAbsent(table, ignored -> new HashMap<>()).remove(cell);
+        }
+    }
+
+    private static ChangeMetadata createRandomMetadata(Random random) {
+        switch (random.nextInt(4)) {
+            case 0:
+                return ChangeMetadata.unchanged();
+            case 1:
+                return ChangeMetadata.updated(PtBytes.toBytes(random.nextLong()), PtBytes.toBytes(random.nextLong()));
+            case 2:
+                return ChangeMetadata.created(PtBytes.toBytes(random.nextLong()));
+            case 3:
+                return ChangeMetadata.deleted(PtBytes.toBytes(random.nextLong()));
+        }
+        throw new RuntimeException("unreachable");
     }
 
     private static class VerifyingKeyValueServiceDelegate extends ForwardingKeyValueService {ueu(50419c145d9169ff9e70a17a1da56a33a420b9a9}(sha(50419c145d9169ff9e70a17a1da56a33a420b9a9node_idEC_kwDOAjP5fdoAKDUwNDE5YzE0NWQ5MTY5ZmY5ZTcwYTE3YTFkYTU2YTMzYTQyMGI5YTkcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-03-23T19:21:15Zu	committer}(j	 svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj
 2023-03-23T19:21:15ZumessageAutorelease 0.820.0

[skip ci]tree}(j (6c0623abcba01f80bad24180de3cab382d11b1efurl`https://api.github.com/repos/palantir/atlasdb/git/trees/6c0623abcba01f80bad24180de3cab382d11b1efuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/50419c145d9169ff9e70a17a1da56a33a420b9a9
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQcprEACgkQhbrR8ip7mDDubAD/ZeWCHW9dniSKQDwo02Tq16CB
TFgRx0QVpnsqUJ40bxsA/3J+OCmpVv0yAVaLm9bI5bV1EHXz96dIODDX38aL+SZl
=gJ91
-----END PGP SIGNATURE-----
payloadX0  tree 6c0623abcba01f80bad24180de3cab382d11b1ef
parent 670b42dd2f227d2765b722a4bfed778215e49f6b
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1679599275 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1679599275 +0000

Autorelease 0.820.0

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/50419c145d9169ff9e70a17a1da56a33a420b9a9html_urlShttps://github.com/palantir/atlasdb/commit/50419c145d9169ff9e70a17a1da56a33a420b9a9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/50419c145d9169ff9e70a17a1da56a33a420b9a9/commentsj }(loginsvc-autoreleaseidJ(j MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j ,https://api.github.com/users/svc-autoreleasej' "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj }(j, svc-autoreleasej. J(j MDQ6VXNlcjUxNzE4MzQ2j0 4https://avatars.githubusercontent.com/u/51718346?v=4j2 h5j ,https://api.github.com/users/svc-autoreleasej' "https://github.com/svc-autoreleasej5 6https://api.github.com/users/svc-autorelease/followersj7 Chttps://api.github.com/users/svc-autorelease/following{/other_user}j9 <https://api.github.com/users/svc-autorelease/gists{/gist_id}j; Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j= :https://api.github.com/users/svc-autorelease/subscriptionsj? 1https://api.github.com/users/svc-autorelease/orgsjA 2https://api.github.com/users/svc-autorelease/reposjC =https://api.github.com/users/svc-autorelease/events{/privacy}jE <https://api.github.com/users/svc-autorelease/received_eventsjG UserjI uparents]}(j (670b42dd2f227d2765b722a4bfed778215e49f6bj ^https://api.github.com/repos/palantir/atlasdb/commits/670b42dd2f227d2765b722a4bfed778215e49f6bj' Shttps://github.com/palantir/atlasdb/commit/670b42dd2f227d2765b722a4bfed778215e49f6buastats}(totalK 	additionsK 	deletionsK ufiles]}(j (7a46efe502264df936f40615fb54393461e5d277filename changelog/0.820.0/pr-6475.v2.ymlstatusrenamedjc K jd K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/50419c145d9169ff9e70a17a1da56a33a420b9a9/changelog%2F0.820.0%2Fpr-6475.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/50419c145d9169ff9e70a17a1da56a33a420b9a9/changelog%2F0.820.0%2Fpr-6475.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.820.0%2Fpr-6475.v2.yml?ref=50419c145d9169ff9e70a17a1da56a33a420b9a9previous_filename$changelog/@unreleased/pr-6475.v2.ymluau(d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02}(sha(d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02node_idEC_kwDOAjP5fdoAKGQ5ZTllZDMwZTViYzVhNmQ3YTdhZmNlMTA5MTM4ZmZjZjJjNmFkMDIcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-05-18T15:08:10Zu	committer}(j GitHubj noreply@github.comj 2023-05-18T15:08:10ZumessageSkramer/cassandra chaos (#6570)tree}(jx (40cee9adf3446d47e20016f7589f5fc52e0f6ef7url`https://api.github.com/repos/palantir/atlasdb/git/trees/40cee9adf3446d47e20016f7589f5fc52e0f6ef7uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkZj9aCRBK7hj4Ov3rIwAArnIIAAucYHlNmwgd3QLB+QXRrS0g
ndyXRqy80AzYn4y/lPJdxAjc4kBC1HKuGE0CE/QWVdOc6FFoCC1iOjIapDdcxPR6
FeIwySvXxBCOEgenXw1nAAKDfHWRlvZa7E6O1EiToxiwEB74/evIUM0smbL2cMpU
lQW+lYKhtAhrC5hMBh6sBQMudibyzLJK8sWR63nGTi7lMX6Cb2iF+FEVlCnxiGrq
FCz4Hbuv9o11cFQHfjRgG0wjqhrFcNbZZq7vNKqM540aOzFwnHCelGfZRH2s3JqS
k5AOBcb3y6Anz/eZJ7e95VLE+KOx0mFjYYVy6FWNlP4tJxtXi41xntdaNtOEOks=
=tXfg
-----END PGP SIGNATURE-----
payloadtree 40cee9adf3446d47e20016f7589f5fc52e0f6ef7
parent 43cc035c126d99a177ab6d8534e26b0471ddb44a
author Sam-Kramer <sam.c.kramer@gmail.com> 1684422490 +0100
committer GitHub <noreply@github.com> 1684422490 +0000

Skramer/cassandra chaos (#6570)

 uuj ^https://api.github.com/repos/palantir/atlasdb/commits/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02html_urlShttps://github.com/palantir/atlasdb/commit/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02/commentsj~ }(login
Sam-KrameridJ^2_ jz MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j web-flowj J/jz MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(jx (43cc035c126d99a177ab6d8534e26b0471ddb44aj ^https://api.github.com/repos/palantir/atlasdb/commits/43cc035c126d99a177ab6d8534e26b0471ddb44aj Shttps://github.com/palantir/atlasdb/commit/43cc035c126d99a177ab6d8534e26b0471ddb44auastats}(totalM	additionsM	deletionsKufiles](}(jx (7ed6f31d91209eb01a70cc1992699c7d6b7590bdfilenameTatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/AlwaysBuggifyFactory.javastatusaddedjڨ Kjۨ K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.java?ref=d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02patchX.  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggify;
+
+public enum AlwaysBuggifyFactory implements BuggifyFactory {
+    INSTANCE;
+
+    @Override
+    public Buggify maybe(double _probability) {
+        return DefaultBuggify.INSTANCE;
+    }
+}u}(jx (8fc45b8b9ddc37ded24af638207557f822511685j 1atlasdb-workload-server-antithesis/var/compact.shj addedjڨ Kjۨ K j Kj https://github.com/palantir/atlasdb/blob/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shj https://github.com/palantir/atlasdb/raw/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.sh?ref=d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02j X  @@ -0,0 +1,19 @@
+#!/bin/bash
+
+##
+# (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool compact'¡
\ No newline at end of fileu}(jx (b5c7b9efcec99e2e4e3b5ccc3eb2f13e725dca1aj 9atlasdb-workload-server-antithesis/var/docker-compose.ymlj modifiedjڨ Kjۨ Kj K	j https://github.com/palantir/atlasdb/blob/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj https://github.com/palantir/atlasdb/raw/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02j X  @@ -2,7 +2,7 @@ version: '2'
 
 services:
   cassandra1:
-    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
     ports:
       - "9160"
       - "9042"
@@ -13,13 +13,14 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra1
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
 
   cassandra2:
-    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
     ports:
       - "9160"
       - "9042"
@@ -30,13 +31,14 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra2
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
 
   cassandra3:
-    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
     ports:
       - "9160"
       - "9042"
@@ -47,6 +49,7 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra3
     networks:
       antithesis-net:u}(jx (507c4267b553dffafece23d33ad88df6fd5f4bb2j /atlasdb-workload-server-antithesis/var/flush.shj addedjڨ Kjۨ K j Kj https://github.com/palantir/atlasdb/blob/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shj https://github.com/palantir/atlasdb/raw/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fflush.sh?ref=d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02j X  @@ -0,0 +1,19 @@
+#!/bin/bash
+
+##
+# (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool flush'
\ No newline at end of fileu}(jx (e413798427db97d025ad85b9f49ea4d26c076e02j natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/resource/CassandraSidecarResource.javaj addedjڨ Kjۨ K j Kj https://github.com/palantir/atlasdb/blob/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.javaj https://github.com/palantir/atlasdb/raw/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.java?ref=d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02j X  @@ -0,0 +1,29 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.resource;
+
+public interface CassandraSidecarResource {
+    /**
+     * Asynchronous method that flushes all keyspaces on a Cassandra host.
+     */
+    void flush(String host);
+
+    /**
+     * Asynchronous method that performs a major compaction for all keyspaces on Cassandra.
+     */
+    void compact(String host);
+}u}(jx (7f3e9e8f12ab40d4c411f5e94cce359dfef3b112j 1atlasdb-workload-server-distribution/build.gradlej modifiedjڨ Kjۨ K j Kj https://github.com/palantir/atlasdb/blob/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02/atlasdb-workload-server-distribution%2Fbuild.gradlej https://github.com/palantir/atlasdb/raw/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02/atlasdb-workload-server-distribution%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02j Xk  @@ -20,6 +20,7 @@ dependencies {
     implementation 'com.palantir.conjure.java.runtime:conjure-java-jersey-server'
     implementation 'com.google.guava:guava'
 
+    implementation project(':atlasdb-buggify')
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-cassandra')
     implementation project(':atlasdb-workload-server')u}(jx (5a8e028a7ed3dacc1868e82c6ed9dcdedee248e9j latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedjڨ Kjۨ Kj Kj https://github.com/palantir/atlasdb/blob/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://github.com/palantir/atlasdb/raw/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02j Xq  @@ -22,11 +22,14 @@
 import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
+import com.palantir.atlasdb.workload.background.BackgroundCassandraJob;
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
 import com.palantir.atlasdb.workload.invariant.DurableWritesInvariantMetricReporter;
 import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
+import com.palantir.atlasdb.workload.resource.AntithesisCassandraSidecarResource;
 import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
@@ -50,10 +53,13 @@
 import io.dropwizard.lifecycle.setup.LifecycleEnvironment;
 import io.dropwizard.setup.Bootstrap;
 import io.dropwizard.setup.Environment;
+import java.util.List;
 import java.util.Map;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutorService;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
 
 public class WorkloadServerLauncher extends Application<WorkloadServerConfiguration> {
 
@@ -81,12 +87,28 @@ public void initialize(Bootstrap<WorkloadServerConfiguration> bootstrap) {
     public void run(WorkloadServerConfiguration configuration, Environment environment) {
         environment.getObjectMapper().registerModule(new Jdk8Module()).registerModule(new JavaTimeModule());
 
+        scheduleBackgroundJobs(environment);
+
         ExecutorService workflowRunnerExecutor =
                 environment.lifecycle().executorService("workflow-runner").build();
-
         workflowRunnerExecutor.execute(() -> runWorkflows(configuration, environment));
     }
 
+    private void scheduleBackgroundJobs(Environment environment) {
+        ScheduledExecutorService backgroundJobExecutor = environment
+                .lifecycle()
+                .scheduledExecutorService("background-job")
+                .build();
+        backgroundJobExecutor.scheduleAtFixedRate(
+                new BackgroundCassandraJob(
+                        List.of("cassandra1", "cassandra2", "cassandra3"),
+                        AntithesisCassandraSidecarResource.INSTANCE,
+                        DefaultBuggifyFactory.INSTANCE),
+                0,
+                10,
+                TimeUnit.SECONDS);
+    }
+
     private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {
         ExecutorService antithesisWorkflowRunnerExecutorService = environment
                 .lifecycle()u     }(jx (8b9834003c52ed4630cb687d233e97192635cc24j jatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/background/BackgroundCassandraJob.javaj addedjڨ K,jۨ K j K,j https://github.com/palantir/atlasdb/blob/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.javaj https://github.com/palantir/atlasdb/raw/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.java?ref=d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02j X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.background;
+
+import com.google.common.collect.Iterators;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.workload.resource.CassandraSidecarResource;
+import java.util.Iterator;
+import java.util.List;
+
+public class BackgroundCassandraJob implements Runnable {
+
+    private final CassandraSidecarResource cassandraSidecarResource;
+    private final Iterator<String> cassandraHosts;
+
+    private final BuggifyFactory buggify;
+
+    public BackgroundCassandraJob(
+            List<String> cassandraHosts, CassandraSidecarResource cassandraSidecarResource, BuggifyFactory buggify) {
+        this.cassandraSidecarResource = cassandraSidecarResource;
+        this.cassandraHosts = Iterators.cycle(cassandraHosts);
+        this.buggify = buggify;
+    }
+
+    @Override
+    public void run() {
+        buggify.maybe(0.20).run(() -> cassandraSidecarResource.flush(cassandraHosts.next()));
+        buggify.maybe(0.20).run(() -> cassandraSidecarResource.compact(cassandraHosts.next()));
+    }
+}u}(jx (afc5fd9e1645d1faf8b1f77f62a39f67390b4c87j tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/resource/AntithesisCassandraSidecarResource.javaj addedjڨ K%jۨ K j K%j https://github.com/palantir/atlasdb/blob/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.javaj https://github.com/palantir/atlasdb/raw/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.java?ref=d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02j X>  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.resource;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+
+public enum AntithesisCassandraSidecarResource implements CassandraSidecarResource {
+    INSTANCE;
+
+    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisCassandraSidecarResource.class);
+
+    @Override
+    public void flush(String host) {
+        log.info("antithesis: flush {}", SafeArg.of("host", host));
+    }
+
+    @Override
+    public void compact(String host) {
+        log.info("antithesis: compact {}", SafeArg.of("host", host));
+    }
+}u}(jx (c89f46a34f99a9fca258b76f8b9fdf692e350760j natlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/background/BackgroundCassandraJobTest.javaj addedjڨ K2jۨ K j K2j https://github.com/palantir/atlasdb/blob/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.javaj https://github.com/palantir/atlasdb/raw/d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.java?ref=d9e9ed30e5bc5a6d7a7afce109138ffcf2c6ad02j X  @@ -0,0 +1,50 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.background;
+
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.verify;
+
+import com.palantir.atlasdb.buggify.AlwaysBuggifyFactory;
+import com.palantir.atlasdb.workload.resource.CassandraSidecarResource;
+import java.util.List;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class BackgroundCassandraJobTest {
+
+    private static final String HOST_ONE = "cassandra1";
+    private static final String HOST_TWO = "cassandra2";
+    private static final String HOST_THREE = "cassandra3";
+
+    private static final List<String> CASSANDRA_HOSTS = List.of(HOST_ONE, HOST_TWO, HOST_THREE);
+
+    @Mock
+    private CassandraSidecarResource cassandraSidecarResource;
+
+    @Test
+    public void runCanExecuteCompactFlushOnAllCassandraHosts() {
+        BackgroundCassandraJob backgroundCassandraJob =
+                new BackgroundCassandraJob(CASSANDRA_HOSTS, cassandraSidecarResource, AlwaysBuggifyFactory.INSTANCE);
+        CASSANDRA_HOSTS.forEach(_ignore -> backgroundCassandraJob.run());
+        CASSANDRA_HOSTS.forEach(host -> verify(cassandraSidecarResource).compact(eq(host)));
+        CASSANDRA_HOSTS.forEach(host -> verify(cassandraSidecarResource).flush(eq(host)));
+    }
+}ueu(1f96f2c483b00da53c1157959f7d79c4ec13be5d}(sha(1f96f2c483b00da53c1157959f7d79c4ec13be5dnode_idEC_kwDOAjP5fdoAKDFmOTZmMmM0ODNiMDBkYTUzYzExNTc5NTlmN2Q3OWM0ZWMxM2JlNWQcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-20T09:22:22Zu	committer}(j? 	Tom PapkejA tpapke@palantir.comjC 2023-07-20T12:44:30ZumessageBetter assertionstree}(j7 (91033e337fef132752bd7bb37274885ed14df26durl`https://api.github.com/repos/palantir/atlasdb/git/trees/91033e337fef132752bd7bb37274885ed14df26dujO bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1f96f2c483b00da53c1157959f7d79c4ec13be5d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS5LC4ACgkQmF9s0kaF
Iw2McQgAqFeTThnMkXiw81z8E7240dfZze1A1YlxTmsAggvA9CIx5g9xm76rs8z7
i4kA1itnUbug3CVgPwMgRuZvm966Q1eCNNYf/gDn4DnDwUjxjosLC81pT/NtJGI6
jKYDMeg2r6BblL3TzJW/hXNFGKXKRMmHKW735oOIkpBGfPVZcm23X3bdfatiahM2
G95QlPwGOkvdO/39raRlYSEErwbIEM9WU18hbFaitcVAitXVA2yzBsChzEHzmaoO
beMiqVQ33OvVrwku4O0WevqT+XBRKE3bq4lSaIMB/kT1qan7qevmusSN5SWHEsIe
wQfjbg5Axu3jwrcKnwAEeMsOo0wSTA==
=TvtP
-----END PGP SIGNATURE-----payloadtree 91033e337fef132752bd7bb37274885ed14df26d
parent 994dc7e57192d4409ca42fcd2ea4feb9f0c57a46
author Tom Papke <tpapke@palantir.com> 1689844942 +0100
committer Tom Papke <tpapke@palantir.com> 1689857070 +0100

Better assertions
uujO ^https://api.github.com/repos/palantir/atlasdb/commits/1f96f2c483b00da53c1157959f7d79c4ec13be5dhtml_urlShttps://github.com/palantir/atlasdb/commit/1f96f2c483b00da53c1157959f7d79c4ec13be5dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1f96f2c483b00da53c1157959f7d79c4ec13be5d/commentsj= }(login	ToemmscheidJboj9 MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jO &https://api.github.com/users/Toemmschej] https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujE }(jb 	Toemmschejd Jboj9 MDQ6VXNlcjQzNjc1NDkwjf 4https://avatars.githubusercontent.com/u/43675490?v=4jh h5jO &https://api.github.com/users/Toemmschej] https://github.com/Toemmschejk 0https://api.github.com/users/Toemmsche/followersjm =https://api.github.com/users/Toemmsche/following{/other_user}jo 6https://api.github.com/users/Toemmsche/gists{/gist_id}jq =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}js 4https://api.github.com/users/Toemmsche/subscriptionsju +https://api.github.com/users/Toemmsche/orgsjw ,https://api.github.com/users/Toemmsche/reposjy 7https://api.github.com/users/Toemmsche/events{/privacy}j{ 6https://api.github.com/users/Toemmsche/received_eventsj} Userj uparents]}(j7 (994dc7e57192d4409ca42fcd2ea4feb9f0c57a46jO ^https://api.github.com/repos/palantir/atlasdb/commits/994dc7e57192d4409ca42fcd2ea4feb9f0c57a46j] Shttps://github.com/palantir/atlasdb/commit/994dc7e57192d4409ca42fcd2ea4feb9f0c57a46uastats}(totalK
	additionsK	deletionsKufiles]}(j7 (9b000d2589b8e41b2a9e203ed0b271f2138295e8filename^timelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImplTest.javastatusmodifiedj Kj KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/1f96f2c483b00da53c1157959f7d79c4ec13be5d/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1f96f2c483b00da53c1157959f7d79c4ec13be5d/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.java?ref=1f96f2c483b00da53c1157959f7d79c4ec13be5dpatchXR  @@ -193,13 +193,15 @@ public void countsMetadataCorrectlyStartingFromEmptyBuffer() {
         assertThat(metadataMetrics.changeMetadataStored().getCount()).isEqualTo(3);
         assertThat(metadataMetrics.eventsWithMetadataStored().getCount()).isEqualTo(2);
 
-        // Absent metadata should count for nothing
         log.logLock(ImmutableSet.of(DESCRIPTOR), TOKEN, Optional.empty());
-        // Empty metadata map should count for present metadata
         log.logLock(ImmutableSet.of(), TOKEN, Optional.of(LockRequestMetadata.of(ImmutableMap.of())));
 
-        assertThat(metadataMetrics.changeMetadataStored().getCount()).isEqualTo(3);
-        assertThat(metadataMetrics.eventsWithMetadataStored().getCount()).isEqualTo(3);
+        assertThat(metadataMetrics.changeMetadataStored().getCount())
+                .as("Absent metadata should count for nothing")
+                .isEqualTo(3);
+        assertThat(metadataMetrics.eventsWithMetadataStored().getCount())
+                .as("Empty metadata map should count for present metadata")
+                .isEqualTo(3);
     }
 
     @Testuau(191b9a682b9d70d22eba8ee4e517b9791e7c13b4}(sha(191b9a682b9d70d22eba8ee4e517b9791e7c13b4node_idEC_kwDOAjP5fdoAKDE5MWI5YTY4MmI5ZDcwZDIyZWJhOGVlNGU1MTdiOTc5MWU3YzEzYjQcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-05-19T18:16:44Zu	committer}(j David Schlosnaglej davids@palantir.comj 2023-05-22T19:18:28Zumessage,Lock state logging handles multiple mappingstree}(j (012a5e545a17bf3e9353c050de2760191f24ad2curl`https://api.github.com/repos/palantir/atlasdb/git/trees/012a5e545a17bf3e9353c050de2760191f24ad2cujƩ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/191b9a682b9d70d22eba8ee4e517b9791e7c13b4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmRrwAYACgkQR9hsJ74Q
0l8J7Af/aGmiV1yWvbp65HH6XL3xPzR1cMB05/YuDOzPonI5FI5sAC5+4jlCqsJw
7doUPgWgGeXU+6/dia5LdAxKZpPcGPIB2GoQuAO5EGg7JU2r/PTShfT6NM7Z+yj6
UB82jtMNdmaXA9xP9p+WVp96xN0D2abP3lxVJCmC787fUzYCL1fzJuHzgLJ3i1x3
1DlJU5q8DO95NOgDwnMLtzsrXugtKXQYdpuo88KsILvoh4YZDb1NGZ906S0MKYjf
CXcQuV0A2W4DbTUa9oW/ZYaGbq0OB/p5BmgMm2uxEkbS44eB/GOPZQoXrzCrLgqQ
V4gXpYVzc0ylC92v8F9OvNOEyNGFwQ==
=x+lZ
-----END PGP SIGNATURE-----payloadX  tree 012a5e545a17bf3e9353c050de2760191f24ad2c
parent 1083711b382690fa3e64f57135fe510943c3083c
author David Schlosnagle <davids@palantir.com> 1684520204 -0400
committer David Schlosnagle <davids@palantir.com> 1684783108 -0400

Lock state logging handles multiple mappings
uujƩ ^https://api.github.com/repos/palantir/atlasdb/commits/191b9a682b9d70d22eba8ee4e517b9791e7c13b4html_urlShttps://github.com/palantir/atlasdb/commit/191b9a682b9d70d22eba8ee4e517b9791e7c13b4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/191b9a682b9d70d22eba8ee4e517b9791e7c13b4/commentsj }(loginschlosnaidMBj MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jƩ %https://api.github.com/users/schlosnajԩ https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj }(j٩ schlosnaj۩ MBj MDQ6VXNlcjU0NTk0jݩ 1https://avatars.githubusercontent.com/u/54594?v=4jߩ h5jƩ %https://api.github.com/users/schlosnajԩ https://github.com/schlosnaj /https://api.github.com/users/schlosna/followersj <https://api.github.com/users/schlosna/following{/other_user}j 5https://api.github.com/users/schlosna/gists{/gist_id}j <https://api.github.com/users/schlosna/starred{/owner}{/repo}j 3https://api.github.com/users/schlosna/subscriptionsj *https://api.github.com/users/schlosna/orgsj +https://api.github.com/users/schlosna/reposj 6https://api.github.com/users/schlosna/events{/privacy}j 5https://api.github.com/users/schlosna/received_eventsj Userj uparents]}(j (1083711b382690fa3e64f57135fe510943c3083cjƩ ^https://api.github.com/repos/palantir/atlasdb/commits/1083711b382690fa3e64f57135fe510943c3083cjԩ Shttps://github.com/palantir/atlasdb/commit/1083711b382690fa3e64f57135fe510943c3083cuastats}(totalKJ	additionsK'	deletionsK#ufiles](}(j (740d2be1b4be3be27ce66aa48a459eca67445bbdfilenameBlock-impl/src/main/java/com/palantir/lock/impl/LockServerLock.javastatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/191b9a682b9d70d22eba8ee4e517b9791e7c13b4/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServerLock.javaraw_urlhttps://github.com/palantir/atlasdb/raw/191b9a682b9d70d22eba8ee4e517b9791e7c13b4/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServerLock.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServerLock.java?ref=191b9a682b9d70d22eba8ee4e517b9791e7c13b4patchX0  @@ -20,6 +20,7 @@
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
@@ -71,6 +72,7 @@ public String toString() {
                 .toString();
     }
 
+    @Safe
     public String toSanitizedString() {
         return MoreObjects.toStringHelper(getClass().getSimpleName())
                 .add("sync", sync)u}(j (8ad7d66a8be2fa1016c00dc76fe90309bf40c841j Jlock-impl/src/main/java/com/palantir/lock/logger/LockDescriptorMapper.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/191b9a682b9d70d22eba8ee4e517b9791e7c13b4/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockDescriptorMapper.javaj https://github.com/palantir/atlasdb/raw/191b9a682b9d70d22eba8ee4e517b9791e7c13b4/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockDescriptorMapper.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockDescriptorMapper.java?ref=191b9a682b9d70d22eba8ee4e517b9791e7c13b4j! X  @@ -15,11 +15,11 @@
  */
 package com.palantir.lock.logger;
 
+import com.google.common.collect.ImmutableMap;
 import com.palantir.lock.LockDescriptor;
 import java.util.Map;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.atomic.AtomicInteger;
-import java.util.stream.Collectors;
 
 /**
  * Lock descriptors may contain obfuscated sensitive information. We want to make it impossible to get a real descriptor,
@@ -31,8 +31,8 @@ class LockDescriptorMapper {
 
     private static final String LOCK_PREFIX = "Lock-";
 
-    private Map<LockDescriptor, ObfuscatedLockDescriptor> mapper = new ConcurrentHashMap<>();
-    private AtomicInteger lockCounter = new AtomicInteger();
+    private final Map<LockDescriptor, ObfuscatedLockDescriptor> mapper = new ConcurrentHashMap<>();
+    private final AtomicInteger lockCounter = new AtomicInteger();
 
     ObfuscatedLockDescriptor getDescriptorMapping(LockDescriptor descriptor) {
         return mapper.computeIfAbsent(
@@ -44,6 +44,6 @@ ObfuscatedLockDescriptor getDescriptorMapping(LockDescriptor descriptor) {
      * @return map from mapping to real descriptor.
      */
     Map<ObfuscatedLockDescriptor, LockDescriptor> getReversedMapper() {
-        return mapper.entrySet().stream().collect(Collectors.toMap(Map.Entry::getValue, Map.Entry::getKey));
+        return mapper.entrySet().stream().collect(ImmutableMap.toImmutableMap(Map.Entry::getValue, Map.Entry::getKey));
     }
 }u}(j (3ca8641939ff8f4e94b69d791062c6ac04ce74d7j Llock-impl/src/main/java/com/palantir/lock/logger/LockServiceStateLogger.javaj modifiedj Kj Kj K5j https://github.com/palantir/atlasdb/blob/191b9a682b9d70d22eba8ee4e517b9791e7c13b4/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLogger.javaj https://github.com/palantir/atlasdb/raw/191b9a682b9d70d22eba8ee4e517b9791e7c13b4/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLogger.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLogger.java?ref=191b9a682b9d70d22eba8ee4e517b9791e7c13b4j! X  @@ -15,9 +15,11 @@
  */
 package com.palantir.lock.logger;
 
+import com.google.common.collect.ImmutableListMultimap;
+import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.ImmutableSetMultimap;
-import com.google.common.collect.Multimap;
+import com.google.common.collect.ListMultimap;
 import com.google.common.collect.Multimaps;
 import com.google.common.collect.SetMultimap;
 import com.palantir.lock.HeldLocksToken;
@@ -29,9 +31,11 @@
 import com.palantir.lock.impl.LockServiceImpl;
 import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
 import com.palantir.lock.impl.LockServiceStateDebugger;
+import com.palantir.lock.impl.LockServiceStateDebugger.LockRequestProgress;
 import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.Collection;
 import java.util.Comparator;
 import java.util.HashMap;
 import java.util.List;
@@ -65,40 +69,34 @@ public LockServiceStateLogger(
     }
 
     public LogState logLocks() {
-        List<SimpleLockRequestsWithSameDescriptor> generatedOutstandingRequests =
-                generateOutstandingLocks(outstandingLockRequests);
-        Multimap<ObfuscatedLockDescriptor, SimpleTokenInfo> generatedHeldLocks = generateHeldLocks(heldLocks);
-        Map<ObfuscatedLockDescriptor, String> generatedSyncState = generateSyncState(descriptorToLockMap);
-        Map<ClientId, List<SanitizedLockRequestProgress>> synthesizedRequestState =
-                synthesizeRequestState(outstandingLockRequests, descriptorToLockMap);
-
         LogState state = ImmutableLogState.builder()
-                .outstandingRequests(generatedOutstandingRequests)
-                .heldLocks(generatedHeldLocks)
-                .syncState(generatedSyncState)
-                .synthesizedRequestState(synthesizedRequestState)
+                .outstandingRequests(generateOutstandingLocks(outstandingLockRequests))
+                .heldLocks(generateHeldLocks(heldLocks))
+                .syncState(generateSyncState(descriptorToLockMap))
+                .synthesizedRequestState(synthesizeRequestState(outstandingLockRequests, descriptorToLockMap))
                 .lockDescriptorMapping(lockDescriptorMapper.getReversedMapper())
                 .lockStats(lockStats)
                 .build();
         state.logTo(log);
         return state;
     }
 
-    private Map<ClientId, List<SanitizedLockRequestProgress>> synthesizeRequestState(
+    @Safe
+    private ListMultimap<@Safe ClientId, @Safe SanitizedLockRequestProgress> synthesizeRequestState(
             Map<LockClient, Set<LockRequest>> outstandingLockRequests,
             Map<LockDescriptor, ClientAwareReadWriteLock> descriptorToLockMap) {
         LockServiceStateDebugger debugger = new LockServiceStateDebugger(outstandingLockRequests, descriptorToLockMap);
-        Multimap<LockClient, LockServiceStateDebugger.LockRequestProgress> progressMultimap =
-                debugger.getSuspectedLockProgress();
-
-        return progressMultimap.asMap().entrySet().stream()
-                .collect(Collectors.toMap(
-                        entry -> ClientId.of(entry.getKey().getClientId()), entry -> entry.getValue().stream()
-                                .map(lockRequestProgress -> SanitizedLockRequestProgress.create(
-                                        lockRequestProgress,
-                                        this.lockDescriptorMapper,
-                                        ClientId.of(entry.getKey().getClientId())))
-                                .collect(Collectors.toList())));
+        ImmutableListMultimap.Builder<ClientId, SanitizedLockRequestProgress> result = ImmutableListMultimap.builder();
+        for (Map.Entry<LockClient, Collection<LockRequestProgress>> entry :
+                debugger.getSuspectedLockProgress().asMap().entrySet()) {
+            ClientId clientId = ClientId.of(entry.getKey().getClientId());
+            for (LockRequestProgress lockRequestProgress : entry.getValue()) {
+                result.put(
+                        clientId,
+                        SanitizedLockRequestProgress.create(lockRequestProgress, this.lockDescriptorMapper, clientId));
+            }
+        }
+        return result.build();
     }
 
     private List<SimpleLockRequestsWithSameDescriptor> generateOutstandingLocks(
@@ -131,7 +129,7 @@ private List<SimpleLockRequestsWithSameDescriptor> generateOutstandingLocks(
                 .collect(Collectors.toList());
     }
 
-    private Multimap<ObfuscatedLockDescriptor, SimpleTokenInfo> generateHeldLocks(
+    private SetMultimap<ObfuscatedLockDescriptor, SimpleTokenInfo> generateHeldLocks(
             ConcurrentMap<HeldLocksToken, LockServiceImpl.HeldLocks<HeldLocksToken>> heldLocksTokenMap) {
         return heldLocksTokenMap.values().stream()
                 .flatMap(locks -> locks.getRealToken().getLocks().stream()
@@ -141,10 +139,11 @@ private Multimap<ObfuscatedLockDescriptor, SimpleTokenInfo> generateHeldLocks(
                 .collect(ImmutableSetMultimap.toImmutableSetMultimap(Entry::getKey, Entry::getValue));
     }
 
-    private Map<ObfuscatedLockDescriptor, String> generateSyncState(
+    @Safe
+    private Map<@Safe ObfuscatedLockDescriptor, @Safe String> generateSyncState(
             Map<LockDescriptor, ClientAwareReadWriteLock> descriptorToLockMap) {
         return descriptorToLockMap.entrySet().stream()
-                .collect(Collectors.toMap(
+                .collect(ImmutableMap.toImmutableMap(
                         entry -> lockDescriptorMapper.getDescriptorMapping(entry.getKey()),
                         entry -> ((LockServerLock) entry.getValue()).toSanitizedString()));
     }u}(j (d310d770f80ae0d22cd96aafeee8ed1600aadafcj >lock-impl/src/main/java/com/palantir/lock/logger/LogState.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/191b9a682b9d70d22eba8ee4e517b9791e7c13b4/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLogState.javaj https://github.com/palantir/atlasdb/raw/191b9a682b9d70d22eba8ee4e517b9791e7c13b4/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLogState.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLogState.java?ref=191b9a682b9d70d22eba8ee4e517b9791e7c13b4j! X  @@ -16,7 +16,8 @@
 
 package com.palantir.lock.logger;
 
-import com.google.common.collect.Multimap;
+import com.google.common.collect.ListMultimap;
+import com.google.common.collect.SetMultimap;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.SafeArg;
@@ -34,13 +35,13 @@ public interface LogState {
     List<SimpleLockRequestsWithSameDescriptor> getOutstandingRequests();
 
     @Safe
-    Multimap<ObfuscatedLockDescriptor, SimpleTokenInfo> getHeldLocks();
+    SetMultimap<ObfuscatedLockDescriptor, SimpleTokenInfo> getHeldLocks();
 
     @Safe
     Map<ObfuscatedLockDescriptor, String> getSyncState();
 
     @Safe
-    Map<ClientId, List<SanitizedLockRequestProgress>> getSynthesizedRequestState();
+    ListMultimap<ClientId, SanitizedLockRequestProgress> getSynthesizedRequestState();
 
     @Unsafe
     Map<ObfuscatedLockDescriptor, LockDescriptor> getLockDescriptorMapping();u}(j (3429822c9b883d7be8da88555fa32cac4f611c5aj Rlock-impl/src/main/java/com/palantir/lock/logger/SanitizedLockRequestProgress.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/191b9a682b9d70d22eba8ee4e517b9791e7c13b4/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FSanitizedLockRequestProgress.javaj https://github.com/palantir/atlasdb/raw/191b9a682b9d70d22eba8ee4e517b9791e7c13b4/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FSanitizedLockRequestProgress.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FSanitizedLockRequestProgress.java?ref=191b9a682b9d70d22eba8ee4e517b9791e7c13b4j! X  @@ -19,11 +19,13 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.impl.LockServiceStateDebugger;
+import com.palantir.logsafe.Safe;
 import java.util.List;
 import java.util.stream.Collectors;
 import java.util.stream.StreamSupport;
 import org.immutables.value.Value;
 
+@Safe
 @Value.Immutable
 @JsonSerialize(as = ImmutableSanitizedLockRequestProgress.class)
 @JsonDeserialize(as = ImmutableSanitizedLockRequestProgress.class)u}(j (0a02e155dd9bca056b1e12f52f3ec5f90f84b76ej Plock-impl/src/test/java/com/palantir/lock/logger/LockServiceStateLoggerTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/191b9a682b9d70d22eba8ee4e517b9791e7c13b4/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLoggerTest.javaj https://github.com/palantir/atlasdb/raw/191b9a682b9d70d22eba8ee4e517b9791e7c13b4/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLoggerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLoggerTest.java?ref=191b9a682b9d70d22eba8ee4e517b9791e7c13b4j! X  @@ -160,7 +160,7 @@ public void testSyncState() {
 
     @Test
     public void testSynthesizedRequestState() {
-        assertThat(loggedState.getSynthesizedRequestState()).hasSameSizeAs(getSyncStateDescriptors());
+        assertThat(loggedState.getSynthesizedRequestState().asMap()).hasSameSizeAs(getSyncStateDescriptors());
     }
 
     private static void assertDescriptorsNotPresentInString(String serialized) {ueu(37691cc03c3ab63db46ca654ed45ca11faca4b7a}(sha(37691cc03c3ab63db46ca654ed45ca11faca4b7anode_idEC_kwDOAjP5fdoAKDM3NjkxY2MwM2MzYWI2M2RiNDZjYTY1NGVkNDVjYTExZmFjYTRiN2Ecommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-06-29T09:59:35Zu	committer}(jU svc-autoreleasejW -pd-foundry-infrastructure-notify@palantir.comjY 2023-06-29T09:59:35ZumessageAutorelease 0.881.0

[skip ci]tree}(jM (80ffc7c9b0c72ab74303fccdd00274081a87dcefurl`https://api.github.com/repos/palantir/atlasdb/git/trees/80ffc7c9b0c72ab74303fccdd00274081a87dcefuje bhttps://api.github.com/repos/palantir/atlasdb/git/commits/37691cc03c3ab63db46ca654ed45ca11faca4b7a
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmSdVg4ACgkQhbrR8ip7mDCIfwEAsYxv93gABk40xSm0B5egPbhC
O4jEJpEke0OP53rkaOEA/1PKnFsOAmwSBA+i46x7phpUmpjYm6wVVsEHsrJ7gEZH
=lknx
-----END PGP SIGNATURE-----
payloadX0  tree 80ffc7c9b0c72ab74303fccdd00274081a87dcef
parent 842acaa05b5d927d2477fbddf6fa0fde2ee953b2
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1688032775 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1688032775 +0000

Autorelease 0.881.0

[skip ci]uuje ^https://api.github.com/repos/palantir/atlasdb/commits/37691cc03c3ab63db46ca654ed45ca11faca4b7ahtml_urlShttps://github.com/palantir/atlasdb/commit/37691cc03c3ab63db46ca654ed45ca11faca4b7acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/37691cc03c3ab63db46ca654ed45ca11faca4b7a/commentsjS }(loginsvc-autoreleaseidJ(jO MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5je ,https://api.github.com/users/svc-autoreleasejs "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj[ }(jx svc-autoreleasejz J(jO MDQ6VXNlcjUxNzE4MzQ2j| 4https://avatars.githubusercontent.com/u/51718346?v=4j~ h5je ,https://api.github.com/users/svc-autoreleasejs "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(jM (842acaa05b5d927d2477fbddf6fa0fde2ee953b2je ^https://api.github.com/repos/palantir/atlasdb/commits/842acaa05b5d927d2477fbddf6fa0fde2ee953b2js Shttps://github.com/palantir/atlasdb/commit/842acaa05b5d927d2477fbddf6fa0fde2ee953b2uastats}(totalK 	additionsK 	deletionsK ufiles]}(jM (7afdb03a2af8b0138cc1524e0d39e84990810e28filename changelog/0.881.0/pr-6624.v2.ymlstatusrenamedj K j K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/37691cc03c3ab63db46ca654ed45ca11faca4b7a/changelog%2F0.881.0%2Fpr-6624.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/37691cc03c3ab63db46ca654ed45ca11faca4b7a/changelog%2F0.881.0%2Fpr-6624.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.881.0%2Fpr-6624.v2.yml?ref=37691cc03c3ab63db46ca654ed45ca11faca4b7aprevious_filename$changelog/@unreleased/pr-6624.v2.ymluau(e883300993542228fb532648ab8521e1ee9e6979}(sha(e883300993542228fb532648ab8521e1ee9e6979node_idEC_kwDOAjP5fdoAKGU4ODMzMDA5OTM1NDIyMjhmYjUzMjY0OGFiODUyMWUxZWU5ZTY5Nzkcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-15T14:20:02Zu	committer}(j̪ svc-autoreleasejΪ -pd-foundry-infrastructure-notify@palantir.comjЪ 2023-05-15T14:20:02Zumessage"Autorelease 0.854.0-rc3

[skip ci]tree}(jĪ (60a9b09999bbc278f62da60f99ed20c6192976f2url`https://api.github.com/repos/palantir/atlasdb/git/trees/60a9b09999bbc278f62da60f99ed20c6192976f2ujܪ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e883300993542228fb532648ab8521e1ee9e6979
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRiP5MACgkQhbrR8ip7mDDCugEA/kUQqRqwIKDNrClpV9CI1yhe
EHWDpKQ2eSpQi7kP+V0BAMWwmXzl1RlVpouaxwUCWKISQt6CfyRlIPck1V/eZk6j
=X4Te
-----END PGP SIGNATURE-----
payloadX(  tree 60a9b09999bbc278f62da60f99ed20c6192976f2
parent 727522017abec6d0036f5249bbfaadf80bbec255
author aalouane <30903736+ergo14@users.noreply.github.com> 1684160402 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684160402 +0000

Autorelease 0.854.0-rc3

[skip ci]uujܪ ^https://api.github.com/repos/palantir/atlasdb/commits/e883300993542228fb532648ab8521e1ee9e6979html_urlShttps://github.com/palantir/atlasdb/commit/e883300993542228fb532648ab8521e1ee9e6979comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e883300993542228fb532648ab8521e1ee9e6979/commentsjʪ }(loginergo14idJjƪ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jܪ #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujҪ }(j svc-autoreleasej J(jƪ MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5jܪ ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j  :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj
 Userj uparents]}(jĪ (727522017abec6d0036f5249bbfaadf80bbec255jܪ ^https://api.github.com/repos/palantir/atlasdb/commits/727522017abec6d0036f5249bbfaadf80bbec255j Shttps://github.com/palantir/atlasdb/commit/727522017abec6d0036f5249bbfaadf80bbec255uastats}(totalK 	additionsK 	deletionsK ufiles]u(1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9}(sha(1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9node_idEC_kwDOAjP5fdoAKDFlOTZmZTZiMTZmZmFjNDNiYTg1OTEyMmUyYzRlZGUyYzdmYjFhYTkcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-04-14T17:19:03Zu	committer}(j4 GitHubj6 noreply@github.comj8 2023-04-14T17:19:03ZumessageRing workflow for workload server  (#6524)

* Add ring workflow

* code clean up

* Fix check style violations

* for real this time

* funky bug

* comments

* add additional tests + clean up

* test nits

* address nitstree}(j, (6dceb5c3b7d61a774c64e870768b0a85eba8e65eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/6dceb5c3b7d61a774c64e870768b0a85eba8e65eujD bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkOYsHCRBK7hj4Ov3rIwAA36UIAGv5URgXpmFXNFRcOtniuZ1k
SD3c1WjVkR2wym4i2cxDjA+rbtnM4bBf+HnVrtiRli1HnY18JhI/7mf9OJnJEn41
UaiQe6dBHWMGUzW9tHu2w32g5+TSq7xudzcpgihUI2fq4UeFY8fr84NqwKseyl25
cR/EjW2PAQzOMzwyLOuklV9p7YRR8G5Q79kuWnDDlsjK2N8V8WPqdMrf91Olh5j7
38JYGiMybnyYKO5mAEW5KiF27pKAhOXUjqN0XY+cXdu9NIMm8P8jz4vmy1Osv/eu
CfDEuRrWMg2aDshyRbO+jNegNik679x2padZEHK2yw+D8+kSgm88WDA7F6bSt/U=
=wLTw
-----END PGP SIGNATURE-----
payloadX  tree 6dceb5c3b7d61a774c64e870768b0a85eba8e65e
parent e7c36e9bc08f35736688903b36d22f3a8c001d16
author Sam-Kramer <sam.c.kramer@gmail.com> 1681492743 +0100
committer GitHub <noreply@github.com> 1681492743 +0100

Ring workflow for workload server  (#6524)

* Add ring workflow

* code clean up

* Fix check style violations

* for real this time

* funky bug

* comments

* add additional tests + clean up

* test nits

* address nitsuujD ^https://api.github.com/repos/palantir/atlasdb/commits/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9html_urlShttps://github.com/palantir/atlasdb/commit/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/commentsj2 }(login
Sam-KrameridJ^2_ j. MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jD 'https://api.github.com/users/Sam-KramerjR https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj: }(jW web-flowjY J/j. MDQ6VXNlcjE5ODY0NDQ3j[ 4https://avatars.githubusercontent.com/u/19864447?v=4j] h5jD %https://api.github.com/users/web-flowjR https://github.com/web-flowj` /https://api.github.com/users/web-flow/followersjb <https://api.github.com/users/web-flow/following{/other_user}jd 5https://api.github.com/users/web-flow/gists{/gist_id}jf <https://api.github.com/users/web-flow/starred{/owner}{/repo}jh 3https://api.github.com/users/web-flow/subscriptionsjj *https://api.github.com/users/web-flow/orgsjl +https://api.github.com/users/web-flow/reposjn 6https://api.github.com/users/web-flow/events{/privacy}jp 5https://api.github.com/users/web-flow/received_eventsjr Userjt uparents]}(j, (e7c36e9bc08f35736688903b36d22f3a8c001d16jD ^https://api.github.com/repos/palantir/atlasdb/commits/e7c36e9bc08f35736688903b36d22f3a8c001d16jR Shttps://github.com/palantir/atlasdb/commit/e7c36e9bc08f35736688903b36d22f3a8c001d16uastats}(totalMc	additionsMP	deletionsKufiles](}(j, (0af0f463fb79115401361fa63b2a86fc5fbbe84ffilenamejatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/KeyedTransactionTask.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.java?ref=1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9patchXD  @@ -30,4 +30,5 @@
  * an exception.
  */
 @FunctionalInterface
-public interface KeyedTransactionTask extends BiFunction<TransactionStore, Integer, Optional<WitnessedTransaction>> {}
+public interface KeyedTransactionTask<T extends TransactionStore>
+        extends BiFunction<T, Integer, Optional<WitnessedTransaction>> {}u}(j, (c14cafe2cad0f011ce8b5b31617cf86e0d9736faj matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunner.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javaj https://github.com/palantir/atlasdb/raw/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.java?ref=1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9j Xz  @@ -30,18 +30,17 @@
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 
-public final class ConcurrentTransactionRunner {
-    private final TransactionStore transactionStore;
+public final class ConcurrentTransactionRunner<T extends TransactionStore> {
+    private final T transactionStore;
     private final ListeningExecutorService listeningExecutorService;
 
-    public ConcurrentTransactionRunner(
-            TransactionStore transactionStore, ListeningExecutorService listeningExecutorService) {
+    public ConcurrentTransactionRunner(T transactionStore, ListeningExecutorService listeningExecutorService) {
         this.transactionStore = transactionStore;
         this.listeningExecutorService = listeningExecutorService;
     }
 
     public Future<List<WitnessedTransaction>> runConcurrentTransactionTask(
-            KeyedTransactionTask transactionTask, int taskMultiplicity) {
+            KeyedTransactionTask<T> transactionTask, int taskMultiplicity) {
         Preconditions.checkArgument(
                 taskMultiplicity >= 0,
                 "Tasks must be run a non-negative number of times",u}(j, (c852afbb5ada25c05d1126818d128fa8dce0b123j aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javaj modifiedj K
j K
j Kj https://github.com/palantir/atlasdb/blob/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj https://github.com/palantir/atlasdb/raw/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9j X  @@ -28,15 +28,15 @@
 import java.util.concurrent.Future;
 import java.util.stream.Collectors;
 
-public final class DefaultWorkflow implements Workflow {
-    private final ConcurrentTransactionRunner concurrentTransactionRunner;
-    private final KeyedTransactionTask transactionTask;
+public final class DefaultWorkflow<T extends TransactionStore> implements Workflow {
+    private final ConcurrentTransactionRunner<T> concurrentTransactionRunner;
+    private final KeyedTransactionTask<T> transactionTask;
     private final WorkflowConfiguration workflowConfiguration;
     private final ReadOnlyTransactionStore readOnlyTransactionStore;
 
     private DefaultWorkflow(
-            ConcurrentTransactionRunner concurrentTransactionRunner,
-            KeyedTransactionTask transactionTask,
+            ConcurrentTransactionRunner<T> concurrentTransactionRunner,
+            KeyedTransactionTask<T> transactionTask,
             WorkflowConfiguration workflowConfiguration,
             ReadOnlyTransactionStore readOnlyTransactionStore) {
         this.concurrentTransactionRunner = concurrentTransactionRunner;
@@ -45,13 +45,13 @@ private DefaultWorkflow(
         this.readOnlyTransactionStore = readOnlyTransactionStore;
     }
 
-    public static Workflow create(
-            TransactionStore store,
-            KeyedTransactionTask transactionTask,
+    public static <T extends TransactionStore> Workflow create(
+            T store,
+            KeyedTransactionTask<T> transactionTask,
             WorkflowConfiguration configuration,
             ListeningExecutorService executionExecutor) {
-        return new DefaultWorkflow(
-                new ConcurrentTransactionRunner(store, executionExecutor),
+        return new DefaultWorkflow<>(
+                new ConcurrentTransactionRunner<>(store, executionExecutor),
                 transactionTask,
                 configuration,
                 new ReadOnlyTransactionStore(store));u}(j, (42c9022acb53a72eea92413c05355dd9e46a328aj `atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingGraph.javaj addedj Kyj K j Kyj https://github.com/palantir/atlasdb/blob/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaj https://github.com/palantir/atlasdb/raw/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.java?ref=1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9j X'  @@ -0,0 +1,121 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.google.common.collect.Iterators;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import one.util.streamex.EntryStream;
+
+public final class RingGraph {
+    private final Map<Integer, Integer> ring;
+
+    private RingGraph(Map<Integer, Integer> ring) {
+        this.ring = ring;
+    }
+
+    public static RingGraph from(Map<Integer, Integer> ring) throws RingValidationException {
+        validateGraphIsRing(ring);
+        return new RingGraph(ring);
+    }
+
+    public static RingGraph fromPartial(Map<Integer, Optional<Integer>> ring) throws RingValidationException {
+        if (isEmpty(ring)) {
+            return RingGraph.generateNewRing(ring.keySet());
+        }
+
+        Preconditions.checkArgument(
+                !anyEmpty(ring),
+                "Graph contains missing entries, thus cannot be made into a ring.",
+                SafeArg.of("ring", ring));
+
+        return from(EntryStream.of(ring).mapValues(Optional::get).toMap());
+    }
+
+    public static RingGraph create(int size) {
+        return generateNewRing(IntStream.range(0, size).boxed().collect(Collectors.toSet()));
+    }
+
+    /**
+     * Checks that the ring is correct by verifying:
+     * (1) There are no missing entries
+     * (2) There are no sub-cycles
+     * (3) The ring is connected
+     *
+     * This is simply done by iterating over the length of the ring, and validating that we visited each node.
+     * To ensure that the ring is connected, we do not track our entry into the ring (i.e. the first node we visit),
+     * as we expect to have it be visited again as the last node.
+     */
+    public static void validateGraphIsRing(Map<Integer, Integer> ring) throws RingValidationException {
+        Integer initialNode = ring.keySet().iterator().next();
+        Set<Integer> remainingNodes = new HashSet<>(ring.keySet());
+        int maxIterations = ring.keySet().size();
+        Integer nextNode = ring.get(initialNode);
+        for (int iterations = 0; iterations < maxIterations; iterations++) {
+            // If we reference a node that does not exist in our ring, it means we are missing data
+            if (!ring.containsKey(nextNode)) {
+                RingValidationException.throwMissingEntries(ring);
+            }
+
+            // If the node already has been visited, it means we're in a cycle within our ring
+            if (!remainingNodes.remove(nextNode)) {
+                RingValidationException.throwEarlyCycle(ring);
+            }
+
+            nextNode = ring.get(nextNode);
+        }
+    }
+
+    public RingGraph generateNewRing() {
+        return generateNewRing(ring.keySet());
+    }
+
+    /**
+     * Returns a valid new ring with the same nodes but randomly generated edges.
+     */
+    private static RingGraph generateNewRing(Set<Integer> nodes) {
+        List<Integer> keys = new ArrayList<>(nodes);
+        Collections.shuffle(keys);
+        Iterator<Integer> valuesIterator = Iterators.cycle(keys);
+        valuesIterator.next();
+        return new RingGraph(
+                keys.stream().collect(Collectors.toMap(Function.identity(), _node -> valuesIterator.next())));
+    }
+
+    public Map<Integer, Integer> asMap() {
+        return ring;
+    }
+
+    private static boolean isEmpty(Map<Integer, Optional<Integer>> ring) {
+        return ring.values().stream().allMatch(Optional::isEmpty);
+    }
+
+    private static boolean anyEmpty(Map<Integer, Optional<Integer>> ring) {
+        return ring.values().stream().anyMatch(Optional::isEmpty);
+    }
+}u}(j, (109ed2a6c2ef9753e6500d3ea6827a032511da81j natlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingValidationException.javaj addedj K?j K j K?j https://github.com/palantir/atlasdb/blob/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javaj https://github.com/palantir/atlasdb/raw/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.java?ref=1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9j X  @@ -0,0 +1,63 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.palantir.logsafe.Arg;
+import com.palantir.logsafe.Safe;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.SafeLoggable;
+import java.util.List;
+import java.util.Map;
+
+public final class RingValidationException extends IllegalArgumentException implements SafeLoggable {
+
+    private final Map<Integer, Integer> ring;
+    private final Type type;
+
+    private RingValidationException(Map<Integer, Integer> ring, Type type) {
+        this.ring = ring;
+        this.type = type;
+    }
+
+    @Override
+    public @Safe String getLogMessage() {
+        return "Detected an error in the graph when attempting to validate as a ring.";
+    }
+
+    @Override
+    public List<Arg<?>> getArgs() {
+        return List.of(SafeArg.of("ring", ring), SafeArg.of("type", type));
+    }
+
+    public static void throwEarlyCycle(Map<Integer, Integer> ring) throws RingValidationException {
+        throw new RingValidationException(ring, Type.EARLY_CYCLE);
+    }
+
+    public static void throwMissingEntries(Map<Integer, Integer> ring) throws RingValidationException {
+        throw new RingValidationException(ring, Type.MISSING_ENTRIES);
+    }
+
+    enum Type {
+        // Detected a cycle in our ring before visiting all nodes,
+        // indicating the integrity of our ring has been compromised.
+        EARLY_CYCLE,
+
+        // Detected a reference to a node that does not exist,
+        // indicating the integrity of our ring has been compromised.
+        MISSING_ENTRIES;
+    }
+}u}(j, (f2b29bc6a4a030ffa7d19578ea5ec47a9d861ab5j patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowConfiguration.javaj addedj K2j K j K2j https://github.com/palantir/atlasdb/blob/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.java?ref=1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9j X[  @@ -0,0 +1,50 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import com.palantir.atlasdb.workload.workflow.ImmutableSingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.TableConfiguration;
+import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonTypeName(RingWorkflowConfiguration.TYPE)
+public interface RingWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "ring";
+
+    TableConfiguration tableConfiguration();
+
+    default Integer ringSize() {
+        return 3;
+    }
+
+    @Value.Default
+    default double rateLimit() {
+        return 100;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(j, (7e62e75fc5695d084b1a2d7793eaf1b05fef0bd9j datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflows.javaj addedj Kgj K j Kgj https://github.com/palantir/atlasdb/blob/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj https://github.com/palantir/atlasdb/raw/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.java?ref=1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9j Xh  @@ -0,0 +1,103 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.Map;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+
+/**
+ * Runs a workflow which creates a representation of a ring using key-value pairs.
+ * The ring is validated and shuffled after every iteration. If the ring ever becomes invalid (cycles, missing data),
+ * this indicates that there is a bug in our underlying storage infrastructure, as snapshot isolation has been violated.
+ * Snapshot isolation would be violated here, as it indicates that we did not detect a write-write conflict,
+ * as every write will be of a correct ring.
+ */
+public final class RingWorkflows {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(RingWorkflows.class);
+
+    private static final int COLUMN = 0;
+
+    private RingWorkflows() {
+        // static factory
+    }
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration ringWorkflowConfiguration,
+            ListeningExecutorService executionExecutor,
+            AtomicBoolean skipRunning) {
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
+                ringWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    private static Optional<WitnessedTransaction> run(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration workflowConfiguration,
+            AtomicBoolean skipRunning) {
+        if (skipRunning.get()) {
+            return Optional.empty();
+        }
+
+        workflowConfiguration.transactionRateLimiter().acquire();
+        String table = workflowConfiguration.tableConfiguration().tableName();
+        Integer ringSize = workflowConfiguration.ringSize();
+        return store.readWrite(txn -> {
+            Map<Integer, Optional<Integer>> data = fetchData(table, ringSize, txn);
+            try {
+                RingGraph ringGraph = RingGraph.fromPartial(data);
+                ringGraph
+                        .generateNewRing()
+                        .asMap()
+                        .forEach((rootNode, nextNode) -> txn.write(table, cell(rootNode), nextNode));
+            } catch (IllegalArgumentException e) {
+                if (skipRunning.compareAndSet(false, true)) {
+                    log.error("Detected violation with our ring.", e);
+                }
+            }
+        });
+    }
+
+    private static Map<Integer, Optional<Integer>> fetchData(
+            String table, int ringSize, InteractiveTransaction transaction) {
+        return IntStream.range(0, ringSize)
+                .boxed()
+                .collect(Collectors.toMap(Function.identity(), index -> transaction.read(table, cell(index))));
+    }
+
+    @VisibleForTesting
+    static ImmutableWorkloadCell cell(Integer node) {
+        return ImmutableWorkloadCell.of(node, COLUMN);
+    }
+}u       }(j, (9fe533e5541cbe57b1ffd7b58637bec5a246f6e7j qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunnerTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj https://github.com/palantir/atlasdb/raw/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.java?ref=1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9j Xr  @@ -49,11 +49,12 @@
 public class ConcurrentTransactionRunnerTest {
     private static final int DEFAULT_TASK_MULTIPLICITY = 100;
 
-    private final KeyedTransactionTask task = mock(KeyedTransactionTask.class);
+    private final KeyedTransactionTask<TransactionStore> task = mock(KeyedTransactionTask.class);
     private final TransactionStore store = mock(TransactionStore.class);
     private final DeterministicScheduler scheduler = new DeterministicScheduler();
     private final ListeningExecutorService executorService = MoreExecutors.listeningDecorator(scheduler);
-    private final ConcurrentTransactionRunner runner = new ConcurrentTransactionRunner(store, executorService);
+    private final ConcurrentTransactionRunner<TransactionStore> runner =
+            new ConcurrentTransactionRunner<>(store, executorService);
 
     @Before
     public void setupTask() {u}(j, (64cf1619b17fbb0e21a1c034b30a32619f4a4f18j eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj https://github.com/palantir/atlasdb/raw/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9j X"  @@ -36,7 +36,7 @@
 public class DefaultWorkflowTest {
     private final TransactionStore store = mock(TransactionStore.class);
 
-    private final KeyedTransactionTask transactionTask = mock(KeyedTransactionTask.class);
+    private final KeyedTransactionTask<TransactionStore> transactionTask = mock(KeyedTransactionTask.class);
 
     private final ScheduledExecutorService scheduler = PTExecutors.newSingleThreadScheduledExecutor();
     private final ListeningExecutorService executionExecutor = MoreExecutors.listeningDecorator(scheduler);u}(j, (c1f634d4126720aa2ed7f3a586024740f66c9ab0j datlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingGraphTest.javaj addedj Kjj K j Kjj https://github.com/palantir/atlasdb/blob/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj https://github.com/palantir/atlasdb/raw/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.java?ref=1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9j XM  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.google.common.collect.ImmutableMap;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Map;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class RingGraphTest {
+
+    private static final Map<Integer, Integer> VALID_RING = ImmutableMap.of(0, 2, 1, 0, 2, 1);
+
+    @Test
+    public void fromPartialGeneratesRandomRingWhenAllKeysEmpty() {
+        Map<Integer, Optional<Integer>> emptyEdges = ImmutableMap.of(1, Optional.empty(), 2, Optional.empty());
+        assertThatCode(() -> RingGraph.fromPartial(emptyEdges)).doesNotThrowAnyException();
+    }
+
+    @Test
+    public void fromPartialThrowsWhenSomeEntriesAreEmpty() {
+        Map<Integer, Optional<Integer>> partiallyEmptyRing = ImmutableMap.of(0, Optional.of(1), 1, Optional.empty());
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.fromPartial(partiallyEmptyRing))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Graph contains missing entries, thus cannot be made into a ring.")
+                .hasExactlyArgs(SafeArg.of("ring", partiallyEmptyRing));
+    }
+
+    @Test
+    public void fromThrowsMissingEntriesWhenNodeReferencedDoesNotExist() {
+        Map<Integer, Integer> missingNodesRing = ImmutableMap.of(0, 2, 1, 0);
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(missingNodesRing))
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.MISSING_ENTRIES),
+                        SafeArg.of("ring", missingNodesRing));
+    }
+
+    @Test
+    public void fromThrowsCycleExceptionWhenUnableToReachEveryNode() {
+        Map<Integer, Integer> incompleteRing = ImmutableMap.of(0, 1, 1, 1, 2, 0);
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(incompleteRing))
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.EARLY_CYCLE),
+                        SafeArg.of("ring", incompleteRing));
+    }
+
+    @Test
+    public void fromThrowsCycleExceptionWhenEntryNodeNotRevisited() {
+        Map<Integer, Integer> incompleteRing = ImmutableMap.of(0, 1, 1, 1);
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(incompleteRing))
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.EARLY_CYCLE),
+                        SafeArg.of("ring", incompleteRing));
+    }
+
+    @Test
+    public void generateNewRingCreatesDifferentRing() {
+        RingGraph ringGraph = RingGraph.create(8);
+        boolean uniqueAtLeastOnce = false;
+        for (int iteration = 0; iteration < 10; iteration++) {
+            if (!ringGraph.generateNewRing().asMap().equals(ringGraph.asMap())) {
+                uniqueAtLeastOnce = true;
+                break;
+            }
+        }
+        assertThat(uniqueAtLeastOnce)
+                .as("Check ring generation multiple times as we could randomly generate an identical ring")
+                .isTrue();
+    }
+
+    @Test
+    public void generateNewRingReturnsValidRing() {
+        RingGraph ring = RingGraph.create(8);
+        for (int count = 0; count < 1000; count++) {
+            assertThatCode(() -> RingGraph.from(ring.generateNewRing().asMap())).doesNotThrowAnyException();
+        }
+    }
+
+    @Test
+    public void asMapConvertsCorrectly() {
+        assertThat(RingGraph.from(VALID_RING).asMap()).isEqualTo(VALID_RING);
+    }
+}u}(j, (b76eb98bf9ca3cc3502b229247cd0eb65cd5a3cej hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowsTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.java?ref=1e96fe6b16ffac43ba859122e2c4ede2c7fb1aa9j X"  @@ -0,0 +1,129 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.atlasdb.workload.workflow.ImmutableTableConfiguration;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.Test;
+
+public class RingWorkflowsTest {
+
+    private static final String TABLE_NAME = "ring.ring";
+    private static final RingWorkflowConfiguration CONFIGURATION = ImmutableRingWorkflowConfiguration.builder()
+            .tableConfiguration(ImmutableTableConfiguration.builder()
+                    .tableName(TABLE_NAME)
+                    .isolationLevel(IsolationLevel.SNAPSHOT)
+                    .build())
+            .iterationCount(1)
+            .build();
+
+    private final InteractiveTransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SNAPSHOT)));
+
+    private final AtomicBoolean skipRunning = new AtomicBoolean(false);
+
+    private final Workflow workflow = RingWorkflows.create(
+            memoryStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)),
+            skipRunning);
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore())
+                .as("should return a read only transaction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void ringWorkflowContainsInitialReadsForRing() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.ringSize())
+                .boxed()
+                .map(index ->
+                        WitnessedReadTransactionAction.of(TABLE_NAME, RingWorkflows.cell(index), Optional.empty()))
+                .collect(Collectors.toList());
+        assertThat(actions).containsAll(initialReadActions);
+    }
+
+    @Test
+    public void ringWorkflowContainsInitialWritesForRing() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WorkloadCell> actualWrittenCells = actions.stream()
+                .filter(WitnessedWriteTransactionAction.class::isInstance)
+                .map(WitnessedWriteTransactionAction.class::cast)
+                .map(WitnessedWriteTransactionAction::cell)
+                .collect(Collectors.toList());
+
+        List<WorkloadCell> expectedWrittenCells = IntStream.range(0, CONFIGURATION.ringSize())
+                .boxed()
+                .map(RingWorkflows::cell)
+                .collect(Collectors.toList());
+
+        assertThat(actualWrittenCells).containsAll(expectedWrittenCells);
+    }
+
+    @Test
+    public void ringWorkflowSetsSkipRunningToTrueWhenInvalidRingPresent() {
+        assertThat(skipRunning).isFalse();
+        memoryStore.readWrite(txn -> txn.write(TABLE_NAME, RingWorkflows.cell(0), 99));
+        workflow.run();
+        assertThat(skipRunning).isTrue();
+    }
+
+    @Test
+    public void ringWorkflowDoesNotWitnessTransactionWhenSkipRunningSetToTrue() {
+        skipRunning.set(true);
+        assertThat(workflow.run().history()).isEmpty();
+    }
+}ueu(3c636eb2cebe955ba7ba84648167e76dce86e46c}(sha(3c636eb2cebe955ba7ba84648167e76dce86e46cnode_idEC_kwDOAjP5fdoAKDNjNjM2ZWIyY2ViZTk1NWJhN2JhODQ2NDgxNjdlNzZkY2U4NmU0NmMcommit}(author}(nameMohammed Daudaliemailmdaudali@palantir.comdate2023-03-23T16:23:58Zu	committer}(j GitHubj noreply@github.comj 2023-03-23T16:23:58ZumessageJAdd @Nullable to (Batch)ColumnRangeSelection and the puncher store (#6481)tree}(j (4d5ada1589e3475c9c34c21354e5f6f090c756f3url`https://api.github.com/repos/palantir/atlasdb/git/trees/4d5ada1589e3475c9c34c21354e5f6f090c756f3uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3c636eb2cebe955ba7ba84648167e76dce86e46c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkHH0eCRBK7hj4Ov3rIwAAemQIAFMriXHAr6syR6nTp8LlFYq4
qm7rp6R2cVeDyk6n/Z94bdz39fz97fAW/zLdAKuxxua3TrOJmtDh9tO6D+w64/4G
pMRzwSJaVZw0V2dk9AkqGinzQzEl7AQAY9Ka6r9xuQTuSWgF9uf+O/kYLxQIRLe8
APEKXkHfHUCFRNVYhSs1gx8BCyPbkvoZRBwbksSH9+OhB2/3Hc/beoC/jvBUV7Aa
J0uJoXmyMnpZJhR+6+oPdq66ttr2cEqikONb5+gvSKHr+kopKeEVbBdIYkGAZTBn
z/qk7vzz+qV/xO4gt6w+JVTgIJijD+z1yhe5I89q5m7G96Bn0133QgmwXgyj6ME=
=olpP
-----END PGP SIGNATURE-----
payloadX$  tree 4d5ada1589e3475c9c34c21354e5f6f090c756f3
parent 720d0e8e70e1633704a6ba93946ce9e78636fc11
author Mohammed Daudali <mdaudali@palantir.com> 1679588638 +0000
committer GitHub <noreply@github.com> 1679588638 +0000

Add @Nullable to (Batch)ColumnRangeSelection and the puncher store (#6481)

 uuj ^https://api.github.com/repos/palantir/atlasdb/commits/3c636eb2cebe955ba7ba84648167e76dce86e46chtml_urlShttps://github.com/palantir/atlasdb/commit/3c636eb2cebe955ba7ba84648167e76dce86e46ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3c636eb2cebe955ba7ba84648167e76dce86e46c/commentsj }(loginmdaudaliidJ j MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5j %https://api.github.com/users/mdaudalij https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminuj }(j web-flowj  J/j MDQ6VXNlcjE5ODY0NDQ3j" 4https://avatars.githubusercontent.com/u/19864447?v=4j$ h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj' /https://api.github.com/users/web-flow/followersj) <https://api.github.com/users/web-flow/following{/other_user}j+ 5https://api.github.com/users/web-flow/gists{/gist_id}j- <https://api.github.com/users/web-flow/starred{/owner}{/repo}j/ 3https://api.github.com/users/web-flow/subscriptionsj1 *https://api.github.com/users/web-flow/orgsj3 +https://api.github.com/users/web-flow/reposj5 6https://api.github.com/users/web-flow/events{/privacy}j7 5https://api.github.com/users/web-flow/received_eventsj9 Userj; uparents]}(j (720d0e8e70e1633704a6ba93946ce9e78636fc11j ^https://api.github.com/repos/palantir/atlasdb/commits/720d0e8e70e1633704a6ba93946ce9e78636fc11j Shttps://github.com/palantir/atlasdb/commit/720d0e8e70e1633704a6ba93946ce9e78636fc11uastats}(totalK	additionsK	deletionsKufiles](}(j (0080c3f7113ff49f387d0c758020e1ca01ce5e35filenameZatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/BatchColumnRangeSelection.javastatusmodifiedjU KjV KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/3c636eb2cebe955ba7ba84648167e76dce86e46c/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FBatchColumnRangeSelection.javaraw_urlhttps://github.com/palantir/atlasdb/raw/3c636eb2cebe955ba7ba84648167e76dce86e46c/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FBatchColumnRangeSelection.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FBatchColumnRangeSelection.java?ref=3c636eb2cebe955ba7ba84648167e76dce86e46cpatchX|  @@ -22,6 +22,7 @@
 import com.palantir.atlasdb.encoding.PtBytes;
 import java.io.Serializable;
 import java.util.regex.Pattern;
+import org.checkerframework.checker.nullness.qual.Nullable;
 
 public final class BatchColumnRangeSelection implements Serializable {
     private static final long serialVersionUID = 1L;
@@ -40,8 +41,8 @@ public static BatchColumnRangeSelection create(ColumnRangeSelection columnRangeS
 
     @JsonCreator
     public static BatchColumnRangeSelection create(
-            @JsonProperty("startCol") byte[] startCol,
-            @JsonProperty("endCol") byte[] endCol,
+            @JsonProperty("startCol") byte @Nullable [] startCol,
+            @JsonProperty("endCol") byte @Nullable [] endCol,
             @JsonProperty("batchHint") int batchHint) {
         return new BatchColumnRangeSelection(new ColumnRangeSelection(startCol, endCol), batchHint);
     }u}(j (19e81f650612c73f16c316beabd226ea34ac6293j[ Uatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/ColumnRangeSelection.javaj] modifiedjU KjV Kj_ Kj` https://github.com/palantir/atlasdb/blob/3c636eb2cebe955ba7ba84648167e76dce86e46c/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FColumnRangeSelection.javajb https://github.com/palantir/atlasdb/raw/3c636eb2cebe955ba7ba84648167e76dce86e46c/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FColumnRangeSelection.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FColumnRangeSelection.java?ref=3c636eb2cebe955ba7ba84648167e76dce86e46cjf X  @@ -26,6 +26,7 @@
 import java.util.Arrays;
 import java.util.Objects;
 import java.util.regex.Pattern;
+import org.checkerframework.checker.nullness.qual.Nullable;
 
 public class ColumnRangeSelection implements Serializable {
     private static final long serialVersionUID = 1L;
@@ -36,7 +37,8 @@ public class ColumnRangeSelection implements Serializable {
     private final byte[] endCol;
 
     @JsonCreator
-    public ColumnRangeSelection(@JsonProperty("startCol") byte[] startCol, @JsonProperty("endCol") byte[] endCol) {
+    public ColumnRangeSelection(
+            @JsonProperty("startCol") byte @Nullable [] startCol, @JsonProperty("endCol") byte @Nullable [] endCol) {
         this.startCol = Objects.requireNonNullElse(startCol, PtBytes.EMPTY_BYTE_ARRAY);
         this.endCol = Objects.requireNonNullElse(endCol, PtBytes.EMPTY_BYTE_ARRAY);
         if (!isValidRange(this.startCol, this.endCol)) {u}(j (a25afbbd55977ee4a1b82d1a983a012dc886d075j[ _atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/cleaner/KeyValueServicePuncherStore.javaj] modifiedjU KjV Kj_ Kj` https://github.com/palantir/atlasdb/blob/3c636eb2cebe955ba7ba84648167e76dce86e46c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FKeyValueServicePuncherStore.javajb https://github.com/palantir/atlasdb/raw/3c636eb2cebe955ba7ba84648167e76dce86e46c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FKeyValueServicePuncherStore.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FKeyValueServicePuncherStore.java?ref=3c636eb2cebe955ba7ba84648167e76dce86e46cjf X  @@ -41,6 +41,7 @@
 import java.util.Optional;
 import java.util.concurrent.ThreadLocalRandom;
 import java.util.concurrent.TimeUnit;
+import org.checkerframework.checker.nullness.qual.Nullable;
 import org.immutables.value.Value.Check;
 import org.immutables.value.Value.Immutable;
 
@@ -185,7 +186,7 @@ public static long getMillisForTimestamp(KeyValueService kvs, long timestamp) {
      * within the specified bounds.
      */
     public static Optional<MillisAndMaybeTimestamp> getMillisForTimestampWithinBounds(
-            KeyValueService kvs, long timestamp, MillisAndMaybeTimestamp lowerBound, long upperBound) {
+            KeyValueService kvs, long timestamp, @Nullable MillisAndMaybeTimestamp lowerBound, long upperBound) {
         MillisAndMaybeTimestamp lowerBoundToUse =
                 Optional.ofNullable(lowerBound).orElseGet(() -> findOlder(kvs, timestamp, upperBound));
 ueu(72f1a3438d004932b9c397eb8ef9e445611cd02f}(sha(72f1a3438d004932b9c397eb8ef9e445611cd02fnode_idEC_kwDOAjP5fdoAKDcyZjFhMzQzOGQwMDQ5MzJiOWMzOTdlYjhlZjllNDQ1NjExY2QwMmYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-24T22:16:19Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-05-24T22:16:19Zumessageclean uptree}(jz (320e8d281a4b3cc7d8ebcae9c40ba3671c5a6457url`https://api.github.com/repos/palantir/atlasdb/git/trees/320e8d281a4b3cc7d8ebcae9c40ba3671c5a6457uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/72f1a3438d004932b9c397eb8ef9e445611cd02f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRujLMACgkQmPPOpKR4
XS03hgf+PvyFUwcmM3+5HYKlm4ADGRiMD8VwA0aRFFPnwEUYv7+y9wU8ikYIoDlD
vxIfr9zuKpziLznh4Gaj9qoe33VjJ6AD7eB7WUE5xtncP9/UlP0gScRDp/776bmg
1Qo5DK2bZ3X+PKzD+jIlZslZAhJ8SXefdenaVXZSYAWzp7UeympU+CBarvYC0QoY
Wd3oY30nVk0Tx0bB6EV9UFgauWUGpTdf8sjGbATqm9KWzNkSkWHxfYlo5MBll0rU
uLEeR4/e/zkgKFcS25/wKxxecK/EIn1scGP8vmgx1DOhdLplTSpjg7CZeU9jWL44
h4XAZYyVzCGnxk7oEBUXTt1AOPzWbA==
=F2SQ
-----END PGP SIGNATURE-----payloadtree 320e8d281a4b3cc7d8ebcae9c40ba3671c5a6457
parent c06734f7e17f8cc5fd1695ee076ec78b82923ffb
author Sam Kramer <skramer@palantir.com> 1684966579 +0100
committer Sam Kramer <skramer@palantir.com> 1684966579 +0100

clean up
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/72f1a3438d004932b9c397eb8ef9e445611cd02fhtml_urlShttps://github.com/palantir/atlasdb/commit/72f1a3438d004932b9c397eb8ef9e445611cd02fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/72f1a3438d004932b9c397eb8ef9e445611cd02f/commentsj }(login
Sam-KrameridJ^2_ j| MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j| MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj¬ uparents]}(jz (c06734f7e17f8cc5fd1695ee076ec78b82923ffbj ^https://api.github.com/repos/palantir/atlasdb/commits/c06734f7e17f8cc5fd1695ee076ec78b82923ffbj Shttps://github.com/palantir/atlasdb/commit/c06734f7e17f8cc5fd1695ee076ec78b82923ffbuastats}(totalKP	additionsK2	deletionsKufiles]}(jz (bf0b0dd91c75134ca71cb4b3c9a2f311c1416915filenameaatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javastatusmodifiedjܬ K2jݬ KchangesKPblob_urlhttps://github.com/palantir/atlasdb/blob/72f1a3438d004932b9c397eb8ef9e445611cd02f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/72f1a3438d004932b9c397eb8ef9e445611cd02f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=72f1a3438d004932b9c397eb8ef9e445611cd02fpatchX  @@ -60,39 +60,59 @@ static Workflow create(
             RandomWorkflowConfiguration randomWorkflowConfig,
             ListeningExecutorService executionExecutor,
             SecureRandom random) {
+        RandomWorkflowTask task = new RandomWorkflowTask(randomWorkflowConfig, random);
         return DefaultWorkflow.create(
-                store,
-                (txnStore, index) -> run(txnStore, randomWorkflowConfig, random),
-                randomWorkflowConfig,
-                executionExecutor);
+                store, (txnStore, _index) -> task.run(txnStore), randomWorkflowConfig, executionExecutor);
     }
 
-    private static Optional<WitnessedTransaction> run(
-            TransactionStore store, RandomWorkflowConfiguration workflowConfiguration, SecureRandom random) {
-        workflowConfiguration.transactionRateLimiter().acquire();
-        String tableName = workflowConfiguration.tableConfiguration().tableName();
-        List<ReadTransactionAction> reads = IntStream.range(0, random.nextInt(workflowConfiguration.maxReads()))
-                .boxed()
-                .map(index -> ImmutableReadTransactionAction.of(
-                        tableName, cell(random.nextInt(workflowConfiguration.maxCells()))))
-                .collect(Collectors.toList());
-        List<WriteTransactionAction> writes = IntStream.range(0, random.nextInt(workflowConfiguration.maxWrites()))
-                .boxed()
-                .map(index -> ImmutableWriteTransactionAction.of(
-                        tableName, cell(random.nextInt(workflowConfiguration.maxCells())), random.nextInt(100)))
-                .collect(Collectors.toList());
-        List<DeleteTransactionAction> deletes = IntStream.range(0, random.nextInt(workflowConfiguration.maxDeletes()))
-                .boxed()
-                .map(index -> ImmutableDeleteTransactionAction.of(
-                        tableName, cell(random.nextInt(workflowConfiguration.maxCells()))))
-                .collect(Collectors.toList());
-        List<TransactionAction> actions =
-                Stream.of(reads, writes, deletes).flatMap(Collection::stream).collect(Collectors.toList());
-        Collections.shuffle(actions);
-        return store.readWrite(actions);
-    }
+    private static final class RandomWorkflowTask {
+
+        private final RandomWorkflowConfiguration workflowConfiguration;
+        private final SecureRandom random;
+
+        public RandomWorkflowTask(RandomWorkflowConfiguration workflowConfiguration, SecureRandom random) {
+            this.workflowConfiguration = workflowConfiguration;
+            this.random = random;
+        }
+
+        public Optional<WitnessedTransaction> run(TransactionStore store) {
+            workflowConfiguration.transactionRateLimiter().acquire();
+            List<TransactionAction> actions = Stream.of(
+                            generateReadActions(), generateWriteActions(), generateDeleteActions())
+                    .flatMap(Collection::stream)
+                    .collect(Collectors.toList());
+            Collections.shuffle(actions);
+            return store.readWrite(actions);
+        }
+
+        private List<ReadTransactionAction> generateReadActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxReads()))
+                    .boxed()
+                    .map(index -> ImmutableReadTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(), randomCell()))
+                    .collect(Collectors.toList());
+        }
+
+        private List<WriteTransactionAction> generateWriteActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxWrites()))
+                    .boxed()
+                    .map(index -> ImmutableWriteTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(),
+                            randomCell(),
+                            random.nextInt(100_000)))
+                    .collect(Collectors.toList());
+        }
+
+        private List<DeleteTransactionAction> generateDeleteActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxDeletes()))
+                    .boxed()
+                    .map(index -> ImmutableDeleteTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(), randomCell()))
+                    .collect(Collectors.toList());
+        }
 
-    private static WorkloadCell cell(int key) {
-        return ImmutableWorkloadCell.of(key, COLUMN);
+        private WorkloadCell randomCell() {
+            return ImmutableWorkloadCell.of(random.nextInt(workflowConfiguration.maxCells()), COLUMN);
+        }
     }
 }uau(2b596f45e988c8a7662fdb40379c71aaa7ba909b}(sha(2b596f45e988c8a7662fdb40379c71aaa7ba909bnode_idEC_kwDOAjP5fdoAKDJiNTk2ZjQ1ZTk4OGM4YTc2NjJmZGI0MDM3OWM3MWFhYTdiYTkwOWIcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-04-25T23:43:30Zu	committer}(j svc-excavator-botj svc-excavator-bot@palantir.comj 2023-04-25T23:43:30ZumessageExcavator:  Format Java filestree}(j (8e7113824bef259cd450dd53e115b3e4a59e3915url`https://api.github.com/repos/palantir/atlasdb/git/trees/8e7113824bef259cd450dd53e115b3e4a59e3915uj	 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2b596f45e988c8a7662fdb40379c71aaa7ba909b
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmRIZaIJEMmvEkpISILgAABRQAD/d8LAJepbivyqSAEMP/t2g9Cx
ChYJhgyQVQ0lD8Lq0scBAPVrORza1X3TCbrNj1xDuEIDacpFdrq0gXKO8O/5T3bB
=D2i6
-----END PGP SIGNATURE-----
payloadX  tree 8e7113824bef259cd450dd53e115b3e4a59e3915
parent 0e042c5db32fd526cc9e1506788bee2cda4f3a43
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1682466210 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1682466210 +0000

Excavator:  Format Java filesuuj	 ^https://api.github.com/repos/palantir/atlasdb/commits/2b596f45e988c8a7662fdb40379c71aaa7ba909bhtml_urlShttps://github.com/palantir/atlasdb/commit/2b596f45e988c8a7662fdb40379c71aaa7ba909bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2b596f45e988c8a7662fdb40379c71aaa7ba909b/commentsj }(loginsvc-excavator-botidJj MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j	 .https://api.github.com/users/svc-excavator-botj $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj }(j svc-excavator-botj Jj MDQ6VXNlcjMzMjY2MzY4j  4https://avatars.githubusercontent.com/u/33266368?v=4j" h5j	 .https://api.github.com/users/svc-excavator-botj $https://github.com/svc-excavator-botj% 8https://api.github.com/users/svc-excavator-bot/followersj' Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}j) >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}j+ Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}j- <https://api.github.com/users/svc-excavator-bot/subscriptionsj/ 3https://api.github.com/users/svc-excavator-bot/orgsj1 4https://api.github.com/users/svc-excavator-bot/reposj3 ?https://api.github.com/users/svc-excavator-bot/events{/privacy}j5 >https://api.github.com/users/svc-excavator-bot/received_eventsj7 Userj9 uparents]}(j (0e042c5db32fd526cc9e1506788bee2cda4f3a43j	 ^https://api.github.com/repos/palantir/atlasdb/commits/0e042c5db32fd526cc9e1506788bee2cda4f3a43j Shttps://github.com/palantir/atlasdb/commit/0e042c5db32fd526cc9e1506788bee2cda4f3a43uastats}(totalK	additionsK	deletionsKufiles]}(j (fd74865ae5dbce637d1193e9c89e5bfa0e17c398filenamebuild.gradlestatusmodifiedjS KjT KchangesKblob_url^https://github.com/palantir/atlasdb/blob/2b596f45e988c8a7662fdb40379c71aaa7ba909b/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/2b596f45e988c8a7662fdb40379c71aaa7ba909b/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=2b596f45e988c8a7662fdb40379c71aaa7ba909bpatchXw  @@ -17,7 +17,7 @@ buildscript {
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.30.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
         classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'uau(d5d4a6aca7620ecbcab65aa479f343ac63f1a44d}(sha(d5d4a6aca7620ecbcab65aa479f343ac63f1a44dnode_idEC_kwDOAjP5fdoAKGQ1ZDRhNmFjYTc2MjBlY2JjYWI2NWFhNDc5ZjM0M2FjNjNmMWE0NGQcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-06-15T15:29:42Zu	committer}(jp GitHubjr noreply@github.comjt 2023-06-15T15:29:42Zumessage=Excavator:  Update gradle-jdks infrastructure plugins (#6620)tree}(jh (a5b00e2ba3d02b4b654582c3099874684c4e6b53url`https://api.github.com/repos/palantir/atlasdb/git/trees/a5b00e2ba3d02b4b654582c3099874684c4e6b53uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d5d4a6aca7620ecbcab65aa479f343ac63f1a44d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkiy5mCRBK7hj4Ov3rIwAANTMIAHAssp0YjxgrKmaLjECXnDPy
NSMbVIhYXOagRVMUFvZjuyhRTVmjEiZqtgN6rbPx1qP3e95dbE6YppGvJgvW1SAw
u6fa5iytRXWr38FFj4DgSyiiOD/ljP5tSmnK/Nj4ltDwWFZxvyosjDnqbxbwVU6z
EHRdgJtZmjx6NQ10nyLN2iq++nvWiHoehzDgOBLllaxkLpna2UpKzoqR5u7QHFg7
mfLlYZVzXHg9FN8vUNnuDjINsIpwB+MAMqrsOd1+5hF1Y87oKte20DnMXpra0Yy6
/F6+Fs9JA60P60h4nxo+mQHqXHmcSnhh+ciJzIHPxOlg1LgRN5fsePODyLnuiJw=
=+84J
-----END PGP SIGNATURE-----
payloadX1  tree a5b00e2ba3d02b4b654582c3099874684c4e6b53
parent dd048044e77121a1dad5ecbe7f92767dbf1efab4
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1686842982 +0100
committer GitHub <noreply@github.com> 1686842982 +0800

Excavator:  Update gradle-jdks infrastructure plugins (#6620)

uuj ^https://api.github.com/repos/palantir/atlasdb/commits/d5d4a6aca7620ecbcab65aa479f343ac63f1a44dhtml_urlShttps://github.com/palantir/atlasdb/commit/d5d4a6aca7620ecbcab65aa479f343ac63f1a44dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d5d4a6aca7620ecbcab65aa479f343ac63f1a44d/commentsjn }(loginsvc-excavator-botidJjj MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j .https://api.github.com/users/svc-excavator-botj $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminujv }(j web-flowj J/jj MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(jh (dd048044e77121a1dad5ecbe7f92767dbf1efab4j ^https://api.github.com/repos/palantir/atlasdb/commits/dd048044e77121a1dad5ecbe7f92767dbf1efab4j Shttps://github.com/palantir/atlasdb/commit/dd048044e77121a1dad5ecbe7f92767dbf1efab4uastats}(totalK	additionsK	deletionsKufiles]}(jh (f5faceb534a5fec31faa48fcd733df682013af1bfilenamebuild.gradlestatusmodifiedjʭ Kj˭ KchangesKblob_url^https://github.com/palantir/atlasdb/blob/d5d4a6aca7620ecbcab65aa479f343ac63f1a44d/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/d5d4a6aca7620ecbcab65aa479f343ac63f1a44d/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=d5d4a6aca7620ecbcab65aa479f343ac63f1a44dpatchX  @@ -16,7 +16,7 @@ buildscript {
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
-        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
+        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'uau(275c9ecc472e84c0ef765ff7cac6367978d17d46}(sha(275c9ecc472e84c0ef765ff7cac6367978d17d46node_idEC_kwDOAjP5fdoAKDI3NWM5ZWNjNDcyZTg0YzBlZjc2NWZmN2NhYzYzNjc5NzhkMTdkNDYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-16T20:47:53Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-05-16T20:47:53Zumessage	ugh teststree}(j߭ (02a69df1bb5f453ac53d07430b29dfbe3548fd0durl`https://api.github.com/repos/palantir/atlasdb/git/trees/02a69df1bb5f453ac53d07430b29dfbe3548fd0duj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/275c9ecc472e84c0ef765ff7cac6367978d17d46
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRj6/kACgkQTLdFKain
zjxFrQf/VVnJrGejnX8K+ZVKuT6GrLnKaNfBrGW/BnqPsKChT5l35ItGw+EMjSxL
LB84YvVaRTWpE0hJjfZBEovP3P7aAfy2mJbrnFXSnkdXa0hVUUjyVj6cFsyAH3yl
Smt30lr67YrHkxJ7+1FPoXcz7/RyCY4VkO2EIVlZ7x8p0F4+niccQ3PXLfhhvFI7
2Vc7ZMH+RnfUV58/rCXUFwsJcYHZTjyQ0a/gQ5/mZuMYmgVEX/yBUCYVhyzJVi6h
2N7Ar1kkWBHuT5DBfKBl88ejqeBU18Pd2GsOzQh15fDDTZgk8TJ0ur9DMXRJ8hzs
lCbks/pYsrWDJhuJbb4zvOsPhDLkYA==
=DDiO
-----END PGP SIGNATURE-----payloadtree 02a69df1bb5f453ac53d07430b29dfbe3548fd0d
parent fa735235b22f333e2e17c949bfe5105c289b31f2
author Jeremy Kong <jkong@palantir.com> 1684270073 +0100
committer Jeremy Kong <jkong@palantir.com> 1684270073 +0100

ugh tests
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/275c9ecc472e84c0ef765ff7cac6367978d17d46html_urlShttps://github.com/palantir/atlasdb/commit/275c9ecc472e84c0ef765ff7cac6367978d17d46comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/275c9ecc472e84c0ef765ff7cac6367978d17d46/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j
 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj! 8https://api.github.com/users/jeremyk-91/events{/privacy}j# 7https://api.github.com/users/jeremyk-91/received_eventsj% Userj' uparents]}(j߭ (fa735235b22f333e2e17c949bfe5105c289b31f2j ^https://api.github.com/repos/palantir/atlasdb/commits/fa735235b22f333e2e17c949bfe5105c289b31f2j Shttps://github.com/palantir/atlasdb/commit/fa735235b22f333e2e17c949bfe5105c289b31f2uastats}(totalK	additionsK	deletionsK ufiles](}(j߭ (a7473ea1e605ae08dd6feec971f0cd30384c89e4filenameqatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/invariant/CrossCellInconsistencyTest.javastatusaddedjA K;jB K changesK;blob_urlhttps://github.com/palantir/atlasdb/blob/275c9ecc472e84c0ef765ff7cac6367978d17d46/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistencyTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/275c9ecc472e84c0ef765ff7cac6367978d17d46/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistencyTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistencyTest.java?ref=275c9ecc472e84c0ef765ff7cac6367978d17d46patchX
  @@ -0,0 +1,59 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Optional;
+import org.junit.Test;
+
+public class CrossCellInconsistencyTest {
+    // The constants in WorkloadTestHelper are not accessible from this package.
+    private static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_ONE =
+            TableAndWorkloadCell.of("foo", ImmutableWorkloadCell.of(1, 2));
+    private static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
+            TableAndWorkloadCell.of("foo", ImmutableWorkloadCell.of(3, 4));
+
+    @Test
+    public void cannotBeCreatedWithoutCells() {
+        assertThatThrownBy(() -> CrossCellInconsistency.builder().build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("A cross-cell inconsistency must consist of at least two cells");
+    }
+
+    @Test
+    public void cannotBeCreatedWithJustOneCell() {
+        assertThatThrownBy(() -> CrossCellInconsistency.builder()
+                        .putInconsistentValues(TABLE_WORKLOAD_CELL_ONE, Optional.of(3))
+                        .build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("A cross-cell inconsistency must consist of at least two cells");
+    }
+
+    @Test
+    public void canBeCreatedWithTwoCells() {
+        CrossCellInconsistency violation = CrossCellInconsistency.builder()
+                .putInconsistentValues(TABLE_WORKLOAD_CELL_ONE, Optional.of(3))
+                .putInconsistentValues(TABLE_WORKLOAD_CELL_TWO, Optional.empty())
+                .build();
+        assertThat(violation.inconsistentValues()).containsOnlyKeys(TABLE_WORKLOAD_CELL_ONE, TABLE_WORKLOAD_CELL_TWO);
+    }
+}u}(j߭ (f81ca2cda78c5a7466c513de769c86d8f5d608afjG latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javajI addedjA KjB K jK KjL https://github.com/palantir/atlasdb/blob/275c9ecc472e84c0ef765ff7cac6367978d17d46/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javajN https://github.com/palantir/atlasdb/raw/275c9ecc472e84c0ef765ff7cac6367978d17d46/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javajP https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=275c9ecc472e84c0ef765ff7cac6367978d17d46jR X(  @@ -0,0 +1,194 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.verifyNoMoreInteractions;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.invariant.CrossCellInconsistency;
+import com.palantir.atlasdb.workload.invariant.Invariant;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableFullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.List;
+import java.util.Optional;
+import java.util.function.Consumer;
+import java.util.stream.Collectors;
+import org.junit.Test;
+import org.mockito.ArgumentCaptor;
+
+public class TransientRowsWorkflowsTest {
+    private static final int ITERATION_COUNT = 5;
+    private static final String TABLE_NAME = "transient.rows";
+    private static final TransientRowsWorkflowConfiguration CONFIGURATION =
+            ImmutableTransientRowsWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow transientRowsWorkflow = TransientRowsWorkflows.create(
+            transactionStore, CONFIGURATION, MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)));
+    private final Invariant<List<CrossCellInconsistency>> invariant =
+            TransientRowsWorkflows.getSummaryLogInvariantReporter(CONFIGURATION).invariant();
+
+    @Test
+    public void transactionStoreIsReadOnly() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void eachTransactionIsWitnessed() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        List<WitnessedTransaction> witnessedTransactions = history.history();
+        assertThat(witnessedTransactions).hasSize(ITERATION_COUNT);
+    }
+
+    @Test
+    public void firstTransactionWritesTwoCells() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        List<WitnessedTransaction> witnessedTransactions = history.history();
+        assertThat(witnessedTransactions.get(0).actions())
+                .hasSize(2)
+                .containsExactlyInAnyOrder(
+                        WitnessedWriteTransactionAction.of(TABLE_NAME, ImmutableWorkloadCell.of(0, 1), 0),
+                        WitnessedWriteTransactionAction.of(TABLE_NAME, ImmutableWorkloadCell.of(-1, 0), 0));
+    }
+
+    @Test
+    public void subsequentTransactionsWriteThenReadThenDelete() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        List<WitnessedTransaction> witnessedTransactions = history.history();
+        for (int index = 1; index < ITERATION_COUNT; index++) {
+            assertThat(witnessedTransactions.get(index).actions()).hasSize(6).satisfies(actions -> {
+                assertThat(actions.subList(0, 2)).allMatch(action -> action instanceof WitnessedWriteTransactionAction);
+                assertThat(actions.subList(2, 4)).allMatch(action -> action instanceof WitnessedReadTransactionAction);
+                assertThat(actions.subList(4, 6))
+                        .allMatch(action -> action instanceof WitnessedDeleteTransactionAction);
+            });
+        }
+    }
+
+    @Test
+    public void invariantDoesNotReportViolationsUnderNormalOperation() {
+        Consumer<List<CrossCellInconsistency>> violationConsumer = mock(Consumer.class);
+        invariant.accept(transientRowsWorkflow.run(), violationConsumer);
+        verify(violationConsumer).accept(ImmutableList.of());
+        verifyNoMoreInteractions(violationConsumer);
+    }
+
+    @Test
+    public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
+        Consumer<List<CrossCellInconsistency>> violationConsumer = mock(Consumer.class);
+        WorkflowHistory history = transientRowsWorkflow.run();
+        transactionStore.readWrite(txn -> txn.delete(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 1, 1)));
+        invariant.accept(history, violationConsumer);
+        verify(violationConsumer)
+                .accept(ImmutableList.of(CrossCellInconsistency.builder()
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 1, 1)),
+                                Optional.empty())
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(TABLE_NAME, ImmutableWorkloadCell.of(-1, ITERATION_COUNT - 1)),
+                                Optional.of(0))
+                        .build()));
+        verifyNoMoreInteractions(violationConsumer);
+    }
+
+    @Test
+    public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
+        Consumer<List<CrossCellInconsistency>> violationConsumer = mock(Consumer.class);
+        WorkflowHistory history = transientRowsWorkflow.run();
+        transactionStore.readWrite(txn -> txn.write(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 2, 1), 0));
+        invariant.accept(history, violationConsumer);
+        verify(violationConsumer)
+                .accept(ImmutableList.of(CrossCellInconsistency.builder()
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 2, 1)),
+                                Optional.of(0))
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(TABLE_NAME, ImmutableWorkloadCell.of(-1, ITERATION_COUNT - 2)),
+                                Optional.empty())
+                        .build()));
+        verifyNoMoreInteractions(violationConsumer);
+    }
+
+    @SuppressWarnings("unchecked") // Mocking of a known type
+    @Test
+    public void invariantReportsViolationsFromTransactionHistory() {
+        Consumer<List<CrossCellInconsistency>> violationConsumer = mock(Consumer.class);
+        WorkflowHistory history = transientRowsWorkflow.run();
+        WorkflowHistory falseHistory = ImmutableWorkflowHistory.builder()
+                .transactionStore(history.transactionStore())
+                .history(history.history().stream()
+                        .map(witnessedTransaction -> ImmutableFullyWitnessedTransaction.builder()
+                                .actions(witnessedTransaction.actions().stream()
+                                        .map(TransientRowsWorkflowsTest::rewriteReadHistoryAsNeverReadingFromSummaryRow)
+                                        .collect(Collectors.toList()))
+                                .startTimestamp(witnessedTransaction.startTimestamp())
+                                .commitTimestamp(witnessedTransaction.commitTimestamp())
+                                .build())
+                        .collect(Collectors.toList()))
+                .build();
+        invariant.accept(falseHistory, violationConsumer);
+
+        ArgumentCaptor<List<CrossCellInconsistency>> captor = ArgumentCaptor.forClass(List.class);
+        verify(violationConsumer).accept(captor.capture());
+        assertThat(captor.getValue()).hasSize(ITERATION_COUNT - 1);
+        verifyNoMoreInteractions(violationConsumer);
+    }
+
+    private static WitnessedTransactionAction rewriteReadHistoryAsNeverReadingFromSummaryRow(
+            WitnessedTransactionAction action) {
+        if (action instanceof WitnessedReadTransactionAction) {
+            if (action.cell().key() == -1) {
+                return WitnessedReadTransactionAction.of(action.table(), action.cell(), Optional.empty());
+            } else {
+                return WitnessedReadTransactionAction.of(action.table(), action.cell(), Optional.of(0));
+            }
+        } else {
+            return action;
+        }
+    }
+}ueu(9976f955b872027d75d6cd35a53599ba3f30fe3c}(sha(9976f955b872027d75d6cd35a53599ba3f30fe3cnode_idEC_kwDOAjP5fdoAKDk5NzZmOTU1Yjg3MjAyN2Q3NWQ2Y2QzNWE1MzU5OWJhM2YzMGZlM2Mcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-22T10:05:34Zu	committer}(jf 
Sam Kramerjh skramer@palantir.comjj 2023-05-22T10:43:45Zumessage3Fix workload config for C* which does not support -tree}(j^ (f78e9d7a4388bbe2815fbaac9e2131d17653fd21url`https://api.github.com/repos/palantir/atlasdb/git/trees/f78e9d7a4388bbe2815fbaac9e2131d17653fd21ujv bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9976f955b872027d75d6cd35a53599ba3f30fe3c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRrR2EACgkQmPPOpKR4
XS1NwggAmMRCoMeTNwh40pYtF3fsNSW8TamKMr+GzbT+NWEZ9I/lg6susbYHJ+YQ
/TDN3jvC+xwmBiOXB5WD2fM82gf/p25yK4V2DRBI5C5poLPCrUoIaWUSIStFc/+U
m26PK7+nwG0qo2o+y3whdn/sTKzwvd9D1GOkq1npc2kbyNIw3MCNaggKPQJfMR8C
Ky016E2K1RVLqGHsgHOab8kgUCmroVYMKPo+8/VWMFjzCAO1niWZdqTBuGPp/YOn
1XHHVa+n0aLKaIoU5rBeolAufjwHEfc5fCzPlmsM0tE4STecbH1LY+EowSaMCORw
FPEqYlR/upoXuxa6GbPoHdtJPTQLUg==
=rVTq
-----END PGP SIGNATURE-----payloadX
  tree f78e9d7a4388bbe2815fbaac9e2131d17653fd21
parent 1ddd553202fd19da3254d6401f686fe454392dde
author Sam Kramer <skramer@palantir.com> 1684749934 +0100
committer Sam Kramer <skramer@palantir.com> 1684752225 +0100

Fix workload config for C* which does not support -
uujv ^https://api.github.com/repos/palantir/atlasdb/commits/9976f955b872027d75d6cd35a53599ba3f30fe3chtml_urlShttps://github.com/palantir/atlasdb/commit/9976f955b872027d75d6cd35a53599ba3f30fe3ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9976f955b872027d75d6cd35a53599ba3f30fe3c/commentsjd }(login
Sam-KrameridJ^2_ j` MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jv 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujl }(j 
Sam-Kramerj J^2_ j` /      MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5jv 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j^ (1ddd553202fd19da3254d6401f686fe454392ddejv ^https://api.github.com/repos/palantir/atlasdb/commits/1ddd553202fd19da3254d6401f686fe454392ddej Shttps://github.com/palantir/atlasdb/commit/1ddd553202fd19da3254d6401f686fe454392ddeuastats}(totalK	additionsK	deletionsKufiles]}(j^ (89db39a1b291717821550b78aad247e99ebcaefffilenameTatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlstatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9976f955b872027d75d6cd35a53599ba3f30fe3c/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/9976f955b872027d75d6cd35a53599ba3f30fe3c/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=9976f955b872027d75d6cd35a53599ba3f30fe3cpatchX  @@ -53,7 +53,7 @@ install:
     type: ring
   singleBusyCellConfig:
     tableConfiguration:
-      tableName: single-busy-cell-test
+      tableName: single_busy_cell_test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: single-busy-celluau(19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5}(sha(19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5node_idEC_kwDOAjP5fdoAKDE5ZGZjZGFjNGY4ZDFiNDVlYjI3NThmMmY3Y2Y0NmU5OWUxNjA2YjUcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-13T09:37:25Zu	committer}(jݮ 	Tom Papkej߮ tpapke@palantir.comj 2023-07-13T15:53:03Zumessage+Test all types of metadata in serializationtree}(jծ (809d77ce1f41f996d199deed739f49cc3fce26c8url`https://api.github.com/repos/palantir/atlasdb/git/trees/809d77ce1f41f996d199deed739f49cc3fce26c8uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSwHd8ACgkQmF9s0kaF
Iw2VOwgArBljwDWcdts+c9o6s3H4HqNEzMpIf66rjnNqgwuRva+ElLue/foLEbi/
T7hvBUO5q6kijT3gKBGviuI2vulwIeB4BRElunAi2EAfh8UMiT022KlNDjeG2CJc
H07/x3d4y5wJu7PQSqoG8JltrTNWsqzZkwZG8slD87UjEd/kTUQRY/gDn5/Zfqwh
CHhsQY+U7ilPHVWDzx9LRdlNwBdDvhskfbuXpK00VMuV7UzGC6RC0hTDucbVjs/3
1eSHiWOmAs6OKhXtVskJ7dk+9Tj0dlZ4+H3IiLxR9xJL6WjPOVT6o4SKpuQ08ON9
w8QlEZo6Eqr0eQHZjNn6zLuYbbx37w==
=EV0d
-----END PGP SIGNATURE-----payloadtree 809d77ce1f41f996d199deed739f49cc3fce26c8
parent 328e1a9e07b6f06b4017818bf58fe85dea473d01
author Tom Papke <tpapke@palantir.com> 1689241045 +0100
committer Tom Papke <tpapke@palantir.com> 1689263583 +0100

Test all types of metadata in serialization
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5html_urlShttps://github.com/palantir/atlasdb/commit/19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5/commentsjۮ }(login	ToemmscheidJboj׮ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j  	Toemmschej Jboj׮ MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej	 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j
 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(jծ (328e1a9e07b6f06b4017818bf58fe85dea473d01j ^https://api.github.com/repos/palantir/atlasdb/commits/328e1a9e07b6f06b4017818bf58fe85dea473d01j Shttps://github.com/palantir/atlasdb/commit/328e1a9e07b6f06b4017818bf58fe85dea473d01uastats}(totalK@	additionsK3	deletionsK
ufiles](}(jծ (ca84852c3a088fa69261e3a402cb6dcd8968a351filenameKlock-api/src/test/java/com/palantir/lock/client/ConjureLockRequestTest.javastatusmodifiedj7 Kj8 KchangesK"blob_urlhttps://github.com/palantir/atlasdb/blob/19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequestTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequestTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequestTest.java?ref=19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5patchX  @@ -24,11 +24,14 @@
 import com.google.common.collect.ImmutableMap;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.timelock.api.ConjureChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureCreatedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureDeletedChangeMetadata;
 import com.palantir.atlasdb.timelock.api.ConjureLockDescriptor;
 import com.palantir.atlasdb.timelock.api.ConjureLockDescriptorListChecksum;
 import com.palantir.atlasdb.timelock.api.ConjureLockRequest;
 import com.palantir.atlasdb.timelock.api.ConjureLockRequestMetadata;
 import com.palantir.atlasdb.timelock.api.ConjureUnchangedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureUpdatedChangeMetadata;
 import com.palantir.conjure.java.lib.Bytes;
 import com.palantir.conjure.java.serialization.ObjectMappers;
 import java.nio.file.Files;
@@ -41,20 +44,35 @@ public class ConjureLockRequestTest {
     private static final String BASE = "src/test/resources/conjure-lock-request-wire-format/";
     private static final boolean REWRITE_JSON_BLOBS = false;
 
-    private static final ConjureLockDescriptor TEST_LOCK = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("abc")));
+    private static final ConjureLockDescriptor LOCK_1 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("abc")));
+    private static final ConjureLockDescriptor LOCK_2 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("def")));
+    private static final ConjureLockDescriptor LOCK_3 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("ghi")));
+    private static final ConjureLockDescriptor LOCK_4 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("jkl")));
+    private static final byte[] BYTES_OLD = PtBytes.toBytes("old");
+    private static final byte[] BYTES_NEW = PtBytes.toBytes("new");
+    private static final byte[] BYTES_DELETED = PtBytes.toBytes("deleted");
+    private static final byte[] BYTES_CREATED = PtBytes.toBytes("created");
+    // The checksum on this does not have to be correct since the integrity check is performed by the server and not
+    // by Conjure itself
+    private static final ConjureLockRequestMetadata CONJURE_LOCK_REQUEST_METADATA = ConjureLockRequestMetadata.of(
+            ImmutableMap.of(
+                    0,
+                    ConjureChangeMetadata.unchanged(ConjureUnchangedChangeMetadata.of()),
+                    1,
+                    ConjureChangeMetadata.updated(
+                            ConjureUpdatedChangeMetadata.of(Bytes.from(BYTES_OLD), Bytes.from(BYTES_NEW))),
+                    2,
+                    ConjureChangeMetadata.deleted(ConjureDeletedChangeMetadata.of(Bytes.from(BYTES_DELETED))),
+                    3,
+                    ConjureChangeMetadata.created(ConjureCreatedChangeMetadata.of(Bytes.from(BYTES_CREATED)))),
+            ConjureLockDescriptorListChecksum.of(0, Bytes.from(PtBytes.toBytes("test-checksum-value"))));
     private static final ConjureLockRequest BASELINE_CONJURE_LOCK_REQUEST = ConjureLockRequest.builder()
             .requestId(new UUID(1337, 42))
-            .lockDescriptors(ImmutableList.of(TEST_LOCK))
+            .lockDescriptors(ImmutableList.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4))
             .acquireTimeoutMs(100)
             .clientDescription("client: test, thread: test")
             .build();
 
-    // The checksum on this does not have to be correct since the integrity check is performed by the server and not
-    // by Conjure itself
-    private static final ConjureLockRequestMetadata CONJURE_LOCK_REQUEST_METADATA = ConjureLockRequestMetadata.of(
-            ImmutableMap.of(0, ConjureChangeMetadata.unchanged(ConjureUnchangedChangeMetadata.of())),
-            ConjureLockDescriptorListChecksum.of(0, Bytes.from(PtBytes.toBytes("test-checksum-value"))));
-
     // AtlasDB (Client) serializes and TimeLock (Server) deserializes ConjureLockRequest objects.
     // These are the respective mappers used internally by Conjure.
     private static final ObjectMapper SERIALIZATION_MAPPER =u}(jծ (56e0e9f551398a56e8c56e758c6eab6f6d5a6072j= Xlock-api/src/test/resources/conjure-lock-request-wire-format/baseline-with-metadata.jsonj? modifiedj7 Kj8 KjA KjB https://github.com/palantir/atlasdb/blob/19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5/lock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fbaseline-with-metadata.jsonjD https://github.com/palantir/atlasdb/raw/19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5/lock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fbaseline-with-metadata.jsonjF https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fbaseline-with-metadata.json?ref=19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5jH X=  @@ -1,13 +1,32 @@
 {
   "requestId" : "00000000-0000-0539-0000-00000000002a",
-  "lockDescriptors" : [ "YWJj" ],
+  "lockDescriptors" : [ "YWJj", "ZGVm", "Z2hp", "amts" ],
   "acquireTimeoutMs" : 100,
   "clientDescription" : "client: test, thread: test",
   "metadata" : {
     "indexToChangeMetadata" : {
       "0" : {
         "type" : "unchanged",
         "unchanged" : { }
+      },
+      "1" : {
+        "type" : "updated",
+        "updated" : {
+          "oldValue" : "b2xk",
+          "newValue" : "bmV3"
+        }
+      },
+      "2" : {
+        "type" : "deleted",
+        "deleted" : {
+          "oldValue" : "ZGVsZXRlZA=="
+        }
+      },
+      "3" : {
+        "type" : "created",
+        "created" : {
+          "newValue" : "Y3JlYXRlZA=="
+        }
       }
     },
     "lockListChecksum" : {u}(jծ (e1b7813afcfedd61b6686b1bab138e5f151ea739j= Jlock-api/src/test/resources/conjure-lock-request-wire-format/baseline.jsonj? modifiedj7 Kj8 KjA KjB https://github.com/palantir/atlasdb/blob/19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5/lock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fbaseline.jsonjD https://github.com/palantir/atlasdb/raw/19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5/lock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fbaseline.jsonjF https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fbaseline.json?ref=19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5jH X  @@ -1,6 +1,6 @@
 {
   "requestId" : "00000000-0000-0539-0000-00000000002a",
-  "lockDescriptors" : [ "YWJj" ],
+  "lockDescriptors" : [ "YWJj", "ZGVm", "Z2hp", "amts" ],
   "acquireTimeoutMs" : 100,
   "clientDescription" : "client: test, thread: test"
 }
\ No newline at end of fileu}(jծ (c24734181cbad94d445b4961d924704f54d8132ej= ctimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchEventIntegrationTest.javaj? modifiedj7 Kj8 KjA KjB https://github.com/palantir/atlasdb/blob/19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javajD https://github.com/palantir/atlasdb/raw/19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.java?ref=19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5jH X  @@ -261,7 +261,7 @@ public void leaderElectionDuringTransactionCausesTransactionToFailRetriably() {
 
     @Test
     public void absentMetadataIsVisibleToTransaction() {
-        LockRequest requestWithoutMetadata = lockRequestOf(
+        LockRequest requestWithoutMetadata = createTestLockRequest(
                 ImmutableSet.of(AtlasRowLockDescriptor.of(TABLE_REF.getQualifiedName(), ROW)), Optional.empty());
         List<Optional<LockRequestMetadata>> allMetadata =
                 lockAndGetAllLockEventMetadataForNewTransaction(requestWithoutMetadata);
@@ -273,7 +273,7 @@ public void nonEmptyMetadataIsVisibleToTransaction() {
         LockDescriptor lock = AtlasRowLockDescriptor.of(TABLE_REF.getQualifiedName(), ROW);
         LockRequestMetadata metadata =
                 LockRequestMetadata.of(ImmutableMap.of(lock, ChangeMetadata.created(PtBytes.toBytes("foo"))));
-        LockRequest requestWithMetadata = lockRequestOf(ImmutableSet.of(lock), Optional.of(metadata));
+        LockRequest requestWithMetadata = createTestLockRequest(ImmutableSet.of(lock), Optional.of(metadata));
         List<Optional<LockRequestMetadata>> allMetadata =
                 lockAndGetAllLockEventMetadataForNewTransaction(requestWithMetadata);
         assertThat(allMetadata).containsExactly(Optional.of(metadata));
@@ -401,7 +401,8 @@ private List<Optional<LockRequestMetadata>> lockAndGetAllLockEventMetadataForNew
         return LockWatchIntegrationTestUtilities.extractMetadata(lockWatchEvents);
     }
 
-    private LockRequest lockRequestOf(Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {
+    private LockRequest createTestLockRequest(
+            Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {
         return ImmutableLockRequest.builder()
                 .lockDescriptors(lockDescriptors)
                 .clientDescription("test-client")ueu(a9cb94bda75b0b6d32178898765be0a58bfb6613}(sha(a9cb94bda75b0b6d32178898765be0a58bfb6613node_idEC_kwDOAjP5fdoAKGE5Y2I5NGJkYTc1YjBiNmQzMjE3ODg5ODc2NWJlMGE1OGJmYjY2MTMcommit}(author}(nameLucas Sousa Meirelesemailmeireles31@msn.comdate2023-06-07T15:17:43Zu	committer}(jl GitHubjn noreply@github.comjp 2023-06-07T15:17:43Zumessageimprovement: Add new antithesis workflow that exercises read-write transactions that only do reads (#6613)

There now exists an Antithesis workflow that exercises read-write transactions that only do reads.tree}(jd (64e6150d697fbf873b7b6c1ae1d88eff5328cb76url`https://api.github.com/repos/palantir/atlasdb/git/trees/64e6150d697fbf873b7b6c1ae1d88eff5328cb76uj| bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a9cb94bda75b0b6d32178898765be0a58bfb6613
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkgJ+XCRBK7hj4Ov3rIwAAJPsIAGX1XYQEgp3EgKx8tHt7mp4f
Ksg5h0FZHSghD5/NpkbL+OyjvUS/SfTraxZzJj39om1amccAHObAdvM6axKyC9tA
mm7NmZeZ0o1hog2BGlzAM9enf/38Zb//QasbTtDZNHx648QgiBaRGmP3uiaA0C/a
7ogSdtQb8l/B20m6LFY2xIlcCaeI1c0ddZv+ayH7X6Rq3Jpa5UvfSXb3sFxDZR2R
NzJacSNSjTy5UQ0DU9Sn1AbrqBUN5Rg1kWDvGSPzmGOZ/5Fysh5RH6Tx2o3u9Yl5
xaR4cz6H4CdK+IGE6kwR3tZPGhITWUckFLLPZyvHz+PjohAsaC4iMtA8LyutWQU=
=cXOR
-----END PGP SIGNATURE-----
payloadX  tree 64e6150d697fbf873b7b6c1ae1d88eff5328cb76
parent acdd8b440cf16a635a7163ab8e533e4576073ab9
author Lucas Sousa Meireles <meireles31@msn.com> 1686151063 +0100
committer GitHub <noreply@github.com> 1686151063 +0000

improvement: Add new antithesis workflow that exercises read-write transactions that only do reads (#6613)

There now exists an Antithesis workflow that exercises read-write transactions that only do reads.
uuj| ^https://api.github.com/repos/palantir/atlasdb/commits/a9cb94bda75b0b6d32178898765be0a58bfb6613html_urlShttps://github.com/palantir/atlasdb/commit/a9cb94bda75b0b6d32178898765be0a58bfb6613comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a9cb94bda75b0b6d32178898765be0a58bfb6613/commentsjj }(loginLucasIMEidJg jf MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j| %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujr }(j web-flowj J/jf MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j| %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(jd (acdd8b440cf16a635a7163ab8e533e4576073ab9j| ^https://api.github.com/repos/palantir/atlasdb/commits/acdd8b440cf16a635a7163ab8e533e4576073ab9j Shttps://github.com/palantir/atlasdb/commit/acdd8b440cf16a635a7163ab8e533e4576073ab9uastats}(totalMP	additionsMJ	deletionsKufiles](}(jd (b5c7b9efcec99e2e4e3b5ccc3eb2f13e725dca1afilename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedjƯ K jǯ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/a9cb94bda75b0b6d32178898765be0a58bfb6613/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/a9cb94bda75b0b6d32178898765be0a58bfb6613/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=a9cb94bda75b0b6d32178898765be0a58bfb6613patchX8  @@ -15,8 +15,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra1
-    volumes:
-      - /opt/config/volumes/cassandra1:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
@@ -35,8 +33,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra2
-    volumes:
-      - /opt/config/volumes/cassandra2:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
@@ -55,8 +51,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra3
-    volumes:
-      - /opt/config/volumes/cassandra3:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.4u}(jd (37e59da7fde3c443b1071e9b0c484c2da4e9f50ej̯ latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javajί modifiedjƯ K'jǯ K jЯ K'jѯ https://github.com/palantir/atlasdb/blob/a9cb94bda75b0b6d32178898765be0a58bfb6613/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajӯ https://github.com/palantir/atlasdb/raw/a9cb94bda75b0b6d32178898765be0a58bfb6613/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajկ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=a9cb94bda75b0b6d32178898765be0a58bfb6613jׯ Xk  @@ -37,6 +37,8 @@
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
@@ -142,6 +144,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().transientRowsConfig();
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
+        SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadNoTouchWorkflowConfiguration =
+                configuration.install().singleBusyCellReadsNoTouchConfig();
         BankBalanceWorkflowConfiguration bankBalanceConfig =
                 configuration.install().bankBalanceConfig();
         RandomWorkflowConfiguration randomWorkflowConfig =
@@ -159,6 +163,10 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
                         createSingleBusyCellWorkflowValidator(
                                 transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellReadNoTouchWorkflowValidator(
+                                transactionStoreFactory,
+                                singleBusyCellReadNoTouchWorkflowConfiguration,
+                                environment.lifecycle()),
                         createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
                         createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
 
@@ -244,6 +252,37 @@ private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
                 SerializableInvariantLogReporter.INSTANCE);
     }
 
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellReadNoTouchWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellReadNoTouchWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-read")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-write")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellReadNoTouchWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellReadNoTouchWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
     private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             RingWorkflowConfiguration workflowConfig,u}(jd (388054e20c18c9c8d612db0e6d9ac1018b7f9b14j̯ atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javajί modifiedjƯ Kjǯ K jЯ Kjѯ https://github.com/palantir/atlasdb/blob/a9cb94bda75b0b6d32178898765be0a58bfb6613/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javajӯ https://github.com/palantir/atlasdb/raw/a9cb94bda75b0b6d32178898765be0a58bfb6613/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javajկ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=a9cb94bda75b0b6d32178898765be0a58bfb6613jׯ X)  @@ -20,6 +20,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
@@ -45,5 +46,7 @@ public interface WorkloadServerInstallConfiguration {
 
     RandomWorkflowConfiguration randomConfig();
 
+    SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadsNoTouchConfig();
+
     boolean exitAfterRunning();
 }u}(jd (da4b728986375bd8565c46e930098c1a684a145cj̯ Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymljί modifiedjƯ Kjǯ K jЯ Kjѯ https://github.com/palantir/atlasdb/blob/a9cb94bda75b0b6d32178898765be0a58bfb6613/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymljӯ https://github.com/palantir/atlasdb/raw/a9cb94bda75b0b6d32178898765be0a58bfb6613/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymljկ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=a9cb94bda75b0b6d32178898765be0a58bfb6613jׯ X  @@ -41,4 +41,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: false
\ No newline at end of fileu}(jd (50dbd20de7876d2a9cb53eef291722b8b19cd0b5j̯ Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymljί modifiedjƯ Kjǯ K jЯ Kjѯ https://github.com/palantir/atlasdb/blob/a9cb94bda75b0b6d32178898765be0a58bfb6613/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljӯ https://github.com/palantir/atlasdb/raw/a9cb94bda75b0b6d32178898765be0a58bfb6613/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljկ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=a9cb94bda75b0b6d32178898765be0a58bfb6613jׯ Xr  @@ -78,4 +78,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single_busy_cell_no_touch_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: trueu}(jd (7bd7f984a5ef15a2179c415620f48a0737332c43j̯ Aatlasdb-workload-server-distribution/var/conf/workload-server.ymljί modifiedjƯ Kjǯ K jЯ Kjѯ https://github.com/palantir/atlasdb/blob/a9cb94bda75b0b6d32178898765be0a58bfb6613/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljӯ https://github.com/palantir/atlasdb/raw/a9cb94bda75b0b6d32178898765be0a58bfb6613/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljկ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=a9cb94bda75b0b6d32178898765be0a58bfb6613jׯ X  @@ -42,4 +42,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: true
\ No newline at end of fileu}(jd (cfa7bb7b766851d22237ea49091b9cce6c50c789j̯ atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowConfiguration.javajί addedjƯ K jǯ K jЯ K jѯ https://github.com/palantir/atlasdb/blob/a9cb94bda75b0b6d32178898765be0a58bfb6613/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javajӯ https://github.com/palantir/atlasdb/raw/a9cb94bda75b0b6d32178898765be0a58bfb6613/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javajկ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.java?ref=a9cb94bda75b0b6d32178898765be0a58bfb6613jׯ Xz  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellReadNoTouchWorkflowConfiguration.TYPE)
+public interface SingleBusyCellReadNoTouchWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell-reads-no-touch";
+
+    TableConfiguration tableConfiguration();
+}u}(jd (ae852affb871f77d186c4b71ecca052b5aeeed40j̯ tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflows.javajί addedjƯ Kjjǯ K jЯ Kjjѯ https://github.com/palantir/atlasdb/blob/a9cb94bda75b0b6d32178898765be0a58bfb6613/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javajӯ https://github.com/palantir/atlasdb/raw/a9cb94bda75b0b6d32178898765be0a58bfb6613/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javajկ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.java?ref=a9cb94bda75b0b6d32178898765be0a58bfb6613jׯ X  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions. This workflow differs
+ * from the {@link SingleBusyCellWorkflows} in the way that its read transaction only does read and doesn't touch the
+ * cell with its current value or -1. This allows us to exercise the code path of read-write transaction that only do
+ * reads, which is necessary to catch bugs like sweep deleting entries under a transaction if it doesn't check for
+ * immutableTimestamp lock.
+ */
+public final class SingleBusyCellReadNoTouchWorkflows {
+    private SingleBusyCellReadNoTouchWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReads(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReads(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(
+                        txn -> txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL))))
+                .collect(Collectors.toList());
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
+    }
+}u}(jd (582a24e3462c647d3a7fc8712226be1c34707556j̯ xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javajί addedjƯ K{jǯ K jЯ K{jѯ https://github.com/palantir/atlasdb/blob/a9cb94bda75b0b6d32178898765be0a58bfb6613/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javajӯ https://github.com/palantir/atlasdb/raw/a9cb94bda75b0b6d32178898765be0a58bfb6613/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javajկ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=a9cb94bda75b0b6d32178898765be0a58bfb6613jׯ X  @@ -0,0 +1,123 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Sets;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Collection;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class SingleBusyCellReadNoTouchWorkflowsTest {
+    private static final String TABLE_NAME = "busy.readnotouch.cell";
+    private static final int ITERATION_COUNT = 1_000;
+    private static final SingleBusyCellReadNoTouchWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow workflow = SingleBusyCellReadNoTouchWorkflows.create(
+            transactionStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)),
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)));
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void transactionsDoNotConflictExcessively() {
+        WorkflowHistory workflowHistory = workflow.run();
+        assertThat(workflowHistory.history()).hasSizeBetween(ITERATION_COUNT / 2, ITERATION_COUNT);
+    }
+
+    @Test
+    public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.table().equals(TABLE_NAME));
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.cell().equals(SingleBusyCellReadNoTouchWorkflows.BUSY_CELL));
+    }
+
+    @Test
+    public void targetCellIsReadModifiedAndDeleted() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+
+    @Test
+    public void readTransactionsDontDoWrites() {
+        WorkflowHistory workflowHistory = workflow.run();
+
+        Set<WitnessedTransaction> witnessedTransactionsWithReads = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream().anyMatch(WitnessedReadTransactionAction.class::isInstance))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> witnessedTransactionsWithWritesOrDeletes = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream()
+                        .anyMatch(action -> action instanceof WitnessedWriteTransactionAction
+                                || action instanceof WitnessedDeleteTransactionAction))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> transactionsWithReadsAndWritesOrDeletes =
+                Sets.intersection(witnessedTransactionsWithReads, witnessedTransactionsWithWritesOrDeletes);
+
+        assertThat(transactionsWithReadsAndWritesOrDeletes).isEmpty();
+    }
+}u}(jd (351dc558cfb12f3027ca880f55c00742ee516cbdj̯ $changelog/@unreleased/pr-6613.v2.ymljί addedjƯ Kjǯ K jЯ Kjѯ |https://github.com/palantir/atlasdb/blob/a9cb94bda75b0b6d32178898765be0a58bfb6613/changelog%2F%40unreleased%2Fpr-6613.v2.ymljӯ {https://github.com/palantir/atlasdb/raw/a9cb94bda75b0b6d32178898765be0a58bfb6613/changelog%2F%40unreleased%2Fpr-6613.v2.ymljկ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6613.v2.yml?ref=a9cb94bda75b0b6d32178898765be0a58bfb6613jׯ @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: There now exists an Antithesis workflow that exercises read-write transactions
+    that only do reads.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6613ueu(4ff5c0b37e783db8b68cdacfdd9d63238c1d3c56}(sha(4ff5c0b37e783db8b68cdacfdd9d63238c1d3c56node_idEC_kwDOAjP5fdoAKDRmZjVjMGIzN2U3ODNkYjhiNjhjZGFjZmRkOWQ2MzIzOGMxZDNjNTYcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-13T09:05:20Zu	committer}(j+ 	Tom Papkej- tpapke@palantir.comj/ 2023-07-13T15:07:49ZumessageEAdd annotation that WireLockEvent should not be deserialized (+ test)tree}(j# (b61f98c49def3947012a5fb2105d0fdd64c1770durl`https://api.github.com/repos/palantir/atlasdb/git/trees/b61f98c49def3947012a5fb2105d0fdd64c1770duj; bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4ff5c0b37e783db8b68cdacfdd9d63238c1d3c56
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSwE0UACgkQmF9s0kaF
Iw2//gf+PbHI/+AX3jL2b3Z4KmXxIZZZtcaVQtsvw+CaYT0eArq1QRp+r2qrTMrZ
i93pvGSFJaTkv5wDrvPfGEsxOJLQcyk7LJg2VORhk2Mzs6lB2ZHlG3VNR0pTHGWi
G+v7RG3UF8126mllcMB+0It3w4NmXC/bgeADisi6OpC5LckEgqN95qIylaitHO7U
BbXpozlQFXbfvhdjQOKiFyfg7vI2pl1stXo2U77DXwo3fDt6C3FzgHoiViXsPt1U
pU5x7m21kbmi19rBk1Ti16v6BKn/bwloXOUJUGDm9QaSJ/oBphlyZ3VKmPmLStni
jlXYsm118m3z7pDK9i9AewEmyPk4lA==
=PCE0
-----END PGP SIGNATURE-----payloadX  tree b61f98c49def3947012a5fb2105d0fdd64c1770d
parent 518c2c086af9d1bef6014ef694f40b43151ddf1f
author Tom Papke <tpapke@palantir.com> 1689239120 +0100
committer Tom Papke <tpapke@palantir.com> 1689260869 +0100

Add annotation that WireLockEvent should not be deserialized (+ test)
uuj; ^https://api.github.com/repos/palantir/atlasdb/commits/4ff5c0b37e783db8b68cdacfdd9d63238c1d3c56html_urlShttps://github.com/palantir/atlasdb/commit/4ff5c0b37e783db8b68cdacfdd9d63238c1d3c56comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4ff5c0b37e783db8b68cdacfdd9d63238c1d3c56/commentsj) }(login	ToemmscheidJboj% MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j; &https://api.github.com/users/ToemmschejI https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj1 }(jN 	ToemmschejP Jboj% MDQ6VXNlcjQzNjc1NDkwjR 4https://avatars.githubusercontent.com/u/43675490?v=4jT h5j; &https://api.github.com/users/ToemmschejI https://github.com/ToemmschejW 0https://api.github.com/users/Toemmsche/followersjY =https://api.github.com/users/Toemmsche/following{/other_user}j[ 6https://api.github.com/users/Toemmsche/gists{/gist_id}j] =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j_ 4https://api.github.com/users/Toemmsche/subscriptionsja +https://api.github.com/users/Toemmsche/orgsjc ,https://api.github.com/users/Toemmsche/reposje 7https://api.github.com/users/Toemmsche/events{/privacy}jg 6https://api.github.com/users/Toemmsche/received_eventsji Userjk uparents]}(j# (518c2c086af9d1bef6014ef694f40b43151ddf1fj; ^https://api.github.com/repos/palantir/atlasdb/commits/518c2c086af9d1bef6014ef694f40b43151ddf1fjI Shttps://github.com/palantir/atlasdb/commit/518c2c086af9d1bef6014ef694f40b43151ddf1fuastats}(totalK	additionsK
	deletionsKufiles](}(j# (159df698d290254929994264958e85b11079a3cffilenameElock-api-objects/src/main/java/com/palantir/lock/watch/LockEvent.javastatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/4ff5c0b37e783db8b68cdacfdd9d63238c1d3c56/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4ff5c0b37e783db8b68cdacfdd9d63238c1d3c56/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.java?ref=4ff5c0b37e783db8b68cdacfdd9d63238c1d3c56patchX  @@ -146,6 +146,8 @@ private static Function<WireLockRequestMetadata, LockRequestMetadata> getMetadat
         };
     }
 
+    // This class is explicitly missing @JsonDeserialize as it should only be used for serialization.
+    // Deserialization should take place in the @JsonCreator-annotated static constructor method.
     @Unsafe
     @Value.Immutable
     @JsonSerialize(as = ImmutableWireLockEvent.class)u}(j# (92ffffd4f29c7a4ac88ff7c7212f0285aa1db021j Ilock-api-objects/src/test/java/com/palantir/lock/watch/LockEventTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/4ff5c0b37e783db8b68cdacfdd9d63238c1d3c56/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javaj https://github.com/palantir/atlasdb/raw/4ff5c0b37e783db8b68cdacfdd9d63238c1d3c56/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.java?ref=4ff5c0b37e783db8b68cdacfdd9d63238c1d3c56j X  @@ -25,6 +25,7 @@
 import com.fasterxml.jackson.databind.SerializationFeature;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.fasterxml.jackson.databind.exc.InvalidDefinitionException;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
@@ -162,14 +163,21 @@ public void serializesSparseMetadata() {
     @Test
     public void shufflingLockDescriptorsOnTheWireIsDetectedByClient() {
         assertThatThrownBy(() ->
-                        // The order of the lock descriptors in this JSON file is swapped
-                        DESERIALIZATION_MAPPER.readValue(
-                                Files.readString(getJsonPath("shuffled-locks")), LockEvent.class))
+                // The order of the lock descriptors in this JSON file is swapped
+                DESERIALIZATION_MAPPER.readValue(
+                        Files.readString(getJsonPath("shuffled-locks")), LockEvent.class))
                 .rootCause()
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageStartingWith("Key list integrity check failed");
     }
 
+    @Test
+    public void cannotDeserializeAsWireLockEvent() {
+        assertThatThrownBy(() -> DESERIALIZATION_MAPPER.readValue(
+                Files.readString(getJsonPath("baseline-with-metadata")), LockEvent.WireLockEvent.class))
+                .isInstanceOf(InvalidDefinitionException.class);
+    }
+
     private static <T> void assertSerializedEquals(T object, String jsonFileName) {
         try {
             Path path = getJsonPath(jsonFileName);ueu(2adaa1ae8b6b0fc3a84a73596174a9686ec3042d}(sha(2adaa1ae8b6b0fc3a84a73596174a9686ec3042dnode_idEC_kwDOAjP5fdoAKDJhZGFhMWFlOGI2YjBmYzNhODRhNzM1OTYxNzRhOTY4NmVjMzA0MmQcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-13T08:53:29Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-07-13T08:53:29ZumessageInline some test objectstree}(j (f6debebcd2187c995faa877eb8e01a8a2d17ce7aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/f6debebcd2187c995faa877eb8e01a8a2d17ce7auj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2adaa1ae8b6b0fc3a84a73596174a9686ec3042d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSvu4kACgkQmF9s0kaF
Iw0v2QgAgHY7CUBVJCyMa08p0AXOqAg92bAZDwqHAm86syi9fnQdQBiwPMY0YD3o
mH+/koVvhxbUBQKkZmKN9puL/RxYpNIbsTlhFcepgJVoroGBwLhCYuBkNtu7frPi
3YP0ZdEHLNUk4B31a7sCRyRdJ/aG3iJNzWmu9Dix/kAduFW/gKZkN/JKFiKgNWvJ
Ia+XDz2F5iJBTmEa6alpg/H5Vkjd/HJeRab4aVqpYqwck9W2lPS6i2OxiE0Lt0rV
ZLzq74Zu7lGWgaN/m5uBYwojseFrXKgsa1kOFSr7j+NoEXRGcYdin7PTF2x++vX4
9tbDDhCMSRaNVBYecD4Tn0lSVQwI1A==
=/R/W
-----END PGP SIGNATURE-----payloadtree f6debebcd2187c995faa877eb8e01a8a2d17ce7a
parent cded8fc29da6f6bf2c74a0a4cb2ae3fb16d79a65
author Tom Papke <tpapke@palantir.com> 1689238409 +0100
committer Tom Papke <tpapke@palantir.com> 1689238409 +0100

Inline some test objects
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/2adaa1ae8b6b0fc3a84a73596174a9686ec3042dhtml_urlShttps://github.com/palantir/atlasdb/commit/2adaa1ae8b6b0fc3a84a73596174a9686ec3042dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2adaa1ae8b6b0fc3a84a73596174a9686ec3042d/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/ToemmschejȰ https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(jͰ 	Toemmschejϰ Jboj MDQ6VXNlcjQzNjc1NDkwjѰ 4https://avatars.githubusercontent.com/u/43675490?v=4jӰ h5j &https://api.github.com/users/ToemmschejȰ https://github.com/Toemmschejְ 0https://api.github.com/users/Toemmsche/followersjذ =https://api.github.com/users/Toemmsche/following{/other_user}jڰ 6https://api.github.com/users/Toemmsche/gists{/gist_id}jܰ =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jް 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(j (cded8fc29da6f6bf2c74a0a4cb2ae3fb16d79a65j ^https://api.github.com/repos/palantir/atlasdb/commits/cded8fc29da6f6bf2c74a0a4cb2ae3fb16d79a65jȰ Shttps://github.com/palantir/atlasdb/commit/cded8fc29da6f6bf2c74a0a4cb2ae3fb16d79a65uastats}(totalK	additionsK	deletionsKufiles]}(j (c91f71ce1ef19fc6ee0c73c5e590523708c9d622filenameWlock-api/src/test/java/com/palantir/lock/watch/ConjureLockRequestMetadataUtilsTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/2adaa1ae8b6b0fc3a84a73596174a9686ec3042d/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2adaa1ae8b6b0fc3a84a73596174a9686ec3042d/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.java?ref=2adaa1ae8b6b0fc3a84a73596174a9686ec3042dpatchXh  @@ -63,16 +63,15 @@ public class ConjureLockRequestMetadataUtilsTest {
             ChangeMetadata.created(BYTES_CREATED));
     // Although this is quite verbose, we explicitly want to test all possible types of change metadata and ensure
     // that we do the conversion right for each of them.
-    private static final Map<LockDescriptor, ChangeMetadata> LOCKS_WITH_METADATA = ImmutableMap.of(
+    private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(ImmutableMap.of(
             LOCK_1,
             CHANGE_METADATA_LIST.get(0),
             LOCK_2,
             CHANGE_METADATA_LIST.get(1),
             LOCK_3,
             CHANGE_METADATA_LIST.get(2),
             LOCK_4,
-            CHANGE_METADATA_LIST.get(3));
-    private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(LOCKS_WITH_METADATA);
+            CHANGE_METADATA_LIST.get(3)));
     private static final Map<Integer, ConjureChangeMetadata> CONJURE_LOCKS_WITH_METADATA = ImmutableMap.of(
             0,
             ConjureChangeMetadata.unchanged(ConjureUnchangedChangeMetadata.of()),uau(81939b058f1461193be2e29e42de511bed37db95}(sha(81939b058f1461193be2e29e42de511bed37db95node_idEC_kwDOAjP5fdoAKDgxOTM5YjA1OGYxNDYxMTkzYmUyZTI5ZTQyZGU1MTFiZWQzN2RiOTUcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-21T14:25:59Zu	committer}(j! Lucas Meirelesj# meireles31@msn.comj% 2023-06-21T14:25:59ZumessageDtrue by default to check if change is actually working in productiontree}(j (ee754af9c079b02b06c3b67e7437830e28266c36url`https://api.github.com/repos/palantir/atlasdb/git/trees/ee754af9c079b02b06c3b67e7437830e28266c36uj1 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/81939b058f1461193be2e29e42de511bed37db95
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSTCHcACgkQJd22kJ7J
GizRJggAw+wbuxwGF0kUz7nK7rIsgiKb6Ts7G+6CZfAJHGEjtszJ5fG/7G2Axfz6
PoOt637Fzft0jpwVyrcLHyTAp8OYjhojVr6X9ieBVzyxs/n9Uis4neYxwRbgXSz9
OQXEuGDstscFYD2kAUDkOB5ZWQOc7YwocFgCKxLRDpL8BrQEYlgO94HKf24lxX+x
aNvIAbUBye49qNBbXpa5ckrhJTK/GW0pF5HQKAxXDEPVApaAarTBE9fyc1f6vEIu
nQGPj0ncv5X5ydINEWELgqydrgDC1YN2NJRj5sQcmhw5ZHbX2vsBJvvRXsgOIaCP
3M0OQ5vtUbPT46VJZW5d4aI1dgQS0g==
=NWzC
-----END PGP SIGNATURE-----payloadX  tree ee754af9c079b02b06c3b67e7437830e28266c36
parent 767bd58368033f595781935359dce06e08d739fe
author Lucas Meireles <meireles31@msn.com> 1687357559 +0100
committer Lucas Meireles <meireles31@msn.com> 1687357559 +0100

true by default to check if change is actually working in production
uuj1 ^https://api.github.com/repos/palantir/atlasdb/commits/81939b058f1461193be2e29e42de511bed37db95html_urlShttps://github.com/palantir/atlasdb/commit/81939b058f1461193be2e29e42de511bed37db95comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/81939b058f1461193be2e29e42de511bed37db95/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j1 %https://api.github.com/users/LucasIMEj? https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj' }(jD LucasIMEjF Jg j MDQ6VXNlcjY3ODczMTE=jH 3https://avatars.githubusercontent.com/u/6787311?v=4      jJ h5j1 %https://api.github.com/users/LucasIMEj? https://github.com/LucasIMEjM /https://api.github.com/users/LucasIME/followersjO <https://api.github.com/users/LucasIME/following{/other_user}jQ 5https://api.github.com/users/LucasIME/gists{/gist_id}jS <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jU 3https://api.github.com/users/LucasIME/subscriptionsjW *https://api.github.com/users/LucasIME/orgsjY +https://api.github.com/users/LucasIME/reposj[ 6https://api.github.com/users/LucasIME/events{/privacy}j] 5https://api.github.com/users/LucasIME/received_eventsj_ Userja uparents]}(j (767bd58368033f595781935359dce06e08d739fej1 ^https://api.github.com/repos/palantir/atlasdb/commits/767bd58368033f595781935359dce06e08d739fej? Shttps://github.com/palantir/atlasdb/commit/767bd58368033f595781935359dce06e08d739feuastats}(totalK	additionsK	deletionsKufiles]}(j (7f81d32f0e42d42259ec2103e14bc5456611cbf4filenamePatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/KeyValueService.javastatusmodifiedj{ Kj| KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/81939b058f1461193be2e29e42de511bed37db95/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/81939b058f1461193be2e29e42de511bed37db95/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.java?ref=81939b058f1461193be2e29e42de511bed37db95patchX  @@ -714,8 +714,6 @@ default boolean isValid() {
 
     @DoDelegate
     default boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
-        // This is in general True, but we're setting to false to start rollout only for C* of stopping to check for
-        // immutable timestamp lock on non empty reads on thoroughly swept tables.
-        return false;
+        return true;
     }
 }uau(1083711b382690fa3e64f57135fe510943c3083c}(sha(1083711b382690fa3e64f57135fe510943c3083cnode_idEC_kwDOAjP5fdoAKDEwODM3MTFiMzgyNjkwZmEzZTY0ZjU3MTM1ZmU1MTA5NDNjMzA4M2Mcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-05-22T14:21:56Zu	committer}(j GitHubj noreply@github.comj 2023-05-22T14:21:56Zumessage;Fix workload config for C* which does not support - (#6579)tree}(j (12d3817711a105cb1a2f1f9e9c1132779dd9eb34url`https://api.github.com/repos/palantir/atlasdb/git/trees/12d3817711a105cb1a2f1f9e9c1132779dd9eb34uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1083711b382690fa3e64f57135fe510943c3083c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJka3qECRBK7hj4Ov3rIwAAQjcIAEsI4xolIBpsyDT9RJewpitR
Z7obMt/5bk9j4U6KbCx7YtlskkQi5cDYI7CFuITIGG5hyFPWx7XCH5iDp06CK6xI
+o//Cqn0Q3HiKwFPIGGM+vQn3EPJ7mMh9EHBvih2ij9ocJG64dcJIfVXe0ULXfDT
K3g7zWwqyp51WD0nyKmfijWqXTN0XBbeLy74HTFFPeEWH4mHlCjBdUvKLYcwgI5G
ZvhyXP/zNPSGkuv/wGDP2xXUQEP74pZqyq+nDTEkn+7Y/hFABbYiJOa8+LT0+1gk
zGUl2ENTO11aveEv1Bj+bZMzP6R8q8/mO050S3JYk6mCWXUizIHTRrwPLwVO4qg=
=XUfP
-----END PGP SIGNATURE-----
payloadX  tree 12d3817711a105cb1a2f1f9e9c1132779dd9eb34
parent 730db668b0486dbebe9afbb25a4609052d62cac5
author Sam-Kramer <sam.c.kramer@gmail.com> 1684765316 +0100
committer GitHub <noreply@github.com> 1684765316 +0000

Fix workload config for C* which does not support - (#6579)

 uuj ^https://api.github.com/repos/palantir/atlasdb/commits/1083711b382690fa3e64f57135fe510943c3083chtml_urlShttps://github.com/palantir/atlasdb/commit/1083711b382690fa3e64f57135fe510943c3083ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1083711b382690fa3e64f57135fe510943c3083c/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowjı /https://api.github.com/users/web-flow/followersjƱ <https://api.github.com/users/web-flow/following{/other_user}jȱ 5https://api.github.com/users/web-flow/gists{/gist_id}jʱ <https://api.github.com/users/web-flow/starred{/owner}{/repo}j̱ 3https://api.github.com/users/web-flow/subscriptionsjα *https://api.github.com/users/web-flow/orgsjб +https://api.github.com/users/web-flow/reposjұ 6https://api.github.com/users/web-flow/events{/privacy}jԱ 5https://api.github.com/users/web-flow/received_eventsjֱ Userjر uparents]}(j (730db668b0486dbebe9afbb25a4609052d62cac5j ^https://api.github.com/repos/palantir/atlasdb/commits/730db668b0486dbebe9afbb25a4609052d62cac5j Shttps://github.com/palantir/atlasdb/commit/730db668b0486dbebe9afbb25a4609052d62cac5uastats}(totalK	additionsK	deletionsKufiles]}(j (89db39a1b291717821550b78aad247e99ebcaefffilenameTatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlstatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/1083711b382690fa3e64f57135fe510943c3083c/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/1083711b382690fa3e64f57135fe510943c3083c/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=1083711b382690fa3e64f57135fe510943c3083cpatchX  @@ -53,7 +53,7 @@ install:
     type: ring
   singleBusyCellConfig:
     tableConfiguration:
-      tableName: single-busy-cell-test
+      tableName: single_busy_cell_test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: single-busy-celluau(6e842acb44f1f559d0a260a6d6d6f0f724c9b85e}(sha(6e842acb44f1f559d0a260a6d6d6f0f724c9b85enode_idEC_kwDOAjP5fdoAKDZlODQyYWNiNDRmMWY1NTlkMGEyNjBhNmQ2ZDZmMGY3MjRjOWI4NWUcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-03-06T15:53:33Zu	committer}(j 
svc-changelogj svc-changelog@palantir.comj 2023-03-06T15:53:33ZumessageAdd generated changelog entriestree}(j (5b4e236d0b17ed4c2c721ca20846634233f3a93durl`https://api.github.com/repos/palantir/atlasdb/git/trees/5b4e236d0b17ed4c2c721ca20846634233f3a93duj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6e842acb44f1f559d0a260a6d6d6f0f724c9b85e
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQGDH0JEHYaJX37fAFQAAB7PgEAlFFMznul7WeamC+uhQi5FQuU
Q3Uc2+isVS13YOBh4aEBAMlIAlOevKq5GtyFF4w749Z4VpClBDEmLaIc1FAicTk0
=w3GD
-----END PGP SIGNATURE-----payloadX  tree 5b4e236d0b17ed4c2c721ca20846634233f3a93d
parent fcd41270f16004a6036f37791d9f01f1c3cf4106
author svc-changelog <svc-changelog@palantir.com> 1678118013 +0000
committer svc-changelog <svc-changelog@palantir.com> 1678118013 +0000

Add generated changelog entriesuuj ^https://api.github.com/repos/palantir/atlasdb/commits/6e842acb44f1f559d0a260a6d6d6f0f724c9b85ehtml_urlShttps://github.com/palantir/atlasdb/commit/6e842acb44f1f559d0a260a6d6d6f0f724c9b85ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6e842acb44f1f559d0a260a6d6d6f0f724c9b85e/commentsj
 }(login
svc-changelogidJ#j	 MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j *https://api.github.com/users/svc-changelogj-  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj }(j2 
svc-changelogj4 J#j	 MDQ6VXNlcjg0MDc3NjAzj6 4https://avatars.githubusercontent.com/u/84077603?v=4j8 h5j *https://api.github.com/users/svc-changelogj-  https://github.com/svc-changelogj; 4https://api.github.com/users/svc-changelog/followersj= Ahttps://api.github.com/users/svc-changelog/following{/other_user}j? :https://api.github.com/users/svc-changelog/gists{/gist_id}jA Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jC 8https://api.github.com/users/svc-changelog/subscriptionsjE /https://api.github.com/users/svc-changelog/orgsjG 0https://api.github.com/users/svc-changelog/reposjI ;https://api.github.com/users/svc-changelog/events{/privacy}jK :https://api.github.com/users/svc-changelog/received_eventsjM UserjO uparents]}(j (fcd41270f16004a6036f37791d9f01f1c3cf4106j ^https://api.github.com/repos/palantir/atlasdb/commits/fcd41270f16004a6036f37791d9f01f1c3cf4106j- Shttps://github.com/palantir/atlasdb/commit/fcd41270f16004a6036f37791d9f01f1c3cf4106uastats}(totalK	additionsK	deletionsK ufiles]}(j (bc64692f16e707b561a8379f3f0058ed44b4c10afilename$changelog/@unreleased/pr-6462.v2.ymlstatusaddedji Kjj K changesKblob_url|https://github.com/palantir/atlasdb/blob/6e842acb44f1f559d0a260a6d6d6f0f724c9b85e/changelog%2F%40unreleased%2Fpr-6462.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/6e842acb44f1f559d0a260a6d6d6f0f724c9b85e/changelog%2F%40unreleased%2Fpr-6462.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6462.v2.yml?ref=6e842acb44f1f559d0a260a6d6d6f0f724c9b85epatch@@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: mapAllServersToOrigin accounts for duplicates in map construction
+  links:
+  - https://github.com/palantir/atlasdb/pull/6462uau(b60427d71e46799d36376e427ee1c572177d6a1f}(sha(b60427d71e46799d36376e427ee1c572177d6a1fnode_idEC_kwDOAjP5fdoAKGI2MDQyN2Q3MWU0Njc5OWQzNjM3NmU0MjdlZTFjNTcyMTc3ZDZhMWYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-23T23:43:30Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-04-23T23:43:30Zumessagetry on_failtree}(j~ (30ebe76cd05cadb62a62df2441e2e3b381a0fff7url`https://api.github.com/repos/palantir/atlasdb/git/trees/30ebe76cd05cadb62a62df2441e2e3b381a0fff7uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b60427d71e46799d36376e427ee1c572177d6a1f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRFwqMACgkQPlMHVIT1
yho0Jwf/Yjluuy9cuWPdD3i280tfOVr4xTN81+w1WKtxgkxly3nE4nXLkXdVV/q9
+idePygAkakkBrxDVm/XZKAaTu/Bd1/RmIDHyVothiDJJy2d4jx41WGVJIHTukNu
uBQmbkYpFQe7YzHxu/mVbCWjFayK9OzEwqwsGVr/xGA7OjQA1RN8qHWDjcbv6NUX
cinNK4XNaQZX3A6bfLT7GtnrG8ivc7HPMlgsFmuord9xpl9887vCVaTvgqUf5MX1
LyqilclSsvdshs7twoRbKl6mmj9wspeF/4RkS0A8rvLryh6lel1jRtd7+FpGeJYr
bvK3FR2p5xm2vpKZM5L+wnVDpmO+Xw==
=rEYv
-----END PGP SIGNATURE-----payloadtree 30ebe76cd05cadb62a62df2441e2e3b381a0fff7
parent a0ccdda7a016e2d4a0fe5704168b3d088325b775
author Ahmed Alouane <aalouane@palantir.com> 1682293410 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682293410 +0100

try on_fail
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/b60427d71e46799d36376e427ee1c572177d6a1fhtml_urlShttps://github.com/palantir/atlasdb/commit/b60427d71e46799d36376e427ee1c572177d6a1fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b60427d71e46799d36376e427ee1c572177d6a1f/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j² 3https://api.github.com/users/ergo14/received_eventsjĲ UserjƲ uparents]}(j~ (a0ccdda7a016e2d4a0fe5704168b3d088325b775j ^https://api.github.com/repos/palantir/atlasdb/commits/a0ccdda7a016e2d4a0fe5704168b3d088325b775j Shttps://github.com/palantir/atlasdb/commit/a0ccdda7a016e2d4a0fe5704168b3d088325b775uastats}(totalK	additionsK	deletionsK ufiles]}(j~ (3dfd06d22146524812b6cea19b3a38c09b6a35b0filename.circleci/config.ymlstatusmodifiedj Kj K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/b60427d71e46799d36376e427ee1c572177d6a1f/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/b60427d71e46799d36376e427ee1c572177d6a1f/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=b60427d71e46799d36376e427ee1c572177d6a1fpatchX  @@ -83,6 +83,13 @@ jobs:
       - persist_to_workspace:
           root: .
           paths: [ . ]
+      - run:
+          name: Fail Fast
+          when: on_fail
+          command: |
+            echo "Canceling workflow as a step resulted in failure"
+            curl -X POST --header "Content-Type: application/json" "https://circleci.com/api/v2/workflow/${CIRCLE_WORKFLOW_ID}/cancel?circle-token=${CIRCLE_TOKEN}" 
+
 
   trial-publish:
     docker:uau(ffcbe1a62920e248b82407e29c58561ec79380e1}(sha(ffcbe1a62920e248b82407e29c58561ec79380e1node_idEC_kwDOAjP5fdoAKGZmY2JlMWE2MjkyMGUyNDhiODI0MDdlMjljNTg1NjFlYzc5MzgwZTEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-26T11:59:23Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-06-26T11:59:23Zumessageserial executiontree}(j (8abb5dbbb6a50102866a3d44b03ee6e9f203dce4url`https://api.github.com/repos/palantir/atlasdb/git/trees/8abb5dbbb6a50102866a3d44b03ee6e9f203dce4uj
 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ffcbe1a62920e248b82407e29c58561ec79380e1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSZfZsACgkQmPPOpKR4
XS2HGAf/RbdpcKYbPoVC3oOVC/ULvEmvUu8svUodbvISgu3TMMbTkN/dp2pYnoT+
T5v6HAltM+6gYYhU7GldoeZKLMcW9pnRBK0ifqK0YE+nk0DlqyDYbJ2xoFFP6HNx
t+enq3R8UAlFUF5WCUbcefbCRVhgB4HC3WTlKaTJ/qxBDavqgaC5+gsS8kVmXORu
O8ZyBHaYPh6Y97QYlx054NepN1m1cfO57YkH+rcy+aiIXBGlaQT74D8fduY6p2yy
tHGYmaHBW7UAvpSpugCU2OumT++ZVKZ2vMZrUfKygGZlWjSFcTMZ17PfsDTSzDWc
jcOwAStYlvtDOj7W6NuGli8WwJ2M1A==
=8N2z
-----END PGP SIGNATURE-----payloadtree 8abb5dbbb6a50102866a3d44b03ee6e9f203dce4
parent eac8d7e4a9a564f3e2172eb9d5477c8687be64e4
author Sam Kramer <skramer@palantir.com> 1687780763 +0100
committer Sam Kramer <skramer@palantir.com> 1687780763 +0100

serial execution
uuj
 ^https://api.github.com/repos/palantir/atlasdb/commits/ffcbe1a62920e248b82407e29c58561ec79380e1html_urlShttps://github.com/palantir/atlasdb/commit/ffcbe1a62920e248b82407e29c58561ec79380e1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ffcbe1a62920e248b82407e29c58561ec79380e1/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j
 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j  
Sam-Kramerj" J^2_ j MDQ6VXNlcjYyMzg4MTQ=j$ 3https://avatars.githubusercontent.com/u/6238814?v=4j& h5j
 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj) 1https://api.github.com/users/Sam-Kramer/followersj+ >https://api.github.com/users/Sam-Kramer/following{/other_user}j- 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j/ >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j1 5https://api.github.com/users/Sam-Kramer/subscriptionsj3 ,https://api.github.com/users/Sam-Kramer/orgsj5 -https://api.github.com/users/Sam-Kramer/reposj7 8https://api.github.com/users/Sam-Kramer/events{/privacy}j9 7https://api.github.com/users/Sam-Kramer/received_eventsj; Userj= uparents]}(j (eac8d7e4a9a564f3e2172eb9d5477c8687be64e4j
 ^https://api.github.com/repos/palantir/atlasdb/commits/eac8d7e4a9a564f3e2172eb9d5477c8687be64e4j Shttps://github.com/palantir/atlasdb/commit/eac8d7e4a9a564f3e2172eb9d5477c8687be64e4uastats}(totalK	additionsK 	deletionsKufiles]}(j (73b31a22dfbc609fcd5ea99e19ffe5788ba7655bfilenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedjW K jX KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ffcbe1a62920e248b82407e29c58561ec79380e1/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ffcbe1a62920e248b82407e29c58561ec79380e1/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=ffcbe1a62920e248b82407e29c58561ec79380e1patchX  @@ -129,8 +129,6 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         ExecutorService antithesisWorkflowRunnerExecutorService = environment
                 .lifecycle()
                 .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
-                .minThreads(4)
-                .maxThreads(4)
                 .build();
 
         MetricsManager metricsManager = MetricsManagers.of(environment.metrics(), taggedMetricRegistry);uau(5ea773497cb453a40007c2137489af6970639efe}(sha(5ea773497cb453a40007c2137489af6970639efenode_idEC_kwDOAjP5fdoAKDVlYTc3MzQ5N2NiNDUzYTQwMDA3YzIxMzc0ODlhZjY5NzA2MzllZmUcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-14T13:23:28Zu	committer}(jt 	Tom Papkejv tpapke@palantir.comjx 2023-06-14T13:23:28ZumessageImprove test commentstree}(jl (e193615dd2d48918e843838d358b1b330dc87254url`https://api.github.com/repos/palantir/atlasdb/git/trees/e193615dd2d48918e843838d358b1b330dc87254uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5ea773497cb453a40007c2137489af6970639efe
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSJv1AACgkQmF9s0kaF
Iw38ywf/QNtzHBjucuwUXhR3Wv2fAOZLWFqo1tHG5sTVuTZboDoMTinynMwlMu0l
nEYlA6fbsQoxefusCD6wFVOvNAlPEbPB+Cvs8+YKZDMaYCPqTcd8IsaM07aoEOPn
O2sj8v99mk5y3DtSYngESphj6gdtU/11up4BXcR6Ma0JagotjkzEpltz8nmbAwH4
vspbQyvgZpRA2iDkUJxRoT0nWTOSuzUcKLB/OmxDEhbu1R1yX/jNPaU6GPiBj2Xh
l/hPyEhcpfWABcr/6XKjeCTyk7Q8+sNQ9tcxhfZpA3jVvex1Za/9hS1Pg8o/lqL2
1lObbTgzndSPT3zPOuDn0f7tG4oGKA==
=TaCD
-----END PGP SIGNATURE-----payloadtree e193615dd2d48918e843838d358b1b330dc87254
parent 14e970039ae0091c24293cf796ea2c12834e505e
author Tom Papke <tpapke@palantir.com> 1686749008 +0100
committer Tom Papke <tpapke@palantir.com> 1686749008 +0100

Improve test comments
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/5ea773497cb453a40007c2137489af6970639efehtml_urlShttps://github.com/palantir/atlasdb/commit/5ea773497cb453a40007c2137489af6970639efecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5ea773497cb453a40007c2137489af6970639efe/commentsjr }(login	ToemmscheidJbojn MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujz }(j 	Toemmschej Jbojn MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(jl (14e970039ae0091c24293cf796ea2c12834e505ej ^https://api.github.com/repos/palantir/atlasdb/commits/14e970039ae0091c24293cf796ea2c12834e505ej Shttps://github.com/palantir/atlasdb/commit/14e970039ae0091c24293cf796ea2c12834e505euastats}(totalK	additionsK	deletionsKufiles]}(jl (51ca7f3233311fcc465c0fa7971afc971d29b7e3filenameQlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javastatusmodifiedjγ Kjϳ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5ea773497cb453a40007c2137489af6970639efe/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5ea773497cb453a40007c2137489af6970639efe/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=5ea773497cb453a40007c2137489af6970639efepatchXt  @@ -352,6 +352,7 @@ public void willRestartWhenConfigIsUpdated() throws InterruptedException {
         LockResponse lockResponse = lockServiceWithBackgroundRunner.lockWithFullLockResponse(
                 LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
 
+        // background task is running and should take a snapshot
         Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
                         backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
                 .containsExactly(Map.entry(TEST_LOCK_1, ANONYMOUS_TEST_THREAD_1)));
@@ -362,16 +363,14 @@ public void willRestartWhenConfigIsUpdated() throws InterruptedException {
                 .threadInfoSnapshotIntervalMillis(50L)
                 .build());
 
-        Awaitility.await()
-                .until(() ->
-                        !lockServiceWithBackgroundRunner.getSnapshotManager().isScheduled());
+        Awaitility.await().until(() -> !backgroundSnapshotRunner.isScheduled());
 
         lockServiceWithBackgroundRunner.unlock(lockResponse.getToken());
 
-        // If background task was still running, it would take a snapshot in the meanwhile
+        // If background task was still running, it would take a snapshot at this moment
         Awaitility.await().atLeast(200, TimeUnit.MILLISECONDS);
 
-        // But we expect it to do nothing
+        // ...but we expect it to do nothing
         assertThat(lockServiceWithBackgroundRunner.getSnapshotManager().getLastKnownThreadInfoSnapshot())
                 .containsExactly(Map.entry(TEST_LOCK_1, ANONYMOUS_TEST_THREAD_1));
 
@@ -381,7 +380,7 @@ public void willRestartWhenConfigIsUpdated() throws InterruptedException {
                 .threadInfoSnapshotIntervalMillis(50L)
                 .build());
 
-        // Now the unlock should be reflected in the snapshot
+        // Now the unlock request should be reflected in the snapshot
         Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
                         backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
                 .doesNotContainKey(TEST_LOCK_1));uau(f0fc175e1ecd5979c936254d17670e09eeb9ec89}(sha(f0fc175e1ecd5979c936254d17670e09eeb9ec89node_idEC_kwDOAjP5fdoAKGYwZmMxNzVlMWVjZDU5NzljOTM2MjU0ZDE3NjcwZTA5ZWViOWVjODkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T14:12:25Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-15T14:12:25Zumessagebroken versionstree}(j (7050d2d31a9af50b30023b08ad15f5bca39e60e5url`https://api.github.com/repos/palantir/atlasdb/git/trees/7050d2d31a9af50b30023b08ad15f5bca39e60e5uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f0fc175e1ecd5979c936254d17670e09eeb9ec89
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiPckACgkQPlMHVIT1
yho6Xgf/TBcbcscFwO8ICNIclRIFCb8v7pPNDbfrqgdBPi4Jit7Rn49nm7SCTg0H
9aiNKtAQtb0M+pC682RwRcz9H8u/t/eDi1WmOaN1PSWv6arup4QGjEBE5WAtco5L
PUcRnwlhWs8ekcOP3rk9T1dX0fcV5gbQ0vx0cQlmqFMntr3O/roOprhIskELdPwP
qDw7TYzl53G+7bAzO/EM5Ef8ySJk+0euaAbthdOJZitqZagR8+GM0dTPKMy1M4bd
t2eHiVM87xMeCf3TJKm/PDI153FUezES0OLwFvkW8CIsnYx30E7hmfo04/P3C40q
sClHaHmMUAf5+yctX9RvxE4r4HAihg==
=7x41
-----END PGP SIGNATURE-----payloadtree 7050d2d31a9af50b30023b08ad15f5bca39e60e5
parent ea54ded107a91029bc5cc006c394943312d39e12
author Ahmed Alouane <aalouane@palantir.com> 1684159945 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684159945 +0100

broken versions
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/f0fc175e1ecd5979c936254d17670e09eeb9ec89html_urlShttps://github.com/palantir/atlasdb/commit/f0fc175e1ecd5979c936254d17670e09eeb9ec89comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f0fc175e1ecd5979c936254d17670e09eeb9ec89/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j	 https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j	 https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj! (https://api.github.com/users/ergo14/orgsj# )https://api.github.com/users/ergo14/reposj% 4https://api.github.com/users/ergo14/events{/privacy}j' 3https://api.github.com/users/ergo14/received_eventsj) Userj+ uparents]}(j (ea54ded107a91029bc5cc006c394943312d39e12j ^https://api.github.com/repos/palantir/atlasdb/commits/ea54ded107a91029bc5cc006c394943312d39e12j	 Shttps://github.com/palantir/atlasdb/commit/ea54ded107a91029bc5cc006c394943312d39e12uastats}(totalK	additionsK 	deletionsKufiles]}(j (5b40909112e95a40ca2a40f17769ba067ab6ee7efilename.circleci/config.ymlstatusmodifiedjE K jF KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/f0fc175e1ecd5979c936254d17670e09eeb9ec89/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/f0fc175e1ecd5979c936254d17670e09eeb9ec89/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=f0fc175e1ecd5979c936254d17670e09eeb9ec89patch@@ -175,7 +175,6 @@ workflows:
             branches:
               ignore: [develop]
       - deploy:
-          requires: [build, test]
           filters:
             branches:
               only: developuau(11ad27b62dcf8fe3f2f5d69a2cf3dae91b206623}(sha(11ad27b62dcf8fe3f2f5d69a2cf3dae91b206623node_idEC_kwDOAjP5fdoAKDExYWQyN2I2MmRjZjhmZTNmMmY1ZDY5YTJjZjNkYWU5MWIyMDY2MjMcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T13:08:20Zu	committer}(jb 
Ahmed Alouanejd aalouane@palantir.comjf 2023-05-15T13:08:20Zumessage
test this nowtree}(jZ (89c14216cfd8f4310b0e9584e0465b33549d0e45url`https://api.github.com/repos/palantir/atlasdb/git/trees/89c14216cfd8f4310b0e9584e0465b33549d0e45ujr bhttps://api.github.com/repos/palantir/atlasdb/git/commits/11ad27b62dcf8fe3f2f5d69a2cf3dae91b206623
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiLsQACgkQPlMHVIT1
yhpiTwgAitYzf6Bzyx2YbgaGCbfKcfLzlI9L+ohoKcO4H5Jbl0eowwWiE/V/QxMs
8pQ2pVS2tnS+foLUOp6tr+D/+JHwbnGzAeEhQVtjwzFX9fRTjQ2xePdz7rHpYLm7
Hd7KZLnqYyJUuZUSP+RCqXhOPN3Kfp4pI5kzJnvYrsmJayLuRQJM7eUWk00Npbt4
KLV3rF9iyEtY8vfOv64FptaggduqEBDFqZjlSsG02LiQTyusS13aWaAQ+bYa2oSs
e7ZNCGJ2fhgJElE0nJi9a2hWSUTj5LZWNodn58pCTFIiHo4gQ2AwdbiM99x7VOxO
tU/WxYj3jac5+8q0PVwHJm8Y6JMJ5g==
=PXJA
-----END PGP SIGNATURE-----payloadtree 89c14216cfd8f4310b0e9584e0465b33549d0e45
parent 9a8f11015988463652e004e8f320e61f66c0a6de
author Ahmed Alouane <aalouane@palantir.com> 1684156100 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684156100 +0100

test this now
uujr ^https://api.github.com/repos/palantir/atlasdb/commits/11ad27b62dcf8fe3f2f5d69a2cf3dae91b206623html_urlShttps://github.com/palantir/atlasdb/commit/11ad27b62dcf8fe3f2f5d69a2cf3dae91b206623comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/11ad27b62dcf8fe3f2f5d69a2cf3dae91b206623/commentsj` }(loginergo14idJj\ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jr #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujh }(j ergo14j Jj\ MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5jr #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jZ (9a8f11015988463652e004e8f320e61f66c0a6dejr ^https://api.github.com/repos/palantir/atlasdb/commits/9a8f11015988463652e004e8f320e61f66c0a6dej Shttps://github.com/palantir/atlasdb/commit/9a8f11015988463652e004e8f320e61f66c0a6deuastats}(totalK	additionsK
	deletionsKufiles]}(jZ (db4246d93de7bbe6888ac4e494dc3ced59fb6d1dfilename.circleci/config.ymlstatusmodifiedj K
j KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/11ad27b62dcf8fe3f2f5d69a2cf3dae91b206623/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/11ad27b62dcf8fe3f2f5d69a2cf3dae91b206623/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=11ad27b62dcf8fe3f2f5d69a2cf3dae91b206623patchX  @@ -168,6 +168,15 @@ workflows:
       - test:
           requires: [test-tl, test-no-tl]
           filters:
+            branches:
+              only: /(tlmete.*|develop)/
+            tags:
+              only: /.*/
+      - test:
+          requires: [test-no-tl]
+          filters:
+            branches:
+              ignore: /(tlmete.*|develop)/
             tags:
               only: /.*/
       - trial-publish:
@@ -176,7 +185,7 @@ workflows:
             branches:
               ignore: [develop]
       - deploy:
-          requires: [build, test]
+          requires: [build, test-tl, test-no-tl]
           filters:
             branches:
               only: developuau(97c6673b2b148eaa17833b669f8853854e35a0aa}(sha(97c6673b2b148eaa17833b669f8853854e35a0aanode_idEC_kwDOAjP5fdoAKDk3YzY2NzNiMmIxNDhlYWExNzgzM2I2NjlmODg1Mzg1NGUzNWEwYWEcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-04-06T10:57:54Zu	committer}(jٴ GitHubj۴ noreply@github.comjݴ 2023-04-06T10:57:54ZumessageImprove Sqlite namespace loader implementation (#6488) (#6509)

(cherry picked from commit 1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7)tree}(jѴ (52c5313e65c41cc466d7e5a75f095cb0326777ddurl`https://api.github.com/repos/palantir/atlasdb/git/trees/52c5313e65c41cc466d7e5a75f095cb0326777dduj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/97c6673b2b148eaa17833b669f8853854e35a0aa
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkLqWyCRBK7hj4Ov3rIwAAAM4IABi9XS/kvrDQGp7JcsCOajXo
py8nWJiLbh06ZCDvGEA8FZxkk5wVei3CrG+KH9YLnZZF8eV8Lc2lHC9I+WWCQ6aX
r1niZaxv9dxWoejK/RVojA+Prprtp7KOAj8fUwl9vlOrUHJoBSD9Y6CJVBSADHkS
HY1490LLSTWWce7TYmZAyRO5qyszxHSsi3BtVsbqWyOS758K+81m6QLdJhY0Xp1T
at1cLTnpRkOP8xoBlsf8uizZHnjdqNhWKblB3SfaE6HdIYXPveTRXIRvopQ0uCyw
KnD5wakIkLpGkiE4XG9TxSOf1z5CsmPiPsq2zj3LZiEcndeuthR2O3Kv9yrrEBw=
=upaJ
-----END PGP SIGNATURE-----
payloadXf  tree 52c5313e65c41cc466d7e5a75f095cb0326777dd
parent 587ad6c017a84adb5495125d1eb63434a90fb8be
author aalouane <30903736+ergo14@users.noreply.github.com> 1680778674 +0100
committer GitHub <noreply@github.com> 1680778674 +0100

Improve Sqlite namespace loader implementation (#6488) (#6509)

(cherry picked from commit 1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7)uuj ^https://api.github.com/repos/palantir/atlasdb/commits/97c6673b2b148eaa17833b669f8853854e35a0aahtml_urlShttps://github.com/palantir/atlasdb/commit/97c6673b2b148eaa17833b669f8853854e35a0aacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/97c6673b2b148eaa17833b669f8853854e35a0aa/commentsj״ }(loginergo14idJjӴ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujߴ }(j web-flowj J/jӴ MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j	 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j
 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(jѴ (587ad6c017a84adb5495125d1eb63434a90fb8bej ^https://api.github.com/repos/palantir/atlasdb/commits/587ad6c017a84adb5495125d1eb63434a90fb8bej Shttps://github.com/palantir/atlasdb/commit/587ad6c017a84adb5495125d1eb63434a90fb8beuastats}(totalK.	additionsK$	deletionsK
ufiles](}(jѴ (d950412e3468eb3c6435b88c85e31c8234c831c5filename$changelog/@unreleased/pr-6488.v2.ymlstatusaddedj3 Kj4 K changesKblob_url|https://github.com/palantir/atlasdb/blob/97c6673b2b148eaa17833b669f8853854e35a0aa/changelog%2F%40unreleased%2Fpr-6488.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/97c6673b2b148eaa17833b669f8853854e35a0aa/changelog%2F%40unreleased%2Fpr-6488.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6488.v2.yml?ref=97c6673b2b148eaa17833b669f8853854e35a0aapatch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Improve Sqlite namespace loader implementation
+  links:
+  - https://github.com/palantir/atlasdb/pull/6488u}(jѴ (88bd214a5821cbc0c51c4de2bb7212dc6f8ae78cj9 Nleader-election-impl/src/main/java/com/palantir/paxos/SqlitePaxosStateLog.javaj; modifiedj3 Kj4 Kj= Kj> https://github.com/palantir/atlasdb/blob/97c6673b2b148eaa17833b669f8853854e35a0aa/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FSqlitePaxosStateLog.javaj@ https://github.com/palantir/atlasdb/raw/97c6673b2b148eaa17833b669f8853854e35a0aa/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FSqlitePaxosStateLog.javajB https://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FSqlitePaxosStateLog.java?ref=97c6673b2b148eaa17833b669f8853854e35a0aajD X  @@ -17,8 +17,8 @@
 package com.palantir.paxos;
 
 import com.palantir.common.persist.Persistable;
+import java.util.Optional;
 import java.util.OptionalLong;
-import java.util.Set;
 import java.util.function.Function;
 import javax.sql.DataSource;
 import org.jdbi.v3.core.Jdbi;
@@ -138,7 +138,9 @@ <V extends Persistable & Versionable> boolean[] writeBatchOfRounds(
                 @Bind("useCase") String useCase,
                 @BindPojo("round") Iterable<PaxosRound<V>> rounds);
 
-        @SqlQuery("SELECT DISTINCT(namespace) FROM paxosLog")
-        Set<String> getAllNamespaces();
+        // This is performant as long as the query plan is SEARCH.
+        @SqlQuery("SELECT MIN(namespace) FROM paxosLog WHERE namespace > :maybeLastReadNamespace")
+        Optional<String> getNextLexicographicallySmallestNamespace(
+                @Bind("maybeLastReadNamespace") String maybeLastReadNamespace);
     }
 }u}(jѴ (baf227911b652b66b8cea30d134f4695a43cf96ej9 9timelock-api/src/main/conjure/timelock-management-api.ymlj; modifiedj3 Kj4 Kj= Kj> https://github.com/palantir/atlasdb/blob/97c6673b2b148eaa17833b669f8853854e35a0aa/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymlj@ https://github.com/palantir/atlasdb/raw/97c6673b2b148eaa17833b669f8853854e35a0aa/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymljB https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.yml?ref=97c6673b2b148eaa17833b669f8853854e35a0aajD X  @@ -88,7 +88,8 @@ services:
         returns: set<string>
         docs: |
           The endpoint loads all persisted namespaces. ``leaderPaxos`` is filtered out from the set
-          as it is not a namespace.
+          as it is not a namespace. No transactionality guarantees are given: namespace additions and
+          deletions while the request is running may or may not be reflected in the output.
 
       achieveConsensus:
         http: POST /achieveConsensusu}(jѴ (f51d42df113edf4565c16d14a214a1259f59b6ecj9 ctimelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/PersistentNamespaceLoader.javaj; modifiedj3 Kj4 K j= Kj> https://github.com/palantir/atlasdb/blob/97c6673b2b148eaa17833b669f8853854e35a0aa/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FPersistentNamespaceLoader.javaj@ https://github.com/palantir/atlasdb/raw/97c6673b2b148eaa17833b669f8853854e35a0aa/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FPersistentNamespaceLoader.javajB https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FPersistentNamespaceLoader.java?ref=97c6673b2b148eaa17833b669f8853854e35a0aajD X  @@ -22,6 +22,8 @@
 public interface PersistentNamespaceLoader {
     /**
      * Gets all namespaces that have been persisted (via the persistence method under question).
+     * No transactionality guarantees are given: namespace additions and deletions while the
+     * request is running may or may not be reflected in the output.
      */
     Set<Client> getAllPersistedNamespaces();
 }u}(jѴ (9fe3888160a6f9940e4ac562b73f4e9b808e9a3cj9 _timelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/SqliteNamespaceLoader.javaj; modifiedj3 Kj4 Kj= Kj> https://github.com/palantir/atlasdb/blob/97c6673b2b148eaa17833b669f8853854e35a0aa/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FSqliteNamespaceLoader.javaj@ https://github.com/palantir/atlasdb/raw/97c6673b2b148eaa17833b669f8853854e35a0aa/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FSqliteNamespaceLoader.javajB https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FSqliteNamespaceLoader.java?ref=97c6673b2b148eaa17833b669f8853854e35a0aajD X7  @@ -18,13 +18,16 @@
 
 import com.palantir.paxos.Client;
 import com.palantir.paxos.SqlitePaxosStateLog;
+import java.util.HashSet;
+import java.util.Optional;
 import java.util.Set;
-import java.util.stream.Collectors;
 import javax.sql.DataSource;
 import org.jdbi.v3.core.Jdbi;
 import org.jdbi.v3.sqlobject.SqlObjectPlugin;
 
 final class SqliteNamespaceLoader implements PersistentNamespaceLoader {
+    private static final String EMPTY_STRING = "";
+
     private final Jdbi jdbi;
 
     private SqliteNamespaceLoader(Jdbi jdbi) {
@@ -39,10 +42,23 @@ public static PersistentNamespaceLoader create(DataSource dataSource) {
 
     @Override
     public Set<Client> getAllPersistedNamespaces() {
-        return jdbi
-                .withExtension(SqlitePaxosStateLog.Queries.class, SqlitePaxosStateLog.Queries::getAllNamespaces)
-                .stream()
-                .map(Client::of)
-                .collect(Collectors.toSet());
+        Set<Client> clients = new HashSet<>();
+
+        // Namespaces contain at least one character implying the empty string is lexicographically strictly smaller
+        // than any namespace.
+        Optional<String> currentNamespace = getNextLexicographicallySmallestNamespace(EMPTY_STRING);
+        while (currentNamespace.isPresent()) {
+            String namespaceString = currentNamespace.get();
+            clients.add(Client.of(namespaceString));
+            currentNamespace = getNextLexicographicallySmallestNamespace(namespaceString);
+        }
+
+        return clients;
+    }
+
+    private Optional<String> getNextLexicographicallySmallestNamespace(String maybeLastReadNamespace) {
+        return jdbi.withExtension(
+                SqlitePaxosStateLog.Queries.class,
+                dao -> dao.getNextLexicographicallySmallestNamespace(maybeLastReadNamespace));
     }
 }ueu(b17f7bc74b11a96997730660edede90b286dd48e}(sha(b17f7bc74b11a96997730660edede90b286dd48enode_idEC_kwDOAjP5fdoAKGIxN2Y3YmM3NGIxMWE5Njk5NzczMDY2MGVkZWRlOTBiMjg2ZGQ0OGUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-07-06T13:30:49Zu	committer}(jp 
Sam Kramerjr skramer@palantir.comjt 2023-07-06T13:30:49Zumessagenits nits nitstree}(jh (20a7a11df77ae3aac7b94575e1973683df720da1url`https://api.github.com/repos/palantir/atlasdb/git/trees/20a7a11df77ae3aac7b94575e1973683df720da1uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b17f7bc74b11a96997730660edede90b286dd48e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSmwgkACgkQmPPOpKR4
XS2D5Qf/axtLKMsoMyZ3MA35olJ+Sq1772i4WmGRIbTF+j8vhqJ922ERWAw7y8rj
WeOoucn52CUWK3kPlZA8FWqs5bcfnNaOdWhKN1HzLPbqOL/OMqtmzlhvD73+LwXQ
29LLJK5G8eUEBBDoHC1cAzP+xxngDi+Cojp9mT1LTwOoXT9VFlLlIdl4pu5WuJG8
N17BzMztlABrPJR4L8GNCZnPs0ZLIcROMrytVtFx3pea7RGADI83ESUYk2zUCLhH
e129+hst2cqPnznD7P55Vk4FsbrvbS9OycS2BUuEU7WsiugnMhY9uXR6l5p1lTdC
6j92zqflnPE8Sit9g0hyJRzAKl1QxQ==
=ZiAs
-----END PGP SIGNATURE-----payloadtree 20a7a11df77ae3aac7b94575e1973683df720da1
parent 9bf334ac7596fd426fb24ce61e52d7131f9bf51f
author Sam Kramer <skramer@palantir.com> 1688650249 +0100
committer Sam Kramer <skramer@palantir.com> 1688650249 +0100

nits nits nits
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/b17f7bc74b11a96997730660edede90b286dd48ehtml_urlShttps://github.com/palantir/atlasdb/commit/b17f7bc74b11a96997730660edede90b286dd48ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b17f7bc74b11a96997730660edede90b286dd48e/commentsjn }(login
Sam-KrameridJ^2_ jj MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujv }(j 
Sam-Kramerj J^2_ jj MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jh (9bf334ac7596fd426fb24ce61e52d7131f9bf51fj ^https://api.github.com/repos/palantir/atlasdb/commits/9bf334ac7596fd426fb24ce61e52d7131f9bf51fj Shttps://github.com/palantir/atlasdb/commit/9bf334ac7596fd426fb24ce61e52d7131f9bf51fuastats}(totalK	additionsK	deletionsKufiles](}(jh (15aa07ec06196f530db279a3f45361e4dbb9c46efilenamehatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIterator.javastatusmodifiedjʵ Kj˵ KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/b17f7bc74b11a96997730660edede90b286dd48e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b17f7bc74b11a96997730660edede90b286dd48e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.java?ref=b17f7bc74b11a96997730660edede90b286dd48epatchX  @@ -18,6 +18,7 @@
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterators;
+import com.google.common.math.IntMath;
 import com.palantir.atlasdb.AtlasDbPerformanceConstants;
 import com.palantir.common.base.ClosableIterator;
 import com.palantir.common.base.ClosableIterators;
@@ -60,7 +61,8 @@ public BatchSizeIncreasingIterator(
         if (currentResults != null) {
             this.lastBatchSize = originalBatchSize;
         }
-        this.maxBatchSize = Math.min(originalBatchSize * MAX_FACTOR, AtlasDbPerformanceConstants.MAX_BATCH_SIZE);
+        this.maxBatchSize = Math.min(
+                IntMath.saturatedMultiply(originalBatchSize, MAX_FACTOR), AtlasDbPerformanceConstants.MAX_BATCH_SIZE);
     }
 
     public void markNumResultsNotDeleted(int resultsInBatch) {
@@ -126,6 +128,11 @@ public BatchResult<T> getBatch() {
         return ImmutableBatchResult.of(list, isLastBatch);
     }
 
+    @VisibleForTesting
+    int getMaxBatchSize() {
+        return maxBatchSize;
+    }
+
     @Value.Immutable
     interface BatchResult<T> {
         @Value.Parameteru}(jh (654c9ff367000102ae226eb294db877760cdd71ajе latlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIteratorTest.javajҵ modifiedjʵ Kj˵ KjԵ Kjյ https://github.com/palantir/atlasdb/blob/b17f7bc74b11a96997730660edede90b286dd48e/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIteratorTest.javaj׵ https://github.com/palantir/atlasdb/raw/b17f7bc74b11a96997730660edede90b286dd48e/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIteratorTest.javajٵ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIteratorTest.java?ref=b17f7bc74b11a96997730660edede90b286dd48ej۵ X  @@ -18,6 +18,7 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.AtlasDbPerformanceConstants;
 import com.palantir.common.base.ClosableIterator;
 import com.palantir.common.base.ClosableIterators;
 import java.nio.ByteBuffer;
@@ -30,6 +31,16 @@
 
 public class BatchSizeIncreasingIteratorTest {
 
+    @Test
+    public void handlesIntegerOverflow() {
+        assertThat(new BatchSizeIncreasingIterator<>(
+                                new TestBatchProvider(0),
+                                Integer.MAX_VALUE,
+                                ClosableIterators.emptyImmutableClosableIterator())
+                        .getMaxBatchSize())
+                .isEqualTo(AtlasDbPerformanceConstants.MAX_BATCH_SIZE);
+    }
+
     @Test
     public void getBestBatchSizeEqualToOriginalOnFirstIteration() {
         assertThat(new BatchSizeIncreasingIterator<>(
@@ -82,7 +93,9 @@ public boolean hasNext(byte[] lastToken) {
 
         @Override
         public byte[] getLastToken(List<Integer> batch) {
-            return ByteBuffer.allocate(4).putInt(batch.get(batch.size() - 1)).array();
+            return ByteBuffer.allocate(Integer.BYTES)
+                    .putInt(batch.get(batch.size() - 1))
+                    .array();
         }
     }
 }ueu(9063fff1fc53f3f75d57067d676e206293240a34}(sha(9063fff1fc53f3f75d57067d676e206293240a34node_idEC_kwDOAjP5fdoAKDkwNjNmZmYxZmM1M2YzZjc1ZDU3MDY3ZDY3NmUyMDYyOTMyNDBhMzQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-24T15:13:28Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-04-24T15:13:28Zumessageslightly hardertree}(j (5accf66319bb7b00b370346a45d0c7c283817007url`https://api.github.com/repos/palantir/atlasdb/git/trees/5accf66319bb7b00b370346a45d0c7c283817007uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9063fff1fc53f3f75d57067d676e206293240a34
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRGnJkACgkQmPPOpKR4
XS1GqQgAjJVP/jf+zZ9M+zyAtJJo5jO8kqZFZShwUteHw+4uMeVJbhrZ/eyhrdQ2
2fj2jkmRQcplhr0NWcAKJ1fj7M3TYVi8yL+EaN6R5LJ4MSbghVIa6gIYdiNvvQzB
lwauNkIB62il6cT5ZMBs0RdC+TeQBQGn26zjLl1IoLKcRaI6XzV3Kjf8CEwXW8Bw
PelIImmMa7POUfd+RLGGOFCioahkmbP0/xykVxvxfYdUyA/Ilb9mt/U30O7/ruk2
ojnfKsVq5ZpoMmeYzFqxjcxkVVmHevlvDgvV6+NU6SfM76baTEVkPKO1e0Bw8NWA
HuOFkCTGbvuAYNTv5y5UrH45Di8ydw==
=QD8+
-----END PGP SIGNATURE-----payloadtree 5accf66319bb7b00b370346a45d0c7c283817007
parent b92b43aa06ef7ff35b0ba2a730940639b3c1156e
author Sam Kramer <skramer@palantir.com> 1682349208 +0100
committer Sam Kramer <skramer@palantir.com> 1682349208 +0100

slightly harder
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/9063fff1fc53f3f75d57067d676e206293240a34html_urlShttps://github.com/palantir/atlasdb/commit/9063fff1fc53f3f75d57067d676e206293240a34comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9063fff1fc53f3f75d57067d676e206293240a34/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj
 https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj
 https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j! >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j# 5https://api.github.com/users/Sam-Kramer/subscriptionsj% ,https://api.github.com/users/Sam-Kramer/orgsj' -https://api.github.com/users/Sam-Kramer/reposj) 8https://api.github.com/users/Sam-Kramer/events{/privacy}j+ 7https://api.github.com/users/Sam-Kramer/received_eventsj- Userj/ uparents]}(j (b92b43aa06ef7ff35b0ba2a730940639b3c1156ej ^https://api.github.com/repos/palantir/atlasdb/commits/b92b43aa06ef7ff35b0ba2a730940639b3c1156ej
 Shttps://github.com/palantir/atlasdb/commit/b92b43aa06ef7ff35b0ba2a730940639b3c1156euastats}(totalK	additionsK	deletionsKufiles]}(j (24ec77c27e2f57ccb72330ca28987050820197aefilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedjI KjJ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9063fff1fc53f3f75d57067d676e206293240a34/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9063fff1fc53f3f75d57067d676e206293240a34/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=9063fff1fc53f3f75d57067d676e206293240a34patchX  @@ -1991,6 +1991,10 @@ private void commitWrites(TransactionService transactionService) {
                         () -> timelockService.getCommitTimestamp(getStartTimestamp(), commitLocksToken));
                 commitTsForScrubbing = commitTimestamp;
 
+                // Write to the key value service. We must do this before getting the commit timestamp - otherwise
+                // we risk another transaction starting at a timestamp after our commit timestamp not seeing our writes.
+                timedAndTraced("commitWrite", () -> keyValueService.multiPut(writesByTable, getStartTimestamp()));
+
                 // Punch on commit so that if hard delete is the only thing happening on a system,
                 // we won't block forever waiting for the unreadable timestamp to advance past the
                 // scrub timestamp (same as the hard delete transaction's start timestamp).
@@ -2016,10 +2020,6 @@ private void commitWrites(TransactionService transactionService) {
                 // timed.
                 traced("preCommitLockCheck", () -> throwIfImmutableTsOrCommitLocksExpired(commitLocksToken));
 
-                // Write to the key value service. We must do this before getting the commit timestamp - otherwise
-                // we risk another transaction starting at a timestamp after our commit timestamp not seeing our writes.
-                timedAndTraced("commitWrite", () -> keyValueService.multiPut(writesByTable, getStartTimestamp()));
-
                 // Not timed, because this just calls TransactionService.putUnlessExists, and that is timed.
                 traced(
                         "commitPutCommitTs",uau(e4291278a05866f6ff4ad5d733af38732803bd19}(sha(e4291278a05866f6ff4ad5d733af38732803bd19node_idEC_kwDOAjP5fdoAKGU0MjkxMjc4YTA1ODY2ZjZmZjRhZDVkNzMzYWYzODczMjgwM2JkMTkcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-29T16:44:40Zu	committer}(jf 	Tom Papkejh tpapke@palantir.comjj 2023-06-29T16:44:40Zumessagemake statictree}(j^ (ca9c9374a8027ac3638afeefb2561897a80239e2url`https://api.github.com/repos/palantir/atlasdb/git/trees/ca9c9374a8027ac3638afeefb2561897a80239e2ujv bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e4291278a05866f6ff4ad5d733af38732803bd19
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSdtPgACgkQmF9s0kaF
Iw3oQgf/ZPj0eL/UoXqATVZBBfbal8S7x/nm8YvN+GWeRY+qSjC0DaPt9cn57qf+
KqIQdtHPfT2OfUUqwmVTgLT/goLyt7I+kSz5h1LkF/oSdMtQUHLlfLAuvArEINo6
vd5yp4w/oEWnwfxqSPoqu0Au919yoEmcuObChWrnS+Sl+oTWyll5Cvzcq7AUkWLo
QpflcZLAHV/1s+sTk+Kcaa6I/tai5egGVF1uDSNNKqNzpUFzVqlODv1Ig/Rk+RdY
w+m2q9duerF0pWk7ezbCvyt5ZbgHtIlkARWwpQ1TTjAVa3eEO8uuImv7MgIVnDlx
1Tq/shDfY396gE1MNTykAXuV/E+xWw==
=90jK
-----END PGP SIGNATURE-----payloadtree ca9c9374a8027ac3638afeefb2561897a80239e2
parent df53ac25df39f65c97f89a5cfed22d236e9d35b8
author Tom Papke <tpapke@palantir.com> 1688057080 +0100
committer Tom Papke <tpapke@palantir.com> 1688057080 +0100

make static
uujv ^https://api.github.com/repos/palantir/atlasdb/commits/e4291278a05866f6ff4ad5d733af38732803bd19html_urlShttps://github.com/palantir/atlasdb/commit/e4291278a05866f6ff4ad5d733af38732803bd19comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e4291278a05866f6ff4ad5d733af38732803bd19/commentsjd }(login	ToemmscheidJboj` MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jv &https://api.github.com/users/Toemmsche      j https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujl }(j 	Toemmschej Jboj` MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5jv &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(j^ (df53ac25df39f65c97f89a5cfed22d236e9d35b8jv ^https://api.github.com/repos/palantir/atlasdb/commits/df53ac25df39f65c97f89a5cfed22d236e9d35b8j Shttps://github.com/palantir/atlasdb/commit/df53ac25df39f65c97f89a5cfed22d236e9d35b8uastats}(totalK	additionsK	deletionsKufiles]}(j^ (9f55ad6d5a91523f5133238f9b39ba8002664e51filenameNlock-api/src/test/java/com/palantir/lock/client/IdentifiedLockRequestTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e4291278a05866f6ff4ad5d733af38732803bd19/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e4291278a05866f6ff4ad5d733af38732803bd19/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.java?ref=e4291278a05866f6ff4ad5d733af38732803bd19patchXs  @@ -45,7 +45,7 @@ public class IdentifiedLockRequestTest {
             .build();
     private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(ImmutableMap.of(
             StringLockDescriptor.of("lock1"), ChangeMetadata.created("something".getBytes(StandardCharsets.UTF_8))));
-    private static final ObjectMapper mapper = new ObjectMapper()
+    private static final ObjectMapper MAPPER = new ObjectMapper()
             .enable(SerializationFeature.INDENT_OUTPUT)
             .registerModule(new Jdk8Module())
             .registerModule(new GuavaModule());
@@ -63,42 +63,42 @@ public void baselineRequestWithMetadataIsBackCompat() {
                 "baseline");
     }
 
-    private void assertSerializedEquals(IdentifiedLockRequest request, String jsonFileName) {
+    private static void assertSerializedEquals(IdentifiedLockRequest request, String jsonFileName) {
         try {
             Path path = getJsonPath(jsonFileName);
             if (REWRITE_JSON_BLOBS) {
-                mapper.writeValue(path.toFile(), request);
+                MAPPER.writeValue(path.toFile(), request);
             }
             String serialized = serialize(request);
-            assertThat(mapper.readTree(serialized))
+            assertThat(MAPPER.readTree(serialized))
                     .as("Serialization yields identical JSON representation")
-                    .isEqualTo(mapper.readTree(Files.readString(path)));
+                    .isEqualTo(MAPPER.readTree(Files.readString(path)));
         } catch (Throwable t) {
             throw new RuntimeException(t);
         }
     }
 
-    private void assertDeserializedEquals(String jsonFileName, IdentifiedLockRequest request) {
+    private static void assertDeserializedEquals(String jsonFileName, IdentifiedLockRequest request) {
         assertThat(deserialize(jsonFileName)).isEqualTo(request);
     }
 
-    private String serialize(IdentifiedLockRequest request) {
+    private static String serialize(IdentifiedLockRequest request) {
         try {
-            return mapper.writeValueAsString(request);
+            return MAPPER.writeValueAsString(request);
         } catch (Throwable t) {
             throw new RuntimeException(t);
         }
     }
 
-    private IdentifiedLockRequest deserialize(String jsonFileName) {
+    private static IdentifiedLockRequest deserialize(String jsonFileName) {
         try {
-            return mapper.readValue(Files.readString(getJsonPath(jsonFileName)), IdentifiedLockRequest.class);
+            return MAPPER.readValue(Files.readString(getJsonPath(jsonFileName)), IdentifiedLockRequest.class);
         } catch (Throwable t) {
             throw new RuntimeException(t);
         }
     }
 
-    private Path getJsonPath(String jsonFileName) {
+    private static Path getJsonPath(String jsonFileName) {
         return Paths.get(BASE + jsonFileName + ".json");
     }
 }uau(24d38b90f222b9298eefc07356e553a78a9396a2}(sha(24d38b90f222b9298eefc07356e553a78a9396a2node_idEC_kwDOAjP5fdoAKDI0ZDM4YjkwZjIyMmI5Mjk4ZWVmYzA3MzU2ZTU1M2E3OGE5Mzk2YTIcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-08T15:27:19Zu	committer}(jݶ 
Ahmed Alouanej߶ aalouane@palantir.comj 2023-05-08T15:27:19Zumessagefaulty mathtree}(jն (7433e25383c5cda0be3f6f1dce5710e41f0c5581url`https://api.github.com/repos/palantir/atlasdb/git/trees/7433e25383c5cda0be3f6f1dce5710e41f0c5581uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/24d38b90f222b9298eefc07356e553a78a9396a2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRZFNcACgkQPlMHVIT1
yho+tAf+ONuewNvkE60P+ffcoV6V/H1RSZEyeCDz7f1aSWJ2HS6Qz6NdX/Oj8TdJ
d67keGLjQuboEvhquz8vo8vES7cPhuI7lUD+pgU0DyWFScJOmV47fbqAPcPIIk+b
6qRyytMSQBhbBjaaBIGBTzlYm/+nfU1fDEI7qocUVQnHJZV8qYQd3PNhizMLa3+q
TzeoCMbPGrNJdt5zkTP91FkOQljorkgxUBYguYdJ+UJ8pwfFtNqtXm8Ew/6CFqP1
U2Vip2U1maDAzuB02ukgKgCF17QNFbS6juYEGBuPEISN6nlOQL9pI5O1cE2h+I4l
vA489fwZhiqEO2nyX5DiJAlomFcxBQ==
=or8A
-----END PGP SIGNATURE-----payloadtree 7433e25383c5cda0be3f6f1dce5710e41f0c5581
parent 7a6c2e6de52d398ed3ac48f410bd3ae2a7026c63
author Ahmed Alouane <aalouane@palantir.com> 1683559639 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1683559639 +0100

faulty math
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/24d38b90f222b9298eefc07356e553a78a9396a2html_urlShttps://github.com/palantir/atlasdb/commit/24d38b90f222b9298eefc07356e553a78a9396a2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/24d38b90f222b9298eefc07356e553a78a9396a2/commentsj۶ }(loginergo14idJj׶ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j  ergo14j Jj׶ MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j	 -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j
 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jն (7a6c2e6de52d398ed3ac48f410bd3ae2a7026c63j ^https://api.github.com/repos/palantir/atlasdb/commits/7a6c2e6de52d398ed3ac48f410bd3ae2a7026c63j Shttps://github.com/palantir/atlasdb/commit/7a6c2e6de52d398ed3ac48f410bd3ae2a7026c63uastats}(totalK	additionsK	deletionsK ufiles]}(jն (bb82047b6a2dc5069cbc202363366f581c7529bcfilenameIatlasdb-api/src/test/java/com/palantir/atlasdb/keyvalue/api/CellTest.javastatusmodifiedj7 Kj8 K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/24d38b90f222b9298eefc07356e553a78a9396a2/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/24d38b90f222b9298eefc07356e553a78a9396a2/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellTest.java?ref=24d38b90f222b9298eefc07356e553a78a9396a2patchXT  @@ -42,6 +42,11 @@ public void testCreate() {
                 .isInstanceOf(SafeIllegalArgumentException.class);
     }
 
+    @Test
+    public void alienMath() {
+        assertThat(1 + 4).isEqualTo(6);
+    }
+
     @Test
     @SuppressWarnings("ConstantConditions") // explicitly testing conditions
     public void testIsNameValid() {uau(4c46cf3ba7be6d87288a2362eb96173f80c36ac0}(sha(4c46cf3ba7be6d87288a2362eb96173f80c36ac0node_idEC_kwDOAjP5fdoAKDRjNDZjZjNiYTdiZTZkODcyODhhMjM2MmViOTYxNzNmODBjMzZhYzAcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-20T02:37:29Zu	committer}(jT Jeremy KongjV jkong@palantir.comjX 2023-06-20T02:37:29Zumessage	einfachertree}(jL (a4015dd1c0ea008786bce6d2ab9a0e8afc75b48eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/a4015dd1c0ea008786bce6d2ab9a0e8afc75b48eujd bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4c46cf3ba7be6d87288a2362eb96173f80c36ac0
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSREOkACgkQTLdFKain
zjz2xAf+KCvUI4ylNlKMf+e4LzTVg0Aw48QNsFg+LaYBuqTm9ulX6Zhec3A2x40J
ahkrXTJzapBy5qTetAvrSb7NqQkXITj2Q894+Kc0lLxpfsg8HqZgcVuWdUcVh+Wk
uoKltgOsm6S7Sg5fGQ5u9CYc+PdzQqLgeNt9BASXk/hilBeJCBhhckKIFNMt7Uzh
NjU/WI7eOR6q9xFPC6WE3fOIwdq9GfPzYAqf5k55kVeiAwn136Nd+0YHyESQwiwe
H4Nugn6a7HXKrMCwfY+GwMYwkYvMfDn+nMdGbFCIvO7n+XdGIifW6b5AU1omq5We
kZ2f2AkoOkYxHbMAa5s7zvNTXcc8Ug==
=0Qr6
-----END PGP SIGNATURE-----payloadtree a4015dd1c0ea008786bce6d2ab9a0e8afc75b48e
parent 0cbb6b9037c682140e406754773ebe361b6c6ece
author Jeremy Kong <jkong@palantir.com> 1687228649 +0800
committer Jeremy Kong <jkong@palantir.com> 1687228649 +0800

einfacher
uujd ^https://api.github.com/repos/palantir/atlasdb/commits/4c46cf3ba7be6d87288a2362eb96173f80c36ac0html_urlShttps://github.com/palantir/atlasdb/commit/4c46cf3ba7be6d87288a2362eb96173f80c36ac0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4c46cf3ba7be6d87288a2362eb96173f80c36ac0/commentsjR }(login
jeremyk-91idJZ jN MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jd 'https://api.github.com/users/jeremyk-91jr https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujZ }(jw 
jeremyk-91jy JZ jN MDQ6VXNlcjU5NTU1MTA=j{ 3https://avatars.githubusercontent.com/u/5955510?v=4j} h5jd 'https://api.github.com/users/jeremyk-91jr https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(jL (0cbb6b9037c682140e406754773ebe361b6c6ecejd ^https://api.github.com/repos/palantir/atlasdb/commits/0cbb6b9037c682140e406754773ebe361b6c6ecejr Shttps://github.com/palantir/atlasdb/commit/0cbb6b9037c682140e406754773ebe361b6c6eceuastats}(totalK	additionsK	deletionsKufiles](}(jL (19cf664731855765e6bab383cb89bd02eb8cacf0filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/4c46cf3ba7be6d87288a2362eb96173f80c36ac0/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4c46cf3ba7be6d87288a2362eb96173f80c36ac0/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=4c46cf3ba7be6d87288a2362eb96173f80c36ac0patchX  @@ -501,7 +501,7 @@ public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator
                 }));
 
         // validate requirements here as the first batch for each of the above iterators will not check
-        //validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
         return postFilteredResults;
     }
 
@@ -697,7 +697,7 @@ private ClosableIterator<Map.Entry<Cell, byte[]>> getRowColumnRangePostFiltered(
                 rawIterator,
                 columnRangeSelection,
                 () -> {
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+                    // Hello. I am bug.
                 },
                 raw -> getWithPostFilteringSync(tableRef, raw, Value.GET_VALUE));
     }u}(jL (1373abf4af0263bd3e8ae18b2fd875e8a7a2cd94j *scripts/circle-ci/publish-to-antithesis.shj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/4c46cf3ba7be6d87288a2362eb96173f80c36ac0/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj https://github.com/palantir/atlasdb/raw/4c46cf3ba7be6d87288a2362eb96173f80c36ac0/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=4c46cf3ba7be6d87288a2362eb96173f80c36ac0j X  @@ -41,5 +41,5 @@ docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${1}
 
 if [[ "$1" = "config-check" ]]; then
   echo "Triggering simulation on Antithesis via the config-check webhook."
-  curl -v -u "palantir:${ANTITHESIS_WEBHOOK_PASSWORD}" -X POST https://palantir.antithesis.com/api/v1/launch_experiment/palantir__bravo__baseline
+  curl -v -u "palantir:${ANTITHESIS_WEBHOOK_PASSWORD}" -X POST https://palantir.antithesis.com/api/v1/launch_experiment/palantir__delta__baseline
 fi
\ No newline at end of fileueu(62315ea6575bd563c49c114a39b0516bebc46843}(sha(62315ea6575bd563c49c114a39b0516bebc46843node_idEC_kwDOAjP5fdoAKDYyMzE1ZWE2NTc1YmQ1NjNjNDljMTE0YTM5YjA1MTZiZWJjNDY4NDMcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-12T12:22:50Zu	committer}(jӷ 	Tom Papkejշ tpapke@palantir.comj׷ 2023-06-12T12:22:50Zumessage&Rewmove readonly transaction (again..)tree}(j˷ (ebd1911f85b5a9149d7056cd694ef03bd15e005aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/ebd1911f85b5a9149d7056cd694ef03bd15e005auj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/62315ea6575bd563c49c114a39b0516bebc46843
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSHDhoACgkQmF9s0kaF
Iw2MSgf/VbA3aPM2IrbsEx98v7dBjEQaiEW0w0urHd0oZhTKZoeySY9EAD27MzHs
o3LOM3U37UIrWFmDiM8z02HDUjcvZRBcG7UlEn4/LvBILJc3/nLCwHhL0ldBq+7l
F7jx24qf7dfSSNvN02wNhyrleMzuLJ30iHHWeCc1IScN8QyMl9JdZ+BHV7HvbpJf
y4b0e65I9Oh7EYyFZq8FYV3yE7DPbqEHQL/ZUbhvddN8cY4IorCq5R7uDeHWKbxM
7aeOn9/mIZbDg5T+N4okAkPwYq/+G5Mcm/m/IW2JJ/h+HIXcSh+X0ZXdm6sT23ih
iRs1nJml7fv+mH/ePTeKEFgzSKjXGA==
=YMqU
-----END PGP SIGNATURE-----payloadtree ebd1911f85b5a9149d7056cd694ef03bd15e005a
parent 321c2ea4eb4a44c0a7417dc7700c899ac251fef3
author Tom Papke <tpapke@palantir.com> 1686572570 +0100
committer Tom Papke <tpapke@palantir.com> 1686572570 +0100

Rewmove readonly transaction (again..)
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/62315ea6575bd563c49c114a39b0516bebc46843html_urlShttps://github.com/palantir/atlasdb/commit/62315ea6575bd563c49c114a39b0516bebc46843comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/62315ea6575bd563c49c114a39b0516bebc46843/commentsjѷ }(login	ToemmscheidJbojͷ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujٷ }(j 	Toemmschej Jbojͷ MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj	 +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj
 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(j˷ (321c2ea4eb4a44c0a7417dc7700c899ac251fef3j ^https://api.github.com/repos/palantir/atlasdb/commits/321c2ea4eb4a44c0a7417dc7700c899ac251fef3j Shttps://github.com/palantir/atlasdb/commit/321c2ea4eb4a44c0a7417dc7700c899ac251fef3uastats}(totalK
	additionsK 	deletionsK
ufiles]}(j˷ (fba51b35002bb4c872397d2c09bc57b02ddd8136filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedj- K j. K
changesK
blob_urlhttps://github.com/palantir/atlasdb/blob/62315ea6575bd563c49c114a39b0516bebc46843/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/62315ea6575bd563c49c114a39b0516bebc46843/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=62315ea6575bd563c49c114a39b0516bebc46843patchX  @@ -2428,19 +2428,6 @@ public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigratio
         assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
     }
 
-    @Test
-    public void setsRequestedCommitLocksCountCorrectly_readOnlyTransaction() {
-        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
-        txn.get(TABLE, ImmutableSet.of(TEST_CELL));
-        txn.commit();
-
-        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
-
-        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(0);
-        // Since this is a read-only transaction, we should not even lock a row in the transaction table itself
-        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(0);
-    }
-
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,uau(5fd65c427ec22633d95a5327db931856a5298f09}(sha(5fd65c427ec22633d95a5327db931856a5298f09node_idEC_kwDOAjP5fdoAKDVmZDY1YzQyN2VjMjI2MzNkOTVhNTMyN2RiOTMxODU2YTUyOThmMDkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T13:29:13Zu	committer}(jJ 
Ahmed AlouanejL aalouane@palantir.comjN 2023-05-15T13:29:13ZumessageMRevert "final"

This reverts commit 1523b549ee1405f7ed75b72333658bd8a7587d24.tree}(jB (89c14216cfd8f4310b0e9584e0465b33549d0e45url`https://api.github.com/repos/palantir/atlasdb/git/trees/89c14216cfd8f4310b0e9584e0465b33549d0e45ujZ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5fd65c427ec22633d95a5327db931856a5298f09
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiM6oACgkQPlMHVIT1
yhpSTwf9FSX+IPpPvICFFK7/ZXk+zNsDSUJv5UHPZGYBu+Hyp4B/MXPJYzbh4t28
PFn5GsLmsJMjBzSJy31I62melgRwPm8TETdMLffCJCSao62W/Lo1zb+2ES03po/X
wwqZ5kxyE0pUgQuCeltS87chbo1he3H/JE8gP1hZweRRCmWhuRAme4U2ciNci1YD
7JkC0LHub/T5ObTPJMw16GNd03jdm+pj5FDQPOKU/GRdSBXQ1uvAiLOAfhGtpfqd
/K6Gjl4209N1bB8CzxUfHd+jSVoyYe8l222wTEinrmXrFrnJWJIJMm4onZPtmcC0
5BocS1xNbwkH8eA5ThfTypMs6gtZMA==
=SBLv
-----END PGP SIGNATURE-----payloadX,  tree 89c14216cfd8f4310b0e9584e0465b33549d0e45
parent 1523b549ee1405f7ed75b72333658bd8a7587d24
author Ahmed Alouane <aalouane@palantir.com> 1684157353 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684157353 +0100

Revert "final"

This reverts commit 1523b549ee1405f7ed75b72333658bd8a7587d24.
uujZ ^https://api.github.com/repos/palantir/atlasdb/commits/5fd65c427ec22633d95a5327db931856a5298f09html_urlShttps://github.com/palantir/atlasdb/commit/5fd65c427ec22633d95a5327db931856a5298f09comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5fd65c427ec22633d95a5327db931856a5298f09/commentsjH }(loginergo14idJjD MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jZ #https://api.github.com/users/ergo14jh https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujP }(jm ergo14jo JjD MDQ6VXNlcjMwOTAzNzM2jq 4https://avatars.githubusercontent.com/u/30903736?v=4js h5jZ #https://api.github.com/users/ergo14jh https://github.com/ergo14jv -https://api.github.com/users/ergo14/followersjx :https://api.github.com/users/ergo14/following{/other_user}jz 3https://api.github.com/users/ergo14/gists{/gist_id}j| :https://api.github.com/users/ergo14/starred{/owner}{/repo}j~ 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jB (1523b549ee1405f7ed75b72333658bd8a7587d24jZ ^https://api.github.com/repos/palantir/atlasdb/commits/1523b549ee1405f7ed75b72333658bd8a7587d24jh Shttps://github.com/palantir/atlasdb/commit/1523b549ee1405f7ed75b72333658bd8a7587d24uastats}(totalK	additionsK	deletionsKufiles]}(jB (db4246d93de7bbe6888ac4e494dc3ced59fb6d1dfilename.circleci/config.ymlstatusmodifiedj Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/5fd65c427ec22633d95a5327db931856a5298f09/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/5fd65c427ec22633d95a5327db931856a5298f09/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=5fd65c427ec22633d95a5327db931856a5298f09patchX  @@ -103,7 +103,7 @@ jobs:
     docker: [{ image: 'busybox:1.34.1' }]
     resource_class: small
     steps:
-      - run: {command: echo "No-op as we require a workflow with the name 'test'."}
+      - run: {command: echo "Ran all required tests successfully"}
 
   deploy:
     docker:
@@ -166,9 +166,17 @@ workflows:
             tags:
               only: /.*/
       - test:
-          # This doesn't require anything in reality as it is a no-op, just avoiding new containers spin-up if possible.
-          requires: [build, test-no-tl]
+          requires: [test-tl, test-no-tl]
           filters:
+            branches:
+              only: /(tlmete.*|develop)/
+            tags:
+              only: /.*/
+      - test:
+          requires: [test-no-tl]
+          filters:
+            branches:
+              ignore: /(tlmete.*|develop)/
             tags:
               only: /.*/
       - trial-publish:uau(79c8fd6b229d9ac2275ced0903cfa042d9f74a9c}(sha(79c8fd6b229d9ac2275ced0903cfa042d9f74a9cnode_idEC_kwDOAjP5fdoAKDc5YzhmZDZiMjI5ZDlhYzIyNzVjZWQwOTAzY2ZhMDQyZDlmNzRhOWMcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-25T16:35:52Zu	committer}(j 
Ahmed Alouanejø aalouane@palantir.comjŸ 2023-05-25T16:35:52Zumessageblooptree}(j (d574c2d831fc35e9be1beb20e6a7d7103ae14b5furl`https://api.github.com/repos/palantir/atlasdb/git/trees/d574c2d831fc35e9be1beb20e6a7d7103ae14b5fujѸ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/79c8fd6b229d9ac2275ced0903cfa042d9f74a9c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRvjmgACgkQPlMHVIT1
yhoURQf/afB3O1dq3c/IJlIE4XxuC/Bs4HcjDur+ylxCcH+H92Ir7VOalF6LrUIj
8dQ9iJR6RLVgpUInbq8Q67kQht4f6//+LLEt/02xUWWRUpAvdnKtt1EYmwFcr6nV
2Z/BLW0tv6vtEOU5CcRH1c2SRaALEsXJrfKqrXjnlJ4f/eGWMUG/nPZ0aL4fCIS8
WheC2aUVwM4CgMe3UsobNHNuSkwkgsov0llR6ALnXpR97k8puTF+j2aYCEZNxbQc
T7QHs7T9MHH866Hu7vrY4EDOOu6Bg9C7+BbeP18ScDVtdxbc24lkbBTEfE1FY3sG
WD4pHFSLFScbFvvfBRkvifkN2A92gA==
=YIFz
-----END PGP SIGNATURE-----payloadtree d574c2d831fc35e9be1beb20e6a7d7103ae14b5f
parent 7fda5a70db99b759404101ed27a62336dfdaf184
author Ahmed Alouane <aalouane@palantir.com> 1685032552 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1685032552 +0100

bloop
uujѸ ^https://api.github.com/repos/palantir/atlasdb/commits/79c8fd6b229d9ac2275ced0903cfa042d9f74a9chtml_urlShttps://github.com/palantir/atlasdb/commit/79c8fd6b229d9ac2275ced0903cfa042d9f74a9ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/79c8fd6b229d9ac2275ced0903cfa042d9f74a9c/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jѸ #https://api.github.com/users/ergo14j߸ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujǸ }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5jѸ #https://api.github.com/users/ergo14j߸ https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j (7fda5a70db99b759404101ed27a62336dfdaf184jѸ ^https://api.github.com/repos/palantir/atlasdb/commits/7fda5a70db99b759404101ed27a62336dfdaf184j߸ Shttps://github.com/palantir/atlasdb/commit/7fda5a70db99b759404101ed27a62336dfdaf184uastats}(totalK	additionsK	deletionsKufiles](}(j (a253b61022308c106a2fc2f844f8aaf11d672279filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/79c8fd6b229d9ac2275ced0903cfa042d9f74a9c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/79c8fd6b229d9ac2275ced0903cfa042d9f74a9c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=79c8fd6b229d9ac2275ced0903cfa042d9f74a9cpatchXG  @@ -1827,7 +1827,8 @@ private void ensureStillRunning() {
     }
 
     private boolean isStillRunning() {
-        return state.get() == State.UNCOMMITTED || state.get() == State.COMMITTING;
+        State stateNow = state.get();
+        return stateNow == State.UNCOMMITTED || stateNow == State.COMMITTING;
     }
 
     /**u}(j (61a8c4d73c8b42679610c37c1ba41594680a33f7j! matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javaj# modifiedj K	j K
j% Kj& https://github.com/palantir/atlasdb/blob/79c8fd6b229d9ac2275ced0903cfa042d9f74a9c/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj( https://github.com/palantir/atlasdb/raw/79c8fd6b229d9ac2275ced0903cfa042d9f74a9c/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj* https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=79c8fd6b229d9ac2275ced0903cfa042d9f74a9cj, X=  @@ -18,7 +18,6 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.mockito.Mockito.spy;
-import static org.mockito.Mockito.verifyNoInteractions;
 import static org.mockito.Mockito.when;
 
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
@@ -37,12 +36,12 @@ public final class ExpectationsMetricsReportingTest {
     private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
             ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
 
+    private static final ExpectationsMetrics METRICS =
+            ExpectationsMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
+
     @Mock
     ExpectationsAwareTransaction transaction;
 
-    ExpectationsMetrics metrics =
-            ExpectationsMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
-
     @Before
     public void setUp() {
         // avoids stub/mock NPEs
@@ -54,29 +53,29 @@ public void ageReported() {
         long age = 129L;
         when(transaction.getAgeMillis()).thenReturn(age);
         reportMetrics();
-        assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
+        assertThat(METRICS.ageMillis().getSnapshot().getValues()).containsOnly(age);
     }
 
     @Test
     public void bytesReadReported() {
         long bytes = 1290L;
         when(transaction.getReadInfo()).thenReturn(BLANK_READ_INFO.withBytesRead(bytes));
         reportMetrics();
-        assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
+        assertThat(METRICS.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
     }
 
     @Test
     public void kvsCallsReported() {
         long calls = 12L;
         when(transaction.getReadInfo()).thenReturn(BLANK_READ_INFO.withKvsCalls(calls));
         reportMetrics();
-        assertThat(metrics.kvsReads().getSnapshot().getValues()).containsOnly(calls);
+        assertThat(METRICS.kvsReads().getSnapshot().getValues()).containsOnly(calls);
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
         reportMetrics();
-        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+        assertThat(METRICS.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
                 .isEmpty();
     }
 
@@ -86,11 +85,11 @@ public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumByte
         when(transaction.getReadInfo())
                 .thenReturn(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
         reportMetrics();
-        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+        assertThat(METRICS.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
                 .containsOnly(bytes);
     }
 
     private void reportMetrics() {
-        SnapshotTransaction.reportExpectationsCollectedData(transaction, metrics);
+        SnapshotTransaction.reportExpectationsCollectedData(transaction, METRICS);
     }
 }ueu(eb0c4e6fcca3baea1639eba58f743b08b64c1303}(sha(eb0c4e6fcca3baea1639eba58f743b08b64c1303node_idEC_kwDOAjP5fdoAKGViMGM0ZTZmY2NhM2JhZWExNjM5ZWJhNThmNzQzYjA4YjY0YzEzMDMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-05T18:47:12Zu	committer}(j@ Jeremy KongjB jkong@palantir.comjD 2023-06-05T18:47:12ZumessageRange violations are painfultree}(j8 (84c7aa6ee4e80db8caf91abcd7b1fb9627f63692url`https://api.github.com/repos/palantir/atlasdb/git/trees/84c7aa6ee4e80db8caf91abcd7b1fb9627f63692ujP bhttps://api.github.com/repos/palantir/atlasdb/git/commits/eb0c4e6fcca3baea1639eba58f743b08b64c1303
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEyBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR+LbAACgkQTLdFKain
zjy3VQf4m3+b/EDA1uEyjkDSP+Pm7/1l9YmtrRVPNJLqPWg7N4UMGnn4woP3rR5M
iYn+jrzPHhBoi0q5QgVNMGO++SYLQxyjleG/cfLMyLBNjHU5nlgOsSdQF/gy0mXN
FRlwrQMiEvZnq1x1y5K9VOtXUOaPCt+o6MCCZDES4MGe+Vt2T/V4lTOmVUMUbNkv
VRk8V6q6LgsdS/wb0mots1/G6JihKLVrhthgVAt2LS3R0rmbeofbWm/9tC6FJTMo
Tmg6Tfzdqg6mMx4/VZXcYccvGKJd4ZpG9beugiGaXRB/Hp5kBdiQd2t79QsWExUb
oiog44jX2J/UoU9dvaXR9bh5cwyQ
=CFxa
-----END PGP SIGNATURE-----payloadtree 84c7aa6ee4e80db8caf91abcd7b1fb9627f63692
parent ffcf4dc36467bc81b448fa4d63ff1e868167ee59
author Jeremy Kong <jkong@palantir.com> 1685990832 +0100
committer Jeremy Kong <jkong@palantir.com> 1685990832 +0100

Range violations are painful
uujP ^https://api.github.com/repos/palantir/atlasdb/commits/eb0c4e6fcca3baea1639eba58f743b08b64c1303html_urlShttps://github.com/palantir/atlasdb/commit/eb0c4e6fcca3baea1639eba58f743b08b64c1303comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/eb0c4e6fcca3baea1639eba58f743b08b64c1303/commentsj> }(login
jeremyk-91idJZ j: MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jP 'https://api.github.com/users/jeremyk-91j^ https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujF }(jc 
jeremyk-91je JZ j: MDQ6VXNlcjU5NTU1MTA=jg 3https://avatars.githubusercontent.com/u/5955510?v=4ji h5jP 'https://api.github.com/users/jeremyk-91j^ https://github.com/jeremyk-91jl 1https://api.github.com/users/jeremyk-91/followersjn >https://api.github.com/users/jeremyk-91/following{/other_user}jp 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jr >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jt 5https://api.github.com/users/jeremyk-91/subscriptionsjv ,https://api.github.com/users/jeremyk-91/orgsjx -https://api.github.com/users/jeremyk-91/reposjz 8https://api.github.com/users/jeremyk-91/events{/privacy}j| 7https://api.github.com/users/jeremyk-91/received_eventsj~ Userj uparents]}(j8 (ffcf4dc36467bc81b448fa4d63ff1e868167ee59jP ^https://api.github.com/repos/palantir/atlasdb/commits/ffcf4dc36467bc81b448fa4d63ff1e868167ee59j^ Shttps://github.com/palantir/atlasdb/commit/ffcf4dc36467bc81b448fa4d63ff1e868167ee59uastats}(totalKA	additionsK9	deletionsKufiles]}(j8 (4b8097289be3b0ca64521a75c96ac226aa53807afilenamelatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javastatusmodifiedj K9j KchangesKAblob_urlhttps://github.com/palantir/atlasdb/blob/eb0c4e6fcca3baea1639eba58f743b08b64c1303/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/eb0c4e6fcca3baea1639eba58f743b08b64c1303/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=eb0c4e6fcca3baea1639eba58f743b08b64c1303patchX  @@ -19,14 +19,17 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.CellReferenceAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.InvalidWitnessedRowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import java.util.ArrayList;
@@ -211,7 +214,8 @@ public void handlesRowColumnRangeScansOnlyReadingRelevantValues() {
     public void handlesRowColumnRangeScanLocalWriteSemantics() {
         UUID createdBeforeWriteReadingValue = UUID.randomUUID();
         UUID createdBeforeWriteNotReadingValue = UUID.randomUUID();
-        UUID createdAfterWrite = UUID.randomUUID();
+        UUID createdAfterWriteReadingValue = UUID.randomUUID();
+        UUID createdAfterWriteNotReadingValue = UUID.randomUUID();
 
         List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
         List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
@@ -221,23 +225,68 @@ public void handlesRowColumnRangeScanLocalWriteSemantics() {
                 .startTransaction()
                 .createRowColumnRangeIterator(createdBeforeWriteReadingValue, 5, 0, 99)
                 .createRowColumnRangeIterator(createdBeforeWriteNotReadingValue, 5, 0, 99)
-                .write(5, 5, 5)
-                .createRowColumnRangeIterator(createdAfterWrite, 5, 0, 99)
-                .rowColumnRangeRead(createdAfterWrite, 5, 5, 5)
-                .rowColumnRangeRead(createdAfterWrite, 5, 10, 15)
-                .rowColumnRangeExhaustion(createdAfterWrite, 5)
-                .rowColumnRangeRead(createdBeforeWriteReadingValue, 5, 5, 5)
+                .write(5, 5, 85)
+                .createRowColumnRangeIterator(createdAfterWriteReadingValue, 5, 0, 99)
+                .createRowColumnRangeIterator(createdAfterWriteNotReadingValue, 5, 0, 99)
+                .rowColumnRangeRead(createdBeforeWriteReadingValue, 5, 5, 85)
                 .rowColumnRangeRead(createdBeforeWriteReadingValue, 5, 10, 15)
                 .rowColumnRangeExhaustion(createdBeforeWriteReadingValue, 5)
                 .rowColumnRangeRead(createdBeforeWriteNotReadingValue, 5, 10, 15)
                 .rowColumnRangeExhaustion(createdBeforeWriteNotReadingValue, 5)
+                .rowColumnRangeRead(createdAfterWriteReadingValue, 5, 5, 85)
+                .rowColumnRangeRead(createdAfterWriteReadingValue, 5, 10, 15)
+                .rowColumnRangeExhaustion(createdAfterWriteReadingValue, 5)
+                .rowColumnRangeRead(createdAfterWriteNotReadingValue, 5, 10, 15)
+                .rowColumnRangeExhaustion(createdAfterWriteNotReadingValue, 5)
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
                 .history(transactions)
                 .transactionStore(readableTransactionStore)
                 .build();
         SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
-        assertThat(invalidTransactions).isEmpty();
+
+        InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);
+
+        assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
+
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(
+                        InvalidWitnessedRowsColumnRangeReadTransactionAction.class,
+                        invalidWitnessedRowsColumnRangeReadTransactionAction -> {
+                            assertThat(invalidWitnessedRowsColumnRangeReadTransactionAction.rowColumnRangeRead())
+                                    .satisfies(rowColumnRangeRead -> assertThat(rowColumnRangeRead.iteratorIdentifier())
+                                            .isEqualTo(createdAfterWriteNotReadingValue));
+
+                            assertThat(invalidWitnessedRowsColumnRangeReadTransactionAction.expectedRead())
+                                    .contains(CellReferenceAndValue.builder()
+                                            .tableAndWorkloadCell(
+                                                    TableAndWorkloadCell.of("table", ImmutableWorkloadCell.of(5, 5)))
+                                            .value(85)
+                                            .build());
+                            assertThat(invalidWitnessedRowsColumnRangeReadTransactionAction.actualRead())
+                                    .contains(CellReferenceAndValue.builder()
+                                            .tableAndWorkloadCell(
+                                                    TableAndWorkloadCell.of("table", ImmutableWorkloadCell.of(5, 10)))
+                                            .value(15)
+                                            .build());
+                        });
+    }
+
+    @Test
+    public void identifiesMissingCellFromRowColumnRangeRead() {
+        // TODO
+    }
+
+    @Test
+    public void identifiesIncorrectCellFromRowColumnRangeRead() {
+        // TODO
+    }
+
+    @Test
+    public void identifiesIncorrectValueFromRowColumnRangeRead() {
+        // TODO
     }
 }uau(42946d8eb3f479956aa4ce8b9c4e4e595c9f5954}(sha(42946d8eb3f479956aa4ce8b9c4e4e595c9f5954node_idEC_kwDOAjP5fdoAKDQyOTQ2ZDhlYjNmNDc5OTU2YWE0Y2U4YjljNGU0ZTU5NWM5ZjU5NTQcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-24T15:15:27Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-04-24T15:15:27Zumessagenooootree}(j (d4aedbb1ad53a515b9cd2fabf64ec449e78e4eedurl`https://api.github.com/repos/palantir/atlasdb/git/trees/d4aedbb1ad53a515b9cd2fabf64ec449e78e4eedujǹ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/42946d8eb3f479956aa4ce8b9c4e4e595c9f5954
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRGnQ8ACgkQPlMHVIT1
yhpKBQgAggMgSoc9i55cLL2gX8yVm4da4PA6Sk7+Lgg1pLx15ZJENWMeFgoOSvCJ
LwUHPBwtCb4NDzKC/or+HsT20B4LkBPe1EkH3vdDZkzTIMobc0Be/9bac1+u56t7
qTaejglopuewxd3M1omI6B5eRA6GnKkOmsGnum1W4H5La28yzsTgC1L1jmRGEN+7
CPm9EmL+CBxFuS4coLX2RbG1mLx3oOhasCbRxwM5iU8is73wK8pH8ncZ1q4Sobx2
XwokZHnr3kdUFSn8Y/DFAF5wMl8ObMAjGqeMe4gzFHNNy6mjmULD33W3/Bl2a2yO
1u5J2VQWJo+TtplaOeuarDQ2PbNp2g==
=mn9F
-----END PGP SIGNATURE-----payloadtree d4aedbb1ad53a515b9cd2fabf64ec449e78e4eed
parent 654eab9558b84279d8b4ca0dc105a59179f7feb1
author Ahmed Alouane <aalouane@palantir.com> 1682349327 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682349327 +0100

noooo
uujǹ ^https://api.github.com/repos/palantir/atlasdb/commits/42946d8eb3f479956aa4ce8b9c4e4e595c9f5954html_urlShttps://github.com/palantir/atlasdb/commit/42946d8eb3f479956aa4ce8b9c4e4e595c9f5954comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/42946d8eb3f479956aa4ce8b9c4e4e595c9f5954/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jǹ #https://api.github.com/users/ergo14jչ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(jڹ ergo14jܹ Jj MDQ6VXNlcjMwOTAzNzM2j޹ 4https://avatars.githubusercontent.com/u/30903736?v=4j h5jǹ #https://api.github.com/users/ergo14jչ https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j (654eab9558b84279d8b4ca0dc105a59179f7feb1jǹ ^https://api.github.com/repos/palantir/atlasdb/commits/654eab9558b84279d8b4ca0dc105a59179f7feb1jչ Shttps://github.com/palantir/atlasdb/commit/654eab9558b84279d8b4ca0dc105a59179f7feb1uastats}(totalK	additionsK	deletionsKufiles]}(j (a5e356c54d628ff6fcd00df2585c7b11cb764593filename%scripts/circle-ci/run-circle-tests.shstatusmodifiedj Kj KchangesKblob_url{https://github.com/palantir/atlasdb/blob/42946d8eb3f479956aa4ce8b9c4e4e595c9f5954/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/42946d8eb3f479956aa4ce8b9c4e4e595c9f5954/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=42946d8eb3f479956aa4ce8b9c4e4e595c9f5954patchX  @@ -38,22 +38,24 @@ CONTAINER_9=('atlasdb-dbkvs-tests:oracleTest')
 
 CONTAINER_10=('compileJava' 'compileTestJava')
 
-CONTAINER_11=('atlasdb-cassandra-integration-tests:testChunk0')
+CONTAINER_11=(':atlasdb-cassandra-integration-tests:testChunk0')
 
-CONTAINER_12=('atlasdb-cassandra-integration-tests:testChunk1')
+CONTAINER_12=(':atlasdb-cassandra-integration-tests:testChunk1')
 
-CONTAINER_13=('atlasdb-cassandra-integration-tests:testChunk2')
+CONTAINER_13=(':atlasdb-cassandra-integration-tests:testChunk2')
 
-CONTAINER_14=('atlasdb-cassandra-integration-tests:testChunk3')
+CONTAINER_14=(':atlasdb-cassandra-integration-tests:testChunk3')
 
 CONTAINER_15=(':atlasdb-impl-shared:check')
 
 CONTAINER_16=(':atlasdb-tests-shared:check')
 
 CONTAINER_17=(':atlasdb-perf:check')
 
+IGNORED=(':atlasdb-ete-tests:timeLockMigrationTest' ':atlasdb-cassandra-integration-tests:check')
+
 # Container 0 - runs tasks not found in the below containers
-CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}" "${CONTAINER_11[@]}" "${CONTAINER_12[@]}" "${CONTAINER_13[@]}" "${CONTAINER_14[@]}" "${CONTAINER_15[@]}" "${CONTAINER_16[@]}" "${CONTAINER_17[@]}")
+CONTAINER_0_EXCLUDE=("${IGNORED}" "${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}" "${CONTAINER_11[@]}" "${CONTAINER_12[@]}" "${CONTAINER_13[@]}" "${CONTAINER_14[@]}" "${CONTAINER_15[@]}" "${CONTAINER_16[@]}" "${CONTAINER_17[@]}")
 
 for task in "${CONTAINER_0_EXCLUDE[@]}"
 douau(b390565205aea78c2743d413ce8f29623bb62312}(sha(b390565205aea78c2743d413ce8f29623bb62312node_idEC_kwDOAjP5fdoAKGIzOTA1NjUyMDVhZWE3OGMyNzQzZDQxM2NlOGYyOTYyM2JiNjIzMTIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-14T20:17:40Zu	committer}(j. 
Sam Kramerj0 skramer@palantir.comj2 2023-04-28T15:51:15Zumessagestashtree}(j& (64660bb9c490f97e72f413251f929442b1f1fb13url`https://api.github.com/repos/palantir/atlasdb/git/trees/64660bb9c490f97e72f413251f929442b1f1fb13uj> bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b390565205aea78c2743d413ce8f29623bb62312
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRL63UACgkQmPPOpKR4
XS2fYwf+LMAq4niIgSdMbBUqCCnepsO3hJAntQpKymofN9Ljw+yT00hA1FMMFruR
M66cwqgFPnC+1KligWby8c66lV1IgObB4R0HSJ+DT3VdrwS7Q/DvZTPeg4B8ah+f
gArV1PCl9Qhg6XeLN4T8Ckrv2NE4h2VFJ8DkoBT8xXNgP8u7OtrSAG0PKlLLFVlL
ffv+wBuB3xPyp8MUfj5Lpuj10+tk0ssU/9mLZ2yFb1Q/pfTIsFnI9hx0Z3ft2euH
jfif/Pz1s2vrXAGAJ7qNp6B89DZKrW3mNT+GirnFk200lxb00Oq4t7hA2eelI7Ru
XfaNPWo4TU3b2IzfLLe2O3+SKsUB8w==
=X6DX
-----END PGP SIGNATURE-----payloadtree 64660bb9c490f97e72f413251f929442b1f1fb13
parent cc9bb4733ea5afc3e467218602986b3314468167
author Sam Kramer <skramer@palantir.com> 1681503460 +0100
committer Sam Kramer <skramer@palantir.com> 1682697075 +0100

stash
uuj> ^https://api.github.com/repos/palantir/atlasdb/commits/b390565205aea78c2743d413ce8f29623bb62312html_urlShttps://github.com/palantir/atlasdb/commit/b390565205aea78c2743d413ce8f29623bb62312comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b390565205aea78c2743d413ce8f29623bb62312/commentsj, }(login
Sam-KrameridJ^2_ j( MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j> 'https://api.github.com/users/Sam-KramerjL https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj4 }(jQ 
Sam-KramerjS J^2_ j( MDQ6VXNlcjYyMzg4MTQ=jU 3https://avatars.githubusercontent.com/u/6238814?v=4jW h5j> 'https://api.github.com/users/Sam-KramerjL https://github.com/Sam-KramerjZ 1https://api.github.com/users/Sam-Kramer/followersj\ >https://api.github.com/users/Sam-Kramer/following{/other_user}j^ 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j` >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jb 5https://api.github.com/users/Sam-Kramer/subscriptionsjd ,https://api.github.com/users/Sam-Kramer/orgsjf -https://api.github.com/users/Sam-Kramer/reposjh 8https://api.github.com/users/Sam-Kramer/events{/privacy}jj 7https://api.github.com/users/Sam-Kramer/received_eventsjl Userjn uparents]}(j& (cc9bb4733ea5afc3e467218602986b3314468167j> ^https://api.github.com/repos/palantir/atlasdb/commits/cc9bb4733ea5afc3e467218602986b3314468167jL Shttps://github.com/palantir/atlasdb/commit/cc9bb4733ea5afc3e467218602986b3314468167uastats}(totalKO	additionsKA	deletionsKufiles](}(j& (9a3b7a7060c8f72d6a97bc2c347571b698b81c47filenamejatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStoreFactory.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b390565205aea78c2743d413ce8f29623bb62312/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b390565205aea78c2743d413ce8f29623bb62312/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.java?ref=b390565205aea78c2743d413ce8f29623bb62312patchX  @@ -22,6 +22,6 @@
 /**
  * Creates transaction stores of a certain type which are bounded to the provided tables/indexes.
  */
-public interface TransactionStoreFactory {
-    TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
+public interface TransactionStoreFactory<T extends TransactionStore> {
+    T create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
 }u}(j& (28a22cf125a5e01c971bf285575e6fd025c7fbb5j latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedj K&j Kj K-j https://github.com/palantir/atlasdb/blob/b390565205aea78c2743d413ce8f29623bb62312/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://github.com/palantir/atlasdb/raw/b390565205aea78c2743d413ce8f29623bb62312/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=b390565205aea78c2743d413ce8f29623bb62312j XX  @@ -29,11 +29,18 @@
 import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
 import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
 import com.palantir.atlasdb.workload.workflow.Workflow;
+<<<<<<< HEAD
 import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+=======
+import com.palantir.atlasdb.workload.workflow.WorkflowValidator;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflows;
+>>>>>>> cf0e50e922 (stash)
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
 import com.palantir.conjure.java.serialization.ObjectMappers;
@@ -51,6 +58,7 @@
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutorService;
+import java.util.concurrent.atomic.AtomicBoolean;
 
 public class WorkloadServerLauncher extends Application<WorkloadServerConfiguration> {
 
@@ -95,12 +103,17 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 Refreshable.only(configuration.runtime().atlas()),
                 USER_AGENT,
                 metricsManager);
-        SingleRowTwoCellsWorkflowConfiguration workflowConfig =
+        SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig =
                 configuration.install().singleRowTwoCellsConfig();
+        RingWorkflowConfiguration ringWorkflowConfiguration =
+                configuration.install().ringConfig();
 
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
-                .run(createSingleRowTwoCellsWorkflowValidator(
-                        transactionStoreFactory, workflowConfig, environment.lifecycle()));
+                .run(
+                        createSingleRowTwoCellsWorkflowValidator(
+                                transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
+                        createRingWorkflowValidator(
+                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -111,13 +124,31 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
+
+    private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            RingWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService =
+                lifecycle.executorService(RingWorkflows.class.getSimpleName()).minThreads(100).maxThreads(1024).build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(RingWorkflows.create(
+                transactionStore,
+                workflowConfig,
+                MoreExecutors.listeningDecorator(executorService),
+                new AtomicBoolean(false)));
+    }
+
     private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             SingleRowTwoCellsWorkflowConfiguration workflowConfig,
             LifecycleEnvironment lifecycle) {
-        ExecutorService singleRowTwoCellsExecutorService = lifecycle
-                .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
-                .build();
+        ExecutorService executorService =
+                lifecycle.executorService(RingWorkflows.class.getSimpleName()).minThreads(100).maxThreads(1024).build();
         TransactionStore transactionStore = transactionStoreFactory.create(
                 Map.of(
                         workflowConfig.tableConfiguration().tableName(),
@@ -127,7 +158,7 @@ private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator
                 .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
                         transactionStore,
                         workflowConfig,
-                        MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)))
+                        MoreExecutors.listeningDecorator(executorService)))
                 .addInvariantReporters(new DurableWritesInvariantMetricReporter(
                         SingleRowTwoCellsWorkflows.class.getSimpleName(),
                         DurableWritesMetrics.of(taggedMetricRegistry)))u}(j& (899459cdb3b709b73bdaa6f88501e36e980580c8j atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.java=     j modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/b390565205aea78c2743d413ce8f29623bb62312/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://github.com/palantir/atlasdb/raw/b390565205aea78c2743d413ce8f29623bb62312/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=b390565205aea78c2743d413ce8f29623bb62312j X  @@ -20,6 +20,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
 
 @JsonDeserialize(as = ImmutableWorkloadServerInstallConfiguration.class)
@@ -30,5 +31,7 @@ public interface WorkloadServerInstallConfiguration {
 
     SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig();
 
+    RingWorkflowConfiguration ringConfig();
+
     boolean exitAfterRunning();
 }u}(j& (f25fe13ccc73faf8aabc7ca6fc31cdff5a66e656j Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/b390565205aea78c2743d413ce8f29623bb62312/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/b390565205aea78c2743d413ce8f29623bb62312/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=b390565205aea78c2743d413ce8f29623bb62312j X:  @@ -10,4 +10,10 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SNAPSHOT
+    iterationCount: 1000
+    type: ring
   exitAfterRunning: false
\ No newline at end of fileu}(j& (4982c2b5638bfe53a53dd419b8d9490439420236j Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/b390565205aea78c2743d413ce8f29623bb62312/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://github.com/palantir/atlasdb/raw/b390565205aea78c2743d413ce8f29623bb62312/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=b390565205aea78c2743d413ce8f29623bb62312j X  @@ -45,4 +45,10 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring_test
+      isolationLevel: SNAPSHOT
+    iterationCount: 1000
+    type: ring
   exitAfterRunning: trueu}(j& (5fdd7d68f02ab27c0d546bc691018a1ce4492ac1j Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/b390565205aea78c2743d413ce8f29623bb62312/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/b390565205aea78c2743d413ce8f29623bb62312/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=b390565205aea78c2743d413ce8f29623bb62312j X9  @@ -10,4 +10,10 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SNAPSHOT
+    iterationCount: 1000
+    type: ring
   exitAfterRunning: true
\ No newline at end of fileu}(j& (6c1f4a7a8436891c6ea5ad47054652ed82549811j matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/b390565205aea78c2743d413ce8f29623bb62312/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj https://github.com/palantir/atlasdb/raw/b390565205aea78c2743d413ce8f29623bb62312/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=b390565205aea78c2743d413ce8f29623bb62312j XW  @@ -39,7 +39,7 @@
 import one.util.streamex.EntryStream;
 import one.util.streamex.StreamEx;
 
-public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory {
+public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory<InteractiveTransactionStore> {
 
     private final TransactionManager transactionManager;
     private final Optional<Namespace> maybeNamespace;
@@ -50,7 +50,7 @@ public AtlasDbTransactionStoreFactory(TransactionManager transactionManager, Opt
     }
 
     @Override
-    public TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
+    public InteractiveTransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
         return AtlasDbTransactionStore.create(transactionManager, toAtlasTables(tables, indexes));
     }
 u}(j& (4e3df2947f7689e2184bf27312ce3d67ae8e5c37j patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowConfiguration.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/b390565205aea78c2743d413ce8f29623bb62312/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/b390565205aea78c2743d413ce8f29623bb62312/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.java?ref=b390565205aea78c2743d413ce8f29623bb62312j X  @@ -20,14 +20,13 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.google.common.util.concurrent.RateLimiter;
-import com.palantir.atlasdb.workload.workflow.ImmutableSingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TableConfiguration;
 import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
 import org.immutables.value.Value;
 
 @Value.Immutable
-@JsonSerialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
-@JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonSerialize(as = ImmutableRingWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableRingWorkflowConfiguration.class)
 @JsonTypeName(RingWorkflowConfiguration.TYPE)
 public interface RingWorkflowConfiguration extends WorkflowConfiguration {
     String TYPE = "ring";ueu(b560a5dfca125b4a981d36668f24b30e2f9579a5}(sha(b560a5dfca125b4a981d36668f24b30e2f9579a5node_idEC_kwDOAjP5fdoAKGI1NjBhNWRmY2ExMjViNGE5ODFkMzY2NjhmMjRiMzBlMmY5NTc5YTUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-28T16:00:40Zu	committer}(jݺ 
Sam Kramerjߺ skramer@palantir.comj 2023-04-28T16:00:40Zumessage7rebase and override default thread counts for workflowstree}(jպ (ff2b911719cd38f917e276431f88d582f48690a2url`https://api.github.com/repos/palantir/atlasdb/git/trees/ff2b911719cd38f917e276431f88d582f48690a2uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b560a5dfca125b4a981d36668f24b30e2f9579a5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRL7agACgkQmPPOpKR4
XS0Y5QgAmVFMEH/asOixeYUyGrcJAjrKlyFk8khL0IgCnhpq5N0Kmpy1ZZxlrwLo
1i+fQvHVEZyg9k7TmwxzeRqG9kLnkreMbo8dJRKnfgJ4KddvrejIjaSTgTz3Hip6
vRiL1COauq8tNupASjPaWS4B1WdhP8/M9BiFx7J56hpDfkzXIo47ZH5DaKnCtIIc
4tpK1NsjqfaxfqRPU44EbkZzEjmy1/jyGLvAr10Al0whQofgx6CA7BpCK1u1JxVU
25hJaR0ut6ZAGjBjh9L03/4TJbhJcao73Q6dJzDvFhJVzY+U7s+eyBLYlU2RgWsb
hV7t3GnHlyaxpwv/lYqAx9QtWBzrjA==
=mXvp
-----END PGP SIGNATURE-----payloadX  tree ff2b911719cd38f917e276431f88d582f48690a2
parent 48b4c0479eca14b9153257de5967d6d2ed5bb010
author Sam Kramer <skramer@palantir.com> 1682697640 +0100
committer Sam Kramer <skramer@palantir.com> 1682697640 +0100

rebase and override default thread counts for workflows
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/b560a5dfca125b4a981d36668f24b30e2f9579a5html_urlShttps://github.com/palantir/atlasdb/commit/b560a5dfca125b4a981d36668f24b30e2f9579a5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b560a5dfca125b4a981d36668f24b30e2f9579a5/commentsjۺ }(login
Sam-KrameridJ^2_ j׺ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j  
Sam-Kramerj J^2_ j׺ MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj	 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j
 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jպ (48b4c0479eca14b9153257de5967d6d2ed5bb010j ^https://api.github.com/repos/palantir/atlasdb/commits/48b4c0479eca14b9153257de5967d6d2ed5bb010j Shttps://github.com/palantir/atlasdb/commit/48b4c0479eca14b9153257de5967d6d2ed5bb010uastats}(totalK	additionsK
	deletionsKufiles](}(jպ (47b4109802a3529a585cdba06bb50cbe3fb2a098filenamekatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowConfiguration.javastatusmodifiedj7 Kj8 K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/b560a5dfca125b4a981d36668f24b30e2f9579a5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b560a5dfca125b4a981d36668f24b30e2f9579a5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.java?ref=b560a5dfca125b4a981d36668f24b30e2f9579a5patchX  @@ -17,8 +17,19 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import org.immutables.value.Value;
 
 @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
 public interface WorkflowConfiguration {
     int iterationCount();
+
+    @Value.Default
+    default double rateLimit() {
+        return 100;
+    }
+
+    @Value.Default
+    default Integer maxThreadCount() {
+        return 100;
+    }
 }u}(jպ (657030222c223cabc3af02a6cfa9a51829ab3112j= latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj? modifiedj7 Kj8 KjA KjB https://github.com/palantir/atlasdb/blob/b560a5dfca125b4a981d36668f24b30e2f9579a5/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajD https://github.com/palantir/atlasdb/raw/b560a5dfca125b4a981d36668f24b30e2f9579a5/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=b560a5dfca125b4a981d36668f24b30e2f9579a5jH X&  @@ -125,8 +125,7 @@ private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
             LifecycleEnvironment lifecycle) {
         ExecutorService executorService = lifecycle
                 .executorService(RingWorkflows.class.getSimpleName())
-                .minThreads(100)
-                .maxThreads(1024)
+                .maxThreads(workflowConfig.maxThreadCount())
                 .build();
         InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
                 Map.of(
@@ -143,8 +142,7 @@ private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator
             LifecycleEnvironment lifecycle) {
         ExecutorService executorService = lifecycle
                 .executorService(RingWorkflows.class.getSimpleName())
-                .minThreads(100)
-                .maxThreads(1024)
+                .maxThreads(workflowConfig.maxThreadCount())
                 .build();
         TransactionStore transactionStore = transactionStoreFactory.create(
                 Map.of(u}(jպ (caadf187b4d5e22652f2a830ce77923c1b876143j= xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javaj? modifiedj7 K j8 KjA KjB https://github.com/palantir/atlasdb/blob/b560a5dfca125b4a981d36668f24b30e2f9579a5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javajD https://github.com/palantir/atlasdb/raw/b560a5dfca125b4a981d36668f24b30e2f9579a5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=b560a5dfca125b4a981d36668f24b30e2f9579a5jH X_  @@ -31,11 +31,6 @@ public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfigur
 
     TableConfiguration tableConfiguration();
 
-    @Value.Default
-    default double rateLimit() {
-        return 100;
-    }
-
     @Value.Lazy
     default RateLimiter transactionRateLimiter() {
         return RateLimiter.create(rateLimit());u}(jպ (8db9245638b72b40f73f9ae3c427c4ccb2c69053j= patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowConfiguration.javaj? modifiedj7 K j8 KjA KjB https://github.com/palantir/atlasdb/blob/b560a5dfca125b4a981d36668f24b30e2f9579a5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javajD https://github.com/palantir/atlasdb/raw/b560a5dfca125b4a981d36668f24b30e2f9579a5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.java?ref=b560a5dfca125b4a981d36668f24b30e2f9579a5jH X  @@ -37,11 +37,6 @@ default Integer ringSize() {
         return 3;
     }
 
-    @Value.Default
-    default double rateLimit() {
-        return 100;
-    }
-
     @Value.Lazy
     default RateLimiter transactionRateLimiter() {
         return RateLimiter.create(rateLimit());ueu(543638bf2e894417d6665ade17d3aedf41dddade}(sha(543638bf2e894417d6665ade17d3aedf41dddadenode_idEC_kwDOAjP5fdoAKDU0MzYzOGJmMmU4OTQ0MTdkNjY2NWFkZTE3ZDNhZWRmNDFkZGRhZGUcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-20T14:24:43Zu	committer}(jl 	Tom Papkejn tpapke@palantir.comjp 2023-07-20T14:24:43ZumessageRevert metadatatesttree}(jd (43e74d381148b17045fef57f29ec215766ae2199url`https://api.github.com/repos/palantir/atlasdb/git/trees/43e74d381148b17045fef57f29ec215766ae2199uj| bhttps://api.github.com/repos/palantir/atlasdb/git/commits/543638bf2e894417d6665ade17d3aedf41dddade
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS5Q6sACgkQmF9s0kaF
Iw2u+Af/YQ31bj6ehNvXAco/+MeKX2TpmvzJVW8QYemhpwV3hqDP62lgvDKUZWsx
4093C8vKi0ELRW6GIsxms9oavQI4+HRX4swVIRxDRqG0B/0xy9WibcduH/N9KTtf
lzE/WOJXCeoYhqrK0BUgxf2rWOWOF9fdQKQyXd3KfdlEpfyEGPqzzay/GVCNhS/9
eCAqk5+8dpX8MmzwwRUXey2vrDCEJeM5uvXXjnksxfWfR3YfG2lUqOaESe21owp/
uSvg+mCcyuPcZIPeEdm+mZCftGLPFusGUMtNjqySN5PI2GDPkhrmkNk1Oab5RYPv
1YXfAI7ry6QGg8WONVuDqUQ4zCXImQ==
=u2Dl
-----END PGP SIGNATURE-----payloadtree 43e74d381148b17045fef57f29ec215766ae2199
parent f0d976b77a594275633b3d73bb45447ae54c1804
author Tom Papke <tpapke@palantir.com> 1689863083 +0100
committer Tom Papke <tpapke@palantir.com> 1689863083 +0100

Revert metadatatest
uuj| ^https://api.github.com/repos/palantir/atlasdb/commits/543638bf2e894417d6665ade17d3aedf41dddadehtml_urlShttps://github.com/palantir/atlasdb/commit/543638bf2e894417d6665ade17d3aedf41dddadecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/543638bf2e894417d6665ade17d3aedf41dddade/commentsjj }(login	ToemmscheidJbojf MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j| &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujr }(j 	Toemmschej Jbojf MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j| &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(jd (f0d976b77a594275633b3d73bb45447ae54c1804j| ^https://api.github.com/repos/palantir/atlasdb/commits/f0d976b77a594275633b3d73bb45447ae54c1804j Shttps://github.com/palantir/atlasdb/commit/f0d976b77a594275633b3d73bb45447ae54c1804uastats}(totalK9	additionsK	deletionsK)ufiles]}(jd (4d9311a79afe49e73ddb3b80bfc770f03af846c4filenameftimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataTest.javastatusmodifiedjƻ Kjǻ K)changesK9blob_urlhttps://github.com/palantir/atlasdb/blob/543638bf2e894417d6665ade17d3aedf41dddade/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/543638bf2e894417d6665ade17d3aedf41dddade/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.java?ref=543638bf2e894417d6665ade17d3aedf41dddadepatchX  @@ -18,8 +18,9 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatException;
+import static org.assertj.core.api.Assertions.fail;
 
-import com.google.common.collect.ImmutableList;
+import com.codahale.metrics.MetricRegistry;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.util.concurrent.ListenableFuture;
@@ -41,32 +42,22 @@
 import com.palantir.lock.client.IdentifiedLockRequest;
 import com.palantir.lock.client.ImmutableIdentifiedLockRequest;
 import com.palantir.lock.watch.ChangeMetadata;
-import com.palantir.lock.watch.LockEvent;
 import com.palantir.lock.watch.LockRequestMetadata;
-import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
 import com.palantir.lock.watch.LockWatchReferences;
 import com.palantir.lock.watch.LockWatchStateUpdate;
-import com.palantir.lock.watch.LockWatchStateUpdate.Snapshot;
-import com.palantir.lock.watch.LockWatchStateUpdate.Success;
-import com.palantir.lock.watch.UnlockEvent;
 import com.palantir.timestamp.InMemoryTimestampService;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
 import java.util.UUID;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.ScheduledExecutorService;
-import java.util.stream.Collectors;
 import org.jmock.lib.concurrent.DeterministicScheduler;
 import org.junit.Before;
 import org.junit.Test;
 
 public class AsyncTimeLockServiceMetadataTest {
-    private static final LockWatchEventVisitor LOCK_WATCH_EVENT_VISITOR = new LockWatchEventVisitor();
-    private static final LockWatchStateUpdateVisitor LOCK_WATCH_STATE_UPDATE_VISITOR =
-            new LockWatchStateUpdateVisitor();
-
     private static final String WATCHED_TABLE_NAME = "watched-table";
     private static final LockDescriptor WATCHED_LOCK =
             AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, PtBytes.toBytes("lock1"));
@@ -78,10 +69,11 @@ public class AsyncTimeLockServiceMetadataTest {
     private static final IdentifiedLockRequest WATCHED_LOCK_REQUEST_WITH_METADATA =
             standardRequestWithMetadata(ALL_WATCHED_LOCKS_WITH_METADATA);
 
+    private final LockLog lockLog = new LockLog(new MetricRegistry(), () -> 10000L);
+    private final ScheduledExecutorService scheduledExecutorService = new DeterministicScheduler();
+
     private final MetricsManager metricsManager = MetricsManagers.createForTests();
     private final RequestMetrics requestMetrics = RequestMetrics.of(metricsManager.getTaggedRegistry());
-    private final LockLog lockLog = new LockLog(metricsManager.getRegistry(), () -> 10000L);
-    private final ScheduledExecutorService scheduledExecutorService = new DeterministicScheduler();
     private final AsyncLockService asyncLockService = AsyncLockService.createDefault(
             lockLog,
             scheduledExecutorService,
@@ -167,50 +159,33 @@ public void updatesRequestMetricsCorrectly() {
     }
 
     private List<Optional<LockRequestMetadata>> getAllLockEventsMetadata() {
-        return getAllLockWatchEvents().stream()
-                .map(event -> event.accept(LOCK_WATCH_EVENT_VISITOR))
-                .flatMap(Optional::stream)
-                .map(LockEvent::metadata)
-                .collect(Collectors.toList());
+        return LockWatchIntegrationTestUtilities.extractMetadata(getAllLockWatchEvents());
     }
 
     private List<LockWatchEvent> getAllLockWatchEvents() {
         ListenableFuture<ConjureStartTransactionsResponse> responseFuture =
                 timeLockService.startTransactionsWithWatches(startTransactionsRequestWithInitialVersion);
-        return AtlasFutures.getUnchecked(responseFuture).getLockWatchUpdate().accept(LOCK_WATCH_STATE_UPDATE_VISITOR);
+        return AtlasFutures.getUnchecked(responseFuture)
+                .getLockWatchUpdate()
+                .accept(AssertSuccessVisitor.INSTANCE)
+                .events();
     }
 
     private static IdentifiedLockRequest standardRequestWithMetadata(Map<LockDescriptor, ChangeMetadata> metadata) {
         return IdentifiedLockRequest.of(metadata.keySet(), 1000, "testClient", LockRequestMetadata.of(metadata));
     }
 
-    private static final class LockWatchEventVisitor implements LockWatchEvent.Visitor<Optional<LockEvent>> {
-        @Override
-        public Optional<LockEvent> visit(LockEvent lockEvent) {
-            return Optional.of(lockEvent);
-        }
-
-        @Override
-        public Optional<LockEvent> visit(UnlockEvent unlockEvent) {
-            return Optional.empty();
-        }
-
-        @Override
-        public Optional<LockEvent> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
-            return Optional.empty();
-        }
-    }
+    private enum AssertSuccessVisitor implements LockWatchStateUpdate.Visitor<LockWatchStateUpdate.Success> {
+        INSTANCE;
 
-    private static final class LockWatchStateUpdateVisitor
-            implements LockWatchStateUpdate.Visitor<List<LockWatchEvent>> {
         @Override
-        public List<LockWatchEvent> visit(Success success) {
-            return success.events();
+        public LockWatchStateUpdate.Success visit(LockWatchStateUpdate.Success success) {
+            return success;
         }
 
         @Override
-        public List<LockWatchEvent> visit(Snapshot snapshot) {
-            return ImmutableList.of();
+        public LockWatchStateUpdate.Success visit(LockWatchStateUpdate.Snapshot snapshot) {
+            return fail("Unexpected snapshot");
         }
     }
 }uau(091a2b930b8b88cb393de0b614c20b9d83d8377d}(sha(091a2b930b8b88cb393de0b614c20b9d83d8377dnode_idEC_kwDOAjP5fdoAKDA5MWEyYjkzMGI4Yjg4Y2IzOTNkZTBiNjE0YzIwYjlkODNkODM3N2Qcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-18T13:56:17Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-07-18T13:56:17ZumessageAddress commentstree}(jۻ (69f7571e20a5430d77cc874e0c302cf06d3e80d6url`https://api.github.com/repos/palantir/atlasdb/git/trees/69f7571e20a5430d77cc874e0c302cf06d3e80d6uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/091a2b930b8b88cb393de0b614c20b9d83d8377d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS2mgEACgkQmF9s0kaF
Iw0b8gf/WbXwpXkLggWKsJnigOFSk3Q7oGU1yevPkRyaDyCwOs+4AdS+B4TrZzqq
ORIwwc9o/iCNAIZgTSil8xJK10DpdkVfE5Di39DtfB9dSuSJpVlvC+2nUSsiVJ6d
0H06WjzBL55I8A/DveL/SCdWe5RoUrrq/AilMvj8V3+Ibi5pcyl1iRVbkHhI+Wol
8LQIkIHw63Pfbc4EKTDtubFNyKU6MDhpJU3330HjjfnTqZ7O2Of9VZI32TBehgdZ
Le9c8AOfB8KcOgaecH8qb6P1cdbfNmjjFiU4NcqaYPXQTw3qLmQCsxqvDY4pBhMt
uYpFQmsQuTW6Oonsl1VhgQ2FBUX7Aw==
=uCn0
-----END PGP SIGNATURE-----payloadtree 69f7571e20a5430d77cc874e0c302cf06d3e80d6
parent 17ba451340361b8c9a5d7de98c4bab1ce5d322ac
author Tom Papke <tpapke@palantir.com> 1689688577 +0100
committer Tom Papke <tpapke@palantir.com> 1689688577 +0100

Address comments
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/091a2b930b8b88cb393de0b614c20b9d83d8377dhtml_urlShttps://github.com/palantir/atlasdb/commit/091a2b930b8b88cb393de0b614c20b9d83d8377dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/091a2b930b8b88cb393de0b614c20b9d83d8377d/commentsj }(login	ToemmscheidJbojݻ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jbojݻ MDQ6VXNlcjQzNjc1NDkwj
 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj! Userj# uparents]}(jۻ (17ba451340361b8c9a5d7de98c4bab1ce5d322acj ^https://api.github.com/repos/palantir/atlasdb/commits/17ba451340361b8c9a5d7de98c4bab1ce5d322acj Shttps://github.com/palantir/atlasdb/commit/17ba451340361b8c9a5d7de98c4bab1ce5d322acuastats}(totalK	additionsKR	deletionsKSufiles](}(jۻ (1db88b0afce6cbbc7e74528881cb99bc7a567681filenameGatlasdb-commons/src/main/java/com/palantir/util/IndexEncodingUtils.javastatusmodifiedj= K	j> K changesK	blob_urlhttps://github.com/palantir/atlasdb/blob/091a2b930b8b88cb393de0b614c20b9d83d8377d/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javaraw_urlhttps://github.com/palantir/atlasdb/raw/091a2b930b8b88cb393de0b614c20b9d83d8377d/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.java?ref=091a2b930b8b88cb393de0b614c20b9d83d8377dpatchX  @@ -37,6 +37,11 @@
 public final class IndexEncodingUtils {
     private IndexEncodingUtils() {}
 
+    public static <K extends DeterministicHashable, V> IndexEncodingResult<K, V> encode(
+            Set<K> keys, Map<K, V> keyToValue, ChecksumType checksumType) {
+        return encode(keys, keyToValue, Function.identity(), checksumType);
+    }
+
     /**
      * Compute a derived map (replacing keys with their associated index into the ordered list) to the value returned
      * by running the {@code valueMapper} over the original value.
@@ -77,6 +82,10 @@ public static <K extends DeterministicHashable, V, R> IndexEncodingResult<K, R>
                 .build();
     }
 
+    public static <K extends DeterministicHashable, V> Map<K, V> decode(IndexEncodingResult<K, V> indexEncoding) {
+        return decode(indexEncoding, Function.identity());
+    }
+
     /**
      * Compute a derived map (replacing indices into the list of keys with their item) to the value returned
      * by running the {@code valueMapper} over the original value.u}(jۻ (27fe98fdf2bee74850041a69a10a00e91d3ae2f0jC Katlasdb-commons/src/test/java/com/palantir/util/IndexEncodingUtilsTest.javajE modifiedj= Kj> KjG K%jH https://github.com/palantir/atlasdb/blob/091a2b930b8b88cb393de0b614c20b9d83d8377d/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javajJ https://github.com/palantir/atlasdb/raw/091a2b930b8b88cb393de0b614c20b9d83d8377d/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javajL https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.java?ref=091a2b930b8b88cb393de0b614c20b9d83d8377djN X  @@ -37,7 +37,6 @@
 import java.util.Random;
 import java.util.Set;
 import java.util.UUID;
-import java.util.function.Function;
 import java.util.stream.Collectors;
 import java.util.stream.Stream;
 import org.immutables.value.Value;
@@ -79,22 +78,18 @@ public void cannotLookupUnknownChecksumType() {
 
     @Test
     public void canEncodeSimpleData() {
-        assertThat(createIndexEncodingWithIdentity().indexToValue())
-                .isEqualTo(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
+        assertThat(createIndexEncoding().indexToValue()).isEqualTo(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
     }
 
     @Test
     public void canDecodeSimpleData() {
-        assertThat(IndexEncodingUtils.decode(createIndexEncodingWithIdentity(), Function.identity()))
-                .containsExactlyInAnyOrderEntriesOf(VALUES);
+        assertThat(IndexEncodingUtils.decode(createIndexEncoding())).containsExactlyInAnyOrderEntriesOf(VALUES);
     }
 
     @Test
     public void canEncodeAndDecodeEmptyData() {
         assertThat(IndexEncodingUtils.decode(
-                        IndexEncodingUtils.encode(
-                                ImmutableSet.of(), ImmutableMap.of(), Function.identity(), checksumType),
-                        Function.identity()))
+                        IndexEncodingUtils.encode(ImmutableSet.of(), ImmutableMap.of(), checksumType)))
                 .isEmpty();
     }
 
@@ -116,8 +111,8 @@ public void canDecodeWithCustomValueMapper() {
 
     @Test
     public void encodeFailsForUnknownKeysInValueMap() {
-        assertThatLoggableExceptionThrownBy(() -> IndexEncodingUtils.encode(
-                        KEYS, ImmutableMap.of(wrap("unknown-key"), 0L), Function.identity(), checksumType))
+        assertThatLoggableExceptionThrownBy(
+                        () -> IndexEncodingUtils.encode(KEYS, ImmutableMap.of(wrap("unknown-key"), 0L), checksumType))
                 .isExactlyInstanceOf(SafeIllegalArgumentException.class)
                 .hasLogMessage("Value map uses keys that are not in the provided set of keys")
                 .hasExactlyArgs(UnsafeArg.of("unknownKeys", ImmutableSet.of(wrap("unknown-key"))));
@@ -126,25 +121,23 @@ public void encodeFailsForUnknownKeysInValueMap() {
     @Test
     public void decodeFailsForInvalidIndices() {
         IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encodedWithInvalidIndices =
-                ImmutableIndexEncodingResult.copyOf(createIndexEncodingWithIdentity())
+                ImmutableIndexEncodingResult.copyOf(createIndexEncoding())
                         .withIndexToValue(ImmutableMap.of(KEYS.size(), 17L));
-        assertThatLoggableExceptionThrownBy(
-                        () -> IndexEncodingUtils.decode(encodedWithInvalidIndices, Function.identity()))
+        assertThatLoggableExceptionThrownBy(() -> IndexEncodingUtils.decode(encodedWithInvalidIndices))
                 .isExactlyInstanceOf(SafeIllegalArgumentException.class)
                 .hasLogMessage("Index map contains invalid index")
                 .hasExactlyArgs(SafeArg.of("index", KEYS.size()), SafeArg.of("keyListSize", KEYS.size()));
     }
 
     @Test
     public void integrityCheckFailsForDifferentKeyList() {
-        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encoded = createIndexEncodingWithIdentity();
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encoded = createIndexEncoding();
         List<DeterministicHashableWrapper<String>> modifiedKeyList = new ArrayList<>(KEYS);
         Collections.swap(modifiedKeyList, 0, 1);
         IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encodedWithModifiedKeyList =
                 ImmutableIndexEncodingResult.copyOf(encoded).withKeyList(modifiedKeyList);
         KeyListChecksum actualChecksum = IndexEncodingUtils.computeChecksum(checksumType, modifiedKeyList);
-        assertThatLoggableExceptionThrownBy(
-                        () -> IndexEncodingUtils.decode(encodedWithModifiedKeyList, Function.identity()))
+        assertThatLoggableExceptionThrownBy(() -> IndexEncodingUtils.decode(encodedWithModifiedKeyList))
                 .isExactlyInstanceOf(SafeIllegalArgumentException.class)
                 .hasLogMessage("Key list integrity check failed")
                 .hasExactlyArgs(
@@ -155,14 +148,13 @@ public void integrityCheckFailsForDifferentKeyList() {
 
     @Test
     public void integrityCheckFailsForDifferentChecksum() {
-        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encoded = createIndexEncodingWithIdentity();
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encoded = createIndexEncoding();
         byte[] modifiedChecksum = encoded.keyListChecksum().value();
         modifiedChecksum[0]++;
         IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encodedWithModifiedChecksum =
                 ImmutableIndexEncodingResult.copyOf(encoded)
                         .withKeyListChecksum(KeyListChecksum.of(checksumType, modifiedChecksum));
-        assertThatLoggableExceptionThrownBy(
-                        () -> IndexEncodingUtils.decode(encodedWithModifiedChecksum, Function.identity()))
+        assertThatLoggableExceptionThrownBy(() -> IndexEncodingUtils.decode(encodedWithModifiedChecksum))
                 .isExactlyInstanceOf(SafeIllegalArgumentException.class)
                 .hasLogMessage("Key list integrity check failed")
                 .hasExactlyArgs(
@@ -183,14 +175,13 @@ public void decodingEncodedDataYieldsOriginalForRandomData() {
                 .filter(_unused -> rand.nextBoolean())
                 .map(_unused -> rand.nextLong())
                 .collectToMap();
-        assertThat(IndexEncodingUtils.decode(
-                        IndexEncodingUtils.encode(keys, data, Function.identity(), checksumType), Function.identity()))
+        assertThat(IndexEncodingUtils.decode(IndexEncodingUtils.encode(keys, data, checksumType)))
                 .as("Encoding and decoding yields original data. Random seed: " + seed)
                 .containsExactlyInAnyOrderEntriesOf(data);
     }
 
-    private IndexEncodingResult<DeterministicHashableWrapper<String>, Long> createIndexEncodingWithIdentity() {
-        return IndexEncodingUtils.encode(KEYS, VALUES, Function.identity(), checksumType);
+    private IndexEncodingResult<DeterministicHashableWrapper<String>, Long> createIndexEncoding() {
+        return IndexEncodingUtils.encode(KEYS, VALUES, checksumType);
     }
 
     private static <T> DeterministicHashableWrapper<T> wrap(T value) {u}(jۻ (4494231de27a30ad8d788158d3919939662c73e8jC Elock-api-objects/src/main/java/com/palantir/lock/watch/LockEvent.javajE modifiedj= Kj> KjG K-jH https://github.com/palantir/atlasdb/blob/091a2b930b8b88cb393de0b614c20b9d83d8377d/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javajJ https://github.com/palantir/atlasdb/raw/091a2b930b8b88cb393de0b614c20b9d83d8377d/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javajL https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.java?ref=091a2b930b8b88cb393de0b614c20b9d83d8377djN X  @@ -37,12 +37,11 @@
 import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
-import java.util.function.Function;
 import org.immutables.value.Value;
 
-// Warning: This class contains custom serialization logic. Changing anything about the serialized format of this class
-// requires careful modification of the @JsonCreator and @JsonValue-annotated methods as well as the Wire-... classes
-// All serialization changes should be properly tested.
+/* Warning: This class contains custom serialization logic. Changing anything about the serialized format of this class
+requires careful modification of the @JsonCreator and @JsonValue-annotated methods as well as the Wire-... classes
+All serialization changes should be properly tested. */
 @Unsafe
 @Value.Immutable
 @JsonTypeName(LockEvent.TYPE)
@@ -71,8 +70,9 @@ public static LockEvent create(
             @JsonProperty("sequence") long sequence,
             @JsonProperty("lockDescriptors") List<LockDescriptor> lockDescriptors,
             @JsonProperty("lockToken") LockToken lockToken,
-            @JsonProperty("metadata") Optional<WireLockRequestMetadata> wireMetadata) {
-        Optional<LockRequestMetadata> metadata = wireMetadata.map(getMetadataConverter(lockDescriptors));
+            @JsonProperty("metadata") Optional<WireLockRequestMetadata> optWireMetadata) {
+        Optional<LockRequestMetadata> metadata =
+                optWireMetadata.map(wireMetadata -> convertFromWireMetadata(lockDescriptors, wireMetadata));
         return ImmutableLockEvent.builder()
                 .sequence(sequence)
                 .lockDescriptors(ImmutableSet.copyOf(lockDescriptors))
@@ -86,10 +86,7 @@ public static LockEvent create(
     public WireLockEvent toWireLockEvent() {
         Optional<IndexEncodingResult<LockDescriptor, ChangeMetadata>> optIndexEncodingResult = metadata()
                 .map(metadata -> IndexEncodingUtils.encode(
-                        lockDescriptors(),
-                        metadata.lockDescriptorToChangeMetadata(),
-                        Function.identity(),
-                        DEFAULT_CHECKSUM_TYPE));
+                        lockDescriptors(), metadata.lockDescriptorToChangeMetadata(), DEFAULT_CHECKSUM_TYPE));
         // If the lock event has metadata, we need to use the key list that was used to encode the metadata.
         // Otherwise, any ordering of the lock descriptors is fine.
         List<LockDescriptor> orderedLocks = optIndexEncodingResult
@@ -128,22 +125,18 @@ private static WireLockRequestMetadata buildWireLockRequestMetadata(
                 .build();
     }
 
-    private static Function<WireLockRequestMetadata, LockRequestMetadata> getMetadataConverter(
-            List<LockDescriptor> lockDescriptors) {
-        return wireMetadata -> {
-            KeyListChecksum checksum = KeyListChecksum.of(
-                    ChecksumType.valueOf(wireMetadata.lockListChecksum().typeId()),
-                    wireMetadata.lockListChecksum().value());
-            IndexEncodingResult<LockDescriptor, ChangeMetadata> indexEncodingResult =
-                    IndexEncodingResult.<LockDescriptor, ChangeMetadata>builder()
-                            .keyList(lockDescriptors)
-                            .indexToValue(wireMetadata.indexToChangeMetadata())
-                            .keyListChecksum(checksum)
-                            .build();
-            Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata =
-                    IndexEncodingUtils.decode(indexEncodingResult, Function.identity());
-            return LockRequestMetadata.of(lockDescriptorToChangeMetadata);
-        };
+    private static LockRequestMetadata convertFromWireMetadata(
+            List<LockDescriptor> lockDescriptors, WireLockRequestMetadata wireMetadata) {
+        KeyListChecksum checksum = KeyListChecksum.of(
+                ChecksumType.valueOf(wireMetadata.lockListChecksum().typeId()),
+                wireMetadata.lockListChecksum().value());
+        IndexEncodingResult<LockDescriptor, ChangeMetadata> indexEncodingResult =
+                IndexEncodingResult.<LockDescriptor, ChangeMetadata>builder()
+                        .keyList(lockDescriptors)
+                        .indexToValue(wireMetadata.indexToChangeMetadata())
+                        .keyListChecksum(checksum)
+                        .build();
+        return LockRequestMetadata.of(IndexEncodingUtils.decode(indexEncodingResult));
     }
 
     // This class is explicitly missing @JsonDeserialize as it should only be used for serialization.u}(jۻ (defe0ee01ce008d5117278d95c1bfda7ce71fa91jC Ilock-api-objects/src/test/java/com/palantir/lock/watch/LockEventTest.javajE modifiedj= K(j> K"jG KJjH https://github.com/palantir/atlasdb/blob/091a2b930b8b88cb393de0b614c20b9d83d8377d/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javajJ https://github.com/palantir/atlasdb/raw/091a2b930b8b88cb393de0b614c20b9d83d8377d/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javajL https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.java?ref=091a2b930b8b88cb393de0b614c20b9d83d8377djN X?!  @@ -34,6 +34,7 @@
 import com.palantir.lock.StringLockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.io.IOException;
 import java.nio.file.Files;
 import java.nio.file.Path;
 import java.nio.file.Paths;
@@ -48,6 +49,11 @@
 
 public class LockEventTest {
     private static final String BASE = "src/test/resources/lock-event-wire-format/";
+    private static final String OLD_LOCK_EVENT_FILE = "old";
+    private static final String WITH_METADATA_FILE = "with-metadata";
+    private static final String WITH_EMPTY_METADATA_MAP_FILE = "with-empty-metadata-map";
+    private static final String SPARSE_METADATA_FILE = "sparse-metadata";
+    private static final String SHUFFLED_LOCKS_FILE = "shuffled-locks";
     private static final boolean REWRITE_JSON_BLOBS = false;
 
     private static final LockDescriptor LOCK_1 = StringLockDescriptor.of("abc");
@@ -62,7 +68,7 @@ public class LockEventTest {
             .lockDescriptors(LOCK_SET)
             .lockToken(LOCK_TOKEN)
             .build();
-    private static final LockEvent BASELINE_LOCK_EVENT = ImmutableLockEvent.builder()
+    private static final LockEvent DEFAULT_LOCK_EVENT = ImmutableLockEvent.builder()
             .sequence(SEQUENCE)
             .lockDescriptors(LOCK_SET)
             .lockToken(LOCK_TOKEN)
@@ -91,49 +97,49 @@ public class LockEventTest {
     private static final ObjectMapper VERIFYING_MAPPER = new ObjectMapper();
 
     @Test
-    public void oldLockEventIsBaseline() {
-        assertSerializedEquals(OLD_LOCK_EVENT, "baseline");
-        assertDeserializedEquals("baseline", OLD_LOCK_EVENT, OldLockEvent.class);
+    public void oldLockEventSerializesDeserializes() {
+        assertSerializedEquals(OLD_LOCK_EVENT, OLD_LOCK_EVENT_FILE);
+        assertDeserializedEquals(OLD_LOCK_EVENT_FILE, OLD_LOCK_EVENT, OldLockEvent.class);
     }
 
     @Test
-    public void serializedFormatIsUnchangedForAbsentMetadata() {
-        assertSerializedEquals(BASELINE_LOCK_EVENT, "baseline");
-        assertDeserializedEquals("baseline", BASELINE_LOCK_EVENT, LockEvent.class);
+    public void absentMetadataSerializesDeserializes() {
+        assertSerializedEquals(DEFAULT_LOCK_EVENT, OLD_LOCK_EVENT_FILE);
+        assertDeserializedEquals(OLD_LOCK_EVENT_FILE, DEFAULT_LOCK_EVENT, LockEvent.class);
     }
 
     @Test
-    public void serializesMetadataIfPresent() {
+    public void presentMetadataSerializesDeserializes() {
         LockEvent lockEventWithMetadata =
-                ImmutableLockEvent.copyOf(BASELINE_LOCK_EVENT).withMetadata(LOCK_REQUEST_METADATA);
-        assertSerializedEquals(lockEventWithMetadata, "baseline-with-metadata");
-        assertDeserializedEquals("baseline-with-metadata", lockEventWithMetadata, LockEvent.class);
+                ImmutableLockEvent.copyOf(DEFAULT_LOCK_EVENT).withMetadata(LOCK_REQUEST_METADATA);
+        assertSerializedEquals(lockEventWithMetadata, WITH_METADATA_FILE);
+        assertDeserializedEquals(WITH_METADATA_FILE, lockEventWithMetadata, LockEvent.class);
     }
 
     @Test
-    public void serializesAsLockWatchEventWithMetadata() {
-        LockWatchEvent asLockWatchEvent =
-                ImmutableLockEvent.copyOf(BASELINE_LOCK_EVENT).withMetadata(LOCK_REQUEST_METADATA);
-        assertSerializedEquals(asLockWatchEvent, "baseline-with-metadata");
-        assertDeserializedEquals("baseline-with-metadata", asLockWatchEvent, LockWatchEvent.class);
+    public void serializesDeserializesAsLockWatchEventWithMetadata() {
+        LockWatchEvent lockWatchEvent =
+                ImmutableLockEvent.copyOf(DEFAULT_LOCK_EVENT).withMetadata(LOCK_REQUEST_METADATA);
+        assertSerializedEquals(lockWatchEvent, WITH_METADATA_FILE);
+        assertDeserializedEquals(WITH_METADATA_FILE, lockWatchEvent, LockWatchEvent.class);
     }
 
     @Test
-    public void serializesEmptyMetadataMap() {
+    public void emptyMetadataMapSerializesDeserializes() {
         LockEvent lockEventWithMetadata =
-                ImmutableLockEvent.copyOf(BASELINE_LOCK_EVENT).withMetadata(LockRequestMetadata.of(ImmutableMap.of()));
-        assertSerializedEquals(lockEventWithMetadata, "baseline-empty-metadata-map");
-        assertDeserializedEquals("baseline-empty-metadata-map", lockEventWithMetadata, LockEvent.class);
+                ImmutableLockEvent.copyOf(DEFAULT_LOCK_EVENT).withMetadata(LockRequestMetadata.of(ImmutableMap.of()));
+        assertSerializedEquals(lockEventWithMetadata, WITH_EMPTY_METADATA_MAP_FILE);
+        assertDeserializedEquals(WITH_EMPTY_METADATA_MAP_FILE, lockEventWithMetadata, LockEvent.class);
     }
 
     // This behavior should be guaranteed by the Conjure spec
     @Test
     public void oldClientIgnoresMetadata() {
-        assertDeserializedEquals("baseline-with-metadata", OLD_LOCK_EVENT, OldLockEvent.class);
+        assertDeserializedEquals(WITH_METADATA_FILE, OLD_LOCK_EVENT, OldLockEvent.class);
     }
 
     @Test
-    public void serializesSparseMetadata() {
+    public void sparseMetadataSerializesDeserializes() {
         List<LockDescriptor> lockDescriptors = IntStream.range(0, 10)
                 .mapToObj(Integer::toString)
                 .map(StringLockDescriptor::of)
@@ -152,16 +158,16 @@ public void serializesSparseMetadata() {
                 .metadata(LockRequestMetadata.of(lockDescriptorToChangeMetadata))
                 .build();
 
-        assertSerializedEquals(lockEventWithSparseMetadata, "sparse-metadata");
-        assertDeserializedEquals("sparse-metadata", lockEventWithSparseMetadata, LockEvent.class);
+        assertSerializedEquals(lockEventWithSparseMetadata, SPARSE_METADATA_FILE);
+        assertDeserializedEquals(SPARSE_METADATA_FILE, lockEventWithSparseMetadata, LockEvent.class);
     }
 
     @Test
     public void shufflingLockDescriptorsOnTheWireIsDetectedByClient() {
         assertThatThrownBy(() ->
                         // The order of the lock descriptors in this JSON file is swapped
                         DESERIALIZATION_MAPPER.readValue(
-                                Files.readString(getJsonPath("shuffled-locks")), LockEvent.class))
+                                Files.readString(getJsonPath(SHUFFLED_LOCKS_FILE)), LockEvent.class))
                 .rootCause()
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageStartingWith("Key list integrity check failed");
@@ -170,7 +176,7 @@ public void shufflingLockDescriptorsOnTheWireIsDetectedByClient() {
     @Test
     public void cannotDeserializeAsWireLockEvent() {
         assertThatThrownBy(() -> DESERIALIZATION_MAPPER.readValue(
-                        Files.readString(getJsonPath("baseline-with-metadata")), LockEvent.WireLockEvent.class))
+                        Files.readString(getJsonPath(WITH_METADATA_FILE)), LockEvent.WireLockEvent.class))
                 .isInstanceOf(InvalidDefinitionException.class);
     }
 
@@ -184,8 +190,8 @@ private static <T> void assertSerializedEquals(T object, String jsonFileName) {
             assertThat(VERIFYING_MAPPER.readTree(serialized))
                     .as("Serialization yields semantically identical JSON representation")
                     .isEqualTo(VERIFYING_MAPPER.readTree(Files.readString(path)));
-        } catch (Throwable t) {
-            throw new RuntimeException(t);
+        } catch (IOException e) {
+            throw new RuntimeException(e);
         }
     }
 
@@ -194,11 +200,15 @@ private static <T> void assertDeserializedEquals(String jsonFileName, T object,
             assertThat(DESERIALIZATION_MAPPER.readValue(Files.readString(getJsonPath(jsonFileName)), clazz))
                     .as("Deserialization yields identical object")
                     .isEqualTo(object);
-        } catch (Throwable t) {
-            throw new RuntimeException(t);
+        } catch (IOException e) {
+            throw new RuntimeException(e);
         }
     }
 
+    private static Path getJsonPath(String jsonFileName) {
+        return Paths.get(BASE + jsonFileName + ".json");
+    }
+
     // This is a copy of the LockEvent class before metadata was added
     @Value.Immutable
     @JsonSerialize(as = ImmutableOldLockEvent.class)
@@ -212,8 +222,4 @@ public interface OldLockEvent {
 
         LockToken lockToken();
     }
-
-    private static Path getJsonPath(String jsonFileName) {
-        return Paths.get(BASE + jsonFileName + ".json");
-    }
 }u}(jۻ (1d1d3cf3bf2579562acbf88f3b9915493eb45cedjC Clock-api-objects/src/test/resources/lock-event-wire-format/old.jsonjE renamedj= K j> K jG K jH https://github.com/palantir/atlasdb/blob/091a2b930b8b88cb393de0b614c20b9d83d8377d/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fold.jsonjJ https://github.com/palantir/atlasdb/raw/091a2b930b8b88cb393de0b614c20b9d83d8377d/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fold.jsonjL https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fold.json?ref=091a2b930b8b88cb393de0b614c20b9d83d8377dprevious_filenameHlock-api-objects/src/test/resources/lock-event-wire-format/baseline.jsonu}(jۻ (2c9785a186f61aaa5706802f2c384a031bb75f3ejC Wlock-api-objects/src/test/resources/lock-event-wire-format/with-empty-metadata-map.jsonjE renamedj= K j> K jG K jH https://github.com/palantir/atlasdb/blob/091a2b930b8b88cb393de0b614c20b9d83d8377d/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-empty-metadata-map.jsonjJ https://github.com/palantir/atlasdb/raw/091a2b930b8b88cb393de0b614c20b9d83d8377d/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-empty-metadata-map.jsonjL https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-empty-metadata-map.json?ref=091a2b930b8b88cb393de0b614c20b9d83d8377djo [lock-api-objects/src/test/resources/lock-event-wire-format/baseline-empty-metadata-map.jsonu}(jۻ (c11abb8e1348ee4599b6226e583474cda683e1efjC Mlock-api-objects/src/test/resources/lock-event-wire-format/with-metadata.jsonjE renamedj= K j> K jG K jH https://github.com/palantir/atlasdb/blob/091a2b930b8b88cb393de0b614c20b9d83d8377d/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-metadata.jsonjJ https://github.com/palantir/atlasdb/raw/091a2b930b8b88cb393de0b614c20b9d83d8377d/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-metadata.jsonjL https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-metadata.json?ref=091a2b930b8b88cb393de0b614c20b9d83d8377djo Vlock-api-objects/src/test/resources/lock-event-wire-format/baseline-with-metadata.jsonueu(57a1fe4947fec1e4977cd0a565628d563a2fe629}(sha(57a1fe4947fec1e4977cd0a565628d563a2fe629node_idEC_kwDOAjP5fdoAKDU3YTFmZTQ5NDdmZWMxZTQ5NzdjZDBhNTY1NjI4ZDU2M2EyZmU2Mjkcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-19T09:57:17Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-07-19T10:05:41Zumessage-Move ConjureLockRequestTest to conjure moduletree}(j (fc9ba3d095af51079ff42c920fcfe891407e5adeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/fc9ba3d095af51079ff42c920fcfe891407e5adeuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/57a1fe4947fec1e4977cd0a565628d563a2fe629
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS3tXUACgkQmF9s0kaF
Iw3NUgf+I9QFcB2GNDXGfh4KdzKHJEBmSYeDJsiYScxAinr00ytNQos081zr4uw9
jvewowa+dM1lrLmc2CFicaUhMgI4hHG6LlxuRvhN4n3O9QYO6Y/GztGFWrAlGCHc
kydLNXvMWcdY+PTI3OhLJpfk80ablA/Ku1uKYwqLkFv5iYJ+T49e86hQ1JoRBh/Z
6/d++AADRxq9eGkWrmQmw7Ig36g8oEgn7+BO3hsaw2rDCh6YIqYstMAd3A7n94qJ
LYCLkQofCruDi8zbpY07+1Ng4c04K9YkG7SAaGPPFleKZPcmArcB6ZNLpOMxUjxq
4HQT55ID+qGe8cLfbR7l6CpXS4KwbQ==
=r/ug
-----END PGP SIGNATURE-----payloadX   tree fc9ba3d095af51079ff42c920fcfe891407e5ade
parent eb224fd7ee39ccd076d56d506423b0bb527d5ca6
author Tom Papke <tpapke@palantir.com> 1689760637 +0100
committer Tom Papke <tpapke@palantir.com> 1689761141 +0100

Move ConjureLockRequestTest to conjure module
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/57a1fe4947fec1e4977cd0a565628d563a2fe629html_urlShttps://github.com/palantir/atlasdb/commit/57a1fe4947fec1e4977cd0a565628d563a2fe629comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/57a1fe4947fec1e4977cd0a565628d563a2fe629/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jboj MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsjü ,https://api.github.com/users/Toemmsche/reposjż 7https://api.github.com/users/Toemmsche/events{/privacy}jǼ 6https://api.github.com/users/Toemmsche/received_eventsjɼ Userj˼ uparents]}(j (eb224fd7ee39ccd076d56d506423b0bb527d5ca6j ^https://api.github.com/repos/palantir/atlasdb/commits/eb224fd7ee39ccd076d56d506423b0bb527d5ca6j Shttps://github.com/palantir/atlasdb/commit/eb224fd7ee39ccd076d56d506423b0bb527d5ca6uastats}(totalM;	additionsM	deletionsMufiles](}(j (045e910c290c4a8e6118800a391d3fd1da179745filenameKlock-api/src/test/java/com/palantir/lock/client/ConjureLockRequestTest.javastatusremovedj K j MchangesMblob_urlhttps://github.com/palantir/atlasdb/blob/eb224fd7ee39ccd076d56d506423b0bb527d5ca6/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequestTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/eb224fd7ee39ccd076d56d506423b0bb527d5ca6/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequestTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequestTest.java?ref=eb224fd7ee39ccd076d56d506423b0bb527d5ca6patchX{H  @@ -1,405 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.lock.client;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonSetter;
-import com.fasterxml.jackson.annotation.Nulls;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.fasterxml.jackson.databind.SerializationFeature;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.timelock.api.ConjureChangeMetadata;
-import com.palantir.atlasdb.timelock.api.ConjureCreatedChangeMetadata;
-import com.palantir.atlasdb.timelock.api.ConjureDeletedChangeMetadata;
-import com.palantir.atlasdb.timelock.api.ConjureLockDescriptor;
-import com.palantir.atlasdb.timelock.api.ConjureLockDescriptorListChecksum;
-import com.palantir.atlasdb.timelock.api.ConjureLockRequest;
-import com.palantir.atlasdb.timelock.api.ConjureLockRequestMetadata;
-import com.palantir.atlasdb.timelock.api.ConjureUnchangedChangeMetadata;
-import com.palantir.atlasdb.timelock.api.ConjureUpdatedChangeMetadata;
-import com.palantir.conjure.java.lib.Bytes;
-import com.palantir.conjure.java.lib.internal.ConjureCollections;
-import com.palantir.conjure.java.serialization.ObjectMappers;
-import com.palantir.logsafe.Preconditions;
-import com.palantir.logsafe.Safe;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.Unsafe;
-import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
-import java.io.IOException;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.Paths;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.LinkedHashSet;
-import java.util.List;
-import java.util.Optional;
-import java.util.Set;
-import java.util.UUID;
-import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
-import org.junit.Test;
-
-public class ConjureLockRequestTest {
-    private static final String BASE = "src/test/resources/conjure-lock-request-wire-format/";
-    private static final String OLD_CONJURE_LOCK_REQUEST_FILE = "old";
-    private static final String WITH_METADATA_FILE = "with-metadata";
-    private static final boolean REWRITE_JSON_BLOBS = false;
-
-    private static final ConjureLockDescriptor LOCK_1 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("abc")));
-    private static final ConjureLockDescriptor LOCK_2 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("def")));
-    private static final ConjureLockDescriptor LOCK_3 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("ghi")));
-    private static final ConjureLockDescriptor LOCK_4 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("jkl")));
-    private static final UUID REQUEST_ID = new UUID(1337, 42);
-    private static final int ACQUIRE_TIMEOUT_MS = 100;
-    private static final String CLIENT_DESCRIPTION = "client: test, thread: test";
-    private static final OldConjureLockRequest OLD_CONJURE_LOCK_REQUEST = OldConjureLockRequest.builder()
-            .requestId(REQUEST_ID)
-            .lockDescriptors(ImmutableSet.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4))
-            .acquireTimeoutMs(ACQUIRE_TIMEOUT_MS)
-            .clientDescription(CLIENT_DESCRIPTION)
-            .build();
-    private static final ConjureLockRequest DEFAULT_CONJURE_LOCK_REQUEST = ConjureLockRequest.builder()
-            .requestId(REQUEST_ID)
-            .lockDescriptors(ImmutableList.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4))
-            .acquireTimeoutMs(ACQUIRE_TIMEOUT_MS)
-            .clientDescription(CLIENT_DESCRIPTION)
-            .build();
-
-    private static final byte[] BYTES_OLD = PtBytes.toBytes("old");
-    private static final byte[] BYTES_NEW = PtBytes.toBytes("new");
-    private static final byte[] BYTES_DELETED = PtBytes.toBytes("deleted");
-    private static final byte[] BYTES_CREATED = PtBytes.toBytes("created");
-    // The checksum on this does not have to be correct since the integrity check is performed by the server and not
-    // by Conjure itself
-    private static final ConjureLockRequestMetadata CONJURE_LOCK_REQUEST_METADATA = ConjureLockRequestMetadata.of(
-            ImmutableMap.of(
-                    0,
-                    ConjureChangeMetadata.unchanged(ConjureUnchangedChangeMetadata.of()),
-                    1,
-                    ConjureChangeMetadata.updated(
-                            ConjureUpdatedChangeMetadata.of(Bytes.from(BYTES_OLD), Bytes.from(BYTES_NEW))),
-                    2,
-                    ConjureChangeMetadata.deleted(ConjureDeletedChangeMetadata.of(Bytes.from(BYTES_DELETED))),
-                    3,
-                    ConjureChangeMetadata.created(ConjureCreatedChangeMetadata.of(Bytes.from(BYTES_CREATED)))),
-            ConjureLockDescriptorListChecksum.of(0, Bytes.from(PtBytes.toBytes("test-checksum-value"))));
-
-    // AtlasDB (Client) serializes and TimeLock (Server) deserializes ConjureLockRequest objects.
-    // These are the respective mappers used internally by Conjure.
-    private static final ObjectMapper SERIALIZATION_MAPPER =
-            ObjectMappers.newClientObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
-    private static final ObjectMapper DESERIALIZATION_MAPPER =
-            ObjectMappers.newServerObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
-    // This mapper is used to ensure that two JSONs are equal excluding indentation
-    private static final ObjectMapper VERIFYING_MAPPER = new ObjectMapper();
-
-    @Test
-    public void oldConjureLockRequestSerializesDeserializes() {
-        assertSerializedEquals(OLD_CONJURE_LOCK_REQUEST, OLD_CONJURE_LOCK_REQUEST_FILE);
-        assertDeserializedEquals(OLD_CONJURE_LOCK_REQUEST_FILE, OLD_CONJURE_LOCK_REQUEST, OldConjureLockRequest.class);
-    }
-
-    // Requires excludeEmptyOptionals = true
-    @Test
-    public void absentMetadataSerializesDeserializes() {
-        assertSerializedEquals(DEFAULT_CONJURE_LOCK_REQUEST, OLD_CONJURE_LOCK_REQUEST_FILE);
-        assertDeserializedEquals(OLD_CONJURE_LOCK_REQUEST_FILE, DEFAULT_CONJURE_LOCK_REQUEST, ConjureLockRequest.class);
-    }
-
-    @Test
-    public void presentMetadataSerializesDeserializes() {
-        ConjureLockRequest requestWithMetadata = ConjureLockRequest.builder()
-                .from(DEFAULT_CONJURE_LOCK_REQUEST)
-                .metadata(CONJURE_LOCK_REQUEST_METADATA)
-                .build();
-        assertSerializedEquals(requestWithMetadata, WITH_METADATA_FILE);
-        assertDeserializedEquals(WITH_METADATA_FILE, requestWithMetadata, ConjureLockRequest.class);
-    }
-
-    @Test
-    public void newServerCanHandleMissingMetadata() {
-        assertDeserializedEquals(OLD_CONJURE_LOCK_REQUEST_FILE, DEFAULT_CONJURE_LOCK_REQUEST, ConjureLockRequest.class);
-    }
-
-    // Possible because we do not use strict objects
-    @Test
-    public void oldServerCanHandlePresentMetadata() {
-        assertDeserializedEquals(WITH_METADATA_FILE, OLD_CONJURE_LOCK_REQUEST, OldConjureLockRequest.class);
-    }
-
-    private static <T> void assertSerializedEquals(T object, String jsonFileName) {
-        try {
-            Path path = getJsonPath(jsonFileName);
-            if (REWRITE_JSON_BLOBS) {
-                SERIALIZATION_MAPPER.writeValue(path.toFile(), object);
-            }
-            String serialized = SERIALIZATION_MAPPER.writeValueAsString(object);
-            assertThat(VERIFYING_MAPPER.readTree(serialized))
-                    .as("Serialization yields semantically identical JSON representation")
-                    .isEqualTo(VERIFYING_MAPPER.readTree(Files.readString(path)));
-        } catch (IOException e) {
-            throw new RuntimeException(e);
-        }
-    }
-
-    private static <T> void assertDeserializedEquals(String jsonFileName, T object, Class<T> clazz) {
-        try {
-            assertThat(DESERIALIZATION_MAPPER.readValue(Files.readString(getJsonPath(jsonFileName)), clazz))
-                    .as("Deserialization yields identical object")
-                    .isEqualTo(object);
-        } catch (IOException e) {
-            throw new RuntimeException(e);
-        }
-    }
-
-    private static Path getJsonPath(String jsonFileName) {
-        return Paths.get(BASE, jsonFileName + ".json");
-    }
-
-    // Copy of Conjure-generated file and prefixed with "Old"
-    @Unsafe
-    @JsonDeserialize(builder = OldConjureLockRequest.Builder.class)
-    public static final class OldConjureLockRequest {
-        private final UUID requestId;
-
-        private final Set<ConjureLockDescriptor> lockDescriptors;
-
-        private final int acquireTimeoutMs;
-
-        private final Optional<String> clientDescription;
-
-        private int memoizedHashCode;
-
-        private OldConjureLockRequest(
-                UUID requestId,
-                Set<ConjureLockDescriptor> lockDescriptors,
-                int acquireTimeoutMs,
-                Optional<String> clientDescription) {
-            validateFields(requestId, lockDescriptors, clientDescription);
-            this.requestId = requestId;
-            this.lockDescriptors = Collections.unmodifiableSet(lockDescriptors);
-            this.acquireTimeoutMs = acquireTimeoutMs;
-            this.clientDescription = clientDescription;
-        }
-
-        @JsonProperty("requestId")
-        @Safe
-        public UUID getRequestId() {
-            return this.requestId;
-        }
-
-        @JsonProperty("lockDescriptors")
-        public Set<ConjureLockDescriptor> getLockDescriptors() {
-            return this.lockDescriptors;
-        }
-
-        @JsonProperty("acquireTimeoutMs")
-        @Safe
-        public int getAcquireTimeoutMs() {
-            return this.acquireTimeoutMs;
-        }
-
-        @JsonProperty("clientDescription")
-        @Unsafe
-        public Optional<String> getClientDescription() {
-            return this.clientDescription;
-        }
-
-        @Override
-        public boolean equals(@Nullable Object other) {
-            return this == other || (other instanceof OldConjureLockRequest && equalTo((OldConjureLockRequest) other));
-        }
-
-        private boolean equalTo(OldConjureLockRequest other) {
-            if (this.memoizedHashCode != 0
-                    && other.memoizedHashCode != 0
-                    && this.memoizedHashCode != other.memoizedHashCode) {
-                return false;
-            }
-            return this.requestId.equals(other.requestId)
-                    && this.lockDescriptors.equals(other.lockDescriptors)
-                    && this.acquireTimeoutMs == other.acquireTimeoutMs
-                    && this.clientDescription.equals(other.clientDescription);
-        }
-
-        @Override
-        public int hashCode() {
-            int result = memoizedHashCode;
-            if (result == 0) {
-                int hash = 1;
-                hash = 31 * hash + this.requestId.hashCode();
-                hash = 31 * hash + this.lockDescriptors.hashCode();
-                hash = 31 * hash + this.acquireTimeoutMs;
-                hash = 31 * hash + this.clientDescription.hashCode();
-                result = hash;
-                memoizedHashCode = result;
-            }
-            return result;
-        }
-
-        @Override
-        @Unsafe
-        public String toString() {
-            return "ConjureLockRequest{requestId: " + requestId + ", lockDescriptors: " + lockDescriptors
-                    + ", acquireTimeoutMs: " + acquireTimeoutMs + ", clientDescription: " + clientDescription + '}';
-        }
-
-        private static void validateFields(
-                UUID requestId, Set<ConjureLockDescriptor> lockDescriptors, Optional<String> clientDescription) {
-            List<String> missingFields = null;
-            missingFields = addFieldIfMissing(missingFields, requestId, "requestId");
-            missingFields = addFieldIfMissing(missingFields, lockDescriptors, "lockDescriptors");
-            missingFields = addFieldIfMissing(missingFields, clientDescription, "clientDescription");
-            if (missingFields != null) {
-                throw new SafeIllegalArgumentException(
-                        "Some required fields have not been set", SafeArg.of("missingFields", missingFields));
-            }
-        }
-
-        private static List<String> addFieldIfMissing(List<String> prev, Object fieldValue, String fieldName) {
-            List<String> missingFields = prev;
-            if (fieldValue == null) {
-                if (missingFields == null) {
-                    missingFields = new ArrayList<>(3);
-                }
-                missingFields.add(fieldName);
-            }
-            return missingFields;
-        }
-
-        public static Builder builder() {
-            return new Builder();
-        }
-
-        @JsonIgnoreProperties(ignoreUnknown = true)
-        public static final class Builder {
-            boolean _buildInvoked;
-
-            private @Safe UUID requestId;
-
-            private Set<ConjureLockDescriptor> lockDescriptors = new LinkedHashSet<>();
-
-            private @Safe int acquireTimeoutMs;
-
-            private Optional<@Unsafe String> clientDescription = Optional.empty();
-
-            private boolean _acquireTimeoutMsInitialized = false;
-
-            private Builder() {}
-
-            public Builder from(OldConjureLockRequest other) {
-                checkNotBuilt();
-                requestId(other.getRequestId());
-                lockDescriptors(other.getLockDescriptors());
-                acquireTimeoutMs(other.getAcquireTimeoutMs());
-                clientDescription(other.getClientDescription());
-                return this;
-            }
-
-            @JsonSetter("requestId")
-            public Builder requestId(@Nonnull @Safe UUID requestId) {
-                checkNotBuilt();
-                this.requestId = Preconditions.checkNotNull(requestId, "requestId cannot be null");
-                return this;
-            }
-
-            @JsonSetter(value = "lockDescriptors", nulls = Nulls.SKIP)
-            public Builder lockDescriptors(@Nonnull Iterable<ConjureLockDescriptor> lockDescriptors) {
-                checkNotBuilt();
-                this.lockDescriptors = ConjureCollections.newLinkedHashSet(
-                        Preconditions.checkNotNull(lockDescriptors, "lockDescriptors cannot be null"));
-                return this;
-            }
-
-            public Builder addAllLockDescriptors(@Nonnull Iterable<ConjureLockDescriptor> lockDescriptors) {
-                checkNotBuilt();
-                ConjureCollections.addAll(
-                        this.lockDescriptors,
-                        Preconditions.checkNotNull(lockDescriptors, "lockDescriptors cannot be null"));
-                return this;
-            }
-
-            public Builder lockDescriptors(ConjureLockDescriptor lockDescriptors) {
-                checkNotBuilt();
-                this.lockDescriptors.add(lockDescriptors);
-                return this;
-            }
-
-            @JsonSetter("acquireTimeoutMs")
-            public Builder acquireTimeoutMs(@Safe int acquireTimeoutMs) {
-                checkNotBuilt();
-                this.acquireTimeoutMs = acquireTimeoutMs;
-                this._acquireTimeoutMsInitialized = true;
-                return this;
-            }
-
-            @JsonSetter(value = "clientDescription", nulls = Nulls.SKIP)
-            public Builder clientDescription(@Nonnull Optional<@Unsafe String> clientDescription) {
-                checkNotBuilt();
-                this.clientDescription =
-                        Preconditions.checkNotNull(clientDescription, "clientDescription cannot be null");
-                return this;
-            }
-
-            public Builder clientDescription(@Nonnull @Unsafe String clientDescription) {
-                checkNotBuilt();
-                this.clientDescription =
-                        Optional.of(Preconditions.checkNotNull(clientDescription, "clientDescription cannot be null"));
-                return this;
-            }
-
-            private void validatePrimitiveFieldsHaveBeenInitialized() {
-                List<String> missingFields = null;
-                missingFields = addFieldIfMissing(missingFields, _acquireTimeoutMsInitialized, "acquireTimeoutMs");
-                if (missingFields != null) {
-                    throw new SafeIllegalArgumentException(
-                            "Some required fields have not been set", SafeArg.of("missingFields", missingFields));
-                }
-            }
-
-            private static List<String> addFieldIfMissing(List<String> prev, boolean initialized, String fieldName) {
-                List<String> missingFields = prev;
-                if (!initialized) {
-                    if (missingFields == null) {
-                        missingFields = new ArrayList<>(1);
-                    }
-                    missingFields.add(fieldName);
-                }
-                return missingFields;
-            }
-
-            public OldConjureLockRequest build() {
-                checkNotBuilt();
-                this._buildInvoked = true;
-                validatePrimitiveFieldsHaveBeenInitialized();
-                return new OldConjureLockRequest(requestId, lockDescriptors, acquireTimeoutMs, clientDescription);
-            }
-
-            private void checkNotBuilt() {
-                Preconditions.checkState(!_buildInvoked, "Build has already been called");
-            }
-        }
-    }
-}uW      }(j (efa35782df23f11a2b560a1360460927c3a64c83j timelock-api/build.gradlej modifiedj Kj K j Kj mhttps://github.com/palantir/atlasdb/blob/57a1fe4947fec1e4977cd0a565628d563a2fe629/timelock-api%2Fbuild.gradlej lhttps://github.com/palantir/atlasdb/raw/57a1fe4947fec1e4977cd0a565628d563a2fe629/timelock-api%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fbuild.gradle?ref=57a1fe4947fec1e4977cd0a565628d563a2fe629j X  @@ -7,6 +7,11 @@ dependencies {
     compileOnly 'com.fasterxml.jackson.core:jackson-databind'
     compileOnly 'org.immutables:value::annotations'
     annotationProcessor 'org.immutables:value'
+
+    testImplementation project(':atlasdb-api')
+    testImplementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
+    testImplementation 'junit:junit'
+    testImplementation 'org.assertj:assertj-core'
 }
 
 subprojects {u}(j (4b7ef917a36ec550f0224dff3106b2da73aaea19j Xtimelock-api/src/test/java/com/palantir/atlasdb/timelock/api/ConjureLockRequestTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/57a1fe4947fec1e4977cd0a565628d563a2fe629/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FConjureLockRequestTest.javaj https://github.com/palantir/atlasdb/raw/57a1fe4947fec1e4977cd0a565628d563a2fe629/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FConjureLockRequestTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FConjureLockRequestTest.java?ref=57a1fe4947fec1e4977cd0a565628d563a2fe629j Xq  @@ -0,0 +1,152 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock.api;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.conjure.java.lib.Bytes;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.UUID;
+import org.junit.Test;
+
+public class ConjureLockRequestTest {
+    private static final String BASE = "src/test/resources/conjure-lock-request-wire-format/";
+    private static final String OLD_CONJURE_LOCK_REQUEST_FILE = "old";
+    private static final String WITH_METADATA_FILE = "with-metadata";
+    private static final boolean REWRITE_JSON_BLOBS = false;
+
+    private static final ConjureLockDescriptor LOCK_1 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("abc")));
+    private static final ConjureLockDescriptor LOCK_2 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("def")));
+    private static final ConjureLockDescriptor LOCK_3 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("ghi")));
+    private static final ConjureLockDescriptor LOCK_4 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("jkl")));
+    private static final UUID REQUEST_ID = new UUID(1337, 42);
+    private static final int ACQUIRE_TIMEOUT_MS = 100;
+    private static final String CLIENT_DESCRIPTION = "client: test, thread: test";
+    private static final OldConjureLockRequest OLD_CONJURE_LOCK_REQUEST = OldConjureLockRequest.builder()
+            .requestId(REQUEST_ID)
+            .lockDescriptors(ImmutableSet.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4))
+            .acquireTimeoutMs(ACQUIRE_TIMEOUT_MS)
+            .clientDescription(CLIENT_DESCRIPTION)
+            .build();
+    private static final ConjureLockRequest DEFAULT_CONJURE_LOCK_REQUEST = ConjureLockRequest.builder()
+            .requestId(REQUEST_ID)
+            .lockDescriptors(ImmutableList.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4))
+            .acquireTimeoutMs(ACQUIRE_TIMEOUT_MS)
+            .clientDescription(CLIENT_DESCRIPTION)
+            .build();
+
+    private static final byte[] BYTES_OLD = PtBytes.toBytes("old");
+    private static final byte[] BYTES_NEW = PtBytes.toBytes("new");
+    private static final byte[] BYTES_DELETED = PtBytes.toBytes("deleted");
+    private static final byte[] BYTES_CREATED = PtBytes.toBytes("created");
+    // The checksum on this does not have to be correct since the integrity check is performed by the server and not
+    // by Conjure itself
+    private static final ConjureLockRequestMetadata CONJURE_LOCK_REQUEST_METADATA = ConjureLockRequestMetadata.of(
+            ImmutableMap.of(
+                    0,
+                    ConjureChangeMetadata.unchanged(ConjureUnchangedChangeMetadata.of()),
+                    1,
+                    ConjureChangeMetadata.updated(
+                            ConjureUpdatedChangeMetadata.of(Bytes.from(BYTES_OLD), Bytes.from(BYTES_NEW))),
+                    2,
+                    ConjureChangeMetadata.deleted(ConjureDeletedChangeMetadata.of(Bytes.from(BYTES_DELETED))),
+                    3,
+                    ConjureChangeMetadata.created(ConjureCreatedChangeMetadata.of(Bytes.from(BYTES_CREATED)))),
+            ConjureLockDescriptorListChecksum.of(0, Bytes.from(PtBytes.toBytes("test-checksum-value"))));
+
+    // AtlasDB (Client) serializes and TimeLock (Server) deserializes ConjureLockRequest objects.
+    // These are the respective mappers used internally by Conjure.
+    private static final ObjectMapper SERIALIZATION_MAPPER =
+            ObjectMappers.newClientObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
+    private static final ObjectMapper DESERIALIZATION_MAPPER =
+            ObjectMappers.newServerObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
+    // This mapper is used to ensure that two JSONs are equal excluding indentation
+    private static final ObjectMapper VERIFYING_MAPPER = new ObjectMapper();
+
+    @Test
+    public void oldConjureLockRequestSerializesDeserializes() {
+        assertSerializedEquals(OLD_CONJURE_LOCK_REQUEST, OLD_CONJURE_LOCK_REQUEST_FILE);
+        assertDeserializedEquals(OLD_CONJURE_LOCK_REQUEST_FILE, OLD_CONJURE_LOCK_REQUEST, OldConjureLockRequest.class);
+    }
+
+    // Requires excludeEmptyOptionals = true
+    @Test
+    public void absentMetadataSerializesDeserializes() {
+        assertSerializedEquals(DEFAULT_CONJURE_LOCK_REQUEST, OLD_CONJURE_LOCK_REQUEST_FILE);
+        assertDeserializedEquals(OLD_CONJURE_LOCK_REQUEST_FILE, DEFAULT_CONJURE_LOCK_REQUEST, ConjureLockRequest.class);
+    }
+
+    @Test
+    public void presentMetadataSerializesDeserializes() {
+        ConjureLockRequest requestWithMetadata = ConjureLockRequest.builder()
+                .from(DEFAULT_CONJURE_LOCK_REQUEST)
+                .metadata(CONJURE_LOCK_REQUEST_METADATA)
+                .build();
+        assertSerializedEquals(requestWithMetadata, WITH_METADATA_FILE);
+        assertDeserializedEquals(WITH_METADATA_FILE, requestWithMetadata, ConjureLockRequest.class);
+    }
+
+    @Test
+    public void newServerCanHandleMissingMetadata() {
+        assertDeserializedEquals(OLD_CONJURE_LOCK_REQUEST_FILE, DEFAULT_CONJURE_LOCK_REQUEST, ConjureLockRequest.class);
+    }
+
+    // Possible because we do not use strict objects
+    @Test
+    public void oldServerCanHandlePresentMetadata() {
+        assertDeserializedEquals(WITH_METADATA_FILE, OLD_CONJURE_LOCK_REQUEST, OldConjureLockRequest.class);
+    }
+
+    private static <T> void assertSerializedEquals(T object, String jsonFileName) {
+        try {
+            Path path = getJsonPath(jsonFileName);
+            if (REWRITE_JSON_BLOBS) {
+                SERIALIZATION_MAPPER.writeValue(path.toFile(), object);
+            }
+            String serialized = SERIALIZATION_MAPPER.writeValueAsString(object);
+            assertThat(VERIFYING_MAPPER.readTree(serialized))
+                    .as("Serialization yields semantically identical JSON representation")
+                    .isEqualTo(VERIFYING_MAPPER.readTree(Files.readString(path)));
+        } catch (IOException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private static <T> void assertDeserializedEquals(String jsonFileName, T object, Class<T> clazz) {
+        try {
+            assertThat(DESERIALIZATION_MAPPER.readValue(Files.readString(getJsonPath(jsonFileName)), clazz))
+                    .as("Deserialization yields identical object")
+                    .isEqualTo(object);
+        } catch (IOException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private static Path getJsonPath(String jsonFileName) {
+        return Paths.get(BASE, jsonFileName + ".json");
+    }
+}u}(j (8452a609b17c983f8f7fab9590fe0078cc26d8d5j Wtimelock-api/src/test/java/com/palantir/atlasdb/timelock/api/OldConjureLockRequest.javaj addedj M	j K j M	j https://github.com/palantir/atlasdb/blob/57a1fe4947fec1e4977cd0a565628d563a2fe629/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FOldConjureLockRequest.javaj https://github.com/palantir/atlasdb/raw/57a1fe4947fec1e4977cd0a565628d563a2fe629/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FOldConjureLockRequest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FOldConjureLockRequest.java?ref=57a1fe4947fec1e4977cd0a565628d563a2fe629j X;(  @@ -0,0 +1,265 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock.api;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonSetter;
+import com.fasterxml.jackson.annotation.Nulls;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.palantir.conjure.java.lib.internal.ConjureCollections;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.Safe;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.Unsafe;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.LinkedHashSet;
+import java.util.List;
+import java.util.Optional;
+import java.util.Set;
+import java.util.UUID;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+import javax.annotation.processing.Generated;
+
+// Copy of Conjure-generated file and prefixed with "Old" to avoid conflicts
+@Unsafe
+@JsonDeserialize(builder = OldConjureLockRequest.Builder.class)
+@Generated("com.palantir.conjure.java.types.BeanGenerator")
+public final class OldConjureLockRequest {
+    private final UUID requestId;
+
+    private final Set<ConjureLockDescriptor> lockDescriptors;
+
+    private final int acquireTimeoutMs;
+
+    private final Optional<String> clientDescription;
+
+    private int memoizedHashCode;
+
+    private OldConjureLockRequest(
+            UUID requestId,
+            Set<ConjureLockDescriptor> lockDescriptors,
+            int acquireTimeoutMs,
+            Optional<String> clientDescription) {
+        validateFields(requestId, lockDescriptors, clientDescription);
+        this.requestId = requestId;
+        this.lockDescriptors = Collections.unmodifiableSet(lockDescriptors);
+        this.acquireTimeoutMs = acquireTimeoutMs;
+        this.clientDescription = clientDescription;
+    }
+
+    @JsonProperty("requestId")
+    @Safe
+    public UUID getRequestId() {
+        return this.requestId;
+    }
+
+    @JsonProperty("lockDescriptors")
+    public Set<ConjureLockDescriptor> getLockDescriptors() {
+        return this.lockDescriptors;
+    }
+
+    @JsonProperty("acquireTimeoutMs")
+    @Safe
+    public int getAcquireTimeoutMs() {
+        return this.acquireTimeoutMs;
+    }
+
+    @JsonProperty("clientDescription")
+    @Unsafe
+    public Optional<String> getClientDescription() {
+        return this.clientDescription;
+    }
+
+    @Override
+    public boolean equals(@Nullable Object other) {
+        return this == other || (other instanceof OldConjureLockRequest && equalTo((OldConjureLockRequest) other));
+    }
+
+    private boolean equalTo(OldConjureLockRequest other) {
+        if (this.memoizedHashCode != 0
+                && other.memoizedHashCode != 0
+                && this.memoizedHashCode != other.memoizedHashCode) {
+            return false;
+        }
+        return this.requestId.equals(other.requestId)
+                && this.lockDescriptors.equals(other.lockDescriptors)
+                && this.acquireTimeoutMs == other.acquireTimeoutMs
+                && this.clientDescription.equals(other.clientDescription);
+    }
+
+    @Override
+    public int hashCode() {
+        int result = memoizedHashCode;
+        if (result == 0) {
+            int hash = 1;
+            hash = 31 * hash + this.requestId.hashCode();
+            hash = 31 * hash + this.lockDescriptors.hashCode();
+            hash = 31 * hash + this.acquireTimeoutMs;
+            hash = 31 * hash + this.clientDescription.hashCode();
+            result = hash;
+            memoizedHashCode = result;
+        }
+        return result;
+    }
+
+    @Override
+    @Unsafe
+    public String toString() {
+        return "OldConjureLockRequest{requestId: " + requestId + ", lockDescriptors: " + lockDescriptors
+                + ", acquireTimeoutMs: " + acquireTimeoutMs + ", clientDescription: " + clientDescription + '}';
+    }
+
+    private static void validateFields(
+            UUID requestId, Set<ConjureLockDescriptor> lockDescriptors, Optional<String> clientDescription) {
+        List<String> missingFields = null;
+        missingFields = addFieldIfMissing(missingFields, requestId, "requestId");
+        missingFields = addFieldIfMissing(missingFields, lockDescriptors, "lockDescriptors");
+        missingFields = addFieldIfMissing(missingFields, clientDescription, "clientDescription");
+        if (missingFields != null) {
+            throw new SafeIllegalArgumentException(
+                    "Some required fields have not been set", SafeArg.of("missingFields", missingFields));
+        }
+    }
+
+    private static List<String> addFieldIfMissing(List<String> prev, Object fieldValue, String fieldName) {
+        List<String> missingFields = prev;
+        if (fieldValue == null) {
+            if (missingFields == null) {
+                missingFields = new ArrayList<>(3);
+            }
+            missingFields.add(fieldName);
+        }
+        return missingFields;
+    }
+
+    public static Builder builder() {
+        return new Builder();
+    }
+
+    @Generated("com.palantir.conjure.java.types.BeanBuilderGenerator")
+    @JsonIgnoreProperties(ignoreUnknown = true)
+    public static final class Builder {
+        boolean _buildInvoked;
+
+        private @Safe UUID requestId;
+
+        private Set<ConjureLockDescriptor> lockDescriptors = new LinkedHashSet<>();
+
+        private @Safe int acquireTimeoutMs;
+
+        private Optional<@Unsafe String> clientDescription = Optional.empty();
+
+        private boolean _acquireTimeoutMsInitialized = false;
+
+        private Builder() {}
+
+        public Builder from(OldConjureLockRequest other) {
+            checkNotBuilt();
+            requestId(other.getRequestId());
+            lockDescriptors(other.getLockDescriptors());
+            acquireTimeoutMs(other.getAcquireTimeoutMs());
+            clientDescription(other.getClientDescription());
+            return this;
+        }
+
+        @JsonSetter("requestId")
+        public Builder requestId(@Nonnull @Safe UUID requestId) {
+            checkNotBuilt();
+            this.requestId = Preconditions.checkNotNull(requestId, "requestId cannot be null");
+            return this;
+        }
+
+        @JsonSetter(value = "lockDescriptors", nulls = Nulls.SKIP)
+        public Builder lockDescriptors(@Nonnull Iterable<ConjureLockDescriptor> lockDescriptors) {
+            checkNotBuilt();
+            this.lockDescriptors = ConjureCollections.newLinkedHashSet(
+                    Preconditions.checkNotNull(lockDescriptors, "lockDescriptors cannot be null"));
+            return this;
+        }
+
+        public Builder addAllLockDescriptors(@Nonnull Iterable<ConjureLockDescriptor> lockDescriptors) {
+            checkNotBuilt();
+            ConjureCollections.addAll(
+                    this.lockDescriptors,
+                    Preconditions.checkNotNull(lockDescriptors, "lockDescriptors cannot be null"));
+            return this;
+        }
+
+        public Builder lockDescriptors(ConjureLockDescriptor lockDescriptors) {
+            checkNotBuilt();
+            this.lockDescriptors.add(lockDescriptors);
+            return this;
+        }
+
+        @JsonSetter("acquireTimeoutMs")
+        public Builder acquireTimeoutMs(@Safe int acquireTimeoutMs) {
+            checkNotBuilt();
+            this.acquireTimeoutMs = acquireTimeoutMs;
+            this._acquireTimeoutMsInitialized = true;
+            return this;
+        }
+
+        @JsonSetter(value = "clientDescription", nulls = Nulls.SKIP)
+        public Builder clientDescription(@Nonnull Optional<@Unsafe String> clientDescription) {
+            checkNotBuilt();
+            this.clientDescription = Preconditions.checkNotNull(clientDescription, "clientDescription cannot be null");
+            return this;
+        }
+
+        public Builder clientDescription(@Nonnull @Unsafe String clientDescription) {
+            checkNotBuilt();
+            this.clientDescription =
+                    Optional.of(Preconditions.checkNotNull(clientDescription, "clientDescription cannot be null"));
+            return this;
+        }
+
+        private void validatePrimitiveFieldsHaveBeenInitialized() {
+            List<String> missingFields = null;
+            missingFields = addFieldIfMissing(missingFields, _acquireTimeoutMsInitialized, "acquireTimeoutMs");
+            if (missingFields != null) {
+                throw new SafeIllegalArgumentException(
+                        "Some required fields have not been set", SafeArg.of("missingFields", missingFields));
+            }
+        }
+
+        private static List<String> addFieldIfMissing(List<String> prev, boolean initialized, String fieldName) {
+            List<String> missingFields = prev;
+            if (!initialized) {
+                if (missingFields == null) {
+                    missingFields = new ArrayList<>(1);
+                }
+                missingFields.add(fieldName);
+            }
+            return missingFields;
+        }
+
+        public OldConjureLockRequest build() {
+            checkNotBuilt();
+            this._buildInvoked = true;
+            validatePrimitiveFieldsHaveBeenInitialized();
+            return new OldConjureLockRequest(requestId, lockDescriptors, acquireTimeoutMs, clientDescription);
+        }
+
+        private void checkNotBuilt() {
+            Preconditions.checkState(!_buildInvoked, "Build has already been called");
+        }
+    }
+}u}(j (e1b7813afcfedd61b6686b1bab138e5f151ea739j Itimelock-api/src/test/resources/conjure-lock-request-wire-format/old.jsonj renamedj K j K j K j https://github.com/palantir/atlasdb/blob/57a1fe4947fec1e4977cd0a565628d563a2fe629/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fold.jsonj https://github.com/palantir/atlasdb/raw/57a1fe4947fec1e4977cd0a565628d563a2fe629/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fold.jsonj https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fold.json?ref=57a1fe4947fec1e4977cd0a565628d563a2fe629previous_filenameElock-api/src/test/resources/conjure-lock-request-wire-format/old.jsonu}(j (56e0e9f551398a56e8c56e758c6eab6f6d5a6072j Stimelock-api/src/test/resources/conjure-lock-request-wire-format/with-metadata.jsonj renamedj K j K j K j https://github.com/palantir/atlasdb/blob/57a1fe4947fec1e4977cd0a565628d563a2fe629/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fwith-metadata.jsonj https://github.com/palantir/atlasdb/raw/57a1fe4947fec1e4977cd0a565628d563a2fe629/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fwith-metadata.jsonj https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fwith-metadata.json?ref=57a1fe4947fec1e4977cd0a565628d563a2fe629j Olock-api/src/test/resources/conjure-lock-request-wire-format/with-metadata.jsonueu(732ff2a31591036636e6106822451c0e67862913}(sha(732ff2a31591036636e6106822451c0e67862913node_idEC_kwDOAjP5fdoAKDczMmZmMmEzMTU5MTAzNjYzNmU2MTA2ODIyNDUxYzBlNjc4NjI5MTMcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-24T15:45:20Zu	committer}(j+ 	Tom Papkej- tpapke@palantir.comj/ 2023-07-25T14:56:33ZumessageRename put helperstree}(j# (3f6b41a4fb48214d2b03d79606bc10ac55c8780burl`https://api.github.com/repos/palantir/atlasdb/git/trees/3f6b41a4fb48214d2b03d79606bc10ac55c8780buj; bhttps://api.github.com/repos/palantir/atlasdb/git/commits/732ff2a31591036636e6106822451c0e67862913
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS/4qEACgkQmF9s0kaF
Iw1tPgf/Td7VQVlKUs4KvbJ7EYPdzhRZZVWBnLi8fVKk/AUGw7eItM1XzeQPMPeK
47dhyz15XA3JZ04Uf9yNZphJvDKDMXCSdFTOvSXzVkVvIxMveDRGNUOhabDXwqrR
cY5u3EqAAUu5+M3W7vM8yOQHfSwN9vERrcCX6IqNv7u2KZT7g3p8l0h97i16wzAg
TtxE2VUzK748tWHBzTnjP7Ob2Rb7bzrnYk9V4nCwz0Yif+AZjv/pwCDziR6WTu70
/8n9AWoO75+tahIsR1Votxn/zUjesozKey/cJZhnjLcMLx94b8u2fenSG7G4TTLo
QsJXdVXX0GSZQwd/WrArRbbafiYfKQ==
=fyV5
-----END PGP SIGNATURE-----payloadtree 3f6b41a4fb48214d2b03d79606bc10ac55c8780b
parent dd0eca32d99ecf883f7534af40eed6e7f9b75f7c
author Tom Papke <tpapke@palantir.com> 1690213520 +0100
committer Tom Papke <tpapke@palantir.com> 1690296993 +0100

Rename put helpers
uuj; ^https://api.github.com/repos/palantir/atlasdb/commits/732ff2a31591036636e6106822451c0e67862913html_urlShttps://github.com/palantir/atlasdb/commit/732ff2a31591036636e6106822451c0e67862913comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/732ff2a31591036636e6106822451c0e67862913/commentsj) }(login	ToemmscheidJboj% MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j; &https://api.github.com/users/ToemmschejI https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj1 }(jN 	ToemmschejP Jboj% MDQ6VXNlcjQzNjc1NDkwjR 4https://avatars.githubusercontent.com/u/43675490?v=4jT h5j; &https://api.github.com/users/ToemmschejI https://github.com/ToemmschejW 0https://api.github.com/users/Toemmsche/followersjY =https://api.github.com/users/Toemmsche/following{/other_user}j[ 6https://api.github.com/users/Toemmsche/gists{/gist_id}j] =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j_ 4https://api.github.com/users/Toemmsche/subscriptionsja +https://api.github.com/users/Toemmsche/orgsjc ,https://api.github.com/users/Toemmsche/reposje 7https://api.github.com/users/Toemmsche/events{/privacy}jg 6https://api.github.com/users/Toemmsche/received_eventsji Userjk uparents]}(j# (dd0eca32d99ecf883f7534af40eed6e7f9b75f7cj; ^https://api.github.com/repos/palantir/atlasdb/commits/dd0eca32d99ecf883f7534af40eed6e7f9b75f7cjI Shttps://github.com/palantir/atlasdb/commit/dd0eca32d99ecf883f7534af40eed6e7f9b75f7cuastats}(totalK	additionsK	deletionsKufiles]}(j# (8761d36d3bbe43ee239bb8da4ed7f5fbc39d37ddfilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/732ff2a31591036636e6106822451c0e67862913/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/732ff2a31591036636e6106822451c0e67862913/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=732ff2a31591036636e6106822451c0e67862913patchX  @@ -1779,27 +1779,31 @@ public void deleteWithMetadata(TableReference tableRef, Map<Cell, ChangeMetadata
     private void deleteWithMetadataInternal(
             TableReference tableRef, Set<Cell> cells, Map<Cell, ChangeMetadata> metadata) {
         getCache().delete(tableRef, cells);
-        putWithMetadataInternal(tableRef, Cells.constantValueMap(cells, PtBytes.EMPTY_BYTE_ARRAY), metadata);
+        writeToLocalBuffer(tableRef, Cells.constantValueMap(cells, PtBytes.EMPTY_BYTE_ARRAY), metadata);
     }
 
     @Override
     public void put(TableReference tableRef, Map<Cell, byte[]> values) {
-        ensureNoEmptyValues(values);
-        getCache().write(tableRef, values);
         putWithMetadataInternal(tableRef, values, ImmutableMap.of());
     }
 
     @Override
     public void putWithMetadata(TableReference tableRef, Map<Cell, ValueAndChangeMetadata> valuesAndMetadata) {
-        Map<Cell, byte[]> valuesOnly = Maps.transformValues(valuesAndMetadata, ValueAndChangeMetadata::value);
-        ensureNoEmptyValues(valuesOnly);
-        getCache().write(tableRef, valuesOnly);
-        putWithMetadataInternal(
-                tableRef, valuesOnly, Maps.transformValues(valuesAndMetadata, ValueAndChangeMetadata::metadata));
+        writeToLocalBuffer(
+                tableRef,
+                Maps.transformValues(valuesAndMetadata, ValueAndChangeMetadata::value),
+                Maps.transformValues(valuesAndMetadata, ValueAndChangeMetadata::metadata));
     }
 
     private void putWithMetadataInternal(
             TableReference tableRef, Map<Cell, byte[]> values, Map<Cell, ChangeMetadata> metadata) {
+        ensureNoEmptyValues(values);
+        getCache().write(tableRef, values);
+        writeToLocalBuffer(tableRef, values, metadata);
+    }
+
+    private void writeToLocalBuffer(
+            TableReference tableRef, Map<Cell, byte[]> values, Map<Cell, ChangeMetadata> metadata) {
         Preconditions.checkArgument(!AtlasDbConstants.HIDDEN_TABLES.contains(tableRef));
         markTableAsInvolvedInThisTransaction(tableRef);
 uau(ce30466603b4041b56400dea78e01588e4ba3369}(sha(ce30466603b4041b56400dea78e01588e4ba3369node_idEC_kwDOAjP5fdoAKGNlMzA0NjY2MDNiNDA0MWI1NjQwMGRlYTc4ZTAxNTg4ZTRiYTMzNjkcommit}(author}(name	Tom Papkeemail+43675490+Toemmsche@users.noreply.github.comdate2023-07-18T14:28:21Zu	committer}(j GitHubj noreply@github.comj 2023-07-18T14:28:21Zumessage[LWMeta] Add custom serialization to LockEvent with index-encoded metadata (#6659)

[LWMeta] Add custom serialization to LockEvent with index-encoded metadatatree}(j (13f7544adcc9c3dcf30b0a10420e49bdb7801e28url`https://api.github.com/repos/palantir/atlasdb/git/trees/13f7544adcc9c3dcf30b0a10420e49bdb7801e28uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ce30466603b4041b56400dea78e01588e4ba3369
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJktqGFCRBK7hj4Ov3rIwAAxb0IAEQHaU4tp3NN+wLdTh2K8003
Ju24GcKUCJmRfkHpGckMRGiSUMUumToLDvkFpwmGLpeGg1q2XWA6RODkLL70jSVn
QMzETvyob3laj+GJANp5Bo4L/UHQNYlEW1kPBBroW/MNqpyJU5v4YfLZp4IuvsgS
K6dUSjoUgpobyZ5f9aU2B5n0Rjh+3yOqLqoo4X6icXreXDFUOo88Atq4mwQ4HNim
hlE+5rWVz1ITUrYwSEo0dDzek6kwcJcCo6dkmJCtrgeqSBKq9qMVUyRvvu7wnv1n
Svv8ykgJ3CDG16u9nzUu74l+b1hD5oH98qyXI3JwXK8M2UqsVYY0aULEoTjpf6U=
=YBo1
-----END PGP SIGNATURE-----
payloadX  tree 13f7544adcc9c3dcf30b0a10420e49bdb7801e28
parent e0d1709b2c33b96f03ad9d57f9c2ef671cc4ac5e
author Tom Papke <43675490+Toemmsche@users.noreply.github.com> 1689690501 +0200
committer GitHub <noreply@github.com> 1689690501 +0000

[LWMeta] Add custom serialization to LockEvent with index-encoded metadata (#6659)

[LWMeta] Add custom serialization to LockEvent with index-encoded metadata
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/ce30466603b4041b56400dea78e01588e4ba3369html_urlShttps://github.com/palantir/atlasdb/commit/ce30466603b4041b56400dea78e01588e4ba3369comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ce30466603b4041b56400dea78e01588e4ba3369/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(jŽ web-flowjǽ J/j MDQ6VXNlcjE5ODY0NDQ3jɽ 4https://avatars.githubusercontent.com/u/19864447?v=4j˽ h5j %https://api.github.com/users/web-flowj https://github.com/web-flowjν /https://api.github.com/users/web-flow/followersjн <https://api.github.com/users/web-flow/following{/other_user}jҽ 5https://api.github.com/users/web-flow/gists{/gist_id}jԽ <https://api.github.com/users/web-flow/starred{/owner}{/repo}jֽ 3https://api.github.com/users/web-flow/subscriptionsjؽ *https://api.github.com/users/web-flow/orgsjڽ +https://api.github.com/users/web-flow/reposjܽ 6https://api.github.com/users/web-flow/events{/privacy}j޽ 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j (e0d1709b2c33b96f03ad9d57f9c2ef671cc4ac5ej ^https://api.github.com/repos/palantir/atlasdb/commits/e0d1709b2c33b96f03ad9d57f9c2ef671cc4ac5ej Shttps://github.com/palantir/atlasdb/commit/e0d1709b2c33b96f03ad9d57f9c2ef671cc4ac5euastats}(totalMG	additionsM,	deletionsKufiles](}(j (1db88b0afce6cbbc7e74528881cb99bc7a567681filenameGatlasdb-commons/src/main/java/com/palantir/util/IndexEncodingUtils.javastatusmodifiedj K	j K changesK	blob_urlhttps://github.com/palantir/atlasdb/blob/ce30466603b4041b56400dea78e01588e4ba3369/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ce30466603b4041b56400dea78e01588e4ba3369/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.java?ref=ce30466603b4041b56400dea78e01588e4ba3369patchX  @@ -37,6 +37,11 @@
 public final class IndexEncodingUtils {
     private IndexEncodingUtils() {}
 
+    public static <K extends DeterministicHashable, V> IndexEncodingResult<K, V> encode(
+            Set<K> keys, Map<K, V> keyToValue, ChecksumType checksumType) {
+        return encode(keys, keyToValue, Function.identity(), checksumType);
+    }
+
     /**
      * Compute a derived map (replacing keys with their associated index into the ordered list) to the value returned
      * by running the {@code valueMapper} over the original value.
@@ -77,6 +82,10 @@ public static <K extends DeterministicHashable, V, R> IndexEncodingResult<K, R>
                 .build();
     }
 
+    public static <K extends DeterministicHashable, V> Map<K, V> decode(IndexEncodingResult<K, V> indexEncoding) {
+        return decode(indexEncoding, Function.identity());
+    }
+
     /**
      * Compute a derived map (replacing indices into the list of keys with their item) to the value returned
      * by running the {@code valueMapper} over the original value.u}(j (27fe98fdf2bee74850041a69a10a00e91d3ae2f0j Katlasdb-commons/src/test/java/com/palantir/util/IndexEncodingUtilsTest.javaj modifiedj Kj Kj K%j https://github.com/palantir/atlasdb/blob/ce30466603b4041b56400dea78e01588e4ba3369/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaj	 https://github.com/palantir/atlasdb/raw/ce30466603b4041b56400dea78e01588e4ba3369/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.java?ref=ce30466603b4041b56400dea78e01588e4ba3369j
 X  @@ -37,7 +37,6 @@
 import java.util.Random;
 import java.util.Set;
 import java.util.UUID;
-import java.util.function.Function;
 import java.util.stream.Collectors;
 import java.util.stream.Stream;
 import org.immutables.value.Value;
@@ -79,22 +78,18 @@ public void cannotLookupUnknownChecksumType() {
 
     @Test
     public void canEncodeSimpleData() {
-        assertThat(createIndexEncodingWithIdentity().indexToValue())
-                .isEqualTo(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
+        assertThat(createIndexEncoding().indexToValue()).isEqualTo(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
     }
 
     @Test
     public void canDecodeSimpleData() {
-        assertThat(IndexEncodingUtils.decode(createIndexEncodingWithIdentity(), Function.identity()))
-                .containsExactlyInAnyOrderEntriesOf(VALUES);
+        assertThat(IndexEncodingUtils.decode(createIndexEncoding())).containsExactlyInAnyOrderEntriesOf(VALUES);
     }
 
     @Test
     public void canEncodeAndDecodeEmptyData() {
         assertThat(IndexEncodingUtils.decode(
-                        IndexEncodingUtils.encode(
-                                ImmutableSet.of(), ImmutableMap.of(), Function.identity(), checksumType),
-                        Function.identity()))
+                        IndexEncodingUtils.encode(ImmutableSet.of(), ImmutableMap.of(), checksumType)))
                 .isEmpty();
     }
 
@@ -116,8 +111,8 @@ public void canDecodeWithCustomValueMapper() {
 
     @Test
     public void encodeFailsForUnknownKeysInValueMap() {
-        assertThatLoggableExceptionThrownBy(() -> IndexEncodingUtils.encode(
-                        KEYS, ImmutableMap.of(wrap("unknown-key"), 0L), Function.identity(), checksumType))
+        assertThatLoggableExceptionThrownBy(
+                        () -> IndexEncodingUtils.encode(KEYS, ImmutableMap.of(wrap("unknown-key"), 0L), checksumType))
                 .isExactlyInstanceOf(SafeIllegalArgumentException.class)
                 .hasLogMessage("Value map uses keys that are not in the provided set of keys")
                 .hasExactlyArgs(UnsafeArg.of("unknownKeys", ImmutableSet.of(wrap("unknown-key"))));
@@ -126,25 +121,23 @@ public void encodeFailsForUnknownKeysInValueMap() {
     @Test
     public void decodeFailsForInvalidIndices() {
         IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encodedWithInvalidIndices =
-                ImmutableIndexEncodingResult.copyOf(createIndexEncodingWithIdentity())
+                ImmutableIndexEncodingResult.copyOf(createIndexEncoding())
                         .withIndexToValue(ImmutableMap.of(KEYS.size(), 17L));
-        assertThatLoggableExceptionThrownBy(
-                        () -> IndexEncodingUtils.decode(encodedWithInvalidIndices, Function.identity()))
+        assertThatLoggableExceptionThrownBy(() -> IndexEncodingUtils.decode(encodedWithInvalidIndices))
                 .isExactlyInstanceOf(SafeIllegalArgumentException.class)
                 .hasLogMessage("Index map contains invalid index")
                 .hasExactlyArgs(SafeArg.of("index", KEYS.size()), SafeArg.of("keyListSize", KEYS.size()));
     }
 
     @Test
     public void integrityCheckFailsForDifferentKeyList() {
-        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encoded = createIndexEncodingWithIdentity();
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encoded = createIndexEncoding();
         List<DeterministicHashableWrapper<String>> modifiedKeyList = new ArrayList<>(KEYS);
         Collections.swap(modifiedKeyList, 0, 1);
         IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encodedWithModifiedKeyList =
                 ImmutableIndexEncodingResult.copyOf(encoded).withKeyList(modifiedKeyList);
         KeyListChecksum actualChecksum = IndexEncodingUtils.computeChecksum(checksumType, modifiedKeyList);
-        assertThatLoggableExceptionThrownBy(
-                        () -> IndexEncodingUtils.decode(encodedWithModifiedKeyList, Function.identity()))
+        assertThatLoggableExceptionThrownBy(() -> IndexEncodingUtils.decode(encodedWithModifiedKeyList))
                 .isExactlyInstanceOf(SafeIllegalArgumentException.class)
                 .hasLogMessage("Key list integrity check failed")
                 .hasExactlyArgs(
@@ -155,14 +148,13 @@ public void integrityCheckFailsForDifferentKeyList() {
 
     @Test
     public void integrityCheckFailsForDifferentChecksum() {
-        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encoded = createIndexEncodingWithIdentity();
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encoded = createIndexEncoding();
         byte[] modifiedChecksum = encoded.keyListChecksum().value();
         modifiedChecksum[0]++;
         IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encodedWithModifiedChecksum =
                 ImmutableIndexEncodingResult.copyOf(encoded)
                         .withKeyListChecksum(KeyListChecksum.of(checksumType, modifiedChecksum));
-        assertThatLoggableExceptionThrownBy(
-                        () -> IndexEncodingUtils.decode(encodedWithModifiedChecksum, Function.identity()))
+        assertThatLoggableExceptionThrownBy(() -> IndexEncodingUtils.decode(encodedWithModifiedChecksum))
                 .isExactlyInstanceOf(SafeIllegalArgumentException.class)
                 .hasLogMessage("Key list integrity check failed")
                 .hasExactlyArgs(
@@ -183,14 +175,13 @@ public void decodingEncodedDataYieldsOriginalForRandomData() {
                 .filter(_unused -> rand.nextBoolean())
                 .map(_unused -> rand.nextLong())
                 .collectToMap();
-        assertThat(IndexEncodingUtils.decode(
-                        IndexEncodingUtils.encode(keys, data, Function.identity(), checksumType), Function.identity()))
+        assertThat(IndexEncodingUtils.decode(IndexEncodingUtils.encode(keys, data, checksumType)))
                 .as("Encoding and decoding yields original data. Random seed: " + seed)
                 .containsExactlyInAnyOrderEntriesOf(data);
     }
 
-    private IndexEncodingResult<DeterministicHashableWrapper<String>, Long> createIndexEncodingWithIdentity() {
-        return IndexEncodingUtils.encode(KEYS, VALUES, Function.identity(), checksumType);
+    private IndexEncodingResult<DeterministicHashableWrapper<String>, Long> createIndexEncoding() {
+        return IndexEncodingUtils.encode(KEYS, VALUES, checksumType);
     }
 
     private static <T> DeterministicHashableWrapper<T> wrap(T value) {u}(j (53dbb997fbc87d47ddeeae107c0d0a5d610f7820j $changelog/@unreleased/pr-6659.v2.ymlj addedj Kj K j Kj |https://github.com/palantir/atlasdb/blob/ce30466603b4041b56400dea78e01588e4ba3369/changelog%2F%40unreleased%2Fpr-6659.v2.ymlj	 {https://github.com/palantir/atlasdb/raw/ce30466603b4041b56400dea78e01588e4ba3369/changelog%2F%40unreleased%2Fpr-6659.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6659.v2.yml?ref=ce30466603b4041b56400dea78e01588e4ba3369j
 @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add custom serialization to LockEvent with index-encoded
+    metadata'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6659u}(j (d94333ba246e527d1a418c250421a3e4bd0a3ea7j lock-api-objects/build.gradlej modifiedj Kj K j Kj qhttps://github.com/palantir/atlasdb/blob/ce30466603b4041b56400dea78e01588e4ba3369/lock-api-objects%2Fbuild.gradlej	 phttps://github.com/palantir/atlasdb/raw/ce30466603b4041b56400dea78e01588e4ba3369/lock-api-objects%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fbuild.gradle?ref=ce30466603b4041b56400dea78e01588e4ba3369j
 X  @@ -17,6 +17,14 @@ dependencies {
     implementation 'com.google.guava:guava'
     implementation project(':commons-annotations')
 
+    testImplementation 'com.fasterxml.jackson.datatype:jackson-datatype-guava'
+    testImplementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8'
+    testImplementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
+    testImplementation 'com.palantir.common:streams'
+    testImplementation project(':atlasdb-api')
+    testAnnotationProcessor 'org.immutables:value'
+    testCompileOnly 'org.immutables:value::annotations'
+
     annotationProcessor 'org.immutables:value'
     compileOnly 'org.immutables:value::annotations'
     annotationProcessor project(":atlasdb-processors")u}(j (7ede3b7c38e0b57309248f76a702b4fd3ebbc9cbj Elock-api-objects/src/main/java/com/palantir/lock/watch/LockEvent.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ce30466603b4041b56400dea78e01588e4ba3369/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaj	 https://github.com/palantir/atlasdb/raw/ce30466603b4041b56400dea78e01588e4ba3369/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.java?ref=ce30466603b4041b56400dea78e01588e4ba3369j
 X  @@ -16,30 +16,45 @@
 
 package com.palantir.lock.watch;
 
-import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonInclude.Include;
+import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.annotation.JsonValue;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.logsafe.Unsafe;
+import com.palantir.util.IndexEncodingUtils;
+import com.palantir.util.IndexEncodingUtils.ChecksumType;
+import com.palantir.util.IndexEncodingUtils.IndexEncodingResult;
+import com.palantir.util.IndexEncodingUtils.KeyListChecksum;
+import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
 import org.immutables.value.Value;
 
+/*
+ * Warning: This class contains custom serialization logic. Changing anything about the serialized format of this class
+ * requires careful modification of the @JsonCreator and @JsonValue-annotated methods as well as the Wire-... classes
+ * All serialization changes should be properly tested.
+ */
 @Unsafe
 @Value.Immutable
-@JsonSerialize(as = ImmutableLockEvent.class)
-@JsonDeserialize(as = ImmutableLockEvent.class)
 @JsonTypeName(LockEvent.TYPE)
 public abstract class LockEvent implements LockWatchEvent {
     static final String TYPE = "lock";
+    private static final ChecksumType DEFAULT_CHECKSUM_TYPE = ChecksumType.CRC32_OF_DETERMINISTIC_HASHCODE;
 
     public abstract Set<LockDescriptor> lockDescriptors();
 
     public abstract LockToken lockToken();
 
-    @JsonIgnore
     public abstract Optional<LockRequestMetadata> metadata();
 
     @Override
@@ -52,6 +67,43 @@ public <T> T accept(Visitor<T> visitor) {
         return visitor.visit(this);
     }
 
+    @JsonCreator
+    public static LockEvent create(
+            @JsonProperty("sequence") long sequence,
+            @JsonProperty("lockDescriptors") List<LockDescriptor> lockDescriptors,
+            @JsonProperty("lockToken") LockToken lockToken,
+            @JsonProperty("metadata") Optional<WireLockRequestMetadata> optWireMetadata) {
+        Optional<LockRequestMetadata> metadata =
+                optWireMetadata.map(wireMetadata -> convertFromWireMetadata(lockDescriptors, wireMetadata));
+        return ImmutableLockEvent.builder()
+                .sequence(sequence)
+                .lockDescriptors(ImmutableSet.copyOf(lockDescriptors))
+                .lockToken(lockToken)
+                .metadata(metadata)
+                .build();
+    }
+
+    @Unsafe
+    @JsonValue
+    public WireLockEvent toWireLockEvent() {
+        Optional<IndexEncodingResult<LockDescriptor, ChangeMetadata>> optIndexEncodingResult = metadata()
+                .map(metadata -> IndexEncodingUtils.encode(
+                        lockDescriptors(), metadata.lockDescriptorToChangeMetadata(), DEFAULT_CHECKSUM_TYPE));
+        // If the lock event has metadata, we need to use the key list that was used to encode the metadata.
+        // Otherwise, any ordering of the lock descriptors is fine.
+        List<LockDescriptor> orderedLocks = optIndexEncodingResult
+                .map(IndexEncodingResult::keyList)
+                .orElseGet(() -> ImmutableList.copyOf(lockDescriptors()));
+        Optional<WireLockRequestMetadata> wireMetadata =
+                optIndexEncodingResult.map(LockEvent::buildWireLockRequestMetadata);
+        return WireLockEvent.builder()
+                .sequence(sequence())
+                .lockDescriptors(orderedLocks)
+                .lockToken(lockToken())
+                .metadata(wireMetadata)
+                .build();
+    }
+
     public static LockWatchEvent.Builder builder(Set<LockDescriptor> lockDescriptors, LockToken lockToken) {
         return builder(lockDescriptors, lockToken, Optional.empty());
     }
@@ -64,4 +116,81 @@ public static LockWatchEvent.Builder builder(
                 .metadata(metadata);
         return seq -> builder.sequence(seq).build();
     }
+
+    private static WireLockRequestMetadata buildWireLockRequestMetadata(
+            IndexEncodingResult<LockDescriptor, ChangeMetadata> result) {
+        return WireLockRequestMetadata.builder()
+                .indexToChangeMetadata(result.indexToValue())
+                .lockListChecksum(LockListChecksum.of(
+                        result.keyListChecksum().type().getId(),
+                        result.keyListChecksum().value()))
+                .build();
+    }
+
+    private static LockRequestMetadata convertFromWireMetadata(
+            List<LockDescriptor> lockDescriptors, WireLockRequestMetadata wireMetadata) {
+        KeyListChecksum checksum = KeyListChecksum.of(
+                ChecksumType.valueOf(wireMetadata.lockListChecksum().typeId()),
+                wireMetadata.lockListChecksum().value());
+        IndexEncodingResult<LockDescriptor, ChangeMetadata> indexEncodingResult =
+                IndexEncodingResult.<LockDescriptor, ChangeMetadata>builder()
+                        .keyList(lockDescriptors)
+                        .indexToValue(wireMetadata.indexToChangeMetadata())
+                        .keyListChecksum(checksum)
+                        .build();
+        return LockRequestMetadata.of(IndexEncodingUtils.decode(indexEncodingResult));
+    }
+
+    // This class is explicitly missing @JsonDeserialize as it should only be used for serialization.
+    // Deserialization should take place in the @JsonCreator-annotated static constructor method.
+    @Unsafe
+    @Value.Immutable
+    @JsonSerialize(as = ImmutableWireLockEvent.class)
+    @JsonTypeName(LockEvent.TYPE)
+    public interface WireLockEvent {
+        long sequence();
+
+        List<LockDescriptor> lockDescriptors();
+
+        LockToken lockToken();
+
+        // If metadata is absent, it should be completely omitted
+        @JsonInclude(Include.NON_ABSENT)
+        Optional<WireLockRequestMetadata> metadata();
+
+        static ImmutableWireLockEvent.Builder builder() {
+            return ImmutableWireLockEvent.builder();
+        }
+    }
+
+    @Unsafe
+    @Value.Immutable
+    @JsonSerialize(as = ImmutableWireLockRequestMetadata.class)
+    @JsonDeserialize(as = ImmutableWireLockRequestMetadata.class)
+    public interface WireLockRequestMetadata {
+
+        Map<Integer, ChangeMetadata> indexToChangeMetadata();
+
+        LockListChecksum lockListChecksum();
+
+        static ImmutableWireLockRequestMetadata.Builder builder() {
+            return ImmutableWireLockRequestMetadata.builder();
+        }
+    }
+
+    @Value.Immutable
+    @JsonSerialize(as = ImmutableLockListChecksum.class)
+    @JsonDeserialize(as = ImmutableLockListChecksum.class)
+    public interface LockListChecksum {
+
+        @Value.Parameter
+        int typeId();
+
+        @Value.Parameter
+        byte[] value();
+
+        static LockListChecksum of(int typeId, byte[] value) {
+            return ImmutableLockListChecksum.of(typeId, value);
+        }
+    }
 }u}(j (defe0ee01ce008d5117278d95c1bfda7ce71fa91j Ilock-api-objects/src/test/java/com/palantir/lock/watch/LockEventTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/ce30466603b4041b56400dea78e01588e4ba3369/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javaj	 https://github.com/palantir/atlasdb/raw/ce30466603b4041b56400dea78e01588e4ba3369/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.java?ref=ce30466603b4041b56400dea78e01588e4ba3369j
 X)  @@ -0,0 +1,225 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.fasterxml.jackson.databind.exc.InvalidDefinitionException;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.UUID;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.immutables.value.Value;
+import org.junit.Test;
+
+public class LockEventTest {
+    private static final String BASE = "src/test/resources/lock-event-wire-format/";
+    private static final String OLD_LOCK_EVENT_FILE = "old";
+    private static final String WITH_METADATA_FILE = "with-metadata";
+    private static final String WITH_EMPTY_METADATA_MAP_FILE = "with-empty-metadata-map";
+    private static final String SPARSE_METADATA_FILE = "sparse-metadata";
+    private static final String SHUFFLED_LOCKS_FILE = "shuffled-locks";
+    private static final boolean REWRITE_JSON_BLOBS = false;
+
+    private static final LockDescriptor LOCK_1 = StringLockDescriptor.of("abc");
+    private static final LockDescriptor LOCK_2 = StringLockDescriptor.of("def");
+    private static final LockDescriptor LOCK_3 = StringLockDescriptor.of("ghi");
+    private static final LockDescriptor LOCK_4 = StringLockDescriptor.of("jkl");
+    private static final long SEQUENCE = 10L;
+    private static final LockToken LOCK_TOKEN = LockToken.of(new UUID(1337, 42));
+    private static final Set<LockDescriptor> LOCK_SET = ImmutableSet.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4);
+    private static final OldLockEvent OLD_LOCK_EVENT = ImmutableOldLockEvent.builder()
+            .sequence(SEQUENCE)
+            .lockDescriptors(LOCK_SET)
+            .lockToken(LOCK_TOKEN)
+            .build();
+    private static final LockEvent DEFAULT_LOCK_EVENT = ImmutableLockEvent.builder()
+            .sequence(SEQUENCE)
+            .lockDescriptors(LOCK_SET)
+            .lockToken(LOCK_TOKEN)
+            .build();
+    private static final byte[] BYTES_OLD = PtBytes.toBytes("old");
+    private static final byte[] BYTES_NEW = PtBytes.toBytes("new");
+    private static final byte[] BYTES_DELETED = PtBytes.toBytes("deleted");
+    private static final byte[] BYTES_CREATED = PtBytes.toBytes("created");
+    private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(ImmutableMap.of(
+            LOCK_1,
+            ChangeMetadata.unchanged(),
+            LOCK_2,
+            ChangeMetadata.updated(BYTES_OLD, BYTES_NEW),
+            LOCK_3,
+            ChangeMetadata.deleted(BYTES_DELETED),
+            LOCK_4,
+            ChangeMetadata.created(BYTES_CREATED)));
+
+    // TimeLock (Server) serializes and AtlasDB (Client) deserializes.
+    // These are the respective mappers used internally by Conjure.
+    private static final ObjectMapper SERIALIZATION_MAPPER =
+            ObjectMappers.newServerObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
+    private static final ObjectMapper DESERIALIZATION_MAPPER =
+            ObjectMappers.newClientObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
+    // This mapper is used to ensure that two JSONs are equal excluding indentation
+    private static final ObjectMapper VERIFYING_MAPPER = new ObjectMapper();
+
+    @Test
+    public void oldLockEventSerializesDeserializes() {
+        assertSerializedEquals(OLD_LOCK_EVENT, OLD_LOCK_EVENT_FILE);
+        assertDeserializedEquals(OLD_LOCK_EVENT_FILE, OLD_LOCK_EVENT, OldLockEvent.class);
+    }
+
+    @Test
+    public void absentMetadataSerializesDeserializes() {
+        assertSerializedEquals(DEFAULT_LOCK_EVENT, OLD_LOCK_EVENT_FILE);
+        assertDeserializedEquals(OLD_LOCK_EVENT_FILE, DEFAULT_LOCK_EVENT, LockEvent.class);
+    }
+
+    @Test
+    public void presentMetadataSerializesDeserializes() {
+        LockEvent lockEventWithMetadata =
+                ImmutableLockEvent.copyOf(DEFAULT_LOCK_EVENT).withMetadata(LOCK_REQUEST_METADATA);
+        assertSerializedEquals(lockEventWithMetadata, WITH_METADATA_FILE);
+        assertDeserializedEquals(WITH_METADATA_FILE, lockEventWithMetadata, LockEvent.class);
+    }
+
+    @Test
+    public void serializesDeserializesAsLockWatchEventWithMetadata() {
+        LockWatchEvent lockWatchEvent =
+                ImmutableLockEvent.copyOf(DEFAULT_LOCK_EVENT).withMetadata(LOCK_REQUEST_METADATA);
+        assertSerializedEquals(lockWatchEvent, WITH_METADATA_FILE);
+        assertDeserializedEquals(WITH_METADATA_FILE, lockWatchEvent, LockWatchEvent.class);
+    }
+
+    @Test
+    public void emptyMetadataMapSerializesDeserializes() {
+        LockEvent lockEventWithMetadata =
+                ImmutableLockEvent.copyOf(DEFAULT_LOCK_EVENT).withMetadata(LockRequestMetadata.of(ImmutableMap.of()));
+        assertSerializedEquals(lockEventWithMetadata, WITH_EMPTY_METADATA_MAP_FILE);
+        assertDeserializedEquals(WITH_EMPTY_METADATA_MAP_FILE, lockEventWithMetadata, LockEvent.class);
+    }
+
+    // This behavior should be guaranteed by the Conjure spec
+    @Test
+    public void oldClientIgnoresMetadata() {
+        assertDeserializedEquals(WITH_METADATA_FILE, OLD_LOCK_EVENT, OldLockEvent.class);
+    }
+
+    @Test
+    public void sparseMetadataSerializesDeserializes() {
+        List<LockDescriptor> lockDescriptors = IntStream.range(0, 10)
+                .mapToObj(Integer::toString)
+                .map(StringLockDescriptor::of)
+                .collect(Collectors.toList());
+        // Unique metadata on some locks, but not all
+        Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata = ImmutableMap.of(
+                lockDescriptors.get(0), ChangeMetadata.created(BYTES_CREATED),
+                lockDescriptors.get(4), ChangeMetadata.deleted(BYTES_DELETED),
+                lockDescriptors.get(9), ChangeMetadata.unchanged(),
+                lockDescriptors.get(5), ChangeMetadata.updated(BYTES_OLD, BYTES_NEW),
+                lockDescriptors.get(7), ChangeMetadata.unchanged());
+        LockEvent lockEventWithSparseMetadata = ImmutableLockEvent.builder()
+                .lockDescriptors(lockDescriptors)
+                .sequence(SEQUENCE)
+                .lockToken(LOCK_TOKEN)
+                .metadata(LockRequestMetadata.of(lockDescriptorToChangeMetadata))
+                .build();
+
+        assertSerializedEquals(lockEventWithSparseMetadata, SPARSE_METADATA_FILE);
+        assertDeserializedEquals(SPARSE_METADATA_FILE, lockEventWithSparseMetadata, LockEvent.class);
+    }
+
+    @Test
+    public void shufflingLockDescriptorsOnTheWireIsDetectedByClient() {
+        assertThatThrownBy(() ->
+                        // The order of the lock descriptors in this JSON file is swapped
+                        DESERIALIZATION_MAPPER.readValue(
+                                Files.readString(getJsonPath(SHUFFLED_LOCKS_FILE)), LockEvent.class))
+                .rootCause()
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageStartingWith("Key list integrity check failed");
+    }
+
+    @Test
+    public void cannotDeserializeAsWireLockEvent() {
+        assertThatThrownBy(() -> DESERIALIZATION_MAPPER.readValue(
+                        Files.readString(getJsonPath(WITH_METADATA_FILE)), LockEvent.WireLockEvent.class))
+                .isInstanceOf(InvalidDefinitionException.class);
+    }
+
+    private static <T> void assertSerializedEquals(T object, String jsonFileName) {
+        try {
+            Path path = getJsonPath(jsonFileName);
+            if (REWRITE_JSON_BLOBS) {
+                SERIALIZATION_MAPPER.writeValue(path.toFile(), object);
+            }
+            String serialized = SERIALIZATION_MAPPER.writeValueAsString(object);
+            assertThat(VERIFYING_MAPPER.readTree(serialized))
+                    .as("Serialization yields semantically identical JSON representation")
+                    .isEqualTo(VERIFYING_MAPPER.readTree(Files.readString(path)));
+        } catch (IOException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private static <T> void assertDeserializedEquals(String jsonFileName, T object, Class<T> clazz) {
+        try {
+            assertThat(DESERIALIZATION_MAPPER.readValue(Files.readString(getJsonPath(jsonFileName)), clazz))
+                    .as("Deserialization yields identical object")
+                    .isEqualTo(object);
+        } catch (IOException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private static Path getJsonPath(String jsonFileName) {
+        return Paths.get(BASE + jsonFileName + ".json");
+    }
+
+    // This is a copy of the LockEvent class before metadata was added
+    @Value.Immutable
+    @JsonSerialize(as = ImmutableOldLockEvent.class)
+    @JsonDeserialize(as = ImmutableOldLockEvent.class)
+    @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
+    @JsonTypeName(LockEvent.TYPE)
+    public interface OldLockEvent {
+        long sequence();
+
+        Set<LockDescriptor> lockDescriptors();
+
+        LockToken lockToken();
+    }
+}u}(j (1d1d3cf3bf2579562acbf88f3b9915493eb45cedj Clock-api-objects/src/test/resources/lock-event-wire-format/old.jsonj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/ce30466603b4041b56400dea78e01588e4ba3369/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fold.jsonj	 https://github.com/palantir/atlasdb/raw/ce30466603b4041b56400dea78e01588e4ba3369/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fold.jsonj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fold.json?ref=ce30466603b4041b56400dea78e01588e4ba3369j
 X?  @@ -0,0 +1,16 @@
+{
+  "type" : "lock",
+  "sequence" : 10,
+  "lockDescriptors" : [ {
+    "bytes" : "YWJj"
+  }, {
+    "bytes" : "ZGVm"
+  }, {
+    "bytes" : "Z2hp"
+  }, {
+    "bytes" : "amts"
+  } ],
+  "lockToken" : {
+    "requestId" : "00000000-0000-0539-0000-00000000002a"
+  }
+}
\ No newline at end of fileu}(j (cc146577c79cb9e4b947642412249c7d1fa65b9bj Nlock-api-objects/src/test/resources/lock-event-wire-format/shuffled-locks.jsonj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/ce30466603b4041b56400dea78e01588e4ba3369/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fshuffled-locks.jsonj	 https://github.com/palantir/atlasdb/raw/ce30466603b4041b56400dea78e01588e4ba3369/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fshuffled-locks.jsonj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fshuffled-locks.json?ref=ce30466603b4041b56400dea78e01588e4ba3369     j
 X-  @@ -0,0 +1,27 @@
+{
+  "type" : "lock",
+  "sequence" : 10,
+  "lockDescriptors" : [ {
+    "bytes" : "dGVzdC1sb2Nr"
+  }, {
+    "bytes" : "YWJj"
+  } ],
+  "lockToken" : {
+    "requestId" : "00000000-0000-0539-0000-00000000002a"
+  },
+  "metadata" : {
+    "indexToChangeMetadata" : {
+      "0" : {
+        "type" : "created",
+        "newValue" : "bmV3"
+      },
+      "1" : {
+        "type" : "unchanged"
+      }
+    },
+    "lockListChecksum" : {
+      "typeId" : 1,
+      "value" : "AAAAAIOu57o="
+    }
+  }
+}
\ No newline at end of fileu}(j (c463a4528f6bad141ab71a4124edd6fd095ccb67j Olock-api-objects/src/test/resources/lock-event-wire-format/sparse-metadata.jsonj addedj K7j K j K7j https://github.com/palantir/atlasdb/blob/ce30466603b4041b56400dea78e01588e4ba3369/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fsparse-metadata.jsonj	 https://github.com/palantir/atlasdb/raw/ce30466603b4041b56400dea78e01588e4ba3369/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fsparse-metadata.jsonj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fsparse-metadata.json?ref=ce30466603b4041b56400dea78e01588e4ba3369j
 X   @@ -0,0 +1,55 @@
+{
+  "type" : "lock",
+  "sequence" : 10,
+  "lockDescriptors" : [ {
+    "bytes" : "MA=="
+  }, {
+    "bytes" : "MQ=="
+  }, {
+    "bytes" : "Mg=="
+  }, {
+    "bytes" : "Mw=="
+  }, {
+    "bytes" : "NA=="
+  }, {
+    "bytes" : "NQ=="
+  }, {
+    "bytes" : "Ng=="
+  }, {
+    "bytes" : "Nw=="
+  }, {
+    "bytes" : "OA=="
+  }, {
+    "bytes" : "OQ=="
+  } ],
+  "lockToken" : {
+    "requestId" : "00000000-0000-0539-0000-00000000002a"
+  },
+  "metadata" : {
+    "indexToChangeMetadata" : {
+      "0" : {
+        "type" : "created",
+        "newValue" : "Y3JlYXRlZA=="
+      },
+      "4" : {
+        "type" : "deleted",
+        "oldValue" : "ZGVsZXRlZA=="
+      },
+      "5" : {
+        "type" : "updated",
+        "oldValue" : "b2xk",
+        "newValue" : "bmV3"
+      },
+      "7" : {
+        "type" : "unchanged"
+      },
+      "9" : {
+        "type" : "unchanged"
+      }
+    },
+    "lockListChecksum" : {
+      "typeId" : 1,
+      "value" : "AAAAALDKyYU="
+    }
+  }
+}
\ No newline at end of fileu}(j (2c9785a186f61aaa5706802f2c384a031bb75f3ej Wlock-api-objects/src/test/resources/lock-event-wire-format/with-empty-metadata-map.jsonj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/ce30466603b4041b56400dea78e01588e4ba3369/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-empty-metadata-map.jsonj	 https://github.com/palantir/atlasdb/raw/ce30466603b4041b56400dea78e01588e4ba3369/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-empty-metadata-map.jsonj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-empty-metadata-map.json?ref=ce30466603b4041b56400dea78e01588e4ba3369j
 X  @@ -0,0 +1,23 @@
+{
+  "type" : "lock",
+  "sequence" : 10,
+  "lockDescriptors" : [ {
+    "bytes" : "YWJj"
+  }, {
+    "bytes" : "ZGVm"
+  }, {
+    "bytes" : "Z2hp"
+  }, {
+    "bytes" : "amts"
+  } ],
+  "lockToken" : {
+    "requestId" : "00000000-0000-0539-0000-00000000002a"
+  },
+  "metadata" : {
+    "indexToChangeMetadata" : { },
+    "lockListChecksum" : {
+      "typeId" : 1,
+      "value" : "AAAAADUuws0="
+    }
+  }
+}
\ No newline at end of fileu}(j (c11abb8e1348ee4599b6226e583474cda683e1efj Mlock-api-objects/src/test/resources/lock-event-wire-format/with-metadata.jsonj addedj K(j K j K(j https://github.com/palantir/atlasdb/blob/ce30466603b4041b56400dea78e01588e4ba3369/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-metadata.jsonj	 https://github.com/palantir/atlasdb/raw/ce30466603b4041b56400dea78e01588e4ba3369/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-metadata.jsonj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-metadata.json?ref=ce30466603b4041b56400dea78e01588e4ba3369j
 X5  @@ -0,0 +1,40 @@
+{
+  "type" : "lock",
+  "sequence" : 10,
+  "lockDescriptors" : [ {
+    "bytes" : "YWJj"
+  }, {
+    "bytes" : "ZGVm"
+  }, {
+    "bytes" : "Z2hp"
+  }, {
+    "bytes" : "amts"
+  } ],
+  "lockToken" : {
+    "requestId" : "00000000-0000-0539-0000-00000000002a"
+  },
+  "metadata" : {
+    "indexToChangeMetadata" : {
+      "0" : {
+        "type" : "unchanged"
+      },
+      "1" : {
+        "type" : "updated",
+        "oldValue" : "b2xk",
+        "newValue" : "bmV3"
+      },
+      "2" : {
+        "type" : "deleted",
+        "oldValue" : "ZGVsZXRlZA=="
+      },
+      "3" : {
+        "type" : "created",
+        "newValue" : "Y3JlYXRlZA=="
+      }
+    },
+    "lockListChecksum" : {
+      "typeId" : 1,
+      "value" : "AAAAADUuws0="
+    }
+  }
+}
\ No newline at end of fileueu(8d65a011e35cfff9bbdb38ad706cc252b977467b}(sha(8d65a011e35cfff9bbdb38ad706cc252b977467bnode_idEC_kwDOAjP5fdoAKDhkNjVhMDExZTM1Y2ZmZjliYmRiMzhhZDcwNmNjMjUyYjk3NzQ2N2Icommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-09T13:03:24Zu	committer}(ji GitHubjk noreply@github.comjm 2023-06-09T13:03:24ZumessageX?  [Antithesis | Range Queries] Part 2: Row Column Range Read APIs (#6606)

* Refactor TransactionActions to have explicitly named single cell variants

* broken tests

* Row column range read APIs

* patchy patch

* change typing

* CR feedback

* spotless

* get set go

* ready getset go

* test stufftree}(ja (d3a7323ba6ae75dfbce40c26d570c019038ff135url`https://api.github.com/repos/palantir/atlasdb/git/trees/d3a7323ba6ae75dfbce40c26d570c019038ff135ujy bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8d65a011e35cfff9bbdb38ad706cc252b977467b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkgyMcCRBK7hj4Ov3rIwAA8dIIAAYBQXqclX7Z7T/7lRHrBula
+qDogiN4aIheELVjJ9nur+ttC4qqxm08NOlYXwJjHq8FEZhd8A4fPJ+OqkMEB2lX
RNmnWxPljC5RjlJfwIP4QPAz9WlF1dZy3zwz56jx3wzvFdGjKhlNqgSARH+M3GRE
0y6sg4kd2n27trrnWg/ujDzUZITmc+Wr0uJuFva7qsWjWYewHBM/1t2h43kWi5oC
m20DviO9yOuBv8RO0ppqElBrf1MOIEcSNL0A8QfZKnd33MA9SbVXU/R4d6mbTInp
+2biet0E+lJL9fSbprMK7r9bX2n17o6QzfFVivuaCcWACElm3iwHbWGlkkqGxA8=
=mwOD
-----END PGP SIGNATURE-----
payloadX  tree d3a7323ba6ae75dfbce40c26d570c019038ff135
parent 9da983498aba984ae0261e10013b6fc08e7d2351
author Jeremy Kong <jkong@palantir.com> 1686315804 +0100
committer GitHub <noreply@github.com> 1686315804 +0100

[Antithesis | Range Queries] Part 2: Row Column Range Read APIs (#6606)

* Refactor TransactionActions to have explicitly named single cell variants

* broken tests

* Row column range read APIs

* patchy patch

* change typing

* CR feedback

* spotless

* get set go

* ready getset go

* test stuffuujy ^https://api.github.com/repos/palantir/atlasdb/commits/8d65a011e35cfff9bbdb38ad706cc252b977467bhtml_urlShttps://github.com/palantir/atlasdb/commit/8d65a011e35cfff9bbdb38ad706cc252b977467bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8d65a011e35cfff9bbdb38ad706cc252b977467b/commentsjg }(login
jeremyk-91idJZ jc MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jy 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujo }(j web-flowj J/jc MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5jy %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(ja (9da983498aba984ae0261e10013b6fc08e7d2351jy ^https://api.github.com/repos/palantir/atlasdb/commits/9da983498aba984ae0261e10013b6fc08e7d2351j Shttps://github.com/palantir/atlasdb/commit/9da983498aba984ae0261e10013b6fc08e7d2351uastats}(totalM	additionsM	deletionsKufiles](}(ja (2725912f8e075ab25f996c376910f257d6850d7ffilename^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ColumnValue.javastatusaddedjþ K jľ K changesK blob_urlhttps://github.com/palantir/atlasdb/blob/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.javaraw_urlhttps://github.com/palantir/atlasdb/raw/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.java?ref=8d65a011e35cfff9bbdb38ad706cc252b977467bpatchX  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ColumnValue {
+    @Value.Parameter
+    int column();
+
+    @Value.Parameter
+    int value();
+
+    static ColumnValue of(int column, int value) {
+        return ImmutableColumnValue.of(column, value);
+    }
+}u}(ja (8a9dd68a171bcb94d41b777979635f8a4cca5c99jɾ matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelection.javaj˾ addedjþ KBjľ K j; KBjξ https://github.com/palantir/atlasdb/blob/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javajо https://github.com/palantir/atlasdb/raw/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javajҾ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.java?ref=8d65a011e35cfff9bbdb38ad706cc252b977467bjԾ Xq	  @@ -0,0 +1,66 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.google.common.collect.Range;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ColumnRangeSelection {
+    Optional<Integer> startColumnInclusive();
+
+    Optional<Integer> endColumnExclusive();
+
+    default boolean contains(int column) {
+        return asGuavaRange().contains(column);
+    }
+
+    default Range<Integer> asGuavaRange() {
+        if (startColumnInclusive().isEmpty()) {
+            if (endColumnExclusive().isEmpty()) {
+                return Range.all();
+            } else {
+                return Range.lessThan(endColumnExclusive().get());
+            }
+        } else {
+            if (endColumnExclusive().isEmpty()) {
+                return Range.atLeast(startColumnInclusive().get());
+            } else {
+                return Range.closedOpen(
+                        startColumnInclusive().get(), endColumnExclusive().get());
+            }
+        }
+    }
+
+    @Value.Check
+    default void check() {
+        Preconditions.checkState(
+                startColumnInclusive().isEmpty()
+                        || endColumnExclusive().isEmpty()
+                        || startColumnInclusive().get() <= endColumnExclusive().get(),
+                "Start column must be less than or equal to end column",
+                SafeArg.of("startColumnInclusive", startColumnInclusive()),
+                SafeArg.of("endColumnExclusive", endColumnExclusive()));
+    }
+
+    static ImmutableColumnRangeSelection.Builder builder() {
+        return ImmutableColumnRangeSelection.builder();
+    }
+}u}(ja (38bd65bb4f96e9501721390809e74a159a2f3b13jɾ |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowColumnRangeReadTransactionAction.javaj˾ addedjþ K7jľ K j; K7jξ https://github.com/palantir/atlasdb/blob/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javajо https://github.com/palantir/atlasdb/raw/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javajҾ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.java?ref=8d65a011e35cfff9bbdb38ad706cc252b977467bjԾ X	  @@ -0,0 +1,55 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import java.util.List;
+import org.immutables.value.Value;
+
+/**
+ * This transaction action models a column range read in AtlasDB ("getRowsColumnRange" in the AtlasDB API).
+ * <p>
+ * In the interest of implementation simplicity, two significant simplifications are made. Firstly, the action is
+ * presumed to act on a single row, though calls to getRowsColumnRange in practice can act on multiple rows in parallel.
+ * Secondly, values read from getRowsColumnRange are accessed through a live iterator, while for purposes of gathering
+ * a witness, we immediately drain the iterator and use the set of columns read as the witness to this action.
+ */
+@Value.Immutable
+public interface RowColumnRangeReadTransactionAction extends TransactionAction {
+    String table();
+
+    int row();
+
+    ColumnRangeSelection columnRangeSelection();
+
+    @Override
+    default <T> T accept(TransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    default WitnessedRowColumnRangeReadTransactionAction witness(List<ColumnValue> columnsAndValues) {
+        return WitnessedRowColumnRangeReadTransactionAction.builder()
+                .originalQuery(this)
+                .columnsAndValues(columnsAndValues)
+                .build();
+    }
+
+    static ImmutableRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableRowColumnRangeReadTransactionAction.builder();
+    }
+}u}(ja (1625640516054c38d6886dbd91b10123cb0bb223jɾ qatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionActionVisitor.javaj˾ modifiedjþ Kjľ K j; Kjξ https://github.com/palantir/atlasdb/blob/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javajо https://github.com/palantir/atlasdb/raw/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javajҾ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.java?ref=8d65a011e35cfff9bbdb38ad706cc252b977467bjԾ X  @@ -22,4 +22,6 @@ public interface TransactionActionVisitor<T> {
     T visit(WriteTransactionAction writeTransactionAction);
 
     T visit(DeleteTransactionAction deleteTransactionAction);
+
+    T visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction);
 }u}(ja (284f26075e3ae1ed8320bcbc8402749af631ccddjɾ atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javaj˾ addedjþ K;jľ K j; K;jξ https://github.com/palantir/atlasdb/blob/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javajо https://github.com/palantir/atlasdb/raw/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javajҾ X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=8d65a011e35cfff9bbdb38ad706cc252b977467bjԾ X	  @@ -0,0 +1,59 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedTransactionAction {
+    RowColumnRangeReadTransactionAction originalQuery();
+
+    // This is a List rather than a Set or Map because the ordering in which the columns and values are returned is
+    // important (it must match the ordering specified by the contract of row column range reads).
+    List<ColumnValue> columnsAndValues();
+
+    @Override
+    default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    @Value.Check
+    default void check() {
+        Set<Integer> knownColumns = new HashSet<>();
+        Set<Integer> duplicateColumns = columnsAndValues().stream()
+                .map(ColumnValue::column)
+                .filter(column -> !knownColumns.add(column))
+                .collect(Collectors.toSet());
+        Preconditions.checkState(
+                duplicateColumns.isEmpty(),
+                "Duplicate columns in columnsAndValues",
+                SafeArg.of("duplicateColumns", duplicateColumns),
+                SafeArg.of("columnsAndValues", columnsAndValues()));
+    }
+
+    static ImmutableWitnessedRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableWitnessedRowColumnRangeReadTransactionAction.builder();
+    }
+}u}(ja (ca4d65c16390f51cc645a365e26e4c1c79a67e15jɾ atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionActionVisitor.javaj˾ modifiedjþ Kjľ K j; Kjξ https://github.com/palantir/atlasdb/blob/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javajо https://github.com/palantir/atlasdb/raw/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javajҾ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.java?ref=8d65a011e35cfff9bbdb38ad706cc252b977467bjԾ X>  @@ -22,4 +22,6 @@ public interface WitnessedTransactionActionVisitor<T> {
     T visit(WitnessedWriteTransactionAction writeTransactionAction);
 
     T visit(WitnessedDeleteTransactionAction deleteTransactionAction);
+
+    T visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction);
 }u}(ja (e023081417c4bca7cf9bb80aeeb71bd64bdf21a4jɾ qatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelectionTest.javaj˾ addedjþ Kbjľ K j; Kbjξ https://github.com/palantir/atlasdb/blob/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.javajо https://github.com/palantir/atlasdb/raw/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.javajҾ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.java?ref=8d65a011e35cfff9bbdb38ad706cc252b977467bjԾ X  @@ -0,0 +1,98 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.Optional;
+import org.junit.Test;
+
+public class ColumnRangeSelectionTest {
+    @Test
+    public void cannotCreateRangeWithStartColumnGreaterThanEndColumn() {
+        assertThatLoggableExceptionThrownBy(() -> ColumnRangeSelection.builder()
+                        .startColumnInclusive(5)
+                        .endColumnExclusive(4)
+                        .build())
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Start column must be less than or equal to end column")
+                .hasExactlyArgs(
+                        SafeArg.of("startColumnInclusive", Optional.of(5)),
+                        SafeArg.of("endColumnExclusive", Optional.of(4)));
+    }
+
+    @Test
+    public void emptyRangeDoesNotContainAnyElements() {
+        ColumnRangeSelection emptyRange = ColumnRangeSelection.builder()
+                .startColumnInclusive(6)
+                .endColumnExclusive(6)
+                .build();
+        assertThat(emptyRange.contains(5)).isFalse();
+        assertThat(emptyRange.contains(6)).isFalse();
+        assertThat(emptyRange.contains(7)).isFalse();
+        assertThat(emptyRange.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(emptyRange.contains(Integer.MAX_VALUE)).isFalse();
+    }
+
+    @Test
+    public void singleElementRangeContainsJustItself() {
+        ColumnRangeSelection justSeven = ColumnRangeSelection.builder()
+                .startColumnInclusive(7)
+                .endColumnExclusive(8)
+                .build();
+        assertThat(justSeven.contains(6)).isFalse();
+        assertThat(justSeven.contains(7)).isTrue();
+        assertThat(justSeven.contains(8)).isFalse();
+        assertThat(justSeven.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(justSeven.contains(Integer.MAX_VALUE)).isFalse();
+    }
+
+    @Test
+    public void universalRangeContainsEverything() {
+        ColumnRangeSelection universal = ColumnRangeSelection.builder().build();
+        assertThat(universal.contains(10241024)).isTrue();
+        assertThat(universal.contains(-20482048)).isTrue();
+        assertThat(universal.contains(40924092)).isTrue();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isTrue();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isTrue();
+    }
+
+    @Test
+    public void lowerBoundedRangesContainCorrectElements() {
+        ColumnRangeSelection universal =
+                ColumnRangeSelection.builder().startColumnInclusive(5).build();
+        assertThat(universal.contains(4)).isFalse();
+        assertThat(universal.contains(5)).isTrue();
+        assertThat(universal.contains(6)).isTrue();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isTrue();
+    }
+
+    @Test
+    public void upperBoundedRangesContainCorrectElements() {
+        ColumnRangeSelection universal =
+                ColumnRangeSelection.builder().endColumnExclusive(5).build();
+        assertThat(universal.contains(4)).isTrue();
+        assertThat(universal.contains(5)).isFalse();
+        assertThat(universal.contains(6)).isFalse();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isTrue();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isFalse();
+    }
+}u}(ja (d8ae0172e04f5d987b18981c085af657a86bf0e4jɾ atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javaj˾ modifiedjþ Kjľ Kj; Kjξ https://github.com/palantir/atlasdb/blob/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javajо https://github.com/palantir/atlasdb/raw/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javajҾ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=8d65a011e35cfff9bbdb38ad706cc252b977467bjԾ X  @@ -54,7 +54,7 @@ public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
     public void toFullyWitnessedCopiesArgumentsCorrectly() {
         WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
         WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
-        List<WitnessedTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
+        List<WitnessedSingleCellTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
         FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
                 .startTimestamp(START_TIMESTAMP)
                 .commitTimestamp(COMMIT_TIMESTAMP)u}(ja (b2c905aecbadb5eff96bc5dbc26f890c72dbd00cjɾ atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javaj˾ addedjþ KGjľ K j; KGjξ https://github.com/palantir/atlasdb/blob/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javajо https://github.com/palantir/atlasdb/raw/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javajҾ X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=8d65a011e35cfff9bbdb38ad706cc252b977467bjԾ X
  @@ -0,0 +1,71 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import org.junit.Test;
+
+public class WitnessedRowColumnRangeReadTransactionActionTest {
+    @Test
+    public void canCreateWitness() {
+        assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
+                        .build())
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void cannotCreateWitnessWithDuplicateColumns() {
+        List<ColumnValue> columnsAndValues = ImmutableList.of(
+                ColumnValue.of(1, 5),
+                ColumnValue.of(5, 1),
+                ColumnValue.of(1, 3),
+                ColumnValue.of(5, 8),
+                ColumnValue.of(9, 99));
+
+        assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .addAllColumnsAndValues(columnsAndValues)
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
+                        .build())
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Duplicate columns in columnsAndValues")
+                .hasExactlyArgs(
+                        SafeArg.of("duplicateColumns", ImmutableSet.of(1, 5)),
+                        SafeArg.of("columnsAndValues", columnsAndValues));
+    }
+}u}(ja (7f8015ae9aa8e1cda19fbbfa7a571ed881b71b56jɾ hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj˾ modifiedjþ Kjľ K j; Kjξ https://github.com/palantir/atlasdb/blob/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajо https://github.com/palantir/atlasdb/raw/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajҾ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=8d65a011e35cfff9bbdb38ad706cc252b977467bjԾ X  @@ -23,6 +23,7 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -89,5 +90,12 @@ public Optional<InvalidWitnessedTransactionAction> visit(
             inMemoryTransactionReplayer.visit(deleteTransactionAction);
             return Optional.empty();
         }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+            // TODO (jkong): Not implemented yet
+            return Optional.empty();
+        }
     }
 }u}(ja (077c0294a2f984f9f97dca7c4b24ef6de5bc6f16jɾ katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj˾ modifiedjþ Kjľ K j; Kjξ https://github.com/palantir/atlasdb/blob/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajо https://github.com/palantir/atlasdb/raw/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajҾ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=8d65a011e35cfff9bbdb38ad706cc252b977467bjԾ X  @@ -23,6 +23,7 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.Map;
@@ -89,6 +90,13 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransact
         return invalidAction;
     }
 
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(
+            WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        // TODO (jkong): Not implemented yet
+        return Optional.empty();
+    }
+
     /**
      * Applies writes to both our read and latest table view.
      * Latest table view needs to be updated to apply our writes from our transaction,u}(ja (12ac1ba77ac5173e6e93ae318bde8d17c872de28jɾ fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj˾ modifiedjþ Kjľ K j; Kjξ https://github.com/palantir/atlasdb/blob/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javajо https://github.com/palantir/atlasdb/raw/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javajҾ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=8d65a011e35cfff9bbdb38ad706cc252b977467bjԾ XC  @@ -27,6 +27,7 @@
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
@@ -159,6 +160,12 @@ public Void visit(DeleteTransactionAction deleteTransactionAction) {
             transaction.delete(deleteTransactionAction.table(), deleteTransactionAction.cell());
             return null;
         }
+
+        @Override
+        public Void visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+            // TODO (jkong): Not implemented yet
+            throw new UnsupportedOperationException("Not implemented yet");
+        }
     }
 
     public static AtlasDbTransactionStore create(u}(ja (53b40b5fe80de185e89ff3bfca0044e6f97e759djɾ patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj˾ modifiedjþ Kjľ K j; Kjξ https://github.com/palantir/atlasdb/blob/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javajо https://github.com/palantir/atlasdb/raw/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javajҾ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=8d65a011e35cfff9bbdb38ad706cc252b977467bjԾ X  @@ -20,6 +20,7 @@
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.HashMap;
@@ -55,6 +56,11 @@ public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         return null;
     }
 
+    @Override
+    public Void visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        return null;
+    }
+
     public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
         return values.getSnapshot();
     }u}(ja (32db22149cce31693c0af4b33f0f275d03565d29jɾ katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javaj˾ modifiedjþ Kjľ K j; Kjξ https://github.com/palantir/atlasdb/blob/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javajо https://github.com/palantir/atlasdb/raw/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javajҾ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=8d65a011e35cfff9bbdb38ad706cc252b977467bjԾ X  @@ -18,6 +18,7 @@
 
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 
@@ -39,4 +40,9 @@ public WriteTransactionAction visit(WitnessedWriteTransactionAction writeTransac
     public DeleteTransactionAction visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         return ImmutableDeleteTransactionAction.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
     }
+
+    @Override
+    public TransactionAction visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        return rowColumnRangeReadTransactionAction.originalQuery();
+    }
 }u}(ja (ce49e27d10355fb6f5b71d88a206899b12b7f25bjɾ xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javaj˾ modifiedjþ Kjľ Kj; K
jξ https://github.com/palantir/atlasdb/blob/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javajо https://github.com/palantir/atlasdb/raw/8d65a011e35cfff9bbdb38ad706cc252b977467b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javajҾ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=8d65a011e35cfff9bbdb38ad706cc252b977467bjԾ X+  @@ -30,6 +30,7 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -83,10 +84,11 @@ public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
                 .map(WitnessedTransaction::actions)
                 .flatMap(Collection::stream)
                 .collect(Collectors.toList());
-        assertThat(witnessedTransactionActions)
-                .allMatch(action -> action.table().equals(TABLE_NAME));
-        assertThat(witnessedTransactionActions)
-                .allMatch(action -> action.cell().equals(SingleBusyCellReadNoTouchWorkflows.BUSY_CELL));
+        assertThat(witnessedTransactionActions).allSatisfy(action -> assertThat(action)
+                .isInstanceOfSatisfying(WitnessedSingleCellTransactionAction.class, singleCellAction -> {
+                    assertThat(singleCellAction.table()).isEqualTo(TABLE_NAME);
+                    assertThat(singleCellAction.cell()).isEqualTo(SingleBusyCellReadNoTouchWorkflows.BUSY_CELL);
+                }));
     }
 
     @Testueu(b4f5ea7955bd88083f488244a5895d0b48319268}(sha(b4f5ea7955bd88083f488244a5895d0b48319268node_idEC_kwDOAjP5fdoAKGI0ZjVlYTc5NTViZDg4MDgzZjQ4ODI0NGE1ODk1ZDBiNDgzMTkyNjgcommit}(author}(name	Tom Papkeemail+43675490+Toemmsche@users.noreply.github.comdate2023-06-14T10:42:56Zu	committer}(jP GitHubjR noreply@github.comjT 2023-06-14T10:42:56Zumessage[LockV1] Log lock holder thread info on timeout, slow lock acquisition and contention (#6623)

Log lock holder thread info on timeout, slow lock acquisition and contentiontree}(jH (2dae42590fbd3a921f1e248c75e94861c966e8e7url`https://api.github.com/repos/palantir/atlasdb/git/trees/2dae42590fbd3a921f1e248c75e94861c966e8e7uj` bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b4f5ea7955bd88083f488244a5895d0b48319268
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkiZmwCRBK7hj4Ov3rIwAAQ8wIAFIUIiUolGl2paq8brndR7Nt
g9t8WbZ4LB4zhN5nrsBC2NqiOvcIymM5Z5I0/NRjTMQDKZSxM/99VacRa3OqEhyW
vq1Fc4kQEWNTWFiizQl1xnLTE+w/BVg7Nhj2O+XcJdUUtj4EiNtcvns+M7DeyPbD
S6HlqZGbnFkAhZ/2eGuTR8dyo8ujw5X5ZqMYMQRIrhuwH9NqCXBeQiTEFJ6WpX76
USVFJe4Jm6teOKfcSrBBloCF9tFRcuEEd+P3Ab/yPTAUJGBwJITtGomUTMh47CX1
Gm0iumG+phdZ+snB6jg7sjd1iATBFJH4sdkWi7WjmiiVN/TKqgqHoThKn6zNLdk=
=kT4w
-----END PGP SIGNATURE-----
payloadX  tree 2dae42590fbd3a921f1e248c75e94861c966e8e7
parent 45b43c7516593ef134835177e8f48cbe531f211e
author Tom Papke <43675490+Toemmsche@users.noreply.github.com> 1686739376 +0200
committer GitHub <noreply@github.com> 1686739376 +0000

[LockV1] Log lock holder thread info on timeout, slow lock acquisition and contention (#6623)

Log lock holder thread info on timeout, slow lock acquisition and contention
uuj` ^https://api.github.com/repos/palantir/atlasdb/commits/b4f5ea7955bd88083f488244a5895d0b48319268html_urlShttps://github.com/palantir/atlasdb/commit/b4f5ea7955bd88083f488244a5895d0b48319268comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b4f5ea7955bd88083f488244a5895d0b48319268/commentsjN }(login	ToemmscheidJbojJ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j` &https://api.github.com/users/Toemmschejn https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujV }(js web-flowju J/jJ MDQ6VXNlcjE5ODY0NDQ3jw 4https://avatars.githubusercontent.com/u/19864447?v=4jy h5j` %https://api.github.com/users/web-flowjn https://github.com/web-flowj| /https://api.github.com/users/web-flow/followersj~ <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(jH (45b43c7516593ef134835177e8f48cbe531f211ej` ^https://api.github.com/repos/palantir/atlasdb/commits/45b43c7516593ef134835177e8f48cbe531f211ejn Shttps://github.com/palantir/atlasdb/commit/45b43c7516593ef134835177e8f48cbe531f211euastats}(totalK	additionsK	deletionsKufiles](}(jH (a6c9d3dd239346b5de33d708683efcea7ca6e0d1filename$changelog/@unreleased/pr-6623.v2.ymlstatusaddedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/b4f5ea7955bd88083f488244a5895d0b48319268/changelog%2F%40unreleased%2Fpr-6623.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/b4f5ea7955bd88083f488244a5895d0b48319268/changelog%2F%40unreleased%2Fpr-6623.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6623.v2.yml?ref=b4f5ea7955bd88083f488244a5895d0b48319268patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Log lock holder thread info on timeout, slow lock acquisition and contention
+  links:
+  - https://github.com/palantir/atlasdb/pull/6623u}(jH (34cefef0f32840760e1b45c880f7af92fa4d8e85j Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/b4f5ea7955bd88083f488244a5895d0b48319268/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://github.com/palantir/atlasdb/raw/b4f5ea7955bd88083f488244a5895d0b48319268/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=b4f5ea7955bd88083f488244a5895d0b48319268j X  @@ -92,6 +92,7 @@
 import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.BlockingQueue;
@@ -104,6 +105,7 @@
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicInteger;
 import java.util.function.Supplier;
+import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 import javax.annotation.concurrent.ThreadSafe;
@@ -471,7 +473,7 @@ private void logLockAcquisitionFailure(Map<LockDescriptor, LockClient> failedLoc
         final String logMessage = "Current holders of the first {} of {} total failed locks were: {}";
 
         List<String> lockDescriptions = new ArrayList<>();
-        Iterator<Map.Entry<LockDescriptor, LockClient>> entries =
+        Iterator<Entry<LockDescriptor, LockClient>> entries =
                 failedLocks.entrySet().iterator();
         for (int i = 0; i < MAX_FAILED_LOCKS_TO_LOG && entries.hasNext(); i++) {
             Map.Entry<LockDescriptor, LockClient> entry = entries.next();
@@ -483,7 +485,10 @@ private void logLockAcquisitionFailure(Map<LockDescriptor, LockClient> failedLoc
                 logMessage,
                 SafeArg.of("numLocksLogged", Math.min(MAX_FAILED_LOCKS_TO_LOG, failedLocks.size())),
                 SafeArg.of("numLocksFailed", failedLocks.size()),
-                UnsafeArg.of("lockDescriptions", lockDescriptions));
+                UnsafeArg.of("lockDescriptions", lockDescriptions),
+                threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(failedLocks.keySet().stream()
+                        .limit(MAX_FAILED_LOCKS_TO_LOG)
+                        .collect(Collectors.toSet())));
     }
 
     private boolean isBlocking(BlockingMode blockingMode) {
@@ -529,7 +534,7 @@ private void tryLocks(
                 LockClient currentHolder = tryLock(lock.get(client, entry.getValue()), blockingMode, deadline);
                 if (log.isDebugEnabled() || isSlowLogEnabled()) {
                     long responseTimeMillis = System.currentTimeMillis() - startTime;
-                    logSlowLockAcquisition(entry.getKey().toString(), currentHolder, responseTimeMillis);
+                    logSlowLockAcquisition(entry.getKey(), currentHolder, responseTimeMillis);
                 }
                 if (currentHolder == null) {
                     locks.put(lock, entry.getValue());
@@ -548,22 +553,25 @@ private void tryLocks(
     }
 
     @VisibleForTesting
-    void logSlowLockAcquisition(String lockId, LockClient currentHolder, long durationMillis) {
+    void logSlowLockAcquisition(LockDescriptor lockDescriptor, LockClient currentHolder, long durationMillis) {
         final String slowLockLogMessage = "Blocked for {} ms to acquire lock {} {}.";
+        final String lockId = lockDescriptor.getLockIdAsString();
 
         // Note: The construction of params is pushed into the branches, as it may be expensive.
         if (isSlowLogEnabled() && durationMillis >= slowLogTriggerMillis) {
             SlowLockLogger.logger.warn(
                     slowLockLogMessage,
                     SafeArg.of("durationMillis", durationMillis),
                     UnsafeArg.of("lockId", lockId),
-                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"));
+                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"),
+                    threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(Set.of(lockDescriptor)));
         } else if (log.isDebugEnabled() && durationMillis > DEBUG_SLOW_LOG_TRIGGER_MILLIS) {
             log.debug(
                     slowLockLogMessage,
                     SafeArg.of("durationMillis", durationMillis),
                     UnsafeArg.of("lockId", lockId),
-                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"));
+                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"),
+                    threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(Set.of(lockDescriptor)));
         }
     }
 u}(jH (599384706d72a7d0869da28e968fae05f9fc46caj Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/b4f5ea7955bd88083f488244a5895d0b48319268/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj https://github.com/palantir/atlasdb/raw/b4f5ea7955bd88083f488244a5895d0b48319268/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=b4f5ea7955bd88083f488244a5895d0b48319268j X  @@ -24,9 +24,13 @@
 import com.palantir.lock.LockClientAndThread;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
+import com.palantir.logsafe.UnsafeArg;
+import java.util.HashMap;
 import java.util.Map;
 import java.util.Map.Entry;
 import java.util.Objects;
+import java.util.Optional;
+import java.util.Set;
 import java.util.concurrent.ConcurrentMap;
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.concurrent.TimeUnit;
@@ -73,6 +77,24 @@ Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot() {
         return lastKnownThreadInfoSnapshot;
     }
 
+    /**
+     * Returns a consistent snapshot of thread information restricted to the given lock descriptors wrapped in an
+     * unsafe logging argument.
+     */
+    public UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> getRestrictedSnapshotAsOptionalLogArg(
+            Set<LockDescriptor> lockDescriptors) {
+        String argName = "presumedClientThreadHoldersIfEnabled";
+        if (!threadInfoConfiguration.recordThreadInfo()) {
+            return UnsafeArg.of(argName, Optional.empty());
+        }
+        Map<LockDescriptor, LockClientAndThread> latestSnapshot = lastKnownThreadInfoSnapshot;
+        Map<LockDescriptor, LockClientAndThread> restrictedSnapshot = new HashMap<>();
+        for (LockDescriptor lock : lockDescriptors) {
+            restrictedSnapshot.put(lock, latestSnapshot.get(lock));
+        }
+        return UnsafeArg.of(argName, Optional.of(restrictedSnapshot));
+    }
+
     @VisibleForTesting
     void takeSnapshot() {
         lastKnownThreadInfoSnapshot = tokenMapSupplier.get().keySet().stream()u}(jH (aa47bbbffda9b68b9a93e2e31755530993156e4fj Glock-impl/src/test/java/com/palantir/lock/impl/LockServiceImplTest.javaj modifiedj Kj Kj K%j https://github.com/palantir/atlasdb/blob/b4f5ea7955bd88083f488244a5895d0b48319268/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/b4f5ea7955bd88083f488244a5895d0b48319268/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.java?ref=b4f5ea7955bd88083f488244a5895d0b48319268j X!  @@ -22,16 +22,21 @@
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.lock.LockClient;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRefreshToken;
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.StringLockDescriptor;
 import com.palantir.lock.client.LockRefreshingLockService;
+import com.palantir.logsafe.UnsafeArg;
 import java.io.IOException;
 import java.util.HashSet;
 import java.util.List;
+import java.util.Map;
+import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.TimeUnit;
@@ -49,6 +54,9 @@
 public final class LockServiceImplTest {
     public static final long SLOW_LOG_TRIGGER_MILLIS = LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS + 10;
     private static final String TEST_LOCKID = "test_lockId";
+    private static final LockDescriptor TEST_LOCK = StringLockDescriptor.of(TEST_LOCKID);
+    private static final UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> THREAD_INFO_SNAPSHOT_ARG =
+            UnsafeArg.of("presumedClientThreadHoldersIfEnabled", Optional.empty());
     private static LockServiceImpl lockServiceWithSlowLogEnabled;
     private static LockServiceImpl lockServiceWithSlowLogDisabled;
 
@@ -94,48 +102,63 @@ public void slowLogShouldNotBeEnabledIfSlowLogTriggerMillisIsSetToZero() {
     @Test
     public void slowLogShouldBeLoggedWhenLockResponseIsSlowButShouldNotBeLoggedAtDebug() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS + 5;
-        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertThat(testLockServiceImplLogger.getLoggingEvents()).isEmpty();
 
         assertThat(testSlowLogger.getLoggingEvents()).hasSize(1);
         assertContainsMatchingLoggingEvent(
                 testSlowLogger.getLoggingEvents(),
-                warn("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                warn(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
     }
 
     @Test
     public void debugLogShouldBeLoggedWhenLockResponseIsSlowButSlowLogIsDisabled() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS + 5;
-        lockServiceWithSlowLogDisabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogDisabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertThat(testLockServiceImplLogger.getLoggingEvents()).hasSize(1);
         assertContainsMatchingLoggingEvent(
                 testLockServiceImplLogger.getLoggingEvents(),
-                debug("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                debug(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }
 
     @Test
     public void debugLogShouldBeLoggedIfLockResponseTimeIsBetweenDebugTriggerTimeAndSlowLogTriggerMillis() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS - 5;
-        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertContainsMatchingLoggingEvent(
                 testLockServiceImplLogger.getLoggingEvents(),
-                debug("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                debug(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }
 
     @Test
     public void debugOrSlowLogShouldNotBeLoggedWhenLockResponseIsNotSlow() {
         lockServiceWithSlowLogEnabled.logSlowLockAcquisition(
-                TEST_LOCKID, LockClient.ANONYMOUS, LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS - 5);
+                TEST_LOCK, LockClient.ANONYMOUS, LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS - 5);
         assertThat(testLockServiceImplLogger.getLoggingEvents()).isEmpty();
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }u      }(jH (bb40ec0ce734aeef758d1e8bd2b8a0433d7bd1dfj Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javaj modifiedj K%j K j K%j https://github.com/palantir/atlasdb/blob/b4f5ea7955bd88083f488244a5895d0b48319268/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/b4f5ea7955bd88083f488244a5895d0b48319268/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=b4f5ea7955bd88083f488244a5895d0b48319268j XW
  @@ -31,6 +31,7 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.StringLockDescriptor;
+import com.palantir.logsafe.UnsafeArg;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
@@ -296,6 +297,42 @@ public void backgroundSnapshotRunnerWorks() throws InterruptedException {
                 .doesNotContainKey(TEST_LOCK_1));
     }
 
+    @Test
+    public void logArgIsUnsafeAndContainsEmptyOptionalIfNotRecordingThreadInfo() throws InterruptedException {
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+        assertThat(lockService.getSnapshotManager().getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
+                .isEqualTo(UnsafeArg.of("presumedClientThreadHoldersIfEnabled", Optional.empty()));
+    }
+
+    @Test
+    public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() throws InterruptedException {
+        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
+                .isStandaloneServer(false)
+                .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                        .recordThreadInfo(true)
+                        .threadInfoSnapshotIntervalMillis(50L)
+                        .build())
+                .build());
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
+                .doNotBlock()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockServiceWithBackgroundRunner.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockServiceWithBackgroundRunner.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+
+        Awaitility.waitAtMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(lockServiceWithBackgroundRunner
+                        .getSnapshotManager()
+                        .getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
+                .isEqualTo(UnsafeArg.of(
+                        "presumedClientThreadHoldersIfEnabled",
+                        // Snapshot should be restricted to TEST_LOCK_1
+                        Optional.of(
+                                Map.of(TEST_LOCK_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1))))));
+    }
+
     private void forceSnapshot() {
         lockService.getSnapshotManager().takeSnapshot();
     }u}(jH (f7a0eb86db4453d45c0f6446984396538e442e0bj Itimelock-agent/src/main/java/com/palantir/timelock/paxos/LockCreator.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/b4f5ea7955bd88083f488244a5895d0b48319268/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj https://github.com/palantir/atlasdb/raw/b4f5ea7955bd88083f488244a5895d0b48319268/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.java?ref=b4f5ea7955bd88083f488244a5895d0b48319268j XN  @@ -44,7 +44,8 @@ public CloseableLockService createThreadPoolingLockService() {
                 .build();
 
         LockServiceImpl rawLockService = LockServiceImpl.create(lockServerOptions, sharedExecutor);
-        CloseableLockService lockService = BlockingTimeLimitedLockService.create(rawLockService, blockingTimeoutMs);
+        CloseableLockService lockService = BlockingTimeLimitedLockService.create(
+                rawLockService, blockingTimeoutMs, rawLockService.getSnapshotManager());
 
         return new ThreadPooledLockService(lockService, -1, sharedThreadPool);
     }u}(jH (cba6348015c254aa9ba5c6b6a2f959d6673f27dcj btimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockService.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/b4f5ea7955bd88083f488244a5895d0b48319268/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj https://github.com/palantir/atlasdb/raw/b4f5ea7955bd88083f488244a5895d0b48319268/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.java?ref=b4f5ea7955bd88083f488244a5895d0b48319268j X/
  @@ -32,6 +32,7 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.LockState;
 import com.palantir.lock.SimpleHeldLocksToken;
+import com.palantir.lock.impl.LockThreadInfoSnapshotManager;
 import com.palantir.lock.remoting.BlockingTimeoutException;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
@@ -44,31 +45,45 @@
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.TimeoutException;
+import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import javax.ws.rs.PathParam;
 import org.immutables.value.Value;
 
 public class BlockingTimeLimitedLockService implements CloseableLockService {
     private static final SafeLogger log = SafeLoggerFactory.get(BlockingTimeLimitedLockService.class);
 
+    private static final int MAX_THREADINFO_TO_LOG = 20;
+
     private final CloseableLockService delegate;
     private final TimeLimiter timeLimiter;
     private final long blockingTimeLimitMillis;
 
+    private final LockThreadInfoSnapshotManager threadInfoSnapshotManager;
+
     @VisibleForTesting
     BlockingTimeLimitedLockService(
-            CloseableLockService delegate, TimeLimiter timeLimiter, long blockingTimeLimitMillis) {
+            CloseableLockService delegate,
+            TimeLimiter timeLimiter,
+            long blockingTimeLimitMillis,
+            LockThreadInfoSnapshotManager threadInfoSnapshotManager) {
         this.delegate = delegate;
         this.timeLimiter = timeLimiter;
         this.blockingTimeLimitMillis = blockingTimeLimitMillis;
+        this.threadInfoSnapshotManager = threadInfoSnapshotManager;
     }
 
     public static BlockingTimeLimitedLockService create(
-            CloseableLockService lockService, long blockingTimeLimitMillis) {
+            CloseableLockService lockService,
+            long blockingTimeLimitMillis,
+            LockThreadInfoSnapshotManager threadInfoSnapshotManager) {
         // TODO (jkong): Inject the executor to allow application lifecycle managed executors.
         // Currently maintaining existing behaviour.
         return new BlockingTimeLimitedLockService(
-                lockService, SimpleTimeLimiter.create(PTExecutors.newCachedThreadPool()), blockingTimeLimitMillis);
+                lockService,
+                SimpleTimeLimiter.create(PTExecutors.newCachedThreadPool()),
+                blockingTimeLimitMillis,
+                threadInfoSnapshotManager);
     }
 
     @Nullable
@@ -234,7 +249,11 @@ private BlockingTimeoutException logAndHandleTimeout(LockRequestSpecification sp
                 SafeArg.of("timeoutDurationMillis", blockingTimeLimitMillis),
                 SafeArg.of("method", specification.method()),
                 SafeArg.of("client", specification.client()),
-                UnsafeArg.of("lockRequest", specification.lockRequest()));
+                UnsafeArg.of("lockRequest", specification.lockRequest()),
+                threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(
+                        specification.lockRequest().getLockDescriptors().stream()
+                                .limit(MAX_THREADINFO_TO_LOG)
+                                .collect(Collectors.toSet())));
 
         String errorMessage = String.format(
                 logMessage.replace("{}", "%s"),u}(jH (ba84282c91e1c85c2d25288ffc78e1895ce61edej ftimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockServiceTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/b4f5ea7955bd88083f488244a5895d0b48319268/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.javaj https://github.com/palantir/atlasdb/raw/b4f5ea7955bd88083f488244a5895d0b48319268/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.java?ref=b4f5ea7955bd88083f488244a5895d0b48319268j X:  @@ -33,6 +33,7 @@
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.impl.LockThreadInfoSnapshotManager;
 import com.palantir.lock.remoting.BlockingTimeoutException;
 import java.io.IOException;
 import java.util.concurrent.ExecutionException;
@@ -57,6 +58,8 @@ public class BlockingTimeLimitedLockServiceTest {
 
     private final CloseableLockService delegate = mock(CloseableLockService.class);
 
+    private final LockThreadInfoSnapshotManager snapshotManager = mock(LockThreadInfoSnapshotManager.class);
+
     private final BlockingTimeLimitedLockService acceptingService = createService(acceptingLimiter);
     private final BlockingTimeLimitedLockService timingOutService = createService(timingOutLimiter);
     private final BlockingTimeLimitedLockService interruptingService = createService(interruptingLimiter);
@@ -130,6 +133,6 @@ private void verifyCurrentTimeMillisDelegates(BlockingTimeLimitedLockService ser
     }
 
     private BlockingTimeLimitedLockService createService(TimeLimiter limiter) {
-        return new BlockingTimeLimitedLockService(delegate, limiter, BLOCKING_TIME_LIMIT_MILLIS);
+        return new BlockingTimeLimitedLockService(delegate, limiter, BLOCKING_TIME_LIMIT_MILLIS, snapshotManager);
     }
 }ueu(b8d981ffce5dd68a2dde1b131561589db71eaa83}(sha(b8d981ffce5dd68a2dde1b131561589db71eaa83node_idEC_kwDOAjP5fdoAKGI4ZDk4MWZmY2U1ZGQ2OGEyZGRlMWIxMzE1NjE1ODlkYjcxZWFhODMcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-08-09T11:46:53Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-08-09T11:47:08Zumessage/store number of expected cells on exception tootree}(j (28d6da83f36fa8ac244202426425caa2cd882035url`https://api.github.com/repos/palantir/atlasdb/git/trees/28d6da83f36fa8ac244202426425caa2cd882035uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b8d981ffce5dd68a2dde1b131561589db71eaa83
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmTTfLwACgkQJd22kJ7J
GiyntAf/aSR3RWRcSWN8FNGQlNUk6wwAsM9mIXVPl916v0yOJwcM5mbZ3Y/C3x6C
o5nBsdV9i805a1gBZ+GcMvGYZSaQ4m4COr4MvL0/l2lDWz0No9EsUS7PF0JBFM9o
k2SbwnpwXl+kSBwyCyJXF2/VXAWpIchwAvIV/OthdjQndO8t/mU2DXfcJb4DOA5O
hGoX4d01uEifPDtskttyCuhrg5yk+PAOeGmU3wrWJjAW8UEBHqE8gp/nxoxuZvw3
nkjJ9/6qfNp4Vz1U/58Ao3zaxeoiP8npbMoSZg/om/ExZ8fJT8JC+gYzfKnwSbvB
pWkQwdCcW343SnxNt47MZ1440EsGlQ==
=og2z
-----END PGP SIGNATURE-----payloadX
  tree 28d6da83f36fa8ac244202426425caa2cd882035
parent 806abe0a8b35316659916f698c47714449463b88
author Lucas Meireles <meireles31@msn.com> 1691581613 +0100
committer Lucas Meireles <meireles31@msn.com> 1691581628 +0100

store number of expected cells on exception too
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/b8d981ffce5dd68a2dde1b131561589db71eaa83html_urlShttps://github.com/palantir/atlasdb/commit/b8d981ffce5dd68a2dde1b131561589db71eaa83comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b8d981ffce5dd68a2dde1b131561589db71eaa83/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j" LucasIMEj$ Jg j MDQ6VXNlcjY3ODczMTE=j& 3https://avatars.githubusercontent.com/u/6787311?v=4j( h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj+ /https://api.github.com/users/LucasIME/followersj- <https://api.github.com/users/LucasIME/following{/other_user}j/ 5https://api.github.com/users/LucasIME/gists{/gist_id}j1 <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j3 3https://api.github.com/users/LucasIME/subscriptionsj5 *https://api.github.com/users/LucasIME/orgsj7 +https://api.github.com/users/LucasIME/reposj9 6https://api.github.com/users/LucasIME/events{/privacy}j; 5https://api.github.com/users/LucasIME/received_eventsj= Userj? uparents]}(j (806abe0a8b35316659916f698c47714449463b88j ^https://api.github.com/repos/palantir/atlasdb/commits/806abe0a8b35316659916f698c47714449463b88j Shttps://github.com/palantir/atlasdb/commit/806abe0a8b35316659916f698c47714449463b88uastats}(totalK	additionsK	deletionsK ufiles]}(j (2d0cc52b317e84fc8f4184dd20087d378e9c85f2filenametatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/exceptions/MoreCellsPresentThanExpectedException.javastatusmodifiedjY KjZ K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/b8d981ffce5dd68a2dde1b131561589db71eaa83/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexceptions%2FMoreCellsPresentThanExpectedException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b8d981ffce5dd68a2dde1b131561589db71eaa83/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexceptions%2FMoreCellsPresentThanExpectedException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexceptions%2FMoreCellsPresentThanExpectedException.java?ref=b8d981ffce5dd68a2dde1b131561589db71eaa83patchX  @@ -35,18 +35,24 @@ public final class MoreCellsPresentThanExpectedException extends IllegalStateExc
                     + "using such method.";
     private final List<Arg<?>> arguments;
     private final Map<Cell, byte[]> fetchedCells;
+    private final long expectedNumberOfCells;
 
     public MoreCellsPresentThanExpectedException(Map<Cell, byte[]> fetchedCells, long expectedNumberOfCells) {
         super(SafeExceptions.renderMessage(
                 MESSAGE, argsFrom(fetchedCells, expectedNumberOfCells).toArray(Arg<?>[]::new)));
         this.fetchedCells = fetchedCells;
+        this.expectedNumberOfCells = expectedNumberOfCells;
         this.arguments = argsFrom(fetchedCells, expectedNumberOfCells);
     }
 
     public Map<Cell, byte[]> getFetchedCells() {
         return fetchedCells;
     }
 
+    public long getExpectedNumberOfCells() {
+        return expectedNumberOfCells;
+    }
+
     @Override
     public @Safe String getLogMessage() {
         return MESSAGE;uau(08c5bdcb375167dd16cdb1066c8ea38394072b2b}(sha(08c5bdcb375167dd16cdb1066c8ea38394072b2bnode_idEC_kwDOAjP5fdoAKDA4YzViZGNiMzc1MTY3ZGQxNmNkYjEwNjZjOGVhMzgzOTQwNzJiMmIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-16T18:39:44Zu	committer}(jv Jeremy Kongjx jkong@palantir.comjz 2023-05-16T18:39:44Zumessageloltree}(jn (b1d126cb397d6b2a236e561a62aa08798ab0c639url`https://api.github.com/repos/palantir/atlasdb/git/trees/b1d126cb397d6b2a236e561a62aa08798ab0c639uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/08c5bdcb375167dd16cdb1066c8ea38394072b2b
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRjzfAACgkQTLdFKain
zjxJaQf9Fjfyovy962xImpu87EIpbBfjUIwbHr6zMTmSNxqSzWsI8VyO4ek/hbFW
aTBF6ZcQeyeN6o3DkoQht1RmQIGZRWBwlfzwRA5F+Dfs5SsWeQjirwuQ3o5SgOGG
mED0H64wnTTz76U+ruL+8ccnMdTY9wEUkTQ6j9lOUxwLb25Cj9JKZhE/U9S3Gkzr
7DHix3gyE4XKnWzhMP+l2sYrZzD3/jpv/nFwghDWgkAuNLrCHvqtMTMlFw59+jRG
lqYKWYVGsjsVCEQLVF46GieOCFbi2VaIcOXqKC9XyNN0ZJ9kXScGf1AbdCkg4CPX
MGUKR2TdgEzO+KJ2+uws6D62csdTQQ==
=4bEK
-----END PGP SIGNATURE-----payloadtree b1d126cb397d6b2a236e561a62aa08798ab0c639
parent 33336baa70644258722a5134f8f3e1ed2003b8d7
author Jeremy Kong <jkong@palantir.com> 1684262384 +0100
committer Jeremy Kong <jkong@palantir.com> 1684262384 +0100

lol
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/08c5bdcb375167dd16cdb1066c8ea38394072b2bhtml_urlShttps://github.com/palantir/atlasdb/commit/08c5bdcb375167dd16cdb1066c8ea38394072b2bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/08c5bdcb375167dd16cdb1066c8ea38394072b2b/commentsjt }(login
jeremyk-91idJZ jp MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj| }(j 
jeremyk-91j JZ jp MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(jn (33336baa70644258722a5134f8f3e1ed2003b8d7j ^https://api.github.com/repos/palantir/atlasdb/commits/33336baa70644258722a5134f8f3e1ed2003b8d7j Shttps://github.com/palantir/atlasdb/commit/33336baa70644258722a5134f8f3e1ed2003b8d7uastats}(totalKp	additionsKn	deletionsKufiles](}(jn (75c76dce478bf2633963542a0b6a95d53cb063a6filenameiatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/MultiCellViolation.javastatusaddedj K-j K changesK-blob_urlhttps://github.com/palantir/atlasdb/blob/08c5bdcb375167dd16cdb1066c8ea38394072b2b/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMultiCellViolation.javaraw_urlhttps://github.com/palantir/atlasdb/raw/08c5bdcb375167dd16cdb1066c8ea38394072b2b/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMultiCellViolation.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMultiCellViolation.java?ref=08c5bdcb375167dd16cdb1066c8ea38394072b2bpatchX  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.Map;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+/**
+ * A set of cells that may individually be valid, but considered together may violate some property that is expected
+ * to hold across the group of cells.
+ */
+@Value.Immutable
+public interface MultiCellViolation {
+    Map<TableAndWorkloadCell, Optional<Integer>> violatingCellValues();
+
+    @Value.Check
+    default void consistsOfAtLeastTwoCells() {
+        Preconditions.checkState(
+                violatingCellValues().size() >= 2,
+                "A multi-cell violation must consist of at least two cells",
+                SafeArg.of("cells", violatingCellValues()));
+    }
+
+    static ImmutableMultiCellViolation.Builder builder() {
+        return ImmutableMultiCellViolation.builder();
+    }
+}u}(jn (85be30688a7212c3c5c863933d2a619853dd8a91j latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/08c5bdcb375167dd16cdb1066c8ea38394072b2b/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://github.com/palantir/atlasdb/raw/08c5bdcb375167dd16cdb1066c8ea38394072b2b/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=08c5bdcb375167dd16cdb1066c8ea38394072b2bj X  @@ -143,6 +143,7 @@ private WorkflowAndInvariants<Workflow> createTransientRowsWorkflowValidator(
                 .addInvariantReporters(new DurableWritesInvariantMetricReporter(
                         TransientRowsWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
                 .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .addInvariantReporters(TransientRowsWorkflows.getSummaryLogInvariantReporter(workflowConfig))
                 .build();
     }
 u}(jn (b2d80cb9a1d549dcf417c5c8983e92e69afeb500j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javaj modifiedj K@j Kj KBj https://github.com/palantir/atlasdb/blob/08c5bdcb375167dd16cdb1066c8ea38394072b2b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj https://github.com/palantir/atlasdb/raw/08c5bdcb375167dd16cdb1066c8ea38394072b2b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=08c5bdcb375167dd16cdb1066c8ea38394072b2bj X  @@ -17,12 +17,29 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.invariant.ImmutableInvariantReporter;
+import com.palantir.atlasdb.workload.invariant.Invariant;
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.invariant.MultiCellViolation;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.ArrayList;
+import java.util.List;
 import java.util.Optional;
+import java.util.Set;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 
 public final class TransientRowsWorkflows {
+    private static final SafeLogger log = SafeLoggerFactory.get(TransientRowsWorkflows.class);
+
     private static final int SUMMARY_ROW = -1;
     private static final int COLUMN = 1;
 
@@ -44,9 +61,54 @@ private static Optional<WitnessedTransaction> run(
         return store.readWrite(txn -> {
             String tableName = configuration.tableConfiguration().tableName();
             txn.write(tableName, ImmutableWorkloadCell.of(taskIndex, COLUMN), 1);
-            txn.delete(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN));
             txn.write(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex), 0);
-            txn.delete(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex - 1));
+            if (taskIndex > 0) {
+                txn.delete(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN));
+                txn.delete(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex - 1));
+            }
         });
     }
+
+    public static InvariantReporter<List<MultiCellViolation>> getSummaryLogInvariantReporter(
+            TransientRowsWorkflowConfiguration configuration) {
+        return ImmutableInvariantReporter.<List<MultiCellViolation>>builder()
+                .invariant(createSummaryRowInvariant(configuration))
+                .consumer(violations -> {
+                    if (!violations.isEmpty()) {
+                        log.error(
+                                "Detected rows which did not agree with state in a summary index: {}",
+                                SafeArg.of("violations", violations));
+                    }
+                })
+                .build();
+    }
+
+    private static Invariant<List<MultiCellViolation>> createSummaryRowInvariant(
+            TransientRowsWorkflowConfiguration configuration) {
+        return (workflowHistory, notifier) -> {
+            List<MultiCellViolation> violations = new ArrayList<>();
+            ReadableTransactionStore store = workflowHistory.transactionStore();
+
+            String tableName = configuration.tableConfiguration().tableName();
+            Set<Integer> taskIndices =
+                    IntStream.range(0, configuration.iterationCount()).boxed().collect(Collectors.toSet());
+            taskIndices.forEach(index -> checkSummaryConsistencyForIndex(violations, store, tableName, index));
+
+            notifier.accept(violations);
+        };
+    }
+
+    private static void checkSummaryConsistencyForIndex(
+            List<MultiCellViolation> violations, ReadableTransactionStore store, String tableName, Integer index) {
+        WorkloadCell primaryCell = ImmutableWorkloadCell.of(index, COLUMN);
+        Optional<Integer> valueFromPrimaryRow = store.get(tableName, primaryCell);
+        WorkloadCell summaryCell = ImmutableWorkloadCell.of(SUMMARY_ROW, index);
+        Optional<Integer> valueFromSummaryRow = store.get(tableName, summaryCell);
+        if (valueFromSummaryRow.isPresent() ^ valueFromPrimaryRow.isPresent()) {
+            violations.add(MultiCellViolation.builder()
+                    .putViolatingCellValues(TableAndWorkloadCell.of(tableName, primaryCell), valueFromPrimaryRow)
+                    .putViolatingCellValues(TableAndWorkloadCell.of(tableName, summaryCell), valueFromSummaryRow)
+                    .build());
+        }
+    }
 }ueu(5a1845eed26712cd2eeb8775b1d0a4dd30f35ead}(sha(5a1845eed26712cd2eeb8775b1d0a4dd30f35eadnode_idEC_kwDOAjP5fdoAKDVhMTg0NWVlZDI2NzEyY2QyZWViODc3NWIxZDBhNGRkMzBmMzVlYWQcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-02-22T14:14:01Zu	committer}(j GitHubj noreply@github.comj 2023-02-22T14:14:01Zumessage2Workload service transaction store atlasdb (#6445)tree}(j (78e24510e593bb103a7399e8546a1b4b4f41e45eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/78e24510e593bb103a7399e8546a1b4b4f41e45euj
 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJj9iMpCRBK7hj4Ov3rIwAAia0IACbSWjHA/nuedRW5+saeyjHX
prSbF+0bzI9uHM0oTsxqUG+yaVBG5goZZiK7ISl0oTFVN4gllP0xti9NONVMeNMF
Y86im5pPt9+4qqw25cmW06HmZqut2wxb6gwq+7kISXaYPEwanKhCg/tueQf76YuM
hm0s/OaJFI17ZB1BmP/kx8Gp7LwUb3D8NCh2RbXXWq2mKr38/FNK20qbrjbQVkmj
nVOnAi653mAs+YS6cqd/g+5ls4HKmGfqVMqHhwxtAVEcPR4oOEcA3i2headaPPTw
+lRG9kchntvbfiNxMdIk2Z2iGDbI7T14qJBXwGUD7v6gkP0KcCo1c8CR/u6yBKM=
=yU9i
-----END PGP SIGNATURE-----
payloadX  tree 78e24510e593bb103a7399e8546a1b4b4f41e45e
parent 3c42bc81a8b18d1834308a92db97e69111ec1663
author Sam-Kramer <sam.c.kramer@gmail.com> 1677075241 +0000
committer GitHub <noreply@github.com> 1677075241 +0000

Workload service transaction store atlasdb (#6445)

 uuj
 ^https://api.github.com/repos/palantir/atlasdb/commits/5a1845eed26712cd2eeb8775b1d0a4dd30f35eadhtml_urlShttps://github.com/palantir/atlasdb/commit/5a1845eed26712cd2eeb8775b1d0a4dd30f35eadcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j
 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j  web-flowj" J/j MDQ6VXNlcjE5ODY0NDQ3j$ 4https://avatars.githubusercontent.com/u/19864447?v=4j& h5j
 %https://api.github.com/users/web-flowj https://github.com/web-flowj) /https://api.github.com/users/web-flow/followersj+ <https://api.github.com/users/web-flow/following{/other_user}j- 5https://api.github.com/users/web-flow/gists{/gist_id}j/ <https://api.github.com/users/web-flow/starred{/owner}{/repo}j1 3https://api.github.com/users/web-flow/subscriptionsj3 *https://api.github.com/users/web-flow/orgsj5 +https://api.github.com/users/web-flow/reposj7 6https://api.github.com/users/web-flow/events{/privacy}j9 5https://api.github.com/users/web-flow/received_eventsj; Userj= uparents]}(j (3c42bc81a8b18d1834308a92db97e69111ec1663j
 ^https://api.github.com/repos/palantir/atlasdb/commits/3c42bc81a8b18d1834308a92db97e69111ec1663j Shttps://github.com/palantir/atlasdb/commit/3c42bc81a8b18d1834308a92db97e69111ec1663uastats}(totalMl	additionsMg	deletionsKufiles](}(j (a61cb1451d85370ec0e3872f62c65d9aa9de5097filenamecatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStore.javastatusmodifiedjW KjX KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.java?ref=5a1845eed26712cd2eeb8775b1d0a4dd30f35eadpatchX  @@ -29,10 +29,11 @@ public interface TransactionStore {
      * Perform a read for a given row and return a cell if it exists.
      * Ideally this endpoint is only used for verification purposes, as it does not return a witnessed transaction.
      *
-     * @param cell Workload cell you wish to fetch
-     * @return The corresponding workload cell, if any exists.
+     * @param table Table to read from
+     * @param cell Cell to read from
+     * @return The value of the cell for a given table.
      */
-    Optional<Integer> get(WorkloadCell cell);
+    Optional<Integer> get(String table, WorkloadCell cell);
 
     /**
      * Performs a list of transaction actions in order, and returns the transaction executed if it committedu}(j (3bd49661e70b87286ba38152d181bec2a3de5d80j] patlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/DeleteTransactionAction.javaj_ modifiedjW KjX Kja Kjb https://github.com/palantir/atlasdb/blob/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javajd https://github.com/palantir/atlasdb/raw/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.java?ref=5a1845eed26712cd2eeb8775b1d0a4dd30f35eadjh X  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
+import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import org.immutables.value.Value;
@@ -24,11 +25,15 @@
 public interface DeleteTransactionAction extends TransactionAction {
 
     default WitnessedDeleteTransactionAction witness() {
-        return ImmutableWitnessedDeleteTransactionAction.of(cell());
+        return ImmutableWitnessedDeleteTransactionAction.of(table(), cell());
     }
 
     @Override
     default <T> T accept(TransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
+
+    static DeleteTransactionAction of(String table, WorkloadCell cell) {
+        return ImmutableDeleteTransactionAction.of(table, cell);
+    }
 }u}(j (c0ff0611ee15ce841cb508124e35b5b83caf77d7j] natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ReadTransactionAction.javaj_ modifiedjW KjX Kja Kjb https://github.com/palantir/atlasdb/blob/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javajd https://github.com/palantir/atlasdb/raw/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.java?ref=5a1845eed26712cd2eeb8775b1d0a4dd30f35eadjh X  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
+import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import java.util.Optional;
@@ -25,11 +26,15 @@
 public interface ReadTransactionAction extends TransactionAction {
 
     default WitnessedReadTransactionAction witness(Optional<Integer> value) {
-        return ImmutableWitnessedReadTransactionAction.of(cell(), value);
+        return ImmutableWitnessedReadTransactionAction.of(table(), cell(), value);
     }
 
     @Override
     default <T> T accept(TransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
+
+    static ReadTransactionAction of(String table, WorkloadCell workloadCell) {
+        return ImmutableReadTransactionAction.of(table, workloadCell);
+    }
 }u}(j (54d5d701f5aa99fcb88cceb476aa934dbf7c0727j] jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionAction.javaj_ modifiedjW KjX K ja Kjb https://github.com/palantir/atlasdb/blob/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javajd https://github.com/palantir/atlasdb/raw/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.java?ref=5a1845eed26712cd2eeb8775b1d0a4dd30f35eadjh @@ -21,6 +21,10 @@
 
 public interface TransactionAction {
 
+    /** Table to apply transaction to. */
+    @Value.Parameter
+    String table();
+
     /** Cell (Key, Column) to apply the action to. */
     @Value.Parameter
     WorkloadCell cell();u}(j (62d581dfef3d567aa32abc5da5108439f0b84808j] oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/WriteTransactionAction.javaj_ modifiedjW K	jX K ja K	jb https://github.com/palantir/atlasdb/blob/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javajd https://github.com/palantir/atlasdb/raw/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.java?ref=5a1845eed26712cd2eeb8775b1d0a4dd30f35eadjh X  @@ -24,6 +24,10 @@
 @Value.Immutable
 public interface WriteTransactionAction extends TransactionAction {
 
+    @Override
+    @Value.Parameter
+    String table();
+
     @Override
     @Value.Parameter
     WorkloadCell cell();
@@ -41,8 +45,13 @@ default <T> T accept(TransactionActionVisitor<T> visitor) {
 
     default WitnessedWriteTransactionAction witness() {
         return ImmutableWitnessedWriteTransactionAction.builder()
+                .table(table())
                 .cell(cell())
                 .value(value())
                 .build();
     }
+
+    static WriteTransactionAction of(String table, WorkloadCell cell, Integer value) {
+        return ImmutableWriteTransactionAction.of(table, cell, value);
+    }
 }u}(j (e6c4dc4d9b3ad93755335cee582e67faeeaaa372j] atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedDeleteTransactionAction.javaj_ modifiedjW KjX K ja Kjb https://github.com/palantir/atlasdb/blob/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javajd https://github.com/palantir/atlasdb/raw/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.java?ref=5a1845eed26712cd2eeb8775b1d0a4dd30f35eadjh Xa  @@ -16,12 +16,18 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
+import com.palantir.atlasdb.workload.store.WorkloadCell;
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
 public interface WitnessedDeleteTransactionAction extends WitnessedTransactionAction {
+
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
+
+    static WitnessedDeleteTransactionAction of(String table, WorkloadCell cell) {
+        return ImmutableWitnessedDeleteTransactionAction.of(table, cell);
+    }
 }u}(j (b677db617ab276daaecfeeb894a56f50b5b1101cj] atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedReadTransactionAction.javaj_ modifiedjW KjX K ja Kjb https://github.com/palantir/atlasdb/blob/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javajd https://github.com/palantir/atlasdb/raw/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.java?ref=5a1845eed26712cd2eeb8775b1d0a4dd30f35eadjh X  @@ -23,6 +23,10 @@
 @Value.Immutable(builder = false)
 public interface WitnessedReadTransactionAction extends WitnessedTransactionAction {
 
+    @Override
+    @Value.Parameter
+    String table();
+
     @Override
     @Value.Parameter
     WorkloadCell cell();
@@ -35,4 +39,8 @@ public interface WitnessedReadTransactionAction extends WitnessedTransactionActi
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
+
+    static WitnessedReadTransactionAction of(String table, WorkloadCell cell, Optional<Integer> value) {
+        return ImmutableWitnessedReadTransactionAction.of(table, cell, value);
+    }
 }u}(j (3fba4c9b7f76d429f19c5a8b4ebb5fda5d158855j] }atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionAction.javaj_ modifiedjW KjX K ja Kjb https://github.com/palantir/atlasdb/blob/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javajd https://github.com/palantir/atlasdb/raw/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.java?ref=5a1845eed26712cd2eeb8775b1d0a4dd30f35eadjh X  @@ -21,6 +21,10 @@
 
 public interface WitnessedTransactionAction {
 
+    /** Table action was applied to. */
+    @Value.Parameter
+    String table();
+
     /** Cell (Key, Column) the action applied to. */
     @Value.Parameter
     WorkloadCell cell();u}(j (44dff33558850b4861ebbb4ab161e2dadfaf5816j] atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedWriteTransactionAction.javaj_ modifiedjW KjX K ja Kjb https://github.com/palantir/atlasdb/blob/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javajd https://github.com/palantir/atlasdb/raw/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.java?ref=5a1845eed26712cd2eeb8775b1d0a4dd30f35eadjh X  @@ -22,6 +22,10 @@
 @Value.Immutable
 public interface WitnessedWriteTransactionAction extends WitnessedTransactionAction {
 
+    @Override
+    @Value.Parameter
+    String table();
+
     @Override
     @Value.Parameter
     WorkloadCell cell();
@@ -36,4 +40,8 @@ public interface WitnessedWriteTransactionAction extends WitnessedTransactionAct
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
+
+    static WitnessedWriteTransactionAction of(String table, WorkloadCell cell, Integer value) {
+        return ImmutableWitnessedWriteTransactionAction.of(table, cell, value);
+    }
 }u}(j (d11da9dec5c912ee8fb5c9865c9d1c8c393ede58j] $atlasdb-workload-server/build.gradlej_ addedjW KjX K ja Kjb xhttps://github.com/palantir/atlasdb/blob/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server%2Fbuild.gradlejd whttps://github.com/palantir/atlasdb/raw/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server%2Fbuild.gradlejf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=5a1845eed26712cd2eeb8775b1d0a4dd30f35eadjh X  @@ -0,0 +1,20 @@
+apply from: "../gradle/shared.gradle"
+
+dependencies {
+    implementation project(':atlasdb-workload-server-api')
+    implementation project(':atlasdb-api')
+    implementation project(':atlasdb-client')
+    implementation project(':atlasdb-config')
+
+    implementation 'com.fasterxml.jackson.core:jackson-annotations'
+    implementation 'com.fasterxml.jackson.core:jackson-core'
+    implementation 'com.fasterxml.jackson.core:jackson-databind'
+    implementation 'com.palantir.safe-logging:preconditions'
+    implementation 'com.palantir.safe-logging:safe-logging'
+    implementation 'one.util:streamex'
+
+    testImplementation 'org.mockito:mockito-core'
+
+    annotationProcessor 'org.immutables:value'
+    compileOnly 'org.immutables:value::annotations'
+}u}(j (48cdccfbf9471342b8dd74811709c31e229ccaa4j] fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj_ addedjW KjX K ja Kjb https://github.com/palantir/atlasdb/blob/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javajd https://github.com/palantir/atlasdb/raw/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=5a1845eed26712cd2eeb8775b1d0a4dd30f35eadjh X  @@ -0,0 +1,162 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
+import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.atomic.AtomicReference;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import one.util.streamex.EntryStream;
+
+public final class AtlasDbTransactionStore implements TransactionStore {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(AtlasDbTransactionStore.class);
+    private final TransactionManager transactionManager;
+
+    private final Map<String, TableReference> tables;
+
+    private AtlasDbTransactionStore(TransactionManager transactionManager, Map<String, TableReference> tables) {
+        this.transactionManager = transactionManager;
+        this.tables = tables;
+    }
+
+    @Override
+    public Optional<Integer> get(String table, WorkloadCell cell) {
+        Cell atlasCell = AtlasDbUtils.toAtlasCell(cell);
+        TableReference tableReference = getTableReferenceOrThrow(table);
+        return transactionManager.runTaskWithRetry(task -> {
+            Map<Cell, byte[]> values = task.get(tableReference, Set.of(atlasCell));
+            return Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
+        });
+    }
+
+    @Override
+    public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
+        AtomicReference<Long> startTimestampReference = new AtomicReference<>();
+        AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
+        try {
+            transactionManager.runTaskWithRetry(txn -> {
+                AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
+                startTimestampReference.set(txn.getTimestamp());
+                witnessedActionsReference.set(actions.stream()
+                        .sequential()
+                        .map(action -> action.accept(visitor))
+                        .collect(Collectors.toList()));
+                return null;
+            });
+
+            TransactionStatus status =
+                    transactionManager.getTransactionService().getV2(startTimestampReference.get());
+
+            Optional<Long> commitTimestamp = TransactionStatuses.getCommitTimestamp(status);
+
+            return Optional.of(ImmutableWitnessedTransaction.builder()
+                    .startTimestamp(startTimestampReference.get())
+                    .commitTimestamp(commitTimestamp)
+                    .actions(witnessedActionsReference.get())
+                    .build());
+        } catch (SafeIllegalArgumentException e) {
+            throw e;
+        } catch (Exception e) {
+            // TODO: Need to eventually handle PuE exceptions, as they could've succeeded in committing.
+            log.info("Failed to record transaction due to an exception", e);
+            return Optional.empty();
+        }
+    }
+
+    private TableReference getTableReferenceOrThrow(TransactionAction action) {
+        return getTableReferenceOrThrow(action.table());
+    }
+
+    private TableReference getTableReferenceOrThrow(String table) {
+        return Optional.ofNullable(tables.get(table))
+                .orElseThrow(() -> new SafeIllegalArgumentException(
+                        "Transaction action has unknown table.",
+                        SafeArg.of("readTransactionTableName", table),
+                        SafeArg.of("availableTables", tables)));
+    }
+
+    private class AtlasDbTransactionActionVisitor implements TransactionActionVisitor<WitnessedTransactionAction> {
+
+        private final Transaction transaction;
+
+        public AtlasDbTransactionActionVisitor(Transaction transaction) {
+            this.transaction = transaction;
+        }
+
+        @Override
+        public WitnessedTransactionAction visit(ReadTransactionAction readTransactionAction) {
+            Cell cell = AtlasDbUtils.toAtlasCell(readTransactionAction.cell());
+            TableReference tableReference = getTableReferenceOrThrow(readTransactionAction);
+            Map<Cell, byte[]> cells =
+                    transaction.get(tableReference, Set.of(AtlasDbUtils.toAtlasCell(readTransactionAction.cell())));
+            Optional<Integer> value = Optional.ofNullable(cells.get(cell)).map(Ints::fromByteArray);
+            return readTransactionAction.witness(value);
+        }
+
+        @Override
+        public WitnessedTransactionAction visit(WriteTransactionAction writeTransactionAction) {
+            TableReference tableReference = getTableReferenceOrThrow(writeTransactionAction);
+            transaction.put(
+                    tableReference,
+                    Map.of(
+                            AtlasDbUtils.toAtlasCell(writeTransactionAction.cell()),
+                            Ints.toByteArray(writeTransactionAction.value())));
+            return writeTransactionAction.witness();
+        }
+
+        @Override
+        public WitnessedTransactionAction visit(DeleteTransactionAction deleteTransactionAction) {
+            TableReference tableReference = getTableReferenceOrThrow(deleteTransactionAction);
+            transaction.delete(tableReference, Set.of(AtlasDbUtils.toAtlasCell(deleteTransactionAction.cell())));
+            return deleteTransactionAction.witness();
+        }
+    }
+
+    public static AtlasDbTransactionStore create(
+            TransactionManager transactionManager, Map<TableReference, byte[]> tables) {
+        transactionManager.getKeyValueService().createTables(tables);
+        Map<String, TableReference> tableMapping = EntryStream.of(tables)
+                .keys()
+                .mapToEntry(TableReference::getTableName, Function.identity())
+                .toMap();
+        return new AtlasDbTransactionStore(transactionManager, tableMapping);
+    }
+}u}(j (ad8416d0743b9f5983f668d3db1ef9529527a504j] katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javaj_ addedjW K*jX K ja K*jb https://github.com/palantir/atlasdb/blob/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javajd https://github.com/palantir/atlasdb/raw/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=5a1845eed26712cd2eeb8775b1d0a4dd30f35eadjh X  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+
+public enum WitnessToActionVisitor implements WitnessedTransactionActionVisitor<TransactionAction> {
+    INSTANCE;
+
+    @Override
+    public ReadTransactionAction visit(WitnessedReadTransactionAction readTransactionAction) {
+        return ImmutableReadTransactionAction.of(readTransactionAction.table(), readTransactionAction.cell());
+    }
+
+    @Override
+    public WriteTransactionAction visit(WitnessedWriteTransactionAction writeTransactionAction) {
+        return ImmutableWriteTransactionAction.of(
+                writeTransactionAction.table(), writeTransactionAction.cell(), writeTransactionAction.value());
+    }
+
+    @Override
+    public DeleteTransactionAction visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+        return ImmutableDeleteTransactionAction.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
+    }
+}u}(j (94a22213ba88f027c48e45b3f86cb7ffa7df963fj] Zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/AtlasDbUtils.javaj_ addedjW KGjX K ja KGjb https://github.com/palantir/atlasdb/blob/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javajd https://github.com/palantir/atlasdb/raw/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.java?ref=5a1845eed26712cd2eeb8775b1d0a4dd30f35eadjh X
  @@ -0,0 +1,71 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.util;
+
+import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.AtlasDbConstants;
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.NameMetadataDescription;
+import com.palantir.atlasdb.table.description.TableMetadata;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+
+public final class AtlasDbUtils {
+
+    private AtlasDbUtils() {}
+
+    public static Cell toAtlasCell(WorkloadCell cell) {
+        return Cell.create(Ints.toByteArray(cell.key()), Ints.toByteArray(cell.column()));
+    }
+
+    public static byte[] tableMetadata(ConflictHandler conflictHandler) {
+        return new TableMetadata.Builder()
+                .rowMetadata(new NameMetadataDescription())
+                .columns(new ColumnMetadataDescription())
+                .conflictHandler(conflictHandler)
+                .cachePriority(TableMetadataPersistence.CachePriority.WARM)
+                .rangeScanAllowed(true)
+                .explicitCompressionBlockSizeKB(AtlasDbConstants.DEFAULT_TABLE_COMPRESSION_BLOCK_SIZE_KB)
+                .negativeLookups(true)
+                .sweepStrategy(TableMetadataPersistence.SweepStrategy.THOROUGH)
+                .appendHeavyAndReadLight(false)
+                .nameLogSafety(TableMetadataPersistence.LogSafety.SAFE)
+                .build()
+                .persistToBytes();
+    }
+
+    public static byte[] indexMetadata(ConflictHandler baseTableConflictHandler) {
+        ConflictHandler conflictHandler = baseTableConflictHandler.checkReadWriteConflicts()
+                ? ConflictHandler.SERIALIZABLE_INDEX
+                : ConflictHandler.IGNORE_ALL;
+        return new TableMetadata.Builder()
+                .rowMetadata(new NameMetadataDescription())
+                .columns(new ColumnMetadataDescription())
+                .conflictHandler(conflictHandler)
+                .cachePriority(TableMetadataPersistence.CachePriority.WARM)
+                .rangeScanAllowed(true)
+                .explicitCompressionBlockSizeKB(AtlasDbConstants.DEFAULT_TABLE_COMPRESSION_BLOCK_SIZE_KB)
+                .negativeLookups(true)
+                .sweepStrategy(TableMetadataPersistence.SweepStrategy.THOROUGH)
+                .appendHeavyAndReadLight(false)
+                .nameLogSafety(TableMetadataPersistence.LogSafety.SAFE)
+                .build()
+                .persistToBytes();
+    }
+}u}(j (bb806a10f2718e20c843e1fcc9e9e0bffbfd51f2j] jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj_ addedjW KjX K ja Kjb https://github.com/palantir/atlasdb/blob/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java      jd https://github.com/palantir/atlasdb/raw/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=5a1845eed26712cd2eeb8775b1d0a4dd30f35eadjh X  @@ -0,0 +1,157 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.KeyValueService;
+import com.palantir.atlasdb.keyvalue.api.Namespace;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.junit.Before;
+import org.junit.Test;
+
+public final class AtlasDbTransactionStoreTest {
+
+    private static final String TABLE = "foo";
+    private static final String INDEX_TABLE = TABLE + "_index";
+    private static final TableReference TABLE_REFERENCE = TableReference.create(Namespace.DEFAULT_NAMESPACE, TABLE);
+    private static final TableReference INDEX_REFERENCE =
+            TableReference.create(TABLE_REFERENCE.getNamespace(), INDEX_TABLE);
+
+    private static final WorkloadCell WORKLOAD_CELL_ONE =
+            ImmutableWorkloadCell.builder().key(50).column(10).build();
+    private static final WorkloadCell WORKLOAD_CELL_TWO =
+            ImmutableWorkloadCell.builder().key(1257).column(521).build();
+    private static final WorkloadCell WORKLOAD_CELL_THREE =
+            ImmutableWorkloadCell.builder().key(567).column(405234).build();
+
+    private static final Integer VALUE_ONE = 100;
+
+    private TransactionManager manager;
+
+    private AtlasDbTransactionStore store;
+
+    @Before
+    public void before() {
+        manager = TransactionManagers.createInMemory(Set.of());
+        store = AtlasDbTransactionStore.create(
+                manager,
+                Map.of(
+                        TABLE_REFERENCE,
+                        AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
+                        INDEX_REFERENCE,
+                        AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE)));
+    }
+
+    @Test
+    public void createsTables() {
+        assertThat(manager.getKeyValueService().getAllTableNames()).contains(TABLE_REFERENCE, INDEX_REFERENCE);
+    }
+
+    @Test
+    public void canWriteDataToStore() {
+        Optional<WitnessedTransaction> witnessedTransactionPrimaryTable =
+                store.readWrite(List.of(WriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE)));
+        Optional<WitnessedTransaction> witnessedTransactionIndexTable =
+                store.readWrite(List.of(WriteTransactionAction.of(INDEX_TABLE, WORKLOAD_CELL_TWO, VALUE_ONE)));
+        assertThat(witnessedTransactionPrimaryTable).isPresent();
+        assertThat(witnessedTransactionIndexTable).isPresent();
+        assertThat(store.get(TABLE, WORKLOAD_CELL_ONE)).contains(VALUE_ONE);
+        assertThat(store.get(INDEX_TABLE, WORKLOAD_CELL_TWO)).contains(VALUE_ONE);
+    }
+
+    @Test
+    public void witnessedTransactionMaintainsOrder() {
+        List<WitnessedTransactionAction> actions = List.of(
+                WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, 100),
+                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, Optional.of(100)),
+                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL_THREE, Optional.empty()),
+                WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, 24),
+                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, Optional.of(24)));
+        Optional<WitnessedTransaction> maybeTransaction = store.readWrite(actions.stream()
+                .map(action -> action.accept(WitnessToActionVisitor.INSTANCE))
+                .collect(Collectors.toList()));
+        assertThat(maybeTransaction).isPresent().hasValueSatisfying(txn -> {
+            assertThat(txn.actions()).containsExactlyElementsOf(actions);
+            assertThat(txn.commitTimestamp()).isNotEmpty();
+        });
+    }
+
+    @Test
+    public void readWriteHandlesAllTransactionTypes() {
+        store.readWrite(List.of(WriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE)));
+        assertThat(store.readWrite(List.of(ReadTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))))
+                .isPresent()
+                .map(WitnessedTransaction::actions)
+                .map(Iterables::getOnlyElement)
+                .map(WitnessedReadTransactionAction.class::cast)
+                .map(WitnessedReadTransactionAction::value)
+                .contains(Optional.of(VALUE_ONE));
+        store.readWrite(List.of(DeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE)));
+        assertThat(store.get(TABLE, WORKLOAD_CELL_ONE)).isEmpty();
+    }
+
+    @Test
+    public void readWriteThrowsWhenTableDoesNotExist() {
+        assertThatThrownBy(() -> store.readWrite(List.of(ReadTransactionAction.of("chocolate", WORKLOAD_CELL_ONE))))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Transaction action has unknown table.");
+    }
+
+    @Test
+    public void readWriteReturnsEmptyWhenExceptionThrown() {
+        TransactionManager transactionManager = mock(TransactionManager.class);
+        KeyValueService keyValueService = mock(KeyValueService.class);
+        when(transactionManager.getKeyValueService()).thenReturn(keyValueService);
+        when(transactionManager.runTaskWithRetry(any())).thenThrow(new RuntimeException());
+        AtlasDbTransactionStore transactionStore = AtlasDbTransactionStore.create(
+                transactionManager, Map.of(TABLE_REFERENCE, AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
+        assertThat(transactionStore.readWrite(List.of(ReadTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))))
+                .isEmpty();
+    }
+
+    @Test
+    public void readWriteHandlesReadOnlyTransaction() {
+        Optional<WitnessedTransaction> witnessedTransaction =
+                store.readWrite(List.of(ReadTransactionAction.of(TABLE, WORKLOAD_CELL_ONE)));
+        assertThat(witnessedTransaction).isPresent();
+        assertThat(witnessedTransaction.get().commitTimestamp()).isEmpty();
+    }
+}u}(j (39182042109aa67130bcfe8f623f893918091d21j] oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitorTest.javaj_ addedjW K=jX K ja K=jb https://github.com/palantir/atlasdb/blob/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.javajd https://github.com/palantir/atlasdb/raw/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.java?ref=5a1845eed26712cd2eeb8775b1d0a4dd30f35eadjh X)  @@ -0,0 +1,61 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class WitnessToActionVisitorTest {
+
+    private static final String TABLE = "table";
+    private static final WorkloadCell WORKLOAD_CELL = ImmutableWorkloadCell.of(523, 2999);
+    private static final Integer VALUE = 912;
+
+    @Test
+    public void convertsReadsCorrectly() {
+        WitnessedReadTransactionAction witnessedRead =
+                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL, Optional.of(VALUE));
+        ReadTransactionAction read = WitnessToActionVisitor.INSTANCE.visit(witnessedRead);
+        assertThat(read.table()).isEqualTo(witnessedRead.table());
+        assertThat(read.cell()).isEqualTo(witnessedRead.cell());
+    }
+
+    @Test
+    public void convertsWritesCorrectly() {
+        WitnessedWriteTransactionAction witnessedWrite =
+                WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL, VALUE);
+        WriteTransactionAction write = WitnessToActionVisitor.INSTANCE.visit(witnessedWrite);
+        assertThat(write.table()).isEqualTo(witnessedWrite.table());
+        assertThat(write.cell()).isEqualTo(witnessedWrite.cell());
+        assertThat(write.value()).isEqualTo(witnessedWrite.value());
+    }
+
+    @Test
+    public void convertsDeletesCorrectly() {
+        WitnessedDeleteTransactionAction witnessedDelete = WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL);
+        DeleteTransactionAction delete = WitnessToActionVisitor.INSTANCE.visit(witnessedDelete);
+        assertThat(delete.table()).isEqualTo(witnessedDelete.table());
+        assertThat(delete.cell()).isEqualTo(witnessedDelete.cell());
+    }
+}u}(j (8db656dee9725257a41e9732733bb4a82b172515j] ^atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/util/AtlasDbUtilsTest.javaj_ addedjW K.jX K ja K.jb https://github.com/palantir/atlasdb/blob/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtilsTest.javajd https://github.com/palantir/atlasdb/raw/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtilsTest.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtilsTest.java?ref=5a1845eed26712cd2eeb8775b1d0a4dd30f35eadjh X8	  @@ -0,0 +1,46 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.util;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.protobuf.InvalidProtocolBufferException;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import org.junit.Test;
+
+public class AtlasDbUtilsTest {
+    @Test
+    public void indexMetadataUsesTheCorrectConflictHandler() throws InvalidProtocolBufferException {
+        assertThat(TableMetadataPersistence.TableMetadata.parseFrom(
+                                AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE))
+                        .getConflictHandler())
+                .isEqualTo(TableMetadataPersistence.TableConflictHandler.SERIALIZABLE_INDEX);
+        assertThat(TableMetadataPersistence.TableMetadata.parseFrom(
+                                AtlasDbUtils.indexMetadata(ConflictHandler.RETRY_ON_WRITE_WRITE))
+                        .getConflictHandler())
+                .isEqualTo(TableMetadataPersistence.TableConflictHandler.IGNORE_ALL);
+        assertThat(TableMetadataPersistence.TableMetadata.parseFrom(
+                                AtlasDbUtils.indexMetadata(ConflictHandler.IGNORE_ALL))
+                        .getConflictHandler())
+                .isEqualTo(TableMetadataPersistence.TableConflictHandler.IGNORE_ALL);
+        assertThat(TableMetadataPersistence.TableMetadata.parseFrom(
+                                AtlasDbUtils.indexMetadata(ConflictHandler.RETRY_ON_VALUE_CHANGED))
+                        .getConflictHandler())
+                .isEqualTo(TableMetadataPersistence.TableConflictHandler.IGNORE_ALL);
+    }
+}u}(j (92c59ccaa1b381adf8c0b108e9e0df0100ef7adbj] settings.gradlej_ modifiedjW KjX K ja Kjb ahttps://github.com/palantir/atlasdb/blob/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/settings.gradlejd `https://github.com/palantir/atlasdb/raw/5a1845eed26712cd2eeb8775b1d0a4dd30f35ead/settings.gradlejf shttps://api.github.com/repos/palantir/atlasdb/contents/settings.gradle?ref=5a1845eed26712cd2eeb8775b1d0a4dd30f35eadjh X  @@ -29,6 +29,7 @@ include ":atlasdb-processors-tests"
 include ":atlasdb-remoting-api"
 include ":atlasdb-service"
 include ":atlasdb-tests-shared"
+include ":atlasdb-workload-server"
 include ":atlasdb-workload-server-api"
 include ":commons-annotations"
 include ":commons-api"ueu(88c1f4407b650e727f761c2b4dd3ccce1de50f0d}(sha(88c1f4407b650e727f761c2b4dd3ccce1de50f0dnode_idEC_kwDOAjP5fdoAKDg4YzFmNDQwN2I2NTBlNzI3Zjc2MWMyYjRkZDNjY2NlMWRlNTBmMGQcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-05-23T11:55:13Zu	committer}(j 
svc-changelogj svc-changelog@palantir.comj 2023-05-23T11:55:13ZumessageAdd generated changelog entriestree}(j (9608692e30fb2659a1830b9a048445691e70dd7durl`https://api.github.com/repos/palantir/atlasdb/git/trees/9608692e30fb2659a1830b9a048445691e70dd7duj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/88c1f4407b650e727f761c2b4dd3ccce1de50f0d
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmRsqaEJEHYaJX37fAFQAABVbgEAvu/8ZAGzcECeFdszKQrhl+Uq
E7FhlsN22yFx9vAs6JUBAM98gLs6K73KCoUSCAekHysvZ0vHY3uahdalDIyfIDIg
=Jgiu
-----END PGP SIGNATURE-----payloadX  tree 9608692e30fb2659a1830b9a048445691e70dd7d
parent 8e1dff718ba58d7d046ace2f52122169ef4bacbd
author svc-changelog <svc-changelog@palantir.com> 1684842913 +0000
committer svc-changelog <svc-changelog@palantir.com> 1684842913 +0000

Add generated changelog entriesuuj ^https://api.github.com/repos/palantir/atlasdb/commits/88c1f4407b650e727f761c2b4dd3ccce1de50f0dhtml_urlShttps://github.com/palantir/atlasdb/commit/88c1f4407b650e727f761c2b4dd3ccce1de50f0dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/88c1f4407b650e727f761c2b4dd3ccce1de50f0d/commentsj }(login
svc-changelogidJ#j MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj }(j 
svc-changelogj J#j MDQ6VXNlcjg0MDc3NjAzj 4https://avatars.githubusercontent.com/u/84077603?v=4j h5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelogj  4https://api.github.com/users/svc-changelog/followersj" Ahttps://api.github.com/users/svc-changelog/following{/other_user}j$ :https://api.github.com/users/svc-changelog/gists{/gist_id}j& Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j( 8https://api.github.com/users/svc-changelog/subscriptionsj* /https://api.github.com/users/svc-changelog/orgsj, 0https://api.github.com/users/svc-changelog/reposj. ;https://api.github.com/users/svc-changelog/events{/privacy}j0 :https://api.github.com/users/svc-changelog/received_eventsj2 Userj4 uparents]}(j (8e1dff718ba58d7d046ace2f52122169ef4bacbdj ^https://api.github.com/repos/palantir/atlasdb/commits/8e1dff718ba58d7d046ace2f52122169ef4bacbdj Shttps://github.com/palantir/atlasdb/commit/8e1dff718ba58d7d046ace2f52122169ef4bacbduastats}(totalK	additionsK	deletionsK ufiles]}(j (16fb8eee169fd963709ea4a7cfbd511308736f08filename$changelog/@unreleased/pr-6506.v2.ymlstatusaddedjN KjO K changesKblob_url|https://github.com/palantir/atlasdb/blob/88c1f4407b650e727f761c2b4dd3ccce1de50f0d/changelog%2F%40unreleased%2Fpr-6506.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/88c1f4407b650e727f761c2b4dd3ccce1de50f0d/changelog%2F%40unreleased%2Fpr-6506.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6506.v2.yml?ref=88c1f4407b650e727f761c2b4dd3ccce1de50f0dpatch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize TimestampMapping::leader to avoid stream overhead
+  links:
+  - https://github.com/palantir/atlasdb/pull/6506uau(fee7570bf9c8102feb1de4c43a71eaabd46b34b9}(sha(fee7570bf9c8102feb1de4c43a71eaabd46b34b9node_idEC_kwDOAjP5fdoAKGZlZTc1NzBiZjljODEwMmZlYjFkZTRjNDNhNzFlYWFiZDQ2YjM0Yjkcommit}(author}(nameMohammed Daudaliemailmdaudali@palantir.comdate2023-05-19T13:22:08Zu	committer}(jk Mohammed Daudalijm mdaudali@palantir.comjo 2023-05-19T13:22:08ZumessagePMerge remote-tracking branch 'origin/mdaudali/363649/rc' into mdaudali/363649/rctree}(jc (fb6c780c71656eaf75fba7d110e95d34fb23d092url`https://api.github.com/repos/palantir/atlasdb/git/trees/fb6c780c71656eaf75fba7d110e95d34fb23d092uj{ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fee7570bf9c8102feb1de4c43a71eaabd46b34b9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE85NpmxiQII63+jWv1DJ7K5YIya0FAmRneAAACgkQ1DJ7K5YI
ya2HMAgAhPJTQ38eKZ1KzzJPBKJKfIITzxf468lWQAY6Vo1B2Yfj7Up5gMJZWzeS
6cY9Ayw2Vou5qtjY9D5+OBdRoMKXAl2Uj1v80pWPhniWR4CkZDZNz/GMs+NEgyUU
hloDCvqWJTxsNBJ6jnc5dFLEo74v0GR5Ws4sWdUn24arKhbdPly2Ab6bS7MV/ft5
BtLgEIVSonbP9BNCgRWSG+vXcXl7swCTtKTyWXwRAtiB3fhcdlXA1iHt22h9/Ff6
LFO9pX53vBEvnJluKwhXIZOggW6luGqWuur8M/T28MTB0hTvnghc9Al5sEXp+T3X
QIds3AKZmGX0E2cBdvy8Kh4j7LEF3w==
=YhvS
-----END PGP SIGNATURE-----payloadXe  tree fb6c780c71656eaf75fba7d110e95d34fb23d092
parent ee5713848ae91bc2c7e1d8c403c2c4eb4c19b96e
parent 96264279ee6f9872a46c32a14f3e599f1fdc2702
author Mohammed Daudali <mdaudali@palantir.com> 1684502528 +0100
committer Mohammed Daudali <mdaudali@palantir.com> 1684502528 +0100

Merge remote-tracking branch 'origin/mdaudali/363649/rc' into mdaudali/363649/rc
uuj{ ^https://api.github.com/repos/palantir/atlasdb/commits/fee7570bf9c8102feb1de4c43a71eaabd46b34b9html_urlShttps://github.com/palantir/atlasdb/commit/fee7570bf9c8102feb1de4c43a71eaabd46b34b9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fee7570bf9c8102feb1de4c43a71eaabd46b34b9/commentsji }(loginmdaudaliidJ je MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5j{ %https://api.github.com/users/mdaudalij https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminujq }(j mdaudalij J je MDQ6VXNlcjE4MTI3NjQ=j 3https://avatars.githubusercontent.com/u/1812764?v=4j h5j{ %https://api.github.com/users/mdaudalij https://github.com/mdaudalij /https://api.github.com/users/mdaudali/followersj <https://api.github.com/users/mdaudali/following{/other_user}j 5https://api.github.com/users/mdaudali/gists{/gist_id}j <https://api.github.com/users/mdaudali/starred{/owner}{/repo}j 3https://api.github.com/users/mdaudali/subscriptionsj *https://api.github.com/users/mdaudali/orgsj +https://api.github.com/users/mdaudali/reposj 6https://api.github.com/users/mdaudali/events{/privacy}j 5https://api.github.com/users/mdaudali/received_eventsj Userj uparents](}(jc (ee5713848ae91bc2c7e1d8c403c2c4eb4c19b96ej{ ^https://api.github.com/repos/palantir/atlasdb/commits/ee5713848ae91bc2c7e1d8c403c2c4eb4c19b96ej Shttps://github.com/palantir/atlasdb/commit/ee5713848ae91bc2c7e1d8c403c2c4eb4c19b96eu}(jc (96264279ee6f9872a46c32a14f3e599f1fdc2702j{ ^https://api.github.com/repos/palantir/atlasdb/commits/96264279ee6f9872a46c32a14f3e599f1fdc2702j Shttps://github.com/palantir/atlasdb/commit/96264279ee6f9872a46c32a14f3e599f1fdc2702uestats}(totalK 	additionsK 	deletionsK ufiles]u(5f003e28cce4f46b2320cba6c28b178c41cbccf8}(sha(5f003e28cce4f46b2320cba6c28b178c41cbccf8node_idEC_kwDOAjP5fdoAKDVmMDAzZTI4Y2NlNGY0NmIyMzIwY2JhNmMyOGIxNzhjNDFjYmNjZjgcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-03-31T10:56:35Zu	committer}(j 
svc-changelogj svc-changelog@palantir.comj 2023-03-31T10:56:35ZumessageAdd generated changelog entriestree}(j (ec6310965b1b469fdc5eaec5756e3562f628bfa4url`https://api.github.com/repos/palantir/atlasdb/git/trees/ec6310965b1b469fdc5eaec5756e3562f628bfa4uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5f003e28cce4f46b2320cba6c28b178c41cbccf8
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQmvGMJEHYaJX37fAFQAAAhIwD+Lil7M9kyBIkCMt96usKfFB1e
5ZhEwZSgKpy6HzTyxlcA/iZFxJUVN1meCCird8MgyQaFCOu+wAVuDZGsptWoOxzf
=vrKS
-----END PGP SIGNATURE-----payloadX  tree ec6310965b1b469fdc5eaec5756e3562f628bfa4
parent c38dd0b2b656e3cdc3dad7d3ced8b41f7b638db7
author svc-changelog <svc-changelog@palantir.com> 1680260195 +0000
committer svc-changelog <svc-changelog@palantir.com> 1680260195 +0000

Add generated changelog entriesuuj ^https://api.github.com/repos/palantir/atlasdb/commits/5f003e28cce4f46b2320cba6c28b178c41cbccf8html_urlShttps://github.com/palantir/atlasdb/commit/5f003e28cce4f46b2320cba6c28b178c41cbccf8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5f003e28cce4f46b2320cba6c28b178c41cbccf8/commentsj }(login
svc-changelogidJ#j MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj }(j 
svc-changelogj J#j MDQ6VXNlcjg0MDc3NjAzj 4https://avatars.githubusercontent.com/u/84077603?v=4j  h5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelogj 4https://api.github.com/users/svc-changelog/followersj Ahttps://api.github.com/users/svc-changelog/following{/other_user}j :https://api.github.com/users/svc-changelog/gists{/gist_id}j	 Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j 8https://api.github.com/users/svc-changelog/subscriptionsj
 /https://api.github.com/users/svc-changelog/orgsj 0https://api.github.com/users/svc-changelog/reposj ;https://api.github.com/users/svc-changelog/events{/privacy}j :https://api.github.com/users/svc-changelog/received_eventsj Userj uparents]}(j (c38dd0b2b656e3cdc3dad7d3ced8b41f7b638db7j ^https://api.github.com/repos/palantir/atlasdb/commits/c38dd0b2b656e3cdc3dad7d3ced8b41f7b638db7j Shttps://github.com/palantir/atlasdb/commit/c38dd0b2b656e3cdc3dad7d3ced8b41f7b638db7uastats}(totalK	additionsK	deletionsK ufiles]}(j (61293f6afdf47957ce8e1341ba6758eda2ac5d57filename$changelog/@unreleased/pr-6494.v2.ymlstatusaddedj1 Kj2 K changesKblob_url|https://github.com/palantir/atlasdb/blob/5f003e28cce4f46b2320cba6c28b178c41cbccf8/changelog%2F%40unreleased%2Fpr-6494.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/5f003e28cce4f46b2320cba6c28b178c41cbccf8/changelog%2F%40unreleased%2Fpr-6494.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6494.v2.yml?ref=5f003e28cce4f46b2320cba6c28b178c41cbccf8patch@@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: Upgraded Postgres from 42.4.1 -> 42.4.3 to resolve a CVE.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6494uau(9033d59d8ca510dcfebc1f42a40e5ee1e6d48f4e}(sha(9033d59d8ca510dcfebc1f42a40e5ee1e6d48f4enode_idEC_kwDOAjP5fdoAKDkwMzNkNTlkOGNhNTEwZGNmZWJjMWY0MmE0MGU1ZWUxZTZkNDhmNGUcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-06-30T13:15:08Zu	committer}(jN 
svc-changelogjP svc-changelog@palantir.comjR 2023-06-30T13:15:08ZumessageAdd generated changelog entriestree}(jF (b7ecac429c60412805950c6783895d0a771fcb72url`https://api.github.com/repos/palantir/atlasdb/git/trees/b7ecac429c60412805950c6783895d0a771fcb72uj^ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9033d59d8ca510dcfebc1f42a40e5ee1e6d48f4e
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSe1VwJEHYaJX37fAFQAABIfAEAsUVo2hcQs87Q/JJ6a2wjTipc
5/69Euntgib7GpZ18tQBAOMS8eVykevcVBVgk5ENILGH3nHO40fDL03stZAfNHKs
=bN8m
-----END PGP SIGNATURE-----payloadX  tree b7ecac429c60412805950c6783895d0a771fcb72
parent 6b290a4fe35aa269f73545bb21d88e818deea65d
author svc-changelog <svc-changelog@palantir.com> 1688130908 +0000
committer svc-changelog <svc-changelog@palantir.com> 1688130908 +0000

Add generated changelog entriesuuj^ ^https://api.github.com/repos/palantir/atlasdb/commits/9033d59d8ca510dcfebc1f42a40e5ee1e6d48f4ehtml_urlShttps://github.com/palantir/atlasdb/commit/9033d59d8ca510dcfebc1f42a40e5ee1e6d48f4ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9033d59d8ca510dcfebc1f42a40e5ee1e6d48f4e/commentsjL }(login
svc-changelogidJ#jH MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j^ *https://api.github.com/users/svc-changelogjl  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujT }(jq 
svc-changelogjs J#jH MDQ6VXNlcjg0MDc3NjAzju 4https://avatars.githubusercontent.com/u/84077603?v=4jw h5j^ *https://api.github.com/users/svc-changelogjl  https://github.com/svc-changelogjz 4https://api.github.com/users/svc-changelog/followersj| Ahttps://api.github.com/users/svc-changelog/following{/other_user}j~ :https://api.github.com/users/svc-changelog/gists{/gist_id}j Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j 8https://api.github.com/users/svc-changelog/subscriptionsj /https://api.github.com/users/svc-changelog/orgsj 0https://api.github.com/users/svc-changelog/reposj ;https://api.github.com/users/svc-changelog/events{/privacy}j :https://api.github.com/users/svc-changelog/received_eventsj Userj uparents]}(jF (6b290a4fe35aa269f73545bb21d88e818deea65dj^ ^https://api.github.com/repos/palantir/atlasdb/commits/6b290a4fe35aa269f73545bb21d88e818deea65djl Shttps://github.com/palantir/atlasdb/commit/6b290a4fe35aa269f73545bb21d88e818deea65duastats}(totalK	additionsK	deletionsK ufiles]}(jF (bf394f216a79b7514789c9fbcff298de26735d54filename$changelog/@unreleased/pr-6651.v2.ymlstatusaddedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/9033d59d8ca510dcfebc1f42a40e5ee1e6d48f4e/changelog%2F%40unreleased%2Fpr-6651.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/9033d59d8ca510dcfebc1f42a40e5ee1e6d48f4e/changelog%2F%40unreleased%2Fpr-6651.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6651.v2.yml?ref=9033d59d8ca510dcfebc1f42a40e5ee1e6d48f4epatch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Pass optional metadata through TimeLock'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6651uau(89607990c78627a4dacd66d4ff65c0efc234b83c}(sha(89607990c78627a4dacd66d4ff65c0efc234b83cnode_idEC_kwDOAjP5fdoAKDg5NjA3OTkwYzc4NjI3YTRkYWNkNjZkNGZmNjVjMGVmYzIzNGI4M2Mcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-07-24T15:07:14Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-07-24T15:07:14Zumessage
Remove unusedtree}(j (7603189e6866a4b6bbe40d9e7e1c07ce6362f9faurl`https://api.github.com/repos/palantir/atlasdb/git/trees/7603189e6866a4b6bbe40d9e7e1c07ce6362f9fauj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/89607990c78627a4dacd66d4ff65c0efc234b83c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmS+k6IACgkQPlMHVIT1
yhoOiwf8DHXQjrTJeJUmxCgTQDlJIWGvtWXGQ72r3RY9osEbndCmcVEzeiKSsald
mHtdb7eFY2M6QwTza8CTLChbp0GSitjc0W2OBYnZyNiJCgczJcOyoEEpASlETW27
fHDLrBk++nq8VYI0L8idJ+75idonMrD0FxWlcLXx8mN4fwTHHXTTKROmLKTvLeT5
IDVuhQbTMSJMqEtAhsUwlyfbANbxsIH2twN0p46kF0ftrc6O01IUB5VzvonC8nB/
Paardg6iBiQSWSV7E+uNW4u5e5+jgujgcmXxP/eMk3+TLpUdFF98lrS9+OVgUZLF
2uYyzk3aPYnncy/jywBGDHm4a5g/dA==
=HmrG
-----END PGP SIGNATURE-----payloadtree 7603189e6866a4b6bbe40d9e7e1c07ce6362f9fa
parent 031cf862dff7fed53bbfb12f4609fd62b68769b2
author Ahmed Alouane <aalouane@palantir.com> 1690211234 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1690211234 +0100

Remove unused
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/89607990c78627a4dacd66d4ff65c0efc234b83chtml_urlShttps://github.com/palantir/atlasdb/commit/89607990c78627a4dacd66d4ff65c0efc234b83ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/89607990c78627a4dacd66d4ff65c0efc234b83c/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j (031cf862dff7fed53bbfb12f4609fd62b68769b2j ^https://api.github.com/repos/palantir/atlasdb/commits/031cf862dff7fed53bbfb12f4609fd62b68769b2j Shttps://github.com/palantir/atlasdb/commit/031cf862dff7fed53bbfb12f4609fd62b68769b2uastats}(totalKb	additionsK 	deletionsKbufiles]}(j (b5f796ab3477670b4547dbda5fd7b6989458a0fcfilenameIlock-impl/src/main/java/com/palantir/lock/logger/LockStateYamlWriter.javastatusremovedj K j  KbchangesKbblob_urlhttps://github.com/palantir/atlasdb/blob/031cf862dff7fed53bbfb12f4609fd62b68769b2/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockStateYamlWriter.javaraw_urlhttps://github.com/palantir/atlasdb/raw/031cf862dff7fed53bbfb12f4609fd62b68769b2/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockStateYamlWriter.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockStateYamlWriter.java?ref=031cf862dff7fed53bbfb12f4609fd62b68769b2patchX
  @@ -1,98 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.lock.logger;
-
-import com.palantir.lock.LockDescriptor;
-import java.io.Closeable;
-import java.io.File;
-import java.io.IOException;
-import java.io.Writer;
-import java.nio.charset.StandardCharsets;
-import java.nio.file.Files;
-import java.nio.file.StandardOpenOption;
-import org.yaml.snakeyaml.DumperOptions;
-import org.yaml.snakeyaml.Yaml;
-import org.yaml.snakeyaml.nodes.Tag;
-import org.yaml.snakeyaml.representer.Representer;
-
-/**
- * A simple wrapper for writing lock state as YAML to a file.
- */
-class LockStateYamlWriter implements Closeable {
-    private static final Yaml yaml = new Yaml(getRepresenter(), getDumperOptions());
-
-    private final Writer writer;
-
-    LockStateYamlWriter(Writer fileWriter) {
-        this.writer = fileWriter;
-    }
-
-    /**
-     * Creates a LockStateYamlWriter for the given file in append mode.
-     */
-    public static LockStateYamlWriter create(File file) throws IOException {
-        return new LockStateYamlWriter(Files.newBufferedWriter(
-                file.toPath(), StandardCharsets.UTF_8, StandardOpenOption.CREATE, StandardOpenOption.APPEND));
-    }
-
-    /**
-     * Write an object to the file as YAML.
-     */
-    public void dumpObject(Object data) {
-        yaml.dump(data, writer);
-    }
-
-    /**
-     * Write a string to the file as a YAML comment.
-     * The string must be a single line.
-     */
-    public void appendComment(String string) throws IOException {
-        writer.append("# ");
-        writer.append(string);
-        writer.append("\n");
-    }
-
-    private static Representer getRepresenter() {
-        Representer representer = new LockDescriptorAwareRepresenter();
-        representer.addClassTag(ImmutableSimpleTokenInfo.class, Tag.MAP);
-        representer.addClassTag(ImmutableSimpleLockRequest.class, Tag.MAP);
-        representer.addClassTag(ImmutableSanitizedLockRequestProgress.class, Tag.MAP);
-        representer.addClassTag(SimpleLockRequestsWithSameDescriptor.class, Tag.MAP);
-        representer.addClassTag(LockDescriptor.class, Tag.MAP);
-        return representer;
-    }
-
-    private static DumperOptions getDumperOptions() {
-        DumperOptions options = new DumperOptions();
-        options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
-        options.setIndent(4);
-        options.setAllowReadOnlyProperties(true);
-        options.setExplicitStart(true);
-        return options;
-    }
-
-    @Override
-    public void close() throws IOException {
-        writer.close();
-    }
-
-    private static class LockDescriptorAwareRepresenter extends Representer {
-        LockDescriptorAwareRepresenter() {
-            super();
-            this.representers.put(LockDescriptor.class, data -> representScalar(Tag.STR, data.toString()));
-        }
-    }
-}uau(69ef02d5a138f5b35e8bbf9b99608faa938874cf}(sha(69ef02d5a138f5b35e8bbf9b99608faa938874cfnode_idEC_kwDOAjP5fdoAKDY5ZWYwMmQ1YTEzOGY1YjM1ZThiYmY5Yjk5NjA4ZmFhOTM4ODc0Y2Ycommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-07-26T09:07:36Zu	committer}(j< GitHubj> noreply@github.comj@ 2023-07-26T09:07:36Zumessage%Excavator:  Format Java files (#6687)tree}(j4 (d217b5075d2427ddb6ab8419ede87e06310e1d07url`https://api.github.com/repos/palantir/atlasdb/git/trees/d217b5075d2427ddb6ab8419ede87e06310e1d07ujL bhttps://api.github.com/repos/palantir/atlasdb/git/commits/69ef02d5a138f5b35e8bbf9b99608faa938874cf
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkwOJYCRBK7hj4Ov3rIwAAB5MIACVSxOIBruIceLFz/nj/TNuP
b3H/VR07WcYTls81GHpmKkySwvO66suZnugQEFPAzZpUjA6+ew5JaUK+LQCwVAO0
btGbx3An/kQ9Kn5YN8tgjEbUxCGQByG+XZueqCGy6LpB3PTkaJ+0FBku4eUc9J4/
LZBicptdXKcOkEITzSf3QgfdlgUpGxIohbeV4pg3PrJYI3HycLT/2YpABey/6Nh5
UosDtDDnm/h4Gp9qMV8NFChr3lewV81ATmzij1NLhPrOJzbXJZwL7de0UxSkS6Zk
WsJdVI/R1tgFZBswlAUTmaHW6fQb0+IqmXCPGoUKeuLIVrU+qTnhjqM+8rnbFsc=
=C2zI
-----END PGP SIGNATURE-----
payloadX  tree d217b5075d2427ddb6ab8419ede87e06310e1d07
parent 2d3302e04df9f15bf77f64cd5155fa3aa1d3e0ef
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1690362456 -0700
committer GitHub <noreply@github.com> 1690362456 +0000

Excavator:  Format Java files (#6687)

 uujL ^https://api.github.com/repos/palantir/atlasdb/commits/69ef02d5a138f5b35e8bbf9b99608faa938874cfhtml_urlShttps://github.com/palantir/atlasdb/commit/69ef02d5a138f5b35e8bbf9b99608faa938874cfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/69ef02d5a138f5b35e8bbf9b99608faa938874cf/commentsj: }(loginsvc-excavator-botidJj6 MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5jL .https://api.github.com/users/svc-excavator-botjZ $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminujB }(j_ web-flowja J/j6 MDQ6VXNlcjE5ODY0NDQ3jc 4https://avatars.githubusercontent.com/u/19864447?v=4je h5jL %https://api.github.com/users/web-flowjZ https://github.com/web-flowjh /https://api.github.com/users/web-flow/followersjj <https://api.github.com/users/web-flow/following{/other_user}jl 5https://api.github.com/users/web-flow/gists{/gist_id}jn <https://api.github.com/users/web-flow/starred{/owner}{/repo}jp 3https://api.github.com/users/web-flow/subscriptionsjr *https://api.github.com/users/web-flow/orgsjt +https://api.github.com/users/web-flow/reposjv 6https://api.github.com/users/web-flow/events{/privacy}jx 5https://api.github.com/users/web-flow/received_eventsjz Userj| uparents]}(j4 (2d3302e04df9f15bf77f64cd5155fa3aa1d3e0efjL ^https://api.github.com/repos/palantir/atlasdb/commits/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0efjZ Shttps://github.com/palantir/atlasdb/commit/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0efuastats}(totalK	additionsK	deletionsKufiles]}(j4 (f5acd046834792f42b2401b67305dfa6f3509572filenamebuild.gradlestatusmodifiedj Kj KchangesKblob_url^https://github.com/palantir/atlasdb/blob/69ef02d5a138f5b35e8bbf9b99608faa938874cf/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/69ef02d5a138f5b35e8bbf9b99608faa938874cf/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=69ef02d5a138f5b35e8bbf9b99608faa938874cfpatchXw  @@ -17,7 +17,7 @@ buildscript {
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.33.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.34.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.22.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
         classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.4'uau(7e9359cf72077244a3b2baee847b257577fb21b5}(sha(7e9359cf72077244a3b2baee847b257577fb21b5node_idEC_kwDOAjP5fdoAKDdlOTM1OWNmNzIwNzcyNDRhM2IyYmFlZTg0N2IyNTc1NzdmYjIxYjUcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-05-05T17:21:18Zu	committer}(j 
svc-changelogj svc-changelog@palantir.comj 2023-05-05T17:21:18ZumessageAdd generated changelog entriestree}(j (3b82dad780ee553e2c20525346c6c8af5e0e06daurl`https://api.github.com/repos/palantir/atlasdb/git/trees/3b82dad780ee553e2c20525346c6c8af5e0e06dauj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7e9359cf72077244a3b2baee847b257577fb21b5
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmRVOw4JEHYaJX37fAFQAAAuxgD8DJXb5naTCJrculN+RxqUaonQ
cUl/LvwZlRXz8FIyP38A/0UYw6EdnBojodZuB4+CCDp99ON86dFUR4YFxJx+xe50
=D36s
-----END PGP SIGNATURE-----payloadX  tree 3b82dad780ee553e2c20525346c6c8af5e0e06da
parent f28a1fb4318c3ec9c03d1ae1c48632d554a83626
author svc-changelog <svc-changelog@palantir.com> 1683307278 +0000
committer svc-changelog <svc-changelog@palantir.com> 1683307278 +0000

Add generated changelog entriesuuj ^https://api.github.com/repos/palantir/atlasdb/commits/7e9359cf72077244a3b2baee847b257577fb21b5html_urlShttps://github.com/palantir/atlasdb/commit/7e9359cf72077244a3b2baee847b257577fb21b5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7e9359cf72077244a3b2baee847b257577fb21b5/commentsj }(login
svc-changelogidJ#j MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj }(j 
svc-changelogj J#j MDQ6VXNlcjg0MDc3NjAzj 4https://avatars.githubusercontent.com/u/84077603?v=4j h5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelogj 4https://api.github.com/users/svc-changelog/followersj Ahttps://api.github.com/users/svc-changelog/following{/other_user}j :https://api.github.com/users/svc-changelog/gists{/gist_id}j Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j 8https://api.github.com/users/svc-changelog/subscriptionsj /https://api.github.com/users/svc-changelog/orgsj 0https://api.github.com/users/svc-changelog/reposj ;https://api.github.com/users/svc-changelog/events{/privacy}j :https://api.github.com/users/svc-changelog/received_eventsj Userj uparents]}(j (f28a1fb4318c3ec9c03d1ae1c48632d554a83626j ^https://api.github.com/repos/palantir/atlasdb/commits/f28a1fb4318c3ec9c03d1ae1c48632d554a83626j Shttps://github.com/palantir/atlasdb/commit/f28a1fb4318c3ec9c03d1ae1c48632d554a83626uastats}(totalK	additionsK	deletionsK ufiles]}(j (217d9399bdb068283f3ed607c705739151adc8eafilename$changelog/@unreleased/pr-6563.v2.ymlstatusaddedj
 Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/7e9359cf72077244a3b2baee847b257577fb21b5/changelog%2F%40unreleased%2Fpr-6563.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/7e9359cf72077244a3b2baee847b257577fb21b5/changelog%2F%40unreleased%2Fpr-6563.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6563.v2.yml?ref=7e9359cf72077244a3b2baee847b257577fb21b5patch@@ -0,0 +1,6 @@
+type: fix
+fix:
+  description: Fixed a serialization issue for users of `LockServerOptions` and `LockState`
+    endpoints in the legacy lock service.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6563uau(7c93ee5c0438f258aed0e12e251404572447d313}(sha(7c93ee5c0438f258aed0e12e251404572447d313node_idEC_kwDOAjP5fdoAKDdjOTNlZTVjMDQzOGYyNThhZWQwZTEyZTI1MTQwNDU3MjQ0N2QzMTMcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-05T10:38:14Zu	committer}(j* 	Tom Papkej, tpapke@palantir.comj. 2023-07-05T10:38:14ZumessageUse AtlasFutures::getUncheckedtree}(j" (6badf884beb62330419ba18dc5a628b5edb01091url`https://api.github.com/repos/palantir/atlasdb/git/trees/6badf884beb62330419ba18dc5a628b5edb01091uj: bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7c93ee5c0438f258aed0e12e251404572447d313
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSlSBYACgkQmF9s0kaF
Iw2pwwgAjNgEzAHvjwvOF78U3j+a4F6S5EuaqnSUEmoPkEAyZCkYghTumkzPw6ty
IgsrAHUQoaCxv06YvHBS0WvFoD9aY3xVlz/uz8U6w9y9gDDqs9Tl51sbqiCEhMCG
1/gUhrjxRxQXi40HTvaZ5tel9zjBT4fRLczBnRewihAOkJM4fHIohi8drdpdXVkV
jwpJ0XR+x7L6KhaJIvfPT9Ek6i13t/YGQCiLJCetq5Kqcok48XpznYX9fMu68Y+f
olp66AQ510Za2saF/Fh3MPe11gnbFaUp4IHOiKxiEX6W4pGL4Wgi3XWm8LNCumgy
LL9clLHmTNJOvoU4ZBvyIVH/VnQiIw==
=rK8b
-----END PGP SIGNATURE-----payloadtree 6badf884beb62330419ba18dc5a628b5edb01091
parent a3f55599eea4513e13bcd0eccfd6cd1606602bc6
author Tom Papke <tpapke@palantir.com> 1688553494 +0100
committer Tom Papke <tpapke@palantir.com> 1688553494 +0100

Use AtlasFutures::getUnchecked
uuj: ^https://api.github.com/repos/palantir/atlasdb/commits/7c93ee5c0438f258aed0e12e251404572447d313html_urlShttps://github.com/palantir/atlasdb/commit/7c93ee5c0438f258aed0e12e251404572447d313comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7c93ee5c0438f258aed0e12e251404572447d313/commentsj( }(login	ToemmscheidJboj$ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j: &https://api.github.com/users/ToemmschejH https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj0 }(jM 	ToemmschejO Jboj$ MDQ6VXNlcjQzNjc1NDkwjQ 4https://avatars.githubusercontent.com/u/43675490?v=4jS h5j: &https://api.github.com/users/ToemmschejH https://github.com/ToemmschejV 0https://api.github.com/users/Toemmsche/followersjX =https://api.github.com/users/Toemmsche/following{/other_user}jZ 6https://api.github.com/users/Toemmsche/gists{/gist_id}j\ =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j^ 4https://api.github.com/users/Toemmsche/subscriptionsj` +https://api.github.com/users/Toemmsche/orgsjb ,https://api.github.com/users/Toemmsche/reposjd 7https://api.github.com/users/Toemmsche/events{/privacy}jf 6https://api.github.com/users/Toemmsche/received_eventsjh Userjj uparents]}(j" (a3f55599eea4513e13bcd0eccfd6cd1606602bc6j: ^https://api.github.com/repos/palantir/atlasdb/commits/a3f55599eea4513e13bcd0eccfd6cd1606602bc6jH Shttps://github.com/palantir/atlasdb/commit/a3f55599eea4513e13bcd0eccfd6cd1606602bc6uastats}(totalK	additionsK	deletionsKufiles]}(j" (6da219634d77e064390240043ce2fa2ea9f3bd56filenameftimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7c93ee5c0438f258aed0e12e251404572447d313/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7c93ee5c0438f258aed0e12e251404572447d313/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.java?ref=7c93ee5c0438f258aed0e12e251404572447d313patchX  @@ -24,6 +24,7 @@
 import com.google.common.collect.ImmutableSet;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.atlasdb.futures.AtlasFutures;
 import com.palantir.atlasdb.timelock.api.ConjureIdentifiedVersion;
 import com.palantir.atlasdb.timelock.api.ConjureStartTransactionsRequest;
 import com.palantir.atlasdb.timelock.api.ConjureStartTransactionsResponse;
@@ -134,11 +135,7 @@ private List<LockWatchEvent> getAllLockWatchEvents() {
         ListenableFuture<ConjureStartTransactionsResponse> responseFuture =
                 timeLockService.startTransactionsWithWatches(startTransactionsRequestWithInitialVersion);
         assertThat(responseFuture).isDone();
-        try {
-            return responseFuture.get().getLockWatchUpdate().accept(LOCK_WATCH_STATE_UPDATE_VISITOR);
-        } catch (Throwable t) {
-            throw new RuntimeException(t);
-        }
+        return AtlasFutures.getUnchecked(responseFuture).getLockWatchUpdate().accept(LOCK_WATCH_STATE_UPDATE_VISITOR);
     }
 
     private static IdentifiedLockRequest standardRequestWithMetadata(Map<LockDescriptor, ChangeMetadata> metadata) {uau(4466195c70919b676e36ea3cd095921beb206f99}(sha(4466195c70919b676e36ea3cd095921beb206f99node_idEC_kwDOAjP5fdoAKDQ0NjYxOTVjNzA5MTliNjc2ZTM2ZWEzY2QwOTU5MjFiZWIyMDZmOTkcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-18T17:04:21Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-05-18T17:04:21Zumessageadd volumestree}(j (63190ffc8fe6828e1e00e3e1b02247bdf53c70deurl`https://api.github.com/repos/palantir/atlasdb/git/trees/63190ffc8fe6828e1e00e3e1b02247bdf53c70deuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4466195c70919b676e36ea3cd095921beb206f99
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRmWpYACgkQmPPOpKR4
XS3O2ggAwKgMGgts6NjdhpL6gbAELtZioslLU2Ah3ZggE34DP/hVc6hVzWSwq0E4
egsRA4NYN3oaEqWtdhRQ8BDcNCocsvRmhWkgwGa7V4QFCP7LmmpmDS3krMPKzgQ6
JxjE2+LlO5qAoRbFaO5HBxlOLlRozXGLBBqIxzYeS3RgRZanTwECcE/ikbtqgUr5
LoaQPTjNWC5bP7JNWIFgdpN9CjDuARC+sgvbKXg6NCqTSR9yUeaJs0OGKv71pXR0
e0IpiUKdzCEzreSR30cqkrRsIfsVqYdIvlcP/WZ2g72SNIYI/Js5mD3cCzauc0al
H4SRTR1C8pDDTwKMwmAwg3z7pD//gw==
=xzHW
-----END PGP SIGNATURE-----payloadtree 63190ffc8fe6828e1e00e3e1b02247bdf53c70de
parent 9d3b419972f969d98a2e09c33312f005c2725460
author Sam Kramer <skramer@palantir.com> 1684429461 +0100
committer Sam Kramer <skramer@palantir.com> 1684429461 +0100

add volumes
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/4466195c70919b676e36ea3cd095921beb206f99html_urlShttps://github.com/palantir/atlasdb/commit/4466195c70919b676e36ea3cd095921beb206f99comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4466195c70919b676e36ea3cd095921beb206f99/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (9d3b419972f969d98a2e09c33312f005c2725460j ^https://api.github.com/repos/palantir/atlasdb/commits/9d3b419972f969d98a2e09c33312f005c2725460j Shttps://github.com/palantir/atlasdb/commit/9d3b419972f969d98a2e09c33312f005c2725460uastats}(totalK	additionsK	deletionsK ufiles]}(j (0d1f2696fe20c1f1abb4c94f88cae6650478d2b8filename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/4466195c70919b676e36ea3cd095921beb206f99/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/4466195c70919b676e36ea3cd095921beb206f99/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=4466195c70919b676e36ea3cd095921beb206f99patchX8  @@ -15,6 +15,8 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra1
+    volumes:
+      - /opt/config/volumes/cassandra1:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
@@ -33,6 +35,8 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra2
+    volumes:
+      - /opt/config/volumes/cassandra2:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
@@ -51,6 +55,8 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra3
+    volumes:
+      - /opt/config/volumes/cassandra3:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.4uau(708fd21add30263a5f94fd9950ba82503b015f7f}(sha(708fd21add30263a5f94fd9950ba82503b015f7fnode_idEC_kwDOAjP5fdoAKDcwOGZkMjFhZGQzMDI2M2E1Zjk0ZmQ5OTUwYmE4MjUwM2IwMTVmN2Ycommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-01T19:04:45Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-01T19:04:45Zumessagehollatree}(j (61cac83be6c12e28cbaecc5317b1df7a88f24cb4url`https://api.github.com/repos/palantir/atlasdb/git/trees/61cac83be6c12e28cbaecc5317b1df7a88f24cb4uj( bhttps://api.github.com/repos/palantir/atlasdb/git/commits/708fd21add30263a5f94fd9950ba82503b015f7f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRQDU0ACgkQPlMHVIT1
yhoXdwf/WrfBAAOTilsu2gfVYWCb4dpu68s0m8utMsprCF45Qagi1hsY9pXNgJ7R
Moyihm1hIX8k+ulZBk7iEcFUljxaiT8LNJWaBSwn+kknXmZZrkZym2XaWSFc23GV
dBq3flxJe4eKYVYI6xnLHHxIp308nGio30JzHhypqgcgfG/JnfviMeFCPPLBgSVF
hhZZ6NHwdmqJXgK8UYDKFVcrlPirK5FDxZrK0hAJDVhhguk2sAJklN1ubCyiP5Kc
2lFRAWYdXu26StMP8SMibEXFmEtC2cmjv7qkBBBfDTgxXdgB0FHFZFrPWr5lIBw6
7qmh9CdlkdiFz1d3RuDEAdfjRyApzw==
=cMlp
-----END PGP SIGNATURE-----payloadtree 61cac83be6c12e28cbaecc5317b1df7a88f24cb4
parent 30057bab34b4c84d53affe31891e5ccf61aeed26
author Ahmed Alouane <aalouane@palantir.com> 1682967885 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682967885 +0100

holla
uuj( ^https://api.github.com/repos/palantir/atlasdb/commits/708fd21add30263a5f94fd9950ba82503b015f7fhtml_urlShttps://github.com/palantir/atlasdb/commit/708fd21add30263a5f94fd9950ba82503b015f7fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/708fd21add30263a5f94fd9950ba82503b015f7f/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j( #https://api.github.com/users/ergo14j6 https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j; ergo14j= Jj MDQ6VXNlcjMwOTAzNzM2j? 4https://avatars.githubusercontent.com/u/30903736?v=4jA h5j( #https://api.github.com/users/ergo14j6 https://github.com/ergo14jD -https://api.github.com/users/ergo14/followersjF :https://api.github.com/users/ergo14/following{/other_user}jH 3https://api.github.com/users/ergo14/gists{/gist_id}jJ :https://api.github.com/users/ergo14/starred{/owner}{/repo}e     jL 1https://api.github.com/users/ergo14/subscriptionsjN (https://api.github.com/users/ergo14/orgsjP )https://api.github.com/users/ergo14/reposjR 4https://api.github.com/users/ergo14/events{/privacy}jT 3https://api.github.com/users/ergo14/received_eventsjV UserjX uparents]}(j (30057bab34b4c84d53affe31891e5ccf61aeed26j( ^https://api.github.com/repos/palantir/atlasdb/commits/30057bab34b4c84d53affe31891e5ccf61aeed26j6 Shttps://github.com/palantir/atlasdb/commit/30057bab34b4c84d53affe31891e5ccf61aeed26uastats}(totalK	additionsK 	deletionsKufiles]}(j (1bb7dc36335b81926e4a4047ccf159c0bd46b1ddfilename.circleci/config.ymlstatusmodifiedjr K js KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/708fd21add30263a5f94fd9950ba82503b015f7f/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/708fd21add30263a5f94fd9950ba82503b015f7f/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=708fd21add30263a5f94fd9950ba82503b015f7fpatchX  @@ -140,8 +140,6 @@ workflows:
               only: /.*/
       - test:
           requires: [build]
-          strategy:
-            fail-fast: true
           matrix:
             parameters:
               suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
@@ -156,7 +154,5 @@ workflows:
       - deploy:
           requires: [build, test]
           filters:
-            branches:
-              only: develop
             tags:
               only: /.*/uau(b87d48c63a75474151199c4f338bdb8d383479be}(sha(b87d48c63a75474151199c4f338bdb8d383479benode_idEC_kwDOAjP5fdoAKGI4N2Q0OGM2M2E3NTQ3NDE1MTE5OWM0ZjMzOGJkYjhkMzgzNDc5YmUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-28T14:52:33Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-04-28T14:52:33Zumessagebye22tree}(j (a679325159c4b41057af0c8860ee698e9834900curl`https://api.github.com/repos/palantir/atlasdb/git/trees/a679325159c4b41057af0c8860ee698e9834900cuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b87d48c63a75474151199c4f338bdb8d383479be
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRL3bEACgkQPlMHVIT1
yhqgwAgAiLRMPd3y2HcQLsESilc/LIXw2bFFH5kGZ+s4LBM8Tbf16EX1errhML6q
sSJ8kjEze098TZH5AXLH0dTrbonZIKOxYoDJ4tMc3t2Ht8ydLSmdrR9PhibDK876
gzXqiIDxgDy8Juipaauo/lA7NYGv2qjkup6ycofnmhw83vWKwISl5myzeKYnwKly
s8lK+jl3M0PKXYlo46ZPCIfLWCY+O+ZXiN36yV3lOvuHkkd5ncAXhjMytR44CTaD
u4Es3/+4P30GEq6J3ruqvFmfamYX/AbEjN9H7ODyQiyJl71ssKwmzwd1P0i/pkoZ
RdIi3oOk54qvXWoH59wguVe/V/Whlg==
=9Cm+
-----END PGP SIGNATURE-----payloadtree a679325159c4b41057af0c8860ee698e9834900c
parent 59b537818bafe1f4a24073e1bad60b999805da81
author Ahmed Alouane <aalouane@palantir.com> 1682693553 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682693553 +0100

bye22
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/b87d48c63a75474151199c4f338bdb8d383479behtml_urlShttps://github.com/palantir/atlasdb/commit/b87d48c63a75474151199c4f338bdb8d383479becomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b87d48c63a75474151199c4f338bdb8d383479be/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j (59b537818bafe1f4a24073e1bad60b999805da81j ^https://api.github.com/repos/palantir/atlasdb/commits/59b537818bafe1f4a24073e1bad60b999805da81j Shttps://github.com/palantir/atlasdb/commit/59b537818bafe1f4a24073e1bad60b999805da81uastats}(totalK	additionsK	deletionsK ufiles]}(j (dc56b057bfa47547d827e381065643216340193dfilenamebuild.gradlestatusmodifiedj Kj K changesKblob_url^https://github.com/palantir/atlasdb/blob/b87d48c63a75474151199c4f338bdb8d383479be/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/b87d48c63a75474151199c4f338bdb8d383479be/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=b87d48c63a75474151199c4f338bdb8d383479bepatch@@ -9,6 +9,10 @@ import org.gradle.plugins.ide.idea.model.IdeaModel
 
 
 
+
+
+
+
 buildscript {
     repositories {
         mavenCentral() { metadataSources { mavenPom(); ignoreGradleMetadataRedirection() } }uau(40b90784b46c7a9555697659d7ea9b29b0ed4d25}(sha(40b90784b46c7a9555697659d7ea9b29b0ed4d25node_idEC_kwDOAjP5fdoAKDQwYjkwNzg0YjQ2YzdhOTU1NTY5NzY1OWQ3ZWE5YjI5YjBlZDRkMjUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-01T17:12:27Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj
 2023-05-01T17:12:27Zumessage	fix o fixtree}(j (504686d91153664d038d8e418fac289c8535e96burl`https://api.github.com/repos/palantir/atlasdb/git/trees/504686d91153664d038d8e418fac289c8535e96buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/40b90784b46c7a9555697659d7ea9b29b0ed4d25
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRP8vsACgkQPlMHVIT1
yho9OQgAt8AcPKHh8/MWacn+kTzcu6+suZIg2mFGUxvgjDEqxYWYum9BixH7IEWv
i4kZTIidWHPWw5HY4/XuspnSNSYZdRIt2whSKj7l4GvtcbiTYzDNd2eLrRTmcaSq
8sbM1VjfvoOmT7FNqG5lt2NVdGeJsjzX7IMWbpUaYZjMaXXGOb7L1cHciQOnM9NO
Zc6eDhofS7WwEgpNiGtZ6DMLY7UOD31bDmSiIA9OCeYSTQQkhOMFx7noFUcQ7hpA
kj0RhTeCM1vwP3sj8DNXlrLqHP3t0fHdI8wuhLdDB8RhF7/RD+591JVbwe49uLma
fw+Qoo1fElBX35RZpv5UNX3NUqSn6w==
=yjrd
-----END PGP SIGNATURE-----payloadtree 504686d91153664d038d8e418fac289c8535e96b
parent 9a63b7cae530ff3519541de10535d8a6afdf3953
author Ahmed Alouane <aalouane@palantir.com> 1682961147 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682961147 +0100

fix o fix
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/40b90784b46c7a9555697659d7ea9b29b0ed4d25html_urlShttps://github.com/palantir/atlasdb/commit/40b90784b46c7a9555697659d7ea9b29b0ed4d25comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/40b90784b46c7a9555697659d7ea9b29b0ed4d25/commentsj }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j$ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j) ergo14j+ Jj  MDQ6VXNlcjMwOTAzNzM2j- 4https://avatars.githubusercontent.com/u/30903736?v=4j/ h5j #https://api.github.com/users/ergo14j$ https://github.com/ergo14j2 -https://api.github.com/users/ergo14/followersj4 :https://api.github.com/users/ergo14/following{/other_user}j6 3https://api.github.com/users/ergo14/gists{/gist_id}j8 :https://api.github.com/users/ergo14/starred{/owner}{/repo}j: 1https://api.github.com/users/ergo14/subscriptionsj< (https://api.github.com/users/ergo14/orgsj> )https://api.github.com/users/ergo14/reposj@ 4https://api.github.com/users/ergo14/events{/privacy}jB 3https://api.github.com/users/ergo14/received_eventsjD UserjF uparents]}(j (9a63b7cae530ff3519541de10535d8a6afdf3953j ^https://api.github.com/repos/palantir/atlasdb/commits/9a63b7cae530ff3519541de10535d8a6afdf3953j$ Shttps://github.com/palantir/atlasdb/commit/9a63b7cae530ff3519541de10535d8a6afdf3953uastats}(totalK	additionsK	deletionsKufiles]}(j (946ade872370a3eeec49914e62fd24d3dbb08249filename.circleci/config.ymlstatusmodifiedj` Kja KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/40b90784b46c7a9555697659d7ea9b29b0ed4d25/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/40b90784b46c7a9555697659d7ea9b29b0ed4d25/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=40b90784b46c7a9555697659d7ea9b29b0ed4d25patchXZ  @@ -141,8 +141,8 @@ workflows:
       - test:
           requires: [build]
           matrix:
-            suite:
-              parameters: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
+            parameters:
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
           filters:
             tags:
               only: /.*/uau(24820153082f53974c94dcc24a1917fb7fc3c91a}(sha(24820153082f53974c94dcc24a1917fb7fc3c91anode_idEC_kwDOAjP5fdoAKDI0ODIwMTUzMDgyZjUzOTc0Yzk0ZGNjMjRhMTkxN2ZiN2ZjM2M5MWEcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-05-26T10:28:12Zu	committer}(j} svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-05-26T10:28:12ZumessageAutorelease 0.865.0

[skip ci]tree}(ju (b27256bea55ecdab5fd3b92bc2c82c98f7b710f9url`https://api.github.com/repos/palantir/atlasdb/git/trees/b27256bea55ecdab5fd3b92bc2c82c98f7b710f9uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/24820153082f53974c94dcc24a1917fb7fc3c91a
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRwicIACgkQhbrR8ip7mDCc2AD/f0wL2xGHs8vQAYplWF/K6aJR
OL106DGBskaF1EryI3ABAJa4oklDHJ9V27jkIvd/BugGJmzHLeobjZFoGaW6dSZz
=1/Z7
-----END PGP SIGNATURE-----
payloadX0  tree b27256bea55ecdab5fd3b92bc2c82c98f7b710f9
parent 03b58e8af6948cf30f696cb91eb17c2a371945e6
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1685096892 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1685096892 +0000

Autorelease 0.865.0

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/24820153082f53974c94dcc24a1917fb7fc3c91ahtml_urlShttps://github.com/palantir/atlasdb/commit/24820153082f53974c94dcc24a1917fb7fc3c91acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/24820153082f53974c94dcc24a1917fb7fc3c91a/commentsj{ }(loginsvc-autoreleaseidJ(jw MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(jw MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(ju (03b58e8af6948cf30f696cb91eb17c2a371945e6j ^https://api.github.com/repos/palantir/atlasdb/commits/03b58e8af6948cf30f696cb91eb17c2a371945e6j Shttps://github.com/palantir/atlasdb/commit/03b58e8af6948cf30f696cb91eb17c2a371945e6uastats}(totalK 	additionsK 	deletionsK ufiles]}(ju (b92e0f6636b00a68d6b900daa1da10ff5cbb9a1efilename changelog/0.865.0/pr-6595.v2.ymlstatusrenamedj K j K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/24820153082f53974c94dcc24a1917fb7fc3c91a/changelog%2F0.865.0%2Fpr-6595.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/24820153082f53974c94dcc24a1917fb7fc3c91a/changelog%2F0.865.0%2Fpr-6595.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.865.0%2Fpr-6595.v2.yml?ref=24820153082f53974c94dcc24a1917fb7fc3c91aprevious_filename$changelog/@unreleased/pr-6595.v2.ymluau(2ce769ae9f042f1e0601295fef4b31fd3ec36937}(sha(2ce769ae9f042f1e0601295fef4b31fd3ec36937node_idEC_kwDOAjP5fdoAKDJjZTc2OWFlOWYwNDJmMWUwNjAxMjk1ZmVmNGIzMWZkM2VjMzY5Mzccommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-07-21T02:41:52Zu	committer}(j David Schlosnaglej davids@palantir.comj 2023-07-21T02:56:55ZumessageXT  Reuse notLatestVisibleValueCellFilterCounter

Avoid expensive metric name computation for each value extraction by
registering the notLatestVisibleValueCellFilterCounter once and reusing
it throughout the lifetime.

Note that this includes several internal API changes; however, these
should not be an issue for any known AtlasDB consumers.tree}(j (d84ea9a556ad19de51c984f8e8770bd17d109cd0url`https://api.github.com/repos/palantir/atlasdb/git/trees/d84ea9a556ad19de51c984f8e8770bd17d109cd0uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2ce769ae9f042f1e0601295fef4b31fd3ec36937
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmS59DQACgkQR9hsJ74Q
0l8wqQf/dMh8vraXhnnKe0D3W/GzsnczjClXD3Xe9VQHWpOoWGGDuJjWNo4XGqk8
lWP6ON/+6UH+YC3gm3R1rqICPMH7WQJBWZYgbWutK8mU6t1d9xRG5tHc/HEeKu0u
tqPQvylnx0j7vpBKQo6uwcqj/mRVvu794FmWU8nz2IxvSvhtIbbNwFUHWZFEzwEc
X/xpz6qHbctwSUaqICXgqrpcwaysGdEk/dUxUzPDtSCeTjoOFNy49M54gMuhfELS
mECvZ/35A2qbDuM3UcqVRIuruWtLmYWjEpIdyCxypCZZgB9wMcoNMtfrJjqf8oli
5jhjHnILf4b2CykmdwwGTdVq7GITvw==
=+f7e
-----END PGP SIGNATURE-----payloadX7  tree d84ea9a556ad19de51c984f8e8770bd17d109cd0
parent e46ad42f173156860b0db30229a5a8d789485174
author David Schlosnagle <davids@palantir.com> 1689907312 -0400
committer David Schlosnagle <davids@palantir.com> 1689908215 -0400

Reuse notLatestVisibleValueCellFilterCounter

Avoid expensive metric name computation for each value extraction by
registering the notLatestVisibleValueCellFilterCounter once and reusing
it throughout the lifetime.

Note that this includes several internal API changes; however, these
should not be an issue for any known AtlasDB consumers.
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/2ce769ae9f042f1e0601295fef4b31fd3ec36937html_urlShttps://github.com/palantir/atlasdb/commit/2ce769ae9f042f1e0601295fef4b31fd3ec36937comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2ce769ae9f042f1e0601295fef4b31fd3ec36937/commentsj }(loginschlosnaidMBj MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j %https://api.github.com/users/schlosnaj https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj }(j schlosnaj MBj MDQ6VXNlcjU0NTk0j 1https://avatars.githubusercontent.com/u/54594?v=4j h5j %https://api.github.com/users/schlosnaj https://github.com/schlosnaj  /https://api.github.com/users/schlosna/followersj" <https://api.github.com/users/schlosna/following{/other_user}j$ 5https://api.github.com/users/schlosna/gists{/gist_id}j& <https://api.github.com/users/schlosna/starred{/owner}{/repo}j( 3https://api.github.com/users/schlosna/subscriptionsj* *https://api.github.com/users/schlosna/orgsj, +https://api.github.com/users/schlosna/reposj. 6https://api.github.com/users/schlosna/events{/privacy}j0 5https://api.github.com/users/schlosna/received_eventsj2 Userj4 uparents]}(j (e46ad42f173156860b0db30229a5a8d789485174j ^https://api.github.com/repos/palantir/atlasdb/commits/e46ad42f173156860b0db30229a5a8d789485174j Shttps://github.com/palantir/atlasdb/commit/e46ad42f173156860b0db30229a5a8d789485174uastats}(totalK[	additionsK:	deletionsK!ufiles](}(j (228ee8aa1a73fd41852342e6236b34b85f5feeb6filename.palantir/revapi.ymlstatusmodifiedjN KjO K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/2ce769ae9f042f1e0601295fef4b31fd3ec36937/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/2ce769ae9f042f1e0601295fef4b31fd3ec36937/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=2ce769ae9f042f1e0601295fef4b31fd3ec36937patchXN
  @@ -129,3 +129,26 @@ acceptedBreaks:
       new: "parameter <T> long com.palantir.atlasdb.keyvalue.cassandra.thrift.ThriftObjectSizeUtils::getCollectionSize(java.util.Collection<T>,\
         \ ===java.util.function.ToLongFunction<T>===)"
       justification: "Avoid autoboxing long to Long"
+  "0.899.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, ===com.palantir.atlasdb.util.MetricsManager===,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider)"
+      new: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, ===com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider===,\
+        \ java.util.function.Function<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
+        \ com.palantir.atlasdb.keyvalue.api.Value>, com.palantir.atlasdb.keyvalue.cassandra.ResultsExtractor<com.palantir.atlasdb.keyvalue.api.Value>>)"
+      justification: "Reuse notLatestVisibleValueCellFilterCounter"
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, com.palantir.atlasdb.util.MetricsManager,\
+        \ ===com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider===)"
+      new: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider,\
+        \ ===java.util.function.Function<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
+        \ com.palantir.atlasdb.keyvalue.api.Value>, com.palantir.atlasdb.keyvalue.cassandra.ResultsExtractor<com.palantir.atlasdb.keyvalue.api.Value>>===)"
+      justification: "Reuse notLatestVisibleValueCellFilterCounter"
+    - code: "java.method.removed"
+      old: "method com.codahale.metrics.Counter com.palantir.atlasdb.keyvalue.cassandra.ResultsExtractor<T>::getNotLatestVisibleValueCellFilterCounter(java.lang.Class<?>)"
+      justification: "Reuse notLatestVisibleValueCellFilterCounter"u}(j (24eb78c9e781527756585d486a989cfa4d275af1jT iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javajV modifiedjN KjO KjX KjY https://github.com/palantir/atlasdb/blob/2ce769ae9f042f1e0601295fef4b31fd3ec36937/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj[ https://github.com/palantir/atlasdb/raw/2ce769ae9f042f1e0601295fef4b31fd3ec36937/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj] https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=2ce769ae9f042f1e0601295fef4b31fd3ec36937j_ X  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.keyvalue.cassandra;
 
+import com.codahale.metrics.Counter;
 import com.datastax.driver.core.exceptions.DriverInternalError;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Functions;
@@ -39,6 +40,7 @@
 import com.google.protobuf.ByteString;
 import com.palantir.async.initializer.AsyncInitializer;
 import com.palantir.atlasdb.AtlasDbConstants;
+import com.palantir.atlasdb.AtlasDbMetricNames.CellFilterMetrics;
 import com.palantir.atlasdb.CassandraTopologyValidationMetrics;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
@@ -130,6 +132,7 @@
 import java.util.Set;
 import java.util.concurrent.Callable;
 import java.util.concurrent.ExecutorService;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 import java.util.stream.StreamSupport;
@@ -245,6 +248,7 @@ public void close() {
     private final CassandraMutationTimestampProvider mutationTimestampProvider;
     private final Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig;
     private final CassandraVerifierConfig verifierConfig;
+    private final Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory;
 
     public static CassandraKeyValueService createForTesting(
             CassandraKeyValueServiceConfig config, Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig) {
@@ -412,14 +416,19 @@ private static CassandraKeyValueService createAndInitialize(
             CassandraMutationTimestampProvider mutationTimestampProvider,
             Logger log,
             boolean initializeAsync) {
+        Counter notLatestVisibleValueCellFilterCounter = // register counter once and reuse
+                metricsManager.registerOrGetCounter(ValueExtractor.class, CellFilterMetrics.NOT_LATEST_VISIBLE_VALUE);
+        Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory = cellValueMap ->
+                new ValueExtractor(metricsManager, cellValueMap, notLatestVisibleValueCellFilterCounter);
         CassandraKeyValueServiceImpl keyValueService = new CassandraKeyValueServiceImpl(
                 log,
                 metricsManager,
                 config,
                 asyncKeyValueService,
                 runtimeConfig,
                 clientPool,
-                mutationTimestampProvider);
+                mutationTimestampProvider,
+                extractorFactory);
         keyValueService.wrapper.initialize(initializeAsync);
         return keyValueService.wrapper.isInitialized() ? keyValueService : keyValueService.wrapper;
     }
@@ -431,7 +440,8 @@ private CassandraKeyValueServiceImpl(
             AsyncKeyValueService asyncKeyValueService,
             Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig,
             CassandraClientPool clientPool,
-            CassandraMutationTimestampProvider mutationTimestampProvider) {
+            CassandraMutationTimestampProvider mutationTimestampProvider,
+            Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory) {
         super(createBlockingThreadpool(config, runtimeConfig.get().servers(), metricsManager));
         this.log = log;
         this.metricsManager = metricsManager;
@@ -444,7 +454,7 @@ private CassandraKeyValueServiceImpl(
         this.cassandraTables = new CassandraTables(clientPool, config);
         this.taskRunner = new TaskRunner(executor);
         this.cellLoader = CellLoader.create(clientPool, wrappingQueryRunner, taskRunner, runtimeConfig);
-        this.rangeLoader = new RangeLoader(clientPool, queryRunner, metricsManager, readConsistencyProvider);
+        this.rangeLoader = new RangeLoader(clientPool, queryRunner, readConsistencyProvider, extractorFactory);
         this.cellValuePutter = new CellValuePutter(
                 runtimeConfig,
                 clientPool,
@@ -459,6 +469,7 @@ private CassandraKeyValueServiceImpl(
                 new CassandraTableDropper(config, clientPool, tableMetadata, cassandraTableTruncator);
         this.runtimeConfig = runtimeConfig;
         this.verifierConfig = CassandraVerifierConfig.of(config, runtimeConfig.get());
+        this.extractorFactory = extractorFactory;
     }
 
     private static ExecutorService createBlockingThreadpool(
@@ -674,7 +685,7 @@ private Map<Cell, Value> getAllCellsForRows(
                     .collect(Collectors.toList());
         }
 
-        ValueExtractor extractor = new ValueExtractor(metricsManager, Maps.newHashMapWithExpectedSize(result.size()));
+        ResultsExtractor<Value> extractor = extractorFactory.apply(Maps.newHashMapWithExpectedSize(result.size()));
         extractor.extractResults(Multimaps.asMap(result), startTs, ColumnSelection.all());
         return extractor.asMap();
     }
@@ -760,7 +771,7 @@ private Map<Cell, Value> getRowsForSpecificColumns(
             }
         }
 
-        StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, startTs);
+        StartTsResultsCollector collector = new StartTsResultsCollector(startTs, extractorFactory);
         cellLoader.loadWithTs(
                 "getRows",
                 tableRef,
@@ -804,7 +815,7 @@ public Map<Cell, Value> get(TableReference tableRef, Map<Cell, Long> timestampBy
                     Multimaps.invertFrom(Multimaps.forMap(timestampByCell), HashMultimap.create());
             ImmutableMap.Builder<Cell, Value> builder = ImmutableMap.builder();
             for (long ts : cellsByTs.keySet()) {
-                StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, ts);
+                StartTsResultsCollector collector = new StartTsResultsCollector(ts, extractorFactory);
                 cellLoader.loadWithTs(
                         "get",
                         tableRef,
@@ -823,7 +834,7 @@ public Map<Cell, Value> get(TableReference tableRef, Map<Cell, Long> timestampBy
 
     private Map<Cell, Value> get(
             String kvsMethodName, TableReference tableRef, Set<Cell> cells, long maxTimestampExclusive) {
-        StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, maxTimestampExclusive);
+        StartTsResultsCollector collector = new StartTsResultsCollector(maxTimestampExclusive, extractorFactory);
         cellLoader.loadWithTs(
                 kvsMethodName,
                 tableRef,u}(j (0df00981272b5a894f62dbd3c588bdc01a9c6a86jT fatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServices.javajV modifiedjN KjO KjX KjY https://github.com/palantir/atlasdb/blob/2ce769ae9f042f1e0601295fef4b31fd3ec36937/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javaj[ https://github.com/palantir/atlasdb/raw/2ce769ae9f042f1e0601295fef4b31fd3ec36937/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javaj] https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.java?ref=2ce769ae9f042f1e0601295fef4b31fd3ec36937j_ X  @@ -28,7 +28,6 @@
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.table.description.TableMetadata;
-import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.base.RunnableCheckedException;
 import com.palantir.common.base.Throwables;
 import com.palantir.common.visitor.Visitor;
@@ -49,6 +48,7 @@
 import java.util.Optional;
 import java.util.UUID;
 import java.util.concurrent.ConcurrentHashMap;
+import java.util.function.Function;
 import java.util.stream.Collectors;
 import org.apache.cassandra.thrift.CfDef;
 import org.apache.cassandra.thrift.Column;
@@ -408,11 +408,11 @@ interface ThreadSafeResultVisitor extends Visitor<Map<ByteBuffer, List<ColumnOrS
 
     static class StartTsResultsCollector implements ThreadSafeResultVisitor {
         private final Map<Cell, Value> collectedResults = new ConcurrentHashMap<>();
-        private final ValueExtractor extractor;
+        private final ResultsExtractor<Value> extractor;
         private final long startTs;
 
-        StartTsResultsCollector(MetricsManager metricsManager, long startTs) {
-            this.extractor = new ValueExtractor(metricsManager, collectedResults);
+        StartTsResultsCollector(long startTs, Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory) {
+            this.extractor = extractorFactory.apply(collectedResults);
             this.startTs = startTs;
         }
 u}(j (ee1124347a96b3aab3852646e5590f8594bf42d5jT Xatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/RangeLoader.javajV modifiedjN K	jO KjX KjY https://github.com/palantir/atlasdb/blob/2ce769ae9f042f1e0601295fef4b31fd3ec36937/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRangeLoader.javaj[ https://github.com/palantir/atlasdb/raw/2ce769ae9f042f1e0601295fef4b31fd3ec36937/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRangeLoader.javaj] https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRangeLoader.java?ref=2ce769ae9f042f1e0601295fef4b31fd3ec36937j_ X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.keyvalue.cassandra;
 
 import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.RangeRequest;
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
@@ -26,31 +27,33 @@
 import com.palantir.atlasdb.keyvalue.cassandra.paging.RowGetter;
 import com.palantir.atlasdb.keyvalue.cassandra.paging.ThriftColumnGetter;
 import com.palantir.atlasdb.keyvalue.cassandra.thrift.SlicePredicates;
-import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.base.ClosableIterator;
 import com.palantir.common.base.ClosableIterators;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import org.apache.cassandra.thrift.SlicePredicate;
 
 public class RangeLoader {
     private final CassandraClientPool clientPool;
     private final TracingQueryRunner queryRunner;
-    private final MetricsManager metricsManager;
     private final ReadConsistencyProvider readConsistencyProvider;
+    private final Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory;
 
     public RangeLoader(
             CassandraClientPool clientPool,
             TracingQueryRunner queryRunner,
-            MetricsManager metricsManager,
-            ReadConsistencyProvider readConsistencyProvider) {
+            ReadConsistencyProvider readConsistencyProvider,
+            Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory) {
         this.clientPool = clientPool;
         this.queryRunner = queryRunner;
-        this.metricsManager = metricsManager;
         this.readConsistencyProvider = readConsistencyProvider;
+        this.extractorFactory = extractorFactory;
     }
 
     public ClosableIterator<RowResult<Value>> getRange(TableReference tableRef, RangeRequest rangeRequest, long ts) {
-        return getRangeWithPageCreator(tableRef, rangeRequest, ts, () -> ValueExtractor.create(metricsManager));
+        return getRangeWithPageCreator(tableRef, rangeRequest, ts, () -> extractorFactory.apply(new HashMap<>()));
     }
 
     private <T> ClosableIterator<RowResult<T>> getRangeWithPageCreator(u}(j (3f88196e3d17fc4d5eb62f8e206fd5336c9fac30jT ]atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/ResultsExtractor.javajV modifiedjN K jO KjX KjY https://github.com/palantir/atlasdb/blob/2ce769ae9f042f1e0601295fef4b31fd3ec36937/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.javaj[ https://github.com/palantir/atlasdb/raw/2ce769ae9f042f1e0601295fef4b31fd3ec36937/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.javaj] https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.java?ref=2ce769ae9f042f1e0601295fef4b31fd3ec36937j_ X.  @@ -15,8 +15,6 @@
  */
 package com.palantir.atlasdb.keyvalue.cassandra;
 
-import com.codahale.metrics.Counter;
-import com.palantir.atlasdb.AtlasDbMetricNames;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.ColumnSelection;
@@ -109,10 +107,4 @@ public abstract void internalExtractResult(
             long startTs, ColumnSelection selection, byte[] row, byte[] col, byte[] val, long ts);
 
     public abstract Map<Cell, T> asMap();
-
-    protected Counter getNotLatestVisibleValueCellFilterCounter(Class<?> clazz) {
-        // TODO(hsaraogi): add table names as a tag
-        return metricsManager.registerOrGetCounter(
-                clazz, AtlasDbMetricNames.CellFilterMetrics.NOT_LATEST_VISIBLE_VALUE);
-    }
 }u}(j (53f8601baae7bbd4e212d593799a09bac05a2badjT [atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/ValueExtractor.javajV modifiedjN KjO KjX KjY https://github.com/palantir/atlasdb/blob/2ce769ae9f042f1e0601295fef4b31fd3ec36937/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javaj[ https://github.com/palantir/atlasdb/raw/2ce769ae9f042f1e0601295fef4b31fd3ec36937/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javaj] https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.java?ref=2ce769ae9f042f1e0601295fef4b31fd3ec36937j_ XK  @@ -21,21 +21,17 @@
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.tracing.TraceStatistics;
 import com.palantir.atlasdb.util.MetricsManager;
-import java.util.HashMap;
 import java.util.Map;
 
 class ValueExtractor extends ResultsExtractor<Value> {
     private final Map<Cell, Value> collector;
-    private final Counter notLatestVisibleValueCellFilterCounter =
-            getNotLatestVisibleValueCellFilterCounter(ValueExtractor.class);
+    private final Counter notLatestVisibleValueCellFilterCounter;
 
-    ValueExtractor(MetricsManager metricsManager, Map<Cell, Value> collector) {
+    ValueExtractor(
+            MetricsManager metricsManager, Map<Cell, Value> collector, Counter notLatestVisibleValueCellFilterCounter) {
         super(metricsManager);
         this.collector = collector;
-    }
-
-    static ValueExtractor create(MetricsManager metricsManager) {
-        return new ValueExtractor(metricsManager, new HashMap<>());
+        this.notLatestVisibleValueCellFilterCounter = notLatestVisibleValueCellFilterCounter;
     }
 
     @Overrideueu(5fe5be3cd88be2d7d115342a0725f19fc097b44d}(sha(5fe5be3cd88be2d7d115342a0725f19fc097b44dnode_idEC_kwDOAjP5fdoAKDVmZTViZTNjZDg4YmUyZDdkMTE1MzQyYTA3MjVmMTlmYzA5N2I0NGQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-23T18:54:19Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-05-23T18:54:19Zumessage,only apply docker gradle after shared gradletree}(j (fb0de862d9084b290b55521824f65580c4891278url`https://api.github.com/repos/palantir/atlasdb/git/trees/fb0de862d9084b290b55521824f65580c4891278uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5fe5be3cd88be2d7d115342a0725f19fc097b44d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRtC9sACgkQmPPOpKR4
XS0mkQgAg2uK2ic5D/DR5jn/TzlTtsFfVv/pTz/OUYeTa25LnGjd4JvUH/tu8uXb
Q0uQJ4jJQgg8bMdBCOeROYVjn44Yu8OrTypF45qAhaFAcO72iEJMs1AgwJt2RuUV
xpQWhcpToyvVIotHtbvBPqiiAyaOSVktvTZXH6h7wi17Z5JgEVxB+hB4MUZ5tp4M
GrT99IqBYmIl9QADJZcRgaY2Pu03HcQDZao4v4IVIA0k9g0TqESp64bRFeV4Spe6
t6qWEpnWrtNk2J5bju0T6uh2ijgWXVburyrlvdXF4Z1UfLtJNJXfsHP8GZPOjxkp
LXQwR1FUjoPFujhYnIzClivowkDHoA==
=wW1h
-----END PGP SIGNATURE-----payloadX  tree fb0de862d9084b290b55521824f65580c4891278
parent 250a057aca122cd1c68480dcb7c7a2fc9ad69850
author Sam Kramer <skramer@palantir.com> 1684868059 +0100
committer Sam Kramer <skramer@palantir.com> 1684868059 +0100

only apply docker gradle after shared gradle
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/5fe5be3cd88be2d7d115342a0725f19fc097b44dhtml_urlShttps://github.com/palantir/atlasdb/commit/5fe5be3cd88be2d7d115342a0725f19fc097b44dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5fe5be3cd88be2d7d115342a0725f19fc097b44d/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (250a057aca122cd1c68480dcb7c7a2fc9ad69850j ^https://api.github.com/repos/palantir/atlasdb/commits/250a057aca122cd1c68480dcb7c7a2fc9ad69850j Shttps://github.com/palantir/atlasdb/commit/250a057aca122cd1c68480dcb7c7a2fc9ad69850uastats}(totalK	additionsK	deletionsKufiles](}(j (dc41d93cfc62da8e575d2e4bb661c0faf17b9fe6filename1atlasdb-workload-server-distribution/build.gradlestatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5fe5be3cd88be2d7d115342a0725f19fc097b44d/atlasdb-workload-server-distribution%2Fbuild.gradleraw_urlhttps://github.com/palantir/atlasdb/raw/5fe5be3cd88be2d7d115342a0725f19fc097b44d/atlasdb-workload-server-distribution%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=5fe5be3cd88be2d7d115342a0725f19fc097b44dpatchX6  @@ -1,7 +1,7 @@
 apply plugin: 'com.palantir.sls-java-service-distribution'
 apply plugin: 'com.palantir.external-publish-dist'
-apply from: "../gradle/docker.gradle"
 apply from: "../gradle/shared.gradle"
+apply from: "../gradle/docker.gradle"
 apply from: "../gradle/non-client-dist.gradle"
 
 dependencies {u}(j (d57a1810d0ac8b9e00dea54412cf093cbb114080j )timelock-server-distribution/build.gradlej modifiedj Kj Kj Kj }https://github.com/palantir/atlasdb/blob/5fe5be3cd88be2d7d115342a0725f19fc097b44d/timelock-server-distribution%2Fbuild.gradlej |https://github.com/palantir/atlasdb/raw/5fe5be3cd88be2d7d115342a0725f19fc097b44d/timelock-server-distribution%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-distribution%2Fbuild.gradle?ref=5fe5be3cd88be2d7d115342a0725f19fc097b44dj XN  @@ -1,8 +1,7 @@
 apply plugin: 'com.palantir.sls-java-service-distribution'
-
-apply from: "../gradle/docker.gradle"
 apply plugin: 'com.palantir.external-publish-dist'
 apply from: "../gradle/shared.gradle"
+apply from: "../gradle/docker.gradle"
 apply from: "../gradle/tests.gradle"
 apply from: "../gradle/non-client-dist.gradle"
 ueu(1b01dcc04c0a349ce89595439bf0918511b62851}(sha(1b01dcc04c0a349ce89595439bf0918511b62851node_idEC_kwDOAjP5fdoAKDFiMDFkY2MwNGMwYTM0OWNlODk1OTU0MzliZjA5MTg1MTFiNjI4NTEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-05T15:17:37Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-06-05T15:17:37Zumessagelower level thingstree}(j
 (e18b39f075192d44166bb5bd46cd4459db7a3610url`https://api.github.com/repos/palantir/atlasdb/git/trees/e18b39f075192d44166bb5bd46cd4459db7a3610uj" bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1b01dcc04c0a349ce89595439bf0918511b62851
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR9/JEACgkQTLdFKain
zjwj0wf/aFn1S4zJObjjF6LDBmrPZxAGX+CYcRBaO9ARPahSknyhgiY1WZc3XrNo
IG1KdKfVbvLNy94bX5ppFz5tPpJ1ODPQX6z1ImCOl/KKKh/xdzZAXRWcMBGcuo/g
bk+oySzIXx+eAmFBVXwlvdTmBRO6bg9wSfvFfDMlTvHBuKyIhnTjiIR9X2p+2qi9
T9ozo8Hs+C7U1O8sJiW5eR/SAFa1lcTU/q+S65jBWhc4WmcvvRXkpzNj1qsE1CRK
IoWPytwo0aHoSnnkpod/ItT7Oxtap8H7XpCttegE+w4C8taRXn9gBPdnPN6xmK+d
8QgVtELRB5EzCUmAfZz53QARptZlng==
=t6/O
-----END PGP SIGNATURE-----payloadtree e18b39f075192d44166bb5bd46cd4459db7a3610
parent 6c3432437df528326b457d8b20a6199d334261d6
author Jeremy Kong <jkong@palantir.com> 1685978257 +0100
committer Jeremy Kong <jkong@palantir.com> 1685978257 +0100

lower level things
uuj" ^https://api.github.com/repos/palantir/atlasdb/commits/1b01dcc04c0a349ce89595439bf0918511b62851html_urlShttps://github.com/palantir/atlasdb/commit/1b01dcc04c0a349ce89595439bf0918511b62851comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1b01dcc04c0a349ce89595439bf0918511b62851/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j" 'https://api.github.com/users/jeremyk-91j0 https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j5 
jeremyk-91j7 JZ j MDQ6VXNlcjU5NTU1MTA=j9 3https://avatars.githubusercontent.com/u/5955510?v=4j; h5j" 'https://api.github.com/users/jeremyk-91j0 https://github.com/jeremyk-91j> 1https://api.github.com/users/jeremyk-91/followersj@ >https://api.github.com/users/jeremyk-91/following{/other_user}jB 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jD >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jF 5https://api.github.com/users/jeremyk-91/subscriptionsjH ,https://api.github.com/users/jeremyk-91/orgsjJ -https://api.github.com/users/jeremyk-91/reposjL 8https://api.github.com/users/jeremyk-91/events{/privacy}jN 7https://api.github.com/users/jeremyk-91/received_eventsjP UserjR uparents]}(j
 (6c3432437df528326b457d8b20a6199d334261d6j" ^https://api.github.com/repos/palantir/atlasdb/commits/6c3432437df528326b457d8b20a6199d334261d6j0 Shttps://github.com/palantir/atlasdb/commit/6c3432437df528326b457d8b20a6199d334261d6uastats}(totalK	additionsK	deletionsK ufiles](}(j
 (15812e8483e4d75255e28aa11ba5c6b1f605e04efilenameZatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/Columns.javastatusaddedjl K#jm K changesK#blob_urlhttps://github.com/palantir/atlasdb/blob/1b01dcc04c0a349ce89595439bf0918511b62851/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumns.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1b01dcc04c0a349ce89595439bf0918511b62851/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumns.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumns.java?ref=1b01dcc04c0a349ce89595439bf0918511b62851patchX  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import io.vavr.collection.SortedMap;
+import java.util.Optional;
+
+public interface Columns {
+    Optional<Integer> get(int column);
+
+    boolean containsKey(int column);
+
+    void put(int column, int value);
+
+    void delete(int column);
+
+    SortedMap<Integer, Optional<Integer>> getColumnsInRange(
+            Optional<Integer> startInclusive, Optional<Integer> endExclusive);
+
+    SortedMap<Integer, Optional<Integer>> snapshot();
+}u}(j
 (4f9aa251960fc98be59064e5ceb5613bac2c9209jr Xatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/Table.javajt addedjl K#jm K jv K#jw https://github.com/palantir/atlasdb/blob/1b01dcc04c0a349ce89595439bf0918511b62851/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTable.javajy https://github.com/palantir/atlasdb/raw/1b01dcc04c0a349ce89595439bf0918511b62851/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTable.javaj{ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTable.java?ref=1b01dcc04c0a349ce89595439bf0918511b62851j} X  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import io.vavr.collection.SortedMap;
+import java.util.Optional;
+
+public interface Table {
+    Optional<Integer> get(int row, int column);
+
+    boolean containsKey(int row, int column);
+
+    void put(int row, int column, int value);
+
+    void delete(int row, int column);
+
+    SortedMap<Integer, Optional<Integer>> getColumnsInRange(
+            int row, Optional<Integer> startInclusive, Optional<Integer> endExclusive);
+
+    SortedMap<Integer, Columns> snapshot();
+}u}(j
 (76763b63278db419aa4727726b389245aab9784cjr ]atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/DefaultColumns.javajt addedjl KLjm K jv KLjw https://github.com/palantir/atlasdb/blob/1b01dcc04c0a349ce89595439bf0918511b62851/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FDefaultColumns.javajy https://github.com/palantir/atlasdb/raw/1b01dcc04c0a349ce89595439bf0918511b62851/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FDefaultColumns.javaj{ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FDefaultColumns.java?ref=1b01dcc04c0a349ce89595439bf0918511b62851j} X  @@ -0,0 +1,76 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import io.vavr.collection.SortedMap;
+import io.vavr.collection.TreeMap;
+import java.util.Optional;
+
+/**
+ * Models columns for a given workload row in a table.
+ * <p>
+ * Note that deletes are explicitly tracked as empty values, for the purposes of certain invariants that want to check
+ * that they actually happened.
+ */
+public final class DefaultColumns implements Columns {
+    private final StructureHolder<SortedMap<Integer, Optional<Integer>>> structureHolder;
+
+    private DefaultColumns(StructureHolder<SortedMap<Integer, Optional<Integer>>> structureHolder) {
+        this.structureHolder = structureHolder;
+    }
+
+    public static DefaultColumns empty() {
+        return new DefaultColumns(StructureHolder.create(TreeMap::empty));
+    }
+
+    @Override
+    public Optional<Integer> get(int column) {
+        return structureHolder.apply(map -> map.get(column)).getOrElse(Optional.empty());
+    }
+
+    @Override
+    public boolean containsKey(int column) {
+        return structureHolder.apply(map -> map.containsKey(column));
+    }
+
+    @Override
+    public void put(int column, int value) {
+        structureHolder.with(map -> map.put(column, Optional.of(value)));
+    }
+
+    @Override
+    public void delete(int column) {
+        structureHolder.with(map -> map.put(column, Optional.empty()));
+    }
+
+    @Override
+    public SortedMap<Integer, Optional<Integer>> getColumnsInRange(
+            Optional<Integer> startInclusive, Optional<Integer> endExclusive) {
+        // TODO (jkong): To do this more efficiently, this needs to be implemented in the Vavr layer. However, an
+        //  algorithm that is O(N) instead of O(log N) in the columns probably isn't the worst for now, given we
+        //  don't expect to have many columns in a single row.
+        return structureHolder.apply(map -> map.dropWhile(
+                        tuple -> startInclusive.map(start -> start < tuple._1()).orElse(false))
+                .takeWhile(tuple -> endExclusive.map(end -> end > tuple._1()).orElse(true)));
+    }
+
+    @Override
+    public SortedMap<Integer, Optional<Integer>> snapshot() {
+        return structureHolder.getSnapshot();
+    }
+}u}(j
 (3e5ae16af4f52bae13854bf66d2efa4f5487391cjr [atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/DefaultTable.javajt addedjl KPjm K jv KPjw https://github.com/palantir/atlasdb/blob/1b01dcc04c0a349ce89595439bf0918511b62851/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FDefaultTable.javajy https://github.com/palantir/atlasdb/raw/1b01dcc04c0a349ce89595439bf0918511b62851/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FDefaultTable.javaj{ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FDefaultTable.java?ref=1b01dcc04c0a349ce89595439bf0918511b62851j} X2  @@ -0,0 +1,80 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import io.vavr.Tuple2;
+import io.vavr.collection.SortedMap;
+import io.vavr.collection.TreeMap;
+import java.util.Optional;
+
+public final class DefaultTable implements Table {
+    private final StructureHolder<SortedMap<Integer, Columns>> rows;
+
+    private DefaultTable(StructureHolder<SortedMap<Integer, Columns>> rows) {
+        this.rows = rows;
+    }
+
+    public static DefaultTable empty() {
+        return new DefaultTable(StructureHolder.create(TreeMap::empty));
+    }
+
+    @Override
+    public Optional<Integer> get(int row, int column) {
+        return rows.apply(map -> map.get(row).map(columns -> columns.get(column)))
+                .getOrElse(Optional.empty());
+    }
+
+    @Override
+    public boolean containsKey(int row, int column) {
+        return rows.apply(
+                map -> map.get(row).map(columns -> columns.containsKey(column)).getOrElse(false));
+    }
+
+    @Override
+    public void put(int row, int column, int value) {
+        rows.with(map -> {
+            Tuple2<Columns, ? extends SortedMap<Integer, Columns>> tuple =
+                    map.computeIfAbsent(row, unused -> DefaultColumns.empty());
+            tuple._1().put(column, value);
+            return tuple._2();
+        });
+    }
+
+    @Override
+    public void delete(int row, int column) {
+        rows.with(map -> {
+            Tuple2<Columns, ? extends SortedMap<Integer, Columns>> tuple =
+                    map.computeIfAbsent(row, unused -> DefaultColumns.empty());
+            tuple._1().delete(column);
+            return tuple._2();
+        });
+    }
+
+    @Override
+    public SortedMap<Integer, Optional<Integer>> getColumnsInRange(
+            int row, Optional<Integer> startInclusive, Optional<Integer> endExclusive) {
+        return rows.apply(map -> map.get(row))
+                .map(columns -> columns.getColumnsInRange(startInclusive, endExclusive))
+                .getOrElse(TreeMap::empty);
+    }
+
+    @Override
+    public SortedMap<Integer, Columns> snapshot() {
+        return rows.getSnapshot();
+    }
+}ueu(adfdc27938ed1206ec6eeeea0432d20daa58a5b8}(sha(adfdc27938ed1206ec6eeeea0432d20daa58a5b8node_idEC_kwDOAjP5fdoAKGFkZmRjMjc5MzhlZDEyMDZlYzZlZWVlYTA0MzJkMjBkYWE1OGE1Yjgcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-02-28T19:17:17Zu	committer}(j GitHubj noreply@github.comj 2023-02-28T19:17:17Zumessage"Excavator:  Prefer AssertJ (#6460)tree}(j (594208ac01b5b36ae75d2aaa208719b5167a280curl`https://api.github.com/repos/palantir/atlasdb/git/trees/594208ac01b5b36ae75d2aaa208719b5167a280cuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/adfdc27938ed1206ec6eeeea0432d20daa58a5b8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJj/lM9CRBK7hj4Ov3rIwAA420IAH61dxsDX/hvOhiO3gz3FayG
iTa21v4cZpvTBcaisaaqpXCTgM9RUbVrOttEQNZgFJtlYGOUpld2pPJuSa+slV6u
hkMoxtNe7qDfd5q264F6FRyEualMS/hX5w4IGWSz1FDcaHOCYIiiba7eLBBwAaeB
uDEoj3E4ROterXtiTR1rb5qsAn5q/xJeRc2ZCThq39uTguOisD9XpWcWdwD7mrQu
PA3HnPRpXvSejtCBxYFFpIoXLId+8S9Pi1xsffD+tUUX4dNho97FQpX+nfGzqOsi
+jZxjwTxMaaHJq6Coin/NoP6mDFPCaaeHgNcTL+du1QeBPlVzx+mBtX5OvQhxiE=
=B5nK
-----END PGP SIGNATURE-----
payloadX  tree 594208ac01b5b36ae75d2aaa208719b5167a280c
parent fc09751e555ba0b106c6b87977afe02a92029295
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1677611837 +0000
committer GitHub <noreply@github.com> 1677611837 +0000

Excavator:  Prefer AssertJ (#6460)

uuj ^https://api.github.com/repos/palantir/atlasdb/commits/adfdc27938ed1206ec6eeeea0432d20daa58a5b8html_urlShttps://github.com/palantir/atlasdb/commit/adfdc27938ed1206ec6eeeea0432d20daa58a5b8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/adfdc27938ed1206ec6eeeea0432d20daa58a5b8/commentsj }(loginsvc-excavator-botidJj MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j .https://api.github.com/users/svc-excavator-botj $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j (fc09751e555ba0b106c6b87977afe02a92029295j ^https://api.github.com/repos/palantir/atlasdb/commits/fc09751e555ba0b106c6b87977afe02a92029295j Shttps://github.com/palantir/atlasdb/commit/fc09751e555ba0b106c6b87977afe02a92029295uastats}(totalK
	additionsK	deletionsKufiles]}(j (bb81d17f74cc4edfb542819312a2b7f5960f195efilenamekatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraTopologyValidatorTest.javastatusmodifiedj Kj KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/adfdc27938ed1206ec6eeeea0432d20daa58a5b8/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/adfdc27938ed1206ec6eeeea0432d20daa58a5b8/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.java?ref=adfdc27938ed1206ec6eeeea0432d20daa58a5b8patchX	  @@ -314,7 +314,7 @@ public void returnsAllNewHostsIfNoConsensusOnNewHostsWhenNoQuorumAndCurrentServe
         assertThat(validator.getNewHostsWithInconsistentTopologies(
                         mapToTokenRangeOrigin(newCassandraServers), allHosts))
                 .as("rejects all servers when no quorum from all hosts and no quorum on new hosts")
-                .isEqualTo(newCassandraServers);
+                .containsExactlyInAnyOrderElementsOf(newCassandraServers);
     }
 
     @Test
@@ -338,7 +338,7 @@ public void returnsAllNewHostsIfConsensusOnNewHostsDiffersFromPreviousWhenNoQuor
         assertThat(validator.getNewHostsWithInconsistentTopologies(
                         mapToTokenRangeOrigin(newCassandraServers), allHosts))
                 .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
-                .isEqualTo(newCassandraServers);
+                .containsExactlyInAnyOrderElementsOf(newCassandraServers);
     }
 
     @Test
@@ -385,7 +385,7 @@ public void validateNewlyAddedHostsAddedIfAgreedWithOldTopologyWhenNoQuorumAndNo
                         allHosts))
                 .as("accepts quorum from config hosts if they have the same host IDs as old topology when no current"
                         + " servers")
-                .isEqualTo(oldCassandraServers);
+                .containsExactlyInAnyOrderElementsOf(oldCassandraServers);
     }
 
     @Test
@@ -412,7 +412,7 @@ public void returnsAllNewHostsIfNoConsensusOnConfigHostsWhenNoQuorumAndNoCurrent
                                 oldCassandraServers, Sets.difference(allCassandraServers, oldCassandraServers)),
                         allHosts))
                 .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
-                .isEqualTo(allCassandraServers);
+                .containsExactlyInAnyOrderElementsOf(allCassandraServers);
     }
 
     @Test
@@ -439,7 +439,7 @@ public void returnsAllNewHostsIfConsensusOnConfigHostsDiffersFromPreviousWhenNoQ
                                 oldCassandraServers, Sets.difference(allCassandraServers, oldCassandraServers)),
                         allHosts))
                 .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
-                .isEqualTo(allCassandraServers);
+                .containsExactlyInAnyOrderElementsOf(allCassandraServers);
     }
 
     @Testuau     (03a9e35e0fc131130205b156d9e2a23b979dfe77}(sha(03a9e35e0fc131130205b156d9e2a23b979dfe77node_idEC_kwDOAjP5fdoAKDAzYTllMzVlMGZjMTMxMTMwMjA1YjE1NmQ5ZTJhMjNiOTc5ZGZlNzccommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-10T08:44:02Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-07-10T14:49:44ZumessageWImprove JavaDoc and readability
Add additional precondition for index map with new testtree}(j (4b4351416582aea23af3b176d1e7c00dba72d9cdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/4b4351416582aea23af3b176d1e7c00dba72d9cduj( bhttps://api.github.com/repos/palantir/atlasdb/git/commits/03a9e35e0fc131130205b156d9e2a23b979dfe77
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSsGogACgkQmF9s0kaF
Iw2a5QgApBjYg5VOs7jRme0QmXgBw7BwJocTgS5dGt0WvCdcPcmj14QHdI8yCYJR
qWTv6bH6slGSwnF+rurMCYW1H49vR+kDSbc6jU6YR2hu+GIJymj9z6ye83xs03I7
TnJGT9x5ehjDRucoRFAZinERviTPhVNtOMd0XMqXlknESNzGLZQDfrInkV6343qW
8bZwYJFZkLKik8tfzKF/SDTA2o9QsZV33lC9z+iWMPfYO/0X+jfSW4P28MJ9JlXT
a8rkKeYtTWePkD3ng1FjOioX0O9AAs8eOFPDBWdrkkJqEuoLkxxfbUTpSaH9cf8l
MBYFElxl2rt9hD2ck3oRQ5LGjRavQA==
=ObcY
-----END PGP SIGNATURE-----payloadX*  tree 4b4351416582aea23af3b176d1e7c00dba72d9cd
parent 15ea77fc74eaa2b27ec66c7520f7ddb5bf694601
author Tom Papke <tpapke@palantir.com> 1688978642 +0100
committer Tom Papke <tpapke@palantir.com> 1689000584 +0100

Improve JavaDoc and readability
Add additional precondition for index map with new test
uuj( ^https://api.github.com/repos/palantir/atlasdb/commits/03a9e35e0fc131130205b156d9e2a23b979dfe77html_urlShttps://github.com/palantir/atlasdb/commit/03a9e35e0fc131130205b156d9e2a23b979dfe77comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/03a9e35e0fc131130205b156d9e2a23b979dfe77/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j( &https://api.github.com/users/Toemmschej6 https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j; 	Toemmschej= Jboj MDQ6VXNlcjQzNjc1NDkwj? 4https://avatars.githubusercontent.com/u/43675490?v=4jA h5j( &https://api.github.com/users/Toemmschej6 https://github.com/ToemmschejD 0https://api.github.com/users/Toemmsche/followersjF =https://api.github.com/users/Toemmsche/following{/other_user}jH 6https://api.github.com/users/Toemmsche/gists{/gist_id}jJ =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jL 4https://api.github.com/users/Toemmsche/subscriptionsjN +https://api.github.com/users/Toemmsche/orgsjP ,https://api.github.com/users/Toemmsche/reposjR 7https://api.github.com/users/Toemmsche/events{/privacy}jT 6https://api.github.com/users/Toemmsche/received_eventsjV UserjX uparents]}(j (15ea77fc74eaa2b27ec66c7520f7ddb5bf694601j( ^https://api.github.com/repos/palantir/atlasdb/commits/15ea77fc74eaa2b27ec66c7520f7ddb5bf694601j6 Shttps://github.com/palantir/atlasdb/commit/15ea77fc74eaa2b27ec66c7520f7ddb5bf694601uastats}(totalKL	additionsK1	deletionsKufiles](}(j (7012f69ee96b00d2e372fa4f35ac9914db148f07filenameGatlasdb-commons/src/main/java/com/palantir/util/IndexEncodingUtils.javastatusmodifiedjr Kjs KchangesK1blob_urlhttps://github.com/palantir/atlasdb/blob/03a9e35e0fc131130205b156d9e2a23b979dfe77/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javaraw_urlhttps://github.com/palantir/atlasdb/raw/03a9e35e0fc131130205b156d9e2a23b979dfe77/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.java?ref=03a9e35e0fc131130205b156d9e2a23b979dfe77patchX  @@ -50,14 +50,14 @@ public interface DeterministicHashable {
     /**
      * Compute a derived map, replacing keys with their associated index into the ordered list, to the value returned
      * by running the {@code valueMapper} over the original value.
-     * If the original values are transmitted as associated objects for some keys and keys can be large,
+     * If the {@code keys} are transmitted regardless of whether they have a value associated in {@code keyToValue},
      * this encoding can be used to save significant space on the wire.
      *
-     * @param keys a set of keys. Keys must have a deterministic hash function.
-     * @param keyToValue a map of keys to values. Every key in this map must be contained in the set of keys.
+     * @param keys a set of keys which implement {@link DeterministicHashable}
+     * @param keyToValue a map of keys to values. The key set of this map must be a subset of {@code keys}
      * @param valueMapper a mapping function applied to values before placing them into the result map
-     * @param checksumType the type of checksum algorithm to use
-     * @return the list of keys, the index map, and a compound checksum of the ordered keys.
+     * @param checksumType the type of checksum algorithm to use on the ordered list of keys
+     * @return the ordered list of keys, the index map, and a compound checksum of the ordered keys
      * @throws SafeIllegalArgumentException if {@code keyToValue} contains keys that are not in the provided
      * set of keys
      */
@@ -77,7 +77,8 @@ public static <K extends DeterministicHashable, V, R> IndexEncodingResult<K, R>
         if (indexToValue.size() != keyToValue.size()) {
             Set<K> unknownKeys = Sets.difference(keyToValue.keySet(), keys);
             throw new SafeIllegalArgumentException(
-                    "keyToValue contains keys that are not in the key list", UnsafeArg.of("unknownKeys", unknownKeys));
+                    "Value map uses keys that are not in the provided set of keys",
+                    UnsafeArg.of("unknownKeys", unknownKeys));
         }
         return IndexEncodingResult.<K, R>builder()
                 .keyList(keyList)
@@ -87,30 +88,38 @@ public static <K extends DeterministicHashable, V, R> IndexEncodingResult<K, R>
     }
 
     /**
-     * Compute a derived map, replacing indices into the ordered list with their items, to the value returned
+     * Compute a derived map, replacing indices into the list of keys with their item, to the value returned
      * by running the {@code valueMapper} over the original value.
      *
-     * @param indexEncodingResult the output of {@link IndexEncodingUtils#encode}, i.e. the ordered list of keys,
+     * @param indexEncoding the output of {@link IndexEncodingUtils#encode}, i.e. the ordered list of keys,
      * a map of indices to values, and a checksum of the ordered key list. Every index must be
-     * a valid index into the list of keys.
+     * a valid index into the list of keys
      * @param valueMapper a mapping function applied to values before placing them into the result map
-     * @throws SafeIllegalArgumentException if the provided checksum does not match the checksum of the ordered keys
+     * @throws SafeIllegalArgumentException if the provided checksum does not match the actual checksum of the ordered
+     * keys or if {@code indexToValue} contains indices that are not valid for the list of keys
      */
     public static <K extends DeterministicHashable, V, R> Map<K, R> decode(
-            IndexEncodingResult<K, V> indexEncodingResult, Function<V, R> valueMapper) {
-        KeyListChecksum expectedChecksum = indexEncodingResult.keyListChecksum();
-        KeyListChecksum actualChecksum = computeChecksum(expectedChecksum.type(), indexEncodingResult.keyList());
+            IndexEncodingResult<K, V> indexEncoding, Function<V, R> valueMapper) {
+        List<K> keyList = indexEncoding.keyList();
+        KeyListChecksum expectedChecksum = indexEncoding.keyListChecksum();
+        KeyListChecksum actualChecksum = computeChecksum(expectedChecksum.type(), keyList);
         Preconditions.checkArgument(
                 actualChecksum.equals(expectedChecksum),
                 "Key list integrity check failed",
-                UnsafeArg.of("keyList", indexEncodingResult.keyList()),
+                UnsafeArg.of("keyList", keyList),
                 UnsafeArg.of("actualChecksum", actualChecksum),
                 UnsafeArg.of("expectedChecksum", expectedChecksum));
 
-        Map<Integer, V> indexToValue = indexEncodingResult.indexToValue();
-        Map<K, R> keyToValue = Maps.newHashMapWithExpectedSize(indexToValue.size());
-        for (Map.Entry<Integer, V> entry : indexToValue.entrySet()) {
-            keyToValue.put(indexEncodingResult.keyList().get(entry.getKey()), valueMapper.apply(entry.getValue()));
+        Map<K, R> keyToValue =
+                Maps.newHashMapWithExpectedSize(indexEncoding.indexToValue().size());
+        for (Map.Entry<Integer, V> entry : indexEncoding.indexToValue().entrySet()) {
+            int index = entry.getKey();
+            Preconditions.checkArgument(
+                    index >= 0 && index < keyList.size(),
+                    "Index map contains invalid index",
+                    UnsafeArg.of("index", index),
+                    UnsafeArg.of("keyListSize", keyList.size()));
+            keyToValue.put(keyList.get(index), valueMapper.apply(entry.getValue()));
         }
         return keyToValue;
     }
@@ -146,10 +155,10 @@ static <K extends DeterministicHashable> KeyListChecksum computeChecksum(
     public interface IndexEncodingResult<K extends DeterministicHashable, V> {
         List<K> keyList();
 
-        Map<Integer, V> indexToValue();
-
         KeyListChecksum keyListChecksum();
 
+        Map<Integer, V> indexToValue();
+
         static <K extends DeterministicHashable, V> ImmutableIndexEncodingResult.Builder<K, V> builder() {
             return ImmutableIndexEncodingResult.builder();
         }u}(j (0b58032be524b123a6168ca06b432516b269cdbcjx Katlasdb-commons/src/test/java/com/palantir/util/IndexEncodingUtilsTest.javajz modifiedjr Kjs Kj| Kj} https://github.com/palantir/atlasdb/blob/03a9e35e0fc131130205b156d9e2a23b979dfe77/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaj https://github.com/palantir/atlasdb/raw/03a9e35e0fc131130205b156d9e2a23b979dfe77/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.java?ref=03a9e35e0fc131130205b156d9e2a23b979dfe77j X  @@ -77,12 +77,12 @@ public void setup() {
     }
 
     @Test
-    public void canLookupChecksumType() {
+    public void canLookupValidChecksumType() {
         assertThat(ChecksumType.valueOf(checksumType.getId())).isEqualTo(checksumType);
     }
 
     @Test
-    public void throwsForUnknownChecksumType() {
+    public void cannotLookupUnknownChecksumType() {
         assertThatException()
                 .isThrownBy(() -> ChecksumType.valueOf(-1))
                 .isInstanceOf(SafeIllegalArgumentException.class)
@@ -96,7 +96,7 @@ public void canEncodeSimpleData() {
     }
 
     @Test
-    public void canEncodeAndDecodeSimpleData() {
+    public void canDecodeSimpleData() {
         assertThat(IndexEncodingUtils.decode(encoded, Function.identity())).containsExactlyInAnyOrderEntriesOf(VALUES);
     }
 
@@ -118,16 +118,29 @@ public void canDecodeWithCustomValueMapper() {
     }
 
     @Test
-    public void encodeChecksForUnknownKeysInValueMap() {
+    public void encodeFailsForUnknownKeysInValueMap() {
         assertThatException()
                 .isThrownBy(() -> IndexEncodingUtils.encode(
                         KEYS, ImmutableMap.of(dh("unknown-key"), 0L), Function.identity(), checksumType))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .withMessage(SafeExceptions.renderMessage(
-                        "keyToValue contains keys that are not in the key list",
+                        "Value map uses keys that are not in the provided set of keys",
                         UnsafeArg.of("unknownKeys", ImmutableSet.of(dh("unknown-key")))));
     }
 
+    @Test
+    public void decodeFailsForInvalidIndices() {
+        IndexEncodingResult<DH<String>, Long> encodedWithInvalidIndices =
+                ImmutableIndexEncodingResult.copyOf(encoded).withIndexToValue(ImmutableMap.of(KEYS.size(), 17L));
+        assertThatException()
+                .isThrownBy(() -> IndexEncodingUtils.decode(encodedWithInvalidIndices, Function.identity()))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .withMessage(SafeExceptions.renderMessage(
+                        "Index map contains invalid index",
+                        UnsafeArg.of("index", KEYS.size()),
+                        UnsafeArg.of("keyListSize", KEYS.size())));
+    }
+
     @Test
     public void integrityCheckFailsForDifferentKeyList() {
         List<DH<String>> modifiedKeyList = new ArrayList<>(KEYS);
@@ -160,14 +173,14 @@ public void integrityCheckFailsForDifferentChecksum() {
     }
 
     @Test
-    public void decodeAndEncodeAreEqualForRandomData() {
+    public void decodingEncodedDataYieldsOriginalForRandomData() {
         Random rand = new Random();
         Set<DH<UUID>> keys = Stream.generate(UUID::randomUUID)
                 .limit(1000)
                 .map(IndexEncodingUtilsTest::dh)
                 .collect(Collectors.toSet());
         Map<DH<UUID>, Long> data = KeyedStream.of(keys.stream())
-                .filter(unused -> rand.nextBoolean())
+                .filter(_unused -> rand.nextBoolean())
                 .map(_unused -> rand.nextLong())
                 .collectToMap();
         Assertions.assertThat(IndexEncodingUtils.decode(ueu(83a74c81324c1af7f370baed8c0f2ca00f13ece8}(sha(83a74c81324c1af7f370baed8c0f2ca00f13ece8node_idEC_kwDOAjP5fdoAKDgzYTc0YzgxMzI0YzFhZjdmMzcwYmFlZDhjMGYyY2EwMGYxM2VjZTgcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-07-09T19:16:20Zu	committer}(j David Schlosnaglej davids@palantir.comj 2023-07-09T19:17:10ZumessageAddress review commentstree}(j (58c488ce3abd3b0b208178f302f0e9e6a17cc198url`https://api.github.com/repos/palantir/atlasdb/git/trees/58c488ce3abd3b0b208178f302f0e9e6a17cc198uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/83a74c81324c1af7f370baed8c0f2ca00f13ece8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmSrB7YACgkQR9hsJ74Q
0l9kOwgAy39xcgX406NXLzN2KfonyQC6dBsEy01EP7IrMJOu0PxrJKGHh1UjORmd
BCKG42JpsgR9VGnIAl0S4mdOC3mmIjUPV1sbpMajJvXK5L2JQMNpevYtVMntLQeP
BqG8IF6ITZzeGAxE1reo7sT4/MJqNRBu8UNlGYse94CcF+L4d2p/RWG273jYWNW/
WtjRUCfZ5LI9V6ie+oI72B64RiZtRcXRFp8dcFsiDKNE1DuYDUnr5sgUU/a3rWSm
adcyPLWYgun0ve8HACoMwoTjH+wefQTEyP6dz5PmECz4tYIUXTwi4kHhtCeD2Awt
Y+YtMQdHI2T6yNe5P3AaqwqWmZCWlA==
=5lQG
-----END PGP SIGNATURE-----payloadtree 58c488ce3abd3b0b208178f302f0e9e6a17cc198
parent c2770b780d8edafc8ef55b8b308cf76d26612c24
author David Schlosnagle <davids@palantir.com> 1688930180 -0400
committer David Schlosnagle <davids@palantir.com> 1688930230 -0400

Address review comments
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/83a74c81324c1af7f370baed8c0f2ca00f13ece8html_urlShttps://github.com/palantir/atlasdb/commit/83a74c81324c1af7f370baed8c0f2ca00f13ece8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/83a74c81324c1af7f370baed8c0f2ca00f13ece8/commentsj }(loginschlosnaidMBj MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j %https://api.github.com/users/schlosnaj https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj }(j schlosnaj MBj MDQ6VXNlcjU0NTk0j 1https://avatars.githubusercontent.com/u/54594?v=4j h5j %https://api.github.com/users/schlosnaj https://github.com/schlosnaj /https://api.github.com/users/schlosna/followersj <https://api.github.com/users/schlosna/following{/other_user}j 5https://api.github.com/users/schlosna/gists{/gist_id}j <https://api.github.com/users/schlosna/starred{/owner}{/repo}j 3https://api.github.com/users/schlosna/subscriptionsj *https://api.github.com/users/schlosna/orgsj +https://api.github.com/users/schlosna/reposj 6https://api.github.com/users/schlosna/events{/privacy}j 5https://api.github.com/users/schlosna/received_eventsj Userj uparents]}(j (c2770b780d8edafc8ef55b8b308cf76d26612c24j ^https://api.github.com/repos/palantir/atlasdb/commits/c2770b780d8edafc8ef55b8b308cf76d26612c24j Shttps://github.com/palantir/atlasdb/commit/c2770b780d8edafc8ef55b8b308cf76d26612c24uastats}(totalK!	additionsK	deletionsKufiles]}(j (f450ccb4a339d65b15ed3d95e08fb4b54195455bfilenameiatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/thrift/ThriftObjectSizeUtils.javastatusmodifiedj Kj KchangesK!blob_urlhttps://github.com/palantir/atlasdb/blob/83a74c81324c1af7f370baed8c0f2ca00f13ece8/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fthrift%2FThriftObjectSizeUtils.javaraw_urlhttps://github.com/palantir/atlasdb/raw/83a74c81324c1af7f370baed8c0f2ca00f13ece8/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fthrift%2FThriftObjectSizeUtils.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fthrift%2FThriftObjectSizeUtils.java?ref=83a74c81324c1af7f370baed8c0f2ca00f13ece8patchX	  @@ -25,6 +25,7 @@
 import java.util.function.Function;
 import java.util.function.ToLongFunction;
 import java.util.stream.Collectors;
+import javax.annotation.Nullable;
 import org.apache.cassandra.thrift.Column;
 import org.apache.cassandra.thrift.ColumnOrSuperColumn;
 import org.apache.cassandra.thrift.CounterColumn;
@@ -286,27 +287,47 @@ private static <T> long getBytesSize(T data, Function<T, ByteBuffer> toByteBuffe
         return byteBuffer.remaining();
     }
 
-    public static <T> long getCollectionSize(Collection<T> collection, ToLongFunction<T> sizeFunction) {
+    public static <T> long getCollectionSize(@Nullable Collection<T> collection, ToLongFunction<T> sizeFunction) {
         if (collection == null) {
             return getNullSize();
         }
 
-        long sum = 0L;
-        if (collection instanceof List && collection instanceof RandomAccess) {
-            List<T> list = (List<T>) collection;
+        // random access lists can be more efficiently accessed via List::get(int)
+        // as this avoids allocating iterator
+        if (isRandomAccessList(collection)) {
+            return getCollectionSize((List<T>) collection, sizeFunction);
+        }
+        return sumSizes(collection, sizeFunction);
+    }
+
+    private static <T> long getCollectionSize(@Nullable List<T> list, ToLongFunction<T> sizeFunction) {
+        if (list == null) {
+            return getNullSize();
+        }
 
-            // random access lists can be more efficiently accessed via List::get(int)
-            // as this avoids allocating iterator
+        // random access lists can be more efficiently accessed via List::get(int)
+        // as this avoids allocating iterator
+        if (isRandomAccessList(list)) {
+            long sum = 0L;
             //noinspection ForLoopReplaceableByForEach -- performance sensitive
             for (int i = 0; i < list.size(); i++) {
                 sum += sizeFunction.applyAsLong(list.get(i));
             }
             return sum;
         }
 
+        return sumSizes(list, sizeFunction);
+    }
+
+    private static <T> long sumSizes(Collection<T> collection, ToLongFunction<T> sizeFunction) {
+        long sum = 0L;
         for (T t : collection) {
             sum += sizeFunction.applyAsLong(t);
         }
         return sum;
     }
+
+    private static <T> boolean isRandomAccessList(Collection<T> collection) {
+        return collection instanceof RandomAccess && collection instanceof List;
+    }
 }uau(71d1326a25ab78a97a387d0be4f4c8320a031ba3}(sha(71d1326a25ab78a97a387d0be4f4c8320a031ba3node_idEC_kwDOAjP5fdoAKDcxZDEzMjZhMjVhYjc4YTk3YTM4N2QwYmU0ZjRjODMyMGEwMzFiYTMcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-23T16:22:11Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-23T16:22:11Zumessageimprtree}(j (e12e6a6f96a93d53d1a65d2fef1d115937e4e92eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/e12e6a6f96a93d53d1a65d2fef1d115937e4e92euj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/71d1326a25ab78a97a387d0be4f4c8320a031ba3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRs6DMACgkQPlMHVIT1
yhrPbQf/b0wwbI+Ryp2VHNIYIvfqvRBbRLNAoH7JwvOUkbvCUt6YXcazShsgQ3y7
2k/czynTMbHKrY84LESPiW0PL63HMVr7xF5T80vOQ362kQkAXAMNgm/NH+6L/UjH
wLZAYYrFWSuwp3gz05+IVbPWZZhgl29qPo7Myb4Ksg+Zvbt9vPzwJ+ep3Ft0+GOx
+K4B+ccenBliC5xBTtYXlW6DL4dXnAcx4lW2+Uo+YyIl565sZOCjfN87224L7DFc
wTO+5P6kqGQ47M88J7KNjqPDYiVzSTc/taWwV3Q3Rg2jlgDxFZZq/g2j9JCYYuL6
jxcIj81g29PcxTWCgZ9L2ogTnNt/Zg==
=yYHZ
-----END PGP SIGNATURE-----payloadtree e12e6a6f96a93d53d1a65d2fef1d115937e4e92e
parent 556a0a85a7424531ce43b62423c44e2571bd3c83
author Ahmed Alouane <aalouane@palantir.com> 1684858931 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684858931 +0100

impr
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/71d1326a25ab78a97a387d0be4f4c8320a031ba3html_urlShttps://github.com/palantir/atlasdb/commit/71d1326a25ab78a97a387d0be4f4c8320a031ba3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/71d1326a25ab78a97a387d0be4f4c8320a031ba3/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j, https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j1 ergo14j3 Jj MDQ6VXNlcjMwOTAzNzM2j5 4https://avatars.githubusercontent.com/u/30903736?v=4j7 h5j #https://api.github.com/users/ergo14j, https://github.com/ergo14j: -https://api.github.com/users/ergo14/followersj< :https://api.github.com/users/ergo14/following{/other_user}j> 3https://api.github.com/users/ergo14/gists{/gist_id}j@ :https://api.github.com/users/ergo14/starred{/owner}{/repo}jB 1https://api.github.com/users/ergo14/subscriptionsjD (https://api.github.com/users/ergo14/orgsjF )https://api.github.com/users/ergo14/reposjH 4https://api.github.com/users/ergo14/events{/privacy}jJ 3https://api.github.com/users/ergo14/received_eventsjL UserjN uparents]}(j (556a0a85a7424531ce43b62423c44e2571bd3c83j ^https://api.github.com/repos/palantir/atlasdb/commits/556a0a85a7424531ce43b62423c44e2571bd3c83j, Shttps://github.com/palantir/atlasdb/commit/556a0a85a7424531ce43b62423c44e2571bd3c83uastats}(totalK!	additionsK	deletionsKufiles](}(j (982015fb84f66f4ff7b7b463873911a4162906affilename.circleci/config.ymlstatusmodifiedjh Kji KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/71d1326a25ab78a97a387d0be4f4c8320a031ba3/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/71d1326a25ab78a97a387d0be4f4c8320a031ba3/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=71d1326a25ab78a97a387d0be4f4c8320a031ba3patchX  @@ -17,7 +17,8 @@ jobs:
           key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
 
       - run: git tag -l | xargs git tag -d && git fetch -t # ensure all tags are fetched and up-to-date
-      - run: ./gradlew --scan --profile --parallel --stacktrace classes testClasses
+      - run: ./gradlew --scan --profile --parallel --stacktrace -PenableErrorProne=true classes testClasses compileJava compileTestJava
+      - run: ./scripts/circle-ci/check-docs-build.sh
 
       - save_cache:
           key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
@@ -155,7 +156,7 @@ workflows:
             alias: test-no-tl
             parameters:
               # intentionally excluding 13 (TimeLock migration ETE test) from this collection
-              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14]
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
           filters:
             tags:
               only: /.*/u}(j (2f38bc124be132743c0efabf5e17417ff633ffeejn %scripts/circle-ci/check-docs-build.shjp addedjh Kji K jr Kjs {https://github.com/palantir/atlasdb/blob/71d1326a25ab78a97a387d0be4f4c8320a031ba3/scripts%2Fcircle-ci%2Fcheck-docs-build.shju zhttps://github.com/palantir/atlasdb/raw/71d1326a25ab78a97a387d0be4f4c8320a031ba3/scripts%2Fcircle-ci%2Fcheck-docs-build.shjw https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fcheck-docs-build.sh?ref=71d1326a25ab78a97a387d0be4f4c8320a031ba3jy XP  @@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+pyenv install 3.5.4
+pyenv global 3.5.4
+# these versions are quite old, but the docs all stop building on newer versions. Since the docs publish has now been failing for like 6 months, I'm trying to maintain the status quo.
+pip3 install sphinx==3.5.4 sphinx_rtd_theme==0.5.0 requests==2.24.0 recommonmark==0.6.0 pygments==2.5.2 markupsafe==1.1.1 jinja2==2.11.2 alabaster==0.7.12 babel==2.8.0 certifi==2020.6.20 sphinxcontrib-websupport==1.1.2 setuptools==44.1.1 typing==3.7.4.3 urllib3==1.25.10 snowballstemmer==2.0.0 six==1.15.0
+cd docs/
+make htmlu}(j (6708187c3bcec4b85a4e8e6e8c009b3e355e2414jn %scripts/circle-ci/run-circle-tests.shjp modifiedjh Kji Kjr Kjs {https://github.com/palantir/atlasdb/blob/71d1326a25ab78a97a387d0be4f4c8320a031ba3/scripts%2Fcircle-ci%2Frun-circle-tests.shju zhttps://github.com/palantir/atlasdb/raw/71d1326a25ab78a97a387d0be4f4c8320a031ba3/scripts%2Fcircle-ci%2Frun-circle-tests.shjw https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=71d1326a25ab78a97a387d0be4f4c8320a031ba3jy X
  @@ -4,14 +4,6 @@ set -x
 
 BASE_GRADLE_ARGS="--profile"
 
-function checkDocsBuild {
-     pyenv install 3.5.4
-     pyenv global 3.5.4
-     # these versions are quite old, but the docs all stop building on newer versions. Since the docs publish has now been failing for like 6 months, I'm trying to maintain the status quo.
-     pip3 install sphinx==3.5.4 sphinx_rtd_theme==0.5.0 requests==2.24.0 recommonmark==0.6.0 pygments==2.5.2 markupsafe==1.1.1 jinja2==2.11.2 alabaster==0.7.12 babel==2.8.0 certifi==2020.6.20 sphinxcontrib-websupport==1.1.2 setuptools==44.1.1 typing==3.7.4.3 urllib3==1.25.10 snowballstemmer==2.0.0 six==1.15.0
-     cd docs/
-     make html
-}
 
 CONTAINER_1=(':atlasdb-cassandra-integration-tests:testSubset1')
 
@@ -39,8 +31,6 @@ CONTAINER_12=(':atlasdb-dbkvs:check' ':atlasdb-cassandra:check' )
 
 CONTAINER_13=(':atlasdb-ete-tests:timeLockMigrationTest')
 
-CONTAINER_14=('compileJava' 'compileTestJava')
-
 # Excluded as it is split into two subsets
 EXCLUDED=(':atlasdb-cassandra-integration-tests:check')
 
@@ -57,7 +47,7 @@ test_suite_index=$1
 # Short circuit the build if it's docs only
 if ./scripts/circle-ci/check-only-docs-changes.sh; then
     if [ "$test_suite_index" -eq 0 ]; then
-        checkDocsBuild
+        ./scripts/circle-ci/check-docs-build.sh
         exit $?
     fi
     exit 0
@@ -74,14 +64,11 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -XX:+HeapDumpOnOutOfMemoryEr
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
-# External builds have a 16gb limit.
-if [ "$test_suite_index" -eq "14" ]; then
-    export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
-elif [ "$test_suite_index" -eq "3" ]; then
+if [ "$test_suite_index" -eq "3" ]; then
     export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
     BASE_GRADLE_ARGS+=" --scan --parallel"
 else
-    export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
+    export _JAVA_OPTIONS="-Xms4g -Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
     BASE_GRADLE_ARGS+=" --scan --parallel"
 fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
@@ -102,5 +89,4 @@ case "$test_suite_index" in
     11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} ;;
     12) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_12[@]} ;;
     13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_13[@]} ;;
-    14) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_14[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
 esacueu(01d6635992db36b0e036a0843ec582af011bf489}(sha(01d6635992db36b0e036a0843ec582af011bf489node_idEC_kwDOAjP5fdoAKDAxZDY2MzU5OTJkYjM2YjBlMDM2YTA4NDNlYzU4MmFmMDExYmY0ODkcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-08-02T10:45:58Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-08-02T10:45:58Zumessagespotlesstree}(j (ddbc238f720794c54f6860a2a72adf894dbc7117url`https://api.github.com/repos/palantir/atlasdb/git/trees/ddbc238f720794c54f6860a2a72adf894dbc7117uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/01d6635992db36b0e036a0843ec582af011bf489
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmTKM+YACgkQJd22kJ7J
Giyf2Af/fpcX6mSjPI1494AMA+gd5bTi95Yznno4tPEadgHN6lbVzn6amTOYW9MI
PONaXMcPl3mB1A0gXkvy5BIQZDWZMFxMlAVnpg2akv7F4Bn9/iq4x5rLWHDoKb1R
i2fcA1Y7H+jWN0KmjnGaKz3+NrfPzPZkp5Boxey2nQZsbG5tHWSHfHrkkepitdUj
Xclu5qWRjbwe4UA1mghOJd6ROi1dthURpWeZ47tn2Ay/ko8D+lygexuwJqnq/4xE
c+eAAD3QmXtYjAsZBP+z8+d/ENt26XrQ2cWlHhXCS8umXY78g4RpFp6RMmIYE5V7
iugex+raFlGpqPoCudAFHfmmF4gbQQ==
=+7eI
-----END PGP SIGNATURE-----payloadtree ddbc238f720794c54f6860a2a72adf894dbc7117
parent bbb5b6583ab92624d21ca5605f8ea6dabad2e164
author Lucas Meireles <meireles31@msn.com> 1690973158 +0100
committer Lucas Meireles <meireles31@msn.com> 1690973158 +0100

spotless
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/01d6635992db36b0e036a0843ec582af011bf489html_urlShttps://github.com/palantir/atlasdb/commit/01d6635992db36b0e036a0843ec582af011bf489comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/01d6635992db36b0e036a0843ec582af011bf489/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j LucasIMEj Jg j MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsj Userj uparents]}(j (bbb5b6583ab92624d21ca5605f8ea6dabad2e164j ^https://api.github.com/repos/palantir/atlasdb/commits/bbb5b6583ab92624d21ca5605f8ea6dabad2e164j Shttps://github.com/palantir/atlasdb/commit/bbb5b6583ab92624d21ca5605f8ea6dabad2e164uastats}(totalK	additionsK	deletionsKufiles]}(j (d978970bf81bc4ac1b0d7617ec277c9509215439filenamedatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/01d6635992db36b0e036a0843ec582af011bf489/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/01d6635992db36b0e036a0843ec582af011bf489/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.java?ref=01d6635992db36b0e036a0843ec582af011bf489patchX  @@ -357,8 +357,7 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(TableReference tableRef, Set
      * filtering and change the number of expect cells it sends to the super class.
      */
     @VisibleForTesting
-    ListenableFuture<Map<Cell, byte[]>> getWithLoader(
-            TableReference tableRef, Set<Cell> cells, CellLoader cellLoader) {
+    ListenableFuture<Map<Cell, byte[]>> getWithLoader(TableReference tableRef, Set<Cell> cells, CellLoader cellLoader) {
         CellResultLoader resultLoader = (table, toRead) -> {
             ListenableFuture<Map<Cell, byte[]>> future = cellLoader.load(table, toRead);
             return Futures.transform(future, response -> new Result.Ok<>(response), MoreExecutors.directExecutor());uau(21e99719a8e7d19514f47d82d64ccde8c77a6c70}(sha(21e99719a8e7d19514f47d82d64ccde8c77a6c70node_idEC_kwDOAjP5fdoAKDIxZTk5NzE5YThlN2QxOTUxNGY0N2Q4MmQ2NGNjZGU4Yzc3YTZjNzAcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-16T18:45:19Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-16T18:45:19ZumessageEmpty-Committree}(j (438e5f0f1fccf9cc5ed27057cdde200ae6045f3eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/438e5f0f1fccf9cc5ed27057cdde200ae6045f3euj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/21e99719a8e7d19514f47d82d64ccde8c77a6c70
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRjzz8ACgkQPlMHVIT1
yhqhFwf+OsIoMNeBVWGYJt/VkLPa3VNtYsLUYKyDmlxTHBbLaUuDzmM5DPsTP986
L8Jfw60nAMLgKkpu8IysS5NDtsI42EThnbTLzKRFcyfuLl5+IuVwEiBl/8Jh+ZmI
VC+MdGyjq44cA3J9WU50JQElJyH4vOGJ586nOKxfBpQpqLdl0QK2Zq4niygVrIWC
i6iKYYBvH16CJLJWzP2esGRma2RhG7X/gvRz0nI8sZ1vINkj8uXu4vbVFIkTCq3+
R7ZtqH7BeJtsnTQq5n5TrXNxYqSl3O/fSw7+RD64iDzI6Vp9V8scJnkZR3IJEaCJ
45TY/T6lYybzhVGU4b4hoDo/08mYFw==
=M5j8
-----END PGP SIGNATURE-----payloadtree 438e5f0f1fccf9cc5ed27057cdde200ae6045f3e
parent 46037f23331b3225be37f2bde2c49edaef74b913
author Ahmed Alouane <aalouane@palantir.com> 1684262719 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684262719 +0100

Empty-Commit
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/21e99719a8e7d19514f47d82d64ccde8c77a6c70html_urlShttps://github.com/palantir/atlasdb/commit/21e99719a8e7d19514f47d82d64ccde8c77a6c70comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/21e99719a8e7d19514f47d82d64ccde8c77a6c70/commentsj
 }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j* https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j/ ergo14j1 Jj MDQ6VXNlcjMwOTAzNzM2j3 4https://avatars.githubusercontent.com/u/30903736?v=4j5 h5j #https://api.github.com/users/ergo14j* https://github.com/ergo14j8 -https://api.github.com/users/ergo14/followersj: :https://api.github.com/users/ergo14/following{/other_user}j< 3https://api.github.com/users/ergo14/gists{/gist_id}j> :https://api.github.com/users/ergo14/starred{/owner}{/repo}j@ 1https://api.github.com/users/ergo14/subscriptionsjB (https://api.github.com/users/ergo14/orgsjD )https://api.github.com/users/ergo14/reposjF 4https://api.github.com/users/ergo14/events{/privacy}jH 3https://api.github.com/users/ergo14/received_eventsjJ UserjL uparents]}(j (46037f23331b3225be37f2bde2c49edaef74b913j ^https://api.github.com/repos/palantir/atlasdb/commits/46037f23331b3225be37f2bde2c49edaef74b913j* Shttps://github.com/palantir/atlasdb/commit/46037f23331b3225be37f2bde2c49edaef74b913uastats}(totalK 	additionsK 	deletionsK ufiles]u(7c3793450ef2938d7eb104cafc6737f66a3937b7}(sha(7c3793450ef2938d7eb104cafc6737f66a3937b7node_idEC_kwDOAjP5fdoAKDdjMzc5MzQ1MGVmMjkzOGQ3ZWIxMDRjYWZjNjczN2Y2NmEzOTM3Yjccommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-17T22:16:11Zu	committer}(jt Jeremy Kongjv jkong@palantir.comjx 2023-05-17T22:16:11Zumessagebootree}(jl (bd4776a3de93468692d8d466c39d2fed37bbdbedurl`https://api.github.com/repos/palantir/atlasdb/git/trees/bd4776a3de93468692d8d466c39d2fed37bbdbeduj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7c3793450ef2938d7eb104cafc6737f66a3937b7
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRlUisACgkQTLdFKain
zjzM+Qf7BjQ/aSlimnvG0LPeLxpeS1cjz0THx0m+xnRlt4w/VPNEslCQ887tuJBQ
d6tYNdnWKom+Mpzo/N6f1L+2caEAp78hOB2vqPRaVCBIZvvcG+ry13n/cMmpdbz+
A/bjVqsXe08siX2wqI6zfY9J1ZnsmPmDWaheB3ED4xnAzxxJqP0erH9HEeEhhKCp
nPL/E5zkmQivpvAAOoEl/ef7bhKBwK8hoxnBlaEHydWjFnCDlr3IbbGiVCnCvzHr
IN8Guagj7sJC8yXgc0D+E/k2IPfCMRvEgQfHwoRf6YoE3XB2J+pVUVV1U5sJMmWA
zWU1qiH0YSY+9zclHEKhRx5Sg2hiuQ==
=as54
-----END PGP SIGNATURE-----payloadtree bd4776a3de93468692d8d466c39d2fed37bbdbed
parent 7a3a1b30b6ff647bd8d924697550793ef6b72944
author Jeremy Kong <jkong@palantir.com> 1684361771 +0100
committer Jeremy Kong <jkong@palantir.com> 1684361771 +0100

boo
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/7c3793450ef2938d7eb104cafc6737f66a3937b7html_urlShttps://github.com/palantir/atlasdb/commit/7c3793450ef2938d7eb104cafc6737f66a3937b7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7c3793450ef2938d7eb104cafc6737f66a3937b7/commentsjr }(login
jeremyk-91idJZ jn MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujz }(j 
jeremyk-91j JZ jn MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(jl (7a3a1b30b6ff647bd8d924697550793ef6b72944j ^https://api.github.com/repos/palantir/atlasdb/commits/7a3a1b30b6ff647bd8d924697550793ef6b72944j Shttps://github.com/palantir/atlasdb/commit/7a3a1b30b6ff647bd8d924697550793ef6b72944uastats}(totalM	additionsM:	deletionsK[ufiles](}(jl (ca0c16d695e46cb25d2d51cee13f633719486685filenamematlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/CrossCellInconsistency.javastatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/7c3793450ef2938d7eb104cafc6737f66a3937b7/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistency.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7c3793450ef2938d7eb104cafc6737f66a3937b7/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistency.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistency.java?ref=7c3793450ef2938d7eb104cafc6737f66a3937b7patch@@ -21,6 +21,7 @@
 import com.palantir.logsafe.SafeArg;
 import java.util.Map;
 import java.util.Optional;
+import java.util.Set;
 import org.immutables.value.Value;
 
 /**u}(jl (c1fa42a559a15782b9632bca7b8dbf4147d48773j aatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ValueReference.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/7c3793450ef2938d7eb104cafc6737f66a3937b7/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValueReference.javaj https://github.com/palantir/atlasdb/raw/7c3793450ef2938d7eb104cafc6737f66a3937b7/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValueReference.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValueReference.java?ref=7c3793450ef2938d7eb104cafc6737f66a3937b7j X  @@ -0,0 +1,27 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ValueReference {
+    TableAndWorkloadCell tableAndWorkloadCell();
+
+    Integer value();
+}u}(jl (367d35121261e5f181227f1d91dcec50980261a4j aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/IndexInvariant.javaj addedj Kfj K j Kfj https://github.com/palantir/atlasdb/blob/7c3793450ef2938d7eb104cafc6737f66a3937b7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FIndexInvariant.javaj https://github.com/palantir/atlasdb/raw/7c3793450ef2938d7eb104cafc6737f66a3937b7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FIndexInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FIndexInvariant.java?ref=7c3793450ef2938d7eb104cafc6737f66a3937b7j X  @@ -0,0 +1,102 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.store.ImmutableValueReference;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.ValueReference;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import java.util.function.UnaryOperator;
+
+/**
+ * This invariant checks that an index (which can be a table, row or defined in some other way) is consistent with
+ * cells in a base table.
+ */
+public final class IndexInvariant implements Invariant<List<CrossCellInconsistency>> {
+    private final Function<ReadableTransactionStore, Map<TableAndWorkloadCell, Integer>> baseReader;
+    private final Function<ReadableTransactionStore, Map<TableAndWorkloadCell, Integer>> indexReader;
+    private final UnaryOperator<ValueReference> expectedIndexGivenCell;
+    private final UnaryOperator<ValueReference> expectedCellGivenIndex;
+
+    public IndexInvariant(Function<ReadableTransactionStore, Map<TableAndWorkloadCell, Integer>> baseReader, Function<ReadableTransactionStore, Map<TableAndWorkloadCell, Integer>> indexReader, UnaryOperator<ValueReference> expectedIndexGivenCell, UnaryOperator<ValueReference> expectedCellGivenIndex) {
+        this.baseReader = baseReader;
+        this.indexReader = indexReader;
+        this.expectedIndexGivenCell = expectedIndexGivenCell;
+        this.expectedCellGivenIndex = expectedCellGivenIndex;
+    }
+
+
+    public static IndexInvariant createWithinSameTable(Function<ReadableTransactionStore, Map<TableAndWorkloadCell, Integer>> baseReader, Function<ReadableTransactionStore, Map<TableAndWorkloadCell, Integer>> indexReader, UnaryOperator<WorkloadCell> expectedIndexGivenCell, UnaryOperator<WorkloadCell> expectedCellGivenIndex) {
+        return new IndexInvariant(
+                baseReader,
+                indexReader,
+                baseValue -> ImmutableValueReference.builder()
+                        .from(baseValue)
+                        .tableAndWorkloadCell(TableAndWorkloadCell.of(baseValue.tableAndWorkloadCell().tableName(),
+                                expectedIndexGivenCell.apply(baseValue.tableAndWorkloadCell().cell())))
+                        .build(),
+                indexValue -> ImmutableValueReference.builder()
+                        .from(indexValue)
+                        .tableAndWorkloadCell(TableAndWorkloadCell.of(indexValue.tableAndWorkloadCell().tableName(),
+                                expectedCellGivenIndex.apply(indexValue.tableAndWorkloadCell().cell())))
+                        .build()
+        );
+    }
+
+    @Override
+    public void accept(WorkflowHistory workflowHistory, Consumer<List<CrossCellInconsistency>> violationsConsumer) {
+        // TODO (jkong): Add support for finding inconsistency in the middle of a workflow.
+        violationsConsumer.accept(findInconsistencyInEndState(workflowHistory.transactionStore()));
+    }
+
+    private List<CrossCellInconsistency> findInconsistencyInEndState(ReadableTransactionStore readableTransactionStore) {
+        List<CrossCellInconsistency> violations = new ArrayList<>();
+        Map<TableAndWorkloadCell, Integer> index = indexReader.apply(readableTransactionStore);
+        Map<TableAndWorkloadCell, Integer> baseCells = baseReader.apply(readableTransactionStore);
+
+        violations.addAll(findHangingReferences(baseCells, expectedIndexGivenCell, index));
+        violations.addAll(findHangingReferences(index, expectedCellGivenIndex, baseCells));
+        return violations;
+    }
+
+    private List<CrossCellInconsistency> findHangingReferences(Map<TableAndWorkloadCell, Integer> references, UnaryOperator<ValueReference> referenceToExpectedCell, Map<TableAndWorkloadCell, Integer> expectedCellReads) {
+        List<CrossCellInconsistency> violations = new ArrayList<>();
+        for (Map.Entry<TableAndWorkloadCell, Integer> indexValue : references.entrySet()) {
+            ValueReference expectedBase = referenceToExpectedCell.apply(ImmutableValueReference.builder()
+                    .tableAndWorkloadCell(indexValue.getKey())
+                    .value(indexValue.getValue())
+                    .build());
+            Optional<Integer> actualValue = Optional.ofNullable(expectedCellReads.get(expectedBase.tableAndWorkloadCell()));
+            if (!actualValue.equals(Optional.of(expectedBase.value()))) {
+                violations.add(CrossCellInconsistency.builder()
+                        .putInconsistentValues(indexValue.getKey(), Optional.of(indexValue.getValue()))
+                        .putInconsistentValues(expectedBase.tableAndWorkloadCell(), actualValue)
+                        .build());
+            }
+        }
+        return violations;
+    }
+}u}(jl (bfba59820e0cd75e9342e60249183e573e63daa0j latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/IndexInvariantLogReporter.javaj addedj K0j K j K0j https://github.com/palantir/atlasdb/blob/7c3793450ef2938d7eb104cafc6737f66a3937b7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FIndexInvariantLogReporter.javaj https://github.com/palantir/atlasdb/raw/7c3793450ef2938d7eb104cafc6737f66a3937b7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FIndexInvariantLogReporter.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FIndexInvariantLogReporter.java?ref=7c3793450ef2938d7eb104cafc6737f66a3937b7j X  @@ -0,0 +1,48 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.function.Consumer;
+
+public class IndexInvariantLogReporter implements InvariantReporter<List<CrossCellInconsistency>> {
+    private static final SafeLogger log = SafeLoggerFactory.get(IndexInvariantLogReporter.class);
+
+    private final IndexInvariant indexInvariant;
+
+    public IndexInvariantLogReporter(IndexInvariant indexInvariant) {
+        this.indexInvariant = indexInvariant;
+    }
+
+    @Override
+    public Invariant<List<CrossCellInconsistency>> invariant() {
+        return indexInvariant;
+    }
+
+    @Override
+    public Consumer<List<CrossCellInconsistency>> consumer() {
+        return violations -> {
+            if (!violations.isEmpty()) {
+                log.error("Detected rows which did not agree with state in an index: {}",
+                        SafeArg.of("violations", violations));
+            }
+        };
+    }
+}u}(jl (9df6ef26ad9ad9187ae0d4ba9f7df7b808f150b8j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javaj modifiedj K"j KXj Kzj https://github.com/palantir/atlasdb/blob/7c3793450ef2938d7eb104cafc6737f66a3937b7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj https://github.com/palantir/atlasdb/raw/7c3793450ef2938d7eb104cafc6737f66a3937b7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=7c3793450ef2938d7eb104cafc6737f66a3937b7j X(%  @@ -21,8 +21,11 @@
 import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
 import com.palantir.atlasdb.workload.invariant.CrossCellInconsistency;
 import com.palantir.atlasdb.workload.invariant.ImmutableInvariantReporter;
+import com.palantir.atlasdb.workload.invariant.IndexInvariant;
+import com.palantir.atlasdb.workload.invariant.IndexInvariantLogReporter;
 import com.palantir.atlasdb.workload.invariant.Invariant;
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.store.ImmutableValueReference;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
@@ -38,11 +41,14 @@
 import java.security.SecureRandom;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 import java.util.stream.Stream;
+import one.util.streamex.EntryStream;
+import one.util.streamex.StreamEx;
 
 public final class TransientRowsWorkflows {
     private static final SafeLogger log = SafeLoggerFactory.get(TransientRowsWorkflows.class);
@@ -58,7 +64,8 @@ public final class TransientRowsWorkflows {
 
     private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
 
-    private TransientRowsWorkflows() {}
+    private TransientRowsWorkflows() {
+    }
 
     public static Workflow create(
             InteractiveTransactionStore store,
@@ -82,100 +89,39 @@ private static Optional<WitnessedTransaction> run(
                 txn.read(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, indexToRead));
                 txn.read(tableName, ImmutableWorkloadCell.of(indexToRead, COLUMN));
 
-                txn.delete(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex - 1));
-                txn.delete(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN));
+                Optional<Integer> primaryCellValue = txn.read(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN));
+                if (primaryCellValue.isPresent()) {
+                    txn.delete(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex - 1));
+                    txn.delete(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN));
+                }
             }
         });
     }
 
-    public static InvariantReporter<List<CrossCellInconsistency>> getSummaryLogInvariantReporter(
-            TransientRowsWorkflowConfiguration configuration) {
-        return ImmutableInvariantReporter.<List<CrossCellInconsistency>>builder()
-                .invariant(createSummaryRowInvariant(configuration))
-                .consumer(violations -> {
-                    if (!violations.isEmpty()) {
-                        log.error(
-                                "Detected rows which did not agree with state in a summary index: {}",
-                                SafeArg.of("violations", violations));
-                    }
-                })
-                .build();
-    }
-
-    private static Invariant<List<CrossCellInconsistency>> createSummaryRowInvariant(
-            TransientRowsWorkflowConfiguration configuration) {
-        return (workflowHistory, notifier) -> {
-            List<CrossCellInconsistency> violations = new ArrayList<>();
-            ReadableTransactionStore store = workflowHistory.transactionStore();
-
-            violations.addAll(findInconsistencyInTransactionHistory(workflowHistory.history()));
-            violations.addAll(findInconsistencyInFinalIndexState(configuration, store));
-
-            notifier.accept(violations);
-        };
-    }
-
-    private static List<CrossCellInconsistency> findInconsistencyInTransactionHistory(
-            List<WitnessedTransaction> history) {
-        return history.stream()
-                .map(WitnessedTransaction::actions)
-                .flatMap(TransientRowsWorkflows::findInconsistencyInTransactionActions)
-                .collect(Collectors.toList());
-    }
-
-    private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActions(
-            List<WitnessedTransactionAction> actions) {
-        Set<WitnessedReadTransactionAction> readTransactionActions = actions.stream()
-                .filter(action -> action instanceof WitnessedReadTransactionAction)
-                .map(action -> (WitnessedReadTransactionAction) action)
-                .collect(Collectors.toSet());
-        if (readTransactionActions.size() == 0) {
-            return Stream.empty();
-        }
-        WitnessedReadTransactionAction summaryRowRead = readTransactionActions.stream()
-                .filter(action -> action.cell().key() == SUMMARY_ROW)
-                .findAny()
-                .orElseThrow(() -> new SafeIllegalStateException(
-                        "Expected to find a read of the summary row", SafeArg.of("actions", actions)));
-        WitnessedReadTransactionAction normalRowRead = readTransactionActions.stream()
-                .filter(action -> action.cell().key() != SUMMARY_ROW)
-                .findAny()
-                .orElseThrow(() -> new SafeIllegalStateException(
-                        "Expected to find a read of a normal row", SafeArg.of("actions", actions)));
-        if (!summaryRowRead.value().equals(normalRowRead.value())) {
-            return Stream.of(CrossCellInconsistency.builder()
-                    .putInconsistentValues(
-                            TableAndWorkloadCell.of(summaryRowRead.table(), summaryRowRead.cell()),
-                            summaryRowRead.value())
-                    .putInconsistentValues(
-                            TableAndWorkloadCell.of(normalRowRead.table(), normalRowRead.cell()), normalRowRead.value())
-                    .build());
-        } else {
-            return Stream.empty();
-        }
+    public static InvariantReporter<List<CrossCellInconsistency>> invariantReporter(TransientRowsWorkflowConfiguration configuration) {
+        IndexInvariant indexInvariant = IndexInvariant.createWithinSameTable(
+                store -> getPrimaryRowValues(store, configuration),
+                store -> getSummaryRowValues(store, configuration),
+                base -> ImmutableWorkloadCell.of(SUMMARY_ROW, base.key()),
+                index -> ImmutableWorkloadCell.of(index.column(), COLUMN));
+        return new IndexInvariantLogReporter(indexInvariant);
     }
 
-    private static List<CrossCellInconsistency> findInconsistencyInFinalIndexState(
-            TransientRowsWorkflowConfiguration configuration, ReadableTransactionStore store) {
-        List<CrossCellInconsistency> violations = new ArrayList<>();
-        String tableName = configuration.tableConfiguration().tableName();
-        Set<Integer> taskIndices =
-                IntStream.range(0, configuration.iterationCount()).boxed().collect(Collectors.toSet());
-        taskIndices.forEach(index -> checkSummaryConsistencyForIndex(violations, store, tableName, index));
-        return violations;
+    private static Map<TableAndWorkloadCell, Integer> getSummaryRowValues(ReadableTransactionStore store, TransientRowsWorkflowConfiguration configuration) {
+        // Unfortunately, mapToEntryPartial does not exist.
+        return StreamEx.of(IntStream.range(0, configuration.iterationCount()).boxed())
+                .map(index -> TableAndWorkloadCell.of(configuration.tableConfiguration().tableName(), ImmutableWorkloadCell.of(SUMMARY_ROW, index)))
+                .mapToEntry(k -> k, v -> v)
+                .mapToValuePartial((tableAndWorkloadCell, unused) -> store.get(tableAndWorkloadCell.tableName(), tableAndWorkloadCell.cell()))
+                .toMap();
     }
 
-    private static void checkSummaryConsistencyForIndex(
-            List<CrossCellInconsistency> violations, ReadableTransactionStore store, String tableName, Integer index) {
-        WorkloadCell primaryCell = ImmutableWorkloadCell.of(index, COLUMN);
-        Optional<Integer> valueFromPrimaryRow = store.get(tableName, primaryCell);
-        WorkloadCell summaryCell = ImmutableWorkloadCell.of(SUMMARY_ROW, index);
-        Optional<Integer> valueFromSummaryRow = store.get(tableName, summaryCell);
-        if (valueFromSummaryRow.isPresent() ^ valueFromPrimaryRow.isPresent()) {
-            violations.add(CrossCellInconsistency.builder()
-                    .putInconsistentValues(TableAndWorkloadCell.of(tableName, primaryCell), valueFromPrimaryRow)
-                    .putInconsistentValues(TableAndWorkloadCell.of(tableName, summaryCell), valueFromSummaryRow)
-                    .build());
-        }
+    private static Map<TableAndWorkloadCell, Integer> getPrimaryRowValues(ReadableTransactionStore store, TransientRowsWorkflowConfiguration configuration) {
+        // Unfortunately, mapToEntryPartial does not exist.
+        return StreamEx.of(IntStream.range(0, configuration.iterationCount()).boxed())
+                .map(index -> TableAndWorkloadCell.of(configuration.tableConfiguration().tableName(), ImmutableWorkloadCell.of(index, COLUMN)))
+                .mapToEntry(k -> k, v -> v)
+                .mapToValuePartial((tableAndWorkloadCell, unused) -> store.get(tableAndWorkloadCell.tableName(), tableAndWorkloadCell.cell()))
+                .toMap();
     }
 }uX      }(jl (32565769cabfbdf6b14906e893fb68828677c9e4j patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/IndexInvariantLogReporterTest.javaj addedj Kaj K j Kaj https://github.com/palantir/atlasdb/blob/7c3793450ef2938d7eb104cafc6737f66a3937b7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FIndexInvariantLogReporterTest.javaj https://github.com/palantir/atlasdb/raw/7c3793450ef2938d7eb104cafc6737f66a3937b7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FIndexInvariantLogReporterTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FIndexInvariantLogReporterTest.java?ref=7c3793450ef2938d7eb104cafc6737f66a3937b7j X'  @@ -0,0 +1,97 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.AssertionsForClassTypes.assertThatCode;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.memory.InMemoryAtlasDbConfig;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.IndexTable;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import org.junit.Test;
+
+public class IndexInvariantLogReporterTest {
+
+    @Test
+    public void doesNotThrowIfNoViolationsProvided() {
+        IndexInvariant meaninglessInvariant = IndexInvariant.createWithinSameTable(
+                store -> ImmutableMap.of(),
+                store -> ImmutableMap.of(),
+                cell -> ImmutableWorkloadCell.of(-cell.key(), cell.column()),
+                cell -> ImmutableWorkloadCell.of(-cell.key(), cell.column()));
+        IndexInvariantLogReporter logReporter = new IndexInvariantLogReporter(meaninglessInvariant);
+
+        WorkflowHistory workflowHistory = getWorkflowHistory();
+        assertThatCode(() -> logReporter.report(workflowHistory)).doesNotThrowAnyException();
+    }
+
+    @Test
+    public void doesNotThrowIfViolationsProvided() {
+        IndexInvariant alwaysFailingInvariant = IndexInvariant.createWithinSameTable(
+                store -> ImmutableMap.of(TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE), 1),
+                store -> ImmutableMap.of(),
+                cell -> ImmutableWorkloadCell.of(-cell.key(), cell.column()),
+                cell -> ImmutableWorkloadCell.of(-cell.key(), cell.column()));
+        IndexInvariantLogReporter logReporter = new IndexInvariantLogReporter(alwaysFailingInvariant);
+
+        WorkflowHistory workflowHistory = getWorkflowHistory();
+        assertThatCode(() -> logReporter.report(workflowHistory)).doesNotThrowAnyException();
+    }
+
+    private static WorkflowHistory getWorkflowHistory() {
+        AtlasDbTransactionStoreFactory factory = new AtlasDbTransactionStoreFactory(
+                TransactionManagers.createInMemory(Set.of()), Optional.of("keyspace"));
+        TransactionStore store = factory.create(
+                Map.of(
+                        WorkloadTestHelpers.TABLE_1,
+                        IsolationLevel.SERIALIZABLE,
+                        WorkloadTestHelpers.TABLE_2,
+                        IsolationLevel.SERIALIZABLE),
+                ImmutableSet.of());
+        return ImmutableWorkflowHistory.builder()
+                .transactionStore(store)
+                .history(List.of(FullyWitnessedTransaction.builder()
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .addActions(WitnessedWriteTransactionAction.of(
+                                WorkloadTestHelpers.TABLE_1,
+                                WorkloadTestHelpers.WORKLOAD_CELL_ONE,
+                                WorkloadTestHelpers.VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(
+                                WorkloadTestHelpers.TABLE_2,
+                                WorkloadTestHelpers.WORKLOAD_CELL_ONE,
+                                WorkloadTestHelpers.VALUE_ONE))
+                        .build()))
+                .build();
+    }
+}u}(jl (6f2b815949b84043f68be9a60478957bc6db5f59j latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/7c3793450ef2938d7eb104cafc6737f66a3937b7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/7c3793450ef2938d7eb104cafc6737f66a3937b7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=7c3793450ef2938d7eb104cafc6737f66a3937b7j X  @@ -47,6 +47,7 @@
 import java.util.Optional;
 import java.util.function.Consumer;
 import java.util.stream.Collectors;
+import org.junit.Ignore;
 import org.junit.Test;
 import org.mockito.ArgumentCaptor;
 
@@ -70,7 +71,7 @@ public class TransientRowsWorkflowsTest {
     private final Workflow transientRowsWorkflow = TransientRowsWorkflows.create(
             transactionStore, CONFIGURATION, MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)));
     private final Invariant<List<CrossCellInconsistency>> invariant =
-            TransientRowsWorkflows.getSummaryLogInvariantReporter(CONFIGURATION).invariant();
+            TransientRowsWorkflows.invariantReporter(CONFIGURATION).invariant();
 
     @Test
     public void transactionStoreIsReadOnly() {
@@ -107,10 +108,10 @@ public void subsequentTransactionsWriteThenReadThenDelete() {
         WorkflowHistory history = transientRowsWorkflow.run();
         List<WitnessedTransaction> witnessedTransactions = history.history();
         for (int index = 1; index < ITERATION_COUNT; index++) {
-            assertThat(witnessedTransactions.get(index).actions()).hasSize(6).satisfies(actions -> {
+            assertThat(witnessedTransactions.get(index).actions()).hasSize(7).satisfies(actions -> {
                 assertThat(actions.subList(0, 2)).allMatch(action -> action instanceof WitnessedWriteTransactionAction);
                 assertThat(actions.subList(2, 4)).allMatch(action -> action instanceof WitnessedReadTransactionAction);
-                assertThat(actions.subList(4, 6))
+                assertThat(actions.subList(6, 7))
                         .allMatch(action -> action instanceof WitnessedDeleteTransactionAction);
             });
         }
@@ -175,6 +176,7 @@ public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
 
     @SuppressWarnings("unchecked") // Mocking of a known type
     @Test
+    @Ignore // TODO (jkong): Add support for history-based violations
     public void invariantReportsViolationsFromTransactionHistory() {
         Consumer<List<CrossCellInconsistency>> violationConsumer = mock(Consumer.class);
         WorkflowHistory history = transientRowsWorkflow.run();ueu(ed7f2961d509072109126accddd6d06409230a87}(sha(ed7f2961d509072109126accddd6d06409230a87node_idEC_kwDOAjP5fdoAKGVkN2YyOTYxZDUwOTA3MjEwOTEyNmFjY2RkZDZkMDY0MDkyMzBhODccommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-21T11:56:53Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-06-21T11:56:53Zumessage3Merge branch 'develop' into lm/rc-with-right-numbertree}(j (c5e1c27adaa27e777899d4ba15e4ca568d266beburl`https://api.github.com/repos/palantir/atlasdb/git/trees/c5e1c27adaa27e777899d4ba15e4ca568d266bebuj+ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ed7f2961d509072109126accddd6d06409230a87
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSS5YYACgkQJd22kJ7J
Gixcugf/c1D06JnbZ8JamzLzQPyfw/p7n5k0boxhqCOVysI3s/iR+qP0vn5U+lYP
KfOKSe2wFrstAHMJqSCV4+IoYuxKiZ7rqBvfMgGvz+zXkHxAN6kIxS70gCNGFF3W
x5JHQGqtnZTfo3ZdTLiVqG+XD93xrdDvYqxBJW/2b/+84Kfb+uOucFjq1Uc9D1mC
iIGXIsJVEJryxAWhDXILO0TY7HR7itFZC6Tekf4zHpHlQJpXHiI1grx9o99NCAVM
zxHpW4XAqwlV8ybULDwoYtF7OBye6GsqkoPCojCMiAJrz+V/8mSPIDRjUTamRQJY
ALDUN2KO8iv34MzF8s+1f4lUwvIhKA==
=HFrL
-----END PGP SIGNATURE-----payloadX>  tree c5e1c27adaa27e777899d4ba15e4ca568d266beb
parent f0f0ced3ece8bb4e51a0f6e86a2e09b1ac23f24a
parent 4042f72d514d46a48a5326a7c240b54e8eb11149
author Lucas Meireles <meireles31@msn.com> 1687348613 +0100
committer Lucas Meireles <meireles31@msn.com> 1687348613 +0100

Merge branch 'develop' into lm/rc-with-right-number
uuj+ ^https://api.github.com/repos/palantir/atlasdb/commits/ed7f2961d509072109126accddd6d06409230a87html_urlShttps://github.com/palantir/atlasdb/commit/ed7f2961d509072109126accddd6d06409230a87comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ed7f2961d509072109126accddd6d06409230a87/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j+ %https://api.github.com/users/LucasIMEj9 https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj! }(j> LucasIMEj@ Jg j MDQ6VXNlcjY3ODczMTE=jB 3https://avatars.githubusercontent.com/u/6787311?v=4jD h5j+ %https://api.github.com/users/LucasIMEj9 https://github.com/LucasIMEjG /https://api.github.com/users/LucasIME/followersjI <https://api.github.com/users/LucasIME/following{/other_user}jK 5https://api.github.com/users/LucasIME/gists{/gist_id}jM <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jO 3https://api.github.com/users/LucasIME/subscriptionsjQ *https://api.github.com/users/LucasIME/orgsjS +https://api.github.com/users/LucasIME/reposjU 6https://api.github.com/users/LucasIME/events{/privacy}jW 5https://api.github.com/users/LucasIME/received_eventsjY Userj[ uparents](}(j (f0f0ced3ece8bb4e51a0f6e86a2e09b1ac23f24aj+ ^https://api.github.com/repos/palantir/atlasdb/commits/f0f0ced3ece8bb4e51a0f6e86a2e09b1ac23f24aj9 Shttps://github.com/palantir/atlasdb/commit/f0f0ced3ece8bb4e51a0f6e86a2e09b1ac23f24au}(j (4042f72d514d46a48a5326a7c240b54e8eb11149j+ ^https://api.github.com/repos/palantir/atlasdb/commits/4042f72d514d46a48a5326a7c240b54e8eb11149j9 Shttps://github.com/palantir/atlasdb/commit/4042f72d514d46a48a5326a7c240b54e8eb11149uestats}(totalM\	additionsM	deletionsKufiles](}(j (783bc3b5467ffef2ad1e64d4a8aefd0da4ee44ddfilenamejatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/TransactionCommitLockInfo.javastatusaddedjy K%jz K changesK%blob_urlhttps://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.java?ref=ed7f2961d509072109126accddd6d06409230a87patchXg  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api.expectations;
+
+import org.immutables.value.Value;
+
+/**
+ * Data about the amount of commit locks requested by a transaction.
+ */
+@Value.Immutable
+public interface TransactionCommitLockInfo {
+
+    /**
+     * The number of cell-level locks requested as part of the commit protocol (excluding any user-defined locking).
+     */
+    long cellCommitLocksRequested();
+
+    /**
+     * The number of row-level locks requested as part of the commit protocol (excluding any user-defined locking).
+     * For write transactions, this includes the single row lock that is requested for the transaction table itself.
+     */
+    long rowCommitLocksRequested();
+}u}(j (502ae947a588e3d9dcebd649967cafd91a08374bj datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppTokenTest.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -46,9 +46,9 @@ public static Collection<Object[]> data() {
     @Test
     public void inputsAreValidBase16Strings() {
         assertThat(input).matches("^[0-9a-fA-F]*$");
-        assertThat(input.length() % 2 == 0)
+        assertThat(input.length() % 2)
                 .as("input must be even length to base16 decode")
-                .isTrue();
+                .isEqualTo(0);
         assertThat(CassandraHex.hexToBytes(input)).hasSize(input.length() / 2);
     }
 u}(j (a609938800595c6a4ed1b28154a58151f7d04af3j datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ExpectationsAwareTransaction.javaj modifiedjy Kjz K j Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 /**
@@ -32,6 +33,11 @@ public interface ExpectationsAwareTransaction extends Transaction {
      */
     TransactionReadInfo getReadInfo();
 
+    /**
+     * Returns transaction commit lock information.
+     */
+    TransactionCommitLockInfo getCommitLockInfo();
+
     /**
      * Update TEX data collection metrics for (post-mortem) transactions.
      * Expected usage is that this method is called once after the transaction has been committed or aborted.u}(j (6795ea4a937624401807d2b3742ab596ad23984bj natlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingExpectationsAwareTransaction.javaj modifiedjy Kjz K j Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.transaction.impl;
 
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 public abstract class ForwardingExpectationsAwareTransaction extends ForwardingTransaction
@@ -34,6 +35,11 @@ public TransactionReadInfo getReadInfo() {
         return delegate().getReadInfo();
     }
 
+    @Override
+    public TransactionCommitLockInfo getCommitLockInfo() {
+        return delegate().getCommitLockInfo();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         delegate().reportExpectationsCollectedData();u}(j (54e18fd505b7340fcb4a7629ccdc6f839310fe80j `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj modifiedjy Kjz Kj K!j https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -97,6 +97,8 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
@@ -156,6 +158,7 @@
 import java.util.List;
 import java.util.Map;
 import java.util.NavigableMap;
+import java.util.NavigableSet;
 import java.util.NoSuchElementException;
 import java.util.Objects;
 import java.util.Optional;
@@ -267,6 +270,8 @@ private enum State {
     protected final SuccessCallbackManager successCallbackManager = new SuccessCallbackManager();
     private final CommitTimestampLoader commitTimestampLoader;
     private final ExpectationsMetrics expectationsDataCollectionMetrics;
+    private volatile long cellCommitLocksRequested = 0L;
+    private volatile long rowCommitLocksRequested = 0L;
 
     protected volatile boolean hasReads;
 
@@ -2496,20 +2501,25 @@ private void logCommitLockTenureExceeded(
 
     protected Set<LockDescriptor> getLocksForWrites() {
         Set<LockDescriptor> result = new HashSet<>();
+        long cellLockCount = 0L;
+        long rowLockCount = 0L;
         for (TableReference tableRef : writesByTable.keySet()) {
             ConflictHandler conflictHandler = getConflictHandlerForTable(tableRef);
             if (conflictHandler.lockCellsForConflicts()) {
-                for (Cell cell : getLocalWrites(tableRef).keySet()) {
+                NavigableSet<Cell> cellsToLock = getLocalWrites(tableRef).keySet();
+                for (Cell cell : cellsToLock) {
                     result.add(AtlasCellLockDescriptor.of(
                             tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName()));
                 }
+                cellLockCount = cellsToLock.size();
             }
 
             if (conflictHandler.lockRowsForConflicts()) {
                 Cell lastCell = null;
                 for (Cell cell : getLocalWrites(tableRef).keySet()) {
                     if (lastCell == null || !Arrays.equals(lastCell.getRowName(), cell.getRowName())) {
                         result.add(AtlasRowLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName()));
+                        rowLockCount++;
                     }
                     lastCell = cell;
                 }
@@ -2518,6 +2528,8 @@ protected Set<LockDescriptor> getLocksForWrites() {
         result.add(AtlasRowLockDescriptor.of(
                 TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
                 TransactionConstants.getValueForTimestamp(getStartTimestamp())));
+        cellCommitLocksRequested = cellLockCount;
+        rowCommitLocksRequested = rowLockCount + 1;
         return result;
     }
 
@@ -2655,6 +2667,14 @@ public TransactionReadInfo getReadInfo() {
         return keyValueService.getOverallReadInfo();
     }
 
+    @Override
+    public TransactionCommitLockInfo getCommitLockInfo() {
+        return ImmutableTransactionCommitLockInfo.builder()
+                .cellCommitLocksRequested(cellCommitLocksRequested)
+                .rowCommitLocksRequested(rowCommitLocksRequested)
+                .build();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         if (isStillRunning()) {
@@ -2664,18 +2684,25 @@ public void reportExpectationsCollectedData() {
             return;
         }
 
-        reportExpectationsCollectedData(getAgeMillis(), getReadInfo(), expectationsDataCollectionMetrics);
+        reportExpectationsCollectedData(
+                getAgeMillis(), getReadInfo(), getCommitLockInfo(), expectationsDataCollectionMetrics);
     }
 
     @VisibleForTesting
     static void reportExpectationsCollectedData(
-            long ageMillis, TransactionReadInfo readInfo, ExpectationsMetrics metrics) {
+            long ageMillis,
+            TransactionReadInfo readInfo,
+            TransactionCommitLockInfo commitLockInfo,
+            ExpectationsMetrics metrics) {
         metrics.ageMillis().update(ageMillis);
         metrics.bytesRead().update(readInfo.bytesRead());
         metrics.kvsReads().update(readInfo.kvsCalls());
 
         readInfo.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
                 .update(kvsCallReadInfo.bytesRead()));
+
+        metrics.cellCommitLocksRequested().update(commitLockInfo.cellCommitLocksRequested());
+        metrics.rowCommitLocksRequested().update(commitLockInfo.rowCommitLocksRequested());
     }
 
     private long getStartTimestamp() {u}(j (89147dc77a01612d3af8f3130ea758e4445537c7j 5atlasdb-impl-shared/src/main/metrics/expectations.ymlj modifiedjy Kjz K j Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -17,3 +17,9 @@ namespaces:
       mostKvsBytesReadInSingleCall:
         docs: Most bytes read by a transaction in one Atlas kvs read call
         type: histogram
+      cellCommitLocksRequested:
+        docs: Number of cell-level commit locks requested as part of the commit protocol
+        type: histogram
+      rowCommitLocksRequested:
+        docs: Number of row-level commit locks requested as part of the commit protocol
+        type: histogramu}(j (283b84abcfb6697b50fee5fa0db0dbc2d58dfab8j matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javaj modifiedjy K&jz Kj K2j https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=ed7f2961d509072109126accddd6d06409230a87j XI  @@ -18,7 +18,9 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.codahale.metrics.Histogram;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
@@ -34,6 +36,12 @@ public final class ExpectationsMetricsReportingTest {
     private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
             ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
 
+    private static final ImmutableTransactionCommitLockInfo BLANK_COMMIT_LOCK_INFO =
+            ImmutableTransactionCommitLockInfo.builder()
+                    .cellCommitLocksRequested(0L)
+                    .rowCommitLocksRequested(0L)
+                    .build();
+
     private ExpectationsMetrics metrics;
 
     @Before
@@ -44,40 +52,58 @@ public void setUp() {
     @Test
     public void ageReported() {
         long age = 129L;
-        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, metrics);
-        assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
+        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, BLANK_COMMIT_LOCK_INFO, metrics);
+        assertHistogramHasSingleValue(metrics.ageMillis(), age);
     }
 
     @Test
     public void bytesReadReported() {
         long bytes = 1290L;
-        reportMetrics(BLANK_READ_INFO.withBytesRead(bytes));
-        assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
+        reportMetricsWithReadInfo(BLANK_READ_INFO.withBytesRead(bytes));
+        assertHistogramHasSingleValue(metrics.bytesRead(), bytes);
     }
 
     @Test
     public void kvsCallsReported() {
         long calls = 12L;
-        reportMetrics(BLANK_READ_INFO.withKvsCalls(calls));
-        assertThat(metrics.kvsReads().getSnapshot().getValues()).containsOnly(calls);
+        reportMetricsWithReadInfo(BLANK_READ_INFO.withKvsCalls(calls));
+        assertHistogramHasSingleValue(metrics.kvsReads(), calls);
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
-        reportMetrics(BLANK_READ_INFO);
+        reportMetricsWithReadInfo(BLANK_READ_INFO);
         assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
                 .isEmpty();
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
         long bytes = 193L;
-        reportMetrics(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
-        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
-                .containsOnly(bytes);
+        reportMetricsWithReadInfo(
+                BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        assertHistogramHasSingleValue(metrics.mostKvsBytesReadInSingleCall(), bytes);
+    }
+
+    @Test
+    public void commitLocksRequestsReported() {
+        SnapshotTransaction.reportExpectationsCollectedData(
+                0L,
+                BLANK_READ_INFO,
+                ImmutableTransactionCommitLockInfo.builder()
+                        .cellCommitLocksRequested(1)
+                        .rowCommitLocksRequested(2)
+                        .build(),
+                metrics);
+        assertHistogramHasSingleValue(metrics.cellCommitLocksRequested(), 1);
+        assertHistogramHasSingleValue(metrics.rowCommitLocksRequested(), 2);
+    }
+
+    private void reportMetricsWithReadInfo(TransactionReadInfo readInfo) {
+        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, BLANK_COMMIT_LOCK_INFO, metrics);
     }
 
-    private void reportMetrics(TransactionReadInfo readInfo) {
-        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, metrics);
+    private void assertHistogramHasSingleValue(Histogram histogram, long expected) {
+        assertThat(histogram.getSnapshot().getValues()).containsOnly(expected);
     }
 }u}(j (25c1bb6a752a65ce98d2dc58adc485085adacef9j latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -240,7 +240,9 @@ public void registersMetrics() throws InterruptedException {
                 .contains(FINISH_TASK_METRIC_NAME)
                 .contains("expectations.bytesRead")
                 .contains("expectations.kvsReads")
-                .contains("expectations.ageMillis");
+                .contains("expectations.ageMillis")
+                .contains("expectations.cellCommitLocksRequested")
+                .contains("expectations.rowCommitLocksRequested");
         assertThat(registry.timer(MetricName.builder()
                                 .safeName(SETUP_TASK_METRIC_NAME)
                                 .build())u}(j (497d31b0ab4aef167c68c62821257e05a20cfd8ej eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj modifiedjy K9jz K j K9j https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=ed7f2961d509072109126accddd6d06409230a87j Xi  @@ -94,6 +94,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.impl.metrics.DefaultMetricsFilterEvaluationContext;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.ToplistDeltaFilteringTableLevelMetricsController;
@@ -2458,6 +2459,62 @@ public void testConstraintsViolated() {
                         eq(AtlasDbConstraintCheckingMode.FULL_CONSTRAINT_CHECKING_THROWS_EXCEPTIONS));
     }
 
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializableCell() {
+        // Will request commit locks for cells, but not rows
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_CELL);
+
+        // We can only get the commit info from a snapshot transaction
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        // For write transactions, we always lock an additional row in the transaction table
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(0 + 1);
+    }
+
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializable() {
+        // Will request commit locks for rows, but not cells
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(0);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(2 + 1);
+    }
+
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigration_sameRow() {
+        // Will request commit locks for cells and rows
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_LOCK_LEVEL_MIGRATION);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(
+                TABLE,
+                ImmutableMap.of(Cell.create(PtBytes.toBytes("same_row"), PtBytes.toBytes("column1")), TEST_VALUE));
+        txn.put(
+                TABLE,
+                ImmutableMap.of(
+                        Cell.create(
+                                PtBytes.toBytes("same_row"),
+                                // Writing to the same row, but different column/cell
+                                PtBytes.toBytes("column2")),
+                        TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
+    }
+
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,u}(j (2725912f8e075ab25f996c376910f257d6850d7fj ^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ColumnValue.javaj addedjy K jz K j K j https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ColumnValue {
+    @Value.Parameter
+    int column();
+
+    @Value.Parameter
+    int value();
+
+    static ColumnValue of(int column, int value) {
+        return ImmutableColumnValue.of(column, value);
+    }
+}u}(j (8a9dd68a171bcb94d41b777979635f8a4cca5c99j matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelection.javaj addedjy KBjz K j KBj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.java?ref=ed7f2961d509072109126accddd6d06409230a87j Xq	  @@ -0,0 +1,66 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.google.common.collect.Range;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ColumnRangeSelection {
+    Optional<Integer> startColumnInclusive();
+
+    Optional<Integer> endColumnExclusive();
+
+    default boolean contains(int column) {
+        return asGuavaRange().contains(column);
+    }
+
+    default Range<Integer> asGuavaRange() {
+        if (startColumnInclusive().isEmpty()) {
+            if (endColumnExclusive().isEmpty()) {
+                return Range.all();
+            } else {
+                return Range.lessThan(endColumnExclusive().get());
+            }
+        } else {
+            if (endColumnExclusive().isEmpty()) {
+                return Range.atLeast(startColumnInclusive().get());
+            } else {
+                return Range.closedOpen(
+                        startColumnInclusive().get(), endColumnExclusive().get());
+            }
+        }
+    }
+
+    @Value.Check
+    default void check() {
+        Preconditions.checkState(
+                startColumnInclusive().isEmpty()
+                        || endColumnExclusive().isEmpty()
+                        || startColumnInclusive().get() <= endColumnExclusive().get(),
+                "Start column must be less than or equal to end column",
+                SafeArg.of("startColumnInclusive", startColumnInclusive()),
+                SafeArg.of("endColumnExclusive", endColumnExclusive()));
+    }
+
+    static ImmutableColumnRangeSelection.Builder builder() {
+        return ImmutableColumnRangeSelection.builder();
+    }
+}u}(j (bd06cc1312715a991167d81bd1ceb940ff719fc1j patlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/DeleteTransactionAction.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.java?ref=ed7f2961d509072109126accddd6d06409230a87j X{  @@ -22,7 +22,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface DeleteTransactionAction extends TransactionAction {
+public interface DeleteTransactionAction extends SingleCellTransactionAction {
 
     default WitnessedDeleteTransactionAction witness() {
         return ImmutableWitnessedDeleteTransactionAction.of(table(), cell());u}(j (e9ae2e08974eda0443281b98d5bc9d2fb9243eccj natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ReadTransactionAction.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -23,7 +23,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface ReadTransactionAction extends TransactionAction {
+public interface ReadTransactionAction extends SingleCellTransactionAction {
 
     default WitnessedReadTransactionAction witness(Optional<Integer> value) {
         return ImmutableWitnessedReadTransactionAction.of(table(), cell(), value);u}(j (38bd65bb4f96e9501721390809e74a159a2f3b13j |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowColumnRangeReadTransactionAction.javaj addedjy K7jz K j K7j https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.java?ref=ed7f2961d509072109126accddd6d06409230a87j X	  @@ -0,0 +1,55 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import java.util.List;
+import org.immutables.value.Value;
+
+/**
+ * This transaction action models a column range read in AtlasDB ("getRowsColumnRange" in the AtlasDB API).
+ * <p>
+ * In the interest of implementation simplicity, two significant simplifications are made. Firstly, the action is
+ * presumed to act on a single row, though calls to getRowsColumnRange in practice can act on multiple rows in parallel.
+ * Secondly, values read from getRowsColumnRange are accessed through a live iterator, while for purposes of gathering
+ * a witness, we immediately drain the iterator and use the set of columns read as the witness to this action.
+ */
+@Value.Immutable
+public interface RowColumnRangeReadTransactionAction extends TransactionAction {
+    String table();
+
+    int row();
+
+    ColumnRangeSelection columnRangeSelection();
+
+    @Override
+    default <T> T accept(TransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    default WitnessedRowColumnRangeReadTransactionAction witness(List<ColumnValue> columnsAndValues) {
+        return WitnessedRowColumnRangeReadTransactionAction.builder()
+                .originalQuery(this)
+                .columnsAndValues(columnsAndValues)
+                .build();
+    }
+
+    static ImmutableRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableRowColumnRangeReadTransactionAction.builder();
+    }
+}u}(j (47b25ab538c861987aa480e47c2bb08032e32fc0j tatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/SingleCellTransactionAction.javaj addedjy Kjz K j Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.java?ref=ed7f2961d509072109126accddd6d06409230a87j X>  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface SingleCellTransactionAction extends TransactionAction {
+    /** Table to apply transaction to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) to apply the action to. */
+    @Value.Parameter
+    WorkloadCell cell();
+}u}(j (e6ee57fa3732a9a1984c98b088bfc9a577a7fbe8j jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionAction.javaj modifiedjy K jz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.WorkloadCell;
-import org.immutables.value.Value;
-
 public interface TransactionAction {
-
-    /** Table to apply transaction to. */
-    @Value.Parameter
-    String table();
-
-    /** Cell (Key, Column) to apply the action to. */
-    @Value.Parameter
-    WorkloadCell cell();
-
     <T> T accept(TransactionActionVisitor<T> visitor);
 }u}(j (1625640516054c38d6886dbd91b10123cb0bb223j qatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionActionVisitor.javaj modifiedjy Kjz K j Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -22,4 +22,6 @@ public interface TransactionActionVisitor<T> {
     T visit(WriteTransactionAction writeTransactionAction);
 
     T visit(DeleteTransactionAction deleteTransactionAction);
+
+    T visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction);
 }u}(j (7b9112fa4356eade1fb793e23ca54d962811ccfcj oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/WriteTransactionAction.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -22,7 +22,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WriteTransactionAction extends TransactionAction {
+public interface WriteTransactionAction extends SingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(j (2f66134a6e594e63bdba1ebec482177c03bd9220j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedSingleCellTransactionAction.javaj addedjy K"jz K j K"j https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.java?ref=ed7f2961d509072109126accddd6d06409230a87j XP  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.invariant.MismatchedValue;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedSingleCellTransactionAction extends InvalidWitnessedTransactionAction {
+    @Value.Parameter
+    WitnessedSingleCellTransactionAction action();
+
+    @Value.Parameter
+    MismatchedValue mismatchedValue();
+
+    static InvalidWitnessedSingleCellTransactionAction of(
+            WitnessedSingleCellTransactionAction action, MismatchedValue mismatchedValue) {
+        return ImmutableInvalidWitnessedSingleCellTransactionAction.of(action, mismatchedValue);
+    }
+}u}(j (f2fc56cca46a09c2ef718c3b7cb6b8d4000c1d8fj atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javaj modifiedjy Kjz K
j Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=ed7f2961d509072109126accddd6d06409230a87j Xw  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.invariant.MismatchedValue;
-import org.immutables.value.Value;
-
-@Value.Immutable
 public interface InvalidWitnessedTransactionAction {
-    @Value.Parameter
-    WitnessedTransactionAction action();
-
-    @Value.Parameter
-    MismatchedValue mismatchedValue();
-
-    static InvalidWitnessedTransactionAction of(WitnessedTransactionAction action, MismatchedValue mismatchedValue) {
-        return ImmutableInvalidWitnessedTransactionAction.of(action, mismatchedValue);
-    }
+    // Marker interface
 }u}(j (664e279d4223b1f5897c5f45615e3cdbdaa71ac3j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedDeleteTransactionAction.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.java?ref=ed7f2961d509072109126accddd6d06409230a87j Xo  @@ -20,7 +20,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedDeleteTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedDeleteTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {u}(j (beff6229abcbdbf535af57c09c43ad7c92566201j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedReadTransactionAction.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.java?ref=ed7f2961d509072109126accddd6d06409230a87j X7  @@ -21,7 +21,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedReadTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedReadTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(j (284f26075e3ae1ed8320bcbc8402749af631ccddj atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javaj addedjy K;jz K j K;j https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=ed7f2961d509072109126accddd6d06409230a87j X	  @@ -0,0 +1,59 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedTransactionAction {
+    RowColumnRangeReadTransactionAction originalQuery();
+
+    // This is a List rather than a Set or Map because the ordering in which the columns and values are returned is
+    // important (it must match the ordering specified by the contract of row column range reads).
+    List<ColumnValue> columnsAndValues();
+
+    @Override
+    default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    @Value.Check
+    default void check() {
+        Set<Integer> knownColumns = new HashSet<>();
+        Set<Integer> duplicateColumns = columnsAndValues().stream()
+                .map(ColumnValue::column)
+                .filter(column -> !knownColumns.add(column))
+                .collect(Collectors.toSet());
+        Preconditions.checkState(
+                duplicateColumns.isEmpty(),
+                "Duplicate columns in columnsAndValues",
+                SafeArg.of("duplicateColumns", duplicateColumns),
+                SafeArg.of("columnsAndValues", columnsAndValues()));
+    }
+
+    static ImmutableWitnessedRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableWitnessedRowColumnRangeReadTransactionAction.builder();
+    }
+}u}(j (eed34c03b4bd04c09374ca41608cb74986cb40c0j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedSingleCellTransactionAction.javaj addedjy Kjz K j Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.java     j https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.java?ref=ed7f2961d509072109126accddd6d06409230a87j XW  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface WitnessedSingleCellTransactionAction extends WitnessedTransactionAction {
+    /** Table action was applied to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) the action applied to. */
+    @Value.Parameter
+    WorkloadCell cell();
+}u}(j (3e350184f320b0cd81f7019819c5d83c6a9d8602j }atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionAction.javaj modifiedjy K jz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.store.WorkloadCell;
-import org.immutables.value.Value;
-
 public interface WitnessedTransactionAction {
-
-    /** Table action was applied to. */
-    @Value.Parameter
-    String table();
-
-    /** Cell (Key, Column) the action applied to. */
-    @Value.Parameter
-    WorkloadCell cell();
-
     <T> T accept(WitnessedTransactionActionVisitor<T> visitor);
 }u}(j (ca4d65c16390f51cc645a365e26e4c1c79a67e15j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionActionVisitor.javaj modifiedjy Kjz K j Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.java?ref=ed7f2961d509072109126accddd6d06409230a87j X>  @@ -22,4 +22,6 @@ public interface WitnessedTransactionActionVisitor<T> {
     T visit(WitnessedWriteTransactionAction writeTransactionAction);
 
     T visit(WitnessedDeleteTransactionAction deleteTransactionAction);
+
+    T visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction);
 }u}(j (43687fd4d7dbdc3a1ac0ec26f2f38d0366613022j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedWriteTransactionAction.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.java?ref=ed7f2961d509072109126accddd6d06409230a87j X(  @@ -20,7 +20,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WitnessedWriteTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedWriteTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(j (e023081417c4bca7cf9bb80aeeb71bd64bdf21a4j qatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelectionTest.javaj addedjy Kbjz K j Kbj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -0,0 +1,98 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.Optional;
+import org.junit.Test;
+
+public class ColumnRangeSelectionTest {
+    @Test
+    public void cannotCreateRangeWithStartColumnGreaterThanEndColumn() {
+        assertThatLoggableExceptionThrownBy(() -> ColumnRangeSelection.builder()
+                        .startColumnInclusive(5)
+                        .endColumnExclusive(4)
+                        .build())
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Start column must be less than or equal to end column")
+                .hasExactlyArgs(
+                        SafeArg.of("startColumnInclusive", Optional.of(5)),
+                        SafeArg.of("endColumnExclusive", Optional.of(4)));
+    }
+
+    @Test
+    public void emptyRangeDoesNotContainAnyElements() {
+        ColumnRangeSelection emptyRange = ColumnRangeSelection.builder()
+                .startColumnInclusive(6)
+                .endColumnExclusive(6)
+                .build();
+        assertThat(emptyRange.contains(5)).isFalse();
+        assertThat(emptyRange.contains(6)).isFalse();
+        assertThat(emptyRange.contains(7)).isFalse();
+        assertThat(emptyRange.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(emptyRange.contains(Integer.MAX_VALUE)).isFalse();
+    }
+
+    @Test
+    public void singleElementRangeContainsJustItself() {
+        ColumnRangeSelection justSeven = ColumnRangeSelection.builder()
+                .startColumnInclusive(7)
+                .endColumnExclusive(8)
+                .build();
+        assertThat(justSeven.contains(6)).isFalse();
+        assertThat(justSeven.contains(7)).isTrue();
+        assertThat(justSeven.contains(8)).isFalse();
+        assertThat(justSeven.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(justSeven.contains(Integer.MAX_VALUE)).isFalse();
+    }
+
+    @Test
+    public void universalRangeContainsEverything() {
+        ColumnRangeSelection universal = ColumnRangeSelection.builder().build();
+        assertThat(universal.contains(10241024)).isTrue();
+        assertThat(universal.contains(-20482048)).isTrue();
+        assertThat(universal.contains(40924092)).isTrue();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isTrue();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isTrue();
+    }
+
+    @Test
+    public void lowerBoundedRangesContainCorrectElements() {
+        ColumnRangeSelection universal =
+                ColumnRangeSelection.builder().startColumnInclusive(5).build();
+        assertThat(universal.contains(4)).isFalse();
+        assertThat(universal.contains(5)).isTrue();
+        assertThat(universal.contains(6)).isTrue();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isTrue();
+    }
+
+    @Test
+    public void upperBoundedRangesContainCorrectElements() {
+        ColumnRangeSelection universal =
+                ColumnRangeSelection.builder().endColumnExclusive(5).build();
+        assertThat(universal.contains(4)).isTrue();
+        assertThat(universal.contains(5)).isFalse();
+        assertThat(universal.contains(6)).isFalse();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isTrue();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isFalse();
+    }
+}u}(j (d8ae0172e04f5d987b18981c085af657a86bf0e4j atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -54,7 +54,7 @@ public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
     public void toFullyWitnessedCopiesArgumentsCorrectly() {
         WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
         WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
-        List<WitnessedTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
+        List<WitnessedSingleCellTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
         FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
                 .startTimestamp(START_TIMESTAMP)
                 .commitTimestamp(COMMIT_TIMESTAMP)u}(j (b2c905aecbadb5eff96bc5dbc26f890c72dbd00cj atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javaj addedjy KGjz K j KGj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=ed7f2961d509072109126accddd6d06409230a87j X
  @@ -0,0 +1,71 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import org.junit.Test;
+
+public class WitnessedRowColumnRangeReadTransactionActionTest {
+    @Test
+    public void canCreateWitness() {
+        assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
+                        .build())
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void cannotCreateWitnessWithDuplicateColumns() {
+        List<ColumnValue> columnsAndValues = ImmutableList.of(
+                ColumnValue.of(1, 5),
+                ColumnValue.of(5, 1),
+                ColumnValue.of(1, 3),
+                ColumnValue.of(5, 8),
+                ColumnValue.of(9, 99));
+
+        assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .addAllColumnsAndValues(columnsAndValues)
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
+                        .build())
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Duplicate columns in columnsAndValues")
+                .hasExactlyArgs(
+                        SafeArg.of("duplicateColumns", ImmutableSet.of(1, 5)),
+                        SafeArg.of("columnsAndValues", columnsAndValues));
+    }
+}u}(j (7f8015ae9aa8e1cda19fbbfa7a571ed881b71b56j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj modifiedjy K
jz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -18,10 +18,12 @@
 
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -68,7 +70,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactio
                     .orElseGet(Optional::empty);
 
             if (!expectedValue.equals(readTransactionAction.value())) {
-                return Optional.of(InvalidWitnessedTransactionAction.of(
+                return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
                         readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expectedValue)));
             }
 
@@ -88,5 +90,12 @@ public Optional<InvalidWitnessedTransactionAction> visit(
             inMemoryTransactionReplayer.visit(deleteTransactionAction);
             return Optional.empty();
         }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+            // TODO (jkong): Not implemented yet
+            return Optional.empty();
+        }
     }
 }u}(j (077c0294a2f984f9f97dca7c4b24ef6de5bc6f16j katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=ed7f2961d509072109126accddd6d06409230a87j Xy  @@ -19,20 +19,22 @@
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.Map;
 import java.util.Optional;
 
 /**
  * Replays transactions and validates for conflicts on the latest and read view.
- *
+ * <p>
  * The latest view will be a view of the database at the commit timestamp, while the read view will be the view of
  * the database at the start timestamp.
- *
+ * <p>
  * Objects created from this class should only be used within a scope of a single transaction.
  */
 final class SnapshotInvariantVisitor
@@ -57,7 +59,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactio
                         readTransactionAction.table(), readTransactionAction.cell(), readView)
                 .value();
         if (!expected.equals(readTransactionAction.value())) {
-            return Optional.of(InvalidWitnessedTransactionAction.of(
+            return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
                     readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expected)));
         }
         return Optional.empty();
@@ -67,7 +69,8 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactio
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
                         writeTransactionAction.table(), writeTransactionAction.cell())
-                .map(mismatchedValue -> InvalidWitnessedTransactionAction.of(writeTransactionAction, mismatchedValue));
+                .map(mismatchedValue ->
+                        InvalidWitnessedSingleCellTransactionAction.of(writeTransactionAction, mismatchedValue));
 
         applyWrites(
                 writeTransactionAction.table(),
@@ -80,12 +83,20 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransacti
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
                         deleteTransactionAction.table(), deleteTransactionAction.cell())
-                .map(mismatchedValue -> InvalidWitnessedTransactionAction.of(deleteTransactionAction, mismatchedValue));
+                .map(mismatchedValue ->
+                        InvalidWitnessedSingleCellTransactionAction.of(deleteTransactionAction, mismatchedValue));
 
         applyWrites(deleteTransactionAction.table(), deleteTransactionAction.cell(), Optional.empty());
         return invalidAction;
     }
 
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(
+            WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        // TODO (jkong): Not implemented yet
+        return Optional.empty();
+    }
+
     /**
      * Applies writes to both our read and latest table view.
      * Latest table view needs to be updated to apply our writes from our transaction,u}(j (12ac1ba77ac5173e6e93ae318bde8d17c872de28j fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj modifiedjy Kjz K j Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=ed7f2961d509072109126accddd6d06409230a87j XC  @@ -27,6 +27,7 @@
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
@@ -159,6 +160,12 @@ public Void visit(DeleteTransactionAction deleteTransactionAction) {
             transaction.delete(deleteTransactionAction.table(), deleteTransactionAction.cell());
             return null;
         }
+
+        @Override
+        public Void visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+            // TODO (jkong): Not implemented yet
+            throw new UnsupportedOperationException("Not implemented yet");
+        }
     }
 
     public static AtlasDbTransactionStore create(u}(j (53b40b5fe80de185e89ff3bfca0044e6f97e759dj patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj modifiedjy Kjz K j Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -20,6 +20,7 @@
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.HashMap;
@@ -55,6 +56,11 @@ public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         return null;
     }
 
+    @Override
+    public Void visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        return null;
+    }
+
     public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
         return values.getSnapshot();
     }u}(j (32db22149cce31693c0af4b33f0f275d03565d29j katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javaj modifiedjy Kjz K j Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -18,6 +18,7 @@
 
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 
@@ -39,4 +40,9 @@ public WriteTransactionAction visit(WitnessedWriteTransactionAction writeTransac
     public DeleteTransactionAction visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         return ImmutableDeleteTransactionAction.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
     }
+
+    @Override
+    public TransactionAction visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        return rowColumnRangeReadTransactionAction.originalQuery();
+    }
 }u}(j (0db0afc0570e8993b0ec99aac00c3f57657d6828j latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj modifiedjy K
jz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -22,6 +22,7 @@
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
@@ -116,13 +117,18 @@ public void catchesWriteSkew() {
         InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
                 Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
 
-        assertThat(invalidWitnessedTransactionAction.action())
-                .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
-                    assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
-                    assertThat(action.value()).contains(15);
-                });
-        assertThat(invalidWitnessedTransactionAction.mismatchedValue())
-                .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(
+                        InvalidWitnessedSingleCellTransactionAction.class,
+                        invalidSingleCellWitnessedTransactionAction -> {
+                            assertThat(invalidSingleCellWitnessedTransactionAction.action())
+                                    .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
+                                        assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
+                                        assertThat(action.value()).contains(15);
+                                    });
+                            assertThat(invalidSingleCellWitnessedTransactionAction.mismatchedValue())
+                                    .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+                        });
     }
 
     @Testu}(j (fb5813b8d5288d435a36c31b8acf757dd6e9083bj hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -22,6 +22,7 @@
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
 import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -62,10 +63,14 @@ public void catchesWriteWriteConflict() {
         assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
 
         InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
-        assertThat(invalidAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
-        assertThat(invalidAction.mismatchedValue())
-                .isEqualTo(MismatchedValue.of(
-                        ValueAndMaybeTimestamp.of(WorkloadTestHelpers.VALUE_ONE, 1L), ValueAndMaybeTimestamp.empty()));
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(InvalidWitnessedSingleCellTransactionAction.class, invalidSingleCellAction -> {
+                    assertThat(invalidSingleCellAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+                    assertThat(invalidSingleCellAction.mismatchedValue())
+                            .isEqualTo(MismatchedValue.of(
+                                    ValueAndMaybeTimestamp.of(WorkloadTestHelpers.VALUE_ONE, 1L),
+                                    ValueAndMaybeTimestamp.empty()));
+                });
     }
 
     @Test
@@ -90,10 +95,13 @@ public void catchesAbaWriteWriteConflictForDeletes() {
         assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
 
         InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
-        assertThat(invalidAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
-        assertThat(invalidAction.mismatchedValue())
-                .isEqualTo(MismatchedValue.of(
-                        ValueAndMaybeTimestamp.of(Optional.empty(), 1L), ValueAndMaybeTimestamp.empty()));
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(InvalidWitnessedSingleCellTransactionAction.class, invalidSingleCellAction -> {
+                    assertThat(invalidSingleCellAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+                    assertThat(invalidSingleCellAction.mismatchedValue())
+                            .isEqualTo(MismatchedValue.of(
+                                    ValueAndMaybeTimestamp.of(Optional.empty(), 1L), ValueAndMaybeTimestamp.empty()));
+                });
     }
 
     @Testu}(j (ce49e27d10355fb6f5b71d88a206899b12b7f25bj xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javaj modifiedjy Kjz Kj K
j https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=ed7f2961d509072109126accddd6d06409230a87j X+  @@ -30,6 +30,7 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -83,10 +84,11 @@ public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
                 .map(WitnessedTransaction::actions)
                 .flatMap(Collection::stream)
                 .collect(Collectors.toList());
-        assertThat(witnessedTransactionActions)
-                .allMatch(action -> action.table().equals(TABLE_NAME));
-        assertThat(witnessedTransactionActions)
-                .allMatch(action -> action.cell().equals(SingleBusyCellReadNoTouchWorkflows.BUSY_CELL));
+        assertThat(witnessedTransactionActions).allSatisfy(action -> assertThat(action)
+                .isInstanceOfSatisfying(WitnessedSingleCellTransactionAction.class, singleCellAction -> {
+                    assertThat(singleCellAction.table()).isEqualTo(TABLE_NAME);
+                    assertThat(singleCellAction.cell()).isEqualTo(SingleBusyCellReadNoTouchWorkflows.BUSY_CELL);
+                }));
     }
 
     @Testu}(j (241e8471f3f2d7c765f6ff9e98e1c055938e3a50j matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowsTest.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -29,6 +29,7 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -77,9 +78,10 @@ public void transactionsDoNotConflictExcessively() {
     @Test
     public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
         WorkflowHistory workflowHistory = workflow.run();
-        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+        List<WitnessedSingleCellTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
                 .map(WitnessedTransaction::actions)
                 .flatMap(Collection::stream)
+                .map(WitnessedSingleCellTransactionAction.class::cast)
                 .collect(Collectors.toList());
         assertThat(witnessedTransactionActions)
                 .allMatch(action -> action.table().equals(TABLE_NAME));u}(j (a982645e9685b7e2b328546bb927b2c415ad29bfj latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=ed7f2961d509072109126accddd6d06409230a87j X1  @@ -130,7 +130,7 @@ public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
         transactionStore.readWrite(txn -> txn.delete(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 1, 1)));
         invariant.accept(history, reference::set);
         assertThat(reference.get())
-                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                .containsExactly(CrossCellInconsistency.builder()
                         .putInconsistentValues(
                                 TableAndWorkloadCell.of(
                                         TABLE_NAME,
@@ -142,7 +142,7 @@ public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
                                         ImmutableWorkloadCell.of(
                                                 TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 1)),
                                 Optional.of(0))
-                        .build()));
+                        .build());
     }
 
     @Test
@@ -155,7 +155,7 @@ public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
                 TransientRowsWorkflows.VALUE));
         invariant.accept(history, reference::set);
         assertThat(reference.get())
-                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                .containsExactly(CrossCellInconsistency.builder()
                         .putInconsistentValues(
                                 TableAndWorkloadCell.of(
                                         TABLE_NAME,
@@ -167,7 +167,7 @@ public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
                                         ImmutableWorkloadCell.of(
                                                 TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 2)),
                                 Optional.empty())
-                        .build()));
+                        .build());
     }
 
     @Test
@@ -310,11 +310,12 @@ private static TableAndWorkloadCell getPrimaryCellForSummaryCell(TableAndWorkloa
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(
             WitnessedTransactionAction action) {
         if (action instanceof WitnessedReadTransactionAction) {
-            if (action.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
-                return WitnessedReadTransactionAction.of(action.table(), action.cell(), Optional.empty());
+            WitnessedReadTransactionAction readAction = (WitnessedReadTransactionAction) action;
+            if (readAction.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
+                return WitnessedReadTransactionAction.of(readAction.table(), readAction.cell(), Optional.empty());
             } else {
                 return WitnessedReadTransactionAction.of(
-                        action.table(), action.cell(), Optional.of(TransientRowsWorkflows.VALUE));
+                        readAction.table(), readAction.cell(), Optional.of(TransientRowsWorkflows.VALUE));
             }
         } else {
             return action;u}(j (fe0267e6f697a967a6133f2554009d8a0be04d4cj katlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtilsTest.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -67,7 +67,7 @@ public void performTransfersReturnsBalancesWithCorrectSum() {
         when(random.nextInt(anyInt())).thenReturn(0, 1);
         Map<Integer, Integer> balances = Map.of(0, 1, 1, 1);
         Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
-        assertThat(newBalances).isEqualTo(Map.of(0, 0, 1, 2));
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(Map.of(0, 0, 1, 2));
         assertThat(newBalances.values().stream().mapToInt(Integer::intValue).sum())
                 .isEqualTo(2);
     }
@@ -77,6 +77,6 @@ public void performsTransfersOnlyIfValueWouldNotBeBelowZero() {
         when(random.nextInt(anyInt())).thenReturn(0, 1);
         Map<Integer, Integer> balances = Map.of(0, 0, 1, 2);
         Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
-        assertThat(newBalances).isEqualTo(balances);
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(balances);
     }
 }u}(j (7ae440730798415742814c38fb59d0707273036ej datlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingGraphTest.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.java?ref=ed7f2961d509072109126accddd6d06409230a87j X=  @@ -101,6 +101,6 @@ public void generateNewRingReturnsValidRing() {
 
     @Test
     public void asMapConvertsCorrectly() {
-        assertThat(RingGraph.from(VALID_RING).asMap()).isEqualTo(VALID_RING);
+        assertThat(RingGraph.from(VALID_RING).asMap()).containsExactlyInAnyOrderEntriesOf(VALID_RING);
     }
 }u}(j (022221727d6f2d598a0016a225e75264c9780625j build.gradlej modifiedjy Kjz Kj K
j ^https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/build.gradlej ]https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/build.gradlej phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -7,20 +7,20 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.0'
-        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.2.0'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.4'
+        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.3.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.38.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.39.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
-        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
+        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
-        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'
+        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.3'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
         classpath 'gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1'
         classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'
@@ -113,8 +113,7 @@ allprojects {
                 'Slf4jLogsafeArgs',
                 'StaticAssignmentInConstructor',
                 'StrictUnusedVariable'
-        options.errorprone.error 'DefaultLocale',
-                'SafeLoggingPropagation'
+        options.errorprone.error 'SafeLoggingPropagation'
     }
 }
 u}(j (ffd47f177c27dd39d87fb4cd84339ad7d1911c1cj  changelog/0.874.0/pr-6625.v2.ymlj addedjy Kjz K j Kj vhttps://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/changelog%2F0.874.0%2Fpr-6625.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/changelog%2F0.874.0%2Fpr-6625.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.874.0%2Fpr-6625.v2.yml?ref=ed7f2961d509072109126accddd6d06409230a87j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LockV1] Add async thread info snapshotting (disabled by default)'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6625u}(j (a6c9d3dd239346b5de33d708683efcea7ca6e0d1j  changelog/0.875.0/pr-6623.v2.ymlj addedjy Kjz K j Kj vhttps://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/changelog%2F0.875.0%2Fpr-6623.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/changelog%2F0.875.0%2Fpr-6623.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.875.0%2Fpr-6623.v2.yml?ref=ed7f2961d509072109126accddd6d06409230a87j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Log lock holder thread info on timeout, slow lock acquisition and contention
+  links:
+  - https://github.com/palantir/atlasdb/pull/6623u}(j (34c425f71f242ce114bab888f8034960c6b716e7j  changelog/0.877.0/pr-6602.v2.ymlj addedjy Kjz K j Kj vhttps://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/changelog%2F0.877.0%2Fpr-6602.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/changelog%2F0.877.0%2Fpr-6602.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.877.0%2Fpr-6602.v2.yml?ref=ed7f2961d509072109126accddd6d06409230a87j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Add metrics for number of requested cell/row-level commit locks
+  links:
+  - https://github.com/palantir/atlasdb/pull/6602u}(j (933965abbab2686a96a62a6ac504123076081ec8j Ilock-api-objects/src/main/java/com/palantir/lock/LockClientAndThread.javaj addedjy K$jz K j K$j https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface LockClientAndThread {
+    LockClientAndThread UNKNOWN = LockClientAndThread.of(LockClient.ANONYMOUS, "unknown-thread");
+
+    LockClient client();
+
+    String thread();
+
+    static ImmutableLockClientAndThread.Builder builder() {
+        return ImmutableLockClientAndThread.builder();
+    }
+
+    static LockClientAndThread of(LockClient client, String requestingThread) {
+        return builder().client(client).thread(requestingThread).build();
+    }
+}u}(j (c0732dd117e0d492f18b686086a002759beb1281j Jlock-api/src/main/java/com/palantir/lock/DebugThreadInfoConfiguration.javaj addedjy K!jz K j K!j https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface DebugThreadInfoConfiguration {
+
+    @Value.Default
+    default boolean recordThreadInfo() {
+        return false;
+    }
+
+    @Value.Default
+    default long threadInfoSnapshotIntervalMillis() {
+        return 5000L;
+    }
+}u}(j (da50ee7393b93c8d71153140ffe86ba6c40366fcj ?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -16,6 +16,7 @@
 package com.palantir.lock;
 
 import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.google.common.base.MoreObjects;
@@ -126,6 +127,15 @@ public long slowLogTriggerMillis() {
         return 10000L;
     }
 
+    /**
+     * Runtime configuration relating to thread info recording (which lock is held by which client-thread).
+     */
+    @JsonIgnore
+    @Value.Default
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    }
+
     @Override
     public boolean equals(@Nullable Object obj) {
         if (this == obj) {
@@ -142,7 +152,8 @@ && getRandomBitCount() == other.getRandomBitCount()
                 && Objects.equals(getMaxAllowedClockDrift(), other.getMaxAllowedClockDrift())
                 && Objects.equals(getMaxAllowedBlockingDuration(), other.getMaxAllowedBlockingDuration())
                 && Objects.equals(getMaxNormalLockAge(), other.getMaxNormalLockAge())
-                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout());
+                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout())
+                && Objects.equals(threadInfoConfiguration(), other.threadInfoConfiguration());
     }
 
     @Override
@@ -155,7 +166,8 @@ public int hashCode() {
                 getMaxNormalLockAge(),
                 getRandomBitCount(),
                 getStuckTransactionTimeout(),
-                slowLogTriggerMillis());
+                slowLogTriggerMillis(),
+                threadInfoConfiguration());
     }
 
     @Override
@@ -169,6 +181,7 @@ public String toString() {
                 .add("randomBitCount", getRandomBitCount())
                 .add("stuckTransactionTimeout", getStuckTransactionTimeout())
                 .add("slowLogTriggerMillis", slowLogTriggerMillis())
+                .add("threadInfoConfiguration", threadInfoConfiguration())
                 .toString();
     }
 u}(j (11798108f5011933229198de0ecd0a9b6b828e68j lock-impl/build.gradlej modifiedjy Kjz K j Kj jhttps://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/lock-impl%2Fbuild.gradlej ihttps://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/lock-impl%2Fbuild.gradlej |https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fbuild.gradle?ref=ed7f2961d509072109126accddd6d06409230a87j Xb  @@ -22,6 +22,7 @@ dependencies {
   implementation project(':lock-api-objects')
   implementation project(':timestamp-api')
 
+  testImplementation 'org.awaitility:awaitility'
   testImplementation 'com.fasterxml.jackson.core:jackson-databind'
   testImplementation 'com.google.guava:guava'
   testImplementation 'com.palantir.safe-logging:preconditions'u}(j (34cefef0f32840760e1b45c880f7af92fa4d8e85j Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -92,6 +92,7 @@
 import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.BlockingQueue;
@@ -104,6 +105,7 @@
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicInteger;
 import java.util.function.Supplier;
+import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 import javax.annotation.concurrent.ThreadSafe;
@@ -183,6 +185,9 @@ public String toString() {
     private final SimpleTimeDuration stuckTransactionTimeout;
     private final AtomicBoolean isShutDown = new AtomicBoolean(false);
 
+    /** Configurable background task that periodically collects snapshots about the current lock state */
+    private final LockThreadInfoSnapshotManager threadInfoSnapshotManager;
+
     private final LockClientIndices clientIndices = new LockClientIndices();
 
     /** The backing client-aware read write lock for each lock descriptor. */
@@ -256,6 +261,9 @@ private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable
         this.maxNormalLockAge = SimpleTimeDuration.of(options.getMaxNormalLockAge());
         this.stuckTransactionTimeout = SimpleTimeDuration.of(options.getStuckTransactionTimeout());
         this.slowLogTriggerMillis = options.slowLogTriggerMillis();
+        this.threadInfoSnapshotManager =
+                new LockThreadInfoSnapshotManager(options.threadInfoConfiguration(), () -> heldLocksTokenMap);
+        threadInfoSnapshotManager.start();
     }
 
     private HeldLocksToken createHeldLocksToken(
@@ -465,7 +473,7 @@ private void logLockAcquisitionFailure(Map<LockDescriptor, LockClient> failedLoc
         final String logMessage = "Current holders of the first {} of {} total failed locks were: {}";
 
         List<String> lockDescriptions = new ArrayList<>();
-        Iterator<Map.Entry<LockDescriptor, LockClient>> entries =
+        Iterator<Entry<LockDescriptor, LockClient>> entries =
                 failedLocks.entrySet().iterator();
         for (int i = 0; i < MAX_FAILED_LOCKS_TO_LOG && entries.hasNext(); i++) {
             Map.Entry<LockDescriptor, LockClient> entry = entries.next();
@@ -477,7 +485,10 @@ private void logLockAcquisitionFailure(Map<LockDescriptor, LockClient> failedLoc
                 logMessage,
                 SafeArg.of("numLocksLogged", Math.min(MAX_FAILED_LOCKS_TO_LOG, failedLocks.size())),
                 SafeArg.of("numLocksFailed", failedLocks.size()),
-                UnsafeArg.of("lockDescriptions", lockDescriptions));
+                UnsafeArg.of("lockDescriptions", lockDescriptions),
+                threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(failedLocks.keySet().stream()
+                        .limit(MAX_FAILED_LOCKS_TO_LOG)
+                        .collect(Collectors.toSet())));
     }
 
     private boolean isBlocking(BlockingMode blockingMode) {
@@ -523,7 +534,7 @@ private void tryLocks(
                 LockClient currentHolder = tryLock(lock.get(client, entry.getValue()), blockingMode, deadline);
                 if (log.isDebugEnabled() || isSlowLogEnabled()) {
                     long responseTimeMillis = System.currentTimeMillis() - startTime;
-                    logSlowLockAcquisition(entry.getKey().toString(), currentHolder, responseTimeMillis);
+                    logSlowLockAcquisition(entry.getKey(), currentHolder, responseTimeMillis);
                 }
                 if (currentHolder == null) {
                     locks.put(lock, entry.getValue());
@@ -542,22 +553,25 @@ private void tryLocks(
     }
 
     @VisibleForTesting
-    void logSlowLockAcquisition(String lockId, LockClient currentHolder, long durationMillis) {
+    void logSlowLockAcquisition(LockDescriptor lockDescriptor, LockClient currentHolder, long durationMillis) {
         final String slowLockLogMessage = "Blocked for {} ms to acquire lock {} {}.";
+        final String lockId = lockDescriptor.getLockIdAsString();
 
         // Note: The construction of params is pushed into the branches, as it may be expensive.
         if (isSlowLogEnabled() && durationMillis >= slowLogTriggerMillis) {
             SlowLockLogger.logger.warn(
                     slowLockLogMessage,
                     SafeArg.of("durationMillis", durationMillis),
                     UnsafeArg.of("lockId", lockId),
-                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"));
+                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"),
+                    threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(Set.of(lockDescriptor)));
         } else if (log.isDebugEnabled() && durationMillis > DEBUG_SLOW_LOG_TRIGGER_MILLIS) {
             log.debug(
                     slowLockLogMessage,
                     SafeArg.of("durationMillis", durationMillis),
                     UnsafeArg.of("lockId", lockId),
-                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"));
+                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"),
+                    threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(Set.of(lockDescriptor)));
         }
     }
 
@@ -1227,6 +1241,10 @@ public long currentTimeMillis() {
         return System.currentTimeMillis();
     }
 
+    public LockThreadInfoSnapshotManager getSnapshotManager() {
+        return threadInfoSnapshotManager;
+    }
+
     private static String updateThreadName(LockRequest request) {
         String currentThreadName = Thread.currentThread().getName();
         tryRenameThread(uC
     }(j (599384706d72a7d0869da28e968fae05f9fc46caj Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javaj addedjy Kujz K j Kuj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=ed7f2961d509072109126accddd6d06409230a87j Xs  @@ -0,0 +1,117 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableMap;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.lock.DebugThreadInfoConfiguration;
+import com.palantir.lock.HeldLocksToken;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
+import com.palantir.logsafe.UnsafeArg;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.ConcurrentMap;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+
+public class LockThreadInfoSnapshotManager implements AutoCloseable {
+    private DebugThreadInfoConfiguration threadInfoConfiguration;
+
+    private Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
+
+    private volatile Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot;
+
+    private ScheduledExecutorService scheduledExecutorService = PTExecutors.newSingleThreadScheduledExecutor();
+
+    public LockThreadInfoSnapshotManager(
+            DebugThreadInfoConfiguration threadInfoConfiguration,
+            Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> mapSupplier) {
+        this.threadInfoConfiguration = threadInfoConfiguration;
+        this.tokenMapSupplier = mapSupplier;
+        this.lastKnownThreadInfoSnapshot = ImmutableMap.of();
+    }
+
+    public void start() {
+        scheduleRun();
+    }
+
+    private void run() {
+        takeSnapshot();
+
+        // schedule next snapshot so this can be enabled/disabled at runtime
+        scheduleRun();
+    }
+
+    private void scheduleRun() {
+        if (threadInfoConfiguration.recordThreadInfo()) {
+            scheduledExecutorService.schedule(
+                    this::run, threadInfoConfiguration.threadInfoSnapshotIntervalMillis(), TimeUnit.MILLISECONDS);
+        }
+    }
+
+    @VisibleForTesting
+    Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot() {
+        return lastKnownThreadInfoSnapshot;
+    }
+
+    /**
+     * Returns a consistent snapshot of thread information restricted to the given lock descriptors wrapped in an
+     * unsafe logging argument.
+     */
+    public UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> getRestrictedSnapshotAsOptionalLogArg(
+            Set<LockDescriptor> lockDescriptors) {
+        String argName = "presumedClientThreadHoldersIfEnabled";
+        if (!threadInfoConfiguration.recordThreadInfo()) {
+            return UnsafeArg.of(argName, Optional.empty());
+        }
+        Map<LockDescriptor, LockClientAndThread> latestSnapshot = lastKnownThreadInfoSnapshot;
+        Map<LockDescriptor, LockClientAndThread> restrictedSnapshot = new HashMap<>();
+        for (LockDescriptor lock : lockDescriptors) {
+            restrictedSnapshot.put(lock, latestSnapshot.get(lock));
+        }
+        return UnsafeArg.of(argName, Optional.of(restrictedSnapshot));
+    }
+
+    @VisibleForTesting
+    void takeSnapshot() {
+        lastKnownThreadInfoSnapshot = tokenMapSupplier.get().keySet().stream()
+                .flatMap(token -> {
+                    LockClientAndThread clientThread = LockClientAndThread.of(
+                            Objects.requireNonNullElse(token.getClient(), LockClientAndThread.UNKNOWN.client()),
+                            Objects.requireNonNullElse(
+                                    token.getRequestingThread(), LockClientAndThread.UNKNOWN.thread()));
+                    return token.getLockDescriptors().stream()
+                            .map(lockDescriptor -> Map.entry(lockDescriptor, clientThread));
+                })
+                // Although a lock can be held by multiple clients/threads, we only remember one to save space
+                .collect(Collectors.toMap(Entry::getKey, Entry::getValue, (existing, replacement) -> existing));
+    }
+
+    @Override
+    public void close() {
+        scheduledExecutorService.shutdown();
+    }
+}u}(j (aa47bbbffda9b68b9a93e2e31755530993156e4fj Glock-impl/src/test/java/com/palantir/lock/impl/LockServiceImplTest.javaj modifiedjy Kjz Kj K%j https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.java?ref=ed7f2961d509072109126accddd6d06409230a87j X!  @@ -22,16 +22,21 @@
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.lock.LockClient;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRefreshToken;
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.StringLockDescriptor;
 import com.palantir.lock.client.LockRefreshingLockService;
+import com.palantir.logsafe.UnsafeArg;
 import java.io.IOException;
 import java.util.HashSet;
 import java.util.List;
+import java.util.Map;
+import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.TimeUnit;
@@ -49,6 +54,9 @@
 public final class LockServiceImplTest {
     public static final long SLOW_LOG_TRIGGER_MILLIS = LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS + 10;
     private static final String TEST_LOCKID = "test_lockId";
+    private static final LockDescriptor TEST_LOCK = StringLockDescriptor.of(TEST_LOCKID);
+    private static final UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> THREAD_INFO_SNAPSHOT_ARG =
+            UnsafeArg.of("presumedClientThreadHoldersIfEnabled", Optional.empty());
     private static LockServiceImpl lockServiceWithSlowLogEnabled;
     private static LockServiceImpl lockServiceWithSlowLogDisabled;
 
@@ -94,48 +102,63 @@ public void slowLogShouldNotBeEnabledIfSlowLogTriggerMillisIsSetToZero() {
     @Test
     public void slowLogShouldBeLoggedWhenLockResponseIsSlowButShouldNotBeLoggedAtDebug() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS + 5;
-        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertThat(testLockServiceImplLogger.getLoggingEvents()).isEmpty();
 
         assertThat(testSlowLogger.getLoggingEvents()).hasSize(1);
         assertContainsMatchingLoggingEvent(
                 testSlowLogger.getLoggingEvents(),
-                warn("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                warn(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
     }
 
     @Test
     public void debugLogShouldBeLoggedWhenLockResponseIsSlowButSlowLogIsDisabled() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS + 5;
-        lockServiceWithSlowLogDisabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogDisabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertThat(testLockServiceImplLogger.getLoggingEvents()).hasSize(1);
         assertContainsMatchingLoggingEvent(
                 testLockServiceImplLogger.getLoggingEvents(),
-                debug("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                debug(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }
 
     @Test
     public void debugLogShouldBeLoggedIfLockResponseTimeIsBetweenDebugTriggerTimeAndSlowLogTriggerMillis() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS - 5;
-        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertContainsMatchingLoggingEvent(
                 testLockServiceImplLogger.getLoggingEvents(),
-                debug("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                debug(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }
 
     @Test
     public void debugOrSlowLogShouldNotBeLoggedWhenLockResponseIsNotSlow() {
         lockServiceWithSlowLogEnabled.logSlowLockAcquisition(
-                TEST_LOCKID, LockClient.ANONYMOUS, LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS - 5);
+                TEST_LOCK, LockClient.ANONYMOUS, LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS - 5);
         assertThat(testLockServiceImplLogger.getLoggingEvents()).isEmpty();
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }u}(j (bb40ec0ce734aeef758d1e8bd2b8a0433d7bd1dfj Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javaj addedjy MZjz K j MZj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=ed7f2961d509072109126accddd6d06409230a87j X?  @@ -0,0 +1,346 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableSortedMap;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.common.streams.KeyedStream;
+import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
+import com.palantir.lock.LockClient;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.LockMode;
+import com.palantir.lock.LockRequest;
+import com.palantir.lock.LockResponse;
+import com.palantir.lock.LockServerOptions;
+import com.palantir.lock.SimpleTimeDuration;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.logsafe.UnsafeArg;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Future;
+import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.awaitility.Awaitility;
+import org.junit.Test;
+
+public class ThreadInfoLockServiceImplTest {
+    private static final LockDescriptor TEST_LOCK_1 = StringLockDescriptor.of("lock-1");
+    private static final LockDescriptor TEST_LOCK_2 = StringLockDescriptor.of("lock-2");
+    private static final LockDescriptor TEST_LOCK_3 = StringLockDescriptor.of("lock-3");
+
+    private static final String TEST_THREAD_1 = "thread-1";
+    private static final String TEST_THREAD_2 = "thread-2";
+    private static final String TEST_THREAD_3 = "thread-3";
+
+    private static final LockRequest LOCK_1_THREAD_1_WRITE_REQUEST = LockRequest.builder(
+                    ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+            .withCreatingThreadName(TEST_THREAD_1)
+            .build();
+
+    private static final LockClientAndThread ANONYMOUS_TEST_THREAD_1 =
+            LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1);
+
+    private final ExecutorService executor =
+            PTExecutors.newCachedThreadPool(ThreadInfoLockServiceImplTest.class.getName());
+
+    // Disable background snapshotting, invoke explicitly instead
+    private final LockServiceImpl lockService = LockServiceImpl.create(LockServerOptions.builder()
+            .isStandaloneServer(false)
+            .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                    .recordThreadInfo(false)
+                    .build())
+            .build());
+
+    @Test
+    public void initialThreadInfoIsEmpty() {
+        forceSnapshot();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+    }
+
+    @Test
+    public void recordsThreadInfoForLock() throws InterruptedException {
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+    }
+
+    @Test
+    public void recordsThreadInfoForUnlock() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+
+        lockService.unlock(response.getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+    }
+
+    @Test
+    public void recordsThreadInfoForMultipleLocks() throws InterruptedException {
+        int numThreads = 10;
+        int numLocksPerThread = 10;
+
+        List<String> threadNames =
+                IntStream.range(0, numThreads).mapToObj(i -> "test-thread-" + i).collect(Collectors.toList());
+
+        Map<String, Set<LockDescriptor>> locksPerThread = KeyedStream.of(threadNames)
+                .map(threadName -> IntStream.range(0, numLocksPerThread)
+                        .mapToObj(i -> StringLockDescriptor.of("test-lock-" + i + "-from-thread-" + threadName))
+                        .collect(Collectors.toSet()))
+                .collectToMap();
+
+        for (Map.Entry<String, Set<LockDescriptor>> entry : locksPerThread.entrySet()) {
+            LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.copyOf(
+                            entry.getValue().stream().collect(Collectors.toMap(lock -> lock, lock -> LockMode.WRITE))))
+                    .withCreatingThreadName(entry.getKey())
+                    .build();
+            lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest);
+        }
+
+        forceSnapshot();
+
+        locksPerThread.forEach((threadName, lockDescriptors) ->
+                lockDescriptors.forEach(lock -> assertThat(getLatestThreadInfoForLock(lock))
+                        .contains(LockClientAndThread.of(LockClient.ANONYMOUS, threadName))));
+    }
+
+    @Test
+    public void recordsThreadInfoForSharedLock() throws InterruptedException {
+        LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+        LockRequest lockRequest2 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .doNotBlock()
+                .lockAsManyAsPossible()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        LockResponse lockResponse = lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest1);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1).get())
+                .isIn(ANONYMOUS_TEST_THREAD_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+
+        lockService.unlock(lockResponse.getToken());
+
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+    }
+
+    @Test
+    public void doesNotRecordDroppedLocksWithLockAllOrNone() throws InterruptedException {
+        // T2 cannot get lock 1 -> grouping behavior LOCK_ALL_OR_NONE will release lock 2, even though it could have
+        // been locked
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
+                .doNotBlock()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+    }
+
+    @Test
+    public void recordsUnlockAndFreezeForNonAnonymousClient() throws InterruptedException {
+        LockClient client = LockClient.of("non-anonymous-client");
+
+        LockResponse response = lockService.lockWithFullLockResponse(client, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(LockClientAndThread.of(client, TEST_THREAD_1));
+
+        lockService.unlockAndFreeze(response.getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+    }
+
+    @Test
+    public void recordsCorrectStateAfterMultipleOperations() throws Exception {
+        CountDownLatch latch = new CountDownLatch(1);
+
+        // T1 locks 1 exclusively and locks 2 in shared mode
+        LockResponse response1 = lockService.lockWithFullLockResponse(
+                LockClient.ANONYMOUS,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_1)
+                        .build());
+
+        // T2 shouldn't get 1, but locks 3 in exclusive mode,
+        LockResponse response2 = lockService.lockWithFullLockResponse(
+                LockClient.ANONYMOUS,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_3, LockMode.WRITE))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_2)
+                        .build());
+
+        Future<LockResponse> response3 = executor.submit(() -> {
+
+            // T3 will wait at most 5 seconds to lock 1 in exclusive mode and lock 2 in shared mode
+            LockResponse response = lockService.lockWithFullLockResponse(
+                    LockClient.ANONYMOUS,
+                    LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                            .blockForAtMost(SimpleTimeDuration.of(5, TimeUnit.SECONDS))
+                            .lockAsManyAsPossible()
+                            .withCreatingThreadName(TEST_THREAD_3)
+                            .build());
+            latch.countDown();
+            return response;
+        });
+        lockService.unlock(response1.getToken());
+        latch.await();
+
+        forceSnapshot();
+
+        // T1 should hold nothing, T2 holds 3 in exclusive mode, T3 holds 1 in exclusive and 2 in shared mode
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+
+        lockService.unlock(response2.getToken());
+        forceSnapshot();
+
+        // Only T3 should hold locks
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+
+        lockService.unlock(response3.get().getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+    }
+
+    @Test
+    public void refreshDoesNotChangeSnapshot() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+
+        lockService.refreshTokens(List.of(response.getToken()));
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+    }
+
+    @Test
+    public void backgroundSnapshotRunnerWorks() throws InterruptedException {
+        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
+                .isStandaloneServer(false)
+                .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                        .recordThreadInfo(true)
+                        .threadInfoSnapshotIntervalMillis(50L)
+                        .build())
+                .build());
+        LockThreadInfoSnapshotManager backgroundSnapshotRunner = lockServiceWithBackgroundRunner.getSnapshotManager();
+
+        LockResponse response = lockServiceWithBackgroundRunner.lockWithFullLockResponse(
+                LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+
+        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
+                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
+                .containsExactly(Map.entry(TEST_LOCK_1, ANONYMOUS_TEST_THREAD_1)));
+
+        lockServiceWithBackgroundRunner.unlock(response.getToken());
+
+        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
+                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
+                .doesNotContainKey(TEST_LOCK_1));
+    }
+
+    @Test
+    public void logArgIsUnsafeAndContainsEmptyOptionalIfNotRecordingThreadInfo() throws InterruptedException {
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+        assertThat(lockService.getSnapshotManager().getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
+                .isEqualTo(UnsafeArg.of("presumedClientThreadHoldersIfEnabled", Optional.empty()));
+    }
+
+    @Test
+    public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() throws InterruptedException {
+        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
+                .isStandaloneServer(false)
+                .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                        .recordThreadInfo(true)
+                        .threadInfoSnapshotIntervalMillis(50L)
+                        .build())
+                .build());
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
+                .doNotBlock()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockServiceWithBackgroundRunner.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockServiceWithBackgroundRunner.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+
+        Awaitility.waitAtMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(lockServiceWithBackgroundRunner
+                        .getSnapshotManager()
+                        .getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
+                .isEqualTo(UnsafeArg.of(
+                        "presumedClientThreadHoldersIfEnabled",
+                        // Snapshot should be restricted to TEST_LOCK_1
+                        Optional.of(
+                                Map.of(TEST_LOCK_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1))))));
+    }
+
+    private void forceSnapshot() {
+        lockService.getSnapshotManager().takeSnapshot();
+    }
+
+    private Optional<LockClientAndThread> getLatestThreadInfoForLock(LockDescriptor lock) {
+        return Optional.ofNullable(lockService
+                .getSnapshotManager()
+                .getLastKnownThreadInfoSnapshot()
+                .get(lock));
+    }
+}u}(j (fb11a351d6654b7a0cc3a195858b7025099f9539j %scripts/circle-ci/run-circle-tests.shj modifiedjy Kjz Kj Kj {https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/scripts%2Fcircle-ci%2Frun-circle-tests.shj zhttps://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/scripts%2Fcircle-ci%2Frun-circle-tests.shj https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=ed7f2961d509072109126accddd6d06409230a87j X  @@ -2,7 +2,7 @@
 
 set -x
 
-BASE_GRADLE_ARGS="--profile"
+BASE_GRADLE_ARGS="--scan --profile --continue"
 
 function checkDocsBuild {
      pyenv install 3.5.4
@@ -82,7 +82,7 @@ elif [ "$test_suite_index" -eq "3" ]; then
     BASE_GRADLE_ARGS+=" --scan --parallel"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
-    BASE_GRADLE_ARGS+=" --scan --parallel"
+    BASE_GRADLE_ARGS+=" --parallel"
 fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64mu}(j (f7a0eb86db4453d45c0f6446984396538e442e0bj Itimelock-agent/src/main/java/com/palantir/timelock/paxos/LockCreator.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.java?ref=ed7f2961d509072109126accddd6d06409230a87j XN  @@ -44,7 +44,8 @@ public CloseableLockService createThreadPoolingLockService() {
                 .build();
 
         LockServiceImpl rawLockService = LockServiceImpl.create(lockServerOptions, sharedExecutor);
-        CloseableLockService lockService = BlockingTimeLimitedLockService.create(rawLockService, blockingTimeoutMs);
+        CloseableLockService lockService = BlockingTimeLimitedLockService.create(
+                rawLockService, blockingTimeoutMs, rawLockService.getSnapshotManager());
 
         return new ThreadPooledLockService(lockService, -1, sharedThreadPool);
     }u}(j (cba6348015c254aa9ba5c6b6a2f959d6673f27dcj btimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockService.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.java?ref=ed7f2961d509072109126accddd6d06409230a87j X/
  @@ -32,6 +32,7 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.LockState;
 import com.palantir.lock.SimpleHeldLocksToken;
+import com.palantir.lock.impl.LockThreadInfoSnapshotManager;
 import com.palantir.lock.remoting.BlockingTimeoutException;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
@@ -44,31 +45,45 @@
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.TimeoutException;
+import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import javax.ws.rs.PathParam;
 import org.immutables.value.Value;
 
 public class BlockingTimeLimitedLockService implements CloseableLockService {
     private static final SafeLogger log = SafeLoggerFactory.get(BlockingTimeLimitedLockService.class);
 
+    private static final int MAX_THREADINFO_TO_LOG = 20;
+
     private final CloseableLockService delegate;
     private final TimeLimiter timeLimiter;
     private final long blockingTimeLimitMillis;
 
+    private final LockThreadInfoSnapshotManager threadInfoSnapshotManager;
+
     @VisibleForTesting
     BlockingTimeLimitedLockService(
-            CloseableLockService delegate, TimeLimiter timeLimiter, long blockingTimeLimitMillis) {
+            CloseableLockService delegate,
+            TimeLimiter timeLimiter,
+            long blockingTimeLimitMillis,
+            LockThreadInfoSnapshotManager threadInfoSnapshotManager) {
         this.delegate = delegate;
         this.timeLimiter = timeLimiter;
         this.blockingTimeLimitMillis = blockingTimeLimitMillis;
+        this.threadInfoSnapshotManager = threadInfoSnapshotManager;
     }
 
     public static BlockingTimeLimitedLockService create(
-            CloseableLockService lockService, long blockingTimeLimitMillis) {
+            CloseableLockService lockService,
+            long blockingTimeLimitMillis,
+            LockThreadInfoSnapshotManager threadInfoSnapshotManager) {
         // TODO (jkong): Inject the executor to allow application lifecycle managed executors.
         // Currently maintaining existing behaviour.
         return new BlockingTimeLimitedLockService(
-                lockService, SimpleTimeLimiter.create(PTExecutors.newCachedThreadPool()), blockingTimeLimitMillis);
+                lockService,
+                SimpleTimeLimiter.create(PTExecutors.newCachedThreadPool()),
+                blockingTimeLimitMillis,
+                threadInfoSnapshotManager);
     }
 
     @Nullable
@@ -234,7 +249,11 @@ private BlockingTimeoutException logAndHandleTimeout(LockRequestSpecification sp
                 SafeArg.of("timeoutDurationMillis", blockingTimeLimitMillis),
                 SafeArg.of("method", specification.method()),
                 SafeArg.of("client", specification.client()),
-                UnsafeArg.of("lockRequest", specification.lockRequest()));
+                UnsafeArg.of("lockRequest", specification.lockRequest()),
+                threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(
+                        specification.lockRequest().getLockDescriptors().stream()
+                                .limit(MAX_THREADINFO_TO_LOG)
+                                .collect(Collectors.toSet())));
 
         String errorMessage = String.format(
                 logMessage.replace("{}", "%s"),u}(j (ba84282c91e1c85c2d25288ffc78e1895ce61edej ftimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockServiceTest.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.javaj https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.java?ref=ed7f2961d509072109126accddd6d06409230a87j X:  @@ -33,6 +33,7 @@
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.impl.LockThreadInfoSnapshotManager;
 import com.palantir.lock.remoting.BlockingTimeoutException;
 import java.io.IOException;
 import java.util.concurrent.ExecutionException;
@@ -57,6 +58,8 @@ public class BlockingTimeLimitedLockServiceTest {
 
     private final CloseableLockService delegate = mock(CloseableLockService.class);
 
+    private final LockThreadInfoSnapshotManager snapshotManager = mock(LockThreadInfoSnapshotManager.class);
+
     private final BlockingTimeLimitedLockService acceptingService = createService(acceptingLimiter);
     private final BlockingTimeLimitedLockService timingOutService = createService(timingOutLimiter);
     private final BlockingTimeLimitedLockService interruptingService = createService(interruptingLimiter);
@@ -130,6 +133,6 @@ private void verifyCurrentTimeMillisDelegates(BlockingTimeLimitedLockService ser
     }
 
     private BlockingTimeLimitedLockService createService(TimeLimiter limiter) {
-        return new BlockingTimeLimitedLockService(delegate, limiter, BLOCKING_TIME_LIMIT_MILLIS);
+        return new BlockingTimeLimitedLockService(delegate, limiter, BLOCKING_TIME_LIMIT_MILLIS, snapshotManager);
     }
 }u}(j (7e6db456799d82898cfe8fc79ce89cc6685ae290j 
versions.lockj modifiedjy K$jz K$j KHj _https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/versions.lockj ^https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/versions.lockj qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=ed7f2961d509072109126accddd6d06409230a87j XA)  @@ -10,22 +10,22 @@ com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
 com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c38132bb)
 com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bbb5dd72)
-com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 03bafb2e)
-com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e133df00)
-com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7e1c9da4)
+com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 06bad036)
+com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e233e000)
+com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7f1c9ea4)
 com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2 (4 constraints: 2244332b)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 333f21b0)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6b30665e)
-com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 312bccaf)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6b30665e)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 343f76b0)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6c30915e)
+com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 322bf7af)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6c30915e)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 40197abb)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 41197bbb)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.2 (2 constraints: 251d9309)
-com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9a1c98a6)
+com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9b1c99a6)
 com.fasterxml.jackson.module:jackson-module-blackbird:2.14.2 (1 constraints: b40e625e)
 com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.2 (2 constraints: db2e8469)
 com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 24cec010)
+com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 2dce2620)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -45,7 +45,7 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (23 constraints: a3788bf6)
+com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f2947442)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
@@ -67,28 +67,28 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:6.77.0 (5 constraints: ad546073)
-com.palantir.conjure.java:conjure-undertow-annotations:6.77.0 (1 constraints: 4605743b)
-com.palantir.conjure.java:conjure-undertow-lib:6.77.0 (2 constraints: 8d1cfdb0)
+com.palantir.conjure.java:conjure-lib:7.5.0 (5 constraints: cd530c72)
+com.palantir.conjure.java:conjure-undertow-annotations:7.5.0 (1 constraints: 0e051d36)
+com.palantir.conjure.java:conjure-undertow-lib:7.5.0 (2 constraints: 1d1c4081)
 com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 3d696e70)
 com.palantir.conjure.java.api:service-config:2.34.0 (5 constraints: 724d79ca)
 com.palantir.conjure.java.api:ssl-config:2.34.0 (3 constraints: e22a0da5)
-com.palantir.conjure.java.runtime:client-config:7.40.0 (6 constraints: a46bdb28)
-com.palantir.conjure.java.runtime:conjure-java-annotations:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.40.0 (2 constraints: c521007b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.40.0 (6 constraints: 306e1085)
-com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.40.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.40.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:keystores:7.40.0 (3 constraints: 162a3e5f)
-com.palantir.conjure.java.runtime:refresh-utils:7.40.0 (2 constraints: 051e6045)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.77.0 (2 constraints: 7f29c101)
-com.palantir.dialogue:dialogue-blocking-channels:3.77.0 (2 constraints: e12335b4)
-com.palantir.dialogue:dialogue-clients:3.77.0 (1 constraints: 4305623b)
-com.palantir.dialogue:dialogue-core:3.77.0 (3 constraints: 833de5e1)
-com.palantir.dialogue:dialogue-futures:3.77.0 (3 constraints: da3348c0)
-com.palantir.dialogue:dialogue-serde:3.77.0 (3 constraints: c12e6ba4)
-com.palantir.dialogue:dialogue-target:3.77.0 (7 constraints: 9e760764)
+com.palantir.conjure.java.runtime:client-config:7.45.0 (6 constraints: bd6b2133)
+com.palantir.conjure.java.runtime:conjure-java-annotations:7.45.0 (1 constraints: c6188d9e)
+com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.45.0 (2 constraints: ca210f7b)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.45.0 (6 constraints: 3f6ee88e)
+com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.45.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.45.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.45.0 (1 constraints: c6188d9e)
+com.palantir.conjure.java.runtime:keystores:7.45.0 (3 constraints: 202a4c60)
+com.palantir.conjure.java.runtime:refresh-utils:7.45.0 (2 constraints: 0a1e6f45)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.78.0 (2 constraints: 83295d02)
+com.palantir.dialogue:dialogue-blocking-channels:3.78.0 (2 constraints: e32369b4)
+com.palantir.dialogue:dialogue-clients:3.78.0 (1 constraints: 4405653b)
+com.palantir.dialogue:dialogue-core:3.78.0 (3 constraints: 883d62e3)
+com.palantir.dialogue:dialogue-futures:3.78.0 (3 constraints: dd33dac0)
+com.palantir.dialogue:dialogue-serde:3.78.0 (3 constraints: c62e7fa5)
+com.palantir.dialogue:dialogue-target:3.78.0 (7 constraints: a7763c6a)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -98,7 +98,7 @@ com.palantir.goethe:goethe:0.9.0 (1 constraints: 0b050636)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
 com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
-com.palantir.safe-logging:logger:3.2.0 (23 constraints: 4e88492a)
+com.palantir.safe-logging:logger:3.2.0 (24 constraints: 98a4d6fa)
 com.palantir.safe-logging:logger-slf4j:3.2.0 (1 constraints: 000e5942)
 com.palantir.safe-logging:logger-spi:3.2.0 (2 constraints: 0f1e997a)
 com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: f7178aeb)
@@ -108,14 +108,14 @@ com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
 com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 485c7290)
 com.palantir.tracing:tracing:6.17.0 (8 constraints: f97d045e)
 com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 1745b4f5)
-com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 441994bb)
+com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 46199abb)
 com.palantir.tritium:tritium-api:0.64.0 (6 constraints: 5052c7ce)
 com.palantir.tritium:tritium-caffeine:0.64.0 (1 constraints: 3c05433b)
 com.palantir.tritium:tritium-core:0.64.0 (5 constraints: 5d43281d)
 com.palantir.tritium:tritium-lib:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f16b49d8)
+com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f96b65dd)
 com.palantir.tritium:tritium-proxy:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-registry:0.64.0 (12 constraints: f6d27f35)
+com.palantir.tritium:tritium-registry:0.64.0 (13 constraints: 88ef0d92)
 com.palantir.tritium:tritium-slf4j:0.64.0 (2 constraints: bd138370)
 com.palantir.tritium:tritium-time:0.64.0 (1 constraints: 820e8359)
 com.palantir.tritium:tritium-tracing:0.64.0 (1 constraints: 820e8359)
@@ -186,7 +186,7 @@ io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf
 io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
-io.undertow:undertow-core:2.2.24.Final (2 constraints: 361dd006)
+io.undertow:undertow-core:2.2.25.Final (2 constraints: 331dfa06)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
@@ -195,7 +195,7 @@ jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 26793e31)
 jakarta.inject:jakarta.inject-api:1.0.5 (13 constraints: decbc9f9)
 jakarta.servlet:jakarta.servlet-api:4.0.4 (10 constraints: 7b9def70)
 jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
-jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (18 constraints: 5a38d98d)
+jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (17 constraints: 6f283f6d)
 jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.5 (6 constraints: 845987f4)u}(j (2264b52adc181a5229efb8c18e921b0c209e904aj versions.propsj modifiedjy Kjz Kj Kj `https://github.com/palantir/atlasdb/blob/ed7f2961d509072109126accddd6d06409230a87/versions.propsj _https://github.com/palantir/atlasdb/raw/ed7f2961d509072109126accddd6d06409230a87/versions.propsj rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=ed7f2961d509072109126accddd6d06409230a87j XG  @@ -25,9 +25,9 @@ com.palantir.common:streams = 2.1.0
 com.palantir.config.crypto:* = 5.1.0
 com.palantir.conjure.java.api:* = 2.29.0
 com.palantir.conjure.java.runtime:* = 7.39.0
-com.palantir.conjure.java:* = 6.77.0
-com.palantir.conjure:conjure = 4.35.0
-com.palantir.dialogue:* = 3.77.0
+com.palantir.conjure.java:* = 7.5.0
+com.palantir.conjure:conjure = 4.36.0
+com.palantir.dialogue:* = 3.78.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
 com.palantir.goethe:* = 0.9.0
@@ -46,7 +46,7 @@ commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
 io.netty:* = 4.1.90.Final
-io.undertow:* = 2.2.24.Final
+io.undertow:* = 2.2.25.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2ueu(84bd2ee3686bc6bfd7e8497a8efd48454fd861d9}(sha(84bd2ee3686bc6bfd7e8497a8efd48454fd861d9node_idEC_kwDOAjP5fdoAKDg0YmQyZWUzNjg2YmM2YmZkN2U4NDk3YThlZmQ0ODQ1NGZkODYxZDkcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-22T15:04:21Zu	committer}(jn 
Sam Kramerjp skramer@palantir.comjr 2023-06-22T15:04:21Zumessagepurposefully push sweep bugtree}(jf (8f2e18d9a1eb514dfb561e45a708224c33921fb8url`https://api.github.com/repos/palantir/atlasdb/git/trees/8f2e18d9a1eb514dfb561e45a708224c33921fb8uj~ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/84bd2ee3686bc6bfd7e8497a8efd48454fd861d9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSUYvUACgkQmPPOpKR4
XS0IsQgAibl3nfnM8eNpsklhbrhO+rvcyGJUfFxyoq1TgSe44nyZBZAexL6TPHnl
PDuiGiR882hjcvH70Vmaq8UroHpObTMJIHwA8iLpnTeuhbtAZxY5XLPY8bne4aTP
dzXsyIXTVlC4O/apjZwqWhU8SroRq3YUEDRubeQwDPI4AU/6SPvsyU/xX1zQggAQ
kvdR8dKPsFQsnocHHF8ezdPVwWMX8MNjmmYhUt2fU3fe2Gobw+Mdp16qu+Vct9P2
KHZlwtzONfQc/ehu15zJXZRY8NEOvoHmsvHdcZ6YoudBufLlIE7a6ScYnPMOzsGt
F1+uTcp/ftufVnm5uu3AuaRgPXhvRg==
=NPCC
-----END PGP SIGNATURE-----payloadtree 8f2e18d9a1eb514dfb561e45a708224c33921fb8
parent cdc5e536abdb53259045abaaa8470b881700ac00
author Sam Kramer <skramer@palantir.com> 1687446261 +0100
committer Sam Kramer <skramer@palantir.com> 1687446261 +0100

purposefully push sweep bug
uuj~ ^https://api.github.com/repos/palantir/atlasdb/commits/84bd2ee3686bc6bfd7e8497a8efd48454fd861d9html_urlShttps://github.com/palantir/atlasdb/commit/84bd2ee3686bc6bfd7e8497a8efd48454fd861d9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/84bd2ee3686bc6bfd7e8497a8efd48454fd861d9/commentsjl }(login
Sam-KrameridJ^2_ jh MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j~ 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujt }(j 
Sam-Kramerj J^2_ jh MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j~ 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jf (cdc5e536abdb53259045abaaa8470b881700ac00j~ ^https://api.github.com/repos/palantir/atlasdb/commits/cdc5e536abdb53259045abaaa8470b881700ac00j Shttps://github.com/palantir/atlasdb/commit/cdc5e536abdb53259045abaaa8470b881700ac00uastats}(totalK	additionsK	deletionsKufiles]}(jf (6735acdae9afca5e41e976579b7829865397b699filenameiatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/84bd2ee3686bc6bfd7e8497a8efd48454fd861d9/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/84bd2ee3686bc6bfd7e8497a8efd48454fd861d9/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=84bd2ee3686bc6bfd7e8497a8efd48454fd861d9patchXN  @@ -215,7 +215,7 @@ public void close() {
     }
 
     static final ConsistencyLevel WRITE_CONSISTENCY = ConsistencyLevel.EACH_QUORUM;
-    static final ConsistencyLevel DELETE_CONSISTENCY = ConsistencyLevel.ALL;
+    static final ConsistencyLevel DELETE_CONSISTENCY = ConsistencyLevel.EACH_QUORUM;
 
     private final Logger log;
 uau(1c571e7d567be547d6bec412927093487a493b4b}(sha(1c571e7d567be547d6bec412927093487a493b4bnode_idEC_kwDOAjP5fdoAKDFjNTcxZTdkNTY3YmU1NDdkNmJlYzQxMjkyNzA5MzQ4N2E0OTNiNGIcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-27T14:16:20Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-06-27T14:16:20ZumessageAddress final review comments
Clear value if not recording
Use atomic boolean
Switch to atomiclong
Document unintuitive minimum interval test
Catch errors separately
Log when executor rejects our tasktree}(j (14875d58d97e044207f60d2ab6f7fa13e61edf35url`https://api.github.com/repos/palantir/atlasdb/git/trees/14875d58d97e044207f60d2ab6f7fa13e61edf35uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1c571e7d567be547d6bec412927093487a493b4b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSa7zQACgkQmF9s0kaF
Iw2fzAgAn7v3EoekFU2gyHT+gGq6FB9Blf07wCzCtI0dBWM1ps44cVtxLyYcMiLG
DppCutYO0lrfGFMd/ubSMGgNprrZmuLPFgtuq81AL6r0NBm/8TcrDbXewpFX+gm2
MAvY0eOoIg4oSlBhfQ/mEPUrkx9sRCgGIM3VxV01agq700QoDrBgtuBLnPLv7NIg
GGEj9IZxTb56v6pgju0QE8iVFhQ+XMV6XnT5hvMRm+x5QKFqxdGTAtz0hPbhNhhu
J8+jwjbFrJQZNRHqFtF7+Dm37Lu0yZaOd2UIEpxG+cAVaXTxeKG2QQHYsO/jK8Fr
Wc4k3RHsPEjouPijY3jpbrw7KhYCig==
=fOaa
-----END PGP SIGNATURE-----payloadX  tree 14875d58d97e044207f60d2ab6f7fa13e61edf35
parent 27f08bb3b9ad6079d30ebc98c49de8672c336abf
author Tom Papke <tpapke@palantir.com> 1687875380 +0100
committer Tom Papke <tpapke@palantir.com> 1687875380 +0100

Address final review comments
Clear value if not recording
Use atomic boolean
Switch to atomiclong
Document unintuitive minimum interval test
Catch errors separately
Log when executor rejects our task
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/1c571e7d567be547d6bec412927093487a493b4bhtml_urlShttps://github.com/palantir/atlasdb/commit/1c571e7d567be547d6bec412927093487a493b4bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1c571e7d567be547d6bec412927093487a493b4b/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej
 Jboj MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j! 6https://api.github.com/users/Toemmsche/received_eventsj# Userj% uparents]}(j (27f08bb3b9ad6079d30ebc98c49de8672c336abfj ^https://api.github.com/repos/palantir/atlasdb/commits/27f08bb3b9ad6079d30ebc98c49de8672c336abfj Shttps://github.com/palantir/atlasdb/commit/27f08bb3b9ad6079d30ebc98c49de8672c336abfuastats}(totalK:	additionsK%	deletionsKufiles](}(j (ccf79fc6208425b23884007b50ffc458e3a26bd5filenameLlock-impl/src/main/java/com/palantir/lock/impl/AdjustableBackgroundTask.javastatusmodifiedj? K
j@ KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/1c571e7d567be547d6bec412927093487a493b4b/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1c571e7d567be547d6bec412927093487a493b4b/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.java?ref=1c571e7d567be547d6bec412927093487a493b4bpatchX   @@ -18,6 +18,7 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.io.Closeable;
@@ -69,11 +70,14 @@ private void run() {
                 task.run();
             } catch (Exception e) {
                 if (Thread.interrupted()) {
-                    log.error("Task was interrupted", e);
+                    log.error("Task was interrupted. Stopping background execution.", e);
                     Thread.currentThread().interrupt();
                     return;
                 }
-                log.error("Error occurred during task", e);
+                log.error("Exception occurred during task", e);
+            } catch (Error e) {
+                log.error("Error occurred during task. Stopping background execution.", e);
+                return;
             }
         }
         try {
@@ -83,7 +87,10 @@ private void run() {
                     shouldRun ? intervalMillis : Math.max(MINIMUM_INTERVAL_IF_NOT_RUNNING.toMillis(), intervalMillis),
                     TimeUnit.MILLISECONDS);
         } catch (RejectedExecutionException e) {
-            // that's ok, we were probably closed
+            log.warn(
+                    "Scheduler rejected execution",
+                    SafeArg.of("schedulerIsShutdown", scheduledExecutor.isShutdown()),
+                    e);
         }
     }
 u}(j (8fe141cc254985903635606c7c4d0fb75eae629bjE Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javajG modifiedj? Kj@ K jI KjJ https://github.com/palantir/atlasdb/blob/1c571e7d567be547d6bec412927093487a493b4b/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javajL https://github.com/palantir/atlasdb/raw/1c571e7d567be547d6bec412927093487a493b4b/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javajN https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=1c571e7d567be547d6bec412927093487a493b4bjP XP  @@ -73,6 +73,8 @@ public UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> getRestrict
             Set<LockDescriptor> lockDescriptors) {
         String argName = "presumedClientThreadHoldersIfEnabled";
         if (!threadInfoConfiguration.current().recordThreadInfo()) {
+            // Avoids keeping the value alive even though we are never returning it
+            lastKnownThreadInfoSnapshot = Map.of();
             return UnsafeArg.of(argName, Optional.empty());
         }
         Map<LockDescriptor, LockClientAndThread> latestSnapshot = lastKnownThreadInfoSnapshot;u}(j (97ae55956450814bf5146499495e54f469faa960jE Plock-impl/src/test/java/com/palantir/lock/impl/AdjustableBackgroundTaskTest.javajG modifiedj? Kj@ KjI K+jJ https://github.com/palantir/atlasdb/blob/1c571e7d567be547d6bec412927093487a493b4b/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javajL https://github.com/palantir/atlasdb/raw/1c571e7d567be547d6bec412927093487a493b4b/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javajN https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.java?ref=1c571e7d567be547d6bec412927093487a493b4bjP Xl  @@ -22,23 +22,24 @@
 import com.palantir.refreshable.SettableRefreshable;
 import java.time.Duration;
 import java.util.concurrent.TimeUnit;
-import java.util.concurrent.atomic.AtomicInteger;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.concurrent.atomic.AtomicLong;
 import org.jmock.lib.concurrent.DeterministicScheduler;
 import org.junit.BeforeClass;
 import org.junit.Test;
 
 public class AdjustableBackgroundTaskTest {
     private static final Duration DEFAULT_INTERVAL = Duration.ofSeconds(10);
-    private final AtomicInteger field = new AtomicInteger(0);
-    private final SettableRefreshable<Boolean> shouldRun = Refreshable.create(false);
+    private final AtomicLong field = new AtomicLong(0);
+    private final AtomicBoolean shouldRun = new AtomicBoolean(false);
     private final SettableRefreshable<Duration> interval = Refreshable.create(DEFAULT_INTERVAL);
     private final DeterministicScheduler scheduledExecutor = new DeterministicScheduler();
-    private final AtomicInteger numCallsToShouldRunSupplier = new AtomicInteger();
-    private final AtomicInteger numCallsToIntervalSupplier = new AtomicInteger(0);
+    private final AtomicLong numCallsToShouldRunSupplier = new AtomicLong(0);
+    private final AtomicLong numCallsToIntervalSupplier = new AtomicLong(0);
     private final AdjustableBackgroundTask adjustableBackgroundTask = new AdjustableBackgroundTask(
             () -> {
                 numCallsToShouldRunSupplier.incrementAndGet();
-                return shouldRun.current();
+                return shouldRun.get();
             },
             () -> {
                 numCallsToIntervalSupplier.incrementAndGet();
@@ -67,16 +68,16 @@ public void doesNotRunTaskByDefault() {
 
     @Test
     public void canBeEnabledDisabledAndReEnabled() {
-        shouldRun.update(true);
+        shouldRun.set(true);
         tick(DEFAULT_INTERVAL);
-        int after = field.get();
+        long after = field.get();
         assertThat(after).isEqualTo(1);
 
-        shouldRun.update(false);
+        shouldRun.set(false);
         tick(DEFAULT_INTERVAL);
         assertThat(field.get()).isEqualTo(after);
 
-        shouldRun.update(true);
+        shouldRun.set(true);
         tick(DEFAULT_INTERVAL);
         assertThat(field.get()).isEqualTo(after + 1);
     }
@@ -85,8 +86,8 @@ public void canBeEnabledDisabledAndReEnabled() {
     public void canAdjustInterval() {
         Duration newInterval = Duration.ofMinutes(1);
         interval.update(newInterval);
-        shouldRun.update(true);
-        // will run the task once
+        shouldRun.set(true);
+        // initial run was scheduled at default interval
         tick(DEFAULT_INTERVAL);
         tick(Duration.ofMinutes(42 - 1));
         assertThat(field.get()).isEqualTo(42);
@@ -96,8 +97,8 @@ public void canAdjustInterval() {
     public void canAdjustIntervalBelowMinimumDelayIfRunning() {
         Duration newInterval = Duration.ofMillis(1);
         interval.update(newInterval);
-        shouldRun.update(true);
-        // will run the task once
+        shouldRun.set(true);
+        // initial run was scheduled at default interval
         tick(DEFAULT_INTERVAL);
         tick(Duration.ofMillis(10 - 1));
         assertThat(field.get()).isEqualTo(10);
@@ -108,20 +109,26 @@ public void runsSuppliersAtReducedIntervalIfNotRunning() {
         Duration newInterval = Duration.ofMillis(1);
         interval.update(newInterval);
         Duration elapsedDuration = Duration.ofSeconds(10);
-        // will invoke suppliers an additional time
+        // initial run was scheduled at default interval, this will run suppliers once
         tick(DEFAULT_INTERVAL);
         tick(elapsedDuration);
         assertThat(field.get()).isEqualTo(0);
         // suppliers are also called once when running the constructor
         assertThat(numCallsToShouldRunSupplier.get())
-                .isEqualTo(elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
+                .as("Ensure the number of times we checked if we should run is at most the number of times"
+                        + " MINIMUM_INTERVAL_IF_NOT_RUNNING has elapsed")
+                .isLessThanOrEqualTo(
+                        elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
         assertThat(numCallsToIntervalSupplier.get())
-                .isEqualTo(elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
+                .as("Ensure the number of times we checked at what interval we should run is at most the number of"
+                        + " times MINIMUM_INTERVAL_IF_NOT_RUNNING has elapsed")
+                .isLessThanOrEqualTo(
+                        elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
     }
 
     @Test
     public void suppliersAreCalledTogetherWithTask() {
-        shouldRun.update(true);
+        shouldRun.set(true);
         tick(Duration.ofSeconds(10 * DEFAULT_INTERVAL.toSeconds()));
         assertThat(field.get()).isEqualTo(10);
         // suppliers are also called once when running the constructorueu     (319538c088318a3ed50aa9d8d1e0b36a2aba0295}(sha(319538c088318a3ed50aa9d8d1e0b36a2aba0295node_idEC_kwDOAjP5fdoAKDMxOTUzOGMwODgzMThhM2VkNTBhYTlkOGQxZTBiMzZhMmFiYTAyOTUcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-23T14:48:47Zu	committer}(jl GitHubjn noreply@github.comjp 2023-05-23T14:48:47ZumessageN[CBT] Split up container 3 and add more max heap to timelock integTest (#6584)tree}(jd (da6143927d475cbe82bd012405d372d7f9c9081furl`https://api.github.com/repos/palantir/atlasdb/git/trees/da6143927d475cbe82bd012405d372d7f9c9081fuj| bhttps://api.github.com/repos/palantir/atlasdb/git/commits/319538c088318a3ed50aa9d8d1e0b36a2aba0295
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkbNJPCRBK7hj4Ov3rIwAAdXAIAHykU8fAoOm/SG7v5tg/h/Gr
g7dOyZNgzJSOOS2nu/s0FBsO2SdrS15bCwacB5DSHzCSeMYbFNH13P4E3M8mA31S
qOacNpPKgQMGy4ar9U5rwGVa/mn6487qY82K4HeFYdCznU7ZXabtjaT+kB3Lk4h4
04hfEzKZIyR7U3EpyAg6nFaiYv18V/mdTMKBMVN4kX3QQZqZWOstBVD4yVuUBVgr
h1hICSSQOq12hiepvIV+PS/SWOKQKGle8s+jAhpW98VFS6J50NONmFXHPL+otScB
MSPuEK4gKkpMjDZwT4MNuzPuqHpFlgisSsHbmkjNL8UsyNxPuVzH/ENQErxFOOY=
=9Kn5
-----END PGP SIGNATURE-----
payloadX3  tree da6143927d475cbe82bd012405d372d7f9c9081f
parent 95319b3810b65eb1de3bfc0aceea137ab1bab294
author aalouane <30903736+ergo14@users.noreply.github.com> 1684853327 +0100
committer GitHub <noreply@github.com> 1684853327 +0000

[CBT] Split up container 3 and add more max heap to timelock integTest (#6584)

 uuj| ^https://api.github.com/repos/palantir/atlasdb/commits/319538c088318a3ed50aa9d8d1e0b36a2aba0295html_urlShttps://github.com/palantir/atlasdb/commit/319538c088318a3ed50aa9d8d1e0b36a2aba0295comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/319538c088318a3ed50aa9d8d1e0b36a2aba0295/commentsjj }(loginergo14idJjf MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j| #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujr }(j web-flowj J/jf MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j| %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(jd (95319b3810b65eb1de3bfc0aceea137ab1bab294j| ^https://api.github.com/repos/palantir/atlasdb/commits/95319b3810b65eb1de3bfc0aceea137ab1bab294j Shttps://github.com/palantir/atlasdb/commit/95319b3810b65eb1de3bfc0aceea137ab1bab294uastats}(totalK	additionsK	deletionsK	ufiles](}(jd (a31b7819db3f6f91597edd144957cf18b2f7a613filename.circleci/config.ymlstatusmodifiedj Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/319538c088318a3ed50aa9d8d1e0b36a2aba0295/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/319538c088318a3ed50aa9d8d1e0b36a2aba0295/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=319538c088318a3ed50aa9d8d1e0b36a2aba0295patchX  @@ -154,8 +154,8 @@ workflows:
           matrix:
             alias: test-no-tl
             parameters:
-              # intentionally excluding 12 (TimeLock migration ETE test) from this collection
-              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13]
+              # intentionally excluding 13 (TimeLock migration ETE test) from this collection
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14]
           filters:
             tags:
               only: /.*/
@@ -164,7 +164,7 @@ workflows:
           matrix:
             alias: test-tl
             parameters:
-              suite: [12]
+              suite: [13]
           filters:
             branches:
               only: /(tlmete.*|develop)/u}(jd (be28e0890da21d6d8b36c3d7f6d13422933da314j $changelog/@unreleased/pr-6584.v2.ymlj addedj Kj K j Kj |https://github.com/palantir/atlasdb/blob/319538c088318a3ed50aa9d8d1e0b36a2aba0295/changelog%2F%40unreleased%2Fpr-6584.v2.ymlj {https://github.com/palantir/atlasdb/raw/319538c088318a3ed50aa9d8d1e0b36a2aba0295/changelog%2F%40unreleased%2Fpr-6584.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6584.v2.yml?ref=319538c088318a3ed50aa9d8d1e0b36a2aba0295j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[CBT] Split up container 3 and add more max heap to timelock integTest'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6584u}(jd (c26bf39fcadc8784eabff6fd1e20a4ad15b5d344j %scripts/circle-ci/run-circle-tests.shj modifiedj Kj Kj Kj {https://github.com/palantir/atlasdb/blob/319538c088318a3ed50aa9d8d1e0b36a2aba0295/scripts%2Fcircle-ci%2Frun-circle-tests.shj zhttps://github.com/palantir/atlasdb/raw/319538c088318a3ed50aa9d8d1e0b36a2aba0295/scripts%2Fcircle-ci%2Frun-circle-tests.shj https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=319538c088318a3ed50aa9d8d1e0b36a2aba0295j X  @@ -17,7 +17,7 @@ CONTAINER_1=(':atlasdb-cassandra-integration-tests:testSubset1')
 
 CONTAINER_2=(':atlasdb-ete-tests:check')
 
-CONTAINER_3=(':atlasdb-dbkvs:check' ':atlasdb-cassandra:check' ':timelock-server:integTest')
+CONTAINER_3=(':timelock-server:integTest')
 
 CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:dbkvsTest')
 
@@ -35,15 +35,17 @@ CONTAINER_10=('atlasdb-dbkvs-tests:oracleTest')
 
 CONTAINER_11=(':atlasdb-impl-shared:check' )
 
-CONTAINER_12=(':atlasdb-ete-tests:timeLockMigrationTest')
+CONTAINER_12=(':atlasdb-dbkvs:check' ':atlasdb-cassandra:check' )
 
-CONTAINER_13=('compileJava' 'compileTestJava')
+CONTAINER_13=(':atlasdb-ete-tests:timeLockMigrationTest')
+
+CONTAINER_14=('compileJava' 'compileTestJava')
 
 # Excluded as it is split into two subsets
 EXCLUDED=(':atlasdb-cassandra-integration-tests:check')
 
 # Container 0 - runs tasks not found in the below containers
-CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}" "${CONTAINER_11[@]}" "${CONTAINER_12[@]}" "${EXCLUDED[@]}")
+CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}" "${CONTAINER_11[@]}" "${CONTAINER_12[@]}" "${CONTAINER_13[@]}" "${EXCLUDED[@]}")
 
 for task in "${CONTAINER_0_EXCLUDE[@]}"
 do
@@ -73,8 +75,11 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
 # External builds have a 16gb limit.
-if [ "$test_suite_index" -eq "13" ]; then
+if [ "$test_suite_index" -eq "14" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
+elif [ "$test_suite_index" -eq "3" ]; then
+    export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
+    BASE_GRADLE_ARGS+=" --scan --parallel"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
     BASE_GRADLE_ARGS+=" --scan --parallel"
@@ -96,5 +101,6 @@ case "$test_suite_index" in
     10) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_10[@]} ;;
     11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} ;;
     12) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_12[@]} ;;
-    13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_13[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
+    13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_13[@]} ;;
+    14) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_14[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
 esacueu(a62e431546105aae4f7e55ae277bbb77ef4aec30}(sha(a62e431546105aae4f7e55ae277bbb77ef4aec30node_idEC_kwDOAjP5fdoAKGE2MmU0MzE1NDYxMDVhYWU0ZjdlNTVhZTI3N2JiYjc3ZWY0YWVjMzAcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-15T12:52:07Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-06-15T12:52:07Zumessage%use hashset to track unverified readstree}(j (2c8ff936095d35fcc745eab46b3f672a89d2e93aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/2c8ff936095d35fcc745eab46b3f672a89d2e93auj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a62e431546105aae4f7e55ae277bbb77ef4aec30
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSLCXcACgkQJd22kJ7J
GizZswf+KNaKt9gcm33UQODhNsj0gWCNrEP5W4cmv6SHAir3cUTQHf+kr37XfXYd
9BWEPYn029T3VQbahpKtiQ9gsgQYJjL/4V1Jf5joxIjoQLIZlCgO+t5Cor1qB0S0
/u+FA2TdvSdrKDgeYpYUgIg9XZBgeppE5itsn04AUmKZG0ngGZQd6MhPMJzqyBKB
znBDX02Kj8vfU6YADgab8MRrj/mKXar8j2dOt0hEzcq9uzfzRkiQBSCITsgMjo9i
1D2PiyFguecRyJ3SWthGaB4dNjCPg3xMftgMR1OAtMU5Y3YhJLgM5291PVvhqWta
M08w+HmV8JAOkEY3qbsMNOlcMsQFnw==
=7vI/
-----END PGP SIGNATURE-----payloadX   tree 2c8ff936095d35fcc745eab46b3f672a89d2e93a
parent 968a1a240fee9a4dcae0fa862fe385c78eaa410a
author Lucas Meireles <meireles31@msn.com> 1686833527 +0100
committer Lucas Meireles <meireles31@msn.com> 1686833527 +0100

use hashset to track unverified reads
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/a62e431546105aae4f7e55ae277bbb77ef4aec30html_urlShttps://github.com/palantir/atlasdb/commit/a62e431546105aae4f7e55ae277bbb77ef4aec30comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a62e431546105aae4f7e55ae277bbb77ef4aec30/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j LucasIMEj Jg j MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj! <https://api.github.com/users/LucasIME/following{/other_user}j# 5https://api.github.com/users/LucasIME/gists{/gist_id}j% <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j' 3https://api.github.com/users/LucasIME/subscriptionsj) *https://api.github.com/users/LucasIME/orgsj+ +https://api.github.com/users/LucasIME/reposj- 6https://api.github.com/users/LucasIME/events{/privacy}j/ 5https://api.github.com/users/LucasIME/received_eventsj1 Userj3 uparents]}(j (968a1a240fee9a4dcae0fa862fe385c78eaa410aj ^https://api.github.com/repos/palantir/atlasdb/commits/968a1a240fee9a4dcae0fa862fe385c78eaa410aj Shttps://github.com/palantir/atlasdb/commit/968a1a240fee9a4dcae0fa862fe385c78eaa410auastats}(totalKX	additionsK.	deletionsK*ufiles]}(j (3cad7ee778eb731d00a138b001dfdafc29ad44b3filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedjM K.jN K*changesKXblob_urlhttps://github.com/palantir/atlasdb/blob/a62e431546105aae4f7e55ae277bbb77ef4aec30/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a62e431546105aae4f7e55ae277bbb77ef4aec30/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=a62e431546105aae4f7e55ae277bbb77ef4aec30patchX-  @@ -163,6 +163,7 @@
 import java.util.SortedMap;
 import java.util.SortedSet;
 import java.util.TreeMap;
+import java.util.UUID;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ConcurrentMap;
 import java.util.concurrent.ConcurrentNavigableMap;
@@ -269,7 +270,7 @@ private enum State {
     private final ExpectationsMetrics expectationsDataCollectionMetrics;
 
     protected volatile boolean hasReads;
-    protected volatile boolean hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound;
+    protected Set<UUID> readsRequiringImmutableTimestampValidationAtCommitRound;
 
     protected final TimestampCache timestampCache;
 
@@ -334,7 +335,7 @@ private enum State {
         this.sweepQueue = sweepQueue;
         this.deleteExecutor = deleteExecutor;
         this.hasReads = false;
-        this.hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = false;
+        this.readsRequiringImmutableTimestampValidationAtCommitRound = ConcurrentHashMap.newKeySet();
         this.transactionOutcomeMetrics = TransactionOutcomeMetrics.create(metricsManager);
         this.validateLocksOnReads = validateLocksOnReads;
         this.transactionConfig = transactionConfig;
@@ -441,10 +442,8 @@ private NavigableMap<byte[], RowResult<byte[]>> getRowsInternal(
                     SafeArg.of("timeTakenMillis", getRowsMillis));
         }
 
-        validatePreCommitRequirementsOnReadIfNecessary(
-                tableRef,
-                getStartTimestamp(),
-                false /* can't skip lock check as we don't know how many cells to expect for the column selection */);
+        /* can't skip lock check as we don't know how many cells to expect for the column selection */
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return results;
     }
 
@@ -468,10 +467,10 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
         hasReads = true;
         RowColumnRangeIterator rawResults = keyValueService.getRowsColumnRange(
                 tableRef, stableRows, columnRangeSelection, batchHint, getStartTimestamp());
+
         if (!rawResults.hasNext()) {
-            hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
-            validatePreCommitRequirementsOnReadIfNecessary(
-                    tableRef, getStartTimestamp(), false /* we can't skip checks for range scans*/);
+            // we can't skip checks for range scans
+            validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         } // else the postFiltered iterator will check for each batch.
 
         BatchColumnRangeSelection batchColumnRangeSelection =
@@ -508,10 +507,9 @@ public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator
                     return scopeToTransaction(entryIterator);
                 }));
 
-        hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
         // validate requirements here as the first batch for each of the above iterators will not check
-        validatePreCommitRequirementsOnReadIfNecessary(
-                tableRef, getStartTimestamp(), false /* we can't skip checks on range scans */);
+        // we can't skip checks on range scans
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return postFilteredResults;
     }
 
@@ -707,9 +705,8 @@ private ClosableIterator<Map.Entry<Cell, byte[]>> getRowColumnRangePostFiltered(
                 rawIterator,
                 columnRangeSelection,
                 () -> {
-                    hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
-                    validatePreCommitRequirementsOnReadIfNecessary(
-                            tableRef, getStartTimestamp(), false /* we can't skip lock checks on range scans */);
+                    // we can't skip lock checks on range scans
+                    validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
                 },
                 raw -> getWithPostFilteringSync(tableRef, raw, Value.GET_VALUE));
     }
@@ -843,11 +840,8 @@ public SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(
         Map<Cell, Value> rawResults =
                 new HashMap<>(keyValueService.getRows(tableRef, rows, ColumnSelection.all(), getStartTimestamp()));
 
-        hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
-        validatePreCommitRequirementsOnReadIfNecessary(
-                tableRef,
-                getStartTimestamp(),
-                false /* can't skip lock check as we don't know how many cells to expect for the column selection */);
+        // can't skip lock check as we don't know how many cells to expect for the column selection
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return filterRowResults(tableRef, rawResults, ImmutableMap.builderWithExpectedSize(rawResults.size()));
     }
 
@@ -957,11 +951,11 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
                                 SafeArg.of("getOperation", operationName),
                                 SafeArg.of("durationMillis", getMillis));
                     }
-                    boolean hasReadEmptyCells = fromKeyValueService.size() < cellsWithNoLocalWrites.size();
-                    if (hasReadEmptyCells) {
-                        hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
-                    }
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), !hasReadEmptyCells);
+
+                    boolean allPossibleCellsReadAndNonEmpty =
+                            fromKeyValueService.size() == cellsWithNoLocalWrites.size();
+                    validatePreCommitRequirementsOnReadIfNecessary(
+                            tableRef, getStartTimestamp(), allPossibleCellsReadAndNonEmpty);
                     return removeEmptyColumns(result, tableRef);
                 },
                 MoreExecutors.directExecutor());
@@ -982,11 +976,9 @@ public Map<Cell, byte[]> getIgnoringLocalWrites(TableReference tableRef, Set<Cel
         Map<Cell, byte[]> filtered = Maps.filterValues(unfiltered, Predicates.not(Value::isTombstone));
 
         TraceStatistics.incEmptyValues(unfiltered.size() - filtered.size());
-        boolean hasReadEmptyCells = unfiltered.size() < cells.size();
-        if (hasReadEmptyCells) {
-            hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
-        }
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), !hasReadEmptyCells);
+
+        boolean allPossibleCellsReadAndNonEmpty = unfiltered.size() == cells.size();
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndNonEmpty);
 
         return filtered;
     }
@@ -1040,9 +1032,8 @@ public Iterable<BatchingVisitable<RowResult<byte[]>>> getRanges(
                     Timer.Context timer = getTimer("processedRangeMillis").time();
                     Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> firstPages =
                             keyValueService.getFirstBatchForRanges(tableRef, input, getStartTimestamp());
-                    hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
-                    validatePreCommitRequirementsOnReadIfNecessary(
-                            tableRef, getStartTimestamp(), false /* can't skip lock check for range scans */);
+                    // can't skip lock check for range scans
+                    validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
 
                     SortedMap<Cell, byte[]> postFiltered = postFilterPages(tableRef, firstPages.values());
 
@@ -1170,8 +1161,25 @@ protected <K extends Exception> void batchAcceptSizeHint(
 
     private void validatePreCommitRequirementsOnReadIfNecessary(
             TableReference tableRef, long timestamp, boolean allPossibleCellsReadAndNonEmpty) {
+        UUID readId = UUID.randomUUID();
+        if (!allPossibleCellsReadAndNonEmpty) {
+            readsRequiringImmutableTimestampValidationAtCommitRound.add(readId);
+        }
+
         if (isValidationNecessaryOnReads(tableRef, allPossibleCellsReadAndNonEmpty)) {
             throwIfPreCommitRequirementsNotMet(null, timestamp);
+
+            // It may not be present, but that's OK.
+            readsRequiringImmutableTimestampValidationAtCommitRound.remove(readId);
+        }
+    }
+
+    private void validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(TableReference tableRef, long timestamp) {
+        UUID readId = UUID.randomUUID();
+        readsRequiringImmutableTimestampValidationAtCommitRound.add(readId);
+        if (isValidationNecessaryOnReads(tableRef, false)) {
+            throwIfPreCommitRequirementsNotMet(null, timestamp);
+            readsRequiringImmutableTimestampValidationAtCommitRound.remove(readId);
         }
     }
 
@@ -1335,9 +1343,8 @@ protected Iterator<RowResult<T>> computeNext() {
                 }
                 SortedMap<Cell, T> postFilter = postFilterRows(tableRef, batch, transformer);
 
-                hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
-                validatePreCommitRequirementsOnReadIfNecessary(
-                        tableRef, getStartTimestamp(), false /* can't skip lock checks for range scans */);
+                // can't skip lock checks for range scans
+                validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
                 results.markNumResultsNotDeleted(
                         Cells.getRows(postFilter.keySet()).size());
                 return Cells.createRowView(postFilter.entrySet());
@@ -1708,12 +1715,9 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
             return Futures.transform(
                     asyncKeyValueService.getAsync(tableRef, keysToReload),
                     nextRawResults -> {
-                        boolean hasReadEmptyCells = nextRawResults.size() < keysToReload.size();
-                        if (hasReadEmptyCells) {
-                            hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
-                        }
+                        boolean allPossibleCellsReadAndNonEmpty = nextRawResults.size() == keysToReload.size();
                         validatePreCommitRequirementsOnReadIfNecessary(
-                                tableRef, getStartTimestamp(), !hasReadEmptyCells);
+                                tableRef, getStartTimestamp(), allPossibleCellsReadAndNonEmpty);
                         return getRemainingResults(nextRawResults, keysAddedToResults);
                     },
                     MoreExecutors.directExecutor());
@@ -2629,7 +2633,7 @@ private boolean hasAnyInvolvedTables() {
     private boolean validationNecessaryForInvolvedTablesOnCommit() {
         boolean anyTableRequiresImmutableTimestampLocking = involvedTables.stream()
                 .anyMatch(tableRef -> requiresImmutableTimestampLocking(
-                        tableRef, !hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound));
+                        tableRef, readsRequiringImmutableTimestampValidationAtCommitRound.isEmpty()));
         boolean needsToValidate = !validateLocksOnReads || !hasReads();
         return anyTableRequiresImmutableTimestampLocking && needsToValidate;
     }uau(4b222fd3be046f7a172edcb6d59b6f9f6dff6806}(sha(4b222fd3be046f7a172edcb6d59b6f9f6dff6806node_idEC_kwDOAjP5fdoAKDRiMjIyZmQzYmUwNDZmN2ExNzJlZGNiNmQ1OWI2ZjlmNmRmZjY4MDYcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-13T16:01:06Zu	committer}(jj 	Tom Papkejl tpapke@palantir.comjn 2023-06-13T22:47:01ZumessageAdjust benchmarktree}(jb (2994a2b0e71a3a40997b6218f253009b7304d8fburl`https://api.github.com/repos/palantir/atlasdb/git/trees/2994a2b0e71a3a40997b6218f253009b7304d8fbujz bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4b222fd3be046f7a172edcb6d59b6f9f6dff6806
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSI8eUACgkQmF9s0kaF
Iw3srggArr5T4tppTR+/y0LESebsIDoOzi4JSU2ub9V7Wm6G1FThhbAiSkJfDfw9
0p/aMLmL3MaQiGKixnyqb3gPwQ4bAfwNBvrbrS9JeBOWBCPh/xXYSOXA1ivoAfUE
1oS3h9Z+Y1RWWmeLkQFK/OgMAXXxWyKs0nycoQAWx08Y0Jj92AImPwCllWlwz9Ig
+2Z+n/P6VLfIa6ejVJFReNyA31Tvr6ZGWgowxnOGSgGF9hFoEH0N43mYL0uuSwGN
3agkRJz2vOhwon2Pdszuem9akv3pMVFpDM2MdpumU4sQxvXY96QQ3hUCQEQRV/ff
sIPpo3JW46VC9LgM9wPcMAXtUABzFw==
=Mq7W
-----END PGP SIGNATURE-----payloadtree 2994a2b0e71a3a40997b6218f253009b7304d8fb
parent 5c2e89ee6f8d8b6daa95a4332001f219679e34a8
author Tom Papke <tpapke@palantir.com> 1686672066 +0100
committer Tom Papke <tpapke@palantir.com> 1686696421 +0100

Adjust benchmark
uujz ^https://api.github.com/repos/palantir/atlasdb/commits/4b222fd3be046f7a172edcb6d59b6f9f6dff6806html_urlShttps://github.com/palantir/atlasdb/commit/4b222fd3be046f7a172edcb6d59b6f9f6dff6806comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4b222fd3be046f7a172edcb6d59b6f9f6dff6806/commentsjh }(login	ToemmscheidJbojd MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jz &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujp }(j 	Toemmschej Jbojd MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5jz &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(jb (5c2e89ee6f8d8b6daa95a4332001f219679e34a8jz ^https://api.github.com/repos/palantir/atlasdb/commits/5c2e89ee6f8d8b6daa95a4332001f219679e34a8j Shttps://github.com/palantir/atlasdb/commit/5c2e89ee6f8d8b6daa95a4332001f219679e34a8uastats}(totalK	additionsK	deletionsK
ufiles](}(jb (88a945f63bfbdbc04d5653ade38a61877510087afilenameJlock-benchmark/src/jmh/java/com/palantir/atlasdb/LockServiceBenchmark.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/4b222fd3be046f7a172edcb6d59b6f9f6dff6806/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FLockServiceBenchmark.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4b222fd3be046f7a172edcb6d59b6f9f6dff6806/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FLockServiceBenchmark.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FLockServiceBenchmark.java?ref=4b222fd3be046f7a172edcb6d59b6f9f6dff6806patchX  @@ -43,7 +43,7 @@ public class LockServiceBenchmark {
      */
     @BenchmarkMode(Mode.Throughput)
     @Benchmark
-    @Threads(20)
+    @Threads(4)
     public int lockSleepRefreshUnlockMultiThreaded(LockServiceBenchmarkState state, ThreadIndex threadIndex) {
         final LockClient client = LockClient.of("Benchmark Client " + threadIndex.getThreadId());
         final LockService lockService = state.getLockService();u}(jb (fb880f747ff211d06cb4d24448a78de39bad0897j Ulock-benchmark/src/jmh/java/com/palantir/atlasdb/state/LockServiceBenchmarkState.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/4b222fd3be046f7a172edcb6d59b6f9f6dff6806/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.javaj https://github.com/palantir/atlasdb/raw/4b222fd3be046f7a172edcb6d59b6f9f6dff6806/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.java?ref=4b222fd3be046f7a172edcb6d59b6f9f6dff6806j X
  @@ -24,7 +24,6 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.StringLockDescriptor;
-import com.palantir.lock.ThreadAwareCloseableLockService;
 import com.palantir.lock.impl.LockServiceImpl;
 import java.util.List;
 import java.util.Random;
@@ -41,10 +40,11 @@
 
 @State(Scope.Benchmark)
 public class LockServiceBenchmarkState {
+
     @Param({"true", "false"})
     public boolean recordThreadInfo;
 
-    @Param({"20", "10000"})
+    @Param({"20"})
     public int locksPerRequest;
 
     @Param({"5", "0"})
@@ -53,23 +53,26 @@ public class LockServiceBenchmarkState {
     @Param({"0"})
     public int refreshCount;
 
-    @Param({"10000"})
+    @Param({"1000000"})
     public int numHeldLocksAtBeginning;
 
-    @Param("1000000")
+    @Param({"1000000"})
     public int numAvailableLocks;
 
-    @Param({"nonBlocking_asManyAsPossible"})
+    @Param({"100"})
+    public long threadInfoSnapshotIntervalMillis;
+
+    @Param({"nonBlockingAsManyAsPossibleRandomMode"})
     public String requestSupplierMethodName;
 
-    private ThreadAwareCloseableLockService lockService;
-    private Supplier<LockRequest> lockRequestSupplier;
     private final int maxBlockingDurationMillis = 100;
     private final Random rand = new Random();
+    private LockServiceImpl lockService;
+    private Supplier<LockRequest> lockRequestSupplier;
     private List<LockDescriptor> heldLocksAtBeginning;
     private List<LockDescriptor> availableLocks;
 
-    private LockRequest nonBlocking_asManyAsPossible_randomMode() {
+    private LockRequest nonBlockingAsManyAsPossibleRandomMode() {
         SortedMap<LockDescriptor, LockMode> locks = new TreeMap<>();
         for (int i = 0; i < locksPerRequest; i++) {
             locks.put(
@@ -81,7 +84,7 @@ private LockRequest nonBlocking_asManyAsPossible_randomMode() {
 
     private LockRequest allRandom() {
         SortedMap<LockDescriptor, LockMode> locks = new TreeMap<>();
-        final int numLocks = Math.max(1, rand.nextInt(locksPerRequest));
+        int numLocks = Math.max(1, rand.nextInt(locksPerRequest));
         for (int i = 0; i < numLocks; i++) {
             locks.put(
                     availableLocks.get(rand.nextInt(getAvailableLocks().size())),
@@ -114,6 +117,7 @@ public void setup() {
         this.lockService = LockServiceImpl.create(LockServerOptions.builder()
                 .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
                         .recordThreadInfo(recordThreadInfo)
+                        .threadInfoSnapshotIntervalMillis(threadInfoSnapshotIntervalMillis)
                         .build())
                 .isStandaloneServer(false)
                 .build());
@@ -131,7 +135,7 @@ public void setup() {
         }
     }
 
-    public ThreadAwareCloseableLockService getLockService() {
+    public LockServiceImpl getLockService() {
         return this.lockService;
     }
 
@@ -145,8 +149,8 @@ public LockRequest generateLockRequest() {
 
     private Supplier<LockRequest> getRequestSupplierFromName(String name) {
         switch (this.requestSupplierMethodName) {
-            case "nonBlocking_asManyAsPossible":
-                return this::nonBlocking_asManyAsPossible_randomMode;
+            case "nonBlockingAsManyAsPossibleRandomMode":
+                return this::nonBlockingAsManyAsPossibleRandomMode;
             case "allRandom":
                 return this::allRandom;
             default:ueu(8ef03761d69f2328f109b3641d1c9e1a502ef6dd}(sha(8ef03761d69f2328f109b3641d1c9e1a502ef6ddnode_idEC_kwDOAjP5fdoAKDhlZjAzNzYxZDY5ZjIzMjhmMTA5YjM2NDFkMWM5ZTFhNTAyZWY2ZGQcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-05-31T12:52:29Zu	committer}(j 
svc-changelogj svc-changelog@palantir.comj 2023-05-31T12:52:29ZumessageAdd generated changelog entriestree}(j (95ebd10220a7a6922e6fc68694db565ed3d60ddaurl`https://api.github.com/repos/palantir/atlasdb/git/trees/95ebd10220a7a6922e6fc68694db565ed3d60ddauj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8ef03761d69f2328f109b3641d1c9e1a502ef6dd
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmR3Qw0JEHYaJX37fAFQAADgOgEAukULAxBTpFKgpljUY6n7FN3T
pGHsYkkXDJlvAjBt/mkA/3AjLPXHuvgfZ7kiIxgYCu4mYkQQx2826baZYvJ0JLkw
=sz9m
-----END PGP SIGNATURE-----payloadX  tree 95ebd10220a7a6922e6fc68694db565ed3d60dda
parent ff89a0eee3af2f90b027f87290863c5cdc8a044f
author svc-changelog <svc-changelog@palantir.com> 1685537549 +0000
committer svc-changelog <svc-changelog@palantir.com> 1685537549 +0000

Add generated changelog entriesuuj ^https://api.github.com/repos/palantir/atlasdb/commits/8ef03761d69f2328f109b3641d1c9e1a502ef6ddhtml_urlShttps://github.com/palantir/atlasdb/commit/8ef03761d69f2328f109b3641d1c9e1a502ef6ddcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8ef03761d69f2328f109b3641d1c9e1a502ef6dd/commentsj }(login
svc-changelogidJ#j MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj }(j 
svc-changelogj J#j MDQ6VXNlcjg0MDc3NjAzj 4https://avatars.githubusercontent.com/u/84077603?v=4j h5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelogj 4https://api.github.com/users/svc-changelog/followersj Ahttps://api.github.com/users/svc-changelog/following{/other_user}j :https://api.github.com/users/svc-changelog/gists{/gist_id}j Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j 8https://api.github.com/users/svc-changelog/subscriptionsj /https://api.github.com/users/svc-changelog/orgsj! 0https://api.github.com/users/svc-changelog/reposj# ;https://api.github.com/users/svc-changelog/events{/privacy}j% :https://api.github.com/users/svc-changelog/received_eventsj' Userj) uparents]}(j (ff89a0eee3af2f90b027f87290863c5cdc8a044fj ^https://api.github.com/repos/palantir/atlasdb/commits/ff89a0eee3af2f90b027f87290863c5cdc8a044fj Shttps://github.com/palantir/atlasdb/commit/ff89a0eee3af2f90b027f87290863c5cdc8a044fuastats}(totalK	additionsK	deletionsK ufiles]}(j (e6593760ef7a279d90af5e250adb83285a485593filename$changelog/@unreleased/pr-6597.v2.ymlstatusaddedjC KjD K changesKblob_url|https://github.com/palantir/atlasdb/blob/8ef03761d69f2328f109b3641d1c9e1a502ef6dd/changelog%2F%40unreleased%2Fpr-6597.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/8ef03761d69f2328f109b3641d1c9e1a502ef6dd/changelog%2F%40unreleased%2Fpr-6597.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6597.v2.yml?ref=8ef03761d69f2328f109b3641d1c9e1a502ef6ddpatchX%  @@ -0,0 +1,7 @@
+type: improvement
+improvement:
+  description: Transaction and KeyValueServices methods changed to received rows as
+    Collections instead of Iterables, except when originally returning iterators or
+    streams.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6597uau(edbd233345a6aac470769bc6617abf59235ce132}(sha(edbd233345a6aac470769bc6617abf59235ce132node_idEC_kwDOAjP5fdoAKGVkYmQyMzMzNDVhNmFhYzQ3MDc2OWJjNjYxN2FiZjU5MjM1Y2UxMzIcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-24T13:13:58Zu	committer}(j` 
Ahmed Alouanejb aalouane@palantir.comjd 2023-04-24T13:13:58Zumessagestgtree}(jX (efbeee65a495751d0cdda28c7034ba749ef0837eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/efbeee65a495751d0cdda28c7034ba749ef0837eujp bhttps://api.github.com/repos/palantir/atlasdb/git/commits/edbd233345a6aac470769bc6617abf59235ce132
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEyBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRGgJYACgkQPlMHVIT1
yhqrhQf2JF8rdGR5RKEnC7Gzfu9LF5glmSagSc31SwoY1Yxn627PXlprs9MnF+/c
ibX8vXT95SPvVtZt9rludoO1obRS9gsog0Yr+XatC3oePxkflplnIx+U16hb295k
NZdTzy0PDZON3JWEb2W8fLCf5R/XJHHrdMx8CILMmbTWWBXMlzZIB0eSmAE4p7Gu
Xy88Vak6/BRsfVs5mGN9cIrrnq3IfcCYj879OUysVTkrAbSgeK7ibEFi5D1M0aqd
DL4XqXLCf9e1fvEVHLus+c3JwbWBYbwWHP0zad2CONb5UrmiiR0SnKFl2+G8gKdP
Lkuy7f+7baKCuVSS+z99ycqaMZIX
=jQLl
-----END PGP SIGNATURE-----payloadtree efbeee65a495751d0cdda28c7034ba749ef0837e
parent 090387011fca0ffca30ed85428caff1b2dba0a43
author Ahmed Alouane <aalouane@palantir.com> 1682342038 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682342038 +0100

stg
uujp ^https://api.github.com/repos/palantir/atlasdb/commits/edbd233345a6aac470769bc6617abf59235ce132html_urlShttps://github.com/palantir/atlasdb/commit/edbd233345a6aac470769bc6617abf59235ce132comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/edbd233345a6aac470769bc6617abf59235ce132/commentsj^ }(loginergo14idJjZ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jp #https://api.github.com/users/ergo14j~ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujf }(j ergo14j JjZ MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5jp #https://api.github.com/users/ergo14j~ https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jX (090387011fca0ffca30ed85428caff1b2dba0a43jp ^https://api.github.com/repos/palantir/atlasdb/commits/090387011fca0ffca30ed85428caff1b2dba0a43j~ Shttps://github.com/palantir/atlasdb/commit/090387011fca0ffca30ed85428caff1b2dba0a43uastats}(totalK	additionsK	deletionsK ufiles]}(jX (47efcaa694a5f2bb2f99d1c05b0919cef172f478filename.circleci/config.ymlstatusmodifiedj Kj K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/edbd233345a6aac470769bc6617abf59235ce132/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/edbd233345a6aac470769bc6617abf59235ce132/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=edbd233345a6aac470769bc6617abf59235ce132patch@@ -83,6 +83,7 @@ jobs:
       - persist_to_workspace:
           root: .
           paths: [ . ]
+      - run: circleci tests glob "**/**Test.java"
 
   trial-publish:
     docker:uau(e856c6795f27c92a4f037fcfc7bed83c0283d0a2}(sha(e856c6795f27c92a4f037fcfc7bed83c0283d0a2node_idEC_kwDOAjP5fdoAKGU4NTZjNjc5NWYyN2M5MmE0ZjAzN2ZjZmM3YmVkODNjMDI4M2QwYTIcommit}(author}(nameTom Petraccaemail"tpetracca@users.noreply.github.comdate2023-08-08T14:20:58Zu	committer}(j GitHubj noreply@github.comj 2023-08-08T14:20:58Zumessage8ETE test suite overhaul (#6684)

re-vamp ete test suitestree}(j (b5f63b366a5c6ce99abd8e21c74414290a33baedurl`https://api.github.com/repos/palantir/atlasdb/git/trees/b5f63b366a5c6ce99abd8e21c74414290a33baeduj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e856c6795f27c92a4f037fcfc7bed83c0283d0a2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk0k9KCRBK7hj4Ov3rIwAA/vAIACn47B3Dbmc9GpCNYPpM51yF
fPro50ZrNAj2DWJY1q9v9DI6T7GcBShx2o650gVZbk9A/dMxLvDj3qbiVBQHvVVK
uryxbKPhli+G3voEYRvf7+4Zdr6skdOTfTckkOt0nLH27cV/PJHQfK4pVPuNXhuq
wC/KniMAZdquPCrdvJavbqx/3jZZ48fyE5p9gtkzE/gXjJh7YHpHCs967y5SRVXS
rf3utq7dLDnqQcqnEKnLUVNvAlEqT7JRsw7kO751iS9F35heZedPcHicOt6xKYWQ
zXXZ6w4ghZkbFKrfbeeEVJ34jO49d/NYAHI0HIecvbw+euakd4hZRRUZdSX+mwo=
=xzHV
-----END PGP SIGNATURE-----
payloadX  tree b5f63b366a5c6ce99abd8e21c74414290a33baed
parent 4ea884d0f3096946d12f3ecdce4edd87b6c854a7
author Tom Petracca <tpetracca@users.noreply.github.com> 1691504458 -0400
committer GitHub <noreply@github.com> 1691504458 +0000

ETE test suite overhaul (#6684)

re-vamp ete test suites
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/e856c6795f27c92a4f037fcfc7bed83c0283d0a2html_urlShttps://github.com/palantir/atlasdb/commit/e856c6795f27c92a4f037fcfc7bed83c0283d0a2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/commentsj }(login	tpetraccaidJ& j MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5j &https://api.github.com/users/tpetraccaj https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j  h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j	 <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj
 *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j (4ea884d0f3096946d12f3ecdce4edd87b6c854a7j ^https://api.github.com/repos/palantir/atlasdb/commits/4ea884d0f3096946d12f3ecdce4edd87b6c854a7j Shttps://github.com/palantir/atlasdb/commit/4ea884d0f3096946d12f3ecdce4edd87b6c854a7uastats}(totalM	additionsMc	deletionsMufiles](}(j (ea4b71016e096289330369e362cf9264b81ec3dcfilenameatlasdb-ete-tests/build.gradlestatusmodifiedj1 KVj2 KchangesKoblob_urlrhttps://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fbuild.gradleraw_urlqhttps://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fbuild.gradle?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2patchX  @@ -94,50 +94,111 @@ dependencies {
     testCompileOnly 'org.immutables:value::annotations'
 }
 
+// ETE Test Wiring
+//
+// For each non-trivially sized ETE test and all ETE test suites:
+// - define a custom gradle task for just that test [suite]
+// - remove that test [suite] from :atlasdb-ete-tests:test
+// - add that custom task as a dependency of :customEteTasks, which :atlasdb-ete-tests:test then depends on
+// - use task exclusion in our circleci commands to ensure only specific things get run in certain containers at CI time
+//
+// This does a few things:
+// - for test suites, makes it easier to reason about which suite class executions belong to what test suites in the
+//   generated junit reports and test suite cost in gradle build scans
+// - allows us to run certain tests in their own containers for CI speed reasons
+// - on the off chance someone adds or re-names a test in the future, but forgets to give it its own task and wiring
+//   described above, that test will still get run via :atlasdb-ete-tests:test to avoid a situation where the new test
+//   isn't run in CI without us realizing
+
+// Tasks required before ETE tests can be run
+
 task prepareForEteTests(type: Copy, dependsOn: 'distTar') {
     from distTar.outputs
     into 'build/docker/'
 
     rename { filename -> 'atlasdb-ete-snapshot.tgz' }
 }
 
-task longTest(type: Test) {
-    dependsOn prepareForEteTests
-    include '**/MultiCassandraTestSuite.class'
+task prepareForTimelockEteTests() {
+    dependsOn 'prepareForEteTests', ':timelock-server-distribution:dockerTag'
 }
 
-task timeLockTest(type: Test) {
-    dependsOn prepareForEteTests, ':timelock-server-distribution:dockerTag'
-    include '**/*TimeLock*.class'
-    exclude '**/*TimeLockMigration*.class'
+// Individual ETE Test Tasks
+
+task timeLockMigrationTest(type: Test, dependsOn: 'prepareForTimelockEteTests') {
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.standalone.TimeLockMigrationEteTest'
+    }
 }
 
-task timeLockMigrationTest(type: Test) {
-    dependsOn prepareForEteTests, ':timelock-server-distribution:dockerTag'
-    include '**/*TimeLockMigration*.class'
+task multiClientWithPostgresTimelockAndPostgresTest(type: Test, dependsOn: 'prepareForTimelockEteTests') {
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.MultiClientWithPostgresTimelockAndPostgresTestSuite'
+    }
 }
 
-task dbkvsTest(type: Test) {
-    dependsOn prepareForEteTests
-    include '**/DbKvsTestSuite.class'
+task multiClientWithTimelockAndCassandraTest(type: Test, dependsOn: 'prepareForTimelockEteTests') {
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.MultiClientWithTimelockAndCassandraTestSuite'
+    }
 }
 
-task oracleTest(type: Test) {
-    dependsOn prepareForEteTests
-    include '**/OracleDbKvsEteTestSuite.class'
+task singleClientWithEmbeddedAndCassandraTest(type: Test, dependsOn: 'prepareForEteTests') {
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndCassandraTestSuite'
+    }
 }
 
-test {
-    dependsOn longTest, prepareForEteTests, timeLockTest, dbkvsTest
-    exclude '**/MultiCassandraTestSuite.class'
+task singleClientWithEmbeddedAndOracleTest(type: Test, dependsOn: 'prepareForEteTests') {
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndOracleTestSuite'
+    }
+}
 
-    exclude '**/*TimeLock*.class'
-    // Technically covered by previous line, but explicitly avoiding in case of refactor
-    exclude '**/*TimeLockMigration*.class'
+task singleClientWithEmbeddedAndPostgresTest(type: Test, dependsOn: 'prepareForEteTests') {
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndPostgresTestSuite'
+    }
+}
+
+task singleClientWithEmbeddedAndThreeNodeCassandraTest(type: Test, dependsOn: 'prepareForEteTests') {
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite'
+    }
+}
+
+// Re-wire 'test' to include custom tasks as dependencies via a single task instead of directly running them
 
-    exclude '**/*EteTest.class'
-    exclude '**/DbKvsTestSuite.class'
-    exclude '**/OracleDbKvsEteTestSuite.class'
+task customEteTasks() {
+    dependsOn multiClientWithPostgresTimelockAndPostgresTest,
+        multiClientWithTimelockAndCassandraTest,
+        singleClientWithEmbeddedAndCassandraTest,
+        singleClientWithEmbeddedAndOracleTest,
+        singleClientWithEmbeddedAndPostgresTest,
+        singleClientWithEmbeddedAndThreeNodeCassandraTest
+        // timeLockMigrationTest // intentionally not run on every commit/PR due to length
+}
+
+test {
+    dependsOn customEteTasks
+
+    filter {
+        // in the expected case "test" doesn't actually have any tests to run because they're all in custom tasks
+        // gradle would normally fail a task of type Test that doesn't actually have any tests to run
+        setFailOnNoMatchingTests(false)
+
+        // suite classes that should not be run outside of suites
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suiteclasses.*'
+
+        // tests with 1-off tasks
+        excludeTestsMatching 'com.palantir.atlasdb.ete.standalone.TimeLockMigrationEteTest'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.MultiClientWithPostgresTimelockAndPostgresTestSuite'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.MultiClientWithTimelockAndCassandraTestSuite'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndCassandraTestSuite'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndOracleTestSuite'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndPostgresTestSuite'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite'
+    }
 }
 
 distribution {u}(j (b0d6432234b88e585a3b355eb298ab1f500744d6j7 .atlasdb-ete-tests/docker-compose.cassandra.ymlj9 removedj1 K j2 K4j; K4j< https://github.com/palantir/atlasdb/blob/4ea884d0f3096946d12f3ecdce4edd87b6c854a7/atlasdb-ete-tests%2Fdocker-compose.cassandra.ymlj> https://github.com/palantir/atlasdb/raw/4ea884d0f3096946d12f3ecdce4edd87b6c854a7/atlasdb-ete-tests%2Fdocker-compose.cassandra.ymlj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.cassandra.yml?ref=4ea884d0f3096946d12f3ecdce4edd87b6c854a7jB X  @@ -1,52 +0,0 @@
-version: '2'
-
-services:
-  cassandra:
-    image: palantirtechnologies/docker-cassandra-atlasdb:$CASSANDRA_VERSION
-    ports:
-      - "9160"
-      - "9042"
-      - "7199"
-    environment:
-      - MAX_HEAP_SIZE=$CASSANDRA_MAX_HEAP_SIZE
-      - HEAP_NEWSIZE=$CASSANDRA_HEAP_NEWSIZE
-      - LOCAL_JMX=no
-
-  ete1:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console'
-    depends_on:
-      - cassandra
-    environment:
-      - ME=ete1
-    ports:
-      - "3828"
-
-  ete2:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console'
-    depends_on:
-      - cassandra
-    environment:
-      - ME=ete2
-    ports:
-      - "3828"
-
-  ete3:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console'
-    depends_on:
-      - cassandra
-    environment:
-      - ME=ete3
-    ports:
-      - "3828"
-
-  ete-cli:
-    build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.cassandra.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
-    environment:
-      - ME=ete1
-    depends_on:
-      - ete1u}(j (cf0290d516e630754c368658c2f7f72e74bd6e27j7 *atlasdb-ete-tests/docker-compose.dbkvs.ymlj9 removedj1 K j2 K2j; K2j< ~https://github.com/palantir/atlasdb/blob/4ea884d0f3096946d12f3ecdce4edd87b6c854a7/atlasdb-ete-tests%2Fdocker-compose.dbkvs.ymlj> }https://github.com/palantir/atlasdb/raw/4ea884d0f3096946d12f3ecdce4edd87b6c854a7/atlasdb-ete-tests%2Fdocker-compose.dbkvs.ymlj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.dbkvs.yml?ref=4ea884d0f3096946d12f3ecdce4edd87b6c854a7jB X#  @@ -1,50 +0,0 @@
-version: '2'
-
-services:
-  postgres:
-    image: postgres:9.6-alpine
-    environment:
-       POSTGRES_PASSWORD: palantir
-       POSTGRES_USER: palantir
-       POSTGRES_DB: atlas
-    ports:
-      - "5432"
-
-  ete1:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.dbkvs.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console'
-    depends_on:
-      - postgres
-    environment:
-      - ME=ete1
-    ports:
-      - "3828"
-
-  ete2:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.dbkvs.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console'
-    depends_on:
-      - postgres
-    environment:
-      - ME=ete2
-    ports:
-      - "3828"
-
-  ete3:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.dbkvs.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console'
-    depends_on:
-      - postgres
-    environment:
-      - ME=ete3
-    ports:
-      - "3828"
-
-  ete-cli:
-    build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.dbkvs.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
-    environment:
-      - ME=ete1
-    depends_on:
-      - ete1u}(j (07187320b13fc117cd4600f52f413c997120b078j7 Uatlasdb-ete-tests/docker-compose.multi-client-with-postgres-timelock-and-postgres.ymlj9 renamedj1 K	j2 Kj; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-postgres-timelock-and-postgres.ymlj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-postgres-timelock-and-postgres.ymlj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-postgres-timelock-and-postgres.yml?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X	  @@ -21,7 +21,7 @@ services:
 
   ete1:
     build: .
-    command: [bash, -c, 'cp var/conf/atlasdb-ete.timelock.dbkvs.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console']
+    command: [bash, -c, 'cp var/conf/atlasdb-ete.postgres-timelock-and-postgres.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console']
     ports:
       - "3828"
     environment:
@@ -30,9 +30,13 @@ services:
       - postgres
       - timelock
 
-  ete-cli:
+  ete2:
     build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.timelock.dbkvs.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
+    command: [bash, -c, 'cp var/conf/atlasdb-ete.postgres-timelock-and-postgres.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console']
+    ports:
+      - "3828"
+    environment:
+      - ME=ete2
     depends_on:
-      - ete1
+      - postgres
+      - timelockprevious_filenameEatlasdb-ete-tests/docker-compose.timelock.database.bound.postgres.ymlu}(j (21fed136618090c281f8a5228d1da2b9b72eeb1dj7 Matlasdb-ete-tests/docker-compose.multi-client-with-timelock-and-cassandra.ymlj9 renamedj1 Kj2 Kj; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-timelock-and-cassandra.ymlj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-timelock-and-cassandra.ymlj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-timelock-and-cassandra.yml?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X  @@ -20,7 +20,7 @@ services:
 
   ete1:
     build: .
-    command: [bash, -c, 'cp var/conf/atlasdb-ete.timelock.cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console']
+    command: [bash, -c, 'cp var/conf/atlasdb-ete.timelock-and-cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console']
     ports:
       - "3828"
     depends_on:
@@ -29,11 +29,13 @@ services:
     environment:
       - ME=ete1
 
-  ete-cli:
+  ete2:
     build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.timelock.cassandra.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
+    command: [bash, -c, 'cp var/conf/atlasdb-ete.timelock-and-cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console']
+    ports:
+      - "3828"
     depends_on:
-      - ete1
+      - cassandra
+      - timelock
     environment:
-      - ME=ete1
+      - ME=ete2j\ 7atlasdb-ete-tests/docker-compose.timelock.cassandra.ymlu}(j (1302da74efe18e84324e9d1b29b32b97d32d2286j7 +atlasdb-ete-tests/docker-compose.oracle.ymlj9 removedj1 K j2 Kj; Kj< https://github.com/palantir/atlasdb/blob/4ea884d0f3096946d12f3ecdce4edd87b6c854a7/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlj> ~https://github.com/palantir/atlasdb/raw/4ea884d0f3096946d12f3ecdce4edd87b6c854a7/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.oracle.yml?ref=4ea884d0f3096946d12f3ecdce4edd87b6c854a7jB X  @@ -1,26 +0,0 @@
-version: '2'
-
-services:
-  oracle:
-    image: palantirtechnologies/oracle-atlasdb:19.20.0.0-se
-    ports:
-      - "1521"
-
-  ete1:
-    build: .
-    command: [bash, -c, 'cp var/conf/atlasdb-ete.oracle.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://oracle:1521 && service/bin/init.sh console']
-    ports:
-      - "3828"
-    depends_on:
-      - oracle
-    environment:
-      - ME=ete1
-
-  ete-cli:
-    build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.oracle.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
-    depends_on:
-      - ete1
-    environment:
-      - ME=ete1u}(j (d312be230917aef7f5b7fdc8f70e506af40539f4j7 Natlasdb-ete-tests/docker-compose.single-client-with-embedded-and-cassandra.ymlj9 addedj1 Kj2 K j; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-cassandra.ymlj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-cassandra.ymlj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-cassandra.yml?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X}  @@ -0,0 +1,23 @@
+version: '2'
+
+services:
+  cassandra:
+    image: palantirtechnologies/docker-cassandra-atlasdb:$CASSANDRA_VERSION
+    ports:
+      - "9160"
+      - "9042"
+      - "7199"
+    environment:
+      - MAX_HEAP_SIZE=$CASSANDRA_MAX_HEAP_SIZE
+      - HEAP_NEWSIZE=$CASSANDRA_HEAP_NEWSIZE
+      - LOCAL_JMX=no
+
+  ete1:
+    build: .
+    command: bash -c 'cp var/conf/atlasdb-ete.embedded-and-cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console'
+    depends_on:
+      - cassandra
+    environment:
+      - ME=ete1
+    ports:
+      - "3828"u}(j (ba464419ea696a2af89118c5538fb23ca95d46d5j7 Katlasdb-ete-tests/docker-compose.single-client-with-embedded-and-oracle.ymlj9 addedj1 Kj2 K j; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-oracle.ymlj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-oracle.ymlj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-oracle.yml?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X  @@ -0,0 +1,17 @@
+version: '2'
+
+services:
+  oracle:
+    image: palantirtechnologies/oracle-atlasdb:19.20.0.0-se
+    ports:
+      - "1521"
+
+  ete1:
+    build: .
+    command: [bash, -c, 'cp var/conf/atlasdb-ete.embedded-and-oracle.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://oracle:1521 && service/bin/init.sh console']
+    ports:
+      - "3828"
+    depends_on:
+      - oracle
+    environment:
+      - ME=ete1uD      }(j (b347aa74093dbeb0943cd9f60c89935c4c4985c5j7 Matlasdb-ete-tests/docker-compose.single-client-with-embedded-and-postgres.ymlj9 addedj1 Kj2 K j; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-postgres.ymlj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-postgres.ymlj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-postgres.yml?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X  @@ -0,0 +1,21 @@
+version: '2'
+
+services:
+  postgres:
+    image: postgres:9.6-alpine
+    environment:
+       POSTGRES_PASSWORD: palantir
+       POSTGRES_USER: palantir
+       POSTGRES_DB: atlas
+    ports:
+      - "5432"
+
+  ete1:
+    build: .
+    command: bash -c 'cp var/conf/atlasdb-ete.embedded-and-postgres.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console'
+    depends_on:
+      - postgres
+    environment:
+      - ME=ete1
+    ports:
+      - "3828"u}(j (812166d4ee2f660ecd1a7baff916e76437cc8fb4j7 Yatlasdb-ete-tests/docker-compose.single-client-with-embedded-and-three-node-cassandra.ymlj9 renamedj1 Kj2 K
j; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-three-node-cassandra.ymlj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-three-node-cassandra.ymlj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-three-node-cassandra.yml?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB XD  @@ -30,17 +30,8 @@ services:
 
   ete1:
     build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.multiple-cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160 && service/bin/init.sh console'
+    command: bash -c 'cp var/conf/atlasdb-ete.embedded-and-three-node-cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160 && service/bin/init.sh console'
     environment:
       - ME=ete1
     ports:
       - "3828"
-
-  ete-cli:
-    build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.multiple-cassandra.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
-    environment:
-      - ME=ete1
-    depends_on:
-      - ete1j\ 7atlasdb-ete-tests/docker-compose.multiple-cassandra.ymlu}(j (0f3fca984aef06482c3550558b9641048da27f88j7 Datlasdb-ete-tests/docker/conf/atlasdb-ete.embedded-and-cassandra.ymlj9 renamedj1 K j2 Kj; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-cassandra.ymlj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-cassandra.ymlj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-cassandra.yml?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X  @@ -26,17 +26,3 @@ atlasdb:
     autoRefreshNodes: false
 
   namespace: atlasete
-
-  leader:
-    quorumSize: 2
-    learnerLogDir: var/data/paxosLog/learner1
-    acceptorLogDir: var/data/paxosLog/acceptor1
-    localServer: http://${ME}:3828
-    leaders:
-      - http://ete1:3828
-      - http://ete2:3828
-      - http://ete3:3828
-    sslConfiguration:
-      keyStorePath: "var/security/keyStore.jks"
-      keyStorePassword: "keystore"
-      trustStorePath: "var/security/trustStore.jks"j\ 7atlasdb-ete-tests/docker/conf/atlasdb-ete.cassandra.ymlu}(j (9c4e53b0d64b2fb53b069e5fdfa592d0e97c00c8j7 Aatlasdb-ete-tests/docker/conf/atlasdb-ete.embedded-and-oracle.ymlj9 renamedj1 K j2 K j; K j< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-oracle.ymlj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-oracle.ymlj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-oracle.yml?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2j\ 4atlasdb-ete-tests/docker/conf/atlasdb-ete.oracle.ymlu}(j (d90d50b7ad7f52c3baa55d662d2f5edaa066bda2j7 Catlasdb-ete-tests/docker/conf/atlasdb-ete.embedded-and-postgres.ymlj9 renamedj1 K j2 Kj; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-postgres.ymlj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-postgres.ymlj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-postgres.yml?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X  @@ -21,17 +21,3 @@ atlasdb:
       dbName: atlas
       dbLogin: palantir
       dbPassword: palantir
-
-  leader:
-    quorumSize: 2
-    learnerLogDir: var/data/paxosLog/learner1
-    acceptorLogDir: var/data/paxosLog/acceptor1
-    localServer: http://${ME}:3828
-    leaders:
-      - http://ete1:3828
-      - http://ete2:3828
-      - http://ete3:3828
-    sslConfiguration:
-      keyStorePath: "var/security/keyStore.jks"
-      keyStorePassword: "keystore"
-      trustStorePath: "var/security/trustStore.jks"j\ 3atlasdb-ete-tests/docker/conf/atlasdb-ete.dbkvs.ymlu}(j (ac10fa9faf73514073f11f37795985494d6695e7j7 Oatlasdb-ete-tests/docker/conf/atlasdb-ete.embedded-and-three-node-cassandra.ymlj9 renamedj1 K j2 Kj; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-three-node-cassandra.ymlj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-three-node-cassandra.ymlj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-three-node-cassandra.yml?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X  @@ -29,15 +29,3 @@ atlasdb:
     replicationFactor: 3
 
   namespace: atlasete
-
-  leader:
-    quorumSize: 1
-    learnerLogDir: var/data/paxosLog/learner1
-    acceptorLogDir: var/data/paxosLog/acceptor1
-    localServer: http://${ME}:3828
-    leaders:
-      - http://ete1:3828
-    sslConfiguration:
-      keyStorePath: "var/security/keyStore.jks"
-      keyStorePassword: "keystore"
-      trustStorePath: "var/security/trustStore.jks"j\ @atlasdb-ete-tests/docker/conf/atlasdb-ete.multiple-cassandra.ymlu}(j (9addcfbf688c010f290472ca32822e97cdb84b49j7 Latlasdb-ete-tests/docker/conf/atlasdb-ete.postgres-timelock-and-postgres.ymlj9 renamedj1 K j2 K j; K j< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.postgres-timelock-and-postgres.ymlj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.postgres-timelock-and-postgres.ymlj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.postgres-timelock-and-postgres.yml?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2j\ <atlasdb-ete-tests/docker/conf/atlasdb-ete.timelock.dbkvs.ymlu}(j (f46fae135144900f14845de3c8c7efc5b0b06e24j7 Datlasdb-ete-tests/docker/conf/atlasdb-ete.timelock-and-cassandra.ymlj9 renamedj1 K j2 K j; K j< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.timelock-and-cassandra.ymlj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.timelock-and-cassandra.ymlj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.timelock-and-cassandra.yml?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2j\ @atlasdb-ete-tests/docker/conf/atlasdb-ete.timelock.cassandra.ymlu}(j (87848b037ef3ec51861ef46e47cc79daf74b1e96j7 Latlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/DbKvsTestSuite.javaj9 removedj1 K j2 K&j; K&j< https://github.com/palantir/atlasdb/blob/4ea884d0f3096946d12f3ecdce4edd87b6c854a7/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FDbKvsTestSuite.javaj> https://github.com/palantir/atlasdb/raw/4ea884d0f3096946d12f3ecdce4edd87b6c854a7/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FDbKvsTestSuite.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FDbKvsTestSuite.java?ref=4ea884d0f3096946d12f3ecdce4edd87b6c854a7jB X  @@ -1,38 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.ete;
-
-import com.google.common.collect.ImmutableList;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import org.junit.ClassRule;
-import org.junit.rules.RuleChain;
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-
-@RunWith(Suite.class)
-@Suite.SuiteClasses({
-    TodoEteTest.class,
-    TimestampManagementEteTest.class,
-    CoordinationEteTest.class,
-    LockWithoutTimelockEteTest.class
-})
-public class DbKvsTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1", "ete2", "ete3");
-
-    @ClassRule
-    public static final RuleChain COMPOSITION_SETUP =
-            EteSetup.setupComposition(DbKvsTestSuite.class, "docker-compose.dbkvs.yml", CLIENTS);
-}u}(j (f48aee4be35889d0da53f6362d8bab1e56d41345j7 Tatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/ServiceExposureEteTest.javaj9 removedj1 K j2 K-j; K-j< https://github.com/palantir/atlasdb/blob/4ea884d0f3096946d12f3ecdce4edd87b6c854a7/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FServiceExposureEteTest.javaj> https://github.com/palantir/atlasdb/raw/4ea884d0f3096946d12f3ecdce4edd87b6c854a7/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FServiceExposureEteTest.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FServiceExposureEteTest.java?ref=4ea884d0f3096946d12f3ecdce4edd87b6c854a7jB X  @@ -1,45 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.ete;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.palantir.timestamp.TimestampManagementService;
-import com.palantir.timestamp.TimestampService;
-import org.junit.Test;
-
-public class ServiceExposureEteTest {
-    @Test
-    public void shouldExposeATimestampServer() {
-        TimestampService timestampClient = EteSetup.createClientToAllNodes(TimestampService.class);
-
-        assertThat(timestampClient.getFreshTimestamp()).isNotNull();
-    }
-
-    @Test
-    public void shouldExposeATimestampManagementServer() {
-        TimestampService timestampClient = EteSetup.createClientToAllNodes(TimestampService.class);
-        TimestampManagementService timestampManagementClient =
-                EteSetup.createClientToAllNodes(TimestampManagementService.class);
-
-        assertThat(timestampClient.getFreshTimestamp()).isNotNull();
-
-        long newts = timestampClient.getFreshTimestamp() + 10000000;
-        timestampManagementClient.fastForwardTimestamp(newts);
-
-        assertThat(timestampClient.getFreshTimestamp()).isGreaterThan(newts);
-    }
-}u}(j (3e5e78208bd362f331e92ea8ca27a7a5449f0fc1j7 aatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/standalone/TimeLockMigrationEteTest.javaj9 renamedj1 Kj2 Kj; K
j< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fstandalone%2FTimeLockMigrationEteTest.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fstandalone%2FTimeLockMigrationEteTest.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fstandalone%2FTimeLockMigrationEteTest.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB XE	  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,12 +13,15 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.standalone;
 
 import static org.assertj.core.api.Assertions.catchThrowable;
 
 import com.google.common.util.concurrent.Uninterruptibles;
-import com.palantir.atlasdb.ete.DockerClientOrchestrationRule.DockerClientConfiguration;
+import com.palantir.atlasdb.ete.Gradle;
+import com.palantir.atlasdb.ete.utilities.DockerClientOrchestrationRule;
+import com.palantir.atlasdb.ete.utilities.DockerClientOrchestrationRule.DockerClientConfiguration;
+import com.palantir.atlasdb.ete.utilities.ImmutableDockerClientConfiguration;
 import com.palantir.atlasdb.http.AtlasDbHttpClients;
 import com.palantir.atlasdb.http.TestProxyUtils;
 import com.palantir.atlasdb.todo.ImmutableTodo;
@@ -66,7 +69,7 @@ public class TimeLockMigrationEteTest {
                         .build();
                 TEST_CONTEXT = ImmutableTimeLockMigrationTestContext.builder()
                         .eteConfigWithEmbedded(embeddedConfig)
-                        .eteConfigWithTimeLock(new File("docker/conf/atlasdb-ete.timelock.cassandra.yml"))
+                        .eteConfigWithTimeLock(new File("docker/conf/atlasdb-ete.timelock-and-cassandra.yml"))
                         .dockerClientConfiguration(dockerClientConfiguration)
                         .build();
                 break;
@@ -79,7 +82,7 @@ public class TimeLockMigrationEteTest {
                         .build();
                 TEST_CONTEXT = ImmutableTimeLockMigrationTestContext.builder()
                         .eteConfigWithEmbedded(embeddedConfig)
-                        .eteConfigWithTimeLock(new File("docker/conf/atlasdb-ete.timelock.dbkvs.yml"))
+                        .eteConfigWithTimeLock(new File("docker/conf/atlasdb-ete.postgres-timelock-and-postgres.yml"))
                         .dockerClientConfiguration(dockerClientConfiguration)
                         .build();
                 break;j\ Vatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/TimeLockMigrationEteTest.javau}(j (d2eb3ff2ef5633bf5fca376606a0944a7b8a1406j7 eatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/CassandraTimestampsEteTest.javaj9 renamedj1 Kj2 Kj; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FCassandraTimestampsEteTest.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FCassandraTimestampsEteTest.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FCassandraTimestampsEteTest.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,12 +13,13 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.google.common.collect.Iterables;
-import com.palantir.atlasdb.ete.cassandra.util.CassandraCommands;
+import com.palantir.atlasdb.ete.utilities.CassandraCommands;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import com.palantir.atlasdb.table.description.ValueType;
 import com.palantir.atlasdb.todo.ImmutableTodo;
 import com.palantir.atlasdb.todo.Todo;j\ Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraTimestampsEteTest.javau}(j (a0cbd2bd9e1b4a2bbabc01cc187fd6af6e89ec24j7 ^atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/CoordinationEteTest.javaj9 renamedj1 Kj2 Kj; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FCoordinationEteTest.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FCoordinationEteTest.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FCoordinationEteTest.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,12 +14,12 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.ete.coordination;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.palantir.atlasdb.coordination.CoordinationResource;
-import com.palantir.atlasdb.ete.EteSetup;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import org.junit.Before;
 import org.junit.Test;
 j\ ^atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/coordination/CoordinationEteTest.javau}(j (1d228445e551125627e9f4e3c1d64a5848e68df5j7 batlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/LockWithTimelockEteTest.javaj9 renamedj1 Kj2 Kj; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FLockWithTimelockEteTest.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FLockWithTimelockEteTest.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FLockWithTimelockEteTest.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X}  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,10 +14,11 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import com.palantir.atlasdb.lock.LockResource;
 import org.junit.Test;
 j\ Uatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/LockWithTimelockEteTest.javau}(j (2162a2a261b3e53e8515c7650f68a9fae42d1d15j7 eatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/LockWithoutTimelockEteTest.javaj9 renamedj1 Kj2 Kj; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FLockWithoutTimelockEteTest.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FLockWithoutTimelockEteTest.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FLockWithoutTimelockEteTest.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X}  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,10 +14,11 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import com.palantir.atlasdb.lock.LockResource;
 import org.junit.Test;
 j\ Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/LockWithoutTimelockEteTest.javau}(j (8e362098b30218b39c6a29ebfc48ba0227d201eaj7 natlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/MultiCassandraDoubleNodeDownEteTest.javaj9 renamedj1 Kj2 Kj; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultiCassandraDoubleNodeDownEteTest.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultiCassandraDoubleNodeDownEteTest.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultiCassandraDoubleNodeDownEteTest.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,12 +13,14 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
+import com.palantir.atlasdb.ete.utilities.MultiCassandraUtils;
 import com.palantir.atlasdb.todo.ImmutableTodo;
 import com.palantir.atlasdb.todo.Todo;
 import com.palantir.atlasdb.todo.TodoResource;j\ aatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/MultiCassandraDoubleNodeDownEteTest.javau}(j (1e8e59ecea793ea0e738113a5fc549df9d547118j7 natlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/MultiCassandraSingleNodeDownEteTest.javaj9 renamedj1 Kj2 Kj; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultiCassandraSingleNodeDownEteTest.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultiCassandraSingleNodeDownEteTest.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultiCassandraSingleNodeDownEteTest.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB Xr  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,11 +13,13 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
+import com.palantir.atlasdb.ete.utilities.MultiCassandraUtils;
 import com.palantir.atlasdb.todo.ImmutableTodo;
 import com.palantir.atlasdb.todo.Todo;
 import com.palantir.atlasdb.todo.TodoResource;j\ aatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/MultiCassandraSingleNodeDownEteTest.javau}(j (ab481bbb799dd4dfc95851565247e2259ad2730fj7 tatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/MultipleSchemaVersionsCoordinationEteTest.javaj9 renamedj1 Kj2 Kj; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultipleSchemaVersionsCoordinationEteTest.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultipleSchemaVersionsCoordinationEteTest.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultipleSchemaVersionsCoordinationEteTest.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X>  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,13 +14,13 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.ete.coordination;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 
 import com.palantir.atlasdb.coordination.CoordinationResource;
-import com.palantir.atlasdb.ete.EteSetup;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import org.junit.Test;
 
 public class MultipleSchemaVersionsCoordinationEteTest {j\ tatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/coordination/MultipleSchemaVersionsCoordinationEteTest.javau}(j (549c625af31fd66c34ed255df058100f5ee8ad3bj7 _atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/TargetedSweepEteTest.javaj9 renamedj1 Kj2 Kj; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTargetedSweepEteTest.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTargetedSweepEteTest.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTargetedSweepEteTest.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB XU  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,10 +13,12 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.ete.utilities.EteSetup;
+import com.palantir.atlasdb.ete.utilities.StreamTestUtils;
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.todo.ImmutableTodo;j\ Ratlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/TargetedSweepEteTest.javau}(j (7423cffd6511933700cb3577543613bb080abce6j7 eatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/TimestampManagementEteTest.javaj9 renamedj1 Kj2 Kj; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTimestampManagementEteTest.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTimestampManagementEteTest.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTimestampManagementEteTest.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,10 +13,11 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import com.palantir.atlasdb.timestamp.EteTimestampResource;
 import org.junit.Test;
 j\ Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/TimestampManagementEteTest.javau}(j (6c0f4537e9eb3ec7925e5af18c617ace3951e4ddj7 Vatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/TodoEteTest.javaj9 renamedj1 Kj2 Kj; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTodoEteTest.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTodoEteTest.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTodoEteTest.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB XF  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,10 +13,12 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.ete.utilities.EteSetup;
+import com.palantir.atlasdb.ete.utilities.StreamTestUtils;
 import com.palantir.atlasdb.keyvalue.api.SweepResults;
 import com.palantir.atlasdb.todo.ImmutableTodo;
 import com.palantir.atlasdb.todo.Todo;j\ Iatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/TodoEteTest.javau}(j (3c06663b222d617847d95afe0698c144caa0d045j7 xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/MultiClientWithPostgresTimelockAndPostgresTestSuite.javaj9 renamedj1 Kj2 K
j; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithPostgresTimelockAndPostgresTestSuite.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithPostgresTimelockAndPostgresTestSuite.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithPostgresTimelockAndPostgresTestSuite.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB Xx  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,11 +13,14 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suites;
 
-import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.CoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.LockWithTimelockEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TimestampManagementEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TodoEteTest;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;
@@ -30,13 +33,11 @@
     CoordinationEteTest.class,
     LockWithTimelockEteTest.class
 })
-public class PostgresDbPersistenceTimeLockTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");
-
+public class MultiClientWithPostgresTimelockAndPostgresTestSuite extends EteSetup {
     @ClassRule
     public static final RuleChain COMPOSITION_SETUP = EteSetup.setupCompositionWithTimelock(
-            PostgresDbPersistenceTimeLockTestSuite.class,
-            "docker-compose.timelock.database.bound.postgres.yml",
-            CLIENTS,
+            MultiClientWithPostgresTimelockAndPostgresTestSuite.class,
+            "docker-compose.multi-client-with-postgres-timelock-and-postgres.yml",
+            Clients.MULTI,
             ImmutableMap.of());
 }j\ datlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/PostgresDbPersistenceTimeLockTestSuite.javau}(j (3033fd64b66ce6a9ac2df29ae27d9a75d87bf7b7j7 qatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/MultiClientWithTimelockAndCassandraTestSuite.javaj9 renamedj1 Kj2 K	j; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithTimelockAndCassandraTestSuite.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithTimelockAndCassandraTestSuite.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithTimelockAndCassandraTestSuite.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X^  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,10 +13,11 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suites;
 
-import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.containers.CassandraEnvironment;
+import com.palantir.atlasdb.ete.suiteclasses.TodoEteTest;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;
@@ -31,13 +32,11 @@
     //    MultipleSchemaVersionsCoordinationEteTest.class,
     //    LockWithTimelockEteTest.class
 })
-public class CassandraTimeLockTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");
-
+public class MultiClientWithTimelockAndCassandraTestSuite extends EteSetup {
     @ClassRule
     public static final RuleChain COMPOSITION_SETUP = EteSetup.setupCompositionWithTimelock(
-            CassandraTimeLockTestSuite.class,
-            "docker-compose.timelock.cassandra.yml",
-            CLIENTS,
+            MultiClientWithTimelockAndCassandraTestSuite.class,
+            "docker-compose.multi-client-with-timelock-and-cassandra.yml",
+            Clients.MULTI,
             CassandraEnvironment.get());
 }j\ Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraTimeLockTestSuite.javau}(j (3144e5d0d359764709d0f81a49d14bf7c97f81e6j7 ratlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/SingleClientWithEmbeddedAndCassandraTestSuite.javaj9 renamedj1 Kj2 K
j; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndCassandraTestSuite.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndCassandraTestSuite.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndCassandraTestSuite.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB Xd  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,12 +13,14 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suites;
 
-import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.containers.CassandraEnvironment;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import com.palantir.atlasdb.ete.coordination.MultipleSchemaVersionsCoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.CoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.MultipleSchemaVersionsCoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TimestampManagementEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TodoEteTest;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;
@@ -27,15 +29,15 @@
 @RunWith(Suite.class)
 @Suite.SuiteClasses({
     TodoEteTest.class,
-    ServiceExposureEteTest.class,
     TimestampManagementEteTest.class,
     CoordinationEteTest.class,
     MultipleSchemaVersionsCoordinationEteTest.class
 })
-public class CassandraMultinodeTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1", "ete2", "ete3");
-
+public class SingleClientWithEmbeddedAndCassandraTestSuite extends EteSetup {
     @ClassRule
     public static final RuleChain COMPOSITION_SETUP = EteSetup.setupComposition(
-            CassandraMultinodeTestSuite.class, "docker-compose.cassandra.yml", CLIENTS, CassandraEnvironment.get());
+            SingleClientWithEmbeddedAndCassandraTestSuite.class,
+            "docker-compose.single-client-with-embedded-and-cassandra.yml",
+            Clients.SINGLE,
+            CassandraEnvironment.get());
 }j\ Yatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraMultinodeTestSuite.javau}(j (9e14624754af58cf6c39d80ca73e37b15462d10cj7 oatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/SingleClientWithEmbeddedAndOracleTestSuite.javaj9 addedj1 K,j2 K j; K,j< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndOracleTestSuite.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndOracleTestSuite.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndOracleTestSuite.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.ete.suites;
+
+import com.palantir.atlasdb.ete.suiteclasses.CoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.LockWithoutTimelockEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TimestampManagementEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TodoEteTest;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
+import java.time.Duration;
+import org.junit.ClassRule;
+import org.junit.rules.RuleChain;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+@RunWith(Suite.class)
+@Suite.SuiteClasses({
+    TodoEteTest.class,
+    TimestampManagementEteTest.class,
+    CoordinationEteTest.class,
+    LockWithoutTimelockEteTest.class
+})
+public class SingleClientWithEmbeddedAndOracleTestSuite extends EteSetup {
+    @ClassRule
+    public static final RuleChain COMPOSITION_SETUP = EteSetup.setupComposition(
+            SingleClientWithEmbeddedAndOracleTestSuite.class,
+            "docker-compose.single-client-with-embedded-and-oracle.yml",
+            Clients.SINGLE,
+            Duration.ofMinutes(10));
+}u}(j (629701f7b6ac2e83594f215e880dc5791d78f360j7 qatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/SingleClientWithEmbeddedAndPostgresTestSuite.javaj9 renamedj1 Kj2 K
j; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndPostgresTestSuite.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndPostgresTestSuite.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndPostgresTestSuite.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,12 +13,13 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+package com.palantir.atlasdb.ete.suites;
 
-package com.palantir.atlasdb.ete;
-
-import com.google.common.collect.ImmutableList;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import java.time.Duration;
+import com.palantir.atlasdb.ete.suiteclasses.CoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.LockWithoutTimelockEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TimestampManagementEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TodoEteTest;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;
@@ -31,10 +32,10 @@
     CoordinationEteTest.class,
     LockWithoutTimelockEteTest.class
 })
-public class OracleDbKvsEteTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");
-
+public class SingleClientWithEmbeddedAndPostgresTestSuite extends EteSetup {
     @ClassRule
     public static final RuleChain COMPOSITION_SETUP = EteSetup.setupComposition(
-            OracleDbKvsEteTestSuite.class, "docker-compose.oracle.yml", CLIENTS, Duration.ofMinutes(10));
+            SingleClientWithEmbeddedAndPostgresTestSuite.class,
+            "docker-compose.single-client-with-embedded-and-postgres.yml",
+            Clients.SINGLE);
 }j\ Uatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/OracleDbKvsEteTestSuite.javau}(j (3e5ff3ed258aaf6fd089362f79ffb7c07cacefa4j7 {atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.javaj9 renamedj1 Kj2 Kj; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X	  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,12 +13,17 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suites;
 
-import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.containers.CassandraEnvironment;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import com.palantir.atlasdb.ete.coordination.MultipleSchemaVersionsCoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.CoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.LockWithoutTimelockEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.MultiCassandraDoubleNodeDownEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.MultiCassandraSingleNodeDownEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.MultipleSchemaVersionsCoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TimestampManagementEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TodoEteTest;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;
@@ -27,21 +32,18 @@
 @RunWith(Suite.class)
 @Suite.SuiteClasses({
     TodoEteTest.class,
-    ServiceExposureEteTest.class,
     MultiCassandraSingleNodeDownEteTest.class,
     MultiCassandraDoubleNodeDownEteTest.class,
     TimestampManagementEteTest.class,
     CoordinationEteTest.class,
     MultipleSchemaVersionsCoordinationEteTest.class,
     LockWithoutTimelockEteTest.class
 })
-public class MultiCassandraTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");
-
+public class SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite extends EteSetup {
     @ClassRule
     public static final RuleChain COMPOSITION_SETUP = EteSetup.setupComposition(
-            MultiCassandraTestSuite.class,
-            "docker-compose.multiple-cassandra.yml",
-            CLIENTS,
+            SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.class,
+            "docker-compose.single-client-with-embedded-and-three-node-cassandra.yml",
+            Clients.SINGLE,
             CassandraEnvironment.get());
 }j\ Uatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/MultiCassandraTestSuite.javau}(j (69bf3c9a8268915b86a87ee9bf78263b70325019j7 Yatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/utilities/CassandraCommands.javaj9 renamedj1 Kj2 Kj; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FCassandraCommands.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FCassandraCommands.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FCassandraCommands.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X
  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,10 +13,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete.cassandra.util;
+package com.palantir.atlasdb.ete.utilities;
 
 import com.google.common.io.BaseEncoding;
-import com.palantir.atlasdb.ete.EteSetup;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl;
 import java.io.IOException;j\ ^atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/cassandra/util/CassandraCommands.javau}(j (0c44336121ccd9b0cd7410a7e2966f0d7f9997d9j7 eatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/utilities/DockerClientOrchestrationRule.javaj9 renamedj1 Kj2 Kj; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FDockerClientOrchestrationRule.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FDockerClientOrchestrationRule.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FDockerClientOrchestrationRule.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,11 +13,12 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.utilities;
 
 import com.google.common.base.Throwables;
 import com.google.common.collect.ImmutableMap;
 import com.palantir.atlasdb.containers.CassandraEnvironment;
+import com.palantir.atlasdb.ete.standalone.TimeLockMigrationEteTest;
 import com.palantir.docker.compose.DockerComposeRule;
 import com.palantir.docker.compose.connection.DockerMachine;
 import com.palantir.docker.compose.connection.waiting.ClusterHealthCheck;j\ [atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/DockerClientOrchestrationRule.javau}(j (e6fe91c9f447033dde9232d11a47161d80eb6dd4j7 Patlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/utilities/EteSetup.javaj9 renamedj1 K!j2 K(j; KIj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FEteSetup.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FEteSetup.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FEteSetup.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB Xw  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,17 +13,16 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.utilities;
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.AtlasDbEteServer;
-import com.palantir.atlasdb.config.ImmutableServerListConfig;
+import com.palantir.atlasdb.ete.Gradle;
 import com.palantir.atlasdb.http.AtlasDbHttpClients;
 import com.palantir.atlasdb.http.TestProxyUtils;
 import com.palantir.atlasdb.todo.TodoResource;
-import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.conjure.java.api.config.ssl.SslConfiguration;
 import com.palantir.conjure.java.config.ssl.SslSocketFactories;
 import com.palantir.conjure.java.config.ssl.TrustContext;
@@ -38,12 +37,10 @@
 import java.io.IOException;
 import java.nio.file.Paths;
 import java.time.Duration;
-import java.util.Collection;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.Callable;
-import java.util.stream.Collectors;
 import org.awaitility.Awaitility;
 import org.junit.rules.ExternalResource;
 import org.junit.rules.RuleChain;
@@ -65,48 +62,48 @@ public abstract class EteSetup {
     private static List<String> availableClients;
     private static Duration waitDuration;
 
-    public static RuleChain setupComposition(Class<?> eteClass, String composeFile, List<String> availableClientNames) {
-        return setupComposition(eteClass, composeFile, availableClientNames, Duration.ofMinutes(2));
+    public static RuleChain setupComposition(Class<?> eteClass, String composeFile, Clients clients) {
+        return setupComposition(eteClass, composeFile, clients, Duration.ofMinutes(2));
     }
 
     public static RuleChain setupComposition(
-            Class<?> eteClass, String composeFile, List<String> availableClientNames, Duration waitTime) {
-        return setupComposition(eteClass, composeFile, availableClientNames, waitTime, ImmutableMap.of());
+            Class<?> eteClass, String composeFile, Clients clients, Duration waitTime) {
+        return setupComposition(eteClass, composeFile, clients, waitTime, ImmutableMap.of());
     }
 
     public static RuleChain setupComposition(
-            Class<?> eteClass, String composeFile, List<String> availableClientNames, Map<String, String> environment) {
-        return setupComposition(eteClass, composeFile, availableClientNames, Duration.ofMinutes(2), environment);
+            Class<?> eteClass, String composeFile, Clients clients, Map<String, String> environment) {
+        return setupComposition(eteClass, composeFile, clients, Duration.ofMinutes(2), environment);
     }
 
     public static RuleChain setupComposition(
             Class<?> eteClass,
             String composeFile,
-            List<String> availableClientNames,
+            Clients clients,
             Duration waitTime,
             Map<String, String> environment) {
         waitDuration = waitTime;
-        return setup(eteClass, composeFile, availableClientNames, environment);
+        return setup(eteClass, composeFile, clients, environment);
     }
 
     public static RuleChain setupCompositionWithTimelock(
-            Class<?> eteClass, String composeFile, List<String> availableClientNames, Map<String, String> environment) {
+            Class<?> eteClass, String composeFile, Clients clients, Map<String, String> environment) {
         waitDuration = Duration.ofMinutes(2);
-        return setup(eteClass, composeFile, availableClientNames, environment, true);
+        return setup(eteClass, composeFile, clients, environment, true);
     }
 
     public static RuleChain setup(
-            Class<?> eteClass, String composeFile, List<String> availableClientNames, Map<String, String> environment) {
-        return setup(eteClass, composeFile, availableClientNames, environment, false);
+            Class<?> eteClass, String composeFile, Clients clients, Map<String, String> environment) {
+        return setup(eteClass, composeFile, clients, environment, false);
     }
 
     public static RuleChain setup(
             Class<?> eteClass,
             String composeFile,
-            List<String> availableClientNames,
+            Clients clients,
             Map<String, String> environment,
             boolean usingTimelock) {
-        availableClients = ImmutableList.copyOf(availableClientNames);
+        availableClients = clients.getClients();
 
         DockerMachine machine =
                 DockerMachine.localMachine().withEnvironment(environment).build();
@@ -145,18 +142,14 @@ public static <T> T createClientToSingleNodeWithExtendedTimeout(Class<T> clazz)
         return createClientWithExtendedTimeout(clazz, Iterables.getFirst(availableClients, null), SERVER_PORT);
     }
 
-    static <T> T createClientToAllNodes(Class<T> clazz) {
-        return createClientToMultipleNodes(clazz, availableClients, SERVER_PORT);
-    }
-
     public static Container getContainer(String containerName) {
         return docker.containers().container(containerName);
     }
 
     private static ExternalResource waitForServersToBeReady() {
         return new ExternalResource() {
             @Override
-            protected void before() throws Throwable {
+            protected void before() {
                 Awaitility.await()
                         .ignoreExceptions()
                         .atMost(waitDuration)
@@ -176,21 +169,6 @@ private static Callable<Boolean> serversAreReady() {
         };
     }
 
-    private static <T> T createClientToMultipleNodes(Class<T> clazz, List<String> nodeNames, short port) {
-        Collection<String> uris = nodeNames.stream()
-                .map(nodeName -> String.format("http://%s:%s", nodeName, port))
-                .collect(Collectors.toList());
-
-        return AtlasDbHttpClients.createProxyWithFailover(
-                MetricsManagers.createForTests(),
-                ImmutableServerListConfig.builder()
-                        .addAllServers(uris)
-                        .sslConfiguration(SSL_CONFIGURATION)
-                        .build(),
-                clazz,
-                TestProxyUtils.AUXILIARY_REMOTING_PARAMETERS_RETRYING);
-    }
-
     private static <T> T createClientFor(Class<T> clazz, String host, short port) {
         String uri = String.format("http://%s:%s", host, port);
         return AtlasDbHttpClients.createProxy(
@@ -202,4 +180,19 @@ private static <T> T createClientWithExtendedTimeout(Class<T> clazz, String host
         return AtlasDbHttpClients.createProxy(
                 Optional.of(TRUST_CONTEXT), uri, clazz, TestProxyUtils.AUXILIARY_REMOTING_PARAMETERS_EXTENDED_TIMEOUT);
     }
+
+    public enum Clients {
+        SINGLE(ImmutableList.of("ete1")),
+        MULTI(ImmutableList.of("ete1", "ete2"));
+
+        private final ImmutableList<String> clients;
+
+        Clients(ImmutableList<String> clients) {
+            this.clients = clients;
+        }
+
+        List<String> getClients() {
+            return clients;
+        }
+    }
 }j\ Fatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/EteSetup.javau}(j (c352725f9e8fafdda672636663a32eddca7f693cj7 [atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/utilities/MultiCassandraUtils.javaj9 renamedj1 Kj2 Kj; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FMultiCassandraUtils.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FMultiCassandraUtils.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FMultiCassandraUtils.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB Xg  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.utilities;
 
 import com.google.common.base.Throwables;
 import com.palantir.docker.compose.connection.Container;     j\ Qatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/MultiCassandraUtils.javau}(j (e6e007b6ed0522e2abf26b463ff1f0f8bcc9cf68j7 Watlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/utilities/StreamTestUtils.javaj9 renamedj1 Kj2 Kj; Kj< https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FStreamTestUtils.javaj> https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FStreamTestUtils.javaj@ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FStreamTestUtils.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB Xa  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.utilities;
 
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.todo.TodoResource;j\ Matlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/StreamTestUtils.javau}(j (46b08373d5f2c6671184ea4db24958e4b16ecbf7j7 %scripts/circle-ci/run-circle-tests.shj9 modifiedj1 Kj2 Kj; K
j< {https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/scripts%2Fcircle-ci%2Frun-circle-tests.shj> zhttps://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/scripts%2Fcircle-ci%2Frun-circle-tests.shj@ https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jB X
  @@ -15,21 +15,21 @@ function checkDocsBuild {
 
 CONTAINER_1=(':atlasdb-cassandra-integration-tests:testSubset1')
 
-CONTAINER_2=(':atlasdb-ete-tests:check')
+CONTAINER_2=(':atlasdb-ete-tests:check' ':atlasdb-ete-tests:multiClientWithPostgresTimelockAndPostgresTest' ':atlasdb-ete-tests:multiClientWithTimelockAndCassandraTest')
 
 CONTAINER_3=(':timelock-server:integTest')
 
-CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:dbkvsTest')
+CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:singleClientWithEmbeddedAndPostgresTest')
 
-CONTAINER_5=(':lock-impl:check' ':atlasdb-dbkvs-tests:postgresTest' ':atlasdb-ete-test-utils:check' ':atlasdb-ete-tests:longTest')
+CONTAINER_5=(':lock-impl:check' ':atlasdb-dbkvs-tests:postgresTest' ':atlasdb-ete-test-utils:check' ':atlasdb-ete-tests:singleClientWithEmbeddedAndThreeNodeCassandraTest' ':atlasdb-ete-tests:singleClientWithEmbeddedAndCassandraTest')
 
 CONTAINER_6=(':timelock-server:suiteTest')
 
 CONTAINER_7=(':timelock-server:stressTest')
 
 CONTAINER_8=(':atlasdb-cassandra-integration-tests:testSubset2')
 
-CONTAINER_9=(':atlasdb-ete-tests:oracleTest')
+CONTAINER_9=(':atlasdb-ete-tests:singleClientWithEmbeddedAndOracleTest')
 
 CONTAINER_10=('atlasdb-dbkvs-tests:oracleTest')
 
@@ -92,7 +92,7 @@ export CASSANDRA_HEAP_NEWSIZE=64m
 case "$test_suite_index" in
     0) ./gradlew $BASE_GRADLE_ARGS check $CONTAINER_0_EXCLUDE_ARGS -x :atlasdb-jepsen-tests:check;;
     1) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_1[@]} ;;
-    2) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_2[@]} -x :atlasdb-ete-tests:longTest -x atlasdb-ete-tests:dbkvsTest -x :atlasdb-ete-tests:timeLockMigrationTest ;;
+    2) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_2[@]} -x :atlasdb-ete-tests:customEteTasks ;;
     3) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_3[@]} ;;
     4) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_4[@]} ;;
     5) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_5[@]} ;;ueu(3f15e183ad466e7d1534098a05e8a01ecbe03881}(sha(3f15e183ad466e7d1534098a05e8a01ecbe03881node_idEC_kwDOAjP5fdoAKDNmMTVlMTgzYWQ0NjZlN2QxNTM0MDk4YTA1ZThhMDFlY2JlMDM4ODEcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-17T12:50:22Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-17T12:50:22ZumessageFsplit container 3 tests to see separate runtime data + noisy neighbourtree}(j (dee91bddaba1854f642cd0f4e8e60f01264f7aeeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/dee91bddaba1854f642cd0f4e8e60f01264f7aeeuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3f15e183ad466e7d1534098a05e8a01ecbe03881
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRkzY4ACgkQPlMHVIT1
yhrebQf+IXCHzt34XoRS7Qmd0TfsalIMCGpAa7AA0XxCDgop4xy2HHgPtHRoq0qd
FsS3mj8LB2/D6LaJxmUiwE9diBV1hYDDoARlL5OM/Ue81CPJ9gv8X/uOREp8mi12
RudoTo5WIv6k3/JvOBxQMCZVNptiiV1fMnB7tzpbRNtsEslJJFB5nAhRyUGIWQmU
TQBYFH2Cp1uRlvMDXlAc/WUxvE3Y9su5P7fNLbaBquHObN42c76nEbIgOojyOP+v
uZWryAzG3hT0zE4TankpXlDD0Sm8pgUeOvpPZpovenWEXvB1tW3dsam4/pd6s6PN
6ySDRupmRs0rGppuIPa6SUlYD9Ycqg==
=x/3D
-----END PGP SIGNATURE-----payloadX%  tree dee91bddaba1854f642cd0f4e8e60f01264f7aee
parent 5ea314a4f5b84c5f2ce97c721dd1078a0132f20b
author Ahmed Alouane <aalouane@palantir.com> 1684327822 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684327822 +0100

split container 3 tests to see separate runtime data + noisy neighbour
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/3f15e183ad466e7d1534098a05e8a01ecbe03881html_urlShttps://github.com/palantir/atlasdb/commit/3f15e183ad466e7d1534098a05e8a01ecbe03881comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3f15e183ad466e7d1534098a05e8a01ecbe03881/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j (5ea314a4f5b84c5f2ce97c721dd1078a0132f20bj ^https://api.github.com/repos/palantir/atlasdb/commits/5ea314a4f5b84c5f2ce97c721dd1078a0132f20bj Shttps://github.com/palantir/atlasdb/commit/5ea314a4f5b84c5f2ce97c721dd1078a0132f20buastats}(totalK	additionsK	deletionsKufiles](}(j (16edd852f00857e273c128975117c207ba5577eafilename.circleci/config.ymlstatusmodifiedj Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/3f15e183ad466e7d1534098a05e8a01ecbe03881/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/3f15e183ad466e7d1534098a05e8a01ecbe03881/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=3f15e183ad466e7d1534098a05e8a01ecbe03881patchX0  @@ -155,7 +155,7 @@ workflows:
             alias: test-no-tl
             parameters:
               # intentionally excluding 12 (TimeLock migration ETE test) from this collection
-              suite: [3]
+              suite: [3, 4, 5]
           filters:
             tags:
               only: /.*/u}(j (792e6681ec79832715e2baefa911dbd6de3a5c7aj
 %scripts/circle-ci/run-circle-tests.shj modifiedj Kj Kj Kj {https://github.com/palantir/atlasdb/blob/3f15e183ad466e7d1534098a05e8a01ecbe03881/scripts%2Fcircle-ci%2Frun-circle-tests.shj zhttps://github.com/palantir/atlasdb/raw/3f15e183ad466e7d1534098a05e8a01ecbe03881/scripts%2Fcircle-ci%2Frun-circle-tests.shj https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=3f15e183ad466e7d1534098a05e8a01ecbe03881j X  @@ -17,11 +17,11 @@ CONTAINER_1=(':atlasdb-cassandra-integration-tests:testSubset1')
 
 CONTAINER_2=(':atlasdb-ete-tests:check')
 
-CONTAINER_3=(':atlasdb-dbkvs:check' ':atlasdb-cassandra:check' ':timelock-server:integTest')
+CONTAINER_3=(':atlasdb-dbkvs:check')
 
-CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:dbkvsTest')
+CONTAINER_4=(':atlasdb-cassandra:check')
 
-CONTAINER_5=(':lock-impl:check' ':atlasdb-dbkvs-tests:postgresTest' ':atlasdb-ete-test-utils:check' ':atlasdb-ete-tests:longTest')
+CONTAINER_5=(':timelock-server:integTest')
 
 CONTAINER_6=(':timelock-server:suiteTest')
 ueu(2e1782aa7c75b5c446455cf34956f858cd4e10d2}(sha(2e1782aa7c75b5c446455cf34956f858cd4e10d2node_idEC_kwDOAjP5fdoAKDJlMTc4MmFhN2M3NWI1YzQ0NjQ1NWNmMzQ5NTZmODU4Y2Q0ZTEwZDIcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-01T13:58:30Zu	committer}(j) Lucas Meirelesj+ meireles31@msn.comj- 2023-06-01T13:58:30ZumessageX*  Merge branch 'develop' into lmeireles/broken-lock-check-on-purpose

# Conflicts:
#	atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.java
#	atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.java
#	atlasdb-workload-server-distribution/src/test/resources/workload-server.yml
#	atlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.yml
#	atlasdb-workload-server-distribution/var/conf/workload-server.ymltree}(j! (c49cd523767d2c7939908adda09d295b9ff3800eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/c49cd523767d2c7939908adda09d295b9ff3800euj9 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2e1782aa7c75b5c446455cf34956f858cd4e10d2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmR4pAYACgkQJd22kJ7J
GiwVXwf/aZHEYZsIU/y+lwzpjNr4HVxJMfT9/XYfAObIg8sBap7nTSQfRpFmndPv
RwUH+NR++XNqMqayIBGpy4/P+AfsmE9hSsbunAqVNiKOIMUdNOluecYHBQxj/lmr
xppPTaAnk2aAs4toM0/HL89cW9mYPTdeawlzr+OLsBeLspH6sslBLDxTpF6VbGLd
jwxNrzNnPmD4RpOmbGPkT4J9DaHVdGPlcO9A2hc/6/P4MwEgUl4bYPy5ghFjJYGt
Br3bIIO8Eage8t77RjkmJumUiiaksvUBfqXgmmc+Yp6ZLa+uc+h9keM3yAE8CpuE
nufkChLWJJP7JNbolp8hCNRL3qNFAA==
=spF4
-----END PGP SIGNATURE-----payloadX5  tree c49cd523767d2c7939908adda09d295b9ff3800e
parent b3c3db5d06a9201e25ffece4092b5bdf15d86035
parent f1122a43e8aa35d314c30a514c34ed8c28c32f5a
author Lucas Meireles <meireles31@msn.com> 1685627910 +0100
committer Lucas Meireles <meireles31@msn.com> 1685627910 +0100

Merge branch 'develop' into lmeireles/broken-lock-check-on-purpose

# Conflicts:
#	atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.java
#	atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.java
#	atlasdb-workload-server-distribution/src/test/resources/workload-server.yml
#	atlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.yml
#	atlasdb-workload-server-distribution/var/conf/workload-server.yml
uuj9 ^https://api.github.com/repos/palantir/atlasdb/commits/2e1782aa7c75b5c446455cf34956f858cd4e10d2html_urlShttps://github.com/palantir/atlasdb/commit/2e1782aa7c75b5c446455cf34956f858cd4e10d2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2e1782aa7c75b5c446455cf34956f858cd4e10d2/commentsj' }(loginLucasIMEidJg j# MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j9 %https://api.github.com/users/LucasIMEjG https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj/ }(jL LucasIMEjN Jg j# MDQ6VXNlcjY3ODczMTE=jP 3https://avatars.githubusercontent.com/u/6787311?v=4jR h5j9 %https://api.github.com/users/LucasIMEjG https://github.com/LucasIMEjU /https://api.github.com/users/LucasIME/followersjW <https://api.github.com/users/LucasIME/following{/other_user}jY 5https://api.github.com/users/LucasIME/gists{/gist_id}j[ <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j] 3https://api.github.com/users/LucasIME/subscriptionsj_ *https://api.github.com/users/LucasIME/orgsja +https://api.github.com/users/LucasIME/reposjc 6https://api.github.com/users/LucasIME/events{/privacy}je 5https://api.github.com/users/LucasIME/received_eventsjg Userji uparents](}(j! (b3c3db5d06a9201e25ffece4092b5bdf15d86035j9 ^https://api.github.com/repos/palantir/atlasdb/commits/b3c3db5d06a9201e25ffece4092b5bdf15d86035jG Shttps://github.com/palantir/atlasdb/commit/b3c3db5d06a9201e25ffece4092b5bdf15d86035u}(j! (f1122a43e8aa35d314c30a514c34ed8c28c32f5aj9 ^https://api.github.com/repos/palantir/atlasdb/commits/f1122a43e8aa35d314c30a514c34ed8c28c32f5ajG Shttps://github.com/palantir/atlasdb/commit/f1122a43e8aa35d314c30a514c34ed8c28c32f5auestats}(totalM	additionsM	deletionsKufiles](}(j! (29fc330cc18e86d9e89097012f497c48a1e6c4b9filenamefatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/MismatchedValue.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.java?ref=2e1782aa7c75b5c446455cf34956f858cd4e10d2patchX&  @@ -24,10 +24,10 @@
 @Value.Immutable
 public interface MismatchedValue {
     @Value.Parameter
-    Optional<Integer> actual();
+    ValueAndMaybeTimestamp actual();
 
     @Value.Parameter
-    Optional<Integer> expected();
+    ValueAndMaybeTimestamp expected();
 
     @Value.Check
     default void actualAndExpectedAreNotEqualToEachOther() {
@@ -39,6 +39,10 @@ default void actualAndExpectedAreNotEqualToEachOther() {
     }
 
     static MismatchedValue of(Optional<Integer> actual, Optional<Integer> expected) {
+        return MismatchedValue.of(ValueAndMaybeTimestamp.of(actual), ValueAndMaybeTimestamp.of(expected));
+    }
+
+    static MismatchedValue of(ValueAndMaybeTimestamp actual, ValueAndMaybeTimestamp expected) {
         return ImmutableMismatchedValue.of(actual, expected);
     }
 }u}(j! (596cccc8bfe0813aaf92d90536ccec5e30931db3j katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/TransactionInvariant.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.javaj https://github.com/palantir/atlasdb/raw/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.java?ref=2e1782aa7c75b5c446455cf34956f858cd4e10d2j X  @@ -0,0 +1,22 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import java.util.List;
+
+public interface TransactionInvariant extends Invariant<List<InvalidWitnessedTransaction>> {}u}(j! (f4cdcb16e74fcf6db212f3bb382ada34382c7076j matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/ValueAndMaybeTimestamp.javaj addedj KEj K j KEj https://github.com/palantir/atlasdb/blob/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.javaj https://github.com/palantir/atlasdb/raw/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.java?ref=2e1782aa7c75b5c446455cf34956f858cd4e10d2j X	  @@ -0,0 +1,69 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import java.util.Optional;
+import org.immutables.value.Value;
+
+/**
+ * Occasionally, storing just a value might not be enough context needed when validating an invariant.
+ *
+ * For example, to detect that the ABA problem has occurred (ABA problem (https://en.wikipedia.org/wiki/ABA_problem),
+ * values alone would not be sufficient. Storing the timestamp associated with the value, such as the start timestamp,
+ * would be able to catch these sort of cases.
+ */
+@Value.Immutable
+public interface ValueAndMaybeTimestamp {
+    ValueAndMaybeTimestamp EMPTY = of(Optional.empty(), Optional.empty());
+
+    /**
+     * Value, which when empty either indicates it does not exist, or has been deleted.
+     */
+    @Value.Parameter
+    Optional<Integer> value();
+
+    /**
+     * Optional timestamp associated with the value. When empty it means either it does not exist, or it is not needed
+     * for comparison.
+     */
+    @Value.Parameter
+    Optional<Long> timestamp();
+
+    static ValueAndMaybeTimestamp empty() {
+        return EMPTY;
+    }
+
+    static ValueAndMaybeTimestamp of(Integer value) {
+        return of(Optional.of(value));
+    }
+
+    static ValueAndMaybeTimestamp of(Optional<Integer> value) {
+        return of(value, Optional.empty());
+    }
+
+    static ValueAndMaybeTimestamp of(Optional<Integer> value, Long timestamp) {
+        return of(value, Optional.of(timestamp));
+    }
+
+    static ValueAndMaybeTimestamp of(Integer value, Long timestamp) {
+        return of(Optional.of(value), Optional.of(timestamp));
+    }
+
+    static ValueAndMaybeTimestamp of(Optional<Integer> value, Optional<Long> timestamp) {
+        return ImmutableValueAndMaybeTimestamp.of(value, timestamp);
+    }
+}u}(j! (636e11dbc52b78329590a8ee90644f9728e5fb69j jatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/invariant/MismatchedValueTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javaj https://github.com/palantir/atlasdb/raw/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.java?ref=2e1782aa7c75b5c446455cf34956f858cd4e10d2j Xz  @@ -21,13 +21,12 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 
 import com.palantir.logsafe.SafeArg;
-import java.util.Optional;
 import org.junit.Test;
 
 public final class MismatchedValueTest {
 
-    private static final Optional<Integer> VALUE_ONE = Optional.of(15);
-    private static final Optional<Integer> VALUE_TWO = Optional.of(25);
+    private static final ValueAndMaybeTimestamp VALUE_ONE = ValueAndMaybeTimestamp.of(25);
+    private static final ValueAndMaybeTimestamp VALUE_TWO = ValueAndMaybeTimestamp.of(15);
 
     @Test
     public void canConstructMismatchedValueFromTwoDifferentValues() {u}(j! (0219e8dc8557e837bebd125a10f8b5ba8a027c6cj latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://github.com/palantir/atlasdb/raw/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=2e1782aa7c75b5c446455cf34956f858cd4e10d2j X|  @@ -35,6 +35,8 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadsNoTouchWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
@@ -120,10 +122,12 @@ private void scheduleBackgroundJobs(Environment environment) {
     }
 
     private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {
+        // This is a single threaded executor; this is intentional, so that we only run one workflow at a time.
         ExecutorService antithesisWorkflowRunnerExecutorService = environment
                 .lifecycle()
                 .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
                 .build();
+
         MetricsManager metricsManager = MetricsManagers.of(environment.metrics(), taggedMetricRegistry);
         AtlasDbTransactionStoreFactory transactionStoreFactory = AtlasDbTransactionStoreFactory.createFromConfig(
                 configuration.install().atlas(),
@@ -138,6 +142,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().transientRowsConfig();
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
+        RandomWorkflowConfiguration randomWorkflowConfig =
+                configuration.install().randomConfig();
         SingleBusyCellReadsNoTouchWorkflowConfiguration singleBusyCellReadNoTouchWorkflowConfiguration =
                 configuration.install().singleBusyCellReadsNoTouchConfig();
 
@@ -153,6 +159,7 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
                         createSingleBusyCellWorkflowValidator(
                                 transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
+                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()),
                         createSingleBusyCellReadNoTouchWorkflowValidator(
                                 transactionStoreFactory,
                                 singleBusyCellReadNoTouchWorkflowConfiguration,
@@ -216,10 +223,12 @@ private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
             LifecycleEnvironment lifecycle) {
         ExecutorService readExecutor = lifecycle
                 .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-read")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
                 .maxThreads(workflowConfig.maxThreadCount() / 2)
                 .build();
         ExecutorService writeExecutor = lifecycle
                 .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-write")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
                 .maxThreads(workflowConfig.maxThreadCount() / 2)
                 .build();
         InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
@@ -302,6 +311,25 @@ private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator
                 .build();
     }
 
+    private WorkflowAndInvariants<Workflow> createRandomWorkflow(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            RandomWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RandomWorkflows.class);
+        TransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(RandomWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        RandomWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
     @VisibleForTesting
     CountDownLatch workflowsRanLatch() {
         return workflowsRanLatch;
@@ -316,6 +344,7 @@ private static <T> ExecutorService createExecutorService(
             WorkflowConfiguration workflowConfig, LifecycleEnvironment lifecycle, Class<T> workflowFactoryClass) {
         return lifecycle
                 .executorService(workflowFactoryClass.getSimpleName())
+                .minThreads(workflowConfig.maxThreadCount())
                 .maxThreads(workflowConfig.maxThreadCount())
                 .build();
     }u}(j! (f4abcf7278db437468c6a0d2df879df2d1916030j atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://github.com/palantir/atlasdb/raw/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=2e1782aa7c75b5c446455cf34956f858cd4e10d2j X[  @@ -19,6 +19,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadsNoTouchWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
@@ -40,6 +41,8 @@ public interface WorkloadServerInstallConfiguration {
 
     SingleBusyCellWorkflowConfiguration singleBusyCellConfig();
 
+    RandomWorkflowConfiguration randomConfig();
+
     SingleBusyCellReadsNoTouchWorkflowConfiguration singleBusyCellReadsNoTouchConfig();
 
     boolean exitAfterRunning();u}(j! (4dee72e7de8222163fe1e4b3c3d4ee8f57c11479j Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=2e1782aa7c75b5c446455cf34956f858cd4e10d2j Xm  @@ -29,6 +29,12 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  randomConfig:
+    tableConfiguration:
+      tableName: random-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
   singleBusyCellReadsNoTouchConfig:
     tableConfiguration:
       tableName: single-busy-cell-no-touch-testu}(j! (52031428173c1f1bb52b95dee40a830f4fa220e4j Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://github.com/palantir/atlasdb/raw/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=2e1782aa7c75b5c446455cf34956f858cd4e10d2j Xm  @@ -66,6 +66,12 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  randomConfig:
+    tableConfiguration:
+      tableName: random_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
   singleBusyCellReadsNoTouchConfig:
     tableConfiguration:
       tableName: single_busy_cell_no_touch_testu}(j! (8a45984b7db86ebf2531ed64a2c2ae426548314dj Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=2e1782aa7c75b5c446455cf34956f858cd4e10d2j Xm  @@ -30,6 +30,12 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  randomConfig:
+    tableConfiguration:
+      tableName: random-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
   singleBusyCellReadsNoTouchConfig:
     tableConfiguration:
       tableName: single-busy-cell-no-touch-testu}(j! (25eeb2753827a113d65e7a92368037434d429216j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://github.com/palantir/atlasdb/raw/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=2e1782aa7c75b5c446455cf34956f858cd4e10d2j X  @@ -30,7 +30,7 @@
 import java.util.function.Consumer;
 import one.util.streamex.StreamEx;
 
-public enum SerializableInvariant implements Invariant<List<InvalidWitnessedTransaction>> {
+public enum SerializableInvariant implements TransactionInvariant {
     INSTANCE;
 
     @Overrideu}(j! (875d7b415beab11ac8c7b5cb94591f3b3a874168j datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariant.javaj addedj KUj K j KUj https://github.com/palantir/atlasdb/blob/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javaj https://github.com/palantir/atlasdb/raw/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.java?ref=2e1782aa7c75b5c446455cf34956f858cd4e10d2j X  @@ -0,0 +1,85 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.function.Consumer;
+
+/**
+ * This invariant checks that the snapshot isolation property is maintained.
+ * <p>
+ * The way this check works, is by replaying all transactions sorted by their effective timestamp. Transactions are
+ * replayed to an immutable map, allowing us to track each table's state at any given time. These table views are
+ * persisted to a {@link java.util.NavigableMap} by the commit timestamp of each transaction, with the value being
+ * the version of the immutable map at that point-in-time.
+ * <p>
+ * Reads are validated by comparing values from the view of a table at the start timestamp (read view),
+ * and comparing to what we've witnessed. Local writes are replayed onto the read view to ensure we
+ * don't flag false-positives, but is not witnessed by other transactions.
+ * <p>
+ * Writes are validated by first checking that the value we're writing to hasn't changed between the read view and the
+ * latest view. This would indicate a write-write conflict miss, as we should've conflicted with this transaction.
+ * Otherwise, once the transaction is replayed on top of the latest view, we persist this new view at the
+ * commit timestamp.
+ */
+public enum SnapshotInvariant implements TransactionInvariant {
+    INSTANCE;
+
+    @Override
+    public void accept(
+            WorkflowHistory workflowHistory, Consumer<List<InvalidWitnessedTransaction>> invalidWitnessedTransactions) {
+        ImmutableList.Builder<InvalidWitnessedTransaction> invalidTransactionsBuilder = new ImmutableList.Builder<>();
+        VersionedTableView<TableAndWorkloadCell, ValueAndMaybeTimestamp> tableView = new VersionedTableView<>();
+        for (WitnessedTransaction witnessedTransaction : workflowHistory.history()) {
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestTableView =
+                    tableView.getLatestTableView();
+
+            SnapshotInvariantVisitor visitor = new SnapshotInvariantVisitor(
+                    witnessedTransaction.startTimestamp(),
+                    latestTableView,
+                    tableView.getView(witnessedTransaction.startTimestamp()));
+
+            ImmutableList.Builder<InvalidWitnessedTransactionAction> invalidTransactionActionsBuilder =
+                    new ImmutableList.Builder<>();
+            for (WitnessedTransactionAction action : witnessedTransaction.actions()) {
+                action.accept(visitor).ifPresent(invalidTransactionActionsBuilder::add);
+            }
+
+            List<InvalidWitnessedTransactionAction> invalidTransactionActions =
+                    invalidTransactionActionsBuilder.build();
+
+            witnessedTransaction
+                    .commitTimestamp()
+                    .ifPresent(commitTimestamp -> tableView.put(commitTimestamp, latestTableView.getSnapshot()));
+
+            if (!invalidTransactionActions.isEmpty()) {
+                invalidTransactionsBuilder.add(
+                        InvalidWitnessedTransaction.of(witnessedTransaction, invalidTransactionActions));
+            }
+        }
+        invalidWitnessedTransactions.accept(invalidTransactionsBuilder.build());
+    }
+}u}(j! (9105d7ebd3f6af94cfaa196d41e9f2263cfb313ej katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj addedj K{j K j K{j https://github.com/palantir/atlasdb/blob/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj https://github.com/palantir/atlasdb/raw/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=2e1782aa7c75b5c446455cf34956f858cd4e10d2j X:  @@ -0,0 +1,123 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.collection.Map;
+import java.util.Optional;
+
+/**
+ * Replays transactions and validates for conflicts on the latest and read view.
+ *
+ * The latest view will be a view of the database at the commit timestamp, while the read view will be the view of
+ * the database at the start timestamp.
+ *
+ * Objects created from this class should only be used within a scope of a single transaction.
+ */
+final class SnapshotInvariantVisitor
+        implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
+
+    private final Long startTimestamp;
+    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestView;
+    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> readView;
+
+    SnapshotInvariantVisitor(
+            Long startTimestamp,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestView,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> readView) {
+        this.startTimestamp = startTimestamp;
+        this.latestView = latestView;
+        this.readView = readView;
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+        Optional<Integer> expected = fetchValueFromView(
+                        readTransactionAction.table(), readTransactionAction.cell(), readView)
+                .value();
+        if (!expected.equals(readTransactionAction.value())) {
+            return Optional.of(InvalidWitnessedTransactionAction.of(
+                    readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expected)));
+        }
+        return Optional.empty();
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
+        Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
+                        writeTransactionAction.table(), writeTransactionAction.cell())
+                .map(mismatchedValue -> InvalidWitnessedTransactionAction.of(writeTransactionAction, mismatchedValue));
+
+        applyWrites(
+                writeTransactionAction.table(),
+                writeTransactionAction.cell(),
+                Optional.of(writeTransactionAction.value()));
+        return invalidAction;
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+        Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
+                        deleteTransactionAction.table(), deleteTransactionAction.cell())
+                .map(mismatchedValue -> InvalidWitnessedTransactionAction.of(deleteTransactionAction, mismatchedValue));
+
+        applyWrites(deleteTransactionAction.table(), deleteTransactionAction.cell(), Optional.empty());
+        return invalidAction;
+    }
+
+    /**
+     * Applies writes to both our read and latest table view.
+     * Latest table view needs to be updated to apply our writes from our transaction,
+     * while the read view is updated to reflect local writes.
+     */
+    private void applyWrites(String tableName, WorkloadCell cell, Optional<Integer> value) {
+        readView.with(table ->
+                table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndMaybeTimestamp.of(value, startTimestamp)));
+        latestView.with(table ->
+                table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndMaybeTimestamp.of(value, startTimestamp)));
+    }
+
+    /**
+     * Checks that the value we are writing has not changed from our read view and the latest view. If it has,
+     * that means we have missed a write-write conflict, as it should have conflicted with this transaction.
+     */
+    private Optional<MismatchedValue> checkForWriteWriteConflicts(String table, WorkloadCell cell) {
+        ValueAndMaybeTimestamp previous = fetchValueFromView(table, cell, readView);
+        ValueAndMaybeTimestamp latest = fetchValueFromView(table, cell, latestView);
+
+        if (!previous.equals(latest)) {
+            return Optional.of(MismatchedValue.of(latest, previous));
+        }
+
+        return Optional.empty();
+    }
+
+    private static ValueAndMaybeTimestamp fetchValueFromView(
+            String tableName,
+            WorkloadCell workloadCell,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> view) {
+        TableAndWorkloadCell tableAndWorkloadCell = TableAndWorkloadCell.of(tableName, workloadCell);
+        return view.getSnapshot().get(tableAndWorkloadCell).toJavaOptional().orElseGet(ValueAndMaybeTimestamp::empty);
+    }
+}u}(j! (0729ad724e2b47dc1415a32180124d780320f58ej eatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/VersionedTableView.javaj addedj K6j K j K6j https://github.com/palantir/atlasdb/blob/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.javaj https://github.com/palantir/atlasdb/raw/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.java?ref=2e1782aa7c75b5c446455cf34956f858cd4e10d2j XG	  @@ -0,0 +1,54 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.Optional;
+import java.util.TreeMap;
+import javax.annotation.concurrent.NotThreadSafe;
+
+@NotThreadSafe
+public final class VersionedTableView<K, V> {
+    private final java.util.NavigableMap<Long, Map<K, V>> tableViews = new TreeMap<>();
+
+    public void put(Long commitTimestamp, Map<K, V> tableView) {
+        tableViews.put(commitTimestamp, tableView);
+    }
+
+    public StructureHolder<Map<K, V>> getView(Long startTimestamp) {
+        Preconditions.checkArgument(
+                !tableViews.containsKey(startTimestamp),
+                "It is expected when obtaining a view "
+                        + "from the start timestamp, that it should not already exist or be present within the map. "
+                        + "As all keys in this map should be commit timestamps, and all timestamps are immutable.",
+                SafeArg.of("startTimestamp", startTimestamp),
+                SafeArg.of("tableViews", tableViews));
+        return StructureHolder.create(() -> Optional.ofNullable(tableViews.lowerEntry(startTimestamp))
+                .map(java.util.Map.Entry::getValue)
+                .orElseGet(HashMap::empty));
+    }
+
+    public StructureHolder<Map<K, V>> getLatestTableView() {
+        return StructureHolder.create(() -> Optional.ofNullable(tableViews.lastEntry())
+                .map(java.util.Map.Entry::getValue)
+                .orElseGet(HashMap::empty));
+    }
+}u}(j! (e0b5354ebacbf6077ea736f29765fb8d71159fcdj matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowConfiguration.javaj addedj K:j K j K:j https://github.com/palantir/atlasdb/blob/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.java?ref=2e1782aa7c75b5c446455cf34956f858cd4e10d2j X  @@ -0,0 +1,58 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableRandomWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableRandomWorkflowConfiguration.class)
+@JsonTypeName(RandomWorkflowConfiguration.TYPE)
+public interface RandomWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "random";
+
+    TableConfiguration tableConfiguration();
+
+    @Value.Default
+    default Integer maxWrites() {
+        return 5;
+    }
+
+    @Value.Default
+    default Integer maxReads() {
+        return 5;
+    }
+
+    @Value.Default
+    default Integer maxDeletes() {
+        return 2;
+    }
+
+    @Value.Default
+    default Integer maxCells() {
+        return 10;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(j! (a9726d8998a6fbf1c745d6616a2e4356d3889a34j aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javaj addedj Kvj K j Kvj https://github.com/palantir/atlasdb/blob/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaj https://github.com/palantir/atlasdb/raw/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=2e1782aa7c75b5c446455cf34956f858cd4e10d2j Xw  @@ -0,0 +1,118 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.security.SecureRandom;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+import org.jetbrains.annotations.VisibleForTesting;
+
+public final class RandomWorkflows {
+    private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+    private static final Integer COLUMN = 0;
+
+    private RandomWorkflows() {
+        // static factory
+    }
+
+    public static Workflow create(
+            TransactionStore store,
+            RandomWorkflowConfiguration randomWorkflowConfig,
+            ListeningExecutorService executionExecutor) {
+        return create(store, randomWorkflowConfig, executionExecutor, RANDOM);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            TransactionStore store,
+            RandomWorkflowConfiguration randomWorkflowConfig,
+            ListeningExecutorService executionExecutor,
+            SecureRandom random) {
+        RandomWorkflowTask task = new RandomWorkflowTask(randomWorkflowConfig, random);
+        return DefaultWorkflow.create(
+                store, (txnStore, _index) -> task.run(txnStore), randomWorkflowConfig, executionExecutor);
+    }
+
+    private static final class RandomWorkflowTask {
+
+        private final RandomWorkflowConfiguration workflowConfiguration;
+        private final SecureRandom random;
+
+        public RandomWorkflowTask(RandomWorkflowConfiguration workflowConfiguration, SecureRandom random) {
+            this.workflowConfiguration = workflowConfiguration;
+            this.random = random;
+        }
+
+        public Optional<WitnessedTransaction> run(TransactionStore store) {
+            workflowConfiguration.transactionRateLimiter().acquire();
+            List<TransactionAction> actions = Stream.of(
+                            generateReadActions(), generateWriteActions(), generateDeleteActions())
+                    .flatMap(Collection::stream)
+                    .collect(Collectors.toList());
+            Collections.shuffle(actions, random);
+            return store.readWrite(actions);
+        }
+
+        private List<ReadTransactionAction> generateReadActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxReads() + 1))
+                    .boxed()
+                    .map(_index -> ImmutableReadTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(), randomCell()))
+                    .collect(Collectors.toList());
+        }
+
+        private List<WriteTransactionAction> generateWriteActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxWrites() + 1))
+                    .boxed()
+                    .map(_index -> ImmutableWriteTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(),
+                            randomCell(),
+                            random.nextInt(100_000)))
+                    .collect(Collectors.toList());
+        }
+
+        private List<DeleteTransactionAction> generateDeleteActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxDeletes() + 1))
+                    .boxed()
+                    .map(_index -> ImmutableDeleteTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(), randomCell()))
+                    .collect(Collectors.toList());
+        }
+
+        private WorkloadCell randomCell() {
+            return ImmutableWorkloadCell.of(random.nextInt(workflowConfiguration.maxCells()), COLUMN);
+        }
+    }
+}u}(j! (165c14bed2da1c40158e60686d3e57607f512258j hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj https://github.com/palantir/atlasdb/raw/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=2e1782aa7c75b5c446455cf34956f858cd4e10d2j X?  @@ -0,0 +1,162 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class SnapshotInvariantTest {
+    @Mock
+    private ReadableTransactionStore readableTransactionStore;
+
+    @Test
+    public void catchesWriteWriteConflict() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidTransaction.transaction().startTimestamp()).isEqualTo(5L);
+        assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
+
+        InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
+        assertThat(invalidAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+        assertThat(invalidAction.mismatchedValue())
+                .isEqualTo(MismatchedValue.of(
+                        ValueAndMaybeTimestamp.of(WorkloadTestHelpers.VALUE_ONE, 1L), ValueAndMaybeTimestamp.empty()));
+    }
+
+    @Test
+    public void catchesAbaWriteWriteConflictForDeletes() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .delete(5, 10)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidTransaction.transaction().startTimestamp()).isEqualTo(5L);
+        assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
+
+        InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
+        assertThat(invalidAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+        assertThat(invalidAction.mismatchedValue())
+                .isEqualTo(MismatchedValue.of(
+                        ValueAndMaybeTimestamp.of(Optional.empty(), 1L), ValueAndMaybeTimestamp.empty()));
+    }
+
+    @Test
+    public void doesNotCatchWriteSkew() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .read(5, 10)
+                .write(6, 10, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void doesNotCatchReadOnlyTransactionAnomaly() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(11L)
+                .read(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .startTransaction(12L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(13L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void properlyReplaysReadsAndWrites() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .read(5, 10)
+                .endTransaction(15L)
+                .startTransaction(16L)
+                .read(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(17L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+}u	      }(j! (536813aeb3973b4b9f9bd25d91bf425cf6efeb37j iatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/VersionedTableViewTest.javaj addedj KHj K j KHj https://github.com/palantir/atlasdb/blob/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.javaj https://github.com/palantir/atlasdb/raw/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.java?ref=2e1782aa7c75b5c446455cf34956f858cd4e10d2j XU  @@ -0,0 +1,72 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.TreeMap;
+import org.junit.Test;
+
+public final class VersionedTableViewTest {
+    @Test
+    public void putStoresTable() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        tableView.put(1L, HashMap.of(10L, 20L));
+        assertThat(tableView.getLatestTableView().getSnapshot().toJavaMap())
+                .containsExactlyEntriesOf(java.util.Map.of(10L, 20L));
+    }
+
+    @Test
+    public void getLatestTableViewFetchesLargestVersion() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedLastView = HashMap.of(30L, 40L);
+        tableView.put(1L, HashMap.of(10L, 20L));
+        tableView.put(2L, HashMap.of(20L, 30L));
+        tableView.put(3L, HashMap.of(30L, 40L));
+        assertThat(tableView.getLatestTableView().getSnapshot()).isEqualTo(expectedLastView);
+    }
+
+    @Test
+    public void getViewFetchesViewBeforeTimestamp() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedView = HashMap.of(10L, 20L);
+        tableView.put(1L, expectedView);
+        tableView.put(3L, HashMap.of(20L, 30L));
+        assertThat(tableView.getView(2L).getSnapshot()).isEqualTo(expectedView);
+    }
+
+    @Test
+    public void getViewThrowsWhenFetchingViewForTimestampThatExists() {
+        Long timestamp = 1L;
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedView = HashMap.of(10L, 20L);
+        tableView.put(timestamp, expectedView);
+
+        TreeMap<Long, Map<Long, Long>> tableViews = new TreeMap<>();
+        tableViews.put(timestamp, tableView.getLatestTableView().getSnapshot());
+
+        assertThatLoggableExceptionThrownBy(() -> tableView.getView(1L).getSnapshot())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("It is expected when obtaining a view")
+                .hasExactlyArgs(SafeArg.of("startTimestamp", 1L), SafeArg.of("tableViews", tableViews));
+    }
+}u}(j! (cad53b71091234e55f82b97b4b6e475eebb5559bj qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://github.com/palantir/atlasdb/raw/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=2e1782aa7c75b5c446455cf34956f858cd4e10d2j X  @@ -40,6 +40,13 @@ public WitnessedTransactionsBuilder(String table) {
         this.table = table;
     }
 
+    public WitnessedTransactionBuilder startTransaction(long startTimestamp) {
+        if (startTimestamp > timestampCounter.get()) {
+            timestampCounter.set(startTimestamp);
+        }
+        return new WitnessedTransactionBuilder(startTimestamp);
+    }
+
     public WitnessedTransactionBuilder startTransaction() {
         return new WitnessedTransactionBuilder(timestampCounter.incrementAndGet());
     }u}(j! (bdf9a77b3f524e363e5144842e79d33e09bcbe78j hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj https://github.com/palantir/atlasdb/raw/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=2e1782aa7c75b5c446455cf34956f858cd4e10d2j X  @@ -19,6 +19,7 @@
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.invariant.ValueAndMaybeTimestamp;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
@@ -58,5 +59,9 @@ public final class WorkloadTestHelpers {
             TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_ONE);
     public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
             TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO);
+
+    public static final ValueAndMaybeTimestamp VALUE_ONE_AND_TIMESTAMP = ValueAndMaybeTimestamp.of(VALUE_ONE, 1L);
+
+    public static final ValueAndMaybeTimestamp VALUE_TWO_AND_TIMESTAMP = ValueAndMaybeTimestamp.of(VALUE_TWO, 1L);
     public static final String WORKFLOW = "example-workflow";
 }u}(j! (aab6c8e21d5584a8291807921d8d032d4786559dj eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowsTest.javaj addedj Kdj K j Kdj https://github.com/palantir/atlasdb/blob/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/2e1782aa7c75b5c446455cf34956f858cd4e10d2/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.java?ref=2e1782aa7c75b5c446455cf34956f858cd4e10d2j Xh  @@ -0,0 +1,100 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.security.SecureRandom;
+import java.util.Collection;
+import java.util.List;
+import java.util.stream.Collectors;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class RandomWorkflowsTest {
+    private static final String TABLE_NAME = "random.random";
+    private static final RandomWorkflowConfiguration CONFIGURATION = ImmutableRandomWorkflowConfiguration.builder()
+            .tableConfiguration(ImmutableTableConfiguration.builder()
+                    .tableName(TABLE_NAME)
+                    .isolationLevel(IsolationLevel.SERIALIZABLE)
+                    .build())
+            .iterationCount(1)
+            .build();
+
+    private final TransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+
+    @Mock
+    private SecureRandom random;
+
+    private Workflow workflow;
+
+    @Before
+    public void before() {
+        this.workflow = RandomWorkflows.create(
+                memoryStore,
+                CONFIGURATION,
+                MoreExecutors.listeningDecorator(PTExecutors.newSingleThreadExecutor()),
+                random);
+    }
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore())
+                .as("should return a read only transaction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void workflowRunsReadWritesDeletes() {
+        when(random.nextInt(anyInt())).thenReturn(1);
+        WorkflowHistory history = workflow.run();
+        List<WitnessedTransactionAction> actions = history.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(actions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+}ueu(0a597a9273b87b5e5525737c46156d0bfcdc1eb9}(sha(0a597a9273b87b5e5525737c46156d0bfcdc1eb9node_idEC_kwDOAjP5fdoAKDBhNTk3YTkyNzNiODdiNWU1NTI1NzM3YzQ2MTU2ZDBiZmNkYzFlYjkcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-07-25T22:00:27Zu	committer}(j< Tom Petraccaj> tpetracca@palantir.comj@ 2023-08-04T13:28:02Zumessagefix up commenttree}(j4 (5649e83ce0f974fe498f2e29afa21ee1b1ca65ddurl`https://api.github.com/repos/palantir/atlasdb/git/trees/5649e83ce0f974fe498f2e29afa21ee1b1ca65ddujL bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0a597a9273b87b5e5525737c46156d0bfcdc1eb9
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujL ^https://api.github.com/repos/palantir/atlasdb/commits/0a597a9273b87b5e5525737c46156d0bfcdc1eb9html_urlShttps://github.com/palantir/atlasdb/commit/0a597a9273b87b5e5525737c46156d0bfcdc1eb9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0a597a9273b87b5e5525737c46156d0bfcdc1eb9/commentsj: }(login	tpetraccaidJ& j6 MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5jL &https://api.github.com/users/tpetraccajX https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminujB }(j] 	tpetraccaj_ J& j6 MDQ6VXNlcjI1NTQzMjg=ja 3https://avatars.githubusercontent.com/u/2554328?v=4jc h5jL &https://api.github.com/users/tpetraccajX https://github.com/tpetraccajf 0https://api.github.com/users/tpetracca/followersjh =https://api.github.com/users/tpetracca/following{/other_user}jj 6https://api.github.com/users/tpetracca/gists{/gist_id}jl =https://api.github.com/users/tpetracca/starred{/owner}{/repo}jn 4https://api.github.com/users/tpetracca/subscriptionsjp +https://api.github.com/users/tpetracca/orgsjr ,https://api.github.com/users/tpetracca/reposjt 7https://api.github.com/users/tpetracca/events{/privacy}jv 6https://api.github.com/users/tpetracca/received_eventsjx Userjz uparents]}(j4 (489855b1e5f21123e45a601e5144411c4d32f4cejL ^https://api.github.com/repos/palantir/atlasdb/commits/489855b1e5f21123e45a601e5144411c4d32f4cejX Shttps://github.com/palantir/atlasdb/commit/489855b1e5f21123e45a601e5144411c4d32f4ceuastats}(totalK	additionsK	deletionsKufiles]}(j4 (49f6265dff4feba112c4f0f6feea9f6f5f0bd466filenameatlasdb-ete-tests/build.gradlestatusmodifiedj Kj KchangesKblob_urlrhttps://github.com/palantir/atlasdb/blob/0a597a9273b87b5e5525737c46156d0bfcdc1eb9/atlasdb-ete-tests%2Fbuild.gradleraw_urlqhttps://github.com/palantir/atlasdb/raw/0a597a9273b87b5e5525737c46156d0bfcdc1eb9/atlasdb-ete-tests%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fbuild.gradle?ref=0a597a9273b87b5e5525737c46156d0bfcdc1eb9patchX  @@ -135,8 +135,9 @@ task singleClientWithEmbeddedAndOracleTest(type: Test) {
 }
 
 test {
-    // this list explicitly doesn't include the timelockMigration or singleClientWithEmbeddedAndOracleTest tasks
-    // not sure why that is
+    // this list explicitly doesn't include timelockMigration because it's too expensive to run on every PR
+    // this list explicitly doesn't include singleClientWithEmbeddedAndOracleTest; not sure why
+    // :timelock-server-distribution:dockerTag needed by any ETE test that spins up a timelock-server
     dependsOn prepareForEteTests, ':timelock-server-distribution:dockerTag', singleClientWithEmbeddedAndThreeNodeCassandraTest, singleClientWithEmbeddedAndPostgresTest
 
     filter {uau(7a14f66d441f3149f9db8e33c8cfdeae4c7a8f2b}(sha(7a14f66d441f3149f9db8e33c8cfdeae4c7a8f2bnode_idEC_kwDOAjP5fdoAKDdhMTRmNjZkNDQxZjMxNDlmOWRiOGUzM2M4Y2ZkZWFlNGM3YThmMmIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-12T12:57:06Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-05-12T12:57:06Zumessage0use new DefaultNativeSamplingSecureRandomFactorytree}(j (0d89bab30f9d5e367e4f9724704c17f437cf595burl`https://api.github.com/repos/palantir/atlasdb/git/trees/0d89bab30f9d5e367e4f9724704c17f437cf595buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7a14f66d441f3149f9db8e33c8cfdeae4c7a8f2b
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmReN6IACgkQTLdFKain
zjz4FQf/UQdb8I/3/cXy/RkMNgGQjoAPhkCVBuodtl47J28ZiO5UTbblWGZBKftM
awXs0bX0dzHuceRRwBa25zSIyW+gdMbdRU+3wi74UheFobuKj1IQl2d+Pvm3knCV
51JDIp1BySCPvEe1RG5+CsFNLCZu6f5IiDSl+9I0zcBF+KC/6uOYQ+dIfc6DsSer
dt6It1F9ZlRgE4cqkqo9CI7pBgu+SJVqVHYGcWfNetnV2nld3Pf4XQPMqr6F5ywN
8/0rKNcXfz2tHXbnR7xZl4eXOd+lFvk3aA/XJ0egNNemhXp3YVC71G8L2PB6WQop
iwOqFeXVof4MxaQc/4/BfDIGq7R4cA==
=Y3jA
-----END PGP SIGNATURE-----payloadX  tree 0d89bab30f9d5e367e4f9724704c17f437cf595b
parent c32b72d753a6a1e2181f49bab28bd911763189d4
author Jeremy Kong <jkong@palantir.com> 1683896226 +0100
committer Jeremy Kong <jkong@palantir.com> 1683896226 +0100

use new DefaultNativeSamplingSecureRandomFactory
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/7a14f66d441f3149f9db8e33c8cfdeae4c7a8f2bhtml_urlShttps://github.com/palantir/atlasdb/commit/7a14f66d441f3149f9db8e33c8cfdeae4c7a8f2bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7a14f66d441f3149f9db8e33c8cfdeae4c7a8f2b/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j (c32b72d753a6a1e2181f49bab28bd911763189d4j ^https://api.github.com/repos/palantir/atlasdb/commits/c32b72d753a6a1e2181f49bab28bd911763189d4j Shttps://github.com/palantir/atlasdb/commit/c32b72d753a6a1e2181f49bab28bd911763189d4uastats}(totalK
	additionsK	deletionsKufiles](}(j (4ca0edd6554c8b49ac329f94f8407ea5328fca20filenameZatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactory.javastatusmodifiedj K j KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7a14f66d441f3149f9db8e33c8cfdeae4c7a8f2b/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7a14f66d441f3149f9db8e33c8cfdeae4c7a8f2b/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.java?ref=7a14f66d441f3149f9db8e33c8cfdeae4c7a8f2bpatchXm  @@ -19,8 +19,6 @@
 import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.buggify.api.Buggify;
 import com.palantir.atlasdb.buggify.api.BuggifyFactory;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.security.SecureRandom;
 import java.util.function.DoubleSupplier;
 u}(j (883a7c704fe22f01de7f67dac1f4711a2c75ea74j $atlasdb-workload-server/build.gradlej modifiedj Kj K j Kj xhttps://github.com/palantir/atlasdb/blob/7a14f66d441f3149f9db8e33c8cfdeae4c7a8f2b/atlasdb-workload-server%2Fbuild.gradlej whttps://github.com/palantir/atlasdb/raw/7a14f66d441f3149f9db8e33c8cfdeae4c7a8f2b/atlasdb-workload-server%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=7a14f66d441f3149f9db8e33c8cfdeae4c7a8f2bj XS  @@ -8,6 +8,7 @@ license {
 dependencies {
     implementation project(':atlasdb-workload-server-api')
     implementation project(':atlasdb-api')
+    implementation project(':atlasdb-buggify')
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-config')
     implementation project(':atlasdb-impl-shared')u}(j (17025a595fb12bc4f0fc9cfc02f250dd06064c6aj `atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingGraph.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/7a14f66d441f3149f9db8e33c8cfdeae4c7a8f2b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaj https://github.com/palantir/atlasdb/raw/7a14f66d441f3149f9db8e33c8cfdeae4c7a8f2b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.java?ref=7a14f66d441f3149f9db8e33c8cfdeae4c7a8f2bj XJ  @@ -17,8 +17,10 @@
 package com.palantir.atlasdb.workload.workflow.ring;
 
 import com.google.common.collect.Iterators;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
+import java.security.SecureRandom;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.HashSet;
@@ -33,6 +35,7 @@
 import one.util.streamex.EntryStream;
 
 public final class RingGraph {
+    private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
     private final Map<Integer, Integer> ring;
 
     private RingGraph(Map<Integer, Integer> ring) {
@@ -66,7 +69,7 @@ public static RingGraph create(int size) {
      * (1) There are no missing entries
      * (2) There are no sub-cycles
      * (3) The ring is connected
-     *
+     * <p>
      * This is simply done by iterating over the length of the ring, and validating that we visited each node.
      * To ensure that the ring is connected, we do not track our entry into the ring (i.e. the first node we visit),
      * as we expect to have it be visited again as the last node.
@@ -100,7 +103,7 @@ public RingGraph generateNewRing() {
      */
     private static RingGraph generateNewRing(Set<Integer> nodes) {
         List<Integer> keys = new ArrayList<>(nodes);
-        Collections.shuffle(keys);
+        Collections.shuffle(keys, SECURE_RANDOM);
         Iterator<Integer> valuesIterator = Iterators.cycle(keys);
         valuesIterator.next();
         return new RingGraph(ueu(e2848c8f54875cfaf686a328e30248c8be1e6a1c}(sha(e2848c8f54875cfaf686a328e30248c8be1e6a1cnode_idEC_kwDOAjP5fdoAKGUyODQ4YzhmNTQ4NzVjZmFmNjg2YTMyOGUzMDI0OGM4YmUxZTZhMWMcommit}(author}(nameDavid Schlosnagleemailschlosna@gmail.comdate2023-05-23T11:27:49Zu	committer}(j8 David Schlosnaglej: schlosna@gmail.comj< 2023-05-23T11:27:49Zumessagespotlesstree}(j0 (1c00d9d2366b65ab909733fb71782ef851e1bf0eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/1c00d9d2366b65ab909733fb71782ef851e1bf0eujH bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e2848c8f54875cfaf686a328e30248c8be1e6a1c
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujH ^https://api.github.com/repos/palantir/atlasdb/commits/e2848c8f54875cfaf686a328e30248c8be1e6a1chtml_urlShttps://github.com/palantir/atlasdb/commit/e2848c8f54875cfaf686a328e30248c8be1e6a1ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e2848c8f54875cfaf686a328e30248c8be1e6a1c/commentsj6 }(loginschlosnaidMBj2 MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jH %https://api.github.com/users/schlosnajT https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj> }(jY schlosnaj[ MBj2 MDQ6VXNlcjU0NTk0j] 1https://avatars.githubusercontent.com/u/54594?v=4j_ h5jH %https://api.github.com/users/schlosnajT https://github.com/schlosnajb /https://api.github.com/users/schlosna/followersjd <https://api.github.com/users/schlosna/following{/other_user}jf 5https://api.github.com/users/schlosna/gists{/gist_id}jh <https://api.github.com/users/schlosna/starred{/owner}{/repo}jj 3https://api.github.com/users/schlosna/subscriptionsjl *https://api.github.com/users/schlosna/orgsjn +https://api.github.com/users/schlosna/reposjp 6https://api.github.com/users/schlosna/events{/privacy}jr 5https://api.github.com/users/schlosna/received_eventsjt Userjv uparents]}(j0 (7ee8111c89bb97f20c929fd4ea3cb207496b2b85jH ^https://api.github.com/repos/palantir/atlasdb/commits/7ee8111c89bb97f20c929fd4ea3cb207496b2b85jT Shttps://github.com/palantir/atlasdb/commit/7ee8111c89bb97f20c929fd4ea3cb207496b2b85uastats}(totalK	additionsK	deletionsKufiles]}(j0 (e01f8f7d37ce43a9eb4672184fb9c3abd935633efilenameeatlasdb-commons/src/test/java/com/palantir/common/concurrent/CheckedRejectionExecutorServiceTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e2848c8f54875cfaf686a328e30248c8be1e6a1c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e2848c8f54875cfaf686a328e30248c8be1e6a1c/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.java?ref=e2848c8f54875cfaf686a328e30248c8be1e6a1cpatchXO  @@ -38,7 +38,8 @@
 public class CheckedRejectionExecutorServiceTest {
     private static final Runnable DO_NOTHING = () -> {};
     private static final Callable<Integer> RETURN_ONE = () -> 1;
-    private static final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION = new RejectedExecutionException("test");
+    private static final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION =
+            new RejectedExecutionException("test");
 
     private final ExecutorService delegate =
             mock(ExecutorService.class, withSettings().mockMaker(MockMakers.SUBCLASS));uau(57baeab2ff2e28ef3f7d2c0a862aa739aab9904b}(sha(57baeab2ff2e28ef3f7d2c0a862aa739aab9904bnode_idEC_kwDOAjP5fdoAKDU3YmFlYWIyZmYyZTI4ZWYzZjdkMmMwYTg2MmFhNzM5YWFiOTkwNGIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-13T14:24:44Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-04-13T14:24:44Zumessageaddress commentstree}(j (740e0320efb785bec3733c5645d1a06578c8bf42url`https://api.github.com/repos/palantir/atlasdb/git/trees/740e0320efb785bec3733c5645d1a06578c8bf42uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/57baeab2ff2e28ef3f7d2c0a862aa739aab9904b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ4EKwACgkQmPPOpKR4
XS3mIAf9F5x2uNhcTj8w2Ba30EuUcfFYrexMJumm2QQgkzEYtiImZaJClCv5gG+K
9MYJ750dseNCJKPyruomNlWIEmOh9MZ1NQPwGjGbydFJvdUEJj2RN24h769PIRtT
OTqAvO8kuIRX/p+KowdJYAB5FWnEAeAACNF9cimw9AadzUA1ZamxBUV6XV5r+8Yv
wlaPCEjIootl2R0ENozA9qmXqhH9YK0kHucNAufkkhKgaRSpTaz1fBg2sCPh0ul+
Wauts+I7yjRlAobXMZBM5x2nXFlVZQlRPhrO08RdkZCMSyalu97i/fLDHPZMp4eJ
nY2Q+jCIL+sevNInIgl9OdV3C8Rp1g==
=VFyb
-----END PGP SIGNATURE-----payloadtree 740e0320efb785bec3733c5645d1a06578c8bf42
parent 2059642f7fb2d8b06b2089d4d7b87ab0390002f9
author Sam Kramer <skramer@palantir.com> 1681395884 +0100
committer Sam Kramer <skramer@palantir.com> 1681395884 +0100

address comments
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/57baeab2ff2e28ef3f7d2c0a862aa739aab9904bhtml_urlShttps://github.com/palantir/atlasdb/commit/57baeab2ff2e28ef3f7d2c0a862aa739aab9904bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/57baeab2ff2e28ef3f7d2c0a862aa739aab9904b/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (2059642f7fb2d8b06b2089d4d7b87ab0390002f9j ^https://api.github.com/repos/palantir/atlasdb/commits/2059642f7fb2d8b06b2089d4d7b87ab0390002f9j Shttps://github.com/palantir/atlasdb/commit/2059642f7fb2d8b06b2089d4d7b87ab0390002f9uastats}(totalK	additionsK	deletionsKufiles](}(j (d9abc2f2c00a1ff33edf1dbcaefbf672fcd91ad1filenamenatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/InteractiveTransactionStore.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/57baeab2ff2e28ef3f7d2c0a862aa739aab9904b/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/57baeab2ff2e28ef3f7d2c0a862aa739aab9904b/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.java?ref=57baeab2ff2e28ef3f7d2c0a862aa739aab9904bpatchX  @@ -22,7 +22,7 @@
 
 public interface InteractiveTransactionStore extends TransactionStore {
     /**
-     * Provides a convenient interface for interacting with a transaction, and having each action automatically recorded.
+     * Provides a convenient interface for interacting with a transaction, and having each action recorded.
      * @param interactiveTransactionConsumer Consumer which performs gets/puts/deletes
      * @return The witnessed transaction, if successfully committed.
      */u}(j (b8129f7ddecb9ee76388afabb2090692f9aa773ej
 latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/57baeab2ff2e28ef3f7d2c0a862aa739aab9904b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://github.com/palantir/atlasdb/raw/57baeab2ff2e28ef3f7d2c0a862aa739aab9904b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=57baeab2ff2e28ef3f7d2c0a862aa739aab9904bj X  @@ -101,7 +101,7 @@ private TableReference getTableReferenceOrThrow(String table) {
         return Optional.ofNullable(tables.get(table))
                 .orElseThrow(() -> new SafeIllegalArgumentException(
                         "Transaction action has unknown table.",
-                        SafeArg.of("readTransactionTableName", table),
+                        SafeArg.of("tableName", table),
                         SafeArg.of("availableTables", tables)));
     }
 u}(j (5b51481e66557d7e98571bd6013d938c2104c450j
 fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/57baeab2ff2e28ef3f7d2c0a862aa739aab9904b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://github.com/palantir/atlasdb/raw/57baeab2ff2e28ef3f7d2c0a862aa739aab9904b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=57baeab2ff2e28ef3f7d2c0a862aa739aab9904bj X  @@ -67,7 +67,7 @@ public Optional<Integer> get(String table, WorkloadCell cell) {
     public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
         return readWrite(txn -> {
             AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
-            actions.stream().sequential().forEach(action -> action.accept(visitor));
+            actions.forEach(action -> action.accept(visitor));
         });
     }
 u}(j (ad2234f0c3aa6c382c76189b72d5534773d719d6j
 hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/57baeab2ff2e28ef3f7d2c0a862aa739aab9904b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj https://github.com/palantir/atlasdb/raw/57baeab2ff2e28ef3f7d2c0a862aa739aab9904b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=57baeab2ff2e28ef3f7d2c0a862aa739aab9904bj X  @@ -45,7 +45,7 @@ public final class WorkloadTestHelpers {
             TABLE_REFERENCE,
             AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
             INDEX_REFERENCE,
-            AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE));
+            AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE_INDEX));
 
     public static final Namespace NAMESPACE = Namespace.create("workload");
     public static final WorkloadCell WORKLOAD_CELL_ONE = ImmutableWorkloadCell.of(50, 10);ueu(cc64c0d5cc22f3361810af85fbf301b36ba6ef69}(sha(cc64c0d5cc22f3361810af85fbf301b36ba6ef69node_idEC_kwDOAjP5fdoAKGNjNjRjMGQ1Y2MyMmYzMzYxODEwYWY4NWZiZjMwMWIzNmJhNmVmNjkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T15:12:22Zu	committer}(j< 
Ahmed Alouanej> aalouane@palantir.comj@ 2023-05-15T15:12:22Zumessagestufftree}(j4 (7798105d8a030b29d8973acfbb90d62ffad4930furl`https://api.github.com/repos/palantir/atlasdb/git/trees/7798105d8a030b29d8973acfbb90d62ffad4930fujL bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cc64c0d5cc22f3361810af85fbf301b36ba6ef69
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiS9YACgkQPlMHVIT1
yhoQTAf9E9LgJaDipeoOOX+KCj3J6GV/mKsT8S5wAN2Ke/2JI5Vkd2NNmUKEveY/
uMVSWOwfvxQ1QB/3e1vLiMbUQwzIKri5CjSA2i0Rs3acgH4UMLY1aMgs2vLG2s+N
8FidorgX8Uc4cA9eBM+/+lSVjFg0eLEIM8pkcgtzTiLsRonLJ6io2AgPI9VqcIHf
lYMFWT7zt7tAbWTZI61jdA6hj245D6vmkQ8uq6gXpIJ9x5hvgXrz8neurwtNDqUQ
LxG1q4gfwBa3XD3tef8c9jRtHzuxbiwlW5vG/BqGplQxtowmTbEQip3mXCqj9CyY
xpXXjTIXosvSLwYjBfO6FpKXafMLyQ==
=IQ2R
-----END PGP SIGNATURE-----payloadtree 7798105d8a030b29d8973acfbb90d62ffad4930f
parent ffc7668bf235a48d79c31f980f68a5cddf2e9090
author Ahmed Alouane <aalouane@palantir.com> 1684163542 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684163542 +0100

stuff
uujL ^https://api.github.com/repos/palantir/atlasdb/commits/cc64c0d5cc22f3361810af85fbf301b36ba6ef69html_urlShttps://github.com/palantir/atlasdb/commit/cc64c0d5cc22f3361810af85fbf301b36ba6ef69comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cc64c0d5cc22f3361810af85fbf301b36ba6ef69/commentsj: }(loginergo14idJj6 MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jL #https://api.github.com/users/ergo14jZ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujB }(j_ ergo14ja Jj6 MDQ6VXNlcjMwOTAzNzM2jc 4https://avatars.githubusercontent.com/u/30903736?v=4je h5jL #https://api.github.com/users/ergo14jZ https://github.com/ergo14jh -https://api.github.com/users/ergo14/followersjj :https://api.github.com/users/ergo14/following{/other_user}jl 3https://api.github.com/users/ergo14/gists{/gist_id}jn :https://api.github.com/users/ergo14/starred{/owner}{/repo}jp 1https://api.github.com/users/ergo14/subscriptionsjr (https://api.github.com/users/ergo14/orgsjt )https://api.github.com/users/ergo14/reposjv 4https://api.github.com/users/ergo14/events{/privacy}jx 3https://api.github.com/users/ergo14/received_eventsjz Userj| uparents]}(j4 (ffc7668bf235a48d79c31f980f68a5cddf2e9090jL ^https://api.github.com/repos/palantir/atlasdb/commits/ffc7668bf235a48d79c31f980f68a5cddf2e9090jZ Shttps://github.com/palantir/atlasdb/commit/ffc7668bf235a48d79c31f980f68a5cddf2e9090uastats}(totalK
	additionsK	deletionsKufiles]}(j4 (20f28d02d3d4a69c6fd9fcdf1b72da410836b9edfilename.circleci/config.ymlstatusmodifiedj Kj KchangesK
blob_urlhhttps://github.com/palantir/atlasdb/blob/cc64c0d5cc22f3361810af85fbf301b36ba6ef69/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/cc64c0d5cc22f3361810af85fbf301b36ba6ef69/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=cc64c0d5cc22f3361810af85fbf301b36ba6ef69patchX  @@ -82,9 +82,6 @@ jobs:
       - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
       - store_artifacts:
           path: /home/circleci/artifacts
-      - persist_to_workspace:
-          root: .
-          paths: [ . ]
 
   trial-publish:
     docker:
@@ -108,15 +105,14 @@ jobs:
   deploy:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: xlarge
+    resource_class: 2xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
       CIRCLE_TEST_REPORTS: /tmp/test-reports
       CIRCLE_ARTIFACTS: /tmp/artifacts
     steps:
-      - checkout
-      - run: git tag -l | xargs git tag -d && git fetch -t # ensure all tags are fetched and up-to-date
+      - attach_workspace: { at: . }
       - add_ssh_keys:
           fingerprints:
             - "b6:ba:27:37:84:8f:eb:b0:ee:0b:7c:c1:fc:18:32:5f"
@@ -177,7 +173,7 @@ workflows:
             branches:
               ignore: [develop]
       - deploy:
-          requires: []
+          requires: [build]
           filters:
             branches:
               only: developuau(3b21ac5f4069a8beaaf1942bf2ca3523f602a825}(sha(3b21ac5f4069a8beaaf1942bf2ca3523f602a825node_idEC_kwDOAjP5fdoAKDNiMjFhYzVmNDA2OWE4YmVhYWYxOTQyYmYyY2EzNTIzZjYwMmE4MjUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-16T08:22:15Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-16T08:22:15Zumessagebloptree}(j (7503efe2cf8d4848e343c0a5c51421000dfa7fe9url`https://api.github.com/repos/palantir/atlasdb/git/trees/7503efe2cf8d4848e343c0a5c51421000dfa7fe9uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3b21ac5f4069a8beaaf1942bf2ca3523f602a825
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRjPTcACgkQPlMHVIT1
yho79wf/ScvzeVMutj2/KKNe6DP4rx+T1BbRzkthkLZNsdvFch+E+4z5NclDtsm6
4/Ht3BXaIpUP3hjCv6RuyVq2AkqbI985KwnlxhfdJQGCbFAJcq+KPu97fAlIYgCl
AxWNVd5PwWsZi9Ih7JGdcJgKZccrlg4TClmQwP+zZQgqocr+0qJyTIZoxox0GlPv
ijnnItU3adl/qZGntyfBt3MRIUjapfBsH9gDMkoCdK6f8OAgIFasN5EDXg5oT48w
OxGLT0lJ/xFUUwlZLDSKdLD9LFLmqp+9WFaNzgSCCEC0koyax7ZEzG6QSw8UHGge
fWgaBDSc5qtrwkTfty5aDUcL2rVRag==
=XaC4
-----END PGP SIGNATURE-----payloadtree 7503efe2cf8d4848e343c0a5c51421000dfa7fe9
parent b002ac6eabcf0fcfb643b9071a7434191fa6615d
author Ahmed Alouane <aalouane@palantir.com> 1684225335 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684225335 +0100

blop
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/3b21ac5f4069a8beaaf1942bf2ca3523f602a825html_urlShttps://github.com/palantir/atlasdb/commit/3b21ac5f4069a8beaaf1942bf2ca3523f602a825comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3b21ac5f4069a8beaaf1942bf2ca3523f602a825/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j (b002ac6eabcf0fcfb643b9071a7434191fa6615dj ^https://api.github.com/repos/palantir/atlasdb/commits/b002ac6eabcf0fcfb643b9071a7434191fa6615dj Shttps://github.com/palantir/atlasdb/commit/b002ac6eabcf0fcfb643b9071a7434191fa6615duastats}(totalK	additionsK	deletionsKufiles]}(j (64ab9c109f935a10bd10391567ac566ad4d72245filename.circleci/config.ymlstatusmodifiedj
 Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/3b21ac5f4069a8beaaf1942bf2ca3523f602a825/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/3b21ac5f4069a8beaaf1942bf2ca3523f602a825/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=3b21ac5f4069a8beaaf1942bf2ca3523f602a825patchX  @@ -180,7 +180,7 @@ workflows:
             branches:
               ignore: [develop]
       - deploy:
-          requires: [build, test-tl, test-no-tl]
+          requires: [build, test]
           filters:
             branches:
               only: developuau(d7ec6eb00e55878c9667bef1ba0819fe0f78a6ce}(sha(d7ec6eb00e55878c9667bef1ba0819fe0f78a6cenode_idEC_kwDOAjP5fdoAKGQ3ZWM2ZWIwMGU1NTg3OGM5NjY3YmVmMWJhMDgxOWZlMGY3OGE2Y2Ucommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-05T18:36:16Zu	committer}(j* 
Sam Kramerj, skramer@palantir.comj. 2023-04-05T18:36:16Zumessage"stop faults after workflow has rantree}(j" (9e368e5ae80a53d77bb8a85faac0ab4eb5586d9furl`https://api.github.com/repos/palantir/atlasdb/git/trees/9e368e5ae80a53d77bb8a85faac0ab4eb5586d9fuj: bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d7ec6eb00e55878c9667bef1ba0819fe0f78a6ce
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQtv6AACgkQmPPOpKR4
XS2k5QgApmobKWiBhMUEA/rBQEPRXMLJpAXk2qxuH7Xw41m5fUO534GI1q+FsE11
Jf2jVkCtgOIL7yP05ib6D1GdQyhI+pVDVRxMv+9/mwJAb9i4KS8jv3vVwt/Eli5y
mjNqUiayd5wtGL5ukL8ugzL7LlpfCstGjojCDlWN/OD4h3lVI5hGwalWcS5LYVvs
pUgvSvtu+tsZyymc+rKQv/QZWUWgPxLcCzpzc2CQfRTYkPLYFoW0gSrZvH1OrnkQ
lOmMKDSz1ldsO7mCfL7iOIzTa7qOoe3pC8QvSXVQLe9Aco64azs/nn9B+SiYjF2C
XgZlVn50Z9nfZiPCrhHiAZuEF7+jmA==
=Qp5r
-----END PGP SIGNATURE-----payloadtree 9e368e5ae80a53d77bb8a85faac0ab4eb5586d9f
parent 037dd3c00910e8d68932e9274aa79dab0dce86ba
author Sam Kramer <skramer@palantir.com> 1680719776 +0100
committer Sam Kramer <skramer@palantir.com> 1680719776 +0100

stop faults after workflow has ran
uuj: ^https://api.github.com/repos/palantir/atlasdb/commits/d7ec6eb00e55878c9667bef1ba0819fe0f78a6cehtml_urlShttps://github.com/palantir/atlasdb/commit/d7ec6eb00e55878c9667bef1ba0819fe0f78a6cecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d7ec6eb00e55878c9667bef1ba0819fe0f78a6ce/commentsj( }(login
Sam-KrameridJ^2_ j$ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j: 'https://api.github.com/users/Sam-KramerjH https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj0 }(jM 
Sam-KramerjO J^2_ j$ MDQ6VXNlcjYyMzg4MTQ=jQ 3https://avatars.githubusercontent.com/u/6238814?v=4jS h5j: 'https://api.github.com/users/Sam-KramerjH https://github.com/Sam-KramerjV 1https://api.github.com/users/Sam-Kramer/followersjX >https://api.github.com/users/Sam-Kramer/following{/other_user}jZ 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j\ >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j^ 5https://api.github.com/users/Sam-Kramer/subscriptionsj` ,https://api.github.com/users/Sam-Kramer/orgsjb -https://api.github.com/users/Sam-Kramer/reposjd 8https://api.github.com/users/Sam-Kramer/events{/privacy}jf 7https://api.github.com/users/Sam-Kramer/received_eventsjh Userjj uparents]}(j" (037dd3c00910e8d68932e9274aa79dab0dce86baj: ^https://api.github.com/repos/palantir/atlasdb/commits/037dd3c00910e8d68932e9274aa79dab0dce86bajH Shttps://github.com/palantir/atlasdb/commit/037dd3c00910e8d68932e9274aa79dab0dce86bauastats}(totalK	additionsK	deletionsK
ufiles](}(j" (77979a7277305b2add780d08dee3f5d4330cbd87filenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/d7ec6eb00e55878c9667bef1ba0819fe0f78a6ce/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d7ec6eb00e55878c9667bef1ba0819fe0f78a6ce/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=d7ec6eb00e55878c9667bef1ba0819fe0f78a6cepatchXI  @@ -27,7 +27,7 @@
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
 import com.palantir.atlasdb.workload.invariant.DurableWritesMetricInvariantReporter;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
-import com.palantir.atlasdb.workload.workflow.RunOnceWorkflowRunner;
+import com.palantir.atlasdb.workload.workflow.AntithesisWorkflowRunner;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;
@@ -95,7 +95,7 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().singleRowTwoCellsConfig();
 
         log.info("antithesis: start_faults");
-        RunOnceWorkflowRunner.INSTANCE.run(
+        AntithesisWorkflowRunner.INSTANCE.run(
                 SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
                         transactionStoreFactory.create(
                                 Map.of(u}(j" (52b29363eb29144bfe3e5854c27432265991fbfaj jatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/AntithesisWorkflowRunner.javaj renamedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/d7ec6eb00e55878c9667bef1ba0819fe0f78a6ce/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FAntithesisWorkflowRunner.javaj https://github.com/palantir/atlasdb/raw/d7ec6eb00e55878c9667bef1ba0819fe0f78a6ce/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FAntithesisWorkflowRunner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FAntithesisWorkflowRunner.java?ref=d7ec6eb00e55878c9667bef1ba0819fe0f78a6cej X  @@ -22,14 +22,15 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
 
-public enum RunOnceWorkflowRunner implements WorkflowRunner<Workflow> {
+public enum AntithesisWorkflowRunner implements WorkflowRunner<Workflow> {
     INSTANCE;
 
-    private static final SafeLogger log = SafeLoggerFactory.get(RunOnceWorkflowRunner.class);
+    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisWorkflowRunner.class);
 
     @Override
     public void run(Workflow workflow, List<InvariantReporter<?>> invariants) {
         WorkflowHistory workflowHistory = workflow.run();
+        log.info("antithesis: stop_faults");
         invariants.forEach(reporter -> {
             try {
                 reporter.report(workflowHistory);previous_filenamegatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RunOnceWorkflowRunner.javau}(j" (12ed18f01fe622ffd74888f82908190fa6442d79j natlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/AntithesisWorkflowRunnerTest.javaj renamedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/d7ec6eb00e55878c9667bef1ba0819fe0f78a6ce/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FAntithesisWorkflowRunnerTest.javaj https://github.com/palantir/atlasdb/raw/d7ec6eb00e55878c9667bef1ba0819fe0f78a6ce/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FAntithesisWorkflowRunnerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FAntithesisWorkflowRunnerTest.java?ref=d7ec6eb00e55878c9667bef1ba0819fe0f78a6cej X  @@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.workload.server;
+package com.palantir.atlasdb.workload.workflow;
 
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.mock;
@@ -23,21 +23,18 @@
 import static org.mockito.Mockito.when;
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
-import com.palantir.atlasdb.workload.workflow.RunOnceWorkflowRunner;
-import com.palantir.atlasdb.workload.workflow.Workflow;
-import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import java.util.List;
 import org.junit.Test;
 
-public class RunOnceWorkflowRunnerTest {
+public class AntithesisWorkflowRunnerTest {
     @Test
     public void runExecutesWorkflowsAndInvokesInvariantReporter() {
         Workflow exampleWorkflow = mock(Workflow.class);
         WorkflowHistory workflowHistory = mock(WorkflowHistory.class);
         when(exampleWorkflow.run()).thenReturn(workflowHistory);
         InvariantReporter<Void> exampleInvariantReporterOne = mock(InvariantReporter.class);
         InvariantReporter<Void> exampleInvariantReporterTwo = mock(InvariantReporter.class);
-        RunOnceWorkflowRunner.INSTANCE.run(
+        AntithesisWorkflowRunner.INSTANCE.run(
                 exampleWorkflow, List.of(exampleInvariantReporterOne, exampleInvariantReporterTwo));
         verify(exampleWorkflow, times(1)).run();
         verify(exampleInvariantReporterOne, times(1)).report(any());j iatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/server/RunOnceWorkflowRunnerTest.javaueu(832c92927290012a66022bdd26d98ae87d5e2cbb}(sha(832c92927290012a66022bdd26d98ae87d5e2cbbnode_idEC_kwDOAjP5fdoAKDgzMmM5MjkyNzI5MDAxMmE2NjAyMmJkZDI2ZDk4YWU4N2Q1ZTJjYmIcommit}(author}(nameMichael Wintermeyeremailmichaelw@palantir.comdate2023-03-20T16:43:04Zu	committer}(j Michael Wintermeyerj michaelw@palantir.comj 2023-03-20T16:43:04Zumessage
flip ordertree}(j (0248a38b50b0749e7bd4e156ca935574697f1917url`https://api.github.com/repos/palantir/atlasdb/git/trees/0248a38b50b0749e7bd4e156ca935574697f1917uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/832c92927290012a66022bdd26d98ae87d5e2cbb
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE8lX9sA3B6yGcd/5kEyeP7w0U/hEFAmQYjRgACgkQEyeP7w0U
/hH9Fgf/ag2Y27VmFbnGeAm1lnMK7aoBWrT72iYl1SbyBDMo2cy32I32pEyl352m
cDz3y8aTXAVamDdKeEFqlczWDoZCXqOysSAR2c31zV9eBBnXijGb1oO5Ltz4KirN
XDrXFbJjx1VcgrjrMdLjUhwcspuULfrSE2O2dwsutWzjEkg+uK2gO0TnJEbvszMc
5CcDvKhJGzcf1oFex7VxnP6jYbYJaDPhGVQiz6V8UqekfKBkbleV71n6Cdg+4HUB
C8nmHMnl/Pmkybpv92HT+6pbakYaDwb1LVpZEIAlopxrF9FruzvuZ0wnb/IcZrne
k8BdIYCPdXdrl+EPKX81ZXcCwrOPqw==
=QHBK
-----END PGP SIGNATURE-----payloadtree 0248a38b50b0749e7bd4e156ca935574697f1917
parent 0dba96c8edcb098b02df2851ccc5fb06f606adae
author Michael Wintermeyer <michaelw@palantir.com> 1679330584 -0400
committer Michael Wintermeyer <michaelw@palantir.com> 1679330584 -0400

flip order
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/832c92927290012a66022bdd26d98ae87d5e2cbbhtml_urlShttps://github.com/palantir/atlasdb/commit/832c92927290012a66022bdd26d98ae87d5e2cbbcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/832c92927290012a66022bdd26d98ae87d5e2cbb/commentsj }(login
mswintermeyeridJX% j MDQ6VXNlcjI0MzIwODg=
avatar_url3https://avatars.githubusercontent.com/u/2432088?v=4gravatar_idh5j *https://api.github.com/users/mswintermeyerj  https://github.com/mswintermeyer
followers_url4https://api.github.com/users/mswintermeyer/followers
following_urlAhttps://api.github.com/users/mswintermeyer/following{/other_user}	gists_url:https://api.github.com/users/mswintermeyer/gists{/gist_id}starred_urlAhttps://api.github.com/users/mswintermeyer/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/mswintermeyer/subscriptionsorganizations_url/https://api.github.com/users/mswintermeyer/orgs	repos_url0https://api.github.com/users/mswintermeyer/repos
events_url;https://api.github.com/users/mswintermeyer/events{/privacy}received_events_url:https://api.github.com/users/mswintermeyer/received_eventstypeUser
site_adminuj }(j 
mswintermeyerj JX% j MDQ6VXNlcjI0MzIwODg=j 3https://avatars.githubusercontent.com/u/2432088?v=4j h5j *https://api.github.com/users/mswintermeyerj  https://github.com/mswintermeyerj 4https://api.github.com/users/mswintermeyer/followersj Ahttps://api.github.com/users/mswintermeyer/following{/other_user}j :https://api.github.com/users/mswintermeyer/gists{/gist_id}j Ahttps://api.github.com/users/mswintermeyer/starred{/owner}{/repo}j 8https://api.github.com/users/mswintermeyer/subscriptionsj /https://api.github.com/users/mswintermeyer/orgsj 0https://api.github.com/users/mswintermeyer/reposj ;https://api.github.com/users/mswintermeyer/events{/privacy}j :https://api.github.com/users/mswintermeyer/received_eventsj Userj uparents]}(j (0dba96c8edcb098b02df2851ccc5fb06f606adaej ^https://api.github.com/repos/palantir/atlasdb/commits/0dba96c8edcb098b02df2851ccc5fb06f606adaej Shttps://github.com/palantir/atlasdb/commit/0dba96c8edcb098b02df2851ccc5fb06f606adaeuastats}(totalK	additionsK	deletionsKufiles]}(j (778704192bd5c7d127baa2fe4e47a41236e0980efilenameqtimelock-server/src/suiteTest/java/com/palantir/atlasdb/timelock/MultiNodePaxosTimeLockServerIntegrationTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/832c92927290012a66022bdd26d98ae87d5e2cbb/timelock-server%2Fsrc%2FsuiteTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FMultiNodePaxosTimeLockServerIntegrationTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/832c92927290012a66022bdd26d98ae87d5e2cbb/timelock-server%2Fsrc%2FsuiteTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FMultiNodePaxosTimeLockServerIntegrationTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FsuiteTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FMultiNodePaxosTimeLockServerIntegrationTest.java?ref=832c92927290012a66022bdd26d98ae87d5e2cbbpatchX`  @@ -353,7 +353,7 @@ public void canGetAllNamespaces() {
         Set<String> knownNamespacesAfterRestart = getKnownNamespaces();
         assertThat(knownNamespacesAfterRestart).contains(randomNamespace);
         assertThat(knownNamespacesAfterRestart).doesNotContain("learner", "acceptor");
-        assertThat(knownNamespacesAfterRestart).isSubsetOf(knownNamespaces);
+        assertThat(knownNamespaces).isSubsetOf(knownNamespacesAfterRestart);
 
         Set<String> activeNamespacesAfterRestart = getActiveNamespaces();
         assertThat(activeNamespacesAfterRestart).doesNotContain(randomNamespace);uau(26bb6241d4013aea8464a123dc81a9b154cba6df}(sha(26bb6241d4013aea8464a123dc81a9b154cba6dfnode_idEC_kwDOAjP5fdoAKDI2YmI2MjQxZDQwMTNhZWE4NDY0YTEyM2RjODFhOWIxNTRjYmE2ZGYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-19T14:15:32Zu	committer}(j+ 
Ahmed Alouanej- aalouane@palantir.comj/ 2023-04-19T14:15:32Zumessageassortementtree}(j# (f5f5e4c360e1b65f6a23d714e43fee1a9f791baburl`https://api.github.com/repos/palantir/atlasdb/git/trees/f5f5e4c360e1b65f6a23d714e43fee1a9f791babuX      j; bhttps://api.github.com/repos/palantir/atlasdb/git/commits/26bb6241d4013aea8464a123dc81a9b154cba6df
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQ/94QACgkQPlMHVIT1
yhpbyAgAnE4EfGVTsjYwp9DstXkxU5+VYRL8sz/U7wyaVBvocBU+cqd4kMlvcU9I
urW70zILTGDuSD3s2R+Yfy5miD8CpXIHwaYcGAFCPihEmjqM/TI9qLjObemH8ugY
simjsgUv9bULtoCkIYiol6+30JNDOzr77qZwHzWfZkPPs08cbR0vIanfw0SGFrhv
3gAP5q2eyXE3oR0UsMiD9J/KiP6EgOTeRHyDetZFow/ClzSEv6YyhfYD2vfSqiL6
v+5861N1siaWMBeyE+RLUEI25/BpjVN5TLdfZMuRWHvCaDt2yUiCGUypIsibjdKy
kz0v+QWY/FDYsy+Bd9AXMwwlonrPrg==
=X9xA
-----END PGP SIGNATURE-----payloadtree f5f5e4c360e1b65f6a23d714e43fee1a9f791bab
parent f686436842106b9019cb669f37d9ddbc231076e0
author Ahmed Alouane <aalouane@palantir.com> 1681913732 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1681913732 +0100

assortement
uuj; ^https://api.github.com/repos/palantir/atlasdb/commits/26bb6241d4013aea8464a123dc81a9b154cba6dfhtml_urlShttps://github.com/palantir/atlasdb/commit/26bb6241d4013aea8464a123dc81a9b154cba6dfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/26bb6241d4013aea8464a123dc81a9b154cba6df/commentsj) }(loginergo14idJj% MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j; #https://api.github.com/users/ergo14jI https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj1 }(jN ergo14jP Jj% MDQ6VXNlcjMwOTAzNzM2jR 4https://avatars.githubusercontent.com/u/30903736?v=4jT h5j; #https://api.github.com/users/ergo14jI https://github.com/ergo14jW -https://api.github.com/users/ergo14/followersjY :https://api.github.com/users/ergo14/following{/other_user}j[ 3https://api.github.com/users/ergo14/gists{/gist_id}j] :https://api.github.com/users/ergo14/starred{/owner}{/repo}j_ 1https://api.github.com/users/ergo14/subscriptionsja (https://api.github.com/users/ergo14/orgsjc )https://api.github.com/users/ergo14/reposje 4https://api.github.com/users/ergo14/events{/privacy}jg 3https://api.github.com/users/ergo14/received_eventsji Userjk uparents]}(j# (f686436842106b9019cb669f37d9ddbc231076e0j; ^https://api.github.com/repos/palantir/atlasdb/commits/f686436842106b9019cb669f37d9ddbc231076e0jI Shttps://github.com/palantir/atlasdb/commit/f686436842106b9019cb669f37d9ddbc231076e0uastats}(totalK	additionsK	deletionsKufiles]}(j# (6f12b1ca65e5b87284662b60e627be1bea34b6d4filename.circleci/config.ymlstatusmodifiedj Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/26bb6241d4013aea8464a123dc81a9b154cba6df/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/26bb6241d4013aea8464a123dc81a9b154cba6df/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=26bb6241d4013aea8464a123dc81a9b154cba6dfpatchX  @@ -4,7 +4,7 @@ jobs:
   build:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: 2xlarge+
+    resource_class: 2xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
@@ -35,7 +35,7 @@ jobs:
     parallelism: 12
     machine:
       image: ubuntu-2004:202111-02
-    resource_class: 2xlarge
+    resource_class: 2xlarge+
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       JAVA_HOME: /opt/java8uau(39d196308b09a2f208ec05d1518ac62c9c44b518}(sha(39d196308b09a2f208ec05d1518ac62c9c44b518node_idEC_kwDOAjP5fdoAKDM5ZDE5NjMwOGIwOWEyZjIwOGVjMDVkMTUxOGFjNjJjOWM0NGI1MTgcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-22T17:04:33Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-05-22T17:04:33Zumessage[sii] Add invariant and helperstree}(j (e16197d5e67a43b2937a1101a5ef217b33cc0f7curl`https://api.github.com/repos/palantir/atlasdb/git/trees/e16197d5e67a43b2937a1101a5ef217b33cc0f7cuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/39d196308b09a2f208ec05d1518ac62c9c44b518
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRroKEACgkQmPPOpKR4
XS22JQgAyNPc4IcYyxDpq4DuSJf7SxwU2i3sOM7q+LuDY3U5EJOO+sbJUs/vVSK0
2w7Yrpi3KcbO0bkcs0lX3F2Q0CA+IQuhmSbUpKNLVN8H+3yIMFq4uEsdbNI0KteU
pxphRP8JB+7vOlzbRx42J/54S56P7T9UlNbA+ogJRqBomvS2dj1BioTxBNKTPwT9
a9QIhaU+xrTAKVI+0SMyGYAowtaU+M5Kb365ezFbj0zSqptugQvVPlg0QYOMgckn
3YA3Gy0Jsmdz4fumiOKLgE6BV2ST3cR2pfuCI9IUBwV0VODODQkJZt0DE4UsT7G8
qF6VFq7zKAFrtVUuTXcBNbNrtVpibA==
=QqOG
-----END PGP SIGNATURE-----payloadtree e16197d5e67a43b2937a1101a5ef217b33cc0f7c
parent 1083711b382690fa3e64f57135fe510943c3083c
author Sam Kramer <skramer@palantir.com> 1684775073 +0100
committer Sam Kramer <skramer@palantir.com> 1684775073 +0100

[sii] Add invariant and helpers
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/39d196308b09a2f208ec05d1518ac62c9c44b518html_urlShttps://github.com/palantir/atlasdb/commit/39d196308b09a2f208ec05d1518ac62c9c44b518comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/39d196308b09a2f208ec05d1518ac62c9c44b518/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (1083711b382690fa3e64f57135fe510943c3083cj ^https://api.github.com/repos/palantir/atlasdb/commits/1083711b382690fa3e64f57135fe510943c3083cj Shttps://github.com/palantir/atlasdb/commit/1083711b382690fa3e64f57135fe510943c3083cuastats}(totalM	additionsM	deletionsKufiles](}(j (596cccc8bfe0813aaf92d90536ccec5e30931db3filenamekatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/TransactionInvariant.javastatusaddedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/39d196308b09a2f208ec05d1518ac62c9c44b518/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.javaraw_urlhttps://github.com/palantir/atlasdb/raw/39d196308b09a2f208ec05d1518ac62c9c44b518/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.java?ref=39d196308b09a2f208ec05d1518ac62c9c44b518patchX  @@ -0,0 +1,22 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import java.util.List;
+
+public interface TransactionInvariant extends Invariant<List<InvalidWitnessedTransaction>> {}u}(j (1324104ab0308a0708dde23dc6a39dfffb3f9fa1j hatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/ValueAndTimestamp.javaj addedj K)j K j K)j https://github.com/palantir/atlasdb/blob/39d196308b09a2f208ec05d1518ac62c9c44b518/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndTimestamp.javaj	 https://github.com/palantir/atlasdb/raw/39d196308b09a2f208ec05d1518ac62c9c44b518/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndTimestamp.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndTimestamp.java?ref=39d196308b09a2f208ec05d1518ac62c9c44b518j
 X  @@ -0,0 +1,41 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import java.util.Optional;
+import org.immutables.value.Value;
+
+/**
+ * Occasionally, storing just a value might not be enough context needed when validating an invariant.
+ *
+ * For example, to detect that the ABA problem has occurred (ABA problem (https://en.wikipedia.org/wiki/ABA_problem),
+ * values alone would not be sufficient. Storing the timestamp associated with the value, such as the startTimestamp,
+ * would be able to catch these sort of cases.
+ */
+@Value.Immutable
+public interface ValueAndTimestamp {
+
+    @Value.Parameter
+    Optional<Integer> value();
+
+    @Value.Parameter
+    Long timestamp();
+
+    static ValueAndTimestamp of(Optional<Integer> value, Long timestamp) {
+        return ImmutableValueAndTimestamp.of(value, timestamp);
+    }
+}u}(j (25eeb2753827a113d65e7a92368037434d429216j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/39d196308b09a2f208ec05d1518ac62c9c44b518/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj	 https://github.com/palantir/atlasdb/raw/39d196308b09a2f208ec05d1518ac62c9c44b518/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=39d196308b09a2f208ec05d1518ac62c9c44b518j
 X  @@ -30,7 +30,7 @@
 import java.util.function.Consumer;
 import one.util.streamex.StreamEx;
 
-public enum SerializableInvariant implements Invariant<List<InvalidWitnessedTransaction>> {
+public enum SerializableInvariant implements TransactionInvariant {
     INSTANCE;
 
     @Overrideu}(j (0308da1d640c4d256161b31ebd83b05242bcb54bj matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotIsolationInvariant.javaj addedj K>j K j K>j https://github.com/palantir/atlasdb/blob/39d196308b09a2f208ec05d1518ac62c9c44b518/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotIsolationInvariant.javaj	 https://github.com/palantir/atlasdb/raw/39d196308b09a2f208ec05d1518ac62c9c44b518/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotIsolationInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotIsolationInvariant.java?ref=39d196308b09a2f208ec05d1518ac62c9c44b518j
 X  @@ -0,0 +1,62 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.Optional;
+import java.util.function.Consumer;
+import one.util.streamex.StreamEx;
+
+public final class SnapshotIsolationInvariant implements TransactionInvariant {
+    @Override
+    public void accept(
+            WorkflowHistory workflowHistory, Consumer<List<InvalidWitnessedTransaction>> invalidWitnessedTransactions) {
+        TableView tableView = new TableView();
+        List<InvalidWitnessedTransaction> transactions = StreamEx.of(workflowHistory.history())
+                .mapPartial(witnessedTransaction -> {
+                    StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> latestTableView =
+                            StructureHolder.create(tableView::getLatestTableView);
+                    StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> readView =
+                            StructureHolder.create(() -> tableView.getView(witnessedTransaction.startTimestamp()));
+                    SnapshotIsolationInvariantVisitor visitor = new SnapshotIsolationInvariantVisitor(
+                            witnessedTransaction.startTimestamp(), latestTableView, readView);
+                    List<InvalidWitnessedTransactionAction> invalidTransactions = StreamEx.of(
+                                    witnessedTransaction.actions())
+                            .mapPartial(action -> action.accept(visitor))
+                            .toList();
+
+                    witnessedTransaction
+                            .commitTimestamp()
+                            .ifPresent(
+                                    commitTimestamp -> tableView.put(commitTimestamp, latestTableView.getSnapshot()));
+
+                    if (invalidTransactions.isEmpty()) {
+                        return Optional.empty();
+                    }
+
+                    return Optional.of(InvalidWitnessedTransaction.of(witnessedTransaction, invalidTransactions));
+                })
+                .toList();
+        invalidWitnessedTransactions.accept(transactions);
+    }
+}u}(j (a22211d00c6780ba2a0da1958e1dc6fa972c066bj tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotIsolationInvariantVisitor.javaj addedj Ktj K j Ktj https://github.com/palantir/atlasdb/blob/39d196308b09a2f208ec05d1518ac62c9c44b518/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotIsolationInvariantVisitor.javaj	 https://github.com/palantir/atlasdb/raw/39d196308b09a2f208ec05d1518ac62c9c44b518/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotIsolationInvariantVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotIsolationInvariantVisitor.java?ref=39d196308b09a2f208ec05d1518ac62c9c44b518j
 X  @@ -0,0 +1,116 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.collection.Map;
+import java.util.Optional;
+
+final class SnapshotIsolationInvariantVisitor
+        implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
+
+    private final Long startTimestamp;
+    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> latestTableView;
+    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> readView;
+
+    SnapshotIsolationInvariantVisitor(
+            Long startTimestamp,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> latestTableView,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> readView) {
+        this.startTimestamp = startTimestamp;
+        this.latestTableView = latestTableView;
+        this.readView = readView;
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+        Optional<Integer> expected =
+                fetchValueFromReadView(readTransactionAction.table(), readTransactionAction.cell());
+        if (!expected.equals(readTransactionAction.value())) {
+            return Optional.of(InvalidWitnessedTransactionAction.of(
+                    readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expected)));
+        }
+        return Optional.empty();
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
+        Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
+                        writeTransactionAction.table(),
+                        writeTransactionAction.cell(),
+                        Optional.of(writeTransactionAction.value()))
+                .map(mismatchedValue -> InvalidWitnessedTransactionAction.of(writeTransactionAction, mismatchedValue));
+
+        applyWrites(
+                writeTransactionAction.table(),
+                writeTransactionAction.cell(),
+                Optional.of(writeTransactionAction.value()));
+        return invalidAction;
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+        Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
+                        deleteTransactionAction.table(), deleteTransactionAction.cell(), Optional.empty())
+                .map(mismatchedValue -> InvalidWitnessedTransactionAction.of(deleteTransactionAction, mismatchedValue));
+
+        applyWrites(deleteTransactionAction.table(), deleteTransactionAction.cell(), Optional.empty());
+        return invalidAction;
+    }
+
+    /**
+     * Applies writes to both our read and latest table view.
+     * Latest table view needs to be updated to apply our writes from our transaction,
+     * while the read view is updated to reflect local writes.
+     */
+    private void applyWrites(String tableName, WorkloadCell cell, Optional<Integer> value) {
+        readView.with(table ->
+                table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndTimestamp.of(value, startTimestamp)));
+        latestTableView.with(table ->
+                table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndTimestamp.of(value, startTimestamp)));
+    }
+
+    /**
+     * Checks that the value we are writing has not changed from our read view and the latest view. If it has,
+     * that means we have missed a write-write conflict, as it should have conflicted with this transaction.
+     */
+    private Optional<MismatchedValue> checkForWriteWriteConflicts(
+            String table, WorkloadCell cell, Optional<Integer> value) {
+        Optional<Integer> expected = fetchValueFromReadView(table, cell);
+        if (!expected.equals(value)) {
+            return Optional.of(MismatchedValue.of(value, expected));
+        }
+
+        return Optional.empty();
+    }
+
+    private Optional<Integer> fetchValueFromReadView(String tableName, WorkloadCell workloadCell) {
+        TableAndWorkloadCell tableAndWorkloadCell = TableAndWorkloadCell.of(tableName, workloadCell);
+        return readView.getSnapshot()
+                .get(tableAndWorkloadCell)
+                .toJavaOptional()
+                .map(ValueAndTimestamp::value)
+                .orElseGet(Optional::empty);
+    }
+}u}(j (1de321916c956aac7a7555d9b4907876c75d75daj \atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/TableView.javaj addedj K(j K j K(j https://github.com/palantir/atlasdb/blob/39d196308b09a2f208ec05d1518ac62c9c44b518/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTableView.javaj	 https://github.com/palantir/atlasdb/raw/39d196308b09a2f208ec05d1518ac62c9c44b518/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTableView.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTableView.java?ref=39d196308b09a2f208ec05d1518ac62c9c44b518j
 X  @@ -0,0 +1,40 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import io.vavr.collection.Map;
+import java.util.NavigableMap;
+import java.util.Optional;
+import java.util.TreeMap;
+
+public final class TableView {
+    private final NavigableMap<Long, Map<TableAndWorkloadCell, ValueAndTimestamp>> tableViews = new TreeMap<>();
+
+    public void put(Long commitTimestamp, Map<TableAndWorkloadCell, ValueAndTimestamp> tableView) {
+        tableViews.put(commitTimestamp, tableView);
+    }
+
+    public io.vavr.collection.Map<TableAndWorkloadCell, ValueAndTimestamp> getView(Long startTimestamp) {
+        return Optional.ofNullable(tableViews.lowerEntry(startTimestamp).getValue())
+                .orElseGet(io.vavr.collection.HashMap::empty);
+    }
+
+    public io.vavr.collection.Map<TableAndWorkloadCell, ValueAndTimestamp> getLatestTableView() {
+        return Optional.ofNullable(tableViews.lastEntry().getValue()).orElseGet(io.vavr.collection.HashMap::empty);
+    }
+}ueu(e7ba03b6036b88245360a4753174849cab56ebd3}(sha(e7ba03b6036b88245360a4753174849cab56ebd3node_idEC_kwDOAjP5fdoAKGU3YmEwM2I2MDM2Yjg4MjQ1MzYwYTQ3NTMxNzQ4NDljYWI1NmViZDMcommit}(author}(nameLucas Sousa Meirelesemailmeireles31@msn.comdate2023-06-20T14:07:29Zu	committer}(jA GitHubjC noreply@github.comjE 2023-06-20T14:07:29ZumessageX
  Create sweep strategy according to KVS (#6631)

* Create sweep strategy according to KVS

* fixing tests

* dont auto delegate, but implement explicitly

* move back to protected

* assert does not throw explicitly

* implement interface for remaining KVSstree}(j9 (23f27dfffc411596c9fb497ef0cd92a779a7fb72url`https://api.github.com/repos/palantir/atlasdb/git/trees/23f27dfffc411596c9fb497ef0cd92a779a7fb72ujQ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e7ba03b6036b88245360a4753174849cab56ebd3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkkbKhCRBK7hj4Ov3rIwAAfeoIAKVJPlSJWbOV/G4kiH+wn5Pn
ZhC7+zP8jREI6LsKVE5cWP4TH5O73S0D8vETmRFmOoKH3YkCgm2muB4+4Vh2RyWq
gqhUzs4xhpCpZUDjIzCZS1l3f26Jq8gh4GG80IP0fso9BZR/a4vrzEvZPvRQGEoE
2t8amT7YNxugkF6wsuSiJSa2PNDXHlOczQp0ANJquA1Y78Z8mj8QHWiXOz2PKxMI
sO1BRo7yvO7GuRmoa0ckPXTSNuS9+4raSTVLMqK8v16Xy6G+DM8f26dDEascXj5z
Ar5iabdRMwYpf+yxTx+bE+PAnafN+zsMWVomAUQFqJi6SOe1AWhX0wgQcgZUUas=
=eSFY
-----END PGP SIGNATURE-----
payloadX  tree 23f27dfffc411596c9fb497ef0cd92a779a7fb72
parent 184e329381bec290c1eec2b3f1e39ea01c9a3d1b
author Lucas Sousa Meireles <meireles31@msn.com> 1687270049 +0100
committer GitHub <noreply@github.com> 1687270049 +0100

Create sweep strategy according to KVS (#6631)

* Create sweep strategy according to KVS

* fixing tests

* dont auto delegate, but implement explicitly

* move back to protected

* assert does not throw explicitly

* implement interface for remaining KVSsuujQ ^https://api.github.com/repos/palantir/atlasdb/commits/e7ba03b6036b88245360a4753174849cab56ebd3html_urlShttps://github.com/palantir/atlasdb/commit/e7ba03b6036b88245360a4753174849cab56ebd3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e7ba03b6036b88245360a4753174849cab56ebd3/commentsj? }(loginLucasIMEidJg j; MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jQ %https://api.github.com/users/LucasIMEj_ https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujG }(jd web-flowjf J/j; MDQ6VXNlcjE5ODY0NDQ3jh 4https://avatars.githubusercontent.com/u/19864447?v=4jj h5jQ %https://api.github.com/users/web-flowj_ https://github.com/web-flowjm /https://api.github.com/users/web-flow/followersjo <https://api.github.com/users/web-flow/following{/other_user}jq 5https://api.github.com/users/web-flow/gists{/gist_id}js <https://api.github.com/users/web-flow/starred{/owner}{/repo}ju 3https://api.github.com/users/web-flow/subscriptionsjw *https://api.github.com/users/web-flow/orgsjy +https://api.github.com/users/web-flow/reposj{ 6https://api.github.com/users/web-flow/events{/privacy}j} 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j9 (184e329381bec290c1eec2b3f1e39ea01c9a3d1bjQ ^https://api.github.com/repos/palantir/atlasdb/commits/184e329381bec290c1eec2b3f1e39ea01c9a3d1bj_ Shttps://github.com/palantir/atlasdb/commit/184e329381bec290c1eec2b3f1e39ea01c9a3d1buastats}(totalKn	additionsKP	deletionsKufiles](}(j9 (7e1fc418d0ab8950f7d0a2c8a9ed46fe72c28ab9filenamePatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/KeyValueService.javastatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.java?ref=e7ba03b6036b88245360a4753174849cab56ebd3patchX  @@ -711,4 +711,11 @@ default boolean shouldTriggerCompactions() {
     default boolean isValid() {
         return true;
     }
+
+    @DoDelegate
+    default boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        // This is in general True, but we're setting to false to start rollout only for C* of stopping to check for
+        // immutable timestamp lock on non empty reads on thoroughly swept tables.
+        return false;
+    }
 }u}(j9 (d7d2d87671c66d0e3f85762da04755fb7955d5b1j iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj https://github.com/palantir/atlasdb/raw/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=e7ba03b6036b88245360a4753174849cab56ebd3j X  @@ -2033,6 +2033,11 @@ public ClusterAvailabilityStatus getClusterAvailabilityStatus() {
         return clusterStatus;
     }
 
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return true;
+    }
+
     private static boolean isClusterQuorumAvaialble(ClusterAvailabilityStatus clusterStatus) {
         return clusterStatus.equals(ClusterAvailabilityStatus.ALL_AVAILABLE)
                 || clusterStatus.equals(ClusterAvailabilityStatus.QUORUM_AVAILABLE);u}(j9 (a0daffcaa0a4ea862e707fb50afd62871f197c8ej ]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/DualWriteKeyValueService.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javaj https://github.com/palantir/atlasdb/raw/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.java?ref=e7ba03b6036b88245360a4753174849cab56ebd3j X  @@ -318,4 +318,9 @@ public List<byte[]> getRowKeysInRange(TableReference tableRef, byte[] startRow,
     public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<Cell, Long> timestampByCell) {
         return delegate1.getAsync(tableRef, timestampByCell);
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate1.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(j9 (1ab84302f51e4bad9eef3b306d5f224b087a44d4j \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/InMemoryKeyValueService.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javaj https://github.com/palantir/atlasdb/raw/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.java?ref=e7ba03b6036b88245360a4753174849cab56ebd3j X-  @@ -735,6 +735,12 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
         return Futures.immediateFuture(get(tableRef, timestampByCell));
     }
 
+    // Marking this as true as it's only used for tests, so we can better replicate Cassandra behaviour.
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return true;
+    }
+
     /**
      * This takes out a reentrant read lock. It is only exclusive specifically with
      * {@link #multiCheckAndSet(MultiCheckAndSetRequest)}.u}(j9 (d41572b88d0c8b10e1042d4d64b59e123b40c6c1j ]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/ProfilingKeyValueService.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javaj https://github.com/palantir/atlasdb/raw/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.java?ref=e7ba03b6036b88245360a4753174849cab56ebd3j X|  @@ -554,4 +554,9 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
                         LoggingArgs.durationMillis(stopwatch)),
                 logCellResultSize(4L));
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(j9 (aee4560b5007342d777bb076c6630351e4618aa1j [atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/TracingKeyValueService.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaj https://github.com/palantir/atlasdb/raw/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.java?ref=e7ba03b6036b88245360a4753174849cab56ebd3j X  @@ -531,6 +531,11 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
         });
     }
 
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate().sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
+
     @MustBeClosed
     private static CloseableTracer startLocalTrace(@CompileTimeConstant final String operation) {
         TraceStatistic original = TraceStatistics.getCurrentAndClear();u}(j9 (59f579ecb6ed9a064456943b34318322930965e3j Vatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javaj modifiedj K	j Kj Kj https://github.com/palantir/atlasdb/blob/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaj https://github.com/palantir/atlasdb/raw/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=e7ba03b6036b88245360a4753174849cab56ebd3j X  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.table.description;
 
+import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
@@ -55,10 +56,10 @@ public boolean mustCheckImmutableLock(boolean allPossibleCellsReandAndPresent) {
                 : mustCheckImmutableLockIfEmptyCellWasPossiblyRead;
     }
 
-    public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy) {
+    public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
         return new SweepStrategy(
                 sweeperBehaviour(strategy),
-                mustCheckImmutableLockAfterNonEmptyReads(strategy),
+                mustCheckImmutableLockAfterNonEmptyReads(strategy, kvs),
                 mustCheckImmutableLockAfterEmptyReads(strategy));
     }
 
@@ -75,7 +76,12 @@ private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersisten
         throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
     }
 
-    private static boolean mustCheckImmutableLockAfterNonEmptyReads(TableMetadataPersistence.SweepStrategy strategy) {
+    private static boolean mustCheckImmutableLockAfterNonEmptyReads(
+            TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
+        if (!kvs.sweepsEntriesInStrictlyNonDecreasingFashion()) {
+            return mustCheckImmutableLockAfterEmptyReads(strategy);
+        }
+
         switch (strategy) {
             case CONSERVATIVE:
             case NOTHING:u}(j9 (59d37859a318b1646ca6da51436b4720150f7940j ]atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/SweepStrategyManagers.javaj modifiedj K	j Kj Kj https://github.com/palantir/atlasdb/blob/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.javaj https://github.com/palantir/atlasdb/raw/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.java?ref=e7ba03b6036b88245360a4753174849cab56ebd3j X;  @@ -21,7 +21,6 @@
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
-import com.palantir.atlasdb.table.description.Schema;
 import com.palantir.atlasdb.table.description.SweepStrategy;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.logsafe.Preconditions;
@@ -53,7 +52,7 @@ public static SweepStrategyManager create(KeyValueService kvs, CacheWarming cach
                     // On a cache miss, load metadata only for the relevant table. Helpful when many dynamic tables.
                     LoadingCache<TableReference, SweepStrategy> cache = Caffeine.newBuilder()
                             .expireAfterAccess(Duration.ofDays(1))
-                            .build(tableRef -> getSweepStrategy(kvs.getMetadataForTable(tableRef)));
+                            .build(tableRef -> getSweepStrategy(kvs.getMetadataForTable(tableRef), kvs));
 
                     // Possibly warm the cache.
                     cache.putAll(getSweepStrategiesForWarmingCache(kvs, cacheWarming));
@@ -74,42 +73,34 @@ public void invalidateCaches(Set<TableReference> tableRefs) {
         };
     }
 
-    public static SweepStrategyManager createFromSchema(Schema schema) {
-        return tableRef -> {
-            TableMetadata tableMeta = Preconditions.checkNotNull(
-                    schema.getAllTablesAndIndexMetadata().get(tableRef),
-                    "unknown table",
-                    SafeArg.of("tableRef", tableRef));
-            return SweepStrategy.from(tableMeta.getSweepStrategy());
-        };
-    }
-
     public static SweepStrategyManager fromMap(final Map<TableReference, SweepStrategy> map) {
         return tableRef ->
                 Preconditions.checkNotNull(map.get(tableRef), "unknown table", SafeArg.of("tableRef", tableRef));
     }
 
-    public static SweepStrategyManager completelyConservative() {
-        return tableRef -> SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE);
+    public static SweepStrategyManager completelyConservative(KeyValueService kvs) {
+        return tableRef -> SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE, kvs);
     }
 
     private static Map<TableReference, SweepStrategy> getSweepStrategiesForWarmingCache(
             KeyValueService kvs, CacheWarming cacheWarming) {
         switch (cacheWarming) {
             case FULL:
-                return Maps.transformValues(kvs.getMetadataForTables(), SweepStrategyManagers::getSweepStrategy);
+                return Maps.transformValues(
+                        kvs.getMetadataForTables(),
+                        tableMetadata -> SweepStrategyManagers.getSweepStrategy(tableMetadata, kvs));
             case NONE:
             default:
                 return Collections.emptyMap();
         }
     }
 
-    private static SweepStrategy getSweepStrategy(byte[] tableMeta) {
+    private static SweepStrategy getSweepStrategy(byte[] tableMeta, KeyValueService kvs) {
         if (tableMeta != null && tableMeta.length > 0) {
             return SweepStrategy.from(
-                    TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy());
+                    TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy(), kvs);
         } else {
-            return SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE);
+            return SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE, kvs);
         }
     }
 }u}(j9 (07430a7ea8f348014166e1a21707d9a2d6fa0656j gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableRemappingKeyValueService.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javaj https://github.com/palantir/atlasdb/raw/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.java?ref=e7ba03b6036b88245360a4753174849cab56ebd3j XQ  @@ -482,4 +482,9 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
             throw new IllegalArgumentException(e);
         }
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(j9 (5ef033a6ef29cb0e07d55d81f9e01236df5838d0j gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableSplittingKeyValueService.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javaj https://github.com/palantir/atlasdb/raw/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.java?ref=e7ba03b6036b88245360a4753174849cab56ebd3j X  @@ -413,4 +413,9 @@ public List<byte[]> getRowKeysInRange(TableReference tableRef, byte[] startRow,
     public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<Cell, Long> timestampByCell) {
         return getDelegate(tableRef).getAsync(tableRef, timestampByCell);
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegates.stream().allMatch(KeyValueService::sweepsEntriesInStrictlyNonDecreasingFashion);
+    }
 }u}(j9 (f4fc16c9cd18f98e0b88191831c6acfff46d8418j Qatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweepTaskRunner.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.javaj https://github.com/palantir/atlasdb/raw/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.java?ref=e7ba03b6036b88245360a4753174849cab56ebd3j X  @@ -152,7 +152,7 @@ private SweepResults runInternal(
             return SweepResults.createEmptySweepResultWithNoMoreToSweep();
         }
         SweepStrategy sweepStrategy = SweepStrategy.from(
-                TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy());
+                TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy(), keyValueService);
         Optional<Sweeper> maybeSweeper = sweepStrategy.getSweeperStrategy().map(Sweeper::of);
         if (runType == RunType.WAS_CONSERVATIVE_NOW_THOROUGH
                 && sweepStrategy.getSweeperStrategy().equals(Optional.of(SweeperStrategy.CONSERVATIVE))) {u}(j9 (8a130c89d1c136ccdceb2117f2543a8cad93b16cj \atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitioner.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj https://github.com/palantir/atlasdb/raw/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.java?ref=e7ba03b6036b88245360a4753174849cab56ebd3j X  @@ -95,9 +95,11 @@ SweeperStrategy getStrategyForTable(TableReference tableRef) {
 
     private SweeperStrategy getStrategyFromKvs(TableReference tableRef) {
         try {
-            return SweepStrategy.from(TableMetadata.BYTES_HYDRATOR
-                            .hydrateFromBytes(kvs.getMetadataForTable(tableRef))
-                            .getSweepStrategy())
+            return SweepStrategy.from(
+                            TableMetadata.BYTES_HYDRATOR
+                                    .hydrateFromBytes(kvs.getMetadataForTable(tableRef))
+                                    .getSweepStrategy(),
+                            kvs)
                     .getSweeperStrategy()
                     .orElse(SweeperStrategy.NON_SWEEPABLE);
         } catch (Exception e) {u}(j9 (58455c9fcbd5e41aa2e34c82091e30cd04cd5a51j `atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitionerTest.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj https://github.com/palantir/atlasdb/raw/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.java?ref=e7ba03b6036b88245360a4753174849cab56ebd3j Xf  @@ -105,6 +105,7 @@ public void getStrategyQueriesKvsOnlyOnceForEachTable() {
         }
         verify(mockKvs, times(1)).getMetadataForTable(NOTHING);
         verify(mockKvs, times(1)).getMetadataForTable(CONSERVATIVE);
+        verify(mockKvs, times(2)).sweepsEntriesInStrictlyNonDecreasingFashion();
         verifyNoMoreInteractions(mockKvs);
     }
 u}(j9 (4ecc8d0029caabad8e99518d16b13fcf35ba33ecj qatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractSerializableTransactionTest.javaj modifiedj K
j Kj K
j https://github.com/palantir/atlasdb/blob/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj https://github.com/palantir/atlasdb/raw/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.java?ref=e7ba03b6036b88245360a4753174849cab56ebd3j X  @@ -60,6 +60,7 @@
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionFailedNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionFailedRetriableException;
+import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.TransactionSerializableConflictException;
@@ -1081,10 +1082,16 @@ public void testNoMarkTableInvolvedSkipsLockChecksOnCommit() {
     @Test
     public void testMarkTableInvolvedDoesNoCheckLocksForExpiryOnCommitWhenNotRequired() {
         // Test table is not thorough, therefore no immutable timestamp lock checking
-        testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE);
+        assertThatCode(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE))
+                .doesNotThrowAnyException();
 
-        // Test table is thorough, but still no immutable timestamp lock checking
-        testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH);
+        if (keyValueService.sweepsEntriesInStrictlyNonDecreasingFashion()) {
+            assertThatCode(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
+                    .doesNotThrowAnyException();
+        } else {
+            assertThatThrownBy(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
+                    .isExactlyInstanceOf(TransactionLockTimeoutException.class);
+        }
     }
 
     @Testu}(j9 (864d8b372d38e6bbe575244e1b439a23398db117j Uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/TableMigratorTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.javaj https://github.com/palantir/atlasdb/raw/e7ba03b6036b88245360a4753174849cab56ebd3/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.java?ref=e7ba03b6036b88245360a4753174849cab56ebd3j X  @@ -89,7 +89,7 @@ public void testMigrationToDifferentKvs() throws TableMappingNotFoundException {
 
         final InMemoryKeyValueService kvs2 = new InMemoryKeyValueService(false);
         final ConflictDetectionManager cdm2 = ConflictDetectionManagers.createWithNoConflictDetection();
-        final SweepStrategyManager ssm2 = SweepStrategyManagers.completelyConservative();
+        final SweepStrategyManager ssm2 = SweepStrategyManagers.completelyConservative(kvs2);
         final MetricsManager metricsManager = MetricsManagers.createForTests();
         final TestTransactionManagerImpl txManager2 = new TestTransactionManagerImpl(
                 metricsManager,
@@ -128,7 +128,7 @@ public void testMigrationToDifferentKvs() throws TableMappingNotFoundException {
         checkpointer.deleteCheckpoints();
 
         final ConflictDetectionManager verifyCdm = ConflictDetectionManagers.createWithNoConflictDetection();
-        final SweepStrategyManager verifySsm = SweepStrategyManagers.completelyConservative();
+        final SweepStrategyManager verifySsm = SweepStrategyManagers.completelyConservative(kvs2);
         final TestTransactionManagerImpl verifyTxManager = new TestTransactionManagerImpl(
                 metricsManager,
                 kvs2,ueu(d7b2b3f87906fa34282b8c925564001a39f16f09}(sha(d7b2b3f87906fa34282b8c925564001a39f16f09node_idEC_kwDOAjP5fdoAKGQ3YjJiM2Y4NzkwNmZhMzQyODJiOGM5MjU1NjQwMDFhMzlmMTZmMDkcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-04-10T14:29:55Zu	committer}(j( David Schlosnaglej* davids@palantir.comj, 2023-04-10T17:31:10Zumessage'Multithreaded persistent timestamp testtree}(j  (058ce05c51202f0f67650bf9a92c203b84f2e60furl`https://api.github.com/repos/palantir/atlasdb/git/trees/058ce05c51202f0f67650bf9a92c203b84f2e60fuj8 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d7b2b3f87906fa34282b8c925564001a39f16f09
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmQ0R+AACgkQR9hsJ74Q
0l9dbAf/ZwPqZxLDxyn6i4VGcxglfj2wsAm6gvg+QzfxmAYQkaFKPufYRLzviJV3
6mdOyFgKkjigBEAY9BCnlhCwqQqQXQj80ARhJ1ehOTtF5RO4u0Bx16iizkw2aE2B
eSMarzM4vq5WhK+2OXkxb8El6QGZGTnLev8/AGpm5pnYNzjBQ6cTCFJe0qtfC1WV
ygObBPFV6By4icfLZEwfpC+e56f40/IZILyQRT9AzK3ZCx3Meky7qp5DwUUwQlhy
P+S+brURN9ilIAws5ATJPIKmdzoCJb3h7deY/XTVMK/KMxKBWamcosFwvGEGWN9q
FSiDaKvjeW0K8udDS3fBUTsggyrfLA==
=wu0M
-----END PGP SIGNATURE-----payloadX
  tree 058ce05c51202f0f67650bf9a92c203b84f2e60f
parent f543584dc5a49d081d16f535500baff12f56075e
author David Schlosnagle <davids@palantir.com> 1681136995 -0400
committer David Schlosnagle <davids@palantir.com> 1681147870 -0400

Multithreaded persistent timestamp test
uuj8 ^https://api.github.com/repos/palantir/atlasdb/commits/d7b2b3f87906fa34282b8c925564001a39f16f09html_urlShttps://github.com/palantir/atlasdb/commit/d7b2b3f87906fa34282b8c925564001a39f16f09comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d7b2b3f87906fa34282b8c925564001a39f16f09/commentsj& }(loginschlosnaidMBj" MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j8 %https://api.github.com/users/schlosnajF https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj. }(jK schlosnajM MBj" MDQ6VXNlcjU0NTk0jO 1https://avatars.githubusercontent.com/u/54594?v=4jQ h5j8 %https://api.github.com/users/schlosnajF https://github.com/schlosnajT /https://api.github.com/users/schlosna/followersjV <https://api.github.com/users/schlosna/following{/other_user}jX 5https://api.github.com/users/schlosna/gists{/gist_id}jZ <https://api.github.com/users/schlosna/starred{/owner}{/repo}j\ 3https://api.github.com/users/schlosna/subscriptionsj^ *https://api.github.com/users/schlosna/orgsj` +https://api.github.com/users/schlosna/reposjb 6https://api.github.com/users/schlosna/events{/privacy}jd 5https://api.github.com/users/schlosna/received_eventsjf Userjh uparents]}(j  (f543584dc5a49d081d16f535500baff12f56075ej8 ^https://api.github.com/repos/palantir/atlasdb/commits/f543584dc5a49d081d16f535500baff12f56075ejF Shttps://github.com/palantir/atlasdb/commit/f543584dc5a49d081d16f535500baff12f56075euastats}(totalK*	additionsK*	deletionsK ufiles]}(j  (3bf9e9de0ccce07c5f803f25f583d7dbcd02d083filenameQtimestamp-impl/src/test/java/com/palantir/timestamp/PersistentUpperLimitTest.javastatusmodifiedj K*j K changesK*blob_urlhttps://github.com/palantir/atlasdb/blob/d7b2b3f87906fa34282b8c925564001a39f16f09/timestamp-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentUpperLimitTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d7b2b3f87906fa34282b8c925564001a39f16f09/timestamp-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentUpperLimitTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timestamp-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentUpperLimitTest.java?ref=d7b2b3f87906fa34282b8c925564001a39f16f09patchX&	  @@ -24,6 +24,17 @@
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
 
+import com.google.common.base.Stopwatch;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import java.time.Duration;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.concurrent.Executors;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicLong;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -111,4 +122,35 @@ public void shouldNotChangeTheCurrentUpperLimitIfItFailsToPersist() {
 
         assertThat(upperLimit.get()).isEqualTo(INITIAL_UPPER_LIMIT);
     }
+
+    @Test
+    public void shouldSurviveStressTest() throws Exception {
+        ListeningExecutorService executor = MoreExecutors.listeningDecorator(Executors.newWorkStealingPool());
+        try {
+            Stopwatch timer = Stopwatch.createStarted();
+            AtomicLong expected = new AtomicLong(TIMESTAMP);
+            upperLimit.increaseToAtLeast(expected.get());
+            assertThat(upperLimit.get()).isGreaterThanOrEqualTo(TIMESTAMP);
+
+            final int iterations = 1_000_000;
+            List<ListenableFuture<?>> futures = new ArrayList<>(iterations);
+            for (int i = 0; i < iterations; i++) {
+                futures.add(executor.submit(() -> {
+                    long newLimit = expected.addAndGet(123);
+                    upperLimit.increaseToAtLeast(newLimit);
+                    assertThat(upperLimit.get()).isGreaterThanOrEqualTo(newLimit);
+                }));
+            }
+            executor.shutdown();
+            assertThat(Futures.allAsList(futures).get()).hasSize(iterations);
+            assertThat(upperLimit.get()).isGreaterThanOrEqualTo(expected.get());
+            assertThat(timer.stop().elapsed()).isLessThan(Duration.ofSeconds(10));
+        } finally {
+            executor.shutdown();
+            assertThat(executor.shutdownNow()).isEmpty();
+            assertThat(executor.awaitTermination(5, TimeUnit.SECONDS))
+                    .as("PersistentTimestamp increase tasks did not finish")
+                    .isTrue();
+        }
+    }
 }uau(1cb94590d97ed9790b54656beb99c3cfa561e2ec}(sha(1cb94590d97ed9790b54656beb99c3cfa561e2ecnode_idEC_kwDOAjP5fdoAKDFjYjk0NTkwZDk3ZWQ5NzkwYjU0NjU2YmViOTljM2NmYTU2MWUyZWMcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-08-08T21:04:00Zu	committer}(j Tom Petraccaj tpetracca@palantir.comj 2023-08-08T21:04:00Zumessageuse deafult revapi configtree}(j (25a03eeb38b7edf9ffb63437a8f5a99cd2a13f2burl`https://api.github.com/repos/palantir/atlasdb/git/trees/25a03eeb38b7edf9ffb63437a8f5a99cd2a13f2buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1cb94590d97ed9790b54656beb99c3cfa561e2ec
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEHTC5rqjQ6qmsb7sZRnUGJaXvqFMFAmTSrcAACgkQRnUGJaXv
qFMPjQgA0lL72u0KUfe3jcYyccjoXkqbrR9Wo0Oy2RaF/DnslywfgwRPPPN1G1Uu
Oif7IZkfC4w1vSnHWqIl9n4fj9QhdPDosucVbtPftfdQA0PfZI7rnIIrEJCTGLYK
79s2O/BYEsc5PMRQE+QnRFzgLeN90d6T4Yq/D7hkFR4a9pIyLDqjWIWTZa0afztl
ditFOYq0SPfHFgEQc/IAsezfotyFvhBmtvXRUvIR5Al00E3HrMxAKUcHjpwFtuov
ZrguHQT5FqKNUiWRcItENzXcfGlpH9U3fEKdkYd/2K5sAUrwTZ7s3c5JXd/0NiFo
Z9ZZy+ThqsF1ccxUeRGfOjEA1OmnZA==
=Gzx7
-----END PGP SIGNATURE-----     payloadtree 25a03eeb38b7edf9ffb63437a8f5a99cd2a13f2b
parent d04ff4a19366637694f234ec45ff273546be9019
author Tom Petracca <tpetracca@palantir.com> 1691528640 -0400
committer Tom Petracca <tpetracca@palantir.com> 1691528640 -0400

use deafult revapi config
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/1cb94590d97ed9790b54656beb99c3cfa561e2echtml_urlShttps://github.com/palantir/atlasdb/commit/1cb94590d97ed9790b54656beb99c3cfa561e2eccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1cb94590d97ed9790b54656beb99c3cfa561e2ec/commentsj }(login	tpetraccaidJ& j MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5j &https://api.github.com/users/tpetraccaj https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminuj }(j 	tpetraccaj J& j MDQ6VXNlcjI1NTQzMjg=j 3https://avatars.githubusercontent.com/u/2554328?v=4j h5j &https://api.github.com/users/tpetraccaj https://github.com/tpetraccaj 0https://api.github.com/users/tpetracca/followersj =https://api.github.com/users/tpetracca/following{/other_user}j 6https://api.github.com/users/tpetracca/gists{/gist_id}j =https://api.github.com/users/tpetracca/starred{/owner}{/repo}j 4https://api.github.com/users/tpetracca/subscriptionsj +https://api.github.com/users/tpetracca/orgsj ,https://api.github.com/users/tpetracca/reposj 7https://api.github.com/users/tpetracca/events{/privacy}j 6https://api.github.com/users/tpetracca/received_eventsj Userj uparents]}(j (d04ff4a19366637694f234ec45ff273546be9019j ^https://api.github.com/repos/palantir/atlasdb/commits/d04ff4a19366637694f234ec45ff273546be9019j Shttps://github.com/palantir/atlasdb/commit/d04ff4a19366637694f234ec45ff273546be9019uastats}(totalK	additionsK 	deletionsKufiles]}(j (1fc9ac5c4a1a439011778a07639126259a58e6c5filenameatlasdb-config/build.gradlestatusmodifiedj K j KchangesKblob_urlohttps://github.com/palantir/atlasdb/blob/1cb94590d97ed9790b54656beb99c3cfa561e2ec/atlasdb-config%2Fbuild.gradleraw_urlnhttps://github.com/palantir/atlasdb/raw/1cb94590d97ed9790b54656beb99c3cfa561e2ec/atlasdb-config%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fbuild.gradle?ref=1cb94590d97ed9790b54656beb99c3cfa561e2ecpatch@@ -87,7 +87,3 @@ dependencies {
     // Needed for Jersey Response-based tests
     testImplementation 'org.glassfish.jersey.core:jersey-common'
 }
-
-revapi {
-    oldVersion = '0.909.0'
-}uau(2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30}(sha(2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30node_idEC_kwDOAjP5fdoAKDJlZjZhZTNhZjBkYzBiMGY0NWViOWE0NmZlMDNiOWUzOWNhMDRkMzAcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-05-22T09:30:29Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-05-22T09:30:29ZumessageAutorelease 0.860.0

[skip ci]tree}(j (dc855a99bc91a76eeca5feb693a92c3a89fabbcaurl`https://api.github.com/repos/palantir/atlasdb/git/trees/dc855a99bc91a76eeca5feb693a92c3a89fabbcauj& bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRrNjoACgkQhbrR8ip7mDCeswD/SOcP4/AhaOro5VF7VlDpQ3FF
0l8JK5M1QJU2aJkxOI8A/iBibqAeEa1KpQ6JAqOK2uDAfAr+s4b2Ni2iQqNsBt6v
=49XQ
-----END PGP SIGNATURE-----
payloadX0  tree dc855a99bc91a76eeca5feb693a92c3a89fabbca
parent 84183ae4ade527e842224fdcf7f03be5f86eca58
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684747829 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684747829 +0000

Autorelease 0.860.0

[skip ci]uuj& ^https://api.github.com/repos/palantir/atlasdb/commits/2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30html_urlShttps://github.com/palantir/atlasdb/commit/2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30/commentsj }(loginsvc-autoreleaseidJ(j MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j& ,https://api.github.com/users/svc-autoreleasej4 "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj }(j9 svc-autoreleasej; J(j MDQ6VXNlcjUxNzE4MzQ2j= 4https://avatars.githubusercontent.com/u/51718346?v=4j? h5j& ,https://api.github.com/users/svc-autoreleasej4 "https://github.com/svc-autoreleasejB 6https://api.github.com/users/svc-autorelease/followersjD Chttps://api.github.com/users/svc-autorelease/following{/other_user}jF <https://api.github.com/users/svc-autorelease/gists{/gist_id}jH Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jJ :https://api.github.com/users/svc-autorelease/subscriptionsjL 1https://api.github.com/users/svc-autorelease/orgsjN 2https://api.github.com/users/svc-autorelease/reposjP =https://api.github.com/users/svc-autorelease/events{/privacy}jR <https://api.github.com/users/svc-autorelease/received_eventsjT UserjV uparents]}(j (84183ae4ade527e842224fdcf7f03be5f86eca58j& ^https://api.github.com/repos/palantir/atlasdb/commits/84183ae4ade527e842224fdcf7f03be5f86eca58j4 Shttps://github.com/palantir/atlasdb/commit/84183ae4ade527e842224fdcf7f03be5f86eca58uastats}(totalK 	additionsK 	deletionsK ufiles]}(j (aceed5bc2b1874600ed6c3412972b87ad8b63a51filename changelog/0.860.0/pr-6410.v2.ymlstatusrenamedjp K jq K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30/changelog%2F0.860.0%2Fpr-6410.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30/changelog%2F0.860.0%2Fpr-6410.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.860.0%2Fpr-6410.v2.yml?ref=2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30previous_filename$changelog/@unreleased/pr-6410.v2.ymluau(a62a1aeb42c44c14fec778657fa83248661a73bb}(sha(a62a1aeb42c44c14fec778657fa83248661a73bbnode_idEC_kwDOAjP5fdoAKGE2MmExYWViNDJjNDRjMTRmZWM3Nzg2NTdmYTgzMjQ4NjYxYTczYmIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2022-12-02T13:33:10Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-07-14T14:24:14Zumessage
camel casetree}(j (6740def9ea9729092cd1f6a6969c05462c2cc0f2url`https://api.github.com/repos/palantir/atlasdb/git/trees/6740def9ea9729092cd1f6a6969c05462c2cc0f2uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a62a1aeb42c44c14fec778657fa83248661a73bb
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSxWo4ACgkQmPPOpKR4
XS2Dwgf/TS4Cs4nxepwiZWol8hZvWMHkYmaiTwCPKXvUpx+ChgcJ62qDMo/leUGA
inuZ0Y+mM4nrJo2joh32k0cTqndVhRkLNbBla4bnoG0M+diNzVyprVZbsRN5Zq8V
ECckHmztNfE6Uh72NtH2OHDXRwvy1YbyT5rZqObrhJxUpQEVAAPP4y7wFjounR/f
s2D86oWOqkKOkWHyZlfgTOjfqBrDRcvVWXM+CqUmbZLP6mOVlRLH8NrT0TZLmSQI
cFxnGWBatQR2qtUJ8IL021FgCl8GYSdJAgbczWJNa9KRd6QREG9oZHjFKgySAEJ0
9ujpsM+XdBBkECY7B8xlOpssRkZfLA==
=XtOs
-----END PGP SIGNATURE-----payloadtree 6740def9ea9729092cd1f6a6969c05462c2cc0f2
parent eacf5bfbd635873977c3bd319e070823305a6a0c
author Sam Kramer <skramer@palantir.com> 1669987990 +0000
committer Sam Kramer <skramer@palantir.com> 1689344654 +0100

camel case
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/a62a1aeb42c44c14fec778657fa83248661a73bbhtml_urlShttps://github.com/palantir/atlasdb/commit/a62a1aeb42c44c14fec778657fa83248661a73bbcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a62a1aeb42c44c14fec778657fa83248661a73bb/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (eacf5bfbd635873977c3bd319e070823305a6a0cj ^https://api.github.com/repos/palantir/atlasdb/commits/eacf5bfbd635873977c3bd319e070823305a6a0cj Shttps://github.com/palantir/atlasdb/commit/eacf5bfbd635873977c3bd319e070823305a6a0cuastats}(totalK	additionsK	deletionsKufiles]}(j (844c5975c711f26338dd89f038e2efdf6a9b4094filenameWdocs/source/configuration/key_value_service_configs/oracle_key_value_service_config.rststatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/a62a1aeb42c44c14fec778657fa83248661a73bb/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rstraw_urlhttps://github.com/palantir/atlasdb/raw/a62a1aeb42c44c14fec778657fa83248661a73bb/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rstcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rst?ref=a62a1aeb42c44c14fec778657fa83248661a73bbpatchX  @@ -214,7 +214,7 @@ To resolve, simply add the following configuration to your Oracle ddl configurat
         type: relational
         ddl:
           type: oracle
-          alter-tables-or-metadata-to-match-and-i-know-what-i-am-doing:
+          alterTablesOrMetadataToMatchAndIKnowWhatIAmDoing:
             - <table name>
 
 Note: Table names are case sensitive
@@ -224,6 +224,8 @@ effects are. For example, if the issue arose as two services are configured to u
 performing table mapping, then it is expected that this could break one of the services. However, that condition
 still satisfies the status quo, thus it's on the configurator to determine if this change is safe to make.
 
+The action that is ran is idempotent
+
 
 
 uau(d208b13b8180a01bf660acd0b53c5bc387576326}(sha(d208b13b8180a01bf660acd0b53c5bc387576326node_idEC_kwDOAjP5fdoAKGQyMDhiMTNiODE4MGEwMWJmNjYwYWNkMGI1M2M1YmMzODc1NzYzMjYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-11T13:04:36Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-04-11T13:04:36Zumessagechop and changetree}(j (eade7b12d3f1b35c30280d17b40bf802b61ed152url`https://api.github.com/repos/palantir/atlasdb/git/trees/eade7b12d3f1b35c30280d17b40bf802b61ed152uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d208b13b8180a01bf660acd0b53c5bc387576326
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ1WuUACgkQTLdFKain
zjzuswf9FLDp2G74dqrbzhcFqiZNfOjFr8QGPedbYbWfhsw8AuOgqrLD2bIASLh6
KI7jUXWuKmk/4s5xpWlLvpWMWQcWVIoUrwUkSprRvievggVwm5w6kzMLtQIiJPmu
9fa9gnuuMQmBaLz4ItbxKlG/AFo7h3Gf4gXSSOxxIG8HOy8oG6dkVsf5iAfyQXrL
GYQl+/Bhbrzwh6ud2JcghESOqns+SogvUZHKPZqVCXmpYR0nzidcuSWSwOjnC4k/
+i9QUJsWXygslN9BP1SfgvOwDPkpezoxWcDD54mLWVrQQlaMC2ZIbJOCyJXCixdk
Y/roBeaS21fkqeFk8NSfKuBourprLg==
=v7v2
-----END PGP SIGNATURE-----payloadtree eade7b12d3f1b35c30280d17b40bf802b61ed152
parent 8db067ba77a8780c353c30ac955d182c7696db6a
author Jeremy Kong <jkong@palantir.com> 1681218276 +0800
committer Jeremy Kong <jkong@palantir.com> 1681218276 +0800

chop and change
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/d208b13b8180a01bf660acd0b53c5bc387576326html_urlShttps://github.com/palantir/atlasdb/commit/d208b13b8180a01bf660acd0b53c5bc387576326comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d208b13b8180a01bf660acd0b53c5bc387576326/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j" https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj
 }(j' 
jeremyk-91j) JZ j MDQ6VXNlcjU5NTU1MTA=j+ 3https://avatars.githubusercontent.com/u/5955510?v=4j- h5j 'https://api.github.com/users/jeremyk-91j" https://github.com/jeremyk-91j0 1https://api.github.com/users/jeremyk-91/followersj2 >https://api.github.com/users/jeremyk-91/following{/other_user}j4 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j6 >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j8 5https://api.github.com/users/jeremyk-91/subscriptionsj: ,https://api.github.com/users/jeremyk-91/orgsj< -https://api.github.com/users/jeremyk-91/reposj> 8https://api.github.com/users/jeremyk-91/events{/privacy}j@ 7https://api.github.com/users/jeremyk-91/received_eventsjB UserjD uparents]}(j (8db067ba77a8780c353c30ac955d182c7696db6aj ^https://api.github.com/repos/palantir/atlasdb/commits/8db067ba77a8780c353c30ac955d182c7696db6aj" Shttps://github.com/palantir/atlasdb/commit/8db067ba77a8780c353c30ac955d182c7696db6auastats}(totalM1	additionsK	deletionsKtufiles](}(j (701232b8298038969aef97347bc63b1e57554bbafilenameXatlasdb-tests-shared/src/main/java/com/palantir/timelock/paxos/InMemoryTimeLockRule.javastatusmodifiedj^ Kj_ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/d208b13b8180a01bf660acd0b53c5bc387576326/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimeLockRule.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d208b13b8180a01bf660acd0b53c5bc387576326/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimeLockRule.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimeLockRule.java?ref=d208b13b8180a01bf660acd0b53c5bc387576326patchXe  @@ -20,6 +20,7 @@
 import com.palantir.atlasdb.timelock.AsyncTimelockService;
 import com.palantir.atlasdb.timelock.JerseyAsyncTimelockResource;
 import com.palantir.atlasdb.timelock.TimeLockServices;
+import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.lock.LockService;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.timestamp.ManagedTimestampService;
@@ -66,11 +67,6 @@ public LockService getLockService() {
         return services.getLockService();
     }
 
-    @Override
-    public JerseyAsyncTimelockResource getTimelockResource() {
-        return services.getTimelockResource();
-    }
-
     @Override
     public AsyncTimelockService getTimelockService() {
         return services.getTimelockService();
@@ -81,6 +77,11 @@ public TimestampManagementService getTimestampManagementService() {
         return services.getTimestampManagementService();
     }
 
+    @Override
+    public LockLog getLockLog() {
+        return services.getLockLog();
+    }
+
     public TimelockService getLegacyTimelockService() {
         return services.getLegacyTimelockService();
     }u}(j (88c6bde476c5d98c8bc57f0e3018212a1dc6fa0ejd \atlasdb-tests-shared/src/main/java/com/palantir/timelock/paxos/InMemoryTimelockServices.javajf modifiedj^ Kj_ Kjh Kji https://github.com/palantir/atlasdb/blob/d208b13b8180a01bf660acd0b53c5bc387576326/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.javajk https://github.com/palantir/atlasdb/raw/d208b13b8180a01bf660acd0b53c5bc387576326/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.javajm https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.java?ref=d208b13b8180a01bf660acd0b53c5bc387576326jo X  @@ -26,6 +26,7 @@
 import com.palantir.atlasdb.timelock.JerseyAsyncTimelockResource;
 import com.palantir.atlasdb.timelock.TimeLockServices;
 import com.palantir.atlasdb.timelock.api.ConjureTimelockService;
+import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.conjure.java.api.config.service.PartialServiceConfiguration;
@@ -205,11 +206,6 @@ public LockService getLockService() {
         return delegate.getLockService();
     }
 
-    @Override
-    public JerseyAsyncTimelockResource getTimelockResource() {
-        return delegate.getTimelockResource();
-    }
-
     @Override
     public AsyncTimelockService getTimelockService() {
         return delegate.getTimelockService();
@@ -220,6 +216,11 @@ public TimestampManagementService getTimestampManagementService() {
         return delegate.getTimestampManagementService();
     }
 
+    @Override
+    public LockLog getLockLog() {
+        return delegate.getLockLog();
+    }
+
     public ManagedTimestampService getManagedTimestampService() {
         return delegate.getTimelockService();
     }u}(j (b8d3c19e33a2a7f5a650554e279f397bc730518cjd Ztimelock-agent/src/main/java/com/palantir/timelock/paxos/AsyncTimeLockServicesCreator.javajf modifiedj^ Kj_ Kjh Kji https://github.com/palantir/atlasdb/blob/d208b13b8180a01bf660acd0b53c5bc387576326/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.javajk https://github.com/palantir/atlasdb/raw/d208b13b8180a01bf660acd0b53c5bc387576326/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.javajm https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.java?ref=d208b13b8180a01bf660acd0b53c5bc387576326jo X  @@ -73,16 +73,13 @@ public TimeLockServices createTimeLockServices(
                 AsyncTimelockService.class,
                 () -> createRawAsyncTimelockService(client, rawTimestampServiceSupplier, maybeEnhancedLockLog));
 
-        JerseyAsyncTimelockResource asyncTimelockResource =
-                new JerseyAsyncTimelockResource(maybeEnhancedLockLog, asyncTimelockService);
-
         LockService lockService = leadershipComponents.wrapInLeadershipProxy(
                 client,
                 LockService.class,
                 Suppliers.compose(NonTransactionalLockService::new, rawLockServiceSupplier::get));
 
         return TimeLockServices.create(
-                asyncTimelockService, lockService, asyncTimelockService, asyncTimelockResource, asyncTimelockService);
+                asyncTimelockService, lockService, asyncTimelockService, asyncTimelockService, maybeEnhancedLockLog);
     }
 
     private AsyncTimelockService createRawAsyncTimelockService(u}(j (c20be1260b8abc608cf4fcf7f917f2b4831730d0jd Ytimelock-agent/src/main/java/com/palantir/timelock/paxos/NonConjureTimelockResources.javajf modifiedj^ Kj_ Kjh K	ji https://github.com/palantir/atlasdb/blob/d208b13b8180a01bf660acd0b53c5bc387576326/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FNonConjureTimelockResources.javajk https://github.com/palantir/atlasdb/raw/d208b13b8180a01bf660acd0b53c5bc387576326/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FNonConjureTimelockResources.javajm https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FNonConjureTimelockResources.java?ref=d208b13b8180a01bf660acd0b53c5bc387576326jo X+  @@ -18,13 +18,16 @@
 
 import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.http.RedirectRetryTargeter;
+import com.palantir.atlasdb.timelock.JerseyAsyncTimelockResource;
 import com.palantir.atlasdb.timelock.LockV1Resource;
 import com.palantir.atlasdb.timelock.LockV1ResourceEndpoints;
 import com.palantir.atlasdb.timelock.TimelockNamespaces;
 import com.palantir.atlasdb.timelock.TimestampManagementResource;
 import com.palantir.atlasdb.timelock.TimestampManagementResourceEndpoints;
 import com.palantir.atlasdb.timelock.TimestampResource;
 import com.palantir.atlasdb.timelock.TimestampResourceEndpoints;
+import com.palantir.atlasdb.timelock.UndertowAsyncTimelockResource;
+import com.palantir.atlasdb.timelock.UndertowAsyncTimelockResourceEndpoints;
 import com.palantir.conjure.java.undertow.lib.UndertowService;
 import java.util.Set;
 import java.util.stream.Collectors;
@@ -39,7 +42,8 @@ public static Set<UndertowService> createUndertowServices(
         Set<UndertowService> rawServices = ImmutableSet.of(
                 LockV1ResourceEndpoints.of(new LockV1Resource(namespaces)),
                 TimestampResourceEndpoints.of(new TimestampResource(namespaces)),
-                TimestampManagementResourceEndpoints.of(new TimestampManagementResource(namespaces)));
+                TimestampManagementResourceEndpoints.of(new TimestampManagementResource(namespaces)),
+                UndertowAsyncTimelockResourceEndpoints.of(new UndertowAsyncTimelockResource(namespaces)));
 
         return rawServices.stream()
                 .map(service -> new TimelockUndertowExceptionWrapper(service, redirectRetryTargeter))
@@ -50,6 +54,7 @@ public static Set<Object> createJerseyResources(TimelockNamespaces namespaces) {
         return ImmutableSet.of(
                 new LockV1Resource(namespaces),
                 new TimestampResource(namespaces),
-                new TimestampManagementResource(namespaces));
+                new TimestampManagementResource(namespaces),
+                new JerseyAsyncTimelockResource(namespaces));
     }
 }u}(j (982216eae6a97fa1a8433e4f0cc254b2857140edjd Ktimelock-agent/src/main/java/com/palantir/timelock/paxos/TimeLockAgent.javajf modifiedj^ K j_ Kjh Kji https://github.com/palantir/atlasdb/blob/d208b13b8180a01bf660acd0b53c5bc387576326/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javajk https://github.com/palantir/atlasdb/raw/d208b13b8180a01bf660acd0b53c5bc387576326/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javajm https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.java?ref=d208b13b8180a01bf660acd0b53c5bc387576326jo X  @@ -37,7 +37,6 @@
 import com.palantir.atlasdb.timelock.AsyncTimelockService;
 import com.palantir.atlasdb.timelock.ConjureLockWatchingResource;
 import com.palantir.atlasdb.timelock.ConjureTimelockResource;
-import com.palantir.atlasdb.timelock.TimeLockResource;
 import com.palantir.atlasdb.timelock.TimeLockServices;
 import com.palantir.atlasdb.timelock.TimelockNamespaces;
 import com.palantir.atlasdb.timelock.TooManyRequestsExceptionMapper;
@@ -327,9 +326,6 @@ private void createAndRegisterResources() {
         registerManagementResource();
         healthCheck = paxosResources.leadershipComponents().healthCheck(namespaces::getActiveClients);
 
-        TimeLockResource resource = TimeLockResource.create(namespaces);
-        registrar.accept(resource);
-
         Function<String, LockService> lockServiceGetter =
                 namespace -> namespaces.get(namespace).getLockService();
         Function<String, AsyncTimelockService> asyncTimelockServiceGetter =u}(j (c5c11826165eb5f2bf8faf627d46b6c97723c701jd Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/JerseyAsyncTimelockResource.javajf modifiedj^ K.j_ K'jh KUji https://github.com/palantir/atlasdb/blob/d208b13b8180a01bf660acd0b53c5bc387576326/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FJerseyAsyncTimelockResource.javajk https://github.com/palantir/atlasdb/raw/d208b13b8180a01bf660acd0b53c5bc387576326/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FJerseyAsyncTimelockResource.javajm https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FJerseyAsyncTimelockResource.java?ref=d208b13b8180a01bf660acd0b53c5bc387576326jo X%  @@ -19,7 +19,6 @@
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.palantir.atlasdb.debug.LockDiagnosticInfo;
-import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.lock.client.IdentifiedLockRequest;
 import com.palantir.lock.v2.IdentifiedTimeLockRequest;
@@ -41,62 +40,65 @@
 import javax.ws.rs.GET;
 import javax.ws.rs.POST;
 import javax.ws.rs.Path;
+import javax.ws.rs.PathParam;
 import javax.ws.rs.Produces;
 import javax.ws.rs.QueryParam;
 import javax.ws.rs.container.AsyncResponse;
 import javax.ws.rs.container.Suspended;
 import javax.ws.rs.core.MediaType;
 
-@Path("/timelock")
+@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}/timelock")
 @Consumes(MediaType.APPLICATION_JSON)
 @Produces(MediaType.APPLICATION_JSON)
 public class JerseyAsyncTimelockResource {
     private static final ExecutorService asyncResponseExecutor = PTExecutors.newFixedThreadPool(64);
-    private final LockLog lockLog;
-    private final AsyncTimelockService timelock;
+    private final TimelockNamespaces timelockNamespaces;
 
-    public JerseyAsyncTimelockResource(LockLog lockLog, AsyncTimelockService timelock) {
-        this.lockLog = lockLog;
-        this.timelock = timelock;
+    public JerseyAsyncTimelockResource(TimelockNamespaces timelockNamespaces) {
+        this.timelockNamespaces = timelockNamespaces;
     }
 
     @POST
     @Path("fresh-timestamp")
-    public void getFreshTimestamp(@Suspended final AsyncResponse response) {
-        addJerseyCallback(timelock.getFreshTimestampAsync(), response);
+    public void getFreshTimestamp(@Suspended final AsyncResponse response, @PathParam("namespace") String namespace) {
+        addJerseyCallback(getAsyncTimelockService(namespace).getFreshTimestampAsync(), response);
     }
 
     @POST
     @Path("fresh-timestamps")
     public void getFreshTimestamps(
-            @Suspended final AsyncResponse response, @Safe @QueryParam("number") int numTimestampsRequested) {
-        addJerseyCallback(timelock.getFreshTimestampsAsync(numTimestampsRequested), response);
+            @Suspended final AsyncResponse response, @PathParam("namespace") String namespace,
+            @Safe @QueryParam("number") int numTimestampsRequested) {
+        addJerseyCallback(getAsyncTimelockService(namespace).getFreshTimestampsAsync(numTimestampsRequested), response);
     }
 
     @POST
     @Path("lock-immutable-timestamp")
-    public LockImmutableTimestampResponse lockImmutableTimestamp(IdentifiedTimeLockRequest request) {
-        return timelock.lockImmutableTimestamp(request);
+    public LockImmutableTimestampResponse lockImmutableTimestamp(@PathParam("namespace") String namespace,
+                                                                 IdentifiedTimeLockRequest request) {
+        return getAsyncTimelockService(namespace).lockImmutableTimestamp(request);
     }
 
     @POST
     @Path("start-atlasdb-transaction")
-    public StartAtlasDbTransactionResponse deprecatedStartTransactionV1(IdentifiedTimeLockRequest request) {
-        return timelock.deprecatedStartTransaction(request);
+    public StartAtlasDbTransactionResponse deprecatedStartTransactionV1(@PathParam("namespace") String namespace, IdentifiedTimeLockRequest request) {
+        return getAsyncTimelockService(namespace).deprecatedStartTransaction(request);
     }
 
     @POST
     @Path("start-identified-atlasdb-transaction")
     public StartIdentifiedAtlasDbTransactionResponse deprecatedStartTransactionV2(
+            @PathParam("namespace") String namespace,
             StartIdentifiedAtlasDbTransactionRequest request) {
-        return timelock.startTransaction(request).toStartTransactionResponse();
+        return getAsyncTimelockService(namespace).startTransaction(request).toStartTransactionResponse();
     }
 
     @POST
     @Path("start-atlasdb-transaction-v3")
     public StartAtlasDbTransactionResponseV3 deprecatedStartTransactionV3(
+            @PathParam("namespace") String namespace,
             StartIdentifiedAtlasDbTransactionRequest request) {
-        return timelock.startTransaction(request);
+        return getAsyncTimelockService(namespace).startTransaction(request);
     }
 
     /**
@@ -108,62 +110,63 @@ public StartAtlasDbTransactionResponseV3 deprecatedStartTransactionV3(
      */
     @POST
     @Path("start-atlasdb-transaction-v4")
-    public void startTransactions(@Suspended final AsyncResponse response, StartTransactionRequestV4 request) {
-        addJerseyCallback(timelock.startTransactionsAsync(request), response);
+    public void startTransactions(@Suspended final AsyncResponse response, @PathParam("namespace") String namespace,
+                                  StartTransactionRequestV4 request) {
+        addJerseyCallback(getAsyncTimelockService(namespace).startTransactionsAsync(request), response);
     }
 
     @POST
     @Path("immutable-timestamp")
-    public long getImmutableTimestamp() {
-        return timelock.getImmutableTimestamp();
+    public long getImmutableTimestamp(@PathParam("namespace") String namespace) {
+        return getAsyncTimelockService(namespace).getImmutableTimestamp();
     }
 
     @POST
     @Path("lock")
-    public void deprecatedLock(@Suspended final AsyncResponse response, IdentifiedLockRequest request) {
-        addJerseyCallback(timelock.deprecatedLock(request), response);
+    public void deprecatedLock(@Suspended final AsyncResponse response, @PathParam("namespace") String namespace, IdentifiedLockRequest request) {
+        addJerseyCallback(getAsyncTimelockService(namespace).deprecatedLock(request), response);
     }
 
     @POST
     @Path("lock-v2")
-    public void lock(@Suspended final AsyncResponse response, IdentifiedLockRequest request) {
-        addJerseyCallback(timelock.lock(request), response);
+    public void lock(@Suspended final AsyncResponse response, @PathParam("namespace") String namespace, IdentifiedLockRequest request) {
+        addJerseyCallback(getAsyncTimelockService(namespace).lock(request), response);
     }
 
     @POST
     @Path("await-locks")
-    public void waitForLocks(@Suspended final AsyncResponse response, WaitForLocksRequest request) {
-        addJerseyCallback(timelock.waitForLocks(request), response);
+    public void waitForLocks(@Suspended final AsyncResponse response, @PathParam("namespace") String namespace, WaitForLocksRequest request) {
+        addJerseyCallback(getAsyncTimelockService(namespace).waitForLocks(request), response);
     }
 
     @POST
     @Path("refresh-locks")
-    public void deprecatedRefreshLockLeases(@Suspended final AsyncResponse response, Set<LockToken> tokens) {
-        addJerseyCallback(timelock.deprecatedRefreshLockLeases(tokens), response);
+    public void deprecatedRefreshLockLeases(@Suspended final AsyncResponse response, @PathParam("namespace") String namespace, Set<LockToken> tokens) {
+        addJerseyCallback(getAsyncTimelockService(namespace).deprecatedRefreshLockLeases(tokens), response);
     }
 
     @POST
     @Path("refresh-locks-v2")
-    public void refreshLockLeases(@Suspended final AsyncResponse response, Set<LockToken> tokens) {
-        addJerseyCallback(timelock.refreshLockLeases(tokens), response);
+    public void refreshLockLeases(@Suspended final AsyncResponse response, @PathParam("namespace") String namespace, Set<LockToken> tokens) {
+        addJerseyCallback(getAsyncTimelockService(namespace).refreshLockLeases(tokens), response);
     }
 
     @GET
     @Path("leader-time")
-    public void getLeaderTime(@Suspended final AsyncResponse response) {
-        addJerseyCallback(timelock.leaderTime(), response);
+    public void getLeaderTime(@Suspended final AsyncResponse response, @PathParam("namespace") String namespace) {
+        addJerseyCallback(getAsyncTimelockService(namespace).leaderTime(), response);
     }
 
     @POST
     @Path("unlock")
-    public void unlock(@Suspended final AsyncResponse response, Set<LockToken> tokens) {
-        addJerseyCallback(timelock.unlock(tokens), response);
+    public void unlock(@Suspended final AsyncResponse response, @PathParam("namespace") String namespace, Set<LockToken> tokens) {
+        addJerseyCallback(getAsyncTimelockService(namespace).unlock(tokens), response);
     }
 
     @POST
     @Path("current-time-millis")
-    public long currentTimeMillis() {
-        return timelock.currentTimeMillis();
+    public long currentTimeMillis(@PathParam("namespace") String namespace) {
+        return getAsyncTimelockService(namespace).currentTimeMillis();
     }
 
     /**
@@ -173,8 +176,8 @@ public long currentTimeMillis() {
     @Deprecated
     @POST
     @Path("do-not-use-without-explicit-atlasdb-authorisation/lock-diagnostic-config")
-    public Optional<LockDiagnosticInfo> getEnhancedLockDiagnosticInfo(Set<UUID> requestIds) {
-        return lockLog.getAndLogLockDiagnosticInfo(requestIds);
+    public Optional<LockDiagnosticInfo> getEnhancedLockDiagnosticInfo(@PathParam("namespace") String namespace, Set<UUID> requestIds) {
+        return timelockNamespaces.get(namespace).getLockLog().getAndLogLockDiagnosticInfo(requestIds);
     }
 
     private void addJerseyCallback(ListenableFuture<?> result, AsyncResponse response) {
@@ -193,4 +196,8 @@ public void onFailure(Throwable thrown) {
                 },
                 asyncResponseExecutor);
     }
+
+    private AsyncTimelockService getAsyncTimelockService(String namespace) {
+        return timelockNamespaces.get(namespace).getTimelockService();
+    }
 }u}(j (e75e09992fce77d26c01b550f3465c00524f84dcjd Otimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimeLockResource.javajf removedj^ K j_ K*jh K*ji https://github.com/palantir/atlasdb/blob/8db067ba77a8780c353c30ac955d182c7696db6a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockResource.javajk https://github.com/palantir/atlasdb/raw/8db067ba77a8780c353c30ac955d182c7696db6a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockResource.javajm https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockResource.java?ref=8db067ba77a8780c353c30ac955d182c7696db6ajo X  @@ -1,42 +0,0 @@
-/*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.timelock;
-
-import com.palantir.logsafe.Safe;
-import javax.ws.rs.Path;
-import javax.ws.rs.PathParam;
-
-/**
- * DO NOT add new endpoints in here. Instead, define them as Conjure endpoints.
- */
-@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}")
-@Deprecated
-public final class TimeLockResource {
-    private final TimelockNamespaces namespaces;
-
-    private TimeLockResource(TimelockNamespaces namespaces) {
-        this.namespaces = namespaces;
-    }
-
-    public static TimeLockResource create(TimelockNamespaces namespaces) {
-        return new TimeLockResource(namespaces);
-    }
-
-    @Path("/timelock")
-    public JerseyAsyncTimelockResource getTimelockService(@Safe @PathParam("namespace") String namespace) {
-        return namespaces.get(namespace).getTimelockResource();
-    }
-}u}(j (2bbf10e457eb0e14f3ee897487ef3fc783dca850jd Otimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimeLockServices.javajf modifiedj^ Kj_ Kjh Kji https://github.com/palantir/atlasdb/blob/d208b13b8180a01bf660acd0b53c5bc387576326/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServices.javajk https://github.com/palantir/atlasdb/raw/d208b13b8180a01bf660acd0b53c5bc387576326/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServices.javajm https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServices.java?ref=d208b13b8180a01bf660acd0b53c5bc387576326jo X:  @@ -15,11 +15,13 @@
  */
 package com.palantir.atlasdb.timelock;
 
+import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.lock.LockService;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.timestamp.TimestampManagementService;
 import com.palantir.timestamp.TimestampService;
+import java.util.Optional;
 import java.util.stream.Stream;
 import org.immutables.value.Value;
 
@@ -31,33 +33,33 @@ static TimeLockServices create(
             TimestampService timestampService,
             LockService lockService,
             AsyncTimelockService timelockService,
-            JerseyAsyncTimelockResource timelockResource,
-            TimestampManagementService timestampManagementService) {
+            TimestampManagementService timestampManagementService,
+            LockLog lockLog) {
         return ImmutableTimeLockServices.builder()
                 .timestampService(timestampService)
                 .lockService(lockService)
                 .timestampManagementService(timestampManagementService)
                 .timelockService(timelockService)
-                .timelockResource(timelockResource)
+                .lockLog(lockLog)
                 .build();
     }
 
     TimestampService getTimestampService();
 
     LockService getLockService();
-    // The Jersey endpoints
-    JerseyAsyncTimelockResource getTimelockResource();
     // The RPC-independent leadership-enabled implementation of the timelock service
     AsyncTimelockService getTimelockService();
 
     TimestampManagementService getTimestampManagementService();
 
+    // Do not use without atlasdb team guidance
+    LockLog getLockLog();
+
     @Override
     default void close() {
         Stream.of(
                         getTimestampService(),
                         getLockService(),
-                        getTimelockResource(),
                         getTimelockService(),
                         getTimestampManagementService())
                 .filter(service -> service instanceof AutoCloseable)u}(j (b04633f7bcd3ef44152ad01b910a425fca05a653jd \timelock-impl/src/main/java/com/palantir/atlasdb/timelock/UndertowAsyncTimelockResource.javajf modifiedj^ Kmj_ Kjh Knji https://github.com/palantir/atlasdb/blob/d208b13b8180a01bf660acd0b53c5bc387576326/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FUndertowAsyncTimelockResource.javajk https://github.com/palantir/atlasdb/raw/d208b13b8180a01bf660acd0b53c5bc387576326/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FUndertowAsyncTimelockResource.javajm https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FUndertowAsyncTimelockResource.java?ref=d208b13b8180a01bf660acd0b53c5bc387576326jo X  @@ -17,9 +17,31 @@
 package com.palantir.atlasdb.timelock;
 
 import com.google.common.util.concurrent.ListenableFuture;
+import com.palantir.atlasdb.debug.LockDiagnosticInfo;
+import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.conjure.java.undertow.annotations.Handle;
 import com.palantir.conjure.java.undertow.annotations.HttpMethod;
+import com.palantir.lock.client.IdentifiedLockRequest;
+import com.palantir.lock.v2.IdentifiedTimeLockRequest;
+import com.palantir.lock.v2.LeaderTime;
+import com.palantir.lock.v2.LockImmutableTimestampResponse;
+import com.palantir.lock.v2.LockResponse;
+import com.palantir.lock.v2.LockResponseV2;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.v2.RefreshLockResponseV2;
+import com.palantir.lock.v2.StartAtlasDbTransactionResponse;
+import com.palantir.lock.v2.StartAtlasDbTransactionResponseV3;
+import com.palantir.lock.v2.StartIdentifiedAtlasDbTransactionRequest;
+import com.palantir.lock.v2.StartIdentifiedAtlasDbTransactionResponse;
+import com.palantir.lock.v2.StartTransactionRequestV4;
+import com.palantir.lock.v2.StartTransactionResponseV4;
+import com.palantir.lock.v2.WaitForLocksRequest;
+import com.palantir.lock.v2.WaitForLocksResponse;
 import com.palantir.logsafe.Safe;
+import com.palantir.timestamp.TimestampRange;
+import java.util.Optional;
+import java.util.Set;
+import java.util.UUID;
 
 public final class UndertowAsyncTimelockResource {
     private final TimelockNamespaces namespaces;
@@ -30,8 +52,94 @@ public UndertowAsyncTimelockResource(TimelockNamespaces namespaces) {
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/fresh-timestamp")
     public ListenableFuture<Long> getFreshTimestamp(@Safe @Handle.PathParam String namespace) {
-        return namespaces.get(namespace).getTimelockService().getFreshTimestampAsync();
+        return getTimelockService(namespace).getFreshTimestampAsync();
     }
 
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/fresh-timestamps")
+    public ListenableFuture<TimestampRange> getFreshTimestamps(
+            @Safe @Handle.PathParam String namespace, @Safe @Handle.QueryParam(value = "number") int numTimestampsRequested) {
+        return getTimelockService(namespace).getFreshTimestampsAsync(numTimestampsRequested);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/lock-immutable-timestamp")
+    public LockImmutableTimestampResponse lockImmutableTimestamp(@Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedTimeLockRequest request) {
+        return getTimelockService(namespace).lockImmutableTimestamp(request);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-atlasdb-transaction")
+    public StartAtlasDbTransactionResponse deprecatedStartTransactionV1(@Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedTimeLockRequest request) {
+        return getTimelockService(namespace).deprecatedStartTransaction(request);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-identified-atlasdb-transaction")
+    public StartIdentifiedAtlasDbTransactionResponse deprecatedStartTransactionV2(
+            @Safe @Handle.PathParam String namespace, @Handle.Body   StartIdentifiedAtlasDbTransactionRequest request) {
+        return getTimelockService(namespace).startTransaction(request).toStartTransactionResponse();
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-atlasdb-transaction-v3")
+    public StartAtlasDbTransactionResponseV3 deprecatedStartTransactionV3(
+            @Safe @Handle.PathParam String namespace, @Handle.Body             StartIdentifiedAtlasDbTransactionRequest request) {
+        return getTimelockService(namespace).startTransaction(request);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-atlasdb-transaction-v4")
+    public ListenableFuture<StartTransactionResponseV4> startTransactions(@Safe @Handle.PathParam String namespace, @Handle.Body  StartTransactionRequestV4 request) {
+        return getTimelockService(namespace).startTransactionsAsync(request);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/immutable-timestamp")
+    public long getImmutableTimestamp(@Safe @Handle.PathParam String namespace) {
+        return getTimelockService(namespace).getImmutableTimestamp();
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/lock")
+    public ListenableFuture<LockResponse> deprecatedLock(@Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedLockRequest request) {
+        return getTimelockService(namespace).deprecatedLock(request);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/lock-v2")
+    public ListenableFuture<LockResponseV2> lock(@Safe @Handle.PathParam String namespace, @Handle.Body  IdentifiedLockRequest request) {
+        return getTimelockService(namespace).lock(request);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/await-locks")
+    public ListenableFuture<WaitForLocksResponse> waitForLocks(@Safe @Handle.PathParam String namespace, @Handle.Body   WaitForLocksRequest request) {
+        return getTimelockService(namespace).waitForLocks(request);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/refresh-locks")
+    public ListenableFuture<Set<LockToken>> deprecatedRefreshLockLeases(@Safe @Handle.PathParam String namespace, @Handle.Body   Set<LockToken> tokens) {
+        return getTimelockService(namespace).deprecatedRefreshLockLeases(tokens);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/refresh-locks-v2")
+    public ListenableFuture<RefreshLockResponseV2> refreshLockLeases(@Safe @Handle.PathParam String namespace, @Handle.Body   Set<LockToken> tokens) {
+        return getTimelockService(namespace).refreshLockLeases(tokens);
+    }
+
+    @Handle(method = HttpMethod.GET, path = "/{namespace}/timelock/leader-time")
+    public ListenableFuture<LeaderTime> getLeaderTime(@Safe @Handle.PathParam String namespace) {
+        return getTimelockService(namespace).leaderTime();
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/unlock")
+    public ListenableFuture<Set<LockToken>> unlock(@Safe @Handle.PathParam String namespace, @Handle.Body  Set<LockToken> tokens) {
+        return getTimelockService(namespace).unlock(tokens);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/current-time-millis")
+    public long currentTimeMillis(@Safe @Handle.PathParam String namespace) {
+        return getTimelockService(namespace).currentTimeMillis();
+    }
+
+    // TODO(jkong): Remove this once PDS-95791 is resolved.
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/do-not-use-without-explicit-atlasdb-authorisation/lock-diagnostic-config")
+    public Optional<LockDiagnosticInfo> getEnhancedLockDiagnosticInfo(@Safe @Handle.PathParam String namespace, @Handle.Body  Set<UUID> requestIds) {
+        return namespaces.get(namespace).getLockLog().getAndLogLockDiagnosticInfo(requestIds);
+    }
 
+    private AsyncTimelockService getTimelockService(String namespace) {
+        return namespaces.get(namespace).getTimelockService();
+    }
 }u}(j (d7dd1f483b6cd3fcb6e12753510a3f1c6959972fjd Stimelock-impl/src/test/java/com/palantir/atlasdb/timelock/TimeLockServicesTest.javajf modifiedj^ Kj_ Kjh Kji https://github.com/palantir/atlasdb/blob/d208b13b8180a01bf660acd0b53c5bc387576326/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServicesTest.javajk https://github.com/palantir/atlasdb/raw/d208b13b8180a01bf660acd0b53c5bc387576326/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServicesTest.javajm https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServicesTest.java?ref=d208b13b8180a01bf660acd0b53c5bc387576326jo X  @@ -21,6 +21,7 @@
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
 
+import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.lock.CloseableLockService;
 import com.palantir.lock.LockService;
 import java.io.IOException;
@@ -33,7 +34,7 @@ public void doNotCloseRepeatedInterfaceMultipleTimes() throws IOException {
         AsyncTimelockService asyncTimelockService = mock(AsyncTimelockService.class);
         JerseyAsyncTimelockResource asyncTimelockResource = mock(JerseyAsyncTimelockResource.class);
 
-        getTimeLockServices(lockService, asyncTimelockService, asyncTimelockResource)
+        getTimeLockServices(lockService, asyncTimelockService)
                 .close();
 
         verify(asyncTimelockService, times(1)).close();
@@ -43,9 +44,8 @@ public void doNotCloseRepeatedInterfaceMultipleTimes() throws IOException {
     public void closesCloseableImplementationsOfNotNecessarilyCloseableInterfaces() throws IOException {
         CloseableLockService closeableLockService = mock(CloseableLockService.class);
         AsyncTimelockService asyncTimelockService = mock(AsyncTimelockService.class);
-        JerseyAsyncTimelockResource asyncTimelockResource = mock(JerseyAsyncTimelockResource.class);
 
-        getTimeLockServices(closeableLockService, asyncTimelockService, asyncTimelockResource)
+        getTimeLockServices(closeableLockService, asyncTimelockService)
                 .close();
 
         verify(closeableLockService).close();
@@ -55,12 +55,11 @@ public void closesCloseableImplementationsOfNotNecessarilyCloseableInterfaces()
     public void exceptionsWhenClosingDoNotAffectOverallClosure() throws IOException {
         CloseableLockService closeableLockService = mock(CloseableLockService.class);
         AsyncTimelockService asyncTimelockService = mock(AsyncTimelockService.class);
-        JerseyAsyncTimelockResource asyncTimelockResource = mock(JerseyAsyncTimelockResource.class);
 
         doThrow(new RuntimeException()).when(asyncTimelockService).close();
         doThrow(new RuntimeException()).when(closeableLockService).close();
 
-        getTimeLockServices(closeableLockService, asyncTimelockService, asyncTimelockResource)
+        getTimeLockServices(closeableLockService, asyncTimelockService)
                 .close();
 
         verify(closeableLockService).close();
@@ -69,9 +68,8 @@ public void exceptionsWhenClosingDoNotAffectOverallClosure() throws IOException
 
     private TimeLockServices getTimeLockServices(
             LockService lockService,
-            AsyncTimelockService asyncTimelockService,
-            JerseyAsyncTimelockResource asyncTimelockResource) {
+            AsyncTimelockService asyncTimelockService) {
         return TimeLockServices.create(
-                asyncTimelockService, lockService, asyncTimelockService, asyncTimelockResource, asyncTimelockService);
+                asyncTimelockService, lockService, asyncTimelockService, asyncTimelockService, mock(LockLog.class));
     }
 }ueu(189103902673322c071d2f23072c43ce74dddfb1}(sha(189103902673322c071d2f23072c43ce74dddfb1node_idEC_kwDOAjP5fdoAKDE4OTEwMzkwMjY3MzMyMmMwNzFkMmYyMzA3MmM0M2NlNzRkZGRmYjEcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-20T23:59:44Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-04-20T23:59:44Zumessage3build with 2xlarge, valueStressTest with 15 retriestree}(j (1ced792c805ac5e21645f22313d944ddcf6c10d5url`https://api.github.com/repos/palantir/atlasdb/git/trees/1ced792c805ac5e21645f22313d944ddcf6c10d5uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/189103902673322c071d2f23072c43ce74dddfb1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRB0fAACgkQPlMHVIT1
yhqe6wgAjRTfieY3PCJjkYyWx14wwawrWvOtOnMYzJEhLQhfUbKvh5SuTWZOcSHG
jeBg/uZz9VSoKPHecBgbIjUWBhREKjSdofAy/gEC8iwVEl5HnmibDlgPijszzx2g
u8spnjnhLYPZsNHjOrIDHnkcF3yhA6l2Vf4QhKaAHzzpqLZqpEM/N9ty8xndTIMn
Y95r817ZNXO+KVvTAWBBflIMSP0jxhuStcD+vt3hFO0EggEdqU6IrpU/q4h3zEVt
RdCu3fbrVugdZzl3ScT0/q7j6Tbfrn79pzIbJHEKRr/7BL3Q0qLBX0sFnKonvtFh
v/eSEO4Oqv1Yf2lBX94CCXO6XGKgNw==
=XF6W
-----END PGP SIGNATURE-----payloadX  tree 1ced792c805ac5e21645f22313d944ddcf6c10d5
parent a3df087c4d1197da01ae9c56061c6e983b5180da
author Ahmed Alouane <aalouane@palantir.com> 1682035184 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682035184 +0100

build with 2xlarge, valueStressTest with 15 retries
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/189103902673322c071d2f23072c43ce74dddfb1html_urlShttps://github.com/palantir/atlasdb/commit/189103902673322c071d2f23072c43ce74dddfb1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/189103902673322c071d2f23072c43ce74dddfb1/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j (a3df087c4d1197da01ae9c56061c6e983b5180daj ^https://api.github.com/repos/palantir/atlasdb/commits/a3df087c4d1197da01ae9c56061c6e983b5180daj Shttps://github.com/palantir/atlasdb/commit/a3df087c4d1197da01ae9c56061c6e983b5180dauastats}(totalK	additionsK	deletionsKufiles]}(j (1ecaff1e72cd85198756a38d513c8dcadc562b94filenamectimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchValueIntegrationTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/189103902673322c071d2f23072c43ce74dddfb1/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/189103902673322c071d2f23072c43ce74dddfb1/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.java?ref=189103902673322c071d2f23072c43ce74dddfb1patchX  @@ -545,7 +545,7 @@ public void lateAbortingTransactionDoesNotFlushValuesToCentralCache() {
     }
 
     @Test
-    @ShouldRetry // The test fails when trying to cache a value that is currently locked.
+    @ShouldRetry(numAttempts = 15) // The test fails when trying to cache a value that is currently locked.
     // The open question is whether this _should_ fail when there is a locked value being cached on top of, or if
     // there is a better way to handle this.
     public void valueStressTest() {uau(bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d}(sha(bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dnode_idEC_kwDOAjP5fdoAKGJmODNlYjBhYTA3YjliMDJhMDNjY2M0YTIwZTg1ODk5ODZlMGMyOWQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-17T09:32:48Zu	committer}(j: Jeremy Kongj< jkong@palantir.comj> 2023-04-17T09:32:48ZumessageJMerge remote-tracking branch 'origin/develop' into jkong/asynchronous-ragetree}(j2 (1529669963a8b1b37b4641f19e2fe66140df3b32url`https://api.github.com/repos/palantir/atlasdb/git/trees/1529669963a8b1b37b4641f19e2fe66140df3b32ujJ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ9EkEACgkQTLdFKain
zjypKgf+NC4HUxbRFa1rCy7yGQp6hnrezMQFdEIg7h/52xjxmR0DEpqCPoWftz5n
XjjCq5ctbObXnAlJLRRceIKImsQw3Xq8HxQ6Eh+MUruzBxEOWRZ5f5/mUIv3i3CQ
AAA5HNuqxRF8+OvvNPupIZxlIaAPbXym8Noxpkc8BM0Fbobmk6UXvjbkv5oG2QqB
YjGowdrQrkshQZd+JL3ZAc64Hdjo3pdWPC9sib4XheU3WIWqFwJQzHei3KvpQkfc
394wIgwCKTjNfYmTQowixiIK3UfCkKltZb+nWGh29B8285rG/RD5f+UijA5HjtG/
Ahv7zxwn/BhJxDPcwmn9f0FZ+vdGjg==
=WvyB
-----END PGP SIGNATURE-----payloadXO  tree 1529669963a8b1b37b4641f19e2fe66140df3b32
parent 977edc3248799d60e50f8f52ecc23c73978b80a6
parent f4439832e9bd60ddfcafde5f711bacd8bde20b38
author Jeremy Kong <jkong@palantir.com> 1681723968 +0100
committer Jeremy Kong <jkong@palantir.com> 1681723968 +0100

Merge remote-tracking branch 'origin/develop' into jkong/asynchronous-rage
uujJ ^https://api.github.com/repos/palantir/atlasdb/commits/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dhtml_urlShttps://github.com/palantir/atlasdb/commit/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/commentsj8 }(login
jeremyk-91idJZ j4 MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jJ 'https://api.github.com/users/jeremyk-91jX https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj@ }(j] 
jeremyk-91j_ JZ j4 MDQ6VXNlcjU5NTU1MTA=ja 3https://avatars.githubusercontent.com/u/5955510?v=4jc h5jJ 'https://api.github.com/users/jeremyk-91jX https://github.com/jeremyk-91jf 1https://api.github.com/users/jeremyk-91/followersjh >https://api.github.com/users/jeremyk-91/following{/other_user}jj 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jl >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jn 5https://api.github.com/users/jeremyk-91/subscriptionsjp ,https://api.github.com/users/jeremyk-91/orgsjr -https://api.github.com/users/jeremyk-91/reposjt 8https://api.github.com/users/jeremyk-91/events{/privacy}jv 7https://api.github.com/users/jeremyk-91/received_eventsjx Userjz uparents](}(j2 (977edc3248799d60e50f8f52ecc23c73978b80a6jJ ^https://api.github.com/repos/palantir/atlasdb/commits/977edc3248799d60e50f8f52ecc23c73978b80a6jX Shttps://github.com/palantir/atlasdb/commit/977edc3248799d60e50f8f52ecc23c73978b80a6u}(j2 (f4439832e9bd60ddfcafde5f711bacd8bde20b38jJ ^https://api.github.com/repos/palantir/atlasdb/commits/f4439832e9bd60ddfcafde5f711bacd8bde20b38jX Shttps://github.com/palantir/atlasdb/commit/f4439832e9bd60ddfcafde5f711bacd8bde20b38uestats}(totalM,	additionsMr	deletionsKufiles](}(j2 (37f614609e9364110222b476f105aa43bbb7f628filenamebatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/ColumnMetadataDescription.javastatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.javaraw_urlhttps://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dpatchX  @@ -22,11 +22,15 @@
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Set;
+import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 
 @Immutable
 public class ColumnMetadataDescription {
+    @Nullable
     final ImmutableSet<NamedColumnDescription> namedColumns;
+
+    @Nullable
     final DynamicColumnDescription dynamicColumn;
 
     public ColumnMetadataDescription() {
@@ -44,10 +48,12 @@ public ColumnMetadataDescription(DynamicColumnDescription dynamicColumn) {
         this.dynamicColumn = dynamicColumn;
     }
 
+    @Nullable
     public Set<NamedColumnDescription> getNamedColumns() {
         return namedColumns;
     }
 
+    @Nullable
     public DynamicColumnDescription getDynamicColumn() {
         return dynamicColumn;
     }ut      }(j2 (2a91fe0d6e86187e3690c8655b64ea385b2f02faj Satlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/FullQuery.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj Xe  @@ -35,11 +35,6 @@ public Builder append(String query) {
             return this;
         }
 
-        public Builder append(long number) {
-            queryBuilder.append(number);
-            return this;
-        }
-
         public Builder append(String query, Object arg) {
             queryBuilder.append(query);
             argsBuilder.add(arg);u}(j2 (ddbe99f94fd632341080a204b08994736d8ac8d1j gatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleCellTsPageLoader.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X  @@ -195,8 +195,7 @@ private FullQuery getQuery(boolean singleRow) {
             appendRangePredicates(singleRow, queryBuilder);
             return queryBuilder
                     .append("  ORDER BY row_name, col_name, ts")
-                    .append(") WHERE rownum <= ")
-                    .append(sqlRowLimit)
+                    .append(") WHERE rownum <= ?", sqlRowLimit)
                     .append(" ORDER BY row_name, col_name, ts")
                     .build();
         }u}(j2 (16016bac4fb642bd9934fcbdc2a95307afc7979aj _atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTable.javaj modifiedj K9j Kj KAj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X"  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Stopwatch;
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -30,6 +31,9 @@
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyle;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyleCache;
 import com.palantir.atlasdb.logging.LoggingArgs;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.NamedColumnDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.common.base.RunnableCheckedException;
 import com.palantir.common.base.Throwables;
@@ -47,6 +51,7 @@
 import com.palantir.util.VersionStrings;
 import java.sql.SQLException;
 import java.util.Locale;
+import java.util.Set;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.TimeUnit;
 import org.apache.commons.lang3.StringUtils;
@@ -90,7 +95,9 @@ public static OracleDdlTable create(
 
     @Override
     public void create(byte[] tableMetadata) {
-        boolean needsOverflow = needsOverflow(tableMetadata);
+        TableMetadata metadata = TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMetadata);
+        boolean needsOverflow = needsOverflow(metadata);
+        int compressionSetting = getOptimalIndexCompression(metadata);
 
         if (tableExists()) {
             if (needsOverflow) {
@@ -103,7 +110,7 @@ public void create(byte[] tableMetadata) {
             return;
         }
 
-        String shortTableName = createTable(needsOverflow);
+        String shortTableName = createTable(needsOverflow, compressionSetting);
 
         if (needsOverflow && !overflowColumnExists(shortTableName)) {
             throwForMissingOverflowTable();
@@ -146,10 +153,51 @@ private boolean overflowTableHasMigrated() {
         return config.overflowMigrationState() == OverflowMigrationState.FINISHED;
     }
 
-    private boolean needsOverflow(byte[] tableMetadata) {
-        TableMetadata metadata = TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMetadata);
-        return (metadata != null)
-                && (metadata.getColumns().getMaxValueSize() > AtlasDbConstants.ORACLE_OVERFLOW_THRESHOLD);
+    private boolean needsOverflow(TableMetadata metadata) {
+        return metadata.getColumns().getMaxValueSize() > AtlasDbConstants.ORACLE_OVERFLOW_THRESHOLD;
+    }
+
+    /*
+     * Determine the optimal Index Organized Table compression setting.
+     * When enabling compression on an IOT, we can instruct Oracle to compress at most one
+     * fewer columns than the number of columns that make up the PK for the IOT (i.e. the IOT we create have a PK of
+     * {row, col, ts} so we can compress 0, 1 or 2 columns - nothing, row, or row & col. It wouldn't make sense to
+     * compress all three columns, because necessarily there can be multiple rows that share all three values.
+     *
+     * When compression is enabled in an IOT, the block header adds a table the captures the values of the
+     * compressed columns. The actual rows in the blocks then refer back to entries in the header table to capture
+     * their values for the compressed columns. This extra header table and the slot references for data rows consume
+     * space in the block, so misuse of compression results in extra storage being consumed.
+     *
+     * Compression only makes sense when we expect that the { row } or { row, col } values will be reused:
+     * - If the table's sweep strategy is CONSERVATIVE, then every { row, col } will have at least two rows,
+     *   the current value (which may have null val if the value is deleted) and a sentinel row with ts = -1. Clearly
+     *   compression of both { row, col } is valuable.
+     * - If the sweep strategy is not CONSERVATIVE,  there will be reuse of the { row } if there is more than one named
+     *   column, or the table uses dynamic columns, which would be generally be expected to have multiple row values. In
+     *   this case, compression 1 is appropriate so { row } only needs to be stored once.
+     * - Finally, if the sweep strategy is not CONSERVATIVE, there are no sentinels, and if there is only one named
+     *   column then there will be no rows that share { row } so compression should be disabled.
+     */
+    @VisibleForTesting
+    static int getOptimalIndexCompression(TableMetadata metadata) {
+        if (metadata.getSweepStrategy() == SweepStrategy.CONSERVATIVE) {
+            // the table's sweep strategy is CONSERVATIVE, then every { row, col } will have at least two rows
+            return 2;
+        }
+
+        ColumnMetadataDescription columns = metadata.getColumns();
+        // there will be reuse of the { row } if there is more than one named column
+        // or the table uses dynamic columns, which would be generally be expected to have multiple row values
+        if (columns.hasDynamicColumns()) {
+            return 1;
+        }
+        Set<NamedColumnDescription> namedColumns = columns.getNamedColumns();
+        if (namedColumns != null && namedColumns.size() > 1) {
+            return 1;
+        }
+
+        return 0;
     }
 
     private boolean overflowColumnExists(String shortTableName) {
@@ -185,7 +233,7 @@ private void throwForMissingOverflowTable() {
     /**
      * Creates the table for the given reference. If the schema is modified here, please also update it in {@link #alterTableToHaveOverflowColumn}.
      */
-    private String createTable(boolean needsOverflow) {
+    private String createTable(boolean needsOverflow, int compression) {
         String shortTableName = oracleTableNameGetter.generateShortTableName(conns, tableRef);
         executeIgnoringError(
                 "CREATE TABLE " + shortTableName + " ("
@@ -197,7 +245,8 @@ private String createTable(boolean needsOverflow) {
                         + "  CONSTRAINT " + PrimaryKeyConstraintNames.get(shortTableName)
                         + " PRIMARY KEY (row_name, col_name, ts) "
                         + ") "
-                        + "organization index compress "
+                        + "organization index "
+                        + (compression == 0 ? "" : "compress " + compression + " ")
                         // Since append only completely fill blocks - no benefit in leaving space for updates of rows
                         // PCTUSED N/A to Index Organized Tables
                         + "PCTFREE 0 "u}(j2 (570b443f767b2c7f891051709f1bd68ce081d75cj _atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleGetRange.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj XF  @@ -316,8 +316,7 @@ private FullQuery getRangeQuery(ConnectionSupplier conns) {
                     .append(shortTableName)
                     .append(" v ON ")
                     .append("    sub.row_name = v.row_name and sub.col_name = v.col_name and sub.ts = v.ts")
-                    .append("  WHERE sub.rn <= ")
-                    .append(maxRowsPerPage)
+                    .append("  WHERE sub.rn <= ?", maxRowsPerPage)
                     .append("  ORDER BY sub.row_name ")
                     .append(direction)
                     .append(", sub.col_name ")u}(j2 (68c4ca31f6171bb238d98d2e9cfa5f4ad9e2f919j catlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleQueryFactory.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj XW	  @@ -312,8 +312,8 @@ public FullQuery getRangeQuery(RangeRequest range, long ts, int maxRows) {
                 + "     FROM " + tableName + " m "
                 + (bounds.isEmpty() ? "" : " WHERE  " + Joiner.on(" AND ").join(bounds))
                 + "     ORDER BY m.row_name " + (range.isReverse() ? "DESC" : "ASC")
-                + "   ) inner WHERE rownum <= " + maxRows;
-        return new FullQuery(query).withArgs(args);
+                + "   ) inner WHERE rownum <= ?";
+        return new FullQuery(query).withArgs(args).withArg(maxRows);
     }
 
     @Override
@@ -334,10 +334,10 @@ public FullQuery getRowsColumnRangeCountsQuery(
                 + " GROUP BY m.row_name";
         FullQuery fullQuery = new FullQuery(query).withArgs(rowsToOracleArray(rows), ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
         return fullQuery;
     }
@@ -355,14 +355,15 @@ protected FullQuery getRowsColumnRangeSubQuery(
                 + (columnRangeSelection.getStartCol().length > 0 ? " AND m.col_name >= ?" : "")
                 + (columnRangeSelection.getEndCol().length > 0 ? " AND m.col_name < ?" : "")
                 + " GROUP BY m.row_name, m.col_name"
-                + " ORDER BY m.row_name ASC, m.col_name ASC ) s WHERE rownum <= " + columnRangeSelection.getBatchHint();
+                + " ORDER BY m.row_name ASC, m.col_name ASC ) s WHERE rownum <= ?";
         FullQuery fullQuery = new FullQuery(query).withArg(row).withArg(ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
+        fullQuery.withArg(columnRangeSelection.getBatchHint());
         return fullQuery;
     }
 u}(j2 (2f1bb8d487f43f4608acaf707e7e6788af473dbdj katlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresCellTsPageLoader.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj XR  @@ -154,8 +154,7 @@ private FullQuery getFullQuery() {
                                 token.startRowInclusive(), token.startColInclusive(), token.startTsInclusive());
                 return queryBuilder
                         .append("      ORDER BY row_name, col_name, ts")
-                        .append("      LIMIT ")
-                        .append(sqlRowLimit)
+                        .append("      LIMIT ?", sqlRowLimit)
                         .append("    ) sub")
                         .append("    GROUP BY row_name, col_name")
                         .append("    ORDER BY row_name, col_name")
@@ -183,8 +182,7 @@ private FullQuery getFullQuery() {
                                 token.startRowInclusive(), token.startColInclusive(), token.startTsInclusive());
                 return queryBuilder
                         .append("  ORDER BY row_name, col_name, ts")
-                        .append("  LIMIT ")
-                        .append(sqlRowLimit)
+                        .append("  LIMIT ?", sqlRowLimit)
                         .build();
             }
         }u}(j2 (00cafb31e5f67e282a7490f4d2f3b4c4034b0fb5j catlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresGetRange.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X  @@ -288,8 +288,7 @@ private FullQuery getRangeQuery() {
                     .append(direction)
                     .append(", col_name ")
                     .append(direction)
-                    .append("    LIMIT ")
-                    .append(maxCellsPerPage)
+                    .append("    LIMIT ?", maxCellsPerPage)
                     .append("  ) i")
                     .append("  WHERE wrap.row_name = i.row_name")
                     .append("    AND wrap.col_name = i.col_name")u}(j2 (09ea7a8a8689d417885286a94aaf8424dfa8b7faj gatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresQueryFactory.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X  @@ -229,8 +229,8 @@ public FullQuery getRangeQuery(RangeRequest range, long ts, int maxRows) {
                 + " FROM " + prefixedTableName() + " m "
                 + (bounds.isEmpty() ? "" : " WHERE  " + Joiner.on(" AND ").join(bounds))
                 + " ORDER BY m.row_name " + (range.isReverse() ? "DESC" : "ASC")
-                + " LIMIT " + maxRows;
-        return new FullQuery(query).withArgs(args);
+                + " LIMIT ?";
+        return new FullQuery(query).withArgs(args).withArg(maxRows);
     }
 
     @Override
@@ -319,16 +319,17 @@ protected FullQuery getRowsColumnRangeSubQuery(
                 + (columnRangeSelection.getStartCol().length > 0 ? " AND m.col_name >= ?" : "")
                 + (columnRangeSelection.getEndCol().length > 0 ? " AND m.col_name < ?" : "")
                 + " GROUP BY m.row_name, m.col_name"
-                + " ORDER BY m.col_name ASC LIMIT " + columnRangeSelection.getBatchHint();
+                + " ORDER BY m.col_name ASC LIMIT ?";
         FullQuery fullQuery = new FullQuery(wrapQueryWithIncludeValue("GET_ROWS_COLUMN_RANGE", query, true))
                 .withArg(row)
                 .withArg(ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
+        fullQuery.withArg(columnRangeSelection.getBatchHint());
         return fullQuery;
     }
 u}(j2 (e22af5a95fd838f0ae5d4de23759495e249828a8j catlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTableTest.javaj modifiedj K7j K j K7j https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X,  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle;
 
 import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
@@ -41,6 +42,11 @@
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.OverflowMigrationState;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyle;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyleCache;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.ColumnValueDescription;
+import com.palantir.atlasdb.table.description.NameComponentDescription;
+import com.palantir.atlasdb.table.description.NamedColumnDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.table.description.ValueType;
 import com.palantir.common.concurrent.PTExecutors;
@@ -50,6 +56,8 @@
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.nexus.db.sql.SqlConnection;
+import java.util.ArrayList;
+import java.util.List;
 import java.util.Locale;
 import java.util.Set;
 import java.util.concurrent.ExecutorService;
@@ -348,6 +356,53 @@ public void createDoesNotThrowWhenOverflowColumnAlreadyExistsAndAlterIsRan() thr
         verifyTableAltered();
     }
 
+    @Test
+    public void conservativeSweptTablesHaveIndexCompression2() {
+        for (int numColumns = 0; numColumns <= 2; numColumns++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.CONSERVATIVE);
+            for (int colName = 0; colName < numColumns; colName++) {
+                metadataBuilder.singleNamedColumn("c" + colName, "col" + colName, ValueType.STRING);
+            }
+            TableMetadata metadata = metadataBuilder.build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(2);
+        }
+    }
+
+    @Test
+    public void thoroughSweptTablesWithDynamicColsHaveIndexCompression1() {
+        TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+        TableMetadata metadata = metadataBuilder
+                .dynamicColumns(List.of(NameComponentDescription.of("c", ValueType.STRING)), ValueType.STRING)
+                .build();
+        assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(1);
+    }
+
+    @Test
+    public void thoroughSweptTablesWithMultipleNamedColsHaveIndexCompression1() {
+        for (int numColumns = 2; numColumns <= 3; numColumns++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+            List<NamedColumnDescription> columns = new ArrayList<>();
+            for (int colDesc = 1; colDesc <= numColumns; colDesc++) {
+                columns.add(new NamedColumnDescription(
+                        "c" + colDesc, "col" + colDesc, ColumnValueDescription.forType(ValueType.STRING)));
+            }
+            TableMetadata metadata = metadataBuilder
+                    .columns(new ColumnMetadataDescription(columns))
+                    .build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(1);
+        }
+    }
+
+    @Test
+    public void thoroughSweptTablesWithOneNamedColHaveIndexCompressionDisabled() {
+        TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+        TableMetadata metadata = metadataBuilder
+                .columns(new ColumnMetadataDescription(List.of(
+                        new NamedColumnDescription("c", "col", ColumnValueDescription.forType(ValueType.STRING)))))
+                .build();
+        assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(0);
+    }
+
     private void createTable() throws TableMappingNotFoundException {
         // Not all tests will call OracleDdlTable#createTable, which makes sense as this test "creates" it for them!
         lenient()u}(j2 (d9abc2f2c00a1ff33edf1dbcaefbf672fcd91ad1j natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/InteractiveTransactionStore.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.Optional;
+import java.util.function.Consumer;
+
+public interface InteractiveTransactionStore extends TransactionStore {
+    /**
+     * Provides a convenient interface for interacting with a transaction, and having each action recorded.
+     * @param interactiveTransactionConsumer Consumer which performs gets/puts/deletes
+     * @return The witnessed transaction, if successfully committed.
+     */
+    Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer);
+}u}(j2 (4f80972ed51d1ca703c845e6db8af278009a14f3j oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javaj addedj K#j K j K#j https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import java.util.List;
+import java.util.Optional;
+
+/**
+ * Allows for convenient interaction with a transactional store.
+ */
+public interface InteractiveTransaction {
+    Optional<Integer> read(String table, WorkloadCell workloadCell);
+
+    void write(String table, WorkloadCell workloadCell, Integer value);
+
+    void delete(String table, WorkloadCell workloadCell);
+
+    List<WitnessedTransactionAction> witness();
+}u}(j2 (f311e643064907dd8eeece7fe8fe0069efe51f4ej ~atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransaction.javaj addedj K"j K j K"j https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedTransaction {
+    @Value.Parameter
+    WitnessedTransaction transaction();
+
+    @Value.Parameter
+    List<InvalidWitnessedTransactionAction> invalidActions();
+
+    static InvalidWitnessedTransaction of(
+            WitnessedTransaction witnessedTransaction, List<InvalidWitnessedTransactionAction> invalidActions) {
+        return ImmutableInvalidWitnessedTransaction.of(witnessedTransaction, invalidActions);
+    }
+}u}(j2 (13fc2568c111b1ef3b542238490857c5d0b5acb9j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javaj addedj K!j K j K!j https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.invariant.MismatchedValue;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedTransactionAction {
+    @Value.Parameter
+    WitnessedTransactionAction action();
+
+    @Value.Parameter
+    MismatchedValue mismatchedValue();
+
+    static InvalidWitnessedTransactionAction of(WitnessedTransactionAction action, MismatchedValue mismatchedValue) {
+        return ImmutableInvalidWitnessedTransactionAction.of(action, mismatchedValue);
+    }
+}u}(j2 (9182de83512f620a1034f9caa1e0e65888560fa1j latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X  @@ -26,8 +26,8 @@
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
 import com.palantir.atlasdb.workload.invariant.DurableWritesMetricInvariantReporter;
+import com.palantir.atlasdb.workload.runner.AntithesisWorkflowRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
-import com.palantir.atlasdb.workload.workflow.AntithesisWorkflowRunner;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;u}(j2 (6692c7a0ab9dc06ee5a6b9df123917c46c3d2758j iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariant.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X  @@ -16,10 +16,10 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
+import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.ValidationStore;
-import com.palantir.atlasdb.workload.transaction.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import io.vavr.Tuple;
 import java.util.Map;u}(j2 (c6c57e6a8de2b5781bc3377bb37255bb7b0465a7j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj addedj K\j K j K\j https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj XC  @@ -0,0 +1,92 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.List;
+import java.util.Optional;
+import java.util.function.Consumer;
+import one.util.streamex.StreamEx;
+
+public enum SerializableInvariant implements Invariant<List<InvalidWitnessedTransaction>> {
+    INSTANCE;
+
+    @Override
+    public void accept(
+            WorkflowHistory workflowHistory, Consumer<List<InvalidWitnessedTransaction>> invalidWitnessedTransactions) {
+        SerializableInvariantVisitor visitor = new SerializableInvariantVisitor();
+        List<InvalidWitnessedTransaction> transactions = StreamEx.of(workflowHistory.history())
+                .mapPartial(witnessedTransaction -> {
+                    List<InvalidWitnessedTransactionAction> invalidTransactions = StreamEx.of(
+                                    witnessedTransaction.actions())
+                            .mapPartial(action -> action.accept(visitor))
+                            .toList();
+
+                    if (invalidTransactions.isEmpty()) {
+                        return Optional.empty();
+                    }
+
+                    return Optional.of(InvalidWitnessedTransaction.of(witnessedTransaction, invalidTransactions));
+                })
+                .toList();
+        invalidWitnessedTransactions.accept(transactions);
+    }
+
+    private static final class SerializableInvariantVisitor
+            implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
+
+        private final InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+            Optional<Integer> expectedValue = inMemoryTransactionReplayer
+                    .getValues()
+                    .get(TableAndWorkloadCell.of(readTransactionAction.table(), readTransactionAction.cell()))
+                    .toJavaOptional()
+                    .orElseGet(Optional::empty);
+
+            if (!expectedValue.equals(readTransactionAction.value())) {
+                return Optional.of(InvalidWitnessedTransactionAction.of(
+                        readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expectedValue)));
+            }
+
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedWriteTransactionAction writeTransactionAction) {
+            inMemoryTransactionReplayer.visit(writeTransactionAction);
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedDeleteTransactionAction deleteTransactionAction) {
+            inMemoryTransactionReplayer.visit(deleteTransactionAction);
+            return Optional.empty();
+        }
+    }
+}u}(j2 (47c1c58dc5ec09e6991e1b15ffa1c7e7c13a1b46j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowRunner.javaj renamedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X&  @@ -14,9 +14,12 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.workload.workflow;
+package com.palantir.atlasdb.workload.runner;
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowRunner;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;previous_filenamejatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/AntithesisWorkflowRunner.javau}(j2 (b8129f7ddecb9ee76388afabb2090692f9aa773ej latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj addedj Ksj K j Ksj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj XT  @@ -0,0 +1,115 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.BiFunction;
+import javax.annotation.concurrent.NotThreadSafe;
+
+@NotThreadSafe
+final class AtlasDbInteractiveTransaction implements InteractiveTransaction {
+
+    private final Transaction transaction;
+
+    private final Map<String, TableReference> tables;
+
+    private final List<WitnessedTransactionAction> witnessedTransactionActions = new ArrayList<>();
+
+    private boolean hasFinished = false;
+
+    public AtlasDbInteractiveTransaction(Transaction transaction, Map<String, TableReference> tables) {
+        this.transaction = transaction;
+        this.tables = tables;
+    }
+
+    @Override
+    public Optional<Integer> read(String table, WorkloadCell workloadCell) {
+        return run(
+                (tableReference, atlasCell) -> {
+                    Map<Cell, byte[]> values = transaction.get(tableReference, Set.of(atlasCell));
+                    Optional<Integer> valueRead =
+                            Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
+                    witnessedTransactionActions.add(WitnessedReadTransactionAction.of(table, workloadCell, valueRead));
+                    return valueRead;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public void write(String table, WorkloadCell workloadCell, Integer value) {
+        run(
+                (tableReference, atlasCell) -> {
+                    transaction.put(tableReference, Map.of(atlasCell, Ints.toByteArray(value)));
+                    witnessedTransactionActions.add(WitnessedWriteTransactionAction.of(table, workloadCell, value));
+                    return null;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public void delete(String table, WorkloadCell workloadCell) {
+        run(
+                (tableReference, atlasCell) -> {
+                    transaction.delete(tableReference, Set.of(atlasCell));
+                    witnessedTransactionActions.add(WitnessedDeleteTransactionAction.of(table, workloadCell));
+                    return null;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public List<WitnessedTransactionAction> witness() {
+        hasFinished = true;
+        return witnessedTransactionActions;
+    }
+
+    private TableReference getTableReferenceOrThrow(String table) {
+        return Optional.ofNullable(tables.get(table))
+                .orElseThrow(() -> new SafeIllegalArgumentException(
+                        "Transaction action has unknown table.",
+                        SafeArg.of("tableName", table),
+                        SafeArg.of("availableTables", tables)));
+    }
+
+    private <T> T run(BiFunction<TableReference, Cell, T> function, String table, WorkloadCell workloadCell) {
+        Preconditions.checkState(
+                !hasFinished, "Transaction has already been witnessed and can no longer perform any actions.");
+        Cell atlasCell = AtlasDbUtils.toAtlasCell(workloadCell);
+        TableReference tableReference = getTableReferenceOrThrow(table);
+        return function.apply(tableReference, atlasCell);
+    }
+}u}(j2 (5b51481e66557d7e98571bd6013d938c2104c450j fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj modifiedj Kj K4j KRj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj Xp  @@ -18,38 +18,34 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
-import com.google.common.primitives.Ints;
-import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.PreCommitCondition;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
-import com.palantir.atlasdb.workload.util.AtlasDbUtils;
-import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
-import java.util.Set;
 import java.util.concurrent.atomic.AtomicReference;
+import java.util.function.Consumer;
 import java.util.function.Function;
 import java.util.function.Supplier;
-import java.util.stream.Collectors;
 import javax.annotation.concurrent.NotThreadSafe;
 import one.util.streamex.EntryStream;
 
-public final class AtlasDbTransactionStore implements TransactionStore {
+public final class AtlasDbTransactionStore implements InteractiveTransactionStore {
 
     private static final SafeLogger log = SafeLoggerFactory.get(AtlasDbTransactionStore.class);
     private final TransactionManager transactionManager;
@@ -63,27 +59,30 @@ private AtlasDbTransactionStore(TransactionManager transactionManager, Map<Strin
 
     @Override
     public Optional<Integer> get(String table, WorkloadCell cell) {
-        Cell atlasCell = AtlasDbUtils.toAtlasCell(cell);
-        TableReference tableReference = getTableReferenceOrThrow(table);
-        return transactionManager.runTaskWithRetry(task -> {
-            Map<Cell, byte[]> values = task.get(tableReference, Set.of(atlasCell));
-            return Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
-        });
+        return transactionManager.runTaskWithRetry(
+                transaction -> new AtlasDbInteractiveTransaction(transaction, tables).read(table, cell));
     }
 
     @Override
     public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
+        return readWrite(txn -> {
+            AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
+            actions.forEach(action -> action.accept(visitor));
+        });
+    }
+
+    @Override
+    public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer) {
         AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
         Supplier<CommitTimestampProvider> commitTimestampProvider =
                 Suppliers.memoize(() -> new CommitTimestampProvider());
         try {
             Transaction transaction =
                     transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
-                        AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
-                        witnessedActionsReference.set(actions.stream()
-                                .sequential()
-                                .map(action -> action.accept(visitor))
-                                .collect(Collectors.toList()));
+                        AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
+                                new AtlasDbInteractiveTransaction(txn, tables);
+                        interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
+                        witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
                         return txn;
                     });
 
@@ -107,52 +106,31 @@ public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions)
         }
     }
 
-    private TableReference getTableReferenceOrThrow(TransactionAction action) {
-        return getTableReferenceOrThrow(action.table());
-    }
-
-    private TableReference getTableReferenceOrThrow(String table) {
-        return Optional.ofNullable(tables.get(table))
-                .orElseThrow(() -> new SafeIllegalArgumentException(
-                        "Transaction action has unknown table.",
-                        SafeArg.of("readTransactionTableName", table),
-                        SafeArg.of("availableTables", tables)));
-    }
-
-    private class AtlasDbTransactionActionVisitor implements TransactionActionVisitor<WitnessedTransactionAction> {
+    private static class AtlasDbTransactionActionVisitor implements TransactionActionVisitor<Void> {
 
-        private final Transaction transaction;
+        private final InteractiveTransaction transaction;
 
-        public AtlasDbTransactionActionVisitor(Transaction transaction) {
+        public AtlasDbTransactionActionVisitor(InteractiveTransaction transaction) {
             this.transaction = transaction;
         }
 
         @Override
-        public WitnessedTransactionAction visit(ReadTransactionAction readTransactionAction) {
-            Cell cell = AtlasDbUtils.toAtlasCell(readTransactionAction.cell());
-            TableReference tableReference = getTableReferenceOrThrow(readTransactionAction);
-            Map<Cell, byte[]> cells =
-                    transaction.get(tableReference, Set.of(AtlasDbUtils.toAtlasCell(readTransactionAction.cell())));
-            Optional<Integer> value = Optional.ofNullable(cells.get(cell)).map(Ints::fromByteArray);
-            return readTransactionAction.witness(value);
+        public Void visit(ReadTransactionAction readTransactionAction) {
+            transaction.read(readTransactionAction.table(), readTransactionAction.cell());
+            return null;
         }
 
         @Override
-        public WitnessedTransactionAction visit(WriteTransactionAction writeTransactionAction) {
-            TableReference tableReference = getTableReferenceOrThrow(writeTransactionAction);
-            transaction.put(
-                    tableReference,
-                    Map.of(
-                            AtlasDbUtils.toAtlasCell(writeTransactionAction.cell()),
-                            Ints.toByteArray(writeTransactionAction.value())));
-            return writeTransactionAction.witness();
+        public Void visit(WriteTransactionAction writeTransactionAction) {
+            transaction.write(
+                    writeTransactionAction.table(), writeTransactionAction.cell(), writeTransactionAction.value());
+            return null;
         }
 
         @Override
-        public WitnessedTransactionAction visit(DeleteTransactionAction deleteTransactionAction) {
-            TableReference tableReference = getTableReferenceOrThrow(deleteTransactionAction);
-            transaction.delete(tableReference, Set.of(AtlasDbUtils.toAtlasCell(deleteTransactionAction.cell())));
-            return deleteTransactionAction.witness();
+        public Void visit(DeleteTransactionAction deleteTransactionAction) {
+            transaction.delete(deleteTransactionAction.table(), deleteTransactionAction.cell());
+            return null;
         }
     }
 u}(j2 (f903482687bcb5e66793d816482b51d37342f3f8j fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/InMemoryValidationStore.javaj addedj K.j K j K.j https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X2  @@ -0,0 +1,46 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.Optional;
+
+public final class InMemoryValidationStore implements ValidationStore {
+
+    private final Map<TableAndWorkloadCell, Optional<Integer>> values;
+
+    private InMemoryValidationStore(Map<TableAndWorkloadCell, Optional<Integer>> values) {
+        this.values = values;
+    }
+
+    public static InMemoryValidationStore create(List<WitnessedTransaction> history) {
+        InMemoryTransactionReplayer replayer = new InMemoryTransactionReplayer();
+        history.stream()
+                .map(WitnessedTransaction::actions)
+                .forEach(witnessedTransactionActions ->
+                        witnessedTransactionActions.forEach(action -> action.accept(replayer)));
+        return new InMemoryValidationStore(replayer.getValues());
+    }
+
+    @Override
+    public Map<TableAndWorkloadCell, Optional<Integer>> values() {
+        return values;
+    }
+}u}(j2 (dc1ba80c80acc0c1062aac7549f052f600d069cfj patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj addedj K=j K j K=j https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X
  @@ -0,0 +1,61 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.Optional;
+
+public final class InMemoryTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
+
+    private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> values =
+            StructureHolder.create(HashMap::empty);
+
+    @Override
+    public Void visit(WitnessedReadTransactionAction _readTransactionAction) {
+        return null;
+    }
+
+    @Override
+    public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
+        TableAndWorkloadCell tableAndWorkloadCell =
+                TableAndWorkloadCell.of(writeTransactionAction.table(), writeTransactionAction.cell());
+        values.with(map -> map.put(tableAndWorkloadCell, Optional.of(writeTransactionAction.value())));
+        return null;
+    }
+
+    /**
+     * Deletes are explicitly tracked to enable invariants that rely on verifying that deleted values stay deleted.
+     */
+    @Override
+    public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+        TableAndWorkloadCell tableAndWorkloadCell =
+                TableAndWorkloadCell.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
+        values.with(map -> map.put(tableAndWorkloadCell, Optional.empty()));
+        return null;
+    }
+
+    public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
+        return values.getSnapshot();
+    }
+}u
     }(j2 (301fd225038dc758fb5af7d2c0a7b9fd364ca74dj latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStore.javaj removedj K j KTj KTj https://github.com/palantir/atlasdb/blob/977edc3248799d60e50f8f52ecc23c73978b80a6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javaj https://github.com/palantir/atlasdb/raw/977edc3248799d60e50f8f52ecc23c73978b80a6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.java?ref=977edc3248799d60e50f8f52ecc23c73978b80a6j X  @@ -1,84 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.transaction;
-
-import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
-import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
-import com.palantir.atlasdb.workload.store.ValidationStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
-import io.vavr.collection.HashMap;
-import io.vavr.collection.Map;
-import java.util.List;
-import java.util.Optional;
-
-public final class InMemoryValidationStore implements ValidationStore {
-
-    private final Map<TableAndWorkloadCell, Optional<Integer>> values;
-
-    private InMemoryValidationStore(Map<TableAndWorkloadCell, Optional<Integer>> values) {
-        this.values = values;
-    }
-
-    public static InMemoryValidationStore create(List<WitnessedTransaction> history) {
-        InMemoryTransactionReplayer replayer = new InMemoryTransactionReplayer();
-        history.stream()
-                .map(WitnessedTransaction::actions)
-                .forEach(witnessedTransactionActions ->
-                        witnessedTransactionActions.forEach(action -> action.accept(replayer)));
-        return new InMemoryValidationStore(replayer.getValues());
-    }
-
-    @Override
-    public Map<TableAndWorkloadCell, Optional<Integer>> values() {
-        return values;
-    }
-
-    private static final class InMemoryTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
-
-        private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> values =
-                StructureHolder.create(HashMap::empty);
-
-        @Override
-        public Void visit(WitnessedReadTransactionAction readTransactionAction) {
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
-            TableAndWorkloadCell tableAndWorkloadCell =
-                    TableAndWorkloadCell.of(writeTransactionAction.table(), writeTransactionAction.cell());
-            values.with(map -> map.put(tableAndWorkloadCell, Optional.of(writeTransactionAction.value())));
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
-            TableAndWorkloadCell tableAndWorkloadCell =
-                    TableAndWorkloadCell.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
-            values.with(map -> map.put(tableAndWorkloadCell, Optional.empty()));
-            return null;
-        }
-
-        public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
-            return values.getSnapshot();
-        }
-    }
-}u}(j2 (90b36432d0c4959d6f029a213c9b14ce813a43a8j latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X\  @@ -0,0 +1,152 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class SerializableInvariantTest {
+
+    @Mock
+    private ReadableTransactionStore readableTransactionStore;
+
+    @Test
+    public void handlesLocalWrites() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .read(5, 10)
+                .write(5, 10, 15)
+                .read(5, 10, 15)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void noInvalidTransactionsWhenSerializable() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .write(23, 1, 20)
+                .write(7, 15, 14)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(23, 1, 20)
+                .read(7, 15, 14)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void catchesWriteSkew() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(6, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(6, 10, 15)
+                .write(5, 10, 0)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(6, 10, 15)
+                .write(6, 10, 0)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);
+
+        assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
+
+        assertThat(invalidWitnessedTransactionAction.action())
+                .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
+                    assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
+                    assertThat(action.value()).contains(15);
+                });
+        assertThat(invalidWitnessedTransactionAction.mismatchedValue())
+                .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+    }
+
+    @Test
+    public void handlesDeletes() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(6, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .delete(5, 10)
+                .read(5, 10)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+}u}(j2 (7a5e8dd4c01ddc761284d5c5bdc9c0345ddd2826j latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowRunnerTest.javaj renamedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X"  @@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.workload.workflow;
+package com.palantir.atlasdb.workload.runner;
 
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.mock;
@@ -23,6 +23,8 @@
 import static org.mockito.Mockito.when;
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import java.util.List;
 import org.junit.Test;
 j3 natlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/AntithesisWorkflowRunnerTest.javau}(j2 (b5153a38953e7417f0f9867686cd369359e28c9ej patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X_  @@ -0,0 +1,145 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.NAMES_TO_REFERENCES_TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLES_TO_ATLAS_METADATA;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Consumer;
+import org.junit.Before;
+import org.junit.Test;
+
+public final class AtlasDbInteractiveTransactionTest {
+
+    private TransactionManager manager;
+
+    @Before
+    public void before() {
+        manager = TransactionManagers.createInMemory(Set.of());
+        manager.getKeyValueService().createTables(TABLES_TO_ATLAS_METADATA);
+    }
+
+    @Test
+    public void witnessRecordAllActions() {
+        assertThat(readWrite(transaction -> {
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
+                .containsExactly(
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void readHandlesEmptyAndPresentValue() {
+        assertThat(readWrite(transaction -> {
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
+                .containsExactly(
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+    }
+
+    @Test
+    public void readThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.read(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void writeThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(
+                transaction -> transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE));
+    }
+
+    @Test
+    public void deleteThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void readThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.read(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void writeThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE));
+    }
+
+    @Test
+    public void deleteThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        return manager.runTaskWithRetry(atlasTransaction -> {
+            AtlasDbInteractiveTransaction interactiveTransaction =
+                    new AtlasDbInteractiveTransaction(atlasTransaction, NAMES_TO_REFERENCES_TABLE_1);
+            transactionConsumer.accept(interactiveTransaction);
+            return interactiveTransaction.witness();
+        });
+    }
+
+    private void assertThatThrownWhenUnknownTableReferenced(
+            Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
+                    transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
+                    return null;
+                }))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Transaction action has unknown table.");
+    }
+
+    private void assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+            Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
+                    AtlasDbInteractiveTransaction transaction =
+                            new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
+                    transaction.witness();
+                    transactionConsumer.accept(transaction);
+                    return null;
+                }))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Transaction has already been witnessed and can no longer perform any actions.");
+    }
+}u}(j2 (f078b01f9f07ade1c536865d8b2a68a6e10d8d76j jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj modifiedj Kj K	j K
j https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X	  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.workload.store;
 
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.INDEX_REFERENCE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLES_TO_ATLAS_METADATA;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1_INDEX_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
@@ -35,7 +36,6 @@
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
@@ -65,20 +65,14 @@ public final class AtlasDbTransactionStoreTest {
     private static final long START_TS = 1;
     private static final long COMMIT_TS = 2;
 
-    private static final Map<TableReference, byte[]> TABLES = Map.of(
-            TABLE_REFERENCE,
-            AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
-            INDEX_REFERENCE,
-            AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE));
-
     private TransactionManager manager;
 
     private AtlasDbTransactionStore store;
 
     @Before
     public void before() {
         manager = TransactionManagers.createInMemory(Set.of());
-        store = AtlasDbTransactionStore.create(manager, TABLES);
+        store = AtlasDbTransactionStore.create(manager, TABLES_TO_ATLAS_METADATA);
     }
 
     @Test
@@ -162,7 +156,8 @@ public void abortedTransactionsReturnEmpty() {
         Transaction abortedTransaction = mock(Transaction.class);
         when(abortedTransaction.isAborted()).thenReturn(true);
         doReturn(abortedTransaction).when(onlyAbortsManager).runTaskWithConditionWithRetry(any(Supplier.class), any());
-        AtlasDbTransactionStore onlyAbortsStore = AtlasDbTransactionStore.create(onlyAbortsManager, TABLES);
+        AtlasDbTransactionStore onlyAbortsStore =
+                AtlasDbTransactionStore.create(onlyAbortsManager, TABLES_TO_ATLAS_METADATA);
         assertThat(onlyAbortsStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isEmpty();
     }u}(j2 (eb63f7e70bff1527685e728d66979d4f8f1a1f60j tatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayerTest.javaj addedj KJj K j KJj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X  @@ -0,0 +1,74 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.Tuple2;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class InMemoryTransactionReplayerTest {
+
+    private static final WitnessedWriteTransactionAction WRITE_TRANSACTION_ACTION_1 =
+            ImmutableWitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+    private static final WitnessedWriteTransactionAction WRITE_TRANSACTION_ACTION_2 =
+            ImmutableWitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO);
+
+    @Test
+    public void readActionsAreIgnored() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        inMemoryTransactionReplayer.visit(
+                ImmutableWitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+        assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
+    }
+
+    @Test
+    public void writesAreRecorded() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_1);
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_2);
+        assertThat(inMemoryTransactionReplayer.getValues())
+                .containsExactlyInAnyOrder(
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)),
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_TWO, Optional.of(VALUE_TWO)));
+    }
+
+    @Test
+    public void deletesAreRecorded() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_1);
+        inMemoryTransactionReplayer.visit(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
+        inMemoryTransactionReplayer.visit(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO));
+        assertThat(inMemoryTransactionReplayer.getValues())
+                .containsExactlyInAnyOrder(
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_ONE, Optional.empty()),
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_TWO, Optional.empty()));
+    }
+}u}(j2 (78af7c7707b5a99809f2969167221c5abc0b8231j patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X  @@ -25,6 +25,7 @@
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.store.ValidationStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;u}(j2 (7b1fab2f64a88a2f2feeed744728c00b88416708j qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj addedj Krj K j Krj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj Xz  @@ -0,0 +1,114 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.logsafe.Preconditions;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicLong;
+
+public final class WitnessedTransactionsBuilder {
+
+    private final List<WitnessedTransaction> witnessedTransactions = new ArrayList<>();
+
+    private final AtomicLong timestampCounter = new AtomicLong();
+    private final String table;
+
+    public WitnessedTransactionsBuilder(String table) {
+        this.table = table;
+    }
+
+    public WitnessedTransactionBuilder startTransaction() {
+        return new WitnessedTransactionBuilder(timestampCounter.incrementAndGet());
+    }
+
+    public List<WitnessedTransaction> build() {
+        return List.copyOf(witnessedTransactions);
+    }
+
+    public final class WitnessedTransactionBuilder {
+        private final List<WitnessedTransactionAction> actions = new ArrayList<>();
+
+        private boolean needsCommitTimestamp = false;
+
+        private final long startTimestamp;
+
+        public WitnessedTransactionBuilder(long startTimestamp) {
+            this.startTimestamp = startTimestamp;
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column, Optional<Integer> valueRead) {
+            actions.add(WitnessedReadTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), valueRead));
+            return this;
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column, Integer valueRead) {
+            return read(row, column, Optional.of(valueRead));
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column) {
+            return read(row, column, Optional.empty());
+        }
+
+        public WitnessedTransactionBuilder write(Integer row, Integer column, Integer value) {
+            actions.add(WitnessedWriteTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), value));
+            needsCommitTimestamp = true;
+            return this;
+        }
+
+        public WitnessedTransactionBuilder delete(Integer row, Integer column) {
+            actions.add(WitnessedDeleteTransactionAction.of(table, ImmutableWorkloadCell.of(row, column)));
+            needsCommitTimestamp = true;
+            return this;
+        }
+
+        public WitnessedTransactionsBuilder endTransaction() {
+            Optional<Long> commitTimestamp =
+                    needsCommitTimestamp ? Optional.of(timestampCounter.incrementAndGet()) : Optional.empty();
+            return endTransaction(commitTimestamp);
+        }
+
+        public WitnessedTransactionsBuilder endTransaction(Long commitTimestamp) {
+            return endTransaction(Optional.of(commitTimestamp));
+        }
+
+        public WitnessedTransactionsBuilder endTransaction(Optional<Long> commitTimestamp) {
+            if (needsCommitTimestamp) {
+                Preconditions.checkArgument(
+                        commitTimestamp.isPresent(),
+                        "Commit timestamp must be provided when the transaction has any writes or deletes.");
+                Preconditions.checkArgument(
+                        startTimestamp < commitTimestamp.get(),
+                        "Commit timestamp must be greater than the start timestamp.");
+            }
+            witnessedTransactions.add(ImmutableWitnessedTransaction.builder()
+                    .startTimestamp(startTimestamp)
+                    .actions(actions)
+                    .commitTimestamp(commitTimestamp)
+                    .build());
+            return WitnessedTransactionsBuilder.this;
+        }
+    }
+}u}(j2 (ad2234f0c3aa6c382c76189b72d5534773d719d6j hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javaj modifiedj K
j K j K
j https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X  @@ -18,9 +18,12 @@
 
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import java.util.Map;
 
 public final class WorkloadTestHelpers {
     public static final String TABLE_1 = "foo";
@@ -34,6 +37,16 @@ public final class WorkloadTestHelpers {
     public static final TableReference INDEX_REFERENCE =
             TableReference.create(TABLE_REFERENCE.getNamespace(), TABLE_1_INDEX_1);
 
+    public static final Map<String, TableReference> NAMES_TO_REFERENCES_TABLE_1 = Map.of(
+            TABLE_1, TABLE_REFERENCE,
+            TABLE_1_INDEX_1, INDEX_REFERENCE);
+
+    public static final Map<TableReference, byte[]> TABLES_TO_ATLAS_METADATA = Map.of(
+            TABLE_REFERENCE,
+            AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
+            INDEX_REFERENCE,
+            AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE_INDEX));
+
     public static final Namespace NAMESPACE = Namespace.create("workload");
     public static final WorkloadCell WORKLOAD_CELL_ONE = ImmutableWorkloadCell.of(50, 10);
     public static final WorkloadCell WORKLOAD_CELL_TWO = ImmutableWorkloadCell.of(1257, 521);u}(j2 (dc8ccab7fb0c3ad8d14f7566ab89d660c8508c47j  changelog/0.835.0/pr-6498.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/changelog%2F0.835.0%2Fpr-6498.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/changelog%2F0.835.0%2Fpr-6498.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.835.0%2Fpr-6498.v2.yml?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Choose optimal IOT compression based on table params
+  links:
+  - https://github.com/palantir/atlasdb/pull/6498u}(j2 (fdaa0f14c0403bcf95c1cdd5c0f860c959c67c95j  changelog/0.835.0/pr-6508.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/changelog%2F0.835.0%2Fpr-6508.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/changelog%2F0.835.0%2Fpr-6508.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.835.0%2Fpr-6508.v2.yml?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: DB queries to Oracle/Postgres now use bind variables for rownum/limit
+    terms.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6508u}(j2 (577af56d07c46b2ba098705dc05a852ec616b335j *scripts/circle-ci/publish-to-antithesis.shj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X  @@ -25,5 +25,5 @@ docker tag palantirtechnologies/atlasdb-workload-server-distribution:unspecified
 docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:unspecified
 
 LATEST_ANTITHESIS_TAG=$(docker image ls palantirtechnologies/atlasdb-workload-server-antithesis --format "{{.Tag}}")
-docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${LATEST_ANTITHESIS_TAG}
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${LATEST_ANTITHESIS_TAG}
\ No newline at end of file
+docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}
\ No newline at end of fileueu(9f563e3ef161dc54659ba5dd33d5297730966e7c}(sha(9f563e3ef161dc54659ba5dd33d5297730966e7cnode_idEC_kwDOAjP5fdoAKDlmNTYzZTNlZjE2MWRjNTQ2NTliYTVkZDMzZDUyOTc3MzA5NjZlN2Mcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-03T14:49:02Zu	committer}(j GitHubj noreply@github.comj 2023-07-03T14:49:02ZumessageXK  [Antithesis | Range Queries] Part 3: Interactive Range Query Support (#6607)

* Refactor TransactionActions to have explicitly named single cell variants

* broken tests

* Row column range read APIs

* Actually support row column range reads

* patchy patch

* add one more test

* change typing

* push

* can cantree}(j (e3343f6086edbe8b24c3dd2f56f83e73ae74b0cdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/e3343f6086edbe8b24c3dd2f56f83e73ae74b0cduj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9f563e3ef161dc54659ba5dd33d5297730966e7c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkot/eCRBK7hj4Ov3rIwAA1osIAIu4yy5uKyIfZf3SPX/gPLGp
r0zrnMcOwaMEbaUPdeROqSwXI1bm9FTiv1ToYSFJkc9OhclBW9HZXgFzJE/4MW/v
yUXnzUWRURW7uEubuvJhs7XCB2ypH81GpBXfAY3FrcFm4O3T9+c4VOhrLO8bYcl9
nhgNV+IUlXNh0+h/fyyA1l1yiAuOGhsrqOc+Y/NugV3FWtdEhTp7gZwgiLYKmjQH
spqXyjsYObcfHYGIeXNKn1T9OiJ+pSPFY4usbGzySlbFBiEABh6A8sso9s1aJofU
8zv5gszPwGVSNOTVKaisMEaVYNFcYK4JNwV3VQJQH9Jee101h4ON5Jmu1ZUgQCU=
=yP5I
-----END PGP SIGNATURE-----
payloadX  tree e3343f6086edbe8b24c3dd2f56f83e73ae74b0cd
parent 5163c28c1404be8ccaba9edb9496515516dbfdba
author Jeremy Kong <jkong@palantir.com> 1688395742 +0100
committer GitHub <noreply@github.com> 1688395742 +0100

[Antithesis | Range Queries] Part 3: Interactive Range Query Support (#6607)

* Refactor TransactionActions to have explicitly named single cell variants

* broken tests

* Row column range read APIs

* Actually support row column range reads

* patchy patch

* add one more test

* change typing

* push

* can canuuj ^https://api.github.com/repos/palantir/atlasdb/commits/9f563e3ef161dc54659ba5dd33d5297730966e7chtml_urlShttps://github.com/palantir/atlasdb/commit/9f563e3ef161dc54659ba5dd33d5297730966e7ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9f563e3ef161dc54659ba5dd33d5297730966e7c/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj  uparents]}(j (5163c28c1404be8ccaba9edb9496515516dbfdbaj ^https://api.github.com/repos/palantir/atlasdb/commits/5163c28c1404be8ccaba9edb9496515516dbfdbaj Shttps://github.com/palantir/atlasdb/commit/5163c28c1404be8ccaba9edb9496515516dbfdbauastats}(totalKÌ	additionsK	deletionsKufiles](}(j (6fff522b93c2fac008381bf889fb8bd37ac6b462filenamematlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelection.javastatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/9f563e3ef161dc54659ba5dd33d5297730966e7c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9f563e3ef161dc54659ba5dd33d5297730966e7c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.java?ref=9f563e3ef161dc54659ba5dd33d5297730966e7cpatchXm  @@ -60,6 +60,10 @@ default void check() {
                 SafeArg.of("endColumnExclusive", endColumnExclusive()));
     }
 
+    static ColumnRangeSelection all() {
+        return ImmutableColumnRangeSelection.builder().build();
+    }
+
     static ImmutableColumnRangeSelection.Builder builder() {
         return ImmutableColumnRangeSelection.builder();
     }u}(j (813978dd1860b6fe6d1edf472c0e66a8bd3a02a9j  oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javaj" modifiedj Kj K j$ Kj% https://github.com/palantir/atlasdb/blob/9f563e3ef161dc54659ba5dd33d5297730966e7c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj' https://github.com/palantir/atlasdb/raw/9f563e3ef161dc54659ba5dd33d5297730966e7c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj) https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=9f563e3ef161dc54659ba5dd33d5297730966e7cj+ XI  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import java.util.List;
@@ -31,5 +32,7 @@ public interface InteractiveTransaction {
 
     void delete(String table, WorkloadCell workloadCell);
 
+    List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection);
+
     List<WitnessedTransactionAction> witness();
 }u}(j (bad62fdfc0f4e5f5e54e27631b446f28ca159cc1j  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj" modifiedj K4j Kj$ K6j% https://github.com/palantir/atlasdb/blob/9f563e3ef161dc54659ba5dd33d5297730966e7c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj' https://github.com/palantir/atlasdb/raw/9f563e3ef161dc54659ba5dd33d5297730966e7c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj) https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=9f563e3ef161dc54659ba5dd33d5297730966e7cj+ X<  @@ -17,10 +17,13 @@
 package com.palantir.atlasdb.workload.store;
 
 import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.keyvalue.api.BatchColumnRangeSelection;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -30,12 +33,17 @@
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.ArrayList;
+import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Optional;
 import java.util.Set;
 import java.util.function.BiFunction;
+import java.util.function.Function;
+import java.util.stream.Collectors;
 import javax.annotation.concurrent.NotThreadSafe;
+import one.util.streamex.EntryStream;
 
 @NotThreadSafe
 final class AtlasDbInteractiveTransaction implements InteractiveTransaction {
@@ -91,6 +99,38 @@ public void delete(String table, WorkloadCell workloadCell) {
                 workloadCell);
     }
 
+    @Override
+    public List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection) {
+        return run(
+                tableReference -> {
+                    // Having a non-configurable batch hint is a bit iffy, but suffices as this won't be used in
+                    // production.
+                    Map<byte[], Iterator<Entry<Cell, byte[]>>> iterators = transaction.getRowsColumnRangeIterator(
+                            tableReference,
+                            List.of(AtlasDbUtils.toAtlasKey(row)),
+                            BatchColumnRangeSelection.create(
+                                    AtlasDbUtils.toAtlasColumnRangeSelection(columnRangeSelection), 100));
+                    Preconditions.checkState(
+                            iterators.size() == 1,
+                            "Expected exactly one iterator to be returned",
+                            SafeArg.of("iteratorsReturned", iterators.size()));
+                    List<ColumnValue> columnsAndValues = EntryStream.of(iterators.get(AtlasDbUtils.toAtlasKey(row)))
+                            .mapKeys(Cell::getColumnName)
+                            .mapKeys(AtlasDbUtils::fromAtlasColumn)
+                            .mapValues(AtlasDbUtils::fromAtlasValue)
+                            .map(entry -> ColumnValue.of(entry.getKey(), entry.getValue()))
+                            .collect(Collectors.toList());
+                    witnessedTransactionActions.add(RowColumnRangeReadTransactionAction.builder()
+                            .table(table)
+                            .row(row)
+                            .columnRangeSelection(columnRangeSelection)
+                            .build()
+                            .witness(columnsAndValues));
+                    return columnsAndValues;
+                },
+                table);
+    }
+
     @Override
     public List<WitnessedTransactionAction> witness() {
         hasFinished = true;
@@ -106,10 +146,20 @@ private TableReference getTableReferenceOrThrow(String table) {
     }
 
     private <T> T run(BiFunction<TableReference, Cell, T> function, String table, WorkloadCell workloadCell) {
-        Preconditions.checkState(
-                !hasFinished, "Transaction has already been witnessed and can no longer perform any actions.");
+        checkTransactionHasNotFinished();
         Cell atlasCell = AtlasDbUtils.toAtlasCell(workloadCell);
         TableReference tableReference = getTableReferenceOrThrow(table);
         return function.apply(tableReference, atlasCell);
     }
+
+    private <T> T run(Function<TableReference, T> function, String table) {
+        checkTransactionHasNotFinished();
+        TableReference tableReference = getTableReferenceOrThrow(table);
+        return function.apply(tableReference);
+    }
+
+    private void checkTransactionHasNotFinished() {
+        Preconditions.checkState(
+                !hasFinished, "Transaction has already been witnessed and can no longer perform any actions.");
+    }
 }u}(j (dc79b6b8b54010688b81381eec4180aa1c57f56ej  fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj" modifiedj Kj Kj$ Kj% https://github.com/palantir/atlasdb/blob/9f563e3ef161dc54659ba5dd33d5297730966e7c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj' https://github.com/palantir/atlasdb/raw/9f563e3ef161dc54659ba5dd33d5297730966e7c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj) https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=9f563e3ef161dc54659ba5dd33d5297730966e7cj+ X  @@ -163,8 +163,11 @@ public Void visit(DeleteTransactionAction deleteTransactionAction) {
 
         @Override
         public Void visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
-            // TODO (jkong): Not implemented yet
-            throw new UnsupportedOperationException("Not implemented yet");
+            transaction.getRowColumnRange(
+                    rowColumnRangeReadTransactionAction.table(),
+                    rowColumnRangeReadTransactionAction.row(),
+                    rowColumnRangeReadTransactionAction.columnRangeSelection());
+            return null;
         }
     }
 u}(j (45188926753c546106aea8c33667dbc777075297j  Zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/AtlasDbUtils.javaj" modifiedj Kj Kj$ Kj% https://github.com/palantir/atlasdb/blob/9f563e3ef161dc54659ba5dd33d5297730966e7c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj' https://github.com/palantir/atlasdb/raw/9f563e3ef161dc54659ba5dd33d5297730966e7c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj) https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.java?ref=9f563e3ef161dc54659ba5dd33d5297730966e7cj+ X  @@ -26,6 +26,7 @@
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
@@ -50,8 +51,20 @@ public static ConflictHandler toConflictHandler(IsolationLevel isolationLevel) {
         }
     }
 
+    public static byte[] toAtlasKey(int key) {
+        return Ints.toByteArray(key);
+    }
+
+    public static int fromAtlasColumn(byte[] bytes) {
+        return Ints.fromByteArray(bytes);
+    }
+
+    public static int fromAtlasValue(byte[] value) {
+        return Ints.fromByteArray(value);
+    }
+
     public static Cell toAtlasCell(WorkloadCell cell) {
-        return Cell.create(Ints.toByteArray(cell.key()), Ints.toByteArray(cell.column()));
+        return Cell.create(toAtlasKey(cell.key()), Ints.toByteArray(cell.column()));
     }
 
     public static byte[] tableMetadata(ConflictHandler conflictHandler) {
@@ -93,4 +106,17 @@ public static ConflictHandler toIndexConflictHandler(ConflictHandler baseTableCo
     public static byte[] indexMetadata(ConflictHandler baseTableConflictHandler) {
         return tableMetadata(toIndexConflictHandler(baseTableConflictHandler));
     }
+
+    public static com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection toAtlasColumnRangeSelection(
+            ColumnRangeSelection columnRangeSelection) {
+        return new com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection(
+                columnRangeSelection
+                        .startColumnInclusive()
+                        .map(AtlasDbUtils::toAtlasKey)
+                        .orElse(null),
+                columnRangeSelection
+                        .endColumnExclusive()
+                        .map(AtlasDbUtils::toAtlasKey)
+                        .orElse(null));
+    }
 }u}(j (461cdd058f7b1d94f60003aa74ed1f6caed5e9b0j  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj" modifiedj Kbj Kj$ Kcj% https://github.com/palantir/atlasdb/blob/9f563e3ef161dc54659ba5dd33d5297730966e7c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj' https://github.com/palantir/atlasdb/raw/9f563e3ef161dc54659ba5dd33d5297730966e7c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj) https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=9f563e3ef161dc54659ba5dd33d5297730966e7cj+ X  @@ -27,8 +27,11 @@
 
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
@@ -38,6 +41,8 @@
 import java.util.Optional;
 import java.util.Set;
 import java.util.function.Consumer;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -52,7 +57,7 @@ public void before() {
     }
 
     @Test
-    public void witnessRecordAllActions() {
+    public void witnessRecordsAllSingleCellActions() {
         assertThat(readWrite(transaction -> {
                     transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
                     transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
@@ -77,6 +82,86 @@ public void readHandlesEmptyAndPresentValue() {
                         WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
     }
 
+    @Test
+    public void witnessRecordsColumnRangeActions() {
+        assertThat(readWrite(transaction -> {
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+                }))
+                .containsExactly(
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
+                        WitnessedRowColumnRangeReadTransactionAction.builder()
+                                .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                        .table(TABLE_1)
+                                        .row(WORKLOAD_CELL_TWO.key())
+                                        .columnRangeSelection(ColumnRangeSelection.all())
+                                        .build())
+                                .addColumnsAndValues(ColumnValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
+                                .build());
+    }
+
+    @Test
+    public void emptyColumnRangeReadsAreRecorded() {
+        assertThat(readWrite(transaction -> {
+                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+                }))
+                .containsExactly(WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table(TABLE_1)
+                                .row(WORKLOAD_CELL_TWO.key())
+                                .columnRangeSelection(ColumnRangeSelection.all())
+                                .build())
+                        .build());
+    }
+
+    @Test
+    public void allRelevantCellsAreRecordedForFullColumnScan() {
+        int iterationCount = 1000;
+        assertThat(readWrite(transaction -> {
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(TABLE_1, 1, ColumnRangeSelection.all());
+                }))
+                .hasSize(iterationCount + 1)
+                .element(iterationCount)
+                .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
+                        .isInstanceOfSatisfying(
+                                WitnessedRowColumnRangeReadTransactionAction.class,
+                                witness -> assertThat(witness.columnsAndValues())
+                                        .isEqualTo(IntStream.range(0, iterationCount)
+                                                .mapToObj(column -> ColumnValue.of(column, VALUE_ONE))
+                                                .collect(Collectors.toList()))));
+    }
+
+    @Test
+    public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
+        int iterationCount = 1000;
+        int startInclusive = 313;
+        int endExclusive = 855;
+        assertThat(readWrite(transaction -> {
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(
+                            TABLE_1,
+                            1,
+                            ColumnRangeSelection.builder()
+                                    .startColumnInclusive(startInclusive)
+                                    .endColumnExclusive(endExclusive)
+                                    .build());
+                }))
+                .hasSize(iterationCount + 1)
+                .element(iterationCount)
+                .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
+                        .isInstanceOfSatisfying(
+                                WitnessedRowColumnRangeReadTransactionAction.class,
+                                witness -> assertThat(witness.columnsAndValues())
+                                        .isEqualTo(IntStream.range(startInclusive, endExclusive)
+                                                .mapToObj(column -> ColumnValue.of(column, VALUE_ONE))
+                                                .collect(Collectors.toList()))));
+    }
+
     @Test
     public void readThrowsWhenTableDoesNotExist() {
         assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.read(TABLE_1, WORKLOAD_CELL_ONE));
@@ -93,6 +178,12 @@ public void deleteThrowsWhenTableDoesNotExist() {
         assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
     }
 
+    @Test
+    public void getRowsColumnRangeThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction ->
+                transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.all()));
+    }
+
     @Test
     public void readThrowsWhenInteractiveTransactionAlreadyWitnessed() {
         assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
@@ -111,6 +202,12 @@ public void deleteThrowsWhenInteractiveTransactionAlreadyWitnessed() {
                 transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
     }
 
+    @Test
+    public void getRowColumnRangeThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(transaction ->
+                transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.all()));
+    }
+
     private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         return manager.runTaskWithRetry(atlasTransaction -> {
             AtlasDbInteractiveTransaction interactiveTransaction =ueu     (8a72c960a3859401ab97c32ce98500785d7aa923}(sha(8a72c960a3859401ab97c32ce98500785d7aa923node_idEC_kwDOAjP5fdoAKDhhNzJjOTYwYTM4NTk0MDFhYjk3YzMyY2U5ODUwMDc4NWQ3YWE5MjMcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-06T13:22:16Zu	committer}(j_ Lucas Meirelesja meireles31@msn.comjc 2023-06-06T13:22:16ZumessageWMerge branch 'lmeireles/broken-lock-check-on-purpose' into lmeireles/only-read-no-touchtree}(jW (e78392ec9fb83f0e6e6e6ffb51acfe1cee6e3e6furl`https://api.github.com/repos/palantir/atlasdb/git/trees/e78392ec9fb83f0e6e6e6ffb51acfe1cee6e3e6fujo bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8a72c960a3859401ab97c32ce98500785d7aa923
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmR/MwkACgkQJd22kJ7J
GiyC0gf/S4aPCvAEjUqdYcYvfIW01WTDpLWf3TEym2QDRCofUixvx0rdJpQz2T0b
I9XpLclQr5qWkXEYrzg4743PKuvpM6qjVVVibL2HA8t7xInI45KCDoRNE0MQi35+
JcGwAZjX+6XUIY0YdZ3XGYKV+odhqrDAVrF8Tsrf61Ps3g3m5oQ9MqdSsitVE2UX
zSDesRzkuSi4rcMROM5vZfsm1toHRK9Z40esSDX/+OlUF7ZgH/9LZhoWJsqCNefl
oxGYli0ZhPPON6Y3QpOTXkCCgdI9HTRqxUBHedEfaATywy2qAnu6djnPBG0m70VZ
+zQf0hnAaOoPrn6mJm0zaJL+DR8Ciw==
=dDFi
-----END PGP SIGNATURE-----payloadXb  tree e78392ec9fb83f0e6e6e6ffb51acfe1cee6e3e6f
parent 1d8a8052b69364899014b5bf55ae6479107beea0
parent 484e7713eb2f5115c1f2c53a288ba5261f061551
author Lucas Meireles <meireles31@msn.com> 1686057736 +0100
committer Lucas Meireles <meireles31@msn.com> 1686057736 +0100

Merge branch 'lmeireles/broken-lock-check-on-purpose' into lmeireles/only-read-no-touch
uujo ^https://api.github.com/repos/palantir/atlasdb/commits/8a72c960a3859401ab97c32ce98500785d7aa923html_urlShttps://github.com/palantir/atlasdb/commit/8a72c960a3859401ab97c32ce98500785d7aa923comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8a72c960a3859401ab97c32ce98500785d7aa923/commentsj] }(loginLucasIMEidJg jY MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jo %https://api.github.com/users/LucasIMEj} https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuje }(j LucasIMEj Jg jY MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5jo %https://api.github.com/users/LucasIMEj} https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsj Userj uparents](}(jW (1d8a8052b69364899014b5bf55ae6479107beea0jo ^https://api.github.com/repos/palantir/atlasdb/commits/1d8a8052b69364899014b5bf55ae6479107beea0j} Shttps://github.com/palantir/atlasdb/commit/1d8a8052b69364899014b5bf55ae6479107beea0u}(jW (484e7713eb2f5115c1f2c53a288ba5261f061551jo ^https://api.github.com/repos/palantir/atlasdb/commits/484e7713eb2f5115c1f2c53a288ba5261f061551j} Shttps://github.com/palantir/atlasdb/commit/484e7713eb2f5115c1f2c53a288ba5261f061551uestats}(totalK	additionsK	deletionsKufiles]}(jW (cab5ee27b555cae688f52b0daba75065c4b9abd7filenameVatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/8a72c960a3859401ab97c32ce98500785d7aa923/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaraw_urlhttps://github.com/palantir/atlasdb/raw/8a72c960a3859401ab97c32ce98500785d7aa923/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=8a72c960a3859401ab97c32ce98500785d7aa923patchX  @@ -69,10 +69,9 @@ private static boolean mustCheckImmutableLockAfterReads(TableMetadataPersistence
         switch (strategy) {
             case CONSERVATIVE:
             case NOTHING:
-                return false;
             case THOROUGH_MIGRATION:
             case THOROUGH:
-                return true;
+                return false;
         }
         throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
     }uau(c365b148e2264eae44359fb953f25c8121fe7eb2}(sha(c365b148e2264eae44359fb953f25c8121fe7eb2node_idEC_kwDOAjP5fdoAKGMzNjViMTQ4ZTIyNjRlYWU0NDM1OWZiOTUzZjI1YzgxMjFmZTdlYjIcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-25T12:12:13Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-25T12:12:13Zumessagerevivetree}(j (1dc73d992317e1eb5564b186e1e68a7aa5f3f92burl`https://api.github.com/repos/palantir/atlasdb/git/trees/1dc73d992317e1eb5564b186e1e68a7aa5f3f92buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c365b148e2264eae44359fb953f25c8121fe7eb2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRvUJ0ACgkQPlMHVIT1
yhq1Vgf/eARuezENplxfdI/LGz303EJiQgvU6i6WtU9y2nB2xiVYjsNnT/VTUorM
ROjiv2nw3kkqdx74IGaVWDB6rfU9xycM+UWoEZZ074OHvMlqgK/3+zeEZB3z3nWB
fwdEwGJCYXegIFvITmBWItZ+Uo4spum++IuMYmuk1aRGIoiC9WiYn5E03DefNt7N
+2TdNOjQveBmG4aFsP+75rDx6y9+Ma0hNgqK8937a0OetutepF7KqtiqSbZYBJRf
ge3X7ivm8+LAc3FPuC2R22DexbM/7MyW4tPWKkzpArb9Fv4pBb+4Tfi7Bl3LYQTK
D3KD8NEIaKNRnyzV7GsSwWEGt+pyWQ==
=X4R7
-----END PGP SIGNATURE-----payloadtree 1dc73d992317e1eb5564b186e1e68a7aa5f3f92b
parent 8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813
author Ahmed Alouane <aalouane@palantir.com> 1685016733 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1685016733 +0100

revive
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/c365b148e2264eae44359fb953f25c8121fe7eb2html_urlShttps://github.com/palantir/atlasdb/commit/c365b148e2264eae44359fb953f25c8121fe7eb2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c365b148e2264eae44359fb953f25c8121fe7eb2/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j
 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j (8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813j ^https://api.github.com/repos/palantir/atlasdb/commits/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813j Shttps://github.com/palantir/atlasdb/commit/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813uastats}(totalK	additionsK	deletionsKufiles](}(j (13c0d11683238ad0a46447ec4fc4b31b78aea602filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj4 Kj5 KchangesK"blob_urlhttps://github.com/palantir/atlasdb/blob/c365b148e2264eae44359fb953f25c8121fe7eb2/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c365b148e2264eae44359fb953f25c8121fe7eb2/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=c365b148e2264eae44359fb953f25c8121fe7eb2patchX  @@ -98,6 +98,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueServiceImpl;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
@@ -265,12 +266,14 @@ private enum State {
     protected final TableLevelMetricsController tableLevelMetricsController;
     protected final SuccessCallbackManager successCallbackManager = new SuccessCallbackManager();
     private final CommitTimestampLoader commitTimestampLoader;
+    private final ExpectationsMetrics expectationsDataCollectionMetrics;
 
     protected volatile boolean hasReads;
 
     protected final TimestampCache timestampCache;
 
     protected final TransactionKnowledgeComponents knowledge;
+
     protected final Closer closer = Closer.create();
 
     /**
@@ -345,6 +348,7 @@ private enum State {
                 timelockService,
                 immutableTimestamp,
                 knowledge);
+        this.expectationsDataCollectionMetrics = ExpectationsMetrics.of(metricsManager.getTaggedRegistry());
     }
 
     protected TransactionScopedCache getCache() {
@@ -571,6 +575,25 @@ private Iterator<Map.Entry<Cell, byte[]>> getSortedColumnsLocalWrites(
                 cellComparator);
     }
 
+    @VisibleForTesting
+    static void reportExpectationsCollectedData(
+            ExpectationsAwareTransaction transaction, ExpectationsMetrics metrics, boolean isStillRunning) {
+        if (isStillRunning) {
+            log.error("reportExpectationsCollectedData is called on an in-progress transaction");
+            return;
+        }
+
+        long ageMillis = transaction.getAgeMillis();
+        TransactionReadInfo info = transaction.getReadInfo();
+
+        metrics.ageMillis().update(ageMillis);
+        metrics.bytesRead().update(info.bytesRead());
+        metrics.kvsCalls().update(info.kvsCalls());
+
+        info.maximumBytesKvsCallInfo()
+                .ifPresent(kvsCallReadInfo -> metrics.worstKvsBytesRead().update(kvsCallReadInfo.bytesRead()));
+    }
+
     /**
      * Provides comparator to sort cells by columns (sorted lexicographically on byte ordering) and then in the order
      * of input rows.
@@ -1817,11 +1840,15 @@ private void ensureUncommitted() {
     }
 
     private void ensureStillRunning() {
-        if (!(state.get() == State.UNCOMMITTED || state.get() == State.COMMITTING)) {
+        if (!isStillRunning()) {
             throw new CommittedTransactionException();
         }
     }
 
+    private boolean isStillRunning() {
+        return state.get() == State.UNCOMMITTED || state.get() == State.COMMITTING;
+    }
+
     /**
      * Returns true iff the transaction is known to have successfully committed.
      *
@@ -2596,9 +2623,10 @@ public TransactionReadInfo getReadInfo() {
         return keyValueService.getOverallReadInfo();
     }
 
-    // TODO(aalouane): implement and call this on transaction exit
     @Override
-    public void reportExpectationsCollectedData() {}
+    public void reportExpectationsCollectedData() {
+        reportExpectationsCollectedData(this, expectationsDataCollectionMetrics, isStillRunning());
+    }
 
     private long getStartTimestamp() {
         return startTimestamp.get();u}(j (7cfe40b64ef3d1cba1e9f7a040564383750e2f1cj: 5atlasdb-impl-shared/src/main/metrics/expectations.ymlj< addedj4 Kj5 K j> Kj? https://github.com/palantir/atlasdb/blob/c365b148e2264eae44359fb953f25c8121fe7eb2/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymljA https://github.com/palantir/atlasdb/raw/c365b148e2264eae44359fb953f25c8121fe7eb2/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymljC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=c365b148e2264eae44359fb953f25c8121fe7eb2jE X  @@ -0,0 +1,19 @@
+options:
+  javaPackage: 'com.palantir.atlasdb.transaction.expectations'
+
+namespaces:
+  expectations:
+    docs: Data collection on transaction patterns
+    metrics:
+      bytesRead:
+        docs: Bytes read by a transaction through Atlas kvs read calls
+        type: histogram
+      kvsCalls:
+        docs: Number of Atlas kvs read calls made by a transaction
+        type: histogram
+      ageMillis:
+        docs: Elapsed duration in milliseconds for a transaction
+        type: histogram
+      worstKvsBytesRead:
+        docs: Most bytes read by a transaction in one Atlas kvs read call
+        type: histogramu}(j (9feef822af230937af89de69bfcb9399f85ff308j: matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javaj< addedj4 Ktj5 K j> Ktj? https://github.com/palantir/atlasdb/blob/c365b148e2264eae44359fb953f25c8121fe7eb2/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajA https://github.com/palantir/atlasdb/raw/c365b148e2264eae44359fb953f25c8121fe7eb2/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=c365b148e2264eae44359fb953f25c8121fe7eb2jE XF  @@ -0,0 +1,116 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.spy;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.verifyNoInteractions;
+import static org.mockito.Mockito.when;
+
+import com.palantir.atlasdb.transaction.TransactionConfig;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.KvsCallReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
+import com.palantir.atlasdb.transaction.impl.ExpectationsAwareTransaction;
+import com.palantir.atlasdb.transaction.impl.SnapshotTransaction;
+import com.palantir.atlasdb.util.MetricsManager;
+import com.palantir.atlasdb.util.MetricsManagers;
+import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicReference;
+import java.util.function.Supplier;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Answers;
+import org.mockito.Mock;
+import org.mockito.Spy;
+import org.mockito.invocation.InvocationOnMock;
+import org.mockito.junit.MockitoJUnitRunner;
+import org.mockito.stubbing.Answer;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class ExpectationsMetricsReportingTest {
+    // immutable in type declaration for better 'withX' ergonomics
+    private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
+            ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
+
+    @Mock
+    ExpectationsAwareTransaction transaction;
+
+    ExpectationsMetrics metrics =
+            ExpectationsMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
+
+    @Before
+    public void setUp() {
+        // avoids stub/mock NPEs
+        when(transaction.getReadInfo()).thenReturn(BLANK_READ_INFO);
+    }
+
+    @Test
+    public void noMetricsAreReportedOnRunningTransaction() {
+        ExpectationsMetrics spiedOnMetrics = spy(metrics);
+        SnapshotTransaction.reportExpectationsCollectedData(transaction, spiedOnMetrics, true);
+        verifyNoInteractions(spiedOnMetrics);
+    }
+
+    @Test
+    public void ageReportedOnFinishedTransaction() {
+        long age = 129L;
+        when(transaction.getAgeMillis()).thenReturn(age);
+        reportMetricsOnFinishedTransaction();
+        assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
+    }
+
+    @Test
+    public void bytesReadReportedOnFinishedTransaction() {
+        long bytes = 1290L;
+        when(transaction.getReadInfo()).thenReturn(BLANK_READ_INFO.withBytesRead(bytes));
+        reportMetricsOnFinishedTransaction();
+        assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
+    }
+
+    @Test
+    public void kvsCallsReportedOnFinishedTransaction() {
+        long calls = 12L;
+        when(transaction.getReadInfo()).thenReturn(BLANK_READ_INFO.withKvsCalls(calls));
+        reportMetricsOnFinishedTransaction();
+        assertThat(metrics.kvsCalls().getSnapshot().getValues()).containsOnly(calls);
+    }
+
+    @Test
+    public void worstKvsBytesReadNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
+        reportMetricsOnFinishedTransaction();
+        assertThat(metrics.worstKvsBytesRead().getSnapshot().getValues()).isEmpty();
+    }
+
+    @Test
+    public void worstKvsBytesReadReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
+        long bytes = 193L;
+        when(transaction.getReadInfo())
+                .thenReturn(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        reportMetricsOnFinishedTransaction();
+        assertThat(metrics.worstKvsBytesRead().getSnapshot().getValues()).containsOnly(bytes);
+    }
+
+    private void reportMetricsOnFinishedTransaction() {
+        SnapshotTransaction.reportExpectationsCollectedData(transaction, metrics, false);
+    }
+}u}(j (1fb4910936b468dbb4a33cdf4d8638d51bafa577j: latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javaj< modifiedj4 Kj5 Kj> Kj? https://github.com/palantir/atlasdb/blob/c365b148e2264eae44359fb953f25c8121fe7eb2/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javajA https://github.com/palantir/atlasdb/raw/c365b148e2264eae44359fb953f25c8121fe7eb2/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=c365b148e2264eae44359fb953f25c8121fe7eb2jE X  @@ -237,7 +237,10 @@ public void registersMetrics() throws InterruptedException {
         TaggedMetricRegistry registry = snapshotTransactionManager.metricsManager.getTaggedRegistry();
         assertThat(registry.getMetrics().keySet().stream().map(MetricName::safeName))
                 .contains(SETUP_TASK_METRIC_NAME)
-                .contains(FINISH_TASK_METRIC_NAME);
+                .contains(FINISH_TASK_METRIC_NAME)
+                .contains("expectations.bytesRead")
+                .contains("expectations.kvsCalls")
+                .contains("expectations.ageMillis");
         assertThat(registry.timer(MetricName.builder()
                                 .safeName(SETUP_TASK_METRIC_NAME)
                                 .build())ueu(29c8bf68ec82a39025cf333b6bb6b6f8f89443da}(sha(29c8bf68ec82a39025cf333b6bb6b6f8f89443danode_idEC_kwDOAjP5fdoAKDI5YzhiZjY4ZWM4MmEzOTAyNWNmMzMzYjZiYjZiNmY4Zjg5NDQzZGEcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-19T08:58:12Zu	committer}(ji 	Tom Papkejk tpapke@palantir.comjm 2023-07-19T08:58:12ZumessageGAddress comments
Optimize metadata filtering in LockWatchingServiceImpltree}(ja (5e96653bf49661265154fe0552a451eeaf31bc63url`https://api.github.com/repos/palantir/atlasdb/git/trees/5e96653bf49661265154fe0552a451eeaf31bc63ujy bhttps://api.github.com/repos/palantir/atlasdb/git/commits/29c8bf68ec82a39025cf333b6bb6b6f8f89443da
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS3paQACgkQmF9s0kaF
Iw2GAQf/R6NDSyl8wZ8Vadf7SoIrvB5q1PAswuVMGLjlxEQ18HfAbMXOJRg2aSmw
IZ3ZuTvdLqRcUyZH611Lf511msnIiesnwaMDOcNcf4FouB/cXEZok4HThrUzYKP5
l9WJq2ofZRI6DWmJu8XN91G5FmFPKCPbjHI/1RABMzdCRq2pf3YTaJlzsSZdl24h
quq5o3i+VR6xX9RIYLr65lqrPbaUePKkQ862PvFKSsPurKaMJdDkMmzkBqS1N/XP
kOdwqDyOMyZkIh/7LBom4plUOutxR90XjKrm8fLe3vGvvVkdSPkAILlK6mdJsqo3
TkRTibcFY3BGTcooiiFmzHsz9guOWg==
=ifA/
-----END PGP SIGNATURE-----payloadX  tree 5e96653bf49661265154fe0552a451eeaf31bc63
parent 6cdbdcc7604c560b8773e4e1e5aa673e5c085ae3
author Tom Papke <tpapke@palantir.com> 1689757092 +0100
committer Tom Papke <tpapke@palantir.com> 1689757092 +0100

Address comments
Optimize metadata filtering in LockWatchingServiceImpl
uujy ^https://api.github.com/repos/palantir/atlasdb/commits/29c8bf68ec82a39025cf333b6bb6b6f8f89443dahtml_urlShttps://github.com/palantir/atlasdb/commit/29c8bf68ec82a39025cf333b6bb6b6f8f89443dacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/29c8bf68ec82a39025cf333b6bb6b6f8f89443da/commentsjg }(login	ToemmscheidJbojc MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jy &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujo }(j 	Toemmschej Jbojc MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5jy &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(ja (6cdbdcc7604c560b8773e4e1e5aa673e5c085ae3jy ^https://api.github.com/repos/palantir/atlasdb/commits/6cdbdcc7604c560b8773e4e1e5aa673e5c085ae3j Shttps://github.com/palantir/atlasdb/commit/6cdbdcc7604c560b8773e4e1e5aa673e5c085ae3uastats}(totalK_	additionsKG	deletionsKufiles](}(ja (045e910c290c4a8e6118800a391d3fd1da179745filenameKlock-api/src/test/java/com/palantir/lock/client/ConjureLockRequestTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/29c8bf68ec82a39025cf333b6bb6b6f8f89443da/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequestTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/29c8bf68ec82a39025cf333b6bb6b6f8f89443da/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequestTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequestTest.java?ref=29c8bf68ec82a39025cf333b6bb6b6f8f89443dapatchX4  @@ -307,8 +307,7 @@ public static final class Builder {
 
             private boolean _acquireTimeoutMsInitialized = false;
 
-            private Builder() {
-            }
+            private Builder() {}
 
             public Builder from(OldConjureLockRequest other) {
                 checkNotBuilt();u}(ja (cdf787a438437d0a0bab46d296c3d88508c279e9j Vtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/ConjureTimelockResource.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/29c8bf68ec82a39025cf333b6bb6b6f8f89443da/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FConjureTimelockResource.javaj https://github.com/palantir/atlasdb/raw/29c8bf68ec82a39025cf333b6bb6b6f8f89443da/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FConjureTimelockResource.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FConjureTimelockResource.java?ref=29c8bf68ec82a39025cf333b6bb6b6f8f89443daj X  @@ -75,7 +75,6 @@
 import com.palantir.lock.watch.LockWatchVersion;
 import com.palantir.timestamp.TimestampRange;
 import com.palantir.tokens.auth.AuthHeader;
-import java.util.ArrayList;
 import java.util.List;
 import java.util.Optional;
 import java.util.Set;u}(ja (44e0f8ab6ca2558ec6104e2f73854e841f216c6bj atimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/29c8bf68ec82a39025cf333b6bb6b6f8f89443da/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj https://github.com/palantir/atlasdb/raw/29c8bf68ec82a39025cf333b6bb6b6f8f89443da/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=29c8bf68ec82a39025cf333b6bb6b6f8f89443daj X  @@ -193,15 +193,17 @@ private static Optional<LockRequestMetadata> filterMetadataBasedOnFilteredLocks(
             Optional<LockRequestMetadata> unfilteredMetadata) {
         return unfilteredMetadata
                 .map(LockRequestMetadata::lockDescriptorToChangeMetadata)
-                .map(unfilteredLockMetadata -> {
+                .flatMap(unfilteredLockMetadata -> {
                     Map<LockDescriptor, ChangeMetadata> filteredLockMetadata = KeyedStream.ofEntries(
                                     unfilteredLockMetadata.entrySet().stream())
                             .filterKeys(lockDescriptor -> {
                                 assert unfilteredLocks.contains(lockDescriptor) : "Unknown lock descriptor in metadata";
                                 return filteredLocks.contains(lockDescriptor);
                             })
                             .collectToMap();
-                    return LockRequestMetadata.of(filteredLockMetadata);
+                    return filteredLockMetadata.isEmpty()
+                            ? Optional.empty()
+                            : Optional.of(LockRequestMetadata.of(filteredLockMetadata));
                 });
     }
 }u}(ja (2b250b7d920d2bfcc7d3ce072eaed3742cfb4a00j etimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImplTest.javaj modifiedj K'j K j K'j https://github.com/palantir/atlasdb/blob/29c8bf68ec82a39025cf333b6bb6b6f8f89443da/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/29c8bf68ec82a39025cf333b6bb6b6f8f89443da/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.java?ref=29c8bf68ec82a39025cf333b6bb6b6f8f89443daj Xk	  @@ -342,6 +342,45 @@ public void unlockWithoutLockTest() {
         assertLoggedEvents(expectedEvents);
     }
 
+    @Test
+    public void sparseMetadataIsFiltered() {
+        LockDescriptor cellOutOfRange = AtlasCellLockDescriptor.of(TABLE_2.getQualifiedName(), ROW, ROW);
+        LockDescriptor rowInRange = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), ROW);
+        LockDescriptor rowOutOfRange = AtlasRowLockDescriptor.of(TABLE_2.getQualifiedName(), ROW);
+
+        LockWatchRequest tableRequest = tableRequest();
+        lockWatcher.startWatching(tableRequest);
+
+        ImmutableSet<LockDescriptor> locks =
+                ImmutableSet.of(CELL_DESCRIPTOR, cellOutOfRange, rowInRange, rowOutOfRange);
+        lockWatcher.registerLock(
+                locks, TOKEN, createMetadataForLocks(ImmutableSet.of(CELL_DESCRIPTOR, cellOutOfRange)));
+
+        ImmutableSet<LockDescriptor> expectedFilteredLocks =
+                ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR, rowInRange);
+        List<LockWatchEvent> expectedEvents = ImmutableList.of(
+                createdEvent(tableRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(ImmutableSet.of(CELL_DESCRIPTOR))));
+        assertLoggedEvents(expectedEvents);
+    }
+
+    @Test
+    public void metadataIsRemovedIfMapEmptyAfterFiltering() {
+        LockDescriptor rowOutOfRange = AtlasRowLockDescriptor.of(TABLE_2.getQualifiedName(), ROW);
+
+        LockWatchRequest tableRequest = tableRequest();
+        lockWatcher.startWatching(tableRequest);
+
+        ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, rowOutOfRange);
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(ImmutableSet.of(rowOutOfRange)));
+
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(CELL_DESCRIPTOR);
+        List<LockWatchEvent> expectedEvents = ImmutableList.of(
+                createdEvent(tableRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
+                lockEvent(expectedFilteredLocks, Optional.empty()));
+        assertLoggedEvents(expectedEvents);
+    }
+
     private LockWatchEvent createdEvent(Set<LockWatchReference> references, Set<LockDescriptor> descriptors) {
         return LockWatchCreatedEvent.builder(references, descriptors).build(sequenceCounter++);
     }u}(ja (3dfb5b7f1909e36d9a30ffc83f18e7231000c611j ctimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchEventIntegrationTest.javaj modifiedj Kj Kj K.j https://github.com/palantir/atlasdb/blob/29c8bf68ec82a39025cf333b6bb6b6f8f89443da/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javaj https://github.com/palantir/atlasdb/raw/29c8bf68ec82a39025cf333b6bb6b6f8f89443da/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.java?ref=29c8bf68ec82a39025cf333b6bb6b6f8f89443daj X  @@ -26,7 +26,6 @@
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Iterables;
 import com.google.common.util.concurrent.Uninterruptibles;
-import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.AtlasLockDescriptorUtils;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.Namespace;
@@ -263,20 +262,28 @@ public void leaderElectionDuringTransactionCausesTransactionToFailRetriably() {
     public void absentMetadataIsVisibleToTransaction() {
         LockRequest requestWithoutMetadata = createTestLockRequest(
                 ImmutableSet.of(AtlasRowLockDescriptor.of(TABLE_REF.getQualifiedName(), ROW)), Optional.empty());
-        List<Optional<LockRequestMetadata>> allMetadata =
-                lockAndGetAllLockEventMetadataForNewTransaction(requestWithoutMetadata);
-        assertThat(allMetadata).containsExactly(Optional.empty());
+        assertThat(lockAndGetEventMetadataFromLockWatchLog(requestWithoutMetadata))
+                .isEmpty();
     }
 
     @Test
-    public void nonEmptyMetadataIsVisibleToTransaction() {
-        LockDescriptor lock = AtlasRowLockDescriptor.of(TABLE_REF.getQualifiedName(), ROW);
-        LockRequestMetadata metadata =
-                LockRequestMetadata.of(ImmutableMap.of(lock, ChangeMetadata.created(PtBytes.toBytes("foo"))));
-        LockRequest requestWithMetadata = createTestLockRequest(ImmutableSet.of(lock), Optional.of(metadata));
-        List<Optional<LockRequestMetadata>> allMetadata =
-                lockAndGetAllLockEventMetadataForNewTransaction(requestWithMetadata);
-        assertThat(allMetadata).containsExactly(Optional.of(metadata));
+    public void nonEmptyMetadataIsVisibleToTransactionForWatchedTable() {
+        LockDescriptor lock1 =
+                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_1.getRowName(), CELL_1.getColumnName());
+        LockDescriptor lock2 =
+                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_2.getRowName(), CELL_2.getColumnName());
+        LockDescriptor lock3 =
+                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_3.getRowName(), CELL_3.getColumnName());
+        LockDescriptor lock4 =
+                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_4.getRowName(), CELL_4.getColumnName());
+        LockRequestMetadata metadata = LockRequestMetadata.of(ImmutableMap.of(
+                lock1, ChangeMetadata.created(DATA_1),
+                lock2, ChangeMetadata.deleted(DATA_2),
+                lock3, ChangeMetadata.unchanged(),
+                lock4, ChangeMetadata.updated(DATA_3, DATA_4)));
+        LockRequest requestWithMetadata =
+                createTestLockRequest(ImmutableSet.of(lock1, lock2, lock3, lock4), Optional.of(metadata));
+        assertThat(lockAndGetEventMetadataFromLockWatchLog(requestWithMetadata)).contains(metadata);
     }
 
     private Runnable performWriteTransactionThatBlocksAfterLockingCells() {
@@ -387,18 +394,19 @@ private Set<LockDescriptor> getDescriptors(TableReference tableRef, Cell... cell
                 .collect(Collectors.toSet());
     }
 
-    private List<Optional<LockRequestMetadata>> lockAndGetAllLockEventMetadataForNewTransaction(
-            LockRequest lockRequest) {
-        txnManager.runTaskReadOnly(txn -> null);
+    private Optional<LockRequestMetadata> lockAndGetEventMetadataFromLockWatchLog(LockRequest lockRequest) {
         LockWatchVersion currentVersion = getCurrentVersion();
         LockResponse response = txnManager.getTimelockService().lock(lockRequest);
         // We need to clean up the lock, otherwise it will be held forever (the TimeLock cluster is static)!
         txnManager.getTimelockService().unlock(ImmutableSet.of(response.getToken()));
-        OpenTransaction dummyTxn = startSingleTransaction();
+        OpenTransaction newTxn = startSingleTransaction();
         List<LockWatchEvent> lockWatchEvents =
-                getUpdateForTransactions(Optional.of(currentVersion), dummyTxn).events();
-        dummyTxn.abort();
-        return LockWatchIntegrationTestUtilities.extractMetadata(lockWatchEvents);
+                getUpdateForTransactions(Optional.of(currentVersion), newTxn).events();
+        newTxn.abort();
+        List<Optional<LockRequestMetadata>> metadataList =
+                LockWatchIntegrationTestUtilities.extractMetadata(lockWatchEvents);
+        assertThat(metadataList).hasSize(1);
+        return metadataList.get(0);
     }
 
     private LockRequest createTestLockRequest(ueu(ad3c6263ed391eb3d4993f2b0b147ce29daeadf5}(sha(ad3c6263ed391eb3d4993f2b0b147ce29daeadf5node_idEC_kwDOAjP5fdoAKGFkM2M2MjYzZWQzOTFlYjNkNDk5M2YyYjBiMTQ3Y2UyOWRhZWFkZjUcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-07T14:31:14Zu	committer}(j  Lucas Meirelesj meireles31@msn.comj 2023-06-07T14:31:14Zumessageinline filterstree}(j (d07d939a63eea1f3bfca399ad6b3880a0270317furl`https://api.github.com/repos/palantir/atlasdb/git/trees/d07d939a63eea1f3bfca399ad6b3880a0270317fuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ad3c6263ed391eb3d4993f2b0b147ce29daeadf5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSAlLIACgkQJd22kJ7J
GizlIAf7Bn2we1PaGaTakQyr3wH/hTurDI3VYRFosPu/pneq2ut/c17LH8xt1YAm
Qh0N1jYmOj90Zr/lfnd89BNg5wRh2erCIMBBqu+7GuL0RzmPlKDRMVzXuqxfcx6U
eSOi2QpREwTaXLIEDT0/7/6ptv5304YNdwAjVc6RMqBYZo71kLwpEbdk/rCLcPlM
VE2iZ5jmU5tel+RbtJ3KWb9+9EXMkMadi9q3d6yfHxDRYdMKqHwohK8f8QXOBJys
vRvWUiuq0Hb0sl0ym3JfqFlDzKHkb85mH2Rg8EdpYC7iIuTD2YlYKIW/diUIoetM
B/71datIR8hmUlbiAwDv7wncm+w8Mw==
=qsrr
-----END PGP SIGNATURE-----payloadtree d07d939a63eea1f3bfca399ad6b3880a0270317f
parent 9b19a1d8ad77b0ff8b0ed2a44f227b2a1bcc8054
author Lucas Meireles <meireles31@msn.com> 1686148274 +0100
committer Lucas Meireles <meireles31@msn.com> 1686148274 +0100

inline filters
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/ad3c6263ed391eb3d4993f2b0b147ce29daeadf5html_urlShttps://github.com/palantir/atlasdb/commit/ad3c6263ed391eb3d4993f2b0b147ce29daeadf5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ad3c6263ed391eb3d4993f2b0b147ce29daeadf5/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j# LucasIMEj% Jg j MDQ6VXNlcjY3ODczMTE=j' 3https://avatars.githubusercontent.com/u/6787311?v=4j) h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj, /https://api.github.com/users/LucasIME/followersj. <https://api.github.com/users/LucasIME/following{/other_user}j0 5https://api.github.com/users/LucasIME/gists{/gist_id}j2 <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j4 3https://api.github.com/users/LucasIME/subscriptionsj6 *https://api.github.com/users/LucasIME/orgsj8 +https://api.github.com/users/LucasIME/reposj: 6https://api.github.com/users/LucasIME/events{/privacy}j< 5https://api.github.com/users/LucasIME/received_eventsj> Userj@ uparents]}(j (9b19a1d8ad77b0ff8b0ed2a44f227b2a1bcc8054j ^https://api.github.com/repos/palantir/atlasdb/commits/9b19a1d8ad77b0ff8b0ed2a44f227b2a1bcc8054j Shttps://github.com/palantir/atlasdb/commit/9b19a1d8ad77b0ff8b0ed2a44f227b2a1bcc8054uastats}(totalK	additionsK	deletionsKufiles]}(j (582a24e3462c647d3a7fc8712226be1c34707556filenamexatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javastatusmodifiedjZ Kj[ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ad3c6263ed391eb3d4993f2b0b147ce29daeadf5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ad3c6263ed391eb3d4993f2b0b147ce29daeadf5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=ad3c6263ed391eb3d4993f2b0b147ce29daeadf5patchX  @@ -106,26 +106,18 @@ public void readTransactionsDontDoWrites() {
         WorkflowHistory workflowHistory = workflow.run();
 
         Set<WitnessedTransaction> witnessedTransactionsWithReads = workflowHistory.history().stream()
-                .filter(this::transactionContainsReadAction)
+                .filter(txn -> txn.actions().stream().anyMatch(WitnessedReadTransactionAction.class::isInstance))
                 .collect(Collectors.toSet());
 
         Set<WitnessedTransaction> witnessedTransactionsWithWritesOrDeletes = workflowHistory.history().stream()
-                .filter(this::transactionContainsWriteOrDeleteAction)
+                .filter(txn -> txn.actions().stream()
+                        .anyMatch(action -> action instanceof WitnessedWriteTransactionAction
+                                || action instanceof WitnessedDeleteTransactionAction))
                 .collect(Collectors.toSet());
 
         Set<WitnessedTransaction> transactionsWithReadsAndWritesOrDeletes =
                 Sets.intersection(witnessedTransactionsWithReads, witnessedTransactionsWithWritesOrDeletes);
 
         assertThat(transactionsWithReadsAndWritesOrDeletes).isEmpty();
     }
-
-    private boolean transactionContainsReadAction(WitnessedTransaction txn) {
-        return txn.actions().stream().anyMatch(WitnessedReadTransactionAction.class::isInstance);
-    }
-
-    private boolean transactionContainsWriteOrDeleteAction(WitnessedTransaction txn) {
-        return txn.actions().stream()
-                .anyMatch(action -> action instanceof WitnessedWriteTransactionAction
-                        || action instanceof WitnessedDeleteTransactionAction);
-    }
 }uau(5da504936c65406a3dae3395e15fac5097586848}(sha(5da504936c65406a3dae3395e15fac5097586848node_idEC_kwDOAjP5fdoAKDVkYTUwNDkzNmM2NTQwNmEzZGFlMzM5NWUxNWZhYzUwOTc1ODY4NDgcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-09T13:53:02Zu	committer}(jw Jeremy Kongjy jkong@palantir.comj{ 2023-05-09T13:53:02Zumessagetestingtree}(jo (2dd530d7ccb4f6a5b6c953735e495fa39c5534c8url`https://api.github.com/repos/palantir/atlasdb/git/trees/2dd530d7ccb4f6a5b6c953735e495fa39c5534c8uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5da504936c65406a3dae3395e15fac5097586848
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRaUD8ACgkQTLdFKain
zjx5IggAjdKKaOv0cJV+tEMUQi6l7/WzI3U2jxRuDhLS6/dzXSz6ZlRxbjMLjkjL
iIm9z3e1HdlJo+C+PwnF+AMJ7o+yd3Pgy+e3QtwIc95x0qJyUjcf7zr2g9wq59xX
6rPxtBbphHiSHATHq12mFw04MSBaNYVgJP76A9ni6cPqj3N5Gy8BDf/Cei2AzOj+
lgSFIIHdIwEQe1MRa16tgeF9SpDIBwBBc7nT5JS4wICStD9VGJfuKkaX9zgrDWOt
qG1LonsyMeA8ovhblg0Zx+oFfln86PWEapaVNbQBWanBrJ2wCO2tMRv1iBWkiF73
PVJVIEZipq6nQFD5AwXQSBVRH+aYaw==
=P54b
-----END PGP SIGNATURE-----payloadtree 2dd530d7ccb4f6a5b6c953735e495fa39c5534c8
parent f28a1fb4318c3ec9c03d1ae1c48632d554a83626
author Jeremy Kong <jkong@palantir.com> 1683640382 +0100
committer Jeremy Kong <jkong@palantir.com> 1683640382 +0100

testing
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/5da504936c65406a3dae3395e15fac5097586848html_urlShttps://github.com/palantir/atlasdb/commit/5da504936c65406a3dae3395e15fac5097586848comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5da504936c65406a3dae3395e15fac5097586848/commentsju }(login
jeremyk-91idJZ jq MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj} }(j 
jeremyk-91j JZ jq MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(jo (f28a1fb4318c3ec9c03d1ae1c48632d554a83626j ^https://api.github.com/repos/palantir/atlasdb/commits/f28a1fb4318c3ec9c03d1ae1c48632d554a83626j Shttps://github.com/palantir/atlasdb/commit/f28a1fb4318c3ec9c03d1ae1c48632d554a83626uastats}(totalKS	additionsKS	deletionsK ufiles](}(jo (7deaaeb752dd206465461e58105cf13d7c7dbefffilenamelock-api/build.gradlestatusmodifiedj Kj K changesKblob_urlihttps://github.com/palantir/atlasdb/blob/5da504936c65406a3dae3395e15fac5097586848/lock-api%2Fbuild.gradleraw_urlhhttps://github.com/palantir/atlasdb/raw/5da504936c65406a3dae3395e15fac5097586848/lock-api%2Fbuild.gradlecontents_url{https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fbuild.gradle?ref=5da504936c65406a3dae3395e15fac5097586848patchX  @@ -45,6 +45,7 @@ dependencies {
     testImplementation 'com.palantir.common:streams'
     testImplementation 'io.dropwizard.metrics:metrics-core'
     testImplementation 'org.slf4j:slf4j-api'
+    testImplementation project(':lock-api-objects')
     testImplementation project(':lock-conjure-api:lock-conjure-api-objects')
     testImplementation project(':timelock-api:timelock-api-objects')
 u}(jo (b91cdca5120709047f5b9ac59960c207d9067e8bj Clock-api/src/test/java/com/palantir/lock/LockServerOptionsTest.javaj addedj KQj K j KQj https://github.com/palantir/atlasdb/blob/5da504936c65406a3dae3395e15fac5097586848/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.javaj https://github.com/palantir/atlasdb/raw/5da504936c65406a3dae3395e15fac5097586848/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.java?ref=5da504936c65406a3dae3395e15fac5097586848j X  @@ -0,0 +1,81 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.lock.v2.IdentifiedTimeLockRequest;
+import java.io.File;
+import java.io.IOException;
+import java.util.concurrent.TimeUnit;
+import org.junit.Test;
+
+public class LockServerOptionsTest {
+    private static final File LOCK_SERVER_OPTIONS_JSON = new File(IdentifiedTimeLockRequest.class
+            .getResource("/lock-server-options.json")
+            .getPath());
+    private static final LockServerOptions NON_STANDALONE_OPTIONS =
+            LockServerOptions.builder().isStandaloneServer(false).build();
+
+    private final ObjectMapper serverMapper = ObjectMappers.newServerObjectMapper();
+    private final ObjectMapper clientMapper = ObjectMappers.newClientObjectMapper();
+
+    @Test
+    public void serializationContainsIsStandaloneServerExplicitly() throws Exception {
+        assertThat(serverMapper.writeValueAsString(NON_STANDALONE_OPTIONS))
+                .isNotEmpty()
+                .contains("\"isStandaloneServer\":false");
+        assertThat(serverMapper.writeValueAsString(LockServerOptions.DEFAULT))
+                .isNotEmpty()
+                .contains("\"isStandaloneServer\":true");
+    }
+
+    @Test
+    public void serializationIsInverseOfDeserialization() throws JsonProcessingException {
+        assertSerializationIsInverseOfDeserialization(NON_STANDALONE_OPTIONS);
+        assertSerializationIsInverseOfDeserialization(LockServerOptions.DEFAULT);
+    }
+
+    @Test
+    public void existingOptionsCanBeDeserialized() throws IOException {
+        LockServerOptions lockServerOptions = LockServerOptions.builder()
+                .maxAllowedLockTimeout(SimpleTimeDuration.of(1, TimeUnit.MILLISECONDS))
+                .maxAllowedClockDrift(SimpleTimeDuration.of(2, TimeUnit.SECONDS))
+                .maxAllowedBlockingDuration(SimpleTimeDuration.of(3, TimeUnit.MINUTES))
+                .maxNormalLockAge(SimpleTimeDuration.of(4, TimeUnit.HOURS))
+                .randomBitCount(32)
+                .stuckTransactionTimeout(SimpleTimeDuration.of(5, TimeUnit.DAYS))
+                .slowLogTriggerMillis(12345)
+                .isStandaloneServer(false)
+                .build();
+
+        assertThat(clientMapper.readValue(LOCK_SERVER_OPTIONS_JSON, LockServerOptions.class))
+                .isEqualTo(lockServerOptions);
+        assertThat(serverMapper.readValue(LOCK_SERVER_OPTIONS_JSON, LockServerOptions.class))
+                .isEqualTo(lockServerOptions);
+    }
+
+    private void assertSerializationIsInverseOfDeserialization(LockServerOptions options)
+            throws JsonProcessingException {
+        String json = serverMapper.writeValueAsString(options);
+        assertThat(clientMapper.readValue(json, LockServerOptions.class)).isEqualTo(options);
+        assertThat(serverMapper.readValue(json, LockServerOptions.class)).isEqualTo(options);
+    }
+}u}(jo (efe8f1aaad6365f7c6d18f7a187cf695d298d214j 4lock-api/src/test/resources/lock-server-options.jsonj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/5da504936c65406a3dae3395e15fac5097586848/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.jsonj https://github.com/palantir/atlasdb/raw/5da504936c65406a3dae3395e15fac5097586848/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.jsonj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.json?ref=5da504936c65406a3dae3395e15fac5097586848j Xa  @@ -0,0 +1 @@
+{"maxAllowedLockTimeout":{"time":1,"unit":"MILLISECONDS"},"maxAllowedClockDrift":{"time":2,"unit":"SECONDS"},"maxAllowedBlockingDuration":{"time":3,"unit":"MINUTES"},"maxNormalLockAge":{"time":4,"unit":"HOURS"},"randomBitCount":32,"stuckTransactionTimeout":{"time":5,"unit":"DAYS"},"slowLogTriggerMillis":12345,"isStandaloneServer":false}ueu(bd1f3bf45120c98217d800a2889ff2735d3a53b5}(sha(bd1f3bf45120c98217d800a2889ff2735d3a53b5node_idEC_kwDOAjP5fdoAKGJkMWYzYmY0NTEyMGM5ODIxN2Q4MDBhMjg4OWZmMjczNWQzYTUzYjUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-03-13T18:00:35Zu	committer}(j Jeremy Kongj  jkong@palantir.comj 2023-03-13T18:00:35Zumessage
CR checkpointtree}(j (e8536836b31f09f27467708ac9f7c97673872851url`https://api.github.com/repos/palantir/atlasdb/git/trees/e8536836b31f09f27467708ac9f7c97673872851uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bd1f3bf45120c98217d800a2889ff2735d3a53b5
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQPZMMACgkQTLdFKain
zjw+EQgAxCdTGEY2uithKxoeZkrlSQQIYeFhP1ZUExt2RqfiHzeUj/V+v/L1MU0x
H1r4+CBdWVcxLA71zha06w4F7FrZ0v9OS32Sj/sP32Fq0CjRtTSecnA8ruXlC3iF
FPE1gJXZMiLwZU3MF1X4h33VjZTFmSW2PxJtcs5op9PHIAbsJTg+pAIlFhpnefgE
YXyLklCcDObveVXQKaPD5DUgr91MTOepP6CAeQ3gAbRUMrS9blagT+H/+col6PI3
EOW+GrtLIqFa1XbPRHli9jIUB7AaJKFvr1AI7gOIBQp8FQLiMHiezpzYU7Iv0BHS
QAKX4yVps0BwM4HHItwghzEjnwMsEw==
=WMuH
-----END PGP SIGNATURE-----payloadtree e8536836b31f09f27467708ac9f7c97673872851
parent 5bce9474e0c19bcd3ea1a95d317ade27a61a33e2
author Jeremy Kong <jkong@palantir.com> 1678730435 +0000
committer Jeremy Kong <jkong@palantir.com> 1678730435 +0000

CR checkpoint
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/bd1f3bf45120c98217d800a2889ff2735d3a53b5html_urlShttps://github.com/palantir/atlasdb/commit/bd1f3bf45120c98217d800a2889ff2735d3a53b5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bd1f3bf45120c98217d800a2889ff2735d3a53b5/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j! 
jeremyk-91j# JZ j MDQ6VXNlcjU5NTU1MTA=j% 3https://avatars.githubusercontent.com/u/5955510?v=4j' h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j* 1https://api.github.com/users/jeremyk-91/followersj, >https://api.github.com/users/jeremyk-91/following{/other_user}j. 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j0 >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j2 5https://api.github.com/users/jeremyk-91/subscriptionsj4 ,https://api.github.com/users/jeremyk-91/orgsj6 -https://api.github.com/users/jeremyk-91/reposj8 8https://api.github.com/users/jeremyk-91/events{/privacy}j: 7https://api.github.com/users/jeremyk-91/received_eventsj< Userj> uparents]}(j (5bce9474e0c19bcd3ea1a95d317ade27a61a33e2j ^https://api.github.com/repos/palantir/atlasdb/commits/5bce9474e0c19bcd3ea1a95d317ade27a61a33e2j Shttps://github.com/palantir/atlasdb/commit/5bce9474e0c19bcd3ea1a95d317ade27a61a33e2uastats}(totalM	additionsM%	deletionsKufiles](}(j (5b091fc94e8fd21170c2c58a346d8ebb225aaedcfilenameSatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/ConflictHandler.javastatusmodifiedjX KjY K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/bd1f3bf45120c98217d800a2889ff2735d3a53b5/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FConflictHandler.javaraw_urlhttps://github.com/palantir/atlasdb/raw/bd1f3bf45120c98217d800a2889ff2735d3a53b5/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FConflictHandler.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FConflictHandler.java?ref=bd1f3bf45120c98217d800a2889ff2735d3a53b5patchX  @@ -15,6 +15,8 @@
  */
 package com.palantir.atlasdb.transaction.api;
 
+import com.fasterxml.jackson.databind.ObjectMapper;
+
 public enum ConflictHandler {
     /**
      * If two transactions concurrently write to the same cell the one that has started later will win.  Weu}(j (ad6341354be1deea502c0fda2b38af001848c2f3j^ katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowConfiguration.javaj` modifiedjX KjY Kjb K	jc https://github.com/palantir/atlasdb/blob/bd1f3bf45120c98217d800a2889ff2735d3a53b5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaje https://github.com/palantir/atlasdb/raw/bd1f3bf45120c98217d800a2889ff2735d3a53b5/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javajg https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.java?ref=bd1f3bf45120c98217d800a2889ff2735d3a53b5ji Xt  @@ -16,10 +16,17 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeInfo.As;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import org.immutables.value.Value;
 
-@Value.Immutable
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
+@JsonSubTypes({
+        @JsonSubTypes.Type(value = SRTCW)
+})
 public interface WorkflowConfiguration {
     int iterationCount();
 u}(j (925862b9f16dc743e165ce0c6fa33e53da158a5ej^ xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javaj` modifiedjX K
jY Kjb Kjc https://github.com/palantir/atlasdb/blob/bd1f3bf45120c98217d800a2889ff2735d3a53b5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaje https://github.com/palantir/atlasdb/raw/bd1f3bf45120c98217d800a2889ff2735d3a53b5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javajg https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=bd1f3bf45120c98217d800a2889ff2735d3a53b5ji X=  @@ -16,12 +16,20 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.google.common.util.concurrent.RateLimiter;
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface SingleRowTwoCellsWorkflowConfiguration {
-    WorkflowConfiguration genericWorkflowConfiguration();
+@JsonSerialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "SINGLE_ROW_TWO_CELLS";
+
+    default String type() {
+        return TYPE;
+    }
 
     TableConfiguration tableConfiguration();
 u}(j (cb419d753836c7348cb79e2c05ed538618220277j^ latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javaj` modifiedjX KjY K
jb K*jc https://github.com/palantir/atlasdb/blob/bd1f3bf45120c98217d800a2889ff2735d3a53b5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaje https://github.com/palantir/atlasdb/raw/bd1f3bf45120c98217d800a2889ff2735d3a53b5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javajg https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=bd1f3bf45120c98217d800a2889ff2735d3a53b5ji X  @@ -30,6 +30,7 @@
 import java.util.List;
 import java.util.Optional;
 import java.util.stream.Collectors;
+import org.jetbrains.annotations.NotNull;
 
 /**
  * Consider a single row in a database that has two cells, which should between them maintain the invariant that
@@ -45,6 +46,7 @@ public final class SingleRowTwoCellsWorkflows {
     @VisibleForTesting
     static final WorkloadCell FIRST_CELL = ImmutableWorkloadCell.of(SINGLE_ROW, FIRST_COLUMN);
 
+    @VisibleForTesting
     static final WorkloadCell SECOND_CELL = ImmutableWorkloadCell.of(SINGLE_ROW, SECOND_COLUMN);
 
     private SingleRowTwoCellsWorkflows() {
@@ -56,28 +58,42 @@ public static Workflow createSingleRowTwoCell(
         return DefaultWorkflow.create(
                 store,
                 (txnStore, index) -> run(txnStore, index, singleRowTwoCellsWorkflowConfiguration),
-                singleRowTwoCellsWorkflowConfiguration.genericWorkflowConfiguration());
+                singleRowTwoCellsWorkflowConfiguration);
     }
 
     private static Optional<WitnessedTransaction> run(
             TransactionStore store, int taskIndex, SingleRowTwoCellsWorkflowConfiguration workflowConfiguration) {
         workflowConfiguration.transactionRateLimiter().acquire();
 
-        String tableName = workflowConfiguration.tableConfiguration().tableName();
-        List<TransactionAction> cellReads = ImmutableList.of(
-                ReadTransactionAction.of(tableName, FIRST_CELL), ReadTransactionAction.of(tableName, SECOND_CELL));
-        List<TransactionAction> cellUpdates = shouldWriteToFirstCell(taskIndex)
+        List<TransactionAction> transactionActions = createTransactionActions(taskIndex, workflowConfiguration.tableConfiguration().tableName());
+        return store.readWrite(transactionActions);
+    }
+
+    @VisibleForTesting
+    static List<TransactionAction> createTransactionActions(int taskIndex, String tableName) {
+        List<TransactionAction> cellReads = createCellReadActions(tableName);
+        List<TransactionAction> cellUpdates = createCellUpdateActions(taskIndex, tableName);
+        return Streams.concat(cellReads.stream(), cellUpdates.stream(), cellReads.stream())
+                .collect(Collectors.toList());
+    }
+
+    @VisibleForTesting
+    static boolean shouldWriteToFirstCell(int taskIndex) {
+        return taskIndex % 2 == 0;
+    }
+
+    private static List<TransactionAction> createCellUpdateActions(int taskIndex, String tableName) {
+        return shouldWriteToFirstCell(taskIndex)
                 ? ImmutableList.of(
-                        WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
-                        DeleteTransactionAction.of(tableName, SECOND_CELL))
+                WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
+                DeleteTransactionAction.of(tableName, SECOND_CELL))
                 : ImmutableList.of(
-                        DeleteTransactionAction.of(tableName, FIRST_CELL),
-                        WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
-        return store.readWrite(Streams.concat(cellReads.stream(), cellUpdates.stream(), cellReads.stream())
-                .collect(Collectors.toList()));
+                DeleteTransactionAction.of(tableName, FIRST_CELL),
+                WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
     }
 
-    private static boolean shouldWriteToFirstCell(int taskIndex) {
-        return taskIndex % 2 == 0;
+    private static List<TransactionAction> createCellReadActions(String tableName) {
+        return ImmutableList.of(
+                ReadTransactionAction.of(tableName, FIRST_CELL), ReadTransactionAction.of(tableName, SECOND_CELL));
     }
 }u      }(j (6de3da13eb9633e18589e99b8c28cfd6aca146cfj^ datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TableConfiguration.javaj` modifiedjX KjY K jb Kjc https://github.com/palantir/atlasdb/blob/bd1f3bf45120c98217d800a2889ff2735d3a53b5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.javaje https://github.com/palantir/atlasdb/raw/bd1f3bf45120c98217d800a2889ff2735d3a53b5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.javajg https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.java?ref=bd1f3bf45120c98217d800a2889ff2735d3a53b5ji X  @@ -16,10 +16,14 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import org.immutables.value.Value;
 
 @Value.Immutable
+@JsonSerialize(as = ImmutableTableConfiguration.class)
+@JsonDeserialize(as = ImmutableTableConfiguration.class)
 public interface TableConfiguration {
     String tableName();
 u}(j (bd65d139ca281f95601d2fd3dc0c6adf18178674j^ eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javaj` modifiedjX KjY Kjb Kjc https://github.com/palantir/atlasdb/blob/bd1f3bf45120c98217d800a2889ff2735d3a53b5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaje https://github.com/palantir/atlasdb/raw/bd1f3bf45120c98217d800a2889ff2735d3a53b5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javajg https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=bd1f3bf45120c98217d800a2889ff2735d3a53b5ji X?  @@ -24,6 +24,7 @@
 import static org.mockito.Mockito.when;
 
 import com.google.common.collect.ImmutableList;
+import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
@@ -99,10 +100,19 @@ public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
     }
 
     private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
-        return ImmutableWorkflowConfiguration.builder()
-                .iterationCount(iterationCount)
-                .executionExecutor(MoreExecutors.listeningDecorator(scheduler))
-                .build();
+        return new WorkflowConfiguration() {
+            private final ListeningExecutorService executionExecutor = MoreExecutors.listeningDecorator(scheduler);
+
+            @Override
+            public int iterationCount() {
+                return iterationCount;
+            }
+
+            @Override
+            public ListeningExecutorService executionExecutor() {
+                return executionExecutor;
+            }
+        };
     }
 
     private static WitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {u}(j (ca58a22c2fa41aca61e88a8fd75c6ec5ef55f5f9j^ satlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsExample.javaj` addedjX KjY K jb Kjc https://github.com/palantir/atlasdb/blob/bd1f3bf45120c98217d800a2889ff2735d3a53b5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsExample.javaje https://github.com/palantir/atlasdb/raw/bd1f3bf45120c98217d800a2889ff2735d3a53b5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsExample.javajg https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsExample.java?ref=bd1f3bf45120c98217d800a2889ff2735d3a53b5ji X!  @@ -0,0 +1,177 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.Namespace;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.stream.Stream;
+import org.junit.Test;
+
+public class SingleRowTwoCellsWorkflowsExample {
+    private static final TableReference TEST_TABLE =
+            TableReference.create(Namespace.create("test"), "singleRowTwoCells");
+    private static final int ITERATION_COUNT = 1_000;
+
+    @Test
+    public void workflowPassesWithSerializableConflictChecking() {
+        runWorkflowWithConflictHandler(ConflictHandler.SERIALIZABLE, ITERATION_COUNT);
+    }
+
+    @Test
+    public void workflowDoesNotPassWhenConflictsAreNotHandled() {
+        assertThatThrownBy(() -> runWorkflowWithConflictHandler(ConflictHandler.IGNORE_ALL, 100))
+                .isInstanceOf(AssertionError.class);
+    }
+
+    private void runWorkflowWithConflictHandler(ConflictHandler conflictHandler, int iterations) {
+        SingleRowTwoCellsWorkflowConfiguration configuration = ImmutableSingleRowTwoCellsWorkflowConfiguration.builder()
+                .iterationCount(iterations)
+                .executionExecutor(MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(100)))
+                .tableConfiguration(ImmutableTableConfiguration.builder()
+                        .tableName(TEST_TABLE.getTableName())
+                        .conflictHandler(conflictHandler)
+                        .build())
+                .build();
+
+        TransactionStore transactionStore = AtlasDbTransactionStore.create(
+                TransactionManagers.createInMemory(ImmutableSet.of()),
+                ImmutableMap.of(
+                        TEST_TABLE,
+                        AtlasDbUtils.tableMetadata(
+                                configuration.tableConfiguration().conflictHandler())));
+        Workflow workflow = SingleRowTwoCellsWorkflows.createSingleRowTwoCell(transactionStore, configuration);
+        assertWorkflowHistoryConsistent(workflow.run());
+    }
+
+    // This is basically a very simple invariant checker
+    private void assertWorkflowHistoryConsistent(WorkflowHistory workflowHistory) {
+        List<WitnessedTransaction> transactionsByCommitTime = workflowHistory.history();
+        CellStateCheckingVisitor cellStateCheckingVisitor = new CellStateCheckingVisitor();
+
+        transactionsByCommitTime.forEach(witnessedTransaction -> {
+            LocalWriteWitnessVisitor localWriteWitnessVisitor = new LocalWriteWitnessVisitor();
+            witnessedTransaction.actions().forEach(action -> {
+                action.accept(localWriteWitnessVisitor);
+                action.accept(cellStateCheckingVisitor);
+            });
+        });
+
+        // Start from 1 intentional as we want to look at pairs of transactions
+        for (int index = 1; index < transactionsByCommitTime.size(); index++) {
+            WitnessedTransaction predecessor = transactionsByCommitTime.get(index - 1);
+            WitnessedTransaction successor = transactionsByCommitTime.get(index);
+
+            assertThat(predecessor.commitTimestamp())
+                    .hasValueSatisfying(predecessorCommitTimestamp ->
+                            assertThat(predecessorCommitTimestamp).isLessThan(successor.startTimestamp()))
+                    .as("given all transactions touch the same cells, overlapping transactions should conflict and so "
+                            + "they should not be allowed");
+        }
+
+        validateFinalTableState(workflowHistory);
+    }
+
+    private static void validateFinalTableState(WorkflowHistory workflowHistory) {
+        Optional<Integer> firstCellState = workflowHistory
+                .transactionStore()
+                .get(TEST_TABLE.getTableName(), SingleRowTwoCellsWorkflows.FIRST_CELL);
+        Optional<Integer> secondCellState = workflowHistory
+                .transactionStore()
+                .get(TEST_TABLE.getTableName(), SingleRowTwoCellsWorkflows.SECOND_CELL);
+        assertThat(firstCellState.isPresent() ^ secondCellState.isPresent())
+                .as("exactly one of the cells should be present")
+                .isTrue();
+        int cellValue = Stream.of(firstCellState, secondCellState)
+                .flatMap(Optional::stream)
+                .findAny()
+                .orElseThrow();
+        assertThat(cellValue)
+                .as("cell value must correspond with the ID of a writer")
+                .isBetween(0, ITERATION_COUNT);
+    }
+
+    private static final class LocalWriteWitnessVisitor implements WitnessedTransactionActionVisitor<Void> {
+        private final Map<WorkloadCell, Optional<Integer>> localWriteMap = new HashMap<>();
+
+        @Override
+        public Void visit(WitnessedReadTransactionAction readTransactionAction) {
+            if (localWriteMap.containsKey(readTransactionAction.cell())) {
+                assertThat(readTransactionAction.value()).isEqualTo(localWriteMap.get(readTransactionAction.cell()));
+            }
+            return null;
+        }
+
+        @Override
+        public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
+            localWriteMap.put(writeTransactionAction.cell(), Optional.of(writeTransactionAction.value()));
+            return null;
+        }
+
+        @Override
+        public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+            localWriteMap.put(deleteTransactionAction.cell(), Optional.empty());
+            return null;
+        }
+    }
+
+    private static final class CellStateCheckingVisitor implements WitnessedTransactionActionVisitor<Void> {
+        private final Map<WorkloadCell, Integer> tableState = new HashMap<>();
+
+        @Override
+        public Void visit(WitnessedReadTransactionAction readTransactionAction) {
+            Optional<Integer> expected = Optional.ofNullable(tableState.get(readTransactionAction.cell()));
+            assertThat(readTransactionAction.value())
+                    .as("read a cell that does not match the expected table state")
+                    .isEqualTo(expected);
+            return null;
+        }
+
+        @Override
+        public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
+            tableState.put(writeTransactionAction.cell(), writeTransactionAction.value());
+            return null;
+        }
+
+        @Override
+        public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+            tableState.remove(deleteTransactionAction.cell());
+            return null;
+        }
+    }
+}u}(j (33f64d385f975d54cd14a0fd5cd04c1c7e21d3c6j^ patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javaj` modifiedjX K1jY Kjb Kjc https://github.com/palantir/atlasdb/blob/bd1f3bf45120c98217d800a2889ff2735d3a53b5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaje https://github.com/palantir/atlasdb/raw/bd1f3bf45120c98217d800a2889ff2735d3a53b5/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javajg https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=bd1f3bf45120c98217d800a2889ff2735d3a53b5ji Xq/  @@ -17,162 +17,67 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
-import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.util.concurrent.MoreExecutors;
-import com.palantir.atlasdb.factory.TransactionManagers;
-import com.palantir.atlasdb.keyvalue.api.Namespace;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
-import com.palantir.atlasdb.transaction.api.ConflictHandler;
-import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
-import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
-import com.palantir.atlasdb.workload.util.AtlasDbUtils;
-import com.palantir.common.concurrent.PTExecutors;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import java.util.stream.Stream;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import org.junit.Test;
 
 public class SingleRowTwoCellsWorkflowsTest {
-    private static final TableReference TEST_TABLE =
-            TableReference.create(Namespace.create("test"), "singleRowTwoCells");
-    private static final int ITERATION_COUNT = 1_000;
+    private static final String TABLE_NAME = "coffee";
 
     @Test
-    public void workflowPassesWithSerializableConflictChecking() {
-        runWorkflowWithConflictHandler(ConflictHandler.SERIALIZABLE, ITERATION_COUNT);
+    public void shouldWriteToFirstCellOnEvenIndices() {
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(0)).isTrue();
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(2)).isTrue();
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(24682468)).isTrue();
     }
 
     @Test
-    public void workflowDoesNotPassWhenConflictsAreNotHandled() {
-        assertThatThrownBy(() -> runWorkflowWithConflictHandler(ConflictHandler.IGNORE_ALL, 100))
-                .isInstanceOf(AssertionError.class);
+    public void shouldNotWriteToFirstCellOnOddIndices() {
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(1)).isFalse();
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(3)).isFalse();
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(35793579)).isFalse();
     }
 
-    private void runWorkflowWithConflictHandler(ConflictHandler conflictHandler, int iterations) {
-        SingleRowTwoCellsWorkflowConfiguration configuration = ImmutableSingleRowTwoCellsWorkflowConfiguration.builder()
-                .tableConfiguration(ImmutableTableConfiguration.builder()
-                        .tableName(TEST_TABLE.getTableName())
-                        .conflictHandler(conflictHandler)
-                        .build())
-                .genericWorkflowConfiguration(ImmutableWorkflowConfiguration.builder()
-                        .iterationCount(iterations)
-                        .executionExecutor(MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(100)))
-                        .build())
-                .build();
-
-        TransactionStore transactionStore = AtlasDbTransactionStore.create(
-                TransactionManagers.createInMemory(ImmutableSet.of()),
-                ImmutableMap.of(
-                        TEST_TABLE,
-                        AtlasDbUtils.tableMetadata(
-                                configuration.tableConfiguration().conflictHandler())));
-        Workflow workflow = SingleRowTwoCellsWorkflows.createSingleRowTwoCell(transactionStore, configuration);
-        assertWorkflowHistoryConsistent(workflow.run());
-    }
-
-    // This is basically a very simple invariant checker
-    private void assertWorkflowHistoryConsistent(WorkflowHistory workflowHistory) {
-        List<WitnessedTransaction> transactionsByCommitTime = workflowHistory.history();
-        CellStateCheckingVisitor cellStateCheckingVisitor = new CellStateCheckingVisitor();
-
-        transactionsByCommitTime.forEach(witnessedTransaction -> {
-            LocalWriteWitnessVisitor localWriteWitnessVisitor = new LocalWriteWitnessVisitor();
-            witnessedTransaction.actions().forEach(action -> {
-                action.accept(localWriteWitnessVisitor);
-                action.accept(cellStateCheckingVisitor);
-            });
-        });
-
-        // Start from 1 intentional as we want to look at pairs of transactions
-        for (int index = 1; index < transactionsByCommitTime.size(); index++) {
-            WitnessedTransaction predecessor = transactionsByCommitTime.get(index - 1);
-            WitnessedTransaction successor = transactionsByCommitTime.get(index);
-
-            assertThat(predecessor.commitTimestamp().orElseThrow())
-                    .as("given all transactions touch the same cells, overlapping transactions should conflict and so "
-                            + "they should not be allowed")
-                    .isLessThan(successor.startTimestamp());
-        }
-
-        validateFinalTableState(workflowHistory);
-    }
-
-    private static void validateFinalTableState(WorkflowHistory workflowHistory) {
-        Optional<Integer> firstCellState = workflowHistory
-                .transactionStore()
-                .get(TEST_TABLE.getTableName(), SingleRowTwoCellsWorkflows.FIRST_CELL);
-        Optional<Integer> secondCellState = workflowHistory
-                .transactionStore()
-                .get(TEST_TABLE.getTableName(), SingleRowTwoCellsWorkflows.SECOND_CELL);
-        assertThat(firstCellState.isPresent() ^ secondCellState.isPresent())
-                .as("exactly one of the cells should be present")
-                .isTrue();
-        int cellValue = Stream.of(firstCellState, secondCellState)
-                .flatMap(Optional::stream)
-                .findAny()
-                .orElseThrow();
-        assertThat(cellValue)
-                .as("cell value must correspond with the ID of a writer")
-                .isBetween(0, ITERATION_COUNT);
-    }
-
-    private static final class LocalWriteWitnessVisitor implements WitnessedTransactionActionVisitor<Void> {
-        private final Map<WorkloadCell, Optional<Integer>> localWriteMap = new HashMap<>();
-
-        @Override
-        public Void visit(WitnessedReadTransactionAction readTransactionAction) {
-            if (localWriteMap.containsKey(readTransactionAction.cell())) {
-                assertThat(readTransactionAction.value()).isEqualTo(localWriteMap.get(readTransactionAction.cell()));
-            }
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
-            localWriteMap.put(writeTransactionAction.cell(), Optional.of(writeTransactionAction.value()));
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
-            localWriteMap.put(deleteTransactionAction.cell(), Optional.empty());
-            return null;
-        }
+    @Test
+    public void createsCorrectTransactionActions() {
+        assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(0, TABLE_NAME))
+                .containsExactly(
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
+                        DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+        assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(1, TABLE_NAME))
+                .containsExactly(
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, 1),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
     }
 
-    private static final class CellStateCheckingVisitor implements WitnessedTransactionActionVisitor<Void> {
-        private final Map<WorkloadCell, Integer> tableState = new HashMap<>();
-
-        @Override
-        public Void visit(WitnessedReadTransactionAction readTransactionAction) {
-            Optional<Integer> expected = Optional.ofNullable(tableState.get(readTransactionAction.cell()));
-            assertThat(readTransactionAction.value())
-                    .as("read a cell that does not match the expected table state")
-                    .isEqualTo(expected);
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
-            tableState.put(writeTransactionAction.cell(), writeTransactionAction.value());
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
-            tableState.remove(deleteTransactionAction.cell());
-            return null;
-        }
+    @Test
+    public void writesValueCorrespondingToTaskIndexInRelevantCell() {
+        // This test makes sense in relation to createCorrectTransactionActionsForIndex().
+        assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(31415926, TABLE_NAME))
+                .containsExactly(
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 31415926),
+                        DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+        assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(6021023, TABLE_NAME))
+                .containsExactly(
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, 6021023),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
     }
 }ueu(daf9fc830af8d8d8ab744dc6203a3c505e107793}(sha(daf9fc830af8d8d8ab744dc6203a3c505e107793node_idEC_kwDOAjP5fdoAKGRhZjlmYzgzMGFmOGQ4ZDhhYjc0NGRjNjIwM2EzYzUwNWUxMDc3OTMcommit}(author}(name
Samuel Krameremailskramer@palantir.comdate2023-04-03T16:05:43Zu	committer}(j 
Samuel Kramerj skramer@palantir.comj 2023-04-03T16:05:43Zumessageyonly log invariants when found and print map of violations

This reverts commit eceb15181f0668678cfe5e1e0d91d2d0a20d6366.tree}(j (dee76f84c19c0aff7619da37602e2393f8de6acburl`https://api.github.com/repos/palantir/atlasdb/git/trees/dee76f84c19c0aff7619da37602e2393f8de6acbuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/daf9fc830af8d8d8ab744dc6203a3c505e107793
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj ^https://api.github.com/repos/palantir/atlasdb/commits/daf9fc830af8d8d8ab744dc6203a3c505e107793html_urlShttps://github.com/palantir/atlasdb/commit/daf9fc830af8d8d8ab744dc6203a3c505e107793comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/daf9fc830af8d8d8ab744dc6203a3c505e107793/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (eceb15181f0668678cfe5e1e0d91d2d0a20d6366j ^https://api.github.com/repos/palantir/atlasdb/commits/eceb15181f0668678cfe5e1e0d91d2d0a20d6366j Shttps://github.com/palantir/atlasdb/commit/eceb15181f0668678cfe5e1e0d91d2d0a20d6366uastats}(totalK	additionsK	deletionsKufiles](}(j (4abe2734e0a87a6cc8c80e194a954285997f9d2cfilename1atlasdb-workload-server-distribution/build.gradlestatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/daf9fc830af8d8d8ab744dc6203a3c505e107793/atlasdb-workload-server-distribution%2Fbuild.gradleraw_urlhttps://github.com/palantir/atlasdb/raw/daf9fc830af8d8d8ab744dc6203a3c505e107793/atlasdb-workload-server-distribution%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=daf9fc830af8d8d8ab744dc6203a3c505e107793patchX  @@ -5,6 +5,8 @@ apply from: "../gradle/shared.gradle"
 apply from: "../gradle/non-client-dist.gradle"
 
 dependencies {
+    implementation 'ch.qos.logback:logback-classic'
+    implementation 'ch.qos.logback:logback-core'
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'
     implementation 'com.fasterxml.jackson.core:jackson-databind'u}(j (457f6d79b122913be9fac3d78d156cbefead5935j watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporter.javaj
 modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/daf9fc830af8d8d8ab744dc6203a3c505e107793/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.javaj https://github.com/palantir/atlasdb/raw/daf9fc830af8d8d8ab744dc6203a3c505e107793/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.java?ref=daf9fc830af8d8d8ab744dc6203a3c505e107793j XW  @@ -51,7 +51,11 @@ public Consumer<Map<TableAndWorkloadCell, MismatchedValue>> consumer() {
                     .table(tableAndWorkloadCell.tableName())
                     .build()
                     .inc());
-            log.warn("Durable writes invariant violations found!", SafeArg.of("mismatchingValues", mismatchingValues));
+            if (!mismatchingValues.isEmpty()) {
+                log.warn(
+                        "Durable writes invariant violations found: {}",
+                        SafeArg.of("mismatchingValues", mismatchingValues));
+            }
         };
     }
 }ueu(779e43f495612e720a8f70c0d32a39443634f190}(sha(779e43f495612e720a8f70c0d32a39443634f190node_idEC_kwDOAjP5fdoAKDc3OWU0M2Y0OTU2MTJlNzIwYThmNzBjMGQzMmEzOTQ0MzYzNGYxOTAcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-12T09:23:51Zu	committer}(j* 	Tom Papkej, tpapke@palantir.comj. 2023-06-12T09:23:51Zumessage-Move Cache-related constants to configurationtree}(j" (8c5631554ccfae34e47317f85ae0b22ef391afa3url`https://api.github.com/repos/palantir/atlasdb/git/trees/8c5631554ccfae34e47317f85ae0b22ef391afa3uj: bhttps://api.github.com/repos/palantir/atlasdb/git/commits/779e43f495612e720a8f70c0d32a39443634f190
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSG5CcACgkQmF9s0kaF
Iw1PIAgAuScOcjHRnDeG8ZqellQDsCjJuel/eHENX2HWKjIiD9BWu1IkWcBCqleN
j0TzAe+ENK2FqXTOOuNJt+b3+B5hF/a9Qp53y5kmJPLZGNUiIdqdMvrw2NTpYTWY
is4FzD/yBDOxTnSC5Z5yeay9gbbvEXc0K2TagOYLmU7kKbNbm78Gp9+BHvWcfkUw
tIFXfLem+PMQnseDb77wIek79RVgPLgbQE2RPaDh3H1ilnLaTTA9l5NejcCgABEu
y0OQAx4Mt1t64gbRF54+bFXjkmIY+QOLAoF1ETG86Ea772j8lPDigF3lOqRXv4VM
89p/wrceEFMtfGfRNMPZUpRgOu4blA==
=c88N
-----END PGP SIGNATURE-----payloadX   tree 8c5631554ccfae34e47317f85ae0b22ef391afa3
parent b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73
author Tom Papke <tpapke@palantir.com> 1686561831 +0100
committer Tom Papke <tpapke@palantir.com> 1686561831 +0100

Move Cache-related constants to configuration
uuj: ^https://api.github.com/repos/palantir/atlasdb/commits/779e43f495612e720a8f70c0d32a39443634f190html_urlShttps://github.com/palantir/atlasdb/commit/779e43f495612e720a8f70c0d32a39443634f190comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/779e43f495612e720a8f70c0d32a39443634f190/commentsj( }(login	ToemmscheidJboj$ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j: &https://api.github.com/users/ToemmschejH https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj0 }(jM 	ToemmschejO Jboj$ MDQ6VXNlcjQzNjc1NDkwjQ 4https://avatars.githubusercontent.com/u/43675490?v=4jS h5j: &https://api.github.com/users/ToemmschejH https://github.com/ToemmschejV 0https://api.github.com/users/Toemmsche/followersjX =https://api.github.com/users/Toemmsche/following{/other_user}jZ 6https://api.github.com/users/Toemmsche/gists{/gist_id}j\ =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j^ 4https://api.github.com/users/Toemmsche/subscriptionsj` +https://api.github.com/users/Toemmsche/orgsjb ,https://api.github.com/users/Toemmsche/reposjd 7https://api.github.com/users/Toemmsche/events{/privacy}jf 6https://api.github.com/users/Toemmsche/received_eventsjh Userjj uparents]}(j" (b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73j: ^https://api.github.com/repos/palantir/atlasdb/commits/b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73jH Shttps://github.com/palantir/atlasdb/commit/b5ed7b62fc9d5bbe2f1532a8b1dc7ae7357aec73uastats}(totalK	additionsK		deletionsKufiles](}(j" (8066e52e3c5f94f637b58919ec775628c303d3befilenameJlock-api/src/main/java/com/palantir/lock/DebugThreadInfoConfiguration.javastatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/779e43f495612e720a8f70c0d32a39443634f190/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaraw_urlhttps://github.com/palantir/atlasdb/raw/779e43f495612e720a8f70c0d32a39443634f190/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.java?ref=779e43f495612e720a8f70c0d32a39443634f190patchX  @@ -16,11 +16,18 @@
 
 package com.palantir.lock;
 
+import java.time.Duration;
 import org.immutables.value.Value;
 
 @Value.Immutable
 public interface DebugThreadInfoConfiguration {
 
+    /** Maximum number of lock to client-thread mappings. */
+    long MAX_THREAD_INFO_SIZE = 1_000_000;
+
+    /** Time, after which mappings expire and can be deleted. */
+    Duration THREAD_INFO_WRITE_EXPIRATION = Duration.ofMinutes(2);
+
     @Value.Default
     default boolean recordThreadInfo() {
         return false;u}(j" (3a85b9ca82057d5b6eab6585be242c8dd7582b84j Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/779e43f495612e720a8f70c0d32a39443634f190/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://github.com/palantir/atlasdb/raw/779e43f495612e720a8f70c0d32a39443634f190/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=779e43f495612e720a8f70c0d32a39443634f190j X  @@ -87,7 +87,6 @@
 import com.palantir.util.JMXUtils;
 import com.palantir.util.Ownable;
 import java.math.BigInteger;
-import java.time.Duration;
 import java.time.Instant;
 import java.util.ArrayDeque;
 import java.util.ArrayList;
@@ -194,10 +193,6 @@ public String toString() {
      */
     private final DebugThreadInfoConfiguration threadInfoConfiguration;
 
-    private static final long MAX_THREAD_INFO_SIZE = 1_000_000;
-
-    private static final Duration THREAD_INFO_WRITE_EXPIRATION = Duration.ofMinutes(2);
-
     /**
      * Mapping of locks to the client thread that last acquired it successfully.
      */
@@ -283,8 +278,8 @@ private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable
         this.threadInfoConfiguration = options.threadInfoConfiguration();
         this.lastAcquiringThread = Caffeine.newBuilder()
                 .executor(executor.resource())
-                .maximumSize(MAX_THREAD_INFO_SIZE)
-                .expireAfterWrite(THREAD_INFO_WRITE_EXPIRATION)
+                .maximumSize(DebugThreadInfoConfiguration.MAX_THREAD_INFO_SIZE)
+                .expireAfterWrite(DebugThreadInfoConfiguration.THREAD_INFO_WRITE_EXPIRATION)
                 .build();
     }
 ueu(f9d497d395cbf2c33baa2a7b7910bff6945ff420}(sha(f9d497d395cbf2c33baa2a7b7910bff6945ff420node_idEC_kwDOAjP5fdoAKGY5ZDQ5N2QzOTVjYmYyYzMzYmFhMmE3Yjc5MTBiZmY2OTQ1ZmY0MjAcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-03-10T21:01:04Zu	committer}(j 
svc-changelogj svc-changelog@palantir.comj 2023-03-10T21:01:04ZumessageAdd generated changelog entriestree}(j (f38cdb470235ffac2b4279d1d707e0dfa563e60burl`https://api.github.com/repos/palantir/atlasdb/git/trees/f38cdb470235ffac2b4279d1d707e0dfa563e60buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f9d497d395cbf2c33baa2a7b7910bff6945ff420
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQLmpAJEHYaJX37fAFQAAAAhgD8Ce4tJ6iAXY8KByXgO6dZJsl6
jknjQlmZ4O2NuA9IUDAA/0MJ/e7Jm7ZzBgIrY440XMwyYyL6gxFYKKpbpgdz9oYa
=lbV6
-----END PGP SIGNATURE-----payloadX  tree f38cdb470235ffac2b4279d1d707e0dfa563e60b
parent 46c1cadde6f3f88a88f576812d8a8701400dead0
author svc-changelog <svc-changelog@palantir.com> 1678482064 +0000
committer svc-changelog <svc-changelog@palantir.com> 1678482064 +0000

Add generated changelog entriesuuj ^https://api.github.com/repos/palantir/atlasdb/commits/f9d497d395cbf2c33baa2a7b7910bff6945ff420html_urlShttps://github.com/palantir/atlasdb/commit/f9d497d395cbf2c33baa2a7b7910bff6945ff420comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f9d497d395cbf2c33baa2a7b7910bff6945ff420/commentsj }(login
svc-changelogidJ#j MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj }(j 
svc-changelogj J#j MDQ6VXNlcjg0MDc3NjAzj 4https://avatars.githubusercontent.com/u/84077603?v=4j h5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelogj 4https://api.github.com/users/svc-changelog/followersj Ahttps://api.github.com/users/svc-changelog/following{/other_user}j :https://api.github.com/users/svc-changelog/gists{/gist_id}j Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j 8https://api.github.com/users/svc-changelog/subscriptionsj /https://api.github.com/users/svc-changelog/orgsj 0https://api.github.com/users/svc-changelog/reposj ;https://api.github.com/users/svc-changelog/events{/privacy}j :https://api.github.com/users/svc-changelog/received_eventsj Userj uparents]}(j (46c1cadde6f3f88a88f576812d8a8701400dead0j ^https://api.github.com/repos/palantir/atlasdb/commits/46c1cadde6f3f88a88f576812d8a8701400dead0j Shttps://github.com/palantir/atlasdb/commit/46c1cadde6f3f88a88f576812d8a8701400dead0uastats}(totalK	additionsK	deletionsK ufiles]}(j (c8ff01623ca78dcc680b29ced9eec08afa9a3687filename$changelog/@unreleased/pr-6467.v2.ymlstatusaddedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/f9d497d395cbf2c33baa2a7b7910bff6945ff420/changelog%2F%40unreleased%2Fpr-6467.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/f9d497d395cbf2c33baa2a7b7910bff6945ff420/changelog%2F%40unreleased%2Fpr-6467.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6467.v2.yml?ref=f9d497d395cbf2c33baa2a7b7910bff6945ff420patch@@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: Update slf4j javadocs link to https://www.slf4j.org/apidocs/
+  links:
+  - https://github.com/palantir/atlasdb/pull/6467uau(9b19a1d8ad77b0ff8b0ed2a44f227b2a1bcc8054}(sha(9b19a1d8ad77b0ff8b0ed2a44f227b2a1bcc8054node_idEC_kwDOAjP5fdoAKDliMTlhMWQ4YWQ3N2IwZmY4YjBlZDJhNDRmMjI3YjJhMWJjYzgwNTQcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-07T14:15:20Zu	committer}(j  Lucas Meirelesj" meireles31@msn.comj$ 2023-06-07T14:15:20Zumessagebetter descriptiontree}(j (75122dcdb51653d585ec024afdb69d54ebd3a03durl`https://api.github.com/repos/palantir/atlasdb/git/trees/75122dcdb51653d585ec024afdb69d54ebd3a03duj0 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9b19a1d8ad77b0ff8b0ed2a44f227b2a1bcc8054
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSAkPkACgkQJd22kJ7J
GixGQQgAkfpaTMJ0YXjQrkhAOWMLhlXbeO9E8Bdou+XSCCD0SRDaMJlgkRaCYz5O
Q1lUB73jZLkUq4CPOrYJKiVmHC46QSqczzwL/QfYlFVWLW4miAJn13iwIdt4Ixrx
QXH9HfV3ysJD0t4U6iSw2Ae12D3XnjSUmrWjRR1ZmmbrFojXzbQTxET0zKbS6xMp
hqL8625D7Vq2ynEhYw9kkAUSkgxWsjIvbO1HDC9oqL1agUqr+JH7bZiinfEnxCZR
Mbt+FtFSu5x+pURuC5BMUTX9J2dntS8ZYFjhXcC1E9su1nJtm5JqVERlbTr3S9Lt
3ZKtQmHLQz1gv4s5nEOPpxZkx23Fsg==
=Iq9p
-----END PGP SIGNATURE-----payloadtree 75122dcdb51653d585ec024afdb69d54ebd3a03d
parent 640795db7299c4a4b93e35e19dfad85f8962d284
author Lucas Meireles <meireles31@msn.com> 1686147320 +0100
committer Lucas Meireles <meireles31@msn.com> 1686147320 +0100

better description
uuj0 ^https://api.github.com/repos/palantir/atlasdb/commits/9b19a1d8ad77b0ff8b0ed2a44f227b2a1bcc8054html_urlShttps://github.com/palantir/atlasdb/commit/9b19a1d8ad77b0ff8b0ed2a44f227b2a1bcc8054comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9b19a1d8ad77b0ff8b0ed2a44f227b2a1bcc8054/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j0 %https://api.github.com/users/LucasIMEj> https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj& }(jC LucasIMEjE Jg j MDQ6VXNlcjY3ODczMTE=jG 3https://avatars.githubusercontent.com/u/6787311?v=4jI h5j0 %https://api.github.com/users/LucasIMEj> https://github.com/LucasIMEjL /https://api.github.com/users/LucasIME/followersjN <https://api.github.com/users/LucasIME/following{/other_user}jP 5https://api.github.com/users/LucasIME/gists{/gist_id}jR <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jT 3https://api.github.com/users/LucasIME/subscriptionsjV *https://api.github.com/users/LucasIME/orgsjX +https://api.github.com/users/LucasIME/reposjZ 6https://api.github.com/users/LucasIME/events{/privacy}j\ 5https://api.github.com/users/LucasIME/received_eventsj^ Userj` uparents]}(j (640795db7299c4a4b93e35e19dfad85f8962d284j0 ^https://api.github.com/repos/palantir/atlasdb/commits/640795db7299c4a4b93e35e19dfad85f8962d284j> Shttps://github.com/palantir/atlasdb/commit/640795db7299c4a4b93e35e19dfad85f8962d284uastats}(totalK	additionsK	deletionsKufiles]}(j (6013014d20a409c7de773230a679218fdef47f00filenametatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflows.javastatusmodifiedjz Kj{ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9b19a1d8ad77b0ff8b0ed2a44f227b2a1bcc8054/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9b19a1d8ad77b0ff8b0ed2a44f227b2a1bcc8054/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.java?ref=9b19a1d8ad77b0ff8b0ed2a44f227b2a1bcc8054patchX  @@ -39,7 +39,11 @@
 /**
  * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
  * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
- * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions.
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions. This workflow differs
+ * from the {@link SingleBusyCellWorkflows} in the way that its read transaction only does read and doesn't touch the
+ * cell with its current value or -1. This allows us to exercise the code path of read-write transaction that only do,
+ * necessary to catch bugs like sweep deleting entries under a transaction if it doesn't check for immutableTimestamp
+ * lock.
  */
 public final class SingleBusyCellReadNoTouchWorkflows {
     private SingleBusyCellReadNoTouchWorkflows() {uau(f2bc62fdf43106bd57661a484b47020665771047}(sha(f2bc62fdf43106bd57661a484b47020665771047node_idEC_kwDOAjP5fdoAKGYyYmM2MmZkZjQzMTA2YmQ1NzY2MWE0ODRiNDcwMjA2NjU3NzEwNDccommit}(author}(name
Samuel Krameremailskramer@palantir.comdate2023-04-06T14:33:43Zu	committer}(j 
Samuel Kramerj skramer@palantir.comj 2023-04-06T14:33:43Zumessage,Add JNA and instrumentation jar to classpathtree}(j (19f1df61cea70319a2d0dfa0858d06edff9eb3b7url`https://api.github.com/repos/palantir/atlasdb/git/trees/19f1df61cea70319a2d0dfa0858d06edff9eb3b7uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f2bc62fdf43106bd57661a484b47020665771047
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj ^https://api.github.com/repos/palantir/atlasdb/commits/f2bc62fdf43106bd57661a484b47020665771047html_urlShttps://github.com/palantir/atlasdb/commit/f2bc62fdf43106bd57661a484b47020665771047comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f2bc62fdf43106bd57661a484b47020665771047/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (eceb15181f0668678cfe5e1e0d91d2d0a20d6366j ^https://api.github.com/repos/palantir/atlasdb/commits/eceb15181f0668678cfe5e1e0d91d2d0a20d6366j Shttps://github.com/palantir/atlasdb/commit/eceb15181f0668678cfe5e1e0d91d2d0a20d6366uastats}(totalK	additionsK	deletionsKufiles](}(j (cc7e69bad989ea6a9cdfb46c4ad566a80eb21afbfilename/atlasdb-workload-server-distribution/Dockerfilestatusmodifiedj K	j KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/f2bc62fdf43106bd57661a484b47020665771047/atlasdb-workload-server-distribution%2FDockerfileraw_urlhttps://github.com/palantir/atlasdb/raw/f2bc62fdf43106bd57661a484b47020665771047/atlasdb-workload-server-distribution%2FDockerfilecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2FDockerfile?ref=f2bc62fdf43106bd57661a484b47020665771047patchX  @@ -4,7 +4,7 @@ MAINTAINER AtlasDB Team
 ENV DOCKERIZE_VERSION v0.2.0
 
 # Bash is useful for monitoring; curl is used by our healthchecks.
-RUN apk update && apk add bash curl procps wget  \
+RUN apk update && apk add bash curl procps wget \
     && wget --no-check-certificate http://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
     && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
 
@@ -15,4 +15,12 @@ RUN mv /atlasdb-workload-server-* /atlasdb-workload-server
 
 WORKDIR /atlasdb-workload-server
 
+# Needed for Antithesis
+RUN curl -o /usr/bin/yq -kLf https://github.com/mikefarah/yq/releases/download/v4.33.2/yq_linux_amd64 && \
+    chmod +x /usr/bin/yq
+RUN yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-static.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-static.yml
+
 CMD ["service/bin/init.sh", "console"]u}(j (359974e9fa7aa3a572d6a83f664860a450f6b32fj 'timelock-server-distribution/Dockerfilej modifiedj Kj K j Kj {https://github.com/palantir/atlasdb/blob/f2bc62fdf43106bd57661a484b47020665771047/timelock-server-distribution%2FDockerfilej zhttps://github.com/palantir/atlasdb/raw/f2bc62fdf43106bd57661a484b47020665771047/timelock-server-distribution%2FDockerfilej https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-distribution%2FDockerfile?ref=f2bc62fdf43106bd57661a484b47020665771047j  Xt  @@ -13,6 +13,14 @@ WORKDIR /timelock-server
 
 RUN mkdir -p var/data/paxos
 
+# Needed for Antithesis
+RUN curl -o /usr/bin/yq -kLf https://github.com/mikefarah/yq/releases/download/v4.33.2/yq_linux_amd64 && \
+    chmod +x /usr/bin/yq
+RUN yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-static.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-static.yml
+
 EXPOSE 8421 \
        8422
 ueu(918ead8d3ad89496e197ccd0f48752cb2666fc4b}(sha(918ead8d3ad89496e197ccd0f48752cb2666fc4bnode_idEC_kwDOAjP5fdoAKDkxOGVhZDhkM2FkODk0OTZlMTk3Y2NkMGY0ODc1MmNiMjY2NmZjNGIcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-25T16:15:37Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-07-25T16:33:20Zumessagerename validatortree}(j (2b5f307dca81346bb33d448f9dbbb99a6ab9832durl`https://api.github.com/repos/palantir/atlasdb/git/trees/2b5f307dca81346bb33d448f9dbbb99a6ab9832duj$ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/918ead8d3ad89496e197ccd0f48752cb2666fc4b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS/+VAACgkQJd22kJ7J
Giwdawf+MWHVpLMWJt47qj8qCV9cQhenAEK7UseqoTKyGJDOgtihoeMQP5Qyj4w/
PEGK/74wr1KaX4rsVucjDZ2RaGx7rrZDSUDq+xlGnNFBnDwSc/ogzZCNpTma/UEf
EXwJPl6iBN6Gdh0GBw+BPBGVuLnQq1s6RkSNXTpZWdvzuu3OUsrXm/SCbZICFnO/
qaNdkUrvLBNBshFdb2Acr9Hss/+GZOwNkBVdCuYLt8Y/A+RYe8695IkMm3aNnPap
knh6GwNgCL9rvz8Rv8/qWvSoxLXmuERxdAvWJHb1bkUxJl7f8SN5j7doGpPveYJO
YK+/G8V426Ilzsx3lcoPl661Xo5U7g==
=Msu9
-----END PGP SIGNATURE-----payloadtree 2b5f307dca81346bb33d448f9dbbb99a6ab9832d
parent 2739a482d48aaff7b793a228f388db90913d1e53
author Lucas Meireles <meireles31@msn.com> 1690301737 +0100
committer Lucas Meireles <meireles31@msn.com> 1690302800 +0100

rename validator
uuj$ ^https://api.github.com/repos/palantir/atlasdb/commits/918ead8d3ad89496e197ccd0f48752cb2666fc4bhtml_urlShttps://github.com/palantir/atlasdb/commit/918ead8d3ad89496e197ccd0f48752cb2666fc4bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/918ead8d3ad89496e197ccd0f48752cb2666fc4b/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j$ %https://api.github.com/users/LucasIMEj2 https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j7 LucasIMEj9 Jg j MDQ6VXNlcjY3ODczMTE=j; 3https://avatars.githubusercontent.com/u/6787311?v=4j= h5j$ %https://api.github.com/users/LucasIMEj2 https://github.com/LucasIMEj@ /https://api.github.com/users/LucasIME/followersjB <https://api.github.com/users/LucasIME/following{/other_user}jD 5https://api.github.com/users/LucasIME/gists{/gist_id}jF <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jH 3https://api.github.com/users/LucasIME/subscriptionsjJ *https://api.github.com/users/LucasIME/orgsjL +https://api.github.com/users/LucasIME/reposjN 6https://api.github.com/users/LucasIME/events{/privacy}jP 5https://api.github.com/users/LucasIME/received_eventsjR UserjT uparents]}(j (2739a482d48aaff7b793a228f388db90913d1e53j$ ^https://api.github.com/repos/palantir/atlasdb/commits/2739a482d48aaff7b793a228f388db90913d1e53j2 Shttps://github.com/palantir/atlasdb/commit/2739a482d48aaff7b793a228f388db90913d1e53uastats}(totalKP	additionsK2	deletionsKufiles](}(j (e73a0467acb3c855e9985458feee4288fdcf017bfilenametatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/exceptions/MoreCellsPresentThanExpectedException.javastatusaddedjn K*jo K changesK*blob_urlhttps://github.com/palantir/atlasdb/blob/918ead8d3ad89496e197ccd0f48752cb2666fc4b/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexceptions%2FMoreCellsPresentThanExpectedException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/918ead8d3ad89496e197ccd0f48752cb2666fc4b/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexceptions%2FMoreCellsPresentThanExpectedException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexceptions%2FMoreCellsPresentThanExpectedException.java?ref=918ead8d3ad89496e197ccd0f48752cb2666fc4bpatchX?  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api.exceptions;
+
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.Map;
+
+public class MoreCellsPresentThanExpectedException extends IllegalStateException {
+    private final Map<Cell, byte[]> fetchedCells;
+
+    public MoreCellsPresentThanExpectedException(Map<Cell, byte[]> fetchedCells, long expectedNumberOfCells) {
+        super(new SafeIllegalStateException(
+                "KeyValueService returned more results than Get expected. This means there is a bug"
+                        + "either in the SnapshotTransaction implementation or in how the client is "
+                        + "using such method.",
+                SafeArg.of("expectedNumberOfCells", expectedNumberOfCells),
+                SafeArg.of("numberOfCellsRetrieved", fetchedCells.size()),
+                UnsafeArg.of("retrievedCells", fetchedCells)));
+        this.fetchedCells = fetchedCells;
+    }
+
+    public Map<Cell, byte[]> getFetchedCells() {
+        return fetchedCells;
+    }
+}u}(j (aa57b8d00aa0cd1bb050020e97fb9ef56a1a5a25jt `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javajv modifiedjn Kjo Kjx K	jy https://github.com/palantir/atlasdb/blob/918ead8d3ad89496e197ccd0f48752cb2666fc4b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj{ https://github.com/palantir/atlasdb/raw/918ead8d3ad89496e197ccd0f48752cb2666fc4b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj} https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=918ead8d3ad89496e197ccd0f48752cb2666fc4bj X  @@ -101,7 +101,7 @@
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
-import com.palantir.atlasdb.transaction.impl.expectations.ExpectedCellsContainingValueValidator;
+import com.palantir.atlasdb.transaction.impl.expectations.CellCountValidator;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueServiceImpl;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
@@ -923,9 +923,8 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
     public Map<Cell, byte[]> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {
         return getCache().getWithCachedRef(tableRef, cells, cacheLookupResult -> {
-            long cachedCellsWithNonEmptyValue =
-                    ExpectedCellsContainingValueValidator.validateCacheAndGetNonEmptyValuesCount(
-                            expectedNumberOfPresentCells, cacheLookupResult.cacheHits());
+            long cachedCellsWithNonEmptyValue = CellCountValidator.validateCacheAndGetNonEmptyValuesCount(
+                    expectedNumberOfPresentCells, cacheLookupResult.cacheHits());
             long numberOfCellsExpectingValuePostCache = expectedNumberOfPresentCells - cachedCellsWithNonEmptyValue;
 
             return getInternal(
@@ -1002,7 +1001,7 @@ ListenableFuture<Map<Cell, byte[]>> getInternal(
                                 SafeArg.of("durationMillis", getMillis));
                     }
 
-                    ExpectedCellsContainingValueValidator.validateFetchedLessOrEqualToExpected(
+                    CellCountValidator.validateFetchedLessOrEqualToExpected(
                             expectedNumberOfPresentCellsToFetch, fromKeyValueService);
                     boolean allPossibleCellsReadAndPresent =
                             fromKeyValueService.size() == expectedNumberOfPresentCellsToFetch;u}(j (1a99acc9da80fa98c047572e8fadcdc9b2e876f6jt latlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/expectations/CellCountValidator.javajv renamedjn Kjo Kjx Kjy https://github.com/palantir/atlasdb/blob/918ead8d3ad89496e197ccd0f48752cb2666fc4b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FCellCountValidator.javaj{ https://github.com/palantir/atlasdb/raw/918ead8d3ad89496e197ccd0f48752cb2666fc4b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FCellCountValidator.javaj} https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FCellCountValidator.java?ref=918ead8d3ad89496e197ccd0f48752cb2666fc4b      j X  @@ -19,16 +19,14 @@
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.cache.CacheValue;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.UnsafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException;
 import java.util.Arrays;
 import java.util.Map;
 import one.util.streamex.EntryStream;
 
-public final class ExpectedCellsContainingValueValidator {
+public final class CellCountValidator {
 
-    private ExpectedCellsContainingValueValidator() {}
+    private CellCountValidator() {}
 
     public static long validateCacheAndGetNonEmptyValuesCount(
             long expectedNumberOfPresentCellsToFetch, Map<Cell, CacheValue> cachedLookup) {
@@ -49,23 +47,4 @@ public static void validateFetchedLessOrEqualToExpected(
             throw new MoreCellsPresentThanExpectedException(fetchedCells, expectedNumberOfPresentCellsToFetch);
         }
     }
-
-    public static class MoreCellsPresentThanExpectedException extends IllegalStateException {
-        private final Map<Cell, byte[]> fetchedCells;
-
-        public MoreCellsPresentThanExpectedException(Map<Cell, byte[]> fetchedCells, long expectedNumberOfCells) {
-            super(new SafeIllegalStateException(
-                    "KeyValueService returned more results than Get expected. This means there is a bug"
-                            + "either in the SnapshotTransaction implementation or in how the client is "
-                            + "using such method.",
-                    SafeArg.of("expectedNumberOfCells", expectedNumberOfCells),
-                    SafeArg.of("numberOfCellsRetrieved", fetchedCells.size()),
-                    UnsafeArg.of("retrievedCells", fetchedCells)));
-            this.fetchedCells = fetchedCells;
-        }
-
-        public Map<Cell, byte[]> getFetchedCells() {
-            return fetchedCells;
-        }
-    }
 }previous_filenameatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/expectations/ExpectedCellsContainingValueValidator.javau}(j (a651d637da7b90ebed116f20e286a8c8997dd961jt eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javajv modifiedjn Kjo Kjx Kjy https://github.com/palantir/atlasdb/blob/918ead8d3ad89496e197ccd0f48752cb2666fc4b/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj{ https://github.com/palantir/atlasdb/raw/918ead8d3ad89496e197ccd0f48752cb2666fc4b/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj} https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=918ead8d3ad89496e197ccd0f48752cb2666fc4bj X]  @@ -103,8 +103,8 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
-import com.palantir.atlasdb.transaction.impl.expectations.ExpectedCellsContainingValueValidator.MoreCellsPresentThanExpectedException;
 import com.palantir.atlasdb.transaction.impl.metrics.DefaultMetricsFilterEvaluationContext;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.ToplistDeltaFilteringTableLevelMetricsController;ueu(f0f0ced3ece8bb4e51a0f6e86a2e09b1ac23f24a}(sha(f0f0ced3ece8bb4e51a0f6e86a2e09b1ac23f24anode_idEC_kwDOAjP5fdoAKGYwZjBjZWQzZWNlOGJiNGU1MWEwZjZlODZhMmUwOWIxYWMyM2YyNGEcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-21T10:24:07Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-06-21T10:24:07Zumessage!propagate name to private methodstree}(j (42d5e372a9f3600027c89c35c8fdcff3b1fcf1c8url`https://api.github.com/repos/palantir/atlasdb/git/trees/42d5e372a9f3600027c89c35c8fdcff3b1fcf1c8uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f0f0ced3ece8bb4e51a0f6e86a2e09b1ac23f24a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSSz8cACgkQJd22kJ7J
GixDeAgA2qOse1oDGXE378HyhXY3GFC4+u56ImjLU1hhEXCn5lK1PLCdVn0pfBZr
OpwoScX0bUmjhGsmHAop/Lr8CV/a3foztBp7oh+BcrxSJToMDq5IoQ5bHXVmjH+Q
In2U3+Ig56ehGdrBXw5keyRo3ioIvet9bYEvrLRwfRd6i3bAR2LrcR0yz8wQBX4i
oSkx2xtHkOfyWPiTU/35J0g1oXkdTl/YETiIwFj9mamQZtNjz/6mX7wunGIOz9Pd
iSHI456Y96J/Z4axDuSQ4IZadevSJmY+CG9A7TyrzY5CxZWdU66Mn+zOn1vGPwUP
OoHb08S+FgmTg8dG6QHBhJOGUnQ1vQ==
=8N5L
-----END PGP SIGNATURE-----payloadtree 42d5e372a9f3600027c89c35c8fdcff3b1fcf1c8
parent c30defdb9ddec135436100e43c494118c45c9bbb
author Lucas Meireles <meireles31@msn.com> 1687343047 +0100
committer Lucas Meireles <meireles31@msn.com> 1687343047 +0100

propagate name to private methods
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/f0f0ced3ece8bb4e51a0f6e86a2e09b1ac23f24ahtml_urlShttps://github.com/palantir/atlasdb/commit/f0f0ced3ece8bb4e51a0f6e86a2e09b1ac23f24acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f0f0ced3ece8bb4e51a0f6e86a2e09b1ac23f24a/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j LucasIMEj Jg j MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsj Userj uparents]}(j (c30defdb9ddec135436100e43c494118c45c9bbbj ^https://api.github.com/repos/palantir/atlasdb/commits/c30defdb9ddec135436100e43c494118c45c9bbbj Shttps://github.com/palantir/atlasdb/commit/c30defdb9ddec135436100e43c494118c45c9bbbuastats}(totalK	additionsK	deletionsK	ufiles]}(j (b901787debfe08e9dc92324e1ecea39bb182ade1filenameVatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javastatusmodifiedj Kj  K	changesKblob_urlhttps://github.com/palantir/atlasdb/blob/f0f0ced3ece8bb4e51a0f6e86a2e09b1ac23f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f0f0ced3ece8bb4e51a0f6e86a2e09b1ac23f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=f0f0ced3ece8bb4e51a0f6e86a2e09b1ac23f24apatchXx
  @@ -35,15 +35,18 @@ public final class SweepStrategy {
 
     private final Optional<SweeperStrategy> sweeperStrategy;
     private final boolean mustCheckImmutableLockIfAllCellsReadAndPresent;
-    private final boolean mustCheckImmutableLockIfEmptyCellWasPossiblyRead;
+
+    // When we either read an empty value or perform reads like a range-scan, where we can't be certain of how many
+    // values we expect.
+    private final boolean mustCheckImmutableLockIfNonExhaustiveRead;
 
     private SweepStrategy(
             Optional<SweeperStrategy> sweeperStrategy,
             boolean mustCheckImmutableLockIfAllCellsReadAndPresent,
-            boolean mustCheckImmutableLockIfEmptyCellWasPossiblyRead) {
+            boolean mustCheckImmutableLockIfNonExhaustiveRead) {
         this.sweeperStrategy = sweeperStrategy;
         this.mustCheckImmutableLockIfAllCellsReadAndPresent = mustCheckImmutableLockIfAllCellsReadAndPresent;
-        this.mustCheckImmutableLockIfEmptyCellWasPossiblyRead = mustCheckImmutableLockIfEmptyCellWasPossiblyRead;
+        this.mustCheckImmutableLockIfNonExhaustiveRead = mustCheckImmutableLockIfNonExhaustiveRead;
     }
 
     public Optional<SweeperStrategy> getSweeperStrategy() {
@@ -53,14 +56,14 @@ public Optional<SweeperStrategy> getSweeperStrategy() {
     public boolean mustCheckImmutableLock(boolean allPossibleCellsReandAndPresent) {
         return allPossibleCellsReandAndPresent
                 ? mustCheckImmutableLockIfAllCellsReadAndPresent
-                : mustCheckImmutableLockIfEmptyCellWasPossiblyRead;
+                : mustCheckImmutableLockIfNonExhaustiveRead;
     }
 
     public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
         return new SweepStrategy(
                 sweeperBehaviour(strategy),
-                mustCheckImmutableLockAfterNonEmptyReads(strategy, kvs),
-                mustCheckImmutableLockAfterEmptyReads(strategy));
+                mustCheckImmutableLockIfAllCellsReadAndPresent(strategy, kvs),
+                mustCheckImmutableLockIfNonExhaustiveRead(strategy));
     }
 
     private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersistence.SweepStrategy strategy) {
@@ -76,10 +79,10 @@ private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersisten
         throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
     }
 
-    private static boolean mustCheckImmutableLockAfterNonEmptyReads(
+    private static boolean mustCheckImmutableLockIfAllCellsReadAndPresent(
             TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
         if (!kvs.sweepsEntriesInStrictlyNonDecreasingFashion()) {
-            return mustCheckImmutableLockAfterEmptyReads(strategy);
+            return mustCheckImmutableLockIfNonExhaustiveRead(strategy);
         }
 
         switch (strategy) {
@@ -92,7 +95,7 @@ private static boolean mustCheckImmutableLockAfterNonEmptyReads(
         throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
     }
 
-    private static boolean mustCheckImmutableLockAfterEmptyReads(TableMetadataPersistence.SweepStrategy strategy) {
+    private static boolean mustCheckImmutableLockIfNonExhaustiveRead(TableMetadataPersistence.SweepStrategy strategy) {
         switch (strategy) {
             case CONSERVATIVE:
             case NOTHING:uau(8db067ba77a8780c353c30ac955d182c7696db6a}(sha(8db067ba77a8780c353c30ac955d182c7696db6anode_idEC_kwDOAjP5fdoAKDhkYjA2N2JhNzdhODc4MGMzNTNjMzBhYzk1NWQxODJjNzY5NmRiNmEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-11T10:15:50Zu	committer}(j Jeremy Kongj jkong@palantir.comj  2023-04-11T10:15:50Zumessage9Merge branch 'jkong/lock-v1' into jkong/asynchronous-ragetree}(j (d7fed2356227b8665e5717c5a31492500e463321url`https://api.github.com/repos/palantir/atlasdb/git/trees/d7fed2356227b8665e5717c5a31492500e463321uj, bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8db067ba77a8780c353c30ac955d182c7696db6a
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ1M1gACgkQTLdFKain
zjyfAAf+MzE6RGwXs4Ck1kyQ1EJn3pIfZtSym9Z9ZJdepFXp2U1Sb9UJVRmF/c5e
TV8rcnoXDHunkT4M2Kb0SOB+gZEHhWuMtTgmulo2zMZwARc6ZCrDWnQkELhLOi2i
670Nxu+2ZbTy+O0MV9lFV3cxBUSzWXnksB2emgzJE2OkGUh03cXRlcsOGlCpla68
E/bCuRyF2SqzxOqL/ceUi7ztNXIyRTB6jrBD51maYPK5d10rEC5T8HEZl3fGswZB
aQykbQEvcbNX+33kLa6hQRYHAWuiwFQvjST1amouX/Pt+Nk4ShuRJFQ/KgIs6zlp
9mhFGi3LiUKwgwl5WoDyovyLBaILOg==
=xcBS
-----END PGP SIGNATURE-----payloadX>  tree d7fed2356227b8665e5717c5a31492500e463321
parent 4f1a99e8d5da7e551dc91ccc088903afa29cd276
parent 90531de377e9e0c58adf3f64d503e1bfead472cd
author Jeremy Kong <jkong@palantir.com> 1681208150 +0800
committer Jeremy Kong <jkong@palantir.com> 1681208150 +0800

Merge branch 'jkong/lock-v1' into jkong/asynchronous-rage
uuj, ^https://api.github.com/repos/palantir/atlasdb/commits/8db067ba77a8780c353c30ac955d182c7696db6ahtml_urlShttps://github.com/palantir/atlasdb/commit/8db067ba77a8780c353c30ac955d182c7696db6acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8db067ba77a8780c353c30ac955d182c7696db6a/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j, 'https://api.github.com/users/jeremyk-91j: https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj" }(j? 
jeremyk-91jA JZ j MDQ6VXNlcjU5NTU1MTA=jC 3https://avatars.githubusercontent.com/u/5955510?v=4jE h5j, 'https://api.github.com/users/jeremyk-91j: https://github.com/jeremyk-91jH 1https://api.github.com/users/jeremyk-91/followersjJ >https://api.github.com/users/jeremyk-91/following{/other_user}jL 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jN >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jP 5https://api.github.com/users/jeremyk-91/subscriptionsjR ,https://api.github.com/users/jeremyk-91/orgsjT -https://api.github.com/users/jeremyk-91/reposjV 8https://api.github.com/users/jeremyk-91/events{/privacy}jX 7https://api.github.com/users/jeremyk-91/received_eventsjZ Userj\ uparents](}(j (4f1a99e8d5da7e551dc91ccc088903afa29cd276j, ^https://api.github.com/repos/palantir/atlasdb/commits/4f1a99e8d5da7e551dc91ccc088903afa29cd276j: Shttps://github.com/palantir/atlasdb/commit/4f1a99e8d5da7e551dc91ccc088903afa29cd276u}(j (90531de377e9e0c58adf3f64d503e1bfead472cdj, ^https://api.github.com/repos/palantir/atlasdb/commits/90531de377e9e0c58adf3f64d503e1bfead472cdj: Shttps://github.com/palantir/atlasdb/commit/90531de377e9e0c58adf3f64d503e1bfead472cduestats}(totalKC	additionsK)	deletionsKufiles](}(j (2829a75e86b9c6ee6c6fbe82f5269f48db50d9eefilenameMtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/LockV1Resource.javastatusmodifiedjz Kj{ KchangesK1blob_urlhttps://github.com/palantir/atlasdb/blob/8db067ba77a8780c353c30ac955d182c7696db6a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.javaraw_urlhttps://github.com/palantir/atlasdb/raw/8db067ba77a8780c353c30ac955d182c7696db6a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.java?ref=8db067ba77a8780c353c30ac955d182c7696db6apatchX(  @@ -29,6 +29,7 @@
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.LockResponse;
 import com.palantir.lock.LockServerOptions;
+import com.palantir.lock.LockService;
 import com.palantir.lock.LockState;
 import com.palantir.lock.SimpleHeldLocksToken;
 import com.palantir.logsafe.Safe;
@@ -63,7 +64,7 @@ public LockResponse lockWithFullLockResponse(
             @Safe @PathParam("client") @Handle.PathParam LockClient client,
             @Handle.Body LockRequest request)
             throws InterruptedException {
-        return namespaces.get(namespace).getLockService().lockWithFullLockResponse(client, request);
+        return getLockService(namespace).lockWithFullLockResponse(client, request);
     }
 
     @POST
@@ -88,7 +89,7 @@ public LockResponse lockWithFullLockResponse(
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/unlock-deprecated")
     public boolean unlock(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body HeldLocksToken token) {
-        return namespaces.get(namespace).getLockService().unlock(token);
+        return getLockService(namespace).unlock(token);
     }
 
     @POST
@@ -99,7 +100,7 @@ public boolean unlock(
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/unlock-simple")
     public boolean unlockSimple(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body SimpleHeldLocksToken token) {
-        return namespaces.get(namespace).getLockService().unlockSimple(token);
+        return getLockService(namespace).unlockSimple(token);
     }
 
     @POST
@@ -110,7 +111,7 @@ public boolean unlockSimple(
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/unlock-and-freeze")
     public boolean unlockAndFreeze(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body HeldLocksToken token) {
-        return namespaces.get(namespace).getLockService().unlockAndFreeze(token);
+        return getLockService(namespace).unlockAndFreeze(token);
     }
 
     @POST
@@ -123,7 +124,7 @@ public boolean unlockAndFreeze(
     public Set<HeldLocksToken> getTokens(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Safe @PathParam("client") @Handle.PathParam LockClient client) {
-        return namespaces.get(namespace).getLockService().getTokens(client);
+        return getLockService(namespace).getTokens(client);
     }
 
     @POST
@@ -147,7 +148,7 @@ public Set<HeldLocksToken> getTokens(@Safe @PathParam("namespace") @Handle.PathP
     public Set<HeldLocksToken> refreshTokens(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Handle.Body Iterable<HeldLocksToken> tokens) {
-        return namespaces.get(namespace).getLockService().refreshTokens(tokens);
+        return getLockService(namespace).refreshTokens(tokens);
     }
 
     @POST
@@ -159,7 +160,7 @@ public Set<HeldLocksToken> refreshTokens(
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/refresh-grant")
     public HeldLocksGrant refreshGrant(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body HeldLocksGrant grant) {
-        return namespaces.get(namespace).getLockService().refreshGrant(grant);
+        return getLockService(namespace).refreshGrant(grant);
     }
 
     @POST
@@ -171,7 +172,7 @@ public HeldLocksGrant refreshGrant(
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/refresh-grant-id")
     public HeldLocksGrant refreshGrant(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body BigInteger grantId) {
-        return namespaces.get(namespace).getLockService().refreshGrant(grantId);
+        return getLockService(namespace).refreshGrant(grantId);
     }
 
     @POST
@@ -182,7 +183,7 @@ public HeldLocksGrant refreshGrant(
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/convert-to-grant")
     public HeldLocksGrant convertToGrant(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body HeldLocksToken token) {
-        return namespaces.get(namespace).getLockService().convertToGrant(token);
+        return getLockService(namespace).convertToGrant(token);
     }
 
     @POST
@@ -195,7 +196,7 @@ public HeldLocksToken useGrant(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Safe @PathParam("client") @Handle.PathParam LockClient client,
             @Handle.Body HeldLocksGrant grant) {
-        return namespaces.get(namespace).getLockService().useGrant(client, grant);
+        return getLockService(namespace).useGrant(client, grant);
     }
 
     @POST
@@ -219,7 +220,7 @@ public HeldLocksToken useGrant(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Safe @PathParam("client") @Handle.PathParam LockClient client,
             @Handle.Body BigInteger grantId) {
-        return namespaces.get(namespace).getLockService().useGrant(client, grantId);
+        return getLockService(namespace).useGrant(client, grantId);
     }
 
     @POST
@@ -242,7 +243,7 @@ public HeldLocksToken useGrant(
     @Nullable
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version-id")
     public Long getMinLockedInVersionId(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
-        return namespaces.get(namespace).getLockService().getMinLockedInVersionId();
+        return getLockService(namespace).getMinLockedInVersionId();
     }
 
     @POST
@@ -253,7 +254,7 @@ public Long getMinLockedInVersionId(@Safe @PathParam("namespace") @Handle.PathPa
     public Long getMinLockedInVersionId(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Safe @PathParam("client") @Handle.PathParam LockClient client) {
-        return namespaces.get(namespace).getLockService().getMinLockedInVersionId(client);
+        return getLockService(namespace).getMinLockedInVersionId(client);
     }
 
     @POST
@@ -273,7 +274,7 @@ public Long getMinLockedInVersionIdForAnonymousClient(
     @Idempotent
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock-server-options")
     public LockServerOptions getLockServerOptions(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
-        return namespaces.get(namespace).getLockService().getLockServerOptions();
+        return getLockService(namespace).getLockServerOptions();
     }
 
     @POST
@@ -283,7 +284,7 @@ public LockServerOptions getLockServerOptions(@Safe @PathParam("namespace") @Han
     @Idempotent
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/current-time-millis")
     public long currentTimeMillis(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
-        return namespaces.get(namespace).getLockService().currentTimeMillis();
+        return getLockService(namespace).currentTimeMillis();
     }
 
     @POST
@@ -293,7 +294,7 @@ public long currentTimeMillis(@Safe @PathParam("namespace") @Handle.PathParam St
     @Idempotent
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/log-current-state")
     public void logCurrentState(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
-        namespaces.get(namespace).getLockService().logCurrentState();
+        getLockService(namespace).logCurrentState();
     }
 
     // Remote lock service
@@ -308,7 +309,7 @@ public LockRefreshToken lock(
             @Safe @PathParam("client") @Handle.PathParam String client,
             @Handle.Body LockRequest request)
             throws InterruptedException {
-        return namespaces.get(namespace).getLockService().lock(client, request);
+        return getLockService(namespace).lock(client, request);
     }
 
     @POST
@@ -333,7 +334,7 @@ public HeldLocksToken lockAndGetHeldLocks(
             @Safe @PathParam("client") @Handle.PathParam String client,
             @Handle.Body LockRequest request)
             throws InterruptedException {
-        return namespaces.get(namespace).getLockService().lockAndGetHeldLocks(client, request);
+        return getLockService(namespace).lockAndGetHeldLocks(client, request);
     }
 
     @POST
@@ -355,7 +356,7 @@ public HeldLocksToken lockAndGetHeldLocks(
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/unlock")
     public boolean unlock(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockRefreshToken token) {
-        return namespaces.get(namespace).getLockService().unlock(token);
+        return getLockService(namespace).unlock(token);
     }
 
     @POST
@@ -367,7 +368,7 @@ public boolean unlock(
     public Set<LockRefreshToken> refreshLockRefreshTokens(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Handle.Body Iterable<LockRefreshToken> tokens) {
-        return namespaces.get(namespace).getLockService().refreshLockRefreshTokens(tokens);
+        return getLockService(namespace).refreshLockRefreshTokens(tokens);
     }
 
     @POST
@@ -380,7 +381,7 @@ public Set<LockRefreshToken> refreshLockRefreshTokens(
     public Long getMinLockedInVersionId(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Safe @PathParam("client") @Handle.PathParam String client) {
-        return namespaces.get(namespace).getLockService().getMinLockedInVersionId(client);
+        return getLockService(namespace).getMinLockedInVersionId(client);
     }
 
     @POST
@@ -391,6 +392,10 @@ public Long getMinLockedInVersionId(
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/get-debugging-lock-state")
     public LockState getLockState(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockDescriptor lock) {
-        return namespaces.get(namespace).getLockService().getLockState(lock);
+        return getLockService(namespace).getLockState(lock);
+    }
+
+    private LockService getLockService(String namespace) {
+        return namespaces.get(namespace).getLockService();
     }
 }u}(j (975e7f6d060d1accb1fb20f495f5833119997ec8j Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimestampManagementResource.javaj modifiedjz Kj{ Kj K	j https://github.com/palantir/atlasdb/blob/8db067ba77a8780c353c30ac955d182c7696db6a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampManagementResource.javaj https://github.com/palantir/atlasdb/raw/8db067ba77a8780c353c30ac955d182c7696db6a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampManagementResource.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampManagementResource.java?ref=8db067ba77a8780c353c30ac955d182c7696db6aj X  @@ -24,6 +24,7 @@
 import com.palantir.conjure.java.undertow.lib.TypeMarker;
 import com.palantir.conjure.java.undertow.lib.UndertowRuntime;
 import com.palantir.logsafe.Safe;
+import com.palantir.timestamp.TimestampManagementService;
 import io.undertow.server.HttpServerExchange;
 import io.undertow.util.Headers;
 import java.io.IOException;
@@ -64,7 +65,7 @@ public void fastForwardTimestamp(
                     @Handle.QueryParam(value = "currentTimestamp")
                     Long currentTimestamp) {
         long timestampToUse = currentTimestamp == null ? SENTINEL_TIMESTAMP : currentTimestamp;
-        namespaces.get(namespace).getTimestampManagementService().fastForwardTimestamp(timestampToUse);
+        getTimestampManagementService(namespace).fastForwardTimestamp(timestampToUse);
     }
 
     @GET
@@ -76,7 +77,11 @@ public void fastForwardTimestamp(
             path = "/{namespace}/timestamp-management/fast-forward",
             produces = TextPlainSerializer.class)
     public String ping(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
-        return namespaces.get(namespace).getTimestampManagementService().ping();
+        return getTimestampManagementService(namespace).ping();
+    }
+
+    private TimestampManagementService getTimestampManagementService(String namespace) {
+        return namespaces.get(namespace).getTimestampManagementService();
     }
 
     enum TextPlainSerializer implements SerializerFactory<String> {u}(j (d535c97b2e89d9b33163acd6787dc3783e0f0f0cj Ptimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimestampResource.javaj modifiedjz Kj{ Kj K	j https://github.com/palantir/atlasdb/blob/8db067ba77a8780c353c30ac955d182c7696db6a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampResource.javaj https://github.com/palantir/atlasdb/raw/8db067ba77a8780c353c30ac955d182c7696db6a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampResource.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampResource.java?ref=8db067ba77a8780c353c30ac955d182c7696db6aj X  @@ -20,6 +20,7 @@
 import com.palantir.conjure.java.undertow.annotations.HttpMethod;
 import com.palantir.logsafe.Safe;
 import com.palantir.timestamp.TimestampRange;
+import com.palantir.timestamp.TimestampService;
 import javax.ws.rs.POST;
 import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
@@ -40,7 +41,7 @@ public TimestampResource(TimelockNamespaces timelockNamespaces) {
     @Produces(MediaType.APPLICATION_JSON)
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timestamp/fresh-timestamp")
     public long getFreshTimestamp(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
-        return namespaces.get(namespace).getTimestampService().getFreshTimestamp();
+        return getTimestampService(namespace).getFreshTimestamp();
     }
 
     @POST // This has to be POST because we can't allow caching.
@@ -50,6 +51,10 @@ public long getFreshTimestamp(@Safe @PathParam("namespace") @Handle.PathParam St
     public TimestampRange getFreshTimestamps(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @QueryParam("number") @Handle.QueryParam(value = "number") int numTimestampsRequested) {
-        return namespaces.get(namespace).getTimestampService().getFreshTimestamps(numTimestampsRequested);
+        return getTimestampService(namespace).getFreshTimestamps(numTimestampsRequested);
+    }
+
+    private TimestampService getTimestampService(String namespace) {
+        return namespaces.get(namespace).getTimestampService();
     }
 }ueu(f45fc9f2f37ab917be877f05b0926e96d2d894a7}(sha(f45fc9f2f37ab917be877f05b0926e96d2d894a7node_idEC_kwDOAjP5fdoAKGY0NWZjOWYyZjM3YWI5MTdiZTg3N2YwNWIwOTI2ZTk2ZDJkODk0YTccommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-25T16:13:59Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-05-25T16:13:59Zumessagenitstree}(j (f32cfa4b793d891ed4dbda1186ddd642ed585366url`https://api.github.com/repos/palantir/atlasdb/git/trees/f32cfa4b793d891ed4dbda1186ddd642ed585366uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f45fc9f2f37ab917be877f05b0926e96d2d894a7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRviUcACgkQmPPOpKR4
XS3CNgf/b6ov5Scb/XitO1ZRwO2Q8xr7iU7f4QqBg7dOdgvcP3jYvphhI9UJNY4y
oSntiHzZW96qf/mQNLSG98GWq8s6raCA23XloCzDVYRaSw5OGLqzPq3Uk6UVkAQv
1rOe54jYEvM5qeAb+ZW7oTCI/nUrm5710ryhcr+IlUPUQzUSTNv4k0mTh4xLj2j3
OJ49c1ePsBBf5CvLq/3M4eq61IcwxsPaIwwX2Uvuq53V1r95XIWyP18PRm+vC485
PhBMwgielP5Mvh0fGR7asDpsl7obW25RNaWLHDi5LMTz0v76tu0vdLQlBp+AFZMp
0R63/iDJ2l+Q0dAkcIU8bdZXx5x5ew==
=6p8s
-----END PGP SIGNATURE-----payloadtree f32cfa4b793d891ed4dbda1186ddd642ed585366
parent 72f1a3438d004932b9c397eb8ef9e445611cd02f
author Sam Kramer <skramer@palantir.com> 1685031239 +0100
committer Sam Kramer <skramer@palantir.com> 1685031239 +0100

nits
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/f45fc9f2f37ab917be877f05b0926e96d2d894a7html_urlShttps://github.com/palantir/atlasdb/commit/f45fc9f2f37ab917be877f05b0926e96d2d894a7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f45fc9f2f37ab917be877f05b0926e96d2d894a7/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (72f1a3438d004932b9c397eb8ef9e445611cd02fj ^https://api.github.com/repos/palantir/atlasdb/commits/72f1a3438d004932b9c397eb8ef9e445611cd02fj Shttps://github.com/palantir/atlasdb/commit/72f1a3438d004932b9c397eb8ef9e445611cd02fuastats}(totalK	additionsK	deletionsKufiles](}(j (071c2bf1991c60c60ed63eaccd1f3ea6d13e31a4filenameaatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/f45fc9f2f37ab917be877f05b0926e96d2d894a7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f45fc9f2f37ab917be877f05b0926e96d2d894a7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=f45fc9f2f37ab917be877f05b0926e96d2d894a7patchX	  @@ -81,32 +81,32 @@ public Optional<WitnessedTransaction> run(TransactionStore store) {
                             generateReadActions(), generateWriteActions(), generateDeleteActions())
                     .flatMap(Collection::stream)
                     .collect(Collectors.toList());
-            Collections.shuffle(actions);
+            Collections.shuffle(actions, random);
             return store.readWrite(actions);
         }
 
         private List<ReadTransactionAction> generateReadActions() {
-            return IntStream.range(0, random.nextInt(workflowConfiguration.maxReads()))
+            return IntStream.rangeClosed(0, random.nextInt(workflowConfiguration.maxReads()))
                     .boxed()
-                    .map(index -> ImmutableReadTransactionAction.of(
+                    .map(_index -> ImmutableReadTransactionAction.of(
                             workflowConfiguration.tableConfiguration().tableName(), randomCell()))
                     .collect(Collectors.toList());
         }
 
         private List<WriteTransactionAction> generateWriteActions() {
-            return IntStream.range(0, random.nextInt(workflowConfiguration.maxWrites()))
+            return IntStream.rangeClosed(0, random.nextInt(workflowConfiguration.maxWrites()))
                     .boxed()
-                    .map(index -> ImmutableWriteTransactionAction.of(
+                    .map(_index -> ImmutableWriteTransactionAction.of(
                             workflowConfiguration.tableConfiguration().tableName(),
                             randomCell(),
                             random.nextInt(100_000)))
                     .collect(Collectors.toList());
         }
 
         private List<DeleteTransactionAction> generateDeleteActions() {
-            return IntStream.range(0, random.nextInt(workflowConfiguration.maxDeletes()))
+            return IntStream.rangeClosed(0, random.nextInt(workflowConfiguration.maxDeletes()))
                     .boxed()
-                    .map(index -> ImmutableDeleteTransactionAction.of(
+                    .map(_index -> ImmutableDeleteTransactionAction.of(
                             workflowConfiguration.tableConfiguration().tableName(), randomCell()))
                     .collect(Collectors.toList());
         }u}(j (aab6c8e21d5584a8291807921d8d032d4786559dj eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowsTest.javaj	 modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/f45fc9f2f37ab917be877f05b0926e96d2d894a7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/f45fc9f2f37ab917be877f05b0926e96d2d894a7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.java?ref=f45fc9f2f37ab917be877f05b0926e96d2d894a7j Xj  @@ -73,7 +73,7 @@ public void before() {
         this.workflow = RandomWorkflows.create(
                 memoryStore,
                 CONFIGURATION,
-                MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)),
+                MoreExecutors.listeningDecorator(PTExecutors.newSingleThreadExecutor()),
                 random);
     }
 ueu(a10d1c4c5ca362e4e2c3f65fcd63fa353eabb3fe}(sha(a10d1c4c5ca362e4e2c3f65fcd63fa353eabb3fenode_idEC_kwDOAjP5fdoAKGExMGQxYzRjNWNhMzYyZTRlMmMzZjY1ZmNkNjNmYTM1M2VhYmIzZmUcommit}(author}(name
Samuel Krameremailskramer@palantir.comdate2023-04-27T07:42:15Zu	committer}(j& 
Samuel Kramerj( skramer@palantir.comj* 2023-04-27T07:42:15Zumessageadd new timelock configtree}(j (426c5adac00002f9c3d7050f51d0bb2feac08932url`https://api.github.com/repos/palantir/atlasdb/git/trees/426c5adac00002f9c3d7050f51d0bb2feac08932uj6 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a10d1c4c5ca362e4e2c3f65fcd63fa353eabb3fe
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj6 ^https://api.github.com/repos/palantir/atlasdb/commits/a10d1c4c5ca362e4e2c3f65fcd63fa353eabb3fehtml_urlShttps://github.com/palantir/atlasdb/commit/a10d1c4c5ca362e4e2c3f65fcd63fa353eabb3fecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a10d1c4c5ca362e4e2c3f65fcd63fa353eabb3fe/commentsj$ }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j6 'https://api.github.com/users/Sam-KramerjB https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj, }(jG 
Sam-KramerjI J^2_ j  MDQ6VXNlcjYyMzg4MTQ=jK 3https://avatars.githubusercontent.com/u/6238814?v=4jM h5j6 'https://api.github.com/users/Sam-KramerjB https://github.com/Sam-KramerjP 1https://api.github.com/users/Sam-Kramer/followersjR >https://api.github.com/users/Sam-Kramer/following{/other_user}jT 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jV >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jX 5https://api.github.com/users/Sam-Kramer/subscriptionsjZ ,https://api.github.com/users/Sam-Kramer/orgsj\ -https://api.github.com/users/Sam-Kramer/reposj^ 8https://api.github.com/users/Sam-Kramer/events{/privacy}j` 7https://api.github.com/users/Sam-Kramer/received_eventsjb Userjd uparents]}(j (80534dc1874df207b75eadddd2c9cdaa68ea8ec3j6 ^https://api.github.com/repos/palantir/atlasdb/commits/80534dc1874df207b75eadddd2c9cdaa68ea8ec3jB Shttps://github.com/palantir/atlasdb/commit/80534dc1874df207b75eadddd2c9cdaa68ea8ec3uastats}(totalK2	additionsK2	deletionsK ufiles]}(j (436b0a5b41be9609f93c54d0c8fca21c38fded84filename>timelock-server-distribution/var/conf/timelock.distributed.ymlstatusaddedj~ K2j K changesK2blob_urlhttps://github.com/palantir/atlasdb/blob/a10d1c4c5ca362e4e2c3f65fcd63fa353eabb3fe/timelock-server-distribution%2Fvar%2Fconf%2Ftimelock.distributed.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/a10d1c4c5ca362e4e2c3f65fcd63fa353eabb3fe/timelock-server-distribution%2Fvar%2Fconf%2Ftimelock.distributed.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-server-distribution%2Fvar%2Fconf%2Ftimelock.distributed.yml?ref=a10d1c4c5ca362e4e2c3f65fcd63fa353eabb3fepatchX  @@ -0,0 +1,50 @@
+install:
+  paxos:
+    data-directory: "var/data/paxos"
+    is-new-service: false
+  timestampBoundPersistence:
+
+runtime:
+  cluster-config-not-live-reloaded:
+    cluster:
+      uris:
+        - "localhost:8421"
+        - "timelock1.palantir.pt:8421"
+        - "timelock2.palantir.pt:8421"
+        - "timelock3.palantir.pt:8421"
+      security:
+        keyStorePath: "var/security/keyStore.jks"
+        keyStorePassword: "keystore"
+        trustStorePath: "var/security/trustStore.jks"
+    local-server: "localhost:8421"
+    enableNonstandardAndPossiblyDangerousTopology: true
+  paxos:
+  permitted-backup-token: "test-auth"
+
+server:
+  applicationConnectors:
+    - type: https
+      port: 8421
+      keyStorePath: var/security/keyStore.jks
+      keyStorePassword: keystore
+      trustStorePath: var/security/trustStore.jks
+      validateCerts: false
+      supportedCipherSuites:
+        - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
+        - TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
+        - TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
+        - TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
+        - TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384
+        - TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256
+        - TLS_RSA_WITH_AES_128_CBC_SHA256
+        - TLS_RSA_WITH_AES_256_CBC_SHA256
+        - TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
+        - TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
+        - TLS_ECDH_RSA_WITH_AES_256_CBC_SHA
+        - TLS_ECDH_RSA_WITH_AES_128_CBC_SHA
+        - TLS_RSA_WITH_AES_256_CBC_SHA
+        - TLS_RSA_WITH_AES_128_CBC_SHA
+        - TLS_EMPTY_RENEGOTIATION_INFO_SCSV
+  adminConnectors:
+    - type: http
+      port: 8422uau(dabf13a2202e4676abf327f8efe03c56facb08b4}(sha(dabf13a2202e4676abf327f8efe03c56facb08b4node_idEC_kwDOAjP5fdoAKGRhYmYxM2EyMjAyZTQ2NzZhYmYzMjdmOGVmZTAzYzU2ZmFjYjA4YjQcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-21T01:05:40Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-04-21T01:05:40Zumessagetrial 1 of failfasttree}(j (a622c8387750b6a3f79b75fe4b463d5cbffc92f9url`https://api.github.com/repos/palantir/atlasdb/git/trees/a622c8387750b6a3f79b75fe4b463d5cbffc92f9uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/dabf13a2202e4676abf327f8efe03c56facb08b4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRB4WQACgkQPlMHVIT1
yhohtgf+IPus7cRD3eIHvqAugASH5GTjQSEwe2hjMlKSVz/W+n9iQkydGWjQ+yRy
/nDhaOmavW3GCBj2DzHEYNQYF1MwOONikvzNlQk2RFT0sdfxjOLGcJVWdQ5SgYEQ
K0wCDHrMdzPTH4UBYc1U9Fwl0EPu5kepHSa6PpqtNPYcbqU8zxACOHphw1rTlKZX
lkYkSJ+sxvNFGBta1TUF14LsSFkV/DN4FIPqaAgSQyx6uQO6WIZHGbTga8jYTh+u
dDdw8vgqylQU4XaWdtdSUyD1ncIyZesE5vs4v3uTzfKht05jl7qjyH4aKMpSvCUe
G2iwRxSwx9fhe5DmryS+Pf51WEVCRA==
=Wv5/
-----END PGP SIGNATURE-----payloadtree a622c8387750b6a3f79b75fe4b463d5cbffc92f9
parent 5ca60897a6cfef7d91704d9097640c4a215933a8
author Ahmed Alouane <aalouane@palantir.com> 1682039140 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682039140 +0100

trial 1 of failfast
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/dabf13a2202e4676abf327f8efe03c56facb08b4html_urlShttps://github.com/palantir/atlasdb/commit/dabf13a2202e4676abf327f8efe03c56facb08b4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/dabf13a2202e4676abf327f8efe03c56facb08b4/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j (5ca60897a6cfef7d91704d9097640c4a215933a8j ^https://api.github.com/repos/palantir/atlasdb/commits/5ca60897a6cfef7d91704d9097640c4a215933a8j Shttps://github.com/palantir/atlasdb/commit/5ca60897a6cfef7d91704d9097640c4a215933a8uastats}(totalK	additionsK	deletionsK ufiles]}(j (f828266514c40a5d95f7f85103e99c37b6b9a8a9filenameatlasdb-ete-tests/build.gradlestatusmodifiedj Kj K changesKblob_urlrhttps://github.com/palantir/atlasdb/blob/dabf13a2202e4676abf327f8efe03c56facb08b4/atlasdb-ete-tests%2Fbuild.gradleraw_urlqhttps://github.com/palantir/atlasdb/raw/dabf13a2202e4676abf327f8efe03c56facb08b4/atlasdb-ete-tests%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fbuild.gradle?ref=dabf13a2202e4676abf327f8efe03c56facb08b4patchX  @@ -107,6 +107,7 @@ task longTest(type: Test) {
 }
 
 task timeLockTest(type: Test) {
+    failFast = true
     dependsOn prepareForEteTests, ':timelock-server-distribution:dockerTag'
     include '**/*TimeLock*.class'
     exclude '**/*TimeLockMigration*.class'uau(c750ebac1325e93357e8f9ffcdebe16f4f9c0f51}(sha(c750ebac1325e93357e8f9ffcdebe16f4f9c0f51node_idEC_kwDOAjP5fdoAKGM3NTBlYmFjMTMyNWU5MzM1N2U4ZjlmZmNkZWJlMTZmNGY5YzBmNTEcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-05-03T17:14:40Zu	committer}(j svc-excavator-botj svc-excavator-bot@palantir.comj 2023-05-03T17:14:40Zumessage$Excavator:  Update policy-bot configtree}(j
 (3090816c7e26e9d33c24ee90225ca1d4e3a5bfd0url`https://api.github.com/repos/palantir/atlasdb/git/trees/3090816c7e26e9d33c24ee90225ca1d4e3a5bfd0uj" bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c750ebac1325e93357e8f9ffcdebe16f4f9c0f51
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmRSloAJEMmvEkpISILgAABNxAEAlJHtgN9350ZUqpr3i80p5N2U
z7zjyOcK4gcODG/KMSQBAL9XK6LV0dXIUXDgtrjbvajOXrR8SbXsaww/1tblnlEe
=iWTV
-----END PGP SIGNATURE-----
payloadX  tree 3090816c7e26e9d33c24ee90225ca1d4e3a5bfd0
parent 2857ac281988f23e4cb979112fbb2bfb3ac34cde
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1683134080 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1683134080 +0000

Excavator:  Update policy-bot configuuj" ^https://api.github.com/repos/palantir/atlasdb/commits/c750ebac1325e93357e8f9ffcdebe16f4f9c0f51html_urlShttps://github.com/palantir/atlasdb/commit/c750ebac1325e93357e8f9ffcdebe16f4f9c0f51comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c750ebac1325e93357e8f9ffcdebe16f4f9c0f51/commentsj }(loginsvc-excavator-botidJj MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j" .https://api.github.com/users/svc-excavator-botj0 $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj }(j5 svc-excavator-botj7 Jj MDQ6VXNlcjMzMjY2MzY4j9 4https://avatars.githubusercontent.com/u/33266368?v=4j; h5j" .https://api.github.com/users/svc-excavator-botj0 $https://github.com/svc-excavator-botj> 8https://api.github.com/users/svc-excavator-bot/followersj@ Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}jB >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}jD Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}jF <https://api.github.com/users/svc-excavator-bot/subscriptionsjH 3https://api.github.com/users/svc-excavator-bot/orgsjJ 4https://api.github.com/users/svc-excavator-bot/reposjL ?https://api.github.com/users/svc-excavator-bot/events{/privacy}jN >https://api.github.com/users/svc-excavator-bot/received_eventsjP UserjR uparents]}(j
 (2857ac281988f23e4cb979112fbb2bfb3ac34cdej" ^https://api.github.com/repos/palantir/atlasdb/commits/2857ac281988f23e4cb979112fbb2bfb3ac34cdej0 Shttps://github.com/palantir/atlasdb/commit/2857ac281988f23e4cb979112fbb2bfb3ac34cdeuastats}(totalK	additionsK	deletionsKufiles]}(j
 (d8f732c3615aaed89bbf22d2dd57bf2198b25723filename.policy.ymlstatusmodifiedjl Kjm KchangesKblob_url]https://github.com/palantir/atlasdb/blob/c750ebac1325e93357e8f9ffcdebe16f4f9c0f51/.policy.ymlraw_url\https://github.com/palantir/atlasdb/raw/c750ebac1325e93357e8f9ffcdebe16f4f9c0f51/.policy.ymlcontents_urlohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=c750ebac1325e93357e8f9ffcdebe16f4f9c0f51patchX(  @@ -20,21 +20,21 @@ approval_rules:
       allow_contributor: false
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: two admins have approved
     options:
       allow_contributor: true
     requires:
       count: 2
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: changelog only and contributor approval
     options:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       only_changed_files:
         paths:
@@ -45,7 +45,7 @@ approval_rules:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       has_author_in:
         users: [ "svc-excavator-bot" ]uau(8e578cdd1c7763800f7ad168945183ad65020fd1}(sha(8e578cdd1c7763800f7ad168945183ad65020fd1node_idEC_kwDOAjP5fdoAKDhlNTc4Y2RkMWM3NzYzODAwZjdhZDE2ODk0NTE4M2FkNjUwMjBmZDEcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-15T15:11:06Zu	committer}(j GitHubj noreply@github.comj 2023-05-15T15:11:06ZumessageARevert "[CBT] Split test into multiple workflows (#6555)" (#6568)tree}(j (dd0b73a309e684fab63b26d8cbc5ab62a50e4cbdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/dd0b73a309e684fab63b26d8cbc5ab62a50e4cbduj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8e578cdd1c7763800f7ad168945183ad65020fd1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkYkuKCRBK7hj4Ov3rIwAAeuEIAFxdbikMI2FUoljiYF92Drjq
3efO/i0J5AgAFzyQxFXllX5PtzkawRKdSoXlEhx3hZfQDBYFFO56OKyyvpdKZeLm
7gkreBLTr/MYpJva05JL/v8PUWCJG6Fv+HyUnVMlOgA75maboAQBMFZvYS59cmIK
Of5BH5oevPf0UOzH5wWsJBS8rUM9AyUmtSloZqxGfhFDFi5XX+lud5dlBDbXA60/
1XbSmSas20fQM1UWjocCdvAI/hg5q41bVI9uIO+R+jOTLkz2c4ks/6IKk8w/LM5Q
c7iWfCvnPkcbxDGUS1ZB6lPo0kPES+ZOAC6BFD1fAp4u/H5FIhUTP006y59ajAU=
=EXHD
-----END PGP SIGNATURE-----
payloadX&  tree dd0b73a309e684fab63b26d8cbc5ab62a50e4cbd
parent 1be1d60e855bbd7d756e718bcced869d95b06eb9
author aalouane <30903736+ergo14@users.noreply.github.com> 1684163466 +0100
committer GitHub <noreply@github.com> 1684163466 +0000

Revert "[CBT] Split test into multiple workflows (#6555)" (#6568)

 uuj ^https://api.github.com/repos/palantir/atlasdb/commits/8e578cdd1c7763800f7ad168945183ad65020fd1html_urlShttps://github.com/palantir/atlasdb/commit/8e578cdd1c7763800f7ad168945183ad65020fd1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8e578cdd1c7763800f7ad168945183ad65020fd1/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j (1be1d60e855bbd7d756e718bcced869d95b06eb9j ^https://api.github.com/repos/palantir/atlasdb/commits/1be1d60e855bbd7d756e718bcced869d95b06eb9j Shttps://github.com/palantir/atlasdb/commit/1be1d60e855bbd7d756e718bcced869d95b06eb9uastats}(totalK+	additionsK	deletionsKufiles](}(j (4afe6cfa22e2263f723e942552446af1d1099428filename.circleci/config.ymlstatusmodifiedj Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/8e578cdd1c7763800f7ad168945183ad65020fd1/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/8e578cdd1c7763800f7ad168945183ad65020fd1/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=8e578cdd1c7763800f7ad168945183ad65020fd1patchX  @@ -1,4 +1,4 @@
-version: 2.1
+version: 2
 
 jobs:
   build:
@@ -31,10 +31,8 @@ jobs:
           root: .
           paths: [ . ]
 
-  test-suite:
-    parameters:
-      suite:
-        type: integer
+  test:
+    parallelism: 14
     machine:
       image: ubuntu-2004:202111-02
     resource_class: xlarge
@@ -68,7 +66,7 @@ jobs:
               curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
               sudo ln -s /opt/java/zulu*/ /opt/java8
       - run:
-          command: ./scripts/circle-ci/run-circle-tests.sh << parameters.suite >>
+          command: ./scripts/circle-ci/run-circle-tests.sh
           no_output_timeout: 900
       - run: ./scripts/circle-ci/ensure-repo-clean.sh
       - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
@@ -99,13 +97,6 @@ jobs:
       - attach_workspace: { at: . }
       - run: ./gradlew --scan --profile --stacktrace --continue publishToMavenLocal
 
-  # placeholder no-op
-  test:
-    docker: [{ image: 'busybox:1.34.1' }]
-    resource_class: small
-    steps:
-      - run: {command: echo "No op"}
-
   deploy:
     docker:
       - image: cimg/openjdk:11.0.10-node
@@ -139,22 +130,15 @@ jobs:
             fi
 
 workflows:
+  version: 2
   check:
     jobs:
       - build:
           filters:
             tags:
               only: /.*/
-      - test-suite:
-          requires: [build]
-          matrix:
-            parameters:
-              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
-          filters:
-            tags:
-              only: /.*/
       - test:
-          requires: [test-suite]
+          requires: [build]
           filters:
             tags:
               only: /.*/u}(j (c79102e643ab92d38512a931ed6f634fa8ad143fj $changelog/@unreleased/pr-6568.v2.ymlj addedj Kj K j Kj |https://github.com/palantir/atlasdb/blob/8e578cdd1c7763800f7ad168945183ad65020fd1/changelog%2F%40unreleased%2Fpr-6568.v2.ymlj {https://github.com/palantir/atlasdb/raw/8e578cdd1c7763800f7ad168945183ad65020fd1/changelog%2F%40unreleased%2Fpr-6568.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6568.v2.yml?ref=8e578cdd1c7763800f7ad168945183ad65020fd1j @@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: Revert "[CBT] Split test into multiple workflows (#6555)"
+  links:
+  - https://github.com/palantir/atlasdb/pull/6568u}(j (0c1d3cb8bb00e7401e683ac5588b778df3c3be4fj %scripts/circle-ci/run-circle-tests.shj modifiedj Kj Kj K
j {https://github.com/palantir/atlasdb/blob/8e578cdd1c7763800f7ad168945183ad65020fd1/scripts%2Fcircle-ci%2Frun-circle-tests.shj zhttps://github.com/palantir/atlasdb/raw/8e578cdd1c7763800f7ad168945183ad65020fd1/scripts%2Fcircle-ci%2Frun-circle-tests.shj https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=8e578cdd1c7763800f7ad168945183ad65020fd1j X  @@ -50,18 +50,16 @@ do
     CONTAINER_0_EXCLUDE_ARGS="$CONTAINER_0_EXCLUDE_ARGS -x $task"
 done
 
-test_suite_index=$1
-
 # Short circuit the build if it's docs only
 if ./scripts/circle-ci/check-only-docs-changes.sh; then
-    if [ "$test_suite_index" -eq 0 ]; then
+    if [ $CIRCLE_NODE_INDEX -eq 0 ]; then
         checkDocsBuild
         exit $?
     fi
     exit 0
 fi
 
-if [ "$test_suite_index" -eq 9 ] || [ "$test_suite_index" -eq 10 ]; then
+if [ $CIRCLE_NODE_INDEX -eq 9 ] || [ $CIRCLE_NODE_INDEX -eq 10 ]; then
     printenv DOCKERHUB_PASSWORD | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
     # The oracle container is very large and takes a long time to pull.
     # If this image is not pulled here, the circle build usually times out.
@@ -73,7 +71,7 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
 # External builds have a 16gb limit.
-if [ "$test_suite_index" -eq "13" ]; then
+if [ "$CIRCLE_NODE_INDEX" -eq "13" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
@@ -82,7 +80,7 @@ fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64m
 
-case "$test_suite_index" in
+case $CIRCLE_NODE_INDEX in
     0) ./gradlew $BASE_GRADLE_ARGS check $CONTAINER_0_EXCLUDE_ARGS -x :atlasdb-jepsen-tests:check;;
     1) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_1[@]} ;;
     2) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_2[@]} -x :atlasdb-ete-tests:longTest -x atlasdb-ete-tests:dbkvsTest -x :atlasdb-ete-tests:timeLockMigrationTest ;;ueu(f8c76949424e7a06aa162df6a100f5c02e594d29}(sha(f8c76949424e7a06aa162df6a100f5c02e594d29node_idEC_kwDOAjP5fdoAKGY4Yzc2OTQ5NDI0ZTdhMDZhYTE2MmRmNmExMDBmNWMwMmU1OTRkMjkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-03-29T11:36:57Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-03-29T11:36:57Zumessage>Merge branch 'aagan' of github.com:palantir/atlasdb into aagantree}(j (1df24699530268c5c7088402c0033ed5bfe38189url`https://api.github.com/repos/palantir/atlasdb/git/trees/1df24699530268c5c7088402c0033ed5bfe38189uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f8c76949424e7a06aa162df6a100f5c02e594d29
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQkItoACgkQPlMHVIT1
yhpLrgf+OlHGUc+ehuo5TmYYpP+xgK+D1efWUua80fPzT154UaVEZG/ie0cQ3hGD
t+hiTkBTVxwB8VYZOUyR8Ve7X2VrKk7yNE38Ag61nush0TRqhLq4wUcdiKnsWNJi
Gc+Nv5XjCUd3UfJAF0jig2EzM9nE7XxkUy5MaQUGYF3rTWDAZ8m0BpV9wXX2odhI
Yqwr7hYhHflPxVv6OsdlqlHEU3e0CjhPMxIJzqqT3D/s+bYwQBljeQRMl4kspGNT
WgWnQJcF0/94V5lmmPdaVvoFeWHhkabbz8rNeQ28k+sBMhsXExDlvb9N2C7Aq1ny
fWJbFIHDOvHMgRiQLQWmE8otix5cfQ==
=0Ne+
-----END PGP SIGNATURE-----*     payloadXM  tree 1df24699530268c5c7088402c0033ed5bfe38189
parent 56beb1bf9d0394d07288cb324b28314267fff5c1
parent 7d84708b39f6c0759c09dd1e326322ce5c3f98e8
author Ahmed Alouane <aalouane@palantir.com> 1680089817 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1680089817 +0100

Merge branch 'aagan' of github.com:palantir/atlasdb into aagan
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/f8c76949424e7a06aa162df6a100f5c02e594d29html_urlShttps://github.com/palantir/atlasdb/commit/f8c76949424e7a06aa162df6a100f5c02e594d29comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f8c76949424e7a06aa162df6a100f5c02e594d29/commentsj }(loginergo14idJj
 MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j. https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j3 ergo14j5 Jj
 MDQ6VXNlcjMwOTAzNzM2j7 4https://avatars.githubusercontent.com/u/30903736?v=4j9 h5j  #https://api.github.com/users/ergo14j. https://github.com/ergo14j< -https://api.github.com/users/ergo14/followersj> :https://api.github.com/users/ergo14/following{/other_user}j@ 3https://api.github.com/users/ergo14/gists{/gist_id}jB :https://api.github.com/users/ergo14/starred{/owner}{/repo}jD 1https://api.github.com/users/ergo14/subscriptionsjF (https://api.github.com/users/ergo14/orgsjH )https://api.github.com/users/ergo14/reposjJ 4https://api.github.com/users/ergo14/events{/privacy}jL 3https://api.github.com/users/ergo14/received_eventsjN UserjP uparents](}(j (56beb1bf9d0394d07288cb324b28314267fff5c1j  ^https://api.github.com/repos/palantir/atlasdb/commits/56beb1bf9d0394d07288cb324b28314267fff5c1j. Shttps://github.com/palantir/atlasdb/commit/56beb1bf9d0394d07288cb324b28314267fff5c1u}(j (7d84708b39f6c0759c09dd1e326322ce5c3f98e8j  ^https://api.github.com/repos/palantir/atlasdb/commits/7d84708b39f6c0759c09dd1e326322ce5c3f98e8j. Shttps://github.com/palantir/atlasdb/commit/7d84708b39f6c0759c09dd1e326322ce5c3f98e8uestats}(totalK	additionsK	deletionsK ufiles]}(j (d950412e3468eb3c6435b88c85e31c8234c831c5filename$changelog/@unreleased/pr-6488.v2.ymlstatusaddedjn Kjo K changesKblob_url|https://github.com/palantir/atlasdb/blob/f8c76949424e7a06aa162df6a100f5c02e594d29/changelog%2F%40unreleased%2Fpr-6488.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/f8c76949424e7a06aa162df6a100f5c02e594d29/changelog%2F%40unreleased%2Fpr-6488.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6488.v2.yml?ref=f8c76949424e7a06aa162df6a100f5c02e594d29patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Improve Sqlite namespace loader implementation
+  links:
+  - https://github.com/palantir/atlasdb/pull/6488uau(d4d795825bf2970ece4825adcdbc9d5792db7c2b}(sha(d4d795825bf2970ece4825adcdbc9d5792db7c2bnode_idEC_kwDOAjP5fdoAKGQ0ZDc5NTgyNWJmMjk3MGVjZTQ4MjVhZGNkYmM5ZDU3OTJkYjdjMmIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-11T10:30:42Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-06-11T10:30:42Zumessage
refresh cachetree}(j (c9f3fd6554861217683c3f32d4bc0b91292312a4url`https://api.github.com/repos/palantir/atlasdb/git/trees/c9f3fd6554861217683c3f32d4bc0b91292312a4uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d4d795825bf2970ece4825adcdbc9d5792db7c2b
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSFolMACgkQTLdFKain
zjy79AgA2sZ6W+kv53gh5lMi/4rc/8Inudhu6qaifBxthdWnhTebfGD+ReEDZ/RU
cT975AglS8VqSchtlD7/dkZ1F1Ikp8qLhNWrC3qcsMudT8RBN2EHjWKyRAwIAyeN
WspI4c6erC8oaCHSjon9ISu8sC4xB1kAwdl1j8ImKt+4gpogniavT23VcLKivCw7
jnZEmg4qEiXTCzZTdlKau22KUy5kW5J21R8Hnff3XdbxYBZ6uMclUFRMYoMUhLH1
guQl+QRje2lmFQDm0xi05I7QW4uXjGfNedcqKQqgMmP1Y97VFJOfjwDEDLQlnFfb
Cg6t6TkoRhLJocPynGgOFRHdSpYuqg==
=JDT8
-----END PGP SIGNATURE-----payloadtree c9f3fd6554861217683c3f32d4bc0b91292312a4
parent 14982a38b624d53764276f31e344130f8633950a
author Jeremy Kong <jkong@palantir.com> 1686479442 +0100
committer Jeremy Kong <jkong@palantir.com> 1686479442 +0100

refresh cache
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/d4d795825bf2970ece4825adcdbc9d5792db7c2bhtml_urlShttps://github.com/palantir/atlasdb/commit/d4d795825bf2970ece4825adcdbc9d5792db7c2bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d4d795825bf2970ece4825adcdbc9d5792db7c2b/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j (14982a38b624d53764276f31e344130f8633950aj ^https://api.github.com/repos/palantir/atlasdb/commits/14982a38b624d53764276f31e344130f8633950aj Shttps://github.com/palantir/atlasdb/commit/14982a38b624d53764276f31e344130f8633950auastats}(totalK 	additionsK 	deletionsK ufiles]u(b6c113247659ef9e4e07a19ee3da832fa3f228df}(sha(b6c113247659ef9e4e07a19ee3da832fa3f228dfnode_idEC_kwDOAjP5fdoAKGI2YzExMzI0NzY1OWVmOWU0ZTA3YTE5ZWUzZGE4MzJmYTNmMjI4ZGYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-28T23:58:34Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-04-28T23:58:34Zumessageand nowtree}(j (c97976bd09298ae4dda65f01c9b3944db1dc71c1url`https://api.github.com/repos/palantir/atlasdb/git/trees/c97976bd09298ae4dda65f01c9b3944db1dc71c1uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b6c113247659ef9e4e07a19ee3da832fa3f228df
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRMXaoACgkQPlMHVIT1
yhrcEwf/WLeLWFQA77mgu+S03fW0ek+WsanNxIcKJh64UVGWwETjXuPoGVHs08Md
VuDYFzZWb+TCkHqiLh+cBvghVbfBjyOppsZZGaxoOnhf/57emyzRUpSFIeksAN7m
WEf+QysQQcDomEqa+GqAjTMbzLLBQigpQRLC7Lx5uPXZEkEpjyE55GwTav5tzx9O
VMH6xgtazAiCZr629avHjICZbaIsN1e8PPrkRdqi8dyh5N91y7k+UEYk/G71A6p8
l0AiXL3bhdvatkTkBT2u10wm0LScc7cwNBOanJIe7eWIb2LIcTncNen8EUzsHxbH
52xN68KeqxOTyxIUkIocQnb71wAehQ==
=Gnz7
-----END PGP SIGNATURE-----payloadtree c97976bd09298ae4dda65f01c9b3944db1dc71c1
parent 429d139e96e21b26410b961256e1e28564b6d92c
author Ahmed Alouane <aalouane@palantir.com> 1682726314 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682726314 +0100

and now
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/b6c113247659ef9e4e07a19ee3da832fa3f228dfhtml_urlShttps://github.com/palantir/atlasdb/commit/b6c113247659ef9e4e07a19ee3da832fa3f228dfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b6c113247659ef9e4e07a19ee3da832fa3f228df/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj! :https://api.github.com/users/ergo14/following{/other_user}j# 3https://api.github.com/users/ergo14/gists{/gist_id}j% :https://api.github.com/users/ergo14/starred{/owner}{/repo}j' 1https://api.github.com/users/ergo14/subscriptionsj) (https://api.github.com/users/ergo14/orgsj+ )https://api.github.com/users/ergo14/reposj- 4https://api.github.com/users/ergo14/events{/privacy}j/ 3https://api.github.com/users/ergo14/received_eventsj1 Userj3 uparents]}(j (429d139e96e21b26410b961256e1e28564b6d92cj ^https://api.github.com/repos/palantir/atlasdb/commits/429d139e96e21b26410b961256e1e28564b6d92cj Shttps://github.com/palantir/atlasdb/commit/429d139e96e21b26410b961256e1e28564b6d92cuastats}(totalK	additionsK	deletionsKufiles]}(j (167a11b71a59d2f861f6336c2f2c13ef7e355a92filename.circleci/config.ymlstatusmodifiedjM KjN KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/b6c113247659ef9e4e07a19ee3da832fa3f228df/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/b6c113247659ef9e4e07a19ee3da832fa3f228df/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=b6c113247659ef9e4e07a19ee3da832fa3f228dfpatchX  @@ -141,6 +141,7 @@ workflows:
       - test:
           requires: [build]
           matrix:
+            alias: test-no-tl
             parameters:
               test_suite: [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13]
           filters:
@@ -149,6 +150,7 @@ workflows:
       - test:
           requires: [build]
           matrix:
+            alias: test-tl
             parameters:
               test_suite: [8]
           filters:
@@ -160,7 +162,7 @@ workflows:
             branches:
               ignore: [develop]
       - deploy:
-          requires: [build, test]
+          requires: [build, test-tl, test-no-tl]
           filters:
             branches:
               only: developuau(65eadc920dbc517358638c195f224ae5c053b20d}(sha(65eadc920dbc517358638c195f224ae5c053b20dnode_idEC_kwDOAjP5fdoAKDY1ZWFkYzkyMGRiYzUxNzM1ODYzOGMxOTVmMjI0YWU1YzA1M2IyMGQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-06T20:21:18Zu	committer}(jj Jeremy Kongjl jkong@palantir.comjn 2023-06-06T20:21:18ZumessageCR notestree}(jb (571c053e72dc184ceed286b0eae71f57ef5c9503url`https://api.github.com/repos/palantir/atlasdb/git/trees/571c053e72dc184ceed286b0eae71f57ef5c9503ujz bhttps://api.github.com/repos/palantir/atlasdb/git/commits/65eadc920dbc517358638c195f224ae5c053b20d
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR/lT4ACgkQTLdFKain
zjxXjgf/VLOBd6clsS8QAoo54/0AUMWLyLwxzRJRIpEz1lfz/OQSa5AtJ4xWFmKA
mLll3Bg6DgteMfzsPyFOb/ZzzDO7Yie3BM6bYS8MylDeurWMmxKrsZUkL2MYjZDS
TTqYbhPGvjZyOvsXeo7cZ+G3J2biilibSJw3ZY4eNtpRcMLgAkH/Xw2otaOlCkvp
w/ChgxmSpHz031mEpy27YeR6D1LBxrJpEN/s91iPnSCE83x4udeJc5jXM6Ntq+18
l3Kg4isMQ8o0zTvDJmcSjrf1fNmu3a6tug+OYatUs2+N/tJAHsKpS3XFzX6uRB17
+tUeS426emQXWuVagPEVJp8XHvxKGg==
=97c5
-----END PGP SIGNATURE-----payloadtree 571c053e72dc184ceed286b0eae71f57ef5c9503
parent b40de058c8d34806113f6803cb6f9bd469906455
author Jeremy Kong <jkong@palantir.com> 1686082878 +0100
committer Jeremy Kong <jkong@palantir.com> 1686082878 +0100

CR notes
uujz ^https://api.github.com/repos/palantir/atlasdb/commits/65eadc920dbc517358638c195f224ae5c053b20dhtml_urlShttps://github.com/palantir/atlasdb/commit/65eadc920dbc517358638c195f224ae5c053b20dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/65eadc920dbc517358638c195f224ae5c053b20d/commentsjh }(login
jeremyk-91idJZ jd MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jz 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujp }(j 
jeremyk-91j JZ jd MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5jz 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(jb (b40de058c8d34806113f6803cb6f9bd469906455jz ^https://api.github.com/repos/palantir/atlasdb/commits/b40de058c8d34806113f6803cb6f9bd469906455j Shttps://github.com/palantir/atlasdb/commit/b40de058c8d34806113f6803cb6f9bd469906455uastats}(totalK	additionsK	deletionsKufiles](}(jb (a5a4c6d7a22b620c4d006ce608b308c51b65e81cfilenameaatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javastatusmodifiedj K	j KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/65eadc920dbc517358638c195f224ae5c053b20d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/65eadc920dbc517358638c195f224ae5c053b20d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=65eadc920dbc517358638c195f224ae5c053b20dpatchX\	  @@ -45,7 +45,6 @@
 
 public final class RandomWorkflows {
     private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
-    private static final Integer COLUMN = 0;
 
     private RandomWorkflows() {
         // static factory
@@ -82,7 +81,10 @@ public RandomWorkflowTask(RandomWorkflowConfiguration workflowConfiguration, Sec
         public Optional<WitnessedTransaction> run(TransactionStore store) {
             workflowConfiguration.transactionRateLimiter().acquire();
             List<TransactionAction> actions = Stream.of(
-                            generateReadActions(), generateWriteActions(), generateDeleteActions(), generateRowColumnRangeReadActions())
+                            generateReadActions(),
+                            generateWriteActions(),
+                            generateDeleteActions(),
+                            generateRowColumnRangeReadActions())
                     .flatMap(Collection::stream)
                     .collect(Collectors.toList());
             Collections.shuffle(actions, random);
@@ -122,7 +124,9 @@ private List<RowColumnRangeReadTransactionAction> generateRowColumnRangeReadActi
                         WorkloadCell startCell = randomCell();
                         int endColumn = random.nextInt(workflowConfiguration.maxColumns());
                         Builder builder = ImmutableRowColumnRangeReadTransactionAction.builder()
-                                .table(workflowConfiguration.tableConfiguration().tableName())
+                                .table(workflowConfiguration
+                                        .tableConfiguration()
+                                        .tableName())
                                 .row(startCell.key());
                         if (startCell.column() < endColumn) {
                             builder.columnRangeSelection(ColumnRangeSelection.builder()
@@ -141,7 +145,8 @@ private List<RowColumnRangeReadTransactionAction> generateRowColumnRangeReadActi
         }
 
         private WorkloadCell randomCell() {
-            return ImmutableWorkloadCell.of(random.nextInt(workflowConfiguration.maxRows()),
+            return ImmutableWorkloadCell.of(
+                    random.nextInt(workflowConfiguration.maxRows()),
                     random.nextInt(workflowConfiguration.maxColumns()));
         }
     }u}(jb (ed4a933003145485da5b9b26d582f7dd57f2ceafj eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowsTest.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/65eadc920dbc517358638c195f224ae5c053b20d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/65eadc920dbc517358638c195f224ae5c053b20d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.java?ref=65eadc920dbc517358638c195f224ae5c053b20dj X9  @@ -31,6 +31,7 @@
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -96,5 +97,6 @@ public void workflowRunsReadWritesDeletes() {
         assertThat(actions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
         assertThat(actions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
         assertThat(actions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedRowColumnRangeReadTransactionAction.class::isInstance);
     }
 }ueu(648e54ee6a671360afc6d4a627d68c570a6be937}(sha(648e54ee6a671360afc6d4a627d68c570a6be937node_idEC_kwDOAjP5fdoAKDY0OGU1NGVlNmE2NzEzNjBhZmM2ZDRhNjI3ZDY4YzU3MGE2YmU5Mzccommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-20T15:23:44Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-07-20T15:23:44Zumessage?Add methods with cachedLookupRef to TransactionScopedCache getstree}(j (a78198ca7bb55eb4618b4fbaf1e03b6edd9ff017url`https://api.github.com/repos/palantir/atlasdb/git/trees/a78198ca7bb55eb4618b4fbaf1e03b6edd9ff017uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/648e54ee6a671360afc6d4a627d68c570a6be937
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS5UYAACgkQJd22kJ7J
GizroAf+J52U5AloQLo0h68ieebuQLRXd+FfLWwzZ8U2k6mn++F1VbAi5oz9AQQd
kCWVsuBSpOQYB1+rkyE/706kYjz0MH7VOYFq+BFeWdm6rm3g2WAR0CPm/R0P9gdf
a0p5ArvxJihOoF7erMJSiY5tHodLgtfiXPW6g2YewOEwZaFUo/cLyfR4EIxab89H
Zwg6VjZyUnHZmHWdUbKvkJpgmLjpeCvQYT4InAIFDX0ecptWw+RT6SS5HzvtTN/1
9Ev2GGY+HQCZWnYGAG6/w+apIp4bKEa340ZShxIlJHK/fRciW4LBAAF2PzOkK+Mi
Wcse2Cqd8eyUQX4Y5EFF2SIfXsJS0g==
=9AJa
-----END PGP SIGNATURE-----payloadX  tree a78198ca7bb55eb4618b4fbaf1e03b6edd9ff017
parent ffaa25caaa6d8fe13003152cc5569f31acb58507
author Lucas Meireles <meireles31@msn.com> 1689866624 +0100
committer Lucas Meireles <meireles31@msn.com> 1689866624 +0100

Add methods with cachedLookupRef to TransactionScopedCache gets
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/648e54ee6a671360afc6d4a627d68c570a6be937html_urlShttps://github.com/palantir/atlasdb/commit/648e54ee6a671360afc6d4a627d68c570a6be937comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/648e54ee6a671360afc6d4a627d68c570a6be937/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j LucasIMEj Jg j MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj! +https://api.github.com/users/LucasIME/reposj# 6https://api.github.com/users/LucasIME/events{/privacy}j% 5https://api.github.com/users/LucasIME/received_eventsj' Userj) uparents]}(j (ffaa25caaa6d8fe13003152cc5569f31acb58507j ^https://api.github.com/repos/palantir/atlasdb/commits/ffaa25caaa6d8fe13003152cc5569f31acb58507j Shttps://github.com/palantir/atlasdb/commit/ffaa25caaa6d8fe13003152cc5569f31acb58507uastats}(totalK	additionsKp	deletionsK ufiles](}(j (35cb27e160997c1dec39cf91b2bab8c040445ea5filenameaatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/cache/NoOpTransactionScopedCache.javastatusmodifiedjC KjD K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/648e54ee6a671360afc6d4a627d68c570a6be937/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FNoOpTransactionScopedCache.javaraw_urlhttps://github.com/palantir/atlasdb/raw/648e54ee6a671360afc6d4a627d68c570a6be937/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FNoOpTransactionScopedCache.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FNoOpTransactionScopedCache.java?ref=648e54ee6a671360afc6d4a627d68c570a6be937patchX  @@ -51,6 +51,14 @@ public Map<Cell, byte[]> get(
         return AtlasFutures.getUnchecked(getAsync(tableReference, cells, valueLoader));
     }
 
+    @Override
+    public Map<Cell, byte[]> getWithCachedRef(
+            TableReference tableReference,
+            Set<Cell> cells,
+            Function<CacheLookupResult, ListenableFuture<Map<Cell, byte[]>>> valueLoader) {
+        return AtlasFutures.getUnchecked(getAsyncWithCachedRef(tableReference, cells, valueLoader));
+    }
+
     @Override
     public ListenableFuture<Map<Cell, byte[]>> getAsync(
             TableReference tableReference,
@@ -59,6 +67,14 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(
         return valueLoader.apply(cells);
     }
 
+    @Override
+    public ListenableFuture<Map<Cell, byte[]>> getAsyncWithCachedRef(
+            TableReference tableReference,
+            Set<Cell> cells,
+            Function<CacheLookupResult, ListenableFuture<Map<Cell, byte[]>>> valueLoader) {
+        return valueLoader.apply(CacheLookupResult.of(Map.of(), cells));
+    }
+
     @Override
     public NavigableMap<byte[], RowResult<byte[]>> getRows(
             TableReference tableRef,u}(j (191dea1d081583b7938a7ed93351c18b9c99d6b5jI eatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/cache/ReadOnlyTransactionScopedCache.javajK modifiedjC KjD K jM KjN https://github.com/palantir/atlasdb/blob/648e54ee6a671360afc6d4a627d68c570a6be937/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FReadOnlyTransactionScopedCache.javajP https://github.com/palantir/atlasdb/raw/648e54ee6a671360afc6d4a627d68c570a6be937/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FReadOnlyTransactionScopedCache.javajR https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FReadOnlyTransactionScopedCache.java?ref=648e54ee6a671360afc6d4a627d68c570a6be937jT X  @@ -56,6 +56,14 @@ public Map<Cell, byte[]> get(
         return delegate.get(tableReference, cells, valueLoader);
     }
 
+    @Override
+    public Map<Cell, byte[]> getWithCachedRef(
+            TableReference tableReference,
+            Set<Cell> cells,
+            Function<CacheLookupResult, ListenableFuture<Map<Cell, byte[]>>> valueLoader) {
+        return delegate.getWithCachedRef(tableReference, cells, valueLoader);
+    }
+
     @Override
     public ListenableFuture<Map<Cell, byte[]>> getAsync(
             TableReference tableReference,
@@ -64,6 +72,14 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(
         return delegate.getAsync(tableReference, cells, valueLoader);
     }
 
+    @Override
+    public ListenableFuture<Map<Cell, byte[]>> getAsyncWithCachedRef(
+            TableReference tableReference,
+            Set<Cell> cells,
+            Function<CacheLookupResult, ListenableFuture<Map<Cell, byte[]>>> valueLoader) {
+        return delegate.getAsyncWithCachedRef(tableReference, cells, valueLoader);
+    }
+
     @Override
     public NavigableMap<byte[], RowResult<byte[]>> getRows(
             TableReference tableRef,u}(j (fa612604d51df4abb607b6d3ce78063eafdf051fjI ]atlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/cache/TransactionScopedCache.javajK modifiedjC KjD K jM KjN https://github.com/palantir/atlasdb/blob/648e54ee6a671360afc6d4a627d68c570a6be937/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FTransactionScopedCache.javajP https://github.com/palantir/atlasdb/raw/648e54ee6a671360afc6d4a627d68c570a6be937/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FTransactionScopedCache.javajR https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FTransactionScopedCache.java?ref=648e54ee6a671360afc6d4a627d68c570a6be937jT X  @@ -27,6 +27,7 @@
 import java.util.NavigableMap;
 import java.util.Set;
 import java.util.function.Function;
+import org.immutables.value.Value;
 
 /**
  * The {@link LockWatchValueScopingCache} will provide one of these to every (relevant) transaction, and this will
@@ -60,11 +61,21 @@ Map<Cell, byte[]> get(
             Set<Cell> cells,
             Function<Set<Cell>, ListenableFuture<Map<Cell, byte[]>>> valueLoader);
 
+    Map<Cell, byte[]> getWithCachedRef(
+            TableReference tableReference,
+            Set<Cell> cells,
+            Function<CacheLookupResult, ListenableFuture<Map<Cell, byte[]>>> valueLoader);
+
     ListenableFuture<Map<Cell, byte[]>> getAsync(
             TableReference tableReference,
             Set<Cell> cells,
             Function<Set<Cell>, ListenableFuture<Map<Cell, byte[]>>> valueLoader);
 
+    ListenableFuture<Map<Cell, byte[]>> getAsyncWithCachedRef(
+            TableReference tableReference,
+            Set<Cell> cells,
+            Function<CacheLookupResult, ListenableFuture<Map<Cell, byte[]>>> valueLoader);
+
     /**
      * The cache will try to fulfil as much of the request as possible with cached values. In the case where some of the
      * columns are present in the cache for a row, the cellLoader will be used to read the remaining cells remotely.
@@ -93,4 +104,18 @@ NavigableMap<byte[], RowResult<byte[]>> getRows(
     HitDigest getHitDigest();
 
     TransactionScopedCache createReadOnlyCache(CommitUpdate commitUpdate);
+
+    @Value.Immutable
+    interface CacheLookupResult {
+        Map<Cell, CacheValue> cacheHits();
+
+        Set<Cell> missedCells();
+
+        static CacheLookupResult of(Map<Cell, CacheValue> cachedValues, Set<Cell> missedCells) {
+            return ImmutableCacheLookupResult.builder()
+                    .cacheHits(cachedValues)
+                    .missedCells(missedCells)
+                    .build();
+        }
+    }
 }u}(j (da1ace888e39c92179beb9b6a9e5e54b85b8fcf5jI Zatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CachingTransaction.javajK modifiedjC KjD KjM KjN https://github.com/palantir/atlasdb/blob/648e54ee6a671360afc6d4a627d68c570a6be937/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javajP https://github.com/palantir/atlasdb/raw/648e54ee6a671360afc6d4a627d68c570a6be937/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javajR https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.java?ref=648e54ee6a671360afc6d4a627d68c570a6be937jT X
  @@ -124,7 +124,8 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
             return getWithLoader(
                             tableRef,
                             cells,
-                            (tableReference, toRead) -> Futures.immediateFuture(super.get(tableReference, toRead)))
+                            (tableReference, _cachedCells, toRead) ->
+                                    Futures.immediateFuture(super.get(tableReference, toRead)))
                     .get();
         } catch (InterruptedException | ExecutionException e) {
             throw Throwables.rewrapAndThrowUncheckedException(e.getCause());
@@ -135,9 +136,8 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
     public Map<Cell, byte[]> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, int expectedNumberOfPresentCells) {
         try {
-            return getWithLoader(tableRef, cells, (tableReference, toRead) -> {
-                        int cachedCells = cells.size() - toRead.size();
-                        int numberOfCellsExpectingValuePostCache = expectedNumberOfPresentCells - cachedCells;
+            return getWithLoader(tableRef, cells, (tableReference, cachedCells, toRead) -> {
+                        int numberOfCellsExpectingValuePostCache = expectedNumberOfPresentCells - cachedCells.size();
 
                         return Futures.immediateFuture(super.getWithExpectedNumberOfCells(
                                 tableReference, toRead, numberOfCellsExpectingValuePostCache));
@@ -150,7 +150,7 @@ public Map<Cell, byte[]> getWithExpectedNumberOfCells(
 
     @Override
     public ListenableFuture<Map<Cell, byte[]>> getAsync(TableReference tableRef, Set<Cell> cells) {
-        return getWithLoader(tableRef, cells, super::getAsync);
+        return getWithLoader(tableRef, cells, (table, _cacheCells, cellsToLoad) -> super.getAsync(table, cellsToLoad));
     }
 
     private ListenableFuture<Map<Cell, byte[]>> getWithLoader(
@@ -173,7 +173,7 @@ private ListenableFuture<Map<Cell, byte[]>> getWithLoader(
         }
 
         return Futures.transform(
-                cellLoader.load(tableRef, toLoad),
+                cellLoader.load(tableRef, cacheHit, toLoad),
                 loadedCells -> {
                     cacheLoadedCells(tableRef, toLoad, loadedCells);
                     cacheHit.putAll(loadedCells);
@@ -288,6 +288,7 @@ public void abort() {
 
     @FunctionalInterface
     private interface CellLoader {
-        ListenableFuture<Map<Cell, byte[]>> load(TableReference tableReference, Set<Cell> toRead);
+        ListenableFuture<Map<Cell, byte[]>> load(
+                TableReference tableReference, Map<Cell, byte[]> cachedCells, Set<Cell> toRead);
     }
 }u}(j (14b83bb31cc2b800d750ce5c2933dc372f9e12cejI iatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/cache/TransactionScopedCacheImpl.javajK modifiedjC KjD KjM K&jN https://github.com/palantir/atlasdb/blob/648e54ee6a671360afc6d4a627d68c570a6be937/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FTransactionScopedCacheImpl.javajP https://github.com/palantir/atlasdb/raw/648e54ee6a671360afc6d4a627d68c570a6be937/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FTransactionScopedCacheImpl.javajR https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FTransactionScopedCacheImpl.java?ref=648e54ee6a671360afc6d4a627d68c570a6be937jT X  @@ -43,7 +43,6 @@
 import java.util.function.Function;
 import java.util.stream.Collectors;
 import javax.annotation.concurrent.ThreadSafe;
-import org.immutables.value.Value;
 
 @ThreadSafe
 public final class TransactionScopedCacheImpl implements TransactionScopedCache {
@@ -81,15 +80,34 @@ public Map<Cell, byte[]> get(
         return AtlasFutures.getUnchecked(getAsync(tableReference, cells, valueLoader));
     }
 
+    @Override
+    public Map<Cell, byte[]> getWithCachedRef(
+            TableReference tableReference,
+            Set<Cell> cells,
+            Function<CacheLookupResult, ListenableFuture<Map<Cell, byte[]>>> valueLoader) {
+        ensureNotFinalised();
+        return AtlasFutures.getUnchecked(getAsyncWithCachedRef(tableReference, cells, valueLoader));
+    }
+
     @Override
     public ListenableFuture<Map<Cell, byte[]>> getAsync(
             TableReference tableReference,
             Set<Cell> cells,
             Function<Set<Cell>, ListenableFuture<Map<Cell, byte[]>>> valueLoader) {
         ensureNotFinalised();
+        return getAsyncWithCachedRef(
+                tableReference, cells, cacheLookupResult -> valueLoader.apply(cacheLookupResult.missedCells()));
+    }
+
+    @Override
+    public ListenableFuture<Map<Cell, byte[]>> getAsyncWithCachedRef(
+            TableReference tableReference,
+            Set<Cell> cells,
+            Function<CacheLookupResult, ListenableFuture<Map<Cell, byte[]>>> valueLoader) {
+        ensureNotFinalised();
         // Short-cut all the logic below if the table is not watched.
         if (!valueStore.isWatched(tableReference)) {
-            return valueLoader.apply(cells);
+            return valueLoader.apply(CacheLookupResult.of(Map.of(), cells));
         }
 
         CacheLookupResult cacheLookup = cacheLookup(tableReference, cells);
@@ -98,7 +116,7 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(
             return Futures.immediateFuture(filterEmptyValues(cacheLookup.cacheHits()));
         } else {
             return Futures.transform(
-                    valueLoader.apply(cacheLookup.missedCells()),
+                    valueLoader.apply(cacheLookup),
                     uncachedValues -> processUncachedCells(
                             tableReference, cacheLookup.cacheHits(), cacheLookup.missedCells(), uncachedValues),
                     MoreExecutors.directExecutor());
@@ -246,18 +264,4 @@ private static Map<Cell, byte[]> filterEmptyValues(Map<Cell, CacheValue> snapsho
                 .map(value -> value.value().get())
                 .collectToMap();
     }
-
-    @Value.Immutable
-    interface CacheLookupResult {
-        Map<Cell, CacheValue> cacheHits();
-
-        Set<Cell> missedCells();
-
-        static CacheLookupResult of(Map<Cell, CacheValue> cachedValues, Set<Cell> missedCells) {
-            return ImmutableCacheLookupResult.builder()
-                    .cacheHits(cachedValues)
-                    .missedCells(missedCells)
-                    .build();
-        }
-    }
 }u}(j (b64a6d3a6c55bc2168cdf140c4e79cf50f70fc78jI oatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/cache/ValidatingTransactionScopedCache.javajK modifiedjC KjD KjM KjN https://github.com/palantir/atlasdb/blob/648e54ee6a671360afc6d4a627d68c570a6be937/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FValidatingTransactionScopedCache.javajP https://github.com/palantir/atlasdb/raw/648e54ee6a671360afc6d4a627d68c570a6be937/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FValidatingTransactionScopedCache.javajR https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FValidatingTransactionScopedCache.java?ref=648e54ee6a671360afc6d4a627d68c570a6be937jT XT  @@ -89,13 +89,30 @@ public Map<Cell, byte[]> get(
         return AtlasFutures.getUnchecked(getAsync(tableReference, cells, valueLoader));
     }
 
+    @Override
+    public Map<Cell, byte[]> getWithCachedRef(
+            TableReference tableReference,
+            Set<Cell> cells,
+            Function<CacheLookupResult, ListenableFuture<Map<Cell, byte[]>>> valueLoader) {
+        return AtlasFutures.getUnchecked(getAsyncWithCachedRef(tableReference, cells, valueLoader));
+    }
+
     @Override
     public ListenableFuture<Map<Cell, byte[]>> getAsync(
             TableReference tableReference,
             Set<Cell> cells,
             Function<Set<Cell>, ListenableFuture<Map<Cell, byte[]>>> valueLoader) {
+        return getAsyncWithCachedRef(
+                tableReference, cells, cacheLookupResult -> valueLoader.apply(cacheLookupResult.missedCells()));
+    }
+
+    @Override
+    public ListenableFuture<Map<Cell, byte[]>> getAsyncWithCachedRef(
+            TableReference tableReference,
+            Set<Cell> cells,
+            Function<CacheLookupResult, ListenableFuture<Map<Cell, byte[]>>> valueLoader) {
         if (shouldValidate()) {
-            ListenableFuture<Map<Cell, byte[]>> remoteReads = valueLoader.apply(cells);
+            ListenableFuture<Map<Cell, byte[]>> remoteReads = valueLoader.apply(CacheLookupResult.of(Map.of(), cells));
             ListenableFuture<Map<Cell, byte[]>> cacheReads = delegate.getAsync(
                     tableReference,
                     cells,
@@ -110,7 +127,7 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(
                     },
                     MoreExecutors.directExecutor());
         } else {
-            return delegate.getAsync(tableReference, cells, valueLoader);
+            return delegate.getAsyncWithCachedRef(tableReference, cells, valueLoader);
         }
     }
 u}(j (753a9c4aef2d6f38fedd1c159f5e2c1b78e0fd85jI `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javajK modifiedjC KjD KjM K
jN https://github.com/palantir/atlasdb/blob/648e54ee6a671360afc6d4a627d68c570a6be937/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajP https://github.com/palantir/atlasdb/raw/648e54ee6a671360afc6d4a627d68c570a6be937/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajR https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=648e54ee6a671360afc6d4a627d68c570a6be937jT X  @@ -921,14 +921,14 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
     @Override
     public Map<Cell, byte[]> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, int expectedNumberOfPresentCells) {
-        return getCache().get(tableRef, cells, uncached -> {
-            int cachedCells = cells.size() - uncached.size();
-            int numberOfCellsExpectingValuePostCache = expectedNumberOfPresentCells - cachedCells;
+        return getCache().getWithCachedRef(tableRef, cells, cacheLookupResult -> {
+            int numberOfCellsExpectingValuePostCache =
+                    expectedNumberOfPresentCells - cacheLookupResult.cacheHits().size();
 
             return getInternal(
-                    "get",
+                    "getWithExpectedNumberOfCells",
                     tableRef,
-                    uncached,
+                    cacheLookupResult.missedCells(),
                     numberOfCellsExpectingValuePostCache,
                     immediateKeyValueService,
                     immediateTransactionService);
@@ -951,7 +951,8 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(TableReference tableRef, Set
                                 defaultTransactionService)));
     }
 
-    private ListenableFuture<Map<Cell, byte[]>> getInternal(
+    @VisibleForTesting
+    ListenableFuture<Map<Cell, byte[]>> getInternal(
             String operationName,
             TableReference tableRef,
             Set<Cell> cells,ueu(5b1d5941111a9f4c70796e0105d74381d9589209}(sha(5b1d5941111a9f4c70796e0105d74381d9589209node_idEC_kwDOAjP5fdoAKDViMWQ1OTQxMTExYTlmNGM3MDc5NmUwMTA1ZDc0MzgxZDk1ODkyMDkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-17T13:06:47Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-17T13:06:47ZumessageRevert "split container 3 tests to see separate runtime data + noisy neighbour"

This reverts commit 3f15e183ad466e7d1534098a05e8a01ecbe03881.tree}(j (cd9d3997087f40601c80e0cf28952897fa83095furl`https://api.github.com/repos/palantir/atlasdb/git/trees/cd9d3997087f40601c80e0cf28952897fa83095fuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5b1d5941111a9f4c70796e0105d74381d9589209
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRk0WkACgkQPlMHVIT1
yhp01QgAskkB2IsUXk8bunY92MBYCmsfhcDgfa4Okj10yHc5sflX/520SnLa03oM
9Un5x2nvn2B1RyhV7SEwlTDPp7v7OTDnyCyUI4fUvgMcOLvgP+d/LNfU3M5Huu74
gNoOLTHidEf3JcjyTDXQ+hrA6Sgw0B99GYKKkBxBtf0l5RUZkrXmZjDDxDGNmO8+
1f6BiZb8wFNSBlU0S/qKe848lz5kML7eoTq+Gou8x5k3594iixa9O6VWdZWLYNnr
rgYD0eAZlbsBkEEkj8gte9All5oWmUK5+P9dWyF4aZ4TwfILkOA7bhjlvvspJBHz
u4pmuGx5d6qSROaqmAk8N79bLBKxmw==
=N7eg
-----END PGP SIGNATURE-----payloadXm  tree cd9d3997087f40601c80e0cf28952897fa83095f
parent 3f15e183ad466e7d1534098a05e8a01ecbe03881
author Ahmed Alouane <aalouane@palantir.com> 1684328807 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684328807 +0100

Revert "split container 3 tests to see separate runtime data + noisy neighbour"

This reverts commit 3f15e183ad466e7d1534098a05e8a01ecbe03881.
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/5b1d5941111a9f4c70796e0105d74381d9589209html_urlShttps://github.com/palantir/atlasdb/commit/5b1d5941111a9f4c70796e0105d74381d9589209comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5b1d5941111a9f4c70796e0105d74381d9589209/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j (3f15e183ad466e7d1534098a05e8a01ecbe03881j ^https://api.github.com/repos/palantir/atlasdb/commits/3f15e183ad466e7d1534098a05e8a01ecbe03881j Shttps://github.com/palantir/atlasdb/commit/3f15e183ad466e7d1534098a05e8a01ecbe03881uastats}(totalK	additionsK	deletionsKufiles](}(j (253bc16ac5dc5a851cf320386566a9af40147d25filename.circleci/config.ymlstatusmodifiedj Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/5b1d5941111a9f4c70796e0105d74381d9589209/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/5b1d5941111a9f4c70796e0105d74381d9589209/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=5b1d5941111a9f4c70796e0105d74381d9589209patchX0  @@ -155,7 +155,7 @@ workflows:
             alias: test-no-tl
             parameters:
               # intentionally excluding 12 (TimeLock migration ETE test) from this collection
-              suite: [3, 4, 5]
+              suite: [3]
           filters:
             tags:
               only: /.*/u}(j (10f0a93f9dd3d1a3b4f62101350556ba1a92f52bj %scripts/circle-ci/run-circle-tests.shj modifiedj Kj Kj Kj {https://github.com/palantir/atlasdb/blob/5b1d5941111a9f4c70796e0105d74381d9589209/scripts%2Fcircle-ci%2Frun-circle-tests.shj zhttps://github.com/palantir/atlasdb/raw/5b1d5941111a9f4c70796e0105d74381d9589209/scripts%2Fcircle-ci%2Frun-circle-tests.shj https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=5b1d5941111a9f4c70796e0105d74381d9589209j X  @@ -17,11 +17,11 @@ CONTAINER_1=(':atlasdb-cassandra-integration-tests:testSubset1')
 
 CONTAINER_2=(':atlasdb-ete-tests:check')
 
-CONTAINER_3=(':atlasdb-dbkvs:check')
+CONTAINER_3=(':atlasdb-dbkvs:check' ':atlasdb-cassandra:check' ':timelock-server:integTest')
 
-CONTAINER_4=(':atlasdb-cassandra:check')
+CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:dbkvsTest')
 
-CONTAINER_5=(':timelock-server:integTest')
+CONTAINER_5=(':lock-impl:check' ':atlasdb-dbkvs-tests:postgresTest' ':atlasdb-ete-test-utils:check' ':atlasdb-ete-tests:longTest')
 
 CONTAINER_6=(':timelock-server:suiteTest')
 ueu(bcb5e0beff31ef43fb356a41bb63c621a9393d29}(sha(bcb5e0beff31ef43fb356a41bb63c621a9393d29node_idEC_kwDOAjP5fdoAKGJjYjVlMGJlZmYzMWVmNDNmYjM1NmE0MWJiNjNjNjIxYTkzOTNkMjkcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-07-23T20:56:29Zu	committer}(j David Schlosnaglej davids@palantir.comj 2023-07-23T20:56:29Zumessage5DbKvsGetRanges validates only when assertions enabledtree}(j (58aa19c03f3a1a81321c67b167f29ca401cc772furl`https://api.github.com/repos/palantir/atlasdb/git/trees/58aa19c03f3a1a81321c67b167f29ca401cc772fuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bcb5e0beff31ef43fb356a41bb63c621a9393d29
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmS9k/4ACgkQR9hsJ74Q
0l//qggArVfVqd4mqBjvtFkVJus++EPDLXcMFQKGk01KmsfK6+R///Ys2kUm/+9Z
1dp8y6eTeoPaDq2OFRAHXItQPEufTVrNteLdtlAsKaiRhJtZzRdXJcs6wWJjDHeu
SsBHyiZfdcs6OgxMoztutDkBPR5cutgya7tqmQm/3eLxn1vh/sneS06KCh2e0Di/
X2rEbW3/nn8uGYb3cc3o0DEVe87oIlQWSaIld237E092sQfCTjqc5EayficwfSv0
Ps8lFy/knNvy3/uTxn9Vx8R+/rrKWDa3HhY15qmkFpmHxEiXEqb/x6wVTLuOakuk
r+WNzNyarzjpUMNuh7/MFVW7xmlIkA==
=Kh28
-----END PGP SIGNATURE-----payloadX  tree 58aa19c03f3a1a81321c67b167f29ca401cc772f
parent 4e050a9cb4f8f2b45b8b700df082f442d2fec694
author David Schlosnagle <davids@palantir.com> 1690145789 -0400
committer David Schlosnagle <davids@palantir.com> 1690145789 -0400

DbKvsGetRanges validates only when assertions enabled
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/bcb5e0beff31ef43fb356a41bb63c621a9393d29html_urlShttps://github.com/palantir/atlasdb/commit/bcb5e0beff31ef43fb356a41bb63c621a9393d29comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bcb5e0beff31ef43fb356a41bb63c621a9393d29/commentsj
 }(loginschlosnaidMBj	 MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j %https://api.github.com/users/schlosnaj- https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj }(j2 schlosnaj4 MBj	 MDQ6VXNlcjU0NTk0j6 1https://avatars.githubusercontent.com/u/54594?v=4j8 h5j %https://api.github.com/users/schlosnaj- https://github.com/schlosnaj; /https://api.github.com/users/schlosna/followersj= <https://api.github.com/users/schlosna/following{/other_user}j? 5https://api.github.com/users/schlosna/gists{/gist_id}jA <https://api.github.com/users/schlosna/starred{/owner}{/repo}jC 3https://api.github.com/users/schlosna/subscriptionsjE *https://api.github.com/users/schlosna/orgsjG +https://api.github.com/users/schlosna/reposjI 6https://api.github.com/users/schlosna/events{/privacy}jK 5https://api.github.com/users/schlosna/received_eventsjM UserjO uparents]}(j (4e050a9cb4f8f2b45b8b700df082f442d2fec694j ^https://api.github.com/repos/palantir/atlasdb/commits/4e050a9cb4f8f2b45b8b700df082f442d2fec694j- Shttps://github.com/palantir/atlasdb/commit/4e050a9cb4f8f2b45b8b700df082f442d2fec694uastats}(totalK>	additionsK!	deletionsKufiles]}(j (37e1960306746b7ce0149379959611aec60084eafilename_atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/ranges/DbKvsGetRanges.javastatusmodifiedji K!jj KchangesK>blob_urlhttps://github.com/palantir/atlasdb/blob/bcb5e0beff31ef43fb356a41bb63c621a9393d29/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Franges%2FDbKvsGetRanges.javaraw_urlhttps://github.com/palantir/atlasdb/raw/bcb5e0beff31ef43fb356a41bb63c621a9393d29/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Franges%2FDbKvsGetRanges.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Franges%2FDbKvsGetRanges.java?ref=bcb5e0beff31ef43fb356a41bb63c621a9393d29patchX_  @@ -77,7 +77,7 @@ public class DbKvsGetRanges {
     private final DbKvs kvs;
     private final DBType dbType;
     private final Supplier<SqlConnection> connectionSupplier;
-    private PrefixedTableNames prefixedTableNames;
+    private final PrefixedTableNames prefixedTableNames;
 
     public DbKvsGetRanges(
             DbKvs kvs,
@@ -226,11 +226,13 @@ private Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>>
             NavigableMap<byte[], NavigableMap<byte[], Value>> cellsForBatch = Maps.filterKeys(
                     request.isReverse() ? cellsByRow.descendingMap() : cellsByRow, Predicates.in(rowNames));
 
-            validateRowNames(
-                    cellsForBatch.keySet(),
-                    request.getStartInclusive(),
-                    request.getEndExclusive(),
-                    request.isReverse());
+            if (AssertUtils.isAssertEnabled()) {
+                validateRowNames(
+                        cellsForBatch.keySet(),
+                        request.getStartInclusive(),
+                        request.getEndExclusive(),
+                        request.isReverse());
+            }
 
             IterableView<RowResult<Value>> rows = RowResults.viewOfMap(cellsForBatch);
             if (!request.getColumnNames().isEmpty()) {
@@ -258,29 +260,31 @@ private Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>>
     }
 
     private void validateRowNames(Iterable<byte[]> rows, byte[] startInclusive, byte[] endExclusive, boolean reverse) {
-        for (byte[] row : rows) {
-            if (reverse) {
-                AssertUtils.assertAndLog(
-                        log,
-                        startInclusive.length == 0
-                                || UnsignedBytes.lexicographicalComparator().compare(startInclusive, row) >= 0,
-                        "row was out of range");
-                AssertUtils.assertAndLog(
-                        log,
-                        endExclusive.length == 0
-                                || UnsignedBytes.lexicographicalComparator().compare(row, endExclusive) > 0,
-                        "row was out of range");
-            } else {
-                AssertUtils.assertAndLog(
-                        log,
-                        startInclusive.length == 0
-                                || UnsignedBytes.lexicographicalComparator().compare(startInclusive, row) <= 0,
-                        "row was out of range");
-                AssertUtils.assertAndLog(
-                        log,
-                        endExclusive.length == 0
-                                || UnsignedBytes.lexicographicalComparator().compare(row, endExclusive) < 0,
-                        "row was out of range");
+        if (AssertUtils.isAssertEnabled()) {
+            for (byte[] row : rows) {
+                if (reverse) {
+                    AssertUtils.assertAndLog(
+                            log,
+                            startInclusive.length == 0
+                                    || UnsignedBytes.lexicographicalComparator().compare(startInclusive, row) >= 0,
+                            "row was out of range");
+                    AssertUtils.assertAndLog(
+                            log,
+                            endExclusive.length == 0
+                                    || UnsignedBytes.lexicographicalComparator().compare(row, endExclusive) > 0,
+                            "row was out of range");
+                } else {
+                    AssertUtils.assertAndLog(
+                            log,
+                            startInclusive.length == 0
+                                    || UnsignedBytes.lexicographicalComparator().compare(startInclusive, row) <= 0,
+                            "row was out of range");
+                    AssertUtils.assertAndLog(
+                            log,
+                            endExclusive.length == 0
+                                    || UnsignedBytes.lexicographicalComparator().compare(row, endExclusive) < 0,
+                            "row was out of range");
+                }
             }
         }
     }uau(02fb003df2a3205b04d4a35ee723c998220e6486}(sha(02fb003df2a3205b04d4a35ee723c998220e6486node_idEC_kwDOAjP5fdoAKDAyZmIwMDNkZjJhMzIwNWIwNGQ0YTM1ZWU3MjNjOTk4MjIwZTY0ODYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T14:40:37Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-15T14:40:37ZumessagexRevert "[CBT] Split test into multiple workflows (#6555)"

This reverts commit 174bb726c72d9f909fc125b5f001b253330dd1b7.tree}(j~ (241be562f18f8e97e6257a18e3c067974379fa5durl`https://api.github.com/repos/palantir/atlasdb/git/trees/241be562f18f8e97e6257a18e3c067974379fa5duj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/02fb003df2a3205b04d4a35ee723c998220e6486
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiRGYACgkQPlMHVIT1
yhrXkgf/fbNCwuHb9MUUUrQ7QmApqAYyz4ux4EJv5rk3AxatyhnDm6/TWDQ/I9u9
JYq17NlD4vul1f8se7RATnDAPfmkhWAiG/NYYbBV18N728rWtg54MNKCR1ZnB6hx
4LW5aED2KDpjkvoVQlVJiiUPCEm8Kdw+vybvBqb527h0kPp4h59mIJfKZ9KGTQwf
NSYuyczgFBXhL7Xlg+/1oEb0q0L3IF2nSAJaPPtJ3Hvf7qJQq8oPEpvl+PUSzCeA
5fc449HySm/RILlWDaH0fH6ieLc++Oo/GslQyRJwBs8/Mph00ZNei5Ji57OA+FPv
rYWQoTZtnD7pYh4vJ6pfrhYXLXLpsQ==
=8yU6
-----END PGP SIGNATURE-----payloadXW  tree 241be562f18f8e97e6257a18e3c067974379fa5d
parent 174bb726c72d9f909fc125b5f001b253330dd1b7
author Ahmed Alouane <aalouane@palantir.com> 1684161637 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684161637 +0100

Revert "[CBT] Split test into multiple workflows (#6555)"

This reverts commit 174bb726c72d9f909fc125b5f001b253330dd1b7.
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/02fb003df2a3205b04d4a35ee723c998220e6486html_urlShttps://github.com/palantir/atlasdb/commit/02fb003df2a3205b04d4a35ee723c998220e6486comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/02fb003df2a3205b04d4a35ee723c998220e6486/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j~ (174bb726c72d9f909fc125b5f001b253330dd1b7j ^https://api.github.com/repos/palantir/atlasdb/commits/174bb726c72d9f909fc125b5f001b253330dd1b7j Shttps://github.com/palantir/atlasdb/commit/174bb726c72d9f909fc125b5f001b253330dd1b7uastats}(totalK&	additionsK
	deletionsKufiles](}(j~ (4afe6cfa22e2263f723e942552446af1d1099428filename.circleci/config.ymlstatusmodifiedj Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/02fb003df2a3205b04d4a35ee723c998220e6486/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/02fb003df2a3205b04d4a35ee723c998220e6486/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=02fb003df2a3205b04d4a35ee723c998220e6486patchX  @@ -1,4 +1,4 @@
-version: 2.1
+version: 2
 
 jobs:
   build:
@@ -31,10 +31,8 @@ jobs:
           root: .
           paths: [ . ]
 
-  test-suite:
-    parameters:
-      suite:
-        type: integer
+  test:
+    parallelism: 14
     machine:
       image: ubuntu-2004:202111-02
     resource_class: xlarge
@@ -68,7 +66,7 @@ jobs:
               curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
               sudo ln -s /opt/java/zulu*/ /opt/java8
       - run:
-          command: ./scripts/circle-ci/run-circle-tests.sh << parameters.suite >>
+          command: ./scripts/circle-ci/run-circle-tests.sh
           no_output_timeout: 900
       - run: ./scripts/circle-ci/ensure-repo-clean.sh
       - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
@@ -99,13 +97,6 @@ jobs:
       - attach_workspace: { at: . }
       - run: ./gradlew --scan --profile --stacktrace --continue publishToMavenLocal
 
-  # placeholder no-op
-  test:
-    docker: [{ image: 'busybox:1.34.1' }]
-    resource_class: small
-    steps:
-      - run: {command: echo "No op"}
-
   deploy:
     docker:
       - image: cimg/openjdk:11.0.10-node
@@ -139,22 +130,15 @@ jobs:
             fi
 
 workflows:
+  version: 2
   check:
     jobs:
       - build:
           filters:
             tags:
               only: /.*/
-      - test-suite:
-          requires: [build]
-          matrix:
-            parameters:
-              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
-          filters:
-            tags:
-              only: /.*/
       - test:
-          requires: [test-suite]
+          requires: [build]
           filters:
             tags:
               only: /.*/u     }(j~ (0c1d3cb8bb00e7401e683ac5588b778df3c3be4fj %scripts/circle-ci/run-circle-tests.shj modifiedj Kj Kj K
j {https://github.com/palantir/atlasdb/blob/02fb003df2a3205b04d4a35ee723c998220e6486/scripts%2Fcircle-ci%2Frun-circle-tests.shj zhttps://github.com/palantir/atlasdb/raw/02fb003df2a3205b04d4a35ee723c998220e6486/scripts%2Fcircle-ci%2Frun-circle-tests.shj https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=02fb003df2a3205b04d4a35ee723c998220e6486j X  @@ -50,18 +50,16 @@ do
     CONTAINER_0_EXCLUDE_ARGS="$CONTAINER_0_EXCLUDE_ARGS -x $task"
 done
 
-test_suite_index=$1
-
 # Short circuit the build if it's docs only
 if ./scripts/circle-ci/check-only-docs-changes.sh; then
-    if [ "$test_suite_index" -eq 0 ]; then
+    if [ $CIRCLE_NODE_INDEX -eq 0 ]; then
         checkDocsBuild
         exit $?
     fi
     exit 0
 fi
 
-if [ "$test_suite_index" -eq 9 ] || [ "$test_suite_index" -eq 10 ]; then
+if [ $CIRCLE_NODE_INDEX -eq 9 ] || [ $CIRCLE_NODE_INDEX -eq 10 ]; then
     printenv DOCKERHUB_PASSWORD | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
     # The oracle container is very large and takes a long time to pull.
     # If this image is not pulled here, the circle build usually times out.
@@ -73,7 +71,7 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
 # External builds have a 16gb limit.
-if [ "$test_suite_index" -eq "13" ]; then
+if [ "$CIRCLE_NODE_INDEX" -eq "13" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
@@ -82,7 +80,7 @@ fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64m
 
-case "$test_suite_index" in
+case $CIRCLE_NODE_INDEX in
     0) ./gradlew $BASE_GRADLE_ARGS check $CONTAINER_0_EXCLUDE_ARGS -x :atlasdb-jepsen-tests:check;;
     1) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_1[@]} ;;
     2) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_2[@]} -x :atlasdb-ete-tests:longTest -x atlasdb-ete-tests:dbkvsTest -x :atlasdb-ete-tests:timeLockMigrationTest ;;ueu(9da983498aba984ae0261e10013b6fc08e7d2351}(sha(9da983498aba984ae0261e10013b6fc08e7d2351node_idEC_kwDOAjP5fdoAKDlkYTk4MzQ5OGFiYTk4NGFlMDI2MWUxMDAxM2I2ZmMwOGU3ZDIzNTEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-08T16:27:30Zu	committer}(j GitHubj noreply@github.comj	 2023-06-08T16:27:30Zumessage[Antithesis | Range Queries] Part 1: Explicitly Identify Existing Actions As Single-Cell (#6604)

* Refactor TransactionActions to have explicitly named single cell variants

* broken tests

* CR feedback

* Spotlesstree}(j (82911407dd0be99e5e2b4724dec2eb5196944683url`https://api.github.com/repos/palantir/atlasdb/git/trees/82911407dd0be99e5e2b4724dec2eb5196944683uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9da983498aba984ae0261e10013b6fc08e7d2351
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkggFyCRBK7hj4Ov3rIwAAMjAIAAyBkx1uIatWT7lnJbBEVM5c
d3ilwc4AirsRAvhQiKlA89YHYD4S7g4bp9HU3gPMWamS1RZGeiOtzx7auUZIygWY
iVYNSTAMmQukR7WpjIvJ+kKeVemD0XqEpdlLdbc9A5jwff4035AsMPO1PJ9QnLk5
htWb3i9K6C/GGlTt+k7xgAZO5+C3Kw0PECzKNDwYgHU310DSQxCdZ2PQjUWxE2S+
rv/x50QGNlZnvd+9CSWMEvNAHY6QWe+VKcmB966KJtpUg83vHvLSV9JoRn0yoqh9
noR0EA6pImLzffQvM8yni7jq667PLp1H67zYDh7xXzdKVUDAvxfoAoKKMRIrqPA=
=n7YB
-----END PGP SIGNATURE-----
payloadX  tree 82911407dd0be99e5e2b4724dec2eb5196944683
parent f1ef11cad1dae47d0a34b10e019c62c89e94a01b
author Jeremy Kong <jkong@palantir.com> 1686241650 +0100
committer GitHub <noreply@github.com> 1686241650 +0100

[Antithesis | Range Queries] Part 1: Explicitly Identify Existing Actions As Single-Cell (#6604)

* Refactor TransactionActions to have explicitly named single cell variants

* broken tests

* CR feedback

* Spotlessuuj ^https://api.github.com/repos/palantir/atlasdb/commits/9da983498aba984ae0261e10013b6fc08e7d2351html_urlShttps://github.com/palantir/atlasdb/commit/9da983498aba984ae0261e10013b6fc08e7d2351comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9da983498aba984ae0261e10013b6fc08e7d2351/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j# https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j( web-flowj* J/j MDQ6VXNlcjE5ODY0NDQ3j, 4https://avatars.githubusercontent.com/u/19864447?v=4j. h5j %https://api.github.com/users/web-flowj# https://github.com/web-flowj1 /https://api.github.com/users/web-flow/followersj3 <https://api.github.com/users/web-flow/following{/other_user}j5 5https://api.github.com/users/web-flow/gists{/gist_id}j7 <https://api.github.com/users/web-flow/starred{/owner}{/repo}j9 3https://api.github.com/users/web-flow/subscriptionsj; *https://api.github.com/users/web-flow/orgsj= +https://api.github.com/users/web-flow/reposj? 6https://api.github.com/users/web-flow/events{/privacy}jA 5https://api.github.com/users/web-flow/received_eventsjC UserjE uparents]}(j (f1ef11cad1dae47d0a34b10e019c62c89e94a01bj ^https://api.github.com/repos/palantir/atlasdb/commits/f1ef11cad1dae47d0a34b10e019c62c89e94a01bj# Shttps://github.com/palantir/atlasdb/commit/f1ef11cad1dae47d0a34b10e019c62c89e94a01buastats}(totalK׌	additionsK	deletionsKDufiles](}(j (bd06cc1312715a991167d81bd1ceb940ff719fc1filenamepatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/DeleteTransactionAction.javastatusmodifiedj_ Kj` KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.java?ref=9da983498aba984ae0261e10013b6fc08e7d2351patchX{  @@ -22,7 +22,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface DeleteTransactionAction extends TransactionAction {
+public interface DeleteTransactionAction extends SingleCellTransactionAction {
 
     default WitnessedDeleteTransactionAction witness() {
         return ImmutableWitnessedDeleteTransactionAction.of(table(), cell());u}(j (e9ae2e08974eda0443281b98d5bc9d2fb9243eccje natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ReadTransactionAction.javajg modifiedj_ Kj` Kji Kjj https://github.com/palantir/atlasdb/blob/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javajl https://github.com/palantir/atlasdb/raw/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.java?ref=9da983498aba984ae0261e10013b6fc08e7d2351jp X  @@ -23,7 +23,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface ReadTransactionAction extends TransactionAction {
+public interface ReadTransactionAction extends SingleCellTransactionAction {
 
     default WitnessedReadTransactionAction witness(Optional<Integer> value) {
         return ImmutableWitnessedReadTransactionAction.of(table(), cell(), value);u}(j (47b25ab538c861987aa480e47c2bb08032e32fc0je tatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/SingleCellTransactionAction.javajg addedj_ Kj` K ji Kjj https://github.com/palantir/atlasdb/blob/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.javajl https://github.com/palantir/atlasdb/raw/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.java?ref=9da983498aba984ae0261e10013b6fc08e7d2351jp X>  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface SingleCellTransactionAction extends TransactionAction {
+    /** Table to apply transaction to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) to apply the action to. */
+    @Value.Parameter
+    WorkloadCell cell();
+}u}(j (e6ee57fa3732a9a1984c98b088bfc9a577a7fbe8je jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionAction.javajg modifiedj_ K j` Kji Kjj https://github.com/palantir/atlasdb/blob/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javajl https://github.com/palantir/atlasdb/raw/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.java?ref=9da983498aba984ae0261e10013b6fc08e7d2351jp X  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.WorkloadCell;
-import org.immutables.value.Value;
-
 public interface TransactionAction {
-
-    /** Table to apply transaction to. */
-    @Value.Parameter
-    String table();
-
-    /** Cell (Key, Column) to apply the action to. */
-    @Value.Parameter
-    WorkloadCell cell();
-
     <T> T accept(TransactionActionVisitor<T> visitor);
 }u}(j (7b9112fa4356eade1fb793e23ca54d962811ccfcje oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/WriteTransactionAction.javajg modifiedj_ Kj` Kji Kjj https://github.com/palantir/atlasdb/blob/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javajl https://github.com/palantir/atlasdb/raw/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.java?ref=9da983498aba984ae0261e10013b6fc08e7d2351jp X  @@ -22,7 +22,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WriteTransactionAction extends TransactionAction {
+public interface WriteTransactionAction extends SingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(j (2f66134a6e594e63bdba1ebec482177c03bd9220je atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedSingleCellTransactionAction.javajg addedj_ K"j` K ji K"jj https://github.com/palantir/atlasdb/blob/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.javajl https://github.com/palantir/atlasdb/raw/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.javajn X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.java?ref=9da983498aba984ae0261e10013b6fc08e7d2351jp XP  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.invariant.MismatchedValue;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedSingleCellTransactionAction extends InvalidWitnessedTransactionAction {
+    @Value.Parameter
+    WitnessedSingleCellTransactionAction action();
+
+    @Value.Parameter
+    MismatchedValue mismatchedValue();
+
+    static InvalidWitnessedSingleCellTransactionAction of(
+            WitnessedSingleCellTransactionAction action, MismatchedValue mismatchedValue) {
+        return ImmutableInvalidWitnessedSingleCellTransactionAction.of(action, mismatchedValue);
+    }
+}u}(j (f2fc56cca46a09c2ef718c3b7cb6b8d4000c1d8fje atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javajg modifiedj_ Kj` K
ji Kjj https://github.com/palantir/atlasdb/blob/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javajl https://github.com/palantir/atlasdb/raw/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=9da983498aba984ae0261e10013b6fc08e7d2351jp Xw  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.invariant.MismatchedValue;
-import org.immutables.value.Value;
-
-@Value.Immutable
 public interface InvalidWitnessedTransactionAction {
-    @Value.Parameter
-    WitnessedTransactionAction action();
-
-    @Value.Parameter
-    MismatchedValue mismatchedValue();
-
-    static InvalidWitnessedTransactionAction of(WitnessedTransactionAction action, MismatchedValue mismatchedValue) {
-        return ImmutableInvalidWitnessedTransactionAction.of(action, mismatchedValue);
-    }
+    // Marker interface
 }u}(j (664e279d4223b1f5897c5f45615e3cdbdaa71ac3je atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedDeleteTransactionAction.javajg modifiedj_ Kj` Kji Kjj https://github.com/palantir/atlasdb/blob/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javajl https://github.com/palantir/atlasdb/raw/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.java?ref=9da983498aba984ae0261e10013b6fc08e7d2351jp Xo  @@ -20,7 +20,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedDeleteTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedDeleteTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {u}(j (beff6229abcbdbf535af57c09c43ad7c92566201je atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedReadTransactionAction.javajg modifiedj_ Kj` Kji Kjj https://github.com/palantir/atlasdb/blob/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javajl https://github.com/palantir/atlasdb/raw/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.java?ref=9da983498aba984ae0261e10013b6fc08e7d2351jp X7  @@ -21,7 +21,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedReadTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedReadTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(j (eed34c03b4bd04c09374ca41608cb74986cb40c0je atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedSingleCellTransactionAction.javajg addedj_ Kj` K ji Kjj https://github.com/palantir/atlasdb/blob/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.javajl https://github.com/palantir/atlasdb/raw/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.java?ref=9da983498aba984ae0261e10013b6fc08e7d2351jp XW  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface WitnessedSingleCellTransactionAction extends WitnessedTransactionAction {
+    /** Table action was applied to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) the action applied to. */
+    @Value.Parameter
+    WorkloadCell cell();
+}u}(j (3e350184f320b0cd81f7019819c5d83c6a9d8602je }atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionAction.javajg modifiedj_ K j` Kji Kjj https://github.com/palantir/atlasdb/blob/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javajl https://github.com/palantir/atlasdb/raw/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.java?ref=9da983498aba984ae0261e10013b6fc08e7d2351jp X  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.store.WorkloadCell;
-import org.immutables.value.Value;
-
 public interface WitnessedTransactionAction {
-
-    /** Table action was applied to. */
-    @Value.Parameter
-    String table();
-
-    /** Cell (Key, Column) the action applied to. */
-    @Value.Parameter
-    WorkloadCell cell();
-
     <T> T accept(WitnessedTransactionActionVisitor<T> visitor);
 }u}(j (43687fd4d7dbdc3a1ac0ec26f2f38d0366613022je atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedWriteTransactionAction.javajg modifiedj_ Kj` Kji Kjj https://github.com/palantir/atlasdb/blob/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javajl https://github.com/palantir/atlasdb/raw/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.java?ref=9da983498aba984ae0261e10013b6fc08e7d2351jp X(  @@ -20,7 +20,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WitnessedWriteTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedWriteTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(j (6f71237c13ff13f35b9cad68086beac2fef6d892je hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javajg modifiedj_ Kj` Kji Kjj https://github.com/palantir/atlasdb/blob/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajl https://github.com/palantir/atlasdb/raw/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=9da983498aba984ae0261e10013b6fc08e7d2351jp X&  @@ -18,6 +18,7 @@
 
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
@@ -68,7 +69,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactio
                     .orElseGet(Optional::empty);
 
             if (!expectedValue.equals(readTransactionAction.value())) {
-                return Optional.of(InvalidWitnessedTransactionAction.of(
+                return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
                         readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expectedValue)));
             }
 u}(j (b9426a895989f6b4e308c1467756e3c730061c09je katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javajg modifiedj_ Kj` Kji K
jj https://github.com/palantir/atlasdb/blob/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajl https://github.com/palantir/atlasdb/raw/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=9da983498aba984ae0261e10013b6fc08e7d2351jp Xv  @@ -19,6 +19,7 @@
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
@@ -29,10 +30,10 @@
 
 /**
  * Replays transactions and validates for conflicts on the latest and read view.
- *
+ * <p>
  * The latest view will be a view of the database at the commit timestamp, while the read view will be the view of
  * the database at the start timestamp.
- *
+ * <p>
  * Objects created from this class should only be used within a scope of a single transaction.
  */
 final class SnapshotInvariantVisitor
@@ -57,7 +58,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactio
                         readTransactionAction.table(), readTransactionAction.cell(), readView)
                 .value();
         if (!expected.equals(readTransactionAction.value())) {
-            return Optional.of(InvalidWitnessedTransactionAction.of(
+            return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
                     readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expected)));
         }
         return Optional.empty();
@@ -67,7 +68,8 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactio
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
                         writeTransactionAction.table(), writeTransactionAction.cell())
-                .map(mismatchedValue -> InvalidWitnessedTransactionAction.of(writeTransactionAction, mismatchedValue));
+                .map(mismatchedValue ->
+                        InvalidWitnessedSingleCellTransactionAction.of(writeTransactionAction, mismatchedValue));
 
         applyWrites(
                 writeTransactionAction.table(),
@@ -80,7 +82,8 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransacti
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
                         deleteTransactionAction.table(), deleteTransactionAction.cell())
-                .map(mismatchedValue -> InvalidWitnessedTransactionAction.of(deleteTransactionAction, mismatchedValue));
+                .map(mismatchedValue ->
+                        InvalidWitnessedSingleCellTransactionAction.of(deleteTransactionAction, mismatchedValue));
 
         applyWrites(deleteTransactionAction.table(), deleteTransactionAction.cell(), Optional.empty());
         return invalidAction;u}(j (0db0afc0570e8993b0ec99aac00c3f57657d6828je latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javajg modifiedj_ K
j` Kji Kjj https://github.com/palantir/atlasdb/blob/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajl https://github.com/palantir/atlasdb/raw/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=9da983498aba984ae0261e10013b6fc08e7d2351jp X  @@ -22,6 +22,7 @@
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
@@ -116,13 +117,18 @@ public void catchesWriteSkew() {
         InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
                 Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
 
-        assertThat(invalidWitnessedTransactionAction.action())
-                .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
-                    assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
-                    assertThat(action.value()).contains(15);
-                });
-        assertThat(invalidWitnessedTransactionAction.mismatchedValue())
-                .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(
+                        InvalidWitnessedSingleCellTransactionAction.class,
+                        invalidSingleCellWitnessedTransactionAction -> {
+                            assertThat(invalidSingleCellWitnessedTransactionAction.action())
+                                    .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
+                                        assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
+                                        assertThat(action.value()).contains(15);
+                                    });
+                            assertThat(invalidSingleCellWitnessedTransactionAction.mismatchedValue())
+                                    .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+                        });
     }
 
     @Testu}(j (fb5813b8d5288d435a36c31b8acf757dd6e9083bje hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javajg modifiedj_ Kj` Kji Kjj https://github.com/palantir/atlasdb/blob/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javajl https://github.com/palantir/atlasdb/raw/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=9da983498aba984ae0261e10013b6fc08e7d2351jp X  @@ -22,6 +22,7 @@
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
 import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -62,10 +63,14 @@ public void catchesWriteWriteConflict() {
         assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
 
         InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
-        assertThat(invalidAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
-        assertThat(invalidAction.mismatchedValue())
-                .isEqualTo(MismatchedValue.of(
-                        ValueAndMaybeTimestamp.of(WorkloadTestHelpers.VALUE_ONE, 1L), ValueAndMaybeTimestamp.empty()));
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(InvalidWitnessedSingleCellTransactionAction.class, invalidSingleCellAction -> {
+                    assertThat(invalidSingleCellAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+                    assertThat(invalidSingleCellAction.mismatchedValue())
+                            .isEqualTo(MismatchedValue.of(
+                                    ValueAndMaybeTimestamp.of(WorkloadTestHelpers.VALUE_ONE, 1L),
+                                    ValueAndMaybeTimestamp.empty()));
+                });
     }
 
     @Test
@@ -90,10 +95,13 @@ public void catchesAbaWriteWriteConflictForDeletes() {
         assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
 
         InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
-        assertThat(invalidAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
-        assertThat(invalidAction.mismatchedValue())
-                .isEqualTo(MismatchedValue.of(
-                        ValueAndMaybeTimestamp.of(Optional.empty(), 1L), ValueAndMaybeTimestamp.empty()));
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(InvalidWitnessedSingleCellTransactionAction.class, invalidSingleCellAction -> {
+                    assertThat(invalidSingleCellAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+                    assertThat(invalidSingleCellAction.mismatchedValue())
+                            .isEqualTo(MismatchedValue.of(
+                                    ValueAndMaybeTimestamp.of(Optional.empty(), 1L), ValueAndMaybeTimestamp.empty()));
+                });
     }
 
     @Testu}(j (241e8471f3f2d7c765f6ff9e98e1c055938e3a50je matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowsTest.javajg modifiedj_ Kj` Kji Kjj https://github.com/palantir/atlasdb/blob/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javajl https://github.com/palantir/atlasdb/raw/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.java?ref=9da983498aba984ae0261e10013b6fc08e7d2351jp X  @@ -29,6 +29,7 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -77,9 +78,10 @@ public void transactionsDoNotConflictExcessively() {
     @Test
     public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
         WorkflowHistory workflowHistory = workflow.run();
-        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+        List<WitnessedSingleCellTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
                 .map(WitnessedTransaction::actions)
                 .flatMap(Collection::stream)
+                .map(WitnessedSingleCellTransactionAction.class::cast)
                 .collect(Collectors.toList());
         assertThat(witnessedTransactionActions)
                 .allMatch(action -> action.table().equals(TABLE_NAME));u}(j (67649f06c0f6d4e2b55d3a069e6c8885508b4385je latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javajg modifiedj_ Kj` Kji Kjj https://github.com/palantir/atlasdb/blob/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javajl https://github.com/palantir/atlasdb/raw/9da983498aba984ae0261e10013b6fc08e7d2351/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=9da983498aba984ae0261e10013b6fc08e7d2351jp Xp  @@ -310,11 +310,12 @@ private static TableAndWorkloadCell getPrimaryCellForSummaryCell(TableAndWorkloa
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(
             WitnessedTransactionAction action) {
         if (action instanceof WitnessedReadTransactionAction) {
-            if (action.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
-                return WitnessedReadTransactionAction.of(action.table(), action.cell(), Optional.empty());
+            WitnessedReadTransactionAction readAction = (WitnessedReadTransactionAction) action;
+            if (readAction.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
+                return WitnessedReadTransactionAction.of(readAction.table(), readAction.cell(), Optional.empty());
             } else {
                 return WitnessedReadTransactionAction.of(
-                        action.table(), action.cell(), Optional.of(TransientRowsWorkflows.VALUE));
+                        readAction.table(), readAction.cell(), Optional.of(TransientRowsWorkflows.VALUE));
             }
         } else {
             return action;ueu(1a3eb71f55c78f7cc34a54a4311b3f85ab7151b1}(sha(1a3eb71f55c78f7cc34a54a4311b3f85ab7151b1node_idEC_kwDOAjP5fdoAKDFhM2ViNzFmNTVjNzhmN2NjMzRhNTRhNDMxMWIzZjg1YWI3MTUxYjEcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-08-09T19:30:58Zu	committer}(j 
svc-changelogj svc-changelog@palantir.comj 2023-08-09T19:30:58ZumessageAdd generated changelog entriestree}(j (dd444fd62fe03f9f68042ec7d5439a9a5743eb70url`https://api.github.com/repos/palantir/atlasdb/git/trees/dd444fd62fe03f9f68042ec7d5439a9a5743eb70uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1a3eb71f55c78f7cc34a54a4311b3f85ab7151b1
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmTT6XIJEHYaJX37fAFQAAAKmAEAjCjTmx1tq87w31+ZOjz0WD+g
v39dqVoaru4Y2L7AGV4BAIa7jinOv35I0NfDvf7cFkaaFMjUwDyHMlRxQ9DrfIAu
=4QRe
-----END PGP SIGNATURE-----payloadX  tree dd444fd62fe03f9f68042ec7d5439a9a5743eb70
parent 2bb7bc4a58970df824ec3958117a5e1efaf6d75d
author svc-changelog <svc-changelog@palantir.com> 1691609458 +0000
committer svc-changelog <svc-changelog@palantir.com> 1691609458 +0000

Add generated changelog entriesuuj ^https://api.github.com/repos/palantir/atlasdb/commits/1a3eb71f55c78f7cc34a54a4311b3f85ab7151b1html_urlShttps://github.com/palantir/atlasdb/commit/1a3eb71f55c78f7cc34a54a4311b3f85ab7151b1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1a3eb71f55c78f7cc34a54a4311b3f85ab7151b1/commentsj }(login
svc-changelogidJ#j MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j *https://api.github.com/users/svc-changelogj"  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj
 }(j' 
svc-changelogj) J#j MDQ6VXNlcjg0MDc3NjAzj+ 4https://avatars.githubusercontent.com/u/84077603?v=4j- h5j *https://api.github.com/users/svc-changelogj"  https://github.com/svc-changelogj0 4https://api.github.com/users/svc-changelog/followersj2 Ahttps://api.github.com/users/svc-changelog/following{/other_user}j4 :https://api.github.com/users/svc-changelog/gists{/gist_id}j6 Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j8 8https://api.github.com/users/svc-changelog/subscriptionsj: /https://api.github.com/users/svc-changelog/orgsj< 0https://api.github.com/users/svc-changelog/reposj> ;https://api.github.com/users/svc-changelog/events{/privacy}j@ :https://api.github.com/users/svc-changelog/received_eventsjB UserjD uparents]}(j (2bb7bc4a58970df824ec3958117a5e1efaf6d75dj ^https://api.github.com/repos/palantir/atlasdb/commits/2bb7bc4a58970df824ec3958117a5e1efaf6d75dj" Shttps://github.com/palantir/atlasdb/commit/2bb7bc4a58970df824ec3958117a5e1efaf6d75duastats}(totalK	additionsK	deletionsK ufiles]}(j (987f0dd762ce39f024afacde8c1b043c791f3bfafilename$changelog/@unreleased/pr-6669.v2.ymlstatusaddedj^ Kj_ K changesKblob_url|https://github.com/palantir/atlasdb/blob/1a3eb71f55c78f7cc34a54a4311b3f85ab7151b1/changelog%2F%40unreleased%2Fpr-6669.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/1a3eb71f55c78f7cc34a54a4311b3f85ab7151b1/changelog%2F%40unreleased%2Fpr-6669.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6669.v2.yml?ref=1a3eb71f55c78f7cc34a54a4311b3f85ab7151b1patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add metadata to expectations metrics'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6669uau(3edc529e99246718dbc7e0f38df32119f57e1904}(sha(3edc529e99246718dbc7e0f38df32119f57e1904node_idEC_kwDOAjP5fdoAKDNlZGM1MjllOTkyNDY3MThkYmM3ZTBmMzhkZjMyMTE5ZjU3ZTE5MDQcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-07-26T10:23:28Zu	committer}(j{ 
Ahmed Alouanej} aalouane@palantir.comj 2023-07-26T10:23:28ZumessageMerge conflictstree}(js (054bac63beb76a51a27829d8adfdfd0b383bca68url`https://api.github.com/repos/palantir/atlasdb/git/trees/054bac63beb76a51a27829d8adfdfd0b383bca68uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3edc529e99246718dbc7e0f38df32119f57e1904
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmTA9CEACgkQPlMHVIT1
yhrGIQf9EpgdiVLtwfhoLEJnCr1X6AuN1BoczA9e+r/i5vVuB4MSdu3MN6EKMrsc
J9iIQSK/jjFlMfVpDhuywAizdNPfK+7Vrcvnbn/AO131wimEINe6Go+YyUbsLnX3
DimbamqL6dyH6VJgGsZoTZfdVodnH0kJBm7opT/achCLL/7k+YSxR/CTjxNo32yK
vh2+dNRDgAyiiR9Uko346bioZznt3zm4pSCZdkJJdd9RV62PQLzEwYKYO+En+H/K
29IPgnoX+zSUy/UJVxBt+k4PlCIAPyUbQ/iS6WKFa5hTWIIGtaeV36T9XufmeLZv
Mnyoui8XsN5DrhrxQSAMvmCERemLVQ==
=Vh6o
-----END PGP SIGNATURE-----payloadX  tree 054bac63beb76a51a27829d8adfdfd0b383bca68
parent 2116c40ff8c52d8fde537bc25b1b08b85162b17a
parent 69ef02d5a138f5b35e8bbf9b99608faa938874cf
author Ahmed Alouane <aalouane@palantir.com> 1690367008 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1690367008 +0100

Merge conflicts
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/3edc529e99246718dbc7e0f38df32119f57e1904html_urlShttps://github.com/palantir/atlasdb/commit/3edc529e99246718dbc7e0f38df32119f57e1904comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3edc529e99246718dbc7e0f38df32119f57e1904/commentsjy }(loginergo14idJju MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jju MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents](}(js (2116c40ff8c52d8fde537bc25b1b08b85162b17aj ^https://api.github.com/repos/palantir/atlasdb/commits/2116c40ff8c52d8fde537bc25b1b08b85162b17aj Shttps://github.com/palantir/atlasdb/commit/2116c40ff8c52d8fde537bc25b1b08b85162b17au}(js (69ef02d5a138f5b35e8bbf9b99608faa938874cfj ^https://api.github.com/repos/palantir/atlasdb/commits/69ef02d5a138f5b35e8bbf9b99608faa938874cfj Shttps://github.com/palantir/atlasdb/commit/69ef02d5a138f5b35e8bbf9b99608faa938874cfuestats}(totalM!	additionsM	deletionsMufiles](}(js (854555223c62aceef604d50b4a81b95af84187bcfilename.palantir/revapi.ymlstatusmodifiedj K>j K changesK>blob_urlhhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904patchX  @@ -121,3 +121,65 @@ acceptedBreaks:
       old: "method java.util.concurrent.ExecutorService com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService::createThreadPoolWihtoutSpans(java.lang.String,\
         \ int, int) @ com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl"
       justification: "Protected method"
+  "0.881.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter <T> long com.palantir.atlasdb.keyvalue.cassandra.thrift.ThriftObjectSizeUtils::getCollectionSize(java.util.Collection<T>,\
+        \ ===java.util.function.Function<T, java.lang.Long>===)"
+      new: "parameter <T> long com.palantir.atlasdb.keyvalue.cassandra.thrift.ThriftObjectSizeUtils::getCollectionSize(java.util.Collection<T>,\
+        \ ===java.util.function.ToLongFunction<T>===)"
+      justification: "Avoid autoboxing long to Long"
+  "0.899.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, ===com.palantir.atlasdb.util.MetricsManager===,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider)"
+      new: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, ===com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider===,\
+        \ java.util.function.Function<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
+        \ com.palantir.atlasdb.keyvalue.api.Value>, com.palantir.atlasdb.keyvalue.cassandra.ResultsExtractor<com.palantir.atlasdb.keyvalue.api.Value>>)"
+      justification: "Reuse notLatestVisibleValueCellFilterCounter"
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, com.palantir.atlasdb.util.MetricsManager,\
+        \ ===com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider===)"
+      new: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider,\
+        \ ===java.util.function.Function<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
+        \ com.palantir.atlasdb.keyvalue.api.Value>, com.palantir.atlasdb.keyvalue.cassandra.ResultsExtractor<com.palantir.atlasdb.keyvalue.api.Value>>===)"
+      justification: "Reuse notLatestVisibleValueCellFilterCounter"
+    - code: "java.method.removed"
+      old: "method com.codahale.metrics.Counter com.palantir.atlasdb.keyvalue.cassandra.ResultsExtractor<T>::getNotLatestVisibleValueCellFilterCounter(java.lang.Class<?>)"
+      justification: "Reuse notLatestVisibleValueCellFilterCounter"
+  "0.900.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.method.numberOfParametersChanged"
+      old: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.spi.AtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<com.palantir.atlasdb.config.LeaderConfig>, java.util.Optional<java.lang.String>,\
+        \ java.util.function.LongSupplier, boolean)"
+      new: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.spi.AtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<java.lang.String>, java.util.function.LongSupplier, boolean)"
+      justification: "all usage or implementations of the two broken methods are entirely\
+        \ at compile time of the consumer or within this repo itself"
+    - code: "java.method.numberOfParametersChanged"
+      old: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.timestamp.DbTimeLockFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ com.palantir.atlasdb.config.LeaderConfig, boolean)"
+      new: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.timestamp.DbTimeLockFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ boolean)"
+      justification: "all usage or implementations of the two broken methods are entirely\
+        \ at compile time of the consumer or within this repo itself"
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.numberOfParametersChanged"
+      old: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.cassandra.CassandraAtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<com.palantir.atlasdb.config.LeaderConfig>, java.util.Optional<java.lang.String>,\
+        \ java.util.function.LongSupplier, boolean)"
+      new: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.cassandra.CassandraAtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<java.lang.String>, java.util.function.LongSupplier, boolean)"
+      justification: "will only be a compile break at worst for users and consumers"u}(js (95c0afd59482612e75dcd14fb8ccaca826a94dfdj .policy.ymlj modifiedj Kj Kj Kj ]https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/.policy.ymlj \https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/.policy.ymlj ohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j Xe  @@ -48,20 +48,22 @@ approval_rules:
       permissions: ["admin", "maintain"]
     if:
       has_author_in:
-        users: [ "svc-excavator-bot" ]
+        users: [ "svc-excavator-bot", "dependabot[bot]" ]
 
   - name: excavator only touched baseline, circle, gradle files, godel files, generated code, go dependencies, docker-compose-rule config or versions.props
     requires:
       count: 0
     if:
       has_author_in:
-        users: [ "svc-excavator-bot" ]
+        users: [ "svc-excavator-bot", "dependabot[bot]" ]
       only_changed_files:
         # product-dependencies.lock should never go here, to force review of all product (SLS) dependency changes
         # this way excavator cannot change the deployability of a service or product via auto-merge
         paths:
           - "changelog/@unreleased/.*\\.yml"
           - "^\\.baseline/.*$"
+          - "^(.+/)?Cargo.toml$"
+          - "^Cargo.lock$"
           - "^\\.circleci/.*$"
           - "^\\.docker-compose-rule\\.yml$"
           - "^.*gradle$"
@@ -83,7 +85,7 @@ approval_rules:
           - "^internal/generated_src/.*"
           - "^gradle-baseline-java/src/main/resources/checkstyle.version$"
       has_valid_signatures_by_keys:
-        key_ids: ["C9AF124A484882E0"]
+        key_ids: ["C9AF124A484882E0", "4AEE18F83AFDEB23"]
 
   - name: excavator only touched config files
     requires:u}(js (64ceb8b5e885dd8fcf5ecc5cbb31964147a5e35dj Eatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/Cell.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCell.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCell.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCell.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -137,6 +137,9 @@ public boolean equals(Object obj) {
             return false;
         }
         Cell other = (Cell) obj;
+        if (this.hashCode != 0 && other.hashCode != 0 && this.hashCode != other.hashCode) {
+            return false;
+        }
         return Arrays.equals(rowName, other.rowName) && Arrays.equals(columnName, other.columnName);
     }
 
@@ -147,15 +150,17 @@ public int hashCode() {
          * accessed via hash collections, but computation can be expensive, and
          * allow for benign data races.
          */
-        if (hashCode == 0) {
+        int hash = this.hashCode;
+        if (hash == 0) {
             /*
              * This hashCode() implementation has a rather unfortunate case where it is always 0 if the row name and
              * the column name match. We did not want to change it to keep backwards compatibility.
              * See {@link CellReference#goodHash()}
              */
-            hashCode = Arrays.hashCode(rowName) ^ Arrays.hashCode(columnName);
+            hash = Arrays.hashCode(rowName) ^ Arrays.hashCode(columnName);
+            this.hashCode = hash;
         }
-        return hashCode;
+        return hash;
     }
 
     @Overrideu}(js (7e1fc418d0ab8950f7d0a2c8a9ed46fe72c28ab9j Patlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/KeyValueService.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -711,4 +711,11 @@ default boolean shouldTriggerCompactions() {
     default boolean isValid() {
         return true;
     }
+
+    @DoDelegate
+    default boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        // This is in general True, but we're setting to false to start rollout only for C* of stopping to check for
+        // immutable timestamp lock on non empty reads on thoroughly swept tables.
+        return false;
+    }
 }u}(js (b258440488d99978b8ead154e3fe2ac76efcff9fj Fatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/Value.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FValue.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FValue.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FValue.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X]  @@ -18,7 +18,6 @@
 import com.fasterxml.jackson.annotation.JsonCreator;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.google.common.base.Function;
-import com.google.common.base.MoreObjects;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.util.Measurable;
 import com.palantir.logsafe.Preconditions;
@@ -38,7 +37,7 @@ public final class Value implements Serializable, Measurable {
 
     @JsonCreator
     public static Value create(@JsonProperty("contents") byte[] contents, @JsonProperty("timestamp") long timestamp) {
-        return new Value(MoreObjects.firstNonNull(contents, PtBytes.EMPTY_BYTE_ARRAY), timestamp);
+        return new Value(Objects.requireNonNullElse(contents, PtBytes.EMPTY_BYTE_ARRAY), timestamp);
     }
 
     public static Value createWithCopyOfData(byte[] contents, long timestamp) {u}(js (5d19f29132dab0ef70f8e200712eb2df5ec1e0bbj Fatlasdb-api/src/main/java/com/palantir/atlasdb/spi/AtlasDbFactory.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fspi%2FAtlasDbFactory.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fspi%2FAtlasDbFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fspi%2FAtlasDbFactory.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -15,7 +15,6 @@
  */
 package com.palantir.atlasdb.spi;
 
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.util.MetricsManager;
@@ -44,7 +43,6 @@ public interface AtlasDbFactory {
      *
      * @param config Configuration file.
      * @param runtimeConfig Runtime configuration file.
-     * @param leaderConfig If the implementation supports it, the optional leader configuration.
      * @param namespace If the implementation supports it, this is the namespace to use when the namespace in config is
      * absent. If both are present, they must match.
      * @param freshTimestampSource If present, a source of fresh timestamps, which may be relevant for some KVS
@@ -57,7 +55,6 @@ KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> namespace,
             LongSupplier freshTimestampSource,
             boolean initializeAsync);u     }(js (3cae3192d54aa786e1fb095808e1aa9205897b46j Oatlasdb-api/src/main/java/com/palantir/atlasdb/timestamp/DbTimeLockFactory.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimestamp%2FDbTimeLockFactory.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimestamp%2FDbTimeLockFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimestamp%2FDbTimeLockFactory.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.timestamp;
 
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeriesProvider;
@@ -40,7 +39,6 @@ KeyValueService createRawKeyValueService(
             MetricsManager metricManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean initializeAsync);
 
     ManagedTimestampService createManagedTimestampService(u}(js (783bc3b5467ffef2ad1e64d4a8aefd0da4ee44ddj jatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/TransactionCommitLockInfo.javaj addedj K%j K j K%j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j Xg  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api.expectations;
+
+import org.immutables.value.Value;
+
+/**
+ * Data about the amount of commit locks requested by a transaction.
+ */
+@Value.Immutable
+public interface TransactionCommitLockInfo {
+
+    /**
+     * The number of cell-level locks requested as part of the commit protocol (excluding any user-defined locking).
+     */
+    long cellCommitLocksRequested();
+
+    /**
+     * The number of row-level locks requested as part of the commit protocol (excluding any user-defined locking).
+     * For write transactions, this includes the single row lock that is requested for the transaction table itself.
+     */
+    long rowCommitLocksRequested();
+}u}(js (22dc29e0664eb2fea2e0669bb248c2333fbefdd4j atlasdb-cassandra-integration-tests/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceIntegrationTest.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X=  @@ -709,6 +709,12 @@ public void testMultiCheckAndSetIndependentlyFails() {
         verifyMultiCheckAndSet(ImmutableMap.of(firstTestCell, val(0, 0), nextTestCell, val(0, 1)));
     }
 
+    @Test
+    public void cassandraHasStrictlyNonDecreasingSweep() {
+        assertThat(keyValueService.sweepsEntriesInStrictlyNonDecreasingFashion())
+                .isTrue();
+    }
+
     private void verifyMultiCheckAndSet(Map<Cell, byte[]> expectedValues) {
         Multimap<Cell, Long> timestamps = keyValueService.getAllTimestamps(TEST_TABLE, expectedValues.keySet(), 1L);
 u}(js (761bd91dae92d2e174e087990b60adf2c381cba3j [atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/CassandraAtlasDbFactory.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraAtlasDbFactory.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraAtlasDbFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraAtlasDbFactory.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueService;
@@ -48,7 +47,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> unused,
             Optional<String> namespace,
             LongSupplier freshTimestampSource,
             boolean initializeAsync) {u}(js (24eb78c9e781527756585d486a989cfa4d275af1j iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj modifiedj K$j Kj K4j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X40  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.keyvalue.cassandra;
 
+import com.codahale.metrics.Counter;
 import com.datastax.driver.core.exceptions.DriverInternalError;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Functions;
@@ -39,6 +40,7 @@
 import com.google.protobuf.ByteString;
 import com.palantir.async.initializer.AsyncInitializer;
 import com.palantir.atlasdb.AtlasDbConstants;
+import com.palantir.atlasdb.AtlasDbMetricNames.CellFilterMetrics;
 import com.palantir.atlasdb.CassandraTopologyValidationMetrics;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
@@ -71,6 +73,7 @@
 import com.palantir.atlasdb.keyvalue.api.TimestampRangeDelete;
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolImpl.StartupChecks;
+import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServices.ColumnAndTimestamp;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServices.StartTsResultsCollector;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraVerifier.CassandraVerifierConfig;
 import com.palantir.atlasdb.keyvalue.cassandra.RowColumnRangeExtractor.RowColumnRangeResult;
@@ -109,7 +112,6 @@
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
-import com.palantir.util.Pair;
 import com.palantir.util.paging.AbstractPagingIterable;
 import com.palantir.util.paging.SimpleTokenBackedResultsPage;
 import com.palantir.util.paging.TokenBackedBasicResultsPage;
@@ -130,6 +132,7 @@
 import java.util.Set;
 import java.util.concurrent.Callable;
 import java.util.concurrent.ExecutorService;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 import java.util.stream.StreamSupport;
@@ -245,6 +248,7 @@ public void close() {
     private final CassandraMutationTimestampProvider mutationTimestampProvider;
     private final Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig;
     private final CassandraVerifierConfig verifierConfig;
+    private final Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory;
 
     public static CassandraKeyValueService createForTesting(
             CassandraKeyValueServiceConfig config, Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig) {
@@ -412,14 +416,19 @@ private static CassandraKeyValueService createAndInitialize(
             CassandraMutationTimestampProvider mutationTimestampProvider,
             Logger log,
             boolean initializeAsync) {
+        Counter notLatestVisibleValueCellFilterCounter = // register counter once and reuse
+                metricsManager.registerOrGetCounter(ValueExtractor.class, CellFilterMetrics.NOT_LATEST_VISIBLE_VALUE);
+        Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory = cellValueMap ->
+                new ValueExtractor(metricsManager, cellValueMap, notLatestVisibleValueCellFilterCounter);
         CassandraKeyValueServiceImpl keyValueService = new CassandraKeyValueServiceImpl(
                 log,
                 metricsManager,
                 config,
                 asyncKeyValueService,
                 runtimeConfig,
                 clientPool,
-                mutationTimestampProvider);
+                mutationTimestampProvider,
+                extractorFactory);
         keyValueService.wrapper.initialize(initializeAsync);
         return keyValueService.wrapper.isInitialized() ? keyValueService : keyValueService.wrapper;
     }
@@ -431,7 +440,8 @@ private CassandraKeyValueServiceImpl(
             AsyncKeyValueService asyncKeyValueService,
             Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig,
             CassandraClientPool clientPool,
-            CassandraMutationTimestampProvider mutationTimestampProvider) {
+            CassandraMutationTimestampProvider mutationTimestampProvider,
+            Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory) {
         super(createBlockingThreadpool(config, runtimeConfig.get().servers(), metricsManager));
         this.log = log;
         this.metricsManager = metricsManager;
@@ -444,7 +454,7 @@ private CassandraKeyValueServiceImpl(
         this.cassandraTables = new CassandraTables(clientPool, config);
         this.taskRunner = new TaskRunner(executor);
         this.cellLoader = CellLoader.create(clientPool, wrappingQueryRunner, taskRunner, runtimeConfig);
-        this.rangeLoader = new RangeLoader(clientPool, queryRunner, metricsManager, readConsistencyProvider);
+        this.rangeLoader = new RangeLoader(clientPool, queryRunner, readConsistencyProvider, extractorFactory);
         this.cellValuePutter = new CellValuePutter(
                 runtimeConfig,
                 clientPool,
@@ -459,6 +469,7 @@ private CassandraKeyValueServiceImpl(
                 new CassandraTableDropper(config, clientPool, tableMetadata, cassandraTableTruncator);
         this.runtimeConfig = runtimeConfig;
         this.verifierConfig = CassandraVerifierConfig.of(config, runtimeConfig.get());
+        this.extractorFactory = extractorFactory;
     }
 
     private static ExecutorService createBlockingThreadpool(
@@ -674,7 +685,7 @@ private Map<Cell, Value> getAllCellsForRows(
                     .collect(Collectors.toList());
         }
 
-        ValueExtractor extractor = new ValueExtractor(metricsManager, Maps.newHashMapWithExpectedSize(result.size()));
+        ResultsExtractor<Value> extractor = extractorFactory.apply(Maps.newHashMapWithExpectedSize(result.size()));
         extractor.extractResults(Multimaps.asMap(result), startTs, ColumnSelection.all());
         return extractor.asMap();
     }
@@ -731,9 +742,9 @@ private SlicePredicate getNextLexicographicalSlicePredicate(List<ColumnOrSuperCo
         Preconditions.checkState(!columns.isEmpty(), "Columns was empty. This is probably an AtlasDb bug");
 
         Column lastColumn = columns.get(columns.size() - 1).getColumn();
-        Pair<byte[], Long> columnNameAndTimestamp = CassandraKeyValueServices.decompose(lastColumn.name);
+        ColumnAndTimestamp columnNameAndTimestamp = CassandraKeyValueServices.decomposeColumn(lastColumn.name);
         ByteBuffer nextLexicographicColumn = CassandraKeyValueServices.makeCompositeBuffer(
-                RangeRequests.nextLexicographicName(columnNameAndTimestamp.lhSide), Long.MAX_VALUE);
+                RangeRequests.nextLexicographicName(columnNameAndTimestamp.columnName()), Long.MAX_VALUE);
 
         return SlicePredicates.create(
                 Range.of(nextLexicographicColumn, Range.UNBOUND_END),
@@ -760,7 +771,7 @@ private Map<Cell, Value> getRowsForSpecificColumns(
             }
         }
 
-        StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, startTs);
+        StartTsResultsCollector collector = new StartTsResultsCollector(startTs, extractorFactory);
         cellLoader.loadWithTs(
                 "getRows",
                 tableRef,
@@ -804,7 +815,7 @@ public Map<Cell, Value> get(TableReference tableRef, Map<Cell, Long> timestampBy
                     Multimaps.invertFrom(Multimaps.forMap(timestampByCell), HashMultimap.create());
             ImmutableMap.Builder<Cell, Value> builder = ImmutableMap.builder();
             for (long ts : cellsByTs.keySet()) {
-                StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, ts);
+                StartTsResultsCollector collector = new StartTsResultsCollector(ts, extractorFactory);
                 cellLoader.loadWithTs(
                         "get",
                         tableRef,
@@ -823,7 +834,7 @@ public Map<Cell, Value> get(TableReference tableRef, Map<Cell, Long> timestampBy
 
     private Map<Cell, Value> get(
             String kvsMethodName, TableReference tableRef, Set<Cell> cells, long maxTimestampExclusive) {
-        StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, maxTimestampExclusive);
+        StartTsResultsCollector collector = new StartTsResultsCollector(maxTimestampExclusive, extractorFactory);
         cellLoader.loadWithTs(
                 kvsMethodName,
                 tableRef,
@@ -897,8 +908,8 @@ private Map<byte[], RowColumnRangeIterator> getRowsColumnRangeIteratorForSingleH
             IdentityHashMap<byte[], byte[]> incompleteRowsToNextColumns = new IdentityHashMap<>();
             for (Map.Entry<byte[], Column> e : rowsToLastCompositeColumns.entrySet()) {
                 byte[] row = e.getKey();
-                byte[] col =
-                        CassandraKeyValueServices.decomposeName(e.getValue()).getLhSide();
+                byte[] col = CassandraKeyValueServices.decomposeColumnName(e.getValue())
+                        .columnName();
                 // If we read a version of the cell before our start timestamp, it will be the most recent version
                 // readable to us and we can continue to the next column. Otherwise we have to continue reading
                 // this column.
@@ -1048,8 +1059,9 @@ public TokenBackedBasicResultsPage<Map.Entry<Cell, Value>, byte[]> apply(
                                                 .getResults()
                                                 .getOrDefault(row, Collections.emptyMap());
                                         ColumnOrSuperColumn lastColumn = values.get(values.size() - 1);
-                                        byte[] lastCol = CassandraKeyValueServices.decomposeName(lastColumn.getColumn())
-                                                .getLhSide();
+                                        byte[] lastCol = CassandraKeyValueServices.decomposeColumnName(
+                                                        lastColumn.getColumn())
+                                                .columnName();
                                         // Same idea as the getRows case to handle seeing only newer entries of a column
                                         boolean completedCell = ret.get(Cell.create(row, lastCol)) != null;
                                         if (isEndOfColumnRange(
@@ -1868,7 +1880,8 @@ public void putUnlessExists(final TableReference tableRef, final Map<Cell, byte[
                                 casResult.getCurrent_values().stream()
                                         .map(column -> Cell.create(
                                                 partition.getKey().toByteArray(),
-                                                CassandraKeyValueServices.decompose(column.bufferForName()).lhSide))
+                                                CassandraKeyValueServices.decomposeColumn(column.bufferForName())
+                                                        .columnName()))
                                         .collect(Collectors.toList())));
                     }
                 }
@@ -2001,7 +2014,9 @@ public void multiCheckAndSet(MultiCheckAndSetRequest request) throws MultiCheckA
             if (!casResult.isSuccess()) {
                 Map<Cell, byte[]> currentValues = KeyedStream.of(casResult.getCurrent_values())
                         .mapKeys(column -> Cell.create(
-                                request.rowName(), CassandraKeyValueServices.decompose(column.bufferForName()).lhSide))
+                                request.rowName(),
+                                CassandraKeyValueServices.decomposeColumn(column.bufferForName())
+                                        .columnName()))
                         .map(Column::getValue)
                         .collectToMap();
 
@@ -2033,6 +2048,11 @@ public ClusterAvailabilityStatus getClusterAvailabilityStatus() {
         return clusterStatus;
     }
 
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return true;
+    }
+
     private static boolean isClusterQuorumAvaialble(ClusterAvailabilityStatus clusterStatus) {
         return clusterStatus.equals(ClusterAvailabilityStatus.ALL_AVAILABLE)
                 || clusterStatus.equals(ClusterAvailabilityStatus.QUORUM_AVAILABLE);u}(js (0df00981272b5a894f62dbd3c588bdc01a9c6a86j fatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServices.javaj modifiedj Kdj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XA/  @@ -28,15 +28,14 @@
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.table.description.TableMetadata;
-import com.palantir.atlasdb.util.MetricsManager;
-import com.palantir.common.annotation.Output;
 import com.palantir.common.base.RunnableCheckedException;
 import com.palantir.common.base.Throwables;
 import com.palantir.common.visitor.Visitor;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.util.Pair;
+import com.palantir.util.io.AvailabilityRequirement;
 import java.nio.ByteBuffer;
 import java.nio.ByteOrder;
 import java.nio.charset.Charset;
@@ -49,6 +48,7 @@
 import java.util.Optional;
 import java.util.UUID;
 import java.util.concurrent.ConcurrentHashMap;
+import java.util.function.Function;
 import java.util.stream.Collectors;
 import org.apache.cassandra.thrift.CfDef;
 import org.apache.cassandra.thrift.Column;
@@ -67,9 +67,16 @@ private CassandraKeyValueServices() {
         // Utility class
     }
 
+    static void waitForSchemaVersions(
+            int schemaMutationTimeMillis, CassandraClient client, String unsafeSchemaChangeDescription)
+            throws TException {
+        waitForSchemaVersions(
+                schemaMutationTimeMillis, client, unsafeSchemaChangeDescription, AvailabilityRequirement.QUORUM);
+    }
+
     /**
-     * Attempt to wait until a quorum of nodes has reached consensus on a schema version, and it is known that no
-     * other nodes currently disagree with this quorum.
+     * Attempt to wait until the specified number of nodes are available and there are no disagreements on schema
+     * version.
      * <p>
      * The goals of this method include:
      * <ol>
@@ -78,23 +85,30 @@ private CassandraKeyValueServices() {
      *         Cassandra can more efficiently come to agreement.
      *     </li>
      *     <li>
-     *         Avoid performing schema mutations if they could potentially cause a split-brain in terms of how the
-     *         schema evolves. This is achieved by ensuring a quorum of reachable nodes agree on the version. There
-     *         is of course a check-then-act race condition, but Cassandra is able to eventually recover.
+     *         Avoid performing schema mutations if our availability requirements are not met. This is to prevent a
+     *         split-brain situation in respect to the schema. While this _should_ be a safe state to be in, there is
+     *         little-to-no risk to availability for waiting for consensus and availability. If the specified
+     *         availability requirements are not met, then it is very likely Cassandra is in an outage anyways, which
+     *         means it is ok for a service to not start up. There is of course a check-then-act race condition, but
+     *         Cassandra is able to eventually recover.
      *     </li>
      *     <li>
      *         Allowing schema mutations to take place in the presence of failures (the KVS needs to be able to
      *         tolerate a limited number of Cassandra node-level failures).
      *     </li>
      * </ol>
      *
-     * @param schemaMutationTimeMillis      time to wait for nodes' schema versions to match.
+     * @param schemaMutationTimeMillis      Time to wait for nodes' schema versions to match.
      * @param client                        Cassandra client.
-     * @param unsafeSchemaChangeDescription description of the schema change that was performed prior to this check.
+     * @param unsafeSchemaChangeDescription Description of the schema change that was performed prior to this check.
+     * @param availabilityRequirement       Number of Cassandra nodes that must be reachable for schema consensus.
      * @throws IllegalStateException if we wait for more than schemaMutationTimeoutMillis specified in config.
      */
     static void waitForSchemaVersions(
-            int schemaMutationTimeMillis, CassandraClient client, String unsafeSchemaChangeDescription)
+            int schemaMutationTimeMillis,
+            CassandraClient client,
+            String unsafeSchemaChangeDescription,
+            AvailabilityRequirement availabilityRequirement)
             throws TException {
         long start = System.currentTimeMillis();
         long sleepTime = INITIAL_SLEEP_TIME;
@@ -103,7 +117,7 @@ static void waitForSchemaVersions(
             // This may only include some of the nodes if the coordinator hasn't shaken hands with someone; however,
             // this existed largely as a defense against performance issues with concurrent schema modifications.
             versions = client.describe_schema_versions();
-            if (majorityOfClusterHasConsistentSchemaVersionAndNoDivergentNodes(versions)) {
+            if (clusterSatisfiesAvailabilityRequirementAndNoDivergentSchemas(versions, availabilityRequirement)) {
                 return;
             }
             sleepTime = sleepAndGetNextBackoffTime(sleepTime);
@@ -149,8 +163,8 @@ static void runWithWaitingForSchemas(
         waitForSchemaVersions(config.schemaMutationTimeoutMillis(), client, "after " + unsafeSchemaChangeDescription);
     }
 
-    private static boolean majorityOfClusterHasConsistentSchemaVersionAndNoDivergentNodes(
-            Map<String, List<String>> versions) {
+    private static boolean clusterSatisfiesAvailabilityRequirementAndNoDivergentSchemas(
+            Map<String, List<String>> versions, AvailabilityRequirement availabilityRequirement) {
         if (getDistinctReachableSchemas(versions).size() != 1) {
             return false;
         }
@@ -159,7 +173,8 @@ private static boolean majorityOfClusterHasConsistentSchemaVersionAndNoDivergent
         int numUnreachableNodes = Optional.ofNullable(versions.get(VERSION_UNREACHABLE))
                 .map(List::size)
                 .orElse(0);
-        return totalNodes - numUnreachableNodes >= (totalNodes / 2) + 1;
+        int availableNodes = totalNodes - numUnreachableNodes;
+        return availabilityRequirement.satisfies(availableNodes, totalNodes);
     }
 
     private static List<String> getDistinctReachableSchemas(Map<String, List<String>> versions) {
@@ -229,7 +244,16 @@ public static ByteBuffer makeCompositeBuffer(byte[] colName, long positiveTimest
         return buffer;
     }
 
+    /**
+     * @deprecated use {@link #decomposeColumn(ByteBuffer)}
+     */
+    @Deprecated
     static Pair<byte[], Long> decompose(ByteBuffer inputComposite) {
+        ColumnAndTimestamp columnAndTimestamp = decomposeColumn(inputComposite);
+        return Pair.create(columnAndTimestamp.columnName(), columnAndTimestamp.timestamp());
+    }
+
+    static ColumnAndTimestamp decomposeColumn(ByteBuffer inputComposite) {
         ByteBuffer composite = inputComposite.slice().order(ByteOrder.BIG_ENDIAN);
 
         short len = composite.getShort();
@@ -243,14 +267,23 @@ static Pair<byte[], Long> decompose(ByteBuffer inputComposite) {
         com.palantir.logsafe.Preconditions.checkArgument(shouldBe8 == 8);
         long ts = composite.getLong();
 
-        return Pair.create(colName, ~ts);
+        return new ColumnAndTimestamp(colName, ~ts);
+    }
+
+    /**
+     * @deprecated use {@link #decomposeColumnName(Column)}
+     */
+    @Deprecated
+    public static Pair<byte[], Long> decomposeName(Column column) {
+        ColumnAndTimestamp columnAndTimestamp = decomposeColumnName(column);
+        return Pair.create(columnAndTimestamp.columnName(), columnAndTimestamp.timestamp());
     }
 
     /**
      * Convenience method to get the name buffer for the specified column and
      * decompose it into the name and timestamp.
      */
-    public static Pair<byte[], Long> decomposeName(Column column) {
+    public static ColumnAndTimestamp decomposeColumnName(Column column) {
         ByteBuffer nameBuffer;
         if (column.isSetName()) {
             nameBuffer = column.bufferForName();
@@ -260,7 +293,7 @@ public static Pair<byte[], Long> decomposeName(Column column) {
             // the transform to bytes and wrap ourselves
             nameBuffer = ByteBuffer.wrap(column.getName());
         }
-        return decompose(nameBuffer);
+        return decomposeColumn(nameBuffer);
     }
 
     public static byte[] getBytesFromByteBuffer(ByteBuffer buffer) {
@@ -375,11 +408,11 @@ interface ThreadSafeResultVisitor extends Visitor<Map<ByteBuffer, List<ColumnOrS
 
     static class StartTsResultsCollector implements ThreadSafeResultVisitor {
         private final Map<Cell, Value> collectedResults = new ConcurrentHashMap<>();
-        private final ValueExtractor extractor;
+        private final ResultsExtractor<Value> extractor;
         private final long startTs;
 
-        StartTsResultsCollector(MetricsManager metricsManager, long startTs) {
-            this.extractor = new ValueExtractor(metricsManager, collectedResults);
+        StartTsResultsCollector(long startTs, Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory) {
+            this.extractor = extractorFactory.apply(collectedResults);
             this.startTs = startTs;
         }
 
@@ -402,17 +435,13 @@ public Multimap<Cell, Long> getCollectedResults() {
 
         @Override
         public synchronized void visit(Map<ByteBuffer, List<ColumnOrSuperColumn>> results) {
-            extractTimestampResults(collectedResults, results);
-        }
-    }
-
-    private static void extractTimestampResults(
-            @Output Multimap<Cell, Long> ret, Map<ByteBuffer, List<ColumnOrSuperColumn>> results) {
-        for (Map.Entry<ByteBuffer, List<ColumnOrSuperColumn>> result : results.entrySet()) {
-            byte[] row = CassandraKeyValueServices.getBytesFromByteBuffer(result.getKey());
-            for (ColumnOrSuperColumn col : result.getValue()) {
-                Pair<byte[], Long> pair = CassandraKeyValueServices.decomposeName(col.column);
-                ret.put(Cell.create(row, pair.lhSide), pair.rhSide);
+            for (Map.Entry<ByteBuffer, List<ColumnOrSuperColumn>> result : results.entrySet()) {
+                byte[] row = CassandraKeyValueServices.getBytesFromByteBuffer(result.getKey());
+                for (ColumnOrSuperColumn col : result.getValue()) {
+                    ColumnAndTimestamp columnAndTimestamp = CassandraKeyValueServices.decomposeColumnName(col.column);
+                    Cell cell = Cell.create(row, columnAndTimestamp.columnName());
+                    collectedResults.put(cell, columnAndTimestamp.timestamp());
+                }
             }
         }
     }
@@ -429,4 +458,44 @@ static TableMetadata getMetadataOrDefaultToGeneric(byte[] metadata) {
         }
         return TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(metadata);
     }
+
+    public static class ColumnAndTimestamp {
+        private final long timestamp;
+        private final byte[] columnName;
+
+        ColumnAndTimestamp(byte[] columnName, long timestamp) {
+            this.columnName = columnName;
+            this.timestamp = timestamp;
+        }
+
+        public byte[] columnName() {
+            return columnName;
+        }
+
+        public long timestamp() {
+            return timestamp;
+        }
+
+        @Override
+        public boolean equals(Object obj) {
+            if (this == obj) {
+                return true;
+            }
+            if (obj == null || getClass() != obj.getClass()) {
+                return false;
+            }
+            ColumnAndTimestamp that = (ColumnAndTimestamp) obj;
+            return timestamp == that.timestamp && Arrays.equals(columnName, that.columnName);
+        }
+
+        @Override
+        public int hashCode() {
+            return 31 * Long.hashCode(timestamp) + Arrays.hashCode(columnName);
+        }
+
+        @Override
+        public String toString() {
+            return "ColumnAndTimestamp{columnName=" + Arrays.toString(columnName) + ", timestamp=" + timestamp + '}';
+        }
+    }
 }u}(js (5401bf3d0166157025601435b19f8490ce4f1643j ^atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraVerifier.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X
  @@ -40,6 +40,7 @@
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.util.io.AvailabilityRequirement;
 import java.net.InetSocketAddress;
 import java.time.Duration;
 import java.util.HashSet;
@@ -238,25 +239,36 @@ private static boolean attemptToCreateIfNotExists(InetSocketAddress host, Cassan
         }
     }
 
+    @VisibleForTesting
     // swallows the expected TException subtype NotFoundException, throws connection problem related ones
-    private static boolean keyspaceAlreadyExists(CassandraServer host, CassandraVerifierConfig verifierConfig)
+    static boolean keyspaceAlreadyExists(CassandraClient client, CassandraVerifierConfig verifierConfig)
             throws TException {
-        try (CassandraClient client = CassandraClientFactory.getClientInternal(host, verifierConfig.clientConfig())) {
+        try {
             client.describe_keyspace(verifierConfig.keyspace());
             CassandraKeyValueServices.waitForSchemaVersions(
                     verifierConfig.schemaMutationTimeoutMillis(),
                     client,
-                    "while checking if schemas diverged on startup");
+                    "while checking if schemas diverged on startup",
+                    AvailabilityRequirement.ANY);
             return true;
         } catch (NotFoundException e) {
             return false;
         }
     }
 
+    private static boolean keyspaceAlreadyExists(CassandraServer host, CassandraVerifierConfig verifierConfig)
+            throws TException {
+        try (CassandraClient client = CassandraClientFactory.getClientInternal(host, verifierConfig.clientConfig())) {
+            return keyspaceAlreadyExists(client, verifierConfig);
+        }
+    }
+
     private static boolean attemptToCreateKeyspaceOnHost(CassandraServer host, CassandraVerifierConfig verifierConfig)
             throws TException {
         try (CassandraClient client = CassandraClientFactory.getClientInternal(host, verifierConfig.clientConfig())) {
             KsDef ksDef = createKsDefForFresh(client, verifierConfig);
+            CassandraKeyValueServices.waitForSchemaVersions(
+                    verifierConfig.schemaMutationTimeoutMillis(), client, "before adding the initial empty keyspace");
             client.system_add_keyspace(ksDef);
             log.info("Created keyspace: {}", SafeArg.of("keyspace", verifierConfig.keyspace()));
             CassandraKeyValueServices.waitForSchemaVersions(u}(js (ed0533b540582038a030e5a294c22806773961e9j Watlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CellLoader.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCellLoader.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCellLoader.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCellLoader.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -33,6 +33,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.tracing.CloseableTracer;
+import com.palantir.tracing.Tracer;
 import java.nio.ByteBuffer;
 import java.util.AbstractList;
 import java.util.ArrayList;
@@ -95,17 +96,19 @@ void loadWithTs(
             CassandraKeyValueServices.ThreadSafeResultVisitor visitor,
             ConsistencyLevel consistency) {
         Map<CassandraServer, List<Cell>> hostsAndCells;
-        try (CloseableTracer tracer = CloseableTracer.startSpan(
-                "loadWithTs.partitionByHost",
-                ImmutableMap.of(
+
+        ImmutableMap<String, String> traceContext = Tracer.hasUnobservableTrace()
+                ? ImmutableMap.of()
+                : ImmutableMap.of(
                         "cells",
                         String.valueOf(cells.size()),
                         "tableRef",
                         LoggingArgs.safeInternalTableNameOrPlaceholder(tableRef.toString()),
                         "timestampClause",
                         loadAllTs ? "for all timestamps " : "",
                         "startTs",
-                        String.valueOf(startTs)))) {
+                        String.valueOf(startTs));
+        try (CloseableTracer tracer = CloseableTracer.startSpan("loadWithTs.partitionByHost", traceContext)) {
             hostsAndCells = HostPartitioner.partitionByHost(clientPool, cells, Cell::getRowName);
         }
         int totalPartitions = hostsAndCells.keySet().size();u}(js (ee1124347a96b3aab3852646e5590f8594bf42d5j Xatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/RangeLoader.javaj modifiedj K	j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRangeLoader.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRangeLoader.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRangeLoader.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.keyvalue.cassandra;
 
 import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.RangeRequest;
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
@@ -26,31 +27,33 @@
 import com.palantir.atlasdb.keyvalue.cassandra.paging.RowGetter;
 import com.palantir.atlasdb.keyvalue.cassandra.paging.ThriftColumnGetter;
 import com.palantir.atlasdb.keyvalue.cassandra.thrift.SlicePredicates;
-import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.base.ClosableIterator;
 import com.palantir.common.base.ClosableIterators;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import org.apache.cassandra.thrift.SlicePredicate;
 
 public class RangeLoader {
     private final CassandraClientPool clientPool;
     private final TracingQueryRunner queryRunner;
-    private final MetricsManager metricsManager;
     private final ReadConsistencyProvider readConsistencyProvider;
+    private final Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory;
 
     public RangeLoader(
             CassandraClientPool clientPool,
             TracingQueryRunner queryRunner,
-            MetricsManager metricsManager,
-            ReadConsistencyProvider readConsistencyProvider) {
+            ReadConsistencyProvider readConsistencyProvider,
+            Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory) {
         this.clientPool = clientPool;
         this.queryRunner = queryRunner;
-        this.metricsManager = metricsManager;
         this.readConsistencyProvider = readConsistencyProvider;
+        this.extractorFactory = extractorFactory;
     }
 
     public ClosableIterator<RowResult<Value>> getRange(TableReference tableRef, RangeRequest rangeRequest, long ts) {
-        return getRangeWithPageCreator(tableRef, rangeRequest, ts, () -> ValueExtractor.create(metricsManager));
+        return getRangeWithPageCreator(tableRef, rangeRequest, ts, () -> extractorFactory.apply(new HashMap<>()));
     }
 
     private <T> ClosableIterator<RowResult<T>> getRangeWithPageCreator(u}(js (3f88196e3d17fc4d5eb62f8e206fd5336c9fac30j ]atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/ResultsExtractor.javaj modifiedj K
j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X3
  @@ -15,18 +15,16 @@
  */
 package com.palantir.atlasdb.keyvalue.cassandra;
 
-import com.codahale.metrics.Counter;
-import com.palantir.atlasdb.AtlasDbMetricNames;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.ColumnSelection;
 import com.palantir.atlasdb.keyvalue.api.RangeRequests;
 import com.palantir.atlasdb.keyvalue.api.RowResult;
+import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServices.ColumnAndTimestamp;
 import com.palantir.atlasdb.keyvalue.impl.Cells;
 import com.palantir.atlasdb.keyvalue.impl.RowResults;
 import com.palantir.atlasdb.tracing.TraceStatistics;
 import com.palantir.atlasdb.util.MetricsManager;
-import com.palantir.util.Pair;
 import com.palantir.util.paging.SimpleTokenBackedResultsPage;
 import com.palantir.util.paging.TokenBackedBasicResultsPage;
 import java.nio.ByteBuffer;
@@ -55,14 +53,20 @@ public final byte[] extractResults(
             maxRow = updatedMaxRow(maxRow, row);
 
             for (ColumnOrSuperColumn c : colEntry.getValue()) {
-                Pair<byte[], Long> pair = CassandraKeyValueServices.decomposeName(c.getColumn());
+                ColumnAndTimestamp columnAndTimestamp = CassandraKeyValueServices.decomposeColumnName(c.getColumn());
                 byte[] value = c.getColumn().getValue();
 
                 // Read the value & the column name size; we're not currently trying to model all the overheads
-                TraceStatistics.incBytesRead(pair.lhSide);
+                TraceStatistics.incBytesRead(columnAndTimestamp.columnName());
                 TraceStatistics.incBytesRead(value);
 
-                internalExtractResult(startTs, selection, row, pair.lhSide, value, pair.rhSide);
+                internalExtractResult(
+                        startTs,
+                        selection,
+                        row,
+                        columnAndTimestamp.columnName(),
+                        value,
+                        columnAndTimestamp.timestamp());
             }
         }
         return maxRow;
@@ -103,10 +107,4 @@ public abstract void internalExtractResult(
             long startTs, ColumnSelection selection, byte[] row, byte[] col, byte[] val, long ts);
 
     public abstract Map<Cell, T> asMap();
-
-    protected Counter getNotLatestVisibleValueCellFilterCounter(Class<?> clazz) {
-        // TODO(hsaraogi): add table names as a tag
-        return metricsManager.registerOrGetCounter(
-                clazz, AtlasDbMetricNames.CellFilterMetrics.NOT_LATEST_VISIBLE_VALUE);
-    }
 }u}(js (99a083b77cf802540499e0f29bf3af47ae1ea5f4j datlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/RowColumnRangeExtractor.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRowColumnRangeExtractor.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRowColumnRangeExtractor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRowColumnRangeExtractor.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -21,9 +21,9 @@
 import com.palantir.atlasdb.AtlasDbMetricNames.CellFilterMetrics;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.Value;
+import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServices.ColumnAndTimestamp;
 import com.palantir.atlasdb.tracing.TraceStatistics;
 import com.palantir.atlasdb.util.MetricsManager;
-import com.palantir.util.Pair;
 import java.nio.ByteBuffer;
 import java.util.Collection;
 import java.util.Collections;
@@ -110,15 +110,15 @@ static RowColumnRangeResult extract(
             }
             rowsToRawColumnCount.put(row, columns.size());
             for (ColumnOrSuperColumn c : columns) {
-                Pair<byte[], Long> pair = CassandraKeyValueServices.decomposeName(c.getColumn());
+                ColumnAndTimestamp columnAndTimestamp = CassandraKeyValueServices.decomposeColumnName(c.getColumn());
                 // Column name
-                TraceStatistics.incBytesRead(pair.lhSide);
+                TraceStatistics.incBytesRead(columnAndTimestamp.columnName());
                 // Column value
                 TraceStatistics.incBytesRead(c.getColumn().getValue().length);
 
-                long ts = pair.rhSide;
+                long ts = columnAndTimestamp.timestamp();
                 if (ts < startTs) {
-                    Cell cell = Cell.create(row, pair.lhSide);
+                    Cell cell = Cell.create(row, columnAndTimestamp.columnName());
                     LinkedHashMap<Cell, Value> cellToValue =
                             collector.computeIfAbsent(row, _b -> new LinkedHashMap<>(1));
                     if (cellToValue.containsKey(cell)) {u}(js (53f8601baae7bbd4e212d593799a09bac05a2badj [atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/ValueExtractor.javaj modifiedj Kj K
j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -21,32 +21,30 @@
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.tracing.TraceStatistics;
 import com.palantir.atlasdb.util.MetricsManager;
-import java.util.HashMap;
 import java.util.Map;
 
 class ValueExtractor extends ResultsExtractor<Value> {
     private final Map<Cell, Value> collector;
-    private final Counter notLatestVisibleValueCellFilterCounter =
-            getNotLatestVisibleValueCellFilterCounter(ValueExtractor.class);
+    private final Counter notLatestVisibleValueCellFilterCounter;
 
-    ValueExtractor(MetricsManager metricsManager, Map<Cell, Value> collector) {
+    ValueExtractor(
+            MetricsManager metricsManager, Map<Cell, Value> collector, Counter notLatestVisibleValueCellFilterCounter) {
         super(metricsManager);
         this.collector = collector;
-    }
-
-    static ValueExtractor create(MetricsManager metricsManager) {
-        return new ValueExtractor(metricsManager, new HashMap<>());
+        this.notLatestVisibleValueCellFilterCounter = notLatestVisibleValueCellFilterCounter;
     }
 
     @Override
     public void internalExtractResult(
             long startTs, ColumnSelection selection, byte[] row, byte[] col, byte[] val, long ts) {
         if (ts < startTs && selection.contains(col)) {
             Cell cell = Cell.create(row, col);
-            Value value = collector.computeIfAbsent(cell, _cell -> Value.create(val, ts));
-            if (value.getTimestamp() != ts) {
+            // explicitly not using `collector.computeIfAbsent` to avoid `LambdaForm.linkToTargetMethod` allocation
+            if (collector.containsKey(cell)) {
                 TraceStatistics.incSkippedValues(1L);
                 notLatestVisibleValueCellFilterCounter.inc();
+            } else {
+                collector.put(cell, Value.create(val, ts));
             }
         } else {
             TraceStatistics.incSkippedValues(1L);u}(js (4e16bd6856b710e2bea5df31215dec94adb90e6bj batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaj modifiedj Kj Kj K#j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X
  @@ -148,18 +148,17 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
                 hostToDatacentersThisRefresh.put(onlyHost, onlyEndpoint.getDatacenter());
             } else { // normal case, large cluster with many vnodes
                 for (TokenRange tokenRange : tokenRanges) {
-                    Map<CassandraServer, String> hostToDatacentersOnThisTokenRange = KeyedStream.of(
-                                    tokenRange.getEndpoint_details())
-                            .mapKeys(EndpointDetails::getHost)
-                            .mapKeys(this::getAddressForHostThrowUnchecked)
-                            .map(EndpointDetails::getDatacenter)
-                            .collectToMap();
-
-                    ImmutableSet<CassandraServer> hosts =
-                            ImmutableSet.copyOf(hostToDatacentersOnThisTokenRange.keySet());
-                    servers.addAll(hosts);
-                    hostToDatacentersThisRefresh.putAll(hostToDatacentersOnThisTokenRange);
+                    List<EndpointDetails> endpointDetails = tokenRange.getEndpoint_details();
+                    ImmutableSet.Builder<CassandraServer> hostsBuilder =
+                            ImmutableSet.builderWithExpectedSize(endpointDetails.size());
+                    for (EndpointDetails endpoint : endpointDetails) {
+                        CassandraServer cassandraServer = getAddressForHostThrowUnchecked(endpoint.getHost());
+                        hostToDatacentersThisRefresh.put(cassandraServer, endpoint.getDatacenter());
+                        hostsBuilder.add(cassandraServer);
+                        servers.add(cassandraServer);
+                    }
 
+                    ImmutableSet<CassandraServer> hosts = hostsBuilder.build();
                     LightweightOppToken startToken = LightweightOppToken.fromHex(tokenRange.getStart_token());
                     LightweightOppToken endToken = LightweightOppToken.fromHex(tokenRange.getEnd_token());
                     if (startToken.compareTo(endToken) <= 0) {
@@ -288,17 +287,15 @@ private CassandraServer getAddressForHostThrowUnchecked(String host) {
     CassandraServer getAddressForHost(String inputHost) throws UnknownHostException {
         Map<String, String> hostnamesByIp = hostnameByIpSupplier.get();
         String cassandraHostName = hostnamesByIp.getOrDefault(inputHost, inputHost);
-        return CassandraServer.of(cassandraHostName, getReachableProxies(cassandraHostName));
-    }
-
-    private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) throws UnknownHostException {
-        InetAddress[] resolvedHosts = InetAddress.getAllByName(inputHost);
+        InetAddress[] resolvedHosts = InetAddress.getAllByName(cassandraHostName);
         int knownPort = getKnownPort();
 
         // It is okay to have reachable proxies that do not have a hostname
-        return Stream.of(resolvedHosts)
-                .map(inetAddr -> new InetSocketAddress(inetAddr, knownPort))
-                .collect(ImmutableSet.toImmutableSet());
+        ImmutableSet.Builder<InetSocketAddress> proxies = ImmutableSet.builderWithExpectedSize(resolvedHosts.length);
+        for (InetAddress host : resolvedHosts) {
+            proxies.add(new InetSocketAddress(host, knownPort));
+        }
+        return CassandraServer.of(cassandraHostName, proxies.build());
     }
 
     private int getKnownPort() throws UnknownHostException {u}(js (63787d74ad98cccd71313f8155a246a327aa33a3j iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/thrift/ThriftObjectSizeUtils.javaj modifiedj K.j Kj K?j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fthrift%2FThriftObjectSizeUtils.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fthrift%2FThriftObjectSizeUtils.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fthrift%2FThriftObjectSizeUtils.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -21,8 +21,11 @@
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.RandomAccess;
 import java.util.function.Function;
+import java.util.function.ToLongFunction;
 import java.util.stream.Collectors;
+import javax.annotation.Nullable;
 import org.apache.cassandra.thrift.Column;
 import org.apache.cassandra.thrift.ColumnOrSuperColumn;
 import org.apache.cassandra.thrift.CounterColumn;
@@ -52,7 +55,7 @@ public static long getApproximateSizeOfMutationMap(Map<ByteBuffer, Map<String, L
                 currentMap -> getCollectionSize(currentMap.keySet(), ThriftObjectSizeUtils::getStringSize)
                         + getCollectionSize(
                                 currentMap.values(),
-                                mutations -> getCollectionSize(mutations, ThriftObjectSizeUtils::getMutationSize)));
+                                mutations -> getListSize(mutations, ThriftObjectSizeUtils::getMutationSize)));
         return approxBytesForKeys + approxBytesForValues;
     }
 
@@ -64,9 +67,9 @@ public static Map<String, Long> getSizeOfMutationPerTable(
             long keySize = ThriftObjectSizeUtils.getByteBufferSize(key);
 
             tableToMutations.forEach((table, mutations) -> {
-                Long size = tableToSize.getOrDefault(table, 0L);
+                long size = tableToSize.getOrDefault(table, 0L);
                 size += keySize;
-                size += getCollectionSize(mutations, ThriftObjectSizeUtils::getMutationSize);
+                size += getListSize(mutations, ThriftObjectSizeUtils::getMutationSize);
 
                 tableToSize.put(table, size);
             });
@@ -79,7 +82,7 @@ public static long getApproximateSizeOfColsByKey(Map<ByteBuffer, List<ColumnOrSu
         return getCollectionSize(
                 result.entrySet(),
                 rowResult -> ThriftObjectSizeUtils.getByteBufferSize(rowResult.getKey())
-                        + getCollectionSize(rowResult.getValue(), ThriftObjectSizeUtils::getColumnOrSuperColumnSize));
+                        + getListSize(rowResult.getValue(), ThriftObjectSizeUtils::getColumnOrSuperColumnSize));
     }
 
     public static long getApproximateSizeOfColListsByKey(Map<ByteBuffer, List<List<ColumnOrSuperColumn>>> result) {
@@ -89,13 +92,13 @@ public static long getApproximateSizeOfColListsByKey(Map<ByteBuffer, List<List<C
     }
 
     public static long getApproximateSizeOfKeySlices(List<KeySlice> slices) {
-        return getCollectionSize(slices, ThriftObjectSizeUtils::getKeySliceSize);
+        return getListSize(slices, ThriftObjectSizeUtils::getKeySliceSize);
     }
 
     public static long getCasByteCount(List<Column> updates) {
-        // TODO(nziebart): CAS actually writes more bytes than this, because the associated Paxos negotations must
+        // TODO(nziebart): CAS actually writes more bytes than this, because the associated Paxos negotiations must
         // be persisted
-        return getCollectionSize(updates, ThriftObjectSizeUtils::getColumnSize);
+        return getListSize(updates, ThriftObjectSizeUtils::getColumnSize);
     }
 
     public static long getColumnOrSuperColumnSize(ColumnOrSuperColumn columnOrSuperColumn) {
@@ -128,7 +131,7 @@ public static long getCqlResultSize(CqlResult cqlResult) {
             return getNullSize();
         }
         return getThriftEnumSize()
-                + getCollectionSize(cqlResult.getRows(), ThriftObjectSizeUtils::getCqlRowSize)
+                + getListSize(cqlResult.getRows(), ThriftObjectSizeUtils::getCqlRowSize)
                 + Integer.BYTES
                 + getCqlMetadataSize(cqlResult.getSchema());
     }
@@ -138,7 +141,7 @@ public static long getKeySliceSize(KeySlice keySlice) {
             return getNullSize();
         }
         return getBytesSize(keySlice, KeySlice::bufferForKey, KeySlice::getKey)
-                + getCollectionSize(keySlice.getColumns(), ThriftObjectSizeUtils::getColumnOrSuperColumnSize);
+                + getListSize(keySlice.getColumns(), ThriftObjectSizeUtils::getColumnOrSuperColumnSize);
     }
 
     public static long getStringSize(String string) {
@@ -163,7 +166,7 @@ private static long getCounterSuperColumnSize(CounterSuperColumn counterSuperCol
             return getNullSize();
         }
         return getBytesSize(counterSuperColumn, CounterSuperColumn::bufferForName, CounterSuperColumn::getName)
-                + getCollectionSize(counterSuperColumn.getColumns(), ThriftObjectSizeUtils::getCounterColumnSize);
+                + getListSize(counterSuperColumn.getColumns(), ThriftObjectSizeUtils::getCounterColumnSize);
     }
 
     private static long getCounterColumnSize(CounterColumn counterColumn) {
@@ -179,7 +182,7 @@ private static long getSuperColumnSize(SuperColumn superColumn) {
             return getNullSize();
         }
         return getBytesSize(superColumn, SuperColumn::bufferForName, SuperColumn::getName)
-                + getCollectionSize(superColumn.getColumns(), ThriftObjectSizeUtils::getColumnSize);
+                + getListSize(superColumn.getColumns(), ThriftObjectSizeUtils::getColumnSize);
     }
 
     private static long getDeletionSize(Deletion deletion) {
@@ -196,7 +199,7 @@ private static long getSlicePredicateSize(SlicePredicate predicate) {
             return getNullSize();
         }
 
-        return getCollectionSize(predicate.getColumn_names(), ThriftObjectSizeUtils::getByteBufferSize)
+        return getListSize(predicate.getColumn_names(), ThriftObjectSizeUtils::getByteBufferSize)
                 + getSliceRangeSize(predicate.getSlice_range());
     }
 
@@ -233,7 +236,7 @@ private static long getCqlRowSize(CqlRow cqlRow) {
             return getNullSize();
         }
         return getBytesSize(cqlRow, CqlRow::bufferForKey, CqlRow::getKey)
-                + getCollectionSize(cqlRow.getColumns(), ThriftObjectSizeUtils::getColumnSize);
+                + getListSize(cqlRow.getColumns(), ThriftObjectSizeUtils::getColumnSize);
     }
 
     private static long getThriftEnumSize() {
@@ -284,14 +287,40 @@ private static <T> long getBytesSize(T data, Function<T, ByteBuffer> toByteBuffe
         return byteBuffer.remaining();
     }
 
-    public static <T> long getCollectionSize(Collection<T> collection, Function<T, Long> sizeFunction) {
+    public static <T> long getCollectionSize(@Nullable Collection<T> collection, ToLongFunction<T> sizeFunction) {
         if (collection == null) {
             return getNullSize();
         }
+        if (collection instanceof List) {
+            return getListSize((List<T>) collection, sizeFunction);
+        }
+        return sumSizes(collection, sizeFunction);
+    }
+
+    private static <T> long getListSize(@Nullable List<T> list, ToLongFunction<T> sizeFunction) {
+        if (list == null) {
+            return getNullSize();
+        }
+
+        // random access lists can be more efficiently accessed via List::get(int)
+        // as this avoids allocating iterator
+        if (list instanceof RandomAccess) {
+            long sum = 0L;
+            //noinspection ForLoopReplaceableByForEach -- performance sensitive
+            for (int i = 0; i < list.size(); i++) {
+                sum += sizeFunction.applyAsLong(list.get(i));
+            }
+            return sum;
+        }
+
+        return sumSizes(list, sizeFunction);
+    }
 
-        long sum = 0;
-        for (T item : collection) {
-            sum += sizeFunction.apply(item);
+    private static <T> long sumSizes(Collection<T> collection, ToLongFunction<T> sizeFunction) {
+        long sum = 0L;
+        //noinspection ForLoopReplaceableByStream -- performance sensitive, avoiding stream allocations
+        for (T t : collection) {
+            sum += sizeFunction.applyAsLong(t);
         }
         return sum;
     }u}(js (495bf3755f831be17741c6a0717201cdf739f0f7j yatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServicesSchemaConsensusTest.javaj modifiedj K-j Kj KJj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServicesSchemaConsensusTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServicesSchemaConsensusTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServicesSchemaConsensusTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XH   @@ -23,8 +23,7 @@
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableSet;
-import java.net.InetSocketAddress;
+import com.palantir.util.io.AvailabilityRequirement;
 import org.apache.thrift.TException;
 import org.junit.Test;
 
@@ -33,77 +32,91 @@ public class CassandraKeyValueServicesSchemaConsensusTest {
     private static final int WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS = 10000;
 
     private static CassandraClient client = mock(CassandraClient.class);
-
-    private static final ImmutableSet<InetSocketAddress> FIVE_SERVERS = ImmutableSet.of(
-            InetSocketAddress.createUnresolved("1", 1),
-            InetSocketAddress.createUnresolved("2", 1),
-            InetSocketAddress.createUnresolved("3", 1),
-            InetSocketAddress.createUnresolved("4", 1),
-            InetSocketAddress.createUnresolved("5", 1));
     private static final String TABLE = "table";
     private static final String VERSION_1 = "v1";
     private static final String VERSION_2 = "v2";
-    private static final String VERSION_UNREACHABLE = "UNREACHABLE";
+    private static final String VERSION_UNREACHABLE = CassandraKeyValueServices.VERSION_UNREACHABLE;
     private static final ImmutableList<String> QUORUM_OF_NODES = ImmutableList.of("1", "2", "3");
     private static final ImmutableList<String> REST_OF_NODES = ImmutableList.of("4", "5");
     private static final ImmutableList<String> ALL_NODES = ImmutableList.of("1", "2", "3", "4", "5");
 
     @Test
     public void waitSucceedsForSameSchemaVersion() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of(VERSION_1, ALL_NODES));
-        assertWaitForSchemaVersionsDoesNotThrow();
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.ANY);
     }
 
     @Test
     public void waitThrowsForAllUnknownSchemaVersion() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of());
-        assertWaitForSchemaVersionsThrows();
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.QUORUM);
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.ANY);
     }
 
     @Test
     public void waitThrowsForAllUnreachableSchemaVersion() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of(VERSION_UNREACHABLE, ALL_NODES));
-        assertWaitForSchemaVersionsThrows();
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.QUORUM);
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.ANY);
+    }
+
+    @Test
+    public void waitThrowsForDifferentSchemaVersion() throws TException {
+        when(client.describe_schema_versions())
+                .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_2, REST_OF_NODES));
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.QUORUM);
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.ANY);
     }
 
     @Test
     public void waitSucceedsWithClusterHavingDownsizedAtRuntime() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of(VERSION_1, REST_OF_NODES));
-        assertWaitForSchemaVersionsDoesNotThrow();
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
     }
 
     @Test
-    public void waitFailsOnMinorityOnSameVersionAndRestUnreachable() throws TException {
+    public void waitFailsForQuorumOnMinorityOnSameVersionAndRestUnreachable() throws TException {
         when(client.describe_schema_versions())
                 .thenReturn(ImmutableMap.of(VERSION_UNREACHABLE, QUORUM_OF_NODES, VERSION_1, REST_OF_NODES));
-        assertWaitForSchemaVersionsThrows();
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.QUORUM);
     }
 
     @Test
     public void waitSucceedsForQuorumOnlyWithUnknownSchemaVersion() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES));
-        assertWaitForSchemaVersionsDoesNotThrow();
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
     }
 
     @Test
     public void waitSucceedsForQuorumOnlyWithUnreachableSchemaVersion() throws TException {
         when(client.describe_schema_versions())
                 .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_UNREACHABLE, REST_OF_NODES));
-        assertWaitForSchemaVersionsDoesNotThrow();
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
     }
 
     @Test
-    public void waitThrowsForDifferentSchemaVersion() throws TException {
+    public void waitSucceedsForQuorumOnlyWithUnknownAndUnreachableSchemaVersion() throws TException {
         when(client.describe_schema_versions())
-                .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_2, REST_OF_NODES));
-        assertWaitForSchemaVersionsThrows();
+                .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_UNREACHABLE, ImmutableList.of("5")));
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
     }
 
     @Test
-    public void waitSucceedsForQuorumOnlyWithUnknownAndUnreachableSchemaVersion() throws TException {
+    public void waitChecksForQuorumByDefault() throws TException {
         when(client.describe_schema_versions())
-                .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_UNREACHABLE, ImmutableList.of("5")));
-        assertWaitForSchemaVersionsDoesNotThrow();
+                .thenReturn(ImmutableMap.of(VERSION_UNREACHABLE, QUORUM_OF_NODES, VERSION_1, REST_OF_NODES));
+        assertThatThrownBy(() -> CassandraKeyValueServices.waitForSchemaVersions(
+                        NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE))
+                .isInstanceOf(IllegalStateException.class)
+                .hasMessageContaining("Cassandra cluster cannot come to agreement on schema versions");
+    }
+
+    @Test
+    public void waitSucceedsForAnyWithOnlyOneReachableHost() throws TException {
+        when(client.describe_schema_versions())
+                .thenReturn(ImmutableMap.of(VERSION_1, ImmutableList.of("5"), VERSION_UNREACHABLE, QUORUM_OF_NODES));
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.ANY);
     }
 
     @Test
@@ -117,18 +130,21 @@ public void waitWaitsForSchemaVersions() throws TException {
                         ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_UNREACHABLE, REST_OF_NODES),
                         ImmutableMap.of(VERSION_1, ALL_NODES));
 
-        CassandraKeyValueServices.waitForSchemaVersions(WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, waitingClient, TABLE);
+        CassandraKeyValueServices.waitForSchemaVersions(
+                WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, waitingClient, TABLE, AvailabilityRequirement.QUORUM);
         verify(waitingClient, times(4)).describe_schema_versions();
     }
 
-    private void assertWaitForSchemaVersionsThrows() {
+    private void assertWaitForSchemaVersionsThrows(AvailabilityRequirement availabilityRequirement) {
         assertThatThrownBy(() -> CassandraKeyValueServices.waitForSchemaVersions(
-                        NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE))
+                        NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE, availabilityRequirement))
                 .isInstanceOf(IllegalStateException.class)
                 .hasMessageContaining("Cassandra cluster cannot come to agreement on schema versions");
     }
 
-    private void assertWaitForSchemaVersionsDoesNotThrow() throws TException {
-        CassandraKeyValueServices.waitForSchemaVersions(NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE);
+    private void assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement availabilityRequirement)
+            throws TException {
+        CassandraKeyValueServices.waitForSchemaVersions(
+                NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE, availabilityRequirement);
     }
 }u     }(js (f22c92e240094982ad75ea602ed3e93436f20ce7j batlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraVerifierTest.javaj modifiedj K
j K j K
j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifierTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifierTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifierTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -274,6 +274,19 @@ public void differentRfThanConfigThrows() throws TException {
                 .isInstanceOf(IllegalStateException.class);
     }
 
+    @Test
+    public void keyspaceAlreadyExistsOnlyChecksForAnyAvailableNodes() throws TException {
+        CassandraVerifierConfig verifierConfig =
+                getVerifierConfigBuilderWithDefaults(defaultTopology(HOST_1)).build();
+        when(client.describe_schema_versions())
+                .thenReturn(ImmutableMap.of(
+                        "A",
+                        ImmutableList.of(HOST_1),
+                        CassandraKeyValueServices.VERSION_UNREACHABLE,
+                        ImmutableList.of(HOST_1, HOST_2, HOST_3)));
+        CassandraVerifier.keyspaceAlreadyExists(client, verifierConfig);
+    }
+
     private TokenRange mockRangeWithDetails(EndpointDetails... details) {
         TokenRange mockRange = new TokenRange();
         mockRange.setEndpoint_details(Arrays.asList(details));u}(js (a0daffcaa0a4ea862e707fb50afd62871f197c8ej ]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/DualWriteKeyValueService.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -318,4 +318,9 @@ public List<byte[]> getRowKeysInRange(TableReference tableRef, byte[] startRow,
     public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<Cell, Long> timestampByCell) {
         return delegate1.getAsync(tableRef, timestampByCell);
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate1.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(js (1ab84302f51e4bad9eef3b306d5f224b087a44d4j \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/InMemoryKeyValueService.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X-  @@ -735,6 +735,12 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
         return Futures.immediateFuture(get(tableRef, timestampByCell));
     }
 
+    // Marking this as true as it's only used for tests, so we can better replicate Cassandra behaviour.
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return true;
+    }
+
     /**
      * This takes out a reentrant read lock. It is only exclusive specifically with
      * {@link #multiCheckAndSet(MultiCheckAndSetRequest)}.u}(js (d41572b88d0c8b10e1042d4d64b59e123b40c6c1j ]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/ProfilingKeyValueService.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X|  @@ -554,4 +554,9 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
                         LoggingArgs.durationMillis(stopwatch)),
                 logCellResultSize(4L));
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(js (aee4560b5007342d777bb076c6630351e4618aa1j [atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/TracingKeyValueService.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -531,6 +531,11 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
         });
     }
 
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate().sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
+
     @MustBeClosed
     private static CloseableTracer startLocalTrace(@CompileTimeConstant final String operation) {
         TraceStatistic original = TraceStatistics.getCurrentAndClear();u}(js (847dac9582377f857ea51d134c9d257b2a221cb0j Vatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javaj modifiedj K6j K
j K@j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -16,9 +16,12 @@
 
 package com.palantir.atlasdb.table.description;
 
+import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.Optional;
 
 /**
@@ -28,28 +31,53 @@
  */
 public final class SweepStrategy {
 
+    private static final SafeLogger log = SafeLoggerFactory.get(SweepStrategy.class);
+
     public static final SweepStrategy CONSERVATIVE =
-            new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false);
-    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), true);
+            new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false, false);
+    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), false, true);
 
     private final Optional<SweeperStrategy> sweeperStrategy;
-    private final boolean mustCheckImmutableLockAfterReads;
+    private final boolean mustCheckImmutableLockIfAllCellsReadAndPresent;
+
+    // When we either read an empty value or perform reads like a range-scan, where we can't be certain of how many
+    // values we expect.
+    private final boolean mustCheckImmutableLockIfNonExhaustiveRead;
 
-    private SweepStrategy(Optional<SweeperStrategy> sweeperStrategy, boolean mustCheckImmutableLockAfterReads) {
+    private SweepStrategy(
+            Optional<SweeperStrategy> sweeperStrategy,
+            boolean mustCheckImmutableLockIfAllCellsReadAndPresent,
+            boolean mustCheckImmutableLockIfNonExhaustiveRead) {
         this.sweeperStrategy = sweeperStrategy;
-        this.mustCheckImmutableLockAfterReads = mustCheckImmutableLockAfterReads;
+        this.mustCheckImmutableLockIfAllCellsReadAndPresent = mustCheckImmutableLockIfAllCellsReadAndPresent;
+        this.mustCheckImmutableLockIfNonExhaustiveRead = mustCheckImmutableLockIfNonExhaustiveRead;
     }
 
     public Optional<SweeperStrategy> getSweeperStrategy() {
         return sweeperStrategy;
     }
 
-    public boolean mustCheckImmutableLockAfterReads() {
-        return mustCheckImmutableLockAfterReads;
+    public boolean mustCheckImmutableLock(boolean allPossibleCellsReandAndPresent) {
+        boolean mustCheckLock = allPossibleCellsReandAndPresent
+                ? mustCheckImmutableLockIfAllCellsReadAndPresent
+                : mustCheckImmutableLockIfNonExhaustiveRead;
+
+        if (log.isDebugEnabled() && !mustCheckLock && isConfiguredWithThoroughSweep()) {
+            log.debug("Can skip immutable timestamp lock on thoroughly swept table due to making exhaustive read");
+        }
+
+        return mustCheckLock;
+    }
+
+    private boolean isConfiguredWithThoroughSweep() {
+        return getSweeperStrategy().isPresent() && getSweeperStrategy().get().equals(SweeperStrategy.THOROUGH);
     }
 
-    public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy) {
-        return new SweepStrategy(sweeperBehaviour(strategy), mustCheckImmutableLockAfterReads(strategy));
+    public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
+        return new SweepStrategy(
+                sweeperBehaviour(strategy),
+                mustCheckImmutableLockIfAllCellsReadAndPresent(strategy, kvs),
+                mustCheckImmutableLockIfNonExhaustiveRead(strategy));
     }
 
     private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersistence.SweepStrategy strategy) {
@@ -65,7 +93,23 @@ private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersisten
         throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
     }
 
-    private static boolean mustCheckImmutableLockAfterReads(TableMetadataPersistence.SweepStrategy strategy) {
+    private static boolean mustCheckImmutableLockIfAllCellsReadAndPresent(
+            TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
+        if (!kvs.sweepsEntriesInStrictlyNonDecreasingFashion()) {
+            return mustCheckImmutableLockIfNonExhaustiveRead(strategy);
+        }
+
+        switch (strategy) {
+            case CONSERVATIVE:
+            case NOTHING:
+            case THOROUGH_MIGRATION:
+            case THOROUGH:
+                return false;
+        }
+        throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
+    }
+
+    private static boolean mustCheckImmutableLockIfNonExhaustiveRead(TableMetadataPersistence.SweepStrategy strategy) {
         switch (strategy) {
             case CONSERVATIVE:
             case NOTHING:u}(js (a609938800595c6a4ed1b28154a58151f7d04af3j datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ExpectationsAwareTransaction.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 /**
@@ -32,6 +33,11 @@ public interface ExpectationsAwareTransaction extends Transaction {
      */
     TransactionReadInfo getReadInfo();
 
+    /**
+     * Returns transaction commit lock information.
+     */
+    TransactionCommitLockInfo getCommitLockInfo();
+
     /**
      * Update TEX data collection metrics for (post-mortem) transactions.
      * Expected usage is that this method is called once after the transaction has been committed or aborted.u}(js (6795ea4a937624401807d2b3742ab596ad23984bj natlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingExpectationsAwareTransaction.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.transaction.impl;
 
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 public abstract class ForwardingExpectationsAwareTransaction extends ForwardingTransaction
@@ -34,6 +35,11 @@ public TransactionReadInfo getReadInfo() {
         return delegate().getReadInfo();
     }
 
+    @Override
+    public TransactionCommitLockInfo getCommitLockInfo() {
+        return delegate().getCommitLockInfo();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         delegate().reportExpectationsCollectedData();u}(js (71e95645f3ae1137fc44efc89c6e3432b42d85ffj Watlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ReadTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -24,14 +24,15 @@
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.logging.LoggingArgs;
-import com.palantir.atlasdb.table.description.SweepStrategy;
+import com.palantir.atlasdb.table.description.SweeperStrategy;
 import com.palantir.atlasdb.transaction.api.GetRangesQuery;
 import com.palantir.common.base.BatchingVisitable;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
+import java.util.Optional;
 import java.util.Set;
 import java.util.function.BiFunction;
 import java.util.stream.Stream;
@@ -136,11 +137,11 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
     }
 
     private void checkTableName(TableReference tableRef) {
-        SweepStrategy sweepStrategy = sweepStrategies.get(tableRef);
+        Optional<SweeperStrategy> sweepStrategy = sweepStrategies.get(tableRef).getSweeperStrategy();
         Preconditions.checkState(
-                !sweepStrategy.mustCheckImmutableLockAfterReads(),
-                "This table cannot be read from a read-only transaction, because its "
-                        + "sweep strategy is neither NOTHING nor CONSERVATIVE",
+                sweepStrategy.isEmpty() || sweepStrategy.get().equals(SweeperStrategy.CONSERVATIVE),
+                "This table cannot be read from a read-only transaction, because its sweep strategy is neither NOTHING"
+                        + " nor CONSERVATIVE",
                 LoggingArgs.tableRef(tableRef));
     }
 u}(js (59d37859a318b1646ca6da51436b4720150f7940j ]atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/SweepStrategyManagers.javaj modifiedj K	j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X;  @@ -21,7 +21,6 @@
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
-import com.palantir.atlasdb.table.description.Schema;
 import com.palantir.atlasdb.table.description.SweepStrategy;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.logsafe.Preconditions;
@@ -53,7 +52,7 @@ public static SweepStrategyManager create(KeyValueService kvs, CacheWarming cach
                     // On a cache miss, load metadata only for the relevant table. Helpful when many dynamic tables.
                     LoadingCache<TableReference, SweepStrategy> cache = Caffeine.newBuilder()
                             .expireAfterAccess(Duration.ofDays(1))
-                            .build(tableRef -> getSweepStrategy(kvs.getMetadataForTable(tableRef)));
+                            .build(tableRef -> getSweepStrategy(kvs.getMetadataForTable(tableRef), kvs));
 
                     // Possibly warm the cache.
                     cache.putAll(getSweepStrategiesForWarmingCache(kvs, cacheWarming));
@@ -74,42 +73,34 @@ public void invalidateCaches(Set<TableReference> tableRefs) {
         };
     }
 
-    public static SweepStrategyManager createFromSchema(Schema schema) {
-        return tableRef -> {
-            TableMetadata tableMeta = Preconditions.checkNotNull(
-                    schema.getAllTablesAndIndexMetadata().get(tableRef),
-                    "unknown table",
-                    SafeArg.of("tableRef", tableRef));
-            return SweepStrategy.from(tableMeta.getSweepStrategy());
-        };
-    }
-
     public static SweepStrategyManager fromMap(final Map<TableReference, SweepStrategy> map) {
         return tableRef ->
                 Preconditions.checkNotNull(map.get(tableRef), "unknown table", SafeArg.of("tableRef", tableRef));
     }
 
-    public static SweepStrategyManager completelyConservative() {
-        return tableRef -> SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE);
+    public static SweepStrategyManager completelyConservative(KeyValueService kvs) {
+        return tableRef -> SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE, kvs);
     }
 
     private static Map<TableReference, SweepStrategy> getSweepStrategiesForWarmingCache(
             KeyValueService kvs, CacheWarming cacheWarming) {
         switch (cacheWarming) {
             case FULL:
-                return Maps.transformValues(kvs.getMetadataForTables(), SweepStrategyManagers::getSweepStrategy);
+                return Maps.transformValues(
+                        kvs.getMetadataForTables(),
+                        tableMetadata -> SweepStrategyManagers.getSweepStrategy(tableMetadata, kvs));
             case NONE:
             default:
                 return Collections.emptyMap();
         }
     }
 
-    private static SweepStrategy getSweepStrategy(byte[] tableMeta) {
+    private static SweepStrategy getSweepStrategy(byte[] tableMeta, KeyValueService kvs) {
         if (tableMeta != null && tableMeta.length > 0) {
             return SweepStrategy.from(
-                    TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy());
+                    TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy(), kvs);
         } else {
-            return SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE);
+            return SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE, kvs);
         }
     }
 }u}(js (0afb2f8d855ce6f274bf6d59e8fa8724ec38f7e8j Jatlasdb-client/src/main/java/com/palantir/atlasdb/util/AtlasDbMetrics.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FAtlasDbMetrics.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FAtlasDbMetrics.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FAtlasDbMetrics.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -118,7 +118,7 @@ private static <T, U extends T> T instrument(
                         LoggerFactory.getLogger("performance." + name),
                         LoggingLevel.TRACE,
                         LoggingInvocationEventHandler.LOG_DURATIONS_GREATER_THAN_1_MICROSECOND)
-                .build();
+                .build(); // Ok
     }
 
     private static InstrumentationFilter instrumentTimedOnly() {u}(js (e7949fec0d19116c4500b6be501d9ab8aef7f88fj atlasdb-commons/build.gradlej modifiedj Kj K j Kj phttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-commons%2Fbuild.gradlej ohttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-commons%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fbuild.gradle?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -26,6 +26,7 @@ dependencies {
     testImplementation 'com.fasterxml.jackson.core:jackson-databind'
     testImplementation 'com.google.errorprone:error_prone_annotations'
     testImplementation 'com.google.guava:guava'
+    testImplementation 'com.palantir.safe-logging:preconditions-assertj'
 
     annotationProcessor 'org.immutables:value'
     compileOnly 'org.immutables:value::annotations'u}(js (1db88b0afce6cbbc7e74528881cb99bc7a567681j Gatlasdb-commons/src/main/java/com/palantir/util/IndexEncodingUtils.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X#  @@ -0,0 +1,208 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreType;
+import com.google.common.collect.Maps;
+import com.google.common.collect.Sets;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.nio.ByteBuffer;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.zip.CRC32;
+import org.immutables.value.Value;
+
+public final class IndexEncodingUtils {
+    private IndexEncodingUtils() {}
+
+    public static <K extends DeterministicHashable, V> IndexEncodingResult<K, V> encode(
+            Set<K> keys, Map<K, V> keyToValue, ChecksumType checksumType) {
+        return encode(keys, keyToValue, Function.identity(), checksumType);
+    }
+
+    /**
+     * Compute a derived map (replacing keys with their associated index into the ordered list) to the value returned
+     * by running the {@code valueMapper} over the original value.
+     * If the {@code keys} are transmitted regardless of whether they have a value associated in {@code keyToValue},
+     * this encoding can be used to save significant space on the wire.
+     *
+     * @param keys a set of keys which implement {@link DeterministicHashable}
+     * @param keyToValue a map of keys to values. The key set of this map must be a subset of {@code keys}
+     * @param valueMapper a mapping function applied to values before placing them into the result map
+     * @param checksumType the type of checksum algorithm to use on the ordered list of keys
+     * @return the ordered list of keys, the index map, and a compound checksum of the ordered keys
+     * @throws SafeIllegalArgumentException if {@code keyToValue} contains keys that are not in the provided
+     * set of keys
+     */
+    public static <K extends DeterministicHashable, V, R> IndexEncodingResult<K, R> encode(
+            Set<K> keys, Map<K, V> keyToValue, Function<V, R> valueMapper, ChecksumType checksumType) {
+        List<K> keyList = new ArrayList<>(keys);
+        // A linked hash map will give a minor improvement when iterating during serialization
+        Map<Integer, R> indexToValue = Maps.newLinkedHashMapWithExpectedSize(keyToValue.size());
+        // We are explicitly using a primitive for-loop (no streaming) to squeeze out a bit of performance
+        // (same in decode)
+        for (int i = 0; i < keyList.size(); i++) {
+            V value = keyToValue.get(keyList.get(i));
+            if (value != null) {
+                indexToValue.put(i, valueMapper.apply(value));
+            }
+        }
+        if (indexToValue.size() != keyToValue.size()) {
+            Set<K> unknownKeys = Sets.difference(keyToValue.keySet(), keys);
+            throw new SafeIllegalArgumentException(
+                    "Value map uses keys that are not in the provided set of keys",
+                    UnsafeArg.of("unknownKeys", unknownKeys));
+        }
+        return IndexEncodingResult.<K, R>builder()
+                .keyList(keyList)
+                .indexToValue(indexToValue)
+                .keyListChecksum(computeChecksum(checksumType, keyList))
+                .build();
+    }
+
+    public static <K extends DeterministicHashable, V> Map<K, V> decode(IndexEncodingResult<K, V> indexEncoding) {
+        return decode(indexEncoding, Function.identity());
+    }
+
+    /**
+     * Compute a derived map (replacing indices into the list of keys with their item) to the value returned
+     * by running the {@code valueMapper} over the original value.
+     *
+     * @param indexEncoding the output of {@link IndexEncodingUtils#encode}, i.e. the ordered list of keys,
+     * a map of indices to values, and a checksum of the ordered key list. Every index must be
+     * a valid index into the list of keys
+     * @param valueMapper a mapping function applied to values before placing them into the result map
+     * @throws SafeIllegalArgumentException if the provided checksum does not match the actual checksum of the ordered
+     * keys or if {@code indexToValue} contains indices that are not valid for the list of keys
+     */
+    public static <K extends DeterministicHashable, V, R> Map<K, R> decode(
+            IndexEncodingResult<K, V> indexEncoding, Function<V, R> valueMapper) {
+        List<K> keyList = indexEncoding.keyList();
+        KeyListChecksum expectedChecksum = indexEncoding.keyListChecksum();
+        KeyListChecksum actualChecksum = computeChecksum(expectedChecksum.type(), keyList);
+        Preconditions.checkArgument(
+                actualChecksum.equals(expectedChecksum),
+                "Key list integrity check failed",
+                UnsafeArg.of("keyList", keyList),
+                SafeArg.of("actualChecksum", actualChecksum),
+                SafeArg.of("expectedChecksum", expectedChecksum));
+
+        Map<K, R> keyToValue =
+                Maps.newHashMapWithExpectedSize(indexEncoding.indexToValue().size());
+        for (Map.Entry<Integer, V> entry : indexEncoding.indexToValue().entrySet()) {
+            int index = entry.getKey();
+            Preconditions.checkArgument(
+                    index >= 0 && index < keyList.size(),
+                    "Index map contains invalid index",
+                    SafeArg.of("index", index),
+                    SafeArg.of("keyListSize", keyList.size()));
+            keyToValue.put(keyList.get(index), valueMapper.apply(entry.getValue()));
+        }
+        return keyToValue;
+    }
+
+    public static <K extends DeterministicHashable> KeyListChecksum computeChecksum(
+            ChecksumType checksumType, List<K> keyList) {
+        switch (checksumType) {
+            case CRC32_OF_DETERMINISTIC_HASHCODE: {
+                CRC32 checksum = new CRC32();
+                for (K key : keyList) {
+                    checksum.update(key.deterministicHashCode());
+                }
+                return KeyListChecksum.of(
+                        checksumType,
+                        ByteBuffer.allocate(8).putLong(checksum.getValue()).array());
+            }
+            default: {
+                throw new SafeIllegalArgumentException(
+                        "Unknown checksum type", SafeArg.of("checksumType", checksumType));
+            }
+        }
+    }
+
+    public interface DeterministicHashable {
+
+        /**
+         * A hash code implementation that is stable across different processes/JVMs and only depends on the contents
+         * of the object.
+         */
+        int deterministicHashCode();
+    }
+
+    /**
+     * This class is merely used to wrap the output of {@link IndexEncodingUtils#encode} and should not be embedded in
+     * any other object directly or serialized as-is.
+     */
+    @Value.Immutable
+    @JsonIgnoreType
+    public interface IndexEncodingResult<K extends DeterministicHashable, V> {
+        List<K> keyList();
+
+        KeyListChecksum keyListChecksum();
+
+        Map<Integer, V> indexToValue();
+
+        static <K extends DeterministicHashable, V> ImmutableIndexEncodingResult.Builder<K, V> builder() {
+            return ImmutableIndexEncodingResult.builder();
+        }
+    }
+
+    public enum ChecksumType {
+        CRC32_OF_DETERMINISTIC_HASHCODE(1);
+
+        private static final Map<Integer, ChecksumType> ID_TO_ENTRY =
+                Arrays.stream(ChecksumType.values()).collect(Collectors.toMap(entry -> entry.id, entry -> entry));
+
+        private final int id;
+
+        ChecksumType(int id) {
+            this.id = id;
+        }
+
+        public int getId() {
+            return id;
+        }
+
+        public static ChecksumType valueOf(int id) {
+            Preconditions.checkArgument(
+                    ID_TO_ENTRY.containsKey(id), "Unknown checksum type ID", SafeArg.of("checksumTypeId", id));
+            return ID_TO_ENTRY.get(id);
+        }
+    }
+
+    @Value.Immutable
+    public interface KeyListChecksum {
+
+        @Value.Parameter
+        ChecksumType type();
+
+        @Value.Parameter
+        byte[] value();
+
+        static KeyListChecksum of(ChecksumType type, byte[] value) {
+            return ImmutableKeyListChecksum.of(type, value);
+        }
+    }
+}u}(js (1c58d50254ae7b8272b34df90b7342f7bd636537j Oatlasdb-commons/src/main/java/com/palantir/util/io/AvailabilityRequirement.javaj addedj K3j K j K3j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirement.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirement.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirement.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -0,0 +1,51 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util.io;
+
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+
+public enum AvailabilityRequirement {
+    ANY {
+        @Override
+        protected int calculateRequired(int total) {
+            return 1;
+        }
+    },
+    QUORUM {
+        @Override
+        protected int calculateRequired(int total) {
+            return (total / 2) + 1;
+        }
+    };
+
+    protected abstract int calculateRequired(int total);
+
+    public final boolean satisfies(int available, int total) {
+        Preconditions.checkArgument(
+                available >= 0 && total >= 0,
+                "Available and total must be non-negative.",
+                SafeArg.of("available", available),
+                SafeArg.of("total", total));
+        Preconditions.checkArgument(
+                available <= total,
+                "Available must be less than or equal to total.",
+                SafeArg.of("available", available),
+                SafeArg.of("total", total));
+        return available >= calculateRequired(total);
+    }
+}u}(js (9f0c7fbc486ed33c7d2e87d7bec15a60af80050bj Katlasdb-commons/src/test/java/com/palantir/util/IndexEncodingUtilsTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X$  @@ -0,0 +1,203 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.common.streams.KeyedStream;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.util.IndexEncodingUtils.ChecksumType;
+import com.palantir.util.IndexEncodingUtils.DeterministicHashable;
+import com.palantir.util.IndexEncodingUtils.IndexEncodingResult;
+import com.palantir.util.IndexEncodingUtils.KeyListChecksum;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.Random;
+import java.util.Set;
+import java.util.UUID;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import org.immutables.value.Value;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+
+@RunWith(Parameterized.class)
+public class IndexEncodingUtilsTest {
+
+    @Parameterized.Parameters(name = "checksumType={0}")
+    public static Iterable<ChecksumType> data() {
+        return Arrays.asList(ChecksumType.values());
+    }
+
+    private static final Map<DeterministicHashableWrapper<String>, Long> VALUES =
+            ImmutableMap.of(wrap("key1"), 42L, wrap("key2"), 1337L, wrap("anotherKey"), -10L);
+    private static final Set<DeterministicHashableWrapper<String>> KEYS =
+            ImmutableSet.of(wrap("key1"), wrap("key2"), wrap("anotherKey"));
+
+    private final ChecksumType checksumType;
+
+    public IndexEncodingUtilsTest(ChecksumType checksumType) {
+        this.checksumType = checksumType;
+    }
+
+    @Test
+    public void canLookupValidChecksumType() {
+        assertThat(ChecksumType.valueOf(checksumType.getId())).isEqualTo(checksumType);
+    }
+
+    @Test
+    public void cannotLookupUnknownChecksumType() {
+        assertThatLoggableExceptionThrownBy(() -> ChecksumType.valueOf(-1))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasLogMessage("Unknown checksum type ID")
+                .hasExactlyArgs(SafeArg.of("checksumTypeId", -1));
+    }
+
+    @Test
+    public void canEncodeSimpleData() {
+        assertThat(createIndexEncoding().indexToValue())
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
+    }
+
+    @Test
+    public void canDecodeSimpleData() {
+        assertThat(IndexEncodingUtils.decode(createIndexEncoding())).containsExactlyInAnyOrderEntriesOf(VALUES);
+    }
+
+    @Test
+    public void canEncodeAndDecodeEmptyData() {
+        assertThat(IndexEncodingUtils.decode(
+                        IndexEncodingUtils.encode(ImmutableSet.of(), ImmutableMap.of(), checksumType)))
+                .isEmpty();
+    }
+
+    @Test
+    public void canEncodeWithCustomValueMapper() {
+        Map<Integer, String> expectedValues = ImmutableMap.of(1, "1327", 2, "-20", 0, "32");
+        assertThat(IndexEncodingUtils.encode(KEYS, VALUES, value -> Long.toString(value - 10), checksumType)
+                        .indexToValue())
+                .containsExactlyInAnyOrderEntriesOf(expectedValues);
+    }
+
+    @Test
+    public void canDecodeWithCustomValueMapper() {
+        assertThat(IndexEncodingUtils.decode(
+                        IndexEncodingUtils.encode(KEYS, VALUES, value -> Long.toString(value - 10), checksumType),
+                        value -> Long.parseLong(value) + 10))
+                .containsExactlyInAnyOrderEntriesOf(VALUES);
+    }
+
+    @Test
+    public void encodeFailsForUnknownKeysInValueMap() {
+        assertThatLoggableExceptionThrownBy(
+                        () -> IndexEncodingUtils.encode(KEYS, ImmutableMap.of(wrap("unknown-key"), 0L), checksumType))
+                .isExactlyInstanceOf(SafeIllegalArgumentException.class)
+                .hasLogMessage("Value map uses keys that are not in the provided set of keys")
+                .hasExactlyArgs(UnsafeArg.of("unknownKeys", ImmutableSet.of(wrap("unknown-key"))));
+    }
+
+    @Test
+    public void decodeFailsForInvalidIndices() {
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encodedWithInvalidIndices =
+                ImmutableIndexEncodingResult.copyOf(createIndexEncoding())
+                        .withIndexToValue(ImmutableMap.of(KEYS.size(), 17L));
+        assertThatLoggableExceptionThrownBy(() -> IndexEncodingUtils.decode(encodedWithInvalidIndices))
+                .isExactlyInstanceOf(SafeIllegalArgumentException.class)
+                .hasLogMessage("Index map contains invalid index")
+                .hasExactlyArgs(SafeArg.of("index", KEYS.size()), SafeArg.of("keyListSize", KEYS.size()));
+    }
+
+    @Test
+    public void integrityCheckFailsForDifferentKeyList() {
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encoded = createIndexEncoding();
+        List<DeterministicHashableWrapper<String>> modifiedKeyList = new ArrayList<>(KEYS);
+        Collections.swap(modifiedKeyList, 0, 1);
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encodedWithModifiedKeyList =
+                ImmutableIndexEncodingResult.copyOf(encoded).withKeyList(modifiedKeyList);
+        KeyListChecksum actualChecksum = IndexEncodingUtils.computeChecksum(checksumType, modifiedKeyList);
+        assertThatLoggableExceptionThrownBy(() -> IndexEncodingUtils.decode(encodedWithModifiedKeyList))
+                .isExactlyInstanceOf(SafeIllegalArgumentException.class)
+                .hasLogMessage("Key list integrity check failed")
+                .hasExactlyArgs(
+                        UnsafeArg.of("keyList", modifiedKeyList),
+                        SafeArg.of("actualChecksum", actualChecksum),
+                        SafeArg.of("expectedChecksum", encoded.keyListChecksum()));
+    }
+
+    @Test
+    public void integrityCheckFailsForDifferentChecksum() {
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encoded = createIndexEncoding();
+        byte[] modifiedChecksum = encoded.keyListChecksum().value();
+        modifiedChecksum[0]++;
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encodedWithModifiedChecksum =
+                ImmutableIndexEncodingResult.copyOf(encoded)
+                        .withKeyListChecksum(KeyListChecksum.of(checksumType, modifiedChecksum));
+        assertThatLoggableExceptionThrownBy(() -> IndexEncodingUtils.decode(encodedWithModifiedChecksum))
+                .isExactlyInstanceOf(SafeIllegalArgumentException.class)
+                .hasLogMessage("Key list integrity check failed")
+                .hasExactlyArgs(
+                        UnsafeArg.of("keyList", encoded.keyList()),
+                        SafeArg.of("actualChecksum", encoded.keyListChecksum()),
+                        SafeArg.of("expectedChecksum", encodedWithModifiedChecksum.keyListChecksum()));
+    }
+
+    @Test
+    public void decodingEncodedDataYieldsOriginalForRandomData() {
+        int seed = (int) System.currentTimeMillis();
+        Random rand = new Random(seed);
+        Set<DeterministicHashableWrapper<UUID>> keys = Stream.generate(UUID::randomUUID)
+                .limit(1000)
+                .map(IndexEncodingUtilsTest::wrap)
+                .collect(Collectors.toSet());
+        Map<DeterministicHashableWrapper<UUID>, Long> data = KeyedStream.of(keys.stream())
+                .filter(_unused -> rand.nextBoolean())
+                .map(_unused -> rand.nextLong())
+                .collectToMap();
+        assertThat(IndexEncodingUtils.decode(IndexEncodingUtils.encode(keys, data, checksumType)))
+                .as("Encoding and decoding yields original data. Random seed: " + seed)
+                .containsExactlyInAnyOrderEntriesOf(data);
+    }
+
+    private IndexEncodingResult<DeterministicHashableWrapper<String>, Long> createIndexEncoding() {
+        return IndexEncodingUtils.encode(KEYS, VALUES, checksumType);
+    }
+
+    private static <T> DeterministicHashableWrapper<T> wrap(T value) {
+        return ImmutableDeterministicHashableWrapper.of(value);
+    }
+
+    @Value.Immutable
+    abstract static class DeterministicHashableWrapper<T> implements DeterministicHashable {
+
+        @Value.Parameter
+        protected abstract T delegate();
+
+        @Override
+        public int deterministicHashCode() {
+            return delegate().hashCode();
+        }
+    }
+}u}(js (02ba7a7df417ddea93cfbe362d001e291e48f2ffj Satlasdb-commons/src/test/java/com/palantir/util/io/AvailabilityRequirementTest.javaj addedj K^j K j K^j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirementTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirementTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirementTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XS  @@ -0,0 +1,94 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util.io;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import org.junit.Test;
+
+public final class AvailabilityRequirementTest {
+    @Test
+    public void anySatisfiesGreaterThanZero() {
+        assertThat(AvailabilityRequirement.ANY.satisfies(1, 10)).isTrue();
+    }
+
+    @Test
+    public void anySatisfiesWhenEquivalentToTotal() {
+        assertThat(AvailabilityRequirement.ANY.satisfies(1, 1)).isTrue();
+        assertThat(AvailabilityRequirement.ANY.satisfies(10, 10)).isTrue();
+    }
+
+    @Test
+    public void anyDoesNotSatisfyWhenZero() {
+        assertThat(AvailabilityRequirement.ANY.satisfies(0, 10)).isFalse();
+        assertThat(AvailabilityRequirement.ANY.satisfies(0, 0)).isFalse();
+    }
+
+    @Test
+    public void quorumSatisfiesWhenHasMajority() {
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(2, 3)).isTrue();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(4, 6)).isTrue();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(5, 9)).isTrue();
+    }
+
+    @Test
+    public void quorumDoesNotSatisfyWhenItDoesNotHaveMajority() {
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(0, 0)).isFalse();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(0, 1)).isFalse();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(1, 3)).isFalse();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(3, 6)).isFalse();
+    }
+
+    @Test
+    public void quorumSatisfiesWhenHasTotal() {
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(1, 1)).isTrue();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(10, 10)).isTrue();
+    }
+
+    @Test
+    public void satisfiesThrowsWhenAvailableIsNegative() {
+        assertThatNegativeArgumentsExceptionThrowsForArguments(-1, 10);
+    }
+
+    @Test
+    public void satisfiesThrowsWhenTotalIsNegative() {
+        assertThatNegativeArgumentsExceptionThrowsForArguments(1, -10);
+    }
+
+    @Test
+    public void satisfiesThrowsWhenBothAreNegative() {
+        assertThatNegativeArgumentsExceptionThrowsForArguments(-1, -10);
+    }
+
+    @Test
+    public void satisfiesThrowsWhenAvailableIsGreaterThanTotal() {
+        assertThatLoggableExceptionThrownBy(() -> AvailabilityRequirement.ANY.satisfies(11, 10))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Available must be less than or equal to total.")
+                .hasExactlyArgs(SafeArg.of("available", 11), SafeArg.of("total", 10));
+    }
+
+    private static void assertThatNegativeArgumentsExceptionThrowsForArguments(int available, int total) {
+        assertThatLoggableExceptionThrownBy(() -> AvailabilityRequirement.ANY.satisfies(available, total))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Available and total must be non-negative.")
+                .hasExactlyArgs(SafeArg.of("available", available), SafeArg.of("total", total));
+    }
+}u}(js (b173565d678b7b542b83a400be83c1df5712c1cbj datlasdb-config/src/main/java/com/palantir/atlasdb/factory/DefaultLockAndTimestampServiceFactory.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X?  @@ -262,7 +262,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
                     timelockRequestBatcherProviders,
                     knownSchemas);
         } else {
-            return createRawEmbeddedServices(metricsManager, registrar, lock, time);
+            return createRawEmbeddedServices(metricsManager, lock, time);
         }
     }
 
@@ -621,7 +621,6 @@ private static LockAndTimestampServices createRawRemoteServices(
 
     private static LockAndTimestampServices createRawEmbeddedServices(
             MetricsManager metricsManager,
-            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> managedTimestampServiceSupplier) {
         LockService lockService =
@@ -634,10 +633,6 @@ private static LockAndTimestampServices createRawEmbeddedServices(
         TimestampManagementService timestampManagementService = ServiceCreator.instrumentService(
                 metricsManager.getRegistry(), managedTimestampService, TimestampManagementService.class);
 
-        registrar.accept(lockService);
-        registrar.accept(timeService);
-        registrar.accept(timestampManagementService);
-
         return ImmutableLockAndTimestampServices.builder()
                 .lock(lockService)
                 .timestamp(timeService)u}(js (013b7c530f64d79bbe88bf4896edfaea7bbce3c2j ^atlasdb-config/src/main/java/com/palantir/atlasdb/factory/ServiceDiscoveringAtlasSupplier.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplier.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplier.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplier.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -17,7 +17,6 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.spi.AtlasDbFactory;
@@ -52,7 +51,6 @@ public class ServiceDiscoveringAtlasSupplier {
 
     private static String timestampServiceCreationInfo = null;
 
-    private final Optional<LeaderConfig> leaderConfig;
     private final Supplier<KeyValueService> keyValueService;
     private final Supplier<ManagedTimestampService> timestampService;
     private final Supplier<TimestampStoreInvalidator> timestampStoreInvalidator;
@@ -63,18 +61,16 @@ public ServiceDiscoveringAtlasSupplier(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> namespace,
             Optional<TableReference> tableReferenceOverride,
             boolean initializeAsync,
             boolean collectThreadDumpOnInit,
             LongSupplier timestampSupplier) {
-        this.leaderConfig = leaderConfig;
         this.collectThreadDumps = collectThreadDumpOnInit;
 
         AtlasDbFactory atlasFactory = AtlasDbServiceDiscovery.createAtlasFactoryOfCorrectType(config);
         keyValueService = Suppliers.memoize(() -> atlasFactory.createRawKeyValueService(
-                metricsManager, config, runtimeConfig, leaderConfig, namespace, timestampSupplier, initializeAsync));
+                metricsManager, config, runtimeConfig, namespace, timestampSupplier, initializeAsync));
         timestampService = () -> atlasFactory.createManagedTimestampService(
                 getKeyValueService(), tableReferenceOverride, initializeAsync);
         timestampStoreInvalidator =
@@ -154,23 +150,11 @@ private static String saveThreadDumpsToFile(File file) throws IOException {
     }
 
     private void reportMultipleTimestampFetch(String path) {
-        if (!leaderConfig.isPresent()) {
-            log.warn(
-                    "[timestamp-service-creation] Timestamp service fetched for a second time, and there is no leader"
-                        + " config. This means that you may soon encounter the MultipleRunningTimestampServices error."
-                        + " Thread dumps from both fetches of the timestamp service have been outputted to {}. If you"
-                        + " encounter a MultipleRunningTimestampServices error, please send this file to support.",
-                    UnsafeArg.of("path", path));
-        } else {
-            log.warn(
-                    "[timestamp-service-creation] Timestamp service fetched for a second time. This is only OK if "
-                            + "you are running in an HA configuration and have just had a leadership election. "
-                            + "You do have a leader config, but we're outputting thread dumps from both fetches of the "
-                            + "timestamp service, in case this second service was created in error. "
-                            + "Thread dumps from both fetches of the timestamp service have been outputted to {}. "
-                            + "If you encounter a MultipleRunningTimestampServices error, please send this file to "
-                            + "support.",
-                    UnsafeArg.of("path", path));
-        }
+        log.warn(
+                "[timestamp-service-creation] Timestamp service fetched for a second time. This means that you may"
+                    + " soon encounter the MultipleRunningTimestampServices error. Thread dumps from both fetches of"
+                    + " the timestamp service have been outputted to {}. If you encounter a"
+                    + " MultipleRunningTimestampServices error, please send this file to support.",
+                UnsafeArg.of("path", path));
     }
 }u}(js (b8581c6ca1106927b53fd0a43ed2256f151e06a2j Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javaj modifiedj K	j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XG  @@ -223,7 +223,7 @@ Function<TimelockService, TimeLockClient> defaultTimelockClientFactory() {
      * TransactionManager will stay uninitialized and continue to throw for all other purposes until the callback
      * returns at which point it will become initialized. If asynchronous initialization is disabled, the callback will
      * be run just before the TM is returned.
-     *
+     * <p>
      * Note that if the callback blocks forever, the TransactionManager will never become initialized, and calling its
      * close() method will block forever as well. If the callback init() fails, and its cleanup() method throws,
      * the TransactionManager will not become initialized and it will be closed.
@@ -366,7 +366,6 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                 metricsManager,
                 installConfig,
                 runtime.map(AtlasDbRuntimeConfig::keyValueService),
-                config().leader(),
                 config().namespace(),
                 Optional.empty(),
                 config().initializeAsync(),
@@ -402,10 +401,10 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
 
         KeyValueService keyValueService = initializeCloseable(
                 () -> {
-                    KeyValueService kvs = atlasFactory.getKeyValueService();
-                    kvs = ProfilingKeyValueService.create(kvs);
+                    KeyValueService kvs = atlasFactory.getKeyValueService(); // CassandraKeyValueServiceImpl
+                    kvs = ProfilingKeyValueService.create(kvs); // Profiling, we think ok
                     kvs = new SafeTableClearerKeyValueService(
-                            lockAndTimestampServices.timelock()::getImmutableTimestamp, kvs);
+                            lockAndTimestampServices.timelock()::getImmutableTimestamp, kvs); // Autodelegate, ok
 
                     // Even if sweep queue writes are enabled, unless targeted sweep is enabled we generally still want
                     // to
@@ -420,13 +419,13 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                                 () -> true);
                     }
 
-                    kvs = TracingKeyValueService.create(kvs);
+                    kvs = TracingKeyValueService.create(kvs); // ok
                     kvs = AtlasDbMetrics.instrumentTimed(
                             metricsManager.getRegistry(),
                             KeyValueService.class,
                             kvs,
-                            MetricRegistry.name(KeyValueService.class));
-                    return ValidatingQueryRewritingKeyValueService.create(kvs);
+                            MetricRegistry.name(KeyValueService.class)); // ok?
+                    return ValidatingQueryRewritingKeyValueService.create(kvs); // ok
                 },
                 closeables);
 
@@ -543,7 +542,6 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                         metricsManager,
                         config(),
                         runtime,
-                        registrar(),
                         keyValueService,
                         transactionService,
                         follower,
@@ -670,10 +668,10 @@ private static Callback<TransactionManager> createClearsTable() {
     /**
      * If we decide to move a service to use thorough sweep; we need to make sure that background sweep won't cause any
      * trouble by deleting large number of empty values at once - causing Cassandra OOMs.
-     *
+     * <p>
      * lockImmutableTsOnReadOnlyTransaction flag is used to decide on disabling background sweep, as this flag is used
      * as an intermediate step for migrating to thorough sweep.
-     *
+     * <p>
      * Separately, users may disable the background sweep process entirely in config, which we respect.
      */
     private boolean runBackgroundSweepProcess() {
@@ -818,7 +816,6 @@ private static BackgroundSweeperImpl initializeSweepBackgroundProcess(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Supplier<AtlasDbRuntimeConfig> runtimeConfigSupplier,
-            Consumer<Object> registrar,
             KeyValueService kvs,
             TransactionService transactionService,
             CleanupFollower follower,u}(js (dad98d7c2690becaffda75d8210ca450a905cadaj Tatlasdb-config/src/main/java/com/palantir/atlasdb/memory/InMemoryAtlasDbFactory.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactory.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactory.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X^  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.cleaner.api.OnCleanupTask;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.impl.InMemoryKeyValueService;
@@ -57,7 +56,6 @@ public String getType() {
      *
      * @param config Configuration file.
      * @param runtimeConfig unused.
-     * @param leaderConfig unused.
      * @param unused unused.
      * @param unusedLongSupplier unused.
      * @param initializeAsync unused. Async initialization has not been implemented and is not propagated.
@@ -68,7 +66,6 @@ public InMemoryKeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> unused,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u     }(js (9d94736c40bc3a7b7c6c4faa07acaa3b2fbfa304j Watlasdb-config/src/main/java/com/palantir/atlasdb/memory/InMemoryDbTimeLockFactory.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryDbTimeLockFactory.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryDbTimeLockFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryDbTimeLockFactory.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -18,7 +18,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
@@ -49,7 +48,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean _initializeAsync) {
         return new InMemoryKeyValueService(true);
     }u}(js (1e67bc43b22caa75f6140e38e93e532137da9f8cj aatlasdb-config/src/test/java/com/palantir/atlasdb/factory/AutoServiceAnnotatedAtlasDbFactory.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAutoServiceAnnotatedAtlasDbFactory.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAutoServiceAnnotatedAtlasDbFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAutoServiceAnnotatedAtlasDbFactory.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.google.common.collect.Lists;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.spi.AtlasDbFactory;
@@ -62,7 +61,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> unused,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(js (a49dbe0806cf2c455793e9c38b3290d2549a32a2j batlasdb-config/src/test/java/com/palantir/atlasdb/factory/ServiceDiscoveringAtlasSupplierTest.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplierTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplierTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplierTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -20,7 +20,6 @@
 import static org.mockito.Mockito.mock;
 
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.spi.AtlasDbFactory;
 import com.palantir.atlasdb.spi.KeyValueServiceConfig;
 import com.palantir.atlasdb.spi.KeyValueServiceConfigHelper;
@@ -36,7 +35,6 @@ public class ServiceDiscoveringAtlasSupplierTest {
     private final KeyValueServiceConfigHelper kvsConfig = () -> AutoServiceAnnotatedAtlasDbFactory.TYPE;
     private final KeyValueServiceConfigHelper invalidKvsConfig = () -> "should not be found kvs";
     private final AtlasDbFactory delegate = new AutoServiceAnnotatedAtlasDbFactory();
-    private final Optional<LeaderConfig> leaderConfig = Optional.of(mock(LeaderConfig.class));
     private final MetricsManager metrics = MetricsManagers.createForTests();
 
     @Test
@@ -49,7 +47,6 @@ public void delegateToFactoriesAnnotatedWithAutoService() {
                         metrics,
                         kvsConfig,
                         Refreshable.only(Optional.empty()),
-                        leaderConfig,
                         Optional.empty(),
                         AtlasDbFactory.THROWING_FRESH_TIMESTAMP_SOURCE,
                         AtlasDbFactory.DEFAULT_INITIALIZE_ASYNC));
@@ -94,7 +91,6 @@ private ServiceDiscoveringAtlasSupplier createAtlasSupplier(KeyValueServiceConfi
                 metrics,
                 providedKvsConfig,
                 Refreshable.only(Optional.empty()),
-                leaderConfig,
                 Optional.empty(),
                 Optional.empty(),
                 AtlasDbConstants.DEFAULT_INITIALIZE_ASYNC,u}(js (fafced885dba46090538c96c11b8e33ca7a1baf4j Yatlasdb-config/src/test/java/com/palantir/atlasdb/memory/InMemoryAsyncAtlasDbFactory.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactory.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactory.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.memory;
 
 import com.google.auto.service.AutoService;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.impl.AsyncInitializeableInMemoryKvs;
@@ -46,7 +45,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager unusedMetricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> unusedRuntimeConfig,
-            Optional<LeaderConfig> unusedLeaderConfig,
             Optional<String> unused,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(js (bf61a9d5b6cd91b9f8ee2a9c1680504983d769ddj ]atlasdb-config/src/test/java/com/palantir/atlasdb/memory/InMemoryAsyncAtlasDbFactoryTest.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactoryTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactoryTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactoryTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j Xb  @@ -80,7 +80,6 @@ private KeyValueService createRawKeyValueService(boolean initializeAsync, boolea
                 new InMemoryAsyncAtlasDbConfig(eventuallySucceed),
                 Refreshable.only(Optional.empty()),
                 Optional.empty(),
-                Optional.empty(),
                 null,
                 initializeAsync);
     }u}(js (2bb76883abdb0aeefd14bca1e2f5ac642666ff8cj Xatlasdb-config/src/test/java/com/palantir/atlasdb/memory/InMemoryAtlasDbFactoryTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactoryTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactoryTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactoryTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X$  @@ -59,12 +59,6 @@ public void asyncInitTimestampServiceSynchronous() {
 
     private KeyValueService createRawKeyValueService(boolean initializeAsync) {
         return factory.createRawKeyValueService(
-                null,
-                null,
-                Refreshable.only(Optional.empty()),
-                Optional.empty(),
-                Optional.empty(),
-                null,
-                initializeAsync);
+                null, null, Refreshable.only(Optional.empty()), Optional.empty(), null, initializeAsync);
     }
 }u}(js (49641fbb8014ea4755f443d2a46dd847148cf6c9j batlasdb-container-test-utils/src/main/java/com/palantir/atlasdb/containers/CassandraContainer.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FCassandraContainer.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FCassandraContainer.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FCassandraContainer.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j Xp  @@ -16,16 +16,13 @@
 package com.palantir.atlasdb.containers;
 
 import com.datastax.driver.core.Cluster;
-import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CqlCapableConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCassandraCredentialsConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCqlCapableConfig;
-import com.palantir.atlasdb.config.ImmutableLeaderConfig;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueService;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl;
 import com.palantir.atlasdb.keyvalue.cassandra.async.DefaultCassandraAsyncKeyValueServiceFactory;
@@ -37,7 +34,6 @@
 import java.net.InetSocketAddress;
 import java.net.SocketAddress;
 import java.util.Map;
-import java.util.Optional;
 import java.util.UUID;
 import java.util.function.Supplier;
 
@@ -49,13 +45,6 @@ public class CassandraContainer extends Container {
     private static final String CONTAINER_NAME = "cassandra";
     private static final String THROWAWAY_CONTAINER_NAME = "cassandra2";
 
-    @SuppressWarnings("OptionalUsedAsFieldOrParameterType")
-    static final Optional<LeaderConfig> LEADER_CONFIG = Optional.of(ImmutableLeaderConfig.builder()
-            .quorumSize(1)
-            .localServer("localhost")
-            .leaders(ImmutableSet.of("localhost"))
-            .build());
-
     private final CassandraKeyValueServiceConfig config;
     private final String dockerComposeFile;
     private final String name;u}(js (e7af481eab1762bea3f999752f6d2741324bf145j Natlasdb-dagger/src/main/java/com/palantir/atlasdb/services/ServicesConfig.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-dagger%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fservices%2FServicesConfig.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-dagger%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fservices%2FServicesConfig.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dagger%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fservices%2FServicesConfig.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -46,7 +46,6 @@ public ServiceDiscoveringAtlasSupplier atlasDbSupplier(MetricsManager metrics) {
                 metrics,
                 atlasDbConfig().keyValueService(),
                 Refreshable.only(atlasDbRuntimeConfig().keyValueService()),
-                atlasDbConfig().leader(),
                 atlasDbConfig().namespace(),
                 Optional.empty(),
                 atlasDbConfig().initializeAsync(),u}(js (27ef72e8bb9601a68c5a9a8c8b770c691b18b92aj atlasdb-dbkvs-tests/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/DbTimestampStoreInvalidatorCreationTest.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-dbkvs-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FDbTimestampStoreInvalidatorCreationTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-dbkvs-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FDbTimestampStoreInvalidatorCreationTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FDbTimestampStoreInvalidatorCreationTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -19,13 +19,11 @@
 import static com.palantir.atlasdb.spi.AtlasDbFactory.NO_OP_FAST_FORWARD_TIMESTAMP;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.Mockito.mock;
 
 import com.google.common.collect.ImmutableSet;
 import com.google.common.util.concurrent.SimpleTimeLimiter;
 import com.google.common.util.concurrent.TimeLimiter;
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.factory.ServiceDiscoveringAtlasSupplier;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.dbkvs.InvalidationRunner;
@@ -49,7 +47,6 @@
 
 public class DbTimestampStoreInvalidatorCreationTest {
     private final MetricsManager metrics = MetricsManagers.createForTests();
-    private final Optional<LeaderConfig> leaderConfig = Optional.of(mock(LeaderConfig.class));
 
     @ClassRule
     public static final TestResourceManager TRM = new TestResourceManager(DbKvsPostgresTestSuite::createKvs);
@@ -124,7 +121,6 @@ private ServiceDiscoveringAtlasSupplier createAtlasSupplier(
                 metrics,
                 providedKvsConfig,
                 Refreshable.only(Optional.empty()),
-                leaderConfig,
                 Optional.empty(),
                 tableReference,
                 AtlasDbConstants.DEFAULT_INITIALIZE_ASYNC,u}(js (0a8f1ae139f220797b9abeebbd4c969fee53e76ej Uatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/DbAtlasDbFactory.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FDbAtlasDbFactory.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FDbAtlasDbFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FDbAtlasDbFactory.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X*  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.ConnectionManagerAwareDbKvs;
@@ -53,7 +52,6 @@ public String getType() {
      *
      * @param config Configuration file.
      * @param runtimeConfig unused.
-     * @param leaderConfig unused.
      * @param namespace unused.
      * @param unusedLongSupplier unused.
      * @param initializeAsync initialize asynchronously
@@ -64,7 +62,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> namespace,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(js (65a0b7f0f54b0b2a052a4cbcb93084d57486a983j `atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/RelationalDbTimeLockFactory.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FRelationalDbTimeLockFactory.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FRelationalDbTimeLockFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FRelationalDbTimeLockFactory.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X~  @@ -19,7 +19,6 @@
 import com.google.auto.service.AutoService;
 import com.google.common.base.Preconditions;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
@@ -54,13 +53,11 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean initializeAsync) {
         return delegate.createRawKeyValueService(
                 metricsManager,
                 config,
                 runtimeConfig,
-                Optional.of(leaderConfig),
                 Optional.empty(), // This refers to an AtlasDB namespace - we use the config to talk to the db
                 AtlasDbFactory.THROWING_FRESH_TIMESTAMP_SOURCE, // This is how we give out timestamps!
                 initializeAsync);u}(js (30239d5d4f11f579d2be533da44b54e474102a2dj Oatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/DbKvs.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FDbKvs.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FDbKvs.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FDbKvs.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X5  @@ -1369,6 +1369,7 @@ private <T> T runReadWrite(TableReference tableRef, ReadWriteTask<T> runner) {
         }
     }
 
+    @SuppressWarnings("CheckReturnValue")
     private <T> void runWriteForceAutocommit(TableReference tableRef, Function<DbWriteTable, T> runner) {
         try (ConnectionSupplier conns = new ConnectionSupplier(connections)) {
             SqlConnection conn = conns.get();
@@ -1381,6 +1382,7 @@ private <T> void runWriteForceAutocommit(TableReference tableRef, Function<DbWri
             if (!autocommit) {
                 runWriteFreshConnection(conns, tableRef, runner);
             } else {
+                // The return value can be ignored because the operation does a non-conditional write.
                 runner.apply(dbTables.createWrite(tableRef, conns));
             }
         }u}(js (90edeba1b42bea88433fe9a153bd7dee8c778e39j 8atlasdb-ete-tests/docker-compose.no-leader.cassandra.ymlj removedj K j K j K j https://github.com/palantir/atlasdb/blob/2116c40ff8c52d8fde537bc25b1b08b85162b17a/atlasdb-ete-tests%2Fdocker-compose.no-leader.cassandra.ymlj https://github.com/palantir/atlasdb/raw/2116c40ff8c52d8fde537bc25b1b08b85162b17a/atlasdb-ete-tests%2Fdocker-compose.no-leader.cassandra.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.no-leader.cassandra.yml?ref=2116c40ff8c52d8fde537bc25b1b08b85162b17aj Xg  @@ -1,32 +0,0 @@
-version: '2'
-
-services:
-  cassandra:
-    image: palantirtechnologies/docker-cassandra-atlasdb:$CASSANDRA_VERSION
-    ports:
-      - "9160"
-      - "9042"
-      - "7199"
-    environment:
-      - MAX_HEAP_SIZE=$CASSANDRA_MAX_HEAP_SIZE
-      - HEAP_NEWSIZE=$CASSANDRA_HEAP_NEWSIZE
-      - LOCAL_JMX=no
-
-  ete1:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.no-leader.cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console'
-    depends_on:
-      - cassandra
-    environment:
-      - ME=ete1
-    ports:
-      - "3828"
-
-  ete-cli:
-    build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.no-leader.cassandra.client.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
-    environment:
-      - ME=ete1
-    depends_on:
-      - ete1u}(js (1302da74efe18e84324e9d1b29b32b97d32d2286j +atlasdb-ete-tests/docker-compose.oracle.ymlj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlj ~https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.oracle.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -2,7 +2,7 @@ version: '2'
 
 services:
   oracle:
-    image: palantirtechnologies/oracle-atlasdb:19.19.0.0-se
+    image: palantirtechnologies/oracle-atlasdb:19.20.0.0-se
     ports:
       - "1521"
 u}(js (34ea6c0b5ef5dbd5272880f34171baede31d5a1bj Hatlasdb-ete-tests/docker/conf/atlasdb-ete.no-leader.cassandra.client.ymlj removedj K j K'j K'j https://github.com/palantir/atlasdb/blob/2116c40ff8c52d8fde537bc25b1b08b85162b17a/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.no-leader.cassandra.client.ymlj https://github.com/palantir/atlasdb/raw/2116c40ff8c52d8fde537bc25b1b08b85162b17a/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.no-leader.cassandra.client.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.no-leader.cassandra.client.yml?ref=2116c40ff8c52d8fde537bc25b1b08b85162b17aj X  @@ -1,39 +0,0 @@
-server:
-  #rootPath: /api/*
-  #applicationContextPath: /
-  #adminContextPath: /
-  applicationConnectors:
-    - type: http
-      port: 3828
-  adminConnectors:
-    - type: http
-      port: 3829
-
-atlasdb:
-  keyValueService:
-    type: cassandra
-    servers:
-      - cassandra:9160
-    poolSize: 20
-    keyspace: atlasete
-    credentials:
-      username: cassandra
-      password: cassandra
-    ssl: false
-    replicationFactor: 1
-    mutationBatchCount: 10000
-    mutationBatchSizeBytes: 10000000
-    fetchBatchCount: 1000
-    autoRefreshNodes: false
-
-  leader:
-    quorumSize: 1
-    learnerLogDir: var/data/paxosLog/learner1
-    acceptorLogDir: var/data/paxosLog/acceptor1
-    localServer: http://${ME}:3828
-    leaders:
-      - http://ete1:3828
-    sslConfiguration:
-      keyStorePath: "var/security/keyStore.jks"
-      keyStorePassword: "keystore"
-      trustStorePath: "var/security/trustStore.jks"u}(js (5717012391f5914faa1531b59bde36cee3aa6a6fj Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraNoLeaderTestSuite.javaj removedj K j K.j K.j https://github.com/palantir/atlasdb/blob/2116c40ff8c52d8fde537bc25b1b08b85162b17a/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraNoLeaderTestSuite.javaj https://github.com/palantir/atlasdb/raw/2116c40ff8c52d8fde537bc25b1b08b85162b17a/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraNoLeaderTestSuite.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraNoLeaderTestSuite.java?ref=2116c40ff8c52d8fde537bc25b1b08b85162b17aj X#  @@ -1,46 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.ete;
-
-import com.google.common.collect.ImmutableList;
-import com.palantir.atlasdb.containers.CassandraEnvironment;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import com.palantir.atlasdb.ete.coordination.MultipleSchemaVersionsCoordinationEteTest;
-import org.junit.ClassRule;
-import org.junit.rules.RuleChain;
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-
-@RunWith(Suite.class)
-@Suite.SuiteClasses({
-    TodoEteTest.class,
-    ServiceExposureEteTest.class,
-    CassandraTimestampsEteTest.class,
-    TimestampManagementEteTest.class,
-    CoordinationEteTest.class,
-    MultipleSchemaVersionsCoordinationEteTest.class,
-    LockWithoutTimelockEteTest.class
-})
-public class CassandraNoLeaderTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");
-
-    @ClassRule
-    public static final RuleChain COMPOSITION_SETUP = EteSetup.setupComposition(
-            CassandraNoLeaderTestSuite.class,
-            "docker-compose.no-leader.cassandra.yml",
-            CLIENTS,
-            CassandraEnvironment.get());
-}u}(js (5022c993a6c8701af08093ae47ccd0f26ec456eej Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraTimeLockTestSuite.javaj modifiedj Kj K
j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -17,22 +17,19 @@
 
 import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.containers.CassandraEnvironment;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import com.palantir.atlasdb.ete.coordination.MultipleSchemaVersionsCoordinationEteTest;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;
 import org.junit.runners.Suite;
 
 @RunWith(Suite.class)
-@Suite.SuiteClasses({
-    TodoEteTest.class,
-    TargetedSweepEteTest.class,
-    CassandraTimestampsEteTest.class,
-    TimestampManagementEteTest.class,
-    CoordinationEteTest.class,
-    MultipleSchemaVersionsCoordinationEteTest.class,
-    LockWithTimelockEteTest.class
+@Suite.SuiteClasses({TodoEteTest.class
+    //    TargetedSweepEteTest.class,
+    //    CassandraTimestampsEteTest.class,
+    //    TimestampManagementEteTest.class,
+    //    CoordinationEteTest.class,
+    //    MultipleSchemaVersionsCoordinationEteTest.class,
+    //    LockWithTimelockEteTest.class
 })
 public class CassandraTimeLockTestSuite extends EteSetup {
     private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");u}(js (dfda65b5b3a490e801cb83c5985bf54d247aafc5j Vatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/TimeLockMigrationEteTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -100,6 +100,7 @@ public class TimeLockMigrationEteTest {
             SslConfiguration.of(Paths.get("var/security/trustStore.jks"));
     public static final TrustContext TRUST_CONTEXT = SslSocketFactories.createTrustContext(SSL_CONFIGURATION);
 
+    private static final long ID = 1L;
     private static final Todo TODO = ImmutableTodo.of("some stuff to do");
     private static final Todo TODO_2 = ImmutableTodo.of("more stuff to do");
     private static final Todo TODO_3 = ImmutableTodo.of("even more stuff to do");
@@ -126,17 +127,14 @@ public static void setUp() {
     }
 
     @Test
-    public void automaticallyMigratesTimestampsAndFailsOnRestart() throws Exception {
-        TimestampService timestampClient = createEteClientFor(TimestampService.class);
+    public void automaticallyMigratesTimestampsAndFailsOnRestart() {
         TodoResource todoClient = createEteClientFor(TodoResource.class);
 
-        todoClient.addTodo(TODO);
+        long embeddedTimestamp = todoClient.addTodoWithIdAndReturnTimestamp(ID, TODO);
         softAssertions
                 .assertThat(todoClient.getTodoList())
                 .as("contains one todo pre-migration")
                 .contains(TODO);
-
-        long embeddedTimestamp = timestampClient.getFreshTimestamp();
         softAssertions
                 .assertThat(embeddedTimestamp)
                 .as("can get a timestamp before migration")u}(js (d818b689da94b2df8cc7d03ee10dfe828a3d8b4dj  atlasdb-impl-shared/build.gradlej modifiedj Kj K j Kj thttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fbuild.gradlej shttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fbuild.gradle?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -50,6 +50,8 @@ dependencies {
   implementation 'jakarta.ws.rs:jakarta.ws.rs-api'
   implementation 'org.apache.commons:commons-lang3'
   implementation 'org.checkerframework:checker-qual'
+  implementation 'org.eclipse.collections:eclipse-collections'
+  implementation 'org.eclipse.collections:eclipse-collections-api'
   implementation 'org.slf4j:slf4j-api'
 
   implementation project(':atlasdb-api')u}(js (0d8de51ab4362cdda2463fb83c926e38cf12c269j fatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTable.javaj modifiedj Kj K
j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X
  @@ -22,6 +22,7 @@
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.Iterables;
+import com.google.common.collect.Maps;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.MoreExecutors;
@@ -33,7 +34,6 @@
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.common.exception.AtlasDbDependencyException;
-import com.palantir.common.streams.KeyedStream;
 import com.palantir.common.time.Clock;
 import com.palantir.common.time.SystemClock;
 import com.palantir.logsafe.Preconditions;
@@ -52,6 +52,8 @@
 import java.util.stream.Collectors;
 import java.util.stream.StreamSupport;
 import javax.annotation.Nonnull;
+import org.eclipse.collections.api.factory.primitive.ObjectLongMaps;
+import org.eclipse.collections.api.map.primitive.MutableObjectLongMap;
 import org.immutables.value.Value;
 
 public class ResilientCommitTimestampAtomicTable implements AtomicTable<Long, TransactionStatus> {
@@ -141,16 +143,16 @@ public void update(Long key, TransactionStatus value) throws KeyAlreadyExistsExc
 
     @Override
     public void updateMultiple(Map<Long, TransactionStatus> keyValues) throws KeyAlreadyExistsException {
-        Map<Cell, Long> cellToStartTs = keyValues.keySet().stream()
-                .collect(Collectors.toMap(encodingStrategy::encodeStartTimestampAsCell, x -> x));
-        Map<Cell, byte[]> stagingValues = KeyedStream.stream(cellToStartTs)
-                .map(startTs -> encodingStrategy.encodeCommitStatusAsValue(
-                        startTs, AtomicValue.staging(keyValues.get(startTs))))
-                .collectToMap();
+        MutableObjectLongMap<Cell> cellToStartTs = ObjectLongMaps.mutable.withInitialCapacity(keyValues.size());
+        keyValues.keySet().forEach(ts -> cellToStartTs.put(encodingStrategy.encodeStartTimestampAsCell(ts), ts));
+
+        Map<Cell, byte[]> stagingValues = Maps.newHashMapWithExpectedSize(cellToStartTs.size());
+        cellToStartTs.forEachKeyValue((cell, startTs) -> stagingValues.put(
+                cell,
+                encodingStrategy.encodeCommitStatusAsValue(startTs, AtomicValue.staging(keyValues.get(startTs)))));
+
         store.batchAtomicUpdate(stagingValues);
-        store.put(KeyedStream.stream(stagingValues)
-                .map(encodingStrategy::transformStagingToCommitted)
-                .collectToMap());
+        store.put(Maps.transformValues(stagingValues, encodingStrategy::transformStagingToCommitted));
     }
 
     @Overrideu}(js (be6fbc6e8ce696fafb59c3d25b4a7d665bd2ac80j _atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/ClientLockDiagnosticCollector.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollector.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollector.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollector.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -27,6 +27,7 @@
 import java.util.Set;
 import java.util.UUID;
 import java.util.stream.LongStream;
+import org.eclipse.collections.api.map.primitive.ImmutableLongLongMap;
 import org.immutables.value.Value;
 
 /**
@@ -105,6 +106,6 @@ interface ConflictTrace {
         Map<Cell, Long> latestTimestamps();
 
         @Value.Parameter
-        Map<Long, Long> commitTimestamps();
+        ImmutableLongLongMap commitTimestamps();
     }
 }u}(js (2ba2417016f1307f2e893ab84628481d801dc9e6j catlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/ClientLockDiagnosticCollectorImpl.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollectorImpl.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollectorImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollectorImpl.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -29,6 +29,7 @@
 import java.util.function.UnaryOperator;
 import java.util.stream.LongStream;
 import javax.annotation.Nullable;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
 
 /**
  * TODO(fdesouza): Remove this once PDS-95791 is resolved.
@@ -63,8 +64,9 @@ public void collect(
             long startTimestamp,
             Map<Cell, Long> keysToLoad,
             Map<Cell, Long> latestTimestamps,
-            Map<Long, Long> commitTimestamps) {
-        ConflictTrace conflictTrace = ImmutableConflictTrace.of(keysToLoad, latestTimestamps, commitTimestamps);
+            LongLongMap commitTimestamps) {
+        ConflictTrace conflictTrace =
+                ImmutableConflictTrace.of(keysToLoad, latestTimestamps, commitTimestamps.toImmutable());
         cache.asMap().compute(startTimestamp, mutateDigest(digest -> digest.withNewConflictDigest(conflictTrace)));
     }
 u}(js (a50601f1936696d69de12e1e665ac187788ac034j Patlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/ConflictTracer.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FConflictTracer.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FConflictTracer.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FConflictTracer.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -18,6 +18,7 @@
 
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import java.util.Map;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
 
 /**
  * TODO(fdesouza): Remove this once PDS-95791 is resolved.
@@ -31,5 +32,5 @@ void collect(
             long startTimestamp,
             Map<Cell, Long> keysToLoad,
             Map<Cell, Long> latestTimestamps,
-            Map<Long, Long> commitTimestamps);
+            LongLongMap commitTimestamps);
 }u}(js (7f90d96f996595cc4084c6ca9063c5df68e00be7j fatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/LockDiagnosticConjureTimelockService.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FLockDiagnosticConjureTimelockService.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FLockDiagnosticConjureTimelockService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FLockDiagnosticConjureTimelockService.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -16,10 +16,12 @@
 
 package com.palantir.atlasdb.debug;
 
+import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.timelock.api.ConjureGetFreshTimestampsRequest;
 import com.palantir.atlasdb.timelock.api.ConjureGetFreshTimestampsRequestV2;
 import com.palantir.atlasdb.timelock.api.ConjureGetFreshTimestampsResponse;
 import com.palantir.atlasdb.timelock.api.ConjureGetFreshTimestampsResponseV2;
+import com.palantir.atlasdb.timelock.api.ConjureLockDescriptor;
 import com.palantir.atlasdb.timelock.api.ConjureLockRequest;
 import com.palantir.atlasdb.timelock.api.ConjureLockResponse;
 import com.palantir.atlasdb.timelock.api.ConjureRefreshLocksRequest;
@@ -42,6 +44,7 @@
 import com.palantir.lock.v2.LeaderTime;
 import com.palantir.tokens.auth.AuthHeader;
 import java.util.Optional;
+import java.util.Set;
 
 /**
  * TODO(fdesouza): Remove this once PDS-95791 is resolved.
@@ -97,24 +100,26 @@ public LeaderTime leaderTime(AuthHeader authHeader, String namespace) {
 
     @Override
     public ConjureLockResponse lock(AuthHeader authHeader, String namespace, ConjureLockRequest request) {
+        Set<ConjureLockDescriptor> lockDescriptors = ImmutableSet.copyOf(request.getLockDescriptors());
         request.getClientDescription()
                 .flatMap(LockDiagnosticConjureTimelockService::tryParseStartTimestamp)
-                .ifPresent(startTimestamp -> lockDiagnosticCollector.collect(
-                        startTimestamp, request.getRequestId(), request.getLockDescriptors()));
+                .ifPresent(startTimestamp ->
+                        lockDiagnosticCollector.collect(startTimestamp, request.getRequestId(), lockDescriptors));
         ConjureLockResponse response = conjureDelegate.lock(authHeader, namespace, request);
-        localLockTracker.logLockResponse(request.getLockDescriptors(), response);
+        localLockTracker.logLockResponse(lockDescriptors, response);
         return response;
     }
 
     @Override
     public ConjureWaitForLocksResponse waitForLocks(
             AuthHeader authHeader, String namespace, ConjureLockRequest request) {
+        Set<ConjureLockDescriptor> lockDescriptors = ImmutableSet.copyOf(request.getLockDescriptors());
         request.getClientDescription()
                 .flatMap(LockDiagnosticConjureTimelockService::tryParseStartTimestamp)
-                .ifPresent(startTimestamp -> lockDiagnosticCollector.collect(
-                        startTimestamp, request.getRequestId(), request.getLockDescriptors()));
+                .ifPresent(startTimestamp ->
+                        lockDiagnosticCollector.collect(startTimestamp, request.getRequestId(), lockDescriptors));
         ConjureWaitForLocksResponse response = conjureDelegate.waitForLocks(authHeader, namespace, request);
-        localLockTracker.logWaitForLocksResponse(request.getLockDescriptors(), response);
+        localLockTracker.logWaitForLocksResponse(lockDescriptors, response);
         return response;
     }
 u}(js (07430a7ea8f348014166e1a21707d9a2d6fa0656j gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableRemappingKeyValueService.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XQ  @@ -482,4 +482,9 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
             throw new IllegalArgumentException(e);
         }
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(js (5ef033a6ef29cb0e07d55d81f9e01236df5838d0j gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableSplittingKeyValueService.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -413,4 +413,9 @@ public List<byte[]> getRowKeysInRange(TableReference tableRef, byte[] startRow,
     public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<Cell, Long> timestampByCell) {
         return getDelegate(tableRef).getAsync(tableRef, timestampByCell);
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegates.stream().allMatch(KeyValueService::sweepsEntriesInStrictlyNonDecreasingFashion);
+    }
 }u}(js (f4fc16c9cd18f98e0b88191831c6acfff46d8418j Qatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweepTaskRunner.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -152,7 +152,7 @@ private SweepResults runInternal(
             return SweepResults.createEmptySweepResultWithNoMoreToSweep();
         }
         SweepStrategy sweepStrategy = SweepStrategy.from(
-                TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy());
+                TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy(), keyValueService);
         Optional<Sweeper> maybeSweeper = sweepStrategy.getSweeperStrategy().map(Sweeper::of);
         if (runType == RunType.WAS_CONSERVATIVE_NOW_THOROUGH
                 && sweepStrategy.getSweeperStrategy().equals(Optional.of(SweeperStrategy.CONSERVATIVE))) {u}(js (2f8a21800d40cf1133b80f1dfeb5d0fe9712c6e4j Uatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/PartitionInfo.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FPartitionInfo.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FPartitionInfo.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FPartitionInfo.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X0  @@ -20,14 +20,13 @@
 
 @Value.Immutable
 public interface PartitionInfo {
+    @Value.Parameter
     ShardAndStrategy shardAndStrategy();
 
+    @Value.Parameter
     long timestamp();
 
     static PartitionInfo of(int shard, SweeperStrategy strategy, long timestamp) {
-        return ImmutablePartitionInfo.builder()
-                .shardAndStrategy(ShardAndStrategy.of(shard, strategy))
-                .timestamp(timestamp)
-                .build();
+        return ImmutablePartitionInfo.of(ShardAndStrategy.of(shard, strategy), timestamp);
     }
 }u}(js (20af9fe9cf3ce8a1c398fa50ae5885df278e98d9j Xatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/ShardAndStrategy.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FShardAndStrategy.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FShardAndStrategy.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FShardAndStrategy.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XU  @@ -22,8 +22,10 @@
 
 @Value.Immutable
 public abstract class ShardAndStrategy {
+    @Value.Parameter
     public abstract int shard();
 
+    @Value.Parameter
     public abstract SweeperStrategy strategy();
 
     public String toText() {
@@ -51,18 +53,15 @@ public boolean isThorough() {
     }
 
     public static ShardAndStrategy of(int shard, SweeperStrategy sweepStrategy) {
-        return ImmutableShardAndStrategy.builder()
-                .shard(shard)
-                .strategy(sweepStrategy)
-                .build();
+        return ImmutableShardAndStrategy.of(shard, sweepStrategy);
     }
 
     public static ShardAndStrategy conservative(int shard) {
-        return ShardAndStrategy.of(shard, SweeperStrategy.CONSERVATIVE);
+        return ImmutableShardAndStrategy.of(shard, SweeperStrategy.CONSERVATIVE);
     }
 
     public static ShardAndStrategy thorough(int shard) {
-        return ShardAndStrategy.of(shard, SweeperStrategy.THOROUGH);
+        return ImmutableShardAndStrategy.of(shard, SweeperStrategy.THOROUGH);
     }
 
     public static ShardAndStrategy nonSweepable() {u}(js (914d867ae841df30303a097c21539e62c7f411aej Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/SweepQueueTable.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepQueueTable.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepQueueTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepQueueTable.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X{  @@ -55,6 +55,10 @@ public void enqueue(List<WriteInfo> allWrites) {
     }
 
     private void enqueueFiltered(Map<PartitionInfo, List<WriteInfo>> partitionedWrites) {
+        if (partitionedWrites.isEmpty()) {
+            return;
+        }
+
         Map<Cell, byte[]> referencesToDedicatedCells = new HashMap<>();
         Map<Cell, byte[]> cellsToWrite = new HashMap<>();
 u}(js (a9b4705f8f7aa3df1b445c48b97b8bbc12756d22j Vatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/SweepableCells.javaj modifiedj Kj Kj K,j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepableCells.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepableCells.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepableCells.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -52,6 +52,7 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.ArrayList;
 import java.util.Collection;
+import java.util.Comparator;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Iterator;
@@ -61,6 +62,9 @@
 import java.util.Set;
 import java.util.SortedSet;
 import java.util.stream.Collectors;
+import org.eclipse.collections.api.factory.primitive.LongSets;
+import org.eclipse.collections.api.set.primitive.LongSet;
+import org.eclipse.collections.api.set.primitive.MutableLongSet;
 
 public class SweepableCells extends SweepQueueTable {
     private static final SafeLogger log = SafeLoggerFactory.get(SweepableCells.class);
@@ -208,7 +212,7 @@ private WriteBatch getBatchOfWrites(
             writeBatch.merge(getWrites(row, col, entry.getValue()));
         }
         // there may be entries remaining with the same start timestamp as the last processed one. If that is the case
-        // we want to include these ones as well. This is OK since there are at most MAX_CELLS_GENERIC - 1 of them.
+        // we want to include these as well. This is OK since there are at most MAX_CELLS_GENERIC - 1 of them.
         while (resultIterator.hasNext()) {
             Map.Entry<Cell, Value> entry = resultIterator.peek();
             SweepableCellsTable.SweepableCellsColumn col = computeColumn(entry);
@@ -227,10 +231,9 @@ private static final class WriteBatch {
         private final Multimap<Long, WriteInfo> writesByStartTs = HashMultimap.create();
         private final List<SweepableCellsRow> dedicatedRows = new ArrayList<>();
 
-        WriteBatch merge(WriteBatch other) {
+        void merge(WriteBatch other) {
             writesByStartTs.putAll(other.writesByStartTs);
             dedicatedRows.addAll(other.dedicatedRows);
-            return this;
         }
 
         static WriteBatch single(WriteInfo writeInfo) {
@@ -264,7 +267,7 @@ private TimestampsToSweep getTimestampsToSweepDescendingAndCleanupAborted(
             Multimap<Long, WriteInfo> writesByStartTs) {
         Map<Long, Long> startToCommitTs = commitTsCache.loadBatch(writesByStartTs.keySet());
         Map<TableReference, Multimap<Cell, Long>> cellsToDelete = new HashMap<>();
-        List<Long> committedTimestamps = new ArrayList<>();
+        MutableLongSet committedTimestamps = LongSets.mutable.empty();
         long lastSweptTs = minTsExclusive;
         long lastSeenCommitTs = 0L;
         boolean processedAll = true;
@@ -277,11 +280,12 @@ private TimestampsToSweep getTimestampsToSweepDescendingAndCleanupAborted(
             if (commitTs == TransactionConstants.FAILED_COMMIT_TS) {
                 lastSweptTs = startTs;
                 abortedTimestamps.add(startTs);
-                writesByStartTs.get(startTs).stream()
-                        .filter(info -> info.writeRef().isPresent())
-                        .forEach(write -> cellsToDelete
-                                .computeIfAbsent(write.writeRef().get().tableRef(), ignore -> HashMultimap.create())
-                                .put(write.writeRef().get().cell(), write.timestamp()));
+                writesByStartTs.get(startTs).forEach(write -> {
+                    Optional<WriteReference> writeReference = write.writeRef();
+                    writeReference.ifPresent(reference -> cellsToDelete
+                            .computeIfAbsent(reference.tableRef(), _ignore -> HashMultimap.create())
+                            .put(reference.cell(), write.timestamp()));
+                });
             } else if (commitTs < sweepTs) {
                 lastSweptTs = startTs;
                 committedTimestamps.add(startTs);
@@ -318,24 +322,26 @@ private TimestampsToSweep getTimestampsToSweepDescendingAndCleanupAborted(
         });
 
         return ImmutableTimestampsToSweep.builder()
-                .timestampsDescending(
-                        ImmutableSortedSet.copyOf(committedTimestamps).descendingSet())
+                .timestampsDescending(sortDescending(committedTimestamps))
                 .abortedTimestamps(abortedTimestamps)
                 .maxSwept(lastSweptTs)
                 .lastSeenCommitTs(lastSeenCommitTs)
                 .processedAll(processedAll)
                 .build();
     }
 
+    private static ImmutableSortedSet<Long> sortDescending(LongSet committedTimestamps) {
+        ImmutableSortedSet.Builder<Long> timestampsDescending =
+                ImmutableSortedSet.<Long>orderedBy(Comparator.reverseOrder());
+        committedTimestamps.forEach(timestampsDescending::add);
+        return timestampsDescending.build();
+    }
+
     private Collection<WriteInfo> getWritesToSweep(Multimap<Long, WriteInfo> writesByStartTs, SortedSet<Long> startTs) {
-        Map<CellReference, WriteInfo> writesToSweepFor = new HashMap<>();
-        startTs.stream()
-                .map(writesByStartTs::get)
-                .flatMap(Collection::stream)
-                .filter(write -> write.writeRef().isPresent())
-                .forEach(write ->
-                        writesToSweepFor.putIfAbsent(write.writeRef().get().cellReference(), write));
-        return writesToSweepFor.values();
+        Map<CellReference, WriteInfo> writesToSweep = new HashMap<>();
+        startTs.stream().map(writesByStartTs::get).flatMap(Collection::stream).forEach(write -> write.writeRef()
+                .ifPresent(reference -> writesToSweep.putIfAbsent(reference.cellReference(), write)));
+        return writesToSweep.values();
     }
 
     private long getLastSweptTs(u}(js (970150ceb69466af2115ad6aa21eb8a845799996j Qatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfo.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfo.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfo.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfo.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -22,7 +22,7 @@
 import com.palantir.atlasdb.keyvalue.api.WriteReference;
 import com.palantir.atlasdb.sweep.Sweeper;
 import java.time.LocalDate;
-import java.time.ZoneId;
+import java.time.ZoneOffset;
 import java.util.Optional;
 import org.immutables.value.Value;
 
@@ -55,7 +55,7 @@ default int dayRotatingHash() {
         int hash = 5381;
         hash = hash * 1439
                 + writeRef().orElse(SweepQueueUtils.DUMMY).cellReference().goodHash();
-        hash = hash * 1439 + LocalDate.now(ZoneId.of("UTC")).hashCode();
+        hash = hash * 1439 + LocalDate.now(ZoneOffset.UTC).hashCode();
         return hash;
     }
 u}(js (ac0a8f06091a11835443cd19abb4a3d348a5f781j \atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitioner.javaj modifiedj K3j Kj KMj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X&  @@ -28,9 +28,12 @@
 import com.palantir.common.base.Throwables;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
-import java.util.Set;
+import java.util.Optional;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 
@@ -54,39 +57,59 @@ public WriteInfoPartitioner(KeyValueService kvs, Supplier<Integer> numShards) {
      * writes according to shard and strategy.
      */
     public Map<PartitionInfo, List<WriteInfo>> filterAndPartition(List<WriteInfo> writes) {
-        return writes.stream().collect(Collectors.groupingBy(WriteInfo::timestamp)).values().stream()
-                .map(this::filterAndPartitionForSingleTimestamp)
-                .map(Map::entrySet)
-                .flatMap(Set::stream)
-                .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
+        if (writes.isEmpty()) {
+            return Map.of();
+        }
+
+        Collection<List<WriteInfo>> partitionedWrites = writes.stream()
+                .collect(Collectors.groupingBy(WriteInfo::timestamp))
+                .values();
+
+        Map<PartitionInfo, List<WriteInfo>> writesPartitionedByTimestamp = new HashMap<>();
+        for (List<WriteInfo> writeInfos : partitionedWrites) {
+            filterAndPartitionForSingleTimestamp(writeInfos)
+                    .forEach((partition, writeInfo) -> writesPartitionedByTimestamp
+                            .computeIfAbsent(partition, _k -> new ArrayList<>())
+                            .addAll(writeInfo));
+        }
+        return writesPartitionedByTimestamp;
     }
 
     private Map<PartitionInfo, List<WriteInfo>> filterAndPartitionForSingleTimestamp(List<WriteInfo> writes) {
-        if (writes.stream().allMatch(writeInfo -> getStrategy(writeInfo) == SweeperStrategy.NON_SWEEPABLE)) {
-            long startTs = writes.stream().findFirst().get().timestamp();
-            return SweepQueueUtils.partitioningForNonSweepable(startTs);
+        if (writes.isEmpty()) {
+            return Map.of();
         }
-        return partitionWritesByShardStrategyTimestamp(writes);
-    }
 
-    private Map<PartitionInfo, List<WriteInfo>> partitionWritesByShardStrategyTimestamp(List<WriteInfo> writes) {
         int shards = numShards.get();
-        return writes.stream()
-                .filter(writeInfo -> getStrategy(writeInfo) != SweeperStrategy.NON_SWEEPABLE)
-                .collect(Collectors.groupingBy(write -> getPartitionInfo(write, shards), Collectors.toList()));
-    }
 
-    private PartitionInfo getPartitionInfo(WriteInfo write, int shards) {
-        return PartitionInfo.of(write.toShard(shards), getStrategy(write), write.timestamp());
+        // Note that we do a single pass over writes to determine their sweep strategy, and only add sweepable write to
+        // sweepablePartitionedWrites map, so when it is empty we consider all writes for that timestamp non-sweepable.
+        Map<PartitionInfo, List<WriteInfo>> sweepablePartitionedWrites = new HashMap<>();
+        for (WriteInfo writeInfo : writes) {
+            SweeperStrategy strategy = getStrategy(writeInfo);
+            if (strategy != SweeperStrategy.NON_SWEEPABLE) {
+                PartitionInfo partition = PartitionInfo.of(writeInfo.toShard(shards), strategy, writeInfo.timestamp());
+                sweepablePartitionedWrites
+                        .computeIfAbsent(partition, _k -> new ArrayList<>())
+                        .add(writeInfo);
+            }
+        }
+
+        if (sweepablePartitionedWrites.isEmpty()) {
+            // All writes for this partition are non-sweepable
+            long startTs = writes.stream().findFirst().orElseThrow().timestamp();
+            return SweepQueueUtils.partitioningForNonSweepable(startTs);
+        }
+        return sweepablePartitionedWrites;
     }
 
     @VisibleForTesting
     SweeperStrategy getStrategy(WriteInfo writeInfo) {
-        return writeInfo
-                .writeRef()
-                .map(WriteReference::tableRef)
-                .map(this::getStrategyForTable)
-                .orElse(SweeperStrategy.NON_SWEEPABLE);
+        Optional<WriteReference> writeReference = writeInfo.writeRef();
+        if (writeReference.isPresent()) {
+            return getStrategyForTable(writeReference.get().tableRef());
+        }
+        return SweeperStrategy.NON_SWEEPABLE;
     }
 
     SweeperStrategy getStrategyForTable(TableReference tableRef) {
@@ -95,9 +118,11 @@ SweeperStrategy getStrategyForTable(TableReference tableRef) {
 
     private SweeperStrategy getStrategyFromKvs(TableReference tableRef) {
         try {
-            return SweepStrategy.from(TableMetadata.BYTES_HYDRATOR
-                            .hydrateFromBytes(kvs.getMetadataForTable(tableRef))
-                            .getSweepStrategy())
+            return SweepStrategy.from(
+                            TableMetadata.BYTES_HYDRATOR
+                                    .hydrateFromBytes(kvs.getMetadataForTable(tableRef))
+                                    .getSweepStrategy(),
+                            kvs)
                     .getSweeperStrategy()
                     .orElse(SweeperStrategy.NON_SWEEPABLE);
         } catch (Exception e) {u      }(js (15aa07ec06196f530db279a3f45361e4dbb9c46ej hatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIterator.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X	  @@ -15,8 +15,10 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterators;
+import com.google.common.math.IntMath;
 import com.palantir.atlasdb.AtlasDbPerformanceConstants;
 import com.palantir.common.base.ClosableIterator;
 import com.palantir.common.base.ClosableIterators;
@@ -32,9 +34,17 @@
 public class BatchSizeIncreasingIterator<T> implements Closeable {
     private static final SafeLogger log = SafeLoggerFactory.get(BatchSizeIncreasingIterator.class);
 
+    @VisibleForTesting
+    static final Integer MAX_FACTOR = 8;
+
+    @VisibleForTesting
+    static final Integer INCREASE_FACTOR = 4;
+
     private final int originalBatchSize;
     private final BatchProvider<T> batchProvider;
 
+    private final int maxBatchSize;
+
     private ClosableIterator<T> currentResults;
     private byte[] lastToken;
 
@@ -51,6 +61,8 @@ public BatchSizeIncreasingIterator(
         if (currentResults != null) {
             this.lastBatchSize = originalBatchSize;
         }
+        this.maxBatchSize = Math.min(
+                IntMath.saturatedMultiply(originalBatchSize, MAX_FACTOR), AtlasDbPerformanceConstants.MAX_BATCH_SIZE);
     }
 
     public void markNumResultsNotDeleted(int resultsInBatch) {
@@ -64,15 +76,15 @@ int getBestBatchSize() {
             return originalBatchSize;
         }
         final long batchSize;
-        long maxNewBatchSize = numReturned * 4;
+        long maxNewBatchSize = numReturned * INCREASE_FACTOR;
         if (numNotDeleted == 0) {
             // If everything we've seen has been deleted, we should be aggressive about getting more rows.
             batchSize = maxNewBatchSize;
         } else {
             batchSize = Math.min(
                     (long) Math.ceil(originalBatchSize * (numReturned / (double) numNotDeleted)), maxNewBatchSize);
         }
-        return (int) Math.min(batchSize, AtlasDbPerformanceConstants.MAX_BATCH_SIZE);
+        return (int) Math.min(batchSize, maxBatchSize);
     }
 
     private void updateResultsIfNeeded() {
@@ -116,6 +128,11 @@ public BatchResult<T> getBatch() {
         return ImmutableBatchResult.of(list, isLastBatch);
     }
 
+    @VisibleForTesting
+    int getMaxBatchSize() {
+        return maxBatchSize;
+    }
+
     @Value.Immutable
     interface BatchResult<T> {
         @Value.Parameteru}(js (19087bbc54d879f15116073134966b2a2365ccd7j batlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoader.javaj modifiedj K"j Kj KAj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -43,14 +43,21 @@
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.HashMap;
-import java.util.HashSet;
 import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.TimeUnit;
 import java.util.function.Supplier;
 import javax.annotation.Nullable;
+import org.eclipse.collections.api.LongIterable;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
+import org.eclipse.collections.api.map.primitive.MutableLongLongMap;
+import org.eclipse.collections.api.set.ImmutableSet;
+import org.eclipse.collections.api.set.primitive.LongSet;
+import org.eclipse.collections.api.set.primitive.MutableLongSet;
+import org.eclipse.collections.impl.factory.primitive.LongLongMaps;
+import org.eclipse.collections.impl.factory.primitive.LongSets;
+import org.eclipse.collections.impl.map.mutable.primitive.LongLongHashMap;
 
 public final class CommitTimestampLoader {
     private static final SafeLogger log = SafeLoggerFactory.get(CommitTimestampLoader.class);
@@ -90,26 +97,25 @@ public CommitTimestampLoader(
      * Returns a map from start timestamp to commit timestamp. If a start timestamp wasn't committed, then it will be
      * missing from the map. This method will block until the transactions for these start timestamps are complete.
      */
-    ListenableFuture<Map<Long, Long>> getCommitTimestamps(
+    ListenableFuture<LongLongMap> getCommitTimestamps(
             @Nullable TableReference tableRef,
-            Iterable<Long> startTimestamps,
+            LongIterable startTimestamps,
             boolean shouldWaitForCommitterToComplete,
             AsyncTransactionService asyncTransactionService) {
-        if (Iterables.isEmpty(startTimestamps)) {
-            return Futures.immediateFuture(ImmutableMap.of());
+        if (startTimestamps.isEmpty()) {
+            return Futures.immediateFuture(LongLongMaps.immutable.of());
         }
 
-        Set<Long> pendingGets = new HashSet<>();
-        Map<Long, Long> result = new HashMap<>();
-
-        for (Long startTs : startTimestamps) {
+        MutableLongSet pendingGets = LongSets.mutable.of();
+        MutableLongLongMap result = new LongLongHashMap();
+        startTimestamps.each(startTs -> {
             Long commitTs = timestampCache.getCommitTimestampIfPresent(startTs);
             if (commitTs == null) {
                 pendingGets.add(startTs);
             } else {
                 result.put(startTs, commitTs);
             }
-        }
+        });
 
         if (pendingGets.isEmpty()) {
             return Futures.immediateFuture(result);
@@ -123,16 +129,16 @@ ListenableFuture<Map<Long, Long>> getCommitTimestamps(
         return Futures.transform(
                 loadCommitTimestamps(asyncTransactionService, pendingGets),
                 rawResults -> {
-                    Map<Long, Long> loadedCommitTs = cacheKnownLoadedValuesAndValidate(rawResults);
+                    LongLongMap loadedCommitTs = cacheKnownLoadedValuesAndValidate(rawResults);
                     result.putAll(loadedCommitTs);
                     return result;
                 },
                 MoreExecutors.directExecutor());
     }
 
     // We do not cache unknown transactions as they are already being cached at a lower level.
-    private Map<Long, Long> cacheKnownLoadedValuesAndValidate(Map<Long, TransactionStatus> rawResults) {
-        Map<Long, Long> results = new HashMap<>();
+    private LongLongMap cacheKnownLoadedValuesAndValidate(Map<Long, TransactionStatus> rawResults) {
+        MutableLongLongMap results = LongLongMaps.mutable.empty();
         boolean shouldValidate = false;
 
         // The method is written this way to avoid multiple scans on the result set as it is on a hot path.
@@ -158,30 +164,27 @@ private Map<Long, Long> cacheKnownLoadedValuesAndValidate(Map<Long, TransactionS
             throwIfTransactionsTableSweptBeyondReadOnlyTxn();
         }
 
-        return results;
+        return results.asUnmodifiable();
     }
 
     /**
      * We will block here until the passed transactions have released their lock. This means that the committing
      * transaction is either complete or it has failed, and we are allowed to roll it back.
      */
-    private void waitForCommitToComplete(Iterable<Long> startTimestamps) {
-        Set<LockDescriptor> lockDescriptors = new HashSet<>();
-        for (long start : startTimestamps) {
-            if (start < immutableTimestamp) {
-                // We don't need to block in this case because this transaction is already complete
-                continue;
-            }
-            lockDescriptors.add(AtlasRowLockDescriptor.of(
-                    TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
-                    TransactionConstants.getValueForTimestamp(start)));
-        }
+    private void waitForCommitToComplete(LongIterable startTimestamps) {
+        ImmutableSet<LockDescriptor> lockDescriptors = startTimestamps
+                // We only need to block and wait for transactions on or after immutable timestamp
+                .select(start -> start >= immutableTimestamp)
+                .collect(start -> AtlasRowLockDescriptor.of(
+                        TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
+                        TransactionConstants.getValueForTimestamp(start)))
+                .toImmutableSet();
 
         if (lockDescriptors.isEmpty()) {
             return;
         }
 
-        waitFor(lockDescriptors);
+        waitFor(lockDescriptors.castToSet());
     }
 
     private void waitFor(Set<LockDescriptor> lockDescriptors) {
@@ -202,7 +205,7 @@ private void waitFor(Set<LockDescriptor> lockDescriptors) {
         }
     }
 
-    private void waitForCommitterToComplete(@Nullable TableReference tableRef, Iterable<Long> startTimestamps) {
+    private void waitForCommitterToComplete(@Nullable TableReference tableRef, LongIterable startTimestamps) {
         Timer.Context timer = getTimer("waitForCommitTsMillis").time();
         waitForCommitToComplete(startTimestamps);
         long waitForCommitTsMillis = TimeUnit.NANOSECONDS.toMillis(timer.stop());
@@ -222,16 +225,16 @@ private Timer getTimer(String name) {
     }
 
     private static ListenableFuture<Map<Long, TransactionStatus>> loadCommitTimestamps(
-            AsyncTransactionService asyncTransactionService, Set<Long> startTimestamps) {
+            AsyncTransactionService asyncTransactionService, LongSet startTimestamps) {
         // distinguish between a single timestamp and a batch, for more granular metrics
         if (startTimestamps.size() == 1) {
-            Long singleTs = Iterables.getOnlyElement(startTimestamps);
+            long singleTs = startTimestamps.longIterator().next();
             return Futures.transform(
                     asyncTransactionService.getAsyncV2(singleTs),
                     commitState -> ImmutableMap.of(singleTs, commitState),
                     MoreExecutors.directExecutor());
         } else {
-            return asyncTransactionService.getAsyncV2(startTimestamps);
+            return asyncTransactionService.getAsyncV2(startTimestamps.collect(Long::valueOf));
         }
     }
 u}(js (76479dbfe5fb53d1b0583122fda4de393de7e01bj datlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.javaj modifiedj K!j Kj K8j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -109,6 +109,13 @@
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 import javax.annotation.Nullable;
+import org.eclipse.collections.api.LongIterable;
+import org.eclipse.collections.api.factory.primitive.LongLongMaps;
+import org.eclipse.collections.api.factory.primitive.LongSets;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
+import org.eclipse.collections.api.map.primitive.MutableLongLongMap;
+import org.eclipse.collections.api.set.primitive.LongSet;
+import org.eclipse.collections.api.set.primitive.MutableLongSet;
 import org.immutables.value.Value;
 
 /**
@@ -881,42 +888,42 @@ protected TransactionScopedCache getCache() {
             }
 
             @Override
-            protected ListenableFuture<Map<Long, Long>> getCommitTimestamps(
+            protected ListenableFuture<LongLongMap> getCommitTimestamps(
                     TableReference tableRef,
-                    Iterable<Long> startTimestamps,
+                    LongIterable startTimestamps,
                     boolean shouldWaitForCommitterToComplete,
                     AsyncTransactionService asyncTransactionService) {
                 long myStart = SerializableTransaction.this.getTimestamp();
                 PartitionedTimestamps partitionedTimestamps = splitTransactionBeforeAndAfter(myStart, startTimestamps);
 
-                ListenableFuture<Map<Long, Long>> postStartCommitTimestamps =
+                ListenableFuture<LongLongMap> postStartCommitTimestamps =
                         getCommitTimestampsForTransactionsStartedAfterMe(
                                 tableRef, asyncTransactionService, partitionedTimestamps.afterStart());
 
                 // We are ok to block here because if there is a cycle of transactions that could result in a deadlock,
                 // then at least one of them will be in the ab
-                ListenableFuture<Map<Long, Long>> preStartCommitTimestamps = super.getCommitTimestamps(
+                ListenableFuture<LongLongMap> preStartCommitTimestamps = super.getCommitTimestamps(
                         tableRef,
                         partitionedTimestamps.beforeStart(),
                         shouldWaitForCommitterToComplete,
                         asyncTransactionService);
 
                 return Futures.whenAllComplete(postStartCommitTimestamps, preStartCommitTimestamps)
                         .call(
-                                () -> ImmutableMap.<Long, Long>builder()
-                                        .putAll(AtlasFutures.getDone(preStartCommitTimestamps))
-                                        .putAll(AtlasFutures.getDone(postStartCommitTimestamps))
-                                        .putAll(partitionedTimestamps.myCommittedTransaction())
-                                        .buildOrThrow(),
+                                () -> {
+                                    MutableLongLongMap map = LongLongMaps.mutable.withAll(
+                                            AtlasFutures.getDone(preStartCommitTimestamps));
+                                    map.putAll(AtlasFutures.getDone(postStartCommitTimestamps));
+                                    map.putAll(partitionedTimestamps.myCommittedTransaction());
+                                    return map.toImmutable();
+                                },
                                 MoreExecutors.directExecutor());
             }
 
-            private ListenableFuture<Map<Long, Long>> getCommitTimestampsForTransactionsStartedAfterMe(
-                    TableReference tableRef,
-                    AsyncTransactionService asyncTransactionService,
-                    Set<Long> startTimestamps) {
+            private ListenableFuture<LongLongMap> getCommitTimestampsForTransactionsStartedAfterMe(
+                    TableReference tableRef, AsyncTransactionService asyncTransactionService, LongSet startTimestamps) {
                 if (startTimestamps.isEmpty()) {
-                    return Futures.immediateFuture(ImmutableMap.of());
+                    return Futures.immediateFuture(LongLongMaps.immutable.empty());
                 }
 
                 return Futures.transform(
@@ -950,19 +957,22 @@ private ListenableFuture<Map<Long, Long>> getCommitTimestampsForTransactionsStar
              * @param startTimestamps of transactions we are interested in
              * @return a {@link PartitionedTimestamps} object containing split timestamps
              */
-            private PartitionedTimestamps splitTransactionBeforeAndAfter(long myStart, Iterable<Long> startTimestamps) {
+            private PartitionedTimestamps splitTransactionBeforeAndAfter(long myStart, LongIterable startTimestamps) {
                 ImmutablePartitionedTimestamps.Builder builder =
                         ImmutablePartitionedTimestamps.builder().myCommitTimestamp(commitTs);
+                MutableLongSet beforeStart = LongSets.mutable.empty();
+                MutableLongSet afterStart = LongSets.mutable.empty();
                 startTimestamps.forEach(startTimestamp -> {
                     if (startTimestamp == myStart) {
                         builder.splittingStartTimestamp(myStart);
                     } else if (startTimestamp < myStart) {
-                        builder.addBeforeStart(startTimestamp);
+                        beforeStart.add(startTimestamp);
                     } else {
-                        builder.addAfterStart(startTimestamp);
+                        afterStart.add(startTimestamp);
                     }
                 });
-
+                builder.beforeStart(beforeStart.asUnmodifiable());
+                builder.afterStart(afterStart.asUnmodifiable());
                 return builder.build();
             }
         };
@@ -1039,17 +1049,17 @@ public Map.Entry<Cell, byte[]> next() {
     interface PartitionedTimestamps {
         long myCommitTimestamp();
 
-        Set<Long> afterStart();
+        LongSet afterStart();
 
-        Set<Long> beforeStart();
+        LongSet beforeStart();
 
         OptionalLong splittingStartTimestamp();
 
         @Value.Derived
-        default Map<Long, Long> myCommittedTransaction() {
+        default LongLongMap myCommittedTransaction() {
             return splittingStartTimestamp().isPresent()
-                    ? ImmutableMap.of(splittingStartTimestamp().getAsLong(), myCommitTimestamp())
-                    : ImmutableMap.of();
+                    ? LongLongMaps.immutable.of(splittingStartTimestamp().getAsLong(), myCommitTimestamp())
+                    : LongLongMaps.immutable.empty();
         }
     }
 u}(js (999b09d1124446cca5075fe20f78f7b373c0bcd5j `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj modifiedj Kj Kej M0j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X̊  @@ -97,6 +97,8 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
@@ -156,6 +158,7 @@
 import java.util.List;
 import java.util.Map;
 import java.util.NavigableMap;
+import java.util.NavigableSet;
 import java.util.NoSuchElementException;
 import java.util.Objects;
 import java.util.Optional;
@@ -183,6 +186,12 @@
 import javax.annotation.Nullable;
 import org.apache.commons.lang3.Validate;
 import org.apache.commons.lang3.tuple.Pair;
+import org.eclipse.collections.api.LongIterable;
+import org.eclipse.collections.api.factory.primitive.LongLists;
+import org.eclipse.collections.api.factory.primitive.LongSets;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
+import org.eclipse.collections.api.set.primitive.ImmutableLongSet;
+import org.eclipse.collections.api.set.primitive.LongSet;
 
 /**
  * This implements snapshot isolation for transactions.
@@ -207,6 +216,9 @@ public class SnapshotTransaction extends AbstractTransaction
     private static final int BATCH_SIZE_GET_FIRST_PAGE = 1000;
     private static final long TXN_LENGTH_THRESHOLD = Duration.ofMinutes(30).toMillis();
 
+    @VisibleForTesting
+    static final int MAX_POST_FILTERING_ITERATIONS = 200;
+
     @VisibleForTesting
     static final int MIN_BATCH_SIZE_FOR_DISTRIBUTED_LOAD = 100;
 
@@ -267,9 +279,15 @@ private enum State {
     protected final SuccessCallbackManager successCallbackManager = new SuccessCallbackManager();
     private final CommitTimestampLoader commitTimestampLoader;
     private final ExpectationsMetrics expectationsDataCollectionMetrics;
+    private volatile long cellCommitLocksRequested = 0L;
+    private volatile long rowCommitLocksRequested = 0L;
 
     protected volatile boolean hasReads;
 
+    // On thoroughly swept tables, we might require a immutable timestamp lock check if we have performed a
+    // non-exhaustive read.
+    protected volatile boolean hasPossiblyUnvalidatedReads;
+
     protected final TimestampCache timestampCache;
 
     protected final TransactionKnowledgeComponents knowledge;
@@ -333,6 +351,7 @@ private enum State {
         this.sweepQueue = sweepQueue;
         this.deleteExecutor = deleteExecutor;
         this.hasReads = false;
+        this.hasPossiblyUnvalidatedReads = false;
         this.transactionOutcomeMetrics = TransactionOutcomeMetrics.create(metricsManager);
         this.validateLocksOnReads = validateLocksOnReads;
         this.transactionConfig = transactionConfig;
@@ -438,7 +457,9 @@ private NavigableMap<byte[], RowResult<byte[]>> getRowsInternal(
                     SafeArg.of("resultSize", results.size()),
                     SafeArg.of("timeTakenMillis", getRowsMillis));
         }
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+
+        /* can't skip lock check as we don't know how many cells to expect for the column selection */
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return results;
     }
 
@@ -463,7 +484,8 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
         RowColumnRangeIterator rawResults = keyValueService.getRowsColumnRange(
                 tableRef, stableRows, columnRangeSelection, batchHint, getStartTimestamp());
         if (!rawResults.hasNext()) {
-            validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+            // we can't skip checks for range scans
+            validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         } // else the postFiltered iterator will check for each batch.
 
         BatchColumnRangeSelection batchColumnRangeSelection =
@@ -501,7 +523,8 @@ public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator
                 }));
 
         // validate requirements here as the first batch for each of the above iterators will not check
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+        // we can't skip checks on range scans
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return postFilteredResults;
     }
 
@@ -674,7 +697,7 @@ private Iterator<Map.Entry<Cell, byte[]>> filterDeletedValues(
     private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFiltered(
             TableReference tableRef, RowColumnRangeIterator iterator, int batchHint) {
         return Iterators.concat(Iterators.transform(Iterators.partition(iterator, batchHint), batch -> {
-            Map<Cell, Value> raw = validateBatch(tableRef, batch);
+            Map<Cell, Value> raw = validateBatch(tableRef, batch, false /* can't skip lock checks on range scans */);
             if (raw.isEmpty()) {
                 return Collections.emptyIterator();
             }
@@ -696,7 +719,10 @@ private ClosableIterator<Map.Entry<Cell, byte[]>> getRowColumnRangePostFiltered(
                 batchProvider,
                 rawIterator,
                 columnRangeSelection,
-                () -> validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp()),
+                () -> {
+                    // we can't skip lock checks on range scans
+                    validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
+                },
                 raw -> getWithPostFilteringSync(tableRef, raw, Value.GET_VALUE));
     }
 
@@ -706,7 +732,7 @@ private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSor
             int batchHint,
             Comparator<Cell> cellComparator) {
         return Iterators.concat(Iterators.transform(Iterators.partition(iterator, batchHint), batch -> {
-            Map<Cell, Value> raw = validateBatch(tableRef, batch);
+            Map<Cell, Value> raw = validateBatch(tableRef, batch, false /* can't skip lock check on range scans */);
             if (raw.isEmpty()) {
                 return Collections.emptyIterator();
             }
@@ -717,8 +743,9 @@ private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSor
         }));
     }
 
-    private Map<Cell, Value> validateBatch(TableReference tableRef, List<Map.Entry<Cell, Value>> batch) {
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+    private Map<Cell, Value> validateBatch(
+            TableReference tableRef, List<Map.Entry<Cell, Value>> batch, boolean allPossibleCellsReadAndPresent) {
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
         return ImmutableMap.copyOf(batch);
     }
 
@@ -828,7 +855,8 @@ public SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(
         Map<Cell, Value> rawResults =
                 new HashMap<>(keyValueService.getRows(tableRef, rows, ColumnSelection.all(), getStartTimestamp()));
 
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+        // can't skip lock check as we don't know how many cells to expect for the column selection
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return filterRowResults(tableRef, rawResults, ImmutableMap.builderWithExpectedSize(rawResults.size()));
     }
 
@@ -921,13 +949,12 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
             }
         }
 
-        // We don't need to read any cells that were written locally.
+        // We don't need to read any cells that were written locally. Making an immutable copy because otherwise adding
+        // values to the result map would prevent us from calculating the correct size for
+        // allPossibleCellsReadAndPresent, since Sets.difference gives us a live view.
+        Set<Cell> cellsWithNoLocalWrites = ImmutableSet.copyOf(Sets.difference(cells, result.keySet()));
         return Futures.transform(
-                getFromKeyValueService(
-                        tableRef,
-                        Sets.difference(cells, result.keySet()),
-                        asyncKeyValueService,
-                        asyncTransactionService),
+                getFromKeyValueService(tableRef, cellsWithNoLocalWrites, asyncKeyValueService, asyncTransactionService),
                 fromKeyValueService -> {
                     result.putAll(fromKeyValueService);
 
@@ -941,7 +968,11 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
                                 SafeArg.of("getOperation", operationName),
                                 SafeArg.of("durationMillis", getMillis));
                     }
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+
+                    boolean allPossibleCellsReadAndPresent =
+                            fromKeyValueService.size() == cellsWithNoLocalWrites.size();
+                    validatePreCommitRequirementsOnReadIfNecessary(
+                            tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
                     return removeEmptyColumns(result, tableRef);
                 },
                 MoreExecutors.directExecutor());
@@ -957,13 +988,15 @@ public Map<Cell, byte[]> getIgnoringLocalWrites(TableReference tableRef, Set<Cel
 
         ListenableFuture<Map<Cell, byte[]>> result =
                 getFromKeyValueService(tableRef, cells, immediateKeyValueService, immediateTransactionService);
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
 
         Map<Cell, byte[]> unfiltered = Futures.getUnchecked(result);
         Map<Cell, byte[]> filtered = Maps.filterValues(unfiltered, Predicates.not(Value::isTombstone));
 
         TraceStatistics.incEmptyValues(unfiltered.size() - filtered.size());
 
+        boolean allPossibleCellsReadAndPresent = unfiltered.size() == cells.size();
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
+
         return filtered;
     }
 
@@ -1016,7 +1049,8 @@ public Iterable<BatchingVisitable<RowResult<byte[]>>> getRanges(
                     Timer.Context timer = getTimer("processedRangeMillis").time();
                     Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> firstPages =
                             keyValueService.getFirstBatchForRanges(tableRef, input, getStartTimestamp());
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+                    // can't skip lock check for range scans
+                    validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
 
                     SortedMap<Cell, byte[]> postFiltered = postFilterPages(tableRef, firstPages.values());
 
@@ -1142,18 +1176,42 @@ protected <K extends Exception> void batchAcceptSizeHint(
         };
     }
 
-    private void validatePreCommitRequirementsOnReadIfNecessary(TableReference tableRef, long timestamp) {
-        if (isValidationNecessaryOnReads(tableRef)) {
+    private void validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(TableReference tableRef, long timestamp) {
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, timestamp, false);
+    }
+
+    /*
+    We don't have any guarantees that reads and commit will be executed in a single threaded manner, so we could in
+    theory return wrong results if we perform async reads while trying to commit. But our protocol doesn't aim to
+    support such case, and we're OK with having undefined behaviour in these occasions.
+
+    Example of such case:
+       - We're reading a thoroughly swept table with no configuration for immediate validation on reads.
+       - An async range scan is performed, but hasn't started executing yet.
+       - We start commit round on the main thread
+       - Commit doesn't check for immutable timestamp lock because
+           hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound is false
+       - We finish the range scan on the second thread, but validation is skipped due to the configuration and it sets
+           hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound to true, but that is never checked due to
+            the commit round having already happened.
+       - We then risk having returned inconsistent values in this transaction, since we could have lost the immutableT
+            lock, but never checked it and values could've been swept under us.
+    */
+    private void validatePreCommitRequirementsOnReadIfNecessary(
+            TableReference tableRef, long timestamp, boolean allPossibleCellsReadAndPresent) {
+        if (isValidationNecessaryOnReads(tableRef, allPossibleCellsReadAndPresent)) {
             throwIfPreCommitRequirementsNotMet(null, timestamp);
+        } else if (!allPossibleCellsReadAndPresent) {
+            hasPossiblyUnvalidatedReads = true;
         }
     }
 
-    private boolean isValidationNecessaryOnReads(TableReference tableRef) {
-        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef);
+    private boolean isValidationNecessaryOnReads(TableReference tableRef, boolean allPossibleCellsReadAndPresent) {
+        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef, allPossibleCellsReadAndPresent);
     }
 
-    private boolean requiresImmutableTimestampLocking(TableReference tableRef) {
-        return sweepStrategyManager.get(tableRef).mustCheckImmutableLockAfterReads()
+    private boolean requiresImmutableTimestampLocking(TableReference tableRef, boolean allPossibleCellsReadAndPresent) {
+        return sweepStrategyManager.get(tableRef).mustCheckImmutableLock(allPossibleCellsReadAndPresent)
                 || transactionConfig.get().lockImmutableTsOnReadOnlyTransactions();
     }
 
@@ -1302,11 +1360,13 @@ protected <T> ClosableIterator<RowResult<T>> postFilterIterator(
             @Override
             protected Iterator<RowResult<T>> computeNext() {
                 List<RowResult<Value>> batch = results.getBatch().batch();
-                validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
                 if (batch.isEmpty()) {
                     return endOfData();
                 }
                 SortedMap<Cell, T> postFilter = postFilterRows(tableRef, batch, transformer);
+
+                // can't skip lock checks for range scans
+                validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
                 results.markNumResultsNotDeleted(
                         Cells.getRows(postFilter.keySet()).size());
                 return Cells.createRowView(postFilter.entrySet());
@@ -1451,9 +1511,9 @@ private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilterin
 
         return Futures.transformAsync(
                 Futures.immediateFuture(rawResults),
-                remainingResultsToPostFilter -> getWithPostFilteringIterate(
+                resultsToPostFilter -> getWithPostFilteringIterate(
                         tableRef,
-                        remainingResultsToPostFilter,
+                        resultsToPostFilter,
                         resultsAccumulator,
                         transformer,
                         asyncKeyValueService,
@@ -1463,32 +1523,39 @@ private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilterin
 
     private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilteringIterate(
             TableReference tableReference,
-            Map<Cell, Value> remainingResultsToPostFilter,
+            Map<Cell, Value> resultsToPostFilter,
             Collection<Map.Entry<Cell, T>> resultsAccumulator,
             Function<Value, T> transformer,
             AsyncKeyValueService asyncKeyValueService,
             AsyncTransactionService asyncTransactionService) {
-        if (remainingResultsToPostFilter.isEmpty()) {
-            getCounter(AtlasDbMetricNames.SNAPSHOT_TRANSACTION_CELLS_RETURNED, tableReference)
-                    .inc(resultsAccumulator.size());
-            return Futures.immediateFuture(resultsAccumulator);
-        }
-
         return Futures.transformAsync(
-                getWithPostFilteringInternal(
-                        tableReference,
-                        remainingResultsToPostFilter,
-                        resultsAccumulator,
-                        transformer,
-                        asyncKeyValueService,
-                        asyncTransactionService),
-                remaining -> getWithPostFilteringIterate(
-                        tableReference,
-                        remaining,
-                        resultsAccumulator,
-                        transformer,
-                        asyncKeyValueService,
-                        asyncTransactionService),
+                Futures.immediateFuture(resultsToPostFilter),
+                results -> {
+                    int iterations = 0;
+                    Map<Cell, Value> remainingResultsToPostFilter = results;
+                    while (!remainingResultsToPostFilter.isEmpty()) {
+                        remainingResultsToPostFilter = AtlasFutures.getUnchecked(getWithPostFilteringInternal(
+                                tableReference,
+                                remainingResultsToPostFilter,
+                                resultsAccumulator,
+                                transformer,
+                                asyncKeyValueService,
+                                asyncTransactionService));
+                        Preconditions.checkState(
+                                ++iterations < MAX_POST_FILTERING_ITERATIONS,
+                                "Unable to filter cells to find correct result after "
+                                        + "reaching max iterations. This is likely due to aborted cells lying around,"
+                                        + " or in the very rare case, could be due to transactions which constantly "
+                                        + "conflict but never commit. These values will be cleaned up eventually, but"
+                                        + " if the issue persists, ensure that sweep is caught up.",
+                                SafeArg.of("table", tableReference),
+                                SafeArg.of("maxIterations", MAX_POST_FILTERING_ITERATIONS));
+                    }
+                    getCounter(AtlasDbMetricNames.SNAPSHOT_TRANSACTION_CELLS_RETURNED, tableReference)
+                            .inc(resultsAccumulator.size());
+
+                    return Futures.immediateFuture(resultsAccumulator);
+                },
                 MoreExecutors.directExecutor());
     }
 
@@ -1585,7 +1652,7 @@ private <T> ListenableFuture<Map<Cell, Value>> getWithPostFilteringInternal(
             AsyncKeyValueService asyncKeyValueService,
             AsyncTransactionService asyncTransactionService) {
         Set<Cell> orphanedSentinels = findOrphanedSweepSentinels(tableRef, rawResults);
-        Set<Long> valuesStartTimestamps = getStartTimestampsForValues(rawResults.values());
+        LongSet valuesStartTimestamps = getStartTimestampsForValues(rawResults.values());
 
         return Futures.transformAsync(
                 getCommitTimestamps(tableRef, valuesStartTimestamps, true, asyncTransactionService),
@@ -1607,7 +1674,7 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
             Function<Value, T> transformer,
             AsyncKeyValueService asyncKeyValueService,
             Set<Cell> orphanedSentinels,
-            Map<Long, Long> commitTimestamps) {
+            LongLongMap commitTimestamps) {
         Map<Cell, Long> keysToReload = Maps.newHashMapWithExpectedSize(0);
         Map<Cell, Long> keysToDelete = Maps.newHashMapWithExpectedSize(0);
         ImmutableSet.Builder<Cell> keysAddedBuilder = ImmutableSet.builder();
@@ -1638,8 +1705,9 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
                         throw new IllegalStateException("Invalid read sentinel behavior " + getReadSentinelBehavior());
                 }
             } else {
-                Long theirCommitTimestamp = commitTimestamps.get(value.getTimestamp());
-                if (theirCommitTimestamp == null || theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
+                long theirCommitTimestamp =
+                        commitTimestamps.getIfAbsent(value.getTimestamp(), TransactionConstants.FAILED_COMMIT_TS);
+                if (theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
                     keysToReload.put(key, value.getTimestamp());
                     if (shouldDeleteAndRollback()) {
                         // This is from a failed transaction so we can roll it back and then reload it.
@@ -1677,7 +1745,9 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
             return Futures.transform(
                     asyncKeyValueService.getAsync(tableRef, keysToReload),
                     nextRawResults -> {
-                        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+                        boolean allPossibleCellsReadAndPresent = nextRawResults.size() == keysToReload.size();
+                        validatePreCommitRequirementsOnReadIfNecessary(
+                                tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
                         return getRemainingResults(nextRawResults, keysAddedToResults);
                     },
                     MoreExecutors.directExecutor());
@@ -2264,33 +2334,37 @@ protected Map<Cell, Long> detectWriteAlreadyCommittedInternal(
             @Output Set<CellConflict> spanningWrites,
             @Output Set<CellConflict> dominatingWrites,
             TransactionService transactionService) {
+        long startTs = getStartTimestamp();
         Map<Cell, Long> rawResults = keyValueService.getLatestTimestamps(tableRef, keysToLoad);
-        Map<Long, Long> commitTimestamps = getCommitTimestampsSync(tableRef, rawResults.values(), false);
+        LongLongMap commitTimestamps =
+                getCommitTimestampsSync(tableRef, LongLists.immutable.ofAll(rawResults.values()), false);
 
         // TODO(fdesouza): Remove this once PDS-95791 is resolved.
-        conflictTracer.collect(getStartTimestamp(), keysToLoad, rawResults, commitTimestamps);
+        conflictTracer.collect(startTs, keysToLoad, rawResults, commitTimestamps);
 
         Map<Cell, Long> keysToDelete = Maps.newHashMapWithExpectedSize(0);
 
         for (Map.Entry<Cell, Long> e : rawResults.entrySet()) {
             Cell key = e.getKey();
             long theirStartTimestamp = e.getValue();
-            AssertUtils.assertAndLog(
-                    log, theirStartTimestamp != getStartTimestamp(), "Timestamp reuse is bad:" + getStartTimestamp());
+            if (theirStartTimestamp == startTs) {
+                AssertUtils.assertAndLog(log, false, "Timestamp reuse is bad:" + startTs);
+            }
 
-            Long theirCommitTimestamp = commitTimestamps.get(theirStartTimestamp);
-            if (theirCommitTimestamp == null || theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
+            long theirCommitTimestamp =
+                    commitTimestamps.getIfAbsent(theirStartTimestamp, TransactionConstants.FAILED_COMMIT_TS);
+            if (theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
                 // The value has no commit timestamp or was explicitly rolled back.
                 // This means the value is garbage from a transaction which didn't commit.
                 keysToDelete.put(key, theirStartTimestamp);
                 continue;
+            } else if (theirCommitTimestamp == startTs) {
+                AssertUtils.assertAndLog(log, false, "Timestamp reuse is bad:" + startTs);
             }
 
-            AssertUtils.assertAndLog(
-                    log, theirCommitTimestamp != getStartTimestamp(), "Timestamp reuse is bad:" + getStartTimestamp());
-            if (theirStartTimestamp > getStartTimestamp()) {
+            if (theirStartTimestamp > startTs) {
                 dominatingWrites.add(Cells.createConflict(key, theirStartTimestamp, theirCommitTimestamp));
-            } else if (theirCommitTimestamp > getStartTimestamp()) {
+            } else if (theirCommitTimestamp > startTs) {
                 spanningWrites.add(Cells.createConflict(key, theirStartTimestamp, theirCommitTimestamp));
             }
         }
@@ -2315,30 +2389,37 @@ protected Map<Cell, Long> detectWriteAlreadyCommittedInternal(
     private boolean rollbackFailedTransactions(
             TableReference tableRef,
             Map<Cell, Long> keysToDelete,
-            Map<Long, Long> commitTimestamps,
+            LongLongMap commitTimestamps,
             TransactionService transactionService) {
-        for (long startTs : new HashSet<>(keysToDelete.values())) {
-            if (commitTimestamps.get(startTs) == null) {
-                log.warn("Rolling back transaction: {}", SafeArg.of("startTs", startTs));
-                if (!rollbackOtherTransaction(startTs, transactionService)) {
-                    return false;
+        ImmutableLongSet timestamps = LongSets.immutable.ofAll(keysToDelete.values());
+        boolean allRolledBack = timestamps.allSatisfy(startTs -> {
+            if (commitTimestamps.containsKey(startTs)) {
+                long commitTs = commitTimestamps.get(startTs);
+                if (commitTs != TransactionConstants.FAILED_COMMIT_TS) {
+                    throw new SafeIllegalArgumentException(
+                            "Cannot rollback already committed transaction",
+                            SafeArg.of("startTs", startTs),
+                            SafeArg.of("commitTs", commitTs));
                 }
-            } else {
-                Preconditions.checkArgument(commitTimestamps.get(startTs) == TransactionConstants.FAILED_COMMIT_TS);
+                return true;
             }
-        }
+            log.warn("Rolling back transaction: {}", SafeArg.of("startTs", startTs));
+            return rollbackOtherTransaction(startTs, transactionService);
+        });
 
-        try {
-            runTaskOnDeleteExecutor(kvs -> deleteCells(kvs, tableRef, keysToDelete));
-        } catch (RejectedExecutionException rejected) {
-            deleteExecutorRateLimitedLogger.log(logger -> logger.info(
-                    "Could not delete keys {} for table {}, because the delete executor's queue was full."
-                            + " Sweep should eventually clean these values.",
-                    SafeArg.of("numKeysToDelete", keysToDelete.size()),
-                    LoggingArgs.tableRef(tableRef),
-                    rejected));
+        if (allRolledBack) {
+            try {
+                runTaskOnDeleteExecutor(kvs -> deleteCells(kvs, tableRef, keysToDelete));
+            } catch (RejectedExecutionException rejected) {
+                deleteExecutorRateLimitedLogger.log(logger -> logger.info(
+                        "Could not delete keys {} for table {}, because the delete executor's queue was full."
+                                + " Sweep should eventually clean these values.",
+                        SafeArg.of("numKeysToDelete", keysToDelete.size()),
+                        LoggingArgs.tableRef(tableRef),
+                        rejected));
+            }
         }
-        return true;
+        return allRolledBack;
     }
 
     private static void deleteCells(
@@ -2424,9 +2505,9 @@ protected LockToken acquireLocksForCommit() {
         return lockResponse.getToken();
     }
 
-    protected ListenableFuture<Map<Long, Long>> getCommitTimestamps(
+    protected ListenableFuture<LongLongMap> getCommitTimestamps(
             TableReference tableRef,
-            Iterable<Long> startTimestamps,
+            LongIterable startTimestamps,
             boolean shouldWaitForCommitterToComplete,
             AsyncTransactionService asyncTransactionService) {
         return commitTimestampLoader.getCommitTimestamps(
@@ -2448,20 +2529,25 @@ private void logCommitLockTenureExceeded(
 
     protected Set<LockDescriptor> getLocksForWrites() {
         Set<LockDescriptor> result = new HashSet<>();
+        long cellLockCount = 0L;
+        long rowLockCount = 0L;
         for (TableReference tableRef : writesByTable.keySet()) {
             ConflictHandler conflictHandler = getConflictHandlerForTable(tableRef);
             if (conflictHandler.lockCellsForConflicts()) {
-                for (Cell cell : getLocalWrites(tableRef).keySet()) {
+                NavigableSet<Cell> cellsToLock = getLocalWrites(tableRef).keySet();
+                for (Cell cell : cellsToLock) {
                     result.add(AtlasCellLockDescriptor.of(
                             tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName()));
                 }
+                cellLockCount += cellsToLock.size();
             }
 
             if (conflictHandler.lockRowsForConflicts()) {
                 Cell lastCell = null;
                 for (Cell cell : getLocalWrites(tableRef).keySet()) {
                     if (lastCell == null || !Arrays.equals(lastCell.getRowName(), cell.getRowName())) {
                         result.add(AtlasRowLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName()));
+                        rowLockCount++;
                     }
                     lastCell = cell;
                 }
@@ -2470,23 +2556,21 @@ protected Set<LockDescriptor> getLocksForWrites() {
         result.add(AtlasRowLockDescriptor.of(
                 TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
                 TransactionConstants.getValueForTimestamp(getStartTimestamp())));
+        cellCommitLocksRequested = cellLockCount;
+        rowCommitLocksRequested = rowLockCount + 1;
         return result;
     }
 
     ///////////////////////////////////////////////////////////////////////////
     /// Commit timestamp management
     ///////////////////////////////////////////////////////////////////////////
 
-    private Set<Long> getStartTimestampsForValues(Iterable<Value> values) {
-        Set<Long> results = new HashSet<>();
-        for (Value v : values) {
-            results.add(v.getTimestamp());
-        }
-        return results;
+    private LongSet getStartTimestampsForValues(Iterable<Value> values) {
+        return LongSets.immutable.withAll(Streams.stream(values).mapToLong(Value::getTimestamp));
     }
 
-    private Map<Long, Long> getCommitTimestampsSync(
-            @Nullable TableReference tableRef, Iterable<Long> startTimestamps, boolean waitForCommitterToComplete) {
+    private LongLongMap getCommitTimestampsSync(
+            @Nullable TableReference tableRef, LongIterable startTimestamps, boolean waitForCommitterToComplete) {
         return AtlasFutures.getUnchecked(getCommitTimestamps(
                 tableRef, startTimestamps, waitForCommitterToComplete, immediateTransactionService));
     }
@@ -2555,11 +2639,14 @@ private void handleKeyAlreadyExistsException(
     }
 
     private boolean wasCommitSuccessful(long commitTs) {
-        Map<Long, Long> commitTimestamps =
-                getCommitTimestampsSync(null, Collections.singleton(getStartTimestamp()), false);
-        long storedCommit = commitTimestamps.get(getStartTimestamp());
+        long startTs = getStartTimestamp();
+        LongLongMap commitTimestamps = getCommitTimestampsSync(null, LongSets.immutable.of(startTs), false);
+        long storedCommit = commitTimestamps.get(startTs);
         if (storedCommit != commitTs && storedCommit != TransactionConstants.FAILED_COMMIT_TS) {
-            Validate.isTrue(false, "Commit value is wrong. startTs %s  commitTs: %s", getStartTimestamp(), commitTs);
+            throw new SafeIllegalArgumentException(
+                    "Commit value is wrong.",
+                    SafeArg.of("startTimestamp", startTs),
+                    SafeArg.of("commitTimestamp", commitTs));
         }
         return storedCommit == commitTs;
     }
@@ -2591,8 +2678,8 @@ private boolean hasAnyInvolvedTables() {
     }
 
     private boolean validationNecessaryForInvolvedTablesOnCommit() {
-        boolean anyTableRequiresImmutableTimestampLocking =
-                involvedTables.stream().anyMatch(this::requiresImmutableTimestampLocking);
+        boolean anyTableRequiresImmutableTimestampLocking = involvedTables.stream()
+                .anyMatch(tableRef -> requiresImmutableTimestampLocking(tableRef, !hasPossiblyUnvalidatedReads));
         boolean needsToValidate = !validateLocksOnReads || !hasReads();
         return anyTableRequiresImmutableTimestampLocking && needsToValidate;
     }
@@ -2607,6 +2694,14 @@ public TransactionReadInfo getReadInfo() {
         return keyValueService.getOverallReadInfo();
     }
 
+    @Override
+    public TransactionCommitLockInfo getCommitLockInfo() {
+        return ImmutableTransactionCommitLockInfo.builder()
+                .cellCommitLocksRequested(cellCommitLocksRequested)
+                .rowCommitLocksRequested(rowCommitLocksRequested)
+                .build();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         if (isStillRunning()) {
@@ -2616,18 +2711,25 @@ public void reportExpectationsCollectedData() {
             return;
         }
 
-        reportExpectationsCollectedData(getAgeMillis(), getReadInfo(), expectationsDataCollectionMetrics);
+        reportExpectationsCollectedData(
+                getAgeMillis(), getReadInfo(), getCommitLockInfo(), expectationsDataCollectionMetrics);
     }
 
     @VisibleForTesting
     static void reportExpectationsCollectedData(
-            long ageMillis, TransactionReadInfo readInfo, ExpectationsMetrics metrics) {
+            long ageMillis,
+            TransactionReadInfo readInfo,
+            TransactionCommitLockInfo commitLockInfo,
+            ExpectationsMetrics metrics) {
         metrics.ageMillis().update(ageMillis);
         metrics.bytesRead().update(readInfo.bytesRead());
         metrics.kvsReads().update(readInfo.kvsCalls());
 
         readInfo.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
                 .update(kvsCallReadInfo.bytesRead()));
+
+        metrics.cellCommitLocksRequested().update(commitLockInfo.cellCommitLocksRequested());
+        metrics.rowCommitLocksRequested().update(commitLockInfo.rowCommitLocksRequested());
     }
 
     private long getStartTimestamp() {u}(js (5e7f986f7b70e5c550f97a4eafd0ef844c99fe20j Oatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/util/MeasuringUtils.javaj modifiedj Kj K
j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMeasuringUtils.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMeasuringUtils.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMeasuringUtils.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -24,7 +24,6 @@
 import java.lang.reflect.Array;
 import java.util.Collection;
 import java.util.Map;
-import java.util.Map.Entry;
 import java.util.Set;
 import java.util.function.ToLongFunction;
 
@@ -64,7 +63,7 @@ public static long sizeOf(Multimap<? extends Measurable, Long> map) {
         return sizeOf(map.keys()) + ((long) map.size()) * Long.BYTES;
     }
 
-    public static long sizeOf(Entry<? extends Measurable, ? extends Measurable> entry) {
+    public static long sizeOf(Map.Entry<? extends Measurable, ? extends Measurable> entry) {
         return entry.getKey().sizeInBytes() + entry.getValue().sizeInBytes();
     }
 
@@ -86,16 +85,18 @@ private static <T> long sizeOfCollection(Collection<T> collection, ToLongFunctio
 
     private static <K, V> long sizeOfMap(
             Map<K, V> map, ToLongFunction<K> keyMeasurer, ToLongFunction<V> valueMeasurer) {
-        return map.entrySet().stream()
-                .mapToLong(
-                        entry -> keyMeasurer.applyAsLong(entry.getKey()) + valueMeasurer.applyAsLong(entry.getValue()))
-                .sum();
+        long sum = 0L;
+        for (Map.Entry<K, V> entry : map.entrySet()) {
+            sum += keyMeasurer.applyAsLong(entry.getKey()) + valueMeasurer.applyAsLong(entry.getValue());
+        }
+        return sum;
     }
 
     private static <T> long sizeOfRowResult(RowResult<T> rowResult, ToLongFunction<T> measurer) {
-        return rowResult.getRowNameSize()
-                + rowResult.getColumns().entrySet().stream()
-                        .mapToLong(entry -> entry.getKey().length + measurer.applyAsLong(entry.getValue()))
-                        .sum();
+        long sum = rowResult.getRowNameSize();
+        for (Map.Entry<byte[], T> entry : rowResult.getColumns().entrySet()) {
+            sum += entry.getKey().length + measurer.applyAsLong(entry.getValue());
+        }
+        return sum;
     }
 }u}(js (89147dc77a01612d3af8f3130ea758e4445537c7j 5atlasdb-impl-shared/src/main/metrics/expectations.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -17,3 +17,9 @@ namespaces:
       mostKvsBytesReadInSingleCall:
         docs: Most bytes read by a transaction in one Atlas kvs read call
         type: histogram
+      cellCommitLocksRequested:
+        docs: Number of cell-level commit locks requested as part of the commit protocol
+        type: histogram
+      rowCommitLocksRequested:
+        docs: Number of row-level commit locks requested as part of the commit protocol
+        type: histogramu}(js (58455c9fcbd5e41aa2e34c82091e30cd04cd5a51j `atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitionerTest.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j Xf  @@ -105,6 +105,7 @@ public void getStrategyQueriesKvsOnlyOnceForEachTable() {
         }
         verify(mockKvs, times(1)).getMetadataForTable(NOTHING);
         verify(mockKvs, times(1)).getMetadataForTable(CONSERVATIVE);
+        verify(mockKvs, times(2)).sweepsEntriesInStrictlyNonDecreasingFashion();
         verifyNoMoreInteractions(mockKvs);
     }
 u}(js (654c9ff367000102ae226eb294db877760cdd71aj latlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIteratorTest.javaj addedj Kej K j Kej https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIteratorTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIteratorTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIteratorTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -0,0 +1,101 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.AtlasDbPerformanceConstants;
+import com.palantir.common.base.ClosableIterator;
+import com.palantir.common.base.ClosableIterators;
+import java.nio.ByteBuffer;
+import java.util.List;
+import java.util.NavigableSet;
+import java.util.TreeSet;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.Test;
+
+public class BatchSizeIncreasingIteratorTest {
+
+    @Test
+    public void handlesIntegerOverflow() {
+        assertThat(new BatchSizeIncreasingIterator<>(
+                                new TestBatchProvider(0),
+                                Integer.MAX_VALUE,
+                                ClosableIterators.emptyImmutableClosableIterator())
+                        .getMaxBatchSize())
+                .isEqualTo(AtlasDbPerformanceConstants.MAX_BATCH_SIZE);
+    }
+
+    @Test
+    public void getBestBatchSizeEqualToOriginalOnFirstIteration() {
+        assertThat(new BatchSizeIncreasingIterator<>(
+                                new TestBatchProvider(0), 1, ClosableIterators.emptyImmutableClosableIterator())
+                        .getBestBatchSize())
+                .isEqualTo(1);
+    }
+
+    @Test
+    public void getBestBatchSizeNeverLargerThanMax() {
+        int originalBatchSize = 1;
+        BatchSizeIncreasingIterator<Integer> iterator = new BatchSizeIncreasingIterator<>(
+                new TestBatchProvider(1000),
+                originalBatchSize,
+                ClosableIterators.wrap(List.of(0).iterator()));
+        // This will make the batch size increasing iterator think that it is only getting deleted values, which will
+        // result in an increase by BatchSizeIncreasingIterator.INCREASE_FACTOR.
+        iterator.markNumResultsNotDeleted(0);
+        IntStream.range(0, BatchSizeIncreasingIterator.MAX_FACTOR / BatchSizeIncreasingIterator.INCREASE_FACTOR + 1)
+                .forEach(_ignore -> iterator.getBatch());
+        assertThat(iterator.getBestBatchSize()).isEqualTo(originalBatchSize * BatchSizeIncreasingIterator.MAX_FACTOR);
+    }
+
+    private static class TestBatchProvider implements BatchProvider<Integer> {
+
+        private final NavigableSet<Integer> values;
+
+        public TestBatchProvider(Integer count) {
+            this(IntStream.range(0, count)
+                    .boxed()
+                    .collect(Collectors.<Integer, TreeSet<Integer>>toCollection(TreeSet::new)));
+        }
+
+        public TestBatchProvider(NavigableSet<Integer> values) {
+            this.values = values;
+        }
+
+        @Override
+        public ClosableIterator<Integer> getBatch(int batchSize, byte[] lastToken) {
+            int value = ByteBuffer.wrap(lastToken).getInt();
+            return ClosableIterators.wrapWithEmptyClose(
+                    values.tailSet(value, true).iterator());
+        }
+
+        @Override
+        public boolean hasNext(byte[] lastToken) {
+            int value = ByteBuffer.wrap(lastToken).getInt();
+            return values.ceiling(value) != null;
+        }
+
+        @Override
+        public byte[] getLastToken(List<Integer> batch) {
+            return ByteBuffer.allocate(Integer.BYTES)
+                    .putInt(batch.get(batch.size() - 1))
+                    .array();
+        }
+    }
+}u}(js (7be5d7230e4143dea05fe8a584a1a0dcb0d8db39j fatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoaderTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javau      j https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -24,7 +24,6 @@
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
 
-import com.google.common.collect.ImmutableList;
 import com.google.common.util.concurrent.Futures;
 import com.palantir.atlasdb.cache.TimestampCache;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
@@ -40,9 +39,10 @@
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.ExecutionException;
+import org.eclipse.collections.api.factory.primitive.LongLists;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
 import org.junit.Test;
 
 public class CommitTimestampLoaderTest {
@@ -96,7 +96,7 @@ public void throwIfTTSBeyondReadOnlyForSweptTTSCell() {
 
         assertThatExceptionOfType(ExecutionException.class)
                 .isThrownBy(() -> commitTimestampLoader
-                        .getCommitTimestamps(TABLE_REF, ImmutableList.of(startTs), false, transactionService)
+                        .getCommitTimestamps(TABLE_REF, LongLists.immutable.of(startTs), false, transactionService)
                         .get())
                 .withRootCauseInstanceOf(SafeIllegalStateException.class)
                 .withMessageContaining("Sweep has swept some entries with a commit TS after us");
@@ -182,10 +182,10 @@ public void doesNotCacheUnknownTransactions() throws ExecutionException, Interru
 
     private void assertCanGetCommitTs(long startTs, long commitTs, CommitTimestampLoader commitTimestampLoader)
             throws InterruptedException, ExecutionException {
-        Map<Long, Long> loadedCommitTs = commitTimestampLoader
-                .getCommitTimestamps(TABLE_REF, ImmutableList.of(startTs), false, transactionService)
+        LongLongMap loadedCommitTs = commitTimestampLoader
+                .getCommitTimestamps(TABLE_REF, LongLists.immutable.of(startTs), false, transactionService)
                 .get();
-        assertThat(loadedCommitTs).hasSize(1);
+        assertThat(loadedCommitTs.size()).isEqualTo(1);
         assertThat(loadedCommitTs.get(startTs)).isEqualTo(commitTs);
     }
 u}(js (283b84abcfb6697b50fee5fa0db0dbc2d58dfab8j matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javaj modifiedj K&j Kj K2j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XI  @@ -18,7 +18,9 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.codahale.metrics.Histogram;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
@@ -34,6 +36,12 @@ public final class ExpectationsMetricsReportingTest {
     private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
             ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
 
+    private static final ImmutableTransactionCommitLockInfo BLANK_COMMIT_LOCK_INFO =
+            ImmutableTransactionCommitLockInfo.builder()
+                    .cellCommitLocksRequested(0L)
+                    .rowCommitLocksRequested(0L)
+                    .build();
+
     private ExpectationsMetrics metrics;
 
     @Before
@@ -44,40 +52,58 @@ public void setUp() {
     @Test
     public void ageReported() {
         long age = 129L;
-        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, metrics);
-        assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
+        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, BLANK_COMMIT_LOCK_INFO, metrics);
+        assertHistogramHasSingleValue(metrics.ageMillis(), age);
     }
 
     @Test
     public void bytesReadReported() {
         long bytes = 1290L;
-        reportMetrics(BLANK_READ_INFO.withBytesRead(bytes));
-        assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
+        reportMetricsWithReadInfo(BLANK_READ_INFO.withBytesRead(bytes));
+        assertHistogramHasSingleValue(metrics.bytesRead(), bytes);
     }
 
     @Test
     public void kvsCallsReported() {
         long calls = 12L;
-        reportMetrics(BLANK_READ_INFO.withKvsCalls(calls));
-        assertThat(metrics.kvsReads().getSnapshot().getValues()).containsOnly(calls);
+        reportMetricsWithReadInfo(BLANK_READ_INFO.withKvsCalls(calls));
+        assertHistogramHasSingleValue(metrics.kvsReads(), calls);
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
-        reportMetrics(BLANK_READ_INFO);
+        reportMetricsWithReadInfo(BLANK_READ_INFO);
         assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
                 .isEmpty();
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
         long bytes = 193L;
-        reportMetrics(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
-        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
-                .containsOnly(bytes);
+        reportMetricsWithReadInfo(
+                BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        assertHistogramHasSingleValue(metrics.mostKvsBytesReadInSingleCall(), bytes);
+    }
+
+    @Test
+    public void commitLocksRequestsReported() {
+        SnapshotTransaction.reportExpectationsCollectedData(
+                0L,
+                BLANK_READ_INFO,
+                ImmutableTransactionCommitLockInfo.builder()
+                        .cellCommitLocksRequested(1)
+                        .rowCommitLocksRequested(2)
+                        .build(),
+                metrics);
+        assertHistogramHasSingleValue(metrics.cellCommitLocksRequested(), 1);
+        assertHistogramHasSingleValue(metrics.rowCommitLocksRequested(), 2);
+    }
+
+    private void reportMetricsWithReadInfo(TransactionReadInfo readInfo) {
+        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, BLANK_COMMIT_LOCK_INFO, metrics);
     }
 
-    private void reportMetrics(TransactionReadInfo readInfo) {
-        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, metrics);
+    private void assertHistogramHasSingleValue(Histogram histogram, long expected) {
+        assertThat(histogram.getSnapshot().getValues()).containsOnly(expected);
     }
 }u}(js (f78ed397c1ab2442f099cc74dd518e30185dd324j !atlasdb-tests-shared/build.gradlej modifiedj Kj K j Kj uhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-tests-shared%2Fbuild.gradlej thttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-tests-shared%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fbuild.gradle?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -50,6 +50,7 @@ dependencies {
   testImplementation 'com.google.protobuf:protobuf-java'
   testImplementation 'com.palantir.common:streams'
   testImplementation 'com.palantir.safe-logging:safe-logging'
+  testImplementation 'com.palantir.safe-logging:preconditions-assertj'
   testImplementation 'com.palantir.tracing:tracing-api'
   testImplementation 'com.palantir.tritium:tritium-registry'
   testImplementation 'commons-io:commons-io'u}(js (4ecc8d0029caabad8e99518d16b13fcf35ba33ecj qatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractSerializableTransactionTest.javaj modifiedj K
j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XL  @@ -1079,17 +1079,19 @@ public void testNoMarkTableInvolvedSkipsLockChecksOnCommit() {
         t1.commit();
     }
 
-    @Test
-    public void testMarkTableInvolvedChecksLocksForExpiryOnCommitWhenRequired() {
-        // Test table is thorough, therefore we check immutable timestamp lock
-        assertThatThrownBy(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
-                .isExactlyInstanceOf(TransactionLockTimeoutException.class);
-    }
-
     @Test
     public void testMarkTableInvolvedDoesNoCheckLocksForExpiryOnCommitWhenNotRequired() {
         // Test table is not thorough, therefore no immutable timestamp lock checking
-        testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE);
+        assertThatCode(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE))
+                .doesNotThrowAnyException();
+
+        if (keyValueService.sweepsEntriesInStrictlyNonDecreasingFashion()) {
+            assertThatCode(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
+                    .doesNotThrowAnyException();
+        } else {
+            assertThatThrownBy(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
+                    .isExactlyInstanceOf(TransactionLockTimeoutException.class);
+        }
     }
 
     @Testu}(js (ddec50c29546659d961c4897e7ecbcde3efe9efbj Latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/AtlasDbTestCase.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X;  @@ -77,11 +77,14 @@ public class AtlasDbTestCase {
 
     protected TransactionKnowledgeComponents knowledge;
 
+    protected ExecutorService deleteExecutor;
+
     @Rule
     public InMemoryTimeLockRule inMemoryTimeLockRule = new InMemoryTimeLockRule(CLIENT);
 
     @Before
     public void setUp() throws Exception {
+        deleteExecutor = MoreExecutors.newDirectExecutorService();
         lockClient = LockClient.of(CLIENT);
         lockService = inMemoryTimeLockRule.getLockService();
         timelockService = inMemoryTimeLockRule.getLegacyTimelockService();u}(js (864d8b372d38e6bbe575244e1b439a23398db117j Uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/TableMigratorTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -89,7 +89,7 @@ public void testMigrationToDifferentKvs() throws TableMappingNotFoundException {
 
         final InMemoryKeyValueService kvs2 = new InMemoryKeyValueService(false);
         final ConflictDetectionManager cdm2 = ConflictDetectionManagers.createWithNoConflictDetection();
-        final SweepStrategyManager ssm2 = SweepStrategyManagers.completelyConservative();
+        final SweepStrategyManager ssm2 = SweepStrategyManagers.completelyConservative(kvs2);
         final MetricsManager metricsManager = MetricsManagers.createForTests();
         final TestTransactionManagerImpl txManager2 = new TestTransactionManagerImpl(
                 metricsManager,
@@ -128,7 +128,7 @@ public void testMigrationToDifferentKvs() throws TableMappingNotFoundException {
         checkpointer.deleteCheckpoints();
 
         final ConflictDetectionManager verifyCdm = ConflictDetectionManagers.createWithNoConflictDetection();
-        final SweepStrategyManager verifySsm = SweepStrategyManagers.completelyConservative();
+        final SweepStrategyManager verifySsm = SweepStrategyManagers.completelyConservative(kvs2);
         final TestTransactionManagerImpl verifyTxManager = new TestTransactionManagerImpl(
                 metricsManager,
                 kvs2,u}(js (25c1bb6a752a65ce98d2dc58adc485085adacef9j latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -240,7 +240,9 @@ public void registersMetrics() throws InterruptedException {
                 .contains(FINISH_TASK_METRIC_NAME)
                 .contains("expectations.bytesRead")
                 .contains("expectations.kvsReads")
-                .contains("expectations.ageMillis");
+                .contains("expectations.ageMillis")
+                .contains("expectations.cellCommitLocksRequested")
+                .contains("expectations.rowCommitLocksRequested");
         assertThat(registry.timer(MetricName.builder()
                                 .safeName(SETUP_TASK_METRIC_NAME)
                                 .build())u}(js (f2e691648e3d3020d09ae176b23c26a2f6f5e6a7j eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X3  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
@@ -94,6 +95,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.impl.metrics.DefaultMetricsFilterEvaluationContext;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.ToplistDeltaFilteringTableLevelMetricsController;
@@ -121,6 +123,7 @@
 import com.palantir.lock.v2.LockImmutableTimestampResponse;
 import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.TimelockService;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.math.BigInteger;
 import java.nio.ByteBuffer;
@@ -316,6 +319,8 @@ public void cleanup() {}
     static final TableReference TABLE_SWEPT_THOROUGH_MIGRATION =
             TableReference.createFromFullyQualifiedName("default.table5");
 
+    static final TableReference TABLE_NO_SWEEP = TableReference.createFromFullyQualifiedName("default.table6");
+
     private static final byte[] ROW_FOO = "foo".getBytes(StandardCharsets.UTF_8);
     private static final byte[] ROW_BAR = "bar".getBytes(StandardCharsets.UTF_8);
     private static final byte[] COL_A = "a".getBytes(StandardCharsets.UTF_8);
@@ -346,6 +351,9 @@ public void setUp() throws Exception {
                 TABLE_SWEPT_THOROUGH_MIGRATION,
                 getTableMetadataForSweepStrategy(SweepStrategy.THOROUGH_MIGRATION)
                         .persistToBytes());
+        keyValueService.createTable(
+                TABLE_NO_SWEEP,
+                getTableMetadataForSweepStrategy(SweepStrategy.NOTHING).persistToBytes());
     }
 
     @Override
@@ -360,7 +368,7 @@ protected TestTransactionManager constructTestTransactionManager() {
                 sweepStrategyManager,
                 timestampCache,
                 sweepQueue,
-                MoreExecutors.newDirectExecutorService(),
+                deleteExecutor,
                 transactionWrapper,
                 keyValueServiceWrapper,
                 knowledge);
@@ -1552,7 +1560,22 @@ public void commitDoesNotThrowIfAlreadySuccessfullyCommitted() {
     }
 
     @Test
-    public void validateLocksOnReadsIfThoroughlySwept() {
+    public void doNotValidateLocksOnNonEmptyReadsIfThoroughlySwept() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        assertThatCode(() -> transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL)))
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void validateLocksOnEmptyReadsIfThoroughlySwept() {
         long transactionTs = timelockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
         Transaction transaction =
@@ -1564,6 +1587,22 @@ public void validateLocksOnReadsIfThoroughlySwept() {
                 .isThrownBy(() -> transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL)));
     }
 
+    @Test
+    public void doNotValidateLocksOnCommitIfValidationFlagIsFalseAndOnlyReadNonEmptyValuesOnThoroughlySweptTable() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+
+        assertThatCode(transaction::commit).doesNotThrowAnyException();
+    }
+
     @Test
     public void validateLocksOnlyOnCommitIfValidationFlagIsFalse() {
         long transactionTs = timelockService.getFreshTimestamp();
@@ -1579,7 +1618,45 @@ public void validateLocksOnlyOnCommitIfValidationFlagIsFalse() {
     }
 
     @Test
-    public void checkImmutableTsLockOnceIfThoroughlySwept_WithValidationOnReads() {
+    public void validateLocksOnCommitIfEmptyReadsFollowedByNonEmptyReadsIfValidationFlagIsFalse() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        // First reading empty value
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL_2));
+        // Then reading non-empty value.
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+
+        // Make sure that lock is still validated in the end due to the initial empty read
+        assertThatExceptionOfType(TransactionLockTimeoutException.class).isThrownBy(transaction::commit);
+    }
+
+    @Test
+    public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithValidationOnReads() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        Transaction transaction = getSnapshotTransactionWith(
+                spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+        transaction.commit();
+        spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
+
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+    }
+
+    @Test
+    public void checkImmutableTsLockOnceIfEmptyReadOnThoroughlySwept_WithValidationOnReads() {
         TimelockService spiedTimeLockService = spy(timelockService);
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
@@ -1595,7 +1672,25 @@ public void checkImmutableTsLockOnceIfThoroughlySwept_WithValidationOnReads() {
     }
 
     @Test
-    public void checkImmutableTsLockOnceIfThoroughlySwept_WithoutValidationOnReads() {
+    public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithoutValidationOnReads() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        Transaction transaction = getSnapshotTransactionWith(
+                spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+        transaction.commit();
+        spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
+
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+    }
+
+    @Test
+    public void checkImmutableTsLockOnceIfEmptyReadOnThoroughlySwept_WithoutValidationOnReads() {
         TimelockService spiedTimeLockService = spy(timelockService);
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
@@ -2371,6 +2466,91 @@ public void testConstraintsViolated() {
                         eq(AtlasDbConstraintCheckingMode.FULL_CONSTRAINT_CHECKING_THROWS_EXCEPTIONS));
     }
 
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializableCell() {
+        // Will request commit locks for cells, but not rows
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_CELL);
+
+        // We can only get the commit info from a snapshot transaction
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        // For write transactions, we always lock an additional row in the transaction table
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(0 + 1);
+    }
+
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializable() {
+        // Will request commit locks for rows, but not cells
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(0);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(2 + 1);
+    }
+
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigration_sameRow() {
+        // Will request commit locks for cells and rows
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_LOCK_LEVEL_MIGRATION);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(
+                TABLE,
+                ImmutableMap.of(Cell.create(PtBytes.toBytes("same_row"), PtBytes.toBytes("column1")), TEST_VALUE));
+        txn.put(
+                TABLE,
+                ImmutableMap.of(
+                        Cell.create(
+                                PtBytes.toBytes("same_row"),
+                                // Writing to the same row, but different column/cell
+                                PtBytes.toBytes("column2")),
+                        TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
+    }
+
+    @Test
+    public void setsRequestedCellCommitLocksCountCorrectlyForMultipleTables() {
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_CELL);
+        overrideConflictHandlerForTable(TABLE2, ConflictHandler.SERIALIZABLE_CELL);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE2, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(0 + 1);
+    }
+
+    @Test
+    public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
+        for (int idx = 0; idx < SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS; idx++) {
+            putUncommittedAtFreshTimestamp(TABLE_NO_SWEEP, TEST_CELL);
+        }
+        assertThatLoggableExceptionThrownBy(
+                        () -> txManager.runTaskThrowOnConflict(txn -> txn.get(TABLE_NO_SWEEP, Set.of(TEST_CELL))))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageStartingWith("Unable to filter cells")
+                .hasExactlyArgs(
+                        SafeArg.of("table", TABLE_NO_SWEEP),
+                        SafeArg.of("maxIterations", SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS));
+    }
+
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,u}(js (5a5556860449da126adc5f8a0981453e801987caj 1atlasdb-workload-server-antithesis/var/compact.shj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.sh?ref=3edc529e99246718dbc7e0f38df32119f57e1904j Xx  @@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 ##
 # (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
@@ -16,4 +16,4 @@
 # limitations under the License.
 #
 
-podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool compact'¡
\ No newline at end of file
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool compact'
\ No newline at end of fileu}(js (d76af03da7c4bad04f1910eb26d354bd1ad9a05dj 9atlasdb-workload-server-antithesis/var/docker-compose.ymlj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -2,7 +2,7 @@ version: '2'
 
 services:
   cassandra1:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+    image: palantirtechnologies/cassandra:2.2.18-1.116.0
     ports:
       - "9160"
       - "9042"
@@ -20,7 +20,7 @@ services:
         ipv4_address: 10.20.20.2
 
   cassandra2:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+    image: palantirtechnologies/cassandra:2.2.18-1.116.0
     ports:
       - "9160"
       - "9042"
@@ -38,7 +38,7 @@ services:
         ipv4_address: 10.20.20.3
 
   cassandra3:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+    image: palantirtechnologies/cassandra:2.2.18-1.116.0
     ports:
       - "9160"
       - "9042"u}(js (f91ee5ba5579e07f5e1e9948bf32e02918dd8185j /atlasdb-workload-server-antithesis/var/flush.shj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fflush.sh?ref=3edc529e99246718dbc7e0f38df32119f57e1904j }@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 ##
 # (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.u}(js (7688afda0d1babfe3e30b9cb5e95cdef3667ba38j aatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ColumnAndValue.javaj renamedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnAndValue.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnAndValue.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnAndValue.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -19,14 +19,14 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface ColumnValue {
+public interface ColumnAndValue {
     @Value.Parameter
     int column();
 
     @Value.Parameter
     int value();
 
-    static ColumnValue of(int column, int value) {
-        return ImmutableColumnValue.of(column, value);
+    static ColumnAndValue of(int column, int value) {
+        return ImmutableColumnAndValue.of(column, value);
     }
 }previous_filename^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ColumnValue.javau}(js (6fff522b93c2fac008381bf889fb8bd37ac6b462j matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelection.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j Xm  @@ -60,6 +60,10 @@ default void check() {
                 SafeArg.of("endColumnExclusive", endColumnExclusive()));
     }
 
+    static ColumnRangeSelection all() {
+        return ImmutableColumnRangeSelection.builder().build();
+    }
+
     static ImmutableColumnRangeSelection.Builder builder() {
         return ImmutableColumnRangeSelection.builder();
     }u}(js (ecbd656f159c09a8e2390dc3345bd413af2a1881j oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XO  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import java.util.List;
@@ -31,5 +32,7 @@ public interface InteractiveTransaction {
 
     void delete(String table, WorkloadCell workloadCell);
 
+    List<ColumnAndValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection);
+
     List<WitnessedTransactionAction> witness();
 }u}(js (6be89ac577d426cb259ff547d6ed9c8b7a14da63j |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowColumnRangeReadTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XU  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import java.util.List;
 import org.immutables.value.Value;
@@ -42,7 +42,7 @@ default <T> T accept(TransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-    default WitnessedRowColumnRangeReadTransactionAction witness(List<ColumnValue> columnsAndValues) {
+    default WitnessedRowColumnRangeReadTransactionAction witness(List<ColumnAndValue> columnsAndValues) {
         return WitnessedRowColumnRangeReadTransactionAction.builder()
                 .originalQuery(this)
                 .columnsAndValues(columnsAndValues)u}(js (72bc11659accd74d0abb03df5bdecff95ddeceb9j xatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/SingleCellReadTransactionAction.javaj renamedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellReadTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellReadTransactionAction.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XU  @@ -17,24 +17,23 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedSingleCellReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import java.util.Optional;
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface ReadTransactionAction extends SingleCellTransactionAction {
-
-    default WitnessedReadTransactionAction witness(Optional<Integer> value) {
-        return ImmutableWitnessedReadTransactionAction.of(table(), cell(), value);
+public interface SingleCellReadTransactionAction extends SingleCellTransactionAction {
+    default WitnessedSingleCellReadTransactionAction witness(Optional<Integer> value) {
+        return ImmutableWitnessedSingleCellReadTransactionAction.of(table(), cell(), value);
     }
 
     @Override
     default <T> T accept(TransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-    static ReadTransactionAction of(String table, WorkloadCell workloadCell) {
-        return ImmutableReadTransactionAction.of(table, workloadCell);
+    static SingleCellReadTransactionAction of(String table, WorkloadCell workloadCell) {
+        return ImmutableSingleCellReadTransactionAction.of(table, workloadCell);
     }
 }j natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ReadTransactionAction.javau}(js (0a91db8551cefb63678b7a8738390e5453d4310bj qatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionActionVisitor.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XB  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction;
 
 public interface TransactionActionVisitor<T> {
-    T visit(ReadTransactionAction readTransactionAction);
+    T visit(SingleCellReadTransactionAction singleCellReadTransactionAction);
 
     T visit(WriteTransactionAction writeTransactionAction);
 u}(js (c3f046a1384b93cbb56e4130900d91a35a72ff09j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedRowColumnRangeReadTransactionAction.javaj addedj K+j K j K+j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X,  @@ -0,0 +1,43 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedRowColumnRangeReadTransactionAction extends InvalidWitnessedTransactionAction {
+    WitnessedRowColumnRangeReadTransactionAction witness();
+
+    List<ColumnAndValue> expectedColumnsAndValues();
+
+    @Value.Check
+    default void check() {
+        Preconditions.checkState(
+                !expectedColumnsAndValues().equals(witness().columnsAndValues()),
+                "If the witness and expected columns and values match, this should not be an invalid action",
+                SafeArg.of("witnessedColumnsAndValues", witness().columnsAndValues()),
+                SafeArg.of("expectedColumnsAndValues", expectedColumnsAndValues()));
+    }
+
+    static ImmutableInvalidWitnessedRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableInvalidWitnessedRowColumnRangeReadTransactionAction.builder();
+    }
+}u}(js (1d2e0f348f3a7c6192c356190679330cf4db63d4j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X:  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
@@ -32,7 +32,7 @@ public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedT
 
     // This is a List rather than a Set or Map because the ordering in which the columns and values are returned is
     // important (it must match the ordering specified by the contract of row column range reads).
-    List<ColumnValue> columnsAndValues();
+    List<ColumnAndValue> columnsAndValues();
 
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
@@ -43,7 +43,7 @@ default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
     default void check() {
         Set<Integer> knownColumns = new HashSet<>();
         Set<Integer> duplicateColumns = columnsAndValues().stream()
-                .map(ColumnValue::column)
+                .map(ColumnAndValue::column)
                 .filter(column -> !knownColumns.add(column))
                 .collect(Collectors.toSet());
         Preconditions.checkState(u}(js (6eceac9e4aec081bfc01707d271c1ea928848a27j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedSingleCellReadTransactionAction.javaj renamedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellReadTransactionAction.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellReadTransactionAction.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j Xw  @@ -21,8 +21,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedReadTransactionAction extends WitnessedSingleCellTransactionAction {
-
+public interface WitnessedSingleCellReadTransactionAction extends WitnessedSingleCellTransactionAction {
     @Override
     @Value.Parameter
     String table();
@@ -40,7 +39,7 @@ default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-    static WitnessedReadTransactionAction of(String table, WorkloadCell cell, Optional<Integer> value) {
-        return ImmutableWitnessedReadTransactionAction.of(table, cell, value);
+    static WitnessedSingleCellReadTransactionAction of(String table, WorkloadCell cell, Optional<Integer> value) {
+        return ImmutableWitnessedSingleCellReadTransactionAction.of(table, cell, value);
     }
 }j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedReadTransactionAction.javau}(js (f5757c803ef0b621c430879709896498f246314aj atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionActionVisitor.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j Xf  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
 public interface WitnessedTransactionActionVisitor<T> {
-    T visit(WitnessedReadTransactionAction readTransactionAction);
+    T visit(WitnessedSingleCellReadTransactionAction readTransactionAction);
 
     T visit(WitnessedWriteTransactionAction writeTransactionAction);
 u}(js (b9204f7d18a8c7881c6b1c06fcaa87e0b81b0918j atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -53,7 +53,8 @@ public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
     @Test
     public void toFullyWitnessedCopiesArgumentsCorrectly() {
         WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
-        WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
+        WitnessedSingleCellReadTransactionAction readTransactionAction =
+                mock(WitnessedSingleCellReadTransactionAction.class);
         List<WitnessedSingleCellTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
         FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
                 .startTimestamp(START_TIMESTAMP)u}(js (16d6781c2707fdd741a02ac1bb0a6552f8711c0fj atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j Xg  @@ -21,7 +21,7 @@
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.logsafe.SafeArg;
@@ -33,7 +33,7 @@ public class WitnessedRowColumnRangeReadTransactionActionTest {
     @Test
     public void canCreateWitness() {
         assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
+                        .addColumnsAndValues(ColumnAndValue.of(1, 5), ColumnAndValue.of(5, 1), ColumnAndValue.of(3, 3))
                         .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                 .table("foo")
                                 .row(1)
@@ -46,12 +46,12 @@ public void canCreateWitness() {
 
     @Test
     public void cannotCreateWitnessWithDuplicateColumns() {
-        List<ColumnValue> columnsAndValues = ImmutableList.of(
-                ColumnValue.of(1, 5),
-                ColumnValue.of(5, 1),
-                ColumnValue.of(1, 3),
-                ColumnValue.of(5, 8),
-                ColumnValue.of(9, 99));
+        List<ColumnAndValue> columnsAndValues = ImmutableList.of(
+                ColumnAndValue.of(1, 5),
+                ColumnAndValue.of(5, 1),
+                ColumnAndValue.of(1, 3),
+                ColumnAndValue.of(5, 8),
+                ColumnAndValue.of(9, 99));
 
         assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
                         .addAllColumnsAndValues(columnsAndValues)u}(js (43f7db29b1f11285d4780b675a722642fd57ab8cj latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -48,6 +48,8 @@
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
 import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.WriteOnceDeleteOnceWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.WriteOnceDeleteOnceWorkflows;
 import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflows;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
@@ -119,7 +121,7 @@ private void scheduleBackgroundJobs(Environment environment) {
                         AntithesisCassandraSidecarResource.INSTANCE,
                         DefaultBuggifyFactory.INSTANCE),
                 0,
-                10,
+                2,
                 TimeUnit.SECONDS);
     }
 
@@ -150,6 +152,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().bankBalanceConfig();
         RandomWorkflowConfiguration randomWorkflowConfig =
                 configuration.install().randomConfig();
+        WriteOnceDeleteOnceWorkflowConfiguration writeOnceDeleteOnceConfig =
+                configuration.install().writeOnceDeleteOnceConfig();
 
         waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
 
@@ -168,7 +172,9 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 singleBusyCellReadNoTouchWorkflowConfiguration,
                                 environment.lifecycle()),
                         createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
-                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
+                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()),
+                        createWriteOnceDeleteOnceWorkflow(
+                                transactionStoreFactory, writeOnceDeleteOnceConfig, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -355,6 +361,27 @@ private WorkflowAndInvariants<Workflow> createRandomWorkflow(
                 .build();
     }
 
+    private WorkflowAndInvariants<Workflow> createWriteOnceDeleteOnceWorkflow(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            WriteOnceDeleteOnceWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService =
+                createExecutorService(workflowConfig, lifecycle, WriteOnceDeleteOnceWorkflows.class);
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(WriteOnceDeleteOnceWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        WriteOnceDeleteOnceWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
     @VisibleForTesting
     CountDownLatch workflowsRanLatch() {
         return workflowsRanLatch;u}(js (5237f9202d66e63079e2924fcc747ca6dc49a0dbj atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XF  @@ -24,6 +24,7 @@
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.WriteOnceDeleteOnceWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
@@ -48,5 +49,7 @@ public interface WorkloadServerInstallConfiguration {
 
     SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadsNoTouchConfig();
 
+    WriteOnceDeleteOnceWorkflowConfiguration writeOnceDeleteOnceConfig();
+
     boolean exitAfterRunning();
 }u}(js (4cd63bc7a837d9125b78d17a9da0491aa4140ae7j Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j Xq  @@ -48,4 +48,10 @@ install:
     iterationCount: 100
     type: single-busy-cell-reads-no-touch
     maxThreadCount: 2
+  writeOnceDeleteOnceConfig:
+    tableConfiguration:
+      tableName: write-once-delete-once-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: write-once-delete-once
   exitAfterRunning: false
\ No newline at end of fileu}(js (fbcdf7aa235656e485c4e3e935f1a5c896be2a0aj Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XG  @@ -37,7 +37,7 @@ install:
         password: cassandra
       ssl: false
       replicationFactor: 3
-      gcGraceSeconds: 300
+      gcGraceSeconds: 60
     targetedSweep:
       enableSweepQueueWrites: true
     namespace: workload_server
@@ -85,4 +85,10 @@ install:
     iterationCount: 100
     type: single-busy-cell-reads-no-touch
     maxThreadCount: 2
+  writeOnceDeleteOnceConfig:
+    tableConfiguration:
+      tableName: write_once_delete_once_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: write-once-delete-once
   exitAfterRunning: trueu}(js (b98150c940857f6d8db8540b9df25fe3acccc161j Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml     j https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j Xp  @@ -49,4 +49,10 @@ install:
     iterationCount: 100
     type: single-busy-cell-reads-no-touch
     maxThreadCount: 2
+  writeOnceDeleteOnceConfig:
+    tableConfiguration:
+      tableName: write-once-delete-once-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: write-once-delete-once
   exitAfterRunning: true
\ No newline at end of fileu}(js (86ec63b122472809aa991124a48d9c725b6eb031j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -16,14 +16,18 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.RangeQueryReader;
+import com.palantir.atlasdb.workload.transaction.SimpleRangeQueryReader;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -60,9 +64,11 @@ private static final class SerializableInvariantVisitor
             implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
 
         private final InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        private final RangeQueryReader rangeQueryReader = SimpleRangeQueryReader.create(inMemoryTransactionReplayer);
 
         @Override
-        public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedSingleCellReadTransactionAction readTransactionAction) {
             Optional<Integer> expectedValue = inMemoryTransactionReplayer
                     .getValues()
                     .get(TableAndWorkloadCell.of(readTransactionAction.table(), readTransactionAction.cell()))
@@ -94,7 +100,14 @@ public Optional<InvalidWitnessedTransactionAction> visit(
         @Override
         public Optional<InvalidWitnessedTransactionAction> visit(
                 WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
-            // TODO (jkong): Not implemented yet
+            List<ColumnAndValue> expectedReads =
+                    rangeQueryReader.readRange(rowColumnRangeReadTransactionAction.originalQuery());
+            if (!expectedReads.equals(rowColumnRangeReadTransactionAction.columnsAndValues())) {
+                return Optional.of(InvalidWitnessedRowColumnRangeReadTransactionAction.builder()
+                        .witness(rowColumnRangeReadTransactionAction)
+                        .expectedColumnsAndValues(expectedReads)
+                        .build());
+            }
             return Optional.empty();
         }
     }u}(js (9e5e992be69401120b03691540fd57f1a95b93b8j katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X
  @@ -17,16 +17,20 @@
 package com.palantir.atlasdb.workload.invariant;
 
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.SimpleRangeQueryReader;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.Map;
+import java.util.List;
 import java.util.Optional;
 
 /**
@@ -54,7 +58,8 @@ final class SnapshotInvariantVisitor
     }
 
     @Override
-    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+    public Optional<InvalidWitnessedTransactionAction> visit(
+            WitnessedSingleCellReadTransactionAction readTransactionAction) {
         Optional<Integer> expected = fetchValueFromView(
                         readTransactionAction.table(), readTransactionAction.cell(), readView)
                 .value();
@@ -93,7 +98,14 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransact
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(
             WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
-        // TODO (jkong): Not implemented yet
+        List<ColumnAndValue> expectedReads = SimpleRangeQueryReader.createForSnapshot(readView)
+                .readRange(rowColumnRangeReadTransactionAction.originalQuery());
+        if (!expectedReads.equals(rowColumnRangeReadTransactionAction.columnsAndValues())) {
+            return Optional.of(InvalidWitnessedRowColumnRangeReadTransactionAction.builder()
+                    .witness(rowColumnRangeReadTransactionAction)
+                    .expectedColumnsAndValues(expectedReads)
+                    .build());
+        }
         return Optional.empty();
     }
 u}(js (a9210a5d7d0c098da089049338a91d83c08b6b53j latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj modifiedj K7j Kj K;j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -17,25 +17,33 @@
 package com.palantir.atlasdb.workload.store;
 
 import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.keyvalue.api.BatchColumnRangeSelection;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.ArrayList;
+import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Optional;
 import java.util.Set;
 import java.util.function.BiFunction;
+import java.util.function.Function;
+import java.util.stream.Collectors;
 import javax.annotation.concurrent.NotThreadSafe;
+import one.util.streamex.EntryStream;
 
 @NotThreadSafe
 final class AtlasDbInteractiveTransaction implements InteractiveTransaction {
@@ -60,7 +68,8 @@ public Optional<Integer> read(String table, WorkloadCell workloadCell) {
                     Map<Cell, byte[]> values = transaction.get(tableReference, Set.of(atlasCell));
                     Optional<Integer> valueRead =
                             Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
-                    witnessedTransactionActions.add(WitnessedReadTransactionAction.of(table, workloadCell, valueRead));
+                    witnessedTransactionActions.add(
+                            WitnessedSingleCellReadTransactionAction.of(table, workloadCell, valueRead));
                     return valueRead;
                 },
                 table,
@@ -91,6 +100,38 @@ public void delete(String table, WorkloadCell workloadCell) {
                 workloadCell);
     }
 
+    @Override
+    public List<ColumnAndValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection) {
+        return run(
+                tableReference -> {
+                    // Having a non-configurable batch hint is a bit iffy, but suffices as this won't be used in
+                    // production.
+                    Map<byte[], Iterator<Entry<Cell, byte[]>>> iterators = transaction.getRowsColumnRangeIterator(
+                            tableReference,
+                            List.of(AtlasDbUtils.toAtlasKey(row)),
+                            BatchColumnRangeSelection.create(
+                                    AtlasDbUtils.toAtlasColumnRangeSelection(columnRangeSelection), 100));
+                    Preconditions.checkState(
+                            iterators.size() == 1,
+                            "Expected exactly one iterator to be returned",
+                            SafeArg.of("iteratorsReturned", iterators.size()));
+                    List<ColumnAndValue> columnsAndValues = EntryStream.of(iterators.get(AtlasDbUtils.toAtlasKey(row)))
+                            .mapKeys(Cell::getColumnName)
+                            .mapKeys(AtlasDbUtils::fromAtlasColumn)
+                            .mapValues(AtlasDbUtils::fromAtlasValue)
+                            .map(entry -> ColumnAndValue.of(entry.getKey(), entry.getValue()))
+                            .collect(Collectors.toList());
+                    witnessedTransactionActions.add(RowColumnRangeReadTransactionAction.builder()
+                            .table(table)
+                            .row(row)
+                            .columnRangeSelection(columnRangeSelection)
+                            .build()
+                            .witness(columnsAndValues));
+                    return columnsAndValues;
+                },
+                table);
+    }
+
     @Override
     public List<WitnessedTransactionAction> witness() {
         hasFinished = true;
@@ -106,10 +147,20 @@ private TableReference getTableReferenceOrThrow(String table) {
     }
 
     private <T> T run(BiFunction<TableReference, Cell, T> function, String table, WorkloadCell workloadCell) {
-        Preconditions.checkState(
-                !hasFinished, "Transaction has already been witnessed and can no longer perform any actions.");
+        checkTransactionHasNotFinished();
         Cell atlasCell = AtlasDbUtils.toAtlasCell(workloadCell);
         TableReference tableReference = getTableReferenceOrThrow(table);
         return function.apply(tableReference, atlasCell);
     }
+
+    private <T> T run(Function<TableReference, T> function, String table) {
+        checkTransactionHasNotFinished();
+        TableReference tableReference = getTableReferenceOrThrow(table);
+        return function.apply(tableReference);
+    }
+
+    private void checkTransactionHasNotFinished() {
+        Preconditions.checkState(
+                !hasFinished, "Transaction has already been witnessed and can no longer perform any actions.");
+    }
 }u}(js (1800f3b86ab7dd6f58186797efd5280b70bd757dj fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XV  @@ -26,8 +26,8 @@
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
@@ -143,8 +143,8 @@ public AtlasDbTransactionActionVisitor(InteractiveTransaction transaction) {
         }
 
         @Override
-        public Void visit(ReadTransactionAction readTransactionAction) {
-            transaction.read(readTransactionAction.table(), readTransactionAction.cell());
+        public Void visit(SingleCellReadTransactionAction singleCellReadTransactionAction) {
+            transaction.read(singleCellReadTransactionAction.table(), singleCellReadTransactionAction.cell());
             return null;
         }
 
@@ -163,8 +163,11 @@ public Void visit(DeleteTransactionAction deleteTransactionAction) {
 
         @Override
         public Void visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
-            // TODO (jkong): Not implemented yet
-            throw new UnsupportedOperationException("Not implemented yet");
+            transaction.getRowColumnRange(
+                    rowColumnRangeReadTransactionAction.table(),
+                    rowColumnRangeReadTransactionAction.row(),
+                    rowColumnRangeReadTransactionAction.columnRangeSelection());
+            return null;
         }
     }
 u}(js (fc90a1cdd07648f9656627da15fa0fe7c9929b48j patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j Xp  @@ -19,8 +19,8 @@
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.HashMap;
@@ -33,7 +33,7 @@ public final class InMemoryTransactionReplayer implements WitnessedTransactionAc
             StructureHolder.create(HashMap::empty);
 
     @Override
-    public Void visit(WitnessedReadTransactionAction _readTransactionAction) {
+    public Void visit(WitnessedSingleCellReadTransactionAction _readTransactionAction) {
         return null;
     }
 u}(js (60d3e000f2076c608fd8208ae840c3a81c246f9dj eatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/RangeQueryReader.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -0,0 +1,24 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
+import java.util.List;
+
+public interface RangeQueryReader {
+    List<ColumnAndValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction);
+}u}(js (5862ed5f30754a3c64cc032f5b08ffe3e9a56b22j katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReader.javaj addedj KQj K j KQj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -0,0 +1,81 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.invariant.ValueAndMaybeTimestamp;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.Optional;
+import java.util.function.Supplier;
+
+public final class SimpleRangeQueryReader implements RangeQueryReader {
+    private static final SafeLogger log = SafeLoggerFactory.get(SimpleRangeQueryReader.class);
+
+    private static final int LARGE_HISTORY_LIMIT = 30_000;
+
+    private final Supplier<Map<TableAndWorkloadCell, Optional<Integer>>> rawValueSupplier;
+
+    @VisibleForTesting
+    SimpleRangeQueryReader(Supplier<Map<TableAndWorkloadCell, Optional<Integer>>> rawValueSupplier) {
+        this.rawValueSupplier = rawValueSupplier;
+    }
+
+    public static RangeQueryReader create(InMemoryTransactionReplayer replayer) {
+        return new SimpleRangeQueryReader(replayer::getValues);
+    }
+
+    public static RangeQueryReader createForSnapshot(
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> readView) {
+        return new SimpleRangeQueryReader(() -> readView.getSnapshot().mapValues(ValueAndMaybeTimestamp::value));
+    }
+
+    @Override
+    public List<ColumnAndValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction) {
+        Map<TableAndWorkloadCell, Optional<Integer>> allValues = rawValueSupplier.get();
+        if (allValues.size() > LARGE_HISTORY_LIMIT) {
+            log.error(
+                    "Attempted to do range queries in a simple way, even though the history is large ({} entries)! If"
+                        + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
+                        + " efficient range query implementation.",
+                    SafeArg.of("size", allValues.size()));
+        }
+        return allValues
+                .filterKeys(tableAndWorkloadCell -> {
+                    if (!tableAndWorkloadCell.tableName().equals(readTransactionAction.table())) {
+                        return false;
+                    }
+                    if (tableAndWorkloadCell.cell().key() != readTransactionAction.row()) {
+                        return false;
+                    }
+                    return readTransactionAction
+                            .columnRangeSelection()
+                            .contains(tableAndWorkloadCell.cell().column());
+                })
+                .filterValues(Optional::isPresent)
+                .mapValues(Optional::get)
+                .map(entry -> ColumnAndValue.of(entry._1().cell().column(), entry._2()))
+                .sortBy(ColumnAndValue::column)
+                .toJavaList();
+    }
+}u}(js (5c84ec2365c7267c98a6761c28c444790f8027bfj katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -17,17 +17,17 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 
 public enum WitnessToActionVisitor implements WitnessedTransactionActionVisitor<TransactionAction> {
     INSTANCE;
 
     @Override
-    public ReadTransactionAction visit(WitnessedReadTransactionAction readTransactionAction) {
-        return ImmutableReadTransactionAction.of(readTransactionAction.table(), readTransactionAction.cell());
+    public SingleCellReadTransactionAction visit(WitnessedSingleCellReadTransactionAction readTransactionAction) {
+        return ImmutableSingleCellReadTransactionAction.of(readTransactionAction.table(), readTransactionAction.cell());
     }
 
     @Overrideu}(js (45188926753c546106aea8c33667dbc777075297j Zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/AtlasDbUtils.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -26,6 +26,7 @@
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
@@ -50,8 +51,20 @@ public static ConflictHandler toConflictHandler(IsolationLevel isolationLevel) {
         }
     }
 
+    public static byte[] toAtlasKey(int key) {
+        return Ints.toByteArray(key);
+    }
+
+    public static int fromAtlasColumn(byte[] bytes) {
+        return Ints.fromByteArray(bytes);
+    }
+
+    public static int fromAtlasValue(byte[] value) {
+        return Ints.fromByteArray(value);
+    }
+
     public static Cell toAtlasCell(WorkloadCell cell) {
-        return Cell.create(Ints.toByteArray(cell.key()), Ints.toByteArray(cell.column()));
+        return Cell.create(toAtlasKey(cell.key()), Ints.toByteArray(cell.column()));
     }
 
     public static byte[] tableMetadata(ConflictHandler conflictHandler) {
@@ -93,4 +106,17 @@ public static ConflictHandler toIndexConflictHandler(ConflictHandler baseTableCo
     public static byte[] indexMetadata(ConflictHandler baseTableConflictHandler) {
         return tableMetadata(toIndexConflictHandler(baseTableConflictHandler));
     }
+
+    public static com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection toAtlasColumnRangeSelection(
+            ColumnRangeSelection columnRangeSelection) {
+        return new com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection(
+                columnRangeSelection
+                        .startColumnInclusive()
+                        .map(AtlasDbUtils::toAtlasKey)
+                        .orElse(null),
+                columnRangeSelection
+                        .endColumnExclusive()
+                        .map(AtlasDbUtils::toAtlasKey)
+                        .orElse(null));
+    }
 }u}(js (068772270bb2fa3e428fb2588a4fa5c879332417j matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowConfiguration.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -47,8 +47,18 @@ default Integer maxDeletes() {
     }
 
     @Value.Default
-    default Integer maxCells() {
-        return 10;
+    default Integer maxRowRangeScans() {
+        return 3;
+    }
+
+    @Value.Default
+    default Integer maxRows() {
+        return 5;
+    }
+
+    @Value.Default
+    default Integer maxColumns() {
+        return 5;
     }
 
     @Value.Lazyu}(js (6d6f5fcc34e22304ca8c5dc2c2c635361ee8fb32j aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javaj modifiedj K)j Kj K0j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -21,11 +21,14 @@
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ImmutableDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ImmutableReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableRowColumnRangeReadTransactionAction.Builder;
 import com.palantir.atlasdb.workload.transaction.ImmutableWriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -41,7 +44,6 @@
 
 public final class RandomWorkflows {
     private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
-    private static final Integer COLUMN = 0;
 
     private RandomWorkflows() {
         // static factory
@@ -78,17 +80,20 @@ public RandomWorkflowTask(RandomWorkflowConfiguration workflowConfiguration, Sec
         public Optional<WitnessedTransaction> run(TransactionStore store) {
             workflowConfiguration.transactionRateLimiter().acquire();
             List<TransactionAction> actions = Stream.of(
-                            generateReadActions(), generateWriteActions(), generateDeleteActions())
+                            generateReadActions(),
+                            generateWriteActions(),
+                            generateDeleteActions(),
+                            generateRowColumnRangeReadActions())
                     .flatMap(Collection::stream)
                     .collect(Collectors.toList());
             Collections.shuffle(actions, random);
             return store.readWrite(actions);
         }
 
-        private List<ReadTransactionAction> generateReadActions() {
+        private List<SingleCellReadTransactionAction> generateReadActions() {
             return IntStream.range(0, random.nextInt(workflowConfiguration.maxReads() + 1))
                     .boxed()
-                    .map(_index -> ImmutableReadTransactionAction.of(
+                    .map(_index -> SingleCellReadTransactionAction.of(
                             workflowConfiguration.tableConfiguration().tableName(), randomCell()))
                     .collect(Collectors.toList());
         }
@@ -111,8 +116,37 @@ private List<DeleteTransactionAction> generateDeleteActions() {
                     .collect(Collectors.toList());
         }
 
+        private List<RowColumnRangeReadTransactionAction> generateRowColumnRangeReadActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxRowRangeScans() + 1))
+                    .boxed()
+                    .map(_index -> {
+                        WorkloadCell startCell = randomCell();
+                        int endColumn = random.nextInt(workflowConfiguration.maxColumns());
+                        Builder builder = ImmutableRowColumnRangeReadTransactionAction.builder()
+                                .table(workflowConfiguration
+                                        .tableConfiguration()
+                                        .tableName())
+                                .row(startCell.key());
+                        if (startCell.column() < endColumn) {
+                            builder.columnRangeSelection(ColumnRangeSelection.builder()
+                                    .startColumnInclusive(startCell.column())
+                                    .endColumnExclusive(endColumn + 1)
+                                    .build());
+                        } else {
+                            builder.columnRangeSelection(ColumnRangeSelection.builder()
+                                    .startColumnInclusive(endColumn)
+                                    .endColumnExclusive(startCell.column() + 1)
+                                    .build());
+                        }
+                        return builder.build();
+                    })
+                    .collect(Collectors.toList());
+        }
+
         private WorkloadCell randomCell() {
-            return ImmutableWorkloadCell.of(random.nextInt(workflowConfiguration.maxCells()), COLUMN);
+            return ImmutableWorkloadCell.of(
+                    random.nextInt(workflowConfiguration.maxRows()),
+                    random.nextInt(workflowConfiguration.maxColumns()));
         }
     }
 }u}(js (1ddc1c9a4fbd8b3691b9a96fdf667e44919d96f7j latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XI  @@ -24,7 +24,7 @@
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -106,6 +106,7 @@ private static List<TransactionAction> createCellUpdateActions(int taskIndex, St
 
     private static List<TransactionAction> createCellReadActions(String tableName) {
         return ImmutableList.of(
-                ReadTransactionAction.of(tableName, FIRST_CELL), ReadTransactionAction.of(tableName, SECOND_CELL));
+                SingleCellReadTransactionAction.of(tableName, FIRST_CELL),
+                SingleCellReadTransactionAction.of(tableName, SECOND_CELL));
     }
 }u}(js (4a225b9a61bb820c7e3d66ad9815a6b22d3ea422j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javaj modifiedj Kj K
j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X*  @@ -28,7 +28,7 @@
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.logsafe.SafeArg;
@@ -38,7 +38,6 @@
 import java.security.SecureRandom;
 import java.util.ArrayList;
 import java.util.List;
-import java.util.Objects;
 import java.util.Optional;
 import java.util.Set;
 import java.util.stream.Collectors;
@@ -129,22 +128,20 @@ private static List<CrossCellInconsistency> findInconsistencyInTransactionHistor
 
     private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActions(
             List<WitnessedTransactionAction> actions) {
-        Set<WitnessedReadTransactionAction> readTransactionActions = actions.stream()
-                .filter(WitnessedReadTransactionAction.class::isInstance)
-                .map(action -> (WitnessedReadTransactionAction) action)
+        Set<WitnessedSingleCellReadTransactionAction> readTransactionActions = actions.stream()
+                .filter(WitnessedSingleCellReadTransactionAction.class::isInstance)
+                .map(action -> (WitnessedSingleCellReadTransactionAction) action)
                 .collect(Collectors.toSet());
         if (readTransactionActions.size() == 0) {
             return Stream.empty();
         }
-        WitnessedReadTransactionAction summaryRowRead = readTransactionActions.stream()
+        WitnessedSingleCellReadTransactionAction summaryRowRead = readTransactionActions.stream()
                 .filter(action -> action.cell().key() == SUMMARY_ROW)
                 .findAny()
                 .orElseThrow(() -> new SafeIllegalStateException(
                         "Expected to find a read of the summary row", SafeArg.of("actions", actions)));
-        WitnessedReadTransactionAction normalRowRead = readTransactionActions.stream()
-                .filter(action -> Objects.equals(
-                                action.cell().key(), summaryRowRead.cell().column())
-                        && action.cell().column() == COLUMN)
+        WitnessedSingleCellReadTransactionAction normalRowRead = readTransactionActions.stream()
+                .filter(action -> action.cell().key() != SUMMARY_ROW)
                 .findAny()
                 .orElseThrow(() -> new SafeIllegalStateException(
                         "Expected to find a read of a corresponding normal row", SafeArg.of("actions", actions)));u}(js (925f21e6a31c29edd1886e242df8560a69dc50bbj zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflowConfiguration.javaj addedj K/j K j K/j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowConfiguration.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -0,0 +1,47 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableWriteOnceDeleteOnceWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableWriteOnceDeleteOnceWorkflowConfiguration.class)
+@JsonTypeName(WriteOnceDeleteOnceWorkflowConfiguration.TYPE)
+public interface WriteOnceDeleteOnceWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "write-once-delete-once";
+
+    TableConfiguration tableConfiguration();
+
+    /**
+     * The maximum value (exclusive) for the row key.
+     * This is half the iteration count, so we ideally perform two actions per cell.
+     */
+    @Value.Derived
+    default Integer maxKey() {
+        return iterationCount() / 2;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(js (a850b6cc04da7a2a476c96ad9b2bb3f53843a1a2j natlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflows.javaj addedj Kjj K j Kjj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflows.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflows.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.security.SecureRandom;
+import java.util.Optional;
+import java.util.function.IntFunction;
+
+/**
+ * The idea of this class is to catch bugs around tombstone drops, by having a
+ * workflow which _mostly_ writes once first and then on deletes once for a given cell.
+ * Probability and randomness are used to enforce this behaviour, thus it's possible to have a write without a
+ * delete, or visa versa; some cells may randomly be written or deleted multiple times as well.
+ */
+public final class WriteOnceDeleteOnceWorkflows {
+
+    private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+
+    private static final Integer COLUMN = 0;
+
+    private WriteOnceDeleteOnceWorkflows() {
+        // Utility class
+    }
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            WriteOnceDeleteOnceWorkflowConfiguration configuration,
+            ListeningExecutorService executionExecutor) {
+        return create(store, configuration, executionExecutor, DefaultBuggifyFactory.INSTANCE, RANDOM::nextInt);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            InteractiveTransactionStore store,
+            WriteOnceDeleteOnceWorkflowConfiguration configuration,
+            ListeningExecutorService executionExecutor,
+            BuggifyFactory buggifyFactory,
+            IntFunction<Integer> randomNumberGenerator) {
+        WriteOnceDeleteOnceWorkflow workflow =
+                new WriteOnceDeleteOnceWorkflow(buggifyFactory, randomNumberGenerator, configuration);
+        return DefaultWorkflow.create(store, workflow::run, configuration, executionExecutor);
+    }
+
+    private static class WriteOnceDeleteOnceWorkflow {
+        private final BuggifyFactory buggifyFactory;
+        private final IntFunction<Integer> rowKeyGenerator;
+        private final WriteOnceDeleteOnceWorkflowConfiguration configuration;
+
+        public WriteOnceDeleteOnceWorkflow(
+                BuggifyFactory buggifyFactory,
+                IntFunction<Integer> rowKeyGenerator,
+                WriteOnceDeleteOnceWorkflowConfiguration configuration) {
+            this.buggifyFactory = buggifyFactory;
+            this.rowKeyGenerator = rowKeyGenerator;
+            this.configuration = configuration;
+        }
+
+        public Optional<WitnessedTransaction> run(InteractiveTransactionStore store, Integer taskIndex) {
+            configuration.transactionRateLimiter().acquire();
+            return store.readWrite(txn -> {
+                Integer rowKey = rowKeyGenerator.apply(configuration.maxKey());
+                if (buggifyFactory
+                        .maybe(calculateChanceForDelete(taskIndex, configuration.iterationCount()))
+                        .asBoolean()) {
+                    txn.delete(configuration.tableConfiguration().tableName(), cell(rowKey));
+                } else {
+                    txn.write(configuration.tableConfiguration().tableName(), cell(rowKey), RANDOM.nextInt(10000));
+                }
+            });
+        }
+    }
+
+    @VisibleForTesting
+    static Double calculateChanceForDelete(Integer taskIndex, Integer iterationCount) {
+        // Index generation is [inclusive, exclusive], so we need to add 1 to the task index.
+        return (taskIndex + 1.0) / iterationCount;
+    }
+
+    @VisibleForTesting
+    static WorkloadCell cell(Integer index) {
+        return ImmutableWorkloadCell.of(index, COLUMN);
+    }
+}u}(js (696e20bfa4e91d86751f7c482791d8f7445b3348j katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflows.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j Xd
  @@ -18,9 +18,11 @@
 
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
@@ -45,7 +47,8 @@ public final class BankBalanceWorkflows {
     private static final SafeLogger log = SafeLoggerFactory.get(BankBalanceWorkflows.class);
     private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
 
-    private static final Integer COLUMN = 0;
+    @VisibleForTesting
+    static final Integer ROW = 42;
 
     private BankBalanceWorkflows() {
         // utility
@@ -121,16 +124,23 @@ private void performTransfers(InteractiveTransaction transaction, Map<Integer, I
         }
 
         private Map<Integer, Optional<Integer>> getAccountBalances(InteractiveTransaction transaction) {
+            Map<Integer, Integer> balancesInDatabase = transaction
+                    .getRowColumnRange(
+                            workflowConfiguration.tableConfiguration().tableName(),
+                            ROW,
+                            ColumnRangeSelection.builder()
+                                    .endColumnExclusive(workflowConfiguration.numberOfAccounts())
+                                    .build())
+                    .stream()
+                    .collect(Collectors.toMap(ColumnAndValue::column, ColumnAndValue::value));
             return IntStream.range(0, workflowConfiguration.numberOfAccounts())
                     .boxed()
                     .collect(Collectors.toMap(
-                            Function.identity(),
-                            index -> transaction.read(
-                                    workflowConfiguration.tableConfiguration().tableName(), getCellForAccount(index))));
+                            Function.identity(), index -> Optional.ofNullable(balancesInDatabase.get(index))));
         }
     }
 
     public static WorkloadCell getCellForAccount(int accountIndex) {
-        return ImmutableWorkloadCell.of(accountIndex, COLUMN);
+        return ImmutableWorkloadCell.of(ROW, accountIndex);
     }
 }u}(js (4b3679c7c82dc1219afbf7dcf075bce3b3ace5c3j latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X9  @@ -18,14 +18,18 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -111,18 +115,15 @@ public void catchesWriteSkew() {
                 .transactionStore(readableTransactionStore)
                 .build();
         SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
-        InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);
-
-        assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
         InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
-                Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
 
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(
                         InvalidWitnessedSingleCellTransactionAction.class,
                         invalidSingleCellWitnessedTransactionAction -> {
                             assertThat(invalidSingleCellWitnessedTransactionAction.action())
-                                    .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
+                                    .isInstanceOfSatisfying(WitnessedSingleCellReadTransactionAction.class, action -> {
                                         assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
                                         assertThat(action.value()).contains(15);
                                     });
@@ -155,4 +156,232 @@ public void handlesDeletes() {
         SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
         assertThat(invalidTransactions).isEmpty();
     }
+
+    @Test
+    public void readsEmptyRowRangeIfNoCellsInRange() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder()
+                                .startColumnInclusive(8888888)
+                                .build(),
+                        ImmutableList.of())
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void readsEmptyRowRangeIfNoCellsInRow() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(10, ColumnRangeSelection.builder().build(), ImmutableList.of())
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void readsRowRangeToExhaustion() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void incorporatesLocalWritesIntoRowColumnRangeQueries() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .write(5, 20, 34)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(
+                                ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21), ColumnAndValue.of(20, 34)))
+                .write(5, 10, 99)
+                .write(5, 13, 24)
+                .delete(5, 15)
+                .write(5, 18, 36)
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(
+                                ColumnAndValue.of(10, 99),
+                                ColumnAndValue.of(13, 24),
+                                ColumnAndValue.of(18, 36),
+                                ColumnAndValue.of(20, 34)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void identifiesUnexpectedMissingCellInRowColumnRangeRead() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .write(5, 20, 34)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
+                                action.expectedColumnsAndValues())
+                        .containsExactly(
+                                ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21), ColumnAndValue.of(20, 34)));
+    }
+
+    @Test
+    public void identifiesUnexpectedAdditionalCellInRowColumnRangeRead() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 20, 34)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(
+                                ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 24), ColumnAndValue.of(20, 34)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
+                                action.expectedColumnsAndValues())
+                        .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
+    }
+
+    @Test
+    public void identifiesIncorrectCellValuesInRowColumnRangeRead() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 20, 34)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnAndValue.of(10, 8888888), ColumnAndValue.of(20, 34)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
+                                action.expectedColumnsAndValues())
+                        .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
+    }
+
+    @Test
+    public void identifiesIncorrectOrderingInRowColumnRangeRead() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 20, 34)
+                .write(5, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnAndValue.of(20, 34), ColumnAndValue.of(10, 15)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
+                                action.expectedColumnsAndValues())
+                        .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
+    }
+
+    private static InvalidWitnessedTransactionAction getSingularFinalInvalidAction(
+            List<InvalidWitnessedTransaction> invalidTransactions, List<WitnessedTransaction> transactions) {
+        InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);
+
+        assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
+        return Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
+    }
 }uh     }(js (1dd888be2cbe216b733496bdef850a4e96a0dc2cj hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javaj modifiedj KRj K j KRj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X&  @@ -18,13 +18,19 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
 import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -167,4 +173,80 @@ public void properlyReplaysReadsAndWrites() {
         SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
         assertThat(invalidTransactions).isEmpty();
     }
+
+    @Test
+    public void rowColumnRangeScanNotExpectedToReadColumnsCommittingAfterOurStart() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .write(5, 20, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(15L)
+                .startTransaction(12L)
+                .write(5, 30, WorkloadTestHelpers.VALUE_ONE + WorkloadTestHelpers.VALUE_TWO)
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(
+                                ColumnAndValue.of(10, WorkloadTestHelpers.VALUE_ONE),
+                                ColumnAndValue.of(30, WorkloadTestHelpers.VALUE_ONE + WorkloadTestHelpers.VALUE_TWO)))
+                .endTransaction(21L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void rowColumnRangeScanFlagsColumnCommittingAfterOurStartAsViolating() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(5L)
+                .write(5, 20, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(15L)
+                .startTransaction(12L)
+                .write(5, 30, WorkloadTestHelpers.VALUE_ONE)
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(
+                                ColumnAndValue.of(20, WorkloadTestHelpers.VALUE_TWO),
+                                ColumnAndValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
+                .endTransaction(21L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidTransaction.transaction().startTimestamp()).isEqualTo(12L);
+        assertThat(invalidTransaction.transaction().commitTimestamp()).contains(21L);
+
+        InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(
+                        InvalidWitnessedRowColumnRangeReadTransactionAction.class, invalidRowColumnRangeRead -> {
+                            assertThat(invalidRowColumnRangeRead.witness())
+                                    .isEqualTo(WitnessedRowColumnRangeReadTransactionAction.builder()
+                                            .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                                    .table(WorkloadTestHelpers.TABLE_1)
+                                                    .row(5)
+                                                    .columnRangeSelection(ColumnRangeSelection.builder()
+                                                            .build())
+                                                    .build())
+                                            .columnsAndValues(ImmutableList.of(
+                                                    ColumnAndValue.of(20, WorkloadTestHelpers.VALUE_TWO),
+                                                    ColumnAndValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
+                                            .build());
+                            assertThat(invalidRowColumnRangeRead.expectedColumnsAndValues())
+                                    .containsExactly(ColumnAndValue.of(30, WorkloadTestHelpers.VALUE_ONE));
+                        });
+    }
 }u}(js (a251b92eabd208ac88784e2fdc765f1f810ce9fbj patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj modifiedj Kgj Kj Klj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X8"  @@ -27,8 +27,11 @@
 
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
@@ -38,6 +41,8 @@
 import java.util.Optional;
 import java.util.Set;
 import java.util.function.Consumer;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -52,15 +57,15 @@ public void before() {
     }
 
     @Test
-    public void witnessRecordAllActions() {
+    public void witnessRecordsAllSingleCellActions() {
         assertThat(readWrite(transaction -> {
                     transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
                     transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
                     transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
                 }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
-                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
     }
 
@@ -72,9 +77,90 @@ public void readHandlesEmptyAndPresentValue() {
                     transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
                 }))
                 .containsExactly(
-                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
-                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+                        WitnessedSingleCellReadTransactionAction.of(
+                                TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+    }
+
+    @Test
+    public void witnessRecordsColumnRangeActions() {
+        assertThat(readWrite(transaction -> {
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+                }))
+                .containsExactly(
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
+                        WitnessedRowColumnRangeReadTransactionAction.builder()
+                                .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                        .table(TABLE_1)
+                                        .row(WORKLOAD_CELL_TWO.key())
+                                        .columnRangeSelection(ColumnRangeSelection.all())
+                                        .build())
+                                .addColumnsAndValues(ColumnAndValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
+                                .build());
+    }
+
+    @Test
+    public void emptyColumnRangeReadsAreRecorded() {
+        assertThat(readWrite(transaction -> {
+                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+                }))
+                .containsExactly(WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table(TABLE_1)
+                                .row(WORKLOAD_CELL_TWO.key())
+                                .columnRangeSelection(ColumnRangeSelection.all())
+                                .build())
+                        .build());
+    }
+
+    @Test
+    public void allRelevantCellsAreRecordedForFullColumnScan() {
+        int iterationCount = 1000;
+        assertThat(readWrite(transaction -> {
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(TABLE_1, 1, ColumnRangeSelection.all());
+                }))
+                .hasSize(iterationCount + 1)
+                .element(iterationCount)
+                .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
+                        .isInstanceOfSatisfying(
+                                WitnessedRowColumnRangeReadTransactionAction.class,
+                                witness -> assertThat(witness.columnsAndValues())
+                                        .containsExactlyElementsOf(IntStream.range(0, iterationCount)
+                                                .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
+                                                .collect(Collectors.toList()))));
+    }
+
+    @Test
+    public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
+        int iterationCount = 1000;
+        int startInclusive = 313;
+        int endExclusive = 855;
+        assertThat(readWrite(transaction -> {
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(
+                            TABLE_1,
+                            1,
+                            ColumnRangeSelection.builder()
+                                    .startColumnInclusive(startInclusive)
+                                    .endColumnExclusive(endExclusive)
+                                    .build());
+                }))
+                .hasSize(iterationCount + 1)
+                .element(iterationCount)
+                .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
+                        .isInstanceOfSatisfying(
+                                WitnessedRowColumnRangeReadTransactionAction.class,
+                                witness -> assertThat(witness.columnsAndValues())
+                                        .containsExactlyElementsOf(IntStream.range(startInclusive, endExclusive)
+                                                .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
+                                                .collect(Collectors.toList()))));
     }
 
     @Test
@@ -93,6 +179,12 @@ public void deleteThrowsWhenTableDoesNotExist() {
         assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
     }
 
+    @Test
+    public void getRowsColumnRangeThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction ->
+                transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.all()));
+    }
+
     @Test
     public void readThrowsWhenInteractiveTransactionAlreadyWitnessed() {
         assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
@@ -111,6 +203,12 @@ public void deleteThrowsWhenInteractiveTransactionAlreadyWitnessed() {
                 transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
     }
 
+    @Test
+    public void getRowColumnRangeThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(transaction ->
+                transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.all()));
+    }
+
     private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         return manager.runTaskWithRetry(atlasTransaction -> {
             AtlasDbInteractiveTransaction interactiveTransaction =u}(js (adc5e60173b898a15d6ace9f917b6d3050fa0811j jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj modifiedj K
j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -46,11 +46,11 @@
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore.CommitTimestampProvider;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -102,10 +102,10 @@ public void canWriteDataToStore() {
     public void witnessedTransactionMaintainsOrder() {
         List<WitnessedTransactionAction> actions = List.of(
                 WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, 100),
-                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, Optional.of(100)),
-                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_THREE, Optional.empty()),
+                WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, Optional.of(100)),
+                WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_THREE, Optional.empty()),
                 WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, 24),
-                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(24)));
+                WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(24)));
         Optional<WitnessedTransaction> maybeTransaction = store.readWrite(actions.stream()
                 .map(action -> action.accept(WitnessToActionVisitor.INSTANCE))
                 .collect(Collectors.toList()));
@@ -118,20 +118,21 @@ public void witnessedTransactionMaintainsOrder() {
     @Test
     public void readWriteHandlesAllTransactionTypes() {
         store.readWrite(List.of(WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE)));
-        assertThat(store.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+        assertThat(store.readWrite(List.of(SingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isPresent()
                 .map(WitnessedTransaction::actions)
                 .map(Iterables::getOnlyElement)
-                .map(WitnessedReadTransactionAction.class::cast)
-                .map(WitnessedReadTransactionAction::value)
+                .map(WitnessedSingleCellReadTransactionAction.class::cast)
+                .map(WitnessedSingleCellReadTransactionAction::value)
                 .contains(Optional.of(VALUE_ONE));
         store.readWrite(List.of(DeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
         assertThat(store.get(TABLE_1, WORKLOAD_CELL_ONE)).isEmpty();
     }
 
     @Test
     public void readWriteThrowsWhenTableDoesNotExist() {
-        assertThatThrownBy(() -> store.readWrite(List.of(ReadTransactionAction.of("chocolate", WORKLOAD_CELL_ONE))))
+        assertThatThrownBy(() ->
+                        store.readWrite(List.of(SingleCellReadTransactionAction.of("chocolate", WORKLOAD_CELL_ONE))))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Transaction action has unknown table.");
     }
@@ -144,14 +145,14 @@ public void readWriteReturnsEmptyWhenExceptionThrown() {
         when(transactionManager.runTaskWithRetry(any())).thenThrow(new RuntimeException());
         AtlasDbTransactionStore transactionStore = AtlasDbTransactionStore.create(
                 transactionManager, Map.of(TABLE_REFERENCE, AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
-        assertThat(transactionStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+        assertThat(transactionStore.readWrite(List.of(SingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isEmpty();
     }
 
     @Test
     public void readWriteHandlesReadOnlyTransaction() {
         Optional<WitnessedTransaction> witnessedTransaction =
-                store.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
+                store.readWrite(List.of(SingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
         assertThat(witnessedTransaction).isPresent();
         assertThat(witnessedTransaction.get().commitTimestamp()).isEmpty();
     }
@@ -164,7 +165,7 @@ public void abortedTransactionsReturnEmpty() {
         doReturn(abortedTransaction).when(onlyAbortsManager).runTaskWithConditionWithRetry(any(Supplier.class), any());
         AtlasDbTransactionStore onlyAbortsStore =
                 AtlasDbTransactionStore.create(onlyAbortsManager, TABLES_TO_ATLAS_METADATA);
-        assertThat(onlyAbortsStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+        assertThat(onlyAbortsStore.readWrite(List.of(SingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isEmpty();
     }
 u}(js (58c33505b7876ab53b5f9bdd5f01bd2c64e92790j tatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayerTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -25,7 +25,7 @@
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
 import static org.assertj.core.api.Assertions.assertThat;
 
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -43,8 +43,8 @@ public final class InMemoryTransactionReplayerTest {
     @Test
     public void readActionsAreIgnored() {
         InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
-        inMemoryTransactionReplayer.visit(
-                ImmutableWitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+        inMemoryTransactionReplayer.visit(ImmutableWitnessedSingleCellReadTransactionAction.of(
+                TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
         assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
     }
 u}(js (ffb3e2fbc7c39ab5d7801cf2deec03b703b46b32j oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReaderTest.javaj addedj K^j K j K^j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XI  @@ -0,0 +1,94 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.Optional;
+import org.junit.Test;
+
+public class SimpleRangeQueryReaderTest {
+    private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> valueMap =
+            StructureHolder.create(HashMap::empty);
+    private final SimpleRangeQueryReader reader = new SimpleRangeQueryReader(valueMap::getSnapshot);
+
+    @Test
+    public void doesNotReadCellsFromDifferentTable() {
+        valueMap.with(map -> map.put(
+                TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
+                Optional.of(WorkloadTestHelpers.VALUE_ONE)));
+        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_2)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                        .columnRangeSelection(ColumnRangeSelection.all())
+                        .build()))
+                .isEmpty();
+    }
+
+    @Test
+    public void doesNotReadCellsFromDifferentRow() {
+        valueMap.with(map -> map.put(
+                TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
+                Optional.of(WorkloadTestHelpers.VALUE_ONE)));
+        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
+                        .columnRangeSelection(ColumnRangeSelection.builder().build())
+                        .build()))
+                .isEmpty();
+    }
+
+    @Test
+    public void readsCellsFromRangeInOrder() {
+        for (int column = 0; column < 10; column++) {
+            int finalColumn = column;
+            valueMap.with(map -> map.put(
+                    TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, ImmutableWorkloadCell.of(1, finalColumn)),
+                    Optional.of(WorkloadTestHelpers.VALUE_ONE)));
+        }
+        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(1)
+                        .columnRangeSelection(ColumnRangeSelection.builder()
+                                .startColumnInclusive(2)
+                                .endColumnExclusive(4)
+                                .build())
+                        .build()))
+                .containsExactly(
+                        ColumnAndValue.of(2, WorkloadTestHelpers.VALUE_ONE),
+                        ColumnAndValue.of(3, WorkloadTestHelpers.VALUE_ONE));
+    }
+
+    @Test
+    public void doesNotReturnExplicitlyEmptyValues() {
+        valueMap.with(map -> map.put(
+                TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
+                Optional.empty()));
+        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                        .columnRangeSelection(ColumnRangeSelection.all())
+                        .build()))
+                .isEmpty();
+    }
+}u}(js (971037703a3100aada580c79c798eac8ad8b3c98j oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitorTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XI  @@ -21,7 +21,7 @@
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import java.util.Optional;
 import org.junit.Test;
@@ -34,9 +34,9 @@ public final class WitnessToActionVisitorTest {
 
     @Test
     public void convertsReadsCorrectly() {
-        WitnessedReadTransactionAction witnessedRead =
-                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL, Optional.of(VALUE));
-        ReadTransactionAction read = WitnessToActionVisitor.INSTANCE.visit(witnessedRead);
+        WitnessedSingleCellReadTransactionAction witnessedRead =
+                WitnessedSingleCellReadTransactionAction.of(TABLE, WORKLOAD_CELL, Optional.of(VALUE));
+        SingleCellReadTransactionAction read = WitnessToActionVisitor.INSTANCE.visit(witnessedRead);
         assertThat(read.table()).isEqualTo(witnessedRead.table());
         assertThat(read.cell()).isEqualTo(witnessedRead.cell());
     }u}(js (7b09c57f6cdecf3cc15a946a5fe8f7c9e5648a49j qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -16,10 +16,11 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -67,7 +68,8 @@ public WitnessedTransactionBuilder(long startTimestamp) {
         }
 
         public WitnessedTransactionBuilder read(Integer row, Integer column, Optional<Integer> valueRead) {
-            actions.add(WitnessedReadTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), valueRead));
+            actions.add(WitnessedSingleCellReadTransactionAction.of(
+                    table, ImmutableWorkloadCell.of(row, column), valueRead));
             return this;
         }
 
@@ -91,6 +93,17 @@ public WitnessedTransactionBuilder delete(Integer row, Integer column) {
             return this;
         }
 
+        public WitnessedTransactionBuilder rowColumnRangeRead(
+                Integer row, ColumnRangeSelection columnRangeSelection, List<ColumnAndValue> valuesRead) {
+            RowColumnRangeReadTransactionAction transactionAction = RowColumnRangeReadTransactionAction.builder()
+                    .table(table)
+                    .row(row)
+                    .columnRangeSelection(columnRangeSelection)
+                    .build();
+            actions.add(transactionAction.witness(valuesRead));
+            return this;
+        }
+
         public WitnessedTransactionsBuilder endTransaction() {
             Optional<Long> commitTimestamp =
                     needsCommitTimestamp ? Optional.of(timestampCounter.incrementAndGet()) : Optional.empty();u}(js (486aadb53f82079807d09238cd241d1d0497c7fcj eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -30,7 +30,8 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -94,7 +95,8 @@ public void workflowRunsReadWritesDeletes() {
                 .flatMap(Collection::stream)
                 .collect(Collectors.toList());
         assertThat(actions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
-        assertThat(actions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedSingleCellReadTransactionAction.class::isInstance);
         assertThat(actions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedRowColumnRangeReadTransactionAction.class::isInstance);
     }
 }u}(js (02cc3cea18cbb2337e3beb22a5f3250c9b157afdj xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -98,7 +98,7 @@ public void targetCellIsReadModifiedAndDeleted() {
                 .map(WitnessedTransaction::actions)
                 .flatMap(Collection::stream)
                 .collect(Collectors.toList());
-        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedSingleCellReadTransactionAction.class::isInstance);
         assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
         assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
     }
@@ -108,7 +108,8 @@ public void readTransactionsDontDoWrites() {
         WorkflowHistory workflowHistory = workflow.run();
 
         Set<WitnessedTransaction> witnessedTransactionsWithReads = workflowHistory.history().stream()
-                .filter(txn -> txn.actions().stream().anyMatch(WitnessedReadTransactionAction.class::isInstance))
+                .filter(txn ->
+                        txn.actions().stream().anyMatch(WitnessedSingleCellReadTransactionAction.class::isInstance))
                 .collect(Collectors.toSet());
 
         Set<WitnessedTransaction> witnessedTransactionsWithWritesOrDeletes = workflowHistory.history().stream()u}(js (4268ff21ba88dc967e7e3835d86ccbea101b35e2j matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X_  @@ -28,7 +28,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -96,7 +96,7 @@ public void targetCellIsReadModifiedAndDeleted() {
                 .map(WitnessedTransaction::actions)
                 .flatMap(Collection::stream)
                 .collect(Collectors.toList());
-        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedSingleCellReadTransactionAction.class::isInstance);
         assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
         assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
     }u}(js (d82ebc82d525ca3f31eae702e98652e22d5b8db9j patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javaj modifiedj Kj Kj K,j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -29,10 +29,10 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.common.concurrent.PTExecutors;
@@ -69,40 +69,40 @@ public void shouldNotWriteToFirstCellOnOddIndices() {
     public void createsReadsThenMutationsThenReads() {
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(0, TABLE_NAME))
                 .containsExactly(
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
                         WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
                         DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(1, TABLE_NAME))
                 .containsExactly(
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
                         DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
                         WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, 1),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
     }
 
     @Test
     public void writesValueCorrespondingToTaskIndexInRelevantCell() {
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(31415926, TABLE_NAME))
                 .containsExactly(
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
                         WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 31415926),
                         DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(6021023, TABLE_NAME))
                 .containsExactly(
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
                         DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
                         WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, 6021023),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
     }
 
     @Test
@@ -121,15 +121,15 @@ public void workflowHistoryPreservesStoreAndCapturesWitnessedActions() {
                 .isInstanceOf(ReadOnlyTransactionStore.class);
         assertThat(Iterables.getOnlyElement(history.history()).actions())
                 .containsExactly(
-                        WitnessedReadTransactionAction.of(
+                        WitnessedSingleCellReadTransactionAction.of(
                                 TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.empty()),
-                        WitnessedReadTransactionAction.of(
+                        WitnessedSingleCellReadTransactionAction.of(
                                 TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
                         WitnessedDeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
-                        WitnessedReadTransactionAction.of(
+                        WitnessedSingleCellReadTransactionAction.of(
                                 TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.of(0)),
-                        WitnessedReadTransactionAction.of(
+                        WitnessedSingleCellReadTransactionAction.of(
                                 TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()));
     }
 }u}(js (9b8703c2f14476d6da18077afd80bae7f16ec89bj latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -35,7 +35,7 @@
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableFullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -110,7 +110,7 @@ public void subsequentTransactionsWriteThenReadThenDelete() {
         for (int index = 1; index < ITERATION_COUNT; index++) {
             assertThat(witnessedTransactions.get(index).actions()).hasSize(7).satisfies(actions -> {
                 assertThat(actions.subList(0, 2)).allMatch(WitnessedWriteTransactionAction.class::isInstance);
-                assertThat(actions.subList(2, 5)).allMatch(WitnessedReadTransactionAction.class::isInstance);
+                assertThat(actions.subList(2, 5)).allMatch(WitnessedSingleCellReadTransactionAction.class::isInstance);
                 assertThat(actions.subList(5, 7)).allMatch(WitnessedDeleteTransactionAction.class::isInstance);
             });
         }
@@ -195,7 +195,7 @@ public void invariantReportsViolationsFromTransactionHistory() {
 
     @Test
     public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
-        WitnessedReadTransactionAction readWitness = WitnessedReadTransactionAction.of(
+        WitnessedSingleCellReadTransactionAction readWitness = WitnessedSingleCellReadTransactionAction.of(
                 TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
         WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
         assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
@@ -206,11 +206,8 @@ public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
 
     @Test
     public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCorrespondingPrimaryRow() {
-        List<WitnessedTransactionAction> actions = ImmutableList.of(
-                WitnessedReadTransactionAction.of(
-                        TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()),
-                WitnessedReadTransactionAction.of(
-                        TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
+        List<WitnessedTransactionAction> actions = ImmutableList.of(WitnessedSingleCellReadTransactionAction.of(
+                TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()));
         WorkflowHistory history = getWorkflowHistory(actions);
         assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
                 .isInstanceOf(SafeIllegalStateException.class)
@@ -276,11 +273,11 @@ private ImmutableWorkflowHistory getWorkflowHistory(List<WitnessedTransactionAct
     private static List<WitnessedTransactionAction> getReadWitnessesForSingleTransaction(
             int columnIndex, Optional<Integer> summaryValue, Optional<Integer> primaryValue) {
         return ImmutableList.of(
-                WitnessedReadTransactionAction.of(
+                WitnessedSingleCellReadTransactionAction.of(
                         TABLE_NAME,
                         ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, columnIndex),
                         summaryValue),
-                WitnessedReadTransactionAction.of(
+                WitnessedSingleCellReadTransactionAction.of(
                         TABLE_NAME,
                         ImmutableWorkloadCell.of(columnIndex, TransientRowsWorkflows.COLUMN),
                         primaryValue));
@@ -309,12 +306,13 @@ private static TableAndWorkloadCell getPrimaryCellForSummaryCell(TableAndWorkloa
 
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(
             WitnessedTransactionAction action) {
-        if (action instanceof WitnessedReadTransactionAction) {
-            WitnessedReadTransactionAction readAction = (WitnessedReadTransactionAction) action;
+        if (action instanceof WitnessedSingleCellReadTransactionAction) {
+            WitnessedSingleCellReadTransactionAction readAction = (WitnessedSingleCellReadTransactionAction) action;
             if (readAction.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
-                return WitnessedReadTransactionAction.of(readAction.table(), readAction.cell(), Optional.empty());
+                return WitnessedSingleCellReadTransactionAction.of(
+                        readAction.table(), readAction.cell(), Optional.empty());
             } else {
-                return WitnessedReadTransactionAction.of(
+                return WitnessedSingleCellReadTransactionAction.of(
                         readAction.table(), readAction.cell(), Optional.of(TransientRowsWorkflows.VALUE));
             }
         } else {u}(js (8662e0582f5aff3fdfa81d6e33ab22e4049363f9j qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflowTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -0,0 +1,145 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyDouble;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.buggify.AlwaysBuggifyFactory;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggify;
+import com.palantir.atlasdb.buggify.impl.NoOpBuggify;
+import com.palantir.atlasdb.buggify.impl.NoOpBuggifyFactory;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import java.util.Iterator;
+import java.util.List;
+import java.util.function.IntFunction;
+import org.junit.Test;
+
+public class WriteOnceDeleteOnceWorkflowTest {
+    private static final String TABLE_NAME = "my.latte";
+    private static final WriteOnceDeleteOnceWorkflowConfiguration CONFIGURATION =
+            ImmutableWriteOnceDeleteOnceWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .rateLimit(Double.MAX_VALUE)
+                    .iterationCount(1)
+                    .build();
+
+    private final InteractiveTransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+
+    @Test
+    public void deleteWhenBuggifyTrue() {
+        Workflow workflow = createWorkflow(AlwaysBuggifyFactory.INSTANCE, i -> i);
+        WorkflowHistory history = workflow.run();
+        WitnessedTransaction transaction = Iterables.getOnlyElement(history.history());
+        WitnessedTransactionAction action = Iterables.getOnlyElement(transaction.actions());
+        assertThat(action).isInstanceOf(WitnessedDeleteTransactionAction.class);
+    }
+
+    @Test
+    public void writeWhenBuggifyFalse() {
+        Workflow workflow = createWorkflow(NoOpBuggifyFactory.INSTANCE, i -> i);
+        WorkflowHistory history = workflow.run();
+        WitnessedTransaction transaction = Iterables.getOnlyElement(history.history());
+        WitnessedTransactionAction action = Iterables.getOnlyElement(transaction.actions());
+        assertThat(action).isInstanceOf(WitnessedWriteTransactionAction.class);
+    }
+
+    @Test
+    public void calculateChanceForDeleteHasExpectedValues() {
+        assertThat(WriteOnceDeleteOnceWorkflows.calculateChanceForDelete(0, 100))
+                .isEqualTo(0.01);
+        assertThat(WriteOnceDeleteOnceWorkflows.calculateChanceForDelete(99, 100))
+                .isEqualTo(1.00);
+    }
+
+    @Test
+    public void writesThenDeletes() {
+        Iterator<Integer> keys = List.of(0, 0, 1, 1).iterator();
+        IntFunction<Integer> rowKeyGenerator = _ignore -> keys.next();
+        BuggifyFactory alternatingBuggify = mock(BuggifyFactory.class);
+        when(alternatingBuggify.maybe(anyDouble()))
+                .thenReturn(
+                        NoOpBuggify.INSTANCE, DefaultBuggify.INSTANCE, NoOpBuggify.INSTANCE, DefaultBuggify.INSTANCE);
+        Workflow workflow = createWorkflow(alternatingBuggify, rowKeyGenerator, 4);
+
+        List<WitnessedTransaction> transactions = workflow.run().history();
+
+        assertThat(transactions).hasSize(4);
+        assertWriteTransaction(transactions.get(0), 0);
+        assertDeleteTransaction(transactions.get(1), 0);
+        assertWriteTransaction(transactions.get(2), 1);
+        assertDeleteTransaction(transactions.get(3), 1);
+    }
+
+    private static void assertWriteTransaction(WitnessedTransaction transaction, int key) {
+        WitnessedWriteTransactionAction action =
+                getTransactionAction(transaction, WitnessedWriteTransactionAction.class);
+        assertThat(action.cell().key()).isEqualTo(key);
+    }
+
+    private static void assertDeleteTransaction(WitnessedTransaction transaction, int key) {
+        WitnessedDeleteTransactionAction action =
+                getTransactionAction(transaction, WitnessedDeleteTransactionAction.class);
+        assertThat(action.cell().key()).isEqualTo(key);
+    }
+
+    private static <T> T getTransactionAction(WitnessedTransaction transaction, Class<T> clazz) {
+        WitnessedTransactionAction action = Iterables.getOnlyElement(transaction.actions());
+        assertThat(action).isInstanceOf(clazz);
+        return (T) action;
+    }
+
+    private Workflow createWorkflow(BuggifyFactory factory, IntFunction<Integer> randomNumberGenerator) {
+        return createWorkflow(factory, randomNumberGenerator, CONFIGURATION.iterationCount());
+    }
+
+    private Workflow createWorkflow(
+            BuggifyFactory factory, IntFunction<Integer> randomNumberGenerator, int iterationCount) {
+        return WriteOnceDeleteOnceWorkflows.create(
+                memoryStore,
+                ImmutableWriteOnceDeleteOnceWorkflowConfiguration.builder()
+                        .from(CONFIGURATION)
+                        .iterationCount(iterationCount)
+                        .build(),
+                MoreExecutors.newDirectExecutorService(),
+                factory,
+                randomNumberGenerator);
+    }
+}u     }(js (331bb45680d8fb7ff466c586cda7199127809adfj oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X
  @@ -18,6 +18,7 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Iterables;
@@ -29,7 +30,9 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
@@ -38,7 +41,6 @@
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.List;
-import java.util.Optional;
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
@@ -84,12 +86,17 @@ public void bankWorkflowContainsInitialReadsForBalances() {
         List<WitnessedTransactionAction> actions =
                 Iterables.getOnlyElement(history.history()).actions();
 
-        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.numberOfAccounts())
-                .boxed()
-                .map(index -> WitnessedReadTransactionAction.of(
-                        TABLE_NAME, BankBalanceWorkflows.getCellForAccount(index), Optional.empty()))
-                .collect(Collectors.toList());
-        assertThat(actions).containsAll(initialReadActions);
+        assertThat(actions)
+                .contains(WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table(TABLE_NAME)
+                                .row(BankBalanceWorkflows.ROW)
+                                .columnRangeSelection(ColumnRangeSelection.builder()
+                                        .endColumnExclusive(CONFIGURATION.numberOfAccounts())
+                                        .build())
+                                .build())
+                        .columnsAndValues(ImmutableList.of())
+                        .build());
     }
 
     @Testu}(js (d30b13993fc42a48a859cf8136f38e2dbf4a1347j hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
@@ -84,10 +84,10 @@ public void ringWorkflowContainsInitialReadsForRing() {
         List<WitnessedTransactionAction> actions =
                 Iterables.getOnlyElement(history.history()).actions();
 
-        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.ringSize())
+        List<WitnessedSingleCellReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.ringSize())
                 .boxed()
-                .map(index ->
-                        WitnessedReadTransactionAction.of(TABLE_NAME, RingWorkflows.cell(index), Optional.empty()))
+                .map(index -> WitnessedSingleCellReadTransactionAction.of(
+                        TABLE_NAME, RingWorkflows.cell(index), Optional.empty()))
                 .collect(Collectors.toList());
         assertThat(actions).containsAll(initialReadActions);
     }u}(js (6768dc4f98bae744be4f0ca4bc8224fbcb624190j build.gradlej modifiedj Kj Kj Kj ^https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/build.gradlej ]https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/build.gradlej phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -7,20 +7,20 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.4'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.6'
         classpath 'com.netflix.nebula:nebula-publishing-plugin:20.3.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:5.0.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.39.0'
-        classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.41.0'
+        classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.13.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
-        classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.34.0'
+        classpath 'com.palantir.metricschema:gradle-metric-schema:0.22.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
-        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.3'
+        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.4'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
         classpath 'gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1'
         classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'u}(js (34c425f71f242ce114bab888f8034960c6b716e7j  changelog/0.877.0/pr-6602.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.877.0%2Fpr-6602.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.877.0%2Fpr-6602.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.877.0%2Fpr-6602.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Add metrics for number of requested cell/row-level commit locks
+  links:
+  - https://github.com/palantir/atlasdb/pull/6602u}(js (46b215e4664b4438f038bf048c14656f6fb089e1j  changelog/0.878.0/pr-6630.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.878.0%2Fpr-6630.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.878.0%2Fpr-6630.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.878.0%2Fpr-6630.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Remove recursive loop when filtering out cells that are not applicable
+    to our transaction.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6630u}(js (9914bf81d7b0081790e5b357d977f35947ad8b60j  changelog/0.879.0/pr-6626.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.879.0%2Fpr-6626.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.879.0%2Fpr-6626.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.879.0%2Fpr-6626.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LockV1] Pass refreshable thread info configuration'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6626u}(js (a17f90ec5d7c8dabd4b8d110ace6016af8cfad9cj  changelog/0.880.0/pr-6641.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.880.0%2Fpr-6641.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.880.0%2Fpr-6641.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.880.0%2Fpr-6641.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize CassandraService#refreshTokenRangesAndGetServers
+  links:
+  - https://github.com/palantir/atlasdb/pull/6641u}(js (7afdb03a2af8b0138cc1524e0d39e84990810e28j  changelog/0.881.0/pr-6624.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.881.0%2Fpr-6624.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.881.0%2Fpr-6624.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.881.0%2Fpr-6624.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Stopped checking immutable timestamp lock on thoroughly swept tables
+    when reading an empty value.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6624u}(js (3750fb7fc4996863b5345b1cb6cbf683dd8cfc1fj  changelog/0.882.0/pr-6648.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.882.0%2Fpr-6648.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.882.0%2Fpr-6648.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.882.0%2Fpr-6648.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize CassandraService#getAddressForHost
+  links:
+  - https://github.com/palantir/atlasdb/pull/6648u}(js (aa4df8d917755227eec390dd5e0d424aebabf4c7j  changelog/0.882.0/pr-6649.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.882.0%2Fpr-6649.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.882.0%2Fpr-6649.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.882.0%2Fpr-6649.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: bump snappy-java to 1.1.10.1
+  links:
+  - https://github.com/palantir/atlasdb/pull/6649u}(js (d7951f643174772a855f4d861eeddb8fc504150aj  changelog/0.883.0/pr-6644.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.883.0%2Fpr-6644.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.883.0%2Fpr-6644.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6644.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Create LockRequestMetadata and ChangeMetadata
+  links:
+  - https://github.com/palantir/atlasdb/pull/6644u}(js (f502755b47a5379d145593d6f6a21b6d0ff20be9j  changelog/0.883.0/pr-6646.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.883.0%2Fpr-6646.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.883.0%2Fpr-6646.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6646.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add metadata to LockEvent'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6646u}(js (59a104ba72569b4dfd00ae8626fea6e626f1cc19j  changelog/0.883.0/pr-6647.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.883.0%2Fpr-6647.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.883.0%2Fpr-6647.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6647.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add LockMetadata to IdentifiedLockRequest'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6647u}(js (bf394f216a79b7514789c9fbcff298de26735d54j  changelog/0.888.0/pr-6651.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.888.0%2Fpr-6651.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.888.0%2Fpr-6651.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.888.0%2Fpr-6651.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Pass optional metadata through TimeLock'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6651u}(js (e0b05befdf4bf72e70b07846fc766f84e4b79eb4j  changelog/0.890.0/pr-6645.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.890.0%2Fpr-6645.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.890.0%2Fpr-6645.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.890.0%2Fpr-6645.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Only allow range scan max batch size to be a factor of 8 of the batch
+    hint.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6645u}(js (ba1c3212ee4a0e25e95569fe719b7b61bd3eec15j  changelog/0.892.0/pr-6650.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.892.0%2Fpr-6650.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.892.0%2Fpr-6650.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.892.0%2Fpr-6650.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Optimize ThriftObjectSizeUtils::getCollectionSize for random access
+    lists
+  links:
+  - https://github.com/palantir/atlasdb/pull/6650u}(js (33a2a2d54d648f18cdab6d3f0ba9dad15dbe0a2fj  changelog/0.895.0/pr-6642.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.895.0%2Fpr-6642.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.895.0%2Fpr-6642.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.895.0%2Fpr-6642.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Reduce allocations extracting Cassandra values
+  links:
+  - https://github.com/palantir/atlasdb/pull/6642u}(js (ff9f08f8e6f43315a79a74fdf43e11f2070b6d9fj  changelog/0.895.0/pr-6666.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.895.0%2Fpr-6666.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.895.0%2Fpr-6666.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.895.0%2Fpr-6666.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: Fix cell lock count across multiple tables
+  links:
+  - https://github.com/palantir/atlasdb/pull/6666u}(js (240913fc734894a98c05e8c292aa78369a4ece97j  changelog/0.897.0/pr-6667.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.897.0%2Fpr-6667.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.897.0%2Fpr-6667.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.897.0%2Fpr-6667.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Do not wait for a quorum of nodes to be available for Cassandra's schema
+    version on start up unless when performing DDL operations.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6667u}(js (53dbb997fbc87d47ddeeae107c0d0a5d610f7820j  changelog/0.898.0/pr-6659.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.898.0%2Fpr-6659.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.898.0%2Fpr-6659.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.898.0%2Fpr-6659.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add custom serialization to LockEvent with index-encoded
+    metadata'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6659u}(js (5f02ea670ebe579e2fc7dbfcda201cb6c125b07ej  changelog/0.899.0/pr-6660.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.899.0%2Fpr-6660.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.899.0%2Fpr-6660.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.899.0%2Fpr-6660.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,5 @@
+type: feature
+feature:
+  description: '[LWMeta] Add metadata to ConjureLockRequest'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6660u}(js (95dbc0937d276331c37eb26d73abac99d86081a9j  changelog/0.900.0/pr-6665.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.900.0%2Fpr-6665.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.900.0%2Fpr-6665.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.900.0%2Fpr-6665.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add metadata metrics to TimeLock'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6665u}(js (0ec771af62ea2a6ddaf5d9b6139d48293d4a25a7j  changelog/0.901.0/pr-6640.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.901.0%2Fpr-6640.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.901.0%2Fpr-6640.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.901.0%2Fpr-6640.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Transaction impls use Eclipse primitive collections for in-memory transaction
+    tracking
+  links:
+  - https://github.com/palantir/atlasdb/pull/6640u}(js (529fa046cce7dd2027f9b419812813bb3a2540a8j  changelog/0.901.0/pr-6676.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.901.0%2Fpr-6676.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.901.0%2Fpr-6676.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.901.0%2Fpr-6676.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XE  @@ -0,0 +1,8 @@
+type: improvement
+improvement:
+  description: |-
+    Optimize sweep write partitioning
+
+    Reduce allocations when processing large volumes of writes in sweep by avoiding intermediate collections and performing single passes on partitioning.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6676u}(js (c496eeef07c431ee355d88f1ca7abecdff679476j  changelog/0.901.0/pr-6677.v2.ymlj addedj K	j K j K	j vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.901.0%2Fpr-6677.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.901.0%2Fpr-6677.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.901.0%2Fpr-6677.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X/  @@ -0,0 +1,9 @@
+type: improvement
+improvement:
+  description: "Reuse notLatestVisibleValueCellFilterCounter \n\nAvoid expensive metric
+    name computation for each value extraction by\nregistering the notLatestVisibleValueCellFilterCounter
+    once and reusing\nit throughout the lifetime.\n\nNote that this includes several
+    internal API changes; however, these\nshould not be an issue for any known AtlasDB
+    consumers.\n\nCellLoader.loadWithTs minimizes unobserved tracing overhead"
+  links:
+  - https://github.com/palantir/atlasdb/pull/6677u}(js (fee58d12969ff103787c5364360b6099175e95ebj  changelog/0.902.0/pr-6678.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.902.0%2Fpr-6678.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.902.0%2Fpr-6678.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.902.0%2Fpr-6678.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Bump CI to Oracle 19.20
+  links:
+  - https://github.com/palantir/atlasdb/pull/6678u}(js (cff52dc50fc6337a027d771d49cd4ea9c634d6ecj  changelog/0.903.0/pr-6673.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.903.0%2Fpr-6673.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/changelog%2F0.903.0%2Fpr-6673.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.903.0%2Fpr-6673.v2.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,6 @@
+type: feature
+feature:
+  description: AtlasDB no longer register timelock endpoints when using single-node
+    embedded timelock.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6673u}(js (6d81d856dcfcfde488238b25a5d5367e13bd6f75j Wdocs/source/configuration/key_value_service_configs/oracle_key_value_service_config.rstj modifiedj K j K j K j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rstj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rstj https://api.github.com/repos/palantir/atlasdb/contents/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rst?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -197,3 +197,35 @@ migration as `serviceNameConfiguration.namespaceOverride`.
 
 This migration can be reversed trivially (just by changing the config to reference the now-correct `sid`) if you are
 using embedded timestamp and lock services.
+
+Altering Table To Match Metadata
+--------------------------------
+
+On rare occasions, the metadata in Oracle can mismatch the expected metadata by the service. This can happen as a result
+of a rare race condition on table creation, where one service expects the table to have an overflow column, while
+the other does not.
+
+To resolve, simply add the following configuration to your Oracle ddl configuration.
+
+.. code-block:: yaml
+
+    atlasdb:
+      keyValueService:
+        type: relational
+        ddl:
+          type: oracle
+          alterTablesOrMetadataToMatchAndIKnowWhatIAmDoing:
+              - namespace:
+                  name: <namespace>
+                tablename: <table-name>
+
+Note: Table names are case sensitive.
+
+Generally speaking the operation is safe to perform, although it's on the operator to determine what the side
+effects are. For example, if the issue arose as two services are configured to use this table, but only one is
+performing table mapping, then it is expected that this could break one of the services. However, that condition
+still satisfies the status quo, thus it's on the configurator to determine if this change is safe to make.
+
+Although the alter action is idempotent, it is recommended to remove the configuration after it has ran. Check the logs
+for ``Altering table to have overflow column to match metadata.`` and that there were no error logs printed to ensure that
+has successfully ran.
\ No newline at end of fileu}(js (afba109285af78dbd2a1d187e33ac4f87c76e392j !gradle/wrapper/gradle-wrapper.jarj modifiedj K j K j K j whttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/gradle%2Fwrapper%2Fgradle-wrapper.jarj vhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/gradle%2Fwrapper%2Fgradle-wrapper.jarj https://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fwrapper%2Fgradle-wrapper.jar?ref=3edc529e99246718dbc7e0f38df32119f57e1904u}(js (4e86b9270786fb25deb2931bfa2e777799ec2a25j (gradle/wrapper/gradle-wrapper.propertiesj modifiedj Kj Kj Kj ~https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/gradle%2Fwrapper%2Fgradle-wrapper.propertiesj }https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/gradle%2Fwrapper%2Fgradle-wrapper.propertiesj https://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fwrapper%2Fgradle-wrapper.properties?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XC  @@ -1,6 +1,6 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip
 networkTimeout=10000
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/distsu}(js (d94333ba246e527d1a418c250421a3e4bd0a3ea7j lock-api-objects/build.gradlej modifiedj Kj K j Kj qhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fbuild.gradlej phttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fbuild.gradle?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -17,6 +17,14 @@ dependencies {
     implementation 'com.google.guava:guava'
     implementation project(':commons-annotations')
 
+    testImplementation 'com.fasterxml.jackson.datatype:jackson-datatype-guava'
+    testImplementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8'
+    testImplementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
+    testImplementation 'com.palantir.common:streams'
+    testImplementation project(':atlasdb-api')
+    testAnnotationProcessor 'org.immutables:value'
+    testCompileOnly 'org.immutables:value::annotations'
+
     annotationProcessor 'org.immutables:value'
     compileOnly 'org.immutables:value::annotations'
     annotationProcessor project(":atlasdb-processors")u}(js (7640d8a0812ee9d22c73ca15ae53c22b03b5edb5j Dlock-api-objects/src/main/java/com/palantir/lock/LockDescriptor.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockDescriptor.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockDescriptor.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockDescriptor.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X!  @@ -22,6 +22,7 @@
 import com.google.common.io.BaseEncoding;
 import com.google.common.primitives.UnsignedBytes;
 import com.palantir.logsafe.Unsafe;
+import com.palantir.util.IndexEncodingUtils.DeterministicHashable;
 import java.io.Serializable;
 import java.nio.charset.StandardCharsets;
 import java.util.Arrays;
@@ -35,7 +36,7 @@
  */
 @Unsafe
 @Immutable
-public class LockDescriptor implements Comparable<LockDescriptor>, Serializable {
+public class LockDescriptor implements Comparable<LockDescriptor>, Serializable, DeterministicHashable {
 
     private static final long serialVersionUID = 1L;
     private static final CharMatcher BASIC_PRINTABLE_ASCII = CharMatcher.inRange(' ', '~');
@@ -83,6 +84,12 @@ public int hashCode() {
         return hashCode;
     }
 
+    @Override
+    public int deterministicHashCode() {
+        // for this class, hashCode() is deterministic since Arrays.hashCode(byte[]) is deterministic
+        return hashCode();
+    }
+
     @Override
     public boolean equals(Object obj) {
         if (this == obj) {u}(js (37dda23eb949c186568d3c32bafd886eb2861e4dj Dlock-api-objects/src/main/java/com/palantir/lock/v2/LockRequest.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fv2%2FLockRequest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fv2%2FLockRequest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fv2%2FLockRequest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -18,6 +18,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.Unsafe;
 import java.util.Optional;
@@ -39,12 +40,16 @@ public interface LockRequest {
     @Value.Parameter
     Optional<String> getClientDescription();
 
+    @Value.Parameter
+    Optional<LockRequestMetadata> getMetadata();
+
     static LockRequest of(Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs) {
-        return ImmutableLockRequest.of(lockDescriptors, acquireTimeoutMs, Optional.empty());
+        return ImmutableLockRequest.of(lockDescriptors, acquireTimeoutMs, Optional.empty(), Optional.empty());
     }
 
     static LockRequest of(Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs, String clientDescription) {
-        return ImmutableLockRequest.of(lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription));
+        return ImmutableLockRequest.of(
+                lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription), Optional.empty());
     }
 
     @Value.Checku}(js (4305d649486aabcf97ca07976c286654204cf825j Jlock-api-objects/src/main/java/com/palantir/lock/watch/ChangeMetadata.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -0,0 +1,137 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.palantir.lock.watch.ChangeMetadata.Created;
+import com.palantir.lock.watch.ChangeMetadata.Deleted;
+import com.palantir.lock.watch.ChangeMetadata.Unchanged;
+import com.palantir.lock.watch.ChangeMetadata.Updated;
+import org.immutables.value.Value;
+import org.immutables.value.Value.Immutable;
+
+/**
+ * The subtypes of this class can be used to document CRUD-like operations that were applied to a value.
+ * However, the READ case is not accounted for as no locks are taken out for reads.
+ * Every instance should be associated with a {@link com.palantir.lock.LockDescriptor}.
+ * It is up to the users of metadata to know the type of value it refers to
+ * and how to interpret the different subtypes.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
+@JsonSubTypes({
+    @JsonSubTypes.Type(value = Unchanged.class, name = Unchanged.TYPE),
+    @JsonSubTypes.Type(value = Updated.class, name = Updated.TYPE),
+    @JsonSubTypes.Type(value = Deleted.class, name = Deleted.TYPE),
+    @JsonSubTypes.Type(value = Created.class, name = Created.TYPE),
+})
+public interface ChangeMetadata {
+    <T> T accept(Visitor<T> visitor);
+
+    static Unchanged unchanged() {
+        return ImmutableUnchanged.builder().build();
+    }
+
+    static Updated updated(byte[] oldValue, byte[] newValue) {
+        return ImmutableUpdated.of(oldValue, newValue);
+    }
+
+    static Deleted deleted(byte[] oldValue) {
+        return ImmutableDeleted.of(oldValue);
+    }
+
+    static Created created(byte[] newValue) {
+        return ImmutableCreated.of(newValue);
+    }
+
+    interface Visitor<T> {
+        T visit(Unchanged unchanged);
+
+        T visit(Updated updated);
+
+        T visit(Deleted deleted);
+
+        T visit(Created created);
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableUnchanged.class)
+    @JsonDeserialize(as = ImmutableUnchanged.class)
+    @JsonTypeName(Unchanged.TYPE)
+    interface Unchanged extends ChangeMetadata {
+        String TYPE = "unchanged";
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableUpdated.class)
+    @JsonDeserialize(as = ImmutableUpdated.class)
+    @JsonTypeName(Updated.TYPE)
+    interface Updated extends ChangeMetadata {
+        String TYPE = "updated";
+
+        @Value.Parameter
+        byte[] oldValue();
+
+        @Value.Parameter
+        byte[] newValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableDeleted.class)
+    @JsonDeserialize(as = ImmutableDeleted.class)
+    @JsonTypeName(Deleted.TYPE)
+    interface Deleted extends ChangeMetadata {
+        String TYPE = "deleted";
+
+        @Value.Parameter
+        byte[] oldValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableCreated.class)
+    @JsonDeserialize(as = ImmutableCreated.class)
+    @JsonTypeName(Created.TYPE)
+    interface Created extends ChangeMetadata {
+        String TYPE = "created";
+
+        @Value.Parameter
+        byte[] newValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+}u}(js (7ede3b7c38e0b57309248f76a702b4fd3ebbc9cbj Elock-api-objects/src/main/java/com/palantir/lock/watch/LockEvent.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j Xz  @@ -16,27 +16,47 @@
 
 package com.palantir.lock.watch;
 
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonInclude.Include;
+import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.annotation.JsonValue;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.logsafe.Unsafe;
+import com.palantir.util.IndexEncodingUtils;
+import com.palantir.util.IndexEncodingUtils.ChecksumType;
+import com.palantir.util.IndexEncodingUtils.IndexEncodingResult;
+import com.palantir.util.IndexEncodingUtils.KeyListChecksum;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
 import java.util.Set;
 import org.immutables.value.Value;
 
+/*
+ * Warning: This class contains custom serialization logic. Changing anything about the serialized format of this class
+ * requires careful modification of the @JsonCreator and @JsonValue-annotated methods as well as the Wire-... classes
+ * All serialization changes should be properly tested.
+ */
 @Unsafe
 @Value.Immutable
-@JsonSerialize(as = ImmutableLockEvent.class)
-@JsonDeserialize(as = ImmutableLockEvent.class)
 @JsonTypeName(LockEvent.TYPE)
 public abstract class LockEvent implements LockWatchEvent {
     static final String TYPE = "lock";
+    private static final ChecksumType DEFAULT_CHECKSUM_TYPE = ChecksumType.CRC32_OF_DETERMINISTIC_HASHCODE;
 
     public abstract Set<LockDescriptor> lockDescriptors();
 
     public abstract LockToken lockToken();
 
+    public abstract Optional<LockRequestMetadata> metadata();
+
     @Override
     public int size() {
         return lockDescriptors().size();
@@ -47,9 +67,130 @@ public <T> T accept(Visitor<T> visitor) {
         return visitor.visit(this);
     }
 
+    @JsonCreator
+    public static LockEvent create(
+            @JsonProperty("sequence") long sequence,
+            @JsonProperty("lockDescriptors") List<LockDescriptor> lockDescriptors,
+            @JsonProperty("lockToken") LockToken lockToken,
+            @JsonProperty("metadata") Optional<WireLockRequestMetadata> optWireMetadata) {
+        Optional<LockRequestMetadata> metadata =
+                optWireMetadata.map(wireMetadata -> convertFromWireMetadata(lockDescriptors, wireMetadata));
+        return ImmutableLockEvent.builder()
+                .sequence(sequence)
+                .lockDescriptors(ImmutableSet.copyOf(lockDescriptors))
+                .lockToken(lockToken)
+                .metadata(metadata)
+                .build();
+    }
+
+    @Unsafe
+    @JsonValue
+    public WireLockEvent toWireLockEvent() {
+        Optional<IndexEncodingResult<LockDescriptor, ChangeMetadata>> optIndexEncodingResult = metadata()
+                .map(metadata -> IndexEncodingUtils.encode(
+                        lockDescriptors(), metadata.lockDescriptorToChangeMetadata(), DEFAULT_CHECKSUM_TYPE));
+        // If the lock event has metadata, we need to use the key list that was used to encode the metadata.
+        // Otherwise, any ordering of the lock descriptors is fine.
+        List<LockDescriptor> orderedLocks = optIndexEncodingResult
+                .map(IndexEncodingResult::keyList)
+                .orElseGet(() -> ImmutableList.copyOf(lockDescriptors()));
+        Optional<WireLockRequestMetadata> wireMetadata =
+                optIndexEncodingResult.map(LockEvent::buildWireLockRequestMetadata);
+        return WireLockEvent.builder()
+                .sequence(sequence())
+                .lockDescriptors(orderedLocks)
+                .lockToken(lockToken())
+                .metadata(wireMetadata)
+                .build();
+    }
+
     public static LockWatchEvent.Builder builder(Set<LockDescriptor> lockDescriptors, LockToken lockToken) {
-        ImmutableLockEvent.Builder builder =
-                ImmutableLockEvent.builder().lockDescriptors(lockDescriptors).lockToken(lockToken);
+        return builder(lockDescriptors, lockToken, Optional.empty());
+    }
+
+    public static LockWatchEvent.Builder builder(
+            Set<LockDescriptor> lockDescriptors, LockToken lockToken, Optional<LockRequestMetadata> metadata) {
+        ImmutableLockEvent.Builder builder = ImmutableLockEvent.builder()
+                .lockDescriptors(lockDescriptors)
+                .lockToken(lockToken)
+                .metadata(metadata);
         return seq -> builder.sequence(seq).build();
     }
+
+    private static WireLockRequestMetadata buildWireLockRequestMetadata(
+            IndexEncodingResult<LockDescriptor, ChangeMetadata> result) {
+        return WireLockRequestMetadata.builder()
+                .indexToChangeMetadata(result.indexToValue())
+                .lockListChecksum(LockListChecksum.of(
+                        result.keyListChecksum().type().getId(),
+                        result.keyListChecksum().value()))
+                .build();
+    }
+
+    private static LockRequestMetadata convertFromWireMetadata(
+            List<LockDescriptor> lockDescriptors, WireLockRequestMetadata wireMetadata) {
+        KeyListChecksum checksum = KeyListChecksum.of(
+                ChecksumType.valueOf(wireMetadata.lockListChecksum().typeId()),
+                wireMetadata.lockListChecksum().value());
+        IndexEncodingResult<LockDescriptor, ChangeMetadata> indexEncodingResult =
+                IndexEncodingResult.<LockDescriptor, ChangeMetadata>builder()
+                        .keyList(lockDescriptors)
+                        .indexToValue(wireMetadata.indexToChangeMetadata())
+                        .keyListChecksum(checksum)
+                        .build();
+        return LockRequestMetadata.of(IndexEncodingUtils.decode(indexEncodingResult));
+    }
+
+    // This class is explicitly missing @JsonDeserialize as it should only be used for serialization.
+    // Deserialization should take place in the @JsonCreator-annotated static constructor method.
+    @Unsafe
+    @Value.Immutable
+    @JsonSerialize(as = ImmutableWireLockEvent.class)
+    @JsonTypeName(LockEvent.TYPE)
+    public interface WireLockEvent {
+        long sequence();
+
+        List<LockDescriptor> lockDescriptors();
+
+        LockToken lockToken();
+
+        // If metadata is absent, it should be completely omitted
+        @JsonInclude(Include.NON_ABSENT)
+        Optional<WireLockRequestMetadata> metadata();
+
+        static ImmutableWireLockEvent.Builder builder() {
+            return ImmutableWireLockEvent.builder();
+        }
+    }
+
+    @Unsafe
+    @Value.Immutable
+    @JsonSerialize(as = ImmutableWireLockRequestMetadata.class)
+    @JsonDeserialize(as = ImmutableWireLockRequestMetadata.class)
+    public interface WireLockRequestMetadata {
+
+        Map<Integer, ChangeMetadata> indexToChangeMetadata();
+
+        LockListChecksum lockListChecksum();
+
+        static ImmutableWireLockRequestMetadata.Builder builder() {
+            return ImmutableWireLockRequestMetadata.builder();
+        }
+    }
+
+    @Value.Immutable
+    @JsonSerialize(as = ImmutableLockListChecksum.class)
+    @JsonDeserialize(as = ImmutableLockListChecksum.class)
+    public interface LockListChecksum {
+
+        @Value.Parameter
+        int typeId();
+
+        @Value.Parameter
+        byte[] value();
+
+        static LockListChecksum of(int typeId, byte[] value) {
+            return ImmutableLockListChecksum.of(typeId, value);
+        }
+    }
 }u}(js (1168be10177125238fd8ae7829b9a0fadb1f752bj Olock-api-objects/src/main/java/com/palantir/lock/watch/LockRequestMetadata.javaj addedj K'j K j K'j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -0,0 +1,39 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import com.palantir.lock.LockDescriptor;
+import com.palantir.logsafe.Unsafe;
+import java.util.Map;
+import org.immutables.value.Value;
+
+/**
+ * Metadata attached to a lock request and to any {@link LockEvent} created as a result of that request.
+ * Ideally, this class is not serialized as-is to JSON due to the repetition of {@link LockDescriptor} values
+ * in {@link LockRequestMetadata#lockDescriptorToChangeMetadata()} and the parent object.
+ */
+@Unsafe
+@Value.Immutable
+public interface LockRequestMetadata {
+
+    @Value.Parameter
+    Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata();
+
+    static LockRequestMetadata of(Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata) {
+        return ImmutableLockRequestMetadata.of(lockDescriptorToChangeMetadata);
+    }
+}u}(js (e82dfb8fb3ac704571c72a868213133c36e5489bj Ilock-api-objects/src/test/java/com/palantir/lock/watch/LockEventTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X)  @@ -0,0 +1,225 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.fasterxml.jackson.databind.exc.InvalidDefinitionException;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.UUID;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.immutables.value.Value;
+import org.junit.Test;
+
+public class LockEventTest {
+    private static final String BASE = "src/test/resources/lock-event-wire-format/";
+    private static final String OLD_LOCK_EVENT_FILE = "old";
+    private static final String WITH_METADATA_FILE = "with-metadata";
+    private static final String WITH_EMPTY_METADATA_MAP_FILE = "with-empty-metadata-map";
+    private static final String SPARSE_METADATA_FILE = "sparse-metadata";
+    private static final String SHUFFLED_LOCKS_FILE = "shuffled-locks";
+    private static final boolean REWRITE_JSON_BLOBS = false;
+
+    private static final LockDescriptor LOCK_1 = StringLockDescriptor.of("abc");
+    private static final LockDescriptor LOCK_2 = StringLockDescriptor.of("def");
+    private static final LockDescriptor LOCK_3 = StringLockDescriptor.of("ghi");
+    private static final LockDescriptor LOCK_4 = StringLockDescriptor.of("jkl");
+    private static final long SEQUENCE = 10L;
+    private static final LockToken LOCK_TOKEN = LockToken.of(new UUID(1337, 42));
+    private static final Set<LockDescriptor> LOCK_SET = ImmutableSet.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4);
+    private static final OldLockEvent OLD_LOCK_EVENT = ImmutableOldLockEvent.builder()
+            .sequence(SEQUENCE)
+            .lockDescriptors(LOCK_SET)
+            .lockToken(LOCK_TOKEN)
+            .build();
+    private static final LockEvent DEFAULT_LOCK_EVENT = ImmutableLockEvent.builder()
+            .sequence(SEQUENCE)
+            .lockDescriptors(LOCK_SET)
+            .lockToken(LOCK_TOKEN)
+            .build();
+    private static final byte[] BYTES_OLD = PtBytes.toBytes("old");
+    private static final byte[] BYTES_NEW = PtBytes.toBytes("new");
+    private static final byte[] BYTES_DELETED = PtBytes.toBytes("deleted");
+    private static final byte[] BYTES_CREATED = PtBytes.toBytes("created");
+    private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(ImmutableMap.of(
+            LOCK_1,
+            ChangeMetadata.unchanged(),
+            LOCK_2,
+            ChangeMetadata.updated(BYTES_OLD, BYTES_NEW),
+            LOCK_3,
+            ChangeMetadata.deleted(BYTES_DELETED),
+            LOCK_4,
+            ChangeMetadata.created(BYTES_CREATED)));
+
+    // TimeLock (Server) serializes and AtlasDB (Client) deserializes.
+    // These are the respective mappers used internally by Conjure.
+    private static final ObjectMapper SERIALIZATION_MAPPER =
+            ObjectMappers.newServerObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
+    private static final ObjectMapper DESERIALIZATION_MAPPER =
+            ObjectMappers.newClientObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
+    // This mapper is used to ensure that two JSONs are equal excluding indentation
+    private static final ObjectMapper VERIFYING_MAPPER = new ObjectMapper();
+
+    @Test
+    public void oldLockEventSerializesDeserializes() {
+        assertSerializedEquals(OLD_LOCK_EVENT, OLD_LOCK_EVENT_FILE);
+        assertDeserializedEquals(OLD_LOCK_EVENT_FILE, OLD_LOCK_EVENT, OldLockEvent.class);
+    }
+
+    @Test
+    public void absentMetadataSerializesDeserializes() {
+        assertSerializedEquals(DEFAULT_LOCK_EVENT, OLD_LOCK_EVENT_FILE);
+        assertDeserializedEquals(OLD_LOCK_EVENT_FILE, DEFAULT_LOCK_EVENT, LockEvent.class);
+    }
+
+    @Test
+    public void presentMetadataSerializesDeserializes() {
+        LockEvent lockEventWithMetadata =
+                ImmutableLockEvent.copyOf(DEFAULT_LOCK_EVENT).withMetadata(LOCK_REQUEST_METADATA);
+        assertSerializedEquals(lockEventWithMetadata, WITH_METADATA_FILE);
+        assertDeserializedEquals(WITH_METADATA_FILE, lockEventWithMetadata, LockEvent.class);
+    }
+
+    @Test
+    public void serializesDeserializesAsLockWatchEventWithMetadata() {
+        LockWatchEvent lockWatchEvent =
+                ImmutableLockEvent.copyOf(DEFAULT_LOCK_EVENT).withMetadata(LOCK_REQUEST_METADATA);
+        assertSerializedEquals(lockWatchEvent, WITH_METADATA_FILE);
+        assertDeserializedEquals(WITH_METADATA_FILE, lockWatchEvent, LockWatchEvent.class);
+    }
+
+    @Test
+    public void emptyMetadataMapSerializesDeserializes() {
+        LockEvent lockEventWithMetadata =
+                ImmutableLockEvent.copyOf(DEFAULT_LOCK_EVENT).withMetadata(LockRequestMetadata.of(ImmutableMap.of()));
+        assertSerializedEquals(lockEventWithMetadata, WITH_EMPTY_METADATA_MAP_FILE);
+        assertDeserializedEquals(WITH_EMPTY_METADATA_MAP_FILE, lockEventWithMetadata, LockEvent.class);
+    }
+
+    // This behavior should be guaranteed by the Conjure spec
+    @Test
+    public void oldClientIgnoresMetadata() {
+        assertDeserializedEquals(WITH_METADATA_FILE, OLD_LOCK_EVENT, OldLockEvent.class);
+    }
+
+    @Test
+    public void sparseMetadataSerializesDeserializes() {
+        List<LockDescriptor> lockDescriptors = IntStream.range(0, 10)
+                .mapToObj(Integer::toString)
+                .map(StringLockDescriptor::of)
+                .collect(Collectors.toList());
+        // Unique metadata on some locks, but not all
+        Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata = ImmutableMap.of(
+                lockDescriptors.get(0), ChangeMetadata.created(BYTES_CREATED),
+                lockDescriptors.get(4), ChangeMetadata.deleted(BYTES_DELETED),
+                lockDescriptors.get(9), ChangeMetadata.unchanged(),
+                lockDescriptors.get(5), ChangeMetadata.updated(BYTES_OLD, BYTES_NEW),
+                lockDescriptors.get(7), ChangeMetadata.unchanged());
+        LockEvent lockEventWithSparseMetadata = ImmutableLockEvent.builder()
+                .lockDescriptors(lockDescriptors)
+                .sequence(SEQUENCE)
+                .lockToken(LOCK_TOKEN)
+                .metadata(LockRequestMetadata.of(lockDescriptorToChangeMetadata))
+                .build();
+
+        assertSerializedEquals(lockEventWithSparseMetadata, SPARSE_METADATA_FILE);
+        assertDeserializedEquals(SPARSE_METADATA_FILE, lockEventWithSparseMetadata, LockEvent.class);
+    }
+
+    @Test
+    public void shufflingLockDescriptorsOnTheWireIsDetectedByClient() {
+        assertThatThrownBy(() ->
+                        // The order of the lock descriptors in this JSON file is swapped
+                        DESERIALIZATION_MAPPER.readValue(
+                                Files.readString(getJsonPath(SHUFFLED_LOCKS_FILE)), LockEvent.class))
+                .rootCause()
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageStartingWith("Key list integrity check failed");
+    }
+
+    @Test
+    public void cannotDeserializeAsWireLockEvent() {
+        assertThatThrownBy(() -> DESERIALIZATION_MAPPER.readValue(
+                        Files.readString(getJsonPath(WITH_METADATA_FILE)), LockEvent.WireLockEvent.class))
+                .isInstanceOf(InvalidDefinitionException.class);
+    }
+
+    private static <T> void assertSerializedEquals(T object, String jsonFileName) {
+        try {
+            Path path = getJsonPath(jsonFileName);
+            if (REWRITE_JSON_BLOBS) {
+                SERIALIZATION_MAPPER.writeValue(path.toFile(), object);
+            }
+            String serialized = SERIALIZATION_MAPPER.writeValueAsString(object);
+            assertThat(VERIFYING_MAPPER.readTree(serialized))
+                    .as("Serialization yields semantically identical JSON representation")
+                    .isEqualTo(VERIFYING_MAPPER.readTree(Files.readString(path)));
+        } catch (IOException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private static <T> void assertDeserializedEquals(String jsonFileName, T object, Class<T> clazz) {
+        try {
+            assertThat(DESERIALIZATION_MAPPER.readValue(Files.readString(getJsonPath(jsonFileName)), clazz))
+                    .as("Deserialization yields identical object")
+                    .isEqualTo(object);
+        } catch (IOException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private static Path getJsonPath(String jsonFileName) {
+        return Paths.get(BASE, jsonFileName + ".json");
+    }
+
+    // This is a copy of the LockEvent class before metadata was added
+    @Value.Immutable
+    @JsonSerialize(as = ImmutableOldLockEvent.class)
+    @JsonDeserialize(as = ImmutableOldLockEvent.class)
+    @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
+    @JsonTypeName(LockEvent.TYPE)
+    public interface OldLockEvent {
+        long sequence();
+
+        Set<LockDescriptor> lockDescriptors();
+
+        LockToken lockToken();
+    }
+}u}(js (1d1d3cf3bf2579562acbf88f3b9915493eb45cedj Clock-api-objects/src/test/resources/lock-event-wire-format/old.jsonj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fold.jsonj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fold.jsonj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fold.json?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X?  @@ -0,0 +1,16 @@
+{
+  "type" : "lock",
+  "sequence" : 10,
+  "lockDescriptors" : [ {
+    "bytes" : "YWJj"
+  }, {
+    "bytes" : "ZGVm"
+  }, {
+    "bytes" : "Z2hp"
+  }, {
+    "bytes" : "amts"
+  } ],
+  "lockToken" : {
+    "requestId" : "00000000-0000-0539-0000-00000000002a"
+  }
+}
\ No newline at end of fileu}(js (cc146577c79cb9e4b947642412249c7d1fa65b9bj Nlock-api-objects/src/test/resources/lock-event-wire-format/shuffled-locks.jsonj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fshuffled-locks.jsonj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fshuffled-locks.jsonj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fshuffled-locks.json?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X-  @@ -0,0 +1,27 @@
+{
+  "type" : "lock",
+  "sequence" : 10,
+  "lockDescriptors" : [ {
+    "bytes" : "dGVzdC1sb2Nr"
+  }, {
+    "bytes" : "YWJj"
+  } ],
+  "lockToken" : {
+    "requestId" : "00000000-0000-0539-0000-00000000002a"
+  },
+  "metadata" : {
+    "indexToChangeMetadata" : {
+      "0" : {
+        "type" : "created",
+        "newValue" : "bmV3"
+      },
+      "1" : {
+        "type" : "unchanged"
+      }
+    },
+    "lockListChecksum" : {
+      "typeId" : 1,
+      "value" : "AAAAAIOu57o="
+    }
+  }
+}
\ No newline at end of fileu}(js (c463a4528f6bad141ab71a4124edd6fd095ccb67j Olock-api-objects/src/test/resources/lock-event-wire-format/sparse-metadata.jsonj addedj K7j K j K7j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fsparse-metadata.jsonj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fsparse-metadata.jsonj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fsparse-metadata.json?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X   @@ -0,0 +1,55 @@
+{
+  "type" : "lock",
+  "sequence" : 10,
+  "lockDescriptors" : [ {
+    "bytes" : "MA=="
+  }, {
+    "bytes" : "MQ=="
+  }, {
+    "bytes" : "Mg=="
+  }, {
+    "bytes" : "Mw=="
+  }, {
+    "bytes" : "NA=="
+  }, {
+    "bytes" : "NQ=="
+  }, {
+    "bytes" : "Ng=="
+  }, {
+    "bytes" : "Nw=="
+  }, {
+    "bytes" : "OA=="
+  }, {
+    "bytes" : "OQ=="
+  } ],
+  "lockToken" : {
+    "requestId" : "00000000-0000-0539-0000-00000000002a"
+  },
+  "metadata" : {
+    "indexToChangeMetadata" : {
+      "0" : {
+        "type" : "created",
+        "newValue" : "Y3JlYXRlZA=="
+      },
+      "4" : {
+        "type" : "deleted",
+        "oldValue" : "ZGVsZXRlZA=="
+      },
+      "5" : {
+        "type" : "updated",
+        "oldValue" : "b2xk",
+        "newValue" : "bmV3"
+      },
+      "7" : {
+        "type" : "unchanged"
+      },
+      "9" : {
+        "type" : "unchanged"
+      }
+    },
+    "lockListChecksum" : {
+      "typeId" : 1,
+      "value" : "AAAAALDKyYU="
+    }
+  }
+}
\ No newline at end of fileu<     }(js (2c9785a186f61aaa5706802f2c384a031bb75f3ej Wlock-api-objects/src/test/resources/lock-event-wire-format/with-empty-metadata-map.jsonj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-empty-metadata-map.jsonj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-empty-metadata-map.jsonj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-empty-metadata-map.json?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -0,0 +1,23 @@
+{
+  "type" : "lock",
+  "sequence" : 10,
+  "lockDescriptors" : [ {
+    "bytes" : "YWJj"
+  }, {
+    "bytes" : "ZGVm"
+  }, {
+    "bytes" : "Z2hp"
+  }, {
+    "bytes" : "amts"
+  } ],
+  "lockToken" : {
+    "requestId" : "00000000-0000-0539-0000-00000000002a"
+  },
+  "metadata" : {
+    "indexToChangeMetadata" : { },
+    "lockListChecksum" : {
+      "typeId" : 1,
+      "value" : "AAAAADUuws0="
+    }
+  }
+}
\ No newline at end of fileu}(js (c11abb8e1348ee4599b6226e583474cda683e1efj Mlock-api-objects/src/test/resources/lock-event-wire-format/with-metadata.jsonj addedj K(j K j K(j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-metadata.jsonj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-metadata.jsonj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-metadata.json?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X5  @@ -0,0 +1,40 @@
+{
+  "type" : "lock",
+  "sequence" : 10,
+  "lockDescriptors" : [ {
+    "bytes" : "YWJj"
+  }, {
+    "bytes" : "ZGVm"
+  }, {
+    "bytes" : "Z2hp"
+  }, {
+    "bytes" : "amts"
+  } ],
+  "lockToken" : {
+    "requestId" : "00000000-0000-0539-0000-00000000002a"
+  },
+  "metadata" : {
+    "indexToChangeMetadata" : {
+      "0" : {
+        "type" : "unchanged"
+      },
+      "1" : {
+        "type" : "updated",
+        "oldValue" : "b2xk",
+        "newValue" : "bmV3"
+      },
+      "2" : {
+        "type" : "deleted",
+        "oldValue" : "ZGVsZXRlZA=="
+      },
+      "3" : {
+        "type" : "created",
+        "newValue" : "Y3JlYXRlZA=="
+      }
+    },
+    "lockListChecksum" : {
+      "typeId" : 1,
+      "value" : "AAAAADUuws0="
+    }
+  }
+}
\ No newline at end of fileu}(js (b9d68aed0eb7a84215df245f61e86e6dfad77494j lock-api/build.gradlej modifiedj Kj K j Kj ihttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api%2Fbuild.gradlej hhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api%2Fbuild.gradlej {https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fbuild.gradle?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -44,8 +44,10 @@ dependencies {
     testImplementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
     testImplementation 'com.google.guava:guava'
     testImplementation 'com.palantir.common:streams'
+    testImplementation 'com.palantir.safe-logging:preconditions-assertj'
     testImplementation 'io.dropwizard.metrics:metrics-core'
     testImplementation 'org.slf4j:slf4j-api'
+    testImplementation project(':atlasdb-api')
     testImplementation project(':lock-api-objects')
     testImplementation project(':lock-conjure-api:lock-conjure-api-objects')
     testImplementation project(':timelock-api:timelock-api-objects')u}(js (8e3edb51b7ae6b3309b255039a0a6dd18134f32dj Jlock-api/src/main/java/com/palantir/lock/DebugThreadInfoConfiguration.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X&  @@ -16,18 +16,25 @@
 
 package com.palantir.lock;
 
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import org.immutables.value.Value;
 
+@JsonDeserialize(as = ImmutableDebugThreadInfoConfiguration.class)
+@JsonSerialize(as = ImmutableDebugThreadInfoConfiguration.class)
 @Value.Immutable
 public interface DebugThreadInfoConfiguration {
 
+    @JsonProperty("record-thread-info")
     @Value.Default
     default boolean recordThreadInfo() {
         return false;
     }
 
+    @JsonProperty("thread-info-snapshot-interval-millis")
     @Value.Default
     default long threadInfoSnapshotIntervalMillis() {
-        return 5000L;
+        return 300000L;
     }
 }u}(js (24a4a395982dfe44421aaba5d136f4694950815fj ?lock-api/src/main/java/com/palantir/lock/LockServerConfigs.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XV  @@ -20,4 +20,7 @@ public final class LockServerConfigs {
     private LockServerConfigs() {}
 
     public static final LockServerOptions DEFAULT = LockServerOptions.builder().build();
+
+    public static final DebugThreadInfoConfiguration DEFAULT_THREAD_INFO_CONFIG =
+            ImmutableDebugThreadInfoConfiguration.builder().build();
 }u}(js (fdd60c0b734cecbf10734e0fbd30536bb6a5dec9j Hlock-api/src/main/java/com/palantir/lock/client/ConjureLockRequests.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequests.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequests.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequests.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XJ
  @@ -16,6 +16,7 @@
 
 package com.palantir.lock.client;
 
+import com.google.common.collect.ImmutableList;
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.timelock.api.ConjureIdentifiedVersion;
 import com.palantir.atlasdb.timelock.api.ConjureLockDescriptor;
@@ -27,7 +28,10 @@
 import com.palantir.lock.v2.LockRequest;
 import com.palantir.lock.v2.WaitForLocksRequest;
 import com.palantir.lock.v2.WaitForLocksResponse;
+import com.palantir.lock.watch.ConjureLockRequestMetadataUtils;
+import com.palantir.lock.watch.ConjureLockRequestMetadataUtils.ConjureMetadataConversionResult;
 import com.palantir.lock.watch.LockWatchVersion;
+import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
@@ -37,11 +41,18 @@ public final class ConjureLockRequests {
     private ConjureLockRequests() {}
 
     public static ConjureLockRequest toConjure(LockRequest request) {
+        Optional<ConjureMetadataConversionResult> optConversionResult = request.getMetadata()
+                .map(metadata ->
+                        ConjureLockRequestMetadataUtils.toConjureIndexEncoded(request.getLockDescriptors(), metadata));
+        List<LockDescriptor> orderedLocks = optConversionResult
+                .map(ConjureMetadataConversionResult::lockList)
+                .orElseGet(() -> ImmutableList.copyOf(request.getLockDescriptors()));
         return ConjureLockRequest.builder()
-                .lockDescriptors(toConjure(request.getLockDescriptors()))
+                .lockDescriptors(toConjure(orderedLocks))
                 .clientDescription(request.getClientDescription())
                 .requestId(UUID.randomUUID())
                 .acquireTimeoutMs(Ints.checkedCast(request.getAcquireTimeoutMs()))
+                .metadata(optConversionResult.map(ConjureMetadataConversionResult::conjureMetadata))
                 .build();
     }
 
@@ -62,6 +73,14 @@ private static Set<ConjureLockDescriptor> toConjure(Set<LockDescriptor> lockDesc
                 .collect(Collectors.toSet());
     }
 
+    private static List<ConjureLockDescriptor> toConjure(List<LockDescriptor> lockDescriptors) {
+        return lockDescriptors.stream()
+                .map(LockDescriptor::getBytes)
+                .map(Bytes::from)
+                .map(ConjureLockDescriptor::of)
+                .collect(Collectors.toList());
+    }
+
     public static Optional<ConjureIdentifiedVersion> toConjure(Optional<LockWatchVersion> maybeVersion) {
         return maybeVersion.map(identifiedVersion -> ConjureIdentifiedVersion.builder()
                 .id(identifiedVersion.id())u}(js (6ad04228eeb384671486cf32446155659b4c354ej Jlock-api/src/main/java/com/palantir/lock/client/IdentifiedLockRequest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -15,10 +15,12 @@
  */
 package com.palantir.lock.client;
 
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.Unsafe;
 import java.util.Optional;
 import java.util.Set;
@@ -43,15 +45,32 @@ public interface IdentifiedLockRequest {
     @Value.Parameter
     Optional<String> getClientDescription();
 
+    @Value.Parameter
+    @JsonIgnore
+    Optional<LockRequestMetadata> getMetadata();
+
     static IdentifiedLockRequest of(Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs) {
         return ImmutableIdentifiedLockRequest.of(
-                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.empty());
+                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.empty(), Optional.empty());
     }
 
     static IdentifiedLockRequest of(
             Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs, String clientDescription) {
         return ImmutableIdentifiedLockRequest.of(
-                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription));
+                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription), Optional.empty());
+    }
+
+    static IdentifiedLockRequest of(
+            Set<LockDescriptor> lockDescriptors,
+            long acquireTimeoutMs,
+            String clientDescription,
+            LockRequestMetadata metadata) {
+        return ImmutableIdentifiedLockRequest.of(
+                UUID.randomUUID(),
+                lockDescriptors,
+                acquireTimeoutMs,
+                Optional.of(clientDescription),
+                Optional.of(metadata));
     }
 
     static IdentifiedLockRequest from(LockRequest lockRequest) {u}(js (04139c5c6a94302d7c0326ccbdc2ab53683820e5j Slock-api/src/main/java/com/palantir/lock/watch/ConjureLockRequestMetadataUtils.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtils.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtils.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtils.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XM   @@ -0,0 +1,176 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.timelock.api.ConjureChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureCreatedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureDeletedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureLockDescriptorListChecksum;
+import com.palantir.atlasdb.timelock.api.ConjureLockRequestMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureUnchangedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureUpdatedChangeMetadata;
+import com.palantir.common.streams.KeyedStream;
+import com.palantir.conjure.java.lib.Bytes;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.watch.ChangeMetadata.Created;
+import com.palantir.lock.watch.ChangeMetadata.Deleted;
+import com.palantir.lock.watch.ChangeMetadata.Unchanged;
+import com.palantir.lock.watch.ChangeMetadata.Updated;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.Unsafe;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.util.IndexEncodingUtils;
+import com.palantir.util.IndexEncodingUtils.ChecksumType;
+import com.palantir.util.IndexEncodingUtils.IndexEncodingResult;
+import com.palantir.util.IndexEncodingUtils.KeyListChecksum;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import org.immutables.value.Value;
+
+public final class ConjureLockRequestMetadataUtils {
+    private ConjureLockRequestMetadataUtils() {}
+
+    @VisibleForTesting
+    static final ChecksumType DEFAULT_CHECKSUM_TYPE = ChecksumType.CRC32_OF_DETERMINISTIC_HASHCODE;
+
+    private static final SafeLogger log = SafeLoggerFactory.get(ConjureLockRequestMetadataUtils.class);
+
+    public static ConjureMetadataConversionResult toConjureIndexEncoded(
+            Set<LockDescriptor> lockDescriptors, LockRequestMetadata metadata) {
+        IndexEncodingResult<LockDescriptor, ConjureChangeMetadata> encoded = IndexEncodingUtils.encode(
+                lockDescriptors,
+                metadata.lockDescriptorToChangeMetadata(),
+                changeMetadata -> changeMetadata.accept(ChangeMetadataToConjureVisitor.INSTANCE),
+                DEFAULT_CHECKSUM_TYPE);
+        KeyListChecksum checksum = encoded.keyListChecksum();
+        ConjureLockRequestMetadata conjureLockRequestMetadata = ConjureLockRequestMetadata.builder()
+                .indexToChangeMetadata(encoded.indexToValue())
+                .lockListChecksum(checksumToConjure(checksum))
+                .build();
+        return ImmutableConjureMetadataConversionResult.builder()
+                .lockList(encoded.keyList())
+                .conjureMetadata(conjureLockRequestMetadata)
+                .build();
+    }
+
+    public static LockRequestMetadata fromConjureIndexEncoded(ConjureMetadataConversionResult conversionResult) {
+        List<LockDescriptor> keyList = conversionResult.lockList();
+        ConjureLockRequestMetadata conjureMetadata = conversionResult.conjureMetadata();
+        KeyListChecksum checksum =
+                checksumFromConjure(conversionResult.conjureMetadata().getLockListChecksum());
+        IndexEncodingResult<LockDescriptor, ConjureChangeMetadata> encoded =
+                IndexEncodingResult.<LockDescriptor, ConjureChangeMetadata>builder()
+                        .keyList(keyList)
+                        .indexToValue(conjureMetadata.getIndexToChangeMetadata())
+                        .keyListChecksum(checksum)
+                        .build();
+        Map<LockDescriptor, Optional<ChangeMetadata>> optChangeMetadata = IndexEncodingUtils.decode(
+                encoded,
+                conjureChangeMetadata -> conjureChangeMetadata.accept(ChangeMetadataFromConjureVisitor.INSTANCE));
+        Map<LockDescriptor, ChangeMetadata> changeMetadata = KeyedStream.ofEntries(
+                        optChangeMetadata.entrySet().stream())
+                .flatMap(Optional::stream)
+                .collectToMap();
+        return LockRequestMetadata.of(changeMetadata);
+    }
+
+    private static ConjureLockDescriptorListChecksum checksumToConjure(KeyListChecksum checksum) {
+        return ConjureLockDescriptorListChecksum.of(checksum.type().getId(), Bytes.from(checksum.value()));
+    }
+
+    private static KeyListChecksum checksumFromConjure(ConjureLockDescriptorListChecksum conjureChecksum) {
+        return KeyListChecksum.of(
+                ChecksumType.valueOf(conjureChecksum.getTypeId()),
+                conjureChecksum.getValue().asNewByteArray());
+    }
+
+    @Unsafe
+    @Value.Immutable
+    public interface ConjureMetadataConversionResult {
+        List<LockDescriptor> lockList();
+
+        ConjureLockRequestMetadata conjureMetadata();
+
+        static ImmutableConjureMetadataConversionResult.Builder builder() {
+            return ImmutableConjureMetadataConversionResult.builder();
+        }
+    }
+
+    private enum ChangeMetadataToConjureVisitor implements ChangeMetadata.Visitor<ConjureChangeMetadata> {
+        INSTANCE;
+
+        @Override
+        public ConjureChangeMetadata visit(Unchanged unchanged) {
+            return ConjureChangeMetadata.unchanged(ConjureUnchangedChangeMetadata.of());
+        }
+
+        @Override
+        public ConjureChangeMetadata visit(Updated updated) {
+            return ConjureChangeMetadata.updated(
+                    ConjureUpdatedChangeMetadata.of(Bytes.from(updated.oldValue()), Bytes.from(updated.newValue())));
+        }
+
+        @Override
+        public ConjureChangeMetadata visit(Deleted deleted) {
+            return ConjureChangeMetadata.deleted(ConjureDeletedChangeMetadata.of(Bytes.from(deleted.oldValue())));
+        }
+
+        @Override
+        public ConjureChangeMetadata visit(Created created) {
+            return ConjureChangeMetadata.created(ConjureCreatedChangeMetadata.of(Bytes.from(created.newValue())));
+        }
+    }
+
+    private enum ChangeMetadataFromConjureVisitor implements ConjureChangeMetadata.Visitor<Optional<ChangeMetadata>> {
+        INSTANCE;
+
+        @Override
+        public Optional<ChangeMetadata> visitUnchanged(ConjureUnchangedChangeMetadata unchanged) {
+            return Optional.of(ChangeMetadata.unchanged());
+        }
+
+        @Override
+        public Optional<ChangeMetadata> visitUpdated(ConjureUpdatedChangeMetadata updated) {
+            return Optional.of(ChangeMetadata.updated(
+                    updated.getOldValue().asNewByteArray(),
+                    updated.getNewValue().asNewByteArray()));
+        }
+
+        @Override
+        public Optional<ChangeMetadata> visitDeleted(ConjureDeletedChangeMetadata deleted) {
+            return Optional.of(ChangeMetadata.deleted(deleted.getOldValue().asNewByteArray()));
+        }
+
+        @Override
+        public Optional<ChangeMetadata> visitCreated(ConjureCreatedChangeMetadata created) {
+            return Optional.of(ChangeMetadata.created(created.getNewValue().asNewByteArray()));
+        }
+
+        @Override
+        public Optional<ChangeMetadata> visitUnknown(String unknownType) {
+            log.trace(
+                    "Encountered an unknown ConjureChangeMetadata type. This is likely a new type that was added in a"
+                            + " future version. This ChangeMetadata will be discarded",
+                    SafeArg.of("unknownType", unknownType));
+            return Optional.empty();
+        }
+    }
+}u}(js (1bba95acc622e3285936e6443d37ef912ef8575dj @lock-api/src/test/java/com/palantir/lock/LockDescriptorTest.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockDescriptorTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockDescriptorTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockDescriptorTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j Xy  @@ -20,6 +20,7 @@
 
 import com.google.common.base.Charsets;
 import com.google.common.io.BaseEncoding;
+import java.util.Arrays;
 import org.junit.Test;
 
 public class LockDescriptorTest {
@@ -67,6 +68,24 @@ public void testNullEncodedStringDescriptor() {
         assertThatThrownBy(() -> testEncodedLockDescriptors(null)).isInstanceOf(NullPointerException.class);
     }
 
+    // If this test fails, the implementation of Arrays.hashCode(byte[]), LockDescriptor::hashCode, or
+    // LockDescriptor::deterministicHashCode has changed.
+    // Either way, we should revisit LockDescriptor::deterministicHashCode and ensure that it is still deterministic
+    // and there are no compatibility issues in mixed-version deployments.
+    @Test
+    public void hashCodeIsDeterministic() {
+        // 40 random bytes
+        byte[] bytes = new byte[] {
+            59, -6, -24, 61, -48, -126, -4, 81, -9, -38, -107, 93, 101, -95, 78, -60, -105, 23, 72, 96, -5, 74, -121,
+            59, 40, -87, 1, -6, 43, -20, -70, 101, 63, 108, -51, 117, 113, 116, -87, -73
+        };
+        int expectedByteArrayHashCode = 2030170880;
+        assertThat(Arrays.hashCode(bytes)).isEqualTo(expectedByteArrayHashCode);
+        LockDescriptor lockDescriptor = new LockDescriptor(bytes);
+        assertThat(lockDescriptor.hashCode()).isEqualTo(expectedByteArrayHashCode + 31);
+        assertThat(lockDescriptor.deterministicHashCode()).isEqualTo(expectedByteArrayHashCode + 31);
+    }
+
     private void testAsciiLockDescriptors(String lockId) {
         assertThat(StringLockDescriptor.of(lockId).toString()).isEqualTo(expectedLockDescriptorToString(lockId));
 u}(js (96fe402e4d52617d8c36e2a0ce2d98c6c893ef57j Nlock-api/src/test/java/com/palantir/lock/client/IdentifiedLockRequestTest.javaj modifiedj KIj Kj KTj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -19,24 +19,86 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
 import com.fasterxml.jackson.datatype.guava.GuavaModule;
 import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockRequestMetadata;
+import java.nio.charset.StandardCharsets;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.UUID;
 import org.junit.Test;
 
 public class IdentifiedLockRequestTest {
-    private static final String SERIALIZED_LOCK_REQUEST = "{"
-            + "\"requestId\":\"885afd9c-de62-44ff-a517-5db14b71bfaa\","
-            + "\"lockDescriptors\":[{\"bytes\":\"Zm9v\"}],"
-            + "\"acquireTimeoutMs\":123,"
-            + "\"clientDescription\":\"Thread: main\"}";
+    private static final String BASE = "src/test/resources/identified-lock-request-wire-format/";
+    private static final boolean REWRITE_JSON_BLOBS = false;
+    private static final IdentifiedLockRequest BASELINE_REQUEST = ImmutableIdentifiedLockRequest.builder()
+            .requestId(new UUID(1337, 42))
+            .lockDescriptors(ImmutableSet.of(StringLockDescriptor.of("lock1"), StringLockDescriptor.of("lock2")))
+            .acquireTimeoutMs(100)
+            .clientDescription("client: test, thread: test")
+            .build();
+    private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(ImmutableMap.of(
+            StringLockDescriptor.of("lock1"), ChangeMetadata.created("something".getBytes(StandardCharsets.UTF_8))));
+    private static final ObjectMapper MAPPER = new ObjectMapper()
+            .enable(SerializationFeature.INDENT_OUTPUT)
+            .registerModule(new Jdk8Module())
+            .registerModule(new GuavaModule());
 
-    private static final ObjectMapper mapper =
-            new ObjectMapper().registerModule(new Jdk8Module()).registerModule(new GuavaModule());
+    @Test
+    public void baselineRequestIsFullCompat() {
+        assertSerializedEquals(BASELINE_REQUEST, "baseline");
+        assertDeserializedEquals("baseline", BASELINE_REQUEST);
+    }
 
     @Test
-    public void ensureSerdeBackcompat() throws Exception {
-        IdentifiedLockRequest request = mapper.readValue(SERIALIZED_LOCK_REQUEST, IdentifiedLockRequest.class);
-        String deserialized = mapper.writeValueAsString(request);
-        assertThat(mapper.readTree(deserialized)).isEqualTo(mapper.readTree(SERIALIZED_LOCK_REQUEST));
+    public void baselineRequestWithMetadataIsBackCompat() {
+        assertSerializedEquals(
+                ImmutableIdentifiedLockRequest.copyOf(BASELINE_REQUEST).withMetadata(LOCK_REQUEST_METADATA),
+                "baseline");
+    }
+
+    private static void assertSerializedEquals(IdentifiedLockRequest request, String jsonFileName) {
+        try {
+            Path path = getJsonPath(jsonFileName);
+            if (REWRITE_JSON_BLOBS) {
+                MAPPER.writeValue(path.toFile(), request);
+            }
+            String serialized = serialize(request);
+            assertThat(MAPPER.readTree(serialized))
+                    .as("Serialization yields identical JSON representation")
+                    .isEqualTo(MAPPER.readTree(Files.readString(path)));
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static void assertDeserializedEquals(String jsonFileName, IdentifiedLockRequest request) {
+        assertThat(deserialize(jsonFileName)).isEqualTo(request);
+    }
+
+    private static String serialize(IdentifiedLockRequest request) {
+        try {
+            return MAPPER.writeValueAsString(request);
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static IdentifiedLockRequest deserialize(String jsonFileName) {
+        try {
+            return MAPPER.readValue(Files.readString(getJsonPath(jsonFileName)), IdentifiedLockRequest.class);
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static Path getJsonPath(String jsonFileName) {
+        return Paths.get(BASE, jsonFileName + ".json");
     }
 }u}(js (c0d1025cfe51e19db09fc5399c40d1efe6257dbaj Wlock-api/src/test/java/com/palantir/lock/watch/ConjureLockRequestMetadataUtilsTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -0,0 +1,155 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.atlasdb.timelock.api.ConjureChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureCreatedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureDeletedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureLockDescriptorListChecksum;
+import com.palantir.atlasdb.timelock.api.ConjureLockRequestMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureUnchangedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureUpdatedChangeMetadata;
+import com.palantir.conjure.java.lib.Bytes;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.watch.ConjureLockRequestMetadataUtils.ConjureMetadataConversionResult;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.util.IndexEncodingUtils;
+import com.palantir.util.IndexEncodingUtils.KeyListChecksum;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class ConjureLockRequestMetadataUtilsTest {
+    private static final LockDescriptor LOCK_1 = StringLockDescriptor.of("lock1");
+    private static final LockDescriptor LOCK_2 = StringLockDescriptor.of("lock2");
+    private static final LockDescriptor LOCK_3 = StringLockDescriptor.of("lock3");
+    private static final LockDescriptor LOCK_4 = StringLockDescriptor.of("lock4");
+    private static final byte[] BYTES_OLD = PtBytes.toBytes("old");
+    private static final byte[] BYTES_NEW = PtBytes.toBytes("new");
+    private static final byte[] BYTES_DELETED = PtBytes.toBytes("deleted");
+    private static final byte[] BYTES_CREATED = PtBytes.toBytes("created");
+    private static final List<LockDescriptor> LOCK_LIST = ImmutableList.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4);
+    // Although this is quite verbose, we explicitly want to test all possible types of change metadata and ensure
+    // that we do the conversion right for each of them.
+    private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(ImmutableMap.of(
+            LOCK_1,
+            ChangeMetadata.unchanged(),
+            LOCK_2,
+            ChangeMetadata.updated(BYTES_OLD, BYTES_NEW),
+            LOCK_3,
+            ChangeMetadata.deleted(BYTES_DELETED),
+            LOCK_4,
+            ChangeMetadata.created(BYTES_CREATED)));
+    private static final Map<Integer, ConjureChangeMetadata> CONJURE_LOCKS_WITH_METADATA = ImmutableMap.of(
+            0,
+            ConjureChangeMetadata.unchanged(ConjureUnchangedChangeMetadata.of()),
+            1,
+            ConjureChangeMetadata.updated(
+                    ConjureUpdatedChangeMetadata.of(Bytes.from(BYTES_OLD), Bytes.from(BYTES_NEW))),
+            2,
+            ConjureChangeMetadata.deleted(ConjureDeletedChangeMetadata.of(Bytes.from(BYTES_DELETED))),
+            3,
+            ConjureChangeMetadata.created(ConjureCreatedChangeMetadata.of(Bytes.from(BYTES_CREATED))));
+
+    private static ConjureMetadataConversionResult conjureMetadataConversionResult;
+
+    // This is a good candidate for a static construction method, but we would rather avoid testing internals of
+    // IndexEncodingUtils (checksum computation) within the tests for Conjure conversion.
+    @BeforeClass
+    public static void setup() {
+        KeyListChecksum checksum =
+                IndexEncodingUtils.computeChecksum(ConjureLockRequestMetadataUtils.DEFAULT_CHECKSUM_TYPE, LOCK_LIST);
+        ConjureLockRequestMetadata conjureMetadata = ConjureLockRequestMetadata.builder()
+                .indexToChangeMetadata(CONJURE_LOCKS_WITH_METADATA)
+                .lockListChecksum(
+                        ConjureLockDescriptorListChecksum.of(checksum.type().getId(), Bytes.from(checksum.value())))
+                .build();
+        conjureMetadataConversionResult = ConjureMetadataConversionResult.builder()
+                .lockList(LOCK_LIST)
+                .conjureMetadata(conjureMetadata)
+                .build();
+    }
+
+    @Test
+    public void convertsToConjureCorrectly() {
+        // ImmutableSet remembers insertion order, which is critical here
+        assertThat(ConjureLockRequestMetadataUtils.toConjureIndexEncoded(
+                        ImmutableSet.copyOf(LOCK_LIST), LOCK_REQUEST_METADATA))
+                .isEqualTo(conjureMetadataConversionResult);
+    }
+
+    @Test
+    public void convertsFromConjureCorrectly() {
+        assertThat(ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(conjureMetadataConversionResult))
+                .isEqualTo(LOCK_REQUEST_METADATA);
+    }
+
+    @Test
+    public void canConvertSparseMetadata() {
+        List<LockDescriptor> lockDescriptors = IntStream.range(0, 10)
+                .mapToObj(Integer::toString)
+                .map(StringLockDescriptor::of)
+                .collect(Collectors.toList());
+        // Unique metadata on some locks, but not all
+        Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata = ImmutableMap.of(
+                lockDescriptors.get(0), ChangeMetadata.created(BYTES_CREATED),
+                lockDescriptors.get(4), ChangeMetadata.deleted(BYTES_DELETED),
+                lockDescriptors.get(9), ChangeMetadata.unchanged(),
+                lockDescriptors.get(5), ChangeMetadata.updated(BYTES_OLD, BYTES_NEW),
+                lockDescriptors.get(7), ChangeMetadata.unchanged());
+        LockRequestMetadata metadata = LockRequestMetadata.of(lockDescriptorToChangeMetadata);
+
+        assertThat(ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(
+                        ConjureLockRequestMetadataUtils.toConjureIndexEncoded(
+                                ImmutableSet.copyOf(lockDescriptors), metadata)))
+                .isEqualTo(metadata);
+    }
+
+    @Test
+    public void changedLockOrderIsDetected() {
+        List<LockDescriptor> modifiedLockList = new ArrayList<>(LOCK_LIST);
+        Collections.swap(modifiedLockList, 0, 1);
+        ConjureMetadataConversionResult conversionResult = ImmutableConjureMetadataConversionResult.copyOf(
+                        conjureMetadataConversionResult)
+                .withLockList(modifiedLockList);
+        assertThatLoggableExceptionThrownBy(
+                        () -> ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(conversionResult))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageStartingWith("Key list integrity check failed");
+    }
+
+    @Test
+    public void handlesEmptyData() {
+        assertThat(ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(
+                        ConjureLockRequestMetadataUtils.toConjureIndexEncoded(
+                                ImmutableSet.of(), LockRequestMetadata.of(ImmutableMap.of()))))
+                .isEqualTo(LockRequestMetadata.of(ImmutableMap.of()));
+    }
+}u}(js (88f329985fc4d91067bebcd353b56f20d58b75bej Mlock-api/src/test/resources/identified-lock-request-wire-format/baseline.jsonj addedj K
j K j K
j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.jsonj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.jsonj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.json?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -0,0 +1,10 @@
+{
+  "requestId" : "00000000-0000-0539-0000-00000000002a",
+  "lockDescriptors" : [ {
+    "bytes" : "bG9jazE="
+  }, {
+    "bytes" : "bG9jazI="
+  } ],
+  "acquireTimeoutMs" : 100,
+  "clientDescription" : "client: test, thread: test"
+}
\ No newline at end of fileu}(js (dfc342440e6b1fcac63ded5134e926da137e5418j lock-impl/build.gradlej modifiedj Kj K j Kj jhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-impl%2Fbuild.gradlej ihttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-impl%2Fbuild.gradlej |https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fbuild.gradle?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -10,6 +10,7 @@ dependencies {
   implementation 'com.google.guava:guava'
   implementation 'com.palantir.common:streams'
   implementation 'com.palantir.nylon:nylon-threads'
+  implementation 'com.palantir.refreshable:refreshable'
   implementation 'com.palantir.safe-logging:preconditions'
   implementation 'com.palantir.safe-logging:safe-logging'
   implementation 'joda-time:joda-time'u}(js (ccf79fc6208425b23884007b50ffc458e3a26bd5j Llock-impl/src/main/java/com/palantir/lock/impl/AdjustableBackgroundTask.javaj addedj Kej K j Kej https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -0,0 +1,101 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.io.Closeable;
+import java.time.Duration;
+import java.util.concurrent.RejectedExecutionException;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
+import java.util.function.Supplier;
+
+public final class AdjustableBackgroundTask implements Closeable {
+
+    /**
+     * A minimum duration between invocations if the task is not actually enabled.
+     * This is to prevent having a blocking thread in the background that does nothing.
+     */
+    @VisibleForTesting
+    static final Duration MINIMUM_INTERVAL_IF_NOT_RUNNING = Duration.ofSeconds(1);
+
+    private static final SafeLogger log = SafeLoggerFactory.get(AdjustableBackgroundTask.class);
+
+    private final ScheduledExecutorService scheduledExecutor;
+    private final Supplier<Boolean> shouldRunSupplier;
+    private final Supplier<Duration> intervalSupplier;
+    private final Runnable task;
+
+    public static AdjustableBackgroundTask create(
+            Supplier<Boolean> shouldRunSupplier, Supplier<Duration> delaySupplier, Runnable task) {
+        return new AdjustableBackgroundTask(
+                shouldRunSupplier, delaySupplier, task, PTExecutors.newSingleThreadScheduledExecutor());
+    }
+
+    @VisibleForTesting
+    AdjustableBackgroundTask(
+            Supplier<Boolean> shouldRunSupplier,
+            Supplier<Duration> intervalSupplier,
+            Runnable task,
+            ScheduledExecutorService scheduledExecutor) {
+        this.shouldRunSupplier = shouldRunSupplier;
+        this.intervalSupplier = intervalSupplier;
+        this.task = task;
+        this.scheduledExecutor = scheduledExecutor;
+        run();
+    }
+
+    private void run() {
+        boolean shouldRun = shouldRunSupplier.get();
+        if (shouldRun) {
+            try {
+                task.run();
+            } catch (Exception e) {
+                if (Thread.interrupted()) {
+                    log.error("Task was interrupted. Stopping background execution.", e);
+                    Thread.currentThread().interrupt();
+                    return;
+                }
+                log.error("Exception occurred during task", e);
+            } catch (Error e) {
+                log.error("Error occurred during task. Stopping background execution.", e);
+                return;
+            }
+        }
+        try {
+            long intervalMillis = intervalSupplier.get().toMillis();
+            scheduledExecutor.schedule(
+                    this::run,
+                    shouldRun ? intervalMillis : Math.max(MINIMUM_INTERVAL_IF_NOT_RUNNING.toMillis(), intervalMillis),
+                    TimeUnit.MILLISECONDS);
+        } catch (RejectedExecutionException e) {
+            log.warn(
+                    "Scheduler rejected execution",
+                    SafeArg.of("schedulerIsShutdown", scheduledExecutor.isShutdown()),
+                    e);
+        }
+    }
+
+    @Override
+    public void close() {
+        scheduledExecutor.shutdown();
+    }
+}u}(js (d46677bd60efd12dee64f1090e49358ef304d8d9j Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj modifiedj Kj K
j K&j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -80,6 +80,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.nylon.threads.ThreadNames;
+import com.palantir.refreshable.Refreshable;
 import com.palantir.util.JMXUtils;
 import com.palantir.util.Ownable;
 import java.math.BigInteger;
@@ -233,15 +234,21 @@ public static LockServiceImpl create() {
     public static LockServiceImpl create(LockServerOptions options) {
         com.palantir.logsafe.Preconditions.checkNotNull(options);
         ExecutorService newExecutor = PTExecutors.newCachedThreadPool(LockServiceImpl.class.getName());
-        return create(options, Ownable.owned(newExecutor));
+        return create(Refreshable.only(options), Ownable.owned(newExecutor));
     }
 
-    public static LockServiceImpl create(LockServerOptions options, ExecutorService injectedExecutor) {
+    public static LockServiceImpl create(Refreshable<LockServerOptions> options, ExecutorService injectedExecutor) {
         com.palantir.logsafe.Preconditions.checkNotNull(options);
+        com.palantir.logsafe.Preconditions.checkNotNull(options.current());
         return create(options, Ownable.notOwned(injectedExecutor));
     }
 
-    private static LockServiceImpl create(LockServerOptions options, Ownable<ExecutorService> executor) {
+    public static LockServiceImpl create(LockServerOptions options, ExecutorService injectedExecutor) {
+        com.palantir.logsafe.Preconditions.checkNotNull(options);
+        return create(Refreshable.only(options), Ownable.notOwned(injectedExecutor));
+    }
+
+    private static LockServiceImpl create(Refreshable<LockServerOptions> options, Ownable<ExecutorService> executor) {
         if (log.isTraceEnabled()) {
             log.trace("Creating LockService with options={}", SafeArg.of("options", options));
         }
@@ -252,18 +259,22 @@ private static LockServiceImpl create(LockServerOptions options, Ownable<Executo
         return lockService;
     }
 
-    private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable<ExecutorService> executor) {
+    /**
+     * Only {@link LockServerOptions#threadInfoConfiguration()} is actually reloadable
+     */
+    private LockServiceImpl(
+            Refreshable<LockServerOptions> options, Runnable callOnClose, Ownable<ExecutorService> executor) {
+        LockServerOptions currentOptions = options.current();
         this.lockReapRunner = new LockReapRunner(executor);
         this.callOnClose = callOnClose;
-        this.isStandaloneServer = options.isStandaloneServer();
-        this.maxAllowedLockTimeout = SimpleTimeDuration.of(options.getMaxAllowedLockTimeout());
-        this.maxAllowedClockDrift = SimpleTimeDuration.of(options.getMaxAllowedClockDrift());
-        this.maxNormalLockAge = SimpleTimeDuration.of(options.getMaxNormalLockAge());
-        this.stuckTransactionTimeout = SimpleTimeDuration.of(options.getStuckTransactionTimeout());
-        this.slowLogTriggerMillis = options.slowLogTriggerMillis();
-        this.threadInfoSnapshotManager =
-                new LockThreadInfoSnapshotManager(options.threadInfoConfiguration(), () -> heldLocksTokenMap);
-        threadInfoSnapshotManager.start();
+        this.isStandaloneServer = currentOptions.isStandaloneServer();
+        this.maxAllowedLockTimeout = SimpleTimeDuration.of(currentOptions.getMaxAllowedLockTimeout());
+        this.maxAllowedClockDrift = SimpleTimeDuration.of(currentOptions.getMaxAllowedClockDrift());
+        this.maxNormalLockAge = SimpleTimeDuration.of(currentOptions.getMaxNormalLockAge());
+        this.stuckTransactionTimeout = SimpleTimeDuration.of(currentOptions.getStuckTransactionTimeout());
+        this.slowLogTriggerMillis = currentOptions.slowLogTriggerMillis();
+        this.threadInfoSnapshotManager = new LockThreadInfoSnapshotManager(
+                options.map(LockServerOptions::threadInfoConfiguration), () -> heldLocksTokenMap);
     }
 
     private HeldLocksToken createHeldLocksToken(
@@ -1231,6 +1242,7 @@ private String safeLockStats() {
     public void close() {
         if (isShutDown.compareAndSet(false, true)) {
             lockReapRunner.close();
+            threadInfoSnapshotManager.close();
             blockingThreads.forEach(Thread::interrupt);
             callOnClose.run();
         }u}(js (8fe141cc254985903635606c7c4d0fb75eae629bj Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javaj modifiedj Kj Kj K7j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -18,58 +18,46 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableMap;
-import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.lock.DebugThreadInfoConfiguration;
 import com.palantir.lock.HeldLocksToken;
 import com.palantir.lock.LockClientAndThread;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.refreshable.Refreshable;
+import java.time.Duration;
 import java.util.HashMap;
 import java.util.Map;
 import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.ConcurrentMap;
-import java.util.concurrent.ScheduledExecutorService;
-import java.util.concurrent.TimeUnit;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 
 public class LockThreadInfoSnapshotManager implements AutoCloseable {
-    private DebugThreadInfoConfiguration threadInfoConfiguration;
+    private static final SafeLogger log = SafeLoggerFactory.get(LockThreadInfoSnapshotManager.class);
+    private final Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration;
 
-    private Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
+    private final Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
 
-    private volatile Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot;
+    private volatile Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot = ImmutableMap.of();
 
-    private ScheduledExecutorService scheduledExecutorService = PTExecutors.newSingleThreadScheduledExecutor();
+    private final AdjustableBackgroundTask backgroundTask;
 
     public LockThreadInfoSnapshotManager(
-            DebugThreadInfoConfiguration threadInfoConfiguration,
+            Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration,
             Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> mapSupplier) {
         this.threadInfoConfiguration = threadInfoConfiguration;
         this.tokenMapSupplier = mapSupplier;
-        this.lastKnownThreadInfoSnapshot = ImmutableMap.of();
-    }
-
-    public void start() {
-        scheduleRun();
-    }
-
-    private void run() {
-        takeSnapshot();
-
-        // schedule next snapshot so this can be enabled/disabled at runtime
-        scheduleRun();
-    }
-
-    private void scheduleRun() {
-        if (threadInfoConfiguration.recordThreadInfo()) {
-            scheduledExecutorService.schedule(
-                    this::run, threadInfoConfiguration.threadInfoSnapshotIntervalMillis(), TimeUnit.MILLISECONDS);
-        }
+        this.backgroundTask = AdjustableBackgroundTask.create(
+                threadInfoConfiguration.map(DebugThreadInfoConfiguration::recordThreadInfo),
+                threadInfoConfiguration.map(config -> Duration.ofMillis(config.threadInfoSnapshotIntervalMillis())),
+                this::takeSnapshot);
     }
 
     @VisibleForTesting
@@ -84,7 +72,9 @@ Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot() {
     public UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> getRestrictedSnapshotAsOptionalLogArg(
             Set<LockDescriptor> lockDescriptors) {
         String argName = "presumedClientThreadHoldersIfEnabled";
-        if (!threadInfoConfiguration.recordThreadInfo()) {
+        if (!threadInfoConfiguration.current().recordThreadInfo()) {
+            // Avoids keeping the value alive even though we are never returning it
+            lastKnownThreadInfoSnapshot = Map.of();
             return UnsafeArg.of(argName, Optional.empty());
         }
         Map<LockDescriptor, LockClientAndThread> latestSnapshot = lastKnownThreadInfoSnapshot;
@@ -108,10 +98,17 @@ void takeSnapshot() {
                 })
                 // Although a lock can be held by multiple clients/threads, we only remember one to save space
                 .collect(Collectors.toMap(Entry::getKey, Entry::getValue, (existing, replacement) -> existing));
+
+        log.info(
+                "Took thread info snapshot of {} locks. Next snapshot due in {}ms",
+                SafeArg.of("snapshotSize", lastKnownThreadInfoSnapshot.size()),
+                SafeArg.of(
+                        "snapshotIntervalMillis",
+                        threadInfoConfiguration.current().threadInfoSnapshotIntervalMillis()));
     }
 
     @Override
     public void close() {
-        scheduledExecutorService.shutdown();
+        backgroundTask.close();
     }
 }u}(js (97ae55956450814bf5146499495e54f469faa960j Plock-impl/src/test/java/com/palantir/lock/impl/AdjustableBackgroundTaskTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -0,0 +1,142 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.refreshable.Refreshable;
+import com.palantir.refreshable.SettableRefreshable;
+import java.time.Duration;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.concurrent.atomic.AtomicLong;
+import org.jmock.lib.concurrent.DeterministicScheduler;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class AdjustableBackgroundTaskTest {
+    private static final Duration DEFAULT_INTERVAL = Duration.ofSeconds(10);
+    private final AtomicLong field = new AtomicLong(0);
+    private final AtomicBoolean shouldRun = new AtomicBoolean(false);
+    private final SettableRefreshable<Duration> interval = Refreshable.create(DEFAULT_INTERVAL);
+    private final DeterministicScheduler scheduledExecutor = new DeterministicScheduler();
+    private final AtomicLong numCallsToShouldRunSupplier = new AtomicLong(0);
+    private final AtomicLong numCallsToIntervalSupplier = new AtomicLong(0);
+    private final AdjustableBackgroundTask adjustableBackgroundTask = new AdjustableBackgroundTask(
+            () -> {
+                numCallsToShouldRunSupplier.incrementAndGet();
+                return shouldRun.get();
+            },
+            () -> {
+                numCallsToIntervalSupplier.incrementAndGet();
+                return interval.current();
+            },
+            field::incrementAndGet,
+            scheduledExecutor);
+
+    @BeforeClass
+    public static void testDelayShouldNotExceedMinimumDelay() {
+        // We have to ensure that our default interval is higher than MINIMUM_INTERVAL_IF_NOT_RUNNING
+        // so our tests are actually meaningful
+        assertThat(DEFAULT_INTERVAL).isGreaterThanOrEqualTo(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING);
+    }
+
+    @Test
+    public void doesNotRunTaskDuringConstruction() {
+        assertThat(field.get()).isEqualTo(0);
+    }
+
+    @Test
+    public void doesNotRunTaskByDefault() {
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(0);
+    }
+
+    @Test
+    public void canBeEnabledDisabledAndReEnabled() {
+        shouldRun.set(true);
+        tick(DEFAULT_INTERVAL);
+        long after = field.get();
+        assertThat(after).isEqualTo(1);
+
+        shouldRun.set(false);
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(after);
+
+        shouldRun.set(true);
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(after + 1);
+    }
+
+    @Test
+    public void canAdjustInterval() {
+        Duration newInterval = Duration.ofMinutes(1);
+        interval.update(newInterval);
+        shouldRun.set(true);
+        // initial run was scheduled at default interval
+        tick(DEFAULT_INTERVAL);
+        tick(Duration.ofMinutes(42 - 1));
+        assertThat(field.get()).isEqualTo(42);
+    }
+
+    @Test
+    public void canAdjustIntervalBelowMinimumDelayIfRunning() {
+        Duration newInterval = Duration.ofMillis(1);
+        interval.update(newInterval);
+        shouldRun.set(true);
+        // initial run was scheduled at default interval
+        tick(DEFAULT_INTERVAL);
+        tick(Duration.ofMillis(10 - 1));
+        assertThat(field.get()).isEqualTo(10);
+    }
+
+    @Test
+    public void runsSuppliersAtReducedIntervalIfNotRunning() {
+        Duration newInterval = Duration.ofMillis(1);
+        interval.update(newInterval);
+        Duration elapsedDuration = Duration.ofSeconds(10);
+        // initial run was scheduled at default interval, this will run suppliers once
+        tick(DEFAULT_INTERVAL);
+        tick(elapsedDuration);
+        assertThat(field.get()).isEqualTo(0);
+        // suppliers are also called once when running the constructor
+        assertThat(numCallsToShouldRunSupplier.get())
+                .as("Ensure the number of times we checked if we should run is at most the number of times"
+                        + " MINIMUM_INTERVAL_IF_NOT_RUNNING has elapsed")
+                .isLessThanOrEqualTo(
+                        elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
+        assertThat(numCallsToIntervalSupplier.get())
+                .as("Ensure the number of times we checked at what interval we should run is at most the number of"
+                        + " times MINIMUM_INTERVAL_IF_NOT_RUNNING has elapsed")
+                .isLessThanOrEqualTo(
+                        elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
+    }
+
+    @Test
+    public void suppliersAreCalledTogetherWithTask() {
+        shouldRun.set(true);
+        tick(Duration.ofSeconds(10 * DEFAULT_INTERVAL.toSeconds()));
+        assertThat(field.get()).isEqualTo(10);
+        // suppliers are also called once when running the constructor
+        assertThat(numCallsToShouldRunSupplier.get()).isEqualTo(11);
+        assertThat(numCallsToIntervalSupplier.get()).isEqualTo(11);
+    }
+
+    private void tick(Duration duration) {
+        scheduledExecutor.tick(duration.toMillis(), TimeUnit.MILLISECONDS);
+    }
+}u}(js (0ff14400f99f0f97c0494b5db923ebce2e42263dj Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javaj modifiedj Kj K!j K0j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -42,7 +42,7 @@
 import java.util.concurrent.TimeUnit;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
-import org.awaitility.Awaitility;
+import org.junit.After;
 import org.junit.Test;
 
 public class ThreadInfoLockServiceImplTest {
@@ -272,31 +272,6 @@ public void refreshDoesNotChangeSnapshot() throws InterruptedException {
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
     }
 
-    @Test
-    public void backgroundSnapshotRunnerWorks() throws InterruptedException {
-        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
-                .isStandaloneServer(false)
-                .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
-                        .recordThreadInfo(true)
-                        .threadInfoSnapshotIntervalMillis(50L)
-                        .build())
-                .build());
-        LockThreadInfoSnapshotManager backgroundSnapshotRunner = lockServiceWithBackgroundRunner.getSnapshotManager();
-
-        LockResponse response = lockServiceWithBackgroundRunner.lockWithFullLockResponse(
-                LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
-
-        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
-                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
-                .containsExactly(Map.entry(TEST_LOCK_1, ANONYMOUS_TEST_THREAD_1)));
-
-        lockServiceWithBackgroundRunner.unlock(response.getToken());
-
-        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
-                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
-                .doesNotContainKey(TEST_LOCK_1));
-    }
-
     @Test
     public void logArgIsUnsafeAndContainsEmptyOptionalIfNotRecordingThreadInfo() throws InterruptedException {
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
@@ -307,11 +282,10 @@ public void logArgIsUnsafeAndContainsEmptyOptionalIfNotRecordingThreadInfo() thr
 
     @Test
     public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() throws InterruptedException {
-        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
+        LockServiceImpl lockServiceWithRecordingEnabled = LockServiceImpl.create(LockServerOptions.builder()
                 .isStandaloneServer(false)
                 .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
                         .recordThreadInfo(true)
-                        .threadInfoSnapshotIntervalMillis(50L)
                         .build())
                 .build());
         LockRequest lockRequest2 = LockRequest.builder(
@@ -320,17 +294,25 @@ public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() t
                 .withCreatingThreadName(TEST_THREAD_2)
                 .build();
 
-        lockServiceWithBackgroundRunner.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
-        lockServiceWithBackgroundRunner.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+        lockServiceWithRecordingEnabled.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockServiceWithRecordingEnabled.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
 
-        Awaitility.waitAtMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(lockServiceWithBackgroundRunner
+        lockServiceWithRecordingEnabled.getSnapshotManager().takeSnapshot();
+
+        assertThat(lockServiceWithRecordingEnabled
                         .getSnapshotManager()
                         .getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
                 .isEqualTo(UnsafeArg.of(
                         "presumedClientThreadHoldersIfEnabled",
                         // Snapshot should be restricted to TEST_LOCK_1
-                        Optional.of(
-                                Map.of(TEST_LOCK_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1))))));
+                        Optional.of(Map.of(TEST_LOCK_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1)))));
+
+        lockServiceWithRecordingEnabled.close();
+    }
+
+    @After
+    public void tearDown() {
+        lockService.close();
     }
 
     private void forceSnapshot() {u      }(js (5915e901d5335a9783ac11cb0206c0e610ac23bcj *scripts/circle-ci/publish-to-antithesis.shj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X*  @@ -26,9 +26,9 @@ printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://$
 
 VERSION=$(./gradlew -q printVersion)
 
-docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
-docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc5 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
-docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
+docker pull palantirtechnologies/cassandra:2.2.18-1.116.0
+docker tag palantirtechnologies/cassandra:2.2.18-1.116.0 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.116.0
+docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.116.0
 
 docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}
 docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}u}(js (8c5d010b813c3904a027f75049590aef2a7eb16aj %scripts/circle-ci/run-circle-tests.shj modifiedj Kj K j Kj {https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/scripts%2Fcircle-ci%2Frun-circle-tests.shj zhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/scripts%2Fcircle-ci%2Frun-circle-tests.shj https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XW  @@ -77,6 +77,8 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 # External builds have a 16gb limit.
 if [ "$test_suite_index" -eq "14" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
+elif [ "$test_suite_index" -eq "4" ]; then
+    export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 elif [ "$test_suite_index" -eq "3" ]; then
     export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
     BASE_GRADLE_ARGS+=" --scan --parallel"u}(js (03e1ff19bb39c0ec79ee29033b2ebfb1c90ec09bj btimelock-agent/src/main/java/com/palantir/timelock/ServiceDiscoveringDatabaseTimeLockSupplier.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplier.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplier.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplier.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -19,7 +19,6 @@
 import com.google.common.base.Suppliers;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.factory.AtlasDbServiceDiscovery;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
@@ -49,11 +48,10 @@ public ServiceDiscoveringDatabaseTimeLockSupplier(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean initializeAsync) {
         DbTimeLockFactory dbTimeLockFactory = AtlasDbServiceDiscovery.createDbTimeLockFactoryOfCorrectType(config);
-        keyValueService = Suppliers.memoize(() -> dbTimeLockFactory.createRawKeyValueService(
-                metricsManager, config, runtimeConfig, leaderConfig, initializeAsync));
+        keyValueService = Suppliers.memoize(() ->
+                dbTimeLockFactory.createRawKeyValueService(metricsManager, config, runtimeConfig, initializeAsync));
         timestampServiceFactory = creationSetting -> dbTimeLockFactory.createManagedTimestampService(
                 keyValueService.get(), creationSetting, initializeAsync);
         timestampSeriesProvider = tableRef ->u}(js (2d3777830cee23df595f18bcd0f7378a07e49ebej etimelock-agent/src/main/java/com/palantir/timelock/config/RestrictedTimeLockRuntimeConfiguration.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j Xb  @@ -16,6 +16,7 @@
 
 package com.palantir.timelock.config;
 
+import com.palantir.lock.DebugThreadInfoConfiguration;
 import java.util.Optional;
 
 public class RestrictedTimeLockRuntimeConfiguration extends TimeLockRuntimeConfiguration {
@@ -54,4 +55,9 @@ public TimeLockAdjudicationConfiguration adjudication() {
     public Optional<TsBoundPersisterRuntimeConfiguration> timestampBoundPersistence() {
         return runtime.timestampBoundPersistence();
     }
+
+    @Override
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return runtime.threadInfoConfiguration();
+    }
 }u}(js (d8d2a7c36eb3321b137f488acb279decabb46ac6j [timelock-agent/src/main/java/com/palantir/timelock/config/TimeLockRuntimeConfiguration.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -20,6 +20,8 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.google.common.base.Preconditions;
+import com.palantir.lock.DebugThreadInfoConfiguration;
+import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
 import com.palantir.logsafe.DoNotLog;
 import java.util.Optional;
 import org.immutables.value.Value;
@@ -78,6 +80,12 @@ public TimeLockAdjudicationConfiguration adjudication() {
     @JsonProperty("timestamp-bound-persistence")
     public abstract Optional<TsBoundPersisterRuntimeConfiguration> timestampBoundPersistence();
 
+    @JsonProperty("debug-thread-info-config")
+    @Value.Default
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    }
+
     @Value.Check
     public void check() {
         Preconditions.checkState(u}(js (9f4ca09c90e7cf8f9a893b182c9bb43cfe0be85fj Ztimelock-agent/src/main/java/com/palantir/timelock/paxos/AsyncTimeLockServicesCreator.javaj modifiedj K	j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -24,6 +24,8 @@
 import com.palantir.atlasdb.timelock.lock.AsyncLockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.atlasdb.timelock.lock.NonTransactionalLockService;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
 import com.palantir.atlasdb.timelock.paxos.LeadershipComponents;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.concurrent.NamedThreadFactory;
@@ -94,9 +96,14 @@ private AsyncTimelockService createRawAsyncTimelockService(
                 metricsManager.getRegistry(),
                 "async-lock-timeouts");
         return new AsyncTimelockServiceImpl(
-                AsyncLockService.createDefault(maybeEnhancedLockLog, reaperExecutor, timeoutExecutor),
+                AsyncLockService.createDefault(
+                        maybeEnhancedLockLog,
+                        reaperExecutor,
+                        timeoutExecutor,
+                        BufferMetrics.of(metricsManager.getTaggedRegistry())),
                 timestampServiceSupplier.get(),
-                maybeEnhancedLockLog);
+                maybeEnhancedLockLog,
+                RequestMetrics.of(metricsManager.getTaggedRegistry()));
     }
 
     /**u}(js (67fff0cb73fea18f882abfc897fad053face2cf4j Utimelock-agent/src/main/java/com/palantir/timelock/paxos/DbBoundTimestampCreator.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FDbBoundTimestampCreator.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FDbBoundTimestampCreator.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FDbBoundTimestampCreator.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XB  @@ -18,7 +18,6 @@
 import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
 import com.palantir.paxos.Client;
 import com.palantir.timelock.ServiceDiscoveringDatabaseTimeLockSupplier;
@@ -35,7 +34,7 @@ public DbBoundTimestampCreator(
     }
 
     @Override
-    public Supplier<ManagedTimestampService> createTimestampService(Client client, LeaderConfig leaderConfig) {
+    public Supplier<ManagedTimestampService> createTimestampService(Client client) {
         return () -> serviceDiscoveringDatabaseTimeLockSupplier.getManagedTimestampService(
                 getTimestampCreationParameters(client));
     }u}(js (a168b555f03c27ec1cf6a6780262110e71867bedj Itimelock-agent/src/main/java/com/palantir/timelock/paxos/LockCreator.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j Xd  @@ -21,27 +21,28 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.impl.LockServiceImpl;
 import com.palantir.lock.impl.ThreadPooledLockService;
+import com.palantir.refreshable.Refreshable;
 import com.palantir.timelock.config.TimeLockRuntimeConfiguration;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Semaphore;
-import java.util.function.Supplier;
 
 public class LockCreator {
-    private final Supplier<TimeLockRuntimeConfiguration> runtime;
+    private final Refreshable<TimeLockRuntimeConfiguration> runtime;
     private final long blockingTimeoutMs;
     private final Semaphore sharedThreadPool;
     private final ExecutorService sharedExecutor = PTExecutors.newCachedThreadPool(LockServiceImpl.class.getName());
 
-    public LockCreator(Supplier<TimeLockRuntimeConfiguration> runtime, int threadPoolSize, long blockingTimeoutMs) {
+    public LockCreator(Refreshable<TimeLockRuntimeConfiguration> runtime, int threadPoolSize, long blockingTimeoutMs) {
         this.runtime = runtime;
         this.sharedThreadPool = new Semaphore(threadPoolSize);
         this.blockingTimeoutMs = blockingTimeoutMs;
     }
 
     public CloseableLockService createThreadPoolingLockService() {
-        LockServerOptions lockServerOptions = LockServerOptions.builder()
-                .slowLogTriggerMillis(runtime.get().slowLockLogTriggerMillis())
-                .build();
+        Refreshable<LockServerOptions> lockServerOptions = runtime.map(rt -> LockServerOptions.builder()
+                .slowLogTriggerMillis(rt.slowLockLogTriggerMillis())
+                .threadInfoConfiguration(rt.threadInfoConfiguration())
+                .build());
 
         LockServiceImpl rawLockService = LockServiceImpl.create(lockServerOptions, sharedExecutor);
         CloseableLockService lockService = BlockingTimeLimitedLockService.create(u}(js (6a079ccf904035895dc3706a491d2647bcd7900dj Stimelock-agent/src/main/java/com/palantir/timelock/paxos/PaxosTimestampCreator.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FPaxosTimestampCreator.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FPaxosTimestampCreator.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FPaxosTimestampCreator.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -15,7 +15,6 @@
  */
 package com.palantir.timelock.paxos;
 
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.timelock.paxos.NetworkClientFactories;
 import com.palantir.paxos.Client;
 import com.palantir.timestamp.ManagedTimestampService;
@@ -29,7 +28,7 @@ public class PaxosTimestampCreator implements TimestampCreator {
     }
 
     @Override
-    public Supplier<ManagedTimestampService> createTimestampService(Client client, LeaderConfig unused) {
+    public Supplier<ManagedTimestampService> createTimestampService(Client client) {
         return () -> timestampServiceFactory.create(client);
     }
 u}(js (26ffe31b9e2575d9a3aee3ac2c3795d73e01dd5cj Ktimelock-agent/src/main/java/com/palantir/timelock/paxos/TimeLockAgent.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -15,19 +15,13 @@
  */
 package com.palantir.timelock.paxos;
 
-import static com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants.ACCEPTOR_SUBDIRECTORY_PATH;
-import static com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants.LEADER_PAXOS_NAMESPACE;
-import static com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants.LEARNER_SUBDIRECTORY_PATH;
-
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
 import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
-import com.palantir.atlasdb.config.ImmutableLeaderConfig;
 import com.palantir.atlasdb.config.ImmutableServerListConfig;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.config.RemotingClientConfigs;
 import com.palantir.atlasdb.config.ServerListConfig;
 import com.palantir.atlasdb.http.BlockingTimeoutExceptionMapper;
@@ -93,7 +87,6 @@
 import com.palantir.timestamp.ManagedTimestampService;
 import com.zaxxer.hikari.HikariDataSource;
 import java.net.URL;
-import java.nio.file.Path;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
@@ -287,7 +280,6 @@ private TimestampStorage createDatabaseTimestampStorage(
                 metricsManager,
                 timestampBoundPersistence.keyValueServiceConfig(),
                 runtime.map(TimeLockAgent::getKeyValueServiceRuntimeConfig),
-                createLeaderConfig(),
                 timestampBoundPersistence.initializeAsync());
         return ImmutableTimestampStorage.builder()
                 .timestampCreator(new DbBoundTimestampCreator(dbTimeLockSupplier))
@@ -570,34 +562,14 @@ RedirectRetryTargeter redirectRetryTargeter() {
      * @return Invalidating timestamp and lock services
      */
     public TimeLockServices createInvalidatingTimeLockServices(String client) {
-        LeaderConfig leaderConfig = createLeaderConfig();
-
         Client typedClient = Client.of(client);
 
         Supplier<ManagedTimestampService> rawTimestampServiceSupplier =
-                timestampStorage.timestampCreator().createTimestampService(typedClient, leaderConfig);
+                timestampStorage.timestampCreator().createTimestampService(typedClient);
         Supplier<LockService> rawLockServiceSupplier = lockCreator::createThreadPoolingLockService;
         return timelockCreator.createTimeLockServices(typedClient, rawTimestampServiceSupplier, rawLockServiceSupplier);
     }
 
-    private LeaderConfig createLeaderConfig() {
-        List<String> uris = cluster.clusterMembers();
-        Path leaderPaxosDataDirectory = install.paxos().dataDirectory().toPath().resolve(LEADER_PAXOS_NAMESPACE);
-
-        return ImmutableLeaderConfig.builder()
-                .addLeaders(uris.toArray(new String[0]))
-                .localServer(cluster.localServer())
-                .sslConfiguration(PaxosRemotingUtils.getSslConfigurationOptional(cluster))
-                .quorumSize(PaxosRemotingUtils.getQuorumSize(uris))
-                .learnerLogDir(leaderPaxosDataDirectory
-                        .resolve(LEARNER_SUBDIRECTORY_PATH)
-                        .toFile())
-                .acceptorLogDir(leaderPaxosDataDirectory
-                        .resolve(ACCEPTOR_SUBDIRECTORY_PATH)
-                        .toFile())
-                .build();
-    }
-
     public HealthStatusReport timeLockAdjudicationFeedback() {
         return feedbackHandler.getTimeLockHealthStatus();
     }u}(js (0f2c1df56bad08127cb2d5a035c597cdd96e3b20j Ntimelock-agent/src/main/java/com/palantir/timelock/paxos/TimestampCreator.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimestampCreator.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimestampCreator.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimestampCreator.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X
  @@ -15,13 +15,12 @@
  */
 package com.palantir.timelock.paxos;
 
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.paxos.Client;
 import com.palantir.timestamp.ManagedTimestampService;
 import java.util.function.Supplier;
 
 public interface TimestampCreator extends AutoCloseable {
-    Supplier<ManagedTimestampService> createTimestampService(Client client, LeaderConfig leaderConfig);
+    Supplier<ManagedTimestampService> createTimestampService(Client client);
 
     @Override
     void close();u}(js (37cb9e1dd5d4d778cebc3d4cd60e5120d14a3a28j ftimelock-agent/src/test/java/com/palantir/timelock/ServiceDiscoveringDatabaseTimeLockSupplierTest.javaj modifiedj Kj K	j K
j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplierTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplierTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplierTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -19,11 +19,8 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
-import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.ImmutableLeaderConfig;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeriesProvider;
@@ -43,15 +40,10 @@ public class ServiceDiscoveringDatabaseTimeLockSupplierTest {
 
     private final MetricsManager metricsManager = MetricsManagers.createForTests();
     private final KeyValueServiceConfig keyValueServiceConfig = new InMemoryAtlasDbConfig();
-    private final LeaderConfig leaderConfig = ImmutableLeaderConfig.builder()
-            .localServer("me")
-            .leaders(ImmutableList.of("me"))
-            .quorumSize(1)
-            .build();
 
     private final ServiceDiscoveringDatabaseTimeLockSupplier timeLockSupplier =
             new ServiceDiscoveringDatabaseTimeLockSupplier(
-                    metricsManager, keyValueServiceConfig, Refreshable.only(Optional.empty()), leaderConfig, false);
+                    metricsManager, keyValueServiceConfig, Refreshable.only(Optional.empty()), false);
 
     @Test
     public void canGetTimestampServiceForDifferentSeries() {u}(js (efa35782df23f11a2b560a1360460927c3a64c83j timelock-api/build.gradlej modifiedj Kj K j Kj mhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-api%2Fbuild.gradlej lhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-api%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fbuild.gradle?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X[  @@ -7,6 +7,11 @@ dependencies {
     compileOnly 'com.fasterxml.jackson.core:jackson-databind'
     compileOnly 'org.immutables:value::annotations'
     annotationProcessor 'org.immutables:value'
+
+    testImplementation project(':atlasdb-api')
+    testImplementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
+    testImplementation 'junit:junit'
+    testImplementation 'org.assertj:assertj-core'
 }
 
 subprojects {
@@ -28,3 +33,9 @@ subprojects {
     }
     tasks.licenseMain.enabled = false
 }
+
+conjure {
+    java {
+        excludeEmptyOptionals = true
+    }
+}u}(js (fde4513aa3ded3e8c3dd435abae8afd3aadb7511j .timelock-api/src/main/conjure/timelock-api.ymlj modifiedj K(j Kj K)j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-api.ymlj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-api.ymlj https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-api.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j Xc  @@ -93,6 +93,44 @@ types:
           inclusiveUpper: Long
       ConjureGetFreshTimestampsResponseV2:
         alias: ConjureTimestampRange
+      ConjureUnchangedChangeMetadata:
+        fields: {}
+      ConjureUpdatedChangeMetadata:
+        fields:
+          oldValue:
+            type: binary
+            safety: unsafe
+          newValue:
+            type: binary
+            safety: unsafe
+      ConjureDeletedChangeMetadata:
+        fields:
+          oldValue:
+            type: binary
+            safety: unsafe
+      ConjureCreatedChangeMetadata:
+        fields:
+          newValue:
+            type: binary
+            safety: unsafe
+      ConjureChangeMetadata:
+          union:
+            unchanged: ConjureUnchangedChangeMetadata
+            updated: ConjureUpdatedChangeMetadata
+            deleted: ConjureDeletedChangeMetadata
+            created: ConjureCreatedChangeMetadata
+      ConjureLockDescriptorListChecksum:
+        fields:
+          typeId:
+            type: integer
+            safety: safe
+          value:
+            type: binary
+            safety: unsafe
+      ConjureLockRequestMetadata:
+        fields:
+          indexToChangeMetadata: map<integer, ConjureChangeMetadata>
+          lockListChecksum: ConjureLockDescriptorListChecksum
       ConjureLockDescriptor:
         alias: binary
         safety: unsafe
@@ -101,13 +139,14 @@ types:
           requestId:
             type: uuid
             safety: safe
-          lockDescriptors: set<ConjureLockDescriptor>
+          lockDescriptors: list<ConjureLockDescriptor>
           acquireTimeoutMs:
             type: integer
             safety: safe
           clientDescription:
             type: optional<string>
             safety: unsafe
+          metadata: optional<ConjureLockRequestMetadata>
       ConjureLockToken:
         fields:
           requestId:u}(js (00bacead92b2565926c6a60644ee7001dcabc21bj Xtimelock-api/src/test/java/com/palantir/atlasdb/timelock/api/ConjureLockRequestTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FConjureLockRequestTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FConjureLockRequestTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FConjureLockRequestTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -0,0 +1,157 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock.api;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.conjure.java.lib.Bytes;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.UUID;
+import org.junit.Test;
+
+public class ConjureLockRequestTest {
+    private static final String BASE = "src/test/resources/conjure-lock-request-wire-format/";
+    private static final String LEGACY_CONJURE_LOCK_REQUEST_FILE = "legacy";
+    private static final String WITH_METADATA_FILE = "with-metadata";
+    private static final boolean REWRITE_JSON_BLOBS = false;
+
+    private static final ConjureLockDescriptor LOCK_1 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("abc")));
+    private static final ConjureLockDescriptor LOCK_2 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("def")));
+    private static final ConjureLockDescriptor LOCK_3 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("ghi")));
+    private static final ConjureLockDescriptor LOCK_4 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("jkl")));
+    private static final UUID REQUEST_ID = new UUID(1337, 42);
+    private static final int ACQUIRE_TIMEOUT_MS = 100;
+    private static final String CLIENT_DESCRIPTION = "client: test, thread: test";
+    private static final LegacyConjureLockRequest LEGACY_CONJURE_LOCK_REQUEST = LegacyConjureLockRequest.builder()
+            .requestId(REQUEST_ID)
+            .lockDescriptors(ImmutableSet.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4))
+            .acquireTimeoutMs(ACQUIRE_TIMEOUT_MS)
+            .clientDescription(CLIENT_DESCRIPTION)
+            .build();
+    private static final ConjureLockRequest DEFAULT_CONJURE_LOCK_REQUEST = ConjureLockRequest.builder()
+            .requestId(REQUEST_ID)
+            .lockDescriptors(ImmutableList.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4))
+            .acquireTimeoutMs(ACQUIRE_TIMEOUT_MS)
+            .clientDescription(CLIENT_DESCRIPTION)
+            .build();
+
+    private static final byte[] BYTES_OLD = PtBytes.toBytes("old");
+    private static final byte[] BYTES_NEW = PtBytes.toBytes("new");
+    private static final byte[] BYTES_DELETED = PtBytes.toBytes("deleted");
+    private static final byte[] BYTES_CREATED = PtBytes.toBytes("created");
+    // The checksum on this does not have to be correct since the integrity check is performed by the server and not
+    // by Conjure itself
+    private static final ConjureLockRequestMetadata CONJURE_LOCK_REQUEST_METADATA = ConjureLockRequestMetadata.of(
+            ImmutableMap.of(
+                    0,
+                    ConjureChangeMetadata.unchanged(ConjureUnchangedChangeMetadata.of()),
+                    1,
+                    ConjureChangeMetadata.updated(
+                            ConjureUpdatedChangeMetadata.of(Bytes.from(BYTES_OLD), Bytes.from(BYTES_NEW))),
+                    2,
+                    ConjureChangeMetadata.deleted(ConjureDeletedChangeMetadata.of(Bytes.from(BYTES_DELETED))),
+                    3,
+                    ConjureChangeMetadata.created(ConjureCreatedChangeMetadata.of(Bytes.from(BYTES_CREATED)))),
+            ConjureLockDescriptorListChecksum.of(0, Bytes.from(PtBytes.toBytes("test-checksum-value"))));
+
+    // AtlasDB (Client) serializes and TimeLock (Server) deserializes ConjureLockRequest objects.
+    // These are the respective mappers used internally by Conjure.
+    private static final ObjectMapper SERIALIZATION_MAPPER =
+            ObjectMappers.newClientObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
+    private static final ObjectMapper DESERIALIZATION_MAPPER =
+            ObjectMappers.newServerObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
+    // This mapper is used to ensure that two JSONs are equal excluding indentation
+    private static final ObjectMapper VERIFYING_MAPPER = new ObjectMapper();
+
+    @Test
+    public void oldConjureLockRequestSerializesDeserializes() {
+        assertSerializedEquals(LEGACY_CONJURE_LOCK_REQUEST, LEGACY_CONJURE_LOCK_REQUEST_FILE);
+        assertDeserializedEquals(
+                LEGACY_CONJURE_LOCK_REQUEST_FILE, LEGACY_CONJURE_LOCK_REQUEST, LegacyConjureLockRequest.class);
+    }
+
+    @Test
+    public void absentMetadataSerializesDeserializes() {
+        // Because we use the Conjure configuration "excludeEmptyOptionals = true", we omit fields with empty optionals
+        // during serialization instead of setting them to null.
+        assertSerializedEquals(DEFAULT_CONJURE_LOCK_REQUEST, LEGACY_CONJURE_LOCK_REQUEST_FILE);
+        assertDeserializedEquals(
+                LEGACY_CONJURE_LOCK_REQUEST_FILE, DEFAULT_CONJURE_LOCK_REQUEST, ConjureLockRequest.class);
+    }
+
+    @Test
+    public void presentMetadataSerializesDeserializes() {
+        ConjureLockRequest requestWithMetadata = ConjureLockRequest.builder()
+                .from(DEFAULT_CONJURE_LOCK_REQUEST)
+                .metadata(CONJURE_LOCK_REQUEST_METADATA)
+                .build();
+        assertSerializedEquals(requestWithMetadata, WITH_METADATA_FILE);
+        assertDeserializedEquals(WITH_METADATA_FILE, requestWithMetadata, ConjureLockRequest.class);
+    }
+
+    @Test
+    public void newServerCanHandleMissingMetadata() {
+        assertDeserializedEquals(
+                LEGACY_CONJURE_LOCK_REQUEST_FILE, DEFAULT_CONJURE_LOCK_REQUEST, ConjureLockRequest.class);
+    }
+
+    @Test
+    public void oldServerCanHandlePresentMetadata() {
+        // Because we use the Conjure configuration "strictObjects = false", our Conjure objects actually ignore
+        // unknown properties, even on the server side.
+        assertDeserializedEquals(WITH_METADATA_FILE, LEGACY_CONJURE_LOCK_REQUEST, LegacyConjureLockRequest.class);
+    }
+
+    private static <T> void assertSerializedEquals(T object, String jsonFileName) {
+        try {
+            Path path = getJsonPath(jsonFileName);
+            if (REWRITE_JSON_BLOBS) {
+                SERIALIZATION_MAPPER.writeValue(path.toFile(), object);
+            }
+            String serialized = SERIALIZATION_MAPPER.writeValueAsString(object);
+            assertThat(VERIFYING_MAPPER.readTree(serialized))
+                    .as("Serialization yields semantically identical JSON representation")
+                    .isEqualTo(VERIFYING_MAPPER.readTree(Files.readString(path)));
+        } catch (IOException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private static <T> void assertDeserializedEquals(String jsonFileName, T object, Class<T> clazz) {
+        try {
+            assertThat(DESERIALIZATION_MAPPER.readValue(Files.readString(getJsonPath(jsonFileName)), clazz))
+                    .as("Deserialization yields identical object")
+                    .isEqualTo(object);
+        } catch (IOException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private static Path getJsonPath(String jsonFileName) {
+        return Paths.get(BASE, jsonFileName + ".json");
+    }
+}u}(js (4b6b7e1a40067dbc572e6bd05e38e2b7a38abef2j Ztimelock-api/src/test/java/com/palantir/atlasdb/timelock/api/LegacyConjureLockRequest.javaj addedj M
j K j M
j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FLegacyConjureLockRequest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FLegacyConjureLockRequest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FLegacyConjureLockRequest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j Xk(  @@ -0,0 +1,266 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock.api;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonSetter;
+import com.fasterxml.jackson.annotation.Nulls;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.palantir.conjure.java.lib.internal.ConjureCollections;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.Safe;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.Unsafe;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.LinkedHashSet;
+import java.util.List;
+import java.util.Optional;
+import java.util.Set;
+import java.util.UUID;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+import javax.annotation.processing.Generated;
+
+// Copy of Conjure-generated file and prefixed with "Legcacy" to avoid conflicts
+@Unsafe
+@JsonDeserialize(builder = LegacyConjureLockRequest.Builder.class)
+@Generated("com.palantir.conjure.java.types.BeanGenerator")
+public final class LegacyConjureLockRequest {
+    private final UUID requestId;
+
+    private final Set<ConjureLockDescriptor> lockDescriptors;
+
+    private final int acquireTimeoutMs;
+
+    private final Optional<String> clientDescription;
+
+    private int memoizedHashCode;
+
+    private LegacyConjureLockRequest(
+            UUID requestId,
+            Set<ConjureLockDescriptor> lockDescriptors,
+            int acquireTimeoutMs,
+            Optional<String> clientDescription) {
+        validateFields(requestId, lockDescriptors, clientDescription);
+        this.requestId = requestId;
+        this.lockDescriptors = Collections.unmodifiableSet(lockDescriptors);
+        this.acquireTimeoutMs = acquireTimeoutMs;
+        this.clientDescription = clientDescription;
+    }
+
+    @JsonProperty("requestId")
+    @Safe
+    public UUID getRequestId() {
+        return this.requestId;
+    }
+
+    @JsonProperty("lockDescriptors")
+    public Set<ConjureLockDescriptor> getLockDescriptors() {
+        return this.lockDescriptors;
+    }
+
+    @JsonProperty("acquireTimeoutMs")
+    @Safe
+    public int getAcquireTimeoutMs() {
+        return this.acquireTimeoutMs;
+    }
+
+    @JsonProperty("clientDescription")
+    @Unsafe
+    public Optional<String> getClientDescription() {
+        return this.clientDescription;
+    }
+
+    @Override
+    public boolean equals(@Nullable Object other) {
+        return this == other
+                || (other instanceof LegacyConjureLockRequest && equalTo((LegacyConjureLockRequest) other));
+    }
+
+    private boolean equalTo(LegacyConjureLockRequest other) {
+        if (this.memoizedHashCode != 0
+                && other.memoizedHashCode != 0
+                && this.memoizedHashCode != other.memoizedHashCode) {
+            return false;
+        }
+        return this.requestId.equals(other.requestId)
+                && this.lockDescriptors.equals(other.lockDescriptors)
+                && this.acquireTimeoutMs == other.acquireTimeoutMs
+                && this.clientDescription.equals(other.clientDescription);
+    }
+
+    @Override
+    public int hashCode() {
+        int result = memoizedHashCode;
+        if (result == 0) {
+            int hash = 1;
+            hash = 31 * hash + this.requestId.hashCode();
+            hash = 31 * hash + this.lockDescriptors.hashCode();
+            hash = 31 * hash + this.acquireTimeoutMs;
+            hash = 31 * hash + this.clientDescription.hashCode();
+            result = hash;
+            memoizedHashCode = result;
+        }
+        return result;
+    }
+
+    @Override
+    @Unsafe
+    public String toString() {
+        return "OldConjureLockRequest{requestId: " + requestId + ", lockDescriptors: " + lockDescriptors
+                + ", acquireTimeoutMs: " + acquireTimeoutMs + ", clientDescription: " + clientDescription + '}';
+    }
+
+    private static void validateFields(
+            UUID requestId, Set<ConjureLockDescriptor> lockDescriptors, Optional<String> clientDescription) {
+        List<String> missingFields = null;
+        missingFields = addFieldIfMissing(missingFields, requestId, "requestId");
+        missingFields = addFieldIfMissing(missingFields, lockDescriptors, "lockDescriptors");
+        missingFields = addFieldIfMissing(missingFields, clientDescription, "clientDescription");
+        if (missingFields != null) {
+            throw new SafeIllegalArgumentException(
+                    "Some required fields have not been set", SafeArg.of("missingFields", missingFields));
+        }
+    }
+
+    private static List<String> addFieldIfMissing(List<String> prev, Object fieldValue, String fieldName) {
+        List<String> missingFields = prev;
+        if (fieldValue == null) {
+            if (missingFields == null) {
+                missingFields = new ArrayList<>(3);
+            }
+            missingFields.add(fieldName);
+        }
+        return missingFields;
+    }
+
+    public static Builder builder() {
+        return new Builder();
+    }
+
+    @Generated("com.palantir.conjure.java.types.BeanBuilderGenerator")
+    @JsonIgnoreProperties(ignoreUnknown = true)
+    public static final class Builder {
+        boolean _buildInvoked;
+
+        private @Safe UUID requestId;
+
+        private Set<ConjureLockDescriptor> lockDescriptors = new LinkedHashSet<>();
+
+        private @Safe int acquireTimeoutMs;
+
+        private Optional<@Unsafe String> clientDescription = Optional.empty();
+
+        private boolean _acquireTimeoutMsInitialized = false;
+
+        private Builder() {}
+
+        public Builder from(LegacyConjureLockRequest other) {
+            checkNotBuilt();
+            requestId(other.getRequestId());
+            lockDescriptors(other.getLockDescriptors());
+            acquireTimeoutMs(other.getAcquireTimeoutMs());
+            clientDescription(other.getClientDescription());
+            return this;
+        }
+
+        @JsonSetter("requestId")
+        public Builder requestId(@Nonnull @Safe UUID requestId) {
+            checkNotBuilt();
+            this.requestId = Preconditions.checkNotNull(requestId, "requestId cannot be null");
+            return this;
+        }
+
+        @JsonSetter(value = "lockDescriptors", nulls = Nulls.SKIP)
+        public Builder lockDescriptors(@Nonnull Iterable<ConjureLockDescriptor> lockDescriptors) {
+            checkNotBuilt();
+            this.lockDescriptors = ConjureCollections.newLinkedHashSet(
+                    Preconditions.checkNotNull(lockDescriptors, "lockDescriptors cannot be null"));
+            return this;
+        }
+
+        public Builder addAllLockDescriptors(@Nonnull Iterable<ConjureLockDescriptor> lockDescriptors) {
+            checkNotBuilt();
+            ConjureCollections.addAll(
+                    this.lockDescriptors,
+                    Preconditions.checkNotNull(lockDescriptors, "lockDescriptors cannot be null"));
+            return this;
+        }
+
+        public Builder lockDescriptors(ConjureLockDescriptor lockDescriptors) {
+            checkNotBuilt();
+            this.lockDescriptors.add(lockDescriptors);
+            return this;
+        }
+
+        @JsonSetter("acquireTimeoutMs")
+        public Builder acquireTimeoutMs(@Safe int acquireTimeoutMs) {
+            checkNotBuilt();
+            this.acquireTimeoutMs = acquireTimeoutMs;
+            this._acquireTimeoutMsInitialized = true;
+            return this;
+        }
+
+        @JsonSetter(value = "clientDescription", nulls = Nulls.SKIP)
+        public Builder clientDescription(@Nonnull Optional<@Unsafe String> clientDescription) {
+            checkNotBuilt();
+            this.clientDescription = Preconditions.checkNotNull(clientDescription, "clientDescription cannot be null");
+            return this;
+        }
+
+        public Builder clientDescription(@Nonnull @Unsafe String clientDescription) {
+            checkNotBuilt();
+            this.clientDescription =
+                    Optional.of(Preconditions.checkNotNull(clientDescription, "clientDescription cannot be null"));
+            return this;
+        }
+
+        private void validatePrimitiveFieldsHaveBeenInitialized() {
+            List<String> missingFields = null;
+            missingFields = addFieldIfMissing(missingFields, _acquireTimeoutMsInitialized, "acquireTimeoutMs");
+            if (missingFields != null) {
+                throw new SafeIllegalArgumentException(
+                        "Some required fields have not been set", SafeArg.of("missingFields", missingFields));
+            }
+        }
+
+        private static List<String> addFieldIfMissing(List<String> prev, boolean initialized, String fieldName) {
+            List<String> missingFields = prev;
+            if (!initialized) {
+                if (missingFields == null) {
+                    missingFields = new ArrayList<>(1);
+                }
+                missingFields.add(fieldName);
+            }
+            return missingFields;
+        }
+
+        public LegacyConjureLockRequest build() {
+            checkNotBuilt();
+            this._buildInvoked = true;
+            validatePrimitiveFieldsHaveBeenInitialized();
+            return new LegacyConjureLockRequest(requestId, lockDescriptors, acquireTimeoutMs, clientDescription);
+        }
+
+        private void checkNotBuilt() {
+            Preconditions.checkState(!_buildInvoked, "Build has already been called");
+        }
+    }
+}u}(js (e1b7813afcfedd61b6686b1bab138e5f151ea739j Ltimelock-api/src/test/resources/conjure-lock-request-wire-format/legacy.jsonj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Flegacy.jsonj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Flegacy.jsonj https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Flegacy.json?ref=3edc529e99246718dbc7e0f38df32119f57e1904j @@ -0,0 +1,6 @@
+{
+  "requestId" : "00000000-0000-0539-0000-00000000002a",
+  "lockDescriptors" : [ "YWJj", "ZGVm", "Z2hp", "amts" ],
+  "acquireTimeoutMs" : 100,
+  "clientDescription" : "client: test, thread: test"
+}
\ No newline at end of fileu}(js (56e0e9f551398a56e8c56e758c6eab6f6d5a6072j Stimelock-api/src/test/resources/conjure-lock-request-wire-format/with-metadata.jsonj addedj K%j K j K%j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fwith-metadata.jsonj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fwith-metadata.jsonj https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fwith-metadata.json?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -0,0 +1,37 @@
+{
+  "requestId" : "00000000-0000-0539-0000-00000000002a",
+  "lockDescriptors" : [ "YWJj", "ZGVm", "Z2hp", "amts" ],
+  "acquireTimeoutMs" : 100,
+  "clientDescription" : "client: test, thread: test",
+  "metadata" : {
+    "indexToChangeMetadata" : {
+      "0" : {
+        "type" : "unchanged",
+        "unchanged" : { }
+      },
+      "1" : {
+        "type" : "updated",
+        "updated" : {
+          "oldValue" : "b2xk",
+          "newValue" : "bmV3"
+        }
+      },
+      "2" : {
+        "type" : "deleted",
+        "deleted" : {
+          "oldValue" : "ZGVsZXRlZA=="
+        }
+      },
+      "3" : {
+        "type" : "created",
+        "created" : {
+          "newValue" : "Y3JlYXRlZA=="
+        }
+      }
+    },
+    "lockListChecksum" : {
+      "typeId" : 0,
+      "value" : "dGVzdC1jaGVja3N1bS12YWx1ZQ=="
+    }
+  }
+}
\ No newline at end of fileu}(js (a31b55bb26484c1c29dbf7dfa1fb463fb2596558j timelock-impl/build.gradlej modifiedj Kj K j Kj nhttps://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fbuild.gradlej mhttps://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fbuild.gradle?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -1,4 +1,5 @@
 apply plugin: 'org.unbroken-dome.test-sets'
+apply plugin: 'com.palantir.metric-schema'
 
 apply from: "../gradle/shared.gradle"
 apply from: "../gradle/tests.gradle"
@@ -102,3 +103,8 @@ dependencies {
     testAnnotationProcessor 'org.immutables:value'
     testCompileOnly 'org.immutables:value::annotations'
 }
+
+license {
+    exclude '**/RequestMetrics.java'
+    exclude '**/BufferMetrics.java'
+}u}(js (9621a8f2b663bdf3ad29791637809be64ba5a328j Wtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/AsyncTimelockServiceImpl.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X
  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.timelock;
 
+import com.codahale.metrics.Histogram;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.SettableFuture;
@@ -29,6 +30,7 @@
 import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.atlasdb.timelock.lock.TimeLimit;
 import com.palantir.atlasdb.timelock.lock.watch.ValueAndLockWatchStateUpdate;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
 import com.palantir.atlasdb.timelock.transaction.timestamp.DelegatingClientAwareManagedTimestampService;
 import com.palantir.atlasdb.timelock.transaction.timestamp.LeadershipGuardedClientAwareManagedTimestampService;
 import com.palantir.lock.LockDescriptor;
@@ -48,6 +50,7 @@
 import com.palantir.lock.v2.TimestampAndPartition;
 import com.palantir.lock.v2.WaitForLocksRequest;
 import com.palantir.lock.v2.WaitForLocksResponse;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchStateUpdate;
 import com.palantir.lock.watch.LockWatchVersion;
 import com.palantir.timestamp.ManagedTimestampService;
@@ -61,9 +64,14 @@ public class AsyncTimelockServiceImpl implements AsyncTimelockService {
     private final AsyncLockService lockService;
     private final LeadershipGuardedClientAwareManagedTimestampService timestampService;
     private final LockLog lockLog;
+    private final Histogram changeMetadataHistogram;
 
     public AsyncTimelockServiceImpl(
-            AsyncLockService lockService, ManagedTimestampService timestampService, LockLog lockLog) {
+            AsyncLockService lockService,
+            ManagedTimestampService timestampService,
+            LockLog lockLog,
+            RequestMetrics metadataMetrics) {
+        this.changeMetadataHistogram = metadataMetrics.changeMetadata();
         this.lockService = lockService;
         this.timestampService = new LeadershipGuardedClientAwareManagedTimestampService(
                 DelegatingClientAwareManagedTimestampService.createDefault(timestampService));
@@ -101,7 +109,13 @@ public long getImmutableTimestamp() {
     @Override
     public ListenableFuture<LockResponseV2> lock(IdentifiedLockRequest request) {
         AsyncResult<Leased<LockToken>> result = lockService.lock(
-                request.getRequestId(), request.getLockDescriptors(), TimeLimit.of(request.getAcquireTimeoutMs()));
+                request.getRequestId(),
+                request.getLockDescriptors(),
+                TimeLimit.of(request.getAcquireTimeoutMs()),
+                request.getMetadata());
+        changeMetadataHistogram.update(request.getMetadata()
+                .map(metadata -> metadata.lockDescriptorToChangeMetadata().size())
+                .orElse(0));
         lockLog.registerRequest(request, result);
         SettableFuture<LockResponseV2> response = SettableFuture.create();
         result.onComplete(() -> {
@@ -274,8 +288,9 @@ public <T> ValueAndLockWatchStateUpdate<T> runTask(Optional<LockWatchVersion> la
     }
 
     @Override
-    public void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token) {
-        lockService.getLockWatchingService().registerLock(locksTakenOut, token);
+    public void registerLock(
+            Set<LockDescriptor> locksTakenOut, LockToken token, Optional<LockRequestMetadata> metadata) {
+        lockService.getLockWatchingService().registerLock(locksTakenOut, token, metadata);
     }
 
     @Overrideu}(js (b8c7fe17976b2dba7ec9f678d87a104b61a8622dj Vtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/ConjureTimelockResource.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FConjureTimelockResource.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FConjureTimelockResource.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FConjureTimelockResource.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.timelock;
 
 import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Sets;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
@@ -68,9 +69,13 @@
 import com.palantir.lock.v2.RefreshLockResponseV2;
 import com.palantir.lock.v2.WaitForLocksRequest;
 import com.palantir.lock.v2.WaitForLocksResponse;
+import com.palantir.lock.watch.ConjureLockRequestMetadataUtils;
+import com.palantir.lock.watch.ConjureLockRequestMetadataUtils.ConjureMetadataConversionResult;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchVersion;
 import com.palantir.timestamp.TimestampRange;
 import com.palantir.tokens.auth.AuthHeader;
+import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.function.Function;
@@ -145,11 +150,19 @@ public ListenableFuture<LeaderTime> leaderTime(AuthHeader authHeader, String nam
     public ListenableFuture<ConjureLockResponse> lock(
             AuthHeader authHeader, String namespace, ConjureLockRequest request) {
         return handleExceptions(() -> {
+            List<LockDescriptor> lockDescriptors = fromConjureLockDescriptors(request.getLockDescriptors());
+            Optional<LockRequestMetadata> metadata = request.getMetadata()
+                    .map(conjureMetadata -> ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(
+                            ConjureMetadataConversionResult.builder()
+                                    .conjureMetadata(conjureMetadata)
+                                    .lockList(lockDescriptors)
+                                    .build()));
             IdentifiedLockRequest lockRequest = ImmutableIdentifiedLockRequest.builder()
-                    .lockDescriptors(fromConjureLockDescriptors(request.getLockDescriptors()))
+                    .lockDescriptors(lockDescriptors)
                     .clientDescription(request.getClientDescription())
                     .requestId(request.getRequestId())
                     .acquireTimeoutMs(request.getAcquireTimeoutMs())
+                    .metadata(metadata)
                     .build();
             ListenableFuture<LockResponseV2> tokenFuture =
                     forNamespace(namespace).lock(lockRequest);
@@ -182,12 +195,13 @@ public ListenableFuture<ConjureWaitForLocksResponse> waitForLocks(
         });
     }
 
-    private static Set<LockDescriptor> fromConjureLockDescriptors(Set<ConjureLockDescriptor> lockDescriptors) {
-        Set<LockDescriptor> descriptors = Sets.newHashSetWithExpectedSize(lockDescriptors.size());
+    private static List<LockDescriptor> fromConjureLockDescriptors(List<ConjureLockDescriptor> lockDescriptors) {
+        ImmutableList.Builder<LockDescriptor> descriptors =
+                ImmutableList.builderWithExpectedSize(lockDescriptors.size());
         for (ConjureLockDescriptor descriptor : lockDescriptors) {
             descriptors.add(ByteArrayLockDescriptor.of(descriptor.get().asNewByteArray()));
         }
-        return descriptors;
+        return descriptors.build();
     }
 
     @Overrideu}(js (d8fdf17d283ce2a18ecc0180c5fd05954b43ce29j Ttimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/AsyncLockService.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -19,10 +19,12 @@
 import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingService;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingServiceImpl;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LeaderTime;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.v2.RefreshLockResponseV2;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.io.Closeable;
@@ -57,12 +59,15 @@ public class AsyncLockService implements Closeable {
      * @return an asynchronous lock service
      */
     public static AsyncLockService createDefault(
-            LockLog lockLog, ScheduledExecutorService reaperExecutor, ScheduledExecutorService timeoutExecutor) {
+            LockLog lockLog,
+            ScheduledExecutorService reaperExecutor,
+            ScheduledExecutorService timeoutExecutor,
+            BufferMetrics bufferMetrics) {
 
         LeaderClock clock = LeaderClock.create();
 
         HeldLocksCollection heldLocks = HeldLocksCollection.create(clock);
-        LockWatchingService lockWatchingService = new LockWatchingServiceImpl(heldLocks, clock.id());
+        LockWatchingService lockWatchingService = new LockWatchingServiceImpl(heldLocks, clock.id(), bufferMetrics);
         LockAcquirer lockAcquirer = new LockAcquirer(lockLog, timeoutExecutor, clock, lockWatchingService);
 
         return new AsyncLockService(
@@ -117,7 +122,16 @@ private void scheduleExpiredLockReaper() {
     }
 
     public AsyncResult<Leased<LockToken>> lock(UUID requestId, Set<LockDescriptor> lockDescriptors, TimeLimit timeout) {
-        return heldLocks.getExistingOrAcquire(requestId, () -> acquireLocks(requestId, lockDescriptors, timeout));
+        return lock(requestId, lockDescriptors, timeout, Optional.empty());
+    }
+
+    public AsyncResult<Leased<LockToken>> lock(
+            UUID requestId,
+            Set<LockDescriptor> lockDescriptors,
+            TimeLimit timeout,
+            Optional<LockRequestMetadata> metadata) {
+        return heldLocks.getExistingOrAcquire(
+                requestId, () -> acquireLocks(requestId, lockDescriptors, timeout, metadata));
     }
 
     public AsyncResult<Leased<LockToken>> lockImmutableTimestamp(UUID requestId, long timestamp) {
@@ -137,9 +151,12 @@ public Optional<Long> getImmutableTimestamp() {
     }
 
     private AsyncResult<HeldLocks> acquireLocks(
-            UUID requestId, Set<LockDescriptor> lockDescriptors, TimeLimit timeout) {
+            UUID requestId,
+            Set<LockDescriptor> lockDescriptors,
+            TimeLimit timeout,
+            Optional<LockRequestMetadata> metadata) {
         OrderedLocks orderedLocks = locks.getAll(lockDescriptors);
-        return lockAcquirer.acquireLocks(requestId, orderedLocks, timeout);
+        return lockAcquirer.acquireLocks(requestId, orderedLocks, timeout, metadata);
     }
 
     private AsyncResult<Void> awaitLocks(UUID requestId, Set<LockDescriptor> lockDescriptors, TimeLimit timeout) {u}(js (3c957b003aa7c8f4101a6b55616b54707ad01da5j Mtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/HeldLocks.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocks.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocks.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocks.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -21,7 +21,9 @@
 import com.palantir.common.time.NanoTime;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.LockRequestMetadata;
 import java.util.Collection;
+import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.function.Supplier;
@@ -60,18 +62,28 @@ public static HeldLocks create(
             UUID requestId,
             LeaderClock leaderClock,
             LockWatchingService lockWatchingService) {
+        return create(lockLog, acquiredLocks, requestId, leaderClock, lockWatchingService, Optional.empty());
+    }
+
+    public static HeldLocks create(
+            LockLog lockLog,
+            Collection<AsyncLock> acquiredLocks,
+            UUID requestId,
+            LeaderClock leaderClock,
+            LockWatchingService lockWatchingService,
+            Optional<LockRequestMetadata> metadata) {
         HeldLocks locks = new HeldLocks(
                 lockLog,
                 acquiredLocks,
                 requestId,
                 new LeaseExpirationTimer(() -> leaderClock.time().currentTime()),
                 lockWatchingService);
-        locks.registerLock();
+        locks.registerLock(metadata);
         return locks;
     }
 
-    private void registerLock() {
-        lockWatchingService.registerLock(descriptors.get(), token);
+    private void registerLock(Optional<LockRequestMetadata> metadata) {
+        lockWatchingService.registerLock(descriptors.get(), token, metadata);
     }
 
     /**u      }(js (030591fe1a8a0d3b07402f1fac8d196fea900762j Ptimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/LockAcquirer.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FLockAcquirer.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FLockAcquirer.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FLockAcquirer.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X0  @@ -17,9 +17,11 @@
 
 import com.google.common.base.Throwables;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingService;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.Optional;
 import java.util.UUID;
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.concurrent.TimeUnit;
@@ -46,9 +48,14 @@ public LockAcquirer(
     }
 
     public AsyncResult<HeldLocks> acquireLocks(UUID requestId, OrderedLocks locks, TimeLimit timeout) {
+        return acquireLocks(requestId, locks, timeout, Optional.empty());
+    }
+
+    public AsyncResult<HeldLocks> acquireLocks(
+            UUID requestId, OrderedLocks locks, TimeLimit timeout, Optional<LockRequestMetadata> metadata) {
         return new Acquisition(requestId, locks, timeout, lock -> lock.lock(requestId))
                 .execute()
-                .map(ignored -> HeldLocks.create(lockLog, locks.get(), requestId, leaderClock, lockWatcher));
+                .map(ignored -> HeldLocks.create(lockLog, locks.get(), requestId, leaderClock, lockWatcher, metadata));
     }
 
     public AsyncResult<Void> waitForLocks(UUID requestId, OrderedLocks locks, TimeLimit timeout) {u}(js (5cce128c5d57690a5875d483a761058f6a0b4ceej etimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/ArrayLockEventSlidingWindow.javaj modifiedj K0j Kj K2j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindow.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindow.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindow.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -16,9 +16,15 @@
 
 package com.palantir.atlasdb.timelock.lock.watch;
 
+import com.codahale.metrics.Counter;
 import com.google.common.math.LongMath;
 import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
+import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
+import com.palantir.lock.watch.UnlockEvent;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Optional;
@@ -29,10 +35,14 @@ public class ArrayLockEventSlidingWindow {
     private final LockWatchEvent[] buffer;
     private final int maxSize;
     private long nextSequence = 0;
+    private final Counter changeMetadataCounter;
+    private final Counter eventsWithMetadataCounter;
 
-    ArrayLockEventSlidingWindow(int maxSize) {
+    ArrayLockEventSlidingWindow(int maxSize, BufferMetrics bufferMetrics) {
         this.buffer = new LockWatchEvent[maxSize];
         this.maxSize = maxSize;
+        this.changeMetadataCounter = bufferMetrics.changeMetadata();
+        this.eventsWithMetadataCounter = bufferMetrics.eventsWithMetadata();
     }
 
     long lastVersion() {
@@ -41,10 +51,27 @@ long lastVersion() {
 
     void add(LockWatchEvent.Builder eventBuilder) {
         LockWatchEvent event = eventBuilder.build(nextSequence);
-        buffer[LongMath.mod(nextSequence, maxSize)] = event;
+        int index = LongMath.mod(nextSequence, maxSize);
+
+        Optional.ofNullable(buffer[index])
+                .flatMap(replacedEvent -> replacedEvent.accept(LockWatchEventMetadataVisitor.INSTANCE))
+                .ifPresent(this::decrementMetadataCounters);
+        event.accept(LockWatchEventMetadataVisitor.INSTANCE).ifPresent(this::incrementMetadataCounters);
+
+        buffer[index] = event;
         nextSequence++;
     }
 
+    private void incrementMetadataCounters(LockRequestMetadata metadata) {
+        changeMetadataCounter.inc(metadata.lockDescriptorToChangeMetadata().size());
+        eventsWithMetadataCounter.inc();
+    }
+
+    private void decrementMetadataCounters(LockRequestMetadata metadata) {
+        changeMetadataCounter.dec(metadata.lockDescriptorToChangeMetadata().size());
+        eventsWithMetadataCounter.dec();
+    }
+
     public Optional<List<LockWatchEvent>> getNextEvents(long version) {
         if (versionInTheFuture(version) || versionTooOld(version)) {
             return Optional.empty();
@@ -72,4 +99,23 @@ private boolean versionInTheFuture(long version) {
     private boolean versionTooOld(long version) {
         return lastVersion() - version > maxSize;
     }
+
+    private enum LockWatchEventMetadataVisitor implements LockWatchEvent.Visitor<Optional<LockRequestMetadata>> {
+        INSTANCE;
+
+        @Override
+        public Optional<LockRequestMetadata> visit(LockEvent lockEvent) {
+            return lockEvent.metadata();
+        }
+
+        @Override
+        public Optional<LockRequestMetadata> visit(UnlockEvent unlockEvent) {
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<LockRequestMetadata> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
+            return Optional.empty();
+        }
+    }
 }u}(js (e57475bea484a97604fa999cf8ab4593fb78af9bj Vtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLog.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLog.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLog.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLog.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X[  @@ -18,6 +18,7 @@
 
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchStateUpdate;
 import com.palantir.lock.watch.LockWatchVersion;
 import java.util.Optional;
@@ -29,7 +30,11 @@ public interface LockEventLog {
 
     <T> ValueAndLockWatchStateUpdate<T> runTask(Optional<LockWatchVersion> lastKnownVersion, Supplier<T> task);
 
-    void logLock(Set<LockDescriptor> locksTakenOut, LockToken lockToken);
+    default void logLock(Set<LockDescriptor> locksTakenOut, LockToken lockToken) {
+        logLock(locksTakenOut, lockToken, Optional.empty());
+    }
+
+    void logLock(Set<LockDescriptor> locksTakenOut, LockToken lockToken, Optional<LockRequestMetadata> metadata);
 
     void logUnlock(Set<LockDescriptor> locksUnlocked);
 u}(js (bca869f56d71be63d77a6b2c8b65c3bbe2af41c8j Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImpl.javaj modifiedj K
j Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -19,9 +19,11 @@
 import com.google.common.collect.RangeSet;
 import com.palantir.atlasdb.timelock.lock.AsyncLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchReferences.LockWatchReference;
 import com.palantir.lock.watch.LockWatchStateUpdate;
@@ -37,12 +39,17 @@
 
 public class LockEventLogImpl implements LockEventLog {
     private final UUID logId;
-    private final ArrayLockEventSlidingWindow slidingWindow = new ArrayLockEventSlidingWindow(1000);
+    private final ArrayLockEventSlidingWindow slidingWindow;
     private final Supplier<LockWatches> watchesSupplier;
     private final HeldLocksCollection heldLocksCollection;
 
-    LockEventLogImpl(UUID logId, Supplier<LockWatches> watchesSupplier, HeldLocksCollection heldLocksCollection) {
+    LockEventLogImpl(
+            UUID logId,
+            Supplier<LockWatches> watchesSupplier,
+            HeldLocksCollection heldLocksCollection,
+            BufferMetrics bufferMetrics) {
         this.logId = logId;
+        this.slidingWindow = new ArrayLockEventSlidingWindow(1000, bufferMetrics);
         this.watchesSupplier = watchesSupplier;
         this.heldLocksCollection = heldLocksCollection;
     }
@@ -61,8 +68,10 @@ public synchronized <T> ValueAndLockWatchStateUpdate<T> runTask(
     }
 
     @Override
-    public synchronized void logLock(Set<LockDescriptor> locksTakenOut, LockToken lockToken) {
-        slidingWindow.add(LockEvent.builder(locksTakenOut, lockToken));
+    public synchronized void logLock(
+            Set<LockDescriptor> locksTakenOut, LockToken lockToken, Optional<LockRequestMetadata> metadata) {
+
+        slidingWindow.add(LockEvent.builder(locksTakenOut, lockToken, metadata));
     }
 
     @Overrideu}(js (d34c1794b33ad9b9490743a42f40f6bfe58edd2fj ]timelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingService.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingService.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingService.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingService.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -19,6 +19,7 @@
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.client.LockWatchStarter;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchStateUpdate;
 import com.palantir.lock.watch.LockWatchVersion;
 import java.util.Optional;
@@ -30,7 +31,11 @@ public interface LockWatchingService extends LockWatchStarter {
 
     <T> ValueAndLockWatchStateUpdate<T> runTask(Optional<LockWatchVersion> lastKnownVersion, Supplier<T> task);
 
-    void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token);
+    default void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token) {
+        registerLock(locksTakenOut, token, Optional.empty());
+    }
+
+    void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token, Optional<LockRequestMetadata> metadata);
 
     void registerUnlock(Set<LockDescriptor> locksUnlocked);
 }u}(js (64e2e75476f17ef9c28864338c16eb43bc5cd443j atimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javaj modifiedj K<j K
j KFj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -22,9 +22,13 @@
 import com.google.common.collect.TreeRangeSet;
 import com.palantir.atlasdb.timelock.api.LockWatchRequest;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LeadershipId;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchReferences;
 import com.palantir.lock.watch.LockWatchReferences.LockWatchReference;
 import com.palantir.lock.watch.LockWatchStateUpdate;
@@ -34,12 +38,14 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.HashSet;
+import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.concurrent.locks.ReadWriteLock;
 import java.util.concurrent.locks.ReentrantReadWriteLock;
+import java.util.function.BiConsumer;
 import java.util.function.Consumer;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
@@ -67,13 +73,14 @@ public class LockWatchingServiceImpl implements LockWatchingService {
     private final AtomicReference<LockWatches> watches = new AtomicReference<>(LockWatches.create());
     private final ReadWriteLock watchesLock = new ReentrantReadWriteLock(true);
 
-    public LockWatchingServiceImpl(HeldLocksCollection heldLocksCollection, LeadershipId leadershipId) {
-        this(leadershipId.id(), heldLocksCollection);
+    public LockWatchingServiceImpl(
+            HeldLocksCollection heldLocksCollection, LeadershipId leadershipId, BufferMetrics lockWatchMetrics) {
+        this(leadershipId.id(), heldLocksCollection, lockWatchMetrics);
     }
 
     @VisibleForTesting
-    LockWatchingServiceImpl(UUID logId, HeldLocksCollection heldLocksCollection) {
-        this.lockEventLog = new LockEventLogImpl(logId, watches::get, heldLocksCollection);
+    LockWatchingServiceImpl(UUID logId, HeldLocksCollection heldLocksCollection, BufferMetrics lockWatchMetrics) {
+        this.lockEventLog = new LockEventLogImpl(logId, watches::get, heldLocksCollection, lockWatchMetrics);
     }
 
     @Override
@@ -104,8 +111,12 @@ public <T> ValueAndLockWatchStateUpdate<T> runTask(Optional<LockWatchVersion> la
     }
 
     @Override
-    public void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token) {
-        runIfDescriptorsMatchLockWatches(locksTakenOut, filteredLocks -> lockEventLog.logLock(filteredLocks, token));
+    public void registerLock(
+            Set<LockDescriptor> locksTakenOut, LockToken token, Optional<LockRequestMetadata> metadata) {
+        runIfDescriptorsMatchLockWatchesWithMetadata(
+                locksTakenOut,
+                metadata,
+                (filteredLocks, filteredMetadata) -> lockEventLog.logLock(filteredLocks, token, filteredMetadata));
     }
 
     @Override
@@ -147,16 +158,55 @@ private void logLockWatchEvent(LockWatches newWatches) {
 
     private void runIfDescriptorsMatchLockWatches(
             Set<LockDescriptor> unfiltered, Consumer<Set<LockDescriptor>> consumer) {
+        runIfDescriptorsMatchLockWatchesWithMetadata(
+                unfiltered, Optional.empty(), (lockDescriptors, unused) -> consumer.accept(lockDescriptors));
+    }
+
+    private void runIfDescriptorsMatchLockWatchesWithMetadata(
+            Set<LockDescriptor> unfilteredLocks,
+            Optional<LockRequestMetadata> unfilteredMetadata,
+            BiConsumer<Set<LockDescriptor>, Optional<LockRequestMetadata>> biConsumer) {
         watchesLock.readLock().lock();
         try {
             RangeSet<LockDescriptor> ranges = watches.get().ranges();
-            Set<LockDescriptor> filtered =
-                    unfiltered.stream().filter(ranges::contains).collect(Collectors.toSet());
-            if (!filtered.isEmpty()) {
-                consumer.accept(filtered);
+            Set<LockDescriptor> filteredLocks =
+                    unfilteredLocks.stream().filter(ranges::contains).collect(Collectors.toSet());
+            if (filteredLocks.isEmpty()) {
+                return;
             }
+            // Filtering metadata after deciding if we should even proceed might save us some computation
+            biConsumer.accept(
+                    filteredLocks,
+                    filterMetadataBasedOnFilteredLocks(unfilteredLocks, filteredLocks, unfilteredMetadata));
         } finally {
             watchesLock.readLock().unlock();
         }
     }
+
+    // For an efficient encoding, we expect that metadata is never attached to a lock descriptor that is not contained
+    // in the original request, so filtering metadata based on the already filtered locks is sufficient and even
+    // enforces this invariant. It is also cheaper than calling RangeSet::contains.
+    // We assert that the invariant holds for non-production code to catch any attempts of violating that invariant
+    // early.
+    @SuppressWarnings("BadAssert")
+    private static Optional<LockRequestMetadata> filterMetadataBasedOnFilteredLocks(
+            Set<LockDescriptor> unfilteredLocks,
+            Set<LockDescriptor> filteredLocks,
+            Optional<LockRequestMetadata> unfilteredMetadata) {
+        return unfilteredMetadata
+                .map(LockRequestMetadata::lockDescriptorToChangeMetadata)
+                .flatMap(unfilteredLockMetadata -> {
+                    Map<LockDescriptor, ChangeMetadata> filteredLockMetadata = KeyedStream.ofEntries(
+                                    unfilteredLockMetadata.entrySet().stream())
+                            .filterKeys(lockDescriptor -> {
+                                assert unfilteredLocks.contains(lockDescriptor) : "Unknown lock descriptor in metadata";
+                                return filteredLocks.contains(lockDescriptor);
+                            })
+                            .collectToMap();
+                    if (filteredLockMetadata.isEmpty()) {
+                        return Optional.empty();
+                    }
+                    return Optional.of(LockRequestMetadata.of(filteredLockMetadata));
+                });
+    }
 }u}(js (1bda947c93dfade6c8d6e97379c8ca0fa7fed706j .timelock-impl/src/main/metrics/lockwatches.ymlj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Flockwatches.ymlj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Flockwatches.ymlj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Flockwatches.yml?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -0,0 +1,20 @@
+options:
+  javaPackage: 'com.palantir.atlasdb.timelock.lockwatches'
+
+namespaces:
+  request:
+    docs: Metrics tracking LockWatch-related things in requests received by TimeLock
+    metrics:
+      changeMetadata:
+        docs: Number of change metadata objects contained in a lock request
+        type: histogram
+  buffer:
+    docs: Metrics tracking things currently stored in the LockWatchEvent buffer (sliding window)
+    metrics:
+      eventsWithMetadata:
+        docs: Number of events currently stored in the buffer that have non-absent metadata
+        type: counter
+      changeMetadata:
+        docs: Total number of change metadata objects currently stored in the buffer across all events
+        type: counter
+u}(js (d612d1bb1d5eea09655d460bf0f0ad1077579a6dj [timelock-impl/src/test/java/com/palantir/atlasdb/timelock/AsyncTimelockServiceImplTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImplTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -21,15 +21,16 @@
 
 import com.palantir.atlasdb.timelock.lock.AsyncLockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
 import com.palantir.timestamp.ManagedTimestampService;
 import org.junit.Test;
 
 public class AsyncTimelockServiceImplTest {
     @Test
     public void delegatesInitializationCheck() {
         ManagedTimestampService mockMts = mock(ManagedTimestampService.class);
-        AsyncTimelockServiceImpl service =
-                new AsyncTimelockServiceImpl(mock(AsyncLockService.class), mockMts, mock(LockLog.class));
+        AsyncTimelockServiceImpl service = new AsyncTimelockServiceImpl(
+                mock(AsyncLockService.class), mockMts, mock(LockLog.class), mock(RequestMetrics.class));
         when(mockMts.isInitialized()).thenReturn(false).thenReturn(true);
 
         assertThat(service.isInitialized()).isFalse();u}(js (b88b9f6eb2608d0c4d5fa96c20f636f1dc76adbdj Xtimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/AsyncLockServiceTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -18,6 +18,8 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.concurrent.ScheduledExecutorService;
@@ -29,8 +31,12 @@ public class AsyncLockServiceTest {
     public void executorsShutDownAfterClose() {
         ScheduledExecutorService reaperExecutor = PTExecutors.newSingleThreadScheduledExecutor();
         ScheduledExecutorService timeoutExecutor = PTExecutors.newSingleThreadScheduledExecutor();
+        MetricsManager metricsManager = MetricsManagers.createForTests();
         AsyncLockService asyncLockService = AsyncLockService.createDefault(
-                new LockLog(MetricsManagers.createForTests().getRegistry(), () -> 1L), reaperExecutor, timeoutExecutor);
+                new LockLog(metricsManager.getRegistry(), () -> 1L),
+                reaperExecutor,
+                timeoutExecutor,
+                BufferMetrics.of(metricsManager.getTaggedRegistry()));
 
         asyncLockService.close();
         assertThat(reaperExecutor.isShutdown()).isTrue();u}(js (01d2292522bddd65342f57b0925c5712c567ecbfj itimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/ArrayLockEventSlidingWindowTest.javaj modifiedj KZj Kj Kmj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -18,17 +18,39 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchEvent;
 import java.util.List;
+import java.util.Optional;
+import java.util.Set;
+import java.util.UUID;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import java.util.stream.LongStream;
-import org.immutables.value.Value;
 import org.junit.Test;
 
 public class ArrayLockEventSlidingWindowTest {
     private static final int WINDOW_SIZE = 10;
 
-    private final ArrayLockEventSlidingWindow slidingWindow = new ArrayLockEventSlidingWindow(WINDOW_SIZE);
+    private static final LockDescriptor LOCK_1 = StringLockDescriptor.of("abc");
+    private static final LockDescriptor LOCK_2 = StringLockDescriptor.of("def");
+    private static final LockDescriptor LOCK_3 = StringLockDescriptor.of("ghi");
+    private static final LockToken TOKEN = LockToken.of(UUID.randomUUID());
+
+    private final BufferMetrics bufferMetrics =
+            BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
+    private final ArrayLockEventSlidingWindow slidingWindow =
+            new ArrayLockEventSlidingWindow(WINDOW_SIZE, bufferMetrics);
 
     @Test
     public void whenLastKnownVersionIsAfterCurrentReturnEmpty() {
@@ -72,6 +94,68 @@ public void returnRangeAfterBoundary() {
         assertContainsNextEventsInOrder(10, 11, 14);
     }
 
+    @Test
+    public void countsMetadataCorrectlyStartingFromEmptyBuffer() {
+        LockRequestMetadata metadata = LockRequestMetadata.of(ImmutableMap.of(
+                LOCK_1, ChangeMetadata.unchanged(), LOCK_2, ChangeMetadata.created(PtBytes.toBytes("foo"))));
+        LockRequestMetadata metadata2 =
+                LockRequestMetadata.of(ImmutableMap.of(LOCK_3, ChangeMetadata.deleted(PtBytes.toBytes("bar"))));
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_1, LOCK_2), Optional.of(metadata));
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_3), Optional.of(metadata2));
+
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(3);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(2);
+
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_1), Optional.empty());
+        addLockEventWithMetadata(ImmutableSet.of(), Optional.of(LockRequestMetadata.of(ImmutableMap.of())));
+
+        assertThat(bufferMetrics.changeMetadata().getCount())
+                .as("Absent metadata should count for nothing")
+                .isEqualTo(3);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount())
+                .as("Empty metadata map should count for present metadata")
+                .isEqualTo(3);
+    }
+
+    @Test
+    public void maintainsCorrectMetadataCountWhenOverwritingBuffer() {
+        assertThat(WINDOW_SIZE)
+                .as("This test does not work with small windows since we are going to replace multiple events once"
+                        + " our buffer is full. With small windows, we might overwrite the wrong events.")
+                .isGreaterThanOrEqualTo(5);
+
+        IntStream.range(0, WINDOW_SIZE).forEach(i -> {
+            LockDescriptor lock = StringLockDescriptor.of("lock" + i);
+            LockRequestMetadata metadata = LockRequestMetadata.of(
+                    ImmutableMap.of(lock, ChangeMetadata.created(PtBytes.toBytes("created" + i))));
+            addLockEventWithMetadata(ImmutableSet.of(lock), Optional.of(metadata));
+        });
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+
+        // Counts are maintained if we replace an event with metadata of same size
+        addLockEventWithMetadata(
+                ImmutableSet.of(LOCK_1),
+                Optional.of(LockRequestMetadata.of(ImmutableMap.of(LOCK_1, ChangeMetadata.unchanged()))));
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+
+        // Both counts can decrease
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_1), Optional.empty());
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
+
+        // ChangeMetadata count can increase
+        addLockEventWithMetadata(
+                ImmutableSet.of(LOCK_1, LOCK_2, LOCK_3),
+                Optional.of(LockRequestMetadata.of(ImmutableMap.of(
+                        LOCK_1, ChangeMetadata.created(PtBytes.toBytes("created")),
+                        LOCK_2, ChangeMetadata.unchanged(),
+                        LOCK_3, ChangeMetadata.updated(PtBytes.toBytes("old"), PtBytes.toBytes("new"))))));
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE + 1);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
+    }
+
     private void whenLogContainsEvents0To4() {
         // Log contains events [0,1,2,3,4]
         addEvents(5);
@@ -101,24 +185,11 @@ private void assertContainsNextEventsInOrder(long version, int startInclusive, i
                         .collect(Collectors.toList()));
     }
 
-    private static LockWatchEvent createEvent(long sequence) {
-        return ImmutableFakeLockWatchEvent.of(sequence, 1);
+    private void addLockEventWithMetadata(Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {
+        slidingWindow.add(LockEvent.builder(lockDescriptors, TOKEN, metadata));
     }
 
-    @Value.Immutable
-    abstract static class FakeLockWatchEvent implements LockWatchEvent {
-        @Override
-        @Value.Parameter
-        public abstract long sequence();
-
-        @Override
-        @Value.Parameter
-        public abstract int size();
-
-        @Override
-        public <T> T accept(LockWatchEvent.Visitor<T> visitor) {
-            // do nothing
-            return null;
-        }
+    private static LockWatchEvent createEvent(long sequence) {
+        return LockEvent.builder(ImmutableSet.of(), TOKEN).build(sequence);
     }
 }u}(js (428343d34d878fec95d1805731488da912fac28aj ^timelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImplTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X{  @@ -30,6 +30,8 @@
 import com.palantir.atlasdb.timelock.lock.ExclusiveLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocks;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
@@ -67,7 +69,11 @@ public class LockEventLogImplTest {
     private final AtomicReference<LockWatches> lockWatches = new AtomicReference<>(LockWatches.create());
     private final HeldLocksCollection heldLocksCollection = mock(HeldLocksCollection.class);
     private final HeldLocks heldLocks = mock(HeldLocks.class);
-    private final LockEventLog log = new LockEventLogImpl(LOG_ID, lockWatches::get, heldLocksCollection);
+    private final LockEventLog log = new LockEventLogImpl(
+            LOG_ID,
+            lockWatches::get,
+            heldLocksCollection,
+            BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
 
     @Before
     public void setupMocks() {u}(js (9351b2c3e3ec099a25284148e19fee9daed18290j etimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImplTest.javaj modifiedj KKj Kj KZj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j Xt(  @@ -33,11 +33,16 @@
 import com.palantir.atlasdb.timelock.lock.ExclusiveLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocks;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
+import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.AtlasCellLockDescriptor;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.ChangeMetadata;
 import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
 import com.palantir.lock.watch.LockWatchReferences.LockWatchReference;
@@ -69,9 +74,11 @@ public class LockWatchingServiceImplTest {
     private static final LockDescriptor ROW_DESCRIPTOR = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), ROW);
     private static final AsyncLock LOCK = new ExclusiveLock(ROW_DESCRIPTOR);
     private static final AsyncLock LOCK_2 = new ExclusiveLock(descriptorForOtherTable());
+    private static final ChangeMetadata DUMMY_METADATA = ChangeMetadata.unchanged();
 
     private final HeldLocksCollection locks = mock(HeldLocksCollection.class);
-    private final LockWatchingService lockWatcher = new LockWatchingServiceImpl(LOG_ID, locks);
+    private final LockWatchingService lockWatcher = new LockWatchingServiceImpl(
+            LOG_ID, locks, BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
 
     private final HeldLocks heldLocks = mock(HeldLocks.class);
 
@@ -148,10 +155,11 @@ public void watchExactRowLockWatchLogsHeldLocksInRange() {
         lockWatcher.startWatching(request);
 
         Set<LockDescriptor> cellDescriptor = ImmutableSet.of(CELL_DESCRIPTOR);
-        lockWatcher.registerLock(cellDescriptor, TOKEN);
+        lockWatcher.registerLock(cellDescriptor, TOKEN, createMetadataForLocks(cellDescriptor));
 
         assertLoggedEvents(ImmutableList.of(
-                createdEvent(request.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)), lockEvent(cellDescriptor)));
+                createdEvent(request.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
+                lockEvent(cellDescriptor, createMetadataForLocks(cellDescriptor))));
     }
 
     @Test
@@ -232,10 +240,12 @@ public void exactCellWatchMatchesExactDescriptorOnly() {
         lockWatcher.startWatching(request);
 
         ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, cellSuffixDescriptor);
-        lockWatcher.registerLock(locks, TOKEN);
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
 
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(CELL_DESCRIPTOR);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
-                createdEvent(request.getReferences(), ImmutableSet.of()), lockEvent(ImmutableSet.of(CELL_DESCRIPTOR)));
+                createdEvent(request.getReferences(), ImmutableSet.of()),
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -246,11 +256,12 @@ public void exactRowWatchMatchesCellAndRowDescriptors() {
         lockWatcher.startWatching(rowRequest);
 
         ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR);
-        lockWatcher.registerLock(locks, TOKEN);
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
 
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(rowRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
-                lockEvent(ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR)));
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -263,11 +274,12 @@ public void rowPrefixWatchMatchesSuffixes() {
         lockWatcher.startWatching(prefixRequest);
 
         ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR, notPrefixDescriptor);
-        lockWatcher.registerLock(locks, TOKEN);
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
 
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(prefixRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
-                lockEvent(ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR)));
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -289,11 +301,13 @@ public void rowRangeWatchTest() {
 
         ImmutableSet<LockDescriptor> locks =
                 ImmutableSet.of(cellInRange, cellOutOfRange, rowInRange, rowInRange2, rowOutOfRange);
-        lockWatcher.registerLock(locks, TOKEN);
 
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
+
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(cellInRange, rowInRange, rowInRange2);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(rangeRequest.getReferences(), ImmutableSet.of()),
-                lockEvent(ImmutableSet.of(cellInRange, rowInRange, rowInRange2)));
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -308,11 +322,13 @@ public void entireTableWatchTest() {
 
         ImmutableSet<LockDescriptor> locks =
                 ImmutableSet.of(CELL_DESCRIPTOR, cellOutOfRange, rowInRange, rowOutOfRange);
-        lockWatcher.registerLock(locks, TOKEN);
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
 
+        ImmutableSet<LockDescriptor> expectedFilteredLocks =
+                ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR, rowInRange);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(tableRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
-                lockEvent(ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR, rowInRange)));
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -329,12 +345,51 @@ public void unlockWithoutLockTest() {
         assertLoggedEvents(expectedEvents);
     }
 
+    @Test
+    public void sparseMetadataIsFiltered() {
+        LockDescriptor cellOutOfRange = AtlasCellLockDescriptor.of(TABLE_2.getQualifiedName(), ROW, ROW);
+        LockDescriptor rowInRange = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), ROW);
+        LockDescriptor rowOutOfRange = AtlasRowLockDescriptor.of(TABLE_2.getQualifiedName(), ROW);
+
+        LockWatchRequest tableRequest = tableRequest();
+        lockWatcher.startWatching(tableRequest);
+
+        ImmutableSet<LockDescriptor> locks =
+                ImmutableSet.of(CELL_DESCRIPTOR, cellOutOfRange, rowInRange, rowOutOfRange);
+        lockWatcher.registerLock(
+                locks, TOKEN, createMetadataForLocks(ImmutableSet.of(CELL_DESCRIPTOR, cellOutOfRange)));
+
+        ImmutableSet<LockDescriptor> expectedFilteredLocks =
+                ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR, rowInRange);
+        List<LockWatchEvent> expectedEvents = ImmutableList.of(
+                createdEvent(tableRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(ImmutableSet.of(CELL_DESCRIPTOR))));
+        assertLoggedEvents(expectedEvents);
+    }
+
+    @Test
+    public void metadataIsRemovedIfMapEmptyAfterFiltering() {
+        LockDescriptor rowOutOfRange = AtlasRowLockDescriptor.of(TABLE_2.getQualifiedName(), ROW);
+
+        LockWatchRequest tableRequest = tableRequest();
+        lockWatcher.startWatching(tableRequest);
+
+        ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, rowOutOfRange);
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(ImmutableSet.of(rowOutOfRange)));
+
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(CELL_DESCRIPTOR);
+        List<LockWatchEvent> expectedEvents = ImmutableList.of(
+                createdEvent(tableRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
+                lockEvent(expectedFilteredLocks, Optional.empty()));
+        assertLoggedEvents(expectedEvents);
+    }
+
     private LockWatchEvent createdEvent(Set<LockWatchReference> references, Set<LockDescriptor> descriptors) {
         return LockWatchCreatedEvent.builder(references, descriptors).build(sequenceCounter++);
     }
 
-    private LockWatchEvent lockEvent(Set<LockDescriptor> lockDescriptors) {
-        return LockEvent.builder(lockDescriptors, TOKEN).build(sequenceCounter++);
+    private LockWatchEvent lockEvent(Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {
+        return LockEvent.builder(lockDescriptors, TOKEN, metadata).build(sequenceCounter++);
     }
 
     private LockWatchEvent unlockEvent(Set<LockDescriptor> lockDescriptors) {
@@ -357,6 +412,11 @@ private static LockDescriptor descriptorForOtherTable() {
         return AtlasRowLockDescriptor.of(TABLE_2.getQualifiedName(), ROW);
     }
 
+    private static Optional<LockRequestMetadata> createMetadataForLocks(Set<LockDescriptor> lockDescriptors) {
+        return Optional.of(LockRequestMetadata.of(
+                KeyedStream.of(lockDescriptors).map(_unused -> DUMMY_METADATA).collectToMap()));
+    }
+
     private void assertLoggedEvents(List<LockWatchEvent> expectedEvents) {
         LockWatchStateUpdate update = lockWatcher.getWatchStateUpdate(Optional.of(LockWatchVersion.of(LOG_ID, -1L)));
         List<LockWatchEvent> events = UpdateVisitors.assertSuccess(update).events();u}(js (4d9311a79afe49e73ddb3b80bfc770f03af846c4j ftimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X%  @@ -0,0 +1,191 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatException;
+import static org.assertj.core.api.Assertions.fail;
+
+import com.codahale.metrics.MetricRegistry;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.atlasdb.futures.AtlasFutures;
+import com.palantir.atlasdb.timelock.api.ConjureIdentifiedVersion;
+import com.palantir.atlasdb.timelock.api.ConjureStartTransactionsRequest;
+import com.palantir.atlasdb.timelock.api.ConjureStartTransactionsResponse;
+import com.palantir.atlasdb.timelock.api.LockWatchRequest;
+import com.palantir.atlasdb.timelock.lock.AsyncLockService;
+import com.palantir.atlasdb.timelock.lock.LockLog;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
+import com.palantir.atlasdb.util.MetricsManager;
+import com.palantir.atlasdb.util.MetricsManagers;
+import com.palantir.lock.AtlasRowLockDescriptor;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.client.IdentifiedLockRequest;
+import com.palantir.lock.client.ImmutableIdentifiedLockRequest;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockRequestMetadata;
+import com.palantir.lock.watch.LockWatchEvent;
+import com.palantir.lock.watch.LockWatchReferences;
+import com.palantir.lock.watch.LockWatchStateUpdate;
+import com.palantir.timestamp.InMemoryTimestampService;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.UUID;
+import java.util.concurrent.ExecutionException;
+import java.util.concurrent.ScheduledExecutorService;
+import org.jmock.lib.concurrent.DeterministicScheduler;
+import org.junit.Before;
+import org.junit.Test;
+
+public class AsyncTimeLockServiceMetadataTest {
+    private static final String WATCHED_TABLE_NAME = "watched-table";
+    private static final LockDescriptor WATCHED_LOCK =
+            AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, PtBytes.toBytes("lock1"));
+    private static final Map<LockDescriptor, ChangeMetadata> ALL_WATCHED_LOCKS_WITH_METADATA =
+            ImmutableMap.of(WATCHED_LOCK, ChangeMetadata.updated(PtBytes.toBytes("old"), PtBytes.toBytes("new")));
+    private static final String UNWATCHED_TABLE_NAME = "a-random-unwatched-table";
+    private static final LockDescriptor UNWATCHED_LOCK =
+            AtlasRowLockDescriptor.of(UNWATCHED_TABLE_NAME, PtBytes.toBytes("lock1"));
+    private static final IdentifiedLockRequest WATCHED_LOCK_REQUEST_WITH_METADATA =
+            standardRequestWithMetadata(ALL_WATCHED_LOCKS_WITH_METADATA);
+
+    private final LockLog lockLog = new LockLog(new MetricRegistry(), () -> 10000L);
+    private final ScheduledExecutorService scheduledExecutorService = new DeterministicScheduler();
+
+    private final MetricsManager metricsManager = MetricsManagers.createForTests();
+    private final RequestMetrics requestMetrics = RequestMetrics.of(metricsManager.getTaggedRegistry());
+    private final AsyncLockService asyncLockService = AsyncLockService.createDefault(
+            lockLog,
+            scheduledExecutorService,
+            scheduledExecutorService,
+            BufferMetrics.of(metricsManager.getTaggedRegistry()));
+    private final AsyncTimelockServiceImpl timeLockService =
+            new AsyncTimelockServiceImpl(asyncLockService, new InMemoryTimestampService(), lockLog, requestMetrics);
+    private final ConjureStartTransactionsRequest startTransactionsRequestWithInitialVersion =
+            ConjureStartTransactionsRequest.builder()
+                    .requestId(UUID.randomUUID())
+                    .lastKnownVersion(ConjureIdentifiedVersion.of(
+                            asyncLockService.leaderTime().id().id(), 0))
+                    .numTransactions(1)
+                    .requestorId(UUID.randomUUID())
+                    .build();
+
+    @Before
+    public void setup() {
+        timeLockService.startWatching(
+                LockWatchRequest.of(ImmutableSet.of(LockWatchReferences.entireTable(WATCHED_TABLE_NAME))));
+    }
+
+    @Test
+    public void absentMetadataIsPassedThrough() {
+        // this will create a lock request for 4 lock descriptors, but with absent metadata
+        IdentifiedLockRequest requestWithoutMetadata = ImmutableIdentifiedLockRequest.copyOf(
+                        standardRequestWithMetadata(ALL_WATCHED_LOCKS_WITH_METADATA))
+                .withMetadata(Optional.empty());
+        timeLockService.lock(requestWithoutMetadata);
+
+        assertThat(getAllLockEventsMetadata()).containsExactly(Optional.empty());
+    }
+
+    @Test
+    public void metadataIsPassedThroughForWatchedTable() {
+        timeLockService.lock(WATCHED_LOCK_REQUEST_WITH_METADATA);
+
+        assertThat(getAllLockEventsMetadata())
+                .containsExactly(Optional.of(LockRequestMetadata.of(ALL_WATCHED_LOCKS_WITH_METADATA)));
+    }
+
+    // This test is trivial for our current metadata constraints (metadata is only allowed for locks
+    // that are part of the original request), but we would also want this behavior if the constraints weren't there
+    @Test
+    public void noLockEventIsPublishedIfNothingIsWatched() {
+        IdentifiedLockRequest mixedRequest = standardRequestWithMetadata(ImmutableMap.of(
+                UNWATCHED_LOCK, ChangeMetadata.updated(PtBytes.toBytes("bla"), PtBytes.toBytes("blabla"))));
+        timeLockService.lock(mixedRequest);
+
+        assertThat(getAllLockEventsMetadata()).isEmpty();
+    }
+
+    // This test verifies that future developers are alerted when they break the metadata invariant by trying to pass
+    // metadata that is not attached to a lock descriptor that is part of the original request.
+    @Test
+    public void cannotPassDownMetadataForUnknownLockDescriptors() {
+        IdentifiedLockRequest goodRequest =
+                standardRequestWithMetadata(ImmutableMap.of(WATCHED_LOCK, ChangeMetadata.unchanged()));
+        IdentifiedLockRequest badRequest = ImmutableIdentifiedLockRequest.builder()
+                .from(goodRequest)
+                .metadata(LockRequestMetadata.of(
+                        ImmutableMap.of(StringLockDescriptor.of("some-random-lock"), ChangeMetadata.unchanged())))
+                .build();
+        assertThatException()
+                .isThrownBy(() -> timeLockService.lock(badRequest).get())
+                .isInstanceOf(ExecutionException.class)
+                .havingCause()
+                .isInstanceOf(AssertionError.class)
+                .withMessage("Unknown lock descriptor in metadata");
+    }
+
+    @Test
+    public void updatesRequestMetricsCorrectly() {
+        timeLockService.lock(standardRequestWithMetadata(ImmutableMap.of()));
+        timeLockService.lock(standardRequestWithMetadata(ImmutableMap.of(
+                StringLockDescriptor.of("1"), ChangeMetadata.unchanged(),
+                StringLockDescriptor.of("2"), ChangeMetadata.unchanged(),
+                StringLockDescriptor.of("3"), ChangeMetadata.unchanged())));
+        timeLockService.lock(ImmutableIdentifiedLockRequest.copyOf(WATCHED_LOCK_REQUEST_WITH_METADATA)
+                .withMetadata(Optional.empty()));
+
+        assertThat(requestMetrics.changeMetadata().getSnapshot().getValues()).containsOnly(0, 3, 0);
+    }
+
+    private List<Optional<LockRequestMetadata>> getAllLockEventsMetadata() {
+        return LockWatchIntegrationTestUtilities.extractMetadata(getAllLockWatchEvents());
+    }
+
+    private List<LockWatchEvent> getAllLockWatchEvents() {
+        ListenableFuture<ConjureStartTransactionsResponse> responseFuture =
+                timeLockService.startTransactionsWithWatches(startTransactionsRequestWithInitialVersion);
+        return AtlasFutures.getUnchecked(responseFuture)
+                .getLockWatchUpdate()
+                .accept(AssertSuccessVisitor.INSTANCE)
+                .events();
+    }
+
+    private static IdentifiedLockRequest standardRequestWithMetadata(Map<LockDescriptor, ChangeMetadata> metadata) {
+        return IdentifiedLockRequest.of(metadata.keySet(), 1000, "testClient", LockRequestMetadata.of(metadata));
+    }
+
+    private enum AssertSuccessVisitor implements LockWatchStateUpdate.Visitor<LockWatchStateUpdate.Success> {
+        INSTANCE;
+
+        @Override
+        public LockWatchStateUpdate.Success visit(LockWatchStateUpdate.Success success) {
+            return success;
+        }
+
+        @Override
+        public LockWatchStateUpdate.Success visit(LockWatchStateUpdate.Snapshot snapshot) {
+            return fail("Unexpected snapshot");
+        }
+    }
+}u}(js (3dfb5b7f1909e36d9a30ffc83f18e7231000c611j ctimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchEventIntegrationTest.javaj modifiedj K<j K j K<j https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XM  @@ -40,9 +40,15 @@
 import com.palantir.atlasdb.transaction.impl.PreCommitConditions;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.lock.AtlasCellLockDescriptor;
+import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.v2.ImmutableLockRequest;
+import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.v2.LockResponse;
+import com.palantir.lock.watch.ChangeMetadata;
 import com.palantir.lock.watch.CommitUpdate;
 import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
 import com.palantir.lock.watch.LockWatchReferences;
@@ -54,6 +60,7 @@
 import com.palantir.timelock.config.PaxosInstallConfiguration;
 import java.nio.charset.StandardCharsets;
 import java.util.Collection;
+import java.util.List;
 import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
@@ -251,6 +258,34 @@ public void leaderElectionDuringTransactionCausesTransactionToFailRetriably() {
                 .doesNotThrowAnyException();
     }
 
+    @Test
+    public void absentMetadataIsVisibleToTransaction() {
+        LockRequest requestWithoutMetadata = createTestLockRequest(
+                ImmutableSet.of(AtlasRowLockDescriptor.of(TABLE_REF.getQualifiedName(), ROW)), Optional.empty());
+        assertThat(lockAndGetEventMetadataFromLockWatchLog(requestWithoutMetadata))
+                .isEmpty();
+    }
+
+    @Test
+    public void nonEmptyMetadataIsVisibleToTransactionForWatchedTable() {
+        LockDescriptor lock1 =
+                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_1.getRowName(), CELL_1.getColumnName());
+        LockDescriptor lock2 =
+                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_2.getRowName(), CELL_2.getColumnName());
+        LockDescriptor lock3 =
+                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_3.getRowName(), CELL_3.getColumnName());
+        LockDescriptor lock4 =
+                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_4.getRowName(), CELL_4.getColumnName());
+        LockRequestMetadata metadata = LockRequestMetadata.of(ImmutableMap.of(
+                lock1, ChangeMetadata.created(DATA_1),
+                lock2, ChangeMetadata.deleted(DATA_2),
+                lock3, ChangeMetadata.unchanged(),
+                lock4, ChangeMetadata.updated(DATA_3, DATA_4)));
+        LockRequest requestWithMetadata =
+                createTestLockRequest(ImmutableSet.of(lock1, lock2, lock3, lock4), Optional.of(metadata));
+        assertThat(lockAndGetEventMetadataFromLockWatchLog(requestWithMetadata)).contains(metadata);
+    }
+
     private Runnable performWriteTransactionThatBlocksAfterLockingCells() {
         CountDownLatch endOfTest = new CountDownLatch(1);
         CountDownLatch inCommitBlock = new CountDownLatch(1);
@@ -359,6 +394,31 @@ private Set<LockDescriptor> getDescriptors(TableReference tableRef, Cell... cell
                 .collect(Collectors.toSet());
     }
 
+    private Optional<LockRequestMetadata> lockAndGetEventMetadataFromLockWatchLog(LockRequest lockRequest) {
+        LockWatchVersion currentVersion = getCurrentVersion();
+        LockResponse response = txnManager.getTimelockService().lock(lockRequest);
+        // We need to clean up the lock, otherwise it will be held forever (the TimeLock cluster is static)!
+        txnManager.getTimelockService().unlock(ImmutableSet.of(response.getToken()));
+        OpenTransaction newTxn = startSingleTransaction();
+        List<LockWatchEvent> lockWatchEvents =
+                getUpdateForTransactions(Optional.of(currentVersion), newTxn).events();
+        newTxn.abort();
+        List<Optional<LockRequestMetadata>> metadataList =
+                LockWatchIntegrationTestUtilities.extractMetadata(lockWatchEvents);
+        assertThat(metadataList).hasSize(1);
+        return metadataList.get(0);
+    }
+
+    private LockRequest createTestLockRequest(
+            Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {
+        return ImmutableLockRequest.builder()
+                .lockDescriptors(lockDescriptors)
+                .clientDescription("test-client")
+                .acquireTimeoutMs(100)
+                .metadata(metadata)
+                .build();
+    }
+
     private Set<LockDescriptor> extractDescriptorsFromUpdate(CommitUpdate commitUpdate) {
         return filterDescriptors(commitUpdate.accept(new CommitUpdate.Visitor<>() {
             @Overrideu}(js (a6850ec52c43c8d5ddc73b6a2c24f75bf3d70e64j gtimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchIntegrationTestUtilities.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchIntegrationTestUtilities.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchIntegrationTestUtilities.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchIntegrationTestUtilities.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j XD	  @@ -31,6 +31,7 @@
 import com.palantir.atlasdb.transaction.api.PreCommitCondition;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
 import com.palantir.lock.watch.LockWatchReferences;
@@ -43,6 +44,7 @@
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.function.BiFunction;
 import java.util.function.Predicate;
+import java.util.stream.Collectors;
 import org.awaitility.Awaitility;
 
 public final class LockWatchIntegrationTestUtilities {
@@ -105,6 +107,14 @@ public static LockWatchManagerInternal extractInternalLockWatchManager(Transacti
         return (LockWatchManagerInternal) txnManager.getLockWatchManager();
     }
 
+    public static List<Optional<LockRequestMetadata>> extractMetadata(List<LockWatchEvent> lockWatchEvents) {
+        return lockWatchEvents.stream()
+                .map(event -> event.accept(LockEventVisitor.INSTANCE))
+                .flatMap(Optional::stream)
+                .map(LockEvent::metadata)
+                .collect(Collectors.toList());
+    }
+
     public static TransactionManager createTransactionManager(
             double validationProbability, TestableTimelockCluster timelockCluster, String namespace) {
         return TimeLockTestUtils.createTransactionManager(
@@ -190,6 +200,25 @@ public Boolean visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
         }
     }
 
+    private enum LockEventVisitor implements LockWatchEvent.Visitor<Optional<LockEvent>> {
+        INSTANCE;
+
+        @Override
+        public Optional<LockEvent> visit(LockEvent lockEvent) {
+            return Optional.of(lockEvent);
+        }
+
+        @Override
+        public Optional<LockEvent> visit(UnlockEvent unlockEvent) {
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<LockEvent> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
+            return Optional.empty();
+        }
+    }
+
     /**
      * {@link PreCommitCondition} is actually run several times throughout a transaction - namely, before any read
      * if this is configured. When run at these times, the start timestamp is passed in. However, when the conditionu}(js (a1c26b303ce52ac19eaf79c922923c3074b142f2j ]timelock-server/src/test/java/com/palantir/atlasdb/timelock/lock/AsyncLockServiceEteTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceEteTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceEteTest.java      j https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceEteTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -22,6 +22,8 @@
 import com.google.common.util.concurrent.Uninterruptibles;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingService;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingServiceImpl;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.flake.FlakeRetryingRule;
 import com.palantir.flake.ShouldRetry;
 import com.palantir.leader.NotCurrentLeaderException;
@@ -63,7 +65,10 @@ public class AsyncLockServiceEteTest {
 
     private final LockLog lockLog = new LockLog(new MetricRegistry(), () -> 2L);
     private final HeldLocksCollection heldLocks = HeldLocksCollection.create(clock);
-    private final LockWatchingService lockWatchingService = new LockWatchingServiceImpl(heldLocks, clock.id());
+    private final LockWatchingService lockWatchingService = new LockWatchingServiceImpl(
+            heldLocks,
+            clock.id(),
+            BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
     private final AsyncLockService service = new AsyncLockService(
             new LockCollection(),
             new ImmutableTimestampTracker(),u}(js (4a70d424c5e4d208920397fec5510c40d956832bj Ztimelock-server/src/test/java/com/palantir/atlasdb/timelock/lock/AsyncLockServiceTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -73,6 +73,7 @@ public class AsyncLockServiceTest {
     @Before
     public void before() {
         when(acquirer.acquireLocks(any(), any(), any())).thenReturn(new AsyncResult<>());
+        when(acquirer.acquireLocks(any(), any(), any(), any())).thenReturn(new AsyncResult<>());
         when(acquirer.waitForLocks(any(), any(), any())).thenReturn(new AsyncResult<>());
         when(locks.getAll(any())).thenReturn(OrderedLocks.fromSingleLock(newLock()));
         when(immutableTimestampTracker.getImmutableTimestamp()).thenReturn(Optional.empty());
@@ -87,7 +88,7 @@ public void passesOrderedLocksToAcquirer() {
 
         lockService.lock(REQUEST_ID, descriptors, DEADLINE);
 
-        verify(acquirer).acquireLocks(REQUEST_ID, expected, DEADLINE);
+        verify(acquirer).acquireLocks(REQUEST_ID, expected, DEADLINE, Optional.empty());
     }
 
     @Test
@@ -107,7 +108,7 @@ public void doesNotAcquireDuplicateRequests() {
         lockService.lock(REQUEST_ID, descriptors, DEADLINE);
         lockService.lock(REQUEST_ID, descriptors, DEADLINE);
 
-        verify(acquirer, times(1)).acquireLocks(any(), any(), any());
+        verify(acquirer, times(1)).acquireLocks(any(), any(), any(), any());
         verifyNoMoreInteractions(acquirer);
     }
 
@@ -155,7 +156,7 @@ public void reaperDoesNotDieIfItEncountersAnException() {
     public void propagatesTimeoutExceptionIfRequestTimesOut() {
         AsyncResult<HeldLocks> timedOutResult = new AsyncResult<>();
         timedOutResult.timeout();
-        when(acquirer.acquireLocks(any(), any(), any())).thenReturn(timedOutResult);
+        when(acquirer.acquireLocks(any(), any(), any(), any())).thenReturn(timedOutResult);
 
         AsyncResult<?> result = lockService.lock(REQUEST_ID, descriptors(LOCK_A), DEADLINE);
 u}(js (4b328d3f0757723e1c47adf5e7cc0a4f9aa41060j ]timelock-server/src/test/java/com/palantir/atlasdb/timelock/lock/HeldLocksCollectionTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocksCollectionTest.javaj https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocksCollectionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocksCollectionTest.java?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -32,6 +32,7 @@
 import com.palantir.lock.v2.Lease;
 import com.palantir.lock.v2.LockToken;
 import java.time.Duration;
+import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.atomic.AtomicLong;
@@ -188,7 +189,7 @@ public void lockWatchingServiceIsUpdatedAfterLockIsCreatedAndReaped() {
         AsyncResult<Leased<LockToken>> asyncResult = heldLocksCollection.getExistingOrAcquire(REQUEST_ID, () -> result);
         result.complete(heldLocksForId(REQUEST_ID));
         verify(lockWatcher)
-                .registerLock(ImmutableSet.of(LOCK_DESCRIPTOR), result.get().getToken());
+                .registerLock(ImmutableSet.of(LOCK_DESCRIPTOR), result.get().getToken(), Optional.empty());
 
         Lease lease = asyncResult.get().lease();
 
@@ -206,7 +207,7 @@ public void lockWatchingServiceIsUpdatedAfterLockIsCreatedAndUnlocked() {
         heldLocksCollection.getExistingOrAcquire(REQUEST_ID, () -> result);
         result.complete(heldLocksForId(REQUEST_ID));
         verify(lockWatcher)
-                .registerLock(ImmutableSet.of(LOCK_DESCRIPTOR), result.get().getToken());
+                .registerLock(ImmutableSet.of(LOCK_DESCRIPTOR), result.get().getToken(), Optional.empty());
 
         heldLocksCollection.unlock(ImmutableSet.of(LockToken.of(REQUEST_ID)));
         verify(lockWatcher).registerUnlock(ImmutableSet.of(LOCK_DESCRIPTOR));u}(js (0e3179989ede29f92bc5bce81cd23ace6ba42d17j 
versions.lockj modifiedj K)j K)j KRj _https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/versions.lockj ^https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/versions.lockj qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X0  @@ -10,22 +10,22 @@ com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
 com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c38132bb)
 com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bbb5dd72)
-com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 03bafb2e)
-com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e133df00)
-com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7e1c9da4)
+com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 06bad036)
+com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e233e000)
+com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7f1c9ea4)
 com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2 (4 constraints: 2244332b)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 333f21b0)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6b30665e)
-com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 312bccaf)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6b30665e)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 343f76b0)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6c30915e)
+com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 322bf7af)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6c30915e)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 40197abb)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 41197bbb)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.2 (2 constraints: 251d9309)
-com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9a1c98a6)
+com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9b1c99a6)
 com.fasterxml.jackson.module:jackson-module-blackbird:2.14.2 (1 constraints: b40e625e)
 com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.2 (2 constraints: db2e8469)
 com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 24cec010)
+com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 2dce2620)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -45,13 +45,13 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (23 constraints: a3788bf6)
+com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f994935f)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
-com.google.guava:guava:31.1-jre (48 constraints: a337bcb3)
+com.google.guava:guava:32.1.1-jre (48 constraints: 03383c24)
 com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava (1 constraints: bd17c918)
-com.google.j2objc:j2objc-annotations:1.3 (1 constraints: b809eda0)
+com.google.j2objc:j2objc-annotations:2.8 (1 constraints: be09f5a0)
 com.google.protobuf:protobuf-java:3.21.9 (1 constraints: 4105453b)
 com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4 (1 constraints: 350f7769)
 com.googlecode.json-simple:json-simple:1.1 (1 constraints: 320f7469)
@@ -67,38 +67,38 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:6.77.0 (5 constraints: ad546073)
-com.palantir.conjure.java:conjure-undertow-annotations:6.77.0 (1 constraints: 4605743b)
-com.palantir.conjure.java:conjure-undertow-lib:6.77.0 (2 constraints: 8d1cfdb0)
+com.palantir.conjure.java:conjure-lib:7.5.0 (5 constraints: cd530c72)
+com.palantir.conjure.java:conjure-undertow-annotations:7.5.0 (1 constraints: 0e051d36)
+com.palantir.conjure.java:conjure-undertow-lib:7.5.0 (2 constraints: 1d1c4081)
 com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 3d696e70)
 com.palantir.conjure.java.api:service-config:2.34.0 (5 constraints: 724d79ca)
 com.palantir.conjure.java.api:ssl-config:2.34.0 (3 constraints: e22a0da5)
-com.palantir.conjure.java.runtime:client-config:7.40.0 (6 constraints: a46bdb28)
-com.palantir.conjure.java.runtime:conjure-java-annotations:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.40.0 (2 constraints: c521007b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.40.0 (6 constraints: 306e1085)
-com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.40.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.40.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:keystores:7.40.0 (3 constraints: 162a3e5f)
-com.palantir.conjure.java.runtime:refresh-utils:7.40.0 (2 constraints: 051e6045)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.77.0 (2 constraints: 7f29c101)
-com.palantir.dialogue:dialogue-blocking-channels:3.77.0 (2 constraints: e12335b4)
-com.palantir.dialogue:dialogue-clients:3.77.0 (1 constraints: 4305623b)
-com.palantir.dialogue:dialogue-core:3.77.0 (3 constraints: 833de5e1)
-com.palantir.dialogue:dialogue-futures:3.77.0 (3 constraints: da3348c0)
-com.palantir.dialogue:dialogue-serde:3.77.0 (3 constraints: c12e6ba4)
-com.palantir.dialogue:dialogue-target:3.77.0 (7 constraints: 9e760764)
+com.palantir.conjure.java.runtime:client-config:7.45.0 (6 constraints: bd6b2133)
+com.palantir.conjure.java.runtime:conjure-java-annotations:7.45.0 (1 constraints: c6188d9e)
+com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.45.0 (2 constraints: ca210f7b)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.45.0 (6 constraints: 3f6ee88e)
+com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.45.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.45.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.45.0 (1 constraints: c6188d9e)
+com.palantir.conjure.java.runtime:keystores:7.45.0 (3 constraints: 202a4c60)
+com.palantir.conjure.java.runtime:refresh-utils:7.45.0 (2 constraints: 0a1e6f45)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.78.0 (2 constraints: 83295d02)
+com.palantir.dialogue:dialogue-blocking-channels:3.78.0 (2 constraints: e32369b4)
+com.palantir.dialogue:dialogue-clients:3.78.0 (1 constraints: 4405653b)
+com.palantir.dialogue:dialogue-core:3.78.0 (3 constraints: 883d62e3)
+com.palantir.dialogue:dialogue-futures:3.78.0 (3 constraints: dd33dac0)
+com.palantir.dialogue:dialogue-serde:3.78.0 (3 constraints: c62e7fa5)
+com.palantir.dialogue:dialogue-target:3.78.0 (7 constraints: a7763c6a)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
 com.palantir.docker.proxy:docker-proxy-rule-core:1.6.0 (2 constraints: 161ab906)
 com.palantir.docker.proxy:docker-proxy-rule-junit4:1.6.0 (1 constraints: 09050236)
-com.palantir.goethe:goethe:0.9.0 (1 constraints: 0b050636)
+com.palantir.goethe:goethe:0.11.0 (1 constraints: 3405263b)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
 com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
-com.palantir.safe-logging:logger:3.2.0 (23 constraints: 4e88492a)
+com.palantir.safe-logging:logger:3.2.0 (24 constraints: 98a4d6fa)
 com.palantir.safe-logging:logger-slf4j:3.2.0 (1 constraints: 000e5942)
 com.palantir.safe-logging:logger-spi:3.2.0 (2 constraints: 0f1e997a)
 com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: f7178aeb)
@@ -108,14 +108,14 @@ com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
 com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 485c7290)
 com.palantir.tracing:tracing:6.17.0 (8 constraints: f97d045e)
 com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 1745b4f5)
-com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 441994bb)
+com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 46199abb)
 com.palantir.tritium:tritium-api:0.64.0 (6 constraints: 5052c7ce)
 com.palantir.tritium:tritium-caffeine:0.64.0 (1 constraints: 3c05433b)
 com.palantir.tritium:tritium-core:0.64.0 (5 constraints: 5d43281d)
 com.palantir.tritium:tritium-lib:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f16b49d8)
+com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f96b65dd)
 com.palantir.tritium:tritium-proxy:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-registry:0.64.0 (12 constraints: f6d27f35)
+com.palantir.tritium:tritium-registry:0.64.0 (13 constraints: 88ef0d92)
 com.palantir.tritium:tritium-slf4j:0.64.0 (2 constraints: bd138370)
 com.palantir.tritium:tritium-time:0.64.0 (1 constraints: 820e8359)
 com.palantir.tritium:tritium-tracing:0.64.0 (1 constraints: 820e8359)
@@ -186,7 +186,7 @@ io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf
 io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
-io.undertow:undertow-core:2.2.25.Final (2 constraints: 371d1507)
+io.undertow:undertow-core:2.2.24.Final (2 constraints: 321db506)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
@@ -195,7 +195,7 @@ jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 26793e31)
 jakarta.inject:jakarta.inject-api:1.0.5 (13 constraints: decbc9f9)
 jakarta.servlet:jakarta.servlet-api:4.0.4 (10 constraints: 7b9def70)
 jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
-jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (18 constraints: 5a38d98d)
+jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (17 constraints: 6f283f6d)
 jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.5 (6 constraints: 845987f4)
@@ -225,7 +225,7 @@ org.assertj:assertj-guava:3.24.2 (1 constraints: 3d05473b)
 org.awaitility:awaitility:4.2.0 (2 constraints: c71a893b)
 org.caffinitas.ohc:ohc-core:0.3.4 (1 constraints: 950f6988)
 org.checkerframework:checker-compat-qual:2.5.5 (2 constraints: 1f1d1717)
-org.checkerframework:checker-qual:3.32.0 (3 constraints: 6c2607e2)
+org.checkerframework:checker-qual:3.33.0 (3 constraints: 6f2678e2)
 org.clojure:clojure:1.8.0 (1 constraints: 0b050836)
 org.codehaus.groovy:groovy:2.5.14 (23 constraints: b55185ba)
 org.codehaus.groovy:groovy-cli-picocli:2.5.14 (5 constraints: d54e9017)
@@ -313,7 +313,7 @@ org.slf4j:slf4j-api:1.7.36 (44 constraints: 8180995b)
 org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
 org.wildfly.common:wildfly-common:1.6.0.Final (4 constraints: 3f390b3d)
 org.xerial:sqlite-jdbc:3.42.0.0 (1 constraints: 99054946)
-org.xerial.snappy:snappy-java:1.1.8 (2 constraints: 011529cb)
+org.xerial.snappy:snappy-java:1.1.10.1 (2 constraints: 891546f4)
 org.yaml:snakeyaml:1.33 (5 constraints: 0a4c5570)
 
 [Test dependencies]u}(js (3ac0cb3acdc90040bcd03d3af504bcb446e9204aj versions.propsj modifiedj Kj Kj Kj `https://github.com/palantir/atlasdb/blob/3edc529e99246718dbc7e0f38df32119f57e1904/versions.propsj _https://github.com/palantir/atlasdb/raw/3edc529e99246718dbc7e0f38df32119f57e1904/versions.propsj rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=3edc529e99246718dbc7e0f38df32119f57e1904j X  @@ -17,20 +17,20 @@ com.google.dagger:* = 2.44.1
 com.google.devtools.ksp:symbol-processing-api = 1.5.21-1.0.0-beta07
 com.google.errorprone:* = 2.10.0 # upgrading to 2.11.0 is blocked by a google bug
 com.google.errorprone:error_prone_annotations = 2.10.0
-com.google.guava:guava = 31.1-jre
+com.google.guava:guava = 32.1.1-jre
 com.google.protobuf:* = 3.21.9
 com.googlecode.protobuf-java-format:* = 1.4
 com.lmax:disruptor = 3.4.2
 com.palantir.common:streams = 2.1.0
 com.palantir.config.crypto:* = 5.1.0
 com.palantir.conjure.java.api:* = 2.29.0
 com.palantir.conjure.java.runtime:* = 7.39.0
-com.palantir.conjure.java:* = 6.77.0
-com.palantir.conjure:conjure = 4.35.0
-com.palantir.dialogue:* = 3.77.0
+com.palantir.conjure.java:* = 7.5.0
+com.palantir.conjure:conjure = 4.36.0
+com.palantir.dialogue:* = 3.78.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
-com.palantir.goethe:* = 0.9.0
+com.palantir.goethe:* = 0.11.0
 com.palantir.nylon:* = 0.3.0
 com.palantir.refreshable:refreshable = 2.2.0
 com.palantir.safe-logging:* = 3.2.0
@@ -46,7 +46,7 @@ commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
 io.netty:* = 4.1.90.Final
-io.undertow:* = 2.2.25.Final
+io.undertow:* = 2.2.24.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2
@@ -78,7 +78,7 @@ org.reflections:reflections = 0.10.2
 org.rocksdb:rocksdbjni = 7.9.2
 org.slf4j:* = 1.7.36
 org.wildfly.common:wildfly-common = 1.6.0.Final
-org.xerial.snappy:snappy-java = 1.1.8
+org.xerial.snappy:snappy-java = 1.1.10.1
 org.xerial:sqlite-jdbc = 3.42.0.0
 org.yaml:snakeyaml = 1.33
 uk.org.lidalia:slf4j-test = 1.1.0ueu(e3224bd8a5b09ea0db03b52054b0afc0f6cc8994}(sha(e3224bd8a5b09ea0db03b52054b0afc0f6cc8994node_idEC_kwDOAjP5fdoAKGUzMjI0YmQ4YTViMDllYTBkYjAzYjUyMDU0YjBhZmMwZjZjYzg5OTQcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-06T09:48:28Zu	committer}(jy Lucas Meirelesj{ meireles31@msn.comj} 2023-07-06T09:48:28ZumessageT -> Timestamptree}(jq (38b94ffa7c87256a31eee9258aad39e7fb3ce4c1url`https://api.github.com/repos/palantir/atlasdb/git/trees/38b94ffa7c87256a31eee9258aad39e7fb3ce4c1uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e3224bd8a5b09ea0db03b52054b0afc0f6cc8994
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSmjewACgkQJd22kJ7J
GiyfYAf9GWft4o3zKNakMoXbWONMN9RqaD3aRmEHq3GIXfylL1Lp8uEnvnPJFrbe
2LYOk1oj50BhNd7rqWZs0HInUDZov3Y/CBvWL0XXf/naUkJgRUEz9JzIGo7OQf5b
iCTdlWGCILo93ozOMay/thRxq9b0dyJYpSE0b2R045B2HoW6Ma1XchCeRKze/YUh
EkaNl2TaG40s3ZieZi1YqfJM4PN6GMzarz6P9jYX9tB5yQkQ3tEornV0LpOt1DTd
O2t3qCH80dwjSSmrLKrJgUaV8fphFO6ndQA2nxCyA204YlqmZLJXN3n0cDOIyW3Z
2WxohGMgSwyaloPV7hwnFgzDu5slqQ==
=zAsG
-----END PGP SIGNATURE-----payloadtree 38b94ffa7c87256a31eee9258aad39e7fb3ce4c1
parent 7e76c60c4c3e157ff7b3ef1ca0f85c0c4e913e4b
author Lucas Meireles <meireles31@msn.com> 1688636908 +0100
committer Lucas Meireles <meireles31@msn.com> 1688636908 +0100

T -> Timestamp
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/e3224bd8a5b09ea0db03b52054b0afc0f6cc8994html_urlShttps://github.com/palantir/atlasdb/commit/e3224bd8a5b09ea0db03b52054b0afc0f6cc8994comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e3224bd8a5b09ea0db03b52054b0afc0f6cc8994/commentsjw }(loginLucasIMEidJg js MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j LucasIMEj Jg js MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsj Userj uparents]}(jq (7e76c60c4c3e157ff7b3ef1ca0f85c0c4e913e4bj ^https://api.github.com/repos/palantir/atlasdb/commits/7e76c60c4c3e157ff7b3ef1ca0f85c0c4e913e4bj Shttps://github.com/palantir/atlasdb/commit/7e76c60c4c3e157ff7b3ef1ca0f85c0c4e913e4buastats}(totalK	additionsK	deletionsKufiles]}(jq (ab8a84085232073169f8a92ef8d75613b08628e1filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e3224bd8a5b09ea0db03b52054b0afc0f6cc8994/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e3224bd8a5b09ea0db03b52054b0afc0f6cc8994/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=e3224bd8a5b09ea0db03b52054b0afc0f6cc8994patchX  @@ -1639,7 +1639,7 @@ public void validateLocksOnCommitIfEmptyReadsFollowedByNonEmptyReadsIfValidation
     }
 
     @Test
-    public void skipImmutableTLocksIfReadingEqualsExpectedNumberOfValuesEvenWhenRequestedMore() {
+    public void skipImmutableTimestampLocksIfReadingEqualsExpectedNumberOfValuesEvenWhenRequestedMore() {
         putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
 
         TimelockService spiedTimeLockService = spy(timelockService);
@@ -1657,7 +1657,7 @@ public void skipImmutableTLocksIfReadingEqualsExpectedNumberOfValuesEvenWhenRequ
     }
 
     @Test
-    public void performImmutableTLocksIfReadingLessThanExpectedNumberOfValues() {
+    public void performImmutableTimestampLocksIfReadingLessThanExpectedNumberOfValues() {
         putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
 
         TimelockService spiedTimeLockService = spy(timelockService);uau(fb57b4618d90c2b94dc0bc2af1d044484bdabc46}(sha(fb57b4618d90c2b94dc0bc2af1d044484bdabc46node_idEC_kwDOAjP5fdoAKGZiNTdiNDYxOGQ5MGMyYjk0ZGMwYmMyYWYxZDA0NDQ4NGJkYWJjNDYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-21T12:44:56Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-03-21T12:44:56Zumessagefix type namingtree}(j (70bc4c5ffa712caf1fccbd436ecf5a3f43415748url`https://api.github.com/repos/palantir/atlasdb/git/trees/70bc4c5ffa712caf1fccbd436ecf5a3f43415748uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fb57b4618d90c2b94dc0bc2af1d044484bdabc46
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQZpsgACgkQmPPOpKR4
XS2hDAgAqOJVOSopiRtbAY1bV/tKYuKV+hCrJ0/Zd9rSQIJxwvk36E8teixYutD6
nQmd94iDm6KyusJbf383a97r0djcrgvJG5p1Tw4IAWcAUP2L3s87iZXTPU1i4+GH
0Vns4+VoDD2v6KTIi4tvMi1IqFojuejpcRFhMhKobsSsfYNjLGEUmy1YQeC4XPOs
4azw7IJdkFmgrWSvazC2ljmLjUIfqgSmPtjPafA25y3t9DyGtT9YQoirWffFbVGX
Vp5MOjBK3rYnE9afcLOdfbVvtLZGi9Mh1gbO5F2INeMn8/dHZnF29XtpKVa316nV
KsdvocldtCl9sh6qFr+DJq3bX7pLhg==
=8IrX
-----END PGP SIGNATURE-----payloadtree 70bc4c5ffa712caf1fccbd436ecf5a3f43415748
parent 94f77f494e0a1f2f59662e9d7bcb33f41acad75f
author Sam Kramer <skramer@palantir.com> 1679402696 +0000
committer Sam Kramer <skramer@palantir.com> 1679402696 +0000

fix type naming
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/fb57b4618d90c2b94dc0bc2af1d044484bdabc46html_urlShttps://github.com/palantir/atlasdb/commit/fb57b4618d90c2b94dc0bc2af1d044484bdabc46comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fb57b4618d90c2b94dc0bc2af1d044484bdabc46/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j  'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j" >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j$ 5https://api.github.com/users/Sam-Kramer/subscriptionsj& ,https://api.github.com/users/Sam-Kramer/orgsj( -https://api.github.com/users/Sam-Kramer/reposj* 8https://api.github.com/users/Sam-Kramer/events{/privacy}j, 7https://api.github.com/users/Sam-Kramer/received_eventsj. Userj0 uparents]}(j (94f77f494e0a1f2f59662e9d7bcb33f41acad75fj  ^https://api.github.com/repos/palantir/atlasdb/commits/94f77f494e0a1f2f59662e9d7bcb33f41acad75fj Shttps://github.com/palantir/atlasdb/commit/94f77f494e0a1f2f59662e9d7bcb33f41acad75fuastats}(totalK	additionsK	deletionsKufiles]}(j (68e4a118ee1dbb9012da769c64aa3cb5d16096f9filenamedatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowRunner.javastatusmodifiedjJ KjK KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/fb57b4618d90c2b94dc0bc2af1d044484bdabc46/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowRunner.javaraw_urlhttps://github.com/palantir/atlasdb/raw/fb57b4618d90c2b94dc0bc2af1d044484bdabc46/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowRunner.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowRunner.java?ref=fb57b4618d90c2b94dc0bc2af1d044484bdabc46patchX  @@ -25,6 +25,6 @@
  * The idea of this class is that long-term we will want to have multiple ways to run/execute workflows,
  * rather than biasing towards the present case (just once).
  */
-public interface WorkflowRunner<WorkflowType extends Workflow> {
-    void run(WorkflowType workflow, List<InvariantReporter<?>> invariantReporters);
+public interface WorkflowRunner<WorkflowTypeT extends Workflow> {
+    void run(WorkflowTypeT workflow, List<InvariantReporter<?>> invariantReporters);
 }uau(40ffcbca6aaaa628af13a2ac8215c9c3e8c7d378}(sha(40ffcbca6aaaa628af13a2ac8215c9c3e8c7d378node_idEC_kwDOAjP5fdoAKDQwZmZjYmNhNmFhYWE2MjhhZjEzYTJhYzgyMTVjOWMzZThjN2QzNzgcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-19T23:58:20Zu	committer}(jg 
Ahmed Alouaneji aalouane@palantir.comjk 2023-04-19T23:58:20Zumessagewill this actually worktree}(j_ (4c196db99067bcb3c19e7f1bd0a54599de587e5curl`https://api.github.com/repos/palantir/atlasdb/git/trees/4c196db99067bcb3c19e7f1bd0a54599de587e5cujw bhttps://api.github.com/repos/palantir/atlasdb/git/commits/40ffcbca6aaaa628af13a2ac8215c9c3e8c7d378
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRAgBwACgkQPlMHVIT1
yhrtjgf/SeDU46MKDYEkMwpEpxsNfrp/60A78EcSR4upzmFpO1nv5rqnb4pcP9Ae
f6aC9NGzUmQ9U9pjnCjrZ99qoGznc70YI7q6ruKP7tJw87gw583aAfwNrtv0IiwF
RkMb7g6uN+GvGexbFHZin+ZwWV4XFnHUI+RJ0uwV1UIR8k3mS/IEzZkoOjCcT4dB
o8UGbPDCz+g4YNbopPtGUMQWPZ8rCSl2jWe1VBhYBHrsXtgCbNTNoQT4ez126ciK
bg0g549f5m8BvyyXUohOn/dAiaeRuvucrPRf4xGBxvDwz+aGblzbgJa0dgyjvzaR
1nXuhtKloYLZOrxfNwXKZBtY9dl/OA==
=W7sS
-----END PGP SIGNATURE-----payloadtree 4c196db99067bcb3c19e7f1bd0a54599de587e5c
parent 26bb6241d4013aea8464a123dc81a9b154cba6df
author Ahmed Alouane <aalouane@palantir.com> 1681948700 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1681948700 +0100

will this actually work
uujw ^https://api.github.com/repos/palantir/atlasdb/commits/40ffcbca6aaaa628af13a2ac8215c9c3e8c7d378html_urlShttps://github.com/palantir/atlasdb/commit/40ffcbca6aaaa628af13a2ac8215c9c3e8c7d378comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/40ffcbca6aaaa628af13a2ac8215c9c3e8c7d378/commentsje }(loginergo14idJja MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jw #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujm }(j ergo14j Jja MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5jw #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j_ (26bb6241d4013aea8464a123dc81a9b154cba6dfjw ^https://api.github.com/repos/palantir/atlasdb/commits/26bb6241d4013aea8464a123dc81a9b154cba6dfj Shttps://github.com/palantir/atlasdb/commit/26bb6241d4013aea8464a123dc81a9b154cba6dfuastats}(totalK	additionsK	deletionsKufiles]}(j_ (9865bf4b7d8530ebe1b5bc1b66fa61bc6cb63e69filename.circleci/config.ymlstatusmodifiedj Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/40ffcbca6aaaa628af13a2ac8215c9c3e8c7d378/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/40ffcbca6aaaa628af13a2ac8215c9c3e8c7d378/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=40ffcbca6aaaa628af13a2ac8215c9c3e8c7d378patchX<  @@ -33,8 +33,8 @@ jobs:
 
   test:
     parallelism: 12
-    machine:
-      image: ubuntu-2004:202111-02
+    machine: true
+      # image: ubuntu-2004:202111-02
     resource_class: 2xlarge+
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=falseuau(9d61cc75576ad21444f08998003af2f38906a3b4}(sha(9d61cc75576ad21444f08998003af2f38906a3b4node_idEC_kwDOAjP5fdoAKDlkNjFjYzc1NTc2YWQyMTQ0NGYwODk5ODAwM2FmMmYzODkwNmEzYjQcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-08-01T16:30:23Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-08-01T16:30:23Zumessagespotlesstree}(j (78bc78bfb70dae6494662d97c8d8c6633cdcd5aaurl`https://api.github.com/repos/palantir/atlasdb/git/trees/78bc78bfb70dae6494662d97c8d8c6633cdcd5aauj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9d61cc75576ad21444f08998003af2f38906a3b4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmTJMx8ACgkQJd22kJ7J
GiywuggA4lqdLONgIcqqF1BbgItxdSmO2vANzbZ+LuQiyQxsFzjHqMsOVRdfC2kg
2RpSv0NOH4smbA9mXjTEPpPjiDN07gox62Lq3Zk6vNlvDtoKncHB73ANFv5aBAcS
BFutA8N2O3EWPcs7RrnA2Za9Uzc2JvWy48H7AzuAsMZPPi0j3GSUmJWc2Hd2077T
BewbEpZGqh07O6DRhEgdZD+azl+H66xF7dNDCwat3JlSAs7DJtldSQ1LKQym7ow/
RRq05T+GKPWKifKVb055PAQjMGvNj84cNNE+t8yZd/RC+oI/cnEbmgEyPhDpDXzM
9EiciodL8pzNKWRL+O/rj+SSBUItVg==
=uE/M
-----END PGP SIGNATURE-----payloadtree 78bc78bfb70dae6494662d97c8d8c6633cdcd5aa
parent e147c1498a20982bf2da68dbde5e6ccdf6d41dc9
author Lucas Meireles <meireles31@msn.com> 1690907423 +0100
committer Lucas Meireles <meireles31@msn.com> 1690907423 +0100

spotless
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/9d61cc75576ad21444f08998003af2f38906a3b4html_urlShttps://github.com/palantir/atlasdb/commit/9d61cc75576ad21444f08998003af2f38906a3b4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9d61cc75576ad21444f08998003af2f38906a3b4/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j LucasIMEj Jg j MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj
 /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsj Userj uparents]}(j (e147c1498a20982bf2da68dbde5e6ccdf6d41dc9j ^https://api.github.com/repos/palantir/atlasdb/commits/e147c1498a20982bf2da68dbde5e6ccdf6d41dc9j Shttps://github.com/palantir/atlasdb/commit/e147c1498a20982bf2da68dbde5e6ccdf6d41dc9uastats}(totalK	additionsK	deletionsKufiles](}(j (e5d13e135c2e9275480655516898bc560a7920a8filenametatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/exceptions/MoreCellsPresentThanExpectedException.javastatusmodifiedj8 Kj9 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9d61cc75576ad21444f08998003af2f38906a3b4/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexceptions%2FMoreCellsPresentThanExpectedException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9d61cc75576ad21444f08998003af2f38906a3b4/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexceptions%2FMoreCellsPresentThanExpectedException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexceptions%2FMoreCellsPresentThanExpectedException.java?ref=9d61cc75576ad21444f08998003af2f38906a3b4patchX  @@ -57,7 +57,8 @@ public List<Arg<?>> getArgs() {
         return arguments;
     }
 
-    @Unsafe private static List<Arg<?>> argsFrom(Map<Cell, byte[]> retrievedCells, long expectedNumberOfCells) {
+    @Unsafe
+    private static List<Arg<?>> argsFrom(Map<Cell, byte[]> retrievedCells, long expectedNumberOfCells) {
         return List.of(
                 SafeArg.of("expectedNumberOfCells", expectedNumberOfCells),
                 SafeArg.of("numberOfCellsRetrieved", retrievedCells.size()),u}(j (256d3c35afae16bf6c3146a3eafa5a55dba2d21dj> patlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/expectations/CellCountValidatorTest.javaj@ modifiedj8 Kj9 KjB KjC https://github.com/palantir/atlasdb/blob/9d61cc75576ad21444f08998003af2f38906a3b4/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FCellCountValidatorTest.javajE https://github.com/palantir/atlasdb/raw/9d61cc75576ad21444f08998003af2f38906a3b4/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FCellCountValidatorTest.javajG https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FCellCountValidatorTest.java?ref=9d61cc75576ad21444f08998003af2f38906a3b4jI X%  @@ -159,4 +159,4 @@ private Map<Cell, CacheValue> cacheCellMapOf(String key, String value) {
     private Map<Cell, CacheValue> toCached(Map<Cell, byte[]> presentValues) {
         return EntryStream.of(presentValues).mapValues(CacheValue::of).toMap();
     }
-}
\ No newline at end of file
+}ueu(0e14f67617dd788589625ee19cec2170efae2ee4}(sha(0e14f67617dd788589625ee19cec2170efae2ee4node_idEC_kwDOAjP5fdoAKDBlMTRmNjc2MTdkZDc4ODU4OTYyNWVlMTljZWMyMTcwZWZhZTJlZTQcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-04-13T19:17:19Zu	committer}(j] svc-autoreleasej_ -pd-foundry-infrastructure-notify@palantir.comja 2023-04-13T19:17:19ZumessageAutorelease 0.836.0

[skip ci]tree}(jU (7599cbb329288cccd4e3a2a7c83d85a0bd18c624url`https://api.github.com/repos/palantir/atlasdb/git/trees/7599cbb329288cccd4e3a2a7c83d85a0bd18c624ujm bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0e14f67617dd788589625ee19cec2170efae2ee4
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQ4VUUACgkQhbrR8ip7mDDNsAD/Zhy4+Xu+wUyM1xJ/JJSFxaPt
ruHYH2jtBr+ZCR8ekyUA/ikc9CguFmmRJzVFELpRN3wl2oHpVuWlB/NR9jc9blNG
=dvMP
-----END PGP SIGNATURE-----
payloadX0  tree 7599cbb329288cccd4e3a2a7c83d85a0bd18c624
parent 58a31e4d48ac138a0ec5e2186c4582a2a89dd72e
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1681413439 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1681413439 +0000

Autorelease 0.836.0

[skip ci]uujm ^https://api.github.com/repos/palantir/atlasdb/commits/0e14f67617dd788589625ee19cec2170efae2ee4html_urlShttps://github.com/palantir/atlasdb/commit/0e14f67617dd788589625ee19cec2170efae2ee4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0e14f67617dd788589625ee19cec2170efae2ee4/commentsj[ }(loginsvc-autoreleaseidJ(jW MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5jm ,https://api.github.com/users/svc-autoreleasej{ "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminujc }(j svc-autoreleasej J(jW MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5jm ,https://api.github.com/users/svc-autoreleasej{ "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(jU (58a31e4d48ac138a0ec5e2186c4582a2a89dd72ejm ^https://api.github.com/repos/palantir/atlasdb/commits/58a31e4d48ac138a0ec5e2186c4582a2a89dd72ej{ Shttps://github.com/palantir/atlasdb/commit/58a31e4d48ac138a0ec5e2186c4582a2a89dd72euastats}(totalK 	additionsK 	deletionsK ufiles]}(jU (1d48df051a7627207eae8887272331c4921a8011filename changelog/0.836.0/pr-6516.v2.ymlstatusrenamedj K j K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/0e14f67617dd788589625ee19cec2170efae2ee4/changelog%2F0.836.0%2Fpr-6516.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/0e14f67617dd788589625ee19cec2170efae2ee4/changelog%2F0.836.0%2Fpr-6516.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.836.0%2Fpr-6516.v2.yml?ref=0e14f67617dd788589625ee19cec2170efae2ee4previous_filename$changelog/@unreleased/pr-6516.v2.ymluau(3d877c5c7bc7202ab2b180034e36e36fd00a82c1}(sha(3d877c5c7bc7202ab2b180034e36e36fd00a82c1node_idEC_kwDOAjP5fdoAKDNkODc3YzVjN2JjNzIwMmFiMmIxODAwMzRlMzZlMzZmZDAwYTgyYzEcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-16T08:23:44Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-16T08:23:44Zumessageplumpytree}(j (f5521ddd550cada7d3f1eae7720a2c41b7fc2a03url`https://api.github.com/repos/palantir/atlasdb/git/trees/f5521ddd550cada7d3f1eae7720a2c41b7fc2a03uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3d877c5c7bc7202ab2b180034e36e36fd00a82c1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRjPZAACgkQPlMHVIT1
yhrXlAf/dT/LnwQJ/8isX1YPtK1at/ZnZj8EKMdFfYHHvLu4KXbEpA7ywyxqGfLx
S7hr3t8PaWHYQQgQuWhrKRwUtRyhYp3u/ZfH1EVxo+UleubDJV0KI5yKkEQLFpwX
XjdIcQeC1AtyE3ONc7hphvDJWNr/Hhqizip7iWsFmzNBV9lCK21560vnSAQ/ldZ5
s9d6q89t0ezISROzmmT3F/Q26S4lHfHQ73TGaniJeTGOTXw928EzYOTaQrkiJ8g9
CoC2+0DVTYfzL+W2TuGPY9zyLhwkK1pQEG7YpJrJU3wFH08kBiNSLiwnTwKS/NF2
8fsrKj3mXeUa2C++L96UIgw95KPxew==
=MPrE
-----END PGP SIGNATURE-----payloadtree f5521ddd550cada7d3f1eae7720a2c41b7fc2a03
parent fdeebf694696a3c9a4c2641ff09d53512ba43195
author Ahmed Alouane <aalouane@palantir.com> 1684225424 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684225424 +0100

plumpy
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/3d877c5c7bc7202ab2b180034e36e36fd00a82c1html_urlShttps://github.com/palantir/atlasdb/commit/3d877c5c7bc7202ab2b180034e36e36fd00a82c1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3d877c5c7bc7202ab2b180034e36e36fd00a82c1/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j  -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj
 (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j (fdeebf694696a3c9a4c2641ff09d53512ba43195j ^https://api.github.com/repos/palantir/atlasdb/commits/fdeebf694696a3c9a4c2641ff09d53512ba43195j Shttps://github.com/palantir/atlasdb/commit/fdeebf694696a3c9a4c2641ff09d53512ba43195uastats}(totalK	additionsK	deletionsKufiles]}(j (0d992bb5277c380a0562427f81a5b508dfffb330filename.circleci/config.ymlstatusmodifiedj. Kj/ KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/3d877c5c7bc7202ab2b180034e36e36fd00a82c1/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/3d877c5c7bc7202ab2b180034e36e36fd00a82c1/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=3d877c5c7bc7202ab2b180034e36e36fd00a82c1patchX  @@ -112,7 +112,7 @@ jobs:
   deploy:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: xlarge
+    resource_class: 2xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"uau(556a0a85a7424531ce43b62423c44e2571bd3c83}(sha(556a0a85a7424531ce43b62423c44e2571bd3c83node_idEC_kwDOAjP5fdoAKDU1NmEwYTg1YTc0MjQ1MzFjZTQzYjYyNDIzYzQ0ZTI1NzFiZDNjODMcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-05-23T14:50:08Zu	committer}(jK GitHubjM noreply@github.comjO 2023-05-23T14:50:08ZumessagezLower gc grace for C* tables for antithesis workflows/tests (#6586)

Lower gc grace for C* tables for antithesis workflowstree}(jC (01d8f1b2b340ce79dedd7eb807c31a198306c2ccurl`https://api.github.com/repos/palantir/atlasdb/git/trees/01d8f1b2b340ce79dedd7eb807c31a198306c2ccuj[ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/556a0a85a7424531ce43b62423c44e2571bd3c83
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkbNKgCRBK7hj4Ov3rIwAAQiUIADl/+RAQ6ieurN3ZgENvRsio
9DtRBJfiH5uo71/S8N+MzwjNERpmJl3CNTcJde2CyK4wYTY+d4kyJV7zF0u6Gaxs
sg0yT2TIZP6DI06+tCklAxSGq5z9hTBO/MFDlXHC9JTM0U+vRuLrJK+s1R9Yny0Y
MUJoFbyjSk8qHUr5dqCE51kmkrBfv0/f6WfwtN5xPFz0ktrw4BtF8ooDCCIhNYw2
XXPZlLDTSFA8zjL1liurUutMNgDSVPkR693vQ4mVHvNpg0SUVj+ugkwNoC6vXF3L
L4NzBxCIr9e6z0mlhcfIoJ+RCA19Vcxxzcuxq5Y4p9IiadDz3pahaQ9e1yis4hQ=
=IY41
-----END PGP SIGNATURE-----
payloadXM  tree 01d8f1b2b340ce79dedd7eb807c31a198306c2cc
parent 319538c088318a3ed50aa9d8d1e0b36a2aba0295
author Sam-Kramer <sam.c.kramer@gmail.com> 1684853408 +0100
committer GitHub <noreply@github.com> 1684853408 +0000

Lower gc grace for C* tables for antithesis workflows/tests (#6586)

Lower gc grace for C* tables for antithesis workflows
uuj[ ^https://api.github.com/repos/palantir/atlasdb/commits/556a0a85a7424531ce43b62423c44e2571bd3c83html_urlShttps://github.com/palantir/atlasdb/commit/556a0a85a7424531ce43b62423c44e2571bd3c83comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/556a0a85a7424531ce43b62423c44e2571bd3c83/commentsjI }(login
Sam-KrameridJ^2_ jE MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j[ 'https://api.github.com/users/Sam-Kramerji https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujQ }(jn web-flowjp J/jE MDQ6VXNlcjE5ODY0NDQ3jr 4https://avatars.githubusercontent.com/u/19864447?v=4jt h5j[ %https://api.github.com/users/web-flowji https://github.com/web-flowjw /https://api.github.com/users/web-flow/followersjy <https://api.github.com/users/web-flow/following{/other_user}j{ 5https://api.github.com/users/web-flow/gists{/gist_id}j} <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(jC (319538c088318a3ed50aa9d8d1e0b36a2aba0295j[ ^https://api.github.com/repos/palantir/atlasdb/commits/319538c088318a3ed50aa9d8d1e0b36a2aba0295ji Shttps://github.com/palantir/atlasdb/commit/319538c088318a3ed50aa9d8d1e0b36a2aba0295uastats}(totalK	additionsK	deletionsK ufiles]}(jC (4b9c2ec5d183466cdcb37caf35afaee986d31c17filenameTatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlstatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/556a0a85a7424531ce43b62423c44e2571bd3c83/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/556a0a85a7424531ce43b62423c44e2571bd3c83/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=556a0a85a7424531ce43b62423c44e2571bd3c83patch@@ -37,6 +37,7 @@ install:
         password: cassandra
       ssl: false
       replicationFactor: 3
+      gcGraceSeconds: 300
     targetedSweep:
       enableSweepQueueWrites: true
     namespace: workload_serveruau(835ccdfee183a7ac97ca99e097471e2d44168047}(sha(835ccdfee183a7ac97ca99e097471e2d44168047node_idEC_kwDOAjP5fdoAKDgzNWNjZGZlZTE4M2E3YWM5N2NhOTllMDk3NDcxZTJkNDQxNjgwNDccommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-04-03T18:17:12Zu	committer}(j GitHubj noreply@github.comj 2023-04-03T18:17:12ZumessageImprove DB KVS default config (#6499)

* Improve DB KVS default config

* Add generated changelog entries

* Use isValid to test connections by default

---------

Co-authored-by: svc-changelog <svc-changelog@palantir.com>tree}(j (d2c1bbe8780aa74a1c7e807824ad8ef838f44d9durl`https://api.github.com/repos/palantir/atlasdb/git/trees/d2c1bbe8780aa74a1c7e807824ad8ef838f44d9duj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/835ccdfee183a7ac97ca99e097471e2d44168047
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkKxgoCRBK7hj4Ov3rIwAAfSUIAKyBcUPz/jMJfKPDWg0oUcWx
/9kmF7llbRbm4L9gZ5Ppk0TDplVy2onEti1qYX5Wmq59pHa9oP5b6P56Caf+OtzN
xPByuFFYWI4Ra2jxoin6wuOAimMj7ec5k8aRxxHsiKESty4S60gLp1eWUcUJLzxa
/4fRGYsM2ZFZmZKz3TYV41s+vf/J5hTHorysDpI/oljSCnhnb+q1XHqucvssVyBv
jywm/pCB87S4eqrOo62HSfnt5BfIb4YjKhONhdUmdZRsTr+T7ZNEN4wD0ESmQmyI
oGcC0PAD+8NSgGHipYoKRuI1orWoytPemSmbmP74L7Yxm4GVtV202SWLSSX2An8=
=7DHR
-----END PGP SIGNATURE-----
payloadX  tree d2c1bbe8780aa74a1c7e807824ad8ef838f44d9d
parent 149c6eb09b18fb7bf7719b095e476d7825fd7792
author Patrick Koenig <pkoenig10@gmail.com> 1680545832 -0700
committer GitHub <noreply@github.com> 1680545832 +0800

Improve DB KVS default config (#6499)

* Improve DB KVS default config

* Add generated changelog entries

* Use isValid to test connections by default

---------

Co-authored-by: svc-changelog <svc-changelog@palantir.com>uuj ^https://api.github.com/repos/palantir/atlasdb/commits/835ccdfee183a7ac97ca99e097471e2d44168047html_urlShttps://github.com/palantir/atlasdb/commit/835ccdfee183a7ac97ca99e097471e2d44168047comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/835ccdfee183a7ac97ca99e097471e2d44168047/commentsj }(login	pkoenig10idJLvP j MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5j &https://api.github.com/users/pkoenig10j https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj  Userj uparents]}(j (149c6eb09b18fb7bf7719b095e476d7825fd7792j ^https://api.github.com/repos/palantir/atlasdb/commits/149c6eb09b18fb7bf7719b095e476d7825fd7792j Shttps://github.com/palantir/atlasdb/commit/149c6eb09b18fb7bf7719b095e476d7825fd7792uastats}(totalK!	additionsK	deletionsKufiles](}(j (fa0abb8e2533a26b49003b3fb3c3acb92f58f9adfilenameZatlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/ConnectionConfig.javastatusmodifiedj Kj KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/835ccdfee183a7ac97ca99e097471e2d44168047/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javaraw_urlhttps://github.com/palantir/atlasdb/raw/835ccdfee183a7ac97ca99e097471e2d44168047/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.java?ref=835ccdfee183a7ac97ca99e097471e2d44168047patchX#  @@ -58,7 +58,10 @@ public MaskedValue getDbPassword() {
 
     public abstract String getDriverClass();
 
-    public abstract String getTestQuery();
+    @Value.Default
+    public String getTestQuery() {
+        return "";
+    }
 
     @JsonIgnore
     @Value.Derived
@@ -132,7 +135,7 @@ public String getConnectionPoolName() {
 
     @Value.Default
     public boolean testConnectionBeforeHandout() {
-        return true;
+        return false;
     }
 
     /**
@@ -182,7 +185,7 @@ public HikariConfig getHikariConfig() {
 
         initializeFailTimeoutMillis().ifPresent(config::setInitializationFailTimeout);
 
-        if (getTestQuery() != null && !getTestQuery().isEmpty()) {
+        if (!getTestQuery().isEmpty()) {
             config.setConnectionTestQuery(getTestQuery());
         }
 u}(j (a2ad768a82efd1e1c312c4709fc4d57be8af1b8ej" \atlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/H2ConnectionConfig.javaj$ modifiedj K j Kj& Kj' https://github.com/palantir/atlasdb/blob/835ccdfee183a7ac97ca99e097471e2d44168047/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FH2ConnectionConfig.javaj) https://github.com/palantir/atlasdb/raw/835ccdfee183a7ac97ca99e097471e2d44168047/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FH2ConnectionConfig.javaj+ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FH2ConnectionConfig.java?ref=835ccdfee183a7ac97ca99e097471e2d44168047j- X!  @@ -50,12 +50,6 @@ public String getDriverClass() {
         return "org.h2.Driver";
     }
 
-    @Override
-    @Value.Default
-    public String getTestQuery() {
-        return "SELECT 1";
-    }
-
     @Override
     public final DBType getDbType() {
         return DBType.H2_MEMORY;u}(j (41a91b3af333f4beb327239129f2b5db59d5dc2ej" `atlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/OracleConnectionConfig.javaj$ modifiedj K j Kj& Kj' https://github.com/palantir/atlasdb/blob/835ccdfee183a7ac97ca99e097471e2d44168047/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FOracleConnectionConfig.javaj) https://github.com/palantir/atlasdb/raw/835ccdfee183a7ac97ca99e097471e2d44168047/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FOracleConnectionConfig.javaj+ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FOracleConnectionConfig.java?ref=835ccdfee183a7ac97ca99e097471e2d44168047j- XY  @@ -88,12 +88,6 @@ public String getDriverClass() {
         return "oracle.jdbc.driver.OracleDriver";
     }
 
-    @Override
-    @Value.Default
-    public String getTestQuery() {
-        return "";
-    }
-
     public abstract Optional<String> getSid();
 
     public abstract Optional<ServiceNameConfiguration> serviceNameConfiguration();u}(j (814cb717b3d8c2d5aeb4ff0368d10e7cb32fa81dj" batlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/PostgresConnectionConfig.javaj$ 2	     modifiedj K j Kj& Kj' https://github.com/palantir/atlasdb/blob/835ccdfee183a7ac97ca99e097471e2d44168047/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FPostgresConnectionConfig.javaj) https://github.com/palantir/atlasdb/raw/835ccdfee183a7ac97ca99e097471e2d44168047/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FPostgresConnectionConfig.javaj+ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FPostgresConnectionConfig.java?ref=835ccdfee183a7ac97ca99e097471e2d44168047j- X  @@ -66,12 +66,6 @@ public String getDriverClass() {
         return "org.postgresql.Driver";
     }
 
-    @Override
-    @Value.Default
-    public String getTestQuery() {
-        return "SELECT 1";
-    }
-
     public abstract String getDbName();
 
     @Overrideu}(j (5f61b2bef5ebfcacc253aaa5cda9840887460417j" $changelog/@unreleased/pr-6499.v2.ymlj$ addedj Kj K j& Kj' |https://github.com/palantir/atlasdb/blob/835ccdfee183a7ac97ca99e097471e2d44168047/changelog%2F%40unreleased%2Fpr-6499.v2.ymlj) {https://github.com/palantir/atlasdb/raw/835ccdfee183a7ac97ca99e097471e2d44168047/changelog%2F%40unreleased%2Fpr-6499.v2.ymlj+ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6499.v2.yml?ref=835ccdfee183a7ac97ca99e097471e2d44168047j- @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Disable AtlasDB DB connection testing by default in favor of relying
+    on Hikari's connection testing.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6499ueu(62cdcb1dda1fa7a5ea18e88e344a6455edbed055}(sha(62cdcb1dda1fa7a5ea18e88e344a6455edbed055node_idEC_kwDOAjP5fdoAKDYyY2RjYjFkZGExZmE3YTVlYTE4ZTg4ZTM0NGE2NDU1ZWRiZWQwNTUcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-05-05T18:17:13Zu	committer}(jY svc-autoreleasej[ -pd-foundry-infrastructure-notify@palantir.comj] 2023-05-05T18:17:13ZumessageAutorelease 0.849.0

[skip ci]tree}(jQ (7db7d0ef51bf77b6e47c8fba6a479ddd9a457e85url`https://api.github.com/repos/palantir/atlasdb/git/trees/7db7d0ef51bf77b6e47c8fba6a479ddd9a457e85uji bhttps://api.github.com/repos/palantir/atlasdb/git/commits/62cdcb1dda1fa7a5ea18e88e344a6455edbed055
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRVSC0ACgkQhbrR8ip7mDB6HwD8D+CAk6neAwZEJ1n6b3XaGBDH
zhv3GWgb7lpYRM1Q0WMA/1SBvaraRTZTW0wcHHWggmHtt8/UDrKFDFUUCM0p5lS0
=P1IC
-----END PGP SIGNATURE-----
payloadX0  tree 7db7d0ef51bf77b6e47c8fba6a479ddd9a457e85
parent acf61cc4484e348b86445324e858eb1093c2dfb3
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1683310633 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1683310633 +0000

Autorelease 0.849.0

[skip ci]uuji ^https://api.github.com/repos/palantir/atlasdb/commits/62cdcb1dda1fa7a5ea18e88e344a6455edbed055html_urlShttps://github.com/palantir/atlasdb/commit/62cdcb1dda1fa7a5ea18e88e344a6455edbed055comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/62cdcb1dda1fa7a5ea18e88e344a6455edbed055/commentsjW }(loginsvc-autoreleaseidJ(jS MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5ji ,https://api.github.com/users/svc-autoreleasejw "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj_ }(j| svc-autoreleasej~ J(jS MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5ji ,https://api.github.com/users/svc-autoreleasejw "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(jQ (acf61cc4484e348b86445324e858eb1093c2dfb3ji ^https://api.github.com/repos/palantir/atlasdb/commits/acf61cc4484e348b86445324e858eb1093c2dfb3jw Shttps://github.com/palantir/atlasdb/commit/acf61cc4484e348b86445324e858eb1093c2dfb3uastats}(totalK 	additionsK 	deletionsK ufiles]}(jQ (b4f0f9cfa1631ef560d32a317b1d9e42a3cac71ffilename changelog/0.849.0/pr-6562.v2.ymlstatusrenamedj K j K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/62cdcb1dda1fa7a5ea18e88e344a6455edbed055/changelog%2F0.849.0%2Fpr-6562.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/62cdcb1dda1fa7a5ea18e88e344a6455edbed055/changelog%2F0.849.0%2Fpr-6562.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.849.0%2Fpr-6562.v2.yml?ref=62cdcb1dda1fa7a5ea18e88e344a6455edbed055previous_filename$changelog/@unreleased/pr-6562.v2.ymluau(78a0cd5dcf1124f346de5f1dbc389a4768c4ef9d}(sha(78a0cd5dcf1124f346de5f1dbc389a4768c4ef9dnode_idEC_kwDOAjP5fdoAKDc4YTBjZDVkY2YxMTI0ZjM0NmRlNWYxZGJjMzg5YTQ3NjhjNGVmOWQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-03T16:38:58Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-07-03T16:38:58Zumessage'spot sopt psot post stop opts pots topstree}(j (13f0a422f591d98856eef8e413bd7c7ce9095224url`https://api.github.com/repos/palantir/atlasdb/git/trees/13f0a422f591d98856eef8e413bd7c7ce9095224uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/78a0cd5dcf1124f346de5f1dbc389a4768c4ef9d
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSi+aIACgkQTLdFKain
zjwGOAgAja8/D8OLWz/HzWKQaVjvLvHvJnWRYbkfapVmfZFgD5cJHMeEqyvIsxHf
QSUnuDvnkHBybpOUPiyMQGhB3vB4dGsu6I2JTcV2Ue2HMNo0o01VFWAPQDa96bRs
umrBqs302YpTfN7q6zuFAcSukdOPM5hH6hcAU/+RF7wQBh26W4mSIv2sk8kR8aHT
mUOOjz04juyWK/Mi3wgiSineerKjzDjURlZC/qf31oJibAKle6d2gcAAi2Dsktc8
bIwp7HvAurreSUTLH9FCQkOvmhliWzJxwCCHOjIf8G8Sxs8yq0wzDC3rKtNL53N6
pl5seO7MzrEkzQJRnDpDW2BT1iGTIw==
=wGdV
-----END PGP SIGNATURE-----payloadtree 13f0a422f591d98856eef8e413bd7c7ce9095224
parent 81351c1c95f7a520e9dd34ec97f400eb04e0c547
author Jeremy Kong <jkong@palantir.com> 1688402338 +0100
committer Jeremy Kong <jkong@palantir.com> 1688402338 +0100

spot sopt psot post stop opts pots tops
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/78a0cd5dcf1124f346de5f1dbc389a4768c4ef9dhtml_urlShttps://github.com/palantir/atlasdb/commit/78a0cd5dcf1124f346de5f1dbc389a4768c4ef9dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/78a0cd5dcf1124f346de5f1dbc389a4768c4ef9d/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j  7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj
 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j (81351c1c95f7a520e9dd34ec97f400eb04e0c547j ^https://api.github.com/repos/palantir/atlasdb/commits/81351c1c95f7a520e9dd34ec97f400eb04e0c547j Shttps://github.com/palantir/atlasdb/commit/81351c1c95f7a520e9dd34ec97f400eb04e0c547uastats}(totalK	additionsKI	deletionsKOufiles](}(j (b2c905aecbadb5eff96bc5dbc26f890c72dbd00cfilenameatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javastatusmodifiedj* Kj+ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/78a0cd5dcf1124f346de5f1dbc389a4768c4ef9d/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/78a0cd5dcf1124f346de5f1dbc389a4768c4ef9d/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javacontents_urlX  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=78a0cd5dcf1124f346de5f1dbc389a4768c4ef9dpatchXW	  @@ -33,14 +33,14 @@ public class WitnessedRowColumnRangeReadTransactionActionTest {
     @Test
     public void canCreateWitness() {
         assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
-                .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                        .table("foo")
-                        .row(1)
-                        .columnRangeSelection(
-                                ColumnRangeSelection.builder().build())
+                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
                         .build())
-                .build())
                 .doesNotThrowAnyException();
     }
 
@@ -54,14 +54,14 @@ public void cannotCreateWitnessWithDuplicateColumns() {
                 ColumnValue.of(9, 99));
 
         assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                .addAllColumnsAndValues(columnsAndValues)
-                .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                        .table("foo")
-                        .row(1)
-                        .columnRangeSelection(
-                                ColumnRangeSelection.builder().build())
+                        .addAllColumnsAndValues(columnsAndValues)
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
                         .build())
-                .build())
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Duplicate columns in columnsAndValues")
                 .hasExactlyArgs(u}(j (bad62fdfc0f4e5f5e54e27631b446f28ca159cc1j0 latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj2 modifiedj* K j+ Kj4 Kj5 https://github.com/palantir/atlasdb/blob/78a0cd5dcf1124f346de5f1dbc389a4768c4ef9d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj7 https://github.com/palantir/atlasdb/raw/78a0cd5dcf1124f346de5f1dbc389a4768c4ef9d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj9 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=78a0cd5dcf1124f346de5f1dbc389a4768c4ef9dj; Xz  @@ -26,7 +26,6 @@
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;u}(j (fa09be03657e9803b074bbd56a9b7fd8b045da62j0 katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReader.javaj2 modifiedj* Kj+ Kj4 Kj5 https://github.com/palantir/atlasdb/blob/78a0cd5dcf1124f346de5f1dbc389a4768c4ef9d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj7 https://github.com/palantir/atlasdb/raw/78a0cd5dcf1124f346de5f1dbc389a4768c4ef9d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj9 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.java?ref=78a0cd5dcf1124f346de5f1dbc389a4768c4ef9dj; X&  @@ -22,10 +22,6 @@
 import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeRuntimeException;
-import com.palantir.atlasdb.workload.store.ColumnValue;
-import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
-import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import io.vavr.collection.Map;
@@ -60,8 +56,8 @@ public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTrans
         if (allValues.size() > LARGE_HISTORY_LIMIT) {
             log.error(
                     "Attempted to do range queries in a simple way, even though the history is large ({} entries)! If"
-                            + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
-                            + " efficient range query implementation.",
+                        + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
+                        + " efficient range query implementation.",
                     SafeArg.of("size", allValues.size()));
         }
         return allValuesu}(j (461cdd058f7b1d94f60003aa74ed1f6caed5e9b0j0 patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj2 modifiedj* K&j+ K&j4 KLj5 https://github.com/palantir/atlasdb/blob/78a0cd5dcf1124f346de5f1dbc389a4768c4ef9d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj7 https://github.com/palantir/atlasdb/raw/78a0cd5dcf1124f346de5f1dbc389a4768c4ef9d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj9 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=78a0cd5dcf1124f346de5f1dbc389a4768c4ef9dj; X+  @@ -59,10 +59,10 @@ public void before() {
     @Test
     public void witnessRecordsAllSingleCellActions() {
         assertThat(readWrite(transaction -> {
-            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-            transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
-        }))
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
@@ -72,10 +72,10 @@ public void witnessRecordsAllSingleCellActions() {
     @Test
     public void readHandlesEmptyAndPresentValue() {
         assertThat(readWrite(transaction -> {
-            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-            transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
-            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-        }))
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
                 .containsExactly(
                         WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
@@ -85,9 +85,9 @@ public void readHandlesEmptyAndPresentValue() {
     @Test
     public void witnessRecordsColumnRangeActions() {
         assertThat(readWrite(transaction -> {
-            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-            transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
-        }))
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+                }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedRowColumnRangeReadTransactionAction.builder()
@@ -103,8 +103,8 @@ public void witnessRecordsColumnRangeActions() {
     @Test
     public void emptyColumnRangeReadsAreRecorded() {
         assertThat(readWrite(transaction -> {
-            transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
-        }))
+                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+                }))
                 .containsExactly(WitnessedRowColumnRangeReadTransactionAction.builder()
                         .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                 .table(TABLE_1)
@@ -118,11 +118,11 @@ public void emptyColumnRangeReadsAreRecorded() {
     public void allRelevantCellsAreRecordedForFullColumnScan() {
         int iterationCount = 1000;
         assertThat(readWrite(transaction -> {
-            IntStream.range(0, iterationCount)
-                    .forEach(column ->
-                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-            transaction.getRowColumnRange(TABLE_1, 1, ColumnRangeSelection.all());
-        }))
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(TABLE_1, 1, ColumnRangeSelection.all());
+                }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
@@ -140,17 +140,17 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
         int startInclusive = 313;
         int endExclusive = 855;
         assertThat(readWrite(transaction -> {
-            IntStream.range(0, iterationCount)
-                    .forEach(column ->
-                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-            transaction.getRowColumnRange(
-                    TABLE_1,
-                    1,
-                    ColumnRangeSelection.builder()
-                            .startColumnInclusive(startInclusive)
-                            .endColumnExclusive(endExclusive)
-                            .build());
-        }))
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(
+                            TABLE_1,
+                            1,
+                            ColumnRangeSelection.builder()
+                                    .startColumnInclusive(startInclusive)
+                                    .endColumnExclusive(endExclusive)
+                                    .build());
+                }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
@@ -220,22 +220,22 @@ private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTr
     private void assertThatThrownWhenUnknownTableReferenced(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-            transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
-            return null;
-        }))
+                    transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
+                    return null;
+                }))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Transaction action has unknown table.");
     }
 
     private void assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-            AtlasDbInteractiveTransaction transaction =
-                    new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
-            transaction.witness();
-            transactionConsumer.accept(transaction);
-            return null;
-        }))
+                    AtlasDbInteractiveTransaction transaction =
+                            new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
+                    transaction.witness();
+                    transactionConsumer.accept(transaction);
+                    return null;
+                }))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Transaction has already been witnessed and can no longer perform any actions.");
     }u}(j (3a7aebde56bb23390c1e2c8534beaae39c6e3ab4j0 oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReaderTest.javaj2 modifiedj* Kj+ Kj4 K&j5 https://github.com/palantir/atlasdb/blob/78a0cd5dcf1124f346de5f1dbc389a4768c4ef9d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj7 https://github.com/palantir/atlasdb/raw/78a0cd5dcf1124f346de5f1dbc389a4768c4ef9d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj9 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.java?ref=78a0cd5dcf1124f346de5f1dbc389a4768c4ef9dj; X
  @@ -38,10 +38,10 @@ public void doesNotReadCellsFromDifferentTable() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                .table(WorkloadTestHelpers.TABLE_2)
-                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
-                .columnRangeSelection(ColumnRangeSelection.all())
-                .build()))
+                        .table(WorkloadTestHelpers.TABLE_2)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                        .columnRangeSelection(ColumnRangeSelection.all())
+                        .build()))
                 .isEmpty();
     }
 
@@ -51,10 +51,10 @@ public void doesNotReadCellsFromDifferentRow() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                .table(WorkloadTestHelpers.TABLE_1)
-                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
-                .columnRangeSelection(ColumnRangeSelection.builder().build())
-                .build()))
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
+                        .columnRangeSelection(ColumnRangeSelection.builder().build())
+                        .build()))
                 .isEmpty();
     }
 
@@ -67,13 +67,13 @@ public void readsCellsFromRangeInOrder() {
                     Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         }
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                .table(WorkloadTestHelpers.TABLE_1)
-                .row(1)
-                .columnRangeSelection(ColumnRangeSelection.builder()
-                        .startColumnInclusive(2)
-                        .endColumnExclusive(4)
-                        .build())
-                .build()))
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(1)
+                        .columnRangeSelection(ColumnRangeSelection.builder()
+                                .startColumnInclusive(2)
+                                .endColumnExclusive(4)
+                                .build())
+                        .build()))
                 .containsExactly(
                         ColumnValue.of(2, WorkloadTestHelpers.VALUE_ONE),
                         ColumnValue.of(3, WorkloadTestHelpers.VALUE_ONE));
@@ -85,10 +85,10 @@ public void doesNotReturnExplicitlyEmptyValues() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.empty()));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                .table(WorkloadTestHelpers.TABLE_1)
-                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
-                .columnRangeSelection(ColumnRangeSelection.all())
-                .build()))
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                        .columnRangeSelection(ColumnRangeSelection.all())
+                        .build()))
                 .isEmpty();
     }
 }u}(j (9a0127534a3d94444fd74526c1be680a9eff55a3j0 qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj2 modifiedj* K j+ Kj4 Kj5 https://github.com/palantir/atlasdb/blob/78a0cd5dcf1124f346de5f1dbc389a4768c4ef9d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj7 https://github.com/palantir/atlasdb/raw/78a0cd5dcf1124f346de5f1dbc389a4768c4ef9d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj9 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=78a0cd5dcf1124f346de5f1dbc389a4768c4ef9dj; X  @@ -21,7 +21,6 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;ueu(f8d6e0b618006dde21ea94f2c6ec94b0422a31a7}(sha(f8d6e0b618006dde21ea94f2c6ec94b0422a31a7node_idEC_kwDOAjP5fdoAKGY4ZDZlMGI2MTgwMDZkZGUyMWVhOTRmMmM2ZWM5NGIwNDIyYTMxYTccommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-06T21:59:50Zu	committer}(jo 
Sam Kramerjq skramer@palantir.comjs 2023-03-06T21:59:50ZumessageJAdd metric for when client pool is empty, add test to prove its threadsafetree}(jg (1f58c31676193925976cd44ddb26a55b7c6dab33url`https://api.github.com/repos/palantir/atlasdb/git/trees/1f58c31676193925976cd44ddb26a55b7c6dab33uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f8d6e0b618006dde21ea94f2c6ec94b0422a31a7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQGYlYACgkQmPPOpKR4
XS2iaQf/alPZPv9b2eWLEr1/LrD8ztWCYHF5rA8WgtweKc+UN5vEAQtqizR+SDBe
mOmyp9Rul+7p3jshnLNMI/p80o7VAQMWMvJVIk0xK8Xoj7xRXc5VuQwjdlCY6cYN
o7RqF8EFJvf+DTWsbEpfRViASqv6Io40RETXw4rvrRn0RuQ8Zu2CO12PSjIqoo9m
GotPr88kGdWL4r0A9OeUC9URfv2fXHXmF0gu6vbD9zhQRBoA1R5uKep7opNMK0n2
Z16mgyDghmUE8IfeB7c8vA4EdKJI6GpGCvDak8Ufgy7DxR2liDR/8ZTfTFygsqSH
fHaTbxRJHmwvhSEGKqI7ZthmdmfB2Q==
=G7MH
-----END PGP SIGNATURE-----payloadX!  tree 1f58c31676193925976cd44ddb26a55b7c6dab33
parent c7a617269e9c9326691e2926997f2f532894e8e1
author Sam Kramer <skramer@palantir.com> 1678139990 +0000
committer Sam Kramer <skramer@palantir.com> 1678139990 +0000

Add metric for when client pool is empty, add test to prove its threadsafe
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/f8d6e0b618006dde21ea94f2c6ec94b0422a31a7html_urlShttps://github.com/palantir/atlasdb/commit/f8d6e0b618006dde21ea94f2c6ec94b0422a31a7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f8d6e0b618006dde21ea94f2c6ec94b0422a31a7/commentsjm }(login
Sam-KrameridJ^2_ ji MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuju }(j 
Sam-Kramerj J^2_ ji MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jg (c7a617269e9c9326691e2926997f2f532894e8e1j ^https://api.github.com/repos/palantir/atlasdb/commits/c7a617269e9c9326691e2926997f2f532894e8e1j Shttps://github.com/palantir/atlasdb/commit/c7a617269e9c9326691e2926997f2f532894e8e1uastats}(totalK	additionsK	deletionsKufiles](}(jg (c576ba39550d60b907211f8e5933c898bce801cffilenamedatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/f8d6e0b618006dde21ea94f2c6ec94b0422a31a7/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f8d6e0b618006dde21ea94f2c6ec94b0422a31a7/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=f8d6e0b618006dde21ea94f2c6ec94b0422a31a7patchX 	  @@ -37,6 +37,7 @@
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.refreshable.Refreshable;
@@ -354,15 +355,21 @@ void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> des
         Set<CassandraServer> validatedServersToAdd =
                 validateNewHostsTopologiesAndMaybeAddToPool(currentPoolWithoutAbsentServers, serversToAdd);
 
-        Preconditions.checkState(
-                !(currentPoolWithoutAbsentServers.isEmpty() && validatedServersToAdd.isEmpty()),
-                "No servers were successfully added to the pool. This means we could not come to a consensus on"
+        boolean poolEmpty = currentPoolWithoutAbsentServers.isEmpty() && validatedServersToAdd.isEmpty();
+
+        if (poolEmpty) {
+            metrics.recordEmptyPool();
+            throw new SafeIllegalStateException(
+                    "No servers were successfully added to the pool. This means we could not come to a consensus on"
                         + " cluster topology, or no servers were provided. We will fallback to using our previous"
                         + " Cassandra servers, if any exist. This state should be transient (<5 minutes), and if it is"
                         + " not, indicates that the user may have accidentally configured AltasDB to use two separate"
                         + " Cassandra clusters (i.e., user-led split brain).",
-                SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())),
-                SafeArg.of("previousCassandraServers", CassandraLogHelper.collectionOfHosts(currentServers)));
+                    SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())),
+                    SafeArg.of("previousCassandraServers", CassandraLogHelper.collectionOfHosts(currentServers)));
+        }
+
+        metrics.recordHealthyPool();
 
         absentServers.forEach(cassandraServer -> {
             CassandraClientPoolingContainer container = cassandra.removePool(cassandraServer);u}(jg (748d5748f522aa75b0337e4a4d438a2f002d8d43j latlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetrics.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/f8d6e0b618006dde21ea94f2c6ec94b0422a31a7/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javaj https://github.com/palantir/atlasdb/raw/f8d6e0b618006dde21ea94f2c6ec94b0422a31a7/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.java?ref=f8d6e0b618006dde21ea94f2c6ec94b0422a31a7j X	  @@ -18,6 +18,7 @@
 import com.codahale.metrics.Counter;
 import com.codahale.metrics.Gauge;
 import com.codahale.metrics.Meter;
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableMap;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer;
@@ -30,6 +31,8 @@
 import java.util.function.Supplier;
 
 public class CassandraClientPoolMetrics {
+
+    public static final String EMPTY_POOL_METRIC_NAME = "empty-pool";
     private final MetricsManager metricsManager;
     private final RequestMetrics aggregateRequestMetrics;
     private final Map<CassandraServer, RequestMetrics> metricsByHost = new HashMap<>();
@@ -39,12 +42,16 @@ public class CassandraClientPoolMetrics {
     // Not bundled in with request metrics, as we seek to not produce host-level metrics for economic reasons.
     private final Counter poolExhaustionCounter;
 
+    private final Counter emptyPoolCounter;
+
     public CassandraClientPoolMetrics(MetricsManager metricsManager) {
         this.metricsManager = metricsManager;
         this.aggregateRequestMetrics = new RequestMetrics(metricsManager);
         this.poolExhaustionCounter =
                 metricsManager.registerOrGetCounter(CassandraClientPoolMetrics.class, "pool-exhaustion");
         this.outlierControllers = createOutlierControllers(metricsManager);
+        this.emptyPoolCounter =
+                metricsManager.registerOrGetCounter(CassandraClientPoolMetrics.class, EMPTY_POOL_METRIC_NAME);
     }
 
     private static Map<CassandraClientPoolHostLevelMetric, DistributionOutlierController> createOutlierControllers(
@@ -93,6 +100,23 @@ public void recordPoolExhaustion() {
         poolExhaustionCounter.inc();
     }
 
+    public synchronized void recordEmptyPool() {
+        if (emptyPoolCounter.getCount() == 0) {
+            emptyPoolCounter.inc();
+        }
+    }
+
+    public synchronized void recordHealthyPool() {
+        if (emptyPoolCounter.getCount() == 1) {
+            emptyPoolCounter.dec();
+        }
+    }
+
+    @VisibleForTesting
+    Counter getEmptyPoolCounter() {
+        return emptyPoolCounter;
+    }
+
     @SuppressWarnings("unchecked") // Guaranteed to have the correct type
     public void registerPoolMetric(CassandraClientPoolHostLevelMetric metric, Gauge<Long> gauge, int poolNumber) {
         MetricPublicationFilter filter = outlierControllers.get(metric).registerAndCreateFilter(gauge);u}(jg (aa9eda25d0d46f7a15ce36c5caf4145321f3ef75j datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolTest.javaj modifiedj K(j Kj K/j https://github.com/palantir/atlasdb/blob/f8d6e0b618006dde21ea94f2c6ec94b0422a31a7/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaj https://github.com/palantir/atlasdb/raw/f8d6e0b618006dde21ea94f2c6ec94b0422a31a7/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.java?ref=f8d6e0b618006dde21ea94f2c6ec94b0422a31a7j X  @@ -17,8 +17,8 @@
 
 import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatNoException;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
+import static org.assertj.core.api.AssertionsForClassTypes.assertThatCode;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.doAnswer;
 import static org.mockito.Mockito.doReturn;
@@ -36,6 +36,7 @@
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs;
 import com.palantir.atlasdb.cassandra.ImmutableDefaultConfig;
+import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraClientPoolMetrics;
 import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
 import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService;
 import com.palantir.atlasdb.util.MetricsManagers;
@@ -377,6 +378,26 @@ public void noHostsRemovedIfNewTopologyInvalidAndWouldEmptyPool() {
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1);
     }
 
+    @Test
+    public void oldServersCanBeRemovedAfterFallingBackWhenNewServerIsAdded() {
+        setupThriftServers(ImmutableSet.of(CASS_SERVER_1.proxy()));
+        when(config.autoRefreshNodes()).thenReturn(true);
+        setCassandraServersTo(CASS_SERVER_1);
+        createClientPool();
+        assertEmptyPoolMetricIsEqualTo(0);
+
+        setupHostsWithInconsistentTopology(CASS_SERVER_2);
+        setCassandraServersTo(CASS_SERVER_2);
+        refreshPool();
+        assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1);
+        assertEmptyPoolMetricIsEqualTo(1);
+
+        setCassandraServersTo(CASS_SERVER_2, CASS_SERVER_3);
+        refreshPool();
+        assertThat(poolServers).containsOnlyKeys(CASS_SERVER_3);
+        assertEmptyPoolMetricIsEqualTo(0);
+    }
+
     @Test
     public void onlyValidatedHostsAreAddedOnRefresh() {
         setupThriftServers(ImmutableSet.of(CASS_SERVER_1.proxy()));
@@ -408,14 +429,14 @@ public void doesNotThrowWhenPoolDoesNotChange() {
         when(config.autoRefreshNodes()).thenReturn(true);
         setCassandraServersTo(CASS_SERVER_1, CASS_SERVER_2, CASS_SERVER_3);
         CassandraClientPoolImpl pool = createClientPool();
-        assertThatNoException()
-                .isThrownBy(() -> pool.setServersInPoolTo(ImmutableMap.of(
+        assertThatCode(() -> pool.setServersInPoolTo(ImmutableMap.of(
                         CASS_SERVER_1,
                         CassandraServerOrigin.CONFIG,
                         CASS_SERVER_2,
                         CassandraServerOrigin.CONFIG,
                         CASS_SERVER_3,
-                        CassandraServerOrigin.CONFIG)));
+                        CassandraServerOrigin.CONFIG)))
+                .doesNotThrowAnyException();
     }
 
     @Test
@@ -435,7 +456,7 @@ public void throwsWhenNoServersInPoolAndNoServersAdded() {
     }
 
     @Test
-    public void throwsWhenPoolWouldHaveNoServersAndPreviousHostsExists() {
+    public void throwsWhenPoolWouldHaveNoServersAndPreviousServersExists() {
         when(config.autoRefreshNodes()).thenReturn(true);
         setCassandraServersTo(CASS_SERVER_1, CASS_SERVER_2);
         CassandraClientPoolImpl pool = createClientPool();
@@ -550,7 +571,7 @@ private void setCassandraServersTo(CassandraServer... servers) {
 
     private CassandraClientPoolImpl createClientPool() {
         return CassandraClientPoolImpl.createImplForTest(
-                MetricsManagers.createForTests(),
+                MetricsManagers.of(metricRegistry, taggedMetricRegistry),
                 config,
                 refreshableRuntimeConfig,
                 CassandraClientPoolImpl.StartupChecks.DO_NOT_RUN,
@@ -747,7 +768,7 @@ private void refreshPool() {
         deterministicExecutor.tick(POOL_REFRESH_INTERVAL_SECONDS, TimeUnit.SECONDS);
     }
 
-    private static void assertEmptyConnectionPoolExceptionThrown(
+    private void assertEmptyConnectionPoolExceptionThrown(
             ThrowingCallable throwingCallable,
             Set<CassandraServer> serversToAdd,
             Set<CassandraServer> previousCassandraServers) {
@@ -759,5 +780,17 @@ private static void assertEmptyConnectionPoolExceptionThrown(
                         SafeArg.of(
                                 "previousCassandraServers",
                                 CassandraLogHelper.collectionOfHosts(previousCassandraServers)));
+        assertEmptyPoolMetricIsEqualTo(1);
+    }
+
+    private void assertEmptyPoolMetricIsEqualTo(int expected) {
+        assertThat(taggedMetricRegistry
+                        .counter(MetricName.builder()
+                                .safeName(MetricRegistry.name(
+                                        CassandraClientPoolMetrics.class,
+                                        CassandraClientPoolMetrics.EMPTY_POOL_METRIC_NAME))
+                                .build())
+                        .getCount())
+                .isEqualTo(expected);
     }
 }u}(jg (f00908f0d03d276e9980acaa35d72b93842849a8j patlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetricsTest.javaj modifiedj K
j K j K
j https://github.com/palantir/atlasdb/blob/f8d6e0b618006dde21ea94f2c6ec94b0422a31a7/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javaj https://github.com/palantir/atlasdb/raw/f8d6e0b618006dde21ea94f2c6ec94b0422a31a7/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.java?ref=f8d6e0b618006dde21ea94f2c6ec94b0422a31a7j X  @@ -23,6 +23,7 @@
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
+import com.palantir.atlasdb.util.ThreadTestUtils;
 import com.palantir.refreshable.Refreshable;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import com.palantir.tritium.metrics.registry.MetricName;
@@ -57,6 +58,18 @@ public void metricsAreProducedAndFiltered() {
                 .containsKey(createMeanActiveTimeMillisMetric("mean"));
     }
 
+    @Test
+    public void emptyPoolMetricIsThreadsafe() throws InterruptedException {
+        CassandraClientPoolMetrics metrics = new CassandraClientPoolMetrics(metricsManager);
+        ThreadTestUtils.runTaskOnMultipleThreads(
+                () -> {
+                    metrics.recordEmptyPool();
+                    metrics.recordHealthyPool();
+                },
+                100);
+        assertThat(metrics.getEmptyPoolCounter().getCount()).isEqualTo(0);
+    }
+
     private static MetricName createMeanActiveTimeMillisMetric(String pool) {
         return MetricName.builder()
                 .safeName(MetricRegistry.name(u}(jg (25d52c12d4a78759ba94fae0d46e129a1879305bj Natlasdb-cassandra/src/test/java/com/palantir/atlasdb/util/ThreadTestUtils.javaj addedj K7j K j K7j https://github.com/palantir/atlasdb/blob/f8d6e0b618006dde21ea94f2c6ec94b0422a31a7/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FThreadTestUtils.javaj https://github.com/palantir/atlasdb/raw/f8d6e0b618006dde21ea94f2c6ec94b0422a31a7/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FThreadTestUtils.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FThreadTestUtils.java?ref=f8d6e0b618006dde21ea94f2c6ec94b0422a31a7j XM  @@ -0,0 +1,55 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.util;
+
+import com.google.common.util.concurrent.Futures;
+import java.util.List;
+import java.util.concurrent.Callable;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.Future;
+import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+
+public final class ThreadTestUtils {
+
+    private ThreadTestUtils() {}
+
+    public static void runTaskOnMultipleThreads(Runnable runnable, int numThreads) throws InterruptedException {
+        CountDownLatch startTaskLatch = new CountDownLatch(1);
+        ExecutorService taskExecutor = Executors.newCachedThreadPool();
+
+        List<Future<Void>> futures = IntStream.range(0, numThreads)
+                .mapToObj(index -> taskExecutor.submit((Callable<Void>) () -> {
+                    try {
+                        startTaskLatch.await();
+                    } catch (InterruptedException e) {
+                        throw new RuntimeException(e);
+                    }
+                    runnable.run();
+                    return null;
+                }))
+                .collect(Collectors.toList());
+
+        startTaskLatch.countDown();
+        taskExecutor.shutdown();
+        taskExecutor.awaitTermination(5, TimeUnit.SECONDS);
+        futures.forEach(Futures::getUnchecked);
+    }
+}ueu(76d935a200ac8692f41b5f97061c9dbbdbd56492}(sha(76d935a200ac8692f41b5f97061c9dbbdbd56492node_idEC_kwDOAjP5fdoAKDc2ZDkzNWEyMDBhYzg2OTJmNDFiNWY5NzA2MWM5ZGJiZGJkNTY0OTIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-09T16:00:10Zu	committer}(j Jeremy Kongj jkong@palantir.comj
 2023-05-09T16:00:10ZumessageCR feedbacktree}(j (510bd30a840f4b810bb15e9fe9b2d8ccce7737a2url`https://api.github.com/repos/palantir/atlasdb/git/trees/510bd30a840f4b810bb15e9fe9b2d8ccce7737a2uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/76d935a200ac8692f41b5f97061c9dbbdbd56492
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRabgsACgkQTLdFKain
zjyndAgAoTj6Mh9XR2MRvr+1vb8DdQnHq9uRkwyrCu/02LpuQO0GSIJ/gbAYpDeG
4RVv7QePf1LrukvzeRtRMeLaBc1qK/IiyNZCqjXj+vHlwSN0FvzGvvCjXlPKu6hP
ryKOCzHWeT64q40Qz7nKQPH1OFR4y99j10Ie0Bwrhf32KEWxv6bjrf1z7SFbA+nx
t4xtJskGCJW/L8WIW+qN0GJqv2FGwqWFtFnVZyA/T/p++94M9ZLiLtwB+Btugq9f
z++TR1/D+18/sYEe7Eg9niIC+UI47xe04WXpF6hdmu/E0olJYQk6MB7QlffjaOhG
plvFImOCCZmfF5E19wevpuzKTwdCbg==
=BngJ
-----END PGP SIGNATURE-----payloadtree 510bd30a840f4b810bb15e9fe9b2d8ccce7737a2
parent b729af7e82192634a68a83f8625e2cf73341a3a3
author Jeremy Kong <jkong@palantir.com> 1683648010 +0100
committer Jeremy Kong <jkong@palantir.com> 1683648010 +0100

CR feedback
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/76d935a200ac8692f41b5f97061c9dbbdbd56492html_urlShttps://github.com/palantir/atlasdb/commit/76d935a200ac8692f41b5f97061c9dbbdbd56492comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/76d935a200ac8692f41b5f97061c9dbbdbd56492/commentsj }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j$ https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j) 
jeremyk-91j+ JZ j  MDQ6VXNlcjU5NTU1MTA=j- 3https://avatars.githubusercontent.com/u/5955510?v=4j/ h5j 'https://api.github.com/users/jeremyk-91j$ https://github.com/jeremyk-91j2 1https://api.github.com/users/jeremyk-91/followersj4 >https://api.github.com/users/jeremyk-91/following{/other_user}j6 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j8 >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j: 5https://api.github.com/users/jeremyk-91/subscriptionsj< ,https://api.github.com/users/jeremyk-91/orgsj> -https://api.github.com/users/jeremyk-91/reposj@ 8https://api.github.com/users/jeremyk-91/events{/privacy}jB 7https://api.github.com/users/jeremyk-91/received_eventsjD UserjF uparents]}(j (b729af7e82192634a68a83f8625e2cf73341a3a3j ^https://api.github.com/repos/palantir/atlasdb/commits/b729af7e82192634a68a83f8625e2cf73341a3a3j$ Shttps://github.com/palantir/atlasdb/commit/b729af7e82192634a68a83f8625e2cf73341a3a3uastats}(totalK	additionsK	deletionsKufiles]}(j (04040e8981bb7b1c2cea057a84dbc3658e8c97acfilenameClock-api/src/test/java/com/palantir/lock/LockServerOptionsTest.javastatusmodifiedj` Kja KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/76d935a200ac8692f41b5f97061c9dbbdbd56492/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/76d935a200ac8692f41b5f97061c9dbbdbd56492/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.java?ref=76d935a200ac8692f41b5f97061c9dbbdbd56492patchX  @@ -42,18 +42,19 @@ public void serializationContainsIsStandaloneServerExplicitly() throws Exception
         assertThat(serverMapper.writeValueAsString(NON_STANDALONE_OPTIONS))
                 .isNotEmpty()
                 .contains("\"isStandaloneServer\":false");
-        assertThat(serverMapper.writeValueAsString(LockServerOptions.DEFAULT))
+        assertThat(serverMapper.writeValueAsString(LockServerOptions.builder().build()))
                 .isNotEmpty()
                 .contains("\"isStandaloneServer\":true");
     }
 
     @Test
     public void serializationIsInverseOfDeserialization() throws JsonProcessingException {
         assertSerializationIsInverseOfDeserialization(NON_STANDALONE_OPTIONS);
-        assertSerializationIsInverseOfDeserialization(LockServerOptions.DEFAULT);
+        assertSerializationIsInverseOfDeserialization(LockServerOptions.builder().build());
     }
 
     @Test
+    @SuppressWarnings("deprecation") // These are actual fields users might set that we still support...
     public void existingOptionsCanBeDeserialized() throws IOException {
         LockServerOptions lockServerOptions = LockServerOptions.builder()
                 .maxAllowedLockTimeout(SimpleTimeDuration.of(1, TimeUnit.MILLISECONDS))uau(32952de3fd2437a07c47b26b2bb2501f4f44cc90}(sha(32952de3fd2437a07c47b26b2bb2501f4f44cc90node_idEC_kwDOAjP5fdoAKDMyOTUyZGUzZmQyNDM3YTA3YzQ3YjI2YjJiYjI1MDFmNGY0NGNjOTAcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-23T12:46:30Zu	committer}(j} 
Ahmed Alouanej aalouane@palantir.comj 2023-05-23T12:46:30ZumessageEMerge branch 'develop' into aalouane/cbt/experiments/container3/firsttree}(ju (dc204a34faefb3112d4d460eb6a479744e8fc735url`https://api.github.com/repos/palantir/atlasdb/git/trees/dc204a34faefb3112d4d460eb6a479744e8fc735uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/32952de3fd2437a07c47b26b2bb2501f4f44cc90
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRstagACgkQPlMHVIT1
yhpORggAtWwrRSWve0JRcRGaEsYVKxk3T3oTWM+WzfaD0tatYlOw/R1N7e4sgWYr
rRCs+q//GHw/p5jAohmq3gwjGCbw1hFfkoLCF4l2oiS2Xb2j+ca3tepau05ZWznu
Ixu9FAg2lM44dWwbpiVIAjMPL/5tUZarefvZvSOgXwBWA/VBwBXlP+hQrVOSa1pz
l5M9WAQ87yO+t450VvYv33W35w1IxCGMtzoGahdkXnajq/L00jXI1CaWjCa4ojBW
B81iRl7BYTQaH4UzdRML37dAmlO6KpHT/POgoBQXLuINH71aUgY1DIL0A7b3II8Z
7nR4kKUXJUpt3+eSURB4IxkGWmafgA==
=J0K5
-----END PGP SIGNATURE-----payloadXT  tree dc204a34faefb3112d4d460eb6a479744e8fc735
parent cfdbb0158eb2e0b90cb7fba14161a1ef123f802e
parent 8d9ed7583f3c695e90886a0d303f32c1925fcf1a
author Ahmed Alouane <aalouane@palantir.com> 1684845990 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684845990 +0100

Merge branch 'develop' into aalouane/cbt/experiments/container3/first
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/32952de3fd2437a07c47b26b2bb2501f4f44cc90html_urlShttps://github.com/palantir/atlasdb/commit/32952de3fd2437a07c47b26b2bb2501f4f44cc90comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/32952de3fd2437a07c47b26b2bb2501f4f44cc90/commentsj{ }(loginergo14idJjw MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jjw MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents](}(ju (cfdbb0158eb2e0b90cb7fba14161a1ef123f802ej ^https://api.github.com/repos/palantir/atlasdb/commits/cfdbb0158eb2e0b90cb7fba14161a1ef123f802ej Shttps://github.com/palantir/atlasdb/commit/cfdbb0158eb2e0b90cb7fba14161a1ef123f802eu}(ju (8d9ed7583f3c695e90886a0d303f32c1925fcf1aj ^https://api.github.com/repos/palantir/atlasdb/commits/8d9ed7583f3c695e90886a0d303f32c1925fcf1aj Shttps://github.com/palantir/atlasdb/commit/8d9ed7583f3c695e90886a0d303f32c1925fcf1auestats}(totalK	additionsKڌ	deletionsK#ufiles](}(ju (2dbc24b32d3c1d36a5252a785ef380d28cefa391filename
.java-versionstatusmodifiedj Kj KchangesKblob_url_https://github.com/palantir/atlasdb/blob/32952de3fd2437a07c47b26b2bb2501f4f44cc90/.java-versionraw_url^https://github.com/palantir/atlasdb/raw/32952de3fd2437a07c47b26b2bb2501f4f44cc90/.java-versioncontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/.java-version?ref=32952de3fd2437a07c47b26b2bb2501f4f44cc90patch@@ -1 +1 @@
-11
+11.0u}(ju (e01f8f7d37ce43a9eb4672184fb9c3abd935633ej eatlasdb-commons/src/test/java/com/palantir/common/concurrent/CheckedRejectionExecutorServiceTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javaj https://github.com/palantir/atlasdb/raw/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.java?ref=32952de3fd2437a07c47b26b2bb2501f4f44cc90j X#
  @@ -19,31 +19,38 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.doThrow;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.google.common.util.concurrent.Futures;
 import java.util.concurrent.Callable;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.RejectedExecutionException;
 import org.junit.Test;
+import org.mockito.MockMakers;
 
 public class CheckedRejectionExecutorServiceTest {
     private static final Runnable DO_NOTHING = () -> {};
     private static final Callable<Integer> RETURN_ONE = () -> 1;
-    private static final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION = new RejectedExecutionException();
+    private static final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION =
+            new RejectedExecutionException("test");
 
-    private final ExecutorService delegate = mock(ExecutorService.class);
+    private final ExecutorService delegate =
+            mock(ExecutorService.class, withSettings().mockMaker(MockMakers.SUBCLASS));
     private final CheckedRejectionExecutorService checkedRejectionExecutor =
             new CheckedRejectionExecutorService(delegate);
 
     @Test
     public void passesCallThroughExecute() throws CheckedRejectedExecutionException {
         checkedRejectionExecutor.execute(DO_NOTHING);
         verify(delegate, times(1)).execute(DO_NOTHING);
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
@@ -52,22 +59,27 @@ public void passesCallThroughSubmit() throws CheckedRejectedExecutionException {
         assertThat(Futures.getUnchecked(checkedRejectionExecutor.submit(RETURN_ONE)))
                 .isEqualTo(1);
         verify(delegate, times(1)).submit(RETURN_ONE);
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
     public void propagatesRejectionThroughExecute() {
-        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).execute(any());
+        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).execute(any(Runnable.class));
         assertThatThrownBy(() -> checkedRejectionExecutor.execute(DO_NOTHING))
                 .isInstanceOf(CheckedRejectedExecutionException.class)
                 .hasCause(REJECTED_EXECUTION_EXCEPTION);
+        verify(delegate).execute(eq(DO_NOTHING));
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
     @SuppressWarnings("unchecked") // Mocks
     public void propagatesRejectionThroughSubmit() {
-        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).submit(any(Callable.class));
+        when(delegate.submit(any(Callable.class))).thenThrow(REJECTED_EXECUTION_EXCEPTION);
         assertThatThrownBy(() -> checkedRejectionExecutor.submit(RETURN_ONE))
                 .isInstanceOf(CheckedRejectedExecutionException.class)
                 .hasCause(REJECTED_EXECUTION_EXCEPTION);
+        verify(delegate).submit(eq(RETURN_ONE));
+        verifyNoMoreInteractions(delegate);
     }
 }u      }(ju (d0f9372cc1f1f0ca2951aae2549e2f3c289903e7j Xatlasdb-commons/src/test/java/com/palantir/common/concurrent/CoalescingSupplierTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.javaj https://github.com/palantir/atlasdb/raw/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.java?ref=32952de3fd2437a07c47b26b2bb2501f4f44cc90j X  @@ -24,6 +24,7 @@
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
@@ -49,12 +50,14 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
+import org.mockito.MockMakers;
 
 @RunWith(Parameterized.class)
 public class CoalescingSupplierTest {
     private static final int DEFAULT_VALUE = 123;
 
-    private final Supplier<Integer> delegate = mock(Supplier.class);
+    private final Supplier<Integer> delegate =
+            mock(Supplier.class, withSettings().mockMaker(MockMakers.SUBCLASS));
     private final FreezableSupplier freezableDelegate = new FreezableSupplier(delegate);
     private final CoalescingSupplier<Integer> coalescing = new CoalescingSupplier<>(freezableDelegate);
 u}(ju (9146e63073d86fe3d770ab7103a6eb65623b8820j Watlasdb-commons/src/test/java/com/palantir/common/proxy/ExperimentRunningProxyTest.javaj modifiedj K	j Kj Kj https://github.com/palantir/atlasdb/blob/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.javaj https://github.com/palantir/atlasdb/raw/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.java?ref=32952de3fd2437a07c47b26b2bb2501f4f44cc90j X-  @@ -21,6 +21,7 @@
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import java.lang.reflect.Proxy;
 import java.time.Clock;
@@ -31,18 +32,21 @@
 import java.util.function.Supplier;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class ExperimentRunningProxyTest {
     private static final int EXPERIMENTAL_RESULT = 123;
     private static final int FALLBACK_RESULT = 1;
     private static final RuntimeException RUNTIME_EXCEPTION = new RuntimeException("foo");
 
-    private final IntSupplier experimentalIntSupplier = mock(IntSupplier.class);
-    private final Supplier<IntSupplier> experimentSupplier = mock(Supplier.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private final IntSupplier experimentalIntSupplier = mock(IntSupplier.class, mockSettings);
+    private final Supplier<IntSupplier> experimentSupplier = mock(Supplier.class, mockSettings);
     private final IntSupplier fallbackIntSupplier = () -> FALLBACK_RESULT;
-    private final BooleanSupplier useExperimental = mock(BooleanSupplier.class);
-    private final BooleanSupplier enableFallback = mock(BooleanSupplier.class);
-    private final Clock clock = mock(Clock.class);
+    private final BooleanSupplier useExperimental = mock(BooleanSupplier.class, mockSettings);
+    private final BooleanSupplier enableFallback = mock(BooleanSupplier.class, mockSettings);
+    private final Clock clock = mock(Clock.class, mockSettings);
     private final AtomicLong errorCounter = new AtomicLong();
 
     private final IntSupplier proxyInstance = intSupplierForProxy(new ExperimentRunningProxy<>(u}(ju (b0f2716a61e018a00bbe37c55b0a8985af943d96j Watlasdb-commons/src/test/java/com/palantir/common/proxy/PredicateSwitchedProxyTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.javaj https://github.com/palantir/atlasdb/raw/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.java?ref=32952de3fd2437a07c47b26b2bb2501f4f44cc90j X~  @@ -19,14 +19,18 @@
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.withSettings;
 
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.function.IntConsumer;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class PredicateSwitchedProxyTest {
-    private final IntConsumer decorated = mock(IntConsumer.class);
-    private final IntConsumer delegate = mock(IntConsumer.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private final IntConsumer decorated = mock(IntConsumer.class, mockSettings);
+    private final IntConsumer delegate = mock(IntConsumer.class, mockSettings);
 
     private final AtomicBoolean atomicBoolean = new AtomicBoolean(false);
 u}(ju (afb4f7f151215eb0eb16fab26719c6f0358957e5j `atlasdb-commons/src/test/java/com/palantir/common/proxy/ReplaceIfExceptionMatchingProxyTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.javaj https://github.com/palantir/atlasdb/raw/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.java?ref=32952de3fd2437a07c47b26b2bb2501f4f44cc90j Xl  @@ -29,16 +29,17 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.mockito.Mock;
+import org.mockito.MockMakers;
 import org.mockito.junit.MockitoJUnitRunner;
 
 // Mock is used as a convenient supplier, alternatives are rather verbose
 @SuppressWarnings("DirectInvocationOnMock")
 @RunWith(MockitoJUnitRunner.class)
 public class ReplaceIfExceptionMatchingProxyTest {
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private TestInterface delegate;
 
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private Supplier<TestInterface> supplier;
 
     interface TestInterface {u}(ju (d8fe3c284ed462a646f9db9df6e46865f71c8b7fj Oatlasdb-commons/src/test/java/com/palantir/util/CachedComposedSupplierTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.javaj https://github.com/palantir/atlasdb/raw/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.java?ref=32952de3fd2437a07c47b26b2bb2501f4f44cc90j X  @@ -16,7 +16,9 @@
 package com.palantir.util;
 
 import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.concurrent.ExecutorService;
@@ -25,7 +27,7 @@
 import java.util.function.Supplier;
 import org.junit.Before;
 import org.junit.Test;
-import org.mockito.Mockito;
+import org.mockito.MockMakers;
 
 public class CachedComposedSupplierTest {
     private long counter;
@@ -37,7 +39,7 @@ public class CachedComposedSupplierTest {
     public void setup() {
         counter = 0;
         supplierCounter = 0;
-        mockVersionedSupplier = Mockito.mock(Supplier.class);
+        mockVersionedSupplier = mock(Supplier.class, withSettings().mockMaker(MockMakers.SUBCLASS));
         testSupplier = new CachedComposedSupplier<>(this::countingFunction, mockVersionedSupplier);
     }
 u}(ju (21ad962d9f363b09efeaba7f674e27e337cb763aj Katlasdb-commons/src/test/java/com/palantir/util/SafeShutdownRunnerTest.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.javaj https://github.com/palantir/atlasdb/raw/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.java?ref=32952de3fd2437a07c47b26b2bb2501f4f44cc90j X  @@ -24,6 +24,7 @@
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import java.time.Duration;
@@ -32,14 +33,17 @@
 import java.util.stream.Stream;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class SafeShutdownRunnerTest {
     private static final RuntimeException EXCEPTION_1 = new RuntimeException("test");
     private static final RuntimeException EXCEPTION_2 = new RuntimeException("bleh");
 
-    private Runnable mockRunnable = mock(Runnable.class);
-    private Runnable throwingRunnable = mock(Runnable.class);
-    private Runnable blockingUninterruptibleRunnable = mock(Runnable.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private Runnable mockRunnable = mock(Runnable.class, mockSettings);
+    private Runnable throwingRunnable = mock(Runnable.class, mockSettings);
+    private Runnable blockingUninterruptibleRunnable = mock(Runnable.class, mockSettings);
 
     @Before
     public void setupMocks() {u}(ju (66bef959146e2dc5dd5452e6f9606c9e4120c4f4j Datlasdb-commons/src/test/java/com/palantir/util/TimedRunnerTest.javaj modifiedj K	j Kj Kj https://github.com/palantir/atlasdb/blob/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.javaj https://github.com/palantir/atlasdb/raw/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.java?ref=32952de3fd2437a07c47b26b2bb2501f4f44cc90j X	  @@ -23,19 +23,23 @@
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.util.TimedRunner.TaskContext;
 import java.time.Duration;
 import java.util.concurrent.Callable;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public final class TimedRunnerTest {
     private static final RuntimeException EXCEPTION_1 = new RuntimeException("test");
     private static final RuntimeException EXCEPTION_2 = new RuntimeException("bleh");
 
-    private Runnable noOpRunnable = mock(Runnable.class);
-    private Runnable throwingRunnable = mock(Runnable.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private Runnable noOpRunnable = mock(Runnable.class, mockSettings);
+    private Runnable throwingRunnable = mock(Runnable.class, mockSettings);
 
     @Before
     public void setupMocks() {
@@ -46,7 +50,7 @@ public void setupMocks() {
     public void runnerRunsOneTask() throws Exception {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
 
-        Callable<Integer> task = mock(Callable.class);
+        Callable<Integer> task = mock(Callable.class, mockSettings);
         when(task.call()).thenReturn(5);
         int result = runner.run(TaskContext.create(task, noOpRunnable));
 
@@ -58,7 +62,7 @@ public void runnerRunsOneTask() throws Exception {
     @Test
     public void exceptionsAreThrownWhenRunningSingleton() {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
-        Runnable failureHandler = mock(Runnable.class);
+        Runnable failureHandler = mock(Runnable.class, mockSettings);
 
         assertThatThrownBy(() -> runner.run(TaskContext.createRunnable(throwingRunnable, failureHandler)))
                 .isEqualTo(EXCEPTION_1);
@@ -68,7 +72,7 @@ public void exceptionsAreThrownWhenRunningSingleton() {
     @Test
     public void correctSuppressedExceptionsAreThrownIfFailureHandlerThrows() {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
-        Runnable failureHandler = mock(Runnable.class);
+        Runnable failureHandler = mock(Runnable.class, mockSettings);
         doThrow(EXCEPTION_2).when(failureHandler).run();
 
         assertThatThrownBy(() -> runner.run(TaskContext.createRunnable(throwingRunnable, failureHandler)))u}(ju (c480df0088f6789eb9035ca913cc7cc57d932d70j _atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/watch/TimestampMapping.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.javaj https://github.com/palantir/atlasdb/raw/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.java?ref=32952de3fd2437a07c47b26b2bb2501f4f44cc90j X  @@ -16,12 +16,17 @@
 
 package com.palantir.atlasdb.keyvalue.api.watch;
 
-import com.google.common.collect.MoreCollectors;
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.Collections2;
 import com.google.common.collect.Range;
 import com.palantir.lock.watch.LockWatchVersion;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Iterator;
 import java.util.LongSummaryStatistics;
 import java.util.Map;
+import java.util.Objects;
 import java.util.UUID;
 import org.immutables.value.Value;
 
@@ -44,10 +49,8 @@ default LockWatchVersion lastVersion() {
 
     @Value.Derived
     default UUID leader() {
-        return timestampMapping().values().stream()
-                .map(LockWatchVersion::id)
-                .distinct()
-                .collect(MoreCollectors.onlyElement());
+        // explicitly avoiding stream and distinct collection copy when all IDs should be identical
+        return identicalElement(Collections2.transform(timestampMapping().values(), LockWatchVersion::id));
     }
 
     @Value.Check
@@ -58,4 +61,20 @@ default void nonEmptyMapping() {
     static ImmutableTimestampMapping.Builder builder() {
         return ImmutableTimestampMapping.builder();
     }
+
+    @VisibleForTesting
+    static <T> T identicalElement(Iterable<? extends T> iterable) {
+        Iterator<? extends T> iterator = iterable.iterator();
+        T element = iterator.next();
+        while (iterator.hasNext()) {
+            T next = iterator.next();
+            if (!Objects.equals(element, next)) {
+                throw new SafeIllegalArgumentException(
+                        "Input contains multiple distinct elements",
+                        SafeArg.of("element", element),
+                        SafeArg.of("next", next));
+            }
+        }
+        return element;
+    }
 }u}(ju (2de6f288bf092213b4b2345a73a735695f0f3c27j catlasdb-impl-shared/src/test/java/com/palantir/atlasdb/keyvalue/api/watch/TimestampMappingTest.javaj addedj K\j K j K\j https://github.com/palantir/atlasdb/blob/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.javaj https://github.com/palantir/atlasdb/raw/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.java?ref=32952de3fd2437a07c47b26b2bb2501f4f44cc90j X;  @@ -0,0 +1,92 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.api.watch;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.google.common.collect.Iterables;
+import com.palantir.lock.watch.LockWatchVersion;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import java.util.NoSuchElementException;
+import java.util.UUID;
+import org.junit.Test;
+
+public class TimestampMappingTest {
+    @Test
+    public void singleLeaderMappingIsValid() {
+        UUID id = UUID.randomUUID();
+        ImmutableTimestampMapping timestampMapping = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(id, 1))
+                .build();
+        assertThat(timestampMapping.leader()).isEqualTo(id);
+    }
+
+    @Test
+    public void singleDistinctLeaderMappingIsValid() {
+        UUID id = UUID.randomUUID();
+        ImmutableTimestampMapping timestampMapping = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(id, 1))
+                .putTimestampMapping(2L, LockWatchVersion.of(id, 1))
+                .build();
+        assertThat(timestampMapping.leader()).isEqualTo(id);
+    }
+
+    @Test
+    public void conflictingLeaderMappingIsInvalid() {
+        ImmutableTimestampMapping.Builder builder = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(UUID.randomUUID(), 1))
+                .putTimestampMapping(2L, LockWatchVersion.of(UUID.randomUUID(), 1));
+
+        assertThatThrownBy(builder::build)
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+    }
+
+    @Test
+    public void emptyMappingIsInvalid() {
+        assertThatThrownBy(() -> TimestampMapping.builder().build())
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("Invalid range");
+    }
+
+    @Test
+    public void onlyIdenticalElements() {
+        assertThat(TimestampMapping.identicalElement(List.of("test"))).isEqualTo("test");
+        assertThat(TimestampMapping.identicalElement(Iterables.limit(Iterables.cycle("test"), 1000)))
+                .isEqualTo("test");
+        assertThat(TimestampMapping.identicalElement(Iterables.limit(Iterables.cycle(42L), 1000)))
+                .isEqualTo(42L);
+    }
+
+    @Test
+    public void emptyDistinctElements() {
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of()))
+                .isInstanceOf(NoSuchElementException.class);
+    }
+
+    @Test
+    public void multipleDistinctElements() {
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of("a", "b", "a")))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of("a", "a", "b")))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+    }
+}u}(ju (b86932b661e3da17f104f58842a6abb1d2486e6fj latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://github.com/palantir/atlasdb/raw/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=32952de3fd2437a07c47b26b2bb2501f4f44cc90j XI  @@ -22,6 +22,7 @@
 import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.common.util.concurrent.Uninterruptibles;
 import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
@@ -45,6 +46,7 @@
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
 import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.refreshable.Refreshable;
@@ -55,6 +57,7 @@
 import io.dropwizard.lifecycle.setup.LifecycleEnvironment;
 import io.dropwizard.setup.Bootstrap;
 import io.dropwizard.setup.Environment;
+import java.time.Instant;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
@@ -129,6 +132,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
 
+        waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
+
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
                 .run(
                         createSingleRowTwoCellsWorkflowValidator(
@@ -147,6 +152,28 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
+    private void waitForTransactionStoreFactoryToBeInitialized(AtlasDbTransactionStoreFactory factory) {
+        // TODO (jkong): This is awful, but sufficient for now.
+        Instant deadline = Instant.now().plusSeconds(TimeUnit.MINUTES.toSeconds(5));
+        while (Instant.now().isBefore(deadline)) {
+            if (factory.isInitialized()) {
+                log.info("AtlasDB transaction store factory initialized.");
+                return;
+            } else {
+                log.info(
+                        "AtlasDB transaction store factory not yet initialized. Waiting for five seconds; we won't"
+                                + " retry after {}.",
+                        SafeArg.of("deadline", deadline));
+                Uninterruptibles.sleepUninterruptibly(5, TimeUnit.SECONDS);
+            }
+        }
+        log.error("AtlasDB transaction store factory not initialized after five minutes, which suggests that there's"
+                + " likely to be some issue with starting up one of our service's dependencies.");
+        log.info("antithesis: terminate");
+        log.error("Workflow will now exit.");
+        System.exit(1);
+    }
+
     private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             SingleBusyCellWorkflowConfiguration workflowConfig,u}(ju (d7e657bac4380f77b52abaf6625e5ae6ced4addej Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://github.com/palantir/atlasdb/raw/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=32952de3fd2437a07c47b26b2bb2501f4f44cc90j @@ -19,6 +19,7 @@ runtime:
           trustStorePath: "var/security/trustStore.jks"
 install:
   atlas:
+    initializeAsync: true
     keyValueService:
       type: cassandra
       servers:u}(ju (e998e111e223273bdb28df2df52768ed59a74d5dj Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=32952de3fd2437a07c47b26b2bb2501f4f44cc90j @@ -1,9 +1,10 @@
 runtime: {}
 install:
   atlas:
-    namespace: test
+    initializeAsync: true
     keyValueService:
       type: memory
+    namespace: test
   singleRowTwoCellsConfig:
     tableConfiguration:
       tableName: two-cells-testu}(ju (d7dd783c1221e2a93fad625414ea628dac4c9695j matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj https://github.com/palantir/atlasdb/raw/32952de3fd2437a07c47b26b2bb2501f4f44cc90/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=32952de3fd2437a07c47b26b2bb2501f4f44cc90j X  @@ -54,6 +54,10 @@ public AtlasDbTransactionStoreFactory(TransactionManager transactionManager, Opt
         this.maybeNamespace = maybeNamespace.map(Namespace::create);
     }
 
+    public boolean isInitialized() {
+        return transactionManager.isInitialized();
+    }
+
     @Override
     public InteractiveTransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
         return AtlasDbTransactionStore.create(transactionManager, toAtlasTables(tables, indexes));u}(ju (16fb8eee169fd963709ea4a7cfbd511308736f08j $changelog/@unreleased/pr-6506.v2.ymlj addedj Kj K j Kj |https://github.com/palantir/atlasdb/blob/32952de3fd2437a07c47b26b2bb2501f4f44cc90/changelog%2F%40unreleased%2Fpr-6506.v2.ymlj {https://github.com/palantir/atlasdb/raw/32952de3fd2437a07c47b26b2bb2501f4f44cc90/changelog%2F%40unreleased%2Fpr-6506.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6506.v2.yml?ref=32952de3fd2437a07c47b26b2bb2501f4f44cc90j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize TimestampMapping::leader to avoid stream overhead
+  links:
+  - https://github.com/palantir/atlasdb/pull/6506u}(ju (196c276969d650b1d6d0e72c152a4a1d49ef5f6ej 
versions.lockj modifiedj Kj Kj Kj _https://github.com/palantir/atlasdb/blob/32952de3fd2437a07c47b26b2bb2501f4f44cc90/versions.lockj ^https://github.com/palantir/atlasdb/raw/32952de3fd2437a07c47b26b2bb2501f4f44cc90/versions.lockj qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=32952de3fd2437a07c47b26b2bb2501f4f44cc90j X  @@ -200,8 +200,8 @@ jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.5 (6 constraints: 845987f4)
 junit:junit:4.13.2 (8 constraints: 5a9c5baf)
-net.bytebuddy:byte-buddy:1.14.3 (3 constraints: 3d25d791)
-net.bytebuddy:byte-buddy-agent:1.14.1 (1 constraints: 410b3fde)
+net.bytebuddy:byte-buddy:1.14.4 (3 constraints: 4025da91)
+net.bytebuddy:byte-buddy-agent:1.14.4 (1 constraints: 440b42de)
 net.java.dev.jna:jna:4.1.0 (2 constraints: 6e1bbbad)
 net.jpountz.lz4:lz4:1.3.0 (2 constraints: 971453a0)
 net.ltgt.gradle.incap:incap:0.2 (1 constraints: ea0d3b32)
@@ -293,7 +293,7 @@ org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.0 (3 constraints: c125b5a3)
 org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.5.0 (1 constraints: 4b0ea44e)
 org.jvnet:animal-sniffer-annotation:1.0 (1 constraints: f20b95eb)
 org.mindrot:jbcrypt:0.4 (2 constraints: 4714f171)
-org.mockito:mockito-core:5.2.0 (2 constraints: 51165c12)
+org.mockito:mockito-core:5.3.1 (2 constraints: 5316c412)
 org.mpierce.metrics.reservoir:hdrhistogram-metrics-reservoir:1.1.3 (1 constraints: 0d10f991)
 org.objenesis:objenesis:3.3 (2 constraints: c71412ab)
 org.openjdk.jmh:jmh-core:1.36 (2 constraints: f51525d9)u}(ju (089fade66d09b3cbc4c42ee07a5dca286262895cj versions.propsj modifiedj Kj Kj Kj `https://github.com/palantir/atlasdb/blob/32952de3fd2437a07c47b26b2bb2501f4f44cc90/versions.propsj _https://github.com/palantir/atlasdb/raw/32952de3fd2437a07c47b26b2bb2501f4f44cc90/versions.propsj rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=32952de3fd2437a07c47b26b2bb2501f4f44cc90j X  @@ -72,7 +72,7 @@ org.jboss.threads:jboss-threads = 3.5.0.Final
 org.jdbi:* = 3.30.0
 org.jmock:jmock* = 2.12.0
 org.mindrot:jbcrypt = 0.4
-org.mockito:* = 5.2.0
+org.mockito:* = 5.3.1
 org.openjdk.jmh:* = 1.36
 org.reflections:reflections = 0.10.2
 org.rocksdb:rocksdbjni = 7.9.2ueu(4ea884d0f3096946d12f3ecdce4edd87b6c854a7}(sha(4ea884d0f3096946d12f3ecdce4edd87b6c854a7node_idEC_kwDOAjP5fdoAKDRlYTg4NGQwZjMwOTY5NDZkMTJmM2VjZGNlNGVkZDg3YjZjODU0YTccommit}(author}(nameTom Petraccaemail"tpetracca@users.noreply.github.comdate2023-08-08T10:44:10Zu	committer}(j GitHubj noreply@github.comj 2023-08-08T10:44:10Zumessage#bump commons-text to 1.10.0 (#6691)tree}(jx (d88212bd0ebc09a12591dfdbc300086b8eaf7c0furl`https://api.github.com/repos/palantir/atlasdb/git/trees/d88212bd0ebc09a12591dfdbc300086b8eaf7c0fuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4ea884d0f3096946d12f3ecdce4edd87b6c854a7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk0hx6CRBK7hj4Ov3rIwAANe0IAGHGgMPs2Pbq/5sdHnBLWqEh
AI394TXtO/YPScCSct+9SDEr44w/fEkgy2MupDGXgs1yRoYG4b9lgNZzdd2NXRwN
bldt9bPSnSsmJxVKKaoEtJbn6t/V4xXdE0RsIk2oYuGnmQYOQQ5YWO6auBWWZKLF
ut45IGrsA53rSeh6E+6vslALr507291yRUjUGkksE38c9gCP11sWmsnD3RHQfyPJ
aYv/br6xOyNDMALYkQMhJChs7LZ1A9yot9QiZg6QC99CuT82M8PF5EMiR2prwf+h
A79ZtwzfgJvDghm5+99PnaEF3298NO17N4EWcRsuXkqXti1b2UbKj+YV5Ci5CLE=
=v9W4
-----END PGP SIGNATURE-----
payloadX  tree d88212bd0ebc09a12591dfdbc300086b8eaf7c0f
parent a2df32a5c8430028d68c99e5a6a54294375ed779
author Tom Petracca <tpetracca@users.noreply.github.com> 1691491450 -0400
committer GitHub <noreply@github.com> 1691491450 +0100

bump commons-text to 1.10.0 (#6691)

uuj ^https://api.github.com/repos/palantir/atlasdb/commits/4ea884d0f3096946d12f3ecdce4edd87b6c854a7html_urlShttps://github.com/palantir/atlasdb/commit/4ea884d0f3096946d12f3ecdce4edd87b6c854a7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4ea884d0f3096946d12f3ecdce4edd87b6c854a7/commentsj~ }(login	tpetraccaidJ& jz MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5j &https://api.github.com/users/tpetraccaj https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminuj }(j web-flowj J/jz MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(jx (a2df32a5c8430028d68c99e5a6a54294375ed779j ^https://api.github.com/repos/palantir/atlasdb/commits/a2df32a5c8430028d68c99e5a6a54294375ed779j Shttps://github.com/palantir/atlasdb/commit/a2df32a5c8430028d68c99e5a6a54294375ed779uastats}(totalK	additionsK	deletionsKufiles](}(jx (404b7a5ade2768d4f0eb2774facc256dc79e0f45filename
versions.lockstatusmodifiedj Kj KchangesKblob_url_https://github.com/palantir/atlasdb/blob/4ea884d0f3096946d12f3ecdce4edd87b6c854a7/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/4ea884d0f3096946d12f3ecdce4edd87b6c854a7/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=4ea884d0f3096946d12f3ecdce4edd87b6c854a7patchXP  @@ -212,10 +212,10 @@ one.util:streamex:0.8.1 (3 constraints: 272f96ae)
 org.antlr:ST4:4.0.8 (1 constraints: 96073c6c)
 org.antlr:antlr:3.5.2 (1 constraints: 980f7c88)
 org.antlr:antlr-runtime:3.5.2 (3 constraints: 781d0aae)
-org.apache.commons:commons-lang3:3.12.0 (8 constraints: 5873a6cf)
+org.apache.commons:commons-lang3:3.12.0 (8 constraints: b773beac)
 org.apache.commons:commons-math3:3.2 (2 constraints: 90196ff8)
 org.apache.commons:commons-pool2:2.11.1 (1 constraints: 3705333b)
-org.apache.commons:commons-text:1.9 (1 constraints: b5102f9b)
+org.apache.commons:commons-text:1.10.0 (2 constraints: e8155ec0)
 org.apache.httpcomponents.client5:httpclient5:5.2.1 (2 constraints: d518b1c3)
 org.apache.httpcomponents.core5:httpcore5:5.2.2 (3 constraints: a038a439)
 org.apache.httpcomponents.core5:httpcore5-h2:5.2 (1 constraints: dd12c315)u}(jx (a6c841d15d2050fb2f38444225b555f47cf7510bj versions.propsj modifiedj Kj K j Kj `https://github.com/palantir/atlasdb/blob/4ea884d0f3096946d12f3ecdce4edd87b6c854a7/versions.propsj _https://github.com/palantir/atlasdb/raw/4ea884d0f3096946d12f3ecdce4edd87b6c854a7/versions.propsj rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=4ea884d0f3096946d12f3ecdce4edd87b6c854a7j X:  @@ -57,6 +57,7 @@ net.jpountz.lz4:lz4 = 1.3.0
 one.util:streamex = 0.8.1
 org.apache.commons:commons-lang3 = 3.12.0
 org.apache.commons:commons-pool2 = 2.11.1
+org.apache.commons:commons-text = 1.10.0
 org.apache.httpcomponents.client5:httpclient5 = 5.2.1
 org.assertj:* = 3.24.2
 org.awaitility:awaitility = 4.2.0ueu(316464ca48d3f803e359bf24760fd9695cced55d}(sha(316464ca48d3f803e359bf24760fd9695cced55dnode_idEC_kwDOAjP5fdoAKDMxNjQ2NGNhNDhkM2Y4MDNlMzU5YmYyNDc2MGZkOTY5NWNjZWQ1NWQcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-03-31T01:31:43Zu	committer}(j 
Ahmed Alouanej  aalouane@palantir.comj  2023-03-31T01:31:43Zumessagesadtree}(j (315993a5beabb76b69b529109a8ebda27df96efdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/315993a5beabb76b69b529109a8ebda27df96efduj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/316464ca48d3f803e359bf24760fd9695cced55d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQmN/8ACgkQPlMHVIT1
yhpqawf9HaH1wX9HOlEH7aL7j6IfLWN+KG7Ww2tB1pr5wEFExJFP/WzidwjvU4W3
BtUydazNehxx+h1wDsPC/BJv0ZVmpfcYmxpVG/NeFPKHiScuLs9iCEemfoyQtf9Q
olMeWb8J7f+vLN+VukgOeWUd05/f68k9I4IuIa2XNlvxhEsc3lC8KUNHXQ6y7k77
lTqkFoNb4+5XEnT1TZE2Cq6OlW/t0Xl2+BRNAz5648mrykfB4u9hBeuVOce8d00L
BGlzb5NEMJ0lLEvZGmsDU8x9Za64ZJAWJx1wotccW9dT9QHmle74AOmZxEuCVD/7
lMATaxF93MvAg1LBqfGYW+gzZoyUbQ==
=kioy
-----END PGP SIGNATURE-----payloadtree 315993a5beabb76b69b529109a8ebda27df96efd
parent f8c76949424e7a06aa162df6a100f5c02e594d29
author Ahmed Alouane <aalouane@palantir.com> 1680226303 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1680226303 +0100

sad
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/316464ca48d3f803e359bf24760fd9695cced55dhtml_urlShttps://github.com/palantir/atlasdb/commit/316464ca48d3f803e359bf24760fd9695cced55dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/316464ca48d3f803e359bf24760fd9695cced55d/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj  }(j"  ergo14j$  Jj MDQ6VXNlcjMwOTAzNzM2j&  4https://avatars.githubusercontent.com/u/30903736?v=4j(  h5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14j+  -https://api.github.com/users/ergo14/followersj-  :https://api.github.com/users/ergo14/following{/other_user}j/  3https://api.github.com/users/ergo14/gists{/gist_id}j1  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j3  1https://api.github.com/users/ergo14/subscriptionsj5  (https://api.github.com/users/ergo14/orgsj7  )https://api.github.com/users/ergo14/reposj9  4https://api.github.com/users/ergo14/events{/privacy}j;  3https://api.github.com/users/ergo14/received_eventsj=  Userj?  uparents]}(j (f8c76949424e7a06aa162df6a100f5c02e594d29j  ^https://api.github.com/repos/palantir/atlasdb/commits/f8c76949424e7a06aa162df6a100f5c02e594d29j  Shttps://github.com/palantir/atlasdb/commit/f8c76949424e7a06aa162df6a100f5c02e594d29uastats}(totalK	additionsK
	deletionsK
ufiles](}(j (88bd214a5821cbc0c51c4de2bb7212dc6f8ae78cfilenameNleader-election-impl/src/main/java/com/palantir/paxos/SqlitePaxosStateLog.javastatusmodifiedjY  KjZ  KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/316464ca48d3f803e359bf24760fd9695cced55d/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FSqlitePaxosStateLog.javaraw_urlhttps://github.com/palantir/atlasdb/raw/316464ca48d3f803e359bf24760fd9695cced55d/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FSqlitePaxosStateLog.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FSqlitePaxosStateLog.java?ref=316464ca48d3f803e359bf24760fd9695cced55dpatchX?  @@ -138,10 +138,9 @@ <V extends Persistable & Versionable> boolean[] writeBatchOfRounds(
                 @Bind("useCase") String useCase,
                 @BindPojo("round") Iterable<PaxosRound<V>> rounds);
 
-        @SqlQuery("SELECT MIN(namespace) FROM paxosLog")
-        Optional<String> getSmallestNamespace();
-
-        @SqlQuery("SELECT MIN(namespace) FROM paxosLog WHERE namespace > :namespace")
-        Optional<String> getNextSmallestNamespace(@Bind("namespace") String lastReadNamespace);
+        // This is performant as long as the query plan is SEARCH.
+        @SqlQuery("SELECT MIN(namespace) FROM paxosLog WHERE namespace > :maybeLastReadNamespace")
+        Optional<String> getNextLexicographicallySmallestNamespace(
+                @Bind("maybeLastReadNamespace") String maybeLastReadNamespace);
     }
 }u}(j (9fe3888160a6f9940e4ac562b73f4e9b808e9a3cj_  _timelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/SqliteNamespaceLoader.javaja  modifiedjY  K	jZ  Kjc  Kjd  https://github.com/palantir/atlasdb/blob/316464ca48d3f803e359bf24760fd9695cced55d/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FSqliteNamespaceLoader.javajf  https://github.com/palantir/atlasdb/raw/316464ca48d3f803e359bf24760fd9695cced55d/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FSqliteNamespaceLoader.javajh  https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FSqliteNamespaceLoader.java?ref=316464ca48d3f803e359bf24760fd9695cced55djj  X6  @@ -26,6 +26,8 @@
 import org.jdbi.v3.sqlobject.SqlObjectPlugin;
 
 final class SqliteNamespaceLoader implements PersistentNamespaceLoader {
+    private static final String EMPTY_STRING = "";
+
     private final Jdbi jdbi;
 
     private SqliteNamespaceLoader(Jdbi jdbi) {
@@ -42,22 +44,21 @@ public static PersistentNamespaceLoader create(DataSource dataSource) {
     public Set<Client> getAllPersistedNamespaces() {
         Set<Client> clients = new HashSet<>();
 
-        Optional<String> currentNamespace = getSmallestNamespace();
+        // Namespaces contain at least one character implying the empty string is lexicographically strictly smaller
+        // than any namespace.
+        Optional<String> currentNamespace = getNextLexicographicallySmallestNamespace(EMPTY_STRING);
         while (currentNamespace.isPresent()) {
             String namespaceString = currentNamespace.get();
             clients.add(Client.of(namespaceString));
-            currentNamespace = getNextSmallestNamespace(namespaceString);
+            currentNamespace = getNextLexicographicallySmallestNamespace(namespaceString);
         }
 
         return clients;
     }
 
-    private Optional<String> getSmallestNamespace() {
-        return jdbi.withExtension(SqlitePaxosStateLog.Queries.class, SqlitePaxosStateLog.Queries::getSmallestNamespace);
-    }
-
-    private Optional<String> getNextSmallestNamespace(String lastReadNamespace) {
+    private Optional<String> getNextLexicographicallySmallestNamespace(String maybeLastReadNamespace) {
         return jdbi.withExtension(
-                SqlitePaxosStateLog.Queries.class, dao -> dao.getNextSmallestNamespace(lastReadNamespace));
+                SqlitePaxosStateLog.Queries.class,
+                dao -> dao.getNextLexicographicallySmallestNamespace(maybeLastReadNamespace));
     }
 }ueu(008b5da673b400f8afb22e8cfb3c6e5eaed744cf}(sha(008b5da673b400f8afb22e8cfb3c6e5eaed744cfnode_idEC_kwDOAjP5fdoAKDAwOGI1ZGE2NzNiNDAwZjhhZmIyMmU4Y2ZiM2M2ZTVlYWVkNzQ0Y2Ycommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-07T15:20:19Zu	committer}(j~  
Sam Kramerj  skramer@palantir.comj  2023-03-07T15:20:19Zumessagenittree}(jv  (220366c29a491662379c2615ef858f3b648693dcurl`https://api.github.com/repos/palantir/atlasdb/git/trees/220366c29a491662379c2615ef858f3b648693dcuj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/008b5da673b400f8afb22e8cfb3c6e5eaed744cf
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQHVjMACgkQmPPOpKR4
XS2ewAgApOqbEqeajPuJRBld2XVSQN4K16deHLG00T+nDwJRS25XH1aVnq0s4C75
QOwd+CtGTjmEkeF9l8Vh8uPz41VAnK549djg4c5nKLGybqDzRazV/BGtRgVk2zFW
DbQayQIg862OreAERiTJpVhIRFdI0EHaJPxmtRr4boVtkvBKZvY+KklUSti5KCfM
Nnfd0w1qK5uCj1HXLf7YYRRdz+cU2rGhN2/s1OEj9Ud2Pt/a1CTd1D/DF+Fvi6qx
SlyiqPg6eZaH/zcjJ1L0hwKxsJiQOxv6d4KqmtJ0Sj3g24IVq1lhXF5osUAj45eY
F664fVQzLIhW0Q7tJasLGg0DI8MR1g==
=sYi8
-----END PGP SIGNATURE-----payloadtree 220366c29a491662379c2615ef858f3b648693dc
parent c54edd01ef19163432488b132e1a6195c475f3d3
author Sam Kramer <skramer@palantir.com> 1678202419 +0000
committer Sam Kramer <skramer@palantir.com> 1678202419 +0000

nit
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/008b5da673b400f8afb22e8cfb3c6e5eaed744cfhtml_urlShttps://github.com/palantir/atlasdb/commit/008b5da673b400f8afb22e8cfb3c6e5eaed744cfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/008b5da673b400f8afb22e8cfb3c6e5eaed744cf/commentsj|  }(login
Sam-KrameridJ^2_ jx  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j  
Sam-Kramerj  J^2_ jx  MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j  h5j  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj  1https://api.github.com/users/Sam-Kramer/followersj  >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j  5https://api.github.com/users/Sam-Kramer/subscriptionsj  ,https://api.github.com/users/Sam-Kramer/orgsj  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj  uparents]}(jv  (c54edd01ef19163432488b132e1a6195c475f3d3j  ^https://api.github.com/repos/palantir/atlasdb/commits/c54edd01ef19163432488b132e1a6195c475f3d3j  Shttps://github.com/palantir/atlasdb/commit/c54edd01ef19163432488b132e1a6195c475f3d3uastats}(totalK	additionsK	deletionsKufiles]}(jv  (4d583484e99e4cc63642e62a005732ba4ca0d5d9filenamelatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetrics.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/008b5da673b400f8afb22e8cfb3c6e5eaed744cf/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javaraw_urlhttps://github.com/palantir/atlasdb/raw/008b5da673b400f8afb22e8cfb3c6e5eaed744cf/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.java?ref=008b5da673b400f8afb22e8cfb3c6e5eaed744cfpatchX  @@ -43,15 +43,14 @@ public class CassandraClientPoolMetrics {
     // Not bundled in with request metrics, as we seek to not produce host-level metrics for economic reasons.
     private final Counter poolExhaustionCounter;
 
-    private final AtomicLong poolSize;
+    private final AtomicLong poolSize = new AtomicLong(0L);
 
     public CassandraClientPoolMetrics(MetricsManager metricsManager) {
         this.metricsManager = metricsManager;
         this.aggregateRequestMetrics = new RequestMetrics(metricsManager);
         this.poolExhaustionCounter =
                 metricsManager.registerOrGetCounter(CassandraClientPoolMetrics.class, "pool-exhaustion");
         this.outlierControllers = createOutlierControllers(metricsManager);
-        this.poolSize = new AtomicLong(0L);
         metricsManager.registerMetric(CassandraClientPoolMetrics.class, POOL_SIZE_METRIC_NAME, poolSize::get);
     }
 uau(040be93f342c9efbed9ffbf5616cf6d232d6dcac}(sha(040be93f342c9efbed9ffbf5616cf6d232d6dcacnode_idEC_kwDOAjP5fdoAKDA0MGJlOTNmMzQyYzllZmJlZDlmZmJmNTYxNmNmNmQyMzJkNmRjYWMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-07-18T10:03:28Zu	committer}(j  
Sam Kramerj  skramer@palantir.comj  2023-07-18T10:03:59Zumessage(check before and after keyspace creationtree}(j  (7019c20db94167c16309edf0ae8a96d463018ce6url`https://api.github.com/repos/palantir/atlasdb/git/trees/7019c20db94167c16309edf0ae8a96d463018ce6uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/040be93f342c9efbed9ffbf5616cf6d232d6dcac
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmS2Y48ACgkQmPPOpKR4
XS2C6wgAkEvhSfD82A+Ysq3f0ZG1V1dxnNhOT+IajiLjDEAGhFTGM1XUbSvCC8hh
LWdHfRU1H7xKsTTMB+31iQVUxqWhHjX4ZEdn9vQbPPyrtlGRyLb7TSXq+4dcQMpU
C6oDRqf6a1ewJRsIq8EtRoIEgos7pDvzUGhQF70oeMhR4EFfDmfbBPE8yBJv3ds1
B4lafvIuQjOgskOi6yf3myR34IAccL0BXhgPof24zKJLu21Xxau4WjT8GjfmT68j
8ho3nfgaqwJVBSkre2fLPpqYtaMN2tXkaDC3z1h9o0NFWXJjMcLkahzFnLHgodY4
lEkfwo5uO1UDke1zbl0Uq/kMZmeDoQ==
=KC5P
-----END PGP SIGNATURE-----payloadtree 7019c20db94167c16309edf0ae8a96d463018ce6
parent 59aa43586270cc5d2bf05450e1e0c7c404d43867
author Sam Kramer <skramer@palantir.com> 1689674608 +0100
committer Sam Kramer <skramer@palantir.com> 1689674639 +0100

check before and after keyspace creation
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/040be93f342c9efbed9ffbf5616cf6d232d6dcachtml_urlShttps://github.com/palantir/atlasdb/commit/040be93f342c9efbed9ffbf5616cf6d232d6dcaccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/040be93f342c9efbed9ffbf5616cf6d232d6dcac/commentsj  }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj  }(j 
Sam-Kramerj J^2_ j  MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj! 1https://api.github.com/users/Sam-Kramer/followersj# >https://api.github.com/users/Sam-Kramer/following{/other_user}j% 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j' >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j) 5https://api.github.com/users/Sam-Kramer/subscriptionsj+ ,https://api.github.com/users/Sam-Kramer/orgsj- -https://api.github.com/users/Sam-Kramer/reposj/ 8https://api.github.com/users/Sam-Kramer/events{/privacy}j1 7https://api.github.com/users/Sam-Kramer/received_eventsj3 Userj5 uparents]}(j  (59aa43586270cc5d2bf05450e1e0c7c404d43867j ^https://api.github.com/repos/palantir/atlasdb/commits/59aa43586270cc5d2bf05450e1e0c7c404d43867j Shttps://github.com/palantir/atlasdb/commit/59aa43586270cc5d2bf05450e1e0c7c404d43867uastats}(totalK	additionsK	deletionsK ufiles]}(j  (5401bf3d0166157025601435b19f8490ce4f1643filename^atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraVerifier.javastatusmodifiedjO KjP K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/040be93f342c9efbed9ffbf5616cf6d232d6dcac/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.javaraw_urlhttps://github.com/palantir/atlasdb/raw/040be93f342c9efbed9ffbf5616cf6d232d6dcac/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.java?ref=040be93f342c9efbed9ffbf5616cf6d232d6dcacpatchX  @@ -267,6 +267,8 @@ private static boolean attemptToCreateKeyspaceOnHost(CassandraServer host, Cassa
             throws TException {
         try (CassandraClient client = CassandraClientFactory.getClientInternal(host, verifierConfig.clientConfig())) {
             KsDef ksDef = createKsDefForFresh(client, verifierConfig);
+            CassandraKeyValueServices.waitForSchemaVersions(
+                    verifierConfig.schemaMutationTimeoutMillis(), client, "before adding the initial empty keyspace");
             client.system_add_keyspace(ksDef);
             log.info("Created keyspace: {}", SafeArg.of("keyspace", verifierConfig.keyspace()));
             CassandraKeyValueServices.waitForSchemaVersions(uau(a17bb8195aeb300dcee7a4552297f6f4b4fabfb2}(sha(a17bb8195aeb300dcee7a4552297f6f4b4fabfb2node_idEC_kwDOAjP5fdoAKGExN2JiODE5NWFlYjMwMGRjZWU3YTQ1NTIyOTdmNmY0YjRmYWJmYjIcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-03-31T02:52:22Zu	committer}(jl Patrick Koenigjn pkoenig10@gmail.comjp 2023-03-31T02:52:22Zumessage%Don't add executor metrics by defaulttree}(jd (49ce4912ad269fef026b2c59f141eff01b057164url`https://api.github.com/repos/palantir/atlasdb/git/trees/49ce4912ad269fef026b2c59f141eff01b057164uj| bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a17bb8195aeb300dcee7a4552297f6f4b4fabfb2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAAhcAAAAHc3NoLXJzYQAAAAMBAAEAAAIBAOLBVI00yZaP7395xCyqzy
aD/kgGj5GS8qP2f4Q0hM5gFbEYaTLwKvZTgcFMKJEw/3tOlCyuFoQChwrZ+YjoX3ZcTdIs
QnoGeYlwKUGY4x3QXLvrURZtGaXWggfEc+UKHT3mnGXM9FpX9CSdpTopg7KhxDlx3/Jv90
zimWImFPxKFUSZrhVGqD8qAQibPTFDs+JhK0cqllhsvm0PR9PilTde++NKLCQUNrRJi2+f
BjLBjJMJshRwXkkM6J8hDvyjiLJz4Bg9hq+5QLnO1fYaetU7aP4bsCs6ix5pyD4WO6cr6T
SMCtJThNdHvOVuOaCCHBOQrdVGjbMH9lmW5FL5oMsTZ86p24rZOFD9ly44mMJWYGk6F81y
japNgWorhR0tSZMSZPVlisGQQsRnsqQidrVPe3IR4MTUsKx39CAutxgk6N+BseeByXKw+H
aBKmd75u/FU7IoxEbXX7EuDq2TCtUmujYXiY7SY4T0DQDjNpHq+vrEUsKyi5mbRTdNahvt
eFWJU5UIwO7Ao+HdsqfUjGN6zw2HSkiHEG3iOj5OY+byI/ykoYGMQ40w6w7shCt7XDbUXa
/kGqIyicthBGQ7Y4/TtquH5Ag2UPSlN9C0Rt/ZBolkTfoLz4wCtTMzd7hdixs5yuocVTn7
njhSYSXRyRbbVcF/q56x1NAAsVOe9epxAAAAA2dpdAAAAAAAAAAGc2hhNTEyAAACFAAAAA
xyc2Etc2hhMi01MTIAAAIAAHXwADcBm4SlfikJDoDKOj1p2Lrh/p6JJ/NS3h5M3O8T4P3M
NsiD3lSy9CV/7ApCe5XfJtwMIcD4yPw/PjenY+i72uJiGKm+9QLW5sgAgDpawYjh5DY86W
Fih5be/kkdsOAfURivz919d7Z8ygYDtzw7yN1ht5x72doPGDjHXx/EvL6KDRZQdK/O0fxZ
EFckN4nfINqeKcKUrQTVJV+jr5hDb+UNtcGanCOggRnGtBDsGVikqWld+sg41ouSLCdc9b
tBddkbPj3zpR6OcbdHWq9Sx5jSqRJuKSbCXXFOdGOmMxf49I7RFpRTcD3udW2Ten8xFRWA
ScSvhMCbzaR9hCQskXrQ1sspfPWY/rM/3x/w7zsrJqtoNlRyCsCDED361OTJOZWFgIhQm1
L5JW1YPJEc3EpP2tnEHsu6uTLYGawxknWqHDjiZMAAeOOr+XSTg+q/TqwcnpIwmnJgJOYC
+7OKLY+a2duGKGnd4HaszGMr10s1NeK7bhBxYXp6DNbUQOY7yZ4Br0wCILU4ohEYuRP3N7
d3q7he5u6U4nrY/76PGtukTcB0QZLOXZtM0ZVW/o7b5kco1nie2PRN6vvaT/WxQnKxvd7Z
gZiALmAVG8hS/c7gAWmmk/xhHXz2f4lrbNdt9eyfoK0mOwvRQjBB0Eo4286ZnGBHgBORAz
SSSr0=
-----END SSH SIGNATURE-----payloadX  tree 49ce4912ad269fef026b2c59f141eff01b057164
parent 44a6930443bb70b40ca00f76d282a73d2681dc7a
author Patrick Koenig <pkoenig10@gmail.com> 1680231142 -0700
committer Patrick Koenig <pkoenig10@gmail.com> 1680231142 -0700

Don't add executor metrics by default
uuj| ^https://api.github.com/repos/palantir/atlasdb/commits/a17bb8195aeb300dcee7a4552297f6f4b4fabfb2html_urlShttps://github.com/palantir/atlasdb/commit/a17bb8195aeb300dcee7a4552297f6f4b4fabfb2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a17bb8195aeb300dcee7a4552297f6f4b4fabfb2/commentsjj }(login	pkoenig10idJLvP jf MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5j| &https://api.github.com/users/pkoenig10j https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminujr }(j 	pkoenig10j JLvP jf MDQ6VXNlcjUyNzMxNjQ=j 3https://avatars.githubusercontent.com/u/5273164?v=4j h5j| &https://api.github.com/users/pkoenig10j https://github.com/pkoenig10j 0https://api.github.com/users/pkoenig10/followersj =https://api.github.com/users/pkoenig10/following{/other_user}j 6https://api.github.com/users/pkoenig10/gists{/gist_id}j =https://api.github.com/users/pkoenig10/starred{/owner}{/repo}j 4https://api.github.com/users/pkoenig10/subscriptionsj +https://api.github.com/users/pkoenig10/orgsj ,https://api.github.com/users/pkoenig10/reposj 7https://api.github.com/users/pkoenig10/events{/privacy}j 6https://api.github.com/users/pkoenig10/received_eventsj Userj uparents]}(jd (44a6930443bb70b40ca00f76d282a73d2681dc7aj| ^https://api.github.com/repos/palantir/atlasdb/commits/44a6930443bb70b40ca00f76d282a73d2681dc7aj Shttps://github.com/palantir/atlasdb/commit/44a6930443bb70b40ca00f76d282a73d2681dc7auastats}(totalK	additionsKB	deletionsKyufiles](}(jd (83bbfc5997cf1328277cd3b28ef7888afd6d6b03filename.palantir/revapi.ymlstatusmodifiedj Kj K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/a17bb8195aeb300dcee7a4552297f6f4b4fabfb2/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/a17bb8195aeb300dcee7a4552297f6f4b4fabfb2/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=a17bb8195aeb300dcee7a4552297f6f4b4fabfb2patchXl  @@ -115,3 +115,21 @@ acceptedBreaks:
     - code: "java.class.removed"
       old: "interface com.palantir.atlasdb.transaction.api.expectations.ExpectationsAwareTransaction"
       justification: "moving out of API"
+  "0.824.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.numberOfParametersChanged"
+      old: "method java.util.concurrent.ExecutorService com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService::createFixedThreadPool(java.lang.String,\
+        \ int) @ com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl"
+      new: "method java.util.concurrent.ExecutorService com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService::createFixedThreadPool(com.palantir.tritium.metrics.registry.TaggedMetricRegistry,\
+        \ java.lang.String, int) @ com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl"
+      justification: "Protected method"
+    - code: "java.method.numberOfParametersChanged"
+      old: "method java.util.concurrent.ExecutorService com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService::createThreadPool(java.lang.String,\
+        \ int, int) @ com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl"
+      new: "method java.util.concurrent.ExecutorService com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService::createThreadPool(com.palantir.tritium.metrics.registry.TaggedMetricRegistry,\
+        \ java.lang.String, int, int) @ com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl"
+      justification: "Protected method"
+    - code: "java.method.removed"
+      old: "method java.util.concurrent.ExecutorService com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService::createThreadPoolWihtoutSpans(java.lang.String,\
+        \ int, int) @ com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl"
+      justification: "Protected method"u}(jd (7a18b9e67bf7a0bbaf7ec3265b80aa581d1f2531j iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a17bb8195aeb300dcee7a4552297f6f4b4fabfb2/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj https://github.com/palantir/atlasdb/raw/a17bb8195aeb300dcee7a4552297f6f4b4fabfb2/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=a17bb8195aeb300dcee7a4552297f6f4b4fabfb2     j X<  @@ -108,8 +108,6 @@
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
-import com.palantir.tracing.Tracers;
-import com.palantir.tritium.metrics.MetricRegistries;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import com.palantir.util.Pair;
 import com.palantir.util.paging.AbstractPagingIterable;
@@ -485,10 +483,7 @@ private static Supplier<ExecutorService> instrumentedFixedThreadPoolSupplier(
             int numberOfThriftHosts = serversConfig.numberOfThriftHosts();
             int corePoolSize = poolSize * numberOfThriftHosts;
             int maxPoolSize = maxConnectionBurstSize * numberOfThriftHosts;
-            return Tracers.wrap(MetricRegistries.instrument(
-                    registry,
-                    createThreadPoolWihtoutSpans("Atlas Cassandra KVS", corePoolSize, maxPoolSize),
-                    "Atlas Cassandra KVS"));
+            return createThreadPoolWithoutSpans(registry, "Atlas Cassandra KVS", corePoolSize, maxPoolSize);
         };
     }
 u}(jd (ea49e7c8474a296c118bb455af815344ab2b4a5fj \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/AbstractKeyValueService.javaj modifiedj Kj K
j K j https://github.com/palantir/atlasdb/blob/a17bb8195aeb300dcee7a4552297f6f4b4fabfb2/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javaj https://github.com/palantir/atlasdb/raw/a17bb8195aeb300dcee7a4552297f6f4b4fabfb2/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.java?ref=a17bb8195aeb300dcee7a4552297f6f4b4fabfb2j X  @@ -39,6 +39,8 @@
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.common.base.ClosableIterator;
 import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.tritium.metrics.MetricRegistries;
+import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
 import java.util.ArrayList;
 import java.util.Collection;
@@ -70,38 +72,48 @@ public AbstractKeyValueService(ExecutorService executor) {
     /**
      * Creates a fixed thread pool.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param corePoolSize size of the core pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createFixedThreadPool(String threadNamePrefix, int corePoolSize) {
-        return createThreadPool(threadNamePrefix, corePoolSize, corePoolSize);
+    protected static ExecutorService createFixedThreadPool(
+            TaggedMetricRegistry registry, String name, int corePoolSize) {
+        return createThreadPool(registry, name, corePoolSize, corePoolSize);
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPool(String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPool(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPool(
+            TaggedMetricRegistry registry, String name, int _corePoolSize, int maxPoolSize) {
+        return MetricRegistries.executor()
+                .registry(registry)
+                .name(name)
+                .executor(PTExecutors.newFixedThreadPool(maxPoolSize, name))
+                .build();
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      * It does not create a span.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPoolWihtoutSpans(
-            String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPoolWithoutSpans(
+            TaggedMetricRegistry registry, String name, int _corePoolSize, int maxPoolSize) {
+        return MetricRegistries.executor()
+                .registry(registry)
+                .name(name)
+                .executor(PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, name))
+                .build();
     }
 
     @Overrideu}(jd (310ea4f85263ce4f8ddc5b071ffc29d88987510ej $changelog/@unreleased/pr-6490.v2.ymlj addedj Kj K j Kj |https://github.com/palantir/atlasdb/blob/a17bb8195aeb300dcee7a4552297f6f4b4fabfb2/changelog%2F%40unreleased%2Fpr-6490.v2.ymlj {https://github.com/palantir/atlasdb/raw/a17bb8195aeb300dcee7a4552297f6f4b4fabfb2/changelog%2F%40unreleased%2Fpr-6490.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6490.v2.yml?ref=a17bb8195aeb300dcee7a4552297f6f4b4fabfb2j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Executors created using `PTExecutors` don't produce metrics by default.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6490u}(jd (37ade6c5706e0f74a88549e5074309482d52c373j Ocommons-executors/src/main/java/com/palantir/common/concurrent/PTExecutors.javaj modifiedj K
j K3j K=j https://github.com/palantir/atlasdb/blob/a17bb8195aeb300dcee7a4552297f6f4b4fabfb2/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutors.javaj https://github.com/palantir/atlasdb/raw/a17bb8195aeb300dcee7a4552297f6f4b4fabfb2/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutors.javaj https://api.github.com/repos/palantir/atlasdb/contents/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutors.java?ref=a17bb8195aeb300dcee7a4552297f6f4b4fabfb2j X?  @@ -28,8 +28,6 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.nylon.threads.NylonExecutor;
 import com.palantir.tracing.Tracers;
-import com.palantir.tritium.metrics.MetricRegistries;
-import com.palantir.tritium.metrics.registry.SharedTaggedMetricRegistries;
 import java.lang.ref.WeakReference;
 import java.util.ArrayList;
 import java.util.Collection;
@@ -148,14 +146,12 @@ public static ExecutorService newCachedThreadPool(ThreadFactory threadFactory) {
      */
     @Deprecated
     public static ExecutorService newCachedThreadPool(ThreadFactory threadFactory, int threadTimeoutMillis) {
-        return tryInstrumentCachedExecutor(
-                newThreadPoolExecutor(
-                        0,
-                        Integer.MAX_VALUE,
-                        threadTimeoutMillis,
-                        TimeUnit.MILLISECONDS,
-                        new SynchronousQueue<Runnable>(),
-                        threadFactory),
+        return newThreadPoolExecutor(
+                0,
+                Integer.MAX_VALUE,
+                threadTimeoutMillis,
+                TimeUnit.MILLISECONDS,
+                new SynchronousQueue<>(),
                 threadFactory);
     }
 
@@ -190,13 +186,7 @@ public static ExecutorService newCachedThreadPoolWithoutSpan(String name) {
     public static ExecutorService newCachedThreadPoolWithMaxThreads(int maxThreads, String name) {
         verifyName(name);
         Preconditions.checkArgument(maxThreads > 0, "Max threads must be positive");
-        return MetricRegistries.executor()
-                .registry(SharedTaggedMetricRegistries.getSingleton())
-                .name(name)
-                .executor(PTExecutors.wrap(name, getViewExecutor(name, maxThreads, 0, SHARED_EXECUTOR.get())))
-                // Unhelpful for cached executors
-                .reportQueuedDuration(false)
-                .build();
+        return PTExecutors.wrap(name, getViewExecutor(name, maxThreads, 0, SHARED_EXECUTOR.get()));
     }
 
     /** Specialized cached executor which throws
@@ -209,31 +199,7 @@ public static ExecutorService newCachedThreadPoolWithMaxThreads(int maxThreads,
     public static ExecutorService newCachedThreadPoolWithMaxThreadsWithoutSpan(int maxThreads, String name) {
         verifyName(name);
         Preconditions.checkArgument(maxThreads > 0, "Max threads must be positive");
-        return MetricRegistries.executor()
-                .registry(SharedTaggedMetricRegistries.getSingleton())
-                .name(name)
-                .executor(PTExecutors.wrapWithoutSpan(getViewExecutor(name, maxThreads, 0, SHARED_EXECUTOR.get())))
-                // Unhelpful for cached executors
-                .reportQueuedDuration(false)
-                .build();
-    }
-
-    /**
-     * Instruments the provided {@link ExecutorService} if the {@link ThreadFactory} is a {@link NamedThreadFactory}.
-     */
-    @SuppressWarnings("deprecation") // No reasonable way to pass a TaggedMetricRegistry
-    private static ExecutorService tryInstrumentCachedExecutor(ExecutorService executorService, ThreadFactory factory) {
-        if (factory instanceof NamedThreadFactory) {
-            String name = ((NamedThreadFactory) factory).getPrefix();
-            return MetricRegistries.executor()
-                    .registry(SharedTaggedMetricRegistries.getSingleton())
-                    .name(name)
-                    .executor(executorService)
-                    // Unhelpful for cached executors
-                    .reportQueuedDuration(false)
-                    .build();
-        }
-        return executorService;
+        return PTExecutors.wrapWithoutSpan(getViewExecutor(name, maxThreads, 0, SHARED_EXECUTOR.get()));
     }
 
     /**
@@ -295,10 +261,7 @@ public static ThreadPoolExecutor newFixedThreadPool(int numThreads, ThreadFactor
      * @throws IllegalArgumentException if <tt>numThreads &lt;= 0</tt>
      */
     public static ExecutorService newFixedThreadPool(int numThreads, String name) {
-        return MetricRegistries.instrument(
-                SharedTaggedMetricRegistries.getSingleton(),
-                PTExecutors.wrap(name, getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())),
-                name);
+        return PTExecutors.wrap(name, getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get()));
     }
 
     /**
@@ -316,11 +279,7 @@ public static ExecutorService newFixedThreadPool(int numThreads, String name) {
      * @throws IllegalArgumentException if <tt>numThreads &lt;= 0</tt>
      */
     public static ExecutorService newFixedThreadPoolWithoutSpan(int numThreads, String name) {
-        return MetricRegistries.instrument(
-                SharedTaggedMetricRegistries.getSingleton(),
-                PTExecutors.wrapWithoutSpan(
-                        getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())),
-                name);
+        return PTExecutors.wrapWithoutSpan(getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get()));
     }
 
     public static ExecutorService getViewExecutor(u}(jd (5666cd0fa7b9f7d4ef8a715735cdb902d890a106j Scommons-executors/src/test/java/com/palantir/common/concurrent/PTExecutorsTest.javaj modifiedj K
j K6j K@j https://github.com/palantir/atlasdb/blob/a17bb8195aeb300dcee7a4552297f6f4b4fabfb2/commons-executors%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutorsTest.javaj https://github.com/palantir/atlasdb/raw/a17bb8195aeb300dcee7a4552297f6f4b4fabfb2/commons-executors%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutorsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/commons-executors%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutorsTest.java?ref=a17bb8195aeb300dcee7a4552297f6f4b4fabfb2j X  @@ -18,24 +18,15 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
-import com.codahale.metrics.Meter;
-import com.codahale.metrics.Metric;
-import com.google.common.collect.MoreCollectors;
 import com.google.common.util.concurrent.MoreExecutors;
-import com.google.common.util.concurrent.Runnables;
 import com.google.common.util.concurrent.SettableFuture;
 import com.palantir.tracing.Observability;
 import com.palantir.tracing.Tracer;
 import com.palantir.tracing.api.OpenSpan;
 import com.palantir.tracing.api.Span;
 import com.palantir.tracing.api.SpanType;
-import com.palantir.tritium.metrics.registry.MetricName;
-import com.palantir.tritium.metrics.registry.SharedTaggedMetricRegistries;
-import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import java.util.HashMap;
 import java.util.Map;
-import java.util.Objects;
-import java.util.UUID;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Executors;
 import java.util.concurrent.ScheduledFuture;
@@ -48,9 +39,9 @@
 @SuppressWarnings("checkstyle:AbbreviationAsWordInName") // Name matches the class we're testing
 public class PTExecutorsTest {
 
-    private static String INNER_TRACE_ID = "innerTraceId";
-    private static String INNER_SPAN_ID = "innerSpanId";
-    private static String INNER_SPAN_PARENT_ID = "innerSpanParentId";
+    private static final String INNER_TRACE_ID = "innerTraceId";
+    private static final String INNER_SPAN_ID = "innerSpanId";
+    private static final String INNER_SPAN_PARENT_ID = "innerSpanParentId";
 
     @Test
     public void testExecutorName_namedThreadFactory() {
@@ -79,12 +70,12 @@ public void testExecutorName_customThreadFactory_fallback() {
     }
 
     @Test
-    public void testExecutorThreadLocalState_cachedPoolNospan() {
+    public void testExecutorThreadLocalState_cachedPoolNoSpan() {
         Tracer.initTraceWithSpan(Observability.SAMPLE, "RandomID", "outerSpan", SpanType.LOCAL);
 
         String outerTraceId = Tracer.getTraceId();
 
-        // Because we are doing things within a lamda function, we need to use atomic references outside the lamda
+        // Because we are doing things within a lambda function, we need to use atomic references outside the lambda
         AtomicReference<String> innerSpanId = new AtomicReference<>("");
         AtomicReference<String> innerSpanParentId = new AtomicReference<>("");
         AtomicReference<String> innerTraceId = new AtomicReference<>("");
@@ -93,13 +84,13 @@ public void testExecutorThreadLocalState_cachedPoolNospan() {
             // Submit a task of a function that only starts a span within it
             Map<String, String> innerTracInfo = executor.submit(this::spanTask).get();
 
-            // Set our AtomicReference variables for use outside lamda
+            // Set our AtomicReference variables for use outside lambda
             innerTraceId.set(innerTracInfo.get(INNER_TRACE_ID));
             innerSpanId.set(innerTracInfo.get(INNER_SPAN_ID));
             innerSpanParentId.set(innerTracInfo.get(INNER_SPAN_PARENT_ID));
         });
         // Close outer span, which lets us collect information about it
-        Span outerSpan = Tracer.completeSpan().get();
+        Span outerSpan = Tracer.completeSpan().orElseThrow();
 
         assertThat(innerTraceId.get()).isEqualTo(outerTraceId);
         assertThat(outerSpan.getSpanId()).isNotEqualTo(innerSpanId.get());
@@ -169,41 +160,6 @@ public void testExecutorThreadLocalState_scheduledPool_scheduleAtFixedRate() {
         });
     }
 
-    @Test
-    @SuppressWarnings("deprecation") // Testing a component that relies on the singleton TaggedMetricRegistry
-    public void testCachedExecutorMetricsRecorded() {
-        // Metrics are recorded to the global singleton registry, so we generate a random name to avoid
-        // clobbering state from other tests.
-        String executorName = UUID.randomUUID().toString();
-        TaggedMetricRegistry metrics = SharedTaggedMetricRegistries.getSingleton();
-        withExecutor(() -> PTExecutors.newCachedThreadPool(executorName), executor -> {
-            executor.execute(Runnables.doNothing());
-        });
-        Meter submitted = findMetric(
-                metrics,
-                MetricName.builder()
-                        .safeName("executor.submitted")
-                        .putSafeTags("executor", executorName)
-                        .build(),
-                Meter.class);
-        assertThat(submitted.getCount()).isOne();
-    }
-
-    private static <T extends Metric> T findMetric(TaggedMetricRegistry metrics, MetricName name, Class<T> type) {
-        return metrics.getMetrics().entrySet().stream()
-                .filter(entry -> {
-                    MetricName metricName = entry.getKey();
-                    return Objects.equals(name.safeName(), metricName.safeName())
-                            && metricName
-                                    .safeTags()
-                                    .entrySet()
-                                    .containsAll(name.safeTags().entrySet());
-                })
-                .map(Map.Entry::getValue)
-                .map(type::cast)
-                .collect(MoreCollectors.onlyElement());
-    }
-
     private static <T extends ExecutorService> void withExecutor(Supplier<T> factory, ThrowingConsumer<T> test) {
         T executor = factory.get();
         try {
@@ -220,13 +176,13 @@ private static <T extends ExecutorService> void withExecutor(Supplier<T> factory
         }
     }
 
-    // This method is used only to make a span an return some information about the span
+    // This method is used only to make a span and return some information about the span
     private Map<String, String> spanTask() {
         OpenSpan innerSpan = Tracer.startSpan("innerSpan");
-        Map<String, String> innerTraceInfo = new HashMap<String, String>();
+        Map<String, String> innerTraceInfo = new HashMap<>();
         String innerTraceId = Tracer.getTraceId();
         String innerSpanId = innerSpan.getSpanId();
-        String innerSpanParentId = innerSpan.getParentSpanId().get();
+        String innerSpanParentId = innerSpan.getParentSpanId().orElseThrow();
         innerTraceInfo.put(INNER_TRACE_ID, innerTraceId);
         innerTraceInfo.put(INNER_SPAN_ID, innerSpanId);
         innerTraceInfo.put(INNER_SPAN_PARENT_ID, innerSpanParentId);ueu(4b6627d239e97dbd2e0e406504cadcca9696a15e}(sha(4b6627d239e97dbd2e0e406504cadcca9696a15enode_idEC_kwDOAjP5fdoAKDRiNjYyN2QyMzllOTdkYmQyZTBlNDA2NTA0Y2FkY2NhOTY5NmExNWUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-23T15:50:39Zu	committer}(j 
Sam Kramerj
 skramer@palantir.comj 2023-05-23T15:50:39Zumessagebad docstree}(j (f8d69c2e03f8cc6b31a16e4db48f153114b1271durl`https://api.github.com/repos/palantir/atlasdb/git/trees/f8d69c2e03f8cc6b31a16e4db48f153114b1271duj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4b6627d239e97dbd2e0e406504cadcca9696a15e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRs4M8ACgkQmPPOpKR4
XS2v4wgApEdWyyF7yW+8Hy285Zqpk2SnLPMKmfW+iT6RTIlMQ2riiaOLgrld4OUr
sUYI3+wAElQwfs/LkoqlH9U8YrzBHt/E6fR8xyXw+BpQ9OacJJSWki0MfjepFxZA
Cb+9nsp+8vSFhjjFj65FD0+OyY7+xLTek8uL19O46M7mWYH5hdMN/7MrFTFOCOSG
DgkZxANSNA2/6hqLcdqBmAFW+v6W3uxQSlyQeJPU5OGdnshT68GYgKfKIqsw/o5Z
CUUDFQgZDKv2BlGhViLMMJPkh1wi6IUyBqHctA+p54OvAsmhajSX9d45vQ2CNRnY
Fq94UZEWi5GbM301WK7VLmorYMZ9rQ==
=YqOf
-----END PGP SIGNATURE-----payloadtree f8d69c2e03f8cc6b31a16e4db48f153114b1271d
parent 4f344c6d8ab4c4dc553c97d393e763ebef7c27e1
author Sam Kramer <skramer@palantir.com> 1684857039 +0100
committer Sam Kramer <skramer@palantir.com> 1684857039 +0100

bad docs
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/4b6627d239e97dbd2e0e406504cadcca9696a15ehtml_urlShttps://github.com/palantir/atlasdb/commit/4b6627d239e97dbd2e0e406504cadcca9696a15ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4b6627d239e97dbd2e0e406504cadcca9696a15e/commentsj	 }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj) https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j. 
Sam-Kramerj0 J^2_ j MDQ6VXNlcjYyMzg4MTQ=j2 3https://avatars.githubusercontent.com/u/6238814?v=4j4 h5j 'https://api.github.com/users/Sam-Kramerj) https://github.com/Sam-Kramerj7 1https://api.github.com/users/Sam-Kramer/followersj9 >https://api.github.com/users/Sam-Kramer/following{/other_user}j; 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j= >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j? 5https://api.github.com/users/Sam-Kramer/subscriptionsjA ,https://api.github.com/users/Sam-Kramer/orgsjC -https://api.github.com/users/Sam-Kramer/reposjE 8https://api.github.com/users/Sam-Kramer/events{/privacy}jG 7https://api.github.com/users/Sam-Kramer/received_eventsjI UserjK uparents]}(j (4f344c6d8ab4c4dc553c97d393e763ebef7c27e1j ^https://api.github.com/repos/palantir/atlasdb/commits/4f344c6d8ab4c4dc553c97d393e763ebef7c27e1j) Shttps://github.com/palantir/atlasdb/commit/4f344c6d8ab4c4dc553c97d393e763ebef7c27e1uastats}(totalK	additionsK	deletionsKufiles]}(j (033647e779c9a9bbac0d60f8891483cec5bc8cc2filenamegradle/docker.gradlestatusmodifiedje Kjf KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/4b6627d239e97dbd2e0e406504cadcca9696a15e/gradle%2Fdocker.gradleraw_urlghttps://github.com/palantir/atlasdb/raw/4b6627d239e97dbd2e0e406504cadcca9696a15e/gradle%2Fdocker.gradlecontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fdocker.gradle?ref=4b6627d239e97dbd2e0e406504cadcca9696a15epatchX0  @@ -5,7 +5,7 @@ def imageVersion = "${project.version.toString().replaceAll('\\+', '-')}"
 docker {
     name "palantirtechnologies/${project.name}:${imageVersion}"
     tags 'latest', 'snapshot'
-    labels(['version', imageVersion])
+    labels ['version', imageVersion]
     files distTar.outputs
 }
 uau(e5cbcf94596a4e5b6e7d735deb563b62dd889564}(sha(e5cbcf94596a4e5b6e7d735deb563b62dd889564node_idEC_kwDOAjP5fdoAKGU1Y2JjZjk0NTk2YTRlNWI2ZTdkNzM1ZGViNTYzYjYyZGQ4ODk1NjQcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-18T14:02:27Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-07-18T14:29:00Zumessage,Handle IOException
Refactor test file namingtree}(jz (1a288552f5f746ec94e41c66dabb5f0a4893ceeeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/1a288552f5f746ec94e41c66dabb5f0a4893ceeeuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e5cbcf94596a4e5b6e7d735deb563b62dd889564
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS2oawACgkQmF9s0kaF
Iw3QmAf/fukQehQKDTB6JBsGTNak4vLTbOgfTpruYvs5KpPx8hIemqh1JFqhAa/6
cASlj1chBqIX7oI3q4H2KIpTqHBZbGN6+ZKfYRm4/lrlx6fdrt7tU4WW2D/4eaTx
AKdt0IMmd3v06fYx0vz+N34NYRGzHyT1Mu7NF1ikwZIOyQfBjX32PYD5vW84/bQL
J0GhZrgp14jUrKbdgWCNvCCLXEgghzcguj1fGzWmGnNtBRJhZq1DqWd7EehbAOdi
VYvRRIR80ZOPKzfG5agxl5nF3zYEVjm+59nQ3aVsjr+ob2tCI237KRt7YZKuDXgW
eEM1I5Q9VeJ0NLiA5pWLs5KsSBuz7g==
=/Duc
-----END PGP SIGNATURE-----payloadtree 1a288552f5f746ec94e41c66dabb5f0a4893ceee
parent b68c7643baeb86077c5186f30b12c98848f5478f
author Tom Papke <tpapke@palantir.com> 1689688947 +0100
committer Tom Papke <tpapke@palantir.com> 1689690540 +0100

Handle IOException
Refactor test file naming
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/e5cbcf94596a4e5b6e7d735deb563b62dd889564html_urlShttps://github.com/palantir/atlasdb/commit/e5cbcf94596a4e5b6e7d735deb563b62dd889564comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e5cbcf94596a4e5b6e7d735deb563b62dd889564/commentsj }(login	ToemmscheidJboj| MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jboj| MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(jz (b68c7643baeb86077c5186f30b12c98848f5478fj ^https://api.github.com/repos/palantir/atlasdb/commits/b68c7643baeb86077c5186f30b12c98848f5478fj Shttps://github.com/palantir/atlasdb/commit/b68c7643baeb86077c5186f30b12c98848f5478fuastats}(totalK	additionsK
	deletionsK
ufiles](}(jz (933b4eacfb9c9c6e9b1391eeaa8f45d1a8016a85filenameKlock-api/src/test/java/com/palantir/lock/client/ConjureLockRequestTest.javastatusmodifiedj K
j K
changesKblob_urlhttps://github.com/palantir/atlasdb/blob/e5cbcf94596a4e5b6e7d735deb563b62dd889564/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequestTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e5cbcf94596a4e5b6e7d735deb563b62dd889564/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequestTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequestTest.java?ref=e5cbcf94596a4e5b6e7d735deb563b62dd889564patchXK  @@ -34,6 +34,7 @@
 import com.palantir.atlasdb.timelock.api.ConjureUpdatedChangeMetadata;
 import com.palantir.conjure.java.lib.Bytes;
 import com.palantir.conjure.java.serialization.ObjectMappers;
+import java.io.IOException;
 import java.nio.file.Files;
 import java.nio.file.Path;
 import java.nio.file.Paths;
@@ -42,6 +43,8 @@
 
 public class ConjureLockRequestTest {
     private static final String BASE = "src/test/resources/conjure-lock-request-wire-format/";
+    private static final String OLD_CONJURE_LOCK_REQUEST_FILE = "old";
+    private static final String WITH_METADATA_FILE = "with-metadata";
     private static final boolean REWRITE_JSON_BLOBS = false;
 
     private static final ConjureLockDescriptor LOCK_1 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("abc")));
@@ -66,7 +69,7 @@ public class ConjureLockRequestTest {
                     3,
                     ConjureChangeMetadata.created(ConjureCreatedChangeMetadata.of(Bytes.from(BYTES_CREATED)))),
             ConjureLockDescriptorListChecksum.of(0, Bytes.from(PtBytes.toBytes("test-checksum-value"))));
-    private static final ConjureLockRequest BASELINE_CONJURE_LOCK_REQUEST = ConjureLockRequest.builder()
+    private static final ConjureLockRequest CONJURE_LOCK_REQUEST = ConjureLockRequest.builder()
             .requestId(new UUID(1337, 42))
             .lockDescriptors(ImmutableList.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4))
             .acquireTimeoutMs(100)
@@ -84,17 +87,17 @@ public class ConjureLockRequestTest {
 
     @Test
     public void newServerCanHandleMissingMetadata() {
-        assertDeserializedEquals("baseline", BASELINE_CONJURE_LOCK_REQUEST, ConjureLockRequest.class);
+        assertDeserializedEquals(OLD_CONJURE_LOCK_REQUEST_FILE, CONJURE_LOCK_REQUEST, ConjureLockRequest.class);
     }
 
     @Test
-    public void serializesMetadataIfPresent() {
+    public void presentMetadataSerializesDeserializes() {
         ConjureLockRequest requestWithMetadata = ConjureLockRequest.builder()
-                .from(BASELINE_CONJURE_LOCK_REQUEST)
+                .from(CONJURE_LOCK_REQUEST)
                 .metadata(CONJURE_LOCK_REQUEST_METADATA)
                 .build();
-        assertSerializedEquals(requestWithMetadata, "baseline-with-metadata");
-        assertDeserializedEquals("baseline-with-metadata", requestWithMetadata, ConjureLockRequest.class);
+        assertSerializedEquals(requestWithMetadata, WITH_METADATA_FILE);
+        assertDeserializedEquals(WITH_METADATA_FILE, requestWithMetadata, ConjureLockRequest.class);
     }
 
     private static <T> void assertSerializedEquals(T object, String jsonFileName) {
@@ -107,8 +110,8 @@ private static <T> void assertSerializedEquals(T object, String jsonFileName) {
             assertThat(VERIFYING_MAPPER.readTree(serialized))
                     .as("Serialization yields semantically identical JSON representation")
                     .isEqualTo(VERIFYING_MAPPER.readTree(Files.readString(path)));
-        } catch (Throwable t) {
-            throw new RuntimeException(t);
+        } catch (IOException e) {
+            throw new RuntimeException(e);
         }
     }
 
@@ -117,8 +120,8 @@ private static <T> void assertDeserializedEquals(String jsonFileName, T object,
             assertThat(DESERIALIZATION_MAPPER.readValue(Files.readString(getJsonPath(jsonFileName)), clazz))
                     .as("Deserialization yields identical object")
                     .isEqualTo(object);
-        } catch (Throwable t) {
-            throw new RuntimeException(t);
+        } catch (IOException e) {
+            throw new RuntimeException(e);
         }
     }
 u}(jz (e1b7813afcfedd61b6686b1bab138e5f151ea739j Elock-api/src/test/resources/conjure-lock-request-wire-format/old.jsonj renamedj K j K j K j https://github.com/palantir/atlasdb/blob/e5cbcf94596a4e5b6e7d735deb563b62dd889564/lock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fold.jsonj https://github.com/palantir/atlasdb/raw/e5cbcf94596a4e5b6e7d735deb563b62dd889564/lock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fold.jsonj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fold.json?ref=e5cbcf94596a4e5b6e7d735deb563b62dd889564previous_filenameJlock-api/src/test/resources/conjure-lock-request-wire-format/baseline.jsonu}(jz (56e0e9f551398a56e8c56e758c6eab6f6d5a6072j Olock-api/src/test/resources/conjure-lock-request-wire-format/with-metadata.jsonj renamedj K j K j K j https://github.com/palantir/atlasdb/blob/e5cbcf94596a4e5b6e7d735deb563b62dd889564/lock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fwith-metadata.jsonj https://github.com/palantir/atlasdb/raw/e5cbcf94596a4e5b6e7d735deb563b62dd889564/lock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fwith-metadata.jsonj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fwith-metadata.json?ref=e5cbcf94596a4e5b6e7d735deb563b62dd889564j Xlock-api/src/test/resources/conjure-lock-request-wire-format/baseline-with-metadata.jsonueu(eac8d7e4a9a564f3e2172eb9d5477c8687be64e4}(sha(eac8d7e4a9a564f3e2172eb9d5477c8687be64e4node_idEC_kwDOAjP5fdoAKGVhYzhkN2U0YTlhNTY0ZjNlMjE3MmViOWQ1NDc3Yzg2ODdiZTY0ZTQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-23T16:30:40Zu	committer}(j
 
Sam Kramerj skramer@palantir.comj 2023-06-23T16:30:40Zumessagecompact + flush more oftentree}(j (94a8b133a3de0f1419189f97d053cbf71d3e5f32url`https://api.github.com/repos/palantir/atlasdb/git/trees/94a8b133a3de0f1419189f97d053cbf71d3e5f32uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/eac8d7e4a9a564f3e2172eb9d5477c8687be64e4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSVyLEACgkQmPPOpKR4
XS31fwgAxMqty5T1TfTJWwU1LV9izWH4Ud/rwWFWDxw6vyb2Jl8J9bjO//gAxS8q
e+39yIWpj/fnD25MMEWD99xx7TBi1ZRK1zPbZhkCOZcKDMd6AzHAUydH6LpZYmtj
RAHwSCtmg3gWhACzeINYC6+vn88olwGXTXU+akFc5QWgj1+uFGGgdf42hv+1FelJ
CB79ID4N/G/nh32wyaURBotdcJTzvXJg/4ohuECPBzAftV/kuC3gB7xPQME9HOrS
ujVaywomK3Un2o8Aki597HKMixldVGQ6yhDJb28qEkBL7FsPGdH3Xgar6NxzcOzF
qkpg4EKuSV/Jb3JL3scc62sM2Uj7oA==
=w9r+
-----END PGP SIGNATURE-----payloadtree 94a8b133a3de0f1419189f97d053cbf71d3e5f32
parent 08879f4fa550e02de6361c20d19fa1b28710450f
author Sam Kramer <skramer@palantir.com> 1687537840 +0100
committer Sam Kramer <skramer@palantir.com> 1687537840 +0100

compact + flush more often
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/eac8d7e4a9a564f3e2172eb9d5477c8687be64e4html_urlShttps://github.com/palantir/atlasdb/commit/eac8d7e4a9a564f3e2172eb9d5477c8687be64e4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/eac8d7e4a9a564f3e2172eb9d5477c8687be64e4/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj( https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j- 
Sam-Kramerj/ J^2_ j MDQ6VXNlcjYyMzg4MTQ=j1 3https://avatars.githubusercontent.com/u/6238814?v=4j3 h5j 'https://api.github.com/users/Sam-Kramerj( https://github.com/Sam-Kramerj6 1https://api.github.com/users/Sam-Kramer/followersj8 >https://api.github.com/users/Sam-Kramer/following{/other_user}j: 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j< >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j> 5https://api.github.com/users/Sam-Kramer/subscriptionsj@ ,https://api.github.com/users/Sam-Kramer/orgsjB -https://api.github.com/users/Sam-Kramer/reposjD 8https://api.github.com/users/Sam-Kramer/events{/privacy}jF 7https://api.github.com/users/Sam-Kramer/received_eventsjH UserjJ uparents]}(j (08879f4fa550e02de6361c20d19fa1b28710450fj ^https://api.github.com/repos/palantir/atlasdb/commits/08879f4fa550e02de6361c20d19fa1b28710450fj( Shttps://github.com/palantir/atlasdb/commit/08879f4fa550e02de6361c20d19fa1b28710450fuastats}(totalK	additionsK	deletionsKufiles]}(j (fc85e33f830ef480f85dafc84156fe74e9511057filenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedjd Kje KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/eac8d7e4a9a564f3e2172eb9d5477c8687be64e4/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/eac8d7e4a9a564f3e2172eb9d5477c8687be64e4/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=eac8d7e4a9a564f3e2172eb9d5477c8687be64e4patchX<  @@ -121,7 +121,7 @@ private void scheduleBackgroundJobs(Environment environment) {
                         AntithesisCassandraSidecarResource.INSTANCE,
                         DefaultBuggifyFactory.INSTANCE),
                 0,
-                10,
+                2,
                 TimeUnit.SECONDS);
     }
 uau(514fad91858ebf8ad75115ec7bcb46434e7d02aa}(sha(514fad91858ebf8ad75115ec7bcb46434e7d02aanode_idEC_kwDOAjP5fdoAKDUxNGZhZDkxODU4ZWJmOGFkNzUxMTVlYzdiY2I0NjQzNGU3ZDAyYWEcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-26T09:10:45Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-04-26T09:10:45Zumessageuseless committree}(jy (128aa7ad31eb72c124eb57885997ba06543635dcurl`https://api.github.com/repos/palantir/atlasdb/git/trees/128aa7ad31eb72c124eb57885997ba06543635dcuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/514fad91858ebf8ad75115ec7bcb46434e7d02aa
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRI6pUACgkQPlMHVIT1
yhqTQAf/b1PkIvMcCz4i0XuQ0/BhHIdg+0Ui7UZ42c3WsXxoG+nLJTah8RU1HqGy
1B9BBk6LcfoKhAVBlHNFFK7lbCGbzAfrnnRZIT40zkv4N8TyruZigzpOaXxWutWJ
vds0ah+n1vDSfT2+KV/UeKc0eOkNRSSCzCv3hDV1OZS+I95EFFaZZouVg+GfVXTa
D3oI71qJqUPod1fl0H3TC3tRWYx+d0o+IGg1L7StMFkg4tm3FcXuzJBG4b0FaiIV
AL9GXRhEagyJ2UqcnVrKkSs14h7ABgb0zeAC6mAHYammp79MRY0EqCQZNxUJsiRq
mWe1GGRVJLmXRQTEQNx3gTDBASiaoQ==
=gdgY
-----END PGP SIGNATURE-----payloadtree 128aa7ad31eb72c124eb57885997ba06543635dc
parent a90667bdbe564afc78d491359b9e12c143b333a6
author Ahmed Alouane <aalouane@palantir.com> 1682500245 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682500245 +0100

useless commit
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/514fad91858ebf8ad75115ec7bcb46434e7d02aahtml_urlShttps://github.com/palantir/atlasdb/commit/514fad91858ebf8ad75115ec7bcb46434e7d02aacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/514fad91858ebf8ad75115ec7bcb46434e7d02aa/commentsj }(loginergo14idJj{ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj{ MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jy (a90667bdbe564afc78d491359b9e12c143b333a6j ^https://api.github.com/repos/palantir/atlasdb/commits/a90667bdbe564afc78d491359b9e12c143b333a6j Shttps://github.com/palantir/atlasdb/commit/a90667bdbe564afc78d491359b9e12c143b333a6uastats}(totalK	additionsK	deletionsK ufiles]}(jy (2cdd1e27d35e584a25c8c06f5807b571987531affilenamebuild.gradlestatusmodifiedj Kj K changesKblob_url^https://github.com/palantir/atlasdb/blob/514fad91858ebf8ad75115ec7bcb46434e7d02aa/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/514fad91858ebf8ad75115ec7bcb46434e7d02aa/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=514fad91858ebf8ad75115ec7bcb46434e7d02aapatch@@ -1,5 +1,6 @@
 import org.gradle.plugins.ide.idea.model.IdeaModel
 
+
 buildscript {
     repositories {
         mavenCentral() { metadataSources { mavenPom(); ignoreGradleMetadataRedirection() } }uau(81e62bcc2539e0bdda79d4a09272f0f06a83da85}(sha(81e62bcc2539e0bdda79d4a09272f0f06a83da85node_idEC_kwDOAjP5fdoAKDgxZTYyYmNjMjUzOWUwYmRkYTc5ZDRhMDkyNzJmMGYwNmE4M2RhODUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-03-02T23:33:38Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-03-02T23:33:38Zumessagelexicographicnesstree}(j (76bfa135ae63746f5f3cda11e21aece46496cf52url`https://api.github.com/repos/palantir/atlasdb/git/trees/76bfa135ae63746f5f3cda11e21aece46496cf52uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/81e62bcc2539e0bdda79d4a09272f0f06a83da85
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQBMlIACgkQTLdFKain
zjxzwQgAhpj97cRUGeO4vjHGyr2580g/ymLQR1KRe+LnjIfwwB39nzgWarikwQ01
54oP/KaaUtoyxpAAI/KyU5k/HRJxl/CWUXmYa1JEveOz45RRg2o/04hn/n7c+BVh
t+Lyj4QXzYka9/p4SKfsV/K+SZhBeG+LpnwA3ILp5WB+TB2onZdNxml6yVswBS0l
GPiKDAyqgmq1FaM4/fpz4BaJkg8NVdAjWkC0w+cpIjYJPEB3pGKJkFaI4nFtpreX
RmhkHneKZpQ08qUoUMXa+87xlvOpN8yTBWGbnUab1UX3ByYQAkGIOg3mWdguQ3HQ
ROuAMCStnMQ7m6EC3A1oDQ+aY1Crmw==
=mGq8
-----END PGP SIGNATURE-----payloadtree 76bfa135ae63746f5f3cda11e21aece46496cf52
parent 5f8e13390786093cd2e6c462b42ab0d161eedc2c
author Jeremy Kong <jkong@palantir.com> 1677800018 +0000
committer Jeremy Kong <jkong@palantir.com> 1677800018 +0000

lexicographicness
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/81e62bcc2539e0bdda79d4a09272f0f06a83da85html_urlShttps://github.com/palantir/atlasdb/commit/81e62bcc2539e0bdda79d4a09272f0f06a83da85comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/81e62bcc2539e0bdda79d4a09272f0f06a83da85/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j! h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j$ 1https://api.github.com/users/jeremyk-91/followersj& >https://api.github.com/users/jeremyk-91/following{/other_user}j( 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j* >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j, 5https://api.github.com/users/jeremyk-91/subscriptionsj. ,https://api.github.com/users/jeremyk-91/orgsj0 -https://api.github.com/users/jeremyk-91/reposj2 8https://api.github.com/users/jeremyk-91/events{/privacy}j4 7https://api.github.com/users/jeremyk-91/received_eventsj6 Userj8 uparents]}(j (5f8e13390786093cd2e6c462b42ab0d161eedc2cj ^https://api.github.com/repos/palantir/atlasdb/commits/5f8e13390786093cd2e6c462b42ab0d161eedc2cj Shttps://github.com/palantir/atlasdb/commit/5f8e13390786093cd2e6c462b42ab0d161eedc2cuastats}(totalK	additionsK	deletionsKufiles]}(j (66779380c83f5cb8ac2fd50cd7bc8d6f740296fefilenameeatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractTransactionTest.javastatusmodifiedjR KjS KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/81e62bcc2539e0bdda79d4a09272f0f06a83da85/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/81e62bcc2539e0bdda79d4a09272f0f06a83da85/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.java?ref=81e62bcc2539e0bdda79d4a09272f0f06a83da85patchX  @@ -693,8 +693,8 @@ public void testRangesTransactionColumnSelection() {
     @Test
     public void getRangeRetainsOnlyRelevantColumnsFromLocalWrites() {
         byte[] row = "row".getBytes(StandardCharsets.UTF_8);
-        byte[] firstColumn = "james".getBytes(StandardCharsets.UTF_8);
-        byte[] secondColumn = "jakub".getBytes(StandardCharsets.UTF_8);
+        byte[] firstColumn = "jakub".getBytes(StandardCharsets.UTF_8);
+        byte[] secondColumn = "james".getBytes(StandardCharsets.UTF_8);
         byte[] thirdColumn = "jeremy".getBytes(StandardCharsets.UTF_8);
         byte[] fourthColumn = "jolyon".getBytes(StandardCharsets.UTF_8);
         Cell firstCell = Cell.create(row, firstColumn);uau(264b3de3846fee4de8a8dc6535d0762d4fbeac44}(sha(264b3de3846fee4de8a8dc6535d0762d4fbeac44node_idEC_kwDOAjP5fdoAKDI2NGIzZGUzODQ2ZmVlNGRlOGE4ZGM2NTM1ZDA3NjJkNGZiZWFjNDQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-03T13:25:32Zu	committer}(jo 
Sam Kramerjq skramer@palantir.comjs 2023-04-03T13:25:43Zumessageadd safe logging librarytree}(jg (6a48f8837757e264b982980ce6cef56567c2a8e2url`https://api.github.com/repos/palantir/atlasdb/git/trees/6a48f8837757e264b982980ce6cef56567c2a8e2uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/264b3de3846fee4de8a8dc6535d0762d4fbeac44
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQq09cACgkQmPPOpKR4
XS2NyQf/YjFfLaHFfIyHZ+UtOSNXZnfglyqU0iTpl0/yDrXPoAAIQX3J4Tghue2I
dp4bQUciI39Mn4XsJnVKROghzYhR8gZXeViISfQuGZWV6xPoFbskPKsow/JAqXxU
nodmhstFSk+WdmdvugePhZSLNIPw4ogX9JtdxYM8yjDuYGZXyxBbfVMAmSK42OFS
5TcHWAe9lWeR8IBewaWFJdLZg1Fa1Yd4u6kgBogjVNSrVblYCJfpp2ctwUzr2j9D
lRZrLMgA7HrqHGb+07Skh6zABGbZ6c0HShadN+LCqtVNa2cmWYLQnp+Fw5YINosA
5wB42Cywht+L/QYzEOY9dlyA7K8Fdw==
=fLXV
-----END PGP SIGNATURE-----payloadtree 6a48f8837757e264b982980ce6cef56567c2a8e2
parent 278dfd0688276188ce1df0c2201b51e9e6bfccb2
author Sam Kramer <skramer@palantir.com> 1680528332 +0100
committer Sam Kramer <skramer@palantir.com> 1680528343 +0100

add safe logging library
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/264b3de3846fee4de8a8dc6535d0762d4fbeac44html_urlShttps://github.com/palantir/atlasdb/commit/264b3de3846fee4de8a8dc6535d0762d4fbeac44comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/264b3de3846fee4de8a8dc6535d0762d4fbeac44/commentsjm }(login
Sam-KrameridJ^2_ ji MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuju }(j 
Sam-Kramerj J^2_ ji MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jg (278dfd0688276188ce1df0c2201b51e9e6bfccb2j ^https://api.github.com/repos/palantir/atlasdb/commits/278dfd0688276188ce1df0c2201b51e9e6bfccb2j Shttps://github.com/palantir/atlasdb/commit/278dfd0688276188ce1df0c2201b51e9e6bfccb2uastats}(totalK	additionsK	deletionsK ufiles](}(jg (e0c1b66547ce80acc89e9da5ec82299ca8445b75filename(atlasdb-workload-server-api/build.gradlestatusmodifiedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/264b3de3846fee4de8a8dc6535d0762d4fbeac44/atlasdb-workload-server-api%2Fbuild.gradleraw_url{https://github.com/palantir/atlasdb/raw/264b3de3846fee4de8a8dc6535d0762d4fbeac44/atlasdb-workload-server-api%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fbuild.gradle?ref=264b3de3846fee4de8a8dc6535d0762d4fbeac44patchXi  @@ -8,6 +8,7 @@ dependencies {
     implementation 'com.fasterxml.jackson.core:jackson-databind'
     implementation 'com.palantir.safe-logging:preconditions'
     implementation 'com.google.guava:guava'
+    implementation 'com.palantir.safe-logging:logger'
 
     compileOnly 'org.immutables:value::annotations'
     annotationProcessor 'org.immutables:value'u}(jg (995ee71d06bb6d9e84a61b0c91660f791fc01e1ej 1atlasdb-workload-server-distribution/build.gradlej modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/264b3de3846fee4de8a8dc6535d0762d4fbeac44/atlasdb-workload-server-distribution%2Fbuild.gradlej https://github.com/palantir/atlasdb/raw/264b3de3846fee4de8a8dc6535d0762d4fbeac44/atlasdb-workload-server-distribution%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=264b3de3846fee4de8a8dc6535d0762d4fbeac44j X  @@ -16,6 +16,7 @@ dependencies {
     implementation 'io.dropwizard:dropwizard-lifecycle'
     implementation 'io.dropwizard:dropwizard-logging'
     implementation 'io.dropwizard:dropwizard-request-logging'
+    implementation 'com.palantir.safe-logging:logger'
     implementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
     implementation 'com.palantir.conjure.java.runtime:conjure-java-jersey-server'
     implementation 'com.google.guava:guava'ueu(89e3e1ebe55d40e2910d47b5388158ee5db3c638}(sha(89e3e1ebe55d40e2910d47b5388158ee5db3c638node_idEC_kwDOAjP5fdoAKDg5ZTNlMWViZTU1ZDQwZTI5MTBkNDdiNTM4ODE1OGVlNWRiM2M2Mzgcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-14T12:47:46Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-07-14T12:48:23Zumessagespotlesstree}(j (6e416f4d8d32b564ac36c201896ddad3ee4418e1url`https://api.github.com/repos/palantir/atlasdb/git/trees/6e416f4d8d32b564ac36c201896ddad3ee4418e1uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/89e3e1ebe55d40e2910d47b5388158ee5db3c638
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSxRBcACgkQmF9s0kaF
Iw1Uygf9HFUxK1hRgosU1RttvWp8CknCTJ8uXxXM3nluSesGO1PfkTpArTn2xKsc
L+Ps16F5uvrGCoaj54K9h80hWxDkNVKlZYMz/6yKsZZEbvJNB4auyQ2oXNH8uOaq
XFNhNh93aRvu+92ztJwMfE2tmsZjT7Ys0ck6BRM0jNimIR8wb8gL5qFYzdjRG6qj
8RrGroIe8QMZjZ/QZOAk+TDwOVAK0j26DnGYxh7XsfTebwn/VdujyRBdeZ44iSL/
L1aHFUVLjg+0g8n8nS225DYVS0uZxxIgPoR0eZbQyL+e5b42fjh5YpXHGogwZ/bx
B/aZQIcCoApudLgTSFpgR1v8ICZgZw==
=B1gV
-----END PGP SIGNATURE-----payloadtree 6e416f4d8d32b564ac36c201896ddad3ee4418e1
parent 2ddd444640015b5fc9e0e62209122f26a70ca953
author Tom Papke <tpapke@palantir.com> 1689338866 +0100
committer Tom Papke <tpapke@palantir.com> 1689338903 +0100

spotless
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/89e3e1ebe55d40e2910d47b5388158ee5db3c638html_urlShttps://github.com/palantir/atlasdb/commit/89e3e1ebe55d40e2910d47b5388158ee5db3c638comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/89e3e1ebe55d40e2910d47b5388158ee5db3c638/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jboj MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j" 4https://api.github.com/users/Toemmsche/subscriptionsj$ +https://api.github.com/users/Toemmsche/orgsj& ,https://api.github.com/users/Toemmsche/reposj( 7https://api.github.com/users/Toemmsche/events{/privacy}j* 6https://api.github.com/users/Toemmsche/received_eventsj, Userj. uparents]}(j (2ddd444640015b5fc9e0e62209122f26a70ca953j ^https://api.github.com/repos/palantir/atlasdb/commits/2ddd444640015b5fc9e0e62209122f26a70ca953j Shttps://github.com/palantir/atlasdb/commit/2ddd444640015b5fc9e0e62209122f26a70ca953uastats}(totalK	additionsK	deletionsK	ufiles]}(j (f2e691648e3d3020d09ae176b23c26a2f6f5e6a7filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedjH KjI K	changesKblob_urlhttps://github.com/palantir/atlasdb/blob/89e3e1ebe55d40e2910d47b5388158ee5db3c638/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/89e3e1ebe55d40e2910d47b5388158ee5db3c638/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=89e3e1ebe55d40e2910d47b5388158ee5db3c638patchX!  @@ -2499,7 +2499,7 @@ public void setsRequestedCommitLocksCountCorrectly_serializable() {
     }
 
     @Test
-    public void setsRequestedCommitLocksCountCorrectlyForSameRow_serializableLockLevelMigration() {
+    public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigration_sameRow() {
         // Will request commit locks for cells and rows
         overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_LOCK_LEVEL_MIGRATION);
 
@@ -2523,17 +2523,13 @@ public void setsRequestedCommitLocksCountCorrectlyForSameRow_serializableLockLev
     }
 
     @Test
-    public void setsRequestedCommitLocksCountCorrectlyForMultipleTables_serializableCell() {
+    public void setsRequestedCellCommitLocksCountCorrectlyForMultipleTables() {
         overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_CELL);
         overrideConflictHandlerForTable(TABLE2, ConflictHandler.SERIALIZABLE_CELL);
 
         SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
-        txn.put(
-                TABLE,
-                ImmutableMap.of(TEST_CELL, TEST_VALUE));
-        txn.put(
-                TABLE2,
-                ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE2, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
         txn.commit();
 
         TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
@@ -2547,7 +2543,7 @@ public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
             putUncommittedAtFreshTimestamp(TABLE_NO_SWEEP, TEST_CELL);
         }
         assertThatLoggableExceptionThrownBy(
-                () -> txManager.runTaskThrowOnConflict(txn -> txn.get(TABLE_NO_SWEEP, Set.of(TEST_CELL))))
+                        () -> txManager.runTaskThrowOnConflict(txn -> txn.get(TABLE_NO_SWEEP, Set.of(TEST_CELL))))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageStartingWith("Unable to filter cells")
                 .hasExactlyArgs(uau(ef1f87fd0e5eb7674377823a2174d38dcbecefed}(sha(ef1f87fd0e5eb7674377823a2174d38dcbecefednode_idEC_kwDOAjP5fdoAKGVmMWY4N2ZkMGU1ZWI3Njc0Mzc3ODIzYTIxNzRkMzhkY2JlY2VmZWQcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-07-25T20:15:28Zu	committer}(je Tom Petraccajg tpetracca@palantir.comji 2023-07-25T20:15:28Zumessage!tp/ete build.gradle as of f2f7f7dtree}(j] (c567bacca68886f356cb43cefac4be20f48d6080url`https://api.github.com/repos/palantir/atlasdb/git/trees/c567bacca68886f356cb43cefac4be20f48d6080uju bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ef1f87fd0e5eb7674377823a2174d38dcbecefed
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuju ^https://api.github.com/repos/palantir/atlasdb/commits/ef1f87fd0e5eb7674377823a2174d38dcbecefedhtml_urlShttps://github.com/palantir/atlasdb/commit/ef1f87fd0e5eb7674377823a2174d38dcbecefedcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ef1f87fd0e5eb7674377823a2174d38dcbecefed/commentsjc }(login	tpetraccaidJ& j_ MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5ju &https://api.github.com/users/tpetraccaj https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminujk }(j 	tpetraccaj J& j_ MDQ6VXNlcjI1NTQzMjg=j 3https://avatars.githubusercontent.com/u/2554328?v=4j h5ju &https://api.github.com/users/tpetraccaj https://github.com/tpetraccaj 0https://api.github.com/users/tpetracca/followersj =https://api.github.com/users/tpetracca/following{/other_user}j 6https://api.github.com/users/tpetracca/gists{/gist_id}j =https://api.github.com/users/tpetracca/starred{/owner}{/repo}j 4https://api.github.com/users/tpetracca/subscriptionsj +https://api.github.com/users/tpetracca/orgsj ,https://api.github.com/users/tpetracca/reposj 7https://api.github.com/users/tpetracca/events{/privacy}j 6https://api.github.com/users/tpetracca/received_eventsj Userj uparents]}(j] (74f3aed48111437375e495a6adc2c39ba425ae89ju ^https://api.github.com/repos/palantir/atlasdb/commits/74f3aed48111437375e495a6adc2c39ba425ae89j Shttps://github.com/palantir/atlasdb/commit/74f3aed48111437375e495a6adc2c39ba425ae89uastats}(totalK4	additionsK	deletionsKufiles]}(j] (3ba90b7e07236116915245ff6b1a1d2d6db2ac6efilenameatlasdb-ete-tests/build.gradlestatusmodifiedj Kj KchangesK4blob_urlrhttps://github.com/palantir/atlasdb/blob/ef1f87fd0e5eb7674377823a2174d38dcbecefed/atlasdb-ete-tests%2Fbuild.gradleraw_urlqhttps://github.com/palantir/atlasdb/raw/ef1f87fd0e5eb7674377823a2174d38dcbecefed/atlasdb-ete-tests%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fbuild.gradle?ref=ef1f87fd0e5eb7674377823a2174d38dcbecefedpatchX  @@ -101,49 +101,59 @@ task prepareForEteTests(type: Copy, dependsOn: 'distTar') {
     rename { filename -> 'atlasdb-ete-snapshot.tgz' }
 }
 
-task timeLockTest(type: Test) {
-    dependsOn prepareForEteTests, ':timelock-server-distribution:dockerTag'
-    include '**/*TimeLock*.class'
-    exclude '**/*TimeLockMigration*.class'
-}
-
+// standalone test with its own task
+// is very expensive and so separate task is used to control when/where it is executed
 task timeLockMigrationTest(type: Test) {
     dependsOn prepareForEteTests, ':timelock-server-distribution:dockerTag'
-    include '**/*TimeLockMigration*.class'
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.standalone.TimeLockMigrationEteTest'
+    }
 }
 
 // test suites with their own test tasks
 // not sure why some have it and others do not
 
 task singleClientWithEmbeddedAndThreeNodeCassandraTest(type: Test) {
     dependsOn prepareForEteTests
-    include '**/SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.class'
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite'
+    }
 }
 
 task singleClientWithEmbeddedAndPostgresTest(type: Test) {
     dependsOn prepareForEteTests
-    include '**/SingleClientWithEmbeddedAndPostgresTestSuite.class'
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndPostgresTestSuite'
+    }
 }
 
 task singleClientWithEmbeddedAndOracleTest(type: Test) {
     dependsOn prepareForEteTests
-    include '**/SingleClientWithEmbeddedAndOracleTestSuite.class'
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndOracleTestSuite'
+    }
 }
 
 test {
     // this list explicitly doesn't include the timelockMigration or singleClientWithEmbeddedAndOracleTest tasks
     // not sure why that is
-    dependsOn prepareForEteTests, timeLockTest, singleClientWithEmbeddedAndThreeNodeCassandraTest, singleClientWithEmbeddedAndPostgresTest
-
-    // 1-off ETE tests
-    exclude '**/*TimeLock*.class'
-    exclude '**/*TimeLockMigration*.class' // Technically covered by previous line, but explicitly avoiding in case of refactor
-    exclude '**/*EteTest.class'
-
-    // test suites with their own test tasks
-    exclude '**/SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.class'
-    exclude '**/SingleClientWithEmbeddedAndPostgresTestSuite.class'
-    exclude '**/SingleClientWithEmbeddedAndOracleTestSuite.class'
+    dependsOn prepareForEteTests, singleClientWithEmbeddedAndThreeNodeCassandraTest, singleClientWithEmbeddedAndPostgresTest
+
+    filter {
+        // include standalone and suite tests
+        includeTestsMatching 'com.palantir.atlasdb.ete.standalone.*'
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.*'
+
+        // exclude any tests with their own 1-off tasks
+        excludeTestsMatching 'com.palantir.atlasdb.ete.standalone.TimeLockMigrationEteTest'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndPostgresTestSuite'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndOracleTestSuite'
+        // testing stuff
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndCassandraTestSuite'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.MultiClientWithPostgresTimelockAndPostgresTestSuite'
+        // excludeTestsMatching 'com.palantir.atlasdb.ete.suites.MultiClientWithTimelockAndCassandraTestSuite'
+    }
 }
 
 distribution {uau      (0ba7c7bb8342317ba7526136a119648dc7d0ae47}(sha(0ba7c7bb8342317ba7526136a119648dc7d0ae47node_idEC_kwDOAjP5fdoAKDBiYTdjN2JiODM0MjMxN2JhNzUyNjEzNmExMTk2NDhkYzdkMGFlNDccommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-17T23:10:15Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-05-17T23:10:15ZumessageCR feedbacktree}(j (51d0969d81ebdba2407293c1cd5f7c5296b457f2url`https://api.github.com/repos/palantir/atlasdb/git/trees/51d0969d81ebdba2407293c1cd5f7c5296b457f2uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0ba7c7bb8342317ba7526136a119648dc7d0ae47
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRlXtcACgkQTLdFKain
zjyrxQf/cnf28P9LXkV0g9PvUePIIOHnp3igNYImHvs6Q/6E/rzJHIyqoDEMGfUU
azEBDYbI+CGj6A4Ra4RfGQw8RtTewP60GbaI+Ai3NSOBW+Cn8ywd8SjUVeHf60Jm
0kJLb9nhSCjdw5PDXg/6StLKnOJhTCASP4UleKcyRo2enIIBwJluRSupD13/tml3
0DeEGcWKJLAXtVLiQQ9aTWMyu5Hk5fC8/KeihtgIRgObbm08NknQLpvAgh7e4TJk
yL50qFsjF6Cby+r+PkeM8FBe5zfRxfNIhyyYNFTxVTlI1eZHdg6ypUhMqssD0SYx
zPkN3HkwsZHB3fuST5aJekwWMic4ng==
=u8Nf
-----END PGP SIGNATURE-----payloadtree 51d0969d81ebdba2407293c1cd5f7c5296b457f2
parent 9ea724add81e1c36721a32dc503364e7c7c9d00c
author Jeremy Kong <jkong@palantir.com> 1684365015 +0100
committer Jeremy Kong <jkong@palantir.com> 1684365015 +0100

CR feedback
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/0ba7c7bb8342317ba7526136a119648dc7d0ae47html_urlShttps://github.com/palantir/atlasdb/commit/0ba7c7bb8342317ba7526136a119648dc7d0ae47comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0ba7c7bb8342317ba7526136a119648dc7d0ae47/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j
 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j (9ea724add81e1c36721a32dc503364e7c7c9d00cj ^https://api.github.com/repos/palantir/atlasdb/commits/9ea724add81e1c36721a32dc503364e7c7c9d00cj Shttps://github.com/palantir/atlasdb/commit/9ea724add81e1c36721a32dc503364e7c7c9d00cuastats}(totalK	additionsK
	deletionsKufiles](}(j (c82f3d3c2182e14e8f2d6630ac1cb719f0cd3c4cfilenameiatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflows.javastatusmodifiedj4 Kj5 K
changesKblob_urlhttps://github.com/palantir/atlasdb/blob/0ba7c7bb8342317ba7526136a119648dc7d0ae47/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0ba7c7bb8342317ba7526136a119648dc7d0ae47/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.java?ref=0ba7c7bb8342317ba7526136a119648dc7d0ae47patchX3
  @@ -29,14 +29,12 @@
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
-import java.util.ArrayList;
 import java.util.Collection;
 import java.util.List;
 import java.util.Optional;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 import java.util.stream.Stream;
-import org.jetbrains.annotations.NotNull;
 
 /**
  * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
@@ -78,7 +76,6 @@ public static Workflow create(
         };
     }
 
-    @NotNull
     private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReadsAndTouches(
             InteractiveTransactionStore store,
             SingleBusyCellWorkflowConfiguration configuration,
@@ -92,19 +89,17 @@ private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleRe
                 .collect(Collectors.toList());
     }
 
-    @NotNull
     private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
             InteractiveTransactionStore store,
             SingleBusyCellWorkflowConfiguration configuration,
             ListeningExecutorService writeExecutor) {
-        List<ListenableFuture<Optional<WitnessedTransaction>>> writes = new ArrayList<>();
-        for (int index = 0; index < configuration.iterationCount() / 4; index++) {
-            int stableIndex = index;
-            writes.add(writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
-                    configuration.tableConfiguration().tableName(), BUSY_CELL, stableIndex)))));
-            writes.add(writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
-                    configuration.tableConfiguration().tableName(), BUSY_CELL)))));
-        }
-        return writes;
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
     }
 }u}(j (051afb2dbe0f301ea8ff0ca03da0e8f1a9387a2aj: matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowsTest.javaj< modifiedj4 Kj5 Kj> K
j? https://github.com/palantir/atlasdb/blob/0ba7c7bb8342317ba7526136a119648dc7d0ae47/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javajA https://github.com/palantir/atlasdb/raw/0ba7c7bb8342317ba7526136a119648dc7d0ae47/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.java?ref=0ba7c7bb8342317ba7526136a119648dc7d0ae47jE X  @@ -59,8 +59,8 @@ public class SingleBusyCellWorkflowsTest {
     private final Workflow workflow = SingleBusyCellWorkflows.create(
             transactionStore,
             CONFIGURATION,
-            MoreExecutors.listeningDecorator(PTExecutors.newSingleThreadExecutor()),
-            MoreExecutors.listeningDecorator(PTExecutors.newSingleThreadExecutor()));
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)),
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)));
 
     @Test
     public void workflowHistoryTransactionStoreShouldBeReadOnly() {
@@ -94,8 +94,8 @@ public void targetCellIsReadModifiedAndDeleted() {
                 .map(WitnessedTransaction::actions)
                 .flatMap(Collection::stream)
                 .collect(Collectors.toList());
-        assertThat(witnessedTransactionActions).anyMatch(action -> action instanceof WitnessedReadTransactionAction);
-        assertThat(witnessedTransactionActions).anyMatch(action -> action instanceof WitnessedWriteTransactionAction);
-        assertThat(witnessedTransactionActions).anyMatch(action -> action instanceof WitnessedDeleteTransactionAction);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
     }
 }ueu(5fd17f2b7a83c6fb2c847f45284bc26816f3ed94}(sha(5fd17f2b7a83c6fb2c847f45284bc26816f3ed94node_idEC_kwDOAjP5fdoAKDVmZDE3ZjJiN2E4M2M2ZmIyYzg0N2Y0NTI4NGJjMjY4MTZmM2VkOTQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-17T13:06:41Zu	committer}(jY 
Sam Kramerj[ skramer@palantir.comj] 2023-08-17T13:06:41Zumessage'throw only once when leadership is losttree}(jQ (eb1416de160c9654ae50c975ef99b64bfc15dab3url`https://api.github.com/repos/palantir/atlasdb/git/trees/eb1416de160c9654ae50c975ef99b64bfc15dab3uji bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5fd17f2b7a83c6fb2c847f45284bc26816f3ed94
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTeG2EACgkQmPPOpKR4
XS0VYQf/cMgLIYyCYShidkRjzgy9ms3FcbCR+meR2vYnXkx7+NV2qv3OxbCBwNev
fzZGwQn63QbbCtCnDi56dydaWEuP14KTWCNeXs4NxYGIbBTqEf6hMPBCttu92PLS
GrcEG5tcnO89FmxhQa9fu6hWs5XDrqo63mxaU3465A9w0hXXV+6zL49c4TXtizxa
vtV/y/WIU7fQJJcv+f9pAewXR4leLZwQa8u3P2bdScpQo3zLgVcn5w5wocUH+GgA
vNePpNRbJ0vj5hoG6G+iT4WwSC/sJU5vS05UUCRdiDg73HiQrCvzCoelyxn6ibLc
MjmHA1QBi/xKnqTPVPdq7ZXARXY5xA==
=n/bY
-----END PGP SIGNATURE-----payloadtree eb1416de160c9654ae50c975ef99b64bfc15dab3
parent 78d595ff4fc963ae112f48198af44d9121e0ba7a
author Sam Kramer <skramer@palantir.com> 1692277601 +0100
committer Sam Kramer <skramer@palantir.com> 1692277601 +0100

throw only once when leadership is lost
uuji ^https://api.github.com/repos/palantir/atlasdb/commits/5fd17f2b7a83c6fb2c847f45284bc26816f3ed94html_urlShttps://github.com/palantir/atlasdb/commit/5fd17f2b7a83c6fb2c847f45284bc26816f3ed94comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5fd17f2b7a83c6fb2c847f45284bc26816f3ed94/commentsjW }(login
Sam-KrameridJ^2_ jS MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5ji 'https://api.github.com/users/Sam-Kramerjw https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj_ }(j| 
Sam-Kramerj~ J^2_ jS MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5ji 'https://api.github.com/users/Sam-Kramerjw https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jQ (78d595ff4fc963ae112f48198af44d9121e0ba7aji ^https://api.github.com/repos/palantir/atlasdb/commits/78d595ff4fc963ae112f48198af44d9121e0ba7ajw Shttps://github.com/palantir/atlasdb/commit/78d595ff4fc963ae112f48198af44d9121e0ba7auastats}(totalK	additionsK	deletionsKufiles]}(jQ (1bd228da1dc46b46661f46a7a06c6489b3b072f9filenameMtimestamp-impl/src/main/java/com/palantir/timestamp/PersistentUpperLimit.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5fd17f2b7a83c6fb2c847f45284bc26816f3ed94/timestamp-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentUpperLimit.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5fd17f2b7a83c6fb2c847f45284bc26816f3ed94/timestamp-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentUpperLimit.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timestamp-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentUpperLimit.java?ref=5fd17f2b7a83c6fb2c847f45284bc26816f3ed94patchX0  @@ -16,6 +16,10 @@
 package com.palantir.timestamp;
 
 import com.google.common.annotations.VisibleForTesting;
+import com.palantir.leader.NotCurrentLeaderException;
+import com.palantir.logsafe.Preconditions;
+import java.util.Optional;
+import javax.annotation.concurrent.GuardedBy;
 
 public class PersistentUpperLimit {
 
@@ -26,7 +30,12 @@ public class PersistentUpperLimit {
     @VisibleForTesting
     static final long BUFFER = 1_000_000;
 
+    @GuardedBy("this")
     private volatile long currentLimit;
+
+    @GuardedBy("this")
+    private volatile Optional<NotCurrentLeaderException> leadershipLostException = Optional.empty();
+
     private final TimestampBoundStore store;
 
     public PersistentUpperLimit(TimestampBoundStore boundStore) {
@@ -55,8 +64,17 @@ private synchronized void updateLimit(long newLimit) {
     }
 
     private void storeUpperLimit(long upperLimit) {
-        DebugLogger.willStoreNewUpperLimit(upperLimit);
-        store.storeUpperLimit(upperLimit);
-        DebugLogger.didStoreNewUpperLimit(upperLimit);
+        Preconditions.checkState(
+                leadershipLostException.isEmpty(),
+                "Cannot store upper limit when not the leader",
+                leadershipLostException.get());
+        try {
+            DebugLogger.willStoreNewUpperLimit(upperLimit);
+            store.storeUpperLimit(upperLimit);
+            DebugLogger.didStoreNewUpperLimit(upperLimit);
+        } catch (NotCurrentLeaderException e) {
+            leadershipLostException = Optional.of(e);
+            throw e;
+        }
     }
 }uau(8b467ad037b64131e76cac81d375e860a142dcbf}(sha(8b467ad037b64131e76cac81d375e860a142dcbfnode_idEC_kwDOAjP5fdoAKDhiNDY3YWQwMzdiNjQxMzFlNzZjYWM4MWQzNzVlODYwYTE0MmRjYmYcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-04-06T09:59:53Zu	committer}(j GitHubj noreply@github.comj 2023-04-06T09:59:53Zumessage^create script to easily push to antithesis (#6504)

create script to easily push to antithesistree}(j (51aad464cb43ea4deb910faf339d994635f0bd4burl`https://api.github.com/repos/palantir/atlasdb/git/trees/51aad464cb43ea4deb910faf339d994635f0bd4buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8b467ad037b64131e76cac81d375e860a142dcbf
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkLpgZCRBK7hj4Ov3rIwAADO0IAD7jylapoGHFG3PRCYIKWJk1
gIIIrVjyayka+9IONCOyaPR0d8C68/G14BN5wh+I7DMc3aH8R+8LpMmHqWSrmIoZ
1PUwMHLtqcI1FXKHFsGnoynIDWcqWyS2BkFHfrJzNgaYErOMpGckP7ZXJ0aYr3if
cn4OPavRKHqkNLndTxBm0FstVGkUFePypCCBTYq9YMImOaiy8wgCnFVtD3OFLqrL
bdatgdZnJlMQJnmAOf6c3xINuvqUVXwCxYZzlrdi/QiNAcYFlZKCb5hNG4UXP5Xx
8t8H5e/tK0mp/UU//SRul9K5zuxGHXfjUE04GyDnBKl+LzwrOyJnjGWvgNUn1f4=
=07Q+
-----END PGP SIGNATURE-----
payloadX1  tree 51aad464cb43ea4deb910faf339d994635f0bd4b
parent 92ee1dc5bc25c7de4aa5b1302c076ca6e546474c
author Sam-Kramer <sam.c.kramer@gmail.com> 1680775193 +0100
committer GitHub <noreply@github.com> 1680775193 +0000

create script to easily push to antithesis (#6504)

create script to easily push to antithesis
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/8b467ad037b64131e76cac81d375e860a142dcbfhtml_urlShttps://github.com/palantir/atlasdb/commit/8b467ad037b64131e76cac81d375e860a142dcbfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8b467ad037b64131e76cac81d375e860a142dcbf/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj
 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j (92ee1dc5bc25c7de4aa5b1302c076ca6e546474cj ^https://api.github.com/repos/palantir/atlasdb/commits/92ee1dc5bc25c7de4aa5b1302c076ca6e546474cj Shttps://github.com/palantir/atlasdb/commit/92ee1dc5bc25c7de4aa5b1302c076ca6e546474cuastats}(totalK	additionsK	deletionsK ufiles]}(j (5278509069ce4b7f363fc0c3f609beea448e74a8filename*scripts/circle-ci/publish-to-antithesis.shstatusaddedj* Kj+ K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/8b467ad037b64131e76cac81d375e860a142dcbf/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shraw_urlhttps://github.com/palantir/atlasdb/raw/8b467ad037b64131e76cac81d375e860a142dcbf/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=8b467ad037b64131e76cac81d375e860a142dcbfpatchX  @@ -0,0 +1,29 @@
+#!/bin/bash
+
+if [[ -z "${ANTITHESIS_REPO_URL}" ]]; then
+  echo "Antithesis image repository URL is not set as an environment variable, exiting."
+  exit 1
+fi
+
+if [[ -z "${ANTITHESIS_LOGIN_JSON}" ]]; then
+  echo "Antithesis json key is not set as an environment variable, exiting."
+  exit 1
+fi
+
+printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://${ANTITHESIS_REPO_URL} --password-stdin
+
+./gradlew docker
+
+docker pull palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+docker tag palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra ${ANTITHESIS_REPO_URL}/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+docker push ${ANTITHESIS_REPO_URL}/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+
+docker tag palantirtechnologies/timelock-server-distribution:unspecified ${ANTITHESIS_REPO_URL}/timelock-server-distribution:unspecified
+docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:unspecified
+
+docker tag palantirtechnologies/atlasdb-workload-server-distribution:unspecified ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:unspecified
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:unspecified
+
+LATEST_ANTITHESIS_TAG=$(docker image ls palantirtechnologies/atlasdb-workload-server-antithesis --format "{{.Tag}}")
+docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${LATEST_ANTITHESIS_TAG}
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${LATEST_ANTITHESIS_TAG}
\ No newline at end of fileuau(e3b61ac4df56b47a4e948a32229c791aa2191d42}(sha(e3b61ac4df56b47a4e948a32229c791aa2191d42node_idEC_kwDOAjP5fdoAKGUzYjYxYWM0ZGY1NmI0N2E0ZTk0OGEzMjIyOWM3OTFhYTIxOTFkNDIcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-06-28T22:26:01Zu	committer}(jG 
svc-changelogjI svc-changelog@palantir.comjK 2023-06-28T22:26:01ZumessageAdd generated changelog entriestree}(j? (e339f462c0568b4ed643bf96706661859a07b2cdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/e339f462c0568b4ed643bf96706661859a07b2cdujW bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e3b61ac4df56b47a4e948a32229c791aa2191d42
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmScs3kJEHYaJX37fAFQAADwfwD+LRLP5k+B7//FwGkfSiOprrUb
DdUMleqcpO7AmoSLwskA+gKwSVqmwj/UAOzC5xurPqcTxn1TqV7yphUN2XZcFKHX
=CgDN
-----END PGP SIGNATURE-----payloadX  tree e339f462c0568b4ed643bf96706661859a07b2cd
parent 9a415a77c129647374617d5fab0a39b36b55385c
author svc-changelog <svc-changelog@palantir.com> 1687991161 +0000
committer svc-changelog <svc-changelog@palantir.com> 1687991161 +0000

Add generated changelog entriesuujW ^https://api.github.com/repos/palantir/atlasdb/commits/e3b61ac4df56b47a4e948a32229c791aa2191d42html_urlShttps://github.com/palantir/atlasdb/commit/e3b61ac4df56b47a4e948a32229c791aa2191d42comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e3b61ac4df56b47a4e948a32229c791aa2191d42/commentsjE }(login
svc-changelogidJ#jA MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jW *https://api.github.com/users/svc-changelogje  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujM }(jj 
svc-changelogjl J#jA MDQ6VXNlcjg0MDc3NjAzjn 4https://avatars.githubusercontent.com/u/84077603?v=4jp h5jW *https://api.github.com/users/svc-changelogje  https://github.com/svc-changelogjs 4https://api.github.com/users/svc-changelog/followersju Ahttps://api.github.com/users/svc-changelog/following{/other_user}jw :https://api.github.com/users/svc-changelog/gists{/gist_id}jy Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j{ 8https://api.github.com/users/svc-changelog/subscriptionsj} /https://api.github.com/users/svc-changelog/orgsj 0https://api.github.com/users/svc-changelog/reposj ;https://api.github.com/users/svc-changelog/events{/privacy}j :https://api.github.com/users/svc-changelog/received_eventsj Userj uparents]}(j? (9a415a77c129647374617d5fab0a39b36b55385cjW ^https://api.github.com/repos/palantir/atlasdb/commits/9a415a77c129647374617d5fab0a39b36b55385cje Shttps://github.com/palantir/atlasdb/commit/9a415a77c129647374617d5fab0a39b36b55385cuastats}(totalK	additionsK	deletionsK ufiles]}(j? (aa4df8d917755227eec390dd5e0d424aebabf4c7filename$changelog/@unreleased/pr-6649.v2.ymlstatusaddedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/e3b61ac4df56b47a4e948a32229c791aa2191d42/changelog%2F%40unreleased%2Fpr-6649.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/e3b61ac4df56b47a4e948a32229c791aa2191d42/changelog%2F%40unreleased%2Fpr-6649.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6649.v2.yml?ref=e3b61ac4df56b47a4e948a32229c791aa2191d42patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: bump snappy-java to 1.1.10.1
+  links:
+  - https://github.com/palantir/atlasdb/pull/6649uau(50e05491daed01d64ec4867ce2176b153629246b}(sha(50e05491daed01d64ec4867ce2176b153629246bnode_idEC_kwDOAjP5fdoAKDUwZTA1NDkxZGFlZDAxZDY0ZWM0ODY3Y2UyMTc2YjE1MzYyOTI0NmIcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-05-11T10:37:05Zu	committer}(j GitHubj noreply@github.comj 2023-05-11T10:37:05ZumessageBuggify utility helpers (#6558)

* [buggify] stash

* add buggify classes

* [buggify] clean up

* clarify comment

* Fix up some bugify stuff

* no-op buggify testtree}(j (241be562f18f8e97e6257a18e3c067974379fa5durl`https://api.github.com/repos/palantir/atlasdb/git/trees/241be562f18f8e97e6257a18e3c067974379fa5duj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/50e05491daed01d64ec4867ce2176b153629246b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkXMVRCRBK7hj4Ov3rIwAAZnAIAK7aUUn5wXnZt/uOlFesAjWU
PIkmHYeJfZNeL0mgYSk3IWAvGL/JT35yKjdPbctCUa0tQb5aiKPiSECPad0/80oy
lBgPv4nQMmhYFTYyXl+Q0sG6SeZgAWBGkaM6WAB+p/Q6s+vQycR5QoEXSzJPN2/V
+h9eNqQRGhGk889JTihvd9xsImuUsPH8Jou91IKG+p0vPuomzNM9z5YPRkxqc4ik
ECc82rncuou8pDaZRYf3W7c+c6+zLfrmYBIWu3dcWYj8amcUZmnjFU+vubnOFrh1
ZErzgNrl5UQl6VorujMqgb0lfxhTK5uqws5rR21z3v7alPFP16xLwvgODWOKKSM=
=2z65
-----END PGP SIGNATURE-----
payloadX  tree 241be562f18f8e97e6257a18e3c067974379fa5d
parent f5618cf8c97b49547f1c10ded81dd39de6564a58
author Sam-Kramer <sam.c.kramer@gmail.com> 1683801425 +0100
committer GitHub <noreply@github.com> 1683801425 +0100

Buggify utility helpers (#6558)

* [buggify] stash

* add buggify classes

* [buggify] clean up

* clarify comment

* Fix up some bugify stuff

* no-op buggify testuuj ^https://api.github.com/repos/palantir/atlasdb/commits/50e05491daed01d64ec4867ce2176b153629246bhtml_urlShttps://github.com/palantir/atlasdb/commit/50e05491daed01d64ec4867ce2176b153629246bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/50e05491daed01d64ec4867ce2176b153629246b/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j (f5618cf8c97b49547f1c10ded81dd39de6564a58j ^https://api.github.com/repos/palantir/atlasdb/commits/f5618cf8c97b49547f1c10ded81dd39de6564a58j Shttps://github.com/palantir/atlasdb/commit/f5618cf8c97b49547f1c10ded81dd39de6564a58uastats}(totalM4	additionsM4	deletionsK ufiles](}(j (c8f5ec6d41d45b1db43cb98d871dd8aaff4fbe06filenameatlasdb-buggify/build.gradlestatusaddedj Kj K changesKblob_urlphttps://github.com/palantir/atlasdb/blob/50e05491daed01d64ec4867ce2176b153629246b/atlasdb-buggify%2Fbuild.gradleraw_urlohttps://github.com/palantir/atlasdb/raw/50e05491daed01d64ec4867ce2176b153629246b/atlasdb-buggify%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fbuild.gradle?ref=50e05491daed01d64ec4867ce2176b153629246bpatchX`  @@ -0,0 +1,12 @@
+
+apply from: "../gradle/shared.gradle"
+
+dependencies {
+    implementation 'com.google.guava:guava'
+    testImplementation 'junit:junit'
+    testImplementation 'org.assertj:assertj-core'
+    testImplementation('org.jmock:jmock') {
+      exclude group: 'org.hamcrest'
+    }
+    testImplementation 'org.mockito:mockito-core'
+}u}(j (8fce620da2473d4f99412b1eafb18c42c9b4a1d2j Katlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/Buggify.javaj  addedj K'j K j" K'j# https://github.com/palantir/atlasdb/blob/50e05491daed01d64ec4867ce2176b153629246b/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaj% https://github.com/palantir/atlasdb/raw/50e05491daed01d64ec4867ce2176b153629246b/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaj' https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.java?ref=50e05491daed01d64ec4867ce2176b153629246bj) X5  @@ -0,0 +1,39 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+/**
+ * Instances of this class could vary in implementation, such that they may perform no action {@link com.palantir.atlasdb.buggify.impl.NoOpBuggify} or
+ * always perform the action {@link com.palantir.atlasdb.buggify.impl.DefaultBuggify}. The idea here is that a
+ * downstream users of this class can easily swap out their {@link BuggifyFactory} to change the behavior of their
+ * class, without having to change the implementation of their class. This is useful for tests, as we can force the
+ * behavior of never running the provided runnable, or always running the provided runnable.
+ *
+ * See https://apple.github.io/foundationdb/client-testing.html for more information.
+ */
+public interface Buggify {
+    /**
+     * Maybe runs the provided runnable, depending on the instance of the class.
+     */
+    void run(Runnable runnable);
+
+    /**
+     * Returns true if this instance of buggify would perform an action if {@link #run Run} would execute the
+     * provided runnable. This is useful if you wish to produce a boolean that will be skewed towards true or false.
+     */
+    boolean asBoolean();
+}u}(j (0ed48b1c56bc0efc8ac5be656900e3c3a38c67faj Ratlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/BuggifyFactory.javaj  addedj Kj K j" Kj# https://github.com/palantir/atlasdb/blob/50e05491daed01d64ec4867ce2176b153629246b/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj% https://github.com/palantir/atlasdb/raw/50e05491daed01d64ec4867ce2176b153629246b/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj' https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.java?ref=50e05491daed01d64ec4867ce2176b153629246bj) Xy  @@ -0,0 +1,24 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+public interface BuggifyFactory {
+    /**
+     * The probability of returning a buggify instance which performs actions.
+     */
+    Buggify maybe(double probability);
+}u}(j (bf47a2abcceffe92e42715b2377315e57a40f763j Satlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggify.javaj  addedj K!j K j" K!j# https://github.com/palantir/atlasdb/blob/50e05491daed01d64ec4867ce2176b153629246b/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javaj% https://github.com/palantir/atlasdb/raw/50e05491daed01d64ec4867ce2176b153629246b/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javaj' https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.java?ref=50e05491daed01d64ec4867ce2176b153629246bj) X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+
+public enum DefaultBuggify implements Buggify {
+    INSTANCE;
+
+    @Override
+    public void run(Runnable runnable) {
+        runnable.run();
+    }
+
+    @Override
+    public boolean asBoolean() {
+        return true;
+    }
+}u}(j (c3bbf92469d211a6ab5bde05cefaaba784549d49j Zatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactory.javaj  addedj K/j K j" K/j# https://github.com/palantir/atlasdb/blob/50e05491daed01d64ec4867ce2176b153629246b/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj% https://github.com/palantir/atlasdb/raw/50e05491daed01d64ec4867ce2176b153629246b/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj' https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.java?ref=50e05491daed01d64ec4867ce2176b153629246bj) X  @@ -0,0 +1,47 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import java.security.SecureRandom;
+import java.util.function.DoubleSupplier;
+
+public final class DefaultBuggifyFactory implements BuggifyFactory {
+    private static final SecureRandom SECURE_RANDOM = new SecureRandom();
+    public static final BuggifyFactory INSTANCE = new DefaultBuggifyFactory();
+
+    private final DoubleSupplier doubleSupplier;
+
+    @VisibleForTesting
+    DefaultBuggifyFactory(DoubleSupplier doubleSupplier) {
+        this.doubleSupplier = doubleSupplier;
+    }
+
+    private DefaultBuggifyFactory() {
+        this(SECURE_RANDOM::nextDouble);
+    }
+
+    @Override
+    public Buggify maybe(double probability) {
+        if (doubleSupplier.getAsDouble() < probability) {
+            return DefaultBuggify.INSTANCE;
+        }
+        return NoOpBuggify.INSTANCE;
+    }
+}u}(j (7ffdf499b3babaa3d0997abc88e28cb57de2aa01j Patlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggify.javaj  addedj K!j K j" K!j# https://github.com/palantir/atlasdb/blob/50e05491daed01d64ec4867ce2176b153629246b/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javaj% https://github.com/palantir/atlasdb/raw/50e05491daed01d64ec4867ce2176b153629246b/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javaj' https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.java?ref=50e05491daed01d64ec4867ce2176b153629246bj) X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+
+public enum NoOpBuggify implements Buggify {
+    INSTANCE;
+
+    @Override
+    public void run(Runnable _runnable) {
+        // do nothing
+    }
+
+    @Override
+    public boolean asBoolean() {
+        return false;
+    }
+}u}(j (2f200762a9c587bece4b4f26652a9d0c930bba0ej ^atlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactoryTest.javaj  addedj K,j K j" K,j# https://github.com/palantir/atlasdb/blob/50e05491daed01d64ec4867ce2176b153629246b/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj% https://github.com/palantir/atlasdb/raw/50e05491daed01d64ec4867ce2176b153629246b/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj' https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.java?ref=50e05491daed01d64ec4867ce2176b153629246bj) X%  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import org.junit.Test;
+
+public class DefaultBuggifyFactoryTest {
+
+    @Test
+    public void maybeReturnsDefaultWhenMaxProbability() {
+        assertThat(DefaultBuggifyFactory.INSTANCE.maybe(1.0)).isSameAs(DefaultBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsNoOpWhenNeverProbability() {
+        assertThat(DefaultBuggifyFactory.INSTANCE.maybe(0.0)).isSameAs(NoOpBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsNoOpWhenBelowOrEqualToProbability() {
+        assertThat(new DefaultBuggifyFactory(() -> 0.50).maybe(0.50)).isSameAs(NoOpBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsDefaultWhenAboveProbability() {
+        assertThat(new DefaultBuggifyFactory(() -> 0.49).maybe(0.50)).isSameAs(DefaultBuggify.INSTANCE);
+    }
+}u}(j (28a8b18ae59b101e1489b1e086bbac7d63318767j Watlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyTest.javaj  addedj K%j K j" K%j# https://github.com/palantir/atlasdb/blob/50e05491daed01d64ec4867ce2176b153629246b/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj% https://github.com/palantir/atlasdb/raw/50e05491daed01d64ec4867ce2176b153629246b/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj' https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.java?ref=50e05491daed01d64ec4867ce2176b153629246bj) X  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.verify;
+
+import org.junit.Test;
+
+public class DefaultBuggifyTest {
+    @Test
+    public void runAlwaysExecutes() {
+        Runnable runnable = mock(Runnable.class);
+        DefaultBuggify.INSTANCE.run(runnable);
+        verify(runnable).run();
+    }
+
+    @Test
+    public void asBooleanReturnsTrue() {
+        assertThat(DefaultBuggify.INSTANCE.asBoolean()).isTrue();
+    }
+}u}(j (c6d5d05237311ecd06793772e3b673f5836c8896j Tatlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyTest.javaj  addedj K&j K j" K&j# https://github.com/palantir/atlasdb/blob/50e05491daed01d64ec4867ce2176b153629246b/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj% https://github.com/palantir/atlasdb/raw/50e05491daed01d64ec4867ce2176b153629246b/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj' https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.java?ref=50e05491daed01d64ec4867ce2176b153629246bj) X  @@ -0,0 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.never;
+import static org.mockito.Mockito.verify;
+
+import org.junit.Test;
+
+public class NoOpBuggifyTest {
+    @Test
+    public void runNeverExecutes() {
+        Runnable runnable = mock(Runnable.class);
+        NoOpBuggify.INSTANCE.run(runnable);
+        verify(runnable, never()).run();
+    }
+
+    @Test
+    public void asBooleanReturnsFalse() {
+        assertThat(NoOpBuggify.INSTANCE.asBoolean()).isFalse();
+    }
+}u}(j (92b41a4f3220d1bdf849b4024cc98b1a38f996dej settings.gradlej  modifiedj Kj K j" Kj# ahttps://github.com/palantir/atlasdb/blob/50e05491daed01d64ec4867ce2176b153629246b/settings.gradlej% `https://github.com/palantir/atlasdb/raw/50e05491daed01d64ec4867ce2176b153629246b/settings.gradlej' shttps://api.github.com/repos/palantir/atlasdb/contents/settings.gradle?ref=50e05491daed01d64ec4867ce2176b153629246bj) @@ -6,6 +6,7 @@ rootProject.name = 'atlasdb'
 
 include ":atlasdb-api"
 include ":atlasdb-autobatch"
+include ":atlasdb-buggify"
 include ":atlasdb-cassandra"
 include ":atlasdb-cassandra-integration-tests"
 include ":atlasdb-cassandra-multinode-tests"ueu(be63d599f29932788b4c79c3947619d45e225157}(sha(be63d599f29932788b4c79c3947619d45e225157node_idEC_kwDOAjP5fdoAKGJlNjNkNTk5ZjI5OTMyNzg4YjRjNzljMzk0NzYxOWQ0NWUyMjUxNTccommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T13:46:28Zu	committer}(j} 
Ahmed Alouanej aalouane@palantir.comj 2023-05-15T13:46:28ZumessageURevert "test this now"

This reverts commit 11ad27b62dcf8fe3f2f5d69a2cf3dae91b206623.tree}(ju (457e53a9db790a95888dfee93bc403f75388b1b0url`https://api.github.com/repos/palantir/atlasdb/git/trees/457e53a9db790a95888dfee93bc403f75388b1b0uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/be63d599f29932788b4c79c3947619d45e225157
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiN7UACgkQPlMHVIT1
yhpv8ggAomSlecf0/zEPl7pdQPqAxmYxvJ6mOB532nwheNhpEcLfcIRpuVqKtf9/
R6ESfVR+oa970WBYebnadsf+f9Jhos29rDo0wlMAgaWAkTpS1jUl1vyHfxy3y5F4
jDHecXjGH43wEGiK9WblluJK3IuAnpNYuOgUng2LZDPK0++878cq80sGpgNA9sR9
Rz3uwF9Vz/rhs52OUtua/1itMZ4pYbWvvKJO4zmJ7j0Ab9NAWrXTHk35lwy5YKOm
ejtuK1PnLDOYOjr3XQbRWW2YvGao0oPDoK+YEWSQ4US9FS5pmN1vgx4YWyJMtLFr
qKPpm4TgZDie0TIL7LwWbYDw+szS8g==
=VJmJ
-----END PGP SIGNATURE-----payloadX4  tree 457e53a9db790a95888dfee93bc403f75388b1b0
parent 7133433001f48067ce095ad21645e9fcaa9562c9
author Ahmed Alouane <aalouane@palantir.com> 1684158388 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684158388 +0100

Revert "test this now"

This reverts commit 11ad27b62dcf8fe3f2f5d69a2cf3dae91b206623.
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/be63d599f29932788b4c79c3947619d45e225157html_urlShttps://github.com/palantir/atlasdb/commit/be63d599f29932788b4c79c3947619d45e225157comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/be63d599f29932788b4c79c3947619d45e225157/commentsj{ }(loginergo14idJjw MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jjw MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(ju (7133433001f48067ce095ad21645e9fcaa9562c9j ^https://api.github.com/repos/palantir/atlasdb/commits/7133433001f48067ce095ad21645e9fcaa9562c9j Shttps://github.com/palantir/atlasdb/commit/7133433001f48067ce095ad21645e9fcaa9562c9uastats}(totalK	additionsK	deletionsK
ufiles]}(ju (ba64936f524e339c02f8b51cfa2ca65146a3612cfilename.circleci/config.ymlstatusmodifiedj Kj K
changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/be63d599f29932788b4c79c3947619d45e225157/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/be63d599f29932788b4c79c3947619d45e225157/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=be63d599f29932788b4c79c3947619d45e225157patchX  @@ -168,15 +168,6 @@ workflows:
       - test:
           requires: [test-tl, test-no-tl]
           filters:
-            branches:
-              only: /(tlmete.*|develop)/
-            tags:
-              only: /.*/
-      - test:
-          requires: [test-no-tl]
-          filters:
-            branches:
-              ignore: /(tlmete.*|develop)/
             tags:
               only: /.*/
       - trial-publish:
@@ -185,7 +176,7 @@ workflows:
             branches:
               ignore: [develop]
       - deploy:
-          requires: [build, test-tl, test-no-tl]
+          requires: [build, test]
           filters:
             branches:
               only: developuau(bf38fea55a139efbd8b273fcac796d5e624094d6}(sha(bf38fea55a139efbd8b273fcac796d5e624094d6node_idEC_kwDOAjP5fdoAKGJmMzhmZWE1NWExMzllZmJkOGIyNzNmY2FjNzk2ZDVlNjI0MDk0ZDYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-24T01:08:30Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-04-24T01:08:30Zumessage
test againtree}(j (2e64bf912f9d5c159ed2293423051a511a826734url`https://api.github.com/repos/palantir/atlasdb/git/trees/2e64bf912f9d5c159ed2293423051a511a826734uj	 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bf38fea55a139efbd8b273fcac796d5e624094d6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRF1o4ACgkQPlMHVIT1
yhoIfggAqQDNhjph5/QLVU5lvUiNt9dId1EFRvQgNi5Zvw1bTY2OIJphKxsdiUiP
lBVZsDZZ4ewy7WJpqQqN+F4QRMN+S3HNyoNW0hyoqHwj+I6BSDRzwIzry9sKUS1G
8j4ZTHx0pBlDPoJVTSF7VJzvGqG9cep3oVAcmundqmbexjuDdj9NXnsWO6TtXjdf
qX/e1BmQ1ahDWrOTYB+DYfovnAE6lxEwNLApJS8w0qa5z/t/cpSmWoz++BzfXRrR
xfDxkRp1KKg2Kre15h4pHOXh0O/u7VFv9LjF9LutLI50pXOEjA+VA5901alVaoPV
ogMW5Mn1oqkeuzbrRI2Dy9eLjhaa/g==
=PSeu
-----END PGP SIGNATURE-----payloadtree 2e64bf912f9d5c159ed2293423051a511a826734
parent 1c45f5e323510640253317ec151501bfee50edcd
author Ahmed Alouane <aalouane@palantir.com> 1682298510 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682298510 +0100

test again
uuj	 ^https://api.github.com/repos/palantir/atlasdb/commits/bf38fea55a139efbd8b273fcac796d5e624094d6html_urlShttps://github.com/palantir/atlasdb/commit/bf38fea55a139efbd8b273fcac796d5e624094d6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bf38fea55a139efbd8b273fcac796d5e624094d6/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j	 #https://api.github.com/users/ergo14j	 https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j	 ergo14j	 Jj MDQ6VXNlcjMwOTAzNzM2j	 4https://avatars.githubusercontent.com/u/30903736?v=4j	 h5j	 #https://api.github.com/users/ergo14j	 https://github.com/ergo14j 	 -https://api.github.com/users/ergo14/followersj"	 :https://api.github.com/users/ergo14/following{/other_user}j$	 3https://api.github.com/users/ergo14/gists{/gist_id}j&	 :https://api.github.com/users/ergo14/starred{/owner}{/repo}j(	 1https://api.github.com/users/ergo14/subscriptionsj*	 (https://api.github.com/users/ergo14/orgsj,	 )https://api.github.com/users/ergo14/reposj.	 4https://api.github.com/users/ergo14/events{/privacy}j0	 3https://api.github.com/users/ergo14/received_eventsj2	 Userj4	 uparents]}(j (1c45f5e323510640253317ec151501bfee50edcdj	 ^https://api.github.com/repos/palantir/atlasdb/commits/1c45f5e323510640253317ec151501bfee50edcdj	 Shttps://github.com/palantir/atlasdb/commit/1c45f5e323510640253317ec151501bfee50edcduastats}(totalK	additionsK	deletionsK ufiles]}(j (2c51628814097c6fb7705825b9b8a1f3b21d18a2filenamescripts/circle-ci/abort.shstatusaddedjN	 KjO	 K changesKblob_urlphttps://github.com/palantir/atlasdb/blob/bf38fea55a139efbd8b273fcac796d5e624094d6/scripts%2Fcircle-ci%2Fabort.shraw_urlohttps://github.com/palantir/atlasdb/raw/bf38fea55a139efbd8b273fcac796d5e624094d6/scripts%2Fcircle-ci%2Fabort.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fabort.sh?ref=bf38fea55a139efbd8b273fcac796d5e624094d6patchX  @@ -0,0 +1,20 @@
+#
+# (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+for i in $(seq 1 $(expr $CIRCLE_NODE_TOTAL - 1));
+do
+  if [ $i -ne $CIRCLE_NODE_INDEX ]; then ssh node$i 'echo "HELLO"'; fi
+doneuau(5c25de18f93a778ce70240b2697929a8b28c16df}(sha(5c25de18f93a778ce70240b2697929a8b28c16dfnode_idEC_kwDOAjP5fdoAKDVjMjVkZTE4ZjkzYTc3OGNlNzAyNDBiMjY5NzkyOWE4YjI4YzE2ZGYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-22T10:42:51Zu	committer}(jk	 
Sam Kramerjm	 skramer@palantir.comjo	 2023-05-22T10:42:51Zumessageadd flush/compacttree}(jc	 (24740da2765ddf0e0f12a405d4260eae64f43878url`https://api.github.com/repos/palantir/atlasdb/git/trees/24740da2765ddf0e0f12a405d4260eae64f43878uj{	 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5c25de18f93a778ce70240b2697929a8b28c16df
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRrRysACgkQmPPOpKR4
XS3mYQf/ZYFdkPtI8wo86uYbj5GcUY+jlQMuwKoifTxYKcuwsGp3WEbu031kyp0E
1ALU8kbh80oFA2iA/dGzULxx8lokce7PNS0Csoxp06/GEnf3TkbZCvQfgTowjEgA
QRQxC8jXfFNGS3W8PCiZQkkLP/9UEvQd3NvBoj7++vcJt5e/+BxSSvTsFHxVrlMo
9BA7PoGYXjnX9YD19jYASfHhBcPHi6lI453gwW73L4tqdmC0u+XeAPALLIDm/BLi
B36noiIluvs4ZTipEW4AC5brl9D2ehSTVDakDqzlLYXIY1n55BRoiM7y1HYAI6dB
I5bEnmefUenaSk5e6QglOA4GfqNxYw==
=7u7h
-----END PGP SIGNATURE-----payloadtree 24740da2765ddf0e0f12a405d4260eae64f43878
parent 99065ca04754170aec104142e3b6fdc804f984ef
author Sam Kramer <skramer@palantir.com> 1684752171 +0100
committer Sam Kramer <skramer@palantir.com> 1684752171 +0100

add flush/compact
uuj{	 ^https://api.github.com/repos/palantir/atlasdb/commits/5c25de18f93a778ce70240b2697929a8b28c16dfhtml_urlShttps://github.com/palantir/atlasdb/commit/5c25de18f93a778ce70240b2697929a8b28c16dfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5c25de18f93a778ce70240b2697929a8b28c16df/commentsji	 }(login
Sam-KrameridJ^2_ je	 MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j{	 'https://api.github.com/users/Sam-Kramerj	 https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujq	 }(j	 
Sam-Kramerj	 J^2_ je	 MDQ6VXNlcjYyMzg4MTQ=j	 3https://avatars.githubusercontent.com/u/6238814?v=4j	 h5j{	 'https://api.github.com/users/Sam-Kramerj	 https://github.com/Sam-Kramerj	 1https://api.github.com/users/Sam-Kramer/followersj	 >https://api.github.com/users/Sam-Kramer/following{/other_user}j	 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j	 >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j	 5https://api.github.com/users/Sam-Kramer/subscriptionsj	 ,https://api.github.com/users/Sam-Kramer/orgsj	 -https://api.github.com/users/Sam-Kramer/reposj	 8https://api.github.com/users/Sam-Kramer/events{/privacy}j	 7https://api.github.com/users/Sam-Kramer/received_eventsj	 Userj	 uparents]}(jc	 (99065ca04754170aec104142e3b6fdc804f984efj{	 ^https://api.github.com/repos/palantir/atlasdb/commits/99065ca04754170aec104142e3b6fdc804f984efj	 Shttps://github.com/palantir/atlasdb/commit/99065ca04754170aec104142e3b6fdc804f984efuastats}(totalK	additionsK	deletionsKufiles]}(jc	 (b284936b64cae7e6b461c14a3b7d116eadd96a23filename/atlasdb-workload-server-antithesis/build.gradlestatusmodifiedj	 Kj	 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5c25de18f93a778ce70240b2697929a8b28c16df/atlasdb-workload-server-antithesis%2Fbuild.gradleraw_urlhttps://github.com/palantir/atlasdb/raw/5c25de18f93a778ce70240b2697929a8b28c16df/atlasdb-workload-server-antithesis%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fbuild.gradle?ref=5c25de18f93a778ce70240b2697929a8b28c16dfpatchXL  @@ -7,5 +7,5 @@ def imageVersion = "${project.version.toString().replaceAll('\\+', '-')}"
 docker {
     name "palantirtechnologies/${project.name}:${imageVersion}"
     tags 'latest', 'snapshot'
-    files 'var/docker-compose.yml'
+    files 'var/docker-compose.yml', 'var/compact.sh', 'var/flush.sh'
 }
\ No newline at end of fileuau(ad4d98488bd0a38b6fbb89d323346f0906d021fe}(sha(ad4d98488bd0a38b6fbb89d323346f0906d021fenode_idEC_kwDOAjP5fdoAKGFkNGQ5ODQ4OGJkMGEzOGI2ZmJiODlkMzIzMzQ2ZjA5MDZkMDIxZmUcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-08-07T13:41:21Zu	committer}(j	 Lucas Meirelesj	 meireles31@msn.comj	 2023-08-07T13:41:21ZumessageCMerge branch 'develop' into lmeireles/expose-get-with-expected-sizetree}(j	 (126eadcd761404b168c2646c29326b7c43943e4durl`https://api.github.com/repos/palantir/atlasdb/git/trees/126eadcd761404b168c2646c29326b7c43943e4duj	 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ad4d98488bd0a38b6fbb89d323346f0906d021fe
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmTQ9IMACgkQJd22kJ7J
GixVhQgAy9b2hPzNJgTZTBmXKBPdRzyGGYXqaMEtRFWCt0CCkgLvZh5SryK8ATNi
MYbTE6fDcOmZQO9bEQsSthbB3slE9fp5adI56pey7RN9ejMVTwoM6w2TuPx/pS/c
SVW6w8d3wJLsuo+iOT/R0Z7z5JajktTcTd67PFysCY7n4r2zexUpNSlrRIDcZli0
+1b0PHuZgrDss5kvA8FghoYSHy39IcOYCIte6F7ZpulUICouQqSLz8NekfkWv7ws
BKQftMEsqFUSB5PqSSVkZ3BBcwv/WLZxPMheMFOTWpdIl01jprshiFzEeXGTLUR2
TZXpT34XRDq3lCkdwc60BEuLsDThcg==
=gEGw
-----END PGP SIGNATURE-----payloadXN  tree 126eadcd761404b168c2646c29326b7c43943e4d
parent 82da62a5b5b233a9801a68e245c803eef8a2c9a4
parent a2df32a5c8430028d68c99e5a6a54294375ed779
author Lucas Meireles <meireles31@msn.com> 1691415681 +0100
committer Lucas Meireles <meireles31@msn.com> 1691415681 +0100

Merge branch 'develop' into lmeireles/expose-get-with-expected-size
uu     j	 ^https://api.github.com/repos/palantir/atlasdb/commits/ad4d98488bd0a38b6fbb89d323346f0906d021fehtml_urlShttps://github.com/palantir/atlasdb/commit/ad4d98488bd0a38b6fbb89d323346f0906d021fecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ad4d98488bd0a38b6fbb89d323346f0906d021fe/commentsj	 }(loginLucasIMEidJg j	 MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j	 %https://api.github.com/users/LucasIMEj 
 https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj	 }(j
 LucasIMEj
 Jg j	 MDQ6VXNlcjY3ODczMTE=j	
 3https://avatars.githubusercontent.com/u/6787311?v=4j
 h5j	 %https://api.github.com/users/LucasIMEj 
 https://github.com/LucasIMEj
 /https://api.github.com/users/LucasIME/followersj
 <https://api.github.com/users/LucasIME/following{/other_user}j
 5https://api.github.com/users/LucasIME/gists{/gist_id}j
 <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j
 3https://api.github.com/users/LucasIME/subscriptionsj
 *https://api.github.com/users/LucasIME/orgsj
 +https://api.github.com/users/LucasIME/reposj
 6https://api.github.com/users/LucasIME/events{/privacy}j
 5https://api.github.com/users/LucasIME/received_eventsj 
 Userj"
 uparents](}(j	 (82da62a5b5b233a9801a68e245c803eef8a2c9a4j	 ^https://api.github.com/repos/palantir/atlasdb/commits/82da62a5b5b233a9801a68e245c803eef8a2c9a4j 
 Shttps://github.com/palantir/atlasdb/commit/82da62a5b5b233a9801a68e245c803eef8a2c9a4u}(j	 (a2df32a5c8430028d68c99e5a6a54294375ed779j	 ^https://api.github.com/repos/palantir/atlasdb/commits/a2df32a5c8430028d68c99e5a6a54294375ed779j 
 Shttps://github.com/palantir/atlasdb/commit/a2df32a5c8430028d68c99e5a6a54294375ed779uestats}(totalM	additionsM	deletionsMufiles](}(j	 (854555223c62aceef604d50b4a81b95af84187bcfilename.palantir/revapi.ymlstatusmodifiedj@
 K4jA
 KchangesKSblob_urlhhttps://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fepatchXT"  @@ -129,36 +129,57 @@ acceptedBreaks:
       new: "parameter <T> long com.palantir.atlasdb.keyvalue.cassandra.thrift.ThriftObjectSizeUtils::getCollectionSize(java.util.Collection<T>,\
         \ ===java.util.function.ToLongFunction<T>===)"
       justification: "Avoid autoboxing long to Long"
-  "0.884.0":
-    com.palantir.atlasdb:atlasdb-api:
-    - code: "java.method.addedToInterface"
-      new: "method java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell, byte[]> com.palantir.atlasdb.transaction.api.Transaction::getWithExpectedNumberOfCells(com.palantir.atlasdb.keyvalue.api.TableReference,\
-        \ java.util.Set<com.palantir.atlasdb.keyvalue.api.Cell>, int)"
-      justification: "Just introducing new Get API"
-  "0.885.0":
-    com.palantir.atlasdb:atlasdb-api:
-    - code: "java.method.addedToInterface"
-      new: "method com.google.common.util.concurrent.ListenableFuture<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
-        \ byte[]>> com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCache::getAsyncWithCachedRef(com.palantir.atlasdb.keyvalue.api.TableReference,\
-        \ java.util.Set<com.palantir.atlasdb.keyvalue.api.Cell>, java.util.function.Function<com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCache.CacheLookupResult,\
-        \ com.google.common.util.concurrent.ListenableFuture<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
-        \ byte[]>>>)"
-      justification: "just adding a new get method"
-    - code: "java.method.addedToInterface"
-      new: "method java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell, byte[]> com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCache::getWithCachedRef(com.palantir.atlasdb.keyvalue.api.TableReference,\
-        \ java.util.Set<com.palantir.atlasdb.keyvalue.api.Cell>, java.util.function.Function<com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCache.CacheLookupResult,\
-        \ com.google.common.util.concurrent.ListenableFuture<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
-        \ byte[]>>>)"
-      justification: "just adding a new get method"
-    - code: "java.method.addedToInterface"
-      new: "method java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell, byte[]> com.palantir.atlasdb.transaction.api.Transaction::getWithExpectedNumberOfCells(com.palantir.atlasdb.keyvalue.api.TableReference,\
-        \ java.util.Set<com.palantir.atlasdb.keyvalue.api.Cell>, long)"
-      justification: "just adding a new get method"
   "0.899.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, ===com.palantir.atlasdb.util.MetricsManager===,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider)"
+      new: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, ===com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider===,\
+        \ java.util.function.Function<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
+        \ com.palantir.atlasdb.keyvalue.api.Value>, com.palantir.atlasdb.keyvalue.cassandra.ResultsExtractor<com.palantir.atlasdb.keyvalue.api.Value>>)"
+      justification: "Reuse notLatestVisibleValueCellFilterCounter"
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, com.palantir.atlasdb.util.MetricsManager,\
+        \ ===com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider===)"
+      new: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider,\
+        \ ===java.util.function.Function<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
+        \ com.palantir.atlasdb.keyvalue.api.Value>, com.palantir.atlasdb.keyvalue.cassandra.ResultsExtractor<com.palantir.atlasdb.keyvalue.api.Value>>===)"
+      justification: "Reuse notLatestVisibleValueCellFilterCounter"
+    - code: "java.method.removed"
+      old: "method com.codahale.metrics.Counter com.palantir.atlasdb.keyvalue.cassandra.ResultsExtractor<T>::getNotLatestVisibleValueCellFilterCounter(java.lang.Class<?>)"
+      justification: "Reuse notLatestVisibleValueCellFilterCounter"
+  "0.900.0":
     com.palantir.atlasdb:atlasdb-api:
-    - code: "java.method.addedToInterface"
-      new: "method com.palantir.util.result.Result<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
-        \ byte[]>, com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException>\
-        \ com.palantir.atlasdb.transaction.api.Transaction::getWithExpectedNumberOfCells(com.palantir.atlasdb.keyvalue.api.TableReference,\
-        \ java.util.Set<com.palantir.atlasdb.keyvalue.api.Cell>, long)"
-      justification: "just adding a new get method"
+    - code: "java.method.numberOfParametersChanged"
+      old: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.spi.AtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<com.palantir.atlasdb.config.LeaderConfig>, java.util.Optional<java.lang.String>,\
+        \ java.util.function.LongSupplier, boolean)"
+      new: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.spi.AtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<java.lang.String>, java.util.function.LongSupplier, boolean)"
+      justification: "all usage or implementations of the two broken methods are entirely\
+        \ at compile time of the consumer or within this repo itself"
+    - code: "java.method.numberOfParametersChanged"
+      old: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.timestamp.DbTimeLockFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ com.palantir.atlasdb.config.LeaderConfig, boolean)"
+      new: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.timestamp.DbTimeLockFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ boolean)"
+      justification: "all usage or implementations of the two broken methods are entirely\
+        \ at compile time of the consumer or within this repo itself"
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.numberOfParametersChanged"
+      old: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.cassandra.CassandraAtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<com.palantir.atlasdb.config.LeaderConfig>, java.util.Optional<java.lang.String>,\
+        \ java.util.function.LongSupplier, boolean)"
+      new: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.cassandra.CassandraAtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<java.lang.String>, java.util.function.LongSupplier, boolean)"
+      justification: "will only be a compile break at worst for users and consumers"u}(j	 (95c0afd59482612e75dcd14fb8ccaca826a94dfdjF
 .policy.ymljH
 modifiedj@
 KjA
 KjJ
 KjK
 ]https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/.policy.ymljM
 \https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/.policy.ymljO
 ohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 Xe  @@ -48,20 +48,22 @@ approval_rules:
       permissions: ["admin", "maintain"]
     if:
       has_author_in:
-        users: [ "svc-excavator-bot" ]
+        users: [ "svc-excavator-bot", "dependabot[bot]" ]
 
   - name: excavator only touched baseline, circle, gradle files, godel files, generated code, go dependencies, docker-compose-rule config or versions.props
     requires:
       count: 0
     if:
       has_author_in:
-        users: [ "svc-excavator-bot" ]
+        users: [ "svc-excavator-bot", "dependabot[bot]" ]
       only_changed_files:
         # product-dependencies.lock should never go here, to force review of all product (SLS) dependency changes
         # this way excavator cannot change the deployability of a service or product via auto-merge
         paths:
           - "changelog/@unreleased/.*\\.yml"
           - "^\\.baseline/.*$"
+          - "^(.+/)?Cargo.toml$"
+          - "^Cargo.lock$"
           - "^\\.circleci/.*$"
           - "^\\.docker-compose-rule\\.yml$"
           - "^.*gradle$"
@@ -83,7 +85,7 @@ approval_rules:
           - "^internal/generated_src/.*"
           - "^gradle-baseline-java/src/main/resources/checkstyle.version$"
       has_valid_signatures_by_keys:
-        key_ids: ["C9AF124A484882E0"]
+        key_ids: ["C9AF124A484882E0", "4AEE18F83AFDEB23"]
 
   - name: excavator only touched config files
     requires:u}(j	 (5d19f29132dab0ef70f8e200712eb2df5ec1e0bbjF
 Fatlasdb-api/src/main/java/com/palantir/atlasdb/spi/AtlasDbFactory.javajH
 modifiedj@
 K jA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fspi%2FAtlasDbFactory.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fspi%2FAtlasDbFactory.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fspi%2FAtlasDbFactory.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -15,7 +15,6 @@
  */
 package com.palantir.atlasdb.spi;
 
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.util.MetricsManager;
@@ -44,7 +43,6 @@ public interface AtlasDbFactory {
      *
      * @param config Configuration file.
      * @param runtimeConfig Runtime configuration file.
-     * @param leaderConfig If the implementation supports it, the optional leader configuration.
      * @param namespace If the implementation supports it, this is the namespace to use when the namespace in config is
      * absent. If both are present, they must match.
      * @param freshTimestampSource If present, a source of fresh timestamps, which may be relevant for some KVS
@@ -57,7 +55,6 @@ KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> namespace,
             LongSupplier freshTimestampSource,
             boolean initializeAsync);u}(j	 (3cae3192d54aa786e1fb095808e1aa9205897b46jF
 Oatlasdb-api/src/main/java/com/palantir/atlasdb/timestamp/DbTimeLockFactory.javajH
 modifiedj@
 K jA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimestamp%2FDbTimeLockFactory.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimestamp%2FDbTimeLockFactory.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimestamp%2FDbTimeLockFactory.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.timestamp;
 
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeriesProvider;
@@ -40,7 +39,6 @@ KeyValueService createRawKeyValueService(
             MetricsManager metricManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean initializeAsync);
 
     ManagedTimestampService createManagedTimestampService(u}(j	 (ac5151208f3564728fb656114e6d47b89cd33bb2jF
 atlasdb-cassandra/build.gradlejH
 modifiedj@
 KjA
 K jJ
 KjK
 rhttps://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-cassandra%2Fbuild.gradlejM
 qhttps://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-cassandra%2Fbuild.gradlejO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fbuild.gradle?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -58,6 +58,10 @@ dependencies {
   implementation project(':commons-executors')
   implementation project(':timestamp-api')
 
+  // transitive from cassandra-driver-core
+  // need to specify as a direct dep so downstream projects get the correct version
+  runtimeOnly 'io.netty:netty-handler'
+
   testImplementation 'commons-codec:commons-codec'
   testImplementation 'com.fasterxml.jackson.core:jackson-databind'
   testImplementation 'com.google.protobuf:protobuf-java'u}(j	 (761bd91dae92d2e174e087990b60adf2c381cba3jF
 [atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/CassandraAtlasDbFactory.javajH
 modifiedj@
 K jA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraAtlasDbFactory.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraAtlasDbFactory.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraAtlasDbFactory.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueService;
@@ -48,7 +47,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> unused,
             Optional<String> namespace,
             LongSupplier freshTimestampSource,
             boolean initializeAsync) {u}(j	 (24eb78c9e781527756585d486a989cfa4d275af1jF
 iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.keyvalue.cassandra;
 
+import com.codahale.metrics.Counter;
 import com.datastax.driver.core.exceptions.DriverInternalError;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Functions;
@@ -39,6 +40,7 @@
 import com.google.protobuf.ByteString;
 import com.palantir.async.initializer.AsyncInitializer;
 import com.palantir.atlasdb.AtlasDbConstants;
+import com.palantir.atlasdb.AtlasDbMetricNames.CellFilterMetrics;
 import com.palantir.atlasdb.CassandraTopologyValidationMetrics;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
@@ -130,6 +132,7 @@
 import java.util.Set;
 import java.util.concurrent.Callable;
 import java.util.concurrent.ExecutorService;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 import java.util.stream.StreamSupport;
@@ -245,6 +248,7 @@ public void close() {
     private final CassandraMutationTimestampProvider mutationTimestampProvider;
     private final Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig;
     private final CassandraVerifierConfig verifierConfig;
+    private final Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory;
 
     public static CassandraKeyValueService createForTesting(
             CassandraKeyValueServiceConfig config, Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig) {
@@ -412,14 +416,19 @@ private static CassandraKeyValueService createAndInitialize(
             CassandraMutationTimestampProvider mutationTimestampProvider,
             Logger log,
             boolean initializeAsync) {
+        Counter notLatestVisibleValueCellFilterCounter = // register counter once and reuse
+                metricsManager.registerOrGetCounter(ValueExtractor.class, CellFilterMetrics.NOT_LATEST_VISIBLE_VALUE);
+        Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory = cellValueMap ->
+                new ValueExtractor(metricsManager, cellValueMap, notLatestVisibleValueCellFilterCounter);
         CassandraKeyValueServiceImpl keyValueService = new CassandraKeyValueServiceImpl(
                 log,
                 metricsManager,
                 config,
                 asyncKeyValueService,
                 runtimeConfig,
                 clientPool,
-                mutationTimestampProvider);
+                mutationTimestampProvider,
+                extractorFactory);
         keyValueService.wrapper.initialize(initializeAsync);
         return keyValueService.wrapper.isInitialized() ? keyValueService : keyValueService.wrapper;
     }
@@ -431,7 +440,8 @@ private CassandraKeyValueServiceImpl(
             AsyncKeyValueService asyncKeyValueService,
             Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig,
             CassandraClientPool clientPool,
-            CassandraMutationTimestampProvider mutationTimestampProvider) {
+            CassandraMutationTimestampProvider mutationTimestampProvider,
+            Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory) {
         super(createBlockingThreadpool(config, runtimeConfig.get().servers(), metricsManager));
         this.log = log;
         this.metricsManager = metricsManager;
@@ -444,7 +454,7 @@ private CassandraKeyValueServiceImpl(
         this.cassandraTables = new CassandraTables(clientPool, config);
         this.taskRunner = new TaskRunner(executor);
         this.cellLoader = CellLoader.create(clientPool, wrappingQueryRunner, taskRunner, runtimeConfig);
-        this.rangeLoader = new RangeLoader(clientPool, queryRunner, metricsManager, readConsistencyProvider);
+        this.rangeLoader = new RangeLoader(clientPool, queryRunner, readConsistencyProvider, extractorFactory);
         this.cellValuePutter = new CellValuePutter(
                 runtimeConfig,
                 clientPool,
@@ -459,6 +469,7 @@ private CassandraKeyValueServiceImpl(
                 new CassandraTableDropper(config, clientPool, tableMetadata, cassandraTableTruncator);
         this.runtimeConfig = runtimeConfig;
         this.verifierConfig = CassandraVerifierConfig.of(config, runtimeConfig.get());
+        this.extractorFactory = extractorFactory;
     }
 
     private static ExecutorService createBlockingThreadpool(
@@ -674,7 +685,7 @@ private Map<Cell, Value> getAllCellsForRows(
                     .collect(Collectors.toList());
         }
 
-        ValueExtractor extractor = new ValueExtractor(metricsManager, Maps.newHashMapWithExpectedSize(result.size()));
+        ResultsExtractor<Value> extractor = extractorFactory.apply(Maps.newHashMapWithExpectedSize(result.size()));
         extractor.extractResults(Multimaps.asMap(result), startTs, ColumnSelection.all());
         return extractor.asMap();
     }
@@ -760,7 +771,7 @@ private Map<Cell, Value> getRowsForSpecificColumns(
             }
         }
 
-        StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, startTs);
+        StartTsResultsCollector collector = new StartTsResultsCollector(startTs, extractorFactory);
         cellLoader.loadWithTs(
                 "getRows",
                 tableRef,
@@ -804,7 +815,7 @@ public Map<Cell, Value> get(TableReference tableRef, Map<Cell, Long> timestampBy
                     Multimaps.invertFrom(Multimaps.forMap(timestampByCell), HashMultimap.create());
             ImmutableMap.Builder<Cell, Value> builder = ImmutableMap.builder();
             for (long ts : cellsByTs.keySet()) {
-                StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, ts);
+                StartTsResultsCollector collector = new StartTsResultsCollector(ts, extractorFactory);
                 cellLoader.loadWithTs(
                         "get",
                         tableRef,
@@ -823,7 +834,7 @@ public Map<Cell, Value> get(TableReference tableRef, Map<Cell, Long> timestampBy
 
     private Map<Cell, Value> get(
             String kvsMethodName, TableReference tableRef, Set<Cell> cells, long maxTimestampExclusive) {
-        StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, maxTimestampExclusive);
+        StartTsResultsCollector collector = new StartTsResultsCollector(maxTimestampExclusive, extractorFactory);
         cellLoader.loadWithTs(
                 kvsMethodName,
                 tableRef,u}(j	 (0df00981272b5a894f62dbd3c588bdc01a9c6a86jF
 fatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServices.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -28,7 +28,6 @@
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.table.description.TableMetadata;
-import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.base.RunnableCheckedException;
 import com.palantir.common.base.Throwables;
 import com.palantir.common.visitor.Visitor;
@@ -49,6 +48,7 @@
 import java.util.Optional;
 import java.util.UUID;
 import java.util.concurrent.ConcurrentHashMap;
+import java.util.function.Function;
 import java.util.stream.Collectors;
 import org.apache.cassandra.thrift.CfDef;
 import org.apache.cassandra.thrift.Column;
@@ -408,11 +408,11 @@ interface ThreadSafeResultVisitor extends Visitor<Map<ByteBuffer, List<ColumnOrS
 
     static class StartTsResultsCollector implements ThreadSafeResultVisitor {
         private final Map<Cell, Value> collectedResults = new ConcurrentHashMap<>();
-        private final ValueExtractor extractor;
+        private final ResultsExtractor<Value> extractor;
         private final long startTs;
 
-        StartTsResultsCollector(MetricsManager metricsManager, long startTs) {
-            this.extractor = new ValueExtractor(metricsManager, collectedResults);
+        StartTsResultsCollector(long startTs, Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory) {
+            this.extractor = extractorFactory.apply(collectedResults);
             this.startTs = startTs;
         }
 u}(j	 (ed0533b540582038a030e5a294c22806773961e9jF
 Watlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CellLoader.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCellLoader.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCellLoader.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCellLoader.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -33,6 +33,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.tracing.CloseableTracer;
+import com.palantir.tracing.Tracer;
 import java.nio.ByteBuffer;
 import java.util.AbstractList;
 import java.util.ArrayList;
@@ -95,17 +96,19 @@ void loadWithTs(
             CassandraKeyValueServices.ThreadSafeResultVisitor visitor,
             ConsistencyLevel consistency) {
         Map<CassandraServer, List<Cell>> hostsAndCells;
-        try (CloseableTracer tracer = CloseableTracer.startSpan(
-                "loadWithTs.partitionByHost",
-                ImmutableMap.of(
+
+        ImmutableMap<String, String> traceContext = Tracer.hasUnobservableTrace()
+                ? ImmutableMap.of()
+                : ImmutableMap.of(
                         "cells",
                         String.valueOf(cells.size()),
                         "tableRef",
                         LoggingArgs.safeInternalTableNameOrPlaceholder(tableRef.toString()),
                         "timestampClause",
                         loadAllTs ? "for all timestamps " : "",
                         "startTs",
-                        String.valueOf(startTs)))) {
+                        String.valueOf(startTs));
+        try (CloseableTracer tracer = CloseableTracer.startSpan("loadWithTs.partitionByHost", traceContext)) {
             hostsAndCells = HostPartitioner.partitionByHost(clientPool, cells, Cell::getRowName);
         }
         int totalPartitions = hostsAndCells.keySet().size();u}(j	 (ee1124347a96b3aab3852646e5590f8594bf42d5jF
 Xatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/RangeLoader.javajH
 modifiedj@
 K	jA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRangeLoader.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRangeLoader.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRangeLoader.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.keyvalue.cassandra;
 
 import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.RangeRequest;
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
@@ -26,31 +27,33 @@
 import com.palantir.atlasdb.keyvalue.cassandra.paging.RowGetter;
 import com.palantir.atlasdb.keyvalue.cassandra.paging.ThriftColumnGetter;
 import com.palantir.atlasdb.keyvalue.cassandra.thrift.SlicePredicates;
-import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.base.ClosableIterator;
 import com.palantir.common.base.ClosableIterators;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import org.apache.cassandra.thrift.SlicePredicate;
 
 public class RangeLoader {
     private final CassandraClientPool clientPool;
     private final TracingQueryRunner queryRunner;
-    private final MetricsManager metricsManager;
     private final ReadConsistencyProvider readConsistencyProvider;
+    private final Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory;
 
     public RangeLoader(
             CassandraClientPool clientPool,
             TracingQueryRunner queryRunner,
-            MetricsManager metricsManager,
-            ReadConsistencyProvider readConsistencyProvider) {
+            ReadConsistencyProvider readConsistencyProvider,
+            Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory) {
         this.clientPool = clientPool;
         this.queryRunner = queryRunner;
-        this.metricsManager = metricsManager;
         this.readConsistencyProvider = readConsistencyProvider;
+        this.extractorFactory = extractorFactory;
     }
 
     public ClosableIterator<RowResult<Value>> getRange(TableReference tableRef, RangeRequest rangeRequest, long ts) {
-        return getRangeWithPageCreator(tableRef, rangeRequest, ts, () -> ValueExtractor.create(metricsManager));
+        return getRangeWithPageCreator(tableRef, rangeRequest, ts, () -> extractorFactory.apply(new HashMap<>()));
     }
 
     private <T> ClosableIterator<RowResult<T>> getRangeWithPageCreator(u}(j	 (3f88196e3d17fc4d5eb62f8e206fd5336c9fac30jF
 ]atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/ResultsExtractor.javajH
 modifiedj@
 K jA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X.  @@ -15,8 +15,6 @@
  */
 package com.palantir.atlasdb.keyvalue.cassandra;
 
-import com.codahale.metrics.Counter;
-import com.palantir.atlasdb.AtlasDbMetricNames;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.ColumnSelection;
@@ -109,10 +107,4 @@ public abstract void internalExtractResult(
             long startTs, ColumnSelection selection, byte[] row, byte[] col, byte[] val, long ts);
 
     public abstract Map<Cell, T> asMap();
-
-    protected Counter getNotLatestVisibleValueCellFilterCounter(Class<?> clazz) {
-        // TODO(hsaraogi): add table names as a tag
-        return metricsManager.registerOrGetCounter(
-                clazz, AtlasDbMetricNames.CellFilterMetrics.NOT_LATEST_VISIBLE_VALUE);
-    }
 }u}(j	 (53f8601baae7bbd4e212d593799a09bac05a2badjF
 [atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/ValueExtractor.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 XK  @@ -21,21 +21,17 @@
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.tracing.TraceStatistics;
 import com.palantir.atlasdb.util.MetricsManager;
-import java.util.HashMap;
 import java.util.Map;
 
 class ValueExtractor extends ResultsExtractor<Value> {
     private final Map<Cell, Value> collector;
-    private final Counter notLatestVisibleValueCellFilterCounter =
-            getNotLatestVisibleValueCellFilterCounter(ValueExtractor.class);
+    private final Counter notLatestVisibleValueCellFilterCounter;
 
-    ValueExtractor(MetricsManager metricsManager, Map<Cell, Value> collector) {
+    ValueExtractor(
+            MetricsManager metricsManager, Map<Cell, Value> collector, Counter notLatestVisibleValueCellFilterCounter) {
         super(metricsManager);
         this.collector = collector;
-    }
-
-    static ValueExtractor create(MetricsManager metricsManager) {
-        return new ValueExtractor(metricsManager, new HashMap<>());
+        this.notLatestVisibleValueCellFilterCounter = notLatestVisibleValueCellFilterCounter;
     }
 
     @Overrideu}(j	 (9f0c7fbc486ed33c7d2e87d7bec15a60af80050bjF
 Katlasdb-commons/src/test/java/com/palantir/util/IndexEncodingUtilsTest.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -78,7 +78,8 @@ public void cannotLookupUnknownChecksumType() {
 
     @Test
     public void canEncodeSimpleData() {
-        assertThat(createIndexEncoding().indexToValue()).isEqualTo(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
+        assertThat(createIndexEncoding().indexToValue())
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
     }
 
     @Testu}(j	 (b173565d678b7b542b83a400be83c1df5712c1cbjF
 datlasdb-config/src/main/java/com/palantir/atlasdb/factory/DefaultLockAndTimestampServiceFactory.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X?  @@ -262,7 +262,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
                     timelockRequestBatcherProviders,
                     knownSchemas);
         } else {
-            return createRawEmbeddedServices(metricsManager, registrar, lock, time);
+            return createRawEmbeddedServices(metricsManager, lock, time);
         }
     }
 
@@ -621,7 +621,6 @@ private static LockAndTimestampServices createRawRemoteServices(
 
     private static LockAndTimestampServices createRawEmbeddedServices(
             MetricsManager metricsManager,
-            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> managedTimestampServiceSupplier) {
         LockService lockService =
@@ -634,10 +633,6 @@ private static LockAndTimestampServices createRawEmbeddedServices(
         TimestampManagementService timestampManagementService = ServiceCreator.instrumentService(
                 metricsManager.getRegistry(), managedTimestampService, TimestampManagementService.class);
 
-        registrar.accept(lockService);
-        registrar.accept(timeService);
-        registrar.accept(timestampManagementService);
-
         return ImmutableLockAndTimestampServices.builder()
                 .lock(lockService)
                 .timestamp(timeService)u}(j	 (013b7c530f64d79bbe88bf4896edfaea7bbce3c2jF
 ^atlasdb-config/src/main/java/com/palantir/atlasdb/factory/ServiceDiscoveringAtlasSupplier.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplier.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplier.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplier.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -17,7 +17,6 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.spi.AtlasDbFactory;
@@ -52,7 +51,6 @@ public class ServiceDiscoveringAtlasSupplier {
 
     private static String timestampServiceCreationInfo = null;
 
-    private final Optional<LeaderConfig> leaderConfig;
     private final Supplier<KeyValueService> keyValueService;
     private final Supplier<ManagedTimestampService> timestampService;
     private final Supplier<TimestampStoreInvalidator> timestampStoreInvalidator;
@@ -63,18 +61,16 @@ public ServiceDiscoveringAtlasSupplier(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> namespace,
             Optional<TableReference> tableReferenceOverride,
             boolean initializeAsync,
             boolean collectThreadDumpOnInit,
             LongSupplier timestampSupplier) {
-        this.leaderConfig = leaderConfig;
         this.collectThreadDumps = collectThreadDumpOnInit;
 
         AtlasDbFactory atlasFactory = AtlasDbServiceDiscovery.createAtlasFactoryOfCorrectType(config);
         keyValueService = Suppliers.memoize(() -> atlasFactory.createRawKeyValueService(
-                metricsManager, config, runtimeConfig, leaderConfig, namespace, timestampSupplier, initializeAsync));
+                metricsManager, config, runtimeConfig, namespace, timestampSupplier, initializeAsync));
         timestampService = () -> atlasFactory.createManagedTimestampService(
                 getKeyValueService(), tableReferenceOverride, initializeAsync);
         timestampStoreInvalidator =
@@ -154,23 +150,11 @@ private static String saveThreadDumpsToFile(File file) throws IOException {
     }
 
     private void reportMultipleTimestampFetch(String path) {
-        if (!leaderConfig.isPresent()) {
-            log.warn(
-                    "[timestamp-service-creation] Timestamp service fetched for a second time, and there is no leader"
-                        + " config. This means that you may soon encounter the MultipleRunningTimestampServices error."
-                        + " Thread dumps from both fetches of the timestamp service have been outputted to {}. If you"
-                        + " encounter a MultipleRunningTimestampServices error, please send this file to support.",
-                    UnsafeArg.of("path", path));
-        } else {
-            log.warn(
-                    "[timestamp-service-creation] Timestamp service fetched for a second time. This is only OK if "
-                            + "you are running in an HA configuration and have just had a leadership election. "
-                            + "You do have a leader config, but we're outputting thread dumps from both fetches of the "
-                            + "timestamp service, in case this second service was created in error. "
-                            + "Thread dumps from both fetches of the timestamp service have been outputted to {}. "
-                            + "If you encounter a MultipleRunningTimestampServices error, please send this file to "
-                            + "support.",
-                    UnsafeArg.of("path", path));
-        }
+        log.warn(
+                "[timestamp-service-creation] Timestamp service fetched for a second time. This means that you may"
+                    + " soon encounter the MultipleRunningTimestampServices error. Thread dumps from both fetches of"
+                    + " the timestamp service have been outputted to {}. If you encounter a"
+                    + " MultipleRunningTimestampServices error, please send this file to support.",
+                UnsafeArg.of("path", path));
     }
 }u}(j	 (b8581c6ca1106927b53fd0a43ed2256f151e06a2jF
 Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javajH
 modifiedj@
 K jA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -366,7 +366,6 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                 metricsManager,
                 installConfig,
                 runtime.map(AtlasDbRuntimeConfig::keyValueService),
-                config().leader(),
                 config().namespace(),
                 Optional.empty(),
                 config().initializeAsync(),
@@ -543,7 +542,6 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                         metricsManager,
                         config(),
                         runtime,
-                        registrar(),
                         keyValueService,
                         transactionService,
                         follower,
@@ -818,7 +816,6 @@ private static BackgroundSweeperImpl initializeSweepBackgroundProcess(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Supplier<AtlasDbRuntimeConfig> runtimeConfigSupplier,
-            Consumer<Object> registrar,
             KeyValueService kvs,
             TransactionService transactionService,
             CleanupFollower follower,u}(j	 (dad98d7c2690becaffda75d8210ca450a905cadajF
 Tatlasdb-config/src/main/java/com/palantir/atlasdb/memory/InMemoryAtlasDbFactory.javajH
 modifiedj@
 K jA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactory.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactory.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactory.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X^  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.cleaner.api.OnCleanupTask;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.impl.InMemoryKeyValueService;
@@ -57,7 +56,6 @@ public String getType() {
      *
      * @param config Configuration file.
      * @param runtimeConfig unused.
-     * @param leaderConfig unused.
      * @param unused unused.
      * @param unusedLongSupplier unused.
      * @param initializeAsync unused. Async initialization has not been implemented and is not propagated.
@@ -68,7 +66,6 @@ public InMemoryKeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> unused,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(j	 (9d94736c40bc3a7b7c6c4faa07acaa3b2fbfa304jF
 Watlasdb-config/src/main/java/com/palantir/atlasdb/memory/InMemoryDbTimeLockFactory.javajH
 modifiedj@
 K jA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryDbTimeLockFactory.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryDbTimeLockFactory.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryDbTimeLockFactory.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -18,7 +18,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
@@ -49,7 +48,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean _initializeAsync) {
         return new InMemoryKeyValueService(true);
     }u}(j	 (1e67bc43b22caa75f6140e38e93e532137da9f8cjF
 aatlasdb-config/src/test/java/com/palantir/atlasdb/factory/AutoServiceAnnotatedAtlasDbFactory.javajH
 modifiedj@
 K jA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAutoServiceAnnotatedAtlasDbFactory.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAutoServiceAnnotatedAtlasDbFactory.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAutoServiceAnnotatedAtlasDbFactory.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.google.common.collect.Lists;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.spi.AtlasDbFactory;
@@ -62,7 +61,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> unused,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(j	 (a49dbe0806cf2c455793e9c38b3290d2549a32a2jF
 batlasdb-config/src/test/java/com/palantir/atlasdb/factory/ServiceDiscoveringAtlasSupplierTest.javajH
 modifiedj@
 K jA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplierTest.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplierTest.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplierTest.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -20,7 +20,6 @@
 import static org.mockito.Mockito.mock;
 
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.spi.AtlasDbFactory;
 import com.palantir.atlasdb.spi.KeyValueServiceConfig;
 import com.palantir.atlasdb.spi.KeyValueServiceConfigHelper;
@@ -36,7 +35,6 @@ public class ServiceDiscoveringAtlasSupplierTest {
     private final KeyValueServiceConfigHelper kvsConfig = () -> AutoServiceAnnotatedAtlasDbFactory.TYPE;
     private final KeyValueServiceConfigHelper invalidKvsConfig = () -> "should not be found kvs";
     private final AtlasDbFactory delegate = new AutoServiceAnnotatedAtlasDbFactory();
-    private final Optional<LeaderConfig> leaderConfig = Optional.of(mock(LeaderConfig.class));
     private final MetricsManager metrics = MetricsManagers.createForTests();
 
     @Test
@@ -49,7 +47,6 @@ public void delegateToFactoriesAnnotatedWithAutoService() {
                         metrics,
                         kvsConfig,
                         Refreshable.only(Optional.empty()),
-                        leaderConfig,
                         Optional.empty(),
                         AtlasDbFactory.THROWING_FRESH_TIMESTAMP_SOURCE,
                         AtlasDbFactory.DEFAULT_INITIALIZE_ASYNC));
@@ -94,7 +91,6 @@ private ServiceDiscoveringAtlasSupplier createAtlasSupplier(KeyValueServiceConfi
                 metrics,
                 providedKvsConfig,
                 Refreshable.only(Optional.empty()),
-                leaderConfig,
                 Optional.empty(),
                 Optional.empty(),
                 AtlasDbConstants.DEFAULT_INITIALIZE_ASYNC,u}(j	 (fafced885dba46090538c96c11b8e33ca7a1baf4jF
 Yatlasdb-config/src/test/java/com/palantir/atlasdb/memory/InMemoryAsyncAtlasDbFactory.javajH
 modifiedj@
 K jA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactory.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactory.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactory.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.memory;
 
 import com.google.auto.service.AutoService;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.impl.AsyncInitializeableInMemoryKvs;
@@ -46,7 +45,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager unusedMetricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> unusedRuntimeConfig,
-            Optional<LeaderConfig> unusedLeaderConfig,
             Optional<String> unused,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(j	 (bf61a9d5b6cd91b9f8ee2a9c1680504983d769ddjF
 ]atlasdb-config/src/test/java/com/palantir/atlasdb/memory/InMemoryAsyncAtlasDbFactoryTest.javajH
 modifiedj@
 K jA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactoryTest.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactoryTest.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactoryTest.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 Xb  @@ -80,7 +80,6 @@ private KeyValueService createRawKeyValueService(boolean initializeAsync, boolea
                 new InMemoryAsyncAtlasDbConfig(eventuallySucceed),
                 Refreshable.only(Optional.empty()),
                 Optional.empty(),
-                Optional.empty(),
                 null,
                 initializeAsync);
     }u}(j	 (2bb76883abdb0aeefd14bca1e2f5ac642666ff8cjF
 Xatlasdb-config/src/test/java/com/palantir/atlasdb/memory/InMemoryAtlasDbFactoryTest.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactoryTest.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactoryTest.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactoryTest.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X$  @@ -59,12 +59,6 @@ public void asyncInitTimestampServiceSynchronous() {
 
     private KeyValueService createRawKeyValueService(boolean initializeAsync) {
         return factory.createRawKeyValueService(
-                null,
-                null,
-                Refreshable.only(Optional.empty()),
-                Optional.empty(),
-                Optional.empty(),
-                null,
-                initializeAsync);
+                null, null, Refreshable.only(Optional.empty()), Optional.empty(), null, initializeAsync);
     }
 }u}(j	 (49641fbb8014ea4755f443d2a46dd847148cf6c9jF
 batlasdb-container-test-utils/src/main/java/com/palantir/atlasdb/containers/CassandraContainer.javajH
 modifiedj@
 K jA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FCassandraContainer.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FCassandraContainer.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FCassandraContainer.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 Xp  @@ -16,16 +16,13 @@
 package com.palantir.atlasdb.containers;
 
 import com.datastax.driver.core.Cluster;
-import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CqlCapableConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCassandraCredentialsConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCqlCapableConfig;
-import com.palantir.atlasdb.config.ImmutableLeaderConfig;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueService;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl;
 import com.palantir.atlasdb.keyvalue.cassandra.async.DefaultCassandraAsyncKeyValueServiceFactory;
@@ -37,7 +34,6 @@
 import java.net.InetSocketAddress;
 import java.net.SocketAddress;
 import java.util.Map;
-import java.util.Optional;
 import java.util.UUID;
 import java.util.function.Supplier;
 
@@ -49,13 +45,6 @@ public class CassandraContainer extends Container {
     private static final String CONTAINER_NAME = "cassandra";
     private static final String THROWAWAY_CONTAINER_NAME = "cassandra2";
 
-    @SuppressWarnings("OptionalUsedAsFieldOrParameterType")
-    static final Optional<LeaderConfig> LEADER_CONFIG = Optional.of(ImmutableLeaderConfig.builder()
-            .quorumSize(1)
-            .localServer("localhost")
-            .leaders(ImmutableSet.of("localhost"))
-            .build());
-
     private final CassandraKeyValueServiceConfig config;
     private final String dockerComposeFile;
     private final String name;u}(j	 (e7af481eab1762bea3f999752f6d2741324bf145jF
 Natlasdb-dagger/src/main/java/com/palantir/atlasdb/services/ServicesConfig.javajH
 modifiedj@
 K jA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-dagger%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fservices%2FServicesConfig.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-dagger%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fservices%2FServicesConfig.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dagger%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fservices%2FServicesConfig.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -46,7 +46,6 @@ public ServiceDiscoveringAtlasSupplier atlasDbSupplier(MetricsManager metrics) {
                 metrics,
                 atlasDbConfig().keyValueService(),
                 Refreshable.only(atlasDbRuntimeConfig().keyValueService()),
-                atlasDbConfig().leader(),
                 atlasDbConfig().namespace(),
                 Optional.empty(),
                 atlasDbConfig().initializeAsync(),u}(j	 (27ef72e8bb9601a68c5a9a8c8b770c691b18b92ajF
 atlasdb-dbkvs-tests/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/DbTimestampStoreInvalidatorCreationTest.javajH
 modifiedj@
 K jA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-dbkvs-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FDbTimestampStoreInvalidatorCreationTest.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-dbkvs-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FDbTimestampStoreInvalidatorCreationTest.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FDbTimestampStoreInvalidatorCreationTest.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -19,13 +19,11 @@
 import static com.palantir.atlasdb.spi.AtlasDbFactory.NO_OP_FAST_FORWARD_TIMESTAMP;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.Mockito.mock;
 
 import com.google.common.collect.ImmutableSet;
 import com.google.common.util.concurrent.SimpleTimeLimiter;
 import com.google.common.util.concurrent.TimeLimiter;
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.factory.ServiceDiscoveringAtlasSupplier;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.dbkvs.InvalidationRunner;
@@ -49,7 +47,6 @@
 
 public class DbTimestampStoreInvalidatorCreationTest {
     private final MetricsManager metrics = MetricsManagers.createForTests();
-    private final Optional<LeaderConfig> leaderConfig = Optional.of(mock(LeaderConfig.class));
 
     @ClassRule
     public static final TestResourceManager TRM = new TestResourceManager(DbKvsPostgresTestSuite::createKvs);
@@ -124,7 +121,6 @@ private ServiceDiscoveringAtlasSupplier createAtlasSupplier(
                 metrics,
                 providedKvsConfig,
                 Refreshable.only(Optional.empty()),
-                leaderConfig,
                 Optional.empty(),
                 tableReference,
                 AtlasDbConstants.DEFAULT_INITIALIZE_ASYNC,uL      }(j	 (0a8f1ae139f220797b9abeebbd4c969fee53e76ejF
 Uatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/DbAtlasDbFactory.javajH
 modifiedj@
 K jA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FDbAtlasDbFactory.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FDbAtlasDbFactory.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FDbAtlasDbFactory.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X*  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.ConnectionManagerAwareDbKvs;
@@ -53,7 +52,6 @@ public String getType() {
      *
      * @param config Configuration file.
      * @param runtimeConfig unused.
-     * @param leaderConfig unused.
      * @param namespace unused.
      * @param unusedLongSupplier unused.
      * @param initializeAsync initialize asynchronously
@@ -64,7 +62,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> namespace,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(j	 (65a0b7f0f54b0b2a052a4cbcb93084d57486a983jF
 `atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/RelationalDbTimeLockFactory.javajH
 modifiedj@
 K jA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FRelationalDbTimeLockFactory.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FRelationalDbTimeLockFactory.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FRelationalDbTimeLockFactory.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X~  @@ -19,7 +19,6 @@
 import com.google.auto.service.AutoService;
 import com.google.common.base.Preconditions;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
@@ -54,13 +53,11 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean initializeAsync) {
         return delegate.createRawKeyValueService(
                 metricsManager,
                 config,
                 runtimeConfig,
-                Optional.of(leaderConfig),
                 Optional.empty(), // This refers to an AtlasDB namespace - we use the config to talk to the db
                 AtlasDbFactory.THROWING_FRESH_TIMESTAMP_SOURCE, // This is how we give out timestamps!
                 initializeAsync);u}(j	 (90edeba1b42bea88433fe9a153bd7dee8c778e39jF
 8atlasdb-ete-tests/docker-compose.no-leader.cassandra.ymljH
 removedj@
 K jA
 K jJ
 K jK
 https://github.com/palantir/atlasdb/blob/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-ete-tests%2Fdocker-compose.no-leader.cassandra.ymljM
 https://github.com/palantir/atlasdb/raw/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-ete-tests%2Fdocker-compose.no-leader.cassandra.ymljO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.no-leader.cassandra.yml?ref=82da62a5b5b233a9801a68e245c803eef8a2c9a4jQ
 Xg  @@ -1,32 +0,0 @@
-version: '2'
-
-services:
-  cassandra:
-    image: palantirtechnologies/docker-cassandra-atlasdb:$CASSANDRA_VERSION
-    ports:
-      - "9160"
-      - "9042"
-      - "7199"
-    environment:
-      - MAX_HEAP_SIZE=$CASSANDRA_MAX_HEAP_SIZE
-      - HEAP_NEWSIZE=$CASSANDRA_HEAP_NEWSIZE
-      - LOCAL_JMX=no
-
-  ete1:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.no-leader.cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console'
-    depends_on:
-      - cassandra
-    environment:
-      - ME=ete1
-    ports:
-      - "3828"
-
-  ete-cli:
-    build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.no-leader.cassandra.client.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
-    environment:
-      - ME=ete1
-    depends_on:
-      - ete1u}(j	 (1302da74efe18e84324e9d1b29b32b97d32d2286jF
 +atlasdb-ete-tests/docker-compose.oracle.ymljH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-ete-tests%2Fdocker-compose.oracle.ymljM
 ~https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-ete-tests%2Fdocker-compose.oracle.ymljO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.oracle.yml?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 @@ -2,7 +2,7 @@ version: '2'
 
 services:
   oracle:
-    image: palantirtechnologies/oracle-atlasdb:19.19.0.0-se
+    image: palantirtechnologies/oracle-atlasdb:19.20.0.0-se
     ports:
       - "1521"
 u}(j	 (34ea6c0b5ef5dbd5272880f34171baede31d5a1bjF
 Hatlasdb-ete-tests/docker/conf/atlasdb-ete.no-leader.cassandra.client.ymljH
 removedj@
 K jA
 K'jJ
 K'jK
 https://github.com/palantir/atlasdb/blob/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.no-leader.cassandra.client.ymljM
 https://github.com/palantir/atlasdb/raw/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.no-leader.cassandra.client.ymljO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.no-leader.cassandra.client.yml?ref=82da62a5b5b233a9801a68e245c803eef8a2c9a4jQ
 X  @@ -1,39 +0,0 @@
-server:
-  #rootPath: /api/*
-  #applicationContextPath: /
-  #adminContextPath: /
-  applicationConnectors:
-    - type: http
-      port: 3828
-  adminConnectors:
-    - type: http
-      port: 3829
-
-atlasdb:
-  keyValueService:
-    type: cassandra
-    servers:
-      - cassandra:9160
-    poolSize: 20
-    keyspace: atlasete
-    credentials:
-      username: cassandra
-      password: cassandra
-    ssl: false
-    replicationFactor: 1
-    mutationBatchCount: 10000
-    mutationBatchSizeBytes: 10000000
-    fetchBatchCount: 1000
-    autoRefreshNodes: false
-
-  leader:
-    quorumSize: 1
-    learnerLogDir: var/data/paxosLog/learner1
-    acceptorLogDir: var/data/paxosLog/acceptor1
-    localServer: http://${ME}:3828
-    leaders:
-      - http://ete1:3828
-    sslConfiguration:
-      keyStorePath: "var/security/keyStore.jks"
-      keyStorePassword: "keystore"
-      trustStorePath: "var/security/trustStore.jks"u}(j	 (5717012391f5914faa1531b59bde36cee3aa6a6fjF
 Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraNoLeaderTestSuite.javajH
 removedj@
 K jA
 K.jJ
 K.jK
 https://github.com/palantir/atlasdb/blob/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraNoLeaderTestSuite.javajM
 https://github.com/palantir/atlasdb/raw/82da62a5b5b233a9801a68e245c803eef8a2c9a4/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraNoLeaderTestSuite.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraNoLeaderTestSuite.java?ref=82da62a5b5b233a9801a68e245c803eef8a2c9a4jQ
 X#  @@ -1,46 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.ete;
-
-import com.google.common.collect.ImmutableList;
-import com.palantir.atlasdb.containers.CassandraEnvironment;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import com.palantir.atlasdb.ete.coordination.MultipleSchemaVersionsCoordinationEteTest;
-import org.junit.ClassRule;
-import org.junit.rules.RuleChain;
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-
-@RunWith(Suite.class)
-@Suite.SuiteClasses({
-    TodoEteTest.class,
-    ServiceExposureEteTest.class,
-    CassandraTimestampsEteTest.class,
-    TimestampManagementEteTest.class,
-    CoordinationEteTest.class,
-    MultipleSchemaVersionsCoordinationEteTest.class,
-    LockWithoutTimelockEteTest.class
-})
-public class CassandraNoLeaderTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");
-
-    @ClassRule
-    public static final RuleChain COMPOSITION_SETUP = EteSetup.setupComposition(
-            CassandraNoLeaderTestSuite.class,
-            "docker-compose.no-leader.cassandra.yml",
-            CLIENTS,
-            CassandraEnvironment.get());
-}u}(j	 (dfda65b5b3a490e801cb83c5985bf54d247aafc5jF
 Vatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/TimeLockMigrationEteTest.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -100,6 +100,7 @@ public class TimeLockMigrationEteTest {
             SslConfiguration.of(Paths.get("var/security/trustStore.jks"));
     public static final TrustContext TRUST_CONTEXT = SslSocketFactories.createTrustContext(SSL_CONFIGURATION);
 
+    private static final long ID = 1L;
     private static final Todo TODO = ImmutableTodo.of("some stuff to do");
     private static final Todo TODO_2 = ImmutableTodo.of("more stuff to do");
     private static final Todo TODO_3 = ImmutableTodo.of("even more stuff to do");
@@ -126,17 +127,14 @@ public static void setUp() {
     }
 
     @Test
-    public void automaticallyMigratesTimestampsAndFailsOnRestart() throws Exception {
-        TimestampService timestampClient = createEteClientFor(TimestampService.class);
+    public void automaticallyMigratesTimestampsAndFailsOnRestart() {
         TodoResource todoClient = createEteClientFor(TodoResource.class);
 
-        todoClient.addTodo(TODO);
+        long embeddedTimestamp = todoClient.addTodoWithIdAndReturnTimestamp(ID, TODO);
         softAssertions
                 .assertThat(todoClient.getTodoList())
                 .as("contains one todo pre-migration")
                 .contains(TODO);
-
-        long embeddedTimestamp = timestampClient.getFreshTimestamp();
         softAssertions
                 .assertThat(embeddedTimestamp)
                 .as("can get a timestamp before migration")u}(j	 (d818b689da94b2df8cc7d03ee10dfe828a3d8b4djF
  atlasdb-impl-shared/build.gradlejH
 modifiedj@
 KjA
 K jJ
 KjK
 thttps://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fbuild.gradlejM
 shttps://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fbuild.gradlejO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fbuild.gradle?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -50,6 +50,8 @@ dependencies {
   implementation 'jakarta.ws.rs:jakarta.ws.rs-api'
   implementation 'org.apache.commons:commons-lang3'
   implementation 'org.checkerframework:checker-qual'
+  implementation 'org.eclipse.collections:eclipse-collections'
+  implementation 'org.eclipse.collections:eclipse-collections-api'
   implementation 'org.slf4j:slf4j-api'
 
   implementation project(':atlasdb-api')u}(j	 (0d8de51ab4362cdda2463fb83c926e38cf12c269jF
 fatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTable.javajH
 modifiedj@
 KjA
 K
jJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X
  @@ -22,6 +22,7 @@
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.Iterables;
+import com.google.common.collect.Maps;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.MoreExecutors;
@@ -33,7 +34,6 @@
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.common.exception.AtlasDbDependencyException;
-import com.palantir.common.streams.KeyedStream;
 import com.palantir.common.time.Clock;
 import com.palantir.common.time.SystemClock;
 import com.palantir.logsafe.Preconditions;
@@ -52,6 +52,8 @@
 import java.util.stream.Collectors;
 import java.util.stream.StreamSupport;
 import javax.annotation.Nonnull;
+import org.eclipse.collections.api.factory.primitive.ObjectLongMaps;
+import org.eclipse.collections.api.map.primitive.MutableObjectLongMap;
 import org.immutables.value.Value;
 
 public class ResilientCommitTimestampAtomicTable implements AtomicTable<Long, TransactionStatus> {
@@ -141,16 +143,16 @@ public void update(Long key, TransactionStatus value) throws KeyAlreadyExistsExc
 
     @Override
     public void updateMultiple(Map<Long, TransactionStatus> keyValues) throws KeyAlreadyExistsException {
-        Map<Cell, Long> cellToStartTs = keyValues.keySet().stream()
-                .collect(Collectors.toMap(encodingStrategy::encodeStartTimestampAsCell, x -> x));
-        Map<Cell, byte[]> stagingValues = KeyedStream.stream(cellToStartTs)
-                .map(startTs -> encodingStrategy.encodeCommitStatusAsValue(
-                        startTs, AtomicValue.staging(keyValues.get(startTs))))
-                .collectToMap();
+        MutableObjectLongMap<Cell> cellToStartTs = ObjectLongMaps.mutable.withInitialCapacity(keyValues.size());
+        keyValues.keySet().forEach(ts -> cellToStartTs.put(encodingStrategy.encodeStartTimestampAsCell(ts), ts));
+
+        Map<Cell, byte[]> stagingValues = Maps.newHashMapWithExpectedSize(cellToStartTs.size());
+        cellToStartTs.forEachKeyValue((cell, startTs) -> stagingValues.put(
+                cell,
+                encodingStrategy.encodeCommitStatusAsValue(startTs, AtomicValue.staging(keyValues.get(startTs)))));
+
         store.batchAtomicUpdate(stagingValues);
-        store.put(KeyedStream.stream(stagingValues)
-                .map(encodingStrategy::transformStagingToCommitted)
-                .collectToMap());
+        store.put(Maps.transformValues(stagingValues, encodingStrategy::transformStagingToCommitted));
     }
 
     @Overrideu}(j	 (be6fbc6e8ce696fafb59c3d25b4a7d665bd2ac80jF
 _atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/ClientLockDiagnosticCollector.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollector.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollector.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollector.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -27,6 +27,7 @@
 import java.util.Set;
 import java.util.UUID;
 import java.util.stream.LongStream;
+import org.eclipse.collections.api.map.primitive.ImmutableLongLongMap;
 import org.immutables.value.Value;
 
 /**
@@ -105,6 +106,6 @@ interface ConflictTrace {
         Map<Cell, Long> latestTimestamps();
 
         @Value.Parameter
-        Map<Long, Long> commitTimestamps();
+        ImmutableLongLongMap commitTimestamps();
     }
 }u}(j	 (2ba2417016f1307f2e893ab84628481d801dc9e6jF
 catlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/ClientLockDiagnosticCollectorImpl.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollectorImpl.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollectorImpl.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollectorImpl.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -29,6 +29,7 @@
 import java.util.function.UnaryOperator;
 import java.util.stream.LongStream;
 import javax.annotation.Nullable;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
 
 /**
  * TODO(fdesouza): Remove this once PDS-95791 is resolved.
@@ -63,8 +64,9 @@ public void collect(
             long startTimestamp,
             Map<Cell, Long> keysToLoad,
             Map<Cell, Long> latestTimestamps,
-            Map<Long, Long> commitTimestamps) {
-        ConflictTrace conflictTrace = ImmutableConflictTrace.of(keysToLoad, latestTimestamps, commitTimestamps);
+            LongLongMap commitTimestamps) {
+        ConflictTrace conflictTrace =
+                ImmutableConflictTrace.of(keysToLoad, latestTimestamps, commitTimestamps.toImmutable());
         cache.asMap().compute(startTimestamp, mutateDigest(digest -> digest.withNewConflictDigest(conflictTrace)));
     }
 u}(j	 (a50601f1936696d69de12e1e665ac187788ac034jF
 Patlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/ConflictTracer.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FConflictTracer.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FConflictTracer.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FConflictTracer.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -18,6 +18,7 @@
 
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import java.util.Map;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
 
 /**
  * TODO(fdesouza): Remove this once PDS-95791 is resolved.
@@ -31,5 +32,5 @@ void collect(
             long startTimestamp,
             Map<Cell, Long> keysToLoad,
             Map<Cell, Long> latestTimestamps,
-            Map<Long, Long> commitTimestamps);
+            LongLongMap commitTimestamps);
 }u}(j	 (2f8a21800d40cf1133b80f1dfeb5d0fe9712c6e4jF
 Uatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/PartitionInfo.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FPartitionInfo.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FPartitionInfo.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FPartitionInfo.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X0  @@ -20,14 +20,13 @@
 
 @Value.Immutable
 public interface PartitionInfo {
+    @Value.Parameter
     ShardAndStrategy shardAndStrategy();
 
+    @Value.Parameter
     long timestamp();
 
     static PartitionInfo of(int shard, SweeperStrategy strategy, long timestamp) {
-        return ImmutablePartitionInfo.builder()
-                .shardAndStrategy(ShardAndStrategy.of(shard, strategy))
-                .timestamp(timestamp)
-                .build();
+        return ImmutablePartitionInfo.of(ShardAndStrategy.of(shard, strategy), timestamp);
     }
 }u}(j	 (20af9fe9cf3ce8a1c398fa50ae5885df278e98d9jF
 Xatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/ShardAndStrategy.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FShardAndStrategy.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FShardAndStrategy.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FShardAndStrategy.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 XU  @@ -22,8 +22,10 @@
 
 @Value.Immutable
 public abstract class ShardAndStrategy {
+    @Value.Parameter
     public abstract int shard();
 
+    @Value.Parameter
     public abstract SweeperStrategy strategy();
 
     public String toText() {
@@ -51,18 +53,15 @@ public boolean isThorough() {
     }
 
     public static ShardAndStrategy of(int shard, SweeperStrategy sweepStrategy) {
-        return ImmutableShardAndStrategy.builder()
-                .shard(shard)
-                .strategy(sweepStrategy)
-                .build();
+        return ImmutableShardAndStrategy.of(shard, sweepStrategy);
     }
 
     public static ShardAndStrategy conservative(int shard) {
-        return ShardAndStrategy.of(shard, SweeperStrategy.CONSERVATIVE);
+        return ImmutableShardAndStrategy.of(shard, SweeperStrategy.CONSERVATIVE);
     }
 
     public static ShardAndStrategy thorough(int shard) {
-        return ShardAndStrategy.of(shard, SweeperStrategy.THOROUGH);
+        return ImmutableShardAndStrategy.of(shard, SweeperStrategy.THOROUGH);
     }
 
     public static ShardAndStrategy nonSweepable() {u}(j	 (914d867ae841df30303a097c21539e62c7f411aejF
 Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/SweepQueueTable.javajH
 modifiedj@
 KjA
 K jJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepQueueTable.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepQueueTable.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepQueueTable.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X{  @@ -55,6 +55,10 @@ public void enqueue(List<WriteInfo> allWrites) {
     }
 
     private void enqueueFiltered(Map<PartitionInfo, List<WriteInfo>> partitionedWrites) {
+        if (partitionedWrites.isEmpty()) {
+            return;
+        }
+
         Map<Cell, byte[]> referencesToDedicatedCells = new HashMap<>();
         Map<Cell, byte[]> cellsToWrite = new HashMap<>();
 u}(j	 (a9b4705f8f7aa3df1b445c48b97b8bbc12756d22jF
 Vatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/SweepableCells.javajH
 modifiedj@
 KjA
 KjJ
 K,jK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepableCells.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepableCells.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepableCells.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -52,6 +52,7 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.ArrayList;
 import java.util.Collection;
+import java.util.Comparator;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Iterator;
@@ -61,6 +62,9 @@
 import java.util.Set;
 import java.util.SortedSet;
 import java.util.stream.Collectors;
+import org.eclipse.collections.api.factory.primitive.LongSets;
+import org.eclipse.collections.api.set.primitive.LongSet;
+import org.eclipse.collections.api.set.primitive.MutableLongSet;
 
 public class SweepableCells extends SweepQueueTable {
     private static final SafeLogger log = SafeLoggerFactory.get(SweepableCells.class);
@@ -208,7 +212,7 @@ private WriteBatch getBatchOfWrites(
             writeBatch.merge(getWrites(row, col, entry.getValue()));
         }
         // there may be entries remaining with the same start timestamp as the last processed one. If that is the case
-        // we want to include these ones as well. This is OK since there are at most MAX_CELLS_GENERIC - 1 of them.
+        // we want to include these as well. This is OK since there are at most MAX_CELLS_GENERIC - 1 of them.
         while (resultIterator.hasNext()) {
             Map.Entry<Cell, Value> entry = resultIterator.peek();
             SweepableCellsTable.SweepableCellsColumn col = computeColumn(entry);
@@ -227,10 +231,9 @@ private static final class WriteBatch {
         private final Multimap<Long, WriteInfo> writesByStartTs = HashMultimap.create();
         private final List<SweepableCellsRow> dedicatedRows = new ArrayList<>();
 
-        WriteBatch merge(WriteBatch other) {
+        void merge(WriteBatch other) {
             writesByStartTs.putAll(other.writesByStartTs);
             dedicatedRows.addAll(other.dedicatedRows);
-            return this;
         }
 
         static WriteBatch single(WriteInfo writeInfo) {
@@ -264,7 +267,7 @@ private TimestampsToSweep getTimestampsToSweepDescendingAndCleanupAborted(
             Multimap<Long, WriteInfo> writesByStartTs) {
         Map<Long, Long> startToCommitTs = commitTsCache.loadBatch(writesByStartTs.keySet());
         Map<TableReference, Multimap<Cell, Long>> cellsToDelete = new HashMap<>();
-        List<Long> committedTimestamps = new ArrayList<>();
+        MutableLongSet committedTimestamps = LongSets.mutable.empty();
         long lastSweptTs = minTsExclusive;
         long lastSeenCommitTs = 0L;
         boolean processedAll = true;
@@ -277,11 +280,12 @@ private TimestampsToSweep getTimestampsToSweepDescendingAndCleanupAborted(
             if (commitTs == TransactionConstants.FAILED_COMMIT_TS) {
                 lastSweptTs = startTs;
                 abortedTimestamps.add(startTs);
-                writesByStartTs.get(startTs).stream()
-                        .filter(info -> info.writeRef().isPresent())
-                        .forEach(write -> cellsToDelete
-                                .computeIfAbsent(write.writeRef().get().tableRef(), ignore -> HashMultimap.create())
-                                .put(write.writeRef().get().cell(), write.timestamp()));
+                writesByStartTs.get(startTs).forEach(write -> {
+                    Optional<WriteReference> writeReference = write.writeRef();
+                    writeReference.ifPresent(reference -> cellsToDelete
+                            .computeIfAbsent(reference.tableRef(), _ignore -> HashMultimap.create())
+                            .put(reference.cell(), write.timestamp()));
+                });
             } else if (commitTs < sweepTs) {
                 lastSweptTs = startTs;
                 committedTimestamps.add(startTs);
@@ -318,24 +322,26 @@ private TimestampsToSweep getTimestampsToSweepDescendingAndCleanupAborted(
         });
 
         return ImmutableTimestampsToSweep.builder()
-                .timestampsDescending(
-                        ImmutableSortedSet.copyOf(committedTimestamps).descendingSet())
+                .timestampsDescending(sortDescending(committedTimestamps))
                 .abortedTimestamps(abortedTimestamps)
                 .maxSwept(lastSweptTs)
                 .lastSeenCommitTs(lastSeenCommitTs)
                 .processedAll(processedAll)
                 .build();
     }
 
+    private static ImmutableSortedSet<Long> sortDescending(LongSet committedTimestamps) {
+        ImmutableSortedSet.Builder<Long> timestampsDescending =
+                ImmutableSortedSet.<Long>orderedBy(Comparator.reverseOrder());
+        committedTimestamps.forEach(timestampsDescending::add);
+        return timestampsDescending.build();
+    }
+
     private Collection<WriteInfo> getWritesToSweep(Multimap<Long, WriteInfo> writesByStartTs, SortedSet<Long> startTs) {
-        Map<CellReference, WriteInfo> writesToSweepFor = new HashMap<>();
-        startTs.stream()
-                .map(writesByStartTs::get)
-                .flatMap(Collection::stream)
-                .filter(write -> write.writeRef().isPresent())
-                .forEach(write ->
-                        writesToSweepFor.putIfAbsent(write.writeRef().get().cellReference(), write));
-        return writesToSweepFor.values();
+        Map<CellReference, WriteInfo> writesToSweep = new HashMap<>();
+        startTs.stream().map(writesByStartTs::get).flatMap(Collection::stream).forEach(write -> write.writeRef()
+                .ifPresent(reference -> writesToSweep.putIfAbsent(reference.cellReference(), write)));
+        return writesToSweep.values();
     }
 
     private long getLastSweptTs(u}(j	 (ac0a8f06091a11835443cd19abb4a3d348a5f781jF
 \atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitioner.javajH
 modifiedj@
 K.jA
 KjJ
 KEjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -28,9 +28,12 @@
 import com.palantir.common.base.Throwables;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
-import java.util.Set;
+import java.util.Optional;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 
@@ -54,39 +57,59 @@ public WriteInfoPartitioner(KeyValueService kvs, Supplier<Integer> numShards) {
      * writes according to shard and strategy.
      */
     public Map<PartitionInfo, List<WriteInfo>> filterAndPartition(List<WriteInfo> writes) {
-        return writes.stream().collect(Collectors.groupingBy(WriteInfo::timestamp)).values().stream()
-                .map(this::filterAndPartitionForSingleTimestamp)
-                .map(Map::entrySet)
-                .flatMap(Set::stream)
-                .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
+        if (writes.isEmpty()) {
+            return Map.of();
+        }
+
+        Collection<List<WriteInfo>> partitionedWrites = writes.stream()
+                .collect(Collectors.groupingBy(WriteInfo::timestamp))
+                .values();
+
+        Map<PartitionInfo, List<WriteInfo>> writesPartitionedByTimestamp = new HashMap<>();
+        for (List<WriteInfo> writeInfos : partitionedWrites) {
+            filterAndPartitionForSingleTimestamp(writeInfos)
+                    .forEach((partition, writeInfo) -> writesPartitionedByTimestamp
+                            .computeIfAbsent(partition, _k -> new ArrayList<>())
+                            .addAll(writeInfo));
+        }
+        return writesPartitionedByTimestamp;
     }
 
     private Map<PartitionInfo, List<WriteInfo>> filterAndPartitionForSingleTimestamp(List<WriteInfo> writes) {
-        if (writes.stream().allMatch(writeInfo -> getStrategy(writeInfo) == SweeperStrategy.NON_SWEEPABLE)) {
-            long startTs = writes.stream().findFirst().get().timestamp();
-            return SweepQueueUtils.partitioningForNonSweepable(startTs);
+        if (writes.isEmpty()) {
+            return Map.of();
         }
-        return partitionWritesByShardStrategyTimestamp(writes);
-    }
 
-    private Map<PartitionInfo, List<WriteInfo>> partitionWritesByShardStrategyTimestamp(List<WriteInfo> writes) {
         int shards = numShards.get();
-        return writes.stream()
-                .filter(writeInfo -> getStrategy(writeInfo) != SweeperStrategy.NON_SWEEPABLE)
-                .collect(Collectors.groupingBy(write -> getPartitionInfo(write, shards), Collectors.toList()));
-    }
 
-    private PartitionInfo getPartitionInfo(WriteInfo write, int shards) {
-        return PartitionInfo.of(write.toShard(shards), getStrategy(write), write.timestamp());
+        // Note that we do a single pass over writes to determine their sweep strategy, and only add sweepable write to
+        // sweepablePartitionedWrites map, so when it is empty we consider all writes for that timestamp non-sweepable.
+        Map<PartitionInfo, List<WriteInfo>> sweepablePartitionedWrites = new HashMap<>();
+        for (WriteInfo writeInfo : writes) {
+            SweeperStrategy strategy = getStrategy(writeInfo);
+            if (strategy != SweeperStrategy.NON_SWEEPABLE) {
+                PartitionInfo partition = PartitionInfo.of(writeInfo.toShard(shards), strategy, writeInfo.timestamp());
+                sweepablePartitionedWrites
+                        .computeIfAbsent(partition, _k -> new ArrayList<>())
+                        .add(writeInfo);
+            }
+        }
+
+        if (sweepablePartitionedWrites.isEmpty()) {
+            // All writes for this partition are non-sweepable
+            long startTs = writes.stream().findFirst().orElseThrow().timestamp();
+            return SweepQueueUtils.partitioningForNonSweepable(startTs);
+        }
+        return sweepablePartitionedWrites;
     }
 
     @VisibleForTesting
     SweeperStrategy getStrategy(WriteInfo writeInfo) {
-        return writeInfo
-                .writeRef()
-                .map(WriteReference::tableRef)
-                .map(this::getStrategyForTable)
-                .orElse(SweeperStrategy.NON_SWEEPABLE);
+        Optional<WriteReference> writeReference = writeInfo.writeRef();
+        if (writeReference.isPresent()) {
+            return getStrategyForTable(writeReference.get().tableRef());
+        }
+        return SweeperStrategy.NON_SWEEPABLE;
     }
 
     SweeperStrategy getStrategyForTable(TableReference tableRef) {u}(j	 (19087bbc54d879f15116073134966b2a2365ccd7jF
 batlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoader.javajH
 modifiedj@
 K"jA
 KjJ
 KAjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -43,14 +43,21 @@
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.HashMap;
-import java.util.HashSet;
 import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.TimeUnit;
 import java.util.function.Supplier;
 import javax.annotation.Nullable;
+import org.eclipse.collections.api.LongIterable;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
+import org.eclipse.collections.api.map.primitive.MutableLongLongMap;
+import org.eclipse.collections.api.set.ImmutableSet;
+import org.eclipse.collections.api.set.primitive.LongSet;
+import org.eclipse.collections.api.set.primitive.MutableLongSet;
+import org.eclipse.collections.impl.factory.primitive.LongLongMaps;
+import org.eclipse.collections.impl.factory.primitive.LongSets;
+import org.eclipse.collections.impl.map.mutable.primitive.LongLongHashMap;
 
 public final class CommitTimestampLoader {
     private static final SafeLogger log = SafeLoggerFactory.get(CommitTimestampLoader.class);
@@ -90,26 +97,25 @@ public CommitTimestampLoader(
      * Returns a map from start timestamp to commit timestamp. If a start timestamp wasn't committed, then it will be
      * missing from the map. This method will block until the transactions for these start timestamps are complete.
      */
-    ListenableFuture<Map<Long, Long>> getCommitTimestamps(
+    ListenableFuture<LongLongMap> getCommitTimestamps(
             @Nullable TableReference tableRef,
-            Iterable<Long> startTimestamps,
+            LongIterable startTimestamps,
             boolean shouldWaitForCommitterToComplete,
             AsyncTransactionService asyncTransactionService) {
-        if (Iterables.isEmpty(startTimestamps)) {
-            return Futures.immediateFuture(ImmutableMap.of());
+        if (startTimestamps.isEmpty()) {
+            return Futures.immediateFuture(LongLongMaps.immutable.of());
         }
 
-        Set<Long> pendingGets = new HashSet<>();
-        Map<Long, Long> result = new HashMap<>();
-
-        for (Long startTs : startTimestamps) {
+        MutableLongSet pendingGets = LongSets.mutable.of();
+        MutableLongLongMap result = new LongLongHashMap();
+        startTimestamps.each(startTs -> {
             Long commitTs = timestampCache.getCommitTimestampIfPresent(startTs);
             if (commitTs == null) {
                 pendingGets.add(startTs);
             } else {
                 result.put(startTs, commitTs);
             }
-        }
+        });
 
         if (pendingGets.isEmpty()) {
             return Futures.immediateFuture(result);
@@ -123,16 +129,16 @@ ListenableFuture<Map<Long, Long>> getCommitTimestamps(
         return Futures.transform(
                 loadCommitTimestamps(asyncTransactionService, pendingGets),
                 rawResults -> {
-                    Map<Long, Long> loadedCommitTs = cacheKnownLoadedValuesAndValidate(rawResults);
+                    LongLongMap loadedCommitTs = cacheKnownLoadedValuesAndValidate(rawResults);
                     result.putAll(loadedCommitTs);
                     return result;
                 },
                 MoreExecutors.directExecutor());
     }
 
     // We do not cache unknown transactions as they are already being cached at a lower level.
-    private Map<Long, Long> cacheKnownLoadedValuesAndValidate(Map<Long, TransactionStatus> rawResults) {
-        Map<Long, Long> results = new HashMap<>();
+    private LongLongMap cacheKnownLoadedValuesAndValidate(Map<Long, TransactionStatus> rawResults) {
+        MutableLongLongMap results = LongLongMaps.mutable.empty();
         boolean shouldValidate = false;
 
         // The method is written this way to avoid multiple scans on the result set as it is on a hot path.
@@ -158,30 +164,27 @@ private Map<Long, Long> cacheKnownLoadedValuesAndValidate(Map<Long, TransactionS
             throwIfTransactionsTableSweptBeyondReadOnlyTxn();
         }
 
-        return results;
+        return results.asUnmodifiable();
     }
 
     /**
      * We will block here until the passed transactions have released their lock. This means that the committing
      * transaction is either complete or it has failed, and we are allowed to roll it back.
      */
-    private void waitForCommitToComplete(Iterable<Long> startTimestamps) {
-        Set<LockDescriptor> lockDescriptors = new HashSet<>();
-        for (long start : startTimestamps) {
-            if (start < immutableTimestamp) {
-                // We don't need to block in this case because this transaction is already complete
-                continue;
-            }
-            lockDescriptors.add(AtlasRowLockDescriptor.of(
-                    TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
-                    TransactionConstants.getValueForTimestamp(start)));
-        }
+    private void waitForCommitToComplete(LongIterable startTimestamps) {
+        ImmutableSet<LockDescriptor> lockDescriptors = startTimestamps
+                // We only need to block and wait for transactions on or after immutable timestamp
+                .select(start -> start >= immutableTimestamp)
+                .collect(start -> AtlasRowLockDescriptor.of(
+                        TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
+                        TransactionConstants.getValueForTimestamp(start)))
+                .toImmutableSet();
 
         if (lockDescriptors.isEmpty()) {
             return;
         }
 
-        waitFor(lockDescriptors);
+        waitFor(lockDescriptors.castToSet());
     }
 
     private void waitFor(Set<LockDescriptor> lockDescriptors) {
@@ -202,7 +205,7 @@ private void waitFor(Set<LockDescriptor> lockDescriptors) {
         }
     }
 
-    private void waitForCommitterToComplete(@Nullable TableReference tableRef, Iterable<Long> startTimestamps) {
+    private void waitForCommitterToComplete(@Nullable TableReference tableRef, LongIterable startTimestamps) {
         Timer.Context timer = getTimer("waitForCommitTsMillis").time();
         waitForCommitToComplete(startTimestamps);
         long waitForCommitTsMillis = TimeUnit.NANOSECONDS.toMillis(timer.stop());
@@ -222,16 +225,16 @@ private Timer getTimer(String name) {
     }
 
     private static ListenableFuture<Map<Long, TransactionStatus>> loadCommitTimestamps(
-            AsyncTransactionService asyncTransactionService, Set<Long> startTimestamps) {
+            AsyncTransactionService asyncTransactionService, LongSet startTimestamps) {
         // distinguish between a single timestamp and a batch, for more granular metrics
         if (startTimestamps.size() == 1) {
-            Long singleTs = Iterables.getOnlyElement(startTimestamps);
+            long singleTs = startTimestamps.longIterator().next();
             return Futures.transform(
                     asyncTransactionService.getAsyncV2(singleTs),
                     commitState -> ImmutableMap.of(singleTs, commitState),
                     MoreExecutors.directExecutor());
         } else {
-            return asyncTransactionService.getAsyncV2(startTimestamps);
+            return asyncTransactionService.getAsyncV2(startTimestamps.collect(Long::valueOf));
         }
     }
 u}(j	 (42ceadc1627c20a091f61071015599edf247e5d7jF
 datlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.javajH
 modifiedj@
 K!jA
 KjJ
 K8jK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X:  @@ -112,6 +112,13 @@
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 import javax.annotation.Nullable;
+import org.eclipse.collections.api.LongIterable;
+import org.eclipse.collections.api.factory.primitive.LongLongMaps;
+import org.eclipse.collections.api.factory.primitive.LongSets;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
+import org.eclipse.collections.api.map.primitive.MutableLongLongMap;
+import org.eclipse.collections.api.set.primitive.LongSet;
+import org.eclipse.collections.api.set.primitive.MutableLongSet;
 import org.immutables.value.Value;
 import org.jetbrains.annotations.VisibleForTesting;
 
@@ -933,42 +940,42 @@ protected TransactionScopedCache getCache() {
             }
 
             @Override
-            protected ListenableFuture<Map<Long, Long>> getCommitTimestamps(
+            protected ListenableFuture<LongLongMap> getCommitTimestamps(
                     TableReference tableRef,
-                    Iterable<Long> startTimestamps,
+                    LongIterable startTimestamps,
                     boolean shouldWaitForCommitterToComplete,
                     AsyncTransactionService asyncTransactionService) {
                 long myStart = SerializableTransaction.this.getTimestamp();
                 PartitionedTimestamps partitionedTimestamps = splitTransactionBeforeAndAfter(myStart, startTimestamps);
 
-                ListenableFuture<Map<Long, Long>> postStartCommitTimestamps =
+                ListenableFuture<LongLongMap> postStartCommitTimestamps =
                         getCommitTimestampsForTransactionsStartedAfterMe(
                                 tableRef, asyncTransactionService, partitionedTimestamps.afterStart());
 
                 // We are ok to block here because if there is a cycle of transactions that could result in a deadlock,
                 // then at least one of them will be in the ab
-                ListenableFuture<Map<Long, Long>> preStartCommitTimestamps = super.getCommitTimestamps(
+                ListenableFuture<LongLongMap> preStartCommitTimestamps = super.getCommitTimestamps(
                         tableRef,
                         partitionedTimestamps.beforeStart(),
                         shouldWaitForCommitterToComplete,
                         asyncTransactionService);
 
                 return Futures.whenAllComplete(postStartCommitTimestamps, preStartCommitTimestamps)
                         .call(
-                                () -> ImmutableMap.<Long, Long>builder()
-                                        .putAll(AtlasFutures.getDone(preStartCommitTimestamps))
-                                        .putAll(AtlasFutures.getDone(postStartCommitTimestamps))
-                                        .putAll(partitionedTimestamps.myCommittedTransaction())
-                                        .buildOrThrow(),
+                                () -> {
+                                    MutableLongLongMap map = LongLongMaps.mutable.withAll(
+                                            AtlasFutures.getDone(preStartCommitTimestamps));
+                                    map.putAll(AtlasFutures.getDone(postStartCommitTimestamps));
+                                    map.putAll(partitionedTimestamps.myCommittedTransaction());
+                                    return map.toImmutable();
+                                },
                                 MoreExecutors.directExecutor());
             }
 
-            private ListenableFuture<Map<Long, Long>> getCommitTimestampsForTransactionsStartedAfterMe(
-                    TableReference tableRef,
-                    AsyncTransactionService asyncTransactionService,
-                    Set<Long> startTimestamps) {
+            private ListenableFuture<LongLongMap> getCommitTimestampsForTransactionsStartedAfterMe(
+                    TableReference tableRef, AsyncTransactionService asyncTransactionService, LongSet startTimestamps) {
                 if (startTimestamps.isEmpty()) {
-                    return Futures.immediateFuture(ImmutableMap.of());
+                    return Futures.immediateFuture(LongLongMaps.immutable.empty());
                 }
 
                 return Futures.transform(
@@ -1002,19 +1009,22 @@ private ListenableFuture<Map<Long, Long>> getCommitTimestampsForTransactionsStar
              * @param startTimestamps of transactions we are interested in
              * @return a {@link PartitionedTimestamps} object containing split timestamps
              */
-            private PartitionedTimestamps splitTransactionBeforeAndAfter(long myStart, Iterable<Long> startTimestamps) {
+            private PartitionedTimestamps splitTransactionBeforeAndAfter(long myStart, LongIterable startTimestamps) {
                 ImmutablePartitionedTimestamps.Builder builder =
                         ImmutablePartitionedTimestamps.builder().myCommitTimestamp(commitTs);
+                MutableLongSet beforeStart = LongSets.mutable.empty();
+                MutableLongSet afterStart = LongSets.mutable.empty();
                 startTimestamps.forEach(startTimestamp -> {
                     if (startTimestamp == myStart) {
                         builder.splittingStartTimestamp(myStart);
                     } else if (startTimestamp < myStart) {
-                        builder.addBeforeStart(startTimestamp);
+                        beforeStart.add(startTimestamp);
                     } else {
-                        builder.addAfterStart(startTimestamp);
+                        afterStart.add(startTimestamp);
                     }
                 });
-
+                builder.beforeStart(beforeStart.asUnmodifiable());
+                builder.afterStart(afterStart.asUnmodifiable());
                 return builder.build();
             }
         };
@@ -1091,17 +1101,17 @@ public Map.Entry<Cell, byte[]> next() {
     interface PartitionedTimestamps {
         long myCommitTimestamp();
 
-        Set<Long> afterStart();
+        LongSet afterStart();
 
-        Set<Long> beforeStart();
+        LongSet beforeStart();
 
         OptionalLong splittingStartTimestamp();
 
         @Value.Derived
-        default Map<Long, Long> myCommittedTransaction() {
+        default LongLongMap myCommittedTransaction() {
             return splittingStartTimestamp().isPresent()
-                    ? ImmutableMap.of(splittingStartTimestamp().getAsLong(), myCommitTimestamp())
-                    : ImmutableMap.of();
+                    ? LongLongMaps.immutable.of(splittingStartTimestamp().getAsLong(), myCommitTimestamp())
+                    : LongLongMaps.immutable.empty();
         }
     }
 u}(j	 (94021705e4aace90e9cbd163bca595b68a7bbcadjF
 `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javajH
 modifiedj@
 K@jA
 K/jJ
 KojK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X,  @@ -189,6 +189,12 @@
 import javax.annotation.Nullable;
 import org.apache.commons.lang3.Validate;
 import org.apache.commons.lang3.tuple.Pair;
+import org.eclipse.collections.api.LongIterable;
+import org.eclipse.collections.api.factory.primitive.LongLists;
+import org.eclipse.collections.api.factory.primitive.LongSets;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
+import org.eclipse.collections.api.set.primitive.ImmutableLongSet;
+import org.eclipse.collections.api.set.primitive.LongSet;
 
 /**
  * This implements snapshot isolation for transactions.
@@ -1692,7 +1698,7 @@ private <T> ListenableFuture<Map<Cell, Value>> getWithPostFilteringInternal(
             AsyncKeyValueService asyncKeyValueService,
             AsyncTransactionService asyncTransactionService) {
         Set<Cell> orphanedSentinels = findOrphanedSweepSentinels(tableRef, rawResults);
-        Set<Long> valuesStartTimestamps = getStartTimestampsForValues(rawResults.values());
+        LongSet valuesStartTimestamps = getStartTimestampsForValues(rawResults.values());
 
         return Futures.transformAsync(
                 getCommitTimestamps(tableRef, valuesStartTimestamps, true, asyncTransactionService),
@@ -1714,7 +1720,7 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
             Function<Value, T> transformer,
             AsyncKeyValueService asyncKeyValueService,
             Set<Cell> orphanedSentinels,
-            Map<Long, Long> commitTimestamps) {
+            LongLongMap commitTimestamps) {
         Map<Cell, Long> keysToReload = Maps.newHashMapWithExpectedSize(0);
         Map<Cell, Long> keysToDelete = Maps.newHashMapWithExpectedSize(0);
         ImmutableSet.Builder<Cell> keysAddedBuilder = ImmutableSet.builder();
@@ -1745,8 +1751,9 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
                         throw new IllegalStateException("Invalid read sentinel behavior " + getReadSentinelBehavior());
                 }
             } else {
-                Long theirCommitTimestamp = commitTimestamps.get(value.getTimestamp());
-                if (theirCommitTimestamp == null || theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
+                long theirCommitTimestamp =
+                        commitTimestamps.getIfAbsent(value.getTimestamp(), TransactionConstants.FAILED_COMMIT_TS);
+                if (theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
                     keysToReload.put(key, value.getTimestamp());
                     if (shouldDeleteAndRollback()) {
                         // This is from a failed transaction so we can roll it back and then reload it.
@@ -2373,33 +2380,37 @@ protected Map<Cell, Long> detectWriteAlreadyCommittedInternal(
             @Output Set<CellConflict> spanningWrites,
             @Output Set<CellConflict> dominatingWrites,
             TransactionService transactionService) {
+        long startTs = getStartTimestamp();
         Map<Cell, Long> rawResults = keyValueService.getLatestTimestamps(tableRef, keysToLoad);
-        Map<Long, Long> commitTimestamps = getCommitTimestampsSync(tableRef, rawResults.values(), false);
+        LongLongMap commitTimestamps =
+                getCommitTimestampsSync(tableRef, LongLists.immutable.ofAll(rawResults.values()), false);
 
         // TODO(fdesouza): Remove this once PDS-95791 is resolved.
-        conflictTracer.collect(getStartTimestamp(), keysToLoad, rawResults, commitTimestamps);
+        conflictTracer.collect(startTs, keysToLoad, rawResults, commitTimestamps);
 
         Map<Cell, Long> keysToDelete = Maps.newHashMapWithExpectedSize(0);
 
         for (Map.Entry<Cell, Long> e : rawResults.entrySet()) {
             Cell key = e.getKey();
             long theirStartTimestamp = e.getValue();
-            AssertUtils.assertAndLog(
-                    log, theirStartTimestamp != getStartTimestamp(), "Timestamp reuse is bad:" + getStartTimestamp());
+            if (theirStartTimestamp == startTs) {
+                AssertUtils.assertAndLog(log, false, "Timestamp reuse is bad:" + startTs);
+            }
 
-            Long theirCommitTimestamp = commitTimestamps.get(theirStartTimestamp);
-            if (theirCommitTimestamp == null || theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
+            long theirCommitTimestamp =
+                    commitTimestamps.getIfAbsent(theirStartTimestamp, TransactionConstants.FAILED_COMMIT_TS);
+            if (theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
                 // The value has no commit timestamp or was explicitly rolled back.
                 // This means the value is garbage from a transaction which didn't commit.
                 keysToDelete.put(key, theirStartTimestamp);
                 continue;
+            } else if (theirCommitTimestamp == startTs) {
+                AssertUtils.assertAndLog(log, false, "Timestamp reuse is bad:" + startTs);
             }
 
-            AssertUtils.assertAndLog(
-                    log, theirCommitTimestamp != getStartTimestamp(), "Timestamp reuse is bad:" + getStartTimestamp());
-            if (theirStartTimestamp > getStartTimestamp()) {
+            if (theirStartTimestamp > startTs) {
                 dominatingWrites.add(Cells.createConflict(key, theirStartTimestamp, theirCommitTimestamp));
-            } else if (theirCommitTimestamp > getStartTimestamp()) {
+            } else if (theirCommitTimestamp > startTs) {
                 spanningWrites.add(Cells.createConflict(key, theirStartTimestamp, theirCommitTimestamp));
             }
         }
@@ -2424,30 +2435,37 @@ protected Map<Cell, Long> detectWriteAlreadyCommittedInternal(
     private boolean rollbackFailedTransactions(
             TableReference tableRef,
             Map<Cell, Long> keysToDelete,
-            Map<Long, Long> commitTimestamps,
+            LongLongMap commitTimestamps,
             TransactionService transactionService) {
-        for (long startTs : new HashSet<>(keysToDelete.values())) {
-            if (commitTimestamps.get(startTs) == null) {
-                log.warn("Rolling back transaction: {}", SafeArg.of("startTs", startTs));
-                if (!rollbackOtherTransaction(startTs, transactionService)) {
-                    return false;
+        ImmutableLongSet timestamps = LongSets.immutable.ofAll(keysToDelete.values());
+        boolean allRolledBack = timestamps.allSatisfy(startTs -> {
+            if (commitTimestamps.containsKey(startTs)) {
+                long commitTs = commitTimestamps.get(startTs);
+                if (commitTs != TransactionConstants.FAILED_COMMIT_TS) {
+                    throw new SafeIllegalArgumentException(
+                            "Cannot rollback already committed transaction",
+                            SafeArg.of("startTs", startTs),
+                            SafeArg.of("commitTs", commitTs));
                 }
-            } else {
-                Preconditions.checkArgument(commitTimestamps.get(startTs) == TransactionConstants.FAILED_COMMIT_TS);
+                return true;
             }
-        }
+            log.warn("Rolling back transaction: {}", SafeArg.of("startTs", startTs));
+            return rollbackOtherTransaction(startTs, transactionService);
+        });
 
-        try {
-            runTaskOnDeleteExecutor(kvs -> deleteCells(kvs, tableRef, keysToDelete));
-        } catch (RejectedExecutionException rejected) {
-            deleteExecutorRateLimitedLogger.log(logger -> logger.info(
-                    "Could not delete keys {} for table {}, because the delete executor's queue was full."
-                            + " Sweep should eventually clean these values.",
-                    SafeArg.of("numKeysToDelete", keysToDelete.size()),
-                    LoggingArgs.tableRef(tableRef),
-                    rejected));
+        if (allRolledBack) {
+            try {
+                runTaskOnDeleteExecutor(kvs -> deleteCells(kvs, tableRef, keysToDelete));
+            } catch (RejectedExecutionException rejected) {
+                deleteExecutorRateLimitedLogger.log(logger -> logger.info(
+                        "Could not delete keys {} for table {}, because the delete executor's queue was full."
+                                + " Sweep should eventually clean these values.",
+                        SafeArg.of("numKeysToDelete", keysToDelete.size()),
+                        LoggingArgs.tableRef(tableRef),
+                        rejected));
+            }
         }
-        return true;
+        return allRolledBack;
     }
 
     private static void deleteCells(
@@ -2533,9 +2551,9 @@ protected LockToken acquireLocksForCommit() {
         return lockResponse.getToken();
     }
 
-    protected ListenableFuture<Map<Long, Long>> getCommitTimestamps(
+    protected ListenableFuture<LongLongMap> getCommitTimestamps(
             TableReference tableRef,
-            Iterable<Long> startTimestamps,
+            LongIterable startTimestamps,
             boolean shouldWaitForCommitterToComplete,
             AsyncTransactionService asyncTransactionService) {
         return commitTimestampLoader.getCommitTimestamps(
@@ -2593,16 +2611,12 @@ protected Set<LockDescriptor> getLocksForWrites() {
     /// Commit timestamp management
     ///////////////////////////////////////////////////////////////////////////
 
-    private Set<Long> getStartTimestampsForValues(Iterable<Value> values) {
-        Set<Long> results = new HashSet<>();
-        for (Value v : values) {
-            results.add(v.getTimestamp());
-        }
-        return results;
+    private LongSet getStartTimestampsForValues(Iterable<Value> values) {
+        return LongSets.immutable.withAll(Streams.stream(values).mapToLong(Value::getTimestamp));
     }
 
-    private Map<Long, Long> getCommitTimestampsSync(
-            @Nullable TableReference tableRef, Iterable<Long> startTimestamps, boolean waitForCommitterToComplete) {
+    private LongLongMap getCommitTimestampsSync(
+            @Nullable TableReference tableRef, LongIterable startTimestamps, boolean waitForCommitterToComplete) {
         return AtlasFutures.getUnchecked(getCommitTimestamps(
                 tableRef, startTimestamps, waitForCommitterToComplete, immediateTransactionService));
     }
@@ -2671,11 +2685,14 @@ private void handleKeyAlreadyExistsException(
     }
 
     private boolean wasCommitSuccessful(long commitTs) {
-        Map<Long, Long> commitTimestamps =
-                getCommitTimestampsSync(null, Collections.singleton(getStartTimestamp()), false);
-        long storedCommit = commitTimestamps.get(getStartTimestamp());
+        long startTs = getStartTimestamp();
+        LongLongMap commitTimestamps = getCommitTimestampsSync(null, LongSets.immutable.of(startTs), false);
+        long storedCommit = commitTimestamps.get(startTs);
         if (storedCommit != commitTs && storedCommit != TransactionConstants.FAILED_COMMIT_TS) {
-            Validate.isTrue(false, "Commit value is wrong. startTs %s  commitTs: %s", getStartTimestamp(), commitTs);
+            throw new SafeIllegalArgumentException(
+                    "Commit value is wrong.",
+                    SafeArg.of("startTimestamp", startTs),
+                    SafeArg.of("commitTimestamp", commitTs));
         }
         return storedCommit == commitTs;
     }u      }(j	 (7be5d7230e4143dea05fe8a584a1a0dcb0d8db39jF
 fatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoaderTest.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -24,7 +24,6 @@
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
 
-import com.google.common.collect.ImmutableList;
 import com.google.common.util.concurrent.Futures;
 import com.palantir.atlasdb.cache.TimestampCache;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
@@ -40,9 +39,10 @@
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.ExecutionException;
+import org.eclipse.collections.api.factory.primitive.LongLists;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
 import org.junit.Test;
 
 public class CommitTimestampLoaderTest {
@@ -96,7 +96,7 @@ public void throwIfTTSBeyondReadOnlyForSweptTTSCell() {
 
         assertThatExceptionOfType(ExecutionException.class)
                 .isThrownBy(() -> commitTimestampLoader
-                        .getCommitTimestamps(TABLE_REF, ImmutableList.of(startTs), false, transactionService)
+                        .getCommitTimestamps(TABLE_REF, LongLists.immutable.of(startTs), false, transactionService)
                         .get())
                 .withRootCauseInstanceOf(SafeIllegalStateException.class)
                 .withMessageContaining("Sweep has swept some entries with a commit TS after us");
@@ -182,10 +182,10 @@ public void doesNotCacheUnknownTransactions() throws ExecutionException, Interru
 
     private void assertCanGetCommitTs(long startTs, long commitTs, CommitTimestampLoader commitTimestampLoader)
             throws InterruptedException, ExecutionException {
-        Map<Long, Long> loadedCommitTs = commitTimestampLoader
-                .getCommitTimestamps(TABLE_REF, ImmutableList.of(startTs), false, transactionService)
+        LongLongMap loadedCommitTs = commitTimestampLoader
+                .getCommitTimestamps(TABLE_REF, LongLists.immutable.of(startTs), false, transactionService)
                 .get();
-        assertThat(loadedCommitTs).hasSize(1);
+        assertThat(loadedCommitTs.size()).isEqualTo(1);
         assertThat(loadedCommitTs.get(startTs)).isEqualTo(commitTs);
     }
 u}(j	 (a251b92eabd208ac88784e2fdc765f1f810ce9fbjF
 patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 Xx  @@ -130,7 +130,7 @@ public void allRelevantCellsAreRecordedForFullColumnScan() {
                         .isInstanceOfSatisfying(
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
-                                        .isEqualTo(IntStream.range(0, iterationCount)
+                                        .containsExactlyElementsOf(IntStream.range(0, iterationCount)
                                                 .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
                                                 .collect(Collectors.toList()))));
     }
@@ -158,7 +158,7 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
                         .isInstanceOfSatisfying(
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
-                                        .isEqualTo(IntStream.range(startInclusive, endExclusive)
+                                        .containsExactlyElementsOf(IntStream.range(startInclusive, endExclusive)
                                                 .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
                                                 .collect(Collectors.toList()))));
     }u}(j	 (8662e0582f5aff3fdfa81d6e33ab22e4049363f9jF
 qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflowTest.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -101,7 +101,7 @@ public void writesThenDeletes() {
 
         List<WitnessedTransaction> transactions = workflow.run().history();
 
-        assertThat(transactions.size()).isEqualTo(4);
+        assertThat(transactions).hasSize(4);
         assertWriteTransaction(transactions.get(0), 0);
         assertDeleteTransaction(transactions.get(1), 0);
         assertWriteTransaction(transactions.get(2), 1);u}(j	 (f5acd046834792f42b2401b67305dfa6f3509572jF
 build.gradlejH
 modifiedj@
 KjA
 KjJ
 KjK
 ^https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/build.gradlejM
 ]https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/build.gradlejO
 phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -7,20 +7,20 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.4'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.6'
         classpath 'com.netflix.nebula:nebula-publishing-plugin:20.3.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.39.0'
-        classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.41.0'
+        classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.13.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
-        classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.34.0'
+        classpath 'com.palantir.metricschema:gradle-metric-schema:0.22.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
-        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.3'
+        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.4'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
         classpath 'gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1'
         classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'u}(j	 (95dbc0937d276331c37eb26d73abac99d86081a9jF
  changelog/0.900.0/pr-6665.v2.ymljH
 addedj@
 KjA
 K jJ
 KjK
 vhttps://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/changelog%2F0.900.0%2Fpr-6665.v2.ymljM
 uhttps://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/changelog%2F0.900.0%2Fpr-6665.v2.ymljO
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.900.0%2Fpr-6665.v2.yml?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add metadata metrics to TimeLock'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6665u}(j	 (0ec771af62ea2a6ddaf5d9b6139d48293d4a25a7jF
  changelog/0.901.0/pr-6640.v2.ymljH
 addedj@
 KjA
 K jJ
 KjK
 vhttps://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/changelog%2F0.901.0%2Fpr-6640.v2.ymljM
 uhttps://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/changelog%2F0.901.0%2Fpr-6640.v2.ymljO
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.901.0%2Fpr-6640.v2.yml?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Transaction impls use Eclipse primitive collections for in-memory transaction
+    tracking
+  links:
+  - https://github.com/palantir/atlasdb/pull/6640u}(j	 (529fa046cce7dd2027f9b419812813bb3a2540a8jF
  changelog/0.901.0/pr-6676.v2.ymljH
 addedj@
 KjA
 K jJ
 KjK
 vhttps://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/changelog%2F0.901.0%2Fpr-6676.v2.ymljM
 uhttps://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/changelog%2F0.901.0%2Fpr-6676.v2.ymljO
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.901.0%2Fpr-6676.v2.yml?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 XE  @@ -0,0 +1,8 @@
+type: improvement
+improvement:
+  description: |-
+    Optimize sweep write partitioning
+
+    Reduce allocations when processing large volumes of writes in sweep by avoiding intermediate collections and performing single passes on partitioning.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6676u}(j	 (c496eeef07c431ee355d88f1ca7abecdff679476jF
  changelog/0.901.0/pr-6677.v2.ymljH
 addedj@
 K	jA
 K jJ
 K	jK
 vhttps://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/changelog%2F0.901.0%2Fpr-6677.v2.ymljM
 uhttps://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/changelog%2F0.901.0%2Fpr-6677.v2.ymljO
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.901.0%2Fpr-6677.v2.yml?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X/  @@ -0,0 +1,9 @@
+type: improvement
+improvement:
+  description: "Reuse notLatestVisibleValueCellFilterCounter \n\nAvoid expensive metric
+    name computation for each value extraction by\nregistering the notLatestVisibleValueCellFilterCounter
+    once and reusing\nit throughout the lifetime.\n\nNote that this includes several
+    internal API changes; however, these\nshould not be an issue for any known AtlasDB
+    consumers.\n\nCellLoader.loadWithTs minimizes unobserved tracing overhead"
+  links:
+  - https://github.com/palantir/atlasdb/pull/6677u}(j	 (fee58d12969ff103787c5364360b6099175e95ebjF
  changelog/0.902.0/pr-6678.v2.ymljH
 addedj@
 KjA
 K jJ
 KjK
 vhttps://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/changelog%2F0.902.0%2Fpr-6678.v2.ymljM
 uhttps://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/changelog%2F0.902.0%2Fpr-6678.v2.ymljO
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.902.0%2Fpr-6678.v2.yml?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Bump CI to Oracle 19.20
+  links:
+  - https://github.com/palantir/atlasdb/pull/6678u}(j	 (cff52dc50fc6337a027d771d49cd4ea9c634d6ecjF
  changelog/0.903.0/pr-6673.v2.ymljH
 addedj@
 KjA
 K jJ
 KjK
 vhttps://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/changelog%2F0.903.0%2Fpr-6673.v2.ymljM
 uhttps://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/changelog%2F0.903.0%2Fpr-6673.v2.ymljO
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.903.0%2Fpr-6673.v2.yml?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 @@ -0,0 +1,6 @@
+type: feature
+feature:
+  description: AtlasDB no longer register timelock endpoints when using single-node
+    embedded timelock.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6673u}(j	 (7a91f7592f47ecc1f882f17bdc496678ee21aac3jF
  changelog/0.907.0/pr-6688.v2.ymljH
 addedj@
 KjA
 K jJ
 KjK
 vhttps://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/changelog%2F0.907.0%2Fpr-6688.v2.ymljM
 uhttps://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/changelog%2F0.907.0%2Fpr-6688.v2.ymljO
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.907.0%2Fpr-6688.v2.yml?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 @@ -0,0 +1,6 @@
+type: fix
+fix:
+  description: add netty-handler as a direct dependency so that downstream projects
+    resolve the correct version
+  links:
+  - https://github.com/palantir/atlasdb/pull/6688u}(j	 (afba109285af78dbd2a1d187e33ac4f87c76e392jF
 !gradle/wrapper/gradle-wrapper.jarjH
 modifiedj@
 K jA
 K jJ
 K jK
 whttps://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/gradle%2Fwrapper%2Fgradle-wrapper.jarjM
 vhttps://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/gradle%2Fwrapper%2Fgradle-wrapper.jarjO
 https://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fwrapper%2Fgradle-wrapper.jar?ref=ad4d98488bd0a38b6fbb89d323346f0906d021feu}(j	 (4e86b9270786fb25deb2931bfa2e777799ec2a25jF
 (gradle/wrapper/gradle-wrapper.propertiesjH
 modifiedj@
 KjA
 KjJ
 KjK
 ~https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/gradle%2Fwrapper%2Fgradle-wrapper.propertiesjM
 }https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/gradle%2Fwrapper%2Fgradle-wrapper.propertiesjO
 https://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fwrapper%2Fgradle-wrapper.properties?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 XC  @@ -1,6 +1,6 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip
 networkTimeout=10000
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/distsu}(j	 (b5f796ab3477670b4547dbda5fd7b6989458a0fcjF
 Ilock-impl/src/main/java/com/palantir/lock/logger/LockStateYamlWriter.javajH
 removedj@
 K jA
 KbjJ
 KbjK
 https://github.com/palantir/atlasdb/blob/82da62a5b5b233a9801a68e245c803eef8a2c9a4/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockStateYamlWriter.javajM
 https://github.com/palantir/atlasdb/raw/82da62a5b5b233a9801a68e245c803eef8a2c9a4/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockStateYamlWriter.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockStateYamlWriter.java?ref=82da62a5b5b233a9801a68e245c803eef8a2c9a4jQ
 X
  @@ -1,98 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.lock.logger;
-
-import com.palantir.lock.LockDescriptor;
-import java.io.Closeable;
-import java.io.File;
-import java.io.IOException;
-import java.io.Writer;
-import java.nio.charset.StandardCharsets;
-import java.nio.file.Files;
-import java.nio.file.StandardOpenOption;
-import org.yaml.snakeyaml.DumperOptions;
-import org.yaml.snakeyaml.Yaml;
-import org.yaml.snakeyaml.nodes.Tag;
-import org.yaml.snakeyaml.representer.Representer;
-
-/**
- * A simple wrapper for writing lock state as YAML to a file.
- */
-class LockStateYamlWriter implements Closeable {
-    private static final Yaml yaml = new Yaml(getRepresenter(), getDumperOptions());
-
-    private final Writer writer;
-
-    LockStateYamlWriter(Writer fileWriter) {
-        this.writer = fileWriter;
-    }
-
-    /**
-     * Creates a LockStateYamlWriter for the given file in append mode.
-     */
-    public static LockStateYamlWriter create(File file) throws IOException {
-        return new LockStateYamlWriter(Files.newBufferedWriter(
-                file.toPath(), StandardCharsets.UTF_8, StandardOpenOption.CREATE, StandardOpenOption.APPEND));
-    }
-
-    /**
-     * Write an object to the file as YAML.
-     */
-    public void dumpObject(Object data) {
-        yaml.dump(data, writer);
-    }
-
-    /**
-     * Write a string to the file as a YAML comment.
-     * The string must be a single line.
-     */
-    public void appendComment(String string) throws IOException {
-        writer.append("# ");
-        writer.append(string);
-        writer.append("\n");
-    }
-
-    private static Representer getRepresenter() {
-        Representer representer = new LockDescriptorAwareRepresenter();
-        representer.addClassTag(ImmutableSimpleTokenInfo.class, Tag.MAP);
-        representer.addClassTag(ImmutableSimpleLockRequest.class, Tag.MAP);
-        representer.addClassTag(ImmutableSanitizedLockRequestProgress.class, Tag.MAP);
-        representer.addClassTag(SimpleLockRequestsWithSameDescriptor.class, Tag.MAP);
-        representer.addClassTag(LockDescriptor.class, Tag.MAP);
-        return representer;
-    }
-
-    private static DumperOptions getDumperOptions() {
-        DumperOptions options = new DumperOptions();
-        options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
-        options.setIndent(4);
-        options.setAllowReadOnlyProperties(true);
-        options.setExplicitStart(true);
-        return options;
-    }
-
-    @Override
-    public void close() throws IOException {
-        writer.close();
-    }
-
-    private static class LockDescriptorAwareRepresenter extends Representer {
-        LockDescriptorAwareRepresenter() {
-            super();
-            this.representers.put(LockDescriptor.class, data -> representScalar(Tag.STR, data.toString()));
-        }
-    }
-}u}(j	 (03e1ff19bb39c0ec79ee29033b2ebfb1c90ec09bjF
 btimelock-agent/src/main/java/com/palantir/timelock/ServiceDiscoveringDatabaseTimeLockSupplier.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplier.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplier.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplier.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -19,7 +19,6 @@
 import com.google.common.base.Suppliers;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.factory.AtlasDbServiceDiscovery;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
@@ -49,11 +48,10 @@ public ServiceDiscoveringDatabaseTimeLockSupplier(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean initializeAsync) {
         DbTimeLockFactory dbTimeLockFactory = AtlasDbServiceDiscovery.createDbTimeLockFactoryOfCorrectType(config);
-        keyValueService = Suppliers.memoize(() -> dbTimeLockFactory.createRawKeyValueService(
-                metricsManager, config, runtimeConfig, leaderConfig, initializeAsync));
+        keyValueService = Suppliers.memoize(() ->
+                dbTimeLockFactory.createRawKeyValueService(metricsManager, config, runtimeConfig, initializeAsync));
         timestampServiceFactory = creationSetting -> dbTimeLockFactory.createManagedTimestampService(
                 keyValueService.get(), creationSetting, initializeAsync);
         timestampSeriesProvider = tableRef ->u}(j	 (9f4ca09c90e7cf8f9a893b182c9bb43cfe0be85fjF
 Ztimelock-agent/src/main/java/com/palantir/timelock/paxos/AsyncTimeLockServicesCreator.javajH
 modifiedj@
 K	jA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -24,6 +24,8 @@
 import com.palantir.atlasdb.timelock.lock.AsyncLockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.atlasdb.timelock.lock.NonTransactionalLockService;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
 import com.palantir.atlasdb.timelock.paxos.LeadershipComponents;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.concurrent.NamedThreadFactory;
@@ -94,9 +96,14 @@ private AsyncTimelockService createRawAsyncTimelockService(
                 metricsManager.getRegistry(),
                 "async-lock-timeouts");
         return new AsyncTimelockServiceImpl(
-                AsyncLockService.createDefault(maybeEnhancedLockLog, reaperExecutor, timeoutExecutor),
+                AsyncLockService.createDefault(
+                        maybeEnhancedLockLog,
+                        reaperExecutor,
+                        timeoutExecutor,
+                        BufferMetrics.of(metricsManager.getTaggedRegistry())),
                 timestampServiceSupplier.get(),
-                maybeEnhancedLockLog);
+                maybeEnhancedLockLog,
+                RequestMetrics.of(metricsManager.getTaggedRegistry()));
     }
 
     /**u}(j	 (67fff0cb73fea18f882abfc897fad053face2cf4jF
 Utimelock-agent/src/main/java/com/palantir/timelock/paxos/DbBoundTimestampCreator.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FDbBoundTimestampCreator.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FDbBoundTimestampCreator.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FDbBoundTimestampCreator.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 XB  @@ -18,7 +18,6 @@
 import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
 import com.palantir.paxos.Client;
 import com.palantir.timelock.ServiceDiscoveringDatabaseTimeLockSupplier;
@@ -35,7 +34,7 @@ public DbBoundTimestampCreator(
     }
 
     @Override
-    public Supplier<ManagedTimestampService> createTimestampService(Client client, LeaderConfig leaderConfig) {
+    public Supplier<ManagedTimestampService> createTimestampService(Client client) {
         return () -> serviceDiscoveringDatabaseTimeLockSupplier.getManagedTimestampService(
                 getTimestampCreationParameters(client));
     }u}(j	 (6a079ccf904035895dc3706a491d2647bcd7900djF
 Stimelock-agent/src/main/java/com/palantir/timelock/paxos/PaxosTimestampCreator.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FPaxosTimestampCreator.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FPaxosTimestampCreator.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FPaxosTimestampCreator.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -15,7 +15,6 @@
  */
 package com.palantir.timelock.paxos;
 
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.timelock.paxos.NetworkClientFactories;
 import com.palantir.paxos.Client;
 import com.palantir.timestamp.ManagedTimestampService;
@@ -29,7 +28,7 @@ public class PaxosTimestampCreator implements TimestampCreator {
     }
 
     @Override
-    public Supplier<ManagedTimestampService> createTimestampService(Client client, LeaderConfig unused) {
+    public Supplier<ManagedTimestampService> createTimestampService(Client client) {
         return () -> timestampServiceFactory.create(client);
     }
 u}(j	 (26ffe31b9e2575d9a3aee3ac2c3795d73e01dd5cjF
 Ktimelock-agent/src/main/java/com/palantir/timelock/paxos/TimeLockAgent.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -15,19 +15,13 @@
  */
 package com.palantir.timelock.paxos;
 
-import static com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants.ACCEPTOR_SUBDIRECTORY_PATH;
-import static com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants.LEADER_PAXOS_NAMESPACE;
-import static com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants.LEARNER_SUBDIRECTORY_PATH;
-
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
 import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
-import com.palantir.atlasdb.config.ImmutableLeaderConfig;
 import com.palantir.atlasdb.config.ImmutableServerListConfig;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.config.RemotingClientConfigs;
 import com.palantir.atlasdb.config.ServerListConfig;
 import com.palantir.atlasdb.http.BlockingTimeoutExceptionMapper;
@@ -93,7 +87,6 @@
 import com.palantir.timestamp.ManagedTimestampService;
 import com.zaxxer.hikari.HikariDataSource;
 import java.net.URL;
-import java.nio.file.Path;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
@@ -287,7 +280,6 @@ private TimestampStorage createDatabaseTimestampStorage(
                 metricsManager,
                 timestampBoundPersistence.keyValueServiceConfig(),
                 runtime.map(TimeLockAgent::getKeyValueServiceRuntimeConfig),
-                createLeaderConfig(),
                 timestampBoundPersistence.initializeAsync());
         return ImmutableTimestampStorage.builder()
                 .timestampCreator(new DbBoundTimestampCreator(dbTimeLockSupplier))
@@ -570,34 +562,14 @@ RedirectRetryTargeter redirectRetryTargeter() {
      * @return Invalidating timestamp and lock services
      */
     public TimeLockServices createInvalidatingTimeLockServices(String client) {
-        LeaderConfig leaderConfig = createLeaderConfig();
-
         Client typedClient = Client.of(client);
 
         Supplier<ManagedTimestampService> rawTimestampServiceSupplier =
-                timestampStorage.timestampCreator().createTimestampService(typedClient, leaderConfig);
+                timestampStorage.timestampCreator().createTimestampService(typedClient);
         Supplier<LockService> rawLockServiceSupplier = lockCreator::createThreadPoolingLockService;
         return timelockCreator.createTimeLockServices(typedClient, rawTimestampServiceSupplier, rawLockServiceSupplier);
     }
 
-    private LeaderConfig createLeaderConfig() {
-        List<String> uris = cluster.clusterMembers();
-        Path leaderPaxosDataDirectory = install.paxos().dataDirectory().toPath().resolve(LEADER_PAXOS_NAMESPACE);
-
-        return ImmutableLeaderConfig.builder()
-                .addLeaders(uris.toArray(new String[0]))
-                .localServer(cluster.localServer())
-                .sslConfiguration(PaxosRemotingUtils.getSslConfigurationOptional(cluster))
-                .quorumSize(PaxosRemotingUtils.getQuorumSize(uris))
-                .learnerLogDir(leaderPaxosDataDirectory
-                        .resolve(LEARNER_SUBDIRECTORY_PATH)
-                        .toFile())
-                .acceptorLogDir(leaderPaxosDataDirectory
-                        .resolve(ACCEPTOR_SUBDIRECTORY_PATH)
-                        .toFile())
-                .build();
-    }
-
     public HealthStatusReport timeLockAdjudicationFeedback() {
         return feedbackHandler.getTimeLockHealthStatus();
     }u}(j	 (0f2c1df56bad08127cb2d5a035c597cdd96e3b20jF
 Ntimelock-agent/src/main/java/com/palantir/timelock/paxos/TimestampCreator.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimestampCreator.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimestampCreator.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimestampCreator.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X
  @@ -15,13 +15,12 @@
  */
 package com.palantir.timelock.paxos;
 
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.paxos.Client;
 import com.palantir.timestamp.ManagedTimestampService;
 import java.util.function.Supplier;
 
 public interface TimestampCreator extends AutoCloseable {
-    Supplier<ManagedTimestampService> createTimestampService(Client client, LeaderConfig leaderConfig);
+    Supplier<ManagedTimestampService> createTimestampService(Client client);
 
     @Override
     void close();u}(j	 (37cb9e1dd5d4d778cebc3d4cd60e5120d14a3a28jF
 ftimelock-agent/src/test/java/com/palantir/timelock/ServiceDiscoveringDatabaseTimeLockSupplierTest.javajH
 modifiedj@
 KjA
 K	jJ
 K
jK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplierTest.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplierTest.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplierTest.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -19,11 +19,8 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
-import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.ImmutableLeaderConfig;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeriesProvider;
@@ -43,15 +40,10 @@ public class ServiceDiscoveringDatabaseTimeLockSupplierTest {
 
     private final MetricsManager metricsManager = MetricsManagers.createForTests();
     private final KeyValueServiceConfig keyValueServiceConfig = new InMemoryAtlasDbConfig();
-    private final LeaderConfig leaderConfig = ImmutableLeaderConfig.builder()
-            .localServer("me")
-            .leaders(ImmutableList.of("me"))
-            .quorumSize(1)
-            .build();
 
     private final ServiceDiscoveringDatabaseTimeLockSupplier timeLockSupplier =
             new ServiceDiscoveringDatabaseTimeLockSupplier(
-                    metricsManager, keyValueServiceConfig, Refreshable.only(Optional.empty()), leaderConfig, false);
+                    metricsManager, keyValueServiceConfig, Refreshable.only(Optional.empty()), false);
 
     @Test
     public void canGetTimestampServiceForDifferentSeries() {u}(j	 (a31b55bb26484c1c29dbf7dfa1fb463fb2596558jF
 timelock-impl/build.gradlejH
 modifiedj@
 KjA
 K jJ
 KjK
 nhttps://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fbuild.gradlejM
 mhttps://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fbuild.gradlejO
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fbuild.gradle?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -1,4 +1,5 @@
 apply plugin: 'org.unbroken-dome.test-sets'
+apply plugin: 'com.palantir.metric-schema'
 
 apply from: "../gradle/shared.gradle"
 apply from: "../gradle/tests.gradle"
@@ -102,3 +103,8 @@ dependencies {
     testAnnotationProcessor 'org.immutables:value'
     testCompileOnly 'org.immutables:value::annotations'
 }
+
+license {
+    exclude '**/RequestMetrics.java'
+    exclude '**/BufferMetrics.java'
+}u}(j	 (9621a8f2b663bdf3ad29791637809be64ba5a328jF
 Wtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/AsyncTimelockServiceImpl.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X	  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.timelock;
 
+import com.codahale.metrics.Histogram;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.SettableFuture;
@@ -29,6 +30,7 @@
 import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.atlasdb.timelock.lock.TimeLimit;
 import com.palantir.atlasdb.timelock.lock.watch.ValueAndLockWatchStateUpdate;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
 import com.palantir.atlasdb.timelock.transaction.timestamp.DelegatingClientAwareManagedTimestampService;
 import com.palantir.atlasdb.timelock.transaction.timestamp.LeadershipGuardedClientAwareManagedTimestampService;
 import com.palantir.lock.LockDescriptor;
@@ -62,9 +64,14 @@ public class AsyncTimelockServiceImpl implements AsyncTimelockService {
     private final AsyncLockService lockService;
     private final LeadershipGuardedClientAwareManagedTimestampService timestampService;
     private final LockLog lockLog;
+    private final Histogram changeMetadataHistogram;
 
     public AsyncTimelockServiceImpl(
-            AsyncLockService lockService, ManagedTimestampService timestampService, LockLog lockLog) {
+            AsyncLockService lockService,
+            ManagedTimestampService timestampService,
+            LockLog lockLog,
+            RequestMetrics metadataMetrics) {
+        this.changeMetadataHistogram = metadataMetrics.changeMetadata();
         this.lockService = lockService;
         this.timestampService = new LeadershipGuardedClientAwareManagedTimestampService(
                 DelegatingClientAwareManagedTimestampService.createDefault(timestampService));
@@ -106,6 +113,9 @@ public ListenableFuture<LockResponseV2> lock(IdentifiedLockRequest request) {
                 request.getLockDescriptors(),
                 TimeLimit.of(request.getAcquireTimeoutMs()),
                 request.getMetadata());
+        changeMetadataHistogram.update(request.getMetadata()
+                .map(metadata -> metadata.lockDescriptorToChangeMetadata().size())
+                .orElse(0));
         lockLog.registerRequest(request, result);
         SettableFuture<LockResponseV2> response = SettableFuture.create();
         result.onComplete(() -> {u}(j	 (d8fdf17d283ce2a18ecc0180c5fd05954b43ce29jF
 Ttimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/AsyncLockService.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X^  @@ -19,6 +19,7 @@
 import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingService;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingServiceImpl;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LeaderTime;
 import com.palantir.lock.v2.LockToken;
@@ -58,12 +59,15 @@ public class AsyncLockService implements Closeable {
      * @return an asynchronous lock service
      */
     public static AsyncLockService createDefault(
-            LockLog lockLog, ScheduledExecutorService reaperExecutor, ScheduledExecutorService timeoutExecutor) {
+            LockLog lockLog,
+            ScheduledExecutorService reaperExecutor,
+            ScheduledExecutorService timeoutExecutor,
+            BufferMetrics bufferMetrics) {
 
         LeaderClock clock = LeaderClock.create();
 
         HeldLocksCollection heldLocks = HeldLocksCollection.create(clock);
-        LockWatchingService lockWatchingService = new LockWatchingServiceImpl(heldLocks, clock.id());
+        LockWatchingService lockWatchingService = new LockWatchingServiceImpl(heldLocks, clock.id(), bufferMetrics);
         LockAcquirer lockAcquirer = new LockAcquirer(lockLog, timeoutExecutor, clock, lockWatchingService);
 
         return new AsyncLockService(u}(j	 (5cce128c5d57690a5875d483a761058f6a0b4ceejF
 etimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/ArrayLockEventSlidingWindow.javajH
 modifiedj@
 K0jA
 KjJ
 K2jK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindow.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindow.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindow.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -16,9 +16,15 @@
 
 package com.palantir.atlasdb.timelock.lock.watch;
 
+import com.codahale.metrics.Counter;
 import com.google.common.math.LongMath;
 import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
+import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
+import com.palantir.lock.watch.UnlockEvent;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Optional;
@@ -29,10 +35,14 @@ public class ArrayLockEventSlidingWindow {
     private final LockWatchEvent[] buffer;
     private final int maxSize;
     private long nextSequence = 0;
+    private final Counter changeMetadataCounter;
+    private final Counter eventsWithMetadataCounter;
 
-    ArrayLockEventSlidingWindow(int maxSize) {
+    ArrayLockEventSlidingWindow(int maxSize, BufferMetrics bufferMetrics) {
         this.buffer = new LockWatchEvent[maxSize];
         this.maxSize = maxSize;
+        this.changeMetadataCounter = bufferMetrics.changeMetadata();
+        this.eventsWithMetadataCounter = bufferMetrics.eventsWithMetadata();
     }
 
     long lastVersion() {
@@ -41,10 +51,27 @@ long lastVersion() {
 
     void add(LockWatchEvent.Builder eventBuilder) {
         LockWatchEvent event = eventBuilder.build(nextSequence);
-        buffer[LongMath.mod(nextSequence, maxSize)] = event;
+        int index = LongMath.mod(nextSequence, maxSize);
+
+        Optional.ofNullable(buffer[index])
+                .flatMap(replacedEvent -> replacedEvent.accept(LockWatchEventMetadataVisitor.INSTANCE))
+                .ifPresent(this::decrementMetadataCounters);
+        event.accept(LockWatchEventMetadataVisitor.INSTANCE).ifPresent(this::incrementMetadataCounters);
+
+        buffer[index] = event;
         nextSequence++;
     }
 
+    private void incrementMetadataCounters(LockRequestMetadata metadata) {
+        changeMetadataCounter.inc(metadata.lockDescriptorToChangeMetadata().size());
+        eventsWithMetadataCounter.inc();
+    }
+
+    private void decrementMetadataCounters(LockRequestMetadata metadata) {
+        changeMetadataCounter.dec(metadata.lockDescriptorToChangeMetadata().size());
+        eventsWithMetadataCounter.dec();
+    }
+
     public Optional<List<LockWatchEvent>> getNextEvents(long version) {
         if (versionInTheFuture(version) || versionTooOld(version)) {
             return Optional.empty();
@@ -72,4 +99,23 @@ private boolean versionInTheFuture(long version) {
     private boolean versionTooOld(long version) {
         return lastVersion() - version > maxSize;
     }
+
+    private enum LockWatchEventMetadataVisitor implements LockWatchEvent.Visitor<Optional<LockRequestMetadata>> {
+        INSTANCE;
+
+        @Override
+        public Optional<LockRequestMetadata> visit(LockEvent lockEvent) {
+            return lockEvent.metadata();
+        }
+
+        @Override
+        public Optional<LockRequestMetadata> visit(UnlockEvent unlockEvent) {
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<LockRequestMetadata> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
+            return Optional.empty();
+        }
+    }
 }u}(j	 (bca869f56d71be63d77a6b2c8b65c3bbe2af41c8jF
 Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImpl.javajH
 modifiedj@
 K	jA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 Xm  @@ -19,6 +19,7 @@
 import com.google.common.collect.RangeSet;
 import com.palantir.atlasdb.timelock.lock.AsyncLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.watch.LockEvent;
@@ -38,12 +39,17 @@
 
 public class LockEventLogImpl implements LockEventLog {
     private final UUID logId;
-    private final ArrayLockEventSlidingWindow slidingWindow = new ArrayLockEventSlidingWindow(1000);
+    private final ArrayLockEventSlidingWindow slidingWindow;
     private final Supplier<LockWatches> watchesSupplier;
     private final HeldLocksCollection heldLocksCollection;
 
-    LockEventLogImpl(UUID logId, Supplier<LockWatches> watchesSupplier, HeldLocksCollection heldLocksCollection) {
+    LockEventLogImpl(
+            UUID logId,
+            Supplier<LockWatches> watchesSupplier,
+            HeldLocksCollection heldLocksCollection,
+            BufferMetrics bufferMetrics) {
         this.logId = logId;
+        this.slidingWindow = new ArrayLockEventSlidingWindow(1000, bufferMetrics);
         this.watchesSupplier = watchesSupplier;
         this.heldLocksCollection = heldLocksCollection;
     }
@@ -64,6 +70,7 @@ public synchronized <T> ValueAndLockWatchStateUpdate<T> runTask(
     @Override
     public synchronized void logLock(
             Set<LockDescriptor> locksTakenOut, LockToken lockToken, Optional<LockRequestMetadata> metadata) {
+
         slidingWindow.add(LockEvent.builder(locksTakenOut, lockToken, metadata));
     }
 u}(j	 (64e2e75476f17ef9c28864338c16eb43bc5cd443jF
 atimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javajH
 modifiedj@
 KjA
 KjJ
 K
jK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -22,6 +22,7 @@
 import com.google.common.collect.TreeRangeSet;
 import com.palantir.atlasdb.timelock.api.LockWatchRequest;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LeadershipId;
@@ -72,13 +73,14 @@ public class LockWatchingServiceImpl implements LockWatchingService {
     private final AtomicReference<LockWatches> watches = new AtomicReference<>(LockWatches.create());
     private final ReadWriteLock watchesLock = new ReentrantReadWriteLock(true);
 
-    public LockWatchingServiceImpl(HeldLocksCollection heldLocksCollection, LeadershipId leadershipId) {
-        this(leadershipId.id(), heldLocksCollection);
+    public LockWatchingServiceImpl(
+            HeldLocksCollection heldLocksCollection, LeadershipId leadershipId, BufferMetrics lockWatchMetrics) {
+        this(leadershipId.id(), heldLocksCollection, lockWatchMetrics);
     }
 
     @VisibleForTesting
-    LockWatchingServiceImpl(UUID logId, HeldLocksCollection heldLocksCollection) {
-        this.lockEventLog = new LockEventLogImpl(logId, watches::get, heldLocksCollection);
+    LockWatchingServiceImpl(UUID logId, HeldLocksCollection heldLocksCollection, BufferMetrics lockWatchMetrics) {
+        this.lockEventLog = new LockEventLogImpl(logId, watches::get, heldLocksCollection, lockWatchMetrics);
     }
 
     @Overrideu}(j	 (1bda947c93dfade6c8d6e97379c8ca0fa7fed706jF
 .timelock-impl/src/main/metrics/lockwatches.ymljH
 addedj@
 KjA
 K jJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Flockwatches.ymljM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Flockwatches.ymljO
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Flockwatches.yml?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -0,0 +1,20 @@
+options:
+  javaPackage: 'com.palantir.atlasdb.timelock.lockwatches'
+
+namespaces:
+  request:
+    docs: Metrics tracking LockWatch-related things in requests received by TimeLock
+    metrics:
+      changeMetadata:
+        docs: Number of change metadata objects contained in a lock request
+        type: histogram
+  buffer:
+    docs: Metrics tracking things currently stored in the LockWatchEvent buffer (sliding window)
+    metrics:
+      eventsWithMetadata:
+        docs: Number of events currently stored in the buffer that have non-absent metadata
+        type: counter
+      changeMetadata:
+        docs: Total number of change metadata objects currently stored in the buffer across all events
+        type: counter
+u}(j	 (d612d1bb1d5eea09655d460bf0f0ad1077579a6djF
 [timelock-impl/src/test/java/com/palantir/atlasdb/timelock/AsyncTimelockServiceImplTest.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImplTest.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImplTest.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImplTest.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -21,15 +21,16 @@
 
 import com.palantir.atlasdb.timelock.lock.AsyncLockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
 import com.palantir.timestamp.ManagedTimestampService;
 import org.junit.Test;
 
 public class AsyncTimelockServiceImplTest {
     @Test
     public void delegatesInitializationCheck() {
         ManagedTimestampService mockMts = mock(ManagedTimestampService.class);
-        AsyncTimelockServiceImpl service =
-                new AsyncTimelockServiceImpl(mock(AsyncLockService.class), mockMts, mock(LockLog.class));
+        AsyncTimelockServiceImpl service = new AsyncTimelockServiceImpl(
+                mock(AsyncLockService.class), mockMts, mock(LockLog.class), mock(RequestMetrics.class));
         when(mockMts.isInitialized()).thenReturn(false).thenReturn(true);
 
         assertThat(service.isInitialized()).isFalse();u}(j	 (b88b9f6eb2608d0c4d5fa96c20f636f1dc76adbdjF
 Xtimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/AsyncLockServiceTest.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -18,6 +18,8 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.concurrent.ScheduledExecutorService;
@@ -29,8 +31,12 @@ public class AsyncLockServiceTest {
     public void executorsShutDownAfterClose() {
         ScheduledExecutorService reaperExecutor = PTExecutors.newSingleThreadScheduledExecutor();
         ScheduledExecutorService timeoutExecutor = PTExecutors.newSingleThreadScheduledExecutor();
+        MetricsManager metricsManager = MetricsManagers.createForTests();
         AsyncLockService asyncLockService = AsyncLockService.createDefault(
-                new LockLog(MetricsManagers.createForTests().getRegistry(), () -> 1L), reaperExecutor, timeoutExecutor);
+                new LockLog(metricsManager.getRegistry(), () -> 1L),
+                reaperExecutor,
+                timeoutExecutor,
+                BufferMetrics.of(metricsManager.getTaggedRegistry()));
 
         asyncLockService.close();
         assertThat(reaperExecutor.isShutdown()).isTrue();u}(j	 (01d2292522bddd65342f57b0925c5712c567ecbfjF
 itimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/ArrayLockEventSlidingWindowTest.javajH
 modifiedj@
 KZjA
 KjJ
 KmjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -18,17 +18,39 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchEvent;
 import java.util.List;
+import java.util.Optional;
+import java.util.Set;
+import java.util.UUID;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import java.util.stream.LongStream;
-import org.immutables.value.Value;
 import org.junit.Test;
 
 public class ArrayLockEventSlidingWindowTest {
     private static final int WINDOW_SIZE = 10;
 
-    private final ArrayLockEventSlidingWindow slidingWindow = new ArrayLockEventSlidingWindow(WINDOW_SIZE);
+    private static final LockDescriptor LOCK_1 = StringLockDescriptor.of("abc");
+    private static final LockDescriptor LOCK_2 = StringLockDescriptor.of("def");
+    private static final LockDescriptor LOCK_3 = StringLockDescriptor.of("ghi");
+    private static final LockToken TOKEN = LockToken.of(UUID.randomUUID());
+
+    private final BufferMetrics bufferMetrics =
+            BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
+    private final ArrayLockEventSlidingWindow slidingWindow =
+            new ArrayLockEventSlidingWindow(WINDOW_SIZE, bufferMetrics);
 
     @Test
     public void whenLastKnownVersionIsAfterCurrentReturnEmpty() {
@@ -72,6 +94,68 @@ public void returnRangeAfterBoundary() {
         assertContainsNextEventsInOrder(10, 11, 14);
     }
 
+    @Test
+    public void countsMetadataCorrectlyStartingFromEmptyBuffer() {
+        LockRequestMetadata metadata = LockRequestMetadata.of(ImmutableMap.of(
+                LOCK_1, ChangeMetadata.unchanged(), LOCK_2, ChangeMetadata.created(PtBytes.toBytes("foo"))));
+        LockRequestMetadata metadata2 =
+                LockRequestMetadata.of(ImmutableMap.of(LOCK_3, ChangeMetadata.deleted(PtBytes.toBytes("bar"))));
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_1, LOCK_2), Optional.of(metadata));
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_3), Optional.of(metadata2));
+
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(3);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(2);
+
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_1), Optional.empty());
+        addLockEventWithMetadata(ImmutableSet.of(), Optional.of(LockRequestMetadata.of(ImmutableMap.of())));
+
+        assertThat(bufferMetrics.changeMetadata().getCount())
+                .as("Absent metadata should count for nothing")
+                .isEqualTo(3);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount())
+                .as("Empty metadata map should count for present metadata")
+                .isEqualTo(3);
+    }
+
+    @Test
+    public void maintainsCorrectMetadataCountWhenOverwritingBuffer() {
+        assertThat(WINDOW_SIZE)
+                .as("This test does not work with small windows since we are going to replace multiple events once"
+                        + " our buffer is full. With small windows, we might overwrite the wrong events.")
+                .isGreaterThanOrEqualTo(5);
+
+        IntStream.range(0, WINDOW_SIZE).forEach(i -> {
+            LockDescriptor lock = StringLockDescriptor.of("lock" + i);
+            LockRequestMetadata metadata = LockRequestMetadata.of(
+                    ImmutableMap.of(lock, ChangeMetadata.created(PtBytes.toBytes("created" + i))));
+            addLockEventWithMetadata(ImmutableSet.of(lock), Optional.of(metadata));
+        });
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+
+        // Counts are maintained if we replace an event with metadata of same size
+        addLockEventWithMetadata(
+                ImmutableSet.of(LOCK_1),
+                Optional.of(LockRequestMetadata.of(ImmutableMap.of(LOCK_1, ChangeMetadata.unchanged()))));
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+
+        // Both counts can decrease
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_1), Optional.empty());
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
+
+        // ChangeMetadata count can increase
+        addLockEventWithMetadata(
+                ImmutableSet.of(LOCK_1, LOCK_2, LOCK_3),
+                Optional.of(LockRequestMetadata.of(ImmutableMap.of(
+                        LOCK_1, ChangeMetadata.created(PtBytes.toBytes("created")),
+                        LOCK_2, ChangeMetadata.unchanged(),
+                        LOCK_3, ChangeMetadata.updated(PtBytes.toBytes("old"), PtBytes.toBytes("new"))))));
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE + 1);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
+    }
+
     private void whenLogContainsEvents0To4() {
         // Log contains events [0,1,2,3,4]
         addEvents(5);
@@ -101,24 +185,11 @@ private void assertContainsNextEventsInOrder(long version, int startInclusive, i
                         .collect(Collectors.toList()));
     }
 
-    private static LockWatchEvent createEvent(long sequence) {
-        return ImmutableFakeLockWatchEvent.of(sequence, 1);
+    private void addLockEventWithMetadata(Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {
+        slidingWindow.add(LockEvent.builder(lockDescriptors, TOKEN, metadata));
     }
 
-    @Value.Immutable
-    abstract static class FakeLockWatchEvent implements LockWatchEvent {
-        @Override
-        @Value.Parameter
-        public abstract long sequence();
-
-        @Override
-        @Value.Parameter
-        public abstract int size();
-
-        @Override
-        public <T> T accept(LockWatchEvent.Visitor<T> visitor) {
-            // do nothing
-            return null;
-        }
+    private static LockWatchEvent createEvent(long sequence) {
+        return LockEvent.builder(ImmutableSet.of(), TOKEN).build(sequence);
     }
 }u}(j	 (428343d34d878fec95d1805731488da912fac28ajF
 ^timelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImplTest.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X{  @@ -30,6 +30,8 @@
 import com.palantir.atlasdb.timelock.lock.ExclusiveLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocks;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
@@ -67,7 +69,11 @@ public class LockEventLogImplTest {
     private final AtomicReference<LockWatches> lockWatches = new AtomicReference<>(LockWatches.create());
     private final HeldLocksCollection heldLocksCollection = mock(HeldLocksCollection.class);
     private final HeldLocks heldLocks = mock(HeldLocks.class);
-    private final LockEventLog log = new LockEventLogImpl(LOG_ID, lockWatches::get, heldLocksCollection);
+    private final LockEventLog log = new LockEventLogImpl(
+            LOG_ID,
+            lockWatches::get,
+            heldLocksCollection,
+            BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
 
     @Before
     public void setupMocks() {u(     }(j	 (9351b2c3e3ec099a25284148e19fee9daed18290jF
 etimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImplTest.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -33,6 +33,8 @@
 import com.palantir.atlasdb.timelock.lock.ExclusiveLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocks;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.AtlasCellLockDescriptor;
 import com.palantir.lock.AtlasRowLockDescriptor;
@@ -75,7 +77,8 @@ public class LockWatchingServiceImplTest {
     private static final ChangeMetadata DUMMY_METADATA = ChangeMetadata.unchanged();
 
     private final HeldLocksCollection locks = mock(HeldLocksCollection.class);
-    private final LockWatchingService lockWatcher = new LockWatchingServiceImpl(LOG_ID, locks);
+    private final LockWatchingService lockWatcher = new LockWatchingServiceImpl(
+            LOG_ID, locks, BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
 
     private final HeldLocks heldLocks = mock(HeldLocks.class);
 u}(j	 (4d9311a79afe49e73ddb3b80bfc770f03af846c4jF
 ftimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataTest.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -32,6 +32,10 @@
 import com.palantir.atlasdb.timelock.api.LockWatchRequest;
 import com.palantir.atlasdb.timelock.lock.AsyncLockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
+import com.palantir.atlasdb.util.MetricsManager;
+import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.StringLockDescriptor;
@@ -67,10 +71,16 @@ public class AsyncTimeLockServiceMetadataTest {
 
     private final LockLog lockLog = new LockLog(new MetricRegistry(), () -> 10000L);
     private final ScheduledExecutorService scheduledExecutorService = new DeterministicScheduler();
-    private final AsyncLockService asyncLockService =
-            AsyncLockService.createDefault(lockLog, scheduledExecutorService, scheduledExecutorService);
+
+    private final MetricsManager metricsManager = MetricsManagers.createForTests();
+    private final RequestMetrics requestMetrics = RequestMetrics.of(metricsManager.getTaggedRegistry());
+    private final AsyncLockService asyncLockService = AsyncLockService.createDefault(
+            lockLog,
+            scheduledExecutorService,
+            scheduledExecutorService,
+            BufferMetrics.of(metricsManager.getTaggedRegistry()));
     private final AsyncTimelockServiceImpl timeLockService =
-            new AsyncTimelockServiceImpl(asyncLockService, new InMemoryTimestampService(), lockLog);
+            new AsyncTimelockServiceImpl(asyncLockService, new InMemoryTimestampService(), lockLog, requestMetrics);
     private final ConjureStartTransactionsRequest startTransactionsRequestWithInitialVersion =
             ConjureStartTransactionsRequest.builder()
                     .requestId(UUID.randomUUID())
@@ -135,6 +145,19 @@ public void cannotPassDownMetadataForUnknownLockDescriptors() {
                 .withMessage("Unknown lock descriptor in metadata");
     }
 
+    @Test
+    public void updatesRequestMetricsCorrectly() {
+        timeLockService.lock(standardRequestWithMetadata(ImmutableMap.of()));
+        timeLockService.lock(standardRequestWithMetadata(ImmutableMap.of(
+                StringLockDescriptor.of("1"), ChangeMetadata.unchanged(),
+                StringLockDescriptor.of("2"), ChangeMetadata.unchanged(),
+                StringLockDescriptor.of("3"), ChangeMetadata.unchanged())));
+        timeLockService.lock(ImmutableIdentifiedLockRequest.copyOf(WATCHED_LOCK_REQUEST_WITH_METADATA)
+                .withMetadata(Optional.empty()));
+
+        assertThat(requestMetrics.changeMetadata().getSnapshot().getValues()).containsOnly(0, 3, 0);
+    }
+
     private List<Optional<LockRequestMetadata>> getAllLockEventsMetadata() {
         return LockWatchIntegrationTestUtilities.extractMetadata(getAllLockWatchEvents());
     }u}(j	 (a1c26b303ce52ac19eaf79c922923c3074b142f2jF
 ]timelock-server/src/test/java/com/palantir/atlasdb/timelock/lock/AsyncLockServiceEteTest.javajH
 modifiedj@
 KjA
 KjJ
 KjK
 https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceEteTest.javajM
 https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceEteTest.javajO
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceEteTest.java?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -22,6 +22,8 @@
 import com.google.common.util.concurrent.Uninterruptibles;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingService;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingServiceImpl;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.flake.FlakeRetryingRule;
 import com.palantir.flake.ShouldRetry;
 import com.palantir.leader.NotCurrentLeaderException;
@@ -63,7 +65,10 @@ public class AsyncLockServiceEteTest {
 
     private final LockLog lockLog = new LockLog(new MetricRegistry(), () -> 2L);
     private final HeldLocksCollection heldLocks = HeldLocksCollection.create(clock);
-    private final LockWatchingService lockWatchingService = new LockWatchingServiceImpl(heldLocks, clock.id());
+    private final LockWatchingService lockWatchingService = new LockWatchingServiceImpl(
+            heldLocks,
+            clock.id(),
+            BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
     private final AsyncLockService service = new AsyncLockService(
             new LockCollection(),
             new ImmutableTimestampTracker(),u}(j	 (e76f0a48968f3f5af674af0b305a845d9d045dfcjF
 
versions.lockjH
 modifiedj@
 KIjA
 KIjJ
 KjK
 _https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/versions.lockjM
 ^https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/versions.lockjO
 qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 XuI  @@ -8,24 +8,24 @@ com.boundary:high-scale-lib:1.0.6 (2 constraints: 9d14d4a0)
 com.clearspring.analytics:stream:2.5.2 (1 constraints: 970f7788)
 com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
-com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c38132bb)
-com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bbb5dd72)
-com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 06bad036)
-com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e233e000)
-com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7f1c9ea4)
-com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2 (4 constraints: 2244332b)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 343f76b0)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6c30915e)
-com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 322bf7af)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6c30915e)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 41197bbb)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.2 (2 constraints: 251d9309)
-com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9b1c99a6)
-com.fasterxml.jackson.module:jackson-module-blackbird:2.14.2 (1 constraints: b40e625e)
-com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 2dce2620)
+com.fasterxml.jackson.core:jackson-annotations:2.15.2 (24 constraints: c98164d0)
+com.fasterxml.jackson.core:jackson-core:2.15.2 (22 constraints: c9b52a9f)
+com.fasterxml.jackson.core:jackson-databind:2.15.2 (37 constraints: 17ba4690)
+com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.15.2 (2 constraints: e3333101)
+com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.15.2 (1 constraints: 7f1c9ea4)
+com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.15.2 (4 constraints: 2344e62b)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.15.2 (4 constraints: 353f1bb1)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.2 (3 constraints: 6d300c5f)
+com.fasterxml.jackson.datatype:jackson-datatype-joda:2.15.2 (2 constraints: 322bf7af)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.2 (3 constraints: 6d300c5f)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.15.2 (2 constraints: dd2ecb69)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.15.2 (1 constraints: 41197bbb)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.15.2 (2 constraints: 251d9309)
+com.fasterxml.jackson.module:jackson-module-afterburner:2.15.2 (1 constraints: 9b1c99a6)
+com.fasterxml.jackson.module:jackson-module-blackbird:2.15.2 (1 constraints: b40e625e)
+com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.15.2 (2 constraints: dd2ecb69)
+com.fasterxml.jackson.module:jackson-module-parameter-names:2.15.2 (1 constraints: b40e625e)
+com.github.ben-manes.caffeine:caffeine:3.1.6 (13 constraints: 34ce7029)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -45,11 +45,11 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f994935f)
+com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: 1595607f)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
-com.google.guava:guava:32.1.1-jre (48 constraints: 03383c24)
+com.google.guava:guava:32.1.1-jre (48 constraints: d13c9656)
 com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava (1 constraints: bd17c918)
 com.google.j2objc:j2objc-annotations:2.8 (1 constraints: be09f5a0)
 com.google.protobuf:protobuf-java:3.21.9 (1 constraints: 4105453b)
@@ -67,28 +67,28 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:7.5.0 (5 constraints: cd530c72)
-com.palantir.conjure.java:conjure-undertow-annotations:7.5.0 (1 constraints: 0e051d36)
-com.palantir.conjure.java:conjure-undertow-lib:7.5.0 (2 constraints: 1d1c4081)
-com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 3d696e70)
-com.palantir.conjure.java.api:service-config:2.34.0 (5 constraints: 724d79ca)
-com.palantir.conjure.java.api:ssl-config:2.34.0 (3 constraints: e22a0da5)
-com.palantir.conjure.java.runtime:client-config:7.45.0 (6 constraints: bd6b2133)
-com.palantir.conjure.java.runtime:conjure-java-annotations:7.45.0 (1 constraints: c6188d9e)
-com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.45.0 (2 constraints: ca210f7b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.45.0 (6 constraints: 3f6ee88e)
-com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.45.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.45.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.45.0 (1 constraints: c6188d9e)
-com.palantir.conjure.java.runtime:keystores:7.45.0 (3 constraints: 202a4c60)
-com.palantir.conjure.java.runtime:refresh-utils:7.45.0 (2 constraints: 0a1e6f45)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.78.0 (2 constraints: 83295d02)
-com.palantir.dialogue:dialogue-blocking-channels:3.78.0 (2 constraints: e32369b4)
-com.palantir.dialogue:dialogue-clients:3.78.0 (1 constraints: 4405653b)
-com.palantir.dialogue:dialogue-core:3.78.0 (3 constraints: 883d62e3)
-com.palantir.dialogue:dialogue-futures:3.78.0 (3 constraints: dd33dac0)
-com.palantir.dialogue:dialogue-serde:3.78.0 (3 constraints: c62e7fa5)
-com.palantir.dialogue:dialogue-target:3.78.0 (7 constraints: a7763c6a)
+com.palantir.conjure.java:conjure-lib:7.14.0 (5 constraints: 8754055e)
+com.palantir.conjure.java:conjure-undertow-annotations:7.14.0 (1 constraints: 3e05593b)
+com.palantir.conjure.java:conjure-undertow-lib:7.14.0 (2 constraints: 7d1cc7ae)
+com.palantir.conjure.java.api:errors:2.35.0 (6 constraints: 4269c872)
+com.palantir.conjure.java.api:service-config:2.35.0 (5 constraints: 764da6cb)
+com.palantir.conjure.java.api:ssl-config:2.35.0 (4 constraints: 983b9c6e)
+com.palantir.conjure.java.runtime:client-config:7.57.0 (6 constraints: cc6b5039)
+com.palantir.conjure.java.runtime:conjure-java-annotations:7.57.0 (1 constraints: c918979e)
+com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.57.0 (2 constraints: cd21197b)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.57.0 (6 constraints: 486ed394)
+com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.57.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.57.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.57.0 (1 constraints: c918979e)
+com.palantir.conjure.java.runtime:keystores:7.57.0 (3 constraints: 262af060)
+com.palantir.conjure.java.runtime:refresh-utils:7.57.0 (2 constraints: 0d1e7945)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.86.0 (2 constraints: 7f29c301)
+com.palantir.dialogue:dialogue-blocking-channels:3.86.0 (2 constraints: e12337b4)
+com.palantir.dialogue:dialogue-clients:3.86.0 (1 constraints: 4305633b)
+com.palantir.dialogue:dialogue-core:3.86.0 (3 constraints: 833de8e1)
+com.palantir.dialogue:dialogue-futures:3.86.0 (3 constraints: da334bc0)
+com.palantir.dialogue:dialogue-serde:3.86.0 (3 constraints: c12e6ea4)
+com.palantir.dialogue:dialogue-target:3.86.0 (7 constraints: 9e760e64)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -97,28 +97,28 @@ com.palantir.docker.proxy:docker-proxy-rule-junit4:1.6.0 (1 constraints: 0905023
 com.palantir.goethe:goethe:0.11.0 (1 constraints: 3405263b)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
-com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
-com.palantir.safe-logging:logger:3.2.0 (24 constraints: 98a4d6fa)
-com.palantir.safe-logging:logger-slf4j:3.2.0 (1 constraints: 000e5942)
-com.palantir.safe-logging:logger-spi:3.2.0 (2 constraints: 0f1e997a)
-com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: f7178aeb)
-com.palantir.safe-logging:safe-logging:3.2.0 (28 constraints: 0cd34fc4)
+com.palantir.ri:resource-identifier:2.6.0 (3 constraints: aa2f1337)
+com.palantir.safe-logging:logger:3.5.0 (24 constraints: c4a4cd59)
+com.palantir.safe-logging:logger-slf4j:3.5.0 (1 constraints: 030e6242)
+com.palantir.safe-logging:logger-spi:3.5.0 (2 constraints: 151e387b)
+com.palantir.safe-logging:preconditions:3.5.0 (31 constraints: 30182f82)
+com.palantir.safe-logging:safe-logging:3.5.0 (28 constraints: 0ed394c2)
 com.palantir.safethreadlocalrandom:safe-thread-local-random:0.1.0 (3 constraints: 933225f9)
 com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
-com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 485c7290)
+com.palantir.tokens:auth-tokens:3.18.0 (5 constraints: 4d5c8992)
 com.palantir.tracing:tracing:6.17.0 (8 constraints: f97d045e)
 com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 1745b4f5)
 com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 46199abb)
-com.palantir.tritium:tritium-api:0.64.0 (6 constraints: 5052c7ce)
-com.palantir.tritium:tritium-caffeine:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-core:0.64.0 (5 constraints: 5d43281d)
-com.palantir.tritium:tritium-lib:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f96b65dd)
-com.palantir.tritium:tritium-proxy:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-registry:0.64.0 (13 constraints: 88ef0d92)
-com.palantir.tritium:tritium-slf4j:0.64.0 (2 constraints: bd138370)
-com.palantir.tritium:tritium-time:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-tracing:0.64.0 (1 constraints: 820e8359)
+com.palantir.tritium:tritium-api:0.68.0 (6 constraints: 64520bd6)
+com.palantir.tritium:tritium-caffeine:0.68.0 (1 constraints: 3c05433b)
+com.palantir.tritium:tritium-core:0.68.0 (5 constraints: 6d439821)
+com.palantir.tritium:tritium-lib:0.68.0 (1 constraints: 3c05433b)
+com.palantir.tritium:tritium-metrics:0.68.0 (7 constraints: 116c5de8)
+com.palantir.tritium:tritium-proxy:0.68.0 (1 constraints: 860e8f59)
+com.palantir.tritium:tritium-registry:0.68.0 (13 constraints: b4efdfbd)
+com.palantir.tritium:tritium-slf4j:0.68.0 (2 constraints: c1138f70)
+com.palantir.tritium:tritium-time:0.68.0 (1 constraints: 860e8f59)
+com.palantir.tritium:tritium-tracing:0.68.0 (1 constraints: 860e8f59)
 com.squareup:javapoet:1.13.0 (4 constraints: 102cc1ed)
 com.squareup:kotlinpoet:1.11.0 (1 constraints: 6a0c7f0d)
 com.thinkaurelius.thrift:thrift-server:0.3.7 (1 constraints: 980f6c88)
@@ -145,7 +145,7 @@ io.dropwizard:dropwizard-util:2.1.2 (12 constraints: 6eb0fdf0)
 io.dropwizard:dropwizard-validation:2.1.2 (8 constraints: 85778aa6)
 io.dropwizard.logback:logback-throttling-appender:1.1.9 (1 constraints: 830ed74f)
 io.dropwizard.metrics:metrics-annotation:4.2.12 (3 constraints: 6c2e5a89)
-io.dropwizard.metrics:metrics-core:4.2.12 (29 constraints: 2fcff7c9)
+io.dropwizard.metrics:metrics-core:4.2.19 (29 constraints: f5d02e7e)
 io.dropwizard.metrics:metrics-healthchecks:4.2.12 (5 constraints: 4b4964b0)
 io.dropwizard.metrics:metrics-jersey2:4.2.12 (1 constraints: 5c0e744e)
 io.dropwizard.metrics:metrics-jetty9:4.2.12 (3 constraints: 2729b8ff)
@@ -170,7 +170,7 @@ io.netty:netty-codec-socks:4.1.90.Final (2 constraints: 0b1ae71e)
 io.netty:netty-codec-stomp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-codec-xml:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-common:4.1.90.Final (17 constraints: 9f060892)
-io.netty:netty-handler:4.1.90.Final (4 constraints: 5b3c2eaa)
+io.netty:netty-handler:4.1.90.Final (5 constraints: b2435f26)
 io.netty:netty-handler-proxy:4.1.90.Final (2 constraints: 53120c2a)
 io.netty:netty-handler-ssl-ocsp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-resolver:4.1.90.Final (4 constraints: f133a9f6)
@@ -186,21 +186,21 @@ io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf
 io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
-io.undertow:undertow-core:2.2.25.Final (2 constraints: 331dfa06)
+io.undertow:undertow-core:2.2.24.Final (2 constraints: 321db506)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
 jakarta.activation:jakarta.activation-api:1.2.2 (3 constraints: 4e3741b6)
-jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 26793e31)
+jakarta.annotation:jakarta.annotation-api:1.3.5 (7 constraints: 396987f4)
 jakarta.inject:jakarta.inject-api:1.0.5 (13 constraints: decbc9f9)
 jakarta.servlet:jakarta.servlet-api:4.0.4 (10 constraints: 7b9def70)
 jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
 jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (17 constraints: 6f283f6d)
 jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
-joda-time:joda-time:2.12.5 (6 constraints: 845987f4)
+joda-time:joda-time:2.12.5 (6 constraints: b1596f2f)
 junit:junit:4.13.2 (8 constraints: 5a9c5baf)
-net.bytebuddy:byte-buddy:1.14.4 (3 constraints: 4025da91)
+net.bytebuddy:byte-buddy:1.14.4 (3 constraints: 41252092)
 net.bytebuddy:byte-buddy-agent:1.14.4 (1 constraints: 440b42de)
 net.java.dev.jna:jna:4.1.0 (2 constraints: 6e1bbbad)
 net.jpountz.lz4:lz4:1.3.0 (2 constraints: 971453a0)
@@ -217,15 +217,15 @@ org.apache.commons:commons-math3:3.2 (2 constraints: 90196ff8)
 org.apache.commons:commons-pool2:2.11.1 (1 constraints: 3705333b)
 org.apache.commons:commons-text:1.9 (1 constraints: b5102f9b)
 org.apache.httpcomponents.client5:httpclient5:5.2.1 (2 constraints: d518b1c3)
-org.apache.httpcomponents.core5:httpcore5:5.2.1 (3 constraints: 9f383c39)
+org.apache.httpcomponents.core5:httpcore5:5.2.2 (3 constraints: a038a439)
 org.apache.httpcomponents.core5:httpcore5-h2:5.2 (1 constraints: dd12c315)
 org.apache.thrift:libthrift:0.17.0 (4 constraints: 00372854)
-org.assertj:assertj-core:3.24.2 (4 constraints: a136076b)
+org.assertj:assertj-core:3.24.2 (4 constraints: a5360d6c)
 org.assertj:assertj-guava:3.24.2 (1 constraints: 3d05473b)
 org.awaitility:awaitility:4.2.0 (2 constraints: c71a893b)
 org.caffinitas.ohc:ohc-core:0.3.4 (1 constraints: 950f6988)
 org.checkerframework:checker-compat-qual:2.5.5 (2 constraints: 1f1d1717)
-org.checkerframework:checker-qual:3.33.0 (3 constraints: 6f2678e2)
+org.checkerframework:checker-qual:3.33.0 (3 constraints: 7026bde2)
 org.clojure:clojure:1.8.0 (1 constraints: 0b050836)
 org.codehaus.groovy:groovy:2.5.14 (23 constraints: b55185ba)
 org.codehaus.groovy:groovy-cli-picocli:2.5.14 (5 constraints: d54e9017)
@@ -284,7 +284,7 @@ org.jboss.xnio:xnio-api:3.8.7.Final (2 constraints: 771a3146)
 org.jboss.xnio:xnio-nio:3.8.7.Final (1 constraints: c80dcb30)
 org.jdbi:jdbi3-core:3.30.0 (2 constraints: 0e10d5bf)
 org.jdbi:jdbi3-sqlobject:3.30.0 (1 constraints: 38053d3b)
-org.jetbrains:annotations:23.0.0 (4 constraints: 0c35f637)
+org.jetbrains:annotations:24.0.1 (4 constraints: 10350c39)
 org.jetbrains.kotlin:kotlin-reflect:1.6.10 (1 constraints: 360b7dd6)
 org.jetbrains.kotlin:kotlin-stdlib:1.7.0 (7 constraints: 07713968)
 org.jetbrains.kotlin:kotlin-stdlib-common:1.7.0 (1 constraints: 110f8b6b)
@@ -293,7 +293,7 @@ org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.0 (3 constraints: c125b5a3)
 org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.5.0 (1 constraints: 4b0ea44e)
 org.jvnet:animal-sniffer-annotation:1.0 (1 constraints: f20b95eb)
 org.mindrot:jbcrypt:0.4 (2 constraints: 4714f171)
-org.mockito:mockito-core:5.3.1 (2 constraints: 5316c412)
+org.mockito:mockito-core:5.3.1 (2 constraints: 26166bfc)
 org.mpierce.metrics.reservoir:hdrhistogram-metrics-reservoir:1.1.3 (1 constraints: 0d10f991)
 org.objenesis:objenesis:3.3 (2 constraints: c71412ab)
 org.openjdk.jmh:jmh-core:1.36 (2 constraints: f51525d9)
@@ -314,7 +314,7 @@ org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
 org.wildfly.common:wildfly-common:1.6.0.Final (4 constraints: 3f390b3d)
 org.xerial:sqlite-jdbc:3.42.0.0 (1 constraints: 99054946)
 org.xerial.snappy:snappy-java:1.1.10.1 (2 constraints: 891546f4)
-org.yaml:snakeyaml:1.33 (5 constraints: 0a4c5570)
+org.yaml:snakeyaml:2.0 (5 constraints: d54b952a)
 
 [Test dependencies]
 cglib:cglib:3.2.8 (1 constraints: 1f0a62b5)
@@ -324,8 +324,8 @@ com.github.peterwippermann.junit4:parameterized-suite:1.1.0 (1 constraints: 0405
 com.github.stefanbirkner:system-rules:1.19.0 (1 constraints: 3d05443b)
 com.github.tomakehurst:wiremock-standalone:2.27.2 (1 constraints: 3f054a3b)
 com.google.code.findbugs:annotations:3.0.1 (1 constraints: 9e0aafc3)
-com.palantir.conjure.java.api:test-utils:2.34.0 (1 constraints: 3f054e3b)
-com.palantir.safe-logging:preconditions-assertj:3.2.0 (1 constraints: 07050036)
+com.palantir.conjure.java.api:test-utils:2.35.0 (1 constraints: 3f054e3b)
+com.palantir.safe-logging:preconditions-assertj:3.5.0 (1 constraints: 07050036)
 com.palantir.tracing:tracing-test-utils:6.17.0 (1 constraints: 3e05563b)
 com.spotify.dataenum:dataenum:1.4.1 (1 constraints: e9105ac1)
 com.thoughtworks.qdox:qdox:1.12.1 (1 constraints: 6d11f7d9)u}(j	 (145b6814fc1b3cdcdb351db75a70037194fc4cd8jF
 versions.propsjH
 modifiedj@
 KjA
 KjJ
 KjK
 `https://github.com/palantir/atlasdb/blob/ad4d98488bd0a38b6fbb89d323346f0906d021fe/versions.propsjM
 _https://github.com/palantir/atlasdb/raw/ad4d98488bd0a38b6fbb89d323346f0906d021fe/versions.propsjO
 rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=ad4d98488bd0a38b6fbb89d323346f0906d021fejQ
 X  @@ -1,7 +1,7 @@
 com.boundary:high-scale-lib = 1.0.6
 com.ea.agentloader:ea-agent-loader = 1.0.3
-com.fasterxml.jackson.*:* = 2.14.2
-com.fasterxml.jackson.core:jackson-databind = 2.14.2
+com.fasterxml.jackson.*:* = 2.15.2
+com.fasterxml.jackson.core:jackson-databind = 2.15.2
 com.github.ben-manes.caffeine:caffeine = 3.1.5
 com.github.peterwippermann.junit4:parameterized-suite = 1.1.0
 com.github.rholder:guava-retrying = 2.0.0
@@ -25,9 +25,9 @@ com.palantir.common:streams = 2.1.0
 com.palantir.config.crypto:* = 5.1.0
 com.palantir.conjure.java.api:* = 2.29.0
 com.palantir.conjure.java.runtime:* = 7.39.0
-com.palantir.conjure.java:* = 7.5.0
-com.palantir.conjure:conjure = 4.36.0
-com.palantir.dialogue:* = 3.78.0
+com.palantir.conjure.java:* = 7.14.0
+com.palantir.conjure:conjure = 4.38.0
+com.palantir.dialogue:* = 3.86.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
 com.palantir.goethe:* = 0.11.0
@@ -46,7 +46,7 @@ commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
 io.netty:* = 4.1.90.Final
-io.undertow:* = 2.2.25.Final
+io.undertow:* = 2.2.24.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2ueu(502ed024fb8f63feeab621934da160b4b4329884}(sha(502ed024fb8f63feeab621934da160b4b4329884node_idEC_kwDOAjP5fdoAKDUwMmVkMDI0ZmI4ZjYzZmVlYWI2MjE5MzRkYTE2MGI0YjQzMjk4ODQcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-07-21T18:41:52Zu	committer}(j GitHubj noreply@github.comj 2023-07-21T18:41:52ZumessageTransaction impls use Eclipse primitive collections for in-memory transaction tracking (#6640)

Transaction impls use Eclipse primitive collections for in-memory transaction trackingtree}(j (9756fe84c7e56408a8845acaaaa27da85ee96a64url`https://api.github.com/repos/palantir/atlasdb/git/trees/9756fe84c7e56408a8845acaaaa27da85ee96a64uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/502ed024fb8f63feeab621934da160b4b4329884
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkutFwCRBK7hj4Ov3rIwAAZR4IAKupfWadYi1Xe/F47GhMPjGH
wvsN4Yi3YJ+y8Ck+802Rxqt6Dp0R+VY93+426TOWF8Zaw5K0cZ57O6A1VIAWJsDM
vKfSxP3gLCAs1EHI6tfc2S5I1GbGP+x91lg+3u4jhNXfdPIKWVP43qQCb2mp7ugO
KJOToPX9kCnqiJrd9N8ulAqHlEfn0f5vymDpFmRPjGz6N22SoYApJyEeEwIp86mK
qnxHUtx8Y2JAuzU/a4F1y66B2i0Oev3TASSN9K2IKA4/YYnKFYG/Jci11yNtoB12
bzqn6dyfCWBk9BgKBHcu6TyUNbKbkVWR2gWUJw+SPuZNyPIHOr22qRL/L3/8wHk=
=mkab
-----END PGP SIGNATURE-----
payloadX  tree 9756fe84c7e56408a8845acaaaa27da85ee96a64
parent 4a00adc18ee71aa582dc6f726268c1e54b0e43fa
author David Schlosnagle <davids@palantir.com> 1689964912 -0400
committer GitHub <noreply@github.com> 1689964912 +0000

Transaction impls use Eclipse primitive collections for in-memory transaction tracking (#6640)

Transaction impls use Eclipse primitive collections for in-memory transaction tracking
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/502ed024fb8f63feeab621934da160b4b4329884html_urlShttps://github.com/palantir/atlasdb/commit/502ed024fb8f63feeab621934da160b4b4329884comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/502ed024fb8f63feeab621934da160b4b4329884/commentsj }(loginschlosnaidMBj MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j %https://api.github.com/users/schlosnaj

 https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj }(j
 web-flowj
 J/j MDQ6VXNlcjE5ODY0NDQ3j
 4https://avatars.githubusercontent.com/u/19864447?v=4j
 h5j %https://api.github.com/users/web-flowj

 https://github.com/web-flowj
 /https://api.github.com/users/web-flow/followersj
 <https://api.github.com/users/web-flow/following{/other_user}j
 5https://api.github.com/users/web-flow/gists{/gist_id}j
 <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 
 3https://api.github.com/users/web-flow/subscriptionsj"
 *https://api.github.com/users/web-flow/orgsj$
 +https://api.github.com/users/web-flow/reposj&
 6https://api.github.com/users/web-flow/events{/privacy}j(
 5https://api.github.com/users/web-flow/received_eventsj*
 Userj,
 uparents]}(j (4a00adc18ee71aa582dc6f726268c1e54b0e43faj ^https://api.github.com/repos/palantir/atlasdb/commits/4a00adc18ee71aa582dc6f726268c1e54b0e43faj

 Shttps://github.com/palantir/atlasdb/commit/4a00adc18ee71aa582dc6f726268c1e54b0e43fauastats}(totalMJ	additionsK	deletionsKufiles](}(j (d818b689da94b2df8cc7d03ee10dfe828a3d8b4dfilename atlasdb-impl-shared/build.gradlestatusmodifiedjF
 KjG
 K changesKblob_urlthttps://github.com/palantir/atlasdb/blob/502ed024fb8f63feeab621934da160b4b4329884/atlasdb-impl-shared%2Fbuild.gradleraw_urlshttps://github.com/palantir/atlasdb/raw/502ed024fb8f63feeab621934da160b4b4329884/atlasdb-impl-shared%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fbuild.gradle?ref=502ed024fb8f63feeab621934da160b4b4329884patchX  @@ -50,6 +50,8 @@ dependencies {
   implementation 'jakarta.ws.rs:jakarta.ws.rs-api'
   implementation 'org.apache.commons:commons-lang3'
   implementation 'org.checkerframework:checker-qual'
+  implementation 'org.eclipse.collections:eclipse-collections'
+  implementation 'org.eclipse.collections:eclipse-collections-api'
   implementation 'org.slf4j:slf4j-api'
 
   implementation project(':atlasdb-api')u}(j (0d8de51ab4362cdda2463fb83c926e38cf12c269jL
 fatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTable.javajN
 modifiedjF
 KjG
 K
jP
 KjQ
 https://github.com/palantir/atlasdb/blob/502ed024fb8f63feeab621934da160b4b4329884/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javajS
 https://github.com/palantir/atlasdb/raw/502ed024fb8f63feeab621934da160b4b4329884/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javajU
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.java?ref=502ed024fb8f63feeab621934da160b4b4329884jW
 X
  @@ -22,6 +22,7 @@
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.Iterables;
+import com.google.common.collect.Maps;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.MoreExecutors;
@@ -33,7 +34,6 @@
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.common.exception.AtlasDbDependencyException;
-import com.palantir.common.streams.KeyedStream;
 import com.palantir.common.time.Clock;
 import com.palantir.common.time.SystemClock;
 import com.palantir.logsafe.Preconditions;
@@ -52,6 +52,8 @@
 import java.util.stream.Collectors;
 import java.util.stream.StreamSupport;
 import javax.annotation.Nonnull;
+import org.eclipse.collections.api.factory.primitive.ObjectLongMaps;
+import org.eclipse.collections.api.map.primitive.MutableObjectLongMap;
 import org.immutables.value.Value;
 
 public class ResilientCommitTimestampAtomicTable implements AtomicTable<Long, TransactionStatus> {
@@ -141,16 +143,16 @@ public void update(Long key, TransactionStatus value) throws KeyAlreadyExistsExc
 
     @Override
     public void updateMultiple(Map<Long, TransactionStatus> keyValues) throws KeyAlreadyExistsException {
-        Map<Cell, Long> cellToStartTs = keyValues.keySet().stream()
-                .collect(Collectors.toMap(encodingStrategy::encodeStartTimestampAsCell, x -> x));
-        Map<Cell, byte[]> stagingValues = KeyedStream.stream(cellToStartTs)
-                .map(startTs -> encodingStrategy.encodeCommitStatusAsValue(
-                        startTs, AtomicValue.staging(keyValues.get(startTs))))
-                .collectToMap();
+        MutableObjectLongMap<Cell> cellToStartTs = ObjectLongMaps.mutable.withInitialCapacity(keyValues.size());
+        keyValues.keySet().forEach(ts -> cellToStartTs.put(encodingStrategy.encodeStartTimestampAsCell(ts), ts));
+
+        Map<Cell, byte[]> stagingValues = Maps.newHashMapWithExpectedSize(cellToStartTs.size());
+        cellToStartTs.forEachKeyValue((cell, startTs) -> stagingValues.put(
+                cell,
+                encodingStrategy.encodeCommitStatusAsValue(startTs, AtomicValue.staging(keyValues.get(startTs)))));
+
         store.batchAtomicUpdate(stagingValues);
-        store.put(KeyedStream.stream(stagingValues)
-                .map(encodingStrategy::transformStagingToCommitted)
-                .collectToMap());
+        store.put(Maps.transformValues(stagingValues, encodingStrategy::transformStagingToCommitted));
     }
 
     @Overrideu}(j (be6fbc6e8ce696fafb59c3d25b4a7d665bd2ac80jL
 _atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/ClientLockDiagnosticCollector.javajN
 modifiedjF
 KjG
 KjP
 KjQ
 https://github.com/palantir/atlasdb/blob/502ed024fb8f63feeab621934da160b4b4329884/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollector.javajS
 https://github.com/palantir/atlasdb/raw/502ed024fb8f63feeab621934da160b4b4329884/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollector.javajU
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollector.java?ref=502ed024fb8f63feeab621934da160b4b4329884jW
 X  @@ -27,6 +27,7 @@
 import java.util.Set;
 import java.util.UUID;
 import java.util.stream.LongStream;
+import org.eclipse.collections.api.map.primitive.ImmutableLongLongMap;
 import org.immutables.value.Value;
 
 /**
@@ -105,6 +106,6 @@ interface ConflictTrace {
         Map<Cell, Long> latestTimestamps();
 
         @Value.Parameter
-        Map<Long, Long> commitTimestamps();
+        ImmutableLongLongMap commitTimestamps();
     }
 }u}(j (2ba2417016f1307f2e893ab84628481d801dc9e6jL
 catlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/ClientLockDiagnosticCollectorImpl.javajN
 modifiedjF
 KjG
 KjP
 KjQ
 https://github.com/palantir/atlasdb/blob/502ed024fb8f63feeab621934da160b4b4329884/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollectorImpl.javajS
 https://github.com/palantir/atlasdb/raw/502ed024fb8f63feeab621934da160b4b4329884/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollectorImpl.javajU
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollectorImpl.java?ref=502ed024fb8f63feeab621934da160b4b4329884jW
 X  @@ -29,6 +29,7 @@
 import java.util.function.UnaryOperator;
 import java.util.stream.LongStream;
 import javax.annotation.Nullable;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
 
 /**
  * TODO(fdesouza): Remove this once PDS-95791 is resolved.
@@ -63,8 +64,9 @@ public void collect(
             long startTimestamp,
             Map<Cell, Long> keysToLoad,
             Map<Cell, Long> latestTimestamps,
-            Map<Long, Long> commitTimestamps) {
-        ConflictTrace conflictTrace = ImmutableConflictTrace.of(keysToLoad, latestTimestamps, commitTimestamps);
+            LongLongMap commitTimestamps) {
+        ConflictTrace conflictTrace =
+                ImmutableConflictTrace.of(keysToLoad, latestTimestamps, commitTimestamps.toImmutable());
         cache.asMap().compute(startTimestamp, mutateDigest(digest -> digest.withNewConflictDigest(conflictTrace)));
     }
 u}(j (a50601f1936696d69de12e1e665ac187788ac034jL
 Patlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/ConflictTracer.javajN
 modifiedjF
 KjG
 KjP
 KjQ
 https://github.com/palantir/atlasdb/blob/502ed024fb8f63feeab621934da160b4b4329884/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FConflictTracer.javajS
 https://github.com/palantir/atlasdb/raw/502ed024fb8f63feeab621934da160b4b4329884/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FConflictTracer.javajU
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FConflictTracer.java?ref=502ed024fb8f63feeab621934da160b4b4329884jW
 X  @@ -18,6 +18,7 @@
 
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import java.util.Map;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
 
 /**
  * TODO(fdesouza): Remove this once PDS-95791 is resolved.
@@ -31,5 +32,5 @@ void collect(
             long startTimestamp,
             Map<Cell, Long> keysToLoad,
             Map<Cell, Long> latestTimestamps,
-            Map<Long, Long> commitTimestamps);
+            LongLongMap commitTimestamps);
 }u}(j (a9b4705f8f7aa3df1b445c48b97b8bbc12756d22jL
 Vatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/SweepableCells.javajN
 modifiedjF
 KjG
 KjP
 K,jQ
 https://github.com/palantir/atlasdb/blob/502ed024fb8f63feeab621934da160b4b4329884/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepableCells.javajS
 https://github.com/palantir/atlasdb/raw/502ed024fb8f63feeab621934da160b4b4329884/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepableCells.javajU
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepableCells.java?ref=502ed024fb8f63feeab621934da160b4b4329884jW
 X  @@ -52,6 +52,7 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.ArrayList;
 import java.util.Collection;
+import java.util.Comparator;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Iterator;
@@ -61,6 +62,9 @@
 import java.util.Set;
 import java.util.SortedSet;
 import java.util.stream.Collectors;
+import org.eclipse.collections.api.factory.primitive.LongSets;
+import org.eclipse.collections.api.set.primitive.LongSet;
+import org.eclipse.collections.api.set.primitive.MutableLongSet;
 
 public class SweepableCells extends SweepQueueTable {
     private static final SafeLogger log = SafeLoggerFactory.get(SweepableCells.class);
@@ -208,7 +212,7 @@ private WriteBatch getBatchOfWrites(
             writeBatch.merge(getWrites(row, col, entry.getValue()));
         }
         // there may be entries remaining with the same start timestamp as the last processed one. If that is the case
-        // we want to include these ones as well. This is OK since there are at most MAX_CELLS_GENERIC - 1 of them.
+        // we want to include these as well. This is OK since there are at most MAX_CELLS_GENERIC - 1 of them.
         while (resultIterator.hasNext()) {
             Map.Entry<Cell, Value> entry = resultIterator.peek();
             SweepableCellsTable.SweepableCellsColumn col = computeColumn(entry);
@@ -227,10 +231,9 @@ private static final class WriteBatch {
         private final Multimap<Long, WriteInfo> writesByStartTs = HashMultimap.create();
         private final List<SweepableCellsRow> dedicatedRows = new ArrayList<>();
 
-        WriteBatch merge(WriteBatch other) {
+        void merge(WriteBatch other) {
             writesByStartTs.putAll(other.writesByStartTs);
             dedicatedRows.addAll(other.dedicatedRows);
-            return this;
         }
 
         static WriteBatch single(WriteInfo writeInfo) {
@@ -264,7 +267,7 @@ private TimestampsToSweep getTimestampsToSweepDescendingAndCleanupAborted(
             Multimap<Long, WriteInfo> writesByStartTs) {
         Map<Long, Long> startToCommitTs = commitTsCache.loadBatch(writesByStartTs.keySet());
         Map<TableReference, Multimap<Cell, Long>> cellsToDelete = new HashMap<>();
-        List<Long> committedTimestamps = new ArrayList<>();
+        MutableLongSet committedTimestamps = LongSets.mutable.empty();
         long lastSweptTs = minTsExclusive;
         long lastSeenCommitTs = 0L;
         boolean processedAll = true;
@@ -277,11 +280,12 @@ private TimestampsToSweep getTimestampsToSweepDescendingAndCleanupAborted(
             if (commitTs == TransactionConstants.FAILED_COMMIT_TS) {
                 lastSweptTs = startTs;
                 abortedTimestamps.add(startTs);
-                writesByStartTs.get(startTs).stream()
-                        .filter(info -> info.writeRef().isPresent())
-                        .forEach(write -> cellsToDelete
-                                .computeIfAbsent(write.writeRef().get().tableRef(), ignore -> HashMultimap.create())
-                                .put(write.writeRef().get().cell(), write.timestamp()));
+                writesByStartTs.get(startTs).forEach(write -> {
+                    Optional<WriteReference> writeReference = write.writeRef();
+                    writeReference.ifPresent(reference -> cellsToDelete
+                            .computeIfAbsent(reference.tableRef(), _ignore -> HashMultimap.create())
+                            .put(reference.cell(), write.timestamp()));
+                });
             } else if (commitTs < sweepTs) {
                 lastSweptTs = startTs;
                 committedTimestamps.add(startTs);
@@ -318,24 +322,26 @@ private TimestampsToSweep getTimestampsToSweepDescendingAndCleanupAborted(
         });
 
         return ImmutableTimestampsToSweep.builder()
-                .timestampsDescending(
-                        ImmutableSortedSet.copyOf(committedTimestamps).descendingSet())
+                .timestampsDescending(sortDescending(committedTimestamps))
                 .abortedTimestamps(abortedTimestamps)
                 .maxSwept(lastSweptTs)
                 .lastSeenCommitTs(lastSeenCommitTs)
                 .processedAll(processedAll)
                 .build();
     }
 
+    private static ImmutableSortedSet<Long> sortDescending(LongSet committedTimestamps) {
+        ImmutableSortedSet.Builder<Long> timestampsDescending =
+                ImmutableSortedSet.<Long>orderedBy(Comparator.reverseOrder());
+        committedTimestamps.forEach(timestampsDescending::add);
+        return timestampsDescending.build();
+    }
+
     private Collection<WriteInfo> getWritesToSweep(Multimap<Long, WriteInfo> writesByStartTs, SortedSet<Long> startTs) {
-        Map<CellReference, WriteInfo> writesToSweepFor = new HashMap<>();
-        startTs.stream()
-                .map(writesByStartTs::get)
-                .flatMap(Collection::stream)
-                .filter(write -> write.writeRef().isPresent())
-                .forEach(write ->
-                        writesToSweepFor.putIfAbsent(write.writeRef().get().cellReference(), write));
-        return writesToSweepFor.values();
+        Map<CellReference, WriteInfo> writesToSweep = new HashMap<>();
+        startTs.stream().map(writesByStartTs::get).flatMap(Collection::stream).forEach(write -> write.writeRef()
+                .ifPresent(reference -> writesToSweep.putIfAbsent(reference.cellReference(), write)));
+        return writesToSweep.values();
     }
 
     private long getLastSweptTs(u}(j (19087bbc54d879f15116073134966b2a2365ccd7jL
 batlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoader.javajN
 modifiedjF
 K"jG
 KjP
 KAjQ
 https://github.com/palantir/atlasdb/blob/502ed024fb8f63feeab621934da160b4b4329884/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javajS
 https://github.com/palantir/atlasdb/raw/502ed024fb8f63feeab621934da160b4b4329884/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javajU
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.java?ref=502ed024fb8f63feeab621934da160b4b4329884jW
 X  @@ -43,14 +43,21 @@
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.HashMap;
-import java.util.HashSet;
 import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.TimeUnit;
 import java.util.function.Supplier;
 import javax.annotation.Nullable;
+import org.eclipse.collections.api.LongIterable;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
+import org.eclipse.collections.api.map.primitive.MutableLongLongMap;
+import org.eclipse.collections.api.set.ImmutableSet;
+import org.eclipse.collections.api.set.primitive.LongSet;
+import org.eclipse.collections.api.set.primitive.MutableLongSet;
+import org.eclipse.collections.impl.factory.primitive.LongLongMaps;
+import org.eclipse.collections.impl.factory.primitive.LongSets;
+import org.eclipse.collections.impl.map.mutable.primitive.LongLongHashMap;
 
 public final class CommitTimestampLoader {
     private static final SafeLogger log = SafeLoggerFactory.get(CommitTimestampLoader.class);
@@ -90,26 +97,25 @@ public CommitTimestampLoader(
      * Returns a map from start timestamp to commit timestamp. If a start timestamp wasn't committed, then it will be
      * missing from the map. This method will block until the transactions for these start timestamps are complete.
      */
-    ListenableFuture<Map<Long, Long>> getCommitTimestamps(
+    ListenableFuture<LongLongMap> getCommitTimestamps(
             @Nullable TableReference tableRef,
-            Iterable<Long> startTimestamps,
+            LongIterable startTimestamps,
             boolean shouldWaitForCommitterToComplete,
             AsyncTransactionService asyncTransactionService) {
-        if (Iterables.isEmpty(startTimestamps)) {
-            return Futures.immediateFuture(ImmutableMap.of());
+        if (startTimestamps.isEmpty()) {
+            return Futures.immediateFuture(LongLongMaps.immutable.of());
         }
 
-        Set<Long> pendingGets = new HashSet<>();
-        Map<Long, Long> result = new HashMap<>();
-
-        for (Long startTs : startTimestamps) {
+        MutableLongSet pendingGets = LongSets.mutable.of();
+        MutableLongLongMap result = new LongLongHashMap();
+        startTimestamps.each(startTs -> {
             Long commitTs = timestampCache.getCommitTimestampIfPresent(startTs);
             if (commitTs == null) {
                 pendingGets.add(startTs);
             } else {
                 result.put(startTs, commitTs);
             }
-        }
+        });
 
         if (pendingGets.isEmpty()) {
             return Futures.immediateFuture(result);
@@ -123,16 +129,16 @@ ListenableFuture<Map<Long, Long>> getCommitTimestamps(
         return Futures.transform(
                 loadCommitTimestamps(asyncTransactionService, pendingGets),
                 rawResults -> {
-                    Map<Long, Long> loadedCommitTs = cacheKnownLoadedValuesAndValidate(rawResults);
+                    LongLongMap loadedCommitTs = cacheKnownLoadedValuesAndValidate(rawResults);
                     result.putAll(loadedCommitTs);
                     return result;
                 },
                 MoreExecutors.directExecutor());
     }
 
     // We do not cache unknown transactions as they are already being cached at a lower level.
-    private Map<Long, Long> cacheKnownLoadedValuesAndValidate(Map<Long, TransactionStatus> rawResults) {
-        Map<Long, Long> results = new HashMap<>();
+    private LongLongMap cacheKnownLoadedValuesAndValidate(Map<Long, TransactionStatus> rawResults) {
+        MutableLongLongMap results = LongLongMaps.mutable.empty();
         boolean shouldValidate = false;
 
         // The method is written this way to avoid multiple scans on the result set as it is on a hot path.
@@ -158,30 +164,27 @@ private Map<Long, Long> cacheKnownLoadedValuesAndValidate(Map<Long, TransactionS
             throwIfTransactionsTableSweptBeyondReadOnlyTxn();
         }
 
-        return results;
+        return results.asUnmodifiable();
     }
 
     /**
      * We will block here until the passed transactions have released their lock. This means that the committing
      * transaction is either complete or it has failed, and we are allowed to roll it back.
      */
-    private void waitForCommitToComplete(Iterable<Long> startTimestamps) {
-        Set<LockDescriptor> lockDescriptors = new HashSet<>();
-        for (long start : startTimestamps) {
-            if (start < immutableTimestamp) {
-                // We don't need to block in this case because this transaction is already complete
-                continue;
-            }
-            lockDescriptors.add(AtlasRowLockDescriptor.of(
-                    TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
-                    TransactionConstants.getValueForTimestamp(start)));
-        }
+    private void waitForCommitToComplete(LongIterable startTimestamps) {
+        ImmutableSet<LockDescriptor> lockDescriptors = startTimestamps
+                // We only need to block and wait for transactions on or after immutable timestamp
+                .select(start -> start >= immutableTimestamp)
+                .collect(start -> AtlasRowLockDescriptor.of(
+                        TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
+                        TransactionConstants.getValueForTimestamp(start)))
+                .toImmutableSet();
 
         if (lockDescriptors.isEmpty()) {
             return;
         }
 
-        waitFor(lockDescriptors);
+        waitFor(lockDescriptors.castToSet());
     }
 
     private void waitFor(Set<LockDescriptor> lockDescriptors) {
@@ -202,7 +205,7 @@ private void waitFor(Set<LockDescriptor> lockDescriptors) {
         }
     }
 
-    private void waitForCommitterToComplete(@Nullable TableReference tableRef, Iterable<Long> startTimestamps) {
+    private void waitForCommitterToComplete(@Nullable TableReference tableRef, LongIterable startTimestamps) {
         Timer.Context timer = getTimer("waitForCommitTsMillis").time();
         waitForCommitToComplete(startTimestamps);
         long waitForCommitTsMillis = TimeUnit.NANOSECONDS.toMillis(timer.stop());
@@ -222,16 +225,16 @@ private Timer getTimer(String name) {
     }
 
     private static ListenableFuture<Map<Long, TransactionStatus>> loadCommitTimestamps(
-            AsyncTransactionService asyncTransactionService, Set<Long> startTimestamps) {
+            AsyncTransactionService asyncTransactionService, LongSet startTimestamps) {
         // distinguish between a single timestamp and a batch, for more granular metrics
         if (startTimestamps.size() == 1) {
-            Long singleTs = Iterables.getOnlyElement(startTimestamps);
+            long singleTs = startTimestamps.longIterator().next();
             return Futures.transform(
                     asyncTransactionService.getAsyncV2(singleTs),
                     commitState -> ImmutableMap.of(singleTs, commitState),
                     MoreExecutors.directExecutor());
         } else {
-            return asyncTransactionService.getAsyncV2(startTimestamps);
+            return asyncTransactionService.getAsyncV2(startTimestamps.collect(Long::valueOf));
         }
     }
 u}(j (76479dbfe5fb53d1b0583122fda4de393de7e01bjL
 datlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.javajN
 modifiedjF
 K!jG
 KjP
 K8jQ
 https://github.com/palantir/atlasdb/blob/502ed024fb8f63feeab621934da160b4b4329884/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javajS
 https://github.com/palantir/atlasdb/raw/502ed024fb8f63feeab621934da160b4b4329884/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javajU
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.java?ref=502ed024fb8f63feeab621934da160b4b4329884jW
 X  @@ -109,6 +109,13 @@
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 import javax.annotation.Nullable;
+import org.eclipse.collections.api.LongIterable;
+import org.eclipse.collections.api.factory.primitive.LongLongMaps;
+import org.eclipse.collections.api.factory.primitive.LongSets;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
+import org.eclipse.collections.api.map.primitive.MutableLongLongMap;
+import org.eclipse.collections.api.set.primitive.LongSet;
+import org.eclipse.collections.api.set.primitive.MutableLongSet;
 import org.immutables.value.Value;
 
 /**
@@ -881,42 +888,42 @@ protected TransactionScopedCache getCache() {
             }
 
             @Override
-            protected ListenableFuture<Map<Long, Long>> getCommitTimestamps(
+            protected ListenableFuture<LongLongMap> getCommitTimestamps(
                     TableReference tableRef,
-                    Iterable<Long> startTimestamps,
+                    LongIterable startTimestamps,
                     boolean shouldWaitForCommitterToComplete,
                     AsyncTransactionService asyncTransactionService) {
                 long myStart = SerializableTransaction.this.getTimestamp();
                 PartitionedTimestamps partitionedTimestamps = splitTransactionBeforeAndAfter(myStart, startTimestamps);
 
-                ListenableFuture<Map<Long, Long>> postStartCommitTimestamps =
+                ListenableFuture<LongLongMap> postStartCommitTimestamps =
                         getCommitTimestampsForTransactionsStartedAfterMe(
                                 tableRef, asyncTransactionService, partitionedTimestamps.afterStart());
 
                 // We are ok to block here because if there is a cycle of transactions that could result in a deadlock,
                 // then at least one of them will be in the ab
-                ListenableFuture<Map<Long, Long>> preStartCommitTimestamps = super.getCommitTimestamps(
+                ListenableFuture<LongLongMap> preStartCommitTimestamps = super.getCommitTimestamps(
                         tableRef,
                         partitionedTimestamps.beforeStart(),
                         shouldWaitForCommitterToComplete,
                         asyncTransactionService);
 
                 return Futures.whenAllComplete(postStartCommitTimestamps, preStartCommitTimestamps)
                         .call(
-                                () -> ImmutableMap.<Long, Long>builder()
-                                        .putAll(AtlasFutures.getDone(preStartCommitTimestamps))
-                                        .putAll(AtlasFutures.getDone(postStartCommitTimestamps))
-                                        .putAll(partitionedTimestamps.myCommittedTransaction())
-                                        .buildOrThrow(),
+                                () -> {
+                                    MutableLongLongMap map = LongLongMaps.mutable.withAll(
+                                            AtlasFutures.getDone(preStartCommitTimestamps));
+                                    map.putAll(AtlasFutures.getDone(postStartCommitTimestamps));
+                                    map.putAll(partitionedTimestamps.myCommittedTransaction());
+                                    return map.toImmutable();
+                                },
                                 MoreExecutors.directExecutor());
             }
 
-            private ListenableFuture<Map<Long, Long>> getCommitTimestampsForTransactionsStartedAfterMe(
-                    TableReference tableRef,
-                    AsyncTransactionService asyncTransactionService,
-                    Set<Long> startTimestamps) {
+            private ListenableFuture<LongLongMap> getCommitTimestampsForTransactionsStartedAfterMe(
+                    TableReference tableRef, AsyncTransactionService asyncTransactionService, LongSet startTimestamps) {
                 if (startTimestamps.isEmpty()) {
-                    return Futures.immediateFuture(ImmutableMap.of());
+                    return Futures.immediateFuture(LongLongMaps.immutable.empty());
                 }
 
                 return Futures.transform(
@@ -950,19 +957,22 @@ private ListenableFuture<Map<Long, Long>> getCommitTimestampsForTransactionsStar
              * @param startTimestamps of transactions we are interested in
              * @return a {@link PartitionedTimestamps} object containing split timestamps
              */
-            private PartitionedTimestamps splitTransactionBeforeAndAfter(long myStart, Iterable<Long> startTimestamps) {
+            private PartitionedTimestamps splitTransactionBeforeAndAfter(long myStart, LongIterable startTimestamps) {
                 ImmutablePartitionedTimestamps.Builder builder =
                         ImmutablePartitionedTimestamps.builder().myCommitTimestamp(commitTs);
+                MutableLongSet beforeStart = LongSets.mutable.empty();
+                MutableLongSet afterStart = LongSets.mutable.empty();
                 startTimestamps.forEach(startTimestamp -> {
                     if (startTimestamp == myStart) {
                         builder.splittingStartTimestamp(myStart);
                     } else if (startTimestamp < myStart) {
-                        builder.addBeforeStart(startTimestamp);
+                        beforeStart.add(startTimestamp);
                     } else {
-                        builder.addAfterStart(startTimestamp);
+                        afterStart.add(startTimestamp);
                     }
                 });
-
+                builder.beforeStart(beforeStart.asUnmodifiable());
+                builder.afterStart(afterStart.asUnmodifiable());
                 return builder.build();
             }
         };
@@ -1039,17 +1049,17 @@ public Map.Entry<Cell, byte[]> next() {
     interface PartitionedTimestamps {
         long myCommitTimestamp();
 
-        Set<Long> afterStart();
+        LongSet afterStart();
 
-        Set<Long> beforeStart();
+        LongSet beforeStart();
 
         OptionalLong splittingStartTimestamp();
 
         @Value.Derived
-        default Map<Long, Long> myCommittedTransaction() {
+        default LongLongMap myCommittedTransaction() {
             return splittingStartTimestamp().isPresent()
-                    ? ImmutableMap.of(splittingStartTimestamp().getAsLong(), myCommitTimestamp())
-                    : ImmutableMap.of();
+                    ? LongLongMaps.immutable.of(splittingStartTimestamp().getAsLong(), myCommitTimestamp())
+                    : LongLongMaps.immutable.empty();
         }
     }
 u}(j (999b09d1124446cca5075fe20f78f7b373c0bcd5jL
 `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javajN
 modifiedjF
 K@jG
 K/jP
 KojQ
 https://github.com/palantir/atlasdb/blob/502ed024fb8f63feeab621934da160b4b4329884/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajS
 https://github.com/palantir/atlasdb/raw/502ed024fb8f63feeab621934da160b4b4329884/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajU
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=502ed024fb8f63feeab621934da160b4b4329884jW
 X,  @@ -186,6 +186,12 @@
 import javax.annotation.Nullable;
 import org.apache.commons.lang3.Validate;
 import org.apache.commons.lang3.tuple.Pair;
+import org.eclipse.collections.api.LongIterable;
+import org.eclipse.collections.api.factory.primitive.LongLists;
+import org.eclipse.collections.api.factory.primitive.LongSets;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
+import org.eclipse.collections.api.set.primitive.ImmutableLongSet;
+import org.eclipse.collections.api.set.primitive.LongSet;
 
 /**
  * This implements snapshot isolation for transactions.
@@ -1646,7 +1652,7 @@ private <T> ListenableFuture<Map<Cell, Value>> getWithPostFilteringInternal(
             AsyncKeyValueService asyncKeyValueService,
             AsyncTransactionService asyncTransactionService) {
         Set<Cell> orphanedSentinels = findOrphanedSweepSentinels(tableRef, rawResults);
-        Set<Long> valuesStartTimestamps = getStartTimestampsForValues(rawResults.values());
+        LongSet valuesStartTimestamps = getStartTimestampsForValues(rawResults.values());
 
         return Futures.transformAsync(
                 getCommitTimestamps(tableRef, valuesStartTimestamps, true, asyncTransactionService),
@@ -1668,7 +1674,7 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
             Function<Value, T> transformer,
             AsyncKeyValueService asyncKeyValueService,
             Set<Cell> orphanedSentinels,
-            Map<Long, Long> commitTimestamps) {
+            LongLongMap commitTimestamps) {
         Map<Cell, Long> keysToReload = Maps.newHashMapWithExpectedSize(0);
         Map<Cell, Long> keysToDelete = Maps.newHashMapWithExpectedSize(0);
         ImmutableSet.Builder<Cell> keysAddedBuilder = ImmutableSet.builder();
@@ -1699,8 +1705,9 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
                         throw new IllegalStateException("Invalid read sentinel behavior " + getReadSentinelBehavior());
                 }
             } else {
-                Long theirCommitTimestamp = commitTimestamps.get(value.getTimestamp());
-                if (theirCommitTimestamp == null || theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
+                long theirCommitTimestamp =
+                        commitTimestamps.getIfAbsent(value.getTimestamp(), TransactionConstants.FAILED_COMMIT_TS);
+                if (theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
                     keysToReload.put(key, value.getTimestamp());
                     if (shouldDeleteAndRollback()) {
                         // This is from a failed transaction so we can roll it back and then reload it.
@@ -2327,33 +2334,37 @@ protected Map<Cell, Long> detectWriteAlreadyCommittedInternal(
             @Output Set<CellConflict> spanningWrites,
             @Output Set<CellConflict> dominatingWrites,
             TransactionService transactionService) {
+        long startTs = getStartTimestamp();
         Map<Cell, Long> rawResults = keyValueService.getLatestTimestamps(tableRef, keysToLoad);
-        Map<Long, Long> commitTimestamps = getCommitTimestampsSync(tableRef, rawResults.values(), false);
+        LongLongMap commitTimestamps =
+                getCommitTimestampsSync(tableRef, LongLists.immutable.ofAll(rawResults.values()), false);
 
         // TODO(fdesouza): Remove this once PDS-95791 is resolved.
-        conflictTracer.collect(getStartTimestamp(), keysToLoad, rawResults, commitTimestamps);
+        conflictTracer.collect(startTs, keysToLoad, rawResults, commitTimestamps);
 
         Map<Cell, Long> keysToDelete = Maps.newHashMapWithExpectedSize(0);
 
         for (Map.Entry<Cell, Long> e : rawResults.entrySet()) {
             Cell key = e.getKey();
             long theirStartTimestamp = e.getValue();
-            AssertUtils.assertAndLog(
-                    log, theirStartTimestamp != getStartTimestamp(), "Timestamp reuse is bad:" + getStartTimestamp());
+            if (theirStartTimestamp == startTs) {
+                AssertUtils.assertAndLog(log, false, "Timestamp reuse is bad:" + startTs);
+            }
 
-            Long theirCommitTimestamp = commitTimestamps.get(theirStartTimestamp);
-            if (theirCommitTimestamp == null || theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
+            long theirCommitTimestamp =
+                    commitTimestamps.getIfAbsent(theirStartTimestamp, TransactionConstants.FAILED_COMMIT_TS);
+            if (theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
                 // The value has no commit timestamp or was explicitly rolled back.
                 // This means the value is garbage from a transaction which didn't commit.
                 keysToDelete.put(key, theirStartTimestamp);
                 continue;
+            } else if (theirCommitTimestamp == startTs) {
+                AssertUtils.assertAndLog(log, false, "Timestamp reuse is bad:" + startTs);
             }
 
-            AssertUtils.assertAndLog(
-                    log, theirCommitTimestamp != getStartTimestamp(), "Timestamp reuse is bad:" + getStartTimestamp());
-            if (theirStartTimestamp > getStartTimestamp()) {
+            if (theirStartTimestamp > startTs) {
                 dominatingWrites.add(Cells.createConflict(key, theirStartTimestamp, theirCommitTimestamp));
-            } else if (theirCommitTimestamp > getStartTimestamp()) {
+            } else if (theirCommitTimestamp > startTs) {
                 spanningWrites.add(Cells.createConflict(key, theirStartTimestamp, theirCommitTimestamp));
             }
         }
@@ -2378,30 +2389,37 @@ protected Map<Cell, Long> detectWriteAlreadyCommittedInternal(
     private boolean rollbackFailedTransactions(
             TableReference tableRef,
             Map<Cell, Long> keysToDelete,
-            Map<Long, Long> commitTimestamps,
+            LongLongMap commitTimestamps,
             TransactionService transactionService) {
-        for (long startTs : new HashSet<>(keysToDelete.values())) {
-            if (commitTimestamps.get(startTs) == null) {
-                log.warn("Rolling back transaction: {}", SafeArg.of("startTs", startTs));
-                if (!rollbackOtherTransaction(startTs, transactionService)) {
-                    return false;
+        ImmutableLongSet timestamps = LongSets.immutable.ofAll(keysToDelete.values());
+        boolean allRolledBack = timestamps.allSatisfy(startTs -> {
+            if (commitTimestamps.containsKey(startTs)) {
+                long commitTs = commitTimestamps.get(startTs);
+                if (commitTs != TransactionConstants.FAILED_COMMIT_TS) {
+                    throw new SafeIllegalArgumentException(
+                            "Cannot rollback already committed transaction",
+                            SafeArg.of("startTs", startTs),
+                            SafeArg.of("commitTs", commitTs));
                 }
-            } else {
-                Preconditions.checkArgument(commitTimestamps.get(startTs) == TransactionConstants.FAILED_COMMIT_TS);
+                return true;
             }
-        }
+            log.warn("Rolling back transaction: {}", SafeArg.of("startTs", startTs));
+            return rollbackOtherTransaction(startTs, transactionService);
+        });
 
-        try {
-            runTaskOnDeleteExecutor(kvs -> deleteCells(kvs, tableRef, keysToDelete));
-        } catch (RejectedExecutionException rejected) {
-            deleteExecutorRateLimitedLogger.log(logger -> logger.info(
-                    "Could not delete keys {} for table {}, because the delete executor's queue was full."
-                            + " Sweep should eventually clean these values.",
-                    SafeArg.of("numKeysToDelete", keysToDelete.size()),
-                    LoggingArgs.tableRef(tableRef),
-                    rejected));
+        if (allRolledBack) {
+            try {
+                runTaskOnDeleteExecutor(kvs -> deleteCells(kvs, tableRef, keysToDelete));
+            } catch (RejectedExecutionException rejected) {
+                deleteExecutorRateLimitedLogger.log(logger -> logger.info(
+                        "Could not delete keys {} for table {}, because the delete executor's queue was full."
+                                + " Sweep should eventually clean these values.",
+                        SafeArg.of("numKeysToDelete", keysToDelete.size()),
+                        LoggingArgs.tableRef(tableRef),
+                        rejected));
+            }
         }
-        return true;
+        return allRolledBack;
     }
 
     private static void deleteCells(
@@ -2487,9 +2505,9 @@ protected LockToken acquireLocksForCommit() {
         return lockResponse.getToken();
     }
 
-    protected ListenableFuture<Map<Long, Long>> getCommitTimestamps(
+    protected ListenableFuture<LongLongMap> getCommitTimestamps(
             TableReference tableRef,
-            Iterable<Long> startTimestamps,
+            LongIterable startTimestamps,
             boolean shouldWaitForCommitterToComplete,
             AsyncTransactionService asyncTransactionService) {
         return commitTimestampLoader.getCommitTimestamps(
@@ -2547,16 +2565,12 @@ protected Set<LockDescriptor> getLocksForWrites() {
     /// Commit timestamp management
     ///////////////////////////////////////////////////////////////////////////
 
-    private Set<Long> getStartTimestampsForValues(Iterable<Value> values) {
-        Set<Long> results = new HashSet<>();
-        for (Value v : values) {
-            results.add(v.getTimestamp());
-        }
-        return results;
+    private LongSet getStartTimestampsForValues(Iterable<Value> values) {
+        return LongSets.immutable.withAll(Streams.stream(values).mapToLong(Value::getTimestamp));
     }
 
-    private Map<Long, Long> getCommitTimestampsSync(
-            @Nullable TableReference tableRef, Iterable<Long> startTimestamps, boolean waitForCommitterToComplete) {
+    private LongLongMap getCommitTimestampsSync(
+            @Nullable TableReference tableRef, LongIterable startTimestamps, boolean waitForCommitterToComplete) {
         return AtlasFutures.getUnchecked(getCommitTimestamps(
                 tableRef, startTimestamps, waitForCommitterToComplete, immediateTransactionService));
     }
@@ -2625,11 +2639,14 @@ private void handleKeyAlreadyExistsException(
     }
 
     private boolean wasCommitSuccessful(long commitTs) {
-        Map<Long, Long> commitTimestamps =
-                getCommitTimestampsSync(null, Collections.singleton(getStartTimestamp()), false);
-        long storedCommit = commitTimestamps.get(getStartTimestamp());
+        long startTs = getStartTimestamp();
+        LongLongMap commitTimestamps = getCommitTimestampsSync(null, LongSets.immutable.of(startTs), false);
+        long storedCommit = commitTimestamps.get(startTs);
         if (storedCommit != commitTs && storedCommit != TransactionConstants.FAILED_COMMIT_TS) {
-            Validate.isTrue(false, "Commit value is wrong. startTs %s  commitTs: %s", getStartTimestamp(), commitTs);
+            throw new SafeIllegalArgumentException(
+                    "Commit value is wrong.",
+                    SafeArg.of("startTimestamp", startTs),
+                    SafeArg.of("commitTimestamp", commitTs));
         }
         return storedCommit == commitTs;
     }u      }(j (7be5d7230e4143dea05fe8a584a1a0dcb0d8db39jL
 fatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoaderTest.javajN
 modifiedjF
 KjG
 KjP
 KjQ
 https://github.com/palantir/atlasdb/blob/502ed024fb8f63feeab621934da160b4b4329884/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javajS
 https://github.com/palantir/atlasdb/raw/502ed024fb8f63feeab621934da160b4b4329884/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javajU
 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.java?ref=502ed024fb8f63feeab621934da160b4b4329884jW
 X  @@ -24,7 +24,6 @@
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
 
-import com.google.common.collect.ImmutableList;
 import com.google.common.util.concurrent.Futures;
 import com.palantir.atlasdb.cache.TimestampCache;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
@@ -40,9 +39,10 @@
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.ExecutionException;
+import org.eclipse.collections.api.factory.primitive.LongLists;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
 import org.junit.Test;
 
 public class CommitTimestampLoaderTest {
@@ -96,7 +96,7 @@ public void throwIfTTSBeyondReadOnlyForSweptTTSCell() {
 
         assertThatExceptionOfType(ExecutionException.class)
                 .isThrownBy(() -> commitTimestampLoader
-                        .getCommitTimestamps(TABLE_REF, ImmutableList.of(startTs), false, transactionService)
+                        .getCommitTimestamps(TABLE_REF, LongLists.immutable.of(startTs), false, transactionService)
                         .get())
                 .withRootCauseInstanceOf(SafeIllegalStateException.class)
                 .withMessageContaining("Sweep has swept some entries with a commit TS after us");
@@ -182,10 +182,10 @@ public void doesNotCacheUnknownTransactions() throws ExecutionException, Interru
 
     private void assertCanGetCommitTs(long startTs, long commitTs, CommitTimestampLoader commitTimestampLoader)
             throws InterruptedException, ExecutionException {
-        Map<Long, Long> loadedCommitTs = commitTimestampLoader
-                .getCommitTimestamps(TABLE_REF, ImmutableList.of(startTs), false, transactionService)
+        LongLongMap loadedCommitTs = commitTimestampLoader
+                .getCommitTimestamps(TABLE_REF, LongLists.immutable.of(startTs), false, transactionService)
                 .get();
-        assertThat(loadedCommitTs).hasSize(1);
+        assertThat(loadedCommitTs.size()).isEqualTo(1);
         assertThat(loadedCommitTs.get(startTs)).isEqualTo(commitTs);
     }
 u}(j (0ec771af62ea2a6ddaf5d9b6139d48293d4a25a7jL
 $changelog/@unreleased/pr-6640.v2.ymljN
 addedjF
 KjG
 K jP
 KjQ
 |https://github.com/palantir/atlasdb/blob/502ed024fb8f63feeab621934da160b4b4329884/changelog%2F%40unreleased%2Fpr-6640.v2.ymljS
 {https://github.com/palantir/atlasdb/raw/502ed024fb8f63feeab621934da160b4b4329884/changelog%2F%40unreleased%2Fpr-6640.v2.ymljU
 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6640.v2.yml?ref=502ed024fb8f63feeab621934da160b4b4329884jW
 @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Transaction impls use Eclipse primitive collections for in-memory transaction
+    tracking
+  links:
+  - https://github.com/palantir/atlasdb/pull/6640ueu(cb0583cbf681014c81b0650ee845f9aa3254ac75}(sha(cb0583cbf681014c81b0650ee845f9aa3254ac75node_idEC_kwDOAjP5fdoAKGNiMDU4M2NiZjY4MTAxNGM4MWIwNjUwZWU4NDVmOWFhMzI1NGFjNzUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-24T21:09:27Zu	committer}(j
 
Sam Kramerj
 skramer@palantir.comj
 2023-05-24T21:11:54Zumessageadd commentstree}(j
 (17ef221c0700de45c341b7bcb5378b412b5adea0url`https://api.github.com/repos/palantir/atlasdb/git/trees/17ef221c0700de45c341b7bcb5378b412b5adea0uj
 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cb0583cbf681014c81b0650ee845f9aa3254ac75
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRufZoACgkQmPPOpKR4
XS0KuggAie4TFZ/KkXcYTzD87YiKVYYGCl9Cfr6eo9E+WAfUqW2oqURKrDPLeMiz
DlytGpUuumYOjq8J5rNf00MMGhhlk90ScnFzjKREmA1t1a8YJaZKBlya4Yz+hKkW
9aInKros/oUd7G4PUsEMfGBblp1dTCifGsKIQR1zgGerkFzznKAs/Vim+T2tXGcV
t2aBELbps5nV3iZ8Pf8gZDTSAoFEFhOvloQK9fH5f48vBp7NIQcYkM25d6ncrm8O
h/WOQnEjI/WiY0VCMV5K2n5cgADD/jRhP7wlQa4ojcnETF3abya3UtlseqoSFuKL
ecuI0UL2m5axPmYZ6LKYesygi+mrGQ==
=MqHO
-----END PGP SIGNATURE-----payloadtree 17ef221c0700de45c341b7bcb5378b412b5adea0
parent 390ce73ac5a734937f0405b9283e7e3c1d5d0d32
author Sam Kramer <skramer@palantir.com> 1684962567 +0100
committer Sam Kramer <skramer@palantir.com> 1684962714 +0100

add comments
uuj
 ^https://api.github.com/repos/palantir/atlasdb/commits/cb0583cbf681014c81b0650ee845f9aa3254ac75html_urlShttps://github.com/palantir/atlasdb/commit/cb0583cbf681014c81b0650ee845f9aa3254ac75comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cb0583cbf681014c81b0650ee845f9aa3254ac75/commentsj
 }(login
Sam-KrameridJ^2_ j
 MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j
 'https://api.github.com/users/Sam-Kramerj
 https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj
 }(j
 
Sam-Kramerj
 J^2_ j
 MDQ6VXNlcjYyMzg4MTQ=j
 3https://avatars.githubusercontent.com/u/6238814?v=4j
 h5j
 'https://api.github.com/users/Sam-Kramerj
 https://github.com/Sam-Kramerj
 1https://api.github.com/users/Sam-Kramer/followersj
 >https://api.github.com/users/Sam-Kramer/following{/other_user}j
 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j
 >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j
 5https://api.github.com/users/Sam-Kramer/subscriptionsj
 ,https://api.github.com/users/Sam-Kramer/orgsj
 -https://api.github.com/users/Sam-Kramer/reposj
 8https://api.github.com/users/Sam-Kramer/events{/privacy}j
 7https://api.github.com/users/Sam-Kramer/received_eventsj
 Userj
 uparents]}(j
 (390ce73ac5a734937f0405b9283e7e3c1d5d0d32j
 ^https://api.github.com/repos/palantir/atlasdb/commits/390ce73ac5a734937f0405b9283e7e3c1d5d0d32j
 Shttps://github.com/palantir/atlasdb/commit/390ce73ac5a734937f0405b9283e7e3c1d5d0d32uastats}(totalK	additionsK	deletionsKufiles]}(j
 (4c009ebe4699e6665fa0c9590874f7ead9b2f33ffilenamegatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtils.javastatusmodifiedj
 Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/cb0583cbf681014c81b0650ee845f9aa3254ac75/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.javaraw_urlhttps://github.com/palantir/atlasdb/raw/cb0583cbf681014c81b0650ee845f9aa3254ac75/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.java?ref=cb0583cbf681014c81b0650ee845f9aa3254ac75patchX  @@ -31,10 +31,12 @@ public final class BankBalanceUtils {
     private BankBalanceUtils() {}
 
     /**
-     * Checks the provided balances that all are present, and if so, returns them.
-     * If all balances are empty, it means we need to initialize, so we generate them.
+     * Validates all the bank balances provided. If all are empty, we will generate a new set of bank balances. If
+     * any are missing, an empty optional is returned to indicate failure state. If balances do not total to the
+     * expected amount, an empty optional is returned.
      *
-     * Otherwise, return an empty map to indicate that we are in a faulty state.
+     * @return An empty optional when validation has failed for bank balances. Otherwise, the optional will contain
+     * the validated (or generated) balances.
      */
     public static Optional<Map<Integer, Integer>> validateOrGenerateBalances(
             Map<Integer, Optional<Integer>> maybeBalances, Integer numberOfAccounts, Integer balancePerAccount) {uau(477d6e374360b5df66fc4e74628e2dc0a643f12c}(sha(477d6e374360b5df66fc4e74628e2dc0a643f12cnode_idEC_kwDOAjP5fdoAKDQ3N2Q2ZTM3NDM2MGI1ZGY2NmZjNGU3NDYyOGUyZGMwYTY0M2YxMmMcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-14T08:37:01Zu	committer}(j* 	Tom Papkej, tpapke@palantir.comj. 2023-06-14T08:37:01ZumessageFix test

Tidy uptree}(j" (82b80ad71ea07a7234626a3be44e7ab16e9d6d12url`https://api.github.com/repos/palantir/atlasdb/git/trees/82b80ad71ea07a7234626a3be44e7ab16e9d6d12uj: bhttps://api.github.com/repos/palantir/atlasdb/git/commits/477d6e374360b5df66fc4e74628e2dc0a643f12c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSJfC0ACgkQmF9s0kaF
Iw1ndQgAtvnUKkqr8IfTQpNP/w+p8QX+460EzdeaMNy2akK/eupjyWr6yN1ROVun
7iC6PwgfxXqMCTpAtDUa9kqgHlyBoXg2/0mArD9oY8ODD+barJTsvJ8T6A05/ZSn
eY7ZUejbkBW+ZqxRA5BsMmssh9FFj61/BJkx2Do5xon4mZvgtaj9P2T7gXyFWPhG
3UhzehxXTg1XaxIFmSDRFW9cHTPS8ahQeKi+la2Vou9EBl13PGHaVx8iwAxoC1LB
mCb0ZFGDI1oZ9suXpKSvmFPhlDiic1DSSJoY3c4YScgpRE29W5sHmPQTRdJElY1P
/mBqMRLyrClOrciYrMcKABPmdMVwSA==
=9HCr
-----END PGP SIGNATURE-----payloadtree 82b80ad71ea07a7234626a3be44e7ab16e9d6d12
parent 5fdd8cad3638518242c1b9d7d5857de1b4622370
author Tom Papke <tpapke@palantir.com> 1686731821 +0100
committer Tom Papke <tpapke@palantir.com> 1686731821 +0100

Fix test

Tidy up
uuj: ^https://api.github.com/repos/palantir/atlasdb/commits/477d6e374360b5df66fc4e74628e2dc0a643f12chtml_urlShttps://github.com/palantir/atlasdb/commit/477d6e374360b5df66fc4e74628e2dc0a643f12ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/477d6e374360b5df66fc4e74628e2dc0a643f12c/commentsj( }(login	ToemmscheidJboj$ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j: &https://api.github.com/users/ToemmschejH https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj0 }(jM 	ToemmschejO Jboj$ MDQ6VXNlcjQzNjc1NDkwjQ 4https://avatars.githubusercontent.com/u/43675490?v=4jS h5j: &https://api.github.com/users/ToemmschejH https://github.com/ToemmschejV 0https://api.github.com/users/Toemmsche/followersjX =https://api.github.com/users/Toemmsche/following{/other_user}jZ 6https://api.github.com/users/Toemmsche/gists{/gist_id}j\ =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j^ 4https://api.github.com/users/Toemmsche/subscriptionsj` +https://api.github.com/users/Toemmsche/orgsjb ,https://api.github.com/users/Toemmsche/reposjd 7https://api.github.com/users/Toemmsche/events{/privacy}jf 6https://api.github.com/users/Toemmsche/received_eventsjh Userjj uparents]}(j" (5fdd8cad3638518242c1b9d7d5857de1b4622370j: ^https://api.github.com/repos/palantir/atlasdb/commits/5fdd8cad3638518242c1b9d7d5857de1b4622370jH Shttps://github.com/palantir/atlasdb/commit/5fdd8cad3638518242c1b9d7d5857de1b4622370uastats}(totalK(	additionsK	deletionsK
ufiles](}(j" (c0732dd117e0d492f18b686086a002759beb1281filenameJlock-api/src/main/java/com/palantir/lock/DebugThreadInfoConfiguration.javastatusmodifiedj K j KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/477d6e374360b5df66fc4e74628e2dc0a643f12c/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaraw_urlhttps://github.com/palantir/atlasdb/raw/477d6e374360b5df66fc4e74628e2dc0a643f12c/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.java?ref=477d6e374360b5df66fc4e74628e2dc0a643f12cpatchX  @@ -26,10 +26,6 @@ default boolean recordThreadInfo() {
         return false;
     }
 
-    /**
-     * Whether we should log thread info when we encounter lock contention.
-     * Obviously, this should only be enabled in conjunction with {@link DebugThreadInfoConfiguration#recordThreadInfo}.
-     */
     @Value.Default
     default long threadInfoSnapshotIntervalMillis() {
         return 5000L;u}(j" (6a3062d9d2f958dc4aa180811c2c9014ce5481d1j Glock-impl/src/test/java/com/palantir/lock/impl/LockServiceImplTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/477d6e374360b5df66fc4e74628e2dc0a643f12c/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/477d6e374360b5df66fc4e74628e2dc0a643f12c/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.java?ref=477d6e374360b5df66fc4e74628e2dc0a643f12cj XH  @@ -53,7 +53,7 @@
 
 public final class LockServiceImplTest {
     public static final long SLOW_LOG_TRIGGER_MILLIS = LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS + 10;
-    private static final String TEST_LOCKID = "test-lockId";
+    private static final String TEST_LOCKID = "test_lockId";
     private static final LockDescriptor TEST_LOCK = StringLockDescriptor.of(TEST_LOCKID);
     private static final UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> threadInfoSnapshotLogArg =
             UnsafeArg.of("presumedClientThreadHoldersIfEnabled", Optional.empty());u}(j" (7cc4d2d8b6190e14e8e837769dff6f18ad20ffeej Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/477d6e374360b5df66fc4e74628e2dc0a643f12c/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/477d6e374360b5df66fc4e74628e2dc0a643f12c/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=477d6e374360b5df66fc4e74628e2dc0a643f12cj X	  @@ -299,14 +299,39 @@ public void backgroundSnapshotRunnerWorks() throws InterruptedException {
     }
 
     @Test
-    public void logArgIsUnsafeAndContainsRestrictedSnapshot() throws InterruptedException {
+    public void logArgIsUnsafeAndContainsEmptyOptionalIfNotRecordingThreadInfo() throws InterruptedException {
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
         forceSnapshot();
-
         assertThat(lockService.getSnapshotManager().getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
+                .isEqualTo(UnsafeArg.of("presumedClientThreadHoldersIfEnabled", Optional.empty()));
+    }
+
+    @Test
+    public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() throws InterruptedException {
+        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
+                .isStandaloneServer(false)
+                .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                        .recordThreadInfo(true)
+                        .threadInfoSnapshotIntervalMillis(50L)
+                        .build())
+                .build());
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
+                .doNotBlock()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockServiceWithBackgroundRunner.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockServiceWithBackgroundRunner.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+
+        Awaitility.waitAtMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(lockServiceWithBackgroundRunner
+                        .getSnapshotManager()
+                        .getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
                 .isEqualTo(UnsafeArg.of(
                         "presumedClientThreadHoldersIfEnabled",
-                        Optional.of(Map.of(TEST_LOCK_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1)))));
+                        // Snapshot should be restricted to TEST_LOCK_1
+                        Optional.of(
+                                Map.of(TEST_LOCK_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1))))));
     }
 
     private void forceSnapshot() {u}(j" (cba6348015c254aa9ba5c6b6a2f959d6673f27dcj btimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockService.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/477d6e374360b5df66fc4e74628e2dc0a643f12c/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj https://github.com/palantir/atlasdb/raw/477d6e374360b5df66fc4e74628e2dc0a643f12c/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.java?ref=477d6e374360b5df66fc4e74628e2dc0a643f12cj X  @@ -53,8 +53,7 @@
 public class BlockingTimeLimitedLockService implements CloseableLockService {
     private static final SafeLogger log = SafeLoggerFactory.get(BlockingTimeLimitedLockService.class);
 
-    @VisibleForTesting
-    static final int MAX_THREADINFO_TO_LOG = 20;
+    private static final int MAX_THREADINFO_TO_LOG = 20;
 
     private final CloseableLockService delegate;
     private final TimeLimiter timeLimiter;ueu(b32cfb113e8e4982f290f2b11d4f5c7fd785368f}(sha(b32cfb113e8e4982f290f2b11d4f5c7fd785368fnode_idEC_kwDOAjP5fdoAKGIzMmNmYjExM2U4ZTQ5ODJmMjkwZjJiMTFkNGY1YzdmZDc4NTM2OGYcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-15T15:31:39Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-05-15T15:31:39Zumessage"Autorelease 0.854.0-rc7

[skip ci]tree}(j (7798105d8a030b29d8973acfbb90d62ffad4930furl`https://api.github.com/repos/palantir/atlasdb/git/trees/7798105d8a030b29d8973acfbb90d62ffad4930fuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b32cfb113e8e4982f290f2b11d4f5c7fd785368f
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRiUFwACgkQhbrR8ip7mDAGmwD/YP3e49UM68PT+YyeTmbgUw+S
eMGOLdDjn7oqfGeZSW8A/39KZ9xMjCqYjioYeuFjfmkquW+YqiIHOILmN3ybk3hs
=IkZE
-----END PGP SIGNATURE-----
payloadX(  tree 7798105d8a030b29d8973acfbb90d62ffad4930f
parent 9832b147b793579477ca7c67a684391431722e28
author aalouane <30903736+ergo14@users.noreply.github.com> 1684164699 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684164699 +0000

Autorelease 0.854.0-rc7

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/b32cfb113e8e4982f290f2b11d4f5c7fd785368fhtml_urlShttps://github.com/palantir/atlasdb/commit/b32cfb113e8e4982f290f2b11d4f5c7fd785368fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b32cfb113e8e4982f290f2b11d4f5c7fd785368f/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(j MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(j (9832b147b793579477ca7c67a684391431722e28j ^https://api.github.com/repos/palantir/atlasdb/commits/9832b147b793579477ca7c67a684391431722e28j Shttps://github.com/palantir/atlasdb/commit/9832b147b793579477ca7c67a684391431722e28uastats}(totalK 	additionsK 	deletionsK ufiles]u(94244ba59e6dcc311a313293b7fc58f6420e7b9b}(sha(94244ba59e6dcc311a313293b7fc58f6420e7b9bnode_idEC_kwDOAjP5fdoAKDk0MjQ0YmE1OWU2ZGNjMzExYTMxMzI5M2I3ZmM1OGY2NDIwZTdiOWIcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-06-29T15:16:07Zu	committer}(j! svc-autoreleasej# -pd-foundry-infrastructure-notify@palantir.comj% 2023-06-29T15:16:07ZumessageAutorelease 0.882.0

[skip ci]tree}(j (3ea37aba376a4a428c876f3d3c7719253f3e97d0url`https://api.github.com/repos/palantir/atlasdb/git/trees/3ea37aba376a4a428c876f3d3c7719253f3e97d0uj1 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/94244ba59e6dcc311a313293b7fc58f6420e7b9b
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmSdoD8ACgkQhbrR8ip7mDBiKAD+IXjzcNzR+1gK3Vp5urfo+8lr
QCn7dMnZe2mrtlTwNTQBAOXusz38d7S6RxE0uh8vfFS5VaGjyF9TBmb+vbe2lnUY
=mHPG
-----END PGP SIGNATURE-----
payloadX0  tree 3ea37aba376a4a428c876f3d3c7719253f3e97d0
parent f612f574bb865b66a1fab8973cc7231ab0c220be
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1688051767 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1688051767 +0000

Autorelease 0.882.0

[skip ci]uuj1 ^https://api.github.com/repos/palantir/atlasdb/commits/94244ba59e6dcc311a313293b7fc58f6420e7b9bhtml_urlShttps://github.com/palantir/atlasdb/commit/94244ba59e6dcc311a313293b7fc58f6420e7b9bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/94244ba59e6dcc311a313293b7fc58f6420e7b9b/commentsj }(loginsvc-autoreleaseidJ(j MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j1 ,https://api.github.com/users/svc-autoreleasej? "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj' }(jD svc-autoreleasejF J(j MDQ6VXNlcjUxNzE4MzQ2jH 4https://avatars.githubusercontent.com/u/51718346?v=4jJ h5j1 ,https://api.github.com/users/svc-autoreleasej? "https://github.com/svc-autoreleasejM 6https://api.github.com/users/svc-autorelease/followersjO Chttps://api.github.com/users/svc-autorelease/following{/other_user}jQ <https://api.github.com/users/svc-autorelease/gists{/gist_id}jS Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jU :https://api.github.com/users/svc-autorelease/subscriptionsjW 1https://api.github.com/users/svc-autorelease/orgsjY 2https://api.github.com/users/svc-autorelease/reposj[ =https://api.github.com/users/svc-autorelease/events{/privacy}j] <https://api.github.com/users/svc-autorelease/received_eventsj_ Userja uparents]}(j (f612f574bb865b66a1fab8973cc7231ab0c220bej1 ^https://api.github.com/repos/palantir/atlasdb/commits/f612f574bb865b66a1fab8973cc7231ab0c220bej? Shttps://github.com/palantir/atlasdb/commit/f612f574bb865b66a1fab8973cc7231ab0c220beuastats}(totalK 	additionsK 	deletionsK ufiles](}(j (3750fb7fc4996863b5345b1cb6cbf683dd8cfc1ffilename changelog/0.882.0/pr-6648.v2.ymlstatusrenamedj{ K j| K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/94244ba59e6dcc311a313293b7fc58f6420e7b9b/changelog%2F0.882.0%2Fpr-6648.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/94244ba59e6dcc311a313293b7fc58f6420e7b9b/changelog%2F0.882.0%2Fpr-6648.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.882.0%2Fpr-6648.v2.yml?ref=94244ba59e6dcc311a313293b7fc58f6420e7b9bprevious_filename$changelog/@unreleased/pr-6648.v2.ymlu}(j (aa4df8d917755227eec390dd5e0d424aebabf4c7j  changelog/0.882.0/pr-6649.v2.ymlj renamedj{ K j| K j K j vhttps://github.com/palantir/atlasdb/blob/94244ba59e6dcc311a313293b7fc58f6420e7b9b/changelog%2F0.882.0%2Fpr-6649.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/94244ba59e6dcc311a313293b7fc58f6420e7b9b/changelog%2F0.882.0%2Fpr-6649.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.882.0%2Fpr-6649.v2.yml?ref=94244ba59e6dcc311a313293b7fc58f6420e7b9bj $changelog/@unreleased/pr-6649.v2.ymlueu(d66e12bdead8fd5b4c90d5784cd0a19d57e852e8}(sha(d66e12bdead8fd5b4c90d5784cd0a19d57e852e8node_idEC_kwDOAjP5fdoAKGQ2NmUxMmJkZWFkOGZkNWI0YzkwZDU3ODRjZDBhMTlkNTdlODUyZTgcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-14T10:06:37Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-06-14T10:06:37Zumessage\Merge remote-tracking branch 'origin/tpapke/p3/log-threadinfo' into tpapke/p3/log-threadinfotree}(j (78acfa18e5fe11848d85b46864eaa5b79d237a54url`https://api.github.com/repos/palantir/atlasdb/git/trees/78acfa18e5fe11848d85b46864eaa5b79d237a54uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d66e12bdead8fd5b4c90d5784cd0a19d57e852e8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSJkS4ACgkQmF9s0kaF
Iw1iBggAv7OHOa7RVUH3fihKN7qx9As30IA7OJrx6h0bzzp1KZi9/oeo/fH+rIZU
eBPyvpRkoeDCnLTDAm0NcwzFIy1yW8PmX6koRQxNhxpVTSBsz02+ft8YK5JGmTtj
Be9HJRLyXfGxTk2S9Y35lOYOnVrA6kAxccvIspKBdWjHaEVeO0p7SW5ODrXokT8V
wWxxnL99G+d1NpxKRIvX/JeougcLDsbztIyCbMsnQbrgQkjE8Fk4h2ypW2me9BQM
ZN189/icTwVqoMN/+1PwBxe9IKWXbsYP52wv4PCL7FpLsKA4U8VUeLIHKUrzPdUv
u79EYyNoEktfdQR16gU59nHk/i556g==
=S0OA
-----END PGP SIGNATURE-----payloadX_  tree 78acfa18e5fe11848d85b46864eaa5b79d237a54
parent b06315ff7b94241e882ea8f765038986038efb18
parent 7365b309d8fa07e6a318d8bd2764abfcb88fb7c2
author Tom Papke <tpapke@palantir.com> 1686737197 +0100
committer Tom Papke <tpapke@palantir.com> 1686737197 +0100

Merge remote-tracking branch 'origin/tpapke/p3/log-threadinfo' into tpapke/p3/log-threadinfo
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/d66e12bdead8fd5b4c90d5784cd0a19d57e852e8html_urlShttps://github.com/palantir/atlasdb/commit/d66e12bdead8fd5b4c90d5784cd0a19d57e852e8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d66e12bdead8fd5b4c90d5784cd0a19d57e852e8/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jboj MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents](}(j (b06315ff7b94241e882ea8f765038986038efb18j ^https://api.github.com/repos/palantir/atlasdb/commits/b06315ff7b94241e882ea8f765038986038efb18j Shttps://github.com/palantir/atlasdb/commit/b06315ff7b94241e882ea8f765038986038efb18u}(j (7365b309d8fa07e6a318d8bd2764abfcb88fb7c2j ^https://api.github.com/repos/palantir/atlasdb/commits/7365b309d8fa07e6a318d8bd2764abfcb88fb7c2j Shttps://github.com/palantir/atlasdb/commit/7365b309d8fa07e6a318d8bd2764abfcb88fb7c2uestats}(totalK	additionsK	deletionsK ufiles]}(j (a6c9d3dd239346b5de33d708683efcea7ca6e0d1filename$changelog/@unreleased/pr-6623.v2.ymlstatusaddedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/d66e12bdead8fd5b4c90d5784cd0a19d57e852e8/changelog%2F%40unreleased%2Fpr-6623.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/d66e12bdead8fd5b4c90d5784cd0a19d57e852e8/changelog%2F%40unreleased%2Fpr-6623.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6623.v2.yml?ref=d66e12bdead8fd5b4c90d5784cd0a19d57e852e8patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Log lock holder thread info on timeout, slow lock acquisition and contention
+  links:
+  - https://github.com/palantir/atlasdb/pull/6623uau(d4f6b26a4ba49b0f817984083927b43b617dfcd1}(sha(d4f6b26a4ba49b0f817984083927b43b617dfcd1node_idEC_kwDOAjP5fdoAKGQ0ZjZiMjZhNGJhNDliMGY4MTc5ODQwODM5MjdiNDNiNjE3ZGZjZDEcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-05-30T15:09:04Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-05-30T15:09:04Zumessageread no touch workflowtree}(j (b3bd0e22a63aa9abe271cf087bd31495869ad82eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/b3bd0e22a63aa9abe271cf087bd31495869ad82euj+ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d4f6b26a4ba49b0f817984083927b43b617dfcd1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmR2EZAACgkQJd22kJ7J
Giw32wf/TdtFHWP1joCYn+nxym1w95mn6Ek3ItT/HuLdFWmmK1+1X3CKim9pGbKE
nOl1h3iDvkPv+zChvQBGIc0BGAsZeWNOBuNbMDeE2t1Txt3mSt7FLaXHxG5el1Wv
61HxcnsWYgaVfLT3Y+aJjGYKq2LRDWz+Vpk8m3OCLn7sbBWX8LWuqzpxahuL9CkK
4xeA2tbByWZIICWue8ZLCUHM4NZPbpsMKLakpdjXc5UF6jeTX3sa6Ixb5C0zowLX
zGSUweiQzy05M6XgWBR1+yKyiDd5rIDIq0Wl9HfouuHDLj900FU+ZOt9nYk483Na
yFpSQhnkB4ldRutMxZQ93Fu8uG0peQ==
=AnhD
-----END PGP SIGNATURE-----payloadtree b3bd0e22a63aa9abe271cf087bd31495869ad82e
parent a575301875df420d5e9feb8842737b23fdce5f48
author Lucas Meireles <meireles31@msn.com> 1685459344 +0100
committer Lucas Meireles <meireles31@msn.com> 1685459344 +0100

read no touch workflow
uuj+ ^https://api.github.com/repos/palantir/atlasdb/commits/d4f6b26a4ba49b0f817984083927b43b617dfcd1html_urlShttps://github.com/palantir/atlasdb/commit/d4f6b26a4ba49b0f817984083927b43b617dfcd1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d4f6b26a4ba49b0f817984083927b43b617dfcd1/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j+ %https://api.github.com/users/LucasIMEj9 https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj! }(j> LucasIMEj@ Jg j MDQ6VXNlcjY3ODczMTE=jB 3https://avatars.githubusercontent.com/u/6787311?v=4jD h5j+ %https://api.github.com/users/LucasIMEj9 https://github.com/LucasIMEjG /https://api.github.com/users/LucasIME/followersjI <https://api.github.com/users/LucasIME/following{/other_user}jK 5https://api.github.com/users/LucasIME/gists{/gist_id}jM <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jO 3https://api.github.com/users/LucasIME/subscriptionsjQ *https://api.github.com/users/LucasIME/orgsjS +https://api.github.com/users/LucasIME/reposjU 6https://api.github.com/users/LucasIME/events{/privacy}jW 5https://api.github.com/users/LucasIME/received_eventsjY Userj[ uparents]}(j (a575301875df420d5e9feb8842737b23fdce5f48j+ ^https://api.github.com/repos/palantir/atlasdb/commits/a575301875df420d5e9feb8842737b23fdce5f48j9 Shttps://github.com/palantir/atlasdb/commit/a575301875df420d5e9feb8842737b23fdce5f48uastats}(totalKŌ	additionsKČ	deletionsKufiles](}(j (11728bbc81be1f0df470a3ca3a379149027e68cdfilenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedju K&jv KchangesK'blob_urlhttps://github.com/palantir/atlasdb/blob/d4f6b26a4ba49b0f817984083927b43b617dfcd1/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d4f6b26a4ba49b0f817984083927b43b617dfcd1/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=d4f6b26a4ba49b0f817984083927b43b617dfcd1patchX  @@ -35,6 +35,8 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflows;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadsNoTouchWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
@@ -136,6 +138,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().transientRowsConfig();
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
+        SingleBusyCellReadsNoTouchWorkflowConfiguration singleBusyCellReadNoTouchWorkflowConfiguration =
+                configuration.install().singleBusyCellReadsNoTouchConfig();
 
         waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
 
@@ -148,7 +152,11 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                         createTransientRowsWorkflowValidator(
                                 transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
                         createSingleBusyCellWorkflowValidator(
-                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()));
+                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellReadNoTouchWorkflowValidator(
+                                transactionStoreFactory,
+                                singleBusyCellReadNoTouchWorkflowConfiguration,
+                                environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -230,6 +238,35 @@ private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
                 SerializableInvariantLogReporter.INSTANCE);
     }
 
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellReadNoTouchWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellReadsNoTouchWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellReadsNoTouchWorkflowConfiguration.class.getSimpleName() + "-read")
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellReadsNoTouchWorkflowConfiguration.class.getSimpleName() + "-write")
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellReadNoTouchWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellReadNoTouchWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
     private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             RingWorkflowConfiguration workflowConfig,u}(j (6aeb166a0b455aed4854a1c4fc5c51e51f92fc77j{ atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj} modifiedju Kjv K j Kj https://github.com/palantir/atlasdb/blob/d4f6b26a4ba49b0f817984083927b43b617dfcd1/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://github.com/palantir/atlasdb/raw/d4f6b26a4ba49b0f817984083927b43b617dfcd1/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=d4f6b26a4ba49b0f817984083927b43b617dfcd1j X2  @@ -19,6 +19,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadsNoTouchWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
@@ -39,5 +40,7 @@ public interface WorkloadServerInstallConfiguration {
 
     SingleBusyCellWorkflowConfiguration singleBusyCellConfig();
 
+    SingleBusyCellReadsNoTouchWorkflowConfiguration singleBusyCellReadsNoTouchConfig();
+
     boolean exitAfterRunning();
 }u}(j (6d12b135bcac79d53f73c0dd7b3058858cb5d7f8j{ Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj} modifiedju Kjv K j Kj https://github.com/palantir/atlasdb/blob/d4f6b26a4ba49b0f817984083927b43b617dfcd1/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/d4f6b26a4ba49b0f817984083927b43b617dfcd1/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=d4f6b26a4ba49b0f817984083927b43b617dfcd1j X  @@ -29,4 +29,11 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: false
\ No newline at end of fileu}(j (df39381b33b24b1e2b541661b7d4485ce816b53bj{ Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj} modifiedju Kjv K j Kj https://github.com/palantir/atlasdb/blob/d4f6b26a4ba49b0f817984083927b43b617dfcd1/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://github.com/palantir/atlasdb/raw/d4f6b26a4ba49b0f817984083927b43b617dfcd1/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=d4f6b26a4ba49b0f817984083927b43b617dfcd1j Xf  @@ -66,4 +66,11 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: trueu}(j (d423012c107e2402b3df39dda881c5b92fd47e2bj{ Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj} modifiedju Kjv K j Kj https://github.com/palantir/atlasdb/blob/d4f6b26a4ba49b0f817984083927b43b617dfcd1/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/d4f6b26a4ba49b0f817984083927b43b617dfcd1/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=d4f6b26a4ba49b0f817984083927b43b617dfcd1j X  @@ -30,4 +30,11 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: true
\ No newline at end of fileu}(j (f116dbc62ec3a1e9b8a8327c4ff568ed2e1e7ce2j{ tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflows.javaj} addedju Kfjv K j Kfj https://github.com/palantir/atlasdb/blob/d4f6b26a4ba49b0f817984083927b43b617dfcd1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaj https://github.com/palantir/atlasdb/raw/d4f6b26a4ba49b0f817984083927b43b617dfcd1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.java?ref=d4f6b26a4ba49b0f817984083927b43b617dfcd1j X  @@ -0,0 +1,102 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions.
+ */
+public final class SingleBusyCellReadNoTouchWorkflows {
+    private SingleBusyCellReadNoTouchWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadsNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReads(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReads(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadsNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(
+                        txn -> txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL))))
+                .collect(Collectors.toList());
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadsNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
+    }
+}u}(j (691d5290616ba5608c846a2413ffa389eb2dd607j{ atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadsNoTouchWorkflowConfiguration.javaj} addedju K jv K j K j https://github.com/palantir/atlasdb/blob/d4f6b26a4ba49b0f817984083927b43b617dfcd1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadsNoTouchWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/d4f6b26a4ba49b0f817984083927b43b617dfcd1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadsNoTouchWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadsNoTouchWorkflowConfiguration.java?ref=d4f6b26a4ba49b0f817984083927b43b617dfcd1j Xf  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellReadsNoTouchWorkflowConfiguration.TYPE)
+public interface SingleBusyCellReadsNoTouchWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell-reads-no-touch";
+
+    TableConfiguration tableConfiguration();
+}ueu(782cccb3dbc3d215799e421ff60f9ba3d5e2c6d0}(sha(782cccb3dbc3d215799e421ff60f9ba3d5e2c6d0node_idEC_kwDOAjP5fdoAKDc4MmNjY2IzZGJjM2QyMTU3OTllNDIxZmY2MGY5YmEzZDVlMmM2ZDAcommit}(author}(nameCVdV-auemail)69226052+CVdV-au@users.noreply.github.comdate2023-07-21T09:20:48Zu	committer}(j GitHubj noreply@github.comj 2023-07-21T09:20:48ZumessageBump CI to Oracle 19.20tree}(j (6babd7280064d3ca3cd81a623cf54dfea0fa245eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/6babd7280064d3ca3cd81a623cf54dfea0fa245euj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/782cccb3dbc3d215799e421ff60f9ba3d5e2c6d0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkuk3wCRBK7hj4Ov3rIwAANtEIAApScX28mZLchxXXESi8b+nq
5c+7LN4OM0Gb6zt6kvJociLfXlYrJqI2aqeN74xFLe/eS5Vk+pZGc9m7qZ265Bqi
sab3bnIpjBwK5S456d0FJsv9omKDpAQKDYor0RpNJDkyOweRLBfNsmVGUCGtzi1O
CKBpwc87g8wfxgoCOJ1uZrsPvrUsZ6WngRWTilLVyWsFcgzKsmCPJCvPcC0j2Ru6
xwF20eTghw6D+Cv1bHLMt27cbMRHo+tvy0721+ojWbSPD3hFgIJ5IVWpcJutYqt7
UIRMD8oZHOar3qzhhcTryVFyn5YGA0xXh68ZUH6DZC0K1Xd14Xdt87nGT8my+jc=
=Ksw2
-----END PGP SIGNATURE-----
payloadtree 6babd7280064d3ca3cd81a623cf54dfea0fa245e
parent 4e050a9cb4f8f2b45b8b700df082f442d2fec694
author CVdV-au <69226052+CVdV-au@users.noreply.github.com> 1689931248 +1000
committer GitHub <noreply@github.com> 1689931248 +1000

Bump CI to Oracle 19.20uuj ^https://api.github.com/repos/palantir/atlasdb/commits/782cccb3dbc3d215799e421ff60f9ba3d5e2c6d0html_urlShttps://github.com/palantir/atlasdb/commit/782cccb3dbc3d215799e421ff60f9ba3d5e2c6d0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/782cccb3dbc3d215799e421ff60f9ba3d5e2c6d0/commentsj }(loginCVdV-auidJDN j MDQ6VXNlcjY5MjI2MDUy
avatar_url4https://avatars.githubusercontent.com/u/69226052?v=4gravatar_idh5j $https://api.github.com/users/CVdV-auj https://github.com/CVdV-au
followers_url.https://api.github.com/users/CVdV-au/followers
following_url;https://api.github.com/users/CVdV-au/following{/other_user}	gists_url4https://api.github.com/users/CVdV-au/gists{/gist_id}starred_url;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/CVdV-au/subscriptionsorganizations_url)https://api.github.com/users/CVdV-au/orgs	repos_url*https://api.github.com/users/CVdV-au/repos
events_url5https://api.github.com/users/CVdV-au/events{/privacy}received_events_url4https://api.github.com/users/CVdV-au/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj  Userj uparents]}(j (4e050a9cb4f8f2b45b8b700df082f442d2fec694j ^https://api.github.com/repos/palantir/atlasdb/commits/4e050a9cb4f8f2b45b8b700df082f442d2fec694j Shttps://github.com/palantir/atlasdb/commit/4e050a9cb4f8f2b45b8b700df082f442d2fec694uastats}(totalK	additionsK	deletionsKufiles]}(j (1302da74efe18e84324e9d1b29b32b97d32d2286filename+atlasdb-ete-tests/docker-compose.oracle.ymlstatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/782cccb3dbc3d215799e421ff60f9ba3d5e2c6d0/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlraw_url~https://github.com/palantir/atlasdb/raw/782cccb3dbc3d215799e421ff60f9ba3d5e2c6d0/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.oracle.yml?ref=782cccb3dbc3d215799e421ff60f9ba3d5e2c6d0patch@@ -2,7 +2,7 @@ version: '2'
 
 services:
   oracle:
-    image: palantirtechnologies/oracle-atlasdb:19.19.0.0-se
+    image: palantirtechnologies/oracle-atlasdb:19.20.0.0-se
     ports:
       - "1521"
 uau(cd8beea5cbaf2b96d1ba8cb220315faff96b510f}(sha(cd8beea5cbaf2b96d1ba8cb220315faff96b510fnode_idEC_kwDOAjP5fdoAKGNkOGJlZWE1Y2JhZjJiOTZkMWJhOGNiMjIwMzE1ZmFmZjk2YjUxMGYcommit}(author}(name	Tom Papkeemail+43675490+Toemmsche@users.noreply.github.comdate2023-06-29T16:58:06Zu	committer}(j9 GitHubj; noreply@github.comj= 2023-06-29T16:58:06Zumessagen[LWMeta] Add LockMetadata to IdentifiedLockRequest (#6647)

[LWMeta] Add LockMetadata to IdentifiedLockRequesttree}(j1 (fe03db5fd9d537f696c658453b50cb101a31db86url`https://api.github.com/repos/palantir/atlasdb/git/trees/fe03db5fd9d537f696c658453b50cb101a31db86ujI bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cd8beea5cbaf2b96d1ba8cb220315faff96b510f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJknbgeCRBK7hj4Ov3rIwAAE4YIAC44aYbFbNhg4g4ehhalr56o
cfIoZ5nUCF7OQ6LMJ9hqELWRhRyECDvL7ym7yU4HLNSCGxnpl0pr3GnyQqWbeu+0
BsnD31YE9rkjrq2V+RWx3Oko1KqM5vTbNG5m07PDwQnHNno3eUIL/q7sVvVtea9S
J2Tavvk4z5gxAyvYHSyRXDG8dVF80a1LZIuGeciP9jGwz/T3/c35nXwFZpU9CPAL
1lOClskIJEKvLiZxpJmNYB/DTXxexkcAKbo5DbWgXzqPG//zxXhtveZCansVagxR
SZNH159nI+2t0WrkTcMpH0om/8KMAWIvpHD7kWWTQ1yLiOBLAtt7fOM+5E7yyqw=
=TslJ
-----END PGP SIGNATURE-----
payloadXU  tree fe03db5fd9d537f696c658453b50cb101a31db86
parent 75d54b437c1ebd7cb537e69a0e8cd1581f68d065
author Tom Papke <43675490+Toemmsche@users.noreply.github.com> 1688057886 +0200
committer GitHub <noreply@github.com> 1688057886 +0000

[LWMeta] Add LockMetadata to IdentifiedLockRequest (#6647)

[LWMeta] Add LockMetadata to IdentifiedLockRequest
uujI ^https://api.github.com/repos/palantir/atlasdb/commits/cd8beea5cbaf2b96d1ba8cb220315faff96b510fhtml_urlShttps://github.com/palantir/atlasdb/commit/cd8beea5cbaf2b96d1ba8cb220315faff96b510fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cd8beea5cbaf2b96d1ba8cb220315faff96b510f/commentsj7 }(login	ToemmscheidJboj3 MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jI &https://api.github.com/users/ToemmschejW https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj? }(j\ web-flowj^ J/j3 MDQ6VXNlcjE5ODY0NDQ3j` 4https://avatars.githubusercontent.com/u/19864447?v=4jb h5jI %https://api.github.com/users/web-flowjW https://github.com/web-flowje /https://api.github.com/users/web-flow/followersjg <https://api.github.com/users/web-flow/following{/other_user}ji 5https://api.github.com/users/web-flow/gists{/gist_id}jk <https://api.github.com/users/web-flow/starred{/owner}{/repo}jm 3https://api.github.com/users/web-flow/subscriptionsjo *https://api.github.com/users/web-flow/orgsjq +https://api.github.com/users/web-flow/reposjs 6https://api.github.com/users/web-flow/events{/privacy}ju 5https://api.github.com/users/web-flow/received_eventsjw Userjy uparents]}(j1 (75d54b437c1ebd7cb537e69a0e8cd1581f68d065jI ^https://api.github.com/repos/palantir/atlasdb/commits/75d54b437c1ebd7cb537e69a0e8cd1581f68d065jW Shttps://github.com/palantir/atlasdb/commit/75d54b437c1ebd7cb537e69a0e8cd1581f68d065uastats}(totalK	additionsKt	deletionsK
ufiles](}(j1 (59a104ba72569b4dfd00ae8626fea6e626f1cc19filename$changelog/@unreleased/pr-6647.v2.ymlstatusaddedj Kj K changesKblob_url       |https://github.com/palantir/atlasdb/blob/cd8beea5cbaf2b96d1ba8cb220315faff96b510f/changelog%2F%40unreleased%2Fpr-6647.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/cd8beea5cbaf2b96d1ba8cb220315faff96b510f/changelog%2F%40unreleased%2Fpr-6647.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6647.v2.yml?ref=cd8beea5cbaf2b96d1ba8cb220315faff96b510fpatch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add LockMetadata to IdentifiedLockRequest'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6647u}(j1 (689da2f7264afbb03bb06b6a430723bd1dcbbf4bj lock-api-objects/build.gradlej modifiedj Kj K j Kj qhttps://github.com/palantir/atlasdb/blob/cd8beea5cbaf2b96d1ba8cb220315faff96b510f/lock-api-objects%2Fbuild.gradlej phttps://github.com/palantir/atlasdb/raw/cd8beea5cbaf2b96d1ba8cb220315faff96b510f/lock-api-objects%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fbuild.gradle?ref=cd8beea5cbaf2b96d1ba8cb220315faff96b510fj X_  @@ -16,6 +16,7 @@ dependencies {
     implementation 'com.google.errorprone:error_prone_annotations'
     implementation 'com.google.guava:guava'
     implementation project(':commons-annotations')
+    testImplementation project(path: ':lock-api')
 
     annotationProcessor 'org.immutables:value'
     compileOnly 'org.immutables:value::annotations'u}(j1 (baa29a11aad2762f424acb1d510175b8849ecba2j Olock-api-objects/src/main/java/com/palantir/lock/watch/LockRequestMetadata.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/cd8beea5cbaf2b96d1ba8cb220315faff96b510f/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj https://github.com/palantir/atlasdb/raw/cd8beea5cbaf2b96d1ba8cb220315faff96b510f/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.java?ref=cd8beea5cbaf2b96d1ba8cb220315faff96b510fj X  @@ -30,4 +30,10 @@
 @Value.Immutable
 public interface LockRequestMetadata {
     Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata();
+
+    static LockRequestMetadata of(Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata) {
+        return ImmutableLockRequestMetadata.builder()
+                .lockDescriptorToChangeMetadata(lockDescriptorToChangeMetadata)
+                .build();
+    }
 }u}(j1 (6ad04228eeb384671486cf32446155659b4c354ej Jlock-api/src/main/java/com/palantir/lock/client/IdentifiedLockRequest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/cd8beea5cbaf2b96d1ba8cb220315faff96b510f/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.javaj https://github.com/palantir/atlasdb/raw/cd8beea5cbaf2b96d1ba8cb220315faff96b510f/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.java?ref=cd8beea5cbaf2b96d1ba8cb220315faff96b510fj X  @@ -15,10 +15,12 @@
  */
 package com.palantir.lock.client;
 
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.Unsafe;
 import java.util.Optional;
 import java.util.Set;
@@ -43,15 +45,32 @@ public interface IdentifiedLockRequest {
     @Value.Parameter
     Optional<String> getClientDescription();
 
+    @Value.Parameter
+    @JsonIgnore
+    Optional<LockRequestMetadata> getMetadata();
+
     static IdentifiedLockRequest of(Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs) {
         return ImmutableIdentifiedLockRequest.of(
-                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.empty());
+                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.empty(), Optional.empty());
     }
 
     static IdentifiedLockRequest of(
             Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs, String clientDescription) {
         return ImmutableIdentifiedLockRequest.of(
-                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription));
+                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription), Optional.empty());
+    }
+
+    static IdentifiedLockRequest of(
+            Set<LockDescriptor> lockDescriptors,
+            long acquireTimeoutMs,
+            String clientDescription,
+            LockRequestMetadata metadata) {
+        return ImmutableIdentifiedLockRequest.of(
+                UUID.randomUUID(),
+                lockDescriptors,
+                acquireTimeoutMs,
+                Optional.of(clientDescription),
+                Optional.of(metadata));
     }
 
     static IdentifiedLockRequest from(LockRequest lockRequest) {u}(j1 (9f55ad6d5a91523f5133238f9b39ba8002664e51j Nlock-api/src/test/java/com/palantir/lock/client/IdentifiedLockRequestTest.javaj modifiedj KIj Kj KTj https://github.com/palantir/atlasdb/blob/cd8beea5cbaf2b96d1ba8cb220315faff96b510f/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj https://github.com/palantir/atlasdb/raw/cd8beea5cbaf2b96d1ba8cb220315faff96b510f/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.java?ref=cd8beea5cbaf2b96d1ba8cb220315faff96b510fj X  @@ -19,24 +19,86 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
 import com.fasterxml.jackson.datatype.guava.GuavaModule;
 import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockRequestMetadata;
+import java.nio.charset.StandardCharsets;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.UUID;
 import org.junit.Test;
 
 public class IdentifiedLockRequestTest {
-    private static final String SERIALIZED_LOCK_REQUEST = "{"
-            + "\"requestId\":\"885afd9c-de62-44ff-a517-5db14b71bfaa\","
-            + "\"lockDescriptors\":[{\"bytes\":\"Zm9v\"}],"
-            + "\"acquireTimeoutMs\":123,"
-            + "\"clientDescription\":\"Thread: main\"}";
+    private static final String BASE = "src/test/resources/identified-lock-request-wire-format/";
+    private static final boolean REWRITE_JSON_BLOBS = false;
+    private static final IdentifiedLockRequest BASELINE_REQUEST = ImmutableIdentifiedLockRequest.builder()
+            .requestId(new UUID(1337, 42))
+            .lockDescriptors(ImmutableSet.of(StringLockDescriptor.of("lock1"), StringLockDescriptor.of("lock2")))
+            .acquireTimeoutMs(100)
+            .clientDescription("client: test, thread: test")
+            .build();
+    private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(ImmutableMap.of(
+            StringLockDescriptor.of("lock1"), ChangeMetadata.created("something".getBytes(StandardCharsets.UTF_8))));
+    private static final ObjectMapper MAPPER = new ObjectMapper()
+            .enable(SerializationFeature.INDENT_OUTPUT)
+            .registerModule(new Jdk8Module())
+            .registerModule(new GuavaModule());
 
-    private static final ObjectMapper mapper =
-            new ObjectMapper().registerModule(new Jdk8Module()).registerModule(new GuavaModule());
+    @Test
+    public void baselineRequestIsFullCompat() {
+        assertSerializedEquals(BASELINE_REQUEST, "baseline");
+        assertDeserializedEquals("baseline", BASELINE_REQUEST);
+    }
 
     @Test
-    public void ensureSerdeBackcompat() throws Exception {
-        IdentifiedLockRequest request = mapper.readValue(SERIALIZED_LOCK_REQUEST, IdentifiedLockRequest.class);
-        String deserialized = mapper.writeValueAsString(request);
-        assertThat(mapper.readTree(deserialized)).isEqualTo(mapper.readTree(SERIALIZED_LOCK_REQUEST));
+    public void baselineRequestWithMetadataIsBackCompat() {
+        assertSerializedEquals(
+                ImmutableIdentifiedLockRequest.copyOf(BASELINE_REQUEST).withMetadata(LOCK_REQUEST_METADATA),
+                "baseline");
+    }
+
+    private static void assertSerializedEquals(IdentifiedLockRequest request, String jsonFileName) {
+        try {
+            Path path = getJsonPath(jsonFileName);
+            if (REWRITE_JSON_BLOBS) {
+                MAPPER.writeValue(path.toFile(), request);
+            }
+            String serialized = serialize(request);
+            assertThat(MAPPER.readTree(serialized))
+                    .as("Serialization yields identical JSON representation")
+                    .isEqualTo(MAPPER.readTree(Files.readString(path)));
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static void assertDeserializedEquals(String jsonFileName, IdentifiedLockRequest request) {
+        assertThat(deserialize(jsonFileName)).isEqualTo(request);
+    }
+
+    private static String serialize(IdentifiedLockRequest request) {
+        try {
+            return MAPPER.writeValueAsString(request);
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static IdentifiedLockRequest deserialize(String jsonFileName) {
+        try {
+            return MAPPER.readValue(Files.readString(getJsonPath(jsonFileName)), IdentifiedLockRequest.class);
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static Path getJsonPath(String jsonFileName) {
+        return Paths.get(BASE + jsonFileName + ".json");
     }
 }u}(j1 (88f329985fc4d91067bebcd353b56f20d58b75bej Mlock-api/src/test/resources/identified-lock-request-wire-format/baseline.jsonj addedj K
j K j K
j https://github.com/palantir/atlasdb/blob/cd8beea5cbaf2b96d1ba8cb220315faff96b510f/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.jsonj https://github.com/palantir/atlasdb/raw/cd8beea5cbaf2b96d1ba8cb220315faff96b510f/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.jsonj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.json?ref=cd8beea5cbaf2b96d1ba8cb220315faff96b510fj X  @@ -0,0 +1,10 @@
+{
+  "requestId" : "00000000-0000-0539-0000-00000000002a",
+  "lockDescriptors" : [ {
+    "bytes" : "bG9jazE="
+  }, {
+    "bytes" : "bG9jazI="
+  } ],
+  "acquireTimeoutMs" : 100,
+  "clientDescription" : "client: test, thread: test"
+}
\ No newline at end of fileueu(48b4c0479eca14b9153257de5967d6d2ed5bb010}(sha(48b4c0479eca14b9153257de5967d6d2ed5bb010node_idEC_kwDOAjP5fdoAKDQ4YjRjMDQ3OWVjYTE0YjkxNTMyNTdkZTU5NjdkNmQyZWQ1YmIwMTAcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-25T13:00:40Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-04-28T15:51:51Zumessageaddress commentstree}(j (e944fe5ca863015fe7dfb03a267e36157ef07090url`https://api.github.com/repos/palantir/atlasdb/git/trees/e944fe5ca863015fe7dfb03a267e36157ef07090uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/48b4c0479eca14b9153257de5967d6d2ed5bb010
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRL65kACgkQmPPOpKR4
XS0UxQf/UE2wEOabdgNN/RNC2JTUd2dzICK0g4JuCflIYkorHoxlA+cTowxDmYnu
IVqPrjZ8rzfs/rR45C7ZzsPdKgQ4t+d6fc4pvA13VyGkX8mBTM4E7q9pRRM2LS5C
vSl0bP10EVhl/GIwq0vLZpdBqZSzb56pPD1rVfxoIdEgzciVvc0ss2o9V878+S8h
6vD/YB4bb4yPj9qi7QQhOkOAW2ZcD4wY0W3FBiZfNX8/fzmpcNmGU/X71FBjk4Xz
4Izxd5AqTe50FGIuWTmPZsyZCT0ZnmfUs3RfMVE4JdJQL6VQkz7FDrBCVirqaaKh
KwRWyGS2xeP0Z70zLOhIWgkj4IyuaQ==
=HdSO
-----END PGP SIGNATURE-----payloadtree e944fe5ca863015fe7dfb03a267e36157ef07090
parent b390565205aea78c2743d413ce8f29623bb62312
author Sam Kramer <skramer@palantir.com> 1682427640 +0100
committer Sam Kramer <skramer@palantir.com> 1682697111 +0100

address comments
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/48b4c0479eca14b9153257de5967d6d2ed5bb010html_urlShttps://github.com/palantir/atlasdb/commit/48b4c0479eca14b9153257de5967d6d2ed5bb010comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/48b4c0479eca14b9153257de5967d6d2ed5bb010/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j
 >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (b390565205aea78c2743d413ce8f29623bb62312j ^https://api.github.com/repos/palantir/atlasdb/commits/b390565205aea78c2743d413ce8f29623bb62312j Shttps://github.com/palantir/atlasdb/commit/b390565205aea78c2743d413ce8f29623bb62312uastats}(totalK*	additionsK	deletionsKufiles](}(j (b51b7468102c2deaa059733d3c292ed45f95717efilenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj2 Kj3 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/48b4c0479eca14b9153257de5967d6d2ed5bb010/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/48b4c0479eca14b9153257de5967d6d2ed5bb010/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=48b4c0479eca14b9153257de5967d6d2ed5bb010patchX  @@ -34,13 +34,9 @@
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
 import com.palantir.atlasdb.workload.workflow.Workflow;
-<<<<<<< HEAD
 import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
-=======
-import com.palantir.atlasdb.workload.workflow.WorkflowValidator;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflows;
->>>>>>> cf0e50e922 (stash)
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
 import com.palantir.conjure.java.serialization.ObjectMappers;
@@ -58,7 +54,6 @@ >>>>>>> cf0e50e922 (stash)
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutorService;
-import java.util.concurrent.atomic.AtomicBoolean;
 
 public class WorkloadServerLauncher extends Application<WorkloadServerConfiguration> {
 
@@ -124,41 +119,41 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
-
     private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             RingWorkflowConfiguration workflowConfig,
             LifecycleEnvironment lifecycle) {
-        ExecutorService executorService =
-                lifecycle.executorService(RingWorkflows.class.getSimpleName()).minThreads(100).maxThreads(1024).build();
+        ExecutorService executorService = lifecycle
+                .executorService(RingWorkflows.class.getSimpleName())
+                .minThreads(100)
+                .maxThreads(1024)
+                .build();
         InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
                 Map.of(
                         workflowConfig.tableConfiguration().tableName(),
                         workflowConfig.tableConfiguration().isolationLevel()),
                 Set.of());
         return WorkflowAndInvariants.of(RingWorkflows.create(
-                transactionStore,
-                workflowConfig,
-                MoreExecutors.listeningDecorator(executorService),
-                new AtomicBoolean(false)));
+                transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)));
     }
 
     private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             SingleRowTwoCellsWorkflowConfiguration workflowConfig,
             LifecycleEnvironment lifecycle) {
-        ExecutorService executorService =
-                lifecycle.executorService(RingWorkflows.class.getSimpleName()).minThreads(100).maxThreads(1024).build();
+        ExecutorService executorService = lifecycle
+                .executorService(RingWorkflows.class.getSimpleName())
+                .minThreads(100)
+                .maxThreads(1024)
+                .build();
         TransactionStore transactionStore = transactionStoreFactory.create(
                 Map.of(
                         workflowConfig.tableConfiguration().tableName(),
                         workflowConfig.tableConfiguration().isolationLevel()),
                 Set.of());
         return WorkflowAndInvariants.builder()
                 .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
-                        transactionStore,
-                        workflowConfig,
-                        MoreExecutors.listeningDecorator(executorService)))
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
                 .addInvariantReporters(new DurableWritesInvariantMetricReporter(
                         SingleRowTwoCellsWorkflows.class.getSimpleName(),
                         DurableWritesMetrics.of(taggedMetricRegistry)))u}(j (b786a95bef1effb5bd44f53eed786d588b38a9b0j8 datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflows.javaj: modifiedj2 K
j3 K j< K
j= https://github.com/palantir/atlasdb/blob/48b4c0479eca14b9153257de5967d6d2ed5bb010/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj? https://github.com/palantir/atlasdb/raw/48b4c0479eca14b9153257de5967d6d2ed5bb010/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.java?ref=48b4c0479eca14b9153257de5967d6d2ed5bb010jC X  @@ -51,6 +51,19 @@ private RingWorkflows() {
     }
 
     public static Workflow create(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration ringWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        AtomicBoolean skipRunning = new AtomicBoolean(false);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
+                ringWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
             InteractiveTransactionStore store,
             RingWorkflowConfiguration ringWorkflowConfiguration,
             ListeningExecutorService executionExecutor,ueu(5cce8c0421126a532bd68aee855eaba3b25515dc}(sha(5cce8c0421126a532bd68aee855eaba3b25515dcnode_idEC_kwDOAjP5fdoAKDVjY2U4YzA0MjExMjZhNTMyYmQ2OGFlZTg1NWVhYmEzYjI1NTE1ZGMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-17T13:22:10Zu	committer}(jW 
Sam KramerjY skramer@palantir.comj[ 2023-08-17T13:22:10Zumessageadd this to a more sane placetree}(jO (3faf538631da5937c88bb84589e9f654e203a50burl`https://api.github.com/repos/palantir/atlasdb/git/trees/3faf538631da5937c88bb84589e9f654e203a50bujg bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5cce8c0421126a532bd68aee855eaba3b25515dc
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTeHwIACgkQmPPOpKR4
XS1rlggAmWa5OJ7MwustYckQ3We3vhNQHsDOFhpfAp45kSj82zJAqh253UYHcQhX
jNfMFoKovEj7izki1v/Rbg/RoaWWA0NP67P/Hsy4tcGGvMzlerJinYdNS63Oe6+N
gSZlZsGcskVg7BE0Pd94tfpR8g/JKHEdda8uFCiNc6m2U3SdYWhAQQKiMmN3PVTR
V9zwdAsu2tVSjpvBFJ9tPnYMX/s/ZInnZgRXdZyail447ap9PSYgwQP2RWzG9wkr
0Los4EsZHBQnq6Ls2dAKt2QSspKW0M0H4xCETSBHk5Bw5I2URrrvUoK3lZORSfav
yaIK5RcyQF2xD8uwbjc+E+ChN74Hbg==
=cvdt
-----END PGP SIGNATURE-----payloadtree 3faf538631da5937c88bb84589e9f654e203a50b
parent 5fd17f2b7a83c6fb2c847f45284bc26816f3ed94
author Sam Kramer <skramer@palantir.com> 1692278530 +0100
committer Sam Kramer <skramer@palantir.com> 1692278530 +0100

add this to a more sane place
uujg ^https://api.github.com/repos/palantir/atlasdb/commits/5cce8c0421126a532bd68aee855eaba3b25515dchtml_urlShttps://github.com/palantir/atlasdb/commit/5cce8c0421126a532bd68aee855eaba3b25515dccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5cce8c0421126a532bd68aee855eaba3b25515dc/commentsjU }(login
Sam-KrameridJ^2_ jQ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jg 'https://api.github.com/users/Sam-Kramerju https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj] }(jz 
Sam-Kramerj| J^2_ jQ MDQ6VXNlcjYyMzg4MTQ=j~ 3https://avatars.githubusercontent.com/u/6238814?v=4j h5jg 'https://api.github.com/users/Sam-Kramerju https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jO (5fd17f2b7a83c6fb2c847f45284bc26816f3ed94jg ^https://api.github.com/repos/palantir/atlasdb/commits/5fd17f2b7a83c6fb2c847f45284bc26816f3ed94ju Shttps://github.com/palantir/atlasdb/commit/5fd17f2b7a83c6fb2c847f45284bc26816f3ed94uastats}(totalK#	additionsK	deletionsKufiles](}(jO (32d7d8a844b76dde3d09145e6c321f12f46efa3afilename]timelock-impl/src/main/java/com/palantir/atlasdb/timelock/paxos/PaxosTimestampBoundStore.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5cce8c0421126a532bd68aee855eaba3b25515dc/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5cce8c0421126a532bd68aee855eaba3b25515dc/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.java?ref=5cce8c0421126a532bd68aee855eaba3b25515dcpatchXp
  @@ -58,6 +58,9 @@ public class PaxosTimestampBoundStore implements TimestampBoundStore {
     @GuardedBy("this")
     private SequenceAndBound agreedState;
 
+    @GuardedBy("this")
+    private boolean hasLostLeadership = false;
+
     public PaxosTimestampBoundStore(
             PaxosProposer proposer,
             PaxosLearner knowledge,
@@ -221,6 +224,7 @@ private Optional<SequenceAndBound> getLearnedState(long seq) {
      */
     @Override
     public synchronized void storeUpperLimit(long limit) throws MultipleRunningTimestampServiceError {
+        Preconditions.checkState(hasLostLeadership, "Cannot store upper limit as leadership has been lost.");
         long newSeq = PaxosAcceptor.NO_LOG_ENTRY + 1;
         if (agreedState != null) {
             Preconditions.checkArgument(
@@ -252,7 +256,8 @@ public synchronized void storeUpperLimit(long limit) throws MultipleRunningTimes
                                     + " lost and regained leadership. For safety, we are now stopping this service.",
                             SafeArg.of("newLimit", newLimit),
                             SafeArg.of("target", limit));
-                    throw new NotCurrentLeaderException(String.format(
+
+                    throwNotCurrentLeaderException(String.format(
                             "We updated the timestamp limit to %s, which was less than our target %s.",
                             newLimit, limit));
                 }
@@ -280,7 +285,7 @@ private void checkAgreedBoundIsOurs(long limit, long newSeq, PaxosValue value) t
                             + " The offending bound was '%s'; we tried to propose"
                             + " a bound of '%s'. (The offending Paxos value was '%s'.)",
                     newSeq, value.getLeaderUUID(), proposer.getUuid(), PtBytes.toLong(value.getData()), limit, value);
-            throw new NotCurrentLeaderException(errorMsg);
+            throwNotCurrentLeaderException(errorMsg);
         }
         DebugLogger.logger.info(
                 "Trying to store limit '{}' for sequence '{}' yielded consensus on the value '{}'.",
@@ -289,6 +294,11 @@ private void checkAgreedBoundIsOurs(long limit, long newSeq, PaxosValue value) t
                 SafeArg.of("paxosValue", value));
     }
 
+    private void throwNotCurrentLeaderException(String message) {
+        hasLostLeadership = true;
+        throw new NotCurrentLeaderException(message);
+    }
+
     /**
      * Executes a backoff action which is given a random amount of time to wait in milliseconds. This is used in Paxos
      * to resolve multiple concurrent proposals. Users are allowed to specify their own backoff action,u}(jO (49c67b1cd1d733c547252d0e9153bda8b235f61dj Mtimestamp-impl/src/main/java/com/palantir/timestamp/PersistentUpperLimit.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/5cce8c0421126a532bd68aee855eaba3b25515dc/timestamp-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentUpperLimit.javaj https://github.com/palantir/atlasdb/raw/5cce8c0421126a532bd68aee855eaba3b25515dc/timestamp-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentUpperLimit.javaj https://api.github.com/repos/palantir/atlasdb/contents/timestamp-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentUpperLimit.java?ref=5cce8c0421126a532bd68aee855eaba3b25515dcj X  @@ -16,9 +16,6 @@
 package com.palantir.timestamp;
 
 import com.google.common.annotations.VisibleForTesting;
-import com.palantir.leader.NotCurrentLeaderException;
-import com.palantir.logsafe.Preconditions;
-import java.util.Optional;
 import javax.annotation.concurrent.GuardedBy;
 
 public class PersistentUpperLimit {
@@ -33,9 +30,6 @@ public class PersistentUpperLimit {
     @GuardedBy("this")
     private volatile long currentLimit;
 
-    @GuardedBy("this")
-    private volatile Optional<NotCurrentLeaderException> leadershipLostException = Optional.empty();
-
     private final TimestampBoundStore store;
 
     public PersistentUpperLimit(TimestampBoundStore boundStore) {
@@ -64,17 +58,8 @@ private synchronized void updateLimit(long newLimit) {
     }
 
     private void storeUpperLimit(long upperLimit) {
-        Preconditions.checkState(
-                leadershipLostException.isEmpty(),
-                "Cannot store upper limit when not the leader",
-                leadershipLostException.get());
-        try {
-            DebugLogger.willStoreNewUpperLimit(upperLimit);
-            store.storeUpperLimit(upperLimit);
-            DebugLogger.didStoreNewUpperLimit(upperLimit);
-        } catch (NotCurrentLeaderException e) {
-            leadershipLostException = Optional.of(e);
-            throw e;
-        }
+        DebugLogger.willStoreNewUpperLimit(upperLimit);
+        store.storeUpperLimit(upperLimit);
+        DebugLogger.didStoreNewUpperLimit(upperLimit);
     }
 }ueu(b4b7fd6d3931569547ad8ae6c34dcdee5f4c7802}(sha(b4b7fd6d3931569547ad8ae6c34dcdee5f4c7802node_idEC_kwDOAjP5fdoAKGI0YjdmZDZkMzkzMTU2OTU0N2FkOGFlNmMzNGRjZGVlNWY0Yzc4MDIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-11T09:39:06Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-04-11T09:39:06ZumessageNMerge branch 'jkong/lock-v1' of github.com:palantir/atlasdb into jkong/lock-v1tree}(j (efa7b02d35e11593e4b870fa7e18b77244a10400url`https://api.github.com/repos/palantir/atlasdb/git/trees/efa7b02d35e11593e4b870fa7e18b77244a10400uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b4b7fd6d3931569547ad8ae6c34dcdee5f4c7802
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ1Kr0ACgkQTLdFKain
zjy3XwgA4p35ZYCE5EsTQwONTXwT9qFBuXmw9eSLsYrqRPgmu8t3V8k2GbqcjWfJ
jZXH/Y1+iJk1RqW5Pf7ZWoeJmIhOs7uL3/cS5kfZGbthKw7e7NclO7wjk2Wbs9s8
V0jzbT1eq12ZnckdTQb3+1GSCg5vV0Tiq7Oywe4ejekrdwGcDEb0tijaDYo9O9/y
1U6ywgFgrv2ni+pc0PyjyOHns7wemUmBfkEdp2Vx6OdhCtzAIyRRlqQvYwPBj5Sy
8owMf4Bb6RJtQMtTSqPAnAYz2yMbSEU6FJfa5xIVDNpcD0YSzJZvhc57n8iWW6rR
SD4t3vs5YI6l4jaY7+dw2BrtM6/GHw==
=VLIj
-----END PGP SIGNATURE-----payloadXS  tree efa7b02d35e11593e4b870fa7e18b77244a10400
parent 9a6e25f5f3af327985e9a9655e61c62f57636fd2
parent 0570d68ca09820fed0dc364a381962ab23a477c2
author Jeremy Kong <jkong@palantir.com> 1681205946 +0800
committer Jeremy Kong <jkong@palantir.com> 1681205946 +0800

Merge branch 'jkong/lock-v1' of github.com:palantir/atlasdb into jkong/lock-v1
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/b4b7fd6d3931569547ad8ae6c34dcdee5f4c7802html_urlShttps://github.com/palantir/atlasdb/commit/b4b7fd6d3931569547ad8ae6c34dcdee5f4c7802comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b4b7fd6d3931569547ad8ae6c34dcdee5f4c7802/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j
 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents](}(j (9a6e25f5f3af327985e9a9655e61c62f57636fd2j ^https://api.github.com/repos/palantir/atlasdb/commits/9a6e25f5f3af327985e9a9655e61c62f57636fd2j Shttps://github.com/palantir/atlasdb/commit/9a6e25f5f3af327985e9a9655e61c62f57636fd2u}(j (0570d68ca09820fed0dc364a381962ab23a477c2j ^https://api.github.com/repos/palantir/atlasdb/commits/0570d68ca09820fed0dc364a381962ab23a477c2j Shttps://github.com/palantir/atlasdb/commit/0570d68ca09820fed0dc364a381962ab23a477c2uestats}(totalK	additionsK	deletionsK ufiles]}(j (f78ad2562cc65a8da82f8d8fc92f20368d1a9981filename$changelog/@unreleased/pr-6518.v2.ymlstatusaddedj4 Kj5 K changesKblob_url|https://github.com/palantir/atlasdb/blob/b4b7fd6d3931569547ad8ae6c34dcdee5f4c7802/changelog%2F%40unreleased%2Fpr-6518.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/b4b7fd6d3931569547ad8ae6c34dcdee5f4c7802/changelog%2F%40unreleased%2Fpr-6518.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6518.v2.yml?ref=b4b7fd6d3931569547ad8ae6c34dcdee5f4c7802patchX+  @@ -0,0 +1,7 @@
+type: improvement
+improvement:
+  description: We no longer use Jersey sub-resource locators for user-facing timestamp,
+    timestamp management and lock v1 endpoints (except for the asynchronous TimeLock
+    service).
+  links:
+  - https://github.com/palantir/atlasdb/pull/6518uau(eea17912b22eff77c994aa1ecf0cef9bdc3e3849}(sha(eea17912b22eff77c994aa1ecf0cef9bdc3e3849node_idEC_kwDOAjP5fdoAKGVlYTE3OTEyYjIyZWZmNzdjOTk0YWExZWNmMGNlZjliZGMzZTM4NDkcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-21T12:55:09Zu	committer}(jQ 
Sam KramerjS skramer@palantir.comjU 2023-03-21T12:55:09Zumessagecompile javatree}(jI (2fc752b7789bc2df8e7476382ef4a6d9afc30911url`https://api.github.com/repos/palantir/atlasdb/git/trees/2fc752b7789bc2df8e7476382ef4a6d9afc30911uja bhttps://api.github.com/repos/palantir/atlasdb/git/commits/eea17912b22eff77c994aa1ecf0cef9bdc3e3849
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQZqS0ACgkQmPPOpKR4
XS3CJggAx/jPn8omq3RFyOB4e1UDGbmv6xbWDvEP9BbkgcYWSum2wbnPyWDtFWZh
a9UCSvMqWZq6U9GLp5roupYeeOGt4GDPpXeIj7ii9Dn0E0GlYQvPsbYgXOX8sPgF
QtWrlxnGEEdUehFPIylKstuhKx5tyGAtdRBEs1lCstgXK/QVqot7TKFS3Qu+oQOf
XGNS/rIOeBz3aNqi6PcqBlLpDGF0q9DremoLdVVi7jP+/O0W7X9bm9ePERtdamOd
2LbvQZ++R0R9THUCW4SYc9dVCk4O1ShimbOMBvMB77uDcSb68ddXHqJWfUP3mkGx
gdwirvYhIPa3PLoC0P9agTdfS6H6XQ==
=XF4g
-----END PGP SIGNATURE-----payloadtree 2fc752b7789bc2df8e7476382ef4a6d9afc30911
parent fb57b4618d90c2b94dc0bc2af1d044484bdabc46
author Sam Kramer <skramer@palantir.com> 1679403309 +0000
committer Sam Kramer <skramer@palantir.com> 1679403309 +0000

compile java
uuja ^https://api.github.com/repos/palantir/atlasdb/commits/eea17912b22eff77c994aa1ecf0cef9bdc3e3849html_urlShttps://github.com/palantir/atlasdb/commit/eea17912b22eff77c994aa1ecf0cef9bdc3e3849comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/eea17912b22eff77c994aa1ecf0cef9bdc3e3849/commentsjO }(login
Sam-KrameridJ^2_ jK MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5ja 'https://api.github.com/users/Sam-Kramerjo https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujW }(jt 
Sam-Kramerjv J^2_ jK MDQ6VXNlcjYyMzg4MTQ=jx 3https://avatars.githubusercontent.com/u/6238814?v=4jz h5ja 'https://api.github.com/users/Sam-Kramerjo https://github.com/Sam-Kramerj} 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jI (fb57b4618d90c2b94dc0bc2af1d044484bdabc46ja ^https://api.github.com/repos/palantir/atlasdb/commits/fb57b4618d90c2b94dc0bc2af1d044484bdabc46jo Shttps://github.com/palantir/atlasdb/commit/fb57b4618d90c2b94dc0bc2af1d044484bdabc46uastats}(totalK	additionsK	deletionsKufiles]}(jI (9f49c914b405f0e6c73f59a556f42bf3df6f83c6filename|atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfigurationTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/eea17912b22eff77c994aa1ecf0cef9bdc3e3849/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfigurationTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/eea17912b22eff77c994aa1ecf0cef9bdc3e3849/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfigurationTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfigurationTest.java?ref=eea17912b22eff77c994aa1ecf0cef9bdc3e3849patchX  @@ -28,7 +28,7 @@
 
 public class SingleRowTwoCellsWorkflowConfigurationTest {
     private static final TableConfiguration TABLE_CONFIGURATION = ImmutableTableConfiguration.builder()
-            .tableName(WorkloadTestHelpers.TABLE)
+            .tableName(WorkloadTestHelpers.TABLE_1)
             .isolationLevel(IsolationLevel.SERIALIZABLE)
             .build();
     private static final ObjectMapper OBJECT_MAPPER = ObjectMappers.newServerObjectMapper();uau(0cbb6b9037c682140e406754773ebe361b6c6ece}(sha(0cbb6b9037c682140e406754773ebe361b6c6ecenode_idEC_kwDOAjP5fdoAKDBjYmI2YjkwMzdjNjgyMTQwZTQwNjc1NDc3M2ViZTM2MWI2YzZlY2Ucommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-19T13:11:19Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-06-19T13:11:19Zumessagebiscuit bugtree}(j (faaa2e93f547cd641ba46347df352e3b1ac30e85url`https://api.github.com/repos/palantir/atlasdb/git/trees/faaa2e93f547cd641ba46347df352e3b1ac30e85uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0cbb6b9037c682140e406754773ebe361b6c6ece
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSQU/cACgkQTLdFKain
zjyqIQf9HiYSS1koH9YOfVEYni7kskj8ipvGMFp07yU5K6lYY8q0imG6lTFDXW15
kHhod8d9CC8zfRWodVGI+lXSuJ+x6XZG25eWpn79dXSjX8tZFVPerJZU3e+L2bMl
zEXhx88JSTFHYjFjNojj+fs8RypxH/Snt7KvataUgDzJIagVPVomLhU3CpXAn2+P
uMuCi0iJDGI+ORNPuowKG9LFw16PlV/Z8Dgyrs4+kPaSH0pxEWFA4optMa5r/Qhf
OSHVLxtExB2Bt7FQaSeQuNhu846HWIarZESvzByXLODrfqypP1PviPY6K2T2l+Q5
Qy6PwwF3jZ35uJrDTlJ0XfO8gt51cg==
=ZKSS
-----END PGP SIGNATURE-----payloadtree faaa2e93f547cd641ba46347df352e3b1ac30e85
parent 24078bb455cd6057d50a39eb7a574932bf9d9010
author Jeremy Kong <jkong@palantir.com> 1687180279 +0800
committer Jeremy Kong <jkong@palantir.com> 1687180279 +0800

biscuit bug
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/0cbb6b9037c682140e406754773ebe361b6c6ecehtml_urlShttps://github.com/palantir/atlasdb/commit/0cbb6b9037c682140e406754773ebe361b6c6ececomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0cbb6b9037c682140e406754773ebe361b6c6ece/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j (24078bb455cd6057d50a39eb7a574932bf9d9010j ^https://api.github.com/repos/palantir/atlasdb/commits/24078bb455cd6057d50a39eb7a574932bf9d9010j Shttps://github.com/palantir/atlasdb/commit/24078bb455cd6057d50a39eb7a574932bf9d9010uastats}(totalK	additionsK	deletionsKufiles]}(j (9db2ff57d09652f04682075a52754bf5b3a2e25dfilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj" Kj# KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/0cbb6b9037c682140e406754773ebe361b6c6ece/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0cbb6b9037c682140e406754773ebe361b6c6ece/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=0cbb6b9037c682140e406754773ebe361b6c6ecepatchX  @@ -501,7 +501,7 @@ public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator
                 }));
 
         // validate requirements here as the first batch for each of the above iterators will not check
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+        //validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
         return postFilteredResults;
     }
 
@@ -778,7 +778,7 @@ protected Map.Entry<byte[], RowColumnRangeIterator> computeNext() {
                     protected Map.Entry<Cell, Value> computeNext() {
                         if (!peekableRawResults.hasNext()
                                 || !Arrays.equals(
-                                        peekableRawResults.peek().getKey().getRowName(), nextRowName)) {
+                                peekableRawResults.peek().getKey().getRowName(), nextRowName)) {
                             return endOfData();
                         }
                         return peekableRawResults.next();
@@ -1175,7 +1175,7 @@ private List<Map.Entry<Cell, byte[]>> getPostFilteredWithLocalWrites(
                 postFiltered.entrySet(),
                 Predicates.compose(Predicates.in(prePostFilterCells.keySet()), MapEntries.getKeyFunction()));
         Collection<Map.Entry<Cell, byte[]>> localWritesInRange = getLocalWritesForRange(
-                        tableRef, rangeRequest.getStartInclusive(), endRowExclusive, rangeRequest.getColumnNames())
+                tableRef, rangeRequest.getStartInclusive(), endRowExclusive, rangeRequest.getColumnNames())
                 .entrySet();
         return mergeInLocalWrites(
                 tableRef, postFilteredCells.iterator(), localWritesInRange.iterator(), rangeRequest.isReverse());
@@ -1212,9 +1212,9 @@ private <K extends Exception> boolean getBatchingVisitableFromIterator(
             int preFilterBatchSize)
             throws K {
         try (ClosableIterator<RowResult<byte[]>> postFilterIterator =
-                postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
+                     postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
             Iterator<RowResult<byte[]>> localWritesInRange = Cells.createRowView(getLocalWritesForRange(
-                            tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
+                    tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
                     .entrySet());
             Iterator<RowResult<byte[]>> mergeIterators =
                     mergeInLocalWritesRows(postFilterIterator, localWritesInRange, range.isReverse(), tableRef);
@@ -2067,7 +2067,7 @@ private void timedAndTraced(String timerName, Runnable runnable) {
 
     private <T> T timedAndTraced(String timerName, Supplier<T> supplier) {
         try (Timer.Context timer = getTimer(timerName).time();
-                CloseableTracer tracer = CloseableTracer.startSpan(timerName)) {
+             CloseableTracer tracer = CloseableTracer.startSpan(timerName)) {
             return supplier.get();
         }
     }uau(b68c7643baeb86077c5186f30b12c98848f5478f}(sha(b68c7643baeb86077c5186f30b12c98848f5478fnode_idEC_kwDOAjP5fdoAKGI2OGM3NjQzYmFlYjg2MDc3YzUxODZmMzBiMTJjOTg4NDhmNTQ3OGYcommit}(author}(name	Tom Papkeemail+43675490+Toemmsche@users.noreply.github.comdate2023-07-17T13:19:06Zu	committer}(j? 	Tom PapkejA tpapke@palantir.comjC 2023-07-18T14:29:00Zumessage"Autorelease 0.895.0-rc1

[skip ci]tree}(j7 (8864cc28d878c15a4cd90007d2ec7d06fea13c5burl`https://api.github.com/repos/palantir/atlasdb/git/trees/8864cc28d878c15a4cd90007d2ec7d06fea13c5bujO bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b68c7643baeb86077c5186f30b12c98848f5478f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS2oawACgkQmF9s0kaF
Iw1NLQgAgwoTWXOFuA1+E8mGLvXlpn4lg6Ww6+6R1KG6EDfHi8zlujKIfWrdaSx0
SqAbbJ3onL3pdA38u1AMsUS+vMueNi4dg22EpShHV48MH7S6aJFBSgcK9BOgmwpI
E0fEPvZj1q0AaLKdf/v4spD7eCXDb8bwaoU/fIgi1ulSB14UwZD8+eDyT0QSNmbI
hDPXZI0/Wt8dnSS8ceRHtaOnTnfgbekbfoYs/9iO0gwNUYks0aZpIwl563V2yXB0
AJWaCnpjtn/9HK6N7Tx/pHxD4e08FI7fFYPCoIyJOmIRDRWzSjJjP+S1KO1Tg96x
h8y6jhcrbgqyt7BD1eozErReUHLrhA==
=IEyT
-----END PGP SIGNATURE-----payloadX  tree 8864cc28d878c15a4cd90007d2ec7d06fea13c5b
parent b70bcfdc24a9077627c1e4cf6b5df18cd928e6dd
author Tom Papke <43675490+Toemmsche@users.noreply.github.com> 1689599946 +0000
committer Tom Papke <tpapke@palantir.com> 1689690540 +0100

Autorelease 0.895.0-rc1

[skip ci]uujO ^https://api.github.com/repos/palantir/atlasdb/commits/b68c7643baeb86077c5186f30b12c98848f5478fhtml_urlShttps://github.com/palantir/atlasdb/commit/b68c7643baeb86077c5186f30b12c98848f5478fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b68c7643baeb86077c5186f30b12c98848f5478f/commentsj= }(login	ToemmscheidJboj9 MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jO &https://api.github.com/users/Toemmschej] https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujE }(jb 	Toemmschejd Jboj9 MDQ6VXNlcjQzNjc1NDkwjf 4https://avatars.githubusercontent.com/u/43675490?v=4jh h5jO &https://api.github.com/users/Toemmschej] https://github.com/Toemmschejk 0https://api.github.com/users/Toemmsche/followersjm =https://api.github.com/users/Toemmsche/following{/other_user}jo 6https://api.github.com/users/Toemmsche/gists{/gist_id}jq =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}js 4https://api.github.com/users/Toemmsche/subscriptionsju +https://api.github.com/users/Toemmsche/orgsjw ,https://api.github.com/users/Toemmsche/reposjy 7https://api.github.com/users/Toemmsche/events{/privacy}j{ 6https://api.github.com/users/Toemmsche/received_eventsj} Userj uparents]}(j7 (b70bcfdc24a9077627c1e4cf6b5df18cd928e6ddjO ^https://api.github.com/repos/palantir/atlasdb/commits/b70bcfdc24a9077627c1e4cf6b5df18cd928e6ddj] Shttps://github.com/palantir/atlasdb/commit/b70bcfdc24a9077627c1e4cf6b5df18cd928e6dduastats}(totalK 	additionsK 	deletionsK ufiles]u(110fad4282a1e788fce010009bcc4b1059da2e97}(sha(110fad4282a1e788fce010009bcc4b1059da2e97node_idEC_kwDOAjP5fdoAKDExMGZhZDQyODJhMWU3ODhmY2UwMTAwMDliY2M0YjEwNTlkYTJlOTccommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-07-25T20:16:59Zu	committer}(j Tom Petraccaj tpetracca@palantir.comj 2023-07-25T20:16:59Zumessageremove standalone concepttree}(j (b50f74a974cc141fb1996fcafff066dea8b04cefurl`https://api.github.com/repos/palantir/atlasdb/git/trees/b50f74a974cc141fb1996fcafff066dea8b04cefuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/110fad4282a1e788fce010009bcc4b1059da2e97
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj ^https://api.github.com/repos/palantir/atlasdb/commits/110fad4282a1e788fce010009bcc4b1059da2e97html_urlShttps://github.com/palantir/atlasdb/commit/110fad4282a1e788fce010009bcc4b1059da2e97comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/110fad4282a1e788fce010009bcc4b1059da2e97/commentsj }(login	tpetraccaidJ& j MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5j &https://api.github.com/users/tpetraccaj https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminuj }(j 	tpetraccaj J& j MDQ6VXNlcjI1NTQzMjg=j 3https://avatars.githubusercontent.com/u/2554328?v=4j h5j &https://api.github.com/users/tpetraccaj https://github.com/tpetraccaj 0https://api.github.com/users/tpetracca/followersj =https://api.github.com/users/tpetracca/following{/other_user}j 6https://api.github.com/users/tpetracca/gists{/gist_id}j =https://api.github.com/users/tpetracca/starred{/owner}{/repo}j 4https://api.github.com/users/tpetracca/subscriptionsj +https://api.github.com/users/tpetracca/orgsj ,https://api.github.com/users/tpetracca/reposj 7https://api.github.com/users/tpetracca/events{/privacy}j 6https://api.github.com/users/tpetracca/received_eventsj Userj uparents]}(j (ef1f87fd0e5eb7674377823a2174d38dcbecefedj ^https://api.github.com/repos/palantir/atlasdb/commits/ef1f87fd0e5eb7674377823a2174d38dcbecefedj Shttps://github.com/palantir/atlasdb/commit/ef1f87fd0e5eb7674377823a2174d38dcbecefeduastats}(totalK	additionsK	deletionsKufiles]}(j (639fdb662d2526fed584eca4ef2a0d800f038ecbfilenameatlasdb-ete-tests/build.gradlestatusmodifiedj Kj  KchangesKblob_urlrhttps://github.com/palantir/atlasdb/blob/110fad4282a1e788fce010009bcc4b1059da2e97/atlasdb-ete-tests%2Fbuild.gradleraw_urlqhttps://github.com/palantir/atlasdb/raw/110fad4282a1e788fce010009bcc4b1059da2e97/atlasdb-ete-tests%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fbuild.gradle?ref=110fad4282a1e788fce010009bcc4b1059da2e97patchX  @@ -106,7 +106,7 @@ task prepareForEteTests(type: Copy, dependsOn: 'distTar') {
 task timeLockMigrationTest(type: Test) {
     dependsOn prepareForEteTests, ':timelock-server-distribution:dockerTag'
     filter {
-        includeTestsMatching 'com.palantir.atlasdb.ete.standalone.TimeLockMigrationEteTest'
+        includeTestsMatching 'com.palantir.atlasdb.ete.TimeLockMigrationEteTest'
     }
 }
 
@@ -141,11 +141,11 @@ test {
 
     filter {
         // include standalone and suite tests
-        includeTestsMatching 'com.palantir.atlasdb.ete.standalone.*'
+        // includeTestsMatching 'com.palantir.atlasdb.ete.standalone.*'
         includeTestsMatching 'com.palantir.atlasdb.ete.suites.*'
 
         // exclude any tests with their own 1-off tasks
-        excludeTestsMatching 'com.palantir.atlasdb.ete.standalone.TimeLockMigrationEteTest'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.TimeLockMigrationEteTest'
         excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite'
         excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndPostgresTestSuite'
         excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndOracleTestSuite'uau(f8337a9767ab1a80e0cd44804fb49b8f63e5a132}(sha(f8337a9767ab1a80e0cd44804fb49b8f63e5a132node_idEC_kwDOAjP5fdoAKGY4MzM3YTk3NjdhYjFhODBlMGNkNDQ4MDRmYjQ5YjhmNjNlNWExMzIcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-06-07T13:50:38Zu	committer}(j 
svc-changelogj svc-changelog@palantir.comj  2023-06-07T13:50:38ZumessageAdd generated changelog entriestree}(j (f8eaee35ded5fd49e5203d64258f8ae4e38c94d0url`https://api.github.com/repos/palantir/atlasdb/git/trees/f8eaee35ded5fd49e5203d64258f8ae4e38c94d0uj, bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f8337a9767ab1a80e0cd44804fb49b8f63e5a132
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSAiy4JEHYaJX37fAFQAACZWwEA9I0lXRzIoF207aYMErdgGeCX
Oapyf+LDSymadJIkRRsA/0VrKCwh0L9ra69g+ej/niPPC/9pMWKvNPX2f06ncPJz
=ub1s
-----END PGP SIGNATURE-----payloadX  tree f8eaee35ded5fd49e5203d64258f8ae4e38c94d0
parent 0ac05a0b49e9df6887038e978cc0ddc8d7a08729
author svc-changelog <svc-changelog@palantir.com> 1686145838 +0000
committer svc-changelog <svc-changelog@palantir.com> 1686145838 +0000

Add generated changelog entriesuuj, ^https://api.github.com/repos/palantir/atlasdb/commits/f8337a9767ab1a80e0cd44804fb49b8f63e5a132html_urlShttps://github.com/palantir/atlasdb/commit/f8337a9767ab1a80e0cd44804fb49b8f63e5a132comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f8337a9767ab1a80e0cd44804fb49b8f63e5a132/commentsj }(login
svc-changelogidJ#j MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j, *https://api.github.com/users/svc-changelogj:  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj" }(j? 
svc-changelogjA J#j MDQ6VXNlcjg0MDc3NjAzjC 4https://avatars.githubusercontent.com/u/84077603?v=4jE h5j, *https://api.github.com/users/svc-changelogj:  https://github.com/svc-changelogjH 4https://api.github.com/users/svc-changelog/followersjJ Ahttps://api.github.com/users/svc-changelog/following{/other_user}jL :https://api.github.com/users/svc-changelog/gists{/gist_id}jN Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jP 8https://api.github.com/users/svc-changelog/subscriptionsjR /https://api.github.com/users/svc-changelog/orgsjT 0https://api.github.com/users/svc-changelog/reposjV ;https://api.github.com/users/svc-changelog/events{/privacy}jX :https://api.github.com/users/svc-changelog/received_eventsjZ Userj\ uparents]}(j (0ac05a0b49e9df6887038e978cc0ddc8d7a08729j, ^https://api.github.com/repos/palantir/atlasdb/commits/0ac05a0b49e9df6887038e978cc0ddc8d7a08729j: Shttps://github.com/palantir/atlasdb/commit/0ac05a0b49e9df6887038e978cc0ddc8d7a08729uastats}(totalK	additionsK	deletionsK ufiles]}(j (351dc558cfb12f3027ca880f55c00742ee516cbdfilename$changelog/@unreleased/pr-6613.v2.ymlstatusaddedjv Kjw K changesKblob_url|https://github.com/palantir/atlasdb/blob/f8337a9767ab1a80e0cd44804fb49b8f63e5a132/changelog%2F%40unreleased%2Fpr-6613.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/f8337a9767ab1a80e0cd44804fb49b8f63e5a132/changelog%2F%40unreleased%2Fpr-6613.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6613.v2.yml?ref=f8337a9767ab1a80e0cd44804fb49b8f63e5a132patch@@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: There now exists an Antithesis workflow that exercises read-write transactions
+    that only do reads.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6613uau(342f9dfae2db7454e4ddc5c978655c21a6c19a60}(sha(342f9dfae2db7454e4ddc5c978655c21a6c19a60node_idEC_kwDOAjP5fdoAKDM0MmY5ZGZhZTJkYjc0NTRlNGRkYzVjOTc4NjU1YzIxYTZjMTlhNjAcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-08-14T14:20:06Zu	committer}(j GitHubj noreply@github.comj 2023-08-14T14:20:06ZumessageVrevert fix for maybe not leader (#6707)

Reverts fix for paxos contending with itself.tree}(j (2349cf3ed732c4dc522087c7d71ed913bd344777url`https://api.github.com/repos/palantir/atlasdb/git/trees/2349cf3ed732c4dc522087c7d71ed913bd344777uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/342f9dfae2db7454e4ddc5c978655c21a6c19a60
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk2jgWCRBK7hj4Ov3rIwAA2RQIAGqBgrSKqqr+cNPy7pEPu+4J
BX1foUkfMyHa7V2H8cd98TSWl1pR7nOop/xtZIbFQ9EUF6h3l++25X7GY2piD/+E
d/lkNa8mn2ybAeo8hmnON9XrJHtziICOG2ErYgMGRP6QXP0wtxnKiGgRug/rkFSm
HPFsEdFr8l/H7Q9upLNPKn8+FOdJHi78JLLGSRKWW4Oya8JoeGIN5AXnHzxua+DY
OcBRMUvxEKwMsHcVwCe2SbPGJalYd3I7Cphgi8wcCQyopSYUq8+nzFHbYii8Mptu
N6VcIt0KVZby6VoqkzbY0QL906AUBRRtDFVuaYOcu0UrQihWPl/pPIM3DUBCtLE=
=uULO
-----END PGP SIGNATURE-----
payloadX)  tree 2349cf3ed732c4dc522087c7d71ed913bd344777
parent f32918e92becb54b7f5a9f85c3f3102dc15c5c28
author Sam-Kramer <sam.c.kramer@gmail.com> 1692022806 +0100
committer GitHub <noreply@github.com> 1692022806 +0000

revert fix for maybe not leader (#6707)

Reverts fix for paxos contending with itself.
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/342f9dfae2db7454e4ddc5c978655c21a6c19a60html_urlShttps://github.com/palantir/atlasdb/commit/342f9dfae2db7454e4ddc5c978655c21a6c19a60comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/342f9dfae2db7454e4ddc5c978655c21a6c19a60/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer     
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j (f32918e92becb54b7f5a9f85c3f3102dc15c5c28j ^https://api.github.com/repos/palantir/atlasdb/commits/f32918e92becb54b7f5a9f85c3f3102dc15c5c28j Shttps://github.com/palantir/atlasdb/commit/f32918e92becb54b7f5a9f85c3f3102dc15c5c28uastats}(totalKތ	additionsK(	deletionsKufiles](}(j (123aeadcc931cb100fbdbb692230e20ca78eb63bfilenameUatlasdb-commons/src/main/java/com/palantir/leader/MaybeNotCurrentLeaderException.javastatusremovedj K j K8changesK8blob_urlhttps://github.com/palantir/atlasdb/blob/f32918e92becb54b7f5a9f85c3f3102dc15c5c28/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2FMaybeNotCurrentLeaderException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f32918e92becb54b7f5a9f85c3f3102dc15c5c28/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2FMaybeNotCurrentLeaderException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2FMaybeNotCurrentLeaderException.java?ref=f32918e92becb54b7f5a9f85c3f3102dc15c5c28patchX  @@ -1,56 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.leader;
-
-import com.google.common.collect.ImmutableList;
-import com.google.errorprone.annotations.CompileTimeConstant;
-import com.palantir.logsafe.Arg;
-import com.palantir.logsafe.Safe;
-import com.palantir.logsafe.SafeLoggable;
-import java.util.List;
-
-/**
- * Some operations may fail due to contention, which means we may have lost leadership.
- * In these cases, we should then validate that we have lost leadership, before taking any action.
- */
-public final class MaybeNotCurrentLeaderException extends NotCurrentLeaderException implements SafeLoggable {
-
-    private final String message;
-    private final ImmutableList<Arg<?>> args;
-
-    public MaybeNotCurrentLeaderException(@CompileTimeConstant String message, List<Arg<?>> args) {
-        super(message);
-        this.message = message;
-        this.args = ImmutableList.copyOf(args);
-    }
-
-    public MaybeNotCurrentLeaderException(@CompileTimeConstant String message, Arg<?>... args) {
-        super(message);
-        this.message = message;
-        this.args = ImmutableList.copyOf(args);
-    }
-
-    @Override
-    public @Safe String getLogMessage() {
-        return message;
-    }
-
-    @Override
-    public List<Arg<?>> getArgs() {
-        return args;
-    }
-}u}(j (bab8c102a32d01255fec953a96fe6a4437d14328j $changelog/@unreleased/pr-6707.v2.ymlj addedj Kj K j Kj |https://github.com/palantir/atlasdb/blob/342f9dfae2db7454e4ddc5c978655c21a6c19a60/changelog%2F%40unreleased%2Fpr-6707.v2.ymlj {https://github.com/palantir/atlasdb/raw/342f9dfae2db7454e4ddc5c978655c21a6c19a60/changelog%2F%40unreleased%2Fpr-6707.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6707.v2.yml?ref=342f9dfae2db7454e4ddc5c978655c21a6c19a60j @@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: Reverts fix for paxos contending with itself.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6707u}(j (7c1db6ff17b1a3bbe1bc537540061e688f0ce1f1j Yleader-election-impl/src/main/java/com/palantir/leader/proxy/AwaitingLeadershipProxy.javaj modifiedj K
j K*j K7j https://github.com/palantir/atlasdb/blob/342f9dfae2db7454e4ddc5c978655c21a6c19a60/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.javaj https://github.com/palantir/atlasdb/raw/342f9dfae2db7454e4ddc5c978655c21a6c19a60/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.javaj https://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.java?ref=342f9dfae2db7454e4ddc5c978655c21a6c19a60j X  @@ -28,7 +28,7 @@
 import com.palantir.common.remoting.ServiceNotAvailableException;
 import com.palantir.leader.LeaderElectionService.LeadershipToken;
 import com.palantir.leader.LeaderElectionService.StillLeadingStatus;
-import com.palantir.leader.MaybeNotCurrentLeaderException;
+import com.palantir.leader.NotCurrentLeaderException;
 import com.palantir.leader.proxy.LeadershipStateManager.LeadershipState;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
@@ -41,7 +41,6 @@
 import java.lang.reflect.Method;
 import java.lang.reflect.Proxy;
 import java.time.Duration;
-import java.util.concurrent.ExecutionException;
 import java.util.function.Supplier;
 
 @SuppressWarnings("ProxyNonConstantType")
@@ -108,7 +107,9 @@ protected Object handleInvocation(Object proxy, Method method, Object[] args) th
         ListenableFuture<T> delegateFuture = Futures.transformAsync(
                 leadingFuture,
                 leading -> {
-                    if (isNotLeading(leading)) {
+                    // treat a repeated NO_QUORUM as NOT_LEADING; likely we've been cut off from the other nodes
+                    // and should assume we're not the leader
+                    if (leading == StillLeadingStatus.NOT_LEADING || leading == StillLeadingStatus.NO_QUORUM) {
                         return Futures.submitAsync(
                                 () -> {
                                     leadershipStateManager.handleNotLeading(leadershipToken, null /* cause */);
@@ -158,48 +159,18 @@ protected Object handleInvocation(Object proxy, Method method, Object[] args) th
 
     private RuntimeException handleDelegateThrewException(
             LeadershipToken leadershipToken, InvocationTargetException exception) throws Exception {
-        Throwable cause = exception.getCause();
-
-        if (cause instanceof ServiceNotAvailableException) {
-            handlePossibleLeadershipChangeException(leadershipToken, (ServiceNotAvailableException) cause);
+        if (exception.getCause() instanceof ServiceNotAvailableException
+                || exception.getCause() instanceof NotCurrentLeaderException) {
+            leadershipStateManager.handleNotLeading(leadershipToken, exception.getCause());
         }
-
         // Prevent blocked lock requests from receiving a non-retryable 500 on interrupts
         // in case of a leader election.
-        if (cause instanceof InterruptedException) {
-            if (!leadershipCoordinator.isStillCurrentToken(leadershipToken)) {
-                throw leadershipCoordinator.notCurrentLeaderException(
-                        "received an interrupt due to leader election.", exception.getCause());
-            }
-            Thread.currentThread().interrupt();
-        }
-        Throwables.propagateIfPossible(cause, Exception.class);
-        throw new RuntimeException(cause);
-    }
-
-    /**
-     * Check and see if the provided {@link ServiceNotAvailableException} is a {@link MaybeNotCurrentLeaderException}.
-     * If it is, check and see if we are still leading, as we may still be, but contending with ourselves. Otherwise,
-     * assume we are not, and invalidate our leadership state.
-     */
-    private void handlePossibleLeadershipChangeException(
-            LeadershipToken leadershipToken, ServiceNotAvailableException exception)
-            throws ExecutionException, InterruptedException {
-        boolean notLeading = true;
-
-        if (exception instanceof MaybeNotCurrentLeaderException) {
-            notLeading = isNotLeading(
-                    leadershipCoordinator.isStillLeading(leadershipToken).get());
-        }
-
-        if (notLeading) {
-            leadershipStateManager.handleNotLeading(leadershipToken, exception);
+        if (exception.getCause() instanceof InterruptedException
+                && !leadershipCoordinator.isStillCurrentToken(leadershipToken)) {
+            throw leadershipCoordinator.notCurrentLeaderException(
+                    "received an interrupt due to leader election.", exception.getCause());
         }
-    }
-
-    private static boolean isNotLeading(StillLeadingStatus leading) {
-        // treat a repeated NO_QUORUM as NOT_LEADING; likely we've been cut off from the other nodes
-        // and should assume we're not the leader
-        return leading == StillLeadingStatus.NOT_LEADING || leading == StillLeadingStatus.NO_QUORUM;
+        Throwables.propagateIfPossible(exception.getCause(), Exception.class);
+        throw new RuntimeException(exception.getCause());
     }
 }u}(j (7f98d01f0ece521e6d21cc5f3f8f0570933c3c27j ]leader-election-impl/src/test/java/com/palantir/leader/proxy/AwaitingLeadershipProxyTest.javaj modifiedj Kj K6j K:j https://github.com/palantir/atlasdb/blob/342f9dfae2db7454e4ddc5c978655c21a6c19a60/leader-election-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxyTest.javaj https://github.com/palantir/atlasdb/raw/342f9dfae2db7454e4ddc5c978655c21a6c19a60/leader-election-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxyTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxyTest.java?ref=342f9dfae2db7454e4ddc5c978655c21a6c19a60j X@  @@ -19,11 +19,9 @@
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.atLeast;
-import static org.mockito.Mockito.doThrow;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.timeout;
-import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
 
@@ -35,7 +33,6 @@
 import com.palantir.leader.LeaderElectionService;
 import com.palantir.leader.LeaderElectionService.LeadershipToken;
 import com.palantir.leader.LeaderElectionService.StillLeadingStatus;
-import com.palantir.leader.MaybeNotCurrentLeaderException;
 import com.palantir.leader.NotCurrentLeaderException;
 import com.palantir.leader.PaxosLeadershipToken;
 import com.palantir.tracing.RenderTracingRule;
@@ -267,55 +264,6 @@ public void shouldClearDelegateUponLosingLeadership() throws Exception {
         verify(mock).close();
     }
 
-    @Test
-    public void whenMaybeNotCurrentLeaderAndLeadershipNotLostShouldNotClearDelegate() throws Exception {
-        MyCloseable mockA = mock(MyCloseable.class);
-        // Cannot spy lambdas
-        Supplier<MyCloseable> delegateSupplier = mock(Supplier.class);
-        when(delegateSupplier.get()).thenReturn(mockA);
-        LeadershipCoordinator leadershipCoordinator = LeadershipCoordinator.create(leaderElectionService);
-        MyCloseable proxyA =
-                AwaitingLeadershipProxy.newProxyInstance(MyCloseable.class, delegateSupplier, leadershipCoordinator);
-
-        waitForLeadershipToBeGained();
-
-        doThrow(new MaybeNotCurrentLeaderException(TEST_MESSAGE)).when(mockA).val();
-
-        assertThatThrownBy(proxyA::val)
-                .isInstanceOf(MaybeNotCurrentLeaderException.class)
-                .hasMessage(TEST_MESSAGE);
-        verify(mockA, times(0)).close();
-        verify(delegateSupplier, times(1)).get();
-    }
-
-    @Test
-    public void whenMaybeNotCurrentLeaderAndLeadershipLostShouldClearDelegate() throws Exception {
-        MyCloseable mockA = mock(MyCloseable.class);
-        LeadershipCoordinator leadershipCoordinator = LeadershipCoordinator.create(leaderElectionService);
-        MyCloseable proxyA =
-                AwaitingLeadershipProxy.newProxyInstance(MyCloseable.class, () -> mockA, leadershipCoordinator);
-
-        MyCloseable proxyB = AwaitingLeadershipProxy.newProxyInstance(
-                MyCloseable.class, () -> mock(MyCloseable.class), leadershipCoordinator);
-
-        waitForLeadershipToBeGained();
-
-        proxyA.val();
-        proxyB.val();
-
-        doThrow(new MaybeNotCurrentLeaderException("foo")).when(mockA).val();
-
-        loseLeadership(() -> {
-            proxyB.val();
-            return null;
-        });
-
-        assertThatThrownBy(proxyA::val)
-                .isInstanceOf(NotCurrentLeaderException.class)
-                .hasMessage("method invoked on a non-leader");
-        verify(mockA).close();
-    }
-
     @Test
     public void shouldClearDelegateIfLeadershipLossIsRealizedByAnotherProxy() throws Exception {
         MyCloseable mockA = mock(MyCloseable.class);
@@ -326,7 +274,8 @@ public void shouldClearDelegateIfLeadershipLossIsRealizedByAnotherProxy() throws
         MyCloseable proxyB = AwaitingLeadershipProxy.newProxyInstance(
                 MyCloseable.class, () -> mock(MyCloseable.class), leadershipCoordinator);
 
-        waitForLeadershipToBeGained();
+        // Wait to gain leadership
+        Uninterruptibles.sleepUninterruptibly(Duration.ofMillis(100L));
 
         proxyA.val();
         proxyB.val();
@@ -366,7 +315,8 @@ public void shouldClearDelegateIfLeadershipTokenIsRefreshedByAnotherProxy() thro
         MyCloseable proxyB = AwaitingLeadershipProxy.newProxyInstance(
                 MyCloseable.class, () -> mock(MyCloseable.class), leadershipCoordinator);
 
-        waitForLeadershipToBeGained();
+        // Wait to gain leadership
+        Uninterruptibles.sleepUninterruptibly(Duration.ofMillis(100L));
 
         proxyA.val();
         proxyB.val();u}(j (5c095638f0a0f48f2ec43948eb92d6d8ae274639j ]timelock-impl/src/main/java/com/palantir/atlasdb/timelock/paxos/PaxosTimestampBoundStore.javaj modifiedj Kj Kj K%j https://github.com/palantir/atlasdb/blob/342f9dfae2db7454e4ddc5c978655c21a6c19a60/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javaj https://github.com/palantir/atlasdb/raw/342f9dfae2db7454e4ddc5c978655c21a6c19a60/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.java?ref=342f9dfae2db7454e4ddc5c978655c21a6c19a60j Xs  @@ -21,9 +21,7 @@
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.timelock.paxos.PaxosQuorumCheckingCoalescingFunction.PaxosContainer;
 import com.palantir.common.remoting.ServiceNotAvailableException;
-import com.palantir.leader.MaybeNotCurrentLeaderException;
 import com.palantir.leader.NotCurrentLeaderException;
-import com.palantir.logsafe.Arg;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -50,11 +48,6 @@
 public class PaxosTimestampBoundStore implements TimestampBoundStore {
     private static final SafeLogger log = SafeLoggerFactory.get(PaxosTimestampBoundStore.class);
 
-    private static final String TOO_SMALL_LIMIT_INCREASE_MESSAGE =
-            "It appears we updated the timestamp limit to {}, which was less than our target {}."
-                    + " This suggests we have another timestamp service running; possibly because we"
-                    + " lost and regained leadership. For safety, we are now stopping this service.";
-
     private final PaxosProposer proposer;
     private final PaxosLearner knowledge;
 
@@ -253,9 +246,15 @@ public synchronized void storeUpperLimit(long limit) throws MultipleRunningTimes
                     // This is dangerous; proposing at the next sequence number is unsafe, as timestamp services
                     // generally assume they have the ALLOCATION_BUFFER_SIZE timestamps up to this.
                     // TODO (jkong): Devise a method that better preserves availability of the cluster.
-                    List<Arg<?>> args = List.of(SafeArg.of("newLimit", newLimit), SafeArg.of("target", limit));
-                    log.warn(TOO_SMALL_LIMIT_INCREASE_MESSAGE, args);
-                    throw new MaybeNotCurrentLeaderException(TOO_SMALL_LIMIT_INCREASE_MESSAGE, args);
+                    log.warn(
+                            "It appears we updated the timestamp limit to {}, which was less than our target {}."
+                                    + " This suggests we have another timestamp service running; possibly because we"
+                                    + " lost and regained leadership. For safety, we are now stopping this service.",
+                            SafeArg.of("newLimit", newLimit),
+                            SafeArg.of("target", limit));
+                    throw new NotCurrentLeaderException(String.format(
+                            "We updated the timestamp limit to %s, which was less than our target %s.",
+                            newLimit, limit));
                 }
                 return;
             } catch (PaxosRoundFailureException e) {
@@ -274,18 +273,14 @@ public synchronized void storeUpperLimit(long limit) throws MultipleRunningTimes
      */
     private void checkAgreedBoundIsOurs(long limit, long newSeq, PaxosValue value) throws NotCurrentLeaderException {
         if (!proposer.getUuid().equals(value.getLeaderUUID())) {
-            throw new MaybeNotCurrentLeaderException(
-                    "Timestamp limit changed from under us for sequence '{}' (proposer with UUID '{}' changed"
-                            + " it, our UUID is '{}'). This suggests that we have lost leadership, and another timelock"
+            String errorMsg = String.format(
+                    "Timestamp limit changed from under us for sequence '%s' (proposer with UUID '%s' changed"
+                            + " it, our UUID is '%s'). This suggests that we have lost leadership, and another timelock"
                             + " server has gained leadership and updated the timestamp bound."
-                            + " The offending bound was '{}'; we tried to propose"
-                            + " a bound of '{}'. (The offending Paxos value was '{}'.)",
-                    SafeArg.of("newSeq", newSeq),
-                    SafeArg.of("leaderUuid", value.getLeaderUUID()),
-                    SafeArg.of("ourUuid", proposer.getUuid()),
-                    SafeArg.of("newLimit", PtBytes.toLong(value.getData())),
-                    SafeArg.of("target", limit),
-                    SafeArg.of("value", value));
+                            + " The offending bound was '%s'; we tried to propose"
+                            + " a bound of '%s'. (The offending Paxos value was '%s'.)",
+                    newSeq, value.getLeaderUUID(), proposer.getUuid(), PtBytes.toLong(value.getData()), limit, value);
+            throw new NotCurrentLeaderException(errorMsg);
         }
         DebugLogger.logger.info(
                 "Trying to store limit '{}' for sequence '{}' yielded consensus on the value '{}'.",u}(j (a3484750100dd1921c33614b931aa2f88438aee7j atimelock-impl/src/test/java/com/palantir/atlasdb/timelock/paxos/PaxosTimestampBoundStoreTest.javaj modifiedj Kj K	j Kj https://github.com/palantir/atlasdb/blob/342f9dfae2db7454e4ddc5c978655c21a6c19a60/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.javaj https://github.com/palantir/atlasdb/raw/342f9dfae2db7454e4ddc5c978655c21a6c19a60/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.java?ref=342f9dfae2db7454e4ddc5c978655c21a6c19a60j X  @@ -15,7 +15,6 @@
  */
 package com.palantir.atlasdb.timelock.paxos;
 
-import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static java.util.stream.Collectors.toList;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
@@ -33,9 +32,8 @@
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.common.remoting.ServiceNotAvailableException;
 import com.palantir.common.streams.KeyedStream;
-import com.palantir.leader.MaybeNotCurrentLeaderException;
+import com.palantir.leader.NotCurrentLeaderException;
 import com.palantir.leader.proxy.ToggleableExceptionProxy;
-import com.palantir.logsafe.SafeArg;
 import com.palantir.paxos.Client;
 import com.palantir.paxos.PaxosAcceptor;
 import com.palantir.paxos.PaxosAcceptorNetworkClient;
@@ -246,12 +244,7 @@ public void retriesProposeUntilSuccessful() throws Exception {
     public void throwsIfBoundUnexpectedlyChangedUnderUs() {
         PaxosTimestampBoundStore additionalStore = createPaxosTimestampBoundStore(1);
         additionalStore.storeUpperLimit(TIMESTAMP_1);
-        assertThatLoggableExceptionThrownBy(() -> store.storeUpperLimit(TIMESTAMP_2))
-                .isInstanceOf(MaybeNotCurrentLeaderException.class)
-                .hasMessageContaining("Timestamp limit changed from under us for sequence")
-                .args()
-                // We don't know the leader ids in advance, so we can't assert on them.
-                .contains(SafeArg.of("newSeq", PaxosAcceptor.NO_LOG_ENTRY + 1), SafeArg.of("target", TIMESTAMP_2));
+        assertThatThrownBy(() -> store.storeUpperLimit(TIMESTAMP_2)).isInstanceOf(NotCurrentLeaderException.class);
     }
 
     @Testueu(1db3ec2de3eb6ef300c784c6ad45080a65427451}(sha(1db3ec2de3eb6ef300c784c6ad45080a65427451node_idEC_kwDOAjP5fdoAKDFkYjNlYzJkZTNlYjZlZjMwMGM3ODRjNmFkNDUwODBhNjU0Mjc0NTEcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-08-08T16:18:24Zu	committer}(j2 
svc-changelogj4 svc-changelog@palantir.comj6 2023-08-08T16:18:24ZumessageAdd generated changelog entriestree}(j* (0597b6a0cfa2d9e22abf4572d5fb67b8bae4f079url`https://api.github.com/repos/palantir/atlasdb/git/trees/0597b6a0cfa2d9e22abf4572d5fb67b8bae4f079ujB bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1db3ec2de3eb6ef300c784c6ad45080a65427451
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmTSatAJEHYaJX37fAFQAAARpwD/fxv0qhBz2BjxV/lvtHX0W787
zcNipTD46ozx8kBDHiMBAJQ2t/ARALMYrDjJkW2sJQFRhJkWNMIxfOk2xU1sZeOd
=1Ipx
-----END PGP SIGNATURE-----payloadX  tree 0597b6a0cfa2d9e22abf4572d5fb67b8bae4f079
parent 5ca6e87d1e1770c0515359e7b3d44769e48fe604
author svc-changelog <svc-changelog@palantir.com> 1691511504 +0000
committer svc-changelog <svc-changelog@palantir.com> 1691511504 +0000

Add generated changelog entriesuujB ^https://api.github.com/repos/palantir/atlasdb/commits/1db3ec2de3eb6ef300c784c6ad45080a65427451html_urlShttps://github.com/palantir/atlasdb/commit/1db3ec2de3eb6ef300c784c6ad45080a65427451comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1db3ec2de3eb6ef300c784c6ad45080a65427451/commentsj0 }(login
svc-changelogidJ#j, MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jB *https://api.github.com/users/svc-changelogjP  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj8 }(jU 
svc-changelogjW J#j, MDQ6VXNlcjg0MDc3NjAzjY 4https://avatars.githubusercontent.com/u/84077603?v=4j[ h5jB *https://api.github.com/users/svc-changelogjP  https://github.com/svc-changelogj^ 4https://api.github.com/users/svc-changelog/followersj` Ahttps://api.github.com/users/svc-changelog/following{/other_user}jb :https://api.github.com/users/svc-changelog/gists{/gist_id}jd Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jf 8https://api.github.com/users/svc-changelog/subscriptionsjh /https://api.github.com/users/svc-changelog/orgsjj 0https://api.github.com/users/svc-changelog/reposjl ;https://api.github.com/users/svc-changelog/events{/privacy}jn :https://api.github.com/users/svc-changelog/received_eventsjp Userjr uparents]}(j* (5ca6e87d1e1770c0515359e7b3d44769e48fe604jB ^https://api.github.com/repos/palantir/atlasdb/commits/5ca6e87d1e1770c0515359e7b3d44769e48fe604jP Shttps://github.com/palantir/atlasdb/commit/5ca6e87d1e1770c0515359e7b3d44769e48fe604uastats}(totalK	additionsK	deletionsKufiles]}(j* (8766fad77decd19f87056fb62a64276cd24132d7filename$changelog/@unreleased/pr-6671.v2.ymlstatusmodifiedj Kj KchangesKblob_url|https://github.com/palantir/atlasdb/blob/1db3ec2de3eb6ef300c784c6ad45080a65427451/changelog%2F%40unreleased%2Fpr-6671.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/1db3ec2de3eb6ef300c784c6ad45080a65427451/changelog%2F%40unreleased%2Fpr-6671.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6671.v2.yml?ref=1db3ec2de3eb6ef300c784c6ad45080a65427451patch@@ -1,5 +1,5 @@
-type: improvement
-improvement:
+type: feature
+feature:
   description: '[LWMeta] Pass Metadata through SnapshotTransaction'
   links:
   - https://github.com/palantir/atlasdb/pull/6671uau(7bc9676e2758f2cf16ea979a18f0e872ac058515}(sha(7bc9676e2758f2cf16ea979a18f0e872ac058515node_idEC_kwDOAjP5fdoAKDdiYzk2NzZlMjc1OGYyY2YxNmVhOTc5YTE4ZjBlODcyYWMwNTg1MTUcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-13T19:51:44Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-06-13T19:51:44ZumessageImprove test styletree}(j (d2659aeefda5598025460bd6970fc01774a037f0url`https://api.github.com/repos/palantir/atlasdb/git/trees/d2659aeefda5598025460bd6970fc01774a037f0uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7bc9676e2758f2cf16ea979a18f0e872ac058515
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSIyNAACgkQmF9s0kaF
Iw3VrAf/TVOga4pMBOhqKUBqicPNPLtGOH9CgpxFBadqsz+2QB1lF48Ko/lRuP3U
oSoUBOmm85A6CDGAsd1vhMp7jnfh1tWyccep2pdeb+Hqn8EXFMv3fiquNEZVK/Rj
QWhbjSJe8tdKXp8SccZLx33Ol1u9Evyy2Vx+b05L/h0gI+dOCIOJtTjkSwRkyk13
CUco8dZ6dwjEr2tS/sMZG++E46tZ5vRqAKfn466iwzelemY9Vfr35BGxDrs6RGck
tkoc1Vql3XYDpxHafBANafu/Y4c1gkqShwlP3dK1tiwEIpV0F3eQyYIPwNdbkyk6
q3H05ne4vhTHlzube3H4J27Cwu8xYg==
=A7rC
-----END PGP SIGNATURE-----payloadtree d2659aeefda5598025460bd6970fc01774a037f0
parent 41a6ca288172f0c97ff261fabe9565f89fbe9dd8
author Tom Papke <tpapke@palantir.com> 1686685904 +0100
committer Tom Papke <tpapke@palantir.com> 1686685904 +0100

Improve test style
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/7bc9676e2758f2cf16ea979a18f0e872ac058515html_urlShttps://github.com/palantir/atlasdb/commit/7bc9676e2758f2cf16ea979a18f0e872ac058515comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7bc9676e2758f2cf16ea979a18f0e872ac058515/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jboj MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(j (41a6ca288172f0c97ff261fabe9565f89fbe9dd8j ^https://api.github.com/repos/palantir/atlasdb/commits/41a6ca288172f0c97ff261fabe9565f89fbe9dd8j Shttps://github.com/palantir/atlasdb/commit/41a6ca288172f0c97ff261fabe9565f89fbe9dd8uastats}(totalK[	additionsK/	deletionsK,ufiles]}(j (81f04facf8686ae54f1fb0840011a900eba13cbefilenameQlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javastatusmodifiedj K/j K,changesK[blob_urlhttps://github.com/palantir/atlasdb/blob/7bc9676e2758f2cf16ea979a18f0e872ac058515/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7bc9676e2758f2cf16ea979a18f0e872ac058515/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=7bc9676e2758f2cf16ea979a18f0e872ac058515patchX[$  @@ -33,6 +33,7 @@
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.Set;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Future;
@@ -55,6 +56,9 @@ public class ThreadInfoLockServiceImplTest {
             .withCreatingThreadName(TEST_THREAD_1)
             .build();
 
+    private static final LockClientAndThread ANONYMOUS_TEST_THREAD_1 =
+            LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1);
+
     private final ExecutorService executor =
             PTExecutors.newCachedThreadPool(ThreadInfoLockServiceImplTest.class.getName());
 
@@ -75,26 +79,39 @@ public void initialThreadInfoIsEmpty() {
     }
 
     @Test
-    public void recordsThreadInfoOnSingleLock() throws InterruptedException {
+    public void recordsThreadInfoForLock() throws InterruptedException {
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
         forceSnapshot();
 
-        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
-                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEqualTo(ANONYMOUS_TEST_THREAD_1);
+    }
+
+    @Test
+    public void recordsThreadInfoForUnlock() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEqualTo(ANONYMOUS_TEST_THREAD_1);
+
+        lockService.unlock(response.getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isNull();
     }
 
     @Test
-    public void recordsThreadInfoOnMultipleUniqueLocksFromDifferentThreads() throws InterruptedException {
+    public void recordsThreadInfoForMultipleLocks() throws InterruptedException {
         int numThreads = 10;
         int numLocksPerThread = 10;
 
         List<String> threadNames =
                 IntStream.range(0, numThreads).mapToObj(i -> "test-thread-" + i).collect(Collectors.toList());
-        Map<String, List<LockDescriptor>> locksPerThread = new HashMap<>();
+        Map<String, Set<LockDescriptor>> locksPerThread = new HashMap<>();
         for (String threadName : threadNames) {
-            List<LockDescriptor> locks = IntStream.range(0, numLocksPerThread)
+            Set<LockDescriptor> locks = IntStream.range(0, numLocksPerThread)
                     .mapToObj(i -> StringLockDescriptor.of("test-lock-" + i + "-from-thread-" + threadName))
-                    .collect(Collectors.toList());
+                    .collect(Collectors.toSet());
             locksPerThread.put(threadName, locks);
         }
 
@@ -115,7 +132,7 @@ public void recordsThreadInfoOnMultipleUniqueLocksFromDifferentThreads() throws
     }
 
     @Test
-    public void recordsThreadInfoOnSharedLockFromDifferentThreads() throws InterruptedException {
+    public void recordsThreadInfoForSharedLock() throws InterruptedException {
         LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
                 .withCreatingThreadName(TEST_THREAD_1)
                 .build();
@@ -125,65 +142,49 @@ public void recordsThreadInfoOnSharedLockFromDifferentThreads() throws Interrupt
                 .withCreatingThreadName(TEST_THREAD_2)
                 .build();
 
-        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest1);
+        LockResponse lockResponse = lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest1);
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+
         forceSnapshot();
 
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
-                .isIn(
-                        LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1),
-                        LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
-    }
+                .isIn(ANONYMOUS_TEST_THREAD_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
 
-    @Test
-    public void doesNotRecordDroppedLocksWithLockAllOrNone() throws InterruptedException {
-        // T2 cannot get lock 1 -> grouping behavior LOCK_ALL_OR_NONE will release lock 2, even though it could have
-        // been locked
-        LockRequest lockRequest2 = LockRequest.builder(
-                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
-                .doNotBlock()
-                .withCreatingThreadName(TEST_THREAD_2)
-                .build();
+        lockService.unlock(lockResponse.getToken());
 
-        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
-        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
         forceSnapshot();
 
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
-                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1));
+                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
     }
 
     @Test
-    public void doesNotRecordFailedLocks() throws InterruptedException {
-        LockRequest lockRequest2 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+    public void doesNotRecordDroppedLocksWithLockAllOrNone() throws InterruptedException {
+        // T2 cannot get lock 1 -> grouping behavior LOCK_ALL_OR_NONE will release lock 2, even though it could have
+        // been locked
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
                 .doNotBlock()
-                .lockAsManyAsPossible()
                 .withCreatingThreadName(TEST_THREAD_2)
                 .build();
 
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
         forceSnapshot();
 
-        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
-                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEqualTo(ANONYMOUS_TEST_THREAD_1);
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isNull();
     }
 
     @Test
-    public void recordsUnlockWriteLock() throws InterruptedException {
-        LockResponse response =
-                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+    public void recordsUnlockAndFreezeForNonAnonymousClient() throws InterruptedException {
+        LockClient client = LockClient.of("non-anonymous-client");
 
-        lockService.unlock(response.getToken());
+        LockResponse response = lockService.lockWithFullLockResponse(client, LOCK_1_THREAD_1_WRITE_REQUEST);
         forceSnapshot();
 
-        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isNull();
-    }
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEqualTo(LockClientAndThread.of(client, TEST_THREAD_1));
 
-    @Test
-    public void recordsUnlockAndFreezeForNonAnonymousClient() throws InterruptedException {
-        LockResponse response = lockService.lockWithFullLockResponse(
-                LockClient.of("non-anonymous-client"), LOCK_1_THREAD_1_WRITE_REQUEST);
         lockService.unlockAndFreeze(response.getToken());
         forceSnapshot();
 
@@ -252,7 +253,6 @@ public void recordsCorrectStateAfterMultipleOperations() throws Exception {
         forceSnapshot();
 
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isNull();
-        // Lock 2 is a shared lock
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isNull();
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isNull();
     }
@@ -261,11 +261,14 @@ public void recordsCorrectStateAfterMultipleOperations() throws Exception {
     public void refreshDoesNotChangeSnapshot() throws InterruptedException {
         LockResponse response =
                 lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEqualTo(ANONYMOUS_TEST_THREAD_1);
+
         lockService.refreshTokens(List.of(response.getToken()));
         forceSnapshot();
 
-        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
-                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEqualTo(ANONYMOUS_TEST_THREAD_1);
     }
 
     @Test(timeout = 500L)
@@ -285,7 +288,7 @@ public void backgroundSnapshotRunnerWorks() throws InterruptedException {
         Thread.sleep(50L);
 
         assertThat(backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot().get(TEST_LOCK_1))
-                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1));
+                .isEqualTo(ANONYMOUS_TEST_THREAD_1);
 
         lockServiceWithBackgroundRunner.unlock(response.getToken());
 uau(d01c5daf169f1aee355f219005e7f5fc29e3fdcc}(sha(d01c5daf169f1aee355f219005e7f5fc29e3fdccnode_idEC_kwDOAjP5fdoAKGQwMWM1ZGFmMTY5ZjFhZWUzNTVmMjE5MDA1ZTdmNWZjMjllM2ZkY2Mcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-07-26T18:15:38Zu	committer}(j  
Ahmed Alouanej" aalouane@palantir.comj$ 2023-07-26T18:15:38Zumessage	Conflictstree}(j (ffeabeb953fd00aa3cbfe7e4c7558df104526a1aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/ffeabeb953fd00aa3cbfe7e4c7558df104526a1auj0 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d01c5daf169f1aee355f219005e7f5fc29e3fdcc
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmTBYsoACgkQPlMHVIT1
yho7aAgAiiilr8hHRZzNbrlxPutTnjv01zxgRorNdNICrl8pb/1ymgPCvhORW4ld
DVAN3e1EaFj/JakFgwyTRLk4qy4jh3uzllhXUd9LY0g7C/HkzzXFAB6sq3K2u7yJ
zicImBPddvOgHJtnwcThIIsQoFhqkveookje/BZIqfpBdjQfg6hmf5EUIWQuvvo8
8ozjwZO930aRMZ2sgg09FPf4dlbs1BjkF6dLmDXVPFjiZH/2nqtvn1rP/WpPpJm/
uAqxyFEBj13YfffYa6/N32/CMs7ap7ykQ/Y2rnSo7wBC56EDx6+vLh5PoV6WuRcy
iUvQfQ8Fy3gqYonOIn9sQmltxaP8NQ==
=oyZF
-----END PGP SIGNATURE-----payloadX  tree ffeabeb953fd00aa3cbfe7e4c7558df104526a1a
parent 5014396ec71e1e9f40d074fa178c2c9c8a817ab3
parent 16f56f1aea2b94ff4880c17e8a5d152b085dff40
author Ahmed Alouane <aalouane@palantir.com> 1690395338 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1690395338 +0100

Conflicts
uuj0 ^https://api.github.com/repos/palantir/atlasdb/commits/d01c5daf169f1aee355f219005e7f5fc29e3fdcchtml_urlShttps://github.com/palantir/atlasdb/commit/d01c5daf169f1aee355f219005e7f5fc29e3fdcccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j0 #https://api.github.com/users/ergo14j> https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj& }(jC ergo14jE Jj MDQ6VXNlcjMwOTAzNzM2jG 4https://avatars.githubusercontent.com/u/30903736?v=4jI h5j0 #https://api.github.com/users/ergo14j> https://github.com/ergo14jL -https://api.github.com/users/ergo14/followersjN :https://api.github.com/users/ergo14/following{/other_user}jP 3https://api.github.com/users/ergo14/gists{/gist_id}jR :https://api.github.com/users/ergo14/starred{/owner}{/repo}jT 1https://api.github.com/users/ergo14/subscriptionsjV (https://api.github.com/users/ergo14/orgsjX )https://api.github.com/users/ergo14/reposjZ 4https://api.github.com/users/ergo14/events{/privacy}j\ 3https://api.github.com/users/ergo14/received_eventsj^ Userj` uparents](}(j (5014396ec71e1e9f40d074fa178c2c9c8a817ab3j0 ^https://api.github.com/repos/palantir/atlasdb/commits/5014396ec71e1e9f40d074fa178c2c9c8a817ab3j> Shttps://github.com/palantir/atlasdb/commit/5014396ec71e1e9f40d074fa178c2c9c8a817ab3u}(j (16f56f1aea2b94ff4880c17e8a5d152b085dff40j0 ^https://api.github.com/repos/palantir/atlasdb/commits/16f56f1aea2b94ff4880c17e8a5d152b085dff40j> Shttps://github.com/palantir/atlasdb/commit/16f56f1aea2b94ff4880c17e8a5d152b085dff40uestats}(totalM~	additionsM	deletionsMufiles](}(j (854555223c62aceef604d50b4a81b95af84187bcfilename.palantir/revapi.ymlstatusmodifiedj~ K6j K changesK6blob_urlhhttps://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccpatchX  @@ -129,3 +129,57 @@ acceptedBreaks:
       new: "parameter <T> long com.palantir.atlasdb.keyvalue.cassandra.thrift.ThriftObjectSizeUtils::getCollectionSize(java.util.Collection<T>,\
         \ ===java.util.function.ToLongFunction<T>===)"
       justification: "Avoid autoboxing long to Long"
+  "0.899.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, ===com.palantir.atlasdb.util.MetricsManager===,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider)"
+      new: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, ===com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider===,\
+        \ java.util.function.Function<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
+        \ com.palantir.atlasdb.keyvalue.api.Value>, com.palantir.atlasdb.keyvalue.cassandra.ResultsExtractor<com.palantir.atlasdb.keyvalue.api.Value>>)"
+      justification: "Reuse notLatestVisibleValueCellFilterCounter"
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, com.palantir.atlasdb.util.MetricsManager,\
+        \ ===com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider===)"
+      new: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider,\
+        \ ===java.util.function.Function<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
+        \ com.palantir.atlasdb.keyvalue.api.Value>, com.palantir.atlasdb.keyvalue.cassandra.ResultsExtractor<com.palantir.atlasdb.keyvalue.api.Value>>===)"
+      justification: "Reuse notLatestVisibleValueCellFilterCounter"
+    - code: "java.method.removed"
+      old: "method com.codahale.metrics.Counter com.palantir.atlasdb.keyvalue.cassandra.ResultsExtractor<T>::getNotLatestVisibleValueCellFilterCounter(java.lang.Class<?>)"
+      justification: "Reuse notLatestVisibleValueCellFilterCounter"
+  "0.900.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.method.numberOfParametersChanged"
+      old: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.spi.AtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<com.palantir.atlasdb.config.LeaderConfig>, java.util.Optional<java.lang.String>,\
+        \ java.util.function.LongSupplier, boolean)"
+      new: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.spi.AtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<java.lang.String>, java.util.function.LongSupplier, boolean)"
+      justification: "all usage or implementations of the two broken methods are entirely\
+        \ at compile time of the consumer or within this repo itself"
+    - code: "java.method.numberOfParametersChanged"
+      old: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.timestamp.DbTimeLockFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ com.palantir.atlasdb.config.LeaderConfig, boolean)"
+      new: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.timestamp.DbTimeLockFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ boolean)"
+      justification: "all usage or implementations of the two broken methods are entirely\
+        \ at compile time of the consumer or within this repo itself"
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.numberOfParametersChanged"
+      old: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.cassandra.CassandraAtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<com.palantir.atlasdb.config.LeaderConfig>, java.util.Optional<java.lang.String>,\
+        \ java.util.function.LongSupplier, boolean)"
+      new: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.cassandra.CassandraAtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<java.lang.String>, java.util.function.LongSupplier, boolean)"
+      justification: "will only be a compile break at worst for users and consumers"u}(j (95c0afd59482612e75dcd14fb8ccaca826a94dfdj .policy.ymlj modifiedj~ Kj Kj Kj ]https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/.policy.ymlj \https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/.policy.ymlj ohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj Xe  @@ -48,20 +48,22 @@ approval_rules:
       permissions: ["admin", "maintain"]
     if:
       has_author_in:
-        users: [ "svc-excavator-bot" ]
+        users: [ "svc-excavator-bot", "dependabot[bot]" ]
 
   - name: excavator only touched baseline, circle, gradle files, godel files, generated code, go dependencies, docker-compose-rule config or versions.props
     requires:
       count: 0
     if:
       has_author_in:
-        users: [ "svc-excavator-bot" ]
+        users: [ "svc-excavator-bot", "dependabot[bot]" ]
       only_changed_files:
         # product-dependencies.lock should never go here, to force review of all product (SLS) dependency changes
         # this way excavator cannot change the deployability of a service or product via auto-merge
         paths:
           - "changelog/@unreleased/.*\\.yml"
           - "^\\.baseline/.*$"
+          - "^(.+/)?Cargo.toml$"
+          - "^Cargo.lock$"
           - "^\\.circleci/.*$"
           - "^\\.docker-compose-rule\\.yml$"
           - "^.*gradle$"
@@ -83,7 +85,7 @@ approval_rules:
           - "^internal/generated_src/.*"
           - "^gradle-baseline-java/src/main/resources/checkstyle.version$"
       has_valid_signatures_by_keys:
-        key_ids: ["C9AF124A484882E0"]
+        key_ids: ["C9AF124A484882E0", "4AEE18F83AFDEB23"]
 
   - name: excavator only touched config files
     requires:u}(j (5d19f29132dab0ef70f8e200712eb2df5ec1e0bbj Fatlasdb-api/src/main/java/com/palantir/atlasdb/spi/AtlasDbFactory.javaj modifiedj~ K j Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fspi%2FAtlasDbFactory.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fspi%2FAtlasDbFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fspi%2FAtlasDbFactory.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -15,7 +15,6 @@
  */
 package com.palantir.atlasdb.spi;
 
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.util.MetricsManager;
@@ -44,7 +43,6 @@ public interface AtlasDbFactory {
      *
      * @param config Configuration file.
      * @param runtimeConfig Runtime configuration file.
-     * @param leaderConfig If the implementation supports it, the optional leader configuration.
      * @param namespace If the implementation supports it, this is the namespace to use when the namespace in config is
      * absent. If both are present, they must match.
      * @param freshTimestampSource If present, a source of fresh timestamps, which may be relevant for some KVS
@@ -57,7 +55,6 @@ KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> namespace,
             LongSupplier freshTimestampSource,
             boolean initializeAsync);u}(j (3cae3192d54aa786e1fb095808e1aa9205897b46j Oatlasdb-api/src/main/java/com/palantir/atlasdb/timestamp/DbTimeLockFactory.javaj modifiedj~ K j Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimestamp%2FDbTimeLockFactory.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimestamp%2FDbTimeLockFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimestamp%2FDbTimeLockFactory.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.timestamp;
 
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeriesProvider;
@@ -40,7 +39,6 @@ KeyValueService createRawKeyValueService(
             MetricsManager metricManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean initializeAsync);
 
     ManagedTimestampService createManagedTimestampService(u}(j (761bd91dae92d2e174e087990b60adf2c381cba3j [atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/CassandraAtlasDbFactory.javaj modifiedj~ K j Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraAtlasDbFactory.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraAtlasDbFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraAtlasDbFactory.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueService;
@@ -48,7 +47,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> unused,
             Optional<String> namespace,
             LongSupplier freshTimestampSource,
             boolean initializeAsync) {u}(j (24eb78c9e781527756585d486a989cfa4d275af1j iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.keyvalue.cassandra;
 
+import com.codahale.metrics.Counter;
 import com.datastax.driver.core.exceptions.DriverInternalError;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Functions;
@@ -39,6 +40,7 @@
 import com.google.protobuf.ByteString;
 import com.palantir.async.initializer.AsyncInitializer;
 import com.palantir.atlasdb.AtlasDbConstants;
+import com.palantir.atlasdb.AtlasDbMetricNames.CellFilterMetrics;
 import com.palantir.atlasdb.CassandraTopologyValidationMetrics;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
@@ -130,6 +132,7 @@
 import java.util.Set;
 import java.util.concurrent.Callable;
 import java.util.concurrent.ExecutorService;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 import java.util.stream.StreamSupport;
@@ -245,6 +248,7 @@ public void close() {
     private final CassandraMutationTimestampProvider mutationTimestampProvider;
     private final Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig;
     private final CassandraVerifierConfig verifierConfig;
+    private final Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory;
 
     public static CassandraKeyValueService createForTesting(
             CassandraKeyValueServiceConfig config, Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig) {
@@ -412,14 +416,19 @@ private static CassandraKeyValueService createAndInitialize(
             CassandraMutationTimestampProvider mutationTimestampProvider,
             Logger log,
             boolean initializeAsync) {
+        Counter notLatestVisibleValueCellFilterCounter = // register counter once and reuse
+                metricsManager.registerOrGetCounter(ValueExtractor.class, CellFilterMetrics.NOT_LATEST_VISIBLE_VALUE);
+        Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory = cellValueMap ->
+                new ValueExtractor(metricsManager, cellValueMap, notLatestVisibleValueCellFilterCounter);
         CassandraKeyValueServiceImpl keyValueService = new CassandraKeyValueServiceImpl(
                 log,
                 metricsManager,
                 config,
                 asyncKeyValueService,
                 runtimeConfig,
                 clientPool,
-                mutationTimestampProvider);
+                mutationTimestampProvider,
+                extractorFactory);
         keyValueService.wrapper.initialize(initializeAsync);
         return keyValueService.wrapper.isInitialized() ? keyValueService : keyValueService.wrapper;
     }
@@ -431,7 +440,8 @@ private CassandraKeyValueServiceImpl(
             AsyncKeyValueService asyncKeyValueService,
             Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig,
             CassandraClientPool clientPool,
-            CassandraMutationTimestampProvider mutationTimestampProvider) {
+            CassandraMutationTimestampProvider mutationTimestampProvider,
+            Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory) {
         super(createBlockingThreadpool(config, runtimeConfig.get().servers(), metricsManager));
         this.log = log;
         this.metricsManager = metricsManager;
@@ -444,7 +454,7 @@ private CassandraKeyValueServiceImpl(
         this.cassandraTables = new CassandraTables(clientPool, config);
         this.taskRunner = new TaskRunner(executor);
         this.cellLoader = CellLoader.create(clientPool, wrappingQueryRunner, taskRunner, runtimeConfig);
-        this.rangeLoader = new RangeLoader(clientPool, queryRunner, metricsManager, readConsistencyProvider);
+        this.rangeLoader = new RangeLoader(clientPool, queryRunner, readConsistencyProvider, extractorFactory);
         this.cellValuePutter = new CellValuePutter(
                 runtimeConfig,
                 clientPool,
@@ -459,6 +469,7 @@ private CassandraKeyValueServiceImpl(
                 new CassandraTableDropper(config, clientPool, tableMetadata, cassandraTableTruncator);
         this.runtimeConfig = runtimeConfig;
         this.verifierConfig = CassandraVerifierConfig.of(config, runtimeConfig.get());
+        this.extractorFactory = extractorFactory;
     }
 
     private static ExecutorService createBlockingThreadpool(
@@ -674,7 +685,7 @@ private Map<Cell, Value> getAllCellsForRows(
                     .collect(Collectors.toList());
         }
 
-        ValueExtractor extractor = new ValueExtractor(metricsManager, Maps.newHashMapWithExpectedSize(result.size()));
+        ResultsExtractor<Value> extractor = extractorFactory.apply(Maps.newHashMapWithExpectedSize(result.size()));
         extractor.extractResults(Multimaps.asMap(result), startTs, ColumnSelection.all());
         return extractor.asMap();
     }
@@ -760,7 +771,7 @@ private Map<Cell, Value> getRowsForSpecificColumns(
             }
         }
 
-        StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, startTs);
+        StartTsResultsCollector collector = new StartTsResultsCollector(startTs, extractorFactory);
         cellLoader.loadWithTs(
                 "getRows",
                 tableRef,
@@ -804,7 +815,7 @@ public Map<Cell, Value> get(TableReference tableRef, Map<Cell, Long> timestampBy
                     Multimaps.invertFrom(Multimaps.forMap(timestampByCell), HashMultimap.create());
             ImmutableMap.Builder<Cell, Value> builder = ImmutableMap.builder();
             for (long ts : cellsByTs.keySet()) {
-                StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, ts);
+                StartTsResultsCollector collector = new StartTsResultsCollector(ts, extractorFactory);
                 cellLoader.loadWithTs(
                         "get",
                         tableRef,
@@ -823,7 +834,7 @@ public Map<Cell, Value> get(TableReference tableRef, Map<Cell, Long> timestampBy
 
     private Map<Cell, Value> get(
             String kvsMethodName, TableReference tableRef, Set<Cell> cells, long maxTimestampExclusive) {
-        StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, maxTimestampExclusive);
+        StartTsResultsCollector collector = new StartTsResultsCollector(maxTimestampExclusive, extractorFactory);
         cellLoader.loadWithTs(
                 kvsMethodName,
                 tableRef,u"      }(j (0df00981272b5a894f62dbd3c588bdc01a9c6a86j fatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServices.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -28,7 +28,6 @@
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.table.description.TableMetadata;
-import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.base.RunnableCheckedException;
 import com.palantir.common.base.Throwables;
 import com.palantir.common.visitor.Visitor;
@@ -49,6 +48,7 @@
 import java.util.Optional;
 import java.util.UUID;
 import java.util.concurrent.ConcurrentHashMap;
+import java.util.function.Function;
 import java.util.stream.Collectors;
 import org.apache.cassandra.thrift.CfDef;
 import org.apache.cassandra.thrift.Column;
@@ -408,11 +408,11 @@ interface ThreadSafeResultVisitor extends Visitor<Map<ByteBuffer, List<ColumnOrS
 
     static class StartTsResultsCollector implements ThreadSafeResultVisitor {
         private final Map<Cell, Value> collectedResults = new ConcurrentHashMap<>();
-        private final ValueExtractor extractor;
+        private final ResultsExtractor<Value> extractor;
         private final long startTs;
 
-        StartTsResultsCollector(MetricsManager metricsManager, long startTs) {
-            this.extractor = new ValueExtractor(metricsManager, collectedResults);
+        StartTsResultsCollector(long startTs, Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory) {
+            this.extractor = extractorFactory.apply(collectedResults);
             this.startTs = startTs;
         }
 u}(j (ed0533b540582038a030e5a294c22806773961e9j Watlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CellLoader.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCellLoader.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCellLoader.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCellLoader.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -33,6 +33,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.tracing.CloseableTracer;
+import com.palantir.tracing.Tracer;
 import java.nio.ByteBuffer;
 import java.util.AbstractList;
 import java.util.ArrayList;
@@ -95,17 +96,19 @@ void loadWithTs(
             CassandraKeyValueServices.ThreadSafeResultVisitor visitor,
             ConsistencyLevel consistency) {
         Map<CassandraServer, List<Cell>> hostsAndCells;
-        try (CloseableTracer tracer = CloseableTracer.startSpan(
-                "loadWithTs.partitionByHost",
-                ImmutableMap.of(
+
+        ImmutableMap<String, String> traceContext = Tracer.hasUnobservableTrace()
+                ? ImmutableMap.of()
+                : ImmutableMap.of(
                         "cells",
                         String.valueOf(cells.size()),
                         "tableRef",
                         LoggingArgs.safeInternalTableNameOrPlaceholder(tableRef.toString()),
                         "timestampClause",
                         loadAllTs ? "for all timestamps " : "",
                         "startTs",
-                        String.valueOf(startTs)))) {
+                        String.valueOf(startTs));
+        try (CloseableTracer tracer = CloseableTracer.startSpan("loadWithTs.partitionByHost", traceContext)) {
             hostsAndCells = HostPartitioner.partitionByHost(clientPool, cells, Cell::getRowName);
         }
         int totalPartitions = hostsAndCells.keySet().size();u}(j (ee1124347a96b3aab3852646e5590f8594bf42d5j Xatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/RangeLoader.javaj modifiedj~ K	j Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRangeLoader.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRangeLoader.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRangeLoader.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.keyvalue.cassandra;
 
 import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.RangeRequest;
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
@@ -26,31 +27,33 @@
 import com.palantir.atlasdb.keyvalue.cassandra.paging.RowGetter;
 import com.palantir.atlasdb.keyvalue.cassandra.paging.ThriftColumnGetter;
 import com.palantir.atlasdb.keyvalue.cassandra.thrift.SlicePredicates;
-import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.base.ClosableIterator;
 import com.palantir.common.base.ClosableIterators;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import org.apache.cassandra.thrift.SlicePredicate;
 
 public class RangeLoader {
     private final CassandraClientPool clientPool;
     private final TracingQueryRunner queryRunner;
-    private final MetricsManager metricsManager;
     private final ReadConsistencyProvider readConsistencyProvider;
+    private final Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory;
 
     public RangeLoader(
             CassandraClientPool clientPool,
             TracingQueryRunner queryRunner,
-            MetricsManager metricsManager,
-            ReadConsistencyProvider readConsistencyProvider) {
+            ReadConsistencyProvider readConsistencyProvider,
+            Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory) {
         this.clientPool = clientPool;
         this.queryRunner = queryRunner;
-        this.metricsManager = metricsManager;
         this.readConsistencyProvider = readConsistencyProvider;
+        this.extractorFactory = extractorFactory;
     }
 
     public ClosableIterator<RowResult<Value>> getRange(TableReference tableRef, RangeRequest rangeRequest, long ts) {
-        return getRangeWithPageCreator(tableRef, rangeRequest, ts, () -> ValueExtractor.create(metricsManager));
+        return getRangeWithPageCreator(tableRef, rangeRequest, ts, () -> extractorFactory.apply(new HashMap<>()));
     }
 
     private <T> ClosableIterator<RowResult<T>> getRangeWithPageCreator(u}(j (3f88196e3d17fc4d5eb62f8e206fd5336c9fac30j ]atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/ResultsExtractor.javaj modifiedj~ K j Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X.  @@ -15,8 +15,6 @@
  */
 package com.palantir.atlasdb.keyvalue.cassandra;
 
-import com.codahale.metrics.Counter;
-import com.palantir.atlasdb.AtlasDbMetricNames;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.ColumnSelection;
@@ -109,10 +107,4 @@ public abstract void internalExtractResult(
             long startTs, ColumnSelection selection, byte[] row, byte[] col, byte[] val, long ts);
 
     public abstract Map<Cell, T> asMap();
-
-    protected Counter getNotLatestVisibleValueCellFilterCounter(Class<?> clazz) {
-        // TODO(hsaraogi): add table names as a tag
-        return metricsManager.registerOrGetCounter(
-                clazz, AtlasDbMetricNames.CellFilterMetrics.NOT_LATEST_VISIBLE_VALUE);
-    }
 }u}(j (53f8601baae7bbd4e212d593799a09bac05a2badj [atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/ValueExtractor.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj XK  @@ -21,21 +21,17 @@
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.tracing.TraceStatistics;
 import com.palantir.atlasdb.util.MetricsManager;
-import java.util.HashMap;
 import java.util.Map;
 
 class ValueExtractor extends ResultsExtractor<Value> {
     private final Map<Cell, Value> collector;
-    private final Counter notLatestVisibleValueCellFilterCounter =
-            getNotLatestVisibleValueCellFilterCounter(ValueExtractor.class);
+    private final Counter notLatestVisibleValueCellFilterCounter;
 
-    ValueExtractor(MetricsManager metricsManager, Map<Cell, Value> collector) {
+    ValueExtractor(
+            MetricsManager metricsManager, Map<Cell, Value> collector, Counter notLatestVisibleValueCellFilterCounter) {
         super(metricsManager);
         this.collector = collector;
-    }
-
-    static ValueExtractor create(MetricsManager metricsManager) {
-        return new ValueExtractor(metricsManager, new HashMap<>());
+        this.notLatestVisibleValueCellFilterCounter = notLatestVisibleValueCellFilterCounter;
     }
 
     @Overrideu}(j (9f0c7fbc486ed33c7d2e87d7bec15a60af80050bj Katlasdb-commons/src/test/java/com/palantir/util/IndexEncodingUtilsTest.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -78,7 +78,8 @@ public void cannotLookupUnknownChecksumType() {
 
     @Test
     public void canEncodeSimpleData() {
-        assertThat(createIndexEncoding().indexToValue()).isEqualTo(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
+        assertThat(createIndexEncoding().indexToValue())
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
     }
 
     @Testu}(j (b173565d678b7b542b83a400be83c1df5712c1cbj datlasdb-config/src/main/java/com/palantir/atlasdb/factory/DefaultLockAndTimestampServiceFactory.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X?  @@ -262,7 +262,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
                     timelockRequestBatcherProviders,
                     knownSchemas);
         } else {
-            return createRawEmbeddedServices(metricsManager, registrar, lock, time);
+            return createRawEmbeddedServices(metricsManager, lock, time);
         }
     }
 
@@ -621,7 +621,6 @@ private static LockAndTimestampServices createRawRemoteServices(
 
     private static LockAndTimestampServices createRawEmbeddedServices(
             MetricsManager metricsManager,
-            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> managedTimestampServiceSupplier) {
         LockService lockService =
@@ -634,10 +633,6 @@ private static LockAndTimestampServices createRawEmbeddedServices(
         TimestampManagementService timestampManagementService = ServiceCreator.instrumentService(
                 metricsManager.getRegistry(), managedTimestampService, TimestampManagementService.class);
 
-        registrar.accept(lockService);
-        registrar.accept(timeService);
-        registrar.accept(timestampManagementService);
-
         return ImmutableLockAndTimestampServices.builder()
                 .lock(lockService)
                 .timestamp(timeService)u}(j (013b7c530f64d79bbe88bf4896edfaea7bbce3c2j ^atlasdb-config/src/main/java/com/palantir/atlasdb/factory/ServiceDiscoveringAtlasSupplier.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplier.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplier.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplier.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -17,7 +17,6 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.spi.AtlasDbFactory;
@@ -52,7 +51,6 @@ public class ServiceDiscoveringAtlasSupplier {
 
     private static String timestampServiceCreationInfo = null;
 
-    private final Optional<LeaderConfig> leaderConfig;
     private final Supplier<KeyValueService> keyValueService;
     private final Supplier<ManagedTimestampService> timestampService;
     private final Supplier<TimestampStoreInvalidator> timestampStoreInvalidator;
@@ -63,18 +61,16 @@ public ServiceDiscoveringAtlasSupplier(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> namespace,
             Optional<TableReference> tableReferenceOverride,
             boolean initializeAsync,
             boolean collectThreadDumpOnInit,
             LongSupplier timestampSupplier) {
-        this.leaderConfig = leaderConfig;
         this.collectThreadDumps = collectThreadDumpOnInit;
 
         AtlasDbFactory atlasFactory = AtlasDbServiceDiscovery.createAtlasFactoryOfCorrectType(config);
         keyValueService = Suppliers.memoize(() -> atlasFactory.createRawKeyValueService(
-                metricsManager, config, runtimeConfig, leaderConfig, namespace, timestampSupplier, initializeAsync));
+                metricsManager, config, runtimeConfig, namespace, timestampSupplier, initializeAsync));
         timestampService = () -> atlasFactory.createManagedTimestampService(
                 getKeyValueService(), tableReferenceOverride, initializeAsync);
         timestampStoreInvalidator =
@@ -154,23 +150,11 @@ private static String saveThreadDumpsToFile(File file) throws IOException {
     }
 
     private void reportMultipleTimestampFetch(String path) {
-        if (!leaderConfig.isPresent()) {
-            log.warn(
-                    "[timestamp-service-creation] Timestamp service fetched for a second time, and there is no leader"
-                        + " config. This means that you may soon encounter the MultipleRunningTimestampServices error."
-                        + " Thread dumps from both fetches of the timestamp service have been outputted to {}. If you"
-                        + " encounter a MultipleRunningTimestampServices error, please send this file to support.",
-                    UnsafeArg.of("path", path));
-        } else {
-            log.warn(
-                    "[timestamp-service-creation] Timestamp service fetched for a second time. This is only OK if "
-                            + "you are running in an HA configuration and have just had a leadership election. "
-                            + "You do have a leader config, but we're outputting thread dumps from both fetches of the "
-                            + "timestamp service, in case this second service was created in error. "
-                            + "Thread dumps from both fetches of the timestamp service have been outputted to {}. "
-                            + "If you encounter a MultipleRunningTimestampServices error, please send this file to "
-                            + "support.",
-                    UnsafeArg.of("path", path));
-        }
+        log.warn(
+                "[timestamp-service-creation] Timestamp service fetched for a second time. This means that you may"
+                    + " soon encounter the MultipleRunningTimestampServices error. Thread dumps from both fetches of"
+                    + " the timestamp service have been outputted to {}. If you encounter a"
+                    + " MultipleRunningTimestampServices error, please send this file to support.",
+                UnsafeArg.of("path", path));
     }
 }u}(j (b8581c6ca1106927b53fd0a43ed2256f151e06a2j Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javaj modifiedj~ K j Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -366,7 +366,6 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                 metricsManager,
                 installConfig,
                 runtime.map(AtlasDbRuntimeConfig::keyValueService),
-                config().leader(),
                 config().namespace(),
                 Optional.empty(),
                 config().initializeAsync(),
@@ -543,7 +542,6 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                         metricsManager,
                         config(),
                         runtime,
-                        registrar(),
                         keyValueService,
                         transactionService,
                         follower,
@@ -818,7 +816,6 @@ private static BackgroundSweeperImpl initializeSweepBackgroundProcess(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Supplier<AtlasDbRuntimeConfig> runtimeConfigSupplier,
-            Consumer<Object> registrar,
             KeyValueService kvs,
             TransactionService transactionService,
             CleanupFollower follower,u}(j (dad98d7c2690becaffda75d8210ca450a905cadaj Tatlasdb-config/src/main/java/com/palantir/atlasdb/memory/InMemoryAtlasDbFactory.javaj modifiedj~ K j Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactory.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactory.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X^  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.cleaner.api.OnCleanupTask;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.impl.InMemoryKeyValueService;
@@ -57,7 +56,6 @@ public String getType() {
      *
      * @param config Configuration file.
      * @param runtimeConfig unused.
-     * @param leaderConfig unused.
      * @param unused unused.
      * @param unusedLongSupplier unused.
      * @param initializeAsync unused. Async initialization has not been implemented and is not propagated.
@@ -68,7 +66,6 @@ public InMemoryKeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> unused,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(j (9d94736c40bc3a7b7c6c4faa07acaa3b2fbfa304j Watlasdb-config/src/main/java/com/palantir/atlasdb/memory/InMemoryDbTimeLockFactory.javaj modifiedj~ K j Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryDbTimeLockFactory.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryDbTimeLockFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryDbTimeLockFactory.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -18,7 +18,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
@@ -49,7 +48,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean _initializeAsync) {
         return new InMemoryKeyValueService(true);
     }u}(j (1e67bc43b22caa75f6140e38e93e532137da9f8cj aatlasdb-config/src/test/java/com/palantir/atlasdb/factory/AutoServiceAnnotatedAtlasDbFactory.javaj modifiedj~ K j Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAutoServiceAnnotatedAtlasDbFactory.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAutoServiceAnnotatedAtlasDbFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAutoServiceAnnotatedAtlasDbFactory.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.google.common.collect.Lists;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.spi.AtlasDbFactory;
@@ -62,7 +61,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> unused,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(j (a49dbe0806cf2c455793e9c38b3290d2549a32a2j batlasdb-config/src/test/java/com/palantir/atlasdb/factory/ServiceDiscoveringAtlasSupplierTest.javaj modifiedj~ K j Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplierTest.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplierTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FServiceDiscoveringAtlasSupplierTest.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -20,7 +20,6 @@
 import static org.mockito.Mockito.mock;
 
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.spi.AtlasDbFactory;
 import com.palantir.atlasdb.spi.KeyValueServiceConfig;
 import com.palantir.atlasdb.spi.KeyValueServiceConfigHelper;
@@ -36,7 +35,6 @@ public class ServiceDiscoveringAtlasSupplierTest {
     private final KeyValueServiceConfigHelper kvsConfig = () -> AutoServiceAnnotatedAtlasDbFactory.TYPE;
     private final KeyValueServiceConfigHelper invalidKvsConfig = () -> "should not be found kvs";
     private final AtlasDbFactory delegate = new AutoServiceAnnotatedAtlasDbFactory();
-    private final Optional<LeaderConfig> leaderConfig = Optional.of(mock(LeaderConfig.class));
     private final MetricsManager metrics = MetricsManagers.createForTests();
 
     @Test
@@ -49,7 +47,6 @@ public void delegateToFactoriesAnnotatedWithAutoService() {
                         metrics,
                         kvsConfig,
                         Refreshable.only(Optional.empty()),
-                        leaderConfig,
                         Optional.empty(),
                         AtlasDbFactory.THROWING_FRESH_TIMESTAMP_SOURCE,
                         AtlasDbFactory.DEFAULT_INITIALIZE_ASYNC));
@@ -94,7 +91,6 @@ private ServiceDiscoveringAtlasSupplier createAtlasSupplier(KeyValueServiceConfi
                 metrics,
                 providedKvsConfig,
                 Refreshable.only(Optional.empty()),
-                leaderConfig,
                 Optional.empty(),
                 Optional.empty(),
                 AtlasDbConstants.DEFAULT_INITIALIZE_ASYNC,u}(j (fafced885dba46090538c96c11b8e33ca7a1baf4j Yatlasdb-config/src/test/java/com/palantir/atlasdb/memory/InMemoryAsyncAtlasDbFactory.javaj modifiedj~ K j Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactory.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactory.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.memory;
 
 import com.google.auto.service.AutoService;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.impl.AsyncInitializeableInMemoryKvs;
@@ -46,7 +45,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager unusedMetricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> unusedRuntimeConfig,
-            Optional<LeaderConfig> unusedLeaderConfig,
             Optional<String> unused,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(j (bf61a9d5b6cd91b9f8ee2a9c1680504983d769ddj ]atlasdb-config/src/test/java/com/palantir/atlasdb/memory/InMemoryAsyncAtlasDbFactoryTest.javaj modifiedj~ K j Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactoryTest.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactoryTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAsyncAtlasDbFactoryTest.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj Xb  @@ -80,7 +80,6 @@ private KeyValueService createRawKeyValueService(boolean initializeAsync, boolea
                 new InMemoryAsyncAtlasDbConfig(eventuallySucceed),
                 Refreshable.only(Optional.empty()),
                 Optional.empty(),
-                Optional.empty(),
                 null,
                 initializeAsync);
     }u}(j (2bb76883abdb0aeefd14bca1e2f5ac642666ff8cj Xatlasdb-config/src/test/java/com/palantir/atlasdb/memory/InMemoryAtlasDbFactoryTest.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactoryTest.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactoryTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fmemory%2FInMemoryAtlasDbFactoryTest.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X$  @@ -59,12 +59,6 @@ public void asyncInitTimestampServiceSynchronous() {
 
     private KeyValueService createRawKeyValueService(boolean initializeAsync) {
         return factory.createRawKeyValueService(
-                null,
-                null,
-                Refreshable.only(Optional.empty()),
-                Optional.empty(),
-                Optional.empty(),
-                null,
-                initializeAsync);
+                null, null, Refreshable.only(Optional.empty()), Optional.empty(), null, initializeAsync);
     }
 }u}(j (49641fbb8014ea4755f443d2a46dd847148cf6c9j batlasdb-container-test-utils/src/main/java/com/palantir/atlasdb/containers/CassandraContainer.javaj modifiedj~ K j Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FCassandraContainer.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FCassandraContainer.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FCassandraContainer.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj Xp  @@ -16,16 +16,13 @@
 package com.palantir.atlasdb.containers;
 
 import com.datastax.driver.core.Cluster;
-import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CqlCapableConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCassandraCredentialsConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.ImmutableCqlCapableConfig;
-import com.palantir.atlasdb.config.ImmutableLeaderConfig;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueService;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl;
 import com.palantir.atlasdb.keyvalue.cassandra.async.DefaultCassandraAsyncKeyValueServiceFactory;
@@ -37,7 +34,6 @@
 import java.net.InetSocketAddress;
 import java.net.SocketAddress;
 import java.util.Map;
-import java.util.Optional;
 import java.util.UUID;
 import java.util.function.Supplier;
 
@@ -49,13 +45,6 @@ public class CassandraContainer extends Container {
     private static final String CONTAINER_NAME = "cassandra";
     private static final String THROWAWAY_CONTAINER_NAME = "cassandra2";
 
-    @SuppressWarnings("OptionalUsedAsFieldOrParameterType")
-    static final Optional<LeaderConfig> LEADER_CONFIG = Optional.of(ImmutableLeaderConfig.builder()
-            .quorumSize(1)
-            .localServer("localhost")
-            .leaders(ImmutableSet.of("localhost"))
-            .build());
-
     private final CassandraKeyValueServiceConfig config;
     private final String dockerComposeFile;
     private final String name;u}(j (e7af481eab1762bea3f999752f6d2741324bf145j Natlasdb-dagger/src/main/java/com/palantir/atlasdb/services/ServicesConfig.javaj modifiedj~ K j Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-dagger%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fservices%2FServicesConfig.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-dagger%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fservices%2FServicesConfig.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dagger%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fservices%2FServicesConfig.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -46,7 +46,6 @@ public ServiceDiscoveringAtlasSupplier atlasDbSupplier(MetricsManager metrics) {
                 metrics,
                 atlasDbConfig().keyValueService(),
                 Refreshable.only(atlasDbRuntimeConfig().keyValueService()),
-                atlasDbConfig().leader(),
                 atlasDbConfig().namespace(),
                 Optional.empty(),
                 atlasDbConfig().initializeAsync(),u}(j (27ef72e8bb9601a68c5a9a8c8b770c691b18b92aj atlasdb-dbkvs-tests/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/DbTimestampStoreInvalidatorCreationTest.javaj modifiedj~ K j Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-dbkvs-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FDbTimestampStoreInvalidatorCreationTest.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-dbkvs-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FDbTimestampStoreInvalidatorCreationTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FDbTimestampStoreInvalidatorCreationTest.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -19,13 +19,11 @@
 import static com.palantir.atlasdb.spi.AtlasDbFactory.NO_OP_FAST_FORWARD_TIMESTAMP;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.Mockito.mock;
 
 import com.google.common.collect.ImmutableSet;
 import com.google.common.util.concurrent.SimpleTimeLimiter;
 import com.google.common.util.concurrent.TimeLimiter;
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.factory.ServiceDiscoveringAtlasSupplier;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.dbkvs.InvalidationRunner;
@@ -49,7 +47,6 @@
 
 public class DbTimestampStoreInvalidatorCreationTest {
     private final MetricsManager metrics = MetricsManagers.createForTests();
-    private final Optional<LeaderConfig> leaderConfig = Optional.of(mock(LeaderConfig.class));
 
     @ClassRule
     public static final TestResourceManager TRM = new TestResourceManager(DbKvsPostgresTestSuite::createKvs);
@@ -124,7 +121,6 @@ private ServiceDiscoveringAtlasSupplier createAtlasSupplier(
                 metrics,
                 providedKvsConfig,
                 Refreshable.only(Optional.empty()),
-                leaderConfig,
                 Optional.empty(),
                 tableReference,
                 AtlasDbConstants.DEFAULT_INITIALIZE_ASYNC,u}(j (0a8f1ae139f220797b9abeebbd4c969fee53e76ej Uatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/DbAtlasDbFactory.javaj modifiedj~ K j Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FDbAtlasDbFactory.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FDbAtlasDbFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FDbAtlasDbFactory.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X*  @@ -17,7 +17,6 @@
 
 import com.google.auto.service.AutoService;
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.ConnectionManagerAwareDbKvs;
@@ -53,7 +52,6 @@ public String getType() {
      *
      * @param config Configuration file.
      * @param runtimeConfig unused.
-     * @param leaderConfig unused.
      * @param namespace unused.
      * @param unusedLongSupplier unused.
      * @param initializeAsync initialize asynchronously
@@ -64,7 +62,6 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            Optional<LeaderConfig> leaderConfig,
             Optional<String> namespace,
             LongSupplier unusedLongSupplier,
             boolean initializeAsync) {u}(j (65a0b7f0f54b0b2a052a4cbcb93084d57486a983j `atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/RelationalDbTimeLockFactory.javaj modifiedj~ K j Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FRelationalDbTimeLockFactory.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FRelationalDbTimeLockFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FRelationalDbTimeLockFactory.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X~  @@ -19,7 +19,6 @@
 import com.google.auto.service.AutoService;
 import com.google.common.base.Preconditions;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
@@ -54,13 +53,11 @@ public KeyValueService createRawKeyValueService(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean initializeAsync) {
         return delegate.createRawKeyValueService(
                 metricsManager,
                 config,
                 runtimeConfig,
-                Optional.of(leaderConfig),
                 Optional.empty(), // This refers to an AtlasDB namespace - we use the config to talk to the db
                 AtlasDbFactory.THROWING_FRESH_TIMESTAMP_SOURCE, // This is how we give out timestamps!
                 initializeAsync);u}(j (90edeba1b42bea88433fe9a153bd7dee8c778e39j 8atlasdb-ete-tests/docker-compose.no-leader.cassandra.ymlj removedj~ K j K j K j https://github.com/palantir/atlasdb/blob/5014396ec71e1e9f40d074fa178c2c9c8a817ab3/atlasdb-ete-tests%2Fdocker-compose.no-leader.cassandra.ymlj https://github.com/palantir/atlasdb/raw/5014396ec71e1e9f40d074fa178c2c9c8a817ab3/atlasdb-ete-tests%2Fdocker-compose.no-leader.cassandra.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.no-leader.cassandra.yml?ref=5014396ec71e1e9f40d074fa178c2c9c8a817ab3j Xg  @@ -1,32 +0,0 @@
-version: '2'
-
-services:
-  cassandra:
-    image: palantirtechnologies/docker-cassandra-atlasdb:$CASSANDRA_VERSION
-    ports:
-      - "9160"
-      - "9042"
-      - "7199"
-    environment:
-      - MAX_HEAP_SIZE=$CASSANDRA_MAX_HEAP_SIZE
-      - HEAP_NEWSIZE=$CASSANDRA_HEAP_NEWSIZE
-      - LOCAL_JMX=no
-
-  ete1:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.no-leader.cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console'
-    depends_on:
-      - cassandra
-    environment:
-      - ME=ete1
-    ports:
-      - "3828"
-
-  ete-cli:
-    build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.no-leader.cassandra.client.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
-    environment:
-      - ME=ete1
-    depends_on:
-      - ete1u}(j (1302da74efe18e84324e9d1b29b32b97d32d2286j +atlasdb-ete-tests/docker-compose.oracle.ymlj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlj ~https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.oracle.yml?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj @@ -2,7 +2,7 @@ version: '2'
 
 services:
   oracle:
-    image: palantirtechnologies/oracle-atlasdb:19.19.0.0-se
+    image: palantirtechnologies/oracle-atlasdb:19.20.0.0-se
     ports:
       - "1521"
 u}(j (34ea6c0b5ef5dbd5272880f34171baede31d5a1bj Hatlasdb-ete-tests/docker/conf/atlasdb-ete.no-leader.cassandra.client.ymlj removedj~ K j K'j K'j https://github.com/palantir/atlasdb/blob/5014396ec71e1e9f40d074fa178c2c9c8a817ab3/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.no-leader.cassandra.client.ymlj https://github.com/palantir/atlasdb/raw/5014396ec71e1e9f40d074fa178c2c9c8a817ab3/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.no-leader.cassandra.client.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.no-leader.cassandra.client.yml?ref=5014396ec71e1e9f40d074fa178c2c9c8a817ab3j X  @@ -1,39 +0,0 @@
-server:
-  #rootPath: /api/*
-  #applicationContextPath: /
-  #adminContextPath: /
-  applicationConnectors:
-    - type: http
-      port: 3828
-  adminConnectors:
-    - type: http
-      port: 3829
-
-atlasdb:
-  keyValueService:
-    type: cassandra
-    servers:
-      - cassandra:9160
-    poolSize: 20
-    keyspace: atlasete
-    credentials:
-      username: cassandra
-      password: cassandra
-    ssl: false
-    replicationFactor: 1
-    mutationBatchCount: 10000
-    mutationBatchSizeBytes: 10000000
-    fetchBatchCount: 1000
-    autoRefreshNodes: false
-
-  leader:
-    quorumSize: 1
-    learnerLogDir: var/data/paxosLog/learner1
-    acceptorLogDir: var/data/paxosLog/acceptor1
-    localServer: http://${ME}:3828
-    leaders:
-      - http://ete1:3828
-    sslConfiguration:
-      keyStorePath: "var/security/keyStore.jks"
-      keyStorePassword: "keystore"
-      trustStorePath: "var/security/trustStore.jks"u}(j (5717012391f5914faa1531b59bde36cee3aa6a6fj Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraNoLeaderTestSuite.javaj removedj~ K j K.j K.j https://github.com/palantir/atlasdb/blob/5014396ec71e1e9f40d074fa178c2c9c8a817ab3/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraNoLeaderTestSuite.javaj https://github.com/palantir/atlasdb/raw/5014396ec71e1e9f40d074fa178c2c9c8a817ab3/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraNoLeaderTestSuite.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraNoLeaderTestSuite.java?ref=5014396ec71e1e9f40d074fa178c2c9c8a817ab3j X#  @@ -1,46 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.ete;
-
-import com.google.common.collect.ImmutableList;
-import com.palantir.atlasdb.containers.CassandraEnvironment;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import com.palantir.atlasdb.ete.coordination.MultipleSchemaVersionsCoordinationEteTest;
-import org.junit.ClassRule;
-import org.junit.rules.RuleChain;
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-
-@RunWith(Suite.class)
-@Suite.SuiteClasses({
-    TodoEteTest.class,
-    ServiceExposureEteTest.class,
-    CassandraTimestampsEteTest.class,
-    TimestampManagementEteTest.class,
-    CoordinationEteTest.class,
-    MultipleSchemaVersionsCoordinationEteTest.class,
-    LockWithoutTimelockEteTest.class
-})
-public class CassandraNoLeaderTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");
-
-    @ClassRule
-    public static final RuleChain COMPOSITION_SETUP = EteSetup.setupComposition(
-            CassandraNoLeaderTestSuite.class,
-            "docker-compose.no-leader.cassandra.yml",
-            CLIENTS,
-            CassandraEnvironment.get());
-}u}(j (dfda65b5b3a490e801cb83c5985bf54d247aafc5j Vatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/TimeLockMigrationEteTest.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -100,6 +100,7 @@ public class TimeLockMigrationEteTest {
             SslConfiguration.of(Paths.get("var/security/trustStore.jks"));
     public static final TrustContext TRUST_CONTEXT = SslSocketFactories.createTrustContext(SSL_CONFIGURATION);
 
+    private static final long ID = 1L;
     private static final Todo TODO = ImmutableTodo.of("some stuff to do");
     private static final Todo TODO_2 = ImmutableTodo.of("more stuff to do");
     private static final Todo TODO_3 = ImmutableTodo.of("even more stuff to do");
@@ -126,17 +127,14 @@ public static void setUp() {
     }
 
     @Test
-    public void automaticallyMigratesTimestampsAndFailsOnRestart() throws Exception {
-        TimestampService timestampClient = createEteClientFor(TimestampService.class);
+    public void automaticallyMigratesTimestampsAndFailsOnRestart() {
         TodoResource todoClient = createEteClientFor(TodoResource.class);
 
-        todoClient.addTodo(TODO);
+        long embeddedTimestamp = todoClient.addTodoWithIdAndReturnTimestamp(ID, TODO);
         softAssertions
                 .assertThat(todoClient.getTodoList())
                 .as("contains one todo pre-migration")
                 .contains(TODO);
-
-        long embeddedTimestamp = timestampClient.getFreshTimestamp();
         softAssertions
                 .assertThat(embeddedTimestamp)
                 .as("can get a timestamp before migration")u}(j (d818b689da94b2df8cc7d03ee10dfe828a3d8b4dj  atlasdb-impl-shared/build.gradlej modifiedj~ Kj K j Kj thttps://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fbuild.gradlej shttps://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fbuild.gradle?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -50,6 +50,8 @@ dependencies {
   implementation 'jakarta.ws.rs:jakarta.ws.rs-api'
   implementation 'org.apache.commons:commons-lang3'
   implementation 'org.checkerframework:checker-qual'
+  implementation 'org.eclipse.collections:eclipse-collections'
+  implementation 'org.eclipse.collections:eclipse-collections-api'
   implementation 'org.slf4j:slf4j-api'
 
   implementation project(':atlasdb-api')u}(j (0d8de51ab4362cdda2463fb83c926e38cf12c269j fatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTable.javaj modifiedj~ Kj K
j Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X
  @@ -22,6 +22,7 @@
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.Iterables;
+import com.google.common.collect.Maps;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.MoreExecutors;
@@ -33,7 +34,6 @@
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.common.exception.AtlasDbDependencyException;
-import com.palantir.common.streams.KeyedStream;
 import com.palantir.common.time.Clock;
 import com.palantir.common.time.SystemClock;
 import com.palantir.logsafe.Preconditions;
@@ -52,6 +52,8 @@
 import java.util.stream.Collectors;
 import java.util.stream.StreamSupport;
 import javax.annotation.Nonnull;
+import org.eclipse.collections.api.factory.primitive.ObjectLongMaps;
+import org.eclipse.collections.api.map.primitive.MutableObjectLongMap;
 import org.immutables.value.Value;
 
 public class ResilientCommitTimestampAtomicTable implements AtomicTable<Long, TransactionStatus> {
@@ -141,16 +143,16 @@ public void update(Long key, TransactionStatus value) throws KeyAlreadyExistsExc
 
     @Override
     public void updateMultiple(Map<Long, TransactionStatus> keyValues) throws KeyAlreadyExistsException {
-        Map<Cell, Long> cellToStartTs = keyValues.keySet().stream()
-                .collect(Collectors.toMap(encodingStrategy::encodeStartTimestampAsCell, x -> x));
-        Map<Cell, byte[]> stagingValues = KeyedStream.stream(cellToStartTs)
-                .map(startTs -> encodingStrategy.encodeCommitStatusAsValue(
-                        startTs, AtomicValue.staging(keyValues.get(startTs))))
-                .collectToMap();
+        MutableObjectLongMap<Cell> cellToStartTs = ObjectLongMaps.mutable.withInitialCapacity(keyValues.size());
+        keyValues.keySet().forEach(ts -> cellToStartTs.put(encodingStrategy.encodeStartTimestampAsCell(ts), ts));
+
+        Map<Cell, byte[]> stagingValues = Maps.newHashMapWithExpectedSize(cellToStartTs.size());
+        cellToStartTs.forEachKeyValue((cell, startTs) -> stagingValues.put(
+                cell,
+                encodingStrategy.encodeCommitStatusAsValue(startTs, AtomicValue.staging(keyValues.get(startTs)))));
+
         store.batchAtomicUpdate(stagingValues);
-        store.put(KeyedStream.stream(stagingValues)
-                .map(encodingStrategy::transformStagingToCommitted)
-                .collectToMap());
+        store.put(Maps.transformValues(stagingValues, encodingStrategy::transformStagingToCommitted));
     }
 
     @Overrideu}(j (be6fbc6e8ce696fafb59c3d25b4a7d665bd2ac80j _atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/ClientLockDiagnosticCollector.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollector.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollector.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollector.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -27,6 +27,7 @@
 import java.util.Set;
 import java.util.UUID;
 import java.util.stream.LongStream;
+import org.eclipse.collections.api.map.primitive.ImmutableLongLongMap;
 import org.immutables.value.Value;
 
 /**
@@ -105,6 +106,6 @@ interface ConflictTrace {
         Map<Cell, Long> latestTimestamps();
 
         @Value.Parameter
-        Map<Long, Long> commitTimestamps();
+        ImmutableLongLongMap commitTimestamps();
     }
 }u}(j (2ba2417016f1307f2e893ab84628481d801dc9e6j catlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/ClientLockDiagnosticCollectorImpl.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollectorImpl.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollectorImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FClientLockDiagnosticCollectorImpl.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -29,6 +29,7 @@
 import java.util.function.UnaryOperator;
 import java.util.stream.LongStream;
 import javax.annotation.Nullable;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
 
 /**
  * TODO(fdesouza): Remove this once PDS-95791 is resolved.
@@ -63,8 +64,9 @@ public void collect(
             long startTimestamp,
             Map<Cell, Long> keysToLoad,
             Map<Cell, Long> latestTimestamps,
-            Map<Long, Long> commitTimestamps) {
-        ConflictTrace conflictTrace = ImmutableConflictTrace.of(keysToLoad, latestTimestamps, commitTimestamps);
+            LongLongMap commitTimestamps) {
+        ConflictTrace conflictTrace =
+                ImmutableConflictTrace.of(keysToLoad, latestTimestamps, commitTimestamps.toImmutable());
         cache.asMap().compute(startTimestamp, mutateDigest(digest -> digest.withNewConflictDigest(conflictTrace)));
     }
 u}(j (a50601f1936696d69de12e1e665ac187788ac034j Patlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/ConflictTracer.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FConflictTracer.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FConflictTracer.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FConflictTracer.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -18,6 +18,7 @@
 
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import java.util.Map;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
 
 /**
  * TODO(fdesouza): Remove this once PDS-95791 is resolved.
@@ -31,5 +32,5 @@ void collect(
             long startTimestamp,
             Map<Cell, Long> keysToLoad,
             Map<Cell, Long> latestTimestamps,
-            Map<Long, Long> commitTimestamps);
+            LongLongMap commitTimestamps);
 }u}(j (2f8a21800d40cf1133b80f1dfeb5d0fe9712c6e4j Uatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/PartitionInfo.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FPartitionInfo.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FPartitionInfo.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FPartitionInfo.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X0  @@ -20,14 +20,13 @@
 
 @Value.Immutable
 public interface PartitionInfo {
+    @Value.Parameter
     ShardAndStrategy shardAndStrategy();
 
+    @Value.Parameter
     long timestamp();
 
     static PartitionInfo of(int shard, SweeperStrategy strategy, long timestamp) {
-        return ImmutablePartitionInfo.builder()
-                .shardAndStrategy(ShardAndStrategy.of(shard, strategy))
-                .timestamp(timestamp)
-                .build();
+        return ImmutablePartitionInfo.of(ShardAndStrategy.of(shard, strategy), timestamp);
     }
 }u}(j (20af9fe9cf3ce8a1c398fa50ae5885df278e98d9j Xatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/ShardAndStrategy.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FShardAndStrategy.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FShardAndStrategy.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FShardAndStrategy.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj XU  @@ -22,8 +22,10 @@
 
 @Value.Immutable
 public abstract class ShardAndStrategy {
+    @Value.Parameter
     public abstract int shard();
 
+    @Value.Parameter
     public abstract SweeperStrategy strategy();
 
     public String toText() {
@@ -51,18 +53,15 @@ public boolean isThorough() {
     }
 
     public static ShardAndStrategy of(int shard, SweeperStrategy sweepStrategy) {
-        return ImmutableShardAndStrategy.builder()
-                .shard(shard)
-                .strategy(sweepStrategy)
-                .build();
+        return ImmutableShardAndStrategy.of(shard, sweepStrategy);
     }
 
     public static ShardAndStrategy conservative(int shard) {
-        return ShardAndStrategy.of(shard, SweeperStrategy.CONSERVATIVE);
+        return ImmutableShardAndStrategy.of(shard, SweeperStrategy.CONSERVATIVE);
     }
 
     public static ShardAndStrategy thorough(int shard) {
-        return ShardAndStrategy.of(shard, SweeperStrategy.THOROUGH);
+        return ImmutableShardAndStrategy.of(shard, SweeperStrategy.THOROUGH);
     }
 
     public static ShardAndStrategy nonSweepable() {u}(j (914d867ae841df30303a097c21539e62c7f411aej Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/SweepQueueTable.javaj modifiedj~ Kj K j Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepQueueTable.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepQueueTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepQueueTable.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X{  @@ -55,6 +55,10 @@ public void enqueue(List<WriteInfo> allWrites) {
     }
 
     private void enqueueFiltered(Map<PartitionInfo, List<WriteInfo>> partitionedWrites) {
+        if (partitionedWrites.isEmpty()) {
+            return;
+        }
+
         Map<Cell, byte[]> referencesToDedicatedCells = new HashMap<>();
         Map<Cell, byte[]> cellsToWrite = new HashMap<>();
 u}(j (a9b4705f8f7aa3df1b445c48b97b8bbc12756d22j Vatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/SweepableCells.javaj modifiedj~ Kj Kj K,j https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepableCells.java.      j https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepableCells.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepableCells.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -52,6 +52,7 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.ArrayList;
 import java.util.Collection;
+import java.util.Comparator;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Iterator;
@@ -61,6 +62,9 @@
 import java.util.Set;
 import java.util.SortedSet;
 import java.util.stream.Collectors;
+import org.eclipse.collections.api.factory.primitive.LongSets;
+import org.eclipse.collections.api.set.primitive.LongSet;
+import org.eclipse.collections.api.set.primitive.MutableLongSet;
 
 public class SweepableCells extends SweepQueueTable {
     private static final SafeLogger log = SafeLoggerFactory.get(SweepableCells.class);
@@ -208,7 +212,7 @@ private WriteBatch getBatchOfWrites(
             writeBatch.merge(getWrites(row, col, entry.getValue()));
         }
         // there may be entries remaining with the same start timestamp as the last processed one. If that is the case
-        // we want to include these ones as well. This is OK since there are at most MAX_CELLS_GENERIC - 1 of them.
+        // we want to include these as well. This is OK since there are at most MAX_CELLS_GENERIC - 1 of them.
         while (resultIterator.hasNext()) {
             Map.Entry<Cell, Value> entry = resultIterator.peek();
             SweepableCellsTable.SweepableCellsColumn col = computeColumn(entry);
@@ -227,10 +231,9 @@ private static final class WriteBatch {
         private final Multimap<Long, WriteInfo> writesByStartTs = HashMultimap.create();
         private final List<SweepableCellsRow> dedicatedRows = new ArrayList<>();
 
-        WriteBatch merge(WriteBatch other) {
+        void merge(WriteBatch other) {
             writesByStartTs.putAll(other.writesByStartTs);
             dedicatedRows.addAll(other.dedicatedRows);
-            return this;
         }
 
         static WriteBatch single(WriteInfo writeInfo) {
@@ -264,7 +267,7 @@ private TimestampsToSweep getTimestampsToSweepDescendingAndCleanupAborted(
             Multimap<Long, WriteInfo> writesByStartTs) {
         Map<Long, Long> startToCommitTs = commitTsCache.loadBatch(writesByStartTs.keySet());
         Map<TableReference, Multimap<Cell, Long>> cellsToDelete = new HashMap<>();
-        List<Long> committedTimestamps = new ArrayList<>();
+        MutableLongSet committedTimestamps = LongSets.mutable.empty();
         long lastSweptTs = minTsExclusive;
         long lastSeenCommitTs = 0L;
         boolean processedAll = true;
@@ -277,11 +280,12 @@ private TimestampsToSweep getTimestampsToSweepDescendingAndCleanupAborted(
             if (commitTs == TransactionConstants.FAILED_COMMIT_TS) {
                 lastSweptTs = startTs;
                 abortedTimestamps.add(startTs);
-                writesByStartTs.get(startTs).stream()
-                        .filter(info -> info.writeRef().isPresent())
-                        .forEach(write -> cellsToDelete
-                                .computeIfAbsent(write.writeRef().get().tableRef(), ignore -> HashMultimap.create())
-                                .put(write.writeRef().get().cell(), write.timestamp()));
+                writesByStartTs.get(startTs).forEach(write -> {
+                    Optional<WriteReference> writeReference = write.writeRef();
+                    writeReference.ifPresent(reference -> cellsToDelete
+                            .computeIfAbsent(reference.tableRef(), _ignore -> HashMultimap.create())
+                            .put(reference.cell(), write.timestamp()));
+                });
             } else if (commitTs < sweepTs) {
                 lastSweptTs = startTs;
                 committedTimestamps.add(startTs);
@@ -318,24 +322,26 @@ private TimestampsToSweep getTimestampsToSweepDescendingAndCleanupAborted(
         });
 
         return ImmutableTimestampsToSweep.builder()
-                .timestampsDescending(
-                        ImmutableSortedSet.copyOf(committedTimestamps).descendingSet())
+                .timestampsDescending(sortDescending(committedTimestamps))
                 .abortedTimestamps(abortedTimestamps)
                 .maxSwept(lastSweptTs)
                 .lastSeenCommitTs(lastSeenCommitTs)
                 .processedAll(processedAll)
                 .build();
     }
 
+    private static ImmutableSortedSet<Long> sortDescending(LongSet committedTimestamps) {
+        ImmutableSortedSet.Builder<Long> timestampsDescending =
+                ImmutableSortedSet.<Long>orderedBy(Comparator.reverseOrder());
+        committedTimestamps.forEach(timestampsDescending::add);
+        return timestampsDescending.build();
+    }
+
     private Collection<WriteInfo> getWritesToSweep(Multimap<Long, WriteInfo> writesByStartTs, SortedSet<Long> startTs) {
-        Map<CellReference, WriteInfo> writesToSweepFor = new HashMap<>();
-        startTs.stream()
-                .map(writesByStartTs::get)
-                .flatMap(Collection::stream)
-                .filter(write -> write.writeRef().isPresent())
-                .forEach(write ->
-                        writesToSweepFor.putIfAbsent(write.writeRef().get().cellReference(), write));
-        return writesToSweepFor.values();
+        Map<CellReference, WriteInfo> writesToSweep = new HashMap<>();
+        startTs.stream().map(writesByStartTs::get).flatMap(Collection::stream).forEach(write -> write.writeRef()
+                .ifPresent(reference -> writesToSweep.putIfAbsent(reference.cellReference(), write)));
+        return writesToSweep.values();
     }
 
     private long getLastSweptTs(u}(j (ac0a8f06091a11835443cd19abb4a3d348a5f781j \atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitioner.javaj modifiedj~ K.j Kj KEj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -28,9 +28,12 @@
 import com.palantir.common.base.Throwables;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
-import java.util.Set;
+import java.util.Optional;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 
@@ -54,39 +57,59 @@ public WriteInfoPartitioner(KeyValueService kvs, Supplier<Integer> numShards) {
      * writes according to shard and strategy.
      */
     public Map<PartitionInfo, List<WriteInfo>> filterAndPartition(List<WriteInfo> writes) {
-        return writes.stream().collect(Collectors.groupingBy(WriteInfo::timestamp)).values().stream()
-                .map(this::filterAndPartitionForSingleTimestamp)
-                .map(Map::entrySet)
-                .flatMap(Set::stream)
-                .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
+        if (writes.isEmpty()) {
+            return Map.of();
+        }
+
+        Collection<List<WriteInfo>> partitionedWrites = writes.stream()
+                .collect(Collectors.groupingBy(WriteInfo::timestamp))
+                .values();
+
+        Map<PartitionInfo, List<WriteInfo>> writesPartitionedByTimestamp = new HashMap<>();
+        for (List<WriteInfo> writeInfos : partitionedWrites) {
+            filterAndPartitionForSingleTimestamp(writeInfos)
+                    .forEach((partition, writeInfo) -> writesPartitionedByTimestamp
+                            .computeIfAbsent(partition, _k -> new ArrayList<>())
+                            .addAll(writeInfo));
+        }
+        return writesPartitionedByTimestamp;
     }
 
     private Map<PartitionInfo, List<WriteInfo>> filterAndPartitionForSingleTimestamp(List<WriteInfo> writes) {
-        if (writes.stream().allMatch(writeInfo -> getStrategy(writeInfo) == SweeperStrategy.NON_SWEEPABLE)) {
-            long startTs = writes.stream().findFirst().get().timestamp();
-            return SweepQueueUtils.partitioningForNonSweepable(startTs);
+        if (writes.isEmpty()) {
+            return Map.of();
         }
-        return partitionWritesByShardStrategyTimestamp(writes);
-    }
 
-    private Map<PartitionInfo, List<WriteInfo>> partitionWritesByShardStrategyTimestamp(List<WriteInfo> writes) {
         int shards = numShards.get();
-        return writes.stream()
-                .filter(writeInfo -> getStrategy(writeInfo) != SweeperStrategy.NON_SWEEPABLE)
-                .collect(Collectors.groupingBy(write -> getPartitionInfo(write, shards), Collectors.toList()));
-    }
 
-    private PartitionInfo getPartitionInfo(WriteInfo write, int shards) {
-        return PartitionInfo.of(write.toShard(shards), getStrategy(write), write.timestamp());
+        // Note that we do a single pass over writes to determine their sweep strategy, and only add sweepable write to
+        // sweepablePartitionedWrites map, so when it is empty we consider all writes for that timestamp non-sweepable.
+        Map<PartitionInfo, List<WriteInfo>> sweepablePartitionedWrites = new HashMap<>();
+        for (WriteInfo writeInfo : writes) {
+            SweeperStrategy strategy = getStrategy(writeInfo);
+            if (strategy != SweeperStrategy.NON_SWEEPABLE) {
+                PartitionInfo partition = PartitionInfo.of(writeInfo.toShard(shards), strategy, writeInfo.timestamp());
+                sweepablePartitionedWrites
+                        .computeIfAbsent(partition, _k -> new ArrayList<>())
+                        .add(writeInfo);
+            }
+        }
+
+        if (sweepablePartitionedWrites.isEmpty()) {
+            // All writes for this partition are non-sweepable
+            long startTs = writes.stream().findFirst().orElseThrow().timestamp();
+            return SweepQueueUtils.partitioningForNonSweepable(startTs);
+        }
+        return sweepablePartitionedWrites;
     }
 
     @VisibleForTesting
     SweeperStrategy getStrategy(WriteInfo writeInfo) {
-        return writeInfo
-                .writeRef()
-                .map(WriteReference::tableRef)
-                .map(this::getStrategyForTable)
-                .orElse(SweeperStrategy.NON_SWEEPABLE);
+        Optional<WriteReference> writeReference = writeInfo.writeRef();
+        if (writeReference.isPresent()) {
+            return getStrategyForTable(writeReference.get().tableRef());
+        }
+        return SweeperStrategy.NON_SWEEPABLE;
     }
 
     SweeperStrategy getStrategyForTable(TableReference tableRef) {u}(j (19087bbc54d879f15116073134966b2a2365ccd7j batlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoader.javaj modifiedj~ K"j Kj KAj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -43,14 +43,21 @@
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.HashMap;
-import java.util.HashSet;
 import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.TimeUnit;
 import java.util.function.Supplier;
 import javax.annotation.Nullable;
+import org.eclipse.collections.api.LongIterable;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
+import org.eclipse.collections.api.map.primitive.MutableLongLongMap;
+import org.eclipse.collections.api.set.ImmutableSet;
+import org.eclipse.collections.api.set.primitive.LongSet;
+import org.eclipse.collections.api.set.primitive.MutableLongSet;
+import org.eclipse.collections.impl.factory.primitive.LongLongMaps;
+import org.eclipse.collections.impl.factory.primitive.LongSets;
+import org.eclipse.collections.impl.map.mutable.primitive.LongLongHashMap;
 
 public final class CommitTimestampLoader {
     private static final SafeLogger log = SafeLoggerFactory.get(CommitTimestampLoader.class);
@@ -90,26 +97,25 @@ public CommitTimestampLoader(
      * Returns a map from start timestamp to commit timestamp. If a start timestamp wasn't committed, then it will be
      * missing from the map. This method will block until the transactions for these start timestamps are complete.
      */
-    ListenableFuture<Map<Long, Long>> getCommitTimestamps(
+    ListenableFuture<LongLongMap> getCommitTimestamps(
             @Nullable TableReference tableRef,
-            Iterable<Long> startTimestamps,
+            LongIterable startTimestamps,
             boolean shouldWaitForCommitterToComplete,
             AsyncTransactionService asyncTransactionService) {
-        if (Iterables.isEmpty(startTimestamps)) {
-            return Futures.immediateFuture(ImmutableMap.of());
+        if (startTimestamps.isEmpty()) {
+            return Futures.immediateFuture(LongLongMaps.immutable.of());
         }
 
-        Set<Long> pendingGets = new HashSet<>();
-        Map<Long, Long> result = new HashMap<>();
-
-        for (Long startTs : startTimestamps) {
+        MutableLongSet pendingGets = LongSets.mutable.of();
+        MutableLongLongMap result = new LongLongHashMap();
+        startTimestamps.each(startTs -> {
             Long commitTs = timestampCache.getCommitTimestampIfPresent(startTs);
             if (commitTs == null) {
                 pendingGets.add(startTs);
             } else {
                 result.put(startTs, commitTs);
             }
-        }
+        });
 
         if (pendingGets.isEmpty()) {
             return Futures.immediateFuture(result);
@@ -123,16 +129,16 @@ ListenableFuture<Map<Long, Long>> getCommitTimestamps(
         return Futures.transform(
                 loadCommitTimestamps(asyncTransactionService, pendingGets),
                 rawResults -> {
-                    Map<Long, Long> loadedCommitTs = cacheKnownLoadedValuesAndValidate(rawResults);
+                    LongLongMap loadedCommitTs = cacheKnownLoadedValuesAndValidate(rawResults);
                     result.putAll(loadedCommitTs);
                     return result;
                 },
                 MoreExecutors.directExecutor());
     }
 
     // We do not cache unknown transactions as they are already being cached at a lower level.
-    private Map<Long, Long> cacheKnownLoadedValuesAndValidate(Map<Long, TransactionStatus> rawResults) {
-        Map<Long, Long> results = new HashMap<>();
+    private LongLongMap cacheKnownLoadedValuesAndValidate(Map<Long, TransactionStatus> rawResults) {
+        MutableLongLongMap results = LongLongMaps.mutable.empty();
         boolean shouldValidate = false;
 
         // The method is written this way to avoid multiple scans on the result set as it is on a hot path.
@@ -158,30 +164,27 @@ private Map<Long, Long> cacheKnownLoadedValuesAndValidate(Map<Long, TransactionS
             throwIfTransactionsTableSweptBeyondReadOnlyTxn();
         }
 
-        return results;
+        return results.asUnmodifiable();
     }
 
     /**
      * We will block here until the passed transactions have released their lock. This means that the committing
      * transaction is either complete or it has failed, and we are allowed to roll it back.
      */
-    private void waitForCommitToComplete(Iterable<Long> startTimestamps) {
-        Set<LockDescriptor> lockDescriptors = new HashSet<>();
-        for (long start : startTimestamps) {
-            if (start < immutableTimestamp) {
-                // We don't need to block in this case because this transaction is already complete
-                continue;
-            }
-            lockDescriptors.add(AtlasRowLockDescriptor.of(
-                    TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
-                    TransactionConstants.getValueForTimestamp(start)));
-        }
+    private void waitForCommitToComplete(LongIterable startTimestamps) {
+        ImmutableSet<LockDescriptor> lockDescriptors = startTimestamps
+                // We only need to block and wait for transactions on or after immutable timestamp
+                .select(start -> start >= immutableTimestamp)
+                .collect(start -> AtlasRowLockDescriptor.of(
+                        TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
+                        TransactionConstants.getValueForTimestamp(start)))
+                .toImmutableSet();
 
         if (lockDescriptors.isEmpty()) {
             return;
         }
 
-        waitFor(lockDescriptors);
+        waitFor(lockDescriptors.castToSet());
     }
 
     private void waitFor(Set<LockDescriptor> lockDescriptors) {
@@ -202,7 +205,7 @@ private void waitFor(Set<LockDescriptor> lockDescriptors) {
         }
     }
 
-    private void waitForCommitterToComplete(@Nullable TableReference tableRef, Iterable<Long> startTimestamps) {
+    private void waitForCommitterToComplete(@Nullable TableReference tableRef, LongIterable startTimestamps) {
         Timer.Context timer = getTimer("waitForCommitTsMillis").time();
         waitForCommitToComplete(startTimestamps);
         long waitForCommitTsMillis = TimeUnit.NANOSECONDS.toMillis(timer.stop());
@@ -222,16 +225,16 @@ private Timer getTimer(String name) {
     }
 
     private static ListenableFuture<Map<Long, TransactionStatus>> loadCommitTimestamps(
-            AsyncTransactionService asyncTransactionService, Set<Long> startTimestamps) {
+            AsyncTransactionService asyncTransactionService, LongSet startTimestamps) {
         // distinguish between a single timestamp and a batch, for more granular metrics
         if (startTimestamps.size() == 1) {
-            Long singleTs = Iterables.getOnlyElement(startTimestamps);
+            long singleTs = startTimestamps.longIterator().next();
             return Futures.transform(
                     asyncTransactionService.getAsyncV2(singleTs),
                     commitState -> ImmutableMap.of(singleTs, commitState),
                     MoreExecutors.directExecutor());
         } else {
-            return asyncTransactionService.getAsyncV2(startTimestamps);
+            return asyncTransactionService.getAsyncV2(startTimestamps.collect(Long::valueOf));
         }
     }
 u}(j (76479dbfe5fb53d1b0583122fda4de393de7e01bj datlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.javaj modifiedj~ K!j Kj K8j https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -109,6 +109,13 @@
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 import javax.annotation.Nullable;
+import org.eclipse.collections.api.LongIterable;
+import org.eclipse.collections.api.factory.primitive.LongLongMaps;
+import org.eclipse.collections.api.factory.primitive.LongSets;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
+import org.eclipse.collections.api.map.primitive.MutableLongLongMap;
+import org.eclipse.collections.api.set.primitive.LongSet;
+import org.eclipse.collections.api.set.primitive.MutableLongSet;
 import org.immutables.value.Value;
 
 /**
@@ -881,42 +888,42 @@ protected TransactionScopedCache getCache() {
             }
 
             @Override
-            protected ListenableFuture<Map<Long, Long>> getCommitTimestamps(
+            protected ListenableFuture<LongLongMap> getCommitTimestamps(
                     TableReference tableRef,
-                    Iterable<Long> startTimestamps,
+                    LongIterable startTimestamps,
                     boolean shouldWaitForCommitterToComplete,
                     AsyncTransactionService asyncTransactionService) {
                 long myStart = SerializableTransaction.this.getTimestamp();
                 PartitionedTimestamps partitionedTimestamps = splitTransactionBeforeAndAfter(myStart, startTimestamps);
 
-                ListenableFuture<Map<Long, Long>> postStartCommitTimestamps =
+                ListenableFuture<LongLongMap> postStartCommitTimestamps =
                         getCommitTimestampsForTransactionsStartedAfterMe(
                                 tableRef, asyncTransactionService, partitionedTimestamps.afterStart());
 
                 // We are ok to block here because if there is a cycle of transactions that could result in a deadlock,
                 // then at least one of them will be in the ab
-                ListenableFuture<Map<Long, Long>> preStartCommitTimestamps = super.getCommitTimestamps(
+                ListenableFuture<LongLongMap> preStartCommitTimestamps = super.getCommitTimestamps(
                         tableRef,
                         partitionedTimestamps.beforeStart(),
                         shouldWaitForCommitterToComplete,
                         asyncTransactionService);
 
                 return Futures.whenAllComplete(postStartCommitTimestamps, preStartCommitTimestamps)
                         .call(
-                                () -> ImmutableMap.<Long, Long>builder()
-                                        .putAll(AtlasFutures.getDone(preStartCommitTimestamps))
-                                        .putAll(AtlasFutures.getDone(postStartCommitTimestamps))
-                                        .putAll(partitionedTimestamps.myCommittedTransaction())
-                                        .buildOrThrow(),
+                                () -> {
+                                    MutableLongLongMap map = LongLongMaps.mutable.withAll(
+                                            AtlasFutures.getDone(preStartCommitTimestamps));
+                                    map.putAll(AtlasFutures.getDone(postStartCommitTimestamps));
+                                    map.putAll(partitionedTimestamps.myCommittedTransaction());
+                                    return map.toImmutable();
+                                },
                                 MoreExecutors.directExecutor());
             }
 
-            private ListenableFuture<Map<Long, Long>> getCommitTimestampsForTransactionsStartedAfterMe(
-                    TableReference tableRef,
-                    AsyncTransactionService asyncTransactionService,
-                    Set<Long> startTimestamps) {
+            private ListenableFuture<LongLongMap> getCommitTimestampsForTransactionsStartedAfterMe(
+                    TableReference tableRef, AsyncTransactionService asyncTransactionService, LongSet startTimestamps) {
                 if (startTimestamps.isEmpty()) {
-                    return Futures.immediateFuture(ImmutableMap.of());
+                    return Futures.immediateFuture(LongLongMaps.immutable.empty());
                 }
 
                 return Futures.transform(
@@ -950,19 +957,22 @@ private ListenableFuture<Map<Long, Long>> getCommitTimestampsForTransactionsStar
              * @param startTimestamps of transactions we are interested in
              * @return a {@link PartitionedTimestamps} object containing split timestamps
              */
-            private PartitionedTimestamps splitTransactionBeforeAndAfter(long myStart, Iterable<Long> startTimestamps) {
+            private PartitionedTimestamps splitTransactionBeforeAndAfter(long myStart, LongIterable startTimestamps) {
                 ImmutablePartitionedTimestamps.Builder builder =
                         ImmutablePartitionedTimestamps.builder().myCommitTimestamp(commitTs);
+                MutableLongSet beforeStart = LongSets.mutable.empty();
+                MutableLongSet afterStart = LongSets.mutable.empty();
                 startTimestamps.forEach(startTimestamp -> {
                     if (startTimestamp == myStart) {
                         builder.splittingStartTimestamp(myStart);
                     } else if (startTimestamp < myStart) {
-                        builder.addBeforeStart(startTimestamp);
+                        beforeStart.add(startTimestamp);
                     } else {
-                        builder.addAfterStart(startTimestamp);
+                        afterStart.add(startTimestamp);
                     }
                 });
-
+                builder.beforeStart(beforeStart.asUnmodifiable());
+                builder.afterStart(afterStart.asUnmodifiable());
                 return builder.build();
             }
         };
@@ -1039,17 +1049,17 @@ public Map.Entry<Cell, byte[]> next() {
     interface PartitionedTimestamps {
         long myCommitTimestamp();
 
-        Set<Long> afterStart();
+        LongSet afterStart();
 
-        Set<Long> beforeStart();
+        LongSet beforeStart();
 
         OptionalLong splittingStartTimestamp();
 
         @Value.Derived
-        default Map<Long, Long> myCommittedTransaction() {
+        default LongLongMap myCommittedTransaction() {
             return splittingStartTimestamp().isPresent()
-                    ? ImmutableMap.of(splittingStartTimestamp().getAsLong(), myCommitTimestamp())
-                    : ImmutableMap.of();
+                    ? LongLongMaps.immutable.of(splittingStartTimestamp().getAsLong(), myCommitTimestamp())
+                    : LongLongMaps.immutable.empty();
         }
     }
 u}(j (999b09d1124446cca5075fe20f78f7b373c0bcd5j `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj modifiedj~ K@j K/j Koj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X,  @@ -186,6 +186,12 @@
 import javax.annotation.Nullable;
 import org.apache.commons.lang3.Validate;
 import org.apache.commons.lang3.tuple.Pair;
+import org.eclipse.collections.api.LongIterable;
+import org.eclipse.collections.api.factory.primitive.LongLists;
+import org.eclipse.collections.api.factory.primitive.LongSets;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
+import org.eclipse.collections.api.set.primitive.ImmutableLongSet;
+import org.eclipse.collections.api.set.primitive.LongSet;
 
 /**
  * This implements snapshot isolation for transactions.
@@ -1646,7 +1652,7 @@ private <T> ListenableFuture<Map<Cell, Value>> getWithPostFilteringInternal(
             AsyncKeyValueService asyncKeyValueService,
             AsyncTransactionService asyncTransactionService) {
         Set<Cell> orphanedSentinels = findOrphanedSweepSentinels(tableRef, rawResults);
-        Set<Long> valuesStartTimestamps = getStartTimestampsForValues(rawResults.values());
+        LongSet valuesStartTimestamps = getStartTimestampsForValues(rawResults.values());
 
         return Futures.transformAsync(
                 getCommitTimestamps(tableRef, valuesStartTimestamps, true, asyncTransactionService),
@@ -1668,7 +1674,7 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
             Function<Value, T> transformer,
             AsyncKeyValueService asyncKeyValueService,
             Set<Cell> orphanedSentinels,
-            Map<Long, Long> commitTimestamps) {
+            LongLongMap commitTimestamps) {
         Map<Cell, Long> keysToReload = Maps.newHashMapWithExpectedSize(0);
         Map<Cell, Long> keysToDelete = Maps.newHashMapWithExpectedSize(0);
         ImmutableSet.Builder<Cell> keysAddedBuilder = ImmutableSet.builder();
@@ -1699,8 +1705,9 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
                         throw new IllegalStateException("Invalid read sentinel behavior " + getReadSentinelBehavior());
                 }
             } else {
-                Long theirCommitTimestamp = commitTimestamps.get(value.getTimestamp());
-                if (theirCommitTimestamp == null || theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
+                long theirCommitTimestamp =
+                        commitTimestamps.getIfAbsent(value.getTimestamp(), TransactionConstants.FAILED_COMMIT_TS);
+                if (theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
                     keysToReload.put(key, value.getTimestamp());
                     if (shouldDeleteAndRollback()) {
                         // This is from a failed transaction so we can roll it back and then reload it.
@@ -2327,33 +2334,37 @@ protected Map<Cell, Long> detectWriteAlreadyCommittedInternal(
             @Output Set<CellConflict> spanningWrites,
             @Output Set<CellConflict> dominatingWrites,
             TransactionService transactionService) {
+        long startTs = getStartTimestamp();
         Map<Cell, Long> rawResults = keyValueService.getLatestTimestamps(tableRef, keysToLoad);
-        Map<Long, Long> commitTimestamps = getCommitTimestampsSync(tableRef, rawResults.values(), false);
+        LongLongMap commitTimestamps =
+                getCommitTimestampsSync(tableRef, LongLists.immutable.ofAll(rawResults.values()), false);
 
         // TODO(fdesouza): Remove this once PDS-95791 is resolved.
-        conflictTracer.collect(getStartTimestamp(), keysToLoad, rawResults, commitTimestamps);
+        conflictTracer.collect(startTs, keysToLoad, rawResults, commitTimestamps);
 
         Map<Cell, Long> keysToDelete = Maps.newHashMapWithExpectedSize(0);
 
         for (Map.Entry<Cell, Long> e : rawResults.entrySet()) {
             Cell key = e.getKey();
             long theirStartTimestamp = e.getValue();
-            AssertUtils.assertAndLog(
-                    log, theirStartTimestamp != getStartTimestamp(), "Timestamp reuse is bad:" + getStartTimestamp());
+            if (theirStartTimestamp == startTs) {
+                AssertUtils.assertAndLog(log, false, "Timestamp reuse is bad:" + startTs);
+            }
 
-            Long theirCommitTimestamp = commitTimestamps.get(theirStartTimestamp);
-            if (theirCommitTimestamp == null || theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
+            long theirCommitTimestamp =
+                    commitTimestamps.getIfAbsent(theirStartTimestamp, TransactionConstants.FAILED_COMMIT_TS);
+            if (theirCommitTimestamp == TransactionConstants.FAILED_COMMIT_TS) {
                 // The value has no commit timestamp or was explicitly rolled back.
                 // This means the value is garbage from a transaction which didn't commit.
                 keysToDelete.put(key, theirStartTimestamp);
                 continue;
+            } else if (theirCommitTimestamp == startTs) {
+                AssertUtils.assertAndLog(log, false, "Timestamp reuse is bad:" + startTs);
             }
 
-            AssertUtils.assertAndLog(
-                    log, theirCommitTimestamp != getStartTimestamp(), "Timestamp reuse is bad:" + getStartTimestamp());
-            if (theirStartTimestamp > getStartTimestamp()) {
+            if (theirStartTimestamp > startTs) {
                 dominatingWrites.add(Cells.createConflict(key, theirStartTimestamp, theirCommitTimestamp));
-            } else if (theirCommitTimestamp > getStartTimestamp()) {
+            } else if (theirCommitTimestamp > startTs) {
                 spanningWrites.add(Cells.createConflict(key, theirStartTimestamp, theirCommitTimestamp));
             }
         }
@@ -2378,30 +2389,37 @@ protected Map<Cell, Long> detectWriteAlreadyCommittedInternal(
     private boolean rollbackFailedTransactions(
             TableReference tableRef,
             Map<Cell, Long> keysToDelete,
-            Map<Long, Long> commitTimestamps,
+            LongLongMap commitTimestamps,
             TransactionService transactionService) {
-        for (long startTs : new HashSet<>(keysToDelete.values())) {
-            if (commitTimestamps.get(startTs) == null) {
-                log.warn("Rolling back transaction: {}", SafeArg.of("startTs", startTs));
-                if (!rollbackOtherTransaction(startTs, transactionService)) {
-                    return false;
+        ImmutableLongSet timestamps = LongSets.immutable.ofAll(keysToDelete.values());
+        boolean allRolledBack = timestamps.allSatisfy(startTs -> {
+            if (commitTimestamps.containsKey(startTs)) {
+                long commitTs = commitTimestamps.get(startTs);
+                if (commitTs != TransactionConstants.FAILED_COMMIT_TS) {
+                    throw new SafeIllegalArgumentException(
+                            "Cannot rollback already committed transaction",
+                            SafeArg.of("startTs", startTs),
+                            SafeArg.of("commitTs", commitTs));
                 }
-            } else {
-                Preconditions.checkArgument(commitTimestamps.get(startTs) == TransactionConstants.FAILED_COMMIT_TS);
+                return true;
             }
-        }
+            log.warn("Rolling back transaction: {}", SafeArg.of("startTs", startTs));
+            return rollbackOtherTransaction(startTs, transactionService);
+        });
 
-        try {
-            runTaskOnDeleteExecutor(kvs -> deleteCells(kvs, tableRef, keysToDelete));
-        } catch (RejectedExecutionException rejected) {
-            deleteExecutorRateLimitedLogger.log(logger -> logger.info(
-                    "Could not delete keys {} for table {}, because the delete executor's queue was full."
-                            + " Sweep should eventually clean these values.",
-                    SafeArg.of("numKeysToDelete", keysToDelete.size()),
-                    LoggingArgs.tableRef(tableRef),
-                    rejected));
+        if (allRolledBack) {
+            try {
+                runTaskOnDeleteExecutor(kvs -> deleteCells(kvs, tableRef, keysToDelete));
+            } catch (RejectedExecutionException rejected) {
+                deleteExecutorRateLimitedLogger.log(logger -> logger.info(
+                        "Could not delete keys {} for table {}, because the delete executor's queue was full."
+                                + " Sweep should eventually clean these values.",
+                        SafeArg.of("numKeysToDelete", keysToDelete.size()),
+                        LoggingArgs.tableRef(tableRef),
+                        rejected));
+            }
         }
-        return true;
+        return allRolledBack;
     }
 
     private static void deleteCells(
@@ -2487,9 +2505,9 @@ protected LockToken acquireLocksForCommit() {
         return lockResponse.getToken();
     }
 
-    protected ListenableFuture<Map<Long, Long>> getCommitTimestamps(
+    protected ListenableFuture<LongLongMap> getCommitTimestamps(
             TableReference tableRef,
-            Iterable<Long> startTimestamps,
+            LongIterable startTimestamps,
             boolean shouldWaitForCommitterToComplete,
             AsyncTransactionService asyncTransactionService) {
         return commitTimestampLoader.getCommitTimestamps(
@@ -2547,16 +2565,12 @@ protected Set<LockDescriptor> getLocksForWrites() {
     /// Commit timestamp management
     ///////////////////////////////////////////////////////////////////////////
 
-    private Set<Long> getStartTimestampsForValues(Iterable<Value> values) {
-        Set<Long> results = new HashSet<>();
-        for (Value v : values) {
-            results.add(v.getTimestamp());
-        }
-        return results;
+    private LongSet getStartTimestampsForValues(Iterable<Value> values) {
+        return LongSets.immutable.withAll(Streams.stream(values).mapToLong(Value::getTimestamp));
     }
 
-    private Map<Long, Long> getCommitTimestampsSync(
-            @Nullable TableReference tableRef, Iterable<Long> startTimestamps, boolean waitForCommitterToComplete) {
+    private LongLongMap getCommitTimestampsSync(
+            @Nullable TableReference tableRef, LongIterable startTimestamps, boolean waitForCommitterToComplete) {
         return AtlasFutures.getUnchecked(getCommitTimestamps(
                 tableRef, startTimestamps, waitForCommitterToComplete, immediateTransactionService));
     }
@@ -2625,11 +2639,14 @@ private void handleKeyAlreadyExistsException(
     }
 
     private boolean wasCommitSuccessful(long commitTs) {
-        Map<Long, Long> commitTimestamps =
-                getCommitTimestampsSync(null, Collections.singleton(getStartTimestamp()), false);
-        long storedCommit = commitTimestamps.get(getStartTimestamp());
+        long startTs = getStartTimestamp();
+        LongLongMap commitTimestamps = getCommitTimestampsSync(null, LongSets.immutable.of(startTs), false);
+        long storedCommit = commitTimestamps.get(startTs);
         if (storedCommit != commitTs && storedCommit != TransactionConstants.FAILED_COMMIT_TS) {
-            Validate.isTrue(false, "Commit value is wrong. startTs %s  commitTs: %s", getStartTimestamp(), commitTs);
+            throw new SafeIllegalArgumentException(
+                    "Commit value is wrong.",
+                    SafeArg.of("startTimestamp", startTs),
+                    SafeArg.of("commitTimestamp", commitTs));
         }
         return storedCommit == commitTs;
     }u}(j (7be5d7230e4143dea05fe8a584a1a0dcb0d8db39j fatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoaderTest.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -24,7 +24,6 @@
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
 
-import com.google.common.collect.ImmutableList;
 import com.google.common.util.concurrent.Futures;
 import com.palantir.atlasdb.cache.TimestampCache;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
@@ -40,9 +39,10 @@
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.ExecutionException;
+import org.eclipse.collections.api.factory.primitive.LongLists;
+import org.eclipse.collections.api.map.primitive.LongLongMap;
 import org.junit.Test;
 
 public class CommitTimestampLoaderTest {
@@ -96,7 +96,7 @@ public void throwIfTTSBeyondReadOnlyForSweptTTSCell() {
 
         assertThatExceptionOfType(ExecutionException.class)
                 .isThrownBy(() -> commitTimestampLoader
-                        .getCommitTimestamps(TABLE_REF, ImmutableList.of(startTs), false, transactionService)
+                        .getCommitTimestamps(TABLE_REF, LongLists.immutable.of(startTs), false, transactionService)
                         .get())
                 .withRootCauseInstanceOf(SafeIllegalStateException.class)
                 .withMessageContaining("Sweep has swept some entries with a commit TS after us");
@@ -182,10 +182,10 @@ public void doesNotCacheUnknownTransactions() throws ExecutionException, Interru
 
     private void assertCanGetCommitTs(long startTs, long commitTs, CommitTimestampLoader commitTimestampLoader)
             throws InterruptedException, ExecutionException {
-        Map<Long, Long> loadedCommitTs = commitTimestampLoader
-                .getCommitTimestamps(TABLE_REF, ImmutableList.of(startTs), false, transactionService)
+        LongLongMap loadedCommitTs = commitTimestampLoader
+                .getCommitTimestamps(TABLE_REF, LongLists.immutable.of(startTs), false, transactionService)
                 .get();
-        assertThat(loadedCommitTs).hasSize(1);
+        assertThat(loadedCommitTs.size()).isEqualTo(1);
         assertThat(loadedCommitTs.get(startTs)).isEqualTo(commitTs);
     }
 u}(j (a251b92eabd208ac88784e2fdc765f1f810ce9fbj patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj Xx  @@ -130,7 +130,7 @@ public void allRelevantCellsAreRecordedForFullColumnScan() {
                         .isInstanceOfSatisfying(
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
-                                        .isEqualTo(IntStream.range(0, iterationCount)
+                                        .containsExactlyElementsOf(IntStream.range(0, iterationCount)
                                                 .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
                                                 .collect(Collectors.toList()))));
     }
@@ -158,7 +158,7 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
                         .isInstanceOfSatisfying(
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
-                                        .isEqualTo(IntStream.range(startInclusive, endExclusive)
+                                        .containsExactlyElementsOf(IntStream.range(startInclusive, endExclusive)
                                                 .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
                                                 .collect(Collectors.toList()))));
     }u}(j (8662e0582f5aff3fdfa81d6e33ab22e4049363f9j qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflowTest.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -101,7 +101,7 @@ public void writesThenDeletes() {
 
         List<WitnessedTransaction> transactions = workflow.run().history();
 
-        assertThat(transactions.size()).isEqualTo(4);
+        assertThat(transactions).hasSize(4);
         assertWriteTransaction(transactions.get(0), 0);
         assertDeleteTransaction(transactions.get(1), 0);
         assertWriteTransaction(transactions.get(2), 1);u}(j (f5acd046834792f42b2401b67305dfa6f3509572j build.gradlej modifiedj~ Kj Kj Kj ^https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/build.gradlej ]https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/build.gradlej phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -7,20 +7,20 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.4'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.6'
         classpath 'com.netflix.nebula:nebula-publishing-plugin:20.3.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.39.0'
-        classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.41.0'
+        classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.13.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
-        classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.34.0'
+        classpath 'com.palantir.metricschema:gradle-metric-schema:0.22.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
-        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.3'
+        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.4'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
         classpath 'gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1'
         classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'u}(j (95dbc0937d276331c37eb26d73abac99d86081a9j  changelog/0.900.0/pr-6665.v2.ymlj addedj~ Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/changelog%2F0.900.0%2Fpr-6665.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/changelog%2F0.900.0%2Fpr-6665.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.900.0%2Fpr-6665.v2.yml?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add metadata metrics to TimeLock'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6665u}(j (0ec771af62ea2a6ddaf5d9b6139d48293d4a25a7j  changelog/0.901.0/pr-6640.v2.ymlj addedj~ Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/changelog%2F0.901.0%2Fpr-6640.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/changelog%2F0.901.0%2Fpr-6640.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.901.0%2Fpr-6640.v2.yml?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Transaction impls use Eclipse primitive collections for in-memory transaction
+    tracking
+  links:
+  - https://github.com/palantir/atlasdb/pull/6640u}(j (529fa046cce7dd2027f9b419812813bb3a2540a8j  changelog/0.901.0/pr-6676.v2.ymlj addedj~ Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/changelog%2F0.901.0%2Fpr-6676.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/changelog%2F0.901.0%2Fpr-6676.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.901.0%2Fpr-6676.v2.yml?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj XE  @@ -0,0 +1,8 @@
+type: improvement
+improvement:
+  description: |-
+    Optimize sweep write partitioning
+
+    Reduce allocations when processing large volumes of writes in sweep by avoiding intermediate collections and performing single passes on partitioning.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6676u}(j (c496eeef07c431ee355d88f1ca7abecdff679476j  changelog/0.901.0/pr-6677.v2.ymlj addedj~ K	j K j K	j vhttps://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/changelog%2F0.901.0%2Fpr-6677.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/changelog%2F0.901.0%2Fpr-6677.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.901.0%2Fpr-6677.v2.yml?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X/  @@ -0,0 +1,9 @@
+type: improvement
+improvement:
+  description: "Reuse notLatestVisibleValueCellFilterCounter \n\nAvoid expensive metric
+    name computation for each value extraction by\nregistering the notLatestVisibleValueCellFilterCounter
+    once and reusing\nit throughout the lifetime.\n\nNote that this includes several
+    internal API changes; however, these\nshould not be an issue for any known AtlasDB
+    consumers.\n\nCellLoader.loadWithTs minimizes unobserved tracing overhead"
+  links:
+  - https://github.com/palantir/atlasdb/pull/6677u}(j (fee58d12969ff103787c5364360b6099175e95ebj  changelog/0.902.0/pr-6678.v2.ymlj addedj~ Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/changelog%2F0.902.0%2Fpr-6678.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/changelog%2F0.902.0%2Fpr-6678.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.902.0%2Fpr-6678.v2.yml?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Bump CI to Oracle 19.20
+  links:
+  - https://github.com/palantir/atlasdb/pull/6678u}(j (cff52dc50fc6337a027d771d49cd4ea9c634d6ecj  changelog/0.903.0/pr-6673.v2.ymlj addedj~ Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/changelog%2F0.903.0%2Fpr-6673.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/changelog%2F0.903.0%2Fpr-6673.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.903.0%2Fpr-6673.v2.yml?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj @@ -0,0 +1,6 @@
+type: feature
+feature:
+  description: AtlasDB no longer register timelock endpoints when using single-node
+    embedded timelock.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6673u}(j (afba109285af78dbd2a1d187e33ac4f87c76e392j !gradle/wrapper/gradle-wrapper.jarj modifiedj~ K j K j K j whttps://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/gradle%2Fwrapper%2Fgradle-wrapper.jarj vhttps://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/gradle%2Fwrapper%2Fgradle-wrapper.jarj https://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fwrapper%2Fgradle-wrapper.jar?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccu}(j (4e86b9270786fb25deb2931bfa2e777799ec2a25j (gradle/wrapper/gradle-wrapper.propertiesj modifiedj~ Kj Kj Kj ~https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/gradle%2Fwrapper%2Fgradle-wrapper.propertiesj }https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/gradle%2Fwrapper%2Fgradle-wrapper.propertiesj https://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fwrapper%2Fgradle-wrapper.properties?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj XC  @@ -1,6 +1,6 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip
 networkTimeout=10000
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/distsu}(j (b5f796ab3477670b4547dbda5fd7b6989458a0fcj Ilock-impl/src/main/java/com/palantir/lock/logger/LockStateYamlWriter.javaj removedj~ K j Kbj Kbj https://github.com/palantir/atlasdb/blob/5014396ec71e1e9f40d074fa178c2c9c8a817ab3/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockStateYamlWriter.javaj https://github.com/palantir/atlasdb/raw/5014396ec71e1e9f40d074fa178c2c9c8a817ab3/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockStateYamlWriter.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockStateYamlWriter.java?ref=5014396ec71e1e9f40d074fa178c2c9c8a817ab3j X
  @@ -1,98 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.lock.logger;
-
-import com.palantir.lock.LockDescriptor;
-import java.io.Closeable;
-import java.io.File;
-import java.io.IOException;
-import java.io.Writer;
-import java.nio.charset.StandardCharsets;
-import java.nio.file.Files;
-import java.nio.file.StandardOpenOption;
-import org.yaml.snakeyaml.DumperOptions;
-import org.yaml.snakeyaml.Yaml;
-import org.yaml.snakeyaml.nodes.Tag;
-import org.yaml.snakeyaml.representer.Representer;
-
-/**
- * A simple wrapper for writing lock state as YAML to a file.
- */
-class LockStateYamlWriter implements Closeable {
-    private static final Yaml yaml = new Yaml(getRepresenter(), getDumperOptions());
-
-    private final Writer writer;
-
-    LockStateYamlWriter(Writer fileWriter) {
-        this.writer = fileWriter;
-    }
-
-    /**
-     * Creates a LockStateYamlWriter for the given file in append mode.
-     */
-    public static LockStateYamlWriter create(File file) throws IOException {
-        return new LockStateYamlWriter(Files.newBufferedWriter(
-                file.toPath(), StandardCharsets.UTF_8, StandardOpenOption.CREATE, StandardOpenOption.APPEND));
-    }
-
-    /**
-     * Write an object to the file as YAML.
-     */
-    public void dumpObject(Object data) {
-        yaml.dump(data, writer);
-    }
-
-    /**
-     * Write a string to the file as a YAML comment.
-     * The string must be a single line.
-     */
-    public void appendComment(String string) throws IOException {
-        writer.append("# ");
-        writer.append(string);
-        writer.append("\n");
-    }
-
-    private static Representer getRepresenter() {
-        Representer representer = new LockDescriptorAwareRepresenter();
-        representer.addClassTag(ImmutableSimpleTokenInfo.class, Tag.MAP);
-        representer.addClassTag(ImmutableSimpleLockRequest.class, Tag.MAP);
-        representer.addClassTag(ImmutableSanitizedLockRequestProgress.class, Tag.MAP);
-        representer.addClassTag(SimpleLockRequestsWithSameDescriptor.class, Tag.MAP);
-        representer.addClassTag(LockDescriptor.class, Tag.MAP);
-        return representer;
-    }
-
-    private static DumperOptions getDumperOptions() {
-        DumperOptions options = new DumperOptions();
-        options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
-        options.setIndent(4);
-        options.setAllowReadOnlyProperties(true);
-        options.setExplicitStart(true);
-        return options;
-    }
-
-    @Override
-    public void close() throws IOException {
-        writer.close();
-    }
-
-    private static class LockDescriptorAwareRepresenter extends Representer {
-        LockDescriptorAwareRepresenter() {
-            super();
-            this.representers.put(LockDescriptor.class, data -> representScalar(Tag.STR, data.toString()));
-        }
-    }
-}u}(j (03e1ff19bb39c0ec79ee29033b2ebfb1c90ec09bj btimelock-agent/src/main/java/com/palantir/timelock/ServiceDiscoveringDatabaseTimeLockSupplier.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplier.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplier.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplier.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -19,7 +19,6 @@
 import com.google.common.base.Suppliers;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.factory.AtlasDbServiceDiscovery;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
@@ -49,11 +48,10 @@ public ServiceDiscoveringDatabaseTimeLockSupplier(
             MetricsManager metricsManager,
             KeyValueServiceConfig config,
             Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
-            LeaderConfig leaderConfig,
             boolean initializeAsync) {
         DbTimeLockFactory dbTimeLockFactory = AtlasDbServiceDiscovery.createDbTimeLockFactoryOfCorrectType(config);
-        keyValueService = Suppliers.memoize(() -> dbTimeLockFactory.createRawKeyValueService(
-                metricsManager, config, runtimeConfig, leaderConfig, initializeAsync));
+        keyValueService = Suppliers.memoize(() ->
+                dbTimeLockFactory.createRawKeyValueService(metricsManager, config, runtimeConfig, initializeAsync));
         timestampServiceFactory = creationSetting -> dbTimeLockFactory.createManagedTimestampService(
                 keyValueService.get(), creationSetting, initializeAsync);
         timestampSeriesProvider = tableRef ->u}(j (9f4ca09c90e7cf8f9a893b182c9bb43cfe0be85fj Ztimelock-agent/src/main/java/com/palantir/timelock/paxos/AsyncTimeLockServicesCreator.javaj modifiedj~ K	j Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -24,6 +24,8 @@
 import com.palantir.atlasdb.timelock.lock.AsyncLockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.atlasdb.timelock.lock.NonTransactionalLockService;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
 import com.palantir.atlasdb.timelock.paxos.LeadershipComponents;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.concurrent.NamedThreadFactory;
@@ -94,9 +96,14 @@ private AsyncTimelockService createRawAsyncTimelockService(
                 metricsManager.getRegistry(),
                 "async-lock-timeouts");
         return new AsyncTimelockServiceImpl(
-                AsyncLockService.createDefault(maybeEnhancedLockLog, reaperExecutor, timeoutExecutor),
+                AsyncLockService.createDefault(
+                        maybeEnhancedLockLog,
+                        reaperExecutor,
+                        timeoutExecutor,
+                        BufferMetrics.of(metricsManager.getTaggedRegistry())),
                 timestampServiceSupplier.get(),
-                maybeEnhancedLockLog);
+                maybeEnhancedLockLog,
+                RequestMetrics.of(metricsManager.getTaggedRegistry()));
     }
 
     /**u}(j (67fff0cb73fea18f882abfc897fad053face2cf4j Utimelock-agent/src/main/java/com/palantir/timelock/paxos/DbBoundTimestampCreator.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FDbBoundTimestampCreator.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FDbBoundTimestampCreator.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FDbBoundTimestampCreator.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj XB  @@ -18,7 +18,6 @@
 import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
 import com.palantir.paxos.Client;
 import com.palantir.timelock.ServiceDiscoveringDatabaseTimeLockSupplier;
@@ -35,7 +34,7 @@ public DbBoundTimestampCreator(
     }
 
     @Override
-    public Supplier<ManagedTimestampService> createTimestampService(Client client, LeaderConfig leaderConfig) {
+    public Supplier<ManagedTimestampService> createTimestampService(Client client) {
         return () -> serviceDiscoveringDatabaseTimeLockSupplier.getManagedTimestampService(
                 getTimestampCreationParameters(client));
     }u}(j (6a079ccf904035895dc3706a491d2647bcd7900dj Stimelock-agent/src/main/java/com/palantir/timelock/paxos/PaxosTimestampCreator.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FPaxosTimestampCreator.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FPaxosTimestampCreator.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FPaxosTimestampCreator.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdcc4      j X  @@ -15,7 +15,6 @@
  */
 package com.palantir.timelock.paxos;
 
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.timelock.paxos.NetworkClientFactories;
 import com.palantir.paxos.Client;
 import com.palantir.timestamp.ManagedTimestampService;
@@ -29,7 +28,7 @@ public class PaxosTimestampCreator implements TimestampCreator {
     }
 
     @Override
-    public Supplier<ManagedTimestampService> createTimestampService(Client client, LeaderConfig unused) {
+    public Supplier<ManagedTimestampService> createTimestampService(Client client) {
         return () -> timestampServiceFactory.create(client);
     }
 u}(j (26ffe31b9e2575d9a3aee3ac2c3795d73e01dd5cj Ktimelock-agent/src/main/java/com/palantir/timelock/paxos/TimeLockAgent.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -15,19 +15,13 @@
  */
 package com.palantir.timelock.paxos;
 
-import static com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants.ACCEPTOR_SUBDIRECTORY_PATH;
-import static com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants.LEADER_PAXOS_NAMESPACE;
-import static com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants.LEARNER_SUBDIRECTORY_PATH;
-
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
 import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
-import com.palantir.atlasdb.config.ImmutableLeaderConfig;
 import com.palantir.atlasdb.config.ImmutableServerListConfig;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.config.RemotingClientConfigs;
 import com.palantir.atlasdb.config.ServerListConfig;
 import com.palantir.atlasdb.http.BlockingTimeoutExceptionMapper;
@@ -93,7 +87,6 @@
 import com.palantir.timestamp.ManagedTimestampService;
 import com.zaxxer.hikari.HikariDataSource;
 import java.net.URL;
-import java.nio.file.Path;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
@@ -287,7 +280,6 @@ private TimestampStorage createDatabaseTimestampStorage(
                 metricsManager,
                 timestampBoundPersistence.keyValueServiceConfig(),
                 runtime.map(TimeLockAgent::getKeyValueServiceRuntimeConfig),
-                createLeaderConfig(),
                 timestampBoundPersistence.initializeAsync());
         return ImmutableTimestampStorage.builder()
                 .timestampCreator(new DbBoundTimestampCreator(dbTimeLockSupplier))
@@ -570,34 +562,14 @@ RedirectRetryTargeter redirectRetryTargeter() {
      * @return Invalidating timestamp and lock services
      */
     public TimeLockServices createInvalidatingTimeLockServices(String client) {
-        LeaderConfig leaderConfig = createLeaderConfig();
-
         Client typedClient = Client.of(client);
 
         Supplier<ManagedTimestampService> rawTimestampServiceSupplier =
-                timestampStorage.timestampCreator().createTimestampService(typedClient, leaderConfig);
+                timestampStorage.timestampCreator().createTimestampService(typedClient);
         Supplier<LockService> rawLockServiceSupplier = lockCreator::createThreadPoolingLockService;
         return timelockCreator.createTimeLockServices(typedClient, rawTimestampServiceSupplier, rawLockServiceSupplier);
     }
 
-    private LeaderConfig createLeaderConfig() {
-        List<String> uris = cluster.clusterMembers();
-        Path leaderPaxosDataDirectory = install.paxos().dataDirectory().toPath().resolve(LEADER_PAXOS_NAMESPACE);
-
-        return ImmutableLeaderConfig.builder()
-                .addLeaders(uris.toArray(new String[0]))
-                .localServer(cluster.localServer())
-                .sslConfiguration(PaxosRemotingUtils.getSslConfigurationOptional(cluster))
-                .quorumSize(PaxosRemotingUtils.getQuorumSize(uris))
-                .learnerLogDir(leaderPaxosDataDirectory
-                        .resolve(LEARNER_SUBDIRECTORY_PATH)
-                        .toFile())
-                .acceptorLogDir(leaderPaxosDataDirectory
-                        .resolve(ACCEPTOR_SUBDIRECTORY_PATH)
-                        .toFile())
-                .build();
-    }
-
     public HealthStatusReport timeLockAdjudicationFeedback() {
         return feedbackHandler.getTimeLockHealthStatus();
     }u}(j (0f2c1df56bad08127cb2d5a035c597cdd96e3b20j Ntimelock-agent/src/main/java/com/palantir/timelock/paxos/TimestampCreator.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimestampCreator.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimestampCreator.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimestampCreator.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X
  @@ -15,13 +15,12 @@
  */
 package com.palantir.timelock.paxos;
 
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.paxos.Client;
 import com.palantir.timestamp.ManagedTimestampService;
 import java.util.function.Supplier;
 
 public interface TimestampCreator extends AutoCloseable {
-    Supplier<ManagedTimestampService> createTimestampService(Client client, LeaderConfig leaderConfig);
+    Supplier<ManagedTimestampService> createTimestampService(Client client);
 
     @Override
     void close();u}(j (37cb9e1dd5d4d778cebc3d4cd60e5120d14a3a28j ftimelock-agent/src/test/java/com/palantir/timelock/ServiceDiscoveringDatabaseTimeLockSupplierTest.javaj modifiedj~ Kj K	j K
j https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplierTest.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplierTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2FServiceDiscoveringDatabaseTimeLockSupplierTest.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -19,11 +19,8 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
-import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.config.DbTimestampCreationSetting;
-import com.palantir.atlasdb.config.ImmutableLeaderConfig;
-import com.palantir.atlasdb.config.LeaderConfig;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeriesProvider;
@@ -43,15 +40,10 @@ public class ServiceDiscoveringDatabaseTimeLockSupplierTest {
 
     private final MetricsManager metricsManager = MetricsManagers.createForTests();
     private final KeyValueServiceConfig keyValueServiceConfig = new InMemoryAtlasDbConfig();
-    private final LeaderConfig leaderConfig = ImmutableLeaderConfig.builder()
-            .localServer("me")
-            .leaders(ImmutableList.of("me"))
-            .quorumSize(1)
-            .build();
 
     private final ServiceDiscoveringDatabaseTimeLockSupplier timeLockSupplier =
             new ServiceDiscoveringDatabaseTimeLockSupplier(
-                    metricsManager, keyValueServiceConfig, Refreshable.only(Optional.empty()), leaderConfig, false);
+                    metricsManager, keyValueServiceConfig, Refreshable.only(Optional.empty()), false);
 
     @Test
     public void canGetTimestampServiceForDifferentSeries() {u}(j (a31b55bb26484c1c29dbf7dfa1fb463fb2596558j timelock-impl/build.gradlej modifiedj~ Kj K j Kj nhttps://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fbuild.gradlej mhttps://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fbuild.gradle?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -1,4 +1,5 @@
 apply plugin: 'org.unbroken-dome.test-sets'
+apply plugin: 'com.palantir.metric-schema'
 
 apply from: "../gradle/shared.gradle"
 apply from: "../gradle/tests.gradle"
@@ -102,3 +103,8 @@ dependencies {
     testAnnotationProcessor 'org.immutables:value'
     testCompileOnly 'org.immutables:value::annotations'
 }
+
+license {
+    exclude '**/RequestMetrics.java'
+    exclude '**/BufferMetrics.java'
+}u}(j (9621a8f2b663bdf3ad29791637809be64ba5a328j Wtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/AsyncTimelockServiceImpl.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X	  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.timelock;
 
+import com.codahale.metrics.Histogram;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.SettableFuture;
@@ -29,6 +30,7 @@
 import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.atlasdb.timelock.lock.TimeLimit;
 import com.palantir.atlasdb.timelock.lock.watch.ValueAndLockWatchStateUpdate;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
 import com.palantir.atlasdb.timelock.transaction.timestamp.DelegatingClientAwareManagedTimestampService;
 import com.palantir.atlasdb.timelock.transaction.timestamp.LeadershipGuardedClientAwareManagedTimestampService;
 import com.palantir.lock.LockDescriptor;
@@ -62,9 +64,14 @@ public class AsyncTimelockServiceImpl implements AsyncTimelockService {
     private final AsyncLockService lockService;
     private final LeadershipGuardedClientAwareManagedTimestampService timestampService;
     private final LockLog lockLog;
+    private final Histogram changeMetadataHistogram;
 
     public AsyncTimelockServiceImpl(
-            AsyncLockService lockService, ManagedTimestampService timestampService, LockLog lockLog) {
+            AsyncLockService lockService,
+            ManagedTimestampService timestampService,
+            LockLog lockLog,
+            RequestMetrics metadataMetrics) {
+        this.changeMetadataHistogram = metadataMetrics.changeMetadata();
         this.lockService = lockService;
         this.timestampService = new LeadershipGuardedClientAwareManagedTimestampService(
                 DelegatingClientAwareManagedTimestampService.createDefault(timestampService));
@@ -106,6 +113,9 @@ public ListenableFuture<LockResponseV2> lock(IdentifiedLockRequest request) {
                 request.getLockDescriptors(),
                 TimeLimit.of(request.getAcquireTimeoutMs()),
                 request.getMetadata());
+        changeMetadataHistogram.update(request.getMetadata()
+                .map(metadata -> metadata.lockDescriptorToChangeMetadata().size())
+                .orElse(0));
         lockLog.registerRequest(request, result);
         SettableFuture<LockResponseV2> response = SettableFuture.create();
         result.onComplete(() -> {u}(j (d8fdf17d283ce2a18ecc0180c5fd05954b43ce29j Ttimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/AsyncLockService.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X^  @@ -19,6 +19,7 @@
 import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingService;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingServiceImpl;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LeaderTime;
 import com.palantir.lock.v2.LockToken;
@@ -58,12 +59,15 @@ public class AsyncLockService implements Closeable {
      * @return an asynchronous lock service
      */
     public static AsyncLockService createDefault(
-            LockLog lockLog, ScheduledExecutorService reaperExecutor, ScheduledExecutorService timeoutExecutor) {
+            LockLog lockLog,
+            ScheduledExecutorService reaperExecutor,
+            ScheduledExecutorService timeoutExecutor,
+            BufferMetrics bufferMetrics) {
 
         LeaderClock clock = LeaderClock.create();
 
         HeldLocksCollection heldLocks = HeldLocksCollection.create(clock);
-        LockWatchingService lockWatchingService = new LockWatchingServiceImpl(heldLocks, clock.id());
+        LockWatchingService lockWatchingService = new LockWatchingServiceImpl(heldLocks, clock.id(), bufferMetrics);
         LockAcquirer lockAcquirer = new LockAcquirer(lockLog, timeoutExecutor, clock, lockWatchingService);
 
         return new AsyncLockService(u}(j (5cce128c5d57690a5875d483a761058f6a0b4ceej etimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/ArrayLockEventSlidingWindow.javaj modifiedj~ K0j Kj K2j https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindow.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindow.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindow.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -16,9 +16,15 @@
 
 package com.palantir.atlasdb.timelock.lock.watch;
 
+import com.codahale.metrics.Counter;
 import com.google.common.math.LongMath;
 import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
+import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
+import com.palantir.lock.watch.UnlockEvent;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Optional;
@@ -29,10 +35,14 @@ public class ArrayLockEventSlidingWindow {
     private final LockWatchEvent[] buffer;
     private final int maxSize;
     private long nextSequence = 0;
+    private final Counter changeMetadataCounter;
+    private final Counter eventsWithMetadataCounter;
 
-    ArrayLockEventSlidingWindow(int maxSize) {
+    ArrayLockEventSlidingWindow(int maxSize, BufferMetrics bufferMetrics) {
         this.buffer = new LockWatchEvent[maxSize];
         this.maxSize = maxSize;
+        this.changeMetadataCounter = bufferMetrics.changeMetadata();
+        this.eventsWithMetadataCounter = bufferMetrics.eventsWithMetadata();
     }
 
     long lastVersion() {
@@ -41,10 +51,27 @@ long lastVersion() {
 
     void add(LockWatchEvent.Builder eventBuilder) {
         LockWatchEvent event = eventBuilder.build(nextSequence);
-        buffer[LongMath.mod(nextSequence, maxSize)] = event;
+        int index = LongMath.mod(nextSequence, maxSize);
+
+        Optional.ofNullable(buffer[index])
+                .flatMap(replacedEvent -> replacedEvent.accept(LockWatchEventMetadataVisitor.INSTANCE))
+                .ifPresent(this::decrementMetadataCounters);
+        event.accept(LockWatchEventMetadataVisitor.INSTANCE).ifPresent(this::incrementMetadataCounters);
+
+        buffer[index] = event;
         nextSequence++;
     }
 
+    private void incrementMetadataCounters(LockRequestMetadata metadata) {
+        changeMetadataCounter.inc(metadata.lockDescriptorToChangeMetadata().size());
+        eventsWithMetadataCounter.inc();
+    }
+
+    private void decrementMetadataCounters(LockRequestMetadata metadata) {
+        changeMetadataCounter.dec(metadata.lockDescriptorToChangeMetadata().size());
+        eventsWithMetadataCounter.dec();
+    }
+
     public Optional<List<LockWatchEvent>> getNextEvents(long version) {
         if (versionInTheFuture(version) || versionTooOld(version)) {
             return Optional.empty();
@@ -72,4 +99,23 @@ private boolean versionInTheFuture(long version) {
     private boolean versionTooOld(long version) {
         return lastVersion() - version > maxSize;
     }
+
+    private enum LockWatchEventMetadataVisitor implements LockWatchEvent.Visitor<Optional<LockRequestMetadata>> {
+        INSTANCE;
+
+        @Override
+        public Optional<LockRequestMetadata> visit(LockEvent lockEvent) {
+            return lockEvent.metadata();
+        }
+
+        @Override
+        public Optional<LockRequestMetadata> visit(UnlockEvent unlockEvent) {
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<LockRequestMetadata> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
+            return Optional.empty();
+        }
+    }
 }u}(j (bca869f56d71be63d77a6b2c8b65c3bbe2af41c8j Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImpl.javaj modifiedj~ K	j Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj Xm  @@ -19,6 +19,7 @@
 import com.google.common.collect.RangeSet;
 import com.palantir.atlasdb.timelock.lock.AsyncLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.watch.LockEvent;
@@ -38,12 +39,17 @@
 
 public class LockEventLogImpl implements LockEventLog {
     private final UUID logId;
-    private final ArrayLockEventSlidingWindow slidingWindow = new ArrayLockEventSlidingWindow(1000);
+    private final ArrayLockEventSlidingWindow slidingWindow;
     private final Supplier<LockWatches> watchesSupplier;
     private final HeldLocksCollection heldLocksCollection;
 
-    LockEventLogImpl(UUID logId, Supplier<LockWatches> watchesSupplier, HeldLocksCollection heldLocksCollection) {
+    LockEventLogImpl(
+            UUID logId,
+            Supplier<LockWatches> watchesSupplier,
+            HeldLocksCollection heldLocksCollection,
+            BufferMetrics bufferMetrics) {
         this.logId = logId;
+        this.slidingWindow = new ArrayLockEventSlidingWindow(1000, bufferMetrics);
         this.watchesSupplier = watchesSupplier;
         this.heldLocksCollection = heldLocksCollection;
     }
@@ -64,6 +70,7 @@ public synchronized <T> ValueAndLockWatchStateUpdate<T> runTask(
     @Override
     public synchronized void logLock(
             Set<LockDescriptor> locksTakenOut, LockToken lockToken, Optional<LockRequestMetadata> metadata) {
+
         slidingWindow.add(LockEvent.builder(locksTakenOut, lockToken, metadata));
     }
 u}(j (64e2e75476f17ef9c28864338c16eb43bc5cd443j atimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javaj modifiedj~ Kj Kj K
j https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -22,6 +22,7 @@
 import com.google.common.collect.TreeRangeSet;
 import com.palantir.atlasdb.timelock.api.LockWatchRequest;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LeadershipId;
@@ -72,13 +73,14 @@ public class LockWatchingServiceImpl implements LockWatchingService {
     private final AtomicReference<LockWatches> watches = new AtomicReference<>(LockWatches.create());
     private final ReadWriteLock watchesLock = new ReentrantReadWriteLock(true);
 
-    public LockWatchingServiceImpl(HeldLocksCollection heldLocksCollection, LeadershipId leadershipId) {
-        this(leadershipId.id(), heldLocksCollection);
+    public LockWatchingServiceImpl(
+            HeldLocksCollection heldLocksCollection, LeadershipId leadershipId, BufferMetrics lockWatchMetrics) {
+        this(leadershipId.id(), heldLocksCollection, lockWatchMetrics);
     }
 
     @VisibleForTesting
-    LockWatchingServiceImpl(UUID logId, HeldLocksCollection heldLocksCollection) {
-        this.lockEventLog = new LockEventLogImpl(logId, watches::get, heldLocksCollection);
+    LockWatchingServiceImpl(UUID logId, HeldLocksCollection heldLocksCollection, BufferMetrics lockWatchMetrics) {
+        this.lockEventLog = new LockEventLogImpl(logId, watches::get, heldLocksCollection, lockWatchMetrics);
     }
 
     @Overrideu}(j (1bda947c93dfade6c8d6e97379c8ca0fa7fed706j .timelock-impl/src/main/metrics/lockwatches.ymlj addedj~ Kj K j Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Flockwatches.ymlj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Flockwatches.ymlj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Flockwatches.yml?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -0,0 +1,20 @@
+options:
+  javaPackage: 'com.palantir.atlasdb.timelock.lockwatches'
+
+namespaces:
+  request:
+    docs: Metrics tracking LockWatch-related things in requests received by TimeLock
+    metrics:
+      changeMetadata:
+        docs: Number of change metadata objects contained in a lock request
+        type: histogram
+  buffer:
+    docs: Metrics tracking things currently stored in the LockWatchEvent buffer (sliding window)
+    metrics:
+      eventsWithMetadata:
+        docs: Number of events currently stored in the buffer that have non-absent metadata
+        type: counter
+      changeMetadata:
+        docs: Total number of change metadata objects currently stored in the buffer across all events
+        type: counter
+u}(j (d612d1bb1d5eea09655d460bf0f0ad1077579a6dj [timelock-impl/src/test/java/com/palantir/atlasdb/timelock/AsyncTimelockServiceImplTest.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImplTest.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -21,15 +21,16 @@
 
 import com.palantir.atlasdb.timelock.lock.AsyncLockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
 import com.palantir.timestamp.ManagedTimestampService;
 import org.junit.Test;
 
 public class AsyncTimelockServiceImplTest {
     @Test
     public void delegatesInitializationCheck() {
         ManagedTimestampService mockMts = mock(ManagedTimestampService.class);
-        AsyncTimelockServiceImpl service =
-                new AsyncTimelockServiceImpl(mock(AsyncLockService.class), mockMts, mock(LockLog.class));
+        AsyncTimelockServiceImpl service = new AsyncTimelockServiceImpl(
+                mock(AsyncLockService.class), mockMts, mock(LockLog.class), mock(RequestMetrics.class));
         when(mockMts.isInitialized()).thenReturn(false).thenReturn(true);
 
         assertThat(service.isInitialized()).isFalse();u}(j (b88b9f6eb2608d0c4d5fa96c20f636f1dc76adbdj Xtimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/AsyncLockServiceTest.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -18,6 +18,8 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.concurrent.ScheduledExecutorService;
@@ -29,8 +31,12 @@ public class AsyncLockServiceTest {
     public void executorsShutDownAfterClose() {
         ScheduledExecutorService reaperExecutor = PTExecutors.newSingleThreadScheduledExecutor();
         ScheduledExecutorService timeoutExecutor = PTExecutors.newSingleThreadScheduledExecutor();
+        MetricsManager metricsManager = MetricsManagers.createForTests();
         AsyncLockService asyncLockService = AsyncLockService.createDefault(
-                new LockLog(MetricsManagers.createForTests().getRegistry(), () -> 1L), reaperExecutor, timeoutExecutor);
+                new LockLog(metricsManager.getRegistry(), () -> 1L),
+                reaperExecutor,
+                timeoutExecutor,
+                BufferMetrics.of(metricsManager.getTaggedRegistry()));
 
         asyncLockService.close();
         assertThat(reaperExecutor.isShutdown()).isTrue();u}(j (01d2292522bddd65342f57b0925c5712c567ecbfj itimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/ArrayLockEventSlidingWindowTest.javaj modifiedj~ KZj Kj Kmj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -18,17 +18,39 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchEvent;
 import java.util.List;
+import java.util.Optional;
+import java.util.Set;
+import java.util.UUID;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import java.util.stream.LongStream;
-import org.immutables.value.Value;
 import org.junit.Test;
 
 public class ArrayLockEventSlidingWindowTest {
     private static final int WINDOW_SIZE = 10;
 
-    private final ArrayLockEventSlidingWindow slidingWindow = new ArrayLockEventSlidingWindow(WINDOW_SIZE);
+    private static final LockDescriptor LOCK_1 = StringLockDescriptor.of("abc");
+    private static final LockDescriptor LOCK_2 = StringLockDescriptor.of("def");
+    private static final LockDescriptor LOCK_3 = StringLockDescriptor.of("ghi");
+    private static final LockToken TOKEN = LockToken.of(UUID.randomUUID());
+
+    private final BufferMetrics bufferMetrics =
+            BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
+    private final ArrayLockEventSlidingWindow slidingWindow =
+            new ArrayLockEventSlidingWindow(WINDOW_SIZE, bufferMetrics);
 
     @Test
     public void whenLastKnownVersionIsAfterCurrentReturnEmpty() {
@@ -72,6 +94,68 @@ public void returnRangeAfterBoundary() {
         assertContainsNextEventsInOrder(10, 11, 14);
     }
 
+    @Test
+    public void countsMetadataCorrectlyStartingFromEmptyBuffer() {
+        LockRequestMetadata metadata = LockRequestMetadata.of(ImmutableMap.of(
+                LOCK_1, ChangeMetadata.unchanged(), LOCK_2, ChangeMetadata.created(PtBytes.toBytes("foo"))));
+        LockRequestMetadata metadata2 =
+                LockRequestMetadata.of(ImmutableMap.of(LOCK_3, ChangeMetadata.deleted(PtBytes.toBytes("bar"))));
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_1, LOCK_2), Optional.of(metadata));
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_3), Optional.of(metadata2));
+
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(3);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(2);
+
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_1), Optional.empty());
+        addLockEventWithMetadata(ImmutableSet.of(), Optional.of(LockRequestMetadata.of(ImmutableMap.of())));
+
+        assertThat(bufferMetrics.changeMetadata().getCount())
+                .as("Absent metadata should count for nothing")
+                .isEqualTo(3);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount())
+                .as("Empty metadata map should count for present metadata")
+                .isEqualTo(3);
+    }
+
+    @Test
+    public void maintainsCorrectMetadataCountWhenOverwritingBuffer() {
+        assertThat(WINDOW_SIZE)
+                .as("This test does not work with small windows since we are going to replace multiple events once"
+                        + " our buffer is full. With small windows, we might overwrite the wrong events.")
+                .isGreaterThanOrEqualTo(5);
+
+        IntStream.range(0, WINDOW_SIZE).forEach(i -> {
+            LockDescriptor lock = StringLockDescriptor.of("lock" + i);
+            LockRequestMetadata metadata = LockRequestMetadata.of(
+                    ImmutableMap.of(lock, ChangeMetadata.created(PtBytes.toBytes("created" + i))));
+            addLockEventWithMetadata(ImmutableSet.of(lock), Optional.of(metadata));
+        });
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+
+        // Counts are maintained if we replace an event with metadata of same size
+        addLockEventWithMetadata(
+                ImmutableSet.of(LOCK_1),
+                Optional.of(LockRequestMetadata.of(ImmutableMap.of(LOCK_1, ChangeMetadata.unchanged()))));
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+
+        // Both counts can decrease
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_1), Optional.empty());
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
+
+        // ChangeMetadata count can increase
+        addLockEventWithMetadata(
+                ImmutableSet.of(LOCK_1, LOCK_2, LOCK_3),
+                Optional.of(LockRequestMetadata.of(ImmutableMap.of(
+                        LOCK_1, ChangeMetadata.created(PtBytes.toBytes("created")),
+                        LOCK_2, ChangeMetadata.unchanged(),
+                        LOCK_3, ChangeMetadata.updated(PtBytes.toBytes("old"), PtBytes.toBytes("new"))))));
+        assertThat(bufferMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE + 1);
+        assertThat(bufferMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
+    }
+
     private void whenLogContainsEvents0To4() {
         // Log contains events [0,1,2,3,4]
         addEvents(5);
@@ -101,24 +185,11 @@ private void assertContainsNextEventsInOrder(long version, int startInclusive, i
                         .collect(Collectors.toList()));
     }
 
-    private static LockWatchEvent createEvent(long sequence) {
-        return ImmutableFakeLockWatchEvent.of(sequence, 1);
+    private void addLockEventWithMetadata(Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {
+        slidingWindow.add(LockEvent.builder(lockDescriptors, TOKEN, metadata));
     }
 
-    @Value.Immutable
-    abstract static class FakeLockWatchEvent implements LockWatchEvent {
-        @Override
-        @Value.Parameter
-        public abstract long sequence();
-
-        @Override
-        @Value.Parameter
-        public abstract int size();
-
-        @Override
-        public <T> T accept(LockWatchEvent.Visitor<T> visitor) {
-            // do nothing
-            return null;
-        }
+    private static LockWatchEvent createEvent(long sequence) {
+        return LockEvent.builder(ImmutableSet.of(), TOKEN).build(sequence);
     }
 }u}(j (428343d34d878fec95d1805731488da912fac28aj ^timelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImplTest.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X{  @@ -30,6 +30,8 @@
 import com.palantir.atlasdb.timelock.lock.ExclusiveLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocks;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
@@ -67,7 +69,11 @@ public class LockEventLogImplTest {
     private final AtomicReference<LockWatches> lockWatches = new AtomicReference<>(LockWatches.create());
     private final HeldLocksCollection heldLocksCollection = mock(HeldLocksCollection.class);
     private final HeldLocks heldLocks = mock(HeldLocks.class);
-    private final LockEventLog log = new LockEventLogImpl(LOG_ID, lockWatches::get, heldLocksCollection);
+    private final LockEventLog log = new LockEventLogImpl(
+            LOG_ID,
+            lockWatches::get,
+            heldLocksCollection,
+            BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
 
     @Before
     public void setupMocks() {u}(j (9351b2c3e3ec099a25284148e19fee9daed18290j etimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImplTest.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -33,6 +33,8 @@
 import com.palantir.atlasdb.timelock.lock.ExclusiveLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocks;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.AtlasCellLockDescriptor;
 import com.palantir.lock.AtlasRowLockDescriptor;
@@ -75,7 +77,8 @@ public class LockWatchingServiceImplTest {
     private static final ChangeMetadata DUMMY_METADATA = ChangeMetadata.unchanged();
 
     private final HeldLocksCollection locks = mock(HeldLocksCollection.class);
-    private final LockWatchingService lockWatcher = new LockWatchingServiceImpl(LOG_ID, locks);
+    private final LockWatchingService lockWatcher = new LockWatchingServiceImpl(
+            LOG_ID, locks, BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
 
     private final HeldLocks heldLocks = mock(HeldLocks.class);
 u}(j (4d9311a79afe49e73ddb3b80bfc770f03af846c4j ftimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataTest.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -32,6 +32,10 @@
 import com.palantir.atlasdb.timelock.api.LockWatchRequest;
 import com.palantir.atlasdb.timelock.lock.AsyncLockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
+import com.palantir.atlasdb.util.MetricsManager;
+import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.StringLockDescriptor;
@@ -67,10 +71,16 @@ public class AsyncTimeLockServiceMetadataTest {
 
     private final LockLog lockLog = new LockLog(new MetricRegistry(), () -> 10000L);
     private final ScheduledExecutorService scheduledExecutorService = new DeterministicScheduler();
-    private final AsyncLockService asyncLockService =
-            AsyncLockService.createDefault(lockLog, scheduledExecutorService, scheduledExecutorService);
+
+    private final MetricsManager metricsManager = MetricsManagers.createForTests();
+    private final RequestMetrics requestMetrics = RequestMetrics.of(metricsManager.getTaggedRegistry());
+    private final AsyncLockService asyncLockService = AsyncLockService.createDefault(
+            lockLog,
+            scheduledExecutorService,
+            scheduledExecutorService,
+            BufferMetrics.of(metricsManager.getTaggedRegistry()));
     private final AsyncTimelockServiceImpl timeLockService =
-            new AsyncTimelockServiceImpl(asyncLockService, new InMemoryTimestampService(), lockLog);
+            new AsyncTimelockServiceImpl(asyncLockService, new InMemoryTimestampService(), lockLog, requestMetrics);
     private final ConjureStartTransactionsRequest startTransactionsRequestWithInitialVersion =
             ConjureStartTransactionsRequest.builder()
                     .requestId(UUID.randomUUID())
@@ -135,6 +145,19 @@ public void cannotPassDownMetadataForUnknownLockDescriptors() {
                 .withMessage("Unknown lock descriptor in metadata");
     }
 
+    @Test
+    public void updatesRequestMetricsCorrectly() {
+        timeLockService.lock(standardRequestWithMetadata(ImmutableMap.of()));
+        timeLockService.lock(standardRequestWithMetadata(ImmutableMap.of(
+                StringLockDescriptor.of("1"), ChangeMetadata.unchanged(),
+                StringLockDescriptor.of("2"), ChangeMetadata.unchanged(),
+                StringLockDescriptor.of("3"), ChangeMetadata.unchanged())));
+        timeLockService.lock(ImmutableIdentifiedLockRequest.copyOf(WATCHED_LOCK_REQUEST_WITH_METADATA)
+                .withMetadata(Optional.empty()));
+
+        assertThat(requestMetrics.changeMetadata().getSnapshot().getValues()).containsOnly(0, 3, 0);
+    }
+
     private List<Optional<LockRequestMetadata>> getAllLockEventsMetadata() {
         return LockWatchIntegrationTestUtilities.extractMetadata(getAllLockWatchEvents());
     }u}(j (a1c26b303ce52ac19eaf79c922923c3074b142f2j ]timelock-server/src/test/java/com/palantir/atlasdb/timelock/lock/AsyncLockServiceEteTest.javaj modifiedj~ Kj Kj Kj https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceEteTest.javaj https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceEteTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceEteTest.java?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj X  @@ -22,6 +22,8 @@
 import com.google.common.util.concurrent.Uninterruptibles;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingService;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingServiceImpl;
+import com.palantir.atlasdb.timelock.lockwatches.BufferMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.flake.FlakeRetryingRule;
 import com.palantir.flake.ShouldRetry;
 import com.palantir.leader.NotCurrentLeaderException;
@@ -63,7 +65,10 @@ public class AsyncLockServiceEteTest {
 
     private final LockLog lockLog = new LockLog(new MetricRegistry(), () -> 2L);
     private final HeldLocksCollection heldLocks = HeldLocksCollection.create(clock);
-    private final LockWatchingService lockWatchingService = new LockWatchingServiceImpl(heldLocks, clock.id());
+    private final LockWatchingService lockWatchingService = new LockWatchingServiceImpl(
+            heldLocks,
+            clock.id(),
+            BufferMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
     private final AsyncLockService service = new AsyncLockService(
             new LockCollection(),
             new ImmutableTimestampTracker(),u}(j (d58d4bbb90e7f75c0bdf01db7f9b5fc1aa6c5df7j 
versions.lockj modifiedj~ K7j K7j Knj _https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/versions.lockj ^https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/versions.lockj qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj XM=  @@ -8,9 +8,9 @@ com.boundary:high-scale-lib:1.0.6 (2 constraints: 9d14d4a0)
 com.clearspring.analytics:stream:2.5.2 (1 constraints: 970f7788)
 com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
-com.fasterxml.jackson.core:jackson-annotations:2.15.2 (24 constraints: c8810fce)
+com.fasterxml.jackson.core:jackson-annotations:2.15.2 (24 constraints: c98164d0)
 com.fasterxml.jackson.core:jackson-core:2.15.2 (22 constraints: c9b52a9f)
-com.fasterxml.jackson.core:jackson-databind:2.15.2 (37 constraints: 13ba1a84)
+com.fasterxml.jackson.core:jackson-databind:2.15.2 (37 constraints: 17ba4690)
 com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.15.2 (2 constraints: e3333101)
 com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.15.2 (1 constraints: 7f1c9ea4)
 com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.15.2 (4 constraints: 2344e62b)
@@ -25,7 +25,7 @@ com.fasterxml.jackson.module:jackson-module-afterburner:2.15.2 (1 constraints: 9
 com.fasterxml.jackson.module:jackson-module-blackbird:2.15.2 (1 constraints: b40e625e)
 com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.15.2 (2 constraints: dd2ecb69)
 com.fasterxml.jackson.module:jackson-module-parameter-names:2.15.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 2dce2620)
+com.github.ben-manes.caffeine:caffeine:3.1.6 (13 constraints: 34ce7029)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -45,11 +45,11 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f994935f)
+com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: 1595607f)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
-com.google.guava:guava:32.1.1-jre (48 constraints: d839700b)
+com.google.guava:guava:32.1.1-jre (48 constraints: d13c9656)
 com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava (1 constraints: bd17c918)
 com.google.j2objc:j2objc-annotations:2.8 (1 constraints: be09f5a0)
 com.google.protobuf:protobuf-java:3.21.9 (1 constraints: 4105453b)
@@ -67,28 +67,28 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:7.5.0 (5 constraints: cd530c72)
-com.palantir.conjure.java:conjure-undertow-annotations:7.5.0 (1 constraints: 0e051d36)
-com.palantir.conjure.java:conjure-undertow-lib:7.5.0 (2 constraints: 1d1c4081)
-com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 3d696e70)
-com.palantir.conjure.java.api:service-config:2.34.0 (5 constraints: 724d79ca)
-com.palantir.conjure.java.api:ssl-config:2.34.0 (3 constraints: e22a0da5)
-com.palantir.conjure.java.runtime:client-config:7.45.0 (6 constraints: bd6b2133)
-com.palantir.conjure.java.runtime:conjure-java-annotations:7.45.0 (1 constraints: c6188d9e)
-com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.45.0 (2 constraints: ca210f7b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.45.0 (6 constraints: 3f6ee88e)
-com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.45.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.45.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.45.0 (1 constraints: c6188d9e)
-com.palantir.conjure.java.runtime:keystores:7.45.0 (3 constraints: 202a4c60)
-com.palantir.conjure.java.runtime:refresh-utils:7.45.0 (2 constraints: 0a1e6f45)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.78.0 (2 constraints: 83295d02)
-com.palantir.dialogue:dialogue-blocking-channels:3.78.0 (2 constraints: e32369b4)
-com.palantir.dialogue:dialogue-clients:3.78.0 (1 constraints: 4405653b)
-com.palantir.dialogue:dialogue-core:3.78.0 (3 constraints: 883d62e3)
-com.palantir.dialogue:dialogue-futures:3.78.0 (3 constraints: dd33dac0)
-com.palantir.dialogue:dialogue-serde:3.78.0 (3 constraints: c62e7fa5)
-com.palantir.dialogue:dialogue-target:3.78.0 (7 constraints: a7763c6a)
+com.palantir.conjure.java:conjure-lib:7.14.0 (5 constraints: 8754055e)
+com.palantir.conjure.java:conjure-undertow-annotations:7.14.0 (1 constraints: 3e05593b)
+com.palantir.conjure.java:conjure-undertow-lib:7.14.0 (2 constraints: 7d1cc7ae)
+com.palantir.conjure.java.api:errors:2.35.0 (6 constraints: 4269c872)
+com.palantir.conjure.java.api:service-config:2.35.0 (5 constraints: 764da6cb)
+com.palantir.conjure.java.api:ssl-config:2.35.0 (4 constraints: 983b9c6e)
+com.palantir.conjure.java.runtime:client-config:7.57.0 (6 constraints: cc6b5039)
+com.palantir.conjure.java.runtime:conjure-java-annotations:7.57.0 (1 constraints: c918979e)
+com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.57.0 (2 constraints: cd21197b)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.57.0 (6 constraints: 486ed394)
+com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.57.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.57.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.57.0 (1 constraints: c918979e)
+com.palantir.conjure.java.runtime:keystores:7.57.0 (3 constraints: 262af060)
+com.palantir.conjure.java.runtime:refresh-utils:7.57.0 (2 constraints: 0d1e7945)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.86.0 (2 constraints: 7f29c301)
+com.palantir.dialogue:dialogue-blocking-channels:3.86.0 (2 constraints: e12337b4)
+com.palantir.dialogue:dialogue-clients:3.86.0 (1 constraints: 4305633b)
+com.palantir.dialogue:dialogue-core:3.86.0 (3 constraints: 833de8e1)
+com.palantir.dialogue:dialogue-futures:3.86.0 (3 constraints: da334bc0)
+com.palantir.dialogue:dialogue-serde:3.86.0 (3 constraints: c12e6ea4)
+com.palantir.dialogue:dialogue-target:3.86.0 (7 constraints: 9e760e64)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -97,28 +97,28 @@ com.palantir.docker.proxy:docker-proxy-rule-junit4:1.6.0 (1 constraints: 0905023
 com.palantir.goethe:goethe:0.11.0 (1 constraints: 3405263b)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
-com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
-com.palantir.safe-logging:logger:3.2.0 (24 constraints: 98a4d6fa)
-com.palantir.safe-logging:logger-slf4j:3.2.0 (1 constraints: 000e5942)
-com.palantir.safe-logging:logger-spi:3.2.0 (2 constraints: 0f1e997a)
-com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: f7178aeb)
-com.palantir.safe-logging:safe-logging:3.2.0 (28 constraints: 0cd34fc4)
+com.palantir.ri:resource-identifier:2.6.0 (3 constraints: aa2f1337)
+com.palantir.safe-logging:logger:3.5.0 (24 constraints: c4a4cd59)
+com.palantir.safe-logging:logger-slf4j:3.5.0 (1 constraints: 030e6242)
+com.palantir.safe-logging:logger-spi:3.5.0 (2 constraints: 151e387b)
+com.palantir.safe-logging:preconditions:3.5.0 (31 constraints: 30182f82)
+com.palantir.safe-logging:safe-logging:3.5.0 (28 constraints: 0ed394c2)
 com.palantir.safethreadlocalrandom:safe-thread-local-random:0.1.0 (3 constraints: 933225f9)
 com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
-com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 485c7290)
+com.palantir.tokens:auth-tokens:3.18.0 (5 constraints: 4d5c8992)
 com.palantir.tracing:tracing:6.17.0 (8 constraints: f97d045e)
 com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 1745b4f5)
 com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 46199abb)
-com.palantir.tritium:tritium-api:0.64.0 (6 constraints: 5052c7ce)
-com.palantir.tritium:tritium-caffeine:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-core:0.64.0 (5 constraints: 5d43281d)
-com.palantir.tritium:tritium-lib:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f96b65dd)
-com.palantir.tritium:tritium-proxy:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-registry:0.64.0 (13 constraints: 88ef0d92)
-com.palantir.tritium:tritium-slf4j:0.64.0 (2 constraints: bd138370)
-com.palantir.tritium:tritium-time:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-tracing:0.64.0 (1 constraints: 820e8359)
+com.palantir.tritium:tritium-api:0.68.0 (6 constraints: 64520bd6)
+com.palantir.tritium:tritium-caffeine:0.68.0 (1 constraints: 3c05433b)
+com.palantir.tritium:tritium-core:0.68.0 (5 constraints: 6d439821)
+com.palantir.tritium:tritium-lib:0.68.0 (1 constraints: 3c05433b)
+com.palantir.tritium:tritium-metrics:0.68.0 (7 constraints: 116c5de8)
+com.palantir.tritium:tritium-proxy:0.68.0 (1 constraints: 860e8f59)
+com.palantir.tritium:tritium-registry:0.68.0 (13 constraints: b4efdfbd)
+com.palantir.tritium:tritium-slf4j:0.68.0 (2 constraints: c1138f70)
+com.palantir.tritium:tritium-time:0.68.0 (1 constraints: 860e8f59)
+com.palantir.tritium:tritium-tracing:0.68.0 (1 constraints: 860e8f59)
 com.squareup:javapoet:1.13.0 (4 constraints: 102cc1ed)
 com.squareup:kotlinpoet:1.11.0 (1 constraints: 6a0c7f0d)
 com.thinkaurelius.thrift:thrift-server:0.3.7 (1 constraints: 980f6c88)
@@ -145,7 +145,7 @@ io.dropwizard:dropwizard-util:2.1.2 (12 constraints: 6eb0fdf0)
 io.dropwizard:dropwizard-validation:2.1.2 (8 constraints: 85778aa6)
 io.dropwizard.logback:logback-throttling-appender:1.1.9 (1 constraints: 830ed74f)
 io.dropwizard.metrics:metrics-annotation:4.2.12 (3 constraints: 6c2e5a89)
-io.dropwizard.metrics:metrics-core:4.2.12 (29 constraints: 2fcff7c9)
+io.dropwizard.metrics:metrics-core:4.2.19 (29 constraints: f5d02e7e)
 io.dropwizard.metrics:metrics-healthchecks:4.2.12 (5 constraints: 4b4964b0)
 io.dropwizard.metrics:metrics-jersey2:4.2.12 (1 constraints: 5c0e744e)
 io.dropwizard.metrics:metrics-jetty9:4.2.12 (3 constraints: 2729b8ff)
@@ -186,12 +186,12 @@ io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf
 io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
-io.undertow:undertow-core:2.2.25.Final (2 constraints: 331dfa06)
+io.undertow:undertow-core:2.2.24.Final (2 constraints: 321db506)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
 jakarta.activation:jakarta.activation-api:1.2.2 (3 constraints: 4e3741b6)
-jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 26793e31)
+jakarta.annotation:jakarta.annotation-api:1.3.5 (7 constraints: 396987f4)
 jakarta.inject:jakarta.inject-api:1.0.5 (13 constraints: decbc9f9)
 jakarta.servlet:jakarta.servlet-api:4.0.4 (10 constraints: 7b9def70)
 jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
@@ -200,7 +200,7 @@ jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.5 (6 constraints: b1596f2f)
 junit:junit:4.13.2 (8 constraints: 5a9c5baf)
-net.bytebuddy:byte-buddy:1.14.4 (3 constraints: 4025da91)
+net.bytebuddy:byte-buddy:1.14.4 (3 constraints: 41252092)
 net.bytebuddy:byte-buddy-agent:1.14.4 (1 constraints: 440b42de)
 net.java.dev.jna:jna:4.1.0 (2 constraints: 6e1bbbad)
 net.jpountz.lz4:lz4:1.3.0 (2 constraints: 971453a0)
@@ -217,15 +217,15 @@ org.apache.commons:commons-math3:3.2 (2 constraints: 90196ff8)
 org.apache.commons:commons-pool2:2.11.1 (1 constraints: 3705333b)
 org.apache.commons:commons-text:1.9 (1 constraints: b5102f9b)
 org.apache.httpcomponents.client5:httpclient5:5.2.1 (2 constraints: d518b1c3)
-org.apache.httpcomponents.core5:httpcore5:5.2.1 (3 constraints: 9f383c39)
+org.apache.httpcomponents.core5:httpcore5:5.2.2 (3 constraints: a038a439)
 org.apache.httpcomponents.core5:httpcore5-h2:5.2 (1 constraints: dd12c315)
 org.apache.thrift:libthrift:0.17.0 (4 constraints: 00372854)
-org.assertj:assertj-core:3.24.2 (4 constraints: a136076b)
+org.assertj:assertj-core:3.24.2 (4 constraints: a5360d6c)
 org.assertj:assertj-guava:3.24.2 (1 constraints: 3d05473b)
 org.awaitility:awaitility:4.2.0 (2 constraints: c71a893b)
 org.caffinitas.ohc:ohc-core:0.3.4 (1 constraints: 950f6988)
 org.checkerframework:checker-compat-qual:2.5.5 (2 constraints: 1f1d1717)
-org.checkerframework:checker-qual:3.33.0 (3 constraints: 6f2678e2)
+org.checkerframework:checker-qual:3.33.0 (3 constraints: 7026bde2)
 org.clojure:clojure:1.8.0 (1 constraints: 0b050836)
 org.codehaus.groovy:groovy:2.5.14 (23 constraints: b55185ba)
 org.codehaus.groovy:groovy-cli-picocli:2.5.14 (5 constraints: d54e9017)
@@ -284,7 +284,7 @@ org.jboss.xnio:xnio-api:3.8.7.Final (2 constraints: 771a3146)
 org.jboss.xnio:xnio-nio:3.8.7.Final (1 constraints: c80dcb30)
 org.jdbi:jdbi3-core:3.30.0 (2 constraints: 0e10d5bf)
 org.jdbi:jdbi3-sqlobject:3.30.0 (1 constraints: 38053d3b)
-org.jetbrains:annotations:23.0.0 (4 constraints: 0c35f637)
+org.jetbrains:annotations:24.0.1 (4 constraints: 10350c39)
 org.jetbrains.kotlin:kotlin-reflect:1.6.10 (1 constraints: 360b7dd6)
 org.jetbrains.kotlin:kotlin-stdlib:1.7.0 (7 constraints: 07713968)
 org.jetbrains.kotlin:kotlin-stdlib-common:1.7.0 (1 constraints: 110f8b6b)
@@ -293,7 +293,7 @@ org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.0 (3 constraints: c125b5a3)
 org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.5.0 (1 constraints: 4b0ea44e)
 org.jvnet:animal-sniffer-annotation:1.0 (1 constraints: f20b95eb)
 org.mindrot:jbcrypt:0.4 (2 constraints: 4714f171)
-org.mockito:mockito-core:5.3.1 (2 constraints: 5316c412)
+org.mockito:mockito-core:5.3.1 (2 constraints: 26166bfc)
 org.mpierce.metrics.reservoir:hdrhistogram-metrics-reservoir:1.1.3 (1 constraints: 0d10f991)
 org.objenesis:objenesis:3.3 (2 constraints: c71412ab)
 org.openjdk.jmh:jmh-core:1.36 (2 constraints: f51525d9)
@@ -324,8 +324,8 @@ com.github.peterwippermann.junit4:parameterized-suite:1.1.0 (1 constraints: 0405
 com.github.stefanbirkner:system-rules:1.19.0 (1 constraints: 3d05443b)
 com.github.tomakehurst:wiremock-standalone:2.27.2 (1 constraints: 3f054a3b)
 com.google.code.findbugs:annotations:3.0.1 (1 constraints: 9e0aafc3)
-com.palantir.conjure.java.api:test-utils:2.34.0 (1 constraints: 3f054e3b)
-com.palantir.safe-logging:preconditions-assertj:3.2.0 (1 constraints: 07050036)
+com.palantir.conjure.java.api:test-utils:2.35.0 (1 constraints: 3f054e3b)
+com.palantir.safe-logging:preconditions-assertj:3.5.0 (1 constraints: 07050036)
 com.palantir.tracing:tracing-test-utils:6.17.0 (1 constraints: 3e05563b)
 com.spotify.dataenum:dataenum:1.4.1 (1 constraints: e9105ac1)
 com.thoughtworks.qdox:qdox:1.12.1 (1 constraints: 6d11f7d9)u}(j (145b6814fc1b3cdcdb351db75a70037194fc4cd8j versions.propsj modifiedj~ Kj Kj Kj `https://github.com/palantir/atlasdb/blob/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/versions.propsj _https://github.com/palantir/atlasdb/raw/d01c5daf169f1aee355f219005e7f5fc29e3fdcc/versions.propsj rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=d01c5daf169f1aee355f219005e7f5fc29e3fdccj XH  @@ -25,9 +25,9 @@ com.palantir.common:streams = 2.1.0
 com.palantir.config.crypto:* = 5.1.0
 com.palantir.conjure.java.api:* = 2.29.0
 com.palantir.conjure.java.runtime:* = 7.39.0
-com.palantir.conjure.java:* = 7.5.0
-com.palantir.conjure:conjure = 4.36.0
-com.palantir.dialogue:* = 3.78.0
+com.palantir.conjure.java:* = 7.14.0
+com.palantir.conjure:conjure = 4.38.0
+com.palantir.dialogue:* = 3.86.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
 com.palantir.goethe:* = 0.11.0
@@ -46,7 +46,7 @@ commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
 io.netty:* = 4.1.90.Final
-io.undertow:* = 2.2.25.Final
+io.undertow:* = 2.2.24.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2ueu(5b2e7a27be9a20d44f2aab8affa0aba5c3623efb}(sha(5b2e7a27be9a20d44f2aab8affa0aba5c3623efbnode_idEC_kwDOAjP5fdoAKDViMmU3YTI3YmU5YTIwZDQ0ZjJhYWI4YWZmYTBhYmE1YzM2MjNlZmIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-01T12:45:37Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-06-01T12:45:37Zumessagesequencetree}(j (bb29ff29227a73767b346f16c36dc453fbb1b511url`https://api.github.com/repos/palantir/atlasdb/git/trees/bb29ff29227a73767b346f16c36dc453fbb1b511uj* bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5b2e7a27be9a20d44f2aab8affa0aba5c3623efb
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR4kvIACgkQTLdFKain
zjzc5ggAwhRyXHlG6ifkkJdCfZsCCdb9c4zKA6NLFOzTE4MhP5qpOLG6S8T+poAS
7cV4GyFStoyiG2dL/lWu35zNcbU2p9AO+xKnefxNY4MIe5WEW+tRo6Dl0bVHdTlC
vLTTOLoIVTzmjhPAUQyJ8z4wTBifND1ascb3vU2UfsNqyDMf6mBySzBK6oAwSWt2
bD9suv7+3++p3RA8xYKhVRaHIoJnEc3/1VLI4Rseog02Nn83UkVKo5I5FyT3k65g
/P/MsnHOHcjiojl0R9BAGZ46zpD3b6/ZxThnmo27X6Gc+xvUhdr23Uo0j/M5y3wn
+QYLNp8MF3Ac6C90PuCjD3oVOM/u/Q==
=M3ur
-----END PGP SIGNATURE-----payloadtree bb29ff29227a73767b346f16c36dc453fbb1b511
parent b44f24b10c4b4739df60acc2883e143d85f6241e
author Jeremy Kong <jkong@palantir.com> 1685623537 +0100
committer Jeremy Kong <jkong@palantir.com> 1685623537 +0100

sequence
uuj* ^https://api.github.com/repos/palantir/atlasdb/commits/5b2e7a27be9a20d44f2aab8affa0aba5c3623efbhtml_urlShttps://github.com/palantir/atlasdb/commit/5b2e7a27be9a20d44f2aab8affa0aba5c3623efbcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5b2e7a27be9a20d44f2aab8affa0aba5c3623efb/comments(      j }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j* 'https://api.github.com/users/jeremyk-91j8 https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj  }(j= 
jeremyk-91j? JZ j MDQ6VXNlcjU5NTU1MTA=jA 3https://avatars.githubusercontent.com/u/5955510?v=4jC h5j* 'https://api.github.com/users/jeremyk-91j8 https://github.com/jeremyk-91jF 1https://api.github.com/users/jeremyk-91/followersjH >https://api.github.com/users/jeremyk-91/following{/other_user}jJ 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jL >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jN 5https://api.github.com/users/jeremyk-91/subscriptionsjP ,https://api.github.com/users/jeremyk-91/orgsjR -https://api.github.com/users/jeremyk-91/reposjT 8https://api.github.com/users/jeremyk-91/events{/privacy}jV 7https://api.github.com/users/jeremyk-91/received_eventsjX UserjZ uparents]}(j (b44f24b10c4b4739df60acc2883e143d85f6241ej* ^https://api.github.com/repos/palantir/atlasdb/commits/b44f24b10c4b4739df60acc2883e143d85f6241ej8 Shttps://github.com/palantir/atlasdb/commit/b44f24b10c4b4739df60acc2883e143d85f6241euastats}(totalK	additionsKu	deletionsKufiles](}(j (1763d776c6ad4847974da7e235b77415c269bca4filenameoatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javastatusmodifiedjt Kju KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5b2e7a27be9a20d44f2aab8affa0aba5c3623efb/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5b2e7a27be9a20d44f2aab8affa0aba5c3623efb/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=5b2e7a27be9a20d44f2aab8affa0aba5c3623efbpatchX  @@ -21,6 +21,7 @@
 import com.palantir.atlasdb.workload.store.WorkloadColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 
 /**
@@ -33,7 +34,7 @@ public interface InteractiveTransaction {
 
     void delete(String table, WorkloadCell workloadCell);
 
-    RowColumnRangeIterator getRowsColumnRange(
+    Map<Integer, RowColumnRangeIterator> getRowsColumnRange(
             String table, List<Integer> rows, WorkloadColumnRangeSelection workloadColumnRangeSelection);
 
     List<WitnessedTransactionAction> witness();u}(j (817fc577fded0e0b5f4b6f360c833ce11b9259f0jz }atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowsColumnRangeReadTransactionAction.javaj| modifiedjt Kju Kj~ Kj https://github.com/palantir/atlasdb/blob/5b2e7a27be9a20d44f2aab8affa0aba5c3623efb/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowsColumnRangeReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/5b2e7a27be9a20d44f2aab8affa0aba5c3623efb/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowsColumnRangeReadTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowsColumnRangeReadTransactionAction.java?ref=5b2e7a27be9a20d44f2aab8affa0aba5c3623efbj X  @@ -41,18 +41,19 @@ default <T> T accept(TransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-    default WitnessedRowsColumnRangeExhaustionTransactionAction exhaustionWitness() {
+    default WitnessedRowsColumnRangeExhaustionTransactionAction exhaustionWitness(int specificRow) {
         return ImmutableWitnessedRowsColumnRangeExhaustionTransactionAction.builder()
                 .originalAction(this)
+                .specificRow(specificRow)
                 .build();
     }
 
-    default WitnessedRowsColumnRangeReadTransactionAction readWitness(WorkloadCell cell, int value) {
+    default WitnessedRowsColumnRangeReadTransactionAction readWitness(int specificRow, WorkloadCell cell, int value) {
         return ImmutableWitnessedRowsColumnRangeReadTransactionAction.builder()
                 .originalAction(this)
-                .table(this.table())
                 .cell(cell)
                 .value(value)
+                .specificRow(specificRow)
                 .build();
     }
 }u}(j (0a7ecde8aba96eaaa9d34f8b29baade6c72d5587jz atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowsColumnRangeExhaustionTransactionAction.javaj| modifiedjt Kju K j~ Kj https://github.com/palantir/atlasdb/blob/5b2e7a27be9a20d44f2aab8affa0aba5c3623efb/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowsColumnRangeExhaustionTransactionAction.javaj https://github.com/palantir/atlasdb/raw/5b2e7a27be9a20d44f2aab8affa0aba5c3623efb/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowsColumnRangeExhaustionTransactionAction.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowsColumnRangeExhaustionTransactionAction.java?ref=5b2e7a27be9a20d44f2aab8affa0aba5c3623efbj X  @@ -23,8 +23,14 @@
 public interface WitnessedRowsColumnRangeExhaustionTransactionAction extends WitnessedTransactionAction {
     RowsColumnRangeReadTransactionAction originalAction();
 
+    int specificRow();
+
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
+
+    static ImmutableWitnessedRowsColumnRangeExhaustionTransactionAction.Builder builder() {
+        return ImmutableWitnessedRowsColumnRangeExhaustionTransactionAction.builder();
+    }
 }u}(j (eab89c9aa6cadc3961d67e05d3c49dc63d883751jz atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowsColumnRangeReadTransactionAction.javaj| modifiedjt K	ju Kj~ K
j https://github.com/palantir/atlasdb/blob/5b2e7a27be9a20d44f2aab8affa0aba5c3623efb/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowsColumnRangeReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/5b2e7a27be9a20d44f2aab8affa0aba5c3623efb/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowsColumnRangeReadTransactionAction.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowsColumnRangeReadTransactionAction.java?ref=5b2e7a27be9a20d44f2aab8affa0aba5c3623efbj X  @@ -24,8 +24,12 @@
 public interface WitnessedRowsColumnRangeReadTransactionAction extends WitnessedSingleCellTransactionAction {
     RowsColumnRangeReadTransactionAction originalAction();
 
+    int specificRow();
+
     @Override
-    String table();
+    default String table() {
+        return originalAction().table();
+    }
 
     @Override
     WorkloadCell cell();
@@ -36,4 +40,8 @@ public interface WitnessedRowsColumnRangeReadTransactionAction extends Witnessed
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
+
+    static ImmutableWitnessedRowsColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableWitnessedRowsColumnRangeReadTransactionAction.builder();
+    }
 }u}(j (1f8e103fc24cf73d4cb31265e272321e22d7f28cjz latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj| modifiedjt Kju Kj~ K8j https://github.com/palantir/atlasdb/blob/5b2e7a27be9a20d44f2aab8affa0aba5c3623efb/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://github.com/palantir/atlasdb/raw/5b2e7a27be9a20d44f2aab8affa0aba5c3623efb/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=5b2e7a27be9a20d44f2aab8affa0aba5c3623efbj X  @@ -18,6 +18,7 @@
 
 import com.google.common.collect.Maps;
 import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.keyvalue.api.BatchColumnRangeSelection;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.Transaction;
@@ -43,6 +44,7 @@
 import java.util.function.Function;
 import java.util.stream.Collectors;
 import javax.annotation.concurrent.NotThreadSafe;
+import one.util.streamex.EntryStream;
 
 @NotThreadSafe
 final class AtlasDbInteractiveTransaction implements InteractiveTransaction {
@@ -99,41 +101,45 @@ public void delete(String table, WorkloadCell workloadCell) {
     }
 
     @Override
-    public RowColumnRangeIterator getRowsColumnRange(
+    public Map<Integer, RowColumnRangeIterator> getRowsColumnRange(
             String table, List<Integer> rows, WorkloadColumnRangeSelection workloadColumnRangeSelection) {
-        Iterator<Entry<Cell, byte[]>> rawAtlasDbIterator = run(
-                tableReference -> transaction.getRowsColumnRange(
+        Map<byte[], Iterator<Entry<Cell, byte[]>>> rawAtlasDbResults = run(
+                tableReference -> transaction.getRowsColumnRangeIterator(
                         tableReference,
                         rows.stream().map(Ints::toByteArray).collect(Collectors.toList()),
-                        AtlasDbUtils.toAtlasDbColumnRangeSelection(workloadColumnRangeSelection),
-                        100), // TODO (jkong): Should this be configurable?
+                        BatchColumnRangeSelection.create(
+                                AtlasDbUtils.toAtlasDbColumnRangeSelection(workloadColumnRangeSelection),
+                                100)), // TODO (jkong): Should this be configurable?
                 table);
 
         RowsColumnRangeReadTransactionAction transactionAction = ImmutableRowsColumnRangeReadTransactionAction.builder()
                 .table(table)
                 .rows(rows)
                 .batchColumnRangeSelection(workloadColumnRangeSelection)
                 .build();
-        return new RowColumnRangeIterator() {
-            @Override
-            public boolean hasNext() {
-                boolean hasNext = rawAtlasDbIterator.hasNext();
-                if (!hasNext) {
-                    witnessedTransactionActions.add(transactionAction.exhaustionWitness());
-                }
-                return rawAtlasDbIterator.hasNext();
-            }
-
-            @Override
-            public Entry<WorkloadCell, Integer> next() {
-                Entry<Cell, byte[]> atlasDbEntry = rawAtlasDbIterator.next();
-
-                WorkloadCell workloadCell = AtlasDbUtils.toWorkloadCell(atlasDbEntry.getKey());
-                int value = Ints.fromByteArray(atlasDbEntry.getValue()); // TODO (jkong): No!
-                witnessedTransactionActions.add(transactionAction.readWitness(workloadCell, value));
-                return Maps.immutableEntry(workloadCell, value);
-            }
-        };
+        return EntryStream.of(rawAtlasDbResults)
+                .mapKeys(Ints::fromByteArray)
+                .<RowColumnRangeIterator>mapToValue((row, iterator) -> new RowColumnRangeIterator() {
+                    @Override
+                    public boolean hasNext() {
+                        boolean hasNext = iterator.hasNext();
+                        if (!hasNext) {
+                            witnessedTransactionActions.add(transactionAction.exhaustionWitness(row));
+                        }
+                        return hasNext;
+                    }
+
+                    @Override
+                    public Entry<WorkloadCell, Integer> next() {
+                        Entry<Cell, byte[]> atlasDbEntry = iterator.next();
+
+                        WorkloadCell workloadCell = AtlasDbUtils.toWorkloadCell(atlasDbEntry.getKey());
+                        int value = Ints.fromByteArray(atlasDbEntry.getValue()); // TODO (jkong): oof
+                        witnessedTransactionActions.add(transactionAction.readWitness(row, workloadCell, value));
+                        return Maps.immutableEntry(workloadCell, value);
+                    }
+                })
+                .toMap();
     }
 
     @Overrideu}(j (884a6fcaf6347628be901481ce70dd1315a3e411jz patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj| modifiedjt KAju Kj~ KBj https://github.com/palantir/atlasdb/blob/5b2e7a27be9a20d44f2aab8affa0aba5c3623efb/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://github.com/palantir/atlasdb/raw/5b2e7a27be9a20d44f2aab8affa0aba5c3623efb/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=5b2e7a27be9a20d44f2aab8affa0aba5c3623efbj X  @@ -25,10 +25,14 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
+import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.transaction.ImmutableRowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeExhaustionTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
@@ -52,7 +56,7 @@ public void before() {
     }
 
     @Test
-    public void witnessRecordAllActions() {
+    public void witnessRecordsAllSingleCellActions() {
         assertThat(readWrite(transaction -> {
                     transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
                     transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
@@ -64,6 +68,58 @@ public void witnessRecordAllActions() {
                         WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
     }
 
+    @Test
+    public void witnessRecordsRowColumnRangeReads() {
+        Integer keyOne = WORKLOAD_CELL_ONE.key();
+        Integer keyTwo = WORKLOAD_CELL_TWO.key();
+        assertThat(readWrite(transaction -> {
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    Map<Integer, RowColumnRangeIterator> iteratorMap = transaction.getRowsColumnRange(
+                            TABLE_1,
+                            ImmutableList.of(keyOne, keyTwo),
+                            ImmutableWorkloadColumnRangeSelection.builder().build());
+
+                    RowColumnRangeIterator expectedEmpty = iteratorMap.get(keyOne);
+                    assertThat(expectedEmpty.hasNext()).isFalse();
+
+                    RowColumnRangeIterator expectedPresent = iteratorMap.get(keyTwo);
+                    while (expectedPresent.hasNext()) {
+                        expectedPresent.next();
+                    }
+                }))
+                .containsExactly(
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
+                        WitnessedRowsColumnRangeExhaustionTransactionAction.builder()
+                                .originalAction(ImmutableRowsColumnRangeReadTransactionAction.builder()
+                                        .table(TABLE_1)
+                                        .rows(ImmutableList.of(keyOne, keyTwo))
+                                        .batchColumnRangeSelection(ImmutableWorkloadColumnRangeSelection.builder()
+                                                .build())
+                                        .build())
+                                .specificRow(keyOne)
+                                .build(),
+                        WitnessedRowsColumnRangeReadTransactionAction.builder()
+                                .originalAction(ImmutableRowsColumnRangeReadTransactionAction.builder()
+                                        .table(TABLE_1)
+                                        .rows(ImmutableList.of(keyOne, keyTwo))
+                                        .batchColumnRangeSelection(ImmutableWorkloadColumnRangeSelection.builder()
+                                                .build())
+                                        .build())
+                                .cell(WORKLOAD_CELL_TWO)
+                                .specificRow(keyTwo)
+                                .value(VALUE_ONE)
+                                .build(),
+                        WitnessedRowsColumnRangeExhaustionTransactionAction.builder()
+                                .originalAction(ImmutableRowsColumnRangeReadTransactionAction.builder()
+                                        .table(TABLE_1)
+                                        .rows(ImmutableList.of(keyOne, keyTwo))
+                                        .batchColumnRangeSelection(ImmutableWorkloadColumnRangeSelection.builder()
+                                                .build())
+                                        .build())
+                                .specificRow(keyTwo)
+                                .build());
+    }
+
     @Test
     public void readHandlesEmptyAndPresentValue() {
         assertThat(readWrite(transaction -> {
@@ -93,6 +149,14 @@ public void deleteThrowsWhenTableDoesNotExist() {
         assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
     }
 
+    @Test
+    public void getRowsColumnRangeThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.getRowsColumnRange(
+                TABLE_1,
+                List.of(WORKLOAD_CELL_ONE.key()),
+                ImmutableWorkloadColumnRangeSelection.builder().build()));
+    }
+
     @Test
     public void readThrowsWhenInteractiveTransactionAlreadyWitnessed() {
         assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(ueu(40213f18b411d6255cb4f24c229ce03e40c8fb6c}(sha(40213f18b411d6255cb4f24c229ce03e40c8fb6cnode_idEC_kwDOAjP5fdoAKDQwMjEzZjE4YjQxMWQ2MjU1Y2I0ZjI0YzIyOWNlMDNlNDBjOGZiNmMcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-07-21T16:53:01Zu	committer}(j Tom Petraccaj tpetracca@palantir.comj 2023-07-21T18:48:55Zumessageaccept compile breakstree}(j (2ba92f688d4d8abfef1754eda3cc3b92dc71558curl`https://api.github.com/repos/palantir/atlasdb/git/trees/2ba92f688d4d8abfef1754eda3cc3b92dc71558cuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/40213f18b411d6255cb4f24c229ce03e40c8fb6c
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj ^https://api.github.com/repos/palantir/atlasdb/commits/40213f18b411d6255cb4f24c229ce03e40c8fb6chtml_urlShttps://github.com/palantir/atlasdb/commit/40213f18b411d6255cb4f24c229ce03e40c8fb6ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/40213f18b411d6255cb4f24c229ce03e40c8fb6c/commentsj }(login	tpetraccaidJ& j MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5j &https://api.github.com/users/tpetraccaj https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminuj }(j 	tpetraccaj J& j MDQ6VXNlcjI1NTQzMjg=j 3https://avatars.githubusercontent.com/u/2554328?v=4j h5j &https://api.github.com/users/tpetraccaj https://github.com/tpetraccaj 0https://api.github.com/users/tpetracca/followersj =https://api.github.com/users/tpetracca/following{/other_user}j 6https://api.github.com/users/tpetracca/gists{/gist_id}j =https://api.github.com/users/tpetracca/starred{/owner}{/repo}j 4https://api.github.com/users/tpetracca/subscriptionsj +https://api.github.com/users/tpetracca/orgsj ,https://api.github.com/users/tpetracca/reposj 7https://api.github.com/users/tpetracca/events{/privacy}j 6https://api.github.com/users/tpetracca/received_eventsj Userj uparents]}(j (e9cf9e508cc818462ef9ec2376dc7797082f39d3j ^https://api.github.com/repos/palantir/atlasdb/commits/e9cf9e508cc818462ef9ec2376dc7797082f39d3j Shttps://github.com/palantir/atlasdb/commit/e9cf9e508cc818462ef9ec2376dc7797082f39d3uastats}(totalK	additionsK	deletionsK ufiles]}(j (986a219b438966051179689628e73a0ae693cfbefilename.palantir/revapi.ymlstatusmodifiedj Kj K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/40213f18b411d6255cb4f24c229ce03e40c8fb6c/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/40213f18b411d6255cb4f24c229ce03e40c8fb6c/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=40213f18b411d6255cb4f24c229ce03e40c8fb6cpatchX
  @@ -152,3 +152,24 @@ acceptedBreaks:
     - code: "java.method.removed"
       old: "method com.codahale.metrics.Counter com.palantir.atlasdb.keyvalue.cassandra.ResultsExtractor<T>::getNotLatestVisibleValueCellFilterCounter(java.lang.Class<?>)"
       justification: "Reuse notLatestVisibleValueCellFilterCounter"
+  "0.900.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.method.numberOfParametersChanged"
+      old: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.spi.AtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<com.palantir.atlasdb.config.LeaderConfig>, java.util.Optional<java.lang.String>,\
+        \ java.util.function.LongSupplier, boolean)"
+      new: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.spi.AtlasDbFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ java.util.Optional<java.lang.String>, java.util.function.LongSupplier, boolean)"
+      justification: "all usage or implementations of the two broken methods are entirely\
+        \ at compile time of the consumer or within this repo itself"
+    - code: "java.method.numberOfParametersChanged"
+      old: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.timestamp.DbTimeLockFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ com.palantir.atlasdb.config.LeaderConfig, boolean)"
+      new: "method com.palantir.atlasdb.keyvalue.api.KeyValueService com.palantir.atlasdb.timestamp.DbTimeLockFactory::createRawKeyValueService(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
+        \ boolean)"
+      justification: "all usage or implementations of the two broken methods are entirely\
+        \ at compile time of the consumer or within this repo itself"uau(640795db7299c4a4b93e35e19dfad85f8962d284}(sha(640795db7299c4a4b93e35e19dfad85f8962d284node_idEC_kwDOAjP5fdoAKDY0MDc5NWRiNzI5OWM0YTRiOTNlMzVlMTlkZmFkODVmODk2MmQyODQcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-07T14:10:27Zu	committer}(j. Lucas Meirelesj0 meireles31@msn.comj2 2023-06-07T14:10:50ZumessageAdd test for NoTouch workflowtree}(j& (eacbd7b90f5801910d1982234e82871750e27512url`https://api.github.com/repos/palantir/atlasdb/git/trees/eacbd7b90f5801910d1982234e82871750e27512uj> bhttps://api.github.com/repos/palantir/atlasdb/git/commits/640795db7299c4a4b93e35e19dfad85f8962d284
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSAj+oACgkQJd22kJ7J
GizgyggA3QThEWOwEynNIL5f0W8g1ViR+kkbsXyTZeKi1FQbUGm+i2lRgqqeewMD
LLqDV+US0ZIUnMKZ3p/u6EWjWNXJBZyeEGQVb78K2n0bEW4WYn1VKT9O37NF49rW
Z72lsbxT5rxaPy3kMbQ0KS7xRQg9/55VABHmHRMNZFnETIY8vffwyYIaG1AcqzRw
Fs4qNI2v4SpRJ+vvPixGv7wKfiqXT8Rdsldav1Etu5am7kWELAHNQx/o16M6cBmU
BM94OWq3yZcNonqRlVNBJ/dr9tlpOaIRHwS/t6yDEfPg7OBfglVA92c2Ybtxdkt/
Mcj1DDGrUfGI9p4iKdujI6GrytnLDA==
=8xe3
-----END PGP SIGNATURE-----payloadtree eacbd7b90f5801910d1982234e82871750e27512
parent 12e2f970c7f155063a772b120ac1cc9368dab73b
author Lucas Meireles <meireles31@msn.com> 1686147027 +0100
committer Lucas Meireles <meireles31@msn.com> 1686147050 +0100

Add test for NoTouch workflow
uuj> ^https://api.github.com/repos/palantir/atlasdb/commits/640795db7299c4a4b93e35e19dfad85f8962d284html_urlShttps://github.com/palantir/atlasdb/commit/640795db7299c4a4b93e35e19dfad85f8962d284comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/640795db7299c4a4b93e35e19dfad85f8962d284/commentsj, }(loginLucasIMEidJg j( MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j> %https://api.github.com/users/LucasIMEjL https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj4 }(jQ LucasIMEjS Jg j( MDQ6VXNlcjY3ODczMTE=jU 3https://avatars.githubusercontent.com/u/6787311?v=4jW h5j> %https://api.github.com/users/LucasIMEjL https://github.com/LucasIMEjZ /https://api.github.com/users/LucasIME/followersj\ <https://api.github.com/users/LucasIME/following{/other_user}j^ 5https://api.github.com/users/LucasIME/gists{/gist_id}j` <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jb 3https://api.github.com/users/LucasIME/subscriptionsjd *https://api.github.com/users/LucasIME/orgsjf +https://api.github.com/users/LucasIME/reposjh 6https://api.github.com/users/LucasIME/events{/privacy}jj 5https://api.github.com/users/LucasIME/received_eventsjl Userjn uparents]}(j& (12e2f970c7f155063a772b120ac1cc9368dab73bj> ^https://api.github.com/repos/palantir/atlasdb/commits/12e2f970c7f155063a772b120ac1cc9368dab73bjL Shttps://github.com/palantir/atlasdb/commit/12e2f970c7f155063a772b120ac1cc9368dab73buastats}(totalK	additionsK	deletionsK ufiles]}(j& (10a3e5d811a546dc4a1a3094d4deb8b69227b494filenamexatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javastatusaddedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/640795db7299c4a4b93e35e19dfad85f8962d284/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/640795db7299c4a4b93e35e19dfad85f8962d284/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=640795db7299c4a4b93e35e19dfad85f8962d284patchX  @@ -0,0 +1,131 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Sets;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Collection;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class SingleBusyCellReadNoTouchWorkflowsTest {
+    private static final String TABLE_NAME = "busy.readnotouch.cell";
+    private static final int ITERATION_COUNT = 1_000;
+    private static final SingleBusyCellReadNoTouchWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow workflow = SingleBusyCellReadNoTouchWorkflows.create(
+            transactionStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)),
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)));
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void transactionsDoNotConflictExcessively() {
+        WorkflowHistory workflowHistory = workflow.run();
+        assertThat(workflowHistory.history()).hasSizeBetween(ITERATION_COUNT / 2, ITERATION_COUNT);
+    }
+
+    @Test
+    public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.table().equals(TABLE_NAME));
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.cell().equals(SingleBusyCellReadNoTouchWorkflows.BUSY_CELL));
+    }
+
+    @Test
+    public void targetCellIsReadModifiedAndDeleted() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+
+    @Test
+    public void readTransactionsDontDoWrites() {
+        WorkflowHistory workflowHistory = workflow.run();
+
+        Set<WitnessedTransaction> witnessedTransactionsWithReads = workflowHistory.history().stream()
+                .filter(this::transactionContainsReadAction)
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> witnessedTransactionsWithWritesOrDeletes = workflowHistory.history().stream()
+                .filter(this::transactionContainsWriteOrDeleteAction)
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> transactionsWithReadsAndWritesOrDeletes =
+                Sets.intersection(witnessedTransactionsWithReads, witnessedTransactionsWithWritesOrDeletes);
+
+        assertThat(transactionsWithReadsAndWritesOrDeletes).isEmpty();
+    }
+
+    private boolean transactionContainsReadAction(WitnessedTransaction txn) {
+        return txn.actions().stream().anyMatch(WitnessedReadTransactionAction.class::isInstance);
+    }
+
+    private boolean transactionContainsWriteOrDeleteAction(WitnessedTransaction txn) {
+        return txn.actions().stream()
+                .anyMatch(action -> action instanceof WitnessedWriteTransactionAction
+                        || action instanceof WitnessedDeleteTransactionAction);
+    }
+}uau(ff8c033668043ee0d3a39f533c26dc41c81111c5}(sha(ff8c033668043ee0d3a39f533c26dc41c81111c5node_idEC_kwDOAjP5fdoAKGZmOGMwMzM2NjgwNDNlZTBkM2EzOWY1MzNjMjZkYzQxYzgxMTExYzUcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-25T12:59:07Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-07-25T14:56:33ZumessageAddress commentstree}(j (c3e2dd54e856b709ac027fe9ac22a16187a06c3burl`https://api.github.com/repos/palantir/atlasdb/git/trees/c3e2dd54e856b709ac027fe9ac22a16187a06c3buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ff8c033668043ee0d3a39f533c26dc41c81111c5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS/4qEACgkQmF9s0kaF
Iw2OUggAtPkeQ1eNpv50GKJUeIt1partstTD4dGWtbYCLbdao05quqVyVNTN0yih
eE4R7MDmMPRqcqjM+8ItVDNyyufzRTrNPqPGDXTzzl0ddcTgMrQS3tZ1lsHXNo+S
1DZ8jVRg8DbyNJrHf6P/3e11+8jTuu7DKJHq9MielLGW917T26xhXV1RgaORNlMy
2dLOAy097pYT/YuE/3fZpXqjGFT7VRZgnZtiEoBsOtx6/xHcx/5XsUoOoP2qrt7/
HV+dkZBXqkdA4mSR5r4Jc99zbN75FBkKjSKKfS4zI1dvg6cIPtwh8/1wOT3spnZ1
O0Rr4kmvZdiw7iVYgVPDyUAlC0eNIg==
=GO0W
-----END PGP SIGNATURE-----payloadtree c3e2dd54e856b709ac027fe9ac22a16187a06c3b
parent 732ff2a31591036636e6106822451c0e67862913
author Tom Papke <tpapke@palantir.com> 1690289947 +0100
committer Tom Papke <tpapke@palantir.com> 1690296993 +0100

Address comments
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/ff8c033668043ee0d3a39f533c26dc41c81111c5html_urlShttps://github.com/palantir/atlasdb/commit/ff8c033668043ee0d3a39f533c26dc41c81111c5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ff8c033668043ee0d3a39f533c26dc41c81111c5/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jboj MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(j (732ff2a31591036636e6106822451c0e67862913j ^https://api.github.com/repos/palantir/atlasdb/commits/732ff2a31591036636e6106822451c0e67862913j Shttps://github.com/palantir/atlasdb/commit/732ff2a31591036636e6106822451c0e67862913uastats}(totalKb	additionsKC	deletionsKufiles](}(j (6122971682245326a39a96c27593d719d68c4979filename]atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/LocalWriteBuffer.javastatusmodifiedj Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ff8c033668043ee0d3a39f533c26dc41c81111c5/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBuffer.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ff8c033668043ee0d3a39f533c26dc41c81111c5/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBuffer.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBuffer.java?ref=ff8c033668043ee0d3a39f533c26dc41c81111c5patchX"  @@ -112,9 +112,9 @@ public Map<Cell, ChangeMetadata> getChangeMetadataForTable(TableReference tableR
         return Collections.unmodifiableMap(getChangeMetadataForTableInternal(tableRef));
     }
 
-    // No need for concurrency control on the cell level since it is only written to with a lock and
-    // read during commit, which is guaranteed to be single-threaded and exclusive with writing.
     private Map<Cell, ChangeMetadata> getChangeMetadataForTableInternal(TableReference tableRef) {
+        // No need for concurrency control on the cell level since it is only written to with a lock and
+        // read during commit, which is guaranteed to be single-threaded and exclusive with writing.
         return metadataByTable.computeIfAbsent(tableRef, unused -> new HashMap<>());
     }
 u}(j (c616204f399147e44f5bd251a9b26cf02c6154bcj `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj modifiedj K
j  Kj	 Kj
 https://github.com/palantir/atlasdb/blob/ff8c033668043ee0d3a39f533c26dc41c81111c5/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://github.com/palantir/atlasdb/raw/ff8c033668043ee0d3a39f533c26dc41c81111c5/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=ff8c033668043ee0d3a39f533c26dc41c81111c5j X
  @@ -2591,28 +2591,30 @@ private Long collectRowLocks(
             TableReference tableRef) {
         long lockCount = 0;
         Map<Cell, ChangeMetadata> changeMetadataForWrites = localWriteBuffer.getChangeMetadataForTable(tableRef);
-        byte[] lastRow = null;
-        byte[] lastRowWithMetadata = null;
-        LockDescriptor currentRowDescriptor = null;
+        Optional<byte[]> lastRow = Optional.empty();
+        Optional<byte[]> lastRowWithMetadata = Optional.empty();
+        Optional<LockDescriptor> currentRowDescriptor = Optional.empty();
         for (Cell cell : localWriteBuffer.getLocalWritesForTable(tableRef).keySet()) {
-            if (!isSameRow(lastRow, cell.getRowName())) {
+            if (lastRow.isEmpty() || !isSameRow(lastRow.get(), cell.getRowName())) {
                 // We are looking at the first cell of a new row
-                currentRowDescriptor = AtlasRowLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName());
-                lockDescriptorBuilder.add(currentRowDescriptor);
-                lastRow = cell.getRowName();
+                LockDescriptor rowLock = AtlasRowLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName());
+                lockDescriptorBuilder.add(rowLock);
+                currentRowDescriptor = Optional.of(rowLock);
+                lastRow = Optional.of(cell.getRowName());
                 lockCount++;
             }
             if (changeMetadataForWrites.containsKey(cell)) {
-                if (isSameRow(lastRowWithMetadata, cell.getRowName())) {
+                if (lastRowWithMetadata.isPresent() && isSameRow(lastRowWithMetadata.get(), cell.getRowName())) {
                     throw new SafeIllegalStateException(
                             "Two different cells in the same row have metadata and we create locks on row level.",
                             UnsafeArg.of("tableRef", tableRef),
                             UnsafeArg.of("rowName", cell.getRowName()),
                             UnsafeArg.of("newMetadata", changeMetadataForWrites.get(cell)));
                 }
-                // At this point, currentRowDescriptor will always point to the row of the current cell
-                lockDescriptorToChangeMetadataBuilder.put(currentRowDescriptor, changeMetadataForWrites.get(cell));
-                lastRowWithMetadata = cell.getRowName();
+                // At this point, currentRowDescriptor will always contain the row of the current cell
+                lockDescriptorToChangeMetadataBuilder.put(
+                        currentRowDescriptor.orElseThrow(), changeMetadataForWrites.get(cell));
+                lastRowWithMetadata = Optional.of(cell.getRowName());
             }
         }
         return lockCount;u}(j (cd4ccefc946a059f540c3689b81d78ec421e0313j eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj modifiedj K4j  Kj	 KFj
 https://github.com/palantir/atlasdb/blob/ff8c033668043ee0d3a39f533c26dc41c81111c5/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://github.com/palantir/atlasdb/raw/ff8c033668043ee0d3a39f533c26dc41c81111c5/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=ff8c033668043ee0d3a39f533c26dc41c81111c5j Xl  @@ -339,6 +339,8 @@ public void cleanup() {}
 
     private static final ChangeMetadata TEST_METADATA =
             ChangeMetadata.updated(PtBytes.toBytes("abc"), PtBytes.toBytes("def"));
+    private static final ChangeMetadata TEST_METADATA_2 = ChangeMetadata.deleted(PtBytes.toBytes("old"));
+    private static final ChangeMetadata TEST_METADATA_3 = ChangeMetadata.unchanged();
 
     @Override
     @Before
@@ -2561,29 +2563,33 @@ public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
     }
 
     @Test
-    public void metadataIsSentToTimeLock() {
+    public void metadataIsTransferredToCellLocks() {
         TimelockService timelockService = spy(txManager.getTimelockService());
         // Only locks cells
         Transaction txn = getSnapshotTransactionWith(
-                timelockService, ImmutableMap.of(TABLE, Optional.of(ConflictHandler.SERIALIZABLE_CELL)));
+                timelockService,
+                ImmutableMap.of(
+                        TABLE,
+                        Optional.of(ConflictHandler.SERIALIZABLE_CELL),
+                        TABLE2,
+                        Optional.of(ConflictHandler.SERIALIZABLE_CELL)));
 
         txn.putWithMetadata(TABLE, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, TEST_METADATA)));
-
+        txn.putWithMetadata(
+                TABLE, ImmutableMap.of(TEST_CELL_2, ValueAndChangeMetadata.of(TEST_VALUE, TEST_METADATA_2)));
+        txn.putWithMetadata(TABLE2, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, TEST_METADATA_3)));
+
+        LockDescriptor cellLock =
+                AtlasCellLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL.getRowName(), TEST_CELL.getColumnName());
+        LockDescriptor cellLock2 = AtlasCellLockDescriptor.of(
+                TABLE.getQualifiedName(), TEST_CELL_2.getRowName(), TEST_CELL_2.getColumnName());
+        LockDescriptor cellLock3 = AtlasCellLockDescriptor.of(
+                TABLE2.getQualifiedName(), TEST_CELL.getRowName(), TEST_CELL.getColumnName());
         verifyLockWasCalledWithMetadataWhenCommitting(
                 txn,
                 timelockService,
                 Optional.of(LockRequestMetadata.of(ImmutableMap.of(
-                        AtlasCellLockDescriptor.of(
-                                TABLE.getQualifiedName(), TEST_CELL.getRowName(), TEST_CELL.getColumnName()),
-                        TEST_METADATA))));
-    }
-
-    @Test
-    public void noMetadataResultsInEmptyOptional() {
-        TimelockService timelockService = spy(txManager.getTimelockService());
-        Transaction txn = getSnapshotTransactionWith(timelockService, ImmutableMap.of());
-        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
-        verifyLockWasCalledWithMetadataWhenCommitting(txn, timelockService, Optional.empty());
+                        cellLock, TEST_METADATA, cellLock2, TEST_METADATA_2, cellLock3, TEST_METADATA_3))));
     }
 
     @Test
@@ -2599,17 +2605,45 @@ public void metadataIsTransferredToRowLocks() {
                         Optional.of(ConflictHandler.SERIALIZABLE)));
 
         txn.putWithMetadata(TABLE, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, TEST_METADATA)));
-        txn.putWithMetadata(TABLE, ImmutableMap.of(TEST_CELL_2, ValueAndChangeMetadata.of(TEST_VALUE, TEST_METADATA)));
-        txn.putWithMetadata(TABLE2, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, TEST_METADATA)));
+        txn.putWithMetadata(
+                TABLE, ImmutableMap.of(TEST_CELL_2, ValueAndChangeMetadata.of(TEST_VALUE, TEST_METADATA_2)));
+        txn.putWithMetadata(TABLE2, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, TEST_METADATA_3)));
 
         LockDescriptor rowLock = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL.getRowName());
         LockDescriptor rowLock2 = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL_2.getRowName());
         LockDescriptor rowLock3 = AtlasRowLockDescriptor.of(TABLE2.getQualifiedName(), TEST_CELL.getRowName());
         verifyLockWasCalledWithMetadataWhenCommitting(
                 txn,
                 timelockService,
-                Optional.of(LockRequestMetadata.of(
-                        ImmutableMap.of(rowLock, TEST_METADATA, rowLock2, TEST_METADATA, rowLock3, TEST_METADATA))));
+                Optional.of(LockRequestMetadata.of(ImmutableMap.of(
+                        rowLock, TEST_METADATA, rowLock2, TEST_METADATA_2, rowLock3, TEST_METADATA_3))));
+    }
+
+    @Test
+    public void metadataCanBeTransferredToCellAndRowLocksSimultaneously() {
+        TimelockService timelockService = spy(txManager.getTimelockService());
+        // locks both rows and cells
+        Transaction txn = getSnapshotTransactionWith(
+                timelockService,
+                ImmutableMap.of(TABLE, Optional.of(ConflictHandler.SERIALIZABLE_LOCK_LEVEL_MIGRATION)));
+
+        txn.putWithMetadata(TABLE, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, TEST_METADATA)));
+
+        LockDescriptor rowLock = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL.getRowName());
+        LockDescriptor cellLock =
+                AtlasCellLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL.getRowName(), TEST_CELL.getColumnName());
+        verifyLockWasCalledWithMetadataWhenCommitting(
+                txn,
+                timelockService,
+                Optional.of(LockRequestMetadata.of(ImmutableMap.of(rowLock, TEST_METADATA, cellLock, TEST_METADATA))));
+    }
+
+    @Test
+    public void noMetadataResultsInEmptyOptional() {
+        TimelockService timelockService = spy(txManager.getTimelockService());
+        Transaction txn = getSnapshotTransactionWith(timelockService, ImmutableMap.of());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        verifyLockWasCalledWithMetadataWhenCommitting(txn, timelockService, Optional.empty());
     }
 
     @Testueu(8d5320db6a051494695af6323199a0d23761f5d5}(sha(8d5320db6a051494695af6323199a0d23761f5d5node_idEC_kwDOAjP5fdoAKDhkNTMyMGRiNmEwNTE0OTQ2OTVhZjYzMjMxOTlhMGQyMzc2MWY1ZDUcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-06T09:54:10Zu	committer}(j, Lucas Meirelesj. meireles31@msn.comj0 2023-07-06T09:54:10Zumessage=Extract validation to private method and unsafe log the cellstree}(j$ (165028e36b07bfef8ea30804414793e08a18675furl`https://api.github.com/repos/palantir/atlasdb/git/trees/165028e36b07bfef8ea30804414793e08a18675fuj< bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8d5320db6a051494695af6323199a0d23761f5d5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSmj0MACgkQJd22kJ7J
GiwHpAgAhlUqptqBjaNLjs2qAiHtiZUk72bGagru6+Rj4ySheLNcFHg+AMYRPXyE
Hokz6CKnLrdIXnUQNEV4FIza9wsawCPCrhUz/U+N3f9xfhMsJBALcLy7aMNJHW2e
dDoX3GQT+7U9pd1ILOKXi/qeNfk+E6M8ZgF04GnelZ7q3fdGV/hiYZGFcE3tumA5
LOsi3hgSBstPxL9Oy1Y83fz7wL+5U3L+9vm1mmQdnAJ2Yw2NWh1BXQtn3uWBF8Br
gQ347kvUfMycnlGk9RJTcYCk87oTSysUP0ssY0Jhj+Obf5TwM7OK7BLjZQA3CNMx
GYfWVRgFgMhqlIkQsTCBkNsMDrjuvA==
=//Ue
-----END PGP SIGNATURE-----payloadX  tree 165028e36b07bfef8ea30804414793e08a18675f
parent e3224bd8a5b09ea0db03b52054b0afc0f6cc8994
author Lucas Meireles <meireles31@msn.com> 1688637250 +0100
committer Lucas Meireles <meireles31@msn.com> 1688637250 +0100

Extract validation to private method and unsafe log the cells
uuj< ^https://api.github.com/repos/palantir/atlasdb/commits/8d5320db6a051494695af6323199a0d23761f5d5html_urlShttps://github.com/palantir/atlasdb/commit/8d5320db6a051494695af6323199a0d23761f5d5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8d5320db6a051494695af6323199a0d23761f5d5/commentsj* }(loginLucasIMEidJg j& MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j< %https://api.github.com/users/LucasIMEjJ https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj2 }(jO LucasIMEjQ Jg j& MDQ6VXNlcjY3ODczMTE=jS 3https://avatars.githubusercontent.com/u/6787311?v=4jU h5j< %https://api.github.com/users/LucasIMEjJ https://github.com/LucasIMEjX /https://api.github.com/users/LucasIME/followersjZ <https://api.github.com/users/LucasIME/following{/other_user}j\ 5https://api.github.com/users/LucasIME/gists{/gist_id}j^ <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j` 3https://api.github.com/users/LucasIME/subscriptionsjb *https://api.github.com/users/LucasIME/orgsjd +https://api.github.com/users/LucasIME/reposjf 6https://api.github.com/users/LucasIME/events{/privacy}jh 5https://api.github.com/users/LucasIME/received_eventsjj Userjl uparents]}(j$ (e3224bd8a5b09ea0db03b52054b0afc0f6cc8994j< ^https://api.github.com/repos/palantir/atlasdb/commits/e3224bd8a5b09ea0db03b52054b0afc0f6cc8994jJ Shttps://github.com/palantir/atlasdb/commit/e3224bd8a5b09ea0db03b52054b0afc0f6cc8994uastats}(totalK	additionsK	deletionsK	ufiles]}(j$ (f0ec340f641e31240b1060558ff4923200e2bcf2filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj Kj K	changesKblob_urlhttps://github.com/palantir/atlasdb/blob/8d5320db6a051494695af6323199a0d23761f5d5/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/8d5320db6a051494695af6323199a0d23761f5d5/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=8d5320db6a051494695af6323199a0d23761f5d5patchX	  @@ -998,15 +998,7 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
                                 SafeArg.of("durationMillis", getMillis));
                     }
 
-                    if (fromKeyValueService.size() > expectedNumberOfPresentCellsToFetch) {
-                        throw new SafeIllegalStateException(
-                                "KeyValueService returned more results than Get expected. This means there is a bug"
-                                        + "either in the SnapshotTransaction implementation or in how the client is "
-                                        + "using such method.",
-                                SafeArg.of("expectedNumberOfCells", expectedNumberOfPresentCellsToFetch),
-                                SafeArg.of("numberOfCellsRetrieved", fromKeyValueService.size()));
-                    }
-
+                    validateFetchedLessOrEqualToExpected(expectedNumberOfPresentCellsToFetch, fromKeyValueService);
                     boolean allPossibleCellsReadAndPresent =
                             fromKeyValueService.size() == expectedNumberOfPresentCellsToFetch;
                     validatePreCommitRequirementsOnReadIfNecessary(
@@ -1016,6 +1008,19 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
                 MoreExecutors.directExecutor());
     }
 
+    private static void validateFetchedLessOrEqualToExpected(
+            int expectedNumberOfPresentCellsToFetch, Map<Cell, byte[]> fromKeyValueService) {
+        if (fromKeyValueService.size() > expectedNumberOfPresentCellsToFetch) {
+            throw new SafeIllegalStateException(
+                    "KeyValueService returned more results than Get expected. This means there is a bug"
+                            + "either in the SnapshotTransaction implementation or in how the client is "
+                            + "using such method.",
+                    SafeArg.of("expectedNumberOfCells", expectedNumberOfPresentCellsToFetch),
+                    SafeArg.of("numberOfCellsRetrieved", fromKeyValueService.size()),
+                    UnsafeArg.of("retrievedCells", fromKeyValueService));
+        }
+    }
+
     @Override
     public Map<Cell, byte[]> getIgnoringLocalWrites(TableReference tableRef, Set<Cell> cells) {
         checkGetPreconditions(tableRef);uau(278aec0d4bc4d4719d642b8e75a63ac0cce6523c}(sha(278aec0d4bc4d4719d642b8e75a63ac0cce6523cnode_idEC_kwDOAjP5fdoAKDI3OGFlYzBkNGJjNGQ0NzE5ZDY0MmI4ZTc1YTYzYWMwY2NlNjUyM2Mcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-15T23:21:56Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-05-15T23:21:56Zumessage#Autorelease 0.854.0-rc12

[skip ci]tree}(j (1a8d23a305d93ecda5ff6e406b4451905587f3dcurl`https://api.github.com/repos/palantir/atlasdb/git/trees/1a8d23a305d93ecda5ff6e406b4451905587f3dcuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/278aec0d4bc4d4719d642b8e75a63ac0cce6523c
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRivpUACgkQhbrR8ip7mDAW7QEA+r+PfhyKOhUEZtcDjRJmqxIi
1JdLPukOSatOthhWoiUA/1/2Ok36drjC6hRB8jzFeNY6Ms7nwaYLv4u7jJ8Feoag
=ZiIJ
-----END PGP SIGNATURE-----
payloadX)  tree 1a8d23a305d93ecda5ff6e406b4451905587f3dc
parent 8a3a44d88919bd9e215d2ef23f46d53dca4e8e36
author aalouane <30903736+ergo14@users.noreply.github.com> 1684192916 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684192916 +0000

Autorelease 0.854.0-rc12

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/278aec0d4bc4d4719d642b8e75a63ac0cce6523chtml_urlShttps://github.com/palantir/atlasdb/commit/278aec0d4bc4d4719d642b8e75a63ac0cce6523ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/278aec0d4bc4d4719d642b8e75a63ac0cce6523c/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(j MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(j (8a3a44d88919bd9e215d2ef23f46d53dca4e8e36j ^https://api.github.com/repos/palantir/atlasdb/commits/8a3a44d88919bd9e215d2ef23f46d53dca4e8e36j Shttps://github.com/palantir/atlasdb/commit/8a3a44d88919bd9e215d2ef23f46d53dca4e8e36uastats}(totalK 	additionsK 	deletionsK ufiles]u(764d1e6f28dd53e42d95e542aff809adaf8110e8}(sha(764d1e6f28dd53e42d95e542aff809adaf8110e8node_idEC_kwDOAjP5fdoAKDc2NGQxZTZmMjhkZDUzZTQyZDk1ZTU0MmFmZjgwOWFkYWY4MTEwZTgcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-07T17:30:44Zu	committer}(j 
Sam Kramerj
 skramer@palantir.comj 2023-03-07T17:30:44Zumessagenitstree}(j (a4dc1117441ac975341937082a687ddb33aa2bddurl`https://api.github.com/repos/palantir/atlasdb/git/trees/a4dc1117441ac975341937082a687ddb33aa2bdduj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/764d1e6f28dd53e42d95e542aff809adaf8110e8     
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQHdMQACgkQmPPOpKR4
XS2GuwgAjjVgMj66y4HcV3BPXKYWeKr4jM6IDCx/+JEIIRQL17RNw+jmOo7Btv3F
3UZ9HRufm1cqYAcNtwRlHRktqxN3yLdiqR4yZLpksGa+EH7ip1gEBYzWBRziwwXL
CndJO4mx576q+Ixm3kx4b9+oxeDtKrFdI7TFWiOq0HCJm8pufevLnEkSMkOWg55U
SjnDNCG6VGJ91a/NLTNvJJhDrxr7vzn4wPbAXfuHFHBo/h6GkdiA6LY+zRrZQ8Ne
tw6761n1C7x5lqzegJAOldnvn3co8gTnSqUTioNzm7zt/aY9sU94FlIcLMRdaWD4
WsZQOaXjmhuThSLD3gAk9wKYU6W/xw==
=MO9E
-----END PGP SIGNATURE-----payloadtree a4dc1117441ac975341937082a687ddb33aa2bdd
parent 008b5da673b400f8afb22e8cfb3c6e5eaed744cf
author Sam Kramer <skramer@palantir.com> 1678210244 +0000
committer Sam Kramer <skramer@palantir.com> 1678210244 +0000

nits
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/764d1e6f28dd53e42d95e542aff809adaf8110e8html_urlShttps://github.com/palantir/atlasdb/commit/764d1e6f28dd53e42d95e542aff809adaf8110e8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/764d1e6f28dd53e42d95e542aff809adaf8110e8/commentsj	 }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj) https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j. 
Sam-Kramerj0 J^2_ j MDQ6VXNlcjYyMzg4MTQ=j2 3https://avatars.githubusercontent.com/u/6238814?v=4j4 h5j 'https://api.github.com/users/Sam-Kramerj) https://github.com/Sam-Kramerj7 1https://api.github.com/users/Sam-Kramer/followersj9 >https://api.github.com/users/Sam-Kramer/following{/other_user}j; 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j= >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j? 5https://api.github.com/users/Sam-Kramer/subscriptionsjA ,https://api.github.com/users/Sam-Kramer/orgsjC -https://api.github.com/users/Sam-Kramer/reposjE 8https://api.github.com/users/Sam-Kramer/events{/privacy}jG 7https://api.github.com/users/Sam-Kramer/received_eventsjI UserjK uparents]}(j (008b5da673b400f8afb22e8cfb3c6e5eaed744cfj ^https://api.github.com/repos/palantir/atlasdb/commits/008b5da673b400f8afb22e8cfb3c6e5eaed744cfj) Shttps://github.com/palantir/atlasdb/commit/008b5da673b400f8afb22e8cfb3c6e5eaed744cfuastats}(totalK	additionsK	deletionsKufiles]}(j (88f0f28dbbd95e312ac9e754ff091d54de2bee6dfilenamepatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetricsTest.javastatusmodifiedje Kjf KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/764d1e6f28dd53e42d95e542aff809adaf8110e8/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/764d1e6f28dd53e42d95e542aff809adaf8110e8/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.java?ref=764d1e6f28dd53e42d95e542aff809adaf8110e8patchXN  @@ -59,7 +59,7 @@ public void metricsAreProducedAndFiltered() {
     }
 
     @Test
-    public void recordPoolSizeCorrectlySetsSize() {
+    public void recordPoolSizeSetsSizeToLastReportedValue() {
         metrics.recordPoolSize(100);
         assertThat(metrics.getPoolSize()).isEqualTo(100);
         metrics.recordPoolSize(-13);uau(3e6b1b291c3d8d0baa75571bf9c7ca14dadd235b}(sha(3e6b1b291c3d8d0baa75571bf9c7ca14dadd235bnode_idEC_kwDOAjP5fdoAKDNlNmIxYjI5MWMzZDhkMGJhYTc1NTcxYmY5YzdjYTE0ZGFkZDIzNWIcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-03-23T16:35:45Zu	committer}(j GitHubj noreply@github.comj 2023-03-23T16:35:45Zumessage4Excavator:  Upgrade buildscript dependencies (#6464)tree}(jz (86e8a89e631bc05a09e7d69f39b58ad92620a36durl`https://api.github.com/repos/palantir/atlasdb/git/trees/86e8a89e631bc05a09e7d69f39b58ad92620a36duj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3e6b1b291c3d8d0baa75571bf9c7ca14dadd235b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkHH/hCRBK7hj4Ov3rIwAAI+IIABSm9dZwm6+PyXqZQCdCQD4K
7tyiuhK+Lj+Ffvd498nqErt+TQd70YL9BVYeLQBOd11ebnLVV303Is+Gyq45kp9K
jOnKYWDjS56nOP0LeqIz9Kg1lcFJkxBmZu//KiZCsOj1c/dugA/vNkpY8dNu+mU6
kHXtZVwpxhFptkCdKqjC0iTnjEamubKyQefA2Tr9VEtnuJL1pXlv/P5+/EZxl7QD
JkMoTw/XiSrlPikFYqQ+7BGJWTl8meCTTY6ezVUIEbeasn97KD9a2egusCPJtGMx
+M3qE9ZpT5ks5JPPCp57UDFf5wI4S2syQE/nHFrYiORyK1qc5FjY9B5EWPc7mSY=
=o1Fw
-----END PGP SIGNATURE-----
payloadX)  tree 86e8a89e631bc05a09e7d69f39b58ad92620a36d
parent 3c636eb2cebe955ba7ba84648167e76dce86e46c
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1679589345 +0000
committer GitHub <noreply@github.com> 1679589345 +0000

Excavator:  Upgrade buildscript dependencies (#6464)

 uuj ^https://api.github.com/repos/palantir/atlasdb/commits/3e6b1b291c3d8d0baa75571bf9c7ca14dadd235bhtml_urlShttps://github.com/palantir/atlasdb/commit/3e6b1b291c3d8d0baa75571bf9c7ca14dadd235bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3e6b1b291c3d8d0baa75571bf9c7ca14dadd235b/commentsj }(loginsvc-excavator-botidJj| MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j .https://api.github.com/users/svc-excavator-botj $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj }(j web-flowj J/j| MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(jz (3c636eb2cebe955ba7ba84648167e76dce86e46cj ^https://api.github.com/repos/palantir/atlasdb/commits/3c636eb2cebe955ba7ba84648167e76dce86e46cj Shttps://github.com/palantir/atlasdb/commit/3c636eb2cebe955ba7ba84648167e76dce86e46cuastats}(totalK	additionsK	deletionsKufiles]}(jz (fa798dbe22e4ced012363026977d38596db31ebafilenamebuild.gradlestatusmodifiedj Kj KchangesKblob_url^https://github.com/palantir/atlasdb/blob/3e6b1b291c3d8d0baa75571bf9c7ca14dadd235b/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/3e6b1b291c3d8d0baa75571bf9c7ca14dadd235b/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=3e6b1b291c3d8d0baa75571bf9c7ca14dadd235bpatchX  @@ -8,17 +8,17 @@ buildscript {
 
     dependencies {
         classpath 'com.netflix.nebula:gradle-info-plugin:12.0.1'
-        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.0.0'
+        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.2.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.34.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.37.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
-        classpath 'com.palantir.gradle.gitversion:gradle-git-version:1.0.0'
+        classpath 'com.palantir.gradle.gitversion:gradle-git-version:2.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.31.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'
-        classpath 'com.palantir.metricschema:gradle-metric-schema:0.19.0'
+        classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
         classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'uau(3b3d24bf967aeef4c6ed4b9d15841f137ae861e3}(sha(3b3d24bf967aeef4c6ed4b9d15841f137ae861e3node_idEC_kwDOAjP5fdoAKDNiM2QyNGJmOTY3YWVlZjRjNmVkNGI5ZDE1ODQxZjEzN2FlODYxZTMcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-08-07T10:50:56Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-08-07T10:50:56ZumessagetFix putWithMetadata() not calling putWithMetadataInternal()
Rename lockDescriptorBuilder to lockDescriptorSetBuildertree}(j (462edba2084e5a82daa51ac0fd3fa101a89456fburl`https://api.github.com/repos/palantir/atlasdb/git/trees/462edba2084e5a82daa51ac0fd3fa101a89456fbuj	 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3b3d24bf967aeef4c6ed4b9d15841f137ae861e3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTQzJAACgkQmF9s0kaF
Iw1ZgAf9ERzT8rOtbZZ0GJGkQ5MPT8R91lGTZGOdtJp8WcW4R/siQ8pE7a5N0Gll
lNXwdDthKyMCo4cJ7UZSyyVtL5pcHyXRAzE+NcIbZ7fRsuQfkHt/0cJ5VjpMMFmH
IsitguwyyhMiCkHeVkDwpykwndX0/MOYML2i8BkRiRm+BpQxxI4OwwWgFvypoEGK
UuurG8SAV9gEGNjwfEnjySgtccKtGb9YVPJtKRW0WySUtCESAQj5jRaL4h6/CfgG
9c8CdZgj7jQgoqu5CxJwsjvaTa76oQyzO0fn/Ek5HurS5aybFzhmfRwu5Q5YS6WS
NLL1g0k12Pz1nyz+R4zdEHIicMk5XA==
=6nbE
-----END PGP SIGNATURE-----payloadXG  tree 462edba2084e5a82daa51ac0fd3fa101a89456fb
parent 3ecfe44855354ffe5541cd035588deb487ae3277
author Tom Papke <tpapke@palantir.com> 1691405456 +0100
committer Tom Papke <tpapke@palantir.com> 1691405456 +0100

Fix putWithMetadata() not calling putWithMetadataInternal()
Rename lockDescriptorBuilder to lockDescriptorSetBuilder
uuj	 ^https://api.github.com/repos/palantir/atlasdb/commits/3b3d24bf967aeef4c6ed4b9d15841f137ae861e3html_urlShttps://github.com/palantir/atlasdb/commit/3b3d24bf967aeef4c6ed4b9d15841f137ae861e3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3b3d24bf967aeef4c6ed4b9d15841f137ae861e3/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j	 &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jboj MDQ6VXNlcjQzNjc1NDkwj  4https://avatars.githubusercontent.com/u/43675490?v=4j" h5j	 &https://api.github.com/users/Toemmschej https://github.com/Toemmschej% 0https://api.github.com/users/Toemmsche/followersj' =https://api.github.com/users/Toemmsche/following{/other_user}j) 6https://api.github.com/users/Toemmsche/gists{/gist_id}j+ =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j- 4https://api.github.com/users/Toemmsche/subscriptionsj/ +https://api.github.com/users/Toemmsche/orgsj1 ,https://api.github.com/users/Toemmsche/reposj3 7https://api.github.com/users/Toemmsche/events{/privacy}j5 6https://api.github.com/users/Toemmsche/received_eventsj7 Userj9 uparents]}(j (3ecfe44855354ffe5541cd035588deb487ae3277j	 ^https://api.github.com/repos/palantir/atlasdb/commits/3ecfe44855354ffe5541cd035588deb487ae3277j Shttps://github.com/palantir/atlasdb/commit/3ecfe44855354ffe5541cd035588deb487ae3277uastats}(totalK	additionsK	deletionsKufiles](}(j (b0456a0885cea14c59a8992c6bfc4a60d3d3984afilenameOatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/Transaction.javastatusmodifiedjS KjT KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/3b3d24bf967aeef4c6ed4b9d15841f137ae861e3/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/3b3d24bf967aeef4c6ed4b9d15841f137ae861e3/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.java?ref=3b3d24bf967aeef4c6ed4b9d15841f137ae861e3patchX  @@ -273,7 +273,7 @@ Stream<BatchingVisitable<RowResult<byte[]>>> getRangesLazy(
     void put(TableReference tableRef, Map<Cell, byte[]> values);
 
     /**
-     * Behaves like {@link Transaction#put}, but additionally store {@link ChangeMetadata} for cells. This metadata is
+     * Behaves like {@link Transaction#put}, but additionally stores {@link ChangeMetadata} for cells. This metadata is
      * forwarded to TimeLock when acquiring locks at the beginning of the commit protocol.
      * If two cells in the same row have metadata and the {@link ConflictHandler} for the table acquires row locks,
      * {@link Transaction#commit} will fail.u}(j (3777184a1b06e076cef5914f8fa08824cd5365c7jY `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj[ modifiedjS KjT K
j] Kj^ https://github.com/palantir/atlasdb/blob/3b3d24bf967aeef4c6ed4b9d15841f137ae861e3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj` https://github.com/palantir/atlasdb/raw/3b3d24bf967aeef4c6ed4b9d15841f137ae861e3/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajb https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=3b3d24bf967aeef4c6ed4b9d15841f137ae861e3jd X  @@ -1789,7 +1789,7 @@ public void put(TableReference tableRef, Map<Cell, byte[]> values) {
 
     @Override
     public void putWithMetadata(TableReference tableRef, Map<Cell, ValueAndChangeMetadata> valuesAndMetadata) {
-        writeToLocalBuffer(
+        putWithMetadataInternal(
                 tableRef,
                 Maps.transformValues(valuesAndMetadata, ValueAndChangeMetadata::value),
                 Maps.transformValues(valuesAndMetadata, ValueAndChangeMetadata::metadata));
@@ -2530,7 +2530,7 @@ private void logCommitLockTenureExceeded(
     }
 
     protected LocksAndMetadata getLocksAndMetadataForWrites() {
-        ImmutableSet.Builder<LockDescriptor> lockDescriptorBuilder = ImmutableSet.builder();
+        ImmutableSet.Builder<LockDescriptor> lockDescriptorSetBuilder = ImmutableSet.builder();
         ImmutableMap.Builder<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadataBuilder =
                 ImmutableMap.builder();
         long cellLockCount = 0L;
@@ -2539,21 +2539,22 @@ protected LocksAndMetadata getLocksAndMetadataForWrites() {
             ConflictHandler conflictHandler = getConflictHandlerForTable(tableRef);
             if (conflictHandler.lockCellsForConflicts()) {
                 cellLockCount +=
-                        collectCellLocks(lockDescriptorBuilder, lockDescriptorToChangeMetadataBuilder, tableRef);
+                        collectCellLocks(lockDescriptorSetBuilder, lockDescriptorToChangeMetadataBuilder, tableRef);
             }
             if (conflictHandler.lockRowsForConflicts()) {
-                rowLockCount += collectRowLocks(lockDescriptorBuilder, lockDescriptorToChangeMetadataBuilder, tableRef);
+                rowLockCount +=
+                        collectRowLocks(lockDescriptorSetBuilder, lockDescriptorToChangeMetadataBuilder, tableRef);
             }
         }
-        lockDescriptorBuilder.add(AtlasRowLockDescriptor.of(
+        lockDescriptorSetBuilder.add(AtlasRowLockDescriptor.of(
                 TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
                 TransactionConstants.getValueForTimestamp(getStartTimestamp())));
         cellCommitLocksRequested = cellLockCount;
         rowCommitLocksRequested = rowLockCount + 1;
         Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata =
                 lockDescriptorToChangeMetadataBuilder.buildOrThrow();
         return LocksAndMetadata.of(
-                lockDescriptorBuilder.build(),
+                lockDescriptorSetBuilder.build(),
                 // For now, lock request metadata only consists of change metadata. If it is absent, we can save
                 // computation by not doing an index encoding
                 lockDescriptorToChangeMetadata.isEmpty()
@@ -2565,15 +2566,15 @@ protected LocksAndMetadata getLocksAndMetadataForWrites() {
      * Returns the number of lock descriptors that were added.
      */
     private Long collectCellLocks(
-            ImmutableSet.Builder<LockDescriptor> lockDescriptorBuilder,
+            ImmutableSet.Builder<LockDescriptor> lockDescriptorSetBuilder,
             ImmutableMap.Builder<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadataBuilder,
             TableReference tableRef) {
         long lockCount = 0;
         Map<Cell, ChangeMetadata> changeMetadataForWrites = localWriteBuffer.getChangeMetadataForTable(tableRef);
         for (Cell cell : localWriteBuffer.getLocalWritesForTable(tableRef).keySet()) {
             LockDescriptor lockDescriptor =
                     AtlasCellLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName());
-            lockDescriptorBuilder.add(lockDescriptor);
+            lockDescriptorSetBuilder.add(lockDescriptor);
             lockCount++;
             if (changeMetadataForWrites.containsKey(cell)) {
                 lockDescriptorToChangeMetadataBuilder.put(lockDescriptor, changeMetadataForWrites.get(cell));
@@ -2586,7 +2587,7 @@ private Long collectCellLocks(
      * Returns the number of lock descriptors that were added.
      */
     private Long collectRowLocks(
-            ImmutableSet.Builder<LockDescriptor> lockDescriptorBuilder,
+            ImmutableSet.Builder<LockDescriptor> lockDescriptorSetBuilder,
             ImmutableMap.Builder<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadataBuilder,
             TableReference tableRef) {
         long lockCount = 0;
@@ -2598,7 +2599,7 @@ private Long collectRowLocks(
             if (lastRow.isEmpty() || !isSameRow(lastRow.get(), cell.getRowName())) {
                 // We are looking at the first cell of a new row
                 LockDescriptor rowLock = AtlasRowLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName());
-                lockDescriptorBuilder.add(rowLock);
+                lockDescriptorSetBuilder.add(rowLock);
                 currentRowDescriptor = Optional.of(rowLock);
                 lastRow = Optional.of(cell.getRowName());
                 lockCount++;u}(j (6ce2721a7bfdd7d4ce950875809492ee6d32d22cjY eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj[ modifiedjS KjT Kj] Kj^ https://github.com/palantir/atlasdb/blob/3b3d24bf967aeef4c6ed4b9d15841f137ae861e3/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj` https://github.com/palantir/atlasdb/raw/3b3d24bf967aeef4c6ed4b9d15841f137ae861e3/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajb https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=3b3d24bf967aeef4c6ed4b9d15841f137ae861e3jd Xm  @@ -2649,9 +2649,8 @@ public void noMetadataResultsInEmptyOptional() {
     @Test
     public void commitFailsIfMultipleCellsInSameRowHaveMetadataAndUsingRowLocks() {
         overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE);
-        byte[] row = PtBytes.toBytes("same-row");
-        Cell cell1 = Cell.create(row, PtBytes.toBytes("col1"));
-        Cell cell2 = Cell.create(row, PtBytes.toBytes("col2"));
+        Cell cell1 = Cell.create(ROW_BAR, COL_A);
+        Cell cell2 = Cell.create(ROW_BAR, COL_B);
         Transaction txn = txManager.createNewTransaction();
 
         txn.putWithMetadata(ueu(6ea0bbaf45f90805c37c71061f5b39a4d813bea8}(sha(6ea0bbaf45f90805c37c71061f5b39a4d813bea8node_idEC_kwDOAjP5fdoAKDZlYTBiYmFmNDVmOTA4MDVjMzdjNzEwNjFmNWIzOWE0ZDgxM2JlYTgcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-12T15:36:01Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-06-12T15:36:01Zumessage!Move back Collection -> Iterablestree}(jx (ef3c9e4e66dadf6a52bb8c017d453dfeade033f3url`https://api.github.com/repos/palantir/atlasdb/git/trees/ef3c9e4e66dadf6a52bb8c017d453dfeade033f3uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6ea0bbaf45f90805c37c71061f5b39a4d813bea8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSHO2EACgkQJd22kJ7J
Giwc8Qf+NzSajKCKvhPKlt2/6k3hzWbDK9nc/+tQXMhKwqP4b1uAy+UG3UbAfdqI
BW6ovFMmSPYSvdBH/1NrPZqUVWoOAKmMaH5dwJrHWjGoJZQzVlynwBWzJOo/jKHx
WGHDXVHHLJQWwErsenYts9HfkjvztPSXdkGJerWbL7iPH1YLLnepODNYKfMlfbKQ
gKgWaoruTM1Rp3gvJ6zSWHoTFpC3zXqi7XqFR5gjVB4JilR0PlwW1w8eFzlPMy1o
orcYrL5d0gpBBqi2icWwM/KCoC0hWHjUNNfk0iio31BHUfVgtNbBB8tJs7v8ttHn
jOChJ10UIcwFG1CUe7fhb68qvcqgZg==
=Nr9J
-----END PGP SIGNATURE-----payloadtree ef3c9e4e66dadf6a52bb8c017d453dfeade033f3
parent 099abb342357f25341aec87c54c4c656e95a7c0e
author Lucas Meireles <meireles31@msn.com> 1686584161 +0100
committer Lucas Meireles <meireles31@msn.com> 1686584161 +0100

Move back Collection -> Iterables
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/6ea0bbaf45f90805c37c71061f5b39a4d813bea8html_urlShttps://github.com/palantir/atlasdb/commit/6ea0bbaf45f90805c37c71061f5b39a4d813bea8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6ea0bbaf45f90805c37c71061f5b39a4d813bea8/commentsj~ }(loginLucasIMEidJg jz MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j LucasIMEj Jg jz MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsj Userj uparents]}(jx (099abb342357f25341aec87c54c4c656e95a7c0ej ^https://api.github.com/repos/palantir/atlasdb/commits/099abb342357f25341aec87c54c4c656e95a7c0ej Shttps://github.com/palantir/atlasdb/commit/099abb342357f25341aec87c54c4c656e95a7c0euastats}(totalK	additionsK	deletionsK
ufiles](}(jx (d712c836408b8b983fda0502a1815c19270ae9e1filename.palantir/revapi.ymlstatusmodifiedj K j K
changesK
blob_urlhhttps://github.com/palantir/atlasdb/blob/6ea0bbaf45f90805c37c71061f5b39a4d813bea8/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/6ea0bbaf45f90805c37c71061f5b39a4d813bea8/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=6ea0bbaf45f90805c37c71061f5b39a4d813bea8patchXU  @@ -121,13 +121,3 @@ acceptedBreaks:
       old: "method java.util.concurrent.ExecutorService com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService::createThreadPoolWihtoutSpans(java.lang.String,\
         \ int, int) @ com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl"
       justification: "Protected method"
-  "0.871.0":
-    com.palantir.atlasdb:atlasdb-api:
-    - code: "java.method.parameterTypeChanged"
-      old: "parameter java.util.SortedMap<byte[], com.palantir.atlasdb.keyvalue.api.RowResult<byte[]>>\
-        \ com.palantir.atlasdb.transaction.api.ConstraintCheckingTransaction::getRowsIgnoringLocalWrites(com.palantir.atlasdb.keyvalue.api.TableReference,\
-        \ ===java.lang.Iterable<byte[]>===)"
-      new: "parameter java.util.SortedMap<byte[], com.palantir.atlasdb.keyvalue.api.RowResult<byte[]>>\
-        \ com.palantir.atlasdb.transaction.api.ConstraintCheckingTransaction::getRowsIgnoringLocalWrites(com.palantir.atlasdb.keyvalue.api.TableReference,\
-        \ ===java.util.Collection<byte[]>===)"
-      justification: "Method is only used internally"u}(jx (385539cdb9094b31469f8f9f73529e8579291f20j aatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/ConstraintCheckingTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/6ea0bbaf45f90805c37c71061f5b39a4d813bea8/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FConstraintCheckingTransaction.javaj https://github.com/palantir/atlasdb/raw/6ea0bbaf45f90805c37c71061f5b39a4d813bea8/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FConstraintCheckingTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FConstraintCheckingTransaction.java?ref=6ea0bbaf45f90805c37c71061f5b39a4d813bea8j X  @@ -18,7 +18,6 @@
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
-import java.util.Collection;
 import java.util.Map;
 import java.util.Set;
 import java.util.SortedMap;
@@ -32,5 +31,5 @@ public interface ConstraintCheckingTransaction extends Transaction {
     /**
      * Returns the row result values in the key-value service, ignoring the cache of local writes.
      */
-    SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(TableReference tableRef, Collection<byte[]> rows);
+    SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(TableReference tableRef, Iterable<byte[]> rows);
 }u}(jx (529dc0b102733af72945b71318c3d732e0b52939j `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/6ea0bbaf45f90805c37c71061f5b39a4d813bea8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://github.com/palantir/atlasdb/raw/6ea0bbaf45f90805c37c71061f5b39a4d813bea8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=6ea0bbaf45f90805c37c71061f5b39a4d813bea8j X  @@ -825,7 +825,7 @@ public Map.Entry<Cell, Value> next() {
 
     @Override
     public SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(
-            TableReference tableRef, Collection<byte[]> rows) {
+            TableReference tableRef, Iterable<byte[]> rows) {
         checkGetPreconditions(tableRef);
         if (Iterables.isEmpty(rows)) {
             return AbstractTransaction.EMPTY_SORTED_ROWS;ueu(b4e1dbd89feb90598775cb8d586e0ad3c5c1efdc}(sha(b4e1dbd89feb90598775cb8d586e0ad3c5c1efdcnode_idEC_kwDOAjP5fdoAKGI0ZTFkYmQ4OWZlYjkwNTk4Nzc1Y2I4ZDU4NmUwYWQzYzVjMWVmZGMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-23T19:15:46Zu	committer}(j 
Sam Kramerj	 skramer@palantir.comj 2023-05-23T19:15:46Zumessagedoh fix scripttree}(j (43542df37e1228217406d59cf61f80691395e62curl`https://api.github.com/repos/palantir/atlasdb/git/trees/43542df37e1228217406d59cf61f80691395e62cuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b4e1dbd89feb90598775cb8d586e0ad3c5c1efdc
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRtEOIACgkQmPPOpKR4
XS00vQf8DRvMcaW2QMrrcS0q440WdGLKKr6iyZKptl3VS4D0p80mlo4K5U+xGKk7
MMMzp5lu8IHTwlEvUWeEw79CN0k0VsO7NU7HYOXLSdbEKtm3rHQU0y06CjM1Z2jp
agco2SNiFPpEIzqoxKByttKxtkCfkV49A4IE/vch3/wBOYEEkujfopKv6WmpvNNS
GOF393plNNB3Mu6P0kMQQ5UIxvnNwgyXXr3o3vxV9Cb+Q0bIcPsLznoeNiJouV6o
RSCR0K55Oq9Zqnpp6q1SFy/vJFWnYNUAVR7s8CGrnb9ZyumhivUwCGHCQKNo0Trx
gqsT5RpdY6aKjqM4PRcBlzd3hmMQ5Q==
=1we+
-----END PGP SIGNATURE-----payloadtree 43542df37e1228217406d59cf61f80691395e62c
parent 5fe5be3cd88be2d7d115342a0725f19fc097b44d
author Sam Kramer <skramer@palantir.com> 1684869346 +0100
committer Sam Kramer <skramer@palantir.com> 1684869346 +0100

doh fix script
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/b4e1dbd89feb90598775cb8d586e0ad3c5c1efdchtml_urlShttps://github.com/palantir/atlasdb/commit/b4e1dbd89feb90598775cb8d586e0ad3c5c1efdccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b4e1dbd89feb90598775cb8d586e0ad3c5c1efdc/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj% https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj
 }(j* 
Sam-Kramerj, J^2_ j MDQ6VXNlcjYyMzg4MTQ=j. 3https://avatars.githubusercontent.com/u/6238814?v=4j0 h5j 'https://api.github.com/users/Sam-Kramerj% https://github.com/Sam-Kramerj3 1https://api.github.com/users/Sam-Kramer/followersj5 >https://api.github.com/users/Sam-Kramer/following{/other_user}j7 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j9 >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j; 5https://api.github.com/users/Sam-Kramer/subscriptionsj= ,https://api.github.com/users/Sam-Kramer/orgsj? -https://api.github.com/users/Sam-Kramer/reposjA 8https://api.github.com/users/Sam-Kramer/events{/privacy}jC 7https://api.github.com/users/Sam-Kramer/received_eventsjE UserjG uparents]}(j (5fe5be3cd88be2d7d115342a0725f19fc097b44dj ^https://api.github.com/repos/palantir/atlasdb/commits/5fe5be3cd88be2d7d115342a0725f19fc097b44dj% Shttps://github.com/palantir/atlasdb/commit/5fe5be3cd88be2d7d115342a0725f19fc097b44duastats}(totalK	additionsK	deletionsKufiles]}(j (f01b996082699cd861898185f0bd3e153c505101filename*scripts/circle-ci/publish-to-antithesis.shstatusmodifiedja Kjb KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b4e1dbd89feb90598775cb8d586e0ad3c5c1efdc/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shraw_urlhttps://github.com/palantir/atlasdb/raw/b4e1dbd89feb90598775cb8d586e0ad3c5c1efdc/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=b4e1dbd89feb90598775cb8d586e0ad3c5c1efdcpatchX  @@ -30,15 +30,16 @@ docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
 docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc5 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
 docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
 
-docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${$1}
-docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${$1}
+docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}
+docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}
 
-docker tag palantirtechnologies/atlasdb-workload-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${$1}
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${$1}
+docker tag palantirtechnologies/atlasdb-workload-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${1}
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${1}
 
-docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${$1}
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${$1}
+docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${1}
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${1}
 
 if [[ "$1" = "config-check" ]]; then
-  curl -u "palantir:${ANTITHESIS_WEBHOOK_PASSWORD}" -X POST https://palantir.antithesis.com/api/v1/launch_experiment/palantir__configcheck__minimal
+  echo "Triggering simulation on Antithesis via the config-check webhook."
+  curl -v -u "palantir:${ANTITHESIS_WEBHOOK_PASSWORD}" -X POST https://palantir.antithesis.com/api/v1/launch_experiment/palantir__configcheck__minimal
 fi
\ No newline at end of fileuau(737b525a3dbc6cecd1acbe4987020ef77230b6f8}(sha(737b525a3dbc6cecd1acbe4987020ef77230b6f8node_idEC_kwDOAjP5fdoAKDczN2I1MjVhM2RiYzZjZWNkMWFjYmU0OTg3MDIwZWY3NzIzMGI2Zjgcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-21T11:45:31Zu	committer}(j~ Lucas Meirelesj meireles31@msn.comj 2023-06-21T11:45:31ZumessageIMerge branch 'develop' into lmeireles/dont-check-locks-on-non-empty-readstree}(jv (c5e1c27adaa27e777899d4ba15e4ca568d266beburl`https://api.github.com/repos/palantir/atlasdb/git/trees/c5e1c27adaa27e777899d4ba15e4ca568d266bebuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/737b525a3dbc6cecd1acbe4987020ef77230b6f8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSS4t4ACgkQJd22kJ7J
Gizmqwf9G3fvWTeuFZwvtBKExYKf8JF078bWetqhNydo3/YET/qVo1EKQ0Q+x852
SlWccTR+C9+Ore6bd4FgFOjWxjj0FSC6ns52IWsMMzkTYaCNureETDnCA6se0aLQ
ngz+P09Dg5+mdWV54wTaIRt0CxJ5YUdqDS3Y/mrHfF4Edc+HBaxZS+nnrw85Qe4q
1/VL+yyHwWkLyELgQB0uyc2N/kbtGqvd3a6sGZCZw0BzQPacW9Ujy0duPE+ScJgk
a5MCIRcG8eURiIDLyzMSE0FBT0oTwX8SKtXvv0YnAwaPcg0HLaTmQjQ1dzKaKCFM
O1n4N3Pn1UOHjwnUAYM/ldnmZGrIXQ==
=e/5t
-----END PGP SIGNATURE-----payloadXT  tree c5e1c27adaa27e777899d4ba15e4ca568d266beb
parent 36de248855643b2d40bd3c9dd1d2cdebad8a79e7
parent 4042f72d514d46a48a5326a7c240b54e8eb11149
author Lucas Meireles <meireles31@msn.com> 1687347931 +0100
committer Lucas Meireles <meireles31@msn.com> 1687347931 +0100

Merge branch 'develop' into lmeireles/dont-check-locks-on-non-empty-reads
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/737b525a3dbc6cecd1acbe4987020ef77230b6f8html_urlShttps://github.com/palantir/atlasdb/commit/737b525a3dbc6cecd1acbe4987020ef77230b6f8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/737b525a3dbc6cecd1acbe4987020ef77230b6f8/commentsj| }(loginLucasIMEidJg jx MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j LucasIMEj Jg jx MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsj Userj uparents](}(jv (36de248855643b2d40bd3c9dd1d2cdebad8a79e7j ^https://api.github.com/repos/palantir/atlasdb/commits/36de248855643b2d40bd3c9dd1d2cdebad8a79e7j Shttps://github.com/palantir/atlasdb/commit/36de248855643b2d40bd3c9dd1d2cdebad8a79e7u}(jv (4042f72d514d46a48a5326a7c240b54e8eb11149j ^https://api.github.com/repos/palantir/atlasdb/commits/4042f72d514d46a48a5326a7c240b54e8eb11149j Shttps://github.com/palantir/atlasdb/commit/4042f72d514d46a48a5326a7c240b54e8eb11149uestats}(totalM\	additionsM	deletionsKufiles](}(jv (783bc3b5467ffef2ad1e64d4a8aefd0da4ee44ddfilenamejatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/TransactionCommitLockInfo.javastatusaddedj K%j K changesK%blob_urlhttps://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.javaraw_urlhttps://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8patchXg  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api.expectations;
+
+import org.immutables.value.Value;
+
+/**
+ * Data about the amount of commit locks requested by a transaction.
+ */
+@Value.Immutable
+public interface TransactionCommitLockInfo {
+
+    /**
+     * The number of cell-level locks requested as part of the commit protocol (excluding any user-defined locking).
+     */
+    long cellCommitLocksRequested();
+
+    /**
+     * The number of row-level locks requested as part of the commit protocol (excluding any user-defined locking).
+     * For write transactions, this includes the single row lock that is requested for the transaction table itself.
+     */
+    long rowCommitLocksRequested();
+}u}(jv (502ae947a588e3d9dcebd649967cafd91a08374bj datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppTokenTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -46,9 +46,9 @@ public static Collection<Object[]> data() {
     @Test
     public void inputsAreValidBase16Strings() {
         assertThat(input).matches("^[0-9a-fA-F]*$");
-        assertThat(input.length() % 2 == 0)
+        assertThat(input.length() % 2)
                 .as("input must be even length to base16 decode")
-                .isTrue();
+                .isEqualTo(0);
         assertThat(CassandraHex.hexToBytes(input)).hasSize(input.length() / 2);
     }
 u}(jv (a609938800595c6a4ed1b28154a58151f7d04af3j datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ExpectationsAwareTransaction.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 /**
@@ -32,6 +33,11 @@ public interface ExpectationsAwareTransaction extends Transaction {
      */
     TransactionReadInfo getReadInfo();
 
+    /**
+     * Returns transaction commit lock information.
+     */
+    TransactionCommitLockInfo getCommitLockInfo();
+
     /**
      * Update TEX data collection metrics for (post-mortem) transactions.
      * Expected usage is that this method is called once after the transaction has been committed or aborted.u}(jv (6795ea4a937624401807d2b3742ab596ad23984bj natlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingExpectationsAwareTransaction.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.transaction.impl;
 
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 public abstract class ForwardingExpectationsAwareTransaction extends ForwardingTransaction
@@ -34,6 +35,11 @@ public TransactionReadInfo getReadInfo() {
         return delegate().getReadInfo();
     }
 
+    @Override
+    public TransactionCommitLockInfo getCommitLockInfo() {
+        return delegate().getCommitLockInfo();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         delegate().reportExpectationsCollectedData();u}(jv (54e18fd505b7340fcb4a7629ccdc6f839310fe80j `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj modifiedj Kj Kj K!j https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -97,6 +97,8 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
@@ -156,6 +158,7 @@
 import java.util.List;
 import java.util.Map;
 import java.util.NavigableMap;
+import java.util.NavigableSet;
 import java.util.NoSuchElementException;
 import java.util.Objects;
 import java.util.Optional;
@@ -267,6 +270,8 @@ private enum State {
     protected final SuccessCallbackManager successCallbackManager = new SuccessCallbackManager();
     private final CommitTimestampLoader commitTimestampLoader;
     private final ExpectationsMetrics expectationsDataCollectionMetrics;
+    private volatile long cellCommitLocksRequested = 0L;
+    private volatile long rowCommitLocksRequested = 0L;
 
     protected volatile boolean hasReads;
 
@@ -2496,20 +2501,25 @@ private void logCommitLockTenureExceeded(
 
     protected Set<LockDescriptor> getLocksForWrites() {
         Set<LockDescriptor> result = new HashSet<>();
+        long cellLockCount = 0L;
+        long rowLockCount = 0L;
         for (TableReference tableRef : writesByTable.keySet()) {
             ConflictHandler conflictHandler = getConflictHandlerForTable(tableRef);
             if (conflictHandler.lockCellsForConflicts()) {
-                for (Cell cell : getLocalWrites(tableRef).keySet()) {
+                NavigableSet<Cell> cellsToLock = getLocalWrites(tableRef).keySet();
+                for (Cell cell : cellsToLock) {
                     result.add(AtlasCellLockDescriptor.of(
                             tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName()));
                 }
+                cellLockCount = cellsToLock.size();
             }
 
             if (conflictHandler.lockRowsForConflicts()) {
                 Cell lastCell = null;
                 for (Cell cell : getLocalWrites(tableRef).keySet()) {
                     if (lastCell == null || !Arrays.equals(lastCell.getRowName(), cell.getRowName())) {
                         result.add(AtlasRowLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName()));
+                        rowLockCount++;
                     }
                     lastCell = cell;
                 }
@@ -2518,6 +2528,8 @@ protected Set<LockDescriptor> getLocksForWrites() {
         result.add(AtlasRowLockDescriptor.of(
                 TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
                 TransactionConstants.getValueForTimestamp(getStartTimestamp())));
+        cellCommitLocksRequested = cellLockCount;
+        rowCommitLocksRequested = rowLockCount + 1;
         return result;
     }
 
@@ -2655,6 +2667,14 @@ public TransactionReadInfo getReadInfo() {
         return keyValueService.getOverallReadInfo();
     }
 
+    @Override
+    public TransactionCommitLockInfo getCommitLockInfo() {
+        return ImmutableTransactionCommitLockInfo.builder()
+                .cellCommitLocksRequested(cellCommitLocksRequested)
+                .rowCommitLocksRequested(rowCommitLocksRequested)
+                .build();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         if (isStillRunning()) {
@@ -2664,18 +2684,25 @@ public void reportExpectationsCollectedData() {
             return;
         }
 
-        reportExpectationsCollectedData(getAgeMillis(), getReadInfo(), expectationsDataCollectionMetrics);
+        reportExpectationsCollectedData(
+                getAgeMillis(), getReadInfo(), getCommitLockInfo(), expectationsDataCollectionMetrics);
     }
 
     @VisibleForTesting
     static void reportExpectationsCollectedData(
-            long ageMillis, TransactionReadInfo readInfo, ExpectationsMetrics metrics) {
+            long ageMillis,
+            TransactionReadInfo readInfo,
+            TransactionCommitLockInfo commitLockInfo,
+            ExpectationsMetrics metrics) {
         metrics.ageMillis().update(ageMillis);
         metrics.bytesRead().update(readInfo.bytesRead());
         metrics.kvsReads().update(readInfo.kvsCalls());
 
         readInfo.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
                 .update(kvsCallReadInfo.bytesRead()));
+
+        metrics.cellCommitLocksRequested().update(commitLockInfo.cellCommitLocksRequested());
+        metrics.rowCommitLocksRequested().update(commitLockInfo.rowCommitLocksRequested());
     }
 
     private long getStartTimestamp() {u}(jv (89147dc77a01612d3af8f3130ea758e4445537c7j 5atlasdb-impl-shared/src/main/metrics/expectations.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -17,3 +17,9 @@ namespaces:
       mostKvsBytesReadInSingleCall:
         docs: Most bytes read by a transaction in one Atlas kvs read call
         type: histogram
+      cellCommitLocksRequested:
+        docs: Number of cell-level commit locks requested as part of the commit protocol
+        type: histogram
+      rowCommitLocksRequested:
+        docs: Number of row-level commit locks requested as part of the commit protocol
+        type: histogramu}(jv (283b84abcfb6697b50fee5fa0db0dbc2d58dfab8j matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javaj modifiedj K&j Kj K2j https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j XI  @@ -18,7 +18,9 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.codahale.metrics.Histogram;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
@@ -34,6 +36,12 @@ public final class ExpectationsMetricsReportingTest {
     private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
             ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
 
+    private static final ImmutableTransactionCommitLockInfo BLANK_COMMIT_LOCK_INFO =
+            ImmutableTransactionCommitLockInfo.builder()
+                    .cellCommitLocksRequested(0L)
+                    .rowCommitLocksRequested(0L)
+                    .build();
+
     private ExpectationsMetrics metrics;
 
     @Before
@@ -44,40 +52,58 @@ public void setUp() {
     @Test
     public void ageReported() {
         long age = 129L;
-        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, metrics);
-        assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
+        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, BLANK_COMMIT_LOCK_INFO, metrics);
+        assertHistogramHasSingleValue(metrics.ageMillis(), age);
     }
 
     @Test
     public void bytesReadReported() {
         long bytes = 1290L;
-        reportMetrics(BLANK_READ_INFO.withBytesRead(bytes));
-        assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
+        reportMetricsWithReadInfo(BLANK_READ_INFO.withBytesRead(bytes));
+        assertHistogramHasSingleValue(metrics.bytesRead(), bytes);
     }
 
     @Test
     public void kvsCallsReported() {
         long calls = 12L;
-        reportMetrics(BLANK_READ_INFO.withKvsCalls(calls));
-        assertThat(metrics.kvsReads().getSnapshot().getValues()).containsOnly(calls);
+        reportMetricsWithReadInfo(BLANK_READ_INFO.withKvsCalls(calls));
+        assertHistogramHasSingleValue(metrics.kvsReads(), calls);
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
-        reportMetrics(BLANK_READ_INFO);
+        reportMetricsWithReadInfo(BLANK_READ_INFO);
         assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
                 .isEmpty();
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
         long bytes = 193L;
-        reportMetrics(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
-        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
-                .containsOnly(bytes);
+        reportMetricsWithReadInfo(
+                BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        assertHistogramHasSingleValue(metrics.mostKvsBytesReadInSingleCall(), bytes);
+    }
+
+    @Test
+    public void commitLocksRequestsReported() {
+        SnapshotTransaction.reportExpectationsCollectedData(
+                0L,
+                BLANK_READ_INFO,
+                ImmutableTransactionCommitLockInfo.builder()
+                        .cellCommitLocksRequested(1)
+                        .rowCommitLocksRequested(2)
+                        .build(),
+                metrics);
+        assertHistogramHasSingleValue(metrics.cellCommitLocksRequested(), 1);
+        assertHistogramHasSingleValue(metrics.rowCommitLocksRequested(), 2);
+    }
+
+    private void reportMetricsWithReadInfo(TransactionReadInfo readInfo) {
+        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, BLANK_COMMIT_LOCK_INFO, metrics);
     }
 
-    private void reportMetrics(TransactionReadInfo readInfo) {
-        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, metrics);
+    private void assertHistogramHasSingleValue(Histogram histogram, long expected) {
+        assertThat(histogram.getSnapshot().getValues()).containsOnly(expected);
     }
 }u}(jv (25c1bb6a752a65ce98d2dc58adc485085adacef9j latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -240,7 +240,9 @@ public void registersMetrics() throws InterruptedException {
                 .contains(FINISH_TASK_METRIC_NAME)
                 .contains("expectations.bytesRead")
                 .contains("expectations.kvsReads")
-                .contains("expectations.ageMillis");
+                .contains("expectations.ageMillis")
+                .contains("expectations.cellCommitLocksRequested")
+                .contains("expectations.rowCommitLocksRequested");
         assertThat(registry.timer(MetricName.builder()
                                 .safeName(SETUP_TASK_METRIC_NAME)
                                 .build())u}(jv (497d31b0ab4aef167c68c62821257e05a20cfd8ej eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj modifiedj K9j K j K9j https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j Xi  @@ -94,6 +94,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.impl.metrics.DefaultMetricsFilterEvaluationContext;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.ToplistDeltaFilteringTableLevelMetricsController;
@@ -2458,6 +2459,62 @@ public void testConstraintsViolated() {
                         eq(AtlasDbConstraintCheckingMode.FULL_CONSTRAINT_CHECKING_THROWS_EXCEPTIONS));
     }
 
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializableCell() {
+        // Will request commit locks for cells, but not rows
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_CELL);
+
+        // We can only get the commit info from a snapshot transaction
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        // For write transactions, we always lock an additional row in the transaction table
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(0 + 1);
+    }
+
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializable() {
+        // Will request commit locks for rows, but not cells
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(0);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(2 + 1);
+    }
+
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigration_sameRow() {
+        // Will request commit locks for cells and rows
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_LOCK_LEVEL_MIGRATION);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(
+                TABLE,
+                ImmutableMap.of(Cell.create(PtBytes.toBytes("same_row"), PtBytes.toBytes("column1")), TEST_VALUE));
+        txn.put(
+                TABLE,
+                ImmutableMap.of(
+                        Cell.create(
+                                PtBytes.toBytes("same_row"),
+                                // Writing to the same row, but different column/cell
+                                PtBytes.toBytes("column2")),
+                        TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
+    }
+
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,uS      }(jv (2725912f8e075ab25f996c376910f257d6850d7fj ^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ColumnValue.javaj addedj K j K j K j https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ColumnValue {
+    @Value.Parameter
+    int column();
+
+    @Value.Parameter
+    int value();
+
+    static ColumnValue of(int column, int value) {
+        return ImmutableColumnValue.of(column, value);
+    }
+}u}(jv (8a9dd68a171bcb94d41b777979635f8a4cca5c99j matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelection.javaj addedj KBj K j KBj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j Xq	  @@ -0,0 +1,66 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.google.common.collect.Range;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ColumnRangeSelection {
+    Optional<Integer> startColumnInclusive();
+
+    Optional<Integer> endColumnExclusive();
+
+    default boolean contains(int column) {
+        return asGuavaRange().contains(column);
+    }
+
+    default Range<Integer> asGuavaRange() {
+        if (startColumnInclusive().isEmpty()) {
+            if (endColumnExclusive().isEmpty()) {
+                return Range.all();
+            } else {
+                return Range.lessThan(endColumnExclusive().get());
+            }
+        } else {
+            if (endColumnExclusive().isEmpty()) {
+                return Range.atLeast(startColumnInclusive().get());
+            } else {
+                return Range.closedOpen(
+                        startColumnInclusive().get(), endColumnExclusive().get());
+            }
+        }
+    }
+
+    @Value.Check
+    default void check() {
+        Preconditions.checkState(
+                startColumnInclusive().isEmpty()
+                        || endColumnExclusive().isEmpty()
+                        || startColumnInclusive().get() <= endColumnExclusive().get(),
+                "Start column must be less than or equal to end column",
+                SafeArg.of("startColumnInclusive", startColumnInclusive()),
+                SafeArg.of("endColumnExclusive", endColumnExclusive()));
+    }
+
+    static ImmutableColumnRangeSelection.Builder builder() {
+        return ImmutableColumnRangeSelection.builder();
+    }
+}u}(jv (bd06cc1312715a991167d81bd1ceb940ff719fc1j patlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/DeleteTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X{  @@ -22,7 +22,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface DeleteTransactionAction extends TransactionAction {
+public interface DeleteTransactionAction extends SingleCellTransactionAction {
 
     default WitnessedDeleteTransactionAction witness() {
         return ImmutableWitnessedDeleteTransactionAction.of(table(), cell());u}(jv (e9ae2e08974eda0443281b98d5bc9d2fb9243eccj natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ReadTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -23,7 +23,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface ReadTransactionAction extends TransactionAction {
+public interface ReadTransactionAction extends SingleCellTransactionAction {
 
     default WitnessedReadTransactionAction witness(Optional<Integer> value) {
         return ImmutableWitnessedReadTransactionAction.of(table(), cell(), value);u}(jv (38bd65bb4f96e9501721390809e74a159a2f3b13j |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowColumnRangeReadTransactionAction.javaj addedj K7j K j K7j https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X	  @@ -0,0 +1,55 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import java.util.List;
+import org.immutables.value.Value;
+
+/**
+ * This transaction action models a column range read in AtlasDB ("getRowsColumnRange" in the AtlasDB API).
+ * <p>
+ * In the interest of implementation simplicity, two significant simplifications are made. Firstly, the action is
+ * presumed to act on a single row, though calls to getRowsColumnRange in practice can act on multiple rows in parallel.
+ * Secondly, values read from getRowsColumnRange are accessed through a live iterator, while for purposes of gathering
+ * a witness, we immediately drain the iterator and use the set of columns read as the witness to this action.
+ */
+@Value.Immutable
+public interface RowColumnRangeReadTransactionAction extends TransactionAction {
+    String table();
+
+    int row();
+
+    ColumnRangeSelection columnRangeSelection();
+
+    @Override
+    default <T> T accept(TransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    default WitnessedRowColumnRangeReadTransactionAction witness(List<ColumnValue> columnsAndValues) {
+        return WitnessedRowColumnRangeReadTransactionAction.builder()
+                .originalQuery(this)
+                .columnsAndValues(columnsAndValues)
+                .build();
+    }
+
+    static ImmutableRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableRowColumnRangeReadTransactionAction.builder();
+    }
+}u}(jv (47b25ab538c861987aa480e47c2bb08032e32fc0j tatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/SingleCellTransactionAction.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X>  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface SingleCellTransactionAction extends TransactionAction {
+    /** Table to apply transaction to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) to apply the action to. */
+    @Value.Parameter
+    WorkloadCell cell();
+}u}(jv (e6ee57fa3732a9a1984c98b088bfc9a577a7fbe8j jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionAction.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.WorkloadCell;
-import org.immutables.value.Value;
-
 public interface TransactionAction {
-
-    /** Table to apply transaction to. */
-    @Value.Parameter
-    String table();
-
-    /** Cell (Key, Column) to apply the action to. */
-    @Value.Parameter
-    WorkloadCell cell();
-
     <T> T accept(TransactionActionVisitor<T> visitor);
 }u}(jv (1625640516054c38d6886dbd91b10123cb0bb223j qatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionActionVisitor.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -22,4 +22,6 @@ public interface TransactionActionVisitor<T> {
     T visit(WriteTransactionAction writeTransactionAction);
 
     T visit(DeleteTransactionAction deleteTransactionAction);
+
+    T visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction);
 }u}(jv (7b9112fa4356eade1fb793e23ca54d962811ccfcj oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/WriteTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -22,7 +22,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WriteTransactionAction extends TransactionAction {
+public interface WriteTransactionAction extends SingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(jv (2f66134a6e594e63bdba1ebec482177c03bd9220j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedSingleCellTransactionAction.javaj addedj K"j K j K"j https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j XP  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.invariant.MismatchedValue;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedSingleCellTransactionAction extends InvalidWitnessedTransactionAction {
+    @Value.Parameter
+    WitnessedSingleCellTransactionAction action();
+
+    @Value.Parameter
+    MismatchedValue mismatchedValue();
+
+    static InvalidWitnessedSingleCellTransactionAction of(
+            WitnessedSingleCellTransactionAction action, MismatchedValue mismatchedValue) {
+        return ImmutableInvalidWitnessedSingleCellTransactionAction.of(action, mismatchedValue);
+    }
+}u}(jv (f2fc56cca46a09c2ef718c3b7cb6b8d4000c1d8fj atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javaj modifiedj Kj K
j Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j Xw  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.invariant.MismatchedValue;
-import org.immutables.value.Value;
-
-@Value.Immutable
 public interface InvalidWitnessedTransactionAction {
-    @Value.Parameter
-    WitnessedTransactionAction action();
-
-    @Value.Parameter
-    MismatchedValue mismatchedValue();
-
-    static InvalidWitnessedTransactionAction of(WitnessedTransactionAction action, MismatchedValue mismatchedValue) {
-        return ImmutableInvalidWitnessedTransactionAction.of(action, mismatchedValue);
-    }
+    // Marker interface
 }u}(jv (664e279d4223b1f5897c5f45615e3cdbdaa71ac3j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedDeleteTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j Xo  @@ -20,7 +20,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedDeleteTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedDeleteTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {u}(jv (beff6229abcbdbf535af57c09c43ad7c92566201j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedReadTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X7  @@ -21,7 +21,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedReadTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedReadTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(jv (284f26075e3ae1ed8320bcbc8402749af631ccddj atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javaj addedj K;j K j K;j https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X	  @@ -0,0 +1,59 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedTransactionAction {
+    RowColumnRangeReadTransactionAction originalQuery();
+
+    // This is a List rather than a Set or Map because the ordering in which the columns and values are returned is
+    // important (it must match the ordering specified by the contract of row column range reads).
+    List<ColumnValue> columnsAndValues();
+
+    @Override
+    default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    @Value.Check
+    default void check() {
+        Set<Integer> knownColumns = new HashSet<>();
+        Set<Integer> duplicateColumns = columnsAndValues().stream()
+                .map(ColumnValue::column)
+                .filter(column -> !knownColumns.add(column))
+                .collect(Collectors.toSet());
+        Preconditions.checkState(
+                duplicateColumns.isEmpty(),
+                "Duplicate columns in columnsAndValues",
+                SafeArg.of("duplicateColumns", duplicateColumns),
+                SafeArg.of("columnsAndValues", columnsAndValues()));
+    }
+
+    static ImmutableWitnessedRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableWitnessedRowColumnRangeReadTransactionAction.builder();
+    }
+}u}(jv (eed34c03b4bd04c09374ca41608cb74986cb40c0j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedSingleCellTransactionAction.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j XW  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface WitnessedSingleCellTransactionAction extends WitnessedTransactionAction {
+    /** Table action was applied to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) the action applied to. */
+    @Value.Parameter
+    WorkloadCell cell();
+}u}(jv (3e350184f320b0cd81f7019819c5d83c6a9d8602j }atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionAction.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.store.WorkloadCell;
-import org.immutables.value.Value;
-
 public interface WitnessedTransactionAction {
-
-    /** Table action was applied to. */
-    @Value.Parameter
-    String table();
-
-    /** Cell (Key, Column) the action applied to. */
-    @Value.Parameter
-    WorkloadCell cell();
-
     <T> T accept(WitnessedTransactionActionVisitor<T> visitor);
 }u}(jv (ca4d65c16390f51cc645a365e26e4c1c79a67e15j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionActionVisitor.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X>  @@ -22,4 +22,6 @@ public interface WitnessedTransactionActionVisitor<T> {
     T visit(WitnessedWriteTransactionAction writeTransactionAction);
 
     T visit(WitnessedDeleteTransactionAction deleteTransactionAction);
+
+    T visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction);
 }u}(jv (43687fd4d7dbdc3a1ac0ec26f2f38d0366613022j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedWriteTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X(  @@ -20,7 +20,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WitnessedWriteTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedWriteTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(jv (e023081417c4bca7cf9bb80aeeb71bd64bdf21a4j qatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelectionTest.javaj addedj Kbj K j Kbj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -0,0 +1,98 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.Optional;
+import org.junit.Test;
+
+public class ColumnRangeSelectionTest {
+    @Test
+    public void cannotCreateRangeWithStartColumnGreaterThanEndColumn() {
+        assertThatLoggableExceptionThrownBy(() -> ColumnRangeSelection.builder()
+                        .startColumnInclusive(5)
+                        .endColumnExclusive(4)
+                        .build())
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Start column must be less than or equal to end column")
+                .hasExactlyArgs(
+                        SafeArg.of("startColumnInclusive", Optional.of(5)),
+                        SafeArg.of("endColumnExclusive", Optional.of(4)));
+    }
+
+    @Test
+    public void emptyRangeDoesNotContainAnyElements() {
+        ColumnRangeSelection emptyRange = ColumnRangeSelection.builder()
+                .startColumnInclusive(6)
+                .endColumnExclusive(6)
+                .build();
+        assertThat(emptyRange.contains(5)).isFalse();
+        assertThat(emptyRange.contains(6)).isFalse();
+        assertThat(emptyRange.contains(7)).isFalse();
+        assertThat(emptyRange.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(emptyRange.contains(Integer.MAX_VALUE)).isFalse();
+    }
+
+    @Test
+    public void singleElementRangeContainsJustItself() {
+        ColumnRangeSelection justSeven = ColumnRangeSelection.builder()
+                .startColumnInclusive(7)
+                .endColumnExclusive(8)
+                .build();
+        assertThat(justSeven.contains(6)).isFalse();
+        assertThat(justSeven.contains(7)).isTrue();
+        assertThat(justSeven.contains(8)).isFalse();
+        assertThat(justSeven.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(justSeven.contains(Integer.MAX_VALUE)).isFalse();
+    }
+
+    @Test
+    public void universalRangeContainsEverything() {
+        ColumnRangeSelection universal = ColumnRangeSelection.builder().build();
+        assertThat(universal.contains(10241024)).isTrue();
+        assertThat(universal.contains(-20482048)).isTrue();
+        assertThat(universal.contains(40924092)).isTrue();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isTrue();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isTrue();
+    }
+
+    @Test
+    public void lowerBoundedRangesContainCorrectElements() {
+        ColumnRangeSelection universal =
+                ColumnRangeSelection.builder().startColumnInclusive(5).build();
+        assertThat(universal.contains(4)).isFalse();
+        assertThat(universal.contains(5)).isTrue();
+        assertThat(universal.contains(6)).isTrue();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isTrue();
+    }
+
+    @Test
+    public void upperBoundedRangesContainCorrectElements() {
+        ColumnRangeSelection universal =
+                ColumnRangeSelection.builder().endColumnExclusive(5).build();
+        assertThat(universal.contains(4)).isTrue();
+        assertThat(universal.contains(5)).isFalse();
+        assertThat(universal.contains(6)).isFalse();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isTrue();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isFalse();
+    }
+}u}(jv (d8ae0172e04f5d987b18981c085af657a86bf0e4j atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -54,7 +54,7 @@ public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
     public void toFullyWitnessedCopiesArgumentsCorrectly() {
         WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
         WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
-        List<WitnessedTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
+        List<WitnessedSingleCellTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
         FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
                 .startTimestamp(START_TIMESTAMP)
                 .commitTimestamp(COMMIT_TIMESTAMP)u}(jv (b2c905aecbadb5eff96bc5dbc26f890c72dbd00cj atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javaj addedj KGj K j KGj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X
  @@ -0,0 +1,71 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import org.junit.Test;
+
+public class WitnessedRowColumnRangeReadTransactionActionTest {
+    @Test
+    public void canCreateWitness() {
+        assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
+                        .build())
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void cannotCreateWitnessWithDuplicateColumns() {
+        List<ColumnValue> columnsAndValues = ImmutableList.of(
+                ColumnValue.of(1, 5),
+                ColumnValue.of(5, 1),
+                ColumnValue.of(1, 3),
+                ColumnValue.of(5, 8),
+                ColumnValue.of(9, 99));
+
+        assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .addAllColumnsAndValues(columnsAndValues)
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
+                        .build())
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Duplicate columns in columnsAndValues")
+                .hasExactlyArgs(
+                        SafeArg.of("duplicateColumns", ImmutableSet.of(1, 5)),
+                        SafeArg.of("columnsAndValues", columnsAndValues));
+    }
+}u}(jv (7f8015ae9aa8e1cda19fbbfa7a571ed881b71b56j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj modifiedj K
j Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -18,10 +18,12 @@
 
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -68,7 +70,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactio
                     .orElseGet(Optional::empty);
 
             if (!expectedValue.equals(readTransactionAction.value())) {
-                return Optional.of(InvalidWitnessedTransactionAction.of(
+                return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
                         readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expectedValue)));
             }
 
@@ -88,5 +90,12 @@ public Optional<InvalidWitnessedTransactionAction> visit(
             inMemoryTransactionReplayer.visit(deleteTransactionAction);
             return Optional.empty();
         }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+            // TODO (jkong): Not implemented yet
+            return Optional.empty();
+        }
     }
 }u}(jv (077c0294a2f984f9f97dca7c4b24ef6de5bc6f16j katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j Xy  @@ -19,20 +19,22 @@
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.Map;
 import java.util.Optional;
 
 /**
  * Replays transactions and validates for conflicts on the latest and read view.
- *
+ * <p>
  * The latest view will be a view of the database at the commit timestamp, while the read view will be the view of
  * the database at the start timestamp.
- *
+ * <p>
  * Objects created from this class should only be used within a scope of a single transaction.
  */
 final class SnapshotInvariantVisitor
@@ -57,7 +59,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactio
                         readTransactionAction.table(), readTransactionAction.cell(), readView)
                 .value();
         if (!expected.equals(readTransactionAction.value())) {
-            return Optional.of(InvalidWitnessedTransactionAction.of(
+            return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
                     readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expected)));
         }
         return Optional.empty();
@@ -67,7 +69,8 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactio
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
                         writeTransactionAction.table(), writeTransactionAction.cell())
-                .map(mismatchedValue -> InvalidWitnessedTransactionAction.of(writeTransactionAction, mismatchedValue));
+                .map(mismatchedValue ->
+                        InvalidWitnessedSingleCellTransactionAction.of(writeTransactionAction, mismatchedValue));
 
         applyWrites(
                 writeTransactionAction.table(),
@@ -80,12 +83,20 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransacti
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
                         deleteTransactionAction.table(), deleteTransactionAction.cell())
-                .map(mismatchedValue -> InvalidWitnessedTransactionAction.of(deleteTransactionAction, mismatchedValue));
+                .map(mismatchedValue ->
+                        InvalidWitnessedSingleCellTransactionAction.of(deleteTransactionAction, mismatchedValue));
 
         applyWrites(deleteTransactionAction.table(), deleteTransactionAction.cell(), Optional.empty());
         return invalidAction;
     }
 
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(
+            WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        // TODO (jkong): Not implemented yet
+        return Optional.empty();
+    }
+
     /**
      * Applies writes to both our read and latest table view.
      * Latest table view needs to be updated to apply our writes from our transaction,u}(jv (12ac1ba77ac5173e6e93ae318bde8d17c872de28j fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j XC  @@ -27,6 +27,7 @@
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
@@ -159,6 +160,12 @@ public Void visit(DeleteTransactionAction deleteTransactionAction) {
             transaction.delete(deleteTransactionAction.table(), deleteTransactionAction.cell());
             return null;
         }
+
+        @Override
+        public Void visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+            // TODO (jkong): Not implemented yet
+            throw new UnsupportedOperationException("Not implemented yet");
+        }
     }
 
     public static AtlasDbTransactionStore create(u}(jv (53b40b5fe80de185e89ff3bfca0044e6f97e759dj patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -20,6 +20,7 @@
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.HashMap;
@@ -55,6 +56,11 @@ public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         return null;
     }
 
+    @Override
+    public Void visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        return null;
+    }
+
     public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
         return values.getSnapshot();
     }u}(jv (32db22149cce31693c0af4b33f0f275d03565d29j katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -18,6 +18,7 @@
 
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 
@@ -39,4 +40,9 @@ public WriteTransactionAction visit(WitnessedWriteTransactionAction writeTransac
     public DeleteTransactionAction visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         return ImmutableDeleteTransactionAction.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
     }
+
+    @Override
+    public TransactionAction visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        return rowColumnRangeReadTransactionAction.originalQuery();
+    }
 }u}(jv (0db0afc0570e8993b0ec99aac00c3f57657d6828j latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj modifiedj K
j Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -22,6 +22,7 @@
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
@@ -116,13 +117,18 @@ public void catchesWriteSkew() {
         InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
                 Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
 
-        assertThat(invalidWitnessedTransactionAction.action())
-                .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
-                    assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
-                    assertThat(action.value()).contains(15);
-                });
-        assertThat(invalidWitnessedTransactionAction.mismatchedValue())
-                .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(
+                        InvalidWitnessedSingleCellTransactionAction.class,
+                        invalidSingleCellWitnessedTransactionAction -> {
+                            assertThat(invalidSingleCellWitnessedTransactionAction.action())
+                                    .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
+                                        assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
+                                        assertThat(action.value()).contains(15);
+                                    });
+                            assertThat(invalidSingleCellWitnessedTransactionAction.mismatchedValue())
+                                    .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+                        });
     }
 
     @Testu}(jv (fb5813b8d5288d435a36c31b8acf757dd6e9083bj hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -22,6 +22,7 @@
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
 import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -62,10 +63,14 @@ public void catchesWriteWriteConflict() {
         assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
 
         InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
-        assertThat(invalidAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
-        assertThat(invalidAction.mismatchedValue())
-                .isEqualTo(MismatchedValue.of(
-                        ValueAndMaybeTimestamp.of(WorkloadTestHelpers.VALUE_ONE, 1L), ValueAndMaybeTimestamp.empty()));
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(InvalidWitnessedSingleCellTransactionAction.class, invalidSingleCellAction -> {
+                    assertThat(invalidSingleCellAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+                    assertThat(invalidSingleCellAction.mismatchedValue())
+                            .isEqualTo(MismatchedValue.of(
+                                    ValueAndMaybeTimestamp.of(WorkloadTestHelpers.VALUE_ONE, 1L),
+                                    ValueAndMaybeTimestamp.empty()));
+                });
     }
 
     @Test
@@ -90,10 +95,13 @@ public void catchesAbaWriteWriteConflictForDeletes() {
         assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
 
         InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
-        assertThat(invalidAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
-        assertThat(invalidAction.mismatchedValue())
-                .isEqualTo(MismatchedValue.of(
-                        ValueAndMaybeTimestamp.of(Optional.empty(), 1L), ValueAndMaybeTimestamp.empty()));
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(InvalidWitnessedSingleCellTransactionAction.class, invalidSingleCellAction -> {
+                    assertThat(invalidSingleCellAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+                    assertThat(invalidSingleCellAction.mismatchedValue())
+                            .isEqualTo(MismatchedValue.of(
+                                    ValueAndMaybeTimestamp.of(Optional.empty(), 1L), ValueAndMaybeTimestamp.empty()));
+                });
     }
 
     @Testu}(jv (ce49e27d10355fb6f5b71d88a206899b12b7f25bj xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8      j X+  @@ -30,6 +30,7 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -83,10 +84,11 @@ public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
                 .map(WitnessedTransaction::actions)
                 .flatMap(Collection::stream)
                 .collect(Collectors.toList());
-        assertThat(witnessedTransactionActions)
-                .allMatch(action -> action.table().equals(TABLE_NAME));
-        assertThat(witnessedTransactionActions)
-                .allMatch(action -> action.cell().equals(SingleBusyCellReadNoTouchWorkflows.BUSY_CELL));
+        assertThat(witnessedTransactionActions).allSatisfy(action -> assertThat(action)
+                .isInstanceOfSatisfying(WitnessedSingleCellTransactionAction.class, singleCellAction -> {
+                    assertThat(singleCellAction.table()).isEqualTo(TABLE_NAME);
+                    assertThat(singleCellAction.cell()).isEqualTo(SingleBusyCellReadNoTouchWorkflows.BUSY_CELL);
+                }));
     }
 
     @Testu}(jv (241e8471f3f2d7c765f6ff9e98e1c055938e3a50j matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -29,6 +29,7 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -77,9 +78,10 @@ public void transactionsDoNotConflictExcessively() {
     @Test
     public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
         WorkflowHistory workflowHistory = workflow.run();
-        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+        List<WitnessedSingleCellTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
                 .map(WitnessedTransaction::actions)
                 .flatMap(Collection::stream)
+                .map(WitnessedSingleCellTransactionAction.class::cast)
                 .collect(Collectors.toList());
         assertThat(witnessedTransactionActions)
                 .allMatch(action -> action.table().equals(TABLE_NAME));u}(jv (a982645e9685b7e2b328546bb927b2c415ad29bfj latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X1  @@ -130,7 +130,7 @@ public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
         transactionStore.readWrite(txn -> txn.delete(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 1, 1)));
         invariant.accept(history, reference::set);
         assertThat(reference.get())
-                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                .containsExactly(CrossCellInconsistency.builder()
                         .putInconsistentValues(
                                 TableAndWorkloadCell.of(
                                         TABLE_NAME,
@@ -142,7 +142,7 @@ public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
                                         ImmutableWorkloadCell.of(
                                                 TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 1)),
                                 Optional.of(0))
-                        .build()));
+                        .build());
     }
 
     @Test
@@ -155,7 +155,7 @@ public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
                 TransientRowsWorkflows.VALUE));
         invariant.accept(history, reference::set);
         assertThat(reference.get())
-                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                .containsExactly(CrossCellInconsistency.builder()
                         .putInconsistentValues(
                                 TableAndWorkloadCell.of(
                                         TABLE_NAME,
@@ -167,7 +167,7 @@ public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
                                         ImmutableWorkloadCell.of(
                                                 TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 2)),
                                 Optional.empty())
-                        .build()));
+                        .build());
     }
 
     @Test
@@ -310,11 +310,12 @@ private static TableAndWorkloadCell getPrimaryCellForSummaryCell(TableAndWorkloa
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(
             WitnessedTransactionAction action) {
         if (action instanceof WitnessedReadTransactionAction) {
-            if (action.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
-                return WitnessedReadTransactionAction.of(action.table(), action.cell(), Optional.empty());
+            WitnessedReadTransactionAction readAction = (WitnessedReadTransactionAction) action;
+            if (readAction.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
+                return WitnessedReadTransactionAction.of(readAction.table(), readAction.cell(), Optional.empty());
             } else {
                 return WitnessedReadTransactionAction.of(
-                        action.table(), action.cell(), Optional.of(TransientRowsWorkflows.VALUE));
+                        readAction.table(), readAction.cell(), Optional.of(TransientRowsWorkflows.VALUE));
             }
         } else {
             return action;u}(jv (fe0267e6f697a967a6133f2554009d8a0be04d4cj katlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtilsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -67,7 +67,7 @@ public void performTransfersReturnsBalancesWithCorrectSum() {
         when(random.nextInt(anyInt())).thenReturn(0, 1);
         Map<Integer, Integer> balances = Map.of(0, 1, 1, 1);
         Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
-        assertThat(newBalances).isEqualTo(Map.of(0, 0, 1, 2));
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(Map.of(0, 0, 1, 2));
         assertThat(newBalances.values().stream().mapToInt(Integer::intValue).sum())
                 .isEqualTo(2);
     }
@@ -77,6 +77,6 @@ public void performsTransfersOnlyIfValueWouldNotBeBelowZero() {
         when(random.nextInt(anyInt())).thenReturn(0, 1);
         Map<Integer, Integer> balances = Map.of(0, 0, 1, 2);
         Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
-        assertThat(newBalances).isEqualTo(balances);
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(balances);
     }
 }u}(jv (7ae440730798415742814c38fb59d0707273036ej datlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingGraphTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X=  @@ -101,6 +101,6 @@ public void generateNewRingReturnsValidRing() {
 
     @Test
     public void asMapConvertsCorrectly() {
-        assertThat(RingGraph.from(VALID_RING).asMap()).isEqualTo(VALID_RING);
+        assertThat(RingGraph.from(VALID_RING).asMap()).containsExactlyInAnyOrderEntriesOf(VALID_RING);
     }
 }u}(jv (022221727d6f2d598a0016a225e75264c9780625j build.gradlej modifiedj Kj Kj K
j ^https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/build.gradlej ]https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/build.gradlej phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -7,20 +7,20 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.0'
-        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.2.0'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.4'
+        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.3.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.38.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.39.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
-        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
+        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
-        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'
+        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.3'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
         classpath 'gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1'
         classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'
@@ -113,8 +113,7 @@ allprojects {
                 'Slf4jLogsafeArgs',
                 'StaticAssignmentInConstructor',
                 'StrictUnusedVariable'
-        options.errorprone.error 'DefaultLocale',
-                'SafeLoggingPropagation'
+        options.errorprone.error 'SafeLoggingPropagation'
     }
 }
 u}(jv (ffd47f177c27dd39d87fb4cd84339ad7d1911c1cj  changelog/0.874.0/pr-6625.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/changelog%2F0.874.0%2Fpr-6625.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/changelog%2F0.874.0%2Fpr-6625.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.874.0%2Fpr-6625.v2.yml?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LockV1] Add async thread info snapshotting (disabled by default)'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6625u}(jv (a6c9d3dd239346b5de33d708683efcea7ca6e0d1j  changelog/0.875.0/pr-6623.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/changelog%2F0.875.0%2Fpr-6623.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/changelog%2F0.875.0%2Fpr-6623.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.875.0%2Fpr-6623.v2.yml?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Log lock holder thread info on timeout, slow lock acquisition and contention
+  links:
+  - https://github.com/palantir/atlasdb/pull/6623u}(jv (34c425f71f242ce114bab888f8034960c6b716e7j  changelog/0.877.0/pr-6602.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/changelog%2F0.877.0%2Fpr-6602.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/changelog%2F0.877.0%2Fpr-6602.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.877.0%2Fpr-6602.v2.yml?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Add metrics for number of requested cell/row-level commit locks
+  links:
+  - https://github.com/palantir/atlasdb/pull/6602u}(jv (933965abbab2686a96a62a6ac504123076081ec8j Ilock-api-objects/src/main/java/com/palantir/lock/LockClientAndThread.javaj addedj K$j K j K$j https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface LockClientAndThread {
+    LockClientAndThread UNKNOWN = LockClientAndThread.of(LockClient.ANONYMOUS, "unknown-thread");
+
+    LockClient client();
+
+    String thread();
+
+    static ImmutableLockClientAndThread.Builder builder() {
+        return ImmutableLockClientAndThread.builder();
+    }
+
+    static LockClientAndThread of(LockClient client, String requestingThread) {
+        return builder().client(client).thread(requestingThread).build();
+    }
+}u}(jv (c0732dd117e0d492f18b686086a002759beb1281j Jlock-api/src/main/java/com/palantir/lock/DebugThreadInfoConfiguration.javaj addedj K!j K j K!j https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface DebugThreadInfoConfiguration {
+
+    @Value.Default
+    default boolean recordThreadInfo() {
+        return false;
+    }
+
+    @Value.Default
+    default long threadInfoSnapshotIntervalMillis() {
+        return 5000L;
+    }
+}u}(jv (da50ee7393b93c8d71153140ffe86ba6c40366fcj ?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -16,6 +16,7 @@
 package com.palantir.lock;
 
 import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.google.common.base.MoreObjects;
@@ -126,6 +127,15 @@ public long slowLogTriggerMillis() {
         return 10000L;
     }
 
+    /**
+     * Runtime configuration relating to thread info recording (which lock is held by which client-thread).
+     */
+    @JsonIgnore
+    @Value.Default
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    }
+
     @Override
     public boolean equals(@Nullable Object obj) {
         if (this == obj) {
@@ -142,7 +152,8 @@ && getRandomBitCount() == other.getRandomBitCount()
                 && Objects.equals(getMaxAllowedClockDrift(), other.getMaxAllowedClockDrift())
                 && Objects.equals(getMaxAllowedBlockingDuration(), other.getMaxAllowedBlockingDuration())
                 && Objects.equals(getMaxNormalLockAge(), other.getMaxNormalLockAge())
-                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout());
+                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout())
+                && Objects.equals(threadInfoConfiguration(), other.threadInfoConfiguration());
     }
 
     @Override
@@ -155,7 +166,8 @@ public int hashCode() {
                 getMaxNormalLockAge(),
                 getRandomBitCount(),
                 getStuckTransactionTimeout(),
-                slowLogTriggerMillis());
+                slowLogTriggerMillis(),
+                threadInfoConfiguration());
     }
 
     @Override
@@ -169,6 +181,7 @@ public String toString() {
                 .add("randomBitCount", getRandomBitCount())
                 .add("stuckTransactionTimeout", getStuckTransactionTimeout())
                 .add("slowLogTriggerMillis", slowLogTriggerMillis())
+                .add("threadInfoConfiguration", threadInfoConfiguration())
                 .toString();
     }
 u}(jv (11798108f5011933229198de0ecd0a9b6b828e68j lock-impl/build.gradlej modifiedj Kj K j Kj jhttps://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/lock-impl%2Fbuild.gradlej ihttps://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/lock-impl%2Fbuild.gradlej |https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fbuild.gradle?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j Xb  @@ -22,6 +22,7 @@ dependencies {
   implementation project(':lock-api-objects')
   implementation project(':timestamp-api')
 
+  testImplementation 'org.awaitility:awaitility'
   testImplementation 'com.fasterxml.jackson.core:jackson-databind'
   testImplementation 'com.google.guava:guava'
   testImplementation 'com.palantir.safe-logging:preconditions'u}(jv (34cefef0f32840760e1b45c880f7af92fa4d8e85j Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -92,6 +92,7 @@
 import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.BlockingQueue;
@@ -104,6 +105,7 @@
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicInteger;
 import java.util.function.Supplier;
+import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 import javax.annotation.concurrent.ThreadSafe;
@@ -183,6 +185,9 @@ public String toString() {
     private final SimpleTimeDuration stuckTransactionTimeout;
     private final AtomicBoolean isShutDown = new AtomicBoolean(false);
 
+    /** Configurable background task that periodically collects snapshots about the current lock state */
+    private final LockThreadInfoSnapshotManager threadInfoSnapshotManager;
+
     private final LockClientIndices clientIndices = new LockClientIndices();
 
     /** The backing client-aware read write lock for each lock descriptor. */
@@ -256,6 +261,9 @@ private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable
         this.maxNormalLockAge = SimpleTimeDuration.of(options.getMaxNormalLockAge());
         this.stuckTransactionTimeout = SimpleTimeDuration.of(options.getStuckTransactionTimeout());
         this.slowLogTriggerMillis = options.slowLogTriggerMillis();
+        this.threadInfoSnapshotManager =
+                new LockThreadInfoSnapshotManager(options.threadInfoConfiguration(), () -> heldLocksTokenMap);
+        threadInfoSnapshotManager.start();
     }
 
     private HeldLocksToken createHeldLocksToken(
@@ -465,7 +473,7 @@ private void logLockAcquisitionFailure(Map<LockDescriptor, LockClient> failedLoc
         final String logMessage = "Current holders of the first {} of {} total failed locks were: {}";
 
         List<String> lockDescriptions = new ArrayList<>();
-        Iterator<Map.Entry<LockDescriptor, LockClient>> entries =
+        Iterator<Entry<LockDescriptor, LockClient>> entries =
                 failedLocks.entrySet().iterator();
         for (int i = 0; i < MAX_FAILED_LOCKS_TO_LOG && entries.hasNext(); i++) {
             Map.Entry<LockDescriptor, LockClient> entry = entries.next();
@@ -477,7 +485,10 @@ private void logLockAcquisitionFailure(Map<LockDescriptor, LockClient> failedLoc
                 logMessage,
                 SafeArg.of("numLocksLogged", Math.min(MAX_FAILED_LOCKS_TO_LOG, failedLocks.size())),
                 SafeArg.of("numLocksFailed", failedLocks.size()),
-                UnsafeArg.of("lockDescriptions", lockDescriptions));
+                UnsafeArg.of("lockDescriptions", lockDescriptions),
+                threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(failedLocks.keySet().stream()
+                        .limit(MAX_FAILED_LOCKS_TO_LOG)
+                        .collect(Collectors.toSet())));
     }
 
     private boolean isBlocking(BlockingMode blockingMode) {
@@ -523,7 +534,7 @@ private void tryLocks(
                 LockClient currentHolder = tryLock(lock.get(client, entry.getValue()), blockingMode, deadline);
                 if (log.isDebugEnabled() || isSlowLogEnabled()) {
                     long responseTimeMillis = System.currentTimeMillis() - startTime;
-                    logSlowLockAcquisition(entry.getKey().toString(), currentHolder, responseTimeMillis);
+                    logSlowLockAcquisition(entry.getKey(), currentHolder, responseTimeMillis);
                 }
                 if (currentHolder == null) {
                     locks.put(lock, entry.getValue());
@@ -542,22 +553,25 @@ private void tryLocks(
     }
 
     @VisibleForTesting
-    void logSlowLockAcquisition(String lockId, LockClient currentHolder, long durationMillis) {
+    void logSlowLockAcquisition(LockDescriptor lockDescriptor, LockClient currentHolder, long durationMillis) {
         final String slowLockLogMessage = "Blocked for {} ms to acquire lock {} {}.";
+        final String lockId = lockDescriptor.getLockIdAsString();
 
         // Note: The construction of params is pushed into the branches, as it may be expensive.
         if (isSlowLogEnabled() && durationMillis >= slowLogTriggerMillis) {
             SlowLockLogger.logger.warn(
                     slowLockLogMessage,
                     SafeArg.of("durationMillis", durationMillis),
                     UnsafeArg.of("lockId", lockId),
-                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"));
+                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"),
+                    threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(Set.of(lockDescriptor)));
         } else if (log.isDebugEnabled() && durationMillis > DEBUG_SLOW_LOG_TRIGGER_MILLIS) {
             log.debug(
                     slowLockLogMessage,
                     SafeArg.of("durationMillis", durationMillis),
                     UnsafeArg.of("lockId", lockId),
-                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"));
+                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"),
+                    threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(Set.of(lockDescriptor)));
         }
     }
 
@@ -1227,6 +1241,10 @@ public long currentTimeMillis() {
         return System.currentTimeMillis();
     }
 
+    public LockThreadInfoSnapshotManager getSnapshotManager() {
+        return threadInfoSnapshotManager;
+    }
+
     private static String updateThreadName(LockRequest request) {
         String currentThreadName = Thread.currentThread().getName();
         tryRenameThread(u}(jv (599384706d72a7d0869da28e968fae05f9fc46caj Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javaj addedj Kuj K j Kuj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j Xs  @@ -0,0 +1,117 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableMap;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.lock.DebugThreadInfoConfiguration;
+import com.palantir.lock.HeldLocksToken;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
+import com.palantir.logsafe.UnsafeArg;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.ConcurrentMap;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+
+public class LockThreadInfoSnapshotManager implements AutoCloseable {
+    private DebugThreadInfoConfiguration threadInfoConfiguration;
+
+    private Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
+
+    private volatile Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot;
+
+    private ScheduledExecutorService scheduledExecutorService = PTExecutors.newSingleThreadScheduledExecutor();
+
+    public LockThreadInfoSnapshotManager(
+            DebugThreadInfoConfiguration threadInfoConfiguration,
+            Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> mapSupplier) {
+        this.threadInfoConfiguration = threadInfoConfiguration;
+        this.tokenMapSupplier = mapSupplier;
+        this.lastKnownThreadInfoSnapshot = ImmutableMap.of();
+    }
+
+    public void start() {
+        scheduleRun();
+    }
+
+    private void run() {
+        takeSnapshot();
+
+        // schedule next snapshot so this can be enabled/disabled at runtime
+        scheduleRun();
+    }
+
+    private void scheduleRun() {
+        if (threadInfoConfiguration.recordThreadInfo()) {
+            scheduledExecutorService.schedule(
+                    this::run, threadInfoConfiguration.threadInfoSnapshotIntervalMillis(), TimeUnit.MILLISECONDS);
+        }
+    }
+
+    @VisibleForTesting
+    Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot() {
+        return lastKnownThreadInfoSnapshot;
+    }
+
+    /**
+     * Returns a consistent snapshot of thread information restricted to the given lock descriptors wrapped in an
+     * unsafe logging argument.
+     */
+    public UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> getRestrictedSnapshotAsOptionalLogArg(
+            Set<LockDescriptor> lockDescriptors) {
+        String argName = "presumedClientThreadHoldersIfEnabled";
+        if (!threadInfoConfiguration.recordThreadInfo()) {
+            return UnsafeArg.of(argName, Optional.empty());
+        }
+        Map<LockDescriptor, LockClientAndThread> latestSnapshot = lastKnownThreadInfoSnapshot;
+        Map<LockDescriptor, LockClientAndThread> restrictedSnapshot = new HashMap<>();
+        for (LockDescriptor lock : lockDescriptors) {
+            restrictedSnapshot.put(lock, latestSnapshot.get(lock));
+        }
+        return UnsafeArg.of(argName, Optional.of(restrictedSnapshot));
+    }
+
+    @VisibleForTesting
+    void takeSnapshot() {
+        lastKnownThreadInfoSnapshot = tokenMapSupplier.get().keySet().stream()
+                .flatMap(token -> {
+                    LockClientAndThread clientThread = LockClientAndThread.of(
+                            Objects.requireNonNullElse(token.getClient(), LockClientAndThread.UNKNOWN.client()),
+                            Objects.requireNonNullElse(
+                                    token.getRequestingThread(), LockClientAndThread.UNKNOWN.thread()));
+                    return token.getLockDescriptors().stream()
+                            .map(lockDescriptor -> Map.entry(lockDescriptor, clientThread));
+                })
+                // Although a lock can be held by multiple clients/threads, we only remember one to save space
+                .collect(Collectors.toMap(Entry::getKey, Entry::getValue, (existing, replacement) -> existing));
+    }
+
+    @Override
+    public void close() {
+        scheduledExecutorService.shutdown();
+    }
+}u}(jv (aa47bbbffda9b68b9a93e2e31755530993156e4fj Glock-impl/src/test/java/com/palantir/lock/impl/LockServiceImplTest.javaj modifiedj Kj Kj K%j https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X!  @@ -22,16 +22,21 @@
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.lock.LockClient;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRefreshToken;
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.StringLockDescriptor;
 import com.palantir.lock.client.LockRefreshingLockService;
+import com.palantir.logsafe.UnsafeArg;
 import java.io.IOException;
 import java.util.HashSet;
 import java.util.List;
+import java.util.Map;
+import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.TimeUnit;
@@ -49,6 +54,9 @@
 public final class LockServiceImplTest {
     public static final long SLOW_LOG_TRIGGER_MILLIS = LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS + 10;
     private static final String TEST_LOCKID = "test_lockId";
+    private static final LockDescriptor TEST_LOCK = StringLockDescriptor.of(TEST_LOCKID);
+    private static final UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> THREAD_INFO_SNAPSHOT_ARG =
+            UnsafeArg.of("presumedClientThreadHoldersIfEnabled", Optional.empty());
     private static LockServiceImpl lockServiceWithSlowLogEnabled;
     private static LockServiceImpl lockServiceWithSlowLogDisabled;
 
@@ -94,48 +102,63 @@ public void slowLogShouldNotBeEnabledIfSlowLogTriggerMillisIsSetToZero() {
     @Test
     public void slowLogShouldBeLoggedWhenLockResponseIsSlowButShouldNotBeLoggedAtDebug() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS + 5;
-        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertThat(testLockServiceImplLogger.getLoggingEvents()).isEmpty();
 
         assertThat(testSlowLogger.getLoggingEvents()).hasSize(1);
         assertContainsMatchingLoggingEvent(
                 testSlowLogger.getLoggingEvents(),
-                warn("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                warn(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
     }
 
     @Test
     public void debugLogShouldBeLoggedWhenLockResponseIsSlowButSlowLogIsDisabled() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS + 5;
-        lockServiceWithSlowLogDisabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogDisabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertThat(testLockServiceImplLogger.getLoggingEvents()).hasSize(1);
         assertContainsMatchingLoggingEvent(
                 testLockServiceImplLogger.getLoggingEvents(),
-                debug("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                debug(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }
 
     @Test
     public void debugLogShouldBeLoggedIfLockResponseTimeIsBetweenDebugTriggerTimeAndSlowLogTriggerMillis() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS - 5;
-        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertContainsMatchingLoggingEvent(
                 testLockServiceImplLogger.getLoggingEvents(),
-                debug("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                debug(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }
 
     @Test
     public void debugOrSlowLogShouldNotBeLoggedWhenLockResponseIsNotSlow() {
         lockServiceWithSlowLogEnabled.logSlowLockAcquisition(
-                TEST_LOCKID, LockClient.ANONYMOUS, LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS - 5);
+                TEST_LOCK, LockClient.ANONYMOUS, LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS - 5);
         assertThat(testLockServiceImplLogger.getLoggingEvents()).isEmpty();
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }u}(jv (bb40ec0ce734aeef758d1e8bd2b8a0433d7bd1dfj Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javaj addedj MZj K j MZj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X?  @@ -0,0 +1,346 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableSortedMap;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.common.streams.KeyedStream;
+import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
+import com.palantir.lock.LockClient;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.LockMode;
+import com.palantir.lock.LockRequest;
+import com.palantir.lock.LockResponse;
+import com.palantir.lock.LockServerOptions;
+import com.palantir.lock.SimpleTimeDuration;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.logsafe.UnsafeArg;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Future;
+import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.awaitility.Awaitility;
+import org.junit.Test;
+
+public class ThreadInfoLockServiceImplTest {
+    private static final LockDescriptor TEST_LOCK_1 = StringLockDescriptor.of("lock-1");
+    private static final LockDescriptor TEST_LOCK_2 = StringLockDescriptor.of("lock-2");
+    private static final LockDescriptor TEST_LOCK_3 = StringLockDescriptor.of("lock-3");
+
+    private static final String TEST_THREAD_1 = "thread-1";
+    private static final String TEST_THREAD_2 = "thread-2";
+    private static final String TEST_THREAD_3 = "thread-3";
+
+    private static final LockRequest LOCK_1_THREAD_1_WRITE_REQUEST = LockRequest.builder(
+                    ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+            .withCreatingThreadName(TEST_THREAD_1)
+            .build();
+
+    private static final LockClientAndThread ANONYMOUS_TEST_THREAD_1 =
+            LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1);
+
+    private final ExecutorService executor =
+            PTExecutors.newCachedThreadPool(ThreadInfoLockServiceImplTest.class.getName());
+
+    // Disable background snapshotting, invoke explicitly instead
+    private final LockServiceImpl lockService = LockServiceImpl.create(LockServerOptions.builder()
+            .isStandaloneServer(false)
+            .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                    .recordThreadInfo(false)
+                    .build())
+            .build());
+
+    @Test
+    public void initialThreadInfoIsEmpty() {
+        forceSnapshot();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+    }
+
+    @Test
+    public void recordsThreadInfoForLock() throws InterruptedException {
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+    }
+
+    @Test
+    public void recordsThreadInfoForUnlock() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+
+        lockService.unlock(response.getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+    }
+
+    @Test
+    public void recordsThreadInfoForMultipleLocks() throws InterruptedException {
+        int numThreads = 10;
+        int numLocksPerThread = 10;
+
+        List<String> threadNames =
+                IntStream.range(0, numThreads).mapToObj(i -> "test-thread-" + i).collect(Collectors.toList());
+
+        Map<String, Set<LockDescriptor>> locksPerThread = KeyedStream.of(threadNames)
+                .map(threadName -> IntStream.range(0, numLocksPerThread)
+                        .mapToObj(i -> StringLockDescriptor.of("test-lock-" + i + "-from-thread-" + threadName))
+                        .collect(Collectors.toSet()))
+                .collectToMap();
+
+        for (Map.Entry<String, Set<LockDescriptor>> entry : locksPerThread.entrySet()) {
+            LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.copyOf(
+                            entry.getValue().stream().collect(Collectors.toMap(lock -> lock, lock -> LockMode.WRITE))))
+                    .withCreatingThreadName(entry.getKey())
+                    .build();
+            lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest);
+        }
+
+        forceSnapshot();
+
+        locksPerThread.forEach((threadName, lockDescriptors) ->
+                lockDescriptors.forEach(lock -> assertThat(getLatestThreadInfoForLock(lock))
+                        .contains(LockClientAndThread.of(LockClient.ANONYMOUS, threadName))));
+    }
+
+    @Test
+    public void recordsThreadInfoForSharedLock() throws InterruptedException {
+        LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+        LockRequest lockRequest2 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .doNotBlock()
+                .lockAsManyAsPossible()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        LockResponse lockResponse = lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest1);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1).get())
+                .isIn(ANONYMOUS_TEST_THREAD_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+
+        lockService.unlock(lockResponse.getToken());
+
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+    }
+
+    @Test
+    public void doesNotRecordDroppedLocksWithLockAllOrNone() throws InterruptedException {
+        // T2 cannot get lock 1 -> grouping behavior LOCK_ALL_OR_NONE will release lock 2, even though it could have
+        // been locked
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
+                .doNotBlock()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+    }
+
+    @Test
+    public void recordsUnlockAndFreezeForNonAnonymousClient() throws InterruptedException {
+        LockClient client = LockClient.of("non-anonymous-client");
+
+        LockResponse response = lockService.lockWithFullLockResponse(client, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(LockClientAndThread.of(client, TEST_THREAD_1));
+
+        lockService.unlockAndFreeze(response.getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+    }
+
+    @Test
+    public void recordsCorrectStateAfterMultipleOperations() throws Exception {
+        CountDownLatch latch = new CountDownLatch(1);
+
+        // T1 locks 1 exclusively and locks 2 in shared mode
+        LockResponse response1 = lockService.lockWithFullLockResponse(
+                LockClient.ANONYMOUS,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_1)
+                        .build());
+
+        // T2 shouldn't get 1, but locks 3 in exclusive mode,
+        LockResponse response2 = lockService.lockWithFullLockResponse(
+                LockClient.ANONYMOUS,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_3, LockMode.WRITE))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_2)
+                        .build());
+
+        Future<LockResponse> response3 = executor.submit(() -> {
+
+            // T3 will wait at most 5 seconds to lock 1 in exclusive mode and lock 2 in shared mode
+            LockResponse response = lockService.lockWithFullLockResponse(
+                    LockClient.ANONYMOUS,
+                    LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                            .blockForAtMost(SimpleTimeDuration.of(5, TimeUnit.SECONDS))
+                            .lockAsManyAsPossible()
+                            .withCreatingThreadName(TEST_THREAD_3)
+                            .build());
+            latch.countDown();
+            return response;
+        });
+        lockService.unlock(response1.getToken());
+        latch.await();
+
+        forceSnapshot();
+
+        // T1 should hold nothing, T2 holds 3 in exclusive mode, T3 holds 1 in exclusive and 2 in shared mode
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+
+        lockService.unlock(response2.getToken());
+        forceSnapshot();
+
+        // Only T3 should hold locks
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+
+        lockService.unlock(response3.get().getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+    }
+
+    @Test
+    public void refreshDoesNotChangeSnapshot() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+
+        lockService.refreshTokens(List.of(response.getToken()));
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+    }
+
+    @Test
+    public void backgroundSnapshotRunnerWorks() throws InterruptedException {
+        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
+                .isStandaloneServer(false)
+                .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                        .recordThreadInfo(true)
+                        .threadInfoSnapshotIntervalMillis(50L)
+                        .build())
+                .build());
+        LockThreadInfoSnapshotManager backgroundSnapshotRunner = lockServiceWithBackgroundRunner.getSnapshotManager();
+
+        LockResponse response = lockServiceWithBackgroundRunner.lockWithFullLockResponse(
+                LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+
+        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
+                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
+                .containsExactly(Map.entry(TEST_LOCK_1, ANONYMOUS_TEST_THREAD_1)));
+
+        lockServiceWithBackgroundRunner.unlock(response.getToken());
+
+        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
+                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
+                .doesNotContainKey(TEST_LOCK_1));
+    }
+
+    @Test
+    public void logArgIsUnsafeAndContainsEmptyOptionalIfNotRecordingThreadInfo() throws InterruptedException {
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+        assertThat(lockService.getSnapshotManager().getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
+                .isEqualTo(UnsafeArg.of("presumedClientThreadHoldersIfEnabled", Optional.empty()));
+    }
+
+    @Test
+    public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() throws InterruptedException {
+        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
+                .isStandaloneServer(false)
+                .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                        .recordThreadInfo(true)
+                        .threadInfoSnapshotIntervalMillis(50L)
+                        .build())
+                .build());
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
+                .doNotBlock()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockServiceWithBackgroundRunner.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockServiceWithBackgroundRunner.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+
+        Awaitility.waitAtMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(lockServiceWithBackgroundRunner
+                        .getSnapshotManager()
+                        .getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
+                .isEqualTo(UnsafeArg.of(
+                        "presumedClientThreadHoldersIfEnabled",
+                        // Snapshot should be restricted to TEST_LOCK_1
+                        Optional.of(
+                                Map.of(TEST_LOCK_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1))))));
+    }
+
+    private void forceSnapshot() {
+        lockService.getSnapshotManager().takeSnapshot();
+    }
+
+    private Optional<LockClientAndThread> getLatestThreadInfoForLock(LockDescriptor lock) {
+        return Optional.ofNullable(lockService
+                .getSnapshotManager()
+                .getLastKnownThreadInfoSnapshot()
+                .get(lock));
+    }
+}u}(jv (fb11a351d6654b7a0cc3a195858b7025099f9539j %scripts/circle-ci/run-circle-tests.shj modifiedj Kj Kj Kj {https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/scripts%2Fcircle-ci%2Frun-circle-tests.shj zhttps://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/scripts%2Fcircle-ci%2Frun-circle-tests.shj https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X  @@ -2,7 +2,7 @@
 
 set -x
 
-BASE_GRADLE_ARGS="--profile"
+BASE_GRADLE_ARGS="--scan --profile --continue"
 
 function checkDocsBuild {
      pyenv install 3.5.4
@@ -82,7 +82,7 @@ elif [ "$test_suite_index" -eq "3" ]; then
     BASE_GRADLE_ARGS+=" --scan --parallel"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
-    BASE_GRADLE_ARGS+=" --scan --parallel"
+    BASE_GRADLE_ARGS+=" --parallel"
 fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64mu}(jv (f7a0eb86db4453d45c0f6446984396538e442e0bj Itimelock-agent/src/main/java/com/palantir/timelock/paxos/LockCreator.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j XN  @@ -44,7 +44,8 @@ public CloseableLockService createThreadPoolingLockService() {
                 .build();
 
         LockServiceImpl rawLockService = LockServiceImpl.create(lockServerOptions, sharedExecutor);
-        CloseableLockService lockService = BlockingTimeLimitedLockService.create(rawLockService, blockingTimeoutMs);
+        CloseableLockService lockService = BlockingTimeLimitedLockService.create(
+                rawLockService, blockingTimeoutMs, rawLockService.getSnapshotManager());
 
         return new ThreadPooledLockService(lockService, -1, sharedThreadPool);
     }u}(jv (cba6348015c254aa9ba5c6b6a2f959d6673f27dcj btimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockService.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X/
  @@ -32,6 +32,7 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.LockState;
 import com.palantir.lock.SimpleHeldLocksToken;
+import com.palantir.lock.impl.LockThreadInfoSnapshotManager;
 import com.palantir.lock.remoting.BlockingTimeoutException;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
@@ -44,31 +45,45 @@
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.TimeoutException;
+import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import javax.ws.rs.PathParam;
 import org.immutables.value.Value;
 
 public class BlockingTimeLimitedLockService implements CloseableLockService {
     private static final SafeLogger log = SafeLoggerFactory.get(BlockingTimeLimitedLockService.class);
 
+    private static final int MAX_THREADINFO_TO_LOG = 20;
+
     private final CloseableLockService delegate;
     private final TimeLimiter timeLimiter;
     private final long blockingTimeLimitMillis;
 
+    private final LockThreadInfoSnapshotManager threadInfoSnapshotManager;
+
     @VisibleForTesting
     BlockingTimeLimitedLockService(
-            CloseableLockService delegate, TimeLimiter timeLimiter, long blockingTimeLimitMillis) {
+            CloseableLockService delegate,
+            TimeLimiter timeLimiter,
+            long blockingTimeLimitMillis,
+            LockThreadInfoSnapshotManager threadInfoSnapshotManager) {
         this.delegate = delegate;
         this.timeLimiter = timeLimiter;
         this.blockingTimeLimitMillis = blockingTimeLimitMillis;
+        this.threadInfoSnapshotManager = threadInfoSnapshotManager;
     }
 
     public static BlockingTimeLimitedLockService create(
-            CloseableLockService lockService, long blockingTimeLimitMillis) {
+            CloseableLockService lockService,
+            long blockingTimeLimitMillis,
+            LockThreadInfoSnapshotManager threadInfoSnapshotManager) {
         // TODO (jkong): Inject the executor to allow application lifecycle managed executors.
         // Currently maintaining existing behaviour.
         return new BlockingTimeLimitedLockService(
-                lockService, SimpleTimeLimiter.create(PTExecutors.newCachedThreadPool()), blockingTimeLimitMillis);
+                lockService,
+                SimpleTimeLimiter.create(PTExecutors.newCachedThreadPool()),
+                blockingTimeLimitMillis,
+                threadInfoSnapshotManager);
     }
 
     @Nullable
@@ -234,7 +249,11 @@ private BlockingTimeoutException logAndHandleTimeout(LockRequestSpecification sp
                 SafeArg.of("timeoutDurationMillis", blockingTimeLimitMillis),
                 SafeArg.of("method", specification.method()),
                 SafeArg.of("client", specification.client()),
-                UnsafeArg.of("lockRequest", specification.lockRequest()));
+                UnsafeArg.of("lockRequest", specification.lockRequest()),
+                threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(
+                        specification.lockRequest().getLockDescriptors().stream()
+                                .limit(MAX_THREADINFO_TO_LOG)
+                                .collect(Collectors.toSet())));
 
         String errorMessage = String.format(
                 logMessage.replace("{}", "%s"),u}(jv (ba84282c91e1c85c2d25288ffc78e1895ce61edej ftimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockServiceTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.javaj https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.java      j https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.java?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j X:  @@ -33,6 +33,7 @@
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.impl.LockThreadInfoSnapshotManager;
 import com.palantir.lock.remoting.BlockingTimeoutException;
 import java.io.IOException;
 import java.util.concurrent.ExecutionException;
@@ -57,6 +58,8 @@ public class BlockingTimeLimitedLockServiceTest {
 
     private final CloseableLockService delegate = mock(CloseableLockService.class);
 
+    private final LockThreadInfoSnapshotManager snapshotManager = mock(LockThreadInfoSnapshotManager.class);
+
     private final BlockingTimeLimitedLockService acceptingService = createService(acceptingLimiter);
     private final BlockingTimeLimitedLockService timingOutService = createService(timingOutLimiter);
     private final BlockingTimeLimitedLockService interruptingService = createService(interruptingLimiter);
@@ -130,6 +133,6 @@ private void verifyCurrentTimeMillisDelegates(BlockingTimeLimitedLockService ser
     }
 
     private BlockingTimeLimitedLockService createService(TimeLimiter limiter) {
-        return new BlockingTimeLimitedLockService(delegate, limiter, BLOCKING_TIME_LIMIT_MILLIS);
+        return new BlockingTimeLimitedLockService(delegate, limiter, BLOCKING_TIME_LIMIT_MILLIS, snapshotManager);
     }
 }u}(jv (7e6db456799d82898cfe8fc79ce89cc6685ae290j 
versions.lockj modifiedj K$j K$j KHj _https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/versions.lockj ^https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/versions.lockj qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j XA)  @@ -10,22 +10,22 @@ com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
 com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c38132bb)
 com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bbb5dd72)
-com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 03bafb2e)
-com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e133df00)
-com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7e1c9da4)
+com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 06bad036)
+com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e233e000)
+com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7f1c9ea4)
 com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2 (4 constraints: 2244332b)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 333f21b0)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6b30665e)
-com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 312bccaf)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6b30665e)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 343f76b0)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6c30915e)
+com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 322bf7af)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6c30915e)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 40197abb)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 41197bbb)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.2 (2 constraints: 251d9309)
-com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9a1c98a6)
+com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9b1c99a6)
 com.fasterxml.jackson.module:jackson-module-blackbird:2.14.2 (1 constraints: b40e625e)
 com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.2 (2 constraints: db2e8469)
 com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 24cec010)
+com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 2dce2620)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -45,7 +45,7 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (23 constraints: a3788bf6)
+com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f2947442)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
@@ -67,28 +67,28 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:6.77.0 (5 constraints: ad546073)
-com.palantir.conjure.java:conjure-undertow-annotations:6.77.0 (1 constraints: 4605743b)
-com.palantir.conjure.java:conjure-undertow-lib:6.77.0 (2 constraints: 8d1cfdb0)
+com.palantir.conjure.java:conjure-lib:7.5.0 (5 constraints: cd530c72)
+com.palantir.conjure.java:conjure-undertow-annotations:7.5.0 (1 constraints: 0e051d36)
+com.palantir.conjure.java:conjure-undertow-lib:7.5.0 (2 constraints: 1d1c4081)
 com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 3d696e70)
 com.palantir.conjure.java.api:service-config:2.34.0 (5 constraints: 724d79ca)
 com.palantir.conjure.java.api:ssl-config:2.34.0 (3 constraints: e22a0da5)
-com.palantir.conjure.java.runtime:client-config:7.40.0 (6 constraints: a46bdb28)
-com.palantir.conjure.java.runtime:conjure-java-annotations:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.40.0 (2 constraints: c521007b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.40.0 (6 constraints: 306e1085)
-com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.40.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.40.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:keystores:7.40.0 (3 constraints: 162a3e5f)
-com.palantir.conjure.java.runtime:refresh-utils:7.40.0 (2 constraints: 051e6045)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.77.0 (2 constraints: 7f29c101)
-com.palantir.dialogue:dialogue-blocking-channels:3.77.0 (2 constraints: e12335b4)
-com.palantir.dialogue:dialogue-clients:3.77.0 (1 constraints: 4305623b)
-com.palantir.dialogue:dialogue-core:3.77.0 (3 constraints: 833de5e1)
-com.palantir.dialogue:dialogue-futures:3.77.0 (3 constraints: da3348c0)
-com.palantir.dialogue:dialogue-serde:3.77.0 (3 constraints: c12e6ba4)
-com.palantir.dialogue:dialogue-target:3.77.0 (7 constraints: 9e760764)
+com.palantir.conjure.java.runtime:client-config:7.45.0 (6 constraints: bd6b2133)
+com.palantir.conjure.java.runtime:conjure-java-annotations:7.45.0 (1 constraints: c6188d9e)
+com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.45.0 (2 constraints: ca210f7b)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.45.0 (6 constraints: 3f6ee88e)
+com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.45.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.45.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.45.0 (1 constraints: c6188d9e)
+com.palantir.conjure.java.runtime:keystores:7.45.0 (3 constraints: 202a4c60)
+com.palantir.conjure.java.runtime:refresh-utils:7.45.0 (2 constraints: 0a1e6f45)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.78.0 (2 constraints: 83295d02)
+com.palantir.dialogue:dialogue-blocking-channels:3.78.0 (2 constraints: e32369b4)
+com.palantir.dialogue:dialogue-clients:3.78.0 (1 constraints: 4405653b)
+com.palantir.dialogue:dialogue-core:3.78.0 (3 constraints: 883d62e3)
+com.palantir.dialogue:dialogue-futures:3.78.0 (3 constraints: dd33dac0)
+com.palantir.dialogue:dialogue-serde:3.78.0 (3 constraints: c62e7fa5)
+com.palantir.dialogue:dialogue-target:3.78.0 (7 constraints: a7763c6a)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -98,7 +98,7 @@ com.palantir.goethe:goethe:0.9.0 (1 constraints: 0b050636)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
 com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
-com.palantir.safe-logging:logger:3.2.0 (23 constraints: 4e88492a)
+com.palantir.safe-logging:logger:3.2.0 (24 constraints: 98a4d6fa)
 com.palantir.safe-logging:logger-slf4j:3.2.0 (1 constraints: 000e5942)
 com.palantir.safe-logging:logger-spi:3.2.0 (2 constraints: 0f1e997a)
 com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: f7178aeb)
@@ -108,14 +108,14 @@ com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
 com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 485c7290)
 com.palantir.tracing:tracing:6.17.0 (8 constraints: f97d045e)
 com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 1745b4f5)
-com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 441994bb)
+com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 46199abb)
 com.palantir.tritium:tritium-api:0.64.0 (6 constraints: 5052c7ce)
 com.palantir.tritium:tritium-caffeine:0.64.0 (1 constraints: 3c05433b)
 com.palantir.tritium:tritium-core:0.64.0 (5 constraints: 5d43281d)
 com.palantir.tritium:tritium-lib:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f16b49d8)
+com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f96b65dd)
 com.palantir.tritium:tritium-proxy:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-registry:0.64.0 (12 constraints: f6d27f35)
+com.palantir.tritium:tritium-registry:0.64.0 (13 constraints: 88ef0d92)
 com.palantir.tritium:tritium-slf4j:0.64.0 (2 constraints: bd138370)
 com.palantir.tritium:tritium-time:0.64.0 (1 constraints: 820e8359)
 com.palantir.tritium:tritium-tracing:0.64.0 (1 constraints: 820e8359)
@@ -186,7 +186,7 @@ io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf
 io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
-io.undertow:undertow-core:2.2.24.Final (2 constraints: 361dd006)
+io.undertow:undertow-core:2.2.25.Final (2 constraints: 331dfa06)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
@@ -195,7 +195,7 @@ jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 26793e31)
 jakarta.inject:jakarta.inject-api:1.0.5 (13 constraints: decbc9f9)
 jakarta.servlet:jakarta.servlet-api:4.0.4 (10 constraints: 7b9def70)
 jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
-jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (18 constraints: 5a38d98d)
+jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (17 constraints: 6f283f6d)
 jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.5 (6 constraints: 845987f4)u}(jv (2264b52adc181a5229efb8c18e921b0c209e904aj versions.propsj modifiedj Kj Kj Kj `https://github.com/palantir/atlasdb/blob/737b525a3dbc6cecd1acbe4987020ef77230b6f8/versions.propsj _https://github.com/palantir/atlasdb/raw/737b525a3dbc6cecd1acbe4987020ef77230b6f8/versions.propsj rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=737b525a3dbc6cecd1acbe4987020ef77230b6f8j XG  @@ -25,9 +25,9 @@ com.palantir.common:streams = 2.1.0
 com.palantir.config.crypto:* = 5.1.0
 com.palantir.conjure.java.api:* = 2.29.0
 com.palantir.conjure.java.runtime:* = 7.39.0
-com.palantir.conjure.java:* = 6.77.0
-com.palantir.conjure:conjure = 4.35.0
-com.palantir.dialogue:* = 3.77.0
+com.palantir.conjure.java:* = 7.5.0
+com.palantir.conjure:conjure = 4.36.0
+com.palantir.dialogue:* = 3.78.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
 com.palantir.goethe:* = 0.9.0
@@ -46,7 +46,7 @@ commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
 io.netty:* = 4.1.90.Final
-io.undertow:* = 2.2.24.Final
+io.undertow:* = 2.2.25.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2ueu(b2b645ef11a7fb8f1ab565f8ea2bf680157f1fbb}(sha(b2b645ef11a7fb8f1ab565f8ea2bf680157f1fbbnode_idEC_kwDOAjP5fdoAKGIyYjY0NWVmMTFhN2ZiOGYxYWI1NjVmOGVhMmJmNjgwMTU3ZjFmYmIcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-16T00:18:42Zu	committer}(j! 
Ahmed Alouanej! aalouane@palantir.comj! 2023-05-16T00:18:42ZumessageJMerge branch 'tlmetexxxxx' of github.com:palantir/atlasdb into tlmetexxxxxtree}(j! (ce7865bf0edfa04bea4d05f5def6ab86c20d82faurl`https://api.github.com/repos/palantir/atlasdb/git/trees/ce7865bf0edfa04bea4d05f5def6ab86c20d82fauj! bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b2b645ef11a7fb8f1ab565f8ea2bf680157f1fbb
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiy+MACgkQPlMHVIT1
yhpwOQgAtUUROK76FIp46CeBpoON5TNuGUVORV/j8dQnfK8ojkV4UwiJcqe0Zgjq
3M6fiPCfyftgpwXwFecaM9a8acybEF67IkKYv2GA8cTvRwL5kbQu8dQVpX0FSW9C
ehUM+fcQcDKKKUFB2/xmfZuP9pisfU6fhDUY5ffaW960sBUe0yT3H0pF0mOIBCma
nu/YT8gVZ/rJdI2QIz6RSJEcAi+ESMu3Cb83B/XJyP1SGjProi7NIbsVbWn93Kw3
HbeAAhvtmSoQxYuJQ7fbeqyP36rGP8BAl8iF+BOduF6u7xNH/9XqyMIi/nVNphAz
tgTtrIZjgpi+MEa8soUsceP/jEXpuA==
=ewyp
-----END PGP SIGNATURE-----payloadXY  tree ce7865bf0edfa04bea4d05f5def6ab86c20d82fa
parent c0cd822c1ead50a67a0d5e7a2c1424d9b9366b2c
parent 88f7a28cb52b773a3f069ba0d4bf3448e54266fa
author Ahmed Alouane <aalouane@palantir.com> 1684196322 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684196322 +0100

Merge branch 'tlmetexxxxx' of github.com:palantir/atlasdb into tlmetexxxxx
uuj! ^https://api.github.com/repos/palantir/atlasdb/commits/b2b645ef11a7fb8f1ab565f8ea2bf680157f1fbbhtml_urlShttps://github.com/palantir/atlasdb/commit/b2b645ef11a7fb8f1ab565f8ea2bf680157f1fbbcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b2b645ef11a7fb8f1ab565f8ea2bf680157f1fbb/commentsj! }(loginergo14idJj! MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j! #https://api.github.com/users/ergo14j! https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj! }(j! ergo14j! Jj! MDQ6VXNlcjMwOTAzNzM2j! 4https://avatars.githubusercontent.com/u/30903736?v=4j! h5j! #https://api.github.com/users/ergo14j! https://github.com/ergo14j! -https://api.github.com/users/ergo14/followersj! :https://api.github.com/users/ergo14/following{/other_user}j" 3https://api.github.com/users/ergo14/gists{/gist_id}j" :https://api.github.com/users/ergo14/starred{/owner}{/repo}j" 1https://api.github.com/users/ergo14/subscriptionsj" (https://api.github.com/users/ergo14/orgsj	" )https://api.github.com/users/ergo14/reposj" 4https://api.github.com/users/ergo14/events{/privacy}j
" 3https://api.github.com/users/ergo14/received_eventsj" Userj" uparents](}(j! (c0cd822c1ead50a67a0d5e7a2c1424d9b9366b2cj! ^https://api.github.com/repos/palantir/atlasdb/commits/c0cd822c1ead50a67a0d5e7a2c1424d9b9366b2cj! Shttps://github.com/palantir/atlasdb/commit/c0cd822c1ead50a67a0d5e7a2c1424d9b9366b2cu}(j! (88f7a28cb52b773a3f069ba0d4bf3448e54266faj! ^https://api.github.com/repos/palantir/atlasdb/commits/88f7a28cb52b773a3f069ba0d4bf3448e54266faj! Shttps://github.com/palantir/atlasdb/commit/88f7a28cb52b773a3f069ba0d4bf3448e54266fauestats}(totalK 	additionsK 	deletionsK ufiles]u(7daafb5faa6f64e8ebb90c5d1a744efa199a882f}(sha(7daafb5faa6f64e8ebb90c5d1a744efa199a882fnode_idEC_kwDOAjP5fdoAKDdkYWFmYjVmYWE2ZjY0ZThlYmI5MGM1ZDFhNzQ0ZWZhMTk5YTg4MmYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-12T13:04:19Zu	committer}(j=" 
Ahmed Alouanej?" aalouane@palantir.comjA" 2023-05-12T13:04:19Zumessageauthytree}(j5" (b224a752240fa06db586aa2164d6a60b47819fd7url`https://api.github.com/repos/palantir/atlasdb/git/trees/b224a752240fa06db586aa2164d6a60b47819fd7ujM" bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7daafb5faa6f64e8ebb90c5d1a744efa199a882f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmReOVMACgkQPlMHVIT1
yhqvhwf/b8ac8km6x+NzNCfLhgUB7nEHzaQH0JxfMMoUMgJaKd5iUzrGtipvAo0C
Oz7CCun8ZGhq5pPaH6KR1KItJ5f9EVWfu9f6G/OILOB4xJMby19e3SzQryvlgLwQ
4+Nd9o4Z4DModGiaXdVztIS/QF6xOWPEbr6otIsueCNS6ENdzDd1h1u4R2hX5KfS
xN7XO7CdreADLdtDTXlfXtQ//IZN9wmSp4pZAcrltBk/ALd6Fr0Ne++aeY1S3srA
aTk89mWpTe2WQF0MAUg0KS3yZ/pu0jGz4b1s04n2NWz3GHv1UAWAlx0TFQdRLbe8
bR8BUUnx0boSwFjH95jE4WHufTnqHA==
=Vh76
-----END PGP SIGNATURE-----payloadtree b224a752240fa06db586aa2164d6a60b47819fd7
parent 3824a97b89fdd75569c2645e28b8b2095e5dde37
author Ahmed Alouane <aalouane@palantir.com> 1683896659 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1683896659 +0100

authy
uujM" ^https://api.github.com/repos/palantir/atlasdb/commits/7daafb5faa6f64e8ebb90c5d1a744efa199a882fhtml_urlShttps://github.com/palantir/atlasdb/commit/7daafb5faa6f64e8ebb90c5d1a744efa199a882fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7daafb5faa6f64e8ebb90c5d1a744efa199a882f/commentsj;" }(loginergo14idJj7" MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jM" #https://api.github.com/users/ergo14j[" https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujC" }(j`" ergo14jb" Jj7" MDQ6VXNlcjMwOTAzNzM2jd" 4https://avatars.githubusercontent.com/u/30903736?v=4jf" h5jM" #https://api.github.com/users/ergo14j[" https://github.com/ergo14ji" -https://api.github.com/users/ergo14/followersjk" :https://api.github.com/users/ergo14/following{/other_user}jm" 3https://api.github.com/users/ergo14/gists{/gist_id}jo" :https://api.github.com/users/ergo14/starred{/owner}{/repo}jq" 1https://api.github.com/users/ergo14/subscriptionsjs" (https://api.github.com/users/ergo14/orgsju" )https://api.github.com/users/ergo14/reposjw" 4https://api.github.com/users/ergo14/events{/privacy}jy" 3https://api.github.com/users/ergo14/received_eventsj{" Userj}" uparents]}(j5" (3824a97b89fdd75569c2645e28b8b2095e5dde37jM" ^https://api.github.com/repos/palantir/atlasdb/commits/3824a97b89fdd75569c2645e28b8b2095e5dde37j[" Shttps://github.com/palantir/atlasdb/commit/3824a97b89fdd75569c2645e28b8b2095e5dde37uastats}(totalK	additionsK	deletionsKufiles]}(j5" (fcb27aa89347a757eda53d2127f174d338975748filename.circleci/config.ymlstatusmodifiedj" Kj" KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/7daafb5faa6f64e8ebb90c5d1a744efa199a882f/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/7daafb5faa6f64e8ebb90c5d1a744efa199a882f/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=7daafb5faa6f64e8ebb90c5d1a744efa199a882fpatchX  @@ -88,7 +88,7 @@ jobs:
       - run:
           name: "Cancel workflows on failure"
           command: |
-            curl --request POST --url https://circleci.com/api/v2/workflow/$CIRCLE_WORKFLOW_ID/cancel -u "$CIRCLE_WORKFLOW_ID:"
+            curl --request POST --url https://circleci.com/api/v2/workflow/$CIRCLE_WORKFLOW_ID/cancel -u "$CIRCLE_AUTH_TOKEN:"
           when: on_fail
 
   trial-publish:uau(658064598f7cdc2ad2b06f11bf9f418f59ab316e}(sha(658064598f7cdc2ad2b06f11bf9f418f59ab316enode_idEC_kwDOAjP5fdoAKDY1ODA2NDU5OGY3Y2RjMmFkMmIwNmYxMWJmOWY0MThmNTlhYjMxNmUcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-03-10T19:59:42Zu	committer}(j" David Schlosnaglej" davids@palantir.comj" 2023-03-10T19:59:42ZumessageUpdate slf4j javadocs linktree}(j" (9c33f86720e364dafe24fc6712c6d9505405e2b1url`https://api.github.com/repos/palantir/atlasdb/git/trees/9c33f86720e364dafe24fc6712c6d9505405e2b1uj" bhttps://api.github.com/repos/palantir/atlasdb/git/commits/658064598f7cdc2ad2b06f11bf9f418f59ab316e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmQLjC4ACgkQR9hsJ74Q
0l8LBwf/Yggwt9NEFMyEO++DMNZHsxtf9AQkdb+fQoqAnodrDPwA/rcTIVOmo6jL
ULvNVG/qTXe+DuZRCv0Yv2g2U4SViRz3NCDHQ81amBexjfLEgws1nfu6P0goekPM
Vy7efKguxUdWuwONKCcfS1KV5PXfvU1mmS+phf5Ns8kGXexdkPoTZAmJq49ULwzd
BMIKpBa3fNzgnE+MYlUASpw4+J7k0PimcO7kBazwLOYIZs4kGxTR0x8fadHLtTd/
zkRjsAFR4WqE+ZEo+XJeAGdReFt0JWUdv2LY81FVc4bDv1I+1mJm0AwBPE5xoKgp
4ts0dhz8SfZRfz/uSfjoMLRwA6e2Jw==
=GP+Z
-----END PGP SIGNATURE-----payloadtree 9c33f86720e364dafe24fc6712c6d9505405e2b1
parent f1bba94c8274f7f6320456eff60b71c6b9c3aa7a
author David Schlosnagle <davids@palantir.com> 1678478382 -0500
committer David Schlosnagle <davids@palantir.com> 1678478382 -0500

Update slf4j javadocs link
uuj" ^https://api.github.com/repos/palantir/atlasdb/commits/658064598f7cdc2ad2b06f11bf9f418f59ab316ehtml_urlShttps://github.com/palantir/atlasdb/commit/658064598f7cdc2ad2b06f11bf9f418f59ab316ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/658064598f7cdc2ad2b06f11bf9f418f59ab316e/commentsj" }(loginschlosnaidMBj" MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j" %https://api.github.com/users/schlosnaj" https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj" }(j" schlosnaj" MBj" MDQ6VXNlcjU0NTk0j" 1https://avatars.githubusercontent.com/u/54594?v=4j" h5j" %https://api.github.com/users/schlosnaj" https://github.com/schlosnaj" /https://api.github.com/users/schlosna/followersj" <https://api.github.com/users/schlosna/following{/other_user}j" 5https://api.github.com/users/schlosna/gists{/gist_id}j" <https://api.github.com/users/schlosna/starred{/owner}{/repo}j" 3https://api.github.com/users/schlosna/subscriptionsj" *https://api.github.com/users/schlosna/orgsj" +https://api.github.com/users/schlosna/reposj" 6https://api.github.com/users/schlosna/events{/privacy}j" 5https://api.github.com/users/schlosna/received_eventsj" Userj" uparents]}(j" (f1bba94c8274f7f6320456eff60b71c6b9c3aa7aj" ^https://api.github.com/repos/palantir/atlasdb/commits/f1bba94c8274f7f6320456eff60b71c6b9c3aa7aj" Shttps://github.com/palantir/atlasdb/commit/f1bba94c8274f7f6320456eff60b71c6b9c3aa7auastats}(totalK	additionsK	deletionsKufiles]}(j" (3994a4156f5f1b7d791af130008c1a4cfb599804filenamegradle/javadoc.gradlestatusmodifiedj# Kj# KchangesKblob_urlihttps://github.com/palantir/atlasdb/blob/658064598f7cdc2ad2b06f11bf9f418f59ab316e/gradle%2Fjavadoc.gradleraw_urlhhttps://github.com/palantir/atlasdb/raw/658064598f7cdc2ad2b06f11bf9f418f59ab316e/gradle%2Fjavadoc.gradlecontents_url{https://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fjavadoc.gradle?ref=658064598f7cdc2ad2b06f11bf9f418f59ab316epatch@@ -4,4 +4,4 @@
 
 exclude '**/examples/**'
 options.links 'https://docs.oracle.com/javase/7/docs/api/'
-options.links 'http://www.slf4j.org/apidocs/'
+options.links 'https://www.slf4j.org/apidocs/'uau(7e70f58b68eea6aebdfdba75b6a7cd11397f2d00}(sha(7e70f58b68eea6aebdfdba75b6a7cd11397f2d00node_idEC_kwDOAjP5fdoAKDdlNzBmNThiNjhlZWE2YWViZGZkYmE3NWI2YTdjZDExMzk3ZjJkMDAcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-08T23:41:47Zu	committer}(j+# 
Ahmed Alouanej-# aalouane@palantir.comj/# 2023-05-08T23:41:47Zumessagetesting fail fast fasttree}(j## (83d3c0675dda2d63a82ebca8bd4fb427eb49e05curl`https://api.github.com/repos/palantir/atlasdb/git/trees/83d3c0675dda2d63a82ebca8bd4fb427eb49e05cuj;# bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7e70f58b68eea6aebdfdba75b6a7cd11397f2d00
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRZiLsACgkQPlMHVIT1
yhphgwf/f3XOF+bEZ+Pqb2Zqg/KTEsxf0jnMEk6b2RfW5a6NLUTTbcRn44fTiRtS
tCIRxqrCiRsaZo5VISGswtTkpP4WCYjVVvLCrc0fJ3mb7Z+X5q3KIl/ZLQE0/fn+
pz0qZFIQCYuJLcfiXlUS6I+93IL8Q3xtkRSLQ3Asc4jTuzL6yGzJaAOKu4MBSrOZ
UXb5d9PyBnXx6L1GN959J8Ct0/bev3tpH+odv8bTT5FCGNzYjyhDn/pPBJPL+Lbn
X/HGmFheCT97z2BcUGr0Zl2TtEeTkHVc+U44vhsGQK64ZB8QmEr6tBY+rBuOVURj
tf/HIjbNLty24oYx6b14EZD7yh5bTA==
=j71a
-----END PGP SIGNATURE-----payloadtree 83d3c0675dda2d63a82ebca8bd4fb427eb49e05c
parent 24d38b90f222b9298eefc07356e553a78a9396a2
author Ahmed Alouane <aalouane@palantir.com> 1683589307 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1683589307 +0100

testing fail fast fast
uuj;# ^https://api.github.com/repos/palantir/atlasdb/commits/7e70f58b68eea6aebdfdba75b6a7cd11397f2d00html_urlShttps://github.com/palantir/atlasdb/commit/7e70f58b68eea6aebdfdba75b6a7cd11397f2d00comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7e70f58b68eea6aebdfdba75b6a7cd11397f2d00/commentsj)# }(loginergo14idJj%# MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j;# #https://api.github.com/users/ergo14jI# https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj1# }(jN# ergo14jP# Jj%# MDQ6VXNlcjMwOTAzNzM2jR# 4https://avatars.githubusercontent.com/u/30903736?v=4jT# h5j;# #https://api.github.com/users/ergo14jI# https://github.com/ergo14jW# -https://api.github.com/users/ergo14/followersjY# :https://api.github.com/users/ergo14/following{/other_user}j[# 3https://api.github.com/users/ergo14/gists{/gist_id}j]# :https://api.github.com/users/ergo14/starred{/owner}{/repo}j_# 1https://api.github.com/users/ergo14/subscriptionsja# (https://api.github.com/users/ergo14/orgsjc# )https://api.github.com/users/ergo14/reposje# 4https://api.github.com/users/ergo14/events{/privacy}jg# 3https://api.github.com/users/ergo14/received_eventsji# Userjk# uparents]}(j## (24d38b90f222b9298eefc07356e553a78a9396a2j;# ^https://api.github.com/repos/palantir/atlasdb/commits/24d38b90f222b9298eefc07356e553a78a9396a2jI# Shttps://github.com/palantir/atlasdb/commit/24d38b90f222b9298eefc07356e553a78a9396a2uastats}(totalK	additionsK	deletionsKufiles](}(j## (21dd35143d6e70c512522e056815abe591dbffc2filename.circleci/config.ymlstatusmodifiedj# K j# KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/7e70f58b68eea6aebdfdba75b6a7cd11397f2d00/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/7e70f58b68eea6aebdfdba75b6a7cd11397f2d00/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=7e70f58b68eea6aebdfdba75b6a7cd11397f2d00patchX$  @@ -1,12 +1,6 @@
 version: 2.1
 
 jobs:
-  noop:
-    docker:
-      - image: cimg/openjdk:11.0.10-node
-    resource_class: small
-    steps:
-      - run: echo "Done"
   build:
     docker:
       - image: cimg/openjdk:11.0.10-node
@@ -164,11 +158,6 @@ workflows:
               only: /(tlmete.*|develop)/
             tags:
               only: /.*/
-      - noop:
-          requires: [test-no-tl, test-tl]
-          filters:
-            tags:
-              only: /.*/
       - trial-publish:
           requires: [build]
           filters:u}(j## (0336f64855ccf9783d798008a7fb632ba986af1ej# Vatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/TimeLockMigrationEteTest.javaj# modifiedj# Kj# K j# Kj# https://github.com/palantir/atlasdb/blob/7e70f58b68eea6aebdfdba75b6a7cd11397f2d00/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.javaj# https://github.com/palantir/atlasdb/raw/7e70f58b68eea6aebdfdba75b6a7cd11397f2d00/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.javaj# https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.java?ref=7e70f58b68eea6aebdfdba75b6a7cd11397f2d00j# X  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.ete;
 
+import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.catchThrowable;
 
 import com.google.common.util.concurrent.Uninterruptibles;
@@ -169,6 +170,11 @@ public void automaticallyMigratesTimestampsAndFailsOnRestart() throws Exception
         CLIENT_ORCHESTRATION_RULE.stopAtlasClient();
     }
 
+    @Test
+    public void bizarreMathTest() {
+        assertThat(1 + 1).isEqualTo(5);
+    }
+
     private void upgradeAtlasClientToTimelock() {
         CLIENT_ORCHESTRATION_RULE.updateClientConfig(TEST_CONTEXT.eteConfigWithTimeLock());
         CLIENT_ORCHESTRATION_RULE.restartAtlasClient();ueu(bc61f18bfe26f75725f83c1e686f03a03c535d73}(sha(bc61f18bfe26f75725f83c1e686f03a03c535d73node_idEC_kwDOAjP5fdoAKGJjNjFmMThiZmUyNmY3NTcyNWY4M2MxZTY4NmYwM2EwM2M1MzVkNzMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-03T10:31:48Zu	committer}(j# 
Sam Kramerj# skramer@palantir.comj# 2023-05-03T10:31:48Zumessageaddress nitstree}(j# (36a437bcc520f1d6b74f2be47f4e765c2f3f9eaaurl`https://api.github.com/repos/palantir/atlasdb/git/trees/36a437bcc520f1d6b74f2be47f4e765c2f3f9eaauj# bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bc61f18bfe26f75725f83c1e686f03a03c535d73
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRSOBQACgkQmPPOpKR4
XS23LAf/XZfwgYJ9KV5qGvivolKuip4Hm69uM+81O4BEPOhGj6dmKOOHonh99vhI
eVLR5TT8MZzzCj5DLfoMXTe83F57thcLq0+PgfFF7GZn2pT5u4mC4NnFDqR4u7wm
6AaU/OvS7Oq9qUqSAhmhl36rl0VmNYmZCXmC2qkISPR1rZNtFAx+5Hc8Q1kTBUgy
sJT2JO4I9ZbJNYXCWEnVbzMcIMhodQ2x3sgnoJxPBShpYm7nRWCaZjHntuiR8zZC
sTQYmKbgLmZg0qffewdh/g9jkd33aYGk5qfRc78CyjgHHc+eMELZ91ZhzUAZGL/g
8Cpzb5ckA/dnq6tDrkfH4O/7qRwNBw==
=eqwC
-----END PGP SIGNATURE-----payloadtree 36a437bcc520f1d6b74f2be47f4e765c2f3f9eaa
parent f8bf34176eae5fa8f2122a40292f5b8aee0f9b9b
author Sam Kramer <skramer@palantir.com> 1683109908 +0100
committer Sam Kramer <skramer@palantir.com> 1683109908 +0100

address nits
uuj# ^https://api.github.com/repos/palantir/atlasdb/commits/bc61f18bfe26f75725f83c1e686f03a03c535d73html_urlShttps://github.com/palantir/atlasdb/commit/bc61f18bfe26f75725f83c1e686f03a03c535d73comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bc61f18bfe26f75725f83c1e686f03a03c535d73/commentsj# }(login
Sam-KrameridJ^2_ j# MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j# 'https://api.github.com/users/Sam-Kramerj# https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj# }(j# 
Sam-Kramerj# J^2_ j# MDQ6VXNlcjYyMzg4MTQ=j# 3https://avatars.githubusercontent.com/u/6238814?v=4j# h5j# 'https://api.github.com/users/Sam-Kramerj# https://github.com/Sam-Kramerj# 1https://api.github.com/users/Sam-Kramer/followersj# >https://api.github.com/users/Sam-Kramer/following{/other_user}j# 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j# >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j# 5https://api.github.com/users/Sam-Kramer/subscriptionsj# ,https://api.github.com/users/Sam-Kramer/orgsj# -https://api.github.com/users/Sam-Kramer/reposj# 8https://api.github.com/users/Sam-Kramer/events{/privacy}j# 7https://api.github.com/users/Sam-Kramer/received_eventsj# Userj# uparents]}(j# (f8bf34176eae5fa8f2122a40292f5b8aee0f9b9bj# ^https://api.github.com/repos/palantir/atlasdb/commits/f8bf34176eae5fa8f2122a40292f5b8aee0f9b9bj# Shttps://github.com/palantir/atlasdb/commit/f8bf34176eae5fa8f2122a40292f5b8aee0f9b9buastats}(totalK#	additionsK	deletionsKufiles](}(j# (f39c2af041c31687d46971e3a13d4940415d01f9filenamekatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ReadableTransactionStore.javastatusmodifiedj$ Kj$ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/bc61f18bfe26f75725f83c1e686f03a03c535d73/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/bc61f18bfe26f75725f83c1e686f03a03c535d73/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.java?ref=bc61f18bfe26f75725f83c1e686f03a03c535d73patchXj  @@ -30,7 +30,7 @@ public interface ReadableTransactionStore {
     Optional<Integer> get(String table, WorkloadCell cell);
 
     /**
-     * Checks the startTimestamp for a given transaction whether it has committed.
+     * Checks whether the transaction with the provided startTimestamp has committed
      */
     boolean isCommitted(long startTimestamp);
 }u}(j# (5a66280426c78d83ed7001fc4ee1aebb894f7578j
$ |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransaction.javaj$ modifiedj$ Kj$ Kj$ Kj$ https://github.com/palantir/atlasdb/blob/bc61f18bfe26f75725f83c1e686f03a03c535d73/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javaj$ https://github.com/palantir/atlasdb/raw/bc61f18bfe26f75725f83c1e686f03a03c535d73/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.java?ref=bc61f18bfe26f75725f83c1e686f03a03c535d73j$ X  @@ -29,8 +29,8 @@ public interface MaybeWitnessedTransaction extends WitnessedTransaction {
     default void check() {
         Preconditions.checkArgument(
                 commitTimestamp().isPresent(),
-                "Commit timestamp must be present in a potentially witnessed transaction, as otherwise it is not"
-                        + " possible to validate whether or not a transaction has been committed.");
+                "Given how the transaction protocol works, a transaction for which we haven't retrieved the commit "
+                        + "timestamp has not written anything of significance to the database");
     }
 
     @Overrideu}(j# (ffbc895344923f90f2a9fbedaca2f32929339b6cj
$ eatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowHistory.javaj$ modifiedj$ Kj$ K j$ Kj$ https://github.com/palantir/atlasdb/blob/bc61f18bfe26f75725f83c1e686f03a03c535d73/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javaj$ https://github.com/palantir/atlasdb/raw/bc61f18bfe26f75725f83c1e686f03a03c535d73/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.java?ref=bc61f18bfe26f75725f83c1e686f03a03c535d73j$ X  @@ -26,5 +26,10 @@ public interface WorkflowHistory {
     // We may want to query the KVS during verification.
     ReadableTransactionStore transactionStore();
 
+    /**
+     * TODO: This should only be a list of
+     * {@link com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction} rather than the general
+     * purpose type.
+     */
     List<WitnessedTransaction> history();
 }u}(j# (08842127fe0610b3fbdae6035edc93154420032bj
$ atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javaj$ modifiedj$ Kj$ Kj$ Kj$ https://github.com/palantir/atlasdb/blob/bc61f18bfe26f75725f83c1e686f03a03c535d73/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj$ https://github.com/palantir/atlasdb/raw/bc61f18bfe26f75725f83c1e686f03a03c535d73/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=bc61f18bfe26f75725f83c1e686f03a03c535d73j$ X  @@ -31,15 +31,15 @@ public class MaybeWitnessedTransactionTest {
     private static final Long COMMIT_TIMESTAMP = 200L;
 
     @Test
-    public void throwsWhenCommitTimestampIsNotPresent() {
+    public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
         assertThatLoggableExceptionThrownBy(() ->
                         MaybeWitnessedTransaction.builder().startTimestamp(100L).build())
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Commit timestamp must be present in a potentially witnessed transaction");
     }
 
     @Test
-    public void doesNotThrowWhenCommitTimestampPresent() {
+    public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
         assertThatCode(() -> MaybeWitnessedTransaction.builder()
                         .startTimestamp(START_TIMESTAMP)
                         .commitTimestamp(COMMIT_TIMESTAMP)u}(j# (6871e6633db3c7f6293f93c4496e8f449116f688j
$ fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj$ modifiedj$ Kj$ Kj$ Kj$ https://github.com/palantir/atlasdb/blob/bc61f18bfe26f75725f83c1e686f03a03c535d73/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj$ https://github.com/palantir/atlasdb/raw/bc61f18bfe26f75725f83c1e686f03a03c535d73/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=bc61f18bfe26f75725f83c1e686f03a03c535d73j$ X  @@ -90,11 +90,11 @@ public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction>
                 Suppliers.memoize(() -> new CommitTimestampProvider());
         try {
             transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
+                transactionReference.set(txn);
                 AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
                         new AtlasDbInteractiveTransaction(txn, tables);
                 interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
                 witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
-                transactionReference.set(txn);
                 return null;
             });
 u}(j# (5ec56f77b39005e45c63e6495f68b817646fecc6j
$ jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj$ modifiedj$ Kj$ Kj$ Kj$ https://github.com/palantir/atlasdb/blob/bc61f18bfe26f75725f83c1e686f03a03c535d73/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj$ https://github.com/palantir/atlasdb/raw/bc61f18bfe26f75725f83c1e686f03a03c535d73/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=bc61f18bfe26f75725f83c1e686f03a03c535d73j$ X=  @@ -172,11 +172,11 @@ public void abortedTransactionsReturnEmpty() {
     public void keyAlreadyExistExceptionResultsInMaybeWitnessedTransaction() {
         WriteTransactionAction writeTransactionAction =
                 WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
-        TransactionManager onlyThrowsKeyAlreadyExistsExceptionManager = spy(manager);
-        doAnswer(answer -> {
-                    Supplier<CommitTimestampProvider> commitTimestampFetcher = answer.getArgument(0);
+        TransactionManager keyAlreadyExistsExceptionThrowingStore = spy(manager);
+        doAnswer(invocation -> {
+                    Supplier<CommitTimestampProvider> commitTimestampFetcher = invocation.getArgument(0);
                     ConditionAwareTransactionTask<Void, CommitTimestampProvider, Exception> task =
-                            answer.getArgument(1);
+                            invocation.getArgument(1);
                     return manager.runTaskWithConditionWithRetry(commitTimestampFetcher, (txn, condition) -> {
                         manager.getKeyValueService()
                                 .putUnlessExists(
@@ -189,10 +189,10 @@ public void keyAlreadyExistExceptionResultsInMaybeWitnessedTransaction() {
                         return null;
                     });
                 })
-                .when(onlyThrowsKeyAlreadyExistsExceptionManager)
+                .when(keyAlreadyExistsExceptionThrowingStore)
                 .runTaskWithConditionWithRetry(any(Supplier.class), any());
         AtlasDbTransactionStore onlyKeyAlreadyExistsThrowingStore =
-                AtlasDbTransactionStore.create(onlyThrowsKeyAlreadyExistsExceptionManager, TABLES_TO_ATLAS_METADATA);
+                AtlasDbTransactionStore.create(keyAlreadyExistsExceptionThrowingStore, TABLES_TO_ATLAS_METADATA);
         assertThat(onlyKeyAlreadyExistsThrowingStore.readWrite(List.of(writeTransactionAction)))
                 .hasValueSatisfying(witnessedTransaction -> {
                     assertThat(witnessedTransaction).isInstanceOf(MaybeWitnessedTransaction.class);u}(j# (d495a71c18ca7b125092f092c371e0a4a455ad73j
$ atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitorTest.javaj$ modifiedj$ Kj$ Kj$ Kj$ https://github.com/palantir/atlasdb/blob/bc61f18bfe26f75725f83c1e686f03a03c535d73/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javaj$ https://github.com/palantir/atlasdb/raw/bc61f18bfe26f75725f83c1e686f03a03c535d73/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javaj$ X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.java?ref=bc61f18bfe26f75725f83c1e686f03a03c535d73j$ X  @@ -18,7 +18,7 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.mockito.ArgumentMatchers.anyLong;
-import static org.mockito.Mockito.lenient;
+import static org.mockito.Mockito.verifyNoInteractions;
 import static org.mockito.Mockito.when;
 
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
@@ -35,18 +35,18 @@ public class OnlyCommittedWitnessedTransactionVisitorTest {
 
     private static final MaybeWitnessedTransaction MAYBE_WITNESSED_TRANSACTION = MaybeWitnessedTransaction.builder()
             .startTimestamp(100L)
-            .commitTimestamp(100L)
+            .commitTimestamp(101L)
             .build();
 
     @Mock
     private ReadOnlyTransactionStore transactionStore;
 
     @Test
     public void fullyCommittedTransactionsAreNeverChecked() {
-        lenient().when(transactionStore.isCommitted(anyLong())).thenThrow(new RuntimeException());
         assertThat(READ_ONLY_WITNESSED_TRANSACTION.accept(
                         new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
                 .contains(READ_ONLY_WITNESSED_TRANSACTION);
+        verifyNoInteractions(transactionStore);
     }
 
     @Testueu(bbb6e9b27b123bbdd154f28434c9cd972e5f4441}(sha(bbb6e9b27b123bbdd154f28434c9cd972e5f4441node_idEC_kwDOAjP5fdoAKGJiYjZlOWIyN2IxMjNiYmRkMTU0ZjI4NDM0YzljZDk3MmU1ZjQ0NDEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-03-15T19:29:55Zu	committer}(jQ$ Jeremy KongjS$ jkong@palantir.comjU$ 2023-03-15T19:29:55Zumessage!Add witnessed transaction actionstree}(jI$ (0b8dd19fe38e7ca5fbddf2fafd6dded0b35ab35curl`https://api.github.com/repos/palantir/atlasdb/git/trees/0b8dd19fe38e7ca5fbddf2fafd6dded0b35ab35cuja$ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bbb6e9b27b123bbdd154f28434c9cd972e5f4441
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQSHLMACgkQTLdFKain
zjxIewgA3o9bZsoRYHj2VNC7OrSCfA6rrAyasV4q55+HhtxvMck9vw+x6Sjtx2xU
HeyQJlfgcQ/9jDqTIdf6JaRNGr1NycJIn/KlorWdW/FLubZD1rIQZZFL4GhTFBAs
6Sa5n3EZP0rq4vJctlhL+uFb4goJ9ylkO4vMSfQIDIoI43Wr6G1cIx3JruIC7TvX
jTked1hs28FmpE8xG/7pJ0O0mrblbyHQN1egma7RHvSOpwtFrMu9V4dpI1peHdaa
zgU+/KEMQwzrgDR2IJN52wIgmVbIR0HCFUrdAOe/tgtzzfFOS2GeYWc7reeNwWIR
LZeDh46L1p9xy5ZCAXbBVvS78njUPw==
=NgF3
-----END PGP SIGNATURE-----payloadtree 0b8dd19fe38e7ca5fbddf2fafd6dded0b35ab35c
parent 92beca84c3374f34966737cbd0fe5493962e070f
author Jeremy Kong <jkong@palantir.com> 1678908595 +0000
committer Jeremy Kong <jkong@palantir.com> 1678908595 +0000

Add witnessed transaction actions
uuja$ ^https://api.github.com/repos/palantir/atlasdb/commits/bbb6e9b27b123bbdd154f28434c9cd972e5f4441html_urlShttps://github.com/palantir/atlasdb/commit/bbb6e9b27b123bbdd154f28434c9cd972e5f4441comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bbb6e9b27b123bbdd154f28434c9cd972e5f4441/commentsjO$ }(login
jeremyk-91idJZ jK$ MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5ja$ 'https://api.github.com/users/jeremyk-91jo$ https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujW$ }(jt$ 
jeremyk-91jv$ JZ jK$ MDQ6VXNlcjU5NTU1MTA=jx$ 3https://avatars.githubusercontent.com/u/5955510?v=4jz$ h5ja$ 'https://api.github.com/users/jeremyk-91jo$ https://github.com/jeremyk-91j}$ 1https://api.github.com/users/jeremyk-91/followersj$ >https://api.github.com/users/jeremyk-91/following{/other_user}j$ 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j$ >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j$ 5https://api.github.com/users/jeremyk-91/subscriptionsj$ ,https://api.github.com/users/jeremyk-91/orgsj$ -https://api.github.com/users/jeremyk-91/reposj$ 8https://api.github.com/users/jeremyk-91/events{/privacy}j$ 7https://api.github.com/users/jeremyk-91/received_eventsj$ Userj$ uparents]}(jI$ (92beca84c3374f34966737cbd0fe5493962e070fja$ ^https://api.github.com/repos/palantir/atlasdb/commits/92beca84c3374f34966737cbd0fe5493962e070fjo$ Shttps://github.com/palantir/atlasdb/commit/92beca84c3374f34966737cbd0fe5493962e070fuastats}(totalK4	additionsK4	deletionsK ufiles]}(jI$ (c5e51bd0c660ec98669d79deebe767e0ea9b7310filenamepatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javastatusmodifiedj$ K4j$ K changesK4blob_urlhttps://github.com/palantir/atlasdb/blob/bbb6e9b27b123bbdd154f28434c9cd972e5f4441/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/bbb6e9b27b123bbdd154f28434c9cd972e5f4441/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=bbb6e9b27b123bbdd154f28434c9cd972e5f4441patchX  @@ -18,13 +18,37 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Optional;
 import org.junit.Test;
 
 public class SingleRowTwoCellsWorkflowsTest {
     private static final String TABLE_NAME = "coffee";
+    private static final SingleRowTwoCellsWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleRowTwoCellsWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .rateLimit(Double.MAX_VALUE)
+                    .iterationCount(1)
+                    .build();
 
     @Test
     public void shouldWriteToFirstCellOnEvenIndices() {
@@ -79,4 +103,32 @@ public void writesValueCorrespondingToTaskIndexInRelevantCell() {
                         ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
                         ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
     }
+
+    @Test
+    public void workflowHistoryPreservesStoreAndCapturesWitnessedActions() {
+        TransactionStore memoryStore = AtlasDbTransactionStore.create(
+                TransactionManagers.createInMemory(ImmutableSet.of()),
+                ImmutableMap.of(
+                        TableReference.createWithEmptyNamespace(TABLE_NAME),
+                        AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+        WorkflowHistory history = SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
+                        memoryStore, CONFIGURATION, MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)))
+                .run();
+
+        assertThat(history.transactionStore())
+                .as("should return the provided store")
+                .isEqualTo(memoryStore);
+        assertThat(Iterables.getOnlyElement(history.history()).actions())
+                .containsExactly(
+                        WitnessedReadTransactionAction.of(
+                                TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.empty()),
+                        WitnessedReadTransactionAction.of(
+                                TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()),
+                        WitnessedWriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
+                        WitnessedDeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        WitnessedReadTransactionAction.of(
+                                TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.empty()),
+                        WitnessedReadTransactionAction.of(
+                                TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.of(0)));
+    }
 }uau(54e429a7edbeeb24414ffc0ec8e0675346a2c9fd}(sha(54e429a7edbeeb24414ffc0ec8e0675346a2c9fdnode_idEC_kwDOAjP5fdoAKDU0ZTQyOWE3ZWRiZWViMjQ0MTRmZmMwZWM4ZTA2NzUzNDZhMmM5ZmQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-26T19:28:19Zu	committer}(j$ 
Sam Kramerj$ skramer@palantir.comj$ 2023-06-26T19:28:19Zumessageuse rc8tree}(j$ (f2665b1ef6881d72032b4e87d06a7d931e270686url`https://api.github.com/repos/palantir/atlasdb/git/trees/f2665b1ef6881d72032b4e87d06a7d931e270686uj$ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/54e429a7edbeeb24414ffc0ec8e0675346a2c9fd
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSZ5tMACgkQmPPOpKR4
XS1LOwf9HGNTLetc0uOuXI/iMDNUL+jkweOcBW/tM05fEApL1Fi/1gyXWaSsqLHv
/pdp03uizo3wOnjSOW81D9QEUlSYbIQ1JsB4w/avEg9piGhTbRdyZ1G0zlYjOunY
H43xgvik0MEke/tedm8mykwk5mRGcj+vSpMewoDWZtdsx9EaaSKMOaY8Q9iVG6cW
ioQmfXDz1+zTKHoatVgNJ/KrjdtFIvbKYMnVzOM7cgWI0tMFAivU7HOQQClSi3xO
wjzLGH1eeU+ddzsDEjMJKtNwn3/PCiaw3CDbeCcgLy6LeWyeI+//hrho2Fq3yP46
eXQ7GJTRqIZ4bG8/CrDv8K0N6EKL8w==
=HBEM
-----END PGP SIGNATURE-----payloadtree f2665b1ef6881d72032b4e87d06a7d931e270686
parent 77cf0e558cbad8cefcd09d1abd3e06e5c7505cc4
author Sam Kramer <skramer@palantir.com> 1687807699 +0100
committer Sam Kramer <skramer@palantir.com> 1687807699 +0100

use rc8
uuj$ ^https://api.github.com/repos/palantir/atlasdb/commits/54e429a7edbeeb24414ffc0ec8e0675346a2c9fdhtml_urlShttps://github.com/palantir/atlasdb/commit/54e429a7edbeeb24414ffc0ec8e0675346a2c9fdcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/54e429a7edbeeb24414ffc0ec8e0675346a2c9fd/commentsj$ }(login
Sam-KrameridJ^2_ j$ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j$ 'https://api.github.com/users/Sam-Kramerj$ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj$ }(j$ 
Sam-Kramerj$ J^2_ j$ MDQ6VXNlcjYyMzg4MTQ=j$ 3https://avatars.githubusercontent.com/u/6238814?v=4j$ h5j$ 'https://api.github.com/users/Sam-Kramerj$ https://github.com/Sam-Kramerj$ 1https://api.github.com/users/Sam-Kramer/followersj$ >https://api.github.com/users/Sam-Kramer/following{/other_user}j$ 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j$ >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j$ 5https://api.github.com/users/Sam-Kramer/subscriptionsj$ ,https://api.github.com/users/Sam-Kramer/orgsj % -https://api.github.com/users/Sam-Kramer/reposj% 8https://api.github.com/users/Sam-Kramer/events{/privacy}j% 7https://api.github.com/users/Sam-Kramer/received_eventsj% Userj% uparents]}(j$ (77cf0e558cbad8cefcd09d1abd3e06e5c7505cc4j$ ^https://api.github.com/repos/palantir/atlasdb/commits/77cf0e558cbad8cefcd09d1abd3e06e5c7505cc4j$ Shttps://github.com/palantir/atlasdb/commit/77cf0e558cbad8cefcd09d1abd3e06e5c7505cc4uastats}(totalK	additionsK	deletionsKufiles](}(j$ (a1a795aca9d4fd841a4cf6f300b5ad151a32e4ecfilename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedj"% Kj#% KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/54e429a7edbeeb24414ffc0ec8e0675346a2c9fd/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/54e429a7edbeeb24414ffc0ec8e0675346a2c9fd/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=54e429a7edbeeb24414ffc0ec8e0675346a2c9fdpatchX  @@ -2,7 +2,7 @@ version: '2'
 
 services:
   cassandra1:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
     ports:
       - "9160"
       - "9042"
@@ -20,7 +20,7 @@ services:
         ipv4_address: 10.20.20.2
 
   cassandra2:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
     ports:
       - "9160"
       - "9042"
@@ -38,7 +38,7 @@ services:
         ipv4_address: 10.20.20.3
 
   cassandra3:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
     ports:
       - "9160"
       - "9042"u}(j$ (2ecb3e48963fc66a02ae1c4b4042c97483c1e709j(% *scripts/circle-ci/publish-to-antithesis.shj*% modifiedj"% Kj#% Kj,% Kj-% https://github.com/palantir/atlasdb/blob/54e429a7edbeeb24414ffc0ec8e0675346a2c9fd/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj/% https://github.com/palantir/atlasdb/raw/54e429a7edbeeb24414ffc0ec8e0675346a2c9fd/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj1% https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=54e429a7edbeeb24414ffc0ec8e0675346a2c9fdj3% X:  @@ -26,9 +26,9 @@ printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://$
 
 VERSION=$(./gradlew -q printVersion)
 
-docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
-docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc7 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc7
-docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc7
+docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
+docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc8 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc8
+docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc8
 
 docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}
 docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}ueu      (eaa58996c35af4e025ba6d2882cedc6d2456b10c}(sha(eaa58996c35af4e025ba6d2882cedc6d2456b10cnode_idEC_kwDOAjP5fdoAKGVhYTU4OTk2YzM1YWY0ZTAyNWJhNmQyODgyY2VkYzZkMjQ1NmIxMGMcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-07T15:04:22Zu	committer}(jG% Lucas MeirelesjI% meireles31@msn.comjK% 2023-06-07T15:04:22Zumessagemissing word on commenttree}(j?% (64e6150d697fbf873b7b6c1ae1d88eff5328cb76url`https://api.github.com/repos/palantir/atlasdb/git/trees/64e6150d697fbf873b7b6c1ae1d88eff5328cb76ujW% bhttps://api.github.com/repos/palantir/atlasdb/git/commits/eaa58996c35af4e025ba6d2882cedc6d2456b10c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSAnHYACgkQJd22kJ7J
Giza5wgAlhbjTgWBaoZ7NAn5ESAXhi1nkQ2blRP/MzeKI6kXgKNmrhFXCAf/jSnJ
CIYugYosg/OjRrjXmZkQUHwSTDX5NzhikANdnWkChAmeh1oGd5UaxEDgtAoFEg7F
hpE0q2sdzIRSvwchwLoVrInH+acFQWsWfHSkQG+LTGvflGsGyQKwPEus/EqQgQiU
Z2yNzQaqwC8wRcbiA4lHqQFSHmThvBuguX52RzN+xOmWQxB5QbxTGmHi4qGaibsd
jSfwRFyale2kNPN/vL4eb8uKdiAYk8VZvEFc0L1L3+WPUaAHF1tMFPccns/d82zR
VMAo0u3vOjtSFzX/AZ9Fc/GqDXmO2w==
=S22a
-----END PGP SIGNATURE-----payloadtree 64e6150d697fbf873b7b6c1ae1d88eff5328cb76
parent ad3c6263ed391eb3d4993f2b0b147ce29daeadf5
author Lucas Meireles <meireles31@msn.com> 1686150262 +0100
committer Lucas Meireles <meireles31@msn.com> 1686150262 +0100

missing word on comment
uujW% ^https://api.github.com/repos/palantir/atlasdb/commits/eaa58996c35af4e025ba6d2882cedc6d2456b10chtml_urlShttps://github.com/palantir/atlasdb/commit/eaa58996c35af4e025ba6d2882cedc6d2456b10ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/eaa58996c35af4e025ba6d2882cedc6d2456b10c/commentsjE% }(loginLucasIMEidJg jA% MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jW% %https://api.github.com/users/LucasIMEje% https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujM% }(jj% LucasIMEjl% Jg jA% MDQ6VXNlcjY3ODczMTE=jn% 3https://avatars.githubusercontent.com/u/6787311?v=4jp% h5jW% %https://api.github.com/users/LucasIMEje% https://github.com/LucasIMEjs% /https://api.github.com/users/LucasIME/followersju% <https://api.github.com/users/LucasIME/following{/other_user}jw% 5https://api.github.com/users/LucasIME/gists{/gist_id}jy% <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j{% 3https://api.github.com/users/LucasIME/subscriptionsj}% *https://api.github.com/users/LucasIME/orgsj% +https://api.github.com/users/LucasIME/reposj% 6https://api.github.com/users/LucasIME/events{/privacy}j% 5https://api.github.com/users/LucasIME/received_eventsj% Userj% uparents]}(j?% (ad3c6263ed391eb3d4993f2b0b147ce29daeadf5jW% ^https://api.github.com/repos/palantir/atlasdb/commits/ad3c6263ed391eb3d4993f2b0b147ce29daeadf5je% Shttps://github.com/palantir/atlasdb/commit/ad3c6263ed391eb3d4993f2b0b147ce29daeadf5uastats}(totalK	additionsK	deletionsKufiles]}(j?% (ae852affb871f77d186c4b71ecca052b5aeeed40filenametatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflows.javastatusmodifiedj% Kj% KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/eaa58996c35af4e025ba6d2882cedc6d2456b10c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/eaa58996c35af4e025ba6d2882cedc6d2456b10c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.java?ref=eaa58996c35af4e025ba6d2882cedc6d2456b10cpatchX  @@ -41,9 +41,9 @@
  * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
  * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions. This workflow differs
  * from the {@link SingleBusyCellWorkflows} in the way that its read transaction only does read and doesn't touch the
- * cell with its current value or -1. This allows us to exercise the code path of read-write transaction that only do,
- * necessary to catch bugs like sweep deleting entries under a transaction if it doesn't check for immutableTimestamp
- * lock.
+ * cell with its current value or -1. This allows us to exercise the code path of read-write transaction that only do
+ * reads, which is necessary to catch bugs like sweep deleting entries under a transaction if it doesn't check for
+ * immutableTimestamp lock.
  */
 public final class SingleBusyCellReadNoTouchWorkflows {
     private SingleBusyCellReadNoTouchWorkflows() {uau(dea00b9b321bd93b124bf5e9ca719af120917536}(sha(dea00b9b321bd93b124bf5e9ca719af120917536node_idEC_kwDOAjP5fdoAKGRlYTAwYjliMzIxYmQ5M2IxMjRiZjVlOWNhNzE5YWYxMjA5MTc1MzYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-17T13:07:25Zu	committer}(j% 
Ahmed Alouanej% aalouane@palantir.comj% 2023-05-17T13:07:25Zumessage8g heap for container 3tree}(j% (09773829740f7cd74629c03d394227ddaf844957url`https://api.github.com/repos/palantir/atlasdb/git/trees/09773829740f7cd74629c03d394227ddaf844957uj% bhttps://api.github.com/repos/palantir/atlasdb/git/commits/dea00b9b321bd93b124bf5e9ca719af120917536
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRk0Y0ACgkQPlMHVIT1
yhq8FQf9FKecfPK/B1Pd8sIigE3zKrlCMjsDsHHz3+pf2sAJEUwX0gSPhUdmAYJr
GoonTvmx9FEJVaW10bDdzQ3p1Pt88ufnS1AG5AbfCd9SAzrEztOp22OX6W25SClz
A9Vy/trdXjjOssO2t4SX0CTAdHVYx2vNi2Pxf4UT6k9UhhZEHaebcIP0XIfbZlMM
LFRSsFxg8Gkf1gwPhWOc4MxYbL99HJR9F6o2esi1JQW+YZl7eEBLXWo1ShAH7f+A
U6kHT5bay+eegOqzx62/YXJtFEQbghTC4LNCvzdOtrrDw/2daZf0ePeIUly2lZPC
prxX0XnZWXa/NzsOzR1w1hQNCIKz8g==
=XDdm
-----END PGP SIGNATURE-----payloadtree 09773829740f7cd74629c03d394227ddaf844957
parent 5b1d5941111a9f4c70796e0105d74381d9589209
author Ahmed Alouane <aalouane@palantir.com> 1684328845 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684328845 +0100

8g heap for container 3
uuj% ^https://api.github.com/repos/palantir/atlasdb/commits/dea00b9b321bd93b124bf5e9ca719af120917536html_urlShttps://github.com/palantir/atlasdb/commit/dea00b9b321bd93b124bf5e9ca719af120917536comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/dea00b9b321bd93b124bf5e9ca719af120917536/commentsj% }(loginergo14idJj% MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j% #https://api.github.com/users/ergo14j% https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj% }(j% ergo14j% Jj% MDQ6VXNlcjMwOTAzNzM2j% 4https://avatars.githubusercontent.com/u/30903736?v=4j% h5j% #https://api.github.com/users/ergo14j% https://github.com/ergo14j% -https://api.github.com/users/ergo14/followersj% :https://api.github.com/users/ergo14/following{/other_user}j% 3https://api.github.com/users/ergo14/gists{/gist_id}j% :https://api.github.com/users/ergo14/starred{/owner}{/repo}j% 1https://api.github.com/users/ergo14/subscriptionsj% (https://api.github.com/users/ergo14/orgsj% )https://api.github.com/users/ergo14/reposj% 4https://api.github.com/users/ergo14/events{/privacy}j% 3https://api.github.com/users/ergo14/received_eventsj% Userj% uparents]}(j% (5b1d5941111a9f4c70796e0105d74381d9589209j% ^https://api.github.com/repos/palantir/atlasdb/commits/5b1d5941111a9f4c70796e0105d74381d9589209j% Shttps://github.com/palantir/atlasdb/commit/5b1d5941111a9f4c70796e0105d74381d9589209uastats}(totalK	additionsK	deletionsKufiles]}(j% (60db492108c5521fe386db6b57881ff4ff37458efilename%scripts/circle-ci/run-circle-tests.shstatusmodifiedj& Kj& KchangesKblob_url{https://github.com/palantir/atlasdb/blob/dea00b9b321bd93b124bf5e9ca719af120917536/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/dea00b9b321bd93b124bf5e9ca719af120917536/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=dea00b9b321bd93b124bf5e9ca719af120917536patchX  @@ -76,7 +76,7 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 if [ "$test_suite_index" -eq "13" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 elif [ "$test_suite_index" -eq "3" ]; then
-    export _JAVA_OPTIONS="-Xmx6g ${JAVA_GC_LOGGING_OPTIONS}"
+    export _JAVA_OPTIONS="-Xmx8g ${JAVA_GC_LOGGING_OPTIONS}"
     BASE_GRADLE_ARGS+=" --scan --parallel"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"uau(e7df74ecf5fc82df65b0ffe8ebefe0752841f299}(sha(e7df74ecf5fc82df65b0ffe8ebefe0752841f299node_idEC_kwDOAjP5fdoAKGU3ZGY3NGVjZjVmYzgyZGY2NWIwZmZlOGViZWZlMDc1Mjg0MWYyOTkcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-05-20T18:55:52Zu	committer}(j5& svc-autoreleasej7& -pd-foundry-infrastructure-notify@palantir.comj9& 2023-05-20T18:55:52ZumessageAutorelease 0.859.0

[skip ci]tree}(j-& (bf1efbed3af353bd911ab7b023da078f38947c3eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/bf1efbed3af353bd911ab7b023da078f38947c3eujE& bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e7df74ecf5fc82df65b0ffe8ebefe0752841f299
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRpF74ACgkQhbrR8ip7mDDSwQD+KlCqbblNlBEj+2WglQIwELiI
FRu88l9R46Mo11kaaLUBAKCfrNa1ERNBBCgYzTC6SircdYl2gnLp9IRHsG/ZyDvc
=eayh
-----END PGP SIGNATURE-----
payloadX0  tree bf1efbed3af353bd911ab7b023da078f38947c3e
parent dd7a181790fc2e528b8ee9929a3046cb6285c776
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684608952 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684608952 +0000

Autorelease 0.859.0

[skip ci]uujE& ^https://api.github.com/repos/palantir/atlasdb/commits/e7df74ecf5fc82df65b0ffe8ebefe0752841f299html_urlShttps://github.com/palantir/atlasdb/commit/e7df74ecf5fc82df65b0ffe8ebefe0752841f299comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e7df74ecf5fc82df65b0ffe8ebefe0752841f299/commentsj3& }(loginsvc-autoreleaseidJ(j/& MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5jE& ,https://api.github.com/users/svc-autoreleasejS& "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj;& }(jX& svc-autoreleasejZ& J(j/& MDQ6VXNlcjUxNzE4MzQ2j\& 4https://avatars.githubusercontent.com/u/51718346?v=4j^& h5jE& ,https://api.github.com/users/svc-autoreleasejS& "https://github.com/svc-autoreleaseja& 6https://api.github.com/users/svc-autorelease/followersjc& Chttps://api.github.com/users/svc-autorelease/following{/other_user}je& <https://api.github.com/users/svc-autorelease/gists{/gist_id}jg& Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}ji& :https://api.github.com/users/svc-autorelease/subscriptionsjk& 1https://api.github.com/users/svc-autorelease/orgsjm& 2https://api.github.com/users/svc-autorelease/reposjo& =https://api.github.com/users/svc-autorelease/events{/privacy}jq& <https://api.github.com/users/svc-autorelease/received_eventsjs& Userju& uparents]}(j-& (dd7a181790fc2e528b8ee9929a3046cb6285c776jE& ^https://api.github.com/repos/palantir/atlasdb/commits/dd7a181790fc2e528b8ee9929a3046cb6285c776jS& Shttps://github.com/palantir/atlasdb/commit/dd7a181790fc2e528b8ee9929a3046cb6285c776uastats}(totalK 	additionsK 	deletionsK ufiles]}(j-& (cc8b41318d17db1f892fc5ec26f90d1af877c1b2filename changelog/0.859.0/pr-6571.v2.ymlstatusrenamedj& K j& K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/e7df74ecf5fc82df65b0ffe8ebefe0752841f299/changelog%2F0.859.0%2Fpr-6571.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/e7df74ecf5fc82df65b0ffe8ebefe0752841f299/changelog%2F0.859.0%2Fpr-6571.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.859.0%2Fpr-6571.v2.yml?ref=e7df74ecf5fc82df65b0ffe8ebefe0752841f299previous_filename$changelog/@unreleased/pr-6571.v2.ymluau(1c45f5e323510640253317ec151501bfee50edcd}(sha(1c45f5e323510640253317ec151501bfee50edcdnode_idEC_kwDOAjP5fdoAKDFjNDVmNWUzMjM1MTA2NDAyNTMzMTdlYzE1MTUwMWJmZWU1MGVkY2Qcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-23T23:55:30Zu	committer}(j& 
Ahmed Alouanej& aalouane@palantir.comj& 2023-04-23T23:55:30Zumessage	undo lasttree}(j& (aa29b3a725ca5ea0432b90f9b3689bff37a88b80url`https://api.github.com/repos/palantir/atlasdb/git/trees/aa29b3a725ca5ea0432b90f9b3689bff37a88b80uj& bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1c45f5e323510640253317ec151501bfee50edcd
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRFxXMACgkQPlMHVIT1
yhqgTAgAhPKjyNijtKzbW6MEJRifLJX7u8sgUWwIUbIZrBXERe9v7+C2kWzvEw12
2qHCHsxRuDp9F1PWI6NtnuK6HiztQl9Tv3Is9ao4xx5QZaurZ7WW+hEtt1qYa92M
FERx3UyiclKMVfGgXJ/fuaVnmcFnvKfM2liglHK8HGoAJqcjh84xaEx24W+rl+Pi
cYHVxf28tuqBGYwJGttLRd1YqukzKY6YSSWfIvNP/eKbqiftlbxTu8+bYynJuQi5
V80FxbbXWm5op3YEN5U23QzCfsO65ENpeX0sKPw6VEPJL4GWgAXR51DflrUPbVUH
Up+ZhU7FTTasf7rg3f2HnsS0/3pfjA==
=ROYY
-----END PGP SIGNATURE-----payloadtree aa29b3a725ca5ea0432b90f9b3689bff37a88b80
parent b60427d71e46799d36376e427ee1c572177d6a1f
author Ahmed Alouane <aalouane@palantir.com> 1682294130 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682294130 +0100

undo last
uuj& ^https://api.github.com/repos/palantir/atlasdb/commits/1c45f5e323510640253317ec151501bfee50edcdhtml_urlShttps://github.com/palantir/atlasdb/commit/1c45f5e323510640253317ec151501bfee50edcdcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1c45f5e323510640253317ec151501bfee50edcd/commentsj& }(loginergo14idJj& MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j& #https://api.github.com/users/ergo14j& https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj& }(j& ergo14j& Jj& MDQ6VXNlcjMwOTAzNzM2j& 4https://avatars.githubusercontent.com/u/30903736?v=4j& h5j& #https://api.github.com/users/ergo14j& https://github.com/ergo14j& -https://api.github.com/users/ergo14/followersj& :https://api.github.com/users/ergo14/following{/other_user}j& 3https://api.github.com/users/ergo14/gists{/gist_id}j& :https://api.github.com/users/ergo14/starred{/owner}{/repo}j& 1https://api.github.com/users/ergo14/subscriptionsj& (https://api.github.com/users/ergo14/orgsj& )https://api.github.com/users/ergo14/reposj& 4https://api.github.com/users/ergo14/events{/privacy}j& 3https://api.github.com/users/ergo14/received_eventsj& Userj& uparents]}(j& (b60427d71e46799d36376e427ee1c572177d6a1fj& ^https://api.github.com/repos/palantir/atlasdb/commits/b60427d71e46799d36376e427ee1c572177d6a1fj& Shttps://github.com/palantir/atlasdb/commit/b60427d71e46799d36376e427ee1c572177d6a1fuastats}(totalK	additionsK 	deletionsKufiles]}(j& (65bb2999d3eb376ffbb602e0d411071b9bbb533dfilename.circleci/config.ymlstatusmodifiedj' K j' KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/1c45f5e323510640253317ec151501bfee50edcd/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/1c45f5e323510640253317ec151501bfee50edcd/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=1c45f5e323510640253317ec151501bfee50edcdpatchX  @@ -83,12 +83,6 @@ jobs:
       - persist_to_workspace:
           root: .
           paths: [ . ]
-      - run:
-          name: Fail Fast
-          when: on_fail
-          command: |
-            echo "Canceling workflow as a step resulted in failure"
-            curl -X POST --header "Content-Type: application/json" "https://circleci.com/api/v2/workflow/${CIRCLE_WORKFLOW_ID}/cancel?circle-token=${CIRCLE_TOKEN}" 
 
 
   trial-publish:uau(df53ac25df39f65c97f89a5cfed22d236e9d35b8}(sha(df53ac25df39f65c97f89a5cfed22d236e9d35b8node_idEC_kwDOAjP5fdoAKGRmNTNhYzI1ZGYzOWY2NWM5N2Y4OWE1Y2ZlZDIyZDIzNmU5ZDM1Yjgcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-29T16:42:39Zu	committer}(j#' 	Tom Papkej%' tpapke@palantir.comj'' 2023-06-29T16:42:56Zumessagerename mode to booleantree}(j' (17489c7ff34984d72cad33e3bf70d2f766cfebb8url`https://api.github.com/repos/palantir/atlasdb/git/trees/17489c7ff34984d72cad33e3bf70d2f766cfebb8uj3' bhttps://api.github.com/repos/palantir/atlasdb/git/commits/df53ac25df39f65c97f89a5cfed22d236e9d35b8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSdtJAACgkQmF9s0kaF
Iw2f5AgAmA82sqo9EkUkin19SzXRpxZkYiwQkt8Zgc/sjGtE63Iw6O77suzZJRTJ
dengXiUYvARSbY7Hf8NuhNnuVEKsZRB9b6vtLrG0R0vSmqjg6U33FurEom47FJXf
Nf0LxFsBvhJuF8MqKwLm2foGOn8cCKgR9hGQiPXRmcqOGJUpND94jJNzgXLvDTa7
xs4UuO2Hee3vs6n0mohpxq5RpHXE6Qn0bVLsJwuENhPY8WSCZKyCyBRIeSpemD5l
ibfAKiyP+N0TgPdUtFSzW6QKHJacIsPuG1FrLCZTTl4t/gYTaAB9BDhUpMpnghPp
gC4WmYWZYAZ+XyNQU47iTWpSgP+80g==
=UMIq
-----END PGP SIGNATURE-----payloadtree 17489c7ff34984d72cad33e3bf70d2f766cfebb8
parent ca179137d4337835bf2d666f412d8069c37db941
author Tom Papke <tpapke@palantir.com> 1688056959 +0100
committer Tom Papke <tpapke@palantir.com> 1688056976 +0100

rename mode to boolean
uuj3' ^https://api.github.com/repos/palantir/atlasdb/commits/df53ac25df39f65c97f89a5cfed22d236e9d35b8html_urlShttps://github.com/palantir/atlasdb/commit/df53ac25df39f65c97f89a5cfed22d236e9d35b8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/df53ac25df39f65c97f89a5cfed22d236e9d35b8/commentsj!' }(login	ToemmscheidJboj' MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j3' &https://api.github.com/users/ToemmschejA' https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj)' }(jF' 	ToemmschejH' Jboj' MDQ6VXNlcjQzNjc1NDkwjJ' 4https://avatars.githubusercontent.com/u/43675490?v=4jL' h5j3' &https://api.github.com/users/ToemmschejA' https://github.com/ToemmschejO' 0https://api.github.com/users/Toemmsche/followersjQ' =https://api.github.com/users/Toemmsche/following{/other_user}jS' 6https://api.github.com/users/Toemmsche/gists{/gist_id}jU' =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jW' 4https://api.github.com/users/Toemmsche/subscriptionsjY' +https://api.github.com/users/Toemmsche/orgsj[' ,https://api.github.com/users/Toemmsche/reposj]' 7https://api.github.com/users/Toemmsche/events{/privacy}j_' 6https://api.github.com/users/Toemmsche/received_eventsja' Userjc' uparents]}(j' (ca179137d4337835bf2d666f412d8069c37db941j3' ^https://api.github.com/repos/palantir/atlasdb/commits/ca179137d4337835bf2d666f412d8069c37db941jA' Shttps://github.com/palantir/atlasdb/commit/ca179137d4337835bf2d666f412d8069c37db941uastats}(totalK
	additionsK	deletionsKufiles]}(j' (f0bfb3b0c818a6eaedc752fdbb2ccdc7d1d5fe4cfilenameNlock-api/src/test/java/com/palantir/lock/client/IdentifiedLockRequestTest.javastatusmodifiedj}' Kj~' KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/df53ac25df39f65c97f89a5cfed22d236e9d35b8/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/df53ac25df39f65c97f89a5cfed22d236e9d35b8/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.java?ref=df53ac25df39f65c97f89a5cfed22d236e9d35b8patchXu  @@ -36,7 +36,7 @@
 
 public class IdentifiedLockRequestTest {
     private static final String BASE = "src/test/resources/identified-lock-request-wire-format/";
-    private static final Mode MODE = Mode.CI;
+    private static final boolean REWRITE_JSON_BLOBS = false;
     private static final IdentifiedLockRequest BASELINE_REQUEST = ImmutableIdentifiedLockRequest.builder()
             .requestId(new UUID(1337, 42))
             .lockDescriptors(ImmutableSet.of(StringLockDescriptor.of("lock1"), StringLockDescriptor.of("lock2")))
@@ -50,15 +50,6 @@ public class IdentifiedLockRequestTest {
             .registerModule(new Jdk8Module())
             .registerModule(new GuavaModule());
 
-    private enum Mode {
-        DEV,
-        CI;
-
-        boolean isDev() {
-            return this.equals(Mode.DEV);
-        }
-    }
-
     @Test
     public void baselineRequestIsFullCompat() {
         assertSerializedEquals(BASELINE_REQUEST, "baseline");
@@ -75,7 +66,7 @@ public void baselineRequestWithMetadataIsBackCompat() {
     private void assertSerializedEquals(IdentifiedLockRequest request, String jsonFileName) {
         try {
             Path path = getJsonPath(jsonFileName);
-            if (MODE.isDev()) {
+            if (REWRITE_JSON_BLOBS) {
                 mapper.writeValue(path.toFile(), request);
             }
             String serialized = serialize(request);uau(0caf0fea1362941ffb01c4fc852d45f02c6cc81e}(sha(0caf0fea1362941ffb01c4fc852d45f02c6cc81enode_idEC_kwDOAjP5fdoAKDBjYWYwZmVhMTM2Mjk0MWZmYjAxYzRmYzg1MmQ0NWYwMmM2Y2M4MWUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-03T15:50:17Zu	committer}(j' Jeremy Kongj' jkong@palantir.comj' 2023-07-03T15:50:17ZumessageOMerge remote-tracking branch 'origin/develop' into jkong/antithesis-range-two-5tree}(j' (7dce669844793398564a6e1f418e0b0392be947eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/7dce669844793398564a6e1f418e0b0392be947euj' bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0caf0fea1362941ffb01c4fc852d45f02c6cc81e
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSi7jsACgkQTLdFKain
zjy8wggAk/gF0x08G/cLwKcLos7EGSPg0Ta/t4CJCiY8uGv2kKZ2fU9xjt3z0+Pr
7pA7YpkCzLm6Kzk6iK24bqz5IYShlhzGOmf+GGeSV58fnVCInuOalO94zxNz+TXP
UK4e6R7VRueLWkT/IZWdFasBtfwVTY85XFxypTM9P8kS3XL7Bt+/OCfcYWPZIqx+
B/2K/qAA9S4V/CulTE+EajnPWoGZlvB2WsHd7rxftM6dn0wBZlP9/7FjtSFR5Anr
iibFPLocefrgF9zst1Bk93ZUB+epuI4M5Cx5r2rAvIkbjsYGm4KaFy2w/5+k68GQ
HqMFmVKySjhqiS+WhQ094Ce1OfhM3w==
=Kkli
-----END PGP SIGNATURE-----payloadXT  tree 7dce669844793398564a6e1f418e0b0392be947e
parent 65eadc920dbc517358638c195f224ae5c053b20d
parent 63c4728f270b522a9363d04b31e83b2eb02d5f24
author Jeremy Kong <jkong@palantir.com> 1688399417 +0100
committer Jeremy Kong <jkong@palantir.com> 1688399417 +0100

Merge remote-tracking branch 'origin/develop' into jkong/antithesis-range-two-5
uuj' ^https://api.github.com/repos/palantir/atlasdb/commits/0caf0fea1362941ffb01c4fc852d45f02c6cc81ehtml_urlShttps://github.com/palantir/atlasdb/commit/0caf0fea1362941ffb01c4fc852d45f02c6cc81ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/commentsj' }(login
jeremyk-91idJZ j' MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j' 'https://api.github.com/users/jeremyk-91j' https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj' }(j' 
jeremyk-91j' JZ j' MDQ6VXNlcjU5NTU1MTA=j' 3https://avatars.githubusercontent.com/u/5955510?v=4j' h5j' 'https://api.github.com/users/jeremyk-91j' https://github.com/jeremyk-91j' 1https://api.github.com/users/jeremyk-91/followersj' >https://api.github.com/users/jeremyk-91/following{/other_user}j' 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j' >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j' 5https://api.github.com/users/jeremyk-91/subscriptionsj' ,https://api.github.com/users/jeremyk-91/orgsj' -https://api.github.com/users/jeremyk-91/reposj' 8https://api.github.com/users/jeremyk-91/events{/privacy}j' 7https://api.github.com/users/jeremyk-91/received_eventsj' Userj' uparents](}(j' (65eadc920dbc517358638c195f224ae5c053b20dj' ^https://api.github.com/repos/palantir/atlasdb/commits/65eadc920dbc517358638c195f224ae5c053b20dj' Shttps://github.com/palantir/atlasdb/commit/65eadc920dbc517358638c195f224ae5c053b20du}(j' (63c4728f270b522a9363d04b31e83b2eb02d5f24j' ^https://api.github.com/repos/palantir/atlasdb/commits/63c4728f270b522a9363d04b31e83b2eb02d5f24j' Shttps://github.com/palantir/atlasdb/commit/63c4728f270b522a9363d04b31e83b2eb02d5f24uestats}(totalM	additionsM		deletionsM{ufiles](}(j' (7e1fc418d0ab8950f7d0a2c8a9ed46fe72c28ab9filenamePatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/KeyValueService.javastatusmodifiedj' Kj' K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81epatchX  @@ -711,4 +711,11 @@ default boolean shouldTriggerCompactions() {
     default boolean isValid() {
         return true;
     }
+
+    @DoDelegate
+    default boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        // This is in general True, but we're setting to false to start rollout only for C* of stopping to check for
+        // immutable timestamp lock on non empty reads on thoroughly swept tables.
+        return false;
+    }
 }u}(j' (783bc3b5467ffef2ad1e64d4a8aefd0da4ee44ddj' jatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/TransactionCommitLockInfo.javaj ( addedj' K%j' K j( K%j( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( Xg  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api.expectations;
+
+import org.immutables.value.Value;
+
+/**
+ * Data about the amount of commit locks requested by a transaction.
+ */
+@Value.Immutable
+public interface TransactionCommitLockInfo {
+
+    /**
+     * The number of cell-level locks requested as part of the commit protocol (excluding any user-defined locking).
+     */
+    long cellCommitLocksRequested();
+
+    /**
+     * The number of row-level locks requested as part of the commit protocol (excluding any user-defined locking).
+     * For write transactions, this includes the single row lock that is requested for the transaction table itself.
+     */
+    long rowCommitLocksRequested();
+}u}(j' (22dc29e0664eb2fea2e0669bb248c2333fbefdd4j' atlasdb-cassandra-integration-tests/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceIntegrationTest.javaj ( modifiedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X=  @@ -709,6 +709,12 @@ public void testMultiCheckAndSetIndependentlyFails() {
         verifyMultiCheckAndSet(ImmutableMap.of(firstTestCell, val(0, 0), nextTestCell, val(0, 1)));
     }
 
+    @Test
+    public void cassandraHasStrictlyNonDecreasingSweep() {
+        assertThat(keyValueService.sweepsEntriesInStrictlyNonDecreasingFashion())
+                .isTrue();
+    }
+
     private void verifyMultiCheckAndSet(Map<Cell, byte[]> expectedValues) {
         Multimap<Cell, Long> timestamps = keyValueService.getAllTimestamps(TEST_TABLE, expectedValues.keySet(), 1L);
 u}(j' (d7d2d87671c66d0e3f85762da04755fb7955d5b1j' iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj ( modifiedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -2033,6 +2033,11 @@ public ClusterAvailabilityStatus getClusterAvailabilityStatus() {
         return clusterStatus;
     }
 
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return true;
+    }
+
     private static boolean isClusterQuorumAvaialble(ClusterAvailabilityStatus clusterStatus) {
         return clusterStatus.equals(ClusterAvailabilityStatus.ALL_AVAILABLE)
                 || clusterStatus.equals(ClusterAvailabilityStatus.QUORUM_AVAILABLE);u}(j' (4e16bd6856b710e2bea5df31215dec94adb90e6bj' batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaj ( modifiedj' Kj' Kj( K#j( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X
  @@ -148,18 +148,17 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
                 hostToDatacentersThisRefresh.put(onlyHost, onlyEndpoint.getDatacenter());
             } else { // normal case, large cluster with many vnodes
                 for (TokenRange tokenRange : tokenRanges) {
-                    Map<CassandraServer, String> hostToDatacentersOnThisTokenRange = KeyedStream.of(
-                                    tokenRange.getEndpoint_details())
-                            .mapKeys(EndpointDetails::getHost)
-                            .mapKeys(this::getAddressForHostThrowUnchecked)
-                            .map(EndpointDetails::getDatacenter)
-                            .collectToMap();
-
-                    ImmutableSet<CassandraServer> hosts =
-                            ImmutableSet.copyOf(hostToDatacentersOnThisTokenRange.keySet());
-                    servers.addAll(hosts);
-                    hostToDatacentersThisRefresh.putAll(hostToDatacentersOnThisTokenRange);
+                    List<EndpointDetails> endpointDetails = tokenRange.getEndpoint_details();
+                    ImmutableSet.Builder<CassandraServer> hostsBuilder =
+                            ImmutableSet.builderWithExpectedSize(endpointDetails.size());
+                    for (EndpointDetails endpoint : endpointDetails) {
+                        CassandraServer cassandraServer = getAddressForHostThrowUnchecked(endpoint.getHost());
+                        hostToDatacentersThisRefresh.put(cassandraServer, endpoint.getDatacenter());
+                        hostsBuilder.add(cassandraServer);
+                        servers.add(cassandraServer);
+                    }
 
+                    ImmutableSet<CassandraServer> hosts = hostsBuilder.build();
                     LightweightOppToken startToken = LightweightOppToken.fromHex(tokenRange.getStart_token());
                     LightweightOppToken endToken = LightweightOppToken.fromHex(tokenRange.getEnd_token());
                     if (startToken.compareTo(endToken) <= 0) {
@@ -288,17 +287,15 @@ private CassandraServer getAddressForHostThrowUnchecked(String host) {
     CassandraServer getAddressForHost(String inputHost) throws UnknownHostException {
         Map<String, String> hostnamesByIp = hostnameByIpSupplier.get();
         String cassandraHostName = hostnamesByIp.getOrDefault(inputHost, inputHost);
-        return CassandraServer.of(cassandraHostName, getReachableProxies(cassandraHostName));
-    }
-
-    private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) throws UnknownHostException {
-        InetAddress[] resolvedHosts = InetAddress.getAllByName(inputHost);
+        InetAddress[] resolvedHosts = InetAddress.getAllByName(cassandraHostName);
         int knownPort = getKnownPort();
 
         // It is okay to have reachable proxies that do not have a hostname
-        return Stream.of(resolvedHosts)
-                .map(inetAddr -> new InetSocketAddress(inetAddr, knownPort))
-                .collect(ImmutableSet.toImmutableSet());
+        ImmutableSet.Builder<InetSocketAddress> proxies = ImmutableSet.builderWithExpectedSize(resolvedHosts.length);
+        for (InetAddress host : resolvedHosts) {
+            proxies.add(new InetSocketAddress(host, knownPort));
+        }
+        return CassandraServer.of(cassandraHostName, proxies.build());
     }
 
     private int getKnownPort() throws UnknownHostException {u}(j' (502ae947a588e3d9dcebd649967cafd91a08374bj' datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppTokenTest.javaj ( modifiedj' Kj' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -46,9 +46,9 @@ public static Collection<Object[]> data() {
     @Test
     public void inputsAreValidBase16Strings() {
         assertThat(input).matches("^[0-9a-fA-F]*$");
-        assertThat(input.length() % 2 == 0)
+        assertThat(input.length() % 2)
                 .as("input must be even length to base16 decode")
-                .isTrue();
+                .isEqualTo(0);
         assertThat(CassandraHex.hexToBytes(input)).hasSize(input.length() / 2);
     }
 u}(j' (a0daffcaa0a4ea862e707fb50afd62871f197c8ej' ]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/DualWriteKeyValueService.javaj ( modifiedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -318,4 +318,9 @@ public List<byte[]> getRowKeysInRange(TableReference tableRef, byte[] startRow,
     public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<Cell, Long> timestampByCell) {
         return delegate1.getAsync(tableRef, timestampByCell);
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate1.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(j' (1ab84302f51e4bad9eef3b306d5f224b087a44d4j' \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/InMemoryKeyValueService.javaj ( modifiedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X-  @@ -735,6 +735,12 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
         return Futures.immediateFuture(get(tableRef, timestampByCell));
     }
 
+    // Marking this as true as it's only used for tests, so we can better replicate Cassandra behaviour.
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return true;
+    }
+
     /**
      * This takes out a reentrant read lock. It is only exclusive specifically with
      * {@link #multiCheckAndSet(MultiCheckAndSetRequest)}.u}(j' (d41572b88d0c8b10e1042d4d64b59e123b40c6c1j' ]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/ProfilingKeyValueService.javaj ( modifiedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X|  @@ -554,4 +554,9 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
                         LoggingArgs.durationMillis(stopwatch)),
                 logCellResultSize(4L));
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(j' (aee4560b5007342d777bb076c6630351e4618aa1j' [atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/TracingKeyValueService.javaj ( modifiedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -531,6 +531,11 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
         });
     }
 
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate().sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
+
     @MustBeClosed
     private static CloseableTracer startLocalTrace(@CompileTimeConstant final String operation) {
         TraceStatistic original = TraceStatistics.getCurrentAndClear();u}(j' (b901787debfe08e9dc92324e1ecea39bb182ade1j' Vatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javaj ( modifiedj' K(j' K
j( K2j( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( Xq  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.table.description;
 
+import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
@@ -29,27 +30,40 @@
 public final class SweepStrategy {
 
     public static final SweepStrategy CONSERVATIVE =
-            new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false);
-    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), true);
+            new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false, false);
+    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), false, true);
 
     private final Optional<SweeperStrategy> sweeperStrategy;
-    private final boolean mustCheckImmutableLockAfterReads;
+    private final boolean mustCheckImmutableLockIfAllCellsReadAndPresent;
 
-    private SweepStrategy(Optional<SweeperStrategy> sweeperStrategy, boolean mustCheckImmutableLockAfterReads) {
+    // When we either read an empty value or perform reads like a range-scan, where we can't be certain of how many
+    // values we expect.
+    private final boolean mustCheckImmutableLockIfNonExhaustiveRead;
+
+    private SweepStrategy(
+            Optional<SweeperStrategy> sweeperStrategy,
+            boolean mustCheckImmutableLockIfAllCellsReadAndPresent,
+            boolean mustCheckImmutableLockIfNonExhaustiveRead) {
         this.sweeperStrategy = sweeperStrategy;
-        this.mustCheckImmutableLockAfterReads = mustCheckImmutableLockAfterReads;
+        this.mustCheckImmutableLockIfAllCellsReadAndPresent = mustCheckImmutableLockIfAllCellsReadAndPresent;
+        this.mustCheckImmutableLockIfNonExhaustiveRead = mustCheckImmutableLockIfNonExhaustiveRead;
     }
 
     public Optional<SweeperStrategy> getSweeperStrategy() {
         return sweeperStrategy;
     }
 
-    public boolean mustCheckImmutableLockAfterReads() {
-        return mustCheckImmutableLockAfterReads;
+    public boolean mustCheckImmutableLock(boolean allPossibleCellsReandAndPresent) {
+        return allPossibleCellsReandAndPresent
+                ? mustCheckImmutableLockIfAllCellsReadAndPresent
+                : mustCheckImmutableLockIfNonExhaustiveRead;
     }
 
-    public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy) {
-        return new SweepStrategy(sweeperBehaviour(strategy), mustCheckImmutableLockAfterReads(strategy));
+    public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
+        return new SweepStrategy(
+                sweeperBehaviour(strategy),
+                mustCheckImmutableLockIfAllCellsReadAndPresent(strategy, kvs),
+                mustCheckImmutableLockIfNonExhaustiveRead(strategy));
     }
 
     private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersistence.SweepStrategy strategy) {
@@ -65,7 +79,23 @@ private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersisten
         throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
     }
 
-    private static boolean mustCheckImmutableLockAfterReads(TableMetadataPersistence.SweepStrategy strategy) {
+    private static boolean mustCheckImmutableLockIfAllCellsReadAndPresent(
+            TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
+        if (!kvs.sweepsEntriesInStrictlyNonDecreasingFashion()) {
+            return mustCheckImmutableLockIfNonExhaustiveRead(strategy);
+        }
+
+        switch (strategy) {
+            case CONSERVATIVE:
+            case NOTHING:
+            case THOROUGH_MIGRATION:
+            case THOROUGH:
+                return false;
+        }
+        throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
+    }
+
+    private static boolean mustCheckImmutableLockIfNonExhaustiveRead(TableMetadataPersistence.SweepStrategy strategy) {
         switch (strategy) {
             case CONSERVATIVE:
             case NOTHING:u}(j' (a609938800595c6a4ed1b28154a58151f7d04af3j' datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ExpectationsAwareTransaction.javaj ( modifiedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 /**
@@ -32,6 +33,11 @@ public interface ExpectationsAwareTransaction extends Transaction {
      */
     TransactionReadInfo getReadInfo();
 
+    /**
+     * Returns transaction commit lock information.
+     */
+    TransactionCommitLockInfo getCommitLockInfo();
+
     /**
      * Update TEX data collection metrics for (post-mortem) transactions.
      * Expected usage is that this method is called once after the transaction has been committed or aborted.u}(j' (6795ea4a937624401807d2b3742ab596ad23984bj' natlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingExpectationsAwareTransaction.javaj ( modifiedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.transaction.impl;
 
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 public abstract class ForwardingExpectationsAwareTransaction extends ForwardingTransaction
@@ -34,6 +35,11 @@ public TransactionReadInfo getReadInfo() {
         return delegate().getReadInfo();
     }
 
+    @Override
+    public TransactionCommitLockInfo getCommitLockInfo() {
+        return delegate().getCommitLockInfo();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         delegate().reportExpectationsCollectedData();u}(j' (71e95645f3ae1137fc44efc89c6e3432b42d85ffj' Watlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ReadTransaction.javaj ( modifiedj' Kj' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -24,14 +24,15 @@
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.logging.LoggingArgs;
-import com.palantir.atlasdb.table.description.SweepStrategy;
+import com.palantir.atlasdb.table.description.SweeperStrategy;
 import com.palantir.atlasdb.transaction.api.GetRangesQuery;
 import com.palantir.common.base.BatchingVisitable;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
+import java.util.Optional;
 import java.util.Set;
 import java.util.function.BiFunction;
 import java.util.stream.Stream;
@@ -136,11 +137,11 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
     }
 
     private void checkTableName(TableReference tableRef) {
-        SweepStrategy sweepStrategy = sweepStrategies.get(tableRef);
+        Optional<SweeperStrategy> sweepStrategy = sweepStrategies.get(tableRef).getSweeperStrategy();
         Preconditions.checkState(
-                !sweepStrategy.mustCheckImmutableLockAfterReads(),
-                "This table cannot be read from a read-only transaction, because its "
-                        + "sweep strategy is neither NOTHING nor CONSERVATIVE",
+                sweepStrategy.isEmpty() || sweepStrategy.get().equals(SweeperStrategy.CONSERVATIVE),
+                "This table cannot be read from a read-only transaction, because its sweep strategy is neither NOTHING"
+                        + " nor CONSERVATIVE",
                 LoggingArgs.tableRef(tableRef));
     }
 u}(j' (59d37859a318b1646ca6da51436b4720150f7940j' ]atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/SweepStrategyManagers.javaj ( modifiedj' K	j' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X;  @@ -21,7 +21,6 @@
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
-import com.palantir.atlasdb.table.description.Schema;
 import com.palantir.atlasdb.table.description.SweepStrategy;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.logsafe.Preconditions;
@@ -53,7 +52,7 @@ public static SweepStrategyManager create(KeyValueService kvs, CacheWarming cach
                     // On a cache miss, load metadata only for the relevant table. Helpful when many dynamic tables.
                     LoadingCache<TableReference, SweepStrategy> cache = Caffeine.newBuilder()
                             .expireAfterAccess(Duration.ofDays(1))
-                            .build(tableRef -> getSweepStrategy(kvs.getMetadataForTable(tableRef)));
+                            .build(tableRef -> getSweepStrategy(kvs.getMetadataForTable(tableRef), kvs));
 
                     // Possibly warm the cache.
                     cache.putAll(getSweepStrategiesForWarmingCache(kvs, cacheWarming));
@@ -74,42 +73,34 @@ public void invalidateCaches(Set<TableReference> tableRefs) {
         };
     }
 
-    public static SweepStrategyManager createFromSchema(Schema schema) {
-        return tableRef -> {
-            TableMetadata tableMeta = Preconditions.checkNotNull(
-                    schema.getAllTablesAndIndexMetadata().get(tableRef),
-                    "unknown table",
-                    SafeArg.of("tableRef", tableRef));
-            return SweepStrategy.from(tableMeta.getSweepStrategy());
-        };
-    }
-
     public static SweepStrategyManager fromMap(final Map<TableReference, SweepStrategy> map) {
         return tableRef ->
                 Preconditions.checkNotNull(map.get(tableRef), "unknown table", SafeArg.of("tableRef", tableRef));
     }
 
-    public static SweepStrategyManager completelyConservative() {
-        return tableRef -> SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE);
+    public static SweepStrategyManager completelyConservative(KeyValueService kvs) {
+        return tableRef -> SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE, kvs);
     }
 
     private static Map<TableReference, SweepStrategy> getSweepStrategiesForWarmingCache(
             KeyValueService kvs, CacheWarming cacheWarming) {
         switch (cacheWarming) {
             case FULL:
-                return Maps.transformValues(kvs.getMetadataForTables(), SweepStrategyManagers::getSweepStrategy);
+                return Maps.transformValues(
+                        kvs.getMetadataForTables(),
+                        tableMetadata -> SweepStrategyManagers.getSweepStrategy(tableMetadata, kvs));
             case NONE:
             default:
                 return Collections.emptyMap();
         }
     }
 
-    private static SweepStrategy getSweepStrategy(byte[] tableMeta) {
+    private static SweepStrategy getSweepStrategy(byte[] tableMeta, KeyValueService kvs) {
         if (tableMeta != null && tableMeta.length > 0) {
             return SweepStrategy.from(
-                    TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy());
+                    TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy(), kvs);
         } else {
-            return SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE);
+            return SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE, kvs);
         }
     }
 }u}(j' (07430a7ea8f348014166e1a21707d9a2d6fa0656j' gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableRemappingKeyValueService.javaj ( modifiedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( XQ  @@ -482,4 +482,9 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
             throw new IllegalArgumentException(e);
         }
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(j' (5ef033a6ef29cb0e07d55d81f9e01236df5838d0j' gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableSplittingKeyValueService.javaj ( modifiedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -413,4 +413,9 @@ public List<byte[]> getRowKeysInRange(TableReference tableRef, byte[] startRow,
     public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<Cell, Long> timestampByCell) {
         return getDelegate(tableRef).getAsync(tableRef, timestampByCell);
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegates.stream().allMatch(KeyValueService::sweepsEntriesInStrictlyNonDecreasingFashion);
+    }
 }u}(j' (f4fc16c9cd18f98e0b88191831c6acfff46d8418j' Qatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweepTaskRunner.javaj ( modifiedj' Kj' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81e
     j	( X  @@ -152,7 +152,7 @@ private SweepResults runInternal(
             return SweepResults.createEmptySweepResultWithNoMoreToSweep();
         }
         SweepStrategy sweepStrategy = SweepStrategy.from(
-                TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy());
+                TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy(), keyValueService);
         Optional<Sweeper> maybeSweeper = sweepStrategy.getSweeperStrategy().map(Sweeper::of);
         if (runType == RunType.WAS_CONSERVATIVE_NOW_THOROUGH
                 && sweepStrategy.getSweeperStrategy().equals(Optional.of(SweeperStrategy.CONSERVATIVE))) {u}(j' (8a130c89d1c136ccdceb2117f2543a8cad93b16cj' \atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitioner.javaj ( modifiedj' Kj' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -95,9 +95,11 @@ SweeperStrategy getStrategyForTable(TableReference tableRef) {
 
     private SweeperStrategy getStrategyFromKvs(TableReference tableRef) {
         try {
-            return SweepStrategy.from(TableMetadata.BYTES_HYDRATOR
-                            .hydrateFromBytes(kvs.getMetadataForTable(tableRef))
-                            .getSweepStrategy())
+            return SweepStrategy.from(
+                            TableMetadata.BYTES_HYDRATOR
+                                    .hydrateFromBytes(kvs.getMetadataForTable(tableRef))
+                                    .getSweepStrategy(),
+                            kvs)
                     .getSweeperStrategy()
                     .orElse(SweeperStrategy.NON_SWEEPABLE);
         } catch (Exception e) {u}(j' (a754465d028ae56a8b3829de4675ebee0e06762dj' `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj ( modifiedj' Kj' K6j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X]  @@ -97,6 +97,8 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
@@ -156,6 +158,7 @@
 import java.util.List;
 import java.util.Map;
 import java.util.NavigableMap;
+import java.util.NavigableSet;
 import java.util.NoSuchElementException;
 import java.util.Objects;
 import java.util.Optional;
@@ -207,6 +210,9 @@ public class SnapshotTransaction extends AbstractTransaction
     private static final int BATCH_SIZE_GET_FIRST_PAGE = 1000;
     private static final long TXN_LENGTH_THRESHOLD = Duration.ofMinutes(30).toMillis();
 
+    @VisibleForTesting
+    static final int MAX_POST_FILTERING_ITERATIONS = 200;
+
     @VisibleForTesting
     static final int MIN_BATCH_SIZE_FOR_DISTRIBUTED_LOAD = 100;
 
@@ -267,9 +273,15 @@ private enum State {
     protected final SuccessCallbackManager successCallbackManager = new SuccessCallbackManager();
     private final CommitTimestampLoader commitTimestampLoader;
     private final ExpectationsMetrics expectationsDataCollectionMetrics;
+    private volatile long cellCommitLocksRequested = 0L;
+    private volatile long rowCommitLocksRequested = 0L;
 
     protected volatile boolean hasReads;
 
+    // On thoroughly swept tables, we might require a immutable timestamp lock check if we have performed a
+    // non-exhaustive read.
+    protected volatile boolean hasPossiblyUnvalidatedReads;
+
     protected final TimestampCache timestampCache;
 
     protected final TransactionKnowledgeComponents knowledge;
@@ -333,6 +345,7 @@ private enum State {
         this.sweepQueue = sweepQueue;
         this.deleteExecutor = deleteExecutor;
         this.hasReads = false;
+        this.hasPossiblyUnvalidatedReads = false;
         this.transactionOutcomeMetrics = TransactionOutcomeMetrics.create(metricsManager);
         this.validateLocksOnReads = validateLocksOnReads;
         this.transactionConfig = transactionConfig;
@@ -438,7 +451,9 @@ private NavigableMap<byte[], RowResult<byte[]>> getRowsInternal(
                     SafeArg.of("resultSize", results.size()),
                     SafeArg.of("timeTakenMillis", getRowsMillis));
         }
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+
+        /* can't skip lock check as we don't know how many cells to expect for the column selection */
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return results;
     }
 
@@ -463,7 +478,8 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
         RowColumnRangeIterator rawResults = keyValueService.getRowsColumnRange(
                 tableRef, stableRows, columnRangeSelection, batchHint, getStartTimestamp());
         if (!rawResults.hasNext()) {
-            validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+            // we can't skip checks for range scans
+            validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         } // else the postFiltered iterator will check for each batch.
 
         BatchColumnRangeSelection batchColumnRangeSelection =
@@ -501,7 +517,8 @@ public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator
                 }));
 
         // validate requirements here as the first batch for each of the above iterators will not check
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+        // we can't skip checks on range scans
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return postFilteredResults;
     }
 
@@ -674,7 +691,7 @@ private Iterator<Map.Entry<Cell, byte[]>> filterDeletedValues(
     private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFiltered(
             TableReference tableRef, RowColumnRangeIterator iterator, int batchHint) {
         return Iterators.concat(Iterators.transform(Iterators.partition(iterator, batchHint), batch -> {
-            Map<Cell, Value> raw = validateBatch(tableRef, batch);
+            Map<Cell, Value> raw = validateBatch(tableRef, batch, false /* can't skip lock checks on range scans */);
             if (raw.isEmpty()) {
                 return Collections.emptyIterator();
             }
@@ -696,7 +713,10 @@ private ClosableIterator<Map.Entry<Cell, byte[]>> getRowColumnRangePostFiltered(
                 batchProvider,
                 rawIterator,
                 columnRangeSelection,
-                () -> validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp()),
+                () -> {
+                    // we can't skip lock checks on range scans
+                    validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
+                },
                 raw -> getWithPostFilteringSync(tableRef, raw, Value.GET_VALUE));
     }
 
@@ -706,7 +726,7 @@ private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSor
             int batchHint,
             Comparator<Cell> cellComparator) {
         return Iterators.concat(Iterators.transform(Iterators.partition(iterator, batchHint), batch -> {
-            Map<Cell, Value> raw = validateBatch(tableRef, batch);
+            Map<Cell, Value> raw = validateBatch(tableRef, batch, false /* can't skip lock check on range scans */);
             if (raw.isEmpty()) {
                 return Collections.emptyIterator();
             }
@@ -717,8 +737,9 @@ private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSor
         }));
     }
 
-    private Map<Cell, Value> validateBatch(TableReference tableRef, List<Map.Entry<Cell, Value>> batch) {
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+    private Map<Cell, Value> validateBatch(
+            TableReference tableRef, List<Map.Entry<Cell, Value>> batch, boolean allPossibleCellsReadAndPresent) {
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
         return ImmutableMap.copyOf(batch);
     }
 
@@ -828,7 +849,8 @@ public SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(
         Map<Cell, Value> rawResults =
                 new HashMap<>(keyValueService.getRows(tableRef, rows, ColumnSelection.all(), getStartTimestamp()));
 
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+        // can't skip lock check as we don't know how many cells to expect for the column selection
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return filterRowResults(tableRef, rawResults, ImmutableMap.builderWithExpectedSize(rawResults.size()));
     }
 
@@ -921,13 +943,12 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
             }
         }
 
-        // We don't need to read any cells that were written locally.
+        // We don't need to read any cells that were written locally. Making an immutable copy because otherwise adding
+        // values to the result map would prevent us from calculating the correct size for
+        // allPossibleCellsReadAndPresent, since Sets.difference gives us a live view.
+        Set<Cell> cellsWithNoLocalWrites = ImmutableSet.copyOf(Sets.difference(cells, result.keySet()));
         return Futures.transform(
-                getFromKeyValueService(
-                        tableRef,
-                        Sets.difference(cells, result.keySet()),
-                        asyncKeyValueService,
-                        asyncTransactionService),
+                getFromKeyValueService(tableRef, cellsWithNoLocalWrites, asyncKeyValueService, asyncTransactionService),
                 fromKeyValueService -> {
                     result.putAll(fromKeyValueService);
 
@@ -941,7 +962,11 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
                                 SafeArg.of("getOperation", operationName),
                                 SafeArg.of("durationMillis", getMillis));
                     }
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+
+                    boolean allPossibleCellsReadAndPresent =
+                            fromKeyValueService.size() == cellsWithNoLocalWrites.size();
+                    validatePreCommitRequirementsOnReadIfNecessary(
+                            tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
                     return removeEmptyColumns(result, tableRef);
                 },
                 MoreExecutors.directExecutor());
@@ -957,13 +982,15 @@ public Map<Cell, byte[]> getIgnoringLocalWrites(TableReference tableRef, Set<Cel
 
         ListenableFuture<Map<Cell, byte[]>> result =
                 getFromKeyValueService(tableRef, cells, immediateKeyValueService, immediateTransactionService);
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
 
         Map<Cell, byte[]> unfiltered = Futures.getUnchecked(result);
         Map<Cell, byte[]> filtered = Maps.filterValues(unfiltered, Predicates.not(Value::isTombstone));
 
         TraceStatistics.incEmptyValues(unfiltered.size() - filtered.size());
 
+        boolean allPossibleCellsReadAndPresent = unfiltered.size() == cells.size();
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
+
         return filtered;
     }
 
@@ -1016,7 +1043,8 @@ public Iterable<BatchingVisitable<RowResult<byte[]>>> getRanges(
                     Timer.Context timer = getTimer("processedRangeMillis").time();
                     Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> firstPages =
                             keyValueService.getFirstBatchForRanges(tableRef, input, getStartTimestamp());
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+                    // can't skip lock check for range scans
+                    validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
 
                     SortedMap<Cell, byte[]> postFiltered = postFilterPages(tableRef, firstPages.values());
 
@@ -1142,18 +1170,42 @@ protected <K extends Exception> void batchAcceptSizeHint(
         };
     }
 
-    private void validatePreCommitRequirementsOnReadIfNecessary(TableReference tableRef, long timestamp) {
-        if (isValidationNecessaryOnReads(tableRef)) {
+    private void validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(TableReference tableRef, long timestamp) {
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, timestamp, false);
+    }
+
+    /*
+    We don't have any guarantees that reads and commit will be executed in a single threaded manner, so we could in
+    theory return wrong results if we perform async reads while trying to commit. But our protocol doesn't aim to
+    support such case, and we're OK with having undefined behaviour in these occasions.
+
+    Example of such case:
+       - We're reading a thoroughly swept table with no configuration for immediate validation on reads.
+       - An async range scan is performed, but hasn't started executing yet.
+       - We start commit round on the main thread
+       - Commit doesn't check for immutable timestamp lock because
+           hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound is false
+       - We finish the range scan on the second thread, but validation is skipped due to the configuration and it sets
+           hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound to true, but that is never checked due to
+            the commit round having already happened.
+       - We then risk having returned inconsistent values in this transaction, since we could have lost the immutableT
+            lock, but never checked it and values could've been swept under us.
+    */
+    private void validatePreCommitRequirementsOnReadIfNecessary(
+            TableReference tableRef, long timestamp, boolean allPossibleCellsReadAndPresent) {
+        if (isValidationNecessaryOnReads(tableRef, allPossibleCellsReadAndPresent)) {
             throwIfPreCommitRequirementsNotMet(null, timestamp);
+        } else if (!allPossibleCellsReadAndPresent) {
+            hasPossiblyUnvalidatedReads = true;
         }
     }
 
-    private boolean isValidationNecessaryOnReads(TableReference tableRef) {
-        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef);
+    private boolean isValidationNecessaryOnReads(TableReference tableRef, boolean allPossibleCellsReadAndPresent) {
+        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef, allPossibleCellsReadAndPresent);
     }
 
-    private boolean requiresImmutableTimestampLocking(TableReference tableRef) {
-        return sweepStrategyManager.get(tableRef).mustCheckImmutableLockAfterReads()
+    private boolean requiresImmutableTimestampLocking(TableReference tableRef, boolean allPossibleCellsReadAndPresent) {
+        return sweepStrategyManager.get(tableRef).mustCheckImmutableLock(allPossibleCellsReadAndPresent)
                 || transactionConfig.get().lockImmutableTsOnReadOnlyTransactions();
     }
 
@@ -1302,11 +1354,13 @@ protected <T> ClosableIterator<RowResult<T>> postFilterIterator(
             @Override
             protected Iterator<RowResult<T>> computeNext() {
                 List<RowResult<Value>> batch = results.getBatch().batch();
-                validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
                 if (batch.isEmpty()) {
                     return endOfData();
                 }
                 SortedMap<Cell, T> postFilter = postFilterRows(tableRef, batch, transformer);
+
+                // can't skip lock checks for range scans
+                validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
                 results.markNumResultsNotDeleted(
                         Cells.getRows(postFilter.keySet()).size());
                 return Cells.createRowView(postFilter.entrySet());
@@ -1451,9 +1505,9 @@ private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilterin
 
         return Futures.transformAsync(
                 Futures.immediateFuture(rawResults),
-                remainingResultsToPostFilter -> getWithPostFilteringIterate(
+                resultsToPostFilter -> getWithPostFilteringIterate(
                         tableRef,
-                        remainingResultsToPostFilter,
+                        resultsToPostFilter,
                         resultsAccumulator,
                         transformer,
                         asyncKeyValueService,
@@ -1463,32 +1517,39 @@ private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilterin
 
     private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilteringIterate(
             TableReference tableReference,
-            Map<Cell, Value> remainingResultsToPostFilter,
+            Map<Cell, Value> resultsToPostFilter,
             Collection<Map.Entry<Cell, T>> resultsAccumulator,
             Function<Value, T> transformer,
             AsyncKeyValueService asyncKeyValueService,
             AsyncTransactionService asyncTransactionService) {
-        if (remainingResultsToPostFilter.isEmpty()) {
-            getCounter(AtlasDbMetricNames.SNAPSHOT_TRANSACTION_CELLS_RETURNED, tableReference)
-                    .inc(resultsAccumulator.size());
-            return Futures.immediateFuture(resultsAccumulator);
-        }
-
         return Futures.transformAsync(
-                getWithPostFilteringInternal(
-                        tableReference,
-                        remainingResultsToPostFilter,
-                        resultsAccumulator,
-                        transformer,
-                        asyncKeyValueService,
-                        asyncTransactionService),
-                remaining -> getWithPostFilteringIterate(
-                        tableReference,
-                        remaining,
-                        resultsAccumulator,
-                        transformer,
-                        asyncKeyValueService,
-                        asyncTransactionService),
+                Futures.immediateFuture(resultsToPostFilter),
+                results -> {
+                    int iterations = 0;
+                    Map<Cell, Value> remainingResultsToPostFilter = results;
+                    while (!remainingResultsToPostFilter.isEmpty()) {
+                        remainingResultsToPostFilter = AtlasFutures.getUnchecked(getWithPostFilteringInternal(
+                                tableReference,
+                                remainingResultsToPostFilter,
+                                resultsAccumulator,
+                                transformer,
+                                asyncKeyValueService,
+                                asyncTransactionService));
+                        Preconditions.checkState(
+                                ++iterations < MAX_POST_FILTERING_ITERATIONS,
+                                "Unable to filter cells to find correct result after "
+                                        + "reaching max iterations. This is likely due to aborted cells lying around,"
+                                        + " or in the very rare case, could be due to transactions which constantly "
+                                        + "conflict but never commit. These values will be cleaned up eventually, but"
+                                        + " if the issue persists, ensure that sweep is caught up.",
+                                SafeArg.of("table", tableReference),
+                                SafeArg.of("maxIterations", MAX_POST_FILTERING_ITERATIONS));
+                    }
+                    getCounter(AtlasDbMetricNames.SNAPSHOT_TRANSACTION_CELLS_RETURNED, tableReference)
+                            .inc(resultsAccumulator.size());
+
+                    return Futures.immediateFuture(resultsAccumulator);
+                },
                 MoreExecutors.directExecutor());
     }
 
@@ -1677,7 +1738,9 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
             return Futures.transform(
                     asyncKeyValueService.getAsync(tableRef, keysToReload),
                     nextRawResults -> {
-                        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+                        boolean allPossibleCellsReadAndPresent = nextRawResults.size() == keysToReload.size();
+                        validatePreCommitRequirementsOnReadIfNecessary(
+                                tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
                         return getRemainingResults(nextRawResults, keysAddedToResults);
                     },
                     MoreExecutors.directExecutor());
@@ -2448,20 +2511,25 @@ private void logCommitLockTenureExceeded(
 
     protected Set<LockDescriptor> getLocksForWrites() {
         Set<LockDescriptor> result = new HashSet<>();
+        long cellLockCount = 0L;
+        long rowLockCount = 0L;
         for (TableReference tableRef : writesByTable.keySet()) {
             ConflictHandler conflictHandler = getConflictHandlerForTable(tableRef);
             if (conflictHandler.lockCellsForConflicts()) {
-                for (Cell cell : getLocalWrites(tableRef).keySet()) {
+                NavigableSet<Cell> cellsToLock = getLocalWrites(tableRef).keySet();
+                for (Cell cell : cellsToLock) {
                     result.add(AtlasCellLockDescriptor.of(
                             tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName()));
                 }
+                cellLockCount = cellsToLock.size();
             }
 
             if (conflictHandler.lockRowsForConflicts()) {
                 Cell lastCell = null;
                 for (Cell cell : getLocalWrites(tableRef).keySet()) {
                     if (lastCell == null || !Arrays.equals(lastCell.getRowName(), cell.getRowName())) {
                         result.add(AtlasRowLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName()));
+                        rowLockCount++;
                     }
                     lastCell = cell;
                 }
@@ -2470,6 +2538,8 @@ protected Set<LockDescriptor> getLocksForWrites() {
         result.add(AtlasRowLockDescriptor.of(
                 TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
                 TransactionConstants.getValueForTimestamp(getStartTimestamp())));
+        cellCommitLocksRequested = cellLockCount;
+        rowCommitLocksRequested = rowLockCount + 1;
         return result;
     }
 
@@ -2591,8 +2661,8 @@ private boolean hasAnyInvolvedTables() {
     }
 
     private boolean validationNecessaryForInvolvedTablesOnCommit() {
-        boolean anyTableRequiresImmutableTimestampLocking =
-                involvedTables.stream().anyMatch(this::requiresImmutableTimestampLocking);
+        boolean anyTableRequiresImmutableTimestampLocking = involvedTables.stream()
+                .anyMatch(tableRef -> requiresImmutableTimestampLocking(tableRef, !hasPossiblyUnvalidatedReads));
         boolean needsToValidate = !validateLocksOnReads || !hasReads();
         return anyTableRequiresImmutableTimestampLocking && needsToValidate;
     }
@@ -2607,6 +2677,14 @@ public TransactionReadInfo getReadInfo() {
         return keyValueService.getOverallReadInfo();
     }
 
+    @Override
+    public TransactionCommitLockInfo getCommitLockInfo() {
+        return ImmutableTransactionCommitLockInfo.builder()
+                .cellCommitLocksRequested(cellCommitLocksRequested)
+                .rowCommitLocksRequested(rowCommitLocksRequested)
+                .build();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         if (isStillRunning()) {
@@ -2616,18 +2694,25 @@ public void reportExpectationsCollectedData() {
             return;
         }
 
-        reportExpectationsCollectedData(getAgeMillis(), getReadInfo(), expectationsDataCollectionMetrics);
+        reportExpectationsCollectedData(
+                getAgeMillis(), getReadInfo(), getCommitLockInfo(), expectationsDataCollectionMetrics);
     }
 
     @VisibleForTesting
     static void reportExpectationsCollectedData(
-            long ageMillis, TransactionReadInfo readInfo, ExpectationsMetrics metrics) {
+            long ageMillis,
+            TransactionReadInfo readInfo,
+            TransactionCommitLockInfo commitLockInfo,
+            ExpectationsMetrics metrics) {
         metrics.ageMillis().update(ageMillis);
         metrics.bytesRead().update(readInfo.bytesRead());
         metrics.kvsReads().update(readInfo.kvsCalls());
 
         readInfo.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
                 .update(kvsCallReadInfo.bytesRead()));
+
+        metrics.cellCommitLocksRequested().update(commitLockInfo.cellCommitLocksRequested());
+        metrics.rowCommitLocksRequested().update(commitLockInfo.rowCommitLocksRequested());
     }
 
     private long getStartTimestamp() {u}(j' (89147dc77a01612d3af8f3130ea758e4445537c7j' 5atlasdb-impl-shared/src/main/metrics/expectations.ymlj ( modifiedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -17,3 +17,9 @@ namespaces:
       mostKvsBytesReadInSingleCall:
         docs: Most bytes read by a transaction in one Atlas kvs read call
         type: histogram
+      cellCommitLocksRequested:
+        docs: Number of cell-level commit locks requested as part of the commit protocol
+        type: histogram
+      rowCommitLocksRequested:
+        docs: Number of row-level commit locks requested as part of the commit protocol
+        type: histogramu}(j' (58455c9fcbd5e41aa2e34c82091e30cd04cd5a51j' `atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitionerTest.javaj ( modifiedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( Xf  @@ -105,6 +105,7 @@ public void getStrategyQueriesKvsOnlyOnceForEachTable() {
         }
         verify(mockKvs, times(1)).getMetadataForTable(NOTHING);
         verify(mockKvs, times(1)).getMetadataForTable(CONSERVATIVE);
+        verify(mockKvs, times(2)).sweepsEntriesInStrictlyNonDecreasingFashion();
         verifyNoMoreInteractions(mockKvs);
     }
 u}(j' (283b84abcfb6697b50fee5fa0db0dbc2d58dfab8j' matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javaj ( modifiedj' K&j' Kj( K2j( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( XI  @@ -18,7 +18,9 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.codahale.metrics.Histogram;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
@@ -34,6 +36,12 @@ public final class ExpectationsMetricsReportingTest {
     private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
             ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
 
+    private static final ImmutableTransactionCommitLockInfo BLANK_COMMIT_LOCK_INFO =
+            ImmutableTransactionCommitLockInfo.builder()
+                    .cellCommitLocksRequested(0L)
+                    .rowCommitLocksRequested(0L)
+                    .build();
+
     private ExpectationsMetrics metrics;
 
     @Before
@@ -44,40 +52,58 @@ public void setUp() {
     @Test
     public void ageReported() {
         long age = 129L;
-        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, metrics);
-        assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
+        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, BLANK_COMMIT_LOCK_INFO, metrics);
+        assertHistogramHasSingleValue(metrics.ageMillis(), age);
     }
 
     @Test
     public void bytesReadReported() {
         long bytes = 1290L;
-        reportMetrics(BLANK_READ_INFO.withBytesRead(bytes));
-        assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
+        reportMetricsWithReadInfo(BLANK_READ_INFO.withBytesRead(bytes));
+        assertHistogramHasSingleValue(metrics.bytesRead(), bytes);
     }
 
     @Test
     public void kvsCallsReported() {
         long calls = 12L;
-        reportMetrics(BLANK_READ_INFO.withKvsCalls(calls));
-        assertThat(metrics.kvsReads().getSnapshot().getValues()).containsOnly(calls);
+        reportMetricsWithReadInfo(BLANK_READ_INFO.withKvsCalls(calls));
+        assertHistogramHasSingleValue(metrics.kvsReads(), calls);
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
-        reportMetrics(BLANK_READ_INFO);
+        reportMetricsWithReadInfo(BLANK_READ_INFO);
         assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
                 .isEmpty();
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
         long bytes = 193L;
-        reportMetrics(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
-        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
-                .containsOnly(bytes);
+        reportMetricsWithReadInfo(
+                BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        assertHistogramHasSingleValue(metrics.mostKvsBytesReadInSingleCall(), bytes);
+    }
+
+    @Test
+    public void commitLocksRequestsReported() {
+        SnapshotTransaction.reportExpectationsCollectedData(
+                0L,
+                BLANK_READ_INFO,
+                ImmutableTransactionCommitLockInfo.builder()
+                        .cellCommitLocksRequested(1)
+                        .rowCommitLocksRequested(2)
+                        .build(),
+                metrics);
+        assertHistogramHasSingleValue(metrics.cellCommitLocksRequested(), 1);
+        assertHistogramHasSingleValue(metrics.rowCommitLocksRequested(), 2);
+    }
+
+    private void reportMetricsWithReadInfo(TransactionReadInfo readInfo) {
+        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, BLANK_COMMIT_LOCK_INFO, metrics);
     }
 
-    private void reportMetrics(TransactionReadInfo readInfo) {
-        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, metrics);
+    private void assertHistogramHasSingleValue(Histogram histogram, long expected) {
+        assertThat(histogram.getSnapshot().getValues()).containsOnly(expected);
     }
 }u}(j' (f78ed397c1ab2442f099cc74dd518e30185dd324j' !atlasdb-tests-shared/build.gradlej ( modifiedj' Kj' K j( Kj( uhttps://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-tests-shared%2Fbuild.gradlej( thttps://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-tests-shared%2Fbuild.gradlej( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fbuild.gradle?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -50,6 +50,7 @@ dependencies {
   testImplementation 'com.google.protobuf:protobuf-java'
   testImplementation 'com.palantir.common:streams'
   testImplementation 'com.palantir.safe-logging:safe-logging'
+  testImplementation 'com.palantir.safe-logging:preconditions-assertj'
   testImplementation 'com.palantir.tracing:tracing-api'
   testImplementation 'com.palantir.tritium:tritium-registry'
   testImplementation 'commons-io:commons-io'u}(j' (4ecc8d0029caabad8e99518d16b13fcf35ba33ecj' qatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractSerializableTransactionTest.javaj ( modifiedj' K
j' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( XL  @@ -1079,17 +1079,19 @@ public void testNoMarkTableInvolvedSkipsLockChecksOnCommit() {
         t1.commit();
     }
 
-    @Test
-    public void testMarkTableInvolvedChecksLocksForExpiryOnCommitWhenRequired() {
-        // Test table is thorough, therefore we check immutable timestamp lock
-        assertThatThrownBy(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
-                .isExactlyInstanceOf(TransactionLockTimeoutException.class);
-    }
-
     @Test
     public void testMarkTableInvolvedDoesNoCheckLocksForExpiryOnCommitWhenNotRequired() {
         // Test table is not thorough, therefore no immutable timestamp lock checking
-        testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE);
+        assertThatCode(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE))
+                .doesNotThrowAnyException();
+
+        if (keyValueService.sweepsEntriesInStrictlyNonDecreasingFashion()) {
+            assertThatCode(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
+                    .doesNotThrowAnyException();
+        } else {
+            assertThatThrownBy(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
+                    .isExactlyInstanceOf(TransactionLockTimeoutException.class);
+        }
     }
 
     @Testu}(j' (ddec50c29546659d961c4897e7ecbcde3efe9efbj' Latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/AtlasDbTestCase.javaj ( modifiedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X;  @@ -77,11 +77,14 @@ public class AtlasDbTestCase {
 
     protected TransactionKnowledgeComponents knowledge;
 
+    protected ExecutorService deleteExecutor;
+
     @Rule
     public InMemoryTimeLockRule inMemoryTimeLockRule = new InMemoryTimeLockRule(CLIENT);
 
     @Before
     public void setUp() throws Exception {
+        deleteExecutor = MoreExecutors.newDirectExecutorService();
         lockClient = LockClient.of(CLIENT);
         lockService = inMemoryTimeLockRule.getLockService();
         timelockService = inMemoryTimeLockRule.getLegacyTimelockService();u}(j' (864d8b372d38e6bbe575244e1b439a23398db117j' Uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/TableMigratorTest.javaj ( modifiedj' Kj' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -89,7 +89,7 @@ public void testMigrationToDifferentKvs() throws TableMappingNotFoundException {
 
         final InMemoryKeyValueService kvs2 = new InMemoryKeyValueService(false);
         final ConflictDetectionManager cdm2 = ConflictDetectionManagers.createWithNoConflictDetection();
-        final SweepStrategyManager ssm2 = SweepStrategyManagers.completelyConservative();
+        final SweepStrategyManager ssm2 = SweepStrategyManagers.completelyConservative(kvs2);
         final MetricsManager metricsManager = MetricsManagers.createForTests();
         final TestTransactionManagerImpl txManager2 = new TestTransactionManagerImpl(
                 metricsManager,
@@ -128,7 +128,7 @@ public void testMigrationToDifferentKvs() throws TableMappingNotFoundException {
         checkpointer.deleteCheckpoints();
 
         final ConflictDetectionManager verifyCdm = ConflictDetectionManagers.createWithNoConflictDetection();
-        final SweepStrategyManager verifySsm = SweepStrategyManagers.completelyConservative();
+        final SweepStrategyManager verifySsm = SweepStrategyManagers.completelyConservative(kvs2);
         final TestTransactionManagerImpl verifyTxManager = new TestTransactionManagerImpl(
                 metricsManager,
                 kvs2,u}(j' (25c1bb6a752a65ce98d2dc58adc485085adacef9j' latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javaj ( modifiedj' Kj' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -240,7 +240,9 @@ public void registersMetrics() throws InterruptedException {
                 .contains(FINISH_TASK_METRIC_NAME)
                 .contains("expectations.bytesRead")
                 .contains("expectations.kvsReads")
-                .contains("expectations.ageMillis");
+                .contains("expectations.ageMillis")
+                .contains("expectations.cellCommitLocksRequested")
+                .contains("expectations.rowCommitLocksRequested");
         assertThat(registry.timer(MetricName.builder()
                                 .safeName(SETUP_TASK_METRIC_NAME)
                                 .build())u}(j' (6a539c73f46339e398e128a8c5ba8e32e8ea9869j' eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj ( modifiedj' Kj' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X0  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
@@ -94,6 +95,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.impl.metrics.DefaultMetricsFilterEvaluationContext;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.ToplistDeltaFilteringTableLevelMetricsController;
@@ -121,6 +123,7 @@
 import com.palantir.lock.v2.LockImmutableTimestampResponse;
 import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.TimelockService;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.math.BigInteger;
 import java.nio.ByteBuffer;
@@ -316,6 +319,8 @@ public void cleanup() {}
     static final TableReference TABLE_SWEPT_THOROUGH_MIGRATION =
             TableReference.createFromFullyQualifiedName("default.table5");
 
+    static final TableReference TABLE_NO_SWEEP = TableReference.createFromFullyQualifiedName("default.table6");
+
     private static final byte[] ROW_FOO = "foo".getBytes(StandardCharsets.UTF_8);
     private static final byte[] ROW_BAR = "bar".getBytes(StandardCharsets.UTF_8);
     private static final byte[] COL_A = "a".getBytes(StandardCharsets.UTF_8);
@@ -346,6 +351,9 @@ public void setUp() throws Exception {
                 TABLE_SWEPT_THOROUGH_MIGRATION,
                 getTableMetadataForSweepStrategy(SweepStrategy.THOROUGH_MIGRATION)
                         .persistToBytes());
+        keyValueService.createTable(
+                TABLE_NO_SWEEP,
+                getTableMetadataForSweepStrategy(SweepStrategy.NOTHING).persistToBytes());
     }
 
     @Override
@@ -360,7 +368,7 @@ protected TestTransactionManager constructTestTransactionManager() {
                 sweepStrategyManager,
                 timestampCache,
                 sweepQueue,
-                MoreExecutors.newDirectExecutorService(),
+                deleteExecutor,
                 transactionWrapper,
                 keyValueServiceWrapper,
                 knowledge);
@@ -1552,7 +1560,22 @@ public void commitDoesNotThrowIfAlreadySuccessfullyCommitted() {
     }
 
     @Test
-    public void validateLocksOnReadsIfThoroughlySwept() {
+    public void doNotValidateLocksOnNonEmptyReadsIfThoroughlySwept() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        assertThatCode(() -> transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL)))
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void validateLocksOnEmptyReadsIfThoroughlySwept() {
         long transactionTs = timelockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
         Transaction transaction =
@@ -1564,6 +1587,22 @@ public void validateLocksOnReadsIfThoroughlySwept() {
                 .isThrownBy(() -> transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL)));
     }
 
+    @Test
+    public void doNotValidateLocksOnCommitIfValidationFlagIsFalseAndOnlyReadNonEmptyValuesOnThoroughlySweptTable() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+
+        assertThatCode(transaction::commit).doesNotThrowAnyException();
+    }
+
     @Test
     public void validateLocksOnlyOnCommitIfValidationFlagIsFalse() {
         long transactionTs = timelockService.getFreshTimestamp();
@@ -1579,7 +1618,45 @@ public void validateLocksOnlyOnCommitIfValidationFlagIsFalse() {
     }
 
     @Test
-    public void checkImmutableTsLockOnceIfThoroughlySwept_WithValidationOnReads() {
+    public void validateLocksOnCommitIfEmptyReadsFollowedByNonEmptyReadsIfValidationFlagIsFalse() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        // First reading empty value
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL_2));
+        // Then reading non-empty value.
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+
+        // Make sure that lock is still validated in the end due to the initial empty read
+        assertThatExceptionOfType(TransactionLockTimeoutException.class).isThrownBy(transaction::commit);
+    }
+
+    @Test
+    public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithValidationOnReads() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        Transaction transaction = getSnapshotTransactionWith(
+                spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+        transaction.commit();
+        spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
+
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+    }
+
+    @Test
+    public void checkImmutableTsLockOnceIfEmptyReadOnThoroughlySwept_WithValidationOnReads() {
         TimelockService spiedTimeLockService = spy(timelockService);
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
@@ -1595,7 +1672,25 @@ public void checkImmutableTsLockOnceIfThoroughlySwept_WithValidationOnReads() {
     }
 
     @Test
-    public void checkImmutableTsLockOnceIfThoroughlySwept_WithoutValidationOnReads() {
+    public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithoutValidationOnReads() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        Transaction transaction = getSnapshotTransactionWith(
+                spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+        transaction.commit();
+        spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
+
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+    }
+
+    @Test
+    public void checkImmutableTsLockOnceIfEmptyReadOnThoroughlySwept_WithoutValidationOnReads() {
         TimelockService spiedTimeLockService = spy(timelockService);
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
@@ -2371,6 +2466,76 @@ public void testConstraintsViolated() {
                         eq(AtlasDbConstraintCheckingMode.FULL_CONSTRAINT_CHECKING_THROWS_EXCEPTIONS));
     }
 
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializableCell() {
+        // Will request commit locks for cells, but not rows
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_CELL);
+
+        // We can only get the commit info from a snapshot transaction
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        // For write transactions, we always lock an additional row in the transaction table
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(0 + 1);
+    }
+
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializable() {
+        // Will request commit locks for rows, but not cells
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(0);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(2 + 1);
+    }
+
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigration_sameRow() {
+        // Will request commit locks for cells and rows
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_LOCK_LEVEL_MIGRATION);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(
+                TABLE,
+                ImmutableMap.of(Cell.create(PtBytes.toBytes("same_row"), PtBytes.toBytes("column1")), TEST_VALUE));
+        txn.put(
+                TABLE,
+                ImmutableMap.of(
+                        Cell.create(
+                                PtBytes.toBytes("same_row"),
+                                // Writing to the same row, but different column/cell
+                                PtBytes.toBytes("column2")),
+                        TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
+    }
+
+    @Test
+    public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
+        for (int idx = 0; idx < SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS; idx++) {
+            putUncommittedAtFreshTimestamp(TABLE_NO_SWEEP, TEST_CELL);
+        }
+        assertThatLoggableExceptionThrownBy(
+                        () -> txManager.runTaskThrowOnConflict(txn -> txn.get(TABLE_NO_SWEEP, Set.of(TEST_CELL))))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageStartingWith("Unable to filter cells")
+                .hasExactlyArgs(
+                        SafeArg.of("table", TABLE_NO_SWEEP),
+                        SafeArg.of("maxIterations", SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS));
+    }
+
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,u}(j' (b5c7b9efcec99e2e4e3b5ccc3eb2f13e725dca1aj' 9atlasdb-workload-server-antithesis/var/docker-compose.ymlj ( modifiedj' K j' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X8  @@ -15,8 +15,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra1
-    volumes:
-      - /opt/config/volumes/cassandra1:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
@@ -35,8 +33,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra2
-    volumes:
-      - /opt/config/volumes/cassandra2:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
@@ -55,8 +51,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra3
-    volumes:
-      - /opt/config/volumes/cassandra3:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.4u}(j' (6fff522b93c2fac008381bf889fb8bd37ac6b462j' matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelection.javaj ( modifiedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( Xm  @@ -60,6 +60,10 @@ default void check() {
                 SafeArg.of("endColumnExclusive", endColumnExclusive()));
     }
 
+    static ColumnRangeSelection all() {
+        return ImmutableColumnRangeSelection.builder().build();
+    }
+
     static ImmutableColumnRangeSelection.Builder builder() {
         return ImmutableColumnRangeSelection.builder();
     }u}(j' (813978dd1860b6fe6d1edf472c0e66a8bd3a02a9j' oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javaj ( modifiedj' Kj' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -32,7 +32,7 @@ public interface InteractiveTransaction {
 
     void delete(String table, WorkloadCell workloadCell);
 
-    List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection);
+    List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection);
 
     List<WitnessedTransactionAction> witness();
 }u}(j' (f2fc56cca46a09c2ef718c3b7cb6b8d4000c1d8fj' atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javaj ( modifiedj' Kj' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( @@ -16,4 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-public interface InvalidWitnessedTransactionAction {}
+public interface InvalidWitnessedTransactionAction {
+    // Marker interface
+}u}(j' (284f26075e3ae1ed8320bcbc8402749af631ccddj' atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javaj ( modifiedj' Kj' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj( X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X5  @@ -23,12 +23,15 @@
 import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
+import java.util.stream.Collectors;
 import org.immutables.value.Value;
 
 @Value.Immutable
 public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedTransactionAction {
     RowColumnRangeReadTransactionAction originalQuery();
 
+    // This is a List rather than a Set or Map because the ordering in which the columns and values are returned is
+    // important (it must match the ordering specified by the contract of row column range reads).
     List<ColumnValue> columnsAndValues();
 
     @Override
@@ -39,14 +42,15 @@ default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
     @Value.Check
     default void check() {
         Set<Integer> knownColumns = new HashSet<>();
-        for (ColumnValue columnValue : columnsAndValues()) {
-            Preconditions.checkState(
-                    !knownColumns.contains(columnValue.column()),
-                    "Duplicate column in columnsAndValues",
-                    SafeArg.of("duplicatedColumn", columnValue.column()),
-                    SafeArg.of("columnsAndValues", columnsAndValues()));
-            knownColumns.add(columnValue.column());
-        }
+        Set<Integer> duplicateColumns = columnsAndValues().stream()
+                .map(ColumnValue::column)
+                .filter(column -> !knownColumns.add(column))
+                .collect(Collectors.toSet());
+        Preconditions.checkState(
+                duplicateColumns.isEmpty(),
+                "Duplicate columns in columnsAndValues",
+                SafeArg.of("duplicateColumns", duplicateColumns),
+                SafeArg.of("columnsAndValues", columnsAndValues()));
     }
 
     static ImmutableWitnessedRowColumnRangeReadTransactionAction.Builder builder() {u}(j' (b82a1877bfa21ed5ff5d495189902a280d14ea0cj' atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javaj ( modifiedj' Kj' Kj( K-j( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj( X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( Xt  @@ -20,45 +20,52 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 
 import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
 import org.junit.Test;
 
 public class WitnessedRowColumnRangeReadTransactionActionTest {
     @Test
     public void canCreateWitness() {
         assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
-                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                                .table("foo")
-                                .row(1)
-                                .columnRangeSelection(
-                                        ColumnRangeSelection.builder().build())
-                                .build())
+                .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
+                .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                        .table("foo")
+                        .row(1)
+                        .columnRangeSelection(
+                                ColumnRangeSelection.builder().build())
                         .build())
+                .build())
                 .doesNotThrowAnyException();
     }
 
     @Test
     public void cannotCreateWitnessWithDuplicateColumns() {
+        List<ColumnValue> columnsAndValues = ImmutableList.of(
+                ColumnValue.of(1, 5),
+                ColumnValue.of(5, 1),
+                ColumnValue.of(1, 3),
+                ColumnValue.of(5, 8),
+                ColumnValue.of(9, 99));
+
         assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))
-                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                                .table("foo")
-                                .row(1)
-                                .columnRangeSelection(
-                                        ColumnRangeSelection.builder().build())
-                                .build())
+                .addAllColumnsAndValues(columnsAndValues)
+                .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                        .table("foo")
+                        .row(1)
+                        .columnRangeSelection(
+                                ColumnRangeSelection.builder().build())
                         .build())
+                .build())
                 .isInstanceOf(SafeIllegalStateException.class)
-                .hasMessageContaining("Duplicate column in columnsAndValues")
+                .hasMessageContaining("Duplicate columns in columnsAndValues")
                 .hasExactlyArgs(
-                        SafeArg.of("duplicatedColumn", 1),
-                        SafeArg.of(
-                                "columnsAndValues",
-                                ImmutableList.of(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))));
+                        SafeArg.of("duplicateColumns", ImmutableSet.of(1, 5)),
+                        SafeArg.of("columnsAndValues", columnsAndValues));
     }
 }u      }(j' (37e59da7fde3c443b1071e9b0c484c2da4e9f50ej' latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj ( modifiedj' K'j' K j( K'j( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( Xk  @@ -37,6 +37,8 @@
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
@@ -142,6 +144,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().transientRowsConfig();
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
+        SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadNoTouchWorkflowConfiguration =
+                configuration.install().singleBusyCellReadsNoTouchConfig();
         BankBalanceWorkflowConfiguration bankBalanceConfig =
                 configuration.install().bankBalanceConfig();
         RandomWorkflowConfiguration randomWorkflowConfig =
@@ -159,6 +163,10 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
                         createSingleBusyCellWorkflowValidator(
                                 transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellReadNoTouchWorkflowValidator(
+                                transactionStoreFactory,
+                                singleBusyCellReadNoTouchWorkflowConfiguration,
+                                environment.lifecycle()),
                         createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
                         createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
 
@@ -244,6 +252,37 @@ private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
                 SerializableInvariantLogReporter.INSTANCE);
     }
 
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellReadNoTouchWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellReadNoTouchWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-read")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-write")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellReadNoTouchWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellReadNoTouchWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
     private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             RingWorkflowConfiguration workflowConfig,u}(j' (388054e20c18c9c8d612db0e6d9ac1018b7f9b14j' atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj ( modifiedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X)  @@ -20,6 +20,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
@@ -45,5 +46,7 @@ public interface WorkloadServerInstallConfiguration {
 
     RandomWorkflowConfiguration randomConfig();
 
+    SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadsNoTouchConfig();
+
     boolean exitAfterRunning();
 }u}(j' (da4b728986375bd8565c46e930098c1a684a145cj' Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj ( modifiedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -41,4 +41,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: false
\ No newline at end of fileu}(j' (50dbd20de7876d2a9cb53eef291722b8b19cd0b5j' Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj ( modifiedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( Xr  @@ -78,4 +78,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single_busy_cell_no_touch_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: trueu}(j' (7bd7f984a5ef15a2179c415620f48a0737332c43j' Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj ( modifiedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -42,4 +42,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: true
\ No newline at end of fileu}(j' (20b31cf76e2133d94ff55a28f70c6c66e2677ee1j' latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj ( modifiedj' Kj' K	j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X	  @@ -101,7 +101,7 @@ public void delete(String table, WorkloadCell workloadCell) {
     }
 
     @Override
-    public List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection) {
+    public List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection) {
         return run(
                 tableReference -> {
                     // Having a non-configurable batch hint is a bit iffy, but suffices as this won't be used in
@@ -111,20 +111,22 @@ public List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRang
                             List.of(AtlasDbUtils.toAtlasKey(row)),
                             BatchColumnRangeSelection.create(
                                     AtlasDbUtils.toAtlasColumnRangeSelection(columnRangeSelection), 100));
+                    Preconditions.checkState(
+                            iterators.size() == 1,
+                            "Expected exactly one iterator to be returned",
+                            SafeArg.of("iteratorsReturned", iterators.size()));
                     List<ColumnValue> columnsAndValues = EntryStream.of(iterators.get(AtlasDbUtils.toAtlasKey(row)))
                             .mapKeys(Cell::getColumnName)
                             .mapKeys(AtlasDbUtils::fromAtlasColumn)
                             .mapValues(AtlasDbUtils::fromAtlasValue)
                             .map(entry -> ColumnValue.of(entry.getKey(), entry.getValue()))
                             .collect(Collectors.toList());
-                    witnessedTransactionActions.add(WitnessedRowColumnRangeReadTransactionAction.builder()
-                            .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                                    .table(table)
-                                    .row(row)
-                                    .columnRangeSelection(columnRangeSelection)
-                                    .build())
-                            .columnsAndValues(columnsAndValues)
-                            .build());
+                    witnessedTransactionActions.add(RowColumnRangeReadTransactionAction.builder()
+                            .table(table)
+                            .row(row)
+                            .columnRangeSelection(columnRangeSelection)
+                            .build()
+                            .witness(columnsAndValues));
                     return columnsAndValues;
                 },
                 table);u}(j' (c0b928a691dd6a08df3573185b9acfcb33f6f850j' katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReader.javaj ( modifiedj' Kj' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -50,8 +50,8 @@ public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTrans
         if (allValues.size() > LARGE_HISTORY_LIMIT) {
             log.error(
                     "Attempted to do range queries in a simple way, even though the history is large ({} entries)! If"
-                        + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
-                        + " efficient range query implementation.",
+                            + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
+                            + " efficient range query implementation.",
                     SafeArg.of("size", allValues.size()));
         }
         return allValues
@@ -67,11 +67,8 @@ public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTrans
                             .contains(tableAndWorkloadCell.cell().column());
                 })
                 .filterValues(Optional::isPresent)
-                .map(entry -> ColumnValue.of(
-                        entry._1().cell().column(),
-                        entry._2()
-                                .orElseThrow(() -> new SafeRuntimeException(
-                                        "Empty values should already have been filtered out!"))))
+                .mapValues(Optional::get)
+                .map(entry -> ColumnValue.of(entry._1().cell().column(), entry._2()))
                 .sortBy(ColumnValue::column)
                 .toJavaList();
     }u}(j' (cfa7bb7b766851d22237ea49091b9cce6c50c789j' atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowConfiguration.javaj ( addedj' K j' K j( K j( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( Xz  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellReadNoTouchWorkflowConfiguration.TYPE)
+public interface SingleBusyCellReadNoTouchWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell-reads-no-touch";
+
+    TableConfiguration tableConfiguration();
+}u}(j' (ae852affb871f77d186c4b71ecca052b5aeeed40j' tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflows.javaj ( addedj' Kjj' K j( Kjj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions. This workflow differs
+ * from the {@link SingleBusyCellWorkflows} in the way that its read transaction only does read and doesn't touch the
+ * cell with its current value or -1. This allows us to exercise the code path of read-write transaction that only do
+ * reads, which is necessary to catch bugs like sweep deleting entries under a transaction if it doesn't check for
+ * immutableTimestamp lock.
+ */
+public final class SingleBusyCellReadNoTouchWorkflows {
+    private SingleBusyCellReadNoTouchWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReads(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReads(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(
+                        txn -> txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL))))
+                .collect(Collectors.toList());
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
+    }
+}u}(j' (9002a5ed3382a35694d630c784b417cd15befa46j' hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javaj ( modifiedj' Kj' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( XA  @@ -38,6 +38,7 @@
 import java.security.SecureRandom;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Objects;
 import java.util.Optional;
 import java.util.Set;
 import java.util.stream.Collectors;
@@ -141,10 +142,12 @@ private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActi
                 .orElseThrow(() -> new SafeIllegalStateException(
                         "Expected to find a read of the summary row", SafeArg.of("actions", actions)));
         WitnessedReadTransactionAction normalRowRead = readTransactionActions.stream()
-                .filter(action -> action.cell().key() != SUMMARY_ROW)
+                .filter(action -> Objects.equals(
+                                action.cell().key(), summaryRowRead.cell().column())
+                        && action.cell().column() == COLUMN)
                 .findAny()
                 .orElseThrow(() -> new SafeIllegalStateException(
-                        "Expected to find a read of a normal row", SafeArg.of("actions", actions)));
+                        "Expected to find a read of a corresponding normal row", SafeArg.of("actions", actions)));
         if (!summaryRowRead.value().equals(normalRowRead.value())) {
             return Stream.of(CrossCellInconsistency.builder()
                     .putInconsistentValues(u}(j' (c8018ac7639c00059b53f6ab1525b9304eba6674j' patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj ( modifiedj' K,j' K5j( Kaj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X'  @@ -59,10 +59,10 @@ public void before() {
     @Test
     public void witnessRecordsAllSingleCellActions() {
         assertThat(readWrite(transaction -> {
-                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-                    transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
-                }))
+            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+            transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
+        }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
@@ -72,10 +72,10 @@ public void witnessRecordsAllSingleCellActions() {
     @Test
     public void readHandlesEmptyAndPresentValue() {
         assertThat(readWrite(transaction -> {
-                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-                    transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
-                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-                }))
+            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+            transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+        }))
                 .containsExactly(
                         WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
@@ -85,20 +85,16 @@ public void readHandlesEmptyAndPresentValue() {
     @Test
     public void witnessRecordsColumnRangeActions() {
         assertThat(readWrite(transaction -> {
-                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            WORKLOAD_CELL_TWO.key(),
-                            ColumnRangeSelection.builder().build());
-                }))
+            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+            transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+        }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedRowColumnRangeReadTransactionAction.builder()
                                 .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                         .table(TABLE_1)
                                         .row(WORKLOAD_CELL_TWO.key())
-                                        .columnRangeSelection(
-                                                ColumnRangeSelection.builder().build())
+                                        .columnRangeSelection(ColumnRangeSelection.all())
                                         .build())
                                 .addColumnsAndValues(ColumnValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
                                 .build());
@@ -107,17 +103,13 @@ public void witnessRecordsColumnRangeActions() {
     @Test
     public void emptyColumnRangeReadsAreRecorded() {
         assertThat(readWrite(transaction -> {
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            WORKLOAD_CELL_TWO.key(),
-                            ColumnRangeSelection.builder().build());
-                }))
+            transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+        }))
                 .containsExactly(WitnessedRowColumnRangeReadTransactionAction.builder()
                         .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                 .table(TABLE_1)
                                 .row(WORKLOAD_CELL_TWO.key())
-                                .columnRangeSelection(
-                                        ColumnRangeSelection.builder().build())
+                                .columnRangeSelection(ColumnRangeSelection.all())
                                 .build())
                         .build());
     }
@@ -126,12 +118,11 @@ public void emptyColumnRangeReadsAreRecorded() {
     public void allRelevantCellsAreRecordedForFullColumnScan() {
         int iterationCount = 1000;
         assertThat(readWrite(transaction -> {
-                    IntStream.range(0, iterationCount)
-                            .forEach(column ->
-                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-                    transaction.getRowColumnRange(
-                            TABLE_1, 1, ColumnRangeSelection.builder().build());
-                }))
+            IntStream.range(0, iterationCount)
+                    .forEach(column ->
+                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+            transaction.getRowColumnRange(TABLE_1, 1, ColumnRangeSelection.all());
+        }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
@@ -149,17 +140,17 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
         int startInclusive = 313;
         int endExclusive = 855;
         assertThat(readWrite(transaction -> {
-                    IntStream.range(0, iterationCount)
-                            .forEach(column ->
-                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            1,
-                            ColumnRangeSelection.builder()
-                                    .startColumnInclusive(startInclusive)
-                                    .endColumnExclusive(endExclusive)
-                                    .build());
-                }))
+            IntStream.range(0, iterationCount)
+                    .forEach(column ->
+                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+            transaction.getRowColumnRange(
+                    TABLE_1,
+                    1,
+                    ColumnRangeSelection.builder()
+                            .startColumnInclusive(startInclusive)
+                            .endColumnExclusive(endExclusive)
+                            .build());
+        }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
@@ -189,8 +180,8 @@ public void deleteThrowsWhenTableDoesNotExist() {
 
     @Test
     public void getRowsColumnRangeThrowsWhenTableDoesNotExist() {
-        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.getRowColumnRange(
-                TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.builder().build()));
+        assertThatThrownWhenUnknownTableReferenced(transaction ->
+                transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.all()));
     }
 
     @Test
@@ -213,8 +204,8 @@ public void deleteThrowsWhenInteractiveTransactionAlreadyWitnessed() {
 
     @Test
     public void getRowColumnRangeThrowsWhenInteractiveTransactionAlreadyWitnessed() {
-        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(transaction -> transaction.getRowColumnRange(
-                TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.builder().build()));
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(transaction ->
+                transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.all()));
     }
 
     private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
@@ -229,22 +220,22 @@ private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTr
     private void assertThatThrownWhenUnknownTableReferenced(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-                    transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
-                    return null;
-                }))
+            transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
+            return null;
+        }))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Transaction action has unknown table.");
     }
 
     private void assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-                    AtlasDbInteractiveTransaction transaction =
-                            new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
-                    transaction.witness();
-                    transactionConsumer.accept(transaction);
-                    return null;
-                }))
+            AtlasDbInteractiveTransaction transaction =
+                    new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
+            transaction.witness();
+            transactionConsumer.accept(transaction);
+            return null;
+        }))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Transaction has already been witnessed and can no longer perform any actions.");
     }u}(j' (64a306509b8c4df3ad24f99c149bfd057264b29aj' oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReaderTest.javaj ( modifiedj' Kj' Kj( K+j( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X2
  @@ -38,10 +38,10 @@ public void doesNotReadCellsFromDifferentTable() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                        .table(WorkloadTestHelpers.TABLE_2)
-                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
-                        .columnRangeSelection(ColumnRangeSelection.builder().build())
-                        .build()))
+                .table(WorkloadTestHelpers.TABLE_2)
+                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                .columnRangeSelection(ColumnRangeSelection.all())
+                .build()))
                 .isEmpty();
     }
 
@@ -51,10 +51,10 @@ public void doesNotReadCellsFromDifferentRow() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                        .table(WorkloadTestHelpers.TABLE_1)
-                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
-                        .columnRangeSelection(ColumnRangeSelection.builder().build())
-                        .build()))
+                .table(WorkloadTestHelpers.TABLE_1)
+                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
+                .columnRangeSelection(ColumnRangeSelection.builder().build())
+                .build()))
                 .isEmpty();
     }
 
@@ -67,15 +67,28 @@ public void readsCellsFromRangeInOrder() {
                     Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         }
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                        .table(WorkloadTestHelpers.TABLE_1)
-                        .row(1)
-                        .columnRangeSelection(ColumnRangeSelection.builder()
-                                .startColumnInclusive(2)
-                                .endColumnExclusive(4)
-                                .build())
-                        .build()))
+                .table(WorkloadTestHelpers.TABLE_1)
+                .row(1)
+                .columnRangeSelection(ColumnRangeSelection.builder()
+                        .startColumnInclusive(2)
+                        .endColumnExclusive(4)
+                        .build())
+                .build()))
                 .containsExactly(
                         ColumnValue.of(2, WorkloadTestHelpers.VALUE_ONE),
                         ColumnValue.of(3, WorkloadTestHelpers.VALUE_ONE));
     }
+
+    @Test
+    public void doesNotReturnExplicitlyEmptyValues() {
+        valueMap.with(map -> map.put(
+                TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
+                Optional.empty()));
+        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+                .table(WorkloadTestHelpers.TABLE_1)
+                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                .columnRangeSelection(ColumnRangeSelection.all())
+                .build()))
+                .isEmpty();
+    }
 }u}(j' (9a286d1f5fa43cc0c50f1f0308ffb2806b873276j' qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj ( modifiedj' Kj' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X;  @@ -95,14 +95,12 @@ public WitnessedTransactionBuilder delete(Integer row, Integer column) {
 
         public WitnessedTransactionBuilder rowColumnRangeRead(
                 Integer row, ColumnRangeSelection columnRangeSelection, List<ColumnValue> valuesRead) {
-            actions.add(WitnessedRowColumnRangeReadTransactionAction.builder()
-                    .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                            .table(table)
-                            .row(row)
-                            .columnRangeSelection(columnRangeSelection)
-                            .build())
-                    .columnsAndValues(valuesRead)
-                    .build());
+            RowColumnRangeReadTransactionAction transactionAction = RowColumnRangeReadTransactionAction.builder()
+                    .table(table)
+                    .row(row)
+                    .columnRangeSelection(columnRangeSelection)
+                    .build();
+            actions.add(transactionAction.witness(valuesRead));
             return this;
         }
 u}(j' (ce49e27d10355fb6f5b71d88a206899b12b7f25bj' xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javaj ( addedj' K}j' K j( K}j( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -0,0 +1,125 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Sets;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Collection;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class SingleBusyCellReadNoTouchWorkflowsTest {
+    private static final String TABLE_NAME = "busy.readnotouch.cell";
+    private static final int ITERATION_COUNT = 1_000;
+    private static final SingleBusyCellReadNoTouchWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow workflow = SingleBusyCellReadNoTouchWorkflows.create(
+            transactionStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)),
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)));
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void transactionsDoNotConflictExcessively() {
+        WorkflowHistory workflowHistory = workflow.run();
+        assertThat(workflowHistory.history()).hasSizeBetween(ITERATION_COUNT / 2, ITERATION_COUNT);
+    }
+
+    @Test
+    public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).allSatisfy(action -> assertThat(action)
+                .isInstanceOfSatisfying(WitnessedSingleCellTransactionAction.class, singleCellAction -> {
+                    assertThat(singleCellAction.table()).isEqualTo(TABLE_NAME);
+                    assertThat(singleCellAction.cell()).isEqualTo(SingleBusyCellReadNoTouchWorkflows.BUSY_CELL);
+                }));
+    }
+
+    @Test
+    public void targetCellIsReadModifiedAndDeleted() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+
+    @Test
+    public void readTransactionsDontDoWrites() {
+        WorkflowHistory workflowHistory = workflow.run();
+
+        Set<WitnessedTransaction> witnessedTransactionsWithReads = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream().anyMatch(WitnessedReadTransactionAction.class::isInstance))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> witnessedTransactionsWithWritesOrDeletes = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream()
+                        .anyMatch(action -> action instanceof WitnessedWriteTransactionAction
+                                || action instanceof WitnessedDeleteTransactionAction))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> transactionsWithReadsAndWritesOrDeletes =
+                Sets.intersection(witnessedTransactionsWithReads, witnessedTransactionsWithWritesOrDeletes);
+
+        assertThat(transactionsWithReadsAndWritesOrDeletes).isEmpty();
+    }
+}u}(j' (a982645e9685b7e2b328546bb927b2c415ad29bfj' latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj ( modifiedj' K|j' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X&  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.google.common.collect.ImmutableList;
@@ -41,8 +42,10 @@
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.stream.Collectors;
@@ -127,7 +130,7 @@ public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
         transactionStore.readWrite(txn -> txn.delete(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 1, 1)));
         invariant.accept(history, reference::set);
         assertThat(reference.get())
-                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                .containsExactly(CrossCellInconsistency.builder()
                         .putInconsistentValues(
                                 TableAndWorkloadCell.of(
                                         TABLE_NAME,
@@ -139,7 +142,7 @@ public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
                                         ImmutableWorkloadCell.of(
                                                 TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 1)),
                                 Optional.of(0))
-                        .build()));
+                        .build());
     }
 
     @Test
@@ -152,7 +155,7 @@ public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
                 TransientRowsWorkflows.VALUE));
         invariant.accept(history, reference::set);
         assertThat(reference.get())
-                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                .containsExactly(CrossCellInconsistency.builder()
                         .putInconsistentValues(
                                 TableAndWorkloadCell.of(
                                         TABLE_NAME,
@@ -164,7 +167,7 @@ public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
                                         ImmutableWorkloadCell.of(
                                                 TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 2)),
                                 Optional.empty())
-                        .build()));
+                        .build());
     }
 
     @Test
@@ -185,7 +188,123 @@ public void invariantReportsViolationsFromTransactionHistory() {
                 .build();
         invariant.accept(falseHistory, reference::set);
 
-        assertThat(reference.get()).hasSize(ITERATION_COUNT - 1);
+        assertThat(reference.get())
+                .hasSize(ITERATION_COUNT - 1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
+        WitnessedReadTransactionAction readWitness = WitnessedReadTransactionAction.of(
+                TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of the summary row")
+                .hasExactlyArgs(SafeArg.of("actions", ImmutableList.of(readWitness)));
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCorrespondingPrimaryRow() {
+        List<WitnessedTransactionAction> actions = ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of a corresponding normal row")
+                .hasExactlyArgs(SafeArg.of("actions", actions));
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothEmpty() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions = getReadWitnessesForSingleTransaction(
+                2, Optional.of(TransientRowsWorkflows.VALUE), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsPresentAndPrimaryIsAbsent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.of(TransientRowsWorkflows.VALUE), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsAbsentAndPrimaryIsPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    private ImmutableWorkflowHistory getWorkflowHistory(List<WitnessedTransactionAction> actions) {
+        return ImmutableWorkflowHistory.builder()
+                .transactionStore(transactionStore)
+                .history(ImmutableList.of(ImmutableFullyWitnessedTransaction.builder()
+                        .addAllActions(actions)
+                        .startTimestamp(0L)
+                        .commitTimestamp(1L)
+                        .build()))
+                .build();
+    }
+
+    private static List<WitnessedTransactionAction> getReadWitnessesForSingleTransaction(
+            int columnIndex, Optional<Integer> summaryValue, Optional<Integer> primaryValue) {
+        return ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, columnIndex),
+                        summaryValue),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(columnIndex, TransientRowsWorkflows.COLUMN),
+                        primaryValue));
+    }
+
+    private static void inconsistencyInvolvesPairOfPrimaryAndSummaryCells(CrossCellInconsistency inconsistency) {
+        Map<TableAndWorkloadCell, Optional<Integer>> readValues = inconsistency.inconsistentValues();
+        TableAndWorkloadCell summaryCell = readValues.keySet().stream()
+                .filter(tableAndWorkloadCell -> tableAndWorkloadCell.cell().key() == TransientRowsWorkflows.SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of the summary row", SafeArg.of("readValues", readValues)));
+        TableAndWorkloadCell primaryCell = getPrimaryCellForSummaryCell(summaryCell);
+
+        assertThat(readValues.keySet()).containsExactlyInAnyOrder(summaryCell, primaryCell);
+        assertThat(readValues.values())
+                .containsExactlyInAnyOrder(Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+    }
+
+    // This workflow uses a single table, where the summary row's columns correspond to rows with primary values.
+    private static TableAndWorkloadCell getPrimaryCellForSummaryCell(TableAndWorkloadCell summaryCell) {
+        return TableAndWorkloadCell.of(
+                summaryCell.tableName(),
+                ImmutableWorkloadCell.of(summaryCell.cell().column(), TransientRowsWorkflows.COLUMN));
     }
 
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(u}(j' (fe0267e6f697a967a6133f2554009d8a0be04d4cj' katlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtilsTest.javaj ( modifiedj' Kj' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -67,7 +67,7 @@ public void performTransfersReturnsBalancesWithCorrectSum() {
         when(random.nextInt(anyInt())).thenReturn(0, 1);
         Map<Integer, Integer> balances = Map.of(0, 1, 1, 1);
         Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
-        assertThat(newBalances).isEqualTo(Map.of(0, 0, 1, 2));
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(Map.of(0, 0, 1, 2));
         assertThat(newBalances.values().stream().mapToInt(Integer::intValue).sum())
                 .isEqualTo(2);
     }
@@ -77,6 +77,6 @@ public void performsTransfersOnlyIfValueWouldNotBeBelowZero() {
         when(random.nextInt(anyInt())).thenReturn(0, 1);
         Map<Integer, Integer> balances = Map.of(0, 0, 1, 2);
         Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
-        assertThat(newBalances).isEqualTo(balances);
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(balances);
     }
 }u}(j' (7ae440730798415742814c38fb59d0707273036ej' datlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingGraphTest.javaj ( modifiedj' Kj' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj( https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81e     j	( X=  @@ -101,6 +101,6 @@ public void generateNewRingReturnsValidRing() {
 
     @Test
     public void asMapConvertsCorrectly() {
-        assertThat(RingGraph.from(VALID_RING).asMap()).isEqualTo(VALID_RING);
+        assertThat(RingGraph.from(VALID_RING).asMap()).containsExactlyInAnyOrderEntriesOf(VALID_RING);
     }
 }u}(j' (022221727d6f2d598a0016a225e75264c9780625j' build.gradlej ( modifiedj' Kj' Kj( K
j( ^https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/build.gradlej( ]https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/build.gradlej( phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -7,20 +7,20 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.0'
-        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.2.0'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.4'
+        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.3.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.38.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.39.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
-        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
+        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
-        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'
+        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.3'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
         classpath 'gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1'
         classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'
@@ -113,8 +113,7 @@ allprojects {
                 'Slf4jLogsafeArgs',
                 'StaticAssignmentInConstructor',
                 'StrictUnusedVariable'
-        options.errorprone.error 'DefaultLocale',
-                'SafeLoggingPropagation'
+        options.errorprone.error 'SafeLoggingPropagation'
     }
 }
 u}(j' (351dc558cfb12f3027ca880f55c00742ee516cbdj'  changelog/0.870.0/pr-6613.v2.ymlj ( addedj' Kj' K j( Kj( vhttps://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.870.0%2Fpr-6613.v2.ymlj( uhttps://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.870.0%2Fpr-6613.v2.ymlj( https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.870.0%2Fpr-6613.v2.yml?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: There now exists an Antithesis workflow that exercises read-write transactions
+    that only do reads.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6613u}(j' (ffd47f177c27dd39d87fb4cd84339ad7d1911c1cj'  changelog/0.874.0/pr-6625.v2.ymlj ( addedj' Kj' K j( Kj( vhttps://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.874.0%2Fpr-6625.v2.ymlj( uhttps://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.874.0%2Fpr-6625.v2.ymlj( https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.874.0%2Fpr-6625.v2.yml?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LockV1] Add async thread info snapshotting (disabled by default)'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6625u}(j' (a6c9d3dd239346b5de33d708683efcea7ca6e0d1j'  changelog/0.875.0/pr-6623.v2.ymlj ( addedj' Kj' K j( Kj( vhttps://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.875.0%2Fpr-6623.v2.ymlj( uhttps://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.875.0%2Fpr-6623.v2.ymlj( https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.875.0%2Fpr-6623.v2.yml?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Log lock holder thread info on timeout, slow lock acquisition and contention
+  links:
+  - https://github.com/palantir/atlasdb/pull/6623u}(j' (34c425f71f242ce114bab888f8034960c6b716e7j'  changelog/0.877.0/pr-6602.v2.ymlj ( addedj' Kj' K j( Kj( vhttps://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.877.0%2Fpr-6602.v2.ymlj( uhttps://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.877.0%2Fpr-6602.v2.ymlj( https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.877.0%2Fpr-6602.v2.yml?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Add metrics for number of requested cell/row-level commit locks
+  links:
+  - https://github.com/palantir/atlasdb/pull/6602u}(j' (46b215e4664b4438f038bf048c14656f6fb089e1j'  changelog/0.878.0/pr-6630.v2.ymlj ( addedj' Kj' K j( Kj( vhttps://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.878.0%2Fpr-6630.v2.ymlj( uhttps://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.878.0%2Fpr-6630.v2.ymlj( https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.878.0%2Fpr-6630.v2.yml?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Remove recursive loop when filtering out cells that are not applicable
+    to our transaction.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6630u}(j' (9914bf81d7b0081790e5b357d977f35947ad8b60j'  changelog/0.879.0/pr-6626.v2.ymlj ( addedj' Kj' K j( Kj( vhttps://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.879.0%2Fpr-6626.v2.ymlj( uhttps://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.879.0%2Fpr-6626.v2.ymlj( https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.879.0%2Fpr-6626.v2.yml?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LockV1] Pass refreshable thread info configuration'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6626u}(j' (a17f90ec5d7c8dabd4b8d110ace6016af8cfad9cj'  changelog/0.880.0/pr-6641.v2.ymlj ( addedj' Kj' K j( Kj( vhttps://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.880.0%2Fpr-6641.v2.ymlj( uhttps://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.880.0%2Fpr-6641.v2.ymlj( https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.880.0%2Fpr-6641.v2.yml?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize CassandraService#refreshTokenRangesAndGetServers
+  links:
+  - https://github.com/palantir/atlasdb/pull/6641u}(j' (7afdb03a2af8b0138cc1524e0d39e84990810e28j'  changelog/0.881.0/pr-6624.v2.ymlj ( addedj' Kj' K j( Kj( vhttps://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.881.0%2Fpr-6624.v2.ymlj( uhttps://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.881.0%2Fpr-6624.v2.ymlj( https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.881.0%2Fpr-6624.v2.yml?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Stopped checking immutable timestamp lock on thoroughly swept tables
+    when reading an empty value.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6624u}(j' (3750fb7fc4996863b5345b1cb6cbf683dd8cfc1fj'  changelog/0.882.0/pr-6648.v2.ymlj ( addedj' Kj' K j( Kj( vhttps://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.882.0%2Fpr-6648.v2.ymlj( uhttps://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.882.0%2Fpr-6648.v2.ymlj( https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.882.0%2Fpr-6648.v2.yml?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize CassandraService#getAddressForHost
+  links:
+  - https://github.com/palantir/atlasdb/pull/6648u}(j' (aa4df8d917755227eec390dd5e0d424aebabf4c7j'  changelog/0.882.0/pr-6649.v2.ymlj ( addedj' Kj' K j( Kj( vhttps://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.882.0%2Fpr-6649.v2.ymlj( uhttps://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.882.0%2Fpr-6649.v2.ymlj( https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.882.0%2Fpr-6649.v2.yml?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: bump snappy-java to 1.1.10.1
+  links:
+  - https://github.com/palantir/atlasdb/pull/6649u}(j' (d7951f643174772a855f4d861eeddb8fc504150aj'  changelog/0.883.0/pr-6644.v2.ymlj ( addedj' Kj' K j( Kj( vhttps://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.883.0%2Fpr-6644.v2.ymlj( uhttps://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.883.0%2Fpr-6644.v2.ymlj( https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6644.v2.yml?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Create LockRequestMetadata and ChangeMetadata
+  links:
+  - https://github.com/palantir/atlasdb/pull/6644u}(j' (f502755b47a5379d145593d6f6a21b6d0ff20be9j'  changelog/0.883.0/pr-6646.v2.ymlj ( addedj' Kj' K j( Kj( vhttps://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.883.0%2Fpr-6646.v2.ymlj( uhttps://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.883.0%2Fpr-6646.v2.ymlj( https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6646.v2.yml?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add metadata to LockEvent'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6646u}(j' (59a104ba72569b4dfd00ae8626fea6e626f1cc19j'  changelog/0.883.0/pr-6647.v2.ymlj ( addedj' Kj' K j( Kj( vhttps://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.883.0%2Fpr-6647.v2.ymlj( uhttps://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/changelog%2F0.883.0%2Fpr-6647.v2.ymlj( https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6647.v2.yml?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add LockMetadata to IdentifiedLockRequest'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6647u}(j' (689da2f7264afbb03bb06b6a430723bd1dcbbf4bj' lock-api-objects/build.gradlej ( modifiedj' Kj' K j( Kj( qhttps://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api-objects%2Fbuild.gradlej( phttps://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api-objects%2Fbuild.gradlej( https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fbuild.gradle?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X_  @@ -16,6 +16,7 @@ dependencies {
     implementation 'com.google.errorprone:error_prone_annotations'
     implementation 'com.google.guava:guava'
     implementation project(':commons-annotations')
+    testImplementation project(path: ':lock-api')
 
     annotationProcessor 'org.immutables:value'
     compileOnly 'org.immutables:value::annotations'u}(j' (933965abbab2686a96a62a6ac504123076081ec8j' Ilock-api-objects/src/main/java/com/palantir/lock/LockClientAndThread.javaj ( addedj' K$j' K j( K$j( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.javaj( https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface LockClientAndThread {
+    LockClientAndThread UNKNOWN = LockClientAndThread.of(LockClient.ANONYMOUS, "unknown-thread");
+
+    LockClient client();
+
+    String thread();
+
+    static ImmutableLockClientAndThread.Builder builder() {
+        return ImmutableLockClientAndThread.builder();
+    }
+
+    static LockClientAndThread of(LockClient client, String requestingThread) {
+        return builder().client(client).thread(requestingThread).build();
+    }
+}u}(j' (4305d649486aabcf97ca07976c286654204cf825j' Jlock-api-objects/src/main/java/com/palantir/lock/watch/ChangeMetadata.javaj ( addedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javaj( https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -0,0 +1,137 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.palantir.lock.watch.ChangeMetadata.Created;
+import com.palantir.lock.watch.ChangeMetadata.Deleted;
+import com.palantir.lock.watch.ChangeMetadata.Unchanged;
+import com.palantir.lock.watch.ChangeMetadata.Updated;
+import org.immutables.value.Value;
+import org.immutables.value.Value.Immutable;
+
+/**
+ * The subtypes of this class can be used to document CRUD-like operations that were applied to a value.
+ * However, the READ case is not accounted for as no locks are taken out for reads.
+ * Every instance should be associated with a {@link com.palantir.lock.LockDescriptor}.
+ * It is up to the users of metadata to know the type of value it refers to
+ * and how to interpret the different subtypes.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
+@JsonSubTypes({
+    @JsonSubTypes.Type(value = Unchanged.class, name = Unchanged.TYPE),
+    @JsonSubTypes.Type(value = Updated.class, name = Updated.TYPE),
+    @JsonSubTypes.Type(value = Deleted.class, name = Deleted.TYPE),
+    @JsonSubTypes.Type(value = Created.class, name = Created.TYPE),
+})
+public interface ChangeMetadata {
+    <T> T accept(Visitor<T> visitor);
+
+    static Unchanged unchanged() {
+        return ImmutableUnchanged.builder().build();
+    }
+
+    static Updated updated(byte[] oldValue, byte[] newValue) {
+        return ImmutableUpdated.of(oldValue, newValue);
+    }
+
+    static Deleted deleted(byte[] oldValue) {
+        return ImmutableDeleted.of(oldValue);
+    }
+
+    static Created created(byte[] newValue) {
+        return ImmutableCreated.of(newValue);
+    }
+
+    interface Visitor<T> {
+        T visit(Unchanged unchanged);
+
+        T visit(Updated updated);
+
+        T visit(Deleted deleted);
+
+        T visit(Created created);
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableUnchanged.class)
+    @JsonDeserialize(as = ImmutableUnchanged.class)
+    @JsonTypeName(Unchanged.TYPE)
+    interface Unchanged extends ChangeMetadata {
+        String TYPE = "unchanged";
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableUpdated.class)
+    @JsonDeserialize(as = ImmutableUpdated.class)
+    @JsonTypeName(Updated.TYPE)
+    interface Updated extends ChangeMetadata {
+        String TYPE = "updated";
+
+        @Value.Parameter
+        byte[] oldValue();
+
+        @Value.Parameter
+        byte[] newValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableDeleted.class)
+    @JsonDeserialize(as = ImmutableDeleted.class)
+    @JsonTypeName(Deleted.TYPE)
+    interface Deleted extends ChangeMetadata {
+        String TYPE = "deleted";
+
+        @Value.Parameter
+        byte[] oldValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableCreated.class)
+    @JsonDeserialize(as = ImmutableCreated.class)
+    @JsonTypeName(Created.TYPE)
+    interface Created extends ChangeMetadata {
+        String TYPE = "created";
+
+        @Value.Parameter
+        byte[] newValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+}u}(j' (9ef6441b1ec7d185a6b25c242d1d64524dbaadc5j' Elock-api-objects/src/main/java/com/palantir/lock/watch/LockEvent.javaj ( modifiedj' Kj' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaj( https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( Xa  @@ -16,12 +16,14 @@
 
 package com.palantir.lock.watch;
 
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonTypeName;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.logsafe.Unsafe;
+import java.util.Optional;
 import java.util.Set;
 import org.immutables.value.Value;
 
@@ -37,6 +39,9 @@ public abstract class LockEvent implements LockWatchEvent {
 
     public abstract LockToken lockToken();
 
+    @JsonIgnore
+    public abstract Optional<LockRequestMetadata> metadata();
+
     @Override
     public int size() {
         return lockDescriptors().size();
@@ -48,8 +53,15 @@ public <T> T accept(Visitor<T> visitor) {
     }
 
     public static LockWatchEvent.Builder builder(Set<LockDescriptor> lockDescriptors, LockToken lockToken) {
-        ImmutableLockEvent.Builder builder =
-                ImmutableLockEvent.builder().lockDescriptors(lockDescriptors).lockToken(lockToken);
+        return builder(lockDescriptors, lockToken, Optional.empty());
+    }
+
+    public static LockWatchEvent.Builder builder(
+            Set<LockDescriptor> lockDescriptors, LockToken lockToken, Optional<LockRequestMetadata> metadata) {
+        ImmutableLockEvent.Builder builder = ImmutableLockEvent.builder()
+                .lockDescriptors(lockDescriptors)
+                .lockToken(lockToken)
+                .metadata(metadata);
         return seq -> builder.sequence(seq).build();
     }
 }u}(j' (baa29a11aad2762f424acb1d510175b8849ecba2j' Olock-api-objects/src/main/java/com/palantir/lock/watch/LockRequestMetadata.javaj ( addedj' K'j' K j( K'j( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj( https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X0  @@ -0,0 +1,39 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import com.palantir.lock.LockDescriptor;
+import com.palantir.logsafe.Unsafe;
+import java.util.Map;
+import org.immutables.value.Value;
+
+/**
+ * Metadata attached to a lock request and to any {@link LockEvent} created as a result of that request.
+ * Ideally, this class is not serialized as-is to JSON due to the repetition of {@link LockDescriptor} values
+ * in {@link LockRequestMetadata#lockDescriptorToChangeMetadata()} and the parent object.
+ */
+@Unsafe
+@Value.Immutable
+public interface LockRequestMetadata {
+    Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata();
+
+    static LockRequestMetadata of(Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata) {
+        return ImmutableLockRequestMetadata.builder()
+                .lockDescriptorToChangeMetadata(lockDescriptorToChangeMetadata)
+                .build();
+    }
+}u}(j' (8e3edb51b7ae6b3309b255039a0a6dd18134f32dj' Jlock-api/src/main/java/com/palantir/lock/DebugThreadInfoConfiguration.javaj ( addedj' K(j' K j( K(j( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj( https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -0,0 +1,40 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@JsonDeserialize(as = ImmutableDebugThreadInfoConfiguration.class)
+@JsonSerialize(as = ImmutableDebugThreadInfoConfiguration.class)
+@Value.Immutable
+public interface DebugThreadInfoConfiguration {
+
+    @JsonProperty("record-thread-info")
+    @Value.Default
+    default boolean recordThreadInfo() {
+        return false;
+    }
+
+    @JsonProperty("thread-info-snapshot-interval-millis")
+    @Value.Default
+    default long threadInfoSnapshotIntervalMillis() {
+        return 300000L;
+    }
+}u}(j' (24a4a395982dfe44421aaba5d136f4694950815fj' ?lock-api/src/main/java/com/palantir/lock/LockServerConfigs.javaj ( modifiedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.javaj( https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( XV  @@ -20,4 +20,7 @@ public final class LockServerConfigs {
     private LockServerConfigs() {}
 
     public static final LockServerOptions DEFAULT = LockServerOptions.builder().build();
+
+    public static final DebugThreadInfoConfiguration DEFAULT_THREAD_INFO_CONFIG =
+            ImmutableDebugThreadInfoConfiguration.builder().build();
 }u}(j' (da50ee7393b93c8d71153140ffe86ba6c40366fcj' ?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javaj ( modifiedj' Kj' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj( https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -16,6 +16,7 @@
 package com.palantir.lock;
 
 import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.google.common.base.MoreObjects;
@@ -126,6 +127,15 @@ public long slowLogTriggerMillis() {
         return 10000L;
     }
 
+    /**
+     * Runtime configuration relating to thread info recording (which lock is held by which client-thread).
+     */
+    @JsonIgnore
+    @Value.Default
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    }
+
     @Override
     public boolean equals(@Nullable Object obj) {
         if (this == obj) {
@@ -142,7 +152,8 @@ && getRandomBitCount() == other.getRandomBitCount()
                 && Objects.equals(getMaxAllowedClockDrift(), other.getMaxAllowedClockDrift())
                 && Objects.equals(getMaxAllowedBlockingDuration(), other.getMaxAllowedBlockingDuration())
                 && Objects.equals(getMaxNormalLockAge(), other.getMaxNormalLockAge())
-                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout());
+                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout())
+                && Objects.equals(threadInfoConfiguration(), other.threadInfoConfiguration());
     }
 
     @Override
@@ -155,7 +166,8 @@ public int hashCode() {
                 getMaxNormalLockAge(),
                 getRandomBitCount(),
                 getStuckTransactionTimeout(),
-                slowLogTriggerMillis());
+                slowLogTriggerMillis(),
+                threadInfoConfiguration());
     }
 
     @Override
@@ -169,6 +181,7 @@ public String toString() {
                 .add("randomBitCount", getRandomBitCount())
                 .add("stuckTransactionTimeout", getStuckTransactionTimeout())
                 .add("slowLogTriggerMillis", slowLogTriggerMillis())
+                .add("threadInfoConfiguration", threadInfoConfiguration())
                 .toString();
     }
 u}(j' (6ad04228eeb384671486cf32446155659b4c354ej' Jlock-api/src/main/java/com/palantir/lock/client/IdentifiedLockRequest.javaj ( modifiedj' Kj' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.javaj( https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -15,10 +15,12 @@
  */
 package com.palantir.lock.client;
 
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.Unsafe;
 import java.util.Optional;
 import java.util.Set;
@@ -43,15 +45,32 @@ public interface IdentifiedLockRequest {
     @Value.Parameter
     Optional<String> getClientDescription();
 
+    @Value.Parameter
+    @JsonIgnore
+    Optional<LockRequestMetadata> getMetadata();
+
     static IdentifiedLockRequest of(Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs) {
         return ImmutableIdentifiedLockRequest.of(
-                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.empty());
+                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.empty(), Optional.empty());
     }
 
     static IdentifiedLockRequest of(
             Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs, String clientDescription) {
         return ImmutableIdentifiedLockRequest.of(
-                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription));
+                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription), Optional.empty());
+    }
+
+    static IdentifiedLockRequest of(
+            Set<LockDescriptor> lockDescriptors,
+            long acquireTimeoutMs,
+            String clientDescription,
+            LockRequestMetadata metadata) {
+        return ImmutableIdentifiedLockRequest.of(
+                UUID.randomUUID(),
+                lockDescriptors,
+                acquireTimeoutMs,
+                Optional.of(clientDescription),
+                Optional.of(metadata));
     }
 
     static IdentifiedLockRequest from(LockRequest lockRequest) {u}(j' (9f55ad6d5a91523f5133238f9b39ba8002664e51j' Nlock-api/src/test/java/com/palantir/lock/client/IdentifiedLockRequestTest.javaj ( modifiedj' KIj' Kj( KTj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj( https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -19,24 +19,86 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
 import com.fasterxml.jackson.datatype.guava.GuavaModule;
 import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockRequestMetadata;
+import java.nio.charset.StandardCharsets;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.UUID;
 import org.junit.Test;
 
 public class IdentifiedLockRequestTest {
-    private static final String SERIALIZED_LOCK_REQUEST = "{"
-            + "\"requestId\":\"885afd9c-de62-44ff-a517-5db14b71bfaa\","
-            + "\"lockDescriptors\":[{\"bytes\":\"Zm9v\"}],"
-            + "\"acquireTimeoutMs\":123,"
-            + "\"clientDescription\":\"Thread: main\"}";
+    private static final String BASE = "src/test/resources/identified-lock-request-wire-format/";
+    private static final boolean REWRITE_JSON_BLOBS = false;
+    private static final IdentifiedLockRequest BASELINE_REQUEST = ImmutableIdentifiedLockRequest.builder()
+            .requestId(new UUID(1337, 42))
+            .lockDescriptors(ImmutableSet.of(StringLockDescriptor.of("lock1"), StringLockDescriptor.of("lock2")))
+            .acquireTimeoutMs(100)
+            .clientDescription("client: test, thread: test")
+            .build();
+    private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(ImmutableMap.of(
+            StringLockDescriptor.of("lock1"), ChangeMetadata.created("something".getBytes(StandardCharsets.UTF_8))));
+    private static final ObjectMapper MAPPER = new ObjectMapper()
+            .enable(SerializationFeature.INDENT_OUTPUT)
+            .registerModule(new Jdk8Module())
+            .registerModule(new GuavaModule());
 
-    private static final ObjectMapper mapper =
-            new ObjectMapper().registerModule(new Jdk8Module()).registerModule(new GuavaModule());
+    @Test
+    public void baselineRequestIsFullCompat() {
+        assertSerializedEquals(BASELINE_REQUEST, "baseline");
+        assertDeserializedEquals("baseline", BASELINE_REQUEST);
+    }
 
     @Test
-    public void ensureSerdeBackcompat() throws Exception {
-        IdentifiedLockRequest request = mapper.readValue(SERIALIZED_LOCK_REQUEST, IdentifiedLockRequest.class);
-        String deserialized = mapper.writeValueAsString(request);
-        assertThat(mapper.readTree(deserialized)).isEqualTo(mapper.readTree(SERIALIZED_LOCK_REQUEST));
+    public void baselineRequestWithMetadataIsBackCompat() {
+        assertSerializedEquals(
+                ImmutableIdentifiedLockRequest.copyOf(BASELINE_REQUEST).withMetadata(LOCK_REQUEST_METADATA),
+                "baseline");
+    }
+
+    private static void assertSerializedEquals(IdentifiedLockRequest request, String jsonFileName) {
+        try {
+            Path path = getJsonPath(jsonFileName);
+            if (REWRITE_JSON_BLOBS) {
+                MAPPER.writeValue(path.toFile(), request);
+            }
+            String serialized = serialize(request);
+            assertThat(MAPPER.readTree(serialized))
+                    .as("Serialization yields identical JSON representation")
+                    .isEqualTo(MAPPER.readTree(Files.readString(path)));
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static void assertDeserializedEquals(String jsonFileName, IdentifiedLockRequest request) {
+        assertThat(deserialize(jsonFileName)).isEqualTo(request);
+    }
+
+    private static String serialize(IdentifiedLockRequest request) {
+        try {
+            return MAPPER.writeValueAsString(request);
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static IdentifiedLockRequest deserialize(String jsonFileName) {
+        try {
+            return MAPPER.readValue(Files.readString(getJsonPath(jsonFileName)), IdentifiedLockRequest.class);
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static Path getJsonPath(String jsonFileName) {
+        return Paths.get(BASE + jsonFileName + ".json");
     }
 }u}(j' (88f329985fc4d91067bebcd353b56f20d58b75bej' Mlock-api/src/test/resources/identified-lock-request-wire-format/baseline.jsonj ( addedj' K
j' K j( K
j( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.jsonj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.jsonj( https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.json?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -0,0 +1,10 @@
+{
+  "requestId" : "00000000-0000-0539-0000-00000000002a",
+  "lockDescriptors" : [ {
+    "bytes" : "bG9jazE="
+  }, {
+    "bytes" : "bG9jazI="
+  } ],
+  "acquireTimeoutMs" : 100,
+  "clientDescription" : "client: test, thread: test"
+}
\ No newline at end of fileu}(j' (dfc342440e6b1fcac63ded5134e926da137e5418j' lock-impl/build.gradlej ( modifiedj' Kj' K j( Kj( jhttps://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-impl%2Fbuild.gradlej( ihttps://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-impl%2Fbuild.gradlej( |https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fbuild.gradle?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -10,6 +10,7 @@ dependencies {
   implementation 'com.google.guava:guava'
   implementation 'com.palantir.common:streams'
   implementation 'com.palantir.nylon:nylon-threads'
+  implementation 'com.palantir.refreshable:refreshable'
   implementation 'com.palantir.safe-logging:preconditions'
   implementation 'com.palantir.safe-logging:safe-logging'
   implementation 'joda-time:joda-time'
@@ -22,6 +23,7 @@ dependencies {
   implementation project(':lock-api-objects')
   implementation project(':timestamp-api')
 
+  testImplementation 'org.awaitility:awaitility'
   testImplementation 'com.fasterxml.jackson.core:jackson-databind'
   testImplementation 'com.google.guava:guava'
   testImplementation 'com.palantir.safe-logging:preconditions'u}(j' (ccf79fc6208425b23884007b50ffc458e3a26bd5j' Llock-impl/src/main/java/com/palantir/lock/impl/AdjustableBackgroundTask.javaj ( addedj' Kej' K j( Kej( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javaj( https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -0,0 +1,101 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.io.Closeable;
+import java.time.Duration;
+import java.util.concurrent.RejectedExecutionException;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
+import java.util.function.Supplier;
+
+public final class AdjustableBackgroundTask implements Closeable {
+
+    /**
+     * A minimum duration between invocations if the task is not actually enabled.
+     * This is to prevent having a blocking thread in the background that does nothing.
+     */
+    @VisibleForTesting
+    static final Duration MINIMUM_INTERVAL_IF_NOT_RUNNING = Duration.ofSeconds(1);
+
+    private static final SafeLogger log = SafeLoggerFactory.get(AdjustableBackgroundTask.class);
+
+    private final ScheduledExecutorService scheduledExecutor;
+    private final Supplier<Boolean> shouldRunSupplier;
+    private final Supplier<Duration> intervalSupplier;
+    private final Runnable task;
+
+    public static AdjustableBackgroundTask create(
+            Supplier<Boolean> shouldRunSupplier, Supplier<Duration> delaySupplier, Runnable task) {
+        return new AdjustableBackgroundTask(
+                shouldRunSupplier, delaySupplier, task, PTExecutors.newSingleThreadScheduledExecutor());
+    }
+
+    @VisibleForTesting
+    AdjustableBackgroundTask(
+            Supplier<Boolean> shouldRunSupplier,
+            Supplier<Duration> intervalSupplier,
+            Runnable task,
+            ScheduledExecutorService scheduledExecutor) {
+        this.shouldRunSupplier = shouldRunSupplier;
+        this.intervalSupplier = intervalSupplier;
+        this.task = task;
+        this.scheduledExecutor = scheduledExecutor;
+        run();
+    }
+
+    private void run() {
+        boolean shouldRun = shouldRunSupplier.get();
+        if (shouldRun) {
+            try {
+                task.run();
+            } catch (Exception e) {
+                if (Thread.interrupted()) {
+                    log.error("Task was interrupted. Stopping background execution.", e);
+                    Thread.currentThread().interrupt();
+                    return;
+                }
+                log.error("Exception occurred during task", e);
+            } catch (Error e) {
+                log.error("Error occurred during task. Stopping background execution.", e);
+                return;
+            }
+        }
+        try {
+            long intervalMillis = intervalSupplier.get().toMillis();
+            scheduledExecutor.schedule(
+                    this::run,
+                    shouldRun ? intervalMillis : Math.max(MINIMUM_INTERVAL_IF_NOT_RUNNING.toMillis(), intervalMillis),
+                    TimeUnit.MILLISECONDS);
+        } catch (RejectedExecutionException e) {
+            log.warn(
+                    "Scheduler rejected execution",
+                    SafeArg.of("schedulerIsShutdown", scheduledExecutor.isShutdown()),
+                    e);
+        }
+    }
+
+    @Override
+    public void close() {
+        scheduledExecutor.shutdown();
+    }
+}u}(j' (d46677bd60efd12dee64f1090e49358ef304d8d9j' Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj ( modifiedj' K.j' Kj( K>j( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj( https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X$  @@ -80,6 +80,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.nylon.threads.ThreadNames;
+import com.palantir.refreshable.Refreshable;
 import com.palantir.util.JMXUtils;
 import com.palantir.util.Ownable;
 import java.math.BigInteger;
@@ -92,6 +93,7 @@
 import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.BlockingQueue;
@@ -104,6 +106,7 @@
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicInteger;
 import java.util.function.Supplier;
+import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 import javax.annotation.concurrent.ThreadSafe;
@@ -183,6 +186,9 @@ public String toString() {
     private final SimpleTimeDuration stuckTransactionTimeout;
     private final AtomicBoolean isShutDown = new AtomicBoolean(false);
 
+    /** Configurable background task that periodically collects snapshots about the current lock state */
+    private final LockThreadInfoSnapshotManager threadInfoSnapshotManager;
+
     private final LockClientIndices clientIndices = new LockClientIndices();
 
     /** The backing client-aware read write lock for each lock descriptor. */
@@ -228,15 +234,21 @@ public static LockServiceImpl create() {
     public static LockServiceImpl create(LockServerOptions options) {
         com.palantir.logsafe.Preconditions.checkNotNull(options);
         ExecutorService newExecutor = PTExecutors.newCachedThreadPool(LockServiceImpl.class.getName());
-        return create(options, Ownable.owned(newExecutor));
+        return create(Refreshable.only(options), Ownable.owned(newExecutor));
     }
 
-    public static LockServiceImpl create(LockServerOptions options, ExecutorService injectedExecutor) {
+    public static LockServiceImpl create(Refreshable<LockServerOptions> options, ExecutorService injectedExecutor) {
         com.palantir.logsafe.Preconditions.checkNotNull(options);
+        com.palantir.logsafe.Preconditions.checkNotNull(options.current());
         return create(options, Ownable.notOwned(injectedExecutor));
     }
 
-    private static LockServiceImpl create(LockServerOptions options, Ownable<ExecutorService> executor) {
+    public static LockServiceImpl create(LockServerOptions options, ExecutorService injectedExecutor) {
+        com.palantir.logsafe.Preconditions.checkNotNull(options);
+        return create(Refreshable.only(options), Ownable.notOwned(injectedExecutor));
+    }
+
+    private static LockServiceImpl create(Refreshable<LockServerOptions> options, Ownable<ExecutorService> executor) {
         if (log.isTraceEnabled()) {
             log.trace("Creating LockService with options={}", SafeArg.of("options", options));
         }
@@ -247,15 +259,22 @@ private static LockServiceImpl create(LockServerOptions options, Ownable<Executo
         return lockService;
     }
 
-    private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable<ExecutorService> executor) {
+    /**
+     * Only {@link LockServerOptions#threadInfoConfiguration()} is actually reloadable
+     */
+    private LockServiceImpl(
+            Refreshable<LockServerOptions> options, Runnable callOnClose, Ownable<ExecutorService> executor) {
+        LockServerOptions currentOptions = options.current();
         this.lockReapRunner = new LockReapRunner(executor);
         this.callOnClose = callOnClose;
-        this.isStandaloneServer = options.isStandaloneServer();
-        this.maxAllowedLockTimeout = SimpleTimeDuration.of(options.getMaxAllowedLockTimeout());
-        this.maxAllowedClockDrift = SimpleTimeDuration.of(options.getMaxAllowedClockDrift());
-        this.maxNormalLockAge = SimpleTimeDuration.of(options.getMaxNormalLockAge());
-        this.stuckTransactionTimeout = SimpleTimeDuration.of(options.getStuckTransactionTimeout());
-        this.slowLogTriggerMillis = options.slowLogTriggerMillis();
+        this.isStandaloneServer = currentOptions.isStandaloneServer();
+        this.maxAllowedLockTimeout = SimpleTimeDuration.of(currentOptions.getMaxAllowedLockTimeout());
+        this.maxAllowedClockDrift = SimpleTimeDuration.of(currentOptions.getMaxAllowedClockDrift());
+        this.maxNormalLockAge = SimpleTimeDuration.of(currentOptions.getMaxNormalLockAge());
+        this.stuckTransactionTimeout = SimpleTimeDuration.of(currentOptions.getStuckTransactionTimeout());
+        this.slowLogTriggerMillis = currentOptions.slowLogTriggerMillis();
+        this.threadInfoSnapshotManager = new LockThreadInfoSnapshotManager(
+                options.map(LockServerOptions::threadInfoConfiguration), () -> heldLocksTokenMap);
     }
 
     private HeldLocksToken createHeldLocksToken(
@@ -465,7 +484,7 @@ private void logLockAcquisitionFailure(Map<LockDescriptor, LockClient> failedLoc
         final String logMessage = "Current holders of the first {} of {} total failed locks were: {}";
 
         List<String> lockDescriptions = new ArrayList<>();
-        Iterator<Map.Entry<LockDescriptor, LockClient>> entries =
+        Iterator<Entry<LockDescriptor, LockClient>> entries =
                 failedLocks.entrySet().iterator();
         for (int i = 0; i < MAX_FAILED_LOCKS_TO_LOG && entries.hasNext(); i++) {
             Map.Entry<LockDescriptor, LockClient> entry = entries.next();
@@ -477,7 +496,10 @@ private void logLockAcquisitionFailure(Map<LockDescriptor, LockClient> failedLoc
                 logMessage,
                 SafeArg.of("numLocksLogged", Math.min(MAX_FAILED_LOCKS_TO_LOG, failedLocks.size())),
                 SafeArg.of("numLocksFailed", failedLocks.size()),
-                UnsafeArg.of("lockDescriptions", lockDescriptions));
+                UnsafeArg.of("lockDescriptions", lockDescriptions),
+                threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(failedLocks.keySet().stream()
+                        .limit(MAX_FAILED_LOCKS_TO_LOG)
+                        .collect(Collectors.toSet())));
     }
 
     private boolean isBlocking(BlockingMode blockingMode) {
@@ -523,7 +545,7 @@ private void tryLocks(
                 LockClient currentHolder = tryLock(lock.get(client, entry.getValue()), blockingMode, deadline);
                 if (log.isDebugEnabled() || isSlowLogEnabled()) {
                     long responseTimeMillis = System.currentTimeMillis() - startTime;
-                    logSlowLockAcquisition(entry.getKey().toString(), currentHolder, responseTimeMillis);
+                    logSlowLockAcquisition(entry.getKey(), currentHolder, responseTimeMillis);
                 }
                 if (currentHolder == null) {
                     locks.put(lock, entry.getValue());
@@ -542,22 +564,25 @@ private void tryLocks(
     }
 
     @VisibleForTesting
-    void logSlowLockAcquisition(String lockId, LockClient currentHolder, long durationMillis) {
+    void logSlowLockAcquisition(LockDescriptor lockDescriptor, LockClient currentHolder, long durationMillis) {
         final String slowLockLogMessage = "Blocked for {} ms to acquire lock {} {}.";
+        final String lockId = lockDescriptor.getLockIdAsString();
 
         // Note: The construction of params is pushed into the branches, as it may be expensive.
         if (isSlowLogEnabled() && durationMillis >= slowLogTriggerMillis) {
             SlowLockLogger.logger.warn(
                     slowLockLogMessage,
                     SafeArg.of("durationMillis", durationMillis),
                     UnsafeArg.of("lockId", lockId),
-                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"));
+                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"),
+                    threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(Set.of(lockDescriptor)));
         } else if (log.isDebugEnabled() && durationMillis > DEBUG_SLOW_LOG_TRIGGER_MILLIS) {
             log.debug(
                     slowLockLogMessage,
                     SafeArg.of("durationMillis", durationMillis),
                     UnsafeArg.of("lockId", lockId),
-                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"));
+                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"),
+                    threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(Set.of(lockDescriptor)));
         }
     }
 
@@ -1217,6 +1242,7 @@ private String safeLockStats() {
     public void close() {
         if (isShutDown.compareAndSet(false, true)) {
             lockReapRunner.close();
+            threadInfoSnapshotManager.close();
             blockingThreads.forEach(Thread::interrupt);
             callOnClose.run();
         }
@@ -1227,6 +1253,10 @@ public long currentTimeMillis() {
         return System.currentTimeMillis();
     }
 
+    public LockThreadInfoSnapshotManager getSnapshotManager() {
+        return threadInfoSnapshotManager;
+    }
+
     private static String updateThreadName(LockRequest request) {
         String currentThreadName = Thread.currentThread().getName();
         tryRenameThread(u}(j' (8fe141cc254985903635606c7c4d0fb75eae629bj' Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javaj ( addedj' Krj' K j( Krj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj( https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -0,0 +1,114 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableMap;
+import com.palantir.lock.DebugThreadInfoConfiguration;
+import com.palantir.lock.HeldLocksToken;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.refreshable.Refreshable;
+import java.time.Duration;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.ConcurrentMap;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+
+public class LockThreadInfoSnapshotManager implements AutoCloseable {
+    private static final SafeLogger log = SafeLoggerFactory.get(LockThreadInfoSnapshotManager.class);
+    private final Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration;
+
+    private final Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
+
+    private volatile Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot = ImmutableMap.of();
+
+    private final AdjustableBackgroundTask backgroundTask;
+
+    public LockThreadInfoSnapshotManager(
+            Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration,
+            Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> mapSupplier) {
+        this.threadInfoConfiguration = threadInfoConfiguration;
+        this.tokenMapSupplier = mapSupplier;
+        this.backgroundTask = AdjustableBackgroundTask.create(
+                threadInfoConfiguration.map(DebugThreadInfoConfiguration::recordThreadInfo),
+                threadInfoConfiguration.map(config -> Duration.ofMillis(config.threadInfoSnapshotIntervalMillis())),
+                this::takeSnapshot);
+    }
+
+    @VisibleForTesting
+    Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot() {
+        return lastKnownThreadInfoSnapshot;
+    }
+
+    /**
+     * Returns a consistent snapshot of thread information restricted to the given lock descriptors wrapped in an
+     * unsafe logging argument.
+     */
+    public UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> getRestrictedSnapshotAsOptionalLogArg(
+            Set<LockDescriptor> lockDescriptors) {
+        String argName = "presumedClientThreadHoldersIfEnabled";
+        if (!threadInfoConfiguration.current().recordThreadInfo()) {
+            // Avoids keeping the value alive even though we are never returning it
+            lastKnownThreadInfoSnapshot = Map.of();
+            return UnsafeArg.of(argName, Optional.empty());
+        }
+        Map<LockDescriptor, LockClientAndThread> latestSnapshot = lastKnownThreadInfoSnapshot;
+        Map<LockDescriptor, LockClientAndThread> restrictedSnapshot = new HashMap<>();
+        for (LockDescriptor lock : lockDescriptors) {
+            restrictedSnapshot.put(lock, latestSnapshot.get(lock));
+        }
+        return UnsafeArg.of(argName, Optional.of(restrictedSnapshot));
+    }
+
+    @VisibleForTesting
+    void takeSnapshot() {
+        lastKnownThreadInfoSnapshot = tokenMapSupplier.get().keySet().stream()
+                .flatMap(token -> {
+                    LockClientAndThread clientThread = LockClientAndThread.of(
+                            Objects.requireNonNullElse(token.getClient(), LockClientAndThread.UNKNOWN.client()),
+                            Objects.requireNonNullElse(
+                                    token.getRequestingThread(), LockClientAndThread.UNKNOWN.thread()));
+                    return token.getLockDescriptors().stream()
+                            .map(lockDescriptor -> Map.entry(lockDescriptor, clientThread));
+                })
+                // Although a lock can be held by multiple clients/threads, we only remember one to save space
+                .collect(Collectors.toMap(Entry::getKey, Entry::getValue, (existing, replacement) -> existing));
+
+        log.info(
+                "Took thread info snapshot of {} locks. Next snapshot due in {}ms",
+                SafeArg.of("snapshotSize", lastKnownThreadInfoSnapshot.size()),
+                SafeArg.of(
+                        "snapshotIntervalMillis",
+                        threadInfoConfiguration.current().threadInfoSnapshotIntervalMillis()));
+    }
+
+    @Override
+    public void close() {
+        backgroundTask.close();
+    }
+}u}(j' (97ae55956450814bf5146499495e54f469faa960j' Plock-impl/src/test/java/com/palantir/lock/impl/AdjustableBackgroundTaskTest.javaj ( addedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaj( https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -0,0 +1,142 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.refreshable.Refreshable;
+import com.palantir.refreshable.SettableRefreshable;
+import java.time.Duration;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.concurrent.atomic.AtomicLong;
+import org.jmock.lib.concurrent.DeterministicScheduler;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class AdjustableBackgroundTaskTest {
+    private static final Duration DEFAULT_INTERVAL = Duration.ofSeconds(10);
+    private final AtomicLong field = new AtomicLong(0);
+    private final AtomicBoolean shouldRun = new AtomicBoolean(false);
+    private final SettableRefreshable<Duration> interval = Refreshable.create(DEFAULT_INTERVAL);
+    private final DeterministicScheduler scheduledExecutor = new DeterministicScheduler();
+    private final AtomicLong numCallsToShouldRunSupplier = new AtomicLong(0);
+    private final AtomicLong numCallsToIntervalSupplier = new AtomicLong(0);
+    private final AdjustableBackgroundTask adjustableBackgroundTask = new AdjustableBackgroundTask(
+            () -> {
+                numCallsToShouldRunSupplier.incrementAndGet();
+                return shouldRun.get();
+            },
+            () -> {
+                numCallsToIntervalSupplier.incrementAndGet();
+                return interval.current();
+            },
+            field::incrementAndGet,
+            scheduledExecutor);
+
+    @BeforeClass
+    public static void testDelayShouldNotExceedMinimumDelay() {
+        // We have to ensure that our default interval is higher than MINIMUM_INTERVAL_IF_NOT_RUNNING
+        // so our tests are actually meaningful
+        assertThat(DEFAULT_INTERVAL).isGreaterThanOrEqualTo(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING);
+    }
+
+    @Test
+    public void doesNotRunTaskDuringConstruction() {
+        assertThat(field.get()).isEqualTo(0);
+    }
+
+    @Test
+    public void doesNotRunTaskByDefault() {
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(0);
+    }
+
+    @Test
+    public void canBeEnabledDisabledAndReEnabled() {
+        shouldRun.set(true);
+        tick(DEFAULT_INTERVAL);
+        long after = field.get();
+        assertThat(after).isEqualTo(1);
+
+        shouldRun.set(false);
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(after);
+
+        shouldRun.set(true);
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(after + 1);
+    }
+
+    @Test
+    public void canAdjustInterval() {
+        Duration newInterval = Duration.ofMinutes(1);
+        interval.update(newInterval);
+        shouldRun.set(true);
+        // initial run was scheduled at default interval
+        tick(DEFAULT_INTERVAL);
+        tick(Duration.ofMinutes(42 - 1));
+        assertThat(field.get()).isEqualTo(42);
+    }
+
+    @Test
+    public void canAdjustIntervalBelowMinimumDelayIfRunning() {
+        Duration newInterval = Duration.ofMillis(1);
+        interval.update(newInterval);
+        shouldRun.set(true);
+        // initial run was scheduled at default interval
+        tick(DEFAULT_INTERVAL);
+        tick(Duration.ofMillis(10 - 1));
+        assertThat(field.get()).isEqualTo(10);
+    }
+
+    @Test
+    public void runsSuppliersAtReducedIntervalIfNotRunning() {
+        Duration newInterval = Duration.ofMillis(1);
+        interval.update(newInterval);
+        Duration elapsedDuration = Duration.ofSeconds(10);
+        // initial run was scheduled at default interval, this will run suppliers once
+        tick(DEFAULT_INTERVAL);
+        tick(elapsedDuration);
+        assertThat(field.get()).isEqualTo(0);
+        // suppliers are also called once when running the constructor
+        assertThat(numCallsToShouldRunSupplier.get())
+                .as("Ensure the number of times we checked if we should run is at most the number of times"
+                        + " MINIMUM_INTERVAL_IF_NOT_RUNNING has elapsed")
+                .isLessThanOrEqualTo(
+                        elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
+        assertThat(numCallsToIntervalSupplier.get())
+                .as("Ensure the number of times we checked at what interval we should run is at most the number of"
+                        + " times MINIMUM_INTERVAL_IF_NOT_RUNNING has elapsed")
+                .isLessThanOrEqualTo(
+                        elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
+    }
+
+    @Test
+    public void suppliersAreCalledTogetherWithTask() {
+        shouldRun.set(true);
+        tick(Duration.ofSeconds(10 * DEFAULT_INTERVAL.toSeconds()));
+        assertThat(field.get()).isEqualTo(10);
+        // suppliers are also called once when running the constructor
+        assertThat(numCallsToShouldRunSupplier.get()).isEqualTo(11);
+        assertThat(numCallsToIntervalSupplier.get()).isEqualTo(11);
+    }
+
+    private void tick(Duration duration) {
+        scheduledExecutor.tick(duration.toMillis(), TimeUnit.MILLISECONDS);
+    }
+}uW      }(j' (aa47bbbffda9b68b9a93e2e31755530993156e4fj' Glock-impl/src/test/java/com/palantir/lock/impl/LockServiceImplTest.javaj ( modifiedj' Kj' Kj( K%j( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj( https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X!  @@ -22,16 +22,21 @@
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.lock.LockClient;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRefreshToken;
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.StringLockDescriptor;
 import com.palantir.lock.client.LockRefreshingLockService;
+import com.palantir.logsafe.UnsafeArg;
 import java.io.IOException;
 import java.util.HashSet;
 import java.util.List;
+import java.util.Map;
+import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.TimeUnit;
@@ -49,6 +54,9 @@
 public final class LockServiceImplTest {
     public static final long SLOW_LOG_TRIGGER_MILLIS = LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS + 10;
     private static final String TEST_LOCKID = "test_lockId";
+    private static final LockDescriptor TEST_LOCK = StringLockDescriptor.of(TEST_LOCKID);
+    private static final UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> THREAD_INFO_SNAPSHOT_ARG =
+            UnsafeArg.of("presumedClientThreadHoldersIfEnabled", Optional.empty());
     private static LockServiceImpl lockServiceWithSlowLogEnabled;
     private static LockServiceImpl lockServiceWithSlowLogDisabled;
 
@@ -94,48 +102,63 @@ public void slowLogShouldNotBeEnabledIfSlowLogTriggerMillisIsSetToZero() {
     @Test
     public void slowLogShouldBeLoggedWhenLockResponseIsSlowButShouldNotBeLoggedAtDebug() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS + 5;
-        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertThat(testLockServiceImplLogger.getLoggingEvents()).isEmpty();
 
         assertThat(testSlowLogger.getLoggingEvents()).hasSize(1);
         assertContainsMatchingLoggingEvent(
                 testSlowLogger.getLoggingEvents(),
-                warn("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                warn(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
     }
 
     @Test
     public void debugLogShouldBeLoggedWhenLockResponseIsSlowButSlowLogIsDisabled() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS + 5;
-        lockServiceWithSlowLogDisabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogDisabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertThat(testLockServiceImplLogger.getLoggingEvents()).hasSize(1);
         assertContainsMatchingLoggingEvent(
                 testLockServiceImplLogger.getLoggingEvents(),
-                debug("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                debug(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }
 
     @Test
     public void debugLogShouldBeLoggedIfLockResponseTimeIsBetweenDebugTriggerTimeAndSlowLogTriggerMillis() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS - 5;
-        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertContainsMatchingLoggingEvent(
                 testLockServiceImplLogger.getLoggingEvents(),
-                debug("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                debug(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }
 
     @Test
     public void debugOrSlowLogShouldNotBeLoggedWhenLockResponseIsNotSlow() {
         lockServiceWithSlowLogEnabled.logSlowLockAcquisition(
-                TEST_LOCKID, LockClient.ANONYMOUS, LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS - 5);
+                TEST_LOCK, LockClient.ANONYMOUS, LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS - 5);
         assertThat(testLockServiceImplLogger.getLoggingEvents()).isEmpty();
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }u}(j' (0ff14400f99f0f97c0494b5db923ebce2e42263dj' Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javaj ( addedj' MHj' K j( MHj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj( https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( XP:  @@ -0,0 +1,328 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableSortedMap;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.common.streams.KeyedStream;
+import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
+import com.palantir.lock.LockClient;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.LockMode;
+import com.palantir.lock.LockRequest;
+import com.palantir.lock.LockResponse;
+import com.palantir.lock.LockServerOptions;
+import com.palantir.lock.SimpleTimeDuration;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.logsafe.UnsafeArg;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Future;
+import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.After;
+import org.junit.Test;
+
+public class ThreadInfoLockServiceImplTest {
+    private static final LockDescriptor TEST_LOCK_1 = StringLockDescriptor.of("lock-1");
+    private static final LockDescriptor TEST_LOCK_2 = StringLockDescriptor.of("lock-2");
+    private static final LockDescriptor TEST_LOCK_3 = StringLockDescriptor.of("lock-3");
+
+    private static final String TEST_THREAD_1 = "thread-1";
+    private static final String TEST_THREAD_2 = "thread-2";
+    private static final String TEST_THREAD_3 = "thread-3";
+
+    private static final LockRequest LOCK_1_THREAD_1_WRITE_REQUEST = LockRequest.builder(
+                    ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+            .withCreatingThreadName(TEST_THREAD_1)
+            .build();
+
+    private static final LockClientAndThread ANONYMOUS_TEST_THREAD_1 =
+            LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1);
+
+    private final ExecutorService executor =
+            PTExecutors.newCachedThreadPool(ThreadInfoLockServiceImplTest.class.getName());
+
+    // Disable background snapshotting, invoke explicitly instead
+    private final LockServiceImpl lockService = LockServiceImpl.create(LockServerOptions.builder()
+            .isStandaloneServer(false)
+            .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                    .recordThreadInfo(false)
+                    .build())
+            .build());
+
+    @Test
+    public void initialThreadInfoIsEmpty() {
+        forceSnapshot();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+    }
+
+    @Test
+    public void recordsThreadInfoForLock() throws InterruptedException {
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+    }
+
+    @Test
+    public void recordsThreadInfoForUnlock() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+
+        lockService.unlock(response.getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+    }
+
+    @Test
+    public void recordsThreadInfoForMultipleLocks() throws InterruptedException {
+        int numThreads = 10;
+        int numLocksPerThread = 10;
+
+        List<String> threadNames =
+                IntStream.range(0, numThreads).mapToObj(i -> "test-thread-" + i).collect(Collectors.toList());
+
+        Map<String, Set<LockDescriptor>> locksPerThread = KeyedStream.of(threadNames)
+                .map(threadName -> IntStream.range(0, numLocksPerThread)
+                        .mapToObj(i -> StringLockDescriptor.of("test-lock-" + i + "-from-thread-" + threadName))
+                        .collect(Collectors.toSet()))
+                .collectToMap();
+
+        for (Map.Entry<String, Set<LockDescriptor>> entry : locksPerThread.entrySet()) {
+            LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.copyOf(
+                            entry.getValue().stream().collect(Collectors.toMap(lock -> lock, lock -> LockMode.WRITE))))
+                    .withCreatingThreadName(entry.getKey())
+                    .build();
+            lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest);
+        }
+
+        forceSnapshot();
+
+        locksPerThread.forEach((threadName, lockDescriptors) ->
+                lockDescriptors.forEach(lock -> assertThat(getLatestThreadInfoForLock(lock))
+                        .contains(LockClientAndThread.of(LockClient.ANONYMOUS, threadName))));
+    }
+
+    @Test
+    public void recordsThreadInfoForSharedLock() throws InterruptedException {
+        LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+        LockRequest lockRequest2 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .doNotBlock()
+                .lockAsManyAsPossible()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        LockResponse lockResponse = lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest1);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1).get())
+                .isIn(ANONYMOUS_TEST_THREAD_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+
+        lockService.unlock(lockResponse.getToken());
+
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+    }
+
+    @Test
+    public void doesNotRecordDroppedLocksWithLockAllOrNone() throws InterruptedException {
+        // T2 cannot get lock 1 -> grouping behavior LOCK_ALL_OR_NONE will release lock 2, even though it could have
+        // been locked
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
+                .doNotBlock()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+    }
+
+    @Test
+    public void recordsUnlockAndFreezeForNonAnonymousClient() throws InterruptedException {
+        LockClient client = LockClient.of("non-anonymous-client");
+
+        LockResponse response = lockService.lockWithFullLockResponse(client, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(LockClientAndThread.of(client, TEST_THREAD_1));
+
+        lockService.unlockAndFreeze(response.getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+    }
+
+    @Test
+    public void recordsCorrectStateAfterMultipleOperations() throws Exception {
+        CountDownLatch latch = new CountDownLatch(1);
+
+        // T1 locks 1 exclusively and locks 2 in shared mode
+        LockResponse response1 = lockService.lockWithFullLockResponse(
+                LockClient.ANONYMOUS,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_1)
+                        .build());
+
+        // T2 shouldn't get 1, but locks 3 in exclusive mode,
+        LockResponse response2 = lockService.lockWithFullLockResponse(
+                LockClient.ANONYMOUS,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_3, LockMode.WRITE))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_2)
+                        .build());
+
+        Future<LockResponse> response3 = executor.submit(() -> {
+
+            // T3 will wait at most 5 seconds to lock 1 in exclusive mode and lock 2 in shared mode
+            LockResponse response = lockService.lockWithFullLockResponse(
+                    LockClient.ANONYMOUS,
+                    LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                            .blockForAtMost(SimpleTimeDuration.of(5, TimeUnit.SECONDS))
+                            .lockAsManyAsPossible()
+                            .withCreatingThreadName(TEST_THREAD_3)
+                            .build());
+            latch.countDown();
+            return response;
+        });
+        lockService.unlock(response1.getToken());
+        latch.await();
+
+        forceSnapshot();
+
+        // T1 should hold nothing, T2 holds 3 in exclusive mode, T3 holds 1 in exclusive and 2 in shared mode
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+
+        lockService.unlock(response2.getToken());
+        forceSnapshot();
+
+        // Only T3 should hold locks
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+
+        lockService.unlock(response3.get().getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+    }
+
+    @Test
+    public void refreshDoesNotChangeSnapshot() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+
+        lockService.refreshTokens(List.of(response.getToken()));
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+    }
+
+    @Test
+    public void logArgIsUnsafeAndContainsEmptyOptionalIfNotRecordingThreadInfo() throws InterruptedException {
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+        assertThat(lockService.getSnapshotManager().getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
+                .isEqualTo(UnsafeArg.of("presumedClientThreadHoldersIfEnabled", Optional.empty()));
+    }
+
+    @Test
+    public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() throws InterruptedException {
+        LockServiceImpl lockServiceWithRecordingEnabled = LockServiceImpl.create(LockServerOptions.builder()
+                .isStandaloneServer(false)
+                .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                        .recordThreadInfo(true)
+                        .build())
+                .build());
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
+                .doNotBlock()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockServiceWithRecordingEnabled.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockServiceWithRecordingEnabled.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+
+        lockServiceWithRecordingEnabled.getSnapshotManager().takeSnapshot();
+
+        assertThat(lockServiceWithRecordingEnabled
+                        .getSnapshotManager()
+                        .getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
+                .isEqualTo(UnsafeArg.of(
+                        "presumedClientThreadHoldersIfEnabled",
+                        // Snapshot should be restricted to TEST_LOCK_1
+                        Optional.of(Map.of(TEST_LOCK_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1)))));
+
+        lockServiceWithRecordingEnabled.close();
+    }
+
+    @After
+    public void tearDown() {
+        lockService.close();
+    }
+
+    private void forceSnapshot() {
+        lockService.getSnapshotManager().takeSnapshot();
+    }
+
+    private Optional<LockClientAndThread> getLatestThreadInfoForLock(LockDescriptor lock) {
+        return Optional.ofNullable(lockService
+                .getSnapshotManager()
+                .getLastKnownThreadInfoSnapshot()
+                .get(lock));
+    }
+}u}(j' (8c5d010b813c3904a027f75049590aef2a7eb16aj' %scripts/circle-ci/run-circle-tests.shj ( modifiedj' Kj' Kj( Kj( {https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/scripts%2Fcircle-ci%2Frun-circle-tests.shj( zhttps://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/scripts%2Fcircle-ci%2Frun-circle-tests.shj( https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -2,7 +2,7 @@
 
 set -x
 
-BASE_GRADLE_ARGS="--profile"
+BASE_GRADLE_ARGS="--scan --profile --continue"
 
 function checkDocsBuild {
      pyenv install 3.5.4
@@ -77,12 +77,14 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 # External builds have a 16gb limit.
 if [ "$test_suite_index" -eq "14" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
+elif [ "$test_suite_index" -eq "4" ]; then
+    export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 elif [ "$test_suite_index" -eq "3" ]; then
     export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
     BASE_GRADLE_ARGS+=" --scan --parallel"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
-    BASE_GRADLE_ARGS+=" --scan --parallel"
+    BASE_GRADLE_ARGS+=" --parallel"
 fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64mu}(j' (2d3777830cee23df595f18bcd0f7378a07e49ebej' etimelock-agent/src/main/java/com/palantir/timelock/config/RestrictedTimeLockRuntimeConfiguration.javaj ( modifiedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.javaj( https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( Xb  @@ -16,6 +16,7 @@
 
 package com.palantir.timelock.config;
 
+import com.palantir.lock.DebugThreadInfoConfiguration;
 import java.util.Optional;
 
 public class RestrictedTimeLockRuntimeConfiguration extends TimeLockRuntimeConfiguration {
@@ -54,4 +55,9 @@ public TimeLockAdjudicationConfiguration adjudication() {
     public Optional<TsBoundPersisterRuntimeConfiguration> timestampBoundPersistence() {
         return runtime.timestampBoundPersistence();
     }
+
+    @Override
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return runtime.threadInfoConfiguration();
+    }
 }u}(j' (d8d2a7c36eb3321b137f488acb279decabb46ac6j' [timelock-agent/src/main/java/com/palantir/timelock/config/TimeLockRuntimeConfiguration.javaj ( modifiedj' Kj' K j( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.javaj( https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -20,6 +20,8 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.google.common.base.Preconditions;
+import com.palantir.lock.DebugThreadInfoConfiguration;
+import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
 import com.palantir.logsafe.DoNotLog;
 import java.util.Optional;
 import org.immutables.value.Value;
@@ -78,6 +80,12 @@ public TimeLockAdjudicationConfiguration adjudication() {
     @JsonProperty("timestamp-bound-persistence")
     public abstract Optional<TsBoundPersisterRuntimeConfiguration> timestampBoundPersistence();
 
+    @JsonProperty("debug-thread-info-config")
+    @Value.Default
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    }
+
     @Value.Check
     public void check() {
         Preconditions.checkState(u}(j' (a168b555f03c27ec1cf6a6780262110e71867bedj' Itimelock-agent/src/main/java/com/palantir/timelock/paxos/LockCreator.javaj ( modifiedj' K	j' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj( https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -21,30 +21,32 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.impl.LockServiceImpl;
 import com.palantir.lock.impl.ThreadPooledLockService;
+import com.palantir.refreshable.Refreshable;
 import com.palantir.timelock.config.TimeLockRuntimeConfiguration;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Semaphore;
-import java.util.function.Supplier;
 
 public class LockCreator {
-    private final Supplier<TimeLockRuntimeConfiguration> runtime;
+    private final Refreshable<TimeLockRuntimeConfiguration> runtime;
     private final long blockingTimeoutMs;
     private final Semaphore sharedThreadPool;
     private final ExecutorService sharedExecutor = PTExecutors.newCachedThreadPool(LockServiceImpl.class.getName());
 
-    public LockCreator(Supplier<TimeLockRuntimeConfiguration> runtime, int threadPoolSize, long blockingTimeoutMs) {
+    public LockCreator(Refreshable<TimeLockRuntimeConfiguration> runtime, int threadPoolSize, long blockingTimeoutMs) {
         this.runtime = runtime;
         this.sharedThreadPool = new Semaphore(threadPoolSize);
         this.blockingTimeoutMs = blockingTimeoutMs;
     }
 
     public CloseableLockService createThreadPoolingLockService() {
-        LockServerOptions lockServerOptions = LockServerOptions.builder()
-                .slowLogTriggerMillis(runtime.get().slowLockLogTriggerMillis())
-                .build();
+        Refreshable<LockServerOptions> lockServerOptions = runtime.map(rt -> LockServerOptions.builder()
+                .slowLogTriggerMillis(rt.slowLockLogTriggerMillis())
+                .threadInfoConfiguration(rt.threadInfoConfiguration())
+                .build());
 
         LockServiceImpl rawLockService = LockServiceImpl.create(lockServerOptions, sharedExecutor);
-        CloseableLockService lockService = BlockingTimeLimitedLockService.create(rawLockService, blockingTimeoutMs);
+        CloseableLockService lockService = BlockingTimeLimitedLockService.create(
+                rawLockService, blockingTimeoutMs, rawLockService.getSnapshotManager());
 
         return new ThreadPooledLockService(lockService, -1, sharedThreadPool);
     }u}(j' (cba6348015c254aa9ba5c6b6a2f959d6673f27dcj' btimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockService.javaj ( modifiedj' Kj' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj( https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X/
  @@ -32,6 +32,7 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.LockState;
 import com.palantir.lock.SimpleHeldLocksToken;
+import com.palantir.lock.impl.LockThreadInfoSnapshotManager;
 import com.palantir.lock.remoting.BlockingTimeoutException;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
@@ -44,31 +45,45 @@
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.TimeoutException;
+import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import javax.ws.rs.PathParam;
 import org.immutables.value.Value;
 
 public class BlockingTimeLimitedLockService implements CloseableLockService {
     private static final SafeLogger log = SafeLoggerFactory.get(BlockingTimeLimitedLockService.class);
 
+    private static final int MAX_THREADINFO_TO_LOG = 20;
+
     private final CloseableLockService delegate;
     private final TimeLimiter timeLimiter;
     private final long blockingTimeLimitMillis;
 
+    private final LockThreadInfoSnapshotManager threadInfoSnapshotManager;
+
     @VisibleForTesting
     BlockingTimeLimitedLockService(
-            CloseableLockService delegate, TimeLimiter timeLimiter, long blockingTimeLimitMillis) {
+            CloseableLockService delegate,
+            TimeLimiter timeLimiter,
+            long blockingTimeLimitMillis,
+            LockThreadInfoSnapshotManager threadInfoSnapshotManager) {
         this.delegate = delegate;
         this.timeLimiter = timeLimiter;
         this.blockingTimeLimitMillis = blockingTimeLimitMillis;
+        this.threadInfoSnapshotManager = threadInfoSnapshotManager;
     }
 
     public static BlockingTimeLimitedLockService create(
-            CloseableLockService lockService, long blockingTimeLimitMillis) {
+            CloseableLockService lockService,
+            long blockingTimeLimitMillis,
+            LockThreadInfoSnapshotManager threadInfoSnapshotManager) {
         // TODO (jkong): Inject the executor to allow application lifecycle managed executors.
         // Currently maintaining existing behaviour.
         return new BlockingTimeLimitedLockService(
-                lockService, SimpleTimeLimiter.create(PTExecutors.newCachedThreadPool()), blockingTimeLimitMillis);
+                lockService,
+                SimpleTimeLimiter.create(PTExecutors.newCachedThreadPool()),
+                blockingTimeLimitMillis,
+                threadInfoSnapshotManager);
     }
 
     @Nullable
@@ -234,7 +249,11 @@ private BlockingTimeoutException logAndHandleTimeout(LockRequestSpecification sp
                 SafeArg.of("timeoutDurationMillis", blockingTimeLimitMillis),
                 SafeArg.of("method", specification.method()),
                 SafeArg.of("client", specification.client()),
-                UnsafeArg.of("lockRequest", specification.lockRequest()));
+                UnsafeArg.of("lockRequest", specification.lockRequest()),
+                threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(
+                        specification.lockRequest().getLockDescriptors().stream()
+                                .limit(MAX_THREADINFO_TO_LOG)
+                                .collect(Collectors.toSet())));
 
         String errorMessage = String.format(
                 logMessage.replace("{}", "%s"),u}(j' (ba84282c91e1c85c2d25288ffc78e1895ce61edej' ftimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockServiceTest.javaj ( modifiedj' Kj' Kj( Kj( https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.javaj( https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.javaj( https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.java?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X:  @@ -33,6 +33,7 @@
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.impl.LockThreadInfoSnapshotManager;
 import com.palantir.lock.remoting.BlockingTimeoutException;
 import java.io.IOException;
 import java.util.concurrent.ExecutionException;
@@ -57,6 +58,8 @@ public class BlockingTimeLimitedLockServiceTest {
 
     private final CloseableLockService delegate = mock(CloseableLockService.class);
 
+    private final LockThreadInfoSnapshotManager snapshotManager = mock(LockThreadInfoSnapshotManager.class);
+
     private final BlockingTimeLimitedLockService acceptingService = createService(acceptingLimiter);
     private final BlockingTimeLimitedLockService timingOutService = createService(timingOutLimiter);
     private final BlockingTimeLimitedLockService interruptingService = createService(interruptingLimiter);
@@ -130,6 +133,6 @@ private void verifyCurrentTimeMillisDelegates(BlockingTimeLimitedLockService ser
     }
 
     private BlockingTimeLimitedLockService createService(TimeLimiter limiter) {
-        return new BlockingTimeLimitedLockService(delegate, limiter, BLOCKING_TIME_LIMIT_MILLIS);
+        return new BlockingTimeLimitedLockService(delegate, limiter, BLOCKING_TIME_LIMIT_MILLIS, snapshotManager);
     }
 }u}(j' (d3392a1c1b4cebd374d23f72a1c5cd73c77b3bc2j' 
versions.lockj ( modifiedj' K%j' K%j( KJj( _https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/versions.lockj( ^https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/versions.lockj( qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X*+  @@ -10,22 +10,22 @@ com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
 com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c38132bb)
 com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bbb5dd72)
-com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 03bafb2e)
-com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e133df00)
-com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7e1c9da4)
+com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 06bad036)
+com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e233e000)
+com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7f1c9ea4)
 com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2 (4 constraints: 2244332b)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 333f21b0)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6b30665e)
-com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 312bccaf)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6b30665e)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 343f76b0)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6c30915e)
+com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 322bf7af)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6c30915e)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 40197abb)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 41197bbb)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.2 (2 constraints: 251d9309)
-com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9a1c98a6)
+com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9b1c99a6)
 com.fasterxml.jackson.module:jackson-module-blackbird:2.14.2 (1 constraints: b40e625e)
 com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.2 (2 constraints: db2e8469)
 com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 24cec010)
+com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 2dce2620)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -45,7 +45,7 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (23 constraints: a3788bf6)
+com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f2947442)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
@@ -67,28 +67,28 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:6.77.0 (5 constraints: ad546073)
-com.palantir.conjure.java:conjure-undertow-annotations:6.77.0 (1 constraints: 4605743b)
-com.palantir.conjure.java:conjure-undertow-lib:6.77.0 (2 constraints: 8d1cfdb0)
+com.palantir.conjure.java:conjure-lib:7.5.0 (5 constraints: cd530c72)
+com.palantir.conjure.java:conjure-undertow-annotations:7.5.0 (1 constraints: 0e051d36)
+com.palantir.conjure.java:conjure-undertow-lib:7.5.0 (2 constraints: 1d1c4081)
 com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 3d696e70)
 com.palantir.conjure.java.api:service-config:2.34.0 (5 constraints: 724d79ca)
 com.palantir.conjure.java.api:ssl-config:2.34.0 (3 constraints: e22a0da5)
-com.palantir.conjure.java.runtime:client-config:7.40.0 (6 constraints: a46bdb28)
-com.palantir.conjure.java.runtime:conjure-java-annotations:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.40.0 (2 constraints: c521007b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.40.0 (6 constraints: 306e1085)
-com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.40.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.40.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:keystores:7.40.0 (3 constraints: 162a3e5f)
-com.palantir.conjure.java.runtime:refresh-utils:7.40.0 (2 constraints: 051e6045)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.77.0 (2 constraints: 7f29c101)
-com.palantir.dialogue:dialogue-blocking-channels:3.77.0 (2 constraints: e12335b4)
-com.palantir.dialogue:dialogue-clients:3.77.0 (1 constraints: 4305623b)
-com.palantir.dialogue:dialogue-core:3.77.0 (3 constraints: 833de5e1)
-com.palantir.dialogue:dialogue-futures:3.77.0 (3 constraints: da3348c0)
-com.palantir.dialogue:dialogue-serde:3.77.0 (3 constraints: c12e6ba4)
-com.palantir.dialogue:dialogue-target:3.77.0 (7 constraints: 9e760764)
+com.palantir.conjure.java.runtime:client-config:7.45.0 (6 constraints: bd6b2133)
+com.palantir.conjure.java.runtime:conjure-java-annotations:7.45.0 (1 constraints: c6188d9e)
+com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.45.0 (2 constraints: ca210f7b)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.45.0 (6 constraints: 3f6ee88e)
+com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.45.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.45.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.45.0 (1 constraints: c6188d9e)
+com.palantir.conjure.java.runtime:keystores:7.45.0 (3 constraints: 202a4c60)
+com.palantir.conjure.java.runtime:refresh-utils:7.45.0 (2 constraints: 0a1e6f45)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.78.0 (2 constraints: 83295d02)
+com.palantir.dialogue:dialogue-blocking-channels:3.78.0 (2 constraints: e32369b4)
+com.palantir.dialogue:dialogue-clients:3.78.0 (1 constraints: 4405653b)
+com.palantir.dialogue:dialogue-core:3.78.0 (3 constraints: 883d62e3)
+com.palantir.dialogue:dialogue-futures:3.78.0 (3 constraints: dd33dac0)
+com.palantir.dialogue:dialogue-serde:3.78.0 (3 constraints: c62e7fa5)
+com.palantir.dialogue:dialogue-target:3.78.0 (7 constraints: a7763c6a)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -98,7 +98,7 @@ com.palantir.goethe:goethe:0.9.0 (1 constraints: 0b050636)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
 com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
-com.palantir.safe-logging:logger:3.2.0 (23 constraints: 4e88492a)
+com.palantir.safe-logging:logger:3.2.0 (24 constraints: 98a4d6fa)
 com.palantir.safe-logging:logger-slf4j:3.2.0 (1 constraints: 000e5942)
 com.palantir.safe-logging:logger-spi:3.2.0 (2 constraints: 0f1e997a)
 com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: f7178aeb)
@@ -108,14 +108,14 @@ com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
 com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 485c7290)
 com.palantir.tracing:tracing:6.17.0 (8 constraints: f97d045e)
 com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 1745b4f5)
-com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 441994bb)
+com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 46199abb)
 com.palantir.tritium:tritium-api:0.64.0 (6 constraints: 5052c7ce)
 com.palantir.tritium:tritium-caffeine:0.64.0 (1 constraints: 3c05433b)
 com.palantir.tritium:tritium-core:0.64.0 (5 constraints: 5d43281d)
 com.palantir.tritium:tritium-lib:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f16b49d8)
+com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f96b65dd)
 com.palantir.tritium:tritium-proxy:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-registry:0.64.0 (12 constraints: f6d27f35)
+com.palantir.tritium:tritium-registry:0.64.0 (13 constraints: 88ef0d92)
 com.palantir.tritium:tritium-slf4j:0.64.0 (2 constraints: bd138370)
 com.palantir.tritium:tritium-time:0.64.0 (1 constraints: 820e8359)
 com.palantir.tritium:tritium-tracing:0.64.0 (1 constraints: 820e8359)
@@ -186,7 +186,7 @@ io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf
 io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
-io.undertow:undertow-core:2.2.24.Final (2 constraints: 361dd006)
+io.undertow:undertow-core:2.2.25.Final (2 constraints: 331dfa06)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
@@ -195,7 +195,7 @@ jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 26793e31)
 jakarta.inject:jakarta.inject-api:1.0.5 (13 constraints: decbc9f9)
 jakarta.servlet:jakarta.servlet-api:4.0.4 (10 constraints: 7b9def70)
 jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
-jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (18 constraints: 5a38d98d)
+jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (17 constraints: 6f283f6d)
 jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.5 (6 constraints: 845987f4)
@@ -313,7 +313,7 @@ org.slf4j:slf4j-api:1.7.36 (44 constraints: 8180995b)
 org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
 org.wildfly.common:wildfly-common:1.6.0.Final (4 constraints: 3f390b3d)
 org.xerial:sqlite-jdbc:3.42.0.0 (1 constraints: 99054946)
-org.xerial.snappy:snappy-java:1.1.8 (2 constraints: 011529cb)
+org.xerial.snappy:snappy-java:1.1.10.1 (2 constraints: 891546f4)
 org.yaml:snakeyaml:1.33 (5 constraints: 0a4c5570)
 
 [Test dependencies]u}(j' (04244236509f194bcfe0d83350f2346909da1318j' versions.propsj ( modifiedj' Kj' Kj( K
j( `https://github.com/palantir/atlasdb/blob/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/versions.propsj( _https://github.com/palantir/atlasdb/raw/0caf0fea1362941ffb01c4fc852d45f02c6cc81e/versions.propsj( rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=0caf0fea1362941ffb01c4fc852d45f02c6cc81ej	( X  @@ -25,9 +25,9 @@ com.palantir.common:streams = 2.1.0
 com.palantir.config.crypto:* = 5.1.0
 com.palantir.conjure.java.api:* = 2.29.0
 com.palantir.conjure.java.runtime:* = 7.39.0
-com.palantir.conjure.java:* = 6.77.0
-com.palantir.conjure:conjure = 4.35.0
-com.palantir.dialogue:* = 3.77.0
+com.palantir.conjure.java:* = 7.5.0
+com.palantir.conjure:conjure = 4.36.0
+com.palantir.dialogue:* = 3.78.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
 com.palantir.goethe:* = 0.9.0
@@ -46,7 +46,7 @@ commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
 io.netty:* = 4.1.90.Final
-io.undertow:* = 2.2.24.Final
+io.undertow:* = 2.2.25.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2
@@ -78,7 +78,7 @@ org.reflections:reflections = 0.10.2
 org.rocksdb:rocksdbjni = 7.9.2
 org.slf4j:* = 1.7.36
 org.wildfly.common:wildfly-common = 1.6.0.Final
-org.xerial.snappy:snappy-java = 1.1.8
+org.xerial.snappy:snappy-java = 1.1.10.1
 org.xerial:sqlite-jdbc = 3.42.0.0
 org.yaml:snakeyaml = 1.33
 uk.org.lidalia:slf4j-test = 1.1.0ueu(e1c7fd484eaa116e7ddd417973445fc39c247a9c}(sha(e1c7fd484eaa116e7ddd417973445fc39c247a9cnode_idEC_kwDOAjP5fdoAKGUxYzdmZDQ4NGVhYTExNmU3ZGRkNDE3OTczNDQ1ZmMzOWMyNDdhOWMcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T12:18:42Zu	committer}(j* 
Ahmed Alouanej* aalouane@palantir.comj* 2023-05-15T12:18:42Zumessageno pltrtree}(j* (0d4b0739dbbe730852e2c78a1c1d949d8a800baburl`https://api.github.com/repos/palantir/atlasdb/git/trees/0d4b0739dbbe730852e2c78a1c1d949d8a800babuj* bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e1c7fd484eaa116e7ddd417973445fc39c247a9c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiIyIACgkQPlMHVIT1
yhpVzgf9FtBDc099vkucHP31jsSi5tuRl/WMPx6fqOirDqH8fKcAXmnvOaFtNONi
D+LQWDUOR/pi8dmOqxNePHJF2AF5p1gkn4BKjAqo+4Ei/Fc5GYJ4NsDGU23C56Xr
zkSCPkUOplva68Loffc+tfW1CMy3vuqVM6b5vZqVQCryly8ZcWdDvwi0T+Q+yQcA
aLHLETqlv0oSuoXOEqhVJIG4oTg+hLy50JKDfVZt/clWms0Kydqf0kYOSi8PbWY+
jz3wdutkMbB06IHGc+qr5xwM2JuV8H6LUnKacy5CpvEeIPgvaEvyWvrLCZ3VG4Jk
C8dIszPU676cnBGfporXVjryKGwevw==
=uZ4u
-----END PGP SIGNATURE-----payloadtree 0d4b0739dbbe730852e2c78a1c1d949d8a800bab
parent 6623c2c51cfd34c00abf86fc0ced687d2eaf4589
author Ahmed Alouane <aalouane@palantir.com> 1684153122 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684153122 +0100

no pltr
uuj* ^https://api.github.com/repos/palantir/atlasdb/commits/e1c7fd484eaa116e7ddd417973445fc39c247a9chtml_urlShttps://github.com/palantir/atlasdb/commit/e1c7fd484eaa116e7ddd417973445fc39c247a9ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e1c7fd484eaa116e7ddd417973445fc39c247a9c/commentsj* }(loginergo14idJj* MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j* #https://api.github.com/users/ergo14j+ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj* }(j+ ergo14j+ Jj* MDQ6VXNlcjMwOTAzNzM2j+ 4https://avatars.githubusercontent.com/u/30903736?v=4j+ h5j* #https://api.github.com/users/ergo14j+ https://github.com/ergo14j+ -https://api.github.com/users/ergo14/followersj+ :https://api.github.com/users/ergo14/following{/other_user}j+ 3https://api.github.com/users/ergo14/gists{/gist_id}j+ :https://api.github.com/users/ergo14/starred{/owner}{/repo}j!+ 1https://api.github.com/users/ergo14/subscriptionsj#+ (https://api.github.com/users/ergo14/orgsj%+ )https://api.github.com/users/ergo14/reposj'+ 4https://api.github.com/users/ergo14/events{/privacy}j)+ 3https://api.github.com/users/ergo14/received_eventsj++ Userj-+ uparents]}(j* (6623c2c51cfd34c00abf86fc0ced687d2eaf4589j* ^https://api.github.com/repos/palantir/atlasdb/commits/6623c2c51cfd34c00abf86fc0ced687d2eaf4589j+ Shttps://github.com/palantir/atlasdb/commit/6623c2c51cfd34c00abf86fc0ced687d2eaf4589uastats}(totalK	additionsK	deletionsKufiles]}(j* (4fde78f98dadd3cd970e73e1d1494ea970e32e48filename.circleci/config.ymlstatusmodifiedjG+ KjH+ KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/e1c7fd484eaa116e7ddd417973445fc39c247a9c/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/e1c7fd484eaa116e7ddd417973445fc39c247a9c/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=e1c7fd484eaa116e7ddd417973445fc39c247a9cpatch@@ -101,7 +101,7 @@ jobs:
 
   # placeholder no-op
   test:
-    docker: [{ image: 'hub.docker.palantir.build/busybox:1.34.1' }]
+    docker: [{ image: 'busybox:1.34.1' }]
     resource_class: small
     steps:
       - run: {command: echo "No op"}uau(a7aba2bfe2b7f307ab127fb884a0f3aed023f2d7}(sha(a7aba2bfe2b7f307ab127fb884a0f3aed023f2d7node_idEC_kwDOAjP5fdoAKGE3YWJhMmJmZTJiN2YzMDdhYjEyN2ZiODg0YTBmM2FlZDAyM2YyZDccommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-04-14T15:20:19Zu	committer}(jd+ 
svc-changelogjf+ svc-changelog@palantir.comjh+ 2023-04-14T15:20:19ZumessageAdd generated changelog entriestree}(j\+ (473ba464422c30833ec4291b83b4b552116c5186url`https://api.github.com/repos/palantir/atlasdb/git/trees/473ba464422c30833ec4291b83b4b552116c5186ujt+ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a7aba2bfe2b7f307ab127fb884a0f3aed023f2d7
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQ5bzMJEHYaJX37fAFQAAD5HAEAwuhAcWUNxvYeRA+YOTH4JLIX
aQUAmcML++SjgadvHqYBAMTSRPtN/rFxdInRBwG/CKLjHQ8qVHqF7UUvjKCswr1Z
=0fh7
-----END PGP SIGNATURE-----payloadX  tree 473ba464422c30833ec4291b83b4b552116c5186
parent 40a42d3e506406027f6debf8bf240d81e00ef8d6
author svc-changelog <svc-changelog@palantir.com> 1681485619 +0000
committer svc-changelog <svc-changelog@palantir.com> 1681485619 +0000

Add generated changelog entriesuujt+ ^https://api.github.com/repos/palantir/atlasdb/commits/a7aba2bfe2b7f307ab127fb884a0f3aed023f2d7html_urlShttps://github.com/palantir/atlasdb/commit/a7aba2bfe2b7f307ab127fb884a0f3aed023f2d7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a7aba2bfe2b7f307ab127fb884a0f3aed023f2d7/commentsjb+ }(login
svc-changelogidJ#j^+ MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jt+ *https://api.github.com/users/svc-changelogj+  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujj+ }(j+ 
svc-changelogj+ J#j^+ MDQ6VXNlcjg0MDc3NjAzj+ 4https://avatars.githubusercontent.com/u/84077603?v=4j+ h5jt+ *https://api.github.com/users/svc-changelogj+  https://github.com/svc-changelogj+ 4https://api.github.com/users/svc-changelog/followersj+ Ahttps://api.github.com/users/svc-changelog/following{/other_user}j+ :https://api.github.com/users/svc-changelog/gists{/gist_id}j+ Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j+ 8https://api.github.com/users/svc-changelog/subscriptionsj+ /https://api.github.com/users/svc-changelog/orgsj+ 0https://api.github.com/users/svc-changelog/reposj+ ;https://api.github.com/users/svc-changelog/events{/privacy}j+ :https://api.github.com/users/svc-changelog/received_eventsj+ Userj+ uparents]}(j\+ (40a42d3e506406027f6debf8bf240d81e00ef8d6jt+ ^https://api.github.com/repos/palantir/atlasdb/commits/40a42d3e506406027f6debf8bf240d81e00ef8d6j+ Shttps://github.com/palantir/atlasdb/commit/40a42d3e506406027f6debf8bf240d81e00ef8d6uastats}(totalK	additionsK	deletionsK ufiles]}(j\+ (7cd0781ff20be0bdee6ed7080da226fe65bc85c7filename$changelog/@unreleased/pr-6527.v2.ymlstatusaddedj+ Kj+ K changesKblob_url|https://github.com/palantir/atlasdb/blob/a7aba2bfe2b7f307ab127fb884a0f3aed023f2d7/changelog%2F%40unreleased%2Fpr-6527.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/a7aba2bfe2b7f307ab127fb884a0f3aed023f2d7/changelog%2F%40unreleased%2Fpr-6527.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6527.v2.yml?ref=a7aba2bfe2b7f307ab127fb884a0f3aed023f2d7patch@@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Use debian images for workload-server and timelock-server for integration
+    tests
+  links:
+  - https://github.com/palantir/atlasdb/pull/6527uau(8b3e4777802bc1082bcc19770e990d92a21d8986}(sha(8b3e4777802bc1082bcc19770e990d92a21d8986node_idEC_kwDOAjP5fdoAKDhiM2U0Nzc3ODAyYmMxMDgyYmNjMTk3NzBlOTkwZDkyYTIxZDg5ODYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-09T21:07:51Zu	committer}(j+ Jeremy Kongj+ jkong@palantir.comj+ 2023-06-09T21:07:51Zumessagesnapshot and serializabletree}(j+ (3cd66ce0f5828d895514131b20405fe96f52742furl`https://api.github.com/repos/palantir/atlasdb/git/trees/3cd66ce0f5828d895514131b20405fe96f52742fuj+ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8b3e4777802bc1082bcc19770e990d92a21d8986
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSDlKgACgkQTLdFKain
zjweaQgAh3IuWNALIgJDisep0ExWrtbAKznbMeEDBbIQjJeMox5uoVf5U+rvZYte
UhJMTRJgver+1tUlldi+N0nq6udn2gPv75Y5rwIj7NBkFFyyi9xoiCA9wd0cbv5h
jcYmIudrcFMN4da8DhzNm7evO2RoXotnUpIsLOLTE4WxkZWG7TS4P/hUJky6FvR/
trCF7u3fMRzgsroDWm8o79SsTs3vJolAbWBAnc8He6XLCP4mDxoeboptURh7XDkm
7xeRD86kaw2Te55a1HHA3IKOrjkqmdoRZ6aMJgN+rK2w2lKJ8pMqvvJR0QAzbFyP
se0YTEeBt0PN5xPHPiw1/moLsbDPQA==
=1QQb
-----END PGP SIGNATURE-----payloadtree 3cd66ce0f5828d895514131b20405fe96f52742f
parent 3e8ab47244db2fc45b382469144bae6f0ad14514
author Jeremy Kong <jkong@palantir.com> 1686344871 +0100
committer Jeremy Kong <jkong@palantir.com> 1686344871 +0100

snapshot and serializable
uuj+ ^https://api.github.com/repos/palantir/atlasdb/commits/8b3e4777802bc1082bcc19770e990d92a21d8986html_urlShttps://github.com/palantir/atlasdb/commit/8b3e4777802bc1082bcc19770e990d92a21d8986comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8b3e4777802bc1082bcc19770e990d92a21d8986/commentsj+ }(login
jeremyk-91idJZ j+ MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j+ 'https://api.github.com/users/jeremyk-91j+ https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj+ }(j+ 
jeremyk-91j , JZ j+ MDQ6VXNlcjU5NTU1MTA=j, 3https://avatars.githubusercontent.com/u/5955510?v=4j, h5j+ 'https://api.github.com/users/jeremyk-91j+ https://github.com/jeremyk-91j, 1https://api.github.com/users/jeremyk-91/followersj	, >https://api.github.com/users/jeremyk-91/following{/other_user}j, 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j
, >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j, 5https://api.github.com/users/jeremyk-91/subscriptionsj, ,https://api.github.com/users/jeremyk-91/orgsj, -https://api.github.com/users/jeremyk-91/reposj, 8https://api.github.com/users/jeremyk-91/events{/privacy}j, 7https://api.github.com/users/jeremyk-91/received_eventsj, Userj, uparents]}(j+ (3e8ab47244db2fc45b382469144bae6f0ad14514j+ ^https://api.github.com/repos/palantir/atlasdb/commits/3e8ab47244db2fc45b382469144bae6f0ad14514j+ Shttps://github.com/palantir/atlasdb/commit/3e8ab47244db2fc45b382469144bae6f0ad14514uastats}(totalMp	additionsM\	deletionsKufiles](}(j+ (0a4d734e74bdb5dcdffbc54ce8753919c2582e95filenamecatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RangeSlice.javastatusmodifiedj5, Kj6, K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeSlice.javaraw_urlhttps://github.com/palantir/atlasdb/raw/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeSlice.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeSlice.java?ref=8b3e4777802bc1082bcc19770e990d92a21d8986patch@@ -62,4 +62,8 @@ default void check() {
     static ImmutableRangeSlice.Builder builder() {
         return ImmutableRangeSlice.builder();
     }
+
+    static RangeSlice all() {
+        return ImmutableRangeSlice.builder().build();
+    }
 }u}(j+ (448f563f903e02b65575571d720b461a8d5dde19j;, vatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowRangeReadTransactionAction.javaj=, modifiedj5, Kj6, K j?, Kj@, https://github.com/palantir/atlasdb/blob/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowRangeReadTransactionAction.javajB, https://github.com/palantir/atlasdb/raw/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowRangeReadTransactionAction.javajD, https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowRangeReadTransactionAction.java?ref=8b3e4777802bc1082bcc19770e990d92a21d8986jF, X  @@ -16,6 +16,10 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
+import com.palantir.atlasdb.workload.store.RowResult;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedRowRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowRangeReadTransactionAction;
+import java.util.List;
 import java.util.SortedSet;
 import org.immutables.value.Value;
 
@@ -42,6 +46,13 @@ default <T> T accept(TransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
+    default WitnessedRowRangeReadTransactionAction witness(List<RowResult> results) {
+        return ImmutableWitnessedRowRangeReadTransactionAction.builder()
+                .originalQuery(this)
+                .results(results)
+                .build();
+    }
+
     static ImmutableRowRangeReadTransactionAction.Builder builder() {
         return ImmutableRowRangeReadTransactionAction.builder();
     }u}(j+ (9e1aabca02c2e8b74aeef8cf887c93a7159c757cj;, atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedRowRangeReadTransactionAction.javaj=, addedj5, K+j6, K j?, K+j@, https://github.com/palantir/atlasdb/blob/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowRangeReadTransactionAction.javajB, https://github.com/palantir/atlasdb/raw/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowRangeReadTransactionAction.javae     jD, X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowRangeReadTransactionAction.java?ref=8b3e4777802bc1082bcc19770e990d92a21d8986jF, X  @@ -0,0 +1,43 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.RowResult;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedRowRangeReadTransactionAction extends InvalidWitnessedTransactionAction {
+    WitnessedRowRangeReadTransactionAction witness();
+
+    List<RowResult> expectedResults();
+
+    @Value.Check
+    default void check() {
+        Preconditions.checkState(
+                !expectedResults().equals(witness().results()),
+                "If the witness and expected row results match, this should not be an invalid action",
+                SafeArg.of("witnessedRowResults", witness().results()),
+                SafeArg.of("expectedRowResults", expectedResults()));
+    }
+
+    static ImmutableInvalidWitnessedRowRangeReadTransactionAction.Builder builder() {
+        return ImmutableInvalidWitnessedRowRangeReadTransactionAction.builder();
+    }
+}u}(j+ (516d7ce6184c6f0bbe21b6dee386d36ce3931a64j;, hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj=, modifiedj5, K
j6, Kj?, Kj@, https://github.com/palantir/atlasdb/blob/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajB, https://github.com/palantir/atlasdb/raw/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajD, https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=8b3e4777802bc1082bcc19770e990d92a21d8986jF, X
  @@ -17,11 +17,13 @@
 package com.palantir.atlasdb.workload.invariant;
 
 import com.palantir.atlasdb.workload.store.ColumnAndValue;
+import com.palantir.atlasdb.workload.store.RowResult;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
 import com.palantir.atlasdb.workload.transaction.RangeQueryReader;
 import com.palantir.atlasdb.workload.transaction.SimpleRangeQueryReader;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
@@ -102,7 +104,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(
         public Optional<InvalidWitnessedTransactionAction> visit(
                 WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
             List<ColumnAndValue> expectedReads =
-                    rangeQueryReader.readRange(rowColumnRangeReadTransactionAction.originalQuery());
+                    rangeQueryReader.readColumnRange(rowColumnRangeReadTransactionAction.originalQuery());
             if (!expectedReads.equals(rowColumnRangeReadTransactionAction.columnsAndValues())) {
                 return Optional.of(InvalidWitnessedRowColumnRangeReadTransactionAction.builder()
                         .witness(rowColumnRangeReadTransactionAction)
@@ -115,7 +117,13 @@ public Optional<InvalidWitnessedTransactionAction> visit(
         @Override
         public Optional<InvalidWitnessedTransactionAction> visit(
                 WitnessedRowRangeReadTransactionAction rowReadTransactionAction) {
-            // TODO (jkong): Not implemented yet!
+            List<RowResult> expectedReads = rangeQueryReader.readRowRange(rowReadTransactionAction.originalQuery());
+            if (!expectedReads.equals(rowReadTransactionAction.results())) {
+                return Optional.of(InvalidWitnessedRowRangeReadTransactionAction.builder()
+                        .witness(rowReadTransactionAction)
+                        .expectedResults(expectedReads)
+                        .build());
+            }
             return Optional.empty();
         }
     }u}(j+ (aa814226236b1345944ddbcc814254fb7932f013j;, katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj=, modifiedj5, Kj6, Kj?, K
j@, https://github.com/palantir/atlasdb/blob/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajB, https://github.com/palantir/atlasdb/raw/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajD, https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=8b3e4777802bc1082bcc19770e990d92a21d8986jF, X	  @@ -18,10 +18,12 @@
 
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.store.ColumnAndValue;
+import com.palantir.atlasdb.workload.store.RowResult;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.SimpleRangeQueryReader;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
@@ -100,7 +102,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransact
     public Optional<InvalidWitnessedTransactionAction> visit(
             WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
         List<ColumnAndValue> expectedReads = SimpleRangeQueryReader.createForSnapshot(readView)
-                .readRange(rowColumnRangeReadTransactionAction.originalQuery());
+                .readColumnRange(rowColumnRangeReadTransactionAction.originalQuery());
         if (!expectedReads.equals(rowColumnRangeReadTransactionAction.columnsAndValues())) {
             return Optional.of(InvalidWitnessedRowColumnRangeReadTransactionAction.builder()
                     .witness(rowColumnRangeReadTransactionAction)
@@ -113,7 +115,14 @@ public Optional<InvalidWitnessedTransactionAction> visit(
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(
             WitnessedRowRangeReadTransactionAction rowReadTransactionAction) {
-        // TODO (jkong): Not implemented yet!
+        List<RowResult> expectedReads = SimpleRangeQueryReader.createForSnapshot(readView)
+                .readRowRange(rowReadTransactionAction.originalQuery());
+        if (!expectedReads.equals(rowReadTransactionAction.results())) {
+            return Optional.of(InvalidWitnessedRowRangeReadTransactionAction.builder()
+                    .witness(rowReadTransactionAction)
+                    .expectedResults(expectedReads)
+                    .build());
+        }
         return Optional.empty();
     }
 u}(j+ (371dae8b1ee1b888ce9baf92039225879fc886f5j;, eatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/RangeQueryReader.javaj=, modifiedj5, Kj6, Kj?, Kj@, https://github.com/palantir/atlasdb/blob/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.javajB, https://github.com/palantir/atlasdb/raw/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.javajD, https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.java?ref=8b3e4777802bc1082bcc19770e990d92a21d8986jF, X  @@ -17,8 +17,11 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.store.ColumnAndValue;
+import com.palantir.atlasdb.workload.store.RowResult;
 import java.util.List;
 
 public interface RangeQueryReader {
-    List<ColumnAndValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction);
+    List<ColumnAndValue> readColumnRange(RowColumnRangeReadTransactionAction readTransactionAction);
+
+    List<RowResult> readRowRange(RowRangeReadTransactionAction readTransactionAction);
 }u}(j+ (e26a0806c41d826bcbf6e7489737f2fd3d774480j;, katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReader.javaj=, modifiedj5, K6j6, K	j?, K?j@, https://github.com/palantir/atlasdb/blob/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javajB, https://github.com/palantir/atlasdb/raw/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javajD, https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.java?ref=8b3e4777802bc1082bcc19770e990d92a21d8986jF, Xs  @@ -20,12 +20,15 @@
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.invariant.ValueAndMaybeTimestamp;
 import com.palantir.atlasdb.workload.store.ColumnAndValue;
+import com.palantir.atlasdb.workload.store.RowResult;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import io.vavr.Tuple2;
 import io.vavr.collection.Map;
+import java.util.Comparator;
 import java.util.List;
 import java.util.Optional;
 import java.util.function.Supplier;
@@ -52,15 +55,8 @@ public static RangeQueryReader createForSnapshot(
     }
 
     @Override
-    public List<ColumnAndValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction) {
-        Map<TableAndWorkloadCell, Optional<Integer>> allValues = rawValueSupplier.get();
-        if (allValues.size() > LARGE_HISTORY_LIMIT) {
-            log.error(
-                    "Attempted to do range queries in a simple way, even though the history is large ({} entries)! If"
-                        + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
-                        + " efficient range query implementation.",
-                    SafeArg.of("size", allValues.size()));
-        }
+    public List<ColumnAndValue> readColumnRange(RowColumnRangeReadTransactionAction readTransactionAction) {
+        Map<TableAndWorkloadCell, Optional<Integer>> allValues = getValuesAndLogIfLarge();
         return allValues
                 .filterKeys(tableAndWorkloadCell -> {
                     if (!tableAndWorkloadCell.tableName().equals(readTransactionAction.table())) {
@@ -82,4 +78,53 @@ public List<ColumnAndValue> readRange(RowColumnRangeReadTransactionAction readTr
                 .sortBy(ColumnAndValue::column)
                 .toJavaList();
     }
+
+    @Override
+    public List<RowResult> readRowRange(RowRangeReadTransactionAction readTransactionAction) {
+        Map<TableAndWorkloadCell, Optional<Integer>> allValues = getValuesAndLogIfLarge();
+        return allValues
+                .filterKeys(tableAndWorkloadCell -> {
+                    if (!tableAndWorkloadCell.tableName().equals(readTransactionAction.table())) {
+                        return false;
+                    }
+                    if (!readTransactionAction
+                            .rowsToRead()
+                            .contains(tableAndWorkloadCell.cell().key())) {
+                        return false;
+                    }
+                    return readTransactionAction
+                            .columns()
+                            .contains(tableAndWorkloadCell.cell().column());
+                })
+                .filterValues(Optional::isPresent)
+                .groupBy(tuple -> tuple._1().cell().key())
+                .toSortedSet(Comparator.comparing(Tuple2::_1))
+                // This is a hack to work around what I view as an unexpected Vavr API (sorted set's map necessarily
+                // producing an ordered structure), when I only rely on the ordering above.
+                .toList()
+                .<RowResult>map(tuple -> RowResult.builder()
+                        .row(tuple._1())
+                        .addAllColumns(tuple._2()
+                                .map(entry -> ColumnAndValue.of(
+                                        entry._1().cell().column(),
+                                        entry._2()
+                                                .orElseThrow(() -> new SafeRuntimeException(
+                                                        "Empty values should already have been filtered out!"))))
+                                .sortBy(ColumnAndValue::column)
+                                .toJavaList())
+                        .build())
+                .toJavaList();
+    }
+
+    private Map<TableAndWorkloadCell, Optional<Integer>> getValuesAndLogIfLarge() {
+        Map<TableAndWorkloadCell, Optional<Integer>> allValues = rawValueSupplier.get();
+        if (allValues.size() > LARGE_HISTORY_LIMIT) {
+            log.error(
+                    "Attempted to do range queries in a simple way, even though the history is large ({} entries)! If"
+                        + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
+                        + " efficient range query implementation.",
+                    SafeArg.of("size", allValues.size()));
+        }
+        return allValues;
+    }
 }u}(j+ (509a19c06e516f743663ff0ea2128c265f37fff3j;, latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj=, modifiedj5, Kj6, K j?, Kj@, https://github.com/palantir/atlasdb/blob/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajB, https://github.com/palantir/atlasdb/raw/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajD, https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=8b3e4777802bc1082bcc19770e990d92a21d8986jF, X8  @@ -19,13 +19,17 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSortedSet;
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.store.RowResult;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RangeSlice;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
@@ -377,6 +381,256 @@ public void identifiesIncorrectOrderingInRowColumnRangeRead() {
                         .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
     }
 
+    @Test
+    public void readsEmptyRangeIfNoCellsPresent() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(10, 10, 21)
+                .endTransaction()
+                .startTransaction()
+                .rowRangeRead(
+                        RangeSlice.builder()
+                                .startInclusive(15)
+                                .endExclusive(100)
+                                .build(),
+                        ImmutableSortedSet.of(10),
+                        ImmutableList.of())
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void readsRangeOfPresentCells() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(10, 10, 21)
+                .endTransaction()
+                .startTransaction()
+                .rowRangeRead(
+                        RangeSlice.all(),
+                        ImmutableSortedSet.of(10),
+                        ImmutableList.of(
+                                RowResult.builder()
+                                        .row(5)
+                                        .addColumns(ColumnAndValue.of(10, 15))
+                                        .build(),
+                                RowResult.builder()
+                                        .row(10)
+                                        .addColumns(ColumnAndValue.of(10, 21))
+                                        .build()))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void incorporatesLocalWritesIntoRowRangeScans() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(10, 10, 15)
+                .write(15, 10, 21)
+                .write(20, 10, 34)
+                .endTransaction()
+                .startTransaction()
+                .write(13, 10, 24)
+                .delete(15, 10)
+                .write(20, 10, 38)
+                .rowRangeRead(
+                        RangeSlice.all(),
+                        ImmutableSortedSet.of(10),
+                        ImmutableList.of(
+                                RowResult.builder()
+                                        .row(10)
+                                        .addColumns(ColumnAndValue.of(10, 15))
+                                        .build(),
+                                RowResult.builder()
+                                        .row(13)
+                                        .addColumns(ColumnAndValue.of(10, 24))
+                                        .build(),
+                                RowResult.builder()
+                                        .row(20)
+                                        .addColumns(ColumnAndValue.of(10, 38))
+                                        .build()))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void identifiesUnexpectedMissingCellInRowRangeRead() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(10, 10, 21)
+                .endTransaction()
+                .startTransaction()
+                .rowRangeRead(
+                        RangeSlice.all(),
+                        ImmutableSortedSet.of(10),
+                        ImmutableList.of(RowResult.builder()
+                                .row(10)
+                                .addColumns(ColumnAndValue.of(10, 21))
+                                .build()))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(InvalidWitnessedRowRangeReadTransactionAction.class, action -> assertThat(
+                                action.expectedResults())
+                        .containsExactly(
+                                RowResult.builder()
+                                        .row(5)
+                                        .addColumns(ColumnAndValue.of(10, 15))
+                                        .build(),
+                                RowResult.builder()
+                                        .row(10)
+                                        .addColumns(ColumnAndValue.of(10, 21))
+                                        .build()));
+    }
+
+    @Test
+    public void identifiesUnexpectedAdditionalCellInRowRangeRead() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .rowRangeRead(
+                        RangeSlice.all(),
+                        ImmutableSortedSet.of(10),
+                        ImmutableList.of(
+                                RowResult.builder()
+                                        .row(5)
+                                        .addColumns(ColumnAndValue.of(10, 21))
+                                        .build(),
+                                RowResult.builder()
+                                        .row(10)
+                                        .addColumns(ColumnAndValue.of(10, 21))
+                                        .build()))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(InvalidWitnessedRowRangeReadTransactionAction.class, action -> assertThat(
+                                action.expectedResults())
+                        .containsExactly(RowResult.builder()
+                                .row(5)
+                                .addColumns(ColumnAndValue.of(10, 15))
+                                .build()));
+    }
+
+    @Test
+    public void identifiesIncorrectCellValueInRowRangeRead() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 20)
+                .endTransaction()
+                .startTransaction()
+                .rowRangeRead(
+                        RangeSlice.all(),
+                        ImmutableSortedSet.of(10),
+                        ImmutableList.of(RowResult.builder()
+                                .row(5)
+                                .addColumns(ColumnAndValue.of(10, 21))
+                                .build()))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(InvalidWitnessedRowRangeReadTransactionAction.class, action -> assertThat(
+                                action.expectedResults())
+                        .containsExactly(RowResult.builder()
+                                .row(5)
+                                .addColumns(ColumnAndValue.of(10, 20))
+                                .build()));
+    }
+
+    @Test
+    public void identifiesIncorrectOrderingInRowRangeRead() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 20)
+                .write(15, 10, 28)
+                .endTransaction()
+                .startTransaction()
+                .rowRangeRead(
+                        RangeSlice.all(),
+                        ImmutableSortedSet.of(10),
+                        ImmutableList.of(
+                                RowResult.builder()
+                                        .row(15)
+                                        .addColumns(ColumnAndValue.of(10, 28))
+                                        .build(),
+                                RowResult.builder()
+                                        .row(5)
+                                        .addColumns(ColumnAndValue.of(10, 20))
+                                        .build()))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(InvalidWitnessedRowRangeReadTransactionAction.class, action -> assertThat(
+                                action.expectedResults())
+                        .containsExactly(
+                                RowResult.builder()
+                                        .row(5)
+                                        .addColumns(ColumnAndValue.of(10, 20))
+                                        .build(),
+                                RowResult.builder()
+                                        .row(15)
+                                        .addColumns(ColumnAndValue.of(10, 28))
+                                        .build()));
+    }
+
     private static InvalidWitnessedTransactionAction getSingularFinalInvalidAction(
             List<InvalidWitnessedTransaction> invalidTransactions, List<WitnessedTransaction> transactions) {
         InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);u}(j+ (2c2dcd142fa2f57b52598d47773bbd4fd617b3c9j;, hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javaj=, modifiedj5, Kcj6, K j?, Kcj@, https://github.com/palantir/atlasdb/blob/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javajB, https://github.com/palantir/atlasdb/raw/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javajD, https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=8b3e4777802bc1082bcc19770e990d92a21d8986jF, X  @@ -19,14 +19,19 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSortedSet;
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.store.RowResult;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RangeSlice;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.RowRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
 import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
@@ -249,4 +254,98 @@ public void rowColumnRangeScanFlagsColumnCommittingAfterOurStartAsViolating() {
                                     .containsExactly(ColumnAndValue.of(30, WorkloadTestHelpers.VALUE_ONE));
                         });
     }
+
+    @Test
+    public void rowRangeScanNotExpectedToReadColumnsCommittingAfterOurStart() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .write(6, 10, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(15L)
+                .startTransaction(12L)
+                .write(7, 10, WorkloadTestHelpers.VALUE_ONE + WorkloadTestHelpers.VALUE_TWO)
+                .rowRangeRead(
+                        RangeSlice.all(),
+                        ImmutableSortedSet.of(10),
+                        ImmutableList.of(
+                                RowResult.builder()
+                                        .row(5)
+                                        .addColumns(ColumnAndValue.of(10, WorkloadTestHelpers.VALUE_ONE))
+                                        .build(),
+                                RowResult.builder()
+                                        .row(7)
+                                        .addColumns(ColumnAndValue.of(
+                                                10, WorkloadTestHelpers.VALUE_ONE + WorkloadTestHelpers.VALUE_TWO))
+                                        .build()))
+                .endTransaction(21L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void rowRangeScanFlagsColumnCommittingAfterOurStartAsViolating() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(5L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(15L)
+                .startTransaction(12L)
+                .write(6, 10, WorkloadTestHelpers.VALUE_ONE)
+                .rowRangeRead(
+                        RangeSlice.all(),
+                        ImmutableSortedSet.of(10),
+                        ImmutableList.of(
+                                RowResult.builder()
+                                        .row(5)
+                                        .addColumns(ColumnAndValue.of(10, WorkloadTestHelpers.VALUE_TWO))
+                                        .build(),
+                                RowResult.builder()
+                                        .row(6)
+                                        .addColumns(ColumnAndValue.of(10, WorkloadTestHelpers.VALUE_ONE))
+                                        .build()))
+                .endTransaction(21L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidTransaction.transaction().startTimestamp()).isEqualTo(12L);
+        assertThat(invalidTransaction.transaction().commitTimestamp()).contains(21L);
+
+        InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(InvalidWitnessedRowRangeReadTransactionAction.class, invalidRowRangeRead -> {
+                    assertThat(invalidRowRangeRead.witness())
+                            .isEqualTo(RowRangeReadTransactionAction.builder()
+                                    .table(WorkloadTestHelpers.TABLE_1)
+                                    .rowsToRead(RangeSlice.all())
+                                    .columns(ImmutableSortedSet.of(10))
+                                    .build()
+                                    .witness(ImmutableList.of(
+                                            RowResult.builder()
+                                                    .row(5)
+                                                    .addColumns(ColumnAndValue.of(10, WorkloadTestHelpers.VALUE_TWO))
+                                                    .build(),
+                                            RowResult.builder()
+                                                    .row(6)
+                                                    .addColumns(ColumnAndValue.of(10, WorkloadTestHelpers.VALUE_ONE))
+                                                    .build())));
+                    assertThat(invalidRowRangeRead.expectedResults())
+                            .containsExactly(RowResult.builder()
+                                    .row(6)
+                                    .addColumns(ColumnAndValue.of(10, WorkloadTestHelpers.VALUE_ONE))
+                                    .build());
+                });
+    }
 }u}(j+ (15af77ec8cc88de22971a070a66c359656bab20dj;, oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReaderTest.javaj=, modifiedj5, Kej6, Kj?, Kkj@, https://github.com/palantir/atlasdb/blob/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javajB, https://github.com/palantir/atlasdb/raw/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javajD, https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.java?ref=8b3e4777802bc1082bcc19770e990d92a21d8986jF, X  @@ -18,13 +18,17 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.google.common.collect.ImmutableSortedSet;
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.RowResult;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import io.vavr.collection.HashMap;
 import io.vavr.collection.Map;
 import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import org.junit.Test;
 
 public class SimpleRangeQueryReaderTest {
@@ -33,11 +37,11 @@ public class SimpleRangeQueryReaderTest {
     private final SimpleRangeQueryReader reader = new SimpleRangeQueryReader(valueMap::getSnapshot);
 
     @Test
-    public void doesNotReadCellsFromDifferentTable() {
+    public void columnRangeScansDoNotReadCellsFromDifferentTable() {
         valueMap.with(map -> map.put(
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
-        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+        assertThat(reader.readColumnRange(RowColumnRangeReadTransactionAction.builder()
                         .table(WorkloadTestHelpers.TABLE_2)
                         .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
                         .columnRangeSelection(ColumnRangeSelection.builder().build())
@@ -46,11 +50,11 @@ public void doesNotReadCellsFromDifferentTable() {
     }
 
     @Test
-    public void doesNotReadCellsFromDifferentRow() {
+    public void columnRangeScansDoNotReadCellsFromDifferentRow() {
         valueMap.with(map -> map.put(
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
-        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+        assertThat(reader.readColumnRange(RowColumnRangeReadTransactionAction.builder()
                         .table(WorkloadTestHelpers.TABLE_1)
                         .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
                         .columnRangeSelection(ColumnRangeSelection.builder().build())
@@ -59,14 +63,14 @@ public void doesNotReadCellsFromDifferentRow() {
     }
 
     @Test
-    public void readsCellsFromRangeInOrder() {
+    public void columnRangeScansReadCorrectCellsFromCorrectTableInOrder() {
         for (int column = 0; column < 10; column++) {
             int finalColumn = column;
             valueMap.with(map -> map.put(
                     TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, ImmutableWorkloadCell.of(1, finalColumn)),
                     Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         }
-        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+        assertThat(reader.readColumnRange(RowColumnRangeReadTransactionAction.builder()
                         .table(WorkloadTestHelpers.TABLE_1)
                         .row(1)
                         .columnRangeSelection(ColumnRangeSelection.builder()
@@ -78,4 +82,95 @@ public void readsCellsFromRangeInOrder() {
                         ColumnAndValue.of(2, WorkloadTestHelpers.VALUE_ONE),
                         ColumnAndValue.of(3, WorkloadTestHelpers.VALUE_ONE));
     }
+
+    @Test
+    public void columnRangeScansDoNotReadCachedTombstones() {
+        valueMap.with(map -> map.put(
+                TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
+                Optional.empty()));
+        assertThat(reader.readColumnRange(RowColumnRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                        .columnRangeSelection(ColumnRangeSelection.builder().build())
+                        .build()))
+                .isEmpty();
+    }
+
+    @Test
+    public void rowRangeScansDoNotReadCellsFromDifferentTable() {
+        valueMap.with(map -> map.put(
+                TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
+                Optional.of(WorkloadTestHelpers.VALUE_ONE)));
+        assertThat(reader.readRowRange(RowRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_2)
+                        .rowsToRead(RangeSlice.all())
+                        .columns(ImmutableSortedSet.of(WorkloadTestHelpers.WORKLOAD_CELL_ONE.column()))
+                        .build()))
+                .isEmpty();
+    }
+
+    @Test
+    public void rowRangeScansDoNotReadCachedTombstones() {
+        valueMap.with(map -> map.put(
+                TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
+                Optional.empty()));
+        assertThat(reader.readRowRange(RowRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .rowsToRead(RangeSlice.all())
+                        .columns(ImmutableSortedSet.of(WorkloadTestHelpers.WORKLOAD_CELL_ONE.column()))
+                        .build()))
+                .isEmpty();
+    }
+
+    @Test
+    public void rowRangeScansReadCorrectColumns() {
+        int expectedRows = 10;
+        for (int row = 0; row < expectedRows; row++) {
+            int finalRow = row;
+            valueMap.with(map -> map.put(
+                    TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, ImmutableWorkloadCell.of(finalRow, 1)),
+                    Optional.of(finalRow)));
+            valueMap.with(map -> map.put(
+                    TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, ImmutableWorkloadCell.of(finalRow, 2)),
+                    Optional.of(finalRow * 2)));
+        }
+
+        assertThat(reader.readRowRange(RowRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .rowsToRead(RangeSlice.all())
+                        .columns(ImmutableSortedSet.of(1))
+                        .build()))
+                .isEqualTo(IntStream.range(0, expectedRows)
+                        .mapToObj(row -> RowResult.builder()
+                                .row(row)
+                                .addColumns(ColumnAndValue.of(1, row))
+                                .build())
+                        .collect(Collectors.toList()));
+    }
+
+    @Test
+    public void rowRangeScansReadCorrectRows() {
+        int expectedRows = 10;
+        for (int row = 0; row < expectedRows; row++) {
+            int finalRow = row;
+            valueMap.with(map -> map.put(
+                    TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, ImmutableWorkloadCell.of(finalRow, 1)),
+                    Optional.of(finalRow)));
+        }
+
+        assertThat(reader.readRowRange(RowRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .rowsToRead(RangeSlice.builder()
+                                .startInclusive(3)
+                                .endExclusive(8)
+                                .build())
+                        .columns(ImmutableSortedSet.of(1))
+                        .build()))
+                .isEqualTo(IntStream.range(3, 8)
+                        .mapToObj(row -> RowResult.builder()
+                                .row(row)
+                                .addColumns(ColumnAndValue.of(1, row))
+                                .build())
+                        .collect(Collectors.toList()));
+    }
 }u}(j+ (7996de5c199a81428d99919d4013732224d2e19aj;, qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj=, modifiedj5, K
j6, K j?, K
j@, https://github.com/palantir/atlasdb/blob/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajB, https://github.com/palantir/atlasdb/raw/8b3e4777802bc1082bcc19770e990d92a21d8986/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajD, https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=8b3e4777802bc1082bcc19770e990d92a21d8986jF, X  @@ -18,6 +18,7 @@
 
 import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.RowResult;
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
@@ -29,6 +30,7 @@
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Optional;
+import java.util.SortedSet;
 import java.util.concurrent.atomic.AtomicLong;
 
 public final class WitnessedTransactionsBuilder {
@@ -107,6 +109,17 @@ public WitnessedTransactionBuilder rowColumnRangeRead(
             return this;
         }
 
+        public WitnessedTransactionBuilder rowRangeRead(
+                RangeSlice rows, SortedSet<Integer> columns, List<RowResult> results) {
+            actions.add(RowRangeReadTransactionAction.builder()
+                    .table(table)
+                    .rowsToRead(rows)
+                    .columns(columns)
+                    .build()
+                    .witness(results));
+            return this;
+        }
+
         public WitnessedTransactionsBuilder endTransaction() {
             Optional<Long> commitTimestamp =
                     needsCommitTimestamp ? Optional.of(timestampCounter.incrementAndGet()) : Optional.empty();ueu(c875c6e7feac79459475d9471c71e13115af1f35}(sha(c875c6e7feac79459475d9471c71e13115af1f35node_idEC_kwDOAjP5fdoAKGM4NzVjNmU3ZmVhYzc5NDU5NDc1ZDk0NzFjNzFlMTMxMTVhZjFmMzUcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-05-24T08:47:41Zu	committer}(j, GitHubj, noreply@github.comj, 2023-05-24T08:47:41ZumessageModify script to support webhook integration for Antithesis (#6590)

Modify Antithesis publish script to support webhook integrationtree}(j, (b8694ff7845a151fc04c087f2f522c16a18ddc2burl`https://api.github.com/repos/palantir/atlasdb/git/trees/b8694ff7845a151fc04c087f2f522c16a18ddc2buj, bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c875c6e7feac79459475d9471c71e13115af1f35
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkbc8tCRBK7hj4Ov3rIwAAVeoIAEyLn7fofz0ymtDvCrMF95h9
/zIbDNFooOvR6dSAyu/iqb2HNUmA9x0G0tw5Oc06qWQYnSF1AlSpRePYFBFnFycs
iLl3DL67t+Lx5Wzk7KQKZWriZQxdxaQLUf4Zo2vrqBIxNeuwlUj/kVCO8iEYARk3
Ry4+BsFlbddzgmlQddoVLTW5LJEGI/8+Y6WOYb3UzmtGb1N3RIIOiCLI1E/0FX+s
0egMNSyPV23sexCsZbNxRWta0BnFjUhvEpfRIr2IyEKQ9/sNHyFV3IjUSdxeaOPy
Tg5q6OmvR7pFe+O5w4+vqyIzMvxN2429yzHkL3kAGy73v5tTHVWU59MGECGjTFI=
=C9HV
-----END PGP SIGNATURE-----
payloadXX  tree b8694ff7845a151fc04c087f2f522c16a18ddc2b
parent 8f48808e43a4e6eebba01424763ab8044bdd439e
author Sam-Kramer <sam.c.kramer@gmail.com> 1684918061 +0100
committer GitHub <noreply@github.com> 1684918061 +0000

Modify script to support webhook integration for Antithesis (#6590)

Modify Antithesis publish script to support webhook integration 
uuj, ^https://api.github.com/repos/palantir/atlasdb/commits/c875c6e7feac79459475d9471c71e13115af1f35html_urlShttps://github.com/palantir/atlasdb/commit/c875c6e7feac79459475d9471c71e13115af1f35comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c875c6e7feac79459475d9471c71e13115af1f35/commentsj, }(login
Sam-KrameridJ^2_ j, MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j, 'https://api.github.com/users/Sam-Kramerj, https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj, }(j, web-flowj, J/j, MDQ6VXNlcjE5ODY0NDQ3j, 4https://avatars.githubusercontent.com/u/19864447?v=4j, h5j, %https://api.github.com/users/web-flowj, https://github.com/web-flowj, /https://api.github.com/users/web-flow/followersj, <https://api.github.com/users/web-flow/following{/other_user}j, 5https://api.github.com/users/web-flow/gists{/gist_id}j, <https://api.github.com/users/web-flow/starred{/owner}{/repo}j, 3https://api.github.com/users/web-flow/subscriptionsj, *https://api.github.com/users/web-flow/orgsj, +https://api.github.com/users/web-flow/reposj, 6https://api.github.com/users/web-flow/events{/privacy}j, 5https://api.github.com/users/web-flow/received_eventsj, Userj, uparents]}(j, (8f48808e43a4e6eebba01424763ab8044bdd439ej, ^https://api.github.com/repos/palantir/atlasdb/commits/8f48808e43a4e6eebba01424763ab8044bdd439ej, Shttps://github.com/palantir/atlasdb/commit/8f48808e43a4e6eebba01424763ab8044bdd439euastats}(totalK!	additionsK	deletionsK	ufiles](}(j, (dc41d93cfc62da8e575d2e4bb661c0faf17b9fe6filename1atlasdb-workload-server-distribution/build.gradlestatusmodifiedj, Kj, KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/c875c6e7feac79459475d9471c71e13115af1f35/atlasdb-workload-server-distribution%2Fbuild.gradleraw_urlhttps://github.com/palantir/atlasdb/raw/c875c6e7feac79459475d9471c71e13115af1f35/atlasdb-workload-server-distribution%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=c875c6e7feac79459475d9471c71e13115af1f35patchX6  @@ -1,7 +1,7 @@
 apply plugin: 'com.palantir.sls-java-service-distribution'
 apply plugin: 'com.palantir.external-publish-dist'
-apply from: "../gradle/docker.gradle"
 apply from: "../gradle/shared.gradle"
+apply from: "../gradle/docker.gradle"
 apply from: "../gradle/non-client-dist.gradle"
 
 dependencies {u}(j, (85652670ee979a2233211267d7b5fb3f877648baj- gradle/docker.gradlej- modifiedj, Kj, K j- Kj- hhttps://github.com/palantir/atlasdb/blob/c875c6e7feac79459475d9471c71e13115af1f35/gradle%2Fdocker.gradlej	- ghttps://github.com/palantir/atlasdb/raw/c875c6e7feac79459475d9471c71e13115af1f35/gradle%2Fdocker.gradlej- zhttps://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fdocker.gradle?ref=c875c6e7feac79459475d9471c71e13115af1f35j
- X
  @@ -5,6 +5,7 @@ def imageVersion = "${project.version.toString().replaceAll('\\+', '-')}"
 docker {
     name "palantirtechnologies/${project.name}:${imageVersion}"
     tags 'latest', 'snapshot'
+    labels(['version': imageVersion])
     files distTar.outputs
 }
 u}(j, (f01b996082699cd861898185f0bd3e153c505101j- *scripts/circle-ci/publish-to-antithesis.shj- modifiedj, Kj, Kj- Kj- https://github.com/palantir/atlasdb/blob/c875c6e7feac79459475d9471c71e13115af1f35/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj	- https://github.com/palantir/atlasdb/raw/c875c6e7feac79459475d9471c71e13115af1f35/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj- https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=c875c6e7feac79459475d9471c71e13115af1f35j
- X
  @@ -1,5 +1,10 @@
 #!/bin/bash
 
+if [[ -z "$1" ]]; then
+    echo "Usage: $0 <webhook name>. Example: $0 config-check"
+    exit 1
+fi
+
 if [[ -z "${ANTITHESIS_REPO_URL}" ]]; then
   echo "Antithesis image repository URL is not set as an environment variable, exiting."
   exit 1
@@ -10,6 +15,11 @@ if [[ -z "${ANTITHESIS_LOGIN_JSON}" ]]; then
   exit 1
 fi
 
+if [[ -z "${ANTITHESIS_WEBHOOK_PASSWORD}" ]]; then
+  echo "Antithesis webhook password is not set as an environment variable, exiting."
+  exit 1
+fi
+
 printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://${ANTITHESIS_REPO_URL} --password-stdin
 
 ./gradlew --scan dockerTag
@@ -20,11 +30,16 @@ docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
 docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc5 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
 docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
 
-docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${VERSION}
-docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${VERSION}
+docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}
+docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}
+
+docker tag palantirtechnologies/atlasdb-workload-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${1}
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${1}
 
-docker tag palantirtechnologies/atlasdb-workload-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${VERSION}
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${VERSION}
+docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${1}
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${1}
 
-docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${VERSION}
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${VERSION}
\ No newline at end of file
+if [[ "$1" = "config-check" ]]; then
+  echo "Triggering simulation on Antithesis via the config-check webhook."
+  curl -v -u "palantir:${ANTITHESIS_WEBHOOK_PASSWORD}" -X POST https://palantir.antithesis.com/api/v1/launch_experiment/palantir__configcheck__minimal
+fi
\ No newline at end of fileu}(j, (d57a1810d0ac8b9e00dea54412cf093cbb114080j- )timelock-server-distribution/build.gradlej- modifiedj, Kj, Kj- Kj- }https://github.com/palantir/atlasdb/blob/c875c6e7feac79459475d9471c71e13115af1f35/timelock-server-distribution%2Fbuild.gradlej	- |https://github.com/palantir/atlasdb/raw/c875c6e7feac79459475d9471c71e13115af1f35/timelock-server-distribution%2Fbuild.gradlej- https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-distribution%2Fbuild.gradle?ref=c875c6e7feac79459475d9471c71e13115af1f35j
- XN  @@ -1,8 +1,7 @@
 apply plugin: 'com.palantir.sls-java-service-distribution'
-
-apply from: "../gradle/docker.gradle"
 apply plugin: 'com.palantir.external-publish-dist'
 apply from: "../gradle/shared.gradle"
+apply from: "../gradle/docker.gradle"
 apply from: "../gradle/tests.gradle"
 apply from: "../gradle/non-client-dist.gradle"
 ueu(b8807faa6e2c11bc960ca2bf1c8cd114a8011eb3}(sha(b8807faa6e2c11bc960ca2bf1c8cd114a8011eb3node_idEC_kwDOAjP5fdoAKGI4ODA3ZmFhNmUyYzExYmM5NjBjYTJiZjFjOGNkMTE0YTgwMTFlYjMcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-08-10T08:58:02Zu	committer}(j1- 	Tom Papkej3- tpapke@palantir.comj5- 2023-08-10T08:58:02Zumessage/Only ensure unique rows for cells with metadatatree}(j)- (56b94599909adad835026ff1ffc3586afaee407furl`https://api.github.com/repos/palantir/atlasdb/git/trees/56b94599909adad835026ff1ffc3586afaee407fujA- bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b8807faa6e2c11bc960ca2bf1c8cd114a8011eb3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTUppsACgkQmF9s0kaF
Iw2I4AgAtBdxe9uf0RnhpgPDBXwfKAWgfaXFgQvfcX6moEz8V9/PMzcNxrIIF9aC
LQoSIwTe56gSw/jqqSTE0yzWrn48HBrh68Od5dVLBvbNaAv7efOVNaTkEwg0G/CT
F7awNlVZoewhd8RO8HvRYeuPUXINIgqYaUgEeUcctfmr9vIbFr3ekRb51da/qmO8
I8EYbvUzNbq1ffA9Nt9HQwONdZVGwtI4iqlVEnXAjr4VRM0UvFrlVUc5sZFsZL78
LOr8KWpIozBzE7V+wzIB+T4UUyAglNPRDZXPIgFW5ApGBFp5bwyf7e46BUhHiIk/
ezQSf6rUHAqLBaYDs3lo8ZkWGWnRwg==
=UjlJ
-----END PGP SIGNATURE-----payloadX  tree 56b94599909adad835026ff1ffc3586afaee407f
parent ec90a7f0da664b77ed09bddf48a926210f3c8096
author Tom Papke <tpapke@palantir.com> 1691657882 +0100
committer Tom Papke <tpapke@palantir.com> 1691657882 +0100

Only ensure unique rows for cells with metadata
uujA- ^https://api.github.com/repos/palantir/atlasdb/commits/b8807faa6e2c11bc960ca2bf1c8cd114a8011eb3html_urlShttps://github.com/palantir/atlasdb/commit/b8807faa6e2c11bc960ca2bf1c8cd114a8011eb3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b8807faa6e2c11bc960ca2bf1c8cd114a8011eb3/commentsj/- }(login	ToemmscheidJboj+- MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jA- &https://api.github.com/users/ToemmschejO- https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj7- }(jT- 	ToemmschejV- Jboj+- MDQ6VXNlcjQzNjc1NDkwjX- 4https://avatars.githubusercontent.com/u/43675490?v=4jZ- h5jA- &https://api.github.com/users/ToemmschejO- https://github.com/Toemmschej]- 0https://api.github.com/users/Toemmsche/followersj_- =https://api.github.com/users/Toemmsche/following{/other_user}ja- 6https://api.github.com/users/Toemmsche/gists{/gist_id}jc- =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}je- 4https://api.github.com/users/Toemmsche/subscriptionsjg- +https://api.github.com/users/Toemmsche/orgsji- ,https://api.github.com/users/Toemmsche/reposjk- 7https://api.github.com/users/Toemmsche/events{/privacy}jm- 6https://api.github.com/users/Toemmsche/received_eventsjo- Userjq- uparents]}(j)- (ec90a7f0da664b77ed09bddf48a926210f3c8096jA- ^https://api.github.com/repos/palantir/atlasdb/commits/ec90a7f0da664b77ed09bddf48a926210f3c8096jO- Shttps://github.com/palantir/atlasdb/commit/ec90a7f0da664b77ed09bddf48a926210f3c8096uastats}(totalK	additionsK	deletionsKufiles]}(j)- (78e19eb62f6f7fa51d2f0773eefc63beef3978c7filenamectimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchEventIntegrationTest.javastatusmodifiedj- Kj- KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b8807faa6e2c11bc960ca2bf1c8cd114a8011eb3/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b8807faa6e2c11bc960ca2bf1c8cd114a8011eb3/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.java?ref=b8807faa6e2c11bc960ca2bf1c8cd114a8011eb3patchX  @@ -655,15 +655,19 @@ private static Map<TableReference, Map<Cell, Optional<ChangeMetadata>>> generate
         Set<Cell> tableTwoCells = chosenCells.stream()
                 .filter(cell -> random.nextBoolean() && !tableOneCells.contains(cell))
                 .collect(Collectors.toUnmodifiableSet());
-
-        // Ensure unique rows to prevent commit from failing due to SERIALIZABLE conflict handler
-        Set<Cell> serializableTableCells = chosenCells.stream()
-                .filter(cell -> !tableOneCells.contains(cell) && !tableTwoCells.contains(cell))
-                .collect(Collectors.toUnmodifiableSet());
-        Set<Bytes> seenRows = new HashSet<>();
+        Set<Bytes> seenRowsForMetadata = new HashSet<>();
         Map<Cell, Optional<ChangeMetadata>> serializableTableCellsUniqueRows = KeyedStream.ofEntries(
-                        maybeAssociateMetadata(ImmutableSet.copyOf(serializableTableCells), random).entrySet().stream())
-                .filterKeys(cell -> seenRows.add(Bytes.from(cell.getRowName())))
+                        maybeAssociateMetadata(
+                                chosenCells.stream()
+                                        .filter(cell -> !tableOneCells.contains(cell) && !tableTwoCells.contains(cell))
+                                        .collect(Collectors.toUnmodifiableSet()),
+                                random)
+                                .entrySet()
+                                .stream())
+                // Ensure unique rows if metadata is present to prevent commit from failing due to SERIALIZABLE conflict
+                // handler
+                .filterEntries((cell, optMetadata) ->
+                        optMetadata.isEmpty() || seenRowsForMetadata.add(Bytes.from(cell.getRowName())))
                 .collectToMap();
         // For each cell, 50/50 split on whether it should have metadata
         return ImmutableMap.of(uau     (2c13e00245c1becb6c340b6717f2ba1e2e7a65d6}(sha(2c13e00245c1becb6c340b6717f2ba1e2e7a65d6node_idEC_kwDOAjP5fdoAKDJjMTNlMDAyNDVjMWJlY2I2YzM0MGI2NzE3ZjJiYTFlMmU3YTY1ZDYcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-04-07T17:21:59Zu	committer}(j- Patrick Koenigj- pkoenig10@gmail.comj- 2023-04-07T17:35:57Zumessage$Simplify sweep enabled configurationtree}(j- (62da6091815f8a20a7970b7a391fe088740c2b4burl`https://api.github.com/repos/palantir/atlasdb/git/trees/62da6091815f8a20a7970b7a391fe088740c2b4buj- bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2c13e00245c1becb6c340b6717f2ba1e2e7a65d6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAAhcAAAAHc3NoLXJzYQAAAAMBAAEAAAIBAOLBVI00yZaP7395xCyqzy
aD/kgGj5GS8qP2f4Q0hM5gFbEYaTLwKvZTgcFMKJEw/3tOlCyuFoQChwrZ+YjoX3ZcTdIs
QnoGeYlwKUGY4x3QXLvrURZtGaXWggfEc+UKHT3mnGXM9FpX9CSdpTopg7KhxDlx3/Jv90
zimWImFPxKFUSZrhVGqD8qAQibPTFDs+JhK0cqllhsvm0PR9PilTde++NKLCQUNrRJi2+f
BjLBjJMJshRwXkkM6J8hDvyjiLJz4Bg9hq+5QLnO1fYaetU7aP4bsCs6ix5pyD4WO6cr6T
SMCtJThNdHvOVuOaCCHBOQrdVGjbMH9lmW5FL5oMsTZ86p24rZOFD9ly44mMJWYGk6F81y
japNgWorhR0tSZMSZPVlisGQQsRnsqQidrVPe3IR4MTUsKx39CAutxgk6N+BseeByXKw+H
aBKmd75u/FU7IoxEbXX7EuDq2TCtUmujYXiY7SY4T0DQDjNpHq+vrEUsKyi5mbRTdNahvt
eFWJU5UIwO7Ao+HdsqfUjGN6zw2HSkiHEG3iOj5OY+byI/ykoYGMQ40w6w7shCt7XDbUXa
/kGqIyicthBGQ7Y4/TtquH5Ag2UPSlN9C0Rt/ZBolkTfoLz4wCtTMzd7hdixs5yuocVTn7
njhSYSXRyRbbVcF/q56x1NAAsVOe9epxAAAAA2dpdAAAAAAAAAAGc2hhNTEyAAACFAAAAA
xyc2Etc2hhMi01MTIAAAIAvC4eOFmbePNCbfvR3NkAFgvHnYMWmAddiSjbWR1on1erBpnC
jbYCCazh4r5cyt6o0CbQCkxW7GTjk8HinXWb84e25dooXQTbISh3npykZXmBU7/cHCjb5g
9naqVPWh1TQcJ/qGmIJiGGet3siY7/0zfiD+ftPYlyj8gggTGqRTfH0EjY4a0pumR06s1i
gmewKEuIHtfeQ14XJnO9eVQweYUonX3c4IFBNVO1NutWMr3+D3EXnblI7hutBNy2JCa9yY
GEJFoUHJI4zr1nUuC4tVMby/hDRh4pecTEhUcHXpCHmfgLsw7nePGM9QVapk6JiuAGgW2N
hXm9vBbUINlmpUErqr2VatX4ncFCE82+oWDDoIil8TXXA53JO6dUjYcpZDaVsXHSRaPyGo
Z0QRr8f7mUETYwereOR3qZniktD8B8czgDCOBWKfPie2UIgA+wTll3XvRf0BGlGJMAeKDI
T8RiL2mmW5KmnkvI76kHNYwtXeSW8tZzcZbatC73MPmNTjyJAAO9VRVYQSSnQC+NrHs5BD
kqz91XDoTzivai7NmUC30h7bAzT+LNW5Ojohaf7/PDaVVpwKAF9r1fwsY2Rv+IWhFfL+Cc
K3NMJrDD2bDaLCzJoi8avJcGmgLHQggAgL9NmCWNhu+YLCKWUyqFDLNiM6JS8rghPzkXdc
qOM7Q=
-----END SSH SIGNATURE-----payloadX  tree 62da6091815f8a20a7970b7a391fe088740c2b4b
parent f543584dc5a49d081d16f535500baff12f56075e
author Patrick Koenig <pkoenig10@gmail.com> 1680888119 -0700
committer Patrick Koenig <pkoenig10@gmail.com> 1680888957 -0700

Simplify sweep enabled configuration
uuj- ^https://api.github.com/repos/palantir/atlasdb/commits/2c13e00245c1becb6c340b6717f2ba1e2e7a65d6html_urlShttps://github.com/palantir/atlasdb/commit/2c13e00245c1becb6c340b6717f2ba1e2e7a65d6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2c13e00245c1becb6c340b6717f2ba1e2e7a65d6/commentsj- }(login	pkoenig10idJLvP j- MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5j- &https://api.github.com/users/pkoenig10j- https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminuj- }(j- 	pkoenig10j- JLvP j- MDQ6VXNlcjUyNzMxNjQ=j- 3https://avatars.githubusercontent.com/u/5273164?v=4j- h5j- &https://api.github.com/users/pkoenig10j- https://github.com/pkoenig10j- 0https://api.github.com/users/pkoenig10/followersj- =https://api.github.com/users/pkoenig10/following{/other_user}j- 6https://api.github.com/users/pkoenig10/gists{/gist_id}j- =https://api.github.com/users/pkoenig10/starred{/owner}{/repo}j- 4https://api.github.com/users/pkoenig10/subscriptionsj- +https://api.github.com/users/pkoenig10/orgsj- ,https://api.github.com/users/pkoenig10/reposj- 7https://api.github.com/users/pkoenig10/events{/privacy}j- 6https://api.github.com/users/pkoenig10/received_eventsj- Userj- uparents]}(j- (f543584dc5a49d081d16f535500baff12f56075ej- ^https://api.github.com/repos/palantir/atlasdb/commits/f543584dc5a49d081d16f535500baff12f56075ej- Shttps://github.com/palantir/atlasdb/commit/f543584dc5a49d081d16f535500baff12f56075euastats}(totalKЌ	additionsK	deletionsKufiles](}(j- (1f8d140f2fcd68b79edcbd2a6f52017316caa266filename^atlasdb-config/src/main/java/com/palantir/atlasdb/config/ShouldRunBackgroundSweepSupplier.javastatusremovedj. K j. K*changesK*blob_urlhttps://github.com/palantir/atlasdb/blob/f543584dc5a49d081d16f535500baff12f56075e/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f543584dc5a49d081d16f535500baff12f56075e/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.java?ref=f543584dc5a49d081d16f535500baff12f56075epatchX  @@ -1,42 +0,0 @@
-/*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.config;
-
-import java.util.function.BooleanSupplier;
-import java.util.function.Supplier;
-
-/**
- * Synthesises provided install and runtime configurations, and uses this to decide whether the background sweeper
- * should run. Specifically:
- *
- * <ul>
- *     <li>if the background sweeper has been explicitly enabled or disabled, use that setting;</li>
- *     <li>otherwise disable background sweep</li>
- * </ul>
- */
-public class ShouldRunBackgroundSweepSupplier implements BooleanSupplier {
-    private final Supplier<SweepConfig> runtimeConfigSupplier;
-
-    public ShouldRunBackgroundSweepSupplier(Supplier<SweepConfig> runtimeConfig) {
-        this.runtimeConfigSupplier = runtimeConfig;
-    }
-
-    @Override
-    public boolean getAsBoolean() {
-        return runtimeConfigSupplier.get().enabled().orElse(false);
-    }
-}u}(j- (8e383ff5530f7a77f005d2ff7e7e17df90fef15bj. Iatlasdb-config/src/main/java/com/palantir/atlasdb/config/SweepConfig.javaj
. modifiedj. Kj. Kj. Kj
. https://github.com/palantir/atlasdb/blob/2c13e00245c1becb6c340b6717f2ba1e2e7a65d6/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.javaj. https://github.com/palantir/atlasdb/raw/2c13e00245c1becb6c340b6717f2ba1e2e7a65d6/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.javaj. https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.java?ref=2c13e00245c1becb6c340b6717f2ba1e2e7a65d6j. X  @@ -34,7 +34,10 @@ public abstract class SweepConfig {
      * If unspecified, AtlasDB will decide whether to run the background sweeper or not. This may depend on factors
      * elsewhere in configuration.
      */
-    public abstract Optional<Boolean> enabled();
+    @Value.Default
+    public boolean enabled() {
+        return false;
+    }
 
     // TODO handle live reload
     /**u}(j- (aa4681a083cca5f305495dd3eecc051903b9a476j. Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javaj
. modifiedj. Kj. Kj. Kj
. https://github.com/palantir/atlasdb/blob/2c13e00245c1becb6c340b6717f2ba1e2e7a65d6/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj. https://github.com/palantir/atlasdb/raw/2c13e00245c1becb6c340b6717f2ba1e2e7a65d6/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj. https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=2c13e00245c1becb6c340b6717f2ba1e2e7a65d6j. Xt  @@ -40,7 +40,6 @@
 import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
 import com.palantir.atlasdb.config.ImmutableAtlasDbConfig;
 import com.palantir.atlasdb.config.ServerListConfig;
-import com.palantir.atlasdb.config.ShouldRunBackgroundSweepSupplier;
 import com.palantir.atlasdb.config.SweepConfig;
 import com.palantir.atlasdb.config.TimeLockClientConfig;
 import com.palantir.atlasdb.config.TimeLockRequestBatcherProviders;
@@ -848,8 +847,7 @@ private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess
         BackgroundSweeperImpl backgroundSweeper = BackgroundSweeperImpl.create(
                 metricsManager,
                 sweepBatchConfigSource,
-                new ShouldRunBackgroundSweepSupplier(
-                        () -> runtimeConfigSupplier.get().sweep())::getAsBoolean,
+                () -> runtimeConfigSupplier.get().sweep().enabled(),
                 () -> runtimeConfigSupplier.get().sweep().sweepThreads(),
                 () -> runtimeConfigSupplier.get().sweep().pauseMillis(),
                 () -> runtimeConfigSupplier.get().sweep().sweepPriorityOverrides(),u}(j- (5d339f0ca1b1d528743d2246718cc8b977604ba6j. Vatlasdb-config/src/test/java/com/palantir/atlasdb/config/AtlasDbRuntimeConfigTest.javaj
. modifiedj. K j. Kj. Kj
. https://github.com/palantir/atlasdb/blob/2c13e00245c1becb6c340b6717f2ba1e2e7a65d6/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.javaj. https://github.com/palantir/atlasdb/raw/2c13e00245c1becb6c340b6717f2ba1e2e7a65d6/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.javaj. https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.java?ref=2c13e00245c1becb6c340b6717f2ba1e2e7a65d6j. X  @@ -21,18 +21,6 @@
 import org.junit.Test;
 
 public class AtlasDbRuntimeConfigTest {
-    @Test
-    public void configDoesNotSpecifySweepByDefault() {
-        AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.defaultRuntimeConfig();
-        assertThat(config.sweep().enabled()).isEmpty();
-    }
-
-    @Test
-    public void configWithoutSweepHasSweepDisabled() {
-        AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.withSweepDisabled();
-        assertThat(config.sweep().enabled()).contains(false);
-    }
-
     @Test
     public void configWithoutSpecifyingStreamPersistenceConfigHasDefaultConfig() {
         AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.defaultRuntimeConfig();u}(j- (99709ed401e5f0d37ebfb9169ea783f5f6e19c95j. batlasdb-config/src/test/java/com/palantir/atlasdb/config/ShouldRunBackgroundSweepSupplierTest.javaj
. removedj. K j. Kfj. Kfj
. https://github.com/palantir/atlasdb/blob/f543584dc5a49d081d16f535500baff12f56075e/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.javaj. https://github.com/palantir/atlasdb/raw/f543584dc5a49d081d16f535500baff12f56075e/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.javaj. https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.java?ref=f543584dc5a49d081d16f535500baff12f56075ej. X]  @@ -1,102 +0,0 @@
-/*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.config;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
-
-import com.palantir.atlasdb.sweep.queue.config.ImmutableTargetedSweepRuntimeConfig;
-import com.palantir.atlasdb.sweep.queue.config.TargetedSweepRuntimeConfig;
-import java.util.function.Supplier;
-import org.junit.Test;
-
-public class ShouldRunBackgroundSweepSupplierTest {
-
-    private static final TargetedSweepRuntimeConfig TARGETED_SWEEP_ENABLED =
-            ImmutableTargetedSweepRuntimeConfig.builder().enabled(true).build();
-    private static final TargetedSweepRuntimeConfig TARGETED_SWEEP_DISABLED =
-            ImmutableTargetedSweepRuntimeConfig.builder().enabled(false).build();
-
-    private static final SweepConfig BACKGROUND_SWEEP_ENABLED =
-            ImmutableSweepConfig.builder().enabled(true).build();
-    private static final SweepConfig BACKGROUND_SWEEP_UNSET = SweepConfig.defaultSweepConfig();
-    private static final SweepConfig BACKGROUND_SWEEP_DISABLED = SweepConfig.disabled();
-
-    @Test
-    public void disableBackgroundSweepIfBackgroundSweepExplicitlyDisabled() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_DISABLED))
-                .isFalse();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_DISABLED))
-                .isFalse();
-    }
-
-    @Test
-    public void enableBackgroundSweepIfBackgroundSweepExplicitlyEnabled() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_ENABLED))
-                .isTrue();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED))
-                .isTrue();
-    }
-
-    @Test
-    public void disableBackgroundSweepIfNotSet() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET))
-                .isFalse();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET))
-                .isFalse();
-    }
-
-    // Mock assignment known to be safe
-    // Direct mock invocation is safe here as we're using it as a convenient way to create a supplier
-    @SuppressWarnings({"unchecked", "DirectInvocationOnMock"})
-    @Test
-    public void liveReload() {
-        Supplier<AtlasDbRuntimeConfig> runtimeConfigSupplier = mock(Supplier.class);
-        when(runtimeConfigSupplier.get())
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET))
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET))
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED));
-
-        ShouldRunBackgroundSweepSupplier supplier = new ShouldRunBackgroundSweepSupplier(
-                () -> runtimeConfigSupplier.get().sweep());
-
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET")
-                .isFalse();
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET")
-                .isFalse();
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED")
-                .isTrue();
-    }
-
-    private static boolean runBackgroundSweep(TargetedSweepRuntimeConfig tsRuntime, SweepConfig bgSweepConfig) {
-        return new ShouldRunBackgroundSweepSupplier(
-                        () -> createRuntimeConfig(tsRuntime, bgSweepConfig).sweep())
-                .getAsBoolean();
-    }
-
-    private static AtlasDbRuntimeConfig createRuntimeConfig(
-            TargetedSweepRuntimeConfig targetedSweepRuntimeConfig, SweepConfig backgroundSweepConfig) {
-        return ImmutableAtlasDbRuntimeConfig.builder()
-                .targetedSweep(targetedSweepRuntimeConfig)
-                .sweep(backgroundSweepConfig)
-                .build();
-    }
-}u}(j- (8998869ed08a7e30d96c016b7470e3e524faa8c5j. Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/BackgroundSweepThread.javaj
. modifiedj. Kj. K	j. Kj
. https://github.com/palantir/atlasdb/blob/2c13e00245c1becb6c340b6717f2ba1e2e7a65d6/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.javaj. https://github.com/palantir/atlasdb/raw/2c13e00245c1becb6c340b6717f2ba1e2e7a65d6/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.javaj. https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.java?ref=2c13e00245c1becb6c340b6717f2ba1e2e7a65d6j. XB  @@ -39,6 +39,8 @@
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.TimeUnit;
+import java.util.function.BooleanSupplier;
+import java.util.function.LongSupplier;
 import java.util.function.Supplier;
 
 public class BackgroundSweepThread implements Runnable {
@@ -49,8 +51,8 @@ public class BackgroundSweepThread implements Runnable {
     private final SweepOutcomeMetrics sweepOutcomeMetrics;
     private final SpecificTableSweeper specificTableSweeper;
     private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-    private final Supplier<Long> sweepPauseMillis;
-    private final Supplier<Boolean> isSweepEnabled;
+    private final LongSupplier sweepPauseMillis;
+    private final BooleanSupplier isSweepEnabled;
     private final Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig;
     private final NextTableToSweepProvider nextTableToSweepProvider;
     private final CountDownLatch shuttingDown;
@@ -64,8 +66,8 @@ public static BackgroundSweepThread createForTests(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper,
             MetricsManager metricsManager) {
@@ -86,8 +88,8 @@ public static BackgroundSweepThread createForTests(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper,
             SweepOutcomeMetrics sweepOutcomeMetrics,
@@ -190,7 +192,7 @@ private Duration getSleepDuration(Optional<SweepOutcome> maybeOutcome) {
         return maybeOutcome
                 .flatMap(outcome -> {
                     if (outcome == SweepOutcome.SUCCESS) {
-                        return Optional.of(Duration.ofMillis(sweepPauseMillis.get()));
+                        return Optional.of(Duration.ofMillis(sweepPauseMillis.getAsLong()));
                     } else if (outcome == SweepOutcome.NOTHING_TO_SWEEP) {
                         return Optional.of(getBackoffTimeWhenNothingToSweep());
                     } else {
@@ -202,7 +204,7 @@ private Duration getSleepDuration(Optional<SweepOutcome> maybeOutcome) {
 
     @VisibleForTesting
     Optional<SweepOutcome> checkConfigAndRunSweep(SingleLockService locks) throws InterruptedException {
-        if (isSweepEnabled.get()) {
+        if (isSweepEnabled.getAsBoolean()) {
             return Optional.of(grabLocksAndRun(locks));
         }
 
@@ -233,7 +235,7 @@ private SweepOutcome grabLocksAndRun(SingleLockService locks) throws Interrupted
     }
 
     private Duration getBackoffTimeWhenSweepHasNotRun() {
-        return Duration.ofMillis(sweepPauseMillis.get()).plusSeconds(1).multipliedBy(20); // 2 minutes by default
+        return Duration.ofMillis(sweepPauseMillis.getAsLong()).plusSeconds(1).multipliedBy(20); // 2 minutes by default
     }
 
     private Duration getBackoffTimeWhenNothingToSweep() {u}(j- (44bc31882603500ba427d3970ff3730e2b7b3a21j. Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/BackgroundSweeperImpl.javaj
. modifiedj. K
j. K
j. Kj
. https://github.com/palantir/atlasdb/blob/2c13e00245c1becb6c340b6717f2ba1e2e7a65d6/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.javaj. https://github.com/palantir/atlasdb/raw/2c13e00245c1becb6c340b6717f2ba1e2e7a65d6/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.javaj. https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.java?ref=2c13e00245c1becb6c340b6717f2ba1e2e7a65d6j. X  @@ -27,6 +27,9 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
+import java.util.function.BooleanSupplier;
+import java.util.function.IntSupplier;
+import java.util.function.LongSupplier;
 import java.util.function.Supplier;
 
 public final class BackgroundSweeperImpl implements BackgroundSweeper, AutoCloseable {
@@ -35,16 +38,16 @@ public final class BackgroundSweeperImpl implements BackgroundSweeper, AutoClose
     private static final long MAX_DAEMON_CLEAN_SHUTDOWN_TIME_MILLIS = 10_000;
 
     // Thread management
-    private final Supplier<Integer> sweepThreads;
+    private final IntSupplier sweepThreads;
     private Set<Thread> daemons;
     private final CountDownLatch shuttingDown = new CountDownLatch(1);
 
     // Shared between threads
     private final LockService lockService;
     private final NextTableToSweepProvider nextTableToSweepProvider;
     private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-    private final Supplier<Boolean> isSweepEnabled;
-    private final Supplier<Long> sweepPauseMillis;
+    private final BooleanSupplier isSweepEnabled;
+    private final LongSupplier sweepPauseMillis;
     private final Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig;
     private final SpecificTableSweeper specificTableSweeper;
     private final SweepOutcomeMetrics sweepOutcomeMetrics;
@@ -54,9 +57,9 @@ private BackgroundSweeperImpl(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Integer> sweepThreads,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            IntSupplier sweepThreads,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper) {
         this.sweepOutcomeMetrics = SweepOutcomeMetrics.registerLegacy(metricsManager);
@@ -73,9 +76,9 @@ private BackgroundSweeperImpl(
     public static BackgroundSweeperImpl create(
             MetricsManager metricsManager,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Integer> sweepThreads,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            IntSupplier sweepThreads,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper) {
         NextTableToSweepProvider nextTableToSweepProvider = NextTableToSweepProvider.create(
@@ -98,7 +101,7 @@ public static BackgroundSweeperImpl create(
     @Override
     public synchronized void runInBackground() {
         Preconditions.checkState(daemons == null);
-        int numThreads = sweepThreads.get();
+        int numThreads = sweepThreads.getAsInt();
         daemons = Sets.newHashSetWithExpectedSize(numThreads);
 
         for (int idx = 1; idx <= numThreads; idx++) {ueu(28a9fe0d309b2e08b8239066600a9f57af9c6eaf}(sha(28a9fe0d309b2e08b8239066600a9f57af9c6eafnode_idEC_kwDOAjP5fdoAKDI4YTlmZTBkMzA5YjJlMDhiODIzOTA2NjYwMGE5ZjU3YWY5YzZlYWYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-09T15:27:08Zu	committer}(jO. Jeremy KongjQ. jkong@palantir.comjS. 2023-06-09T15:27:08Zumessagecan cantree}(jG. (99cd0c6609763e1b293a2945ee46de67e8594922url`https://api.github.com/repos/palantir/atlasdb/git/trees/99cd0c6609763e1b293a2945ee46de67e8594922uj_. bhttps://api.github.com/repos/palantir/atlasdb/git/commits/28a9fe0d309b2e08b8239066600a9f57af9c6eaf
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSDRMwACgkQTLdFKain
zjy+oQgAumHHqP93QWOh3wEiUY2cZKLMvvyIQOZAB0DVf/B7mR3k2/CDGIN2adH2
0ahzmOXmMfzoDQg4aXfkQAwdxUnlHypmLUExyA0bjqtUpkBqZediipk2Ipu5xpUd
+xqPgn7u10Hq1tfnMtoB9LZwJONb+IepWr2v2W4ROcs2m7fFodoLijKeHLMMcjmS
/NRPOo3KRWGJ9NV/bCwa5+pyn8OpyLcpPxgD7NvdQYElaH6uH2aKFzn+AP1ug7a1
jEKsCFX4TlEgctvw0US+2ViTt1xwbx6RtBM5J7cKzHmO23Jo6W60zjKS+f2Ofs+T
6MwHd1F2oWCV9WHr2Jj0kKWy+xEv3g==
=tJ3c
-----END PGP SIGNATURE-----payloadtree 99cd0c6609763e1b293a2945ee46de67e8594922
parent bad0bfc1628af6e4b938426e5fb3b44d71e9fdeb
author Jeremy Kong <jkong@palantir.com> 1686324428 +0100
committer Jeremy Kong <jkong@palantir.com> 1686324428 +0100

can can
uuj_. ^https://api.github.com/repos/palantir/atlasdb/commits/28a9fe0d309b2e08b8239066600a9f57af9c6eafhtml_urlShttps://github.com/palantir/atlasdb/commit/28a9fe0d309b2e08b8239066600a9f57af9c6eafcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/28a9fe0d309b2e08b8239066600a9f57af9c6eaf/commentsjM. }(login
jeremyk-91idJZ jI. MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j_. 'https://api.github.com/users/jeremyk-91jm. https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujU. }(jr. 
jeremyk-91jt. JZ jI. MDQ6VXNlcjU5NTU1MTA=jv. 3https://avatars.githubusercontent.com/u/5955510?v=4jx. h5j_. 'https://api.github.com/users/jeremyk-91jm. https://github.com/jeremyk-91j{. 1https://api.github.com/users/jeremyk-91/followersj}. >https://api.github.com/users/jeremyk-91/following{/other_user}j. 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j. >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j. 5https://api.github.com/users/jeremyk-91/subscriptionsj. ,https://api.github.com/users/jeremyk-91/orgsj. -https://api.github.com/users/jeremyk-91/reposj. 8https://api.github.com/users/jeremyk-91/events{/privacy}j. 7https://api.github.com/users/jeremyk-91/received_eventsj. Userj. uparents]}(jG. (bad0bfc1628af6e4b938426e5fb3b44d71e9fdebj_. ^https://api.github.com/repos/palantir/atlasdb/commits/bad0bfc1628af6e4b938426e5fb3b44d71e9fdebjm. Shttps://github.com/palantir/atlasdb/commit/bad0bfc1628af6e4b938426e5fb3b44d71e9fdebuastats}(totalK	additionsK 	deletionsKufiles]}(jG. (b2c905aecbadb5eff96bc5dbc26f890c72dbd00cfilenameatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javastatusmodifiedj. K j. KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/28a9fe0d309b2e08b8239066600a9f57af9c6eaf/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/28a9fe0d309b2e08b8239066600a9f57af9c6eaf/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javacontents_urlX  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=28a9fe0d309b2e08b8239066600a9f57af9c6eafpatchX!
  @@ -20,19 +20,13 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 
 import com.google.common.collect.ImmutableList;
-<<<<<<< HEAD
-=======
 import com.google.common.collect.ImmutableSet;
->>>>>>> origin/develop
 import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-<<<<<<< HEAD
-=======
 import java.util.List;
->>>>>>> origin/develop
 import org.junit.Test;
 
 public class WitnessedRowColumnRangeReadTransactionActionTest {
@@ -52,10 +46,6 @@ public void canCreateWitness() {
 
     @Test
     public void cannotCreateWitnessWithDuplicateColumns() {
-<<<<<<< HEAD
-        assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))
-=======
         List<ColumnValue> columnsAndValues = ImmutableList.of(
                 ColumnValue.of(1, 5),
                 ColumnValue.of(5, 1),
@@ -65,7 +55,6 @@ public void cannotCreateWitnessWithDuplicateColumns() {
 
         assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
                         .addAllColumnsAndValues(columnsAndValues)
->>>>>>> origin/develop
                         .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                 .table("foo")
                                 .row(1)
@@ -74,18 +63,9 @@ public void cannotCreateWitnessWithDuplicateColumns() {
                                 .build())
                         .build())
                 .isInstanceOf(SafeIllegalStateException.class)
-<<<<<<< HEAD
-                .hasMessageContaining("Duplicate column in columnsAndValues")
-                .hasExactlyArgs(
-                        SafeArg.of("duplicatedColumn", 1),
-                        SafeArg.of(
-                                "columnsAndValues",
-                                ImmutableList.of(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))));
-=======
                 .hasMessageContaining("Duplicate columns in columnsAndValues")
                 .hasExactlyArgs(
                         SafeArg.of("duplicateColumns", ImmutableSet.of(1, 5)),
                         SafeArg.of("columnsAndValues", columnsAndValues));
->>>>>>> origin/develop
     }
 }uau(a1dfcfa9c4a558ac8283ad223ee3edcc06d8937a}(sha(a1dfcfa9c4a558ac8283ad223ee3edcc06d8937anode_idEC_kwDOAjP5fdoAKGExZGZjZmE5YzRhNTU4YWM4MjgzYWQyMjNlZTNlZGNjMDZkODkzN2Ecommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-08-16T13:33:26Zu	committer}(j. David Schlosnaglej. davids@palantir.comj. 2023-08-16T13:33:26Zumessage+Fix GuardedByChecker in InterruptibleFuturetree}(j. (51790e6ba33751ef5c700133865b8c0a0de9fc7aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/51790e6ba33751ef5c700133865b8c0a0de9fc7auj. bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a1dfcfa9c4a558ac8283ad223ee3edcc06d8937a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmTc0CYACgkQR9hsJ74Q
0l/4sgf+N0moWlGQ+zSs1bD1MSsiXc2LiThr81BH7390qkCXILyqyfLZFz2qubIf
ts5UlOw9GjC46WYVo2QmaCRshB3TJbFCHbzRJyPZlYR7eKvPjmTvOWw1iDwPAosV
8U34Tc4ep6IEeWy4bDSSw0fv/qqwJnZgwee3H8cOwZhESUWeMxpkzf1CMVQZtdsF
05TYWqMoIwYLPf6+xFNyds5yOj08BFCs5BVq2wtQgDITPSln6Z1vm6QDDeq3SDq0
DnyP9qyPBLHXujCWG8dxjeqip3gdBSr3UYpu99q3vanVK4Ek8TBvbnJMFrQw/IF9
jcN66ok6FQn/4hZZKkO8dnWfGzLQ1A==
=kKEx
-----END PGP SIGNATURE-----payloadX  tree 51790e6ba33751ef5c700133865b8c0a0de9fc7a
parent c7100836fe4d519d2e44e89f709787c791452fe0
author David Schlosnagle <davids@palantir.com> 1692192806 -0400
committer David Schlosnagle <davids@palantir.com> 1692192806 -0400

Fix GuardedByChecker in InterruptibleFuture
uuj. ^https://api.github.com/repos/palantir/atlasdb/commits/a1dfcfa9c4a558ac8283ad223ee3edcc06d8937ahtml_urlShttps://github.com/palantir/atlasdb/commit/a1dfcfa9c4a558ac8283ad223ee3edcc06d8937acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a1dfcfa9c4a558ac8283ad223ee3edcc06d8937a/commentsj. }(loginschlosnaidMBj. MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j. %https://api.github.com/users/schlosnaj. https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj. }(j. schlosnaj. MBj. MDQ6VXNlcjU0NTk0j. 1https://avatars.githubusercontent.com/u/54594?v=4j. h5j. %https://api.github.com/users/schlosnaj. https://github.com/schlosnaj. /https://api.github.com/users/schlosna/followersj. <https://api.github.com/users/schlosna/following{/other_user}j. 5https://api.github.com/users/schlosna/gists{/gist_id}j. <https://api.github.com/users/schlosna/starred{/owner}{/repo}j. 3https://api.github.com/users/schlosna/subscriptionsj. *https://api.github.com/users/schlosna/orgsj. +https://api.github.com/users/schlosna/reposj / 6https://api.github.com/users/schlosna/events{/privacy}j/ 5https://api.github.com/users/schlosna/received_eventsj/ Userj/ uparents]}(j. (c7100836fe4d519d2e44e89f709787c791452fe0j. ^https://api.github.com/repos/palantir/atlasdb/commits/c7100836fe4d519d2e44e89f709787c791452fe0j. Shttps://github.com/palantir/atlasdb/commit/c7100836fe4d519d2e44e89f709787c791452fe0uastats}(totalK6	additionsK#	deletionsKufiles]}(j. (79fc6f57f52577003d9eb7cf13845dc21de63949filenameUatlasdb-commons/src/main/java/com/palantir/common/concurrent/InterruptibleFuture.javastatusmodifiedj / K#j!/ KchangesK6blob_urlhttps://github.com/palantir/atlasdb/blob/a1dfcfa9c4a558ac8283ad223ee3edcc06d8937a/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FInterruptibleFuture.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a1dfcfa9c4a558ac8283ad223ee3edcc06d8937a/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FInterruptibleFuture.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FInterruptibleFuture.java?ref=a1dfcfa9c4a558ac8283ad223ee3edcc06d8937apatchX]  @@ -53,16 +53,16 @@ private enum State {
     private final Lock lock = new ReentrantLock(false);
     private final Condition condition = lock.newCondition();
 
-    @GuardedBy(value = "lock")
+    @GuardedBy("lock")
     private V returnValue;
 
-    @GuardedBy(value = "lock")
+    @GuardedBy("lock")
     private Throwable executionException;
 
-    @GuardedBy(value = "lock")
+    @GuardedBy("lock")
     private volatile CancellationException cancellationException;
 
-    @GuardedBy(value = "lock")
+    @GuardedBy("lock")
     private volatile State state = State.WAITING_TO_RUN;
 
     private final FutureTask<?> futureTask = new FutureTask<Void>(
@@ -113,10 +113,14 @@ public final boolean cancel(boolean mayInterruptIfRunning) {
         return futureTask.cancel(mayInterruptIfRunning);
     }
 
-    @SuppressWarnings("GuardedByChecker")
     protected void noteFinished() {
-        state = State.COMPLETED;
-        condition.signalAll();
+        lock.lock();
+        try {
+            state = State.COMPLETED;
+            condition.signalAll();
+        } finally {
+            lock.unlock();
+        }
     }
 
     /**
@@ -157,31 +161,43 @@ public final V get(long timeout, TimeUnit unit)
         }
     }
 
-    @SuppressWarnings("GuardedByChecker")
     private V getReturnValue() throws ExecutionException, CancellationException {
-        if (cancellationException != null) {
-            throw Throwables.chain(
-                    new CancellationException("This task was canceled before it ever ran."), cancellationException);
-        }
-        if (executionException != null) {
-            throw new ExecutionException(executionException);
+        lock.lock();
+        try {
+            if (cancellationException != null) {
+                throw Throwables.chain(
+                        new CancellationException("This task was canceled before it ever ran."), cancellationException);
+            }
+            if (executionException != null) {
+                throw new ExecutionException(executionException);
+            }
+            return returnValue;
+        } finally {
+            lock.unlock();
         }
-        return returnValue;
     }
 
     /**
      * @return true if and only if the task was canceled before it ever executed
      */
     @Override
-    @SuppressWarnings("GuardedByChecker")
     public final boolean isCancelled() {
-        return cancellationException != null;
+        lock.lock();
+        try {
+            return cancellationException != null;
+        } finally {
+            lock.unlock();
+        }
     }
 
     @Override
-    @SuppressWarnings("GuardedByChecker")
     public final boolean isDone() {
-        return state == State.COMPLETED;
+        lock.lock();
+        try {
+            return state == State.COMPLETED;
+        } finally {
+            lock.unlock();
+        }
     }
 
     @Overrideuau(45b43c7516593ef134835177e8f48cbe531f211e}(sha(45b43c7516593ef134835177e8f48cbe531f211enode_idEC_kwDOAjP5fdoAKDQ1YjQzYzc1MTY1OTNlZjEzNDgzNTE3N2U4ZjQ4Y2JlNTMxZjIxMWUcommit}(author}(nameAndrew Svobodaemailsvoboda.andrew@gmail.comdate2023-06-14T10:40:42Zu	committer}(j=/ GitHubj?/ noreply@github.comjA/ 2023-06-14T10:40:42Zumessage/always run gradlew with --scan in tests (#6544)tree}(j5/ (6cc8b5980f5a962360369304df8192c2c60f0b19url`https://api.github.com/repos/palantir/atlasdb/git/trees/6cc8b5980f5a962360369304df8192c2c60f0b19ujM/ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/45b43c7516593ef134835177e8f48cbe531f211e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkiZkqCRBK7hj4Ov3rIwAAkesIAD1DjiJ6P0NTYeRKR/Oc7TaI
piPoAhBbBZmDoYxo3NdOp5pMQCK4g2AKY0NE9gt/l/O4DlvcUIQ+TVXmAznEJH27
Ke56N0+FddCONjHERG4Gs8DvvX9yysyqq6UOsO+vQwewlJOiyVWU6O0BfBGnWzIX
cqtv4R7HaoSa+AOKj0czZFZDFw4prwGxMZavVZL/vyZ07n2vb0s/NHug/VG60yM7
CxrmrDWOnLvR8QfpQ7QkyBqFn9O3bFsnCI9W04i6y9VRiGqgdFVZc66GtTipaEZx
bkI3nXXUP/CNpaZnomBEuRoolPcwmZ1gwFREHlJgLs6z+ksgqLi1P+i5KkXoMac=
=tRUO
-----END PGP SIGNATURE-----
payloadX
  tree 6cc8b5980f5a962360369304df8192c2c60f0b19
parent 70e74bbb05e17200e72cd2f193c178fdaea96512
author Andrew Svoboda <svoboda.andrew@gmail.com> 1686739242 +0100
committer GitHub <noreply@github.com> 1686739242 +0000

always run gradlew with --scan in tests (#6544)

 uujM/ ^https://api.github.com/repos/palantir/atlasdb/commits/45b43c7516593ef134835177e8f48cbe531f211ehtml_urlShttps://github.com/palantir/atlasdb/commit/45b43c7516593ef134835177e8f48cbe531f211ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/45b43c7516593ef134835177e8f48cbe531f211e/commentsj;/ }(loginasvobodaidJ$ j7/ MDQ6VXNlcjEzMTk5NDQ=
avatar_url3https://avatars.githubusercontent.com/u/1319944?v=4gravatar_idh5jM/ %https://api.github.com/users/asvobodaj[/ https://github.com/asvoboda
followers_url/https://api.github.com/users/asvoboda/followers
following_url<https://api.github.com/users/asvoboda/following{/other_user}	gists_url5https://api.github.com/users/asvoboda/gists{/gist_id}starred_url<https://api.github.com/users/asvoboda/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/asvoboda/subscriptionsorganizations_url*https://api.github.com/users/asvoboda/orgs	repos_url+https://api.github.com/users/asvoboda/repos
events_url6https://api.github.com/users/asvoboda/events{/privacy}received_events_url5https://api.github.com/users/asvoboda/received_eventstypeUser
site_adminujC/ }(j`/ web-flowjb/ J/j7/ MDQ6VXNlcjE5ODY0NDQ3jd/ 4https://avatars.githubusercontent.com/u/19864447?v=4jf/ h5jM/ %https://api.github.com/users/web-flowj[/ https://github.com/web-flowji/ /https://api.github.com/users/web-flow/followersjk/ <https://api.github.com/users/web-flow/following{/other_user}jm/ 5https://api.github.com/users/web-flow/gists{/gist_id}jo/ <https://api.github.com/users/web-flow/starred{/owner}{/repo}jq/ 3https://api.github.com/users/web-flow/subscriptionsjs/ *https://api.github.com/users/web-flow/orgsju/ +https://api.github.com/users/web-flow/reposjw/ 6https://api.github.com/users/web-flow/events{/privacy}jy/ 5https://api.github.com/users/web-flow/received_eventsj{/ Userj}/ uparents]}(j5/ (70e74bbb05e17200e72cd2f193c178fdaea96512jM/ ^https://api.github.com/repos/palantir/atlasdb/commits/70e74bbb05e17200e72cd2f193c178fdaea96512j[/ Shttps://github.com/palantir/atlasdb/commit/70e74bbb05e17200e72cd2f193c178fdaea96512uastats}(totalK	additionsK	deletionsKufiles]}(j5/ (fb11a351d6654b7a0cc3a195858b7025099f9539filename%scripts/circle-ci/run-circle-tests.shstatusmodifiedj/ Kj/ KchangesKblob_url{https://github.com/palantir/atlasdb/blob/45b43c7516593ef134835177e8f48cbe531f211e/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/45b43c7516593ef134835177e8f48cbe531f211e/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=45b43c7516593ef134835177e8f48cbe531f211epatchX  @@ -2,7 +2,7 @@
 
 set -x
 
-BASE_GRADLE_ARGS="--profile"
+BASE_GRADLE_ARGS="--scan --profile --continue"
 
 function checkDocsBuild {
      pyenv install 3.5.4
@@ -82,7 +82,7 @@ elif [ "$test_suite_index" -eq "3" ]; then
     BASE_GRADLE_ARGS+=" --scan --parallel"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
-    BASE_GRADLE_ARGS+=" --scan --parallel"
+    BASE_GRADLE_ARGS+=" --parallel"
 fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64muau(aa7e0b9ea37c14cdf63b62df9ec19d9661fa04b0}(sha(aa7e0b9ea37c14cdf63b62df9ec19d9661fa04b0node_idEC_kwDOAjP5fdoAKGFhN2UwYjllYTM3YzE0Y2RmNjNiNjJkZjllYzE5ZDk2NjFmYTA0YjAcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-10T18:11:08Zu	committer}(j/ 
Ahmed Alouanej/ aalouane@palantir.comj/ 2023-05-10T18:11:08Zumessageput first arg to script in vartree}(j/ (ae5a12dbc828c509f98367894b050fcf977121d7url`https://api.github.com/repos/palantir/atlasdb/git/trees/ae5a12dbc828c509f98367894b050fcf977121d7uj/ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/aa7e0b9ea37c14cdf63b62df9ec19d9661fa04b0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRb3j0ACgkQPlMHVIT1
yhqvPggAiwb2owktdfadnZWsmAiyIzmPSQoxwYM+PhPRKbX1EMfsK1su7EIgShCw
eW3YdeVjsxETszVc2wx2tJO1Db5j9OH7c0KrVi6BK02c7y2ScIFt7nHXJcM+mCmh
na7nLT7x87YWgMY9Nb/c6dGX3gh4qBbdoUCkIw2iVkgxGINk/NLWi/zyagw00jgM
R38GqSeIzS6a2g3CXURBpnmgYyhW6oEhf6oB3CZexRfPRyAbUNEMZisi+8q/+Nne
kY8ERTezPmK286XrWGgQssislmal9p3VV9V5ChvcIq6T+uRFF7bL/Xd48JG7GmFn
zvffn9XniwLkh4kRKxA8D3Z0wZHfDQ==
=CQ4J
-----END PGP SIGNATURE-----payloadtree ae5a12dbc828c509f98367894b050fcf977121d7
parent 40b90784b46c7a9555697659d7ea9b29b0ed4d25
author Ahmed Alouane <aalouane@palantir.com> 1683742268 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1683742268 +0100

put first arg to script in var
uuj/ ^https://api.github.com/repos/palantir/atlasdb/commits/aa7e0b9ea37c14cdf63b62df9ec19d9661fa04b0html_urlShttps://github.com/palantir/atlasdb/commit/aa7e0b9ea37c14cdf63b62df9ec19d9661fa04b0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/aa7e0b9ea37c14cdf63b62df9ec19d9661fa04b0/commentsj/ }(loginergo14idJj/ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j/ #https://api.github.com/users/ergo14j/ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj/ }(j/ ergo14j/ Jj/ MDQ6VXNlcjMwOTAzNzM2j/ 4https://avatars.githubusercontent.com/u/30903736?v=4j/ h5j/ #https://api.github.com/users/ergo14j/ https://github.com/ergo14j/ -https://api.github.com/users/ergo14/followersj/ :https://api.github.com/users/ergo14/following{/other_user}j/ 3https://api.github.com/users/ergo14/gists{/gist_id}j/ :https://api.github.com/users/ergo14/starred{/owner}{/repo}j/ 1https://api.github.com/users/ergo14/subscriptionsj/ (https://api.github.com/users/ergo14/orgsj/ )https://api.github.com/users/ergo14/reposj/ 4https://api.github.com/users/ergo14/events{/privacy}j/ 3https://api.github.com/users/ergo14/received_eventsj/ Userj/ uparents]}(j/ (40b90784b46c7a9555697659d7ea9b29b0ed4d25j/ ^https://api.github.com/repos/palantir/atlasdb/commits/40b90784b46c7a9555697659d7ea9b29b0ed4d25j/ Shttps://github.com/palantir/atlasdb/commit/40b90784b46c7a9555697659d7ea9b29b0ed4d25uastats}(totalK
	additionsK	deletionsKufiles]}(j/ (dd376117c068272bff8de388549f0b737167064afilename%scripts/circle-ci/run-circle-tests.shstatusmodifiedj0 Kj0 KchangesK
blob_url{https://github.com/palantir/atlasdb/blob/aa7e0b9ea37c14cdf63b62df9ec19d9661fa04b0/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/aa7e0b9ea37c14cdf63b62df9ec19d9661fa04b0/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=aa7e0b9ea37c14cdf63b62df9ec19d9661fa04b0patchX^  @@ -50,16 +50,18 @@ do
     CONTAINER_0_EXCLUDE_ARGS="$CONTAINER_0_EXCLUDE_ARGS -x $task"
 done
 
+test_suite_index=$1
+
 # Short circuit the build if it's docs only
 if ./scripts/circle-ci/check-only-docs-changes.sh; then
-    if [ $1 -eq 0 ]; then
+    if [ "$test_suite_index" -eq 0 ]; then
         checkDocsBuild
         exit $?
     fi
     exit 0
 fi
 
-if [ $1 -eq 9 ] || [ $1 -eq 10 ]; then
+if [ "$test_suite_index" -eq 9 ] || [ "$test_suite_index" -eq 10 ]; then
     printenv DOCKERHUB_PASSWORD | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
     # The oracle container is very large and takes a long time to pull.
     # If this image is not pulled here, the circle build usually times out.
@@ -71,7 +73,7 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
 # External builds have a 16gb limit.
-if [ "$1" -eq "13" ]; then
+if [ "$test_suite_index" -eq "13" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
@@ -80,7 +82,7 @@ fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64m
 
-case $1 in
+case "$test_suite_index" in
     0) ./gradlew $BASE_GRADLE_ARGS check $CONTAINER_0_EXCLUDE_ARGS -x :atlasdb-jepsen-tests:check;;
     1) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_1[@]} ;;
     2) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_2[@]} -x :atlasdb-ete-tests:longTest -x atlasdb-ete-tests:dbkvsTest -x :atlasdb-ete-tests:timeLockMigrationTest ;;uau(ffc7668bf235a48d79c31f980f68a5cddf2e9090}(sha(ffc7668bf235a48d79c31f980f68a5cddf2e9090node_idEC_kwDOAjP5fdoAKGZmYzc2NjhiZjIzNWE0OGQ3OWMzMWY5ODBmNjhhNWNkZGYyZTkwOTAcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-15T14:31:45Zu	committer}(j+0 svc-autoreleasej-0 -pd-foundry-infrastructure-notify@palantir.comj/0 2023-05-15T14:31:45Zumessage"Autorelease 0.854.0-rc5

[skip ci]tree}(j#0 (d2f7a5ff202e9c8be14ac83d785cce0cc99c6455url`https://api.github.com/repos/palantir/atlasdb/git/trees/d2f7a5ff202e9c8be14ac83d785cce0cc99c6455uj;0 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ffc7668bf235a48d79c31f980f68a5cddf2e9090
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRiQlIACgkQhbrR8ip7mDAdbwEAml2qKKEbbR4uEcFy+Wg0CTnP
PgVNnN2EfUUPT9S8wAYBALdEP+8ljTVaNBrOTSkopxKfJY85lIZI9mpRxpvtvIoT
=NGjR
-----END PGP SIGNATURE-----
payloadX(  tree d2f7a5ff202e9c8be14ac83d785cce0cc99c6455
parent 0fdf162aa062a21ae0c2327997a53ef91c7383ed
author aalouane <30903736+ergo14@users.noreply.github.com> 1684161105 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684161105 +0000

Autorelease 0.854.0-rc5

[skip ci]uuj;0 ^https://api.github.com/repos/palantir/atlasdb/commits/ffc7668bf235a48d79c31f980f68a5cddf2e9090html_urlShttps://github.com/palantir/atlasdb/commit/ffc7668bf235a48d79c31f980f68a5cddf2e9090comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ffc7668bf235a48d79c31f980f68a5cddf2e9090/commentsj)0 }(loginergo14idJj%0 MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j;0 #https://api.github.com/users/ergo14jI0 https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj10 }(jN0 svc-autoreleasejP0 J(j%0 MDQ6VXNlcjUxNzE4MzQ2jR0 4https://avatars.githubusercontent.com/u/51718346?v=4jT0 h5j;0 ,https://api.github.com/users/svc-autoreleasejI0 "https://github.com/svc-autoreleasejW0 6https://api.github.com/users/svc-autorelease/followersjY0 Chttps://api.github.com/users/svc-autorelease/following{/other_user}j[0 <https://api.github.com/users/svc-autorelease/gists{/gist_id}j]0 Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j_0 :https://api.github.com/users/svc-autorelease/subscriptionsja0 1https://api.github.com/users/svc-autorelease/orgsjc0 2https://api.github.com/users/svc-autorelease/reposje0 =https://api.github.com/users/svc-autorelease/events{/privacy}jg0 <https://api.github.com/users/svc-autorelease/received_eventsji0 Userjk0 uparents]}(j#0 (0fdf162aa062a21ae0c2327997a53ef91c7383edj;0 ^https://api.github.com/repos/palantir/atlasdb/commits/0fdf162aa062a21ae0c2327997a53ef91c7383edjI0 Shttps://github.com/palantir/atlasdb/commit/0fdf162aa062a21ae0c2327997a53ef91c7383eduastats}(totalK 	additionsK 	deletionsK ufiles]u(6e4a93441f8d84038498a7ec94ef654240d006fa}(sha(6e4a93441f8d84038498a7ec94ef654240d006fanode_idEC_kwDOAjP5fdoAKDZlNGE5MzQ0MWY4ZDg0MDM4NDk4YTdlYzk0ZWY2NTQyNDBkMDA2ZmEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-11T10:43:16Zu	committer}(j0 Jeremy Kongj0 jkong@palantir.comj0 2023-05-11T10:43:16ZumessageKMerge remote-tracking branch 'origin/develop' into skramer/buggify-timelocktree}(j0 (6a2ccc8205ce4c8db5acf609737079633053e895url`https://api.github.com/repos/palantir/atlasdb/git/trees/6a2ccc8205ce4c8db5acf609737079633053e895uj0 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6e4a93441f8d84038498a7ec94ef654240d006fa
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRcxsYACgkQTLdFKain
zjxlmwgAysC6yJEQq2uoHkF5WMqj3FIzOVdM5bKsY21GYi6Jve0lBRJQwJkoJmzg
ACSWJDcPtI1lToSu7cxE5t2Hmdw3PHDz0KMserY2SLwwnLLUajfl9BSQq13UMbmN
P320ixcKR21u3bd2Arf58i7cCeFvw9rmbLiCWfGsxKXAxcNxxOMb2X1JWk5y1cy9
I2LPuBOgMLticzCmgR60xWmDD2kjVGD6CrPxIEk50hxXgGxmscz+/Ca0ZKBiamlL
InRIdfZxOBVy4yWroOAXj1JvxS6R04qqlME1ElmGUmnVb2ws5NJJi0vwuNHCelMA
S4PMBsjyAbYQHIhM3vCKaVmNb+1xAg==
=7Jls
-----END PGP SIGNATURE-----payloadXP  tree 6a2ccc8205ce4c8db5acf609737079633053e895
parent c2e1a5d113b002cdb8d54775be01f0a2bd7526e5
parent 50e05491daed01d64ec4867ce2176b153629246b
author Jeremy Kong <jkong@palantir.com> 1683801796 +0100
committer Jeremy Kong <jkong@palantir.com> 1683801796 +0100

Merge remote-tracking branch 'origin/develop' into skramer/buggify-timelock
uuj0 ^https://api.github.com/repos/palantir/atlasdb/commits/6e4a93441f8d84038498a7ec94ef654240d006fahtml_urlShttps://github.com/palantir/atlasdb/commit/6e4a93441f8d84038498a7ec94ef654240d006facomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6e4a93441f8d84038498a7ec94ef654240d006fa/commentsj0 }(login
jeremyk-91idJZ j0 MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j0 'https://api.github.com/users/jeremyk-91j0 https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj0 }(j0 
jeremyk-91j0 JZ j0 MDQ6VXNlcjU5NTU1MTA=j0 3https://avatars.githubusercontent.com/u/5955510?v=4j0 h5j0 'https://api.github.com/users/jeremyk-91j0 https://github.com/jeremyk-91j0 1https://api.github.com/users/jeremyk-91/followersj0 >https://api.github.com/users/jeremyk-91/following{/other_user}j0 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j0 >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j0 5https://api.github.com/users/jeremyk-91/subscriptionsj0 ,https://api.github.com/users/jeremyk-91/orgsj0 -https://api.github.com/users/jeremyk-91/reposj0 8https://api.github.com/users/jeremyk-91/events{/privacy}j0 7https://api.github.com/users/jeremyk-91/received_eventsj0 Userj0 uparents](}(j0 (c2e1a5d113b002cdb8d54775be01f0a2bd7526e5j0 ^https://api.github.com/repos/palantir/atlasdb/commits/c2e1a5d113b002cdb8d54775be01f0a2bd7526e5j0 Shttps://github.com/palantir/atlasdb/commit/c2e1a5d113b002cdb8d54775be01f0a2bd7526e5u}(j0 (50e05491daed01d64ec4867ce2176b153629246bj0 ^https://api.github.com/repos/palantir/atlasdb/commits/50e05491daed01d64ec4867ce2176b153629246bj0 Shttps://github.com/palantir/atlasdb/commit/50e05491daed01d64ec4867ce2176b153629246buestats}(totalMd	additionsM	deletionsKufiles](}(j0 (d712c836408b8b983fda0502a1815c19270ae9e1filename.palantir/revapi.ymlstatusmodifiedj0 Kj0 K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=6e4a93441f8d84038498a7ec94ef654240d006fapatchX_  @@ -115,3 +115,9 @@ acceptedBreaks:
     - code: "java.class.removed"
       old: "interface com.palantir.atlasdb.transaction.api.expectations.ExpectationsAwareTransaction"
       justification: "moving out of API"
+  "0.824.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.removed"
+      old: "method java.util.concurrent.ExecutorService com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService::createThreadPoolWihtoutSpans(java.lang.String,\
+        \ int, int) @ com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl"
+      justification: "Protected method"u}(j0 (d8f732c3615aaed89bbf22d2dd57bf2198b25723j0 .policy.ymlj0 modifiedj0 Kj0 Kj0 Kj0 ]https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/.policy.ymlj0 \https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/.policy.ymlj 1 ohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X(  @@ -20,21 +20,21 @@ approval_rules:
       allow_contributor: false
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: two admins have approved
     options:
       allow_contributor: true
     requires:
       count: 2
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: changelog only and contributor approval
     options:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       only_changed_files:
         paths:
@@ -45,7 +45,7 @@ approval_rules:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       has_author_in:
         users: [ "svc-excavator-bot" ]u}(j0 (b4b3fdb6c8a3dbc046c441a7d9341e93b8857c14j0 Katlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/Buggify.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -22,6 +22,8 @@
  * downstream users of this class can easily swap out their {@link BuggifyFactory} to change the behavior of their
  * class, without having to change the implementation of their class. This is useful for tests, as we can force the
  * behavior of never running the provided runnable, or always running the provided runnable.
+ * <p>
+ * See https://apple.github.io/foundationdb/client-testing.html for more information.
  */
 public interface Buggify {
     /**u}(j0 (0ed48b1c56bc0efc8ac5be656900e3c3a38c67faj0 Ratlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/BuggifyFactory.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -18,7 +18,7 @@
 
 public interface BuggifyFactory {
     /**
-     * A Buggify instance that may or may not perform any actions.
+     * The probability of returning a buggify instance which performs actions.
      */
     Buggify maybe(double probability);
 }u}(j0 (c3bbf92469d211a6ab5bde05cefaaba784549d49j0 Zatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactory.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -20,17 +20,17 @@
 import com.palantir.atlasdb.buggify.api.Buggify;
 import com.palantir.atlasdb.buggify.api.BuggifyFactory;
 import java.security.SecureRandom;
-import java.util.function.Supplier;
+import java.util.function.DoubleSupplier;
 
 public final class DefaultBuggifyFactory implements BuggifyFactory {
     private static final SecureRandom SECURE_RANDOM = new SecureRandom();
     public static final BuggifyFactory INSTANCE = new DefaultBuggifyFactory();
 
-    private final Supplier<Double> probabilitySupplier;
+    private final DoubleSupplier doubleSupplier;
 
     @VisibleForTesting
-    DefaultBuggifyFactory(Supplier<Double> probabilitySupplier) {
-        this.probabilitySupplier = probabilitySupplier;
+    DefaultBuggifyFactory(DoubleSupplier doubleSupplier) {
+        this.doubleSupplier = doubleSupplier;
     }
 
     private DefaultBuggifyFactory() {
@@ -39,9 +39,9 @@ private DefaultBuggifyFactory() {
 
     @Override
     public Buggify maybe(double probability) {
-        if (probability <= probabilitySupplier.get()) {
-            return NoOpBuggify.INSTANCE;
+        if (doubleSupplier.getAsDouble() < probability) {
+            return DefaultBuggify.INSTANCE;
         }
-        return DefaultBuggify.INSTANCE;
+        return NoOpBuggify.INSTANCE;
     }
 }u8      }(j0 (a7db5aa15eb7d98f2bcc738671a8f30fdfb489adj0 ^atlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactoryTest.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X1  @@ -20,8 +20,7 @@
 
 import org.junit.Test;
 
-public final class DefaultBuggifyFactoryTest {
-
+public class DefaultBuggifyFactoryTest {
     @Test
     public void maybeReturnsDefaultWhenMaxProbability() {
         assertThat(DefaultBuggifyFactory.INSTANCE.maybe(1.0)).isSameAs(DefaultBuggify.INSTANCE);u}(j0 (28a8b18ae59b101e1489b1e086bbac7d63318767j0 Watlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyTest.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 @@ -22,7 +22,7 @@
 
 import org.junit.Test;
 
-public final class DefaultBuggifyTest {
+public class DefaultBuggifyTest {
     @Test
     public void runAlwaysExecutes() {
         Runnable runnable = mock(Runnable.class);u}(j0 (c6d5d05237311ecd06793772e3b673f5836c8896j0 Tatlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyTest.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 @@ -23,7 +23,7 @@
 
 import org.junit.Test;
 
-public final class NoOpBuggifyTest {
+public class NoOpBuggifyTest {
     @Test
     public void runNeverExecutes() {
         Runnable runnable = mock(Runnable.class);u}(j0 (69f581236b5f107c22a46408a061b07dd50fd1bcj0 iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X2  @@ -108,8 +108,6 @@
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
-import com.palantir.tracing.Tracers;
-import com.palantir.tritium.metrics.MetricRegistries;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import com.palantir.util.Pair;
 import com.palantir.util.paging.AbstractPagingIterable;
@@ -485,10 +483,7 @@ private static Supplier<ExecutorService> instrumentedFixedThreadPoolSupplier(
             int numberOfThriftHosts = serversConfig.numberOfThriftHosts();
             int corePoolSize = poolSize * numberOfThriftHosts;
             int maxPoolSize = maxConnectionBurstSize * numberOfThriftHosts;
-            return Tracers.wrap(MetricRegistries.instrument(
-                    registry,
-                    createThreadPoolWihtoutSpans("Atlas Cassandra KVS", corePoolSize, maxPoolSize),
-                    "Atlas Cassandra KVS"));
+            return createThreadPoolWithoutSpans("Atlas Cassandra KVS", corePoolSize, maxPoolSize);
         };
     }
 u}(j0 (a1974a0a70f2e9dc1483e8b6fcc59cc3a141917bj0 batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaj0 modifiedj0 K	j0 K	j0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X	  @@ -17,7 +17,6 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
-import com.google.common.collect.FluentIterable;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableRangeMap;
@@ -62,13 +61,13 @@
 import java.util.Comparator;
 import java.util.HashMap;
 import java.util.HashSet;
-import java.util.Iterator;
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
 import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Optional;
+import java.util.PrimitiveIterator.OfInt;
 import java.util.Random;
 import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
@@ -77,6 +76,7 @@
 import java.util.function.Predicate;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import java.util.stream.Stream;
 import org.apache.cassandra.thrift.EndpointDetails;
 import org.apache.cassandra.thrift.TokenRange;
@@ -306,16 +306,16 @@ private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) th
     }
 
     private int getKnownPort() throws UnknownHostException {
-        // explicitly not using streams due to allocation overhead
-        return onlyPort(FluentIterable.concat(
-                        FluentIterable.from(currentPools.keySet()).transform(CassandraServer::proxy),
-                        getServersSocketAddressesFromConfig())
-                .transform(InetSocketAddress::getPort));
+        // Avoid allocations and intermediate collection as this is on hot path
+        return only(Stream.concat(
+                        currentPools.keySet().stream().map(CassandraServer::proxy),
+                        getServersSocketAddressesFromConfig().stream())
+                .mapToInt(InetSocketAddress::getPort));
     }
 
     @VisibleForTesting
-    static int onlyPort(Iterable<? extends Integer> iterable) throws UnknownHostException {
-        Iterator<? extends Integer> iterator = iterable.iterator();
+    static int only(IntStream intStream) throws UnknownHostException {
+        OfInt iterator = intStream.iterator();
         if (!iterator.hasNext()) {
             throw new UnknownHostException("No single known port");
         }u}(j0 (ea93d4225293149bfc275c742ea245b6b263274fj0 fatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraServiceTest.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -33,7 +33,6 @@
 import com.palantir.refreshable.Refreshable;
 import java.net.InetSocketAddress;
 import java.net.UnknownHostException;
-import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.ThreadLocalRandom;
@@ -272,12 +271,10 @@ public void getRandomHostByActiveConnectionsReturnsDesiredHost() {
 
     @Test
     public void ports() throws Exception {
-        assertThat(CassandraService.onlyPort(List.of(1, 1, 1))).isEqualTo(1);
-        assertThat(IntStream.generate(() -> 4224).boxed().limit(15).collect(Collectors.toList()))
-                .hasSize(15)
-                .satisfies(cluster ->
-                        assertThat(CassandraService.onlyPort(cluster)).isEqualTo(4224));
-        assertThatThrownBy(() -> CassandraService.onlyPort(List.of(1, 2, 1)))
+        assertThat(CassandraService.only(IntStream.of(1, 1, 1))).isEqualTo(1);
+        assertThat(CassandraService.only(IntStream.generate(() -> 4224).limit(15)))
+                .isEqualTo(4224);
+        assertThatThrownBy(() -> CassandraService.only(IntStream.of(1, 2, 1)))
                 .isInstanceOf(UnknownHostException.class)
                 .hasMessageContaining("No single known port");
     }u}(j0 (605212243716ab96bbbde3a8b0fd9ec3aa421b48j0 \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/AbstractKeyValueService.javaj0 modifiedj0 K	j0 K
j0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X^	  @@ -70,38 +70,37 @@ public AbstractKeyValueService(ExecutorService executor) {
     /**
      * Creates a fixed thread pool.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param corePoolSize size of the core pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createFixedThreadPool(String threadNamePrefix, int corePoolSize) {
-        return createThreadPool(threadNamePrefix, corePoolSize, corePoolSize);
+    protected static ExecutorService createFixedThreadPool(String name, int corePoolSize) {
+        return createThreadPool(name, corePoolSize, corePoolSize);
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPool(String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPool(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPool(String name, int _corePoolSize, int maxPoolSize) {
+        return PTExecutors.newFixedThreadPool(maxPoolSize, name);
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      * It does not create a span.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPoolWihtoutSpans(
-            String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPoolWithoutSpans(String name, int _corePoolSize, int maxPoolSize) {
+        return PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, name);
     }
 
     @Overrideu}(j0 (873fe01fb2bcd122671ed8446a4741d208fbfa02j0 katlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AdvisoryLockConditionSuppliers.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -79,10 +79,13 @@ private static HeldLocksToken acquireLock(LockService lockService, LockRequest l
                     case BLOCK_UNTIL_TIMEOUT:
                     case BLOCK_INDEFINITELY:
                     case BLOCK_INDEFINITELY_THEN_RELEASE:
-                        log.warn("Could not lock successfully", ex);
                         ++failureCount;
+                        log.warn("Could not lock successfully", SafeArg.of("failureCount", failureCount), ex);
                         if (failureCount >= NUM_RETRIES) {
-                            log.warn("Failing after {} tries", SafeArg.of("failureCount", failureCount), ex);
+                            log.warn(
+                                    "Failing after exceeding maximum tries",
+                                    SafeArg.of("failureCount", failureCount),
+                                    ex);
                             throw ex;
                         }
                         break;u}(j0 (b7485353a77f6bf0cd6c937bff58416577e13b1dj0 (atlasdb-workload-server-api/build.gradlej0 modifiedj0 Kj0 K j0 Kj0 |https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-api%2Fbuild.gradlej0 {https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-api%2Fbuild.gradlej 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fbuild.gradle?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 @@ -13,4 +13,5 @@ dependencies {
     annotationProcessor 'org.immutables:value'
 
     testImplementation 'com.palantir.safe-logging:preconditions-assertj'
+    testImplementation 'org.mockito:mockito-core'
 }
\ No newline at end of fileu}(j0 (72396cbd183a5589ac7b3cf6593e07b9c5de2fd0j0 katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ReadableTransactionStore.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 XY  @@ -28,4 +28,9 @@ public interface ReadableTransactionStore {
      * @return The value of the cell for a given table.
      */
     Optional<Integer> get(String table, WorkloadCell cell);
+
+    /**
+     * Checks whether the transaction with the provided startTimestamp has committed.
+     */
+    boolean isCommitted(long startTimestamp);
 }u}(j0 (9a3b7a7060c8f72d6a97bc2c347571b698b81c47j0 jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStoreFactory.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -22,6 +22,6 @@
 /**
  * Creates transaction stores of a certain type which are bounded to the provided tables/indexes.
  */
-public interface TransactionStoreFactory {
-    TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
+public interface TransactionStoreFactory<T extends TransactionStore> {
+    T create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
 }u}(j0 (574a86c53458c2bbb5f43c19c269eb2ee52679c7j0 |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/FullyWitnessedTransaction.javaj0 addedj0 K"j0 K j0 K"j0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we know for certain we've witnessed.
+ */
+@Value.Immutable
+public interface FullyWitnessedTransaction extends WitnessedTransaction {
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableFullyWitnessedTransaction.Builder builder() {
+        return ImmutableFullyWitnessedTransaction.builder();
+    }
+}u}(j0 (5a66280426c78d83ed7001fc4ee1aebb894f7578j0 |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransaction.javaj0 addedj0 K4j0 K j0 K4j0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.logsafe.Preconditions;
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we witnessed, but are in a state which we are
+ * unsure if they have committed or not due to failures.
+ */
+@Value.Immutable
+public interface MaybeWitnessedTransaction extends WitnessedTransaction {
+    @Value.Check
+    default void check() {
+        Preconditions.checkArgument(
+                commitTimestamp().isPresent(),
+                "Given how the transaction protocol works, a transaction for which we haven't retrieved the commit "
+                        + "timestamp has not written anything of significance to the database");
+    }
+
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableMaybeWitnessedTransaction.Builder builder() {
+        return ImmutableMaybeWitnessedTransaction.builder();
+    }
+
+    default FullyWitnessedTransaction toFullyWitnessed() {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(startTimestamp())
+                .commitTimestamp(commitTimestamp())
+                .actions(actions())
+                .build();
+    }
+}u}(j0 (525e82582d3affac4608bebfe366141f3088a716j0 watlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransaction.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X
  @@ -18,9 +18,7 @@
 
 import java.util.List;
 import java.util.Optional;
-import org.immutables.value.Value;
 
-@Value.Immutable
 public interface WitnessedTransaction {
     /** Start timestamp of the transaction. */
     long startTimestamp();
@@ -30,4 +28,6 @@ public interface WitnessedTransaction {
 
     /** Provides an in-order list of actions that were performed during the transaction's execution. */
     List<WitnessedTransactionAction> actions();
+
+    <T> T accept(WitnessedTransactionVisitor<T> visitor);
 }u}(j0 (33682bf649e7b87408367a7f23d4995c94c96d98j0 ~atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionVisitor.javaj0 addedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -0,0 +1,23 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+public interface WitnessedTransactionVisitor<T> {
+    T visit(FullyWitnessedTransaction witnessedTransaction);
+
+    T visit(MaybeWitnessedTransaction maybeWitnessedTransaction);
+}u}(j0 (47b4109802a3529a585cdba06bb50cbe3fb2a098j0 katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowConfiguration.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -17,8 +17,19 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import org.immutables.value.Value;
 
 @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
 public interface WorkflowConfiguration {
     int iterationCount();
+
+    @Value.Default
+    default double rateLimit() {
+        return 100;
+    }
+
+    @Value.Default
+    default Integer maxThreadCount() {
+        return 100;
+    }
 }u}(j0 (ffbc895344923f90f2a9fbedaca2f32929339b6cj0 eatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowHistory.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -26,5 +26,10 @@ public interface WorkflowHistory {
     // We may want to query the KVS during verification.
     ReadableTransactionStore transactionStore();
 
+    /**
+     * TODO: This should only be a list of
+     * {@link com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction} rather than the general
+     * purpose type.
+     */
     List<WitnessedTransaction> history();
 }u}(j0 (98c826c9208fca80e3a6f1f1efcf8240c030d9ffj0 atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javaj0 addedj0 KDj0 K j0 KDj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X\  @@ -0,0 +1,68 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+import static org.mockito.Mockito.mock;
+
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import org.junit.Test;
+
+public class MaybeWitnessedTransactionTest {
+
+    private static final Long START_TIMESTAMP = 100L;
+    private static final Long COMMIT_TIMESTAMP = 200L;
+
+    @Test
+    public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
+        assertThatLoggableExceptionThrownBy(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining(
+                        "Given how the transaction protocol works, a transaction for which we haven't retrieved the"
+                                + " commit timestamp");
+    }
+
+    @Test
+    public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
+        assertThatCode(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .commitTimestamp(COMMIT_TIMESTAMP)
+                        .build())
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void toFullyWitnessedCopiesArgumentsCorrectly() {
+        WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
+        WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
+        List<WitnessedTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
+        FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
+                .startTimestamp(START_TIMESTAMP)
+                .commitTimestamp(COMMIT_TIMESTAMP)
+                .actions(actions)
+                .build()
+                .toFullyWitnessed();
+        assertThat(fullyWitnessedTransaction.startTimestamp()).isEqualTo(START_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.commitTimestamp()).contains(COMMIT_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.actions()).containsExactlyElementsOf(actions);
+    }
+}u}(j0 (657030222c223cabc3af02a6cfa9a51829ab3112j0 latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj0 modifiedj0 K j0 Kj0 K(j0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -29,11 +29,14 @@
 import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
 import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
 import com.palantir.conjure.java.serialization.ObjectMappers;
@@ -95,12 +98,17 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 Refreshable.only(configuration.runtime().atlas()),
                 USER_AGENT,
                 metricsManager);
-        SingleRowTwoCellsWorkflowConfiguration workflowConfig =
+        SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig =
                 configuration.install().singleRowTwoCellsConfig();
+        RingWorkflowConfiguration ringWorkflowConfiguration =
+                configuration.install().ringConfig();
 
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
-                .run(createSingleRowTwoCellsWorkflowValidator(
-                        transactionStoreFactory, workflowConfig, environment.lifecycle()));
+                .run(
+                        createSingleRowTwoCellsWorkflowValidator(
+                                transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
+                        createRingWorkflowValidator(
+                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -111,12 +119,30 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
+    private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            RingWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = lifecycle
+                .executorService(RingWorkflows.class.getSimpleName())
+                .maxThreads(workflowConfig.maxThreadCount())
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(RingWorkflows.create(
+                transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)));
+    }
+
     private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             SingleRowTwoCellsWorkflowConfiguration workflowConfig,
             LifecycleEnvironment lifecycle) {
-        ExecutorService singleRowTwoCellsExecutorService = lifecycle
-                .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
+        ExecutorService executorService = lifecycle
+                .executorService(RingWorkflows.class.getSimpleName())
+                .maxThreads(workflowConfig.maxThreadCount())
                 .build();
         TransactionStore transactionStore = transactionStoreFactory.create(
                 Map.of(
@@ -125,9 +151,7 @@ private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator
                 Set.of());
         return WorkflowAndInvariants.builder()
                 .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
-                        transactionStore,
-                        workflowConfig,
-                        MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)))
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
                 .addInvariantReporters(new DurableWritesInvariantMetricReporter(
                         SingleRowTwoCellsWorkflows.class.getSimpleName(),
                         DurableWritesMetrics.of(taggedMetricRegistry)))u}(j0 (899459cdb3b709b73bdaa6f88501e36e980580c8j0 atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -20,6 +20,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
 
 @JsonDeserialize(as = ImmutableWorkloadServerInstallConfiguration.class)
@@ -30,5 +31,7 @@ public interface WorkloadServerInstallConfiguration {
 
     SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig();
 
+    RingWorkflowConfiguration ringConfig();
+
     boolean exitAfterRunning();
 }u}(j0 (b92811220a5a77616324333bfc9e02b6ac0ca989j0 Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X=  @@ -10,4 +10,10 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
   exitAfterRunning: false
\ No newline at end of fileu}(j0 (d30bb12eccd163f3ff27a1f16336e27031b0e847j0 Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X   @@ -45,4 +45,10 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
   exitAfterRunning: trueu}(j0 (f0ef6a7b2a2ff03f260d5e5b1a833d0f4a509161j0 Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X<  @@ -10,4 +10,10 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
   exitAfterRunning: true
\ No newline at end of fileu}(j0 (6871e6633db3c7f6293f93c4496e8f449116f688j0 fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj0 modifiedj0 K'j0 Kj0 K3j0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X(  @@ -21,16 +21,20 @@
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.PreCommitCondition;
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.TransactionCommitFailedException;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -63,6 +67,13 @@ public Optional<Integer> get(String table, WorkloadCell cell) {
                 transaction -> new AtlasDbInteractiveTransaction(transaction, tables).read(table, cell));
     }
 
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return TransactionStatus.getCommitTimestamp(
+                        transactionManager.getTransactionService().getV2(startTimestamp))
+                .isPresent();
+    }
+
     @Override
     public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
         return readWrite(txn -> {
@@ -74,23 +85,26 @@ public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions)
     @Override
     public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer) {
         AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
+        AtomicReference<Transaction> transactionReference = new AtomicReference<>();
         Supplier<CommitTimestampProvider> commitTimestampProvider =
                 Suppliers.memoize(() -> new CommitTimestampProvider());
         try {
-            Transaction transaction =
-                    transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
-                        AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
-                                new AtlasDbInteractiveTransaction(txn, tables);
-                        interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
-                        witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
-                        return txn;
-                    });
+            transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
+                transactionReference.set(txn);
+                AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
+                        new AtlasDbInteractiveTransaction(txn, tables);
+                interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
+                witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
+                return null;
+            });
+
+            Transaction transaction = transactionReference.get();
 
             if (transaction.isAborted()) {
                 return Optional.empty();
             }
 
-            return Optional.of(ImmutableWitnessedTransaction.builder()
+            return Optional.of(FullyWitnessedTransaction.builder()
                     .startTimestamp(transaction.getTimestamp())
                     .commitTimestamp(commitTimestampProvider
                             .get()
@@ -99,9 +113,22 @@ public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction>
                     .build());
         } catch (SafeIllegalArgumentException e) {
             throw e;
+        } catch (TransactionCommitFailedException e) {
+            Transaction transaction = transactionReference.get();
+            return Optional.of(MaybeWitnessedTransaction.builder()
+                    .startTimestamp(transaction.getTimestamp())
+                    .commitTimestamp(commitTimestampProvider
+                            .get()
+                            .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
+                    .actions(witnessedActionsReference.get())
+                    .build());
         } catch (Exception e) {
-            // TODO: Need to eventually handle PuE exceptions, as they could've succeeded in committing.
-            log.info("Failed to record transaction due to an exception", e);
+            Optional<Long> startTimestamp =
+                    Optional.ofNullable(transactionReference.get()).map(Transaction::getTimestamp);
+            log.info(
+                    "Failed to record transaction due to an exception for startTimestamp {}",
+                    SafeArg.of("startTimestamp", startTimestamp),
+                    e);
             return Optional.empty();
         }
     }u}(j0 (f0245c07a4ac6185212172813b1974b1fb10d598j0 matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 XW  @@ -41,7 +41,7 @@
 import one.util.streamex.EntryStream;
 import one.util.streamex.StreamEx;
 
-public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory {
+public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory<InteractiveTransactionStore> {
 
     private final TransactionManager transactionManager;
     private final Optional<Namespace> maybeNamespace;
@@ -52,7 +52,7 @@ public AtlasDbTransactionStoreFactory(TransactionManager transactionManager, Opt
     }
 
     @Override
-    public TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
+    public InteractiveTransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
         return AtlasDbTransactionStore.create(transactionManager, toAtlasTables(tables, indexes));
     }
 u}(j0 (cb6dfce8a01b80d7f3c5368970de60190ce81ddcj0 gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/ReadOnlyTransactionStore.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 XU  @@ -33,4 +33,9 @@ public ReadOnlyTransactionStore(ReadableTransactionStore delegate) {
     public Optional<Integer> get(String table, WorkloadCell cell) {
         return delegate.get(table, cell);
     }
+
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return delegate.isCommitted(startTimestamp);
+    }
 }u}(j0 (0ba18e00eabc917a1fd7025d0f9113112c9b8615j0 atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitor.javaj0 addedj0 K*j0 K j0 K*j0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.Optional;
+
+public final class OnlyCommittedWitnessedTransactionVisitor
+        implements WitnessedTransactionVisitor<Optional<FullyWitnessedTransaction>> {
+
+    private final ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    public OnlyCommittedWitnessedTransactionVisitor(ReadOnlyTransactionStore readOnlyTransactionStore) {
+        this.readOnlyTransactionStore = readOnlyTransactionStore;
+    }
+
+    @Override
+    public Optional<FullyWitnessedTransaction> visit(FullyWitnessedTransaction witnessedTransaction) {
+        return Optional.of(witnessedTransaction);
+    }
+
+    @Override
+    public Optional<FullyWitnessedTransaction> visit(MaybeWitnessedTransaction maybeWitnessedTransaction) {
+        return readOnlyTransactionStore.isCommitted(maybeWitnessedTransaction.startTimestamp())
+                ? Optional.of(maybeWitnessedTransaction.toFullyWitnessed())
+                : Optional.empty();
+    }
+}u}(j0 (54b290f2339c2518740eb0ba35e08de26406b945j0 aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X
  @@ -20,13 +20,15 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.OnlyCommittedWitnessedTransactionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import java.util.Comparator;
 import java.util.List;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
-import java.util.stream.Collectors;
+import one.util.streamex.StreamEx;
 
 public final class DefaultWorkflow<T extends TransactionStore> implements Workflow {
     private final ConcurrentTransactionRunner<T> concurrentTransactionRunner;
@@ -45,7 +47,7 @@ private DefaultWorkflow(
         this.readOnlyTransactionStore = readOnlyTransactionStore;
     }
 
-    public static <T extends TransactionStore> Workflow create(
+    public static <T extends TransactionStore> DefaultWorkflow<T> create(
             T store,
             KeyedTransactionTask<T> transactionTask,
             WorkflowConfiguration configuration,
@@ -60,7 +62,7 @@ public static <T extends TransactionStore> Workflow create(
     @Override
     public WorkflowHistory run() {
         return ImmutableWorkflowHistory.builder()
-                .history(sortByEffectiveTimestamp(runTransactionTask()))
+                .history(sortAndFilterTransactions(runTransactionTask()))
                 .transactionStore(readOnlyTransactionStore)
                 .build();
     }
@@ -79,11 +81,17 @@ private List<WitnessedTransaction> runTransactionTask() {
         }
     }
 
+    /**
+     * Sorts transactions by their effective timestamp and filters out transactions that are not fully committed.
+     */
     @VisibleForTesting
-    static List<WitnessedTransaction> sortByEffectiveTimestamp(List<WitnessedTransaction> unorderedTransactions) {
-        return unorderedTransactions.stream()
+    List<FullyWitnessedTransaction> sortAndFilterTransactions(List<WitnessedTransaction> unorderedTransactions) {
+        OnlyCommittedWitnessedTransactionVisitor visitor =
+                new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
+        return StreamEx.of(unorderedTransactions)
+                .mapPartial(transaction -> transaction.accept(visitor))
                 .sorted(Comparator.comparingLong(DefaultWorkflow::effectiveTimestamp))
-                .collect(Collectors.toList());
+                .toList();
     }
 
     private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {u}(j0 (caadf187b4d5e22652f2a830ce77923c1b876143j0 xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javaj0 modifiedj0 K j0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X_  @@ -31,11 +31,6 @@ public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfigur
 
     TableConfiguration tableConfiguration();
 
-    @Value.Default
-    default double rateLimit() {
-        return 100;
-    }
-
     @Value.Lazy
     default RateLimiter transactionRateLimiter() {
         return RateLimiter.create(rateLimit());u}(j0 (8db9245638b72b40f73f9ae3c427c4ccb2c69053j0 patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowConfiguration.javaj0 modifiedj0 Kj0 Kj0 K
j0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -20,14 +20,13 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.google.common.util.concurrent.RateLimiter;
-import com.palantir.atlasdb.workload.workflow.ImmutableSingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TableConfiguration;
 import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
 import org.immutables.value.Value;
 
 @Value.Immutable
-@JsonSerialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
-@JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonSerialize(as = ImmutableRingWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableRingWorkflowConfiguration.class)
 @JsonTypeName(RingWorkflowConfiguration.TYPE)
 public interface RingWorkflowConfiguration extends WorkflowConfiguration {
     String TYPE = "ring";
@@ -38,11 +37,6 @@ default Integer ringSize() {
         return 3;
     }
 
-    @Value.Default
-    default double rateLimit() {
-        return 100;
-    }
-
     @Value.Lazy
     default RateLimiter transactionRateLimiter() {
         return RateLimiter.create(rateLimit());u}(j0 (b786a95bef1effb5bd44f53eed786d588b38a9b0j0 datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflows.javaj0 modifiedj0 K
j0 K j0 K
j0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -51,6 +51,19 @@ private RingWorkflows() {
     }
 
     public static Workflow create(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration ringWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        AtomicBoolean skipRunning = new AtomicBoolean(false);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
+                ringWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
             InteractiveTransactionStore store,
             RingWorkflowConfiguration ringWorkflowConfiguration,
             ListeningExecutorService executionExecutor,u}(j0 (3d12ec12a07e0b90193451a34a6dccfcfa6f8e76j0 {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporterTest.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.java      j0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -25,7 +25,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -60,7 +60,7 @@ public void runIncreasesMetricsIfViolationsFound() {
                         .build()));
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
                 .transactionStore(store)
-                .history(List.of(ImmutableWitnessedTransaction.builder()
+                .history(List.of(FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(u}(j0 (39cc7f77a28bd84fc271bbca23d8e9195abf6fd6j0 matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantTest.javaj0 modifiedj0 Kj0 Kj0 K
j0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X
  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -59,12 +59,12 @@ public void before() {
     public void cellsExpectedToBeDeletedAreFound() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)
@@ -86,12 +86,12 @@ public void cellsExpectedToBeDeletedAreFound() {
     public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)u}(j0 (398677d5ff242f5cee92de9c2737a0843621c59dj0 watlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporterTest.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -19,7 +19,7 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import java.util.List;
 import org.junit.Test;
@@ -35,7 +35,7 @@ public void consumerDoesNotThrowWhenAcceptingViolations() {
         assertThatCode(() -> SerializableInvariantLogReporter.INSTANCE
                         .consumer()
                         .accept(List.of(InvalidWitnessedTransaction.of(
-                                ImmutableWitnessedTransaction.builder()
+                                FullyWitnessedTransaction.builder()
                                         .startTimestamp(1)
                                         .build(),
                                 List.of()))))u}(j0 (5ec56f77b39005e45c63e6495f68b817646fecc6j0 jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj0 modifiedj0 K&j0 K j0 K&j0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -28,22 +28,28 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doAnswer;
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
 
 import com.google.common.collect.Iterables;
+import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
+import com.palantir.atlasdb.transaction.api.ConditionAwareTransactionTask;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.encoding.V1EncodingStrategy;
+import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore.CommitTimestampProvider;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -162,6 +168,38 @@ public void abortedTransactionsReturnEmpty() {
                 .isEmpty();
     }
 
+    @Test
+    public void keyAlreadyExistExceptionResultsInMaybeWitnessedTransaction() {
+        WriteTransactionAction writeTransactionAction =
+                WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+        TransactionManager keyAlreadyExistsExceptionThrowingStore = spy(manager);
+        doAnswer(invocation -> {
+                    Supplier<CommitTimestampProvider> commitTimestampFetcher = invocation.getArgument(0);
+                    ConditionAwareTransactionTask<Void, CommitTimestampProvider, Exception> task =
+                            invocation.getArgument(1);
+                    return manager.runTaskWithConditionWithRetry(commitTimestampFetcher, (txn, condition) -> {
+                        manager.getKeyValueService()
+                                .putUnlessExists(
+                                        TransactionConstants.TRANSACTION_TABLE,
+                                        Map.of(
+                                                V1EncodingStrategy.INSTANCE.encodeStartTimestampAsCell(
+                                                        txn.getTimestamp()),
+                                                Ints.toByteArray(-1)));
+                        task.execute(txn, condition);
+                        return null;
+                    });
+                })
+                .when(keyAlreadyExistsExceptionThrowingStore)
+                .runTaskWithConditionWithRetry(any(Supplier.class), any());
+        AtlasDbTransactionStore onlyKeyAlreadyExistsThrowingStore =
+                AtlasDbTransactionStore.create(keyAlreadyExistsExceptionThrowingStore, TABLES_TO_ATLAS_METADATA);
+        assertThat(onlyKeyAlreadyExistsThrowingStore.readWrite(List.of(writeTransactionAction)))
+                .hasValueSatisfying(witnessedTransaction -> {
+                    assertThat(witnessedTransaction).isInstanceOf(MaybeWitnessedTransaction.class);
+                    assertThat(witnessedTransaction.actions()).containsExactly(writeTransactionAction.witness());
+                });
+    }
+
     @Test
     public void getCommitTimestampIsEmptyWhenMatchesStartTimestamp() {
         CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();u}(j0 (d2773b68972e300a262ebb1f8c2a24f280280cfdj0 patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -27,7 +27,7 @@
 
 import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.store.ValidationStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import java.util.List;
@@ -40,12 +40,12 @@ public final class InMemoryValidationStoreTest {
     @Test
     public void writeActionsPersistValues() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
@@ -61,13 +61,13 @@ public void writeActionsPersistValues() {
     @Test
     public void deleteActionsPutsEmptyOptionalForCell() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
@@ -80,17 +80,17 @@ public void deleteActionsPutsEmptyOptionalForCell() {
     @Test
     public void writesDeletesAreProcessedInOrder() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(5)
                         .commitTimestamp(6)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_TWO))u}(j0 (2b067a134a06d3e605fca8d36dacf3678a76ffcej0 qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -103,7 +103,7 @@ public WitnessedTransactionsBuilder endTransaction(Optional<Long> commitTimestam
                         startTimestamp < commitTimestamp.get(),
                         "Commit timestamp must be greater than the start timestamp.");
             }
-            witnessedTransactions.add(ImmutableWitnessedTransaction.builder()
+            witnessedTransactions.add(FullyWitnessedTransaction.builder()
                     .startTimestamp(startTimestamp)
                     .actions(actions)
                     .commitTimestamp(commitTimestamp)u}(j0 (d495a71c18ca7b125092f092c371e0a4a455ad73j0 atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitorTest.javaj0 addedj0 KAj0 K j0 KAj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javaj 1 X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X
  @@ -0,0 +1,65 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyLong;
+import static org.mockito.Mockito.verifyNoInteractions;
+import static org.mockito.Mockito.when;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class OnlyCommittedWitnessedTransactionVisitorTest {
+
+    private static final FullyWitnessedTransaction READ_ONLY_WITNESSED_TRANSACTION =
+            FullyWitnessedTransaction.builder().startTimestamp(100L).build();
+
+    private static final MaybeWitnessedTransaction MAYBE_WITNESSED_TRANSACTION = MaybeWitnessedTransaction.builder()
+            .startTimestamp(100L)
+            .commitTimestamp(101L)
+            .build();
+
+    @Mock
+    private ReadOnlyTransactionStore transactionStore;
+
+    @Test
+    public void fullyCommittedTransactionsAreNeverChecked() {
+        assertThat(READ_ONLY_WITNESSED_TRANSACTION.accept(
+                        new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(READ_ONLY_WITNESSED_TRANSACTION);
+        verifyNoInteractions(transactionStore);
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsEmptyWhenNotCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(false);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .isEmpty();
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsFullyWitnessedWhenCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(true);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(MAYBE_WITNESSED_TRANSACTION.toFullyWitnessed());
+    }
+}u}(j0 (c661ec5533851b62afb963d1f472d967b8a67e83j0 qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunnerTest.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -33,7 +33,7 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.List;
@@ -126,7 +126,7 @@ public void storePassedThroughToIndividualTasks() {
     }
 
     private static WitnessedTransaction createWitnessedTransactionWithStartTimestamp(int startTimestamp) {
-        return ImmutableWitnessedTransaction.builder()
+        return FullyWitnessedTransaction.builder()
                 .startTimestamp(startTimestamp)
                 .build();
     }u}(j0 (f8a19900eee6cf1226affe562f3f1ad73f58040dj0 eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javaj0 modifiedj0 K2j0 Kj0 KNj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X!  @@ -27,9 +27,10 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.common.concurrent.PTExecutors;
+import java.util.List;
 import java.util.concurrent.ScheduledExecutorService;
 import org.junit.Test;
 
@@ -41,66 +42,78 @@ public class DefaultWorkflowTest {
     private final ScheduledExecutorService scheduler = PTExecutors.newSingleThreadScheduledExecutor();
     private final ListeningExecutorService executionExecutor = MoreExecutors.listeningDecorator(scheduler);
 
+    private final DefaultWorkflow<TransactionStore> workflow =
+            DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
+
     @Test
     public void handlesExceptionsInUnderlyingTasks() {
         RuntimeException transactionException = new RuntimeException("boo");
         when(transactionTask.apply(eq(store), anyInt())).thenThrow(transactionException);
-
-        Workflow workflow =
-                DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
         assertThatThrownBy(workflow::run)
                 .hasMessage("Error when running workflow task")
                 .hasCause(transactionException);
     }
 
     @Test
     public void returnsUnderlyingWitnessedTransactions() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight)))
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight)))
                 .containsExactly(twoToEight);
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(readOnlyAtFive)))
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(readOnlyAtFive)))
                 .containsExactly(readOnlyAtFive);
     }
 
     @Test
     public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
-        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
                 .containsExactly(fourToSix, threeToSeven, twoToEight);
     }
 
     @Test
     public void sortsReadOnlyTransactionsByStartTimestamp() {
-        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        WitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(
+        assertThat(workflow.sortAndFilterTransactions(
                         ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
                 .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
     }
 
     @Test
     public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
 
-        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        WitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(
                         twoToEight, readOnlyAtNine, fourToSix, readOnlyAtFive, readOnlyAtThree, readOnlyAtSeven)))
                 .containsExactly(
                         readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
     }
 
+    @Test
+    public void filterRemovesUncommittedTransactions() {
+        MaybeWitnessedTransaction committedMaybeWitnessedTransaction =
+                createMaybeWitnessedTransactionWithoutActions(1, 3, true);
+        MaybeWitnessedTransaction notCommittedTransaction = createMaybeWitnessedTransactionWithoutActions(2, 8, false);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        assertThat(workflow.sortAndFilterTransactions(List.of(
+                        committedMaybeWitnessedTransaction, notCommittedTransaction, readOnlyAtFive, fourToSix)))
+                .containsExactly(committedMaybeWitnessedTransaction.toFullyWitnessed(), readOnlyAtFive, fourToSix);
+    }
+
     private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
         return new WorkflowConfiguration() {
             @Override
@@ -110,12 +123,21 @@ public int iterationCount() {
         };
     }
 
-    private static WitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
-        return ImmutableWitnessedTransaction.builder().startTimestamp(start).build();
+    private MaybeWitnessedTransaction createMaybeWitnessedTransactionWithoutActions(
+            long start, long commit, boolean committed) {
+        when(store.isCommitted(eq(start))).thenReturn(committed);
+        return MaybeWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+
+    private static FullyWitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
+        return FullyWitnessedTransaction.builder().startTimestamp(start).build();
     }
 
-    private static WitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
-        return ImmutableWitnessedTransaction.builder()
+    private static FullyWitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
+        return FullyWitnessedTransaction.builder()
                 .startTimestamp(start)
                 .commitTimestamp(commit)
                 .build();u}(j0 (b4f0f9cfa1631ef560d32a317b1d9e42a3cac71fj0  changelog/0.849.0/pr-6562.v2.ymlj0 addedj0 Kj0 K j0 Kj0 vhttps://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/changelog%2F0.849.0%2Fpr-6562.v2.ymlj0 uhttps://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/changelog%2F0.849.0%2Fpr-6562.v2.ymlj 1 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.849.0%2Fpr-6562.v2.yml?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Avoid boxing for Cassandra known port checks
+  links:
+  - https://github.com/palantir/atlasdb/pull/6562u}(j0 (217d9399bdb068283f3ed607c705739151adc8eaj0  changelog/0.850.0/pr-6563.v2.ymlj0 addedj0 Kj0 K j0 Kj0 vhttps://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/changelog%2F0.850.0%2Fpr-6563.v2.ymlj0 uhttps://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/changelog%2F0.850.0%2Fpr-6563.v2.ymlj 1 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.850.0%2Fpr-6563.v2.yml?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 @@ -0,0 +1,6 @@
+type: fix
+fix:
+  description: Fixed a serialization issue for users of `LockServerOptions` and `LockState`
+    endpoints in the legacy lock service.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6563u}(j0 (23134b9e8533848c590920b5b3a3ff99b19db234j0  changelog/0.851.0/pr-6551.v2.ymlj0 addedj0 Kj0 K j0 Kj0 vhttps://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/changelog%2F0.851.0%2Fpr-6551.v2.ymlj0 uhttps://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/changelog%2F0.851.0%2Fpr-6551.v2.ymlj 1 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.851.0%2Fpr-6551.v2.yml?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Display as safe arg the failureCount in the "Could not lock successfully"
+  links:
+  - https://github.com/palantir/atlasdb/pull/6551u}(j0 (be35f6935babe6fd6f3078a75090f80835e5f244j0 Ocommons-executors/src/main/java/com/palantir/common/concurrent/PTExecutors.javaj0 modifiedj0 Kj0 K	j0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutors.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutors.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutors.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -295,10 +295,12 @@ public static ThreadPoolExecutor newFixedThreadPool(int numThreads, ThreadFactor
      * @throws IllegalArgumentException if <tt>numThreads &lt;= 0</tt>
      */
     public static ExecutorService newFixedThreadPool(int numThreads, String name) {
-        return MetricRegistries.instrument(
-                SharedTaggedMetricRegistries.getSingleton(),
-                PTExecutors.wrap(name, getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())),
-                name);
+        return MetricRegistries.executor()
+                .registry(SharedTaggedMetricRegistries.getSingleton())
+                .name(name)
+                .executor(PTExecutors.wrap(
+                        name, getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())))
+                .build();
     }
 
     /**
@@ -316,11 +318,12 @@ public static ExecutorService newFixedThreadPool(int numThreads, String name) {
      * @throws IllegalArgumentException if <tt>numThreads &lt;= 0</tt>
      */
     public static ExecutorService newFixedThreadPoolWithoutSpan(int numThreads, String name) {
-        return MetricRegistries.instrument(
-                SharedTaggedMetricRegistries.getSingleton(),
-                PTExecutors.wrapWithoutSpan(
-                        getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())),
-                name);
+        return MetricRegistries.executor()
+                .registry(SharedTaggedMetricRegistries.getSingleton())
+                .name(name)
+                .executor(PTExecutors.wrapWithoutSpan(
+                        getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())))
+                .build();
     }
 
     public static ExecutorService getViewExecutor(u}(j0 (c201a75037718ee45a6d24add55ec4992f91ef88j0 lock-api/build.gradlej0 modifiedj0 Kj0 K j0 Kj0 ihttps://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/lock-api%2Fbuild.gradlej0 hhttps://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/lock-api%2Fbuild.gradlej 1 {https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fbuild.gradle?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 X  @@ -46,6 +46,7 @@ dependencies {
     testImplementation 'com.palantir.common:streams'
     testImplementation 'io.dropwizard.metrics:metrics-core'
     testImplementation 'org.slf4j:slf4j-api'
+    testImplementation project(':lock-api-objects')
     testImplementation project(':lock-conjure-api:lock-conjure-api-objects')
     testImplementation project(':timelock-api:timelock-api-objects')
 u}(j0 (da3109e146d361ca31d2958b0fc223d0d2334824j0 ?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 @@ -48,6 +48,7 @@ public class LockServerOptions implements Serializable {
      * client accessing it.
      */
     @Value.Default
+    @JsonProperty("isStandaloneServer")
     public boolean isStandaloneServer() {
         return true;
     }u}(j0 (7cd1c34cf31d800e3d13f665c2f83a2f2153b95ej0 7lock-api/src/main/java/com/palantir/lock/LockState.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 XD  @@ -16,6 +16,7 @@
 
 package com.palantir.lock;
 
+import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import java.util.List;
@@ -26,8 +27,10 @@
 @JsonSerialize(as = ImmutableLockState.class)
 @JsonDeserialize(as = ImmutableLockState.class)
 public interface LockState {
+    @JsonProperty("isWriteLocked")
     boolean isWriteLocked();
 
+    @JsonProperty("isFrozen")
     boolean isFrozen();
 
     List<LockClient> exactCurrentLockHolders();u}(j0 (1926ba4ded622aa9fbfde697ed803a0543ddf1b5j0 Clock-api/src/test/java/com/palantir/lock/LockServerOptionsTest.javaj0 addedj0 KSj0 K j0 KSj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.javaj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.javaj 1 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.java?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 Xh  @@ -0,0 +1,83 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.lock.v2.IdentifiedTimeLockRequest;
+import java.io.File;
+import java.io.IOException;
+import java.util.concurrent.TimeUnit;
+import org.junit.Test;
+
+public class LockServerOptionsTest {
+    private static final File LOCK_SERVER_OPTIONS_JSON = new File(IdentifiedTimeLockRequest.class
+            .getResource("/lock-server-options.json")
+            .getPath());
+    private static final LockServerOptions NON_STANDALONE_OPTIONS =
+            LockServerOptions.builder().isStandaloneServer(false).build();
+
+    private final ObjectMapper serverMapper = ObjectMappers.newServerObjectMapper();
+    private final ObjectMapper clientMapper = ObjectMappers.newClientObjectMapper();
+
+    @Test
+    public void serializationContainsIsStandaloneServerExplicitly() throws Exception {
+        assertThat(serverMapper.writeValueAsString(NON_STANDALONE_OPTIONS))
+                .isNotEmpty()
+                .contains("\"isStandaloneServer\":false");
+        assertThat(serverMapper.writeValueAsString(LockServerOptions.builder().build()))
+                .isNotEmpty()
+                .contains("\"isStandaloneServer\":true");
+    }
+
+    @Test
+    public void serializationIsInverseOfDeserialization() throws JsonProcessingException {
+        assertSerializationIsInverseOfDeserialization(NON_STANDALONE_OPTIONS);
+        assertSerializationIsInverseOfDeserialization(
+                LockServerOptions.builder().build());
+    }
+
+    @Test
+    @SuppressWarnings("deprecation") // These are actual fields users might set that we still support...
+    public void existingOptionsCanBeDeserialized() throws IOException {
+        LockServerOptions lockServerOptions = LockServerOptions.builder()
+                .maxAllowedLockTimeout(SimpleTimeDuration.of(1, TimeUnit.MILLISECONDS))
+                .maxAllowedClockDrift(SimpleTimeDuration.of(2, TimeUnit.SECONDS))
+                .maxAllowedBlockingDuration(SimpleTimeDuration.of(3, TimeUnit.MINUTES))
+                .maxNormalLockAge(SimpleTimeDuration.of(4, TimeUnit.HOURS))
+                .randomBitCount(32)
+                .stuckTransactionTimeout(SimpleTimeDuration.of(5, TimeUnit.DAYS))
+                .slowLogTriggerMillis(12345)
+                .isStandaloneServer(false)
+                .build();
+
+        assertThat(clientMapper.readValue(LOCK_SERVER_OPTIONS_JSON, LockServerOptions.class))
+                .isEqualTo(lockServerOptions);
+        assertThat(serverMapper.readValue(LOCK_SERVER_OPTIONS_JSON, LockServerOptions.class))
+                .isEqualTo(lockServerOptions);
+    }
+
+    private void assertSerializationIsInverseOfDeserialization(LockServerOptions options)
+            throws JsonProcessingException {
+        String json = serverMapper.writeValueAsString(options);
+        assertThat(clientMapper.readValue(json, LockServerOptions.class)).isEqualTo(options);
+        assertThat(serverMapper.readValue(json, LockServerOptions.class)).isEqualTo(options);
+    }
+}u}(j0 (efe8f1aaad6365f7c6d18f7a187cf695d298d214j0 4lock-api/src/test/resources/lock-server-options.jsonj0 addedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/6e4a93441f8d84038498a7ec94ef654240d006fa/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.jsonj0 https://github.com/palantir/atlasdb/raw/6e4a93441f8d84038498a7ec94ef654240d006fa/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.jsonj 1 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.json?ref=6e4a93441f8d84038498a7ec94ef654240d006faj1 Xa  @@ -0,0 +1 @@
+{"maxAllowedLockTimeout":{"time":1,"unit":"MILLISECONDS"},"maxAllowedClockDrift":{"time":2,"unit":"SECONDS"},"maxAllowedBlockingDuration":{"time":3,"unit":"MINUTES"},"maxNormalLockAge":{"time":4,"unit":"HOURS"},"randomBitCount":32,"stuckTransactionTimeout":{"time":5,"unit":"DAYS"},"slowLogTriggerMillis":12345,"isStandaloneServer":false}ueu(4c65995c7110c617f6cd12253403bfeee6e23022}(sha(4c65995c7110c617f6cd12253403bfeee6e23022node_idEC_kwDOAjP5fdoAKDRjNjU5OTVjNzExMGM2MTdmNmNkMTIyNTM0MDNiZmVlZTZlMjMwMjIcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-14T12:42:10Zu	committer}(j2 	Tom Papkej2 tpapke@palantir.comj2 2023-07-14T12:42:10Zumessage*Fix cell lock count across multiple tablestree}(j2 (ba07a02b1282c73ad0b835eac9617925bcd32b70url`https://api.github.com/repos/palantir/atlasdb/git/trees/ba07a02b1282c73ad0b835eac9617925bcd32b70uj2 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4c65995c7110c617f6cd12253403bfeee6e23022
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSxQqIACgkQmF9s0kaF
Iw05Igf/Q9wL3R4mPQCGSvHlUZ+YJJqHlzkmynx6W6EaFi9R1L92P2SRtZ0R3C9K
jJ+ttkqu8jiXYeHiYwIE/3iW2/EsO4RjmpR6hYlKgclW6v0HG59gM0hDq5HvgEhJ
9YciqNHJF97CL6JJZW4dKsDiq0wYwx6hYUT9nIhGVxwdK7l83D/2/TRfXicODtjB
sKMM/faen8jPCUMVAPdgvtMaJXDiZIwXo1lzIeBExLtKQRLLgHt5TDgPDbgB60Ey
IAtTwcXH3CvqlFgXNN9AqMxCqUXnvaAwl8qDBh5ZifB/492VdPC8I0ILDuzR6Twu
Uf+g3veJi3W/SJW/bURtdXdgAkJ9LA==
=KAhH
-----END PGP SIGNATURE-----payloadtree ba07a02b1282c73ad0b835eac9617925bcd32b70
parent 43136fc95acea5ceb1decebcf906e547b21d5a99
author Tom Papke <tpapke@palantir.com> 1689338530 +0100
committer Tom Papke <tpapke@palantir.com> 1689338530 +0100

Fix cell lock count across multiple tables
uuj2 ^https://api.github.com/repos/palantir/atlasdb/commits/4c65995c7110c617f6cd12253403bfeee6e23022html_urlShttps://github.com/palantir/atlasdb/commit/4c65995c7110c617f6cd12253403bfeee6e23022comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4c65995c7110c617f6cd12253403bfeee6e23022/commentsj2 }(login	ToemmscheidJboj2 MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j2 &https://api.github.com/users/Toemmschej2 https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj2 }(j2 	Toemmschej2 Jboj2 MDQ6VXNlcjQzNjc1NDkwj2 4https://avatars.githubusercontent.com/u/43675490?v=4j2 h5j2 &https://api.github.com/users/Toemmschej2 https://github.com/Toemmschej2 0https://api.github.com/users/Toemmsche/followersj2 =https://api.github.com/users/Toemmsche/following{/other_user}j2 6https://api.github.com/users/Toemmsche/gists{/gist_id}j2 =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j2 4https://api.github.com/users/Toemmsche/subscriptionsj2 +https://api.github.com/users/Toemmsche/orgsj2 ,https://api.github.com/users/Toemmsche/reposj2 7https://api.github.com/users/Toemmsche/events{/privacy}j2 6https://api.github.com/users/Toemmsche/received_eventsj2 Userj2 uparents]}(j2 (43136fc95acea5ceb1decebcf906e547b21d5a99j2 ^https://api.github.com/repos/palantir/atlasdb/commits/43136fc95acea5ceb1decebcf906e547b21d5a99j2 Shttps://github.com/palantir/atlasdb/commit/43136fc95acea5ceb1decebcf906e547b21d5a99uastats}(totalK	additionsK	deletionsKufiles](}(j2 (44874b3c840c6dfbabcb5b8aa1dc169343a4cd7bfilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj3 Kj3 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/4c65995c7110c617f6cd12253403bfeee6e23022/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4c65995c7110c617f6cd12253403bfeee6e23022/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=4c65995c7110c617f6cd12253403bfeee6e23022patchX  @@ -2521,7 +2521,7 @@ protected Set<LockDescriptor> getLocksForWrites() {
                     result.add(AtlasCellLockDescriptor.of(
                             tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName()));
                 }
-                cellLockCount = cellsToLock.size();
+                cellLockCount += cellsToLock.size();
             }
 
             if (conflictHandler.lockRowsForConflicts()) {u}(j2 (7d7991179f6e4684109c2ccd8f751d1e0e7e0b70j3 eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj3 modifiedj3 Kj3 Kj3 Kj3 https://github.com/palantir/atlasdb/blob/4c65995c7110c617f6cd12253403bfeee6e23022/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj3 https://github.com/palantir/atlasdb/raw/4c65995c7110c617f6cd12253403bfeee6e23022/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj3 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=4c65995c7110c617f6cd12253403bfeee6e23022j!3 X  @@ -2499,7 +2499,7 @@ public void setsRequestedCommitLocksCountCorrectly_serializable() {
     }
 
     @Test
-    public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigration_sameRow() {
+    public void setsRequestedCommitLocksCountCorrectlyForSameRow_serializableLockLevelMigration() {
         // Will request commit locks for cells and rows
         overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_LOCK_LEVEL_MIGRATION);
 
@@ -2522,13 +2522,32 @@ public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigratio
         assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
     }
 
+    @Test
+    public void setsRequestedCommitLocksCountCorrectlyForMultipleTables_serializableCell() {
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_CELL);
+        overrideConflictHandlerForTable(TABLE2, ConflictHandler.SERIALIZABLE_CELL);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(
+                TABLE,
+                ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(
+                TABLE2,
+                ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(0 + 1);
+    }
+
     @Test
     public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
         for (int idx = 0; idx < SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS; idx++) {
             putUncommittedAtFreshTimestamp(TABLE_NO_SWEEP, TEST_CELL);
         }
         assertThatLoggableExceptionThrownBy(
-                        () -> txManager.runTaskThrowOnConflict(txn -> txn.get(TABLE_NO_SWEEP, Set.of(TEST_CELL))))
+                () -> txManager.runTaskThrowOnConflict(txn -> txn.get(TABLE_NO_SWEEP, Set.of(TEST_CELL))))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageStartingWith("Unable to filter cells")
                 .hasExactlyArgs(ueu(2926f79b6213f00e947e604941cbcb3676b978c7}(sha(2926f79b6213f00e947e604941cbcb3676b978c7node_idEC_kwDOAjP5fdoAKDI5MjZmNzliNjIxM2YwMGU5NDdlNjA0OTQxY2JjYjM2NzZiOTc4Yzccommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-24T14:59:24Zu	committer}(j53 Lucas Meirelesj73 meireles31@msn.comj93 2023-07-24T14:59:24ZumessageArray equals instead of !=tree}(j-3 (c0f1cd7eb91a321e401f687ee2cb8a97ac1fa211url`https://api.github.com/repos/palantir/atlasdb/git/trees/c0f1cd7eb91a321e401f687ee2cb8a97ac1fa211ujE3 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2926f79b6213f00e947e604941cbcb3676b978c7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS+kcwACgkQJd22kJ7J
GiynBAf/ZejxN79TFhE/cjbHG2535Al1X318zpuocszs1svjVZjSRcFWwJKMIykE
37oc7oaW0J+o7Q5bXNKpYwjBM2HdQctxzAXqLY1HSY0nt2bM6CRmqd+l4Jy9yvM9
934Df04FzqQtAqjwKKRKC6t7zRBCn6B4itWKBgUrvFaqtkxBnOtuS7yxl0wntTnR
svfhSg08w17RrazRYoYU3zr1YtBS3GyYzZ5DRaWu4+5OJC2yPjWFdCbAGLz+6kAP
Wtu2G+HcIQqrsPI4HxGDCpevBG2xrtHDa0GrjraY1xrSkLGRy+cUyLG0zQcsu8MN
YbfbBfJZWQO/ZmSZerAxvPwWFnQZiA==
=fTul
-----END PGP SIGNATURE-----payloadtree c0f1cd7eb91a321e401f687ee2cb8a97ac1fa211
parent 797e63556ace1c9b902f15a4131c04577752d943
author Lucas Meireles <meireles31@msn.com> 1690210764 +0100
committer Lucas Meireles <meireles31@msn.com> 1690210764 +0100

Array equals instead of !=
uujE3 ^https://api.github.com/repos/palantir/atlasdb/commits/2926f79b6213f00e947e604941cbcb3676b978c7html_urlShttps://github.com/palantir/atlasdb/commit/2926f79b6213f00e947e604941cbcb3676b978c7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2926f79b6213f00e947e604941cbcb3676b978c7/commentsj33 }(loginLucasIMEidJg j/3 MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jE3 %https://api.github.com/users/LucasIMEjS3 https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj;3 }(jX3 LucasIMEjZ3 Jg j/3 MDQ6VXNlcjY3ODczMTE=j\3 3https://avatars.githubusercontent.com/u/6787311?v=4j^3 h5jE3 %https://api.github.com/users/LucasIMEjS3 https://github.com/LucasIMEja3 /https://api.github.com/users/LucasIME/followersjc3 <https://api.github.com/users/LucasIME/following{/other_user}je3 5https://api.github.com/users/LucasIME/gists{/gist_id}jg3 <https://api.github.com/users/LucasIME/starred{/owner}{/repo}ji3 3https://api.github.com/users/LucasIME/subscriptionsjk3 *https://api.github.com/users/LucasIME/orgsjm3 +https://api.github.com/users/LucasIME/reposjo3 6https://api.github.com/users/LucasIME/events{/privacy}jq3 5https://api.github.com/users/LucasIME/received_eventsjs3 Userju3 uparents]}(j-3 (797e63556ace1c9b902f15a4131c04577752d943jE3 ^https://api.github.com/repos/palantir/atlasdb/commits/797e63556ace1c9b902f15a4131c04577752d943jS3 Shttps://github.com/palantir/atlasdb/commit/797e63556ace1c9b902f15a4131c04577752d943uastats}(totalK	additionsK	deletionsKufiles](}(j-3 (01c9521e6ccfb1eedcc866fc0ffe42030010e1adfilenameZatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CachingTransaction.javastatusmodifiedj3 Kj3 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/2926f79b6213f00e947e604941cbcb3676b978c7/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2926f79b6213f00e947e604941cbcb3676b978c7/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.java?ref=2926f79b6213f00e947e604941cbcb3676b978c7patchX  @@ -39,6 +39,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.util.Pair;
+import java.util.Arrays;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.HashSet;
@@ -140,7 +141,7 @@ public Map<Cell, byte[]> getWithExpectedNumberOfCells(
         try {
             return getWithLoader(tableRef, cells, (tableReference, cachedCells, toRead) -> {
                         long nonEmptyValuesInCache = cachedCells.values().stream()
-                                .filter(value -> value != PtBytes.EMPTY_BYTE_ARRAY)
+                                .filter(value -> !Arrays.equals(value, PtBytes.EMPTY_BYTE_ARRAY))
                                 .count();
                         long numberOfCellsExpectingValuePostCache =
                                 expectedNumberOfPresentCells - nonEmptyValuesInCache;u}(j-3 (23644d168fad8b8492d0db83fcd939fd072a3b75j3 `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj3 modifiedj3 Kj3 Kj3 Kj3 https://github.com/palantir/atlasdb/blob/2926f79b6213f00e947e604941cbcb3676b978c7/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj3 https://github.com/palantir/atlasdb/raw/2926f79b6213f00e947e604941cbcb3676b978c7/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj3 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=2926f79b6213f00e947e604941cbcb3676b978c7j3 X  @@ -923,7 +923,8 @@ public Map<Cell, byte[]> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {
         return getCache().getWithCachedRef(tableRef, cells, cacheLookupResult -> {
             long cachedCellsWithNonEmptyValue = cacheLookupResult.cacheHits().values().stream()
-                    .filter(value -> value.value().isPresent() && value.value().get() != PtBytes.EMPTY_BYTE_ARRAY)
+                    .filter(value -> value.value().isPresent()
+                            && !Arrays.equals(value.value().get(), PtBytes.EMPTY_BYTE_ARRAY))
                     .count();
             long numberOfCellsExpectingValuePostCache = expectedNumberOfPresentCells - cachedCellsWithNonEmptyValue;
 ueu(e03a71421c88df6b753355018b374be3a837c5e5}(sha(e03a71421c88df6b753355018b374be3a837c5e5node_idEC_kwDOAjP5fdoAKGUwM2E3MTQyMWM4OGRmNmI3NTMzNTUwMThiMzc0YmUzYTgzN2M1ZTUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T23:46:00Zu	committer}(j3 
Ahmed Alouanej3 aalouane@palantir.comj3 2023-05-15T23:46:00ZumessageJMerge branch 'tlmetexxxxx' of github.com:palantir/atlasdb into tlmetexxxxxtree}(j3 (63206dcac6ec389c75ea26922a54d27c667e3b5aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/63206dcac6ec389c75ea26922a54d27c667e3b5auj3 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e03a71421c88df6b753355018b374be3a837c5e5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRixEQACgkQPlMHVIT1
yhqhDgf/Q9oc9JBrLIcAgCp0/Q/b1W4UzMmiu+oCUxhNKOAjKOrUQU0rP/17FXW9
kfDbcVQgnKyPElQebd55Pg93djXz8NCEXsvtKD6zIcyhMznm4k8WfHtWxwZaQY1j
teZXFF9zoNAVsGx0qCxvNM/xE8uX06aiSwkb/pl9Pr38sYDeQNFT6e775mHMzCxA
moviXf66okgrNp4tx/aYhlxRpmQgUw8aGMGl4moA8acqXCpCcQJC/6b1oJ3vHXZm
XkkHB+uoLmLgl3Tgeo870+mgToPe6kNog7v+TMJm+HxUvtf2i+wjWheqibgVn5B1
aOu6BukudrtuwdmAY2jWWAs53TJqCw==
=MUlF
-----END PGP SIGNATURE-----payloadXY  tree 63206dcac6ec389c75ea26922a54d27c667e3b5a
parent 8c97c5fb24eedde36cef5207dc6887cff4a6ebcd
parent 58f258ff9cf4f515f566c1a7484a2a35df4b333c
author Ahmed Alouane <aalouane@palantir.com> 1684194360 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684194360 +0100

Merge branch 'tlmetexxxxx' of github.com:palantir/atlasdb into tlmetexxxxx
uuj3 ^https://api.github.com/repos/palantir/atlasdb/commits/e03a71421c88df6b753355018b374be3a837c5e5html_urlShttps://github.com/palantir/atlasdb/commit/e03a71421c88df6b753355018b374be3a837c5e5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e03a71421c88df6b753355018b374be3a837c5e5/commentsj3 }(loginergo14idJj3 MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j3 #https://api.github.com/users/ergo14j3 https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj3 }(j3 ergo14j3 Jj3 MDQ6VXNlcjMwOTAzNzM2j3 4https://avatars.githubusercontent.com/u/30903736?v=4j3 h5j3 #https://api.github.com/users/ergo14j3 https://github.com/ergo14j3 -https://api.github.com/users/ergo14/followersM     j3 :https://api.github.com/users/ergo14/following{/other_user}j3 3https://api.github.com/users/ergo14/gists{/gist_id}j3 :https://api.github.com/users/ergo14/starred{/owner}{/repo}j3 1https://api.github.com/users/ergo14/subscriptionsj3 (https://api.github.com/users/ergo14/orgsj3 )https://api.github.com/users/ergo14/reposj3 4https://api.github.com/users/ergo14/events{/privacy}j3 3https://api.github.com/users/ergo14/received_eventsj3 Userj3 uparents](}(j3 (8c97c5fb24eedde36cef5207dc6887cff4a6ebcdj3 ^https://api.github.com/repos/palantir/atlasdb/commits/8c97c5fb24eedde36cef5207dc6887cff4a6ebcdj3 Shttps://github.com/palantir/atlasdb/commit/8c97c5fb24eedde36cef5207dc6887cff4a6ebcdu}(j3 (58f258ff9cf4f515f566c1a7484a2a35df4b333cj3 ^https://api.github.com/repos/palantir/atlasdb/commits/58f258ff9cf4f515f566c1a7484a2a35df4b333cj3 Shttps://github.com/palantir/atlasdb/commit/58f258ff9cf4f515f566c1a7484a2a35df4b333cuestats}(totalK 	additionsK 	deletionsK ufiles]u(07e7213c22e8a2f74e4cc21e9e473114ce475feb}(sha(07e7213c22e8a2f74e4cc21e9e473114ce475febnode_idEC_kwDOAjP5fdoAKDA3ZTcyMTNjMjJlOGEyZjc0ZTRjYzIxZTllNDczMTE0Y2U0NzVmZWIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-07-18T09:59:33Zu	committer}(j 4 
Sam Kramerj"4 skramer@palantir.comj$4 2023-07-18T09:59:33Zumessageclean uptree}(j4 (dca0faefac9b834c6615cc6dc0457b2de5d8e8c2url`https://api.github.com/repos/palantir/atlasdb/git/trees/dca0faefac9b834c6615cc6dc0457b2de5d8e8c2uj04 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/07e7213c22e8a2f74e4cc21e9e473114ce475feb
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmS2YoYACgkQmPPOpKR4
XS13WAgAqjPB684aCPIMyliQoO0ZUe6/4EjvpOWPTZ5s0x1qVTZa/+U8Ll0GxEvr
f/GakuNROdNNpEmff6L68IiRLh5NZFUzoI0VsxrJwkTT/Xh/LcHRk3GXiDnvA2JG
E29MJWnQ/nJI1ELU20995lYdLpsEwvfOWS+9f1LnLL0XrK9oDxQZ0+S9yrx7bxsp
5zwf6PnQVs+r63k2Ns1BylFCrw+EbKyN9n/WHatCTM4q+334X8dKaJi7WBhQCKM4
R3B+2PeU8X2seVF1+5OyinsR3Os0x4PIvvvwRLPHAXP4WfsIaB4+csAsXtQBtdrY
hGSrI3F5vx8O4YplqkBkEVWVPLeCAw==
=RCgF
-----END PGP SIGNATURE-----payloadtree dca0faefac9b834c6615cc6dc0457b2de5d8e8c2
parent 9e482a453d0a8ccd3c60547070a994d5d38a8005
author Sam Kramer <skramer@palantir.com> 1689674373 +0100
committer Sam Kramer <skramer@palantir.com> 1689674373 +0100

clean up
uuj04 ^https://api.github.com/repos/palantir/atlasdb/commits/07e7213c22e8a2f74e4cc21e9e473114ce475febhtml_urlShttps://github.com/palantir/atlasdb/commit/07e7213c22e8a2f74e4cc21e9e473114ce475febcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/07e7213c22e8a2f74e4cc21e9e473114ce475feb/commentsj4 }(login
Sam-KrameridJ^2_ j4 MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j04 'https://api.github.com/users/Sam-Kramerj>4 https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj&4 }(jC4 
Sam-KramerjE4 J^2_ j4 MDQ6VXNlcjYyMzg4MTQ=jG4 3https://avatars.githubusercontent.com/u/6238814?v=4jI4 h5j04 'https://api.github.com/users/Sam-Kramerj>4 https://github.com/Sam-KramerjL4 1https://api.github.com/users/Sam-Kramer/followersjN4 >https://api.github.com/users/Sam-Kramer/following{/other_user}jP4 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jR4 >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jT4 5https://api.github.com/users/Sam-Kramer/subscriptionsjV4 ,https://api.github.com/users/Sam-Kramer/orgsjX4 -https://api.github.com/users/Sam-Kramer/reposjZ4 8https://api.github.com/users/Sam-Kramer/events{/privacy}j\4 7https://api.github.com/users/Sam-Kramer/received_eventsj^4 Userj`4 uparents]}(j4 (9e482a453d0a8ccd3c60547070a994d5d38a8005j04 ^https://api.github.com/repos/palantir/atlasdb/commits/9e482a453d0a8ccd3c60547070a994d5d38a8005j>4 Shttps://github.com/palantir/atlasdb/commit/9e482a453d0a8ccd3c60547070a994d5d38a8005uastats}(totalK	additionsK	deletionsKufiles](}(j4 (5ca07fe2aa42e6cba6ed5f11e457e6d00b99df6efilenamefatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServices.javastatusmodifiedjz4 Kj{4 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/07e7213c22e8a2f74e4cc21e9e473114ce475feb/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javaraw_urlhttps://github.com/palantir/atlasdb/raw/07e7213c22e8a2f74e4cc21e9e473114ce475feb/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.java?ref=07e7213c22e8a2f74e4cc21e9e473114ce475febpatchX  @@ -98,10 +98,10 @@ static void waitForSchemaVersions(
      *     </li>
      * </ol>
      *
-     * @param schemaMutationTimeMillis      time to wait for nodes' schema versions to match.
+     * @param schemaMutationTimeMillis      Time to wait for nodes' schema versions to match.
      * @param client                        Cassandra client.
-     * @param unsafeSchemaChangeDescription description of the schema change that was performed prior to this check.
-     * @param availabilityRequirement Number of Cassandra nodes that must be reachable for schema consensus.
+     * @param unsafeSchemaChangeDescription Description of the schema change that was performed prior to this check.
+     * @param availabilityRequirement       Number of Cassandra nodes that must be reachable for schema consensus.
      * @throws IllegalStateException if we wait for more than schemaMutationTimeoutMillis specified in config.
      */
     static void waitForSchemaVersions(u}(j4 (1c58d50254ae7b8272b34df90b7342f7bd636537j4 Oatlasdb-commons/src/main/java/com/palantir/util/io/AvailabilityRequirement.javaj4 modifiedjz4 Kj{4 Kj4 Kj4 https://github.com/palantir/atlasdb/blob/07e7213c22e8a2f74e4cc21e9e473114ce475feb/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirement.javaj4 https://github.com/palantir/atlasdb/raw/07e7213c22e8a2f74e4cc21e9e473114ce475feb/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirement.javaj4 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirement.java?ref=07e7213c22e8a2f74e4cc21e9e473114ce475febj4 X  @@ -35,7 +35,7 @@ protected int calculateRequired(int total) {
 
     protected abstract int calculateRequired(int total);
 
-    public boolean satisfies(int available, int total) {
+    public final boolean satisfies(int available, int total) {
         Preconditions.checkArgument(
                 available >= 0 && total >= 0,
                 "Available and total must be non-negative.",u}(j4 (02ba7a7df417ddea93cfbe362d001e291e48f2ffj4 Satlasdb-commons/src/test/java/com/palantir/util/io/AvailabilityRequirementTest.javaj4 modifiedjz4 Kj{4 Kj4 K
j4 https://github.com/palantir/atlasdb/blob/07e7213c22e8a2f74e4cc21e9e473114ce475feb/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirementTest.javaj4 https://github.com/palantir/atlasdb/raw/07e7213c22e8a2f74e4cc21e9e473114ce475feb/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirementTest.javaj4 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirementTest.java?ref=07e7213c22e8a2f74e4cc21e9e473114ce475febj4 X
  @@ -20,6 +20,7 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import org.junit.Test;
 
 public final class AvailabilityRequirementTest {
@@ -30,12 +31,14 @@ public void anySatisfiesGreaterThanZero() {
 
     @Test
     public void anySatisfiesWhenEquivalentToTotal() {
+        assertThat(AvailabilityRequirement.ANY.satisfies(1, 1)).isTrue();
         assertThat(AvailabilityRequirement.ANY.satisfies(10, 10)).isTrue();
     }
 
     @Test
     public void anyDoesNotSatisfyWhenZero() {
         assertThat(AvailabilityRequirement.ANY.satisfies(0, 10)).isFalse();
+        assertThat(AvailabilityRequirement.ANY.satisfies(0, 0)).isFalse();
     }
 
     @Test
@@ -47,12 +50,15 @@ public void quorumSatisfiesWhenHasMajority() {
 
     @Test
     public void quorumDoesNotSatisfyWhenItDoesNotHaveMajority() {
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(0, 0)).isFalse();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(0, 1)).isFalse();
         assertThat(AvailabilityRequirement.QUORUM.satisfies(1, 3)).isFalse();
         assertThat(AvailabilityRequirement.QUORUM.satisfies(3, 6)).isFalse();
     }
 
     @Test
     public void quorumSatisfiesWhenHasTotal() {
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(1, 1)).isTrue();
         assertThat(AvailabilityRequirement.QUORUM.satisfies(10, 10)).isTrue();
     }
 
@@ -74,14 +80,14 @@ public void satisfiesThrowsWhenBothAreNegative() {
     @Test
     public void satisfiesThrowsWhenAvailableIsGreaterThanTotal() {
         assertThatLoggableExceptionThrownBy(() -> AvailabilityRequirement.ANY.satisfies(11, 10))
-                .isInstanceOf(IllegalArgumentException.class)
+                .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Available must be less than or equal to total.")
                 .hasExactlyArgs(SafeArg.of("available", 11), SafeArg.of("total", 10));
     }
 
     private static void assertThatNegativeArgumentsExceptionThrowsForArguments(int available, int total) {
         assertThatLoggableExceptionThrownBy(() -> AvailabilityRequirement.ANY.satisfies(available, total))
-                .isInstanceOf(IllegalArgumentException.class)
+                .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Available and total must be non-negative.")
                 .hasExactlyArgs(SafeArg.of("available", available), SafeArg.of("total", total));
     }ueu(278dfd0688276188ce1df0c2201b51e9e6bfccb2}(sha(278dfd0688276188ce1df0c2201b51e9e6bfccb2node_idEC_kwDOAjP5fdoAKDI3OGRmZDA2ODgyNzYxODhjZTFkZjBjMjIwMWI1MWU5ZTZiZmNjYjIcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-03-31T13:06:51Zu	committer}(j4 GitHubj4 noreply@github.comj4 2023-03-31T13:06:51Zumessage2Upgrade dependencies (#6497)

Upgrade dependenciestree}(j4 (e169da042e70893435a8c41cf81ce793c06eda35url`https://api.github.com/repos/palantir/atlasdb/git/trees/e169da042e70893435a8c41cf81ce793c06eda35uj4 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/278dfd0688276188ce1df0c2201b51e9e6bfccb2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkJtrrCRBK7hj4Ov3rIwAAQyYIAB5Z3moCuJwLDlcW5+VlzYkd
vZt+yXW5Do2sa8yzEhd+jZnhmJcM2PMop1ZQ92Id+hQptk5t3QLHNBVB0UdooanZ
AJKq03QFwgdrVdkQScRva3GoQihb2u3T/hDzEP2++QrrIkvFOa5H7WZd45c65QAs
mR3PWYgnW6w0Mb808yMAP30bVMJoXbqGzTeXKYWTG7GyrXF8q7SHE6mh54SSxhsQ
iiob8qxxo7jvJdY4PI38HTO5lo902XXMx4WSCmr/TyhktHORKRGQjbtiN5KQxJYO
stV+4hvWackN2AXYPnD5sna9xaO2pSu/zezOrGpUObUP+zruaFtCIcR5kSfdXHk=
=yXHe
-----END PGP SIGNATURE-----
payloadX	  tree e169da042e70893435a8c41cf81ce793c06eda35
parent 4d6cb8483fa936b8e70f91c7db7bdcd58b814fd0
author David Schlosnagle <davids@palantir.com> 1680268011 -0400
committer GitHub <noreply@github.com> 1680268011 +0000

Upgrade dependencies (#6497)

Upgrade dependencies
uuj4 ^https://api.github.com/repos/palantir/atlasdb/commits/278dfd0688276188ce1df0c2201b51e9e6bfccb2html_urlShttps://github.com/palantir/atlasdb/commit/278dfd0688276188ce1df0c2201b51e9e6bfccb2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/278dfd0688276188ce1df0c2201b51e9e6bfccb2/commentsj4 }(loginschlosnaidMBj4 MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j4 %https://api.github.com/users/schlosnaj4 https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj4 }(j4 web-flowj4 J/j4 MDQ6VXNlcjE5ODY0NDQ3j4 4https://avatars.githubusercontent.com/u/19864447?v=4j4 h5j4 %https://api.github.com/users/web-flowj4 https://github.com/web-flowj4 /https://api.github.com/users/web-flow/followersj4 <https://api.github.com/users/web-flow/following{/other_user}j4 5https://api.github.com/users/web-flow/gists{/gist_id}j4 <https://api.github.com/users/web-flow/starred{/owner}{/repo}j4 3https://api.github.com/users/web-flow/subscriptionsj4 *https://api.github.com/users/web-flow/orgsj4 +https://api.github.com/users/web-flow/reposj4 6https://api.github.com/users/web-flow/events{/privacy}j4 5https://api.github.com/users/web-flow/received_eventsj4 Userj4 uparents]}(j4 (4d6cb8483fa936b8e70f91c7db7bdcd58b814fd0j4 ^https://api.github.com/repos/palantir/atlasdb/commits/4d6cb8483fa936b8e70f91c7db7bdcd58b814fd0j4 Shttps://github.com/palantir/atlasdb/commit/4d6cb8483fa936b8e70f91c7db7bdcd58b814fd0uastats}(totalK	additionsKJ	deletionsKJufiles](}(j4 (0ce3c77e081de995d034aa3ee95b31fb9f73d736filename
versions.lockstatusmodifiedj5 KAj5 K@changesKblob_url_https://github.com/palantir/atlasdb/blob/278dfd0688276188ce1df0c2201b51e9e6bfccb2/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/278dfd0688276188ce1df0c2201b51e9e6bfccb2/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=278dfd0688276188ce1df0c2201b51e9e6bfccb2patchX<  @@ -8,9 +8,9 @@ com.boundary:high-scale-lib:1.0.6 (2 constraints: 9d14d4a0)
 com.clearspring.analytics:stream:2.5.2 (1 constraints: 970f7788)
 com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
-com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c28159b8)
-com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bab50372)
-com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 01ba3a29)
+com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c38132bb)
+com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bbb5dd72)
+com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 03bafb2e)
 com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e133df00)
 com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7e1c9da4)
 com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2 (4 constraints: 2244332b)
@@ -25,7 +25,7 @@ com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9
 com.fasterxml.jackson.module:jackson-module-blackbird:2.14.2 (1 constraints: b40e625e)
 com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.2 (2 constraints: db2e8469)
 com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 17cea3fd)
+com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 24cec010)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -67,28 +67,28 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:6.68.0 (5 constraints: ab549471)
-com.palantir.conjure.java:conjure-undertow-annotations:6.68.0 (1 constraints: 44056d3b)
-com.palantir.conjure.java:conjure-undertow-lib:6.68.0 (2 constraints: 8b1c75b0)
-com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 41692d74)
+com.palantir.conjure.java:conjure-lib:6.77.0 (5 constraints: ad546073)
+com.palantir.conjure.java:conjure-undertow-annotations:6.77.0 (1 constraints: 4605743b)
+com.palantir.conjure.java:conjure-undertow-lib:6.77.0 (2 constraints: 8d1cfdb0)
+com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 3d696e70)
 com.palantir.conjure.java.api:service-config:2.34.0 (5 constraints: 724d79ca)
 com.palantir.conjure.java.api:ssl-config:2.34.0 (3 constraints: e22a0da5)
-com.palantir.conjure.java.runtime:client-config:7.40.0 (6 constraints: bc6b702d)
+com.palantir.conjure.java.runtime:client-config:7.40.0 (6 constraints: a46bdb28)
 com.palantir.conjure.java.runtime:conjure-java-annotations:7.40.0 (1 constraints: c1187e9e)
 com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.40.0 (2 constraints: c521007b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.40.0 (6 constraints: 386e9f88)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.40.0 (6 constraints: 306e1085)
 com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.40.0 (1 constraints: 4505703b)
 com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.40.0 (1 constraints: 4505703b)
 com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:keystores:7.40.0 (3 constraints: 1e2a555f)
+com.palantir.conjure.java.runtime:keystores:7.40.0 (3 constraints: 162a3e5f)
 com.palantir.conjure.java.runtime:refresh-utils:7.40.0 (2 constraints: 051e6045)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.74.0 (2 constraints: 7c29b801)
-com.palantir.dialogue:dialogue-blocking-channels:3.74.0 (2 constraints: db2399b3)
-com.palantir.dialogue:dialogue-clients:3.74.0 (1 constraints: 3d05503b)
-com.palantir.dialogue:dialogue-core:3.74.0 (3 constraints: 7d3d43e1)
-com.palantir.dialogue:dialogue-futures:3.74.0 (3 constraints: d13392be)
-com.palantir.dialogue:dialogue-serde:3.74.0 (3 constraints: b82e92a1)
-com.palantir.dialogue:dialogue-target:3.74.0 (7 constraints: 8976a556)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.77.0 (2 constraints: 7f29c101)
+com.palantir.dialogue:dialogue-blocking-channels:3.77.0 (2 constraints: e12335b4)
+com.palantir.dialogue:dialogue-clients:3.77.0 (1 constraints: 4305623b)
+com.palantir.dialogue:dialogue-core:3.77.0 (3 constraints: 833de5e1)
+com.palantir.dialogue:dialogue-futures:3.77.0 (3 constraints: da3348c0)
+com.palantir.dialogue:dialogue-serde:3.77.0 (3 constraints: c12e6ba4)
+com.palantir.dialogue:dialogue-target:3.77.0 (7 constraints: 9e760764)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -105,17 +105,17 @@ com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: f7178aeb)
 com.palantir.safe-logging:safe-logging:3.2.0 (28 constraints: 0cd34fc4)
 com.palantir.safethreadlocalrandom:safe-thread-local-random:0.1.0 (3 constraints: 933225f9)
 com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
-com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 455c618f)
-com.palantir.tracing:tracing:6.17.0 (8 constraints: f17d5057)
-com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 134502f4)
+com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 485c7290)
+com.palantir.tracing:tracing:6.17.0 (8 constraints: f97d045e)
+com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 1745b4f5)
 com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 441994bb)
 com.palantir.tritium:tritium-api:0.64.0 (6 constraints: 5052c7ce)
 com.palantir.tritium:tritium-caffeine:0.64.0 (1 constraints: 3c05433b)
 com.palantir.tritium:tritium-core:0.64.0 (5 constraints: 5d43281d)
 com.palantir.tritium:tritium-lib:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: e96b2dd3)
+com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f16b49d8)
 com.palantir.tritium:tritium-proxy:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-registry:0.64.0 (12 constraints: ecd2692c)
+com.palantir.tritium:tritium-registry:0.64.0 (12 constraints: f6d27f35)
 com.palantir.tritium:tritium-slf4j:0.64.0 (2 constraints: bd138370)
 com.palantir.tritium:tritium-time:0.64.0 (1 constraints: 820e8359)
 com.palantir.tritium:tritium-tracing:0.64.0 (1 constraints: 820e8359)
@@ -155,51 +155,52 @@ io.dropwizard.metrics:metrics-jvm:4.2.12 (3 constraints: 1b2ec84e)
 io.dropwizard.metrics:metrics-logback:4.2.12 (1 constraints: b10e925e)
 io.dropwizard.metrics:metrics-servlets:4.2.12 (1 constraints: 730daf2c)
 io.leangen.geantyref:geantyref:1.3.13 (1 constraints: bb08bd94)
-io.netty:netty-all:4.1.85.Final (1 constraints: e21188fd)
-io.netty:netty-buffer:4.1.85.Final (14 constraints: 57d94af6)
-io.netty:netty-codec:4.1.85.Final (7 constraints: 5c5e624a)
-io.netty:netty-codec-dns:4.1.85.Final (2 constraints: aa199904)
-io.netty:netty-codec-haproxy:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-http:4.1.85.Final (2 constraints: 131acd1f)
-io.netty:netty-codec-http2:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-memcache:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-mqtt:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-redis:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-smtp:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-socks:4.1.85.Final (2 constraints: 131acd1f)
-io.netty:netty-codec-stomp:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-xml:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-common:4.1.85.Final (17 constraints: e3069ffc)
-io.netty:netty-handler:4.1.85.Final (4 constraints: 673c7bac)
-io.netty:netty-handler-proxy:4.1.85.Final (2 constraints: 5b12ca2a)
-io.netty:netty-resolver:4.1.85.Final (4 constraints: 0134e5fa)
-io.netty:netty-resolver-dns:4.1.85.Final (2 constraints: 051f31b1)
-io.netty:netty-resolver-dns-classes-macos:4.1.85.Final (2 constraints: 9e1ec28f)
-io.netty:netty-resolver-dns-native-macos:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-transport:4.1.85.Final (14 constraints: ffd205e6)
-io.netty:netty-transport-classes-epoll:4.1.85.Final (2 constraints: b01d1135)
-io.netty:netty-transport-classes-kqueue:4.1.85.Final (2 constraints: 241eb356)
-io.netty:netty-transport-native-epoll:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-transport-native-kqueue:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-transport-native-unix-common:4.1.85.Final (7 constraints: 1f78440c)
-io.netty:netty-transport-rxtx:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-transport-sctp:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-transport-udt:4.1.85.Final (1 constraints: 000b22cf)
+io.netty:netty-all:4.1.90.Final (1 constraints: e21188fd)
+io.netty:netty-buffer:4.1.90.Final (14 constraints: 1fd940ae)
+io.netty:netty-codec:4.1.90.Final (7 constraints: 405eed3b)
+io.netty:netty-codec-dns:4.1.90.Final (2 constraints: a219b703)
+io.netty:netty-codec-haproxy:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-codec-http:4.1.90.Final (2 constraints: 0b1ae71e)
+io.netty:netty-codec-http2:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-codec-memcache:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-codec-mqtt:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-codec-redis:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-codec-smtp:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-codec-socks:4.1.90.Final (2 constraints: 0b1ae71e)
+io.netty:netty-codec-stomp:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-codec-xml:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-common:4.1.90.Final (17 constraints: 9f060892)
+io.netty:netty-handler:4.1.90.Final (4 constraints: 5b3c2eaa)
+io.netty:netty-handler-proxy:4.1.90.Final (2 constraints: 53120c2a)
+io.netty:netty-handler-ssl-ocsp:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-resolver:4.1.90.Final (4 constraints: f133a9f6)
+io.netty:netty-resolver-dns:4.1.90.Final (2 constraints: fd1e17b0)
+io.netty:netty-resolver-dns-classes-macos:4.1.90.Final (2 constraints: 961eac8e)
+io.netty:netty-resolver-dns-native-macos:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-transport:4.1.90.Final (14 constraints: c7d2039e)
+io.netty:netty-transport-classes-epoll:4.1.90.Final (2 constraints: a81d0734)
+io.netty:netty-transport-classes-kqueue:4.1.90.Final (2 constraints: 1c1ea555)
+io.netty:netty-transport-native-epoll:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-transport-native-kqueue:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf9)
+io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
 io.undertow:undertow-core:2.2.22.Final (2 constraints: 341d4606)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
 jakarta.activation:jakarta.activation-api:1.2.2 (3 constraints: 4e3741b6)
-jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 29799834)
+jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 26793e31)
 jakarta.inject:jakarta.inject-api:1.0.5 (13 constraints: decbc9f9)
 jakarta.servlet:jakarta.servlet-api:4.0.4 (10 constraints: 7b9def70)
 jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
-jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (19 constraints: 0348c6c3)
+jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (18 constraints: 5a38d98d)
 jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
-joda-time:joda-time:2.12.1 (6 constraints: 8059c3f0)
+joda-time:joda-time:2.12.5 (6 constraints: 845987f4)
 junit:junit:4.13.2 (8 constraints: 5a9c5baf)
-net.bytebuddy:byte-buddy:1.14.3 (3 constraints: 3b259091)
+net.bytebuddy:byte-buddy:1.14.3 (3 constraints: 3d25d791)
 net.bytebuddy:byte-buddy-agent:1.14.1 (1 constraints: 410b3fde)
 net.java.dev.jna:jna:4.1.0 (2 constraints: 6e1bbbad)
 net.jpountz.lz4:lz4:1.3.0 (2 constraints: 971453a0)
@@ -215,12 +216,12 @@ org.apache.commons:commons-lang3:3.12.0 (8 constraints: 5873a6cf)
 org.apache.commons:commons-math3:3.2 (2 constraints: 90196ff8)
 org.apache.commons:commons-pool2:2.11.1 (1 constraints: 3705333b)
 org.apache.commons:commons-text:1.9 (1 constraints: b5102f9b)
-org.apache.httpcomponents.client5:httpclient5:5.2.1 (2 constraints: 7618a7a4)
-org.apache.httpcomponents.core5:httpcore5:5.2 (3 constraints: 40388deb)
+org.apache.httpcomponents.client5:httpclient5:5.2.1 (2 constraints: d518b1c3)
+org.apache.httpcomponents.core5:httpcore5:5.2.1 (3 constraints: 9f383c39)
 org.apache.httpcomponents.core5:httpcore5-h2:5.2 (1 constraints: dd12c315)
 org.apache.thrift:libthrift:0.17.0 (4 constraints: 00372854)
-org.assertj:assertj-core:3.23.1 (4 constraints: 9d36e469)
-org.assertj:assertj-guava:3.4.0 (1 constraints: 09050636)
+org.assertj:assertj-core:3.24.2 (4 constraints: a136076b)
+org.assertj:assertj-guava:3.24.2 (1 constraints: 3d05473b)
 org.awaitility:awaitility:4.2.0 (2 constraints: c71a893b)
 org.caffinitas.ohc:ohc-core:0.3.4 (1 constraints: 950f6988)
 org.checkerframework:checker-compat-qual:2.5.5 (2 constraints: 1f1d1717)
@@ -304,13 +305,13 @@ org.ow2.asm:asm-tree:5.0.3 (4 constraints: d8272223)
 org.ow2.asm:asm-util:5.0.3 (1 constraints: ee09d4b2)
 org.postgresql:postgresql:42.4.3 (1 constraints: 3f05523b)
 org.reflections:reflections:0.10.2 (1 constraints: 3505253b)
-org.rocksdb:rocksdbjni:7.7.3 (1 constraints: 13052636)
+org.rocksdb:rocksdbjni:7.9.2 (1 constraints: 14052b36)
 org.slf4j:jcl-over-slf4j:1.7.36 (3 constraints: 492febed)
 org.slf4j:jul-to-slf4j:1.7.36 (1 constraints: b90e9c5e)
 org.slf4j:log4j-over-slf4j:1.7.36 (3 constraints: 492febed)
 org.slf4j:slf4j-api:1.7.36 (44 constraints: 8180995b)
 org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
-org.wildfly.common:wildfly-common:1.6.0.Final (3 constraints: 94236ea3)
+org.wildfly.common:wildfly-common:1.6.0.Final (4 constraints: 3f390b3d)
 org.xerial:sqlite-jdbc:3.36.0 (1 constraints: 3e054f3b)
 org.xerial.snappy:snappy-java:1.1.8 (2 constraints: 011529cb)
 org.yaml:snakeyaml:1.33 (5 constraints: 0a4c5570)
@@ -351,7 +352,7 @@ org.codehaus.groovy:groovy-sql:2.5.14 (1 constraints: b00d2137)
 org.codehaus.groovy:groovy-test:2.5.14 (2 constraints: ed12fb43)
 org.codehaus.groovy:groovy-test-junit5:2.5.14 (1 constraints: b00d2137)
 org.codehaus.groovy:groovy-testng:2.5.14 (1 constraints: b00d2137)
-org.freemarker:freemarker:2.3.31 (1 constraints: 3b053c3b)
+org.freemarker:freemarker:2.3.32 (1 constraints: 3c053d3b)
 org.glassfish.grizzly:connection-pool:2.4.4 (1 constraints: 1418374b)
 org.glassfish.grizzly:grizzly-framework:2.4.4 (3 constraints: bc31e6d7)
 org.glassfish.grizzly:grizzly-http:2.4.4 (1 constraints: e11123e3)u}(j4 (2b91a794fa00263a961c04723fe168531120f1eaj5 versions.propsj	5 modifiedj5 K	j5 K
j5 Kj5 `https://github.com/palantir/atlasdb/blob/278dfd0688276188ce1df0c2201b51e9e6bfccb2/versions.propsj5 _https://github.com/palantir/atlasdb/raw/278dfd0688276188ce1df0c2201b51e9e6bfccb2/versions.propsj5 rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=278dfd0688276188ce1df0c2201b51e9e6bfccb2j5 X		  @@ -2,7 +2,7 @@ com.boundary:high-scale-lib = 1.0.6
 com.ea.agentloader:ea-agent-loader = 1.0.3
 com.fasterxml.jackson.*:* = 2.14.2
 com.fasterxml.jackson.core:jackson-databind = 2.14.2
-com.github.ben-manes.caffeine:caffeine = 3.1.1
+com.github.ben-manes.caffeine:caffeine = 3.1.5
 com.github.peterwippermann.junit4:parameterized-suite = 1.1.0
 com.github.rholder:guava-retrying = 2.0.0
 com.github.stefanbirkner:system-rules = 1.19.0
@@ -25,9 +25,9 @@ com.palantir.common:streams = 2.1.0
 com.palantir.config.crypto:* = 5.1.0
 com.palantir.conjure.java.api:* = 2.29.0
 com.palantir.conjure.java.runtime:* = 7.39.0
-com.palantir.conjure.java:* = 6.66.0
+com.palantir.conjure.java:* = 6.77.0
 com.palantir.conjure:conjure = 4.35.0
-com.palantir.dialogue:* = 3.71.0
+com.palantir.dialogue:* = 3.77.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
 com.palantir.goethe:* = 0.9.0
@@ -45,26 +45,25 @@ commons-dbutils:* = 1.7
 commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
-io.netty:* = 4.1.85.Final
+io.netty:* = 4.1.90.Final
 io.undertow:* = 2.2.22.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2
-joda-time:joda-time = 2.12.1
+joda-time:joda-time = 2.12.5
 junit:junit = 4.13.2
 net.jcip:jcip-annotations = 1.0
 net.jpountz.lz4:lz4 = 1.3.0
 one.util:streamex = 0.8.1
 org.apache.commons:commons-lang3 = 3.12.0
 org.apache.commons:commons-pool2 = 2.11.1
-org.apache.httpcomponents.client5:httpclient5 = 5.2
-org.assertj:assertj-* = 3.23.1
-org.assertj:assertj-guava = 3.4.0
+org.apache.httpcomponents.client5:httpclient5 = 5.2.1
+org.assertj:* = 3.24.2
 org.awaitility:awaitility = 4.2.0
 org.clojure:clojure = 1.8.0
 org.derive4j:* = 1.1.1
 org.eclipse.collections:* = 11.1.0
-org.freemarker:freemarker = 2.3.31
+org.freemarker:freemarker = 2.3.32
 org.glassfish.jersey.core:jersey-common = 2.34
 org.gmock:* = 0.8.3
 org.immutables:* = 2.8.8
@@ -76,7 +75,7 @@ org.mindrot:jbcrypt = 0.4
 org.mockito:* = 5.2.0
 org.openjdk.jmh:* = 1.36
 org.reflections:reflections = 0.10.2
-org.rocksdb:rocksdbjni = 7.7.3
+org.rocksdb:rocksdbjni = 7.9.2
 org.slf4j:* = 1.7.36
 org.wildfly.common:wildfly-common = 1.6.0.Final
 org.xerial.snappy:snappy-java = 1.1.8ueu(c7eba082a59c974e9f17676f48d7a3ccf19b1849}(sha(c7eba082a59c974e9f17676f48d7a3ccf19b1849node_idEC_kwDOAjP5fdoAKGM3ZWJhMDgyYTU5Yzk3NGU5ZjE3Njc2ZjQ4ZDdhM2NjZjE5YjE4NDkcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-03-21T14:35:20Zu	committer}(j&5 
svc-changelogj(5 svc-changelog@palantir.comj*5 2023-03-21T14:35:20ZumessageAdd generated changelog entriestree}(j5 (e12dd2f27febdcdf584a98b87199d97c971168a4url`https://api.github.com/repos/palantir/atlasdb/git/trees/e12dd2f27febdcdf584a98b87199d97c971168a4uj65 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c7eba082a59c974e9f17676f48d7a3ccf19b1849
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQZwKgJEHYaJX37fAFQAAAzDQEAjmGhm5Z+alFcPh5juMKHARdr
4XX4SCs3sw0oPdLo/gcA/RxVPXzkwJCJ7HSkbll2mSy0twwi2Dq4DeCCcovetBii
=oFGK
-----END PGP SIGNATURE-----payloadX  tree e12dd2f27febdcdf584a98b87199d97c971168a4
parent a563dda8deec06188d726e4183970904defc89ab
author svc-changelog <svc-changelog@palantir.com> 1679409320 +0000
committer svc-changelog <svc-changelog@palantir.com> 1679409320 +0000

Add generated changelog entriesuuj65 ^https://api.github.com/repos/palantir/atlasdb/commits/c7eba082a59c974e9f17676f48d7a3ccf19b1849html_urlShttps://github.com/palantir/atlasdb/commit/c7eba082a59c974e9f17676f48d7a3ccf19b1849comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c7eba082a59c974e9f17676f48d7a3ccf19b1849/commentsj$5 }(login
svc-changelogidJ#j 5 MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j65 *https://api.github.com/users/svc-changelogjD5  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj,5 }(jI5 
svc-changelogjK5 J#j 5 MDQ6VXNlcjg0MDc3NjAzjM5 4https://avatars.githubusercontent.com/u/84077603?v=4jO5 h5j65 *https://api.github.com/users/svc-changelogjD5  https://github.com/svc-changelogjR5 4https://api.github.com/users/svc-changelog/followersjT5 Ahttps://api.github.com/users/svc-changelog/following{/other_user}jV5 :https://api.github.com/users/svc-changelog/gists{/gist_id}jX5 Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jZ5 8https://api.github.com/users/svc-changelog/subscriptionsj\5 /https://api.github.com/users/svc-changelog/orgsj^5 0https://api.github.com/users/svc-changelog/reposj`5 ;https://api.github.com/users/svc-changelog/events{/privacy}jb5 :https://api.github.com/users/svc-changelog/received_eventsjd5 Userjf5 uparents]}(j5 (a563dda8deec06188d726e4183970904defc89abj65 ^https://api.github.com/repos/palantir/atlasdb/commits/a563dda8deec06188d726e4183970904defc89abjD5 Shttps://github.com/palantir/atlasdb/commit/a563dda8deec06188d726e4183970904defc89abuastats}(totalK	additionsK	deletionsK ufiles]}(j5 (7a46efe502264df936f40615fb54393461e5d277filename$changelog/@unreleased/pr-6475.v2.ymlstatusaddedj5 Kj5 K changesKblob_url|https://github.com/palantir/atlasdb/blob/c7eba082a59c974e9f17676f48d7a3ccf19b1849/changelog%2F%40unreleased%2Fpr-6475.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/c7eba082a59c974e9f17676f48d7a3ccf19b1849/changelog%2F%40unreleased%2Fpr-6475.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6475.v2.yml?ref=c7eba082a59c974e9f17676f48d7a3ccf19b1849patch@@ -0,0 +1,5 @@
+type: feature
+feature:
+  description: '[TEX] Wrap KVS service reads and track bytes read (no metrics)'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6475uau(24a6b347d57033555eef2a282aec873b79f53734}(sha(24a6b347d57033555eef2a282aec873b79f53734node_idEC_kwDOAjP5fdoAKDI0YTZiMzQ3ZDU3MDMzNTU1ZWVmMmEyODJhZWM4NzNiNzlmNTM3MzQcommit}(author}(nameWalker Herndonemail1107518122+walker-herndon@users.noreply.github.comdate2023-08-21T14:30:54Zu	committer}(j5 GitHubj5 noreply@github.comj5 2023-08-21T14:30:54Zumessage0Testing Nit

Revert dialogue version to test Nittree}(j5 (a4b7f25c48847f000bf7430766c82d10e190af58url`https://api.github.com/repos/palantir/atlasdb/git/trees/a4b7f25c48847f000bf7430766c82d10e190af58uj5 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/24a6b347d57033555eef2a282aec873b79f53734
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk43UeCRBK7hj4Ov3rIwAALkoIAG+urqGqmjBgFa618lf/iPKl
J/Gv2m5cl6ZqIYKLy0fsNKklBl9Nnph5hG8WMUJC+uQwLGcshrxW2yJJlquiywY3
KDLP1zNJqe80ZKqdX+7RIPKczMy1NIhVRuWaFV1PpPs9MIgVl+VQGgQTGG9qYmIL
gxd8IFPBUhd3TVM9geRYvqjWauBF+DlC2wxUSPNeaAaxOI5CrojfichDoCv0jGqG
JSQsE9kb3uacKqwGweWBRu5bi4XRh9rTMHl21iH27ryZJxRCG282+4ztrAZdo8ag
1Rl9P3t7Qeh/hVJTlAPmba4W68GOPcvk/5C4UdvXxnBelMzi/6dha186E7swCQM=
=QNqf
-----END PGP SIGNATURE-----
payloadX!  tree a4b7f25c48847f000bf7430766c82d10e190af58
parent 2c874d6e7de7571da0e3fa8bb605d5c067fe14bf
author Walker Herndon <107518122+walker-herndon@users.noreply.github.com> 1692628254 +0100
committer GitHub <noreply@github.com> 1692628254 +0100

Testing Nit

Revert dialogue version to test Nituuj5 ^https://api.github.com/repos/palantir/atlasdb/commits/24a6b347d57033555eef2a282aec873b79f53734html_urlShttps://github.com/palantir/atlasdb/commit/24a6b347d57033555eef2a282aec873b79f53734comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/24a6b347d57033555eef2a282aec873b79f53734/commentsj5 }(loginwalker-herndonidJhj5 U_kgDOBmiYqg
avatar_url5https://avatars.githubusercontent.com/u/107518122?v=4gravatar_idh5j5 +https://api.github.com/users/walker-herndonj5 !https://github.com/walker-herndon
followers_url5https://api.github.com/users/walker-herndon/followers
following_urlBhttps://api.github.com/users/walker-herndon/following{/other_user}	gists_url;https://api.github.com/users/walker-herndon/gists{/gist_id}starred_urlBhttps://api.github.com/users/walker-herndon/starred{/owner}{/repo}subscriptions_url9https://api.github.com/users/walker-herndon/subscriptionsorganizations_url0https://api.github.com/users/walker-herndon/orgs	repos_url1https://api.github.com/users/walker-herndon/repos
events_url<https://api.github.com/users/walker-herndon/events{/privacy}received_events_url;https://api.github.com/users/walker-herndon/received_eventstypeUser
site_adminuj5 }(j5 web-flowj5 J/j5 MDQ6VXNlcjE5ODY0NDQ3j5 4https://avatars.githubusercontent.com/u/19864447?v=4j5 h5j5 %https://api.github.com/users/web-flowj5 https://github.com/web-flowj5 /https://api.github.com/users/web-flow/followersj5 <https://api.github.com/users/web-flow/following{/other_user}j5 5https://api.github.com/users/web-flow/gists{/gist_id}j5 <https://api.github.com/users/web-flow/starred{/owner}{/repo}j5 3https://api.github.com/users/web-flow/subscriptionsj5 *https://api.github.com/users/web-flow/orgsj5 +https://api.github.com/users/web-flow/reposj5 6https://api.github.com/users/web-flow/events{/privacy}j5 5https://api.github.com/users/web-flow/received_eventsj5 Userj5 uparents]}(j5 (2c874d6e7de7571da0e3fa8bb605d5c067fe14bfj5 ^https://api.github.com/repos/palantir/atlasdb/commits/2c874d6e7de7571da0e3fa8bb605d5c067fe14bfj5 Shttps://github.com/palantir/atlasdb/commit/2c874d6e7de7571da0e3fa8bb605d5c067fe14bfuastats}(totalK	additionsK	deletionsKufiles]}(j5 (d941fe9af817c1367b2b571a4a479770a5188a77filenameversions.propsstatusmodifiedj5 Kj5 KchangesKblob_url`https://github.com/palantir/atlasdb/blob/24a6b347d57033555eef2a282aec873b79f53734/versions.propsraw_url_https://github.com/palantir/atlasdb/raw/24a6b347d57033555eef2a282aec873b79f53734/versions.propscontents_urlrhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=24a6b347d57033555eef2a282aec873b79f53734patchX  @@ -27,7 +27,7 @@ com.palantir.conjure.java.api:* = 2.29.0
 com.palantir.conjure.java.runtime:* = 7.39.0
 com.palantir.conjure.java:* = 7.17.0
 com.palantir.conjure:conjure = 4.38.0
-com.palantir.dialogue:* = 3.90.0
+com.palantir.dialogue:* = 3.86.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
 com.palantir.goethe:* = 0.11.0uau(767bd58368033f595781935359dce06e08d739fe}(sha(767bd58368033f595781935359dce06e08d739fenode_idEC_kwDOAjP5fdoAKDc2N2JkNTgzNjgwMzNmNTk1NzgxOTM1MzU5ZGNlMDZlMDhkNzM5ZmUcommit}(author}(nameLucas Sousa Meirelesemailmeireles31@msn.comdate2023-06-21T11:58:12Zu	committer}(j6 svc-autoreleasej6 -pd-foundry-infrastructure-notify@palantir.comj6 2023-06-21T11:58:12Zumessage"Autorelease 0.878.0-rc1

[skip ci]tree}(j6 (c5e1c27adaa27e777899d4ba15e4ca568d266beburl`https://api.github.com/repos/palantir/atlasdb/git/trees/c5e1c27adaa27e777899d4ba15e4ca568d266bebuj$6 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/767bd58368033f595781935359dce06e08d739fe
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmSS5dUACgkQhbrR8ip7mDCQ8AEA35Zw5sKRGIDCSMn9ekfj9hRy
bppVESrXaD5wx+cH5owBAME6gy1l1E6qRBo9lDI+2gv4cbIMSrR0T97jgNbcWV9e
=48RG
-----END PGP SIGNATURE-----
payloadX  tree c5e1c27adaa27e777899d4ba15e4ca568d266beb
parent ed7f2961d509072109126accddd6d06409230a87
author Lucas Sousa Meireles <meireles31@msn.com> 1687348692 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1687348692 +0000

Autorelease 0.878.0-rc1

[skip ci]uuj$6 ^https://api.github.com/repos/palantir/atlasdb/commits/767bd58368033f595781935359dce06e08d739fehtml_urlShttps://github.com/palantir/atlasdb/commit/767bd58368033f595781935359dce06e08d739fecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/767bd58368033f595781935359dce06e08d739fe/commentsj6 }(loginLucasIMEidJg j6 MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j$6 %https://api.github.com/users/LucasIMEj26 https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj6 }(j76 svc-autoreleasej96 J(j6 MDQ6VXNlcjUxNzE4MzQ2j;6 4https://avatars.githubusercontent.com/u/51718346?v=4j=6 h5j$6 ,https://api.github.com/users/svc-autoreleasej26 "https://github.com/svc-autoreleasej@6 6https://api.github.com/users/svc-autorelease/followersjB6 Chttps://api.github.com/users/svc-autorelease/following{/other_user}jD6 <https://api.github.com/users/svc-autorelease/gists{/gist_id}jF6 Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jH6 :https://api.github.com/users/svc-autorelease/subscriptionsjJ6 1https://api.github.com/users/svc-autorelease/orgsjL6 2https://api.github.com/users/svc-autorelease/reposjN6 =https://api.github.com/users/svc-autorelease/events{/privacy}jP6 <https://api.github.com/users/svc-autorelease/received_eventsjR6 UserjT6 uparents]}(j6 (ed7f2961d509072109126accddd6d06409230a87j$6 ^https://api.github.com/repos/palantir/atlasdb/commits/ed7f2961d509072109126accddd6d06409230a87j26 Shttps://github.com/palantir/atlasdb/commit/ed7f2961d509072109126accddd6d06409230a87uastats}(totalK 	additionsK 	deletionsK ufiles]u(5fdd8cad3638518242c1b9d7d5857de1b4622370}(sha(5fdd8cad3638518242c1b9d7d5857de1b4622370node_idEC_kwDOAjP5fdoAKDVmZGQ4Y2FkMzYzODUxODI0MmMxYjlkN2Q1ODU3ZGUxYjQ2MjIzNzAcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-13T22:51:04Zu	committer}(j|6 	Tom Papkej~6 tpapke@palantir.comj6 2023-06-13T22:51:04ZumessageRemove unused methodtree}(jt6 (e5169dc5d87840aff4ca6ef33c4cf08549e09491url`https://api.github.com/repos/palantir/atlasdb/git/trees/e5169dc5d87840aff4ca6ef33c4cf08549e09491uj6 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5fdd8cad3638518242c1b9d7d5857de1b4622370
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSI8tgACgkQmF9s0kaF
Iw0njgf/eTopAkTShzcPHniuIEqDp4LN1/gx9fjGDFtfoSaDYduNrQBXV3EcX6L1
dTAxvO2nrpjSNwiPG7ESCqeDJU2ojWcbBgAE1FsdlYcznTR0kccwoqxvYBAr0jev
G61vIZK+y7Gj2QV083qQIRN/16F1aSt+wffYBV5FzsX40/QFw8IMBU3FwAruIrLp
cbfvawvasz/7wbx45IlHAdCeisIKb24ZwgQdReilz0wGJsFmnEi10/6CV2yFthaW
nCtorH2xJ1RZWZnjR543IibViM0Qbwy1ILH5jahHRd1k5xXjc2NHJQtTnoGLCGMA
K+YO5asEMYQyezl4lD/gtyhvlKg4wg==
=O40b
-----END PGP SIGNATURE-----payloadtree e5169dc5d87840aff4ca6ef33c4cf08549e09491
parent f9af88a826053e49e7f8eb3728ea5a76adb3443e
author Tom Papke <tpapke@palantir.com> 1686696664 +0100
committer Tom Papke <tpapke@palantir.com> 1686696664 +0100

Remove unused method
uuj6 ^https://api.github.com/repos/palantir/atlasdb/commits/5fdd8cad3638518242c1b9d7d5857de1b4622370html_urlShttps://github.com/palantir/atlasdb/commit/5fdd8cad3638518242c1b9d7d5857de1b4622370comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5fdd8cad3638518242c1b9d7d5857de1b4622370/commentsjz6 }(login	ToemmscheidJbojv6 MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j6 &https://api.github.com/users/Toemmschej6 https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj6 }(j6 	Toemmschej6 Jbojv6 MDQ6VXNlcjQzNjc1NDkwj6 4https://avatars.githubusercontent.com/u/43675490?v=4j6 h5j6 &https://api.github.com/users/Toemmschej6 https://github.com/Toemmschej6 0https://api.github.com/users/Toemmsche/followersj6 =https://api.github.com/users/Toemmsche/following{/other_user}j6 6https://api.github.com/users/Toemmsche/gists{/gist_id}j6 =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j6 4https://api.github.com/users/Toemmsche/subscriptionsj6 +https://api.github.com/users/Toemmsche/orgsj6 ,https://api.github.com/users/Toemmsche/reposj6 7https://api.github.com/users/Toemmsche/events{/privacy}j6 6https://api.github.com/users/Toemmsche/received_eventsj6 Userj6 uparents]}(jt6 (f9af88a826053e49e7f8eb3728ea5a76adb3443ej6 ^https://api.github.com/repos/palantir/atlasdb/commits/f9af88a826053e49e7f8eb3728ea5a76adb3443ej6 Shttps://github.com/palantir/atlasdb/commit/f9af88a826053e49e7f8eb3728ea5a76adb3443euastats}(totalK	additionsK	deletionsKufiles]}(jt6 (d231c0acf8842ab162241aed25846f9ae9d8e637filenameQlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javastatusmodifiedj6 Kj6 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5fdd8cad3638518242c1b9d7d5857de1b4622370/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5fdd8cad3638518242c1b9d7d5857de1b4622370/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=5fdd8cad3638518242c1b9d7d5857de1b4622370patchX  @@ -84,7 +84,7 @@ Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot() {
     public UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> getRestrictedSnapshotAsOptionalLogArg(
             Set<LockDescriptor> lockDescriptors) {
         final String argName = "presumedClientThreadHoldersIfEnabled";
-        if (!isRecordingThreadInfo()) {
+        if (!threadInfoConfiguration.recordThreadInfo()) {
             return UnsafeArg.of(argName, Optional.empty());
         }
         Map<LockDescriptor, LockClientAndThread> latestSnapshot = lastKnownThreadInfoSnapshot;
@@ -95,10 +95,6 @@ public UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> getRestrict
         return UnsafeArg.of(argName, Optional.of(restrictedSnapshot));
     }
 
-    public boolean isRecordingThreadInfo() {
-        return this.threadInfoConfiguration.recordThreadInfo();
-    }
-
     @VisibleForTesting
     void takeSnapshot() {
         this.lastKnownThreadInfoSnapshot = tokenMapSupplier.get().keySet().stream()uau(86b8e9ba03548cac49c1319f05f11f9596b4662f}(sha(86b8e9ba03548cac49c1319f05f11f9596b4662fnode_idEC_kwDOAjP5fdoAKDg2YjhlOWJhMDM1NDhjYWM0OWMxMzE5ZjA1ZjExZjk1OTZiNDY2MmYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-26T10:41:34Zu	committer}(j6 
Ahmed Alouanej6 aalouane@palantir.comj6 2023-05-26T10:41:34ZumessageEmpty-Committree}(j6 (b27256bea55ecdab5fd3b92bc2c82c98f7b710f9url`https://api.github.com/repos/palantir/atlasdb/git/trees/b27256bea55ecdab5fd3b92bc2c82c98f7b710f9uj7 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/86b8e9ba03548cac49c1319f05f11f9596b4662f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRwjN8ACgkQPlMHVIT1
yhohagf/WwqwG+XaI+eYg7D7HaDZaixsmUX0spLP6muTa7Tu/ZG94VcUomw+UVl8
fjwHPcmZFXoo4dD+9gML8lRaGhq+jbDtzaexnCASj1Lkp22E+oF/8gS8o3kZ+jYA
wMO7bnnSYaH8SwHNfCQ1gixAvsBneqwwk2H4Zp/hDWo5NHfvTQfKkFBzsZK23XWB
gbP3mFG0oJoT3i73J5232PmY4sW+fY+6u6xuQBdCC1Xc3EriWYpHrve9iU0RqrBe
fVhAbZlSCv4vjrTQB8ehdNY8cFPRRdNRdrEJ5GJeEonYML4B+CZ8wXLLy+4+rei4
7wFFcFpW0+nAylB0pQRLmTws0jpSmA==
=JXn9
-----END PGP SIGNATURE-----payloadtree b27256bea55ecdab5fd3b92bc2c82c98f7b710f9
parent 24820153082f53974c94dcc24a1917fb7fc3c91a
author Ahmed Alouane <aalouane@palantir.com> 1685097694 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1685097694 +0100

Empty-Commit
uuj7 ^https://api.github.com/repos/palantir/atlasdb/commits/86b8e9ba03548cac49c1319f05f11f9596b4662fhtml_urlShttps://github.com/palantir/atlasdb/commit/86b8e9ba03548cac49c1319f05f11f9596b4662fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/86b8e9ba03548cac49c1319f05f11f9596b4662f/commentsj6 }(loginergo14idJj6 MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j7 #https://api.github.com/users/ergo14j7 https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj6 }(j7 ergo14j7 Jj6 MDQ6VXNlcjMwOTAzNzM2j7 4https://avatars.githubusercontent.com/u/30903736?v=4j7 h5j7 #https://api.github.com/users/ergo14j7 https://github.com/ergo14j7 -https://api.github.com/users/ergo14/followersj!7 :https://api.github.com/users/ergo14/following{/other_user}j#7 3https://api.github.com/users/ergo14/gists{/gist_id}j%7 :https://api.github.com/users/ergo14/starred{/owner}{/repo}j'7 1https://api.github.com/users/ergo14/subscriptionsj)7 (https://api.github.com/users/ergo14/orgsj+7 )https://api.github.com/users/ergo14/reposj-7 4https://api.github.com/users/ergo14/events{/privacy}j/7 3https://api.github.com/users/ergo14/received_eventsj17 Userj37 uparents]}(j6 (24820153082f53974c94dcc24a1917fb7fc3c91aj7 ^https://api.github.com/repos/palantir/atlasdb/commits/24820153082f53974c94dcc24a1917fb7fc3c91aj7 Shttps://github.com/palantir/atlasdb/commit/24820153082f53974c94dcc24a1917fb7fc3c91auastats}(totalK 	additionsK 	deletionsK ufiles]uu((bc3f88cd61fc1a598956c54e7c777c748bcdc0b9}(sha(bc3f88cd61fc1a598956c54e7c777c748bcdc0b9node_idEC_kwDOAjP5fdoAKGJjM2Y4OGNkNjFmYzFhNTk4OTU2YzU0ZTdjNzc3Yzc0OGJjZGMwYjkcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-04-25T17:24:30Zu	committer}(j[7 
svc-changelogj]7 svc-changelog@palantir.comj_7 2023-04-25T17:24:30ZumessageAdd generated changelog entriestree}(jS7 (ac9b7b9ab1413668ec9dd42658de6b42ce249178url`https://api.github.com/repos/palantir/atlasdb/git/trees/ac9b7b9ab1413668ec9dd42658de6b42ce249178ujk7 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bc3f88cd61fc1a598956c54e7c777c748bcdc0b9
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmRIDM4JEHYaJX37fAFQAAA4DwEA9Y2NHpr+A03pa0MOZ+Ys2jPC
pTDCUcsPyh2bRJIoBeQA/3bBMTI361DWGgJV6n19iUUqQVvpXY3k7Mvqu9oFFzBR
=4EzB
-----END PGP SIGNATURE-----payloadX  tree ac9b7b9ab1413668ec9dd42658de6b42ce249178
parent 68ab4a64463793a37e88ab76ac671ffe59c3a897
author svc-changelog <svc-changelog@palantir.com> 1682443470 +0000
committer svc-changelog <svc-changelog@palantir.com> 1682443470 +0000

Add generated changelog entriesuujk7 ^https://api.github.com/repos/palantir/atlasdb/commits/bc3f88cd61fc1a598956c54e7c777c748bcdc0b9html_urlShttps://github.com/palantir/atlasdb/commit/bc3f88cd61fc1a598956c54e7c777c748bcdc0b9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bc3f88cd61fc1a598956c54e7c777c748bcdc0b9/commentsjY7 }(login
svc-changelogidJ#jU7 MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jk7 *https://api.github.com/users/svc-changelogjy7  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuja7 }(j~7 
svc-changelogj7 J#jU7 MDQ6VXNlcjg0MDc3NjAzj7 4https://avatars.githubusercontent.com/u/84077603?v=4j7 h5jk7 *https://api.github.com/users/svc-changelogjy7  https://github.com/svc-changelogj7 4https://api.github.com/users/svc-changelog/followersj7 Ahttps://api.github.com/users/svc-changelog/following{/other_user}j7 :https://api.github.com/users/svc-changelog/gists{/gist_id}j7 Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j7 8https://api.github.com/users/svc-changelog/subscriptionsj7 /https://api.github.com/users/svc-changelog/orgsj7 0https://api.github.com/users/svc-changelog/reposj7 ;https://api.github.com/users/svc-changelog/events{/privacy}j7 :https://api.github.com/users/svc-changelog/received_eventsj7 Userj7 uparents]}(jS7 (68ab4a64463793a37e88ab76ac671ffe59c3a897jk7 ^https://api.github.com/repos/palantir/atlasdb/commits/68ab4a64463793a37e88ab76ac671ffe59c3a897jy7 Shttps://github.com/palantir/atlasdb/commit/68ab4a64463793a37e88ab76ac671ffe59c3a897uastats}(totalK	additionsK	deletionsK ufiles]}(jS7 (0a7163a9075d79232246b7a1405e903be8f24c84filename$changelog/@unreleased/pr-6549.v2.ymlstatusaddedj7 Kj7 K changesKblob_url|https://github.com/palantir/atlasdb/blob/bc3f88cd61fc1a598956c54e7c777c748bcdc0b9/changelog%2F%40unreleased%2Fpr-6549.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/bc3f88cd61fc1a598956c54e7c777c748bcdc0b9/changelog%2F%40unreleased%2Fpr-6549.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6549.v2.yml?ref=bc3f88cd61fc1a598956c54e7c777c748bcdc0b9patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Output logs on batch size increases
+  links:
+  - https://github.com/palantir/atlasdb/pull/6549uau(295e0b0c823080c50a5f500cb9f48361743b3ccd}(sha(295e0b0c823080c50a5f500cb9f48361743b3ccdnode_idEC_kwDOAjP5fdoAKDI5NWUwYjBjODIzMDgwYzUwYTVmNTAwY2I5ZjQ4MzYxNzQzYjNjY2Qcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-06T14:11:06Zu	committer}(j7 Jeremy Kongj7 jkong@palantir.comj7 2023-06-06T14:11:06Zumessagebootree}(j7 (4fcda8ab040ed94cd11993dc9dde391eb5dc5d69url`https://api.github.com/repos/palantir/atlasdb/git/trees/4fcda8ab040ed94cd11993dc9dde391eb5dc5d69uj7 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/295e0b0c823080c50a5f500cb9f48361743b3ccd
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR/PnoACgkQTLdFKain
zjzyGggAufT0USpz36/k1jecuOf9Sgqyu4f7mT2d2B1nTVucWwi1UAFdD1CW7R8J
q5Y3CCzOrCCRXwXWC/6vwxqKsKztI23jnarLglVom/Ypq1JoU5tp78aA3Kda3SmW
+9RZaTNf16AbPi0GedqZk3VTdELdTb7Omkgre4oRPBbjOvTojUg8DMxtqurf60iB
EgEnqxTWwIVubFnwZfadeYYOcV6ye6aZa5TI/rp7PGIdTxdNVCDr9VZC6V4lFrvC
MWnAg08sLZEMTbm79QA8ceL2h3h3ik93rhgPggMYekbby8R9dfNnu3C75mhjuGi1
02dnsjqbu/3HuvGBHlY5NIJbCEG2Tg==
=UfGx
-----END PGP SIGNATURE-----payloadtree 4fcda8ab040ed94cd11993dc9dde391eb5dc5d69
parent 255418df70dfda8afa863bb0e2291232d85efa56
author Jeremy Kong <jkong@palantir.com> 1686060666 +0100
committer Jeremy Kong <jkong@palantir.com> 1686060666 +0100

boo
uuj7 ^https://api.github.com/repos/palantir/atlasdb/commits/295e0b0c823080c50a5f500cb9f48361743b3ccdhtml_urlShttps://github.com/palantir/atlasdb/commit/295e0b0c823080c50a5f500cb9f48361743b3ccdcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/295e0b0c823080c50a5f500cb9f48361743b3ccd/commentsj7 }(login
jeremyk-91idJZ j7 MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j7 'https://api.github.com/users/jeremyk-91j7 https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj7 }(j7 
jeremyk-91j7 JZ j7 MDQ6VXNlcjU5NTU1MTA=j7 3https://avatars.githubusercontent.com/u/5955510?v=4j7 h5j7 'https://api.github.com/users/jeremyk-91j7 https://github.com/jeremyk-91j7 1https://api.github.com/users/jeremyk-91/followersj 8 >https://api.github.com/users/jeremyk-91/following{/other_user}j8 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j8 >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j8 5https://api.github.com/users/jeremyk-91/subscriptionsj8 ,https://api.github.com/users/jeremyk-91/orgsj
8 -https://api.github.com/users/jeremyk-91/reposj8 8https://api.github.com/users/jeremyk-91/events{/privacy}j8 7https://api.github.com/users/jeremyk-91/received_eventsj8 Userj8 uparents]}(j7 (255418df70dfda8afa863bb0e2291232d85efa56j7 ^https://api.github.com/repos/palantir/atlasdb/commits/255418df70dfda8afa863bb0e2291232d85efa56j7 Shttps://github.com/palantir/atlasdb/commit/255418df70dfda8afa863bb0e2291232d85efa56uastats}(totalK	additionsK	deletionsKufiles](}(j7 (25579f6daa4dc5c7c86ed5e64487a49ffc3058eafilenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj,8 Kj-8 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/295e0b0c823080c50a5f500cb9f48361743b3ccd/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/295e0b0c823080c50a5f500cb9f48361743b3ccd/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=295e0b0c823080c50a5f500cb9f48361743b3ccdpatchX  @@ -35,8 +35,8 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
-import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
+import com.palantir.atlasdb.workload.workflow.random.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.random.RandomWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;u      }(j7 (b3874edcbb26f210c12c862fe644e7a162af930bj28 atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj48 modifiedj,8 Kj-8 Kj68 Kj78 https://github.com/palantir/atlasdb/blob/295e0b0c823080c50a5f500cb9f48361743b3ccd/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj98 https://github.com/palantir/atlasdb/raw/295e0b0c823080c50a5f500cb9f48361743b3ccd/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj;8 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=295e0b0c823080c50a5f500cb9f48361743b3ccdj=8 Xe  @@ -19,7 +19,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
-import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.random.RandomWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;u}(j7 (592028e9db053a27368229f92576be5041e360d1j28 katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/random/RandomTransactions.javaj48 addedj,8 Kyj-8 K j68 Kyj78 https://github.com/palantir/atlasdb/blob/295e0b0c823080c50a5f500cb9f48361743b3ccd/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Frandom%2FRandomTransactions.javaj98 https://github.com/palantir/atlasdb/raw/295e0b0c823080c50a5f500cb9f48361743b3ccd/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Frandom%2FRandomTransactions.javaj;8 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Frandom%2FRandomTransactions.java?ref=295e0b0c823080c50a5f500cb9f48361743b3ccdj=8 XM  @@ -0,0 +1,121 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.random;
+
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.RowsColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.List;
+import java.util.Optional;
+import java.util.UUID;
+import org.immutables.value.Value;
+
+public final class RandomTransactions {
+    private RandomTransactions() {
+        // utility
+    }
+
+    interface RandomTransactionAction {}
+
+    @Value.Immutable
+    interface DirectRandomTransactionAction extends RandomTransactionAction {
+        @Value.Parameter
+        TransactionAction action();
+
+        default void accept(RandomTransactionActionVisitor visitor) {
+            visitor.visit(this);
+        }
+    }
+
+    @Value.Immutable
+    interface RangeIteratorProgressionRandomTransactionAction extends RandomTransactionAction {
+        @Value.Parameter
+        int specificRow();
+
+        @Value.Parameter
+        UUID correlationId();
+
+        default void accept(RandomTransactionActionVisitor visitor) {
+            visitor.visit(this);
+        }
+    }
+
+    interface RandomTransactionActionVisitor {
+        void visit(DirectRandomTransactionAction action);
+
+        void visit(RangeIteratorProgressionRandomTransactionAction action);
+    }
+
+    static class InteractiveExecutionRandomTransactionActionVisitor implements RandomTransactionActionVisitor {
+        private final InteractiveTransaction txn;
+        private final Map<>
+
+        InteractiveExecutionRandomTransactionActionVisitor(InteractiveTransaction txn) {
+            this.txn = txn;
+        }
+
+        @Override
+        public void visit(DirectRandomTransactionAction action) {
+            action.action().accept(new TransactionActionVisitor<Void>() {
+                @Override
+                public Void visit(ReadTransactionAction readTransactionAction) {
+                    txn.read(readTransactionAction.table(), readTransactionAction.cell());
+                    return null;
+                }
+
+                @Override
+                public Void visit(WriteTransactionAction writeTransactionAction) {
+                    txn.write(writeTransactionAction.table(), writeTransactionAction.cell(), writeTransactionAction.value());
+                    return null;
+                }
+
+                @Override
+                public Void visit(DeleteTransactionAction deleteTransactionAction) {
+                    txn.delete(deleteTransactionAction.table(), deleteTransactionAction.cell());
+                    return null;
+                }
+
+                @Override
+                public Void visit(RowsColumnRangeReadTransactionAction rowsColumnRangeReadTransactionAction) {
+                    throw new UnsupportedOperationException("Row column range reads are not expected to be embedded into direct random transaction actions");
+                }
+            });
+        }
+
+        @Override
+        public void visit(RangeIteratorProgressionRandomTransactionAction action) {
+        }
+    }
+
+    static class RandomTransactionTask {
+        private final List<RandomTransactionAction> randomTransactionActions;
+
+        public Optional<WitnessedTransaction> run(InteractiveTransactionStore store) {
+            store.readWrite(txn -> {
+                for (RandomTransactionAction action : randomTransactionActions) {
+
+                }
+            });
+        }
+    }
+}u}(j7 (c054d61f7e20793e57174c77f5398e0e06dab85aj28 tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/random/RandomWorkflowConfiguration.javaj48 renamedj,8 Kj-8 Kj68 Kj78 https://github.com/palantir/atlasdb/blob/295e0b0c823080c50a5f500cb9f48361743b3ccd/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Frandom%2FRandomWorkflowConfiguration.javaj98 https://github.com/palantir/atlasdb/raw/295e0b0c823080c50a5f500cb9f48361743b3ccd/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Frandom%2FRandomWorkflowConfiguration.javaj;8 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Frandom%2FRandomWorkflowConfiguration.java?ref=295e0b0c823080c50a5f500cb9f48361743b3ccdj=8 X  @@ -14,12 +14,15 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.workload.workflow;
+package com.palantir.atlasdb.workload.workflow.random;
 
 import com.fasterxml.jackson.annotation.JsonTypeName;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.google.common.util.concurrent.RateLimiter;
+import com.palantir.atlasdb.workload.workflow.ImmutableRandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.TableConfiguration;
+import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
 import org.immutables.value.Value;
 
 @Value.Immutableprevious_filenamematlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowConfiguration.javau}(j7 (8ca635f84f3f23538d786e3da274bb0836f96ec7j28 hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/random/RandomWorkflows.javaj48 renamedj,8 Kj-8 Kj68 Kj78 https://github.com/palantir/atlasdb/blob/295e0b0c823080c50a5f500cb9f48361743b3ccd/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Frandom%2FRandomWorkflows.javaj98 https://github.com/palantir/atlasdb/raw/295e0b0c823080c50a5f500cb9f48361743b3ccd/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Frandom%2FRandomWorkflows.javaj;8 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Frandom%2FRandomWorkflows.java?ref=295e0b0c823080c50a5f500cb9f48361743b3ccdj=8 X  @@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.workload.workflow;
+package com.palantir.atlasdb.workload.workflow.random;
 
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
@@ -27,8 +27,11 @@
 import com.palantir.atlasdb.workload.transaction.ImmutableWriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
+import com.palantir.atlasdb.workload.workflow.Workflow;
 import java.security.SecureRandom;
 import java.util.Collection;
 import java.util.Collections;jW8 aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javau}(j7 (f081e098beb34ec444a30ca4729da61396f5bfc0j28 eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowsTest.javaj48 modifiedj,8 Kj-8 K j68 Kj78 https://github.com/palantir/atlasdb/blob/295e0b0c823080c50a5f500cb9f48361743b3ccd/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj98 https://github.com/palantir/atlasdb/raw/295e0b0c823080c50a5f500cb9f48361743b3ccd/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj;8 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.java?ref=295e0b0c823080c50a5f500cb9f48361743b3ccdj=8 X  @@ -35,6 +35,8 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.atlasdb.workload.workflow.random.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.random.RandomWorkflows;
 import com.palantir.common.concurrent.PTExecutors;
 import java.security.SecureRandom;
 import java.util.Collection;ueu(9411cf91dfd2de3a78a86481eb27a413f5fed73f}(sha(9411cf91dfd2de3a78a86481eb27a413f5fed73fnode_idEC_kwDOAjP5fdoAKDk0MTFjZjkxZGZkMmRlM2E3OGE4NjQ4MWViMjdhNDEzZjVmZWQ3M2Ycommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-12T16:37:02Zu	committer}(jt8 Lucas Meirelesjv8 meireles31@msn.comjx8 2023-06-12T16:37:02ZumessageTtrack reads so we can check lock at end of transaction if it needs to validate readstree}(jl8 (299827d98b958c0f9de952ee186dce9508f3c5adurl`https://api.github.com/repos/palantir/atlasdb/git/trees/299827d98b958c0f9de952ee186dce9508f3c5aduj8 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9411cf91dfd2de3a78a86481eb27a413f5fed73f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSHSa4ACgkQJd22kJ7J
Giw9Vgf+NbR2uRtPUGXMEt1XKD+86ruJpYFhLl73tGiFdX5j0MdZf56v+EVyWEZP
40kClccdfbWb8WXl2oLNhGOcdXzCuUib/JktETgX2wlEr/kGUd5KV8a8PGBFfT8X
Y376sQwh+Trnovo8ynye1+/2qk+izzkx6RTFmGCHALi9ZQAXwDrro5GH71W0sjsL
Te0QP0KtY/MUVS/LdXoMJ55vqAT6ubaEQCc8fplNJLt0NCjje5pXqry3F43b/dlN
nWBfKDmiG67Y/FRij9kk30SrrGlaWYcur0VzaBGUmo8dCAJMYwrgLP6HL3TiwlMq
vPlRTBkl+RPF/P2/yW1SeKDSt02f4w==
=biAk
-----END PGP SIGNATURE-----payloadX/  tree 299827d98b958c0f9de952ee186dce9508f3c5ad
parent ad936a859c3bd0026b09c354741741a5c3cb5670
author Lucas Meireles <meireles31@msn.com> 1686587822 +0100
committer Lucas Meireles <meireles31@msn.com> 1686587822 +0100

track reads so we can check lock at end of transaction if it needs to validate reads
uuj8 ^https://api.github.com/repos/palantir/atlasdb/commits/9411cf91dfd2de3a78a86481eb27a413f5fed73fhtml_urlShttps://github.com/palantir/atlasdb/commit/9411cf91dfd2de3a78a86481eb27a413f5fed73fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9411cf91dfd2de3a78a86481eb27a413f5fed73f/commentsjr8 }(loginLucasIMEidJg jn8 MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j8 %https://api.github.com/users/LucasIMEj8 https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujz8 }(j8 LucasIMEj8 Jg jn8 MDQ6VXNlcjY3ODczMTE=j8 3https://avatars.githubusercontent.com/u/6787311?v=4j8 h5j8 %https://api.github.com/users/LucasIMEj8 https://github.com/LucasIMEj8 /https://api.github.com/users/LucasIME/followersj8 <https://api.github.com/users/LucasIME/following{/other_user}j8 5https://api.github.com/users/LucasIME/gists{/gist_id}j8 <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j8 3https://api.github.com/users/LucasIME/subscriptionsj8 *https://api.github.com/users/LucasIME/orgsj8 +https://api.github.com/users/LucasIME/reposj8 6https://api.github.com/users/LucasIME/events{/privacy}j8 5https://api.github.com/users/LucasIME/received_eventsj8 Userj8 uparents]}(jl8 (ad936a859c3bd0026b09c354741741a5c3cb5670j8 ^https://api.github.com/repos/palantir/atlasdb/commits/ad936a859c3bd0026b09c354741741a5c3cb5670j8 Shttps://github.com/palantir/atlasdb/commit/ad936a859c3bd0026b09c354741741a5c3cb5670uastats}(totalK	additionsK	deletionsKufiles]}(jl8 (9544c22ca4bbd1b1493fa50a638afeee689315e0filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj8 Kj8 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9411cf91dfd2de3a78a86481eb27a413f5fed73f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9411cf91dfd2de3a78a86481eb27a413f5fed73f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=9411cf91dfd2de3a78a86481eb27a413f5fed73fpatchXU  @@ -269,6 +269,7 @@ private enum State {
     private final ExpectationsMetrics expectationsDataCollectionMetrics;
 
     protected volatile boolean hasReads;
+    protected volatile boolean hasReadsThatRequireImmutableTimestampValidationAtCommit;
 
     protected final TimestampCache timestampCache;
 
@@ -333,6 +334,7 @@ private enum State {
         this.sweepQueue = sweepQueue;
         this.deleteExecutor = deleteExecutor;
         this.hasReads = false;
+        this.hasReadsThatRequireImmutableTimestampValidationAtCommit = false;
         this.transactionOutcomeMetrics = TransactionOutcomeMetrics.create(metricsManager);
         this.validateLocksOnReads = validateLocksOnReads;
         this.transactionConfig = transactionConfig;
@@ -438,6 +440,8 @@ private NavigableMap<byte[], RowResult<byte[]>> getRowsInternal(
                     SafeArg.of("resultSize", results.size()),
                     SafeArg.of("timeTakenMillis", getRowsMillis));
         }
+
+        hasReadsThatRequireImmutableTimestampValidationAtCommit = true;
         validatePreCommitRequirementsOnReadIfNecessary(
                 tableRef,
                 getStartTimestamp(),
@@ -466,6 +470,7 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
         RowColumnRangeIterator rawResults = keyValueService.getRowsColumnRange(
                 tableRef, stableRows, columnRangeSelection, batchHint, getStartTimestamp());
         if (!rawResults.hasNext()) {
+            hasReadsThatRequireImmutableTimestampValidationAtCommit = true;
             validatePreCommitRequirementsOnReadIfNecessary(
                     tableRef, getStartTimestamp(), true /* we can't skip checks for range scans*/);
         } // else the postFiltered iterator will check for each batch.
@@ -504,6 +509,7 @@ public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator
                     return scopeToTransaction(entryIterator);
                 }));
 
+        hasReadsThatRequireImmutableTimestampValidationAtCommit = true;
         // validate requirements here as the first batch for each of the above iterators will not check
         validatePreCommitRequirementsOnReadIfNecessary(
                 tableRef, getStartTimestamp(), true /* we can't skip checks on range scans */);
@@ -701,8 +707,11 @@ private ClosableIterator<Map.Entry<Cell, byte[]>> getRowColumnRangePostFiltered(
                 batchProvider,
                 rawIterator,
                 columnRangeSelection,
-                () -> validatePreCommitRequirementsOnReadIfNecessary(
-                        tableRef, getStartTimestamp(), true /* we can't skip lock checks on range scans */),
+                () -> {
+                    hasReadsThatRequireImmutableTimestampValidationAtCommit = true;
+                    validatePreCommitRequirementsOnReadIfNecessary(
+                            tableRef, getStartTimestamp(), true /* we can't skip lock checks on range scans */);
+                },
                 raw -> getWithPostFilteringSync(tableRef, raw, Value.GET_VALUE));
     }
 
@@ -835,6 +844,7 @@ public SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(
         Map<Cell, Value> rawResults =
                 new HashMap<>(keyValueService.getRows(tableRef, rows, ColumnSelection.all(), getStartTimestamp()));
 
+        hasReadsThatRequireImmutableTimestampValidationAtCommit = true;
         validatePreCommitRequirementsOnReadIfNecessary(
                 tableRef,
                 getStartTimestamp(),
@@ -949,6 +959,9 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
                                 SafeArg.of("durationMillis", getMillis));
                     }
                     boolean hasReadEmptyCells = fromKeyValueService.size() < cellsWithNoLocalWrites.size();
+                    if (hasReadEmptyCells) {
+                        hasReadsThatRequireImmutableTimestampValidationAtCommit = true;
+                    }
                     validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), hasReadEmptyCells);
                     return removeEmptyColumns(result, tableRef);
                 },
@@ -971,6 +984,9 @@ public Map<Cell, byte[]> getIgnoringLocalWrites(TableReference tableRef, Set<Cel
 
         TraceStatistics.incEmptyValues(unfiltered.size() - filtered.size());
         boolean hasReadEmptyCells = unfiltered.size() < cells.size();
+        if (hasReadEmptyCells) {
+            hasReadsThatRequireImmutableTimestampValidationAtCommit = true;
+        }
         validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), hasReadEmptyCells);
 
         return filtered;
@@ -1025,6 +1041,7 @@ public Iterable<BatchingVisitable<RowResult<byte[]>>> getRanges(
                     Timer.Context timer = getTimer("processedRangeMillis").time();
                     Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> firstPages =
                             keyValueService.getFirstBatchForRanges(tableRef, input, getStartTimestamp());
+                    hasReadsThatRequireImmutableTimestampValidationAtCommit = true;
                     validatePreCommitRequirementsOnReadIfNecessary(
                             tableRef, getStartTimestamp(), true /* can't skip lock check for range scans */);
 
@@ -1318,6 +1335,7 @@ protected Iterator<RowResult<T>> computeNext() {
                 }
                 SortedMap<Cell, T> postFilter = postFilterRows(tableRef, batch, transformer);
 
+                hasReadsThatRequireImmutableTimestampValidationAtCommit = true;
                 validatePreCommitRequirementsOnReadIfNecessary(
                         tableRef, getStartTimestamp(), true /* can't skip lock checks for range scans */);
                 results.markNumResultsNotDeleted(
@@ -1691,6 +1709,9 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
                     asyncKeyValueService.getAsync(tableRef, keysToReload),
                     nextRawResults -> {
                         boolean hasReadEmptyCells = nextRawResults.size() < keysToReload.size();
+                        if (hasReadEmptyCells) {
+                            hasReadsThatRequireImmutableTimestampValidationAtCommit = true;
+                        }
                         validatePreCommitRequirementsOnReadIfNecessary(
                                 tableRef, getStartTimestamp(), hasReadEmptyCells);
                         return getRemainingResults(nextRawResults, keysAddedToResults);
@@ -2607,8 +2628,8 @@ private boolean hasAnyInvolvedTables() {
 
     private boolean validationNecessaryForInvolvedTablesOnCommit() {
         boolean anyTableRequiresImmutableTimestampLocking = involvedTables.stream()
-                .anyMatch(tableRef ->
-                        requiresImmutableTimestampLocking(tableRef, false /* we're not doing any read here */));
+                .anyMatch(tableRef -> requiresImmutableTimestampLocking(
+                        tableRef, hasReadsThatRequireImmutableTimestampValidationAtCommit));
         boolean needsToValidate = !validateLocksOnReads || !hasReads();
         return anyTableRequiresImmutableTimestampLocking && needsToValidate;
     }uau(629316c8b93bd3cfc7a27ab34c40fc28fecb997b}(sha(629316c8b93bd3cfc7a27ab34c40fc28fecb997bnode_idEC_kwDOAjP5fdoAKDYyOTMxNmM4YjkzYmQzY2ZjN2EyN2FiMzRjNDBmYzI4ZmVjYjk5N2Icommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-05-23T15:40:56Zu	committer}(j8 GitHubj8 noreply@github.comj8 2023-05-23T15:40:56ZumessagerAvoid string case conversion when parsing token ring (#6468)

Avoid string case conversion when parsing token ringtree}(j8 (a0ab6382c7c9c58eede2aa7b1cf348eaab3531f1url`https://api.github.com/repos/palantir/atlasdb/git/trees/a0ab6382c7c9c58eede2aa7b1cf348eaab3531f1uj8 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/629316c8b93bd3cfc7a27ab34c40fc28fecb997b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkbN6ICRBK7hj4Ov3rIwAAzCUIAC0ryhUDkTdnS9UtNovPWRU4
+rJwRTewIODq1b+ive1OOj6ggFA6tjmi39n3cx4pb5HRZ5wKt08/IuQNPRaOGhcG
RopcQnLNUTlB2+0eZPdShGYgOS/wy7YnbUUXgXwvXVwxdWLKlTbHP9yhVjnbAXW3
xfiSMKbSE5Vz6ZbXNO91sjF1MQ6L7EpN/ZfMaU3mk3L3/8yfEeI2IqcODbYFwDVH
1cAJHb2aZmpiR0efx4cAyRxW+wKrY8NIGSFj/u8V7CKBcJEMF9nDT9HFXmPwPxmH
Y2amTE3vaIKfHui9o4V6g3xCPgssSeg9JXhut72YLJhvPnJv1ooiMbGtVyx+U0g=
=2AsA
-----END PGP SIGNATURE-----
payloadXI  tree a0ab6382c7c9c58eede2aa7b1cf348eaab3531f1
parent 556a0a85a7424531ce43b62423c44e2571bd3c83
author David Schlosnagle <davids@palantir.com> 1684856456 -0400
committer GitHub <noreply@github.com> 1684856456 +0000

Avoid string case conversion when parsing token ring (#6468)

Avoid string case conversion when parsing token ring
uuj8 ^https://api.github.com/repos/palantir/atlasdb/commits/629316c8b93bd3cfc7a27ab34c40fc28fecb997bhtml_urlShttps://github.com/palantir/atlasdb/commit/629316c8b93bd3cfc7a27ab34c40fc28fecb997bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/629316c8b93bd3cfc7a27ab34c40fc28fecb997b/commentsj8 }(loginschlosnaidMBj8 MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j8 %https://api.github.com/users/schlosnaj	9 https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj8 }(j9 web-flowj9 J/j8 MDQ6VXNlcjE5ODY0NDQ3j9 4https://avatars.githubusercontent.com/u/19864447?v=4j9 h5j8 %https://api.github.com/users/web-flowj	9 https://github.com/web-flowj9 /https://api.github.com/users/web-flow/followersj9 <https://api.github.com/users/web-flow/following{/other_user}j9 5https://api.github.com/users/web-flow/gists{/gist_id}j9 <https://api.github.com/users/web-flow/starred{/owner}{/repo}j9 3https://api.github.com/users/web-flow/subscriptionsj!9 *https://api.github.com/users/web-flow/orgsj#9 +https://api.github.com/users/web-flow/reposj%9 6https://api.github.com/users/web-flow/events{/privacy}j'9 5https://api.github.com/users/web-flow/received_eventsj)9 Userj+9 uparents]}(j8 (556a0a85a7424531ce43b62423c44e2571bd3c83j8 ^https://api.github.com/repos/palantir/atlasdb/commits/556a0a85a7424531ce43b62423c44e2571bd3c83j	9 Shttps://github.com/palantir/atlasdb/commit/556a0a85a7424531ce43b62423c44e2571bd3c83uastats}(totalMX	additionsMQ	deletionsKufiles](}(j8 (90804433a22ec03af979e3c1e8590efd24af0579filename`atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppToken.javastatusmodifiedjE9 KjF9 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/629316c8b93bd3cfc7a27ab34c40fc28fecb997b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javaraw_urlhttps://github.com/palantir/atlasdb/raw/629316c8b93bd3cfc7a27ab34c40fc28fecb997b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.java?ref=629316c8b93bd3cfc7a27ab34c40fc28fecb997bpatchX  @@ -27,13 +27,16 @@
 import java.util.Arrays;
 
 public class LightweightOppToken implements Comparable<LightweightOppToken> {
-
     final byte[] bytes;
 
     public LightweightOppToken(byte[] bytes) {
         this.bytes = bytes;
     }
 
+    public static LightweightOppToken fromHex(String token) {
+        return new LightweightOppToken(Tokens.hexDecode(token));
+    }
+
     public static LightweightOppToken of(Cell cell) {
         return new LightweightOppToken(cell.getRowName());
     }u}(j8 (b6e36b890415f2534eb284b773e57dbc27d4313bjK9 Satlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/Tokens.javajM9 addedjE9 K4jF9 K jO9 K4jP9 https://github.com/palantir/atlasdb/blob/629316c8b93bd3cfc7a27ab34c40fc28fecb997b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.javajR9 https://github.com/palantir/atlasdb/raw/629316c8b93bd3cfc7a27ab34c40fc28fecb997b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.javajT9 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.java?ref=629316c8b93bd3cfc7a27ab34c40fc28fecb997bjV9 XP  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.io.BaseEncoding;
+import java.util.Locale;
+import java.util.function.IntPredicate;
+
+final class Tokens {
+
+    private static final BaseEncoding LOWER_CASE_HEX = BaseEncoding.base16().lowerCase();
+
+    static byte[] hexDecode(String token) {
+        // OPP tokens should be lowercase -- fast path assumes this; slow fallback converts to uppercase
+        return Tokens.isAllLowercaseOrDigits(token)
+                ? LOWER_CASE_HEX.decode(token)
+                : BaseEncoding.base16().decode(token.toUpperCase(Locale.ROOT));
+    }
+
+    @VisibleForTesting
+    static boolean isAllLowercaseOrDigits(String token) {
+        return allMatch(token, ch -> Character.isLowerCase(ch) || Character.isDigit(ch));
+    }
+
+    @VisibleForTesting
+    static boolean allMatch(String token, IntPredicate predicate) {
+        for (int i = 0; i < token.length(); i++) {
+            char ch = token.charAt(i);
+            if (!predicate.test(ch)) {
+                return false;
+            }
+        }
+        return true;
+    }
+
+    private Tokens() {}
+}u}(j8 (32b1efd1deac46330f4d5d125b203b6a950a167djK9 batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javajM9 modifiedjE9 KjF9 KjO9 KjP9 https://github.com/palantir/atlasdb/blob/629316c8b93bd3cfc7a27ab34c40fc28fecb997b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javajR9 https://github.com/palantir/atlasdb/raw/629316c8b93bd3cfc7a27ab34c40fc28fecb997b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javajT9 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=629316c8b93bd3cfc7a27ab34c40fc28fecb997bjV9 Xv  @@ -28,7 +28,6 @@
 import com.google.common.collect.Range;
 import com.google.common.collect.RangeMap;
 import com.google.common.collect.Sets;
-import com.google.common.io.BaseEncoding;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs.ThriftHostsExtractingVisitor;
@@ -63,7 +62,6 @@
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.List;
-import java.util.Locale;
 import java.util.Map;
 import java.util.Objects;
 import java.util.Optional;
@@ -162,10 +160,8 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
                     servers.addAll(hosts);
                     hostToDatacentersThisRefresh.putAll(hostToDatacentersOnThisTokenRange);
 
-                    LightweightOppToken startToken = new LightweightOppToken(BaseEncoding.base16()
-                            .decode(tokenRange.getStart_token().toUpperCase(Locale.ROOT)));
-                    LightweightOppToken endToken = new LightweightOppToken(BaseEncoding.base16()
-                            .decode(tokenRange.getEnd_token().toUpperCase(Locale.ROOT)));
+                    LightweightOppToken startToken = LightweightOppToken.fromHex(tokenRange.getStart_token());
+                    LightweightOppToken endToken = LightweightOppToken.fromHex(tokenRange.getEnd_token());
                     if (startToken.compareTo(endToken) <= 0) {
                         newTokenRing.put(Range.openClosed(startToken, endToken), hosts);
                     } else {u}(j8 (3753c37f1661486b791e667b00225ee922b75441jK9 datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppTokenTest.javajM9 addedjE9 KjF9 K jO9 KjP9 https://github.com/palantir/atlasdb/blob/629316c8b93bd3cfc7a27ab34c40fc28fecb997b/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javajR9 https://github.com/palantir/atlasdb/raw/629316c8b93bd3cfc7a27ab34c40fc28fecb997b/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javajT9 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.java?ref=629316c8b93bd3cfc7a27ab34c40fc28fecb997bjV9 X5  @@ -0,0 +1,167 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.conjure.java.lib.Bytes;
+import java.nio.ByteBuffer;
+import java.util.Collection;
+import java.util.Locale;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+import org.junit.runners.Parameterized.Parameter;
+import org.junit.runners.Parameterized.Parameters;
+
+@RunWith(Parameterized.class)
+public class LightweightOppTokenTest {
+    @Parameter()
+    public String input;
+
+    @Parameters(name = "{index}: input=\"{0}\"")
+    public static Collection<Object[]> data() {
+        return TokensTest.generateTokens()
+                .flatMap(input -> Stream.of(input, input.toLowerCase(Locale.ROOT), input.toUpperCase(Locale.ROOT)))
+                .map(input -> new Object[] {input})
+                .collect(Collectors.toList());
+    }
+
+    @Test
+    public void inputsAreValidBase16Strings() {
+        assertThat(input).matches("^[0-9a-fA-F]*$");
+        assertThat(input.length() % 2 == 0)
+                .as("input must be even length to base16 decode")
+                .isTrue();
+        assertThat(CassandraHex.hexToBytes(input)).hasSize(input.length() / 2);
+    }
+
+    @Test
+    public void createFromHexEncodedStringRegardlessOfCase() {
+        LightweightOppToken token = LightweightOppToken.fromHex(input);
+        LightweightOppToken tokenFromLowerCase = LightweightOppToken.fromHex(input.toLowerCase(Locale.ROOT));
+        LightweightOppToken tokenFromUpperCase = LightweightOppToken.fromHex(input.toUpperCase(Locale.ROOT));
+        LightweightOppToken tokenFromBytes = new LightweightOppToken(CassandraHex.hexToBytes(input));
+
+        assertThat(token.bytes)
+                .hasSize(input.length() / 2)
+                .isEqualTo(tokenFromLowerCase.bytes)
+                .isEqualTo(tokenFromUpperCase.bytes)
+                .isEqualTo(tokenFromBytes.bytes);
+        assertThat(token)
+                .isNotNull()
+                .isEqualTo(tokenFromLowerCase)
+                .isEqualTo(tokenFromUpperCase)
+                .isEqualTo(tokenFromBytes)
+                .isEqualByComparingTo(tokenFromLowerCase)
+                .isEqualByComparingTo(tokenFromUpperCase)
+                .isEqualByComparingTo(tokenFromBytes);
+    }
+
+    @Test
+    public void fromHexCorrectlyDeserializesStrings() throws Exception {
+        LightweightOppToken token = LightweightOppToken.fromHex(input);
+        Bytes expectedBytes = Bytes.from(org.apache.commons.codec.binary.Hex.decodeHex(input));
+        assertThat(token.bytes).contains(expectedBytes.asNewByteArray());
+        assertThat(token.isEmpty()).isEqualTo(input.length() == 0);
+        ByteBuffer deserialized = token.deserialize();
+        assertThat(deserialized).isEqualTo(expectedBytes.asReadOnlyByteBuffer());
+        assertThat(deserialized.remaining()).isEqualTo(input.length() / 2);
+        assertThat(token.toString()).isEqualToIgnoringCase(input);
+    }
+
+    @Test
+    public void tokenMatchesCassandraImplementation() throws Exception {
+        // Test compatibility with Cassandra hex conversions from:
+        // https://github.com/palantir/cassandra/blob/palantir-cassandra-2.2.18/src/java/org/apache/cassandra/dht/ByteOrderedPartitioner.java#L74
+        Bytes expectedBytes = Bytes.from(org.apache.commons.codec.binary.Hex.decodeHex(input));
+        String hexFromCassandra = CassandraHex.bytesToHex(expectedBytes.asNewByteArray());
+        byte[] bytesFromCassandra = CassandraHex.hexToBytes(hexFromCassandra);
+        LightweightOppToken token = LightweightOppToken.fromHex(hexFromCassandra);
+        assertThat(Tokens.isAllLowercaseOrDigits(hexFromCassandra))
+                .as("Expect lowercase hex %s", hexFromCassandra)
+                .isTrue();
+        assertThat(token).isEqualTo(new LightweightOppToken(expectedBytes.asNewByteArray()));
+        assertThat(token.bytes).contains(bytesFromCassandra);
+    }
+
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one
+     * or more contributor license agreements.  See the NOTICE file
+     * distributed with this work for additional information
+     * regarding copyright ownership.  The ASF licenses this file
+     * to you under the Apache License, Version 2.0 (the
+     * "License"); you may not use this file except in compliance
+     * with the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+    // Imported from cassandra to test using their conversions
+    // https://github.com/palantir/cassandra/blob/palantir-cassandra-2.2.18/src/java/org/apache/cassandra/utils/Hex.java
+    static final class CassandraHex {
+        private static final byte[] charToByte = new byte[256];
+
+        // package protected for use by ByteBufferUtil. Do not modify this array !!
+        static final char[] byteToChar = new char[16];
+
+        static {
+            for (char c = 0; c < charToByte.length; ++c) {
+                if (c >= '0' && c <= '9') charToByte[c] = (byte) (c - '0');
+                else if (c >= 'A' && c <= 'F') charToByte[c] = (byte) (c - 'A' + 10);
+                else if (c >= 'a' && c <= 'f') charToByte[c] = (byte) (c - 'a' + 10);
+                else charToByte[c] = (byte) -1;
+            }
+
+            for (int i = 0; i < 16; ++i) {
+                byteToChar[i] = Integer.toHexString(i).charAt(0);
+            }
+        }
+
+        public static byte[] hexToBytes(String str) {
+            if (str.length() % 2 == 1)
+                throw new NumberFormatException("An hex string representing bytes must have an even length");
+
+            byte[] bytes = new byte[str.length() / 2];
+            for (int i = 0; i < bytes.length; i++) {
+                byte halfByte1 = charToByte[str.charAt(i * 2)];
+                byte halfByte2 = charToByte[str.charAt(i * 2 + 1)];
+                if (halfByte1 == -1 || halfByte2 == -1) throw new NumberFormatException("Non-hex characters in " + str);
+                bytes[i] = (byte) ((halfByte1 << 4) | halfByte2);
+            }
+            return bytes;
+        }
+
+        public static String bytesToHex(byte... bytes) {
+            char[] c = new char[bytes.length * 2];
+            for (int i = 0; i < bytes.length; i++) {
+                int bint = bytes[i];
+                c[i * 2] = byteToChar[(bint & 0xf0) >> 4];
+                c[1 + i * 2] = byteToChar[bint & 0x0f];
+            }
+
+            return new String(c);
+        }
+    }
+}u}(j8 (db57abd4b23910bc5e3468db860764b587878808jK9 Watlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/TokensTest.javajM9 addedjE9 KjjF9 K jO9 KjjP9 https://github.com/palantir/atlasdb/blob/629316c8b93bd3cfc7a27ab34c40fc28fecb997b/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.javajR9 https://github.com/palantir/atlasdb/raw/629316c8b93bd3cfc7a27ab34c40fc28fecb997b/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.javajT9 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.java?ref=629316c8b93bd3cfc7a27ab34c40fc28fecb997bjV9 X8  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.io.BaseEncoding;
+import com.google.common.primitives.Longs;
+import java.util.Locale;
+import java.util.concurrent.ThreadLocalRandom;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+import org.junit.Test;
+
+public final class TokensTest {
+    @Test
+    public void decodeHex() {
+        generateTokens().forEach(input -> assertThat(Tokens.hexDecode(input))
+                .as("token '%s'", input)
+                .hasSize(input.length() / 2));
+    }
+
+    @Test
+    public void isAllLowercaseOrDigits() {
+        assertThat(Tokens.isAllLowercaseOrDigits("abcdef01234567890")).isTrue();
+        assertThat(Tokens.isAllLowercaseOrDigits("01234567890abcdef")).isTrue();
+        assertThat(Tokens.isAllLowercaseOrDigits("Abcdef01234567890")).isFalse();
+        assertThat(Tokens.isAllLowercaseOrDigits("01234567890ABCDEF")).isFalse();
+    }
+
+    @Test
+    public void allMatch() {
+        assertThat(Tokens.allMatch("01234567890", Character::isDigit)).isTrue();
+        assertThat(Tokens.allMatch("0123456789A", Character::isDigit)).isFalse();
+        assertThat(Tokens.allMatch("ABCEFGHIJKLMNOPQRSTUVWXYZ", Character::isUpperCase))
+                .isTrue();
+        assertThat(Tokens.allMatch("ABCEFGHIJKLMNOPQRSTUVWXYZ", Character::isLowerCase))
+                .isFalse();
+        assertThat(Tokens.allMatch("abcefghijklmnopqrstuvwxyz", Character::isLowerCase))
+                .isTrue();
+        assertThat(Tokens.allMatch("abcefghijklmnopqrstuvwxyz", Character::isUpperCase))
+                .isFalse();
+    }
+
+    static Stream<String> generateTokens() {
+        return Stream.concat(
+                        Stream.of(
+                                "",
+                                "0F",
+                                "decafbad",
+                                "0123456789ABCDEF",
+                                "0123456789abcdef",
+                                "0123456789Abcdef",
+                                "0123456789aBcdef",
+                                "0123456789abCdef",
+                                "0123456789abcDef",
+                                "0123456789abcdEf",
+                                "0123456789abcdeF",
+                                Long.toHexString(Long.MIN_VALUE),
+                                Long.toHexString(Long.MAX_VALUE)),
+                        Stream.concat(
+                                IntStream.range(0, 32).mapToObj(i -> {
+                                    byte[] bytes = new byte[i * 2];
+                                    ThreadLocalRandom.current().nextBytes(bytes);
+                                    return BaseEncoding.base16().encode(bytes);
+                                }),
+                                IntStream.range(0, 1_000).mapToObj(_i -> BaseEncoding.base16()
+                                        .encode(Longs.toByteArray(
+                                                ThreadLocalRandom.current().nextLong())))))
+                .flatMap(input -> Stream.of(
+                        input, input.toLowerCase(Locale.ROOT), input.toUpperCase(Locale.ROOT), shuffleCase(input)));
+    }
+
+    private static String shuffleCase(String input) {
+        if (input == null || input.isEmpty()) {
+            return input;
+        }
+        StringBuilder sb = new StringBuilder(input.length());
+        for (int i = 0; i < input.length(); i++) {
+            char ch = input.charAt(i);
+            if (Character.isAlphabetic(ch) && ThreadLocalRandom.current().nextBoolean()) {
+                if (Character.isLowerCase(ch)) {
+                    ch = Character.toUpperCase(ch);
+                } else {
+                    ch = Character.toLowerCase(ch);
+                }
+            }
+            sb.append(ch);
+        }
+        return sb.toString();
+    }
+}u}(j8 (accf41e869d53eedaf4f54d948e2b5260617a8cbjK9 $changelog/@unreleased/pr-6468.v2.ymljM9 addedjE9 KjF9 K jO9 KjP9 |https://github.com/palantir/atlasdb/blob/629316c8b93bd3cfc7a27ab34c40fc28fecb997b/changelog%2F%40unreleased%2Fpr-6468.v2.ymljR9 {https://github.com/palantir/atlasdb/raw/629316c8b93bd3cfc7a27ab34c40fc28fecb997b/changelog%2F%40unreleased%2Fpr-6468.v2.ymljT9 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6468.v2.yml?ref=629316c8b93bd3cfc7a27ab34c40fc28fecb997bjV9 @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Avoid string case conversion when parsing token ring
+  links:
+  - https://github.com/palantir/atlasdb/pull/6468
+ueu(f73d7daa353c1ebec707abfc1f6bf19a5a03066b}(sha(f73d7daa353c1ebec707abfc1f6bf19a5a03066bnode_idEC_kwDOAjP5fdoAKGY3M2Q3ZGFhMzUzYzFlYmVjNzA3YWJmYzFmNmJmMTlhNWEwMzA2NmIcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-06-15T15:36:07Zu	committer}(j9 GitHubj9 noreply@github.comj9 2023-06-15T15:36:07Zumessage4Excavator:  Upgrade buildscript dependencies (#6507)tree}(j9 (25d75f48fcdff35cc13d97cb829249c1ab2d34e5url`https://api.github.com/repos/palantir/atlasdb/git/trees/25d75f48fcdff35cc13d97cb829249c1ab2d34e5uj9 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f73d7daa353c1ebec707abfc1f6bf19a5a03066b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkiy/nCRBK7hj4Ov3rIwAAKSAIADkOl+8asuw4FkhvYqCT7gNX
m41M/iQX9RmSip374xWkG6YLyo0S7EO9N50uU6mIUXtQU4dfmVaUvBPORYgjJJkL
3sTOu/eNmfbfYaktOOHWFnPJjdx5E7ZEbyDnvhhN9dQowOK5D1QipjyD9ZxwbTjl
Yk1JL3+zWSy5pKacG2b6FC9y8uddhTU7koswbf0tOv12qRELlbkrrdMEEJLpbaPI
2XJPKtr36EF2Z9PCq60jRirBQERYiX4YSBKTszTI/cPgSd06awa95+Ig/fnfmENq
I4y1RsiSOSJmRWEN/srm7e11hqDwdy4t0qMMu1stCzsXJ06F2ql3DLrR6uhcX2Y=
=0nCz
-----END PGP SIGNATURE-----
payloadX(  tree 25d75f48fcdff35cc13d97cb829249c1ab2d34e5
parent 3a15193728baf2f9b61b13cdd72eb67db634e98b
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1686843367 +0100
committer GitHub <noreply@github.com> 1686843367 +0800

Excavator:  Upgrade buildscript dependencies (#6507)

uuj9 ^https://api.github.com/repos/palantir/atlasdb/commits/f73d7daa353c1ebec707abfc1f6bf19a5a03066bhtml_urlShttps://github.com/palantir/atlasdb/commit/f73d7daa353c1ebec707abfc1f6bf19a5a03066bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f73d7daa353c1ebec707abfc1f6bf19a5a03066b/commentsj9 }(loginsvc-excavator-botidJj9 MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j9 .https://api.github.com/users/svc-excavator-botj9 $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj9 }(j9 web-flowj9 J/j9 MDQ6VXNlcjE5ODY0NDQ3j9 4https://avatars.githubusercontent.com/u/19864447?v=4j9 h5j9 %https://api.github.com/users/web-flowj9 https://github.com/web-flowj9 /https://api.github.com/users/web-flow/followersj9 <https://api.github.com/users/web-flow/following{/other_user}j9 5https://api.github.com/users/web-flow/gists{/gist_id}j9 <https://api.github.com/users/web-flow/starred{/owner}{/repo}j9 3https://api.github.com/users/web-flow/subscriptionsj9 *https://api.github.com/users/web-flow/orgsj9 +https://api.github.com/users/web-flow/reposj9 6https://api.github.com/users/web-flow/events{/privacy}j9 5https://api.github.com/users/web-flow/received_eventsj9 Userj9 uparents]}(j9 (3a15193728baf2f9b61b13cdd72eb67db634e98bj9 ^https://api.github.com/repos/palantir/atlasdb/commits/3a15193728baf2f9b61b13cdd72eb67db634e98bj9 Shttps://github.com/palantir/atlasdb/commit/3a15193728baf2f9b61b13cdd72eb67db634e98buastats}(totalK	additionsK	deletionsKufiles]}(j9 (022221727d6f2d598a0016a225e75264c9780625filenamebuild.gradlestatusmodifiedj9 Kj9 KchangesKblob_url^https://github.com/palantir/atlasdb/blob/f73d7daa353c1ebec707abfc1f6bf19a5a03066b/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/f73d7daa353c1ebec707abfc1f6bf19a5a03066b/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=f73d7daa353c1ebec707abfc1f6bf19a5a03066bpatchX  @@ -7,10 +7,10 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.0'
-        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.2.0'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.4'
+        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.3.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.38.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.39.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
@@ -20,7 +20,7 @@ buildscript {
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
-        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'
+        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.3'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
         classpath 'gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1'
         classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'uau(d6e774d1d20c6a0b20abf9fe74db2fd3c42f4050}(sha(d6e774d1d20c6a0b20abf9fe74db2fd3c42f4050node_idEC_kwDOAjP5fdoAKGQ2ZTc3NGQxZDIwYzZhMGIyMGFiZjlmZTc0ZGIyZmQzYzQyZjQwNTAcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-08-07T16:44:32Zu	committer}(j: 	Tom Papkej: tpapke@palantir.comj: 2023-08-07T16:44:32Zumessage%Add metadata on non-first cell of rowtree}(j9 (e95154cea91bd2c07219e8698c1990dabd71d592url`https://api.github.com/repos/palantir/atlasdb/git/trees/e95154cea91bd2c07219e8698c1990dabd71d592uj: bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d6e774d1d20c6a0b20abf9fe74db2fd3c42f4050
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTRH3AACgkQmF9s0kaF
Iw0OZQf+OaENEyV3rN4wX1G3U683QX4AEEjdMuxGjo0cm2ChahOQc7Td4wtUymYR
0i6ixZXFvoLC/8WR+K1Qvs8Kww+2iFtdptTGC599m1no7TKUXD3Cx+8ZkRHM+L43
6qD+cNKWzv9XrLwIbJJaOIp1Zex7LsuBeuecZ0f1athj9EZLZzaQbs89+5ZorPHV
B8onLp5KCrpd+sgfRo0nf14bnRpRmtYBMsi1kmQplUGmdzfUR3qBrcf+bN9j74r8
tRCxLyVkGnpEJATWHKcEYcF90K/urpqce5oQtNdFzCWvKRI2hFR8bsVN6rY42Wpp
AODU/ToRhuWP5SQxWtLbPJTsVEEi+A==
=RPmF
-----END PGP SIGNATURE-----payloadtree e95154cea91bd2c07219e8698c1990dabd71d592
parent f78ecf6fd9c7ef92cfd45300ca607bfdf87f0aff
author Tom Papke <tpapke@palantir.com> 1691426672 +0100
committer Tom Papke <tpapke@palantir.com> 1691426672 +0100

Add metadata on non-first cell of row
uuj: ^https://api.github.com/repos/palantir/atlasdb/commits/d6e774d1d20c6a0b20abf9fe74db2fd3c42f4050html_urlShttps://github.com/palantir/atlasdb/commit/d6e774d1d20c6a0b20abf9fe74db2fd3c42f4050comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d6e774d1d20c6a0b20abf9fe74db2fd3c42f4050/commentsj9 }(login	ToemmscheidJboj9 MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j: &https://api.github.com/users/Toemmschej: https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj: }(j$: 	Toemmschej&: Jboj9 MDQ6VXNlcjQzNjc1NDkwj(: 4https://avatars.githubusercontent.com/u/43675490?v=4j*: h5j: &https://api.github.com/users/Toemmschej: https://github.com/Toemmschej-: 0https://api.github.com/users/Toemmsche/followersj/: =https://api.github.com/users/Toemmsche/following{/other_user}j1: 6https://api.github.com/users/Toemmsche/gists{/gist_id}j3: =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j5: 4https://api.github.com/users/Toemmsche/subscriptionsj7: +https://api.github.com/users/Toemmsche/orgsj9: ,https://api.github.com/users/Toemmsche/reposj;: 7https://api.github.com/users/Toemmsche/events{/privacy}j=: 6https://api.github.com/users/Toemmsche/received_eventsj?: UserjA: uparents]}(j9 (f78ecf6fd9c7ef92cfd45300ca607bfdf87f0affj: ^https://api.github.com/repos/palantir/atlasdb/commits/f78ecf6fd9c7ef92cfd45300ca607bfdf87f0affj: Shttps://github.com/palantir/atlasdb/commit/f78ecf6fd9c7ef92cfd45300ca607bfdf87f0affuastats}(totalK	additionsK	deletionsK
ufiles]}(j9 (9f961f65695be3f2973687bc006826c6a3bfe264filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedj[: Kj\: K
changesKblob_urlhttps://github.com/palantir/atlasdb/blob/d6e774d1d20c6a0b20abf9fe74db2fd3c42f4050/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d6e774d1d20c6a0b20abf9fe74db2fd3c42f4050/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=d6e774d1d20c6a0b20abf9fe74db2fd3c42f4050patchX	  @@ -2618,27 +2618,24 @@ public void metadataIsTransferredToRowLocks() {
                         TABLE2,
                         Optional.of(ConflictHandler.SERIALIZABLE)));
 
+        txn.put(
+                TABLE, ImmutableMap.of(Cell.create(ROW_FOO, COL_A), TEST_VALUE));
         txn.putWithMetadata(
-                TABLE, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA)));
-        txn.putWithMetadata(
-                TABLE, ImmutableMap.of(TEST_CELL_2, ValueAndChangeMetadata.of(TEST_VALUE, DELETE_CHANGE_METADATA)));
+                TABLE, ImmutableMap.of(Cell.create(ROW_FOO, COL_B), ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA)));
         txn.putWithMetadata(
                 TABLE2, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, UNCHANGED_CHANGE_METADATA)));
 
-        LockDescriptor rowLock = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL.getRowName());
-        LockDescriptor rowLock2 = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL_2.getRowName());
-        LockDescriptor rowLock3 = AtlasRowLockDescriptor.of(TABLE2.getQualifiedName(), TEST_CELL.getRowName());
+        LockDescriptor rowLock = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), ROW_FOO);
+        LockDescriptor rowLock2 = AtlasRowLockDescriptor.of(TABLE2.getQualifiedName(), TEST_CELL.getRowName());
         verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
                 txn,
                 timelockService,
                 LocksAndMetadata.of(
-                        ImmutableSet.of(rowLock, rowLock2, rowLock3),
+                        ImmutableSet.of(rowLock, rowLock2),
                         Optional.of(LockRequestMetadata.of(ImmutableMap.of(
                                 rowLock,
                                 UPDATE_CHANGE_METADATA,
                                 rowLock2,
-                                DELETE_CHANGE_METADATA,
-                                rowLock3,
                                 UNCHANGED_CHANGE_METADATA)))));
     }
 
@@ -2680,7 +2677,7 @@ public void noMetadataResultsInEmptyOptional() {
     }
 
     @Test
-    public void lockCollectionWithoutMetadataIsCorrect() {
+    public void lockCollectionWithoutMetadataIsCorrectForRandomWrites() {
         long randomSeed = System.currentTimeMillis();
         int numTables = 10;
         int numCellsPerTable = 100;uau(7e0e841143aefa1be36bb797e74282d75505a61b}(sha(7e0e841143aefa1be36bb797e74282d75505a61bnode_idEC_kwDOAjP5fdoAKDdlMGU4NDExNDNhZWZhMWJlMzZiYjc5N2U3NDI4MmQ3NTUwNWE2MWIcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-18T14:58:52Zu	committer}(jx: 	Tom Papkejz: tpapke@palantir.comj|: 2023-07-18T14:58:52Zumessage use excludeEmptyOptionals = truetree}(jp: (8f3280db1082ff386304fce127deaf4a0c1075a8url`https://api.github.com/repos/palantir/atlasdb/git/trees/8f3280db1082ff386304fce127deaf4a0c1075a8uj: bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7e0e841143aefa1be36bb797e74282d75505a61b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS2qKwACgkQmF9s0kaF
Iw3GrAgAwZKqEwrsSXXzKtk8yTGF34oD//yeVKD6ORLwirTuctLItVI2R+BgLzCD
zH1VbLIynQ4EVpYA/m+SvNkbTDxsZlqUDx0NUj97VIQOAPUVk91Hq8tX199CZHBm
iLUZTICHAo9EnjbxBoTw20BTrXNIdeEF+/bvLd9O/tdkloo5LXhVYyI+LvjJfr4S
jny96wWZMeCcTtxVjK1ZnQ8j+CSzZbRVzQRIOAJ1uK0aVopeBCWE+k1l5uMl5/ZN
DXWH8p6RMAXSZ9iYcZ3oyUuhmIV8YK4iisjeC3P6uG8VeReZKl0c4q1PZUqFmKVm
3Euba/4PyOLQS5vkIC5ezKCPEOUL1w==
=Gxul
-----END PGP SIGNATURE-----payloadtree 8f3280db1082ff386304fce127deaf4a0c1075a8
parent e5cbcf94596a4e5b6e7d735deb563b62dd889564
author Tom Papke <tpapke@palantir.com> 1689692332 +0100
committer Tom Papke <tpapke@palantir.com> 1689692332 +0100

use excludeEmptyOptionals = true
uuj: ^https://api.github.com/repos/palantir/atlasdb/commits/7e0e841143aefa1be36bb797e74282d75505a61bhtml_urlShttps://github.com/palantir/atlasdb/commit/7e0e841143aefa1be36bb797e74282d75505a61bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7e0e841143aefa1be36bb797e74282d75505a61b/commentsjv: }(login	ToemmscheidJbojr: MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j: &https://api.github.com/users/Toemmschej: https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj~: }(j: 	Toemmschej: Jbojr: MDQ6VXNlcjQzNjc1NDkwj: 4https://avatars.githubusercontent.com/u/43675490?v=4j: h5j: &https://api.github.com/users/Toemmsche      j: https://github.com/Toemmschej: 0https://api.github.com/users/Toemmsche/followersj: =https://api.github.com/users/Toemmsche/following{/other_user}j: 6https://api.github.com/users/Toemmsche/gists{/gist_id}j: =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j: 4https://api.github.com/users/Toemmsche/subscriptionsj: +https://api.github.com/users/Toemmsche/orgsj: ,https://api.github.com/users/Toemmsche/reposj: 7https://api.github.com/users/Toemmsche/events{/privacy}j: 6https://api.github.com/users/Toemmsche/received_eventsj: Userj: uparents]}(jp: (e5cbcf94596a4e5b6e7d735deb563b62dd889564j: ^https://api.github.com/repos/palantir/atlasdb/commits/e5cbcf94596a4e5b6e7d735deb563b62dd889564j: Shttps://github.com/palantir/atlasdb/commit/e5cbcf94596a4e5b6e7d735deb563b62dd889564uastats}(totalK	additionsK	deletionsK ufiles]}(jp: (da71fe7d8e0e194bd282f2bf8539ea75f0dc5292filenametimelock-api/build.gradlestatusmodifiedj: Kj: K changesKblob_urlmhttps://github.com/palantir/atlasdb/blob/7e0e841143aefa1be36bb797e74282d75505a61b/timelock-api%2Fbuild.gradleraw_urllhttps://github.com/palantir/atlasdb/raw/7e0e841143aefa1be36bb797e74282d75505a61b/timelock-api%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fbuild.gradle?ref=7e0e841143aefa1be36bb797e74282d75505a61bpatch@@ -28,3 +28,9 @@ subprojects {
     }
     tasks.licenseMain.enabled = false
 }
+
+conjure {
+    java {
+        excludeEmptyOptionals = true
+    }
+}uau(7e485991a031eedba72456acd9c9ac3a2a73043d}(sha(7e485991a031eedba72456acd9c9ac3a2a73043dnode_idEC_kwDOAjP5fdoAKDdlNDg1OTkxYTAzMWVlZGJhNzI0NTZhY2Q5YzlhYzNhMmE3MzA0M2Qcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-07-20T17:01:42Zu	committer}(j: Patrick Koenigj: pkoenig10@gmail.comj: 2023-07-20T17:01:42Zumessage!Remove unused registrar parametertree}(j: (4cd6a0d0e027a16fa7767814cb9770ce3a982cc7url`https://api.github.com/repos/palantir/atlasdb/git/trees/4cd6a0d0e027a16fa7767814cb9770ce3a982cc7uj: bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7e485991a031eedba72456acd9c9ac3a2a73043d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAAhcAAAAHc3NoLXJzYQAAAAMBAAEAAAIBAOLBVI00yZaP7395xCyqzy
aD/kgGj5GS8qP2f4Q0hM5gFbEYaTLwKvZTgcFMKJEw/3tOlCyuFoQChwrZ+YjoX3ZcTdIs
QnoGeYlwKUGY4x3QXLvrURZtGaXWggfEc+UKHT3mnGXM9FpX9CSdpTopg7KhxDlx3/Jv90
zimWImFPxKFUSZrhVGqD8qAQibPTFDs+JhK0cqllhsvm0PR9PilTde++NKLCQUNrRJi2+f
BjLBjJMJshRwXkkM6J8hDvyjiLJz4Bg9hq+5QLnO1fYaetU7aP4bsCs6ix5pyD4WO6cr6T
SMCtJThNdHvOVuOaCCHBOQrdVGjbMH9lmW5FL5oMsTZ86p24rZOFD9ly44mMJWYGk6F81y
japNgWorhR0tSZMSZPVlisGQQsRnsqQidrVPe3IR4MTUsKx39CAutxgk6N+BseeByXKw+H
aBKmd75u/FU7IoxEbXX7EuDq2TCtUmujYXiY7SY4T0DQDjNpHq+vrEUsKyi5mbRTdNahvt
eFWJU5UIwO7Ao+HdsqfUjGN6zw2HSkiHEG3iOj5OY+byI/ykoYGMQ40w6w7shCt7XDbUXa
/kGqIyicthBGQ7Y4/TtquH5Ag2UPSlN9C0Rt/ZBolkTfoLz4wCtTMzd7hdixs5yuocVTn7
njhSYSXRyRbbVcF/q56x1NAAsVOe9epxAAAAA2dpdAAAAAAAAAAGc2hhNTEyAAACFAAAAA
xyc2Etc2hhMi01MTIAAAIAPsjt5xmBnazHmubJBWPJYw1EXtx1OPDApeNoC2MYtgvSbMo+
t9zSGT8kPvgN5yCRQbB4RzThjZQ8WAT4hFH9y+cA0IAjpi6A/NZIQh/WKbtQNfFAYRG0db
ddJgSupYY8/NddOuck+fupl8B10Zy6MM543d/RJBjlhLgQ5EAihq7ActelpxW+vVCBCW5A
35N5dyIqZ1v0pKi/rOp2xAlsAQkv6ZOCPUcGboa1EVLKlhg+G3vbrZpjipxmHrauWODESC
Dj8+uTL10S8R3E+/rFRstv0Tl0FsaQ1lrM3Yki4BVHHAY4TXELLLvnKuKfSDL9IdKI5tMc
tYw6mRv1oa6Ict+krd1o7aWm9RrWDqb+CXyNX6pyS5AuTk5QerjSupcT2aWy28BBfm6SB/
vTj5flRYNhZeQBzFB1qifVM1/QZk7YDjqfS5y1xqmX1KZVeZxQ/KQrK6I6vklZyvM5gQnu
N8OkqSlFBqHuYBSqM1o26d05myFbYgIsqYOwSaml3d4LdXKqok/0dwaRcfQ3g+nzGlgRKI
uXNDjHbk7Kuvwep1Sj4bo113TiO6op/KJ8vEBzQ34pCElZLuYz+8eeikmzckB22hPIWgDf
j0loBugG6mQGnZxP690qA/e3JmQlnyz3m48Tc1DKp5xqHTZb1mYX9KfCijlc9ZPukQkGYB
ABCC4=
-----END SSH SIGNATURE-----payloadtree 4cd6a0d0e027a16fa7767814cb9770ce3a982cc7
parent 4e050a9cb4f8f2b45b8b700df082f442d2fec694
author Patrick Koenig <pkoenig10@gmail.com> 1689872502 -0700
committer Patrick Koenig <pkoenig10@gmail.com> 1689872502 -0700

Remove unused registrar parameter
uuj: ^https://api.github.com/repos/palantir/atlasdb/commits/7e485991a031eedba72456acd9c9ac3a2a73043dhtml_urlShttps://github.com/palantir/atlasdb/commit/7e485991a031eedba72456acd9c9ac3a2a73043dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7e485991a031eedba72456acd9c9ac3a2a73043d/commentsj: }(login	pkoenig10idJLvP j: MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5j: &https://api.github.com/users/pkoenig10j
; https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminuj: }(j; 	pkoenig10j; JLvP j: MDQ6VXNlcjUyNzMxNjQ=j; 3https://avatars.githubusercontent.com/u/5273164?v=4j; h5j: &https://api.github.com/users/pkoenig10j
; https://github.com/pkoenig10j; 0https://api.github.com/users/pkoenig10/followersj; =https://api.github.com/users/pkoenig10/following{/other_user}j; 6https://api.github.com/users/pkoenig10/gists{/gist_id}j!; =https://api.github.com/users/pkoenig10/starred{/owner}{/repo}j#; 4https://api.github.com/users/pkoenig10/subscriptionsj%; +https://api.github.com/users/pkoenig10/orgsj'; ,https://api.github.com/users/pkoenig10/reposj); 7https://api.github.com/users/pkoenig10/events{/privacy}j+; 6https://api.github.com/users/pkoenig10/received_eventsj-; Userj/; uparents]}(j: (4e050a9cb4f8f2b45b8b700df082f442d2fec694j: ^https://api.github.com/repos/palantir/atlasdb/commits/4e050a9cb4f8f2b45b8b700df082f442d2fec694j
; Shttps://github.com/palantir/atlasdb/commit/4e050a9cb4f8f2b45b8b700df082f442d2fec694uastats}(totalK	additionsK 	deletionsKufiles]}(j: (22ad789ac52a7a98f3d81fb9d24748a416dcc590filenameRatlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javastatusmodifiedjI; K jJ; KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7e485991a031eedba72456acd9c9ac3a2a73043d/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7e485991a031eedba72456acd9c9ac3a2a73043d/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=7e485991a031eedba72456acd9c9ac3a2a73043dpatchX  @@ -543,7 +543,6 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                         metricsManager,
                         config(),
                         runtime,
-                        registrar(),
                         keyValueService,
                         transactionService,
                         follower,
@@ -818,7 +817,6 @@ private static BackgroundSweeperImpl initializeSweepBackgroundProcess(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Supplier<AtlasDbRuntimeConfig> runtimeConfigSupplier,
-            Consumer<Object> registrar,
             KeyValueService kvs,
             TransactionService transactionService,
             CleanupFollower follower,uau(db7d83866bf92a75903e66128085bb45c8ce6fb8}(sha(db7d83866bf92a75903e66128085bb45c8ce6fb8node_idEC_kwDOAjP5fdoAKGRiN2Q4Mzg2NmJmOTJhNzU5MDNlNjYxMjgwODViYjQ1YzhjZTZmYjgcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-30T10:16:40Zu	committer}(jf; 
Sam Kramerjh; skramer@palantir.comjj; 2023-06-30T10:16:40Zumessage	add teststree}(j^; (42a583d5bf7e3b9070f509d22c5b22a8cf60d426url`https://api.github.com/repos/palantir/atlasdb/git/trees/42a583d5bf7e3b9070f509d22c5b22a8cf60d426ujv; bhttps://api.github.com/repos/palantir/atlasdb/git/commits/db7d83866bf92a75903e66128085bb45c8ce6fb8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSeq4gACgkQmPPOpKR4
XS1f8gf9FaPHlE9McZtoyFxJ9Aopw8HoH8tyRVrZ7fhJyoekxuRHG9+d8ZomCwxr
FEmehsgh1IrK8GVcU6kGaCR8jEtqmbSg/fDcENtB1libBAzijKRS61VZFCElIXIB
FQ71NS4l1UE71rLqwZAXsOA9nE45ap5+X3M1/5pX4xRHMvF5czGs6gNW//7v7l7b
EheD8yYlDdngCNYlaSy46nbdKyEVzHsdTKP+0c0djEnFBL36Dl8m3aWNafyVF4/f
n1No3LEx7NUUDSVcvKdi1YKBUPniKbgr9GbCPfgSEhBj9+MumzkYF9LhPEHS6I5J
10f9VzVRg2P8fsx2tFJndaanP8lvSA==
=o/0B
-----END PGP SIGNATURE-----payloadtree 42a583d5bf7e3b9070f509d22c5b22a8cf60d426
parent 3ea79b6a37142a08854ef5ee1d614fff8e94bcab
author Sam Kramer <skramer@palantir.com> 1688120200 +0100
committer Sam Kramer <skramer@palantir.com> 1688120200 +0100

add tests
uujv; ^https://api.github.com/repos/palantir/atlasdb/commits/db7d83866bf92a75903e66128085bb45c8ce6fb8html_urlShttps://github.com/palantir/atlasdb/commit/db7d83866bf92a75903e66128085bb45c8ce6fb8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/db7d83866bf92a75903e66128085bb45c8ce6fb8/commentsjd; }(login
Sam-KrameridJ^2_ j`; MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jv; 'https://api.github.com/users/Sam-Kramerj; https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujl; }(j; 
Sam-Kramerj; J^2_ j`; MDQ6VXNlcjYyMzg4MTQ=j; 3https://avatars.githubusercontent.com/u/6238814?v=4j; h5jv; 'https://api.github.com/users/Sam-Kramerj; https://github.com/Sam-Kramerj; 1https://api.github.com/users/Sam-Kramer/followersj; >https://api.github.com/users/Sam-Kramer/following{/other_user}j; 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j; >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j; 5https://api.github.com/users/Sam-Kramer/subscriptionsj; ,https://api.github.com/users/Sam-Kramer/orgsj; -https://api.github.com/users/Sam-Kramer/reposj; 8https://api.github.com/users/Sam-Kramer/events{/privacy}j; 7https://api.github.com/users/Sam-Kramer/received_eventsj; Userj; uparents]}(j^; (3ea79b6a37142a08854ef5ee1d614fff8e94bcabjv; ^https://api.github.com/repos/palantir/atlasdb/commits/3ea79b6a37142a08854ef5ee1d614fff8e94bcabj; Shttps://github.com/palantir/atlasdb/commit/3ea79b6a37142a08854ef5ee1d614fff8e94bcabuastats}(totalKc	additionsKa	deletionsKufiles](}(j^; (72abeafa42e8450681e7dd415f76fc9e0b9fcdccfilenamehatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIterator.javastatusmodifiedj; K	j; KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/db7d83866bf92a75903e66128085bb45c8ce6fb8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javaraw_urlhttps://github.com/palantir/atlasdb/raw/db7d83866bf92a75903e66128085bb45c8ce6fb8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.java?ref=db7d83866bf92a75903e66128085bb45c8ce6fb8patchX+  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterators;
 import com.palantir.atlasdb.AtlasDbPerformanceConstants;
@@ -32,6 +33,12 @@
 public class BatchSizeIncreasingIterator<T> implements Closeable {
     private static final SafeLogger log = SafeLoggerFactory.get(BatchSizeIncreasingIterator.class);
 
+    @VisibleForTesting
+    static final Integer MAX_FACTOR = 8;
+
+    @VisibleForTesting
+    static final Integer INCREASE_FACTOR = 4;
+
     private final int originalBatchSize;
     private final BatchProvider<T> batchProvider;
 
@@ -53,7 +60,7 @@ public BatchSizeIncreasingIterator(
         if (currentResults != null) {
             this.lastBatchSize = originalBatchSize;
         }
-        this.maxBatchSize = Math.min(originalBatchSize * 8, AtlasDbPerformanceConstants.MAX_BATCH_SIZE);
+        this.maxBatchSize = Math.min(originalBatchSize * MAX_FACTOR, AtlasDbPerformanceConstants.MAX_BATCH_SIZE);
     }
 
     public void markNumResultsNotDeleted(int resultsInBatch) {
@@ -67,7 +74,7 @@ int getBestBatchSize() {
             return originalBatchSize;
         }
         final long batchSize;
-        long maxNewBatchSize = numReturned * 4;
+        long maxNewBatchSize = numReturned * INCREASE_FACTOR;
         if (numNotDeleted == 0) {
             // If everything we've seen has been deleted, we should be aggressive about getting more rows.
             batchSize = maxNewBatchSize;u}(j^; (f06e3d65989e01d8eb9bcace1049573ab50179d7j; latlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIteratorTest.javaj; addedj; KXj; K j; KXj; https://github.com/palantir/atlasdb/blob/db7d83866bf92a75903e66128085bb45c8ce6fb8/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIteratorTest.javaj; https://github.com/palantir/atlasdb/raw/db7d83866bf92a75903e66128085bb45c8ce6fb8/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIteratorTest.javaj; https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIteratorTest.java?ref=db7d83866bf92a75903e66128085bb45c8ce6fb8j; X
  @@ -0,0 +1,88 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.common.base.ClosableIterator;
+import com.palantir.common.base.ClosableIterators;
+import java.nio.ByteBuffer;
+import java.util.List;
+import java.util.NavigableSet;
+import java.util.TreeSet;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.Test;
+
+public class BatchSizeIncreasingIteratorTest {
+
+    @Test
+    public void getBestBatchSizeEqualToOriginalOnFirstIteration() {
+        assertThat(new BatchSizeIncreasingIterator<>(
+                                new TestBatchProvider(0), 1, ClosableIterators.emptyImmutableClosableIterator())
+                        .getBestBatchSize())
+                .isEqualTo(1);
+    }
+
+    @Test
+    public void getBestBatchSizeNeverLargerThanMax() {
+        int originalBatchSize = 1;
+        BatchSizeIncreasingIterator<Integer> iterator = new BatchSizeIncreasingIterator<>(
+                new TestBatchProvider(1000),
+                originalBatchSize,
+                ClosableIterators.wrap(List.of(0).iterator()));
+        // This will make the batch size increasing iterator that it is only getting deleted values, which will
+        // result in an increase by BatchSizeIncreasingIterator.INCREASE_FACTOR.
+        iterator.markNumResultsNotDeleted(0);
+        IntStream.range(0, BatchSizeIncreasingIterator.MAX_FACTOR / BatchSizeIncreasingIterator.INCREASE_FACTOR + 1)
+                .forEach(_ignore -> iterator.getBatch());
+        assertThat(iterator.getBestBatchSize()).isEqualTo(originalBatchSize * BatchSizeIncreasingIterator.MAX_FACTOR);
+    }
+
+    private static class TestBatchProvider implements BatchProvider<Integer> {
+
+        private final NavigableSet<Integer> values;
+
+        public TestBatchProvider(Integer count) {
+            this(IntStream.range(0, count)
+                    .boxed()
+                    .collect(Collectors.<Integer, TreeSet<Integer>>toCollection(TreeSet::new)));
+        }
+
+        public TestBatchProvider(NavigableSet<Integer> values) {
+            this.values = values;
+        }
+
+        @Override
+        public ClosableIterator<Integer> getBatch(int batchSize, byte[] lastToken) {
+            int value = ByteBuffer.wrap(lastToken).getInt();
+            return ClosableIterators.wrapWithEmptyClose(
+                    values.tailSet(value, true).iterator());
+        }
+
+        @Override
+        public boolean hasNext(byte[] lastToken) {
+            int value = ByteBuffer.wrap(lastToken).getInt();
+            return values.ceiling(value) != null;
+        }
+
+        @Override
+        public byte[] getLastToken(List<Integer> batch) {
+            return ByteBuffer.allocate(4).putInt(batch.get(batch.size() - 1)).array();
+        }
+    }
+}ueu(a6e7a209fb18d6a59538bccff32d1928868e1015}(sha(a6e7a209fb18d6a59538bccff32d1928868e1015node_idEC_kwDOAjP5fdoAKGE2ZTdhMjA5ZmIxOGQ2YTU5NTM4YmNjZmYzMmQxOTI4ODY4ZTEwMTUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-10T19:10:58Zu	committer}(j; 
Ahmed Alouanej; aalouane@palantir.comj; 2023-05-10T19:10:58Zumessage-Merge branch 'aacbtsplits' into aacbttimelocktree}(j; (4a214fe26c031977ca125ccfc820c8b68187d4a1url`https://api.github.com/repos/palantir/atlasdb/git/trees/4a214fe26c031977ca125ccfc820c8b68187d4a1uj; bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a6e7a209fb18d6a59538bccff32d1928868e1015
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRb7EMACgkQPlMHVIT1
yhpJjwgAluwk3sxTXy+66apWAsK96V/wB7bjgBOo1RHoi64O2k7c0LTvL7gYunit
N8F9NP+BFKEPNh6o/Q+Z1v8rXNaSO7jYc4HwPZmTTH4LdgE4plPbfzrKjsB6dnYF
BtXznjB1qPXHKi41hR8k8cGgMnox8anMDn4W5vNh6Xc8KlItlbD54CrBl1Y9aEuh
Zk49Ho0cFFJfWzYrwwObx4SVi6rh1AyVUUzqEl+ozlu4Cz6yvUF8V9hJdh3RX5Zu
a06jgi0rTWoF4MJ+qgQAwUHsaQLcBqJHLQC+1ZHeuvxZHVsVfsvEbHdayHi91v/w
OJ6L3SeKI8md5mB5j/TRn0MLTYdt6w==
=y+3z
-----END PGP SIGNATURE-----payloadX<  tree 4a214fe26c031977ca125ccfc820c8b68187d4a1
parent 919d571f0de7222781745198478d0286c515df3b
parent aa7e0b9ea37c14cdf63b62df9ec19d9661fa04b0
author Ahmed Alouane <aalouane@palantir.com> 1683745858 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1683745858 +0100

Merge branch 'aacbtsplits' into aacbttimelock
uuj; ^https://api.github.com/repos/palantir/atlasdb/commits/a6e7a209fb18d6a59538bccff32d1928868e1015html_urlShttps://github.com/palantir/atlasdb/commit/a6e7a209fb18d6a59538bccff32d1928868e1015comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a6e7a209fb18d6a59538bccff32d1928868e1015/commentsj; }(loginergo14idJj; MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j; #https://api.github.com/users/ergo14j< https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj; }(j< ergo14j
< Jj; MDQ6VXNlcjMwOTAzNzM2j< 4https://avatars.githubusercontent.com/u/30903736?v=4j< h5j; #https://api.github.com/users/ergo14j< https://github.com/ergo14j< -https://api.github.com/users/ergo14/followersj< :https://api.github.com/users/ergo14/following{/other_user}j< 3https://api.github.com/users/ergo14/gists{/gist_id}j< :https://api.github.com/users/ergo14/starred{/owner}{/repo}j< 1https://api.github.com/users/ergo14/subscriptionsj< (https://api.github.com/users/ergo14/orgsj< )https://api.github.com/users/ergo14/reposj< 4https://api.github.com/users/ergo14/events{/privacy}j!< 3https://api.github.com/users/ergo14/received_eventsj#< Userj%< uparents](}(j; (919d571f0de7222781745198478d0286c515df3bj; ^https://api.github.com/repos/palantir/atlasdb/commits/919d571f0de7222781745198478d0286c515df3bj< Shttps://github.com/palantir/atlasdb/commit/919d571f0de7222781745198478d0286c515df3bu}(j; (aa7e0b9ea37c14cdf63b62df9ec19d9661fa04b0j; ^https://api.github.com/repos/palantir/atlasdb/commits/aa7e0b9ea37c14cdf63b62df9ec19d9661fa04b0j< Shttps://github.com/palantir/atlasdb/commit/aa7e0b9ea37c14cdf63b62df9ec19d9661fa04b0uestats}(totalK
	additionsK	deletionsKufiles]}(j; (dd376117c068272bff8de388549f0b737167064afilename%scripts/circle-ci/run-circle-tests.shstatusmodifiedjC< KjD< KchangesK
blob_url{https://github.com/palantir/atlasdb/blob/a6e7a209fb18d6a59538bccff32d1928868e1015/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/a6e7a209fb18d6a59538bccff32d1928868e1015/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=a6e7a209fb18d6a59538bccff32d1928868e1015patchX^  @@ -50,16 +50,18 @@ do
     CONTAINER_0_EXCLUDE_ARGS="$CONTAINER_0_EXCLUDE_ARGS -x $task"
 done
 
+test_suite_index=$1
+
 # Short circuit the build if it's docs only
 if ./scripts/circle-ci/check-only-docs-changes.sh; then
-    if [ $1 -eq 0 ]; then
+    if [ "$test_suite_index" -eq 0 ]; then
         checkDocsBuild
         exit $?
     fi
     exit 0
 fi
 
-if [ $1 -eq 9 ] || [ $1 -eq 10 ]; then
+if [ "$test_suite_index" -eq 9 ] || [ "$test_suite_index" -eq 10 ]; then
     printenv DOCKERHUB_PASSWORD | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
     # The oracle container is very large and takes a long time to pull.
     # If this image is not pulled here, the circle build usually times out.
@@ -71,7 +73,7 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
 # External builds have a 16gb limit.
-if [ "$1" -eq "13" ]; then
+if [ "$test_suite_index" -eq "13" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
@@ -80,7 +82,7 @@ fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64m
 
-case $1 in
+case "$test_suite_index" in
     0) ./gradlew $BASE_GRADLE_ARGS check $CONTAINER_0_EXCLUDE_ARGS -x :atlasdb-jepsen-tests:check;;
     1) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_1[@]} ;;
     2) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_2[@]} -x :atlasdb-ete-tests:longTest -x atlasdb-ete-tests:dbkvsTest -x :atlasdb-ete-tests:timeLockMigrationTest ;;uau(ecc5734827ae80326bf312620acf83f92f766d15}(sha(ecc5734827ae80326bf312620acf83f92f766d15node_idEC_kwDOAjP5fdoAKGVjYzU3MzQ4MjdhZTgwMzI2YmYzMTI2MjBhY2Y4M2Y5MmY3NjZkMTUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-27T17:00:47Zu	committer}(j`< Jeremy Kongjb< jkong@palantir.comjd< 2023-02-27T17:00:47Zumessagebootree}(jX< (d077e5fbd38ac9a7de15166d1cfd787ae132aaefurl`https://api.github.com/repos/palantir/atlasdb/git/trees/d077e5fbd38ac9a7de15166d1cfd787ae132aaefujp< bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ecc5734827ae80326bf312620acf83f92f766d15
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmP84b8ACgkQTLdFKain
zjyhfAgAo47+C+kBU11wqH/Z3lrlrecZsKerHmZEbzNhCHQrwEBnMoDxwAOGxe7v
0AJT6VOXut1fixV+OLvSTE8bqSE2WGhm5QsQ/Znttzkmr2io4F0IWB9WrcdI6xU6
0Edas1BbXWhHmyETgCUi5SnfVcC+O5Pm9GZ0Dzz5pjRS5k1y++TeFAzE1rwvR3P7
wFo4TBL5p/fFph1z+PeP6x0Ir/9DGE/7mAm1/xsNPNOMuUW20wYutXwFVEYAB6QS
Nt8BTzGDKis7FOaJHxqzWxIoFTDtXCsV2aHqs/iYl8fcwJdzJsGaX+uJ+xSYYCth
46tNz5Rci8fe1AtfPLmlWEqRLl0Dtg==
=yGXd
-----END PGP SIGNATURE-----payloadtree d077e5fbd38ac9a7de15166d1cfd787ae132aaef
parent bfb99ca43c1f958aad0d601f11eb3d56c592c6c2
author Jeremy Kong <jkong@palantir.com> 1677517247 +0000
committer Jeremy Kong <jkong@palantir.com> 1677517247 +0000

boo
uujp< ^https://api.github.com/repos/palantir/atlasdb/commits/ecc5734827ae80326bf312620acf83f92f766d15html_urlShttps://github.com/palantir/atlasdb/commit/ecc5734827ae80326bf312620acf83f92f766d15comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ecc5734827ae80326bf312620acf83f92f766d15/commentsj^< }(login
jeremyk-91idJZ jZ< MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jp< 'https://api.github.com/users/jeremyk-91j~< https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujf< }(j< 
jeremyk-91j< JZ jZ< MDQ6VXNlcjU5NTU1MTA=j< 3https://avatars.githubusercontent.com/u/5955510?v=4j< h5jp< 'https://api.github.com/users/jeremyk-91j~< https://github.com/jeremyk-91j< 1https://api.github.com/users/jeremyk-91/followersj< >https://api.github.com/users/jeremyk-91/following{/other_user}j< 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j< >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j< 5https://api.github.com/users/jeremyk-91/subscriptionsj< ,https://api.github.com/users/jeremyk-91/orgsj< -https://api.github.com/users/jeremyk-91/reposj< 8https://api.github.com/users/jeremyk-91/events{/privacy}j< 7https://api.github.com/users/jeremyk-91/received_eventsj< Userj< uparents]}(jX< (bfb99ca43c1f958aad0d601f11eb3d56c592c6c2jp< ^https://api.github.com/repos/palantir/atlasdb/commits/bfb99ca43c1f958aad0d601f11eb3d56c592c6c2j~< Shttps://github.com/palantir/atlasdb/commit/bfb99ca43c1f958aad0d601f11eb3d56c592c6c2uastats}(totalK	additionsK	deletionsKufiles]}(jX< (66ec2c1b9a5bc5b64bf7d82f62f0c606e28450f2filenameaatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javastatusmodifiedj< Kj< KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ecc5734827ae80326bf312620acf83f92f766d15/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ecc5734827ae80326bf312620acf83f92f766d15/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=ecc5734827ae80326bf312620acf83f92f766d15patchX  @@ -83,6 +83,6 @@ static List<WitnessedTransaction> sortByEffectiveTimestamp(List<WitnessedTransac
     }
 
     private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
-        return witnessedTransaction.commitTimestamp().orElse(witnessedTransaction.startTimestamp());
+        return witnessedTransaction.commitTimestamp().orElseGet(witnessedTransaction::startTimestamp);
     }
 }uau(18dc5570a384c7c4558dbd49d1775c4fd8ef603b}(sha(18dc5570a384c7c4558dbd49d1775c4fd8ef603bnode_idEC_kwDOAjP5fdoAKDE4ZGM1NTcwYTM4NGM3YzQ1NThkYmQ0OWQxNzc1YzRmZDhlZjYwM2Icommit}(author}(name	Tom Papkeemail+43675490+Toemmsche@users.noreply.github.comdate2023-07-06T12:38:23Zu	committer}(j< GitHubj< noreply@github.comj< 2023-07-06T12:38:23Zumessagej[LWMeta] Pass optional metadata through TimeLock (#6651)

[LWMeta] Pass optional metadata through TimeLocktree}(j< (e972e299c01be01a9f0de848ba44b06bb7f3eca9url`https://api.github.com/repos/palantir/atlasdb/git/trees/e972e299c01be01a9f0de848ba44b06bb7f3eca9uj< bhttps://api.github.com/repos/palantir/atlasdb/git/commits/18dc5570a384c7c4558dbd49d1775c4fd8ef603b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkprW/CRBK7hj4Ov3rIwAAnCAIAHRO/aogU3tc3y7s628aPKXu
joyPH6rDbwujrWM/ZVoTetvjFS6RRHC1ebaB+yU4Am7pybHBxSi/eCUkw2LSDQDP
C5ap8MZBi1DXfh0k6+Q6acx2T7cKVhtv3oljHBolEg90hCKZnTEff3FOr0wE0S9g
CVXTJZIZdKctUBQJLYGKfqF3Dzh6sfG8NJQniqBcuY+yTA2XC45b3+FDxm3Hy+ny
He7r9/maryypTCShYBcOMyAJFBG9hjh62QvcRk5jm49cDWme2seZsD1/GSA5GGyu
NVee+Nbtn9LUNJCj5Dce6EZCVNxMcL/NzBLqPowT20LLzY669J3gy2+rQ336/HU=
=WEib
-----END PGP SIGNATURE-----
payloadXQ  tree e972e299c01be01a9f0de848ba44b06bb7f3eca9
parent db330d5402a4d813ef1443fb30fc346b40ccd863
author Tom Papke <43675490+Toemmsche@users.noreply.github.com> 1688647103 +0200
committer GitHub <noreply@github.com> 1688647103 +0000

[LWMeta] Pass optional metadata through TimeLock (#6651)

[LWMeta] Pass optional metadata through TimeLock
uuj< ^https://api.github.com/repos/palantir/atlasdb/commits/18dc5570a384c7c4558dbd49d1775c4fd8ef603bhtml_urlShttps://github.com/palantir/atlasdb/commit/18dc5570a384c7c4558dbd49d1775c4fd8ef603bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/commentsj< }(login	ToemmscheidJboj< MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j< &https://api.github.com/users/Toemmschej< https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj< }(j< web-flowj< J/j< MDQ6VXNlcjE5ODY0NDQ3j< 4https://avatars.githubusercontent.com/u/19864447?v=4j = h5j< %https://api.github.com/users/web-flowj< https://github.com/web-flowj= /https://api.github.com/users/web-flow/followersj= <https://api.github.com/users/web-flow/following{/other_user}j= 5https://api.github.com/users/web-flow/gists{/gist_id}j	= <https://api.github.com/users/web-flow/starred{/owner}{/repo}j= 3https://api.github.com/users/web-flow/subscriptionsj
= *https://api.github.com/users/web-flow/orgsj= +https://api.github.com/users/web-flow/reposj= 6https://api.github.com/users/web-flow/events{/privacy}j= 5https://api.github.com/users/web-flow/received_eventsj= Userj= uparents]}(j< (db330d5402a4d813ef1443fb30fc346b40ccd863j< ^https://api.github.com/repos/palantir/atlasdb/commits/db330d5402a4d813ef1443fb30fc346b40ccd863j< Shttps://github.com/palantir/atlasdb/commit/db330d5402a4d813ef1443fb30fc346b40ccd863uastats}(totalM	additionsMd	deletionsK*ufiles](}(j< (bf394f216a79b7514789c9fbcff298de26735d54filename$changelog/@unreleased/pr-6651.v2.ymlstatusaddedj1= Kj2= K changesKblob_url|https://github.com/palantir/atlasdb/blob/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/changelog%2F%40unreleased%2Fpr-6651.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/changelog%2F%40unreleased%2Fpr-6651.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6651.v2.yml?ref=18dc5570a384c7c4558dbd49d1775c4fd8ef603bpatch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Pass optional metadata through TimeLock'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6651u}(j< (1168be10177125238fd8ae7829b9a0fadb1f752bj7= Olock-api-objects/src/main/java/com/palantir/lock/watch/LockRequestMetadata.javaj9= modifiedj1= Kj2= Kj;= Kj<= https://github.com/palantir/atlasdb/blob/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj>= https://github.com/palantir/atlasdb/raw/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj@= https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.java?ref=18dc5570a384c7c4558dbd49d1775c4fd8ef603bjB= X"  @@ -29,11 +29,11 @@
 @Unsafe
 @Value.Immutable
 public interface LockRequestMetadata {
+
+    @Value.Parameter
     Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata();
 
     static LockRequestMetadata of(Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata) {
-        return ImmutableLockRequestMetadata.builder()
-                .lockDescriptorToChangeMetadata(lockDescriptorToChangeMetadata)
-                .build();
+        return ImmutableLockRequestMetadata.of(lockDescriptorToChangeMetadata);
     }
 }u}(j< (1f6e9d1cfd2b610c706b7a74bd68abe9b14e9b05j7= Wtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/AsyncTimelockServiceImpl.javaj9= modifiedj1= Kj2= Kj;= Kj<= https://github.com/palantir/atlasdb/blob/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.javaj>= https://github.com/palantir/atlasdb/raw/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.javaj@= https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.java?ref=18dc5570a384c7c4558dbd49d1775c4fd8ef603bjB= XV  @@ -48,6 +48,7 @@
 import com.palantir.lock.v2.TimestampAndPartition;
 import com.palantir.lock.v2.WaitForLocksRequest;
 import com.palantir.lock.v2.WaitForLocksResponse;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchStateUpdate;
 import com.palantir.lock.watch.LockWatchVersion;
 import com.palantir.timestamp.ManagedTimestampService;
@@ -101,7 +102,10 @@ public long getImmutableTimestamp() {
     @Override
     public ListenableFuture<LockResponseV2> lock(IdentifiedLockRequest request) {
         AsyncResult<Leased<LockToken>> result = lockService.lock(
-                request.getRequestId(), request.getLockDescriptors(), TimeLimit.of(request.getAcquireTimeoutMs()));
+                request.getRequestId(),
+                request.getLockDescriptors(),
+                TimeLimit.of(request.getAcquireTimeoutMs()),
+                request.getMetadata());
         lockLog.registerRequest(request, result);
         SettableFuture<LockResponseV2> response = SettableFuture.create();
         result.onComplete(() -> {
@@ -274,8 +278,9 @@ public <T> ValueAndLockWatchStateUpdate<T> runTask(Optional<LockWatchVersion> la
     }
 
     @Override
-    public void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token) {
-        lockService.getLockWatchingService().registerLock(locksTakenOut, token);
+    public void registerLock(
+            Set<LockDescriptor> locksTakenOut, LockToken token, Optional<LockRequestMetadata> metadata) {
+        lockService.getLockWatchingService().registerLock(locksTakenOut, token, metadata);
     }
 
     @Overrideu}(j< (f944cc9641be648a44b7330a56b77121bbc8abf0j7= Ttimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/AsyncLockService.javaj9= modifiedj1= Kj2= Kj;= Kj<= https://github.com/palantir/atlasdb/blob/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javaj>= https://github.com/palantir/atlasdb/raw/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javaj@= https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.java?ref=18dc5570a384c7c4558dbd49d1775c4fd8ef603bjB= X  @@ -23,6 +23,7 @@
 import com.palantir.lock.v2.LeaderTime;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.v2.RefreshLockResponseV2;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.io.Closeable;
@@ -117,7 +118,16 @@ private void scheduleExpiredLockReaper() {
     }
 
     public AsyncResult<Leased<LockToken>> lock(UUID requestId, Set<LockDescriptor> lockDescriptors, TimeLimit timeout) {
-        return heldLocks.getExistingOrAcquire(requestId, () -> acquireLocks(requestId, lockDescriptors, timeout));
+        return lock(requestId, lockDescriptors, timeout, Optional.empty());
+    }
+
+    public AsyncResult<Leased<LockToken>> lock(
+            UUID requestId,
+            Set<LockDescriptor> lockDescriptors,
+            TimeLimit timeout,
+            Optional<LockRequestMetadata> metadata) {
+        return heldLocks.getExistingOrAcquire(
+                requestId, () -> acquireLocks(requestId, lockDescriptors, timeout, metadata));
     }
 
     public AsyncResult<Leased<LockToken>> lockImmutableTimestamp(UUID requestId, long timestamp) {
@@ -137,9 +147,12 @@ public Optional<Long> getImmutableTimestamp() {
     }
 
     private AsyncResult<HeldLocks> acquireLocks(
-            UUID requestId, Set<LockDescriptor> lockDescriptors, TimeLimit timeout) {
+            UUID requestId,
+            Set<LockDescriptor> lockDescriptors,
+            TimeLimit timeout,
+            Optional<LockRequestMetadata> metadata) {
         OrderedLocks orderedLocks = locks.getAll(lockDescriptors);
-        return lockAcquirer.acquireLocks(requestId, orderedLocks, timeout);
+        return lockAcquirer.acquireLocks(requestId, orderedLocks, timeout, metadata);
     }
 
     private AsyncResult<Void> awaitLocks(UUID requestId, Set<LockDescriptor> lockDescriptors, TimeLimit timeout) {u}(j< (3c957b003aa7c8f4101a6b55616b54707ad01da5j7= Mtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/HeldLocks.javaj9= modifiedj1= Kj2= Kj;= Kj<= https://github.com/palantir/atlasdb/blob/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocks.javaj>= https://github.com/palantir/atlasdb/raw/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocks.javaj@= https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocks.java?ref=18dc5570a384c7c4558dbd49d1775c4fd8ef603bjB= X  @@ -21,7 +21,9 @@
 import com.palantir.common.time.NanoTime;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.LockRequestMetadata;
 import java.util.Collection;
+import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.function.Supplier;
@@ -60,18 +62,28 @@ public static HeldLocks create(
             UUID requestId,
             LeaderClock leaderClock,
             LockWatchingService lockWatchingService) {
+        return create(lockLog, acquiredLocks, requestId, leaderClock, lockWatchingService, Optional.empty());
+    }
+
+    public static HeldLocks create(
+            LockLog lockLog,
+            Collection<AsyncLock> acquiredLocks,
+            UUID requestId,
+            LeaderClock leaderClock,
+            LockWatchingService lockWatchingService,
+            Optional<LockRequestMetadata> metadata) {
         HeldLocks locks = new HeldLocks(
                 lockLog,
                 acquiredLocks,
                 requestId,
                 new LeaseExpirationTimer(() -> leaderClock.time().currentTime()),
                 lockWatchingService);
-        locks.registerLock();
+        locks.registerLock(metadata);
         return locks;
     }
 
-    private void registerLock() {
-        lockWatchingService.registerLock(descriptors.get(), token);
+    private void registerLock(Optional<LockRequestMetadata> metadata) {
+        lockWatchingService.registerLock(descriptors.get(), token, metadata);
     }
 
     /**u}(j< (030591fe1a8a0d3b07402f1fac8d196fea900762j7= Ptimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/LockAcquirer.javaj9= modifiedj1= Kj2= Kj;= K	j<= https://github.com/palantir/atlasdb/blob/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FLockAcquirer.javaj>= https://github.com/palantir/atlasdb/raw/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FLockAcquirer.javaj@= https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FLockAcquirer.java?ref=18dc5570a384c7c4558dbd49d1775c4fd8ef603bjB= X0  @@ -17,9 +17,11 @@
 
 import com.google.common.base.Throwables;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingService;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.Optional;
 import java.util.UUID;
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.concurrent.TimeUnit;
@@ -46,9 +48,14 @@ public LockAcquirer(
     }
 
     public AsyncResult<HeldLocks> acquireLocks(UUID requestId, OrderedLocks locks, TimeLimit timeout) {
+        return acquireLocks(requestId, locks, timeout, Optional.empty());
+    }
+
+    public AsyncResult<HeldLocks> acquireLocks(
+            UUID requestId, OrderedLocks locks, TimeLimit timeout, Optional<LockRequestMetadata> metadata) {
         return new Acquisition(requestId, locks, timeout, lock -> lock.lock(requestId))
                 .execute()
-                .map(ignored -> HeldLocks.create(lockLog, locks.get(), requestId, leaderClock, lockWatcher));
+                .map(ignored -> HeldLocks.create(lockLog, locks.get(), requestId, leaderClock, lockWatcher, metadata));
     }
 
     public AsyncResult<Void> waitForLocks(UUID requestId, OrderedLocks locks, TimeLimit timeout) {u}(j< (e57475bea484a97604fa999cf8ab4593fb78af9bj7= Vtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLog.javaj9= modifiedj1= Kj2= Kj;= Kj<= https://github.com/palantir/atlasdb/blob/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLog.javaj>= https://github.com/palantir/atlasdb/raw/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLog.javaj@= https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLog.java?ref=18dc5570a384c7c4558dbd49d1775c4fd8ef603bjB= X[  @@ -18,6 +18,7 @@
 
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchStateUpdate;
 import com.palantir.lock.watch.LockWatchVersion;
 import java.util.Optional;
@@ -29,7 +30,11 @@ public interface LockEventLog {
 
     <T> ValueAndLockWatchStateUpdate<T> runTask(Optional<LockWatchVersion> lastKnownVersion, Supplier<T> task);
 
-    void logLock(Set<LockDescriptor> locksTakenOut, LockToken lockToken);
+    default void logLock(Set<LockDescriptor> locksTakenOut, LockToken lockToken) {
+        logLock(locksTakenOut, lockToken, Optional.empty());
+    }
+
+    void logLock(Set<LockDescriptor> locksTakenOut, LockToken lockToken, Optional<LockRequestMetadata> metadata);
 
     void logUnlock(Set<LockDescriptor> locksUnlocked);
 u}(j< (29d09ec24e5cd6807891a4f9fff38d0d568a681ej7= Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImpl.javaj9= modifiedj1= Kj2= Kj;= Kj<= https://github.com/palantir/atlasdb/blob/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javaj>= https://github.com/palantir/atlasdb/raw/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javaj@= https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.java?ref=18dc5570a384c7c4558dbd49d1775c4fd8ef603bjB= X  @@ -22,6 +22,7 @@
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchReferences.LockWatchReference;
 import com.palantir.lock.watch.LockWatchStateUpdate;
@@ -61,8 +62,9 @@ public synchronized <T> ValueAndLockWatchStateUpdate<T> runTask(
     }
 
     @Override
-    public synchronized void logLock(Set<LockDescriptor> locksTakenOut, LockToken lockToken) {
-        slidingWindow.add(LockEvent.builder(locksTakenOut, lockToken));
+    public synchronized void logLock(
+            Set<LockDescriptor> locksTakenOut, LockToken lockToken, Optional<LockRequestMetadata> metadata) {
+        slidingWindow.add(LockEvent.builder(locksTakenOut, lockToken, metadata));
     }
 
     @Overrideu}(j< (d34c1794b33ad9b9490743a42f40f6bfe58edd2fj7= ]timelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingService.javaj9= modifiedj1= Kj2= Kj;= Kj<= https://github.com/palantir/atlasdb/blob/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingService.javaj>= https://github.com/palantir/atlasdb/raw/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingService.javaj@= https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingService.java?ref=18dc5570a384c7c4558dbd49d1775c4fd8ef603bjB= X  @@ -19,6 +19,7 @@
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.client.LockWatchStarter;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchStateUpdate;
 import com.palantir.lock.watch.LockWatchVersion;
 import java.util.Optional;
@@ -30,7 +31,11 @@ public interface LockWatchingService extends LockWatchStarter {
 
     <T> ValueAndLockWatchStateUpdate<T> runTask(Optional<LockWatchVersion> lastKnownVersion, Supplier<T> task);
 
-    void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token);
+    default void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token) {
+        registerLock(locksTakenOut, token, Optional.empty());
+    }
+
+    void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token, Optional<LockRequestMetadata> metadata);
 
     void registerUnlock(Set<LockDescriptor> locksUnlocked);
 }u}(j< (acad0fe5e89078152845c5019485c1c88c7996c0j7= atimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javaj9= modifiedj1= K3j2= Kj;= K9j<= https://github.com/palantir/atlasdb/blob/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj>= https://github.com/palantir/atlasdb/raw/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj@= https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=18dc5570a384c7c4558dbd49d1775c4fd8ef603bjB= X  @@ -22,9 +22,12 @@
 import com.google.common.collect.TreeRangeSet;
 import com.palantir.atlasdb.timelock.api.LockWatchRequest;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LeadershipId;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchReferences;
 import com.palantir.lock.watch.LockWatchReferences.LockWatchReference;
 import com.palantir.lock.watch.LockWatchStateUpdate;
@@ -34,12 +37,14 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.HashSet;
+import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.concurrent.locks.ReadWriteLock;
 import java.util.concurrent.locks.ReentrantReadWriteLock;
+import java.util.function.BiConsumer;
 import java.util.function.Consumer;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
@@ -104,8 +109,12 @@ public <T> ValueAndLockWatchStateUpdate<T> runTask(Optional<LockWatchVersion> la
     }
 
     @Override
-    public void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token) {
-        runIfDescriptorsMatchLockWatches(locksTakenOut, filteredLocks -> lockEventLog.logLock(filteredLocks, token));
+    public void registerLock(
+            Set<LockDescriptor> locksTakenOut, LockToken token, Optional<LockRequestMetadata> metadata) {
+        runIfDescriptorsMatchLockWatchesWithMetadata(
+                locksTakenOut,
+                metadata,
+                (filteredLocks, filteredMetadata) -> lockEventLog.logLock(filteredLocks, token, filteredMetadata));
     }
 
     @Override
@@ -147,16 +156,52 @@ private void logLockWatchEvent(LockWatches newWatches) {
 
     private void runIfDescriptorsMatchLockWatches(
             Set<LockDescriptor> unfiltered, Consumer<Set<LockDescriptor>> consumer) {
+        runIfDescriptorsMatchLockWatchesWithMetadata(
+                unfiltered, Optional.empty(), (lockDescriptors, unused) -> consumer.accept(lockDescriptors));
+    }
+
+    private void runIfDescriptorsMatchLockWatchesWithMetadata(
+            Set<LockDescriptor> unfilteredLocks,
+            Optional<LockRequestMetadata> unfilteredMetadata,
+            BiConsumer<Set<LockDescriptor>, Optional<LockRequestMetadata>> biConsumer) {
         watchesLock.readLock().lock();
         try {
             RangeSet<LockDescriptor> ranges = watches.get().ranges();
-            Set<LockDescriptor> filtered =
-                    unfiltered.stream().filter(ranges::contains).collect(Collectors.toSet());
-            if (!filtered.isEmpty()) {
-                consumer.accept(filtered);
+            Set<LockDescriptor> filteredLocks =
+                    unfilteredLocks.stream().filter(ranges::contains).collect(Collectors.toSet());
+            if (filteredLocks.isEmpty()) {
+                return;
             }
+            // Filtering metadata after deciding if we should even proceed might save us some computation
+            biConsumer.accept(
+                    filteredLocks,
+                    filterMetadataBasedOnFilteredLocks(unfilteredLocks, filteredLocks, unfilteredMetadata));
         } finally {
             watchesLock.readLock().unlock();
         }
     }
+
+    // For an efficient encoding, we expect that metadata is never attached to a lock descriptor that is not contained
+    // in the original request, so filtering metadata based on the already filtered locks is sufficient and even
+    // enforces this invariant. It is also cheaper than calling RangeSet::contains.
+    // We assert that the invariant holds for non-production code to catch any attempts of violating that invariant
+    // early.
+    @SuppressWarnings("BadAssert")
+    private static Optional<LockRequestMetadata> filterMetadataBasedOnFilteredLocks(
+            Set<LockDescriptor> unfilteredLocks,
+            Set<LockDescriptor> filteredLocks,
+            Optional<LockRequestMetadata> unfilteredMetadata) {
+        return unfilteredMetadata
+                .map(LockRequestMetadata::lockDescriptorToChangeMetadata)
+                .map(unfilteredLockMetadata -> {
+                    Map<LockDescriptor, ChangeMetadata> filteredLockMetadata = KeyedStream.ofEntries(
+                                    unfilteredLockMetadata.entrySet().stream())
+                            .filterKeys(lockDescriptor -> {
+                                assert unfilteredLocks.contains(lockDescriptor) : "Unknown lock descriptor in metadata";
+                                return filteredLocks.contains(lockDescriptor);
+                            })
+                            .collectToMap();
+                    return LockRequestMetadata.of(filteredLockMetadata);
+                });
+    }
 }u}(j< (8e020b91d52d16688f90e3b5b814c087faf5f702j7= etimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImplTest.javaj9= modifiedj1= K j2= Kj;= K.j<= https://github.com/palantir/atlasdb/blob/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaj>= https://github.com/palantir/atlasdb/raw/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaj@= https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.java?ref=18dc5570a384c7c4558dbd49d1775c4fd8ef603bjB= Xd  @@ -33,11 +33,14 @@
 import com.palantir.atlasdb.timelock.lock.ExclusiveLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocks;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.AtlasCellLockDescriptor;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.ChangeMetadata;
 import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
 import com.palantir.lock.watch.LockWatchReferences.LockWatchReference;
@@ -69,6 +72,7 @@ public class LockWatchingServiceImplTest {
     private static final LockDescriptor ROW_DESCRIPTOR = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), ROW);
     private static final AsyncLock LOCK = new ExclusiveLock(ROW_DESCRIPTOR);
     private static final AsyncLock LOCK_2 = new ExclusiveLock(descriptorForOtherTable());
+    private static final ChangeMetadata DUMMY_METADATA = ChangeMetadata.unchanged();
 
     private final HeldLocksCollection locks = mock(HeldLocksCollection.class);
     private final LockWatchingService lockWatcher = new LockWatchingServiceImpl(LOG_ID, locks);
@@ -148,10 +152,11 @@ public void watchExactRowLockWatchLogsHeldLocksInRange() {
         lockWatcher.startWatching(request);
 
         Set<LockDescriptor> cellDescriptor = ImmutableSet.of(CELL_DESCRIPTOR);
-        lockWatcher.registerLock(cellDescriptor, TOKEN);
+        lockWatcher.registerLock(cellDescriptor, TOKEN, createMetadataForLocks(cellDescriptor));
 
         assertLoggedEvents(ImmutableList.of(
-                createdEvent(request.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)), lockEvent(cellDescriptor)));
+                createdEvent(request.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
+                lockEvent(cellDescriptor, createMetadataForLocks(cellDescriptor))));
     }
 
     @Test
@@ -232,10 +237,12 @@ public void exactCellWatchMatchesExactDescriptorOnly() {
         lockWatcher.startWatching(request);
 
         ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, cellSuffixDescriptor);
-        lockWatcher.registerLock(locks, TOKEN);
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
 
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(CELL_DESCRIPTOR);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
-                createdEvent(request.getReferences(), ImmutableSet.of()), lockEvent(ImmutableSet.of(CELL_DESCRIPTOR)));
+                createdEvent(request.getReferences(), ImmutableSet.of()),
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -246,11 +253,12 @@ public void exactRowWatchMatchesCellAndRowDescriptors() {
         lockWatcher.startWatching(rowRequest);
 
         ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR);
-        lockWatcher.registerLock(locks, TOKEN);
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
 
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(rowRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
-                lockEvent(ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR)));
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -263,11 +271,12 @@ public void rowPrefixWatchMatchesSuffixes() {
         lockWatcher.startWatching(prefixRequest);
 
         ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR, notPrefixDescriptor);
-        lockWatcher.registerLock(locks, TOKEN);
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
 
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(prefixRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
-                lockEvent(ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR)));
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -289,11 +298,13 @@ public void rowRangeWatchTest() {
 
         ImmutableSet<LockDescriptor> locks =
                 ImmutableSet.of(cellInRange, cellOutOfRange, rowInRange, rowInRange2, rowOutOfRange);
-        lockWatcher.registerLock(locks, TOKEN);
 
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
+
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(cellInRange, rowInRange, rowInRange2);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(rangeRequest.getReferences(), ImmutableSet.of()),
-                lockEvent(ImmutableSet.of(cellInRange, rowInRange, rowInRange2)));
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -308,11 +319,13 @@ public void entireTableWatchTest() {
 
         ImmutableSet<LockDescriptor> locks =
                 ImmutableSet.of(CELL_DESCRIPTOR, cellOutOfRange, rowInRange, rowOutOfRange);
-        lockWatcher.registerLock(locks, TOKEN);
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
 
+        ImmutableSet<LockDescriptor> expectedFilteredLocks =
+                ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR, rowInRange);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(tableRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
-                lockEvent(ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR, rowInRange)));
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -333,8 +346,8 @@ private LockWatchEvent createdEvent(Set<LockWatchReference> references, Set<Lock
         return LockWatchCreatedEvent.builder(references, descriptors).build(sequenceCounter++);
     }
 
-    private LockWatchEvent lockEvent(Set<LockDescriptor> lockDescriptors) {
-        return LockEvent.builder(lockDescriptors, TOKEN).build(sequenceCounter++);
+    private LockWatchEvent lockEvent(Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {
+        return LockEvent.builder(lockDescriptors, TOKEN, metadata).build(sequenceCounter++);
     }
 
     private LockWatchEvent unlockEvent(Set<LockDescriptor> lockDescriptors) {
@@ -357,6 +370,11 @@ private static LockDescriptor descriptorForOtherTable() {
         return AtlasRowLockDescriptor.of(TABLE_2.getQualifiedName(), ROW);
     }
 
+    private static Optional<LockRequestMetadata> createMetadataForLocks(Set<LockDescriptor> lockDescriptors) {
+        return Optional.of(LockRequestMetadata.of(
+                KeyedStream.of(lockDescriptors).map(_unused -> DUMMY_METADATA).collectToMap()));
+    }
+
     private void assertLoggedEvents(List<LockWatchEvent> expectedEvents) {
         LockWatchStateUpdate update = lockWatcher.getWatchStateUpdate(Optional.of(LockWatchVersion.of(LOG_ID, -1L)));
         List<LockWatchEvent> events = UpdateVisitors.assertSuccess(update).events();u     }(j< (fb460280ffa23175590cd51c5cd0ff56b8139991j7= ftimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataTest.javaj9= addedj1= Kj2= K j;= Kj<= https://github.com/palantir/atlasdb/blob/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj>= https://github.com/palantir/atlasdb/raw/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj@= https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.java?ref=18dc5570a384c7c4558dbd49d1775c4fd8ef603bjB= X2%  @@ -0,0 +1,195 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatException;
+
+import com.codahale.metrics.MetricRegistry;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.atlasdb.futures.AtlasFutures;
+import com.palantir.atlasdb.timelock.api.ConjureIdentifiedVersion;
+import com.palantir.atlasdb.timelock.api.ConjureStartTransactionsRequest;
+import com.palantir.atlasdb.timelock.api.ConjureStartTransactionsResponse;
+import com.palantir.atlasdb.timelock.api.LockWatchRequest;
+import com.palantir.atlasdb.timelock.lock.AsyncLockService;
+import com.palantir.atlasdb.timelock.lock.LockLog;
+import com.palantir.lock.AtlasRowLockDescriptor;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.client.IdentifiedLockRequest;
+import com.palantir.lock.client.ImmutableIdentifiedLockRequest;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
+import com.palantir.lock.watch.LockWatchCreatedEvent;
+import com.palantir.lock.watch.LockWatchEvent;
+import com.palantir.lock.watch.LockWatchReferences;
+import com.palantir.lock.watch.LockWatchStateUpdate;
+import com.palantir.lock.watch.LockWatchStateUpdate.Snapshot;
+import com.palantir.lock.watch.LockWatchStateUpdate.Success;
+import com.palantir.lock.watch.UnlockEvent;
+import com.palantir.timestamp.InMemoryTimestampService;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.UUID;
+import java.util.concurrent.ExecutionException;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.stream.Collectors;
+import org.jmock.lib.concurrent.DeterministicScheduler;
+import org.junit.Before;
+import org.junit.Test;
+
+public class AsyncTimeLockServiceMetadataTest {
+    private static final LockWatchEventVisitor LOCK_WATCH_EVENT_VISITOR = new LockWatchEventVisitor();
+    private static final LockWatchStateUpdateVisitor LOCK_WATCH_STATE_UPDATE_VISITOR =
+            new LockWatchStateUpdateVisitor();
+
+    private static final String WATCHED_TABLE_NAME = "watched-table";
+    private static final LockDescriptor WATCHED_LOCK =
+            AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, PtBytes.toBytes("lock1"));
+    private static final Map<LockDescriptor, ChangeMetadata> ALL_WATCHED_LOCKS_WITH_METADATA =
+            ImmutableMap.of(WATCHED_LOCK, ChangeMetadata.updated(PtBytes.toBytes("old"), PtBytes.toBytes("new")));
+    private static final String UNWATCHED_TABLE_NAME = "a-random-unwatched-table";
+    private static final LockDescriptor UNWATCHED_LOCK =
+            AtlasRowLockDescriptor.of(UNWATCHED_TABLE_NAME, PtBytes.toBytes("lock1"));
+    private static final IdentifiedLockRequest WATCHED_LOCK_REQUEST_WITH_METADATA =
+            standardRequestWithMetadata(ALL_WATCHED_LOCKS_WITH_METADATA);
+
+    private final LockLog lockLog = new LockLog(new MetricRegistry(), () -> 10000L);
+    private final ScheduledExecutorService scheduledExecutorService = new DeterministicScheduler();
+    private final AsyncLockService asyncLockService =
+            AsyncLockService.createDefault(lockLog, scheduledExecutorService, scheduledExecutorService);
+    private final AsyncTimelockServiceImpl timeLockService =
+            new AsyncTimelockServiceImpl(asyncLockService, new InMemoryTimestampService(), lockLog);
+    private final ConjureStartTransactionsRequest startTransactionsRequestWithInitialVersion =
+            ConjureStartTransactionsRequest.builder()
+                    .requestId(UUID.randomUUID())
+                    .lastKnownVersion(ConjureIdentifiedVersion.of(
+                            asyncLockService.leaderTime().id().id(), 0))
+                    .numTransactions(1)
+                    .requestorId(UUID.randomUUID())
+                    .build();
+
+    @Before
+    public void setup() {
+        timeLockService.startWatching(
+                LockWatchRequest.of(ImmutableSet.of(LockWatchReferences.entireTable(WATCHED_TABLE_NAME))));
+    }
+
+    @Test
+    public void absentMetadataIsPassedThrough() {
+        // this will create a lock request for 4 lock descriptors, but with absent metadata
+        IdentifiedLockRequest requestWithoutMetadata = ImmutableIdentifiedLockRequest.copyOf(
+                        standardRequestWithMetadata(ALL_WATCHED_LOCKS_WITH_METADATA))
+                .withMetadata(Optional.empty());
+        timeLockService.lock(requestWithoutMetadata);
+
+        assertThat(getAllLockEventsMetadata()).containsExactly(Optional.empty());
+    }
+
+    @Test
+    public void metadataIsPassedThroughForWatchedTable() {
+        timeLockService.lock(WATCHED_LOCK_REQUEST_WITH_METADATA);
+
+        assertThat(getAllLockEventsMetadata())
+                .containsExactly(Optional.of(LockRequestMetadata.of(ALL_WATCHED_LOCKS_WITH_METADATA)));
+    }
+
+    // This test is trivial for our current metadata constraints (metadata is only allowed for locks
+    // that are part of the original request), but we would also want this behavior if the constraints weren't there
+    @Test
+    public void noLockEventIsPublishedIfNothingIsWatched() {
+        IdentifiedLockRequest mixedRequest = standardRequestWithMetadata(ImmutableMap.of(
+                UNWATCHED_LOCK, ChangeMetadata.updated(PtBytes.toBytes("bla"), PtBytes.toBytes("blabla"))));
+        timeLockService.lock(mixedRequest);
+
+        assertThat(getAllLockEventsMetadata()).isEmpty();
+    }
+
+    // This test verifies that future developers are alerted when they break the metadata invariant by trying to pass
+    // metadata that is not attached to a lock descriptor that is part of the original request.
+    @Test
+    public void cannotPassDownMetadataForUnknownLockDescriptors() {
+        IdentifiedLockRequest goodRequest =
+                standardRequestWithMetadata(ImmutableMap.of(WATCHED_LOCK, ChangeMetadata.unchanged()));
+        IdentifiedLockRequest badRequest = ImmutableIdentifiedLockRequest.builder()
+                .from(goodRequest)
+                .metadata(LockRequestMetadata.of(
+                        ImmutableMap.of(StringLockDescriptor.of("some-random-lock"), ChangeMetadata.unchanged())))
+                .build();
+        assertThatException()
+                .isThrownBy(() -> timeLockService.lock(badRequest).get())
+                .isInstanceOf(ExecutionException.class)
+                .havingCause()
+                .isInstanceOf(AssertionError.class)
+                .withMessage("Unknown lock descriptor in metadata");
+    }
+
+    private List<Optional<LockRequestMetadata>> getAllLockEventsMetadata() {
+        return getAllLockWatchEvents().stream()
+                .map(event -> event.accept(LOCK_WATCH_EVENT_VISITOR))
+                .flatMap(Optional::stream)
+                .map(LockEvent::metadata)
+                .collect(Collectors.toList());
+    }
+
+    private List<LockWatchEvent> getAllLockWatchEvents() {
+        ListenableFuture<ConjureStartTransactionsResponse> responseFuture =
+                timeLockService.startTransactionsWithWatches(startTransactionsRequestWithInitialVersion);
+        return AtlasFutures.getUnchecked(responseFuture).getLockWatchUpdate().accept(LOCK_WATCH_STATE_UPDATE_VISITOR);
+    }
+
+    private static IdentifiedLockRequest standardRequestWithMetadata(Map<LockDescriptor, ChangeMetadata> metadata) {
+        return IdentifiedLockRequest.of(metadata.keySet(), 1000, "testClient", LockRequestMetadata.of(metadata));
+    }
+
+    private static final class LockWatchEventVisitor implements LockWatchEvent.Visitor<Optional<LockEvent>> {
+        @Override
+        public Optional<LockEvent> visit(LockEvent lockEvent) {
+            return Optional.of(lockEvent);
+        }
+
+        @Override
+        public Optional<LockEvent> visit(UnlockEvent unlockEvent) {
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<LockEvent> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
+            return Optional.empty();
+        }
+    }
+
+    private static final class LockWatchStateUpdateVisitor
+            implements LockWatchStateUpdate.Visitor<List<LockWatchEvent>> {
+        @Override
+        public List<LockWatchEvent> visit(Success success) {
+            return success.events();
+        }
+
+        @Override
+        public List<LockWatchEvent> visit(Snapshot snapshot) {
+            return ImmutableList.of();
+        }
+    }
+}u}(j< (4a70d424c5e4d208920397fec5510c40d956832bj7= Ztimelock-server/src/test/java/com/palantir/atlasdb/timelock/lock/AsyncLockServiceTest.javaj9= modifiedj1= Kj2= Kj;= Kj<= https://github.com/palantir/atlasdb/blob/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javaj>= https://github.com/palantir/atlasdb/raw/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javaj@= https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.java?ref=18dc5570a384c7c4558dbd49d1775c4fd8ef603bjB= X  @@ -73,6 +73,7 @@ public class AsyncLockServiceTest {
     @Before
     public void before() {
         when(acquirer.acquireLocks(any(), any(), any())).thenReturn(new AsyncResult<>());
+        when(acquirer.acquireLocks(any(), any(), any(), any())).thenReturn(new AsyncResult<>());
         when(acquirer.waitForLocks(any(), any(), any())).thenReturn(new AsyncResult<>());
         when(locks.getAll(any())).thenReturn(OrderedLocks.fromSingleLock(newLock()));
         when(immutableTimestampTracker.getImmutableTimestamp()).thenReturn(Optional.empty());
@@ -87,7 +88,7 @@ public void passesOrderedLocksToAcquirer() {
 
         lockService.lock(REQUEST_ID, descriptors, DEADLINE);
 
-        verify(acquirer).acquireLocks(REQUEST_ID, expected, DEADLINE);
+        verify(acquirer).acquireLocks(REQUEST_ID, expected, DEADLINE, Optional.empty());
     }
 
     @Test
@@ -107,7 +108,7 @@ public void doesNotAcquireDuplicateRequests() {
         lockService.lock(REQUEST_ID, descriptors, DEADLINE);
         lockService.lock(REQUEST_ID, descriptors, DEADLINE);
 
-        verify(acquirer, times(1)).acquireLocks(any(), any(), any());
+        verify(acquirer, times(1)).acquireLocks(any(), any(), any(), any());
         verifyNoMoreInteractions(acquirer);
     }
 
@@ -155,7 +156,7 @@ public void reaperDoesNotDieIfItEncountersAnException() {
     public void propagatesTimeoutExceptionIfRequestTimesOut() {
         AsyncResult<HeldLocks> timedOutResult = new AsyncResult<>();
         timedOutResult.timeout();
-        when(acquirer.acquireLocks(any(), any(), any())).thenReturn(timedOutResult);
+        when(acquirer.acquireLocks(any(), any(), any(), any())).thenReturn(timedOutResult);
 
         AsyncResult<?> result = lockService.lock(REQUEST_ID, descriptors(LOCK_A), DEADLINE);
 u}(j< (4b328d3f0757723e1c47adf5e7cc0a4f9aa41060j7= ]timelock-server/src/test/java/com/palantir/atlasdb/timelock/lock/HeldLocksCollectionTest.javaj9= modifiedj1= Kj2= Kj;= Kj<= https://github.com/palantir/atlasdb/blob/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocksCollectionTest.javaj>= https://github.com/palantir/atlasdb/raw/18dc5570a384c7c4558dbd49d1775c4fd8ef603b/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocksCollectionTest.javaj@= https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocksCollectionTest.java?ref=18dc5570a384c7c4558dbd49d1775c4fd8ef603bjB= X  @@ -32,6 +32,7 @@
 import com.palantir.lock.v2.Lease;
 import com.palantir.lock.v2.LockToken;
 import java.time.Duration;
+import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.atomic.AtomicLong;
@@ -188,7 +189,7 @@ public void lockWatchingServiceIsUpdatedAfterLockIsCreatedAndReaped() {
         AsyncResult<Leased<LockToken>> asyncResult = heldLocksCollection.getExistingOrAcquire(REQUEST_ID, () -> result);
         result.complete(heldLocksForId(REQUEST_ID));
         verify(lockWatcher)
-                .registerLock(ImmutableSet.of(LOCK_DESCRIPTOR), result.get().getToken());
+                .registerLock(ImmutableSet.of(LOCK_DESCRIPTOR), result.get().getToken(), Optional.empty());
 
         Lease lease = asyncResult.get().lease();
 
@@ -206,7 +207,7 @@ public void lockWatchingServiceIsUpdatedAfterLockIsCreatedAndUnlocked() {
         heldLocksCollection.getExistingOrAcquire(REQUEST_ID, () -> result);
         result.complete(heldLocksForId(REQUEST_ID));
         verify(lockWatcher)
-                .registerLock(ImmutableSet.of(LOCK_DESCRIPTOR), result.get().getToken());
+                .registerLock(ImmutableSet.of(LOCK_DESCRIPTOR), result.get().getToken(), Optional.empty());
 
         heldLocksCollection.unlock(ImmutableSet.of(LockToken.of(REQUEST_ID)));
         verify(lockWatcher).registerUnlock(ImmutableSet.of(LOCK_DESCRIPTOR));ueu(d1f38be4d5ced53e7386ca34dcf7457e65ef766f}(sha(d1f38be4d5ced53e7386ca34dcf7457e65ef766fnode_idEC_kwDOAjP5fdoAKGQxZjM4YmU0ZDVjZWQ1M2U3Mzg2Y2EzNGRjZjc0NTdlNjVlZjc2NmYcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2022-07-19T13:20:55Zu	committer}(j= David Schlosnaglej= davids@palantir.comj= 2023-05-22T13:56:23Zumessage2Cell#equals checks memoized hash code for mismatchtree}(j= (752b8bae64979fad65c68cd12c436328891561eburl`https://api.github.com/repos/palantir/atlasdb/git/trees/752b8bae64979fad65c68cd12c436328891561ebuj= bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d1f38be4d5ced53e7386ca34dcf7457e65ef766f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmRrdIkACgkQR9hsJ74Q
0l8ucgf+Mqe5Inm21Xg1UIbH+EmyRtjyJRHDihnpinN0NQR/Ki3tSDWH46sSryjG
XjQiLxkEl4qVBA3e+l8GixAowyXv7eRluuyWTjA/EfKve+/6LOAX+FIALpJfC5XH
61LcCifcO62WsXLCupNbQxCB3wNyy5pJeTBsYul08p1sjB3+PkzMCDmCnNdSrVFM
2tYaifWhkMFILteTBq2s1nlnF3bR575B4n0xj32Fju1YXu88TLopSRJCt4bs0v4R
vymr8i+cQPUT1lvVYPXs9GJqGdubGU5CNf0aM0gGeGT2r0ydLlr2WCvfc/8gU5tH
ovj5PvFLtOx4VtB7/cuZLBulU87qTA==
=sTVL
-----END PGP SIGNATURE-----payloadX  tree 752b8bae64979fad65c68cd12c436328891561eb
parent 730db668b0486dbebe9afbb25a4609052d62cac5
author David Schlosnagle <davids@palantir.com> 1658236855 -0400
committer David Schlosnagle <davids@palantir.com> 1684763783 -0400

Cell#equals checks memoized hash code for mismatch
uuj= ^https://api.github.com/repos/palantir/atlasdb/commits/d1f38be4d5ced53e7386ca34dcf7457e65ef766fhtml_urlShttps://github.com/palantir/atlasdb/commit/d1f38be4d5ced53e7386ca34dcf7457e65ef766fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d1f38be4d5ced53e7386ca34dcf7457e65ef766f/commentsj= }(loginschlosnaidMBj= MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j= %https://api.github.com/users/schlosnaj= https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj= }(j= schlosnaj= MBj= MDQ6VXNlcjU0NTk0j= 1https://avatars.githubusercontent.com/u/54594?v=4j= h5j= %https://api.github.com/users/schlosnaj= https://github.com/schlosnaj= /https://api.github.com/users/schlosna/followersj= <https://api.github.com/users/schlosna/following{/other_user}j= 5https://api.github.com/users/schlosna/gists{/gist_id}j= <https://api.github.com/users/schlosna/starred{/owner}{/repo}j= 3https://api.github.com/users/schlosna/subscriptionsj= *https://api.github.com/users/schlosna/orgsj= +https://api.github.com/users/schlosna/reposj= 6https://api.github.com/users/schlosna/events{/privacy}j= 5https://api.github.com/users/schlosna/received_eventsj= Userj= uparents]}(j= (730db668b0486dbebe9afbb25a4609052d62cac5j= ^https://api.github.com/repos/palantir/atlasdb/commits/730db668b0486dbebe9afbb25a4609052d62cac5j= Shttps://github.com/palantir/atlasdb/commit/730db668b0486dbebe9afbb25a4609052d62cac5uastats}(totalK	additionsK	deletionsKufiles](}(j= (ebbca7674be73384435d1ca3fe4252322467af7bfilenameEatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/Cell.javastatusmodifiedj> Kj> KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/d1f38be4d5ced53e7386ca34dcf7457e65ef766f/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCell.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d1f38be4d5ced53e7386ca34dcf7457e65ef766f/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCell.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCell.java?ref=d1f38be4d5ced53e7386ca34dcf7457e65ef766fpatchXT  @@ -137,6 +137,12 @@ public boolean equals(Object obj) {
             return false;
         }
         Cell other = (Cell) obj;
+        int thisHash = this.hashCode;
+        int thatHash = other.hashCode;
+        if (thisHash != 0 && thatHash != 0 && thisHash != thatHash) {
+            // memoized hash code mismatch is cheaper than comparing full rowName & columnName
+            return false;
+        }
         return Arrays.equals(rowName, other.rowName) && Arrays.equals(columnName, other.columnName);
     }
 
@@ -147,15 +153,17 @@ public int hashCode() {
          * accessed via hash collections, but computation can be expensive, and
          * allow for benign data races.
          */
-        if (hashCode == 0) {
+        int hash = hashCode;
+        if (hash == 0) {
             /*
              * This hashCode() implementation has a rather unfortunate case where it is always 0 if the row name and
              * the column name match. We did not want to change it to keep backwards compatibility.
              * See {@link CellReference#goodHash()}
              */
-            hashCode = Arrays.hashCode(rowName) ^ Arrays.hashCode(columnName);
+            hash = Arrays.hashCode(rowName) ^ Arrays.hashCode(columnName);
+            hashCode = hash;
         }
-        return hashCode;
+        return hash;
     }
 
     @Overrideu}(j= (6924915f518e78e6af5774844e00a617a8c43741j> Iatlasdb-api/src/test/java/com/palantir/atlasdb/keyvalue/api/CellTest.javaj> modifiedj> Kj> K j> Kj> https://github.com/palantir/atlasdb/blob/d1f38be4d5ced53e7386ca34dcf7457e65ef766f/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellTest.javaj> https://github.com/palantir/atlasdb/raw/d1f38be4d5ced53e7386ca34dcf7457e65ef766f/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellTest.javaj> https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellTest.java?ref=d1f38be4d5ced53e7386ca34dcf7457e65ef766fj!> X  @@ -81,6 +81,21 @@ public void testHashCode() {
                 .hasSameHashCodeAs(Cell.create(bytes("col"), bytes("row")));
     }
 
+    @Test
+    public void testMemoizedHashCodeEquals() {
+        Cell c1 = Cell.create(bytes("row"), bytes("col"));
+        Cell c2 = Cell.create(bytes("row"), bytes("col"));
+        Cell c3 = Cell.create(bytes("col"), bytes("row"));
+        Cell c4 = Cell.create(bytes("foo"), bytes("bar"));
+        assertThat(c1).isNotSameAs(c2).isEqualTo(c2).isNotEqualTo(c3).isNotEqualTo(c4);
+        assertThat(c1)
+                .hasSameHashCodeAs(c2)
+                .describedAs("Expected hashCode collision when rowName and colName are flipped")
+                .hasSameHashCodeAs(c3)
+                .doesNotHaveSameHashCodeAs(c4);
+        assertThat(c1).isEqualTo(c2).isNotEqualTo(c3).isNotEqualTo(c4);
+    }
+
     @Test
     public void testSizeInBytes() {
         assertThat(createCellWithByteSize(2).sizeInBytes()).isEqualTo(2);ueu(86d662a21fc36c8137c0c88820a0de6419da74f3}(sha(86d662a21fc36c8137c0c88820a0de6419da74f3node_idEC_kwDOAjP5fdoAKDg2ZDY2MmEyMWZjMzZjODEzN2MwYzg4ODIwYTBkZTY0MTlkYTc0ZjMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-03-02T23:50:49Zu	committer}(j5> Jeremy Kongj7> jkong@palantir.comj9> 2023-03-02T23:50:49Zumessage/remove suspicious alphabetical-looking orderingtree}(j-> (771474422e5c6f1005c961bc642990e194a195b5url`https://api.github.com/repos/palantir/atlasdb/git/trees/771474422e5c6f1005c961bc642990e194a195b5ujE> bhttps://api.github.com/repos/palantir/atlasdb/git/commits/86d662a21fc36c8137c0c88820a0de6419da74f3
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQBNloACgkQTLdFKain
zjygQQgAzUyD56swDypzLuJmVX0rTK9Szew3yhDBejvlaK5dzlsEOlPRMEHYjsnM
uFGhU/57FNMyPBTRy10p60Ki/qRVFhfEz3ST3sFwPJLG8M707y5ZV2tka0nlNvVK
L7A9QratS9MVhR9/kTEQIpzfQCl8yOgQDtCdJfgjV59OY87fZ4LWKKpcNRWt4tt3
xi9RfyMuMACC/xyA4pY+XE6viKI0YKmNXzYS5pjyUr2SKkyEuixTSpX5DiRoK7Nn
e3AS2fL6EyGoPCDNYgl/5yUtVmZTqbqkvm2u96BD55TrcQ3k8BbD1jF9tZpZNISu
imnHmQda1Rlcbn8+F7S/239Miuslhg==
=1dN3
-----END PGP SIGNATURE-----payloadX  tree 771474422e5c6f1005c961bc642990e194a195b5
parent 81e62bcc2539e0bdda79d4a09272f0f06a83da85
author Jeremy Kong <jkong@palantir.com> 1677801049 +0000
committer Jeremy Kong <jkong@palantir.com> 1677801049 +0000

remove suspicious alphabetical-looking ordering
uujE> ^https://api.github.com/repos/palantir/atlasdb/commits/86d662a21fc36c8137c0c88820a0de6419da74f3html_urlShttps://github.com/palantir/atlasdb/commit/86d662a21fc36c8137c0c88820a0de6419da74f3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/86d662a21fc36c8137c0c88820a0de6419da74f3/commentsj3> }(login
jeremyk-91idJZ j/> MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jE> 'https://api.github.com/users/jeremyk-91jS> https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj;> }(jX> 
jeremyk-91jZ> JZ j/> MDQ6VXNlcjU5NTU1MTA=j\> 3https://avatars.githubusercontent.com/u/5955510?v=4j^> h5jE> 'https://api.github.com/users/jeremyk-91jS> https://github.com/jeremyk-91ja> 1https://api.github.com/users/jeremyk-91/followersjc> >https://api.github.com/users/jeremyk-91/following{/other_user}je> 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jg> >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}ji> 5https://api.github.com/users/jeremyk-91/subscriptionsjk> ,https://api.github.com/users/jeremyk-91/orgsjm> -https://api.github.com/users/jeremyk-91/reposjo> 8https://api.github.com/users/jeremyk-91/events{/privacy}jq> 7https://api.github.com/users/jeremyk-91/received_eventsjs> Userju> uparents]}(j-> (81e62bcc2539e0bdda79d4a09272f0f06a83da85jE> ^https://api.github.com/repos/palantir/atlasdb/commits/81e62bcc2539e0bdda79d4a09272f0f06a83da85jS> Shttps://github.com/palantir/atlasdb/commit/81e62bcc2539e0bdda79d4a09272f0f06a83da85uastats}(totalK	additionsK	deletionsKufiles]}(j-> (f87dcf0f56bd9d0b27f2e6ead1362c777f794dddfilenameeatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractTransactionTest.javastatusmodifiedj> Kj> KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/86d662a21fc36c8137c0c88820a0de6419da74f3/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/86d662a21fc36c8137c0c88820a0de6419da74f3/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.java?ref=86d662a21fc36c8137c0c88820a0de6419da74f3patchX  @@ -704,23 +704,23 @@ public void getRangeRetainsOnlyRelevantColumnsFromLocalWrites() {
         byte[] value = new byte[1];
 
         Transaction firstTransaction = startTransaction();
-        firstTransaction.put(TEST_TABLE, ImmutableMap.of(firstCell, value, fourthCell, value));
+        firstTransaction.put(TEST_TABLE, ImmutableMap.of(firstCell, value, secondCell, value));
         firstTransaction.commit();
 
         Transaction secondTransaction = startTransaction();
-        secondTransaction.put(TEST_TABLE, ImmutableMap.of(secondCell, value, thirdCell, value));
+        secondTransaction.put(TEST_TABLE, ImmutableMap.of(thirdCell, value, fourthCell, value));
 
         BatchingVisitable<RowResult<byte[]>> rowResults = secondTransaction.getRange(
                 TEST_TABLE,
                 RangeRequest.builder()
-                        .retainColumns(ImmutableSet.of(firstColumn, secondColumn))
+                        .retainColumns(ImmutableSet.of(firstColumn, thirdColumn))
                         .build());
         List<Cell> cellsRead = BatchingVisitables.copyToList(rowResults).stream()
                 .map(RowResult::getCells)
                 .flatMap(Streams::stream)
                 .map(Entry::getKey)
                 .collect(Collectors.toList());
-        assertThat(cellsRead).containsExactly(firstCell, secondCell);
+        assertThat(cellsRead).containsExactly(firstCell, thirdCell);
     }
 
     @Test
@@ -737,11 +737,11 @@ public void deprecatedGetRangesRetainsOnlyRelevantColumnsFromLocalWrites() {
         byte[] value = new byte[1];
 
         Transaction firstTransaction = startTransaction();
-        firstTransaction.put(TEST_TABLE, ImmutableMap.of(firstCell, value, fourthCell, value));
+        firstTransaction.put(TEST_TABLE, ImmutableMap.of(firstCell, value, secondCell, value));
         firstTransaction.commit();
 
         Transaction secondTransaction = startTransaction();
-        secondTransaction.put(TEST_TABLE, ImmutableMap.of(secondCell, value, thirdCell, value));
+        secondTransaction.put(TEST_TABLE, ImmutableMap.of(thirdCell, value, fourthCell, value));
 
         Iterable<BatchingVisitable<RowResult<byte[]>>> visitables = secondTransaction.getRanges(
                 TEST_TABLE,
@@ -750,7 +750,7 @@ public void deprecatedGetRangesRetainsOnlyRelevantColumnsFromLocalWrites() {
                                 .retainColumns(ImmutableSet.of(firstColumn))
                                 .build(),
                         RangeRequest.builder()
-                                .retainColumns(ImmutableSet.of(secondColumn))
+                                .retainColumns(ImmutableSet.of(thirdColumn))
                                 .build()));
         List<Cell> cellsRead = Streams.stream(visitables)
                 .map(BatchingVisitables::copyToList)
@@ -759,7 +759,7 @@ public void deprecatedGetRangesRetainsOnlyRelevantColumnsFromLocalWrites() {
                 .flatMap(Streams::stream)
                 .map(Entry::getKey)
                 .collect(Collectors.toList());
-        assertThat(cellsRead).containsExactly(firstCell, secondCell);
+        assertThat(cellsRead).containsExactly(firstCell, thirdCell);
     }
 
     @Testuau(a2df32a5c8430028d68c99e5a6a54294375ed779}(sha(a2df32a5c8430028d68c99e5a6a54294375ed779node_idEC_kwDOAjP5fdoAKGEyZGYzMmE1Yzg0MzAwMjhkNjhjOTllNWE2YTU0Mjk0Mzc1ZWQ3Nzkcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-07-27T17:50:43Zu	committer}(j> svc-autoreleasej> -pd-foundry-infrastructure-notify@palantir.comj> 2023-07-27T17:50:43ZumessageAutorelease 0.907.0

[skip ci]tree}(j> (6e32e93596c8b35bd30d7a0698e59b320bf11fc0url`https://api.github.com/repos/palantir/atlasdb/git/trees/6e32e93596c8b35bd30d7a0698e59b320bf11fc0uj> bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a2df32a5c8430028d68c99e5a6a54294375ed779
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmTCrnkACgkQhbrR8ip7mDD4xwEAh2UU0R9VzpwcsFWa8qI4+rcQ
b/Z2XQlQXz1tY3p+Aa8BAIiDxE1mRCQYAFnrNCY7RyiuvSRTNIVHrH6RtjzriRp3
=9mk+
-----END PGP SIGNATURE-----
payloadX0  tree 6e32e93596c8b35bd30d7a0698e59b320bf11fc0
parent 7cd5f5517d81be4a2d4c05ad430e9f24cb2a2140
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1690480243 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1690480243 +0000

Autorelease 0.907.0

[skip ci]uuj> ^https://api.github.com/repos/palantir/atlasdb/commits/a2df32a5c8430028d68c99e5a6a54294375ed779html_urlShttps://github.com/palantir/atlasdb/commit/a2df32a5c8430028d68c99e5a6a54294375ed779comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a2df32a5c8430028d68c99e5a6a54294375ed779/commentsj> }(loginsvc-autoreleaseidJ(j> MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j> ,https://api.github.com/users/svc-autoreleasej> "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj> }(j> svc-autoreleasej> J(j> MDQ6VXNlcjUxNzE4MzQ2j> 4https://avatars.githubusercontent.com/u/51718346?v=4j> h5j> ,https://api.github.com/users/svc-autoreleasej> "https://github.com/svc-autoreleasej> 6https://api.github.com/users/svc-autorelease/followersj> Chttps://api.github.com/users/svc-autorelease/following{/other_user}j> <https://api.github.com/users/svc-autorelease/gists{/gist_id}j> Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j> :https://api.github.com/users/svc-autorelease/subscriptionsj> 1https://api.github.com/users/svc-autorelease/orgsj> 2https://api.github.com/users/svc-autorelease/reposj> =https://api.github.com/users/svc-autorelease/events{/privacy}j> <https://api.github.com/users/svc-autorelease/received_eventsj> Userj> uparents]}(j> (7cd5f5517d81be4a2d4c05ad430e9f24cb2a2140j> ^https://api.github.com/repos/palantir/atlasdb/commits/7cd5f5517d81be4a2d4c05ad430e9f24cb2a2140j> Shttps://github.com/palantir/atlasdb/commit/7cd5f5517d81be4a2d4c05ad430e9f24cb2a2140uastats}(totalK 	additionsK 	deletionsK ufiles]}(j> (7a91f7592f47ecc1f882f17bdc496678ee21aac3filename changelog/0.907.0/pr-6688.v2.ymlstatusrenamedj? K j? K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/a2df32a5c8430028d68c99e5a6a54294375ed779/changelog%2F0.907.0%2Fpr-6688.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/a2df32a5c8430028d68c99e5a6a54294375ed779/changelog%2F0.907.0%2Fpr-6688.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.907.0%2Fpr-6688.v2.yml?ref=a2df32a5c8430028d68c99e5a6a54294375ed779previous_filename$changelog/@unreleased/pr-6688.v2.ymluau(6c65d6c4335ed78aa03305404c9421d74e2931c4}(sha(6c65d6c4335ed78aa03305404c9421d74e2931c4node_idEC_kwDOAjP5fdoAKDZjNjVkNmM0MzM1ZWQ3OGFhMDMzMDU0MDRjOTQyMWQ3NGUyOTMxYzQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-14T13:55:07Zu	committer}(j#? 
Sam Kramerj%? skramer@palantir.comj'? 2023-08-14T13:55:07Zumessagereverttree}(j? (cff9e5bfbbcb562ac2084c7eacf0fbe8340dbef2url`https://api.github.com/repos/palantir/atlasdb/git/trees/cff9e5bfbbcb562ac2084c7eacf0fbe8340dbef2uj3? bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6c65d6c4335ed78aa03305404c9421d74e2931c4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTaMjsACgkQmPPOpKR4
XS39Lgf7B54PPpXXXINSbFu4pYLGlE3L5e4Woa8V9osDh+fdy6gJxMamKaE9ZrNY
vCxbfsGh5xCpr7afOPD4WsaXbU2VcIUtdrM6jSNJ+g1jwGsC1pKtDVCbAJULKpOg
zbeXSYCBB6ZORAe453qsiQ9XqthVBavEDmBimeEfWQuJrTJqr/kS2tSsbWagWL9G
OoxdV2ER6SEyQljb7gBOkP1AOKpmYGtH2A+S//2X4MrPfJogIEkndP10ZrocTXC7
mvpl7feQWxsmFr+2RpQUzuIebzoaftcSTZt3tre19BZBJ9xZiWODCc9L1nSVMkKy
Pqa3P3l85sN4Eivj63zl8MgOEWeJRg==
=+/4h
-----END PGP SIGNATURE-----payloadtree cff9e5bfbbcb562ac2084c7eacf0fbe8340dbef2
parent f32918e92becb54b7f5a9f85c3f3102dc15c5c28
author Sam Kramer <skramer@palantir.com> 1692021307 +0100
committer Sam Kramer <skramer@palantir.com> 1692021307 +0100

revert
uuj3? ^https://api.github.com/repos/palantir/atlasdb/commits/6c65d6c4335ed78aa03305404c9421d74e2931c4html_urlShttps://github.com/palantir/atlasdb/commit/6c65d6c4335ed78aa03305404c9421d74e2931c4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6c65d6c4335ed78aa03305404c9421d74e2931c4/commentsj!? }(login
Sam-KrameridJ^2_ j? MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j3? 'https://api.github.com/users/Sam-KramerjA? https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj)? }(jF? 
Sam-KramerjH? J^2_ j? MDQ6VXNlcjYyMzg4MTQ=jJ? 3https://avatars.githubusercontent.com/u/6238814?v=4jL? h5j3? 'https://api.github.com/users/Sam-KramerjA? https://github.com/Sam-KramerjO? 1https://api.github.com/users/Sam-Kramer/followersjQ? >https://api.github.com/users/Sam-Kramer/following{/other_user}jS? 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jU? >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jW? 5https://api.github.com/users/Sam-Kramer/subscriptionsjY? ,https://api.github.com/users/Sam-Kramer/orgsj[? -https://api.github.com/users/Sam-Kramer/reposj]? 8https://api.github.com/users/Sam-Kramer/events{/privacy}j_? 7https://api.github.com/users/Sam-Kramer/received_eventsja? Userjc? uparents]}(j? (f32918e92becb54b7f5a9f85c3f3102dc15c5c28j3? ^https://api.github.com/repos/palantir/atlasdb/commits/f32918e92becb54b7f5a9f85c3f3102dc15c5c28jA? Shttps://github.com/palantir/atlasdb/commit/f32918e92becb54b7f5a9f85c3f3102dc15c5c28uastats}(totalKٌ	additionsK#	deletionsKufiles](}(j? (123aeadcc931cb100fbdbb692230e20ca78eb63bfilenameUatlasdb-commons/src/main/java/com/palantir/leader/MaybeNotCurrentLeaderException.javastatusremovedj}? K j~? K8changesK8blob_urlhttps://github.com/palantir/atlasdb/blob/f32918e92becb54b7f5a9f85c3f3102dc15c5c28/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2FMaybeNotCurrentLeaderException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f32918e92becb54b7f5a9f85c3f3102dc15c5c28/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2FMaybeNotCurrentLeaderException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2FMaybeNotCurrentLeaderException.java?ref=f32918e92becb54b7f5a9f85c3f3102dc15c5c28patchX  @@ -1,56 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.leader;
-
-import com.google.common.collect.ImmutableList;
-import com.google.errorprone.annotations.CompileTimeConstant;
-import com.palantir.logsafe.Arg;
-import com.palantir.logsafe.Safe;
-import com.palantir.logsafe.SafeLoggable;
-import java.util.List;
-
-/**
- * Some operations may fail due to contention, which means we may have lost leadership.
- * In these cases, we should then validate that we have lost leadership, before taking any action.
- */
-public final class MaybeNotCurrentLeaderException extends NotCurrentLeaderException implements SafeLoggable {
-
-    private final String message;
-    private final ImmutableList<Arg<?>> args;
-
-    public MaybeNotCurrentLeaderException(@CompileTimeConstant String message, List<Arg<?>> args) {
-        super(message);
-        this.message = message;
-        this.args = ImmutableList.copyOf(args);
-    }
-
-    public MaybeNotCurrentLeaderException(@CompileTimeConstant String message, Arg<?>... args) {
-        super(message);
-        this.message = message;
-        this.args = ImmutableList.copyOf(args);
-    }
-
-    @Override
-    public @Safe String getLogMessage() {
-        return message;
-    }
-
-    @Override
-    public List<Arg<?>> getArgs() {
-        return args;
-    }
-}u}(j? (7c1db6ff17b1a3bbe1bc537540061e688f0ce1f1j? Yleader-election-impl/src/main/java/com/palantir/leader/proxy/AwaitingLeadershipProxy.javaj? modifiedj}? K
j~? K*j? K7j? https://github.com/palantir/atlasdb/blob/6c65d6c4335ed78aa03305404c9421d74e2931c4/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.javaj? https://github.com/palantir/atlasdb/raw/6c65d6c4335ed78aa03305404c9421d74e2931c4/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.javaj? https://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.java?ref=6c65d6c4335ed78aa03305404c9421d74e2931c4j? X  @@ -28,7 +28,7 @@
 import com.palantir.common.remoting.ServiceNotAvailableException;
 import com.palantir.leader.LeaderElectionService.LeadershipToken;
 import com.palantir.leader.LeaderElectionService.StillLeadingStatus;
-import com.palantir.leader.MaybeNotCurrentLeaderException;
+import com.palantir.leader.NotCurrentLeaderException;
 import com.palantir.leader.proxy.LeadershipStateManager.LeadershipState;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
@@ -41,7 +41,6 @@
 import java.lang.reflect.Method;
 import java.lang.reflect.Proxy;
 import java.time.Duration;
-import java.util.concurrent.ExecutionException;
 import java.util.function.Supplier;
 
 @SuppressWarnings("ProxyNonConstantType")
@@ -108,7 +107,9 @@ protected Object handleInvocation(Object proxy, Method method, Object[] args) th
         ListenableFuture<T> delegateFuture = Futures.transformAsync(
                 leadingFuture,
                 leading -> {
-                    if (isNotLeading(leading)) {
+                    // treat a repeated NO_QUORUM as NOT_LEADING; likely we've been cut off from the other nodes
+                    // and should assume we're not the leader
+                    if (leading == StillLeadingStatus.NOT_LEADING || leading == StillLeadingStatus.NO_QUORUM) {
                         return Futures.submitAsync(
                                 () -> {
                                     leadershipStateManager.handleNotLeading(leadershipToken, null /* cause */);
@@ -158,48 +159,18 @@ protected Object handleInvocation(Object proxy, Method method, Object[] args) th
 
     private RuntimeException handleDelegateThrewException(
             LeadershipToken leadershipToken, InvocationTargetException exception) throws Exception {
-        Throwable cause = exception.getCause();
-
-        if (cause instanceof ServiceNotAvailableException) {
-            handlePossibleLeadershipChangeException(leadershipToken, (ServiceNotAvailableException) cause);
+        if (exception.getCause() instanceof ServiceNotAvailableException
+                || exception.getCause() instanceof NotCurrentLeaderException) {
+            leadershipStateManager.handleNotLeading(leadershipToken, exception.getCause());
         }
-
         // Prevent blocked lock requests from receiving a non-retryable 500 on interrupts
         // in case of a leader election.
-        if (cause instanceof InterruptedException) {
-            if (!leadershipCoordinator.isStillCurrentToken(leadershipToken)) {
-                throw leadershipCoordinator.notCurrentLeaderException(
-                        "received an interrupt due to leader election.", exception.getCause());
-            }
-            Thread.currentThread().interrupt();
-        }
-        Throwables.propagateIfPossible(cause, Exception.class);
-        throw new RuntimeException(cause);
-    }
-
-    /**
-     * Check and see if the provided {@link ServiceNotAvailableException} is a {@link MaybeNotCurrentLeaderException}.
-     * If it is, check and see if we are still leading, as we may still be, but contending with ourselves. Otherwise,
-     * assume we are not, and invalidate our leadership state.
-     */
-    private void handlePossibleLeadershipChangeException(
-            LeadershipToken leadershipToken, ServiceNotAvailableException exception)
-            throws ExecutionException, InterruptedException {
-        boolean notLeading = true;
-
-        if (exception instanceof MaybeNotCurrentLeaderException) {
-            notLeading = isNotLeading(
-                    leadershipCoordinator.isStillLeading(leadershipToken).get());
-        }
-
-        if (notLeading) {
-            leadershipStateManager.handleNotLeading(leadershipToken, exception);
+        if (exception.getCause() instanceof InterruptedException
+                && !leadershipCoordinator.isStillCurrentToken(leadershipToken)) {
+            throw leadershipCoordinator.notCurrentLeaderException(
+                    "received an interrupt due to leader election.", exception.getCause());
         }
-    }
-
-    private static boolean isNotLeading(StillLeadingStatus leading) {
-        // treat a repeated NO_QUORUM as NOT_LEADING; likely we've been cut off from the other nodes
-        // and should assume we're not the leader
-        return leading == StillLeadingStatus.NOT_LEADING || leading == StillLeadingStatus.NO_QUORUM;
+        Throwables.propagateIfPossible(exception.getCause(), Exception.class);
+        throw new RuntimeException(exception.getCause());
     }
 }u}(j? (7f98d01f0ece521e6d21cc5f3f8f0570933c3c27j? ]leader-election-impl/src/test/java/com/palantir/leader/proxy/AwaitingLeadershipProxyTest.javaj? modifiedj}? Kj~? K6j? K:j? https://github.com/palantir/atlasdb/blob/6c65d6c4335ed78aa03305404c9421d74e2931c4/leader-election-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxyTest.javaj? https://github.com/palantir/atlasdb/raw/6c65d6c4335ed78aa03305404c9421d74e2931c4/leader-election-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxyTest.javaj? https://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxyTest.java?ref=6c65d6c4335ed78aa03305404c9421d74e2931c4j? X@  @@ -19,11 +19,9 @@
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.atLeast;
-import static org.mockito.Mockito.doThrow;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.timeout;
-import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
 
@@ -35,7 +33,6 @@
 import com.palantir.leader.LeaderElectionService;
 import com.palantir.leader.LeaderElectionService.LeadershipToken;
 import com.palantir.leader.LeaderElectionService.StillLeadingStatus;
-import com.palantir.leader.MaybeNotCurrentLeaderException;
 import com.palantir.leader.NotCurrentLeaderException;
 import com.palantir.leader.PaxosLeadershipToken;
 import com.palantir.tracing.RenderTracingRule;
@@ -267,55 +264,6 @@ public void shouldClearDelegateUponLosingLeadership() throws Exception {
         verify(mock).close();
     }
 
-    @Test
-    public void whenMaybeNotCurrentLeaderAndLeadershipNotLostShouldNotClearDelegate() throws Exception {
-        MyCloseable mockA = mock(MyCloseable.class);
-        // Cannot spy lambdas
-        Supplier<MyCloseable> delegateSupplier = mock(Supplier.class);
-        when(delegateSupplier.get()).thenReturn(mockA);
-        LeadershipCoordinator leadershipCoordinator = LeadershipCoordinator.create(leaderElectionService);
-        MyCloseable proxyA =
-                AwaitingLeadershipProxy.newProxyInstance(MyCloseable.class, delegateSupplier, leadershipCoordinator);
-
-        waitForLeadershipToBeGained();
-
-        doThrow(new MaybeNotCurrentLeaderException(TEST_MESSAGE)).when(mockA).val();
-
-        assertThatThrownBy(proxyA::val)
-                .isInstanceOf(MaybeNotCurrentLeaderException.class)
-                .hasMessage(TEST_MESSAGE);
-        verify(mockA, times(0)).close();
-        verify(delegateSupplier, times(1)).get();
-    }
-
-    @Test
-    public void whenMaybeNotCurrentLeaderAndLeadershipLostShouldClearDelegate() throws Exception {
-        MyCloseable mockA = mock(MyCloseable.class);
-        LeadershipCoordinator leadershipCoordinator = LeadershipCoordinator.create(leaderElectionService);
-        MyCloseable proxyA =
-                AwaitingLeadershipProxy.newProxyInstance(MyCloseable.class, () -> mockA, leadershipCoordinator);
-
-        MyCloseable proxyB = AwaitingLeadershipProxy.newProxyInstance(
-                MyCloseable.class, () -> mock(MyCloseable.class), leadershipCoordinator);
-
-        waitForLeadershipToBeGained();
-
-        proxyA.val();
-        proxyB.val();
-
-        doThrow(new MaybeNotCurrentLeaderException("foo")).when(mockA).val();
-
-        loseLeadership(() -> {
-            proxyB.val();
-            return null;
-        });
-
-        assertThatThrownBy(proxyA::val)
-                .isInstanceOf(NotCurrentLeaderException.class)
-                .hasMessage("method invoked on a non-leader");
-        verify(mockA).close();
-    }
-
     @Test
     public void shouldClearDelegateIfLeadershipLossIsRealizedByAnotherProxy() throws Exception {
         MyCloseable mockA = mock(MyCloseable.class);
@@ -326,7 +274,8 @@ public void shouldClearDelegateIfLeadershipLossIsRealizedByAnotherProxy() throws
         MyCloseable proxyB = AwaitingLeadershipProxy.newProxyInstance(
                 MyCloseable.class, () -> mock(MyCloseable.class), leadershipCoordinator);
 
-        waitForLeadershipToBeGained();
+        // Wait to gain leadership
+        Uninterruptibles.sleepUninterruptibly(Duration.ofMillis(100L));
 
         proxyA.val();
         proxyB.val();
@@ -366,7 +315,8 @@ public void shouldClearDelegateIfLeadershipTokenIsRefreshedByAnotherProxy() thro
         MyCloseable proxyB = AwaitingLeadershipProxy.newProxyInstance(
                 MyCloseable.class, () -> mock(MyCloseable.class), leadershipCoordinator);
 
-        waitForLeadershipToBeGained();
+        // Wait to gain leadership
+        Uninterruptibles.sleepUninterruptibly(Duration.ofMillis(100L));
 
         proxyA.val();
         proxyB.val();u}(j? (5c095638f0a0f48f2ec43948eb92d6d8ae274639j? ]timelock-impl/src/main/java/com/palantir/atlasdb/timelock/paxos/PaxosTimestampBoundStore.javaj? modifiedj}? Kj~? Kj? K%j? https://github.com/palantir/atlasdb/blob/6c65d6c4335ed78aa03305404c9421d74e2931c4/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javaj? https://github.com/palantir/atlasdb/raw/6c65d6c4335ed78aa03305404c9421d74e2931c4/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javaj? https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.java?ref=6c65d6c4335ed78aa03305404c9421d74e2931c4j? Xs  @@ -21,9 +21,7 @@
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.timelock.paxos.PaxosQuorumCheckingCoalescingFunction.PaxosContainer;
 import com.palantir.common.remoting.ServiceNotAvailableException;
-import com.palantir.leader.MaybeNotCurrentLeaderException;
 import com.palantir.leader.NotCurrentLeaderException;
-import com.palantir.logsafe.Arg;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -50,11 +48,6 @@
 public class PaxosTimestampBoundStore implements TimestampBoundStore {
     private static final SafeLogger log = SafeLoggerFactory.get(PaxosTimestampBoundStore.class);
 
-    private static final String TOO_SMALL_LIMIT_INCREASE_MESSAGE =
-            "It appears we updated the timestamp limit to {}, which was less than our target {}."
-                    + " This suggests we have another timestamp service running; possibly because we"
-                    + " lost and regained leadership. For safety, we are now stopping this service.";
-
     private final PaxosProposer proposer;
     private final PaxosLearner knowledge;
 
@@ -253,9 +246,15 @@ public synchronized void storeUpperLimit(long limit) throws MultipleRunningTimes
                     // This is dangerous; proposing at the next sequence number is unsafe, as timestamp services
                     // generally assume they have the ALLOCATION_BUFFER_SIZE timestamps up to this.
                     // TODO (jkong): Devise a method that better preserves availability of the cluster.
-                    List<Arg<?>> args = List.of(SafeArg.of("newLimit", newLimit), SafeArg.of("target", limit));
-                    log.warn(TOO_SMALL_LIMIT_INCREASE_MESSAGE, args);
-                    throw new MaybeNotCurrentLeaderException(TOO_SMALL_LIMIT_INCREASE_MESSAGE, args);
+                    log.warn(
+                            "It appears we updated the timestamp limit to {}, which was less than our target {}."
+                                    + " This suggests we have another timestamp service running; possibly because we"
+                                    + " lost and regained leadership. For safety, we are now stopping this service.",
+                            SafeArg.of("newLimit", newLimit),
+                            SafeArg.of("target", limit));
+                    throw new NotCurrentLeaderException(String.format(
+                            "We updated the timestamp limit to %s, which was less than our target %s.",
+                            newLimit, limit));
                 }
                 return;
             } catch (PaxosRoundFailureException e) {
@@ -274,18 +273,14 @@ public synchronized void storeUpperLimit(long limit) throws MultipleRunningTimes
      */
     private void checkAgreedBoundIsOurs(long limit, long newSeq, PaxosValue value) throws NotCurrentLeaderException {
         if (!proposer.getUuid().equals(value.getLeaderUUID())) {
-            throw new MaybeNotCurrentLeaderException(
-                    "Timestamp limit changed from under us for sequence '{}' (proposer with UUID '{}' changed"
-                            + " it, our UUID is '{}'). This suggests that we have lost leadership, and another timelock"
+            String errorMsg = String.format(
+                    "Timestamp limit changed from under us for sequence '%s' (proposer with UUID '%s' changed"
+                            + " it, our UUID is '%s'). This suggests that we have lost leadership, and another timelock"
                             + " server has gained leadership and updated the timestamp bound."
-                            + " The offending bound was '{}'; we tried to propose"
-                            + " a bound of '{}'. (The offending Paxos value was '{}'.)",
-                    SafeArg.of("newSeq", newSeq),
-                    SafeArg.of("leaderUuid", value.getLeaderUUID()),
-                    SafeArg.of("ourUuid", proposer.getUuid()),
-                    SafeArg.of("newLimit", PtBytes.toLong(value.getData())),
-                    SafeArg.of("target", limit),
-                    SafeArg.of("value", value));
+                            + " The offending bound was '%s'; we tried to propose"
+                            + " a bound of '%s'. (The offending Paxos value was '%s'.)",
+                    newSeq, value.getLeaderUUID(), proposer.getUuid(), PtBytes.toLong(value.getData()), limit, value);
+            throw new NotCurrentLeaderException(errorMsg);
         }
         DebugLogger.logger.info(
                 "Trying to store limit '{}' for sequence '{}' yielded consensus on the value '{}'.",u}(j? (a3484750100dd1921c33614b931aa2f88438aee7j? atimelock-impl/src/test/java/com/palantir/atlasdb/timelock/paxos/PaxosTimestampBoundStoreTest.javaj? modifiedj}? Kj~? K	j? Kj? https://github.com/palantir/atlasdb/blob/6c65d6c4335ed78aa03305404c9421d74e2931c4/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.javaj? https://github.com/palantir/atlasdb/raw/6c65d6c4335ed78aa03305404c9421d74e2931c4/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.javaj? https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.java?ref=6c65d6c4335ed78aa03305404c9421d74e2931c4j? X  @@ -15,7 +15,6 @@
  */
 package com.palantir.atlasdb.timelock.paxos;
 
-import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static java.util.stream.Collectors.toList;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
@@ -33,9 +32,8 @@
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.common.remoting.ServiceNotAvailableException;
 import com.palantir.common.streams.KeyedStream;
-import com.palantir.leader.MaybeNotCurrentLeaderException;
+import com.palantir.leader.NotCurrentLeaderException;
 import com.palantir.leader.proxy.ToggleableExceptionProxy;
-import com.palantir.logsafe.SafeArg;
 import com.palantir.paxos.Client;
 import com.palantir.paxos.PaxosAcceptor;
 import com.palantir.paxos.PaxosAcceptorNetworkClient;
@@ -246,12 +244,7 @@ public void retriesProposeUntilSuccessful() throws Exception {
     public void throwsIfBoundUnexpectedlyChangedUnderUs() {
         PaxosTimestampBoundStore additionalStore = createPaxosTimestampBoundStore(1);
         additionalStore.storeUpperLimit(TIMESTAMP_1);
-        assertThatLoggableExceptionThrownBy(() -> store.storeUpperLimit(TIMESTAMP_2))
-                .isInstanceOf(MaybeNotCurrentLeaderException.class)
-                .hasMessageContaining("Timestamp limit changed from under us for sequence")
-                .args()
-                // We don't know the leader ids in advance, so we can't assert on them.
-                .contains(SafeArg.of("newSeq", PaxosAcceptor.NO_LOG_ENTRY + 1), SafeArg.of("target", TIMESTAMP_2));
+        assertThatThrownBy(() -> store.storeUpperLimit(TIMESTAMP_2)).isInstanceOf(NotCurrentLeaderException.class);
     }
 
     @Testueu(01e1fa8b681e07004871b046f9595bf555a5ccbe}(sha(01e1fa8b681e07004871b046f9595bf555a5ccbenode_idEC_kwDOAjP5fdoAKDAxZTFmYThiNjgxZTA3MDA0ODcxYjA0NmY5NTk1YmY1NTVhNWNjYmUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-20T12:13:37Zu	committer}(j? 
Ahmed Alouanej? aalouane@palantir.comj? 2023-04-20T12:13:37Zumessagechanging to parallelism=11tree}(j? (1f87107e0000344f559f1c0d07669d34dc545807url`https://api.github.com/repos/palantir/atlasdb/git/trees/1f87107e0000344f559f1c0d07669d34dc545807uj? bhttps://api.github.com/repos/palantir/atlasdb/git/commits/01e1fa8b681e07004871b046f9595bf555a5ccbe
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRBLHIACgkQPlMHVIT1
yhrDsQf8CHQC+ZwjR0MyfgGhWicYouPk2IO6GOrlojNjX8YmuldJBfXuzrvEv0nn
4Hx9vrDyHx2lGdN5xSPziCC+ejoebLGm8DUztaxGpxExX2kdKLrIOhluH0N9Putm
IHbe0G2tuYZmbD0IuojeBoJ17cHWg95uIssc0n6eoWEpbDG3lvukmiacBFWTU0dv
qXNgZtNUAqy+4pddvm4vqGVUoBWHV1V6FonpolmK1TGNCeCjThDnVgPki8TIVtw6
TqO29Xplyovoykmro1kLYgdAK5mxpgRnTOWdVJhmy/szFbaN5VkumPHjXjl/jtMM
EjLAl/5OO4ROYBlGkmPsDN/CqolslQ==
=YxYU
-----END PGP SIGNATURE-----payloadtree 1f87107e0000344f559f1c0d07669d34dc545807
parent 6139243418009eda57ad73a25eb6715d3ba888cd
author Ahmed Alouane <aalouane@palantir.com> 1681992817 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1681992817 +0100

changing to parallelism=11
uuj? ^https://api.github.com/repos/palantir/atlasdb/commits/01e1fa8b681e07004871b046f9595bf555a5ccbehtml_urlShttps://github.com/palantir/atlasdb/commit/01e1fa8b681e07004871b046f9595bf555a5ccbecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/01e1fa8b681e07004871b046f9595bf555a5ccbe/commentsj? }(loginergo14idJj? MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j? #https://api.github.com/users/ergo14j? https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj? }(j? ergo14j? Jj? MDQ6VXNlcjMwOTAzNzM2j? 4https://avatars.githubusercontent.com/u/30903736?v=4j? h5j? #https://api.github.com/users/ergo14j? https://github.com/ergo14j? -https://api.github.com/users/ergo14/followersj? :https://api.github.com/users/ergo14/following{/other_user}j? 3https://api.github.com/users/ergo14/gists{/gist_id}j? :https://api.github.com/users/ergo14/starred{/owner}{/repo}j? 1https://api.github.com/users/ergo14/subscriptionsj? (https://api.github.com/users/ergo14/orgsj? )https://api.github.com/users/ergo14/reposj? 4https://api.github.com/users/ergo14/events{/privacy}j? 3https://api.github.com/users/ergo14/received_eventsj? Userj? uparents]}(j? (6139243418009eda57ad73a25eb6715d3ba888cdj? ^https://api.github.com/repos/palantir/atlasdb/commits/6139243418009eda57ad73a25eb6715d3ba888cdj? Shttps://github.com/palantir/atlasdb/commit/6139243418009eda57ad73a25eb6715d3ba888cduastats}(totalK	additionsK	deletionsKufiles](}(j? (100f8367dc7853df273eb2075b45af3ce4f08945filename.circleci/config.ymlstatusmodifiedj@ Kj@ KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/01e1fa8b681e07004871b046f9595bf555a5ccbe/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/01e1fa8b681e07004871b046f9595bf555a5ccbe/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=01e1fa8b681e07004871b046f9595bf555a5ccbepatch@@ -32,7 +32,7 @@ jobs:
           paths: [ . ]
 
   test:
-    parallelism: 12
+    parallelism: 11
     machine:
       image: ubuntu-2004:202111-02
     resource_class: 2xlarge+u}(j? (ef4b6435645757d6502cfeb8bb8bfff640ccd4d3j@ %scripts/circle-ci/run-circle-tests.shj@ modifiedj@ Kj@ Kj@ Kj@ {https://github.com/palantir/atlasdb/blob/01e1fa8b681e07004871b046f9595bf555a5ccbe/scripts%2Fcircle-ci%2Frun-circle-tests.shj!@ zhttps://github.com/palantir/atlasdb/raw/01e1fa8b681e07004871b046f9595bf555a5ccbe/scripts%2Fcircle-ci%2Frun-circle-tests.shj#@ https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=01e1fa8b681e07004871b046f9595bf555a5ccbej%@ X  @@ -17,26 +17,24 @@ CONTAINER_1=(':atlasdb-cassandra-integration-tests:check')
 
 CONTAINER_2=(':atlasdb-ete-tests:check')
 
-CONTAINER_3=(':atlasdb-dbkvs:check' ':atlasdb-cassandra:check' ':timelock-server:integTest')
+CONTAINER_3=(':atlasdb-dbkvs:check' ':atlasdb-cassandra:check' ':timelock-server:integTest' ':lock-impl:check' ':atlasdb-dbkvs-tests:postgresTest' ':atlasdb-ete-test-utils:check' ':atlasdb-ete-tests:longTest')
 
 CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-impl-shared:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:dbkvsTest')
 
-CONTAINER_5=(':lock-impl:check' ':atlasdb-dbkvs-tests:postgresTest' ':atlasdb-ete-test-utils:check' ':atlasdb-ete-tests:longTest')
+CONTAINER_5=(':timelock-server:suiteTest')
 
-CONTAINER_6=(':timelock-server:suiteTest')
+CONTAINER_6=(':timelock-server:stressTest')
 
-CONTAINER_7=(':timelock-server:stressTest')
+CONTAINER_7=(':atlasdb-ete-tests:timeLockMigrationTest')
 
-CONTAINER_8=(':atlasdb-ete-tests:timeLockMigrationTest')
+CONTAINER_8=(':atlasdb-ete-tests:oracleTest')
 
-CONTAINER_9=(':atlasdb-ete-tests:oracleTest')
+CONTAINER_9=('atlasdb-dbkvs-tests:oracleTest')
 
-CONTAINER_10=('atlasdb-dbkvs-tests:oracleTest')
-
-CONTAINER_11=('compileJava' 'compileTestJava')
+CONTAINER_10=('compileJava' 'compileTestJava')
 
 # Container 0 - runs tasks not found in the below containers
-CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}")
+CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}")
 
 for task in "${CONTAINER_0_EXCLUDE[@]}"
 do
@@ -52,7 +50,7 @@ if ./scripts/circle-ci/check-only-docs-changes.sh; then
     exit 0
 fi
 
-if [ $CIRCLE_NODE_INDEX -eq 9 ] || [ $CIRCLE_NODE_INDEX -eq 10 ]; then
+if [ $CIRCLE_NODE_INDEX -eq 8 ] || [ $CIRCLE_NODE_INDEX -eq 9 ]; then
     printenv DOCKERHUB_PASSWORD | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
     # The oracle container is very large and takes a long time to pull.
     # If this image is not pulled here, the circle build usually times out.
@@ -64,7 +62,7 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
 # External builds have a 16gb limit.
-if [ "$CIRCLE_NODE_INDEX" -eq "11" ]; then
+if [ "$CIRCLE_NODE_INDEX" -eq "10" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
@@ -84,6 +82,5 @@ case $CIRCLE_NODE_INDEX in
     7) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_7[@]} ;;
     8) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_8[@]} ;;
     9) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_9[@]} ;;
-    10) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_10[@]} ;;
-    11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
+    11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_10[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
 esacueu      (c8c5021a06a8473de70f79d82a59faceabe399ae}(sha(c8c5021a06a8473de70f79d82a59faceabe399aenode_idEC_kwDOAjP5fdoAKGM4YzUwMjFhMDZhODQ3M2RlNzBmNzlkODJhNTlmYWNlYWJlMzk5YWUcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-04T12:37:08Zu	committer}(j9@ 	Tom Papkej;@ tpapke@palantir.comj=@ 2023-07-04T12:37:08ZumessageMove commenttree}(j1@ (bc3449c0d49d8200d7c214f8eff5dfe6ea9afcf4url`https://api.github.com/repos/palantir/atlasdb/git/trees/bc3449c0d49d8200d7c214f8eff5dfe6ea9afcf4ujI@ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c8c5021a06a8473de70f79d82a59faceabe399ae
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSkEnQACgkQmF9s0kaF
Iw2AeQf/Q++KwLUIyQSCAIGqcYF3haKJ+egpmENdvVIhZgE1US+9j+J8rAZTwOwf
3ISrs8osmv3B+ozYPvz9we36lTslDC6XSK8nc+UT3z9EQs/0Ej6r/Rp5Sm7mG7ni
7U9YuzuMSM3s2KD+HQXXhDvO5wLxPqurhk9dfgE86z56Zh7iVixdBywVDwUGLLY6
fgcGBRNALi8QbPRJ3itvLEEngG+CXx3pc6sNX8dWTWc2Fwxvvd6NLcHvZ4mwXaK8
QiLuk3DPXL2JG9d7sAY5tXdmGpe8XP9D/k5j0B6Fmflxfot2dCeB9k8LeETkDoBb
xtPotinkmExxKnAKmPFb5ljONZ1Q5w==
=xRkI
-----END PGP SIGNATURE-----payloadtree bc3449c0d49d8200d7c214f8eff5dfe6ea9afcf4
parent c1564a185d5e0181aee0511e49cb07604b23c3c0
author Tom Papke <tpapke@palantir.com> 1688474228 +0100
committer Tom Papke <tpapke@palantir.com> 1688474228 +0100

Move comment
uujI@ ^https://api.github.com/repos/palantir/atlasdb/commits/c8c5021a06a8473de70f79d82a59faceabe399aehtml_urlShttps://github.com/palantir/atlasdb/commit/c8c5021a06a8473de70f79d82a59faceabe399aecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c8c5021a06a8473de70f79d82a59faceabe399ae/commentsj7@ }(login	ToemmscheidJboj3@ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jI@ &https://api.github.com/users/ToemmschejW@ https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj?@ }(j\@ 	Toemmschej^@ Jboj3@ MDQ6VXNlcjQzNjc1NDkwj`@ 4https://avatars.githubusercontent.com/u/43675490?v=4jb@ h5jI@ &https://api.github.com/users/ToemmschejW@ https://github.com/Toemmscheje@ 0https://api.github.com/users/Toemmsche/followersjg@ =https://api.github.com/users/Toemmsche/following{/other_user}ji@ 6https://api.github.com/users/Toemmsche/gists{/gist_id}jk@ =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jm@ 4https://api.github.com/users/Toemmsche/subscriptionsjo@ +https://api.github.com/users/Toemmsche/orgsjq@ ,https://api.github.com/users/Toemmsche/reposjs@ 7https://api.github.com/users/Toemmsche/events{/privacy}ju@ 6https://api.github.com/users/Toemmsche/received_eventsjw@ Userjy@ uparents]}(j1@ (c1564a185d5e0181aee0511e49cb07604b23c3c0jI@ ^https://api.github.com/repos/palantir/atlasdb/commits/c1564a185d5e0181aee0511e49cb07604b23c3c0jW@ Shttps://github.com/palantir/atlasdb/commit/c1564a185d5e0181aee0511e49cb07604b23c3c0uastats}(totalK	additionsK	deletionsKufiles]}(j1@ (5dadba049abe064e5895547c7e14d432c91d0f96filenameatimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javastatusmodifiedj@ Kj@ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/c8c5021a06a8473de70f79d82a59faceabe399ae/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c8c5021a06a8473de70f79d82a59faceabe399ae/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=c8c5021a06a8473de70f79d82a59faceabe399aepatchX  @@ -179,16 +179,16 @@ private void runIfDescriptorsMatchLockWatchesWithMetadata(
         }
     }
 
+    // For an efficient encoding, we enforce that metadata is never attached to a lock descriptor that is not contained
+    // in the original request, so filtering metadata based on the already filtered locks is sufficient.
+    // It is also cheaper than calling RangeSet::contains.
     private static Optional<LockRequestMetadata> filterMetadataBasedOnFilteredLocks(
             Set<LockDescriptor> filteredLocks, Optional<LockRequestMetadata> unfilteredMetadata) {
         return unfilteredMetadata
                 .map(LockRequestMetadata::lockDescriptorToChangeMetadata)
                 .map(unfilteredLockMetadata -> {
                     Map<LockDescriptor, ChangeMetadata> filteredLockMetadata = KeyedStream.ofEntries(
                                     unfilteredLockMetadata.entrySet().stream())
-                            // For an efficient encoding, we enforce that metadata is never attached to a lock
-                            // descriptor that is not contained in the original request, so this lookup is sufficient.
-                            // It is also cheaper than calling RangeSet::contains.
                             .filterKeys(filteredLocks::contains)
                             .collectToMap();
                     return LockRequestMetadata.of(filteredLockMetadata);uau(e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806}(sha(e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806node_idEC_kwDOAjP5fdoAKGU5NTZhZWIwMzEwZGZlNmIzMGVlYWM3YzJiMThhYzhmOWU4MmI4MDYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-03T09:41:21Zu	committer}(j@ 
Sam Kramerj@ skramer@palantir.comj@ 2023-05-03T09:41:21Zumessage[buggify] clean uptree}(j@ (1961c2d32bac9f6533e1e9da54eaa2965eb5422eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/1961c2d32bac9f6533e1e9da54eaa2965eb5422euj@ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRSLEIACgkQmPPOpKR4
XS1QGwf/fXUZ0IeFJrHOo3s0QENXgE0KtJH7/lDedZXIvva1bR8hFHdpXP8FWFJC
Guw2dBKJNA8BufDAsoU3OdyVOaJAnU2Ch1wO0Rq2W38NQmoU8nesDlfio6WA5nWh
qUFigPs0XwXfgf37bhJmgiDJPh9S6MRdp7mw45QeCdc6x8eL9NYo990ab2zHyW6D
MBKLZ4unuQx2stmejjqm/4FwOR1jBtu4bTM64w7go/23J7ehXxed+vA5tXtHSCmj
G57V1NO+G8bX7b+T/nA4SSeQC1OwCJiQbB/7iM1ASGAxmqZN3xVNMQSjKHJN/Nb8
jffxDBep7x6QZ0Bcrhr6iWAbC8yo6w==
=A/7f
-----END PGP SIGNATURE-----payloadtree 1961c2d32bac9f6533e1e9da54eaa2965eb5422e
parent 7d2efb3f76f33e8705149127e1efca9122ed75fd
author Sam Kramer <skramer@palantir.com> 1683106881 +0100
committer Sam Kramer <skramer@palantir.com> 1683106881 +0100

[buggify] clean up
uuj@ ^https://api.github.com/repos/palantir/atlasdb/commits/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806html_urlShttps://github.com/palantir/atlasdb/commit/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806/commentsj@ }(login
Sam-KrameridJ^2_ j@ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j@ 'https://api.github.com/users/Sam-Kramerj@ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj@ }(j@ 
Sam-Kramerj@ J^2_ j@ MDQ6VXNlcjYyMzg4MTQ=j@ 3https://avatars.githubusercontent.com/u/6238814?v=4j@ h5j@ 'https://api.github.com/users/Sam-Kramerj@ https://github.com/Sam-Kramerj@ 1https://api.github.com/users/Sam-Kramer/followersj@ >https://api.github.com/users/Sam-Kramer/following{/other_user}j@ 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j@ >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j@ 5https://api.github.com/users/Sam-Kramer/subscriptionsj@ ,https://api.github.com/users/Sam-Kramer/orgsj@ -https://api.github.com/users/Sam-Kramer/reposj@ 8https://api.github.com/users/Sam-Kramer/events{/privacy}j@ 7https://api.github.com/users/Sam-Kramer/received_eventsj@ Userj@ uparents]}(j@ (7d2efb3f76f33e8705149127e1efca9122ed75fdj@ ^https://api.github.com/repos/palantir/atlasdb/commits/7d2efb3f76f33e8705149127e1efca9122ed75fdj@ Shttps://github.com/palantir/atlasdb/commit/7d2efb3f76f33e8705149127e1efca9122ed75fduastats}(totalKD	additionsK	deletionsK+ufiles](}(j@ (b51718d11b52a34a333cbfc14cd47e7029ef368ffilenameKatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/Buggify.javastatusmodifiedj
A KjA KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.java?ref=e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806patchX  @@ -16,17 +16,25 @@
 
 package com.palantir.atlasdb.buggify.api;
 
-import java.util.function.Function;
-
+/**
+ * Instances of this class could vary in implementation, such that they may perform no action {@link com.palantir.atlasdb.buggify.impl.NoOpBuggify} or
+ * always perform the action {@link com.palantir.atlasdb.buggify.impl.DefaultBuggify}. The idea here is that a
+ * downstream users of this class can easily swap out their {@link BuggifyFactory} to change the behavior of their
+ * class, without having to change the implementation of their class. This is useful for tests, as we can force the
+ * behavior of never running the provided runnable, or always running the provided runnable.
+ */
 public interface Buggify {
     /**
-     * Run the provided runnable if probabilistically allowed.
-     * @param runnable the runnable to run
+     * Maybe runs the provided runnable, depending on the instance of the class.
      */
     void run(Runnable runnable);
 
     /**
-     * Potentially map the provided value to a different value.
+     * Returns true if this instance of buggify would perform an action if {@link #run Run} would execute the
+     * provided runnable. This is useful if you
+     * wish to
+     * produce
+     * a boolean that will be skewed towards true or false (i.e. not 50%).
      */
-    <T> T map(T initialValue, Function<T, T> mapFunction);
+    boolean asBoolean();
 }u}(j@ (909ba3b6edf631651ce0504e5d0f8ffe5740cd23jA Ratlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/BuggifyFactory.javajA modifiedj
A KjA KjA KjA https://github.com/palantir/atlasdb/blob/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javajA https://github.com/palantir/atlasdb/raw/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.java?ref=e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806jA Xy  @@ -18,12 +18,7 @@
 
 public interface BuggifyFactory {
     /**
-     * A Buggify instance that will may or may not run the provided runnable.
+     * A Buggify instance that may or may not perform any actions.
      */
     Buggify maybe(double probability);
-
-    /**
-     * A Buggify instance that will always run the provided runnable.
-     */
-    Buggify always();
 }u}(j@ (bf47a2abcceffe92e42715b2377315e57a40f763jA Satlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggify.javajA modifiedj
A KjA KjA KjA https://github.com/palantir/atlasdb/blob/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javajA https://github.com/palantir/atlasdb/raw/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.java?ref=e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806jA X  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.buggify.impl;
 
 import com.palantir.atlasdb.buggify.api.Buggify;
-import java.util.function.Function;
 
 public enum DefaultBuggify implements Buggify {
     INSTANCE;
@@ -28,7 +27,7 @@ public void run(Runnable runnable) {
     }
 
     @Override
-    public <T> T map(T initialValue, Function<T, T> mapFunction) {
-        return mapFunction.apply(initialValue);
+    public boolean asBoolean() {
+        return true;
     }
 }u}(j@ (b42105d946c995e73b626ae411a16b146c1e1379jA Zatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactory.javajA modifiedj
A KjA KjA KjA https://github.com/palantir/atlasdb/blob/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javajA https://github.com/palantir/atlasdb/raw/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.java?ref=e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806jA X  @@ -24,11 +24,10 @@
 
 public final class DefaultBuggifyFactory implements BuggifyFactory {
     private static final SecureRandom SECURE_RANDOM = new SecureRandom();
+    public static final BuggifyFactory INSTANCE = new DefaultBuggifyFactory();
 
     private final Supplier<Double> probabilitySupplier;
 
-    public static final BuggifyFactory INSTANCE = new DefaultBuggifyFactory();
-
     @VisibleForTesting
     DefaultBuggifyFactory(Supplier<Double> probabilitySupplier) {
         this.probabilitySupplier = probabilitySupplier;
@@ -45,9 +44,4 @@ public Buggify maybe(double probability) {
         }
         return DefaultBuggify.INSTANCE;
     }
-
-    @Override
-    public Buggify always() {
-        return DefaultBuggify.INSTANCE;
-    }
 }u}(j@ (7ffdf499b3babaa3d0997abc88e28cb57de2aa01jA Patlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggify.javajA modifiedj
A KjA KjA KjA https://github.com/palantir/atlasdb/blob/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javajA https://github.com/palantir/atlasdb/raw/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.java?ref=e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806jA X  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.buggify.impl;
 
 import com.palantir.atlasdb.buggify.api.Buggify;
-import java.util.function.Function;
 
 public enum NoOpBuggify implements Buggify {
     INSTANCE;
@@ -28,7 +27,7 @@ public void run(Runnable _runnable) {
     }
 
     @Override
-    public <T> T map(T initialValue, Function<T, T> mapFunction) {
-        return initialValue;
+    public boolean asBoolean() {
+        return false;
     }
 }u}(j@ (2f200762a9c587bece4b4f26652a9d0c930bba0ejA ^atlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactoryTest.javajA modifiedj
A K jA KjA KjA https://github.com/palantir/atlasdb/blob/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javajA https://github.com/palantir/atlasdb/raw/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.java?ref=e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806jA XA  @@ -21,10 +21,6 @@
 import org.junit.Test;
 
 public class DefaultBuggifyFactoryTest {
-    @Test
-    public void alwaysReturnsDefaultBuggify() {
-        assertThat(DefaultBuggifyFactory.INSTANCE.always()).isSameAs(DefaultBuggify.INSTANCE);
-    }
 
     @Test
     public void maybeReturnsDefaultWhenMaxProbability() {u}(j@ (d266a1255fcd4e7524f1d85e7d0a7316b6485666jA Watlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyTest.javajA modifiedj
A KjA KjA K	jA https://github.com/palantir/atlasdb/blob/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javajA https://github.com/palantir/atlasdb/raw/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.java?ref=e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806jA X  @@ -18,8 +18,8 @@
 
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.verify;
+import static org.assertj.core.api.Assertions.assertThat;
 
-import java.util.function.Function;
 import org.junit.Test;
 
 public class DefaultBuggifyTest {
@@ -31,10 +31,7 @@ public void runAlwaysExecutes() {
     }
 
     @Test
-    public void mapAlwaysCallsSupplier() {
-        Function<Object, Object> value = mock(Function.class);
-        Object object = new Object();
-        DefaultBuggify.INSTANCE.map(object, value);
-        verify(value).apply(object);
+    public void asBooleanReturnsTrue() {
+        assertThat(DefaultBuggify.INSTANCE.asBoolean()).isTrue();
     }
 }u}(j@ (dd01630932d8258ee8462e770b50964eba0fc302jA Tatlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyTest.javajA modifiedj
A KjA KjA K
jA https://github.com/palantir/atlasdb/blob/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javajA https://github.com/palantir/atlasdb/raw/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.java?ref=e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806jA X  @@ -17,12 +17,10 @@
 package com.palantir.atlasdb.buggify.impl;
 
 import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.verify;
 
-import java.util.function.Function;
 import org.junit.Test;
 
 public class NoOpBuggifyTest {
@@ -34,11 +32,7 @@ public void runNeverExecutes() {
     }
 
     @Test
-    public void mapNeverCallsFunction() {
-        Function<Object, Object> value = mock(Function.class);
-        Object object = new Object();
-        Object mappedObject = NoOpBuggify.INSTANCE.map(object, value);
-        assertThat(object).isEqualTo(mappedObject);
-        verify(value, never()).apply(any());
+    public void asBooleanReturnsFalse() {
+        assertThat(DefaultBuggify.INSTANCE.asBoolean()).isFalse();
     }
 }ueu(7cd5f5517d81be4a2d4c05ad430e9f24cb2a2140}(sha(7cd5f5517d81be4a2d4c05ad430e9f24cb2a2140node_idEC_kwDOAjP5fdoAKDdjZDVmNTUxN2Q4MWJlNGEyZDRjMDVhZDQzMGU5ZjI0Y2IyYTIxNDAcommit}(author}(name
Steven Berleremailsberler@palantir.comdate2023-07-27T17:50:33Zu	committer}(j_A GitHubjaA noreply@github.comjcA 2023-07-27T17:50:33Zumessagenetty direct dependency (#6688)

add netty-handler as a direct dependency so that downstream projects resolve the correct versiontree}(jWA (1490b4f88333bad7990b5a85086b52b22137d51burl`https://api.github.com/repos/palantir/atlasdb/git/trees/1490b4f88333bad7990b5a85086b52b22137d51bujoA bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7cd5f5517d81be4a2d4c05ad430e9f24cb2a2140
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkwq5pCRBK7hj4Ov3rIwAApCAIAJdv2qYW+e3Aq+kI8EqX5R+V
k6wJggJJL/20Wn6To08pFfWuC9aFoLrtBWpm8JdMmlDMfcNgsJylc/HVbHNjv8Tb
zFHLHpCwPNFojrJO0badIe0YVtwoi/isBmcJSMRiQM3z6zx88YZ3ZFYBjo+cXDMN
omsz4NGfIl56Uiin8ixAB3e49/22B5W6yoMwsKLkK8Zh1PQXXF/wsrzaa7KeDSFG
hYBiBfkK2T1SrYk1p4xS4OOKqUQMcF9JJzE+NVTqP9dOZtxtoJBw76sythbX4RJu
Ojf5/WN2mc66m1sU5pGnaSW6DGyFHUq/j4Vavp4yZGPY2ckRSDdSxIiM8c90wGs=
=4qR4
-----END PGP SIGNATURE-----
payloadXU  tree 1490b4f88333bad7990b5a85086b52b22137d51b
parent e350ee1f07d1e420581afcb4151521b7b051acd1
author Steven Berler <sberler@palantir.com> 1690480233 -0700
committer GitHub <noreply@github.com> 1690480233 +0000

netty direct dependency (#6688)

add netty-handler as a direct dependency so that downstream projects resolve the correct version
uujoA ^https://api.github.com/repos/palantir/atlasdb/commits/7cd5f5517d81be4a2d4c05ad430e9f24cb2a2140html_urlShttps://github.com/palantir/atlasdb/commit/7cd5f5517d81be4a2d4c05ad430e9f24cb2a2140comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7cd5f5517d81be4a2d4c05ad430e9f24cb2a2140/commentsj]A }(loginberleridJ jYA MDQ6VXNlcjEwMzA2Mjc=
avatar_url3https://avatars.githubusercontent.com/u/1030627?v=4gravatar_idh5joA #https://api.github.com/users/berlerj}A https://github.com/berler
followers_url-https://api.github.com/users/berler/followers
following_url:https://api.github.com/users/berler/following{/other_user}	gists_url3https://api.github.com/users/berler/gists{/gist_id}starred_url:https://api.github.com/users/berler/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/berler/subscriptionsorganizations_url(https://api.github.com/users/berler/orgs	repos_url)https://api.github.com/users/berler/repos
events_url4https://api.github.com/users/berler/events{/privacy}received_events_url3https://api.github.com/users/berler/received_eventstypeUser
site_adminujeA }(jA web-flowjA J/jYA MDQ6VXNlcjE5ODY0NDQ3jA 4https://avatars.githubusercontent.com/u/19864447?v=4jA h5joA %https://api.github.com/users/web-flowj}A https://github.com/web-flowjA /https://api.github.com/users/web-flow/followersjA <https://api.github.com/users/web-flow/following{/other_user}jA 5https://api.github.com/users/web-flow/gists{/gist_id}jA <https://api.github.com/users/web-flow/starred{/owner}{/repo}jA 3https://api.github.com/users/web-flow/subscriptionsjA *https://api.github.com/users/web-flow/orgsjA +https://api.github.com/users/web-flow/reposjA 6https://api.github.com/users/web-flow/events{/privacy}jA 5https://api.github.com/users/web-flow/received_eventsjA UserjA uparents]}(jWA (e350ee1f07d1e420581afcb4151521b7b051acd1joA ^https://api.github.com/repos/palantir/atlasdb/commits/e350ee1f07d1e420581afcb4151521b7b051acd1j}A Shttps://github.com/palantir/atlasdb/commit/e350ee1f07d1e420581afcb4151521b7b051acd1uastats}(totalK	additionsK	deletionsKufiles](}(jWA (ac5151208f3564728fb656114e6d47b89cd33bb2filenameatlasdb-cassandra/build.gradlestatusmodifiedjA KjA K changesKblob_urlrhttps://github.com/palantir/atlasdb/blob/7cd5f5517d81be4a2d4c05ad430e9f24cb2a2140/atlasdb-cassandra%2Fbuild.gradleraw_urlqhttps://github.com/palantir/atlasdb/raw/7cd5f5517d81be4a2d4c05ad430e9f24cb2a2140/atlasdb-cassandra%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fbuild.gradle?ref=7cd5f5517d81be4a2d4c05ad430e9f24cb2a2140patchX  @@ -58,6 +58,10 @@ dependencies {
   implementation project(':commons-executors')
   implementation project(':timestamp-api')
 
+  // transitive from cassandra-driver-core
+  // need to specify as a direct dep so downstream projects get the correct version
+  runtimeOnly 'io.netty:netty-handler'
+
   testImplementation 'commons-codec:commons-codec'
   testImplementation 'com.fasterxml.jackson.core:jackson-databind'
   testImplementation 'com.google.protobuf:protobuf-java'u}(jWA (7a91f7592f47ecc1f882f17bdc496678ee21aac3jA $changelog/@unreleased/pr-6688.v2.ymljA addedjA KjA K jA KjA |https://github.com/palantir/atlasdb/blob/7cd5f5517d81be4a2d4c05ad430e9f24cb2a2140/changelog%2F%40unreleased%2Fpr-6688.v2.ymljA {https://github.com/palantir/atlasdb/raw/7cd5f5517d81be4a2d4c05ad430e9f24cb2a2140/changelog%2F%40unreleased%2Fpr-6688.v2.ymljA https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6688.v2.yml?ref=7cd5f5517d81be4a2d4c05ad430e9f24cb2a2140jA @@ -0,0 +1,6 @@
+type: fix
+fix:
+  description: add netty-handler as a direct dependency so that downstream projects
+    resolve the correct version
+  links:
+  - https://github.com/palantir/atlasdb/pull/6688u}(jWA (e76f0a48968f3f5af674af0b305a845d9d045dfcjA 
versions.lockjA modifiedjA KjA KjA KjA _https://github.com/palantir/atlasdb/blob/7cd5f5517d81be4a2d4c05ad430e9f24cb2a2140/versions.lockjA ^https://github.com/palantir/atlasdb/raw/7cd5f5517d81be4a2d4c05ad430e9f24cb2a2140/versions.lockjA qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=7cd5f5517d81be4a2d4c05ad430e9f24cb2a2140jA Xc  @@ -170,7 +170,7 @@ io.netty:netty-codec-socks:4.1.90.Final (2 constraints: 0b1ae71e)
 io.netty:netty-codec-stomp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-codec-xml:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-common:4.1.90.Final (17 constraints: 9f060892)
-io.netty:netty-handler:4.1.90.Final (4 constraints: 5b3c2eaa)
+io.netty:netty-handler:4.1.90.Final (5 constraints: b2435f26)
 io.netty:netty-handler-proxy:4.1.90.Final (2 constraints: 53120c2a)
 io.netty:netty-handler-ssl-ocsp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-resolver:4.1.90.Final (4 constraints: f133a9f6)ueu(5e3b8235591a95ddb701908336c245fcb168344c}(sha(5e3b8235591a95ddb701908336c245fcb168344cnode_idEC_kwDOAjP5fdoAKDVlM2I4MjM1NTkxYTk1ZGRiNzAxOTA4MzM2YzI0NWZjYjE2ODM0NGMcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-06T16:10:54Zu	committer}(jA 	Tom PapkejA tpapke@palantir.comjA 2023-07-10T14:49:43Zumessage!use safeillegalargument exceptiontree}(jA (4a6b2fb3d436a63c70aab2c675f3489cb2efc8b8url`https://api.github.com/repos/palantir/atlasdb/git/trees/4a6b2fb3d436a63c70aab2c675f3489cb2efc8b8ujA bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5e3b8235591a95ddb701908336c245fcb168344c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSsGocACgkQmF9s0kaF
Iw27wggAmQpMClOFQ5qz+tvsg6gVdaML8ZCMehLQQb8TAQn4fgWi1/OSZbpuJ7bL
m/W5FZRSkd7WZihUhAnO9Zi7CbyqzkRlgktAOr9xFefP6cgXEQUCfajPoqnL+3EK
jhbJ2kYdvCHtNASuA9I5Q9ciGF2nzt9cPVc6VGsmfLo+qyudoL46pzU0roOzeJdo
XTSDASZCqbbFXZDfxFU8cbpkhM/ki2H41UCm+FKFo3/8OjK4TLjtYf5yCSQXYEAr
hKXSJo3MNYHODrc7xVzkieIbDiC1a+5YOLCyiMBQ4knu8Qxi3oqOLIeh4rE/wpLe
HwF+FbNJ80riIsRV0cu2Tae9A9dLnw==
=buGl
-----END PGP SIGNATURE-----payloadtree 4a6b2fb3d436a63c70aab2c675f3489cb2efc8b8
parent cd4cb40edac0705d168b1eca94f66e4c9b3a67a8
author Tom Papke <tpapke@palantir.com> 1688659854 +0100
committer Tom Papke <tpapke@palantir.com> 1689000583 +0100

use safeillegalargument exception
uujA ^https://api.github.com/repos/palantir/atlasdb/commits/5e3b8235591a95ddb701908336c245fcb168344chtml_urlShttps://github.com/palantir/atlasdb/commit/5e3b8235591a95ddb701908336c245fcb168344ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5e3b8235591a95ddb701908336c245fcb168344c/commentsjA }(login	ToemmscheidJbojA MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jA &https://api.github.com/users/ToemmschejB https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujA }(j	B 	ToemmschejB JbojA MDQ6VXNlcjQzNjc1NDkwj
B 4https://avatars.githubusercontent.com/u/43675490?v=4jB h5jA &https://api.github.com/users/ToemmschejB https://github.com/ToemmschejB 0https://api.github.com/users/Toemmsche/followersjB =https://api.github.com/users/Toemmsche/following{/other_user}jB 6https://api.github.com/users/Toemmsche/gists{/gist_id}jB =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jB 4https://api.github.com/users/Toemmsche/subscriptionsjB +https://api.github.com/users/Toemmsche/orgsjB ,https://api.github.com/users/Toemmsche/reposj B 7https://api.github.com/users/Toemmsche/events{/privacy}j"B 6https://api.github.com/users/Toemmsche/received_eventsj$B Userj&B uparents]}(jA (cd4cb40edac0705d168b1eca94f66e4c9b3a67a8jA ^https://api.github.com/repos/palantir/atlasdb/commits/cd4cb40edac0705d168b1eca94f66e4c9b3a67a8jB Shttps://github.com/palantir/atlasdb/commit/cd4cb40edac0705d168b1eca94f66e4c9b3a67a8uastats}(totalK	additionsK	deletionsKufiles]}(jA (fd28b6b686ca4f07efc21e88131b556572312fd3filenameGatlasdb-commons/src/main/java/com/palantir/util/IndexEncodingUtils.javastatusmodifiedj@B KjAB KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5e3b8235591a95ddb701908336c245fcb168344c/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5e3b8235591a95ddb701908336c245fcb168344c/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.java?ref=5e3b8235591a95ddb701908336c245fcb168344cpatchX  @@ -126,7 +126,8 @@ static <K extends DeterministicHashable> KeyListChecksum computeChecksum(
                 break;
             }
             default: {
-                throw new IllegalArgumentException("Unknown checksum type: " + checksumType);
+                throw new SafeIllegalArgumentException(
+                        "Unknown checksum type", UnsafeArg.of("checksumType", checksumType));
             }
         }
         return KeyListChecksum.of(checksumType, checksumValue);uau(17ba451340361b8c9a5d7de98c4bab1ce5d322ac}(sha(17ba451340361b8c9a5d7de98c4bab1ce5d322acnode_idEC_kwDOAjP5fdoAKDE3YmE0NTEzNDAzNjFiOGM5YTVkN2RlOThjNGJhYjFjZTVkMzIyYWMcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-13T15:52:53Zu	committer}(j]B 	Tom Papkej_B tpapke@palantir.comjaB 2023-07-13T15:52:53ZumessageUpdate sparse-metadata jsontree}(jUB (ec601362ecd81b2e9aac59261914902ea50fe685url`https://api.github.com/repos/palantir/atlasdb/git/trees/ec601362ecd81b2e9aac59261914902ea50fe685ujmB bhttps://api.github.com/repos/palantir/atlasdb/git/commits/17ba451340361b8c9a5d7de98c4bab1ce5d322ac
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSwHdUACgkQmF9s0kaF
Iw2f1wf/UKV/j7E9z9pZ1CP3EOpB4WW0wse7Twr3pO4lDPRUlzzrxzWwzCyiro+6
ZH8tmvAPJQsb4qC5Q86P9rI5CUS7Zodd1sVSiVO0myUXtNKxikP5U224tBbD0mot
ItPXSgGeOfgCppceYnY9A3YKd7BFsFxSYmk2hY3ty/LIzt16X5YFWW/uOLydOne3
bgPMd0iIO6MHUFnOGVzWWzWHvCtT/f60z7YwigSokaDifpv/+naGOmlddajNyMda
liUoDv41eV3KYVuuW4x+DaW1DBwr3Dy0uqVnYpHj51sNRdriit3lrN24cqCM/x+Z
IktbQo+Idw/9SjMjjisPqak2nOYgvA==
=m7PX
-----END PGP SIGNATURE-----payloadtree ec601362ecd81b2e9aac59261914902ea50fe685
parent 4dd429668a390497fae8e714765e83e4db4a2d7b
author Tom Papke <tpapke@palantir.com> 1689263573 +0100
committer Tom Papke <tpapke@palantir.com> 1689263573 +0100

Update sparse-metadata json
uujmB ^https://api.github.com/repos/palantir/atlasdb/commits/17ba451340361b8c9a5d7de98c4bab1ce5d322achtml_urlShttps://github.com/palantir/atlasdb/commit/17ba451340361b8c9a5d7de98c4bab1ce5d322accomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/17ba451340361b8c9a5d7de98c4bab1ce5d322ac/commentsj[B }(login	ToemmscheidJbojWB MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jmB &https://api.github.com/users/Toemmschej{B https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujcB }(jB 	ToemmschejB JbojWB MDQ6VXNlcjQzNjc1NDkwjB 4https://avatars.githubusercontent.com/u/43675490?v=4jB h5jmB &https://api.github.com/users/Toemmschej{B https://github.com/ToemmschejB 0https://api.github.com/users/Toemmsche/followersjB =https://api.github.com/users/Toemmsche/following{/other_user}jB 6https://api.github.com/users/Toemmsche/gists{/gist_id}jB =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jB 4https://api.github.com/users/Toemmsche/subscriptionsjB +https://api.github.com/users/Toemmsche/orgsjB ,https://api.github.com/users/Toemmsche/reposjB 7https://api.github.com/users/Toemmsche/events{/privacy}jB 6https://api.github.com/users/Toemmsche/received_eventsjB UserjB uparents]}(jUB (4dd429668a390497fae8e714765e83e4db4a2d7bjmB ^https://api.github.com/repos/palantir/atlasdb/commits/4dd429668a390497fae8e714765e83e4db4a2d7bj{B Shttps://github.com/palantir/atlasdb/commit/4dd429668a390497fae8e714765e83e4db4a2d7buastats}(totalK	additionsK	deletionsKufiles](}(jUB (09c0b5fa88e0a21e4e4d05de3ba6910635b3290dfilenameIlock-api-objects/src/test/java/com/palantir/lock/watch/LockEventTest.javastatusmodifiedjB KjB KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/17ba451340361b8c9a5d7de98c4bab1ce5d322ac/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/17ba451340361b8c9a5d7de98c4bab1ce5d322ac/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.java?ref=17ba451340361b8c9a5d7de98c4bab1ce5d322acpatchX  @@ -48,7 +48,7 @@
 
 public class LockEventTest {
     private static final String BASE = "src/test/resources/lock-event-wire-format/";
-    private static final boolean REWRITE_JSON_BLOBS = true;
+    private static final boolean REWRITE_JSON_BLOBS = false;
 
     private static final LockDescriptor LOCK_1 = StringLockDescriptor.of("abc");
     private static final LockDescriptor LOCK_2 = StringLockDescriptor.of("def");u}(jUB (c463a4528f6bad141ab71a4124edd6fd095ccb67jB Olock-api-objects/src/test/resources/lock-event-wire-format/sparse-metadata.jsonjB modifiedjB K
jB KjB KjB https://github.com/palantir/atlasdb/blob/17ba451340361b8c9a5d7de98c4bab1ce5d322ac/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fsparse-metadata.jsonjB https://github.com/palantir/atlasdb/raw/17ba451340361b8c9a5d7de98c4bab1ce5d322ac/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fsparse-metadata.jsonjB https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fsparse-metadata.json?ref=17ba451340361b8c9a5d7de98c4bab1ce5d322acjB X  @@ -29,19 +29,22 @@
     "indexToChangeMetadata" : {
       "0" : {
         "type" : "created",
-        "newValue" : "AAAAAAAAAAA="
+        "newValue" : "Y3JlYXRlZA=="
       },
       "4" : {
-        "type" : "created",
-        "newValue" : "AAAAAAAAAAQ="
+        "type" : "deleted",
+        "oldValue" : "ZGVsZXRlZA=="
       },
       "5" : {
-        "type" : "created",
-        "newValue" : "AAAAAAAAAAU="
+        "type" : "updated",
+        "oldValue" : "b2xk",
+        "newValue" : "bmV3"
+      },
+      "7" : {
+        "type" : "unchanged"
       },
       "9" : {
-        "type" : "created",
-        "newValue" : "AAAAAAAAAAk="
+        "type" : "unchanged"
       }
     },
     "lockListChecksum" : {ueu(f9e6b201b1cda37b3c3550547ec4d9100de25dee}(sha(f9e6b201b1cda37b3c3550547ec4d9100de25deenode_idEC_kwDOAjP5fdoAKGY5ZTZiMjAxYjFjZGEzN2IzYzM1NTA1NDdlYzRkOTEwMGRlMjVkZWUcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-11T19:24:49Zu	committer}(jB 	Tom PapkejB tpapke@palantir.comjB 2023-07-11T19:24:49ZumessageAddress review commentstree}(jB (d4b041cd295064f2b3927c3673d07ad05c827d3furl`https://api.github.com/repos/palantir/atlasdb/git/trees/d4b041cd295064f2b3927c3673d07ad05c827d3fujB bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f9e6b201b1cda37b3c3550547ec4d9100de25dee
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmStrIEACgkQmF9s0kaF
Iw302Af+MrDyE9kd7qkYoqcbHfTAZWRWeiGQv6dXgEWp87LmrTT1cxP4Tu4Js9uV
JQXElkk3PddKEqF07DeP+83oc/gNYHElg505HMHgvPQVq8MpmAGMrhcFDQundf2o
QXrqIewISR1oF5G/1xtUp2/jvkzz/PE1O94ADwAyFQemksM1ujjAe6OR3FJ/8FOm
gkMDnWlkTBEtOtUhE1cyy5zZs6DUskNiwygW1qcoyfZzUezEF92yhC0D5Z2zYa/w
ZtVk0hDF7x8LR0sdpQchRu7YUsaV3EnLS71Zp4qL/1RrRldYXctviJMtTjkM1t65
6zVDBpMYlY2Oh9/ke9wMJ2BeG6cbeQ==
=W/kQ
-----END PGP SIGNATURE-----payloadtree d4b041cd295064f2b3927c3673d07ad05c827d3f
parent 03a9e35e0fc131130205b156d9e2a23b979dfe77
author Tom Papke <tpapke@palantir.com> 1689103489 +0100
committer Tom Papke <tpapke@palantir.com> 1689103489 +0100

Address review comments
uujB ^https://api.github.com/repos/palantir/atlasdb/commits/f9e6b201b1cda37b3c3550547ec4d9100de25deehtml_urlShttps://github.com/palantir/atlasdb/commit/f9e6b201b1cda37b3c3550547ec4d9100de25deecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f9e6b201b1cda37b3c3550547ec4d9100de25dee/commentsjB }(login	ToemmscheidJbojB MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jB &https://api.github.com/users/ToemmschejB https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujB }(jB 	ToemmschejC JbojB MDQ6VXNlcjQzNjc1NDkwjC 4https://avatars.githubusercontent.com/u/43675490?v=4jC h5jB &https://api.github.com/users/ToemmschejB https://github.com/ToemmschejC 0https://api.github.com/users/Toemmsche/followersj
C =https://api.github.com/users/Toemmsche/following{/other_user}jC 6https://api.github.com/users/Toemmsche/gists{/gist_id}jC =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jC 4https://api.github.com/users/Toemmsche/subscriptionsjC +https://api.github.com/users/Toemmsche/orgsjC ,https://api.github.com/users/Toemmsche/reposjC 7https://api.github.com/users/Toemmsche/events{/privacy}jC 6https://api.github.com/users/Toemmsche/received_eventsjC UserjC uparents]}(jB (03a9e35e0fc131130205b156d9e2a23b979dfe77jB ^https://api.github.com/repos/palantir/atlasdb/commits/03a9e35e0fc131130205b156d9e2a23b979dfe77jB Shttps://github.com/palantir/atlasdb/commit/03a9e35e0fc131130205b156d9e2a23b979dfe77uastats}(totalK	additionsKf	deletionsKZufiles](}(jB (e7949fec0d19116c4500b6be501d9ab8aef7f88ffilenameatlasdb-commons/build.gradlestatusmodifiedj6C Kj7C K changesKblob_urlphttps://github.com/palantir/atlasdb/blob/f9e6b201b1cda37b3c3550547ec4d9100de25dee/atlasdb-commons%2Fbuild.gradleraw_urlohttps://github.com/palantir/atlasdb/raw/f9e6b201b1cda37b3c3550547ec4d9100de25dee/atlasdb-commons%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fbuild.gradle?ref=f9e6b201b1cda37b3c3550547ec4d9100de25deepatchX  @@ -26,6 +26,7 @@ dependencies {
     testImplementation 'com.fasterxml.jackson.core:jackson-databind'
     testImplementation 'com.google.errorprone:error_prone_annotations'
     testImplementation 'com.google.guava:guava'
+    testImplementation 'com.palantir.safe-logging:preconditions-assertj'
 
     annotationProcessor 'org.immutables:value'
     compileOnly 'org.immutables:value::annotations'u}(jB (e20280a5d10831ffcf7c94a007d5bfdcf55583baj<C Gatlasdb-commons/src/main/java/com/palantir/util/IndexEncodingUtils.javaj>C modifiedj6C Kj7C Kj@C K(jAC https://github.com/palantir/atlasdb/blob/f9e6b201b1cda37b3c3550547ec4d9100de25dee/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javajCC https://github.com/palantir/atlasdb/raw/f9e6b201b1cda37b3c3550547ec4d9100de25dee/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javajEC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.java?ref=f9e6b201b1cda37b3c3550547ec4d9100de25deejGC X>  @@ -38,17 +38,8 @@
 public final class IndexEncodingUtils {
     private IndexEncodingUtils() {}
 
-    public interface DeterministicHashable {
-
-        /**
-         * A hash code implementation that is stable across different processes/JVMs and only depends on the contents
-         * of the object.
-         */
-        int deterministicHashCode();
-    }
-
     /**
-     * Compute a derived map, replacing keys with their associated index into the ordered list, to the value returned
+     * Compute a derived map (replacing keys with their associated index into the ordered list) to the value returned
      * by running the {@code valueMapper} over the original value.
      * If the {@code keys} are transmitted regardless of whether they have a value associated in {@code keyToValue},
      * this encoding can be used to save significant space on the wire.
@@ -88,7 +79,7 @@ public static <K extends DeterministicHashable, V, R> IndexEncodingResult<K, R>
     }
 
     /**
-     * Compute a derived map, replacing indices into the list of keys with their item, to the value returned
+     * Compute a derived map (replacing indices into the list of keys with their item) to the value returned
      * by running the {@code valueMapper} over the original value.
      *
      * @param indexEncoding the output of {@link IndexEncodingUtils#encode}, i.e. the ordered list of keys,
@@ -107,8 +98,8 @@ public static <K extends DeterministicHashable, V, R> Map<K, R> decode(
                 actualChecksum.equals(expectedChecksum),
                 "Key list integrity check failed",
                 UnsafeArg.of("keyList", keyList),
-                UnsafeArg.of("actualChecksum", actualChecksum),
-                UnsafeArg.of("expectedChecksum", expectedChecksum));
+                SafeArg.of("actualChecksum", actualChecksum),
+                SafeArg.of("expectedChecksum", expectedChecksum));
 
         Map<K, R> keyToValue =
                 Maps.newHashMapWithExpectedSize(indexEncoding.indexToValue().size());
@@ -117,8 +108,8 @@ public static <K extends DeterministicHashable, V, R> Map<K, R> decode(
             Preconditions.checkArgument(
                     index >= 0 && index < keyList.size(),
                     "Index map contains invalid index",
-                    UnsafeArg.of("index", index),
-                    UnsafeArg.of("keyListSize", keyList.size()));
+                    SafeArg.of("index", index),
+                    SafeArg.of("keyListSize", keyList.size()));
             keyToValue.put(keyList.get(index), valueMapper.apply(entry.getValue()));
         }
         return keyToValue;
@@ -127,23 +118,30 @@ public static <K extends DeterministicHashable, V, R> Map<K, R> decode(
     @VisibleForTesting
     static <K extends DeterministicHashable> KeyListChecksum computeChecksum(
             ChecksumType checksumType, List<K> keyList) {
-        byte[] checksumValue;
         switch (checksumType) {
             case CRC32_OF_DETERMINISTIC_HASHCODE: {
                 CRC32 checksum = new CRC32();
                 for (K key : keyList) {
                     checksum.update(key.deterministicHashCode());
                 }
-                checksumValue =
-                        ByteBuffer.allocate(8).putLong(checksum.getValue()).array();
-                break;
+                return KeyListChecksum.of(
+                        checksumType,
+                        ByteBuffer.allocate(8).putLong(checksum.getValue()).array());
             }
             default: {
                 throw new SafeIllegalArgumentException(
-                        "Unknown checksum type", UnsafeArg.of("checksumType", checksumType));
+                        "Unknown checksum type", SafeArg.of("checksumType", checksumType));
             }
         }
-        return KeyListChecksum.of(checksumType, checksumValue);
+    }
+
+    public interface DeterministicHashable {
+
+        /**
+         * A hash code implementation that is stable across different processes/JVMs and only depends on the contents
+         * of the object.
+         */
+        int deterministicHashCode();
     }
 
     /**u}(jB (bb90e8c09c0651aafbcb9477290fca89c9988d9ej<C Katlasdb-commons/src/test/java/com/palantir/util/IndexEncodingUtilsTest.javaj>C modifiedj6C K?j7C KEj@C KjAC https://github.com/palantir/atlasdb/blob/f9e6b201b1cda37b3c3550547ec4d9100de25dee/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javajCC https://github.com/palantir/atlasdb/raw/f9e6b201b1cda37b3c3550547ec4d9100de25dee/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javajEC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.java?ref=f9e6b201b1cda37b3c3550547ec4d9100de25deejGC Xq2  @@ -16,16 +16,14 @@
 
 package com.palantir.util;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatException;
-import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
-import com.palantir.logsafe.exceptions.SafeExceptions;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.util.IndexEncodingUtils.ChecksumType;
 import com.palantir.util.IndexEncodingUtils.DeterministicHashable;
@@ -44,7 +42,6 @@
 import java.util.stream.Stream;
 import org.assertj.core.api.Assertions;
 import org.immutables.value.Value;
-import org.junit.Before;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
@@ -57,129 +54,123 @@ public static Iterable<ChecksumType> data() {
         return Arrays.asList(ChecksumType.values());
     }
 
-    private static final Map<DH<String>, Long> VALUES =
-            ImmutableMap.of(dh("key1"), 42L, dh("key2"), 1337L, dh("anotherKey"), -10L);
-    private static final Set<DH<String>> KEYS = ImmutableSet.of(dh("key1"), dh("key2"), dh("anotherKey"));
-    private static final Map<Integer, Long> INDEX_ENCODED_VALUES = ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L);
-    private static final Function<Long, String> VALUE_MAPPER = value -> Long.toString(value - 10);
-    private static final Function<String, Long> REVERSE_MAPPER = value -> Long.parseLong(value) + 10;
+    private static final Map<DeterministicHashableWrapper<String>, Long> VALUES =
+            ImmutableMap.of(wrap("key1"), 42L, wrap("key2"), 1337L, wrap("anotherKey"), -10L);
+    private static final Set<DeterministicHashableWrapper<String>> KEYS =
+            ImmutableSet.of(wrap("key1"), wrap("key2"), wrap("anotherKey"));
 
     private final ChecksumType checksumType;
-    private IndexEncodingResult<DH<String>, Long> encoded;
 
     public IndexEncodingUtilsTest(ChecksumType checksumType) {
         this.checksumType = checksumType;
     }
 
-    @Before
-    public void setup() {
-        encoded = IndexEncodingUtils.encode(KEYS, VALUES, Function.identity(), checksumType);
-    }
-
     @Test
     public void canLookupValidChecksumType() {
         assertThat(ChecksumType.valueOf(checksumType.getId())).isEqualTo(checksumType);
     }
 
     @Test
     public void cannotLookupUnknownChecksumType() {
-        assertThatException()
-                .isThrownBy(() -> ChecksumType.valueOf(-1))
+        assertThatLoggableExceptionThrownBy(() -> ChecksumType.valueOf(-1))
                 .isInstanceOf(SafeIllegalArgumentException.class)
-                .withMessage(
-                        SafeExceptions.renderMessage("Unknown checksum type ID", SafeArg.of("checksumTypeId", -1)));
+                .hasMessageStartingWith("Unknown checksum type ID")
+                .hasExactlyArgs(SafeArg.of("checksumTypeId", -1));
     }
 
     @Test
     public void canEncodeSimpleData() {
-        assertThat(encoded.indexToValue()).isEqualTo(INDEX_ENCODED_VALUES);
+        assertThat(createIndexEncodingWithIdentity().indexToValue())
+                .isEqualTo(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
     }
 
     @Test
     public void canDecodeSimpleData() {
-        assertThat(IndexEncodingUtils.decode(encoded, Function.identity())).containsExactlyInAnyOrderEntriesOf(VALUES);
+        assertThat(IndexEncodingUtils.decode(createIndexEncodingWithIdentity(), Function.identity()))
+                .containsExactlyInAnyOrderEntriesOf(VALUES);
     }
 
     @Test
     public void canEncodeWithCustomValueMapper() {
-        Map<Integer, String> expectedValues = KeyedStream.ofEntries(INDEX_ENCODED_VALUES.entrySet().stream())
-                .map(VALUE_MAPPER)
-                .collectToMap();
-        assertThat(IndexEncodingUtils.encode(KEYS, VALUES, VALUE_MAPPER, checksumType)
+        Map<Integer, String> expectedValues = ImmutableMap.of(1, "1327", 2, "-20", 0, "32");
+        assertThat(IndexEncodingUtils.encode(KEYS, VALUES, value -> Long.toString(value - 10), checksumType)
                         .indexToValue())
                 .containsExactlyInAnyOrderEntriesOf(expectedValues);
     }
 
     @Test
     public void canDecodeWithCustomValueMapper() {
         assertThat(IndexEncodingUtils.decode(
-                        IndexEncodingUtils.encode(KEYS, VALUES, VALUE_MAPPER, checksumType), REVERSE_MAPPER))
+                        IndexEncodingUtils.encode(KEYS, VALUES, value -> Long.toString(value - 10), checksumType),
+                        value -> Long.parseLong(value) + 10))
                 .containsExactlyInAnyOrderEntriesOf(VALUES);
     }
 
     @Test
     public void encodeFailsForUnknownKeysInValueMap() {
-        assertThatException()
-                .isThrownBy(() -> IndexEncodingUtils.encode(
-                        KEYS, ImmutableMap.of(dh("unknown-key"), 0L), Function.identity(), checksumType))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .withMessage(SafeExceptions.renderMessage(
-                        "Value map uses keys that are not in the provided set of keys",
-                        UnsafeArg.of("unknownKeys", ImmutableSet.of(dh("unknown-key")))));
+        assertThatLoggableExceptionThrownBy(() -> IndexEncodingUtils.encode(
+                        KEYS, ImmutableMap.of(wrap("unknown-key"), 0L), Function.identity(), checksumType))
+                .isExactlyInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageStartingWith("Value map uses keys that are not in the provided set of keys")
+                .hasExactlyArgs(UnsafeArg.of("unknownKeys", ImmutableSet.of(wrap("unknown-key"))));
     }
 
     @Test
     public void decodeFailsForInvalidIndices() {
-        IndexEncodingResult<DH<String>, Long> encodedWithInvalidIndices =
-                ImmutableIndexEncodingResult.copyOf(encoded).withIndexToValue(ImmutableMap.of(KEYS.size(), 17L));
-        assertThatException()
-                .isThrownBy(() -> IndexEncodingUtils.decode(encodedWithInvalidIndices, Function.identity()))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .withMessage(SafeExceptions.renderMessage(
-                        "Index map contains invalid index",
-                        UnsafeArg.of("index", KEYS.size()),
-                        UnsafeArg.of("keyListSize", KEYS.size())));
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encodedWithInvalidIndices =
+                ImmutableIndexEncodingResult.copyOf(createIndexEncodingWithIdentity())
+                        .withIndexToValue(ImmutableMap.of(KEYS.size(), 17L));
+        assertThatLoggableExceptionThrownBy(
+                        () -> IndexEncodingUtils.decode(encodedWithInvalidIndices, Function.identity()))
+                .isExactlyInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageStartingWith("Index map contains invalid index")
+                .hasExactlyArgs(SafeArg.of("index", KEYS.size()), SafeArg.of("keyListSize", KEYS.size()));
     }
 
     @Test
     public void integrityCheckFailsForDifferentKeyList() {
-        List<DH<String>> modifiedKeyList = new ArrayList<>(KEYS);
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encoded = createIndexEncodingWithIdentity();
+        List<DeterministicHashableWrapper<String>> modifiedKeyList = new ArrayList<>(KEYS);
         Collections.swap(modifiedKeyList, 0, 1);
-        IndexEncodingResult<DH<String>, Long> encodedWithModifiedKeyList =
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encodedWithModifiedKeyList =
                 ImmutableIndexEncodingResult.copyOf(encoded).withKeyList(modifiedKeyList);
         KeyListChecksum actualChecksum = IndexEncodingUtils.computeChecksum(checksumType, modifiedKeyList);
-        assertThatThrownBy(() -> IndexEncodingUtils.decode(encodedWithModifiedKeyList, Function.identity()))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessage(SafeExceptions.renderMessage(
-                        "Key list integrity check failed",
+        assertThatLoggableExceptionThrownBy(
+                        () -> IndexEncodingUtils.decode(encodedWithModifiedKeyList, Function.identity()))
+                .isExactlyInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageStartingWith("Key list integrity check failed")
+                .hasExactlyArgs(
                         UnsafeArg.of("keyList", modifiedKeyList),
-                        UnsafeArg.of("actualChecksum", actualChecksum),
-                        UnsafeArg.of("expectedChecksum", encoded.keyListChecksum())));
+                        SafeArg.of("actualChecksum", actualChecksum),
+                        SafeArg.of("expectedChecksum", encoded.keyListChecksum()));
     }
 
     @Test
     public void integrityCheckFailsForDifferentChecksum() {
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encoded = createIndexEncodingWithIdentity();
         byte[] modifiedChecksum = encoded.keyListChecksum().value();
         modifiedChecksum[0]++;
-        IndexEncodingResult<DH<String>, Long> encodedWithModifiedChecksum = ImmutableIndexEncodingResult.copyOf(encoded)
-                .withKeyListChecksum(KeyListChecksum.of(checksumType, modifiedChecksum));
-        assertThatThrownBy(() -> IndexEncodingUtils.decode(encodedWithModifiedChecksum, Function.identity()))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessage(SafeExceptions.renderMessage(
-                        "Key list integrity check failed",
-                        UnsafeArg.of("keyList", KEYS),
-                        UnsafeArg.of("actualChecksum", encoded.keyListChecksum()),
-                        UnsafeArg.of("expectedChecksum", encodedWithModifiedChecksum.keyListChecksum())));
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encodedWithModifiedChecksum =
+                ImmutableIndexEncodingResult.copyOf(encoded)
+                        .withKeyListChecksum(KeyListChecksum.of(checksumType, modifiedChecksum));
+        assertThatLoggableExceptionThrownBy(
+                        () -> IndexEncodingUtils.decode(encodedWithModifiedChecksum, Function.identity()))
+                .isExactlyInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageStartingWith("Key list integrity check failed")
+                .hasExactlyArgs(
+                        UnsafeArg.of("keyList", encoded.keyList()),
+                        SafeArg.of("actualChecksum", encoded.keyListChecksum()),
+                        SafeArg.of("expectedChecksum", encodedWithModifiedChecksum.keyListChecksum()));
     }
 
     @Test
     public void decodingEncodedDataYieldsOriginalForRandomData() {
         Random rand = new Random();
-        Set<DH<UUID>> keys = Stream.generate(UUID::randomUUID)
+        Set<DeterministicHashableWrapper<UUID>> keys = Stream.generate(UUID::randomUUID)
                 .limit(1000)
-                .map(IndexEncodingUtilsTest::dh)
+                .map(IndexEncodingUtilsTest::wrap)
                 .collect(Collectors.toSet());
-        Map<DH<UUID>, Long> data = KeyedStream.of(keys.stream())
+        Map<DeterministicHashableWrapper<UUID>, Long> data = KeyedStream.of(keys.stream())
                 .filter(_unused -> rand.nextBoolean())
                 .map(_unused -> rand.nextLong())
                 .collectToMap();
@@ -188,9 +179,16 @@ public void decodingEncodedDataYieldsOriginalForRandomData() {
                 .containsExactlyInAnyOrderEntriesOf(data);
     }
 
-    // DH = deterministic hashable
+    private IndexEncodingResult<DeterministicHashableWrapper<String>, Long> createIndexEncodingWithIdentity() {
+        return IndexEncodingUtils.encode(KEYS, VALUES, Function.identity(), checksumType);
+    }
+
+    private static <T> DeterministicHashableWrapper<T> wrap(T value) {
+        return ImmutableDeterministicHashableWrapper.of(value);
+    }
+
     @Value.Immutable
-    abstract static class DH<T> implements DeterministicHashable {
+    abstract static class DeterministicHashableWrapper<T> implements DeterministicHashable {
 
         @Value.Parameter
         protected abstract T delegate();
@@ -200,8 +198,4 @@ public int deterministicHashCode() {
             return delegate().hashCode();
         }
     }
-
-    private static <T> DH<T> dh(T value) {
-        return ImmutableDH.of(value);
-    }
 }u}(jB (1bba95acc622e3285936e6443d37ef912ef8575dj<C @lock-api/src/test/java/com/palantir/lock/LockDescriptorTest.javaj>C modifiedj6C Kj7C K j@C KjAC https://github.com/palantir/atlasdb/blob/f9e6b201b1cda37b3c3550547ec4d9100de25dee/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockDescriptorTest.javajCC https://github.com/palantir/atlasdb/raw/f9e6b201b1cda37b3c3550547ec4d9100de25dee/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockDescriptorTest.javajEC https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockDescriptorTest.java?ref=f9e6b201b1cda37b3c3550547ec4d9100de25deejGC Xy  @@ -20,6 +20,7 @@
 
 import com.google.common.base.Charsets;
 import com.google.common.io.BaseEncoding;
+import java.util.Arrays;
 import org.junit.Test;
 
 public class LockDescriptorTest {
@@ -67,6 +68,24 @@ public void testNullEncodedStringDescriptor() {
         assertThatThrownBy(() -> testEncodedLockDescriptors(null)).isInstanceOf(NullPointerException.class);
     }
 
+    // If this test fails, the implementation of Arrays.hashCode(byte[]), LockDescriptor::hashCode, or
+    // LockDescriptor::deterministicHashCode has changed.
+    // Either way, we should revisit LockDescriptor::deterministicHashCode and ensure that it is still deterministic
+    // and there are no compatibility issues in mixed-version deployments.
+    @Test
+    public void hashCodeIsDeterministic() {
+        // 40 random bytes
+        byte[] bytes = new byte[] {
+            59, -6, -24, 61, -48, -126, -4, 81, -9, -38, -107, 93, 101, -95, 78, -60, -105, 23, 72, 96, -5, 74, -121,
+            59, 40, -87, 1, -6, 43, -20, -70, 101, 63, 108, -51, 117, 113, 116, -87, -73
+        };
+        int expectedByteArrayHashCode = 2030170880;
+        assertThat(Arrays.hashCode(bytes)).isEqualTo(expectedByteArrayHashCode);
+        LockDescriptor lockDescriptor = new LockDescriptor(bytes);
+        assertThat(lockDescriptor.hashCode()).isEqualTo(expectedByteArrayHashCode + 31);
+        assertThat(lockDescriptor.deterministicHashCode()).isEqualTo(expectedByteArrayHashCode + 31);
+    }
+
     private void testAsciiLockDescriptors(String lockId) {
         assertThat(StringLockDescriptor.of(lockId).toString()).isEqualTo(expectedLockDescriptorToString(lockId));
 ueu?     (3d065fca2c42ba47f433b7982fedf9f45090353c}(sha(3d065fca2c42ba47f433b7982fedf9f45090353cnode_idEC_kwDOAjP5fdoAKDNkMDY1ZmNhMmM0MmJhNDdmNDMzYjc5ODJmZWRmOWY0NTA5MDM1M2Mcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-07-17T09:49:09Zu	committer}(jkC GitHubjmC noreply@github.comjoC 2023-07-17T09:49:09ZumessageX  Add alter table to match metadata for oracle to docs (#6391)

* add alter metadata to docs

* fix title

* remove words

* camel case

* clean up docs slightly

* validation

* double quote

* Update docs/source/configuration/key_value_service_configs/oracle_key_value_service_config.rst

Co-authored-by: Jeremy Kong <jkong@palantir.com>

* remove new lines

---------

Co-authored-by: Jeremy Kong <jkong@palantir.com>tree}(jcC (4add37cb795b4549cf90ac51227ff50251175123url`https://api.github.com/repos/palantir/atlasdb/git/trees/4add37cb795b4549cf90ac51227ff50251175123uj{C bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3d065fca2c42ba47f433b7982fedf9f45090353c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJktQ6VCRBK7hj4Ov3rIwAAVVAIAEbqQUZyolFz7EaTob6HpZdP
gXPl7VZ8T3/IzybQ9BJpe36gHjvtBtNT+aX0Ck/puo4gWv7LX19tm6Gu3CjZG/6w
lrNRw7+DxV+XjxKvM23qYTEvWE4iA/gNvtUzfAxipbOUhsFDua9PpG/25t9+nMUe
MyxskbPhygUsi7VFqdLvFetiM2phbtLWMOvaKzjlbe3EBEfEeFFB9xmaGazVZf0a
AIHSyT7dTF2/cBhmW+Z83kvp9jHMHQpG9yD/L76poUXwj8+7agm316udOyOPnheZ
ziKnyfOGpNcPxm58odG8Pz/yRdVbp7tTlm+QRIIV8lqOfmrDq/XlD2wQYfJWChQ=
=Udpp
-----END PGP SIGNATURE-----
payloadX  tree 4add37cb795b4549cf90ac51227ff50251175123
parent 22bcd4b6ce6d785ef3d1b5da2b9a38f0086c581f
author Sam-Kramer <sam.c.kramer@gmail.com> 1689587349 +0100
committer GitHub <noreply@github.com> 1689587349 +0100

Add alter table to match metadata for oracle to docs (#6391)

* add alter metadata to docs

* fix title

* remove words

* camel case

* clean up docs slightly

* validation

* double quote

* Update docs/source/configuration/key_value_service_configs/oracle_key_value_service_config.rst

Co-authored-by: Jeremy Kong <jkong@palantir.com>

* remove new lines

---------

Co-authored-by: Jeremy Kong <jkong@palantir.com>uuj{C ^https://api.github.com/repos/palantir/atlasdb/commits/3d065fca2c42ba47f433b7982fedf9f45090353chtml_urlShttps://github.com/palantir/atlasdb/commit/3d065fca2c42ba47f433b7982fedf9f45090353ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3d065fca2c42ba47f433b7982fedf9f45090353c/commentsjiC }(login
Sam-KrameridJ^2_ jeC MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j{C 'https://api.github.com/users/Sam-KramerjC https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujqC }(jC web-flowjC J/jeC MDQ6VXNlcjE5ODY0NDQ3jC 4https://avatars.githubusercontent.com/u/19864447?v=4jC h5j{C %https://api.github.com/users/web-flowjC https://github.com/web-flowjC /https://api.github.com/users/web-flow/followersjC <https://api.github.com/users/web-flow/following{/other_user}jC 5https://api.github.com/users/web-flow/gists{/gist_id}jC <https://api.github.com/users/web-flow/starred{/owner}{/repo}jC 3https://api.github.com/users/web-flow/subscriptionsjC *https://api.github.com/users/web-flow/orgsjC +https://api.github.com/users/web-flow/reposjC 6https://api.github.com/users/web-flow/events{/privacy}jC 5https://api.github.com/users/web-flow/received_eventsjC UserjC uparents]}(jcC (22bcd4b6ce6d785ef3d1b5da2b9a38f0086c581fj{C ^https://api.github.com/repos/palantir/atlasdb/commits/22bcd4b6ce6d785ef3d1b5da2b9a38f0086c581fjC Shttps://github.com/palantir/atlasdb/commit/22bcd4b6ce6d785ef3d1b5da2b9a38f0086c581fuastats}(totalK 	additionsK 	deletionsK ufiles]}(jcC (6d81d856dcfcfde488238b25a5d5367e13bd6f75filenameWdocs/source/configuration/key_value_service_configs/oracle_key_value_service_config.rststatusmodifiedjC K jC K changesK blob_urlhttps://github.com/palantir/atlasdb/blob/3d065fca2c42ba47f433b7982fedf9f45090353c/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rstraw_urlhttps://github.com/palantir/atlasdb/raw/3d065fca2c42ba47f433b7982fedf9f45090353c/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rstcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rst?ref=3d065fca2c42ba47f433b7982fedf9f45090353cpatchX  @@ -197,3 +197,35 @@ migration as `serviceNameConfiguration.namespaceOverride`.
 
 This migration can be reversed trivially (just by changing the config to reference the now-correct `sid`) if you are
 using embedded timestamp and lock services.
+
+Altering Table To Match Metadata
+--------------------------------
+
+On rare occasions, the metadata in Oracle can mismatch the expected metadata by the service. This can happen as a result
+of a rare race condition on table creation, where one service expects the table to have an overflow column, while
+the other does not.
+
+To resolve, simply add the following configuration to your Oracle ddl configuration.
+
+.. code-block:: yaml
+
+    atlasdb:
+      keyValueService:
+        type: relational
+        ddl:
+          type: oracle
+          alterTablesOrMetadataToMatchAndIKnowWhatIAmDoing:
+              - namespace:
+                  name: <namespace>
+                tablename: <table-name>
+
+Note: Table names are case sensitive.
+
+Generally speaking the operation is safe to perform, although it's on the operator to determine what the side
+effects are. For example, if the issue arose as two services are configured to use this table, but only one is
+performing table mapping, then it is expected that this could break one of the services. However, that condition
+still satisfies the status quo, thus it's on the configurator to determine if this change is safe to make.
+
+Although the alter action is idempotent, it is recommended to remove the configuration after it has ran. Check the logs
+for ``Altering table to have overflow column to match metadata.`` and that there were no error logs printed to ensure that
+has successfully ran.
\ No newline at end of fileuau(7133433001f48067ce095ad21645e9fcaa9562c9}(sha(7133433001f48067ce095ad21645e9fcaa9562c9node_idEC_kwDOAjP5fdoAKDcxMzM0MzMwMDFmNDgwNjdjZTA5NWFkMjE2NDVlOWZjYWE5NTYyYzkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T13:46:10Zu	committer}(jC 
Ahmed AlouanejC aalouane@palantir.comjC 2023-05-15T13:46:10ZumessageMRevert "final"

This reverts commit 1523b549ee1405f7ed75b72333658bd8a7587d24.tree}(jC (89c14216cfd8f4310b0e9584e0465b33549d0e45url`https://api.github.com/repos/palantir/atlasdb/git/trees/89c14216cfd8f4310b0e9584e0465b33549d0e45ujC bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7133433001f48067ce095ad21645e9fcaa9562c9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiN6QACgkQPlMHVIT1
yhqDaggAoEAJOri0Go4QZJdYhMM/rZd2lKT/XU+6qNm8ZxRlb85EGcXh3huJwzQ0
dBrMFR44DmzGUI/ix6F1Kv1QXwuMmhbJAD8a4LJGvJ+LDQ8ApHMJ4IMyiBzrAZ1r
EYlwh33ZHtxRrH9jzCo80wAjGVdcZpsEJGBTv5C9J81i2tAiULryic4UNp1c/K8S
uBaLoJHCHafz55GIR5+X8bHjnDiIoTKk/Zde+zqEj14hISpSp4gmMMvIC47UTYMx
HGUNUXf2ICl0JHVDB32hUNnF4uGf6QkejsYgd8oxsIGr8cbrJ+9kK3vFTDvGlfF1
YYmKojxxyfZgEFPzGgCQf+6NY4BiRg==
=J1fZ
-----END PGP SIGNATURE-----payloadX,  tree 89c14216cfd8f4310b0e9584e0465b33549d0e45
parent 1523b549ee1405f7ed75b72333658bd8a7587d24
author Ahmed Alouane <aalouane@palantir.com> 1684158370 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684158370 +0100

Revert "final"

This reverts commit 1523b549ee1405f7ed75b72333658bd8a7587d24.
uujC ^https://api.github.com/repos/palantir/atlasdb/commits/7133433001f48067ce095ad21645e9fcaa9562c9html_urlShttps://github.com/palantir/atlasdb/commit/7133433001f48067ce095ad21645e9fcaa9562c9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7133433001f48067ce095ad21645e9fcaa9562c9/commentsjC }(loginergo14idJjC MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jC #https://api.github.com/users/ergo14j D https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujC }(jD ergo14jD JjC MDQ6VXNlcjMwOTAzNzM2j	D 4https://avatars.githubusercontent.com/u/30903736?v=4jD h5jC #https://api.github.com/users/ergo14j D https://github.com/ergo14jD -https://api.github.com/users/ergo14/followersjD :https://api.github.com/users/ergo14/following{/other_user}jD 3https://api.github.com/users/ergo14/gists{/gist_id}jD :https://api.github.com/users/ergo14/starred{/owner}{/repo}jD 1https://api.github.com/users/ergo14/subscriptionsjD (https://api.github.com/users/ergo14/orgsjD )https://api.github.com/users/ergo14/reposjD 4https://api.github.com/users/ergo14/events{/privacy}jD 3https://api.github.com/users/ergo14/received_eventsj D Userj"D uparents]}(jC (1523b549ee1405f7ed75b72333658bd8a7587d24jC ^https://api.github.com/repos/palantir/atlasdb/commits/1523b549ee1405f7ed75b72333658bd8a7587d24j D Shttps://github.com/palantir/atlasdb/commit/1523b549ee1405f7ed75b72333658bd8a7587d24uastats}(totalK	additionsK	deletionsKufiles]}(jC (db4246d93de7bbe6888ac4e494dc3ced59fb6d1dfilename.circleci/config.ymlstatusmodifiedj<D Kj=D KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/7133433001f48067ce095ad21645e9fcaa9562c9/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/7133433001f48067ce095ad21645e9fcaa9562c9/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=7133433001f48067ce095ad21645e9fcaa9562c9patchX  @@ -103,7 +103,7 @@ jobs:
     docker: [{ image: 'busybox:1.34.1' }]
     resource_class: small
     steps:
-      - run: {command: echo "No-op as we require a workflow with the name 'test'."}
+      - run: {command: echo "Ran all required tests successfully"}
 
   deploy:
     docker:
@@ -166,9 +166,17 @@ workflows:
             tags:
               only: /.*/
       - test:
-          # This doesn't require anything in reality as it is a no-op, just avoiding new containers spin-up if possible.
-          requires: [build, test-no-tl]
+          requires: [test-tl, test-no-tl]
           filters:
+            branches:
+              only: /(tlmete.*|develop)/
+            tags:
+              only: /.*/
+      - test:
+          requires: [test-no-tl]
+          filters:
+            branches:
+              ignore: /(tlmete.*|develop)/
             tags:
               only: /.*/
       - trial-publish:uau(6115296abf1135b25eb7e90cd17d8c65bfee1cbc}(sha(6115296abf1135b25eb7e90cd17d8c65bfee1cbcnode_idEC_kwDOAjP5fdoAKDYxMTUyOTZhYmYxMTM1YjI1ZWI3ZTkwY2QxN2Q4YzY1YmZlZTFjYmMcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-03-31T21:48:49Zu	committer}(jYD Patrick Koenigj[D pkoenig10@gmail.comj]D 2023-03-31T21:48:52ZumessageImprove DB KVS default configtree}(jQD (a1f6b7372f574b33aceb0f100c1907128440fd25url`https://api.github.com/repos/palantir/atlasdb/git/trees/a1f6b7372f574b33aceb0f100c1907128440fd25ujiD bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6115296abf1135b25eb7e90cd17d8c65bfee1cbc
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAAhcAAAAHc3NoLXJzYQAAAAMBAAEAAAIBAOLBVI00yZaP7395xCyqzy
aD/kgGj5GS8qP2f4Q0hM5gFbEYaTLwKvZTgcFMKJEw/3tOlCyuFoQChwrZ+YjoX3ZcTdIs
QnoGeYlwKUGY4x3QXLvrURZtGaXWggfEc+UKHT3mnGXM9FpX9CSdpTopg7KhxDlx3/Jv90
zimWImFPxKFUSZrhVGqD8qAQibPTFDs+JhK0cqllhsvm0PR9PilTde++NKLCQUNrRJi2+f
BjLBjJMJshRwXkkM6J8hDvyjiLJz4Bg9hq+5QLnO1fYaetU7aP4bsCs6ix5pyD4WO6cr6T
SMCtJThNdHvOVuOaCCHBOQrdVGjbMH9lmW5FL5oMsTZ86p24rZOFD9ly44mMJWYGk6F81y
japNgWorhR0tSZMSZPVlisGQQsRnsqQidrVPe3IR4MTUsKx39CAutxgk6N+BseeByXKw+H
aBKmd75u/FU7IoxEbXX7EuDq2TCtUmujYXiY7SY4T0DQDjNpHq+vrEUsKyi5mbRTdNahvt
eFWJU5UIwO7Ao+HdsqfUjGN6zw2HSkiHEG3iOj5OY+byI/ykoYGMQ40w6w7shCt7XDbUXa
/kGqIyicthBGQ7Y4/TtquH5Ag2UPSlN9C0Rt/ZBolkTfoLz4wCtTMzd7hdixs5yuocVTn7
njhSYSXRyRbbVcF/q56x1NAAsVOe9epxAAAAA2dpdAAAAAAAAAAGc2hhNTEyAAACFAAAAA
xyc2Etc2hhMi01MTIAAAIAiFu7DXRy+62A/bsgoYr9Sli9EAa9y5FnNqzq0hzEaiZnxw54
r46VZHg0tQPp9EZPDeF1wqvbduaQC+TN9jDQTkpWmCwrwO8wv/mnDmA49bFf675Vw7aQgY
c4hCUJ7Y/raK+L+wPfs8NNZHjpqsNYB19QvF685U6XhNMeN5yOYkUaj3NSgFw8CH0Ug76h
19u6cYIbFnupNtG4U/w6tDfJ8vfcNdyLtNdxdt9/KhbREBGiU5rdTJrXF02yc2MR1RgQKK
342mnMnDau/byrSXG10iXhOM8TNKYatrUKEq3zPTZksN8dnGp2Fd9Y0y92O3tcui8n2QfM
s+VLYOsjGRlCXcRiWJx6GM1SGzc4covANz49NPwtA8/veovAyYXTmo1gTuj+eKSk8sbk5d
GyHSLDCFrBGvUIrERsVvIT1GPwRj6MZVAXDmxzG0ETnNR44LjbTAeab3AvYlcVd/GEKtuE
oRyz0U9h20FxpEWOLM5rQ6tD3HBOcfKh2mD5lIPEDU0yEU3TQYk1wPs19Vpt8nOdLmlosn
UTtiAinkYHTyHK29eIdMNF7svUnmDsHgoQYaqNDKwQfbkrCzg1849hgs5NKpEjcTm2HDDu
7hcIpiDZJaX8W2WPiQY6Hxhd1ZhgEpoCDxwqrN5HIi2XJgVcLX/NLVBftaADfHXSvux0Ww
bDubI=
-----END SSH SIGNATURE-----payloadtree a1f6b7372f574b33aceb0f100c1907128440fd25
parent 278dfd0688276188ce1df0c2201b51e9e6bfccb2
author Patrick Koenig <pkoenig10@gmail.com> 1680299329 -0700
committer Patrick Koenig <pkoenig10@gmail.com> 1680299332 -0700

Improve DB KVS default config
uujiD ^https://api.github.com/repos/palantir/atlasdb/commits/6115296abf1135b25eb7e90cd17d8c65bfee1cbchtml_urlShttps://github.com/palantir/atlasdb/commit/6115296abf1135b25eb7e90cd17d8c65bfee1cbccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6115296abf1135b25eb7e90cd17d8c65bfee1cbc/commentsjWD }(login	pkoenig10idJLvP jSD MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5jiD &https://api.github.com/users/pkoenig10jwD https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminuj_D }(j|D 	pkoenig10j~D JLvP jSD MDQ6VXNlcjUyNzMxNjQ=jD 3https://avatars.githubusercontent.com/u/5273164?v=4jD h5jiD &https://api.github.com/users/pkoenig10jwD https://github.com/pkoenig10jD 0https://api.github.com/users/pkoenig10/followersjD =https://api.github.com/users/pkoenig10/following{/other_user}jD 6https://api.github.com/users/pkoenig10/gists{/gist_id}jD =https://api.github.com/users/pkoenig10/starred{/owner}{/repo}jD 4https://api.github.com/users/pkoenig10/subscriptionsjD +https://api.github.com/users/pkoenig10/orgsjD ,https://api.github.com/users/pkoenig10/reposjD 7https://api.github.com/users/pkoenig10/events{/privacy}jD 6https://api.github.com/users/pkoenig10/received_eventsjD UserjD uparents]}(jQD (278dfd0688276188ce1df0c2201b51e9e6bfccb2jiD ^https://api.github.com/repos/palantir/atlasdb/commits/278dfd0688276188ce1df0c2201b51e9e6bfccb2jwD Shttps://github.com/palantir/atlasdb/commit/278dfd0688276188ce1df0c2201b51e9e6bfccb2uastats}(totalK	additionsK	deletionsKufiles](}(jQD (5f9eef867594802d5e48b451b3cb25cd53031359filenameZatlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/ConnectionConfig.javastatusmodifiedjD KjD KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/6115296abf1135b25eb7e90cd17d8c65bfee1cbc/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6115296abf1135b25eb7e90cd17d8c65bfee1cbc/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.java?ref=6115296abf1135b25eb7e90cd17d8c65bfee1cbcpatchX  @@ -132,7 +132,7 @@ public String getConnectionPoolName() {
 
     @Value.Default
     public boolean testConnectionBeforeHandout() {
-        return true;
+        return false;
     }
 
     /**
@@ -182,7 +182,7 @@ public HikariConfig getHikariConfig() {
 
         initializeFailTimeoutMillis().ifPresent(config::setInitializationFailTimeout);
 
-        if (getTestQuery() != null && !getTestQuery().isEmpty()) {
+        if (!getTestQuery().isEmpty()) {
             config.setConnectionTestQuery(getTestQuery());
         }
 u}(jQD (e3d31ec8daebb0538c64730dd50ffb35a9fedb1djD `atlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/OracleConnectionConfig.javajD modifiedjD KjD KjD KjD https://github.com/palantir/atlasdb/blob/6115296abf1135b25eb7e90cd17d8c65bfee1cbc/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FOracleConnectionConfig.javajD https://github.com/palantir/atlasdb/raw/6115296abf1135b25eb7e90cd17d8c65bfee1cbc/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FOracleConnectionConfig.javajD https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FOracleConnectionConfig.java?ref=6115296abf1135b25eb7e90cd17d8c65bfee1cbcjD @@ -91,7 +91,7 @@ public String getDriverClass() {
     @Override
     @Value.Default
     public String getTestQuery() {
-        return "";
+        return "SELECT 1 FROM DUAL";
     }
 
     public abstract Optional<String> getSid();ueu(2b17659bd9fc9ccdbe4db99a5577670ec70c4b1d}(sha(2b17659bd9fc9ccdbe4db99a5577670ec70c4b1dnode_idEC_kwDOAjP5fdoAKDJiMTc2NTliZDlmYzljY2RiZTRkYjk5YTU1Nzc2NzBlYzcwYzRiMWQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-19T10:36:24Zu	committer}(jD Jeremy KongjD jkong@palantir.comjD 2023-06-19T10:36:24Zumessageextreme measurestree}(jD (083f544735d143e1b32d6bf766605daba788dd02url`https://api.github.com/repos/palantir/atlasdb/git/trees/083f544735d143e1b32d6bf766605daba788dd02ujD bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2b17659bd9fc9ccdbe4db99a5577670ec70c4b1d
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSQL6kACgkQTLdFKain
zjzc/wf/XUOeRwsQ+VGywsIdyh7YX4mq48CfntE9Ovlpm6NEOhRnA7YCorPFEEKf
3D9p3ATsqKYxuHdVfUuF+u+83hGyhBupBclIhx2u7v8vShn3PML4qJnFzIVshtdz
85oNre9lyCKWZk0FqW95kxJ9puANTH4XjcRJvVAUjmbIuysLU/WLmHBrSsOB0eu3
cR3DsZlLu7gAdHadPGeys242qCQ2GuDGg6KJWSjU3nqwWEjpskdrTAz4NX/Zwy0h
7y5UjNiHsNXUb6VWDOACTdUh2JkQ60yY56fMYBb3HTLcCgZBUqNmgPLbfDEM+kkS
HQKALNwIXpL7eSag1OdibjEshz1DVw==
=+lm3
-----END PGP SIGNATURE-----payloadtree 083f544735d143e1b32d6bf766605daba788dd02
parent 258720aa285766dfa3383ad711f2c49e3a1f7af1
author Jeremy Kong <jkong@palantir.com> 1687170984 +0800
committer Jeremy Kong <jkong@palantir.com> 1687170984 +0800

extreme measures
uujD ^https://api.github.com/repos/palantir/atlasdb/commits/2b17659bd9fc9ccdbe4db99a5577670ec70c4b1dhtml_urlShttps://github.com/palantir/atlasdb/commit/2b17659bd9fc9ccdbe4db99a5577670ec70c4b1dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2b17659bd9fc9ccdbe4db99a5577670ec70c4b1d/commentsjD }(login
jeremyk-91idJZ jD MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jD 'https://api.github.com/users/jeremyk-91jD https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujD }(jD 
jeremyk-91jD JZ jD MDQ6VXNlcjU5NTU1MTA=jD 3https://avatars.githubusercontent.com/u/5955510?v=4jE h5jD 'https://api.github.com/users/jeremyk-91jD https://github.com/jeremyk-91jE 1https://api.github.com/users/jeremyk-91/followersjE >https://api.github.com/users/jeremyk-91/following{/other_user}jE 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j
E >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jE 5https://api.github.com/users/jeremyk-91/subscriptionsjE ,https://api.github.com/users/jeremyk-91/orgsjE -https://api.github.com/users/jeremyk-91/reposjE 8https://api.github.com/users/jeremyk-91/events{/privacy}jE 7https://api.github.com/users/jeremyk-91/received_eventsjE UserjE uparents]}(jD (258720aa285766dfa3383ad711f2c49e3a1f7af1jD ^https://api.github.com/repos/palantir/atlasdb/commits/258720aa285766dfa3383ad711f2c49e3a1f7af1jD Shttps://github.com/palantir/atlasdb/commit/258720aa285766dfa3383ad711f2c49e3a1f7af1uastats}(totalK	additionsK
	deletionsKufiles](}(jD (3742c371dbe50f76fc928ebcde3d846d3b4d4a74filenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj2E Kj3E KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/2b17659bd9fc9ccdbe4db99a5577670ec70c4b1d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2b17659bd9fc9ccdbe4db99a5577670ec70c4b1d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=2b17659bd9fc9ccdbe4db99a5577670ec70c4b1dpatchX	  @@ -28,11 +28,10 @@
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.atlasdb.workload.background.BackgroundCassandraJob;
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
-import com.palantir.atlasdb.workload.invariant.DurableWritesInvariantMetricReporter;
-import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
 import com.palantir.atlasdb.workload.resource.AntithesisCassandraSidecarResource;
 import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
@@ -256,13 +255,19 @@ private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator
                         workflowConfig.tableConfiguration().tableName(),
                         workflowConfig.tableConfiguration().isolationLevel()),
                 Set.of());
+        transactionStore.readWrite(txn -> {
+            txn.write(
+                    workflowConfig.tableConfiguration().tableName(),
+                    ImmutableWorkloadCell.of(1, 2), // single row, second column
+                    1);
+        });
         return WorkflowAndInvariants.builder()
                 .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
                         transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
-                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
-                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
-                        DurableWritesMetrics.of(taggedMetricRegistry)))
-                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                //                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                //                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
+                //                        DurableWritesMetrics.of(taggedMetricRegistry)))
+                //                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
                 .build();
     }
     //u}(jD (a3788623f3ba4a77c25378315372562ed0ab3ddcj8E aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javaj:E modifiedj2E K j3E Kj<E Kj=E https://github.com/palantir/atlasdb/blob/2b17659bd9fc9ccdbe4db99a5577670ec70c4b1d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj?E https://github.com/palantir/atlasdb/raw/2b17659bd9fc9ccdbe4db99a5577670ec70c4b1d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajAE https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=2b17659bd9fc9ccdbe4db99a5577670ec70c4b1djCE X  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.google.common.util.concurrent.ListeningExecutorService;
-import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;u}(jD (f30a07745e76c1b3dbba9d95767b8247b82211b2j8E latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javaj:E modifiedj2E Kj3E Kj<E Kj=E https://github.com/palantir/atlasdb/blob/2b17659bd9fc9ccdbe4db99a5577670ec70c4b1d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj?E https://github.com/palantir/atlasdb/raw/2b17659bd9fc9ccdbe4db99a5577670ec70c4b1d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javajAE https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=2b17659bd9fc9ccdbe4db99a5577670ec70c4b1djCE X  @@ -68,13 +68,7 @@ public static Workflow createSingleRowTwoCell(
                 store,
                 (txnStore, index) -> run(txnStore, index, singleRowTwoCellsWorkflowConfiguration),
                 singleRowTwoCellsWorkflowConfiguration,
-                executionExecutor,
-                (st, idx) -> store.readWrite(txn -> txn.write(
-                        singleRowTwoCellsWorkflowConfiguration
-                                .tableConfiguration()
-                                .tableName(),
-                        SECOND_CELL,
-                        1)));
+                executionExecutor);
     }
 
     private static Optional<WitnessedTransaction> run(u}(jD (ead93f92b68277fdc63c3d4be1a105b70cbdb714j8E *scripts/circle-ci/publish-to-antithesis.shj:E modifiedj2E Kj3E Kj<E Kj=E https://github.com/palantir/atlasdb/blob/2b17659bd9fc9ccdbe4db99a5577670ec70c4b1d/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj?E https://github.com/palantir/atlasdb/raw/2b17659bd9fc9ccdbe4db99a5577670ec70c4b1d/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shjAE https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=2b17659bd9fc9ccdbe4db99a5577670ec70c4b1djCE X  @@ -41,5 +41,5 @@ docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${1}
 
 if [[ "$1" = "config-check" ]]; then
   echo "Triggering simulation on Antithesis via the config-check webhook."
-  curl -v -u "palantir:${ANTITHESIS_WEBHOOK_PASSWORD}" -X POST https://palantir.antithesis.com/api/v1/launch_experiment/palantir__configcheck__minimal
+  curl -v -u "palantir:${ANTITHESIS_WEBHOOK_PASSWORD}" -X POST https://palantir.antithesis.com/api/v1/launch_experiment/palantir__bravo__baseline
 fi
\ No newline at end of fileueu(08dcde258eba0cce07257b5eff8ed3e6be122a34}(sha(08dcde258eba0cce07257b5eff8ed3e6be122a34node_idEC_kwDOAjP5fdoAKDA4ZGNkZTI1OGViYTBjY2UwNzI1N2I1ZWZmOGVkM2U2YmUxMjJhMzQcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-20T15:24:11Zu	committer}(jgE Lucas MeirelesjiE meireles31@msn.comjkE 2023-06-20T15:24:11Zumessage/make method simpler and add descriptive commenttree}(j_E (e6f1b0acbeeb0af3a47ce20b5c2604b4c3ed3f39url`https://api.github.com/repos/palantir/atlasdb/git/trees/e6f1b0acbeeb0af3a47ce20b5c2604b4c3ed3f39ujwE bhttps://api.github.com/repos/palantir/atlasdb/git/commits/08dcde258eba0cce07257b5eff8ed3e6be122a34
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSRxJsACgkQJd22kJ7J
GizkTwgA2yE/ZgRTppVKJ0O1I/xOa6jgrYEF8qgHnprnlgXBEJNV/LFscjRVtuS1
gsV2lizJvnIaWWwowMGxQddSmwYulvf6vPWQeCywt538Q5RH5ugLvWrDIORAv4Em
DSJVlBUOhDU18m9QQYWUfUHzy//oYwqzbF598OD4gHbgBh8aqYR15AJV/0ihkcyn
KN6JcCpeqqViDdcabZwkyqCa/4yKjS8V7f7bB72ZnHATyMPcvZVc+B41ZdqWbRBQ
kr0cehol+hs5k1j2hwir2pcKSzKYlaty85rW1fC3yEGE2V26lMTfn/sRWGRVQ/GV
yMbFeH818KjtScai6eMp4/A5jBEERA==
=6JJj
-----END PGP SIGNATURE-----payloadX
  tree e6f1b0acbeeb0af3a47ce20b5c2604b4c3ed3f39
parent 1fbd27c08578ca8e68f60b2d95e34f34ae7fc7a6
author Lucas Meireles <meireles31@msn.com> 1687274651 +0100
committer Lucas Meireles <meireles31@msn.com> 1687274651 +0100

make method simpler and add descriptive comment
uujwE ^https://api.github.com/repos/palantir/atlasdb/commits/08dcde258eba0cce07257b5eff8ed3e6be122a34html_urlShttps://github.com/palantir/atlasdb/commit/08dcde258eba0cce07257b5eff8ed3e6be122a34comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/08dcde258eba0cce07257b5eff8ed3e6be122a34/commentsjeE }(loginLucasIMEidJg jaE MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jwE %https://api.github.com/users/LucasIMEjE https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujmE }(jE LucasIMEjE Jg jaE MDQ6VXNlcjY3ODczMTE=jE 3https://avatars.githubusercontent.com/u/6787311?v=4jE h5jwE %https://api.github.com/users/LucasIMEjE https://github.com/LucasIMEjE /https://api.github.com/users/LucasIME/followersjE <https://api.github.com/users/LucasIME/following{/other_user}jE 5https://api.github.com/users/LucasIME/gists{/gist_id}jE <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jE 3https://api.github.com/users/LucasIME/subscriptionsjE *https://api.github.com/users/LucasIME/orgsjE +https://api.github.com/users/LucasIME/reposjE 6https://api.github.com/users/LucasIME/events{/privacy}jE 5https://api.github.com/users/LucasIME/received_eventsjE UserjE uparents]}(j_E (1fbd27c08578ca8e68f60b2d95e34f34ae7fc7a6jwE ^https://api.github.com/repos/palantir/atlasdb/commits/1fbd27c08578ca8e68f60b2d95e34f34ae7fc7a6jE Shttps://github.com/palantir/atlasdb/commit/1fbd27c08578ca8e68f60b2d95e34f34ae7fc7a6uastats}(totalK!	additionsK	deletionsKufiles]}(j_E (44f76df117a1efb377699cec60b022df1206d34afilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedjE KjE KchangesK!blob_urlhttps://github.com/palantir/atlasdb/blob/08dcde258eba0cce07257b5eff8ed3e6be122a34/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/08dcde258eba0cce07257b5eff8ed3e6be122a34/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=08dcde258eba0cce07257b5eff8ed3e6be122a34patchX
  @@ -1161,28 +1161,33 @@ protected <K extends Exception> void batchAcceptSizeHint(
         };
     }
 
+    /*
+    We don't have any guarantees that reads and commit will be executed in a single threaded manner, so we could in
+    theory return wrong results if we perform async reads while trying to commit. But our protocol doesn't aim to
+    support such case, and we're OK with having undefined behaviour in these occasions.
+
+    Example of such case:
+       - We're reading a thoroughly swept table with no configuration for immediate validation on reads.
+       - An async range scan is performed, but hasn't started executing yet.
+       - We start commit round on the main thread
+       - Commit doesn't check for immutable timestamp lock because
+           readsRequiringImmutableTimestampValidationAtCommitRound is empty
+       - We finish the range scan on the second thread, but validation is skipped due to the configuration and it adds
+            a value to readsRequiringImmutableTimestampValidationAtCommitRound set, but that is never checked due to
+            commit round having already happened.
+       - We then risk having returned inconsistent values in this transaction, since values could've been swept under us
+    */
     private void validatePreCommitRequirementsOnReadIfNecessary(
             TableReference tableRef, long timestamp, boolean allPossibleCellsReadAndNonEmpty) {
-        UUID readId = UUID.randomUUID();
-        if (!allPossibleCellsReadAndNonEmpty) {
-            readsRequiringImmutableTimestampValidationAtCommitRound.add(readId);
-        }
-
         if (isValidationNecessaryOnReads(tableRef, allPossibleCellsReadAndNonEmpty)) {
             throwIfPreCommitRequirementsNotMet(null, timestamp);
-
-            // It may not be present, but that's OK.
-            readsRequiringImmutableTimestampValidationAtCommitRound.remove(readId);
+        } else if (!allPossibleCellsReadAndNonEmpty) {
+            readsRequiringImmutableTimestampValidationAtCommitRound.add(UUID.randomUUID());
         }
     }
 
     private void validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(TableReference tableRef, long timestamp) {
-        UUID readId = UUID.randomUUID();
-        readsRequiringImmutableTimestampValidationAtCommitRound.add(readId);
-        if (isValidationNecessaryOnReads(tableRef, false)) {
-            throwIfPreCommitRequirementsNotMet(null, timestamp);
-            readsRequiringImmutableTimestampValidationAtCommitRound.remove(readId);
-        }
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, timestamp, false);
     }
 
     private boolean isValidationNecessaryOnReads(TableReference tableRef, boolean allPossibleCellsReadAndNonEmpty) {uau(35493b67271b60af4acdfd4dc03dcab0beca32d9}(sha(35493b67271b60af4acdfd4dc03dcab0beca32d9node_idEC_kwDOAjP5fdoAKDM1NDkzYjY3MjcxYjYwYWY0YWNkZmQ0ZGMwM2RjYWIwYmVjYTMyZDkcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-08T10:44:49Zu	committer}(jE 
Sam KramerjE skramer@palantir.comjE 2023-08-08T10:44:49Zumessageadd integ testtree}(jE (1cb2185ec67c82724ee877b661d37dd3662e3aa5url`https://api.github.com/repos/palantir/atlasdb/git/trees/1cb2185ec67c82724ee877b661d37dd3662e3aa5ujE bhttps://api.github.com/repos/palantir/atlasdb/git/commits/35493b67271b60af4acdfd4dc03dcab0beca32d9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTSHKEACgkQmPPOpKR4
XS3ogQf/Uyv/Ad7ibi9Xwm1tsFIciTexPsX4ycYaaJLVisiTVmsxuOFhkeqOGGLa
jPUEjNvcoDV26yOzAktiUhCHV0fH8idNbWLjzFYG9Zuyq8UhoddQrsKSXLRpxY5h
tXyjfeoUg+Oa/15vkYVMRMJgRl9PanzII92JXW3hAGnUK5Q92r1dwr/9bCHrBcrT
pJ6gvT4+Rla+yjW5Ff8zXTgJJeuAkySOi0H2YaGnDkoup0wMG+D64EB4fp4JQL9Y
cJ/9ntsD1OjRiS23FvIq1LOuoBiB6ZjzvW7KnNENBjtdBWWrblTfHhIcqptlNXRR
LGYSZOPjX/wGJzvj2SYCngXnBSZW2A==
=JUrB
-----END PGP SIGNATURE-----payloadtree 1cb2185ec67c82724ee877b661d37dd3662e3aa5
parent d6e774d1d20c6a0b20abf9fe74db2fd3c42f4050
author Sam Kramer <skramer@palantir.com> 1691491489 +0100
committer Sam Kramer <skramer@palantir.com> 1691491489 +0100

add integ test
uujE ^https://api.github.com/repos/palantir/atlasdb/commits/35493b67271b60af4acdfd4dc03dcab0beca32d9html_urlShttps://github.com/palantir/atlasdb/commit/35493b67271b60af4acdfd4dc03dcab0beca32d9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/35493b67271b60af4acdfd4dc03dcab0beca32d9/commentsjE }(login
Sam-KrameridJ^2_ jE MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jE 'https://api.github.com/users/Sam-KramerjE https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujE }(jF 
Sam-KramerjF J^2_ jE MDQ6VXNlcjYyMzg4MTQ=jF 3https://avatars.githubusercontent.com/u/6238814?v=4jF h5jE 'https://api.github.com/users/Sam-KramerjE https://github.com/Sam-Kramerj
F 1https://api.github.com/users/Sam-Kramer/followersjF >https://api.github.com/users/Sam-Kramer/following{/other_user}jF 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jF >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jF 5https://api.github.com/users/Sam-Kramer/subscriptionsjF ,https://api.github.com/users/Sam-Kramer/orgsjF -https://api.github.com/users/Sam-Kramer/reposjF 8https://api.github.com/users/Sam-Kramer/events{/privacy}jF 7https://api.github.com/users/Sam-Kramer/received_eventsjF UserjF uparents]}(jE (d6e774d1d20c6a0b20abf9fe74db2fd3c42f4050jE ^https://api.github.com/repos/palantir/atlasdb/commits/d6e774d1d20c6a0b20abf9fe74db2fd3c42f4050jE Shttps://github.com/palantir/atlasdb/commit/d6e774d1d20c6a0b20abf9fe74db2fd3c42f4050uastats}(totalKZ	additionsKY	deletionsKufiles](}(jE (c9867fbf52c3c12cb98a279cf427415087a88535filenametimelock-server/build.gradlestatusmodifiedj8F Kj9F K changesKblob_urlphttps://github.com/palantir/atlasdb/blob/35493b67271b60af4acdfd4dc03dcab0beca32d9/timelock-server%2Fbuild.gradleraw_urlohttps://github.com/palantir/atlasdb/raw/35493b67271b60af4acdfd4dc03dcab0beca32d9/timelock-server%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fbuild.gradle?ref=35493b67271b60af4acdfd4dc03dcab0beca32d9patchX  @@ -195,6 +195,7 @@ dependencies {
     integTestImplementation 'com.palantir.tritium:tritium-registry'
     integTestImplementation 'io.dropwizard.metrics:metrics-core'
     integTestImplementation 'org.awaitility:awaitility'
+    integTestImplementation 'one.util:streamex'
     integTestImplementation project(':atlasdb-api')
     integTestImplementation project(':atlasdb-client')
     integTestImplementation project(':atlasdb-commons')u}(jE (f1046621b911f94722fa598a214cc695f0637400j>F ctimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchEventIntegrationTest.javaj@F modifiedj8F KXj9F KjBF KYjCF https://github.com/palantir/atlasdb/blob/35493b67271b60af4acdfd4dc03dcab0beca32d9/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javajEF https://github.com/palantir/atlasdb/raw/35493b67271b60af4acdfd4dc03dcab0beca32d9/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javajGF https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.java?ref=35493b67271b60af4acdfd4dc03dcab0beca32d9jIF X  @@ -26,6 +26,7 @@
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Iterables;
 import com.google.common.util.concurrent.Uninterruptibles;
+import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.AtlasLockDescriptorUtils;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.Namespace;
@@ -65,12 +66,17 @@
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
+import java.util.Random;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.ThreadLocalRandom;
+import java.util.function.Function;
+import java.util.function.Predicate;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import java.util.stream.Stream;
+import one.util.streamex.EntryStream;
 import org.junit.Before;
 import org.junit.ClassRule;
 import org.junit.Test;
@@ -391,6 +397,87 @@ public void metadataFilteredAccordingToWatches() {
                         );
     }
 
+    private static ChangeMetadata generateRandomChangeMetadata(Random random) {
+        int index = random.nextInt(4);
+        switch (index) {
+            case 0:
+                return ChangeMetadata.created(PtBytes.toBytes(random.nextLong()));
+            case 1:
+                return ChangeMetadata.unchanged();
+            case 2:
+                return ChangeMetadata.updated(PtBytes.toBytes(random.nextLong()), PtBytes.toBytes(random.nextLong()));
+            case 3:
+                return ChangeMetadata.deleted(PtBytes.toBytes(random.nextLong()));
+        }
+        return ChangeMetadata.unchanged();
+    }
+
+    private static Map<TableReference, Map<Cell, ValueAndChangeMetadata>> generateValues(
+            int numberOfRowsPerTransaction, int numberOfCellsPerRow, Random random) {
+        List<Cell> cells = IntStream.range(0, numberOfRowsPerTransaction)
+                .mapToObj(rowIndex -> IntStream.range(0, numberOfCellsPerRow)
+                        .mapToObj(cellIndex ->
+                                Cell.create(PtBytes.toBytes("row" + rowIndex), PtBytes.toBytes("col" + cellIndex))))
+                .flatMap(Function.identity())
+                .collect(Collectors.toList());
+
+        return cells.stream()
+                .collect(Collectors.toMap(
+                        cell -> (random.nextBoolean()) ? TABLE_REF : TABLE_2_REF,
+                        cell -> ImmutableMap.of(
+                                cell,
+                                ValueAndChangeMetadata.of(
+                                        PtBytes.toBytes(random.nextInt()), generateRandomChangeMetadata(random)))));
+    }
+
+    private static LockRequestMetadata getLockRequestForValues(
+            Map<TableReference, Map<Cell, ValueAndChangeMetadata>> values, Predicate<TableReference> isWatched) {
+        ImmutableMap.Builder<LockDescriptor, ChangeMetadata> locks = ImmutableMap.builder();
+        for (Map.Entry<TableReference, Map<Cell, ValueAndChangeMetadata>> entry : values.entrySet()) {
+            for (Map.Entry<Cell, ValueAndChangeMetadata> cellEntry :
+                    entry.getValue().entrySet()) {
+                if (isWatched.test(entry.getKey())) {
+                    locks.put(
+                            getDescriptor(entry.getKey(), cellEntry.getKey()),
+                            cellEntry.getValue().metadata());
+                }
+            }
+        }
+        return LockRequestMetadata.of(locks.build());
+    }
+
+    @Test
+    public void performRandomWatches() {
+        LockWatchVersion currentVersion = getCurrentVersion();
+
+        long seed = System.currentTimeMillis();
+        int numberOfCellsPerRow = 100;
+        int numberOfRowsPerTransaction = 10;
+
+        Random random = new Random(seed);
+
+        ImmutableList.Builder<LockRequestMetadata> expectedMetadataBuilder = ImmutableList.builder();
+        for (int idx = 0; idx < 3; idx++) {
+            Map<TableReference, Map<Cell, ValueAndChangeMetadata>> values =
+                    generateValues(numberOfRowsPerTransaction, numberOfCellsPerRow, random);
+            expectedMetadataBuilder.add(getLockRequestForValues(values, TABLE_REF::equals));
+            EntryStream.of(values)
+                    .forEach(entry -> performTransactionTaskLockingAndUnlockingCells(txn -> {
+                        txn.putWithMetadata(entry.getKey(), entry.getValue());
+                        return null;
+                    }));
+        }
+
+        OpenTransaction fourthTxn = startSingleTransaction();
+        TransactionsLockWatchUpdate update = getUpdateForTransactions(Optional.of(currentVersion), fourthTxn);
+
+        List<Optional<LockRequestMetadata>> expectedMetadata =
+                expectedMetadataBuilder.build().stream().map(Optional::of).collect(Collectors.toList());
+
+        assertThat(LockWatchIntegrationTestUtilities.extractMetadata(update.events()))
+                .containsExactlyElementsOf(expectedMetadata);
+    }
+
     private Runnable performWriteTransactionThatBlocksAfterLockingCells() {
         CountDownLatch endOfTest = new CountDownLatch(1);
         CountDownLatch inCommitBlock = new CountDownLatch(1);
@@ -512,7 +599,7 @@ private Set<LockDescriptor> getDescriptors(TableReference tableRef, Cell... cell
         return Stream.of(cells).map(cell -> getDescriptor(tableRef, cell)).collect(Collectors.toSet());
     }
 
-    private LockDescriptor getDescriptor(TableReference tableRef, Cell cell) {
+    private static LockDescriptor getDescriptor(TableReference tableRef, Cell cell) {
         return AtlasCellLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName());
     }
 ueu(de0dabc1540a68e247bc016884c4e2681764f596}(sha(de0dabc1540a68e247bc016884c4e2681764f596node_idEC_kwDOAjP5fdoAKGRlMGRhYmMxNTQwYTY4ZTI0N2JjMDE2ODg0YzRlMjY4MTc2NGY1OTYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-15T15:56:07Zu	committer}(j]F Jeremy Kongj_F jkong@palantir.comjaF 2023-06-15T15:56:07ZumessageHMerge remote-tracking branch 'origin/develop' into roomba/update-conjuretree}(jUF (df1613bb95cf308601f9ccdff2a500c985291b47url`https://api.github.com/repos/palantir/atlasdb/git/trees/df1613bb95cf308601f9ccdff2a500c985291b47ujmF bhttps://api.github.com/repos/palantir/atlasdb/git/commits/de0dabc1540a68e247bc016884c4e2681764f596
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSLNJkACgkQTLdFKain
zjwTNQf9HNV12X9PZ2UpD0t3OrQYtyJrUfEC0gOGIEzzOJY7Y3I75OgQ/UwWq7ee
WVmWEAhzodSO8NRSA/QBiCNIQxLehZ2qL8c5Cxo/pIsPgp6keipSPxmp4QgG1myT
j0EgZXncxGzpcMU1njKJU0+CdrEhz0GiOEauNIoqKE2M1J9vugKF2QYjzuk21JGF
cvTnpzvZ/TM2hcnmGSY6brueaS4FVB6tvpm7JUGnORKFX6XaBJs78ZWMTvofQqPX
FHi7Oz8Rc5KLuTY4Znp1vhKi6VphWP5mfqyHgMWMUYbjg4wxbV77moBFfW+EF/TA
SUmTosp/I8PIT3G88HfI988LKHJx3g==
=P6kA
-----END PGP SIGNATURE-----payloadXM  tree df1613bb95cf308601f9ccdff2a500c985291b47
parent 7798b4ff8448588fecb6aa32284dd0ed8819f7d1
parent f73d7daa353c1ebec707abfc1f6bf19a5a03066b
author Jeremy Kong <jkong@palantir.com> 1686844567 +0800
committer Jeremy Kong <jkong@palantir.com> 1686844567 +0800

Merge remote-tracking branch 'origin/develop' into roomba/update-conjure
uujmF ^https://api.github.com/repos/palantir/atlasdb/commits/de0dabc1540a68e247bc016884c4e2681764f596html_urlShttps://github.com/palantir/atlasdb/commit/de0dabc1540a68e247bc016884c4e2681764f596comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/de0dabc1540a68e247bc016884c4e2681764f596/commentsj[F }(login
jeremyk-91idJZ jWF MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jmF 'https://api.github.com/users/jeremyk-91j{F https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujcF }(jF 
jeremyk-91jF JZ jWF MDQ6VXNlcjU5NTU1MTA=jF 3https://avatars.githubusercontent.com/u/5955510?v=4jF h5jmF 'https://api.github.com/users/jeremyk-91j{F https://github.com/jeremyk-91jF 1https://api.github.com/users/jeremyk-91/followersjF >https://api.github.com/users/jeremyk-91/following{/other_user}jF 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jF >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jF 5https://api.github.com/users/jeremyk-91/subscriptionsjF ,https://api.github.com/users/jeremyk-91/orgsjF -https://api.github.com/users/jeremyk-91/reposjF 8https://api.github.com/users/jeremyk-91/events{/privacy}jF 7https://api.github.com/users/jeremyk-91/received_eventsjF UserjF uparents](}(jUF (7798b4ff8448588fecb6aa32284dd0ed8819f7d1jmF ^https://api.github.com/repos/palantir/atlasdb/commits/7798b4ff8448588fecb6aa32284dd0ed8819f7d1j{F Shttps://github.com/palantir/atlasdb/commit/7798b4ff8448588fecb6aa32284dd0ed8819f7d1u}(jUF (f73d7daa353c1ebec707abfc1f6bf19a5a03066bjmF ^https://api.github.com/repos/palantir/atlasdb/commits/f73d7daa353c1ebec707abfc1f6bf19a5a03066bj{F Shttps://github.com/palantir/atlasdb/commit/f73d7daa353c1ebec707abfc1f6bf19a5a03066buestats}(totalM2	additionsMD*	deletionsMufiles](}(jUF (869937b7996e6e9b9e16721bba28e199b9d1dd82filename,.baseline/checkstyle/custom-suppressions.xmlstatusmodifiedjF K jF KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/.baseline%2Fcheckstyle%2Fcustom-suppressions.xmlraw_urlhttps://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/.baseline%2Fcheckstyle%2Fcustom-suppressions.xmlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/.baseline%2Fcheckstyle%2Fcustom-suppressions.xml?ref=de0dabc1540a68e247bc016884c4e2681764f596patchXT  @@ -26,7 +26,6 @@
     <suppress files=".*" checks="RedundantModifier"/>
     <suppress files=".*" checks="SummaryJavadocCheck"/>
     <suppress files=".*" checks="VisibilityModifier"/>
-    <suppress files=".*" id="BanGuavaCaches"/>
 
     <!-- Certain AtlasDB projects are ignored. -->
     <suppress files="atlasdb-client/*" checks="."/>u}(jUF (a31b7819db3f6f91597edd144957cf18b2f7a613jF .circleci/config.ymljF modifiedjF K.jF K
jF K;jF hhttps://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/.circleci%2Fconfig.ymljF ghttps://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/.circleci%2Fconfig.ymljF zhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -1,10 +1,10 @@
-version: 2
+version: 2.1
 
 jobs:
   build:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: xlarge
+    resource_class: 2xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
@@ -17,7 +17,7 @@ jobs:
           key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
 
       - run: git tag -l | xargs git tag -d && git fetch -t # ensure all tags are fetched and up-to-date
-      - run: ./gradlew --profile --parallel --stacktrace classes testClasses
+      - run: ./gradlew --scan --profile --parallel --stacktrace classes testClasses
 
       - save_cache:
           key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
@@ -31,8 +31,10 @@ jobs:
           root: .
           paths: [ . ]
 
-  test:
-    parallelism: 12
+  test-suite:
+    parameters:
+      suite:
+        type: integer
     machine:
       image: ubuntu-2004:202111-02
     resource_class: xlarge
@@ -66,7 +68,7 @@ jobs:
               curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
               sudo ln -s /opt/java/zulu*/ /opt/java8
       - run:
-          command: ./scripts/circle-ci/run-circle-tests.sh
+          command: ./scripts/circle-ci/run-circle-tests.sh << parameters.suite >>
           no_output_timeout: 900
       - run: ./scripts/circle-ci/ensure-repo-clean.sh
       - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
@@ -78,11 +80,16 @@ jobs:
       - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
       - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
       - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - when:
+          # Persist to workspace for the compile/compileTest container to keep deploy fast.
+          condition:
+            equal: [ 13, << parameters.suite >> ]
+          steps:
+            - persist_to_workspace:
+                root: .
+                paths: [ . ]
       - store_artifacts:
           path: /home/circleci/artifacts
-      - persist_to_workspace:
-          root: .
-          paths: [ . ]
 
   trial-publish:
     docker:
@@ -95,7 +102,13 @@ jobs:
       CIRCLE_ARTIFACTS: /tmp/artifacts
     steps:
       - attach_workspace: { at: . }
-      - run: ./gradlew --profile --stacktrace --continue publishToMavenLocal
+      - run: ./gradlew --scan --profile --stacktrace --continue publishToMavenLocal
+
+  test:
+    docker: [ { image: 'busybox:1.34.1' } ]
+    resource_class: small
+    steps:
+      - run: {command: echo "Ran all required tests successfully"}
 
   deploy:
     docker:
@@ -118,7 +131,7 @@ jobs:
             # hack - notion of "owners" isn't supported in Circle 2
             if [ $CIRCLE_PROJECT_USERNAME = 'palantir' ] && [ -z $CIRCLE_PR_NUMBER ]; then
               git status
-              ./gradlew --profile --stacktrace --continue publish
+              ./gradlew --scan --profile --stacktrace --continue publish
             fi
       - run:
           command: |
@@ -130,15 +143,35 @@ jobs:
             fi
 
 workflows:
-  version: 2
   check:
     jobs:
       - build:
           filters:
             tags:
               only: /.*/
-      - test:
+      - test-suite:
           requires: [build]
+          matrix:
+            alias: test-no-tl
+            parameters:
+              # intentionally excluding 13 (TimeLock migration ETE test) from this collection
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14]
+          filters:
+            tags:
+              only: /.*/
+      - test-suite:
+          requires: [build]
+          matrix:
+            alias: test-tl
+            parameters:
+              suite: [13]
+          filters:
+            branches:
+              only: /(tlmete.*|develop)/
+            tags:
+              only: /.*/
+      - test:
+          requires: [test-tl, test-no-tl]
           filters:
             tags:
               only: /.*/u}(jUF (e69de29bb2d1d6434b8b29ae775ad8c2e48c5391jF .circleci/template.shjF removedjF K jF K jF K jF ihttps://github.com/palantir/atlasdb/blob/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/.circleci%2Ftemplate.shjF hhttps://github.com/palantir/atlasdb/raw/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/.circleci%2Ftemplate.shjF {https://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Ftemplate.sh?ref=7798b4ff8448588fecb6aa32284dd0ed8819f7d1u}(jUF (2dbc24b32d3c1d36a5252a785ef380d28cefa391jF 
.java-versionjF modifiedjF KjF KjF KjF _https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/.java-versionjF ^https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/.java-versionjF qhttps://api.github.com/repos/palantir/atlasdb/contents/.java-version?ref=de0dabc1540a68e247bc016884c4e2681764f596jF @@ -1 +1 @@
-11
+11.0u}(jUF (d712c836408b8b983fda0502a1815c19270ae9e1jF .palantir/revapi.ymljF modifiedjF KjF K jF KjF hhttps://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/.palantir%2Frevapi.ymljF ghttps://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/.palantir%2Frevapi.ymljF zhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X_  @@ -115,3 +115,9 @@ acceptedBreaks:
     - code: "java.class.removed"
       old: "interface com.palantir.atlasdb.transaction.api.expectations.ExpectationsAwareTransaction"
       justification: "moving out of API"
+  "0.824.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.removed"
+      old: "method java.util.concurrent.ExecutorService com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService::createThreadPoolWihtoutSpans(java.lang.String,\
+        \ int, int) @ com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl"
+      justification: "Protected method"u}(jUF (d8f732c3615aaed89bbf22d2dd57bf2198b25723jF .policy.ymljF modifiedjF KjF KjF KjF ]https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/.policy.ymljF \https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/.policy.ymljF ohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X(  @@ -20,21 +20,21 @@ approval_rules:
       allow_contributor: false
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: two admins have approved
     options:
       allow_contributor: true
     requires:
       count: 2
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: changelog only and contributor approval
     options:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       only_changed_files:
         paths:
@@ -45,7 +45,7 @@ approval_rules:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       has_author_in:
         users: [ "svc-excavator-bot" ]u}(jUF (1b448a0fde07cfbc9657b00600f040335b3c7c84jF atlasdb-api/build.gradlejF modifiedjF KjF KjF KjF lhttps://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-api%2Fbuild.gradlejF khttps://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-api%2Fbuild.gradlejF ~https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fbuild.gradle?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X   @@ -39,8 +39,9 @@ dependencies {
   testImplementation 'com.palantir.refreshable:refreshable'
   testImplementation 'io.dropwizard.metrics:metrics-core'
   testImplementation project(':lock-api-objects')
+    testImplementation project(path: ':flake-rule')
 
-  annotationProcessor 'org.immutables:value'
+    annotationProcessor 'org.immutables:value'
   compileOnly 'org.immutables:value::annotations'
   testCompileOnly 'org.immutables:value::annotations'
   annotationProcessor project(":atlasdb-processors")u}(jUF (c2c86be9a9da93bcfb3eb43dd67f55ea0b9f9d51jF Ratlasdb-api/src/test/java/com/palantir/atlasdb/keyvalue/api/CellReferenceTest.javajF modifiedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellReferenceTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellReferenceTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellReferenceTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X~  @@ -21,19 +21,25 @@
 
 import com.google.common.math.IntMath;
 import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.flake.FlakeRetryingRule;
+import com.palantir.flake.ShouldRetry;
 import java.util.List;
 import java.util.Map;
 import java.util.concurrent.ThreadLocalRandom;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 import org.assertj.core.data.Percentage;
+import org.junit.Rule;
 import org.junit.Test;
 
 public class CellReferenceTest {
     private static final TableReference TABLE = createFromFullyQualifiedName("fixed.table");
     private static final byte[] ROW = PtBytes.toBytes("row");
     private static final byte[] COL = PtBytes.toBytes("col");
 
+    @Rule
+    public final FlakeRetryingRule retryingRule = new FlakeRetryingRule();
+
     @Test
     public void dynamicSequentialColumns() {
         int totalCount = 20_000;
@@ -44,6 +50,7 @@ public void dynamicSequentialColumns() {
         assertDistributionUniform(hashes, totalCount);
     }
 
+    @ShouldRetry
     @Test
     public void dynamicRandomColumns() {
         ThreadLocalRandom random = ThreadLocalRandom.current();u     }(jUF (c8f5ec6d41d45b1db43cb98d871dd8aaff4fbe06jF atlasdb-buggify/build.gradlejF addedjF KjF K jF KjF phttps://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fbuild.gradlejF ohttps://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fbuild.gradlejF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fbuild.gradle?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X`  @@ -0,0 +1,12 @@
+
+apply from: "../gradle/shared.gradle"
+
+dependencies {
+    implementation 'com.google.guava:guava'
+    testImplementation 'junit:junit'
+    testImplementation 'org.assertj:assertj-core'
+    testImplementation('org.jmock:jmock') {
+      exclude group: 'org.hamcrest'
+    }
+    testImplementation 'org.mockito:mockito-core'
+}u}(jUF (7ed6f31d91209eb01a70cc1992699c7d6b7590bdjF Tatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/AlwaysBuggifyFactory.javajF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X.  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggify;
+
+public enum AlwaysBuggifyFactory implements BuggifyFactory {
+    INSTANCE;
+
+    @Override
+    public Buggify maybe(double _probability) {
+        return DefaultBuggify.INSTANCE;
+    }
+}u}(jUF (b4b3fdb6c8a3dbc046c441a7d9341e93b8857c14jF Katlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/Buggify.javajF addedjF K'jF K jF K'jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X9  @@ -0,0 +1,39 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+/**
+ * Instances of this class could vary in implementation, such that they may perform no action {@link com.palantir.atlasdb.buggify.impl.NoOpBuggify} or
+ * always perform the action {@link com.palantir.atlasdb.buggify.impl.DefaultBuggify}. The idea here is that a
+ * downstream users of this class can easily swap out their {@link BuggifyFactory} to change the behavior of their
+ * class, without having to change the implementation of their class. This is useful for tests, as we can force the
+ * behavior of never running the provided runnable, or always running the provided runnable.
+ * <p>
+ * See https://apple.github.io/foundationdb/client-testing.html for more information.
+ */
+public interface Buggify {
+    /**
+     * Maybe runs the provided runnable, depending on the instance of the class.
+     */
+    void run(Runnable runnable);
+
+    /**
+     * Returns true if this instance of buggify would perform an action if {@link #run Run} would execute the
+     * provided runnable. This is useful if you wish to produce a boolean that will be skewed towards true or false.
+     */
+    boolean asBoolean();
+}u}(jUF (0ed48b1c56bc0efc8ac5be656900e3c3a38c67fajF Ratlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/BuggifyFactory.javajF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF Xy  @@ -0,0 +1,24 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+public interface BuggifyFactory {
+    /**
+     * The probability of returning a buggify instance which performs actions.
+     */
+    Buggify maybe(double probability);
+}u}(jUF (6f3353a1c06e3518031faa27f5e05286e635a2dbjF eatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/NativeSamplingSecureRandomFactory.javajF addedjF K!jF K jF K!jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FNativeSamplingSecureRandomFactory.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FNativeSamplingSecureRandomFactory.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FNativeSamplingSecureRandomFactory.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+import java.security.SecureRandom;
+
+public interface NativeSamplingSecureRandomFactory {
+    /**
+     * Creates an instance of {@link SecureRandom} that, as far as is supported by the system, produces both seed and
+     * random numbers from an external source.
+     * <p>
+     * The motivation for this is for running tests in an environment (such as that provided by Antithesis) where
+     * system-provided randomness is deterministic, and can be dynamically controlled by the fuzzer to explore the
+     * state space of the system more efficiently. We thus want to ensure that the random number generator we use
+     * makes queries to the system-provided randomness source not just for seeding, but also on every generation
+     * of a random number.
+     */
+    SecureRandom create();
+}u}(jUF (bf47a2abcceffe92e42715b2377315e57a40f763jF Satlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggify.javajF addedjF K!jF K jF K!jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+
+public enum DefaultBuggify implements Buggify {
+    INSTANCE;
+
+    @Override
+    public void run(Runnable runnable) {
+        runnable.run();
+    }
+
+    @Override
+    public boolean asBoolean() {
+        return true;
+    }
+}u}(jUF (4ca0edd6554c8b49ac329f94f8407ea5328fca20jF Zatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactory.javajF addedjF K/jF K jF K/jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,47 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import java.security.SecureRandom;
+import java.util.function.DoubleSupplier;
+
+public final class DefaultBuggifyFactory implements BuggifyFactory {
+    private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+    public static final BuggifyFactory INSTANCE = new DefaultBuggifyFactory();
+
+    private final DoubleSupplier doubleSupplier;
+
+    @VisibleForTesting
+    DefaultBuggifyFactory(DoubleSupplier doubleSupplier) {
+        this.doubleSupplier = doubleSupplier;
+    }
+
+    private DefaultBuggifyFactory() {
+        this(SECURE_RANDOM::nextDouble);
+    }
+
+    @Override
+    public Buggify maybe(double probability) {
+        if (doubleSupplier.getAsDouble() < probability) {
+            return DefaultBuggify.INSTANCE;
+        }
+        return NoOpBuggify.INSTANCE;
+    }
+}u}(jUF (1f3a1114799a4b99ced3a549da79307fe3e7b204jF matlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultNativeSamplingSecureRandomFactory.javajF addedjF K,jF K jF K,jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultNativeSamplingSecureRandomFactory.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultNativeSamplingSecureRandomFactory.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultNativeSamplingSecureRandomFactory.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.NativeSamplingSecureRandomFactory;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.security.SecureRandom;
+
+public enum DefaultNativeSamplingSecureRandomFactory implements NativeSamplingSecureRandomFactory {
+    INSTANCE;
+
+    private static final SafeLogger log = SafeLoggerFactory.get(DefaultNativeSamplingSecureRandomFactory.class);
+
+    @Override
+    public SecureRandom create() {
+        try {
+            // The NativePRNG algorithm reads from /dev/random or /dev/urandom for generating both seed and random
+            // numbers, which satisfies the requirements of the interface (and both of these files are fuzzer-controlled
+            // in Antithesis). This string is a reserved identifier for the algorithm, following
+            // https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html#securerandom-number-generation-algorithms
+            return SecureRandom.getInstance("NativePRNG");
+        } catch (Exception e) {
+            log.warn(
+                    "Failed to initialize fully native secure random instance, letting the Java runtime select for us",
+                    e);
+            return new SecureRandom();
+        }
+    }
+}u}(jUF (7ffdf499b3babaa3d0997abc88e28cb57de2aa01jF Patlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggify.javajF addedjF K!jF K jF K!jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+
+public enum NoOpBuggify implements Buggify {
+    INSTANCE;
+
+    @Override
+    public void run(Runnable _runnable) {
+        // do nothing
+    }
+
+    @Override
+    public boolean asBoolean() {
+        return false;
+    }
+}u}(jUF (bf4172a8a7e4e4576cacc81f228d95963322a41djF Watlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyFactory.javajF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,29 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+
+public enum NoOpBuggifyFactory implements BuggifyFactory {
+    INSTANCE;
+
+    @Override
+    public Buggify maybe(double _probability) {
+        return NoOpBuggify.INSTANCE;
+    }
+}u}(jUF (a7db5aa15eb7d98f2bcc738671a8f30fdfb489adjF ^atlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactoryTest.javajF addedjF K+jF K jF K+jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X#  @@ -0,0 +1,43 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import org.junit.Test;
+
+public class DefaultBuggifyFactoryTest {
+    @Test
+    public void maybeReturnsDefaultWhenMaxProbability() {
+        assertThat(DefaultBuggifyFactory.INSTANCE.maybe(1.0)).isSameAs(DefaultBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsNoOpWhenNeverProbability() {
+        assertThat(DefaultBuggifyFactory.INSTANCE.maybe(0.0)).isSameAs(NoOpBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsNoOpWhenBelowOrEqualToProbability() {
+        assertThat(new DefaultBuggifyFactory(() -> 0.50).maybe(0.50)).isSameAs(NoOpBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsDefaultWhenAboveProbability() {
+        assertThat(new DefaultBuggifyFactory(() -> 0.49).maybe(0.50)).isSameAs(DefaultBuggify.INSTANCE);
+    }
+}u}(jUF (28a8b18ae59b101e1489b1e086bbac7d63318767jF Watlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyTest.javajF addedjF K%jF K jF K%jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.verify;
+
+import org.junit.Test;
+
+public class DefaultBuggifyTest {
+    @Test
+    public void runAlwaysExecutes() {
+        Runnable runnable = mock(Runnable.class);
+        DefaultBuggify.INSTANCE.run(runnable);
+        verify(runnable).run();
+    }
+
+    @Test
+    public void asBooleanReturnsTrue() {
+        assertThat(DefaultBuggify.INSTANCE.asBoolean()).isTrue();
+    }
+}u}(jUF (c6d5d05237311ecd06793772e3b673f5836c8896jF Tatlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyTest.javajF addedjF K&jF K jF K&jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.never;
+import static org.mockito.Mockito.verify;
+
+import org.junit.Test;
+
+public class NoOpBuggifyTest {
+    @Test
+    public void runNeverExecutes() {
+        Runnable runnable = mock(Runnable.class);
+        NoOpBuggify.INSTANCE.run(runnable);
+        verify(runnable, never()).run();
+    }
+
+    @Test
+    public void asBooleanReturnsFalse() {
+        assertThat(NoOpBuggify.INSTANCE.asBoolean()).isFalse();
+    }
+}u}(jUF (8fce8e6875711ffb9f2690858b1cbe9871979bd5jF 0atlasdb-cassandra-integration-tests/build.gradlejF modifiedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra-integration-tests%2Fbuild.gradlejF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra-integration-tests%2Fbuild.gradlejF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fbuild.gradle?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X#  @@ -56,6 +56,24 @@ test {
     exclude '**/CassandraKeyValueServiceSweepTaskRunnerIntegrationTest.class'
 }
 
+task testSubset1(type: Test) {
+    include '**/CassandraKeyValueServiceTableCreationIntegrationTest.class'
+    include '**/CassandraKeyValueServiceTableManipulationIntegrationTest.class'
+    include '**/CassandraKeyValueServiceTransactionIntegrationTest.class'
+    include '**/CassandraKvsAsyncFallbackMechanismsTests.class'
+    include '**/CassandraKvsSerializableTransactionTest.class'
+}
+
+task testSubset2(type: Test) {
+    include '**/*Test.class'
+    include '**/*Tests.class'
+    exclude '**/CassandraKeyValueServiceTableCreationIntegrationTest.class'
+    exclude '**/CassandraKeyValueServiceTableManipulationIntegrationTest.class'
+    exclude '**/CassandraKeyValueServiceTransactionIntegrationTest.class'
+    exclude '**/CassandraKvsAsyncFallbackMechanismsTests.class'
+    exclude '**/CassandraKvsSerializableTransactionTest.class'
+}
+
 tasks.withType(Test) {
     testLogging {
         // set options for log level LIFECYCLEu}(jUF (4070f53a1fe32fff1205f946858d747ab540e48bjF datlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javajF modifiedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF Xw  @@ -359,6 +359,7 @@ void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> des
 
         if (!(validatedServersToAdd.isEmpty() && absentServers.isEmpty())) { // if we made any changes
             cassandra.refreshTokenRangesAndGetServers();
+            metrics.recordPoolSize(getCurrentPools().size());
         }
 
         Preconditions.checkState(u}(jUF (69f581236b5f107c22a46408a061b07dd50fd1bcjF iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X2  @@ -108,8 +108,6 @@
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
-import com.palantir.tracing.Tracers;
-import com.palantir.tritium.metrics.MetricRegistries;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import com.palantir.util.Pair;
 import com.palantir.util.paging.AbstractPagingIterable;
@@ -485,10 +483,7 @@ private static Supplier<ExecutorService> instrumentedFixedThreadPoolSupplier(
             int numberOfThriftHosts = serversConfig.numberOfThriftHosts();
             int corePoolSize = poolSize * numberOfThriftHosts;
             int maxPoolSize = maxConnectionBurstSize * numberOfThriftHosts;
-            return Tracers.wrap(MetricRegistries.instrument(
-                    registry,
-                    createThreadPoolWihtoutSpans("Atlas Cassandra KVS", corePoolSize, maxPoolSize),
-                    "Atlas Cassandra KVS"));
+            return createThreadPoolWithoutSpans("Atlas Cassandra KVS", corePoolSize, maxPoolSize);
         };
     }
 u}(jUF (90804433a22ec03af979e3c1e8590efd24af0579jF `atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppToken.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -27,13 +27,16 @@
 import java.util.Arrays;
 
 public class LightweightOppToken implements Comparable<LightweightOppToken> {
-
     final byte[] bytes;
 
     public LightweightOppToken(byte[] bytes) {
         this.bytes = bytes;
     }
 
+    public static LightweightOppToken fromHex(String token) {
+        return new LightweightOppToken(Tokens.hexDecode(token));
+    }
+
     public static LightweightOppToken of(Cell cell) {
         return new LightweightOppToken(cell.getRowName());
     }u}(jUF (b6e36b890415f2534eb284b773e57dbc27d4313bjF Satlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/Tokens.javajF addedjF K4jF K jF K4jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XP  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.io.BaseEncoding;
+import java.util.Locale;
+import java.util.function.IntPredicate;
+
+final class Tokens {
+
+    private static final BaseEncoding LOWER_CASE_HEX = BaseEncoding.base16().lowerCase();
+
+    static byte[] hexDecode(String token) {
+        // OPP tokens should be lowercase -- fast path assumes this; slow fallback converts to uppercase
+        return Tokens.isAllLowercaseOrDigits(token)
+                ? LOWER_CASE_HEX.decode(token)
+                : BaseEncoding.base16().decode(token.toUpperCase(Locale.ROOT));
+    }
+
+    @VisibleForTesting
+    static boolean isAllLowercaseOrDigits(String token) {
+        return allMatch(token, ch -> Character.isLowerCase(ch) || Character.isDigit(ch));
+    }
+
+    @VisibleForTesting
+    static boolean allMatch(String token, IntPredicate predicate) {
+        for (int i = 0; i < token.length(); i++) {
+            char ch = token.charAt(i);
+            if (!predicate.test(ch)) {
+                return false;
+            }
+        }
+        return true;
+    }
+
+    private Tokens() {}
+}u}(jUF (4d583484e99e4cc63642e62a005732ba4ca0d5d9jF latlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetrics.javajF modifiedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X	  @@ -18,6 +18,7 @@
 import com.codahale.metrics.Counter;
 import com.codahale.metrics.Gauge;
 import com.codahale.metrics.Meter;
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableMap;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer;
@@ -26,10 +27,13 @@
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.Map;
+import java.util.concurrent.atomic.AtomicLong;
 import java.util.function.Consumer;
 import java.util.function.Supplier;
 
 public class CassandraClientPoolMetrics {
+
+    public static final String POOL_SIZE_METRIC_NAME = "pool-size";
     private final MetricsManager metricsManager;
     private final RequestMetrics aggregateRequestMetrics;
     private final Map<CassandraServer, RequestMetrics> metricsByHost = new HashMap<>();
@@ -39,12 +43,15 @@ public class CassandraClientPoolMetrics {
     // Not bundled in with request metrics, as we seek to not produce host-level metrics for economic reasons.
     private final Counter poolExhaustionCounter;
 
+    private final AtomicLong poolSize = new AtomicLong(0L);
+
     public CassandraClientPoolMetrics(MetricsManager metricsManager) {
         this.metricsManager = metricsManager;
         this.aggregateRequestMetrics = new RequestMetrics(metricsManager);
         this.poolExhaustionCounter =
                 metricsManager.registerOrGetCounter(CassandraClientPoolMetrics.class, "pool-exhaustion");
         this.outlierControllers = createOutlierControllers(metricsManager);
+        metricsManager.registerMetric(CassandraClientPoolMetrics.class, POOL_SIZE_METRIC_NAME, poolSize::get);
     }
 
     private static Map<CassandraClientPoolHostLevelMetric, DistributionOutlierController> createOutlierControllers(
@@ -93,6 +100,15 @@ public void recordPoolExhaustion() {
         poolExhaustionCounter.inc();
     }
 
+    public void recordPoolSize(long desiredPoolSize) {
+        poolSize.set(desiredPoolSize);
+    }
+
+    @VisibleForTesting
+    Long getPoolSize() {
+        return poolSize.get();
+    }
+
     @SuppressWarnings("unchecked") // Guaranteed to have the correct type
     public void registerPoolMetric(CassandraClientPoolHostLevelMetric metric, Gauge<Long> gauge, int poolNumber) {
         MetricPublicationFilter filter = outlierControllers.get(metric).registerAndCreateFilter(gauge);u}(jUF (32b1efd1deac46330f4d5d125b203b6a950a167djF batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javajF modifiedjF KjF KjF K!jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -17,18 +17,17 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
-import com.google.common.collect.FluentIterable;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableRangeMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Interner;
 import com.google.common.collect.Interners;
 import com.google.common.collect.Iterables;
+import com.google.common.collect.Maps;
 import com.google.common.collect.Range;
 import com.google.common.collect.RangeMap;
 import com.google.common.collect.Sets;
-import com.google.common.io.BaseEncoding;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs.ThriftHostsExtractingVisitor;
@@ -62,13 +61,11 @@
 import java.util.Comparator;
 import java.util.HashMap;
 import java.util.HashSet;
-import java.util.Iterator;
 import java.util.List;
-import java.util.Locale;
 import java.util.Map;
-import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Optional;
+import java.util.PrimitiveIterator.OfInt;
 import java.util.Random;
 import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
@@ -77,6 +74,7 @@
 import java.util.function.Predicate;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import java.util.stream.Stream;
 import org.apache.cassandra.thrift.EndpointDetails;
 import org.apache.cassandra.thrift.TokenRange;
@@ -162,10 +160,8 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
                     servers.addAll(hosts);
                     hostToDatacentersThisRefresh.putAll(hostToDatacentersOnThisTokenRange);
 
-                    LightweightOppToken startToken = new LightweightOppToken(BaseEncoding.base16()
-                            .decode(tokenRange.getStart_token().toUpperCase(Locale.ROOT)));
-                    LightweightOppToken endToken = new LightweightOppToken(BaseEncoding.base16()
-                            .decode(tokenRange.getEnd_token().toUpperCase(Locale.ROOT)));
+                    LightweightOppToken startToken = LightweightOppToken.fromHex(tokenRange.getStart_token());
+                    LightweightOppToken endToken = LightweightOppToken.fromHex(tokenRange.getEnd_token());
                     if (startToken.compareTo(endToken) <= 0) {
                         newTokenRing.put(Range.openClosed(startToken, endToken), hosts);
                     } else {
@@ -306,16 +302,16 @@ private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) th
     }
 
     private int getKnownPort() throws UnknownHostException {
-        // explicitly not using streams due to allocation overhead
-        return onlyPort(FluentIterable.concat(
-                        FluentIterable.from(currentPools.keySet()).transform(CassandraServer::proxy),
-                        getServersSocketAddressesFromConfig())
-                .transform(InetSocketAddress::getPort));
+        // Avoid allocations and intermediate collection as this is on hot path
+        return only(Stream.concat(
+                        currentPools.keySet().stream().map(CassandraServer::proxy),
+                        getServersSocketAddressesFromConfig().stream())
+                .mapToInt(InetSocketAddress::getPort));
     }
 
     @VisibleForTesting
-    static int onlyPort(Iterable<? extends Integer> iterable) throws UnknownHostException {
-        Iterator<? extends Integer> iterator = iterable.iterator();
+    static int only(IntStream intStream) throws UnknownHostException {
+        OfInt iterator = intStream.iterator();
         if (!iterator.hasNext()) {
             throw new UnknownHostException("No single known port");
         }
@@ -420,9 +416,8 @@ Set<CassandraServer> maybeFilterLocalHosts(Set<CassandraServer> hosts) {
     @VisibleForTesting
     Optional<CassandraServer> getRandomHostByActiveConnections(Set<CassandraServer> desiredHosts) {
         Set<CassandraServer> localFilteredHosts = maybeFilterLocalHosts(desiredHosts);
-        ImmutableMap<CassandraServer, CassandraClientPoolingContainer> matchingPools = currentPools.entrySet().stream()
-                .filter(e -> localFilteredHosts.contains(e.getKey()))
-                .collect(ImmutableMap.toImmutableMap(Entry::getKey, Entry::getValue));
+        Map<CassandraServer, CassandraClientPoolingContainer> matchingPools =
+                ImmutableMap.copyOf(Maps.filterKeys(currentPools, localFilteredHosts::contains));
         if (matchingPools.isEmpty()) {
             return Optional.empty();
         }u}(jUF (0018cc3f41f93c005b4fbadee9f0f569b180a38cjF datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolTest.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X&  @@ -35,6 +35,7 @@
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs;
 import com.palantir.atlasdb.cassandra.ImmutableDefaultConfig;
+import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraClientPoolMetrics;
 import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
 import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService;
 import com.palantir.atlasdb.util.MetricsManagers;
@@ -224,7 +225,7 @@ private void runTwoNoopsOnTwoHostsAndThrowFromSecondRunOnFirstHost(Exception exc
     }
 
     private CassandraServer getServerForIndex(int index) {
-        return CassandraServer.of(InetSocketAddress.createUnresolved(Integer.toString(index), index));
+        return CassandraServer.of(InetSocketAddress.createUnresolved(Integer.toString(index), 8000));
     }
 
     @Test
@@ -310,6 +311,7 @@ public void hostIsAutomaticallyRemovedOnStartup() {
 
         createClientPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1);
+        assertPoolSizeMetricIsEqualTo(1);
     }
 
     @Test
@@ -321,10 +323,12 @@ public void hostIsAutomaticallyRemovedOnRefresh() {
 
         createClientPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2, CASS_SERVER_3);
+        assertPoolSizeMetricIsEqualTo(3);
 
         setCassandraServersTo(CASS_SERVER_1, CASS_SERVER_2);
         refreshPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2);
+        assertPoolSizeMetricIsEqualTo(2);
     }
 
     @Test
@@ -495,7 +499,7 @@ private void setCassandraServersTo(CassandraServer... servers) {
 
     private CassandraClientPoolImpl createClientPool() {
         return CassandraClientPoolImpl.createImplForTest(
-                MetricsManagers.createForTests(),
+                MetricsManagers.of(metricRegistry, taggedMetricRegistry),
                 config,
                 refreshableRuntimeConfig,
                 CassandraClientPoolImpl.StartupChecks.DO_NOT_RUN,
@@ -687,4 +691,16 @@ private void setupHostsWithInconsistentTopology(CassandraServer... cassandraServ
     private void refreshPool() {
         deterministicExecutor.tick(POOL_REFRESH_INTERVAL_SECONDS, TimeUnit.SECONDS);
     }
+
+    private void assertPoolSizeMetricIsEqualTo(long expected) {
+        assertThat(taggedMetricRegistry
+                        .<Long>gauge(MetricName.builder()
+                                .safeName(MetricRegistry.name(
+                                        CassandraClientPoolMetrics.class,
+                                        CassandraClientPoolMetrics.POOL_SIZE_METRIC_NAME))
+                                .build())
+                        .get()
+                        .getValue())
+                .isEqualTo(expected);
+    }
 }u}(jUF (502ae947a588e3d9dcebd649967cafd91a08374bjF datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppTokenTest.javajF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X4  @@ -0,0 +1,167 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.conjure.java.lib.Bytes;
+import java.nio.ByteBuffer;
+import java.util.Collection;
+import java.util.Locale;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+import org.junit.runners.Parameterized.Parameter;
+import org.junit.runners.Parameterized.Parameters;
+
+@RunWith(Parameterized.class)
+public class LightweightOppTokenTest {
+    @Parameter()
+    public String input;
+
+    @Parameters(name = "{index}: input=\"{0}\"")
+    public static Collection<Object[]> data() {
+        return TokensTest.generateTokens()
+                .flatMap(input -> Stream.of(input, input.toLowerCase(Locale.ROOT), input.toUpperCase(Locale.ROOT)))
+                .map(input -> new Object[] {input})
+                .collect(Collectors.toList());
+    }
+
+    @Test
+    public void inputsAreValidBase16Strings() {
+        assertThat(input).matches("^[0-9a-fA-F]*$");
+        assertThat(input.length() % 2)
+                .as("input must be even length to base16 decode")
+                .isEqualTo(0);
+        assertThat(CassandraHex.hexToBytes(input)).hasSize(input.length() / 2);
+    }
+
+    @Test
+    public void createFromHexEncodedStringRegardlessOfCase() {
+        LightweightOppToken token = LightweightOppToken.fromHex(input);
+        LightweightOppToken tokenFromLowerCase = LightweightOppToken.fromHex(input.toLowerCase(Locale.ROOT));
+        LightweightOppToken tokenFromUpperCase = LightweightOppToken.fromHex(input.toUpperCase(Locale.ROOT));
+        LightweightOppToken tokenFromBytes = new LightweightOppToken(CassandraHex.hexToBytes(input));
+
+        assertThat(token.bytes)
+                .hasSize(input.length() / 2)
+                .isEqualTo(tokenFromLowerCase.bytes)
+                .isEqualTo(tokenFromUpperCase.bytes)
+                .isEqualTo(tokenFromBytes.bytes);
+        assertThat(token)
+                .isNotNull()
+                .isEqualTo(tokenFromLowerCase)
+                .isEqualTo(tokenFromUpperCase)
+                .isEqualTo(tokenFromBytes)
+                .isEqualByComparingTo(tokenFromLowerCase)
+                .isEqualByComparingTo(tokenFromUpperCase)
+                .isEqualByComparingTo(tokenFromBytes);
+    }
+
+    @Test
+    public void fromHexCorrectlyDeserializesStrings() throws Exception {
+        LightweightOppToken token = LightweightOppToken.fromHex(input);
+        Bytes expectedBytes = Bytes.from(org.apache.commons.codec.binary.Hex.decodeHex(input));
+        assertThat(token.bytes).contains(expectedBytes.asNewByteArray());
+        assertThat(token.isEmpty()).isEqualTo(input.length() == 0);
+        ByteBuffer deserialized = token.deserialize();
+        assertThat(deserialized).isEqualTo(expectedBytes.asReadOnlyByteBuffer());
+        assertThat(deserialized.remaining()).isEqualTo(input.length() / 2);
+        assertThat(token.toString()).isEqualToIgnoringCase(input);
+    }
+
+    @Test
+    public void tokenMatchesCassandraImplementation() throws Exception {
+        // Test compatibility with Cassandra hex conversions from:
+        // https://github.com/palantir/cassandra/blob/palantir-cassandra-2.2.18/src/java/org/apache/cassandra/dht/ByteOrderedPartitioner.java#L74
+        Bytes expectedBytes = Bytes.from(org.apache.commons.codec.binary.Hex.decodeHex(input));
+        String hexFromCassandra = CassandraHex.bytesToHex(expectedBytes.asNewByteArray());
+        byte[] bytesFromCassandra = CassandraHex.hexToBytes(hexFromCassandra);
+        LightweightOppToken token = LightweightOppToken.fromHex(hexFromCassandra);
+        assertThat(Tokens.isAllLowercaseOrDigits(hexFromCassandra))
+                .as("Expect lowercase hex %s", hexFromCassandra)
+                .isTrue();
+        assertThat(token).isEqualTo(new LightweightOppToken(expectedBytes.asNewByteArray()));
+        assertThat(token.bytes).contains(bytesFromCassandra);
+    }
+
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one
+     * or more contributor license agreements.  See the NOTICE file
+     * distributed with this work for additional information
+     * regarding copyright ownership.  The ASF licenses this file
+     * to you under the Apache License, Version 2.0 (the
+     * "License"); you may not use this file except in compliance
+     * with the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+    // Imported from cassandra to test using their conversions
+    // https://github.com/palantir/cassandra/blob/palantir-cassandra-2.2.18/src/java/org/apache/cassandra/utils/Hex.java
+    static final class CassandraHex {
+        private static final byte[] charToByte = new byte[256];
+
+        // package protected for use by ByteBufferUtil. Do not modify this array !!
+        static final char[] byteToChar = new char[16];
+
+        static {
+            for (char c = 0; c < charToByte.length; ++c) {
+                if (c >= '0' && c <= '9') charToByte[c] = (byte) (c - '0');
+                else if (c >= 'A' && c <= 'F') charToByte[c] = (byte) (c - 'A' + 10);
+                else if (c >= 'a' && c <= 'f') charToByte[c] = (byte) (c - 'a' + 10);
+                else charToByte[c] = (byte) -1;
+            }
+
+            for (int i = 0; i < 16; ++i) {
+                byteToChar[i] = Integer.toHexString(i).charAt(0);
+            }
+        }
+
+        public static byte[] hexToBytes(String str) {
+            if (str.length() % 2 == 1)
+                throw new NumberFormatException("An hex string representing bytes must have an even length");
+
+            byte[] bytes = new byte[str.length() / 2];
+            for (int i = 0; i < bytes.length; i++) {
+                byte halfByte1 = charToByte[str.charAt(i * 2)];
+                byte halfByte2 = charToByte[str.charAt(i * 2 + 1)];
+                if (halfByte1 == -1 || halfByte2 == -1) throw new NumberFormatException("Non-hex characters in " + str);
+                bytes[i] = (byte) ((halfByte1 << 4) | halfByte2);
+            }
+            return bytes;
+        }
+
+        public static String bytesToHex(byte... bytes) {
+            char[] c = new char[bytes.length * 2];
+            for (int i = 0; i < bytes.length; i++) {
+                int bint = bytes[i];
+                c[i * 2] = byteToChar[(bint & 0xf0) >> 4];
+                c[1 + i * 2] = byteToChar[bint & 0x0f];
+            }
+
+            return new String(c);
+        }
+    }
+}u}(jUF (db57abd4b23910bc5e3468db860764b587878808jF Watlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/TokensTest.javajF addedjF KjjF K jF KjjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X8  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.io.BaseEncoding;
+import com.google.common.primitives.Longs;
+import java.util.Locale;
+import java.util.concurrent.ThreadLocalRandom;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+import org.junit.Test;
+
+public final class TokensTest {
+    @Test
+    public void decodeHex() {
+        generateTokens().forEach(input -> assertThat(Tokens.hexDecode(input))
+                .as("token '%s'", input)
+                .hasSize(input.length() / 2));
+    }
+
+    @Test
+    public void isAllLowercaseOrDigits() {
+        assertThat(Tokens.isAllLowercaseOrDigits("abcdef01234567890")).isTrue();
+        assertThat(Tokens.isAllLowercaseOrDigits("01234567890abcdef")).isTrue();
+        assertThat(Tokens.isAllLowercaseOrDigits("Abcdef01234567890")).isFalse();
+        assertThat(Tokens.isAllLowercaseOrDigits("01234567890ABCDEF")).isFalse();
+    }
+
+    @Test
+    public void allMatch() {
+        assertThat(Tokens.allMatch("01234567890", Character::isDigit)).isTrue();
+        assertThat(Tokens.allMatch("0123456789A", Character::isDigit)).isFalse();
+        assertThat(Tokens.allMatch("ABCEFGHIJKLMNOPQRSTUVWXYZ", Character::isUpperCase))
+                .isTrue();
+        assertThat(Tokens.allMatch("ABCEFGHIJKLMNOPQRSTUVWXYZ", Character::isLowerCase))
+                .isFalse();
+        assertThat(Tokens.allMatch("abcefghijklmnopqrstuvwxyz", Character::isLowerCase))
+                .isTrue();
+        assertThat(Tokens.allMatch("abcefghijklmnopqrstuvwxyz", Character::isUpperCase))
+                .isFalse();
+    }
+
+    static Stream<String> generateTokens() {
+        return Stream.concat(
+                        Stream.of(
+                                "",
+                                "0F",
+                                "decafbad",
+                                "0123456789ABCDEF",
+                                "0123456789abcdef",
+                                "0123456789Abcdef",
+                                "0123456789aBcdef",
+                                "0123456789abCdef",
+                                "0123456789abcDef",
+                                "0123456789abcdEf",
+                                "0123456789abcdeF",
+                                Long.toHexString(Long.MIN_VALUE),
+                                Long.toHexString(Long.MAX_VALUE)),
+                        Stream.concat(
+                                IntStream.range(0, 32).mapToObj(i -> {
+                                    byte[] bytes = new byte[i * 2];
+                                    ThreadLocalRandom.current().nextBytes(bytes);
+                                    return BaseEncoding.base16().encode(bytes);
+                                }),
+                                IntStream.range(0, 1_000).mapToObj(_i -> BaseEncoding.base16()
+                                        .encode(Longs.toByteArray(
+                                                ThreadLocalRandom.current().nextLong())))))
+                .flatMap(input -> Stream.of(
+                        input, input.toLowerCase(Locale.ROOT), input.toUpperCase(Locale.ROOT), shuffleCase(input)));
+    }
+
+    private static String shuffleCase(String input) {
+        if (input == null || input.isEmpty()) {
+            return input;
+        }
+        StringBuilder sb = new StringBuilder(input.length());
+        for (int i = 0; i < input.length(); i++) {
+            char ch = input.charAt(i);
+            if (Character.isAlphabetic(ch) && ThreadLocalRandom.current().nextBoolean()) {
+                if (Character.isLowerCase(ch)) {
+                    ch = Character.toUpperCase(ch);
+                } else {
+                    ch = Character.toLowerCase(ch);
+                }
+            }
+            sb.append(ch);
+        }
+        return sb.toString();
+    }
+}u}(jUF (bc3e5261d087a84993ba8ae1e523c8b05fc4c179jF patlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetricsTest.javajF modifiedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -33,6 +33,8 @@ public class CassandraClientPoolMetricsTest {
     private final MetricsManager metricsManager =
             MetricsManagers.of(new MetricRegistry(), new DefaultTaggedMetricRegistry(), Refreshable.only(true));
 
+    private final CassandraClientPoolMetrics metrics = new CassandraClientPoolMetrics(metricsManager);
+
     @Test
     public void metricsAreProducedAndFiltered() {
         CassandraClientPoolMetrics metrics = new CassandraClientPoolMetrics(metricsManager);
@@ -57,6 +59,18 @@ public void metricsAreProducedAndFiltered() {
                 .containsKey(createMeanActiveTimeMillisMetric("mean"));
     }
 
+    @Test
+    public void recordPoolSizeSetsSizeToLastReportedValue() {
+        metrics.recordPoolSize(100);
+        assertThat(metrics.getPoolSize()).isEqualTo(100);
+        metrics.recordPoolSize(-13);
+        assertThat(metrics.getPoolSize()).isEqualTo(-13);
+        metrics.recordPoolSize(25);
+        assertThat(metrics.getPoolSize()).isEqualTo(25);
+        metrics.recordPoolSize(0);
+        assertThat(metrics.getPoolSize()).isEqualTo(0);
+    }
+
     private static MetricName createMeanActiveTimeMillisMetric(String pool) {
         return MetricName.builder()
                 .safeName(MetricRegistry.name(u}(jUF (ea93d4225293149bfc275c742ea245b6b263274fjF fatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraServiceTest.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -33,7 +33,6 @@
 import com.palantir.refreshable.Refreshable;
 import java.net.InetSocketAddress;
 import java.net.UnknownHostException;
-import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.ThreadLocalRandom;
@@ -272,12 +271,10 @@ public void getRandomHostByActiveConnectionsReturnsDesiredHost() {
 
     @Test
     public void ports() throws Exception {
-        assertThat(CassandraService.onlyPort(List.of(1, 1, 1))).isEqualTo(1);
-        assertThat(IntStream.generate(() -> 4224).boxed().limit(15).collect(Collectors.toList()))
-                .hasSize(15)
-                .satisfies(cluster ->
-                        assertThat(CassandraService.onlyPort(cluster)).isEqualTo(4224));
-        assertThatThrownBy(() -> CassandraService.onlyPort(List.of(1, 2, 1)))
+        assertThat(CassandraService.only(IntStream.of(1, 1, 1))).isEqualTo(1);
+        assertThat(CassandraService.only(IntStream.generate(() -> 4224).limit(15)))
+                .isEqualTo(4224);
+        assertThatThrownBy(() -> CassandraService.only(IntStream.of(1, 2, 1)))
                 .isInstanceOf(UnknownHostException.class)
                 .hasMessageContaining("No single known port");
     }uv     }(jUF (5504ea3d7692e9bd5feb8a902db77c14b223e48fjF atlasdb-cli/build.gradlejF modifiedjF KjF K jF KjF lhttps://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cli%2Fbuild.gradlejF khttps://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cli%2Fbuild.gradlejF ~https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cli%2Fbuild.gradle?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -8,6 +8,7 @@ dependencies {
     api project(':atlasdb-client')
     api project(':atlasdb-config')
     api project(':timestamp-api')
+    testImplementation project(path: ':flake-rule')
 
     compileOnly 'com.google.dagger:dagger'
     implementation 'io.airlift:airline'u}(jUF (697bebce05ea5400b3ed453d3cb76e4e2ffc631ejF Tatlasdb-cli/src/test/java/com/palantir/atlasdb/cli/command/TestTimestampCommand.javajF modifiedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -37,6 +37,8 @@
 import com.palantir.atlasdb.services.test.DaggerTestAtlasDbServices;
 import com.palantir.atlasdb.services.test.TestAtlasDbServices;
 import com.palantir.common.time.Clock;
+import com.palantir.flake.FlakeRetryingRule;
+import com.palantir.flake.ShouldRetry;
 import com.palantir.lock.LockClient;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;
@@ -60,6 +62,7 @@
 import org.junit.After;
 import org.junit.Before;
 import org.junit.BeforeClass;
+import org.junit.Rule;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
@@ -71,6 +74,9 @@ public class TestTimestampCommand {
     private static AtlasDbServicesFactory moduleFactory;
     private static List<String> cliArgs;
 
+    @Rule
+    public FlakeRetryingRule flakeRetryingRule = new FlakeRetryingRule();
+
     @BeforeClass
     public static void oneTimeSetup() throws Exception {
         lock = StringLockDescriptor.of("lock");
@@ -181,6 +187,7 @@ public void testWithFile() throws Exception {
         runAndVerifyCliForFile(inputFileString);
     }
 
+    @ShouldRetry
     @Test
     public void testWithFileWithDir() throws Exception {
         String inputFileString = "existing-dir/test.timestamp";u}(jUF (605212243716ab96bbbde3a8b0fd9ec3aa421b48jF \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/AbstractKeyValueService.javajF modifiedjF K	jF K
jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X^	  @@ -70,38 +70,37 @@ public AbstractKeyValueService(ExecutorService executor) {
     /**
      * Creates a fixed thread pool.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param corePoolSize size of the core pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createFixedThreadPool(String threadNamePrefix, int corePoolSize) {
-        return createThreadPool(threadNamePrefix, corePoolSize, corePoolSize);
+    protected static ExecutorService createFixedThreadPool(String name, int corePoolSize) {
+        return createThreadPool(name, corePoolSize, corePoolSize);
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPool(String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPool(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPool(String name, int _corePoolSize, int maxPoolSize) {
+        return PTExecutors.newFixedThreadPool(maxPoolSize, name);
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      * It does not create a span.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPoolWihtoutSpans(
-            String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPoolWithoutSpans(String name, int _corePoolSize, int maxPoolSize) {
+        return PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, name);
     }
 
     @Overrideu}(jUF (8b6e6cafaf4bfeb159b9821f6b05b34ee3d1bd3bjF \atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/CompactMetadataTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FCompactMetadataTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FCompactMetadataTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FCompactMetadataTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "VridlmiMEcMLIrwQyqcRHQ==";
+    static String __CLASS_HASH = "PSwZcMysyzWemW+V1hGphQ==";
 }u}(jUF (a9253d217f7922c43a4719d7eba66ff928fd42c2jF Zatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepIdToNameTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepIdToNameTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepIdToNameTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepIdToNameTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -731,6 +732,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -754,5 +756,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "XhY0sfHU7ygS3NHM1+HK7Q==";
+    static String __CLASS_HASH = "XRAvO+BpbFM1l4QIBkArjA==";
 }u}(jUF (92e033f8a02b6af466530e87d3272b1a29f5b16bjF Zatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepNameToIdTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepNameToIdTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepNameToIdTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepNameToIdTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -672,6 +673,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -695,5 +697,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "sJD6WdNMiuuJDNsMwkhsvA==";
+    static String __CLASS_HASH = "ZVl8vtH0bWDeCq5tKMA3Aw==";
 }u}(jUF (466585bf6d5f35472abb07bf7c9340d1fec25923jF Zatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepPriorityTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepPriorityTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepPriorityTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepPriorityTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -1228,6 +1229,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -1251,5 +1253,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "SYJq7EPSrqhI5ojA5DS3vQ==";
+    static String __CLASS_HASH = "rABMHBdCo+LhmxyLoeFFwQ==";
 }u}(jUF (91aeab67a811c50ed99500a6dbab71f30426896bjF _atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepShardProgressTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepShardProgressTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepShardProgressTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepShardProgressTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -684,6 +685,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -707,5 +709,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "vxDaJU4r7oWggNPDq0Qu6Q==";
+    static String __CLASS_HASH = "2Fj81SsG3WRpPjQ1kYDw3A==";
 }u}(jUF (e1e792ef2a8d8d17d6dc1f0ebf62edaa5f434f46jF [atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepableCellsTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableCellsTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableCellsTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableCellsTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -766,6 +767,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -789,5 +791,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "0G8vHXvwR/HGZ0ZrAaeqTQ==";
+    static String __CLASS_HASH = "hMikiCT1ysKqkzSOdiKujg==";
 }u}(jUF (a0fed777bc3cae52361dd15d5e1f8d185ff33447jF `atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepableTimestampsTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableTimestampsTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableTimestampsTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableTimestampsTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -763,6 +764,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -786,5 +788,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Jw99h/0z3T8JcRN8j6d17w==";
+    static String __CLASS_HASH = "66qq5d5do+PszHk7DehVPA==";
 }u}(jUF (04e0abea5b6d71d399ce0be42bf5e788186bb907jF Xatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/TableClearsTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FTableClearsTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FTableClearsTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FTableClearsTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "G5tVqtzNmeGOIdOf4QSySA==";
+    static String __CLASS_HASH = "Wm/9d03F9WHgPC5jjTUOaA==";
 }u}(jUF (37f614609e9364110222b476f105aa43bbb7f628jF batlasdb-client/src/main/java/com/palantir/atlasdb/table/description/ColumnMetadataDescription.javajF modifiedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -22,11 +22,15 @@
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Set;
+import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 
 @Immutable
 public class ColumnMetadataDescription {
+    @Nullable
     final ImmutableSet<NamedColumnDescription> namedColumns;
+
+    @Nullable
     final DynamicColumnDescription dynamicColumn;
 
     public ColumnMetadataDescription() {
@@ -44,10 +48,12 @@ public ColumnMetadataDescription(DynamicColumnDescription dynamicColumn) {
         this.dynamicColumn = dynamicColumn;
     }
 
+    @Nullable
     public Set<NamedColumnDescription> getNamedColumns() {
         return namedColumns;
     }
 
+    @Nullable
     public DynamicColumnDescription getDynamicColumn() {
         return dynamicColumn;
     }u}(jUF (8adb21b448fa2a5a257bb87fb7a4c6fc9e50e566jF catlasdb-client/src/main/java/com/palantir/atlasdb/table/description/render/StreamStoreRenderer.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Frender%2FStreamStoreRenderer.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Frender%2FStreamStoreRenderer.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Frender%2FStreamStoreRenderer.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X
  @@ -362,7 +362,8 @@ private void putMetadataAndHashIndexTask() {
                     line("}");
                     line("putHashIndexTask(t, rowsToStoredMetadata);");
                     line();
-                    line("Map<", StreamMetadataRow, ", StreamMetadata> rowsToMetadata = new HashMap<>();");
+                    line("Map<", StreamMetadataRow, ", StreamMetadata> rowsToMetadata =");
+                    line("        Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());");
                     line("rowsToMetadata.putAll(rowsToStoredMetadata);");
                     line("rowsToMetadata.putAll(rowsToUnstoredMetadata);");
                     line("mdTable.putMetadata(rowsToMetadata);");
@@ -462,7 +463,10 @@ private void getMetadata() {
                             "Map<",
                             StreamMetadataRow,
                             ", StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));");
-                    line("Map<", StreamId, ", StreamMetadata> ret = new HashMap<>();");
+                    line(
+                            "Map<",
+                            StreamId,
+                            ", StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());");
                     line("for (Map.Entry<", StreamMetadataRow, ", StreamMetadata> e : metadatas.entrySet()) {");
                     {
                         line("ret.put(e.getKey().getId(), e.getValue());");
@@ -494,7 +498,7 @@ private void lookupStreamIdsByHash() {
                             ", ",
                             StreamHashAidxColumnValue,
                             "> m = idx.getRowsMultimap(rows);");
-                    line("Map<", StreamId, ", Sha256Hash> hashForStreams = new HashMap<>();");
+                    line("Map<", StreamId, ", Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());");
                     line("for (", StreamHashAidxRow, " r : m.keySet()) {");
                     {
                         line("for (", StreamHashAidxColumnValue, " v : m.get(r)) {");
@@ -535,7 +539,7 @@ private void lookupStreamIdsByHash() {
             private void getHashIndexRowsForHashes() {
                 line("private Set<", StreamHashAidxRow, "> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {");
                 {
-                    line("Set<", StreamHashAidxRow, "> rows = new HashSet<>();");
+                    line("Set<", StreamHashAidxRow, "> rows = Sets.newHashSetWithExpectedSize(hashes.size());");
                     line("for (Sha256Hash h : hashes) {");
                     {
                         line("rows.add(", StreamHashAidxRow, ".of(h));");u}(jUF (3759f65a37646f6fbe6a02bde98fbb9e88c58ec5jF Zatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CachingTransaction.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -15,8 +15,8 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSortedMap;
 import com.google.common.collect.Iterables;
@@ -63,7 +63,7 @@ public CachingTransaction(Transaction delegate) {
 
     public CachingTransaction(Transaction delegate, long maxCachedCells) {
         this.delegate = delegate;
-        cellCache = CacheBuilder.newBuilder()
+        cellCache = Caffeine.newBuilder()
                 .maximumSize(maxCachedCells)
                 .softValues()
                 .recordStats()u}(jUF (ffcff3662b5f930a1b2f09879755c6fb0014cd88jF `atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ConflictDetectionManager.javajF modifiedjF KjF KjF K
jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManager.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManager.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManager.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X$  @@ -15,9 +15,9 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.CacheLoader;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import java.util.Map;
@@ -39,7 +39,7 @@ public class ConflictDetectionManager {
      *  (This has always been the behavior of this class; I'm simply calling it out)
      */
     public ConflictDetectionManager(CacheLoader<TableReference, Optional<ConflictHandler>> loader) {
-        this.cache = CacheBuilder.newBuilder().maximumSize(100_000).build(loader);
+        this.cache = Caffeine.newBuilder().maximumSize(100_000).build(loader);
     }
 
     public void warmCacheWith(Map<TableReference, Optional<ConflictHandler>> preload) {
@@ -51,6 +51,6 @@ public Map<TableReference, Optional<ConflictHandler>> getCachedValues() {
     }
 
     public Optional<ConflictHandler> get(TableReference tableReference) {
-        return cache.getUnchecked(tableReference);
+        return cache.get(tableReference);
     }
 }u}(jUF (11eda8300ddf8db89380d1fcb74052090f9cf9e9jF aatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ConflictDetectionManagers.javajF modifiedjF K
jF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManagers.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManagers.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManagers.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X3
  @@ -15,10 +15,8 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
-import com.google.common.cache.CacheLoader;
 import com.google.common.collect.Maps;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.logging.LoggingArgs;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
@@ -32,12 +30,7 @@ public final class ConflictDetectionManagers {
     private ConflictDetectionManagers() {}
 
     public static ConflictDetectionManager createWithNoConflictDetection() {
-        return new ConflictDetectionManager(new CacheLoader<>() {
-            @Override
-            public Optional<ConflictHandler> load(TableReference tableReference) throws Exception {
-                return Optional.of(ConflictHandler.IGNORE_ALL);
-            }
-        });
+        return new ConflictDetectionManager(tableReference -> Optional.of(ConflictHandler.IGNORE_ALL));
     }
 
     /**
@@ -65,18 +58,15 @@ public static ConflictDetectionManager create(KeyValueService kvs) {
     }
 
     private static ConflictDetectionManager create(KeyValueService kvs, boolean warmCache) {
-        ConflictDetectionManager conflictDetectionManager = new ConflictDetectionManager(new CacheLoader<>() {
-            @Override
-            public Optional<ConflictHandler> load(TableReference tableReference) throws Exception {
-                byte[] metadata = kvs.getMetadataForTable(tableReference);
-                if (metadata.length == 0) {
-                    log.error(
-                            "Tried to make a transaction over a table that has no metadata: {}.",
-                            LoggingArgs.tableRef("tableReference", tableReference));
-                    return Optional.empty();
-                } else {
-                    return Optional.of(getConflictHandlerFromMetadata(metadata));
-                }
+        ConflictDetectionManager conflictDetectionManager = new ConflictDetectionManager(tableReference -> {
+            byte[] metadata = kvs.getMetadataForTable(tableReference);
+            if (metadata.length == 0) {
+                log.error(
+                        "Tried to make a transaction over a table that has no metadata: {}.",
+                        LoggingArgs.tableRef("tableReference", tableReference));
+                return Optional.empty();
+            } else {
+                return Optional.of(getConflictHandlerFromMetadata(metadata));
             }
         });
         if (warmCache) {u}(jUF (02903d03f745dbe6781ac51c6ebebc98782ed544jF datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/NoDuplicateWritesTransaction.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FNoDuplicateWritesTransaction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FNoDuplicateWritesTransaction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FNoDuplicateWritesTransaction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -15,9 +15,8 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.io.BaseEncoding;
 import com.palantir.atlasdb.keyvalue.api.Cell;
@@ -31,7 +30,6 @@
 import java.util.HashMap;
 import java.util.Map;
 import java.util.Set;
-import java.util.concurrent.ExecutionException;
 
 /**
  * Disallows the same cell from being written twice with different values within
@@ -43,13 +41,8 @@ public class NoDuplicateWritesTransaction extends ForwardingTransaction {
 
     final Transaction delegate;
     final ImmutableSet<TableReference> noDoubleWritesTables;
-    final LoadingCache<TableReference, Map<Cell, byte[]>> writes = CacheBuilder.newBuilder()
-            .build(new CacheLoader<TableReference, Map<Cell, byte[]>>() {
-                @Override
-                public Map<Cell, byte[]> load(TableReference input) {
-                    return Collections.synchronizedMap(new HashMap<>());
-                }
-            });
+    final LoadingCache<TableReference, Map<Cell, byte[]>> writes =
+            Caffeine.newBuilder().build(input -> Collections.synchronizedMap(new HashMap<>()));
 
     public NoDuplicateWritesTransaction(Transaction delegate, Iterable<TableReference> noDoubleWritesTables) {
         this.delegate = delegate;
@@ -81,12 +74,7 @@ public void delete(TableReference tableRef, Set<Cell> keys) {
 
     private void validateWrites(TableReference tableRef, Map<Cell, byte[]> values) {
         if (noDoubleWritesTables.contains(tableRef)) {
-            Map<Cell, byte[]> table;
-            try {
-                table = writes.get(tableRef);
-            } catch (ExecutionException e) {
-                throw new RuntimeException(e.getCause());
-            }
+            Map<Cell, byte[]> table = writes.get(tableRef);
             for (Map.Entry<Cell, byte[]> value : values.entrySet()) {
                 byte[] newValue = value.getValue();
                 byte[] oldValue = table.get(value.getKey());u}(jUF (5c2151332395c0abdd30bf0e9e81f9ea340e0275jF latlasdb-client/src/test/java/com/palantir/atlasdb/table/description/generated/GenericRangeScanTestTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FGenericRangeScanTestTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FGenericRangeScanTestTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FGenericRangeScanTestTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -782,6 +783,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -805,5 +807,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "kqedl2mBeAbedzXlMy+Imw==";
+    static String __CLASS_HASH = "YkaZuzFs8LBGmT3/H/I5eg==";
 }u}(jUF (3ca57c907f8e38fa47c80cd5637bb2936c356d75jF eatlasdb-client/src/test/java/com/palantir/atlasdb/table/description/generated/RangeScanTestTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FRangeScanTestTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FRangeScanTestTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FRangeScanTestTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -720,6 +721,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -743,5 +745,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "T2bysa8OZ+/WjRrXnIqCPA==";
+    static String __CLASS_HASH = "1i+tNWsmUREmFNoXh6QUeg==";
 }u}(jUF (fc7b8e44b9e02cbd50722b39931ad66604c4fc42jF atlasdb-commons/build.gradlejF modifiedjF KjF K jF KjF phttps://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fbuild.gradlejF ohttps://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fbuild.gradlejF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fbuild.gradle?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XY  @@ -16,6 +16,7 @@ dependencies {
     }
 
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
+    implementation 'com.github.ben-manes.caffeine:caffeine'
     implementation 'com.google.errorprone:error_prone_annotations'
     implementation 'com.google.guava:guava'
     implementation 'com.palantir.safe-logging:safe-logging'u}(jUF (7d30fe4fd283df55958201d1f120806d5611aa18jF ^atlasdb-commons/src/main/java/com/palantir/common/exception/TableMappingNotFoundException.javajF modifiedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fexception%2FTableMappingNotFoundException.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fexception%2FTableMappingNotFoundException.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fexception%2FTableMappingNotFoundException.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -23,4 +23,8 @@ public TableMappingNotFoundException(String msg) {
     public TableMappingNotFoundException(Throwable cause) {
         super(cause);
     }
+
+    public TableMappingNotFoundException(String msg, Throwable cause) {
+        super(msg, cause);
+    }
 }u}(jUF (e8b18dde40473e321f4bc1e4cfc195d6eef76a8bjF Matlasdb-commons/src/main/java/com/palantir/util/MutuallyExclusiveSetLock.javajF modifiedjF K
jF KjF K$jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FMutuallyExclusiveSetLock.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FMutuallyExclusiveSetLock.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FMutuallyExclusiveSetLock.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -15,11 +15,9 @@
  */
 package com.palantir.util;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Sets;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.ArrayList;
@@ -54,17 +52,9 @@
  * @author carrino
  */
 public class MutuallyExclusiveSetLock<T> {
-    private final boolean fair;
     private final Comparator<? super T> comparator;
-    private final Set<Thread> threadSet = Sets.newSetFromMap(new ConcurrentHashMap<Thread, Boolean>());
-    private final LoadingCache<T, ReentrantLock> syncMap = CacheBuilder.newBuilder()
-            .weakValues()
-            .build(new CacheLoader<T, ReentrantLock>() {
-                @Override
-                public ReentrantLock load(T key) {
-                    return new ReentrantLock(fair);
-                }
-            });
+    private final Set<Thread> threadSet = ConcurrentHashMap.newKeySet();
+    private final LoadingCache<T, ReentrantLock> syncMap;
 
     /**
      * Constructs a new <code>MutuallyExclusiveSetLock</code>
@@ -102,12 +92,12 @@ public MutuallyExclusiveSetLock(boolean fair) {
      */
     @Deprecated
     public MutuallyExclusiveSetLock(boolean fair, Comparator<? super T> comparator) {
-        this.fair = fair;
         this.comparator = comparator;
+        this.syncMap = Caffeine.newBuilder().weakValues().build(key -> new ReentrantLock(fair));
     }
 
     public static <T extends Comparable<? super T>> MutuallyExclusiveSetLock<T> create(boolean fair) {
-        return new MutuallyExclusiveSetLock<T>(fair);
+        return new MutuallyExclusiveSetLock<>(fair);
     }
 
     /**
@@ -119,7 +109,7 @@ public static <T extends Comparable<? super T>> MutuallyExclusiveSetLock<T> crea
      * @param comparator a <code>java.util.Comparator</code> to use in determining lock order.
      */
     public static <T> MutuallyExclusiveSetLock<T> createWithComparator(boolean fair, Comparator<? super T> comparator) {
-        return new MutuallyExclusiveSetLock<T>(fair, comparator);
+        return new MutuallyExclusiveSetLock<>(fair, comparator);
     }
 
     /**
@@ -130,7 +120,7 @@ public static <T> MutuallyExclusiveSetLock<T> createWithComparator(boolean fair,
      */
     public boolean isLocked(Iterable<T> items) {
         for (T t : items) {
-            ReentrantLock lock = syncMap.getUnchecked(t);
+            ReentrantLock lock = syncMap.get(t);
             if (!lock.isHeldByCurrentThread()) {
                 return false;
             }
@@ -157,7 +147,7 @@ public LockState<T> lockOnObjects(Iterable<T> lockObjects) {
             lock.lock();
         }
         threadSet.add(Thread.currentThread());
-        return new LockState<T>(sortedLocks.values(), this);
+        return new LockState<>(sortedLocks.values(), this);
     }
 
     public LockState<T> lockOnObjectsInterruptibly(Iterable<T> lockObjects) throws InterruptedException {
@@ -170,7 +160,7 @@ public LockState<T> lockOnObjectsInterruptibly(Iterable<T> lockObjects) throws I
                 lock.lockInterruptibly();
                 toUnlock.add(lock);
             }
-            LockState<T> ret = new LockState<T>(sortedLocks.values(), this);
+            LockState<T> ret = new LockState<>(sortedLocks.values(), this);
             threadSet.add(Thread.currentThread());
             toUnlock.clear();
             return ret;
@@ -201,7 +191,7 @@ private ImmutableSet<T> validateLockInput(Iterable<T> lockObjects) {
         }
 
         // verify that the compareTo and equals are consistent in that we are always locking on all objects
-        SortedSet<T> treeSet = new TreeSet<T>(comparator);
+        SortedSet<T> treeSet = new TreeSet<>(comparator);
         treeSet.addAll(hashSet);
         if (treeSet.size() != hashSet.size()) {
             throw new SafeIllegalArgumentException("The number of elements using .equals and compareTo differ. "
@@ -242,9 +232,9 @@ public void unlock(LockState<T> lockState) {
     }
 
     private SortedMap<T, ReentrantLock> getSortedLocks(Collection<T> lockObjects) {
-        final TreeMap<T, ReentrantLock> sortedLocks = new TreeMap<T, ReentrantLock>(comparator);
+        final TreeMap<T, ReentrantLock> sortedLocks = new TreeMap<>(comparator);
         for (T t : lockObjects) {
-            sortedLocks.put(t, syncMap.getUnchecked(t));
+            sortedLocks.put(t, syncMap.get(t));
         }
         return sortedLocks;
     }u}(jUF (e01f8f7d37ce43a9eb4672184fb9c3abd935633ejF eatlasdb-commons/src/test/java/com/palantir/common/concurrent/CheckedRejectionExecutorServiceTest.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X#
  @@ -19,31 +19,38 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.doThrow;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.google.common.util.concurrent.Futures;
 import java.util.concurrent.Callable;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.RejectedExecutionException;
 import org.junit.Test;
+import org.mockito.MockMakers;
 
 public class CheckedRejectionExecutorServiceTest {
     private static final Runnable DO_NOTHING = () -> {};
     private static final Callable<Integer> RETURN_ONE = () -> 1;
-    private static final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION = new RejectedExecutionException();
+    private static final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION =
+            new RejectedExecutionException("test");
 
-    private final ExecutorService delegate = mock(ExecutorService.class);
+    private final ExecutorService delegate =
+            mock(ExecutorService.class, withSettings().mockMaker(MockMakers.SUBCLASS));
     private final CheckedRejectionExecutorService checkedRejectionExecutor =
             new CheckedRejectionExecutorService(delegate);
 
     @Test
     public void passesCallThroughExecute() throws CheckedRejectedExecutionException {
         checkedRejectionExecutor.execute(DO_NOTHING);
         verify(delegate, times(1)).execute(DO_NOTHING);
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
@@ -52,22 +59,27 @@ public void passesCallThroughSubmit() throws CheckedRejectedExecutionException {
         assertThat(Futures.getUnchecked(checkedRejectionExecutor.submit(RETURN_ONE)))
                 .isEqualTo(1);
         verify(delegate, times(1)).submit(RETURN_ONE);
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
     public void propagatesRejectionThroughExecute() {
-        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).execute(any());
+        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).execute(any(Runnable.class));
         assertThatThrownBy(() -> checkedRejectionExecutor.execute(DO_NOTHING))
                 .isInstanceOf(CheckedRejectedExecutionException.class)
                 .hasCause(REJECTED_EXECUTION_EXCEPTION);
+        verify(delegate).execute(eq(DO_NOTHING));
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
     @SuppressWarnings("unchecked") // Mocks
     public void propagatesRejectionThroughSubmit() {
-        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).submit(any(Callable.class));
+        when(delegate.submit(any(Callable.class))).thenThrow(REJECTED_EXECUTION_EXCEPTION);
         assertThatThrownBy(() -> checkedRejectionExecutor.submit(RETURN_ONE))
                 .isInstanceOf(CheckedRejectedExecutionException.class)
                 .hasCause(REJECTED_EXECUTION_EXCEPTION);
+        verify(delegate).submit(eq(RETURN_ONE));
+        verifyNoMoreInteractions(delegate);
     }
 }u}(jUF (d0f9372cc1f1f0ca2951aae2549e2f3c289903e7jF Xatlasdb-commons/src/test/java/com/palantir/common/concurrent/CoalescingSupplierTest.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -24,6 +24,7 @@
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
@@ -49,12 +50,14 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
+import org.mockito.MockMakers;
 
 @RunWith(Parameterized.class)
 public class CoalescingSupplierTest {
     private static final int DEFAULT_VALUE = 123;
 
-    private final Supplier<Integer> delegate = mock(Supplier.class);
+    private final Supplier<Integer> delegate =
+            mock(Supplier.class, withSettings().mockMaker(MockMakers.SUBCLASS));
     private final FreezableSupplier freezableDelegate = new FreezableSupplier(delegate);
     private final CoalescingSupplier<Integer> coalescing = new CoalescingSupplier<>(freezableDelegate);
 u}(jUF (9146e63073d86fe3d770ab7103a6eb65623b8820jF Watlasdb-commons/src/test/java/com/palantir/common/proxy/ExperimentRunningProxyTest.javajF modifiedjF K	jF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X-  @@ -21,6 +21,7 @@
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import java.lang.reflect.Proxy;
 import java.time.Clock;
@@ -31,18 +32,21 @@
 import java.util.function.Supplier;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class ExperimentRunningProxyTest {
     private static final int EXPERIMENTAL_RESULT = 123;
     private static final int FALLBACK_RESULT = 1;
     private static final RuntimeException RUNTIME_EXCEPTION = new RuntimeException("foo");
 
-    private final IntSupplier experimentalIntSupplier = mock(IntSupplier.class);
-    private final Supplier<IntSupplier> experimentSupplier = mock(Supplier.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private final IntSupplier experimentalIntSupplier = mock(IntSupplier.class, mockSettings);
+    private final Supplier<IntSupplier> experimentSupplier = mock(Supplier.class, mockSettings);
     private final IntSupplier fallbackIntSupplier = () -> FALLBACK_RESULT;
-    private final BooleanSupplier useExperimental = mock(BooleanSupplier.class);
-    private final BooleanSupplier enableFallback = mock(BooleanSupplier.class);
-    private final Clock clock = mock(Clock.class);
+    private final BooleanSupplier useExperimental = mock(BooleanSupplier.class, mockSettings);
+    private final BooleanSupplier enableFallback = mock(BooleanSupplier.class, mockSettings);
+    private final Clock clock = mock(Clock.class, mockSettings);
     private final AtomicLong errorCounter = new AtomicLong();
 
     private final IntSupplier proxyInstance = intSupplierForProxy(new ExperimentRunningProxy<>(u}(jUF (b0f2716a61e018a00bbe37c55b0a8985af943d96jF Watlasdb-commons/src/test/java/com/palantir/common/proxy/PredicateSwitchedProxyTest.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X~  @@ -19,14 +19,18 @@
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.withSettings;
 
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.function.IntConsumer;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class PredicateSwitchedProxyTest {
-    private final IntConsumer decorated = mock(IntConsumer.class);
-    private final IntConsumer delegate = mock(IntConsumer.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private final IntConsumer decorated = mock(IntConsumer.class, mockSettings);
+    private final IntConsumer delegate = mock(IntConsumer.class, mockSettings);
 
     private final AtomicBoolean atomicBoolean = new AtomicBoolean(false);
 u}(jUF (afb4f7f151215eb0eb16fab26719c6f0358957e5jF `atlasdb-commons/src/test/java/com/palantir/common/proxy/ReplaceIfExceptionMatchingProxyTest.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF Xl  @@ -29,16 +29,17 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.mockito.Mock;
+import org.mockito.MockMakers;
 import org.mockito.junit.MockitoJUnitRunner;
 
 // Mock is used as a convenient supplier, alternatives are rather verbose
 @SuppressWarnings("DirectInvocationOnMock")
 @RunWith(MockitoJUnitRunner.class)
 public class ReplaceIfExceptionMatchingProxyTest {
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private TestInterface delegate;
 
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private Supplier<TestInterface> supplier;
 
     interface TestInterface {u}(jUF (d8fe3c284ed462a646f9db9df6e46865f71c8b7fjF Oatlasdb-commons/src/test/java/com/palantir/util/CachedComposedSupplierTest.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -16,7 +16,9 @@
 package com.palantir.util;
 
 import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.concurrent.ExecutorService;
@@ -25,7 +27,7 @@
 import java.util.function.Supplier;
 import org.junit.Before;
 import org.junit.Test;
-import org.mockito.Mockito;
+import org.mockito.MockMakers;
 
 public class CachedComposedSupplierTest {
     private long counter;
@@ -37,7 +39,7 @@ public class CachedComposedSupplierTest {
     public void setup() {
         counter = 0;
         supplierCounter = 0;
-        mockVersionedSupplier = Mockito.mock(Supplier.class);
+        mockVersionedSupplier = mock(Supplier.class, withSettings().mockMaker(MockMakers.SUBCLASS));
         testSupplier = new CachedComposedSupplier<>(this::countingFunction, mockVersionedSupplier);
     }
 u}(jUF (21ad962d9f363b09efeaba7f674e27e337cb763ajF Katlasdb-commons/src/test/java/com/palantir/util/SafeShutdownRunnerTest.javajF modifiedjF KjF KjF K
jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -24,6 +24,7 @@
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import java.time.Duration;
@@ -32,14 +33,17 @@
 import java.util.stream.Stream;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class SafeShutdownRunnerTest {
     private static final RuntimeException EXCEPTION_1 = new RuntimeException("test");
     private static final RuntimeException EXCEPTION_2 = new RuntimeException("bleh");
 
-    private Runnable mockRunnable = mock(Runnable.class);
-    private Runnable throwingRunnable = mock(Runnable.class);
-    private Runnable blockingUninterruptibleRunnable = mock(Runnable.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private Runnable mockRunnable = mock(Runnable.class, mockSettings);
+    private Runnable throwingRunnable = mock(Runnable.class, mockSettings);
+    private Runnable blockingUninterruptibleRunnable = mock(Runnable.class, mockSettings);
 
     @Before
     public void setupMocks() {u}(jUF (66bef959146e2dc5dd5452e6f9606c9e4120c4f4jF Datlasdb-commons/src/test/java/com/palantir/util/TimedRunnerTest.javajF modifiedjF K	jF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X	  @@ -23,19 +23,23 @@
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.util.TimedRunner.TaskContext;
 import java.time.Duration;
 import java.util.concurrent.Callable;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public final class TimedRunnerTest {
     private static final RuntimeException EXCEPTION_1 = new RuntimeException("test");
     private static final RuntimeException EXCEPTION_2 = new RuntimeException("bleh");
 
-    private Runnable noOpRunnable = mock(Runnable.class);
-    private Runnable throwingRunnable = mock(Runnable.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private Runnable noOpRunnable = mock(Runnable.class, mockSettings);
+    private Runnable throwingRunnable = mock(Runnable.class, mockSettings);
 
     @Before
     public void setupMocks() {
@@ -46,7 +50,7 @@ public void setupMocks() {
     public void runnerRunsOneTask() throws Exception {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
 
-        Callable<Integer> task = mock(Callable.class);
+        Callable<Integer> task = mock(Callable.class, mockSettings);
         when(task.call()).thenReturn(5);
         int result = runner.run(TaskContext.create(task, noOpRunnable));
 
@@ -58,7 +62,7 @@ public void runnerRunsOneTask() throws Exception {
     @Test
     public void exceptionsAreThrownWhenRunningSingleton() {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
-        Runnable failureHandler = mock(Runnable.class);
+        Runnable failureHandler = mock(Runnable.class, mockSettings);
 
         assertThatThrownBy(() -> runner.run(TaskContext.createRunnable(throwingRunnable, failureHandler)))
                 .isEqualTo(EXCEPTION_1);
@@ -68,7 +72,7 @@ public void exceptionsAreThrownWhenRunningSingleton() {
     @Test
     public void correctSuppressedExceptionsAreThrownIfFailureHandlerThrows() {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
-        Runnable failureHandler = mock(Runnable.class);
+        Runnable failureHandler = mock(Runnable.class, mockSettings);
         doThrow(EXCEPTION_2).when(failureHandler).run();
 
         assertThatThrownBy(() -> runner.run(TaskContext.createRunnable(throwingRunnable, failureHandler)))u}(jUF (1f8d140f2fcd68b79edcbd2a6f52017316caa266jF ^atlasdb-config/src/main/java/com/palantir/atlasdb/config/ShouldRunBackgroundSweepSupplier.javajF removedjF K jF K*jF K*jF https://github.com/palantir/atlasdb/blob/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.javajF https://github.com/palantir/atlasdb/raw/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.java?ref=7798b4ff8448588fecb6aa32284dd0ed8819f7d1jF X  @@ -1,42 +0,0 @@
-/*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.config;
-
-import java.util.function.BooleanSupplier;
-import java.util.function.Supplier;
-
-/**
- * Synthesises provided install and runtime configurations, and uses this to decide whether the background sweeper
- * should run. Specifically:
- *
- * <ul>
- *     <li>if the background sweeper has been explicitly enabled or disabled, use that setting;</li>
- *     <li>otherwise disable background sweep</li>
- * </ul>
- */
-public class ShouldRunBackgroundSweepSupplier implements BooleanSupplier {
-    private final Supplier<SweepConfig> runtimeConfigSupplier;
-
-    public ShouldRunBackgroundSweepSupplier(Supplier<SweepConfig> runtimeConfig) {
-        this.runtimeConfigSupplier = runtimeConfig;
-    }
-
-    @Override
-    public boolean getAsBoolean() {
-        return runtimeConfigSupplier.get().enabled().orElse(false);
-    }
-}u
     }(jUF (8e383ff5530f7a77f005d2ff7e7e17df90fef15bjF Iatlasdb-config/src/main/java/com/palantir/atlasdb/config/SweepConfig.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -34,7 +34,10 @@ public abstract class SweepConfig {
      * If unspecified, AtlasDB will decide whether to run the background sweeper or not. This may depend on factors
      * elsewhere in configuration.
      */
-    public abstract Optional<Boolean> enabled();
+    @Value.Default
+    public boolean enabled() {
+        return false;
+    }
 
     // TODO handle live reload
     /**u}(jUF (df57e9fd3c6376b49fd3c1adb77db41b476aeffejF datlasdb-config/src/main/java/com/palantir/atlasdb/factory/DefaultLockAndTimestampServiceFactory.javajF modifiedjF K6jF KjF KIjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X$  @@ -96,6 +96,7 @@
 import java.util.Set;
 import java.util.concurrent.CompletableFuture;
 import java.util.function.Consumer;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import javax.ws.rs.ClientErrorException;
 
@@ -107,7 +108,7 @@ public final class DefaultLockAndTimestampServiceFactory implements LockAndTimes
     private final MetricsManager metricsManager;
     private final AtlasDbConfig config;
     private final Refreshable<AtlasDbRuntimeConfig> runtimeConfig;
-    private final Consumer<Object> env;
+    private final Consumer<Object> registrar;
     private final Supplier<LockService> lock;
     private final Supplier<ManagedTimestampService> time;
     private final TimestampStoreInvalidator invalidator;
@@ -118,11 +119,13 @@ public final class DefaultLockAndTimestampServiceFactory implements LockAndTimes
     private final Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders;
     private final Set<Schema> schemas;
 
+    private final Function<TimelockService, TimeLockClient> timelockClientFactory;
+
     public DefaultLockAndTimestampServiceFactory(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -132,10 +135,42 @@ public DefaultLockAndTimestampServiceFactory(
             Optional<TimeLockFeedbackBackgroundTask> timeLockFeedbackBackgroundTask,
             Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders,
             Set<Schema> schemas) {
+        this(
+                metricsManager,
+                config,
+                runtimeConfig,
+                registrar,
+                lock,
+                time,
+                invalidator,
+                userAgent,
+                lockDiagnosticComponents,
+                reloadingFactory,
+                timeLockFeedbackBackgroundTask,
+                timelockRequestBatcherProviders,
+                schemas,
+                TimeLockClient::createDefault);
+    }
+
+    public DefaultLockAndTimestampServiceFactory(
+            MetricsManager metricsManager,
+            AtlasDbConfig config,
+            Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
+            Consumer<Object> registrar,
+            Supplier<LockService> lock,
+            Supplier<ManagedTimestampService> time,
+            TimestampStoreInvalidator invalidator,
+            UserAgent userAgent,
+            Optional<LockDiagnosticComponents> lockDiagnosticComponents,
+            ReloadingFactory reloadingFactory,
+            Optional<TimeLockFeedbackBackgroundTask> timeLockFeedbackBackgroundTask,
+            Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders,
+            Set<Schema> schemas,
+            Function<TimelockService, TimeLockClient> timelockClientFactory) {
         this.metricsManager = metricsManager;
         this.config = config;
         this.runtimeConfig = runtimeConfig;
-        this.env = env;
+        this.registrar = registrar;
         this.lock = lock;
         this.time = time;
         this.invalidator = invalidator;
@@ -145,6 +180,7 @@ public DefaultLockAndTimestampServiceFactory(
         this.timeLockFeedbackBackgroundTask = timeLockFeedbackBackgroundTask;
         this.timelockRequestBatcherProviders = timelockRequestBatcherProviders;
         this.schemas = schemas;
+        this.timelockClientFactory = timelockClientFactory;
     }
 
     @Override
@@ -153,7 +189,7 @@ public LockAndTimestampServices createLockAndTimestampServices() {
                 metricsManager,
                 config,
                 runtimeConfig,
-                env,
+                registrar,
                 lock,
                 time,
                 invalidator,
@@ -166,9 +202,8 @@ public LockAndTimestampServices createLockAndTimestampServices() {
         return withMetrics(metricsManager, withRefreshingLockService(lockAndTimestampServices));
     }
 
-    private static LockAndTimestampServices withRefreshingLockService(
-            LockAndTimestampServices lockAndTimestampServices) {
-        TimeLockClient timeLockClient = TimeLockClient.createDefault(lockAndTimestampServices.timelock());
+    private LockAndTimestampServices withRefreshingLockService(LockAndTimestampServices lockAndTimestampServices) {
+        TimeLockClient timeLockClient = timelockClientFactory.apply(lockAndTimestampServices.timelock());
         ProfilingTimelockService profilingService = ProfilingTimelockService.create(timeLockClient);
         return ImmutableLockAndTimestampServices.builder()
                 .from(lockAndTimestampServices)
@@ -198,7 +233,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -211,7 +246,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
         AtlasDbRuntimeConfig initialRuntimeConfig = runtimeConfig.get();
         assertNoSpuriousTimeLockBlockInRuntimeConfig(config, initialRuntimeConfig);
         if (config.leader().isPresent()) {
-            return createRawLeaderServices(metricsManager, config.leader().get(), env, lock, time, userAgent);
+            return createRawLeaderServices(metricsManager, config.leader().get(), registrar, lock, time, userAgent);
         } else if (config.timestamp().isPresent() && config.lock().isPresent()) {
             return createRawRemoteServices(metricsManager, config, runtimeConfig, userAgent);
         } else if (TransactionManagers.isUsingTimeLock(config, initialRuntimeConfig)) {
@@ -227,7 +262,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
                     timelockRequestBatcherProviders,
                     knownSchemas);
         } else {
-            return createRawEmbeddedServices(metricsManager, env, lock, time);
+            return createRawEmbeddedServices(metricsManager, registrar, lock, time);
         }
     }
 
@@ -412,13 +447,13 @@ private static Supplier<InternalMultiClientConjureTimelockService> getMultiClien
     private static LockAndTimestampServices createRawLeaderServices(
             MetricsManager metricsManager,
             LeaderConfig leaderConfig,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             UserAgent userAgent) {
         // Create local services, that may or may not end up being registered in an Consumer<Object>.
         LocalPaxosServices localPaxosServices =
-                Leaders.createAndRegisterLocalServices(metricsManager, env, leaderConfig, userAgent);
+                Leaders.createAndRegisterLocalServices(metricsManager, registrar, leaderConfig, userAgent);
 
         LeadershipCoordinator leadershipCoordinator = localPaxosServices.leadershipCoordinator();
         LockService localLock =
@@ -432,9 +467,9 @@ private static LockAndTimestampServices createRawLeaderServices(
         TimestampService localTime = getTimestampFacade(managedTimestampProxy);
         TimestampManagementService localManagement = getTimestampManagementFacade(managedTimestampProxy);
 
-        env.accept(localLock);
-        env.accept(localTime);
-        env.accept(localManagement);
+        registrar.accept(localLock);
+        registrar.accept(localTime);
+        registrar.accept(localManagement);
 
         // Create remote services, that may end up calling our own local services.
         ImmutableServerListConfig serverListConfig = ImmutableServerListConfig.builder()
@@ -586,7 +621,7 @@ private static LockAndTimestampServices createRawRemoteServices(
 
     private static LockAndTimestampServices createRawEmbeddedServices(
             MetricsManager metricsManager,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> managedTimestampServiceSupplier) {
         LockService lockService =
@@ -599,9 +634,9 @@ private static LockAndTimestampServices createRawEmbeddedServices(
         TimestampManagementService timestampManagementService = ServiceCreator.instrumentService(
                 metricsManager.getRegistry(), managedTimestampService, TimestampManagementService.class);
 
-        env.accept(lockService);
-        env.accept(timeService);
-        env.accept(timestampManagementService);
+        registrar.accept(lockService);
+        registrar.accept(timeService);
+        registrar.accept(timestampManagementService);
 
         return ImmutableLockAndTimestampServices.builder()
                 .lock(lockService)u}(jUF (92cee3c0379971de0a91702380e2b466da96ff6bjF Fatlasdb-config/src/main/java/com/palantir/atlasdb/factory/Leaders.javajF modifiedjF KjF KjF K
jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -79,13 +79,13 @@ private Leaders() {
      * service.
      */
     public static LocalPaxosServices createAndRegisterLocalServices(
-            MetricsManager metricsManager, Consumer<Object> env, LeaderConfig config, UserAgent userAgent) {
+            MetricsManager metricsManager, Consumer<Object> registrar, LeaderConfig config, UserAgent userAgent) {
         LocalPaxosServices localPaxosServices = createInstrumentedLocalServices(metricsManager, config, userAgent);
 
-        env.accept(localPaxosServices.ourAcceptor());
-        env.accept(localPaxosServices.ourLearner());
-        env.accept(localPaxosServices.localPingableLeader());
-        env.accept(new NotCurrentLeaderExceptionMapper());
+        registrar.accept(localPaxosServices.ourAcceptor());
+        registrar.accept(localPaxosServices.ourLearner());
+        registrar.accept(localPaxosServices.localPingableLeader());
+        registrar.accept(new NotCurrentLeaderExceptionMapper());
         return localPaxosServices;
     }
 u}(jUF (37473508e06c194b315e01d89ff08da1a5152705jF Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javajF modifiedjF KjF K$jF K6jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XQ  @@ -40,7 +40,6 @@
 import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
 import com.palantir.atlasdb.config.ImmutableAtlasDbConfig;
 import com.palantir.atlasdb.config.ServerListConfig;
-import com.palantir.atlasdb.config.ShouldRunBackgroundSweepSupplier;
 import com.palantir.atlasdb.config.SweepConfig;
 import com.palantir.atlasdb.config.TimeLockClientConfig;
 import com.palantir.atlasdb.config.TimeLockRequestBatcherProviders;
@@ -79,7 +78,6 @@
 import com.palantir.atlasdb.sweep.SpecificTableSweeper;
 import com.palantir.atlasdb.sweep.SweepBatchConfig;
 import com.palantir.atlasdb.sweep.SweepTaskRunner;
-import com.palantir.atlasdb.sweep.SweeperServiceImpl;
 import com.palantir.atlasdb.sweep.metrics.LegacySweepMetrics;
 import com.palantir.atlasdb.sweep.queue.MultiTableSweepQueueWriter;
 import com.palantir.atlasdb.sweep.queue.TargetedSweeper;
@@ -131,6 +129,7 @@
 import com.palantir.lock.client.TimeLockClient;
 import com.palantir.lock.client.metrics.TimeLockFeedbackBackgroundTask;
 import com.palantir.lock.impl.LockServiceImpl;
+import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -200,6 +199,11 @@ boolean allSafeForLogging() {
         return false;
     }
 
+    @Value.Default
+    Function<TimelockService, TimeLockClient> defaultTimelockClientFactory() {
+        return TimeLockClient::createDefault;
+    }
+
     abstract Optional<LockAndTimestampServiceFactory> lockAndTimestampServiceFactory();
 
     abstract UserAgent userAgent();
@@ -387,7 +391,8 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                         reloadingFactory(),
                         timeLockFeedbackBackgroundTask,
                         timelockRequestBatcherProviders(),
-                        schemas()));
+                        schemas(),
+                        defaultTimelockClientFactory()));
         LockAndTimestampServices lockAndTimestampServices = factory.createLockAndTimestampServices();
         adapter.setTimestampService(lockAndTimestampServices.managedTimestampService());
 
@@ -534,7 +539,7 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
         transactionManager.registerClosingCallback(targetedSweep::close);
 
         initializeCloseable(
-                () -> initializeSweepEndpointAndBackgroundProcess(
+                () -> initializeSweepBackgroundProcess(
                         metricsManager,
                         config(),
                         runtime,
@@ -809,11 +814,11 @@ static boolean timeLockMigrationCompleteIfNeeded(LockAndTimestampServices lockAn
                 .orElse(true);
     }
 
-    private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess(
+    private static BackgroundSweeperImpl initializeSweepBackgroundProcess(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Supplier<AtlasDbRuntimeConfig> runtimeConfigSupplier,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             KeyValueService kvs,
             TransactionService transactionService,
             CleanupFollower follower,
@@ -835,21 +840,19 @@ private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess
                 metricsManager,
                 () -> getSweepBatchConfig(runtimeConfigSupplier.get().sweep()));
 
-        SpecificTableSweeper specificTableSweeper = initializeSweepEndpoint(
-                env,
-                kvs,
+        SpecificTableSweeper specificTableSweeper = SpecificTableSweeper.create(
                 transactionManager,
+                kvs,
                 sweepRunner,
+                SweepTableFactory.of(),
                 sweepPerfLogger,
                 sweepMetrics,
-                config.initializeAsync(),
-                sweepBatchConfigSource);
+                config.initializeAsync());
 
         BackgroundSweeperImpl backgroundSweeper = BackgroundSweeperImpl.create(
                 metricsManager,
                 sweepBatchConfigSource,
-                new ShouldRunBackgroundSweepSupplier(
-                        () -> runtimeConfigSupplier.get().sweep())::getAsBoolean,
+                () -> runtimeConfigSupplier.get().sweep().enabled(),
                 () -> runtimeConfigSupplier.get().sweep().sweepThreads(),
                 () -> runtimeConfigSupplier.get().sweep().pauseMillis(),
                 () -> runtimeConfigSupplier.get().sweep().sweepPriorityOverrides(),
@@ -864,27 +867,6 @@ private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess
         return backgroundSweeper;
     }
 
-    private static SpecificTableSweeper initializeSweepEndpoint(
-            Consumer<Object> env,
-            KeyValueService kvs,
-            TransactionManager transactionManager,
-            SweepTaskRunner sweepRunner,
-            BackgroundSweeperPerformanceLogger sweepPerfLogger,
-            LegacySweepMetrics sweepMetrics,
-            boolean initializeAsync,
-            AdjustableSweepBatchConfigSource sweepBatchConfigSource) {
-        SpecificTableSweeper specificTableSweeper = SpecificTableSweeper.create(
-                transactionManager,
-                kvs,
-                sweepRunner,
-                SweepTableFactory.of(),
-                sweepPerfLogger,
-                sweepMetrics,
-                initializeAsync);
-        env.accept(new SweeperServiceImpl(specificTableSweeper, sweepBatchConfigSource));
-        return specificTableSweeper;
-    }
-
     private static SweepBatchConfig getSweepBatchConfig(SweepConfig sweepConfig) {
         return ImmutableSweepBatchConfig.builder()
                 .maxCellTsPairsToExamine(sweepConfig.readLimit())
@@ -940,7 +922,7 @@ public static LockAndTimestampServices createLockAndTimestampServicesForCli(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfigSupplier,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -950,7 +932,7 @@ public static LockAndTimestampServices createLockAndTimestampServicesForCli(
                         metricsManager,
                         config,
                         runtimeConfigSupplier,
-                        env,
+                        registrar,
                         lock,
                         time,
                         invalidator,u}(jUF (5d339f0ca1b1d528743d2246718cc8b977604ba6jF Vatlasdb-config/src/test/java/com/palantir/atlasdb/config/AtlasDbRuntimeConfigTest.javajF modifiedjF K jF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -21,18 +21,6 @@
 import org.junit.Test;
 
 public class AtlasDbRuntimeConfigTest {
-    @Test
-    public void configDoesNotSpecifySweepByDefault() {
-        AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.defaultRuntimeConfig();
-        assertThat(config.sweep().enabled()).isEmpty();
-    }
-
-    @Test
-    public void configWithoutSweepHasSweepDisabled() {
-        AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.withSweepDisabled();
-        assertThat(config.sweep().enabled()).contains(false);
-    }
-
     @Test
     public void configWithoutSpecifyingStreamPersistenceConfigHasDefaultConfig() {
         AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.defaultRuntimeConfig();u}(jUF (99709ed401e5f0d37ebfb9169ea783f5f6e19c95jF batlasdb-config/src/test/java/com/palantir/atlasdb/config/ShouldRunBackgroundSweepSupplierTest.javajF removedjF K jF KfjF KfjF https://github.com/palantir/atlasdb/blob/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.javajF https://github.com/palantir/atlasdb/raw/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.java?ref=7798b4ff8448588fecb6aa32284dd0ed8819f7d1jF X]  @@ -1,102 +0,0 @@
-/*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.config;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
-
-import com.palantir.atlasdb.sweep.queue.config.ImmutableTargetedSweepRuntimeConfig;
-import com.palantir.atlasdb.sweep.queue.config.TargetedSweepRuntimeConfig;
-import java.util.function.Supplier;
-import org.junit.Test;
-
-public class ShouldRunBackgroundSweepSupplierTest {
-
-    private static final TargetedSweepRuntimeConfig TARGETED_SWEEP_ENABLED =
-            ImmutableTargetedSweepRuntimeConfig.builder().enabled(true).build();
-    private static final TargetedSweepRuntimeConfig TARGETED_SWEEP_DISABLED =
-            ImmutableTargetedSweepRuntimeConfig.builder().enabled(false).build();
-
-    private static final SweepConfig BACKGROUND_SWEEP_ENABLED =
-            ImmutableSweepConfig.builder().enabled(true).build();
-    private static final SweepConfig BACKGROUND_SWEEP_UNSET = SweepConfig.defaultSweepConfig();
-    private static final SweepConfig BACKGROUND_SWEEP_DISABLED = SweepConfig.disabled();
-
-    @Test
-    public void disableBackgroundSweepIfBackgroundSweepExplicitlyDisabled() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_DISABLED))
-                .isFalse();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_DISABLED))
-                .isFalse();
-    }
-
-    @Test
-    public void enableBackgroundSweepIfBackgroundSweepExplicitlyEnabled() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_ENABLED))
-                .isTrue();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED))
-                .isTrue();
-    }
-
-    @Test
-    public void disableBackgroundSweepIfNotSet() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET))
-                .isFalse();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET))
-                .isFalse();
-    }
-
-    // Mock assignment known to be safe
-    // Direct mock invocation is safe here as we're using it as a convenient way to create a supplier
-    @SuppressWarnings({"unchecked", "DirectInvocationOnMock"})
-    @Test
-    public void liveReload() {
-        Supplier<AtlasDbRuntimeConfig> runtimeConfigSupplier = mock(Supplier.class);
-        when(runtimeConfigSupplier.get())
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET))
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET))
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED));
-
-        ShouldRunBackgroundSweepSupplier supplier = new ShouldRunBackgroundSweepSupplier(
-                () -> runtimeConfigSupplier.get().sweep());
-
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET")
-                .isFalse();
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET")
-                .isFalse();
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED")
-                .isTrue();
-    }
-
-    private static boolean runBackgroundSweep(TargetedSweepRuntimeConfig tsRuntime, SweepConfig bgSweepConfig) {
-        return new ShouldRunBackgroundSweepSupplier(
-                        () -> createRuntimeConfig(tsRuntime, bgSweepConfig).sweep())
-                .getAsBoolean();
-    }
-
-    private static AtlasDbRuntimeConfig createRuntimeConfig(
-            TargetedSweepRuntimeConfig targetedSweepRuntimeConfig, SweepConfig backgroundSweepConfig) {
-        return ImmutableAtlasDbRuntimeConfig.builder()
-                .targetedSweep(targetedSweepRuntimeConfig)
-                .sweep(backgroundSweepConfig)
-                .build();
-    }
-}u}(jUF (7b553ba97fea29cc28f91d035e5cbe8060e8cae3jF hatlasdb-config/src/test/java/com/palantir/atlasdb/config/TransactionManagersAsyncInitializationTest.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -45,7 +45,7 @@ public class TransactionManagersAsyncInitializationTest {
     private static final String USER_AGENT_VERSION = "3.1415926.5358979";
     private static final UserAgent USER_AGENT = UserAgent.of(UserAgent.Agent.of(USER_AGENT_NAME, USER_AGENT_VERSION));
 
-    private final Consumer<Object> environment = mock(Consumer.class);
+    private final Consumer<Object> registrar = mock(Consumer.class);
 
     @Test
     public void asyncInitializationEventuallySucceeds() {
@@ -59,7 +59,7 @@ public void asyncInitializationEventuallySucceeds() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema())
                 .build()
                 .serializable();
@@ -84,7 +84,7 @@ public void transactionManagersBuilderDoesNotThrowIfAsyncInitialisationFailsRepe
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema());
 
         assertThatCode(() -> build.build().serializable()).doesNotThrowAnyException();u}(jUF (830982ceb08e4589ac04405c25af4ab7902e61fajF )atlasdb-container-test-utils/build.gradlejF modifiedjF KjF K jF KjF }https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-container-test-utils%2Fbuild.gradlejF |https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-container-test-utils%2Fbuild.gradlejF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-container-test-utils%2Fbuild.gradle?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -7,6 +7,7 @@ dependencies {
     implementation project(':atlasdb-tests-shared')
     implementation project(":flake-rule")
 
+    implementation 'com.github.ben-manes.caffeine:caffeine'
     implementation 'com.google.guava:guava'
     implementation 'com.palantir.docker.compose:docker-compose-rule-core'
     implementation 'com.palantir.docker.compose:docker-compose-rule-junit4'u}(jUF (67f1ebfdab7e84e38c746fafcd1c8d3c0d58bbeejF Zatlasdb-container-test-utils/src/main/java/com/palantir/atlasdb/containers/Containers.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FContainers.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FContainers.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FContainers.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X	  @@ -15,11 +15,10 @@
  */
 package com.palantir.atlasdb.containers;
 
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Throwables;
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
 import com.google.common.collect.Sets;
 import com.palantir.docker.compose.DockerComposeRule;
 import com.palantir.docker.compose.configuration.DockerComposeFiles;
@@ -56,7 +55,7 @@ public class Containers extends ExternalResource {
     private static final Set<Container> containersToStart = new HashSet<>();
     private static final Set<Container> containersStarted = new HashSet<>();
     private static final LoadingCache<String, String> dockerComposeFilesToTemporaryCopies =
-            CacheBuilder.newBuilder().build(CacheLoader.from(Containers::getDockerComposeFile));
+            Caffeine.newBuilder().build(Containers::getDockerComposeFile);
 
     private static volatile DockerComposeRule dockerComposeRule;
     private static volatile InterruptibleFileLogCollector currentLogCollector;
@@ -132,10 +131,11 @@ private void setupLogCollectorForLogDirectory() {
     }
 
     private void setupDockerComposeRule() throws InterruptedException, IOException {
-        Set<String> containerDockerComposeFiles = containersToStart.stream()
+        DockerComposeFiles files = DockerComposeFiles.from(containersToStart.stream()
                 .map(Container::getDockerComposeFile)
-                .map(dockerComposeFilesToTemporaryCopies::getUnchecked)
-                .collect(Collectors.toSet());
+                .map(dockerComposeFilesToTemporaryCopies::get)
+                .distinct()
+                .toArray(String[]::new));
 
         Map<String, String> environment = containersToStart.stream()
                 .flatMap(container -> container.getEnvironment().entrySet().stream())
@@ -145,7 +145,7 @@ private void setupDockerComposeRule() throws InterruptedException, IOException {
                 DockerMachine.localMachine().withEnvironment(environment).build();
 
         dockerComposeRule = DockerComposeRule.builder()
-                .files(DockerComposeFiles.from(containerDockerComposeFiles.toArray(new String[0])))
+                .files(files)
                 .projectName(PROJECT_NAME)
                 .machine(machine)
                 .logCollector(currentLogCollector)u}(jUF (9c5d0752d26338a6bd7a12031a481f8b1013f2d0jF \atlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/HikariCPConnectionManager.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -246,20 +246,21 @@ private void testDataSource(HikariDataSource dataSourcePool) throws SQLException
      * @throws SQLException if connection is invalid and cannot be used.
      */
     private void testConnection(Connection connection) throws SQLException {
-        if (connConfig.getTestQuery().isEmpty()) {
-            if (!connection.isValid(connConfig.getSocketTimeoutSeconds())) {
-                throw new SQLException(String.format("Connection %s is not valid", connection));
-            }
-        } else {
-            try (PreparedStatement stmt = connection.prepareStatement(connConfig.getTestQuery())) {
+        if (connConfig.getTestQuery().isPresent()) {
+            try (PreparedStatement stmt =
+                    connection.prepareStatement(connConfig.getTestQuery().get())) {
                 stmt.setFetchSize(1); // only need first row result
                 ResultSet rs = stmt.executeQuery();
                 if (!rs.next()) {
                     throw new SQLException(String.format(
                             "Connection %s could not be validated as it did not return any results for test query %s",
-                            connection, connConfig.getTestQuery()));
+                            connection, connConfig.getTestQuery().get()));
                 }
             }
+        } else {
+            if (!connection.isValid(connConfig.getSocketTimeoutSeconds())) {
+                throw new SQLException(String.format("Connection %s is not valid", connection));
+            }
         }
     }
 u}(jUF (e1fd2afeb410162c7eb111eb2ed045144d3511afjF Zatlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/ConnectionConfig.javajF modifiedjF KjF KjF K	jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -58,10 +58,7 @@ public MaskedValue getDbPassword() {
 
     public abstract String getDriverClass();
 
-    @Value.Default
-    public String getTestQuery() {
-        return "";
-    }
+    public abstract Optional<String> getTestQuery();
 
     @JsonIgnore
     @Value.Derived
@@ -185,8 +182,8 @@ public HikariConfig getHikariConfig() {
 
         initializeFailTimeoutMillis().ifPresent(config::setInitializationFailTimeout);
 
-        if (!getTestQuery().isEmpty()) {
-            config.setConnectionTestQuery(getTestQuery());
+        if (getTestQuery().isPresent()) {
+            config.setConnectionTestQuery(getTestQuery().get());
         }
 
         if (getSqlExceptionOverrideClass().isPresent()) {u}(jUF (b93a15e152b0661235eae7311c65e340f0766e0ajF atlasdb-dbkvs/build.gradlejF modifiedjF KjF K jF KjF nhttps://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fbuild.gradlejF mhttps://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fbuild.gradlejF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fbuild.gradle?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -14,6 +14,7 @@ dependencies {
   implementation "com.palantir.nylon:nylon-threads"
   implementation 'com.fasterxml.jackson.core:jackson-annotations'
   implementation 'com.fasterxml.jackson.core:jackson-databind'
+  implementation 'com.github.ben-manes.caffeine:caffeine'
   implementation 'com.google.auto.service:auto-service-annotations'
   implementation 'com.google.errorprone:error_prone_annotations'
   implementation 'com.google.guava:guava'u}(jUF (5ae1b103b3cc86213d6ae94812960a7d892efa6ejF \atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/OracleTableNameUnmapper.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapper.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapper.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapper.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -15,8 +15,8 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs;
 
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -28,6 +28,7 @@
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.nexus.db.sql.AgnosticResultSet;
@@ -37,17 +38,16 @@
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
-import java.util.concurrent.ExecutionException;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 
 class OracleTableNameUnmapper {
     private static final SafeLogger log = SafeLoggerFactory.get(OracleTableNameUnmapper.class);
 
-    private Cache<String, String> unmappingCache;
+    private final Cache<String, String> unmappingCache;
 
     OracleTableNameUnmapper() {
-        unmappingCache = CacheBuilder.newBuilder().build();
+        unmappingCache = Caffeine.newBuilder().build();
     }
 
     @SuppressWarnings("checkstyle:NestedTryDepth")
@@ -56,22 +56,26 @@ public String getShortTableNameFromMappingTable(
             throws TableMappingNotFoundException {
         String fullTableName = tablePrefix + DbKvs.internalTableName(tableRef);
         try {
-            return unmappingCache.get(fullTableName, () -> {
+            return unmappingCache.get(fullTableName, tableNameKey -> {
                 SqlConnection conn = connectionSupplier.get();
                 AgnosticResultSet results = conn.selectResultSetUnregisteredQuery(
                         "SELECT short_table_name "
                                 + "FROM " + AtlasDbConstants.ORACLE_NAME_MAPPING_TABLE
                                 + " WHERE table_name = ?",
-                        fullTableName);
+                        tableNameKey);
                 if (results.size() == 0) {
-                    throw new TableMappingNotFoundException("The table " + fullTableName + " does not have a mapping."
-                            + "This might be because the table does not exist.");
+                    throw new SafeIllegalStateException(
+                            "The table does not have a mapping. This might be because the table does not exist.",
+                            UnsafeArg.of("tableName", tableNameKey));
                 }
 
                 return Iterables.getOnlyElement(results.rows()).getString("short_table_name");
             });
-        } catch (ExecutionException e) {
-            throw new TableMappingNotFoundException(e.getCause());
+        } catch (SafeIllegalStateException e) {
+            throw new TableMappingNotFoundException(
+                    "The table " + fullTableName
+                            + " does not have a mapping. This might be because the table does not exist.",
+                    e);
         }
     }
 u}(jUF (2a91fe0d6e86187e3690c8655b64ea385b2f02fajF Satlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/FullQuery.javajF modifiedjF K jF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF Xe  @@ -35,11 +35,6 @@ public Builder append(String query) {
             return this;
         }
 
-        public Builder append(long number) {
-            queryBuilder.append(number);
-            return this;
-        }
-
         public Builder append(String query, Object arg) {
             queryBuilder.append(query);
             argsBuilder.add(arg);u}(jUF (dd961f490b5a264afcf9ab9af27ad5f4a20d2264jF \atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/TableMetadataCache.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableMetadataCache.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableMetadataCache.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableMetadataCache.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X:  @@ -15,8 +15,8 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs.impl;
 
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import java.time.Duration;
@@ -25,7 +25,7 @@
 public class TableMetadataCache {
     private static final TableMetadata EMPTY = TableMetadata.allDefault();
 
-    private final Cache<TableReference, TableMetadata> cache = CacheBuilder.newBuilder()
+    private final Cache<TableReference, TableMetadata> cache = Caffeine.newBuilder()
             .maximumSize(10000)
             .expireAfterWrite(Duration.ofHours(1))
             .build();u}(jUF (d3a8c60a800e959b3becd43b20e4445fbceefb30jF batlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/TableValueStyleCacheImpl.javajF modifiedjF KjF K
jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableValueStyleCacheImpl.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableValueStyleCacheImpl.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableValueStyleCacheImpl.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF Xf
  @@ -15,47 +15,45 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs.impl;
 
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.google.common.base.Preconditions;
-import com.google.common.base.Throwables;
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.logging.LoggingArgs;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.nexus.db.sql.AgnosticResultSet;
 import com.palantir.nexus.db.sql.SqlConnection;
-import java.util.concurrent.ExecutionException;
 
 public final class TableValueStyleCacheImpl implements TableValueStyleCache {
     private static final SafeLogger log = SafeLoggerFactory.get(TableValueStyleCacheImpl.class);
 
     private final Cache<TableReference, TableValueStyle> valueStyleByTableRef =
-            CacheBuilder.newBuilder().build();
+            Caffeine.newBuilder().build();
 
     @Override
     public TableValueStyle getTableType(
             final ConnectionSupplier connectionSupplier, final TableReference tableRef, TableReference metadataTable) {
         try {
-            return valueStyleByTableRef.get(tableRef, () -> {
+            return valueStyleByTableRef.get(tableRef, tableRefKey -> {
                 SqlConnection conn = connectionSupplier.get();
                 AgnosticResultSet results = conn.selectResultSetUnregisteredQuery(
                         String.format(
                                 "SELECT table_size FROM %s WHERE table_name = ?", metadataTable.getQualifiedName()),
-                        tableRef.getQualifiedName());
+                        tableRefKey.getQualifiedName());
                 Preconditions.checkArgument(
-                        !results.rows().isEmpty(), "table %s not found", tableRef.getQualifiedName());
+                        !results.rows().isEmpty(), "table %s not found", tableRefKey.getQualifiedName());
 
                 return TableValueStyle.byId(
                         Iterables.getOnlyElement(results.rows()).getInteger("table_size"));
             });
-        } catch (ExecutionException e) {
+        } catch (RuntimeException e) {
             log.error(
                     "TableValueStyle for the table {} could not be retrieved.",
                     LoggingArgs.safeInternalTableName(tableRef.getQualifiedName()),
                     e);
-            throw Throwables.propagate(e);
+            throw e;
         }
     }
 u}(jUF (ddbe99f94fd632341080a204b08994736d8ac8d1jF gatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleCellTsPageLoader.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -195,8 +195,7 @@ private FullQuery getQuery(boolean singleRow) {
             appendRangePredicates(singleRow, queryBuilder);
             return queryBuilder
                     .append("  ORDER BY row_name, col_name, ts")
-                    .append(") WHERE rownum <= ")
-                    .append(sqlRowLimit)
+                    .append(") WHERE rownum <= ?", sqlRowLimit)
                     .append(" ORDER BY row_name, col_name, ts")
                     .build();
         }u}(jUF (d3d0934580d2238766440f21f24a6cdcdb89c589jF _atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTable.javajF modifiedjF KGjF KjF KOjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XW!  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Stopwatch;
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -30,6 +31,9 @@
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyle;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyleCache;
 import com.palantir.atlasdb.logging.LoggingArgs;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.NamedColumnDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.common.base.RunnableCheckedException;
 import com.palantir.common.base.Throwables;
@@ -47,6 +51,7 @@
 import com.palantir.util.VersionStrings;
 import java.sql.SQLException;
 import java.util.Locale;
+import java.util.Set;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.TimeUnit;
 import org.apache.commons.lang3.StringUtils;
@@ -90,10 +95,15 @@ public static OracleDdlTable create(
 
     @Override
     public void create(byte[] tableMetadata) {
-        boolean needsOverflow = needsOverflow(tableMetadata);
+        log.info("Attempting to create table {}.", LoggingArgs.tableRef(tableRef));
+        TableMetadata metadata = TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMetadata);
+        boolean needsOverflow = needsOverflow(metadata);
+        int compressionSetting = getOptimalIndexCompression(metadata);
 
         if (tableExists()) {
+            log.info("Table {} already exists.", LoggingArgs.tableRef(tableRef));
             if (needsOverflow) {
+                log.info("Table {} needs overflow.", LoggingArgs.tableRef(tableRef));
                 TableValueStyle existingStyle = valueStyleCache.getTableType(conns, tableRef, config.metadataTable());
                 if (existingStyle != TableValueStyle.OVERFLOW) {
                     throwForMissingOverflowTable();
@@ -103,7 +113,7 @@ public void create(byte[] tableMetadata) {
             return;
         }
 
-        String shortTableName = createTable(needsOverflow);
+        String shortTableName = createTable(needsOverflow, compressionSetting);
 
         if (needsOverflow && !overflowColumnExists(shortTableName)) {
             throwForMissingOverflowTable();
@@ -119,9 +129,20 @@ public void create(byte[] tableMetadata) {
     }
 
     private void maybeAlterTableToHaveOverflowColumn() {
+        log.info("Potentially altering table {} to have overflow column.", LoggingArgs.tableRef(tableRef));
         if (config.alterTablesOrMetadataToMatch().contains(tableRef)) {
+            log.info("Config contains table {}, checking if we can alter table.", LoggingArgs.tableRef(tableRef));
             try {
                 String shortTableName = oracleTableNameGetter.getInternalShortTableName(conns, tableRef);
+                log.info(
+                        "Table name: {}, Overflow table migrated status: {}, overflow table existence status: {}, "
+                                + "overflow "
+                                + "column exists status: {}",
+                        LoggingArgs.tableRef(tableRef),
+                        SafeArg.of("overflowTableHasMigrated", overflowTableHasMigrated()),
+                        SafeArg.of("overflowTableExists", overflowTableExists()),
+                        SafeArg.of("overflowColumnExists", overflowColumnExists(shortTableName)));
+
                 if (overflowTableHasMigrated() && overflowTableExists() && !overflowColumnExists(shortTableName)) {
                     alterTableToHaveOverflowColumn(shortTableName);
                 }
@@ -146,10 +167,51 @@ private boolean overflowTableHasMigrated() {
         return config.overflowMigrationState() == OverflowMigrationState.FINISHED;
     }
 
-    private boolean needsOverflow(byte[] tableMetadata) {
-        TableMetadata metadata = TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMetadata);
-        return (metadata != null)
-                && (metadata.getColumns().getMaxValueSize() > AtlasDbConstants.ORACLE_OVERFLOW_THRESHOLD);
+    private boolean needsOverflow(TableMetadata metadata) {
+        return metadata.getColumns().getMaxValueSize() > AtlasDbConstants.ORACLE_OVERFLOW_THRESHOLD;
+    }
+
+    /*
+     * Determine the optimal Index Organized Table compression setting.
+     * When enabling compression on an IOT, we can instruct Oracle to compress at most one
+     * fewer columns than the number of columns that make up the PK for the IOT (i.e. the IOT we create have a PK of
+     * {row, col, ts} so we can compress 0, 1 or 2 columns - nothing, row, or row & col. It wouldn't make sense to
+     * compress all three columns, because necessarily there can be multiple rows that share all three values.
+     *
+     * When compression is enabled in an IOT, the block header adds a table the captures the values of the
+     * compressed columns. The actual rows in the blocks then refer back to entries in the header table to capture
+     * their values for the compressed columns. This extra header table and the slot references for data rows consume
+     * space in the block, so misuse of compression results in extra storage being consumed.
+     *
+     * Compression only makes sense when we expect that the { row } or { row, col } values will be reused:
+     * - If the table's sweep strategy is CONSERVATIVE, then every { row, col } will have at least two rows,
+     *   the current value (which may have null val if the value is deleted) and a sentinel row with ts = -1. Clearly
+     *   compression of both { row, col } is valuable.
+     * - If the sweep strategy is not CONSERVATIVE,  there will be reuse of the { row } if there is more than one named
+     *   column, or the table uses dynamic columns, which would be generally be expected to have multiple row values. In
+     *   this case, compression 1 is appropriate so { row } only needs to be stored once.
+     * - Finally, if the sweep strategy is not CONSERVATIVE, there are no sentinels, and if there is only one named
+     *   column then there will be no rows that share { row } so compression should be disabled.
+     */
+    @VisibleForTesting
+    static int getOptimalIndexCompression(TableMetadata metadata) {
+        if (metadata.getSweepStrategy() == SweepStrategy.CONSERVATIVE) {
+            // the table's sweep strategy is CONSERVATIVE, then every { row, col } will have at least two rows
+            return 2;
+        }
+
+        ColumnMetadataDescription columns = metadata.getColumns();
+        // there will be reuse of the { row } if there is more than one named column
+        // or the table uses dynamic columns, which would be generally be expected to have multiple row values
+        if (columns.hasDynamicColumns()) {
+            return 1;
+        }
+        Set<NamedColumnDescription> namedColumns = columns.getNamedColumns();
+        if (namedColumns != null && namedColumns.size() > 1) {
+            return 1;
+        }
+
+        return 0;
     }
 
     private boolean overflowColumnExists(String shortTableName) {
@@ -185,7 +247,7 @@ private void throwForMissingOverflowTable() {
     /**
      * Creates the table for the given reference. If the schema is modified here, please also update it in {@link #alterTableToHaveOverflowColumn}.
      */
-    private String createTable(boolean needsOverflow) {
+    private String createTable(boolean needsOverflow, int compression) {
         String shortTableName = oracleTableNameGetter.generateShortTableName(conns, tableRef);
         executeIgnoringError(
                 "CREATE TABLE " + shortTableName + " ("
@@ -197,7 +259,8 @@ private String createTable(boolean needsOverflow) {
                         + "  CONSTRAINT " + PrimaryKeyConstraintNames.get(shortTableName)
                         + " PRIMARY KEY (row_name, col_name, ts) "
                         + ") "
-                        + "organization index compress "
+                        + "organization index "
+                        + (compression == 0 ? "" : "compress " + compression + " ")
                         // Since append only completely fill blocks - no benefit in leaving space for updates of rows
                         // PCTUSED N/A to Index Organized Tables
                         + "PCTFREE 0 "u}(jUF (570b443f767b2c7f891051709f1bd68ce081d75cjF _atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleGetRange.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XF  @@ -316,8 +316,7 @@ private FullQuery getRangeQuery(ConnectionSupplier conns) {
                     .append(shortTableName)
                     .append(" v ON ")
                     .append("    sub.row_name = v.row_name and sub.col_name = v.col_name and sub.ts = v.ts")
-                    .append("  WHERE sub.rn <= ")
-                    .append(maxRowsPerPage)
+                    .append("  WHERE sub.rn <= ?", maxRowsPerPage)
                     .append("  ORDER BY sub.row_name ")
                     .append(direction)
                     .append(", sub.col_name ")u}(jUF (08cd766747be7ea89f3186414b112d6fff840236jF iatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleOverflowWriteTable.javajF modifiedjF K,jF KjF KJjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XQ  @@ -351,31 +351,41 @@ private void deleteOverflow(String overflowTable, List<Object[]> args) {
         String shortTableName = oraclePrefixedTableNames.get(tableRef, conns);
         conns.get()
                 .updateManyUnregisteredQuery(
-                        " /* DELETE_ONE_OVERFLOW (" + overflowTable + ") */ "
-                                + " DELETE /*+ INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */ "
-                                + "   FROM " + overflowTable + " m "
-                                + "  WHERE m.id IN (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName)
-                                + ") */ "
-                                + "                        i.overflow "
-                                + "                   FROM " + shortTableName + " i "
-                                + "                  WHERE i.row_name = ? "
-                                + "                    AND i.col_name = ? "
-                                + "                    AND i.ts = ? "
-                                + "                    AND i.overflow IS NOT NULL)",
+                        "/* DELETE_ONE_OVERFLOW (" + overflowTable + ") */"
+                                + " DELETE"
+                                + " /*+"
+                                + "   INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ")"
+                                + "   LEADING(i) USE_NL(i m)"
+                                + " */"
+                                + " FROM " + overflowTable + " m"
+                                + " WHERE m.id IN"
+                                + "   (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName) + ") */"
+                                + "     i.overflow"
+                                + "     FROM " + shortTableName + " i"
+                                + "     WHERE i.row_name = ?"
+                                + "       AND i.col_name = ?"
+                                + "       AND i.ts = ?"
+                                + "       AND i.overflow IS NOT NULL)",
                         args);
     }
 
     private void deleteOverflowRange(String overflowTable, String shortTableName, RangeRequest range) {
         StringBuilder query = new StringBuilder();
-        query.append(" /* DELETE_RANGE_OVERFLOW (").append(overflowTable).append(") */ ");
-        query.append(" DELETE /*+ INDEX(m pk_").append(overflowTable).append(") */ ");
-        query.append("   FROM ").append(overflowTable).append(" m ");
-        query.append(" WHERE m.id IN (");
+        query.append("/* DELETE_RANGE_OVERFLOW (")
+                .append(overflowTable)
+                .append(") */ DELETE /*+ INDEX(m ")
+                .append(PrimaryKeyConstraintNames.get(overflowTable))
+                .append(") LEADING(i) USE_NL(i m) */ FROM ")
+                .append(overflowTable)
+                .append(" m WHERE m.id IN (");
 
         // subquery for finding rows in the short table
-        query.append("SELECT /*+ INDEX(i pk_").append(shortTableName).append(") */ ");
-        query.append("       i.overflow ");
-        query.append("    FROM ").append(shortTableName).append(" i ");
+        query.append("SELECT /*+ INDEX(i ")
+                .append(PrimaryKeyConstraintNames.get(shortTableName))
+                .append(") */")
+                .append(" i.overflow FROM ")
+                .append(shortTableName)
+                .append(" i");
 
         // add where clauses
         WhereClauses whereClauses = WhereClauses.create("i", range, "i.overflow IS NOT NULL");
@@ -398,18 +408,22 @@ private void deleteAllTimestampsOverflow(String overflowTable, List<Object[]> ar
         String shortTableName = oraclePrefixedTableNames.get(tableRef, conns);
         conns.get()
                 .updateManyUnregisteredQuery(
-                        " /* DELETE_ALL_TS_OVERFLOW (" + overflowTable + ") */ "
-                                + " DELETE /*+ INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */ "
-                                + "   FROM " + overflowTable + " m "
-                                + "  WHERE m.id IN (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName)
-                                + ") */ "
-                                + "                        i.overflow "
-                                + "                   FROM " + shortTableName + " i "
-                                + "                  WHERE i.row_name = ? "
-                                + "                    AND i.col_name = ? "
-                                + "                    AND i.ts >= ? "
-                                + "                    AND i.ts <= ? "
-                                + "                    AND i.overflow IS NOT NULL)",
+                        " /* DELETE_ALL_TS_OVERFLOW (" + overflowTable + ") */"
+                                + " DELETE"
+                                + " /*+"
+                                + "   INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ")"
+                                + "   LEADING(i) USE_NL(i m)"
+                                + " */"
+                                + " FROM " + overflowTable + " m"
+                                + " WHERE m.id IN"
+                                + "   (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName) + ") */"
+                                + "     i.overflow"
+                                + "     FROM " + shortTableName + " i"
+                                + "     WHERE i.row_name = ?"
+                                + "       AND i.col_name = ?"
+                                + "       AND i.ts >= ?"
+                                + "       AND i.ts <= ?"
+                                + "       AND i.overflow IS NOT NULL)",
                         args);
     }
 uk     }(jUF (68c4ca31f6171bb238d98d2e9cfa5f4ad9e2f919jF catlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleQueryFactory.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XW	  @@ -312,8 +312,8 @@ public FullQuery getRangeQuery(RangeRequest range, long ts, int maxRows) {
                 + "     FROM " + tableName + " m "
                 + (bounds.isEmpty() ? "" : " WHERE  " + Joiner.on(" AND ").join(bounds))
                 + "     ORDER BY m.row_name " + (range.isReverse() ? "DESC" : "ASC")
-                + "   ) inner WHERE rownum <= " + maxRows;
-        return new FullQuery(query).withArgs(args);
+                + "   ) inner WHERE rownum <= ?";
+        return new FullQuery(query).withArgs(args).withArg(maxRows);
     }
 
     @Override
@@ -334,10 +334,10 @@ public FullQuery getRowsColumnRangeCountsQuery(
                 + " GROUP BY m.row_name";
         FullQuery fullQuery = new FullQuery(query).withArgs(rowsToOracleArray(rows), ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
         return fullQuery;
     }
@@ -355,14 +355,15 @@ protected FullQuery getRowsColumnRangeSubQuery(
                 + (columnRangeSelection.getStartCol().length > 0 ? " AND m.col_name >= ?" : "")
                 + (columnRangeSelection.getEndCol().length > 0 ? " AND m.col_name < ?" : "")
                 + " GROUP BY m.row_name, m.col_name"
-                + " ORDER BY m.row_name ASC, m.col_name ASC ) s WHERE rownum <= " + columnRangeSelection.getBatchHint();
+                + " ORDER BY m.row_name ASC, m.col_name ASC ) s WHERE rownum <= ?";
         FullQuery fullQuery = new FullQuery(query).withArg(row).withArg(ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
+        fullQuery.withArg(columnRangeSelection.getBatchHint());
         return fullQuery;
     }
 u}(jUF (2f1bb8d487f43f4608acaf707e7e6788af473dbdjF katlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresCellTsPageLoader.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XR  @@ -154,8 +154,7 @@ private FullQuery getFullQuery() {
                                 token.startRowInclusive(), token.startColInclusive(), token.startTsInclusive());
                 return queryBuilder
                         .append("      ORDER BY row_name, col_name, ts")
-                        .append("      LIMIT ")
-                        .append(sqlRowLimit)
+                        .append("      LIMIT ?", sqlRowLimit)
                         .append("    ) sub")
                         .append("    GROUP BY row_name, col_name")
                         .append("    ORDER BY row_name, col_name")
@@ -183,8 +182,7 @@ private FullQuery getFullQuery() {
                                 token.startRowInclusive(), token.startColInclusive(), token.startTsInclusive());
                 return queryBuilder
                         .append("  ORDER BY row_name, col_name, ts")
-                        .append("  LIMIT ")
-                        .append(sqlRowLimit)
+                        .append("  LIMIT ?", sqlRowLimit)
                         .build();
             }
         }u}(jUF (00cafb31e5f67e282a7490f4d2f3b4c4034b0fb5jF catlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresGetRange.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -288,8 +288,7 @@ private FullQuery getRangeQuery() {
                     .append(direction)
                     .append(", col_name ")
                     .append(direction)
-                    .append("    LIMIT ")
-                    .append(maxCellsPerPage)
+                    .append("    LIMIT ?", maxCellsPerPage)
                     .append("  ) i")
                     .append("  WHERE wrap.row_name = i.row_name")
                     .append("    AND wrap.col_name = i.col_name")u}(jUF (09ea7a8a8689d417885286a94aaf8424dfa8b7fajF gatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresQueryFactory.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -229,8 +229,8 @@ public FullQuery getRangeQuery(RangeRequest range, long ts, int maxRows) {
                 + " FROM " + prefixedTableName() + " m "
                 + (bounds.isEmpty() ? "" : " WHERE  " + Joiner.on(" AND ").join(bounds))
                 + " ORDER BY m.row_name " + (range.isReverse() ? "DESC" : "ASC")
-                + " LIMIT " + maxRows;
-        return new FullQuery(query).withArgs(args);
+                + " LIMIT ?";
+        return new FullQuery(query).withArgs(args).withArg(maxRows);
     }
 
     @Override
@@ -319,16 +319,17 @@ protected FullQuery getRowsColumnRangeSubQuery(
                 + (columnRangeSelection.getStartCol().length > 0 ? " AND m.col_name >= ?" : "")
                 + (columnRangeSelection.getEndCol().length > 0 ? " AND m.col_name < ?" : "")
                 + " GROUP BY m.row_name, m.col_name"
-                + " ORDER BY m.col_name ASC LIMIT " + columnRangeSelection.getBatchHint();
+                + " ORDER BY m.col_name ASC LIMIT ?";
         FullQuery fullQuery = new FullQuery(wrapQueryWithIncludeValue("GET_ROWS_COLUMN_RANGE", query, true))
                 .withArg(row)
                 .withArg(ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
+        fullQuery.withArg(columnRangeSelection.getBatchHint());
         return fullQuery;
     }
 u}(jUF (ac33fad35d76f1ceb079128628c94f48a6bb5693jF `atlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/OracleTableNameUnmapperTest.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -18,6 +18,7 @@
 import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
+import static org.assertj.core.api.InstanceOfAssertFactories.type;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.ArgumentMatchers.startsWith;
@@ -103,7 +104,16 @@ public void shouldThrowIfTableMappingDoesNotExist() {
         assertThatThrownBy(() -> oracleTableNameUnmapper.getShortTableNameFromMappingTable(
                         connectionSupplier, TEST_PREFIX, TABLE_REF))
                 .isInstanceOf(TableMappingNotFoundException.class)
-                .hasMessageContaining("The table a_test_namespace__ThisIsAVeryLongTableNameThatWillExceed");
+                .hasMessageContaining("The table a_test_namespace__ThisIsAVeryLongTableNameThatWillExceed")
+                .hasRootCauseInstanceOf(SafeIllegalStateException.class)
+                .rootCause()
+                .asInstanceOf(type(SafeIllegalStateException.class))
+                .extracting(SafeIllegalStateException::getArgs)
+                .satisfies(args -> assertThat(args)
+                        .hasSize(1)
+                        .first()
+                        .isEqualTo(
+                                UnsafeArg.of("tableName", "a_test_namespace__ThisIsAVeryLongTableNameThatWillExceed")));
     }
 
     @Testu}(jUF (e22af5a95fd838f0ae5d4de23759495e249828a8jF catlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTableTest.javajF modifiedjF K7jF K jF K7jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X,  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle;
 
 import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
@@ -41,6 +42,11 @@
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.OverflowMigrationState;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyle;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyleCache;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.ColumnValueDescription;
+import com.palantir.atlasdb.table.description.NameComponentDescription;
+import com.palantir.atlasdb.table.description.NamedColumnDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.table.description.ValueType;
 import com.palantir.common.concurrent.PTExecutors;
@@ -50,6 +56,8 @@
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.nexus.db.sql.SqlConnection;
+import java.util.ArrayList;
+import java.util.List;
 import java.util.Locale;
 import java.util.Set;
 import java.util.concurrent.ExecutorService;
@@ -348,6 +356,53 @@ public void createDoesNotThrowWhenOverflowColumnAlreadyExistsAndAlterIsRan() thr
         verifyTableAltered();
     }
 
+    @Test
+    public void conservativeSweptTablesHaveIndexCompression2() {
+        for (int numColumns = 0; numColumns <= 2; numColumns++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.CONSERVATIVE);
+            for (int colName = 0; colName < numColumns; colName++) {
+                metadataBuilder.singleNamedColumn("c" + colName, "col" + colName, ValueType.STRING);
+            }
+            TableMetadata metadata = metadataBuilder.build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(2);
+        }
+    }
+
+    @Test
+    public void thoroughSweptTablesWithDynamicColsHaveIndexCompression1() {
+        TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+        TableMetadata metadata = metadataBuilder
+                .dynamicColumns(List.of(NameComponentDescription.of("c", ValueType.STRING)), ValueType.STRING)
+                .build();
+        assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(1);
+    }
+
+    @Test
+    public void thoroughSweptTablesWithMultipleNamedColsHaveIndexCompression1() {
+        for (int numColumns = 2; numColumns <= 3; numColumns++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+            List<NamedColumnDescription> columns = new ArrayList<>();
+            for (int colDesc = 1; colDesc <= numColumns; colDesc++) {
+                columns.add(new NamedColumnDescription(
+                        "c" + colDesc, "col" + colDesc, ColumnValueDescription.forType(ValueType.STRING)));
+            }
+            TableMetadata metadata = metadataBuilder
+                    .columns(new ColumnMetadataDescription(columns))
+                    .build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(1);
+        }
+    }
+
+    @Test
+    public void thoroughSweptTablesWithOneNamedColHaveIndexCompressionDisabled() {
+        TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+        TableMetadata metadata = metadataBuilder
+                .columns(new ColumnMetadataDescription(List.of(
+                        new NamedColumnDescription("c", "col", ColumnValueDescription.forType(ValueType.STRING)))))
+                .build();
+        assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(0);
+    }
+
     private void createTable() throws TableMappingNotFoundException {
         // Not all tests will call OracleDdlTable#createTable, which makes sense as this test "creates" it for them!
         lenient()u}(jUF (406ea4c829a8af8841a2d625eb7be180b4deeb1bjF aatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/LatestSnapshotTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FLatestSnapshotTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FLatestSnapshotTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FLatestSnapshotTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "1hXp6wqgn1sn1zvk2FNCsA==";
+    static String __CLASS_HASH = "IGBmCsqLmahL4VNCmymeTA==";
 }u}(jUF (691b032f8500c1d98893ea25953a5a1da6159237jF aatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/NamespacedTodoTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FNamespacedTodoTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FNamespacedTodoTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FNamespacedTodoTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "u45FW2313LWExLwSpn1QNQ==";
+    static String __CLASS_HASH = "hQ6/1zRsdc2LBKW0GTYdpw==";
 }u}(jUF (8d929951097fa4dd1ed276565d0e054a197030c1jF jatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamHashAidxTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamHashAidxTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamHashAidxTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamHashAidxTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "PCkKiTatC1CKEn6ZH3wovQ==";
+    static String __CLASS_HASH = "D9OdSrGepZI1dcZ5KV7B0g==";
 }u}(jUF (c2166395fe0ce40fad624f15a49f97e8082edb87jF eatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamIdxTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamIdxTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamIdxTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamIdxTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "D1MDUfpiS0iyGcBvr58Y8g==";
+    static String __CLASS_HASH = "Ql7tNJ0Z5v0pWFviP9dcuw==";
 }u}(jUF (751427a20cec42114f38fb040766075b79fceb85jF jatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamMetadataTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamMetadataTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamMetadataTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamMetadataTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "CYeYrtJK8/cz/1qm4lAQbw==";
+    static String __CLASS_HASH = "AgT8WHSuUvJzkk+inw4twg==";
 }u}(jUF (d9eb5e622958eabbadfc64f623d7af4e2b8f6ab2jF batlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamStore.javajF modifiedjF KjF KjF K	jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamStore.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamStore.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamStore.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         SnapshotsStreamMetadataTable table = tables.getSnapshotsStreamMetadataTable(t);
         Map<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow, SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow r : m.keySet()) {
             for (SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> rows = new HashSet<>();
+        Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow.of(h));
         }u}(jUF (50fe24ebd9570730219ff9c8cabd8b95ef133793jF gatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamValueTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamValueTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamValueTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamValueTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "VELEHtyEvSAidzHk7HUynw==";
+    static String __CLASS_HASH = "9m/lRuE/UHMttmLTS1Q8iQ==";
 }u}(jUF (0fc54eda7b5bdfc6e1df2d83a646c1c897f7545djF Watlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/TodoTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FTodoTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FTodoTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FTodoTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "a41wenQu3aKASLvmOEI8kQ==";
+    static String __CLASS_HASH = "1g5OdW5n4H7icFXg1gG2Xg==";
 }u}(jUF (1d193b8827aecd4f6d245fb465dfbdc647f5e14ajF +atlasdb-ete-tests/docker-compose.oracle.ymljF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fdocker-compose.oracle.ymljF ~https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fdocker-compose.oracle.ymljF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.oracle.yml?ref=de0dabc1540a68e247bc016884c4e2681764f596jF @@ -2,7 +2,7 @@ version: '2'
 
 services:
   oracle:
-    image: palantirtechnologies/oracle-atlasdb:19.18.0.0-se
+    image: palantirtechnologies/oracle-atlasdb:19.19.0.0-se
     ports:
       - "1521"
 u}(jUF (c7df5ab0634529958ebd6f5e9833133b80d6f481jF Yatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/AuditedDataTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FAuditedDataTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FAuditedDataTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FAuditedDataTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "HWEvAR+se/bt6noPrSI5eQ==";
+    static String __CLASS_HASH = "AkImLEM5fv/Ji8qCyRf5dw==";
 }u}(jUF (691e7c2e8f8e94ee1c2d708ae8a7265a658fc2d7jF `atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamHashAidxTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamHashAidxTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamHashAidxTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamHashAidxTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "6ODGPI1lqmv77xZs7geJPg==";
+    static String __CLASS_HASH = "4xCW34HnUp0WcB647QLiyQ==";
 }u}(jUF (450188be061709cb7be5970d7510cb674fd90334jF [atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamIdxTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamIdxTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamIdxTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamIdxTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -730,6 +731,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -753,5 +755,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Rdk+n2nUmS6yWZK9HAk9OA==";
+    static String __CLASS_HASH = "Cv4WRWZ3CKVWR5IhFRmgLg==";
 }u}(jUF (02b71ddbab73ddfa1fb611fe7718aec48202c8f9jF `atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamMetadataTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamMetadataTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamMetadataTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamMetadataTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -697,6 +698,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -720,5 +722,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "RPuWa9/Enf/G4yy7WraKvg==";
+    static String __CLASS_HASH = "AFwooxC06krTqFv58UfkcA==";
 }u}(jUF (8c464c6e727d316151fe167fb7023408f8223c1bjF Xatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamStore.javajF modifiedjF KjF KjF K	jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamStore.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamStore.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamStore.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         DataStreamMetadataTable table = tables.getDataStreamMetadataTable(t);
         Map<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<DataStreamHashAidxTable.DataStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<DataStreamHashAidxTable.DataStreamHashAidxRow, DataStreamHashAidxTable.DataStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (DataStreamHashAidxTable.DataStreamHashAidxRow r : m.keySet()) {
             for (DataStreamHashAidxTable.DataStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<DataStreamHashAidxTable.DataStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<DataStreamHashAidxTable.DataStreamHashAidxRow> rows = new HashSet<>();
+        Set<DataStreamHashAidxTable.DataStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(DataStreamHashAidxTable.DataStreamHashAidxRow.of(h));
         }u}(jUF (339121486a993326e0fab616ee41e6840e0bcdeajF ]atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamValueTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamValueTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamValueTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamValueTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -685,6 +686,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -708,5 +710,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "DS6SuJzRnFffdUrdtO6Guw==";
+    static String __CLASS_HASH = "hogeDv0tsmrHDkXuhcwteQ==";
 }u}(jUF (9ddaa82ed535788ceb2af45646bddc9ef36ee8c1jF iatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamHashAidxTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamHashAidxTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamHashAidxTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamHashAidxTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "SH1UPkfcLa9w8NXZtXW8SQ==";
+    static String __CLASS_HASH = "NOiRKvLXsadPhJ4N/aae6Q==";
 }u}(jUF (64418a6885ea388ae8cacfebdee217037e578fbcjF datlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamIdxTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamIdxTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamIdxTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamIdxTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "mpf2q7hm+MfMFLkXqKHb6Q==";
+    static String __CLASS_HASH = "lWy4z6m1ZmwcuY4d/ez8Rw==";
 }u}(jUF (db9af2411ac58ba1397ec11aaec3110306b1b1f0jF iatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamMetadataTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamMetadataTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamMetadataTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamMetadataTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Ce61mTEgHfgl6d16rBNwUA==";
+    static String __CLASS_HASH = "KLkPI2rjlr8itPxC4ZWJLg==";
 }u}(jUF (dde1b9206472d7a2d64075fe39b94b5e132abc0djF aatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamStore.javajF modifiedjF KjF KjF K	jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamStore.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamStore.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamStore.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         HotspottyDataStreamMetadataTable table = tables.getHotspottyDataStreamMetadataTable(t);
         Map<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow, HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow r : m.keySet()) {
             for (HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> rows = new HashSet<>();
+        Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow.of(h));
         }u}(jUF (8883d5d8737eef19a3f25fd258d579ac8e1dbec9jF fatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamValueTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamValueTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamValueTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamValueTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "qpxadEqMHw8NeLcCZ0b7oA==";
+    static String __CLASS_HASH = "9KSCRtbyVXFg2nb/7Wc8OA==";
 }u}(jUF (88f8467b9c138fc4cb41ea3c961977dd5dd0f8e4jF  atlasdb-impl-shared/build.gradlejF modifiedjF KjF K jF KjF thttps://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fbuild.gradlejF shttps://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fbuild.gradlejF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fbuild.gradle?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X
  @@ -12,6 +12,7 @@ license {
   exclude '**/PutUnlessExistsTableMetrics.java'
   exclude '**/TargetedSweepProgressMetrics.java'
   exclude '**/TimestampCorrectnessMetrics.java'
+  exclude '**/ExpectationsMetrics.java'
   exclude '**/VerificationModeMetrics.java'
 }
 u}(jUF (c343ae3edce2f8e4d5a1c928511f569ac571e2d1jF Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/cleaner/CachingPuncherStore.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FCachingPuncherStore.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FCachingPuncherStore.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FCachingPuncherStore.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -15,9 +15,8 @@
  */
 package com.palantir.atlasdb.cleaner;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 
 /**
  * Wrap another PuncherStore, optimizing the #get() operation to operate on a local cache, only
@@ -31,14 +30,8 @@ public final class CachingPuncherStore implements PuncherStore {
     private static final int CACHE_SIZE = 64000;
 
     public static CachingPuncherStore create(final PuncherStore puncherStore, long granularityMillis) {
-        LoadingCache<Long, Long> timeMillisToTimestamp = CacheBuilder.newBuilder()
-                .maximumSize(CACHE_SIZE)
-                .build(new CacheLoader<Long, Long>() {
-                    @Override
-                    public Long load(Long timeMillis) throws Exception {
-                        return puncherStore.get(timeMillis);
-                    }
-                });
+        LoadingCache<Long, Long> timeMillisToTimestamp =
+                Caffeine.newBuilder().maximumSize(CACHE_SIZE).build(puncherStore::get);
         return new CachingPuncherStore(puncherStore, timeMillisToTimestamp, granularityMillis);
     }
 
@@ -66,7 +59,7 @@ public void put(long timestamp, long timeMillis) {
     @Override
     public Long get(Long timeMillis) {
         long approximateTimeMillis = timeMillis - (timeMillis % granularityMillis);
-        return timeMillisToTimestamp.getUnchecked(approximateTimeMillis);
+        return timeMillisToTimestamp.get(approximateTimeMillis);
     }
 
     @Overrideu}(jUF (c480df0088f6789eb9035ca913cc7cc57d932d70jF _atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/watch/TimestampMapping.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -16,12 +16,17 @@
 
 package com.palantir.atlasdb.keyvalue.api.watch;
 
-import com.google.common.collect.MoreCollectors;
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.Collections2;
 import com.google.common.collect.Range;
 import com.palantir.lock.watch.LockWatchVersion;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Iterator;
 import java.util.LongSummaryStatistics;
 import java.util.Map;
+import java.util.Objects;
 import java.util.UUID;
 import org.immutables.value.Value;
 
@@ -44,10 +49,8 @@ default LockWatchVersion lastVersion() {
 
     @Value.Derived
     default UUID leader() {
-        return timestampMapping().values().stream()
-                .map(LockWatchVersion::id)
-                .distinct()
-                .collect(MoreCollectors.onlyElement());
+        // explicitly avoiding stream and distinct collection copy when all IDs should be identical
+        return identicalElement(Collections2.transform(timestampMapping().values(), LockWatchVersion::id));
     }
 
     @Value.Check
@@ -58,4 +61,20 @@ default void nonEmptyMapping() {
     static ImmutableTimestampMapping.Builder builder() {
         return ImmutableTimestampMapping.builder();
     }
+
+    @VisibleForTesting
+    static <T> T identicalElement(Iterable<? extends T> iterable) {
+        Iterator<? extends T> iterator = iterable.iterator();
+        T element = iterator.next();
+        while (iterator.hasNext()) {
+            T next = iterator.next();
+            if (!Objects.equals(element, next)) {
+                throw new SafeIllegalArgumentException(
+                        "Input contains multiple distinct elements",
+                        SafeArg.of("element", element),
+                        SafeArg.of("next", next));
+            }
+        }
+        return element;
+    }
 }u}(jUF (8998869ed08a7e30d96c016b7470e3e524faa8c5jF Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/BackgroundSweepThread.javajF modifiedjF KjF K	jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XB  @@ -39,6 +39,8 @@
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.TimeUnit;
+import java.util.function.BooleanSupplier;
+import java.util.function.LongSupplier;
 import java.util.function.Supplier;
 
 public class BackgroundSweepThread implements Runnable {
@@ -49,8 +51,8 @@ public class BackgroundSweepThread implements Runnable {
     private final SweepOutcomeMetrics sweepOutcomeMetrics;
     private final SpecificTableSweeper specificTableSweeper;
     private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-    private final Supplier<Long> sweepPauseMillis;
-    private final Supplier<Boolean> isSweepEnabled;
+    private final LongSupplier sweepPauseMillis;
+    private final BooleanSupplier isSweepEnabled;
     private final Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig;
     private final NextTableToSweepProvider nextTableToSweepProvider;
     private final CountDownLatch shuttingDown;
@@ -64,8 +66,8 @@ public static BackgroundSweepThread createForTests(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper,
             MetricsManager metricsManager) {
@@ -86,8 +88,8 @@ public static BackgroundSweepThread createForTests(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper,
             SweepOutcomeMetrics sweepOutcomeMetrics,
@@ -190,7 +192,7 @@ private Duration getSleepDuration(Optional<SweepOutcome> maybeOutcome) {
         return maybeOutcome
                 .flatMap(outcome -> {
                     if (outcome == SweepOutcome.SUCCESS) {
-                        return Optional.of(Duration.ofMillis(sweepPauseMillis.get()));
+                        return Optional.of(Duration.ofMillis(sweepPauseMillis.getAsLong()));
                     } else if (outcome == SweepOutcome.NOTHING_TO_SWEEP) {
                         return Optional.of(getBackoffTimeWhenNothingToSweep());
                     } else {
@@ -202,7 +204,7 @@ private Duration getSleepDuration(Optional<SweepOutcome> maybeOutcome) {
 
     @VisibleForTesting
     Optional<SweepOutcome> checkConfigAndRunSweep(SingleLockService locks) throws InterruptedException {
-        if (isSweepEnabled.get()) {
+        if (isSweepEnabled.getAsBoolean()) {
             return Optional.of(grabLocksAndRun(locks));
         }
 
@@ -233,7 +235,7 @@ private SweepOutcome grabLocksAndRun(SingleLockService locks) throws Interrupted
     }
 
     private Duration getBackoffTimeWhenSweepHasNotRun() {
-        return Duration.ofMillis(sweepPauseMillis.get()).plusSeconds(1).multipliedBy(20); // 2 minutes by default
+        return Duration.ofMillis(sweepPauseMillis.getAsLong()).plusSeconds(1).multipliedBy(20); // 2 minutes by default
     }
 
     private Duration getBackoffTimeWhenNothingToSweep() {u}(jUF (44bc31882603500ba427d3970ff3730e2b7b3a21jF Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/BackgroundSweeperImpl.javajF modifiedjF K
jF K
jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -27,6 +27,9 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
+import java.util.function.BooleanSupplier;
+import java.util.function.IntSupplier;
+import java.util.function.LongSupplier;
 import java.util.function.Supplier;
 
 public final class BackgroundSweeperImpl implements BackgroundSweeper, AutoCloseable {
@@ -35,16 +38,16 @@ public final class BackgroundSweeperImpl implements BackgroundSweeper, AutoClose
     private static final long MAX_DAEMON_CLEAN_SHUTDOWN_TIME_MILLIS = 10_000;
 
     // Thread management
-    private final Supplier<Integer> sweepThreads;
+    private final IntSupplier sweepThreads;
     private Set<Thread> daemons;
     private final CountDownLatch shuttingDown = new CountDownLatch(1);
 
     // Shared between threads
     private final LockService lockService;
     private final NextTableToSweepProvider nextTableToSweepProvider;
     private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-    private final Supplier<Boolean> isSweepEnabled;
-    private final Supplier<Long> sweepPauseMillis;
+    private final BooleanSupplier isSweepEnabled;
+    private final LongSupplier sweepPauseMillis;
     private final Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig;
     private final SpecificTableSweeper specificTableSweeper;
     private final SweepOutcomeMetrics sweepOutcomeMetrics;
@@ -54,9 +57,9 @@ private BackgroundSweeperImpl(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Integer> sweepThreads,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            IntSupplier sweepThreads,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper) {
         this.sweepOutcomeMetrics = SweepOutcomeMetrics.registerLegacy(metricsManager);
@@ -73,9 +76,9 @@ private BackgroundSweeperImpl(
     public static BackgroundSweeperImpl create(
             MetricsManager metricsManager,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Integer> sweepThreads,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            IntSupplier sweepThreads,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper) {
         NextTableToSweepProvider nextTableToSweepProvider = NextTableToSweepProvider.create(
@@ -98,7 +101,7 @@ public static BackgroundSweeperImpl create(
     @Override
     public synchronized void runInBackground() {
         Preconditions.checkState(daemons == null);
-        int numThreads = sweepThreads.get();
+        int numThreads = sweepThreads.getAsInt();
         daemons = Sets.newHashSetWithExpectedSize(numThreads);
 
         for (int idx = 1; idx <= numThreads; idx++) {u      }(jUF (473d85d8410eb6afff14e536910bcdc893df9991jF Oatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/CommitTsCache.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FCommitTsCache.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FCommitTsCache.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FCommitTsCache.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XK  @@ -25,7 +25,7 @@
 
 public final class CommitTsCache {
     private static final Long ONE_MILLION = 1_000_000L;
-    private LoadingCache<Long, Long> cache;
+    private final LoadingCache<Long, Long> cache;
 
     private CommitTsCache(TransactionService transactionService, long maxSize) {
         cache = Caffeine.newBuilder()u}(jUF (02fd2f3ca2aca4164d40955a1e90f300421e02dcjF Patlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweeperService.javajF removedjF K jF KbjF KbjF https://github.com/palantir/atlasdb/blob/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperService.javajF https://github.com/palantir/atlasdb/raw/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperService.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperService.java?ref=7798b4ff8448588fecb6aa32284dd0ed8819f7d1jF X-  @@ -1,98 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import com.palantir.logsafe.Safe;
-import java.util.Optional;
-import javax.ws.rs.Consumes;
-import javax.ws.rs.POST;
-import javax.ws.rs.Path;
-import javax.ws.rs.Produces;
-import javax.ws.rs.QueryParam;
-import javax.ws.rs.core.MediaType;
-
-/**
- * Provides endpoints for sweeping a specific table.
- */
-@Path("/sweep")
-@Produces(MediaType.APPLICATION_JSON)
-@Consumes(MediaType.APPLICATION_JSON)
-public interface SweeperService {
-
-    default SweepTableResponse sweepTableFully(String tableName) {
-        return sweepTable(
-                tableName, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
-    }
-
-    default SweepTableResponse sweepTableFrom(String tableName, String startRow) {
-        return sweepTable(
-                tableName,
-                Optional.of(startRow),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-    }
-
-    /**
-     * Sweeps a particular table.
-     *
-     * @param tableName the table to sweep, in the format namespace.table_name (e.g. myapp.users)
-     * @param startRow (Optional) the row to start from, encoded as a hex string (e.g. 12345abcde)
-     * @param fullSweep (Optional; default true) whether to sweep the full table; if false just runs one batch
-     * @param maxCellTsPairsToExamine (Optional) see {@link SweepBatchConfig#maxCellTsPairsToExamine()}
-     * @param candidateBatchSize (Optional) see {@link SweepBatchConfig#candidateBatchSize()}
-     * @param deleteBatchSize (Optional) see {@link SweepBatchConfig#deleteBatchSize()}
-     */
-    @POST
-    @Path("sweep-table")
-    SweepTableResponse sweepTable(
-            @QueryParam("tablename") String tableName,
-            @QueryParam("startRow") Optional<String> startRow,
-            @Safe @QueryParam("fullSweep") Optional<Boolean> fullSweep,
-            @Safe @QueryParam("maxCellTsPairsToExamine") Optional<Integer> maxCellTsPairsToExamine,
-            @Safe @QueryParam("candidateBatchSize") Optional<Integer> candidateBatchSize,
-            @Safe @QueryParam("deleteBatchSize") Optional<Integer> deleteBatchSize);
-
-    /**
-     * Sweeps a table, but intentionally probabilistically skips a fraction of eligible entries to prevent issues that
-     * might arise from having too many consecutive deletes in the underlying KVS. This is expected to be safe to
-     * invoke at least twice without cleanup at the KVS level, but generally the expected usage is to run once, and
-     * then invoke {@link #sweepTable(String, Optional, Optional, Optional, Optional, Optional)} to clean any
-     * skipped values once KVS cleanup, such as compactions, is done.
-     *
-     * Implementation must respect the usual sweep guarantee: no (possibly in-flight) transaction may as a result of
-     * this operation read a version (or lack of one) of a cell different than it would have read if this operation had
-     * not run, and still succeed. In particular, this means that if any version of a cell is retained, then also the
-     * latest version prior to the sweep timestamp of the same cell must not be removed (even if it is a delete).
-     *
-     * @param tableName the table to sweep, in the format namespace.table_name (e.g. myapp.users)
-     * @param startRow (Optional) the row to start from, encoded as a hex string (e.g. 12345abcde)
-     * @param fullSweep (Optional; default true) whether to sweep the full table; if false just runs one batch
-     * @param maxCellTsPairsToExamine (Optional) see {@link SweepBatchConfig#maxCellTsPairsToExamine()}
-     * @param candidateBatchSize (Optional) see {@link SweepBatchConfig#candidateBatchSize()}
-     * @param deleteBatchSize (Optional) see {@link SweepBatchConfig#deleteBatchSize()}
-     */
-    @POST
-    @Path("sweep-previously-conservative-now-thorough-table")
-    SweepTableResponse sweepPreviouslyConservativeNowThoroughTable(
-            @QueryParam("tablename") String tableName,
-            @QueryParam("startRow") Optional<String> startRow,
-            @Safe @QueryParam("fullSweep") Optional<Boolean> fullSweep,
-            @Safe @QueryParam("maxCellTsPairsToExamine") Optional<Integer> maxCellTsPairsToExamine,
-            @Safe @QueryParam("candidateBatchSize") Optional<Integer> candidateBatchSize,
-            @Safe @QueryParam("deleteBatchSize") Optional<Integer> deleteBatchSize);
-}u}(jUF (a043b1f465845d038463867d0cef3a602201da50jF Tatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweeperServiceImpl.javajF removedjF K jF KjF KjF https://github.com/palantir/atlasdb/blob/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImpl.javajF https://github.com/palantir/atlasdb/raw/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImpl.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImpl.java?ref=7798b4ff8448588fecb6aa32284dd0ed8819f7d1jF X.  @@ -1,169 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.SweepResults;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
-import com.palantir.atlasdb.logging.LoggingArgs;
-import com.palantir.logsafe.Preconditions;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.UnsafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.Optional;
-
-public final class SweeperServiceImpl implements SweeperService {
-    private static final SafeLogger log = SafeLoggerFactory.get(SweeperServiceImpl.class);
-
-    private final SpecificTableSweeper specificTableSweeper;
-    private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-
-    public SweeperServiceImpl(
-            SpecificTableSweeper specificTableSweeper, AdjustableSweepBatchConfigSource sweepBatchConfigSource) {
-        this.specificTableSweeper = specificTableSweeper;
-        this.sweepBatchConfigSource = sweepBatchConfigSource;
-    }
-
-    @Override
-    public SweepTableResponse sweepTable(
-            String tableName,
-            Optional<String> startRow,
-            Optional<Boolean> fullSweep,
-            Optional<Integer> maxCellTsPairsToExamine,
-            Optional<Integer> candidateBatchSize,
-            Optional<Integer> deleteBatchSize) {
-        TableReference tableRef = getTableRef(tableName);
-        checkTableExists(tableName, tableRef);
-
-        byte[] decodedStartRow = startRow.map(PtBytes::decodeHexString).orElse(PtBytes.EMPTY_BYTE_ARRAY);
-        SweepBatchConfig config =
-                buildConfigWithOverrides(maxCellTsPairsToExamine, candidateBatchSize, deleteBatchSize);
-
-        return SweepTableResponse.from(
-                runSweep(fullSweep, tableRef, decodedStartRow, config, SweepTaskRunner.RunType.FULL));
-    }
-
-    @Override
-    public SweepTableResponse sweepPreviouslyConservativeNowThoroughTable(
-            String tableName,
-            Optional<String> startRow,
-            Optional<Boolean> fullSweep,
-            Optional<Integer> maxCellTsPairsToExamine,
-            Optional<Integer> candidateBatchSize,
-            Optional<Integer> deleteBatchSize) {
-        TableReference tableRef = getTableRef(tableName);
-        checkTableExists(tableName, tableRef);
-
-        byte[] decodedStartRow = startRow.map(PtBytes::decodeHexString).orElse(PtBytes.EMPTY_BYTE_ARRAY);
-        SweepBatchConfig config =
-                buildConfigWithOverrides(maxCellTsPairsToExamine, candidateBatchSize, deleteBatchSize);
-
-        return SweepTableResponse.from(runSweep(
-                fullSweep, tableRef, decodedStartRow, config, SweepTaskRunner.RunType.WAS_CONSERVATIVE_NOW_THOROUGH));
-    }
-
-    private SweepResults runSweep(
-            Optional<Boolean> fullSweep,
-            TableReference tableRef,
-            byte[] decodedStartRow,
-            SweepBatchConfig config,
-            SweepTaskRunner.RunType runType) {
-        if (!fullSweep.isPresent()) {
-            log.warn("fullSweep parameter was not specified, defaulting to true");
-        }
-
-        if (fullSweep.orElse(true)) {
-            log.info(
-                    "Running sweep of full table {}, "
-                            + "with maxCellTsPairsToExamine: {}, candidateBatchSize: {}, deleteBatchSize: {}, "
-                            + "starting from row {}",
-                    LoggingArgs.tableRef(tableRef),
-                    SafeArg.of("maxCellTsPairsToExamine", config.maxCellTsPairsToExamine()),
-                    SafeArg.of("candidateBatchSize", config.candidateBatchSize()),
-                    SafeArg.of("deleteBatchSize", config.deleteBatchSize()),
-                    UnsafeArg.of("decodedStartRow", decodedStartRow));
-            return runFullSweepWithoutSavingResults(tableRef, decodedStartRow, config, runType);
-        } else {
-            log.info(
-                    "Running sweep of a single batch on table {}, "
-                            + "with maxCellTsPairsToExamine: {}, candidateBatchSize: {}, deleteBatchSize: {}, "
-                            + "starting from row {}",
-                    LoggingArgs.tableRef(tableRef),
-                    SafeArg.of("maxCellTsPairsToExamine", config.maxCellTsPairsToExamine()),
-                    SafeArg.of("candidateBatchSize", config.candidateBatchSize()),
-                    SafeArg.of("deleteBatchSize", config.deleteBatchSize()),
-                    UnsafeArg.of("decodedStartRow", decodedStartRow));
-            return runOneBatchWithoutSavingResults(tableRef, decodedStartRow, config, runType);
-        }
-    }
-
-    private SweepBatchConfig buildConfigWithOverrides(
-            Optional<Integer> maxCellTsPairsToExamine,
-            Optional<Integer> candidateBatchSize,
-            Optional<Integer> deleteBatchSize) {
-        ImmutableSweepBatchConfig.Builder batchConfigBuilder =
-                ImmutableSweepBatchConfig.builder().from(sweepBatchConfigSource.getAdjustedSweepConfig());
-
-        maxCellTsPairsToExamine.ifPresent(batchConfigBuilder::maxCellTsPairsToExamine);
-        candidateBatchSize.ifPresent(batchConfigBuilder::candidateBatchSize);
-        deleteBatchSize.ifPresent(batchConfigBuilder::deleteBatchSize);
-
-        return batchConfigBuilder.build();
-    }
-
-    private TableReference getTableRef(String tableName) {
-        Preconditions.checkArgument(
-                TableReference.isFullyQualifiedName(tableName),
-                "Table name is not fully qualified",
-                LoggingArgs.safeInternalTableName(tableName));
-        return TableReference.createFromFullyQualifiedName(tableName);
-    }
-
-    private void checkTableExists(String tableName, TableReference tableRef) {
-        Preconditions.checkArgument(
-                specificTableSweeper.getKvs().getAllTableNames().contains(tableRef),
-                "Table requested to sweep does not exist",
-                LoggingArgs.safeInternalTableName(tableName));
-    }
-
-    private SweepResults runFullSweepWithoutSavingResults(
-            TableReference tableRef,
-            byte[] startRow,
-            SweepBatchConfig sweepBatchConfig,
-            SweepTaskRunner.RunType runType) {
-        SweepResults cumulativeResults = SweepResults.createEmptySweepResult(Optional.of(startRow));
-
-        while (cumulativeResults.getNextStartRow().isPresent()) {
-            SweepResults results = runOneBatchWithoutSavingResults(
-                    tableRef, cumulativeResults.getNextStartRow().get(), sweepBatchConfig, runType);
-
-            specificTableSweeper.updateTimeMetricsOneIteration(
-                    results.getTimeInMillis(), results.getTimeElapsedSinceStartedSweeping());
-            cumulativeResults = cumulativeResults.accumulateWith(results);
-        }
-
-        return cumulativeResults;
-    }
-
-    private SweepResults runOneBatchWithoutSavingResults(
-            TableReference tableRef,
-            byte[] startRow,
-            SweepBatchConfig sweepBatchConfig,
-            SweepTaskRunner.RunType runType) {
-        return specificTableSweeper.runOneIteration(tableRef, startRow, sweepBatchConfig, runType);
-    }
-}u}(jUF (a5aa10990351e2183eaafa2292e37b9821a2373bjF \atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitioner.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X.  @@ -15,10 +15,9 @@
  */
 package com.palantir.atlasdb.sweep.queue;
 
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.annotations.VisibleForTesting;
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.WriteReference;
@@ -41,13 +40,8 @@ public class WriteInfoPartitioner {
     private final KeyValueService kvs;
     private final Supplier<Integer> numShards;
 
-    private final LoadingCache<TableReference, SweeperStrategy> cache = CacheBuilder.newBuilder()
-            .build(new CacheLoader<>() {
-                @Override
-                public SweeperStrategy load(TableReference key) {
-                    return getStrategyFromKvs(key);
-                }
-            });
+    private final LoadingCache<TableReference, SweeperStrategy> cache =
+            Caffeine.newBuilder().build(this::getStrategyFromKvs);
 
     public WriteInfoPartitioner(KeyValueService kvs, Supplier<Integer> numShards) {
         this.kvs = kvs;
@@ -96,7 +90,7 @@ SweeperStrategy getStrategy(WriteInfo writeInfo) {
     }
 
     SweeperStrategy getStrategyForTable(TableReference tableRef) {
-        return cache.getUnchecked(tableRef);
+        return cache.get(tableRef);
     }
 
     private SweeperStrategy getStrategyFromKvs(TableReference tableRef) {u}(jUF (873fe01fb2bcd122671ed8446a4741d208fbfa02jF katlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AdvisoryLockConditionSuppliers.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -79,10 +79,13 @@ private static HeldLocksToken acquireLock(LockService lockService, LockRequest l
                     case BLOCK_UNTIL_TIMEOUT:
                     case BLOCK_INDEFINITELY:
                     case BLOCK_INDEFINITELY_THEN_RELEASE:
-                        log.warn("Could not lock successfully", ex);
                         ++failureCount;
+                        log.warn("Could not lock successfully", SafeArg.of("failureCount", failureCount), ex);
                         if (failureCount >= NUM_RETRIES) {
-                            log.warn("Failing after {} tries", SafeArg.of("failureCount", failureCount), ex);
+                            log.warn(
+                                    "Failing after exceeding maximum tries",
+                                    SafeArg.of("failureCount", failureCount),
+                                    ex);
                             throw ex;
                         }
                         break;u}(jUF (3baaaaf51b7360fce9a867bd4f521f4017dceb26jF `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javajF modifiedjF K"jF KjF K&jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -98,6 +98,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueServiceImpl;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
@@ -265,12 +266,14 @@ private enum State {
     protected final TableLevelMetricsController tableLevelMetricsController;
     protected final SuccessCallbackManager successCallbackManager = new SuccessCallbackManager();
     private final CommitTimestampLoader commitTimestampLoader;
+    private final ExpectationsMetrics expectationsDataCollectionMetrics;
 
     protected volatile boolean hasReads;
 
     protected final TimestampCache timestampCache;
 
     protected final TransactionKnowledgeComponents knowledge;
+
     protected final Closer closer = Closer.create();
 
     /**
@@ -345,6 +348,7 @@ private enum State {
                 timelockService,
                 immutableTimestamp,
                 knowledge);
+        this.expectationsDataCollectionMetrics = ExpectationsMetrics.of(metricsManager.getTaggedRegistry());
     }
 
     protected TransactionScopedCache getCache() {
@@ -1817,11 +1821,16 @@ private void ensureUncommitted() {
     }
 
     private void ensureStillRunning() {
-        if (!(state.get() == State.UNCOMMITTED || state.get() == State.COMMITTING)) {
+        if (!isStillRunning()) {
             throw new CommittedTransactionException();
         }
     }
 
+    private boolean isStillRunning() {
+        State stateNow = state.get();
+        return stateNow == State.UNCOMMITTED || stateNow == State.COMMITTING;
+    }
+
     /**
      * Returns true iff the transaction is known to have successfully committed.
      *
@@ -1950,8 +1959,9 @@ private void commitWrites(TransactionService transactionService) {
                 if (validationNecessaryForInvolvedTablesOnCommit()) {
                     throwIfImmutableTsOrCommitLocksExpired(null);
                 }
-                return;
             }
+            getTimer("nonWriteCommitTotalTimeSinceTxCreation")
+                    .update(Duration.of(transactionTimerContext.stop(), ChronoUnit.NANOS));
             return;
         }
 
@@ -2402,6 +2412,7 @@ protected LockToken acquireLocksForCommit() {
                                 lockDescriptors, currentTransactionConfig, stackTraceSnapshot))
                         .build());
         if (!lockResponse.wasSuccessful()) {
+            transactionOutcomeMetrics.markCommitLockAcquisitionFailed();
             log.error(
                     "Timed out waiting while acquiring commit locks. Timeout was {} ms. "
                             + "First ten required locks were {}.",
@@ -2596,9 +2607,28 @@ public TransactionReadInfo getReadInfo() {
         return keyValueService.getOverallReadInfo();
     }
 
-    // TODO(aalouane): implement and call this on transaction exit
     @Override
-    public void reportExpectationsCollectedData() {}
+    public void reportExpectationsCollectedData() {
+        if (isStillRunning()) {
+            log.error(
+                    "reportExpectationsCollectedData is called on an in-progress transaction",
+                    SafeArg.of("state", state.get()));
+            return;
+        }
+
+        reportExpectationsCollectedData(getAgeMillis(), getReadInfo(), expectationsDataCollectionMetrics);
+    }
+
+    @VisibleForTesting
+    static void reportExpectationsCollectedData(
+            long ageMillis, TransactionReadInfo readInfo, ExpectationsMetrics metrics) {
+        metrics.ageMillis().update(ageMillis);
+        metrics.bytesRead().update(readInfo.bytesRead());
+        metrics.kvsReads().update(readInfo.kvsCalls());
+
+        readInfo.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
+                .update(kvsCallReadInfo.bytesRead()));
+    }
 
     private long getStartTimestamp() {
         return startTimestamp.get();u}(jUF (7a4b02962f2c8fcd57bfd60b8b4b157b2e6ed956jF gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcome.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -62,5 +62,10 @@ public enum TransactionOutcome {
      * that started before our start timestamp and hasn't committed). This will be logged at most once for a given
      * transaction being rolled back, even if multiple transactions aim to rollback the same transaction.
      */
-    ROLLBACK_OTHER
+    ROLLBACK_OTHER,
+
+    /**
+     * The transaction failed to acquire commit locks at the beginning of the AtlasDB commit protocol.
+     */
+    COMMIT_LOCK_ACQUISITION_FAILED,
 }u}(jUF (0cf6b112d9082ed759671aab0086b2bf32ccbedbjF natlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetrics.javajF modifiedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -85,6 +85,10 @@ public void markRollbackOtherTransaction() {
         getMeter(TransactionOutcome.ROLLBACK_OTHER).mark();
     }
 
+    public void markCommitLockAcquisitionFailed() {
+        getMeter(TransactionOutcome.COMMIT_LOCK_ACQUISITION_FAILED).mark();
+    }
+
     @VisibleForTesting
     Meter getMeter(TransactionOutcome outcome) {
         return getMeter(outcome, ImmutableMap.of());u}(jUF (e696a4e851cc0de0f72f1af470c874f29b2e719bjF 5atlasdb-impl-shared/src/main/metrics/expectations.ymljF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymljF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymljF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,19 @@
+options:
+  javaPackage: 'com.palantir.atlasdb.transaction.expectations'
+
+namespaces:
+  expectations:
+    docs: Data collection on transaction patterns
+    metrics:
+      bytesRead:
+        docs: Bytes read by a transaction through Atlas kvs read calls
+        type: histogram
+      kvsReads:
+        docs: Number of Atlas kvs read calls made by a transaction
+        type: histogram
+      ageMillis:
+        docs: Elapsed duration in milliseconds for a transaction
+        type: histogram
+      mostKvsBytesReadInSingleCall:
+        docs: Most bytes read by a transaction in one Atlas kvs read call
+        type: histogramu}(jUF (2de6f288bf092213b4b2345a73a735695f0f3c27jF catlasdb-impl-shared/src/test/java/com/palantir/atlasdb/keyvalue/api/watch/TimestampMappingTest.javajF addedjF K\jF K jF K\jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X;  @@ -0,0 +1,92 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.api.watch;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.google.common.collect.Iterables;
+import com.palantir.lock.watch.LockWatchVersion;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import java.util.NoSuchElementException;
+import java.util.UUID;
+import org.junit.Test;
+
+public class TimestampMappingTest {
+    @Test
+    public void singleLeaderMappingIsValid() {
+        UUID id = UUID.randomUUID();
+        ImmutableTimestampMapping timestampMapping = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(id, 1))
+                .build();
+        assertThat(timestampMapping.leader()).isEqualTo(id);
+    }
+
+    @Test
+    public void singleDistinctLeaderMappingIsValid() {
+        UUID id = UUID.randomUUID();
+        ImmutableTimestampMapping timestampMapping = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(id, 1))
+                .putTimestampMapping(2L, LockWatchVersion.of(id, 1))
+                .build();
+        assertThat(timestampMapping.leader()).isEqualTo(id);
+    }
+
+    @Test
+    public void conflictingLeaderMappingIsInvalid() {
+        ImmutableTimestampMapping.Builder builder = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(UUID.randomUUID(), 1))
+                .putTimestampMapping(2L, LockWatchVersion.of(UUID.randomUUID(), 1));
+
+        assertThatThrownBy(builder::build)
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+    }
+
+    @Test
+    public void emptyMappingIsInvalid() {
+        assertThatThrownBy(() -> TimestampMapping.builder().build())
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("Invalid range");
+    }
+
+    @Test
+    public void onlyIdenticalElements() {
+        assertThat(TimestampMapping.identicalElement(List.of("test"))).isEqualTo("test");
+        assertThat(TimestampMapping.identicalElement(Iterables.limit(Iterables.cycle("test"), 1000)))
+                .isEqualTo("test");
+        assertThat(TimestampMapping.identicalElement(Iterables.limit(Iterables.cycle(42L), 1000)))
+                .isEqualTo(42L);
+    }
+
+    @Test
+    public void emptyDistinctElements() {
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of()))
+                .isInstanceOf(NoSuchElementException.class);
+    }
+
+    @Test
+    public void multipleDistinctElements() {
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of("a", "b", "a")))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of("a", "a", "b")))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+    }
+}u}(jUF (dccc318b332ffaa971355af06b94dc51f14199e0jF Xatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/SweeperServiceImplTest.javajF removedjF K jF KjF KjF https://github.com/palantir/atlasdb/blob/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplTest.javajF https://github.com/palantir/atlasdb/raw/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplTest.java?ref=7798b4ff8448588fecb6aa32284dd0ed8819f7d1jF X`!  @@ -1,205 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.never;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoMoreInteractions;
-import static org.mockito.Mockito.when;
-
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.io.BaseEncoding;
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.SweepResults;
-import com.palantir.atlasdb.util.DropwizardClientRule;
-import com.palantir.atlasdb.util.TestJaxRsClientFactory;
-import com.palantir.conjure.java.api.errors.RemoteException;
-import com.palantir.conjure.java.server.jersey.ConjureJerseyFeature;
-import java.util.List;
-import java.util.Optional;
-import javax.ws.rs.core.Response;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Rule;
-import org.junit.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-
-public class SweeperServiceImplTest extends SweeperTestSetup {
-
-    private static final String VALID_START_ROW = "0102030A";
-    private static final String LOWERCASE_BUT_VALID_START_ROW = "abadcafe";
-    private static final String MIXED_CASE_START_ROW = "AaAaAaAaAa1111";
-    private static final String INVALID_START_ROW = "xyz";
-    SweeperService sweeperService;
-
-    private static final SweepResults RESULTS_NO_MORE_TO_SWEEP = SweepResults.createEmptySweepResultWithNoMoreToSweep();
-    private static final SweepResults RESULTS_MORE_TO_SWEEP = SweepResults.createEmptySweepResultWithMoreToSweep();
-
-    @Rule
-    public DropwizardClientRule dropwizardClientRule = new DropwizardClientRule(
-            new SweeperServiceImpl(getSpecificTableSweeperService(), sweepBatchConfigSource),
-            ConjureJerseyFeature.INSTANCE);
-
-    @Override
-    @Before
-    public void setup() {
-        super.setup();
-
-        sweeperService = TestJaxRsClientFactory.createJaxRsClientForTest(
-                SweeperService.class,
-                SweeperServiceImplTest.class,
-                dropwizardClientRule.baseUri().toString());
-
-        setupTaskRunner(RESULTS_NO_MORE_TO_SWEEP);
-        when(kvs.getAllTableNames()).thenReturn(ImmutableSet.of(TABLE_REF));
-    }
-
-    @After
-    public void after() {
-        verifyNoSweepResultsSaved();
-    }
-
-    @Test
-    public void sweepingNonFullyTableShouldNotBeSuccessful() {
-        assertThatExceptionOfType(RemoteException.class)
-                .isThrownBy(() -> sweeperService.sweepTableFully("non_fully_qualified_name"))
-                .matches(ex -> ex.getStatus() == Response.Status.BAD_REQUEST.getStatusCode());
-    }
-
-    @Test
-    public void sweepingNonExistingTableShouldNotBeSuccessful() {
-        assertThatExceptionOfType(RemoteException.class)
-                .isThrownBy(() -> sweeperService.sweepTableFully("ns.non_existing_table"))
-                .matches(ex -> ex.getStatus() == Response.Status.BAD_REQUEST.getStatusCode());
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithValidStartRowShouldBeSuccessful() {
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), VALID_START_ROW);
-    }
-
-    @Test
-    public void sweepTableFromStartRowShouldAcceptLowercaseBase16Encodings() {
-        when(kvs.getAllTableNames()).thenReturn(ImmutableSet.of(TABLE_REF));
-
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), LOWERCASE_BUT_VALID_START_ROW);
-    }
-
-    @Test
-    public void sweepTableFromStartRowShouldAcceptMixedCaseBase16Encodings() {
-        when(kvs.getAllTableNames()).thenReturn(ImmutableSet.of(TABLE_REF));
-
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), MIXED_CASE_START_ROW);
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithInValidStartRowShouldThrow() {
-        assertThatExceptionOfType(RemoteException.class)
-                .isThrownBy(() -> sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), INVALID_START_ROW))
-                .matches(ex -> ex.getStatus() == Response.Status.BAD_REQUEST.getStatusCode());
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithBatchConfigWithNullStartRowShouldBeSuccessful() {
-        sweeperService.sweepTable(
-                TABLE_REF.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.of(1000),
-                Optional.of(1000),
-                Optional.of(500));
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithBatchConfigWithExactlyOneNonNullBatchConfigShouldBeSuccessful() {
-        sweeperService.sweepTable(
-                TABLE_REF.getQualifiedName(),
-                Optional.of(encodeStartRow(new byte[] {1, 2, 3})),
-                Optional.empty(),
-                Optional.of(10),
-                Optional.empty(),
-                Optional.empty());
-    }
-
-    @Test
-    public void testWriteProgressAndPriorityNotUpdatedAfterSweepRunsSuccessfully_butMetricsAre() {
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), encodeStartRow(new byte[] {1, 2, 3}));
-        ArgumentCaptor<Long> sweepTime = ArgumentCaptor.forClass(Long.class);
-        ArgumentCaptor<Long> totalTimeElapsed = ArgumentCaptor.forClass(Long.class);
-
-        Mockito.verify(sweepMetrics, times(1)).updateSweepTime(sweepTime.capture(), totalTimeElapsed.capture());
-        verifyExpectedArgument(sweepTime.getValue(), totalTimeElapsed.getValue());
-    }
-
-    @Test
-    public void sweepsEntireTableByDefault() {
-        List<byte[]> startRows = ImmutableList.of(PtBytes.EMPTY_BYTE_ARRAY, new byte[] {0x10}, new byte[] {0x50});
-
-        for (int i = 0; i < startRows.size(); i++) {
-            byte[] currentRow = startRows.get(i);
-            Optional<byte[]> nextRow =
-                    (i + 1) == startRows.size() ? Optional.empty() : Optional.of(startRows.get(i + 1));
-
-            SweepResults results = SweepResults.createEmptySweepResult(nextRow);
-            when(sweepTaskRunner.run(any(), any(), eq(currentRow), any())).thenReturn(results);
-        }
-
-        sweeperService.sweepTableFully(TABLE_REF.getQualifiedName());
-
-        startRows.forEach(row -> verify(sweepTaskRunner).run(any(), any(), eq(row), any()));
-        verifyNoMoreInteractions(sweepTaskRunner);
-    }
-
-    @Test
-    public void runsOneIterationIfRequested() {
-        setupTaskRunner(RESULTS_MORE_TO_SWEEP);
-
-        sweeperService.sweepTable(
-                TABLE_REF.getQualifiedName(),
-                Optional.empty(),
-                Optional.of(false),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        verify(sweepTaskRunner, times(1)).run(any(), any(), any(), any());
-        verifyNoMoreInteractions(sweepTaskRunner);
-    }
-
-    private void verifyExpectedArgument(long sweepTime, long totalTimeElapsed) {
-        assertThat(RESULTS_NO_MORE_TO_SWEEP.getTimeInMillis()).isEqualTo(sweepTime);
-        assertThat(totalTimeElapsed)
-                .isBetween(
-                        RESULTS_NO_MORE_TO_SWEEP.getTimeElapsedSinceStartedSweeping() - 1000L,
-                        RESULTS_NO_MORE_TO_SWEEP.getTimeElapsedSinceStartedSweeping());
-    }
-
-    private String encodeStartRow(byte[] rowBytes) {
-        return BaseEncoding.base16().encode(rowBytes);
-    }
-
-    private void verifyNoSweepResultsSaved() {
-        verify(progressStore, never()).saveProgress(any());
-        verify(priorityStore, never()).update(any(), any(), any());
-    }
-}u}(jUF (ed0c8b2b67fd881994a89c56448b471760eee7f3jF `atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitionerTest.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -30,14 +30,14 @@
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.Iterables;
-import com.google.common.util.concurrent.UncheckedExecutionException;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.atlasdb.table.description.SweeperStrategy;
+import com.palantir.common.exception.PalantirRuntimeException;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
@@ -74,15 +74,16 @@ public void setup() {
     public void getStrategyThrowsForIllegalMetadata() {
         when(mockKvs.getMetadataForTable(any())).thenReturn(AtlasDbConstants.EMPTY_TABLE_METADATA);
         assertThatThrownBy(() -> partitioner.getStrategy(getWriteInfoWithFixedShard(getTableRef("a"), 0, numShards)))
-                .isInstanceOf(UncheckedExecutionException.class);
+                .isInstanceOf(PalantirRuntimeException.class)
+                .hasMessageContaining("Message missing required fields: rowName, columns, conflictHandler");
     }
 
     @Test
     public void getStrategyThrowsOnUncheckedException() {
         RuntimeException cause = new RuntimeException("cause");
         when(mockKvs.getMetadataForTable(any())).thenThrow(cause);
         assertThatThrownBy(() -> partitioner.getStrategy(getWriteInfoWithFixedShard(getTableRef("a"), 0, numShards)))
-                .isInstanceOf(UncheckedExecutionException.class)
+                .isInstanceOf(RuntimeException.class)
                 .hasCause(cause);
     }
 u}(jUF (c8823c29da58eca2fbdcdf7fc98f8ab892c82d54jF matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javajF addedjF KSjF K jF KSjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X<
  @@ -0,0 +1,83 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class ExpectationsMetricsReportingTest {
+    // immutable in type declaration for better 'withX' ergonomics
+    private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
+            ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
+
+    private ExpectationsMetrics metrics;
+
+    @Before
+    public void setUp() {
+        metrics = ExpectationsMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
+    }
+
+    @Test
+    public void ageReported() {
+        long age = 129L;
+        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, metrics);
+        assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
+    }
+
+    @Test
+    public void bytesReadReported() {
+        long bytes = 1290L;
+        reportMetrics(BLANK_READ_INFO.withBytesRead(bytes));
+        assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
+    }
+
+    @Test
+    public void kvsCallsReported() {
+        long calls = 12L;
+        reportMetrics(BLANK_READ_INFO.withKvsCalls(calls));
+        assertThat(metrics.kvsReads().getSnapshot().getValues()).containsOnly(calls);
+    }
+
+    @Test
+    public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
+        reportMetrics(BLANK_READ_INFO);
+        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+                .isEmpty();
+    }
+
+    @Test
+    public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
+        long bytes = 193L;
+        reportMetrics(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+                .containsOnly(bytes);
+    }
+
+    private void reportMetrics(TransactionReadInfo readInfo) {
+        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, metrics);
+    }
+}u}(jUF (cd21ecbc3c68e28c454d5bff8f68991164cec40bjF tatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/TransactionConflictDetectionManagerTest.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConflictDetectionManagerTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConflictDetectionManagerTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConflictDetectionManagerTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -21,7 +21,7 @@
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.Mockito.when;
 
-import com.google.common.cache.CacheLoader;
+import com.github.benmanes.caffeine.cache.CacheLoader;
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;u}(jUF (9e9357f8de655d0e17ba1dd9b8acd708782624dajF _atlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/KeyValueTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FKeyValueTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FKeyValueTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FKeyValueTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -720,6 +721,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -743,5 +745,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "hup2zbIPEU3UyNMOfe1YNw==";
+    static String __CLASS_HASH = "EvFEiQbULvhKQD1IWFw9Og==";
 }u}(jUF (71133787b090b82a707e49603e186dfa7e9667bbjF jatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamHashAidxTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamHashAidxTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamHashAidxTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamHashAidxTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "5cWqgzNsimsjOXwgH7qMXg==";
+    static String __CLASS_HASH = "JgFB0UN+4Pm4N3LOPvQBgQ==";
 }u}(jUF (12c3935195ed70fde95f3887274b533b88339351jF eatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamIdxTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamIdxTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamIdxTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamIdxTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "MkCIg9TK7rahg1mYHQmGVQ==";
+    static String __CLASS_HASH = "bEOuPNCg8sYuyW4OuRhvww==";
 }u}(jUF (89e24ea6242c9b9fb14e61ea5dcf01368dfc11ddjF jatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamMetadataTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamMetadataTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamMetadataTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamMetadataTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "C96zzv/xJuD8fFjGUzSd4A==";
+    static String __CLASS_HASH = "lqzqHpNRg+/IVPQNyNYi8w==";
 }u}(jUF (131662e5ecd75a9a845b1ada71a5f0caabb1015bjF batlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamStore.javajF modifiedjF KjF KjF K	jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamStore.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamStore.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamStore.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X$
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         ValueStreamMetadataTable table = tables.getValueStreamMetadataTable(t);
         Map<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<ValueStreamHashAidxTable.ValueStreamHashAidxRow, ValueStreamHashAidxTable.ValueStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (ValueStreamHashAidxTable.ValueStreamHashAidxRow r : m.keySet()) {
             for (ValueStreamHashAidxTable.ValueStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> rows = new HashSet<>();
+        Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(ValueStreamHashAidxTable.ValueStreamHashAidxRow.of(h));
         }u}(jUF (8612b0a582e6b1950385aa6d1574bbac6e20ffa1jF gatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamValueTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamValueTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamValueTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamValueTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "AWqOKaIXG5obDvezpY9QEQ==";
+    static String __CLASS_HASH = "uFwDglAaZjBu9w6E/JkGTA==";
 }u}(jUF (026fff67eab8e84d14bad0730080cfefeff0ac7djF atlasdb-service/build.gradlejF modifiedjF KjF K jF KjF phttps://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-service%2Fbuild.gradlejF ohttps://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-service%2Fbuild.gradlejF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-service%2Fbuild.gradle?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -11,6 +11,7 @@ dependencies {
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'
     implementation 'com.fasterxml.jackson.core:jackson-databind'
+    implementation 'com.github.ben-manes.caffeine:caffeine'
     implementation 'com.google.guava:guava'
     implementation 'com.google.protobuf:protobuf-java'
     implementation 'com.palantir.safe-logging:preconditions'u}(jUF (b79b4dafcc946cf96444ea06a15f80c43c917632jF Oatlasdb-service/src/main/java/com/palantir/atlasdb/impl/AtlasDbServiceImpl.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FAtlasDbServiceImpl.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FAtlasDbServiceImpl.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FAtlasDbServiceImpl.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF Xh  @@ -15,8 +15,8 @@
  */
 package com.palantir.atlasdb.impl;
 
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Iterables;
@@ -66,7 +66,7 @@ public class AtlasDbServiceImpl implements AtlasDbService {
     private final KeyValueService kvs;
     private final TransactionManager txManager;
     private final Cache<TransactionToken, OpenTransaction> transactions =
-            CacheBuilder.newBuilder().expireAfterAccess(Duration.ofHours(12)).build();
+            Caffeine.newBuilder().expireAfterAccess(Duration.ofHours(12)).build();
     private final TableMetadataCache metadataCache;
 
     @Injectu      }(jUF (0ada116d7372c26c8a0931872702ce8748ea8d09jF Oatlasdb-service/src/main/java/com/palantir/atlasdb/impl/TableMetadataCache.javajF modifiedjF K	jF K
jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FTableMetadataCache.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FTableMetadataCache.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FTableMetadataCache.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -15,9 +15,8 @@
  */
 package com.palantir.atlasdb.impl;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.table.description.TableMetadata;
@@ -31,24 +30,21 @@ public class TableMetadataCache {
 
     @Inject
     public TableMetadataCache(final KeyValueService kvs) {
-        this.cache = CacheBuilder.newBuilder()
+        this.cache = Caffeine.newBuilder()
                 .expireAfterAccess(Duration.ofMinutes(15))
-                .build(new CacheLoader<String, TableMetadata>() {
-                    @Override
-                    public TableMetadata load(String tableName) throws Exception {
-                        byte[] rawMetadata = kvs.getMetadataForTable(TableReference.createUnsafe(tableName));
-                        if (rawMetadata == null || rawMetadata.length == 0) {
-                            return EMPTY;
-                        }
-                        return TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(rawMetadata);
+                .build(tableName -> {
+                    byte[] rawMetadata = kvs.getMetadataForTable(TableReference.createUnsafe(tableName));
+                    if (rawMetadata == null || rawMetadata.length == 0) {
+                        return EMPTY;
                     }
+                    return TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(rawMetadata);
                 });
     }
 
     @CheckForNull
     @SuppressWarnings("ImmutablesReferenceEquality")
     public TableMetadata getMetadata(String tableName) {
-        TableMetadata ret = cache.getUnchecked(tableName);
+        TableMetadata ret = cache.get(tableName);
         if (ret == EMPTY) {
             return null;
         }u}(jUF (633bf2503dddd056c1d63648ab4b3b33ddae8945jF !atlasdb-tests-shared/build.gradlejF modifiedjF KjF K jF KjF uhttps://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fbuild.gradlejF thttps://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fbuild.gradlejF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fbuild.gradle?ref=de0dabc1540a68e247bc016884c4e2681764f596jF Xc  @@ -16,6 +16,7 @@ dependencies {
   implementation 'org.awaitility:awaitility'
 
   implementation 'com.fasterxml.jackson.core:jackson-core'
+  implementation 'com.github.ben-manes.caffeine:caffeine'
   implementation 'com.google.guava:guava'
   implementation 'com.palantir.common:streams'
   implementation 'com.palantir.conjure.java.api:service-config'u}(jUF (d030dbed17299b5450443775cf43034372a1ca11jF datlasdb-tests-shared/src/main/java/com/palantir/atlasdb/sweep/SweeperServiceImplIntegrationTest.javajF removedjF K jF KjF KjF https://github.com/palantir/atlasdb/blob/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplIntegrationTest.javajF https://github.com/palantir/atlasdb/raw/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplIntegrationTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplIntegrationTest.java?ref=7798b4ff8448588fecb6aa32284dd0ed8819f7d1jF X&  @@ -1,235 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.Cell;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.Value;
-import com.palantir.atlasdb.keyvalue.impl.InMemoryKeyValueService;
-import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
-import com.palantir.common.streams.KeyedStream;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.concurrent.ThreadLocalRandom;
-import java.util.stream.Collectors;
-import java.util.stream.IntStream;
-import org.junit.Before;
-import org.junit.Test;
-
-public class SweeperServiceImplIntegrationTest extends AbstractBackgroundSweeperIntegrationTest {
-    private SweeperService sweeperService;
-
-    @Before
-    @Override
-    public void setup() {
-        super.setup();
-        sweeperService = new SweeperServiceImpl(specificTableSweeper, sweepBatchConfigSource);
-    }
-
-    @Override
-    @Test
-    public void smokeTest() {
-        createTable(TABLE_1, SweepStrategy.CONSERVATIVE);
-        putManyCells(TABLE_1, 100, 110);
-        putManyCells(TABLE_1, 103, 113);
-        putManyCells(TABLE_1, 105, 115);
-        sweeperService.sweepTableFully(TABLE_1.getQualifiedName());
-        verifyTableSwept(TABLE_1, 75, true);
-    }
-
-    @Test
-    public void previouslyConservativeErasesMostExistingSentinelsInThoroughTable() {
-        skipCellVersion.setPeriod(Integer.MAX_VALUE);
-        createTable(TABLE_1, SweepStrategy.THOROUGH);
-
-        Map<Cell, byte[]> sentinelWrites = IntStream.range(0, 100)
-                .mapToObj(PtBytes::toBytes)
-                .map(bytes -> Cell.create(bytes, bytes))
-                .collect(Collectors.toMap(cell -> cell, _ignore -> PtBytes.EMPTY_BYTE_ARRAY));
-        kvs.put(TABLE_1, sentinelWrites, Value.INVALID_VALUE_TIMESTAMP);
-        Map<Cell, Long> readMap = KeyedStream.stream(sentinelWrites)
-                .map(_ignore -> Long.MAX_VALUE)
-                .collectToMap();
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(100);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(1);
-    }
-
-    @Test
-    public void previouslyConservativeRunsFullSweepIfTableIsStillConservativelySwept() {
-        createTable(TABLE_1, SweepStrategy.CONSERVATIVE);
-
-        Map<Cell, byte[]> writes = KeyedStream.of(IntStream.range(0, 100).boxed())
-                .mapKeys(PtBytes::toBytes)
-                .mapKeys(bytes -> Cell.create(bytes, bytes))
-                .map(PtBytes::toBytes)
-                .collectToMap();
-        kvs.put(TABLE_1, writes, 100L);
-        txService.putUnlessExists(100L, 101L);
-        kvs.put(TABLE_1, writes, 103L);
-        txService.putUnlessExists(103L, 104L);
-        Map<Cell, Long> readMap =
-                KeyedStream.stream(writes).map(_ignore -> 102L).collectToMap();
-
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(100);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        Map<Cell, Value> reads = kvs.get(TABLE_1, readMap);
-        // lower ts entries are swept, but we have sentinels
-        assertThat(reads.values().stream().map(Value::getTimestamp).collect(Collectors.toSet()))
-                .containsExactly(Value.INVALID_VALUE_TIMESTAMP);
-        assertThat(reads).hasSize(100);
-        Map<Cell, Long> readsAtMaxTs =
-                KeyedStream.stream(readMap).map(_ignore -> Long.MAX_VALUE).collectToMap();
-        Map<Cell, Value> maxTsReads = kvs.get(TABLE_1, readsAtMaxTs);
-        assertThat(maxTsReads.values().stream().map(Value::getTimestamp).collect(Collectors.toSet()))
-                .containsExactly(103L);
-        assertThat(maxTsReads).hasSize(100);
-    }
-
-    /**
-     * To help understand the test below, refer to the tables.
-     * Before sweep
-     * +----------+--------+-----------+
-     * | START_TS | VALUES | DELETIONS |
-     * +----------+--------+-----------+
-     * |      100 |    500 |       500 |
-     * |      103 |    500 |       500 |
-     * +----------+--------+-----------+
-     *
-     * After sweep
-     * +----------+--------+-----------+
-     * | START_TS | VALUES | DELETIONS |
-     * +----------+--------+-----------+
-     * |      100 |      6 |         5 |
-     * |      103 |    500 |     5 + 5 |
-     * +----------+--------+-----------+
-     */
-    @Test
-    public void previouslyConservativeRespectsSkipPeriodWhenSweepingNormally() {
-        skipCellVersion.setPeriod(9);
-        createTable(TABLE_1, SweepStrategy.THOROUGH);
-
-        Map<Cell, byte[]> writes = KeyedStream.of(IntStream.range(0, 1000).boxed())
-                .mapKeys(PtBytes::toBytes)
-                .mapKeys(bytes -> Cell.create(bytes, bytes))
-                .map(count -> count < 500 ? PtBytes.toBytes(count) : PtBytes.EMPTY_BYTE_ARRAY)
-                .collectToMap();
-        kvs.put(TABLE_1, writes, 100L);
-        txService.putUnlessExists(100L, 101L);
-        kvs.put(TABLE_1, writes, 103L);
-        txService.putUnlessExists(103L, 104L);
-
-        Map<Cell, Long> readMap =
-                KeyedStream.stream(writes).map(_ignore -> 102L).collectToMap();
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(1000);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        assertThat(kvs.get(TABLE_1, readMap))
-                .as("deletes all but 11 entries at lower timestamp ~ 1%")
-                .hasSize(11);
-        Map<Cell, Long> readsAtMaxTs =
-                KeyedStream.stream(readMap).map(_ignore -> Long.MAX_VALUE).collectToMap();
-        Map<Cell, Value> latestVisibleVersions = kvs.get(TABLE_1, readsAtMaxTs);
-        assertThat(latestVisibleVersions.values().stream()
-                        .map(Value::getTimestamp)
-                        .noneMatch(timestamp -> timestamp == 100L))
-                .as("none of the entries at lower ts are naked")
-                .isTrue();
-        assertThat(latestVisibleVersions)
-                .as("500 non-deletes, 5 deletes skipped normally, and 5 skipped to prevent revealing at lower ts")
-                .hasSize(510);
-    }
-
-    @Test
-    public void sweepPreviouslyConservativeNowThoroughTableFuzzTest() {
-        skipCellVersion.makeNonDeterministic();
-        createTable(TABLE_1, SweepStrategy.THOROUGH);
-
-        Set<Cell> cells = IntStream.range(0, 10_000)
-                .boxed()
-                .map(PtBytes::toBytes)
-                .map(bytes -> Cell.create(bytes, bytes))
-                .collect(Collectors.toSet());
-
-        for (int i = 0; i < 10; i++) {
-            Map<Cell, byte[]> writes = KeyedStream.of(cells)
-                    .map(cell ->
-                            ThreadLocalRandom.current().nextBoolean() ? cell.getRowName() : PtBytes.EMPTY_BYTE_ARRAY)
-                    .collectToMap();
-            kvs.put(TABLE_1, writes, 100L + 2L * i);
-            txService.putUnlessExists(100L + 2L * i, 101L + 2L * i);
-        }
-
-        Map<Cell, Long> readMap = KeyedStream.of(cells).map(_ignore -> 102L).collectToMap();
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(10_000);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        assertThat(kvs.get(TABLE_1, readMap).size())
-                .as("expected number of remaining entries is 1%, ~100")
-                .isBetween(50, 200);
-
-        Map<Cell, Long> readsAtMaxTs =
-                KeyedStream.of(cells).map(_ignore -> Long.MAX_VALUE).collectToMap();
-        Map<Cell, Value> latestVisibleVersions = kvs.get(TABLE_1, readsAtMaxTs);
-        assertThat(latestVisibleVersions.values().stream()
-                        .map(Value::getTimestamp)
-                        .allMatch(ts -> ts == 100 + 2 * 9))
-                .as("every visible cell still has the version at greatest timestamp")
-                .isTrue();
-        assertThat(latestVisibleVersions.size())
-                .as("expected number of cells that are fully deleted is ~45.22%, ~5500 remaining")
-                .isBetween(4500, 6500);
-    }
-
-    @Override
-    protected KeyValueService getKeyValueService() {
-        return new InMemoryKeyValueService(true);
-    }
-}u}(jUF (495fe1f85525119f02ade86e97c44ed5de897764jF katlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/TestConflictDetectionManagers.javajF modifiedjF KjF KjF K	jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTestConflictDetectionManagers.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTestConflictDetectionManagers.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTestConflictDetectionManagers.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X#  @@ -16,7 +16,6 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.google.common.annotations.VisibleForTesting;
-import com.google.common.cache.CacheLoader;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import java.util.Map;
@@ -28,11 +27,7 @@ private TestConflictDetectionManagers() {}
     @VisibleForTesting
     static ConflictDetectionManager createWithStaticConflictDetection(
             Map<TableReference, Optional<ConflictHandler>> staticMap) {
-        return new ConflictDetectionManager(new CacheLoader<>() {
-            @Override
-            public Optional<ConflictHandler> load(TableReference tableReference) throws Exception {
-                return staticMap.getOrDefault(tableReference, Optional.of(ConflictHandler.RETRY_ON_WRITE_WRITE));
-            }
-        });
+        return new ConflictDetectionManager(tableReference ->
+                staticMap.getOrDefault(tableReference, Optional.of(ConflictHandler.RETRY_ON_WRITE_WRITE)));
     }
 }u}(jUF (8732fe7b76fe6fc4d194ebc3c3c808c8ab2df91ejF uatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetricsAssert.javajF modifiedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -59,6 +59,11 @@ public TransactionOutcomeMetricsAssert hasRollbackOther(long count) {
         return this;
     }
 
+    public TransactionOutcomeMetricsAssert hasCommitLockAcquisitionFailures(long count) {
+        checkPresentAndCheckCount(TransactionOutcome.COMMIT_LOCK_ACQUISITION_FAILED, count);
+        return this;
+    }
+
     public TransactionOutcomeMetricsAssert hasLocksExpired(long count) {
         checkPresentAndCheckCount(TransactionOutcome.LOCKS_EXPIRED, count);
         return this;u}(jUF (5cdcabaa8268eb540f0ccfc73d1fe1870eb88dadjF Xatlasdb-tests-shared/src/main/java/com/palantir/timelock/paxos/InMemoryTimeLockRule.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimeLockRule.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimeLockRule.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimeLockRule.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -17,9 +17,9 @@
 package com.palantir.timelock.paxos;
 
 import com.palantir.atlasdb.keyvalue.api.watch.LockWatchManagerInternal;
-import com.palantir.atlasdb.timelock.AsyncTimelockResource;
 import com.palantir.atlasdb.timelock.AsyncTimelockService;
 import com.palantir.atlasdb.timelock.TimeLockServices;
+import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.lock.LockService;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.timestamp.ManagedTimestampService;
@@ -66,11 +66,6 @@ public LockService getLockService() {
         return services.getLockService();
     }
 
-    @Override
-    public AsyncTimelockResource getTimelockResource() {
-        return services.getTimelockResource();
-    }
-
     @Override
     public AsyncTimelockService getTimelockService() {
         return services.getTimelockService();
@@ -81,6 +76,11 @@ public TimestampManagementService getTimestampManagementService() {
         return services.getTimestampManagementService();
     }
 
+    @Override
+    public LockLog getLockLog() {
+        return services.getLockLog();
+    }
+
     public TimelockService getLegacyTimelockService() {
         return services.getLegacyTimelockService();
     }u}(jUF (fd1072fee241e64f646b79a5c47f7f4c01826392jF \atlasdb-tests-shared/src/main/java/com/palantir/timelock/paxos/InMemoryTimelockServices.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -21,11 +21,11 @@
 import com.palantir.atlasdb.http.RedirectRetryTargeter;
 import com.palantir.atlasdb.keyvalue.api.LockWatchCachingConfig;
 import com.palantir.atlasdb.keyvalue.api.watch.LockWatchManagerInternal;
-import com.palantir.atlasdb.timelock.AsyncTimelockResource;
 import com.palantir.atlasdb.timelock.AsyncTimelockService;
 import com.palantir.atlasdb.timelock.ConjureTimelockResource;
 import com.palantir.atlasdb.timelock.TimeLockServices;
 import com.palantir.atlasdb.timelock.api.ConjureTimelockService;
+import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.conjure.java.api.config.service.PartialServiceConfiguration;
@@ -205,11 +205,6 @@ public LockService getLockService() {
         return delegate.getLockService();
     }
 
-    @Override
-    public AsyncTimelockResource getTimelockResource() {
-        return delegate.getTimelockResource();
-    }
-
     @Override
     public AsyncTimelockService getTimelockService() {
         return delegate.getTimelockService();
@@ -220,6 +215,11 @@ public TimestampManagementService getTimestampManagementService() {
         return delegate.getTimestampManagementService();
     }
 
+    @Override
+    public LockLog getLockLog() {
+        return delegate.getLockLog();
+    }
+
     public ManagedTimestampService getManagedTimestampService() {
         return delegate.getTimelockService();
     }u}(jUF (b477ac45a67d3461a2afb8a529c94e3055b5291cjF \atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/factory/TransactionManagersTest.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -165,7 +165,7 @@ public class TransactionManagersTest {
     private AtlasDbConfig config;
     private AtlasDbRuntimeConfig mockAtlasDbRuntimeConfig;
 
-    private Consumer<Object> environment;
+    private Consumer<Object> registrar;
     private TimestampStoreInvalidator invalidator;
     private Consumer<Runnable> originalAsyncMethod;
 
@@ -208,7 +208,7 @@ public void setUp() {
         when(mockAtlasDbRuntimeConfig.timelockRuntime()).thenReturn(Optional.empty());
         when(mockAtlasDbRuntimeConfig.remotingClient()).thenReturn(RemotingClientConfigs.DEFAULT);
 
-        environment = mock(Consumer.class);
+        registrar = mock(Consumer.class);
 
         invalidator = mock(TimestampStoreInvalidator.class);
         when(invalidator.backupAndInvalidate()).thenReturn(EMBEDDED_BOUND);
@@ -236,7 +236,7 @@ public void cannotProvideRuntimeConfigTwice() {
                         .userAgent(USER_AGENT)
                         .globalMetricsRegistry(new MetricRegistry())
                         .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                        .registrar(environment)
+                        .registrar(registrar)
                         .runtimeConfig(Refreshable.only(Optional.empty()))
                         .runtimeConfigSupplier(Optional::empty)
                         .build())
@@ -351,7 +351,7 @@ public void setsGlobalDefaultLockTimeout() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build()
                 .serializable();
 
@@ -412,7 +412,7 @@ public void runsClosingCallbackOnShutdown() throws Exception {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build()
                 .serializable();
         manager.registerClosingCallback(callback);
@@ -432,7 +432,7 @@ public void keyValueServiceMetricsDoNotContainUserAgent() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build()
                 .serializable();
         assertThat(metrics.getNames().stream().anyMatch(metricName -> metricName.contains(USER_AGENT_NAME)))
@@ -453,7 +453,7 @@ public void overriddenServiceNameIsReturned() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .serviceIdentifierOverride("overriden")
                 .build();
 
@@ -473,7 +473,7 @@ public void serviceNameIsFetchedFromAtlasConfig() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build();
         assertThat(transactionManagers.serviceName()).isEqualTo("namespace");
     }
@@ -493,7 +493,7 @@ public void serviceNameIsFetchedFromKvsConfigWhenItIsNotPresentInAtlasConfig() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build();
 
         assertThat(transactionManagers.serviceName()).isEqualTo("namespace");
@@ -510,7 +510,7 @@ public void serviceNameFallsBackToDefaultWhenNamespaceIsNotPresent() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build();
 
         assertThat(transactionManagers.serviceName()).isEqualTo("UNKNOWN");
@@ -520,7 +520,7 @@ public void serviceNameFallsBackToDefaultWhenNamespaceIsNotPresent() {
     public void interruptingLocalLeaderElectionTerminates() throws IOException {
         Leaders.LocalPaxosServices localPaxosServices = Leaders.createAndRegisterLocalServices(
                 metricsManager,
-                environment,
+                registrar,
                 ImmutableLeaderConfig.builder()
                         .localServer("https://example")
                         .quorumSize(1)
@@ -593,7 +593,7 @@ private TransactionManagers withLockImmutableTsOnReadOnlyTransaction(boolean opt
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .lockImmutableTsOnReadOnlyTransactions(option)
                 .build();
     }
@@ -699,7 +699,7 @@ private KeyValueService initializeKeyValueServiceWithSweepSettings(boolean enabl
                 .userAgent(UserAgent.of(UserAgent.Agent.of("test", "0.0.0")))
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema())
                 .runtimeConfigSupplier(() -> Optional.of(atlasDbRuntimeConfig))
                 .build()
@@ -762,7 +762,7 @@ private void setUpForLocalServices() throws IOException {
                             .withBody(("\"" + localPingableLeader.getUUID() + "\"").getBytes(StandardCharsets.UTF_8))));
                     return null;
                 })
-                .when(environment)
+                .when(registrar)
                 .accept(isA(PingableLeader.class));
         setUpLeaderBlockInConfig();
     }
@@ -807,7 +807,7 @@ private LockAndTimestampServices getLockAndTimestampServices() {
                         metricsManager,
                         config,
                         Refreshable.only(mockAtlasDbRuntimeConfig),
-                        environment,
+                        registrar,
                         LockServiceImpl::create,
                         () -> ts,
                         invalidator,u}(jUF (8154359d774907dc53f1db528c9656c41f00ad36jF `atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/indexing/generated/DataTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FDataTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FDataTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FDataTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -3605,6 +3606,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -3628,5 +3630,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "rHjWG0+SGxcp7KyF4uN6Tg==";
+    static String __CLASS_HASH = "fgza/c8nH19LqrftPRIqiA==";
 }u}(jUF (ee2a5122bea79238ecd27ad1e4ca1456a7f7b835jF fatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/indexing/generated/TwoColumnsTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FTwoColumnsTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FTwoColumnsTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FTwoColumnsTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -2175,6 +2176,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -2198,5 +2200,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "ZLP1HeIjAhSt/NFAlfaFZw==";
+    static String __CLASS_HASH = "KStjuJG0LJnDxQ1sOAdxdg==";
 }u}(jUF (c38a44055aef521e0c7a9078ac8e38e1f8f113f3jF batlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/KeyValueTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FKeyValueTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FKeyValueTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FKeyValueTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "FVgUWmuxuVzpOrJIO/DXPQ==";
+    static String __CLASS_HASH = "4kr4uM+Pm0pXXBnI3Rwp/g==";
 }u}(jUF (483655cb2596c5c21bca0cbf355078fc452c2f2djF xatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamHashAidxTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamHashAidxTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamHashAidxTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamHashAidxTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "8WWlkvBZIFpNHwUr7wJuXA==";
+    static String __CLASS_HASH = "QDCK4a9zv6EgLNkYkrAVPQ==";
 }u}(jUF (69c2cc77ef0d597921e1c6bf0028a4c9b6da106ejF satlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamIdxTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamIdxTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamIdxTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamIdxTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "fBsgiTVm3m2sJucODfXkrw==";
+    static String __CLASS_HASH = "ZrY7oPqs4lWL5Vm3ZAOfyQ==";
 }u}(jUF (a48313725d6bbc0ecd9e5fd285aa2e10742f285djF xatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamMetadataTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamMetadataTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamMetadataTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamMetadataTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "YleWz4H842qjJBXcYvLobg==";
+    static String __CLASS_HASH = "k1qnaFkT6dVNCXg3oBI4WQ==";
 }u}(jUF (b52156d27108b8235106d6448d277090b0bc34f1jF patlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamStore.javajF modifiedjF KjF KjF K	jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamStore.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamStore.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamStore.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XX  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         StreamTestMaxMemStreamMetadataTable table = tables.getStreamTestMaxMemStreamMetadataTable(t);
         Map<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow, StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow r : m.keySet()) {
             for (StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> rows = new HashSet<>();
+        Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow.of(h));
         }u}(jUF (4cc09292a0c881814092e59571bf42259f56cab7jF uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamValueTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamValueTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamValueTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamValueTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "1ctM+vcHEi56Rw7hX+plQg==";
+    static String __CLASS_HASH = "pYIryyxlhArJOo7k0Zv3dA==";
 }u}(jUF (f825d53bfb0e6c5d7381ec01f8ecd07240bf379cjF ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamHashAidxTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamHashAidxTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamHashAidxTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamHashAidxTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "A+NE35cfeEnY2MHhBM0Twg==";
+    static String __CLASS_HASH = "aO3hKAuHYd9vJquk5PiY1w==";
 }u}(jUF (5502e70c87e613d70db75d4804d811626d434f02jF matlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamIdxTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamIdxTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamIdxTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamIdxTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "eaBakAMUdj76AdcnIf29/Q==";
+    static String __CLASS_HASH = "hWTBrXR/SoJCr/v5CGBp5Q==";
 }u}(jUF (ec5dd38ea6150d4b8d92e1084501290f8c0fef27jF ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamMetadataTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamMetadataTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamMetadataTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamMetadataTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "gtouBjIyyNsb/b/qc9pCHA==";
+    static String __CLASS_HASH = "I4QsHKuDj4n21oCZPrbGRw==";
 }u}(jUF (003e31d632e6a70db0661c723e695e8a07ef78a2jF jatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamStore.javajF modifiedjF KjF KjF K	jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamStore.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamStore.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamStore.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         StreamTestStreamMetadataTable table = tables.getStreamTestStreamMetadataTable(t);
         Map<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow, StreamTestStreamHashAidxTable.StreamTestStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow r : m.keySet()) {
             for (StreamTestStreamHashAidxTable.StreamTestStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> rows = new HashSet<>();
+        Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow.of(h));
         }u}(jUF (67cbdf05b137660b3db269c6391c261c8816ea46jF oatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamValueTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamValueTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamValueTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamValueTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Zjb+q9OtKHIGgdeO8BnLSw==";
+    static String __CLASS_HASH = "/Af3nGP1PVa3CpaveqZwGA==";
 }u}(jUF (917b574b5d504d1cb1c8bf3fcffd2b3c22519a95jF zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamHashAidxTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamHashAidxTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamHashAidxTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamHashAidxTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "X1hqbiqiEZbDU9agjHYzMA==";
+    static String __CLASS_HASH = "lE3nxoiGnxh9y5ILD8Ji1Q==";
 }u}(jUF (303868d7e785a5c1384e703d5a65adf7a26b2a74jF uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamIdxTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamIdxTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamIdxTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamIdxTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -730,6 +731,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -753,5 +755,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "U/6cxNEugWqjJJAs3M94Ew==";
+    static String __CLASS_HASH = "R1lO5ziYaN0Udjl/IakPew==";
 }u}(jUF (71ec56a5ce54c4d000801a844aada1339c16a547jF zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamMetadataTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamMetadataTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamMetadataTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamMetadataTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -697,6 +698,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -720,5 +722,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "nfCYOSFgRw9vgCfK8zepPQ==";
+    static String __CLASS_HASH = "ZnMVClEGG1k/Y9BfO/PktA==";
 }u}(jUF (b239a11943f978187efeb70a40e27a8726a0f1dbjF ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamStore.javajF modifiedjF KjF KjF K	jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamStore.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamStore.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamStore.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         StreamTestWithHashStreamMetadataTable table = tables.getStreamTestWithHashStreamMetadataTable(t);
         Map<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow, StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow r : m.keySet()) {
             for (StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> rows = new HashSet<>();
+        Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow.of(h));
         }u}(jUF (c74f7ec43a6341758a168abed0155c4295302fa9jF watlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamValueTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamValueTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamValueTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamValueTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596      jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -684,6 +685,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -707,5 +709,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "gK5/dTiV0fnsYG3GkVekCA==";
+    static String __CLASS_HASH = "uywx4Vs+y/rXbP+WoU1Vqg==";
 }u}(jUF (01c9c33be5490be859359377b6d7903a04344513jF zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamHashAidxTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamHashAidxTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamHashAidxTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamHashAidxTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Ki6bqIt1Bc7VLmWbBOyz8w==";
+    static String __CLASS_HASH = "52McDDADyoK80XG2PM7xUQ==";
 }u}(jUF (693352f35cd8833aee14743963d366a5727e2a75jF uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamIdxTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamIdxTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamIdxTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamIdxTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -730,6 +731,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -753,5 +755,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "1iZU2XfKSsaB+roXMxh1gQ==";
+    static String __CLASS_HASH = "tH6ZP3FAS46/RMntNor6tw==";
 }u}(jUF (0d40497726fdeeb4e593498fd2a0b43d8e75e666jF zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamMetadataTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamMetadataTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamMetadataTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamMetadataTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -697,6 +698,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -720,5 +722,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "+eCmpk539lJx0Nvz/T4ltw==";
+    static String __CLASS_HASH = "j3IJu2gsDa9Zov5ZP9X4Mw==";
 }u}(jUF (f2eb8a4207166b17b12c7605809b2b0c3d930ff2jF ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamStore.javajF modifiedjF KjF KjF K	jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamStore.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamStore.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamStore.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         TestHashComponentsStreamMetadataTable table = tables.getTestHashComponentsStreamMetadataTable(t);
         Map<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow, TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow r : m.keySet()) {
             for (TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> rows = new HashSet<>();
+        Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow.of(h));
         }u}(jUF (e7ad00be1ac27e569b3ab9038b9fe44f48f231dbjF watlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamValueTable.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamValueTable.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamValueTable.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamValueTable.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -685,6 +686,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -708,5 +710,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "lib/FOHtmiJ4apr21C/FRA==";
+    static String __CLASS_HASH = "iDMBVL6YNzaq38VRV2lB/g==";
 }u}(jUF (18e3bf26bf01f5384536788e145f8e8f37200656jF latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -237,7 +237,10 @@ public void registersMetrics() throws InterruptedException {
         TaggedMetricRegistry registry = snapshotTransactionManager.metricsManager.getTaggedRegistry();
         assertThat(registry.getMetrics().keySet().stream().map(MetricName::safeName))
                 .contains(SETUP_TASK_METRIC_NAME)
-                .contains(FINISH_TASK_METRIC_NAME);
+                .contains(FINISH_TASK_METRIC_NAME)
+                .contains("expectations.bytesRead")
+                .contains("expectations.kvsReads")
+                .contains("expectations.ageMillis");
         assertThat(registry.timer(MetricName.builder()
                                 .safeName(SETUP_TASK_METRIC_NAME)
                                 .build())u}(jUF (c66fcac2f74aa5be8cdfd05aebf8029a49d9f883jF eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javajF modifiedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -90,6 +90,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionConflictException;
 import com.palantir.atlasdb.transaction.api.TransactionFailedNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionFailedRetriableException;
+import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
@@ -118,6 +119,7 @@
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.TimeDuration;
 import com.palantir.lock.v2.LockImmutableTimestampResponse;
+import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.math.BigInteger;
@@ -322,6 +324,8 @@ public void cleanup() {}
     private static final Cell TEST_CELL = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("column1"));
     private static final Cell TEST_CELL_2 = Cell.create(PtBytes.toBytes("row2"), PtBytes.toBytes("column2"));
 
+    private static final byte[] TEST_VALUE = PtBytes.toBytes("value");
+
     @Override
     @Before
     public void setUp() throws Exception {
@@ -1484,6 +1488,23 @@ public void commitThrowsIfRolledBackAtCommitTime_expiredLocks() {
                 .hasLocksExpired(1);
     }
 
+    @Test
+    public void commitThrowsIfCommitLockAcquisitionFails() {
+        TimelockService timelockService = mock(TimelockService.class);
+        when(timelockService.lock(any(), any())).thenReturn(LockResponse.timedOut());
+        Transaction txn = getSnapshotTransactionWith(timelockService);
+
+        // We only request commit locks for transactions that write at least one value
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+
+        assertThatThrownBy(txn::commit)
+                .isInstanceOf(TransactionLockAcquisitionTimeoutException.class)
+                .hasMessage("Timed out while acquiring commit locks.");
+        TransactionOutcomeMetricsAssert.assertThat(transactionOutcomeMetrics)
+                .hasFailedCommits(1)
+                .hasCommitLockAcquisitionFailures(1);
+    }
+
     @Test
     public void commitThrowsIfRolledBackAtCommitTime_alreadyAborted() {
         final Cell cell = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("column1"));
@@ -2459,6 +2480,14 @@ private void setTransactionConfig(TransactionConfig config) {
         transactionConfig = config;
     }
 
+    private Transaction getSnapshotTransactionWith(TimelockService timelockService) {
+        ConjureStartTransactionsResponse conjureResponse = startTransactionWithWatches();
+        LockImmutableTimestampResponse lockImmutableTimestampResponse = conjureResponse.getImmutableTimestamp();
+        long transactionTs = conjureResponse.getTimestamps().start();
+        return getSnapshotTransactionWith(
+                timelockService, () -> transactionTs, lockImmutableTimestampResponse, unused -> {});
+    }
+
     private Transaction getSnapshotTransactionWith(
             TimelockService timelockService,
             Supplier<Long> startTs,u}(jUF (b86c6ab4d0e299588d4d550dff55a4b053fb2870jF satlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetricsTest.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XL  @@ -72,6 +72,7 @@ public void canMarkVariousOutcomes() {
                 .put(4, transactionOutcomeMetrics::markPutUnlessExistsFailed)
                 .put(5, transactionOutcomeMetrics::markRollbackOtherTransaction)
                 .put(6, transactionOutcomeMetrics::markPreCommitCheckFailed)
+                .put(7, transactionOutcomeMetrics::markCommitLockAcquisitionFailed)
                 .buildOrThrow();
 
         tasks.entrySet().forEach(entry -> IntStream.range(0, entry.getKey())
@@ -83,7 +84,8 @@ public void canMarkVariousOutcomes() {
                 .hasLocksExpired(3)
                 .hasPutUnlessExistsFailures(4)
                 .hasRollbackOther(5)
-                .hasPreCommitCheckFailures(6);
+                .hasPreCommitCheckFailures(6)
+                .hasCommitLockAcquisitionFailures(7);
     }
 
     @Testu}(jUF (9ce74a5cd2c6d02324dae753b39d4472d7e0fcadjF -atlasdb-workload-server-antithesis/DockerfilejF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-antithesis%2FDockerfilejF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-antithesis%2FDockerfilejF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2FDockerfile?ref=de0dabc1540a68e247bc016884c4e2681764f596jF @@ -1,4 +1,6 @@
 FROM scratch
 MAINTAINER AtlasDB Team
 
-ADD docker-compose.yml /
\ No newline at end of file
+ADD docker-compose.yml /
+ADD compact.sh /
+ADD flush.sh /
\ No newline at end of fileu}(jUF (b284936b64cae7e6b461c14a3b7d116eadd96a23jF /atlasdb-workload-server-antithesis/build.gradlejF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-antithesis%2Fbuild.gradlejF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-antithesis%2Fbuild.gradlejF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fbuild.gradle?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XL  @@ -7,5 +7,5 @@ def imageVersion = "${project.version.toString().replaceAll('\\+', '-')}"
 docker {
     name "palantirtechnologies/${project.name}:${imageVersion}"
     tags 'latest', 'snapshot'
-    files 'var/docker-compose.yml'
+    files 'var/docker-compose.yml', 'var/compact.sh', 'var/flush.sh'
 }
\ No newline at end of fileu}(jUF (8fc45b8b9ddc37ded24af638207557f822511685jF 1atlasdb-workload-server-antithesis/var/compact.shjF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shjF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shjF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.sh?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,19 @@
+#!/bin/bash
+
+##
+# (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool compact'¡
\ No newline at end of fileu}(jUF (b5c7b9efcec99e2e4e3b5ccc3eb2f13e725dca1ajF 9atlasdb-workload-server-antithesis/var/docker-compose.ymljF modifiedjF K)jF K	jF K2jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymljF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymljF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -2,7 +2,7 @@ version: '2'
 
 services:
   cassandra1:
-    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
     ports:
       - "9160"
       - "9042"
@@ -13,13 +13,14 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra1
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
 
   cassandra2:
-    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
     ports:
       - "9160"
       - "9042"
@@ -30,13 +31,14 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra2
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
 
   cassandra3:
-    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
     ports:
       - "9160"
       - "9042"
@@ -47,35 +49,65 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra3
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.4
 
-  timelock:
+  timelock1.palantir.pt:
     image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [ bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
     ports:
       - "8421"
       - "8422"
-    container_name: timelock
+    container_name: timelock1.palantir.pt
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.5
 
+  timelock2.palantir.pt:
+    image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [ bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
+    ports:
+      - "8421"
+      - "8422"
+    container_name: timelock2.palantir.pt
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.6
+
+  timelock3.palantir.pt:
+    image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
+    ports:
+      - "8421"
+      - "8422"
+    container_name: timelock3.palantir.pt
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.7
+
+
   workload-server:
     image: palantirtechnologies/atlasdb-workload-server-distribution:unspecified
-    command: [bash, -c, 'cp var/conf/workload-server.timelock.cassandra.yml var/conf/workload-server.yml 
-                         && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160 
+    command: [bash, -c, 'cp var/conf/workload-server.timelock.cassandra.yml var/conf/workload-server.yml
+                         && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160
                          && service/bin/init.sh console']
     container_name: workload-server
     depends_on:
       - cassandra1
       - cassandra2
       - cassandra3
-      - timelock
+      - timelock1.palantir.pt
+      - timelock2.palantir.pt
+      - timelock3.palantir.pt
     networks:
       antithesis-net:
-        ipv4_address: 10.20.20.6
+        ipv4_address: 10.20.20.8
 
 networks:
   antithesis-net:u}(jUF (507c4267b553dffafece23d33ad88df6fd5f4bb2jF /atlasdb-workload-server-antithesis/var/flush.shjF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shjF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shjF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fflush.sh?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,19 @@
+#!/bin/bash
+
+##
+# (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool flush'
\ No newline at end of fileu}(jUF (b7485353a77f6bf0cd6c937bff58416577e13b1djF (atlasdb-workload-server-api/build.gradlejF modifiedjF KjF K jF KjF |https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fbuild.gradlejF {https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fbuild.gradlejF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fbuild.gradle?ref=de0dabc1540a68e247bc016884c4e2681764f596jF @@ -13,4 +13,5 @@ dependencies {
     annotationProcessor 'org.immutables:value'
 
     testImplementation 'com.palantir.safe-logging:preconditions-assertj'
+    testImplementation 'org.mockito:mockito-core'
 }
\ No newline at end of fileu}(jUF (d4fbc32c29d514c2d7a88a64e0fbc48b94b74465jF matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/CrossCellInconsistency.javajF addedjF K-jF K jF K-jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistency.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistency.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistency.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.Map;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+/**
+ * A set of cells that may individually be valid, but considered together may violate some property that is expected
+ * to hold across the group of cells.
+ */
+@Value.Immutable
+public interface CrossCellInconsistency {
+    Map<TableAndWorkloadCell, Optional<Integer>> inconsistentValues();
+
+    @Value.Check
+    default void consistsOfAtLeastTwoCells() {
+        Preconditions.checkArgument(
+                inconsistentValues().size() >= 2,
+                "A cross-cell inconsistency must consist of at least two cells",
+                SafeArg.of("values", inconsistentValues()));
+    }
+
+    static ImmutableCrossCellInconsistency.Builder builder() {
+        return ImmutableCrossCellInconsistency.builder();
+    }
+}u}(jUF (29fc330cc18e86d9e89097012f497c48a1e6c4b9jF fatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/MismatchedValue.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X&  @@ -24,10 +24,10 @@
 @Value.Immutable
 public interface MismatchedValue {
     @Value.Parameter
-    Optional<Integer> actual();
+    ValueAndMaybeTimestamp actual();
 
     @Value.Parameter
-    Optional<Integer> expected();
+    ValueAndMaybeTimestamp expected();
 
     @Value.Check
     default void actualAndExpectedAreNotEqualToEachOther() {
@@ -39,6 +39,10 @@ default void actualAndExpectedAreNotEqualToEachOther() {
     }
 
     static MismatchedValue of(Optional<Integer> actual, Optional<Integer> expected) {
+        return MismatchedValue.of(ValueAndMaybeTimestamp.of(actual), ValueAndMaybeTimestamp.of(expected));
+    }
+
+    static MismatchedValue of(ValueAndMaybeTimestamp actual, ValueAndMaybeTimestamp expected) {
         return ImmutableMismatchedValue.of(actual, expected);
     }
 }u}(jUF (596cccc8bfe0813aaf92d90536ccec5e30931db3jF katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/TransactionInvariant.javajF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,22 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import java.util.List;
+
+public interface TransactionInvariant extends Invariant<List<InvalidWitnessedTransaction>> {}u}(jUF (f4cdcb16e74fcf6db212f3bb382ada34382c7076jF matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/ValueAndMaybeTimestamp.javajF addedjF KEjF K jF KEjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X	  @@ -0,0 +1,69 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import java.util.Optional;
+import org.immutables.value.Value;
+
+/**
+ * Occasionally, storing just a value might not be enough context needed when validating an invariant.
+ *
+ * For example, to detect that the ABA problem has occurred (ABA problem (https://en.wikipedia.org/wiki/ABA_problem),
+ * values alone would not be sufficient. Storing the timestamp associated with the value, such as the start timestamp,
+ * would be able to catch these sort of cases.
+ */
+@Value.Immutable
+public interface ValueAndMaybeTimestamp {
+    ValueAndMaybeTimestamp EMPTY = of(Optional.empty(), Optional.empty());
+
+    /**
+     * Value, which when empty either indicates it does not exist, or has been deleted.
+     */
+    @Value.Parameter
+    Optional<Integer> value();
+
+    /**
+     * Optional timestamp associated with the value. When empty it means either it does not exist, or it is not needed
+     * for comparison.
+     */
+    @Value.Parameter
+    Optional<Long> timestamp();
+
+    static ValueAndMaybeTimestamp empty() {
+        return EMPTY;
+    }
+
+    static ValueAndMaybeTimestamp of(Integer value) {
+        return of(Optional.of(value));
+    }
+
+    static ValueAndMaybeTimestamp of(Optional<Integer> value) {
+        return of(value, Optional.empty());
+    }
+
+    static ValueAndMaybeTimestamp of(Optional<Integer> value, Long timestamp) {
+        return of(value, Optional.of(timestamp));
+    }
+
+    static ValueAndMaybeTimestamp of(Integer value, Long timestamp) {
+        return of(Optional.of(value), Optional.of(timestamp));
+    }
+
+    static ValueAndMaybeTimestamp of(Optional<Integer> value, Optional<Long> timestamp) {
+        return ImmutableValueAndMaybeTimestamp.of(value, timestamp);
+    }
+}u}(jUF (e413798427db97d025ad85b9f49ea4d26c076e02jF natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/resource/CassandraSidecarResource.javajF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,29 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.resource;
+
+public interface CassandraSidecarResource {
+    /**
+     * Asynchronous method that flushes all keyspaces on a Cassandra host.
+     */
+    void flush(String host);
+
+    /**
+     * Asynchronous method that performs a major compaction for all keyspaces on Cassandra.
+     */
+    void compact(String host);
+}u}(jUF (2725912f8e075ab25f996c376910f257d6850d7fjF ^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ColumnValue.javajF addedjF K jF K jF K jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ColumnValue {
+    @Value.Parameter
+    int column();
+
+    @Value.Parameter
+    int value();
+
+    static ColumnValue of(int column, int value) {
+        return ImmutableColumnValue.of(column, value);
+    }
+}u}(jUF (d9abc2f2c00a1ff33edf1dbcaefbf672fcd91ad1jF natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/InteractiveTransactionStore.javajF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.Optional;
+import java.util.function.Consumer;
+
+public interface InteractiveTransactionStore extends TransactionStore {
+    /**
+     * Provides a convenient interface for interacting with a transaction, and having each action recorded.
+     * @param interactiveTransactionConsumer Consumer which performs gets/puts/deletes
+     * @return The witnessed transaction, if successfully committed.
+     */
+    Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer);
+}u}(jUF (72396cbd183a5589ac7b3cf6593e07b9c5de2fd0jF katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ReadableTransactionStore.javajF modifiedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XY  @@ -28,4 +28,9 @@ public interface ReadableTransactionStore {
      * @return The value of the cell for a given table.
      */
     Optional<Integer> get(String table, WorkloadCell cell);
+
+    /**
+     * Checks whether the transaction with the provided startTimestamp has committed.
+     */
+    boolean isCommitted(long startTimestamp);
 }u}(jUF (9a3b7a7060c8f72d6a97bc2c347571b698b81c47jF jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStoreFactory.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -22,6 +22,6 @@
 /**
  * Creates transaction stores of a certain type which are bounded to the provided tables/indexes.
  */
-public interface TransactionStoreFactory {
-    TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
+public interface TransactionStoreFactory<T extends TransactionStore> {
+    T create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
 }u}(jUF (8a9dd68a171bcb94d41b777979635f8a4cca5c99jF matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelection.javajF addedjF KBjF K jF KBjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF Xq	  @@ -0,0 +1,66 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.google.common.collect.Range;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ColumnRangeSelection {
+    Optional<Integer> startColumnInclusive();
+
+    Optional<Integer> endColumnExclusive();
+
+    default boolean contains(int column) {
+        return asGuavaRange().contains(column);
+    }
+
+    default Range<Integer> asGuavaRange() {
+        if (startColumnInclusive().isEmpty()) {
+            if (endColumnExclusive().isEmpty()) {
+                return Range.all();
+            } else {
+                return Range.lessThan(endColumnExclusive().get());
+            }
+        } else {
+            if (endColumnExclusive().isEmpty()) {
+                return Range.atLeast(startColumnInclusive().get());
+            } else {
+                return Range.closedOpen(
+                        startColumnInclusive().get(), endColumnExclusive().get());
+            }
+        }
+    }
+
+    @Value.Check
+    default void check() {
+        Preconditions.checkState(
+                startColumnInclusive().isEmpty()
+                        || endColumnExclusive().isEmpty()
+                        || startColumnInclusive().get() <= endColumnExclusive().get(),
+                "Start column must be less than or equal to end column",
+                SafeArg.of("startColumnInclusive", startColumnInclusive()),
+                SafeArg.of("endColumnExclusive", endColumnExclusive()));
+    }
+
+    static ImmutableColumnRangeSelection.Builder builder() {
+        return ImmutableColumnRangeSelection.builder();
+    }
+}u}(jUF (bd06cc1312715a991167d81bd1ceb940ff719fc1jF patlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/DeleteTransactionAction.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X{  @@ -22,7 +22,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface DeleteTransactionAction extends TransactionAction {
+public interface DeleteTransactionAction extends SingleCellTransactionAction {
 
     default WitnessedDeleteTransactionAction witness() {
         return ImmutableWitnessedDeleteTransactionAction.of(table(), cell());u}(jUF (4f80972ed51d1ca703c845e6db8af278009a14f3jF oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javajF addedjF K#jF K jF K#jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import java.util.List;
+import java.util.Optional;
+
+/**
+ * Allows for convenient interaction with a transactional store.
+ */
+public interface InteractiveTransaction {
+    Optional<Integer> read(String table, WorkloadCell workloadCell);
+
+    void write(String table, WorkloadCell workloadCell, Integer value);
+
+    void delete(String table, WorkloadCell workloadCell);
+
+    List<WitnessedTransactionAction> witness();
+}u}(jUF (e9ae2e08974eda0443281b98d5bc9d2fb9243eccjF natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ReadTransactionAction.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -23,7 +23,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface ReadTransactionAction extends TransactionAction {
+public interface ReadTransactionAction extends SingleCellTransactionAction {
 
     default WitnessedReadTransactionAction witness(Optional<Integer> value) {
         return ImmutableWitnessedReadTransactionAction.of(table(), cell(), value);u}(jUF (38bd65bb4f96e9501721390809e74a159a2f3b13jF |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowColumnRangeReadTransactionAction.javajF addedjF K7jF K jF K7jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X	  @@ -0,0 +1,55 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import java.util.List;
+import org.immutables.value.Value;
+
+/**
+ * This transaction action models a column range read in AtlasDB ("getRowsColumnRange" in the AtlasDB API).
+ * <p>
+ * In the interest of implementation simplicity, two significant simplifications are made. Firstly, the action is
+ * presumed to act on a single row, though calls to getRowsColumnRange in practice can act on multiple rows in parallel.
+ * Secondly, values read from getRowsColumnRange are accessed through a live iterator, while for purposes of gathering
+ * a witness, we immediately drain the iterator and use the set of columns read as the witness to this action.
+ */
+@Value.Immutable
+public interface RowColumnRangeReadTransactionAction extends TransactionAction {
+    String table();
+
+    int row();
+
+    ColumnRangeSelection columnRangeSelection();
+
+    @Override
+    default <T> T accept(TransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    default WitnessedRowColumnRangeReadTransactionAction witness(List<ColumnValue> columnsAndValues) {
+        return WitnessedRowColumnRangeReadTransactionAction.builder()
+                .originalQuery(this)
+                .columnsAndValues(columnsAndValues)
+                .build();
+    }
+
+    static ImmutableRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableRowColumnRangeReadTransactionAction.builder();
+    }
+}u}(jUF (47b25ab538c861987aa480e47c2bb08032e32fc0jF tatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/SingleCellTransactionAction.javajF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X>  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface SingleCellTransactionAction extends TransactionAction {
+    /** Table to apply transaction to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) to apply the action to. */
+    @Value.Parameter
+    WorkloadCell cell();
+}u}(jUF (e6ee57fa3732a9a1984c98b088bfc9a577a7fbe8jF jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionAction.javajF modifiedjF K jF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.WorkloadCell;
-import org.immutables.value.Value;
-
 public interface TransactionAction {
-
-    /** Table to apply transaction to. */
-    @Value.Parameter
-    String table();
-
-    /** Cell (Key, Column) to apply the action to. */
-    @Value.Parameter
-    WorkloadCell cell();
-
     <T> T accept(TransactionActionVisitor<T> visitor);
 }u}(jUF (1625640516054c38d6886dbd91b10123cb0bb223jF qatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionActionVisitor.javajF modifiedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -22,4 +22,6 @@ public interface TransactionActionVisitor<T> {
     T visit(WriteTransactionAction writeTransactionAction);
 
     T visit(DeleteTransactionAction deleteTransactionAction);
+
+    T visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction);
 }u}(jUF (7b9112fa4356eade1fb793e23ca54d962811ccfcjF oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/WriteTransactionAction.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -22,7 +22,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WriteTransactionAction extends TransactionAction {
+public interface WriteTransactionAction extends SingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(jUF (574a86c53458c2bbb5f43c19c269eb2ee52679c7jF |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/FullyWitnessedTransaction.javajF addedjF K"jF K jF K"jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we know for certain we've witnessed.
+ */
+@Value.Immutable
+public interface FullyWitnessedTransaction extends WitnessedTransaction {
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableFullyWitnessedTransaction.Builder builder() {
+        return ImmutableFullyWitnessedTransaction.builder();
+    }
+}u4     }(jUF (2f66134a6e594e63bdba1ebec482177c03bd9220jF atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedSingleCellTransactionAction.javajF addedjF K"jF K jF K"jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.javajF X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XP  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.invariant.MismatchedValue;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedSingleCellTransactionAction extends InvalidWitnessedTransactionAction {
+    @Value.Parameter
+    WitnessedSingleCellTransactionAction action();
+
+    @Value.Parameter
+    MismatchedValue mismatchedValue();
+
+    static InvalidWitnessedSingleCellTransactionAction of(
+            WitnessedSingleCellTransactionAction action, MismatchedValue mismatchedValue) {
+        return ImmutableInvalidWitnessedSingleCellTransactionAction.of(action, mismatchedValue);
+    }
+}u}(jUF (f311e643064907dd8eeece7fe8fe0069efe51f4ejF ~atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransaction.javajF addedjF K"jF K jF K"jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedTransaction {
+    @Value.Parameter
+    WitnessedTransaction transaction();
+
+    @Value.Parameter
+    List<InvalidWitnessedTransactionAction> invalidActions();
+
+    static InvalidWitnessedTransaction of(
+            WitnessedTransaction witnessedTransaction, List<InvalidWitnessedTransactionAction> invalidActions) {
+        return ImmutableInvalidWitnessedTransaction.of(witnessedTransaction, invalidActions);
+    }
+}u}(jUF (f2fc56cca46a09c2ef718c3b7cb6b8d4000c1d8fjF atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javajF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X.  @@ -0,0 +1,21 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+public interface InvalidWitnessedTransactionAction {
+    // Marker interface
+}u}(jUF (5a66280426c78d83ed7001fc4ee1aebb894f7578jF |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransaction.javajF addedjF K4jF K jF K4jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.logsafe.Preconditions;
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we witnessed, but are in a state which we are
+ * unsure if they have committed or not due to failures.
+ */
+@Value.Immutable
+public interface MaybeWitnessedTransaction extends WitnessedTransaction {
+    @Value.Check
+    default void check() {
+        Preconditions.checkArgument(
+                commitTimestamp().isPresent(),
+                "Given how the transaction protocol works, a transaction for which we haven't retrieved the commit "
+                        + "timestamp has not written anything of significance to the database");
+    }
+
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableMaybeWitnessedTransaction.Builder builder() {
+        return ImmutableMaybeWitnessedTransaction.builder();
+    }
+
+    default FullyWitnessedTransaction toFullyWitnessed() {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(startTimestamp())
+                .commitTimestamp(commitTimestamp())
+                .actions(actions())
+                .build();
+    }
+}u}(jUF (664e279d4223b1f5897c5f45615e3cdbdaa71ac3jF atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedDeleteTransactionAction.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF Xo  @@ -20,7 +20,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedDeleteTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedDeleteTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {u}(jUF (beff6229abcbdbf535af57c09c43ad7c92566201jF atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedReadTransactionAction.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X7  @@ -21,7 +21,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedReadTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedReadTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(jUF (284f26075e3ae1ed8320bcbc8402749af631ccddjF atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javajF addedjF K;jF K jF K;jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javajF X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X	  @@ -0,0 +1,59 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedTransactionAction {
+    RowColumnRangeReadTransactionAction originalQuery();
+
+    // This is a List rather than a Set or Map because the ordering in which the columns and values are returned is
+    // important (it must match the ordering specified by the contract of row column range reads).
+    List<ColumnValue> columnsAndValues();
+
+    @Override
+    default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    @Value.Check
+    default void check() {
+        Set<Integer> knownColumns = new HashSet<>();
+        Set<Integer> duplicateColumns = columnsAndValues().stream()
+                .map(ColumnValue::column)
+                .filter(column -> !knownColumns.add(column))
+                .collect(Collectors.toSet());
+        Preconditions.checkState(
+                duplicateColumns.isEmpty(),
+                "Duplicate columns in columnsAndValues",
+                SafeArg.of("duplicateColumns", duplicateColumns),
+                SafeArg.of("columnsAndValues", columnsAndValues()));
+    }
+
+    static ImmutableWitnessedRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableWitnessedRowColumnRangeReadTransactionAction.builder();
+    }
+}u}(jUF (eed34c03b4bd04c09374ca41608cb74986cb40c0jF atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedSingleCellTransactionAction.javajF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XW  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface WitnessedSingleCellTransactionAction extends WitnessedTransactionAction {
+    /** Table action was applied to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) the action applied to. */
+    @Value.Parameter
+    WorkloadCell cell();
+}u}(jUF (525e82582d3affac4608bebfe366141f3088a716jF watlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransaction.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X
  @@ -18,9 +18,7 @@
 
 import java.util.List;
 import java.util.Optional;
-import org.immutables.value.Value;
 
-@Value.Immutable
 public interface WitnessedTransaction {
     /** Start timestamp of the transaction. */
     long startTimestamp();
@@ -30,4 +28,6 @@ public interface WitnessedTransaction {
 
     /** Provides an in-order list of actions that were performed during the transaction's execution. */
     List<WitnessedTransactionAction> actions();
+
+    <T> T accept(WitnessedTransactionVisitor<T> visitor);
 }u}(jUF (3e350184f320b0cd81f7019819c5d83c6a9d8602jF }atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionAction.javajF modifiedjF K jF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.store.WorkloadCell;
-import org.immutables.value.Value;
-
 public interface WitnessedTransactionAction {
-
-    /** Table action was applied to. */
-    @Value.Parameter
-    String table();
-
-    /** Cell (Key, Column) the action applied to. */
-    @Value.Parameter
-    WorkloadCell cell();
-
     <T> T accept(WitnessedTransactionActionVisitor<T> visitor);
 }u}(jUF (ca4d65c16390f51cc645a365e26e4c1c79a67e15jF atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionActionVisitor.javajF modifiedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X>  @@ -22,4 +22,6 @@ public interface WitnessedTransactionActionVisitor<T> {
     T visit(WitnessedWriteTransactionAction writeTransactionAction);
 
     T visit(WitnessedDeleteTransactionAction deleteTransactionAction);
+
+    T visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction);
 }u}(jUF (33682bf649e7b87408367a7f23d4995c94c96d98jF ~atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionVisitor.javajF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,23 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+public interface WitnessedTransactionVisitor<T> {
+    T visit(FullyWitnessedTransaction witnessedTransaction);
+
+    T visit(MaybeWitnessedTransaction maybeWitnessedTransaction);
+}u}(jUF (43687fd4d7dbdc3a1ac0ec26f2f38d0366613022jF atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedWriteTransactionAction.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X(  @@ -20,7 +20,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WitnessedWriteTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedWriteTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(jUF (0af0f463fb79115401361fa63b2a86fc5fbbe84fjF jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/KeyedTransactionTask.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XD  @@ -30,4 +30,5 @@
  * an exception.
  */
 @FunctionalInterface
-public interface KeyedTransactionTask extends BiFunction<TransactionStore, Integer, Optional<WitnessedTransaction>> {}
+public interface KeyedTransactionTask<T extends TransactionStore>
+        extends BiFunction<T, Integer, Optional<WitnessedTransaction>> {}u}(jUF (521eb86ec62e39c42dea4234b11b2f742d9a8e1djF katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowAndInvariants.javajF addedjF K-jF K jF K-jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import java.util.Arrays;
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WorkflowAndInvariants<WorkflowTypeT extends Workflow> {
+    @Value.Parameter
+    WorkflowTypeT workflow();
+
+    @Value.Parameter
+    List<InvariantReporter<?>> invariantReporters();
+
+    static <WorkflowTypeT extends Workflow> WorkflowAndInvariants<WorkflowTypeT> of(
+            WorkflowTypeT workflow, List<InvariantReporter<?>> invariants) {
+        return ImmutableWorkflowAndInvariants.of(workflow, invariants);
+    }
+
+    static <WorkflowTypeT extends Workflow> WorkflowAndInvariants<WorkflowTypeT> of(
+            WorkflowTypeT workflow, InvariantReporter<?>... invariants) {
+        return ImmutableWorkflowAndInvariants.of(workflow, Arrays.asList(invariants));
+    }
+
+    static <WorkflowTypeT extends Workflow> ImmutableWorkflowAndInvariants.Builder<WorkflowTypeT> builder() {
+        return ImmutableWorkflowAndInvariants.builder();
+    }
+}u}(jUF (47b4109802a3529a585cdba06bb50cbe3fb2a098jF katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowConfiguration.javajF modifiedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -17,8 +17,19 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import org.immutables.value.Value;
 
 @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
 public interface WorkflowConfiguration {
     int iterationCount();
+
+    @Value.Default
+    default double rateLimit() {
+        return 100;
+    }
+
+    @Value.Default
+    default Integer maxThreadCount() {
+        return 100;
+    }
 }u}(jUF (ffbc895344923f90f2a9fbedaca2f32929339b6cjF eatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowHistory.javajF modifiedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -26,5 +26,10 @@ public interface WorkflowHistory {
     // We may want to query the KVS during verification.
     ReadableTransactionStore transactionStore();
 
+    /**
+     * TODO: This should only be a list of
+     * {@link com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction} rather than the general
+     * purpose type.
+     */
     List<WitnessedTransaction> history();
 }u}(jUF (3b0f830372ef64835a492324722b2b2019546854jF natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowHistoryValidator.javajF renamedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -18,13 +18,17 @@
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
 import java.util.List;
+import org.immutables.value.Value;
 
-/**
- * Run the provided workflow and execute the provided invariant reporters.
- *
- * The idea of this class is that long-term we will want to have multiple ways to run/execute workflows,
- * rather than biasing towards the present case (just once).
- */
-public interface WorkflowRunner<WorkflowTypeT extends Workflow> {
-    void run(WorkflowTypeT workflow, List<InvariantReporter<?>> invariantReporters);
+@Value.Immutable
+public interface WorkflowHistoryValidator {
+    @Value.Parameter
+    WorkflowHistory history();
+
+    @Value.Parameter
+    List<InvariantReporter<?>> invariants();
+
+    static WorkflowHistoryValidator of(WorkflowHistory history, List<InvariantReporter<?>> invariants) {
+        return ImmutableWorkflowHistoryValidator.of(history, invariants);
+    }
 }previous_filenamedatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowRunner.javau}(jUF (7bda1b5a5ae5fcf4035a9bcb3a8979da682b9deajF matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowValidatorRunner.javajF addedjF K#jF K jF K#jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X(  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * Run the provided workflow and validate that it is correct with the provided invariants.
+ */
+public interface WorkflowValidatorRunner<WorkflowTypeT extends Workflow> {
+    void run(List<WorkflowAndInvariants<WorkflowTypeT>> workflowAndInvariants);
+
+    default void run(WorkflowAndInvariants<WorkflowTypeT>... workflowAndInvariants) {
+        run(Arrays.asList(workflowAndInvariants));
+    }
+
+    default void run(WorkflowAndInvariants<WorkflowTypeT> workflowAndInvariants) {
+        run(List.of(workflowAndInvariants));
+    }
+}u}(jUF (a7473ea1e605ae08dd6feec971f0cd30384c89e4jF qatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/invariant/CrossCellInconsistencyTest.javajF addedjF K;jF K jF K;jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistencyTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistencyTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistencyTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X
  @@ -0,0 +1,59 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Optional;
+import org.junit.Test;
+
+public class CrossCellInconsistencyTest {
+    // The constants in WorkloadTestHelper are not accessible from this package.
+    private static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_ONE =
+            TableAndWorkloadCell.of("foo", ImmutableWorkloadCell.of(1, 2));
+    private static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
+            TableAndWorkloadCell.of("foo", ImmutableWorkloadCell.of(3, 4));
+
+    @Test
+    public void cannotBeCreatedWithoutCells() {
+        assertThatThrownBy(() -> CrossCellInconsistency.builder().build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("A cross-cell inconsistency must consist of at least two cells");
+    }
+
+    @Test
+    public void cannotBeCreatedWithJustOneCell() {
+        assertThatThrownBy(() -> CrossCellInconsistency.builder()
+                        .putInconsistentValues(TABLE_WORKLOAD_CELL_ONE, Optional.of(3))
+                        .build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("A cross-cell inconsistency must consist of at least two cells");
+    }
+
+    @Test
+    public void canBeCreatedWithTwoCells() {
+        CrossCellInconsistency violation = CrossCellInconsistency.builder()
+                .putInconsistentValues(TABLE_WORKLOAD_CELL_ONE, Optional.of(3))
+                .putInconsistentValues(TABLE_WORKLOAD_CELL_TWO, Optional.empty())
+                .build();
+        assertThat(violation.inconsistentValues()).containsOnlyKeys(TABLE_WORKLOAD_CELL_ONE, TABLE_WORKLOAD_CELL_TWO);
+    }
+}u}(jUF (636e11dbc52b78329590a8ee90644f9728e5fb69jF jatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/invariant/MismatchedValueTest.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF Xz  @@ -21,13 +21,12 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 
 import com.palantir.logsafe.SafeArg;
-import java.util.Optional;
 import org.junit.Test;
 
 public final class MismatchedValueTest {
 
-    private static final Optional<Integer> VALUE_ONE = Optional.of(15);
-    private static final Optional<Integer> VALUE_TWO = Optional.of(25);
+    private static final ValueAndMaybeTimestamp VALUE_ONE = ValueAndMaybeTimestamp.of(25);
+    private static final ValueAndMaybeTimestamp VALUE_TWO = ValueAndMaybeTimestamp.of(15);
 
     @Test
     public void canConstructMismatchedValueFromTwoDifferentValues() {u}(jUF (e023081417c4bca7cf9bb80aeeb71bd64bdf21a4jF qatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelectionTest.javajF addedjF KbjF K jF KbjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,98 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.Optional;
+import org.junit.Test;
+
+public class ColumnRangeSelectionTest {
+    @Test
+    public void cannotCreateRangeWithStartColumnGreaterThanEndColumn() {
+        assertThatLoggableExceptionThrownBy(() -> ColumnRangeSelection.builder()
+                        .startColumnInclusive(5)
+                        .endColumnExclusive(4)
+                        .build())
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Start column must be less than or equal to end column")
+                .hasExactlyArgs(
+                        SafeArg.of("startColumnInclusive", Optional.of(5)),
+                        SafeArg.of("endColumnExclusive", Optional.of(4)));
+    }
+
+    @Test
+    public void emptyRangeDoesNotContainAnyElements() {
+        ColumnRangeSelection emptyRange = ColumnRangeSelection.builder()
+                .startColumnInclusive(6)
+                .endColumnExclusive(6)
+                .build();
+        assertThat(emptyRange.contains(5)).isFalse();
+        assertThat(emptyRange.contains(6)).isFalse();
+        assertThat(emptyRange.contains(7)).isFalse();
+        assertThat(emptyRange.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(emptyRange.contains(Integer.MAX_VALUE)).isFalse();
+    }
+
+    @Test
+    public void singleElementRangeContainsJustItself() {
+        ColumnRangeSelection justSeven = ColumnRangeSelection.builder()
+                .startColumnInclusive(7)
+                .endColumnExclusive(8)
+                .build();
+        assertThat(justSeven.contains(6)).isFalse();
+        assertThat(justSeven.contains(7)).isTrue();
+        assertThat(justSeven.contains(8)).isFalse();
+        assertThat(justSeven.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(justSeven.contains(Integer.MAX_VALUE)).isFalse();
+    }
+
+    @Test
+    public void universalRangeContainsEverything() {
+        ColumnRangeSelection universal = ColumnRangeSelection.builder().build();
+        assertThat(universal.contains(10241024)).isTrue();
+        assertThat(universal.contains(-20482048)).isTrue();
+        assertThat(universal.contains(40924092)).isTrue();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isTrue();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isTrue();
+    }
+
+    @Test
+    public void lowerBoundedRangesContainCorrectElements() {
+        ColumnRangeSelection universal =
+                ColumnRangeSelection.builder().startColumnInclusive(5).build();
+        assertThat(universal.contains(4)).isFalse();
+        assertThat(universal.contains(5)).isTrue();
+        assertThat(universal.contains(6)).isTrue();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isTrue();
+    }
+
+    @Test
+    public void upperBoundedRangesContainCorrectElements() {
+        ColumnRangeSelection universal =
+                ColumnRangeSelection.builder().endColumnExclusive(5).build();
+        assertThat(universal.contains(4)).isTrue();
+        assertThat(universal.contains(5)).isFalse();
+        assertThat(universal.contains(6)).isFalse();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isTrue();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isFalse();
+    }
+}u}(jUF (d8ae0172e04f5d987b18981c085af657a86bf0e4jF atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javajF addedjF KDjF K jF KDjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF Xf  @@ -0,0 +1,68 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+import static org.mockito.Mockito.mock;
+
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import org.junit.Test;
+
+public class MaybeWitnessedTransactionTest {
+
+    private static final Long START_TIMESTAMP = 100L;
+    private static final Long COMMIT_TIMESTAMP = 200L;
+
+    @Test
+    public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
+        assertThatLoggableExceptionThrownBy(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining(
+                        "Given how the transaction protocol works, a transaction for which we haven't retrieved the"
+                                + " commit timestamp");
+    }
+
+    @Test
+    public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
+        assertThatCode(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .commitTimestamp(COMMIT_TIMESTAMP)
+                        .build())
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void toFullyWitnessedCopiesArgumentsCorrectly() {
+        WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
+        WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
+        List<WitnessedSingleCellTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
+        FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
+                .startTimestamp(START_TIMESTAMP)
+                .commitTimestamp(COMMIT_TIMESTAMP)
+                .actions(actions)
+                .build()
+                .toFullyWitnessed();
+        assertThat(fullyWitnessedTransaction.startTimestamp()).isEqualTo(START_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.commitTimestamp()).contains(COMMIT_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.actions()).containsExactlyElementsOf(actions);
+    }
+}u}(jUF (b2c905aecbadb5eff96bc5dbc26f890c72dbd00cjF atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javajF addedjF KGjF K jF KGjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javajF X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X
  @@ -0,0 +1,71 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import org.junit.Test;
+
+public class WitnessedRowColumnRangeReadTransactionActionTest {
+    @Test
+    public void canCreateWitness() {
+        assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
+                        .build())
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void cannotCreateWitnessWithDuplicateColumns() {
+        List<ColumnValue> columnsAndValues = ImmutableList.of(
+                ColumnValue.of(1, 5),
+                ColumnValue.of(5, 1),
+                ColumnValue.of(1, 3),
+                ColumnValue.of(5, 8),
+                ColumnValue.of(9, 99));
+
+        assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .addAllColumnsAndValues(columnsAndValues)
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
+                        .build())
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Duplicate columns in columnsAndValues")
+                .hasExactlyArgs(
+                        SafeArg.of("duplicateColumns", ImmutableSet.of(1, 5)),
+                        SafeArg.of("columnsAndValues", columnsAndValues));
+    }
+}u}(jUF (121a175146bc6a56997ba38d7f713d850fb50e15jF /atlasdb-workload-server-distribution/DockerfilejF modifiedjF K
jF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-distribution%2FDockerfilejF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-distribution%2FDockerfilejF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2FDockerfile?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -1,10 +1,10 @@
-FROM adoptopenjdk/openjdk11:jre-11.0.9_11.1-alpine
+FROM adoptopenjdk/openjdk11:jdk-11.0.11_9-debian
 MAINTAINER AtlasDB Team
 
 ENV DOCKERIZE_VERSION v0.2.0
 
 # Bash is useful for monitoring; curl is used by our healthchecks.
-RUN apk update && apk add bash curl procps wget  \
+RUN apt-get update && apt-get -y install bash curl procps wget \
     && wget --no-check-certificate http://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
     && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
 
@@ -15,4 +15,12 @@ RUN mv /atlasdb-workload-server-* /atlasdb-workload-server
 
 WORKDIR /atlasdb-workload-server
 
+# Needed for Antithesis
+RUN curl -o /usr/bin/yq -kLf https://github.com/mikefarah/yq/releases/download/v4.33.2/yq_linux_amd64 && \
+    chmod +x /usr/bin/yq
+RUN yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-static.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-static.yml
+
 CMD ["service/bin/init.sh", "console"]u}(jUF (dc41d93cfc62da8e575d2e4bb661c0faf17b9fe6jF 1atlasdb-workload-server-distribution/build.gradlejF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-distribution%2Fbuild.gradlejF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-distribution%2Fbuild.gradlejF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -1,7 +1,7 @@
 apply plugin: 'com.palantir.sls-java-service-distribution'
 apply plugin: 'com.palantir.external-publish-dist'
-apply from: "../gradle/docker.gradle"
 apply from: "../gradle/shared.gradle"
+apply from: "../gradle/docker.gradle"
 apply from: "../gradle/non-client-dist.gradle"
 
 dependencies {
@@ -20,6 +20,7 @@ dependencies {
     implementation 'com.palantir.conjure.java.runtime:conjure-java-jersey-server'
     implementation 'com.google.guava:guava'
 
+    implementation project(':atlasdb-buggify')
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-cassandra')
     implementation project(':atlasdb-workload-server')u}(jUF (37e59da7fde3c443b1071e9b0c484c2da4e9f50ejF latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javajF modifiedjF M
jF KjF MjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XzP  @@ -22,31 +22,58 @@
 import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.common.util.concurrent.Uninterruptibles;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
+import com.palantir.atlasdb.workload.background.BackgroundCassandraJob;
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
-import com.palantir.atlasdb.workload.invariant.DurableWritesMetricInvariantReporter;
+import com.palantir.atlasdb.workload.invariant.DurableWritesInvariantMetricReporter;
+import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
+import com.palantir.atlasdb.workload.resource.AntithesisCassandraSidecarResource;
+import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
-import com.palantir.atlasdb.workload.workflow.RunOnceWorkflowRunner;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflows;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
+import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflows;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflows;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
 import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.refreshable.Refreshable;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import io.dropwizard.Application;
 import io.dropwizard.jackson.DiscoverableSubtypeResolver;
+import io.dropwizard.lifecycle.setup.LifecycleEnvironment;
 import io.dropwizard.setup.Bootstrap;
 import io.dropwizard.setup.Environment;
+import java.time.Instant;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutorService;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
 
 public class WorkloadServerLauncher extends Application<WorkloadServerConfiguration> {
 
@@ -74,39 +101,75 @@ public void initialize(Bootstrap<WorkloadServerConfiguration> bootstrap) {
     public void run(WorkloadServerConfiguration configuration, Environment environment) {
         environment.getObjectMapper().registerModule(new Jdk8Module()).registerModule(new JavaTimeModule());
 
+        scheduleBackgroundJobs(environment);
+
         ExecutorService workflowRunnerExecutor =
                 environment.lifecycle().executorService("workflow-runner").build();
-
         workflowRunnerExecutor.execute(() -> runWorkflows(configuration, environment));
     }
 
+    private void scheduleBackgroundJobs(Environment environment) {
+        ScheduledExecutorService backgroundJobExecutor = environment
+                .lifecycle()
+                .scheduledExecutorService("background-job")
+                .build();
+        backgroundJobExecutor.scheduleAtFixedRate(
+                new BackgroundCassandraJob(
+                        List.of("cassandra1", "cassandra2", "cassandra3"),
+                        AntithesisCassandraSidecarResource.INSTANCE,
+                        DefaultBuggifyFactory.INSTANCE),
+                0,
+                10,
+                TimeUnit.SECONDS);
+    }
+
     private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {
-        ExecutorService singleRowTwoCellsExecutorService = environment
+        // This is a single threaded executor; this is intentional, so that we only run one workflow at a time.
+        ExecutorService antithesisWorkflowRunnerExecutorService = environment
                 .lifecycle()
                 .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
                 .build();
+
         MetricsManager metricsManager = MetricsManagers.of(environment.metrics(), taggedMetricRegistry);
         AtlasDbTransactionStoreFactory transactionStoreFactory = AtlasDbTransactionStoreFactory.createFromConfig(
                 configuration.install().atlas(),
                 Refreshable.only(configuration.runtime().atlas()),
                 USER_AGENT,
                 metricsManager);
-        SingleRowTwoCellsWorkflowConfiguration workflowConfig =
+        SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig =
                 configuration.install().singleRowTwoCellsConfig();
+        RingWorkflowConfiguration ringWorkflowConfiguration =
+                configuration.install().ringConfig();
+        TransientRowsWorkflowConfiguration transientRowsWorkflowConfiguration =
+                configuration.install().transientRowsConfig();
+        SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
+                configuration.install().singleBusyCellConfig();
+        SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadNoTouchWorkflowConfiguration =
+                configuration.install().singleBusyCellReadsNoTouchConfig();
+        BankBalanceWorkflowConfiguration bankBalanceConfig =
+                configuration.install().bankBalanceConfig();
+        RandomWorkflowConfiguration randomWorkflowConfig =
+                configuration.install().randomConfig();
+
+        waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
+
+        new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
+                .run(
+                        createSingleRowTwoCellsWorkflowValidator(
+                                transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
+                        createRingWorkflowValidator(
+                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()),
+                        createTransientRowsWorkflowValidator(
+                                transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellWorkflowValidator(
+                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellReadNoTouchWorkflowValidator(
+                                transactionStoreFactory,
+                                singleBusyCellReadNoTouchWorkflowConfiguration,
+                                environment.lifecycle()),
+                        createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
+                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
 
-        log.info("antithesis: start_faults");
-        RunOnceWorkflowRunner.INSTANCE.run(
-                SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
-                        transactionStoreFactory.create(
-                                Map.of(
-                                        workflowConfig.tableConfiguration().tableName(),
-                                        workflowConfig.tableConfiguration().isolationLevel()),
-                                Set.of()),
-                        workflowConfig,
-                        MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)),
-                List.of(new DurableWritesMetricInvariantReporter(
-                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
-                        DurableWritesMetrics.of(taggedMetricRegistry))));
         log.info("antithesis: terminate");
 
         workflowsRanLatch.countDown();
@@ -116,6 +179,182 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
+    private void waitForTransactionStoreFactoryToBeInitialized(AtlasDbTransactionStoreFactory factory) {
+        // TODO (jkong): This is awful, but sufficient for now.
+        Instant deadline = Instant.now().plusSeconds(TimeUnit.MINUTES.toSeconds(5));
+        while (Instant.now().isBefore(deadline)) {
+            if (factory.isInitialized()) {
+                log.info("AtlasDB transaction store factory initialized.");
+                return;
+            } else {
+                log.info(
+                        "AtlasDB transaction store factory not yet initialized. Waiting for five seconds; we won't"
+                                + " retry after {}.",
+                        SafeArg.of("deadline", deadline));
+                Uninterruptibles.sleepUninterruptibly(5, TimeUnit.SECONDS);
+            }
+        }
+        log.error("AtlasDB transaction store factory not initialized after five minutes, which suggests that there's"
+                + " likely to be some issue with starting up one of our service's dependencies.");
+        log.info("antithesis: terminate");
+        log.error("Workflow will now exit.");
+        System.exit(1);
+    }
+
+    private WorkflowAndInvariants<Workflow> createTransientRowsWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            TransientRowsWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService =
+                createExecutorService(workflowConfig, lifecycle, TransientRowsWorkflows.class);
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(TransientRowsWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        TransientRowsWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .addInvariantReporters(TransientRowsWorkflows.getSummaryLogInvariantReporter(workflowConfig))
+                .build();
+    }
+
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-read")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-write")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellReadNoTouchWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellReadNoTouchWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-read")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-write")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellReadNoTouchWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellReadNoTouchWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
+    private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            RingWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RingWorkflows.class);
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(RingWorkflows.create(
+                transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)));
+    }
+
+    private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleRowTwoCellsWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService =
+                createExecutorService(workflowConfig, lifecycle, SingleRowTwoCellsWorkflows.class);
+        TransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
+    private WorkflowAndInvariants<Workflow> createBankBalanceWorkflow(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            BankBalanceWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, BankBalanceWorkflows.class);
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(BankBalanceWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        BankBalanceWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+                .build();
+    }
+
+    private WorkflowAndInvariants<Workflow> createRandomWorkflow(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            RandomWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RandomWorkflows.class);
+        TransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(RandomWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        RandomWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
     @VisibleForTesting
     CountDownLatch workflowsRanLatch() {
         return workflowsRanLatch;
@@ -125,4 +364,13 @@ CountDownLatch workflowsRanLatch() {
     TaggedMetricRegistry getTaggedMetricRegistry() {
         return taggedMetricRegistry;
     }
+
+    private static <T> ExecutorService createExecutorService(
+            WorkflowConfiguration workflowConfig, LifecycleEnvironment lifecycle, Class<T> workflowFactoryClass) {
+        return lifecycle
+                .executorService(workflowFactoryClass.getSimpleName())
+                .minThreads(workflowConfig.maxThreadCount())
+                .maxThreads(workflowConfig.maxThreadCount())
+                .build();
+    }
 }u     }(jUF (388054e20c18c9c8d612db0e6d9ac1018b7f9b14jF atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javajF modifiedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -19,7 +19,13 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
 
 @JsonDeserialize(as = ImmutableWorkloadServerInstallConfiguration.class)
@@ -30,5 +36,17 @@ public interface WorkloadServerInstallConfiguration {
 
     SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig();
 
+    RingWorkflowConfiguration ringConfig();
+
+    TransientRowsWorkflowConfiguration transientRowsConfig();
+
+    SingleBusyCellWorkflowConfiguration singleBusyCellConfig();
+
+    BankBalanceWorkflowConfiguration bankBalanceConfig();
+
+    RandomWorkflowConfiguration randomConfig();
+
+    SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadsNoTouchConfig();
+
     boolean exitAfterRunning();
 }u}(jUF (da4b728986375bd8565c46e930098c1a684a145cjF Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymljF modifiedjF K'jF KjF K(jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymljF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymljF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -9,5 +9,43 @@ install:
       tableName: two-cells-test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
-    type: singleRowTwoCells
+    type: single-row-two-cells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
+  transientRowsConfig:
+    tableConfiguration:
+      tableName: transient-rows-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: transient-rows
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
+  bankBalanceConfig:
+    tableConfiguration:
+      tableName: bank-balance-test
+      isolationLevel: SNAPSHOT
+    iterationCount: 100
+    type: bank-balance
+  randomConfig:
+    tableConfiguration:
+      tableName: random-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: false
\ No newline at end of fileu}(jUF (50dbd20de7876d2a9cb53eef291722b8b19cd0b5jF Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymljF modifiedjF K,jF KjF K.jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -10,13 +10,16 @@ runtime:
     timelockRuntime:
       serversList:
         servers:
-          - 'http://timelock:8421'
+          - 'https://timelock1.palantir.pt:8421'
+          - 'https://timelock2.palantir.pt:8421'
+          - 'https://timelock3.palantir.pt:8421'
         sslConfiguration:
           keyStorePath: "var/security/keyStore.jks"
           keyStorePassword: "keystore"
           trustStorePath: "var/security/trustStore.jks"
 install:
   atlas:
+    initializeAsync: true
     keyValueService:
       type: cassandra
       servers:
@@ -34,6 +37,7 @@ install:
         password: cassandra
       ssl: false
       replicationFactor: 3
+      gcGraceSeconds: 300
     targetedSweep:
       enableSweepQueueWrites: true
     namespace: workload_server
@@ -42,5 +46,43 @@ install:
       tableName: two_cells_test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
-    type: singleRowTwoCells
+    type: single-row-two-cells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
+  transientRowsConfig:
+    tableConfiguration:
+      tableName: transient_rows_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: transient-rows
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single_busy_cell_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
+  bankBalanceConfig:
+    tableConfiguration:
+      tableName: bank_balance_test
+      isolationLevel: SNAPSHOT
+    iterationCount: 100
+    type: bank-balance
+  randomConfig:
+    tableConfiguration:
+      tableName: random_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single_busy_cell_no_touch_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: trueu}(jUF (7bd7f984a5ef15a2179c415620f48a0737332c43jF Aatlasdb-workload-server-distribution/var/conf/workload-server.ymljF modifiedjF K)jF KjF K+jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -1,13 +1,52 @@
 runtime: {}
 install:
   atlas:
-    namespace: test
+    initializeAsync: true
     keyValueService:
       type: memory
+    namespace: test
   singleRowTwoCellsConfig:
     tableConfiguration:
       tableName: two-cells-test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
-    type: singleRowTwoCells
+    type: single-row-two-cells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
+  transientRowsConfig:
+    tableConfiguration:
+      tableName: transient-rows-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: transient-rows
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
+  bankBalanceConfig:
+    tableConfiguration:
+      tableName: bank-balance-test
+      isolationLevel: SNAPSHOT
+    iterationCount: 100
+    type: bank-balance
+  randomConfig:
+    tableConfiguration:
+      tableName: random-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: true
\ No newline at end of fileu}(jUF (a1646b6ee093076187da250847d896517a6e93a1jF $atlasdb-workload-server/build.gradlejF modifiedjF KjF K jF KjF xhttps://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fbuild.gradlejF whttps://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fbuild.gradlejF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X,  @@ -8,9 +8,12 @@ license {
 dependencies {
     implementation project(':atlasdb-workload-server-api')
     implementation project(':atlasdb-api')
+    implementation project(':atlasdb-buggify')
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-config')
     implementation project(':atlasdb-impl-shared')
+    implementation project(':lock-api')
+    implementation project(':lock-impl')
 
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'u}(jUF (8b9834003c52ed4630cb687d233e97192635cc24jF jatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/background/BackgroundCassandraJob.javajF addedjF K,jF K jF K,jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.background;
+
+import com.google.common.collect.Iterators;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.workload.resource.CassandraSidecarResource;
+import java.util.Iterator;
+import java.util.List;
+
+public class BackgroundCassandraJob implements Runnable {
+
+    private final CassandraSidecarResource cassandraSidecarResource;
+    private final Iterator<String> cassandraHosts;
+
+    private final BuggifyFactory buggify;
+
+    public BackgroundCassandraJob(
+            List<String> cassandraHosts, CassandraSidecarResource cassandraSidecarResource, BuggifyFactory buggify) {
+        this.cassandraSidecarResource = cassandraSidecarResource;
+        this.cassandraHosts = Iterators.cycle(cassandraHosts);
+        this.buggify = buggify;
+    }
+
+    @Override
+    public void run() {
+        buggify.maybe(0.20).run(() -> cassandraSidecarResource.flush(cassandraHosts.next()));
+        buggify.maybe(0.20).run(() -> cassandraSidecarResource.compact(cassandraHosts.next()));
+    }
+}u}(jUF (6692c7a0ab9dc06ee5a6b9df123917c46c3d2758jF iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariant.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -16,10 +16,10 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
+import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.ValidationStore;
-import com.palantir.atlasdb.workload.transaction.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import io.vavr.Tuple;
 import java.util.Map;u}(jUF (79aa8cfd57984c9bdea2aaf3249996fe3fa9f4d7jF watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporter.javajF renamedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -24,15 +24,15 @@
 import java.util.Map;
 import java.util.function.Consumer;
 
-public final class DurableWritesMetricInvariantReporter
+public final class DurableWritesInvariantMetricReporter
         implements InvariantReporter<Map<TableAndWorkloadCell, MismatchedValue>> {
 
-    private static final SafeLogger log = SafeLoggerFactory.get(DurableWritesMetricInvariantReporter.class);
+    private static final SafeLogger log = SafeLoggerFactory.get(DurableWritesInvariantMetricReporter.class);
 
     private final String workflow;
     private final DurableWritesMetrics durableWritesMetrics;
 
-    public DurableWritesMetricInvariantReporter(String workflow, DurableWritesMetrics durableWritesMetrics) {
+    public DurableWritesInvariantMetricReporter(String workflow, DurableWritesMetrics durableWritesMetrics) {
         this.workflow = workflow;
         this.durableWritesMetrics = durableWritesMetrics;
     }juM watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporter.javau}(jUF (7f8015ae9aa8e1cda19fbbfa7a571ed881b71b56jF hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javajF addedjF KejF K jF KejF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X)  @@ -0,0 +1,101 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.List;
+import java.util.Optional;
+import java.util.function.Consumer;
+import one.util.streamex.StreamEx;
+
+public enum SerializableInvariant implements TransactionInvariant {
+    INSTANCE;
+
+    @Override
+    public void accept(
+            WorkflowHistory workflowHistory, Consumer<List<InvalidWitnessedTransaction>> invalidWitnessedTransactions) {
+        SerializableInvariantVisitor visitor = new SerializableInvariantVisitor();
+        List<InvalidWitnessedTransaction> transactions = StreamEx.of(workflowHistory.history())
+                .mapPartial(witnessedTransaction -> {
+                    List<InvalidWitnessedTransactionAction> invalidTransactions = StreamEx.of(
+                                    witnessedTransaction.actions())
+                            .mapPartial(action -> action.accept(visitor))
+                            .toList();
+
+                    if (invalidTransactions.isEmpty()) {
+                        return Optional.empty();
+                    }
+
+                    return Optional.of(InvalidWitnessedTransaction.of(witnessedTransaction, invalidTransactions));
+                })
+                .toList();
+        invalidWitnessedTransactions.accept(transactions);
+    }
+
+    private static final class SerializableInvariantVisitor
+            implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
+
+        private final InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+            Optional<Integer> expectedValue = inMemoryTransactionReplayer
+                    .getValues()
+                    .get(TableAndWorkloadCell.of(readTransactionAction.table(), readTransactionAction.cell()))
+                    .toJavaOptional()
+                    .orElseGet(Optional::empty);
+
+            if (!expectedValue.equals(readTransactionAction.value())) {
+                return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
+                        readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expectedValue)));
+            }
+
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedWriteTransactionAction writeTransactionAction) {
+            inMemoryTransactionReplayer.visit(writeTransactionAction);
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedDeleteTransactionAction deleteTransactionAction) {
+            inMemoryTransactionReplayer.visit(deleteTransactionAction);
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+            // TODO (jkong): Not implemented yet
+            return Optional.empty();
+        }
+    }
+}u}(jUF (0f489a908a062dc89f3e2a38f2be28d193d61511jF satlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporter.javajF addedjF K-jF K jF K-jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X>  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.function.Consumer;
+
+public enum SerializableInvariantLogReporter implements InvariantReporter<List<InvalidWitnessedTransaction>> {
+    INSTANCE;
+    private static final SafeLogger log = SafeLoggerFactory.get(SerializableInvariantLogReporter.class);
+
+    @Override
+    public Invariant<List<InvalidWitnessedTransaction>> invariant() {
+        return SerializableInvariant.INSTANCE;
+    }
+
+    @Override
+    public Consumer<List<InvalidWitnessedTransaction>> consumer() {
+        return invalidWitnessedTransactions -> {
+            if (!invalidWitnessedTransactions.isEmpty()) {
+                log.error(
+                        "Detected transactions that violated our serializable isolation invariant {}",
+                        SafeArg.of("invalidWitnessedTransactions", invalidWitnessedTransactions));
+            }
+        };
+    }
+}u}(jUF (875d7b415beab11ac8c7b5cb94591f3b3a874168jF datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariant.javajF addedjF KUjF K jF KUjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,85 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.function.Consumer;
+
+/**
+ * This invariant checks that the snapshot isolation property is maintained.
+ * <p>
+ * The way this check works, is by replaying all transactions sorted by their effective timestamp. Transactions are
+ * replayed to an immutable map, allowing us to track each table's state at any given time. These table views are
+ * persisted to a {@link java.util.NavigableMap} by the commit timestamp of each transaction, with the value being
+ * the version of the immutable map at that point-in-time.
+ * <p>
+ * Reads are validated by comparing values from the view of a table at the start timestamp (read view),
+ * and comparing to what we've witnessed. Local writes are replayed onto the read view to ensure we
+ * don't flag false-positives, but is not witnessed by other transactions.
+ * <p>
+ * Writes are validated by first checking that the value we're writing to hasn't changed between the read view and the
+ * latest view. This would indicate a write-write conflict miss, as we should've conflicted with this transaction.
+ * Otherwise, once the transaction is replayed on top of the latest view, we persist this new view at the
+ * commit timestamp.
+ */
+public enum SnapshotInvariant implements TransactionInvariant {
+    INSTANCE;
+
+    @Override
+    public void accept(
+            WorkflowHistory workflowHistory, Consumer<List<InvalidWitnessedTransaction>> invalidWitnessedTransactions) {
+        ImmutableList.Builder<InvalidWitnessedTransaction> invalidTransactionsBuilder = new ImmutableList.Builder<>();
+        VersionedTableView<TableAndWorkloadCell, ValueAndMaybeTimestamp> tableView = new VersionedTableView<>();
+        for (WitnessedTransaction witnessedTransaction : workflowHistory.history()) {
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestTableView =
+                    tableView.getLatestTableView();
+
+            SnapshotInvariantVisitor visitor = new SnapshotInvariantVisitor(
+                    witnessedTransaction.startTimestamp(),
+                    latestTableView,
+                    tableView.getView(witnessedTransaction.startTimestamp()));
+
+            ImmutableList.Builder<InvalidWitnessedTransactionAction> invalidTransactionActionsBuilder =
+                    new ImmutableList.Builder<>();
+            for (WitnessedTransactionAction action : witnessedTransaction.actions()) {
+                action.accept(visitor).ifPresent(invalidTransactionActionsBuilder::add);
+            }
+
+            List<InvalidWitnessedTransactionAction> invalidTransactionActions =
+                    invalidTransactionActionsBuilder.build();
+
+            witnessedTransaction
+                    .commitTimestamp()
+                    .ifPresent(commitTimestamp -> tableView.put(commitTimestamp, latestTableView.getSnapshot()));
+
+            if (!invalidTransactionActions.isEmpty()) {
+                invalidTransactionsBuilder.add(
+                        InvalidWitnessedTransaction.of(witnessedTransaction, invalidTransactionActions));
+            }
+        }
+        invalidWitnessedTransactions.accept(invalidTransactionsBuilder.build());
+    }
+}u}(jUF (077c0294a2f984f9f97dca7c4b24ef6de5bc6f16jF katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javajF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF Xm  @@ -0,0 +1,134 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.collection.Map;
+import java.util.Optional;
+
+/**
+ * Replays transactions and validates for conflicts on the latest and read view.
+ * <p>
+ * The latest view will be a view of the database at the commit timestamp, while the read view will be the view of
+ * the database at the start timestamp.
+ * <p>
+ * Objects created from this class should only be used within a scope of a single transaction.
+ */
+final class SnapshotInvariantVisitor
+        implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
+
+    private final Long startTimestamp;
+    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestView;
+    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> readView;
+
+    SnapshotInvariantVisitor(
+            Long startTimestamp,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestView,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> readView) {
+        this.startTimestamp = startTimestamp;
+        this.latestView = latestView;
+        this.readView = readView;
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+        Optional<Integer> expected = fetchValueFromView(
+                        readTransactionAction.table(), readTransactionAction.cell(), readView)
+                .value();
+        if (!expected.equals(readTransactionAction.value())) {
+            return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
+                    readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expected)));
+        }
+        return Optional.empty();
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
+        Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
+                        writeTransactionAction.table(), writeTransactionAction.cell())
+                .map(mismatchedValue ->
+                        InvalidWitnessedSingleCellTransactionAction.of(writeTransactionAction, mismatchedValue));
+
+        applyWrites(
+                writeTransactionAction.table(),
+                writeTransactionAction.cell(),
+                Optional.of(writeTransactionAction.value()));
+        return invalidAction;
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+        Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
+                        deleteTransactionAction.table(), deleteTransactionAction.cell())
+                .map(mismatchedValue ->
+                        InvalidWitnessedSingleCellTransactionAction.of(deleteTransactionAction, mismatchedValue));
+
+        applyWrites(deleteTransactionAction.table(), deleteTransactionAction.cell(), Optional.empty());
+        return invalidAction;
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(
+            WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        // TODO (jkong): Not implemented yet
+        return Optional.empty();
+    }
+
+    /**
+     * Applies writes to both our read and latest table view.
+     * Latest table view needs to be updated to apply our writes from our transaction,
+     * while the read view is updated to reflect local writes.
+     */
+    private void applyWrites(String tableName, WorkloadCell cell, Optional<Integer> value) {
+        readView.with(table ->
+                table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndMaybeTimestamp.of(value, startTimestamp)));
+        latestView.with(table ->
+                table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndMaybeTimestamp.of(value, startTimestamp)));
+    }
+
+    /**
+     * Checks that the value we are writing has not changed from our read view and the latest view. If it has,
+     * that means we have missed a write-write conflict, as it should have conflicted with this transaction.
+     */
+    private Optional<MismatchedValue> checkForWriteWriteConflicts(String table, WorkloadCell cell) {
+        ValueAndMaybeTimestamp previous = fetchValueFromView(table, cell, readView);
+        ValueAndMaybeTimestamp latest = fetchValueFromView(table, cell, latestView);
+
+        if (!previous.equals(latest)) {
+            return Optional.of(MismatchedValue.of(latest, previous));
+        }
+
+        return Optional.empty();
+    }
+
+    private static ValueAndMaybeTimestamp fetchValueFromView(
+            String tableName,
+            WorkloadCell workloadCell,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> view) {
+        TableAndWorkloadCell tableAndWorkloadCell = TableAndWorkloadCell.of(tableName, workloadCell);
+        return view.getSnapshot().get(tableAndWorkloadCell).toJavaOptional().orElseGet(ValueAndMaybeTimestamp::empty);
+    }
+}u}(jUF (0729ad724e2b47dc1415a32180124d780320f58ejF eatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/VersionedTableView.javajF addedjF K6jF K jF K6jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XG	  @@ -0,0 +1,54 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.Optional;
+import java.util.TreeMap;
+import javax.annotation.concurrent.NotThreadSafe;
+
+@NotThreadSafe
+public final class VersionedTableView<K, V> {
+    private final java.util.NavigableMap<Long, Map<K, V>> tableViews = new TreeMap<>();
+
+    public void put(Long commitTimestamp, Map<K, V> tableView) {
+        tableViews.put(commitTimestamp, tableView);
+    }
+
+    public StructureHolder<Map<K, V>> getView(Long startTimestamp) {
+        Preconditions.checkArgument(
+                !tableViews.containsKey(startTimestamp),
+                "It is expected when obtaining a view "
+                        + "from the start timestamp, that it should not already exist or be present within the map. "
+                        + "As all keys in this map should be commit timestamps, and all timestamps are immutable.",
+                SafeArg.of("startTimestamp", startTimestamp),
+                SafeArg.of("tableViews", tableViews));
+        return StructureHolder.create(() -> Optional.ofNullable(tableViews.lowerEntry(startTimestamp))
+                .map(java.util.Map.Entry::getValue)
+                .orElseGet(HashMap::empty));
+    }
+
+    public StructureHolder<Map<K, V>> getLatestTableView() {
+        return StructureHolder.create(() -> Optional.ofNullable(tableViews.lastEntry())
+                .map(java.util.Map.Entry::getValue)
+                .orElseGet(HashMap::empty));
+    }
+}u}(jUF (afc5fd9e1645d1faf8b1f77f62a39f67390b4c87jF tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/resource/AntithesisCassandraSidecarResource.javajF renamedjF K
jF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X   @@ -14,29 +14,24 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.workload.workflow;
+package com.palantir.atlasdb.workload.resource;
 
-import com.palantir.atlasdb.workload.invariant.InvariantReporter;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.List;
 
-public enum RunOnceWorkflowRunner implements WorkflowRunner<Workflow> {
+public enum AntithesisCassandraSidecarResource implements CassandraSidecarResource {
     INSTANCE;
 
-    private static final SafeLogger log = SafeLoggerFactory.get(RunOnceWorkflowRunner.class);
+    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisCassandraSidecarResource.class);
 
     @Override
-    public void run(Workflow workflow, List<InvariantReporter<?>> invariants) {
-        WorkflowHistory workflowHistory = workflow.run();
-        invariants.forEach(reporter -> {
-            try {
-                reporter.report(workflowHistory);
-            } catch (RuntimeException e) {
-                log.error("Caught an exception when running and reporting an invariant.", e);
-            }
-        });
-        log.info("Dumping transaction log {}", SafeArg.of("transactionLog", workflowHistory.history()));
+    public void flush(String host) {
+        log.info("antithesis: flush {}", SafeArg.of("host", host));
+    }
+
+    @Override
+    public void compact(String host) {
+        log.info("antithesis: compact {}", SafeArg.of("host", host));
     }
 }juM gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RunOnceWorkflowRunner.javau}(jUF (7746b1901d37ab005efb2fedddecc226a6be376djF qatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunner.javajF addedjF KNjF K jF KNjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XL  @@ -0,0 +1,78 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.runner;
+
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistoryValidator;
+import com.palantir.atlasdb.workload.workflow.WorkflowValidatorRunner;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.concurrent.ExecutionException;
+import java.util.stream.Collectors;
+
+public final class AntithesisWorkflowValidatorRunner implements WorkflowValidatorRunner<Workflow> {
+    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisWorkflowValidatorRunner.class);
+    private final ListeningExecutorService listeningExecutorService;
+
+    public AntithesisWorkflowValidatorRunner(ListeningExecutorService listeningExecutorService) {
+        this.listeningExecutorService = listeningExecutorService;
+    }
+
+    @Override
+    public void run(List<WorkflowAndInvariants<Workflow>> workflowAndInvariants) {
+        try {
+            log.info("antithesis: start_faults");
+            List<WorkflowHistoryValidator> workflowHistoryValidators = Futures.allAsList(
+                            submitWorkflowValidators(workflowAndInvariants))
+                    .get();
+            log.info("antithesis: stop_faults");
+            workflowHistoryValidators.forEach(this::checkAndReportInvariantViolations);
+        } catch (InterruptedException e) {
+            Thread.currentThread().interrupt();
+            throw new RuntimeException(e);
+        } catch (ExecutionException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private void checkAndReportInvariantViolations(WorkflowHistoryValidator validator) {
+        validator.invariants().forEach(invariantReporter -> {
+            try {
+                invariantReporter.report(validator.history());
+            } catch (RuntimeException e) {
+                log.error("Caught an exception when running and reporting an invariant.", e);
+            }
+        });
+        log.info(
+                "Dumping transaction log {}",
+                SafeArg.of("transactionLog", validator.history().history()));
+    }
+
+    private List<ListenableFuture<WorkflowHistoryValidator>> submitWorkflowValidators(
+            List<WorkflowAndInvariants<Workflow>> workflowAndInvariants) {
+        return workflowAndInvariants.stream()
+                .map(workflowValidator -> listeningExecutorService.submit(() -> WorkflowHistoryValidator.of(
+                        workflowValidator.workflow().run(), workflowValidator.invariantReporters())))
+                .collect(Collectors.toList());
+    }
+}u}(jUF (b8129f7ddecb9ee76388afabb2090692f9aa773ejF latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javajF addedjF KsjF K jF KsjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XT  @@ -0,0 +1,115 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.BiFunction;
+import javax.annotation.concurrent.NotThreadSafe;
+
+@NotThreadSafe
+final class AtlasDbInteractiveTransaction implements InteractiveTransaction {
+
+    private final Transaction transaction;
+
+    private final Map<String, TableReference> tables;
+
+    private final List<WitnessedTransactionAction> witnessedTransactionActions = new ArrayList<>();
+
+    private boolean hasFinished = false;
+
+    public AtlasDbInteractiveTransaction(Transaction transaction, Map<String, TableReference> tables) {
+        this.transaction = transaction;
+        this.tables = tables;
+    }
+
+    @Override
+    public Optional<Integer> read(String table, WorkloadCell workloadCell) {
+        return run(
+                (tableReference, atlasCell) -> {
+                    Map<Cell, byte[]> values = transaction.get(tableReference, Set.of(atlasCell));
+                    Optional<Integer> valueRead =
+                            Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
+                    witnessedTransactionActions.add(WitnessedReadTransactionAction.of(table, workloadCell, valueRead));
+                    return valueRead;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public void write(String table, WorkloadCell workloadCell, Integer value) {
+        run(
+                (tableReference, atlasCell) -> {
+                    transaction.put(tableReference, Map.of(atlasCell, Ints.toByteArray(value)));
+                    witnessedTransactionActions.add(WitnessedWriteTransactionAction.of(table, workloadCell, value));
+                    return null;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public void delete(String table, WorkloadCell workloadCell) {
+        run(
+                (tableReference, atlasCell) -> {
+                    transaction.delete(tableReference, Set.of(atlasCell));
+                    witnessedTransactionActions.add(WitnessedDeleteTransactionAction.of(table, workloadCell));
+                    return null;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public List<WitnessedTransactionAction> witness() {
+        hasFinished = true;
+        return witnessedTransactionActions;
+    }
+
+    private TableReference getTableReferenceOrThrow(String table) {
+        return Optional.ofNullable(tables.get(table))
+                .orElseThrow(() -> new SafeIllegalArgumentException(
+                        "Transaction action has unknown table.",
+                        SafeArg.of("tableName", table),
+                        SafeArg.of("availableTables", tables)));
+    }
+
+    private <T> T run(BiFunction<TableReference, Cell, T> function, String table, WorkloadCell workloadCell) {
+        Preconditions.checkState(
+                !hasFinished, "Transaction has already been witnessed and can no longer perform any actions.");
+        Cell atlasCell = AtlasDbUtils.toAtlasCell(workloadCell);
+        TableReference tableReference = getTableReferenceOrThrow(table);
+        return function.apply(tableReference, atlasCell);
+    }
+}u}(jUF (12ac1ba77ac5173e6e93ae318bde8d17c872de28jF fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javajF modifiedjF KijF K?jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X1  @@ -16,35 +16,41 @@
 
 package com.palantir.atlasdb.workload.store;
 
-import com.google.common.primitives.Ints;
-import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.base.Suppliers;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.PreCommitCondition;
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.TransactionCommitFailedException;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
-import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
-import java.util.Set;
 import java.util.concurrent.atomic.AtomicReference;
+import java.util.function.Consumer;
 import java.util.function.Function;
-import java.util.stream.Collectors;
+import java.util.function.Supplier;
+import javax.annotation.concurrent.NotThreadSafe;
 import one.util.streamex.EntryStream;
 
-public final class AtlasDbTransactionStore implements TransactionStore {
+public final class AtlasDbTransactionStore implements InteractiveTransactionStore {
 
     private static final SafeLogger log = SafeLoggerFactory.get(AtlasDbTransactionStore.class);
     private final TransactionManager transactionManager;
@@ -58,94 +64,107 @@ private AtlasDbTransactionStore(TransactionManager transactionManager, Map<Strin
 
     @Override
     public Optional<Integer> get(String table, WorkloadCell cell) {
-        Cell atlasCell = AtlasDbUtils.toAtlasCell(cell);
-        TableReference tableReference = getTableReferenceOrThrow(table);
-        return transactionManager.runTaskWithRetry(task -> {
-            Map<Cell, byte[]> values = task.get(tableReference, Set.of(atlasCell));
-            return Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
-        });
+        return transactionManager.runTaskWithRetry(
+                transaction -> new AtlasDbInteractiveTransaction(transaction, tables).read(table, cell));
+    }
+
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return TransactionStatus.getCommitTimestamp(
+                        transactionManager.getTransactionService().getV2(startTimestamp))
+                .isPresent();
     }
 
     @Override
     public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
-        AtomicReference<Long> startTimestampReference = new AtomicReference<>();
+        return readWrite(txn -> {
+            AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
+            actions.forEach(action -> action.accept(visitor));
+        });
+    }
+
+    @Override
+    public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer) {
         AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
+        AtomicReference<Transaction> transactionReference = new AtomicReference<>();
+        Supplier<CommitTimestampProvider> commitTimestampProvider =
+                Suppliers.memoize(() -> new CommitTimestampProvider());
         try {
-            transactionManager.runTaskWithRetry(txn -> {
-                AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
-                startTimestampReference.set(txn.getTimestamp());
-                witnessedActionsReference.set(actions.stream()
-                        .sequential()
-                        .map(action -> action.accept(visitor))
-                        .collect(Collectors.toList()));
+            transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
+                transactionReference.set(txn);
+                AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
+                        new AtlasDbInteractiveTransaction(txn, tables);
+                interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
+                witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
                 return null;
             });
 
-            TransactionStatus status =
-                    transactionManager.getTransactionService().getV2(startTimestampReference.get());
+            Transaction transaction = transactionReference.get();
 
-            Optional<Long> commitTimestamp = TransactionStatus.getCommitTimestamp(status);
+            if (transaction.isAborted()) {
+                return Optional.empty();
+            }
 
-            return Optional.of(ImmutableWitnessedTransaction.builder()
-                    .startTimestamp(startTimestampReference.get())
-                    .commitTimestamp(commitTimestamp)
+            return Optional.of(FullyWitnessedTransaction.builder()
+                    .startTimestamp(transaction.getTimestamp())
+                    .commitTimestamp(commitTimestampProvider
+                            .get()
+                            .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
                     .actions(witnessedActionsReference.get())
                     .build());
         } catch (SafeIllegalArgumentException e) {
             throw e;
+        } catch (TransactionCommitFailedException e) {
+            Transaction transaction = transactionReference.get();
+            return Optional.of(MaybeWitnessedTransaction.builder()
+                    .startTimestamp(transaction.getTimestamp())
+                    .commitTimestamp(commitTimestampProvider
+                            .get()
+                            .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
+                    .actions(witnessedActionsReference.get())
+                    .build());
         } catch (Exception e) {
-            // TODO: Need to eventually handle PuE exceptions, as they could've succeeded in committing.
-            log.info("Failed to record transaction due to an exception", e);
+            Optional<Long> startTimestamp =
+                    Optional.ofNullable(transactionReference.get()).map(Transaction::getTimestamp);
+            log.info(
+                    "Failed to record transaction due to an exception for startTimestamp {}",
+                    SafeArg.of("startTimestamp", startTimestamp),
+                    e);
             return Optional.empty();
         }
     }
 
-    private TableReference getTableReferenceOrThrow(TransactionAction action) {
-        return getTableReferenceOrThrow(action.table());
-    }
-
-    private TableReference getTableReferenceOrThrow(String table) {
-        return Optional.ofNullable(tables.get(table))
-                .orElseThrow(() -> new SafeIllegalArgumentException(
-                        "Transaction action has unknown table.",
-                        SafeArg.of("readTransactionTableName", table),
-                        SafeArg.of("availableTables", tables)));
-    }
-
-    private class AtlasDbTransactionActionVisitor implements TransactionActionVisitor<WitnessedTransactionAction> {
+    private static class AtlasDbTransactionActionVisitor implements TransactionActionVisitor<Void> {
 
-        private final Transaction transaction;
+        private final InteractiveTransaction transaction;
 
-        public AtlasDbTransactionActionVisitor(Transaction transaction) {
+        public AtlasDbTransactionActionVisitor(InteractiveTransaction transaction) {
             this.transaction = transaction;
         }
 
         @Override
-        public WitnessedTransactionAction visit(ReadTransactionAction readTransactionAction) {
-            Cell cell = AtlasDbUtils.toAtlasCell(readTransactionAction.cell());
-            TableReference tableReference = getTableReferenceOrThrow(readTransactionAction);
-            Map<Cell, byte[]> cells =
-                    transaction.get(tableReference, Set.of(AtlasDbUtils.toAtlasCell(readTransactionAction.cell())));
-            Optional<Integer> value = Optional.ofNullable(cells.get(cell)).map(Ints::fromByteArray);
-            return readTransactionAction.witness(value);
+        public Void visit(ReadTransactionAction readTransactionAction) {
+            transaction.read(readTransactionAction.table(), readTransactionAction.cell());
+            return null;
+        }
+
+        @Override
+        public Void visit(WriteTransactionAction writeTransactionAction) {
+            transaction.write(
+                    writeTransactionAction.table(), writeTransactionAction.cell(), writeTransactionAction.value());
+            return null;
         }
 
         @Override
-        public WitnessedTransactionAction visit(WriteTransactionAction writeTransactionAction) {
-            TableReference tableReference = getTableReferenceOrThrow(writeTransactionAction);
-            transaction.put(
-                    tableReference,
-                    Map.of(
-                            AtlasDbUtils.toAtlasCell(writeTransactionAction.cell()),
-                            Ints.toByteArray(writeTransactionAction.value())));
-            return writeTransactionAction.witness();
+        public Void visit(DeleteTransactionAction deleteTransactionAction) {
+            transaction.delete(deleteTransactionAction.table(), deleteTransactionAction.cell());
+            return null;
         }
 
         @Override
-        public WitnessedTransactionAction visit(DeleteTransactionAction deleteTransactionAction) {
-            TableReference tableReference = getTableReferenceOrThrow(deleteTransactionAction);
-            transaction.delete(tableReference, Set.of(AtlasDbUtils.toAtlasCell(deleteTransactionAction.cell())));
-            return deleteTransactionAction.witness();
+        public Void visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+            // TODO (jkong): Not implemented yet
+            throw new UnsupportedOperationException("Not implemented yet");
         }
     }
 
@@ -158,4 +177,27 @@ public static AtlasDbTransactionStore create(
                 .toMap();
         return new AtlasDbTransactionStore(transactionManager, tableMapping);
     }
+
+    @VisibleForTesting
+    @NotThreadSafe
+    static final class CommitTimestampProvider implements PreCommitCondition {
+
+        private Optional<Long> maybeCommitOrStartTimestamp = Optional.empty();
+
+        @Override
+        public void throwIfConditionInvalid(long timestamp) {
+            maybeCommitOrStartTimestamp = Optional.of(timestamp);
+        }
+
+        public Optional<Long> getCommitTimestampOrThrowIfMaybeNotCommitted(long startTimestamp) {
+            long commitOrStartTimestamp = maybeCommitOrStartTimestamp.orElseThrow(() -> new SafeIllegalStateException(
+                    "Timestamp has not been set, which means the pre commit condition has never been executed,"
+                            + " thus the transaction never committed."));
+            if (startTimestamp == commitOrStartTimestamp) {
+                return Optional.empty();
+            }
+
+            return Optional.of(commitOrStartTimestamp);
+        }
+    }
 }u     }(jUF (d7dd783c1221e2a93fad625414ea628dac4c9695jF matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javajF modifiedjF K
jF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF Xr  @@ -28,6 +28,8 @@
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.conjure.java.api.config.service.UserAgent;
+import com.palantir.lock.client.TimeLockClient;
+import com.palantir.lock.client.UnreliableTimeLockService;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
@@ -39,7 +41,10 @@
 import one.util.streamex.EntryStream;
 import one.util.streamex.StreamEx;
 
-public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory {
+public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory<InteractiveTransactionStore> {
+
+    // Purposefully override the lock refresh interval to increase our chances of losing locks.
+    private static final int LOCK_REFRESH_INTERVAL_MS = 200;
 
     private final TransactionManager transactionManager;
     private final Optional<Namespace> maybeNamespace;
@@ -49,8 +54,12 @@ public AtlasDbTransactionStoreFactory(TransactionManager transactionManager, Opt
         this.maybeNamespace = maybeNamespace.map(Namespace::create);
     }
 
+    public boolean isInitialized() {
+        return transactionManager.isInitialized();
+    }
+
     @Override
-    public TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
+    public InteractiveTransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
         return AtlasDbTransactionStore.create(transactionManager, toAtlasTables(tables, indexes));
     }
 
@@ -138,6 +147,8 @@ public static AtlasDbTransactionStoreFactory createFromConfig(
                 .globalMetricsRegistry(metricsManager.getRegistry())
                 .globalTaggedMetricRegistry(metricsManager.getTaggedRegistry())
                 .runtimeConfigSupplier(atlasDbRuntimeConfig)
+                .defaultTimelockClientFactory(lockService -> TimeLockClient.createDefault(
+                        UnreliableTimeLockService.create(lockService), LOCK_REFRESH_INTERVAL_MS))
                 .build()
                 .serializable();
 u}(jUF (f903482687bcb5e66793d816482b51d37342f3f8jF fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/InMemoryValidationStore.javajF addedjF K.jF K jF K.jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X2  @@ -0,0 +1,46 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.Optional;
+
+public final class InMemoryValidationStore implements ValidationStore {
+
+    private final Map<TableAndWorkloadCell, Optional<Integer>> values;
+
+    private InMemoryValidationStore(Map<TableAndWorkloadCell, Optional<Integer>> values) {
+        this.values = values;
+    }
+
+    public static InMemoryValidationStore create(List<WitnessedTransaction> history) {
+        InMemoryTransactionReplayer replayer = new InMemoryTransactionReplayer();
+        history.stream()
+                .map(WitnessedTransaction::actions)
+                .forEach(witnessedTransactionActions ->
+                        witnessedTransactionActions.forEach(action -> action.accept(replayer)));
+        return new InMemoryValidationStore(replayer.getValues());
+    }
+
+    @Override
+    public Map<TableAndWorkloadCell, Optional<Integer>> values() {
+        return values;
+    }
+}u}(jUF (cb6dfce8a01b80d7f3c5368970de60190ce81ddcjF gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/ReadOnlyTransactionStore.javajF modifiedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XU  @@ -33,4 +33,9 @@ public ReadOnlyTransactionStore(ReadableTransactionStore delegate) {
     public Optional<Integer> get(String table, WorkloadCell cell) {
         return delegate.get(table, cell);
     }
+
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return delegate.isCommitted(startTimestamp);
+    }
 }u}(jUF (53b40b5fe80de185e89ff3bfca0044e6f97e759djF patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javajF addedjF KCjF K jF KCjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,67 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.Optional;
+
+public final class InMemoryTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
+
+    private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> values =
+            StructureHolder.create(HashMap::empty);
+
+    @Override
+    public Void visit(WitnessedReadTransactionAction _readTransactionAction) {
+        return null;
+    }
+
+    @Override
+    public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
+        TableAndWorkloadCell tableAndWorkloadCell =
+                TableAndWorkloadCell.of(writeTransactionAction.table(), writeTransactionAction.cell());
+        values.with(map -> map.put(tableAndWorkloadCell, Optional.of(writeTransactionAction.value())));
+        return null;
+    }
+
+    /**
+     * Deletes are explicitly tracked to enable invariants that rely on verifying that deleted values stay deleted.
+     */
+    @Override
+    public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+        TableAndWorkloadCell tableAndWorkloadCell =
+                TableAndWorkloadCell.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
+        values.with(map -> map.put(tableAndWorkloadCell, Optional.empty()));
+        return null;
+    }
+
+    @Override
+    public Void visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        return null;
+    }
+
+    public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
+        return values.getSnapshot();
+    }
+}u}(jUF (301fd225038dc758fb5af7d2c0a7b9fd364ca74djF latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStore.javajF removedjF K jF KTjF KTjF https://github.com/palantir/atlasdb/blob/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javajF https://github.com/palantir/atlasdb/raw/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.java?ref=7798b4ff8448588fecb6aa32284dd0ed8819f7d1jF X  @@ -1,84 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.transaction;
-
-import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
-import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
-import com.palantir.atlasdb.workload.store.ValidationStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
-import io.vavr.collection.HashMap;
-import io.vavr.collection.Map;
-import java.util.List;
-import java.util.Optional;
-
-public final class InMemoryValidationStore implements ValidationStore {
-
-    private final Map<TableAndWorkloadCell, Optional<Integer>> values;
-
-    private InMemoryValidationStore(Map<TableAndWorkloadCell, Optional<Integer>> values) {
-        this.values = values;
-    }
-
-    public static InMemoryValidationStore create(List<WitnessedTransaction> history) {
-        InMemoryTransactionReplayer replayer = new InMemoryTransactionReplayer();
-        history.stream()
-                .map(WitnessedTransaction::actions)
-                .forEach(witnessedTransactionActions ->
-                        witnessedTransactionActions.forEach(action -> action.accept(replayer)));
-        return new InMemoryValidationStore(replayer.getValues());
-    }
-
-    @Override
-    public Map<TableAndWorkloadCell, Optional<Integer>> values() {
-        return values;
-    }
-
-    private static final class InMemoryTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
-
-        private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> values =
-                StructureHolder.create(HashMap::empty);
-
-        @Override
-        public Void visit(WitnessedReadTransactionAction readTransactionAction) {
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
-            TableAndWorkloadCell tableAndWorkloadCell =
-                    TableAndWorkloadCell.of(writeTransactionAction.table(), writeTransactionAction.cell());
-            values.with(map -> map.put(tableAndWorkloadCell, Optional.of(writeTransactionAction.value())));
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
-            TableAndWorkloadCell tableAndWorkloadCell =
-                    TableAndWorkloadCell.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
-            values.with(map -> map.put(tableAndWorkloadCell, Optional.empty()));
-            return null;
-        }
-
-        public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
-            return values.getSnapshot();
-        }
-    }
-}u}(jUF (32db22149cce31693c0af4b33f0f275d03565d29jF katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javajF modifiedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -18,6 +18,7 @@
 
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 
@@ -39,4 +40,9 @@ public WriteTransactionAction visit(WitnessedWriteTransactionAction writeTransac
     public DeleteTransactionAction visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         return ImmutableDeleteTransactionAction.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
     }
+
+    @Override
+    public TransactionAction visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        return rowColumnRangeReadTransactionAction.originalQuery();
+    }
 }u}(jUF (0ba18e00eabc917a1fd7025d0f9113112c9b8615jF atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitor.javajF addedjF K*jF K jF K*jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.Optional;
+
+public final class OnlyCommittedWitnessedTransactionVisitor
+        implements WitnessedTransactionVisitor<Optional<FullyWitnessedTransaction>> {
+
+    private final ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    public OnlyCommittedWitnessedTransactionVisitor(ReadOnlyTransactionStore readOnlyTransactionStore) {
+        this.readOnlyTransactionStore = readOnlyTransactionStore;
+    }
+
+    @Override
+    public Optional<FullyWitnessedTransaction> visit(FullyWitnessedTransaction witnessedTransaction) {
+        return Optional.of(witnessedTransaction);
+    }
+
+    @Override
+    public Optional<FullyWitnessedTransaction> visit(MaybeWitnessedTransaction maybeWitnessedTransaction) {
+        return readOnlyTransactionStore.isCommitted(maybeWitnessedTransaction.startTimestamp())
+                ? Optional.of(maybeWitnessedTransaction.toFullyWitnessed())
+                : Optional.empty();
+    }
+}u}(jUF (c0b3881cb15e0ba7b72700e3a80768b2c77a4b32jF tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactions.javajF addedjF K-jF K jF K-jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.Comparator;
+import java.util.List;
+import one.util.streamex.StreamEx;
+
+public final class WitnessedTransactions {
+    private WitnessedTransactions() {
+        // utility
+    }
+
+    /**
+     * Sorts transactions by their effective timestamp and filters out transactions that are not fully committed.
+     */
+    public static List<FullyWitnessedTransaction> sortAndFilterTransactions(
+            ReadOnlyTransactionStore readOnlyTransactionStore, List<WitnessedTransaction> unorderedTransactions) {
+        OnlyCommittedWitnessedTransactionVisitor visitor =
+                new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
+        return StreamEx.of(unorderedTransactions)
+                .mapPartial(transaction -> transaction.accept(visitor))
+                .sorted(Comparator.comparingLong(WitnessedTransactions::effectiveTimestamp))
+                .toList();
+    }
+
+    private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
+        return witnessedTransaction.commitTimestamp().orElseGet(witnessedTransaction::startTimestamp);
+    }
+}u}(jUF (c14cafe2cad0f011ce8b5b31617cf86e0d9736fajF matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunner.javajF modifiedjF KjF KjF K	jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF Xz  @@ -30,18 +30,17 @@
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 
-public final class ConcurrentTransactionRunner {
-    private final TransactionStore transactionStore;
+public final class ConcurrentTransactionRunner<T extends TransactionStore> {
+    private final T transactionStore;
     private final ListeningExecutorService listeningExecutorService;
 
-    public ConcurrentTransactionRunner(
-            TransactionStore transactionStore, ListeningExecutorService listeningExecutorService) {
+    public ConcurrentTransactionRunner(T transactionStore, ListeningExecutorService listeningExecutorService) {
         this.transactionStore = transactionStore;
         this.listeningExecutorService = listeningExecutorService;
     }
 
     public Future<List<WitnessedTransaction>> runConcurrentTransactionTask(
-            KeyedTransactionTask transactionTask, int taskMultiplicity) {
+            KeyedTransactionTask<T> transactionTask, int taskMultiplicity) {
         Preconditions.checkArgument(
                 taskMultiplicity >= 0,
                 "Tasks must be run a non-negative number of times",u}(jUF (f4ad0b8dddc43f5cd0380760c6cfdc9c58c273e1jF aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javajF modifiedjF K
jF KjF K&jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -16,27 +16,25 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
-import java.util.Comparator;
 import java.util.List;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
-import java.util.stream.Collectors;
 
-public final class DefaultWorkflow implements Workflow {
-    private final ConcurrentTransactionRunner concurrentTransactionRunner;
-    private final KeyedTransactionTask transactionTask;
+public final class DefaultWorkflow<T extends TransactionStore> implements Workflow {
+    private final ConcurrentTransactionRunner<T> concurrentTransactionRunner;
+    private final KeyedTransactionTask<T> transactionTask;
     private final WorkflowConfiguration workflowConfiguration;
     private final ReadOnlyTransactionStore readOnlyTransactionStore;
 
     private DefaultWorkflow(
-            ConcurrentTransactionRunner concurrentTransactionRunner,
-            KeyedTransactionTask transactionTask,
+            ConcurrentTransactionRunner<T> concurrentTransactionRunner,
+            KeyedTransactionTask<T> transactionTask,
             WorkflowConfiguration workflowConfiguration,
             ReadOnlyTransactionStore readOnlyTransactionStore) {
         this.concurrentTransactionRunner = concurrentTransactionRunner;
@@ -45,13 +43,13 @@ private DefaultWorkflow(
         this.readOnlyTransactionStore = readOnlyTransactionStore;
     }
 
-    public static Workflow create(
-            TransactionStore store,
-            KeyedTransactionTask transactionTask,
+    public static <T extends TransactionStore> DefaultWorkflow<T> create(
+            T store,
+            KeyedTransactionTask<T> transactionTask,
             WorkflowConfiguration configuration,
             ListeningExecutorService executionExecutor) {
-        return new DefaultWorkflow(
-                new ConcurrentTransactionRunner(store, executionExecutor),
+        return new DefaultWorkflow<>(
+                new ConcurrentTransactionRunner<>(store, executionExecutor),
                 transactionTask,
                 configuration,
                 new ReadOnlyTransactionStore(store));
@@ -60,7 +58,8 @@ public static Workflow create(
     @Override
     public WorkflowHistory run() {
         return ImmutableWorkflowHistory.builder()
-                .history(sortByEffectiveTimestamp(runTransactionTask()))
+                .history(
+                        WitnessedTransactions.sortAndFilterTransactions(readOnlyTransactionStore, runTransactionTask()))
                 .transactionStore(readOnlyTransactionStore)
                 .build();
     }
@@ -78,15 +77,4 @@ private List<WitnessedTransaction> runTransactionTask() {
             throw new SafeRuntimeException("Error when running workflow task", e.getCause());
         }
     }
-
-    @VisibleForTesting
-    static List<WitnessedTransaction> sortByEffectiveTimestamp(List<WitnessedTransaction> unorderedTransactions) {
-        return unorderedTransactions.stream()
-                .sorted(Comparator.comparingLong(DefaultWorkflow::effectiveTimestamp))
-                .collect(Collectors.toList());
-    }
-
-    private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
-        return witnessedTransaction.commitTimestamp().orElseGet(witnessedTransaction::startTimestamp);
-    }
 }u}(jUF (e0b5354ebacbf6077ea736f29765fb8d71159fcdjF matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowConfiguration.javajF addedjF K:jF K jF K:jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,58 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableRandomWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableRandomWorkflowConfiguration.class)
+@JsonTypeName(RandomWorkflowConfiguration.TYPE)
+public interface RandomWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "random";
+
+    TableConfiguration tableConfiguration();
+
+    @Value.Default
+    default Integer maxWrites() {
+        return 5;
+    }
+
+    @Value.Default
+    default Integer maxReads() {
+        return 5;
+    }
+
+    @Value.Default
+    default Integer maxDeletes() {
+        return 2;
+    }
+
+    @Value.Default
+    default Integer maxCells() {
+        return 10;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jUF (a9726d8998a6fbf1c745d6616a2e4356d3889a34jF aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javajF addedjF KvjF K jF KvjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF Xw  @@ -0,0 +1,118 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.security.SecureRandom;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+import org.jetbrains.annotations.VisibleForTesting;
+
+public final class RandomWorkflows {
+    private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+    private static final Integer COLUMN = 0;
+
+    private RandomWorkflows() {
+        // static factory
+    }
+
+    public static Workflow create(
+            TransactionStore store,
+            RandomWorkflowConfiguration randomWorkflowConfig,
+            ListeningExecutorService executionExecutor) {
+        return create(store, randomWorkflowConfig, executionExecutor, RANDOM);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            TransactionStore store,
+            RandomWorkflowConfiguration randomWorkflowConfig,
+            ListeningExecutorService executionExecutor,
+            SecureRandom random) {
+        RandomWorkflowTask task = new RandomWorkflowTask(randomWorkflowConfig, random);
+        return DefaultWorkflow.create(
+                store, (txnStore, _index) -> task.run(txnStore), randomWorkflowConfig, executionExecutor);
+    }
+
+    private static final class RandomWorkflowTask {
+
+        private final RandomWorkflowConfiguration workflowConfiguration;
+        private final SecureRandom random;
+
+        public RandomWorkflowTask(RandomWorkflowConfiguration workflowConfiguration, SecureRandom random) {
+            this.workflowConfiguration = workflowConfiguration;
+            this.random = random;
+        }
+
+        public Optional<WitnessedTransaction> run(TransactionStore store) {
+            workflowConfiguration.transactionRateLimiter().acquire();
+            List<TransactionAction> actions = Stream.of(
+                            generateReadActions(), generateWriteActions(), generateDeleteActions())
+                    .flatMap(Collection::stream)
+                    .collect(Collectors.toList());
+            Collections.shuffle(actions, random);
+            return store.readWrite(actions);
+        }
+
+        private List<ReadTransactionAction> generateReadActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxReads() + 1))
+                    .boxed()
+                    .map(_index -> ImmutableReadTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(), randomCell()))
+                    .collect(Collectors.toList());
+        }
+
+        private List<WriteTransactionAction> generateWriteActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxWrites() + 1))
+                    .boxed()
+                    .map(_index -> ImmutableWriteTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(),
+                            randomCell(),
+                            random.nextInt(100_000)))
+                    .collect(Collectors.toList());
+        }
+
+        private List<DeleteTransactionAction> generateDeleteActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxDeletes() + 1))
+                    .boxed()
+                    .map(_index -> ImmutableDeleteTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(), randomCell()))
+                    .collect(Collectors.toList());
+        }
+
+        private WorkloadCell randomCell() {
+            return ImmutableWorkloadCell.of(random.nextInt(workflowConfiguration.maxCells()), COLUMN);
+        }
+    }
+}u}(jUF (cfa7bb7b766851d22237ea49091b9cce6c50c789jF atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowConfiguration.javajF addedjF K jF K jF K jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF Xz  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellReadNoTouchWorkflowConfiguration.TYPE)
+public interface SingleBusyCellReadNoTouchWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell-reads-no-touch";
+
+    TableConfiguration tableConfiguration();
+}u}(jUF (ae852affb871f77d186c4b71ecca052b5aeeed40jF tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflows.javajF addedjF KjjF K jF KjjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions. This workflow differs
+ * from the {@link SingleBusyCellWorkflows} in the way that its read transaction only does read and doesn't touch the
+ * cell with its current value or -1. This allows us to exercise the code path of read-write transaction that only do
+ * reads, which is necessary to catch bugs like sweep deleting entries under a transaction if it doesn't check for
+ * immutableTimestamp lock.
+ */
+public final class SingleBusyCellReadNoTouchWorkflows {
+    private SingleBusyCellReadNoTouchWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReads(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReads(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(
+                        txn -> txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL))))
+                .collect(Collectors.toList());
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
+    }
+}u}(jUF (4ca9777a60bba46b458d814677435f4e29d93675jF uatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowConfiguration.javajF addedjF K jF K jF K jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X?  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellWorkflowConfiguration.TYPE)
+public interface SingleBusyCellWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell";
+
+    TableConfiguration tableConfiguration();
+}u}(jUF (c82f3d3c2182e14e8f2d6630ac1cb719f0cd3c4cjF iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflows.javajF addedjF KijF K jF KijF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,105 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions.
+ */
+public final class SingleBusyCellWorkflows {
+    private SingleBusyCellWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReadsAndTouches(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReadsAndTouches(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(txn -> {
+                    Optional<Integer> value =
+                            txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL);
+                    txn.write(configuration.tableConfiguration().tableName(), BUSY_CELL, value.orElse(-1));
+                })))
+                .collect(Collectors.toList());
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
+    }
+}u}(jUF (f101f419a9c4366406e60fd1ca898e4645dbf939jF xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XE  @@ -27,15 +27,10 @@
 @JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
 @JsonTypeName(SingleRowTwoCellsWorkflowConfiguration.TYPE)
 public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfiguration {
-    String TYPE = "singleRowTwoCells";
+    String TYPE = "single-row-two-cells";
 
     TableConfiguration tableConfiguration();
 
-    @Value.Default
-    default double rateLimit() {
-        return 100;
-    }
-
     @Value.Lazy
     default RateLimiter transactionRateLimiter() {
         return RateLimiter.create(rateLimit());u}(jUF (32ce774d4a8fd320c1af7af7c838de4f7f6065e3jF latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javajF modifiedjF K	jF KjF K
jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -28,6 +28,9 @@
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
 import java.util.Optional;
 import java.util.stream.Collectors;
@@ -39,6 +42,7 @@
  * to delete the other.
  */
 public final class SingleRowTwoCellsWorkflows {
+    private static final SafeLogger log = SafeLoggerFactory.get(SingleRowTwoCellsWorkflows.class);
     private static final int SINGLE_ROW = 1;
     private static final int FIRST_COLUMN = 1;
     private static final int SECOND_COLUMN = 2;
@@ -70,7 +74,11 @@ private static Optional<WitnessedTransaction> run(
 
         List<TransactionAction> transactionActions = createTransactionActions(
                 taskIndex, workflowConfiguration.tableConfiguration().tableName());
-        return store.readWrite(transactionActions);
+        Optional<WitnessedTransaction> maybeTransaction = store.readWrite(transactionActions);
+        maybeTransaction.ifPresent(_transaction -> log.info(
+                "Transaction successfully committed for single row two cells workflow for task index {}.",
+                SafeArg.of("taskIndex", taskIndex)));
+        return maybeTransaction;
     }
 
     @VisibleForTestingu}(jUF (be3aea7c363f3e52d9c0332e95d106f0c15597f5jF tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowConfiguration.javajF addedjF K jF K jF K jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowConfiguration.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowConfiguration.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowConfiguration.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X9  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableTransientRowsWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableTransientRowsWorkflowConfiguration.class)
+@JsonTypeName(TransientRowsWorkflowConfiguration.TYPE)
+public interface TransientRowsWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "transient-rows";
+
+    TableConfiguration tableConfiguration();
+}u}(jUF (9002a5ed3382a35694d630c784b417cd15befa46jF hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javajF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X]%  @@ -0,0 +1,187 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.invariant.CrossCellInconsistency;
+import com.palantir.atlasdb.workload.invariant.ImmutableInvariantReporter;
+import com.palantir.atlasdb.workload.invariant.Invariant;
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.security.SecureRandom;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.Set;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+public final class TransientRowsWorkflows {
+    private static final SafeLogger log = SafeLoggerFactory.get(TransientRowsWorkflows.class);
+
+    @VisibleForTesting
+    static final int SUMMARY_ROW = -1;
+
+    @VisibleForTesting
+    static final int COLUMN = 1;
+
+    @VisibleForTesting
+    static final int VALUE = 0;
+
+    private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+
+    private TransientRowsWorkflows() {}
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            TransientRowsWorkflowConfiguration workflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        return DefaultWorkflow.create(
+                store,
+                (txn, taskIndex) -> run(store, workflowConfiguration, taskIndex),
+                workflowConfiguration,
+                executionExecutor);
+    }
+
+    private static Optional<WitnessedTransaction> run(
+            InteractiveTransactionStore store, TransientRowsWorkflowConfiguration configuration, int taskIndex) {
+        return store.readWrite(txn -> {
+            String tableName = configuration.tableConfiguration().tableName();
+            txn.write(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex), VALUE);
+            txn.write(tableName, ImmutableWorkloadCell.of(taskIndex, COLUMN), VALUE);
+            if (taskIndex > 0) {
+                int indexToRead = SECURE_RANDOM.nextInt(taskIndex);
+                txn.read(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, indexToRead));
+                txn.read(tableName, ImmutableWorkloadCell.of(indexToRead, COLUMN));
+
+                if (txn.read(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN))
+                        .isPresent()) {
+                    txn.delete(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex - 1));
+                    txn.delete(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN));
+                }
+            }
+        });
+    }
+
+    public static InvariantReporter<List<CrossCellInconsistency>> getSummaryLogInvariantReporter(
+            TransientRowsWorkflowConfiguration configuration) {
+        return ImmutableInvariantReporter.<List<CrossCellInconsistency>>builder()
+                .invariant(createSummaryRowInvariant(configuration))
+                .consumer(violations -> {
+                    if (!violations.isEmpty()) {
+                        log.error(
+                                "Detected rows which did not agree with state in a summary index: {}",
+                                SafeArg.of("violations", violations));
+                    }
+                })
+                .build();
+    }
+
+    private static Invariant<List<CrossCellInconsistency>> createSummaryRowInvariant(
+            TransientRowsWorkflowConfiguration configuration) {
+        return (workflowHistory, notifier) -> {
+            List<CrossCellInconsistency> violations = new ArrayList<>();
+            ReadableTransactionStore store = workflowHistory.transactionStore();
+
+            violations.addAll(findInconsistencyInTransactionHistory(workflowHistory.history()));
+            violations.addAll(findInconsistencyInFinalIndexState(configuration, store));
+
+            notifier.accept(violations);
+        };
+    }
+
+    private static List<CrossCellInconsistency> findInconsistencyInTransactionHistory(
+            List<WitnessedTransaction> history) {
+        return history.stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(TransientRowsWorkflows::findInconsistencyInTransactionActions)
+                .collect(Collectors.toList());
+    }
+
+    private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActions(
+            List<WitnessedTransactionAction> actions) {
+        Set<WitnessedReadTransactionAction> readTransactionActions = actions.stream()
+                .filter(WitnessedReadTransactionAction.class::isInstance)
+                .map(action -> (WitnessedReadTransactionAction) action)
+                .collect(Collectors.toSet());
+        if (readTransactionActions.size() == 0) {
+            return Stream.empty();
+        }
+        WitnessedReadTransactionAction summaryRowRead = readTransactionActions.stream()
+                .filter(action -> action.cell().key() == SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of the summary row", SafeArg.of("actions", actions)));
+        WitnessedReadTransactionAction normalRowRead = readTransactionActions.stream()
+                .filter(action -> Objects.equals(
+                                action.cell().key(), summaryRowRead.cell().column())
+                        && action.cell().column() == COLUMN)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of a corresponding normal row", SafeArg.of("actions", actions)));
+        if (!summaryRowRead.value().equals(normalRowRead.value())) {
+            return Stream.of(CrossCellInconsistency.builder()
+                    .putInconsistentValues(
+                            TableAndWorkloadCell.of(summaryRowRead.table(), summaryRowRead.cell()),
+                            summaryRowRead.value())
+                    .putInconsistentValues(
+                            TableAndWorkloadCell.of(normalRowRead.table(), normalRowRead.cell()), normalRowRead.value())
+                    .build());
+        } else {
+            return Stream.empty();
+        }
+    }
+
+    private static List<CrossCellInconsistency> findInconsistencyInFinalIndexState(
+            TransientRowsWorkflowConfiguration configuration, ReadableTransactionStore store) {
+        List<CrossCellInconsistency> violations = new ArrayList<>();
+        String tableName = configuration.tableConfiguration().tableName();
+        Set<Integer> taskIndices =
+                IntStream.range(0, configuration.iterationCount()).boxed().collect(Collectors.toSet());
+        taskIndices.forEach(index -> checkSummaryConsistencyForIndex(violations, store, tableName, index));
+        return violations;
+    }
+
+    private static void checkSummaryConsistencyForIndex(
+            List<CrossCellInconsistency> violations, ReadableTransactionStore store, String tableName, Integer index) {
+        WorkloadCell primaryCell = ImmutableWorkloadCell.of(index, COLUMN);
+        Optional<Integer> valueFromPrimaryRow = store.get(tableName, primaryCell);
+        WorkloadCell summaryCell = ImmutableWorkloadCell.of(SUMMARY_ROW, index);
+        Optional<Integer> valueFromSummaryRow = store.get(tableName, summaryCell);
+        if (valueFromSummaryRow.isPresent() ^ valueFromPrimaryRow.isPresent()) {
+            violations.add(CrossCellInconsistency.builder()
+                    .putInconsistentValues(TableAndWorkloadCell.of(tableName, primaryCell), valueFromPrimaryRow)
+                    .putInconsistentValues(TableAndWorkloadCell.of(tableName, summaryCell), valueFromSummaryRow)
+                    .build());
+        }
+    }
+}u     }(jUF (4c009ebe4699e6665fa0c9590874f7ead9b2f33fjF gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtils.javajF addedjF K^jF K jF K^jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,94 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import com.google.common.collect.ImmutableMap;
+import java.security.SecureRandom;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Optional;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import one.util.streamex.EntryStream;
+
+public final class BankBalanceUtils {
+
+    private BankBalanceUtils() {}
+
+    /**
+     * Validates all the bank balances provided. If all are empty, we will generate a new set of bank balances. If
+     * any are missing, an empty optional is returned to indicate failure state. If balances do not total to the
+     * expected amount, an empty optional is returned.
+     *
+     * @return An empty optional when validation has failed for bank balances. Otherwise, the optional will contain
+     * the validated (or generated) balances.
+     */
+    public static Optional<Map<Integer, Integer>> validateOrGenerateBalances(
+            Map<Integer, Optional<Integer>> maybeBalances, Integer numberOfAccounts, Integer balancePerAccount) {
+        if (allValuesPresent(maybeBalances)) {
+            Integer total = numberOfAccounts * balancePerAccount;
+            Map<Integer, Integer> balances =
+                    EntryStream.of(maybeBalances).mapValues(Optional::get).toMap();
+            if (!sumOfBalancesMatchTotal(balances, total)) {
+                return Optional.empty();
+            }
+            return Optional.of(balances);
+        }
+
+        if (allValuesEmpty(maybeBalances)) {
+            return Optional.of(generateBalances(numberOfAccounts, balancePerAccount));
+        }
+
+        return Optional.empty();
+    }
+
+    public static Map<Integer, Integer> performTransfers(
+            Map<Integer, Integer> balances, int numberOfTransfers, int transferAmount, SecureRandom random) {
+        Map<Integer, Integer> newBalances = new HashMap<>(balances);
+        for (int idx = 0; idx < numberOfTransfers; idx++) {
+            int from = random.nextInt(newBalances.size());
+            int to = random.nextInt(newBalances.size());
+
+            if (newBalances.get(from) - transferAmount < 0) {
+                continue;
+            }
+
+            newBalances.compute(from, (k, v) -> v - transferAmount);
+            newBalances.compute(to, (k, v) -> v + transferAmount);
+        }
+        return ImmutableMap.copyOf(newBalances);
+    }
+
+    private static boolean sumOfBalancesMatchTotal(Map<Integer, Integer> balances, Integer totalBalance) {
+        return balances.values().stream().mapToInt(Integer::intValue).sum() == totalBalance;
+    }
+
+    private static boolean allValuesPresent(Map<Integer, Optional<Integer>> balances) {
+        return balances.values().stream().allMatch(Optional::isPresent);
+    }
+
+    private static boolean allValuesEmpty(Map<Integer, Optional<Integer>> balances) {
+        return balances.values().stream().allMatch(Optional::isEmpty);
+    }
+
+    private static Map<Integer, Integer> generateBalances(Integer numberOfAccounts, Integer balancePerAccount) {
+        return IntStream.range(0, numberOfAccounts)
+                .boxed()
+                .collect(Collectors.toMap(Function.identity(), index -> balancePerAccount));
+    }
+}u}(jUF (dd8ae4bd5d9bdf4ebb6f459b4fc1771835066b3ejF watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowConfiguration.javajF addedjF K7jF K jF K7jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,55 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import com.palantir.atlasdb.workload.workflow.TableConfiguration;
+import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableBankBalanceWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableBankBalanceWorkflowConfiguration.class)
+@JsonTypeName(BankBalanceWorkflowConfiguration.TYPE)
+public interface BankBalanceWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "bank-balance";
+
+    TableConfiguration tableConfiguration();
+
+    @Value.Default
+    default Integer numberOfAccounts() {
+        return 10;
+    }
+
+    @Value.Default
+    default Integer initialBalancePerAccount() {
+        return 100;
+    }
+
+    @Value.Default
+    default Integer transferAmount() {
+        return 75;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jUF (2394a7f410f2773d697a6ff47e5911c814eba351jF katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflows.javajF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,136 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.security.SecureRandom;
+import java.util.Map;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.jetbrains.annotations.VisibleForTesting;
+
+/**
+ * A workflow which performs a number of account balance transfers between accounts.
+ */
+public final class BankBalanceWorkflows {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(BankBalanceWorkflows.class);
+    private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+
+    private static final Integer COLUMN = 0;
+
+    private BankBalanceWorkflows() {
+        // utility
+    }
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            BankBalanceWorkflowConfiguration bankBalanceWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        BankBalanceRunTask runTask = new BankBalanceRunTask(bankBalanceWorkflowConfiguration);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> runTask.run(txnStore),
+                bankBalanceWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            InteractiveTransactionStore store,
+            BankBalanceWorkflowConfiguration bankBalanceWorkflowConfiguration,
+            ListeningExecutorService executionExecutor,
+            AtomicBoolean skipRunning) {
+        BankBalanceRunTask runTask = new BankBalanceRunTask(skipRunning, bankBalanceWorkflowConfiguration);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> runTask.run(txnStore),
+                bankBalanceWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    private static class BankBalanceRunTask {
+        private final AtomicBoolean skipRunning;
+
+        private final BankBalanceWorkflowConfiguration workflowConfiguration;
+
+        public BankBalanceRunTask(BankBalanceWorkflowConfiguration workflowConfiguration) {
+            this(new AtomicBoolean(), workflowConfiguration);
+        }
+
+        @VisibleForTesting
+        BankBalanceRunTask(AtomicBoolean skipRunning, BankBalanceWorkflowConfiguration workflowConfiguration) {
+            this.skipRunning = skipRunning;
+            this.workflowConfiguration = workflowConfiguration;
+        }
+
+        public Optional<WitnessedTransaction> run(InteractiveTransactionStore store) {
+            if (skipRunning.get()) {
+                return Optional.empty();
+            }
+            workflowConfiguration.transactionRateLimiter().acquire();
+            return store.readWrite(txn -> {
+                Map<Integer, Optional<Integer>> maybeBalances = getAccountBalances(txn);
+                BankBalanceUtils.validateOrGenerateBalances(
+                                maybeBalances,
+                                workflowConfiguration.numberOfAccounts(),
+                                workflowConfiguration.initialBalancePerAccount())
+                        .ifPresentOrElse(balances -> performTransfers(txn, balances), () -> {
+                            if (skipRunning.compareAndSet(false, true)) {
+                                log.error(
+                                        "Balance validation failed, indicating we have violated snapshot isolation.",
+                                        SafeArg.of("maybeBalances", maybeBalances));
+                            }
+                        });
+            });
+        }
+
+        private void performTransfers(InteractiveTransaction transaction, Map<Integer, Integer> balances) {
+            Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(
+                    balances, RANDOM.nextInt(balances.size()), workflowConfiguration.transferAmount(), RANDOM);
+            newBalances.forEach((account, balance) -> transaction.write(
+                    workflowConfiguration.tableConfiguration().tableName(), getCellForAccount(account), balance));
+        }
+
+        private Map<Integer, Optional<Integer>> getAccountBalances(InteractiveTransaction transaction) {
+            return IntStream.range(0, workflowConfiguration.numberOfAccounts())
+                    .boxed()
+                    .collect(Collectors.toMap(
+                            Function.identity(),
+                            index -> transaction.read(
+                                    workflowConfiguration.tableConfiguration().tableName(), getCellForAccount(index))));
+        }
+    }
+
+    public static WorkloadCell getCellForAccount(int accountIndex) {
+        return ImmutableWorkloadCell.of(accountIndex, COLUMN);
+    }
+}u}(jUF (17025a595fb12bc4f0fc9cfc02f250dd06064c6ajF `atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingGraph.javajF addedjF K|jF K jF K|jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X%  @@ -0,0 +1,124 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.google.common.collect.Iterators;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.security.SecureRandom;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import one.util.streamex.EntryStream;
+
+public final class RingGraph {
+    private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+    private final Map<Integer, Integer> ring;
+
+    private RingGraph(Map<Integer, Integer> ring) {
+        this.ring = ring;
+    }
+
+    public static RingGraph from(Map<Integer, Integer> ring) throws RingValidationException {
+        validateGraphIsRing(ring);
+        return new RingGraph(ring);
+    }
+
+    public static RingGraph fromPartial(Map<Integer, Optional<Integer>> ring) throws RingValidationException {
+        if (isEmpty(ring)) {
+            return RingGraph.generateNewRing(ring.keySet());
+        }
+
+        Preconditions.checkArgument(
+                !anyEmpty(ring),
+                "Graph contains missing entries, thus cannot be made into a ring.",
+                SafeArg.of("ring", ring));
+
+        return from(EntryStream.of(ring).mapValues(Optional::get).toMap());
+    }
+
+    public static RingGraph create(int size) {
+        return generateNewRing(IntStream.range(0, size).boxed().collect(Collectors.toSet()));
+    }
+
+    /**
+     * Checks that the ring is correct by verifying:
+     * (1) There are no missing entries
+     * (2) There are no sub-cycles
+     * (3) The ring is connected
+     * <p>
+     * This is simply done by iterating over the length of the ring, and validating that we visited each node.
+     * To ensure that the ring is connected, we do not track our entry into the ring (i.e. the first node we visit),
+     * as we expect to have it be visited again as the last node.
+     */
+    public static void validateGraphIsRing(Map<Integer, Integer> ring) throws RingValidationException {
+        Integer initialNode = ring.keySet().iterator().next();
+        Set<Integer> remainingNodes = new HashSet<>(ring.keySet());
+        int maxIterations = ring.keySet().size();
+        Integer nextNode = ring.get(initialNode);
+        for (int iterations = 0; iterations < maxIterations; iterations++) {
+            // If we reference a node that does not exist in our ring, it means we are missing data
+            if (!ring.containsKey(nextNode)) {
+                RingValidationException.throwMissingEntries(ring);
+            }
+
+            // If the node already has been visited, it means we're in a cycle within our ring
+            if (!remainingNodes.remove(nextNode)) {
+                RingValidationException.throwEarlyCycle(ring);
+            }
+
+            nextNode = ring.get(nextNode);
+        }
+    }
+
+    public RingGraph generateNewRing() {
+        return generateNewRing(ring.keySet());
+    }
+
+    /**
+     * Returns a valid new ring with the same nodes but randomly generated edges.
+     */
+    private static RingGraph generateNewRing(Set<Integer> nodes) {
+        List<Integer> keys = new ArrayList<>(nodes);
+        Collections.shuffle(keys, SECURE_RANDOM);
+        Iterator<Integer> valuesIterator = Iterators.cycle(keys);
+        valuesIterator.next();
+        return new RingGraph(
+                keys.stream().collect(Collectors.toMap(Function.identity(), _node -> valuesIterator.next())));
+    }
+
+    public Map<Integer, Integer> asMap() {
+        return ring;
+    }
+
+    private static boolean isEmpty(Map<Integer, Optional<Integer>> ring) {
+        return ring.values().stream().allMatch(Optional::isEmpty);
+    }
+
+    private static boolean anyEmpty(Map<Integer, Optional<Integer>> ring) {
+        return ring.values().stream().anyMatch(Optional::isEmpty);
+    }
+}u}(jUF (109ed2a6c2ef9753e6500d3ea6827a032511da81jF natlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingValidationException.javajF addedjF K?jF K jF K?jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,63 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.palantir.logsafe.Arg;
+import com.palantir.logsafe.Safe;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.SafeLoggable;
+import java.util.List;
+import java.util.Map;
+
+public final class RingValidationException extends IllegalArgumentException implements SafeLoggable {
+
+    private final Map<Integer, Integer> ring;
+    private final Type type;
+
+    private RingValidationException(Map<Integer, Integer> ring, Type type) {
+        this.ring = ring;
+        this.type = type;
+    }
+
+    @Override
+    public @Safe String getLogMessage() {
+        return "Detected an error in the graph when attempting to validate as a ring.";
+    }
+
+    @Override
+    public List<Arg<?>> getArgs() {
+        return List.of(SafeArg.of("ring", ring), SafeArg.of("type", type));
+    }
+
+    public static void throwEarlyCycle(Map<Integer, Integer> ring) throws RingValidationException {
+        throw new RingValidationException(ring, Type.EARLY_CYCLE);
+    }
+
+    public static void throwMissingEntries(Map<Integer, Integer> ring) throws RingValidationException {
+        throw new RingValidationException(ring, Type.MISSING_ENTRIES);
+    }
+
+    enum Type {
+        // Detected a cycle in our ring before visiting all nodes,
+        // indicating the integrity of our ring has been compromised.
+        EARLY_CYCLE,
+
+        // Detected a reference to a node that does not exist,
+        // indicating the integrity of our ring has been compromised.
+        MISSING_ENTRIES;
+    }
+}u}(jUF (8db9245638b72b40f73f9ae3c427c4ccb2c69053jF patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowConfiguration.javajF addedjF K,jF K jF K,jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import com.palantir.atlasdb.workload.workflow.TableConfiguration;
+import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableRingWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableRingWorkflowConfiguration.class)
+@JsonTypeName(RingWorkflowConfiguration.TYPE)
+public interface RingWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "ring";
+
+    TableConfiguration tableConfiguration();
+
+    default Integer ringSize() {
+        return 3;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jUF (b786a95bef1effb5bd44f53eed786d588b38a9b0jF datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflows.javajF addedjF KtjF K jF KtjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,116 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.Map;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+
+/**
+ * Runs a workflow which creates a representation of a ring using key-value pairs.
+ * The ring is validated and shuffled after every iteration. If the ring ever becomes invalid (cycles, missing data),
+ * this indicates that there is a bug in our underlying storage infrastructure, as snapshot isolation has been violated.
+ * Snapshot isolation would be violated here, as it indicates that we did not detect a write-write conflict,
+ * as every write will be of a correct ring.
+ */
+public final class RingWorkflows {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(RingWorkflows.class);
+
+    private static final int COLUMN = 0;
+
+    private RingWorkflows() {
+        // static factory
+    }
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration ringWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        AtomicBoolean skipRunning = new AtomicBoolean(false);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
+                ringWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration ringWorkflowConfiguration,
+            ListeningExecutorService executionExecutor,
+            AtomicBoolean skipRunning) {
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
+                ringWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    private static Optional<WitnessedTransaction> run(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration workflowConfiguration,
+            AtomicBoolean skipRunning) {
+        if (skipRunning.get()) {
+            return Optional.empty();
+        }
+
+        workflowConfiguration.transactionRateLimiter().acquire();
+        String table = workflowConfiguration.tableConfiguration().tableName();
+        Integer ringSize = workflowConfiguration.ringSize();
+        return store.readWrite(txn -> {
+            Map<Integer, Optional<Integer>> data = fetchData(table, ringSize, txn);
+            try {
+                RingGraph ringGraph = RingGraph.fromPartial(data);
+                ringGraph
+                        .generateNewRing()
+                        .asMap()
+                        .forEach((rootNode, nextNode) -> txn.write(table, cell(rootNode), nextNode));
+            } catch (IllegalArgumentException e) {
+                if (skipRunning.compareAndSet(false, true)) {
+                    log.error("Detected violation with our ring.", e);
+                }
+            }
+        });
+    }
+
+    private static Map<Integer, Optional<Integer>> fetchData(
+            String table, int ringSize, InteractiveTransaction transaction) {
+        return IntStream.range(0, ringSize)
+                .boxed()
+                .collect(Collectors.toMap(Function.identity(), index -> transaction.read(table, cell(index))));
+    }
+
+    @VisibleForTesting
+    static ImmutableWorkloadCell cell(Integer node) {
+        return ImmutableWorkloadCell.of(node, COLUMN);
+    }
+}u}(jUF (c89f46a34f99a9fca258b76f8b9fdf692e350760jF natlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/background/BackgroundCassandraJobTest.javajF addedjF K2jF K jF K2jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,50 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.background;
+
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.verify;
+
+import com.palantir.atlasdb.buggify.AlwaysBuggifyFactory;
+import com.palantir.atlasdb.workload.resource.CassandraSidecarResource;
+import java.util.List;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class BackgroundCassandraJobTest {
+
+    private static final String HOST_ONE = "cassandra1";
+    private static final String HOST_TWO = "cassandra2";
+    private static final String HOST_THREE = "cassandra3";
+
+    private static final List<String> CASSANDRA_HOSTS = List.of(HOST_ONE, HOST_TWO, HOST_THREE);
+
+    @Mock
+    private CassandraSidecarResource cassandraSidecarResource;
+
+    @Test
+    public void runCanExecuteCompactFlushOnAllCassandraHosts() {
+        BackgroundCassandraJob backgroundCassandraJob =
+                new BackgroundCassandraJob(CASSANDRA_HOSTS, cassandraSidecarResource, AlwaysBuggifyFactory.INSTANCE);
+        CASSANDRA_HOSTS.forEach(_ignore -> backgroundCassandraJob.run());
+        CASSANDRA_HOSTS.forEach(host -> verify(cassandraSidecarResource).compact(eq(host)));
+        CASSANDRA_HOSTS.forEach(host -> verify(cassandraSidecarResource).flush(eq(host)));
+    }
+}u}(jUF (3d12ec12a07e0b90193451a34a6dccfcfa6f8e76jF {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporterTest.javajF renamedjF KjF KjF K
jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF Xf  @@ -25,7 +25,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -37,15 +37,15 @@
 import java.util.Set;
 import org.junit.Test;
 
-public final class DurableWritesMetricInvariantReporterTest {
+public final class DurableWritesInvariantMetricReporterTest {
 
     private final TaggedMetricRegistry taggedMetricRegistry = new DefaultTaggedMetricRegistry();
     private final DurableWritesMetrics metrics = DurableWritesMetrics.of(taggedMetricRegistry);
 
     @Test
     public void runIncreasesMetricsIfViolationsFound() {
-        DurableWritesMetricInvariantReporter reporter =
-                new DurableWritesMetricInvariantReporter(WorkloadTestHelpers.WORKFLOW, metrics);
+        DurableWritesInvariantMetricReporter reporter =
+                new DurableWritesInvariantMetricReporter(WorkloadTestHelpers.WORKFLOW, metrics);
         AtlasDbTransactionStoreFactory factory = new AtlasDbTransactionStoreFactory(
                 TransactionManagers.createInMemory(Set.of()), Optional.of("keyspace"));
         TransactionStore store = factory.create(
@@ -60,7 +60,7 @@ public void runIncreasesMetricsIfViolationsFound() {
                         .build()));
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
                 .transactionStore(store)
-                .history(List.of(ImmutableWitnessedTransaction.builder()
+                .history(List.of(FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(juM {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporterTest.javau}(jUF (39cc7f77a28bd84fc271bbca23d8e9195abf6fd6jF matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantTest.javajF modifiedjF KjF KjF K
jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X
  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -59,12 +59,12 @@ public void before() {
     public void cellsExpectedToBeDeletedAreFound() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)
@@ -86,12 +86,12 @@ public void cellsExpectedToBeDeletedAreFound() {
     public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)u}(jUF (398677d5ff242f5cee92de9c2737a0843621c59djF watlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporterTest.javajF addedjF K3jF K jF K3jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X;  @@ -0,0 +1,51 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import java.util.List;
+import org.junit.Test;
+
+public class SerializableInvariantLogReporterTest {
+    @Test
+    public void invariantIsSerializable() {
+        assertThat(SerializableInvariantLogReporter.INSTANCE.invariant()).isEqualTo(SerializableInvariant.INSTANCE);
+    }
+
+    @Test
+    public void consumerDoesNotThrowWhenAcceptingViolations() {
+        assertThatCode(() -> SerializableInvariantLogReporter.INSTANCE
+                        .consumer()
+                        .accept(List.of(InvalidWitnessedTransaction.of(
+                                FullyWitnessedTransaction.builder()
+                                        .startTimestamp(1)
+                                        .build(),
+                                List.of()))))
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void consumerDoesNotThrowWhenAcceptingNoViolations() {
+        assertThatCode(() ->
+                        SerializableInvariantLogReporter.INSTANCE.consumer().accept(List.of()))
+                .doesNotThrowAnyException();
+    }
+}u}(jUF (0db0afc0570e8993b0ec99aac00c3f57657d6828jF latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javajF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF Xy  @@ -0,0 +1,158 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class SerializableInvariantTest {
+
+    @Mock
+    private ReadableTransactionStore readableTransactionStore;
+
+    @Test
+    public void handlesLocalWrites() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .read(5, 10)
+                .write(5, 10, 15)
+                .read(5, 10, 15)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void noInvalidTransactionsWhenSerializable() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .write(23, 1, 20)
+                .write(7, 15, 14)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(23, 1, 20)
+                .read(7, 15, 14)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void catchesWriteSkew() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(6, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(6, 10, 15)
+                .write(5, 10, 0)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(6, 10, 15)
+                .write(6, 10, 0)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);
+
+        assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
+
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(
+                        InvalidWitnessedSingleCellTransactionAction.class,
+                        invalidSingleCellWitnessedTransactionAction -> {
+                            assertThat(invalidSingleCellWitnessedTransactionAction.action())
+                                    .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
+                                        assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
+                                        assertThat(action.value()).contains(15);
+                                    });
+                            assertThat(invalidSingleCellWitnessedTransactionAction.mismatchedValue())
+                                    .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+                        });
+    }
+
+    @Test
+    public void handlesDeletes() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(6, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .delete(5, 10)
+                .read(5, 10)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+}u}(jUF (fb5813b8d5288d435a36c31b8acf757dd6e9083bjF hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javajF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X!  @@ -0,0 +1,170 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class SnapshotInvariantTest {
+    @Mock
+    private ReadableTransactionStore readableTransactionStore;
+
+    @Test
+    public void catchesWriteWriteConflict() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidTransaction.transaction().startTimestamp()).isEqualTo(5L);
+        assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
+
+        InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(InvalidWitnessedSingleCellTransactionAction.class, invalidSingleCellAction -> {
+                    assertThat(invalidSingleCellAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+                    assertThat(invalidSingleCellAction.mismatchedValue())
+                            .isEqualTo(MismatchedValue.of(
+                                    ValueAndMaybeTimestamp.of(WorkloadTestHelpers.VALUE_ONE, 1L),
+                                    ValueAndMaybeTimestamp.empty()));
+                });
+    }
+
+    @Test
+    public void catchesAbaWriteWriteConflictForDeletes() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .delete(5, 10)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidTransaction.transaction().startTimestamp()).isEqualTo(5L);
+        assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
+
+        InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(InvalidWitnessedSingleCellTransactionAction.class, invalidSingleCellAction -> {
+                    assertThat(invalidSingleCellAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+                    assertThat(invalidSingleCellAction.mismatchedValue())
+                            .isEqualTo(MismatchedValue.of(
+                                    ValueAndMaybeTimestamp.of(Optional.empty(), 1L), ValueAndMaybeTimestamp.empty()));
+                });
+    }
+
+    @Test
+    public void doesNotCatchWriteSkew() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .read(5, 10)
+                .write(6, 10, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void doesNotCatchReadOnlyTransactionAnomaly() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(11L)
+                .read(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .startTransaction(12L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(13L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void properlyReplaysReadsAndWrites() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .read(5, 10)
+                .endTransaction(15L)
+                .startTransaction(16L)
+                .read(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(17L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+}u}(jUF (536813aeb3973b4b9f9bd25d91bf425cf6efeb37jF iatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/VersionedTableViewTest.javajF addedjF KHjF K jF KHjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XU  @@ -0,0 +1,72 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.TreeMap;
+import org.junit.Test;
+
+public final class VersionedTableViewTest {
+    @Test
+    public void putStoresTable() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        tableView.put(1L, HashMap.of(10L, 20L));
+        assertThat(tableView.getLatestTableView().getSnapshot().toJavaMap())
+                .containsExactlyEntriesOf(java.util.Map.of(10L, 20L));
+    }
+
+    @Test
+    public void getLatestTableViewFetchesLargestVersion() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedLastView = HashMap.of(30L, 40L);
+        tableView.put(1L, HashMap.of(10L, 20L));
+        tableView.put(2L, HashMap.of(20L, 30L));
+        tableView.put(3L, HashMap.of(30L, 40L));
+        assertThat(tableView.getLatestTableView().getSnapshot()).isEqualTo(expectedLastView);
+    }
+
+    @Test
+    public void getViewFetchesViewBeforeTimestamp() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedView = HashMap.of(10L, 20L);
+        tableView.put(1L, expectedView);
+        tableView.put(3L, HashMap.of(20L, 30L));
+        assertThat(tableView.getView(2L).getSnapshot()).isEqualTo(expectedView);
+    }
+
+    @Test
+    public void getViewThrowsWhenFetchingViewForTimestampThatExists() {
+        Long timestamp = 1L;
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedView = HashMap.of(10L, 20L);
+        tableView.put(timestamp, expectedView);
+
+        TreeMap<Long, Map<Long, Long>> tableViews = new TreeMap<>();
+        tableViews.put(timestamp, tableView.getLatestTableView().getSnapshot());
+
+        assertThatLoggableExceptionThrownBy(() -> tableView.getView(1L).getSnapshot())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("It is expected when obtaining a view")
+                .hasExactlyArgs(SafeArg.of("startTimestamp", 1L), SafeArg.of("tableViews", tableViews));
+    }
+}u       }(jUF (6c7f1d05425e8759d68b71073e9525eaf8f11057jF uatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunnerTest.javajF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF Xb  @@ -0,0 +1,140 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.runner;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doAnswer;
+import static org.mockito.Mockito.doThrow;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.times;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
+
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.Future;
+import java.util.concurrent.atomic.AtomicBoolean;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class AntithesisWorkflowValidatorRunnerTest {
+
+    private static final ListeningExecutorService EXECUTOR_SERVICE =
+            MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(8));
+
+    @Mock
+    private Workflow workflow;
+
+    @Mock
+    private WorkflowHistory workflowHistory;
+
+    @Mock
+    private InvariantReporter<Void> invariantReporterOne;
+
+    @Mock
+    private InvariantReporter<Void> invariantReporterTwo;
+
+    private WorkflowAndInvariants<Workflow> workflowAndInvariants;
+
+    @Before
+    public void before() {
+        when(workflow.run()).thenReturn(workflowHistory);
+        workflowAndInvariants = WorkflowAndInvariants.of(workflow, invariantReporterOne, invariantReporterTwo);
+    }
+
+    @Test
+    public void runExecutesWorkflowAndInvokesInvariantReporters() {
+        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(workflowAndInvariants);
+        verify(workflow, times(1)).run();
+        verify(invariantReporterOne, times(1)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+
+    @Test
+    public void runValidatesAllInvariantsIgnoringExceptions() {
+        doThrow(new RuntimeException()).when(invariantReporterOne).report(any());
+        doThrow(new RuntimeException()).when(invariantReporterTwo).report(any());
+        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(workflowAndInvariants);
+        verify(workflow, times(1)).run();
+        verify(invariantReporterOne, times(1)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+
+    @Test
+    public void runExecutesMultipleWorkflowsAndWaitsForAllToFinishBeforeInvokingInvariantReporter() {
+        CountDownLatch slowWorkflowCanMakeProgress = new CountDownLatch(1);
+        AtomicBoolean slowWorkflowIsDone = new AtomicBoolean(false);
+
+        Workflow slowWorkflow = mock(Workflow.class);
+        when(slowWorkflow.run()).thenAnswer(_input -> {
+            try {
+                slowWorkflowCanMakeProgress.await();
+                slowWorkflowIsDone.set(true);
+                return workflowHistory;
+            } catch (InterruptedException e) {
+                Thread.currentThread().interrupt();
+                throw new RuntimeException(e);
+            }
+        });
+
+        doAnswer(_invocation -> {
+                    assertThat(slowWorkflowIsDone.get())
+                            .as("the invariant reporter ran, even though the slow workflow was not done yet")
+                            .isTrue();
+                    return null;
+                })
+                .when(invariantReporterOne)
+                .report(any());
+
+        ExecutorService backgroundExecutor = PTExecutors.newSingleThreadExecutor();
+        try {
+            Future<Void> validation = backgroundExecutor.submit(() -> {
+                WorkflowAndInvariants<Workflow> slowWorkflowAndInvariants =
+                        WorkflowAndInvariants.of(slowWorkflow, invariantReporterOne);
+                new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE)
+                        .run(slowWorkflowAndInvariants, workflowAndInvariants);
+                return null;
+            });
+
+            assertThat(validation).as("the slow workflow was not actually slow").isNotDone();
+
+            slowWorkflowCanMakeProgress.countDown();
+            Futures.getUnchecked(validation);
+        } finally {
+            backgroundExecutor.shutdown();
+        }
+
+        verify(workflow, times(1)).run();
+        verify(slowWorkflow, times(1)).run();
+        verify(invariantReporterOne, times(2)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+}u}(jUF (f9527e173d1407deb811ea00448699afa0a4afd1jF iatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/server/RunOnceWorkflowRunnerTest.javajF removedjF K jF K.jF K.jF https://github.com/palantir/atlasdb/blob/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.javajF https://github.com/palantir/atlasdb/raw/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.java?ref=7798b4ff8448588fecb6aa32284dd0ed8819f7d1jF X0  @@ -1,46 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.server;
-
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.when;
-
-import com.palantir.atlasdb.workload.invariant.InvariantReporter;
-import com.palantir.atlasdb.workload.workflow.RunOnceWorkflowRunner;
-import com.palantir.atlasdb.workload.workflow.Workflow;
-import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
-import java.util.List;
-import org.junit.Test;
-
-public class RunOnceWorkflowRunnerTest {
-    @Test
-    public void runExecutesWorkflowsAndInvokesInvariantReporter() {
-        Workflow exampleWorkflow = mock(Workflow.class);
-        WorkflowHistory workflowHistory = mock(WorkflowHistory.class);
-        when(exampleWorkflow.run()).thenReturn(workflowHistory);
-        InvariantReporter<Void> exampleInvariantReporterOne = mock(InvariantReporter.class);
-        InvariantReporter<Void> exampleInvariantReporterTwo = mock(InvariantReporter.class);
-        RunOnceWorkflowRunner.INSTANCE.run(
-                exampleWorkflow, List.of(exampleInvariantReporterOne, exampleInvariantReporterTwo));
-        verify(exampleWorkflow, times(1)).run();
-        verify(exampleInvariantReporterOne, times(1)).report(any());
-        verify(exampleInvariantReporterTwo, times(1)).report(any());
-    }
-}u}(jUF (b5153a38953e7417f0f9867686cd369359e28c9ejF patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javajF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X_  @@ -0,0 +1,145 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.NAMES_TO_REFERENCES_TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLES_TO_ATLAS_METADATA;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Consumer;
+import org.junit.Before;
+import org.junit.Test;
+
+public final class AtlasDbInteractiveTransactionTest {
+
+    private TransactionManager manager;
+
+    @Before
+    public void before() {
+        manager = TransactionManagers.createInMemory(Set.of());
+        manager.getKeyValueService().createTables(TABLES_TO_ATLAS_METADATA);
+    }
+
+    @Test
+    public void witnessRecordAllActions() {
+        assertThat(readWrite(transaction -> {
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
+                .containsExactly(
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void readHandlesEmptyAndPresentValue() {
+        assertThat(readWrite(transaction -> {
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
+                .containsExactly(
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+    }
+
+    @Test
+    public void readThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.read(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void writeThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(
+                transaction -> transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE));
+    }
+
+    @Test
+    public void deleteThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void readThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.read(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void writeThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE));
+    }
+
+    @Test
+    public void deleteThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        return manager.runTaskWithRetry(atlasTransaction -> {
+            AtlasDbInteractiveTransaction interactiveTransaction =
+                    new AtlasDbInteractiveTransaction(atlasTransaction, NAMES_TO_REFERENCES_TABLE_1);
+            transactionConsumer.accept(interactiveTransaction);
+            return interactiveTransaction.witness();
+        });
+    }
+
+    private void assertThatThrownWhenUnknownTableReferenced(
+            Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
+                    transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
+                    return null;
+                }))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Transaction action has unknown table.");
+    }
+
+    private void assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+            Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
+                    AtlasDbInteractiveTransaction transaction =
+                            new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
+                    transaction.witness();
+                    transactionConsumer.accept(transaction);
+                    return null;
+                }))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Transaction has already been witnessed and can no longer perform any actions.");
+    }
+}u}(jUF (5ec56f77b39005e45c63e6495f68b817646fecc6jF jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javajF modifiedjF KUjF KjF K\jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X^  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.workload.store;
 
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.INDEX_REFERENCE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLES_TO_ATLAS_METADATA;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1_INDEX_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
@@ -27,48 +28,57 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doAnswer;
+import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
 
 import com.google.common.collect.Iterables;
+import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
+import com.palantir.atlasdb.transaction.api.ConditionAwareTransactionTask;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.encoding.V1EncodingStrategy;
+import com.palantir.atlasdb.transaction.impl.TransactionConstants;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore.CommitTimestampProvider;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
+import java.util.function.Supplier;
 import java.util.stream.Collectors;
 import org.junit.Before;
 import org.junit.Test;
 
 public final class AtlasDbTransactionStoreTest {
 
+    private static final long START_TS = 1;
+    private static final long COMMIT_TS = 2;
+
     private TransactionManager manager;
 
     private AtlasDbTransactionStore store;
 
     @Before
     public void before() {
         manager = TransactionManagers.createInMemory(Set.of());
-        store = AtlasDbTransactionStore.create(
-                manager,
-                Map.of(
-                        TABLE_REFERENCE,
-                        AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
-                        INDEX_REFERENCE,
-                        AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE)));
+        store = AtlasDbTransactionStore.create(manager, TABLES_TO_ATLAS_METADATA);
     }
 
     @Test
@@ -145,4 +155,72 @@ public void readWriteHandlesReadOnlyTransaction() {
         assertThat(witnessedTransaction).isPresent();
         assertThat(witnessedTransaction.get().commitTimestamp()).isEmpty();
     }
+
+    @Test
+    public void abortedTransactionsReturnEmpty() {
+        TransactionManager onlyAbortsManager = spy(manager);
+        Transaction abortedTransaction = mock(Transaction.class);
+        when(abortedTransaction.isAborted()).thenReturn(true);
+        doReturn(abortedTransaction).when(onlyAbortsManager).runTaskWithConditionWithRetry(any(Supplier.class), any());
+        AtlasDbTransactionStore onlyAbortsStore =
+                AtlasDbTransactionStore.create(onlyAbortsManager, TABLES_TO_ATLAS_METADATA);
+        assertThat(onlyAbortsStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+                .isEmpty();
+    }
+
+    @Test
+    public void keyAlreadyExistExceptionResultsInMaybeWitnessedTransaction() {
+        WriteTransactionAction writeTransactionAction =
+                WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+        TransactionManager keyAlreadyExistsExceptionThrowingStore = spy(manager);
+        doAnswer(invocation -> {
+                    Supplier<CommitTimestampProvider> commitTimestampFetcher = invocation.getArgument(0);
+                    ConditionAwareTransactionTask<Void, CommitTimestampProvider, Exception> task =
+                            invocation.getArgument(1);
+                    return manager.runTaskWithConditionWithRetry(commitTimestampFetcher, (txn, condition) -> {
+                        manager.getKeyValueService()
+                                .putUnlessExists(
+                                        TransactionConstants.TRANSACTION_TABLE,
+                                        Map.of(
+                                                V1EncodingStrategy.INSTANCE.encodeStartTimestampAsCell(
+                                                        txn.getTimestamp()),
+                                                Ints.toByteArray(-1)));
+                        task.execute(txn, condition);
+                        return null;
+                    });
+                })
+                .when(keyAlreadyExistsExceptionThrowingStore)
+                .runTaskWithConditionWithRetry(any(Supplier.class), any());
+        AtlasDbTransactionStore onlyKeyAlreadyExistsThrowingStore =
+                AtlasDbTransactionStore.create(keyAlreadyExistsExceptionThrowingStore, TABLES_TO_ATLAS_METADATA);
+        assertThat(onlyKeyAlreadyExistsThrowingStore.readWrite(List.of(writeTransactionAction)))
+                .hasValueSatisfying(witnessedTransaction -> {
+                    assertThat(witnessedTransaction).isInstanceOf(MaybeWitnessedTransaction.class);
+                    assertThat(witnessedTransaction.actions()).containsExactly(writeTransactionAction.witness());
+                });
+    }
+
+    @Test
+    public void getCommitTimestampIsEmptyWhenMatchesStartTimestamp() {
+        CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();
+        commitTimestampProvider.throwIfConditionInvalid(START_TS);
+        assertThat(commitTimestampProvider.getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .isEmpty();
+    }
+
+    @Test
+    public void getCommitTimestampThrowsWhenNoTimestampSet() {
+        assertThatThrownBy(() -> new CommitTimestampProvider().getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining(
+                        "Timestamp has not been set, which means the pre commit condition has never been executed");
+    }
+
+    @Test
+    public void getCommitTimestampReturnsPresentWhenCommitAndStartTimestampMismatch() {
+        CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();
+        commitTimestampProvider.throwIfConditionInvalid(COMMIT_TS);
+        assertThat(commitTimestampProvider.getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .hasValue(COMMIT_TS);
+    }
 }u}(jUF (eb63f7e70bff1527685e728d66979d4f8f1a1f60jF tatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayerTest.javajF addedjF KJjF K jF KJjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,74 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.Tuple2;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class InMemoryTransactionReplayerTest {
+
+    private static final WitnessedWriteTransactionAction WRITE_TRANSACTION_ACTION_1 =
+            ImmutableWitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+    private static final WitnessedWriteTransactionAction WRITE_TRANSACTION_ACTION_2 =
+            ImmutableWitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO);
+
+    @Test
+    public void readActionsAreIgnored() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        inMemoryTransactionReplayer.visit(
+                ImmutableWitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+        assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
+    }
+
+    @Test
+    public void writesAreRecorded() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_1);
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_2);
+        assertThat(inMemoryTransactionReplayer.getValues())
+                .containsExactlyInAnyOrder(
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)),
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_TWO, Optional.of(VALUE_TWO)));
+    }
+
+    @Test
+    public void deletesAreRecorded() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_1);
+        inMemoryTransactionReplayer.visit(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
+        inMemoryTransactionReplayer.visit(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO));
+        assertThat(inMemoryTransactionReplayer.getValues())
+                .containsExactlyInAnyOrder(
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_ONE, Optional.empty()),
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_TWO, Optional.empty()));
+    }
+}u}(jUF (d2773b68972e300a262ebb1f8c2a24f280280cfdjF patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javajF modifiedjF K	jF KjF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -25,8 +25,9 @@
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.store.ValidationStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import java.util.List;
@@ -39,12 +40,12 @@ public final class InMemoryValidationStoreTest {
     @Test
     public void writeActionsPersistValues() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
@@ -60,13 +61,13 @@ public void writeActionsPersistValues() {
     @Test
     public void deleteActionsPutsEmptyOptionalForCell() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
@@ -79,17 +80,17 @@ public void deleteActionsPutsEmptyOptionalForCell() {
     @Test
     public void writesDeletesAreProcessedInOrder() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(5)
                         .commitTimestamp(6)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_TWO))u}(jUF (cad53b71091234e55f82b97b4b6e475eebb5559bjF qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javajF addedjF KyjF K jF KyjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,121 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.logsafe.Preconditions;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicLong;
+
+public final class WitnessedTransactionsBuilder {
+
+    private final List<WitnessedTransaction> witnessedTransactions = new ArrayList<>();
+
+    private final AtomicLong timestampCounter = new AtomicLong();
+    private final String table;
+
+    public WitnessedTransactionsBuilder(String table) {
+        this.table = table;
+    }
+
+    public WitnessedTransactionBuilder startTransaction(long startTimestamp) {
+        if (startTimestamp > timestampCounter.get()) {
+            timestampCounter.set(startTimestamp);
+        }
+        return new WitnessedTransactionBuilder(startTimestamp);
+    }
+
+    public WitnessedTransactionBuilder startTransaction() {
+        return new WitnessedTransactionBuilder(timestampCounter.incrementAndGet());
+    }
+
+    public List<WitnessedTransaction> build() {
+        return List.copyOf(witnessedTransactions);
+    }
+
+    public final class WitnessedTransactionBuilder {
+        private final List<WitnessedTransactionAction> actions = new ArrayList<>();
+
+        private boolean needsCommitTimestamp = false;
+
+        private final long startTimestamp;
+
+        public WitnessedTransactionBuilder(long startTimestamp) {
+            this.startTimestamp = startTimestamp;
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column, Optional<Integer> valueRead) {
+            actions.add(WitnessedReadTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), valueRead));
+            return this;
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column, Integer valueRead) {
+            return read(row, column, Optional.of(valueRead));
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column) {
+            return read(row, column, Optional.empty());
+        }
+
+        public WitnessedTransactionBuilder write(Integer row, Integer column, Integer value) {
+            actions.add(WitnessedWriteTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), value));
+            needsCommitTimestamp = true;
+            return this;
+        }
+
+        public WitnessedTransactionBuilder delete(Integer row, Integer column) {
+            actions.add(WitnessedDeleteTransactionAction.of(table, ImmutableWorkloadCell.of(row, column)));
+            needsCommitTimestamp = true;
+            return this;
+        }
+
+        public WitnessedTransactionsBuilder endTransaction() {
+            Optional<Long> commitTimestamp =
+                    needsCommitTimestamp ? Optional.of(timestampCounter.incrementAndGet()) : Optional.empty();
+            return endTransaction(commitTimestamp);
+        }
+
+        public WitnessedTransactionsBuilder endTransaction(Long commitTimestamp) {
+            return endTransaction(Optional.of(commitTimestamp));
+        }
+
+        public WitnessedTransactionsBuilder endTransaction(Optional<Long> commitTimestamp) {
+            if (needsCommitTimestamp) {
+                Preconditions.checkArgument(
+                        commitTimestamp.isPresent(),
+                        "Commit timestamp must be provided when the transaction has any writes or deletes.");
+                Preconditions.checkArgument(
+                        startTimestamp < commitTimestamp.get(),
+                        "Commit timestamp must be greater than the start timestamp.");
+            }
+            witnessedTransactions.add(FullyWitnessedTransaction.builder()
+                    .startTimestamp(startTimestamp)
+                    .actions(actions)
+                    .commitTimestamp(commitTimestamp)
+                    .build());
+            return WitnessedTransactionsBuilder.this;
+        }
+    }
+}u}(jUF (bdf9a77b3f524e363e5144842e79d33e09bcbe78jF hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javajF modifiedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X^  @@ -18,9 +18,13 @@
 
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.invariant.ValueAndMaybeTimestamp;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import java.util.Map;
 
 public final class WorkloadTestHelpers {
     public static final String TABLE_1 = "foo";
@@ -34,6 +38,16 @@ public final class WorkloadTestHelpers {
     public static final TableReference INDEX_REFERENCE =
             TableReference.create(TABLE_REFERENCE.getNamespace(), TABLE_1_INDEX_1);
 
+    public static final Map<String, TableReference> NAMES_TO_REFERENCES_TABLE_1 = Map.of(
+            TABLE_1, TABLE_REFERENCE,
+            TABLE_1_INDEX_1, INDEX_REFERENCE);
+
+    public static final Map<TableReference, byte[]> TABLES_TO_ATLAS_METADATA = Map.of(
+            TABLE_REFERENCE,
+            AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
+            INDEX_REFERENCE,
+            AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE_INDEX));
+
     public static final Namespace NAMESPACE = Namespace.create("workload");
     public static final WorkloadCell WORKLOAD_CELL_ONE = ImmutableWorkloadCell.of(50, 10);
     public static final WorkloadCell WORKLOAD_CELL_TWO = ImmutableWorkloadCell.of(1257, 521);
@@ -45,5 +59,9 @@ public final class WorkloadTestHelpers {
             TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_ONE);
     public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
             TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO);
+
+    public static final ValueAndMaybeTimestamp VALUE_ONE_AND_TIMESTAMP = ValueAndMaybeTimestamp.of(VALUE_ONE, 1L);
+
+    public static final ValueAndMaybeTimestamp VALUE_TWO_AND_TIMESTAMP = ValueAndMaybeTimestamp.of(VALUE_TWO, 1L);
     public static final String WORKFLOW = "example-workflow";
 }u}(jUF (d495a71c18ca7b125092f092c371e0a4a455ad73jF atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitorTest.javajF addedjF KAjF K jF KAjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javajF X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X
  @@ -0,0 +1,65 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyLong;
+import static org.mockito.Mockito.verifyNoInteractions;
+import static org.mockito.Mockito.when;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class OnlyCommittedWitnessedTransactionVisitorTest {
+
+    private static final FullyWitnessedTransaction READ_ONLY_WITNESSED_TRANSACTION =
+            FullyWitnessedTransaction.builder().startTimestamp(100L).build();
+
+    private static final MaybeWitnessedTransaction MAYBE_WITNESSED_TRANSACTION = MaybeWitnessedTransaction.builder()
+            .startTimestamp(100L)
+            .commitTimestamp(101L)
+            .build();
+
+    @Mock
+    private ReadOnlyTransactionStore transactionStore;
+
+    @Test
+    public void fullyCommittedTransactionsAreNeverChecked() {
+        assertThat(READ_ONLY_WITNESSED_TRANSACTION.accept(
+                        new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(READ_ONLY_WITNESSED_TRANSACTION);
+        verifyNoInteractions(transactionStore);
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsEmptyWhenNotCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(false);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .isEmpty();
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsFullyWitnessedWhenCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(true);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(MAYBE_WITNESSED_TRANSACTION.toFullyWitnessed());
+    }
+}u}(jUF (c5349645dc81bf0c8bc33bc720961e281110a64fjF xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionsTest.javajF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,131 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.List;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class WitnessedTransactionsTest {
+    @Mock
+    private ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    @Test
+    public void returnsUnderlyingWitnessedTransactions() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(twoToEight)))
+                .containsExactly(twoToEight);
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(readOnlyAtFive)))
+                .containsExactly(readOnlyAtFive);
+    }
+
+    @Test
+    public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
+                .containsExactly(fourToSix, threeToSeven, twoToEight);
+    }
+
+    @Test
+    public void sortsReadOnlyTransactionsByStartTimestamp() {
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
+                .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
+    }
+
+    @Test
+    public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        ImmutableList.of(
+                                twoToEight,
+                                readOnlyAtNine,
+                                fourToSix,
+                                readOnlyAtFive,
+                                readOnlyAtThree,
+                                readOnlyAtSeven)))
+                .containsExactly(
+                        readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
+    }
+
+    @Test
+    public void filterRemovesUncommittedTransactions() {
+        MaybeWitnessedTransaction committedMaybeWitnessedTransaction =
+                createMaybeWitnessedTransactionWithoutActions(1, 3, true);
+        MaybeWitnessedTransaction notCommittedTransaction = createMaybeWitnessedTransactionWithoutActions(2, 8, false);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        List.of(
+                                committedMaybeWitnessedTransaction,
+                                notCommittedTransaction,
+                                readOnlyAtFive,
+                                fourToSix)))
+                .containsExactly(committedMaybeWitnessedTransaction.toFullyWitnessed(), readOnlyAtFive, fourToSix);
+    }
+
+    private MaybeWitnessedTransaction createMaybeWitnessedTransactionWithoutActions(
+            long start, long commit, boolean committed) {
+        when(readOnlyTransactionStore.isCommitted(eq(start))).thenReturn(committed);
+        return MaybeWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+
+    private static FullyWitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
+        return FullyWitnessedTransaction.builder().startTimestamp(start).build();
+    }
+
+    private static FullyWitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+}u}(jUF (c661ec5533851b62afb963d1f472d967b8a67e83jF qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunnerTest.javajF modifiedjF KjF KjF K	jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -33,7 +33,7 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.List;
@@ -49,11 +49,12 @@
 public class ConcurrentTransactionRunnerTest {
     private static final int DEFAULT_TASK_MULTIPLICITY = 100;
 
-    private final KeyedTransactionTask task = mock(KeyedTransactionTask.class);
+    private final KeyedTransactionTask<TransactionStore> task = mock(KeyedTransactionTask.class);
     private final TransactionStore store = mock(TransactionStore.class);
     private final DeterministicScheduler scheduler = new DeterministicScheduler();
     private final ListeningExecutorService executorService = MoreExecutors.listeningDecorator(scheduler);
-    private final ConcurrentTransactionRunner runner = new ConcurrentTransactionRunner(store, executorService);
+    private final ConcurrentTransactionRunner<TransactionStore> runner =
+            new ConcurrentTransactionRunner<>(store, executorService);
 
     @Before
     public void setupTask() {
@@ -125,7 +126,7 @@ public void storePassedThroughToIndividualTasks() {
     }
 
     private static WitnessedTransaction createWitnessedTransactionWithStartTimestamp(int startTimestamp) {
-        return ImmutableWitnessedTransaction.builder()
+        return FullyWitnessedTransaction.builder()
                 .startTimestamp(startTimestamp)
                 .build();
     }u}(jUF (84316bacac0bff7ed7e0091b3a88e14381eec0f0jF eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javajF modifiedjF KjF KCjF KGjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X5  @@ -16,91 +16,39 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.anyInt;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
-import com.google.common.collect.ImmutableList;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.concurrent.ScheduledExecutorService;
 import org.junit.Test;
 
 public class DefaultWorkflowTest {
     private final TransactionStore store = mock(TransactionStore.class);
 
-    private final KeyedTransactionTask transactionTask = mock(KeyedTransactionTask.class);
+    private final KeyedTransactionTask<TransactionStore> transactionTask = mock(KeyedTransactionTask.class);
 
     private final ScheduledExecutorService scheduler = PTExecutors.newSingleThreadScheduledExecutor();
     private final ListeningExecutorService executionExecutor = MoreExecutors.listeningDecorator(scheduler);
 
+    private final DefaultWorkflow<TransactionStore> workflow =
+            DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
+
     @Test
     public void handlesExceptionsInUnderlyingTasks() {
         RuntimeException transactionException = new RuntimeException("boo");
         when(transactionTask.apply(eq(store), anyInt())).thenThrow(transactionException);
-
-        Workflow workflow =
-                DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
         assertThatThrownBy(workflow::run)
                 .hasMessage("Error when running workflow task")
                 .hasCause(transactionException);
     }
 
-    @Test
-    public void returnsUnderlyingWitnessedTransactions() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight)))
-                .containsExactly(twoToEight);
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(readOnlyAtFive)))
-                .containsExactly(readOnlyAtFive);
-    }
-
-    @Test
-    public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
-        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
-
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
-                .containsExactly(fourToSix, threeToSeven, twoToEight);
-    }
-
-    @Test
-    public void sortsReadOnlyTransactionsByStartTimestamp() {
-        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        WitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
-
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(
-                        ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
-                .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
-    }
-
-    @Test
-    public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
-
-        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        WitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
-
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(
-                        twoToEight, readOnlyAtNine, fourToSix, readOnlyAtFive, readOnlyAtThree, readOnlyAtSeven)))
-                .containsExactly(
-                        readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
-    }
-
     private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
         return new WorkflowConfiguration() {
             @Override
@@ -109,15 +57,4 @@ public int iterationCount() {
             }
         };
     }
-
-    private static WitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
-        return ImmutableWitnessedTransaction.builder().startTimestamp(start).build();
-    }
-
-    private static WitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
-        return ImmutableWitnessedTransaction.builder()
-                .startTimestamp(start)
-                .commitTimestamp(commit)
-                .build();
-    }
 }u}(jUF (aab6c8e21d5584a8291807921d8d032d4786559d      jF eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowsTest.javajF addedjF KdjF K jF KdjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF Xh  @@ -0,0 +1,100 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.security.SecureRandom;
+import java.util.Collection;
+import java.util.List;
+import java.util.stream.Collectors;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class RandomWorkflowsTest {
+    private static final String TABLE_NAME = "random.random";
+    private static final RandomWorkflowConfiguration CONFIGURATION = ImmutableRandomWorkflowConfiguration.builder()
+            .tableConfiguration(ImmutableTableConfiguration.builder()
+                    .tableName(TABLE_NAME)
+                    .isolationLevel(IsolationLevel.SERIALIZABLE)
+                    .build())
+            .iterationCount(1)
+            .build();
+
+    private final TransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+
+    @Mock
+    private SecureRandom random;
+
+    private Workflow workflow;
+
+    @Before
+    public void before() {
+        this.workflow = RandomWorkflows.create(
+                memoryStore,
+                CONFIGURATION,
+                MoreExecutors.listeningDecorator(PTExecutors.newSingleThreadExecutor()),
+                random);
+    }
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore())
+                .as("should return a read only transaction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void workflowRunsReadWritesDeletes() {
+        when(random.nextInt(anyInt())).thenReturn(1);
+        WorkflowHistory history = workflow.run();
+        List<WitnessedTransactionAction> actions = history.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(actions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+}u}(jUF (ce49e27d10355fb6f5b71d88a206899b12b7f25bjF xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javajF addedjF K}jF K jF K}jF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,125 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Sets;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Collection;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class SingleBusyCellReadNoTouchWorkflowsTest {
+    private static final String TABLE_NAME = "busy.readnotouch.cell";
+    private static final int ITERATION_COUNT = 1_000;
+    private static final SingleBusyCellReadNoTouchWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow workflow = SingleBusyCellReadNoTouchWorkflows.create(
+            transactionStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)),
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)));
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void transactionsDoNotConflictExcessively() {
+        WorkflowHistory workflowHistory = workflow.run();
+        assertThat(workflowHistory.history()).hasSizeBetween(ITERATION_COUNT / 2, ITERATION_COUNT);
+    }
+
+    @Test
+    public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).allSatisfy(action -> assertThat(action)
+                .isInstanceOfSatisfying(WitnessedSingleCellTransactionAction.class, singleCellAction -> {
+                    assertThat(singleCellAction.table()).isEqualTo(TABLE_NAME);
+                    assertThat(singleCellAction.cell()).isEqualTo(SingleBusyCellReadNoTouchWorkflows.BUSY_CELL);
+                }));
+    }
+
+    @Test
+    public void targetCellIsReadModifiedAndDeleted() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+
+    @Test
+    public void readTransactionsDontDoWrites() {
+        WorkflowHistory workflowHistory = workflow.run();
+
+        Set<WitnessedTransaction> witnessedTransactionsWithReads = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream().anyMatch(WitnessedReadTransactionAction.class::isInstance))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> witnessedTransactionsWithWritesOrDeletes = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream()
+                        .anyMatch(action -> action instanceof WitnessedWriteTransactionAction
+                                || action instanceof WitnessedDeleteTransactionAction))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> transactionsWithReadsAndWritesOrDeletes =
+                Sets.intersection(witnessedTransactionsWithReads, witnessedTransactionsWithWritesOrDeletes);
+
+        assertThat(transactionsWithReadsAndWritesOrDeletes).isEmpty();
+    }
+}u}(jUF (241e8471f3f2d7c765f6ff9e98e1c055938e3a50jF matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowsTest.javajF addedjF KgjF K jF KgjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,103 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Collection;
+import java.util.List;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class SingleBusyCellWorkflowsTest {
+    private static final String TABLE_NAME = "busy.cell";
+    private static final int ITERATION_COUNT = 1_000;
+    private static final SingleBusyCellWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow workflow = SingleBusyCellWorkflows.create(
+            transactionStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)),
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)));
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void transactionsDoNotConflictExcessively() {
+        WorkflowHistory workflowHistory = workflow.run();
+        assertThat(workflowHistory.history()).hasSizeBetween(ITERATION_COUNT / 2, ITERATION_COUNT);
+    }
+
+    @Test
+    public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedSingleCellTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .map(WitnessedSingleCellTransactionAction.class::cast)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.table().equals(TABLE_NAME));
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.cell().equals(SingleBusyCellWorkflows.BUSY_CELL));
+    }
+
+    @Test
+    public void targetCellIsReadModifiedAndDeleted() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+}u}(jUF (a982645e9685b7e2b328546bb927b2c415ad29bfjF latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javajF addedjF MWjF K jF MWjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XI  @@ -0,0 +1,343 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.invariant.CrossCellInconsistency;
+import com.palantir.atlasdb.workload.invariant.Invariant;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableFullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicReference;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class TransientRowsWorkflowsTest {
+    private static final int ITERATION_COUNT = 5;
+    private static final String TABLE_NAME = "transient.rows";
+    private static final TransientRowsWorkflowConfiguration CONFIGURATION =
+            ImmutableTransientRowsWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow transientRowsWorkflow = TransientRowsWorkflows.create(
+            transactionStore, CONFIGURATION, MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)));
+    private final Invariant<List<CrossCellInconsistency>> invariant =
+            TransientRowsWorkflows.getSummaryLogInvariantReporter(CONFIGURATION).invariant();
+
+    @Test
+    public void transactionStoreIsReadOnly() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void eachTransactionIsWitnessed() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        List<WitnessedTransaction> witnessedTransactions = history.history();
+        assertThat(witnessedTransactions).hasSize(ITERATION_COUNT);
+    }
+
+    @Test
+    public void firstTransactionWritesTwoCells() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        List<WitnessedTransaction> witnessedTransactions = history.history();
+        assertThat(witnessedTransactions.get(0).actions())
+                .hasSize(2)
+                .containsExactlyInAnyOrder(
+                        WitnessedWriteTransactionAction.of(
+                                TABLE_NAME,
+                                ImmutableWorkloadCell.of(0, TransientRowsWorkflows.COLUMN),
+                                TransientRowsWorkflows.VALUE),
+                        WitnessedWriteTransactionAction.of(
+                                TABLE_NAME,
+                                ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 0),
+                                TransientRowsWorkflows.VALUE));
+    }
+
+    @Test
+    public void subsequentTransactionsWriteThenReadThenDelete() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        List<WitnessedTransaction> witnessedTransactions = history.history();
+        for (int index = 1; index < ITERATION_COUNT; index++) {
+            assertThat(witnessedTransactions.get(index).actions()).hasSize(7).satisfies(actions -> {
+                assertThat(actions.subList(0, 2)).allMatch(WitnessedWriteTransactionAction.class::isInstance);
+                assertThat(actions.subList(2, 5)).allMatch(WitnessedReadTransactionAction.class::isInstance);
+                assertThat(actions.subList(5, 7)).allMatch(WitnessedDeleteTransactionAction.class::isInstance);
+            });
+        }
+    }
+
+    @Test
+    public void invariantDoesNotReportViolationsUnderNormalOperation() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        invariant.accept(transientRowsWorkflow.run(), reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        WorkflowHistory history = transientRowsWorkflow.run();
+        transactionStore.readWrite(txn -> txn.delete(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 1, 1)));
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .containsExactly(CrossCellInconsistency.builder()
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(ITERATION_COUNT - 1, TransientRowsWorkflows.COLUMN)),
+                                Optional.empty())
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(
+                                                TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 1)),
+                                Optional.of(0))
+                        .build());
+    }
+
+    @Test
+    public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        WorkflowHistory history = transientRowsWorkflow.run();
+        transactionStore.readWrite(txn -> txn.write(
+                TABLE_NAME,
+                ImmutableWorkloadCell.of(ITERATION_COUNT - 2, TransientRowsWorkflows.COLUMN),
+                TransientRowsWorkflows.VALUE));
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .containsExactly(CrossCellInconsistency.builder()
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(ITERATION_COUNT - 2, TransientRowsWorkflows.COLUMN)),
+                                Optional.of(0))
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(
+                                                TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 2)),
+                                Optional.empty())
+                        .build());
+    }
+
+    @Test
+    public void invariantReportsViolationsFromTransactionHistory() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        WorkflowHistory history = transientRowsWorkflow.run();
+        WorkflowHistory falseHistory = ImmutableWorkflowHistory.builder()
+                .transactionStore(history.transactionStore())
+                .history(history.history().stream()
+                        .map(witnessedTransaction -> ImmutableFullyWitnessedTransaction.builder()
+                                .actions(witnessedTransaction.actions().stream()
+                                        .map(TransientRowsWorkflowsTest::rewriteReadHistoryAsAlwaysInconsistent)
+                                        .collect(Collectors.toList()))
+                                .startTimestamp(witnessedTransaction.startTimestamp())
+                                .commitTimestamp(witnessedTransaction.commitTimestamp())
+                                .build())
+                        .collect(Collectors.toList()))
+                .build();
+        invariant.accept(falseHistory, reference::set);
+
+        assertThat(reference.get())
+                .hasSize(ITERATION_COUNT - 1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
+        WitnessedReadTransactionAction readWitness = WitnessedReadTransactionAction.of(
+                TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of the summary row")
+                .hasExactlyArgs(SafeArg.of("actions", ImmutableList.of(readWitness)));
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCorrespondingPrimaryRow() {
+        List<WitnessedTransactionAction> actions = ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of a corresponding normal row")
+                .hasExactlyArgs(SafeArg.of("actions", actions));
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothEmpty() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions = getReadWitnessesForSingleTransaction(
+                2, Optional.of(TransientRowsWorkflows.VALUE), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsPresentAndPrimaryIsAbsent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.of(TransientRowsWorkflows.VALUE), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsAbsentAndPrimaryIsPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    private ImmutableWorkflowHistory getWorkflowHistory(List<WitnessedTransactionAction> actions) {
+        return ImmutableWorkflowHistory.builder()
+                .transactionStore(transactionStore)
+                .history(ImmutableList.of(ImmutableFullyWitnessedTransaction.builder()
+                        .addAllActions(actions)
+                        .startTimestamp(0L)
+                        .commitTimestamp(1L)
+                        .build()))
+                .build();
+    }
+
+    private static List<WitnessedTransactionAction> getReadWitnessesForSingleTransaction(
+            int columnIndex, Optional<Integer> summaryValue, Optional<Integer> primaryValue) {
+        return ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, columnIndex),
+                        summaryValue),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(columnIndex, TransientRowsWorkflows.COLUMN),
+                        primaryValue));
+    }
+
+    private static void inconsistencyInvolvesPairOfPrimaryAndSummaryCells(CrossCellInconsistency inconsistency) {
+        Map<TableAndWorkloadCell, Optional<Integer>> readValues = inconsistency.inconsistentValues();
+        TableAndWorkloadCell summaryCell = readValues.keySet().stream()
+                .filter(tableAndWorkloadCell -> tableAndWorkloadCell.cell().key() == TransientRowsWorkflows.SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of the summary row", SafeArg.of("readValues", readValues)));
+        TableAndWorkloadCell primaryCell = getPrimaryCellForSummaryCell(summaryCell);
+
+        assertThat(readValues.keySet()).containsExactlyInAnyOrder(summaryCell, primaryCell);
+        assertThat(readValues.values())
+                .containsExactlyInAnyOrder(Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+    }
+
+    // This workflow uses a single table, where the summary row's columns correspond to rows with primary values.
+    private static TableAndWorkloadCell getPrimaryCellForSummaryCell(TableAndWorkloadCell summaryCell) {
+        return TableAndWorkloadCell.of(
+                summaryCell.tableName(),
+                ImmutableWorkloadCell.of(summaryCell.cell().column(), TransientRowsWorkflows.COLUMN));
+    }
+
+    private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(
+            WitnessedTransactionAction action) {
+        if (action instanceof WitnessedReadTransactionAction) {
+            WitnessedReadTransactionAction readAction = (WitnessedReadTransactionAction) action;
+            if (readAction.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
+                return WitnessedReadTransactionAction.of(readAction.table(), readAction.cell(), Optional.empty());
+            } else {
+                return WitnessedReadTransactionAction.of(
+                        readAction.table(), readAction.cell(), Optional.of(TransientRowsWorkflows.VALUE));
+            }
+        } else {
+            return action;
+        }
+    }
+
+    private static final class OnceSettableAtomicReference<T> {
+        private final AtomicReference<T> delegate;
+
+        private OnceSettableAtomicReference() {
+            this.delegate = new AtomicReference<>();
+        }
+
+        private T get() {
+            return Preconditions.checkNotNull(delegate.get(), "Underlying atomic reference has not been set!");
+        }
+
+        private void set(T value) {
+            Preconditions.checkNotNull(value, "Expecting values set to a once-settable atomic reference to be nonnull");
+            if (!delegate.compareAndSet(null, value)) {
+                throw new SafeIllegalStateException("Value already set");
+            }
+        }
+    }
+}u}(jUF (fe0267e6f697a967a6133f2554009d8a0be04d4cjF katlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtilsTest.javajF addedjF KRjF K jF KRjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X
  @@ -0,0 +1,82 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.Mockito.when;
+
+import java.security.SecureRandom;
+import java.util.Map;
+import java.util.Optional;
+import one.util.streamex.EntryStream;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class BankBalanceUtilsTest {
+
+    private static final Map<Integer, Optional<Integer>> VALID_BALANCES = Map.of(0, Optional.of(1), 1, Optional.of(1));
+
+    @Mock
+    private SecureRandom random;
+
+    @Test
+    public void validateOrGenerateBalancesReturnsEmptyWhenOnlyOneAccountMissing() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(Map.of(0, Optional.of(1), 1, Optional.empty()), 2, 1))
+                .isEmpty();
+    }
+
+    @Test
+    public void validateOrGenerateBalancesGeneratesWhenAllEmpty() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(Map.of(0, Optional.empty(), 1, Optional.empty()), 2, 1))
+                .contains(Map.of(0, 1, 1, 1));
+    }
+
+    @Test
+    public void validateOrGenerateBalancesEmptyWhenSumOfBalancesDoNotMatchTotal() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(VALID_BALANCES, 2, 3))
+                .isEmpty();
+    }
+
+    @Test
+    public void validateOrGenerateBalancesReturnsBalancesWhenTotalsMatch() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(VALID_BALANCES, 2, 1))
+                .contains(
+                        EntryStream.of(VALID_BALANCES).mapValues(Optional::get).toMap());
+    }
+
+    @Test
+    public void performTransfersReturnsBalancesWithCorrectSum() {
+        when(random.nextInt(anyInt())).thenReturn(0, 1);
+        Map<Integer, Integer> balances = Map.of(0, 1, 1, 1);
+        Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(Map.of(0, 0, 1, 2));
+        assertThat(newBalances.values().stream().mapToInt(Integer::intValue).sum())
+                .isEqualTo(2);
+    }
+
+    @Test
+    public void performsTransfersOnlyIfValueWouldNotBeBelowZero() {
+        when(random.nextInt(anyInt())).thenReturn(0, 1);
+        Map<Integer, Integer> balances = Map.of(0, 0, 1, 2);
+        Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(balances);
+    }
+}u}(jUF (fc68dc8666083ad7dff19f7cab2825390f18a38ajF oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowsTest.javajF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X  @@ -0,0 +1,129 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.atlasdb.workload.workflow.ImmutableTableConfiguration;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.Test;
+
+public final class BankBalanceWorkflowsTest {
+    private static final String TABLE_NAME = "bank.bank";
+    private static final BankBalanceWorkflowConfiguration CONFIGURATION =
+            ImmutableBankBalanceWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SNAPSHOT)
+                            .build())
+                    .iterationCount(1)
+                    .build();
+
+    private final AtomicBoolean skipRunning = new AtomicBoolean();
+
+    private final InteractiveTransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SNAPSHOT)));
+
+    private final Workflow workflow = BankBalanceWorkflows.create(
+            memoryStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)),
+            skipRunning);
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore())
+                .as("should return a read only transaction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void bankWorkflowContainsInitialReadsForBalances() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.numberOfAccounts())
+                .boxed()
+                .map(index -> WitnessedReadTransactionAction.of(
+                        TABLE_NAME, BankBalanceWorkflows.getCellForAccount(index), Optional.empty()))
+                .collect(Collectors.toList());
+        assertThat(actions).containsAll(initialReadActions);
+    }
+
+    @Test
+    public void bankWorkflowContainsInitialWritesForBalances() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WorkloadCell> actualWrittenCells = actions.stream()
+                .filter(WitnessedWriteTransactionAction.class::isInstance)
+                .map(WitnessedWriteTransactionAction.class::cast)
+                .map(WitnessedWriteTransactionAction::cell)
+                .collect(Collectors.toList());
+
+        List<WorkloadCell> expectedWrittenCells = IntStream.range(0, CONFIGURATION.numberOfAccounts())
+                .boxed()
+                .map(BankBalanceWorkflows::getCellForAccount)
+                .collect(Collectors.toList());
+
+        assertThat(actualWrittenCells).containsAll(expectedWrittenCells);
+    }
+
+    @Test
+    public void bankWorkflowSetsSkipRunningToTrueWhenInvalidBalanceSet() {
+        assertThat(skipRunning).isFalse();
+        memoryStore.readWrite(txn -> txn.write(TABLE_NAME, BankBalanceWorkflows.getCellForAccount(0), 1));
+        workflow.run();
+        assertThat(skipRunning).isTrue();
+    }
+
+    @Test
+    public void bankWorkflowDoesNotWitnessTransactionWhenSkipRunningSetToTrue() {
+        skipRunning.set(true);
+        assertThat(workflow.run().history()).isEmpty();
+    }
+}u}(jUF (7ae440730798415742814c38fb59d0707273036ejF datlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingGraphTest.javajF addedjF KjjF K jF KjjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF Xf  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.google.common.collect.ImmutableMap;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Map;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class RingGraphTest {
+
+    private static final Map<Integer, Integer> VALID_RING = ImmutableMap.of(0, 2, 1, 0, 2, 1);
+
+    @Test
+    public void fromPartialGeneratesRandomRingWhenAllKeysEmpty() {
+        Map<Integer, Optional<Integer>> emptyEdges = ImmutableMap.of(1, Optional.empty(), 2, Optional.empty());
+        assertThatCode(() -> RingGraph.fromPartial(emptyEdges)).doesNotThrowAnyException();
+    }
+
+    @Test
+    public void fromPartialThrowsWhenSomeEntriesAreEmpty() {
+        Map<Integer, Optional<Integer>> partiallyEmptyRing = ImmutableMap.of(0, Optional.of(1), 1, Optional.empty());
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.fromPartial(partiallyEmptyRing))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Graph contains missing entries, thus cannot be made into a ring.")
+                .hasExactlyArgs(SafeArg.of("ring", partiallyEmptyRing));
+    }
+
+    @Test
+    public void fromThrowsMissingEntriesWhenNodeReferencedDoesNotExist() {
+        Map<Integer, Integer> missingNodesRing = ImmutableMap.of(0, 2, 1, 0);
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(missingNodesRing))
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.MISSING_ENTRIES),
+                        SafeArg.of("ring", missingNodesRing));
+    }
+
+    @Test
+    public void fromThrowsCycleExceptionWhenUnableToReachEveryNode() {
+        Map<Integer, Integer> incompleteRing = ImmutableMap.of(0, 1, 1, 1, 2, 0);
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(incompleteRing))
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.EARLY_CYCLE),
+                        SafeArg.of("ring", incompleteRing));
+    }
+
+    @Test
+    public void fromThrowsCycleExceptionWhenEntryNodeNotRevisited() {
+        Map<Integer, Integer> incompleteRing = ImmutableMap.of(0, 1, 1, 1);
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(incompleteRing))
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.EARLY_CYCLE),
+                        SafeArg.of("ring", incompleteRing));
+    }
+
+    @Test
+    public void generateNewRingCreatesDifferentRing() {
+        RingGraph ringGraph = RingGraph.create(8);
+        boolean uniqueAtLeastOnce = false;
+        for (int iteration = 0; iteration < 10; iteration++) {
+            if (!ringGraph.generateNewRing().asMap().equals(ringGraph.asMap())) {
+                uniqueAtLeastOnce = true;
+                break;
+            }
+        }
+        assertThat(uniqueAtLeastOnce)
+                .as("Check ring generation multiple times as we could randomly generate an identical ring")
+                .isTrue();
+    }
+
+    @Test
+    public void generateNewRingReturnsValidRing() {
+        RingGraph ring = RingGraph.create(8);
+        for (int count = 0; count < 1000; count++) {
+            assertThatCode(() -> RingGraph.from(ring.generateNewRing().asMap())).doesNotThrowAnyException();
+        }
+    }
+
+    @Test
+    public void asMapConvertsCorrectly() {
+        assertThat(RingGraph.from(VALID_RING).asMap()).containsExactlyInAnyOrderEntriesOf(VALID_RING);
+    }
+}u}(jUF (b76eb98bf9ca3cc3502b229247cd0eb65cd5a3cejF hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowsTest.javajF addedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javajF https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.java?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X"  @@ -0,0 +1,129 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.atlasdb.workload.workflow.ImmutableTableConfiguration;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.Test;
+
+public class RingWorkflowsTest {
+
+    private static final String TABLE_NAME = "ring.ring";
+    private static final RingWorkflowConfiguration CONFIGURATION = ImmutableRingWorkflowConfiguration.builder()
+            .tableConfiguration(ImmutableTableConfiguration.builder()
+                    .tableName(TABLE_NAME)
+                    .isolationLevel(IsolationLevel.SNAPSHOT)
+                    .build())
+            .iterationCount(1)
+            .build();
+
+    private final InteractiveTransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SNAPSHOT)));
+
+    private final AtomicBoolean skipRunning = new AtomicBoolean(false);
+
+    private final Workflow workflow = RingWorkflows.create(
+            memoryStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)),
+            skipRunning);
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore())
+                .as("should return a read only transaction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void ringWorkflowContainsInitialReadsForRing() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.ringSize())
+                .boxed()
+                .map(index ->
+                        WitnessedReadTransactionAction.of(TABLE_NAME, RingWorkflows.cell(index), Optional.empty()))
+                .collect(Collectors.toList());
+        assertThat(actions).containsAll(initialReadActions);
+    }
+
+    @Test
+    public void ringWorkflowContainsInitialWritesForRing() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WorkloadCell> actualWrittenCells = actions.stream()
+                .filter(WitnessedWriteTransactionAction.class::isInstance)
+                .map(WitnessedWriteTransactionAction.class::cast)
+                .map(WitnessedWriteTransactionAction::cell)
+                .collect(Collectors.toList());
+
+        List<WorkloadCell> expectedWrittenCells = IntStream.range(0, CONFIGURATION.ringSize())
+                .boxed()
+                .map(RingWorkflows::cell)
+                .collect(Collectors.toList());
+
+        assertThat(actualWrittenCells).containsAll(expectedWrittenCells);
+    }
+
+    @Test
+    public void ringWorkflowSetsSkipRunningToTrueWhenInvalidRingPresent() {
+        assertThat(skipRunning).isFalse();
+        memoryStore.readWrite(txn -> txn.write(TABLE_NAME, RingWorkflows.cell(0), 99));
+        workflow.run();
+        assertThat(skipRunning).isTrue();
+    }
+
+    @Test
+    public void ringWorkflowDoesNotWitnessTransactionWhenSkipRunningSetToTrue() {
+        skipRunning.set(true);
+        assertThat(workflow.run().history()).isEmpty();
+    }
+}u}(jUF (022221727d6f2d598a0016a225e75264c9780625jF build.gradlejF modifiedjF KjF KjF KjF ^https://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/build.gradlejF ]https://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/build.gradlejF phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=de0dabc1540a68e247bc016884c4e2681764f596jF XG  @@ -7,20 +7,20 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.0'
-        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.2.0'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.4'
+        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.3.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.38.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.39.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
-        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'
+        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
-        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'
+        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.3'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
         classpath 'gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1'
         classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'
@@ -113,8 +113,7 @@ allprojects {
                 'Slf4jLogsafeArgs',
                 'StaticAssignmentInConstructor',
                 'StrictUnusedVariable'
-        options.errorprone.error 'DefaultLocale',
-                'SafeLoggingPropagation'
+        options.errorprone.error 'SafeLoggingPropagation'
     }
 }
 u}(jUF (dc8ccab7fb0c3ad8d14f7566ab89d660c8508c47jF  changelog/0.835.0/pr-6498.v2.ymljF addedjF KjF K jF KjF vhttps://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/changelog%2F0.835.0%2Fpr-6498.v2.ymljF uhttps://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/changelog%2F0.835.0%2Fpr-6498.v2.ymljF https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.835.0%2Fpr-6498.v2.yml?ref=de0dabc1540a68e247bc016884c4e2681764f596jF @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Choose optimal IOT compression based on table params
+  links:
+  - https://github.com/palantir/atlasdb/pull/6498u}(jUF (fdaa0f14c0403bcf95c1cdd5c0f860c959c67c95jF  changelog/0.835.0/pr-6508.v2.ymljF addedjF KjF K jF KjF vhttps://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/changelog%2F0.835.0%2Fpr-6508.v2.ymljF uhttps://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/changelog%2F0.835.0%2Fpr-6508.v2.ymljF https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.835.0%2Fpr-6508.v2.yml?ref=de0dabc1540a68e247bc016884c4e2681764f596jF @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: DB queries to Oracle/Postgres now use bind variables for rownum/limit
+    terms.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6508u$     }(jUF (1d48df051a7627207eae8887272331c4921a8011jF  changelog/0.836.0/pr-6516.v2.ymljF addedjF KjF K jF KjF vhttps://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/changelog%2F0.836.0%2Fpr-6516.v2.ymljF uhttps://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/changelog%2F0.836.0%2Fpr-6516.v2.ymljF https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.836.0%2Fpr-6516.v2.yml?ref=de0dabc1540a68e247bc016884c4e2681764f596jF @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: AtlasDB no longer registers the `/sweep` endpoints.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6516u}(jUF (7cd0781ff20be0bdee6ed7080da226fe65bc85c7jF  changelog/0.837.0/pr-6527.v2.ymljF addedjF KjF K jF KjF vhttps://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/changelog%2F0.837.0%2Fpr-6527.v2.ymljF uhttps://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/changelog%2F0.837.0%2Fpr-6527.v2.ymljF https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.837.0%2Fpr-6527.v2.yml?ref=de0dabc1540a68e247bc016884c4e2681764f596jF @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Use debian images for workload-server and timelock-server for integration
+    tests
+  links:
+  - https://github.com/palantir/atlasdb/pull/6527u}(jUF (f78ad2562cc65a8da82f8d8fc92f20368d1a9981jF  changelog/0.838.0/pr-6518.v2.ymljF addedjF KjF K jF KjF vhttps://github.com/palantir/atlasdb/blob/de0dabc1540a68e247bc016884c4e2681764f596/changelog%2F0.838.0%2Fpr-6518.v2.ymljF uhttps://github.com/palantir/atlasdb/raw/de0dabc1540a68e247bc016884c4e2681764f596/changelog%2F0.838.0%2Fpr-6518.v2.ymljF https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.838.0%2Fpr-6518.v2.yml?ref=de0dabc1540a68e247bc016884c4e2681764f596jF X+  @@ -0,0 +1,7 @@
+type: improvement
+improvement:
+  description: We no longer use Jersey sub-resource locators for user-facing timestamp,
+    timestamp management and lock v1 endpoints (except for the asynchronous TimeLock
+    service).
+  links:
+  - https://github.com/palantir/atlasdb/pull/6518ueu(c06734f7e17f8cc5fd1695ee076ec78b82923ffb}(sha(c06734f7e17f8cc5fd1695ee076ec78b82923ffbnode_idEC_kwDOAjP5fdoAKGMwNjczNGY3ZTE3ZjhjYzVmZDE2OTVlZTA3NmVjNzhiODI5MjNmZmIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-24T22:08:53Zu	committer}(j4P 
Sam Kramerj6P skramer@palantir.comj8P 2023-05-24T22:08:53Zumessagewire up workflowtree}(j,P (5f326de6e6547f0753845e5cfd844e0feba14f9burl`https://api.github.com/repos/palantir/atlasdb/git/trees/5f326de6e6547f0753845e5cfd844e0feba14f9bujDP bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c06734f7e17f8cc5fd1695ee076ec78b82923ffb
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRuivUACgkQmPPOpKR4
XS2Hsgf/QRvQ8A/t4OiNoR+aW2jBV2Dn5vjzEvuJk+mM1FrjVwtwsyolRIOwSRkz
mZ/4Zsgky3cLbINGaRwI7H/75kaFBrQaPc1H3kSobo6LXxQHYed/GbtVAJPSIwFT
BnXug1roJcGy4z/MF797GIlV3cJT/qrcAFx1P70d1YsgBCW1crmyCKsn2hJJFk3L
zpDse4K1/ooG05ZflLi6swaD+Rt967R8JU/cJnd+KHCKs2qlaw+252WNSVGBvwSu
nJqP/dS6T+mnbxAQBvrt66j+O5aHa1+St9xGG1nqHb/9TixrrV8DxXnoGKS1y65R
MXHi0264ODc//arBJs/RTXcWIc5MGQ==
=/r4K
-----END PGP SIGNATURE-----payloadtree 5f326de6e6547f0753845e5cfd844e0feba14f9b
parent 5e0a72721550b0ab65bde6f2071fe846466d7474
author Sam Kramer <skramer@palantir.com> 1684966133 +0100
committer Sam Kramer <skramer@palantir.com> 1684966133 +0100

wire up workflow
uujDP ^https://api.github.com/repos/palantir/atlasdb/commits/c06734f7e17f8cc5fd1695ee076ec78b82923ffbhtml_urlShttps://github.com/palantir/atlasdb/commit/c06734f7e17f8cc5fd1695ee076ec78b82923ffbcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c06734f7e17f8cc5fd1695ee076ec78b82923ffb/commentsj2P }(login
Sam-KrameridJ^2_ j.P MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jDP 'https://api.github.com/users/Sam-KramerjRP https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj:P }(jWP 
Sam-KramerjYP J^2_ j.P MDQ6VXNlcjYyMzg4MTQ=j[P 3https://avatars.githubusercontent.com/u/6238814?v=4j]P h5jDP 'https://api.github.com/users/Sam-KramerjRP https://github.com/Sam-Kramerj`P 1https://api.github.com/users/Sam-Kramer/followersjbP >https://api.github.com/users/Sam-Kramer/following{/other_user}jdP 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jfP >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jhP 5https://api.github.com/users/Sam-Kramer/subscriptionsjjP ,https://api.github.com/users/Sam-Kramer/orgsjlP -https://api.github.com/users/Sam-Kramer/reposjnP 8https://api.github.com/users/Sam-Kramer/events{/privacy}jpP 7https://api.github.com/users/Sam-Kramer/received_eventsjrP UserjtP uparents]}(j,P (5e0a72721550b0ab65bde6f2071fe846466d7474jDP ^https://api.github.com/repos/palantir/atlasdb/commits/5e0a72721550b0ab65bde6f2071fe846466d7474jRP Shttps://github.com/palantir/atlasdb/commit/5e0a72721550b0ab65bde6f2071fe846466d7474uastats}(totalK/	additionsK.	deletionsKufiles](}(j,P (898801b6832e22982043b219a212d430aeab8498filenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedjP KjP KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/c06734f7e17f8cc5fd1695ee076ec78b82923ffb/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c06734f7e17f8cc5fd1695ee076ec78b82923ffb/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=c06734f7e17f8cc5fd1695ee076ec78b82923ffbpatchX  @@ -35,6 +35,8 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
@@ -136,6 +138,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().transientRowsConfig();
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
+        RandomWorkflowConfiguration randomWorkflowConfig =
+                configuration.install().randomConfig();
 
         waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
 
@@ -148,7 +152,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                         createTransientRowsWorkflowValidator(
                                 transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
                         createSingleBusyCellWorkflowValidator(
-                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()));
+                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
+                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -265,6 +270,25 @@ private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator
                 .build();
     }
 
+    private WorkflowAndInvariants<Workflow> createRandomWorkflow(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            RandomWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RandomWorkflows.class);
+        TransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(RandomWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        RandomWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
     @VisibleForTesting
     CountDownLatch workflowsRanLatch() {
         return workflowsRanLatch;u}(j,P (2149c559f2ddbce0c16f673f22bbf91c848f1afcjP atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javajP modifiedjP KjP K jP KjP https://github.com/palantir/atlasdb/blob/c06734f7e17f8cc5fd1695ee076ec78b82923ffb/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javajP https://github.com/palantir/atlasdb/raw/c06734f7e17f8cc5fd1695ee076ec78b82923ffb/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javajP https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=c06734f7e17f8cc5fd1695ee076ec78b82923ffbjP X  @@ -19,6 +19,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
@@ -39,5 +40,7 @@ public interface WorkloadServerInstallConfiguration {
 
     SingleBusyCellWorkflowConfiguration singleBusyCellConfig();
 
+    RandomWorkflowConfiguration randomConfig();
+
     boolean exitAfterRunning();
 }u}(j,P (aeb4451ed59b761bd57d4a70a89a0ff464a5defbjP Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymljP modifiedjP KjP K jP KjP https://github.com/palantir/atlasdb/blob/c06734f7e17f8cc5fd1695ee076ec78b82923ffb/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymljP https://github.com/palantir/atlasdb/raw/c06734f7e17f8cc5fd1695ee076ec78b82923ffb/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymljP https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=c06734f7e17f8cc5fd1695ee076ec78b82923ffbjP X5  @@ -29,4 +29,10 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  randomConfig:
+    tableConfiguration:
+      tableName: random-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
   exitAfterRunning: false
\ No newline at end of fileu}(j,P (d3c8029b336c5abb85238cca61be9878caa832a2jP Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymljP modifiedjP KjP K jP KjP https://github.com/palantir/atlasdb/blob/c06734f7e17f8cc5fd1695ee076ec78b82923ffb/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljP https://github.com/palantir/atlasdb/raw/c06734f7e17f8cc5fd1695ee076ec78b82923ffb/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljP https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=c06734f7e17f8cc5fd1695ee076ec78b82923ffbjP X  @@ -66,4 +66,10 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  randomConfig:
+    tableConfiguration:
+      tableName: random_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
   exitAfterRunning: trueu}(j,P (985ab37b6542d0c7e0018377feda83abe68d3804jP Aatlasdb-workload-server-distribution/var/conf/workload-server.ymljP modifiedjP KjP K jP KjP https://github.com/palantir/atlasdb/blob/c06734f7e17f8cc5fd1695ee076ec78b82923ffb/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljP https://github.com/palantir/atlasdb/raw/c06734f7e17f8cc5fd1695ee076ec78b82923ffb/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljP https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=c06734f7e17f8cc5fd1695ee076ec78b82923ffbjP X4  @@ -30,4 +30,10 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  randomConfig:
+    tableConfiguration:
+      tableName: random-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
   exitAfterRunning: true
\ No newline at end of fileueu(7798b4ff8448588fecb6aa32284dd0ed8819f7d1}(sha(7798b4ff8448588fecb6aa32284dd0ed8819f7d1node_idEC_kwDOAjP5fdoAKDc3OThiNGZmODQ0ODU4OGZlY2I2YWEzMjI4NGRkMGVkODgxOWY3ZDEcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-04T14:24:12Zu	committer}(jP 
Ahmed AlouanejP aalouane@palantir.comjP 2023-04-04T14:24:12Zumessagewrite lockstree}(jP (a8af001544f273f00212f384823b804240c24a87url`https://api.github.com/repos/palantir/atlasdb/git/trees/a8af001544f273f00212f384823b804240c24a87ujP bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7798b4ff8448588fecb6aa32284dd0ed8819f7d1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQsMwwACgkQPlMHVIT1
yhp9UQgAhI6cca7SCb8Kc/Zwashsx9JtaPqBgnGl9XGwkdG4av0VyxGXkGg0oNGK
BxlfaEPhBB/poKBLV7I1SzuTvdQ+dRKch2PvRBhfpuLAJRPSp32gQc5B7ymwbtq5
UczFzslpj2FdGhaxbFSXl7fY8rYq6NyVmNVq2r+h4VQA1y5n1srZyx6unjf/jlLU
DMYDvRF6sndXR6Ht9RkoJGIY/3XFrDVJuLsqOB2+zXx8MoYRpodnNyXf7jTdm0a8
YicJJjKaiUacNUnLYSmwR57oYNe34gQYwwzD1Ree3hBC2qDq3WvPRIlWBLl185Ez
B3Coe12EfkM0tVTM+NEr5yqXeYyp5w==
=IF3y
-----END PGP SIGNATURE-----payloadX  tree a8af001544f273f00212f384823b804240c24a87
parent 22a576599c6a371b0a1f2ff63627b0e12da32768
parent 037dd3c00910e8d68932e9274aa79dab0dce86ba
author Ahmed Alouane <aalouane@palantir.com> 1680618252 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1680618252 +0100

write locks
uujP ^https://api.github.com/repos/palantir/atlasdb/commits/7798b4ff8448588fecb6aa32284dd0ed8819f7d1html_urlShttps://github.com/palantir/atlasdb/commit/7798b4ff8448588fecb6aa32284dd0ed8819f7d1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/commentsjP }(loginergo14idJjP MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jP #https://api.github.com/users/ergo14jP https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujP }(jP ergo14jP JjP MDQ6VXNlcjMwOTAzNzM2jP 4https://avatars.githubusercontent.com/u/30903736?v=4jP h5jP #https://api.github.com/users/ergo14jP https://github.com/ergo14jP -https://api.github.com/users/ergo14/followersjP :https://api.github.com/users/ergo14/following{/other_user}jP 3https://api.github.com/users/ergo14/gists{/gist_id}jP :https://api.github.com/users/ergo14/starred{/owner}{/repo}jP 1https://api.github.com/users/ergo14/subscriptionsjQ (https://api.github.com/users/ergo14/orgsjQ )https://api.github.com/users/ergo14/reposjQ 4https://api.github.com/users/ergo14/events{/privacy}jQ 3https://api.github.com/users/ergo14/received_eventsj	Q UserjQ uparents](}(jP (22a576599c6a371b0a1f2ff63627b0e12da32768jP ^https://api.github.com/repos/palantir/atlasdb/commits/22a576599c6a371b0a1f2ff63627b0e12da32768jP Shttps://github.com/palantir/atlasdb/commit/22a576599c6a371b0a1f2ff63627b0e12da32768u}(jP (037dd3c00910e8d68932e9274aa79dab0dce86bajP ^https://api.github.com/repos/palantir/atlasdb/commits/037dd3c00910e8d68932e9274aa79dab0dce86bajP Shttps://github.com/palantir/atlasdb/commit/037dd3c00910e8d68932e9274aa79dab0dce86bauestats}(totalK	additionsK	deletionsKufiles](}(jP (b9dc830bb20b031d2b9e0db0007dbe449c528f7afilename.policy.ymlstatusmodifiedj)Q Kj*Q K changesKblob_url]https://github.com/palantir/atlasdb/blob/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/.policy.ymlraw_url\https://github.com/palantir/atlasdb/raw/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/.policy.ymlcontents_urlohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=7798b4ff8448588fecb6aa32284dd0ed8819f7d1patchX*  @@ -81,6 +81,7 @@ approval_rules:
           - "^versions.lock$"
           - "^internal/generated/.*"
           - "^internal/generated_src/.*"
+          - "^gradle-baseline-java/src/main/resources/checkstyle.version$"
       has_valid_signatures_by_keys:
         key_ids: ["C9AF124A484882E0"]
 u}(jP (ef0d73d69ab34f4fca46440223eb0e3c2aad0d01j/Q build.gradlej1Q modifiedj)Q Kj*Q Kj3Q Kj4Q ^https://github.com/palantir/atlasdb/blob/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/build.gradlej6Q ]https://github.com/palantir/atlasdb/raw/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/build.gradlej8Q phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=7798b4ff8448588fecb6aa32284dd0ed8819f7d1j:Q XX  @@ -7,14 +7,14 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.0.1'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.0'
         classpath 'com.netflix.nebula:nebula-publishing-plugin:20.2.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.37.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.38.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
-        classpath 'com.palantir.gradle.gitversion:gradle-git-version:2.0.0'
+        classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'u}(jP (10a7dc03f00b730e7ff1a4f61acbc6b16faf2711j/Q 
versions.lockj1Q modifiedj)Q Kj*Q Kj3Q Kj4Q _https://github.com/palantir/atlasdb/blob/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/versions.lockj6Q ^https://github.com/palantir/atlasdb/raw/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/versions.lockj8Q qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=7798b4ff8448588fecb6aa32284dd0ed8819f7d1j:Q XT  @@ -186,7 +186,7 @@ io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf
 io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
-io.undertow:undertow-core:2.2.24.Final (2 constraints: 301d2b06)
+io.undertow:undertow-core:2.2.24.Final (2 constraints: 321db506)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)u}(jP (db9b576d05a6e8a299e3bf1d7c1134e9812086d3j/Q versions.propsj1Q modifiedj)Q Kj*Q Kj3Q Kj4Q `https://github.com/palantir/atlasdb/blob/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/versions.propsj6Q _https://github.com/palantir/atlasdb/raw/7798b4ff8448588fecb6aa32284dd0ed8819f7d1/versions.propsj8Q rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=7798b4ff8448588fecb6aa32284dd0ed8819f7d1j:Q X'  @@ -46,7 +46,7 @@ commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
 io.netty:* = 4.1.90.Final
-io.undertow:* = 2.2.22.Final
+io.undertow:* = 2.2.24.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2ueu(f1bba94c8274f7f6320456eff60b71c6b9c3aa7a}(sha(f1bba94c8274f7f6320456eff60b71c6b9c3aa7anode_idEC_kwDOAjP5fdoAKGYxYmJhOTRjODI3NGY3ZjYzMjA0NTZlZmY2MGI3MWM2YjljM2FhN2Ecommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-03-09T17:52:34Zu	committer}(j^Q svc-autoreleasej`Q -pd-foundry-infrastructure-notify@palantir.comjbQ 2023-03-09T17:52:34ZumessageAutorelease 0.811.0

[skip ci]tree}(jVQ (c4d41bd02c996984615ae3422732a84199af93d1url`https://api.github.com/repos/palantir/atlasdb/git/trees/c4d41bd02c996984615ae3422732a84199af93d1ujnQ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f1bba94c8274f7f6320456eff60b71c6b9c3aa7a
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQKHOcACgkQhbrR8ip7mDDJ6AEA/3ai/IaBXgRM0Dh5EIPTb/gg
kavjpsIqg+VECmLCpLkA/3/e7EtLHmVsLIZ6PRPWogGkfH1Ws4N1iugEWfNr7UZX
=sJ0a
-----END PGP SIGNATURE-----
payloadX0  tree c4d41bd02c996984615ae3422732a84199af93d1
parent fc29518ef561cd0425a5d912a68ae8ef5602f195
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1678384354 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1678384354 +0000

Autorelease 0.811.0

[skip ci]uujnQ ^https://api.github.com/repos/palantir/atlasdb/commits/f1bba94c8274f7f6320456eff60b71c6b9c3aa7ahtml_urlShttps://github.com/palantir/atlasdb/commit/f1bba94c8274f7f6320456eff60b71c6b9c3aa7acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f1bba94c8274f7f6320456eff60b71c6b9c3aa7a/commentsj\Q }(loginsvc-autoreleaseidJ(jXQ MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5jnQ ,https://api.github.com/users/svc-autoreleasej|Q "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminujdQ }(jQ svc-autoreleasejQ J(jXQ MDQ6VXNlcjUxNzE4MzQ2jQ 4https://avatars.githubusercontent.com/u/51718346?v=4jQ h5jnQ ,https://api.github.com/users/svc-autoreleasej|Q "https://github.com/svc-autoreleasejQ 6https://api.github.com/users/svc-autorelease/followersjQ Chttps://api.github.com/users/svc-autorelease/following{/other_user}jQ <https://api.github.com/users/svc-autorelease/gists{/gist_id}jQ Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jQ :https://api.github.com/users/svc-autorelease/subscriptionsjQ 1https://api.github.com/users/svc-autorelease/orgsjQ 2https://api.github.com/users/svc-autorelease/reposjQ =https://api.github.com/users/svc-autorelease/events{/privacy}jQ <https://api.github.com/users/svc-autorelease/received_eventsjQ UserjQ uparents]}(jVQ (fc29518ef561cd0425a5d912a68ae8ef5602f195jnQ ^https://api.github.com/repos/palantir/atlasdb/commits/fc29518ef561cd0425a5d912a68ae8ef5602f195j|Q Shttps://github.com/palantir/atlasdb/commit/fc29518ef561cd0425a5d912a68ae8ef5602f195uastats}(totalK 	additionsK 	deletionsK ufiles]}(jVQ (85ba589854ac34ebd9c8c823c51cf5a3b31cf07dfilename changelog/0.811.0/pr-6459.v2.ymlstatusrenamedjQ K jQ K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/f1bba94c8274f7f6320456eff60b71c6b9c3aa7a/changelog%2F0.811.0%2Fpr-6459.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/f1bba94c8274f7f6320456eff60b71c6b9c3aa7a/changelog%2F0.811.0%2Fpr-6459.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.811.0%2Fpr-6459.v2.yml?ref=f1bba94c8274f7f6320456eff60b71c6b9c3aa7aprevious_filename$changelog/@unreleased/pr-6459.v2.ymluau(ffe84f3476768f6a46c6d1e11a5892a87762d513}(sha(ffe84f3476768f6a46c6d1e11a5892a87762d513node_idEC_kwDOAjP5fdoAKGZmZTg0ZjM0NzY3NjhmNmE0NmM2ZDFlMTFhNTg5MmE4Nzc2MmQ1MTMcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-29T14:33:22Zu	committer}(jQ 	Tom PapkejQ tpapke@palantir.comjQ 2023-06-30T09:42:03ZumessageXo  Pass the optional metadata down the call stack to lock events
Along the way, it is introspected and filtered (for any Map<LockDescriptor, ...> shaped data) according to the currently registered lock watches.

Added a new integration test for AsyncTimeLockService (no conjure involved yet!)

Modified tests for lock descriptor filtering to also test metadata filteringtree}(jQ (50af17cf546c8f507e97e650b843a486d9da69faurl`https://api.github.com/repos/palantir/atlasdb/git/trees/50af17cf546c8f507e97e650b843a486d9da69faujQ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ffe84f3476768f6a46c6d1e11a5892a87762d513
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSeo2sACgkQmF9s0kaF
Iw09Cgf9Gq04xbkUYidTuETF/+SA2c0hrLI296ADLF2yc3EBs0i+PWzSMhxxBtsE
ZbaQZneHfloxytJFx9mS4JQ8N7vD8/RLbtt1SldFXKVks8CrcWhYObAjDIevBF7F
ifCt07sJFkn+nPAcgpZOEpBkh1kVRnrl7s3yepNL4Bf2XJ6EGH+Hy+voWgZB2VMx
9+hqfjvf4ZVLOwPZkERV94C3bs7KWg9mllTFVb260Niz3hXh/z/i6yWQxEqOBuZ4
nJy7vTMK2qAvK9ORbnlcF/5HZ4pQP36oWqDbNOiPjGCoNExJXscoOofqMt2Hg4xd
mp8DrTOkgLhnDV8vmPhXlT0uS6GXAQ==
=OBfc
-----END PGP SIGNATURE-----payloadXB  tree 50af17cf546c8f507e97e650b843a486d9da69fa
parent cd8beea5cbaf2b96d1ba8cb220315faff96b510f
author Tom Papke <tpapke@palantir.com> 1688049202 +0100
committer Tom Papke <tpapke@palantir.com> 1688118123 +0100

Pass the optional metadata down the call stack to lock events
Along the way, it is introspected and filtered (for any Map<LockDescriptor, ...> shaped data) according to the currently registered lock watches.

Added a new integration test for AsyncTimeLockService (no conjure involved yet!)

Modified tests for lock descriptor filtering to also test metadata filtering
uujQ ^https://api.github.com/repos/palantir/atlasdb/commits/ffe84f3476768f6a46c6d1e11a5892a87762d513html_urlShttps://github.com/palantir/atlasdb/commit/ffe84f3476768f6a46c6d1e11a5892a87762d513comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ffe84f3476768f6a46c6d1e11a5892a87762d513/commentsjQ }(login	ToemmscheidJbojQ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jQ &https://api.github.com/users/ToemmschejQ https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujQ }(jQ 	ToemmschejQ JbojQ MDQ6VXNlcjQzNjc1NDkwjQ 4https://avatars.githubusercontent.com/u/43675490?v=4jQ h5jQ &https://api.github.com/users/ToemmschejQ https://github.com/ToemmschejR 0https://api.github.com/users/Toemmsche/followersjR =https://api.github.com/users/Toemmsche/following{/other_user}jR 6https://api.github.com/users/Toemmsche/gists{/gist_id}jR =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j	R 4https://api.github.com/users/Toemmsche/subscriptionsjR +https://api.github.com/users/Toemmsche/orgsj
R ,https://api.github.com/users/Toemmsche/reposjR 7https://api.github.com/users/Toemmsche/events{/privacy}jR 6https://api.github.com/users/Toemmsche/received_eventsjR UserjR uparents]}(jQ (cd8beea5cbaf2b96d1ba8cb220315faff96b510fjQ ^https://api.github.com/repos/palantir/atlasdb/commits/cd8beea5cbaf2b96d1ba8cb220315faff96b510fjQ Shttps://github.com/palantir/atlasdb/commit/cd8beea5cbaf2b96d1ba8cb220315faff96b510fuastats}(totalM	additionsM	deletionsK%ufiles](}(jQ (1f6e9d1cfd2b610c706b7a74bd68abe9b14e9b05filenameWtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/AsyncTimelockServiceImpl.javastatusmodifiedj/R Kj0R KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.java?ref=ffe84f3476768f6a46c6d1e11a5892a87762d513patchXV  @@ -48,6 +48,7 @@
 import com.palantir.lock.v2.TimestampAndPartition;
 import com.palantir.lock.v2.WaitForLocksRequest;
 import com.palantir.lock.v2.WaitForLocksResponse;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchStateUpdate;
 import com.palantir.lock.watch.LockWatchVersion;
 import com.palantir.timestamp.ManagedTimestampService;
@@ -101,7 +102,10 @@ public long getImmutableTimestamp() {
     @Override
     public ListenableFuture<LockResponseV2> lock(IdentifiedLockRequest request) {
         AsyncResult<Leased<LockToken>> result = lockService.lock(
-                request.getRequestId(), request.getLockDescriptors(), TimeLimit.of(request.getAcquireTimeoutMs()));
+                request.getRequestId(),
+                request.getLockDescriptors(),
+                TimeLimit.of(request.getAcquireTimeoutMs()),
+                request.getMetadata());
         lockLog.registerRequest(request, result);
         SettableFuture<LockResponseV2> response = SettableFuture.create();
         result.onComplete(() -> {
@@ -274,8 +278,9 @@ public <T> ValueAndLockWatchStateUpdate<T> runTask(Optional<LockWatchVersion> la
     }
 
     @Override
-    public void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token) {
-        lockService.getLockWatchingService().registerLock(locksTakenOut, token);
+    public void registerLock(
+            Set<LockDescriptor> locksTakenOut, LockToken token, Optional<LockRequestMetadata> metadata) {
+        lockService.getLockWatchingService().registerLock(locksTakenOut, token, metadata);
     }
 
     @Overrideu}(jQ (f944cc9641be648a44b7330a56b77121bbc8abf0j5R Ttimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/AsyncLockService.javaj7R modifiedj/R Kj0R Kj9R Kj:R https://github.com/palantir/atlasdb/blob/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javaj<R https://github.com/palantir/atlasdb/raw/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javaj>R https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.java?ref=ffe84f3476768f6a46c6d1e11a5892a87762d513j@R X  @@ -23,6 +23,7 @@
 import com.palantir.lock.v2.LeaderTime;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.v2.RefreshLockResponseV2;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.io.Closeable;
@@ -117,7 +118,16 @@ private void scheduleExpiredLockReaper() {
     }
 
     public AsyncResult<Leased<LockToken>> lock(UUID requestId, Set<LockDescriptor> lockDescriptors, TimeLimit timeout) {
-        return heldLocks.getExistingOrAcquire(requestId, () -> acquireLocks(requestId, lockDescriptors, timeout));
+        return lock(requestId, lockDescriptors, timeout, Optional.empty());
+    }
+
+    public AsyncResult<Leased<LockToken>> lock(
+            UUID requestId,
+            Set<LockDescriptor> lockDescriptors,
+            TimeLimit timeout,
+            Optional<LockRequestMetadata> metadata) {
+        return heldLocks.getExistingOrAcquire(
+                requestId, () -> acquireLocks(requestId, lockDescriptors, timeout, metadata));
     }
 
     public AsyncResult<Leased<LockToken>> lockImmutableTimestamp(UUID requestId, long timestamp) {
@@ -137,9 +147,12 @@ public Optional<Long> getImmutableTimestamp() {
     }
 
     private AsyncResult<HeldLocks> acquireLocks(
-            UUID requestId, Set<LockDescriptor> lockDescriptors, TimeLimit timeout) {
+            UUID requestId,
+            Set<LockDescriptor> lockDescriptors,
+            TimeLimit timeout,
+            Optional<LockRequestMetadata> metadata) {
         OrderedLocks orderedLocks = locks.getAll(lockDescriptors);
-        return lockAcquirer.acquireLocks(requestId, orderedLocks, timeout);
+        return lockAcquirer.acquireLocks(requestId, orderedLocks, timeout, metadata);
     }
 
     private AsyncResult<Void> awaitLocks(UUID requestId, Set<LockDescriptor> lockDescriptors, TimeLimit timeout) {u}(jQ (3c957b003aa7c8f4101a6b55616b54707ad01da5j5R Mtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/HeldLocks.javaj7R modifiedj/R Kj0R Kj9R Kj:R https://github.com/palantir/atlasdb/blob/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocks.javaj<R https://github.com/palantir/atlasdb/raw/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocks.javaj>R https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocks.java?ref=ffe84f3476768f6a46c6d1e11a5892a87762d513j@R X  @@ -21,7 +21,9 @@
 import com.palantir.common.time.NanoTime;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.LockRequestMetadata;
 import java.util.Collection;
+import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.function.Supplier;
@@ -60,18 +62,28 @@ public static HeldLocks create(
             UUID requestId,
             LeaderClock leaderClock,
             LockWatchingService lockWatchingService) {
+        return create(lockLog, acquiredLocks, requestId, leaderClock, lockWatchingService, Optional.empty());
+    }
+
+    public static HeldLocks create(
+            LockLog lockLog,
+            Collection<AsyncLock> acquiredLocks,
+            UUID requestId,
+            LeaderClock leaderClock,
+            LockWatchingService lockWatchingService,
+            Optional<LockRequestMetadata> metadata) {
         HeldLocks locks = new HeldLocks(
                 lockLog,
                 acquiredLocks,
                 requestId,
                 new LeaseExpirationTimer(() -> leaderClock.time().currentTime()),
                 lockWatchingService);
-        locks.registerLock();
+        locks.registerLock(metadata);
         return locks;
     }
 
-    private void registerLock() {
-        lockWatchingService.registerLock(descriptors.get(), token);
+    private void registerLock(Optional<LockRequestMetadata> metadata) {
+        lockWatchingService.registerLock(descriptors.get(), token, metadata);
     }
 
     /**u}(jQ (030591fe1a8a0d3b07402f1fac8d196fea900762j5R Ptimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/LockAcquirer.javaj7R modifiedj/R Kj0R Kj9R K	j:R https://github.com/palantir/atlasdb/blob/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FLockAcquirer.javaj<R https://github.com/palantir/atlasdb/raw/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FLockAcquirer.javaj>R https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FLockAcquirer.java?ref=ffe84f3476768f6a46c6d1e11a5892a87762d513j@R X0  @@ -17,9 +17,11 @@
 
 import com.google.common.base.Throwables;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingService;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.Optional;
 import java.util.UUID;
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.concurrent.TimeUnit;
@@ -46,9 +48,14 @@ public LockAcquirer(
     }
 
     public AsyncResult<HeldLocks> acquireLocks(UUID requestId, OrderedLocks locks, TimeLimit timeout) {
+        return acquireLocks(requestId, locks, timeout, Optional.empty());
+    }
+
+    public AsyncResult<HeldLocks> acquireLocks(
+            UUID requestId, OrderedLocks locks, TimeLimit timeout, Optional<LockRequestMetadata> metadata) {
         return new Acquisition(requestId, locks, timeout, lock -> lock.lock(requestId))
                 .execute()
-                .map(ignored -> HeldLocks.create(lockLog, locks.get(), requestId, leaderClock, lockWatcher));
+                .map(ignored -> HeldLocks.create(lockLog, locks.get(), requestId, leaderClock, lockWatcher, metadata));
     }
 
     public AsyncResult<Void> waitForLocks(UUID requestId, OrderedLocks locks, TimeLimit timeout) {u}(jQ (e57475bea484a97604fa999cf8ab4593fb78af9bj5R Vtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLog.javaj7R modifiedj/R Kj0R Kj9R Kj:R https://github.com/palantir/atlasdb/blob/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLog.javaj<R https://github.com/palantir/atlasdb/raw/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLog.javaj>R https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLog.java?ref=ffe84f3476768f6a46c6d1e11a5892a87762d513j@R X[  @@ -18,6 +18,7 @@
 
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchStateUpdate;
 import com.palantir.lock.watch.LockWatchVersion;
 import java.util.Optional;
@@ -29,7 +30,11 @@ public interface LockEventLog {
 
     <T> ValueAndLockWatchStateUpdate<T> runTask(Optional<LockWatchVersion> lastKnownVersion, Supplier<T> task);
 
-    void logLock(Set<LockDescriptor> locksTakenOut, LockToken lockToken);
+    default void logLock(Set<LockDescriptor> locksTakenOut, LockToken lockToken) {
+        logLock(locksTakenOut, lockToken, Optional.empty());
+    }
+
+    void logLock(Set<LockDescriptor> locksTakenOut, LockToken lockToken, Optional<LockRequestMetadata> metadata);
 
     void logUnlock(Set<LockDescriptor> locksUnlocked);
 u}(jQ (29d09ec24e5cd6807891a4f9fff38d0d568a681ej5R Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImpl.javaj7R modifiedj/R Kj0R Kj9R Kj:R https://github.com/palantir/atlasdb/blob/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javaj<R https://github.com/palantir/atlasdb/raw/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javaj>R https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.java?ref=ffe84f3476768f6a46c6d1e11a5892a87762d513j@R X  @@ -22,6 +22,7 @@
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchReferences.LockWatchReference;
 import com.palantir.lock.watch.LockWatchStateUpdate;
@@ -61,8 +62,9 @@ public synchronized <T> ValueAndLockWatchStateUpdate<T> runTask(
     }
 
     @Override
-    public synchronized void logLock(Set<LockDescriptor> locksTakenOut, LockToken lockToken) {
-        slidingWindow.add(LockEvent.builder(locksTakenOut, lockToken));
+    public synchronized void logLock(
+            Set<LockDescriptor> locksTakenOut, LockToken lockToken, Optional<LockRequestMetadata> metadata) {
+        slidingWindow.add(LockEvent.builder(locksTakenOut, lockToken, metadata));
     }
 
     @Overrideu}(jQ (d34c1794b33ad9b9490743a42f40f6bfe58edd2fj5R ]timelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingService.javaj7R modifiedj/R Kj0R Kj9R Kj:R https://github.com/palantir/atlasdb/blob/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingService.javaj<R https://github.com/palantir/atlasdb/raw/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingService.javaj>R https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingService.java?ref=ffe84f3476768f6a46c6d1e11a5892a87762d513j@R X  @@ -19,6 +19,7 @@
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.client.LockWatchStarter;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchStateUpdate;
 import com.palantir.lock.watch.LockWatchVersion;
 import java.util.Optional;
@@ -30,7 +31,11 @@ public interface LockWatchingService extends LockWatchStarter {
 
     <T> ValueAndLockWatchStateUpdate<T> runTask(Optional<LockWatchVersion> lastKnownVersion, Supplier<T> task);
 
-    void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token);
+    default void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token) {
+        registerLock(locksTakenOut, token, Optional.empty());
+    }
+
+    void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token, Optional<LockRequestMetadata> metadata);
 
     void registerUnlock(Set<LockDescriptor> locksUnlocked);
 }u}(jQ (1018240bd5628230ab7c91432c6308f47697fc5dj5R atimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javaj7R modifiedj/R K$j0R Kj9R K*j:R https://github.com/palantir/atlasdb/blob/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj<R https://github.com/palantir/atlasdb/raw/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj>R https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=ffe84f3476768f6a46c6d1e11a5892a87762d513j@R Xp  @@ -22,9 +22,13 @@
 import com.google.common.collect.TreeRangeSet;
 import com.palantir.atlasdb.timelock.api.LockWatchRequest;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LeadershipId;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.ImmutableLockRequestMetadata;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchReferences;
 import com.palantir.lock.watch.LockWatchReferences.LockWatchReference;
 import com.palantir.lock.watch.LockWatchStateUpdate;
@@ -34,12 +38,14 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.HashSet;
+import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.concurrent.locks.ReadWriteLock;
 import java.util.concurrent.locks.ReentrantReadWriteLock;
+import java.util.function.BiConsumer;
 import java.util.function.Consumer;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
@@ -104,8 +110,12 @@ public <T> ValueAndLockWatchStateUpdate<T> runTask(Optional<LockWatchVersion> la
     }
 
     @Override
-    public void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token) {
-        runIfDescriptorsMatchLockWatches(locksTakenOut, filteredLocks -> lockEventLog.logLock(filteredLocks, token));
+    public void registerLock(
+            Set<LockDescriptor> locksTakenOut, LockToken token, Optional<LockRequestMetadata> metadata) {
+        runIfDescriptorsMatchLockWatchesWithMetadata(
+                locksTakenOut,
+                metadata,
+                (filteredLocks, filteredMetadata) -> lockEventLog.logLock(filteredLocks, token, filteredMetadata));
     }
 
     @Override
@@ -147,13 +157,33 @@ private void logLockWatchEvent(LockWatches newWatches) {
 
     private void runIfDescriptorsMatchLockWatches(
             Set<LockDescriptor> unfiltered, Consumer<Set<LockDescriptor>> consumer) {
+        runIfDescriptorsMatchLockWatchesWithMetadata(
+                unfiltered, Optional.empty(), (lockDescriptors, unused) -> consumer.accept(lockDescriptors));
+    }
+
+    private void runIfDescriptorsMatchLockWatchesWithMetadata(
+            Set<LockDescriptor> unfilteredLocks,
+            Optional<LockRequestMetadata> unfilteredMetadata,
+            BiConsumer<Set<LockDescriptor>, Optional<LockRequestMetadata>> biConsumer) {
         watchesLock.readLock().lock();
         try {
             RangeSet<LockDescriptor> ranges = watches.get().ranges();
-            Set<LockDescriptor> filtered =
-                    unfiltered.stream().filter(ranges::contains).collect(Collectors.toSet());
-            if (!filtered.isEmpty()) {
-                consumer.accept(filtered);
+            Set<LockDescriptor> filteredLocks =
+                    unfilteredLocks.stream().filter(ranges::contains).collect(Collectors.toSet());
+            // We would expect metadata to be absent in ~1/2 of the cases, so this ternary will save us some overhead
+            Optional<LockRequestMetadata> filteredMetadata = unfilteredMetadata
+                    .map(LockRequestMetadata::lockDescriptorToChangeMetadata)
+                    .map(unfilteredLockMetadata -> {
+                        Map<LockDescriptor, ChangeMetadata> filteredLockMetadata = KeyedStream.ofEntries(
+                                        unfilteredLockMetadata.entrySet().stream())
+                                .filterKeys(ranges::contains)
+                                .collectToMap();
+                        return ImmutableLockRequestMetadata.builder()
+                                .lockDescriptorToChangeMetadata(filteredLockMetadata)
+                                .build();
+                    });
+            if (!filteredLocks.isEmpty()) {
+                biConsumer.accept(filteredLocks, filteredMetadata);
             }
         } finally {
             watchesLock.readLock().unlock();u}(jQ (ea83c78436a9620fe019a085e61e94a1cd7b5fc7j5R etimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImplTest.javaj7R modifiedj/R K!j0R Kj9R K0j:R https://github.com/palantir/atlasdb/blob/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaj<R https://github.com/palantir/atlasdb/raw/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaj>R https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.java?ref=ffe84f3476768f6a46c6d1e11a5892a87762d513j@R X	   @@ -33,11 +33,14 @@
 import com.palantir.atlasdb.timelock.lock.ExclusiveLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocks;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.AtlasCellLockDescriptor;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.ChangeMetadata;
 import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
 import com.palantir.lock.watch.LockWatchReferences.LockWatchReference;
@@ -69,6 +72,7 @@ public class LockWatchingServiceImplTest {
     private static final LockDescriptor ROW_DESCRIPTOR = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), ROW);
     private static final AsyncLock LOCK = new ExclusiveLock(ROW_DESCRIPTOR);
     private static final AsyncLock LOCK_2 = new ExclusiveLock(descriptorForOtherTable());
+    private static final ChangeMetadata DUMMY_METADATA = ChangeMetadata.unchanged();
 
     private final HeldLocksCollection locks = mock(HeldLocksCollection.class);
     private final LockWatchingService lockWatcher = new LockWatchingServiceImpl(LOG_ID, locks);
@@ -104,7 +108,7 @@ public void runTaskRunsExclusivelyOnLockLog() throws InterruptedException {
         Set<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR);
 
         Future<?> registerLock = executor.submit(() -> {
-            lockWatcher.registerLock(locks, TOKEN);
+            lockWatcher.registerLock(locks, TOKEN, Optional.empty());
             otherTaskCompleted.countDown();
             return null;
         });
@@ -148,10 +152,11 @@ public void watchExactRowLockWatchLogsHeldLocksInRange() {
         lockWatcher.startWatching(request);
 
         Set<LockDescriptor> cellDescriptor = ImmutableSet.of(CELL_DESCRIPTOR);
-        lockWatcher.registerLock(cellDescriptor, TOKEN);
+        lockWatcher.registerLock(cellDescriptor, TOKEN, attachMetadataToLocks(cellDescriptor));
 
         assertLoggedEvents(ImmutableList.of(
-                createdEvent(request.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)), lockEvent(cellDescriptor)));
+                createdEvent(request.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
+                lockEvent(cellDescriptor, attachMetadataToLocks(cellDescriptor))));
     }
 
     @Test
@@ -232,10 +237,12 @@ public void exactCellWatchMatchesExactDescriptorOnly() {
         lockWatcher.startWatching(request);
 
         ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, cellSuffixDescriptor);
-        lockWatcher.registerLock(locks, TOKEN);
+        lockWatcher.registerLock(locks, TOKEN, attachMetadataToLocks(locks));
 
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(CELL_DESCRIPTOR);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
-                createdEvent(request.getReferences(), ImmutableSet.of()), lockEvent(ImmutableSet.of(CELL_DESCRIPTOR)));
+                createdEvent(request.getReferences(), ImmutableSet.of()),
+                lockEvent(expectedFilteredLocks, attachMetadataToLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -246,11 +253,12 @@ public void exactRowWatchMatchesCellAndRowDescriptors() {
         lockWatcher.startWatching(rowRequest);
 
         ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR);
-        lockWatcher.registerLock(locks, TOKEN);
+        lockWatcher.registerLock(locks, TOKEN, attachMetadataToLocks(locks));
 
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(rowRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
-                lockEvent(ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR)));
+                lockEvent(expectedFilteredLocks, attachMetadataToLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -263,11 +271,12 @@ public void rowPrefixWatchMatchesSuffixes() {
         lockWatcher.startWatching(prefixRequest);
 
         ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR, notPrefixDescriptor);
-        lockWatcher.registerLock(locks, TOKEN);
+        lockWatcher.registerLock(locks, TOKEN, attachMetadataToLocks(locks));
 
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(prefixRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
-                lockEvent(ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR)));
+                lockEvent(expectedFilteredLocks, attachMetadataToLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -289,11 +298,13 @@ public void rowRangeWatchTest() {
 
         ImmutableSet<LockDescriptor> locks =
                 ImmutableSet.of(cellInRange, cellOutOfRange, rowInRange, rowInRange2, rowOutOfRange);
-        lockWatcher.registerLock(locks, TOKEN);
 
+        lockWatcher.registerLock(locks, TOKEN, attachMetadataToLocks(locks));
+
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(cellInRange, rowInRange, rowInRange2);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(rangeRequest.getReferences(), ImmutableSet.of()),
-                lockEvent(ImmutableSet.of(cellInRange, rowInRange, rowInRange2)));
+                lockEvent(expectedFilteredLocks, attachMetadataToLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -308,11 +319,13 @@ public void entireTableWatchTest() {
 
         ImmutableSet<LockDescriptor> locks =
                 ImmutableSet.of(CELL_DESCRIPTOR, cellOutOfRange, rowInRange, rowOutOfRange);
-        lockWatcher.registerLock(locks, TOKEN);
+        lockWatcher.registerLock(locks, TOKEN, attachMetadataToLocks(locks));
 
+        ImmutableSet<LockDescriptor> expectedFilteredLocks =
+                ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR, rowInRange);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(tableRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
-                lockEvent(ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR, rowInRange)));
+                lockEvent(expectedFilteredLocks, attachMetadataToLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -333,8 +346,8 @@ private LockWatchEvent createdEvent(Set<LockWatchReference> references, Set<Lock
         return LockWatchCreatedEvent.builder(references, descriptors).build(sequenceCounter++);
     }
 
-    private LockWatchEvent lockEvent(Set<LockDescriptor> lockDescriptors) {
-        return LockEvent.builder(lockDescriptors, TOKEN).build(sequenceCounter++);
+    private LockWatchEvent lockEvent(Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {
+        return LockEvent.builder(lockDescriptors, TOKEN, metadata).build(sequenceCounter++);
     }
 
     private LockWatchEvent unlockEvent(Set<LockDescriptor> lockDescriptors) {
@@ -357,6 +370,11 @@ private static LockDescriptor descriptorForOtherTable() {
         return AtlasRowLockDescriptor.of(TABLE_2.getQualifiedName(), ROW);
     }
 
+    private static Optional<LockRequestMetadata> attachMetadataToLocks(Set<LockDescriptor> lockDescriptors) {
+        return Optional.of(LockRequestMetadata.of(
+                KeyedStream.of(lockDescriptors).map(unused -> DUMMY_METADATA).collectToMap()));
+    }
+
     private void assertLoggedEvents(List<LockWatchEvent> expectedEvents) {
         LockWatchStateUpdate update = lockWatcher.getWatchStateUpdate(Optional.of(LockWatchVersion.of(LOG_ID, -1L)));
         List<LockWatchEvent> events = UpdateVisitors.assertSuccess(update).events();u}(jQ (bd1435bfa1aecb5342276b650663f6ef14533041j5R qtimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataIntegrationTest.javaj7R addedj/R Mj0R K j9R Mj:R https://github.com/palantir/atlasdb/blob/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataIntegrationTest.javaj<R https://github.com/palantir/atlasdb/raw/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataIntegrationTest.javaj>R https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataIntegrationTest.java?ref=ffe84f3476768f6a46c6d1e11a5892a87762d513j@R X3  @@ -0,0 +1,270 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.codahale.metrics.MetricRegistry;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.timelock.api.ConjureIdentifiedVersion;
+import com.palantir.atlasdb.timelock.api.ConjureStartTransactionsRequest;
+import com.palantir.atlasdb.timelock.api.ConjureStartTransactionsResponse;
+import com.palantir.atlasdb.timelock.api.LockWatchRequest;
+import com.palantir.atlasdb.timelock.lock.AsyncLockService;
+import com.palantir.atlasdb.timelock.lock.LockLog;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.lock.AtlasRowLockDescriptor;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.client.IdentifiedLockRequest;
+import com.palantir.lock.client.ImmutableIdentifiedLockRequest;
+import com.palantir.lock.v2.LockResponseV2;
+import com.palantir.lock.v2.LockResponseV2.Successful;
+import com.palantir.lock.v2.LockResponseV2.Unsuccessful;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
+import com.palantir.lock.watch.LockWatchCreatedEvent;
+import com.palantir.lock.watch.LockWatchEvent;
+import com.palantir.lock.watch.LockWatchReferences;
+import com.palantir.lock.watch.LockWatchStateUpdate.Snapshot;
+import com.palantir.lock.watch.LockWatchStateUpdate.Success;
+import com.palantir.lock.watch.LockWatchStateUpdate.Visitor;
+import com.palantir.lock.watch.UnlockEvent;
+import com.palantir.timestamp.InMemoryTimestampService;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.UUID;
+import java.util.concurrent.Future;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.stream.Collectors;
+import org.awaitility.Awaitility;
+import org.junit.Before;
+import org.junit.Test;
+
+public class AsyncTimeLockServiceMetadataIntegrationTest {
+    private static final String WATCHED_TABLE_NAME = "watched-table";
+    private static final LockDescriptor WATCHED_LOCK_1 =
+            AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, "lock1".getBytes(StandardCharsets.UTF_8));
+    private static final LockDescriptor WATCHED_LOCK_2 =
+            AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, "lock2".getBytes(StandardCharsets.UTF_8));
+    private static final LockDescriptor WATCHED_LOCK_3 =
+            AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, "lock3".getBytes(StandardCharsets.UTF_8));
+    private static final LockDescriptor WATCHED_LOCK_4 =
+            AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, "lock4".getBytes(StandardCharsets.UTF_8));
+    private static final Map<LockDescriptor, ChangeMetadata> ALL_WATCHED_LOCKS_WITH_METADATA = ImmutableMap.of(
+            WATCHED_LOCK_1,
+            ChangeMetadata.unchanged(),
+            WATCHED_LOCK_2,
+            ChangeMetadata.updated("old".getBytes(StandardCharsets.UTF_8), "new".getBytes(StandardCharsets.UTF_8)),
+            WATCHED_LOCK_3,
+            ChangeMetadata.deleted("deleted".getBytes(StandardCharsets.UTF_8)),
+            WATCHED_LOCK_4,
+            ChangeMetadata.created("created".getBytes(StandardCharsets.UTF_8)));
+    private static final String UNWATCHED_TABLE_NAME = "a-random-unwatched-table";
+    private static final LockDescriptor UNWATCHED_LOCK_1 =
+            AtlasRowLockDescriptor.of(UNWATCHED_TABLE_NAME, "lock1".getBytes(StandardCharsets.UTF_8));
+    private static final IdentifiedLockRequest WATCHED_LOCK_REQUEST_WITH_METADATA =
+            standardRequestWithMetadata(ALL_WATCHED_LOCKS_WITH_METADATA);
+
+    private final LockLog lockLog = new LockLog(new MetricRegistry(), () -> 10000L);
+    private final ScheduledExecutorService scheduledExecutorService = PTExecutors.newSingleThreadScheduledExecutor();
+    private final AsyncLockService asyncLockService =
+            AsyncLockService.createDefault(lockLog, scheduledExecutorService, scheduledExecutorService);
+    private final AsyncTimelockServiceImpl timeLockService =
+            new AsyncTimelockServiceImpl(asyncLockService, new InMemoryTimestampService(), lockLog);
+    private final ConjureStartTransactionsRequest startTransactionsRequestWithInitialVersion =
+            ConjureStartTransactionsRequest.builder()
+                    .requestId(UUID.randomUUID())
+                    .lastKnownVersion(ConjureIdentifiedVersion.of(
+                            asyncLockService.leaderTime().id().id(), 0))
+                    .numTransactions(1)
+                    .requestorId(UUID.randomUUID())
+                    .build();
+
+    @Before
+    public void setupLockServiceWithWatches() {
+        timeLockService.startWatching(
+                LockWatchRequest.of(ImmutableSet.of(LockWatchReferences.entireTable(WATCHED_TABLE_NAME))));
+    }
+
+    @Test
+    public void lockEventContainsMetadataFromRequestIfWatched() {
+        waitForFuture(timeLockService.lock(WATCHED_LOCK_REQUEST_WITH_METADATA));
+
+        assertThat(getAllLockEventsMetadata())
+                .containsExactly(Optional.of(LockRequestMetadata.of(ALL_WATCHED_LOCKS_WITH_METADATA)));
+    }
+
+    @Test
+    public void lockEventDoesNotContainMetadataThatIsNotWatched() {
+
+        IdentifiedLockRequest mixedRequest =
+                standardRequestWithMetadata(ImmutableMap.<LockDescriptor, ChangeMetadata>builder()
+                        .putAll(ALL_WATCHED_LOCKS_WITH_METADATA)
+                        .put(
+                                UNWATCHED_LOCK_1,
+                                ChangeMetadata.updated(
+                                        "bla".getBytes(StandardCharsets.UTF_8),
+                                        "blabla".getBytes(StandardCharsets.UTF_8)))
+                        .buildKeepingLast());
+        waitForFuture(timeLockService.lock(mixedRequest));
+
+        assertThat(getAllLockEventsMetadata())
+                .containsExactly(Optional.of(LockRequestMetadata.of(ALL_WATCHED_LOCKS_WITH_METADATA)));
+    }
+
+    @Test
+    public void noLockEventIsPublishedIfNothingIsWatched() {
+        IdentifiedLockRequest mixedRequest = standardRequestWithMetadata(ImmutableMap.of(
+                UNWATCHED_LOCK_1,
+                ChangeMetadata.updated(
+                        "bla".getBytes(StandardCharsets.UTF_8), "blabla".getBytes(StandardCharsets.UTF_8))));
+        waitForFuture(timeLockService.lock(mixedRequest));
+        assertThat(getAllLockEventsMetadata()).isEmpty();
+    }
+
+    @Test
+    public void canRetrieveMultipleEventsWithMetadata() {
+        List<Optional<LockRequestMetadata>> metadataList = new ArrayList<>();
+        ALL_WATCHED_LOCKS_WITH_METADATA.forEach((lock, metadata) -> {
+            Map<LockDescriptor, ChangeMetadata> map = ImmutableMap.of(lock, metadata);
+            IdentifiedLockRequest request = standardRequestWithMetadata(map);
+            waitForFuture(timeLockService.lock(request));
+            metadataList.add(Optional.of(LockRequestMetadata.of(map)));
+        });
+
+        assertThat(getAllLockEventsMetadata()).containsExactlyElementsOf(metadataList);
+    }
+
+    @Test
+    public void toleratesAndPassesDownAbsentMetadata() {
+        // this will create a lock request for 4 lock descriptors, but with absent metadata
+        IdentifiedLockRequest requestWithoutMetadata = ImmutableIdentifiedLockRequest.copyOf(
+                        standardRequestWithMetadata(ALL_WATCHED_LOCKS_WITH_METADATA))
+                .withMetadata(Optional.empty());
+        waitForFuture(timeLockService.lock(requestWithoutMetadata));
+
+        assertThat(getAllLockEventsMetadata()).containsExactly(Optional.empty());
+    }
+
+    @Test
+    public void canMixWithOtherLockWatchEventsAndAbsentMetadata() {
+        List<Optional<LockRequestMetadata>> metadataList = new ArrayList<>();
+        ALL_WATCHED_LOCKS_WITH_METADATA.forEach((lock, metadata) -> {
+            // -> LockWatchCreatedEvent
+            timeLockService.startWatching(LockWatchRequest.of(
+                    ImmutableSet.of(LockWatchReferences.entireTable("randomTable" + metadataList.size()))));
+
+            // -> LockEvent with metadata
+            Map<LockDescriptor, ChangeMetadata> map = ImmutableMap.of(lock, metadata);
+            IdentifiedLockRequest requestWithMetadata = standardRequestWithMetadata(map);
+            LockResponseV2 response = waitForFuture(timeLockService.lock(requestWithMetadata));
+            metadataList.add(Optional.of(LockRequestMetadata.of(map)));
+
+            // -> UnlockEvent
+            waitForFuture(timeLockService.unlock(ImmutableSet.of(getToken(response))));
+
+            // -> LockEvent with absent metadata
+            IdentifiedLockRequest requestWithoutMetadata = ImmutableIdentifiedLockRequest.copyOf(
+                            standardRequestWithMetadata(map))
+                    .withMetadata(Optional.empty());
+            response = waitForFuture(timeLockService.lock(requestWithoutMetadata));
+            metadataList.add(Optional.empty());
+
+            // -> UnlockEvent
+            waitForFuture(timeLockService.unlock(ImmutableSet.of(getToken(response))));
+        });
+
+        assertThat(getAllLockWatchEvents()).hasSize(5 * ALL_WATCHED_LOCKS_WITH_METADATA.size());
+        assertThat(getAllLockEventsMetadata()).containsExactlyElementsOf(metadataList);
+    }
+
+    private List<Optional<LockRequestMetadata>> getAllLockEventsMetadata() {
+        return getAllLockWatchEvents().stream()
+                .map(event -> event.accept(new LockWatchEvent.Visitor<Optional<LockEvent>>() {
+                    @Override
+                    public Optional<LockEvent> visit(LockEvent lockEvent) {
+                        return Optional.of(lockEvent);
+                    }
+
+                    @Override
+                    public Optional<LockEvent> visit(UnlockEvent unlockEvent) {
+                        return Optional.empty();
+                    }
+
+                    @Override
+                    public Optional<LockEvent> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
+                        return Optional.empty();
+                    }
+                }))
+                .flatMap(Optional::stream)
+                .map(LockEvent::metadata)
+                .collect(Collectors.toList());
+    }
+
+    private List<LockWatchEvent> getAllLockWatchEvents() {
+        ConjureStartTransactionsResponse response =
+                waitForFuture(timeLockService.startTransactionsWithWatches(startTransactionsRequestWithInitialVersion));
+
+        return response.getLockWatchUpdate().accept(new Visitor<>() {
+            @Override
+            public List<LockWatchEvent> visit(Success success) {
+                return success.events();
+            }
+
+            @Override
+            public List<LockWatchEvent> visit(Snapshot snapshot) {
+                return ImmutableList.of();
+            }
+        });
+    }
+
+    private static <T> T waitForFuture(Future<T> future) {
+        Awaitility.await().atMost(Duration.ofMillis(200)).until(future::isDone);
+        try {
+            return future.get();
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static LockToken getToken(LockResponseV2 response) {
+        return response.accept(new LockResponseV2.Visitor<Optional<LockToken>>() {
+                    @Override
+                    public Optional<LockToken> visit(Successful successful) {
+                        return Optional.of(successful.getToken());
+                    }
+
+                    @Override
+                    public Optional<LockToken> visit(Unsuccessful failure) {
+                        return Optional.empty();
+                    }
+                })
+                .orElseThrow();
+    }
+
+    private static IdentifiedLockRequest standardRequestWithMetadata(Map<LockDescriptor, ChangeMetadata> metadata) {
+        return IdentifiedLockRequest.of(metadata.keySet(), 1000, "testClient", LockRequestMetadata.of(metadata));
+    }
+}uI      }(jQ (4b328d3f0757723e1c47adf5e7cc0a4f9aa41060j5R ]timelock-server/src/test/java/com/palantir/atlasdb/timelock/lock/HeldLocksCollectionTest.javaj7R modifiedj/R Kj0R Kj9R Kj:R https://github.com/palantir/atlasdb/blob/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocksCollectionTest.javaj<R https://github.com/palantir/atlasdb/raw/ffe84f3476768f6a46c6d1e11a5892a87762d513/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocksCollectionTest.javaj>R https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocksCollectionTest.java?ref=ffe84f3476768f6a46c6d1e11a5892a87762d513j@R X  @@ -32,6 +32,7 @@
 import com.palantir.lock.v2.Lease;
 import com.palantir.lock.v2.LockToken;
 import java.time.Duration;
+import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.atomic.AtomicLong;
@@ -188,7 +189,7 @@ public void lockWatchingServiceIsUpdatedAfterLockIsCreatedAndReaped() {
         AsyncResult<Leased<LockToken>> asyncResult = heldLocksCollection.getExistingOrAcquire(REQUEST_ID, () -> result);
         result.complete(heldLocksForId(REQUEST_ID));
         verify(lockWatcher)
-                .registerLock(ImmutableSet.of(LOCK_DESCRIPTOR), result.get().getToken());
+                .registerLock(ImmutableSet.of(LOCK_DESCRIPTOR), result.get().getToken(), Optional.empty());
 
         Lease lease = asyncResult.get().lease();
 
@@ -206,7 +207,7 @@ public void lockWatchingServiceIsUpdatedAfterLockIsCreatedAndUnlocked() {
         heldLocksCollection.getExistingOrAcquire(REQUEST_ID, () -> result);
         result.complete(heldLocksForId(REQUEST_ID));
         verify(lockWatcher)
-                .registerLock(ImmutableSet.of(LOCK_DESCRIPTOR), result.get().getToken());
+                .registerLock(ImmutableSet.of(LOCK_DESCRIPTOR), result.get().getToken(), Optional.empty());
 
         heldLocksCollection.unlock(ImmutableSet.of(LockToken.of(REQUEST_ID)));
         verify(lockWatcher).registerUnlock(ImmutableSet.of(LOCK_DESCRIPTOR));ueu(a813e72cb312ead70c99e190a3576a69cc4c9447}(sha(a813e72cb312ead70c99e190a3576a69cc4c9447node_idEC_kwDOAjP5fdoAKGE4MTNlNzJjYjMxMmVhZDcwYzk5ZTE5MGEzNTc2YTY5Y2M0Yzk0NDccommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-05T13:57:49Zu	committer}(jR 
Sam KramerjR skramer@palantir.comjR 2023-05-15T16:25:19Zumessage
[cc] clean uptree}(jR (da42b7b8ad5de152a2f65fa52b1badcbb446ba95url`https://api.github.com/repos/palantir/atlasdb/git/trees/da42b7b8ad5de152a2f65fa52b1badcbb446ba95ujR bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a813e72cb312ead70c99e190a3576a69cc4c9447
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRiXO8ACgkQmPPOpKR4
XS2Uegf9GmfNPrKr15U9xmfpG/n3n+5t7Tc5k/Taf0hr/TvsxsbRMCXQKdXdbBIY
YuAoE7GkKCYE1vfOmb/46cadk7/hKfww8kXRF2pmZNzFLYE66wgm3Sh1qHJyi3vt
XqgeitSOx4USmJAyz3+SiESq1Y49R7VWB/w1keq68+SDnhcAMZliwCRAH9+BcCS9
RXyVRPltkrqnxBJMjse6KdXQvXtfxjQvh0Gd7RdEymOkdoEl7PPCzT1/Xojfaqin
6pbQBKvsENMnFCxdi5CdiAPcTr02T8VfTjIzp90kwkeL6IeuXAHoCAvx1a1OX3/Y
frwzxAExbTksz1A0P0P7CVpd701qGg==
=QGmL
-----END PGP SIGNATURE-----payloadtree da42b7b8ad5de152a2f65fa52b1badcbb446ba95
parent 0f939506745e5a1b57c7a33b8675c98be6294138
author Sam Kramer <skramer@palantir.com> 1683295069 +0100
committer Sam Kramer <skramer@palantir.com> 1684167919 +0100

[cc] clean up
uujR ^https://api.github.com/repos/palantir/atlasdb/commits/a813e72cb312ead70c99e190a3576a69cc4c9447html_urlShttps://github.com/palantir/atlasdb/commit/a813e72cb312ead70c99e190a3576a69cc4c9447comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a813e72cb312ead70c99e190a3576a69cc4c9447/commentsjR }(login
Sam-KrameridJ^2_ jR MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jR 'https://api.github.com/users/Sam-KramerjR https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujR }(jR 
Sam-KramerjR J^2_ jR MDQ6VXNlcjYyMzg4MTQ=jR 3https://avatars.githubusercontent.com/u/6238814?v=4jR h5jR 'https://api.github.com/users/Sam-KramerjR https://github.com/Sam-KramerjR 1https://api.github.com/users/Sam-Kramer/followersjR >https://api.github.com/users/Sam-Kramer/following{/other_user}jR 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jR >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jR 5https://api.github.com/users/Sam-Kramer/subscriptionsjR ,https://api.github.com/users/Sam-Kramer/orgsjR -https://api.github.com/users/Sam-Kramer/reposjR 8https://api.github.com/users/Sam-Kramer/events{/privacy}jR 7https://api.github.com/users/Sam-Kramer/received_eventsjR UserjR uparents]}(jR (0f939506745e5a1b57c7a33b8675c98be6294138jR ^https://api.github.com/repos/palantir/atlasdb/commits/0f939506745e5a1b57c7a33b8675c98be6294138jR Shttps://github.com/palantir/atlasdb/commit/0f939506745e5a1b57c7a33b8675c98be6294138uastats}(totalKR	additionsKJ	deletionsKufiles](}(jR (7f3e9e8f12ab40d4c411f5e94cce359dfef3b112filename1atlasdb-workload-server-distribution/build.gradlestatusmodifiedjR KjR K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/a813e72cb312ead70c99e190a3576a69cc4c9447/atlasdb-workload-server-distribution%2Fbuild.gradleraw_urlhttps://github.com/palantir/atlasdb/raw/a813e72cb312ead70c99e190a3576a69cc4c9447/atlasdb-workload-server-distribution%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=a813e72cb312ead70c99e190a3576a69cc4c9447patchXk  @@ -20,6 +20,7 @@ dependencies {
     implementation 'com.palantir.conjure.java.runtime:conjure-java-jersey-server'
     implementation 'com.google.guava:guava'
 
+    implementation project(':atlasdb-buggify')
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-cassandra')
     implementation project(':atlasdb-workload-server')u}(jR (08e2ee14b65040ade781f3f358b2b1fa2d4ff004jR latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javajR modifiedjR KjR Kj S KjS https://github.com/palantir/atlasdb/blob/a813e72cb312ead70c99e190a3576a69cc4c9447/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajS https://github.com/palantir/atlasdb/raw/a813e72cb312ead70c99e190a3576a69cc4c9447/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=a813e72cb312ead70c99e190a3576a69cc4c9447jS X	  @@ -22,9 +22,10 @@
 import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
-import com.palantir.atlasdb.workload.buggify.BackgroundCassandraJob;
+import com.palantir.atlasdb.workload.background.BackgroundCassandraJob;
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
 import com.palantir.atlasdb.workload.invariant.DurableWritesInvariantMetricReporter;
 import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
@@ -58,6 +59,7 @@
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
 
 public class WorkloadServerLauncher extends Application<WorkloadServerConfiguration> {
 
@@ -85,21 +87,26 @@ public void initialize(Bootstrap<WorkloadServerConfiguration> bootstrap) {
     public void run(WorkloadServerConfiguration configuration, Environment environment) {
         environment.getObjectMapper().registerModule(new Jdk8Module()).registerModule(new JavaTimeModule());
 
+        scheduleBackgroundJobs(environment);
+
         ExecutorService workflowRunnerExecutor =
                 environment.lifecycle().executorService("workflow-runner").build();
+        workflowRunnerExecutor.execute(() -> runWorkflows(configuration, environment));
+    }
 
+    private void scheduleBackgroundJobs(Environment environment) {
         ScheduledExecutorService backgroundJobExecutor = environment
                 .lifecycle()
                 .scheduledExecutorService("background-job")
                 .build();
-        backgroundJobExecutor.schedule(
+        backgroundJobExecutor.scheduleAtFixedRate(
                 new BackgroundCassandraJob(
                         List.of("cassandra1", "cassandra2", "cassandra3"),
                         AntithesisCassandraResource.INSTANCE,
                         DefaultBuggifyFactory.INSTANCE),
+                0,
                 10,
-                java.util.concurrent.TimeUnit.SECONDS);
-        workflowRunnerExecutor.execute(() -> runWorkflows(configuration, environment));
+                TimeUnit.SECONDS);
     }
 
     private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {u}(jR (d5fd8a21b1fd5f29dfc7b85a6d1bbcf6c7b1e616jR jatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/background/BackgroundCassandraJob.javajR renamedjR KjR Kj S K	jS https://github.com/palantir/atlasdb/blob/a813e72cb312ead70c99e190a3576a69cc4c9447/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.javajS https://github.com/palantir/atlasdb/raw/a813e72cb312ead70c99e190a3576a69cc4c9447/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.java?ref=a813e72cb312ead70c99e190a3576a69cc4c9447jS Xw  @@ -14,10 +14,10 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.workload.buggify;
+package com.palantir.atlasdb.workload.background;
 
 import com.google.common.collect.Iterators;
-import com.google.common.collect.PeekingIterator;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
 import com.palantir.atlasdb.workload.resource.CassandraResource;
 import java.util.Iterator;
 import java.util.List;
@@ -27,12 +27,13 @@ public class BackgroundCassandraJob implements Runnable {
     private final CassandraResource cassandraResource;
     private final Iterator<String> cassandraHosts;
 
-    private final BuggifyFactory buggifyFactory;
+    private final BuggifyFactory buggify;
 
     public BackgroundCassandraJob(
-            List<String> cassandraHosts, CassandraResource cassandraResource, BuggifyFactory buggifyFactory) {
+            List<String> cassandraHosts, CassandraResource cassandraResource, BuggifyFactory buggify) {
         this.cassandraResource = cassandraResource;
         this.cassandraHosts = Iterators.cycle(cassandraHosts);
+        this.buggify = buggify;
     }
 
     @Overrideprevious_filenamegatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/buggify/BackgroundCassandraJob.javau}(jR (223666e20d5ede6081bea385938163329403df78jR natlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/background/BackgroundCassandraJobTest.javajR addedjR K9jR K j S K9jS https://github.com/palantir/atlasdb/blob/a813e72cb312ead70c99e190a3576a69cc4c9447/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.javajS https://github.com/palantir/atlasdb/raw/a813e72cb312ead70c99e190a3576a69cc4c9447/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.java?ref=a813e72cb312ead70c99e190a3576a69cc4c9447jS X	  @@ -0,0 +1,57 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.background;
+
+import static org.mockito.ArgumentMatchers.anyDouble;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
+
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggify;
+import com.palantir.atlasdb.workload.resource.CassandraResource;
+import java.util.List;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class BackgroundCassandraJobTest {
+
+    private static final String HOST_ONE = "cassandra1";
+    private static final String HOST_TWO = "cassandra2";
+    private static final String HOST_THREE = "cassandra3";
+
+    private static final List<String> CASSANDRA_HOSTS = List.of("cassandra1", "cassandra2", "cassandra3");
+
+    @Mock
+    private CassandraResource cassandraResource;
+
+    @Mock
+    private BuggifyFactory buggifyFactory;
+
+    @Test
+    public void runCanExecuteCompactFlushOnAllCassandraHosts() {
+        when(buggifyFactory.maybe(anyDouble())).thenReturn(DefaultBuggify.INSTANCE);
+        BackgroundCassandraJob backgroundCassandraJob =
+                new BackgroundCassandraJob(CASSANDRA_HOSTS, cassandraResource, buggifyFactory);
+        CASSANDRA_HOSTS.forEach(_ignore -> backgroundCassandraJob.run());
+        CASSANDRA_HOSTS.forEach(host -> verify(cassandraResource).compact(eq(host)));
+        CASSANDRA_HOSTS.forEach(host -> verify(cassandraResource).flush(eq(host)));
+    }
+}ueu(075bc511bd1d5460118ec0f8a1896314492b80c3}(sha(075bc511bd1d5460118ec0f8a1896314492b80c3node_idEC_kwDOAjP5fdoAKDA3NWJjNTExYmQxZDU0NjAxMThlYzBmOGExODk2MzE0NDkyYjgwYzMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-07T19:09:45Zu	committer}(j-S Jeremy Kongj/S jkong@palantir.comj1S 2023-06-07T19:09:45Zumessage
Single rowtree}(j%S (9a5e79e1cc3ba6c4f76211d917faeebf79c0767durl`https://api.github.com/repos/palantir/atlasdb/git/trees/9a5e79e1cc3ba6c4f76211d917faeebf79c0767duj=S bhttps://api.github.com/repos/palantir/atlasdb/git/commits/075bc511bd1d5460118ec0f8a1896314492b80c3
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSA1fkACgkQTLdFKain
zjyJWwf+IPXsPDNhkXbbew8RjSx40QSrBlHvquQWuvFSzporY50qmVgLEG9AIyfq
NnA+EKUllmdoCSRXimUyl/bPGa5P+XjyaQpgxT4y0Fg42hMiheE3JazslbjZpKR3
4HDsxc4CXLENpfcxW/qicslcsHzr7T76qvHkF92i6tJeP67irejQo2Y5n4qdwFz9
TmauU2K/wvHMF/7HT3WzHs88+d+/tsHuIkMCS26jsheKPAzkNjTa7xNTT3gR7CD+
17gwqBwhGC6J6CunXwmTGYLxxpRMnpuvyKqroHrVE/kJ+qf79vKLC+KqUbMioJD3
Wqu7sobxXK1OZYCL0GvyuGajD3JbNw==
=CoOI
-----END PGP SIGNATURE-----payloadtree 9a5e79e1cc3ba6c4f76211d917faeebf79c0767d
parent cf0a32db63532dc25dbcc498e8d6a7b93f44e1da
author Jeremy Kong <jkong@palantir.com> 1686164985 +0100
committer Jeremy Kong <jkong@palantir.com> 1686164985 +0100

Single row
uuj=S ^https://api.github.com/repos/palantir/atlasdb/commits/075bc511bd1d5460118ec0f8a1896314492b80c3html_urlShttps://github.com/palantir/atlasdb/commit/075bc511bd1d5460118ec0f8a1896314492b80c3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/075bc511bd1d5460118ec0f8a1896314492b80c3/commentsj+S }(login
jeremyk-91idJZ j'S MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j=S 'https://api.github.com/users/jeremyk-91jKS https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj3S }(jPS 
jeremyk-91jRS JZ j'S MDQ6VXNlcjU5NTU1MTA=jTS 3https://avatars.githubusercontent.com/u/5955510?v=4jVS h5j=S 'https://api.github.com/users/jeremyk-91jKS https://github.com/jeremyk-91jYS 1https://api.github.com/users/jeremyk-91/followersj[S >https://api.github.com/users/jeremyk-91/following{/other_user}j]S 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j_S >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jaS 5https://api.github.com/users/jeremyk-91/subscriptionsjcS ,https://api.github.com/users/jeremyk-91/orgsjeS -https://api.github.com/users/jeremyk-91/reposjgS 8https://api.github.com/users/jeremyk-91/events{/privacy}jiS 7https://api.github.com/users/jeremyk-91/received_eventsjkS UserjmS uparents]}(j%S (cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj=S ^https://api.github.com/repos/palantir/atlasdb/commits/cf0a32db63532dc25dbcc498e8d6a7b93f44e1dajKS Shttps://github.com/palantir/atlasdb/commit/cf0a32db63532dc25dbcc498e8d6a7b93f44e1dauastats}(totalKҌ	additionsKm	deletionsKeufiles](}(j%S (b9204f7d18a8c7881c6b1c06fcaa87e0b81b0918filenameatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javastatusmodifiedjS KjS KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=075bc511bd1d5460118ec0f8a1896314492b80c3patchX|  @@ -33,8 +33,8 @@ public class MaybeWitnessedTransactionTest {
     @Test
     public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
         assertThatLoggableExceptionThrownBy(() -> MaybeWitnessedTransaction.builder()
-                .startTimestamp(START_TIMESTAMP)
-                .build())
+                        .startTimestamp(START_TIMESTAMP)
+                        .build())
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining(
                         "Given how the transaction protocol works, a transaction for which we haven't retrieved the"
@@ -44,16 +44,17 @@ public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
     @Test
     public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
         assertThatCode(() -> MaybeWitnessedTransaction.builder()
-                .startTimestamp(START_TIMESTAMP)
-                .commitTimestamp(COMMIT_TIMESTAMP)
-                .build())
+                        .startTimestamp(START_TIMESTAMP)
+                        .commitTimestamp(COMMIT_TIMESTAMP)
+                        .build())
                 .doesNotThrowAnyException();
     }
 
     @Test
     public void toFullyWitnessedCopiesArgumentsCorrectly() {
         WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
-        WitnessedSingleCellReadTransactionAction readTransactionAction = mock(WitnessedSingleCellReadTransactionAction.class);
+        WitnessedSingleCellReadTransactionAction readTransactionAction =
+                mock(WitnessedSingleCellReadTransactionAction.class);
         List<WitnessedSingleCellTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
         FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
                 .startTimestamp(START_TIMESTAMP)u}(j%S (a4441b2312e16a573e137e02464713072ad6ad63jS hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javajS modifiedjS KjS KjS KjS https://github.com/palantir/atlasdb/blob/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajS https://github.com/palantir/atlasdb/raw/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=075bc511bd1d5460118ec0f8a1896314492b80c3jS X&  @@ -26,8 +26,8 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -67,7 +67,8 @@ private static final class SerializableInvariantVisitor
         private final RangeQueryReader rangeQueryReader = SimpleRangeQueryReader.create(inMemoryTransactionReplayer);
 
         @Override
-        public Optional<InvalidWitnessedTransactionAction> visit(WitnessedSingleCellReadTransactionAction readTransactionAction) {
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedSingleCellReadTransactionAction readTransactionAction) {
             Optional<Integer> expectedValue = inMemoryTransactionReplayer
                     .getValues()
                     .get(TableAndWorkloadCell.of(readTransactionAction.table(), readTransactionAction.cell()))u}(j%S (d99ecffee620b7f3dda7846137d0ec6beff5300ejS katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javajS modifiedjS KjS KjS KjS https://github.com/palantir/atlasdb/blob/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajS https://github.com/palantir/atlasdb/raw/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=075bc511bd1d5460118ec0f8a1896314492b80c3jS Xo  @@ -25,8 +25,8 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.Map;
@@ -58,9 +58,10 @@ final class SnapshotInvariantVisitor
     }
 
     @Override
-    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedSingleCellReadTransactionAction readTransactionAction) {
+    public Optional<InvalidWitnessedTransactionAction> visit(
+            WitnessedSingleCellReadTransactionAction readTransactionAction) {
         Optional<Integer> expected = fetchValueFromView(
-                readTransactionAction.table(), readTransactionAction.cell(), readView)
+                        readTransactionAction.table(), readTransactionAction.cell(), readView)
                 .value();
         if (!expected.equals(readTransactionAction.value())) {
             return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
@@ -72,7 +73,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedSingleCellRead
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
-                writeTransactionAction.table(), writeTransactionAction.cell())
+                        writeTransactionAction.table(), writeTransactionAction.cell())
                 .map(mismatchedValue ->
                         InvalidWitnessedSingleCellTransactionAction.of(writeTransactionAction, mismatchedValue));
 
@@ -86,7 +87,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransacti
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
-                deleteTransactionAction.table(), deleteTransactionAction.cell())
+                        deleteTransactionAction.table(), deleteTransactionAction.cell())
                 .map(mismatchedValue ->
                         InvalidWitnessedSingleCellTransactionAction.of(deleteTransactionAction, mismatchedValue));
 u}(j%S (efb71fff94292c0e9653f8ac390525d7c05fdad8jS latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javajS modifiedjS KjS KjS KjS https://github.com/palantir/atlasdb/blob/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javajS https://github.com/palantir/atlasdb/raw/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=075bc511bd1d5460118ec0f8a1896314492b80c3jS X  @@ -25,8 +25,8 @@
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
@@ -69,7 +69,8 @@ public Optional<Integer> read(String table, WorkloadCell workloadCell) {
                     Map<Cell, byte[]> values = transaction.get(tableReference, Set.of(atlasCell));
                     Optional<Integer> valueRead =
                             Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
-                    witnessedTransactionActions.add(WitnessedSingleCellReadTransactionAction.of(table, workloadCell, valueRead));
+                    witnessedTransactionActions.add(
+                            WitnessedSingleCellReadTransactionAction.of(table, workloadCell, valueRead));
                     return valueRead;
                 },
                 table,u}(j%S (1800f3b86ab7dd6f58186797efd5280b70bd757djS fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javajS modifiedjS KjS KjS KjS https://github.com/palantir/atlasdb/blob/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javajS https://github.com/palantir/atlasdb/raw/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=075bc511bd1d5460118ec0f8a1896314492b80c3jS X  @@ -26,8 +26,8 @@
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
-import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;u}(j%S (fc90a1cdd07648f9656627da15fa0fe7c9929b48jS patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javajS modifiedjS KjS KjS KjS https://github.com/palantir/atlasdb/blob/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javajS https://github.com/palantir/atlasdb/raw/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=075bc511bd1d5460118ec0f8a1896314492b80c3jS X  @@ -19,8 +19,8 @@
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.HashMap;u}(j%S (5c84ec2365c7267c98a6761c28c444790f8027bfjS katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javajS modifiedjS KjS KjS KjS https://github.com/palantir/atlasdb/blob/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javajS https://github.com/palantir/atlasdb/raw/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=075bc511bd1d5460118ec0f8a1896314492b80c3jS X  @@ -17,8 +17,8 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 u}(j%S (06a8cb7139c351a9eca5b4e52721056a9a96c5c8jS aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javajS modifiedjS KjS KjS KjS https://github.com/palantir/atlasdb/blob/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javajS https://github.com/palantir/atlasdb/raw/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=075bc511bd1d5460118ec0f8a1896314492b80c3jS X  @@ -28,8 +28,8 @@
 import com.palantir.atlasdb.workload.transaction.ImmutableRowColumnRangeReadTransactionAction.Builder;
 import com.palantir.atlasdb.workload.transaction.ImmutableSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ImmutableWriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;u}(j%S (1ddc1c9a4fbd8b3691b9a96fdf667e44919d96f7jS latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javajS modifiedjS KjS KjS KjS https://github.com/palantir/atlasdb/blob/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javajS https://github.com/palantir/atlasdb/raw/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=075bc511bd1d5460118ec0f8a1896314492b80c3jS XI  @@ -97,15 +97,16 @@ static boolean shouldWriteToFirstCell(int taskIndex) {
     private static List<TransactionAction> createCellUpdateActions(int taskIndex, String tableName) {
         return shouldWriteToFirstCell(taskIndex)
                 ? ImmutableList.of(
-                WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
-                DeleteTransactionAction.of(tableName, SECOND_CELL))
+                        WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
+                        DeleteTransactionAction.of(tableName, SECOND_CELL))
                 : ImmutableList.of(
-                DeleteTransactionAction.of(tableName, FIRST_CELL),
-                WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
+                        DeleteTransactionAction.of(tableName, FIRST_CELL),
+                        WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
     }
 
     private static List<TransactionAction> createCellReadActions(String tableName) {
         return ImmutableList.of(
-                SingleCellReadTransactionAction.of(tableName, FIRST_CELL), SingleCellReadTransactionAction.of(tableName, SECOND_CELL));
+                SingleCellReadTransactionAction.of(tableName, FIRST_CELL),
+                SingleCellReadTransactionAction.of(tableName, SECOND_CELL));
     }
 }u}(j%S (3b6ada2c6cf01a6d1f51535eee18047528d3c257jS hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javajS modifiedjS KjS KjS KjS https://github.com/palantir/atlasdb/blob/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javajS https://github.com/palantir/atlasdb/raw/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=075bc511bd1d5460118ec0f8a1896314492b80c3jS Xb  @@ -58,8 +58,7 @@ public final class TransientRowsWorkflows {
 
     private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
 
-    private TransientRowsWorkflows() {
-    }
+    private TransientRowsWorkflows() {}
 
     public static Workflow create(
             InteractiveTransactionStore store,u}(j%S (ea20cb665c4ebb1bdfe3db63221eea1eda39a68fjS latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javajS modifiedjS KjS KjS KjS https://github.com/palantir/atlasdb/blob/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajS https://github.com/palantir/atlasdb/raw/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=075bc511bd1d5460118ec0f8a1896314492b80c3jS X	  @@ -286,7 +286,7 @@ public void identifiesUnexpectedMissingCellInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                        action.expectedColumnsAndValues())
+                                action.expectedColumnsAndValues())
                         .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(15, 21), ColumnValue.of(20, 34)));
     }
 
@@ -314,7 +314,7 @@ public void identifiesUnexpectedAdditionalCellInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                        action.expectedColumnsAndValues())
+                                action.expectedColumnsAndValues())
                         .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
     }
 
@@ -342,7 +342,7 @@ public void identifiesIncorrectCellValuesInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                        action.expectedColumnsAndValues())
+                                action.expectedColumnsAndValues())
                         .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
     }
 
@@ -370,7 +370,7 @@ public void identifiesIncorrectOrderingInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                        action.expectedColumnsAndValues())
+                                action.expectedColumnsAndValues())
                         .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
     }
 u}(j%S (6f53adbea6b33a8d9080681c8d01de1362524d00jS patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javajS modifiedjS K0jS K/jS K_jS https://github.com/palantir/atlasdb/blob/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajS https://github.com/palantir/atlasdb/raw/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=075bc511bd1d5460118ec0f8a1896314492b80c3jS X#  @@ -30,8 +30,8 @@
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
@@ -59,10 +59,10 @@ public void before() {
     @Test
     public void witnessRecordsAllSingleCellActions() {
         assertThat(readWrite(transaction -> {
-            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-            transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
-        }))
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
@@ -72,25 +72,26 @@ public void witnessRecordsAllSingleCellActions() {
     @Test
     public void readHandlesEmptyAndPresentValue() {
         assertThat(readWrite(transaction -> {
-            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-            transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
-            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-        }))
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
                 .containsExactly(
                         WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
-                        WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+                        WitnessedSingleCellReadTransactionAction.of(
+                                TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
     }
 
     @Test
     public void witnessRecordsColumnRangeActions() {
         assertThat(readWrite(transaction -> {
-            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-            transaction.getRowColumnRange(
-                    TABLE_1,
-                    WORKLOAD_CELL_TWO.key(),
-                    ColumnRangeSelection.builder().build());
-        }))
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.getRowColumnRange(
+                            TABLE_1,
+                            WORKLOAD_CELL_TWO.key(),
+                            ColumnRangeSelection.builder().build());
+                }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedRowColumnRangeReadTransactionAction.builder()
@@ -107,11 +108,11 @@ public void witnessRecordsColumnRangeActions() {
     @Test
     public void emptyColumnRangeReadsAreRecorded() {
         assertThat(readWrite(transaction -> {
-            transaction.getRowColumnRange(
-                    TABLE_1,
-                    WORKLOAD_CELL_TWO.key(),
-                    ColumnRangeSelection.builder().build());
-        }))
+                    transaction.getRowColumnRange(
+                            TABLE_1,
+                            WORKLOAD_CELL_TWO.key(),
+                            ColumnRangeSelection.builder().build());
+                }))
                 .containsExactly(WitnessedRowColumnRangeReadTransactionAction.builder()
                         .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                 .table(TABLE_1)
@@ -126,12 +127,12 @@ public void emptyColumnRangeReadsAreRecorded() {
     public void allRelevantCellsAreRecordedForFullColumnScan() {
         int iterationCount = 1000;
         assertThat(readWrite(transaction -> {
-            IntStream.range(0, iterationCount)
-                    .forEach(column ->
-                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-            transaction.getRowColumnRange(
-                    TABLE_1, 1, ColumnRangeSelection.builder().build());
-        }))
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(
+                            TABLE_1, 1, ColumnRangeSelection.builder().build());
+                }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
@@ -149,17 +150,17 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
         int startInclusive = 313;
         int endExclusive = 855;
         assertThat(readWrite(transaction -> {
-            IntStream.range(0, iterationCount)
-                    .forEach(column ->
-                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-            transaction.getRowColumnRange(
-                    TABLE_1,
-                    1,
-                    ColumnRangeSelection.builder()
-                            .startColumnInclusive(startInclusive)
-                            .endColumnExclusive(endExclusive)
-                            .build());
-        }))
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(
+                            TABLE_1,
+                            1,
+                            ColumnRangeSelection.builder()
+                                    .startColumnInclusive(startInclusive)
+                                    .endColumnExclusive(endExclusive)
+                                    .build());
+                }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
@@ -229,22 +230,22 @@ private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTr
     private void assertThatThrownWhenUnknownTableReferenced(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-            transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
-            return null;
-        }))
+                    transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
+                    return null;
+                }))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Transaction action has unknown table.");
     }
 
     private void assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-            AtlasDbInteractiveTransaction transaction =
-                    new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
-            transaction.witness();
-            transactionConsumer.accept(transaction);
-            return null;
-        }))
+                    AtlasDbInteractiveTransaction transaction =
+                            new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
+                    transaction.witness();
+                    transactionConsumer.accept(transaction);
+                    return null;
+                }))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Transaction has already been witnessed and can no longer perform any actions.");
     }u}(j%S (adc5e60173b898a15d6ace9f917b6d3050fa0811jS jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javajS modifiedjS KjS KjS K!jS https://github.com/palantir/atlasdb/blob/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajS https://github.com/palantir/atlasdb/raw/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=075bc511bd1d5460118ec0f8a1896314492b80c3jS X  @@ -131,7 +131,8 @@ public void readWriteHandlesAllTransactionTypes() {
 
     @Test
     public void readWriteThrowsWhenTableDoesNotExist() {
-        assertThatThrownBy(() -> store.readWrite(List.of(SingleCellReadTransactionAction.of("chocolate", WORKLOAD_CELL_ONE))))
+        assertThatThrownBy(() ->
+                        store.readWrite(List.of(SingleCellReadTransactionAction.of("chocolate", WORKLOAD_CELL_ONE))))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Transaction action has unknown table.");
     }
@@ -174,21 +175,21 @@ public void keyAlreadyExistExceptionResultsInMaybeWitnessedTransaction() {
                 WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
         TransactionManager keyAlreadyExistsExceptionThrowingStore = spy(manager);
         doAnswer(invocation -> {
-            Supplier<CommitTimestampProvider> commitTimestampFetcher = invocation.getArgument(0);
-            ConditionAwareTransactionTask<Void, CommitTimestampProvider, Exception> task =
-                    invocation.getArgument(1);
-            return manager.runTaskWithConditionWithRetry(commitTimestampFetcher, (txn, condition) -> {
-                manager.getKeyValueService()
-                        .putUnlessExists(
-                                TransactionConstants.TRANSACTION_TABLE,
-                                Map.of(
-                                        V1EncodingStrategy.INSTANCE.encodeStartTimestampAsCell(
-                                                txn.getTimestamp()),
-                                        Ints.toByteArray(-1)));
-                task.execute(txn, condition);
-                return null;
-            });
-        })
+                    Supplier<CommitTimestampProvider> commitTimestampFetcher = invocation.getArgument(0);
+                    ConditionAwareTransactionTask<Void, CommitTimestampProvider, Exception> task =
+                            invocation.getArgument(1);
+                    return manager.runTaskWithConditionWithRetry(commitTimestampFetcher, (txn, condition) -> {
+                        manager.getKeyValueService()
+                                .putUnlessExists(
+                                        TransactionConstants.TRANSACTION_TABLE,
+                                        Map.of(
+                                                V1EncodingStrategy.INSTANCE.encodeStartTimestampAsCell(
+                                                        txn.getTimestamp()),
+                                                Ints.toByteArray(-1)));
+                        task.execute(txn, condition);
+                        return null;
+                    });
+                })
                 .when(keyAlreadyExistsExceptionThrowingStore)
                 .runTaskWithConditionWithRetry(any(Supplier.class), any());
         AtlasDbTransactionStore onlyKeyAlreadyExistsThrowingStore =u}(j%S (58c33505b7876ab53b5f9bdd5f01bd2c64e92790jS tatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayerTest.javajS modifiedjS KjS KjS KjS https://github.com/palantir/atlasdb/blob/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javajS https://github.com/palantir/atlasdb/raw/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.java?ref=075bc511bd1d5460118ec0f8a1896314492b80c3jS X  @@ -43,8 +43,8 @@ public final class InMemoryTransactionReplayerTest {
     @Test
     public void readActionsAreIgnored() {
         InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
-        inMemoryTransactionReplayer.visit(
-                ImmutableWitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+        inMemoryTransactionReplayer.visit(ImmutableWitnessedSingleCellReadTransactionAction.of(
+                TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
         assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
     }
 u}(j%S (ac75ab14193ca61f30a2a9e0dc0bea38053fd7f4jS qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javajS modifiedjS KjS KjS KjS https://github.com/palantir/atlasdb/blob/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajS https://github.com/palantir/atlasdb/raw/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=075bc511bd1d5460118ec0f8a1896314492b80c3jS XI  @@ -20,8 +20,8 @@
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -69,7 +69,8 @@ public WitnessedTransactionBuilder(long startTimestamp) {
         }
 
         public WitnessedTransactionBuilder read(Integer row, Integer column, Optional<Integer> valueRead) {
-            actions.add(WitnessedSingleCellReadTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), valueRead));
+            actions.add(WitnessedSingleCellReadTransactionAction.of(
+                    table, ImmutableWorkloadCell.of(row, column), valueRead));
             return this;
         }
 u}(j%S (486aadb53f82079807d09238cd241d1d0497c7fcjS eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowsTest.javajS modifiedjS KjS KjS KjS https://github.com/palantir/atlasdb/blob/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javajS https://github.com/palantir/atlasdb/raw/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.java?ref=075bc511bd1d5460118ec0f8a1896314492b80c3jS X0  @@ -30,8 +30,8 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;u}(j%S (b7424d7ea654e0a04f6424c5fbffb04b6047fc96jS latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javajS modifiedjS KjS KjS KjS https://github.com/palantir/atlasdb/blob/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javajS https://github.com/palantir/atlasdb/raw/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=075bc511bd1d5460118ec0f8a1896314492b80c3jS XT  @@ -193,7 +193,8 @@ private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent
         if (action instanceof WitnessedSingleCellReadTransactionAction) {
             WitnessedSingleCellReadTransactionAction readAction = (WitnessedSingleCellReadTransactionAction) action;
             if (readAction.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
-                return WitnessedSingleCellReadTransactionAction.of(readAction.table(), readAction.cell(), Optional.empty());
+                return WitnessedSingleCellReadTransactionAction.of(
+                        readAction.table(), readAction.cell(), Optional.empty());
             } else {
                 return WitnessedSingleCellReadTransactionAction.of(
                         readAction.table(), readAction.cell(), Optional.of(TransientRowsWorkflows.VALUE));u}(j%S (d30b13993fc42a48a859cf8136f38e2dbf4a1347jS hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowsTest.javajS modifiedjS KjS KjS KjS https://github.com/palantir/atlasdb/blob/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javam,     jS https://github.com/palantir/atlasdb/raw/075bc511bd1d5460118ec0f8a1896314492b80c3/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.java?ref=075bc511bd1d5460118ec0f8a1896314492b80c3jS X  @@ -86,8 +86,8 @@ public void ringWorkflowContainsInitialReadsForRing() {
 
         List<WitnessedSingleCellReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.ringSize())
                 .boxed()
-                .map(index ->
-                        WitnessedSingleCellReadTransactionAction.of(TABLE_NAME, RingWorkflows.cell(index), Optional.empty()))
+                .map(index -> WitnessedSingleCellReadTransactionAction.of(
+                        TABLE_NAME, RingWorkflows.cell(index), Optional.empty()))
                 .collect(Collectors.toList());
         assertThat(actions).containsAll(initialReadActions);
     }ueu(3e8ab47244db2fc45b382469144bae6f0ad14514}(sha(3e8ab47244db2fc45b382469144bae6f0ad14514node_idEC_kwDOAjP5fdoAKDNlOGFiNDcyNDRkYjJmYzQ1YjM4MjQ2OTE0NGJhZTZmMGFkMTQ1MTQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-09T20:03:59Zu	committer}(j,T Jeremy Kongj.T jkong@palantir.comj0T 2023-06-09T20:03:59ZumessageColumn AND valuetree}(j$T (eb7d4a1361cf716ecc4a36d9daceeb716fc64468url`https://api.github.com/repos/palantir/atlasdb/git/trees/eb7d4a1361cf716ecc4a36d9daceeb716fc64468uj<T bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3e8ab47244db2fc45b382469144bae6f0ad14514
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSDha8ACgkQTLdFKain
zjw/NAf8DsVNaI8VlJvQmEgSRsh0Mpj02B+/hZ9gTCoGVV8nHneltjg3NwI5lUXY
rkOiZuZETGX1vI8yLXGiFtogu4xcCH1IM1alYDPJuTyGsd9LnTAV0+YfsBmnYKrP
YVrVbTANE0HIXV4TcQ0eeX6Wp7LUSCe1X9w0WJjW7ZHJsBg7+Gt7me2zrHG8R/iN
G1S77B7Q/PFNeX+IP4sZhrjFV7RKefnlruUIn446osCr872PRh9agDl4kVRdbLv4
Q+6mz5bDGe+4LMUte3a2RkwGat5rDLXdjpTTQOwSCFkNUlRkuVerBRxPzZaiv0J7
hHy21d96z3XFUKhw07WnuEl1roSiUw==
=wcZB
-----END PGP SIGNATURE-----payloadtree eb7d4a1361cf716ecc4a36d9daceeb716fc64468
parent 3eda56b7ba053430de86290b670b6343a115ab35
author Jeremy Kong <jkong@palantir.com> 1686341039 +0100
committer Jeremy Kong <jkong@palantir.com> 1686341039 +0100

Column AND value
uuj<T ^https://api.github.com/repos/palantir/atlasdb/commits/3e8ab47244db2fc45b382469144bae6f0ad14514html_urlShttps://github.com/palantir/atlasdb/commit/3e8ab47244db2fc45b382469144bae6f0ad14514comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3e8ab47244db2fc45b382469144bae6f0ad14514/commentsj*T }(login
jeremyk-91idJZ j&T MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j<T 'https://api.github.com/users/jeremyk-91jJT https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj2T }(jOT 
jeremyk-91jQT JZ j&T MDQ6VXNlcjU5NTU1MTA=jST 3https://avatars.githubusercontent.com/u/5955510?v=4jUT h5j<T 'https://api.github.com/users/jeremyk-91jJT https://github.com/jeremyk-91jXT 1https://api.github.com/users/jeremyk-91/followersjZT >https://api.github.com/users/jeremyk-91/following{/other_user}j\T 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j^T >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j`T 5https://api.github.com/users/jeremyk-91/subscriptionsjbT ,https://api.github.com/users/jeremyk-91/orgsjdT -https://api.github.com/users/jeremyk-91/reposjfT 8https://api.github.com/users/jeremyk-91/events{/privacy}jhT 7https://api.github.com/users/jeremyk-91/received_eventsjjT UserjlT uparents]}(j$T (3eda56b7ba053430de86290b670b6343a115ab35j<T ^https://api.github.com/repos/palantir/atlasdb/commits/3eda56b7ba053430de86290b670b6343a115ab35jJT Shttps://github.com/palantir/atlasdb/commit/3eda56b7ba053430de86290b670b6343a115ab35uastats}(totalKÌ	additionsKd	deletionsK_ufiles](}(j$T (16fc559e93e225ca0b4ef18da4c19444b92f65d0filenameatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javastatusmodifiedjT KjT KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/3e8ab47244db2fc45b382469144bae6f0ad14514/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/3e8ab47244db2fc45b382469144bae6f0ad14514/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javacontents_urlX  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=3e8ab47244db2fc45b382469144bae6f0ad14514patchXo  @@ -31,34 +31,35 @@ public class WitnessedRowColumnRangeReadTransactionActionTest {
     @Test
     public void canCreateWitness() {
         assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                .addColumnsAndValues(ColumnAndValue.of(1, 5), ColumnAndValue.of(5, 1), ColumnAndValue.of(3, 3))
-                .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                        .table("foo")
-                        .row(1)
-                        .columnRangeSelection(
-                                ColumnRangeSelection.builder().build())
+                        .addColumnsAndValues(ColumnAndValue.of(1, 5), ColumnAndValue.of(5, 1), ColumnAndValue.of(3, 3))
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
                         .build())
-                .build())
                 .doesNotThrowAnyException();
     }
 
     @Test
     public void cannotCreateWitnessWithDuplicateColumns() {
         assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                .addColumnsAndValues(ColumnAndValue.of(1, 5), ColumnAndValue.of(5, 1), ColumnAndValue.of(1, 3))
-                .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                        .table("foo")
-                        .row(1)
-                        .columnRangeSelection(
-                                ColumnRangeSelection.builder().build())
+                        .addColumnsAndValues(ColumnAndValue.of(1, 5), ColumnAndValue.of(5, 1), ColumnAndValue.of(1, 3))
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
                         .build())
-                .build())
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Duplicate column in columnsAndValues")
                 .hasExactlyArgs(
                         SafeArg.of("duplicatedColumn", 1),
                         SafeArg.of(
                                 "columnsAndValues",
-                                ImmutableList.of(ColumnAndValue.of(1, 5), ColumnAndValue.of(5, 1), ColumnAndValue.of(1, 3))));
+                                ImmutableList.of(
+                                        ColumnAndValue.of(1, 5), ColumnAndValue.of(5, 1), ColumnAndValue.of(1, 3))));
     }
 }u}(j$T (2a8463595dfebc695c1444240fc292e2491b6044jT katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javajT modifiedjT KjT KjT KjT https://github.com/palantir/atlasdb/blob/3e8ab47244db2fc45b382469144bae6f0ad14514/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajT https://github.com/palantir/atlasdb/raw/3e8ab47244db2fc45b382469144bae6f0ad14514/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajT https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=3e8ab47244db2fc45b382469144bae6f0ad14514jT Xu  @@ -62,7 +62,7 @@ final class SnapshotInvariantVisitor
     public Optional<InvalidWitnessedTransactionAction> visit(
             WitnessedSingleCellReadTransactionAction readTransactionAction) {
         Optional<Integer> expected = fetchValueFromView(
-                readTransactionAction.table(), readTransactionAction.cell(), readView)
+                        readTransactionAction.table(), readTransactionAction.cell(), readView)
                 .value();
         if (!expected.equals(readTransactionAction.value())) {
             return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
@@ -74,7 +74,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
-                writeTransactionAction.table(), writeTransactionAction.cell())
+                        writeTransactionAction.table(), writeTransactionAction.cell())
                 .map(mismatchedValue ->
                         InvalidWitnessedSingleCellTransactionAction.of(writeTransactionAction, mismatchedValue));
 
@@ -88,7 +88,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransacti
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
-                deleteTransactionAction.table(), deleteTransactionAction.cell())
+                        deleteTransactionAction.table(), deleteTransactionAction.cell())
                 .map(mismatchedValue ->
                         InvalidWitnessedSingleCellTransactionAction.of(deleteTransactionAction, mismatchedValue));
 u}(j$T (e03f4706ac629cd9854110be0fc557f714be195fjT latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javajT modifiedjT KjT KjT KjT https://github.com/palantir/atlasdb/blob/3e8ab47244db2fc45b382469144bae6f0ad14514/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javajT https://github.com/palantir/atlasdb/raw/3e8ab47244db2fc45b382469144bae6f0ad14514/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javajT https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=3e8ab47244db2fc45b382469144bae6f0ad14514jT X  @@ -107,7 +107,8 @@ public void delete(String table, WorkloadCell workloadCell) {
     }
 
     @Override
-    public List<ColumnAndValue> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection) {
+    public List<ColumnAndValue> getRowColumnRange(
+            String table, Integer row, ColumnRangeSelection columnRangeSelection) {
         return run(
                 tableReference -> {
                     // Having a non-configurable batch hint is a bit iffy, but suffices as this won't be used inu}(j$T (b9e012684e920278c9a3780802a61b100b4aeb2bjT katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReader.javajT modifiedjT KjT KjT KjT https://github.com/palantir/atlasdb/blob/3e8ab47244db2fc45b382469144bae6f0ad14514/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javajT https://github.com/palantir/atlasdb/raw/3e8ab47244db2fc45b382469144bae6f0ad14514/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javajT https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.java?ref=3e8ab47244db2fc45b382469144bae6f0ad14514jT X  @@ -57,8 +57,8 @@ public List<ColumnAndValue> readRange(RowColumnRangeReadTransactionAction readTr
         if (allValues.size() > LARGE_HISTORY_LIMIT) {
             log.error(
                     "Attempted to do range queries in a simple way, even though the history is large ({} entries)! If"
-                            + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
-                            + " efficient range query implementation.",
+                        + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
+                        + " efficient range query implementation.",
                     SafeArg.of("size", allValues.size()));
         }
         return allValuesu}(j$T (4b3679c7c82dc1219afbf7dcf075bce3b3ace5c3jT latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javajT modifiedjT K
jT KjT KjT https://github.com/palantir/atlasdb/blob/3e8ab47244db2fc45b382469144bae6f0ad14514/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajT https://github.com/palantir/atlasdb/raw/3e8ab47244db2fc45b382469144bae6f0ad14514/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajT https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=3e8ab47244db2fc45b382469144bae6f0ad14514jT X  @@ -238,7 +238,8 @@ public void incorporatesLocalWritesIntoRowColumnRangeQueries() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21), ColumnAndValue.of(20, 34)))
+                        ImmutableList.of(
+                                ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21), ColumnAndValue.of(20, 34)))
                 .write(5, 10, 99)
                 .write(5, 13, 24)
                 .delete(5, 15)
@@ -286,8 +287,9 @@ public void identifiesUnexpectedMissingCellInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                        action.expectedColumnsAndValues())
-                        .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21), ColumnAndValue.of(20, 34)));
+                                action.expectedColumnsAndValues())
+                        .containsExactly(
+                                ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21), ColumnAndValue.of(20, 34)));
     }
 
     @Test
@@ -302,7 +304,8 @@ public void identifiesUnexpectedAdditionalCellInRowColumnRangeRead() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 24), ColumnAndValue.of(20, 34)))
+                        ImmutableList.of(
+                                ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 24), ColumnAndValue.of(20, 34)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -314,7 +317,7 @@ public void identifiesUnexpectedAdditionalCellInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                        action.expectedColumnsAndValues())
+                                action.expectedColumnsAndValues())
                         .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
     }
 
@@ -342,7 +345,7 @@ public void identifiesIncorrectCellValuesInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                        action.expectedColumnsAndValues())
+                                action.expectedColumnsAndValues())
                         .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
     }
 
@@ -370,7 +373,7 @@ public void identifiesIncorrectOrderingInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                        action.expectedColumnsAndValues())
+                                action.expectedColumnsAndValues())
                         .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
     }
 u}(j$T (ca5aa63734fbf38ce178b9b7d7f850fbdf59e469jT patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javajT modifiedjT K4jT K4jT KhjT https://github.com/palantir/atlasdb/blob/3e8ab47244db2fc45b382469144bae6f0ad14514/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajT https://github.com/palantir/atlasdb/raw/3e8ab47244db2fc45b382469144bae6f0ad14514/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajT https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=3e8ab47244db2fc45b382469144bae6f0ad14514jT XL%  @@ -63,10 +63,10 @@ public void before() {
     @Test
     public void witnessRecordsAllSingleCellActions() {
         assertThat(readWrite(transaction -> {
-            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-            transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
-        }))
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
@@ -76,10 +76,10 @@ public void witnessRecordsAllSingleCellActions() {
     @Test
     public void readHandlesEmptyAndPresentValue() {
         assertThat(readWrite(transaction -> {
-            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-            transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
-            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-        }))
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
                 .containsExactly(
                         WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
@@ -90,12 +90,12 @@ public void readHandlesEmptyAndPresentValue() {
     @Test
     public void witnessRecordsColumnRangeActions() {
         assertThat(readWrite(transaction -> {
-            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-            transaction.getRowColumnRange(
-                    TABLE_1,
-                    WORKLOAD_CELL_TWO.key(),
-                    ColumnRangeSelection.builder().build());
-        }))
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.getRowColumnRange(
+                            TABLE_1,
+                            WORKLOAD_CELL_TWO.key(),
+                            ColumnRangeSelection.builder().build());
+                }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedRowColumnRangeReadTransactionAction.builder()
@@ -112,11 +112,11 @@ public void witnessRecordsColumnRangeActions() {
     @Test
     public void emptyColumnRangeReadsAreRecorded() {
         assertThat(readWrite(transaction -> {
-            transaction.getRowColumnRange(
-                    TABLE_1,
-                    WORKLOAD_CELL_TWO.key(),
-                    ColumnRangeSelection.builder().build());
-        }))
+                    transaction.getRowColumnRange(
+                            TABLE_1,
+                            WORKLOAD_CELL_TWO.key(),
+                            ColumnRangeSelection.builder().build());
+                }))
                 .containsExactly(WitnessedRowColumnRangeReadTransactionAction.builder()
                         .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                 .table(TABLE_1)
@@ -131,12 +131,12 @@ public void emptyColumnRangeReadsAreRecorded() {
     public void allRelevantCellsAreRecordedForFullColumnScan() {
         int iterationCount = 1000;
         assertThat(readWrite(transaction -> {
-            IntStream.range(0, iterationCount)
-                    .forEach(column ->
-                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-            transaction.getRowColumnRange(
-                    TABLE_1, 1, ColumnRangeSelection.builder().build());
-        }))
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(
+                            TABLE_1, 1, ColumnRangeSelection.builder().build());
+                }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
@@ -154,17 +154,17 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
         int startInclusive = 313;
         int endExclusive = 855;
         assertThat(readWrite(transaction -> {
-            IntStream.range(0, iterationCount)
-                    .forEach(column ->
-                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-            transaction.getRowColumnRange(
-                    TABLE_1,
-                    1,
-                    ColumnRangeSelection.builder()
-                            .startColumnInclusive(startInclusive)
-                            .endColumnExclusive(endExclusive)
-                            .build());
-        }))
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(
+                            TABLE_1,
+                            1,
+                            ColumnRangeSelection.builder()
+                                    .startColumnInclusive(startInclusive)
+                                    .endColumnExclusive(endExclusive)
+                                    .build());
+                }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
@@ -179,10 +179,10 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
     @Test
     public void witnessRecordsRowRangeScans() {
         assertThat(readWrite(transaction -> {
-            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-            transaction.getRange(
-                    TABLE_1, RangeSlice.builder().build(), ImmutableSortedSet.of(WORKLOAD_CELL_TWO.column()));
-        }))
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.getRange(
+                            TABLE_1, RangeSlice.builder().build(), ImmutableSortedSet.of(WORKLOAD_CELL_TWO.column()));
+                }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedRowRangeReadTransactionAction.builder()
@@ -201,9 +201,9 @@ public void witnessRecordsRowRangeScans() {
     @Test
     public void emptyRowRangeScansAreRecorded() {
         assertThat(readWrite(transaction -> {
-            transaction.getRange(
-                    TABLE_1, RangeSlice.builder().build(), ImmutableSortedSet.of(WORKLOAD_CELL_TWO.column()));
-        }))
+                    transaction.getRange(
+                            TABLE_1, RangeSlice.builder().build(), ImmutableSortedSet.of(WORKLOAD_CELL_TWO.column()));
+                }))
                 .containsExactly(WitnessedRowRangeReadTransactionAction.builder()
                         .originalQuery(RowRangeReadTransactionAction.builder()
                                 .table(TABLE_1)
@@ -356,22 +356,22 @@ private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTr
     private void assertThatThrownWhenUnknownTableReferenced(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-            transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
-            return null;
-        }))
+                    transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
+                    return null;
+                }))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Transaction action has unknown table.");
     }
 
     private void assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-            AtlasDbInteractiveTransaction transaction =
-                    new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
-            transaction.witness();
-            transactionConsumer.accept(transaction);
-            return null;
-        }))
+                    AtlasDbInteractiveTransaction transaction =
+                            new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
+                    transaction.witness();
+                    transactionConsumer.accept(transaction);
+                    return null;
+                }))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Transaction has already been witnessed and can no longer perform any actions.");
     }u}(j$T (5c2f62afffd2615bcac6a2f7c53889e788dfeb52jT oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReaderTest.javajT modifiedjT KjT KjT KjT https://github.com/palantir/atlasdb/blob/3e8ab47244db2fc45b382469144bae6f0ad14514/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javajT https://github.com/palantir/atlasdb/raw/3e8ab47244db2fc45b382469144bae6f0ad14514/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javajT https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.java?ref=3e8ab47244db2fc45b382469144bae6f0ad14514jT X
  @@ -38,10 +38,10 @@ public void doesNotReadCellsFromDifferentTable() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                .table(WorkloadTestHelpers.TABLE_2)
-                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
-                .columnRangeSelection(ColumnRangeSelection.builder().build())
-                .build()))
+                        .table(WorkloadTestHelpers.TABLE_2)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                        .columnRangeSelection(ColumnRangeSelection.builder().build())
+                        .build()))
                 .isEmpty();
     }
 
@@ -51,10 +51,10 @@ public void doesNotReadCellsFromDifferentRow() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                .table(WorkloadTestHelpers.TABLE_1)
-                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
-                .columnRangeSelection(ColumnRangeSelection.builder().build())
-                .build()))
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
+                        .columnRangeSelection(ColumnRangeSelection.builder().build())
+                        .build()))
                 .isEmpty();
     }
 
@@ -67,13 +67,13 @@ public void readsCellsFromRangeInOrder() {
                     Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         }
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                .table(WorkloadTestHelpers.TABLE_1)
-                .row(1)
-                .columnRangeSelection(ColumnRangeSelection.builder()
-                        .startColumnInclusive(2)
-                        .endColumnExclusive(4)
-                        .build())
-                .build()))
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(1)
+                        .columnRangeSelection(ColumnRangeSelection.builder()
+                                .startColumnInclusive(2)
+                                .endColumnExclusive(4)
+                                .build())
+                        .build()))
                 .containsExactly(
                         ColumnAndValue.of(2, WorkloadTestHelpers.VALUE_ONE),
                         ColumnAndValue.of(3, WorkloadTestHelpers.VALUE_ONE));ueu(99f212556286a5f523d611891b97d8db01644d4a}(sha(99f212556286a5f523d611891b97d8db01644d4anode_idEC_kwDOAjP5fdoAKDk5ZjIxMjU1NjI4NmE1ZjUyM2Q2MTE4OTFiOTdkOGRiMDE2NDRkNGEcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-07-04T15:09:00Zu	committer}(jT 
svc-changelogjT svc-changelog@palantir.comjT 2023-07-04T15:09:00ZumessageAdd generated changelog entriestree}(jT (e0ed91e8f64856f4ecc83f695fe0244c1582db91url`https://api.github.com/repos/palantir/atlasdb/git/trees/e0ed91e8f64856f4ecc83f695fe0244c1582db91ujT bhttps://api.github.com/repos/palantir/atlasdb/git/commits/99f212556286a5f523d611891b97d8db01644d4a
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSkNgwJEHYaJX37fAFQAABzGQD/bgnufS4P11yfudQYduC4lj4f
diATnWtaypUhhck8hbIBAO9h9ev1Bv/NnB0PkYvALA1tNPlKxi6/G+oNDsNhKxgx
=9VNU
-----END PGP SIGNATURE-----payloadX  tree e0ed91e8f64856f4ecc83f695fe0244c1582db91
parent 6c2aa5f4fa82713fe7e465445fb416642a8b4ee3
author svc-changelog <svc-changelog@palantir.com> 1688483340 +0000
committer svc-changelog <svc-changelog@palantir.com> 1688483340 +0000

Add generated changelog entriesuujT ^https://api.github.com/repos/palantir/atlasdb/commits/99f212556286a5f523d611891b97d8db01644d4ahtml_urlShttps://github.com/palantir/atlasdb/commit/99f212556286a5f523d611891b97d8db01644d4acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/99f212556286a5f523d611891b97d8db01644d4a/commentsjT }(login
svc-changelogidJ#jT MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jT *https://api.github.com/users/svc-changelogjT  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujT }(jT 
svc-changelogjT J#jT MDQ6VXNlcjg0MDc3NjAzjT 4https://avatars.githubusercontent.com/u/84077603?v=4jT h5jT *https://api.github.com/users/svc-changelogjT  https://github.com/svc-changelogjT 4https://api.github.com/users/svc-changelog/followersjU Ahttps://api.github.com/users/svc-changelog/following{/other_user}jU :https://api.github.com/users/svc-changelog/gists{/gist_id}jU Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jU 8https://api.github.com/users/svc-changelog/subscriptionsj	U /https://api.github.com/users/svc-changelog/orgsjU 0https://api.github.com/users/svc-changelog/reposj
U ;https://api.github.com/users/svc-changelog/events{/privacy}jU :https://api.github.com/users/svc-changelog/received_eventsjU UserjU uparents]}(jT (6c2aa5f4fa82713fe7e465445fb416642a8b4ee3jT ^https://api.github.com/repos/palantir/atlasdb/commits/6c2aa5f4fa82713fe7e465445fb416642a8b4ee3jT Shttps://github.com/palantir/atlasdb/commit/6c2aa5f4fa82713fe7e465445fb416642a8b4ee3uastats}(totalK	additionsK	deletionsK ufiles]}(jT (c53f2f320e00e5aca5a76043c8812982b1c565ebfilename$changelog/@unreleased/pr-6655.v2.ymlstatusaddedj-U Kj.U K changesKblob_url|https://github.com/palantir/atlasdb/blob/99f212556286a5f523d611891b97d8db01644d4a/changelog%2F%40unreleased%2Fpr-6655.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/99f212556286a5f523d611891b97d8db01644d4a/changelog%2F%40unreleased%2Fpr-6655.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6655.v2.yml?ref=99f212556286a5f523d611891b97d8db01644d4apatchXU  @@ -0,0 +1,7 @@
+type: feature
+feature:
+  description: Expose API letting clients specify how many values they expect at most
+    from a Get. This let us skip the immutable timestamp lock even in the case we've
+    done some empty reads if the client knows it's safe to do so.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6655uau(e8c8a85c5f0afcc68fea533f4a9fec9add21a375}(sha(e8c8a85c5f0afcc68fea533f4a9fec9add21a375node_idEC_kwDOAjP5fdoAKGU4YzhhODVjNWYwYWZjYzY4ZmVhNTMzZjRhOWZlYzlhZGQyMWEzNzUcommit}(author}(nameTom Petraccaemail"tpetracca@users.noreply.github.comdate2023-08-08T17:51:09Zu	committer}(jJU GitHubjLU noreply@github.comjNU 2023-08-08T17:51:09ZumessageRmulti-node embedded is not supported (#6674)

multi-node embedded is not supportedtree}(jBU (c63851330da4bf4909939351423203b91d88c33eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/c63851330da4bf4909939351423203b91d88c33eujZU bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e8c8a85c5f0afcc68fea533f4a9fec9add21a375
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk0oCNCRBK7hj4Ov3rIwAAGh4IAIlxfMgzlSoNqmhUt7RrOsIq
rt5vIzU9S7tQ1VFVFqpPOLz6pJCsrPSwylmwLzNG8jWy66ZFrpYahY9ECK99kAU+
rA0Dv2zPap+bOCPZuhorMZYX0D2b/lprTxTJa6H6StwWBO4C7fPDshLbOmgc4Ouf
iW2QpR4tEQd18Bb/bNObhH1Y9eSTDm6PZyiLuPjuMOmTi2Y+XIyMy8JEjYY/8sIj
AEFrYhMXKncp7IY0tzN6y0rEOnUaT7Np9sTXsgnNLeKePI4BMSDUBWIN5S4C42KG
2G4i6NYXEKzPMUTB7Lm8ARdKaxsamlh5w/rNZ0Q2INDOtj2PoZy7g5jdf6sX/OY=
=lyRx
-----END PGP SIGNATURE-----
payloadX3  tree c63851330da4bf4909939351423203b91d88c33e
parent 0b1fd5b611a502e343acf2144c0e384c0ca64b3b
author Tom Petracca <tpetracca@users.noreply.github.com> 1691517069 -0400
committer GitHub <noreply@github.com> 1691517069 +0000

multi-node embedded is not supported (#6674)

multi-node embedded is not supported
uujZU ^https://api.github.com/repos/palantir/atlasdb/commits/e8c8a85c5f0afcc68fea533f4a9fec9add21a375html_urlShttps://github.com/palantir/atlasdb/commit/e8c8a85c5f0afcc68fea533f4a9fec9add21a375comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e8c8a85c5f0afcc68fea533f4a9fec9add21a375/commentsjHU }(login	tpetraccaidJ& jDU MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5jZU &https://api.github.com/users/tpetraccajhU https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminujPU }(jmU web-flowjoU J/jDU MDQ6VXNlcjE5ODY0NDQ3jqU 4https://avatars.githubusercontent.com/u/19864447?v=4jsU h5jZU %https://api.github.com/users/web-flowjhU https://github.com/web-flowjvU /https://api.github.com/users/web-flow/followersjxU <https://api.github.com/users/web-flow/following{/other_user}jzU 5https://api.github.com/users/web-flow/gists{/gist_id}j|U <https://api.github.com/users/web-flow/starred{/owner}{/repo}j~U 3https://api.github.com/users/web-flow/subscriptionsjU *https://api.github.com/users/web-flow/orgsjU +https://api.github.com/users/web-flow/reposjU 6https://api.github.com/users/web-flow/events{/privacy}jU 5https://api.github.com/users/web-flow/received_eventsjU UserjU uparents]}(jBU (0b1fd5b611a502e343acf2144c0e384c0ca64b3bjZU ^https://api.github.com/repos/palantir/atlasdb/commits/0b1fd5b611a502e343acf2144c0e384c0ca64b3bjhU Shttps://github.com/palantir/atlasdb/commit/0b1fd5b611a502e343acf2144c0e384c0ca64b3buastats}(totalM:	additionsK	deletionsM)ufiles](}(jBU (cfb38853d55f927f0cbcfb18f754fff9afb29d65filenameGatlasdb-api/src/main/java/com/palantir/atlasdb/config/LeaderConfig.javastatusmodifiedjU KjU KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/e8c8a85c5f0afcc68fea533f4a9fec9add21a375/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FLeaderConfig.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e8c8a85c5f0afcc68fea533f4a9fec9add21a375/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FLeaderConfig.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FLeaderConfig.java?ref=e8c8a85c5f0afcc68fea533f4a9fec9add21a375patchX\  @@ -98,13 +98,8 @@ public Duration leaderAddressCacheTtl() {
     @Value.Check
     protected final void check() {
         Preconditions.checkState(
-                quorumSize() > leaders().size() / 2,
-                "The quorumSize must be over half the amount of leader entries.",
-                SafeArg.of("quorumSize", quorumSize()),
-                SafeArg.of("leaders", leaders()));
-        Preconditions.checkState(
-                leaders().size() >= quorumSize(),
-                "The quorumSize must be less than or equal to the amount of leader entries.",
+                quorumSize() == 1 && leaders().size() == 1,
+                "AtlasDb no longer supports multi-node embedded services",
                 SafeArg.of("quorumSize", quorumSize()),
                 SafeArg.of("leaders", leaders()));
         Preconditions.checkArgument(u}(jBU (a47b3ba1cfacc79d33cc6f8d1241cb3f55d96af8jU atlasdb-config/build.gradlejU modifiedjU K jU KjU KjU ohttps://github.com/palantir/atlasdb/blob/e8c8a85c5f0afcc68fea533f4a9fec9add21a375/atlasdb-config%2Fbuild.gradlejU nhttps://github.com/palantir/atlasdb/raw/e8c8a85c5f0afcc68fea533f4a9fec9add21a375/atlasdb-config%2Fbuild.gradlejU https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fbuild.gradle?ref=e8c8a85c5f0afcc68fea533f4a9fec9add21a375jU Xm  @@ -6,7 +6,6 @@ dependencies {
     api project(':timestamp-client')
     api project(':atlasdb-conjure')
     implementation project(':atlasdb-impl-shared')
-    implementation project(':leader-election-impl')
     implementation project(':lock-impl')
 
     implementation 'jakarta.validation:jakarta.validation-api'
@@ -47,10 +46,8 @@ dependencies {
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-commons')
     implementation project(':atlasdb-coordination-impl')
-    implementation project(':atlasdb-remoting-api')
     implementation project(':commons-annotations')
     implementation project(':commons-executors')
-    implementation project(':leader-election-api')
     implementation project(':lock-api')
     implementation project(':lock-api-objects')
     implementation project(':lock-conjure-api:lock-conjure-api-dialogue')u}(jBU (470541fafd9be1931d9ba5794dbd8416c37ce64cjU datlasdb-config/src/main/java/com/palantir/atlasdb/factory/DefaultLockAndTimestampServiceFactory.javajU modifiedjU KjU KjU KjU https://github.com/palantir/atlasdb/blob/e8c8a85c5f0afcc68fea533f4a9fec9add21a375/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javajU https://github.com/palantir/atlasdb/raw/e8c8a85c5f0afcc68fea533f4a9fec9add21a375/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javajU https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java?ref=e8c8a85c5f0afcc68fea533f4a9fec9add21a375jU X=  @@ -17,23 +17,15 @@
 package com.palantir.atlasdb.factory;
 
 import com.google.common.base.Suppliers;
-import com.google.common.collect.Iterables;
-import com.google.common.util.concurrent.Uninterruptibles;
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.config.AtlasDbRuntimeConfig;
-import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
-import com.palantir.atlasdb.config.ImmutableServerListConfig;
-import com.palantir.atlasdb.config.LeaderConfig;
-import com.palantir.atlasdb.config.RemotingClientConfigs;
 import com.palantir.atlasdb.config.ServerListConfig;
 import com.palantir.atlasdb.config.ServerListConfigs;
 import com.palantir.atlasdb.config.TimeLockClientConfig;
 import com.palantir.atlasdb.config.TimeLockRequestBatcherProviders;
 import com.palantir.atlasdb.debug.LockDiagnosticComponents;
 import com.palantir.atlasdb.debug.LockDiagnosticConjureTimelockService;
-import com.palantir.atlasdb.factory.Leaders.LocalPaxosServices;
 import com.palantir.atlasdb.factory.startup.TimeLockMigrator;
-import com.palantir.atlasdb.http.AtlasDbHttpClients;
 import com.palantir.atlasdb.keyvalue.api.LockWatchCachingConfig;
 import com.palantir.atlasdb.keyvalue.api.watch.LockWatchManagerInternal;
 import com.palantir.atlasdb.table.description.Schema;
@@ -43,11 +35,7 @@
 import com.palantir.atlasdb.util.AtlasDbMetrics;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.conjure.java.api.config.service.UserAgent;
-import com.palantir.conjure.java.api.errors.UnknownRemoteException;
 import com.palantir.dialogue.clients.DialogueClients.ReloadingFactory;
-import com.palantir.leader.PingableLeader;
-import com.palantir.leader.proxy.AwaitingLeadershipProxy;
-import com.palantir.leader.proxy.LeadershipCoordinator;
 import com.palantir.lock.LockRpcClient;
 import com.palantir.lock.LockService;
 import com.palantir.lock.NamespaceAgnosticLockRpcClient;
@@ -81,34 +69,22 @@
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.refreshable.Refreshable;
 import com.palantir.timestamp.ManagedTimestampService;
 import com.palantir.timestamp.RemoteTimestampManagementAdapter;
 import com.palantir.timestamp.TimestampManagementService;
-import com.palantir.timestamp.TimestampRange;
 import com.palantir.timestamp.TimestampService;
 import com.palantir.timestamp.TimestampStoreInvalidator;
 import com.palantir.util.OptionalResolver;
-import java.time.Duration;
 import java.util.Optional;
 import java.util.Set;
-import java.util.concurrent.CompletableFuture;
-import java.util.function.Consumer;
 import java.util.function.Function;
 import java.util.function.Supplier;
-import javax.ws.rs.ClientErrorException;
 
 public final class DefaultLockAndTimestampServiceFactory implements LockAndTimestampServiceFactory {
-    private static final SafeLogger log = SafeLoggerFactory.get(DefaultLockAndTimestampServiceFactory.class);
-
-    private static final int ATTEMPTS_BEFORE_LOGGING_FAILURE_TO_READ_REMOTE_TIMESTAMP_SERVER_ID = 60;
-
     private final MetricsManager metricsManager;
     private final AtlasDbConfig config;
     private final Refreshable<AtlasDbRuntimeConfig> runtimeConfig;
-    private final Consumer<Object> registrar;
     private final Supplier<LockService> lock;
     private final Supplier<ManagedTimestampService> time;
     private final TimestampStoreInvalidator invalidator;
@@ -125,7 +101,6 @@ public DefaultLockAndTimestampServiceFactory(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
-            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -139,7 +114,6 @@ public DefaultLockAndTimestampServiceFactory(
                 metricsManager,
                 config,
                 runtimeConfig,
-                registrar,
                 lock,
                 time,
                 invalidator,
@@ -156,7 +130,6 @@ public DefaultLockAndTimestampServiceFactory(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
-            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -170,7 +143,6 @@ public DefaultLockAndTimestampServiceFactory(
         this.metricsManager = metricsManager;
         this.config = config;
         this.runtimeConfig = runtimeConfig;
-        this.registrar = registrar;
         this.lock = lock;
         this.time = time;
         this.invalidator = invalidator;
@@ -189,7 +161,6 @@ public LockAndTimestampServices createLockAndTimestampServices() {
                 metricsManager,
                 config,
                 runtimeConfig,
-                registrar,
                 lock,
                 time,
                 invalidator,
@@ -233,7 +204,6 @@ static LockAndTimestampServices createRawInstrumentedServices(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
-            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -245,8 +215,9 @@ static LockAndTimestampServices createRawInstrumentedServices(
             Set<Schema> knownSchemas) {
         AtlasDbRuntimeConfig initialRuntimeConfig = runtimeConfig.get();
         assertNoSpuriousTimeLockBlockInRuntimeConfig(config, initialRuntimeConfig);
-        if (config.leader().isPresent()) {
-            return createRawLeaderServices(metricsManager, config.leader().get(), registrar, lock, time, userAgent);
+        if (config.leader().isPresent()) { // 1-node leader config
+            // equivalent to raw embedded; multi-node leader is not supported
+            return createRawEmbeddedServices(metricsManager, lock, time);
         } else if (config.timestamp().isPresent() && config.lock().isPresent()) {
             return createRawRemoteServices(metricsManager, config, runtimeConfig, userAgent);
         } else if (TransactionManagers.isUsingTimeLock(config, initialRuntimeConfig)) {
@@ -261,7 +232,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
                     timeLockFeedbackBackgroundTask,
                     timelockRequestBatcherProviders,
                     knownSchemas);
-        } else {
+        } else { // raw embedded, i.e. embedded with no leader config
             return createRawEmbeddedServices(metricsManager, lock, time);
         }
     }
@@ -444,157 +415,6 @@ private static Supplier<InternalMultiClientConjureTimelockService> getMultiClien
                 serviceProvider.getMultiClientConjureTimelockService()));
     }
 
-    private static LockAndTimestampServices createRawLeaderServices(
-            MetricsManager metricsManager,
-            LeaderConfig leaderConfig,
-            Consumer<Object> registrar,
-            Supplier<LockService> lock,
-            Supplier<ManagedTimestampService> time,
-            UserAgent userAgent) {
-        // Create local services, that may or may not end up being registered in an Consumer<Object>.
-        LocalPaxosServices localPaxosServices =
-                Leaders.createAndRegisterLocalServices(metricsManager, registrar, leaderConfig, userAgent);
-
-        LeadershipCoordinator leadershipCoordinator = localPaxosServices.leadershipCoordinator();
-        LockService localLock =
-                AwaitingLeadershipProxy.newProxyInstance(LockService.class, lock, leadershipCoordinator);
-
-        ManagedTimestampService managedTimestampProxy =
-                AwaitingLeadershipProxy.newProxyInstance(ManagedTimestampService.class, time, leadershipCoordinator);
-
-        // These facades are necessary because of the semantics of the JAX-RS algorithm (in particular, accepting
-        // just the managed timestamp service will *not* work).
-        TimestampService localTime = getTimestampFacade(managedTimestampProxy);
-        TimestampManagementService localManagement = getTimestampManagementFacade(managedTimestampProxy);
-
-        registrar.accept(localLock);
-        registrar.accept(localTime);
-        registrar.accept(localManagement);
-
-        // Create remote services, that may end up calling our own local services.
-        ImmutableServerListConfig serverListConfig = ImmutableServerListConfig.builder()
-                .servers(leaderConfig.leaders())
-                .sslConfiguration(leaderConfig.sslConfiguration())
-                .build();
-        ServiceCreator creator = ServiceCreator.noPayloadLimiter(
-                metricsManager, Refreshable.only(serverListConfig), userAgent, () -> RemotingClientConfigs.DEFAULT);
-        LockService remoteLock =
-                new RemoteLockServiceAdapter(creator.createService(NamespaceAgnosticLockRpcClient.class));
-        TimestampService remoteTime = creator.createService(TimestampService.class);
-        TimestampManagementService remoteManagement = creator.createService(TimestampManagementService.class);
-
-        if (leaderConfig.leaders().size() == 1) {
-            // Attempting to connect to ourself while processing a request can lead to deadlock if incoming request
-            // volume is high, as all Jetty threads end up waiting for the timestamp server, and no threads remain to
-            // actually handle the timestamp server requests. If we are the only single leader, we can avoid the
-            // deadlock entirely; so use PingableLeader's getUUID() to detect this situation and eliminate the redundant
-            // call.
-
-            PingableLeader localPingableLeader = localPaxosServices.localPingableLeader();
-            String localServerId = localPingableLeader.getUUID();
-            PingableLeader remotePingableLeader = AtlasDbHttpClients.createProxy(
-                    ServiceCreator.createTrustContext(leaderConfig.sslConfiguration()),
-                    Iterables.getOnlyElement(leaderConfig.leaders()),
-                    PingableLeader.class,
-                    AuxiliaryRemotingParameters.builder()
-                            .userAgent(userAgent)
-                            .shouldRetry(true)
-                            .shouldLimitPayload(true)
-                            .shouldUseExtendedTimeout(false)
-                            .build());
-
-            // Determine asynchronously whether the remote services are talking to our local services.
-            CompletableFuture<Boolean> useLocalServicesFuture = new CompletableFuture<>();
-            TransactionManagers.runAsync.accept(() -> {
-                int attemptsLeftBeforeLog = ATTEMPTS_BEFORE_LOGGING_FAILURE_TO_READ_REMOTE_TIMESTAMP_SERVER_ID;
-                while (true) {
-                    try {
-                        String remoteServerId = remotePingableLeader.getUUID();
-                        useLocalServicesFuture.complete(localServerId.equals(remoteServerId));
-                        return;
-                    } catch (ClientErrorException e) {
-                        useLocalServicesFuture.complete(false);
-                        return;
-                    } catch (UnknownRemoteException e) {
-                        // This is done to replicate previous behaviour, where 4xxs returned to a JaxRsClient would
-                        // manifest as ClientErrorExceptions.
-                        if (400 <= e.getStatus() && e.getStatus() <= 499) {
-                            useLocalServicesFuture.complete(false);
-                            return;
-                        }
-                        attemptsLeftBeforeLog = logFailureToReadRemoteTimestampServerId(attemptsLeftBeforeLog, e);
-                    } catch (Throwable e) {
-                        attemptsLeftBeforeLog = logFailureToReadRemoteTimestampServerId(attemptsLeftBeforeLog, e);
-                    }
-                    Uninterruptibles.sleepUninterruptibly(Duration.ofSeconds(1));
-                }
-            });
-
-            // Create dynamic service proxies, that switch to talking directly to our local services if it turns out our
-            // remote services are pointed at them anyway.
-            LockService dynamicLockService = LocalOrRemoteProxy.newProxyInstance(
-                    LockService.class, localLock, remoteLock, useLocalServicesFuture);
-
-            // Use managedTimestampProxy here to avoid local calls going through indirection.
-            TimestampService dynamicTimeService = LocalOrRemoteProxy.newProxyInstance(
-                    TimestampService.class, managedTimestampProxy, remoteTime, useLocalServicesFuture);
-            TimestampManagementService dynamicManagementService = LocalOrRemoteProxy.newProxyInstance(
-                    TimestampManagementService.class, managedTimestampProxy, remoteManagement, useLocalServicesFuture);
-            return ImmutableLockAndTimestampServices.builder()
-                    .lock(dynamicLockService)
-                    .timestamp(dynamicTimeService)
-                    .timestampManagement(dynamicManagementService)
-                    .timelock(new LegacyTimelockService(
-                            dynamicTimeService, dynamicLockService, TransactionManagers.LOCK_CLIENT))
-                    .build();
-
-        } else {
-            return ImmutableLockAndTimestampServices.builder()
-                    .lock(remoteLock)
-                    .timestamp(remoteTime)
-                    .timestampManagement(remoteManagement)
-                    .timelock(new LegacyTimelockService(remoteTime, remoteLock, TransactionManagers.LOCK_CLIENT))
-                    .build();
-        }
-    }
-
-    private static TimestampService getTimestampFacade(ManagedTimestampService managedTimestampService) {
-        return new TimestampService() {
-            @Override
-            public long getFreshTimestamp() {
-                return managedTimestampService.getFreshTimestamp();
-            }
-
-            @Override
-            public TimestampRange getFreshTimestamps(int numTimestampsRequested) {
-                return managedTimestampService.getFreshTimestamps(numTimestampsRequested);
-            }
-        };
-    }
-
-    private static TimestampManagementService getTimestampManagementFacade(
-            ManagedTimestampService managedTimestampService) {
-        return new TimestampManagementService() {
-            @Override
-            public void fastForwardTimestamp(long currentTimestamp) {
-                managedTimestampService.fastForwardTimestamp(currentTimestamp);
-            }
-
-            @Override
-            public String ping() {
-                return managedTimestampService.ping();
-            }
-        };
-    }
-
-    private static int logFailureToReadRemoteTimestampServerId(int attemptsLeftBeforeLog, Throwable th) {
-        if (attemptsLeftBeforeLog == 0) {
-            log.warn("Failed to read remote timestamp server ID", th);
-            return ATTEMPTS_BEFORE_LOGGING_FAILURE_TO_READ_REMOTE_TIMESTAMP_SERVER_ID;
-        }
-        return attemptsLeftBeforeLog - 1;
-    }
-
     private static LockAndTimestampServices createRawRemoteServices(
             MetricsManager metricsManager,
             AtlasDbConfig config,u}(jBU (92cee3c0379971de0a91702380e2b466da96ff6bjU Fatlasdb-config/src/main/java/com/palantir/atlasdb/factory/Leaders.javajU removedjU K jU M6jU M6jU https://github.com/palantir/atlasdb/blob/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.javajU https://github.com/palantir/atlasdb/raw/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.javajU https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.java?ref=0b1fd5b611a502e343acf2144c0e384c0ca64b3bjU X48  @@ -1,310 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.factory;
-
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Iterables;
-import com.google.common.collect.Sets;
-import com.google.common.net.HostAndPort;
-import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
-import com.palantir.atlasdb.config.LeaderConfig;
-import com.palantir.atlasdb.config.RemotingClientConfig;
-import com.palantir.atlasdb.config.RemotingClientConfigs;
-import com.palantir.atlasdb.http.AtlasDbHttpClients;
-import com.palantir.atlasdb.http.NotCurrentLeaderExceptionMapper;
-import com.palantir.atlasdb.util.AtlasDbMetrics;
-import com.palantir.atlasdb.util.MetricsManager;
-import com.palantir.common.concurrent.PTExecutors;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.conjure.java.api.config.service.UserAgent;
-import com.palantir.conjure.java.config.ssl.TrustContext;
-import com.palantir.leader.BatchingLeaderElectionService;
-import com.palantir.leader.LeaderElectionService;
-import com.palantir.leader.LeaderElectionServiceBuilder;
-import com.palantir.leader.LeadershipObserver;
-import com.palantir.leader.LocalPingableLeader;
-import com.palantir.leader.PaxosLeadershipEventRecorder;
-import com.palantir.leader.PingableLeader;
-import com.palantir.leader.proxy.LeadershipCoordinator;
-import com.palantir.paxos.ImmutableLeaderPingerContext;
-import com.palantir.paxos.LeaderPinger;
-import com.palantir.paxos.LeaderPingerContext;
-import com.palantir.paxos.PaxosAcceptor;
-import com.palantir.paxos.PaxosAcceptorImpl;
-import com.palantir.paxos.PaxosAcceptorNetworkClient;
-import com.palantir.paxos.PaxosConstants;
-import com.palantir.paxos.PaxosLearner;
-import com.palantir.paxos.PaxosLearnerImpl;
-import com.palantir.paxos.PaxosLearnerNetworkClient;
-import com.palantir.paxos.PaxosProposer;
-import com.palantir.paxos.SingleLeaderAcceptorNetworkClient;
-import com.palantir.paxos.SingleLeaderLearnerNetworkClient;
-import com.palantir.paxos.SingleLeaderPinger;
-import java.net.URI;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.UUID;
-import java.util.concurrent.ExecutorService;
-import java.util.function.Consumer;
-import java.util.function.Supplier;
-import java.util.stream.Collectors;
-import org.immutables.value.Value;
-
-public final class Leaders {
-    private Leaders() {
-        // Utility class
-    }
-
-    /**
-     * Creates a LeaderElectionService using the supplied configuration and registers appropriate endpoints for that
-     * service.
-     */
-    public static LocalPaxosServices createAndRegisterLocalServices(
-            MetricsManager metricsManager, Consumer<Object> registrar, LeaderConfig config, UserAgent userAgent) {
-        LocalPaxosServices localPaxosServices = createInstrumentedLocalServices(metricsManager, config, userAgent);
-
-        registrar.accept(localPaxosServices.ourAcceptor());
-        registrar.accept(localPaxosServices.ourLearner());
-        registrar.accept(localPaxosServices.localPingableLeader());
-        registrar.accept(new NotCurrentLeaderExceptionMapper());
-        return localPaxosServices;
-    }
-
-    public static LocalPaxosServices createInstrumentedLocalServices(
-            MetricsManager metricsManager, LeaderConfig config, UserAgent userAgent) {
-        Set<String> remoteLeaderUris = new HashSet<>(config.leaders());
-        remoteLeaderUris.remove(config.localServer());
-
-        RemotePaxosServerSpec remotePaxosServerSpec = ImmutableRemotePaxosServerSpec.builder()
-                .remoteLeaderUris(remoteLeaderUris)
-                .remoteAcceptorUris(remoteLeaderUris)
-                .remoteLearnerUris(remoteLeaderUris)
-                .build();
-        return createInstrumentedLocalServices(
-                metricsManager,
-                config,
-                remotePaxosServerSpec,
-                () -> RemotingClientConfigs.DEFAULT,
-                userAgent,
-                LeadershipObserver.NO_OP);
-    }
-
-    public static LocalPaxosServices createInstrumentedLocalServices(
-            MetricsManager metricsManager,
-            LeaderConfig config,
-            RemotePaxosServerSpec remotePaxosServerSpec,
-            Supplier<RemotingClientConfig> remotingClientConfig,
-            UserAgent userAgent,
-            LeadershipObserver leadershipObserver) {
-        UUID leaderUuid = UUID.randomUUID();
-
-        PaxosLeadershipEventRecorder leadershipEventRecorder = PaxosLeadershipEventRecorder.create(
-                metricsManager.getTaggedRegistry(), leaderUuid.toString(), leadershipObserver, ImmutableList.of());
-
-        PaxosAcceptor ourAcceptor = AtlasDbMetrics.instrumentTimed(
-                metricsManager.getRegistry(),
-                PaxosAcceptor.class,
-                PaxosAcceptorImpl.newAcceptor(config.acceptorLogDir().getPath()));
-        PaxosLearner ourLearner = AtlasDbMetrics.instrumentTimed(
-                metricsManager.getRegistry(),
-                PaxosLearner.class,
-                PaxosLearnerImpl.newLearner(config.learnerLogDir().getPath(), leadershipEventRecorder));
-
-        Optional<TrustContext> trustContext = ServiceCreator.createTrustContext(config.sslConfiguration());
-
-        List<PaxosLearner> learners = createProxyAndLocalList(
-                ourLearner,
-                remotePaxosServerSpec.remoteLearnerUris(),
-                remotingClientConfig,
-                trustContext,
-                PaxosLearner.class,
-                userAgent);
-        List<PaxosLearner> remoteLearners = learners.stream()
-                .filter(learner -> !learner.equals(ourLearner))
-                .collect(ImmutableList.toImmutableList());
-        PaxosLearnerNetworkClient learnerNetworkClient = SingleLeaderLearnerNetworkClient.createLegacy(
-                ourLearner,
-                remoteLearners,
-                config.quorumSize(),
-                createExecutorsForService(metricsManager, learners, "knowledge-update"),
-                PaxosConstants.CANCEL_REMAINING_CALLS);
-
-        List<PaxosAcceptor> acceptors = createProxyAndLocalList(
-                ourAcceptor,
-                remotePaxosServerSpec.remoteAcceptorUris(),
-                remotingClientConfig,
-                trustContext,
-                PaxosAcceptor.class,
-                userAgent);
-        PaxosAcceptorNetworkClient acceptorNetworkClient = SingleLeaderAcceptorNetworkClient.createLegacy(
-                acceptors,
-                config.quorumSize(),
-                createExecutorsForService(metricsManager, acceptors, "latest-round-verifier"),
-                PaxosConstants.CANCEL_REMAINING_CALLS);
-
-        List<LeaderPingerContext<PingableLeader>> otherLeaders = generatePingables(
-                remotePaxosServerSpec.remoteLeaderUris(), remotingClientConfig, trustContext, userAgent);
-
-        LeaderPinger leaderPinger = SingleLeaderPinger.createLegacy(
-                createExecutorsForService(metricsManager, otherLeaders, "leader-ping"),
-                config.leaderPingResponseWait(),
-                leaderUuid,
-                PaxosConstants.CANCEL_REMAINING_CALLS);
-
-        LeaderElectionService uninstrumentedLeaderElectionService = new LeaderElectionServiceBuilder()
-                .leaderUuid(leaderUuid)
-                .knowledge(ourLearner)
-                .eventRecorder(leadershipEventRecorder)
-                .randomWaitBeforeProposingLeadership(config.randomWaitBeforeProposingLeadership())
-                .pingRate(config.pingRate())
-                .leaderPinger(leaderPinger)
-                .acceptorClient(acceptorNetworkClient)
-                .learnerClient(learnerNetworkClient)
-                .decorateProposer(proposer ->
-                        AtlasDbMetrics.instrumentTimed(metricsManager.getRegistry(), PaxosProposer.class, proposer))
-                .leaderAddressCacheTtl(config.leaderAddressCacheTtl())
-                .build();
-
-        LeaderElectionService leaderElectionService = AtlasDbMetrics.instrumentTimed(
-                metricsManager.getRegistry(), LeaderElectionService.class, uninstrumentedLeaderElectionService);
-        PingableLeader pingableLeader = AtlasDbMetrics.instrumentTimed(
-                metricsManager.getRegistry(), PingableLeader.class, new LocalPingableLeader(ourLearner, leaderUuid));
-
-        List<PingableLeader> remotePingableLeaders =
-                otherLeaders.stream().map(LeaderPingerContext::pinger).collect(Collectors.toList());
-        BatchingLeaderElectionService batchingLeaderElectionService =
-                new BatchingLeaderElectionService(leaderElectionService);
-        return ImmutableLocalPaxosServices.builder()
-                .ourAcceptor(ourAcceptor)
-                .ourLearner(ourLearner)
-                .leaderElectionService(batchingLeaderElectionService)
-                .leadershipCoordinator(LeadershipCoordinator.create(batchingLeaderElectionService))
-                .localPingableLeader(pingableLeader)
-                .remotePingableLeaders(remotePingableLeaders)
-                .build();
-    }
-
-    private static <T> Map<T, ExecutorService> createExecutorsForService(
-            MetricsManager metricsManager, List<T> services, String useCase) {
-        Map<T, ExecutorService> executors = new HashMap<>();
-        for (int index = 0; index < services.size(); index++) {
-            String indexedUseCase = String.format("%s-%d", useCase, index);
-            executors.put(services.get(index), createExecutor(metricsManager, indexedUseCase, services.size()));
-        }
-        return executors;
-    }
-
-    // TODO (jkong): Make the limits configurable.
-    // Current use cases tend to have not more than 10 (<< 100) inflight tasks under normal circumstances.
-    private static ExecutorService createExecutor(MetricsManager metricsManager, String useCase, int corePoolSize) {
-        return PTExecutors.newCachedThreadPoolWithMaxThreads(100, "atlas-leaders-election-" + useCase);
-    }
-
-    public static <T> List<T> createProxyAndLocalList(
-            T localObject,
-            Set<String> remoteUris,
-            Supplier<RemotingClientConfig> remotingClientConfig,
-            Optional<TrustContext> trustContext,
-            Class<T> clazz,
-            UserAgent userAgent) {
-
-        // TODO (jkong): Enable runtime config for leader election services.
-        List<T> remotes = remoteUris.stream()
-                .map(uri -> AtlasDbHttpClients.createProxy(
-                        trustContext,
-                        uri,
-                        clazz,
-                        AuxiliaryRemotingParameters.builder()
-                                .userAgent(userAgent)
-                                .shouldLimitPayload(false)
-                                .shouldRetry(true)
-                                .shouldUseExtendedTimeout(false)
-                                .remotingClientConfig(remotingClientConfig)
-                                .build()))
-                .collect(Collectors.toList());
-
-        return ImmutableList.copyOf(Iterables.concat(remotes, ImmutableList.of(localObject)));
-    }
-
-    public static List<LeaderPingerContext<PingableLeader>> generatePingables(
-            Collection<String> remoteEndpoints,
-            Supplier<RemotingClientConfig> remotingClientConfig,
-            Optional<TrustContext> trustContext,
-            UserAgent userAgent) {
-        return KeyedStream.of(remoteEndpoints)
-                .mapKeys(endpoint -> AtlasDbHttpClients.createProxy(
-                        trustContext,
-                        endpoint,
-                        PingableLeader.class,
-                        AuxiliaryRemotingParameters.builder()
-                                .userAgent(userAgent)
-                                .shouldLimitPayload(false) // Guaranteed to be small, no need to limit.
-                                .shouldRetry(false)
-                                .shouldUseExtendedTimeout(false)
-                                .remotingClientConfig(remotingClientConfig)
-                                .build()))
-                .map(Leaders::convertAddressToHostAndPort)
-                .map(ImmutableLeaderPingerContext::of)
-                .values()
-                .collect(Collectors.toList());
-    }
-
-    private static HostAndPort convertAddressToHostAndPort(String url) {
-        URI uri = URI.create(url);
-        return HostAndPort.fromParts(uri.getHost(), uri.getPort());
-    }
-
-    @Value.Immutable
-    public interface LocalPaxosServices {
-        PaxosAcceptor ourAcceptor();
-
-        PaxosLearner ourLearner();
-
-        @Deprecated
-        LeaderElectionService leaderElectionService();
-
-        LeadershipCoordinator leadershipCoordinator();
-
-        PingableLeader localPingableLeader();
-
-        Set<PingableLeader> remotePingableLeaders();
-
-        @Value.Derived
-        default Supplier<Boolean> isCurrentSuspectedLeader() {
-            return localPingableLeader()::ping;
-        }
-
-        @Value.Derived
-        default Set<PingableLeader> allPingableLeaders() {
-            return Sets.union(ImmutableSet.of(localPingableLeader()), remotePingableLeaders());
-        }
-    }
-
-    @Value.Immutable
-    public interface RemotePaxosServerSpec {
-        Set<String> remoteLeaderUris();
-
-        Set<String> remoteAcceptorUris();
-
-        Set<String> remoteLearnerUris();
-    }
-}u      }(jBU (f24cc5a2b37012a1bf2d59fdfc1223d4021c3c1ajU Qatlasdb-config/src/main/java/com/palantir/atlasdb/factory/LocalOrRemoteProxy.javajU removedjU K jU K`jU K`jU https://github.com/palantir/atlasdb/blob/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLocalOrRemoteProxy.javajU https://github.com/palantir/atlasdb/raw/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLocalOrRemoteProxy.javajU https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLocalOrRemoteProxy.java?ref=0b1fd5b611a502e343acf2144c0e384c0ca64b3bjU X  @@ -1,96 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.factory;
-
-import com.google.common.reflect.AbstractInvocationHandler;
-import com.google.common.util.concurrent.Uninterruptibles;
-import com.palantir.leader.NotCurrentLeaderException;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-import java.lang.reflect.Proxy;
-import java.time.Duration;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.Future;
-import java.util.concurrent.TimeUnit;
-import java.util.concurrent.TimeoutException;
-
-/**
- * A proxy that chooses between using a local or remote proxy based on a task that may take a while to complete.
- */
-@SuppressWarnings("ProxyNonConstantType")
-final class LocalOrRemoteProxy<T> extends AbstractInvocationHandler {
-
-    static <U> U newProxyInstance(
-            Class<U> interfaceClass, U localService, U remoteService, Future<Boolean> useLocalServiceFuture) {
-        @SuppressWarnings("unchecked")
-        U proxy = (U) Proxy.newProxyInstance(
-                interfaceClass.getClassLoader(),
-                new Class<?>[] {interfaceClass},
-                new LocalOrRemoteProxy<>(localService, remoteService, useLocalServiceFuture));
-        return proxy;
-    }
-
-    private T localService;
-    private T remoteService;
-    private Future<Boolean> useLocalServiceFuture;
-
-    private LocalOrRemoteProxy(T localService, T remoteService, Future<Boolean> useLocalServiceFuture) {
-        this.localService = localService;
-        this.remoteService = remoteService;
-        this.useLocalServiceFuture = useLocalServiceFuture;
-    }
-
-    @Override
-    protected Object handleInvocation(Object proxy, Method method, Object[] args) throws Throwable {
-        while (true) {
-            if (Thread.currentThread().isInterrupted()) {
-                // do not clear the interrupt flag
-                throw new SafeIllegalStateException("interrupted");
-            }
-            try {
-                return method.invoke(delegate(), args);
-            } catch (InvocationTargetException e) {
-                Throwable targetException = e.getCause();
-                if (targetException instanceof NotCurrentLeaderException) {
-                    Uninterruptibles.sleepUninterruptibly(Duration.ofMillis(10));
-                    continue;
-                }
-                throw targetException;
-            }
-        }
-    }
-
-    private T delegate() {
-        try {
-            if (useLocalServiceFuture.get(0, TimeUnit.SECONDS)) {
-                return localService;
-            } else {
-                return remoteService;
-            }
-        } catch (TimeoutException e) {
-            // Use the remote service while we're still determining if it's safe to use the local service.
-            return remoteService;
-        } catch (InterruptedException e) {
-            // Use the remote service while we're still determining if it's safe to use the local service.
-            Thread.currentThread().interrupt();
-            return remoteService;
-        } catch (ExecutionException e) {
-            // Using the remote service is always safe; fall back to it if anything went wrong
-            return remoteService;
-        }
-    }
-}u}(jBU (2499ae2cdfdfaf673ee0984b961761fbe0307472jU Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javajU modifiedjU K jU KjU KjU https://github.com/palantir/atlasdb/blob/e8c8a85c5f0afcc68fea533f4a9fec9add21a375/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajU https://github.com/palantir/atlasdb/raw/e8c8a85c5f0afcc68fea533f4a9fec9add21a375/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajU https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=e8c8a85c5f0afcc68fea533f4a9fec9add21a375jU Xg  @@ -169,11 +169,6 @@ public abstract class TransactionManagers {
 
     abstract Set<Schema> schemas();
 
-    @Value.Default
-    Consumer<Object> registrar() {
-        return resource -> {};
-    }
-
     @Value.Default
     LockServerOptions lockServerOptions() {
         return LockServerConfigs.DEFAULT;
@@ -381,7 +376,6 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                         metricsManager,
                         config(),
                         runtime,
-                        registrar(),
                         () -> LockServiceImpl.create(lockServerOptions()),
                         atlasFactory::getManagedTimestampService,
                         atlasFactory.getTimestampStoreInvalidator(),
@@ -929,7 +923,6 @@ public static LockAndTimestampServices createLockAndTimestampServicesForCli(
                         metricsManager,
                         config,
                         runtimeConfigSupplier,
-                        registrar,
                         lock,
                         time,
                         invalidator,u}(jBU (18d976f2814f9813693a9273808efa09461f514cjU Oatlasdb-config/src/test/java/com/palantir/atlasdb/SinglePingableLeaderTest.javajU removedjU K jU KjU KjU https://github.com/palantir/atlasdb/blob/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FSinglePingableLeaderTest.javajU https://github.com/palantir/atlasdb/raw/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FSinglePingableLeaderTest.javajU https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FSinglePingableLeaderTest.java?ref=0b1fd5b611a502e343acf2144c0e384c0ca64b3bjU X  @@ -1,161 +0,0 @@
-/*
- * (c) Copyright 2020 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb;
-
-import static com.github.tomakehurst.wiremock.client.WireMock.aResponse;
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.github.tomakehurst.wiremock.client.MappingBuilder;
-import com.github.tomakehurst.wiremock.client.WireMock;
-import com.github.tomakehurst.wiremock.core.WireMockConfiguration;
-import com.github.tomakehurst.wiremock.junit.WireMockRule;
-import com.github.tomakehurst.wiremock.verification.LoggedRequest;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableMap;
-import com.palantir.atlasdb.config.RemotingClientConfigs;
-import com.palantir.atlasdb.factory.Leaders;
-import com.palantir.atlasdb.factory.ServiceCreator;
-import com.palantir.common.concurrent.CheckedRejectionExecutorService;
-import com.palantir.conjure.java.api.config.service.UserAgent;
-import com.palantir.conjure.java.api.config.ssl.SslConfiguration;
-import com.palantir.leader.PingableLeader;
-import com.palantir.paxos.LeaderPinger;
-import com.palantir.paxos.LeaderPingerContext;
-import com.palantir.paxos.SingleLeaderPinger;
-import com.palantir.sls.versions.OrderableSlsVersion;
-import java.nio.charset.StandardCharsets;
-import java.nio.file.Paths;
-import java.time.Duration;
-import java.util.List;
-import java.util.Optional;
-import java.util.UUID;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
-import java.util.stream.IntStream;
-import org.junit.Before;
-import org.junit.Rule;
-import org.junit.Test;
-
-public class SinglePingableLeaderTest {
-    private static final UUID LOCAL_UUID = UUID.randomUUID();
-    private static final UUID REMOTE_UUID = UUID.randomUUID();
-    private static final UserAgent USER_AGENT = UserAgent.of(UserAgent.Agent.of("user-agent", "0.27.1"));
-    private final ExecutorService executorService = Executors.newSingleThreadExecutor();
-
-    private static final String PING = "/leader/ping";
-    private static final String PING_V2 = "/leader/pingV2";
-    private static final String UUID_PATH = "/leader/uuid";
-
-    private static final MappingBuilder PING_MAPPING = WireMock.get(WireMock.urlEqualTo(PING));
-    private static final MappingBuilder PING_V2_MAPPING = WireMock.get(WireMock.urlEqualTo(PING_V2));
-    private static final MappingBuilder UUID_MAPPING = WireMock.get(WireMock.urlEqualTo(UUID_PATH));
-
-    private static final SslConfiguration SSL_CONFIGURATION =
-            SslConfiguration.of(Paths.get("var/security/trustStore.jks"));
-
-    private int availablePort;
-    private String serverUri;
-
-    @Rule
-    public WireMockRule availableServer =
-            new WireMockRule(WireMockConfiguration.wireMockConfig().dynamicPort());
-
-    @Before
-    public void setup() {
-        availableServer.stubFor(UUID_MAPPING.willReturn(aResponse()
-                .withStatus(200)
-                .withBody(("\"" + REMOTE_UUID.toString() + "\"").getBytes(StandardCharsets.UTF_8))));
-
-        availableServer.stubFor(PING_MAPPING.willReturn(WireMock.aResponse().withStatus(204)));
-
-        availablePort = availableServer.port();
-        serverUri = String.format("http://%s:%s", WireMockConfiguration.DEFAULT_BIND_ADDRESS, availablePort);
-    }
-
-    @Test
-    public void doesNotFallbackOnPingWhenPingV2Responds() {
-        availableServer.stubFor(
-                PING_V2_MAPPING.willReturn(WireMock.aResponse().withStatus(200).withBody("{\"isLeader\":false}")));
-        getDefaultLeaderPinger().pingLeaderWithUuid(REMOTE_UUID);
-        assertPingV2RequestsMadeAreExactly(1);
-        assertLegacyPingRequestsMade(0);
-    }
-
-    @Test
-    public void fallbackOnPingWhenPingV2DoesNotExist() {
-        availableServer.stubFor(PING_V2_MAPPING.willReturn(WireMock.aResponse().withStatus(404)));
-        LeaderPinger pinger = getDefaultLeaderPinger();
-        pingMultipleTimes(pinger, 5);
-        assertPingV2RequestsMadeAreLessThan(5);
-        assertLegacyPingRequestsMade(5);
-    }
-
-    @Test
-    public void fallbackOnPingWhenPingV2ThrowsEvenWhenPingV2Exists() {
-        availableServer.stubFor(PING_V2_MAPPING.willReturn(WireMock.aResponse().withStatus(500)));
-        LeaderPinger pinger = getDefaultLeaderPinger();
-        pingMultipleTimes(pinger, 5);
-        assertPingV2RequestsMadeAreLessThan(5);
-        assertLegacyPingRequestsMade(5);
-    }
-
-    @Test
-    public void samplesRequestsToFailingPing2() {
-        availableServer.stubFor(PING_V2_MAPPING.willReturn(WireMock.aResponse().withStatus(500)));
-        LeaderPinger pinger = getDefaultLeaderPinger();
-        pingMultipleTimes(pinger, 100);
-        assertPingV2RequestsMadeAreLessThan(100);
-        assertLegacyPingRequestsMade(100);
-    }
-
-    private void assertPingV2RequestsMadeAreLessThan(int count) {
-        List<LoggedRequest> requests = WireMock.findAll(WireMock.getRequestedFor(WireMock.urlMatching(PING_V2)));
-        assertThat(requests).hasSizeLessThan(count);
-    }
-
-    private void assertPingV2RequestsMadeAreExactly(int count) {
-        List<LoggedRequest> requests = WireMock.findAll(WireMock.getRequestedFor(WireMock.urlMatching(PING_V2)));
-        assertThat(requests).hasSize(count);
-    }
-
-    private void assertLegacyPingRequestsMade(int count) {
-        List<LoggedRequest> requests = WireMock.findAll(WireMock.getRequestedFor(WireMock.urlMatching(PING)));
-        assertThat(requests).hasSize(count);
-    }
-
-    private void pingMultipleTimes(LeaderPinger pinger, int pingFrequency) {
-        IntStream.range(0, pingFrequency).forEach(idx -> pinger.pingLeaderWithUuid(REMOTE_UUID));
-    }
-
-    private LeaderPinger getDefaultLeaderPinger() {
-        return pingerWithVersion(OrderableSlsVersion.valueOf("1.1.1"));
-    }
-
-    private LeaderPinger pingerWithVersion(OrderableSlsVersion version) {
-        List<LeaderPingerContext<PingableLeader>> otherLeaders = Leaders.generatePingables(
-                ImmutableList.of(serverUri),
-                () -> RemotingClientConfigs.DEFAULT,
-                ServiceCreator.createTrustContext(Optional.of(SSL_CONFIGURATION)),
-                USER_AGENT);
-        return SingleLeaderPinger.createForTests(
-                ImmutableMap.of(otherLeaders.get(0), new CheckedRejectionExecutorService(executorService)),
-                Duration.ofSeconds(5),
-                LOCAL_UUID,
-                true,
-                Optional.of(version));
-    }
-}u}(jBU (9e7b73c46444e026c2cd8fb5f54efd1994d8b2dbjU hatlasdb-config/src/test/java/com/palantir/atlasdb/config/TransactionManagersAsyncInitializationTest.javajU modifiedjU K jU KjU KjU https://github.com/palantir/atlasdb/blob/e8c8a85c5f0afcc68fea533f4a9fec9add21a375/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.javajU https://github.com/palantir/atlasdb/raw/e8c8a85c5f0afcc68fea533f4a9fec9add21a375/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.javajU https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.java?ref=e8c8a85c5f0afcc68fea533f4a9fec9add21a375jU X  @@ -19,7 +19,6 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.Mockito.mock;
 
 import com.codahale.metrics.MetricRegistry;
 import com.google.common.collect.ImmutableSet;
@@ -36,7 +35,6 @@
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.time.Duration;
 import java.util.Map;
-import java.util.function.Consumer;
 import org.awaitility.Awaitility;
 import org.junit.Test;
 
@@ -45,8 +43,6 @@ public class TransactionManagersAsyncInitializationTest {
     private static final String USER_AGENT_VERSION = "3.1415926.5358979";
     private static final UserAgent USER_AGENT = UserAgent.of(UserAgent.Agent.of(USER_AGENT_NAME, USER_AGENT_VERSION));
 
-    private final Consumer<Object> registrar = mock(Consumer.class);
-
     @Test
     public void asyncInitializationEventuallySucceeds() {
         AtlasDbConfig atlasDbConfig = ImmutableAtlasDbConfig.builder()
@@ -59,7 +55,6 @@ public void asyncInitializationEventuallySucceeds() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema())
                 .build()
                 .serializable();
@@ -84,7 +79,6 @@ public void transactionManagersBuilderDoesNotThrowIfAsyncInitialisationFailsRepe
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema());
 
         assertThatCode(() -> build.build().serializable()).doesNotThrowAnyException();u}(jBU (585a157403a823c0508980c53cd0b7a7b7eb60fejU Jatlasdb-config/src/test/java/com/palantir/atlasdb/factory/LeadersTest.javajU removedjU K jU KjU KjU https://github.com/palantir/atlasdb/blob/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeadersTest.javajU https://github.com/palantir/atlasdb/raw/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeadersTest.javajU https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeadersTest.java?ref=0b1fd5b611a502e343acf2144c0e384c0ca64b3bjU X  @@ -1,128 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.factory;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoMoreInteractions;
-import static org.mockito.Mockito.when;
-
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Iterables;
-import com.palantir.atlasdb.config.RemotingClientConfig;
-import com.palantir.atlasdb.config.RemotingClientConfigs;
-import com.palantir.atlasdb.http.AtlasDbRemotingConstants;
-import com.palantir.conjure.java.api.config.ssl.SslConfiguration;
-import com.palantir.conjure.java.config.ssl.SslSocketFactories;
-import com.palantir.conjure.java.config.ssl.TrustContext;
-import com.palantir.paxos.PaxosAcceptor;
-import com.palantir.paxos.PaxosLearner;
-import com.palantir.paxos.PaxosValue;
-import java.nio.file.Paths;
-import java.util.List;
-import java.util.Optional;
-import java.util.function.Supplier;
-import org.junit.Test;
-
-public class LeadersTest {
-
-    private static final SslConfiguration SSL_CONFIGURATION =
-            SslConfiguration.of(Paths.get("var/security/trustStore.jks"));
-    private static final TrustContext TRUST_CONTEXT = SslSocketFactories.createTrustContext(SSL_CONFIGURATION);
-    private static final ImmutableSet<String> REMOTE_SERVICE_ADDRESSES =
-            ImmutableSet.of("https://foo:1234", "https://bar:5678");
-    private static final Supplier<RemotingClientConfig> REMOTING_CLIENT_CONFIG = () -> RemotingClientConfigs.DEFAULT;
-
-    @Test
-    public void canCreateProxyAndLocalListOfPaxosLearners() {
-        PaxosLearner localLearner = mock(PaxosLearner.class);
-        Optional<PaxosValue> presentPaxosValue = Optional.of(mock(PaxosValue.class));
-        when(localLearner.getGreatestLearnedValue()).thenReturn(presentPaxosValue);
-
-        List<PaxosLearner> paxosLearners = Leaders.createProxyAndLocalList(
-                localLearner,
-                REMOTE_SERVICE_ADDRESSES,
-                REMOTING_CLIENT_CONFIG,
-                Optional.of(TRUST_CONTEXT),
-                PaxosLearner.class,
-                AtlasDbRemotingConstants.DEFAULT_USER_AGENT);
-
-        assertThat(paxosLearners).hasSize(REMOTE_SERVICE_ADDRESSES.size() + 1);
-        paxosLearners.forEach(object -> assertThat(object).isNotNull());
-        assertThat(Iterables.getLast(paxosLearners).getGreatestLearnedValue()).isEqualTo(presentPaxosValue);
-        verify(localLearner).getGreatestLearnedValue();
-        verifyNoMoreInteractions(localLearner);
-    }
-
-    @Test
-    public void canCreateProxyAndLocalListOfPaxosAcceptors() {
-        PaxosAcceptor localAcceptor = mock(PaxosAcceptor.class);
-        when(localAcceptor.getLatestSequencePreparedOrAccepted()).thenReturn(1L);
-
-        List<PaxosAcceptor> paxosAcceptors = Leaders.createProxyAndLocalList(
-                localAcceptor,
-                REMOTE_SERVICE_ADDRESSES,
-                REMOTING_CLIENT_CONFIG,
-                Optional.of(TRUST_CONTEXT),
-                PaxosAcceptor.class,
-                AtlasDbRemotingConstants.DEFAULT_USER_AGENT);
-
-        assertThat(paxosAcceptors).hasSize(REMOTE_SERVICE_ADDRESSES.size() + 1);
-        paxosAcceptors.forEach(object -> assertThat(object).isNotNull());
-
-        assertThat(Iterables.getLast(paxosAcceptors).getLatestSequencePreparedOrAccepted())
-                .isEqualTo(1L);
-        verify(localAcceptor).getLatestSequencePreparedOrAccepted();
-        verifyNoMoreInteractions(localAcceptor);
-    }
-
-    @Test
-    public void createProxyAndLocalListCreatesSingletonListIfNoRemoteAddressesProvided() {
-        PaxosAcceptor localAcceptor = mock(PaxosAcceptor.class);
-        when(localAcceptor.getLatestSequencePreparedOrAccepted()).thenReturn(1L);
-
-        List<PaxosAcceptor> paxosAcceptors = Leaders.createProxyAndLocalList(
-                localAcceptor,
-                ImmutableSet.of(),
-                REMOTING_CLIENT_CONFIG,
-                Optional.of(TRUST_CONTEXT),
-                PaxosAcceptor.class,
-                AtlasDbRemotingConstants.DEFAULT_USER_AGENT);
-
-        assertThat(paxosAcceptors).hasSize(1);
-
-        assertThat(Iterables.getLast(paxosAcceptors).getLatestSequencePreparedOrAccepted())
-                .isEqualTo(1L);
-        verify(localAcceptor).getLatestSequencePreparedOrAccepted();
-        verifyNoMoreInteractions(localAcceptor);
-    }
-
-    @Test
-    public void createProxyAndLocalListThrowsIfNullClassProvided() {
-        PaxosAcceptor localAcceptor = mock(PaxosAcceptor.class);
-
-        assertThatThrownBy(() -> Leaders.createProxyAndLocalList(
-                        localAcceptor,
-                        REMOTE_SERVICE_ADDRESSES,
-                        REMOTING_CLIENT_CONFIG,
-                        Optional.of(TRUST_CONTEXT),
-                        null,
-                        AtlasDbRemotingConstants.DEFAULT_USER_AGENT))
-                .isInstanceOf(NullPointerException.class);
-    }
-}u}(jBU (360102d14ff82589705d04df09668125a763d2bdjU Jatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/AtlasDbEteServer.javajU modifiedjU K jU KjU KjU https://github.com/palantir/atlasdb/blob/e8c8a85c5f0afcc68fea533f4a9fec9add21a375/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbEteServer.javajU https://github.com/palantir/atlasdb/raw/e8c8a85c5f0afcc68fea533f4a9fec9add21a375/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbEteServer.javajU https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbEteServer.java?ref=e8c8a85c5f0afcc68fea533f4a9fec9add21a375jU X  @@ -203,7 +203,6 @@ private TransactionManager createTransactionManager(
                 .userAgent(UserAgent.of(UserAgent.Agent.of("atlasdb-ete-test", "0.0.0")))
                 .globalMetricsRegistry(environment.metrics())
                 .globalTaggedMetricRegistry(taggedMetricRegistry)
-                .registrar(environment.jersey()::register)
                 .addAllSchemas(ETE_SCHEMAS)
                 .runtimeConfigSupplier(() -> atlasDbRuntimeConfigOptional)
                 .build()u}(jBU (87cf95107ba7694161f7107c671122a0577e4fccjU \atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/factory/TransactionManagersTest.javajU modifiedjU KjU KjU KjU https://github.com/palantir/atlasdb/blob/e8c8a85c5f0afcc68fea533f4a9fec9add21a375/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javajU https://github.com/palantir/atlasdb/raw/e8c8a85c5f0afcc68fea533f4a9fec9add21a375/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javajU https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.java?ref=e8c8a85c5f0afcc68fea533f4a9fec9add21a375jU XA  @@ -17,19 +17,14 @@
 
 import static com.github.tomakehurst.wiremock.client.WireMock.aResponse;
 import static com.github.tomakehurst.wiremock.client.WireMock.containing;
-import static com.github.tomakehurst.wiremock.client.WireMock.equalTo;
 import static com.github.tomakehurst.wiremock.client.WireMock.findAll;
 import static com.github.tomakehurst.wiremock.client.WireMock.get;
-import static com.github.tomakehurst.wiremock.client.WireMock.getRequestedFor;
 import static com.github.tomakehurst.wiremock.client.WireMock.post;
 import static com.github.tomakehurst.wiremock.client.WireMock.postRequestedFor;
 import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo;
 import static com.github.tomakehurst.wiremock.client.WireMock.urlMatching;
 import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.ArgumentMatchers.isA;
-import static org.mockito.Mockito.doAnswer;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
@@ -41,7 +36,6 @@
 import com.github.tomakehurst.wiremock.junit.WireMockRule;
 import com.github.tomakehurst.wiremock.verification.LoggedRequest;
 import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -76,8 +70,6 @@
 import com.palantir.conjure.java.api.config.service.UserAgents;
 import com.palantir.conjure.java.api.config.ssl.SslConfiguration;
 import com.palantir.dialogue.clients.DialogueClients;
-import com.palantir.leader.PingableLeader;
-import com.palantir.leader.proxy.AwaitingLeadershipProxy;
 import com.palantir.lock.AutoDelegate_LockService;
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRefreshToken;
@@ -89,7 +81,6 @@
 import com.palantir.lock.TimeDuration;
 import com.palantir.lock.impl.LockServiceImpl;
 import com.palantir.lock.v2.LockResponse;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.refreshable.Refreshable;
 import com.palantir.refreshable.SettableRefreshable;
 import com.palantir.timelock.feedback.ConjureTimeLockClientFeedback;
@@ -99,17 +90,14 @@
 import com.palantir.timestamp.TimestampStoreInvalidator;
 import com.palantir.tokens.auth.AuthHeader;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
-import com.palantir.tritium.metrics.registry.MetricName;
 import java.io.IOException;
 import java.nio.charset.StandardCharsets;
 import java.nio.file.Paths;
 import java.time.Duration;
 import java.util.Collection;
 import java.util.List;
-import java.util.Map;
 import java.util.Optional;
 import java.util.UUID;
-import java.util.concurrent.CompletableFuture;
 import java.util.concurrent.TimeUnit;
 import java.util.function.Consumer;
 import java.util.function.Supplier;
@@ -165,7 +153,6 @@ public class TransactionManagersTest {
     private AtlasDbConfig config;
     private AtlasDbRuntimeConfig mockAtlasDbRuntimeConfig;
 
-    private Consumer<Object> registrar;
     private TimestampStoreInvalidator invalidator;
     private Consumer<Runnable> originalAsyncMethod;
 
@@ -208,8 +195,6 @@ public void setUp() {
         when(mockAtlasDbRuntimeConfig.timelockRuntime()).thenReturn(Optional.empty());
         when(mockAtlasDbRuntimeConfig.remotingClient()).thenReturn(RemotingClientConfigs.DEFAULT);
 
-        registrar = mock(Consumer.class);
-
         invalidator = mock(TimestampStoreInvalidator.class);
         when(invalidator.backupAndInvalidate()).thenReturn(EMBEDDED_BOUND);
 
@@ -236,7 +221,6 @@ public void cannotProvideRuntimeConfigTwice() {
                         .userAgent(USER_AGENT)
                         .globalMetricsRegistry(new MetricRegistry())
                         .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                        .registrar(registrar)
                         .runtimeConfig(Refreshable.only(Optional.empty()))
                         .runtimeConfigSupplier(Optional::empty)
                         .build())
@@ -250,55 +234,8 @@ public void userAgentsPresentOnRequestsToRemoteTimestampAndLockServices() {
         verifyUserAgentOnRawTimestampAndLockRequests();
     }
 
-    @Test
-    public void userAgentsPresentOnRequestsWithLeaderBlockConfigured() throws IOException {
-        setUpLeaderBlockInConfig();
-
-        verifyUserAgentOnRawTimestampAndLockRequests();
-    }
-
-    @Test
-    public void remoteCallsStillMadeIfPingableLeader404s() throws IOException {
-        setUpForRemoteServices();
-        setUpLeaderBlockInConfig();
-
-        LockAndTimestampServices lockAndTimestamp = getLockAndTimestampServices();
-        availableServer.verify(getRequestedFor(urlMatching(LEADER_UUID_PATH)));
-
-        lockAndTimestamp.timelock().getFreshTimestamp();
-        lockAndTimestamp.lock().currentTimeMillis();
-
-        // TODO (jkong): Assert v2 once we move Leader Block to v2 as well
-        availableServer.verify(postRequestedFor(urlMatching(TIMESTAMP_PATH))
-                .withHeader(USER_AGENT_HEADER, containing(EXPECTED_USER_AGENT_STRING)));
-        availableServer.verify(postRequestedFor(urlMatching(LOCK_PATH))
-                .withHeader(USER_AGENT_HEADER, containing(EXPECTED_USER_AGENT_STRING)));
-    }
-
-    @Test
-    public void remoteCallsElidedIfTalkingToLocalServer() throws IOException {
-        setUpForLocalServices();
-        setUpLeaderBlockInConfig();
-
-        LockAndTimestampServices lockAndTimestamp = getLockAndTimestampServices();
-        availableServer.verify(getRequestedFor(urlMatching(LEADER_UUID_PATH)));
-
-        lockAndTimestamp.timelock().getFreshTimestamp();
-        lockAndTimestamp.lock().currentTimeMillis();
-
-        availableServer.verify(
-                0,
-                postRequestedFor(urlMatching(TIMESTAMP_PATH))
-                        .withHeader(USER_AGENT_HEADER, equalTo(EXPECTED_USER_AGENT_STRING)));
-        availableServer.verify(
-                0,
-                postRequestedFor(urlMatching(LOCK_PATH))
-                        .withHeader(USER_AGENT_HEADER, equalTo(EXPECTED_USER_AGENT_STRING)));
-    }
-
     @Test
     public void tryUnlockIsAsync() throws IOException {
-        setUpForLocalServices();
         setUpLeaderBlockInConfig();
 
         ThreadLocal<Boolean> inRequest = ThreadLocal.withInitial(() -> false);
@@ -351,7 +288,6 @@ public void setsGlobalDefaultLockTimeout() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .build()
                 .serializable();
 
@@ -412,7 +348,6 @@ public void runsClosingCallbackOnShutdown() throws Exception {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .build()
                 .serializable();
         manager.registerClosingCallback(callback);
@@ -432,7 +367,6 @@ public void keyValueServiceMetricsDoNotContainUserAgent() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .build()
                 .serializable();
         assertThat(metrics.getNames().stream().anyMatch(metricName -> metricName.contains(USER_AGENT_NAME)))
@@ -453,7 +387,6 @@ public void overriddenServiceNameIsReturned() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .serviceIdentifierOverride("overriden")
                 .build();
 
@@ -473,7 +406,6 @@ public void serviceNameIsFetchedFromAtlasConfig() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .build();
         assertThat(transactionManagers.serviceName()).isEqualTo("namespace");
     }
@@ -493,7 +425,6 @@ public void serviceNameIsFetchedFromKvsConfigWhenItIsNotPresentInAtlasConfig() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .build();
 
         assertThat(transactionManagers.serviceName()).isEqualTo("namespace");
@@ -510,42 +441,11 @@ public void serviceNameFallsBackToDefaultWhenNamespaceIsNotPresent() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .build();
 
         assertThat(transactionManagers.serviceName()).isEqualTo("UNKNOWN");
     }
 
-    @Test
-    public void interruptingLocalLeaderElectionTerminates() throws IOException {
-        Leaders.LocalPaxosServices localPaxosServices = Leaders.createAndRegisterLocalServices(
-                metricsManager,
-                registrar,
-                ImmutableLeaderConfig.builder()
-                        .localServer("https://example")
-                        .quorumSize(1)
-                        .addLeaders("https://example")
-                        .acceptorLogDir(temporaryFolder.newFolder())
-                        .learnerLogDir(temporaryFolder.newFolder())
-                        .build(),
-                USER_AGENT);
-        LockService lockService = LockServiceImpl.create();
-        LockService leadershipLock = AwaitingLeadershipProxy.newProxyInstance(
-                LockService.class, () -> lockService, localPaxosServices.leadershipCoordinator());
-        LockService localOrRemoteLock = LocalOrRemoteProxy.newProxyInstance(
-                LockService.class, leadershipLock, null, CompletableFuture.completedFuture(true));
-        try {
-            Thread.currentThread().interrupt();
-            assertThatCode(localOrRemoteLock::currentTimeMillis)
-                    .as("proxy correctly handles interrupts")
-                    .isInstanceOf(SafeIllegalStateException.class);
-            assertThat(Thread.currentThread().isInterrupted()).isTrue();
-        } finally {
-            // clear the interrupt flag to avoid affecting future tests
-            Thread.interrupted();
-        }
-    }
-
     @Test
     public void grabImmutableTsLockIsConfiguredWithBuilderOption() {
         TransactionConfig transactionConfig =
@@ -593,31 +493,18 @@ private TransactionManagers withLockImmutableTsOnReadOnlyTransaction(boolean opt
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .lockImmutableTsOnReadOnlyTransactions(option)
                 .build();
     }
 
     @Test
-    public void metricsAreNotDirectlyReportedFromLocalService() throws IOException {
-        setUpForLocalServices();
+    public void metricsAreReportedWhenUsingEmbeddedService() throws IOException {
         setUpLeaderBlockInConfig();
 
-        assertThatTimeAndLockMetricsAreNotRecorded(
+        assertThatTimeAndLockMetricsAreRecorded(
                 TIMESTAMP_SERVICE_FRESH_TIMESTAMP_METRIC, LOCK_SERVICE_CURRENT_TIME_METRIC);
     }
 
-    @Test
-    public void metricsAreReportedExactlyOnceWhenUsingRemoteService() throws IOException {
-        setUpForRemoteServices();
-        setUpLeaderBlockInConfig();
-
-        assertThatTimeAndLockMetricsWithTagsAreRecorded(
-                TIMESTAMP_SERVICE_FRESH_TIMESTAMP_METRIC,
-                NAMESPACE_AGNOSTIC_LOCK_RPC_CLIENT_CURRENT_TIME_METRIC,
-                ImmutableMap.of());
-    }
-
     @Test
     public void timeLockMigrationReportsReadyIfMigrationDone() {
         when(migrator.isInitialized()).thenReturn(true);
@@ -699,7 +586,6 @@ private KeyValueService initializeKeyValueServiceWithSweepSettings(boolean enabl
                 .userAgent(UserAgent.of(UserAgent.Agent.of("test", "0.0.0")))
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema())
                 .runtimeConfigSupplier(() -> Optional.of(atlasDbRuntimeConfig))
                 .build()
@@ -715,7 +601,7 @@ private static boolean isSweepStatsKvsPresentInDelegatingChain(KeyValueService k
         return services.stream().anyMatch(TransactionManagersTest::isSweepStatsKvsPresentInDelegatingChain);
     }
 
-    private void assertThatTimeAndLockMetricsAreNotRecorded(String timestampMetric, String lockMetric) {
+    private void assertThatTimeAndLockMetricsAreRecorded(String timestampMetric, String lockMetric) {
         assertThat(metricsManager.getRegistry().timer(timestampMetric).getCount())
                 .isEqualTo(0L);
         assertThat(metricsManager.getRegistry().timer(lockMetric).getCount()).isEqualTo(0L);
@@ -725,51 +611,8 @@ private void assertThatTimeAndLockMetricsAreNotRecorded(String timestampMetric,
         lockAndTimestamp.timelock().currentTimeMillis();
 
         assertThat(metricsManager.getRegistry().timer(timestampMetric).getCount())
-                .isEqualTo(0L);
-        assertThat(metricsManager.getRegistry().timer(lockMetric).getCount()).isEqualTo(0L);
-    }
-
-    private void assertThatTimeAndLockMetricsWithTagsAreRecorded(
-            String timestampMetric, String lockMetric, Map<String, String> tags) {
-        MetricName timestampMetricName = MetricName.builder()
-                .safeName(timestampMetric)
-                .putAllSafeTags(tags)
-                .build();
-        MetricName lockMetricName =
-                MetricName.builder().safeName(lockMetric).putAllSafeTags(tags).build();
-
-        assertThat(metricsManager.getTaggedRegistry().timer(timestampMetricName).getCount())
-                .isEqualTo(0L);
-        assertThat(metricsManager.getTaggedRegistry().timer(lockMetricName).getCount())
-                .isEqualTo(0L);
-
-        LockAndTimestampServices lockAndTimestamp = getLockAndTimestampServices();
-        lockAndTimestamp.timelock().getFreshTimestamp();
-        lockAndTimestamp.timelock().currentTimeMillis();
-
-        assertThat(metricsManager.getTaggedRegistry().timer(timestampMetricName).getCount())
                 .isEqualTo(1L);
-        assertThat(metricsManager.getTaggedRegistry().timer(lockMetricName).getCount())
-                .isEqualTo(1L);
-    }
-
-    private void setUpForLocalServices() throws IOException {
-        doAnswer(invocation -> {
-                    // Configure our server to reply with the same server ID as the registered PingableLeader.
-                    PingableLeader localPingableLeader = invocation.getArgument(0);
-                    availableServer.stubFor(LEADER_UUID_MAPPING.willReturn(aResponse()
-                            .withStatus(200)
-                            .withBody(("\"" + localPingableLeader.getUUID() + "\"").getBytes(StandardCharsets.UTF_8))));
-                    return null;
-                })
-                .when(registrar)
-                .accept(isA(PingableLeader.class));
-        setUpLeaderBlockInConfig();
-    }
-
-    private void setUpForRemoteServices() throws IOException {
-        availableServer.stubFor(LEADER_UUID_MAPPING.willReturn(aResponse().withStatus(404)));
-        setUpLeaderBlockInConfig();
+        assertThat(metricsManager.getRegistry().timer(lockMetric).getCount()).isEqualTo(1L);
     }
 
     private void setUpTimeLockBlockInRuntimeConfig() {
@@ -807,7 +650,6 @@ private LockAndTimestampServices getLockAndTimestampServices() {
                         metricsManager,
                         config,
                         Refreshable.only(mockAtlasDbRuntimeConfig),
-                        registrar,
                         LockServiceImpl::create,
                         () -> ts,
                         invalidator,u}(jBU (465c3ad670a2e06fe778e928a4854e0ba076f445jU $changelog/@unreleased/pr-6674.v2.ymljU addedjU KjU K jU KjU |https://github.com/palantir/atlasdb/blob/e8c8a85c5f0afcc68fea533f4a9fec9add21a375/changelog%2F%40unreleased%2Fpr-6674.v2.ymljU {https://github.com/palantir/atlasdb/raw/e8c8a85c5f0afcc68fea533f4a9fec9add21a375/changelog%2F%40unreleased%2Fpr-6674.v2.ymljU https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6674.v2.yml?ref=e8c8a85c5f0afcc68fea533f4a9fec9add21a375jU X^  @@ -0,0 +1,7 @@
+type: improvement
+improvement:
+  description: Multi-node embedded time and lock services are no longer supported.
+    Leader configs with a single node and quorum of 1 will function the same as embedded
+    time and lock, and all other leader configurations will fail.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6674ueu(3ea79b6a37142a08854ef5ee1d614fff8e94bcab}(sha(3ea79b6a37142a08854ef5ee1d614fff8e94bcabnode_idEC_kwDOAjP5fdoAKDNlYTc5YjZhMzcxNDJhMDg4NTRlZjVlZTFkNjE0ZmZmOGU5NGJjYWIcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-06-29T16:33:43Zu	committer}(jV GitHubjV noreply@github.comjV 2023-06-29T16:33:43ZumessageUpdate atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIterator.java

Co-authored-by: Patrick Koenig <pkoenig10@gmail.com>tree}(jV (5c3bd2deea387d5e44bc02ab2f0a73bc539ecc79url`https://api.github.com/repos/palantir/atlasdb/git/trees/5c3bd2deea387d5e44bc02ab2f0a73bc539ecc79uj)V bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3ea79b6a37142a08854ef5ee1d614fff8e94bcab
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJknbJnCRBK7hj4Ov3rIwAAYEUIAFN9bxOVBwo3Dg14AtNo23O1
00OtP993P5QWyKDyXF4Q+Ob30wu+0i6TtsbGfIIpvyU2Y80QzejRb2ARkmBDEbGg
JFBfbVA7UnsuSC9Me81EkdpHqxKACDkqxuWpt40TT6BOiYNfPMC/tNS5rNkevXSI
LsmMk9PX4Y1yzuoRcO7VLCpZeVN8qKdBUm17phKqKyBf5mbshDP7CPJGwT2wFv28
o0+opUECLGZJ6E7FPRyAALu1efnuGaKn4jCvsOSL9MnRHc1jt1X0FEOoucnG7YHt
5UKmPJjA4USKdlccEE6gRimhd751mF1+FNTu0xYFt4mLUBOLC8bjUpBeYm+tFYM=
=wrk0
-----END PGP SIGNATURE-----
payloadXw  tree 5c3bd2deea387d5e44bc02ab2f0a73bc539ecc79
parent c23d99e290325fb551f322d046def72b6f5ae7bf
author Sam-Kramer <sam.c.kramer@gmail.com> 1688056423 +0100
committer GitHub <noreply@github.com> 1688056423 +0100

Update atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIterator.java

Co-authored-by: Patrick Koenig <pkoenig10@gmail.com>uuj)V ^https://api.github.com/repos/palantir/atlasdb/commits/3ea79b6a37142a08854ef5ee1d614fff8e94bcabhtml_urlShttps://github.com/palantir/atlasdb/commit/3ea79b6a37142a08854ef5ee1d614fff8e94bcabcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3ea79b6a37142a08854ef5ee1d614fff8e94bcab/commentsjV }(login
Sam-KrameridJ^2_ jV MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j)V 'https://api.github.com/users/Sam-Kramerj7V https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujV }(j<V web-flowj>V J/jV MDQ6VXNlcjE5ODY0NDQ3j@V 4https://avatars.githubusercontent.com/u/19864447?v=4jBV h5j)V %https://api.github.com/users/web-flowj7V https://github.com/web-flowjEV /https://api.github.com/users/web-flow/followersjGV <https://api.github.com/users/web-flow/following{/other_user}jIV 5https://api.github.com/users/web-flow/gists{/gist_id}jKV <https://api.github.com/users/web-flow/starred{/owner}{/repo}jMV 3https://api.github.com/users/web-flow/subscriptionsjOV *https://api.github.com/users/web-flow/orgsjQV +https://api.github.com/users/web-flow/reposjSV 6https://api.github.com/users/web-flow/events{/privacy}jUV 5https://api.github.com/users/web-flow/received_eventsjWV UserjYV uparents]}(jV (c23d99e290325fb551f322d046def72b6f5ae7bfj)V ^https://api.github.com/repos/palantir/atlasdb/commits/c23d99e290325fb551f322d046def72b6f5ae7bfj7V Shttps://github.com/palantir/atlasdb/commit/c23d99e290325fb551f322d046def72b6f5ae7bfuastats}(totalK	additionsK	deletionsKufiles]}(jV (7a82454ff69de08f9c4fd75af15bdbae8618142afilenamehatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIterator.javastatusmodifiedjsV KjtV KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/3ea79b6a37142a08854ef5ee1d614fff8e94bcab/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javaraw_urlhttps://github.com/palantir/atlasdb/raw/3ea79b6a37142a08854ef5ee1d614fff8e94bcab/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.java?ref=3ea79b6a37142a08854ef5ee1d614fff8e94bcabpatchX  @@ -75,7 +75,7 @@ int getBestBatchSize() {
             batchSize = Math.min(
                     (long) Math.ceil(originalBatchSize * (numReturned / (double) numNotDeleted)), maxNewBatchSize);
         }
-        return (int) Math.min(batchSize, Math.min(maxBatchSize, AtlasDbPerformanceConstants.MAX_BATCH_SIZE));
+        return (int) Math.min(batchSize, maxBatchSize);
     }
 
     private void updateResultsIfNeeded() {uau(8dd47179d8862282fb4a094308e26b5b65e8dcf3}(sha(8dd47179d8862282fb4a094308e26b5b65e8dcf3node_idEC_kwDOAjP5fdoAKDhkZDQ3MTc5ZDg4NjIyODJmYjRhMDk0MzA4ZTI2YjViNjVlOGRjZjMcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-22T09:44:17Zu	committer}(jV 
Ahmed AlouanejV aalouane@palantir.comjV 2023-05-22T09:44:17Zumessagecompile compiletree}(jV (513f3ca80c853421e6198d8fd0b383d4b5bf2740url`https://api.github.com/repos/palantir/atlasdb/git/trees/513f3ca80c853421e6198d8fd0b383d4b5bf2740ujV bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8dd47179d8862282fb4a094308e26b5b65e8dcf3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRrOXEACgkQPlMHVIT1
yhpNMQgAjaW/sKldYyoiqtEr6Ukwql7I0Sd8/cmkZc4KoF5LlM0nw/GXsFxtV8Xj
gpaEQ7R2vBcOSO0lXh1ID+ryrgGEzyWJf7VcLPRRh08gXSK1P0Hl+SCSM2IB1Jm8
NuwA+gYytkNopQAfAM39EvN4WWzwWamMVOIW0FmCW02C4lvEt7EQ4Uz0wyRXxTzm
8fvOh8b6akHASk/Dy0whAzhlK372DRiIsNaKKDo8BPLhPoE96jWluWAtMctPU3Ni
uEzGjmj7RMMjgkyDq5o5WNzZfzIh8HPZyLSoO5bzH9+iSowrVkbBmxC6C8e+JsbA
hA9q4IdqzT/lxMnuvN6hKXQRNuKlsw==
=9vcD
-----END PGP SIGNATURE-----payloadtree 513f3ca80c853421e6198d8fd0b383d4b5bf2740
parent e7df74ecf5fc82df65b0ffe8ebefe0752841f299
author Ahmed Alouane <aalouane@palantir.com> 1684748657 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684748657 +0100

compile compile
uujV ^https://api.github.com/repos/palantir/atlasdb/commits/8dd47179d8862282fb4a094308e26b5b65e8dcf3html_urlShttps://github.com/palantir/atlasdb/commit/8dd47179d8862282fb4a094308e26b5b65e8dcf3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8dd47179d8862282fb4a094308e26b5b65e8dcf3/commentsjV }(loginergo14idJjV MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jV #https://api.github.com/users/ergo14jV https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujV }(jV ergo14jV JjV MDQ6VXNlcjMwOTAzNzM2jV 4https://avatars.githubusercontent.com/u/30903736?v=4jV h5jV #https://api.github.com/users/ergo14jV https://github.com/ergo14jV -https://api.github.com/users/ergo14/followersjV :https://api.github.com/users/ergo14/following{/other_user}jV 3https://api.github.com/users/ergo14/gists{/gist_id}jV :https://api.github.com/users/ergo14/starred{/owner}{/repo}jV 1https://api.github.com/users/ergo14/subscriptionsjV (https://api.github.com/users/ergo14/orgsjV )https://api.github.com/users/ergo14/reposjV 4https://api.github.com/users/ergo14/events{/privacy}jV 3https://api.github.com/users/ergo14/received_eventsjV UserjV uparents]}(jV (e7df74ecf5fc82df65b0ffe8ebefe0752841f299jV ^https://api.github.com/repos/palantir/atlasdb/commits/e7df74ecf5fc82df65b0ffe8ebefe0752841f299jV Shttps://github.com/palantir/atlasdb/commit/e7df74ecf5fc82df65b0ffe8ebefe0752841f299uastats}(totalK	additionsK	deletionsKufiles]}(jV (2d070de9f2347fae910c495c00df2d88e302557dfilename.circleci/config.ymlstatusmodifiedjV KjV KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/8dd47179d8862282fb4a094308e26b5b65e8dcf3/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/8dd47179d8862282fb4a094308e26b5b65e8dcf3/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=8dd47179d8862282fb4a094308e26b5b65e8dcf3patchXS  @@ -151,16 +151,25 @@ workflows:
               only: /.*/
       - test-suite:
           requires: [build]
+          matrix:
+            alias: compile
+            parameters:
+              suite: [13]
+          filters:
+            tags:
+              only: /.*/
+      - test-suite:
+          requires: [build, compile]
           matrix:
             alias: test-no-tl
             parameters:
               # intentionally excluding 12 (TimeLock migration ETE test) from this collection
-              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13]
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
           filters:
             tags:
               only: /.*/
       - test-suite:
-          requires: [build]
+          requires: [build, compile]
           matrix:
             alias: test-tl
             parameters:
@@ -181,7 +190,7 @@ workflows:
             branches:
               ignore: [develop]
       - deploy:
-          requires: [build, test]
+          requires: [build, compile, test]
           filters:
             branches:
               only: developuau(d86b24fa91436ec0ce2e3f848d58f73b173d553a}(sha(d86b24fa91436ec0ce2e3f848d58f73b173d553anode_idEC_kwDOAjP5fdoAKGQ4NmIyNGZhOTE0MzZlYzBjZTJlM2Y4NDhkNThmNzNiMTczZDU1M2Ecommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-05-23T09:15:13Zu	committer}(jW 
svc-changelogj	W svc-changelog@palantir.comjW 2023-05-23T09:15:13ZumessageAdd generated changelog entriestree}(jV (65a43e504ccf4d0231d45c2a007a404068268f21url`https://api.github.com/repos/palantir/atlasdb/git/trees/65a43e504ccf4d0231d45c2a007a404068268f21ujW bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d86b24fa91436ec0ce2e3f848d58f73b173d553a
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmRshCEJEHYaJX37fAFQAAAbQwD/W5Qfy+BrGC+ZdRxs7CELZoAD
WkXOPYbVfU9IPSMKutQA/ia885f9PUZoF/0fid70FIT++8DD9+Bdb1Znpk5NpVSz
=6U/m
-----END PGP SIGNATURE-----payloadX  tree 65a43e504ccf4d0231d45c2a007a404068268f21
parent 89336fa97190f7458f586878a4eca74524a46553
author svc-changelog <svc-changelog@palantir.com> 1684833313 +0000
committer svc-changelog <svc-changelog@palantir.com> 1684833313 +0000

Add generated changelog entriesuujW ^https://api.github.com/repos/palantir/atlasdb/commits/d86b24fa91436ec0ce2e3f848d58f73b173d553ahtml_urlShttps://github.com/palantir/atlasdb/commit/d86b24fa91436ec0ce2e3f848d58f73b173d553acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d86b24fa91436ec0ce2e3f848d58f73b173d553a/commentsjW }(login
svc-changelogidJ#jW MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jW *https://api.github.com/users/svc-changelogj%W  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj
W }(j*W 
svc-changelogj,W J#jW MDQ6VXNlcjg0MDc3NjAzj.W 4https://avatars.githubusercontent.com/u/84077603?v=4j0W h5jW *https://api.github.com/users/svc-changelogj%W  https://github.com/svc-changelogj3W 4https://api.github.com/users/svc-changelog/followersj5W Ahttps://api.github.com/users/svc-changelog/following{/other_user}j7W :https://api.github.com/users/svc-changelog/gists{/gist_id}j9W Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j;W 8https://api.github.com/users/svc-changelog/subscriptionsj=W /https://api.github.com/users/svc-changelog/orgsj?W 0https://api.github.com/users/svc-changelog/reposjAW ;https://api.github.com/users/svc-changelog/events{/privacy}jCW :https://api.github.com/users/svc-changelog/received_eventsjEW UserjGW uparents]}(jV (89336fa97190f7458f586878a4eca74524a46553jW ^https://api.github.com/repos/palantir/atlasdb/commits/89336fa97190f7458f586878a4eca74524a46553j%W Shttps://github.com/palantir/atlasdb/commit/89336fa97190f7458f586878a4eca74524a46553uastats}(totalK	additionsK	deletionsK ufiles]}(jV (24da7696d056cef662a3a0936f5eaef73ca2f9f2filename$changelog/@unreleased/pr-6581.v2.ymlstatusaddedjaW KjbW K changesKblob_url|https://github.com/palantir/atlasdb/blob/d86b24fa91436ec0ce2e3f848d58f73b173d553a/changelog%2F%40unreleased%2Fpr-6581.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/d86b24fa91436ec0ce2e3f848d58f73b173d553a/changelog%2F%40unreleased%2Fpr-6581.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6581.v2.yml?ref=d86b24fa91436ec0ce2e3f848d58f73b173d553apatch@@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Add leading/nested loop hints on Oracle delete overflow related SQL
+    to improve perf
+  links:
+  - https://github.com/palantir/atlasdb/pull/6581uau(ecb3c75c61d24925e3b0bf2584ad7b3640cab18c}(sha(ecb3c75c61d24925e3b0bf2584ad7b3640cab18cnode_idEC_kwDOAjP5fdoAKGVjYjNjNzVjNjFkMjQ5MjVlM2IwYmYyNTg0YWQ3YjM2NDBjYWIxOGMcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-05-23T14:43:13Zu	committer}(j~W Lucas MeirelesjW meireles31@msn.comjW 2023-05-23T14:43:13Zumessage1also emit duration timer for txns that dont writetree}(jvW (dbc207ff268157fba5659b1ea25411314911d3bcurl`https://api.github.com/repos/palantir/atlasdb/git/trees/dbc207ff268157fba5659b1ea25411314911d3bcujW bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ecb3c75c61d24925e3b0bf2584ad7b3640cab18c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmRs0QEACgkQJd22kJ7J
GiwAIwf+Llzl5ncGwOEOh1wvs7BT9XJwX/Z2Pb7q844Q38I2hZkqIkJ7IrbTjfU4
2gdRjy0zKb90pG8FcKEkyp8IUy6dR883DJB5pAQ7cpG/tA5k8M0QuCX19g1VySmf
3c8BYCdPhteeodQIz5oV3JUZx6DLooZ7F50S32f3HXhG43quxSXOYmKiTte4CVhP
/154RnhQslf1/CdzB6Si0Ogm+mX/OSjxwpA8bVi552EYWELeuoUHiRyh52aGm5g2
DKu5PJNg0pLRQTLZ5WtSXOWmcp7GhQl/qfCM13Lt/an4WajHrzrXH7wE4sR2UWdY
oyQ7NiUAaSxsTgykdjFcoaNhQ+Dmmw==
=AdLj
-----END PGP SIGNATURE-----payloadX  tree dbc207ff268157fba5659b1ea25411314911d3bc
parent 95319b3810b65eb1de3bfc0aceea137ab1bab294
author Lucas Meireles <meireles31@msn.com> 1684852993 +0100
committer Lucas Meireles <meireles31@msn.com> 1684852993 +0100

also emit duration timer for txns that dont write
uujW ^https://api.github.com/repos/palantir/atlasdb/commits/ecb3c75c61d24925e3b0bf2584ad7b3640cab18chtml_urlShttps://github.com/palantir/atlasdb/commit/ecb3c75c61d24925e3b0bf2584ad7b3640cab18ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ecb3c75c61d24925e3b0bf2584ad7b3640cab18c/commentsj|W }(loginLucasIMEidJg jxW MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jW %https://api.github.com/users/LucasIMEjW https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujW }(jW LucasIMEjW Jg jxW MDQ6VXNlcjY3ODczMTE=jW 3https://avatars.githubusercontent.com/u/6787311?v=4jW h5jW %https://api.github.com/users/LucasIMEjW https://github.com/LucasIMEjW /https://api.github.com/users/LucasIME/followersjW <https://api.github.com/users/LucasIME/following{/other_user}jW 5https://api.github.com/users/LucasIME/gists{/gist_id}jW <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jW 3https://api.github.com/users/LucasIME/subscriptionsjW *https://api.github.com/users/LucasIME/orgsjW +https://api.github.com/users/LucasIME/reposjW 6https://api.github.com/users/LucasIME/events{/privacy}jW 5https://api.github.com/users/LucasIME/received_eventsjW UserjW uparents]}(jvW (95319b3810b65eb1de3bfc0aceea137ab1bab294jW ^https://api.github.com/repos/palantir/atlasdb/commits/95319b3810b65eb1de3bfc0aceea137ab1bab294jW Shttps://github.com/palantir/atlasdb/commit/95319b3810b65eb1de3bfc0aceea137ab1bab294uastats}(totalK	additionsK	deletionsKufiles]}(jvW (0f456d0aaf89381bfb08472ea4adb3e89002770efilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedjW KjW KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ecb3c75c61d24925e3b0bf2584ad7b3640cab18c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ecb3c75c61d24925e3b0bf2584ad7b3640cab18c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=ecb3c75c61d24925e3b0bf2584ad7b3640cab18cpatchXE  @@ -1950,8 +1950,10 @@ private void commitWrites(TransactionService transactionService) {
                 if (validationNecessaryForInvolvedTablesOnCommit()) {
                     throwIfImmutableTsOrCommitLocksExpired(null);
                 }
-                return;
             }
+            long microsSinceCreation = TimeUnit.MILLISECONDS.toMicros(System.currentTimeMillis() - timeCreated);
+            getTimer("nonWriteCommitTotalTimeSinceTxCreation")
+                    .update(Duration.of(microsSinceCreation, ChronoUnit.MICROS));
             return;
         }
 uau(5e4db228e238b3ece2f247c662c2e95a52fefe09}(sha(5e4db228e238b3ece2f247c662c2e95a52fefe09node_idEC_kwDOAjP5fdoAKDVlNGRiMjI4ZTIzOGIzZWNlMmYyNDdjNjYyYzJlOTVhNTJmZWZlMDkcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2022-09-23T14:16:47Zu	committer}(jW 
Sam KramerjW skramer@palantir.comjW 2023-02-23T17:26:05ZumessageJDo not bump logback to 1.4.x as it is not compatible with dropwizard 2.1.xtree}(jW (db9d8eace50cebae6eff6e50dc9d08cfc1d00634url`https://api.github.com/repos/palantir/atlasdb/git/trees/db9d8eace50cebae6eff6e50dc9d08cfc1d00634ujX bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5e4db228e238b3ece2f247c662c2e95a52fefe09
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmP3obAACgkQmPPOpKR4
XS1BlAgArtEG97rxIUXUmxTehEiVdwNnsYr3PCyw/jzbkWMGO8lkmhxD1IqvmcCr
7ki6RBOQHYsTtEyg/tue4MvzesVk4/uCTmx0URes8SXLrE1zona6/qsYoytOS5EG
FYRc/B+FY0YaZfU+snIvimLy3qbaPRvDdp2xDiOOJuQZdzL+Y9beuK8VNo9tNzTE
sjfzbZD5EVx+GYgnFDTSLkJrElywIJxRbSVfDe7aBl/j7Ln0DiPv8kYevR09YmiL
pKgsDOUlTux1AB1rq0F3nUmXrHzY6pbdd5jHK73yhYdXFXuzGOyhFUyMDnJaAVPc
f7ZB2E5kKs+Tr0JOQs5yrrlbz411CA==
=O/D8
-----END PGP SIGNATURE-----payload       X!  tree db9d8eace50cebae6eff6e50dc9d08cfc1d00634
parent 0f3caf06f1a2c3eb426df489fdc8990e211355f8
author Sam Kramer <skramer@palantir.com> 1663942607 +0100
committer Sam Kramer <skramer@palantir.com> 1677173165 +0000

Do not bump logback to 1.4.x as it is not compatible with dropwizard 2.1.x
uujX ^https://api.github.com/repos/palantir/atlasdb/commits/5e4db228e238b3ece2f247c662c2e95a52fefe09html_urlShttps://github.com/palantir/atlasdb/commit/5e4db228e238b3ece2f247c662c2e95a52fefe09comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5e4db228e238b3ece2f247c662c2e95a52fefe09/commentsjW }(login
Sam-KrameridJ^2_ jW MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jX 'https://api.github.com/users/Sam-KramerjX https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujW }(jX 
Sam-KramerjX J^2_ jW MDQ6VXNlcjYyMzg4MTQ=jX 3https://avatars.githubusercontent.com/u/6238814?v=4jX h5jX 'https://api.github.com/users/Sam-KramerjX https://github.com/Sam-Kramerj!X 1https://api.github.com/users/Sam-Kramer/followersj#X >https://api.github.com/users/Sam-Kramer/following{/other_user}j%X 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j'X >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j)X 5https://api.github.com/users/Sam-Kramer/subscriptionsj+X ,https://api.github.com/users/Sam-Kramer/orgsj-X -https://api.github.com/users/Sam-Kramer/reposj/X 8https://api.github.com/users/Sam-Kramer/events{/privacy}j1X 7https://api.github.com/users/Sam-Kramer/received_eventsj3X Userj5X uparents]}(jW (0f3caf06f1a2c3eb426df489fdc8990e211355f8jX ^https://api.github.com/repos/palantir/atlasdb/commits/0f3caf06f1a2c3eb426df489fdc8990e211355f8jX Shttps://github.com/palantir/atlasdb/commit/0f3caf06f1a2c3eb426df489fdc8990e211355f8uastats}(totalK	additionsK	deletionsKufiles]}(jW (3a7fb95befef527bea6b6180b974cff75bc98a59filenamebuild.gradlestatusmodifiedjOX KjPX KchangesKblob_url^https://github.com/palantir/atlasdb/blob/5e4db228e238b3ece2f247c662c2e95a52fefe09/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/5e4db228e238b3ece2f247c662c2e95a52fefe09/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=5e4db228e238b3ece2f247c662c2e95a52fefe09patchX  @@ -85,7 +85,7 @@ allprojects {
             it.substitute it.module('javax.annotation:javax.annotation-api') with it.module('jakarta.annotation:jakarta.annotation-api:1.3.5')
             it.substitute it.module('javax.validation:validation-api') with it.module('jakarta.validation:jakarta.validation-api:2.0.2')
             it.substitute it.module('javax.ws.rs:javax.ws.rs-api') with it.module('jakarta.ws.rs:jakarta.ws.rs-api:2.1.6')
-            it.substitute it.module('javax.servlet:javax.servlet-api') with it.module('jakarta.servlet:jakarta.servlet-api:4.0.4')
+            it.substitute it.module('javax.servlet:javax.servlet-api') with it.module('jakarta.servlet:jakarta.servlet-api:5.0.0')
 
             it.substitute it.module('javax.inject:javax.inject') with it.module('jakarta.inject:jakarta.inject-api:1.0.5')
             it.substitute it.module('org.glassfish.hk2.external:javax.inject') with it.module('jakarta.inject:jakarta.inject-api:1.0.5')uau(34c0b2546d2418b494455534e99a6e60e5f05058}(sha(34c0b2546d2418b494455534e99a6e60e5f05058node_idEC_kwDOAjP5fdoAKDM0YzBiMjU0NmQyNDE4YjQ5NDQ1NTUzNGU5OWE2ZTYwZTVmMDUwNTgcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-20T16:11:00Zu	committer}(jlX Lucas MeirelesjnX meireles31@msn.comjpX 2023-07-20T16:11:00ZumessagehMerge branch 'develop' into lmeireles/expose-get-with-expected-size

# Conflicts:
#	.palantir/revapi.ymltree}(jdX (82282061811e6a91d9487e04c0f8cac1690b9f1curl`https://api.github.com/repos/palantir/atlasdb/git/trees/82282061811e6a91d9487e04c0f8cac1690b9f1cuj|X bhttps://api.github.com/repos/palantir/atlasdb/git/commits/34c0b2546d2418b494455534e99a6e60e5f05058
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS5XJQACgkQJd22kJ7J
Gix6VAf/cx2P0GHBU7sjQC89pslu2enn6noWtZPKlpPaYpHzNrja+vSBlIk5IgiF
EAPLWaiyk8a/CA16xWmtRrmQDVMJIKPuNdEDXU5bXodEfTX1GstxZQv3lv6yaF0i
uWlf153tzsjSphimdLMCvAPPkmuG+8xnSVCoDdFZmLZLcR+lAK9rqIUhKvtpRWzz
HrFOFeSktO/9PVUYlxboaLIIo7kZKUiDsIqjjMVMKB5VP2qTPNg4+uDqj87+0Rx8
vOEYBvi7Pmv8uef8wUUR2hpwjUn7STwyWmEIMIvzpRdgSeJyplDSU4dW0PyunOGS
+RBieOnQYg8SMv7XeQlYuA3A0mxvzw==
=X8W3
-----END PGP SIGNATURE-----payloadXs  tree 82282061811e6a91d9487e04c0f8cac1690b9f1c
parent 773e1ad04e84d063dc67b970d24f8c986785b524
parent 4e050a9cb4f8f2b45b8b700df082f442d2fec694
author Lucas Meireles <meireles31@msn.com> 1689869460 +0100
committer Lucas Meireles <meireles31@msn.com> 1689869460 +0100

Merge branch 'develop' into lmeireles/expose-get-with-expected-size

# Conflicts:
#	.palantir/revapi.yml
uuj|X ^https://api.github.com/repos/palantir/atlasdb/commits/34c0b2546d2418b494455534e99a6e60e5f05058html_urlShttps://github.com/palantir/atlasdb/commit/34c0b2546d2418b494455534e99a6e60e5f05058comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/34c0b2546d2418b494455534e99a6e60e5f05058/commentsjjX }(loginLucasIMEidJg jfX MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j|X %https://api.github.com/users/LucasIMEjX https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujrX }(jX LucasIMEjX Jg jfX MDQ6VXNlcjY3ODczMTE=jX 3https://avatars.githubusercontent.com/u/6787311?v=4jX h5j|X %https://api.github.com/users/LucasIMEjX https://github.com/LucasIMEjX /https://api.github.com/users/LucasIME/followersjX <https://api.github.com/users/LucasIME/following{/other_user}jX 5https://api.github.com/users/LucasIME/gists{/gist_id}jX <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jX 3https://api.github.com/users/LucasIME/subscriptionsjX *https://api.github.com/users/LucasIME/orgsjX +https://api.github.com/users/LucasIME/reposjX 6https://api.github.com/users/LucasIME/events{/privacy}jX 5https://api.github.com/users/LucasIME/received_eventsjX UserjX uparents](}(jdX (773e1ad04e84d063dc67b970d24f8c986785b524j|X ^https://api.github.com/repos/palantir/atlasdb/commits/773e1ad04e84d063dc67b970d24f8c986785b524jX Shttps://github.com/palantir/atlasdb/commit/773e1ad04e84d063dc67b970d24f8c986785b524u}(jdX (4e050a9cb4f8f2b45b8b700df082f442d2fec694j|X ^https://api.github.com/repos/palantir/atlasdb/commits/4e050a9cb4f8f2b45b8b700df082f442d2fec694jX Shttps://github.com/palantir/atlasdb/commit/4e050a9cb4f8f2b45b8b700df082f442d2fec694uestats}(totalMq	additionsM
	deletionsMufiles](}(jdX (78838cc90f92298bbf6841cb0fa57378271566b2filename.palantir/revapi.ymlstatusmodifiedjX KjX K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=34c0b2546d2418b494455534e99a6e60e5f05058patchX  @@ -121,6 +121,14 @@ acceptedBreaks:
       old: "method java.util.concurrent.ExecutorService com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService::createThreadPoolWihtoutSpans(java.lang.String,\
         \ int, int) @ com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl"
       justification: "Protected method"
+  "0.881.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter <T> long com.palantir.atlasdb.keyvalue.cassandra.thrift.ThriftObjectSizeUtils::getCollectionSize(java.util.Collection<T>,\
+        \ ===java.util.function.Function<T, java.lang.Long>===)"
+      new: "parameter <T> long com.palantir.atlasdb.keyvalue.cassandra.thrift.ThriftObjectSizeUtils::getCollectionSize(java.util.Collection<T>,\
+        \ ===java.util.function.ToLongFunction<T>===)"
+      justification: "Avoid autoboxing long to Long"
   "0.884.0":
     com.palantir.atlasdb:atlasdb-api:
     - code: "java.method.addedToInterface"u}(jdX (64ceb8b5e885dd8fcf5ecc5cbb31964147a5e35djX Eatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/Cell.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCell.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCell.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCell.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -137,6 +137,9 @@ public boolean equals(Object obj) {
             return false;
         }
         Cell other = (Cell) obj;
+        if (this.hashCode != 0 && other.hashCode != 0 && this.hashCode != other.hashCode) {
+            return false;
+        }
         return Arrays.equals(rowName, other.rowName) && Arrays.equals(columnName, other.columnName);
     }
 
@@ -147,15 +150,17 @@ public int hashCode() {
          * accessed via hash collections, but computation can be expensive, and
          * allow for benign data races.
          */
-        if (hashCode == 0) {
+        int hash = this.hashCode;
+        if (hash == 0) {
             /*
              * This hashCode() implementation has a rather unfortunate case where it is always 0 if the row name and
              * the column name match. We did not want to change it to keep backwards compatibility.
              * See {@link CellReference#goodHash()}
              */
-            hashCode = Arrays.hashCode(rowName) ^ Arrays.hashCode(columnName);
+            hash = Arrays.hashCode(rowName) ^ Arrays.hashCode(columnName);
+            this.hashCode = hash;
         }
-        return hashCode;
+        return hash;
     }
 
     @Overrideu}(jdX (b258440488d99978b8ead154e3fe2ac76efcff9fjX Fatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/Value.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FValue.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FValue.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FValue.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X]  @@ -18,7 +18,6 @@
 import com.fasterxml.jackson.annotation.JsonCreator;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.google.common.base.Function;
-import com.google.common.base.MoreObjects;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.util.Measurable;
 import com.palantir.logsafe.Preconditions;
@@ -38,7 +37,7 @@ public final class Value implements Serializable, Measurable {
 
     @JsonCreator
     public static Value create(@JsonProperty("contents") byte[] contents, @JsonProperty("timestamp") long timestamp) {
-        return new Value(MoreObjects.firstNonNull(contents, PtBytes.EMPTY_BYTE_ARRAY), timestamp);
+        return new Value(Objects.requireNonNullElse(contents, PtBytes.EMPTY_BYTE_ARRAY), timestamp);
     }
 
     public static Value createWithCopyOfData(byte[] contents, long timestamp) {u}(jdX (aa106081adcb5d28ce3ea1dc5396095caa8be759jX iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javajX modifiedjX K
jX K	jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -71,6 +71,7 @@
 import com.palantir.atlasdb.keyvalue.api.TimestampRangeDelete;
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolImpl.StartupChecks;
+import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServices.ColumnAndTimestamp;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServices.StartTsResultsCollector;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraVerifier.CassandraVerifierConfig;
 import com.palantir.atlasdb.keyvalue.cassandra.RowColumnRangeExtractor.RowColumnRangeResult;
@@ -109,7 +110,6 @@
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
-import com.palantir.util.Pair;
 import com.palantir.util.paging.AbstractPagingIterable;
 import com.palantir.util.paging.SimpleTokenBackedResultsPage;
 import com.palantir.util.paging.TokenBackedBasicResultsPage;
@@ -731,9 +731,9 @@ private SlicePredicate getNextLexicographicalSlicePredicate(List<ColumnOrSuperCo
         Preconditions.checkState(!columns.isEmpty(), "Columns was empty. This is probably an AtlasDb bug");
 
         Column lastColumn = columns.get(columns.size() - 1).getColumn();
-        Pair<byte[], Long> columnNameAndTimestamp = CassandraKeyValueServices.decompose(lastColumn.name);
+        ColumnAndTimestamp columnNameAndTimestamp = CassandraKeyValueServices.decomposeColumn(lastColumn.name);
         ByteBuffer nextLexicographicColumn = CassandraKeyValueServices.makeCompositeBuffer(
-                RangeRequests.nextLexicographicName(columnNameAndTimestamp.lhSide), Long.MAX_VALUE);
+                RangeRequests.nextLexicographicName(columnNameAndTimestamp.columnName()), Long.MAX_VALUE);
 
         return SlicePredicates.create(
                 Range.of(nextLexicographicColumn, Range.UNBOUND_END),
@@ -897,8 +897,8 @@ private Map<byte[], RowColumnRangeIterator> getRowsColumnRangeIteratorForSingleH
             IdentityHashMap<byte[], byte[]> incompleteRowsToNextColumns = new IdentityHashMap<>();
             for (Map.Entry<byte[], Column> e : rowsToLastCompositeColumns.entrySet()) {
                 byte[] row = e.getKey();
-                byte[] col =
-                        CassandraKeyValueServices.decomposeName(e.getValue()).getLhSide();
+                byte[] col = CassandraKeyValueServices.decomposeColumnName(e.getValue())
+                        .columnName();
                 // If we read a version of the cell before our start timestamp, it will be the most recent version
                 // readable to us and we can continue to the next column. Otherwise we have to continue reading
                 // this column.
@@ -1048,8 +1048,9 @@ public TokenBackedBasicResultsPage<Map.Entry<Cell, Value>, byte[]> apply(
                                                 .getResults()
                                                 .getOrDefault(row, Collections.emptyMap());
                                         ColumnOrSuperColumn lastColumn = values.get(values.size() - 1);
-                                        byte[] lastCol = CassandraKeyValueServices.decomposeName(lastColumn.getColumn())
-                                                .getLhSide();
+                                        byte[] lastCol = CassandraKeyValueServices.decomposeColumnName(
+                                                        lastColumn.getColumn())
+                                                .columnName();
                                         // Same idea as the getRows case to handle seeing only newer entries of a column
                                         boolean completedCell = ret.get(Cell.create(row, lastCol)) != null;
                                         if (isEndOfColumnRange(
@@ -1868,7 +1869,8 @@ public void putUnlessExists(final TableReference tableRef, final Map<Cell, byte[
                                 casResult.getCurrent_values().stream()
                                         .map(column -> Cell.create(
                                                 partition.getKey().toByteArray(),
-                                                CassandraKeyValueServices.decompose(column.bufferForName()).lhSide))
+                                                CassandraKeyValueServices.decomposeColumn(column.bufferForName())
+                                                        .columnName()))
                                         .collect(Collectors.toList())));
                     }
                 }
@@ -2001,7 +2003,9 @@ public void multiCheckAndSet(MultiCheckAndSetRequest request) throws MultiCheckA
             if (!casResult.isSuccess()) {
                 Map<Cell, byte[]> currentValues = KeyedStream.of(casResult.getCurrent_values())
                         .mapKeys(column -> Cell.create(
-                                request.rowName(), CassandraKeyValueServices.decompose(column.bufferForName()).lhSide))
+                                request.rowName(),
+                                CassandraKeyValueServices.decomposeColumn(column.bufferForName())
+                                        .columnName()))
                         .map(Column::getValue)
                         .collectToMap();
 u}(jdX (d52315581c77162d527303298aa7da37af522cabjX fatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServices.javajX modifiedjX K`jX KjX K{jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X*  @@ -29,14 +29,14 @@
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.util.MetricsManager;
-import com.palantir.common.annotation.Output;
 import com.palantir.common.base.RunnableCheckedException;
 import com.palantir.common.base.Throwables;
 import com.palantir.common.visitor.Visitor;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.util.Pair;
+import com.palantir.util.io.AvailabilityRequirement;
 import java.nio.ByteBuffer;
 import java.nio.ByteOrder;
 import java.nio.charset.Charset;
@@ -67,9 +67,16 @@ private CassandraKeyValueServices() {
         // Utility class
     }
 
+    static void waitForSchemaVersions(
+            int schemaMutationTimeMillis, CassandraClient client, String unsafeSchemaChangeDescription)
+            throws TException {
+        waitForSchemaVersions(
+                schemaMutationTimeMillis, client, unsafeSchemaChangeDescription, AvailabilityRequirement.QUORUM);
+    }
+
     /**
-     * Attempt to wait until a quorum of nodes has reached consensus on a schema version, and it is known that no
-     * other nodes currently disagree with this quorum.
+     * Attempt to wait until the specified number of nodes are available and there are no disagreements on schema
+     * version.
      * <p>
      * The goals of this method include:
      * <ol>
@@ -78,23 +85,30 @@ private CassandraKeyValueServices() {
      *         Cassandra can more efficiently come to agreement.
      *     </li>
      *     <li>
-     *         Avoid performing schema mutations if they could potentially cause a split-brain in terms of how the
-     *         schema evolves. This is achieved by ensuring a quorum of reachable nodes agree on the version. There
-     *         is of course a check-then-act race condition, but Cassandra is able to eventually recover.
+     *         Avoid performing schema mutations if our availability requirements are not met. This is to prevent a
+     *         split-brain situation in respect to the schema. While this _should_ be a safe state to be in, there is
+     *         little-to-no risk to availability for waiting for consensus and availability. If the specified
+     *         availability requirements are not met, then it is very likely Cassandra is in an outage anyways, which
+     *         means it is ok for a service to not start up. There is of course a check-then-act race condition, but
+     *         Cassandra is able to eventually recover.
      *     </li>
      *     <li>
      *         Allowing schema mutations to take place in the presence of failures (the KVS needs to be able to
      *         tolerate a limited number of Cassandra node-level failures).
      *     </li>
      * </ol>
      *
-     * @param schemaMutationTimeMillis      time to wait for nodes' schema versions to match.
+     * @param schemaMutationTimeMillis      Time to wait for nodes' schema versions to match.
      * @param client                        Cassandra client.
-     * @param unsafeSchemaChangeDescription description of the schema change that was performed prior to this check.
+     * @param unsafeSchemaChangeDescription Description of the schema change that was performed prior to this check.
+     * @param availabilityRequirement       Number of Cassandra nodes that must be reachable for schema consensus.
      * @throws IllegalStateException if we wait for more than schemaMutationTimeoutMillis specified in config.
      */
     static void waitForSchemaVersions(
-            int schemaMutationTimeMillis, CassandraClient client, String unsafeSchemaChangeDescription)
+            int schemaMutationTimeMillis,
+            CassandraClient client,
+            String unsafeSchemaChangeDescription,
+            AvailabilityRequirement availabilityRequirement)
             throws TException {
         long start = System.currentTimeMillis();
         long sleepTime = INITIAL_SLEEP_TIME;
@@ -103,7 +117,7 @@ static void waitForSchemaVersions(
             // This may only include some of the nodes if the coordinator hasn't shaken hands with someone; however,
             // this existed largely as a defense against performance issues with concurrent schema modifications.
             versions = client.describe_schema_versions();
-            if (majorityOfClusterHasConsistentSchemaVersionAndNoDivergentNodes(versions)) {
+            if (clusterSatisfiesAvailabilityRequirementAndNoDivergentSchemas(versions, availabilityRequirement)) {
                 return;
             }
             sleepTime = sleepAndGetNextBackoffTime(sleepTime);
@@ -149,8 +163,8 @@ static void runWithWaitingForSchemas(
         waitForSchemaVersions(config.schemaMutationTimeoutMillis(), client, "after " + unsafeSchemaChangeDescription);
     }
 
-    private static boolean majorityOfClusterHasConsistentSchemaVersionAndNoDivergentNodes(
-            Map<String, List<String>> versions) {
+    private static boolean clusterSatisfiesAvailabilityRequirementAndNoDivergentSchemas(
+            Map<String, List<String>> versions, AvailabilityRequirement availabilityRequirement) {
         if (getDistinctReachableSchemas(versions).size() != 1) {
             return false;
         }
@@ -159,7 +173,8 @@ private static boolean majorityOfClusterHasConsistentSchemaVersionAndNoDivergent
         int numUnreachableNodes = Optional.ofNullable(versions.get(VERSION_UNREACHABLE))
                 .map(List::size)
                 .orElse(0);
-        return totalNodes - numUnreachableNodes >= (totalNodes / 2) + 1;
+        int availableNodes = totalNodes - numUnreachableNodes;
+        return availabilityRequirement.satisfies(availableNodes, totalNodes);
     }
 
     private static List<String> getDistinctReachableSchemas(Map<String, List<String>> versions) {
@@ -229,7 +244,16 @@ public static ByteBuffer makeCompositeBuffer(byte[] colName, long positiveTimest
         return buffer;
     }
 
+    /**
+     * @deprecated use {@link #decomposeColumn(ByteBuffer)}
+     */
+    @Deprecated
     static Pair<byte[], Long> decompose(ByteBuffer inputComposite) {
+        ColumnAndTimestamp columnAndTimestamp = decomposeColumn(inputComposite);
+        return Pair.create(columnAndTimestamp.columnName(), columnAndTimestamp.timestamp());
+    }
+
+    static ColumnAndTimestamp decomposeColumn(ByteBuffer inputComposite) {
         ByteBuffer composite = inputComposite.slice().order(ByteOrder.BIG_ENDIAN);
 
         short len = composite.getShort();
@@ -243,14 +267,23 @@ static Pair<byte[], Long> decompose(ByteBuffer inputComposite) {
         com.palantir.logsafe.Preconditions.checkArgument(shouldBe8 == 8);
         long ts = composite.getLong();
 
-        return Pair.create(colName, ~ts);
+        return new ColumnAndTimestamp(colName, ~ts);
+    }
+
+    /**
+     * @deprecated use {@link #decomposeColumnName(Column)}
+     */
+    @Deprecated
+    public static Pair<byte[], Long> decomposeName(Column column) {
+        ColumnAndTimestamp columnAndTimestamp = decomposeColumnName(column);
+        return Pair.create(columnAndTimestamp.columnName(), columnAndTimestamp.timestamp());
     }
 
     /**
      * Convenience method to get the name buffer for the specified column and
      * decompose it into the name and timestamp.
      */
-    public static Pair<byte[], Long> decomposeName(Column column) {
+    public static ColumnAndTimestamp decomposeColumnName(Column column) {
         ByteBuffer nameBuffer;
         if (column.isSetName()) {
             nameBuffer = column.bufferForName();
@@ -260,7 +293,7 @@ public static Pair<byte[], Long> decomposeName(Column column) {
             // the transform to bytes and wrap ourselves
             nameBuffer = ByteBuffer.wrap(column.getName());
         }
-        return decompose(nameBuffer);
+        return decomposeColumn(nameBuffer);
     }
 
     public static byte[] getBytesFromByteBuffer(ByteBuffer buffer) {
@@ -402,17 +435,13 @@ public Multimap<Cell, Long> getCollectedResults() {
 
         @Override
         public synchronized void visit(Map<ByteBuffer, List<ColumnOrSuperColumn>> results) {
-            extractTimestampResults(collectedResults, results);
-        }
-    }
-
-    private static void extractTimestampResults(
-            @Output Multimap<Cell, Long> ret, Map<ByteBuffer, List<ColumnOrSuperColumn>> results) {
-        for (Map.Entry<ByteBuffer, List<ColumnOrSuperColumn>> result : results.entrySet()) {
-            byte[] row = CassandraKeyValueServices.getBytesFromByteBuffer(result.getKey());
-            for (ColumnOrSuperColumn col : result.getValue()) {
-                Pair<byte[], Long> pair = CassandraKeyValueServices.decomposeName(col.column);
-                ret.put(Cell.create(row, pair.lhSide), pair.rhSide);
+            for (Map.Entry<ByteBuffer, List<ColumnOrSuperColumn>> result : results.entrySet()) {
+                byte[] row = CassandraKeyValueServices.getBytesFromByteBuffer(result.getKey());
+                for (ColumnOrSuperColumn col : result.getValue()) {
+                    ColumnAndTimestamp columnAndTimestamp = CassandraKeyValueServices.decomposeColumnName(col.column);
+                    Cell cell = Cell.create(row, columnAndTimestamp.columnName());
+                    collectedResults.put(cell, columnAndTimestamp.timestamp());
+                }
             }
         }
     }
@@ -429,4 +458,44 @@ static TableMetadata getMetadataOrDefaultToGeneric(byte[] metadata) {
         }
         return TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(metadata);
     }
+
+    public static class ColumnAndTimestamp {
+        private final long timestamp;
+        private final byte[] columnName;
+
+        ColumnAndTimestamp(byte[] columnName, long timestamp) {
+            this.columnName = columnName;
+            this.timestamp = timestamp;
+        }
+
+        public byte[] columnName() {
+            return columnName;
+        }
+
+        public long timestamp() {
+            return timestamp;
+        }
+
+        @Override
+        public boolean equals(Object obj) {
+            if (this == obj) {
+                return true;
+            }
+            if (obj == null || getClass() != obj.getClass()) {
+                return false;
+            }
+            ColumnAndTimestamp that = (ColumnAndTimestamp) obj;
+            return timestamp == that.timestamp && Arrays.equals(columnName, that.columnName);
+        }
+
+        @Override
+        public int hashCode() {
+            return 31 * Long.hashCode(timestamp) + Arrays.hashCode(columnName);
+        }
+
+        @Override
+        public String toString() {
+            return "ColumnAndTimestamp{columnName=" + Arrays.toString(columnName) + ", timestamp=" + timestamp + '}';
+        }
+    }
 }u}(jdX (5401bf3d0166157025601435b19f8490ce4f1643jX ^atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraVerifier.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X
  @@ -40,6 +40,7 @@
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.util.io.AvailabilityRequirement;
 import java.net.InetSocketAddress;
 import java.time.Duration;
 import java.util.HashSet;
@@ -238,25 +239,36 @@ private static boolean attemptToCreateIfNotExists(InetSocketAddress host, Cassan
         }
     }
 
+    @VisibleForTesting
     // swallows the expected TException subtype NotFoundException, throws connection problem related ones
-    private static boolean keyspaceAlreadyExists(CassandraServer host, CassandraVerifierConfig verifierConfig)
+    static boolean keyspaceAlreadyExists(CassandraClient client, CassandraVerifierConfig verifierConfig)
             throws TException {
-        try (CassandraClient client = CassandraClientFactory.getClientInternal(host, verifierConfig.clientConfig())) {
+        try {
             client.describe_keyspace(verifierConfig.keyspace());
             CassandraKeyValueServices.waitForSchemaVersions(
                     verifierConfig.schemaMutationTimeoutMillis(),
                     client,
-                    "while checking if schemas diverged on startup");
+                    "while checking if schemas diverged on startup",
+                    AvailabilityRequirement.ANY);
             return true;
         } catch (NotFoundException e) {
             return false;
         }
     }
 
+    private static boolean keyspaceAlreadyExists(CassandraServer host, CassandraVerifierConfig verifierConfig)
+            throws TException {
+        try (CassandraClient client = CassandraClientFactory.getClientInternal(host, verifierConfig.clientConfig())) {
+            return keyspaceAlreadyExists(client, verifierConfig);
+        }
+    }
+
     private static boolean attemptToCreateKeyspaceOnHost(CassandraServer host, CassandraVerifierConfig verifierConfig)
             throws TException {
         try (CassandraClient client = CassandraClientFactory.getClientInternal(host, verifierConfig.clientConfig())) {
             KsDef ksDef = createKsDefForFresh(client, verifierConfig);
+            CassandraKeyValueServices.waitForSchemaVersions(
+                    verifierConfig.schemaMutationTimeoutMillis(), client, "before adding the initial empty keyspace");
             client.system_add_keyspace(ksDef);
             log.info("Created keyspace: {}", SafeArg.of("keyspace", verifierConfig.keyspace()));
             CassandraKeyValueServices.waitForSchemaVersions(u}(jdX (5642b359735213f35a666d4a009a48e99cb87d71jX ]atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/ResultsExtractor.javajX modifiedjX K
jX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX XQ  @@ -22,11 +22,11 @@
 import com.palantir.atlasdb.keyvalue.api.ColumnSelection;
 import com.palantir.atlasdb.keyvalue.api.RangeRequests;
 import com.palantir.atlasdb.keyvalue.api.RowResult;
+import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServices.ColumnAndTimestamp;
 import com.palantir.atlasdb.keyvalue.impl.Cells;
 import com.palantir.atlasdb.keyvalue.impl.RowResults;
 import com.palantir.atlasdb.tracing.TraceStatistics;
 import com.palantir.atlasdb.util.MetricsManager;
-import com.palantir.util.Pair;
 import com.palantir.util.paging.SimpleTokenBackedResultsPage;
 import com.palantir.util.paging.TokenBackedBasicResultsPage;
 import java.nio.ByteBuffer;
@@ -55,14 +55,20 @@ public final byte[] extractResults(
             maxRow = updatedMaxRow(maxRow, row);
 
             for (ColumnOrSuperColumn c : colEntry.getValue()) {
-                Pair<byte[], Long> pair = CassandraKeyValueServices.decomposeName(c.getColumn());
+                ColumnAndTimestamp columnAndTimestamp = CassandraKeyValueServices.decomposeColumnName(c.getColumn());
                 byte[] value = c.getColumn().getValue();
 
                 // Read the value & the column name size; we're not currently trying to model all the overheads
-                TraceStatistics.incBytesRead(pair.lhSide);
+                TraceStatistics.incBytesRead(columnAndTimestamp.columnName());
                 TraceStatistics.incBytesRead(value);
 
-                internalExtractResult(startTs, selection, row, pair.lhSide, value, pair.rhSide);
+                internalExtractResult(
+                        startTs,
+                        selection,
+                        row,
+                        columnAndTimestamp.columnName(),
+                        value,
+                        columnAndTimestamp.timestamp());
             }
         }
         return maxRow;u}(jdX (99a083b77cf802540499e0f29bf3af47ae1ea5f4jX datlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/RowColumnRangeExtractor.javajX modifiedjX KjX KjX K
jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRowColumnRangeExtractor.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRowColumnRangeExtractor.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRowColumnRangeExtractor.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -21,9 +21,9 @@
 import com.palantir.atlasdb.AtlasDbMetricNames.CellFilterMetrics;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.Value;
+import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServices.ColumnAndTimestamp;
 import com.palantir.atlasdb.tracing.TraceStatistics;
 import com.palantir.atlasdb.util.MetricsManager;
-import com.palantir.util.Pair;
 import java.nio.ByteBuffer;
 import java.util.Collection;
 import java.util.Collections;
@@ -110,15 +110,15 @@ static RowColumnRangeResult extract(
             }
             rowsToRawColumnCount.put(row, columns.size());
             for (ColumnOrSuperColumn c : columns) {
-                Pair<byte[], Long> pair = CassandraKeyValueServices.decomposeName(c.getColumn());
+                ColumnAndTimestamp columnAndTimestamp = CassandraKeyValueServices.decomposeColumnName(c.getColumn());
                 // Column name
-                TraceStatistics.incBytesRead(pair.lhSide);
+                TraceStatistics.incBytesRead(columnAndTimestamp.columnName());
                 // Column value
                 TraceStatistics.incBytesRead(c.getColumn().getValue().length);
 
-                long ts = pair.rhSide;
+                long ts = columnAndTimestamp.timestamp();
                 if (ts < startTs) {
-                    Cell cell = Cell.create(row, pair.lhSide);
+                    Cell cell = Cell.create(row, columnAndTimestamp.columnName());
                     LinkedHashMap<Cell, Value> cellToValue =
                             collector.computeIfAbsent(row, _b -> new LinkedHashMap<>(1));
                     if (cellToValue.containsKey(cell)) {u}(jdX (c23d4ed1b56a12e3356ebc24b89c630b5fec3568jX [atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/ValueExtractor.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX XP  @@ -43,10 +43,12 @@ public void internalExtractResult(
             long startTs, ColumnSelection selection, byte[] row, byte[] col, byte[] val, long ts) {
         if (ts < startTs && selection.contains(col)) {
             Cell cell = Cell.create(row, col);
-            Value value = collector.computeIfAbsent(cell, _cell -> Value.create(val, ts));
-            if (value.getTimestamp() != ts) {
+            // explicitly not using `collector.computeIfAbsent` to avoid `LambdaForm.linkToTargetMethod` allocation
+            if (collector.containsKey(cell)) {
                 TraceStatistics.incSkippedValues(1L);
                 notLatestVisibleValueCellFilterCounter.inc();
+            } else {
+                collector.put(cell, Value.create(val, ts));
             }
         } else {
             TraceStatistics.incSkippedValues(1L);u}(jdX (63787d74ad98cccd71313f8155a246a327aa33a3jX iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/thrift/ThriftObjectSizeUtils.javajX modifiedjX K.jX KjX K?jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fthrift%2FThriftObjectSizeUtils.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fthrift%2FThriftObjectSizeUtils.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fthrift%2FThriftObjectSizeUtils.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -21,8 +21,11 @@
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.RandomAccess;
 import java.util.function.Function;
+import java.util.function.ToLongFunction;
 import java.util.stream.Collectors;
+import javax.annotation.Nullable;
 import org.apache.cassandra.thrift.Column;
 import org.apache.cassandra.thrift.ColumnOrSuperColumn;
 import org.apache.cassandra.thrift.CounterColumn;
@@ -52,7 +55,7 @@ public static long getApproximateSizeOfMutationMap(Map<ByteBuffer, Map<String, L
                 currentMap -> getCollectionSize(currentMap.keySet(), ThriftObjectSizeUtils::getStringSize)
                         + getCollectionSize(
                                 currentMap.values(),
-                                mutations -> getCollectionSize(mutations, ThriftObjectSizeUtils::getMutationSize)));
+                                mutations -> getListSize(mutations, ThriftObjectSizeUtils::getMutationSize)));
         return approxBytesForKeys + approxBytesForValues;
     }
 
@@ -64,9 +67,9 @@ public static Map<String, Long> getSizeOfMutationPerTable(
             long keySize = ThriftObjectSizeUtils.getByteBufferSize(key);
 
             tableToMutations.forEach((table, mutations) -> {
-                Long size = tableToSize.getOrDefault(table, 0L);
+                long size = tableToSize.getOrDefault(table, 0L);
                 size += keySize;
-                size += getCollectionSize(mutations, ThriftObjectSizeUtils::getMutationSize);
+                size += getListSize(mutations, ThriftObjectSizeUtils::getMutationSize);
 
                 tableToSize.put(table, size);
             });
@@ -79,7 +82,7 @@ public static long getApproximateSizeOfColsByKey(Map<ByteBuffer, List<ColumnOrSu
         return getCollectionSize(
                 result.entrySet(),
                 rowResult -> ThriftObjectSizeUtils.getByteBufferSize(rowResult.getKey())
-                        + getCollectionSize(rowResult.getValue(), ThriftObjectSizeUtils::getColumnOrSuperColumnSize));
+                        + getListSize(rowResult.getValue(), ThriftObjectSizeUtils::getColumnOrSuperColumnSize));
     }
 
     public static long getApproximateSizeOfColListsByKey(Map<ByteBuffer, List<List<ColumnOrSuperColumn>>> result) {
@@ -89,13 +92,13 @@ public static long getApproximateSizeOfColListsByKey(Map<ByteBuffer, List<List<C
     }
 
     public static long getApproximateSizeOfKeySlices(List<KeySlice> slices) {
-        return getCollectionSize(slices, ThriftObjectSizeUtils::getKeySliceSize);
+        return getListSize(slices, ThriftObjectSizeUtils::getKeySliceSize);
     }
 
     public static long getCasByteCount(List<Column> updates) {
-        // TODO(nziebart): CAS actually writes more bytes than this, because the associated Paxos negotations must
+        // TODO(nziebart): CAS actually writes more bytes than this, because the associated Paxos negotiations must
         // be persisted
-        return getCollectionSize(updates, ThriftObjectSizeUtils::getColumnSize);
+        return getListSize(updates, ThriftObjectSizeUtils::getColumnSize);
     }
 
     public static long getColumnOrSuperColumnSize(ColumnOrSuperColumn columnOrSuperColumn) {
@@ -128,7 +131,7 @@ public static long getCqlResultSize(CqlResult cqlResult) {
             return getNullSize();
         }
         return getThriftEnumSize()
-                + getCollectionSize(cqlResult.getRows(), ThriftObjectSizeUtils::getCqlRowSize)
+                + getListSize(cqlResult.getRows(), ThriftObjectSizeUtils::getCqlRowSize)
                 + Integer.BYTES
                 + getCqlMetadataSize(cqlResult.getSchema());
     }
@@ -138,7 +141,7 @@ public static long getKeySliceSize(KeySlice keySlice) {
             return getNullSize();
         }
         return getBytesSize(keySlice, KeySlice::bufferForKey, KeySlice::getKey)
-                + getCollectionSize(keySlice.getColumns(), ThriftObjectSizeUtils::getColumnOrSuperColumnSize);
+                + getListSize(keySlice.getColumns(), ThriftObjectSizeUtils::getColumnOrSuperColumnSize);
     }
 
     public static long getStringSize(String string) {
@@ -163,7 +166,7 @@ private static long getCounterSuperColumnSize(CounterSuperColumn counterSuperCol
             return getNullSize();
         }
         return getBytesSize(counterSuperColumn, CounterSuperColumn::bufferForName, CounterSuperColumn::getName)
-                + getCollectionSize(counterSuperColumn.getColumns(), ThriftObjectSizeUtils::getCounterColumnSize);
+                + getListSize(counterSuperColumn.getColumns(), ThriftObjectSizeUtils::getCounterColumnSize);
     }
 
     private static long getCounterColumnSize(CounterColumn counterColumn) {
@@ -179,7 +182,7 @@ private static long getSuperColumnSize(SuperColumn superColumn) {
             return getNullSize();
         }
         return getBytesSize(superColumn, SuperColumn::bufferForName, SuperColumn::getName)
-                + getCollectionSize(superColumn.getColumns(), ThriftObjectSizeUtils::getColumnSize);
+                + getListSize(superColumn.getColumns(), ThriftObjectSizeUtils::getColumnSize);
     }
 
     private static long getDeletionSize(Deletion deletion) {
@@ -196,7 +199,7 @@ private static long getSlicePredicateSize(SlicePredicate predicate) {
             return getNullSize();
         }
 
-        return getCollectionSize(predicate.getColumn_names(), ThriftObjectSizeUtils::getByteBufferSize)
+        return getListSize(predicate.getColumn_names(), ThriftObjectSizeUtils::getByteBufferSize)
                 + getSliceRangeSize(predicate.getSlice_range());
     }
 
@@ -233,7 +236,7 @@ private static long getCqlRowSize(CqlRow cqlRow) {
             return getNullSize();
         }
         return getBytesSize(cqlRow, CqlRow::bufferForKey, CqlRow::getKey)
-                + getCollectionSize(cqlRow.getColumns(), ThriftObjectSizeUtils::getColumnSize);
+                + getListSize(cqlRow.getColumns(), ThriftObjectSizeUtils::getColumnSize);
     }
 
     private static long getThriftEnumSize() {
@@ -284,14 +287,40 @@ private static <T> long getBytesSize(T data, Function<T, ByteBuffer> toByteBuffe
         return byteBuffer.remaining();
     }
 
-    public static <T> long getCollectionSize(Collection<T> collection, Function<T, Long> sizeFunction) {
+    public static <T> long getCollectionSize(@Nullable Collection<T> collection, ToLongFunction<T> sizeFunction) {
         if (collection == null) {
             return getNullSize();
         }
+        if (collection instanceof List) {
+            return getListSize((List<T>) collection, sizeFunction);
+        }
+        return sumSizes(collection, sizeFunction);
+    }
+
+    private static <T> long getListSize(@Nullable List<T> list, ToLongFunction<T> sizeFunction) {
+        if (list == null) {
+            return getNullSize();
+        }
+
+        // random access lists can be more efficiently accessed via List::get(int)
+        // as this avoids allocating iterator
+        if (list instanceof RandomAccess) {
+            long sum = 0L;
+            //noinspection ForLoopReplaceableByForEach -- performance sensitive
+            for (int i = 0; i < list.size(); i++) {
+                sum += sizeFunction.applyAsLong(list.get(i));
+            }
+            return sum;
+        }
+
+        return sumSizes(list, sizeFunction);
+    }
 
-        long sum = 0;
-        for (T item : collection) {
-            sum += sizeFunction.apply(item);
+    private static <T> long sumSizes(Collection<T> collection, ToLongFunction<T> sizeFunction) {
+        long sum = 0L;
+        //noinspection ForLoopReplaceableByStream -- performance sensitive, avoiding stream allocations
+        for (T t : collection) {
+            sum += sizeFunction.applyAsLong(t);
         }
         return sum;
     }u}(jdX (495bf3755f831be17741c6a0717201cdf739f0f7jX yatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServicesSchemaConsensusTest.javajX modifiedjX K-jX KjX KJjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServicesSchemaConsensusTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServicesSchemaConsensusTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServicesSchemaConsensusTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX XH   @@ -23,8 +23,7 @@
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableSet;
-import java.net.InetSocketAddress;
+import com.palantir.util.io.AvailabilityRequirement;
 import org.apache.thrift.TException;
 import org.junit.Test;
 
@@ -33,77 +32,91 @@ public class CassandraKeyValueServicesSchemaConsensusTest {
     private static final int WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS = 10000;
 
     private static CassandraClient client = mock(CassandraClient.class);
-
-    private static final ImmutableSet<InetSocketAddress> FIVE_SERVERS = ImmutableSet.of(
-            InetSocketAddress.createUnresolved("1", 1),
-            InetSocketAddress.createUnresolved("2", 1),
-            InetSocketAddress.createUnresolved("3", 1),
-            InetSocketAddress.createUnresolved("4", 1),
-            InetSocketAddress.createUnresolved("5", 1));
     private static final String TABLE = "table";
     private static final String VERSION_1 = "v1";
     private static final String VERSION_2 = "v2";
-    private static final String VERSION_UNREACHABLE = "UNREACHABLE";
+    private static final String VERSION_UNREACHABLE = CassandraKeyValueServices.VERSION_UNREACHABLE;
     private static final ImmutableList<String> QUORUM_OF_NODES = ImmutableList.of("1", "2", "3");
     private static final ImmutableList<String> REST_OF_NODES = ImmutableList.of("4", "5");
     private static final ImmutableList<String> ALL_NODES = ImmutableList.of("1", "2", "3", "4", "5");
 
     @Test
     public void waitSucceedsForSameSchemaVersion() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of(VERSION_1, ALL_NODES));
-        assertWaitForSchemaVersionsDoesNotThrow();
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.ANY);
     }
 
     @Test
     public void waitThrowsForAllUnknownSchemaVersion() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of());
-        assertWaitForSchemaVersionsThrows();
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.QUORUM);
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.ANY);
     }
 
     @Test
     public void waitThrowsForAllUnreachableSchemaVersion() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of(VERSION_UNREACHABLE, ALL_NODES));
-        assertWaitForSchemaVersionsThrows();
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.QUORUM);
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.ANY);
+    }
+
+    @Test
+    public void waitThrowsForDifferentSchemaVersion() throws TException {
+        when(client.describe_schema_versions())
+                .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_2, REST_OF_NODES));
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.QUORUM);
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.ANY);
     }
 
     @Test
     public void waitSucceedsWithClusterHavingDownsizedAtRuntime() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of(VERSION_1, REST_OF_NODES));
-        assertWaitForSchemaVersionsDoesNotThrow();
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
     }
 
     @Test
-    public void waitFailsOnMinorityOnSameVersionAndRestUnreachable() throws TException {
+    public void waitFailsForQuorumOnMinorityOnSameVersionAndRestUnreachable() throws TException {
         when(client.describe_schema_versions())
                 .thenReturn(ImmutableMap.of(VERSION_UNREACHABLE, QUORUM_OF_NODES, VERSION_1, REST_OF_NODES));
-        assertWaitForSchemaVersionsThrows();
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.QUORUM);
     }
 
     @Test
     public void waitSucceedsForQuorumOnlyWithUnknownSchemaVersion() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES));
-        assertWaitForSchemaVersionsDoesNotThrow();
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
     }
 
     @Test
     public void waitSucceedsForQuorumOnlyWithUnreachableSchemaVersion() throws TException {
         when(client.describe_schema_versions())
                 .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_UNREACHABLE, REST_OF_NODES));
-        assertWaitForSchemaVersionsDoesNotThrow();
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
     }
 
     @Test
-    public void waitThrowsForDifferentSchemaVersion() throws TException {
+    public void waitSucceedsForQuorumOnlyWithUnknownAndUnreachableSchemaVersion() throws TException {
         when(client.describe_schema_versions())
-                .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_2, REST_OF_NODES));
-        assertWaitForSchemaVersionsThrows();
+                .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_UNREACHABLE, ImmutableList.of("5")));
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
     }
 
     @Test
-    public void waitSucceedsForQuorumOnlyWithUnknownAndUnreachableSchemaVersion() throws TException {
+    public void waitChecksForQuorumByDefault() throws TException {
         when(client.describe_schema_versions())
-                .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_UNREACHABLE, ImmutableList.of("5")));
-        assertWaitForSchemaVersionsDoesNotThrow();
+                .thenReturn(ImmutableMap.of(VERSION_UNREACHABLE, QUORUM_OF_NODES, VERSION_1, REST_OF_NODES));
+        assertThatThrownBy(() -> CassandraKeyValueServices.waitForSchemaVersions(
+                        NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE))
+                .isInstanceOf(IllegalStateException.class)
+                .hasMessageContaining("Cassandra cluster cannot come to agreement on schema versions");
+    }
+
+    @Test
+    public void waitSucceedsForAnyWithOnlyOneReachableHost() throws TException {
+        when(client.describe_schema_versions())
+                .thenReturn(ImmutableMap.of(VERSION_1, ImmutableList.of("5"), VERSION_UNREACHABLE, QUORUM_OF_NODES));
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.ANY);
     }
 
     @Test
@@ -117,18 +130,21 @@ public void waitWaitsForSchemaVersions() throws TException {
                         ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_UNREACHABLE, REST_OF_NODES),
                         ImmutableMap.of(VERSION_1, ALL_NODES));
 
-        CassandraKeyValueServices.waitForSchemaVersions(WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, waitingClient, TABLE);
+        CassandraKeyValueServices.waitForSchemaVersions(
+                WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, waitingClient, TABLE, AvailabilityRequirement.QUORUM);
         verify(waitingClient, times(4)).describe_schema_versions();
     }
 
-    private void assertWaitForSchemaVersionsThrows() {
+    private void assertWaitForSchemaVersionsThrows(AvailabilityRequirement availabilityRequirement) {
         assertThatThrownBy(() -> CassandraKeyValueServices.waitForSchemaVersions(
-                        NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE))
+                        NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE, availabilityRequirement))
                 .isInstanceOf(IllegalStateException.class)
                 .hasMessageContaining("Cassandra cluster cannot come to agreement on schema versions");
     }
 
-    private void assertWaitForSchemaVersionsDoesNotThrow() throws TException {
-        CassandraKeyValueServices.waitForSchemaVersions(NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE);
+    private void assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement availabilityRequirement)
+            throws TException {
+        CassandraKeyValueServices.waitForSchemaVersions(
+                NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE, availabilityRequirement);
     }
 }u}(jdX (f22c92e240094982ad75ea602ed3e93436f20ce7jX batlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraVerifierTest.javajX modifiedjX K
jX K jX K
jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifierTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifierTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifierTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -274,6 +274,19 @@ public void differentRfThanConfigThrows() throws TException {
                 .isInstanceOf(IllegalStateException.class);
     }
 
+    @Test
+    public void keyspaceAlreadyExistsOnlyChecksForAnyAvailableNodes() throws TException {
+        CassandraVerifierConfig verifierConfig =
+                getVerifierConfigBuilderWithDefaults(defaultTopology(HOST_1)).build();
+        when(client.describe_schema_versions())
+                .thenReturn(ImmutableMap.of(
+                        "A",
+                        ImmutableList.of(HOST_1),
+                        CassandraKeyValueServices.VERSION_UNREACHABLE,
+                        ImmutableList.of(HOST_1, HOST_2, HOST_3)));
+        CassandraVerifier.keyspaceAlreadyExists(client, verifierConfig);
+    }
+
     private TokenRange mockRangeWithDetails(EndpointDetails... details) {
         TokenRange mockRange = new TokenRange();
         mockRange.setEndpoint_details(Arrays.asList(details));u}(jdX (847dac9582377f857ea51d134c9d257b2a221cb0jX Vatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -20,6 +20,8 @@
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.Optional;
 
 /**
@@ -29,6 +31,8 @@
  */
 public final class SweepStrategy {
 
+    private static final SafeLogger log = SafeLoggerFactory.get(SweepStrategy.class);
+
     public static final SweepStrategy CONSERVATIVE =
             new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false, false);
     public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), false, true);
@@ -54,9 +58,19 @@ public Optional<SweeperStrategy> getSweeperStrategy() {
     }
 
     public boolean mustCheckImmutableLock(boolean allPossibleCellsReandAndPresent) {
-        return allPossibleCellsReandAndPresent
+        boolean mustCheckLock = allPossibleCellsReandAndPresent
                 ? mustCheckImmutableLockIfAllCellsReadAndPresent
                 : mustCheckImmutableLockIfNonExhaustiveRead;
+
+        if (log.isDebugEnabled() && !mustCheckLock && isConfiguredWithThoroughSweep()) {
+            log.debug("Can skip immutable timestamp lock on thoroughly swept table due to making exhaustive read");
+        }
+
+        return mustCheckLock;
+    }
+
+    private boolean isConfiguredWithThoroughSweep() {
+        return getSweeperStrategy().isPresent() && getSweeperStrategy().get().equals(SweeperStrategy.THOROUGH);
     }
 
     public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {u}(jdX (0afb2f8d855ce6f274bf6d59e8fa8724ec38f7e8jX Jatlasdb-client/src/main/java/com/palantir/atlasdb/util/AtlasDbMetrics.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FAtlasDbMetrics.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FAtlasDbMetrics.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FAtlasDbMetrics.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -118,7 +118,7 @@ private static <T, U extends T> T instrument(
                         LoggerFactory.getLogger("performance." + name),
                         LoggingLevel.TRACE,
                         LoggingInvocationEventHandler.LOG_DURATIONS_GREATER_THAN_1_MICROSECOND)
-                .build();
+                .build(); // Ok
     }
 
     private static InstrumentationFilter instrumentTimedOnly() {u}(jdX (e7949fec0d19116c4500b6be501d9ab8aef7f88fjX atlasdb-commons/build.gradlejX modifiedjX KjX K jX KjX phttps://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-commons%2Fbuild.gradlejX ohttps://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-commons%2Fbuild.gradlejX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fbuild.gradle?ref=34c0b2546d2418b494455534e99a6e60e5f05058|      jX X  @@ -26,6 +26,7 @@ dependencies {
     testImplementation 'com.fasterxml.jackson.core:jackson-databind'
     testImplementation 'com.google.errorprone:error_prone_annotations'
     testImplementation 'com.google.guava:guava'
+    testImplementation 'com.palantir.safe-logging:preconditions-assertj'
 
     annotationProcessor 'org.immutables:value'
     compileOnly 'org.immutables:value::annotations'u}(jdX (1db88b0afce6cbbc7e74528881cb99bc7a567681jX Gatlasdb-commons/src/main/java/com/palantir/util/IndexEncodingUtils.javajX addedjX KjX K jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X#  @@ -0,0 +1,208 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreType;
+import com.google.common.collect.Maps;
+import com.google.common.collect.Sets;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.nio.ByteBuffer;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.zip.CRC32;
+import org.immutables.value.Value;
+
+public final class IndexEncodingUtils {
+    private IndexEncodingUtils() {}
+
+    public static <K extends DeterministicHashable, V> IndexEncodingResult<K, V> encode(
+            Set<K> keys, Map<K, V> keyToValue, ChecksumType checksumType) {
+        return encode(keys, keyToValue, Function.identity(), checksumType);
+    }
+
+    /**
+     * Compute a derived map (replacing keys with their associated index into the ordered list) to the value returned
+     * by running the {@code valueMapper} over the original value.
+     * If the {@code keys} are transmitted regardless of whether they have a value associated in {@code keyToValue},
+     * this encoding can be used to save significant space on the wire.
+     *
+     * @param keys a set of keys which implement {@link DeterministicHashable}
+     * @param keyToValue a map of keys to values. The key set of this map must be a subset of {@code keys}
+     * @param valueMapper a mapping function applied to values before placing them into the result map
+     * @param checksumType the type of checksum algorithm to use on the ordered list of keys
+     * @return the ordered list of keys, the index map, and a compound checksum of the ordered keys
+     * @throws SafeIllegalArgumentException if {@code keyToValue} contains keys that are not in the provided
+     * set of keys
+     */
+    public static <K extends DeterministicHashable, V, R> IndexEncodingResult<K, R> encode(
+            Set<K> keys, Map<K, V> keyToValue, Function<V, R> valueMapper, ChecksumType checksumType) {
+        List<K> keyList = new ArrayList<>(keys);
+        // A linked hash map will give a minor improvement when iterating during serialization
+        Map<Integer, R> indexToValue = Maps.newLinkedHashMapWithExpectedSize(keyToValue.size());
+        // We are explicitly using a primitive for-loop (no streaming) to squeeze out a bit of performance
+        // (same in decode)
+        for (int i = 0; i < keyList.size(); i++) {
+            V value = keyToValue.get(keyList.get(i));
+            if (value != null) {
+                indexToValue.put(i, valueMapper.apply(value));
+            }
+        }
+        if (indexToValue.size() != keyToValue.size()) {
+            Set<K> unknownKeys = Sets.difference(keyToValue.keySet(), keys);
+            throw new SafeIllegalArgumentException(
+                    "Value map uses keys that are not in the provided set of keys",
+                    UnsafeArg.of("unknownKeys", unknownKeys));
+        }
+        return IndexEncodingResult.<K, R>builder()
+                .keyList(keyList)
+                .indexToValue(indexToValue)
+                .keyListChecksum(computeChecksum(checksumType, keyList))
+                .build();
+    }
+
+    public static <K extends DeterministicHashable, V> Map<K, V> decode(IndexEncodingResult<K, V> indexEncoding) {
+        return decode(indexEncoding, Function.identity());
+    }
+
+    /**
+     * Compute a derived map (replacing indices into the list of keys with their item) to the value returned
+     * by running the {@code valueMapper} over the original value.
+     *
+     * @param indexEncoding the output of {@link IndexEncodingUtils#encode}, i.e. the ordered list of keys,
+     * a map of indices to values, and a checksum of the ordered key list. Every index must be
+     * a valid index into the list of keys
+     * @param valueMapper a mapping function applied to values before placing them into the result map
+     * @throws SafeIllegalArgumentException if the provided checksum does not match the actual checksum of the ordered
+     * keys or if {@code indexToValue} contains indices that are not valid for the list of keys
+     */
+    public static <K extends DeterministicHashable, V, R> Map<K, R> decode(
+            IndexEncodingResult<K, V> indexEncoding, Function<V, R> valueMapper) {
+        List<K> keyList = indexEncoding.keyList();
+        KeyListChecksum expectedChecksum = indexEncoding.keyListChecksum();
+        KeyListChecksum actualChecksum = computeChecksum(expectedChecksum.type(), keyList);
+        Preconditions.checkArgument(
+                actualChecksum.equals(expectedChecksum),
+                "Key list integrity check failed",
+                UnsafeArg.of("keyList", keyList),
+                SafeArg.of("actualChecksum", actualChecksum),
+                SafeArg.of("expectedChecksum", expectedChecksum));
+
+        Map<K, R> keyToValue =
+                Maps.newHashMapWithExpectedSize(indexEncoding.indexToValue().size());
+        for (Map.Entry<Integer, V> entry : indexEncoding.indexToValue().entrySet()) {
+            int index = entry.getKey();
+            Preconditions.checkArgument(
+                    index >= 0 && index < keyList.size(),
+                    "Index map contains invalid index",
+                    SafeArg.of("index", index),
+                    SafeArg.of("keyListSize", keyList.size()));
+            keyToValue.put(keyList.get(index), valueMapper.apply(entry.getValue()));
+        }
+        return keyToValue;
+    }
+
+    public static <K extends DeterministicHashable> KeyListChecksum computeChecksum(
+            ChecksumType checksumType, List<K> keyList) {
+        switch (checksumType) {
+            case CRC32_OF_DETERMINISTIC_HASHCODE: {
+                CRC32 checksum = new CRC32();
+                for (K key : keyList) {
+                    checksum.update(key.deterministicHashCode());
+                }
+                return KeyListChecksum.of(
+                        checksumType,
+                        ByteBuffer.allocate(8).putLong(checksum.getValue()).array());
+            }
+            default: {
+                throw new SafeIllegalArgumentException(
+                        "Unknown checksum type", SafeArg.of("checksumType", checksumType));
+            }
+        }
+    }
+
+    public interface DeterministicHashable {
+
+        /**
+         * A hash code implementation that is stable across different processes/JVMs and only depends on the contents
+         * of the object.
+         */
+        int deterministicHashCode();
+    }
+
+    /**
+     * This class is merely used to wrap the output of {@link IndexEncodingUtils#encode} and should not be embedded in
+     * any other object directly or serialized as-is.
+     */
+    @Value.Immutable
+    @JsonIgnoreType
+    public interface IndexEncodingResult<K extends DeterministicHashable, V> {
+        List<K> keyList();
+
+        KeyListChecksum keyListChecksum();
+
+        Map<Integer, V> indexToValue();
+
+        static <K extends DeterministicHashable, V> ImmutableIndexEncodingResult.Builder<K, V> builder() {
+            return ImmutableIndexEncodingResult.builder();
+        }
+    }
+
+    public enum ChecksumType {
+        CRC32_OF_DETERMINISTIC_HASHCODE(1);
+
+        private static final Map<Integer, ChecksumType> ID_TO_ENTRY =
+                Arrays.stream(ChecksumType.values()).collect(Collectors.toMap(entry -> entry.id, entry -> entry));
+
+        private final int id;
+
+        ChecksumType(int id) {
+            this.id = id;
+        }
+
+        public int getId() {
+            return id;
+        }
+
+        public static ChecksumType valueOf(int id) {
+            Preconditions.checkArgument(
+                    ID_TO_ENTRY.containsKey(id), "Unknown checksum type ID", SafeArg.of("checksumTypeId", id));
+            return ID_TO_ENTRY.get(id);
+        }
+    }
+
+    @Value.Immutable
+    public interface KeyListChecksum {
+
+        @Value.Parameter
+        ChecksumType type();
+
+        @Value.Parameter
+        byte[] value();
+
+        static KeyListChecksum of(ChecksumType type, byte[] value) {
+            return ImmutableKeyListChecksum.of(type, value);
+        }
+    }
+}u}(jdX (1c58d50254ae7b8272b34df90b7342f7bd636537jX Oatlasdb-commons/src/main/java/com/palantir/util/io/AvailabilityRequirement.javajX addedjX K3jX K jX K3jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirement.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirement.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirement.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -0,0 +1,51 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util.io;
+
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+
+public enum AvailabilityRequirement {
+    ANY {
+        @Override
+        protected int calculateRequired(int total) {
+            return 1;
+        }
+    },
+    QUORUM {
+        @Override
+        protected int calculateRequired(int total) {
+            return (total / 2) + 1;
+        }
+    };
+
+    protected abstract int calculateRequired(int total);
+
+    public final boolean satisfies(int available, int total) {
+        Preconditions.checkArgument(
+                available >= 0 && total >= 0,
+                "Available and total must be non-negative.",
+                SafeArg.of("available", available),
+                SafeArg.of("total", total));
+        Preconditions.checkArgument(
+                available <= total,
+                "Available must be less than or equal to total.",
+                SafeArg.of("available", available),
+                SafeArg.of("total", total));
+        return available >= calculateRequired(total);
+    }
+}u}(jdX (27fe98fdf2bee74850041a69a10a00e91d3ae2f0jX Katlasdb-commons/src/test/java/com/palantir/util/IndexEncodingUtilsTest.javajX addedjX KjX K jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X$  @@ -0,0 +1,202 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.common.streams.KeyedStream;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.util.IndexEncodingUtils.ChecksumType;
+import com.palantir.util.IndexEncodingUtils.DeterministicHashable;
+import com.palantir.util.IndexEncodingUtils.IndexEncodingResult;
+import com.palantir.util.IndexEncodingUtils.KeyListChecksum;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.Random;
+import java.util.Set;
+import java.util.UUID;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import org.immutables.value.Value;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+
+@RunWith(Parameterized.class)
+public class IndexEncodingUtilsTest {
+
+    @Parameterized.Parameters(name = "checksumType={0}")
+    public static Iterable<ChecksumType> data() {
+        return Arrays.asList(ChecksumType.values());
+    }
+
+    private static final Map<DeterministicHashableWrapper<String>, Long> VALUES =
+            ImmutableMap.of(wrap("key1"), 42L, wrap("key2"), 1337L, wrap("anotherKey"), -10L);
+    private static final Set<DeterministicHashableWrapper<String>> KEYS =
+            ImmutableSet.of(wrap("key1"), wrap("key2"), wrap("anotherKey"));
+
+    private final ChecksumType checksumType;
+
+    public IndexEncodingUtilsTest(ChecksumType checksumType) {
+        this.checksumType = checksumType;
+    }
+
+    @Test
+    public void canLookupValidChecksumType() {
+        assertThat(ChecksumType.valueOf(checksumType.getId())).isEqualTo(checksumType);
+    }
+
+    @Test
+    public void cannotLookupUnknownChecksumType() {
+        assertThatLoggableExceptionThrownBy(() -> ChecksumType.valueOf(-1))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasLogMessage("Unknown checksum type ID")
+                .hasExactlyArgs(SafeArg.of("checksumTypeId", -1));
+    }
+
+    @Test
+    public void canEncodeSimpleData() {
+        assertThat(createIndexEncoding().indexToValue()).isEqualTo(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
+    }
+
+    @Test
+    public void canDecodeSimpleData() {
+        assertThat(IndexEncodingUtils.decode(createIndexEncoding())).containsExactlyInAnyOrderEntriesOf(VALUES);
+    }
+
+    @Test
+    public void canEncodeAndDecodeEmptyData() {
+        assertThat(IndexEncodingUtils.decode(
+                        IndexEncodingUtils.encode(ImmutableSet.of(), ImmutableMap.of(), checksumType)))
+                .isEmpty();
+    }
+
+    @Test
+    public void canEncodeWithCustomValueMapper() {
+        Map<Integer, String> expectedValues = ImmutableMap.of(1, "1327", 2, "-20", 0, "32");
+        assertThat(IndexEncodingUtils.encode(KEYS, VALUES, value -> Long.toString(value - 10), checksumType)
+                        .indexToValue())
+                .containsExactlyInAnyOrderEntriesOf(expectedValues);
+    }
+
+    @Test
+    public void canDecodeWithCustomValueMapper() {
+        assertThat(IndexEncodingUtils.decode(
+                        IndexEncodingUtils.encode(KEYS, VALUES, value -> Long.toString(value - 10), checksumType),
+                        value -> Long.parseLong(value) + 10))
+                .containsExactlyInAnyOrderEntriesOf(VALUES);
+    }
+
+    @Test
+    public void encodeFailsForUnknownKeysInValueMap() {
+        assertThatLoggableExceptionThrownBy(
+                        () -> IndexEncodingUtils.encode(KEYS, ImmutableMap.of(wrap("unknown-key"), 0L), checksumType))
+                .isExactlyInstanceOf(SafeIllegalArgumentException.class)
+                .hasLogMessage("Value map uses keys that are not in the provided set of keys")
+                .hasExactlyArgs(UnsafeArg.of("unknownKeys", ImmutableSet.of(wrap("unknown-key"))));
+    }
+
+    @Test
+    public void decodeFailsForInvalidIndices() {
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encodedWithInvalidIndices =
+                ImmutableIndexEncodingResult.copyOf(createIndexEncoding())
+                        .withIndexToValue(ImmutableMap.of(KEYS.size(), 17L));
+        assertThatLoggableExceptionThrownBy(() -> IndexEncodingUtils.decode(encodedWithInvalidIndices))
+                .isExactlyInstanceOf(SafeIllegalArgumentException.class)
+                .hasLogMessage("Index map contains invalid index")
+                .hasExactlyArgs(SafeArg.of("index", KEYS.size()), SafeArg.of("keyListSize", KEYS.size()));
+    }
+
+    @Test
+    public void integrityCheckFailsForDifferentKeyList() {
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encoded = createIndexEncoding();
+        List<DeterministicHashableWrapper<String>> modifiedKeyList = new ArrayList<>(KEYS);
+        Collections.swap(modifiedKeyList, 0, 1);
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encodedWithModifiedKeyList =
+                ImmutableIndexEncodingResult.copyOf(encoded).withKeyList(modifiedKeyList);
+        KeyListChecksum actualChecksum = IndexEncodingUtils.computeChecksum(checksumType, modifiedKeyList);
+        assertThatLoggableExceptionThrownBy(() -> IndexEncodingUtils.decode(encodedWithModifiedKeyList))
+                .isExactlyInstanceOf(SafeIllegalArgumentException.class)
+                .hasLogMessage("Key list integrity check failed")
+                .hasExactlyArgs(
+                        UnsafeArg.of("keyList", modifiedKeyList),
+                        SafeArg.of("actualChecksum", actualChecksum),
+                        SafeArg.of("expectedChecksum", encoded.keyListChecksum()));
+    }
+
+    @Test
+    public void integrityCheckFailsForDifferentChecksum() {
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encoded = createIndexEncoding();
+        byte[] modifiedChecksum = encoded.keyListChecksum().value();
+        modifiedChecksum[0]++;
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encodedWithModifiedChecksum =
+                ImmutableIndexEncodingResult.copyOf(encoded)
+                        .withKeyListChecksum(KeyListChecksum.of(checksumType, modifiedChecksum));
+        assertThatLoggableExceptionThrownBy(() -> IndexEncodingUtils.decode(encodedWithModifiedChecksum))
+                .isExactlyInstanceOf(SafeIllegalArgumentException.class)
+                .hasLogMessage("Key list integrity check failed")
+                .hasExactlyArgs(
+                        UnsafeArg.of("keyList", encoded.keyList()),
+                        SafeArg.of("actualChecksum", encoded.keyListChecksum()),
+                        SafeArg.of("expectedChecksum", encodedWithModifiedChecksum.keyListChecksum()));
+    }
+
+    @Test
+    public void decodingEncodedDataYieldsOriginalForRandomData() {
+        int seed = (int) System.currentTimeMillis();
+        Random rand = new Random(seed);
+        Set<DeterministicHashableWrapper<UUID>> keys = Stream.generate(UUID::randomUUID)
+                .limit(1000)
+                .map(IndexEncodingUtilsTest::wrap)
+                .collect(Collectors.toSet());
+        Map<DeterministicHashableWrapper<UUID>, Long> data = KeyedStream.of(keys.stream())
+                .filter(_unused -> rand.nextBoolean())
+                .map(_unused -> rand.nextLong())
+                .collectToMap();
+        assertThat(IndexEncodingUtils.decode(IndexEncodingUtils.encode(keys, data, checksumType)))
+                .as("Encoding and decoding yields original data. Random seed: " + seed)
+                .containsExactlyInAnyOrderEntriesOf(data);
+    }
+
+    private IndexEncodingResult<DeterministicHashableWrapper<String>, Long> createIndexEncoding() {
+        return IndexEncodingUtils.encode(KEYS, VALUES, checksumType);
+    }
+
+    private static <T> DeterministicHashableWrapper<T> wrap(T value) {
+        return ImmutableDeterministicHashableWrapper.of(value);
+    }
+
+    @Value.Immutable
+    abstract static class DeterministicHashableWrapper<T> implements DeterministicHashable {
+
+        @Value.Parameter
+        protected abstract T delegate();
+
+        @Override
+        public int deterministicHashCode() {
+            return delegate().hashCode();
+        }
+    }
+}u}(jdX (02ba7a7df417ddea93cfbe362d001e291e48f2ffjX Satlasdb-commons/src/test/java/com/palantir/util/io/AvailabilityRequirementTest.javajX addedjX K^jX K jX K^jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirementTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirementTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirementTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX XS  @@ -0,0 +1,94 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util.io;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import org.junit.Test;
+
+public final class AvailabilityRequirementTest {
+    @Test
+    public void anySatisfiesGreaterThanZero() {
+        assertThat(AvailabilityRequirement.ANY.satisfies(1, 10)).isTrue();
+    }
+
+    @Test
+    public void anySatisfiesWhenEquivalentToTotal() {
+        assertThat(AvailabilityRequirement.ANY.satisfies(1, 1)).isTrue();
+        assertThat(AvailabilityRequirement.ANY.satisfies(10, 10)).isTrue();
+    }
+
+    @Test
+    public void anyDoesNotSatisfyWhenZero() {
+        assertThat(AvailabilityRequirement.ANY.satisfies(0, 10)).isFalse();
+        assertThat(AvailabilityRequirement.ANY.satisfies(0, 0)).isFalse();
+    }
+
+    @Test
+    public void quorumSatisfiesWhenHasMajority() {
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(2, 3)).isTrue();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(4, 6)).isTrue();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(5, 9)).isTrue();
+    }
+
+    @Test
+    public void quorumDoesNotSatisfyWhenItDoesNotHaveMajority() {
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(0, 0)).isFalse();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(0, 1)).isFalse();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(1, 3)).isFalse();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(3, 6)).isFalse();
+    }
+
+    @Test
+    public void quorumSatisfiesWhenHasTotal() {
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(1, 1)).isTrue();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(10, 10)).isTrue();
+    }
+
+    @Test
+    public void satisfiesThrowsWhenAvailableIsNegative() {
+        assertThatNegativeArgumentsExceptionThrowsForArguments(-1, 10);
+    }
+
+    @Test
+    public void satisfiesThrowsWhenTotalIsNegative() {
+        assertThatNegativeArgumentsExceptionThrowsForArguments(1, -10);
+    }
+
+    @Test
+    public void satisfiesThrowsWhenBothAreNegative() {
+        assertThatNegativeArgumentsExceptionThrowsForArguments(-1, -10);
+    }
+
+    @Test
+    public void satisfiesThrowsWhenAvailableIsGreaterThanTotal() {
+        assertThatLoggableExceptionThrownBy(() -> AvailabilityRequirement.ANY.satisfies(11, 10))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Available must be less than or equal to total.")
+                .hasExactlyArgs(SafeArg.of("available", 11), SafeArg.of("total", 10));
+    }
+
+    private static void assertThatNegativeArgumentsExceptionThrowsForArguments(int available, int total) {
+        assertThatLoggableExceptionThrownBy(() -> AvailabilityRequirement.ANY.satisfies(available, total))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Available and total must be non-negative.")
+                .hasExactlyArgs(SafeArg.of("available", available), SafeArg.of("total", total));
+    }
+}u}(jdX (7c4c67541d67c4aac64d40c0c8b2421caf7ea3d5jX Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javajX modifiedjX K	jX K	jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -223,7 +223,7 @@ Function<TimelockService, TimeLockClient> defaultTimelockClientFactory() {
      * TransactionManager will stay uninitialized and continue to throw for all other purposes until the callback
      * returns at which point it will become initialized. If asynchronous initialization is disabled, the callback will
      * be run just before the TM is returned.
-     *
+     * <p>
      * Note that if the callback blocks forever, the TransactionManager will never become initialized, and calling its
      * close() method will block forever as well. If the callback init() fails, and its cleanup() method throws,
      * the TransactionManager will not become initialized and it will be closed.
@@ -402,10 +402,10 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
 
         KeyValueService keyValueService = initializeCloseable(
                 () -> {
-                    KeyValueService kvs = atlasFactory.getKeyValueService();
-                    kvs = ProfilingKeyValueService.create(kvs);
+                    KeyValueService kvs = atlasFactory.getKeyValueService(); // CassandraKeyValueServiceImpl
+                    kvs = ProfilingKeyValueService.create(kvs); // Profiling, we think ok
                     kvs = new SafeTableClearerKeyValueService(
-                            lockAndTimestampServices.timelock()::getImmutableTimestamp, kvs);
+                            lockAndTimestampServices.timelock()::getImmutableTimestamp, kvs); // Autodelegate, ok
 
                     // Even if sweep queue writes are enabled, unless targeted sweep is enabled we generally still want
                     // to
@@ -420,13 +420,13 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                                 () -> true);
                     }
 
-                    kvs = TracingKeyValueService.create(kvs);
+                    kvs = TracingKeyValueService.create(kvs); // ok
                     kvs = AtlasDbMetrics.instrumentTimed(
                             metricsManager.getRegistry(),
                             KeyValueService.class,
                             kvs,
-                            MetricRegistry.name(KeyValueService.class));
-                    return ValidatingQueryRewritingKeyValueService.create(kvs);
+                            MetricRegistry.name(KeyValueService.class)); // ok?
+                    return ValidatingQueryRewritingKeyValueService.create(kvs); // ok
                 },
                 closeables);
 
@@ -670,10 +670,10 @@ private static Callback<TransactionManager> createClearsTable() {
     /**
      * If we decide to move a service to use thorough sweep; we need to make sure that background sweep won't cause any
      * trouble by deleting large number of empty values at once - causing Cassandra OOMs.
-     *
+     * <p>
      * lockImmutableTsOnReadOnlyTransaction flag is used to decide on disabling background sweep, as this flag is used
      * as an intermediate step for migrating to thorough sweep.
-     *
+     * <p>
      * Separately, users may disable the background sweep process entirely in config, which we respect.
      */
     private boolean runBackgroundSweepProcess() {u}(jdX (30239d5d4f11f579d2be533da44b54e474102a2djX Oatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/DbKvs.javajX modifiedjX KjX K jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FDbKvs.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FDbKvs.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FDbKvs.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X5  @@ -1369,6 +1369,7 @@ private <T> T runReadWrite(TableReference tableRef, ReadWriteTask<T> runner) {
         }
     }
 
+    @SuppressWarnings("CheckReturnValue")
     private <T> void runWriteForceAutocommit(TableReference tableRef, Function<DbWriteTable, T> runner) {
         try (ConnectionSupplier conns = new ConnectionSupplier(connections)) {
             SqlConnection conn = conns.get();
@@ -1381,6 +1382,7 @@ private <T> void runWriteForceAutocommit(TableReference tableRef, Function<DbWri
             if (!autocommit) {
                 runWriteFreshConnection(conns, tableRef, runner);
             } else {
+                // The return value can be ignored because the operation does a non-conditional write.
                 runner.apply(dbTables.createWrite(tableRef, conns));
             }
         }u}(jdX (5022c993a6c8701af08093ae47ccd0f26ec456eejX Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraTimeLockTestSuite.javajX modifiedjX KjX K
jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -17,22 +17,19 @@
 
 import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.containers.CassandraEnvironment;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import com.palantir.atlasdb.ete.coordination.MultipleSchemaVersionsCoordinationEteTest;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;
 import org.junit.runners.Suite;
 
 @RunWith(Suite.class)
-@Suite.SuiteClasses({
-    TodoEteTest.class,
-    TargetedSweepEteTest.class,
-    CassandraTimestampsEteTest.class,
-    TimestampManagementEteTest.class,
-    CoordinationEteTest.class,
-    MultipleSchemaVersionsCoordinationEteTest.class,
-    LockWithTimelockEteTest.class
+@Suite.SuiteClasses({TodoEteTest.class
+    //    TargetedSweepEteTest.class,
+    //    CassandraTimestampsEteTest.class,
+    //    TimestampManagementEteTest.class,
+    //    CoordinationEteTest.class,
+    //    MultipleSchemaVersionsCoordinationEteTest.class,
+    //    LockWithTimelockEteTest.class
 })
 public class CassandraTimeLockTestSuite extends EteSetup {
     private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");u}(jdX (7f90d96f996595cc4084c6ca9063c5df68e00be7jX fatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/LockDiagnosticConjureTimelockService.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FLockDiagnosticConjureTimelockService.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FLockDiagnosticConjureTimelockService.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FLockDiagnosticConjureTimelockService.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -16,10 +16,12 @@
 
 package com.palantir.atlasdb.debug;
 
+import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.timelock.api.ConjureGetFreshTimestampsRequest;
 import com.palantir.atlasdb.timelock.api.ConjureGetFreshTimestampsRequestV2;
 import com.palantir.atlasdb.timelock.api.ConjureGetFreshTimestampsResponse;
 import com.palantir.atlasdb.timelock.api.ConjureGetFreshTimestampsResponseV2;
+import com.palantir.atlasdb.timelock.api.ConjureLockDescriptor;
 import com.palantir.atlasdb.timelock.api.ConjureLockRequest;
 import com.palantir.atlasdb.timelock.api.ConjureLockResponse;
 import com.palantir.atlasdb.timelock.api.ConjureRefreshLocksRequest;
@@ -42,6 +44,7 @@
 import com.palantir.lock.v2.LeaderTime;
 import com.palantir.tokens.auth.AuthHeader;
 import java.util.Optional;
+import java.util.Set;
 
 /**
  * TODO(fdesouza): Remove this once PDS-95791 is resolved.
@@ -97,24 +100,26 @@ public LeaderTime leaderTime(AuthHeader authHeader, String namespace) {
 
     @Override
     public ConjureLockResponse lock(AuthHeader authHeader, String namespace, ConjureLockRequest request) {
+        Set<ConjureLockDescriptor> lockDescriptors = ImmutableSet.copyOf(request.getLockDescriptors());
         request.getClientDescription()
                 .flatMap(LockDiagnosticConjureTimelockService::tryParseStartTimestamp)
-                .ifPresent(startTimestamp -> lockDiagnosticCollector.collect(
-                        startTimestamp, request.getRequestId(), request.getLockDescriptors()));
+                .ifPresent(startTimestamp ->
+                        lockDiagnosticCollector.collect(startTimestamp, request.getRequestId(), lockDescriptors));
         ConjureLockResponse response = conjureDelegate.lock(authHeader, namespace, request);
-        localLockTracker.logLockResponse(request.getLockDescriptors(), response);
+        localLockTracker.logLockResponse(lockDescriptors, response);
         return response;
     }
 
     @Override
     public ConjureWaitForLocksResponse waitForLocks(
             AuthHeader authHeader, String namespace, ConjureLockRequest request) {
+        Set<ConjureLockDescriptor> lockDescriptors = ImmutableSet.copyOf(request.getLockDescriptors());
         request.getClientDescription()
                 .flatMap(LockDiagnosticConjureTimelockService::tryParseStartTimestamp)
-                .ifPresent(startTimestamp -> lockDiagnosticCollector.collect(
-                        startTimestamp, request.getRequestId(), request.getLockDescriptors()));
+                .ifPresent(startTimestamp ->
+                        lockDiagnosticCollector.collect(startTimestamp, request.getRequestId(), lockDescriptors));
         ConjureWaitForLocksResponse response = conjureDelegate.waitForLocks(authHeader, namespace, request);
-        localLockTracker.logWaitForLocksResponse(request.getLockDescriptors(), response);
+        localLockTracker.logWaitForLocksResponse(lockDescriptors, response);
         return response;
     }
 u}(jdX (970150ceb69466af2115ad6aa21eb8a845799996jX Qatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfo.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfo.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfo.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfo.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -22,7 +22,7 @@
 import com.palantir.atlasdb.keyvalue.api.WriteReference;
 import com.palantir.atlasdb.sweep.Sweeper;
 import java.time.LocalDate;
-import java.time.ZoneId;
+import java.time.ZoneOffset;
 import java.util.Optional;
 import org.immutables.value.Value;
 
@@ -55,7 +55,7 @@ default int dayRotatingHash() {
         int hash = 5381;
         hash = hash * 1439
                 + writeRef().orElse(SweepQueueUtils.DUMMY).cellReference().goodHash();
-        hash = hash * 1439 + LocalDate.now(ZoneId.of("UTC")).hashCode();
+        hash = hash * 1439 + LocalDate.now(ZoneOffset.UTC).hashCode();
         return hash;
     }
 u}(jdX (15aa07ec06196f530db279a3f45361e4dbb9c46ejX hatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIterator.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X	  @@ -15,8 +15,10 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterators;
+import com.google.common.math.IntMath;
 import com.palantir.atlasdb.AtlasDbPerformanceConstants;
 import com.palantir.common.base.ClosableIterator;
 import com.palantir.common.base.ClosableIterators;
@@ -32,9 +34,17 @@
 public class BatchSizeIncreasingIterator<T> implements Closeable {
     private static final SafeLogger log = SafeLoggerFactory.get(BatchSizeIncreasingIterator.class);
 
+    @VisibleForTesting
+    static final Integer MAX_FACTOR = 8;
+
+    @VisibleForTesting
+    static final Integer INCREASE_FACTOR = 4;
+
     private final int originalBatchSize;
     private final BatchProvider<T> batchProvider;
 
+    private final int maxBatchSize;
+
     private ClosableIterator<T> currentResults;
     private byte[] lastToken;
 
@@ -51,6 +61,8 @@ public BatchSizeIncreasingIterator(
         if (currentResults != null) {
             this.lastBatchSize = originalBatchSize;
         }
+        this.maxBatchSize = Math.min(
+                IntMath.saturatedMultiply(originalBatchSize, MAX_FACTOR), AtlasDbPerformanceConstants.MAX_BATCH_SIZE);
     }
 
     public void markNumResultsNotDeleted(int resultsInBatch) {
@@ -64,15 +76,15 @@ int getBestBatchSize() {
             return originalBatchSize;
         }
         final long batchSize;
-        long maxNewBatchSize = numReturned * 4;
+        long maxNewBatchSize = numReturned * INCREASE_FACTOR;
         if (numNotDeleted == 0) {
             // If everything we've seen has been deleted, we should be aggressive about getting more rows.
             batchSize = maxNewBatchSize;
         } else {
             batchSize = Math.min(
                     (long) Math.ceil(originalBatchSize * (numReturned / (double) numNotDeleted)), maxNewBatchSize);
         }
-        return (int) Math.min(batchSize, AtlasDbPerformanceConstants.MAX_BATCH_SIZE);
+        return (int) Math.min(batchSize, maxBatchSize);
     }
 
     private void updateResultsIfNeeded() {
@@ -116,6 +128,11 @@ public BatchResult<T> getBatch() {
         return ImmutableBatchResult.of(list, isLastBatch);
     }
 
+    @VisibleForTesting
+    int getMaxBatchSize() {
+        return maxBatchSize;
+    }
+
     @Value.Immutable
     interface BatchResult<T> {
         @Value.Parameteru}(jdX (d466b7fe092a70d03473a571de87682fbff274a5jX `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -2573,7 +2573,7 @@ protected Set<LockDescriptor> getLocksForWrites() {
                     result.add(AtlasCellLockDescriptor.of(
                             tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName()));
                 }
-                cellLockCount = cellsToLock.size();
+                cellLockCount += cellsToLock.size();
             }
 
             if (conflictHandler.lockRowsForConflicts()) {u}(jdX (5e7f986f7b70e5c550f97a4eafd0ef844c99fe20jX Oatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/util/MeasuringUtils.javajX modifiedjX KjX K
jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMeasuringUtils.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMeasuringUtils.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMeasuringUtils.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -24,7 +24,6 @@
 import java.lang.reflect.Array;
 import java.util.Collection;
 import java.util.Map;
-import java.util.Map.Entry;
 import java.util.Set;
 import java.util.function.ToLongFunction;
 
@@ -64,7 +63,7 @@ public static long sizeOf(Multimap<? extends Measurable, Long> map) {
         return sizeOf(map.keys()) + ((long) map.size()) * Long.BYTES;
     }
 
-    public static long sizeOf(Entry<? extends Measurable, ? extends Measurable> entry) {
+    public static long sizeOf(Map.Entry<? extends Measurable, ? extends Measurable> entry) {
         return entry.getKey().sizeInBytes() + entry.getValue().sizeInBytes();
     }
 
@@ -86,16 +85,18 @@ private static <T> long sizeOfCollection(Collection<T> collection, ToLongFunctio
 
     private static <K, V> long sizeOfMap(
             Map<K, V> map, ToLongFunction<K> keyMeasurer, ToLongFunction<V> valueMeasurer) {
-        return map.entrySet().stream()
-                .mapToLong(
-                        entry -> keyMeasurer.applyAsLong(entry.getKey()) + valueMeasurer.applyAsLong(entry.getValue()))
-                .sum();
+        long sum = 0L;
+        for (Map.Entry<K, V> entry : map.entrySet()) {
+            sum += keyMeasurer.applyAsLong(entry.getKey()) + valueMeasurer.applyAsLong(entry.getValue());
+        }
+        return sum;
     }
 
     private static <T> long sizeOfRowResult(RowResult<T> rowResult, ToLongFunction<T> measurer) {
-        return rowResult.getRowNameSize()
-                + rowResult.getColumns().entrySet().stream()
-                        .mapToLong(entry -> entry.getKey().length + measurer.applyAsLong(entry.getValue()))
-                        .sum();
+        long sum = rowResult.getRowNameSize();
+        for (Map.Entry<byte[], T> entry : rowResult.getColumns().entrySet()) {
+            sum += entry.getKey().length + measurer.applyAsLong(entry.getValue());
+        }
+        return sum;
     }
 }u}(jdX (654c9ff367000102ae226eb294db877760cdd71ajX latlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIteratorTest.javajX addedjX KejX K jX KejX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIteratorTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIteratorTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIteratorTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -0,0 +1,101 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.AtlasDbPerformanceConstants;
+import com.palantir.common.base.ClosableIterator;
+import com.palantir.common.base.ClosableIterators;
+import java.nio.ByteBuffer;
+import java.util.List;
+import java.util.NavigableSet;
+import java.util.TreeSet;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.Test;
+
+public class BatchSizeIncreasingIteratorTest {
+
+    @Test
+    public void handlesIntegerOverflow() {
+        assertThat(new BatchSizeIncreasingIterator<>(
+                                new TestBatchProvider(0),
+                                Integer.MAX_VALUE,
+                                ClosableIterators.emptyImmutableClosableIterator())
+                        .getMaxBatchSize())
+                .isEqualTo(AtlasDbPerformanceConstants.MAX_BATCH_SIZE);
+    }
+
+    @Test
+    public void getBestBatchSizeEqualToOriginalOnFirstIteration() {
+        assertThat(new BatchSizeIncreasingIterator<>(
+                                new TestBatchProvider(0), 1, ClosableIterators.emptyImmutableClosableIterator())
+                        .getBestBatchSize())
+                .isEqualTo(1);
+    }
+
+    @Test
+    public void getBestBatchSizeNeverLargerThanMax() {
+        int originalBatchSize = 1;
+        BatchSizeIncreasingIterator<Integer> iterator = new BatchSizeIncreasingIterator<>(
+                new TestBatchProvider(1000),
+                originalBatchSize,
+                ClosableIterators.wrap(List.of(0).iterator()));
+        // This will make the batch size increasing iterator think that it is only getting deleted values, which will
+        // result in an increase by BatchSizeIncreasingIterator.INCREASE_FACTOR.
+        iterator.markNumResultsNotDeleted(0);
+        IntStream.range(0, BatchSizeIncreasingIterator.MAX_FACTOR / BatchSizeIncreasingIterator.INCREASE_FACTOR + 1)
+                .forEach(_ignore -> iterator.getBatch());
+        assertThat(iterator.getBestBatchSize()).isEqualTo(originalBatchSize * BatchSizeIncreasingIterator.MAX_FACTOR);
+    }
+
+    private static class TestBatchProvider implements BatchProvider<Integer> {
+
+        private final NavigableSet<Integer> values;
+
+        public TestBatchProvider(Integer count) {
+            this(IntStream.range(0, count)
+                    .boxed()
+                    .collect(Collectors.<Integer, TreeSet<Integer>>toCollection(TreeSet::new)));
+        }
+
+        public TestBatchProvider(NavigableSet<Integer> values) {
+            this.values = values;
+        }
+
+        @Override
+        public ClosableIterator<Integer> getBatch(int batchSize, byte[] lastToken) {
+            int value = ByteBuffer.wrap(lastToken).getInt();
+            return ClosableIterators.wrapWithEmptyClose(
+                    values.tailSet(value, true).iterator());
+        }
+
+        @Override
+        public boolean hasNext(byte[] lastToken) {
+            int value = ByteBuffer.wrap(lastToken).getInt();
+            return values.ceiling(value) != null;
+        }
+
+        @Override
+        public byte[] getLastToken(List<Integer> batch) {
+            return ByteBuffer.allocate(Integer.BYTES)
+                    .putInt(batch.get(batch.size() - 1))
+                    .array();
+        }
+    }
+}u}(jdX (f50ba6fb8ff4b715f30ebce9c2fa22564281fe50jX eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javajX modifiedjX KjX K jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX Xi  @@ -2717,6 +2717,21 @@ public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigratio
         assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
     }
 
+    @Test
+    public void setsRequestedCellCommitLocksCountCorrectlyForMultipleTables() {
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_CELL);
+        overrideConflictHandlerForTable(TABLE2, ConflictHandler.SERIALIZABLE_CELL);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE2, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(0 + 1);
+    }
+
     @Test
     public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
         for (int idx = 0; idx < SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS; idx++) {u}(jdX (5a5556860449da126adc5f8a0981453e801987cajX 1atlasdb-workload-server-antithesis/var/compact.shjX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shjX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shjX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.sh?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX Xx  @@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 ##
 # (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
@@ -16,4 +16,4 @@
 # limitations under the License.
 #
 
-podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool compact'¡
\ No newline at end of file
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool compact'
\ No newline at end of fileu}(jdX (d76af03da7c4bad04f1910eb26d354bd1ad9a05djX 9atlasdb-workload-server-antithesis/var/docker-compose.ymljX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymljX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymljX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -2,7 +2,7 @@ version: '2'
 
 services:
   cassandra1:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+    image: palantirtechnologies/cassandra:2.2.18-1.116.0
     ports:
       - "9160"
       - "9042"
@@ -20,7 +20,7 @@ services:
         ipv4_address: 10.20.20.2
 
   cassandra2:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+    image: palantirtechnologies/cassandra:2.2.18-1.116.0
     ports:
       - "9160"
       - "9042"
@@ -38,7 +38,7 @@ services:
         ipv4_address: 10.20.20.3
 
   cassandra3:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+    image: palantirtechnologies/cassandra:2.2.18-1.116.0
     ports:
       - "9160"
       - "9042"u}(jdX (f91ee5ba5579e07f5e1e9948bf32e02918dd8185jX /atlasdb-workload-server-antithesis/var/flush.shjX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shjX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shjX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fflush.sh?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX }@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 ##
 # (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.u}(jdX (7688afda0d1babfe3e30b9cb5e95cdef3667ba38jX aatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ColumnAndValue.javajX renamedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnAndValue.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnAndValue.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnAndValue.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -19,14 +19,14 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface ColumnValue {
+public interface ColumnAndValue {
     @Value.Parameter
     int column();
 
     @Value.Parameter
     int value();
 
-    static ColumnValue of(int column, int value) {
-        return ImmutableColumnValue.of(column, value);
+    static ColumnAndValue of(int column, int value) {
+        return ImmutableColumnAndValue.of(column, value);
     }
 }previous_filename^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ColumnValue.javau}(jdX (ecbd656f159c09a8e2390dc3345bd413af2a1881jX oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import java.util.List;
@@ -32,7 +32,7 @@ public interface InteractiveTransaction {
 
     void delete(String table, WorkloadCell workloadCell);
 
-    List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection);
+    List<ColumnAndValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection);
 
     List<WitnessedTransactionAction> witness();
 }u}(jdX (6be89ac577d426cb259ff547d6ed9c8b7a14da63jX |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowColumnRangeReadTransactionAction.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX XU  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import java.util.List;
 import org.immutables.value.Value;
@@ -42,7 +42,7 @@ default <T> T accept(TransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-    default WitnessedRowColumnRangeReadTransactionAction witness(List<ColumnValue> columnsAndValues) {
+    default WitnessedRowColumnRangeReadTransactionAction witness(List<ColumnAndValue> columnsAndValues) {
         return WitnessedRowColumnRangeReadTransactionAction.builder()
                 .originalQuery(this)
                 .columnsAndValues(columnsAndValues)u}(jdX (72bc11659accd74d0abb03df5bdecff95ddeceb9jX xatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/SingleCellReadTransactionAction.javajX renamedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellReadTransactionAction.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellReadTransactionAction.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellReadTransactionAction.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX XU  @@ -17,24 +17,23 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedSingleCellReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import java.util.Optional;
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface ReadTransactionAction extends SingleCellTransactionAction {
-
-    default WitnessedReadTransactionAction witness(Optional<Integer> value) {
-        return ImmutableWitnessedReadTransactionAction.of(table(), cell(), value);
+public interface SingleCellReadTransactionAction extends SingleCellTransactionAction {
+    default WitnessedSingleCellReadTransactionAction witness(Optional<Integer> value) {
+        return ImmutableWitnessedSingleCellReadTransactionAction.of(table(), cell(), value);
     }
 
     @Override
     default <T> T accept(TransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-    static ReadTransactionAction of(String table, WorkloadCell workloadCell) {
-        return ImmutableReadTransactionAction.of(table, workloadCell);
+    static SingleCellReadTransactionAction of(String table, WorkloadCell workloadCell) {
+        return ImmutableSingleCellReadTransactionAction.of(table, workloadCell);
     }
 }jY natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ReadTransactionAction.javau}(jdX (0a91db8551cefb63678b7a8738390e5453d4310bjX qatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionActionVisitor.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.java     jX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX XB  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction;
 
 public interface TransactionActionVisitor<T> {
-    T visit(ReadTransactionAction readTransactionAction);
+    T visit(SingleCellReadTransactionAction singleCellReadTransactionAction);
 
     T visit(WriteTransactionAction writeTransactionAction);
 u}(jdX (c3f046a1384b93cbb56e4130900d91a35a72ff09jX atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedRowColumnRangeReadTransactionAction.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.javajX X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import java.util.List;
@@ -26,7 +26,7 @@
 public interface InvalidWitnessedRowColumnRangeReadTransactionAction extends InvalidWitnessedTransactionAction {
     WitnessedRowColumnRangeReadTransactionAction witness();
 
-    List<ColumnValue> expectedColumnsAndValues();
+    List<ColumnAndValue> expectedColumnsAndValues();
 
     @Value.Check
     default void check() {u}(jdX (1d2e0f348f3a7c6192c356190679330cf4db63d4jX atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javajX X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X:  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
@@ -32,7 +32,7 @@ public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedT
 
     // This is a List rather than a Set or Map because the ordering in which the columns and values are returned is
     // important (it must match the ordering specified by the contract of row column range reads).
-    List<ColumnValue> columnsAndValues();
+    List<ColumnAndValue> columnsAndValues();
 
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
@@ -43,7 +43,7 @@ default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
     default void check() {
         Set<Integer> knownColumns = new HashSet<>();
         Set<Integer> duplicateColumns = columnsAndValues().stream()
-                .map(ColumnValue::column)
+                .map(ColumnAndValue::column)
                 .filter(column -> !knownColumns.add(column))
                 .collect(Collectors.toSet());
         Preconditions.checkState(u}(jdX (6eceac9e4aec081bfc01707d271c1ea928848a27jX atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedSingleCellReadTransactionAction.javajX renamedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellReadTransactionAction.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellReadTransactionAction.javajX X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellReadTransactionAction.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX Xw  @@ -21,8 +21,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedReadTransactionAction extends WitnessedSingleCellTransactionAction {
-
+public interface WitnessedSingleCellReadTransactionAction extends WitnessedSingleCellTransactionAction {
     @Override
     @Value.Parameter
     String table();
@@ -40,7 +39,7 @@ default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-    static WitnessedReadTransactionAction of(String table, WorkloadCell cell, Optional<Integer> value) {
-        return ImmutableWitnessedReadTransactionAction.of(table, cell, value);
+    static WitnessedSingleCellReadTransactionAction of(String table, WorkloadCell cell, Optional<Integer> value) {
+        return ImmutableWitnessedSingleCellReadTransactionAction.of(table, cell, value);
     }
 }jY atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedReadTransactionAction.javau}(jdX (f5757c803ef0b621c430879709896498f246314ajX atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionActionVisitor.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX Xf  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
 public interface WitnessedTransactionActionVisitor<T> {
-    T visit(WitnessedReadTransactionAction readTransactionAction);
+    T visit(WitnessedSingleCellReadTransactionAction readTransactionAction);
 
     T visit(WitnessedWriteTransactionAction writeTransactionAction);
 u}(jdX (b9204f7d18a8c7881c6b1c06fcaa87e0b81b0918jX atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -53,7 +53,8 @@ public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
     @Test
     public void toFullyWitnessedCopiesArgumentsCorrectly() {
         WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
-        WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
+        WitnessedSingleCellReadTransactionAction readTransactionAction =
+                mock(WitnessedSingleCellReadTransactionAction.class);
         List<WitnessedSingleCellTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
         FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
                 .startTimestamp(START_TIMESTAMP)u}(jdX (16d6781c2707fdd741a02ac1bb0a6552f8711c0fjX atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javajX X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX Xg  @@ -21,7 +21,7 @@
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.logsafe.SafeArg;
@@ -33,7 +33,7 @@ public class WitnessedRowColumnRangeReadTransactionActionTest {
     @Test
     public void canCreateWitness() {
         assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
+                        .addColumnsAndValues(ColumnAndValue.of(1, 5), ColumnAndValue.of(5, 1), ColumnAndValue.of(3, 3))
                         .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                 .table("foo")
                                 .row(1)
@@ -46,12 +46,12 @@ public void canCreateWitness() {
 
     @Test
     public void cannotCreateWitnessWithDuplicateColumns() {
-        List<ColumnValue> columnsAndValues = ImmutableList.of(
-                ColumnValue.of(1, 5),
-                ColumnValue.of(5, 1),
-                ColumnValue.of(1, 3),
-                ColumnValue.of(5, 8),
-                ColumnValue.of(9, 99));
+        List<ColumnAndValue> columnsAndValues = ImmutableList.of(
+                ColumnAndValue.of(1, 5),
+                ColumnAndValue.of(5, 1),
+                ColumnAndValue.of(1, 3),
+                ColumnAndValue.of(5, 8),
+                ColumnAndValue.of(9, 99));
 
         assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
                         .addAllColumnsAndValues(columnsAndValues)u}(jdX (43f7db29b1f11285d4780b675a722642fd57ab8cjX latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -48,6 +48,8 @@
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
 import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.WriteOnceDeleteOnceWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.WriteOnceDeleteOnceWorkflows;
 import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflows;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
@@ -119,7 +121,7 @@ private void scheduleBackgroundJobs(Environment environment) {
                         AntithesisCassandraSidecarResource.INSTANCE,
                         DefaultBuggifyFactory.INSTANCE),
                 0,
-                10,
+                2,
                 TimeUnit.SECONDS);
     }
 
@@ -150,6 +152,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().bankBalanceConfig();
         RandomWorkflowConfiguration randomWorkflowConfig =
                 configuration.install().randomConfig();
+        WriteOnceDeleteOnceWorkflowConfiguration writeOnceDeleteOnceConfig =
+                configuration.install().writeOnceDeleteOnceConfig();
 
         waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
 
@@ -168,7 +172,9 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 singleBusyCellReadNoTouchWorkflowConfiguration,
                                 environment.lifecycle()),
                         createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
-                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
+                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()),
+                        createWriteOnceDeleteOnceWorkflow(
+                                transactionStoreFactory, writeOnceDeleteOnceConfig, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -355,6 +361,27 @@ private WorkflowAndInvariants<Workflow> createRandomWorkflow(
                 .build();
     }
 
+    private WorkflowAndInvariants<Workflow> createWriteOnceDeleteOnceWorkflow(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            WriteOnceDeleteOnceWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService =
+                createExecutorService(workflowConfig, lifecycle, WriteOnceDeleteOnceWorkflows.class);
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(WriteOnceDeleteOnceWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        WriteOnceDeleteOnceWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
     @VisibleForTesting
     CountDownLatch workflowsRanLatch() {
         return workflowsRanLatch;u}(jdX (5237f9202d66e63079e2924fcc747ca6dc49a0dbjX atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javajX modifiedjX KjX K jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX XF  @@ -24,6 +24,7 @@
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.WriteOnceDeleteOnceWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
@@ -48,5 +49,7 @@ public interface WorkloadServerInstallConfiguration {
 
     SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadsNoTouchConfig();
 
+    WriteOnceDeleteOnceWorkflowConfiguration writeOnceDeleteOnceConfig();
+
     boolean exitAfterRunning();
 }u}(jdX (4cd63bc7a837d9125b78d17a9da0491aa4140ae7jX Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymljX modifiedjX KjX K jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymljX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymljX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX Xq  @@ -48,4 +48,10 @@ install:
     iterationCount: 100
     type: single-busy-cell-reads-no-touch
     maxThreadCount: 2
+  writeOnceDeleteOnceConfig:
+    tableConfiguration:
+      tableName: write-once-delete-once-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: write-once-delete-once
   exitAfterRunning: false
\ No newline at end of fileu}(jdX (fbcdf7aa235656e485c4e3e935f1a5c896be2a0ajX Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymljX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX XG  @@ -37,7 +37,7 @@ install:
         password: cassandra
       ssl: false
       replicationFactor: 3
-      gcGraceSeconds: 300
+      gcGraceSeconds: 60
     targetedSweep:
       enableSweepQueueWrites: true
     namespace: workload_server
@@ -85,4 +85,10 @@ install:
     iterationCount: 100
     type: single-busy-cell-reads-no-touch
     maxThreadCount: 2
+  writeOnceDeleteOnceConfig:
+    tableConfiguration:
+      tableName: write_once_delete_once_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: write-once-delete-once
   exitAfterRunning: trueu}(jdX (b98150c940857f6d8db8540b9df25fe3acccc161jX Aatlasdb-workload-server-distribution/var/conf/workload-server.ymljX modifiedjX KjX K jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX Xp  @@ -49,4 +49,10 @@ install:
     iterationCount: 100
     type: single-busy-cell-reads-no-touch
     maxThreadCount: 2
+  writeOnceDeleteOnceConfig:
+    tableConfiguration:
+      tableName: write-once-delete-once-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: write-once-delete-once
   exitAfterRunning: true
\ No newline at end of fileu}(jdX (86ec63b122472809aa991124a48d9c725b6eb031jX hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javajX modifiedjX KjX KjX K	jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X7
  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
 import com.palantir.atlasdb.workload.transaction.RangeQueryReader;
@@ -26,8 +26,8 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -67,7 +67,8 @@ private static final class SerializableInvariantVisitor
         private final RangeQueryReader rangeQueryReader = SimpleRangeQueryReader.create(inMemoryTransactionReplayer);
 
         @Override
-        public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedSingleCellReadTransactionAction readTransactionAction) {
             Optional<Integer> expectedValue = inMemoryTransactionReplayer
                     .getValues()
                     .get(TableAndWorkloadCell.of(readTransactionAction.table(), readTransactionAction.cell()))
@@ -99,7 +100,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(
         @Override
         public Optional<InvalidWitnessedTransactionAction> visit(
                 WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
-            List<ColumnValue> expectedReads =
+            List<ColumnAndValue> expectedReads =
                     rangeQueryReader.readRange(rowColumnRangeReadTransactionAction.originalQuery());
             if (!expectedReads.equals(rowColumnRangeReadTransactionAction.columnsAndValues())) {
                 return Optional.of(InvalidWitnessedRowColumnRangeReadTransactionAction.builder()u}(jdX (9e5e992be69401120b03691540fd57f1a95b93b8jX katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javajX modifiedjX KjX KjX K	jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX XI
  @@ -17,16 +17,16 @@
 package com.palantir.atlasdb.workload.invariant;
 
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.SimpleRangeQueryReader;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.Map;
@@ -58,7 +58,8 @@ final class SnapshotInvariantVisitor
     }
 
     @Override
-    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+    public Optional<InvalidWitnessedTransactionAction> visit(
+            WitnessedSingleCellReadTransactionAction readTransactionAction) {
         Optional<Integer> expected = fetchValueFromView(
                         readTransactionAction.table(), readTransactionAction.cell(), readView)
                 .value();
@@ -97,7 +98,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransact
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(
             WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
-        List<ColumnValue> expectedReads = SimpleRangeQueryReader.createForSnapshot(readView)
+        List<ColumnAndValue> expectedReads = SimpleRangeQueryReader.createForSnapshot(readView)
                 .readRange(rowColumnRangeReadTransactionAction.originalQuery());
         if (!expectedReads.equals(rowColumnRangeReadTransactionAction.columnsAndValues())) {
             return Optional.of(InvalidWitnessedRowColumnRangeReadTransactionAction.builder()u}(jdX (a9210a5d7d0c098da089049338a91d83c08b6b53jX latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -25,7 +25,7 @@
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
@@ -68,7 +68,8 @@ public Optional<Integer> read(String table, WorkloadCell workloadCell) {
                     Map<Cell, byte[]> values = transaction.get(tableReference, Set.of(atlasCell));
                     Optional<Integer> valueRead =
                             Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
-                    witnessedTransactionActions.add(WitnessedReadTransactionAction.of(table, workloadCell, valueRead));
+                    witnessedTransactionActions.add(
+                            WitnessedSingleCellReadTransactionAction.of(table, workloadCell, valueRead));
                     return valueRead;
                 },
                 table,
@@ -100,7 +101,7 @@ public void delete(String table, WorkloadCell workloadCell) {
     }
 
     @Override
-    public List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection) {
+    public List<ColumnAndValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection) {
         return run(
                 tableReference -> {
                     // Having a non-configurable batch hint is a bit iffy, but suffices as this won't be used in
@@ -114,11 +115,11 @@ public List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSel
                             iterators.size() == 1,
                             "Expected exactly one iterator to be returned",
                             SafeArg.of("iteratorsReturned", iterators.size()));
-                    List<ColumnValue> columnsAndValues = EntryStream.of(iterators.get(AtlasDbUtils.toAtlasKey(row)))
+                    List<ColumnAndValue> columnsAndValues = EntryStream.of(iterators.get(AtlasDbUtils.toAtlasKey(row)))
                             .mapKeys(Cell::getColumnName)
                             .mapKeys(AtlasDbUtils::fromAtlasColumn)
                             .mapValues(AtlasDbUtils::fromAtlasValue)
-                            .map(entry -> ColumnValue.of(entry.getKey(), entry.getValue()))
+                            .map(entry -> ColumnAndValue.of(entry.getKey(), entry.getValue()))
                             .collect(Collectors.toList());
                     witnessedTransactionActions.add(RowColumnRangeReadTransactionAction.builder()
                             .table(table)u}(jdX (1800f3b86ab7dd6f58186797efd5280b70bd757djX fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -26,8 +26,8 @@
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
@@ -143,8 +143,8 @@ public AtlasDbTransactionActionVisitor(InteractiveTransaction transaction) {
         }
 
         @Override
-        public Void visit(ReadTransactionAction readTransactionAction) {
-            transaction.read(readTransactionAction.table(), readTransactionAction.cell());
+        public Void visit(SingleCellReadTransactionAction singleCellReadTransactionAction) {
+            transaction.read(singleCellReadTransactionAction.table(), singleCellReadTransactionAction.cell());
             return null;
         }
 u}(jdX (fc90a1cdd07648f9656627da15fa0fe7c9929b48jX patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX Xp  @@ -19,8 +19,8 @@
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.HashMap;
@@ -33,7 +33,7 @@ public final class InMemoryTransactionReplayer implements WitnessedTransactionAc
             StructureHolder.create(HashMap::empty);
 
     @Override
-    public Void visit(WitnessedReadTransactionAction _readTransactionAction) {
+    public Void visit(WitnessedSingleCellReadTransactionAction _readTransactionAction) {
         return null;
     }
 u}(jdX (60d3e000f2076c608fd8208ae840c3a81c246f9djX eatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/RangeQueryReader.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -16,9 +16,9 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import java.util.List;
 
 public interface RangeQueryReader {
-    List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction);
+    List<ColumnAndValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction);
 }u}(jdX (5862ed5f30754a3c64cc032f5b08ffe3e9a56b22jX katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReader.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -19,7 +19,7 @@
 import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.invariant.ValueAndMaybeTimestamp;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -51,7 +51,7 @@ public static RangeQueryReader createForSnapshot(
     }
 
     @Override
-    public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction) {
+    public List<ColumnAndValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction) {
         Map<TableAndWorkloadCell, Optional<Integer>> allValues = rawValueSupplier.get();
         if (allValues.size() > LARGE_HISTORY_LIMIT) {
             log.error(
@@ -74,8 +74,8 @@ public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTrans
                 })
                 .filterValues(Optional::isPresent)
                 .mapValues(Optional::get)
-                .map(entry -> ColumnValue.of(entry._1().cell().column(), entry._2()))
-                .sortBy(ColumnValue::column)
+                .map(entry -> ColumnAndValue.of(entry._1().cell().column(), entry._2()))
+                .sortBy(ColumnAndValue::column)
                 .toJavaList();
     }
 }u}(jdX (5c84ec2365c7267c98a6761c28c444790f8027bfjX katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -17,17 +17,17 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 
 public enum WitnessToActionVisitor implements WitnessedTransactionActionVisitor<TransactionAction> {
     INSTANCE;
 
     @Override
-    public ReadTransactionAction visit(WitnessedReadTransactionAction readTransactionAction) {
-        return ImmutableReadTransactionAction.of(readTransactionAction.table(), readTransactionAction.cell());
+    public SingleCellReadTransactionAction visit(WitnessedSingleCellReadTransactionAction readTransactionAction) {
+        return ImmutableSingleCellReadTransactionAction.of(readTransactionAction.table(), readTransactionAction.cell());
     }
 
     @Overrideu}(jdX (6d6f5fcc34e22304ca8c5dc2c2c635361ee8fb32jX aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -24,12 +24,11 @@
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ImmutableDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ImmutableReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ImmutableRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ImmutableRowColumnRangeReadTransactionAction.Builder;
 import com.palantir.atlasdb.workload.transaction.ImmutableWriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -91,10 +90,10 @@ public Optional<WitnessedTransaction> run(TransactionStore store) {
             return store.readWrite(actions);
         }
 
-        private List<ReadTransactionAction> generateReadActions() {
+        private List<SingleCellReadTransactionAction> generateReadActions() {
             return IntStream.range(0, random.nextInt(workflowConfiguration.maxReads() + 1))
                     .boxed()
-                    .map(_index -> ImmutableReadTransactionAction.of(
+                    .map(_index -> SingleCellReadTransactionAction.of(
                             workflowConfiguration.tableConfiguration().tableName(), randomCell()))
                     .collect(Collectors.toList());
         }u}(jdX (1ddc1c9a4fbd8b3691b9a96fdf667e44919d96f7jX latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX XI  @@ -24,7 +24,7 @@
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -106,6 +106,7 @@ private static List<TransactionAction> createCellUpdateActions(int taskIndex, St
 
     private static List<TransactionAction> createCellReadActions(String tableName) {
         return ImmutableList.of(
-                ReadTransactionAction.of(tableName, FIRST_CELL), ReadTransactionAction.of(tableName, SECOND_CELL));
+                SingleCellReadTransactionAction.of(tableName, FIRST_CELL),
+                SingleCellReadTransactionAction.of(tableName, SECOND_CELL));
     }
 }u}(jdX (4a225b9a61bb820c7e3d66ad9815a6b22d3ea422jX hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javajX modifiedjX KjX K
jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X*  @@ -28,7 +28,7 @@
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.logsafe.SafeArg;
@@ -38,7 +38,6 @@
 import java.security.SecureRandom;
 import java.util.ArrayList;
 import java.util.List;
-import java.util.Objects;
 import java.util.Optional;
 import java.util.Set;
 import java.util.stream.Collectors;
@@ -129,22 +128,20 @@ private static List<CrossCellInconsistency> findInconsistencyInTransactionHistor
 
     private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActions(
             List<WitnessedTransactionAction> actions) {
-        Set<WitnessedReadTransactionAction> readTransactionActions = actions.stream()
-                .filter(WitnessedReadTransactionAction.class::isInstance)
-                .map(action -> (WitnessedReadTransactionAction) action)
+        Set<WitnessedSingleCellReadTransactionAction> readTransactionActions = actions.stream()
+                .filter(WitnessedSingleCellReadTransactionAction.class::isInstance)
+                .map(action -> (WitnessedSingleCellReadTransactionAction) action)
                 .collect(Collectors.toSet());
         if (readTransactionActions.size() == 0) {
             return Stream.empty();
         }
-        WitnessedReadTransactionAction summaryRowRead = readTransactionActions.stream()
+        WitnessedSingleCellReadTransactionAction summaryRowRead = readTransactionActions.stream()
                 .filter(action -> action.cell().key() == SUMMARY_ROW)
                 .findAny()
                 .orElseThrow(() -> new SafeIllegalStateException(
                         "Expected to find a read of the summary row", SafeArg.of("actions", actions)));
-        WitnessedReadTransactionAction normalRowRead = readTransactionActions.stream()
-                .filter(action -> Objects.equals(
-                                action.cell().key(), summaryRowRead.cell().column())
-                        && action.cell().column() == COLUMN)
+        WitnessedSingleCellReadTransactionAction normalRowRead = readTransactionActions.stream()
+                .filter(action -> action.cell().key() != SUMMARY_ROW)
                 .findAny()
                 .orElseThrow(() -> new SafeIllegalStateException(
                         "Expected to find a read of a corresponding normal row", SafeArg.of("actions", actions)));u}(jdX (925f21e6a31c29edd1886e242df8560a69dc50bbjX zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflowConfiguration.javajX addedjX K/jX K jX K/jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowConfiguration.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowConfiguration.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowConfiguration.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -0,0 +1,47 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableWriteOnceDeleteOnceWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableWriteOnceDeleteOnceWorkflowConfiguration.class)
+@JsonTypeName(WriteOnceDeleteOnceWorkflowConfiguration.TYPE)
+public interface WriteOnceDeleteOnceWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "write-once-delete-once";
+
+    TableConfiguration tableConfiguration();
+
+    /**
+     * The maximum value (exclusive) for the row key.
+     * This is half the iteration count, so we ideally perform two actions per cell.
+     */
+    @Value.Derived
+    default Integer maxKey() {
+        return iterationCount() / 2;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jdX (a850b6cc04da7a2a476c96ad9b2bb3f53843a1a2jX natlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflows.javajX addedjX KjjX K jX KjjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflows.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflows.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflows.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.security.SecureRandom;
+import java.util.Optional;
+import java.util.function.IntFunction;
+
+/**
+ * The idea of this class is to catch bugs around tombstone drops, by having a
+ * workflow which _mostly_ writes once first and then on deletes once for a given cell.
+ * Probability and randomness are used to enforce this behaviour, thus it's possible to have a write without a
+ * delete, or visa versa; some cells may randomly be written or deleted multiple times as well.
+ */
+public final class WriteOnceDeleteOnceWorkflows {
+
+    private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+
+    private static final Integer COLUMN = 0;
+
+    private WriteOnceDeleteOnceWorkflows() {
+        // Utility class
+    }
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            WriteOnceDeleteOnceWorkflowConfiguration configuration,
+            ListeningExecutorService executionExecutor) {
+        return create(store, configuration, executionExecutor, DefaultBuggifyFactory.INSTANCE, RANDOM::nextInt);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            InteractiveTransactionStore store,
+            WriteOnceDeleteOnceWorkflowConfiguration configuration,
+            ListeningExecutorService executionExecutor,
+            BuggifyFactory buggifyFactory,
+            IntFunction<Integer> randomNumberGenerator) {
+        WriteOnceDeleteOnceWorkflow workflow =
+                new WriteOnceDeleteOnceWorkflow(buggifyFactory, randomNumberGenerator, configuration);
+        return DefaultWorkflow.create(store, workflow::run, configuration, executionExecutor);
+    }
+
+    private static class WriteOnceDeleteOnceWorkflow {
+        private final BuggifyFactory buggifyFactory;
+        private final IntFunction<Integer> rowKeyGenerator;
+        private final WriteOnceDeleteOnceWorkflowConfiguration configuration;
+
+        public WriteOnceDeleteOnceWorkflow(
+                BuggifyFactory buggifyFactory,
+                IntFunction<Integer> rowKeyGenerator,
+                WriteOnceDeleteOnceWorkflowConfiguration configuration) {
+            this.buggifyFactory = buggifyFactory;
+            this.rowKeyGenerator = rowKeyGenerator;
+            this.configuration = configuration;
+        }
+
+        public Optional<WitnessedTransaction> run(InteractiveTransactionStore store, Integer taskIndex) {
+            configuration.transactionRateLimiter().acquire();
+            return store.readWrite(txn -> {
+                Integer rowKey = rowKeyGenerator.apply(configuration.maxKey());
+                if (buggifyFactory
+                        .maybe(calculateChanceForDelete(taskIndex, configuration.iterationCount()))
+                        .asBoolean()) {
+                    txn.delete(configuration.tableConfiguration().tableName(), cell(rowKey));
+                } else {
+                    txn.write(configuration.tableConfiguration().tableName(), cell(rowKey), RANDOM.nextInt(10000));
+                }
+            });
+        }
+    }
+
+    @VisibleForTesting
+    static Double calculateChanceForDelete(Integer taskIndex, Integer iterationCount) {
+        // Index generation is [inclusive, exclusive], so we need to add 1 to the task index.
+        return (taskIndex + 1.0) / iterationCount;
+    }
+
+    @VisibleForTesting
+    static WorkloadCell cell(Integer index) {
+        return ImmutableWorkloadCell.of(index, COLUMN);
+    }
+}u}(jdX (696e20bfa4e91d86751f7c482791d8f7445b3348jX katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflows.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX XU  @@ -18,7 +18,7 @@
 
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
@@ -132,7 +132,7 @@ private Map<Integer, Optional<Integer>> getAccountBalances(InteractiveTransactio
                                     .endColumnExclusive(workflowConfiguration.numberOfAccounts())
                                     .build())
                     .stream()
-                    .collect(Collectors.toMap(ColumnValue::column, ColumnValue::value));
+                    .collect(Collectors.toMap(ColumnAndValue::column, ColumnAndValue::value));
             return IntStream.range(0, workflowConfiguration.numberOfAccounts())
                     .boxed()
                     .collect(Collectors.toMap(u}(jdX (4b3679c7c82dc1219afbf7dcf075bce3b3ace5c3jX latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javajX modifiedjX KjX KjX K%jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X!  @@ -20,7 +20,7 @@
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterables;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
@@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -123,7 +123,7 @@ public void catchesWriteSkew() {
                         InvalidWitnessedSingleCellTransactionAction.class,
                         invalidSingleCellWitnessedTransactionAction -> {
                             assertThat(invalidSingleCellWitnessedTransactionAction.action())
-                                    .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
+                                    .isInstanceOfSatisfying(WitnessedSingleCellReadTransactionAction.class, action -> {
                                         assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
                                         assertThat(action.value()).contains(15);
                                     });
@@ -214,7 +214,7 @@ public void readsRowRangeToExhaustion() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(15, 21)))
+                        ImmutableList.of(ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -238,7 +238,8 @@ public void incorporatesLocalWritesIntoRowColumnRangeQueries() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(15, 21), ColumnValue.of(20, 34)))
+                        ImmutableList.of(
+                                ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21), ColumnAndValue.of(20, 34)))
                 .write(5, 10, 99)
                 .write(5, 13, 24)
                 .delete(5, 15)
@@ -247,10 +248,10 @@ public void incorporatesLocalWritesIntoRowColumnRangeQueries() {
                         5,
                         ColumnRangeSelection.builder().build(),
                         ImmutableList.of(
-                                ColumnValue.of(10, 99),
-                                ColumnValue.of(13, 24),
-                                ColumnValue.of(18, 36),
-                                ColumnValue.of(20, 34)))
+                                ColumnAndValue.of(10, 99),
+                                ColumnAndValue.of(13, 24),
+                                ColumnAndValue.of(18, 36),
+                                ColumnAndValue.of(20, 34)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -274,7 +275,7 @@ public void identifiesUnexpectedMissingCellInRowColumnRangeRead() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(20, 34)))
+                        ImmutableList.of(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -287,7 +288,8 @@ public void identifiesUnexpectedMissingCellInRowColumnRangeRead() {
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
                                 action.expectedColumnsAndValues())
-                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(15, 21), ColumnValue.of(20, 34)));
+                        .containsExactly(
+                                ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21), ColumnAndValue.of(20, 34)));
     }
 
     @Test
@@ -302,7 +304,8 @@ public void identifiesUnexpectedAdditionalCellInRowColumnRangeRead() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(15, 24), ColumnValue.of(20, 34)))
+                        ImmutableList.of(
+                                ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 24), ColumnAndValue.of(20, 34)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -315,7 +318,7 @@ public void identifiesUnexpectedAdditionalCellInRowColumnRangeRead() {
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
                                 action.expectedColumnsAndValues())
-                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
+                        .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
     }
 
     @Test
@@ -330,7 +333,7 @@ public void identifiesIncorrectCellValuesInRowColumnRangeRead() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(10, 8888888), ColumnValue.of(20, 34)))
+                        ImmutableList.of(ColumnAndValue.of(10, 8888888), ColumnAndValue.of(20, 34)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -343,7 +346,7 @@ public void identifiesIncorrectCellValuesInRowColumnRangeRead() {
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
                                 action.expectedColumnsAndValues())
-                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
+                        .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
     }
 
     @Test
@@ -358,7 +361,7 @@ public void identifiesIncorrectOrderingInRowColumnRangeRead() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(20, 34), ColumnValue.of(10, 15)))
+                        ImmutableList.of(ColumnAndValue.of(20, 34), ColumnAndValue.of(10, 15)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -371,7 +374,7 @@ public void identifiesIncorrectOrderingInRowColumnRangeRead() {
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
                                 action.expectedColumnsAndValues())
-                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
+                        .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
     }
 
     private static InvalidWitnessedTransactionAction getSingularFinalInvalidAction(uT      }(jdX (1dd888be2cbe216b733496bdef850a4e96a0dc2cjX hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X*  @@ -20,7 +20,7 @@
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterables;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
@@ -190,8 +190,8 @@ public void rowColumnRangeScanNotExpectedToReadColumnsCommittingAfterOurStart()
                         5,
                         ColumnRangeSelection.builder().build(),
                         ImmutableList.of(
-                                ColumnValue.of(10, WorkloadTestHelpers.VALUE_ONE),
-                                ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE + WorkloadTestHelpers.VALUE_TWO)))
+                                ColumnAndValue.of(10, WorkloadTestHelpers.VALUE_ONE),
+                                ColumnAndValue.of(30, WorkloadTestHelpers.VALUE_ONE + WorkloadTestHelpers.VALUE_TWO)))
                 .endTransaction(21L)
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -215,8 +215,8 @@ public void rowColumnRangeScanFlagsColumnCommittingAfterOurStartAsViolating() {
                         5,
                         ColumnRangeSelection.builder().build(),
                         ImmutableList.of(
-                                ColumnValue.of(20, WorkloadTestHelpers.VALUE_TWO),
-                                ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
+                                ColumnAndValue.of(20, WorkloadTestHelpers.VALUE_TWO),
+                                ColumnAndValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
                 .endTransaction(21L)
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -242,11 +242,11 @@ public void rowColumnRangeScanFlagsColumnCommittingAfterOurStartAsViolating() {
                                                             .build())
                                                     .build())
                                             .columnsAndValues(ImmutableList.of(
-                                                    ColumnValue.of(20, WorkloadTestHelpers.VALUE_TWO),
-                                                    ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
+                                                    ColumnAndValue.of(20, WorkloadTestHelpers.VALUE_TWO),
+                                                    ColumnAndValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
                                             .build());
                             assertThat(invalidRowColumnRangeRead.expectedColumnsAndValues())
-                                    .containsExactly(ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE));
+                                    .containsExactly(ColumnAndValue.of(30, WorkloadTestHelpers.VALUE_ONE));
                         });
     }
 }u}(jdX (266e55cdc424d018bda3ec031339e3e34cfa9eafjX patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -30,8 +30,8 @@
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
@@ -65,7 +65,7 @@ public void witnessRecordsAllSingleCellActions() {
                 }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
-                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
     }
 
@@ -77,9 +77,10 @@ public void readHandlesEmptyAndPresentValue() {
                     transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
                 }))
                 .containsExactly(
-                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
-                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+                        WitnessedSingleCellReadTransactionAction.of(
+                                TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
     }
 
     @Test
@@ -96,7 +97,7 @@ public void witnessRecordsColumnRangeActions() {
                                         .row(WORKLOAD_CELL_TWO.key())
                                         .columnRangeSelection(ColumnRangeSelection.all())
                                         .build())
-                                .addColumnsAndValues(ColumnValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
+                                .addColumnsAndValues(ColumnAndValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
                                 .build());
     }
 
@@ -130,7 +131,7 @@ public void allRelevantCellsAreRecordedForFullColumnScan() {
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
                                         .isEqualTo(IntStream.range(0, iterationCount)
-                                                .mapToObj(column -> ColumnValue.of(column, VALUE_ONE))
+                                                .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
                                                 .collect(Collectors.toList()))));
     }
 
@@ -158,7 +159,7 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
                                         .isEqualTo(IntStream.range(startInclusive, endExclusive)
-                                                .mapToObj(column -> ColumnValue.of(column, VALUE_ONE))
+                                                .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
                                                 .collect(Collectors.toList()))));
     }
 u}(jdX (adc5e60173b898a15d6ace9f917b6d3050fa0811jX jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javajX modifiedjX K
jX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -46,11 +46,11 @@
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore.CommitTimestampProvider;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -102,10 +102,10 @@ public void canWriteDataToStore() {
     public void witnessedTransactionMaintainsOrder() {
         List<WitnessedTransactionAction> actions = List.of(
                 WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, 100),
-                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, Optional.of(100)),
-                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_THREE, Optional.empty()),
+                WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, Optional.of(100)),
+                WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_THREE, Optional.empty()),
                 WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, 24),
-                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(24)));
+                WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(24)));
         Optional<WitnessedTransaction> maybeTransaction = store.readWrite(actions.stream()
                 .map(action -> action.accept(WitnessToActionVisitor.INSTANCE))
                 .collect(Collectors.toList()));
@@ -118,20 +118,21 @@ public void witnessedTransactionMaintainsOrder() {
     @Test
     public void readWriteHandlesAllTransactionTypes() {
         store.readWrite(List.of(WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE)));
-        assertThat(store.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+        assertThat(store.readWrite(List.of(SingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isPresent()
                 .map(WitnessedTransaction::actions)
                 .map(Iterables::getOnlyElement)
-                .map(WitnessedReadTransactionAction.class::cast)
-                .map(WitnessedReadTransactionAction::value)
+                .map(WitnessedSingleCellReadTransactionAction.class::cast)
+                .map(WitnessedSingleCellReadTransactionAction::value)
                 .contains(Optional.of(VALUE_ONE));
         store.readWrite(List.of(DeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
         assertThat(store.get(TABLE_1, WORKLOAD_CELL_ONE)).isEmpty();
     }
 
     @Test
     public void readWriteThrowsWhenTableDoesNotExist() {
-        assertThatThrownBy(() -> store.readWrite(List.of(ReadTransactionAction.of("chocolate", WORKLOAD_CELL_ONE))))
+        assertThatThrownBy(() ->
+                        store.readWrite(List.of(SingleCellReadTransactionAction.of("chocolate", WORKLOAD_CELL_ONE))))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Transaction action has unknown table.");
     }
@@ -144,14 +145,14 @@ public void readWriteReturnsEmptyWhenExceptionThrown() {
         when(transactionManager.runTaskWithRetry(any())).thenThrow(new RuntimeException());
         AtlasDbTransactionStore transactionStore = AtlasDbTransactionStore.create(
                 transactionManager, Map.of(TABLE_REFERENCE, AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
-        assertThat(transactionStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+        assertThat(transactionStore.readWrite(List.of(SingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isEmpty();
     }
 
     @Test
     public void readWriteHandlesReadOnlyTransaction() {
         Optional<WitnessedTransaction> witnessedTransaction =
-                store.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
+                store.readWrite(List.of(SingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
         assertThat(witnessedTransaction).isPresent();
         assertThat(witnessedTransaction.get().commitTimestamp()).isEmpty();
     }
@@ -164,7 +165,7 @@ public void abortedTransactionsReturnEmpty() {
         doReturn(abortedTransaction).when(onlyAbortsManager).runTaskWithConditionWithRetry(any(Supplier.class), any());
         AtlasDbTransactionStore onlyAbortsStore =
                 AtlasDbTransactionStore.create(onlyAbortsManager, TABLES_TO_ATLAS_METADATA);
-        assertThat(onlyAbortsStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+        assertThat(onlyAbortsStore.readWrite(List.of(SingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isEmpty();
     }
 u}(jdX (58c33505b7876ab53b5f9bdd5f01bd2c64e92790jX tatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayerTest.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -25,7 +25,7 @@
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
 import static org.assertj.core.api.Assertions.assertThat;
 
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -43,8 +43,8 @@ public final class InMemoryTransactionReplayerTest {
     @Test
     public void readActionsAreIgnored() {
         InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
-        inMemoryTransactionReplayer.visit(
-                ImmutableWitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+        inMemoryTransactionReplayer.visit(ImmutableWitnessedSingleCellReadTransactionAction.of(
+                TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
         assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
     }
 u}(jdX (ffb3e2fbc7c39ab5d7801cf2deec03b703b46b32jX oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReaderTest.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -19,7 +19,7 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import io.vavr.collection.HashMap;
@@ -75,8 +75,8 @@ public void readsCellsFromRangeInOrder() {
                                 .build())
                         .build()))
                 .containsExactly(
-                        ColumnValue.of(2, WorkloadTestHelpers.VALUE_ONE),
-                        ColumnValue.of(3, WorkloadTestHelpers.VALUE_ONE));
+                        ColumnAndValue.of(2, WorkloadTestHelpers.VALUE_ONE),
+                        ColumnAndValue.of(3, WorkloadTestHelpers.VALUE_ONE));
     }
 
     @Testu}(jdX (971037703a3100aada580c79c798eac8ad8b3c98jX oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitorTest.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX XI  @@ -21,7 +21,7 @@
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import java.util.Optional;
 import org.junit.Test;
@@ -34,9 +34,9 @@ public final class WitnessToActionVisitorTest {
 
     @Test
     public void convertsReadsCorrectly() {
-        WitnessedReadTransactionAction witnessedRead =
-                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL, Optional.of(VALUE));
-        ReadTransactionAction read = WitnessToActionVisitor.INSTANCE.visit(witnessedRead);
+        WitnessedSingleCellReadTransactionAction witnessedRead =
+                WitnessedSingleCellReadTransactionAction.of(TABLE, WORKLOAD_CELL, Optional.of(VALUE));
+        SingleCellReadTransactionAction read = WitnessToActionVisitor.INSTANCE.visit(witnessedRead);
         assertThat(read.table()).isEqualTo(witnessedRead.table());
         assertThat(read.cell()).isEqualTo(witnessedRead.cell());
     }u}(jdX (7b09c57f6cdecf3cc15a946a5fe8f7c9e5648a49jX qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javajX modifiedjX KjX KjX K	jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -16,11 +16,11 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -68,7 +68,8 @@ public WitnessedTransactionBuilder(long startTimestamp) {
         }
 
         public WitnessedTransactionBuilder read(Integer row, Integer column, Optional<Integer> valueRead) {
-            actions.add(WitnessedReadTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), valueRead));
+            actions.add(WitnessedSingleCellReadTransactionAction.of(
+                    table, ImmutableWorkloadCell.of(row, column), valueRead));
             return this;
         }
 
@@ -93,7 +94,7 @@ public WitnessedTransactionBuilder delete(Integer row, Integer column) {
         }
 
         public WitnessedTransactionBuilder rowColumnRangeRead(
-                Integer row, ColumnRangeSelection columnRangeSelection, List<ColumnValue> valuesRead) {
+                Integer row, ColumnRangeSelection columnRangeSelection, List<ColumnAndValue> valuesRead) {
             RowColumnRangeReadTransactionAction transactionAction = RowColumnRangeReadTransactionAction.builder()
                     .table(table)
                     .row(row)u}(jdX (486aadb53f82079807d09238cd241d1d0497c7fcjX eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowsTest.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -30,8 +30,8 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -95,7 +95,7 @@ public void workflowRunsReadWritesDeletes() {
                 .flatMap(Collection::stream)
                 .collect(Collectors.toList());
         assertThat(actions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
-        assertThat(actions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedSingleCellReadTransactionAction.class::isInstance);
         assertThat(actions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
         assertThat(actions).anyMatch(WitnessedRowColumnRangeReadTransactionAction.class::isInstance);
     }u}(jdX (02cc3cea18cbb2337e3beb22a5f3250c9b157afdjX xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -98,7 +98,7 @@ public void targetCellIsReadModifiedAndDeleted() {
                 .map(WitnessedTransaction::actions)
                 .flatMap(Collection::stream)
                 .collect(Collectors.toList());
-        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedSingleCellReadTransactionAction.class::isInstance);
         assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
         assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
     }
@@ -108,7 +108,8 @@ public void readTransactionsDontDoWrites() {
         WorkflowHistory workflowHistory = workflow.run();
 
         Set<WitnessedTransaction> witnessedTransactionsWithReads = workflowHistory.history().stream()
-                .filter(txn -> txn.actions().stream().anyMatch(WitnessedReadTransactionAction.class::isInstance))
+                .filter(txn ->
+                        txn.actions().stream().anyMatch(WitnessedSingleCellReadTransactionAction.class::isInstance))
                 .collect(Collectors.toSet());
 
         Set<WitnessedTransaction> witnessedTransactionsWithWritesOrDeletes = workflowHistory.history().stream()u}(jdX (4268ff21ba88dc967e7e3835d86ccbea101b35e2jX matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowsTest.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X_  @@ -28,7 +28,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -96,7 +96,7 @@ public void targetCellIsReadModifiedAndDeleted() {
                 .map(WitnessedTransaction::actions)
                 .flatMap(Collection::stream)
                 .collect(Collectors.toList());
-        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedSingleCellReadTransactionAction.class::isInstance);
         assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
         assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
     }u}(jdX (d82ebc82d525ca3f31eae702e98652e22d5b8db9jX patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javajX modifiedjX KjX KjX K,jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -29,10 +29,10 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.common.concurrent.PTExecutors;
@@ -69,40 +69,40 @@ public void shouldNotWriteToFirstCellOnOddIndices() {
     public void createsReadsThenMutationsThenReads() {
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(0, TABLE_NAME))
                 .containsExactly(
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
                         WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
                         DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(1, TABLE_NAME))
                 .containsExactly(
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
                         DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
                         WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, 1),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
     }
 
     @Test
     public void writesValueCorrespondingToTaskIndexInRelevantCell() {
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(31415926, TABLE_NAME))
                 .containsExactly(
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
                         WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 31415926),
                         DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(6021023, TABLE_NAME))
                 .containsExactly(
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
                         DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
                         WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, 6021023),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
     }
 
     @Test
@@ -121,15 +121,15 @@ public void workflowHistoryPreservesStoreAndCapturesWitnessedActions() {
                 .isInstanceOf(ReadOnlyTransactionStore.class);
         assertThat(Iterables.getOnlyElement(history.history()).actions())
                 .containsExactly(
-                        WitnessedReadTransactionAction.of(
+                        WitnessedSingleCellReadTransactionAction.of(
                                 TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.empty()),
-                        WitnessedReadTransactionAction.of(
+                        WitnessedSingleCellReadTransactionAction.of(
                                 TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
                         WitnessedDeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
-                        WitnessedReadTransactionAction.of(
+                        WitnessedSingleCellReadTransactionAction.of(
                                 TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.of(0)),
-                        WitnessedReadTransactionAction.of(
+                        WitnessedSingleCellReadTransactionAction.of(
                                 TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()));
     }
 }u}(jdX (9b8703c2f14476d6da18077afd80bae7f16ec89bjX latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -35,7 +35,7 @@
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableFullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -110,7 +110,7 @@ public void subsequentTransactionsWriteThenReadThenDelete() {
         for (int index = 1; index < ITERATION_COUNT; index++) {
             assertThat(witnessedTransactions.get(index).actions()).hasSize(7).satisfies(actions -> {
                 assertThat(actions.subList(0, 2)).allMatch(WitnessedWriteTransactionAction.class::isInstance);
-                assertThat(actions.subList(2, 5)).allMatch(WitnessedReadTransactionAction.class::isInstance);
+                assertThat(actions.subList(2, 5)).allMatch(WitnessedSingleCellReadTransactionAction.class::isInstance);
                 assertThat(actions.subList(5, 7)).allMatch(WitnessedDeleteTransactionAction.class::isInstance);
             });
         }
@@ -195,7 +195,7 @@ public void invariantReportsViolationsFromTransactionHistory() {
 
     @Test
     public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
-        WitnessedReadTransactionAction readWitness = WitnessedReadTransactionAction.of(
+        WitnessedSingleCellReadTransactionAction readWitness = WitnessedSingleCellReadTransactionAction.of(
                 TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
         WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
         assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
@@ -206,11 +206,8 @@ public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
 
     @Test
     public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCorrespondingPrimaryRow() {
-        List<WitnessedTransactionAction> actions = ImmutableList.of(
-                WitnessedReadTransactionAction.of(
-                        TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()),
-                WitnessedReadTransactionAction.of(
-                        TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
+        List<WitnessedTransactionAction> actions = ImmutableList.of(WitnessedSingleCellReadTransactionAction.of(
+                TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()));
         WorkflowHistory history = getWorkflowHistory(actions);
         assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
                 .isInstanceOf(SafeIllegalStateException.class)
@@ -276,11 +273,11 @@ private ImmutableWorkflowHistory getWorkflowHistory(List<WitnessedTransactionAct
     private static List<WitnessedTransactionAction> getReadWitnessesForSingleTransaction(
             int columnIndex, Optional<Integer> summaryValue, Optional<Integer> primaryValue) {
         return ImmutableList.of(
-                WitnessedReadTransactionAction.of(
+                WitnessedSingleCellReadTransactionAction.of(
                         TABLE_NAME,
                         ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, columnIndex),
                         summaryValue),
-                WitnessedReadTransactionAction.of(
+                WitnessedSingleCellReadTransactionAction.of(
                         TABLE_NAME,
                         ImmutableWorkloadCell.of(columnIndex, TransientRowsWorkflows.COLUMN),
                         primaryValue));
@@ -309,12 +306,13 @@ private static TableAndWorkloadCell getPrimaryCellForSummaryCell(TableAndWorkloa
 
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(
             WitnessedTransactionAction action) {
-        if (action instanceof WitnessedReadTransactionAction) {
-            WitnessedReadTransactionAction readAction = (WitnessedReadTransactionAction) action;
+        if (action instanceof WitnessedSingleCellReadTransactionAction) {
+            WitnessedSingleCellReadTransactionAction readAction = (WitnessedSingleCellReadTransactionAction) action;
             if (readAction.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
-                return WitnessedReadTransactionAction.of(readAction.table(), readAction.cell(), Optional.empty());
+                return WitnessedSingleCellReadTransactionAction.of(
+                        readAction.table(), readAction.cell(), Optional.empty());
             } else {
-                return WitnessedReadTransactionAction.of(
+                return WitnessedSingleCellReadTransactionAction.of(
                         readAction.table(), readAction.cell(), Optional.of(TransientRowsWorkflows.VALUE));
             }
         } else {u}(jdX (d3e04df18f75951b9f97593a2ab7325df69f7bdejX qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflowTest.javajX addedjX KjX K jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -0,0 +1,145 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyDouble;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.buggify.AlwaysBuggifyFactory;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggify;
+import com.palantir.atlasdb.buggify.impl.NoOpBuggify;
+import com.palantir.atlasdb.buggify.impl.NoOpBuggifyFactory;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import java.util.Iterator;
+import java.util.List;
+import java.util.function.IntFunction;
+import org.junit.Test;
+
+public class WriteOnceDeleteOnceWorkflowTest {
+    private static final String TABLE_NAME = "my.latte";
+    private static final WriteOnceDeleteOnceWorkflowConfiguration CONFIGURATION =
+            ImmutableWriteOnceDeleteOnceWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .rateLimit(Double.MAX_VALUE)
+                    .iterationCount(1)
+                    .build();
+
+    private final InteractiveTransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+
+    @Test
+    public void deleteWhenBuggifyTrue() {
+        Workflow workflow = createWorkflow(AlwaysBuggifyFactory.INSTANCE, i -> i);
+        WorkflowHistory history = workflow.run();
+        WitnessedTransaction transaction = Iterables.getOnlyElement(history.history());
+        WitnessedTransactionAction action = Iterables.getOnlyElement(transaction.actions());
+        assertThat(action).isInstanceOf(WitnessedDeleteTransactionAction.class);
+    }
+
+    @Test
+    public void writeWhenBuggifyFalse() {
+        Workflow workflow = createWorkflow(NoOpBuggifyFactory.INSTANCE, i -> i);
+        WorkflowHistory history = workflow.run();
+        WitnessedTransaction transaction = Iterables.getOnlyElement(history.history());
+        WitnessedTransactionAction action = Iterables.getOnlyElement(transaction.actions());
+        assertThat(action).isInstanceOf(WitnessedWriteTransactionAction.class);
+    }
+
+    @Test
+    public void calculateChanceForDeleteHasExpectedValues() {
+        assertThat(WriteOnceDeleteOnceWorkflows.calculateChanceForDelete(0, 100))
+                .isEqualTo(0.01);
+        assertThat(WriteOnceDeleteOnceWorkflows.calculateChanceForDelete(99, 100))
+                .isEqualTo(1.00);
+    }
+
+    @Test
+    public void writesThenDeletes() {
+        Iterator<Integer> keys = List.of(0, 0, 1, 1).iterator();
+        IntFunction<Integer> rowKeyGenerator = _ignore -> keys.next();
+        BuggifyFactory alternatingBuggify = mock(BuggifyFactory.class);
+        when(alternatingBuggify.maybe(anyDouble()))
+                .thenReturn(
+                        NoOpBuggify.INSTANCE, DefaultBuggify.INSTANCE, NoOpBuggify.INSTANCE, DefaultBuggify.INSTANCE);
+        Workflow workflow = createWorkflow(alternatingBuggify, rowKeyGenerator, 4);
+
+        List<WitnessedTransaction> transactions = workflow.run().history();
+
+        assertThat(transactions.size()).isEqualTo(4);
+        assertWriteTransaction(transactions.get(0), 0);
+        assertDeleteTransaction(transactions.get(1), 0);
+        assertWriteTransaction(transactions.get(2), 1);
+        assertDeleteTransaction(transactions.get(3), 1);
+    }
+
+    private static void assertWriteTransaction(WitnessedTransaction transaction, int key) {
+        WitnessedWriteTransactionAction action =
+                getTransactionAction(transaction, WitnessedWriteTransactionAction.class);
+        assertThat(action.cell().key()).isEqualTo(key);
+    }
+
+    private static void assertDeleteTransaction(WitnessedTransaction transaction, int key) {
+        WitnessedDeleteTransactionAction action =
+                getTransactionAction(transaction, WitnessedDeleteTransactionAction.class);
+        assertThat(action.cell().key()).isEqualTo(key);
+    }
+
+    private static <T> T getTransactionAction(WitnessedTransaction transaction, Class<T> clazz) {
+        WitnessedTransactionAction action = Iterables.getOnlyElement(transaction.actions());
+        assertThat(action).isInstanceOf(clazz);
+        return (T) action;
+    }
+
+    private Workflow createWorkflow(BuggifyFactory factory, IntFunction<Integer> randomNumberGenerator) {
+        return createWorkflow(factory, randomNumberGenerator, CONFIGURATION.iterationCount());
+    }
+
+    private Workflow createWorkflow(
+            BuggifyFactory factory, IntFunction<Integer> randomNumberGenerator, int iterationCount) {
+        return WriteOnceDeleteOnceWorkflows.create(
+                memoryStore,
+                ImmutableWriteOnceDeleteOnceWorkflowConfiguration.builder()
+                        .from(CONFIGURATION)
+                        .iterationCount(iterationCount)
+                        .build(),
+                MoreExecutors.newDirectExecutorService(),
+                factory,
+                randomNumberGenerator);
+    }
+}u}(jdX (d30b13993fc42a48a859cf8136f38e2dbf4a1347jX hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowsTest.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
@@ -84,10 +84,10 @@ public void ringWorkflowContainsInitialReadsForRing() {
         List<WitnessedTransactionAction> actions =
                 Iterables.getOnlyElement(history.history()).actions();
 
-        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.ringSize())
+        List<WitnessedSingleCellReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.ringSize())
                 .boxed()
-                .map(index ->
-                        WitnessedReadTransactionAction.of(TABLE_NAME, RingWorkflows.cell(index), Optional.empty()))
+                .map(index -> WitnessedSingleCellReadTransactionAction.of(
+                        TABLE_NAME, RingWorkflows.cell(index), Optional.empty()))
                 .collect(Collectors.toList());
         assertThat(actions).containsAll(initialReadActions);
     }u}(jdX (bf394f216a79b7514789c9fbcff298de26735d54jX  changelog/0.888.0/pr-6651.v2.ymljX addedjX KjX K jX KjX vhttps://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/changelog%2F0.888.0%2Fpr-6651.v2.ymljX uhttps://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/changelog%2F0.888.0%2Fpr-6651.v2.ymljX https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.888.0%2Fpr-6651.v2.yml?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Pass optional metadata through TimeLock'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6651u}(jdX (e0b05befdf4bf72e70b07846fc766f84e4b79eb4jX  changelog/0.890.0/pr-6645.v2.ymljX addedjX KjX K jX KjX vhttps://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/changelog%2F0.890.0%2Fpr-6645.v2.ymljX uhttps://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/changelog%2F0.890.0%2Fpr-6645.v2.ymljX https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.890.0%2Fpr-6645.v2.yml?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Only allow range scan max batch size to be a factor of 8 of the batch
+    hint.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6645u}(jdX (ba1c3212ee4a0e25e95569fe719b7b61bd3eec15jX  changelog/0.892.0/pr-6650.v2.ymljX addedjX KjX K jX KjX vhttps://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/changelog%2F0.892.0%2Fpr-6650.v2.ymljX uhttps://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/changelog%2F0.892.0%2Fpr-6650.v2.ymljX https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.892.0%2Fpr-6650.v2.yml?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Optimize ThriftObjectSizeUtils::getCollectionSize for random access
+    lists
+  links:
+  - https://github.com/palantir/atlasdb/pull/6650u}(jdX (33a2a2d54d648f18cdab6d3f0ba9dad15dbe0a2fjX  changelog/0.895.0/pr-6642.v2.ymljX addedjX KjX K jX KjX vhttps://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/changelog%2F0.895.0%2Fpr-6642.v2.ymljX uhttps://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/changelog%2F0.895.0%2Fpr-6642.v2.ymljX https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.895.0%2Fpr-6642.v2.yml?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Reduce allocations extracting Cassandra values
+  links:
+  - https://github.com/palantir/atlasdb/pull/6642u}(jdX (ff9f08f8e6f43315a79a74fdf43e11f2070b6d9fjX  changelog/0.895.0/pr-6666.v2.ymljX addedjX KjX K jX KjX vhttps://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/changelog%2F0.895.0%2Fpr-6666.v2.ymljX uhttps://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/changelog%2F0.895.0%2Fpr-6666.v2.ymljX https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.895.0%2Fpr-6666.v2.yml?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX @@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: Fix cell lock count across multiple tables
+  links:
+  - https://github.com/palantir/atlasdb/pull/6666u}(jdX (240913fc734894a98c05e8c292aa78369a4ece97jX  changelog/0.897.0/pr-6667.v2.ymljX addedjX KjX K jX KjX vhttps://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/changelog%2F0.897.0%2Fpr-6667.v2.ymljX uhttps://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/changelog%2F0.897.0%2Fpr-6667.v2.ymljX https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.897.0%2Fpr-6667.v2.yml?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Do not wait for a quorum of nodes to be available for Cassandra's schema
+    version on start up unless when performing DDL operations.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6667u}(jdX (53dbb997fbc87d47ddeeae107c0d0a5d610f7820jX  changelog/0.898.0/pr-6659.v2.ymljX addedjX KjX K jX KjX vhttps://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/changelog%2F0.898.0%2Fpr-6659.v2.ymljX uhttps://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/changelog%2F0.898.0%2Fpr-6659.v2.ymljX https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.898.0%2Fpr-6659.v2.yml?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add custom serialization to LockEvent with index-encoded
+    metadata'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6659u}(jdX (5f02ea670ebe579e2fc7dbfcda201cb6c125b07ejX  changelog/0.899.0/pr-6660.v2.ymljX addedjX KjX K jX KjX vhttps://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/changelog%2F0.899.0%2Fpr-6660.v2.ymljX uhttps://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/changelog%2F0.899.0%2Fpr-6660.v2.ymljX https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.899.0%2Fpr-6660.v2.yml?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX @@ -0,0 +1,5 @@
+type: feature
+feature:
+  description: '[LWMeta] Add metadata to ConjureLockRequest'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6660u}(jdX (6d81d856dcfcfde488238b25a5d5367e13bd6f75jX Wdocs/source/configuration/key_value_service_configs/oracle_key_value_service_config.rstjX modifiedjX K jX K jX K jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rstjX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rstjX https://api.github.com/repos/palantir/atlasdb/contents/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rst?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -197,3 +197,35 @@ migration as `serviceNameConfiguration.namespaceOverride`.
 
 This migration can be reversed trivially (just by changing the config to reference the now-correct `sid`) if you are
 using embedded timestamp and lock services.
+
+Altering Table To Match Metadata
+--------------------------------
+
+On rare occasions, the metadata in Oracle can mismatch the expected metadata by the service. This can happen as a result
+of a rare race condition on table creation, where one service expects the table to have an overflow column, while
+the other does not.
+
+To resolve, simply add the following configuration to your Oracle ddl configuration.
+
+.. code-block:: yaml
+
+    atlasdb:
+      keyValueService:
+        type: relational
+        ddl:
+          type: oracle
+          alterTablesOrMetadataToMatchAndIKnowWhatIAmDoing:
+              - namespace:
+                  name: <namespace>
+                tablename: <table-name>
+
+Note: Table names are case sensitive.
+
+Generally speaking the operation is safe to perform, although it's on the operator to determine what the side
+effects are. For example, if the issue arose as two services are configured to use this table, but only one is
+performing table mapping, then it is expected that this could break one of the services. However, that condition
+still satisfies the status quo, thus it's on the configurator to determine if this change is safe to make.
+
+Although the alter action is idempotent, it is recommended to remove the configuration after it has ran. Check the logs
+for ``Altering table to have overflow column to match metadata.`` and that there were no error logs printed to ensure that
+has successfully ran.
\ No newline at end of fileu}(jdX (d94333ba246e527d1a418c250421a3e4bd0a3ea7jX lock-api-objects/build.gradlejX modifiedjX KjX KjX K	jX qhttps://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fbuild.gradlejX phttps://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fbuild.gradle
     jX https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fbuild.gradle?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X3  @@ -16,7 +16,14 @@ dependencies {
     implementation 'com.google.errorprone:error_prone_annotations'
     implementation 'com.google.guava:guava'
     implementation project(':commons-annotations')
-    testImplementation project(path: ':lock-api')
+
+    testImplementation 'com.fasterxml.jackson.datatype:jackson-datatype-guava'
+    testImplementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8'
+    testImplementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
+    testImplementation 'com.palantir.common:streams'
+    testImplementation project(':atlasdb-api')
+    testAnnotationProcessor 'org.immutables:value'
+    testCompileOnly 'org.immutables:value::annotations'
 
     annotationProcessor 'org.immutables:value'
     compileOnly 'org.immutables:value::annotations'u}(jdX (7640d8a0812ee9d22c73ca15ae53c22b03b5edb5jX Dlock-api-objects/src/main/java/com/palantir/lock/LockDescriptor.javajX modifiedjX KjX KjX K	jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockDescriptor.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockDescriptor.javajX https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockDescriptor.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X!  @@ -22,6 +22,7 @@
 import com.google.common.io.BaseEncoding;
 import com.google.common.primitives.UnsignedBytes;
 import com.palantir.logsafe.Unsafe;
+import com.palantir.util.IndexEncodingUtils.DeterministicHashable;
 import java.io.Serializable;
 import java.nio.charset.StandardCharsets;
 import java.util.Arrays;
@@ -35,7 +36,7 @@
  */
 @Unsafe
 @Immutable
-public class LockDescriptor implements Comparable<LockDescriptor>, Serializable {
+public class LockDescriptor implements Comparable<LockDescriptor>, Serializable, DeterministicHashable {
 
     private static final long serialVersionUID = 1L;
     private static final CharMatcher BASIC_PRINTABLE_ASCII = CharMatcher.inRange(' ', '~');
@@ -83,6 +84,12 @@ public int hashCode() {
         return hashCode;
     }
 
+    @Override
+    public int deterministicHashCode() {
+        // for this class, hashCode() is deterministic since Arrays.hashCode(byte[]) is deterministic
+        return hashCode();
+    }
+
     @Override
     public boolean equals(Object obj) {
         if (this == obj) {u}(jdX (37dda23eb949c186568d3c32bafd886eb2861e4djX Dlock-api-objects/src/main/java/com/palantir/lock/v2/LockRequest.javajX modifiedjX KjX KjX K	jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fv2%2FLockRequest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fv2%2FLockRequest.javajX https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fv2%2FLockRequest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -18,6 +18,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.Unsafe;
 import java.util.Optional;
@@ -39,12 +40,16 @@ public interface LockRequest {
     @Value.Parameter
     Optional<String> getClientDescription();
 
+    @Value.Parameter
+    Optional<LockRequestMetadata> getMetadata();
+
     static LockRequest of(Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs) {
-        return ImmutableLockRequest.of(lockDescriptors, acquireTimeoutMs, Optional.empty());
+        return ImmutableLockRequest.of(lockDescriptors, acquireTimeoutMs, Optional.empty(), Optional.empty());
     }
 
     static LockRequest of(Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs, String clientDescription) {
-        return ImmutableLockRequest.of(lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription));
+        return ImmutableLockRequest.of(
+                lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription), Optional.empty());
     }
 
     @Value.Checku}(jdX (7ede3b7c38e0b57309248f76a702b4fd3ebbc9cbjX Elock-api-objects/src/main/java/com/palantir/lock/watch/LockEvent.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javajX https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -16,30 +16,45 @@
 
 package com.palantir.lock.watch;
 
-import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonInclude.Include;
+import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.annotation.JsonValue;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.logsafe.Unsafe;
+import com.palantir.util.IndexEncodingUtils;
+import com.palantir.util.IndexEncodingUtils.ChecksumType;
+import com.palantir.util.IndexEncodingUtils.IndexEncodingResult;
+import com.palantir.util.IndexEncodingUtils.KeyListChecksum;
+import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
 import org.immutables.value.Value;
 
+/*
+ * Warning: This class contains custom serialization logic. Changing anything about the serialized format of this class
+ * requires careful modification of the @JsonCreator and @JsonValue-annotated methods as well as the Wire-... classes
+ * All serialization changes should be properly tested.
+ */
 @Unsafe
 @Value.Immutable
-@JsonSerialize(as = ImmutableLockEvent.class)
-@JsonDeserialize(as = ImmutableLockEvent.class)
 @JsonTypeName(LockEvent.TYPE)
 public abstract class LockEvent implements LockWatchEvent {
     static final String TYPE = "lock";
+    private static final ChecksumType DEFAULT_CHECKSUM_TYPE = ChecksumType.CRC32_OF_DETERMINISTIC_HASHCODE;
 
     public abstract Set<LockDescriptor> lockDescriptors();
 
     public abstract LockToken lockToken();
 
-    @JsonIgnore
     public abstract Optional<LockRequestMetadata> metadata();
 
     @Override
@@ -52,6 +67,43 @@ public <T> T accept(Visitor<T> visitor) {
         return visitor.visit(this);
     }
 
+    @JsonCreator
+    public static LockEvent create(
+            @JsonProperty("sequence") long sequence,
+            @JsonProperty("lockDescriptors") List<LockDescriptor> lockDescriptors,
+            @JsonProperty("lockToken") LockToken lockToken,
+            @JsonProperty("metadata") Optional<WireLockRequestMetadata> optWireMetadata) {
+        Optional<LockRequestMetadata> metadata =
+                optWireMetadata.map(wireMetadata -> convertFromWireMetadata(lockDescriptors, wireMetadata));
+        return ImmutableLockEvent.builder()
+                .sequence(sequence)
+                .lockDescriptors(ImmutableSet.copyOf(lockDescriptors))
+                .lockToken(lockToken)
+                .metadata(metadata)
+                .build();
+    }
+
+    @Unsafe
+    @JsonValue
+    public WireLockEvent toWireLockEvent() {
+        Optional<IndexEncodingResult<LockDescriptor, ChangeMetadata>> optIndexEncodingResult = metadata()
+                .map(metadata -> IndexEncodingUtils.encode(
+                        lockDescriptors(), metadata.lockDescriptorToChangeMetadata(), DEFAULT_CHECKSUM_TYPE));
+        // If the lock event has metadata, we need to use the key list that was used to encode the metadata.
+        // Otherwise, any ordering of the lock descriptors is fine.
+        List<LockDescriptor> orderedLocks = optIndexEncodingResult
+                .map(IndexEncodingResult::keyList)
+                .orElseGet(() -> ImmutableList.copyOf(lockDescriptors()));
+        Optional<WireLockRequestMetadata> wireMetadata =
+                optIndexEncodingResult.map(LockEvent::buildWireLockRequestMetadata);
+        return WireLockEvent.builder()
+                .sequence(sequence())
+                .lockDescriptors(orderedLocks)
+                .lockToken(lockToken())
+                .metadata(wireMetadata)
+                .build();
+    }
+
     public static LockWatchEvent.Builder builder(Set<LockDescriptor> lockDescriptors, LockToken lockToken) {
         return builder(lockDescriptors, lockToken, Optional.empty());
     }
@@ -64,4 +116,81 @@ public static LockWatchEvent.Builder builder(
                 .metadata(metadata);
         return seq -> builder.sequence(seq).build();
     }
+
+    private static WireLockRequestMetadata buildWireLockRequestMetadata(
+            IndexEncodingResult<LockDescriptor, ChangeMetadata> result) {
+        return WireLockRequestMetadata.builder()
+                .indexToChangeMetadata(result.indexToValue())
+                .lockListChecksum(LockListChecksum.of(
+                        result.keyListChecksum().type().getId(),
+                        result.keyListChecksum().value()))
+                .build();
+    }
+
+    private static LockRequestMetadata convertFromWireMetadata(
+            List<LockDescriptor> lockDescriptors, WireLockRequestMetadata wireMetadata) {
+        KeyListChecksum checksum = KeyListChecksum.of(
+                ChecksumType.valueOf(wireMetadata.lockListChecksum().typeId()),
+                wireMetadata.lockListChecksum().value());
+        IndexEncodingResult<LockDescriptor, ChangeMetadata> indexEncodingResult =
+                IndexEncodingResult.<LockDescriptor, ChangeMetadata>builder()
+                        .keyList(lockDescriptors)
+                        .indexToValue(wireMetadata.indexToChangeMetadata())
+                        .keyListChecksum(checksum)
+                        .build();
+        return LockRequestMetadata.of(IndexEncodingUtils.decode(indexEncodingResult));
+    }
+
+    // This class is explicitly missing @JsonDeserialize as it should only be used for serialization.
+    // Deserialization should take place in the @JsonCreator-annotated static constructor method.
+    @Unsafe
+    @Value.Immutable
+    @JsonSerialize(as = ImmutableWireLockEvent.class)
+    @JsonTypeName(LockEvent.TYPE)
+    public interface WireLockEvent {
+        long sequence();
+
+        List<LockDescriptor> lockDescriptors();
+
+        LockToken lockToken();
+
+        // If metadata is absent, it should be completely omitted
+        @JsonInclude(Include.NON_ABSENT)
+        Optional<WireLockRequestMetadata> metadata();
+
+        static ImmutableWireLockEvent.Builder builder() {
+            return ImmutableWireLockEvent.builder();
+        }
+    }
+
+    @Unsafe
+    @Value.Immutable
+    @JsonSerialize(as = ImmutableWireLockRequestMetadata.class)
+    @JsonDeserialize(as = ImmutableWireLockRequestMetadata.class)
+    public interface WireLockRequestMetadata {
+
+        Map<Integer, ChangeMetadata> indexToChangeMetadata();
+
+        LockListChecksum lockListChecksum();
+
+        static ImmutableWireLockRequestMetadata.Builder builder() {
+            return ImmutableWireLockRequestMetadata.builder();
+        }
+    }
+
+    @Value.Immutable
+    @JsonSerialize(as = ImmutableLockListChecksum.class)
+    @JsonDeserialize(as = ImmutableLockListChecksum.class)
+    public interface LockListChecksum {
+
+        @Value.Parameter
+        int typeId();
+
+        @Value.Parameter
+        byte[] value();
+
+        static LockListChecksum of(int typeId, byte[] value) {
+            return ImmutableLockListChecksum.of(typeId, value);
+        }
+    }
 }u}(jdX (1168be10177125238fd8ae7829b9a0fadb1f752bjX Olock-api-objects/src/main/java/com/palantir/lock/watch/LockRequestMetadata.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javajX https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X"  @@ -29,11 +29,11 @@
 @Unsafe
 @Value.Immutable
 public interface LockRequestMetadata {
+
+    @Value.Parameter
     Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata();
 
     static LockRequestMetadata of(Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata) {
-        return ImmutableLockRequestMetadata.builder()
-                .lockDescriptorToChangeMetadata(lockDescriptorToChangeMetadata)
-                .build();
+        return ImmutableLockRequestMetadata.of(lockDescriptorToChangeMetadata);
     }
 }u}(jdX (e82dfb8fb3ac704571c72a868213133c36e5489bjX Ilock-api-objects/src/test/java/com/palantir/lock/watch/LockEventTest.javajX addedjX KjX K jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X)  @@ -0,0 +1,225 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.fasterxml.jackson.databind.exc.InvalidDefinitionException;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.UUID;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.immutables.value.Value;
+import org.junit.Test;
+
+public class LockEventTest {
+    private static final String BASE = "src/test/resources/lock-event-wire-format/";
+    private static final String OLD_LOCK_EVENT_FILE = "old";
+    private static final String WITH_METADATA_FILE = "with-metadata";
+    private static final String WITH_EMPTY_METADATA_MAP_FILE = "with-empty-metadata-map";
+    private static final String SPARSE_METADATA_FILE = "sparse-metadata";
+    private static final String SHUFFLED_LOCKS_FILE = "shuffled-locks";
+    private static final boolean REWRITE_JSON_BLOBS = false;
+
+    private static final LockDescriptor LOCK_1 = StringLockDescriptor.of("abc");
+    private static final LockDescriptor LOCK_2 = StringLockDescriptor.of("def");
+    private static final LockDescriptor LOCK_3 = StringLockDescriptor.of("ghi");
+    private static final LockDescriptor LOCK_4 = StringLockDescriptor.of("jkl");
+    private static final long SEQUENCE = 10L;
+    private static final LockToken LOCK_TOKEN = LockToken.of(new UUID(1337, 42));
+    private static final Set<LockDescriptor> LOCK_SET = ImmutableSet.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4);
+    private static final OldLockEvent OLD_LOCK_EVENT = ImmutableOldLockEvent.builder()
+            .sequence(SEQUENCE)
+            .lockDescriptors(LOCK_SET)
+            .lockToken(LOCK_TOKEN)
+            .build();
+    private static final LockEvent DEFAULT_LOCK_EVENT = ImmutableLockEvent.builder()
+            .sequence(SEQUENCE)
+            .lockDescriptors(LOCK_SET)
+            .lockToken(LOCK_TOKEN)
+            .build();
+    private static final byte[] BYTES_OLD = PtBytes.toBytes("old");
+    private static final byte[] BYTES_NEW = PtBytes.toBytes("new");
+    private static final byte[] BYTES_DELETED = PtBytes.toBytes("deleted");
+    private static final byte[] BYTES_CREATED = PtBytes.toBytes("created");
+    private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(ImmutableMap.of(
+            LOCK_1,
+            ChangeMetadata.unchanged(),
+            LOCK_2,
+            ChangeMetadata.updated(BYTES_OLD, BYTES_NEW),
+            LOCK_3,
+            ChangeMetadata.deleted(BYTES_DELETED),
+            LOCK_4,
+            ChangeMetadata.created(BYTES_CREATED)));
+
+    // TimeLock (Server) serializes and AtlasDB (Client) deserializes.
+    // These are the respective mappers used internally by Conjure.
+    private static final ObjectMapper SERIALIZATION_MAPPER =
+            ObjectMappers.newServerObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
+    private static final ObjectMapper DESERIALIZATION_MAPPER =
+            ObjectMappers.newClientObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
+    // This mapper is used to ensure that two JSONs are equal excluding indentation
+    private static final ObjectMapper VERIFYING_MAPPER = new ObjectMapper();
+
+    @Test
+    public void oldLockEventSerializesDeserializes() {
+        assertSerializedEquals(OLD_LOCK_EVENT, OLD_LOCK_EVENT_FILE);
+        assertDeserializedEquals(OLD_LOCK_EVENT_FILE, OLD_LOCK_EVENT, OldLockEvent.class);
+    }
+
+    @Test
+    public void absentMetadataSerializesDeserializes() {
+        assertSerializedEquals(DEFAULT_LOCK_EVENT, OLD_LOCK_EVENT_FILE);
+        assertDeserializedEquals(OLD_LOCK_EVENT_FILE, DEFAULT_LOCK_EVENT, LockEvent.class);
+    }
+
+    @Test
+    public void presentMetadataSerializesDeserializes() {
+        LockEvent lockEventWithMetadata =
+                ImmutableLockEvent.copyOf(DEFAULT_LOCK_EVENT).withMetadata(LOCK_REQUEST_METADATA);
+        assertSerializedEquals(lockEventWithMetadata, WITH_METADATA_FILE);
+        assertDeserializedEquals(WITH_METADATA_FILE, lockEventWithMetadata, LockEvent.class);
+    }
+
+    @Test
+    public void serializesDeserializesAsLockWatchEventWithMetadata() {
+        LockWatchEvent lockWatchEvent =
+                ImmutableLockEvent.copyOf(DEFAULT_LOCK_EVENT).withMetadata(LOCK_REQUEST_METADATA);
+        assertSerializedEquals(lockWatchEvent, WITH_METADATA_FILE);
+        assertDeserializedEquals(WITH_METADATA_FILE, lockWatchEvent, LockWatchEvent.class);
+    }
+
+    @Test
+    public void emptyMetadataMapSerializesDeserializes() {
+        LockEvent lockEventWithMetadata =
+                ImmutableLockEvent.copyOf(DEFAULT_LOCK_EVENT).withMetadata(LockRequestMetadata.of(ImmutableMap.of()));
+        assertSerializedEquals(lockEventWithMetadata, WITH_EMPTY_METADATA_MAP_FILE);
+        assertDeserializedEquals(WITH_EMPTY_METADATA_MAP_FILE, lockEventWithMetadata, LockEvent.class);
+    }
+
+    // This behavior should be guaranteed by the Conjure spec
+    @Test
+    public void oldClientIgnoresMetadata() {
+        assertDeserializedEquals(WITH_METADATA_FILE, OLD_LOCK_EVENT, OldLockEvent.class);
+    }
+
+    @Test
+    public void sparseMetadataSerializesDeserializes() {
+        List<LockDescriptor> lockDescriptors = IntStream.range(0, 10)
+                .mapToObj(Integer::toString)
+                .map(StringLockDescriptor::of)
+                .collect(Collectors.toList());
+        // Unique metadata on some locks, but not all
+        Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata = ImmutableMap.of(
+                lockDescriptors.get(0), ChangeMetadata.created(BYTES_CREATED),
+                lockDescriptors.get(4), ChangeMetadata.deleted(BYTES_DELETED),
+                lockDescriptors.get(9), ChangeMetadata.unchanged(),
+                lockDescriptors.get(5), ChangeMetadata.updated(BYTES_OLD, BYTES_NEW),
+                lockDescriptors.get(7), ChangeMetadata.unchanged());
+        LockEvent lockEventWithSparseMetadata = ImmutableLockEvent.builder()
+                .lockDescriptors(lockDescriptors)
+                .sequence(SEQUENCE)
+                .lockToken(LOCK_TOKEN)
+                .metadata(LockRequestMetadata.of(lockDescriptorToChangeMetadata))
+                .build();
+
+        assertSerializedEquals(lockEventWithSparseMetadata, SPARSE_METADATA_FILE);
+        assertDeserializedEquals(SPARSE_METADATA_FILE, lockEventWithSparseMetadata, LockEvent.class);
+    }
+
+    @Test
+    public void shufflingLockDescriptorsOnTheWireIsDetectedByClient() {
+        assertThatThrownBy(() ->
+                        // The order of the lock descriptors in this JSON file is swapped
+                        DESERIALIZATION_MAPPER.readValue(
+                                Files.readString(getJsonPath(SHUFFLED_LOCKS_FILE)), LockEvent.class))
+                .rootCause()
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageStartingWith("Key list integrity check failed");
+    }
+
+    @Test
+    public void cannotDeserializeAsWireLockEvent() {
+        assertThatThrownBy(() -> DESERIALIZATION_MAPPER.readValue(
+                        Files.readString(getJsonPath(WITH_METADATA_FILE)), LockEvent.WireLockEvent.class))
+                .isInstanceOf(InvalidDefinitionException.class);
+    }
+
+    private static <T> void assertSerializedEquals(T object, String jsonFileName) {
+        try {
+            Path path = getJsonPath(jsonFileName);
+            if (REWRITE_JSON_BLOBS) {
+                SERIALIZATION_MAPPER.writeValue(path.toFile(), object);
+            }
+            String serialized = SERIALIZATION_MAPPER.writeValueAsString(object);
+            assertThat(VERIFYING_MAPPER.readTree(serialized))
+                    .as("Serialization yields semantically identical JSON representation")
+                    .isEqualTo(VERIFYING_MAPPER.readTree(Files.readString(path)));
+        } catch (IOException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private static <T> void assertDeserializedEquals(String jsonFileName, T object, Class<T> clazz) {
+        try {
+            assertThat(DESERIALIZATION_MAPPER.readValue(Files.readString(getJsonPath(jsonFileName)), clazz))
+                    .as("Deserialization yields identical object")
+                    .isEqualTo(object);
+        } catch (IOException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private static Path getJsonPath(String jsonFileName) {
+        return Paths.get(BASE, jsonFileName + ".json");
+    }
+
+    // This is a copy of the LockEvent class before metadata was added
+    @Value.Immutable
+    @JsonSerialize(as = ImmutableOldLockEvent.class)
+    @JsonDeserialize(as = ImmutableOldLockEvent.class)
+    @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
+    @JsonTypeName(LockEvent.TYPE)
+    public interface OldLockEvent {
+        long sequence();
+
+        Set<LockDescriptor> lockDescriptors();
+
+        LockToken lockToken();
+    }
+}u}(jdX (1d1d3cf3bf2579562acbf88f3b9915493eb45cedjX Clock-api-objects/src/test/resources/lock-event-wire-format/old.jsonjX addedjX KjX K jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fold.jsonjX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fold.jsonjX https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fold.json?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X?  @@ -0,0 +1,16 @@
+{
+  "type" : "lock",
+  "sequence" : 10,
+  "lockDescriptors" : [ {
+    "bytes" : "YWJj"
+  }, {
+    "bytes" : "ZGVm"
+  }, {
+    "bytes" : "Z2hp"
+  }, {
+    "bytes" : "amts"
+  } ],
+  "lockToken" : {
+    "requestId" : "00000000-0000-0539-0000-00000000002a"
+  }
+}
\ No newline at end of fileu}(jdX (cc146577c79cb9e4b947642412249c7d1fa65b9bjX Nlock-api-objects/src/test/resources/lock-event-wire-format/shuffled-locks.jsonjX addedjX KjX K jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fshuffled-locks.jsonjX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fshuffled-locks.jsonjX https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fshuffled-locks.json?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X-  @@ -0,0 +1,27 @@
+{
+  "type" : "lock",
+  "sequence" : 10,
+  "lockDescriptors" : [ {
+    "bytes" : "dGVzdC1sb2Nr"
+  }, {
+    "bytes" : "YWJj"
+  } ],
+  "lockToken" : {
+    "requestId" : "00000000-0000-0539-0000-00000000002a"
+  },
+  "metadata" : {
+    "indexToChangeMetadata" : {
+      "0" : {
+        "type" : "created",
+        "newValue" : "bmV3"
+      },
+      "1" : {
+        "type" : "unchanged"
+      }
+    },
+    "lockListChecksum" : {
+      "typeId" : 1,
+      "value" : "AAAAAIOu57o="
+    }
+  }
+}
\ No newline at end of fileu}(jdX (c463a4528f6bad141ab71a4124edd6fd095ccb67jX Olock-api-objects/src/test/resources/lock-event-wire-format/sparse-metadata.jsonjX addedjX K7jX K jX K7jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fsparse-metadata.jsonjX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fsparse-metadata.jsonjX https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fsparse-metadata.json?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X   @@ -0,0 +1,55 @@
+{
+  "type" : "lock",
+  "sequence" : 10,
+  "lockDescriptors" : [ {
+    "bytes" : "MA=="
+  }, {
+    "bytes" : "MQ=="
+  }, {
+    "bytes" : "Mg=="
+  }, {
+    "bytes" : "Mw=="
+  }, {
+    "bytes" : "NA=="
+  }, {
+    "bytes" : "NQ=="
+  }, {
+    "bytes" : "Ng=="
+  }, {
+    "bytes" : "Nw=="
+  }, {
+    "bytes" : "OA=="
+  }, {
+    "bytes" : "OQ=="
+  } ],
+  "lockToken" : {
+    "requestId" : "00000000-0000-0539-0000-00000000002a"
+  },
+  "metadata" : {
+    "indexToChangeMetadata" : {
+      "0" : {
+        "type" : "created",
+        "newValue" : "Y3JlYXRlZA=="
+      },
+      "4" : {
+        "type" : "deleted",
+        "oldValue" : "ZGVsZXRlZA=="
+      },
+      "5" : {
+        "type" : "updated",
+        "oldValue" : "b2xk",
+        "newValue" : "bmV3"
+      },
+      "7" : {
+        "type" : "unchanged"
+      },
+      "9" : {
+        "type" : "unchanged"
+      }
+    },
+    "lockListChecksum" : {
+      "typeId" : 1,
+      "value" : "AAAAALDKyYU="
+    }
+  }
+}
\ No newline at end of fileu}(jdX (2c9785a186f61aaa5706802f2c384a031bb75f3ejX Wlock-api-objects/src/test/resources/lock-event-wire-format/with-empty-metadata-map.jsonjX addedjX KjX K jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-empty-metadata-map.jsonjX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-empty-metadata-map.jsonjX https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-empty-metadata-map.json?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -0,0 +1,23 @@
+{
+  "type" : "lock",
+  "sequence" : 10,
+  "lockDescriptors" : [ {
+    "bytes" : "YWJj"
+  }, {
+    "bytes" : "ZGVm"
+  }, {
+    "bytes" : "Z2hp"
+  }, {
+    "bytes" : "amts"
+  } ],
+  "lockToken" : {
+    "requestId" : "00000000-0000-0539-0000-00000000002a"
+  },
+  "metadata" : {
+    "indexToChangeMetadata" : { },
+    "lockListChecksum" : {
+      "typeId" : 1,
+      "value" : "AAAAADUuws0="
+    }
+  }
+}
\ No newline at end of fileu}(jdX (c11abb8e1348ee4599b6226e583474cda683e1efjX Mlock-api-objects/src/test/resources/lock-event-wire-format/with-metadata.jsonjX addedjX K(jX K jX K(jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-metadata.jsonjX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-metadata.jsonjX https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-metadata.json?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X5  @@ -0,0 +1,40 @@
+{
+  "type" : "lock",
+  "sequence" : 10,
+  "lockDescriptors" : [ {
+    "bytes" : "YWJj"
+  }, {
+    "bytes" : "ZGVm"
+  }, {
+    "bytes" : "Z2hp"
+  }, {
+    "bytes" : "amts"
+  } ],
+  "lockToken" : {
+    "requestId" : "00000000-0000-0539-0000-00000000002a"
+  },
+  "metadata" : {
+    "indexToChangeMetadata" : {
+      "0" : {
+        "type" : "unchanged"
+      },
+      "1" : {
+        "type" : "updated",
+        "oldValue" : "b2xk",
+        "newValue" : "bmV3"
+      },
+      "2" : {
+        "type" : "deleted",
+        "oldValue" : "ZGVsZXRlZA=="
+      },
+      "3" : {
+        "type" : "created",
+        "newValue" : "Y3JlYXRlZA=="
+      }
+    },
+    "lockListChecksum" : {
+      "typeId" : 1,
+      "value" : "AAAAADUuws0="
+    }
+  }
+}
\ No newline at end of fileu}(jdX (b9d68aed0eb7a84215df245f61e86e6dfad77494jX lock-api/build.gradlejX modifiedjX KjX K jX KjX ihttps://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api%2Fbuild.gradlejX hhttps://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api%2Fbuild.gradlejX {https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fbuild.gradle?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -44,8 +44,10 @@ dependencies {
     testImplementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
     testImplementation 'com.google.guava:guava'
     testImplementation 'com.palantir.common:streams'
+    testImplementation 'com.palantir.safe-logging:preconditions-assertj'
     testImplementation 'io.dropwizard.metrics:metrics-core'
     testImplementation 'org.slf4j:slf4j-api'
+    testImplementation project(':atlasdb-api')
     testImplementation project(':lock-api-objects')
     testImplementation project(':lock-conjure-api:lock-conjure-api-objects')
     testImplementation project(':timelock-api:timelock-api-objects')u}(jdX (fdd60c0b734cecbf10734e0fbd30536bb6a5dec9jX Hlock-api/src/main/java/com/palantir/lock/client/ConjureLockRequests.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequests.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequests.javajX https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequests.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX XJ
  @@ -16,6 +16,7 @@
 
 package com.palantir.lock.client;
 
+import com.google.common.collect.ImmutableList;
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.timelock.api.ConjureIdentifiedVersion;
 import com.palantir.atlasdb.timelock.api.ConjureLockDescriptor;
@@ -27,7 +28,10 @@
 import com.palantir.lock.v2.LockRequest;
 import com.palantir.lock.v2.WaitForLocksRequest;
 import com.palantir.lock.v2.WaitForLocksResponse;
+import com.palantir.lock.watch.ConjureLockRequestMetadataUtils;
+import com.palantir.lock.watch.ConjureLockRequestMetadataUtils.ConjureMetadataConversionResult;
 import com.palantir.lock.watch.LockWatchVersion;
+import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
@@ -37,11 +41,18 @@ public final class ConjureLockRequests {
     private ConjureLockRequests() {}
 
     public static ConjureLockRequest toConjure(LockRequest request) {
+        Optional<ConjureMetadataConversionResult> optConversionResult = request.getMetadata()
+                .map(metadata ->
+                        ConjureLockRequestMetadataUtils.toConjureIndexEncoded(request.getLockDescriptors(), metadata));
+        List<LockDescriptor> orderedLocks = optConversionResult
+                .map(ConjureMetadataConversionResult::lockList)
+                .orElseGet(() -> ImmutableList.copyOf(request.getLockDescriptors()));
         return ConjureLockRequest.builder()
-                .lockDescriptors(toConjure(request.getLockDescriptors()))
+                .lockDescriptors(toConjure(orderedLocks))
                 .clientDescription(request.getClientDescription())
                 .requestId(UUID.randomUUID())
                 .acquireTimeoutMs(Ints.checkedCast(request.getAcquireTimeoutMs()))
+                .metadata(optConversionResult.map(ConjureMetadataConversionResult::conjureMetadata))
                 .build();
     }
 
@@ -62,6 +73,14 @@ private static Set<ConjureLockDescriptor> toConjure(Set<LockDescriptor> lockDesc
                 .collect(Collectors.toSet());
     }
 
+    private static List<ConjureLockDescriptor> toConjure(List<LockDescriptor> lockDescriptors) {
+        return lockDescriptors.stream()
+                .map(LockDescriptor::getBytes)
+                .map(Bytes::from)
+                .map(ConjureLockDescriptor::of)
+                .collect(Collectors.toList());
+    }
+
     public static Optional<ConjureIdentifiedVersion> toConjure(Optional<LockWatchVersion> maybeVersion) {
         return maybeVersion.map(identifiedVersion -> ConjureIdentifiedVersion.builder()
                 .id(identifiedVersion.id())u}(jdX (04139c5c6a94302d7c0326ccbdc2ab53683820e5jX Slock-api/src/main/java/com/palantir/lock/watch/ConjureLockRequestMetadataUtils.javajX addedjX KjX K jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtils.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtils.javajX https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtils.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX XM   @@ -0,0 +1,176 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.timelock.api.ConjureChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureCreatedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureDeletedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureLockDescriptorListChecksum;
+import com.palantir.atlasdb.timelock.api.ConjureLockRequestMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureUnchangedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureUpdatedChangeMetadata;
+import com.palantir.common.streams.KeyedStream;
+import com.palantir.conjure.java.lib.Bytes;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.watch.ChangeMetadata.Created;
+import com.palantir.lock.watch.ChangeMetadata.Deleted;
+import com.palantir.lock.watch.ChangeMetadata.Unchanged;
+import com.palantir.lock.watch.ChangeMetadata.Updated;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.Unsafe;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.util.IndexEncodingUtils;
+import com.palantir.util.IndexEncodingUtils.ChecksumType;
+import com.palantir.util.IndexEncodingUtils.IndexEncodingResult;
+import com.palantir.util.IndexEncodingUtils.KeyListChecksum;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import org.immutables.value.Value;
+
+public final class ConjureLockRequestMetadataUtils {
+    private ConjureLockRequestMetadataUtils() {}
+
+    @VisibleForTesting
+    static final ChecksumType DEFAULT_CHECKSUM_TYPE = ChecksumType.CRC32_OF_DETERMINISTIC_HASHCODE;
+
+    private static final SafeLogger log = SafeLoggerFactory.get(ConjureLockRequestMetadataUtils.class);
+
+    public static ConjureMetadataConversionResult toConjureIndexEncoded(
+            Set<LockDescriptor> lockDescriptors, LockRequestMetadata metadata) {
+        IndexEncodingResult<LockDescriptor, ConjureChangeMetadata> encoded = IndexEncodingUtils.encode(
+                lockDescriptors,
+                metadata.lockDescriptorToChangeMetadata(),
+                changeMetadata -> changeMetadata.accept(ChangeMetadataToConjureVisitor.INSTANCE),
+                DEFAULT_CHECKSUM_TYPE);
+        KeyListChecksum checksum = encoded.keyListChecksum();
+        ConjureLockRequestMetadata conjureLockRequestMetadata = ConjureLockRequestMetadata.builder()
+                .indexToChangeMetadata(encoded.indexToValue())
+                .lockListChecksum(checksumToConjure(checksum))
+                .build();
+        return ImmutableConjureMetadataConversionResult.builder()
+                .lockList(encoded.keyList())
+                .conjureMetadata(conjureLockRequestMetadata)
+                .build();
+    }
+
+    public static LockRequestMetadata fromConjureIndexEncoded(ConjureMetadataConversionResult conversionResult) {
+        List<LockDescriptor> keyList = conversionResult.lockList();
+        ConjureLockRequestMetadata conjureMetadata = conversionResult.conjureMetadata();
+        KeyListChecksum checksum =
+                checksumFromConjure(conversionResult.conjureMetadata().getLockListChecksum());
+        IndexEncodingResult<LockDescriptor, ConjureChangeMetadata> encoded =
+                IndexEncodingResult.<LockDescriptor, ConjureChangeMetadata>builder()
+                        .keyList(keyList)
+                        .indexToValue(conjureMetadata.getIndexToChangeMetadata())
+                        .keyListChecksum(checksum)
+                        .build();
+        Map<LockDescriptor, Optional<ChangeMetadata>> optChangeMetadata = IndexEncodingUtils.decode(
+                encoded,
+                conjureChangeMetadata -> conjureChangeMetadata.accept(ChangeMetadataFromConjureVisitor.INSTANCE));
+        Map<LockDescriptor, ChangeMetadata> changeMetadata = KeyedStream.ofEntries(
+                        optChangeMetadata.entrySet().stream())
+                .flatMap(Optional::stream)
+                .collectToMap();
+        return LockRequestMetadata.of(changeMetadata);
+    }
+
+    private static ConjureLockDescriptorListChecksum checksumToConjure(KeyListChecksum checksum) {
+        return ConjureLockDescriptorListChecksum.of(checksum.type().getId(), Bytes.from(checksum.value()));
+    }
+
+    private static KeyListChecksum checksumFromConjure(ConjureLockDescriptorListChecksum conjureChecksum) {
+        return KeyListChecksum.of(
+                ChecksumType.valueOf(conjureChecksum.getTypeId()),
+                conjureChecksum.getValue().asNewByteArray());
+    }
+
+    @Unsafe
+    @Value.Immutable
+    public interface ConjureMetadataConversionResult {
+        List<LockDescriptor> lockList();
+
+        ConjureLockRequestMetadata conjureMetadata();
+
+        static ImmutableConjureMetadataConversionResult.Builder builder() {
+            return ImmutableConjureMetadataConversionResult.builder();
+        }
+    }
+
+    private enum ChangeMetadataToConjureVisitor implements ChangeMetadata.Visitor<ConjureChangeMetadata> {
+        INSTANCE;
+
+        @Override
+        public ConjureChangeMetadata visit(Unchanged unchanged) {
+            return ConjureChangeMetadata.unchanged(ConjureUnchangedChangeMetadata.of());
+        }
+
+        @Override
+        public ConjureChangeMetadata visit(Updated updated) {
+            return ConjureChangeMetadata.updated(
+                    ConjureUpdatedChangeMetadata.of(Bytes.from(updated.oldValue()), Bytes.from(updated.newValue())));
+        }
+
+        @Override
+        public ConjureChangeMetadata visit(Deleted deleted) {
+            return ConjureChangeMetadata.deleted(ConjureDeletedChangeMetadata.of(Bytes.from(deleted.oldValue())));
+        }
+
+        @Override
+        public ConjureChangeMetadata visit(Created created) {
+            return ConjureChangeMetadata.created(ConjureCreatedChangeMetadata.of(Bytes.from(created.newValue())));
+        }
+    }
+
+    private enum ChangeMetadataFromConjureVisitor implements ConjureChangeMetadata.Visitor<Optional<ChangeMetadata>> {
+        INSTANCE;
+
+        @Override
+        public Optional<ChangeMetadata> visitUnchanged(ConjureUnchangedChangeMetadata unchanged) {
+            return Optional.of(ChangeMetadata.unchanged());
+        }
+
+        @Override
+        public Optional<ChangeMetadata> visitUpdated(ConjureUpdatedChangeMetadata updated) {
+            return Optional.of(ChangeMetadata.updated(
+                    updated.getOldValue().asNewByteArray(),
+                    updated.getNewValue().asNewByteArray()));
+        }
+
+        @Override
+        public Optional<ChangeMetadata> visitDeleted(ConjureDeletedChangeMetadata deleted) {
+            return Optional.of(ChangeMetadata.deleted(deleted.getOldValue().asNewByteArray()));
+        }
+
+        @Override
+        public Optional<ChangeMetadata> visitCreated(ConjureCreatedChangeMetadata created) {
+            return Optional.of(ChangeMetadata.created(created.getNewValue().asNewByteArray()));
+        }
+
+        @Override
+        public Optional<ChangeMetadata> visitUnknown(String unknownType) {
+            log.trace(
+                    "Encountered an unknown ConjureChangeMetadata type. This is likely a new type that was added in a"
+                            + " future version. This ChangeMetadata will be discarded",
+                    SafeArg.of("unknownType", unknownType));
+            return Optional.empty();
+        }
+    }
+}u}(jdX (1bba95acc622e3285936e6443d37ef912ef8575djX @lock-api/src/test/java/com/palantir/lock/LockDescriptorTest.javajX modifiedjX KjX K jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockDescriptorTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockDescriptorTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockDescriptorTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX Xy  @@ -20,6 +20,7 @@
 
 import com.google.common.base.Charsets;
 import com.google.common.io.BaseEncoding;
+import java.util.Arrays;
 import org.junit.Test;
 
 public class LockDescriptorTest {
@@ -67,6 +68,24 @@ public void testNullEncodedStringDescriptor() {
         assertThatThrownBy(() -> testEncodedLockDescriptors(null)).isInstanceOf(NullPointerException.class);
     }
 
+    // If this test fails, the implementation of Arrays.hashCode(byte[]), LockDescriptor::hashCode, or
+    // LockDescriptor::deterministicHashCode has changed.
+    // Either way, we should revisit LockDescriptor::deterministicHashCode and ensure that it is still deterministic
+    // and there are no compatibility issues in mixed-version deployments.
+    @Test
+    public void hashCodeIsDeterministic() {
+        // 40 random bytes
+        byte[] bytes = new byte[] {
+            59, -6, -24, 61, -48, -126, -4, 81, -9, -38, -107, 93, 101, -95, 78, -60, -105, 23, 72, 96, -5, 74, -121,
+            59, 40, -87, 1, -6, 43, -20, -70, 101, 63, 108, -51, 117, 113, 116, -87, -73
+        };
+        int expectedByteArrayHashCode = 2030170880;
+        assertThat(Arrays.hashCode(bytes)).isEqualTo(expectedByteArrayHashCode);
+        LockDescriptor lockDescriptor = new LockDescriptor(bytes);
+        assertThat(lockDescriptor.hashCode()).isEqualTo(expectedByteArrayHashCode + 31);
+        assertThat(lockDescriptor.deterministicHashCode()).isEqualTo(expectedByteArrayHashCode + 31);
+    }
+
     private void testAsciiLockDescriptors(String lockId) {
         assertThat(StringLockDescriptor.of(lockId).toString()).isEqualTo(expectedLockDescriptorToString(lockId));
 u}(jdX (96fe402e4d52617d8c36e2a0ce2d98c6c893ef57jX Nlock-api/src/test/java/com/palantir/lock/client/IdentifiedLockRequestTest.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -99,6 +99,6 @@ private static IdentifiedLockRequest deserialize(String jsonFileName) {
     }
 
     private static Path getJsonPath(String jsonFileName) {
-        return Paths.get(BASE + jsonFileName + ".json");
+        return Paths.get(BASE, jsonFileName + ".json");
     }
 }u}(jdX (c0d1025cfe51e19db09fc5399c40d1efe6257dbajX Wlock-api/src/test/java/com/palantir/lock/watch/ConjureLockRequestMetadataUtilsTest.javajX addedjX KjX K jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -0,0 +1,155 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.atlasdb.timelock.api.ConjureChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureCreatedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureDeletedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureLockDescriptorListChecksum;
+import com.palantir.atlasdb.timelock.api.ConjureLockRequestMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureUnchangedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureUpdatedChangeMetadata;
+import com.palantir.conjure.java.lib.Bytes;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.watch.ConjureLockRequestMetadataUtils.ConjureMetadataConversionResult;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.util.IndexEncodingUtils;
+import com.palantir.util.IndexEncodingUtils.KeyListChecksum;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class ConjureLockRequestMetadataUtilsTest {
+    private static final LockDescriptor LOCK_1 = StringLockDescriptor.of("lock1");
+    private static final LockDescriptor LOCK_2 = StringLockDescriptor.of("lock2");
+    private static final LockDescriptor LOCK_3 = StringLockDescriptor.of("lock3");
+    private static final LockDescriptor LOCK_4 = StringLockDescriptor.of("lock4");
+    private static final byte[] BYTES_OLD = PtBytes.toBytes("old");
+    private static final byte[] BYTES_NEW = PtBytes.toBytes("new");
+    private static final byte[] BYTES_DELETED = PtBytes.toBytes("deleted");
+    private static final byte[] BYTES_CREATED = PtBytes.toBytes("created");
+    private static final List<LockDescriptor> LOCK_LIST = ImmutableList.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4);
+    // Although this is quite verbose, we explicitly want to test all possible types of change metadata and ensure
+    // that we do the conversion right for each of them.
+    private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(ImmutableMap.of(
+            LOCK_1,
+            ChangeMetadata.unchanged(),
+            LOCK_2,
+            ChangeMetadata.updated(BYTES_OLD, BYTES_NEW),
+            LOCK_3,
+            ChangeMetadata.deleted(BYTES_DELETED),
+            LOCK_4,
+            ChangeMetadata.created(BYTES_CREATED)));
+    private static final Map<Integer, ConjureChangeMetadata> CONJURE_LOCKS_WITH_METADATA = ImmutableMap.of(
+            0,
+            ConjureChangeMetadata.unchanged(ConjureUnchangedChangeMetadata.of()),
+            1,
+            ConjureChangeMetadata.updated(
+                    ConjureUpdatedChangeMetadata.of(Bytes.from(BYTES_OLD), Bytes.from(BYTES_NEW))),
+            2,
+            ConjureChangeMetadata.deleted(ConjureDeletedChangeMetadata.of(Bytes.from(BYTES_DELETED))),
+            3,
+            ConjureChangeMetadata.created(ConjureCreatedChangeMetadata.of(Bytes.from(BYTES_CREATED))));
+
+    private static ConjureMetadataConversionResult conjureMetadataConversionResult;
+
+    // This is a good candidate for a static construction method, but we would rather avoid testing internals of
+    // IndexEncodingUtils (checksum computation) within the tests for Conjure conversion.
+    @BeforeClass
+    public static void setup() {
+        KeyListChecksum checksum =
+                IndexEncodingUtils.computeChecksum(ConjureLockRequestMetadataUtils.DEFAULT_CHECKSUM_TYPE, LOCK_LIST);
+        ConjureLockRequestMetadata conjureMetadata = ConjureLockRequestMetadata.builder()
+                .indexToChangeMetadata(CONJURE_LOCKS_WITH_METADATA)
+                .lockListChecksum(
+                        ConjureLockDescriptorListChecksum.of(checksum.type().getId(), Bytes.from(checksum.value())))
+                .build();
+        conjureMetadataConversionResult = ConjureMetadataConversionResult.builder()
+                .lockList(LOCK_LIST)
+                .conjureMetadata(conjureMetadata)
+                .build();
+    }
+
+    @Test
+    public void convertsToConjureCorrectly() {
+        // ImmutableSet remembers insertion order, which is critical here
+        assertThat(ConjureLockRequestMetadataUtils.toConjureIndexEncoded(
+                        ImmutableSet.copyOf(LOCK_LIST), LOCK_REQUEST_METADATA))
+                .isEqualTo(conjureMetadataConversionResult);
+    }
+
+    @Test
+    public void convertsFromConjureCorrectly() {
+        assertThat(ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(conjureMetadataConversionResult))
+                .isEqualTo(LOCK_REQUEST_METADATA);
+    }
+
+    @Test
+    public void canConvertSparseMetadata() {
+        List<LockDescriptor> lockDescriptors = IntStream.range(0, 10)
+                .mapToObj(Integer::toString)
+                .map(StringLockDescriptor::of)
+                .collect(Collectors.toList());
+        // Unique metadata on some locks, but not all
+        Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata = ImmutableMap.of(
+                lockDescriptors.get(0), ChangeMetadata.created(BYTES_CREATED),
+                lockDescriptors.get(4), ChangeMetadata.deleted(BYTES_DELETED),
+                lockDescriptors.get(9), ChangeMetadata.unchanged(),
+                lockDescriptors.get(5), ChangeMetadata.updated(BYTES_OLD, BYTES_NEW),
+                lockDescriptors.get(7), ChangeMetadata.unchanged());
+        LockRequestMetadata metadata = LockRequestMetadata.of(lockDescriptorToChangeMetadata);
+
+        assertThat(ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(
+                        ConjureLockRequestMetadataUtils.toConjureIndexEncoded(
+                                ImmutableSet.copyOf(lockDescriptors), metadata)))
+                .isEqualTo(metadata);
+    }
+
+    @Test
+    public void changedLockOrderIsDetected() {
+        List<LockDescriptor> modifiedLockList = new ArrayList<>(LOCK_LIST);
+        Collections.swap(modifiedLockList, 0, 1);
+        ConjureMetadataConversionResult conversionResult = ImmutableConjureMetadataConversionResult.copyOf(
+                        conjureMetadataConversionResult)
+                .withLockList(modifiedLockList);
+        assertThatLoggableExceptionThrownBy(
+                        () -> ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(conversionResult))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageStartingWith("Key list integrity check failed");
+    }
+
+    @Test
+    public void handlesEmptyData() {
+        assertThat(ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(
+                        ConjureLockRequestMetadataUtils.toConjureIndexEncoded(
+                                ImmutableSet.of(), LockRequestMetadata.of(ImmutableMap.of()))))
+                .isEqualTo(LockRequestMetadata.of(ImmutableMap.of()));
+    }
+}u}(jdX (5915e901d5335a9783ac11cb0206c0e610ac23bcjX *scripts/circle-ci/publish-to-antithesis.shjX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shjX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shjX https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X*  @@ -26,9 +26,9 @@ printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://$
 
 VERSION=$(./gradlew -q printVersion)
 
-docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
-docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc5 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
-docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
+docker pull palantirtechnologies/cassandra:2.2.18-1.116.0
+docker tag palantirtechnologies/cassandra:2.2.18-1.116.0 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.116.0
+docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.116.0
 
 docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}
 docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}u}(jdX (efa35782df23f11a2b560a1360460927c3a64c83jX timelock-api/build.gradlejX modifiedjX KjX K jX KjX mhttps://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-api%2Fbuild.gradlejX lhttps://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-api%2Fbuild.gradlejX https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fbuild.gradle?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X[  @@ -7,6 +7,11 @@ dependencies {
     compileOnly 'com.fasterxml.jackson.core:jackson-databind'
     compileOnly 'org.immutables:value::annotations'
     annotationProcessor 'org.immutables:value'
+
+    testImplementation project(':atlasdb-api')
+    testImplementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
+    testImplementation 'junit:junit'
+    testImplementation 'org.assertj:assertj-core'
 }
 
 subprojects {
@@ -28,3 +33,9 @@ subprojects {
     }
     tasks.licenseMain.enabled = false
 }
+
+conjure {
+    java {
+        excludeEmptyOptionals = true
+    }
+}u}(jdX (fde4513aa3ded3e8c3dd435abae8afd3aadb7511jX .timelock-api/src/main/conjure/timelock-api.ymljX modifiedjX K(jX KjX K)jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-api.ymljX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-api.ymljX https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-api.yml?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX Xc  @@ -93,6 +93,44 @@ types:
           inclusiveUpper: Long
       ConjureGetFreshTimestampsResponseV2:
         alias: ConjureTimestampRange
+      ConjureUnchangedChangeMetadata:
+        fields: {}
+      ConjureUpdatedChangeMetadata:
+        fields:
+          oldValue:
+            type: binary
+            safety: unsafe
+          newValue:
+            type: binary
+            safety: unsafe
+      ConjureDeletedChangeMetadata:
+        fields:
+          oldValue:
+            type: binary
+            safety: unsafe
+      ConjureCreatedChangeMetadata:
+        fields:
+          newValue:
+            type: binary
+            safety: unsafe
+      ConjureChangeMetadata:
+          union:
+            unchanged: ConjureUnchangedChangeMetadata
+            updated: ConjureUpdatedChangeMetadata
+            deleted: ConjureDeletedChangeMetadata
+            created: ConjureCreatedChangeMetadata
+      ConjureLockDescriptorListChecksum:
+        fields:
+          typeId:
+            type: integer
+            safety: safe
+          value:
+            type: binary
+            safety: unsafe
+      ConjureLockRequestMetadata:
+        fields:
+          indexToChangeMetadata: map<integer, ConjureChangeMetadata>
+          lockListChecksum: ConjureLockDescriptorListChecksum
       ConjureLockDescriptor:
         alias: binary
         safety: unsafe
@@ -101,13 +139,14 @@ types:
           requestId:
             type: uuid
             safety: safe
-          lockDescriptors: set<ConjureLockDescriptor>
+          lockDescriptors: list<ConjureLockDescriptor>
           acquireTimeoutMs:
             type: integer
             safety: safe
           clientDescription:
             type: optional<string>
             safety: unsafe
+          metadata: optional<ConjureLockRequestMetadata>
       ConjureLockToken:
         fields:
           requestId:u}(jdX (00bacead92b2565926c6a60644ee7001dcabc21bjX Xtimelock-api/src/test/java/com/palantir/atlasdb/timelock/api/ConjureLockRequestTest.javajX addedjX KjX K jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FConjureLockRequestTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FConjureLockRequestTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FConjureLockRequestTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -0,0 +1,157 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock.api;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.conjure.java.lib.Bytes;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.UUID;
+import org.junit.Test;
+
+public class ConjureLockRequestTest {
+    private static final String BASE = "src/test/resources/conjure-lock-request-wire-format/";
+    private static final String LEGACY_CONJURE_LOCK_REQUEST_FILE = "legacy";
+    private static final String WITH_METADATA_FILE = "with-metadata";
+    private static final boolean REWRITE_JSON_BLOBS = false;
+
+    private static final ConjureLockDescriptor LOCK_1 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("abc")));
+    private static final ConjureLockDescriptor LOCK_2 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("def")));
+    private static final ConjureLockDescriptor LOCK_3 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("ghi")));
+    private static final ConjureLockDescriptor LOCK_4 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("jkl")));
+    private static final UUID REQUEST_ID = new UUID(1337, 42);
+    private static final int ACQUIRE_TIMEOUT_MS = 100;
+    private static final String CLIENT_DESCRIPTION = "client: test, thread: test";
+    private static final LegacyConjureLockRequest LEGACY_CONJURE_LOCK_REQUEST = LegacyConjureLockRequest.builder()
+            .requestId(REQUEST_ID)
+            .lockDescriptors(ImmutableSet.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4))
+            .acquireTimeoutMs(ACQUIRE_TIMEOUT_MS)
+            .clientDescription(CLIENT_DESCRIPTION)
+            .build();
+    private static final ConjureLockRequest DEFAULT_CONJURE_LOCK_REQUEST = ConjureLockRequest.builder()
+            .requestId(REQUEST_ID)
+            .lockDescriptors(ImmutableList.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4))
+            .acquireTimeoutMs(ACQUIRE_TIMEOUT_MS)
+            .clientDescription(CLIENT_DESCRIPTION)
+            .build();
+
+    private static final byte[] BYTES_OLD = PtBytes.toBytes("old");
+    private static final byte[] BYTES_NEW = PtBytes.toBytes("new");
+    private static final byte[] BYTES_DELETED = PtBytes.toBytes("deleted");
+    private static final byte[] BYTES_CREATED = PtBytes.toBytes("created");
+    // The checksum on this does not have to be correct since the integrity check is performed by the server and not
+    // by Conjure itself
+    private static final ConjureLockRequestMetadata CONJURE_LOCK_REQUEST_METADATA = ConjureLockRequestMetadata.of(
+            ImmutableMap.of(
+                    0,
+                    ConjureChangeMetadata.unchanged(ConjureUnchangedChangeMetadata.of()),
+                    1,
+                    ConjureChangeMetadata.updated(
+                            ConjureUpdatedChangeMetadata.of(Bytes.from(BYTES_OLD), Bytes.from(BYTES_NEW))),
+                    2,
+                    ConjureChangeMetadata.deleted(ConjureDeletedChangeMetadata.of(Bytes.from(BYTES_DELETED))),
+                    3,
+                    ConjureChangeMetadata.created(ConjureCreatedChangeMetadata.of(Bytes.from(BYTES_CREATED)))),
+            ConjureLockDescriptorListChecksum.of(0, Bytes.from(PtBytes.toBytes("test-checksum-value"))));
+
+    // AtlasDB (Client) serializes and TimeLock (Server) deserializes ConjureLockRequest objects.
+    // These are the respective mappers used internally by Conjure.
+    private static final ObjectMapper SERIALIZATION_MAPPER =
+            ObjectMappers.newClientObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
+    private static final ObjectMapper DESERIALIZATION_MAPPER =
+            ObjectMappers.newServerObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
+    // This mapper is used to ensure that two JSONs are equal excluding indentation
+    private static final ObjectMapper VERIFYING_MAPPER = new ObjectMapper();
+
+    @Test
+    public void oldConjureLockRequestSerializesDeserializes() {
+        assertSerializedEquals(LEGACY_CONJURE_LOCK_REQUEST, LEGACY_CONJURE_LOCK_REQUEST_FILE);
+        assertDeserializedEquals(
+                LEGACY_CONJURE_LOCK_REQUEST_FILE, LEGACY_CONJURE_LOCK_REQUEST, LegacyConjureLockRequest.class);
+    }
+
+    @Test
+    public void absentMetadataSerializesDeserializes() {
+        // Because we use the Conjure configuration "excludeEmptyOptionals = true", we omit fields with empty optionals
+        // during serialization instead of setting them to null.
+        assertSerializedEquals(DEFAULT_CONJURE_LOCK_REQUEST, LEGACY_CONJURE_LOCK_REQUEST_FILE);
+        assertDeserializedEquals(
+                LEGACY_CONJURE_LOCK_REQUEST_FILE, DEFAULT_CONJURE_LOCK_REQUEST, ConjureLockRequest.class);
+    }
+
+    @Test
+    public void presentMetadataSerializesDeserializes() {
+        ConjureLockRequest requestWithMetadata = ConjureLockRequest.builder()
+                .from(DEFAULT_CONJURE_LOCK_REQUEST)
+                .metadata(CONJURE_LOCK_REQUEST_METADATA)
+                .build();
+        assertSerializedEquals(requestWithMetadata, WITH_METADATA_FILE);
+        assertDeserializedEquals(WITH_METADATA_FILE, requestWithMetadata, ConjureLockRequest.class);
+    }
+
+    @Test
+    public void newServerCanHandleMissingMetadata() {
+        assertDeserializedEquals(
+                LEGACY_CONJURE_LOCK_REQUEST_FILE, DEFAULT_CONJURE_LOCK_REQUEST, ConjureLockRequest.class);
+    }
+
+    @Test
+    public void oldServerCanHandlePresentMetadata() {
+        // Because we use the Conjure configuration "strictObjects = false", our Conjure objects actually ignore
+        // unknown properties, even on the server side.
+        assertDeserializedEquals(WITH_METADATA_FILE, LEGACY_CONJURE_LOCK_REQUEST, LegacyConjureLockRequest.class);
+    }
+
+    private static <T> void assertSerializedEquals(T object, String jsonFileName) {
+        try {
+            Path path = getJsonPath(jsonFileName);
+            if (REWRITE_JSON_BLOBS) {
+                SERIALIZATION_MAPPER.writeValue(path.toFile(), object);
+            }
+            String serialized = SERIALIZATION_MAPPER.writeValueAsString(object);
+            assertThat(VERIFYING_MAPPER.readTree(serialized))
+                    .as("Serialization yields semantically identical JSON representation")
+                    .isEqualTo(VERIFYING_MAPPER.readTree(Files.readString(path)));
+        } catch (IOException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private static <T> void assertDeserializedEquals(String jsonFileName, T object, Class<T> clazz) {
+        try {
+            assertThat(DESERIALIZATION_MAPPER.readValue(Files.readString(getJsonPath(jsonFileName)), clazz))
+                    .as("Deserialization yields identical object")
+                    .isEqualTo(object);
+        } catch (IOException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private static Path getJsonPath(String jsonFileName) {
+        return Paths.get(BASE, jsonFileName + ".json");
+    }
+}uR     }(jdX (4b6b7e1a40067dbc572e6bd05e38e2b7a38abef2jX Ztimelock-api/src/test/java/com/palantir/atlasdb/timelock/api/LegacyConjureLockRequest.javajX addedjX M
jX K jX M
jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FLegacyConjureLockRequest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FLegacyConjureLockRequest.javajX https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FLegacyConjureLockRequest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX Xk(  @@ -0,0 +1,266 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock.api;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonSetter;
+import com.fasterxml.jackson.annotation.Nulls;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.palantir.conjure.java.lib.internal.ConjureCollections;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.Safe;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.Unsafe;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.LinkedHashSet;
+import java.util.List;
+import java.util.Optional;
+import java.util.Set;
+import java.util.UUID;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+import javax.annotation.processing.Generated;
+
+// Copy of Conjure-generated file and prefixed with "Legcacy" to avoid conflicts
+@Unsafe
+@JsonDeserialize(builder = LegacyConjureLockRequest.Builder.class)
+@Generated("com.palantir.conjure.java.types.BeanGenerator")
+public final class LegacyConjureLockRequest {
+    private final UUID requestId;
+
+    private final Set<ConjureLockDescriptor> lockDescriptors;
+
+    private final int acquireTimeoutMs;
+
+    private final Optional<String> clientDescription;
+
+    private int memoizedHashCode;
+
+    private LegacyConjureLockRequest(
+            UUID requestId,
+            Set<ConjureLockDescriptor> lockDescriptors,
+            int acquireTimeoutMs,
+            Optional<String> clientDescription) {
+        validateFields(requestId, lockDescriptors, clientDescription);
+        this.requestId = requestId;
+        this.lockDescriptors = Collections.unmodifiableSet(lockDescriptors);
+        this.acquireTimeoutMs = acquireTimeoutMs;
+        this.clientDescription = clientDescription;
+    }
+
+    @JsonProperty("requestId")
+    @Safe
+    public UUID getRequestId() {
+        return this.requestId;
+    }
+
+    @JsonProperty("lockDescriptors")
+    public Set<ConjureLockDescriptor> getLockDescriptors() {
+        return this.lockDescriptors;
+    }
+
+    @JsonProperty("acquireTimeoutMs")
+    @Safe
+    public int getAcquireTimeoutMs() {
+        return this.acquireTimeoutMs;
+    }
+
+    @JsonProperty("clientDescription")
+    @Unsafe
+    public Optional<String> getClientDescription() {
+        return this.clientDescription;
+    }
+
+    @Override
+    public boolean equals(@Nullable Object other) {
+        return this == other
+                || (other instanceof LegacyConjureLockRequest && equalTo((LegacyConjureLockRequest) other));
+    }
+
+    private boolean equalTo(LegacyConjureLockRequest other) {
+        if (this.memoizedHashCode != 0
+                && other.memoizedHashCode != 0
+                && this.memoizedHashCode != other.memoizedHashCode) {
+            return false;
+        }
+        return this.requestId.equals(other.requestId)
+                && this.lockDescriptors.equals(other.lockDescriptors)
+                && this.acquireTimeoutMs == other.acquireTimeoutMs
+                && this.clientDescription.equals(other.clientDescription);
+    }
+
+    @Override
+    public int hashCode() {
+        int result = memoizedHashCode;
+        if (result == 0) {
+            int hash = 1;
+            hash = 31 * hash + this.requestId.hashCode();
+            hash = 31 * hash + this.lockDescriptors.hashCode();
+            hash = 31 * hash + this.acquireTimeoutMs;
+            hash = 31 * hash + this.clientDescription.hashCode();
+            result = hash;
+            memoizedHashCode = result;
+        }
+        return result;
+    }
+
+    @Override
+    @Unsafe
+    public String toString() {
+        return "OldConjureLockRequest{requestId: " + requestId + ", lockDescriptors: " + lockDescriptors
+                + ", acquireTimeoutMs: " + acquireTimeoutMs + ", clientDescription: " + clientDescription + '}';
+    }
+
+    private static void validateFields(
+            UUID requestId, Set<ConjureLockDescriptor> lockDescriptors, Optional<String> clientDescription) {
+        List<String> missingFields = null;
+        missingFields = addFieldIfMissing(missingFields, requestId, "requestId");
+        missingFields = addFieldIfMissing(missingFields, lockDescriptors, "lockDescriptors");
+        missingFields = addFieldIfMissing(missingFields, clientDescription, "clientDescription");
+        if (missingFields != null) {
+            throw new SafeIllegalArgumentException(
+                    "Some required fields have not been set", SafeArg.of("missingFields", missingFields));
+        }
+    }
+
+    private static List<String> addFieldIfMissing(List<String> prev, Object fieldValue, String fieldName) {
+        List<String> missingFields = prev;
+        if (fieldValue == null) {
+            if (missingFields == null) {
+                missingFields = new ArrayList<>(3);
+            }
+            missingFields.add(fieldName);
+        }
+        return missingFields;
+    }
+
+    public static Builder builder() {
+        return new Builder();
+    }
+
+    @Generated("com.palantir.conjure.java.types.BeanBuilderGenerator")
+    @JsonIgnoreProperties(ignoreUnknown = true)
+    public static final class Builder {
+        boolean _buildInvoked;
+
+        private @Safe UUID requestId;
+
+        private Set<ConjureLockDescriptor> lockDescriptors = new LinkedHashSet<>();
+
+        private @Safe int acquireTimeoutMs;
+
+        private Optional<@Unsafe String> clientDescription = Optional.empty();
+
+        private boolean _acquireTimeoutMsInitialized = false;
+
+        private Builder() {}
+
+        public Builder from(LegacyConjureLockRequest other) {
+            checkNotBuilt();
+            requestId(other.getRequestId());
+            lockDescriptors(other.getLockDescriptors());
+            acquireTimeoutMs(other.getAcquireTimeoutMs());
+            clientDescription(other.getClientDescription());
+            return this;
+        }
+
+        @JsonSetter("requestId")
+        public Builder requestId(@Nonnull @Safe UUID requestId) {
+            checkNotBuilt();
+            this.requestId = Preconditions.checkNotNull(requestId, "requestId cannot be null");
+            return this;
+        }
+
+        @JsonSetter(value = "lockDescriptors", nulls = Nulls.SKIP)
+        public Builder lockDescriptors(@Nonnull Iterable<ConjureLockDescriptor> lockDescriptors) {
+            checkNotBuilt();
+            this.lockDescriptors = ConjureCollections.newLinkedHashSet(
+                    Preconditions.checkNotNull(lockDescriptors, "lockDescriptors cannot be null"));
+            return this;
+        }
+
+        public Builder addAllLockDescriptors(@Nonnull Iterable<ConjureLockDescriptor> lockDescriptors) {
+            checkNotBuilt();
+            ConjureCollections.addAll(
+                    this.lockDescriptors,
+                    Preconditions.checkNotNull(lockDescriptors, "lockDescriptors cannot be null"));
+            return this;
+        }
+
+        public Builder lockDescriptors(ConjureLockDescriptor lockDescriptors) {
+            checkNotBuilt();
+            this.lockDescriptors.add(lockDescriptors);
+            return this;
+        }
+
+        @JsonSetter("acquireTimeoutMs")
+        public Builder acquireTimeoutMs(@Safe int acquireTimeoutMs) {
+            checkNotBuilt();
+            this.acquireTimeoutMs = acquireTimeoutMs;
+            this._acquireTimeoutMsInitialized = true;
+            return this;
+        }
+
+        @JsonSetter(value = "clientDescription", nulls = Nulls.SKIP)
+        public Builder clientDescription(@Nonnull Optional<@Unsafe String> clientDescription) {
+            checkNotBuilt();
+            this.clientDescription = Preconditions.checkNotNull(clientDescription, "clientDescription cannot be null");
+            return this;
+        }
+
+        public Builder clientDescription(@Nonnull @Unsafe String clientDescription) {
+            checkNotBuilt();
+            this.clientDescription =
+                    Optional.of(Preconditions.checkNotNull(clientDescription, "clientDescription cannot be null"));
+            return this;
+        }
+
+        private void validatePrimitiveFieldsHaveBeenInitialized() {
+            List<String> missingFields = null;
+            missingFields = addFieldIfMissing(missingFields, _acquireTimeoutMsInitialized, "acquireTimeoutMs");
+            if (missingFields != null) {
+                throw new SafeIllegalArgumentException(
+                        "Some required fields have not been set", SafeArg.of("missingFields", missingFields));
+            }
+        }
+
+        private static List<String> addFieldIfMissing(List<String> prev, boolean initialized, String fieldName) {
+            List<String> missingFields = prev;
+            if (!initialized) {
+                if (missingFields == null) {
+                    missingFields = new ArrayList<>(1);
+                }
+                missingFields.add(fieldName);
+            }
+            return missingFields;
+        }
+
+        public LegacyConjureLockRequest build() {
+            checkNotBuilt();
+            this._buildInvoked = true;
+            validatePrimitiveFieldsHaveBeenInitialized();
+            return new LegacyConjureLockRequest(requestId, lockDescriptors, acquireTimeoutMs, clientDescription);
+        }
+
+        private void checkNotBuilt() {
+            Preconditions.checkState(!_buildInvoked, "Build has already been called");
+        }
+    }
+}u}(jdX (e1b7813afcfedd61b6686b1bab138e5f151ea739jX Ltimelock-api/src/test/resources/conjure-lock-request-wire-format/legacy.jsonjX addedjX KjX K jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Flegacy.jsonjX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Flegacy.jsonjX https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Flegacy.json?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX @@ -0,0 +1,6 @@
+{
+  "requestId" : "00000000-0000-0539-0000-00000000002a",
+  "lockDescriptors" : [ "YWJj", "ZGVm", "Z2hp", "amts" ],
+  "acquireTimeoutMs" : 100,
+  "clientDescription" : "client: test, thread: test"
+}
\ No newline at end of fileu}(jdX (56e0e9f551398a56e8c56e758c6eab6f6d5a6072jX Stimelock-api/src/test/resources/conjure-lock-request-wire-format/with-metadata.jsonjX addedjX K%jX K jX K%jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fwith-metadata.jsonjX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fwith-metadata.jsonjX https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fwith-metadata.json?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -0,0 +1,37 @@
+{
+  "requestId" : "00000000-0000-0539-0000-00000000002a",
+  "lockDescriptors" : [ "YWJj", "ZGVm", "Z2hp", "amts" ],
+  "acquireTimeoutMs" : 100,
+  "clientDescription" : "client: test, thread: test",
+  "metadata" : {
+    "indexToChangeMetadata" : {
+      "0" : {
+        "type" : "unchanged",
+        "unchanged" : { }
+      },
+      "1" : {
+        "type" : "updated",
+        "updated" : {
+          "oldValue" : "b2xk",
+          "newValue" : "bmV3"
+        }
+      },
+      "2" : {
+        "type" : "deleted",
+        "deleted" : {
+          "oldValue" : "ZGVsZXRlZA=="
+        }
+      },
+      "3" : {
+        "type" : "created",
+        "created" : {
+          "newValue" : "Y3JlYXRlZA=="
+        }
+      }
+    },
+    "lockListChecksum" : {
+      "typeId" : 0,
+      "value" : "dGVzdC1jaGVja3N1bS12YWx1ZQ=="
+    }
+  }
+}
\ No newline at end of fileu}(jdX (1f6e9d1cfd2b610c706b7a74bd68abe9b14e9b05jX Wtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/AsyncTimelockServiceImpl.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.javajX https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX XV  @@ -48,6 +48,7 @@
 import com.palantir.lock.v2.TimestampAndPartition;
 import com.palantir.lock.v2.WaitForLocksRequest;
 import com.palantir.lock.v2.WaitForLocksResponse;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchStateUpdate;
 import com.palantir.lock.watch.LockWatchVersion;
 import com.palantir.timestamp.ManagedTimestampService;
@@ -101,7 +102,10 @@ public long getImmutableTimestamp() {
     @Override
     public ListenableFuture<LockResponseV2> lock(IdentifiedLockRequest request) {
         AsyncResult<Leased<LockToken>> result = lockService.lock(
-                request.getRequestId(), request.getLockDescriptors(), TimeLimit.of(request.getAcquireTimeoutMs()));
+                request.getRequestId(),
+                request.getLockDescriptors(),
+                TimeLimit.of(request.getAcquireTimeoutMs()),
+                request.getMetadata());
         lockLog.registerRequest(request, result);
         SettableFuture<LockResponseV2> response = SettableFuture.create();
         result.onComplete(() -> {
@@ -274,8 +278,9 @@ public <T> ValueAndLockWatchStateUpdate<T> runTask(Optional<LockWatchVersion> la
     }
 
     @Override
-    public void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token) {
-        lockService.getLockWatchingService().registerLock(locksTakenOut, token);
+    public void registerLock(
+            Set<LockDescriptor> locksTakenOut, LockToken token, Optional<LockRequestMetadata> metadata) {
+        lockService.getLockWatchingService().registerLock(locksTakenOut, token, metadata);
     }
 
     @Overrideu}(jdX (b8c7fe17976b2dba7ec9f678d87a104b61a8622djX Vtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/ConjureTimelockResource.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FConjureTimelockResource.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FConjureTimelockResource.javajX https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FConjureTimelockResource.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.timelock;
 
 import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Sets;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
@@ -68,9 +69,13 @@
 import com.palantir.lock.v2.RefreshLockResponseV2;
 import com.palantir.lock.v2.WaitForLocksRequest;
 import com.palantir.lock.v2.WaitForLocksResponse;
+import com.palantir.lock.watch.ConjureLockRequestMetadataUtils;
+import com.palantir.lock.watch.ConjureLockRequestMetadataUtils.ConjureMetadataConversionResult;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchVersion;
 import com.palantir.timestamp.TimestampRange;
 import com.palantir.tokens.auth.AuthHeader;
+import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.function.Function;
@@ -145,11 +150,19 @@ public ListenableFuture<LeaderTime> leaderTime(AuthHeader authHeader, String nam
     public ListenableFuture<ConjureLockResponse> lock(
             AuthHeader authHeader, String namespace, ConjureLockRequest request) {
         return handleExceptions(() -> {
+            List<LockDescriptor> lockDescriptors = fromConjureLockDescriptors(request.getLockDescriptors());
+            Optional<LockRequestMetadata> metadata = request.getMetadata()
+                    .map(conjureMetadata -> ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(
+                            ConjureMetadataConversionResult.builder()
+                                    .conjureMetadata(conjureMetadata)
+                                    .lockList(lockDescriptors)
+                                    .build()));
             IdentifiedLockRequest lockRequest = ImmutableIdentifiedLockRequest.builder()
-                    .lockDescriptors(fromConjureLockDescriptors(request.getLockDescriptors()))
+                    .lockDescriptors(lockDescriptors)
                     .clientDescription(request.getClientDescription())
                     .requestId(request.getRequestId())
                     .acquireTimeoutMs(request.getAcquireTimeoutMs())
+                    .metadata(metadata)
                     .build();
             ListenableFuture<LockResponseV2> tokenFuture =
                     forNamespace(namespace).lock(lockRequest);
@@ -182,12 +195,13 @@ public ListenableFuture<ConjureWaitForLocksResponse> waitForLocks(
         });
     }
 
-    private static Set<LockDescriptor> fromConjureLockDescriptors(Set<ConjureLockDescriptor> lockDescriptors) {
-        Set<LockDescriptor> descriptors = Sets.newHashSetWithExpectedSize(lockDescriptors.size());
+    private static List<LockDescriptor> fromConjureLockDescriptors(List<ConjureLockDescriptor> lockDescriptors) {
+        ImmutableList.Builder<LockDescriptor> descriptors =
+                ImmutableList.builderWithExpectedSize(lockDescriptors.size());
         for (ConjureLockDescriptor descriptor : lockDescriptors) {
             descriptors.add(ByteArrayLockDescriptor.of(descriptor.get().asNewByteArray()));
         }
-        return descriptors;
+        return descriptors.build();
     }
 
     @Overrideu}(jdX (f944cc9641be648a44b7330a56b77121bbc8abf0jX Ttimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/AsyncLockService.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javajX https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -23,6 +23,7 @@
 import com.palantir.lock.v2.LeaderTime;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.v2.RefreshLockResponseV2;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.io.Closeable;
@@ -117,7 +118,16 @@ private void scheduleExpiredLockReaper() {
     }
 
     public AsyncResult<Leased<LockToken>> lock(UUID requestId, Set<LockDescriptor> lockDescriptors, TimeLimit timeout) {
-        return heldLocks.getExistingOrAcquire(requestId, () -> acquireLocks(requestId, lockDescriptors, timeout));
+        return lock(requestId, lockDescriptors, timeout, Optional.empty());
+    }
+
+    public AsyncResult<Leased<LockToken>> lock(
+            UUID requestId,
+            Set<LockDescriptor> lockDescriptors,
+            TimeLimit timeout,
+            Optional<LockRequestMetadata> metadata) {
+        return heldLocks.getExistingOrAcquire(
+                requestId, () -> acquireLocks(requestId, lockDescriptors, timeout, metadata));
     }
 
     public AsyncResult<Leased<LockToken>> lockImmutableTimestamp(UUID requestId, long timestamp) {
@@ -137,9 +147,12 @@ public Optional<Long> getImmutableTimestamp() {
     }
 
     private AsyncResult<HeldLocks> acquireLocks(
-            UUID requestId, Set<LockDescriptor> lockDescriptors, TimeLimit timeout) {
+            UUID requestId,
+            Set<LockDescriptor> lockDescriptors,
+            TimeLimit timeout,
+            Optional<LockRequestMetadata> metadata) {
         OrderedLocks orderedLocks = locks.getAll(lockDescriptors);
-        return lockAcquirer.acquireLocks(requestId, orderedLocks, timeout);
+        return lockAcquirer.acquireLocks(requestId, orderedLocks, timeout, metadata);
     }
 
     private AsyncResult<Void> awaitLocks(UUID requestId, Set<LockDescriptor> lockDescriptors, TimeLimit timeout) {u}(jdX (3c957b003aa7c8f4101a6b55616b54707ad01da5jX Mtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/HeldLocks.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocks.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocks.javajX https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocks.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -21,7 +21,9 @@
 import com.palantir.common.time.NanoTime;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.LockRequestMetadata;
 import java.util.Collection;
+import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.function.Supplier;
@@ -60,18 +62,28 @@ public static HeldLocks create(
             UUID requestId,
             LeaderClock leaderClock,
             LockWatchingService lockWatchingService) {
+        return create(lockLog, acquiredLocks, requestId, leaderClock, lockWatchingService, Optional.empty());
+    }
+
+    public static HeldLocks create(
+            LockLog lockLog,
+            Collection<AsyncLock> acquiredLocks,
+            UUID requestId,
+            LeaderClock leaderClock,
+            LockWatchingService lockWatchingService,
+            Optional<LockRequestMetadata> metadata) {
         HeldLocks locks = new HeldLocks(
                 lockLog,
                 acquiredLocks,
                 requestId,
                 new LeaseExpirationTimer(() -> leaderClock.time().currentTime()),
                 lockWatchingService);
-        locks.registerLock();
+        locks.registerLock(metadata);
         return locks;
     }
 
-    private void registerLock() {
-        lockWatchingService.registerLock(descriptors.get(), token);
+    private void registerLock(Optional<LockRequestMetadata> metadata) {
+        lockWatchingService.registerLock(descriptors.get(), token, metadata);
     }
 
     /**u}(jdX (030591fe1a8a0d3b07402f1fac8d196fea900762jX Ptimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/LockAcquirer.javajX modifiedjX KjX KjX K	jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FLockAcquirer.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FLockAcquirer.javajX https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FLockAcquirer.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X0  @@ -17,9 +17,11 @@
 
 import com.google.common.base.Throwables;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingService;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.Optional;
 import java.util.UUID;
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.concurrent.TimeUnit;
@@ -46,9 +48,14 @@ public LockAcquirer(
     }
 
     public AsyncResult<HeldLocks> acquireLocks(UUID requestId, OrderedLocks locks, TimeLimit timeout) {
+        return acquireLocks(requestId, locks, timeout, Optional.empty());
+    }
+
+    public AsyncResult<HeldLocks> acquireLocks(
+            UUID requestId, OrderedLocks locks, TimeLimit timeout, Optional<LockRequestMetadata> metadata) {
         return new Acquisition(requestId, locks, timeout, lock -> lock.lock(requestId))
                 .execute()
-                .map(ignored -> HeldLocks.create(lockLog, locks.get(), requestId, leaderClock, lockWatcher));
+                .map(ignored -> HeldLocks.create(lockLog, locks.get(), requestId, leaderClock, lockWatcher, metadata));
     }
 
     public AsyncResult<Void> waitForLocks(UUID requestId, OrderedLocks locks, TimeLimit timeout) {u}(jdX (e57475bea484a97604fa999cf8ab4593fb78af9bjX Vtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLog.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLog.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLog.javajX https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLog.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X[  @@ -18,6 +18,7 @@
 
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchStateUpdate;
 import com.palantir.lock.watch.LockWatchVersion;
 import java.util.Optional;
@@ -29,7 +30,11 @@ public interface LockEventLog {
 
     <T> ValueAndLockWatchStateUpdate<T> runTask(Optional<LockWatchVersion> lastKnownVersion, Supplier<T> task);
 
-    void logLock(Set<LockDescriptor> locksTakenOut, LockToken lockToken);
+    default void logLock(Set<LockDescriptor> locksTakenOut, LockToken lockToken) {
+        logLock(locksTakenOut, lockToken, Optional.empty());
+    }
+
+    void logLock(Set<LockDescriptor> locksTakenOut, LockToken lockToken, Optional<LockRequestMetadata> metadata);
 
     void logUnlock(Set<LockDescriptor> locksUnlocked);
 u}(jdX (29d09ec24e5cd6807891a4f9fff38d0d568a681ejX Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImpl.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javajX https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -22,6 +22,7 @@
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchReferences.LockWatchReference;
 import com.palantir.lock.watch.LockWatchStateUpdate;
@@ -61,8 +62,9 @@ public synchronized <T> ValueAndLockWatchStateUpdate<T> runTask(
     }
 
     @Override
-    public synchronized void logLock(Set<LockDescriptor> locksTakenOut, LockToken lockToken) {
-        slidingWindow.add(LockEvent.builder(locksTakenOut, lockToken));
+    public synchronized void logLock(
+            Set<LockDescriptor> locksTakenOut, LockToken lockToken, Optional<LockRequestMetadata> metadata) {
+        slidingWindow.add(LockEvent.builder(locksTakenOut, lockToken, metadata));
     }
 
     @Overrideu}(jdX (d34c1794b33ad9b9490743a42f40f6bfe58edd2fjX ]timelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingService.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingService.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingService.javajX https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingService.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -19,6 +19,7 @@
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.client.LockWatchStarter;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchStateUpdate;
 import com.palantir.lock.watch.LockWatchVersion;
 import java.util.Optional;
@@ -30,7 +31,11 @@ public interface LockWatchingService extends LockWatchStarter {
 
     <T> ValueAndLockWatchStateUpdate<T> runTask(Optional<LockWatchVersion> lastKnownVersion, Supplier<T> task);
 
-    void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token);
+    default void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token) {
+        registerLock(locksTakenOut, token, Optional.empty());
+    }
+
+    void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token, Optional<LockRequestMetadata> metadata);
 
     void registerUnlock(Set<LockDescriptor> locksUnlocked);
 }u}(jdX (08876923395e82027205da60a8814a680cbfd019jX atimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javajX modifiedjX K6jX KjX K<jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javajX https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX Xa  @@ -22,9 +22,12 @@
 import com.google.common.collect.TreeRangeSet;
 import com.palantir.atlasdb.timelock.api.LockWatchRequest;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LeadershipId;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchReferences;
 import com.palantir.lock.watch.LockWatchReferences.LockWatchReference;
 import com.palantir.lock.watch.LockWatchStateUpdate;
@@ -34,12 +37,14 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.HashSet;
+import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.concurrent.locks.ReadWriteLock;
 import java.util.concurrent.locks.ReentrantReadWriteLock;
+import java.util.function.BiConsumer;
 import java.util.function.Consumer;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
@@ -104,8 +109,12 @@ public <T> ValueAndLockWatchStateUpdate<T> runTask(Optional<LockWatchVersion> la
     }
 
     @Override
-    public void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token) {
-        runIfDescriptorsMatchLockWatches(locksTakenOut, filteredLocks -> lockEventLog.logLock(filteredLocks, token));
+    public void registerLock(
+            Set<LockDescriptor> locksTakenOut, LockToken token, Optional<LockRequestMetadata> metadata) {
+        runIfDescriptorsMatchLockWatchesWithMetadata(
+                locksTakenOut,
+                metadata,
+                (filteredLocks, filteredMetadata) -> lockEventLog.logLock(filteredLocks, token, filteredMetadata));
     }
 
     @Override
@@ -147,16 +156,55 @@ private void logLockWatchEvent(LockWatches newWatches) {
 
     private void runIfDescriptorsMatchLockWatches(
             Set<LockDescriptor> unfiltered, Consumer<Set<LockDescriptor>> consumer) {
+        runIfDescriptorsMatchLockWatchesWithMetadata(
+                unfiltered, Optional.empty(), (lockDescriptors, unused) -> consumer.accept(lockDescriptors));
+    }
+
+    private void runIfDescriptorsMatchLockWatchesWithMetadata(
+            Set<LockDescriptor> unfilteredLocks,
+            Optional<LockRequestMetadata> unfilteredMetadata,
+            BiConsumer<Set<LockDescriptor>, Optional<LockRequestMetadata>> biConsumer) {
         watchesLock.readLock().lock();
         try {
             RangeSet<LockDescriptor> ranges = watches.get().ranges();
-            Set<LockDescriptor> filtered =
-                    unfiltered.stream().filter(ranges::contains).collect(Collectors.toSet());
-            if (!filtered.isEmpty()) {
-                consumer.accept(filtered);
+            Set<LockDescriptor> filteredLocks =
+                    unfilteredLocks.stream().filter(ranges::contains).collect(Collectors.toSet());
+            if (filteredLocks.isEmpty()) {
+                return;
             }
+            // Filtering metadata after deciding if we should even proceed might save us some computation
+            biConsumer.accept(
+                    filteredLocks,
+                    filterMetadataBasedOnFilteredLocks(unfilteredLocks, filteredLocks, unfilteredMetadata));
         } finally {
             watchesLock.readLock().unlock();
         }
     }
+
+    // For an efficient encoding, we expect that metadata is never attached to a lock descriptor that is not contained
+    // in the original request, so filtering metadata based on the already filtered locks is sufficient and even
+    // enforces this invariant. It is also cheaper than calling RangeSet::contains.
+    // We assert that the invariant holds for non-production code to catch any attempts of violating that invariant
+    // early.
+    @SuppressWarnings("BadAssert")
+    private static Optional<LockRequestMetadata> filterMetadataBasedOnFilteredLocks(
+            Set<LockDescriptor> unfilteredLocks,
+            Set<LockDescriptor> filteredLocks,
+            Optional<LockRequestMetadata> unfilteredMetadata) {
+        return unfilteredMetadata
+                .map(LockRequestMetadata::lockDescriptorToChangeMetadata)
+                .flatMap(unfilteredLockMetadata -> {
+                    Map<LockDescriptor, ChangeMetadata> filteredLockMetadata = KeyedStream.ofEntries(
+                                    unfilteredLockMetadata.entrySet().stream())
+                            .filterKeys(lockDescriptor -> {
+                                assert unfilteredLocks.contains(lockDescriptor) : "Unknown lock descriptor in metadata";
+                                return filteredLocks.contains(lockDescriptor);
+                            })
+                            .collectToMap();
+                    if (filteredLockMetadata.isEmpty()) {
+                        return Optional.empty();
+                    }
+                    return Optional.of(LockRequestMetadata.of(filteredLockMetadata));
+                });
+    }
 }u}(jdX (2b250b7d920d2bfcc7d3ce072eaed3742cfb4a00jX etimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImplTest.javajX modifiedjX KGjX KjX KUjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X'  @@ -33,11 +33,14 @@
 import com.palantir.atlasdb.timelock.lock.ExclusiveLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocks;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.AtlasCellLockDescriptor;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.ChangeMetadata;
 import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
 import com.palantir.lock.watch.LockWatchReferences.LockWatchReference;
@@ -69,6 +72,7 @@ public class LockWatchingServiceImplTest {
     private static final LockDescriptor ROW_DESCRIPTOR = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), ROW);
     private static final AsyncLock LOCK = new ExclusiveLock(ROW_DESCRIPTOR);
     private static final AsyncLock LOCK_2 = new ExclusiveLock(descriptorForOtherTable());
+    private static final ChangeMetadata DUMMY_METADATA = ChangeMetadata.unchanged();
 
     private final HeldLocksCollection locks = mock(HeldLocksCollection.class);
     private final LockWatchingService lockWatcher = new LockWatchingServiceImpl(LOG_ID, locks);
@@ -148,10 +152,11 @@ public void watchExactRowLockWatchLogsHeldLocksInRange() {
         lockWatcher.startWatching(request);
 
         Set<LockDescriptor> cellDescriptor = ImmutableSet.of(CELL_DESCRIPTOR);
-        lockWatcher.registerLock(cellDescriptor, TOKEN);
+        lockWatcher.registerLock(cellDescriptor, TOKEN, createMetadataForLocks(cellDescriptor));
 
         assertLoggedEvents(ImmutableList.of(
-                createdEvent(request.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)), lockEvent(cellDescriptor)));
+                createdEvent(request.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
+                lockEvent(cellDescriptor, createMetadataForLocks(cellDescriptor))));
     }
 
     @Test
@@ -232,10 +237,12 @@ public void exactCellWatchMatchesExactDescriptorOnly() {
         lockWatcher.startWatching(request);
 
         ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, cellSuffixDescriptor);
-        lockWatcher.registerLock(locks, TOKEN);
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
 
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(CELL_DESCRIPTOR);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
-                createdEvent(request.getReferences(), ImmutableSet.of()), lockEvent(ImmutableSet.of(CELL_DESCRIPTOR)));
+                createdEvent(request.getReferences(), ImmutableSet.of()),
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -246,11 +253,12 @@ public void exactRowWatchMatchesCellAndRowDescriptors() {
         lockWatcher.startWatching(rowRequest);
 
         ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR);
-        lockWatcher.registerLock(locks, TOKEN);
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
 
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(rowRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
-                lockEvent(ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR)));
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -263,11 +271,12 @@ public void rowPrefixWatchMatchesSuffixes() {
         lockWatcher.startWatching(prefixRequest);
 
         ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR, notPrefixDescriptor);
-        lockWatcher.registerLock(locks, TOKEN);
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
 
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(prefixRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
-                lockEvent(ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR)));
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -289,11 +298,13 @@ public void rowRangeWatchTest() {
 
         ImmutableSet<LockDescriptor> locks =
                 ImmutableSet.of(cellInRange, cellOutOfRange, rowInRange, rowInRange2, rowOutOfRange);
-        lockWatcher.registerLock(locks, TOKEN);
 
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
+
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(cellInRange, rowInRange, rowInRange2);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(rangeRequest.getReferences(), ImmutableSet.of()),
-                lockEvent(ImmutableSet.of(cellInRange, rowInRange, rowInRange2)));
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -308,11 +319,13 @@ public void entireTableWatchTest() {
 
         ImmutableSet<LockDescriptor> locks =
                 ImmutableSet.of(CELL_DESCRIPTOR, cellOutOfRange, rowInRange, rowOutOfRange);
-        lockWatcher.registerLock(locks, TOKEN);
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
 
+        ImmutableSet<LockDescriptor> expectedFilteredLocks =
+                ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR, rowInRange);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(tableRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
-                lockEvent(ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR, rowInRange)));
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -329,12 +342,51 @@ public void unlockWithoutLockTest() {
         assertLoggedEvents(expectedEvents);
     }
 
+    @Test
+    public void sparseMetadataIsFiltered() {
+        LockDescriptor cellOutOfRange = AtlasCellLockDescriptor.of(TABLE_2.getQualifiedName(), ROW, ROW);
+        LockDescriptor rowInRange = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), ROW);
+        LockDescriptor rowOutOfRange = AtlasRowLockDescriptor.of(TABLE_2.getQualifiedName(), ROW);
+
+        LockWatchRequest tableRequest = tableRequest();
+        lockWatcher.startWatching(tableRequest);
+
+        ImmutableSet<LockDescriptor> locks =
+                ImmutableSet.of(CELL_DESCRIPTOR, cellOutOfRange, rowInRange, rowOutOfRange);
+        lockWatcher.registerLock(
+                locks, TOKEN, createMetadataForLocks(ImmutableSet.of(CELL_DESCRIPTOR, cellOutOfRange)));
+
+        ImmutableSet<LockDescriptor> expectedFilteredLocks =
+                ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR, rowInRange);
+        List<LockWatchEvent> expectedEvents = ImmutableList.of(
+                createdEvent(tableRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(ImmutableSet.of(CELL_DESCRIPTOR))));
+        assertLoggedEvents(expectedEvents);
+    }
+
+    @Test
+    public void metadataIsRemovedIfMapEmptyAfterFiltering() {
+        LockDescriptor rowOutOfRange = AtlasRowLockDescriptor.of(TABLE_2.getQualifiedName(), ROW);
+
+        LockWatchRequest tableRequest = tableRequest();
+        lockWatcher.startWatching(tableRequest);
+
+        ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, rowOutOfRange);
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(ImmutableSet.of(rowOutOfRange)));
+
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(CELL_DESCRIPTOR);
+        List<LockWatchEvent> expectedEvents = ImmutableList.of(
+                createdEvent(tableRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
+                lockEvent(expectedFilteredLocks, Optional.empty()));
+        assertLoggedEvents(expectedEvents);
+    }
+
     private LockWatchEvent createdEvent(Set<LockWatchReference> references, Set<LockDescriptor> descriptors) {
         return LockWatchCreatedEvent.builder(references, descriptors).build(sequenceCounter++);
     }
 
-    private LockWatchEvent lockEvent(Set<LockDescriptor> lockDescriptors) {
-        return LockEvent.builder(lockDescriptors, TOKEN).build(sequenceCounter++);
+    private LockWatchEvent lockEvent(Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {
+        return LockEvent.builder(lockDescriptors, TOKEN, metadata).build(sequenceCounter++);
     }
 
     private LockWatchEvent unlockEvent(Set<LockDescriptor> lockDescriptors) {
@@ -357,6 +409,11 @@ private static LockDescriptor descriptorForOtherTable() {
         return AtlasRowLockDescriptor.of(TABLE_2.getQualifiedName(), ROW);
     }
 
+    private static Optional<LockRequestMetadata> createMetadataForLocks(Set<LockDescriptor> lockDescriptors) {
+        return Optional.of(LockRequestMetadata.of(
+                KeyedStream.of(lockDescriptors).map(_unused -> DUMMY_METADATA).collectToMap()));
+    }
+
     private void assertLoggedEvents(List<LockWatchEvent> expectedEvents) {
         LockWatchStateUpdate update = lockWatcher.getWatchStateUpdate(Optional.of(LockWatchVersion.of(LOG_ID, -1L)));
         List<LockWatchEvent> events = UpdateVisitors.assertSuccess(update).events();u}(jdX (15264463d051884bdaed57931b81becc7a3a36a3jX ftimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataTest.javajX addedjX KjX K jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X   @@ -0,0 +1,168 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatException;
+import static org.assertj.core.api.Assertions.fail;
+
+import com.codahale.metrics.MetricRegistry;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.atlasdb.futures.AtlasFutures;
+import com.palantir.atlasdb.timelock.api.ConjureIdentifiedVersion;
+import com.palantir.atlasdb.timelock.api.ConjureStartTransactionsRequest;
+import com.palantir.atlasdb.timelock.api.ConjureStartTransactionsResponse;
+import com.palantir.atlasdb.timelock.api.LockWatchRequest;
+import com.palantir.atlasdb.timelock.lock.AsyncLockService;
+import com.palantir.atlasdb.timelock.lock.LockLog;
+import com.palantir.lock.AtlasRowLockDescriptor;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.client.IdentifiedLockRequest;
+import com.palantir.lock.client.ImmutableIdentifiedLockRequest;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockRequestMetadata;
+import com.palantir.lock.watch.LockWatchEvent;
+import com.palantir.lock.watch.LockWatchReferences;
+import com.palantir.lock.watch.LockWatchStateUpdate;
+import com.palantir.timestamp.InMemoryTimestampService;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.UUID;
+import java.util.concurrent.ExecutionException;
+import java.util.concurrent.ScheduledExecutorService;
+import org.jmock.lib.concurrent.DeterministicScheduler;
+import org.junit.Before;
+import org.junit.Test;
+
+public class AsyncTimeLockServiceMetadataTest {
+    private static final String WATCHED_TABLE_NAME = "watched-table";
+    private static final LockDescriptor WATCHED_LOCK =
+            AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, PtBytes.toBytes("lock1"));
+    private static final Map<LockDescriptor, ChangeMetadata> ALL_WATCHED_LOCKS_WITH_METADATA =
+            ImmutableMap.of(WATCHED_LOCK, ChangeMetadata.updated(PtBytes.toBytes("old"), PtBytes.toBytes("new")));
+    private static final String UNWATCHED_TABLE_NAME = "a-random-unwatched-table";
+    private static final LockDescriptor UNWATCHED_LOCK =
+            AtlasRowLockDescriptor.of(UNWATCHED_TABLE_NAME, PtBytes.toBytes("lock1"));
+    private static final IdentifiedLockRequest WATCHED_LOCK_REQUEST_WITH_METADATA =
+            standardRequestWithMetadata(ALL_WATCHED_LOCKS_WITH_METADATA);
+
+    private final LockLog lockLog = new LockLog(new MetricRegistry(), () -> 10000L);
+    private final ScheduledExecutorService scheduledExecutorService = new DeterministicScheduler();
+    private final AsyncLockService asyncLockService =
+            AsyncLockService.createDefault(lockLog, scheduledExecutorService, scheduledExecutorService);
+    private final AsyncTimelockServiceImpl timeLockService =
+            new AsyncTimelockServiceImpl(asyncLockService, new InMemoryTimestampService(), lockLog);
+    private final ConjureStartTransactionsRequest startTransactionsRequestWithInitialVersion =
+            ConjureStartTransactionsRequest.builder()
+                    .requestId(UUID.randomUUID())
+                    .lastKnownVersion(ConjureIdentifiedVersion.of(
+                            asyncLockService.leaderTime().id().id(), 0))
+                    .numTransactions(1)
+                    .requestorId(UUID.randomUUID())
+                    .build();
+
+    @Before
+    public void setup() {
+        timeLockService.startWatching(
+                LockWatchRequest.of(ImmutableSet.of(LockWatchReferences.entireTable(WATCHED_TABLE_NAME))));
+    }
+
+    @Test
+    public void absentMetadataIsPassedThrough() {
+        // this will create a lock request for 4 lock descriptors, but with absent metadata
+        IdentifiedLockRequest requestWithoutMetadata = ImmutableIdentifiedLockRequest.copyOf(
+                        standardRequestWithMetadata(ALL_WATCHED_LOCKS_WITH_METADATA))
+                .withMetadata(Optional.empty());
+        timeLockService.lock(requestWithoutMetadata);
+
+        assertThat(getAllLockEventsMetadata()).containsExactly(Optional.empty());
+    }
+
+    @Test
+    public void metadataIsPassedThroughForWatchedTable() {
+        timeLockService.lock(WATCHED_LOCK_REQUEST_WITH_METADATA);
+
+        assertThat(getAllLockEventsMetadata())
+                .containsExactly(Optional.of(LockRequestMetadata.of(ALL_WATCHED_LOCKS_WITH_METADATA)));
+    }
+
+    // This test is trivial for our current metadata constraints (metadata is only allowed for locks
+    // that are part of the original request), but we would also want this behavior if the constraints weren't there
+    @Test
+    public void noLockEventIsPublishedIfNothingIsWatched() {
+        IdentifiedLockRequest mixedRequest = standardRequestWithMetadata(ImmutableMap.of(
+                UNWATCHED_LOCK, ChangeMetadata.updated(PtBytes.toBytes("bla"), PtBytes.toBytes("blabla"))));
+        timeLockService.lock(mixedRequest);
+
+        assertThat(getAllLockEventsMetadata()).isEmpty();
+    }
+
+    // This test verifies that future developers are alerted when they break the metadata invariant by trying to pass
+    // metadata that is not attached to a lock descriptor that is part of the original request.
+    @Test
+    public void cannotPassDownMetadataForUnknownLockDescriptors() {
+        IdentifiedLockRequest goodRequest =
+                standardRequestWithMetadata(ImmutableMap.of(WATCHED_LOCK, ChangeMetadata.unchanged()));
+        IdentifiedLockRequest badRequest = ImmutableIdentifiedLockRequest.builder()
+                .from(goodRequest)
+                .metadata(LockRequestMetadata.of(
+                        ImmutableMap.of(StringLockDescriptor.of("some-random-lock"), ChangeMetadata.unchanged())))
+                .build();
+        assertThatException()
+                .isThrownBy(() -> timeLockService.lock(badRequest).get())
+                .isInstanceOf(ExecutionException.class)
+                .havingCause()
+                .isInstanceOf(AssertionError.class)
+                .withMessage("Unknown lock descriptor in metadata");
+    }
+
+    private List<Optional<LockRequestMetadata>> getAllLockEventsMetadata() {
+        return LockWatchIntegrationTestUtilities.extractMetadata(getAllLockWatchEvents());
+    }
+
+    private List<LockWatchEvent> getAllLockWatchEvents() {
+        ListenableFuture<ConjureStartTransactionsResponse> responseFuture =
+                timeLockService.startTransactionsWithWatches(startTransactionsRequestWithInitialVersion);
+        return AtlasFutures.getUnchecked(responseFuture)
+                .getLockWatchUpdate()
+                .accept(AssertSuccessVisitor.INSTANCE)
+                .events();
+    }
+
+    private static IdentifiedLockRequest standardRequestWithMetadata(Map<LockDescriptor, ChangeMetadata> metadata) {
+        return IdentifiedLockRequest.of(metadata.keySet(), 1000, "testClient", LockRequestMetadata.of(metadata));
+    }
+
+    private enum AssertSuccessVisitor implements LockWatchStateUpdate.Visitor<LockWatchStateUpdate.Success> {
+        INSTANCE;
+
+        @Override
+        public LockWatchStateUpdate.Success visit(LockWatchStateUpdate.Success success) {
+            return success;
+        }
+
+        @Override
+        public LockWatchStateUpdate.Success visit(LockWatchStateUpdate.Snapshot snapshot) {
+            return fail("Unexpected snapshot");
+        }
+    }
+}u}(jdX (3dfb5b7f1909e36d9a30ffc83f18e7231000c611jX ctimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchEventIntegrationTest.javajX modifiedjX K<jX K jX K<jX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX XM  @@ -40,9 +40,15 @@
 import com.palantir.atlasdb.transaction.impl.PreCommitConditions;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.lock.AtlasCellLockDescriptor;
+import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.v2.ImmutableLockRequest;
+import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.v2.LockResponse;
+import com.palantir.lock.watch.ChangeMetadata;
 import com.palantir.lock.watch.CommitUpdate;
 import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
 import com.palantir.lock.watch.LockWatchReferences;
@@ -54,6 +60,7 @@
 import com.palantir.timelock.config.PaxosInstallConfiguration;
 import java.nio.charset.StandardCharsets;
 import java.util.Collection;
+import java.util.List;
 import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
@@ -251,6 +258,34 @@ public void leaderElectionDuringTransactionCausesTransactionToFailRetriably() {
                 .doesNotThrowAnyException();
     }
 
+    @Test
+    public void absentMetadataIsVisibleToTransaction() {
+        LockRequest requestWithoutMetadata = createTestLockRequest(
+                ImmutableSet.of(AtlasRowLockDescriptor.of(TABLE_REF.getQualifiedName(), ROW)), Optional.empty());
+        assertThat(lockAndGetEventMetadataFromLockWatchLog(requestWithoutMetadata))
+                .isEmpty();
+    }
+
+    @Test
+    public void nonEmptyMetadataIsVisibleToTransactionForWatchedTable() {
+        LockDescriptor lock1 =
+                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_1.getRowName(), CELL_1.getColumnName());
+        LockDescriptor lock2 =
+                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_2.getRowName(), CELL_2.getColumnName());
+        LockDescriptor lock3 =
+                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_3.getRowName(), CELL_3.getColumnName());
+        LockDescriptor lock4 =
+                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_4.getRowName(), CELL_4.getColumnName());
+        LockRequestMetadata metadata = LockRequestMetadata.of(ImmutableMap.of(
+                lock1, ChangeMetadata.created(DATA_1),
+                lock2, ChangeMetadata.deleted(DATA_2),
+                lock3, ChangeMetadata.unchanged(),
+                lock4, ChangeMetadata.updated(DATA_3, DATA_4)));
+        LockRequest requestWithMetadata =
+                createTestLockRequest(ImmutableSet.of(lock1, lock2, lock3, lock4), Optional.of(metadata));
+        assertThat(lockAndGetEventMetadataFromLockWatchLog(requestWithMetadata)).contains(metadata);
+    }
+
     private Runnable performWriteTransactionThatBlocksAfterLockingCells() {
         CountDownLatch endOfTest = new CountDownLatch(1);
         CountDownLatch inCommitBlock = new CountDownLatch(1);
@@ -359,6 +394,31 @@ private Set<LockDescriptor> getDescriptors(TableReference tableRef, Cell... cell
                 .collect(Collectors.toSet());
     }
 
+    private Optional<LockRequestMetadata> lockAndGetEventMetadataFromLockWatchLog(LockRequest lockRequest) {
+        LockWatchVersion currentVersion = getCurrentVersion();
+        LockResponse response = txnManager.getTimelockService().lock(lockRequest);
+        // We need to clean up the lock, otherwise it will be held forever (the TimeLock cluster is static)!
+        txnManager.getTimelockService().unlock(ImmutableSet.of(response.getToken()));
+        OpenTransaction newTxn = startSingleTransaction();
+        List<LockWatchEvent> lockWatchEvents =
+                getUpdateForTransactions(Optional.of(currentVersion), newTxn).events();
+        newTxn.abort();
+        List<Optional<LockRequestMetadata>> metadataList =
+                LockWatchIntegrationTestUtilities.extractMetadata(lockWatchEvents);
+        assertThat(metadataList).hasSize(1);
+        return metadataList.get(0);
+    }
+
+    private LockRequest createTestLockRequest(
+            Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {
+        return ImmutableLockRequest.builder()
+                .lockDescriptors(lockDescriptors)
+                .clientDescription("test-client")
+                .acquireTimeoutMs(100)
+                .metadata(metadata)
+                .build();
+    }
+
     private Set<LockDescriptor> extractDescriptorsFromUpdate(CommitUpdate commitUpdate) {
         return filterDescriptors(commitUpdate.accept(new CommitUpdate.Visitor<>() {
             @Overrideu}(jdX (a6850ec52c43c8d5ddc73b6a2c24f75bf3d70e64jX gtimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchIntegrationTestUtilities.javajX modifiedjX KjX K jX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchIntegrationTestUtilities.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchIntegrationTestUtilities.javajX https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchIntegrationTestUtilities.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX XD	  @@ -31,6 +31,7 @@
 import com.palantir.atlasdb.transaction.api.PreCommitCondition;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
 import com.palantir.lock.watch.LockWatchReferences;
@@ -43,6 +44,7 @@
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.function.BiFunction;
 import java.util.function.Predicate;
+import java.util.stream.Collectors;
 import org.awaitility.Awaitility;
 
 public final class LockWatchIntegrationTestUtilities {
@@ -105,6 +107,14 @@ public static LockWatchManagerInternal extractInternalLockWatchManager(Transacti
         return (LockWatchManagerInternal) txnManager.getLockWatchManager();
     }
 
+    public static List<Optional<LockRequestMetadata>> extractMetadata(List<LockWatchEvent> lockWatchEvents) {
+        return lockWatchEvents.stream()
+                .map(event -> event.accept(LockEventVisitor.INSTANCE))
+                .flatMap(Optional::stream)
+                .map(LockEvent::metadata)
+                .collect(Collectors.toList());
+    }
+
     public static TransactionManager createTransactionManager(
             double validationProbability, TestableTimelockCluster timelockCluster, String namespace) {
         return TimeLockTestUtils.createTransactionManager(
@@ -190,6 +200,25 @@ public Boolean visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
         }
     }
 
+    private enum LockEventVisitor implements LockWatchEvent.Visitor<Optional<LockEvent>> {
+        INSTANCE;
+
+        @Override
+        public Optional<LockEvent> visit(LockEvent lockEvent) {
+            return Optional.of(lockEvent);
+        }
+
+        @Override
+        public Optional<LockEvent> visit(UnlockEvent unlockEvent) {
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<LockEvent> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
+            return Optional.empty();
+        }
+    }
+
     /**
      * {@link PreCommitCondition} is actually run several times throughout a transaction - namely, before any read
      * if this is configured. When run at these times, the start timestamp is passed in. However, when the conditionuu     }(jdX (4a70d424c5e4d208920397fec5510c40d956832bjX Ztimelock-server/src/test/java/com/palantir/atlasdb/timelock/lock/AsyncLockServiceTest.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -73,6 +73,7 @@ public class AsyncLockServiceTest {
     @Before
     public void before() {
         when(acquirer.acquireLocks(any(), any(), any())).thenReturn(new AsyncResult<>());
+        when(acquirer.acquireLocks(any(), any(), any(), any())).thenReturn(new AsyncResult<>());
         when(acquirer.waitForLocks(any(), any(), any())).thenReturn(new AsyncResult<>());
         when(locks.getAll(any())).thenReturn(OrderedLocks.fromSingleLock(newLock()));
         when(immutableTimestampTracker.getImmutableTimestamp()).thenReturn(Optional.empty());
@@ -87,7 +88,7 @@ public void passesOrderedLocksToAcquirer() {
 
         lockService.lock(REQUEST_ID, descriptors, DEADLINE);
 
-        verify(acquirer).acquireLocks(REQUEST_ID, expected, DEADLINE);
+        verify(acquirer).acquireLocks(REQUEST_ID, expected, DEADLINE, Optional.empty());
     }
 
     @Test
@@ -107,7 +108,7 @@ public void doesNotAcquireDuplicateRequests() {
         lockService.lock(REQUEST_ID, descriptors, DEADLINE);
         lockService.lock(REQUEST_ID, descriptors, DEADLINE);
 
-        verify(acquirer, times(1)).acquireLocks(any(), any(), any());
+        verify(acquirer, times(1)).acquireLocks(any(), any(), any(), any());
         verifyNoMoreInteractions(acquirer);
     }
 
@@ -155,7 +156,7 @@ public void reaperDoesNotDieIfItEncountersAnException() {
     public void propagatesTimeoutExceptionIfRequestTimesOut() {
         AsyncResult<HeldLocks> timedOutResult = new AsyncResult<>();
         timedOutResult.timeout();
-        when(acquirer.acquireLocks(any(), any(), any())).thenReturn(timedOutResult);
+        when(acquirer.acquireLocks(any(), any(), any(), any())).thenReturn(timedOutResult);
 
         AsyncResult<?> result = lockService.lock(REQUEST_ID, descriptors(LOCK_A), DEADLINE);
 u}(jdX (4b328d3f0757723e1c47adf5e7cc0a4f9aa41060jX ]timelock-server/src/test/java/com/palantir/atlasdb/timelock/lock/HeldLocksCollectionTest.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocksCollectionTest.javajX https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocksCollectionTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocksCollectionTest.java?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X  @@ -32,6 +32,7 @@
 import com.palantir.lock.v2.Lease;
 import com.palantir.lock.v2.LockToken;
 import java.time.Duration;
+import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.atomic.AtomicLong;
@@ -188,7 +189,7 @@ public void lockWatchingServiceIsUpdatedAfterLockIsCreatedAndReaped() {
         AsyncResult<Leased<LockToken>> asyncResult = heldLocksCollection.getExistingOrAcquire(REQUEST_ID, () -> result);
         result.complete(heldLocksForId(REQUEST_ID));
         verify(lockWatcher)
-                .registerLock(ImmutableSet.of(LOCK_DESCRIPTOR), result.get().getToken());
+                .registerLock(ImmutableSet.of(LOCK_DESCRIPTOR), result.get().getToken(), Optional.empty());
 
         Lease lease = asyncResult.get().lease();
 
@@ -206,7 +207,7 @@ public void lockWatchingServiceIsUpdatedAfterLockIsCreatedAndUnlocked() {
         heldLocksCollection.getExistingOrAcquire(REQUEST_ID, () -> result);
         result.complete(heldLocksForId(REQUEST_ID));
         verify(lockWatcher)
-                .registerLock(ImmutableSet.of(LOCK_DESCRIPTOR), result.get().getToken());
+                .registerLock(ImmutableSet.of(LOCK_DESCRIPTOR), result.get().getToken(), Optional.empty());
 
         heldLocksCollection.unlock(ImmutableSet.of(LockToken.of(REQUEST_ID)));
         verify(lockWatcher).registerUnlock(ImmutableSet.of(LOCK_DESCRIPTOR));u}(jdX (9f1fb8e536888de78071bd067b317dbf60414a85jX 
versions.lockjX modifiedjX KjX KjX K
jX _https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/versions.lockjX ^https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/versions.lockjX qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X	  @@ -45,13 +45,13 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f2947442)
+com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f994935f)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
-com.google.guava:guava:31.1-jre (48 constraints: a337bcb3)
+com.google.guava:guava:32.1.1-jre (48 constraints: 03383c24)
 com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava (1 constraints: bd17c918)
-com.google.j2objc:j2objc-annotations:1.3 (1 constraints: b809eda0)
+com.google.j2objc:j2objc-annotations:2.8 (1 constraints: be09f5a0)
 com.google.protobuf:protobuf-java:3.21.9 (1 constraints: 4105453b)
 com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4 (1 constraints: 350f7769)
 com.googlecode.json-simple:json-simple:1.1 (1 constraints: 320f7469)
@@ -94,7 +94,7 @@ com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 cons
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
 com.palantir.docker.proxy:docker-proxy-rule-core:1.6.0 (2 constraints: 161ab906)
 com.palantir.docker.proxy:docker-proxy-rule-junit4:1.6.0 (1 constraints: 09050236)
-com.palantir.goethe:goethe:0.9.0 (1 constraints: 0b050636)
+com.palantir.goethe:goethe:0.11.0 (1 constraints: 3405263b)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
 com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
@@ -225,7 +225,7 @@ org.assertj:assertj-guava:3.24.2 (1 constraints: 3d05473b)
 org.awaitility:awaitility:4.2.0 (2 constraints: c71a893b)
 org.caffinitas.ohc:ohc-core:0.3.4 (1 constraints: 950f6988)
 org.checkerframework:checker-compat-qual:2.5.5 (2 constraints: 1f1d1717)
-org.checkerframework:checker-qual:3.32.0 (3 constraints: 6c2607e2)
+org.checkerframework:checker-qual:3.33.0 (3 constraints: 6f2678e2)
 org.clojure:clojure:1.8.0 (1 constraints: 0b050836)
 org.codehaus.groovy:groovy:2.5.14 (23 constraints: b55185ba)
 org.codehaus.groovy:groovy-cli-picocli:2.5.14 (5 constraints: d54e9017)u}(jdX (d701bfa52ce6217e8aa4eee2d0b14afcd17bce6ajX versions.propsjX modifiedjX KjX KjX KjX `https://github.com/palantir/atlasdb/blob/34c0b2546d2418b494455534e99a6e60e5f05058/versions.propsjX _https://github.com/palantir/atlasdb/raw/34c0b2546d2418b494455534e99a6e60e5f05058/versions.propsjX rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=34c0b2546d2418b494455534e99a6e60e5f05058jX X)  @@ -17,7 +17,7 @@ com.google.dagger:* = 2.44.1
 com.google.devtools.ksp:symbol-processing-api = 1.5.21-1.0.0-beta07
 com.google.errorprone:* = 2.10.0 # upgrading to 2.11.0 is blocked by a google bug
 com.google.errorprone:error_prone_annotations = 2.10.0
-com.google.guava:guava = 31.1-jre
+com.google.guava:guava = 32.1.1-jre
 com.google.protobuf:* = 3.21.9
 com.googlecode.protobuf-java-format:* = 1.4
 com.lmax:disruptor = 3.4.2
@@ -30,7 +30,7 @@ com.palantir.conjure:conjure = 4.36.0
 com.palantir.dialogue:* = 3.78.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
-com.palantir.goethe:* = 0.9.0
+com.palantir.goethe:* = 0.11.0
 com.palantir.nylon:* = 0.3.0
 com.palantir.refreshable:refreshable = 2.2.0
 com.palantir.safe-logging:* = 3.2.0ueu(0d1f5821b2eb2aef8400177aa48c06623074a687}(sha(0d1f5821b2eb2aef8400177aa48c06623074a687node_idEC_kwDOAjP5fdoAKDBkMWY1ODIxYjJlYjJhZWY4NDAwMTc3YWE0OGMwNjYyMzA3NGE2ODccommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-22T22:46:57Zu	committer}(j\ Jeremy Kongj\ jkong@palantir.comj\ 2023-02-22T22:46:57Zumessage
la campanellatree}(j\ (fa62721c2db70c236bf0f3ce27eb09027f319b3burl`https://api.github.com/repos/palantir/atlasdb/git/trees/fa62721c2db70c236bf0f3ce27eb09027f319b3buj\ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0d1f5821b2eb2aef8400177aa48c06623074a687
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEuTY+4bHE452z2GUfsC5B2upnoZgFAmP2m2EACgkQsC5B2upn
oZjSQQf+IHQN2jp1LuIoen8NGasisq9C3/wDVDjpEL2OrdTm95WKIt3S7NwBPcDT
Rem2zTyEXKQdxrj/Z5e7PmOB+2KblpEs3OjYzIydLg4UOZhx569CRa1lXlEz+8Nr
qu7dU97b9K0VS45j2StnM2Bgis3e3nRyPStLI/VM+exv8JbWll2+KgmbvwU8BVjq
MP2mc3MsyJv0HvBm2t2xvdl2M3JjVdyfHIBEdj+REDWFYd+mwcviFAeImPnZyZMP
ZiG0Mu96KmBv4pfqnK619JuH4NKsqlw1KHCjNDsAgVbD7eK3RbQygTFlYkB7xorL
PNKlQmd0X0+RPq64FAxXODd10jZz8Q==
=j4kr
-----END PGP SIGNATURE-----payloadtree fa62721c2db70c236bf0f3ce27eb09027f319b3b
parent aeaa2477790bfabd9968be5234ff598defbc81f3
author Jeremy Kong <jkong@palantir.com> 1677106017 +0000
committer Jeremy Kong <jkong@palantir.com> 1677106017 +0000

la campanella
uuj\ ^https://api.github.com/repos/palantir/atlasdb/commits/0d1f5821b2eb2aef8400177aa48c06623074a687html_urlShttps://github.com/palantir/atlasdb/commit/0d1f5821b2eb2aef8400177aa48c06623074a687comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0d1f5821b2eb2aef8400177aa48c06623074a687/commentsj\ }(login
jeremyk-91idJZ j\ MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j\ 'https://api.github.com/users/jeremyk-91j\ https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj\ }(j\ 
jeremyk-91j ] JZ j\ MDQ6VXNlcjU5NTU1MTA=j] 3https://avatars.githubusercontent.com/u/5955510?v=4j] h5j\ 'https://api.github.com/users/jeremyk-91j\ https://github.com/jeremyk-91j] 1https://api.github.com/users/jeremyk-91/followersj	] >https://api.github.com/users/jeremyk-91/following{/other_user}j] 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j
] >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j] 5https://api.github.com/users/jeremyk-91/subscriptionsj] ,https://api.github.com/users/jeremyk-91/orgsj] -https://api.github.com/users/jeremyk-91/reposj] 8https://api.github.com/users/jeremyk-91/events{/privacy}j] 7https://api.github.com/users/jeremyk-91/received_eventsj] Userj] uparents]}(j\ (aeaa2477790bfabd9968be5234ff598defbc81f3j\ ^https://api.github.com/repos/palantir/atlasdb/commits/aeaa2477790bfabd9968be5234ff598defbc81f3j\ Shttps://github.com/palantir/atlasdb/commit/aeaa2477790bfabd9968be5234ff598defbc81f3uastats}(totalK	additionsK	deletionsKufiles](}(j\ (a05f75a5ea457605e92fb26bee9f8372bf11b280filenameqatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleCellWorkflowConfiguration.javastatusmodifiedj5] Kj6] KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/0d1f5821b2eb2aef8400177aa48c06623074a687/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleCellWorkflowConfiguration.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0d1f5821b2eb2aef8400177aa48c06623074a687/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleCellWorkflowConfiguration.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleCellWorkflowConfiguration.java?ref=0d1f5821b2eb2aef8400177aa48c06623074a687patchX[  @@ -20,7 +20,9 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface SingleCellWorkflowConfiguration extends WorkflowConfiguration {
+public interface SingleCellWorkflowConfiguration {
+    WorkflowConfiguration genericWorkflowConfiguration();
+
     String tableName();
 
     default RateLimiter transactionRateLimiter() {u}(j\ (fb1ef76ff219a98c1ba6598efe8f6207aa9dbccdj;] latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javaj=] modifiedj5] Kj6] Kj?] Kj@] https://github.com/palantir/atlasdb/blob/0d1f5821b2eb2aef8400177aa48c06623074a687/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javajB] https://github.com/palantir/atlasdb/raw/0d1f5821b2eb2aef8400177aa48c06623074a687/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javajD] https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=0d1f5821b2eb2aef8400177aa48c06623074a687jF] X  @@ -50,7 +50,7 @@ public static Workflow createSingleRowTwoCell(
         return DefaultWorkflow.create(
                 store,
                 (txnStore, index) -> run(txnStore, index, singleCellWorkflowConfiguration),
-                singleCellWorkflowConfiguration);
+                singleCellWorkflowConfiguration.genericWorkflowConfiguration());
     }
 
     private static Optional<WitnessedTransaction> run(ueu(74dedc02e80c3d2d3c392fa66550adbda1df45ae}(sha(74dedc02e80c3d2d3c392fa66550adbda1df45aenode_idEC_kwDOAjP5fdoAKDc0ZGVkYzAyZTgwYzNkMmQzYzM5MmZhNjY1NTBhZGJkYTFkZjQ1YWUcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-04-17T10:09:14Zu	committer}(jZ] svc-autoreleasej\] -pd-foundry-infrastructure-notify@palantir.comj^] 2023-04-17T10:09:14ZumessageAutorelease 0.838.0

[skip ci]tree}(jR] (d5f25c8ebe5a092bb427c24ba706ce4ffe7aeee4url`https://api.github.com/repos/palantir/atlasdb/git/trees/d5f25c8ebe5a092bb427c24ba706ce4ffe7aeee4ujj] bhttps://api.github.com/repos/palantir/atlasdb/git/commits/74dedc02e80c3d2d3c392fa66550adbda1df45ae
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmQ9GtAACgkQhbrR8ip7mDBoxwEAqFOPxFficWy4CTBaVy+z05yg
wPDqjmQ4HJwdO+Ak+pEBAOEgMk+cqraT0QaYBtM2ys1XemVgC4jzSxXcp4PkKns+
=DK+v
-----END PGP SIGNATURE-----
payloadX0  tree d5f25c8ebe5a092bb427c24ba706ce4ffe7aeee4
parent 143be05923383c9ea844ab41a19b4e0a324bd87c
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1681726154 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1681726154 +0000

Autorelease 0.838.0

[skip ci]uujj] ^https://api.github.com/repos/palantir/atlasdb/commits/74dedc02e80c3d2d3c392fa66550adbda1df45aehtml_urlShttps://github.com/palantir/atlasdb/commit/74dedc02e80c3d2d3c392fa66550adbda1df45aecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/74dedc02e80c3d2d3c392fa66550adbda1df45ae/commentsjX] }(loginsvc-autoreleaseidJ(jT] MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5jj] ,https://api.github.com/users/svc-autoreleasejx] "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj`] }(j}] svc-autoreleasej] J(jT] MDQ6VXNlcjUxNzE4MzQ2j] 4https://avatars.githubusercontent.com/u/51718346?v=4j] h5jj] ,https://api.github.com/users/svc-autoreleasejx] "https://github.com/svc-autoreleasej] 6https://api.github.com/users/svc-autorelease/followersj] Chttps://api.github.com/users/svc-autorelease/following{/other_user}j] <https://api.github.com/users/svc-autorelease/gists{/gist_id}j] Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j] :https://api.github.com/users/svc-autorelease/subscriptionsj] 1https://api.github.com/users/svc-autorelease/orgsj] 2https://api.github.com/users/svc-autorelease/reposj] =https://api.github.com/users/svc-autorelease/events{/privacy}j] <https://api.github.com/users/svc-autorelease/received_eventsj] Userj] uparents]}(jR] (143be05923383c9ea844ab41a19b4e0a324bd87cjj] ^https://api.github.com/repos/palantir/atlasdb/commits/143be05923383c9ea844ab41a19b4e0a324bd87cjx] Shttps://github.com/palantir/atlasdb/commit/143be05923383c9ea844ab41a19b4e0a324bd87cuastats}(totalK 	additionsK 	deletionsK ufiles]}(jR] (f78ad2562cc65a8da82f8d8fc92f20368d1a9981filename changelog/0.838.0/pr-6518.v2.ymlstatusrenamedj] K j] K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/74dedc02e80c3d2d3c392fa66550adbda1df45ae/changelog%2F0.838.0%2Fpr-6518.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/74dedc02e80c3d2d3c392fa66550adbda1df45ae/changelog%2F0.838.0%2Fpr-6518.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.838.0%2Fpr-6518.v2.yml?ref=74dedc02e80c3d2d3c392fa66550adbda1df45aeprevious_filename$changelog/@unreleased/pr-6518.v2.ymluau(20d9940915c0da598c93adc792859d59d932a67a}(sha(20d9940915c0da598c93adc792859d59d932a67anode_idEC_kwDOAjP5fdoAKDIwZDk5NDA5MTVjMGRhNTk4YzkzYWRjNzkyODU5ZDU5ZDkzMmE2N2Ecommit}(author}(name
Steven Berleremailsberler@palantir.comdate2023-07-26T19:20:59Zu	committer}(j] 
Steven Berlerj] sberler@palantir.comj] 2023-07-26T19:20:59Zumessagenetty direct dependency

Some downstream projects end up resolving a much older version of netty
because the dependency is transitive. Changing it to a direct dep should
fix downstream projects.tree}(j] (3fcc3d659e467344d3e55be72d4b919c378631f1url`https://api.github.com/repos/palantir/atlasdb/git/trees/3fcc3d659e467344d3e55be72d4b919c378631f1uj] bhttps://api.github.com/repos/palantir/atlasdb/git/commits/20d9940915c0da598c93adc792859d59d932a67a
comment_countK verification}(verifiedreasonvalid	signatureX@  -----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEw59h1YMk8taw6E9gP6wKgcBSQL8FAmTBcr4ACgkQP6wKgcBS
QL+TyQ/8CAiZMJklZ4Ily8KRU6XWtQSkEvax8m2wA/R5x5JRJLlGhPP/W4XoObCO
BtNA4gBn4XEU8MfJdq9oNGamksvE1sj2Z8xo/wHKtbjRzjiZ7QAYyqSp6No60Kmr
/QH9Thyif6wWC+Gk1VnvR9r6yFaR7l4/3IpK6buJ2s/8XNkEaiZfF+5IIwBmceF/
76xeg/b0qar5BXJ+Wz6r70Acm9xPNyivJYx6Y5L5KdEwoEFabOXr+c2SapS5fenM
ihje6CeaydGCV7DUOVXIGrDhnDvgYa8oHcHX38H2HmoYlAe1sSNJ6VMXkgAQu0ad
qMnSIkSbZNbIQls1ma8bJLG2UmauMteWkJ9iZpBtKaxf8o0vU9TyPO2DIE1oOYda
vwMUFGkH6bLuRTgfzk71QMpw13SVYY3I2VlQZsPYIVTpb+TA/rvMscbUoaiTf+83
2WmC7oUumuxMUPcTPU+AK+yDRn8ISVNkp35/wamekqCnKSv1NfWErgHBtpuA5lSN
aR9JHvPCHvup0GlcGXSzbCbb7J4wQWTLE5Wt4n9Y+RoPAiM0fInHGYNyklVFazta
raFrA4JdFFFUMA0P4GaMyRrixhpyg2SLkDmGgJpndrFypQemUejkVfjvT+X3giDN
MuifxsLRwzRgN7y8ajEeQLl7/d0vNqrD68tz18+vmKqck4I5Y6Q=
=NIrH
-----END PGP SIGNATURE-----payloadX  tree 3fcc3d659e467344d3e55be72d4b919c378631f1
parent e350ee1f07d1e420581afcb4151521b7b051acd1
author Steven Berler <sberler@palantir.com> 1690399259 -0700
committer Steven Berler <sberler@palantir.com> 1690399259 -0700

netty direct dependency

Some downstream projects end up resolving a much older version of netty
because the dependency is transitive. Changing it to a direct dep should
fix downstream projects.
uuj] ^https://api.github.com/repos/palantir/atlasdb/commits/20d9940915c0da598c93adc792859d59d932a67ahtml_urlShttps://github.com/palantir/atlasdb/commit/20d9940915c0da598c93adc792859d59d932a67acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/20d9940915c0da598c93adc792859d59d932a67a/commentsj] }(loginberleridJ j] MDQ6VXNlcjEwMzA2Mjc=
avatar_url3https://avatars.githubusercontent.com/u/1030627?v=4gravatar_idh5j] #https://api.github.com/users/berlerj] https://github.com/berler
followers_url-https://api.github.com/users/berler/followers
following_url:https://api.github.com/users/berler/following{/other_user}	gists_url3https://api.github.com/users/berler/gists{/gist_id}starred_url:https://api.github.com/users/berler/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/berler/subscriptionsorganizations_url(https://api.github.com/users/berler/orgs	repos_url)https://api.github.com/users/berler/repos
events_url4https://api.github.com/users/berler/events{/privacy}received_events_url3https://api.github.com/users/berler/received_eventstypeUser
site_adminuj] }(j] berlerj] J j] MDQ6VXNlcjEwMzA2Mjc=j] 3https://avatars.githubusercontent.com/u/1030627?v=4j] h5j] #https://api.github.com/users/berlerj] https://github.com/berlerj] -https://api.github.com/users/berler/followersj] :https://api.github.com/users/berler/following{/other_user}j^ 3https://api.github.com/users/berler/gists{/gist_id}j^ :https://api.github.com/users/berler/starred{/owner}{/repo}j^ 1https://api.github.com/users/berler/subscriptionsj^ (https://api.github.com/users/berler/orgsj	^ )https://api.github.com/users/berler/reposj^ 4https://api.github.com/users/berler/events{/privacy}j
^ 3https://api.github.com/users/berler/received_eventsj^ Userj^ uparents]}(j] (e350ee1f07d1e420581afcb4151521b7b051acd1j] ^https://api.github.com/repos/palantir/atlasdb/commits/e350ee1f07d1e420581afcb4151521b7b051acd1j] Shttps://github.com/palantir/atlasdb/commit/e350ee1f07d1e420581afcb4151521b7b051acd1uastats}(totalK	additionsK	deletionsKufiles](}(j] (8ca871d98a65e4aec1a79054fcfe650b87848aadfilenameatlasdb-cassandra/build.gradlestatusmodifiedj+^ Kj,^ K changesKblob_urlrhttps://github.com/palantir/atlasdb/blob/20d9940915c0da598c93adc792859d59d932a67a/atlasdb-cassandra%2Fbuild.gradleraw_urlqhttps://github.com/palantir/atlasdb/raw/20d9940915c0da598c93adc792859d59d932a67a/atlasdb-cassandra%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fbuild.gradle?ref=20d9940915c0da598c93adc792859d59d932a67apatchX  @@ -58,6 +58,10 @@ dependencies {
   implementation project(':commons-executors')
   implementation project(':timestamp-api')
 
+  // transitive from cassandra-driver-core
+  // need to specify as a direct dep so downstream projects get the correct version
+  implementation 'io.netty:netty-handler'
+
   testImplementation 'commons-codec:commons-codec'
   testImplementation 'com.fasterxml.jackson.core:jackson-databind'
   testImplementation 'com.google.protobuf:protobuf-java'u}(j] (e76f0a48968f3f5af674af0b305a845d9d045dfcj1^ 
versions.lockj3^ modifiedj+^ Kj,^ Kj5^ Kj6^ _https://github.com/palantir/atlasdb/blob/20d9940915c0da598c93adc792859d59d932a67a/versions.lockj8^ ^https://github.com/palantir/atlasdb/raw/20d9940915c0da598c93adc792859d59d932a67a/versions.lockj:^ qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=20d9940915c0da598c93adc792859d59d932a67aj<^ Xc  @@ -170,7 +170,7 @@ io.netty:netty-codec-socks:4.1.90.Final (2 constraints: 0b1ae71e)
 io.netty:netty-codec-stomp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-codec-xml:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-common:4.1.90.Final (17 constraints: 9f060892)
-io.netty:netty-handler:4.1.90.Final (4 constraints: 5b3c2eaa)
+io.netty:netty-handler:4.1.90.Final (5 constraints: b2435f26)
 io.netty:netty-handler-proxy:4.1.90.Final (2 constraints: 53120c2a)
 io.netty:netty-handler-ssl-ocsp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-resolver:4.1.90.Final (4 constraints: f133a9f6)ueu(43a048fd492f4d9590d0f088f65034d2db7c859e}(sha(43a048fd492f4d9590d0f088f65034d2db7c859enode_idEC_kwDOAjP5fdoAKDQzYTA0OGZkNDkyZjRkOTU5MGQwZjA4OGY2NTAzNGQyZGI3Yzg1OWUcommit}(author}(name	Tom Papkeemail+43675490+Toemmsche@users.noreply.github.comdate2023-07-12T17:18:43Zu	committer}(jP^ GitHubjR^ noreply@github.comjT^ 2023-07-12T17:18:43Zumessage\[LWMeta] Add index encoding utility class (#6652)

[LWMeta] Add index encoding utility classtree}(jH^ (0c896f885e0df5f775a547fb1120118914042491url`https://api.github.com/repos/palantir/atlasdb/git/trees/0c896f885e0df5f775a547fb1120118914042491uj`^ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/43a048fd492f4d9590d0f088f65034d2db7c859e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkruBzCRBK7hj4Ov3rIwAAM6sIAGyWkOS5mVL+ANuIDDhBRBq1
h/daNNeaF6L8dwJXuIJQbagxK4NqZt+YG9v1ISCqeyL88/Rfyg2wti8b26GZ9TpO
942iVCV9fEapg8ZFirvHOp8xxX25tpr9LUistDpQQX50Uixfh/b1Oq1zWmE13R5H
yWVNTA1+4FnotYmGJkXKc2FDux5G7X6odVNEdGlpKAv3LymDxqby9nlUMppGb698
akqCLzrn1ag1beJ6jLkGG7Z1p0UDursyWPeNRAupRdoh1G62k4Z9gnwGz09dfc2r
yvDhpEZeaG9JMjAE67roF69KPH6wmgZjE1mfZwhdZrN3IbIaYIAUIzy4+MHhGe8=
=Xq6H
-----END PGP SIGNATURE-----
payloadXC  tree 0c896f885e0df5f775a547fb1120118914042491
parent 94a5aca1c69153c5c40b19fd1ac73df4a3ceae58
author Tom Papke <43675490+Toemmsche@users.noreply.github.com> 1689182323 +0200
committer GitHub <noreply@github.com> 1689182323 +0000

[LWMeta] Add index encoding utility class (#6652)

[LWMeta] Add index encoding utility class
uuj`^ ^https://api.github.com/repos/palantir/atlasdb/commits/43a048fd492f4d9590d0f088f65034d2db7c859ehtml_urlShttps://github.com/palantir/atlasdb/commit/43a048fd492f4d9590d0f088f65034d2db7c859ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/43a048fd492f4d9590d0f088f65034d2db7c859e/commentsjN^ }(login	ToemmscheidJbojJ^ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j`^ &https://api.github.com/users/Toemmschejn^ https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujV^ }(js^ web-flowju^ J/jJ^ MDQ6VXNlcjE5ODY0NDQ3jw^ 4https://avatars.githubusercontent.com/u/19864447?v=4jy^ h5j`^ %https://api.github.com/users/web-flowjn^ https://github.com/web-flowj|^ /https://api.github.com/users/web-flow/followersj~^ <https://api.github.com/users/web-flow/following{/other_user}j^ 5https://api.github.com/users/web-flow/gists{/gist_id}j^ <https://api.github.com/users/web-flow/starred{/owner}{/repo}j^ 3https://api.github.com/users/web-flow/subscriptionsj^ *https://api.github.com/users/web-flow/orgsj^ +https://api.github.com/users/web-flow/reposj^ 6https://api.github.com/users/web-flow/events{/privacy}j^ 5https://api.github.com/users/web-flow/received_eventsj^ Userj^ uparents]}(jH^ (94a5aca1c69153c5c40b19fd1ac73df4a3ceae58j`^ ^https://api.github.com/repos/palantir/atlasdb/commits/94a5aca1c69153c5c40b19fd1ac73df4a3ceae58jn^ Shttps://github.com/palantir/atlasdb/commit/94a5aca1c69153c5c40b19fd1ac73df4a3ceae58uastats}(totalM	additionsM	deletionsKufiles](}(jH^ (e7949fec0d19116c4500b6be501d9ab8aef7f88ffilenameatlasdb-commons/build.gradlestatusmodifiedj^ Kj^ K changesKblob_urlphttps://github.com/palantir/atlasdb/blob/43a048fd492f4d9590d0f088f65034d2db7c859e/atlasdb-commons%2Fbuild.gradleraw_urlohttps://github.com/palantir/atlasdb/raw/43a048fd492f4d9590d0f088f65034d2db7c859e/atlasdb-commons%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fbuild.gradle?ref=43a048fd492f4d9590d0f088f65034d2db7c859epatchX  @@ -26,6 +26,7 @@ dependencies {
     testImplementation 'com.fasterxml.jackson.core:jackson-databind'
     testImplementation 'com.google.errorprone:error_prone_annotations'
     testImplementation 'com.google.guava:guava'
+    testImplementation 'com.palantir.safe-logging:preconditions-assertj'
 
     annotationProcessor 'org.immutables:value'
     compileOnly 'org.immutables:value::annotations'u}(jH^ (e20280a5d10831ffcf7c94a007d5bfdcf55583baj^ Gatlasdb-commons/src/main/java/com/palantir/util/IndexEncodingUtils.javaj^ addedj^ Kj^ K j^ Kj^ https://github.com/palantir/atlasdb/blob/43a048fd492f4d9590d0f088f65034d2db7c859e/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javaj^ https://github.com/palantir/atlasdb/raw/43a048fd492f4d9590d0f088f65034d2db7c859e/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javaj^ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.java?ref=43a048fd492f4d9590d0f088f65034d2db7c859ej^ X?"  @@ -0,0 +1,201 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreType;
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.Maps;
+import com.google.common.collect.Sets;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.nio.ByteBuffer;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.zip.CRC32;
+import org.immutables.value.Value;
+
+public final class IndexEncodingUtils {
+    private IndexEncodingUtils() {}
+
+    /**
+     * Compute a derived map (replacing keys with their associated index into the ordered list) to the value returned
+     * by running the {@code valueMapper} over the original value.
+     * If the {@code keys} are transmitted regardless of whether they have a value associated in {@code keyToValue},
+     * this encoding can be used to save significant space on the wire.
+     *
+     * @param keys a set of keys which implement {@link DeterministicHashable}
+     * @param keyToValue a map of keys to values. The key set of this map must be a subset of {@code keys}
+     * @param valueMapper a mapping function applied to values before placing them into the result map
+     * @param checksumType the type of checksum algorithm to use on the ordered list of keys
+     * @return the ordered list of keys, the index map, and a compound checksum of the ordered keys
+     * @throws SafeIllegalArgumentException if {@code keyToValue} contains keys that are not in the provided
+     * set of keys
+     */
+    public static <K extends DeterministicHashable, V, R> IndexEncodingResult<K, R> encode(
+            Set<K> keys, Map<K, V> keyToValue, Function<V, R> valueMapper, ChecksumType checksumType) {
+        List<K> keyList = new ArrayList<>(keys);
+        // A linked hash map will give a minor improvement when iterating during serialization
+        Map<Integer, R> indexToValue = Maps.newLinkedHashMapWithExpectedSize(keyToValue.size());
+        // We are explicitly using a primitive for-loop (no streaming) to squeeze out a bit of performance
+        // (same in decode)
+        for (int i = 0; i < keyList.size(); i++) {
+            V value = keyToValue.get(keyList.get(i));
+            if (value != null) {
+                indexToValue.put(i, valueMapper.apply(value));
+            }
+        }
+        if (indexToValue.size() != keyToValue.size()) {
+            Set<K> unknownKeys = Sets.difference(keyToValue.keySet(), keys);
+            throw new SafeIllegalArgumentException(
+                    "Value map uses keys that are not in the provided set of keys",
+                    UnsafeArg.of("unknownKeys", unknownKeys));
+        }
+        return IndexEncodingResult.<K, R>builder()
+                .keyList(keyList)
+                .indexToValue(indexToValue)
+                .keyListChecksum(computeChecksum(checksumType, keyList))
+                .build();
+    }
+
+    /**
+     * Compute a derived map (replacing indices into the list of keys with their item) to the value returned
+     * by running the {@code valueMapper} over the original value.
+     *
+     * @param indexEncoding the output of {@link IndexEncodingUtils#encode}, i.e. the ordered list of keys,
+     * a map of indices to values, and a checksum of the ordered key list. Every index must be
+     * a valid index into the list of keys
+     * @param valueMapper a mapping function applied to values before placing them into the result map
+     * @throws SafeIllegalArgumentException if the provided checksum does not match the actual checksum of the ordered
+     * keys or if {@code indexToValue} contains indices that are not valid for the list of keys
+     */
+    public static <K extends DeterministicHashable, V, R> Map<K, R> decode(
+            IndexEncodingResult<K, V> indexEncoding, Function<V, R> valueMapper) {
+        List<K> keyList = indexEncoding.keyList();
+        KeyListChecksum expectedChecksum = indexEncoding.keyListChecksum();
+        KeyListChecksum actualChecksum = computeChecksum(expectedChecksum.type(), keyList);
+        Preconditions.checkArgument(
+                actualChecksum.equals(expectedChecksum),
+                "Key list integrity check failed",
+                UnsafeArg.of("keyList", keyList),
+                SafeArg.of("actualChecksum", actualChecksum),
+                SafeArg.of("expectedChecksum", expectedChecksum));
+
+        Map<K, R> keyToValue =
+                Maps.newHashMapWithExpectedSize(indexEncoding.indexToValue().size());
+        for (Map.Entry<Integer, V> entry : indexEncoding.indexToValue().entrySet()) {
+            int index = entry.getKey();
+            Preconditions.checkArgument(
+                    index >= 0 && index < keyList.size(),
+                    "Index map contains invalid index",
+                    SafeArg.of("index", index),
+                    SafeArg.of("keyListSize", keyList.size()));
+            keyToValue.put(keyList.get(index), valueMapper.apply(entry.getValue()));
+        }
+        return keyToValue;
+    }
+
+    @VisibleForTesting
+    static <K extends DeterministicHashable> KeyListChecksum computeChecksum(
+            ChecksumType checksumType, List<K> keyList) {
+        switch (checksumType) {
+            case CRC32_OF_DETERMINISTIC_HASHCODE: {
+                CRC32 checksum = new CRC32();
+                for (K key : keyList) {
+                    checksum.update(key.deterministicHashCode());
+                }
+                return KeyListChecksum.of(
+                        checksumType,
+                        ByteBuffer.allocate(8).putLong(checksum.getValue()).array());
+            }
+            default: {
+                throw new SafeIllegalArgumentException(
+                        "Unknown checksum type", SafeArg.of("checksumType", checksumType));
+            }
+        }
+    }
+
+    public interface DeterministicHashable {
+
+        /**
+         * A hash code implementation that is stable across different processes/JVMs and only depends on the contents
+         * of the object.
+         */
+        int deterministicHashCode();
+    }
+
+    /**
+     * This class is merely used to wrap the output of {@link IndexEncodingUtils#encode} and should not be embedded in
+     * any other object directly or serialized as-is.
+     */
+    @Value.Immutable
+    @JsonIgnoreType
+    public interface IndexEncodingResult<K extends DeterministicHashable, V> {
+        List<K> keyList();
+
+        KeyListChecksum keyListChecksum();
+
+        Map<Integer, V> indexToValue();
+
+        static <K extends DeterministicHashable, V> ImmutableIndexEncodingResult.Builder<K, V> builder() {
+            return ImmutableIndexEncodingResult.builder();
+        }
+    }
+
+    public enum ChecksumType {
+        CRC32_OF_DETERMINISTIC_HASHCODE(1);
+
+        private static final Map<Integer, ChecksumType> ID_TO_ENTRY =
+                Arrays.stream(ChecksumType.values()).collect(Collectors.toMap(entry -> entry.id, entry -> entry));
+
+        private final int id;
+
+        ChecksumType(int id) {
+            this.id = id;
+        }
+
+        public int getId() {
+            return id;
+        }
+
+        public static ChecksumType valueOf(int id) {
+            Preconditions.checkArgument(
+                    ID_TO_ENTRY.containsKey(id), "Unknown checksum type ID", SafeArg.of("checksumTypeId", id));
+            return ID_TO_ENTRY.get(id);
+        }
+    }
+
+    @Value.Immutable
+    public interface KeyListChecksum {
+
+        @Value.Parameter
+        ChecksumType type();
+
+        @Value.Parameter
+        byte[] value();
+
+        static KeyListChecksum of(ChecksumType type, byte[] value) {
+            return ImmutableKeyListChecksum.of(type, value);
+        }
+    }
+}u}(jH^ (197797a98d302c6f26f914a316d6c6179eeb7689j^ Katlasdb-commons/src/test/java/com/palantir/util/IndexEncodingUtilsTest.javaj^ addedj^ Kj^ K j^ Kj^ https://github.com/palantir/atlasdb/blob/43a048fd492f4d9590d0f088f65034d2db7c859e/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaj^ https://github.com/palantir/atlasdb/raw/43a048fd492f4d9590d0f088f65034d2db7c859e/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaj^ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.java?ref=43a048fd492f4d9590d0f088f65034d2db7c859ej^ X&  @@ -0,0 +1,211 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.common.streams.KeyedStream;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.util.IndexEncodingUtils.ChecksumType;
+import com.palantir.util.IndexEncodingUtils.DeterministicHashable;
+import com.palantir.util.IndexEncodingUtils.IndexEncodingResult;
+import com.palantir.util.IndexEncodingUtils.KeyListChecksum;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.Random;
+import java.util.Set;
+import java.util.UUID;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import org.immutables.value.Value;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+
+@RunWith(Parameterized.class)
+public class IndexEncodingUtilsTest {
+
+    @Parameterized.Parameters(name = "checksumType={0}")
+    public static Iterable<ChecksumType> data() {
+        return Arrays.asList(ChecksumType.values());
+    }
+
+    private static final Map<DeterministicHashableWrapper<String>, Long> VALUES =
+            ImmutableMap.of(wrap("key1"), 42L, wrap("key2"), 1337L, wrap("anotherKey"), -10L);
+    private static final Set<DeterministicHashableWrapper<String>> KEYS =
+            ImmutableSet.of(wrap("key1"), wrap("key2"), wrap("anotherKey"));
+
+    private final ChecksumType checksumType;
+
+    public IndexEncodingUtilsTest(ChecksumType checksumType) {
+        this.checksumType = checksumType;
+    }
+
+    @Test
+    public void canLookupValidChecksumType() {
+        assertThat(ChecksumType.valueOf(checksumType.getId())).isEqualTo(checksumType);
+    }
+
+    @Test
+    public void cannotLookupUnknownChecksumType() {
+        assertThatLoggableExceptionThrownBy(() -> ChecksumType.valueOf(-1))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasLogMessage("Unknown checksum type ID")
+                .hasExactlyArgs(SafeArg.of("checksumTypeId", -1));
+    }
+
+    @Test
+    public void canEncodeSimpleData() {
+        assertThat(createIndexEncodingWithIdentity().indexToValue())
+                .isEqualTo(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
+    }
+
+    @Test
+    public void canDecodeSimpleData() {
+        assertThat(IndexEncodingUtils.decode(createIndexEncodingWithIdentity(), Function.identity()))
+                .containsExactlyInAnyOrderEntriesOf(VALUES);
+    }
+
+    @Test
+    public void canEncodeAndDecodeEmptyData() {
+        assertThat(IndexEncodingUtils.decode(
+                        IndexEncodingUtils.encode(
+                                ImmutableSet.of(), ImmutableMap.of(), Function.identity(), checksumType),
+                        Function.identity()))
+                .isEmpty();
+    }
+
+    @Test
+    public void canEncodeWithCustomValueMapper() {
+        Map<Integer, String> expectedValues = ImmutableMap.of(1, "1327", 2, "-20", 0, "32");
+        assertThat(IndexEncodingUtils.encode(KEYS, VALUES, value -> Long.toString(value - 10), checksumType)
+                        .indexToValue())
+                .containsExactlyInAnyOrderEntriesOf(expectedValues);
+    }
+
+    @Test
+    public void canDecodeWithCustomValueMapper() {
+        assertThat(IndexEncodingUtils.decode(
+                        IndexEncodingUtils.encode(KEYS, VALUES, value -> Long.toString(value - 10), checksumType),
+                        value -> Long.parseLong(value) + 10))
+                .containsExactlyInAnyOrderEntriesOf(VALUES);
+    }
+
+    @Test
+    public void encodeFailsForUnknownKeysInValueMap() {
+        assertThatLoggableExceptionThrownBy(() -> IndexEncodingUtils.encode(
+                        KEYS, ImmutableMap.of(wrap("unknown-key"), 0L), Function.identity(), checksumType))
+                .isExactlyInstanceOf(SafeIllegalArgumentException.class)
+                .hasLogMessage("Value map uses keys that are not in the provided set of keys")
+                .hasExactlyArgs(UnsafeArg.of("unknownKeys", ImmutableSet.of(wrap("unknown-key"))));
+    }
+
+    @Test
+    public void decodeFailsForInvalidIndices() {
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encodedWithInvalidIndices =
+                ImmutableIndexEncodingResult.copyOf(createIndexEncodingWithIdentity())
+                        .withIndexToValue(ImmutableMap.of(KEYS.size(), 17L));
+        assertThatLoggableExceptionThrownBy(
+                        () -> IndexEncodingUtils.decode(encodedWithInvalidIndices, Function.identity()))
+                .isExactlyInstanceOf(SafeIllegalArgumentException.class)
+                .hasLogMessage("Index map contains invalid index")
+                .hasExactlyArgs(SafeArg.of("index", KEYS.size()), SafeArg.of("keyListSize", KEYS.size()));
+    }
+
+    @Test
+    public void integrityCheckFailsForDifferentKeyList() {
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encoded = createIndexEncodingWithIdentity();
+        List<DeterministicHashableWrapper<String>> modifiedKeyList = new ArrayList<>(KEYS);
+        Collections.swap(modifiedKeyList, 0, 1);
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encodedWithModifiedKeyList =
+                ImmutableIndexEncodingResult.copyOf(encoded).withKeyList(modifiedKeyList);
+        KeyListChecksum actualChecksum = IndexEncodingUtils.computeChecksum(checksumType, modifiedKeyList);
+        assertThatLoggableExceptionThrownBy(
+                        () -> IndexEncodingUtils.decode(encodedWithModifiedKeyList, Function.identity()))
+                .isExactlyInstanceOf(SafeIllegalArgumentException.class)
+                .hasLogMessage("Key list integrity check failed")
+                .hasExactlyArgs(
+                        UnsafeArg.of("keyList", modifiedKeyList),
+                        SafeArg.of("actualChecksum", actualChecksum),
+                        SafeArg.of("expectedChecksum", encoded.keyListChecksum()));
+    }
+
+    @Test
+    public void integrityCheckFailsForDifferentChecksum() {
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encoded = createIndexEncodingWithIdentity();
+        byte[] modifiedChecksum = encoded.keyListChecksum().value();
+        modifiedChecksum[0]++;
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encodedWithModifiedChecksum =
+                ImmutableIndexEncodingResult.copyOf(encoded)
+                        .withKeyListChecksum(KeyListChecksum.of(checksumType, modifiedChecksum));
+        assertThatLoggableExceptionThrownBy(
+                        () -> IndexEncodingUtils.decode(encodedWithModifiedChecksum, Function.identity()))
+                .isExactlyInstanceOf(SafeIllegalArgumentException.class)
+                .hasLogMessage("Key list integrity check failed")
+                .hasExactlyArgs(
+                        UnsafeArg.of("keyList", encoded.keyList()),
+                        SafeArg.of("actualChecksum", encoded.keyListChecksum()),
+                        SafeArg.of("expectedChecksum", encodedWithModifiedChecksum.keyListChecksum()));
+    }
+
+    @Test
+    public void decodingEncodedDataYieldsOriginalForRandomData() {
+        int seed = (int) System.currentTimeMillis();
+        Random rand = new Random(seed);
+        Set<DeterministicHashableWrapper<UUID>> keys = Stream.generate(UUID::randomUUID)
+                .limit(1000)
+                .map(IndexEncodingUtilsTest::wrap)
+                .collect(Collectors.toSet());
+        Map<DeterministicHashableWrapper<UUID>, Long> data = KeyedStream.of(keys.stream())
+                .filter(_unused -> rand.nextBoolean())
+                .map(_unused -> rand.nextLong())
+                .collectToMap();
+        assertThat(IndexEncodingUtils.decode(
+                        IndexEncodingUtils.encode(keys, data, Function.identity(), checksumType), Function.identity()))
+                .as("Encoding and decoding yields original data. Random seed: " + seed)
+                .containsExactlyInAnyOrderEntriesOf(data);
+    }
+
+    private IndexEncodingResult<DeterministicHashableWrapper<String>, Long> createIndexEncodingWithIdentity() {
+        return IndexEncodingUtils.encode(KEYS, VALUES, Function.identity(), checksumType);
+    }
+
+    private static <T> DeterministicHashableWrapper<T> wrap(T value) {
+        return ImmutableDeterministicHashableWrapper.of(value);
+    }
+
+    @Value.Immutable
+    abstract static class DeterministicHashableWrapper<T> implements DeterministicHashable {
+
+        @Value.Parameter
+        protected abstract T delegate();
+
+        @Override
+        public int deterministicHashCode() {
+            return delegate().hashCode();
+        }
+    }
+}u}(jH^ (f31646696ef80d2fd943db02290216fe7d848f39j^ lock-api-objects/build.gradlej^ modifiedj^ K j^ Kj^ Kj^ qhttps://github.com/palantir/atlasdb/blob/43a048fd492f4d9590d0f088f65034d2db7c859e/lock-api-objects%2Fbuild.gradlej^ phttps://github.com/palantir/atlasdb/raw/43a048fd492f4d9590d0f088f65034d2db7c859e/lock-api-objects%2Fbuild.gradlej^ https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fbuild.gradle?ref=43a048fd492f4d9590d0f088f65034d2db7c859ej^ X_  @@ -16,7 +16,6 @@ dependencies {
     implementation 'com.google.errorprone:error_prone_annotations'
     implementation 'com.google.guava:guava'
     implementation project(':commons-annotations')
-    testImplementation project(path: ':lock-api')
 
     annotationProcessor 'org.immutables:value'
     compileOnly 'org.immutables:value::annotations'u}(jH^ (7640d8a0812ee9d22c73ca15ae53c22b03b5edb5j^ Dlock-api-objects/src/main/java/com/palantir/lock/LockDescriptor.javaj^ modifiedj^ Kj^ Kj^ K	j^ https://github.com/palantir/atlasdb/blob/43a048fd492f4d9590d0f088f65034d2db7c859e/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockDescriptor.javaj^ https://github.com/palantir/atlasdb/raw/43a048fd492f4d9590d0f088f65034d2db7c859e/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockDescriptor.javaj^ https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockDescriptor.java?ref=43a048fd492f4d9590d0f088f65034d2db7c859ej^ X!  @@ -22,6 +22,7 @@
 import com.google.common.io.BaseEncoding;
 import com.google.common.primitives.UnsignedBytes;
 import com.palantir.logsafe.Unsafe;
+import com.palantir.util.IndexEncodingUtils.DeterministicHashable;
 import java.io.Serializable;
 import java.nio.charset.StandardCharsets;
 import java.util.Arrays;
@@ -35,7 +36,7 @@
  */
 @Unsafe
 @Immutable
-public class LockDescriptor implements Comparable<LockDescriptor>, Serializable {
+public class LockDescriptor implements Comparable<LockDescriptor>, Serializable, DeterministicHashable {
 
     private static final long serialVersionUID = 1L;
     private static final CharMatcher BASIC_PRINTABLE_ASCII = CharMatcher.inRange(' ', '~');
@@ -83,6 +84,12 @@ public int hashCode() {
         return hashCode;
     }
 
+    @Override
+    public int deterministicHashCode() {
+        // for this class, hashCode() is deterministic since Arrays.hashCode(byte[]) is deterministic
+        return hashCode();
+    }
+
     @Override
     public boolean equals(Object obj) {
         if (this == obj) {u}(jH^ (1bba95acc622e3285936e6443d37ef912ef8575dj^ @lock-api/src/test/java/com/palantir/lock/LockDescriptorTest.javaj^ modifiedj^ Kj^ K j^ Kj^ https://github.com/palantir/atlasdb/blob/43a048fd492f4d9590d0f088f65034d2db7c859e/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockDescriptorTest.javaj^ https://github.com/palantir/atlasdb/raw/43a048fd492f4d9590d0f088f65034d2db7c859e/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockDescriptorTest.javaj^ https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockDescriptorTest.java?ref=43a048fd492f4d9590d0f088f65034d2db7c859ej^ Xy  @@ -20,6 +20,7 @@
 
 import com.google.common.base.Charsets;
 import com.google.common.io.BaseEncoding;
+import java.util.Arrays;
 import org.junit.Test;
 
 public class LockDescriptorTest {
@@ -67,6 +68,24 @@ public void testNullEncodedStringDescriptor() {
         assertThatThrownBy(() -> testEncodedLockDescriptors(null)).isInstanceOf(NullPointerException.class);
     }
 
+    // If this test fails, the implementation of Arrays.hashCode(byte[]), LockDescriptor::hashCode, or
+    // LockDescriptor::deterministicHashCode has changed.
+    // Either way, we should revisit LockDescriptor::deterministicHashCode and ensure that it is still deterministic
+    // and there are no compatibility issues in mixed-version deployments.
+    @Test
+    public void hashCodeIsDeterministic() {
+        // 40 random bytes
+        byte[] bytes = new byte[] {
+            59, -6, -24, 61, -48, -126, -4, 81, -9, -38, -107, 93, 101, -95, 78, -60, -105, 23, 72, 96, -5, 74, -121,
+            59, 40, -87, 1, -6, 43, -20, -70, 101, 63, 108, -51, 117, 113, 116, -87, -73
+        };
+        int expectedByteArrayHashCode = 2030170880;
+        assertThat(Arrays.hashCode(bytes)).isEqualTo(expectedByteArrayHashCode);
+        LockDescriptor lockDescriptor = new LockDescriptor(bytes);
+        assertThat(lockDescriptor.hashCode()).isEqualTo(expectedByteArrayHashCode + 31);
+        assertThat(lockDescriptor.deterministicHashCode()).isEqualTo(expectedByteArrayHashCode + 31);
+    }
+
     private void testAsciiLockDescriptors(String lockId) {
         assertThat(StringLockDescriptor.of(lockId).toString()).isEqualTo(expectedLockDescriptorToString(lockId));
 ueu(d7fdb18efdb847caf5eeb1c52aa20acafb5befaa}(sha(d7fdb18efdb847caf5eeb1c52aa20acafb5befaanode_idEC_kwDOAjP5fdoAKGQ3ZmRiMThlZmRiODQ3Y2FmNWVlYjFjNTJhYTIwYWNhZmI1YmVmYWEcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-03-11T01:04:12Zu	committer}(j^ David Schlosnaglej^ davids@palantir.comj^ 2023-05-23T15:04:18Zumessage$Determine hex case before convertingtree}(j^ (7ba4bfaf1db7c26093847710a7d19bac0a831c6furl`https://api.github.com/repos/palantir/atlasdb/git/trees/7ba4bfaf1db7c26093847710a7d19bac0a831c6fuj^ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d7fdb18efdb847caf5eeb1c52aa20acafb5befaa
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmRs1fIACgkQR9hsJ74Q
0l96Xgf/W7NkNoVhfiQeCPvRWrpn5m4+tmjaLMAb7sjYLmaIx67793UblMZAvRV7
WTA48nrubTf9FcSU2/728UE33koCLzmaTw0Szxz5VnUmT57URW4E+oEOj93spDJn
OsfsRCLqOOxADrQ3zxsbCoEbdJbzCsj8+RTVf8o9Q7JOltKxLED5aOHD9UC1oT1Y
EpRWipn4BRQliSyvyyJrlR0WjokDHVQ8qfcADyrl6TuMyjCysf2/Gl/IFulMl7GB
WTFZVdsBs3i8cZH3auXbyfpk4ArGvJvqPptNHIfcT8JCPbEAuR6WSoB8vevjK84A
i2nOw9SacLf+lZfi84DNCE712Cf/Zg==
=P/RS
-----END PGP SIGNATURE-----payloadX  tree 7ba4bfaf1db7c26093847710a7d19bac0a831c6f
parent 01f81a190d887e7ec2c2a6515805446289e2eb95
author David Schlosnagle <davids@palantir.com> 1678496652 -0500
committer David Schlosnagle <davids@palantir.com> 1684854258 -0400

Determine hex case before converting
uuj^ ^https://api.github.com/repos/palantir/atlasdb/commits/d7fdb18efdb847caf5eeb1c52aa20acafb5befaahtml_urlShttps://github.com/palantir/atlasdb/commit/d7fdb18efdb847caf5eeb1c52aa20acafb5befaacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d7fdb18efdb847caf5eeb1c52aa20acafb5befaa/commentsj^ }(loginschlosnaidMBj^ MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j^ %https://api.github.com/users/schlosnaj
_ https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj^ }(j_ schlosnaj_ MBj^ MDQ6VXNlcjU0NTk0j_ 1https://avatars.githubusercontent.com/u/54594?v=4j_ h5j^ %https://api.github.com/users/schlosnaj
_ https://github.com/schlosnaj_ /https://api.github.com/users/schlosna/followersj_ <https://api.github.com/users/schlosna/following{/other_user}j_ 5https://api.github.com/users/schlosna/gists{/gist_id}j!_ <https://api.github.com/users/schlosna/starred{/owner}{/repo}j#_ 3https://api.github.com/users/schlosna/subscriptionsj%_ *https://api.github.com/users/schlosna/orgsj'_ +https://api.github.com/users/schlosna/reposj)_ 6https://api.github.com/users/schlosna/events{/privacy}j+_ 5https://api.github.com/users/schlosna/received_eventsj-_ Userj/_ uparents]}(j^ (01f81a190d887e7ec2c2a6515805446289e2eb95j^ ^https://api.github.com/repos/palantir/atlasdb/commits/01f81a190d887e7ec2c2a6515805446289e2eb95j
_ Shttps://github.com/palantir/atlasdb/commit/01f81a190d887e7ec2c2a6515805446289e2eb95uastats}(totalK9	additionsK	deletionsKufiles](}(j^ (40434101a62209db7b655007a9220ad4e8c33972filename`atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppToken.javastatusmodifiedjI_ KjJ_ K	changesKblob_urlhttps://github.com/palantir/atlasdb/blob/d7fdb18efdb847caf5eeb1c52aa20acafb5befaa/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d7fdb18efdb847caf5eeb1c52aa20acafb5befaa/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.java?ref=d7fdb18efdb847caf5eeb1c52aa20acafb5befaapatchX  @@ -27,9 +27,9 @@
 import java.nio.ByteBuffer;
 import java.util.Arrays;
 import java.util.Locale;
+import java.util.function.IntPredicate;
 
 public class LightweightOppToken implements Comparable<LightweightOppToken> {
-    private static final BaseEncoding lowerHex = BaseEncoding.base16().lowerCase();
 
     final byte[] bytes;
 
@@ -38,21 +38,32 @@ public LightweightOppToken(byte[] bytes) {
     }
 
     public static LightweightOppToken fromHex(String token) {
-        String normalized = hasUppercase(token)
-                ? token.toLowerCase(Locale.ROOT) // OPP tokens should be lowercase already, normalize if needed
-                : token;
-        return new LightweightOppToken(lowerHex.decode(normalized));
+        // OPP tokens should be lowercase already, use upper if needed, and convert mixed to uppercase if needed
+        byte[] bytes = isAllLowercaseOrDigits(token)
+                ? BaseEncoding.base16().lowerCase().decode(token)
+                : isAllUppercaseOrDigits(token)
+                        ? BaseEncoding.base16().decode(token)
+                        : BaseEncoding.base16().decode(token.toUpperCase(Locale.ROOT));
+        return new LightweightOppToken(bytes);
     }
 
     @VisibleForTesting
-    static boolean hasUppercase(String token) {
+    static boolean isAllLowercaseOrDigits(String token) {
+        return allMatch(token, ch -> Character.isDigit(ch) || Character.isLowerCase(ch));
+    }
+
+    private static boolean isAllUppercaseOrDigits(String token) {
+        return allMatch(token, ch -> Character.isDigit(ch) || Character.isUpperCase(ch));
+    }
+
+    private static boolean allMatch(String token, IntPredicate predicate) {
         for (int i = 0; i < token.length(); i++) {
             char ch = token.charAt(i);
-            if (Character.isUpperCase(ch)) {
-                return true;
+            if (!predicate.test(ch)) {
+                return false;
             }
         }
-        return false;
+        return true;
     }
 
     public static LightweightOppToken of(Cell cell) {u}(j^ (19e5321852293df1f1374c8e9b27d1015c28cec0jO_ datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppTokenTest.javajQ_ modifiedjI_ KjJ_ KjS_ KjT_ https://github.com/palantir/atlasdb/blob/d7fdb18efdb847caf5eeb1c52aa20acafb5befaa/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javajV_ https://github.com/palantir/atlasdb/raw/d7fdb18efdb847caf5eeb1c52aa20acafb5befaa/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javajX_ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.java?ref=d7fdb18efdb847caf5eeb1c52aa20acafb5befaajZ_ X  @@ -26,7 +26,6 @@
 import java.util.Collection;
 import java.util.Locale;
 import java.util.concurrent.ThreadLocalRandom;
-import java.util.regex.Pattern;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 import java.util.stream.Stream;
@@ -46,7 +45,7 @@ public class LightweightOppTokenTest {
     public static Collection<Object[]> data() {
         return Stream.concat(
                         Stream.of(
-                                "0a",
+                                "0F",
                                 "decafbad",
                                 "0123456789ABCDEF",
                                 "0123456789abcdef",
@@ -55,7 +54,9 @@ public static Collection<Object[]> data() {
                                 "0123456789abCdef",
                                 "0123456789abcDef",
                                 "0123456789abcdEf",
-                                "0123456789abcdeF"),
+                                "0123456789abcdeF",
+                                Long.toHexString(Long.MIN_VALUE),
+                                Long.toHexString(Long.MAX_VALUE)),
                         Stream.concat(
                                 IntStream.range(0, 32).mapToObj(i -> {
                                     byte[] bytes = new byte[i * 2];
@@ -105,28 +106,13 @@ public void createFromHex() throws Exception {
         String hex = Hex.bytesToHex(expectedBytes.asNewByteArray());
         byte[] bytes = Hex.hexToBytes(hex);
         LightweightOppToken token4 = LightweightOppToken.fromHex(hex);
-        assertThat(LightweightOppToken.hasUppercase(hex)).isFalse();
+        assertThat(LightweightOppToken.isAllLowercaseOrDigits(hex))
+                .as("Expect lowercase hex %s", hex)
+                .isTrue();
         assertThat(token4).isEqualTo(new LightweightOppToken(expectedBytes.asNewByteArray()));
         assertThat(token4.bytes).contains(bytes);
     }
 
-    @Test
-    public void hasUppercase() {
-        assertThat(LightweightOppToken.hasUppercase(input))
-                .isEqualTo(Pattern.compile("[A-Z]").matcher(input).find());
-
-        assertThat(LightweightOppToken.hasUppercase("0123456789abcdef")).isFalse();
-        assertThat(LightweightOppToken.hasUppercase("0123456789")).isFalse();
-        assertThat(LightweightOppToken.hasUppercase("")).isFalse();
-        assertThat(LightweightOppToken.hasUppercase("a")).isFalse();
-        assertThat(LightweightOppToken.hasUppercase("0123456789Abcdef")).isTrue();
-        assertThat(LightweightOppToken.hasUppercase("0123456789aBcdef")).isTrue();
-        assertThat(LightweightOppToken.hasUppercase("0123456789abCdef")).isTrue();
-        assertThat(LightweightOppToken.hasUppercase("0123456789abcDef")).isTrue();
-        assertThat(LightweightOppToken.hasUppercase("0123456789abcdEf")).isTrue();
-        assertThat(LightweightOppToken.hasUppercase("0123456789abcdeF")).isTrue();
-    }
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one
      * or more contributor license agreements.  See the NOTICE fileueu     (c1564a185d5e0181aee0511e49cb07604b23c3c0}(sha(c1564a185d5e0181aee0511e49cb07604b23c3c0node_idEC_kwDOAjP5fdoAKGMxNTY0YTE4NWQ1ZTAxODFhZWUwNTExZTQ5Y2IwNzYwNGIyM2MzYzAcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-04T12:34:35Zu	committer}(jn_ 	Tom Papkejp_ tpapke@palantir.comjr_ 2023-07-04T12:34:35ZumessageYRename integration test
Remove duplicate tests
Extract metadata filtering into own methodtree}(jf_ (b5b4c086f9922d0387c5bfa48a8a7b7b647a84d0url`https://api.github.com/repos/palantir/atlasdb/git/trees/b5b4c086f9922d0387c5bfa48a8a7b7b647a84d0uj~_ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c1564a185d5e0181aee0511e49cb07604b23c3c0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSkEdsACgkQmF9s0kaF
Iw0F8Af9FlRz2KJkZcMAg0R5AHBPpuq8i/dUuCceIOpw0haXGjCwYJfkS4at8PgG
+SglMgdqSfZPnlSG/IxDNsP1Dad0oQxrlO4o9RtS/iz5doLxDuBHY68UODUZzO3c
3FPWIA4iJ/PxTOTj7seiRUPX6bTEzcVljvWrOzsTHCCK6es/D8B0wjybUqEUfCRp
367YK3PJxhIx0/Q3oNSfCD20ha+wzmnG7UpjvB3+eRbWCFL97LR+7G9zU1LGLJkk
KxeFn4PGpTav74f0DFlg+IfoRb1GGVqNCDyrKQlqXgWQ4gYE0yKTokMdK0Kh7321
f68xi2wRLuL+ZGFNx2VI9c8fqadzJw==
=DR1z
-----END PGP SIGNATURE-----payloadX,  tree b5b4c086f9922d0387c5bfa48a8a7b7b647a84d0
parent e1092e5c76c989e0360de20274fb117b4528ec32
author Tom Papke <tpapke@palantir.com> 1688474075 +0100
committer Tom Papke <tpapke@palantir.com> 1688474075 +0100

Rename integration test
Remove duplicate tests
Extract metadata filtering into own method
uuj~_ ^https://api.github.com/repos/palantir/atlasdb/commits/c1564a185d5e0181aee0511e49cb07604b23c3c0html_urlShttps://github.com/palantir/atlasdb/commit/c1564a185d5e0181aee0511e49cb07604b23c3c0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c1564a185d5e0181aee0511e49cb07604b23c3c0/commentsjl_ }(login	ToemmscheidJbojh_ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j~_ &https://api.github.com/users/Toemmschej_ https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujt_ }(j_ 	Toemmschej_ Jbojh_ MDQ6VXNlcjQzNjc1NDkwj_ 4https://avatars.githubusercontent.com/u/43675490?v=4j_ h5j~_ &https://api.github.com/users/Toemmschej_ https://github.com/Toemmschej_ 0https://api.github.com/users/Toemmsche/followersj_ =https://api.github.com/users/Toemmsche/following{/other_user}j_ 6https://api.github.com/users/Toemmsche/gists{/gist_id}j_ =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j_ 4https://api.github.com/users/Toemmsche/subscriptionsj_ +https://api.github.com/users/Toemmsche/orgsj_ ,https://api.github.com/users/Toemmsche/reposj_ 7https://api.github.com/users/Toemmsche/events{/privacy}j_ 6https://api.github.com/users/Toemmsche/received_eventsj_ Userj_ uparents]}(jf_ (e1092e5c76c989e0360de20274fb117b4528ec32j~_ ^https://api.github.com/repos/palantir/atlasdb/commits/e1092e5c76c989e0360de20274fb117b4528ec32j_ Shttps://github.com/palantir/atlasdb/commit/e1092e5c76c989e0360de20274fb117b4528ec32uastats}(totalK	additionsK 	deletionsK|ufiles](}(jf_ (a178115ef3bc05514c2e749f079a0077a81d99ebfilenameatimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javastatusmodifiedj_ Kj_ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/c1564a185d5e0181aee0511e49cb07604b23c3c0/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c1564a185d5e0181aee0511e49cb07604b23c3c0/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=c1564a185d5e0181aee0511e49cb07604b23c3c0patchX	  @@ -173,22 +173,25 @@ private void runIfDescriptorsMatchLockWatchesWithMetadata(
                 return;
             }
             // Filtering metadata after deciding if we should even proceed might save us some computation
-            Optional<LockRequestMetadata> filteredMetadata = unfilteredMetadata
-                    .map(LockRequestMetadata::lockDescriptorToChangeMetadata)
-                    .map(unfilteredLockMetadata -> {
-                        Map<LockDescriptor, ChangeMetadata> filteredLockMetadata = KeyedStream.ofEntries(
-                                        unfilteredLockMetadata.entrySet().stream())
-                                // For an efficient encoding, we enforce that metadata is never attached to a lock
-                                // descriptor that is not contained in the original request, so this lookup is
-                                // sufficient.
-                                // It is also cheaper than calling RangeSet::contains.
-                                .filterKeys(filteredLocks::contains)
-                                .collectToMap();
-                        return LockRequestMetadata.of(filteredLockMetadata);
-                    });
-            biConsumer.accept(filteredLocks, filteredMetadata);
+            biConsumer.accept(filteredLocks, filterMetadataBasedOnFilteredLocks(filteredLocks, unfilteredMetadata));
         } finally {
             watchesLock.readLock().unlock();
         }
     }
+
+    private static Optional<LockRequestMetadata> filterMetadataBasedOnFilteredLocks(
+            Set<LockDescriptor> filteredLocks, Optional<LockRequestMetadata> unfilteredMetadata) {
+        return unfilteredMetadata
+                .map(LockRequestMetadata::lockDescriptorToChangeMetadata)
+                .map(unfilteredLockMetadata -> {
+                    Map<LockDescriptor, ChangeMetadata> filteredLockMetadata = KeyedStream.ofEntries(
+                                    unfilteredLockMetadata.entrySet().stream())
+                            // For an efficient encoding, we enforce that metadata is never attached to a lock
+                            // descriptor that is not contained in the original request, so this lookup is sufficient.
+                            // It is also cheaper than calling RangeSet::contains.
+                            .filterKeys(filteredLocks::contains)
+                            .collectToMap();
+                    return LockRequestMetadata.of(filteredLockMetadata);
+                });
+    }
 }u}(jf_ (cfb74aa94a8ff47c298593f97f5fe981b2de5acaj_ ftimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataTest.javaj_ renamedj_ Kj_ Knj_ K}j_ https://github.com/palantir/atlasdb/blob/c1564a185d5e0181aee0511e49cb07604b23c3c0/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj_ https://github.com/palantir/atlasdb/raw/c1564a185d5e0181aee0511e49cb07604b23c3c0/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj_ https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.java?ref=c1564a185d5e0181aee0511e49cb07604b23c3c0j_ X%  @@ -33,10 +33,6 @@
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.client.IdentifiedLockRequest;
 import com.palantir.lock.client.ImmutableIdentifiedLockRequest;
-import com.palantir.lock.v2.LockResponseV2;
-import com.palantir.lock.v2.LockResponseV2.Successful;
-import com.palantir.lock.v2.LockResponseV2.Unsuccessful;
-import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.watch.ChangeMetadata;
 import com.palantir.lock.watch.LockEvent;
 import com.palantir.lock.watch.LockRequestMetadata;
@@ -49,7 +45,6 @@
 import com.palantir.lock.watch.UnlockEvent;
 import com.palantir.timestamp.InMemoryTimestampService;
 import java.nio.charset.StandardCharsets;
-import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
@@ -61,30 +56,16 @@
 import org.junit.Before;
 import org.junit.Test;
 
-public class AsyncTimeLockServiceMetadataIntegrationTest {
-    private static final TokenVisitor TOKEN_VISITOR = new TokenVisitor();
+public class AsyncTimeLockServiceMetadataTest {
     private static final LockWatchEventVisitor LOCK_WATCH_EVENT_VISITOR = new LockWatchEventVisitor();
     private static final LockWatchStateUpdateVisitor LOCK_WATCH_STATE_UPDATE_VISITOR =
             new LockWatchStateUpdateVisitor();
 
     private static final String WATCHED_TABLE_NAME = "watched-table";
-    private static final LockDescriptor WATCHED_LOCK_1 =
+    private static final LockDescriptor WATCHED_LOCK =
             AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, PtBytes.toBytes("lock1"));
-    private static final LockDescriptor WATCHED_LOCK_2 =
-            AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, PtBytes.toBytes("lock2"));
-    private static final LockDescriptor WATCHED_LOCK_3 =
-            AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, PtBytes.toBytes("lock3"));
-    private static final LockDescriptor WATCHED_LOCK_4 =
-            AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, PtBytes.toBytes("lock4"));
-    private static final Map<LockDescriptor, ChangeMetadata> ALL_WATCHED_LOCKS_WITH_METADATA = ImmutableMap.of(
-            WATCHED_LOCK_1,
-            ChangeMetadata.unchanged(),
-            WATCHED_LOCK_2,
-            ChangeMetadata.updated(PtBytes.toBytes("old"), PtBytes.toBytes("new")),
-            WATCHED_LOCK_3,
-            ChangeMetadata.deleted(PtBytes.toBytes("deleted")),
-            WATCHED_LOCK_4,
-            ChangeMetadata.created(PtBytes.toBytes("created")));
+    private static final Map<LockDescriptor, ChangeMetadata> ALL_WATCHED_LOCKS_WITH_METADATA =
+            ImmutableMap.of(WATCHED_LOCK, ChangeMetadata.updated(PtBytes.toBytes("old"), PtBytes.toBytes("new")));
     private static final String UNWATCHED_TABLE_NAME = "a-random-unwatched-table";
     private static final LockDescriptor UNWATCHED_LOCK_1 =
             AtlasRowLockDescriptor.of(UNWATCHED_TABLE_NAME, "lock1".getBytes(StandardCharsets.UTF_8));
@@ -113,30 +94,26 @@ public void setup() {
     }
 
     @Test
-    public void lockEventContainsMetadataFromRequestIfWatched() {
-        assertDone(timeLockService.lock(WATCHED_LOCK_REQUEST_WITH_METADATA));
+    public void absentMetadataIsPassedThrough() {
+        // this will create a lock request for 4 lock descriptors, but with absent metadata
+        IdentifiedLockRequest requestWithoutMetadata = ImmutableIdentifiedLockRequest.copyOf(
+                        standardRequestWithMetadata(ALL_WATCHED_LOCKS_WITH_METADATA))
+                .withMetadata(Optional.empty());
+        assertDone(timeLockService.lock(requestWithoutMetadata));
 
-        assertThat(getAllLockEventsMetadata())
-                .containsExactly(Optional.of(LockRequestMetadata.of(ALL_WATCHED_LOCKS_WITH_METADATA)));
+        assertThat(getAllLockEventsMetadata()).containsExactly(Optional.empty());
     }
 
     @Test
-    public void lockEventDoesNotContainMetadataThatIsNotWatched() {
-        IdentifiedLockRequest mixedRequest =
-                standardRequestWithMetadata(ImmutableMap.<LockDescriptor, ChangeMetadata>builder()
-                        .putAll(ALL_WATCHED_LOCKS_WITH_METADATA)
-                        .put(
-                                UNWATCHED_LOCK_1,
-                                ChangeMetadata.updated(
-                                        "bla".getBytes(StandardCharsets.UTF_8),
-                                        "blabla".getBytes(StandardCharsets.UTF_8)))
-                        .buildOrThrow());
-        assertDone(timeLockService.lock(mixedRequest));
+    public void metadataIsPassedThroughForWatchedTable() {
+        assertDone(timeLockService.lock(WATCHED_LOCK_REQUEST_WITH_METADATA));
 
         assertThat(getAllLockEventsMetadata())
                 .containsExactly(Optional.of(LockRequestMetadata.of(ALL_WATCHED_LOCKS_WITH_METADATA)));
     }
 
+    // This test is trivial for our current metadata constraints (metadata is only allowed for locks
+    // that are part of the original request), but we would also want this behavior if the constraints weren't there
     @Test
     public void noLockEventIsPublishedIfNothingIsWatched() {
         IdentifiedLockRequest mixedRequest = standardRequestWithMetadata(ImmutableMap.of(
@@ -148,62 +125,6 @@ public void noLockEventIsPublishedIfNothingIsWatched() {
         assertThat(getAllLockEventsMetadata()).isEmpty();
     }
 
-    @Test
-    public void canRetrieveMultipleEventsWithMetadata() {
-        List<Optional<LockRequestMetadata>> metadataList = new ArrayList<>();
-        ALL_WATCHED_LOCKS_WITH_METADATA.forEach((lock, metadata) -> {
-            Map<LockDescriptor, ChangeMetadata> map = ImmutableMap.of(lock, metadata);
-            IdentifiedLockRequest request = standardRequestWithMetadata(map);
-            assertDone(timeLockService.lock(request));
-            metadataList.add(Optional.of(LockRequestMetadata.of(map)));
-        });
-
-        assertThat(getAllLockEventsMetadata()).containsExactlyElementsOf(metadataList);
-    }
-
-    @Test
-    public void toleratesAndPassesDownAbsentMetadata() {
-        // this will create a lock request for 4 lock descriptors, but with absent metadata
-        IdentifiedLockRequest requestWithoutMetadata = ImmutableIdentifiedLockRequest.copyOf(
-                        standardRequestWithMetadata(ALL_WATCHED_LOCKS_WITH_METADATA))
-                .withMetadata(Optional.empty());
-        assertDone(timeLockService.lock(requestWithoutMetadata));
-
-        assertThat(getAllLockEventsMetadata()).containsExactly(Optional.empty());
-    }
-
-    @Test
-    public void canMixWithOtherLockWatchEventsAndAbsentMetadata() {
-        List<Optional<LockRequestMetadata>> metadataList = new ArrayList<>();
-        ALL_WATCHED_LOCKS_WITH_METADATA.forEach((lock, metadata) -> {
-            // -> LockWatchCreatedEvent
-            timeLockService.startWatching(LockWatchRequest.of(
-                    ImmutableSet.of(LockWatchReferences.entireTable("randomTable" + metadataList.size()))));
-
-            // -> LockEvent with metadata
-            Map<LockDescriptor, ChangeMetadata> map = ImmutableMap.of(lock, metadata);
-            IdentifiedLockRequest requestWithMetadata = standardRequestWithMetadata(map);
-            LockResponseV2 response = assertDone(timeLockService.lock(requestWithMetadata));
-            metadataList.add(Optional.of(LockRequestMetadata.of(map)));
-
-            // -> UnlockEvent
-            assertDone(timeLockService.unlock(ImmutableSet.of(getToken(response))));
-
-            // -> LockEvent with absent metadata
-            IdentifiedLockRequest requestWithoutMetadata = ImmutableIdentifiedLockRequest.copyOf(
-                            standardRequestWithMetadata(map))
-                    .withMetadata(Optional.empty());
-            response = assertDone(timeLockService.lock(requestWithoutMetadata));
-            metadataList.add(Optional.empty());
-
-            // -> UnlockEvent
-            assertDone(timeLockService.unlock(ImmutableSet.of(getToken(response))));
-        });
-
-        assertThat(getAllLockWatchEvents()).hasSize(5 * ALL_WATCHED_LOCKS_WITH_METADATA.size());
-        assertThat(getAllLockEventsMetadata()).containsExactlyElementsOf(metadataList);
-    }
-
     private List<Optional<LockRequestMetadata>> getAllLockEventsMetadata() {
         return getAllLockWatchEvents().stream()
                 .map(event -> event.accept(LOCK_WATCH_EVENT_VISITOR))
@@ -228,26 +149,10 @@ private static <T> T assertDone(Future<T> future) {
         }
     }
 
-    private static LockToken getToken(LockResponseV2 response) {
-        return response.accept(TOKEN_VISITOR).orElseThrow();
-    }
-
     private static IdentifiedLockRequest standardRequestWithMetadata(Map<LockDescriptor, ChangeMetadata> metadata) {
         return IdentifiedLockRequest.of(metadata.keySet(), 1000, "testClient", LockRequestMetadata.of(metadata));
     }
 
-    private static final class TokenVisitor implements LockResponseV2.Visitor<Optional<LockToken>> {
-        @Override
-        public Optional<LockToken> visit(Successful successful) {
-            return Optional.of(successful.getToken());
-        }
-
-        @Override
-        public Optional<LockToken> visit(Unsuccessful failure) {
-            return Optional.empty();
-        }
-    }
-
     private static final class LockWatchEventVisitor implements LockWatchEvent.Visitor<Optional<LockEvent>> {
         @Override
         public Optional<LockEvent> visit(LockEvent lockEvent) {previous_filenameqtimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataIntegrationTest.javaueu(b7ae7fc524208ab2d56a9f602040439421aeb300}(sha(b7ae7fc524208ab2d56a9f602040439421aeb300node_idEC_kwDOAjP5fdoAKGI3YWU3ZmM1MjQyMDhhYjJkNTZhOWY2MDIwNDA0Mzk0MjFhZWIzMDAcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-07-20T15:55:22Zu	committer}(j_ Tom Petraccaj_ tpetracca@palantir.comj_ 2023-08-08T14:45:52Zumessage$multi-node embedded is not supportedtree}(j_ (80c5d021ff70491240cd902a482047f69c533268url`https://api.github.com/repos/palantir/atlasdb/git/trees/80c5d021ff70491240cd902a482047f69c533268uj_ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b7ae7fc524208ab2d56a9f602040439421aeb300
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEHTC5rqjQ6qmsb7sZRnUGJaXvqFMFAmTSVSEACgkQRnUGJaXv
qFMZjAgAz4bDBbhUE5DOsq+2W7P7r12Svc9qM4dhtrGjEAocKrWOhXR/Gh9gn71q
aDsTSTtSAb1ySRgfRN/jph4hx3iijjQM5AVHWw0azNYAoXvIA0j0KCzSNWkJTR3I
oFmF9rqtsfE7hU7NX9k3DQ5zNTCKUYaL9V5ngbZJfMPslFYQdecU3ehdIKx97mKv
ppKGmw+4u1l1RvdF6aMrFfCdN4hYTPSurNQ2BR3+OWj/IZ/OfuXMd9CqPOWBA92a
0RM81tK1o8m+Clepkw1gN3X8F6aGsFuHIXpTDlLXQEtX+34z++Khy8zbkPo5GTDr
eyz0TLpxz3gGrDucSSoo4IXl9GHZ9w==
=0EwQ
-----END PGP SIGNATURE-----payloadX  tree 80c5d021ff70491240cd902a482047f69c533268
parent e856c6795f27c92a4f037fcfc7bed83c0283d0a2
author Tom Petracca <tpetracca@palantir.com> 1689868522 -0400
committer Tom Petracca <tpetracca@palantir.com> 1691505952 -0400

multi-node embedded is not supported
uuj_ ^https://api.github.com/repos/palantir/atlasdb/commits/b7ae7fc524208ab2d56a9f602040439421aeb300html_urlShttps://github.com/palantir/atlasdb/commit/b7ae7fc524208ab2d56a9f602040439421aeb300comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b7ae7fc524208ab2d56a9f602040439421aeb300/commentsj_ }(login	tpetraccaidJ& j_ MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5j_ &https://api.github.com/users/tpetraccaj
` https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminuj_ }(j` 	tpetraccaj` J& j_ MDQ6VXNlcjI1NTQzMjg=j` 3https://avatars.githubusercontent.com/u/2554328?v=4j` h5j_ &https://api.github.com/users/tpetraccaj
` https://github.com/tpetraccaj` 0https://api.github.com/users/tpetracca/followersj` =https://api.github.com/users/tpetracca/following{/other_user}j` 6https://api.github.com/users/tpetracca/gists{/gist_id}j!` =https://api.github.com/users/tpetracca/starred{/owner}{/repo}j#` 4https://api.github.com/users/tpetracca/subscriptionsj%` +https://api.github.com/users/tpetracca/orgsj'` ,https://api.github.com/users/tpetracca/reposj)` 7https://api.github.com/users/tpetracca/events{/privacy}j+` 6https://api.github.com/users/tpetracca/received_eventsj-` Userj/` uparents]}(j_ (e856c6795f27c92a4f037fcfc7bed83c0283d0a2j_ ^https://api.github.com/repos/palantir/atlasdb/commits/e856c6795f27c92a4f037fcfc7bed83c0283d0a2j
` Shttps://github.com/palantir/atlasdb/commit/e856c6795f27c92a4f037fcfc7bed83c0283d0a2uastats}(totalM	additionsK	deletionsMufiles](}(j_ (cfb38853d55f927f0cbcfb18f754fff9afb29d65filenameGatlasdb-api/src/main/java/com/palantir/atlasdb/config/LeaderConfig.javastatusmodifiedjI` KjJ` KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/b7ae7fc524208ab2d56a9f602040439421aeb300/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FLeaderConfig.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b7ae7fc524208ab2d56a9f602040439421aeb300/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FLeaderConfig.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FLeaderConfig.java?ref=b7ae7fc524208ab2d56a9f602040439421aeb300patchX\  @@ -98,13 +98,8 @@ public Duration leaderAddressCacheTtl() {
     @Value.Check
     protected final void check() {
         Preconditions.checkState(
-                quorumSize() > leaders().size() / 2,
-                "The quorumSize must be over half the amount of leader entries.",
-                SafeArg.of("quorumSize", quorumSize()),
-                SafeArg.of("leaders", leaders()));
-        Preconditions.checkState(
-                leaders().size() >= quorumSize(),
-                "The quorumSize must be less than or equal to the amount of leader entries.",
+                quorumSize() == 1 && leaders().size() == 1,
+                "AtlasDb no longer supports multi-node embedded services",
                 SafeArg.of("quorumSize", quorumSize()),
                 SafeArg.of("leaders", leaders()));
         Preconditions.checkArgument(u}(j_ (a47b3ba1cfacc79d33cc6f8d1241cb3f55d96af8jO` atlasdb-config/build.gradlejQ` modifiedjI` K jJ` KjS` KjT` ohttps://github.com/palantir/atlasdb/blob/b7ae7fc524208ab2d56a9f602040439421aeb300/atlasdb-config%2Fbuild.gradlejV` nhttps://github.com/palantir/atlasdb/raw/b7ae7fc524208ab2d56a9f602040439421aeb300/atlasdb-config%2Fbuild.gradlejX` https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fbuild.gradle?ref=b7ae7fc524208ab2d56a9f602040439421aeb300jZ` Xm  @@ -6,7 +6,6 @@ dependencies {
     api project(':timestamp-client')
     api project(':atlasdb-conjure')
     implementation project(':atlasdb-impl-shared')
-    implementation project(':leader-election-impl')
     implementation project(':lock-impl')
 
     implementation 'jakarta.validation:jakarta.validation-api'
@@ -47,10 +46,8 @@ dependencies {
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-commons')
     implementation project(':atlasdb-coordination-impl')
-    implementation project(':atlasdb-remoting-api')
     implementation project(':commons-annotations')
     implementation project(':commons-executors')
-    implementation project(':leader-election-api')
     implementation project(':lock-api')
     implementation project(':lock-api-objects')
     implementation project(':lock-conjure-api:lock-conjure-api-dialogue')u}(j_ (470541fafd9be1931d9ba5794dbd8416c37ce64cjO` datlasdb-config/src/main/java/com/palantir/atlasdb/factory/DefaultLockAndTimestampServiceFactory.javajQ` modifiedjI` KjJ` KjS` KjT` https://github.com/palantir/atlasdb/blob/b7ae7fc524208ab2d56a9f602040439421aeb300/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javajV` https://github.com/palantir/atlasdb/raw/b7ae7fc524208ab2d56a9f602040439421aeb300/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javajX` https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java?ref=b7ae7fc524208ab2d56a9f602040439421aeb300jZ` X=  @@ -17,23 +17,15 @@
 package com.palantir.atlasdb.factory;
 
 import com.google.common.base.Suppliers;
-import com.google.common.collect.Iterables;
-import com.google.common.util.concurrent.Uninterruptibles;
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.config.AtlasDbRuntimeConfig;
-import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
-import com.palantir.atlasdb.config.ImmutableServerListConfig;
-import com.palantir.atlasdb.config.LeaderConfig;
-import com.palantir.atlasdb.config.RemotingClientConfigs;
 import com.palantir.atlasdb.config.ServerListConfig;
 import com.palantir.atlasdb.config.ServerListConfigs;
 import com.palantir.atlasdb.config.TimeLockClientConfig;
 import com.palantir.atlasdb.config.TimeLockRequestBatcherProviders;
 import com.palantir.atlasdb.debug.LockDiagnosticComponents;
 import com.palantir.atlasdb.debug.LockDiagnosticConjureTimelockService;
-import com.palantir.atlasdb.factory.Leaders.LocalPaxosServices;
 import com.palantir.atlasdb.factory.startup.TimeLockMigrator;
-import com.palantir.atlasdb.http.AtlasDbHttpClients;
 import com.palantir.atlasdb.keyvalue.api.LockWatchCachingConfig;
 import com.palantir.atlasdb.keyvalue.api.watch.LockWatchManagerInternal;
 import com.palantir.atlasdb.table.description.Schema;
@@ -43,11 +35,7 @@
 import com.palantir.atlasdb.util.AtlasDbMetrics;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.conjure.java.api.config.service.UserAgent;
-import com.palantir.conjure.java.api.errors.UnknownRemoteException;
 import com.palantir.dialogue.clients.DialogueClients.ReloadingFactory;
-import com.palantir.leader.PingableLeader;
-import com.palantir.leader.proxy.AwaitingLeadershipProxy;
-import com.palantir.leader.proxy.LeadershipCoordinator;
 import com.palantir.lock.LockRpcClient;
 import com.palantir.lock.LockService;
 import com.palantir.lock.NamespaceAgnosticLockRpcClient;
@@ -81,34 +69,22 @@
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.refreshable.Refreshable;
 import com.palantir.timestamp.ManagedTimestampService;
 import com.palantir.timestamp.RemoteTimestampManagementAdapter;
 import com.palantir.timestamp.TimestampManagementService;
-import com.palantir.timestamp.TimestampRange;
 import com.palantir.timestamp.TimestampService;
 import com.palantir.timestamp.TimestampStoreInvalidator;
 import com.palantir.util.OptionalResolver;
-import java.time.Duration;
 import java.util.Optional;
 import java.util.Set;
-import java.util.concurrent.CompletableFuture;
-import java.util.function.Consumer;
 import java.util.function.Function;
 import java.util.function.Supplier;
-import javax.ws.rs.ClientErrorException;
 
 public final class DefaultLockAndTimestampServiceFactory implements LockAndTimestampServiceFactory {
-    private static final SafeLogger log = SafeLoggerFactory.get(DefaultLockAndTimestampServiceFactory.class);
-
-    private static final int ATTEMPTS_BEFORE_LOGGING_FAILURE_TO_READ_REMOTE_TIMESTAMP_SERVER_ID = 60;
-
     private final MetricsManager metricsManager;
     private final AtlasDbConfig config;
     private final Refreshable<AtlasDbRuntimeConfig> runtimeConfig;
-    private final Consumer<Object> registrar;
     private final Supplier<LockService> lock;
     private final Supplier<ManagedTimestampService> time;
     private final TimestampStoreInvalidator invalidator;
@@ -125,7 +101,6 @@ public DefaultLockAndTimestampServiceFactory(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
-            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -139,7 +114,6 @@ public DefaultLockAndTimestampServiceFactory(
                 metricsManager,
                 config,
                 runtimeConfig,
-                registrar,
                 lock,
                 time,
                 invalidator,
@@ -156,7 +130,6 @@ public DefaultLockAndTimestampServiceFactory(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
-            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -170,7 +143,6 @@ public DefaultLockAndTimestampServiceFactory(
         this.metricsManager = metricsManager;
         this.config = config;
         this.runtimeConfig = runtimeConfig;
-        this.registrar = registrar;
         this.lock = lock;
         this.time = time;
         this.invalidator = invalidator;
@@ -189,7 +161,6 @@ public LockAndTimestampServices createLockAndTimestampServices() {
                 metricsManager,
                 config,
                 runtimeConfig,
-                registrar,
                 lock,
                 time,
                 invalidator,
@@ -233,7 +204,6 @@ static LockAndTimestampServices createRawInstrumentedServices(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
-            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -245,8 +215,9 @@ static LockAndTimestampServices createRawInstrumentedServices(
             Set<Schema> knownSchemas) {
         AtlasDbRuntimeConfig initialRuntimeConfig = runtimeConfig.get();
         assertNoSpuriousTimeLockBlockInRuntimeConfig(config, initialRuntimeConfig);
-        if (config.leader().isPresent()) {
-            return createRawLeaderServices(metricsManager, config.leader().get(), registrar, lock, time, userAgent);
+        if (config.leader().isPresent()) { // 1-node leader config
+            // equivalent to raw embedded; multi-node leader is not supported
+            return createRawEmbeddedServices(metricsManager, lock, time);
         } else if (config.timestamp().isPresent() && config.lock().isPresent()) {
             return createRawRemoteServices(metricsManager, config, runtimeConfig, userAgent);
         } else if (TransactionManagers.isUsingTimeLock(config, initialRuntimeConfig)) {
@@ -261,7 +232,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
                     timeLockFeedbackBackgroundTask,
                     timelockRequestBatcherProviders,
                     knownSchemas);
-        } else {
+        } else { // raw embedded, i.e. embedded with no leader config
             return createRawEmbeddedServices(metricsManager, lock, time);
         }
     }
@@ -444,157 +415,6 @@ private static Supplier<InternalMultiClientConjureTimelockService> getMultiClien
                 serviceProvider.getMultiClientConjureTimelockService()));
     }
 
-    private static LockAndTimestampServices createRawLeaderServices(
-            MetricsManager metricsManager,
-            LeaderConfig leaderConfig,
-            Consumer<Object> registrar,
-            Supplier<LockService> lock,
-            Supplier<ManagedTimestampService> time,
-            UserAgent userAgent) {
-        // Create local services, that may or may not end up being registered in an Consumer<Object>.
-        LocalPaxosServices localPaxosServices =
-                Leaders.createAndRegisterLocalServices(metricsManager, registrar, leaderConfig, userAgent);
-
-        LeadershipCoordinator leadershipCoordinator = localPaxosServices.leadershipCoordinator();
-        LockService localLock =
-                AwaitingLeadershipProxy.newProxyInstance(LockService.class, lock, leadershipCoordinator);
-
-        ManagedTimestampService managedTimestampProxy =
-                AwaitingLeadershipProxy.newProxyInstance(ManagedTimestampService.class, time, leadershipCoordinator);
-
-        // These facades are necessary because of the semantics of the JAX-RS algorithm (in particular, accepting
-        // just the managed timestamp service will *not* work).
-        TimestampService localTime = getTimestampFacade(managedTimestampProxy);
-        TimestampManagementService localManagement = getTimestampManagementFacade(managedTimestampProxy);
-
-        registrar.accept(localLock);
-        registrar.accept(localTime);
-        registrar.accept(localManagement);
-
-        // Create remote services, that may end up calling our own local services.
-        ImmutableServerListConfig serverListConfig = ImmutableServerListConfig.builder()
-                .servers(leaderConfig.leaders())
-                .sslConfiguration(leaderConfig.sslConfiguration())
-                .build();
-        ServiceCreator creator = ServiceCreator.noPayloadLimiter(
-                metricsManager, Refreshable.only(serverListConfig), userAgent, () -> RemotingClientConfigs.DEFAULT);
-        LockService remoteLock =
-                new RemoteLockServiceAdapter(creator.createService(NamespaceAgnosticLockRpcClient.class));
-        TimestampService remoteTime = creator.createService(TimestampService.class);
-        TimestampManagementService remoteManagement = creator.createService(TimestampManagementService.class);
-
-        if (leaderConfig.leaders().size() == 1) {
-            // Attempting to connect to ourself while processing a request can lead to deadlock if incoming request
-            // volume is high, as all Jetty threads end up waiting for the timestamp server, and no threads remain to
-            // actually handle the timestamp server requests. If we are the only single leader, we can avoid the
-            // deadlock entirely; so use PingableLeader's getUUID() to detect this situation and eliminate the redundant
-            // call.
-
-            PingableLeader localPingableLeader = localPaxosServices.localPingableLeader();
-            String localServerId = localPingableLeader.getUUID();
-            PingableLeader remotePingableLeader = AtlasDbHttpClients.createProxy(
-                    ServiceCreator.createTrustContext(leaderConfig.sslConfiguration()),
-                    Iterables.getOnlyElement(leaderConfig.leaders()),
-                    PingableLeader.class,
-                    AuxiliaryRemotingParameters.builder()
-                            .userAgent(userAgent)
-                            .shouldRetry(true)
-                            .shouldLimitPayload(true)
-                            .shouldUseExtendedTimeout(false)
-                            .build());
-
-            // Determine asynchronously whether the remote services are talking to our local services.
-            CompletableFuture<Boolean> useLocalServicesFuture = new CompletableFuture<>();
-            TransactionManagers.runAsync.accept(() -> {
-                int attemptsLeftBeforeLog = ATTEMPTS_BEFORE_LOGGING_FAILURE_TO_READ_REMOTE_TIMESTAMP_SERVER_ID;
-                while (true) {
-                    try {
-                        String remoteServerId = remotePingableLeader.getUUID();
-                        useLocalServicesFuture.complete(localServerId.equals(remoteServerId));
-                        return;
-                    } catch (ClientErrorException e) {
-                        useLocalServicesFuture.complete(false);
-                        return;
-                    } catch (UnknownRemoteException e) {
-                        // This is done to replicate previous behaviour, where 4xxs returned to a JaxRsClient would
-                        // manifest as ClientErrorExceptions.
-                        if (400 <= e.getStatus() && e.getStatus() <= 499) {
-                            useLocalServicesFuture.complete(false);
-                            return;
-                        }
-                        attemptsLeftBeforeLog = logFailureToReadRemoteTimestampServerId(attemptsLeftBeforeLog, e);
-                    } catch (Throwable e) {
-                        attemptsLeftBeforeLog = logFailureToReadRemoteTimestampServerId(attemptsLeftBeforeLog, e);
-                    }
-                    Uninterruptibles.sleepUninterruptibly(Duration.ofSeconds(1));
-                }
-            });
-
-            // Create dynamic service proxies, that switch to talking directly to our local services if it turns out our
-            // remote services are pointed at them anyway.
-            LockService dynamicLockService = LocalOrRemoteProxy.newProxyInstance(
-                    LockService.class, localLock, remoteLock, useLocalServicesFuture);
-
-            // Use managedTimestampProxy here to avoid local calls going through indirection.
-            TimestampService dynamicTimeService = LocalOrRemoteProxy.newProxyInstance(
-                    TimestampService.class, managedTimestampProxy, remoteTime, useLocalServicesFuture);
-            TimestampManagementService dynamicManagementService = LocalOrRemoteProxy.newProxyInstance(
-                    TimestampManagementService.class, managedTimestampProxy, remoteManagement, useLocalServicesFuture);
-            return ImmutableLockAndTimestampServices.builder()
-                    .lock(dynamicLockService)
-                    .timestamp(dynamicTimeService)
-                    .timestampManagement(dynamicManagementService)
-                    .timelock(new LegacyTimelockService(
-                            dynamicTimeService, dynamicLockService, TransactionManagers.LOCK_CLIENT))
-                    .build();
-
-        } else {
-            return ImmutableLockAndTimestampServices.builder()
-                    .lock(remoteLock)
-                    .timestamp(remoteTime)
-                    .timestampManagement(remoteManagement)
-                    .timelock(new LegacyTimelockService(remoteTime, remoteLock, TransactionManagers.LOCK_CLIENT))
-                    .build();
-        }
-    }
-
-    private static TimestampService getTimestampFacade(ManagedTimestampService managedTimestampService) {
-        return new TimestampService() {
-            @Override
-            public long getFreshTimestamp() {
-                return managedTimestampService.getFreshTimestamp();
-            }
-
-            @Override
-            public TimestampRange getFreshTimestamps(int numTimestampsRequested) {
-                return managedTimestampService.getFreshTimestamps(numTimestampsRequested);
-            }
-        };
-    }
-
-    private static TimestampManagementService getTimestampManagementFacade(
-            ManagedTimestampService managedTimestampService) {
-        return new TimestampManagementService() {
-            @Override
-            public void fastForwardTimestamp(long currentTimestamp) {
-                managedTimestampService.fastForwardTimestamp(currentTimestamp);
-            }
-
-            @Override
-            public String ping() {
-                return managedTimestampService.ping();
-            }
-        };
-    }
-
-    private static int logFailureToReadRemoteTimestampServerId(int attemptsLeftBeforeLog, Throwable th) {
-        if (attemptsLeftBeforeLog == 0) {
-            log.warn("Failed to read remote timestamp server ID", th);
-            return ATTEMPTS_BEFORE_LOGGING_FAILURE_TO_READ_REMOTE_TIMESTAMP_SERVER_ID;
-        }
-        return attemptsLeftBeforeLog - 1;
-    }
-
     private static LockAndTimestampServices createRawRemoteServices(
             MetricsManager metricsManager,
             AtlasDbConfig config,u}(j_ (92cee3c0379971de0a91702380e2b466da96ff6bjO` Fatlasdb-config/src/main/java/com/palantir/atlasdb/factory/Leaders.javajQ` removedjI` K jJ` M6jS` M6jT` https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.javajV` https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.javajX` https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jZ` X48  @@ -1,310 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.factory;
-
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Iterables;
-import com.google.common.collect.Sets;
-import com.google.common.net.HostAndPort;
-import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
-import com.palantir.atlasdb.config.LeaderConfig;
-import com.palantir.atlasdb.config.RemotingClientConfig;
-import com.palantir.atlasdb.config.RemotingClientConfigs;
-import com.palantir.atlasdb.http.AtlasDbHttpClients;
-import com.palantir.atlasdb.http.NotCurrentLeaderExceptionMapper;
-import com.palantir.atlasdb.util.AtlasDbMetrics;
-import com.palantir.atlasdb.util.MetricsManager;
-import com.palantir.common.concurrent.PTExecutors;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.conjure.java.api.config.service.UserAgent;
-import com.palantir.conjure.java.config.ssl.TrustContext;
-import com.palantir.leader.BatchingLeaderElectionService;
-import com.palantir.leader.LeaderElectionService;
-import com.palantir.leader.LeaderElectionServiceBuilder;
-import com.palantir.leader.LeadershipObserver;
-import com.palantir.leader.LocalPingableLeader;
-import com.palantir.leader.PaxosLeadershipEventRecorder;
-import com.palantir.leader.PingableLeader;
-import com.palantir.leader.proxy.LeadershipCoordinator;
-import com.palantir.paxos.ImmutableLeaderPingerContext;
-import com.palantir.paxos.LeaderPinger;
-import com.palantir.paxos.LeaderPingerContext;
-import com.palantir.paxos.PaxosAcceptor;
-import com.palantir.paxos.PaxosAcceptorImpl;
-import com.palantir.paxos.PaxosAcceptorNetworkClient;
-import com.palantir.paxos.PaxosConstants;
-import com.palantir.paxos.PaxosLearner;
-import com.palantir.paxos.PaxosLearnerImpl;
-import com.palantir.paxos.PaxosLearnerNetworkClient;
-import com.palantir.paxos.PaxosProposer;
-import com.palantir.paxos.SingleLeaderAcceptorNetworkClient;
-import com.palantir.paxos.SingleLeaderLearnerNetworkClient;
-import com.palantir.paxos.SingleLeaderPinger;
-import java.net.URI;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.UUID;
-import java.util.concurrent.ExecutorService;
-import java.util.function.Consumer;
-import java.util.function.Supplier;
-import java.util.stream.Collectors;
-import org.immutables.value.Value;
-
-public final class Leaders {
-    private Leaders() {
-        // Utility class
-    }
-
-    /**
-     * Creates a LeaderElectionService using the supplied configuration and registers appropriate endpoints for that
-     * service.
-     */
-    public static LocalPaxosServices createAndRegisterLocalServices(
-            MetricsManager metricsManager, Consumer<Object> registrar, LeaderConfig config, UserAgent userAgent) {
-        LocalPaxosServices localPaxosServices = createInstrumentedLocalServices(metricsManager, config, userAgent);
-
-        registrar.accept(localPaxosServices.ourAcceptor());
-        registrar.accept(localPaxosServices.ourLearner());
-        registrar.accept(localPaxosServices.localPingableLeader());
-        registrar.accept(new NotCurrentLeaderExceptionMapper());
-        return localPaxosServices;
-    }
-
-    public static LocalPaxosServices createInstrumentedLocalServices(
-            MetricsManager metricsManager, LeaderConfig config, UserAgent userAgent) {
-        Set<String> remoteLeaderUris = new HashSet<>(config.leaders());
-        remoteLeaderUris.remove(config.localServer());
-
-        RemotePaxosServerSpec remotePaxosServerSpec = ImmutableRemotePaxosServerSpec.builder()
-                .remoteLeaderUris(remoteLeaderUris)
-                .remoteAcceptorUris(remoteLeaderUris)
-                .remoteLearnerUris(remoteLeaderUris)
-                .build();
-        return createInstrumentedLocalServices(
-                metricsManager,
-                config,
-                remotePaxosServerSpec,
-                () -> RemotingClientConfigs.DEFAULT,
-                userAgent,
-                LeadershipObserver.NO_OP);
-    }
-
-    public static LocalPaxosServices createInstrumentedLocalServices(
-            MetricsManager metricsManager,
-            LeaderConfig config,
-            RemotePaxosServerSpec remotePaxosServerSpec,
-            Supplier<RemotingClientConfig> remotingClientConfig,
-            UserAgent userAgent,
-            LeadershipObserver leadershipObserver) {
-        UUID leaderUuid = UUID.randomUUID();
-
-        PaxosLeadershipEventRecorder leadershipEventRecorder = PaxosLeadershipEventRecorder.create(
-                metricsManager.getTaggedRegistry(), leaderUuid.toString(), leadershipObserver, ImmutableList.of());
-
-        PaxosAcceptor ourAcceptor = AtlasDbMetrics.instrumentTimed(
-                metricsManager.getRegistry(),
-                PaxosAcceptor.class,
-                PaxosAcceptorImpl.newAcceptor(config.acceptorLogDir().getPath()));
-        PaxosLearner ourLearner = AtlasDbMetrics.instrumentTimed(
-                metricsManager.getRegistry(),
-                PaxosLearner.class,
-                PaxosLearnerImpl.newLearner(config.learnerLogDir().getPath(), leadershipEventRecorder));
-
-        Optional<TrustContext> trustContext = ServiceCreator.createTrustContext(config.sslConfiguration());
-
-        List<PaxosLearner> learners = createProxyAndLocalList(
-                ourLearner,
-                remotePaxosServerSpec.remoteLearnerUris(),
-                remotingClientConfig,
-                trustContext,
-                PaxosLearner.class,
-                userAgent);
-        List<PaxosLearner> remoteLearners = learners.stream()
-                .filter(learner -> !learner.equals(ourLearner))
-                .collect(ImmutableList.toImmutableList());
-        PaxosLearnerNetworkClient learnerNetworkClient = SingleLeaderLearnerNetworkClient.createLegacy(
-                ourLearner,
-                remoteLearners,
-                config.quorumSize(),
-                createExecutorsForService(metricsManager, learners, "knowledge-update"),
-                PaxosConstants.CANCEL_REMAINING_CALLS);
-
-        List<PaxosAcceptor> acceptors = createProxyAndLocalList(
-                ourAcceptor,
-                remotePaxosServerSpec.remoteAcceptorUris(),
-                remotingClientConfig,
-                trustContext,
-                PaxosAcceptor.class,
-                userAgent);
-        PaxosAcceptorNetworkClient acceptorNetworkClient = SingleLeaderAcceptorNetworkClient.createLegacy(
-                acceptors,
-                config.quorumSize(),
-                createExecutorsForService(metricsManager, acceptors, "latest-round-verifier"),
-                PaxosConstants.CANCEL_REMAINING_CALLS);
-
-        List<LeaderPingerContext<PingableLeader>> otherLeaders = generatePingables(
-                remotePaxosServerSpec.remoteLeaderUris(), remotingClientConfig, trustContext, userAgent);
-
-        LeaderPinger leaderPinger = SingleLeaderPinger.createLegacy(
-                createExecutorsForService(metricsManager, otherLeaders, "leader-ping"),
-                config.leaderPingResponseWait(),
-                leaderUuid,
-                PaxosConstants.CANCEL_REMAINING_CALLS);
-
-        LeaderElectionService uninstrumentedLeaderElectionService = new LeaderElectionServiceBuilder()
-                .leaderUuid(leaderUuid)
-                .knowledge(ourLearner)
-                .eventRecorder(leadershipEventRecorder)
-                .randomWaitBeforeProposingLeadership(config.randomWaitBeforeProposingLeadership())
-                .pingRate(config.pingRate())
-                .leaderPinger(leaderPinger)
-                .acceptorClient(acceptorNetworkClient)
-                .learnerClient(learnerNetworkClient)
-                .decorateProposer(proposer ->
-                        AtlasDbMetrics.instrumentTimed(metricsManager.getRegistry(), PaxosProposer.class, proposer))
-                .leaderAddressCacheTtl(config.leaderAddressCacheTtl())
-                .build();
-
-        LeaderElectionService leaderElectionService = AtlasDbMetrics.instrumentTimed(
-                metricsManager.getRegistry(), LeaderElectionService.class, uninstrumentedLeaderElectionService);
-        PingableLeader pingableLeader = AtlasDbMetrics.instrumentTimed(
-                metricsManager.getRegistry(), PingableLeader.class, new LocalPingableLeader(ourLearner, leaderUuid));
-
-        List<PingableLeader> remotePingableLeaders =
-                otherLeaders.stream().map(LeaderPingerContext::pinger).collect(Collectors.toList());
-        BatchingLeaderElectionService batchingLeaderElectionService =
-                new BatchingLeaderElectionService(leaderElectionService);
-        return ImmutableLocalPaxosServices.builder()
-                .ourAcceptor(ourAcceptor)
-                .ourLearner(ourLearner)
-                .leaderElectionService(batchingLeaderElectionService)
-                .leadershipCoordinator(LeadershipCoordinator.create(batchingLeaderElectionService))
-                .localPingableLeader(pingableLeader)
-                .remotePingableLeaders(remotePingableLeaders)
-                .build();
-    }
-
-    private static <T> Map<T, ExecutorService> createExecutorsForService(
-            MetricsManager metricsManager, List<T> services, String useCase) {
-        Map<T, ExecutorService> executors = new HashMap<>();
-        for (int index = 0; index < services.size(); index++) {
-            String indexedUseCase = String.format("%s-%d", useCase, index);
-            executors.put(services.get(index), createExecutor(metricsManager, indexedUseCase, services.size()));
-        }
-        return executors;
-    }
-
-    // TODO (jkong): Make the limits configurable.
-    // Current use cases tend to have not more than 10 (<< 100) inflight tasks under normal circumstances.
-    private static ExecutorService createExecutor(MetricsManager metricsManager, String useCase, int corePoolSize) {
-        return PTExecutors.newCachedThreadPoolWithMaxThreads(100, "atlas-leaders-election-" + useCase);
-    }
-
-    public static <T> List<T> createProxyAndLocalList(
-            T localObject,
-            Set<String> remoteUris,
-            Supplier<RemotingClientConfig> remotingClientConfig,
-            Optional<TrustContext> trustContext,
-            Class<T> clazz,
-            UserAgent userAgent) {
-
-        // TODO (jkong): Enable runtime config for leader election services.
-        List<T> remotes = remoteUris.stream()
-                .map(uri -> AtlasDbHttpClients.createProxy(
-                        trustContext,
-                        uri,
-                        clazz,
-                        AuxiliaryRemotingParameters.builder()
-                                .userAgent(userAgent)
-                                .shouldLimitPayload(false)
-                                .shouldRetry(true)
-                                .shouldUseExtendedTimeout(false)
-                                .remotingClientConfig(remotingClientConfig)
-                                .build()))
-                .collect(Collectors.toList());
-
-        return ImmutableList.copyOf(Iterables.concat(remotes, ImmutableList.of(localObject)));
-    }
-
-    public static List<LeaderPingerContext<PingableLeader>> generatePingables(
-            Collection<String> remoteEndpoints,
-            Supplier<RemotingClientConfig> remotingClientConfig,
-            Optional<TrustContext> trustContext,
-            UserAgent userAgent) {
-        return KeyedStream.of(remoteEndpoints)
-                .mapKeys(endpoint -> AtlasDbHttpClients.createProxy(
-                        trustContext,
-                        endpoint,
-                        PingableLeader.class,
-                        AuxiliaryRemotingParameters.builder()
-                                .userAgent(userAgent)
-                                .shouldLimitPayload(false) // Guaranteed to be small, no need to limit.
-                                .shouldRetry(false)
-                                .shouldUseExtendedTimeout(false)
-                                .remotingClientConfig(remotingClientConfig)
-                                .build()))
-                .map(Leaders::convertAddressToHostAndPort)
-                .map(ImmutableLeaderPingerContext::of)
-                .values()
-                .collect(Collectors.toList());
-    }
-
-    private static HostAndPort convertAddressToHostAndPort(String url) {
-        URI uri = URI.create(url);
-        return HostAndPort.fromParts(uri.getHost(), uri.getPort());
-    }
-
-    @Value.Immutable
-    public interface LocalPaxosServices {
-        PaxosAcceptor ourAcceptor();
-
-        PaxosLearner ourLearner();
-
-        @Deprecated
-        LeaderElectionService leaderElectionService();
-
-        LeadershipCoordinator leadershipCoordinator();
-
-        PingableLeader localPingableLeader();
-
-        Set<PingableLeader> remotePingableLeaders();
-
-        @Value.Derived
-        default Supplier<Boolean> isCurrentSuspectedLeader() {
-            return localPingableLeader()::ping;
-        }
-
-        @Value.Derived
-        default Set<PingableLeader> allPingableLeaders() {
-            return Sets.union(ImmutableSet.of(localPingableLeader()), remotePingableLeaders());
-        }
-    }
-
-    @Value.Immutable
-    public interface RemotePaxosServerSpec {
-        Set<String> remoteLeaderUris();
-
-        Set<String> remoteAcceptorUris();
-
-        Set<String> remoteLearnerUris();
-    }
-}u}(j_ (f24cc5a2b37012a1bf2d59fdfc1223d4021c3c1ajO` Qatlasdb-config/src/main/java/com/palantir/atlasdb/factory/LocalOrRemoteProxy.javajQ` removedjI` K jJ` K`jS` K`jT` https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLocalOrRemoteProxy.javajV` https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLocalOrRemoteProxy.javajX` https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLocalOrRemoteProxy.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jZ` X  @@ -1,96 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.factory;
-
-import com.google.common.reflect.AbstractInvocationHandler;
-import com.google.common.util.concurrent.Uninterruptibles;
-import com.palantir.leader.NotCurrentLeaderException;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-import java.lang.reflect.Proxy;
-import java.time.Duration;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.Future;
-import java.util.concurrent.TimeUnit;
-import java.util.concurrent.TimeoutException;
-
-/**
- * A proxy that chooses between using a local or remote proxy based on a task that may take a while to complete.
- */
-@SuppressWarnings("ProxyNonConstantType")
-final class LocalOrRemoteProxy<T> extends AbstractInvocationHandler {
-
-    static <U> U newProxyInstance(
-            Class<U> interfaceClass, U localService, U remoteService, Future<Boolean> useLocalServiceFuture) {
-        @SuppressWarnings("unchecked")
-        U proxy = (U) Proxy.newProxyInstance(
-                interfaceClass.getClassLoader(),
-                new Class<?>[] {interfaceClass},
-                new LocalOrRemoteProxy<>(localService, remoteService, useLocalServiceFuture));
-        return proxy;
-    }
-
-    private T localService;
-    private T remoteService;
-    private Future<Boolean> useLocalServiceFuture;
-
-    private LocalOrRemoteProxy(T localService, T remoteService, Future<Boolean> useLocalServiceFuture) {
-        this.localService = localService;
-        this.remoteService = remoteService;
-        this.useLocalServiceFuture = useLocalServiceFuture;
-    }
-
-    @Override
-    protected Object handleInvocation(Object proxy, Method method, Object[] args) throws Throwable {
-        while (true) {
-            if (Thread.currentThread().isInterrupted()) {
-                // do not clear the interrupt flag
-                throw new SafeIllegalStateException("interrupted");
-            }
-            try {
-                return method.invoke(delegate(), args);
-            } catch (InvocationTargetException e) {
-                Throwable targetException = e.getCause();
-                if (targetException instanceof NotCurrentLeaderException) {
-                    Uninterruptibles.sleepUninterruptibly(Duration.ofMillis(10));
-                    continue;
-                }
-                throw targetException;
-            }
-        }
-    }
-
-    private T delegate() {
-        try {
-            if (useLocalServiceFuture.get(0, TimeUnit.SECONDS)) {
-                return localService;
-            } else {
-                return remoteService;
-            }
-        } catch (TimeoutException e) {
-            // Use the remote service while we're still determining if it's safe to use the local service.
-            return remoteService;
-        } catch (InterruptedException e) {
-            // Use the remote service while we're still determining if it's safe to use the local service.
-            Thread.currentThread().interrupt();
-            return remoteService;
-        } catch (ExecutionException e) {
-            // Using the remote service is always safe; fall back to it if anything went wrong
-            return remoteService;
-        }
-    }
-}u}(j_ (2499ae2cdfdfaf673ee0984b961761fbe0307472jO` Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javajQ` modifiedjI` K jJ` KjS` KjT` https://github.com/palantir/atlasdb/blob/b7ae7fc524208ab2d56a9f602040439421aeb300/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajV` https://github.com/palantir/atlasdb/raw/b7ae7fc524208ab2d56a9f602040439421aeb300/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajX` https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=b7ae7fc524208ab2d56a9f602040439421aeb300jZ` Xg  @@ -169,11 +169,6 @@ public abstract class TransactionManagers {
 
     abstract Set<Schema> schemas();
 
-    @Value.Default
-    Consumer<Object> registrar() {
-        return resource -> {};
-    }
-
     @Value.Default
     LockServerOptions lockServerOptions() {
         return LockServerConfigs.DEFAULT;
@@ -381,7 +376,6 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                         metricsManager,
                         config(),
                         runtime,
-                        registrar(),
                         () -> LockServiceImpl.create(lockServerOptions()),
                         atlasFactory::getManagedTimestampService,
                         atlasFactory.getTimestampStoreInvalidator(),
@@ -929,7 +923,6 @@ public static LockAndTimestampServices createLockAndTimestampServicesForCli(
                         metricsManager,
                         config,
                         runtimeConfigSupplier,
-                        registrar,
                         lock,
                         time,
                         invalidator,u}(j_ (18d976f2814f9813693a9273808efa09461f514cjO` Oatlasdb-config/src/test/java/com/palantir/atlasdb/SinglePingableLeaderTest.javajQ` removedjI` K jJ` KjS` KjT` https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FSinglePingableLeaderTest.javajV` https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FSinglePingableLeaderTest.javajX` https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FSinglePingableLeaderTest.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jZ` X  @@ -1,161 +0,0 @@
-/*
- * (c) Copyright 2020 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb;
-
-import static com.github.tomakehurst.wiremock.client.WireMock.aResponse;
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.github.tomakehurst.wiremock.client.MappingBuilder;
-import com.github.tomakehurst.wiremock.client.WireMock;
-import com.github.tomakehurst.wiremock.core.WireMockConfiguration;
-import com.github.tomakehurst.wiremock.junit.WireMockRule;
-import com.github.tomakehurst.wiremock.verification.LoggedRequest;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableMap;
-import com.palantir.atlasdb.config.RemotingClientConfigs;
-import com.palantir.atlasdb.factory.Leaders;
-import com.palantir.atlasdb.factory.ServiceCreator;
-import com.palantir.common.concurrent.CheckedRejectionExecutorService;
-import com.palantir.conjure.java.api.config.service.UserAgent;
-import com.palantir.conjure.java.api.config.ssl.SslConfiguration;
-import com.palantir.leader.PingableLeader;
-import com.palantir.paxos.LeaderPinger;
-import com.palantir.paxos.LeaderPingerContext;
-import com.palantir.paxos.SingleLeaderPinger;
-import com.palantir.sls.versions.OrderableSlsVersion;
-import java.nio.charset.StandardCharsets;
-import java.nio.file.Paths;
-import java.time.Duration;
-import java.util.List;
-import java.util.Optional;
-import java.util.UUID;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
-import java.util.stream.IntStream;
-import org.junit.Before;
-import org.junit.Rule;
-import org.junit.Test;
-
-public class SinglePingableLeaderTest {
-    private static final UUID LOCAL_UUID = UUID.randomUUID();
-    private static final UUID REMOTE_UUID = UUID.randomUUID();
-    private static final UserAgent USER_AGENT = UserAgent.of(UserAgent.Agent.of("user-agent", "0.27.1"));
-    private final ExecutorService executorService = Executors.newSingleThreadExecutor();
-
-    private static final String PING = "/leader/ping";
-    private static final String PING_V2 = "/leader/pingV2";
-    private static final String UUID_PATH = "/leader/uuid";
-
-    private static final MappingBuilder PING_MAPPING = WireMock.get(WireMock.urlEqualTo(PING));
-    private static final MappingBuilder PING_V2_MAPPING = WireMock.get(WireMock.urlEqualTo(PING_V2));
-    private static final MappingBuilder UUID_MAPPING = WireMock.get(WireMock.urlEqualTo(UUID_PATH));
-
-    private static final SslConfiguration SSL_CONFIGURATION =
-            SslConfiguration.of(Paths.get("var/security/trustStore.jks"));
-
-    private int availablePort;
-    private String serverUri;
-
-    @Rule
-    public WireMockRule availableServer =
-            new WireMockRule(WireMockConfiguration.wireMockConfig().dynamicPort());
-
-    @Before
-    public void setup() {
-        availableServer.stubFor(UUID_MAPPING.willReturn(aResponse()
-                .withStatus(200)
-                .withBody(("\"" + REMOTE_UUID.toString() + "\"").getBytes(StandardCharsets.UTF_8))));
-
-        availableServer.stubFor(PING_MAPPING.willReturn(WireMock.aResponse().withStatus(204)));
-
-        availablePort = availableServer.port();
-        serverUri = String.format("http://%s:%s", WireMockConfiguration.DEFAULT_BIND_ADDRESS, availablePort);
-    }
-
-    @Test
-    public void doesNotFallbackOnPingWhenPingV2Responds() {
-        availableServer.stubFor(
-                PING_V2_MAPPING.willReturn(WireMock.aResponse().withStatus(200).withBody("{\"isLeader\":false}")));
-        getDefaultLeaderPinger().pingLeaderWithUuid(REMOTE_UUID);
-        assertPingV2RequestsMadeAreExactly(1);
-        assertLegacyPingRequestsMade(0);
-    }
-
-    @Test
-    public void fallbackOnPingWhenPingV2DoesNotExist() {
-        availableServer.stubFor(PING_V2_MAPPING.willReturn(WireMock.aResponse().withStatus(404)));
-        LeaderPinger pinger = getDefaultLeaderPinger();
-        pingMultipleTimes(pinger, 5);
-        assertPingV2RequestsMadeAreLessThan(5);
-        assertLegacyPingRequestsMade(5);
-    }
-
-    @Test
-    public void fallbackOnPingWhenPingV2ThrowsEvenWhenPingV2Exists() {
-        availableServer.stubFor(PING_V2_MAPPING.willReturn(WireMock.aResponse().withStatus(500)));
-        LeaderPinger pinger = getDefaultLeaderPinger();
-        pingMultipleTimes(pinger, 5);
-        assertPingV2RequestsMadeAreLessThan(5);
-        assertLegacyPingRequestsMade(5);
-    }
-
-    @Test
-    public void samplesRequestsToFailingPing2() {
-        availableServer.stubFor(PING_V2_MAPPING.willReturn(WireMock.aResponse().withStatus(500)));
-        LeaderPinger pinger = getDefaultLeaderPinger();
-        pingMultipleTimes(pinger, 100);
-        assertPingV2RequestsMadeAreLessThan(100);
-        assertLegacyPingRequestsMade(100);
-    }
-
-    private void assertPingV2RequestsMadeAreLessThan(int count) {
-        List<LoggedRequest> requests = WireMock.findAll(WireMock.getRequestedFor(WireMock.urlMatching(PING_V2)));
-        assertThat(requests).hasSizeLessThan(count);
-    }
-
-    private void assertPingV2RequestsMadeAreExactly(int count) {
-        List<LoggedRequest> requests = WireMock.findAll(WireMock.getRequestedFor(WireMock.urlMatching(PING_V2)));
-        assertThat(requests).hasSize(count);
-    }
-
-    private void assertLegacyPingRequestsMade(int count) {
-        List<LoggedRequest> requests = WireMock.findAll(WireMock.getRequestedFor(WireMock.urlMatching(PING)));
-        assertThat(requests).hasSize(count);
-    }
-
-    private void pingMultipleTimes(LeaderPinger pinger, int pingFrequency) {
-        IntStream.range(0, pingFrequency).forEach(idx -> pinger.pingLeaderWithUuid(REMOTE_UUID));
-    }
-
-    private LeaderPinger getDefaultLeaderPinger() {
-        return pingerWithVersion(OrderableSlsVersion.valueOf("1.1.1"));
-    }
-
-    private LeaderPinger pingerWithVersion(OrderableSlsVersion version) {
-        List<LeaderPingerContext<PingableLeader>> otherLeaders = Leaders.generatePingables(
-                ImmutableList.of(serverUri),
-                () -> RemotingClientConfigs.DEFAULT,
-                ServiceCreator.createTrustContext(Optional.of(SSL_CONFIGURATION)),
-                USER_AGENT);
-        return SingleLeaderPinger.createForTests(
-                ImmutableMap.of(otherLeaders.get(0), new CheckedRejectionExecutorService(executorService)),
-                Duration.ofSeconds(5),
-                LOCAL_UUID,
-                true,
-                Optional.of(version));
-    }
-}u      }(j_ (9e7b73c46444e026c2cd8fb5f54efd1994d8b2dbjO` hatlasdb-config/src/test/java/com/palantir/atlasdb/config/TransactionManagersAsyncInitializationTest.javajQ` modifiedjI` K jJ` KjS` KjT` https://github.com/palantir/atlasdb/blob/b7ae7fc524208ab2d56a9f602040439421aeb300/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.javajV` https://github.com/palantir/atlasdb/raw/b7ae7fc524208ab2d56a9f602040439421aeb300/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.javajX` https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.java?ref=b7ae7fc524208ab2d56a9f602040439421aeb300jZ` X  @@ -19,7 +19,6 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.Mockito.mock;
 
 import com.codahale.metrics.MetricRegistry;
 import com.google.common.collect.ImmutableSet;
@@ -36,7 +35,6 @@
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.time.Duration;
 import java.util.Map;
-import java.util.function.Consumer;
 import org.awaitility.Awaitility;
 import org.junit.Test;
 
@@ -45,8 +43,6 @@ public class TransactionManagersAsyncInitializationTest {
     private static final String USER_AGENT_VERSION = "3.1415926.5358979";
     private static final UserAgent USER_AGENT = UserAgent.of(UserAgent.Agent.of(USER_AGENT_NAME, USER_AGENT_VERSION));
 
-    private final Consumer<Object> registrar = mock(Consumer.class);
-
     @Test
     public void asyncInitializationEventuallySucceeds() {
         AtlasDbConfig atlasDbConfig = ImmutableAtlasDbConfig.builder()
@@ -59,7 +55,6 @@ public void asyncInitializationEventuallySucceeds() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema())
                 .build()
                 .serializable();
@@ -84,7 +79,6 @@ public void transactionManagersBuilderDoesNotThrowIfAsyncInitialisationFailsRepe
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema());
 
         assertThatCode(() -> build.build().serializable()).doesNotThrowAnyException();u}(j_ (585a157403a823c0508980c53cd0b7a7b7eb60fejO` Jatlasdb-config/src/test/java/com/palantir/atlasdb/factory/LeadersTest.javajQ` removedjI` K jJ` KjS` KjT` https://github.com/palantir/atlasdb/blob/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeadersTest.javajV` https://github.com/palantir/atlasdb/raw/e856c6795f27c92a4f037fcfc7bed83c0283d0a2/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeadersTest.javajX` https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeadersTest.java?ref=e856c6795f27c92a4f037fcfc7bed83c0283d0a2jZ` X  @@ -1,128 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.factory;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoMoreInteractions;
-import static org.mockito.Mockito.when;
-
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Iterables;
-import com.palantir.atlasdb.config.RemotingClientConfig;
-import com.palantir.atlasdb.config.RemotingClientConfigs;
-import com.palantir.atlasdb.http.AtlasDbRemotingConstants;
-import com.palantir.conjure.java.api.config.ssl.SslConfiguration;
-import com.palantir.conjure.java.config.ssl.SslSocketFactories;
-import com.palantir.conjure.java.config.ssl.TrustContext;
-import com.palantir.paxos.PaxosAcceptor;
-import com.palantir.paxos.PaxosLearner;
-import com.palantir.paxos.PaxosValue;
-import java.nio.file.Paths;
-import java.util.List;
-import java.util.Optional;
-import java.util.function.Supplier;
-import org.junit.Test;
-
-public class LeadersTest {
-
-    private static final SslConfiguration SSL_CONFIGURATION =
-            SslConfiguration.of(Paths.get("var/security/trustStore.jks"));
-    private static final TrustContext TRUST_CONTEXT = SslSocketFactories.createTrustContext(SSL_CONFIGURATION);
-    private static final ImmutableSet<String> REMOTE_SERVICE_ADDRESSES =
-            ImmutableSet.of("https://foo:1234", "https://bar:5678");
-    private static final Supplier<RemotingClientConfig> REMOTING_CLIENT_CONFIG = () -> RemotingClientConfigs.DEFAULT;
-
-    @Test
-    public void canCreateProxyAndLocalListOfPaxosLearners() {
-        PaxosLearner localLearner = mock(PaxosLearner.class);
-        Optional<PaxosValue> presentPaxosValue = Optional.of(mock(PaxosValue.class));
-        when(localLearner.getGreatestLearnedValue()).thenReturn(presentPaxosValue);
-
-        List<PaxosLearner> paxosLearners = Leaders.createProxyAndLocalList(
-                localLearner,
-                REMOTE_SERVICE_ADDRESSES,
-                REMOTING_CLIENT_CONFIG,
-                Optional.of(TRUST_CONTEXT),
-                PaxosLearner.class,
-                AtlasDbRemotingConstants.DEFAULT_USER_AGENT);
-
-        assertThat(paxosLearners).hasSize(REMOTE_SERVICE_ADDRESSES.size() + 1);
-        paxosLearners.forEach(object -> assertThat(object).isNotNull());
-        assertThat(Iterables.getLast(paxosLearners).getGreatestLearnedValue()).isEqualTo(presentPaxosValue);
-        verify(localLearner).getGreatestLearnedValue();
-        verifyNoMoreInteractions(localLearner);
-    }
-
-    @Test
-    public void canCreateProxyAndLocalListOfPaxosAcceptors() {
-        PaxosAcceptor localAcceptor = mock(PaxosAcceptor.class);
-        when(localAcceptor.getLatestSequencePreparedOrAccepted()).thenReturn(1L);
-
-        List<PaxosAcceptor> paxosAcceptors = Leaders.createProxyAndLocalList(
-                localAcceptor,
-                REMOTE_SERVICE_ADDRESSES,
-                REMOTING_CLIENT_CONFIG,
-                Optional.of(TRUST_CONTEXT),
-                PaxosAcceptor.class,
-                AtlasDbRemotingConstants.DEFAULT_USER_AGENT);
-
-        assertThat(paxosAcceptors).hasSize(REMOTE_SERVICE_ADDRESSES.size() + 1);
-        paxosAcceptors.forEach(object -> assertThat(object).isNotNull());
-
-        assertThat(Iterables.getLast(paxosAcceptors).getLatestSequencePreparedOrAccepted())
-                .isEqualTo(1L);
-        verify(localAcceptor).getLatestSequencePreparedOrAccepted();
-        verifyNoMoreInteractions(localAcceptor);
-    }
-
-    @Test
-    public void createProxyAndLocalListCreatesSingletonListIfNoRemoteAddressesProvided() {
-        PaxosAcceptor localAcceptor = mock(PaxosAcceptor.class);
-        when(localAcceptor.getLatestSequencePreparedOrAccepted()).thenReturn(1L);
-
-        List<PaxosAcceptor> paxosAcceptors = Leaders.createProxyAndLocalList(
-                localAcceptor,
-                ImmutableSet.of(),
-                REMOTING_CLIENT_CONFIG,
-                Optional.of(TRUST_CONTEXT),
-                PaxosAcceptor.class,
-                AtlasDbRemotingConstants.DEFAULT_USER_AGENT);
-
-        assertThat(paxosAcceptors).hasSize(1);
-
-        assertThat(Iterables.getLast(paxosAcceptors).getLatestSequencePreparedOrAccepted())
-                .isEqualTo(1L);
-        verify(localAcceptor).getLatestSequencePreparedOrAccepted();
-        verifyNoMoreInteractions(localAcceptor);
-    }
-
-    @Test
-    public void createProxyAndLocalListThrowsIfNullClassProvided() {
-        PaxosAcceptor localAcceptor = mock(PaxosAcceptor.class);
-
-        assertThatThrownBy(() -> Leaders.createProxyAndLocalList(
-                        localAcceptor,
-                        REMOTE_SERVICE_ADDRESSES,
-                        REMOTING_CLIENT_CONFIG,
-                        Optional.of(TRUST_CONTEXT),
-                        null,
-                        AtlasDbRemotingConstants.DEFAULT_USER_AGENT))
-                .isInstanceOf(NullPointerException.class);
-    }
-}u}(j_ (360102d14ff82589705d04df09668125a763d2bdjO` Jatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/AtlasDbEteServer.javajQ` modifiedjI` K jJ` KjS` KjT` https://github.com/palantir/atlasdb/blob/b7ae7fc524208ab2d56a9f602040439421aeb300/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbEteServer.javajV` https://github.com/palantir/atlasdb/raw/b7ae7fc524208ab2d56a9f602040439421aeb300/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbEteServer.javajX` https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbEteServer.java?ref=b7ae7fc524208ab2d56a9f602040439421aeb300jZ` X  @@ -203,7 +203,6 @@ private TransactionManager createTransactionManager(
                 .userAgent(UserAgent.of(UserAgent.Agent.of("atlasdb-ete-test", "0.0.0")))
                 .globalMetricsRegistry(environment.metrics())
                 .globalTaggedMetricRegistry(taggedMetricRegistry)
-                .registrar(environment.jersey()::register)
                 .addAllSchemas(ETE_SCHEMAS)
                 .runtimeConfigSupplier(() -> atlasDbRuntimeConfigOptional)
                 .build()u}(j_ (049ac5a8baaa03fe663edb8bd2a6217abe717bb5jO` \atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/factory/TransactionManagersTest.javajQ` modifiedjI` K jJ` KYjS` KYjT` https://github.com/palantir/atlasdb/blob/b7ae7fc524208ab2d56a9f602040439421aeb300/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javajV` https://github.com/palantir/atlasdb/raw/b7ae7fc524208ab2d56a9f602040439421aeb300/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javajX` https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.java?ref=b7ae7fc524208ab2d56a9f602040439421aeb300jZ` X).  @@ -17,7 +17,6 @@
 
 import static com.github.tomakehurst.wiremock.client.WireMock.aResponse;
 import static com.github.tomakehurst.wiremock.client.WireMock.containing;
-import static com.github.tomakehurst.wiremock.client.WireMock.equalTo;
 import static com.github.tomakehurst.wiremock.client.WireMock.findAll;
 import static com.github.tomakehurst.wiremock.client.WireMock.get;
 import static com.github.tomakehurst.wiremock.client.WireMock.getRequestedFor;
@@ -26,10 +25,7 @@
 import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo;
 import static com.github.tomakehurst.wiremock.client.WireMock.urlMatching;
 import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.ArgumentMatchers.isA;
-import static org.mockito.Mockito.doAnswer;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
@@ -76,8 +72,6 @@
 import com.palantir.conjure.java.api.config.service.UserAgents;
 import com.palantir.conjure.java.api.config.ssl.SslConfiguration;
 import com.palantir.dialogue.clients.DialogueClients;
-import com.palantir.leader.PingableLeader;
-import com.palantir.leader.proxy.AwaitingLeadershipProxy;
 import com.palantir.lock.AutoDelegate_LockService;
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRefreshToken;
@@ -89,7 +83,6 @@
 import com.palantir.lock.TimeDuration;
 import com.palantir.lock.impl.LockServiceImpl;
 import com.palantir.lock.v2.LockResponse;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.refreshable.Refreshable;
 import com.palantir.refreshable.SettableRefreshable;
 import com.palantir.timelock.feedback.ConjureTimeLockClientFeedback;
@@ -109,7 +102,6 @@
 import java.util.Map;
 import java.util.Optional;
 import java.util.UUID;
-import java.util.concurrent.CompletableFuture;
 import java.util.concurrent.TimeUnit;
 import java.util.function.Consumer;
 import java.util.function.Supplier;
@@ -165,7 +157,6 @@ public class TransactionManagersTest {
     private AtlasDbConfig config;
     private AtlasDbRuntimeConfig mockAtlasDbRuntimeConfig;
 
-    private Consumer<Object> registrar;
     private TimestampStoreInvalidator invalidator;
     private Consumer<Runnable> originalAsyncMethod;
 
@@ -208,8 +199,6 @@ public void setUp() {
         when(mockAtlasDbRuntimeConfig.timelockRuntime()).thenReturn(Optional.empty());
         when(mockAtlasDbRuntimeConfig.remotingClient()).thenReturn(RemotingClientConfigs.DEFAULT);
 
-        registrar = mock(Consumer.class);
-
         invalidator = mock(TimestampStoreInvalidator.class);
         when(invalidator.backupAndInvalidate()).thenReturn(EMBEDDED_BOUND);
 
@@ -236,7 +225,6 @@ public void cannotProvideRuntimeConfigTwice() {
                         .userAgent(USER_AGENT)
                         .globalMetricsRegistry(new MetricRegistry())
                         .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                        .registrar(registrar)
                         .runtimeConfig(Refreshable.only(Optional.empty()))
                         .runtimeConfigSupplier(Optional::empty)
                         .build())
@@ -275,30 +263,8 @@ public void remoteCallsStillMadeIfPingableLeader404s() throws IOException {
                 .withHeader(USER_AGENT_HEADER, containing(EXPECTED_USER_AGENT_STRING)));
     }
 
-    @Test
-    public void remoteCallsElidedIfTalkingToLocalServer() throws IOException {
-        setUpForLocalServices();
-        setUpLeaderBlockInConfig();
-
-        LockAndTimestampServices lockAndTimestamp = getLockAndTimestampServices();
-        availableServer.verify(getRequestedFor(urlMatching(LEADER_UUID_PATH)));
-
-        lockAndTimestamp.timelock().getFreshTimestamp();
-        lockAndTimestamp.lock().currentTimeMillis();
-
-        availableServer.verify(
-                0,
-                postRequestedFor(urlMatching(TIMESTAMP_PATH))
-                        .withHeader(USER_AGENT_HEADER, equalTo(EXPECTED_USER_AGENT_STRING)));
-        availableServer.verify(
-                0,
-                postRequestedFor(urlMatching(LOCK_PATH))
-                        .withHeader(USER_AGENT_HEADER, equalTo(EXPECTED_USER_AGENT_STRING)));
-    }
-
     @Test
     public void tryUnlockIsAsync() throws IOException {
-        setUpForLocalServices();
         setUpLeaderBlockInConfig();
 
         ThreadLocal<Boolean> inRequest = ThreadLocal.withInitial(() -> false);
@@ -351,7 +317,6 @@ public void setsGlobalDefaultLockTimeout() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .build()
                 .serializable();
 
@@ -412,7 +377,6 @@ public void runsClosingCallbackOnShutdown() throws Exception {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .build()
                 .serializable();
         manager.registerClosingCallback(callback);
@@ -432,7 +396,6 @@ public void keyValueServiceMetricsDoNotContainUserAgent() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .build()
                 .serializable();
         assertThat(metrics.getNames().stream().anyMatch(metricName -> metricName.contains(USER_AGENT_NAME)))
@@ -453,7 +416,6 @@ public void overriddenServiceNameIsReturned() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .serviceIdentifierOverride("overriden")
                 .build();
 
@@ -473,7 +435,6 @@ public void serviceNameIsFetchedFromAtlasConfig() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .build();
         assertThat(transactionManagers.serviceName()).isEqualTo("namespace");
     }
@@ -493,7 +454,6 @@ public void serviceNameIsFetchedFromKvsConfigWhenItIsNotPresentInAtlasConfig() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .build();
 
         assertThat(transactionManagers.serviceName()).isEqualTo("namespace");
@@ -510,42 +470,11 @@ public void serviceNameFallsBackToDefaultWhenNamespaceIsNotPresent() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .build();
 
         assertThat(transactionManagers.serviceName()).isEqualTo("UNKNOWN");
     }
 
-    @Test
-    public void interruptingLocalLeaderElectionTerminates() throws IOException {
-        Leaders.LocalPaxosServices localPaxosServices = Leaders.createAndRegisterLocalServices(
-                metricsManager,
-                registrar,
-                ImmutableLeaderConfig.builder()
-                        .localServer("https://example")
-                        .quorumSize(1)
-                        .addLeaders("https://example")
-                        .acceptorLogDir(temporaryFolder.newFolder())
-                        .learnerLogDir(temporaryFolder.newFolder())
-                        .build(),
-                USER_AGENT);
-        LockService lockService = LockServiceImpl.create();
-        LockService leadershipLock = AwaitingLeadershipProxy.newProxyInstance(
-                LockService.class, () -> lockService, localPaxosServices.leadershipCoordinator());
-        LockService localOrRemoteLock = LocalOrRemoteProxy.newProxyInstance(
-                LockService.class, leadershipLock, null, CompletableFuture.completedFuture(true));
-        try {
-            Thread.currentThread().interrupt();
-            assertThatCode(localOrRemoteLock::currentTimeMillis)
-                    .as("proxy correctly handles interrupts")
-                    .isInstanceOf(SafeIllegalStateException.class);
-            assertThat(Thread.currentThread().isInterrupted()).isTrue();
-        } finally {
-            // clear the interrupt flag to avoid affecting future tests
-            Thread.interrupted();
-        }
-    }
-
     @Test
     public void grabImmutableTsLockIsConfiguredWithBuilderOption() {
         TransactionConfig transactionConfig =
@@ -593,14 +522,12 @@ private TransactionManagers withLockImmutableTsOnReadOnlyTransaction(boolean opt
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .lockImmutableTsOnReadOnlyTransactions(option)
                 .build();
     }
 
     @Test
     public void metricsAreNotDirectlyReportedFromLocalService() throws IOException {
-        setUpForLocalServices();
         setUpLeaderBlockInConfig();
 
         assertThatTimeAndLockMetricsAreNotRecorded(
@@ -699,7 +626,6 @@ private KeyValueService initializeKeyValueServiceWithSweepSettings(boolean enabl
                 .userAgent(UserAgent.of(UserAgent.Agent.of("test", "0.0.0")))
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema())
                 .runtimeConfigSupplier(() -> Optional.of(atlasDbRuntimeConfig))
                 .build()
@@ -753,20 +679,6 @@ private void assertThatTimeAndLockMetricsWithTagsAreRecorded(
                 .isEqualTo(1L);
     }
 
-    private void setUpForLocalServices() throws IOException {
-        doAnswer(invocation -> {
-                    // Configure our server to reply with the same server ID as the registered PingableLeader.
-                    PingableLeader localPingableLeader = invocation.getArgument(0);
-                    availableServer.stubFor(LEADER_UUID_MAPPING.willReturn(aResponse()
-                            .withStatus(200)
-                            .withBody(("\"" + localPingableLeader.getUUID() + "\"").getBytes(StandardCharsets.UTF_8))));
-                    return null;
-                })
-                .when(registrar)
-                .accept(isA(PingableLeader.class));
-        setUpLeaderBlockInConfig();
-    }
-
     private void setUpForRemoteServices() throws IOException {
         availableServer.stubFor(LEADER_UUID_MAPPING.willReturn(aResponse().withStatus(404)));
         setUpLeaderBlockInConfig();
@@ -807,7 +719,6 @@ private LockAndTimestampServices getLockAndTimestampServices() {
                         metricsManager,
                         config,
                         Refreshable.only(mockAtlasDbRuntimeConfig),
-                        registrar,
                         LockServiceImpl::create,
                         () -> ts,
                         invalidator,ueu(36304f8ae1abd617a7892ecbe9914e963335e473}(sha(36304f8ae1abd617a7892ecbe9914e963335e473node_idEC_kwDOAjP5fdoAKDM2MzA0ZjhhZTFhYmQ2MTdhNzg5MmVjYmU5OTE0ZTk2MzMzNWU0NzMcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-23T13:47:40Zu	committer}(j` 	Tom Papkej` tpapke@palantir.comj` 2023-06-23T13:47:40ZumessageComment on teststree}(j` (1f5555cacd4e57cb89ba93ed5424a49f58985f2eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/1f5555cacd4e57cb89ba93ed5424a49f58985f2euj` bhttps://api.github.com/repos/palantir/atlasdb/git/commits/36304f8ae1abd617a7892ecbe9914e963335e473
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSVonwACgkQmF9s0kaF
Iw00dAf6AyoPtYb1LJy7X5hNQ2Zz6I2HNmyekloizpLmtwlSAOY+VypC0o5QQspY
p/rImPquUO+H3LXneYh6ewIhnOvswsxhMPQbyMePJCzxIASuCrlrNDCS2mdfER/4
zrDRQMIi/0USwEOwoAB62PMl/t+M6sILsUQtuc7o2APN79UNQKHuIRn00i2jAXtK
ypHnxAS8gZ7Mv4kDoSraECegRadiAyvcSTP8TUjbF1clYX7j7RuXRfY1QhnWUf7V
MKMHwQ3d3/wbOIEMSEYfGTf9r2dy7Rql7BlSG6TT4DKaBx02TxE+PEiJTsfcmdW6
Td+D5KMOW7oEiGtCngC45wMuVSAEJg==
=VDFJ
-----END PGP SIGNATURE-----payloadtree 1f5555cacd4e57cb89ba93ed5424a49f58985f2e
parent fae383805fe9e172faf790d85a518f68671bbcb0
author Tom Papke <tpapke@palantir.com> 1687528060 +0100
committer Tom Papke <tpapke@palantir.com> 1687528060 +0100

Comment on tests
uuj` ^https://api.github.com/repos/palantir/atlasdb/commits/36304f8ae1abd617a7892ecbe9914e963335e473html_urlShttps://github.com/palantir/atlasdb/commit/36304f8ae1abd617a7892ecbe9914e963335e473comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/36304f8ae1abd617a7892ecbe9914e963335e473/commentsj` }(login	ToemmscheidJboj` MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j` &https://api.github.com/users/Toemmschej` https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj` }(j` 	Toemmschej` Jboj` MDQ6VXNlcjQzNjc1NDkwj` 4https://avatars.githubusercontent.com/u/43675490?v=4j` h5j` &https://api.github.com/users/Toemmschej` https://github.com/Toemmschej` 0https://api.github.com/users/Toemmsche/followersj` =https://api.github.com/users/Toemmsche/following{/other_user}j` 6https://api.github.com/users/Toemmsche/gists{/gist_id}j` =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j` 4https://api.github.com/users/Toemmsche/subscriptionsj` +https://api.github.com/users/Toemmsche/orgsj` ,https://api.github.com/users/Toemmsche/reposj` 7https://api.github.com/users/Toemmsche/events{/privacy}j` 6https://api.github.com/users/Toemmsche/received_eventsj` Userj` uparents]}(j` (fae383805fe9e172faf790d85a518f68671bbcb0j` ^https://api.github.com/repos/palantir/atlasdb/commits/fae383805fe9e172faf790d85a518f68671bbcb0j` Shttps://github.com/palantir/atlasdb/commit/fae383805fe9e172faf790d85a518f68671bbcb0uastats}(totalK	additionsK	deletionsKufiles](}(j` (a0a66792d0b57db4584732b9edc73a586def6794filenameLlock-impl/src/main/java/com/palantir/lock/impl/AdjustableBackgroundTask.javastatusmodifiedja Kja KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/36304f8ae1abd617a7892ecbe9914e963335e473/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javaraw_urlhttps://github.com/palantir/atlasdb/raw/36304f8ae1abd617a7892ecbe9914e963335e473/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.java?ref=36304f8ae1abd617a7892ecbe9914e963335e473patchX  @@ -26,11 +26,12 @@
 import java.util.function.Supplier;
 
 public final class AdjustableBackgroundTask implements Closeable {
-    /** A minimum duration between invocations if the task is not actually enabled.
+
+    /**
+     * A minimum duration between invocations if the task is not actually enabled.
      * This is to prevent having a blocking thread in the background that does nothing.
      */
-    @VisibleForTesting
-    static final TimeDuration MINIMUM_DELAY_IF_NOT_RUNNING = SimpleTimeDuration.of(1, TimeUnit.SECONDS);
+    private static final TimeDuration MINIMUM_DELAY_IF_NOT_RUNNING = SimpleTimeDuration.of(1, TimeUnit.SECONDS);
 
     private final ScheduledExecutorService scheduledExecutor;
     private final Supplier<Boolean> shouldRunSupplier;u}(j` (dcd6468768b7ed5162a9f2122730d2d9c7be0d12ja Plock-impl/src/test/java/com/palantir/lock/impl/AdjustableBackgroundTaskTest.javaja modifiedja Kja Kja Kja https://github.com/palantir/atlasdb/blob/36304f8ae1abd617a7892ecbe9914e963335e473/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaja https://github.com/palantir/atlasdb/raw/36304f8ae1abd617a7892ecbe9914e963335e473/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaja https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.java?ref=36304f8ae1abd617a7892ecbe9914e963335e473j!a X7  @@ -22,24 +22,27 @@
 import com.palantir.lock.TimeDuration;
 import com.palantir.refreshable.Refreshable;
 import com.palantir.refreshable.SettableRefreshable;
+import java.util.concurrent.ExecutorService;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.atomic.AtomicInteger;
 import org.jmock.lib.concurrent.DeterministicScheduler;
 import org.junit.Test;
 
 public class AdjustableBackgroundTaskTest {
 
+    /**
+     * Dummy deterministic scheduled executor service that cannot be shut down.
+     * The default {@link DeterministicScheduler} throws an exception when calling {@link ExecutorService#isShutdown()}.
+     */
     static class NeverShutdownDeterministicScheduler extends DeterministicScheduler {
         @Override
         public boolean isShutdown() {
             return false;
         }
     }
 
-    /** We have to ensure all of our delays are higher than
-     * {@link com.palantir.lock.impl.AdjustableBackgroundTask#MINIMUM_DELAY_IF_NOT_RUNNING}
-     * so it doesn't interfere.
-     */
+    // We have to ensure all of our delays are higher than MINIMUM_DELAY_IF_NOT_RUNNING
+    // so it doesn't interfere with our tests
     private static final TimeDuration DEFAULT_DELAY = SimpleTimeDuration.of(10, TimeUnit.SECONDS);
 
     private final AtomicInteger field = new AtomicInteger(0);ueu(29af3de3eed7c03626a2eaed7f73364c3be5989b}(sha(29af3de3eed7c03626a2eaed7f73364c3be5989bnode_idEC_kwDOAjP5fdoAKDI5YWYzZGUzZWVkN2MwMzYyNmEyZWFlZDdmNzMzNjRjM2JlNTk4OWIcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-06-25T03:00:01Zu	committer}(j5a David Schlosnaglej7a davids@palantir.comj9a 2023-06-25T03:00:01Zumessage.Reduce allocations extracting Cassandra valuestree}(j-a (e393a20f0d7dd069bd34eb90129a0fe8d9da193aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/e393a20f0d7dd069bd34eb90129a0fe8d9da193aujEa bhttps://api.github.com/repos/palantir/atlasdb/git/commits/29af3de3eed7c03626a2eaed7f73364c3be5989b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmSXrbEACgkQR9hsJ74Q
0l9NBAf+NaZvrTzJKxjDg+NRwAGXZk5O6TskYtVj5YXGyRna+bI0ZdSSOodKKeme
NBfEi+fFyFZcGvqUE0rRRlKRZ9Dc6XVRVgLCSr1IDa/XGDS3uA9/RlJiWHN41kuX
By/oMWCsxow8DKk2b/lfnQsu9GGsYXDG/SoT/3CHhtwXQZdw0hUWkExZvhQBVQfC
fS4bvS6YlSlU7sSCF9LMul8FBW13V1e4pHlILSlhSHJDzGvgTXJaziHMilpdXixM
14kwrdAT1qoEOHbnsB//qysGolY0nsUYWWoCu73Td3Z4UjOjd8iRH1VRBD58TtQl
aMK5BtBeBMoyTHPlXAjgp8WNARsyzQ==
=J8be
-----END PGP SIGNATURE-----payloadX  tree e393a20f0d7dd069bd34eb90129a0fe8d9da193a
parent 613e115d909748315adbea905ad912518b569b38
author David Schlosnagle <davids@palantir.com> 1687662001 -0400
committer David Schlosnagle <davids@palantir.com> 1687662001 -0400

Reduce allocations extracting Cassandra values
uujEa ^https://api.github.com/repos/palantir/atlasdb/commits/29af3de3eed7c03626a2eaed7f73364c3be5989bhtml_urlShttps://github.com/palantir/atlasdb/commit/29af3de3eed7c03626a2eaed7f73364c3be5989bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/29af3de3eed7c03626a2eaed7f73364c3be5989b/commentsj3a }(loginschlosnaidMBj/a MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jEa %https://api.github.com/users/schlosnajSa https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj;a }(jXa schlosnajZa MBj/a MDQ6VXNlcjU0NTk0j\a 1https://avatars.githubusercontent.com/u/54594?v=4j^a h5jEa %https://api.github.com/users/schlosnajSa https://github.com/schlosnajaa /https://api.github.com/users/schlosna/followersjca <https://api.github.com/users/schlosna/following{/other_user}jea 5https://api.github.com/users/schlosna/gists{/gist_id}jga <https://api.github.com/users/schlosna/starred{/owner}{/repo}jia 3https://api.github.com/users/schlosna/subscriptionsjka *https://api.github.com/users/schlosna/orgsjma +https://api.github.com/users/schlosna/reposjoa 6https://api.github.com/users/schlosna/events{/privacy}jqa 5https://api.github.com/users/schlosna/received_eventsjsa Userjua uparents]}(j-a (613e115d909748315adbea905ad912518b569b38jEa ^https://api.github.com/repos/palantir/atlasdb/commits/613e115d909748315adbea905ad912518b569b38jSa Shttps://github.com/palantir/atlasdb/commit/613e115d909748315adbea905ad912518b569b38uastats}(totalK	additionsKZ	deletionsK'ufiles](}(j-a (1eac2967eec548db996ead15206e636d600a3f71filenameiatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javastatusmodifiedja K
ja K	changesKblob_urlhttps://github.com/palantir/atlasdb/blob/29af3de3eed7c03626a2eaed7f73364c3be5989b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/29af3de3eed7c03626a2eaed7f73364c3be5989b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=29af3de3eed7c03626a2eaed7f73364c3be5989bpatchX  @@ -71,6 +71,7 @@
 import com.palantir.atlasdb.keyvalue.api.TimestampRangeDelete;
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolImpl.StartupChecks;
+import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServices.ColumnAndTimestamp;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServices.StartTsResultsCollector;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraVerifier.CassandraVerifierConfig;
 import com.palantir.atlasdb.keyvalue.cassandra.RowColumnRangeExtractor.RowColumnRangeResult;
@@ -109,7 +110,6 @@
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
-import com.palantir.util.Pair;
 import com.palantir.util.paging.AbstractPagingIterable;
 import com.palantir.util.paging.SimpleTokenBackedResultsPage;
 import com.palantir.util.paging.TokenBackedBasicResultsPage;
@@ -731,9 +731,9 @@ private SlicePredicate getNextLexicographicalSlicePredicate(List<ColumnOrSuperCo
         Preconditions.checkState(!columns.isEmpty(), "Columns was empty. This is probably an AtlasDb bug");
 
         Column lastColumn = columns.get(columns.size() - 1).getColumn();
-        Pair<byte[], Long> columnNameAndTimestamp = CassandraKeyValueServices.decompose(lastColumn.name);
+        ColumnAndTimestamp columnNameAndTimestamp = CassandraKeyValueServices.decomposeColumn(lastColumn.name);
         ByteBuffer nextLexicographicColumn = CassandraKeyValueServices.makeCompositeBuffer(
-                RangeRequests.nextLexicographicName(columnNameAndTimestamp.lhSide), Long.MAX_VALUE);
+                RangeRequests.nextLexicographicName(columnNameAndTimestamp.columnName()), Long.MAX_VALUE);
 
         return SlicePredicates.create(
                 Range.of(nextLexicographicColumn, Range.UNBOUND_END),
@@ -897,8 +897,8 @@ private Map<byte[], RowColumnRangeIterator> getRowsColumnRangeIteratorForSingleH
             IdentityHashMap<byte[], byte[]> incompleteRowsToNextColumns = new IdentityHashMap<>();
             for (Map.Entry<byte[], Column> e : rowsToLastCompositeColumns.entrySet()) {
                 byte[] row = e.getKey();
-                byte[] col =
-                        CassandraKeyValueServices.decomposeName(e.getValue()).getLhSide();
+                byte[] col = CassandraKeyValueServices.decomposeColumnName(e.getValue())
+                        .columnName();
                 // If we read a version of the cell before our start timestamp, it will be the most recent version
                 // readable to us and we can continue to the next column. Otherwise we have to continue reading
                 // this column.
@@ -1048,8 +1048,9 @@ public TokenBackedBasicResultsPage<Map.Entry<Cell, Value>, byte[]> apply(
                                                 .getResults()
                                                 .getOrDefault(row, Collections.emptyMap());
                                         ColumnOrSuperColumn lastColumn = values.get(values.size() - 1);
-                                        byte[] lastCol = CassandraKeyValueServices.decomposeName(lastColumn.getColumn())
-                                                .getLhSide();
+                                        byte[] lastCol = CassandraKeyValueServices.decomposeColumnName(
+                                                        lastColumn.getColumn())
+                                                .columnName();
                                         // Same idea as the getRows case to handle seeing only newer entries of a column
                                         boolean completedCell = ret.get(Cell.create(row, lastCol)) != null;
                                         if (isEndOfColumnRange(
@@ -1868,7 +1869,8 @@ public void putUnlessExists(final TableReference tableRef, final Map<Cell, byte[
                                 casResult.getCurrent_values().stream()
                                         .map(column -> Cell.create(
                                                 partition.getKey().toByteArray(),
-                                                CassandraKeyValueServices.decompose(column.bufferForName()).lhSide))
+                                                CassandraKeyValueServices.decomposeColumn(column.bufferForName())
+                                                        .columnName()))
                                         .collect(Collectors.toList())));
                     }
                 }
@@ -2001,7 +2003,9 @@ public void multiCheckAndSet(MultiCheckAndSetRequest request) throws MultiCheckA
             if (!casResult.isSuccess()) {
                 Map<Cell, byte[]> currentValues = KeyedStream.of(casResult.getCurrent_values())
                         .mapKeys(column -> Cell.create(
-                                request.rowName(), CassandraKeyValueServices.decompose(column.bufferForName()).lhSide))
+                                request.rowName(),
+                                CassandraKeyValueServices.decomposeColumn(column.bufferForName())
+                                        .columnName()))
                         .map(Column::getValue)
                         .collectToMap();
 u}(j-a (6eca20c1046ab29fd1cf6c9090ffb487b5910b43ja fatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServices.javaja modifiedja K3ja Kja KDja https://github.com/palantir/atlasdb/blob/29af3de3eed7c03626a2eaed7f73364c3be5989b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javaja https://github.com/palantir/atlasdb/raw/29af3de3eed7c03626a2eaed7f73364c3be5989b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javaja https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.java?ref=29af3de3eed7c03626a2eaed7f73364c3be5989bja X~  @@ -29,14 +29,12 @@
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.util.MetricsManager;
-import com.palantir.common.annotation.Output;
 import com.palantir.common.base.RunnableCheckedException;
 import com.palantir.common.base.Throwables;
 import com.palantir.common.visitor.Visitor;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
-import com.palantir.util.Pair;
 import java.nio.ByteBuffer;
 import java.nio.ByteOrder;
 import java.nio.charset.Charset;
@@ -229,7 +227,7 @@ public static ByteBuffer makeCompositeBuffer(byte[] colName, long positiveTimest
         return buffer;
     }
 
-    static Pair<byte[], Long> decompose(ByteBuffer inputComposite) {
+    static ColumnAndTimestamp decomposeColumn(ByteBuffer inputComposite) {
         ByteBuffer composite = inputComposite.slice().order(ByteOrder.BIG_ENDIAN);
 
         short len = composite.getShort();
@@ -243,14 +241,14 @@ static Pair<byte[], Long> decompose(ByteBuffer inputComposite) {
         com.palantir.logsafe.Preconditions.checkArgument(shouldBe8 == 8);
         long ts = composite.getLong();
 
-        return Pair.create(colName, ~ts);
+        return new ColumnAndTimestamp(colName, ~ts);
     }
 
     /**
      * Convenience method to get the name buffer for the specified column and
      * decompose it into the name and timestamp.
      */
-    public static Pair<byte[], Long> decomposeName(Column column) {
+    public static ColumnAndTimestamp decomposeColumnName(Column column) {
         ByteBuffer nameBuffer;
         if (column.isSetName()) {
             nameBuffer = column.bufferForName();
@@ -260,7 +258,7 @@ public static Pair<byte[], Long> decomposeName(Column column) {
             // the transform to bytes and wrap ourselves
             nameBuffer = ByteBuffer.wrap(column.getName());
         }
-        return decompose(nameBuffer);
+        return decomposeColumn(nameBuffer);
     }
 
     public static byte[] getBytesFromByteBuffer(ByteBuffer buffer) {
@@ -402,17 +400,13 @@ public Multimap<Cell, Long> getCollectedResults() {
 
         @Override
         public synchronized void visit(Map<ByteBuffer, List<ColumnOrSuperColumn>> results) {
-            extractTimestampResults(collectedResults, results);
-        }
-    }
-
-    private static void extractTimestampResults(
-            @Output Multimap<Cell, Long> ret, Map<ByteBuffer, List<ColumnOrSuperColumn>> results) {
-        for (Map.Entry<ByteBuffer, List<ColumnOrSuperColumn>> result : results.entrySet()) {
-            byte[] row = CassandraKeyValueServices.getBytesFromByteBuffer(result.getKey());
-            for (ColumnOrSuperColumn col : result.getValue()) {
-                Pair<byte[], Long> pair = CassandraKeyValueServices.decomposeName(col.column);
-                ret.put(Cell.create(row, pair.lhSide), pair.rhSide);
+            for (Map.Entry<ByteBuffer, List<ColumnOrSuperColumn>> result : results.entrySet()) {
+                byte[] row = CassandraKeyValueServices.getBytesFromByteBuffer(result.getKey());
+                for (ColumnOrSuperColumn col : result.getValue()) {
+                    ColumnAndTimestamp columnAndTimestamp = CassandraKeyValueServices.decomposeColumnName(col.column);
+                    Cell cell = Cell.create(row, columnAndTimestamp.columnName());
+                    collectedResults.put(cell, columnAndTimestamp.timestamp());
+                }
             }
         }
     }
@@ -429,4 +423,44 @@ static TableMetadata getMetadataOrDefaultToGeneric(byte[] metadata) {
         }
         return TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(metadata);
     }
+
+    public static class ColumnAndTimestamp {
+        private final long timestamp;
+        private final byte[] columnName;
+
+        ColumnAndTimestamp(byte[] columnName, long timestamp) {
+            this.columnName = columnName;
+            this.timestamp = timestamp;
+        }
+
+        public byte[] columnName() {
+            return columnName;
+        }
+
+        public long timestamp() {
+            return timestamp;
+        }
+
+        @Override
+        public boolean equals(Object obj) {
+            if (this == obj) {
+                return true;
+            }
+            if (obj == null || getClass() != obj.getClass()) {
+                return false;
+            }
+            ColumnAndTimestamp that = (ColumnAndTimestamp) obj;
+            return timestamp == that.timestamp && Arrays.equals(columnName, that.columnName);
+        }
+
+        @Override
+        public int hashCode() {
+            return 31 * Long.hashCode(timestamp) + Arrays.hashCode(columnName);
+        }
+
+        @Override
+        public String toString() {
+            return "ColumnAndTimestamp{columnName=" + Arrays.toString(columnName) + ", timestamp=" + timestamp + '}';
+        }
+    }
 }u}(j-a (5642b359735213f35a666d4a009a48e99cb87d71ja ]atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/ResultsExtractor.javaja modifiedja K
ja Kja Kja https://github.com/palantir/atlasdb/blob/29af3de3eed7c03626a2eaed7f73364c3be5989b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.javaja https://github.com/palantir/atlasdb/raw/29af3de3eed7c03626a2eaed7f73364c3be5989b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.javaja https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.java?ref=29af3de3eed7c03626a2eaed7f73364c3be5989bja XQ  @@ -22,11 +22,11 @@
 import com.palantir.atlasdb.keyvalue.api.ColumnSelection;
 import com.palantir.atlasdb.keyvalue.api.RangeRequests;
 import com.palantir.atlasdb.keyvalue.api.RowResult;
+import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServices.ColumnAndTimestamp;
 import com.palantir.atlasdb.keyvalue.impl.Cells;
 import com.palantir.atlasdb.keyvalue.impl.RowResults;
 import com.palantir.atlasdb.tracing.TraceStatistics;
 import com.palantir.atlasdb.util.MetricsManager;
-import com.palantir.util.Pair;
 import com.palantir.util.paging.SimpleTokenBackedResultsPage;
 import com.palantir.util.paging.TokenBackedBasicResultsPage;
 import java.nio.ByteBuffer;
@@ -55,14 +55,20 @@ public final byte[] extractResults(
             maxRow = updatedMaxRow(maxRow, row);
 
             for (ColumnOrSuperColumn c : colEntry.getValue()) {
-                Pair<byte[], Long> pair = CassandraKeyValueServices.decomposeName(c.getColumn());
+                ColumnAndTimestamp columnAndTimestamp = CassandraKeyValueServices.decomposeColumnName(c.getColumn());
                 byte[] value = c.getColumn().getValue();
 
                 // Read the value & the column name size; we're not currently trying to model all the overheads
-                TraceStatistics.incBytesRead(pair.lhSide);
+                TraceStatistics.incBytesRead(columnAndTimestamp.columnName());
                 TraceStatistics.incBytesRead(value);
 
-                internalExtractResult(startTs, selection, row, pair.lhSide, value, pair.rhSide);
+                internalExtractResult(
+                        startTs,
+                        selection,
+                        row,
+                        columnAndTimestamp.columnName(),
+                        value,
+                        columnAndTimestamp.timestamp());
             }
         }
         return maxRow;u}(j-a (99a083b77cf802540499e0f29bf3af47ae1ea5f4ja datlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/RowColumnRangeExtractor.javaja modifiedja Kja Kja K
ja https://github.com/palantir/atlasdb/blob/29af3de3eed7c03626a2eaed7f73364c3be5989b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRowColumnRangeExtractor.javaja https://github.com/palantir/atlasdb/raw/29af3de3eed7c03626a2eaed7f73364c3be5989b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRowColumnRangeExtractor.javaja https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRowColumnRangeExtractor.java?ref=29af3de3eed7c03626a2eaed7f73364c3be5989bja X  @@ -21,9 +21,9 @@
 import com.palantir.atlasdb.AtlasDbMetricNames.CellFilterMetrics;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.Value;
+import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServices.ColumnAndTimestamp;
 import com.palantir.atlasdb.tracing.TraceStatistics;
 import com.palantir.atlasdb.util.MetricsManager;
-import com.palantir.util.Pair;
 import java.nio.ByteBuffer;
 import java.util.Collection;
 import java.util.Collections;
@@ -110,15 +110,15 @@ static RowColumnRangeResult extract(
             }
             rowsToRawColumnCount.put(row, columns.size());
             for (ColumnOrSuperColumn c : columns) {
-                Pair<byte[], Long> pair = CassandraKeyValueServices.decomposeName(c.getColumn());
+                ColumnAndTimestamp columnAndTimestamp = CassandraKeyValueServices.decomposeColumnName(c.getColumn());
                 // Column name
-                TraceStatistics.incBytesRead(pair.lhSide);
+                TraceStatistics.incBytesRead(columnAndTimestamp.columnName());
                 // Column value
                 TraceStatistics.incBytesRead(c.getColumn().getValue().length);
 
-                long ts = pair.rhSide;
+                long ts = columnAndTimestamp.timestamp();
                 if (ts < startTs) {
-                    Cell cell = Cell.create(row, pair.lhSide);
+                    Cell cell = Cell.create(row, columnAndTimestamp.columnName());
                     LinkedHashMap<Cell, Value> cellToValue =
                             collector.computeIfAbsent(row, _b -> new LinkedHashMap<>(1));
                     if (cellToValue.containsKey(cell)) {u}(j-a (9fb5ae32fa500bb9046200b3966c946fc7ed7819ja [atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/ValueExtractor.javaja modifiedja Kja Kja Kja https://github.com/palantir/atlasdb/blob/29af3de3eed7c03626a2eaed7f73364c3be5989b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javaja https://github.com/palantir/atlasdb/raw/29af3de3eed7c03626a2eaed7f73364c3be5989b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javaja https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.java?ref=29af3de3eed7c03626a2eaed7f73364c3be5989bja X  @@ -43,10 +43,17 @@ public void internalExtractResult(
             long startTs, ColumnSelection selection, byte[] row, byte[] col, byte[] val, long ts) {
         if (ts < startTs && selection.contains(col)) {
             Cell cell = Cell.create(row, col);
-            Value value = collector.computeIfAbsent(cell, _cell -> Value.create(val, ts));
-            if (value.getTimestamp() != ts) {
-                TraceStatistics.incSkippedValues(1L);
-                notLatestVisibleValueCellFilterCounter.inc();
+            // explicitly not using `collector.computeIfAbsent` to avoid `LambdaForm.linkToTargetMethod` allocation
+            Value existing = collector.get(cell);
+            if (existing != null) {
+                if (existing.getTimestamp() < ts) {
+                    TraceStatistics.incSkippedValues(1L);
+                    notLatestVisibleValueCellFilterCounter.inc();
+                } else {
+                    collector.put(cell, Value.create(val, ts));
+                }
+            } else {
+                collector.put(cell, Value.create(val, ts));
             }
         } else {
             TraceStatistics.incSkippedValues(1L);ueu(9c7d625fb372e7b226db750237507723ae1d75cf}(sha(9c7d625fb372e7b226db750237507723ae1d75cfnode_idEC_kwDOAjP5fdoAKDljN2Q2MjVmYjM3MmU3YjIyNmRiNzUwMjM3NTA3NzIzYWUxZDc1Y2Ycommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-23T14:01:56Zu	committer}(ja 	Tom Papkeja tpapke@palantir.comja 2023-06-23T14:01:56ZumessageReformat teststree}(ja (77cb231794cd8bea10d16d368317420db787cd51url`https://api.github.com/repos/palantir/atlasdb/git/trees/77cb231794cd8bea10d16d368317420db787cd51uja bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9c7d625fb372e7b226db750237507723ae1d75cf
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSVpdQACgkQmF9s0kaF
Iw24Jgf5AQUcptKytoSKvh9pBbWm4MLXPqLjSf2L9mGaBN95VDYwVTaqwOX7Cv0f
I46JlB6E5tQTYUjaODj6OvRU24w3APnQhSU1LvicXPaPNMfU0I+dBfH0baZ77Z1a
lVulkGizirjwL/Su+xUoVOTlqNJQaC1JNcyAeTpwdG8B+m2NoknqFVUdgA9gS3G3
71DddwTF78jpOzzePzQduqcXbllPc27CYXOgjJO2TZhKwmNgBX7FVxmcC7MPRYll
kvf8bqnZgQSdK4frjBeh2Du3oRcBEo93B8q0L6ttCpxHvw9xVfYDVPWVE61ndkHB
uxAAkxDXHprjWtASd9WeKKzIFwh70A==
=e6tW
-----END PGP SIGNATURE-----payloadtree 77cb231794cd8bea10d16d368317420db787cd51
parent 36304f8ae1abd617a7892ecbe9914e963335e473
author Tom Papke <tpapke@palantir.com> 1687528916 +0100
committer Tom Papke <tpapke@palantir.com> 1687528916 +0100

Reformat tests
uuja ^https://api.github.com/repos/palantir/atlasdb/commits/9c7d625fb372e7b226db750237507723ae1d75cfhtml_urlShttps://github.com/palantir/atlasdb/commit/9c7d625fb372e7b226db750237507723ae1d75cfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9c7d625fb372e7b226db750237507723ae1d75cf/commentsja }(login	ToemmscheidJboja MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5ja &https://api.github.com/users/Toemmscheja https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuja }(ja 	Toemmscheja Jboja MDQ6VXNlcjQzNjc1NDkwja 4https://avatars.githubusercontent.com/u/43675490?v=4ja h5ja &https://api.github.com/users/Toemmscheja https://github.com/Toemmscheja 0https://api.github.com/users/Toemmsche/followersja =https://api.github.com/users/Toemmsche/following{/other_user}ja 6https://api.github.com/users/Toemmsche/gists{/gist_id}ja =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j b 4https://api.github.com/users/Toemmsche/subscriptionsjb +https://api.github.com/users/Toemmsche/orgsjb ,https://api.github.com/users/Toemmsche/reposjb 7https://api.github.com/users/Toemmsche/events{/privacy}jb 6https://api.github.com/users/Toemmsche/received_eventsj
b Userjb uparents]}(ja (36304f8ae1abd617a7892ecbe9914e963335e473ja ^https://api.github.com/repos/palantir/atlasdb/commits/36304f8ae1abd617a7892ecbe9914e963335e473ja Shttps://github.com/palantir/atlasdb/commit/36304f8ae1abd617a7892ecbe9914e963335e473uastats}(totalK	additionsK	deletionsKufiles]}(ja (8934d7e1303f219fa52c9f78521a8a30d0a0ab52filenamePlock-impl/src/test/java/com/palantir/lock/impl/AdjustableBackgroundTaskTest.javastatusmodifiedj&b Kj'b KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9c7d625fb372e7b226db750237507723ae1d75cf/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9c7d625fb372e7b226db750237507723ae1d75cf/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.java?ref=9c7d625fb372e7b226db750237507723ae1d75cfpatchXg  @@ -34,7 +34,7 @@ public class AdjustableBackgroundTaskTest {
      * Dummy deterministic scheduled executor service that cannot be shut down.
      * The default {@link DeterministicScheduler} throws an exception when calling {@link ExecutorService#isShutdown()}.
      */
-    static class NeverShutdownDeterministicScheduler extends DeterministicScheduler {
+    private static class NeverShutdownDeterministicScheduler extends DeterministicScheduler {
         @Override
         public boolean isShutdown() {
             return false;
@@ -44,15 +44,10 @@ public boolean isShutdown() {
     // We have to ensure all of our delays are higher than MINIMUM_DELAY_IF_NOT_RUNNING
     // so it doesn't interfere with our tests
     private static final TimeDuration DEFAULT_DELAY = SimpleTimeDuration.of(10, TimeUnit.SECONDS);
-
     private final AtomicInteger field = new AtomicInteger(0);
-
     private final SettableRefreshable<Boolean> shouldRun = Refreshable.create(false);
-
     private final SettableRefreshable<TimeDuration> interval = Refreshable.create(DEFAULT_DELAY);
-
     private final NeverShutdownDeterministicScheduler scheduledExecutor = new NeverShutdownDeterministicScheduler();
-
     private final AdjustableBackgroundTask adjustableBackgroundTask =
             new AdjustableBackgroundTask(shouldRun, interval, field::incrementAndGet, scheduledExecutor);
 uau(e99bfdce803cf07d4cff370e14d94af9ee42974c}(sha(e99bfdce803cf07d4cff370e14d94af9ee42974cnode_idEC_kwDOAjP5fdoAKGU5OWJmZGNlODAzY2YwN2Q0Y2ZmMzcwZTE0ZDk0YWY5ZWU0Mjk3NGMcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-25T13:05:52Zu	committer}(jCb 
Ahmed AlouanejEb aalouane@palantir.comjGb 2023-05-25T13:05:52Zumessagespotlesstree}(j;b (f69fa2d19449590b5fbeaf5037b005467788404aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/f69fa2d19449590b5fbeaf5037b005467788404aujSb bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e99bfdce803cf07d4cff370e14d94af9ee42974c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRvXTAACgkQPlMHVIT1
yhqfwgf/TwCc2UUWwkES4XS5CfJXotFtHJRKlwCOtl6iS0AkoGmPV10DNaZuaaJe
/SZM1F7jAI7LgHfTCSSqWjAuMCzq0nELM/DJ42wmHbuztp6hfPqgb9szlmpNp75q
NQoJueQDGyiiufVz2rbixkaCoW4BSeExf+qJD287kswZDJV7pRvm9qQw4rZ68bP4
AoomAHPhEL9ylH/ibx/QdlNSpffGT/RSs0jN4ctwg9u0wQOTFs2XzaIXlpQ0ml0w
Is7BxR06a1cwXAZ5vwwcKSzo3sVHq8+a1hhIb6mZIe5TxoWnygeWQKscQP2vHGBH
Sj3qZfBcEF/n1qxH1t6RaBTSguJXmg==
=lhHL
-----END PGP SIGNATURE-----payloadtree f69fa2d19449590b5fbeaf5037b005467788404a
parent a64e4dcad03a212e0b49672fb1c4733f11730c1a
author Ahmed Alouane <aalouane@palantir.com> 1685019952 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1685019952 +0100

spotless
uujSb ^https://api.github.com/repos/palantir/atlasdb/commits/e99bfdce803cf07d4cff370e14d94af9ee42974chtml_urlShttps://github.com/palantir/atlasdb/commit/e99bfdce803cf07d4cff370e14d94af9ee42974ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e99bfdce803cf07d4cff370e14d94af9ee42974c/commentsjAb }(loginergo14idJj=b MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jSb #https://api.github.com/users/ergo14jab https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujIb }(jfb ergo14jhb Jj=b MDQ6VXNlcjMwOTAzNzM2jjb 4https://avatars.githubusercontent.com/u/30903736?v=4jlb h5jSb #https://api.github.com/users/ergo14jab https://github.com/ergo14job -https://api.github.com/users/ergo14/followersjqb :https://api.github.com/users/ergo14/following{/other_user}jsb 3https://api.github.com/users/ergo14/gists{/gist_id}jub :https://api.github.com/users/ergo14/starred{/owner}{/repo}jwb 1https://api.github.com/users/ergo14/subscriptionsjyb (https://api.github.com/users/ergo14/orgsj{b )https://api.github.com/users/ergo14/reposj}b 4https://api.github.com/users/ergo14/events{/privacy}jb 3https://api.github.com/users/ergo14/received_eventsjb Userjb uparents]}(j;b (a64e4dcad03a212e0b49672fb1c4733f11730c1ajSb ^https://api.github.com/repos/palantir/atlasdb/commits/a64e4dcad03a212e0b49672fb1c4733f11730c1ajab Shttps://github.com/palantir/atlasdb/commit/a64e4dcad03a212e0b49672fb1c4733f11730c1auastats}(totalK	additionsK 	deletionsKufiles](}(j;b (bc07ab62154dcf5b950666e12bded8c4b75c8a71filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedjb K jb KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e99bfdce803cf07d4cff370e14d94af9ee42974c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e99bfdce803cf07d4cff370e14d94af9ee42974c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=e99bfdce803cf07d4cff370e14d94af9ee42974cpatchX  @@ -2628,7 +2628,6 @@ static void reportExpectationsCollectedData(
                 .ifPresent(kvsCallReadInfo -> metrics.worstKvsBytesRead().update(kvsCallReadInfo.bytesRead()));
     }
 
-
     private long getStartTimestamp() {
         return startTimestamp.get();
     }u}(j;b (87386684ba18bf994ca54098632ea03494445b7djb matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javajb modifiedjb K jb Kjb Kjb https://github.com/palantir/atlasdb/blob/e99bfdce803cf07d4cff370e14d94af9ee42974c/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajb https://github.com/palantir/atlasdb/raw/e99bfdce803cf07d4cff370e14d94af9ee42974c/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajb https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=e99bfdce803cf07d4cff370e14d94af9ee42974c      jb X  @@ -18,33 +18,18 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.mockito.Mockito.spy;
-import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.verifyNoInteractions;
 import static org.mockito.Mockito.when;
 
-import com.palantir.atlasdb.transaction.TransactionConfig;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
-import com.palantir.atlasdb.transaction.api.expectations.KvsCallReadInfo;
-import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
-import com.palantir.atlasdb.transaction.impl.ExpectationsAwareTransaction;
-import com.palantir.atlasdb.transaction.impl.SnapshotTransaction;
-import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
-import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
-import java.util.Optional;
-import java.util.concurrent.atomic.AtomicReference;
-import java.util.function.Supplier;
 import org.junit.Before;
 import org.junit.Test;
 import org.junit.runner.RunWith;
-import org.mockito.Answers;
 import org.mockito.Mock;
-import org.mockito.Spy;
-import org.mockito.invocation.InvocationOnMock;
 import org.mockito.junit.MockitoJUnitRunner;
-import org.mockito.stubbing.Answer;
 
 @RunWith(MockitoJUnitRunner.class)
 public final class ExpectationsMetricsReportingTest {ueu(072f87112873c25af3123beabb5fc400745ead96}(sha(072f87112873c25af3123beabb5fc400745ead96node_idEC_kwDOAjP5fdoAKDA3MmY4NzExMjg3M2MyNWFmMzEyM2JlYWJiNWZjNDAwNzQ1ZWFkOTYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-23T11:02:11Zu	committer}(jb GitHubjb noreply@github.comjb 2023-05-23T11:02:11Zumessage1Initialize workload server asynchronously (#6566)tree}(jb (8c29d5df5b38b61e6135dd3387ad3f34374a1df3url`https://api.github.com/repos/palantir/atlasdb/git/trees/8c29d5df5b38b61e6135dd3387ad3f34374a1df3ujb bhttps://api.github.com/repos/palantir/atlasdb/git/commits/072f87112873c25af3123beabb5fc400745ead96
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkbJ0zCRBK7hj4Ov3rIwAA/KQIAF/xxhP1FGNDVZ+OdQmy2BUv
SpLm6CkksRhL6Ki8osYSCAAe4gH5B/FqMMJ1wl/t6iEYE4Aq1Adugd6XeJ+AbRqZ
zp6e2SVOjTMkeB3wxEq9WJgu0mCY9LH/25efX5XBsxuKGLIrzP9gjbX29xcS0uew
FlcwwIpxhxLIp0q2tXIspOJplbt/WoRrCCg2bIN15mxofsuhXI0GDJZNh1xSnFJa
Co0gEqzvfWhWlS5CGZlLGTYAKBYf9tAI+wckDLgmd/yfHkBmXd8WvaQw2g7TYKKV
jsGixlXc4u4+GuNsclCSZJlSPrnqozS1MKFujC51PEv8Iu3RLEaHHtlgS2DULCk=
=yQX/
-----END PGP SIGNATURE-----
payloadX  tree 8c29d5df5b38b61e6135dd3387ad3f34374a1df3
parent 1083711b382690fa3e64f57135fe510943c3083c
author Jeremy Kong <jkong@palantir.com> 1684839731 +0100
committer GitHub <noreply@github.com> 1684839731 +0000

Initialize workload server asynchronously (#6566)

 uujb ^https://api.github.com/repos/palantir/atlasdb/commits/072f87112873c25af3123beabb5fc400745ead96html_urlShttps://github.com/palantir/atlasdb/commit/072f87112873c25af3123beabb5fc400745ead96comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/072f87112873c25af3123beabb5fc400745ead96/commentsjb }(login
jeremyk-91idJZ jb MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jb 'https://api.github.com/users/jeremyk-91jb https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujb }(jb web-flowjb J/jb MDQ6VXNlcjE5ODY0NDQ3jb 4https://avatars.githubusercontent.com/u/19864447?v=4jb h5jb %https://api.github.com/users/web-flowjb https://github.com/web-flowjb /https://api.github.com/users/web-flow/followersjb <https://api.github.com/users/web-flow/following{/other_user}jb 5https://api.github.com/users/web-flow/gists{/gist_id}jb <https://api.github.com/users/web-flow/starred{/owner}{/repo}jb 3https://api.github.com/users/web-flow/subscriptionsjb *https://api.github.com/users/web-flow/orgsjb +https://api.github.com/users/web-flow/reposjb 6https://api.github.com/users/web-flow/events{/privacy}jb 5https://api.github.com/users/web-flow/received_eventsj c Userjc uparents]}(jb (1083711b382690fa3e64f57135fe510943c3083cjb ^https://api.github.com/repos/palantir/atlasdb/commits/1083711b382690fa3e64f57135fe510943c3083cjb Shttps://github.com/palantir/atlasdb/commit/1083711b382690fa3e64f57135fe510943c3083cuastats}(totalK#	additionsK"	deletionsKufiles](}(jb (b86932b661e3da17f104f58842a6abb1d2486e6ffilenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedjc Kjc K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/072f87112873c25af3123beabb5fc400745ead96/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/072f87112873c25af3123beabb5fc400745ead96/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=072f87112873c25af3123beabb5fc400745ead96patchXI  @@ -22,6 +22,7 @@
 import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.common.util.concurrent.Uninterruptibles;
 import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
@@ -45,6 +46,7 @@
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
 import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.refreshable.Refreshable;
@@ -55,6 +57,7 @@
 import io.dropwizard.lifecycle.setup.LifecycleEnvironment;
 import io.dropwizard.setup.Bootstrap;
 import io.dropwizard.setup.Environment;
+import java.time.Instant;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
@@ -129,6 +132,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
 
+        waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
+
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
                 .run(
                         createSingleRowTwoCellsWorkflowValidator(
@@ -147,6 +152,28 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
+    private void waitForTransactionStoreFactoryToBeInitialized(AtlasDbTransactionStoreFactory factory) {
+        // TODO (jkong): This is awful, but sufficient for now.
+        Instant deadline = Instant.now().plusSeconds(TimeUnit.MINUTES.toSeconds(5));
+        while (Instant.now().isBefore(deadline)) {
+            if (factory.isInitialized()) {
+                log.info("AtlasDB transaction store factory initialized.");
+                return;
+            } else {
+                log.info(
+                        "AtlasDB transaction store factory not yet initialized. Waiting for five seconds; we won't"
+                                + " retry after {}.",
+                        SafeArg.of("deadline", deadline));
+                Uninterruptibles.sleepUninterruptibly(5, TimeUnit.SECONDS);
+            }
+        }
+        log.error("AtlasDB transaction store factory not initialized after five minutes, which suggests that there's"
+                + " likely to be some issue with starting up one of our service's dependencies.");
+        log.info("antithesis: terminate");
+        log.error("Workflow will now exit.");
+        System.exit(1);
+    }
+
     private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             SingleBusyCellWorkflowConfiguration workflowConfig,u}(jb (d7e657bac4380f77b52abaf6625e5ae6ced4addej"c Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj$c modifiedjc Kjc K j&c Kj'c https://github.com/palantir/atlasdb/blob/072f87112873c25af3123beabb5fc400745ead96/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj)c https://github.com/palantir/atlasdb/raw/072f87112873c25af3123beabb5fc400745ead96/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj+c https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=072f87112873c25af3123beabb5fc400745ead96j-c @@ -19,6 +19,7 @@ runtime:
           trustStorePath: "var/security/trustStore.jks"
 install:
   atlas:
+    initializeAsync: true
     keyValueService:
       type: cassandra
       servers:u}(jb (e998e111e223273bdb28df2df52768ed59a74d5dj"c Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj$c modifiedjc Kjc Kj&c Kj'c https://github.com/palantir/atlasdb/blob/072f87112873c25af3123beabb5fc400745ead96/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj)c https://github.com/palantir/atlasdb/raw/072f87112873c25af3123beabb5fc400745ead96/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj+c https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=072f87112873c25af3123beabb5fc400745ead96j-c @@ -1,9 +1,10 @@
 runtime: {}
 install:
   atlas:
-    namespace: test
+    initializeAsync: true
     keyValueService:
       type: memory
+    namespace: test
   singleRowTwoCellsConfig:
     tableConfiguration:
       tableName: two-cells-testu}(jb (d7dd783c1221e2a93fad625414ea628dac4c9695j"c matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javaj$c modifiedjc Kjc K j&c Kj'c https://github.com/palantir/atlasdb/blob/072f87112873c25af3123beabb5fc400745ead96/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj)c https://github.com/palantir/atlasdb/raw/072f87112873c25af3123beabb5fc400745ead96/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj+c https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=072f87112873c25af3123beabb5fc400745ead96j-c X  @@ -54,6 +54,10 @@ public AtlasDbTransactionStoreFactory(TransactionManager transactionManager, Opt
         this.maybeNamespace = maybeNamespace.map(Namespace::create);
     }
 
+    public boolean isInitialized() {
+        return transactionManager.isInitialized();
+    }
+
     @Override
     public InteractiveTransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
         return AtlasDbTransactionStore.create(transactionManager, toAtlasTables(tables, indexes));ueu(415b7b620a398473b9626aad927f5ed778e74b9b}(sha(415b7b620a398473b9626aad927f5ed778e74b9bnode_idEC_kwDOAjP5fdoAKDQxNWI3YjYyMGEzOTg0NzNiOTYyNmFhZDkyN2Y1ZWQ3NzhlNzRiOWIcommit}(author}(name
jumi99-githubemail0117930732+jumi99-github@users.noreply.github.comdate2023-03-31T12:41:25Zu	committer}(jQc GitHubjSc noreply@github.comjUc 2023-03-31T12:41:25ZumessageUpdate pr-6496.v2.ymltree}(jIc (ed8a985ad85c55aa45c8e0489689fe1423b12988url`https://api.github.com/repos/palantir/atlasdb/git/trees/ed8a985ad85c55aa45c8e0489689fe1423b12988ujac bhttps://api.github.com/repos/palantir/atlasdb/git/commits/415b7b620a398473b9626aad927f5ed778e74b9b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkJtT1CRBK7hj4Ov3rIwAACHwIAJFeKDGNMOdzpQlzf3R86VNM
2nFMz80Jc5minP955TEHEQCBYI4W4rE3nTMLfRoUr4ZkqNwMx1vxG+6DnsQdqxUA
FKrSBETCtYWtxm4QA0uC8AnvU7oCHXH8fOdaIrL1IWuxcTTYb6/c4WfR11lUX/nk
CLENRMx247wPeHtLmbMaizOvxEhGLNBqxjFqx5isF5GObTzeuASEIFsMbW+rvRrd
y2/nNrdxWqhn19zr0nKB9nzhDiL45UbVbBY9Fg30aQfc0v3iXeEACUmYi+7CY1y5
t6KIPl36w0BLHGdJJvCBvcJg7GUl5KEwjOtwp/DKebHpw/FDjJc16sXkY6S8BfY=
=BxxT
-----END PGP SIGNATURE-----
payloadX  tree ed8a985ad85c55aa45c8e0489689fe1423b12988
parent b7e54108cf9ac6df1e22b675f6e54ea215b7844d
author jumi99-github <117930732+jumi99-github@users.noreply.github.com> 1680266485 +0200
committer GitHub <noreply@github.com> 1680266485 +0200

Update pr-6496.v2.ymluujac ^https://api.github.com/repos/palantir/atlasdb/commits/415b7b620a398473b9626aad927f5ed778e74b9bhtml_urlShttps://github.com/palantir/atlasdb/commit/415b7b620a398473b9626aad927f5ed778e74b9bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/415b7b620a398473b9626aad927f5ed778e74b9b/commentsjOc }(login
jumi99-githubidJzjKc U_kgDOBwd67A
avatar_url5https://avatars.githubusercontent.com/u/117930732?v=4gravatar_idh5jac *https://api.github.com/users/jumi99-githubjoc  https://github.com/jumi99-github
followers_url4https://api.github.com/users/jumi99-github/followers
following_urlAhttps://api.github.com/users/jumi99-github/following{/other_user}	gists_url:https://api.github.com/users/jumi99-github/gists{/gist_id}starred_urlAhttps://api.github.com/users/jumi99-github/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/jumi99-github/subscriptionsorganizations_url/https://api.github.com/users/jumi99-github/orgs	repos_url0https://api.github.com/users/jumi99-github/repos
events_url;https://api.github.com/users/jumi99-github/events{/privacy}received_events_url:https://api.github.com/users/jumi99-github/received_eventstypeUser
site_adminujWc }(jtc web-flowjvc J/jKc MDQ6VXNlcjE5ODY0NDQ3jxc 4https://avatars.githubusercontent.com/u/19864447?v=4jzc h5jac %https://api.github.com/users/web-flowjoc https://github.com/web-flowj}c /https://api.github.com/users/web-flow/followersjc <https://api.github.com/users/web-flow/following{/other_user}jc 5https://api.github.com/users/web-flow/gists{/gist_id}jc <https://api.github.com/users/web-flow/starred{/owner}{/repo}jc 3https://api.github.com/users/web-flow/subscriptionsjc *https://api.github.com/users/web-flow/orgsjc +https://api.github.com/users/web-flow/reposjc 6https://api.github.com/users/web-flow/events{/privacy}jc 5https://api.github.com/users/web-flow/received_eventsjc Userjc uparents]}(jIc (b7e54108cf9ac6df1e22b675f6e54ea215b7844djac ^https://api.github.com/repos/palantir/atlasdb/commits/b7e54108cf9ac6df1e22b675f6e54ea215b7844djoc Shttps://github.com/palantir/atlasdb/commit/b7e54108cf9ac6df1e22b675f6e54ea215b7844duastats}(totalK	additionsK	deletionsKufiles]}(jIc (362f242519ecfa9cf598fb9dcff80dc55b91c4b9filename$changelog/@unreleased/pr-6496.v2.ymlstatusmodifiedjc Kjc KchangesKblob_url|https://github.com/palantir/atlasdb/blob/415b7b620a398473b9626aad927f5ed778e74b9b/changelog%2F%40unreleased%2Fpr-6496.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/415b7b620a398473b9626aad927f5ed778e74b9b/changelog%2F%40unreleased%2Fpr-6496.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6496.v2.yml?ref=415b7b620a398473b9626aad927f5ed778e74b9bpatch@@ -1,5 +1,5 @@
 type: fix
 fix:
-  description: bump postgres
+  description: Upgraded Postgres from 42.4.1 -> 42.4.3 to resolve a CVE.
   links:
   - https://github.com/palantir/atlasdb/pull/6496uau(fb499450d1966eb78765079ec713e7098b0b55b3}(sha(fb499450d1966eb78765079ec713e7098b0b55b3node_idEC_kwDOAjP5fdoAKGZiNDk5NDUwZDE5NjZlYjc4NzY1MDc5ZWM3MTNlNzA5OGIwYjU1YjMcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-08-08T20:22:14Zu	committer}(jc Tom Petraccajc tpetracca@palantir.comjc 2023-08-08T20:22:14Zumessagedo not deprecatetree}(jc (3ea842556eb42deb1b370514b71b17370db768bdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/3ea842556eb42deb1b370514b71b17370db768bdujc bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fb499450d1966eb78765079ec713e7098b0b55b3
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEHTC5rqjQ6qmsb7sZRnUGJaXvqFMFAmTSo/YACgkQRnUGJaXv
qFPFFgf/TJZscfgEuEcL6A7NfdDI/R9D3a3zt9keCuAwuKug08FW5Ymt1xYcrVKl
3QhVsuErHpTmBLQXCWLu+/rTZ4p7scHHLfC5HKwQEsjIofmp2AagHU+1wEOikgKt
aMUBLD0Rfveh/jGHrei8msGtArHQftAQxgK8JO4Nlckt81TwD9hiCdw8ZtbCuCiO
W2DRLgy5yZk8VFSw/hu2DEQPx9uGa/wh2XJjo7QOoOkTKTidKRkpf9bkggJwyevc
Y/1j6sBLvkBEZtTXEV/wYNCpT/010CYuAORYZqNszs76ixuv3a8SYOl2zO+PkdPu
xRpoPeyYv9qWoEsCDIE7rA0gOEwVIQ==
=hCYu
-----END PGP SIGNATURE-----payloadtree 3ea842556eb42deb1b370514b71b17370db768bd
parent bf5f00747916d8f9a1552deb11b1ac7bb0faa053
author Tom Petracca <tpetracca@palantir.com> 1691526134 -0400
committer Tom Petracca <tpetracca@palantir.com> 1691526134 -0400

do not deprecate
uujc ^https://api.github.com/repos/palantir/atlasdb/commits/fb499450d1966eb78765079ec713e7098b0b55b3html_urlShttps://github.com/palantir/atlasdb/commit/fb499450d1966eb78765079ec713e7098b0b55b3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fb499450d1966eb78765079ec713e7098b0b55b3/commentsjc }(login	tpetraccaidJ& jc MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5jc &https://api.github.com/users/tpetraccajc https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminujc }(jc 	tpetraccajc J& jc MDQ6VXNlcjI1NTQzMjg=jc 3https://avatars.githubusercontent.com/u/2554328?v=4jc h5jc &https://api.github.com/users/tpetraccajc https://github.com/tpetraccajc 0https://api.github.com/users/tpetracca/followersjc =https://api.github.com/users/tpetracca/following{/other_user}jc 6https://api.github.com/users/tpetracca/gists{/gist_id}jc =https://api.github.com/users/tpetracca/starred{/owner}{/repo}jc 4https://api.github.com/users/tpetracca/subscriptionsjc +https://api.github.com/users/tpetracca/orgsj d ,https://api.github.com/users/tpetracca/reposjd 7https://api.github.com/users/tpetracca/events{/privacy}jd 6https://api.github.com/users/tpetracca/received_eventsjd Userjd uparents]}(jc (bf5f00747916d8f9a1552deb11b1ac7bb0faa053jc ^https://api.github.com/repos/palantir/atlasdb/commits/bf5f00747916d8f9a1552deb11b1ac7bb0faa053jc Shttps://github.com/palantir/atlasdb/commit/bf5f00747916d8f9a1552deb11b1ac7bb0faa053uastats}(totalK	additionsK	deletionsKufiles]}(jc (25e42a91ab4e5010e8ec19188ac233f00c6b4cbbfilenameRatlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javastatusmodifiedj"d Kj#d KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/fb499450d1966eb78765079ec713e7098b0b55b3/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaraw_urlhttps://github.com/palantir/atlasdb/raw/fb499450d1966eb78765079ec713e7098b0b55b3/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=fb499450d1966eb78765079ec713e7098b0b55b3patchX  @@ -170,11 +170,10 @@ public abstract class TransactionManagers {
     abstract Set<Schema> schemas();
 
     /**
-     * @deprecated This method is not used and should not be overriden from the default. It only exists because deleting
+     * This method is not used and should not be overriden from the default. It only exists because deleting
      * it would be an ABI break.
      */
     @Value.Default
-    @Deprecated
     Consumer<Object> registrar() {
         return resource -> {};
     }uau(aec616b04b98c926eea6a1e5663e846d7505476b}(sha(aec616b04b98c926eea6a1e5663e846d7505476bnode_idEC_kwDOAjP5fdoAKGFlYzYxNmIwNGI5OGM5MjZlZWE2YTFlNTY2M2U4NDZkNzUwNTQ3NmIcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-07-24T19:21:53Zu	committer}(j?d Tom PetraccajAd tpetracca@palantir.comjCd 2023-07-26T01:04:11Zumessage entirety of ete test PR squashedtree}(j7d (cf9de5e2233bc811c30c08cceb9924ee581952afurl`https://api.github.com/repos/palantir/atlasdb/git/trees/cf9de5e2233bc811c30c08cceb9924ee581952afujOd bhttps://api.github.com/repos/palantir/atlasdb/git/commits/aec616b04b98c926eea6a1e5663e846d7505476b
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujOd ^https://api.github.com/repos/palantir/atlasdb/commits/aec616b04b98c926eea6a1e5663e846d7505476bhtml_urlShttps://github.com/palantir/atlasdb/commit/aec616b04b98c926eea6a1e5663e846d7505476bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/aec616b04b98c926eea6a1e5663e846d7505476b/commentsj=d }(login	tpetraccaidJ& j9d MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5jOd &https://api.github.com/users/tpetraccaj[d https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminujEd }(j`d 	tpetraccajbd J& j9d MDQ6VXNlcjI1NTQzMjg=jdd 3https://avatars.githubusercontent.com/u/2554328?v=4jfd h5jOd &https://api.github.com/users/tpetraccaj[d https://github.com/tpetraccajid 0https://api.github.com/users/tpetracca/followersjkd =https://api.github.com/users/tpetracca/following{/other_user}jmd 6https://api.github.com/users/tpetracca/gists{/gist_id}jod =https://api.github.com/users/tpetracca/starred{/owner}{/repo}jqd 4https://api.github.com/users/tpetracca/subscriptionsjsd +https://api.github.com/users/tpetracca/orgsjud ,https://api.github.com/users/tpetracca/reposjwd 7https://api.github.com/users/tpetracca/events{/privacy}jyd 6https://api.github.com/users/tpetracca/received_eventsj{d Userj}d uparents]}(j7d (2d3302e04df9f15bf77f64cd5155fa3aa1d3e0efjOd ^https://api.github.com/repos/palantir/atlasdb/commits/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0efj[d Shttps://github.com/palantir/atlasdb/commit/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0efuastats}(totalM	additionsM0	deletionsMufiles](}(j7d (49f6265dff4feba112c4f0f6feea9f6f5f0bd466filenameatlasdb-ete-tests/build.gradlestatusmodifiedjd K&jd KchangesK?blob_urlrhttps://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fbuild.gradleraw_urlqhttps://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fbuild.gradle?ref=aec616b04b98c926eea6a1e5663e846d7505476bpatchXy
  @@ -101,43 +101,56 @@ task prepareForEteTests(type: Copy, dependsOn: 'distTar') {
     rename { filename -> 'atlasdb-ete-snapshot.tgz' }
 }
 
-task longTest(type: Test) {
-    dependsOn prepareForEteTests
-    include '**/MultiCassandraTestSuite.class'
-}
-
-task timeLockTest(type: Test) {
+// standalone test with its own task
+// is very expensive and so separate task is used to control when/where it is executed
+task timeLockMigrationTest(type: Test) {
     dependsOn prepareForEteTests, ':timelock-server-distribution:dockerTag'
-    include '**/*TimeLock*.class'
-    exclude '**/*TimeLockMigration*.class'
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.standalone.TimeLockMigrationEteTest'
+    }
 }
 
-task timeLockMigrationTest(type: Test) {
-    dependsOn prepareForEteTests, ':timelock-server-distribution:dockerTag'
-    include '**/*TimeLockMigration*.class'
+// test suites with their own test tasks
+// not sure why some have it and others do not
+
+task singleClientWithEmbeddedAndThreeNodeCassandraTest(type: Test) {
+    dependsOn prepareForEteTests
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite'
+    }
 }
 
-task dbkvsTest(type: Test) {
+task singleClientWithEmbeddedAndPostgresTest(type: Test) {
     dependsOn prepareForEteTests
-    include '**/DbKvsTestSuite.class'
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndPostgresTestSuite'
+    }
 }
 
-task oracleTest(type: Test) {
+task singleClientWithEmbeddedAndOracleTest(type: Test) {
     dependsOn prepareForEteTests
-    include '**/OracleDbKvsEteTestSuite.class'
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndOracleTestSuite'
+    }
 }
 
 test {
-    dependsOn longTest, prepareForEteTests, timeLockTest, dbkvsTest
-    exclude '**/MultiCassandraTestSuite.class'
-
-    exclude '**/*TimeLock*.class'
-    // Technically covered by previous line, but explicitly avoiding in case of refactor
-    exclude '**/*TimeLockMigration*.class'
-
-    exclude '**/*EteTest.class'
-    exclude '**/DbKvsTestSuite.class'
-    exclude '**/OracleDbKvsEteTestSuite.class'
+    // this list explicitly doesn't include timelockMigration because it's too expensive to run on every PR
+    // this list explicitly doesn't include singleClientWithEmbeddedAndOracleTest; not sure why
+    // :timelock-server-distribution:dockerTag needed by any ETE test that spins up a timelock-server
+    dependsOn prepareForEteTests, ':timelock-server-distribution:dockerTag', singleClientWithEmbeddedAndThreeNodeCassandraTest, singleClientWithEmbeddedAndPostgresTest
+
+    filter {
+        // include standalone and suite tests
+        includeTestsMatching 'com.palantir.atlasdb.ete.standalone.*'
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.*'
+
+        // exclude any tests with their own 1-off tasks
+        excludeTestsMatching 'com.palantir.atlasdb.ete.standalone.TimeLockMigrationEteTest'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndPostgresTestSuite'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndOracleTestSuite'
+    }
 }
 
 distribution {u}(j7d (b0d6432234b88e585a3b355eb298ab1f500744d6jd .atlasdb-ete-tests/docker-compose.cassandra.ymljd removedjd K jd K4jd K4jd https://github.com/palantir/atlasdb/blob/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0ef/atlasdb-ete-tests%2Fdocker-compose.cassandra.ymljd https://github.com/palantir/atlasdb/raw/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0ef/atlasdb-ete-tests%2Fdocker-compose.cassandra.ymljd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.cassandra.yml?ref=2d3302e04df9f15bf77f64cd5155fa3aa1d3e0efjd X  @@ -1,52 +0,0 @@
-version: '2'
-
-services:
-  cassandra:
-    image: palantirtechnologies/docker-cassandra-atlasdb:$CASSANDRA_VERSION
-    ports:
-      - "9160"
-      - "9042"
-      - "7199"
-    environment:
-      - MAX_HEAP_SIZE=$CASSANDRA_MAX_HEAP_SIZE
-      - HEAP_NEWSIZE=$CASSANDRA_HEAP_NEWSIZE
-      - LOCAL_JMX=no
-
-  ete1:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console'
-    depends_on:
-      - cassandra
-    environment:
-      - ME=ete1
-    ports:
-      - "3828"
-
-  ete2:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console'
-    depends_on:
-      - cassandra
-    environment:
-      - ME=ete2
-    ports:
-      - "3828"
-
-  ete3:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console'
-    depends_on:
-      - cassandra
-    environment:
-      - ME=ete3
-    ports:
-      - "3828"
-
-  ete-cli:
-    build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.cassandra.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
-    environment:
-      - ME=ete1
-    depends_on:
-      - ete1u}(j7d (cf0290d516e630754c368658c2f7f72e74bd6e27jd *atlasdb-ete-tests/docker-compose.dbkvs.ymljd removedjd K jd K2jd K2jd ~https://github.com/palantir/atlasdb/blob/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0ef/atlasdb-ete-tests%2Fdocker-compose.dbkvs.ymljd }https://github.com/palantir/atlasdb/raw/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0ef/atlasdb-ete-tests%2Fdocker-compose.dbkvs.ymljd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.dbkvs.yml?ref=2d3302e04df9f15bf77f64cd5155fa3aa1d3e0efjd X#  @@ -1,50 +0,0 @@
-version: '2'
-
-services:
-  postgres:
-    image: postgres:9.6-alpine
-    environment:
-       POSTGRES_PASSWORD: palantir
-       POSTGRES_USER: palantir
-       POSTGRES_DB: atlas
-    ports:
-      - "5432"
-
-  ete1:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.dbkvs.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console'
-    depends_on:
-      - postgres
-    environment:
-      - ME=ete1
-    ports:
-      - "3828"
-
-  ete2:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.dbkvs.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console'
-    depends_on:
-      - postgres
-    environment:
-      - ME=ete2
-    ports:
-      - "3828"
-
-  ete3:
-    build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.dbkvs.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console'
-    depends_on:
-      - postgres
-    environment:
-      - ME=ete3
-    ports:
-      - "3828"
-
-  ete-cli:
-    build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.dbkvs.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
-    environment:
-      - ME=ete1
-    depends_on:
-      - ete1u}(j7d (07187320b13fc117cd4600f52f413c997120b078jd Uatlasdb-ete-tests/docker-compose.multi-client-with-postgres-timelock-and-postgres.ymljd renamedjd K	jd Kjd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-postgres-timelock-and-postgres.ymljd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-postgres-timelock-and-postgres.ymljd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-postgres-timelock-and-postgres.yml?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X	  @@ -21,7 +21,7 @@ services:
 
   ete1:
     build: .
-    command: [bash, -c, 'cp var/conf/atlasdb-ete.timelock.dbkvs.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console']
+    command: [bash, -c, 'cp var/conf/atlasdb-ete.postgres-timelock-and-postgres.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console']
     ports:
       - "3828"
     environment:
@@ -30,9 +30,13 @@ services:
       - postgres
       - timelock
 
-  ete-cli:
+  ete2:
     build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.timelock.dbkvs.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
+    command: [bash, -c, 'cp var/conf/atlasdb-ete.postgres-timelock-and-postgres.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console']
+    ports:
+      - "3828"
+    environment:
+      - ME=ete2
     depends_on:
-      - ete1
+      - postgres
+      - timelockprevious_filenameEatlasdb-ete-tests/docker-compose.timelock.database.bound.postgres.ymlu}(j7d (21fed136618090c281f8a5228d1da2b9b72eeb1djd Matlasdb-ete-tests/docker-compose.multi-client-with-timelock-and-cassandra.ymljd renamedjd Kjd Kjd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-timelock-and-cassandra.ymljd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-timelock-and-cassandra.ymljd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.multi-client-with-timelock-and-cassandra.yml?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X  @@ -20,7 +20,7 @@ services:
 
   ete1:
     build: .
-    command: [bash, -c, 'cp var/conf/atlasdb-ete.timelock.cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console']
+    command: [bash, -c, 'cp var/conf/atlasdb-ete.timelock-and-cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console']
     ports:
       - "3828"
     depends_on:
@@ -29,11 +29,13 @@ services:
     environment:
       - ME=ete1
 
-  ete-cli:
+  ete2:
     build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.timelock.cassandra.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
+    command: [bash, -c, 'cp var/conf/atlasdb-ete.timelock-and-cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console']
+    ports:
+      - "3828"
     depends_on:
-      - ete1
+      - cassandra
+      - timelock
     environment:
-      - ME=ete1
+      - ME=ete2jd 7atlasdb-ete-tests/docker-compose.timelock.cassandra.ymlu}(j7d (1302da74efe18e84324e9d1b29b32b97d32d2286jd +atlasdb-ete-tests/docker-compose.oracle.ymljd removedjd K jd Kjd Kjd https://github.com/palantir/atlasdb/blob/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0ef/atlasdb-ete-tests%2Fdocker-compose.oracle.ymljd ~https://github.com/palantir/atlasdb/raw/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0ef/atlasdb-ete-tests%2Fdocker-compose.oracle.ymljd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.oracle.yml?ref=2d3302e04df9f15bf77f64cd5155fa3aa1d3e0efjd X  @@ -1,26 +0,0 @@
-version: '2'
-
-services:
-  oracle:
-    image: palantirtechnologies/oracle-atlasdb:19.20.0.0-se
-    ports:
-      - "1521"
-
-  ete1:
-    build: .
-    command: [bash, -c, 'cp var/conf/atlasdb-ete.oracle.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://oracle:1521 && service/bin/init.sh console']
-    ports:
-      - "3828"
-    depends_on:
-      - oracle
-    environment:
-      - ME=ete1
-
-  ete-cli:
-    build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.oracle.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
-    depends_on:
-      - ete1
-    environment:
-      - ME=ete1u}(j7d (d312be230917aef7f5b7fdc8f70e506af40539f4jd Natlasdb-ete-tests/docker-compose.single-client-with-embedded-and-cassandra.ymljd addedjd Kjd K jd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-cassandra.ymljd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-cassandra.ymljd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-cassandra.yml?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X}  @@ -0,0 +1,23 @@
+version: '2'
+
+services:
+  cassandra:
+    image: palantirtechnologies/docker-cassandra-atlasdb:$CASSANDRA_VERSION
+    ports:
+      - "9160"
+      - "9042"
+      - "7199"
+    environment:
+      - MAX_HEAP_SIZE=$CASSANDRA_MAX_HEAP_SIZE
+      - HEAP_NEWSIZE=$CASSANDRA_HEAP_NEWSIZE
+      - LOCAL_JMX=no
+
+  ete1:
+    build: .
+    command: bash -c 'cp var/conf/atlasdb-ete.embedded-and-cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra:9160 && service/bin/init.sh console'
+    depends_on:
+      - cassandra
+    environment:
+      - ME=ete1
+    ports:
+      - "3828"u}(j7d (ba464419ea696a2af89118c5538fb23ca95d46d5jd Katlasdb-ete-tests/docker-compose.single-client-with-embedded-and-oracle.ymljd addedjd Kjd K jd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-oracle.ymljd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-oracle.ymljd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-oracle.yml?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X  @@ -0,0 +1,17 @@
+version: '2'
+
+services:
+  oracle:
+    image: palantirtechnologies/oracle-atlasdb:19.20.0.0-se
+    ports:
+      - "1521"
+
+  ete1:
+    build: .
+    command: [bash, -c, 'cp var/conf/atlasdb-ete.embedded-and-oracle.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://oracle:1521 && service/bin/init.sh console']
+    ports:
+      - "3828"
+    depends_on:
+      - oracle
+    environment:
+      - ME=ete1u}(j7d (b347aa74093dbeb0943cd9f60c89935c4c4985c5jd Matlasdb-ete-tests/docker-compose.single-client-with-embedded-and-postgres.ymljd addedjd Kjd K jd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-postgres.ymljd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-postgres.ymljd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-postgres.yml?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X  @@ -0,0 +1,21 @@
+version: '2'
+
+services:
+  postgres:
+    image: postgres:9.6-alpine
+    environment:
+       POSTGRES_PASSWORD: palantir
+       POSTGRES_USER: palantir
+       POSTGRES_DB: atlas
+    ports:
+      - "5432"
+
+  ete1:
+    build: .
+    command: bash -c 'cp var/conf/atlasdb-ete.embedded-and-postgres.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://postgres:5432 && service/bin/init.sh console'
+    depends_on:
+      - postgres
+    environment:
+      - ME=ete1
+    ports:
+      - "3828"u}(j7d (812166d4ee2f660ecd1a7baff916e76437cc8fb4jd Yatlasdb-ete-tests/docker-compose.single-client-with-embedded-and-three-node-cassandra.ymljd renamedjd Kjd K
jd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-three-node-cassandra.ymljd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-three-node-cassandra.ymljd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.single-client-with-embedded-and-three-node-cassandra.yml?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd XD  @@ -30,17 +30,8 @@ services:
 
   ete1:
     build: .
-    command: bash -c 'cp var/conf/atlasdb-ete.multiple-cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160 && service/bin/init.sh console'
+    command: bash -c 'cp var/conf/atlasdb-ete.embedded-and-three-node-cassandra.yml var/conf/atlasdb-ete.yml && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160 && service/bin/init.sh console'
     environment:
       - ME=ete1
     ports:
       - "3828"
-
-  ete-cli:
-    build: .
-    entrypoint: [bash, -c, 'cp var/conf/atlasdb-ete.multiple-cassandra.yml var/conf/atlasdb-ete.yml && "$$@"', --]
-    command: exit
-    environment:
-      - ME=ete1
-    depends_on:
-      - ete1jd 7atlasdb-ete-tests/docker-compose.multiple-cassandra.ymlu}(j7d (0f3fca984aef06482c3550558b9641048da27f88jd Datlasdb-ete-tests/docker/conf/atlasdb-ete.embedded-and-cassandra.ymljd renamedjd K jd Kjd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-cassandra.ymljd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-cassandra.ymljd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-cassandra.yml?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X  @@ -26,17 +26,3 @@ atlasdb:
     autoRefreshNodes: false
 
   namespace: atlasete
-
-  leader:
-    quorumSize: 2
-    learnerLogDir: var/data/paxosLog/learner1
-    acceptorLogDir: var/data/paxosLog/acceptor1
-    localServer: http://${ME}:3828
-    leaders:
-      - http://ete1:3828
-      - http://ete2:3828
-      - http://ete3:3828
-    sslConfiguration:
-      keyStorePath: "var/security/keyStore.jks"
-      keyStorePassword: "keystore"
-      trustStorePath: "var/security/trustStore.jks"jd 7atlasdb-ete-tests/docker/conf/atlasdb-ete.cassandra.ymlu}(j7d (9c4e53b0d64b2fb53b069e5fdfa592d0e97c00c8jd Aatlasdb-ete-tests/docker/conf/atlasdb-ete.embedded-and-oracle.ymljd renamedjd K jd K jd K jd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-oracle.ymljd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-oracle.ymljd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-oracle.yml?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd 4atlasdb-ete-tests/docker/conf/atlasdb-ete.oracle.ymlu}(j7d (d90d50b7ad7f52c3baa55d662d2f5edaa066bda2jd Catlasdb-ete-tests/docker/conf/atlasdb-ete.embedded-and-postgres.ymljd renamedjd K jd Kjd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-postgres.ymljd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-postgres.ymljd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-postgres.yml?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X  @@ -21,17 +21,3 @@ atlasdb:
       dbName: atlas
       dbLogin: palantir
       dbPassword: palantir
-
-  leader:
-    quorumSize: 2
-    learnerLogDir: var/data/paxosLog/learner1
-    acceptorLogDir: var/data/paxosLog/acceptor1
-    localServer: http://${ME}:3828
-    leaders:
-      - http://ete1:3828
-      - http://ete2:3828
-      - http://ete3:3828
-    sslConfiguration:
-      keyStorePath: "var/security/keyStore.jks"
-      keyStorePassword: "keystore"
-      trustStorePath: "var/security/trustStore.jks"jd 3atlasdb-ete-tests/docker/conf/atlasdb-ete.dbkvs.ymlu}(j7d (ac10fa9faf73514073f11f37795985494d6695e7jd Oatlasdb-ete-tests/docker/conf/atlasdb-ete.embedded-and-three-node-cassandra.ymljd renamedjd K jd Kjd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-three-node-cassandra.ymljd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-three-node-cassandra.ymljd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.embedded-and-three-node-cassandra.yml?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X  @@ -29,15 +29,3 @@ atlasdb:
     replicationFactor: 3
 
   namespace: atlasete
-
-  leader:
-    quorumSize: 1
-    learnerLogDir: var/data/paxosLog/learner1
-    acceptorLogDir: var/data/paxosLog/acceptor1
-    localServer: http://${ME}:3828
-    leaders:
-      - http://ete1:3828
-    sslConfiguration:
-      keyStorePath: "var/security/keyStore.jks"
-      keyStorePassword: "keystore"
-      trustStorePath: "var/security/trustStore.jks"jd @atlasdb-ete-tests/docker/conf/atlasdb-ete.multiple-cassandra.ymlu}(j7d (9addcfbf688c010f290472ca32822e97cdb84b49jd Latlasdb-ete-tests/docker/conf/atlasdb-ete.postgres-timelock-and-postgres.ymljd renamedjd K jd K jd K jd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.postgres-timelock-and-postgres.ymljd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.postgres-timelock-and-postgres.ymljd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.postgres-timelock-and-postgres.yml?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd <atlasdb-ete-tests/docker/conf/atlasdb-ete.timelock.dbkvs.ymlu}(j7d (f46fae135144900f14845de3c8c7efc5b0b06e24jd Datlasdb-ete-tests/docker/conf/atlasdb-ete.timelock-and-cassandra.ymljd renamedjd K jd K jd K jd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.timelock-and-cassandra.ymljd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.timelock-and-cassandra.ymljd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker%2Fconf%2Fatlasdb-ete.timelock-and-cassandra.yml?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd @atlasdb-ete-tests/docker/conf/atlasdb-ete.timelock.cassandra.ymlu}(j7d (87848b037ef3ec51861ef46e47cc79daf74b1e96jd Latlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/DbKvsTestSuite.javajd removedjd K jd K&jd K&jd https://github.com/palantir/atlasdb/blob/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0ef/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FDbKvsTestSuite.javajd https://github.com/palantir/atlasdb/raw/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0ef/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FDbKvsTestSuite.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FDbKvsTestSuite.java?ref=2d3302e04df9f15bf77f64cd5155fa3aa1d3e0efjd X  @@ -1,38 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.ete;
-
-import com.google.common.collect.ImmutableList;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import org.junit.ClassRule;
-import org.junit.rules.RuleChain;
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-
-@RunWith(Suite.class)
-@Suite.SuiteClasses({
-    TodoEteTest.class,
-    TimestampManagementEteTest.class,
-    CoordinationEteTest.class,
-    LockWithoutTimelockEteTest.class
-})
-public class DbKvsTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1", "ete2", "ete3");
-
-    @ClassRule
-    public static final RuleChain COMPOSITION_SETUP =
-            EteSetup.setupComposition(DbKvsTestSuite.class, "docker-compose.dbkvs.yml", CLIENTS);
-}u}(j7d (f48aee4be35889d0da53f6362d8bab1e56d41345jd Tatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/ServiceExposureEteTest.javajd removedjd K jd K-jd K-jd https://github.com/palantir/atlasdb/blob/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0ef/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FServiceExposureEteTest.javajd https://github.com/palantir/atlasdb/raw/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0ef/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FServiceExposureEteTest.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FServiceExposureEteTest.java?ref=2d3302e04df9f15bf77f64cd5155fa3aa1d3e0efjd X  @@ -1,45 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.ete;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.palantir.timestamp.TimestampManagementService;
-import com.palantir.timestamp.TimestampService;
-import org.junit.Test;
-
-public class ServiceExposureEteTest {
-    @Test
-    public void shouldExposeATimestampServer() {
-        TimestampService timestampClient = EteSetup.createClientToAllNodes(TimestampService.class);
-
-        assertThat(timestampClient.getFreshTimestamp()).isNotNull();
-    }
-
-    @Test
-    public void shouldExposeATimestampManagementServer() {
-        TimestampService timestampClient = EteSetup.createClientToAllNodes(TimestampService.class);
-        TimestampManagementService timestampManagementClient =
-                EteSetup.createClientToAllNodes(TimestampManagementService.class);
-
-        assertThat(timestampClient.getFreshTimestamp()).isNotNull();
-
-        long newts = timestampClient.getFreshTimestamp() + 10000000;
-        timestampManagementClient.fastForwardTimestamp(newts);
-
-        assertThat(timestampClient.getFreshTimestamp()).isGreaterThan(newts);
-    }
-}u}(j7d (8d7c8760ab5a775f22e8585e249090ea5123f032jd aatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/standalone/TimeLockMigrationEteTest.javajd renamedjd Kjd Kjd K	jd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fstandalone%2FTimeLockMigrationEteTest.javajd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fstandalone%2FTimeLockMigrationEteTest.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fstandalone%2FTimeLockMigrationEteTest.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,12 +13,15 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.standalone;
 
 import static org.assertj.core.api.Assertions.catchThrowable;
 
 import com.google.common.util.concurrent.Uninterruptibles;
-import com.palantir.atlasdb.ete.DockerClientOrchestrationRule.DockerClientConfiguration;
+import com.palantir.atlasdb.ete.Gradle;
+import com.palantir.atlasdb.ete.utilities.DockerClientOrchestrationRule;
+import com.palantir.atlasdb.ete.utilities.DockerClientOrchestrationRule.DockerClientConfiguration;
+import com.palantir.atlasdb.ete.utilities.ImmutableDockerClientConfiguration;
 import com.palantir.atlasdb.http.AtlasDbHttpClients;
 import com.palantir.atlasdb.http.TestProxyUtils;
 import com.palantir.atlasdb.todo.ImmutableTodo;jd Vatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/TimeLockMigrationEteTest.javau}(j7d (d2eb3ff2ef5633bf5fca376606a0944a7b8a1406jd eatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/CassandraTimestampsEteTest.javajd renamedjd Kjd Kjd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FCassandraTimestampsEteTest.javajd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FCassandraTimestampsEteTest.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FCassandraTimestampsEteTest.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,12 +13,13 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.google.common.collect.Iterables;
-import com.palantir.atlasdb.ete.cassandra.util.CassandraCommands;
+import com.palantir.atlasdb.ete.utilities.CassandraCommands;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import com.palantir.atlasdb.table.description.ValueType;
 import com.palantir.atlasdb.todo.ImmutableTodo;
 import com.palantir.atlasdb.todo.Todo;jd Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraTimestampsEteTest.javau}(j7d (a0cbd2bd9e1b4a2bbabc01cc187fd6af6e89ec24jd ^atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/CoordinationEteTest.javajd renamedjd Kjd Kjd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FCoordinationEteTest.javajd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FCoordinationEteTest.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FCoordinationEteTest.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,12 +14,12 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.ete.coordination;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.palantir.atlasdb.coordination.CoordinationResource;
-import com.palantir.atlasdb.ete.EteSetup;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import org.junit.Before;
 import org.junit.Test;
 jd ^atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/coordination/CoordinationEteTest.javau}(j7d (1d228445e551125627e9f4e3c1d64a5848e68df5jd batlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/LockWithTimelockEteTest.javajd renamedjd Kjd Kjd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FLockWithTimelockEteTest.javajd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FLockWithTimelockEteTest.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FLockWithTimelockEteTest.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X}  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,10 +14,11 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import com.palantir.atlasdb.lock.LockResource;
 import org.junit.Test;
 jd Uatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/LockWithTimelockEteTest.javau}(j7d (2162a2a261b3e53e8515c7650f68a9fae42d1d15jd eatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/LockWithoutTimelockEteTest.javajd renamedjd Kjd Kjd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FLockWithoutTimelockEteTest.javajd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FLockWithoutTimelockEteTest.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FLockWithoutTimelockEteTest.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X}  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,10 +14,11 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import com.palantir.atlasdb.lock.LockResource;
 import org.junit.Test;
 jd Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/LockWithoutTimelockEteTest.javau}(j7d (8e362098b30218b39c6a29ebfc48ba0227d201eajd natlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/MultiCassandraDoubleNodeDownEteTest.javajd renamedjd Kjd Kjd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultiCassandraDoubleNodeDownEteTest.javajd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultiCassandraDoubleNodeDownEteTest.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultiCassandraDoubleNodeDownEteTest.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,12 +13,14 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
+import com.palantir.atlasdb.ete.utilities.MultiCassandraUtils;
 import com.palantir.atlasdb.todo.ImmutableTodo;
 import com.palantir.atlasdb.todo.Todo;
 import com.palantir.atlasdb.todo.TodoResource;jd aatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/MultiCassandraDoubleNodeDownEteTest.javau}(j7d (1e8e59ecea793ea0e738113a5fc549df9d547118jd natlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/MultiCassandraSingleNodeDownEteTest.javajd renamedjd Kjd Kjd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultiCassandraSingleNodeDownEteTest.javaF     jd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultiCassandraSingleNodeDownEteTest.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultiCassandraSingleNodeDownEteTest.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd Xr  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,11 +13,13 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
+import com.palantir.atlasdb.ete.utilities.MultiCassandraUtils;
 import com.palantir.atlasdb.todo.ImmutableTodo;
 import com.palantir.atlasdb.todo.Todo;
 import com.palantir.atlasdb.todo.TodoResource;jd aatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/MultiCassandraSingleNodeDownEteTest.javau}(j7d (ab481bbb799dd4dfc95851565247e2259ad2730fjd tatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/MultipleSchemaVersionsCoordinationEteTest.javajd renamedjd Kjd Kjd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultipleSchemaVersionsCoordinationEteTest.javajd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultipleSchemaVersionsCoordinationEteTest.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FMultipleSchemaVersionsCoordinationEteTest.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X>  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,13 +14,13 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.ete.coordination;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 
 import com.palantir.atlasdb.coordination.CoordinationResource;
-import com.palantir.atlasdb.ete.EteSetup;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import org.junit.Test;
 
 public class MultipleSchemaVersionsCoordinationEteTest {jd tatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/coordination/MultipleSchemaVersionsCoordinationEteTest.javau}(j7d (549c625af31fd66c34ed255df058100f5ee8ad3bjd _atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/TargetedSweepEteTest.javajd renamedjd Kjd Kjd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTargetedSweepEteTest.javajd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTargetedSweepEteTest.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTargetedSweepEteTest.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd XU  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,10 +13,12 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.ete.utilities.EteSetup;
+import com.palantir.atlasdb.ete.utilities.StreamTestUtils;
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.todo.ImmutableTodo;jd Ratlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/TargetedSweepEteTest.javau}(j7d (7423cffd6511933700cb3577543613bb080abce6jd eatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/TimestampManagementEteTest.javajd renamedjd Kjd Kjd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTimestampManagementEteTest.javajd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTimestampManagementEteTest.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTimestampManagementEteTest.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,10 +13,11 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import com.palantir.atlasdb.timestamp.EteTimestampResource;
 import org.junit.Test;
 jd Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/TimestampManagementEteTest.javau}(j7d (6c0f4537e9eb3ec7925e5af18c617ace3951e4ddjd Vatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suiteclasses/TodoEteTest.javajd renamedjd Kjd Kjd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTodoEteTest.javajd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTodoEteTest.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuiteclasses%2FTodoEteTest.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd XF  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,10 +13,12 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suiteclasses;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.ete.utilities.EteSetup;
+import com.palantir.atlasdb.ete.utilities.StreamTestUtils;
 import com.palantir.atlasdb.keyvalue.api.SweepResults;
 import com.palantir.atlasdb.todo.ImmutableTodo;
 import com.palantir.atlasdb.todo.Todo;jd Iatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/TodoEteTest.javau}(j7d (3c06663b222d617847d95afe0698c144caa0d045jd xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/MultiClientWithPostgresTimelockAndPostgresTestSuite.javajd renamedjd Kjd K
jd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithPostgresTimelockAndPostgresTestSuite.javajd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithPostgresTimelockAndPostgresTestSuite.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithPostgresTimelockAndPostgresTestSuite.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd Xx  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,11 +13,14 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suites;
 
-import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.CoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.LockWithTimelockEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TimestampManagementEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TodoEteTest;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;
@@ -30,13 +33,11 @@
     CoordinationEteTest.class,
     LockWithTimelockEteTest.class
 })
-public class PostgresDbPersistenceTimeLockTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");
-
+public class MultiClientWithPostgresTimelockAndPostgresTestSuite extends EteSetup {
     @ClassRule
     public static final RuleChain COMPOSITION_SETUP = EteSetup.setupCompositionWithTimelock(
-            PostgresDbPersistenceTimeLockTestSuite.class,
-            "docker-compose.timelock.database.bound.postgres.yml",
-            CLIENTS,
+            MultiClientWithPostgresTimelockAndPostgresTestSuite.class,
+            "docker-compose.multi-client-with-postgres-timelock-and-postgres.yml",
+            Clients.MULTI,
             ImmutableMap.of());
 }jd datlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/PostgresDbPersistenceTimeLockTestSuite.javau}(j7d (3033fd64b66ce6a9ac2df29ae27d9a75d87bf7b7jd qatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/MultiClientWithTimelockAndCassandraTestSuite.javajd renamedjd Kjd K	jd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithTimelockAndCassandraTestSuite.javajd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithTimelockAndCassandraTestSuite.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithTimelockAndCassandraTestSuite.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X^  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,10 +13,11 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suites;
 
-import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.containers.CassandraEnvironment;
+import com.palantir.atlasdb.ete.suiteclasses.TodoEteTest;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;
@@ -31,13 +32,11 @@
     //    MultipleSchemaVersionsCoordinationEteTest.class,
     //    LockWithTimelockEteTest.class
 })
-public class CassandraTimeLockTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");
-
+public class MultiClientWithTimelockAndCassandraTestSuite extends EteSetup {
     @ClassRule
     public static final RuleChain COMPOSITION_SETUP = EteSetup.setupCompositionWithTimelock(
-            CassandraTimeLockTestSuite.class,
-            "docker-compose.timelock.cassandra.yml",
-            CLIENTS,
+            MultiClientWithTimelockAndCassandraTestSuite.class,
+            "docker-compose.multi-client-with-timelock-and-cassandra.yml",
+            Clients.MULTI,
             CassandraEnvironment.get());
 }jd Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraTimeLockTestSuite.javau}(j7d (3144e5d0d359764709d0f81a49d14bf7c97f81e6jd ratlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/SingleClientWithEmbeddedAndCassandraTestSuite.javajd renamedjd Kjd K
jd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndCassandraTestSuite.javajd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndCassandraTestSuite.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndCassandraTestSuite.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd Xd  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,12 +13,14 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suites;
 
-import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.containers.CassandraEnvironment;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import com.palantir.atlasdb.ete.coordination.MultipleSchemaVersionsCoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.CoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.MultipleSchemaVersionsCoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TimestampManagementEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TodoEteTest;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;
@@ -27,15 +29,15 @@
 @RunWith(Suite.class)
 @Suite.SuiteClasses({
     TodoEteTest.class,
-    ServiceExposureEteTest.class,
     TimestampManagementEteTest.class,
     CoordinationEteTest.class,
     MultipleSchemaVersionsCoordinationEteTest.class
 })
-public class CassandraMultinodeTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1", "ete2", "ete3");
-
+public class SingleClientWithEmbeddedAndCassandraTestSuite extends EteSetup {
     @ClassRule
     public static final RuleChain COMPOSITION_SETUP = EteSetup.setupComposition(
-            CassandraMultinodeTestSuite.class, "docker-compose.cassandra.yml", CLIENTS, CassandraEnvironment.get());
+            SingleClientWithEmbeddedAndCassandraTestSuite.class,
+            "docker-compose.single-client-with-embedded-and-cassandra.yml",
+            Clients.SINGLE,
+            CassandraEnvironment.get());
 }jd Yatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraMultinodeTestSuite.javau}(j7d (9e14624754af58cf6c39d80ca73e37b15462d10cjd oatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/SingleClientWithEmbeddedAndOracleTestSuite.javajd addedjd K,jd K jd K,jd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndOracleTestSuite.javajd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndOracleTestSuite.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndOracleTestSuite.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.ete.suites;
+
+import com.palantir.atlasdb.ete.suiteclasses.CoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.LockWithoutTimelockEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TimestampManagementEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TodoEteTest;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
+import java.time.Duration;
+import org.junit.ClassRule;
+import org.junit.rules.RuleChain;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+@RunWith(Suite.class)
+@Suite.SuiteClasses({
+    TodoEteTest.class,
+    TimestampManagementEteTest.class,
+    CoordinationEteTest.class,
+    LockWithoutTimelockEteTest.class
+})
+public class SingleClientWithEmbeddedAndOracleTestSuite extends EteSetup {
+    @ClassRule
+    public static final RuleChain COMPOSITION_SETUP = EteSetup.setupComposition(
+            SingleClientWithEmbeddedAndOracleTestSuite.class,
+            "docker-compose.single-client-with-embedded-and-oracle.yml",
+            Clients.SINGLE,
+            Duration.ofMinutes(10));
+}u}(j7d (629701f7b6ac2e83594f215e880dc5791d78f360jd qatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/SingleClientWithEmbeddedAndPostgresTestSuite.javajd renamedjd Kjd K
jd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndPostgresTestSuite.javajd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndPostgresTestSuite.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndPostgresTestSuite.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,12 +13,13 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+package com.palantir.atlasdb.ete.suites;
 
-package com.palantir.atlasdb.ete;
-
-import com.google.common.collect.ImmutableList;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import java.time.Duration;
+import com.palantir.atlasdb.ete.suiteclasses.CoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.LockWithoutTimelockEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TimestampManagementEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TodoEteTest;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;
@@ -31,10 +32,10 @@
     CoordinationEteTest.class,
     LockWithoutTimelockEteTest.class
 })
-public class OracleDbKvsEteTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");
-
+public class SingleClientWithEmbeddedAndPostgresTestSuite extends EteSetup {
     @ClassRule
     public static final RuleChain COMPOSITION_SETUP = EteSetup.setupComposition(
-            OracleDbKvsEteTestSuite.class, "docker-compose.oracle.yml", CLIENTS, Duration.ofMinutes(10));
+            SingleClientWithEmbeddedAndPostgresTestSuite.class,
+            "docker-compose.single-client-with-embedded-and-postgres.yml",
+            Clients.SINGLE);
 }jd Uatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/OracleDbKvsEteTestSuite.javau}(j7d (3e5ff3ed258aaf6fd089362f79ffb7c07cacefa4jd {atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.javajd renamedjd Kjd Kjd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.javajd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X	  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,12 +13,17 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.suites;
 
-import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.containers.CassandraEnvironment;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import com.palantir.atlasdb.ete.coordination.MultipleSchemaVersionsCoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.CoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.LockWithoutTimelockEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.MultiCassandraDoubleNodeDownEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.MultiCassandraSingleNodeDownEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.MultipleSchemaVersionsCoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TimestampManagementEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TodoEteTest;
+import com.palantir.atlasdb.ete.utilities.EteSetup;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;
@@ -27,21 +32,18 @@
 @RunWith(Suite.class)
 @Suite.SuiteClasses({
     TodoEteTest.class,
-    ServiceExposureEteTest.class,
     MultiCassandraSingleNodeDownEteTest.class,
     MultiCassandraDoubleNodeDownEteTest.class,
     TimestampManagementEteTest.class,
     CoordinationEteTest.class,
     MultipleSchemaVersionsCoordinationEteTest.class,
     LockWithoutTimelockEteTest.class
 })
-public class MultiCassandraTestSuite extends EteSetup {
-    private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");
-
+public class SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite extends EteSetup {
     @ClassRule
     public static final RuleChain COMPOSITION_SETUP = EteSetup.setupComposition(
-            MultiCassandraTestSuite.class,
-            "docker-compose.multiple-cassandra.yml",
-            CLIENTS,
+            SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.class,
+            "docker-compose.single-client-with-embedded-and-three-node-cassandra.yml",
+            Clients.SINGLE,
             CassandraEnvironment.get());
 }jd Uatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/MultiCassandraTestSuite.javau}(j7d (69bf3c9a8268915b86a87ee9bf78263b70325019jd Yatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/utilities/CassandraCommands.javajd renamedjd Kjd Kjd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FCassandraCommands.javajd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FCassandraCommands.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FCassandraCommands.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X
  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,10 +13,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete.cassandra.util;
+package com.palantir.atlasdb.ete.utilities;
 
 import com.google.common.io.BaseEncoding;
-import com.palantir.atlasdb.ete.EteSetup;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl;
 import java.io.IOException;jd ^atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/cassandra/util/CassandraCommands.javau}(j7d (0c44336121ccd9b0cd7410a7e2966f0d7f9997d9jd eatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/utilities/DockerClientOrchestrationRule.javajd renamedjd Kjd Kjd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FDockerClientOrchestrationRule.javajd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FDockerClientOrchestrationRule.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FDockerClientOrchestrationRule.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,11 +13,12 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.utilities;
 
 import com.google.common.base.Throwables;
 import com.google.common.collect.ImmutableMap;
 import com.palantir.atlasdb.containers.CassandraEnvironment;
+import com.palantir.atlasdb.ete.standalone.TimeLockMigrationEteTest;
 import com.palantir.docker.compose.DockerComposeRule;
 import com.palantir.docker.compose.connection.DockerMachine;
 import com.palantir.docker.compose.connection.waiting.ClusterHealthCheck;jd [atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/DockerClientOrchestrationRule.javau}(j7d (e6fe91c9f447033dde9232d11a47161d80eb6dd4jd Patlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/utilities/EteSetup.javajd renamedjd K!jd K(jd KIjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FEteSetup.javajd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FEteSetup.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FEteSetup.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd Xw  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,17 +13,16 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.utilities;
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.AtlasDbEteServer;
-import com.palantir.atlasdb.config.ImmutableServerListConfig;
+import com.palantir.atlasdb.ete.Gradle;
 import com.palantir.atlasdb.http.AtlasDbHttpClients;
 import com.palantir.atlasdb.http.TestProxyUtils;
 import com.palantir.atlasdb.todo.TodoResource;
-import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.conjure.java.api.config.ssl.SslConfiguration;
 import com.palantir.conjure.java.config.ssl.SslSocketFactories;
 import com.palantir.conjure.java.config.ssl.TrustContext;
@@ -38,12 +37,10 @@
 import java.io.IOException;
 import java.nio.file.Paths;
 import java.time.Duration;
-import java.util.Collection;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.Callable;
-import java.util.stream.Collectors;
 import org.awaitility.Awaitility;
 import org.junit.rules.ExternalResource;
 import org.junit.rules.RuleChain;
@@ -65,48 +62,48 @@ public abstract class EteSetup {
     private static List<String> availableClients;
     private static Duration waitDuration;
 
-    public static RuleChain setupComposition(Class<?> eteClass, String composeFile, List<String> availableClientNames) {
-        return setupComposition(eteClass, composeFile, availableClientNames, Duration.ofMinutes(2));
+    public static RuleChain setupComposition(Class<?> eteClass, String composeFile, Clients clients) {
+        return setupComposition(eteClass, composeFile, clients, Duration.ofMinutes(2));
     }
 
     public static RuleChain setupComposition(
-            Class<?> eteClass, String composeFile, List<String> availableClientNames, Duration waitTime) {
-        return setupComposition(eteClass, composeFile, availableClientNames, waitTime, ImmutableMap.of());
+            Class<?> eteClass, String composeFile, Clients clients, Duration waitTime) {
+        return setupComposition(eteClass, composeFile, clients, waitTime, ImmutableMap.of());
     }
 
     public static RuleChain setupComposition(
-            Class<?> eteClass, String composeFile, List<String> availableClientNames, Map<String, String> environment) {
-        return setupComposition(eteClass, composeFile, availableClientNames, Duration.ofMinutes(2), environment);
+            Class<?> eteClass, String composeFile, Clients clients, Map<String, String> environment) {
+        return setupComposition(eteClass, composeFile, clients, Duration.ofMinutes(2), environment);
     }
 
     public static RuleChain setupComposition(
             Class<?> eteClass,
             String composeFile,
-            List<String> availableClientNames,
+            Clients clients,
             Duration waitTime,
             Map<String, String> environment) {
         waitDuration = waitTime;
-        return setup(eteClass, composeFile, availableClientNames, environment);
+        return setup(eteClass, composeFile, clients, environment);
     }
 
     public static RuleChain setupCompositionWithTimelock(
-            Class<?> eteClass, String composeFile, List<String> availableClientNames, Map<String, String> environment) {
+            Class<?> eteClass, String composeFile, Clients clients, Map<String, String> environment) {
         waitDuration = Duration.ofMinutes(2);
-        return setup(eteClass, composeFile, availableClientNames, environment, true);
+        return setup(eteClass, composeFile, clients, environment, true);
     }
 
     public static RuleChain setup(
-            Class<?> eteClass, String composeFile, List<String> availableClientNames, Map<String, String> environment) {
-        return setup(eteClass, composeFile, availableClientNames, environment, false);
+            Class<?> eteClass, String composeFile, Clients clients, Map<String, String> environment) {
+        return setup(eteClass, composeFile, clients, environment, false);
     }
 
     public static RuleChain setup(
             Class<?> eteClass,
             String composeFile,
-            List<String> availableClientNames,
+            Clients clients,
             Map<String, String> environment,
             boolean usingTimelock) {
-        availableClients = ImmutableList.copyOf(availableClientNames);
+        availableClients = clients.getClients();
 
         DockerMachine machine =
                 DockerMachine.localMachine().withEnvironment(environment).build();
@@ -145,18 +142,14 @@ public static <T> T createClientToSingleNodeWithExtendedTimeout(Class<T> clazz)
         return createClientWithExtendedTimeout(clazz, Iterables.getFirst(availableClients, null), SERVER_PORT);
     }
 
-    static <T> T createClientToAllNodes(Class<T> clazz) {
-        return createClientToMultipleNodes(clazz, availableClients, SERVER_PORT);
-    }
-
     public static Container getContainer(String containerName) {
         return docker.containers().container(containerName);
     }
 
     private static ExternalResource waitForServersToBeReady() {
         return new ExternalResource() {
             @Override
-            protected void before() throws Throwable {
+            protected void before() {
                 Awaitility.await()
                         .ignoreExceptions()
                         .atMost(waitDuration)
@@ -176,21 +169,6 @@ private static Callable<Boolean> serversAreReady() {
         };
     }
 
-    private static <T> T createClientToMultipleNodes(Class<T> clazz, List<String> nodeNames, short port) {
-        Collection<String> uris = nodeNames.stream()
-                .map(nodeName -> String.format("http://%s:%s", nodeName, port))
-                .collect(Collectors.toList());
-
-        return AtlasDbHttpClients.createProxyWithFailover(
-                MetricsManagers.createForTests(),
-                ImmutableServerListConfig.builder()
-                        .addAllServers(uris)
-                        .sslConfiguration(SSL_CONFIGURATION)
-                        .build(),
-                clazz,
-                TestProxyUtils.AUXILIARY_REMOTING_PARAMETERS_RETRYING);
-    }
-
     private static <T> T createClientFor(Class<T> clazz, String host, short port) {
         String uri = String.format("http://%s:%s", host, port);
         return AtlasDbHttpClients.createProxy(
@@ -202,4 +180,19 @@ private static <T> T createClientWithExtendedTimeout(Class<T> clazz, String host
         return AtlasDbHttpClients.createProxy(
                 Optional.of(TRUST_CONTEXT), uri, clazz, TestProxyUtils.AUXILIARY_REMOTING_PARAMETERS_EXTENDED_TIMEOUT);
     }
+
+    public enum Clients {
+        SINGLE(ImmutableList.of("ete1")),
+        MULTI(ImmutableList.of("ete1", "ete2"));
+
+        private final ImmutableList<String> clients;
+
+        Clients(ImmutableList<String> clients) {
+            this.clients = clients;
+        }
+
+        List<String> getClients() {
+            return clients;
+        }
+    }
 }jd Fatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/EteSetup.javau}(j7d (c352725f9e8fafdda672636663a32eddca7f693cjd [atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/utilities/MultiCassandraUtils.javajd renamedjd Kjd Kjd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FMultiCassandraUtils.javajd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FMultiCassandraUtils.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FMultiCassandraUtils.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd Xg  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.utilities;
 
 import com.google.common.base.Throwables;
 import com.palantir.docker.compose.connection.Container;jd Qatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/MultiCassandraUtils.javau}(j7d (e6e007b6ed0522e2abf26b463ff1f0f8bcc9cf68jd Watlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/utilities/StreamTestUtils.javajd renamedjd Kjd Kjd Kjd https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FStreamTestUtils.javajd https://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FStreamTestUtils.javajd https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Futilities%2FStreamTestUtils.java?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd Xa  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.palantir.atlasdb.ete;
+package com.palantir.atlasdb.ete.utilities;
 
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.todo.TodoResource;jd Matlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/StreamTestUtils.javau}(j7d (c67219f0513d633bc3ac576c3d65b9a65b11f00djd %scripts/circle-ci/run-circle-tests.shjd modifiedjd Kjd Kjd Kjd {https://github.com/palantir/atlasdb/blob/aec616b04b98c926eea6a1e5663e846d7505476b/scripts%2Fcircle-ci%2Frun-circle-tests.shjd zhttps://github.com/palantir/atlasdb/raw/aec616b04b98c926eea6a1e5663e846d7505476b/scripts%2Fcircle-ci%2Frun-circle-tests.shjd https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=aec616b04b98c926eea6a1e5663e846d7505476bjd XO  @@ -19,17 +19,17 @@ CONTAINER_2=(':atlasdb-ete-tests:check')
 
 CONTAINER_3=(':timelock-server:integTest')
 
-CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:dbkvsTest')
+CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:singleClientWithEmbeddedAndPostgresTest')
 
-CONTAINER_5=(':lock-impl:check' ':atlasdb-dbkvs-tests:postgresTest' ':atlasdb-ete-test-utils:check' ':atlasdb-ete-tests:longTest')
+CONTAINER_5=(':lock-impl:check' ':atlasdb-dbkvs-tests:postgresTest' ':atlasdb-ete-test-utils:check' ':atlasdb-ete-tests:singleClientWithEmbeddedAndThreeNodeCassandraTest')
 
 CONTAINER_6=(':timelock-server:suiteTest')
 
 CONTAINER_7=(':timelock-server:stressTest')
 
 CONTAINER_8=(':atlasdb-cassandra-integration-tests:testSubset2')
 
-CONTAINER_9=(':atlasdb-ete-tests:oracleTest')
+CONTAINER_9=(':atlasdb-ete-tests:singleClientWithEmbeddedAndOracleTest')
 
 CONTAINER_10=('atlasdb-dbkvs-tests:oracleTest')
 
@@ -92,7 +92,7 @@ export CASSANDRA_HEAP_NEWSIZE=64m
 case "$test_suite_index" in
     0) ./gradlew $BASE_GRADLE_ARGS check $CONTAINER_0_EXCLUDE_ARGS -x :atlasdb-jepsen-tests:check;;
     1) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_1[@]} ;;
-    2) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_2[@]} -x :atlasdb-ete-tests:longTest -x atlasdb-ete-tests:dbkvsTest -x :atlasdb-ete-tests:timeLockMigrationTest ;;
+    2) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_2[@]} -x :atlasdb-ete-tests:singleClientWithEmbeddedAndThreeNodeCassandraTest -x atlasdb-ete-tests:singleClientWithEmbeddedAndPostgresTest -x :atlasdb-ete-tests:timeLockMigrationTest ;;
     3) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_3[@]} ;;
     4) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_4[@]} ;;
     5) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_5[@]} ;;ueu(234482b84cdcc61fdeb8bc0f351ebedddea98f62}(sha(234482b84cdcc61fdeb8bc0f351ebedddea98f62node_idEC_kwDOAjP5fdoAKDIzNDQ4MmI4NGNkY2M2MWZkZWI4YmMwZjM1MWViZWRkZGVhOThmNjIcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-08-09T08:41:51Zu	committer}(jf 	Tom Papkejf tpapke@palantir.comjf 2023-08-10T08:41:14Zumessage"Refactor aggregation using streamstree}(jf (8fec13d993fed1f40154c3d4e514241bf9131c58url`https://api.github.com/repos/palantir/atlasdb/git/trees/8fec13d993fed1f40154c3d4e514241bf9131c58uj f bhttps://api.github.com/repos/palantir/atlasdb/git/commits/234482b84cdcc61fdeb8bc0f351ebedddea98f62
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTUoqoACgkQmF9s0kaF
Iw166Af/cBp3HX879Bl0b5D1vHFkTmZTT04SsCaSES1OYQouklsBowg7lB5QUM9b
bmtur6dVUhDV7fCZ7ECbRswm3oQf4c4O1VhOo9+b6l5qfu687VjD1vaMz7jEZJYi
DrkfD1zUHvubYctdmvctFicBmB7r1xHvDRoF2OVPw/S6sqrXZf1Q6wbqUIrUMWnp
Uc/C2t11M2DrtJ3EQIqZQWjID6fKCTPFGoaaX+BW/1FSloYHFEsH2GXqOeaAT0UK
RQHbkN186QEmQF2y3K4gHdaqs/nJWChxDYo/23jr53DOAg9hWaKbvonDi7Vcd1iJ
R+lamWcljdFz2GASURTh5mEIU67BLA==
=wbYJ
-----END PGP SIGNATURE-----payloadtree 8fec13d993fed1f40154c3d4e514241bf9131c58
parent 793ad61985e31b39d573651694ca7d48603c4ae7
author Tom Papke <tpapke@palantir.com> 1691570511 +0100
committer Tom Papke <tpapke@palantir.com> 1691656874 +0100

Refactor aggregation using streams
uuj f ^https://api.github.com/repos/palantir/atlasdb/commits/234482b84cdcc61fdeb8bc0f351ebedddea98f62html_urlShttps://github.com/palantir/atlasdb/commit/234482b84cdcc61fdeb8bc0f351ebedddea98f62comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/234482b84cdcc61fdeb8bc0f351ebedddea98f62/commentsjf }(login	ToemmscheidJboj
f MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j f &https://api.github.com/users/Toemmschej.f https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujf }(j3f 	Toemmschej5f Jboj
f MDQ6VXNlcjQzNjc1NDkwj7f 4https://avatars.githubusercontent.com/u/43675490?v=4j9f h5j f &https://api.github.com/users/Toemmschej.f https://github.com/Toemmschej<f 0https://api.github.com/users/Toemmsche/followersj>f =https://api.github.com/users/Toemmsche/following{/other_user}j@f 6https://api.github.com/users/Toemmsche/gists{/gist_id}jBf =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jDf 4https://api.github.com/users/Toemmsche/subscriptionsjFf +https://api.github.com/users/Toemmsche/orgsjHf ,https://api.github.com/users/Toemmsche/reposjJf 7https://api.github.com/users/Toemmsche/events{/privacy}jLf 6https://api.github.com/users/Toemmsche/received_eventsjNf UserjPf uparents]}(jf (793ad61985e31b39d573651694ca7d48603c4ae7j f ^https://api.github.com/repos/palantir/atlasdb/commits/793ad61985e31b39d573651694ca7d48603c4ae7j.f Shttps://github.com/palantir/atlasdb/commit/793ad61985e31b39d573651694ca7d48603c4ae7uastats}(totalK)	additionsK	deletionsKufiles]}(jf (cf08ecd55848007ca68ff92a6e4bbf56f1949954filename^atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/watch/ClientLogEvents.javastatusmodifiedjjf Kjkf KchangesK)blob_urlhttps://github.com/palantir/atlasdb/blob/234482b84cdcc61fdeb8bc0f351ebedddea98f62/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FClientLogEvents.javaraw_urlhttps://github.com/palantir/atlasdb/raw/234482b84cdcc61fdeb8bc0f351ebedddea98f62/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FClientLogEvents.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FClientLogEvents.java?ref=234482b84cdcc61fdeb8bc0f351ebedddea98f62patchXL  @@ -18,6 +18,7 @@
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Maps;
 import com.google.common.collect.Range;
 import com.google.common.collect.Sets;
 import com.palantir.atlasdb.keyvalue.api.watch.TimestampStateStore.CommitInfo;
@@ -38,6 +39,7 @@
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
@@ -49,7 +51,7 @@
 /**
  * Encapsulates a response from the event log, containing both a list of events relevant to those requested, as well
  * information around whether it is necessary to clear cache upstream.
- *
+ * <p>
  * It is important to note that the additional logic in this class does *not* change any of the state here, and instead
  * just performs additional verification (mainly around confirming that the events contained here span a sufficient
  * version range). Events are never filtered here - while those passed in should be minimal, it is the responsibility
@@ -121,32 +123,25 @@ default CommitUpdate toCommitUpdate(
          * - Otherwise, the metadata objects associated with L are listed in the order of the lock events they appear
          *   in.
          */
-        Map<LockDescriptor, ImmutableList.Builder<ChangeMetadata>> locksWithAggregatedMetadataBuilder = KeyedStream.of(
-                        Sets.difference(locksFromLockEvents, locksFromLockWatchCreatedEvents).stream())
-                .map(_unused -> new ImmutableList.Builder<ChangeMetadata>())
-                .collectToMap();
-        for (LockEvent lockEvent : lockEvents) {
-            for (LockDescriptor lock : lockEvent.lockDescriptors()) {
-                if (!locksWithAggregatedMetadataBuilder.containsKey(lock)) {
-                    continue;
-                }
-                Optional<ChangeMetadata> changeMetadata = lockEvent
+        Map<LockDescriptor, ImmutableList.Builder<ChangeMetadata>> locksWithAggregatedMetadataBuilder =
+                new HashMap<>(KeyedStream.of(Sets.difference(locksFromLockEvents, locksFromLockWatchCreatedEvents))
+                        .map(_unused -> ImmutableList.<ChangeMetadata>builder())
+                        .collectToMap());
+        lockEvents.forEach(lockEvent -> lockEvent.lockDescriptors().stream()
+                .filter(locksWithAggregatedMetadataBuilder::containsKey)
+                .forEach(lock -> lockEvent
                         .metadata()
                         .map(metadata ->
-                                metadata.lockDescriptorToChangeMetadata().get(lock));
-                if (lockEvent.metadata().isEmpty() || changeMetadata.isEmpty()) {
-                    locksWithAggregatedMetadataBuilder.remove(lock);
-                } else {
-                    locksWithAggregatedMetadataBuilder.get(lock).add(changeMetadata.get());
-                }
-            }
-        }
+                                metadata.lockDescriptorToChangeMetadata().get(lock))
+                        .ifPresentOrElse(
+                                changeMetadataValue -> locksWithAggregatedMetadataBuilder
+                                        .get(lock)
+                                        .add(changeMetadataValue),
+                                () -> locksWithAggregatedMetadataBuilder.remove(lock))));
 
         Set<LockDescriptor> locksTakenOut = Sets.union(locksFromLockEvents, locksFromLockWatchCreatedEvents);
-        Map<LockDescriptor, List<ChangeMetadata>> locksWithAggregatedMetadata = KeyedStream.ofEntries(
-                        locksWithAggregatedMetadataBuilder.entrySet().stream())
-                .<List<ChangeMetadata>>map(ImmutableList.Builder::build)
-                .collectToMap();
+        Map<LockDescriptor, List<ChangeMetadata>> locksWithAggregatedMetadata =
+                Maps.transformValues(locksWithAggregatedMetadataBuilder, ImmutableList.Builder::build);
         return CommitUpdate.invalidateSome(locksTakenOut, locksWithAggregatedMetadata);
     }
 uau(fab864f4c86356e3a42204c23dd1769433f4251b}(sha(fab864f4c86356e3a42204c23dd1769433f4251bnode_idEC_kwDOAjP5fdoAKGZhYjg2NGY0Yzg2MzU2ZTNhNDIyMDRjMjNkZDE3Njk0MzNmNDI1MWIcommit}(author}(name	Tom Papkeemail+43675490+Toemmsche@users.noreply.github.comdate2023-08-09T19:43:20Zu	committer}(jf GitHubjf noreply@github.comjf 2023-08-09T19:43:20Zumessaged[LWMeta] Add metadata to expectations metrics (#6669)

[LWMeta] Add metadata to expectations metricstree}(jf (68f439f43a7397ef3e89a23054945b23d8587195url`https://api.github.com/repos/palantir/atlasdb/git/trees/68f439f43a7397ef3e89a23054945b23d8587195ujf bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fab864f4c86356e3a42204c23dd1769433f4251b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk0+xYCRBK7hj4Ov3rIwAAqLMIACRZP1geet3RKjgzQT9Gw+EV
QQtk8B6S+I/n0BSlCcdfv6zp8pTNrJg7NGL2BEivBxQG8ginzbHjIuSIlsVjA6N8
vZeUGxGPEGz0zBjte6Rlx2/ZJYiX43jKXqIjwbgRYp8TrFDRjQpkcIFaSAeSN3Z2
7pGgPBL7nG0QQ37qJH6nvJmQBzOTQzZ+Or4tkCa7k/lJx0kULHNd4B+rIN0RhcDQ
sd/8FZ+3Ha1rh4Doej0tlCgynzhIpFOM5Z/C79j6PAWLXJbB5HjyiEvS+YW8MHt/
p2LOZSI5kaoa/6MJycnytwi2HWe56S0PL2401MWAzqE5AAHwa+CNI5JT1lul/Jo=
=L50I
-----END PGP SIGNATURE-----
payloadXK  tree 68f439f43a7397ef3e89a23054945b23d8587195
parent 3f8d3a80dfc464896300e54e07ddb4a91baaa095
author Tom Papke <43675490+Toemmsche@users.noreply.github.com> 1691610200 +0200
committer GitHub <noreply@github.com> 1691610200 +0000

[LWMeta] Add metadata to expectations metrics (#6669)

[LWMeta] Add metadata to expectations metrics
uujf ^https://api.github.com/repos/palantir/atlasdb/commits/fab864f4c86356e3a42204c23dd1769433f4251bhtml_urlShttps://github.com/palantir/atlasdb/commit/fab864f4c86356e3a42204c23dd1769433f4251bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fab864f4c86356e3a42204c23dd1769433f4251b/commentsjf }(login	ToemmscheidJbojf MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jf &https://api.github.com/users/Toemmschejf https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujf }(jf web-flowjf J/jf MDQ6VXNlcjE5ODY0NDQ3jf 4https://avatars.githubusercontent.com/u/19864447?v=4jf h5jf %https://api.github.com/users/web-flowjf https://github.com/web-flowjf /https://api.github.com/users/web-flow/followersjf <https://api.github.com/users/web-flow/following{/other_user}jf 5https://api.github.com/users/web-flow/gists{/gist_id}jf <https://api.github.com/users/web-flow/starred{/owner}{/repo}jf 3https://api.github.com/users/web-flow/subscriptionsjf *https://api.github.com/users/web-flow/orgsjf +https://api.github.com/users/web-flow/reposjf 6https://api.github.com/users/web-flow/events{/privacy}jf 5https://api.github.com/users/web-flow/received_eventsjf Userjf uparents]}(jf (3f8d3a80dfc464896300e54e07ddb4a91baaa095jf ^https://api.github.com/repos/palantir/atlasdb/commits/3f8d3a80dfc464896300e54e07ddb4a91baaa095jf Shttps://github.com/palantir/atlasdb/commit/3f8d3a80dfc464896300e54e07ddb4a91baaa095uastats}(totalMK	additionsM	deletionsK9ufiles](}(jf (a634b95891e9e2fb130ea437801156c849de4e83filenameaatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/ExpectationsData.javastatusaddedjf Kjf K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FExpectationsData.javaraw_urlhttps://github.com/palantir/atlasdb/raw/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FExpectationsData.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FExpectationsData.java?ref=fab864f4c86356e3a42204c23dd1769433f4251bpatchX  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api.expectations;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ExpectationsData {
+    long ageMillis();
+
+    TransactionReadInfo readInfo();
+
+    TransactionCommitLockInfo commitLockInfo();
+
+    TransactionWriteMetadataInfo writeMetadataInfo();
+}u}(jf (2a84ba8535743351325850d52c8960bbcc6e8932jf matlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/TransactionWriteMetadataInfo.javajf addedjf K(jf K jf K(jf https://github.com/palantir/atlasdb/blob/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionWriteMetadataInfo.javajf https://github.com/palantir/atlasdb/raw/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionWriteMetadataInfo.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionWriteMetadataInfo.java?ref=fab864f4c86356e3a42204c23dd1769433f4251bjf X  @@ -0,0 +1,40 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api.expectations;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface TransactionWriteMetadataInfo {
+
+    /**
+     * The number of {@link com.palantir.lock.watch.ChangeMetadata} objects stored internally in a transaction.
+     */
+    long changeMetadataBuffered();
+
+    /**
+     * The number of {@link com.palantir.lock.watch.ChangeMetadata} objects attached to cell-level {@link com.palantir.lock.LockDescriptor}s
+     * when requesting commit locks.
+     */
+    long cellChangeMetadataSent();
+
+    /**
+     * The number of {@link com.palantir.lock.watch.ChangeMetadata} objects attached to row-level {@link com.palantir.lock.LockDescriptor}s
+     * when requesting commit locks.
+     */
+    long rowChangeMetadataSent();
+}u}(jf (a24f377716872baf7ceec3095f27de813aae5654jf datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ExpectationsAwareTransaction.javajf modifiedjf Kjf K jf Kjf https://github.com/palantir/atlasdb/blob/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javajf https://github.com/palantir/atlasdb/raw/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.java?ref=fab864f4c86356e3a42204c23dd1769433f4251bjf XP  @@ -19,6 +19,7 @@
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionWriteMetadataInfo;
 
 /**
  * Implementors of this interface provide methods useful for tracking transactional expectations and whether
@@ -38,6 +39,8 @@ public interface ExpectationsAwareTransaction extends Transaction {
      */
     TransactionCommitLockInfo getCommitLockInfo();
 
+    TransactionWriteMetadataInfo getWriteMetadataInfo();
+
     /**
      * Update TEX data collection metrics for (post-mortem) transactions.
      * Expected usage is that this method is called once after the transaction has been committed or aborted.u}(jf (f5c123aa89a8ceafb060a36ac627f11aed726e5bjf natlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingExpectationsAwareTransaction.javajf modifiedjf Kjf K jf Kjf https://github.com/palantir/atlasdb/blob/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javajf https://github.com/palantir/atlasdb/raw/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.java?ref=fab864f4c86356e3a42204c23dd1769433f4251bjf X+  @@ -18,6 +18,7 @@
 
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionWriteMetadataInfo;
 
 public abstract class ForwardingExpectationsAwareTransaction extends ForwardingTransaction
         implements ExpectationsAwareTransaction {
@@ -40,6 +41,11 @@ public TransactionCommitLockInfo getCommitLockInfo() {
         return delegate().getCommitLockInfo();
     }
 
+    @Override
+    public TransactionWriteMetadataInfo getWriteMetadataInfo() {
+        return delegate().getWriteMetadataInfo();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         delegate().reportExpectationsCollectedData();u}(jf (103bfaf35b69300d979ffa5311d2040d7776a3d9jf ]atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/LocalWriteBuffer.javajf modifiedjf K
jf Kjf Kjf https://github.com/palantir/atlasdb/blob/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBuffer.javajf https://github.com/palantir/atlasdb/raw/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBuffer.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBuffer.java?ref=fab864f4c86356e3a42204c23dd1769433f4251bjf X  @@ -46,7 +46,7 @@ class LocalWriteBuffer {
             new ConcurrentHashMap<>();
     private final ConcurrentMap<TableReference, Map<Cell, ChangeMetadata>> metadataByTable = new ConcurrentHashMap<>();
     private final ConcurrentMap<TableReference, Object> locksByTable = new ConcurrentHashMap<>();
-    private final AtomicLong byteCount = new AtomicLong();
+    private final AtomicLong valuesByteCount = new AtomicLong();
 
     public void putLocalWritesAndMetadata(
             TableReference tableRef, Map<Cell, byte[]> values, Map<Cell, ChangeMetadata> metadata) {
@@ -68,7 +68,7 @@ public void putLocalWritesAndMetadata(
                 }
                 long toAdd = val.length + Cells.getApproxSizeOfCell(cell);
                 long toSubtract = oldVal != null ? oldVal.length + Cells.getApproxSizeOfCell(cell) : 0;
-                long newByteCount = byteCount.addAndGet(toAdd - toSubtract);
+                long newByteCount = valuesByteCount.addAndGet(toAdd - toSubtract);
                 if (newByteCount >= TransactionConstants.WARN_LEVEL_FOR_QUEUED_BYTES
                         && newByteCount - toAdd < TransactionConstants.WARN_LEVEL_FOR_QUEUED_BYTES) {
                     log.warn(
@@ -113,16 +113,20 @@ public Map<Cell, ChangeMetadata> getChangeMetadataForTable(TableReference tableR
         return Collections.unmodifiableMap(getChangeMetadataForTableInternal(tableRef));
     }
 
+    public long getValuesByteCount() {
+        return valuesByteCount.get();
+    }
+
+    public long changeMetadataCount() {
+        return metadataByTable.values().stream().mapToLong(Map::size).sum();
+    }
+
     private Map<Cell, ChangeMetadata> getChangeMetadataForTableInternal(TableReference tableRef) {
         // No need for concurrency control on the cell level since it is only written to with a lock and
         // read during commit, which is guaranteed to be single-threaded and exclusive with writing.
         return metadataByTable.computeIfAbsent(tableRef, unused -> new HashMap<>());
     }
 
-    public long getByteCount() {
-        return byteCount.get();
-    }
-
     private Object getLockForTable(TableReference tableRef) {
         return locksByTable.computeIfAbsent(tableRef, _unused -> new Object());
     }u\      }(jf (106956d7a11d06b7764c14b70b76b0a096ef12a6jf gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/LockAndChangeMetadataCount.javajf addedjf Kjf K jf Kjf https://github.com/palantir/atlasdb/blob/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLockAndChangeMetadataCount.javajf https://github.com/palantir/atlasdb/raw/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLockAndChangeMetadataCount.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLockAndChangeMetadataCount.java?ref=fab864f4c86356e3a42204c23dd1769433f4251bjf X  @@ -0,0 +1,28 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+interface LockAndChangeMetadataCount {
+    @Value.Parameter
+    long lockCount();
+
+    @Value.Parameter
+    long changeMetadataCount();
+}u}(jf (a1570f908092e89d660cbfbcb3e6bc26f6389f6bjf `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javajf modifiedjf K@jf Kjf K]jf https://github.com/palantir/atlasdb/blob/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajf https://github.com/palantir/atlasdb/raw/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=fab864f4c86356e3a42204c23dd1769433f4251bjf XN'  @@ -98,9 +98,13 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.ValueAndChangeMetadata;
+import com.palantir.atlasdb.transaction.api.expectations.ExpectationsData;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableExpectationsData;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionWriteMetadataInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionWriteMetadataInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueServiceImpl;
@@ -281,6 +285,8 @@ private enum State {
     private final ExpectationsMetrics expectationsDataCollectionMetrics;
     private volatile long cellCommitLocksRequested = 0L;
     private volatile long rowCommitLocksRequested = 0L;
+    private volatile long cellChangeMetadataSent = 0L;
+    private volatile long rowChangeMetadataSent = 0L;
 
     protected volatile boolean hasReads;
 
@@ -2107,7 +2113,7 @@ private void commitWrites(TransactionService transactionService) {
                 long microsSinceCreation = TimeUnit.MILLISECONDS.toMicros(System.currentTimeMillis() - timeCreated);
                 getTimer("commitTotalTimeSinceTxCreation").update(Duration.of(microsSinceCreation, ChronoUnit.MICROS));
                 getHistogram(AtlasDbMetricNames.SNAPSHOT_TRANSACTION_BYTES_WRITTEN)
-                        .update(localWriteBuffer.getByteCount());
+                        .update(localWriteBuffer.getValuesByteCount());
             } finally {
                 // Not timed because tryUnlock() is an asynchronous operation.
                 traced("postCommitUnlock", () -> timelockService.tryUnlock(ImmutableSet.of(commitLocksToken)));
@@ -2535,22 +2541,32 @@ protected LocksAndMetadata getLocksAndMetadataForWrites() {
                 ImmutableMap.builder();
         long cellLockCount = 0L;
         long rowLockCount = 0L;
+        long cellChangeMetadataCount = 0L;
+        long rowChangeMetadataCount = 0L;
         for (TableReference tableRef : localWriteBuffer.getLocalWrites().keySet()) {
             ConflictHandler conflictHandler = getConflictHandlerForTable(tableRef);
             if (conflictHandler.lockCellsForConflicts()) {
-                cellLockCount +=
+                LockAndChangeMetadataCount counts =
                         collectCellLocks(lockDescriptorSetBuilder, lockDescriptorToChangeMetadataBuilder, tableRef);
+                cellLockCount += counts.lockCount();
+                cellChangeMetadataCount += counts.changeMetadataCount();
             }
             if (conflictHandler.lockRowsForConflicts()) {
-                rowLockCount +=
+                LockAndChangeMetadataCount counts =
                         collectRowLocks(lockDescriptorSetBuilder, lockDescriptorToChangeMetadataBuilder, tableRef);
+                rowLockCount += counts.lockCount();
+                rowChangeMetadataCount += counts.changeMetadataCount();
             }
         }
         lockDescriptorSetBuilder.add(AtlasRowLockDescriptor.of(
                 TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
                 TransactionConstants.getValueForTimestamp(getStartTimestamp())));
+
         cellCommitLocksRequested = cellLockCount;
         rowCommitLocksRequested = rowLockCount + 1;
+        cellChangeMetadataSent = cellChangeMetadataCount;
+        rowChangeMetadataSent = rowChangeMetadataCount;
+
         Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata =
                 lockDescriptorToChangeMetadataBuilder.buildOrThrow();
         return LocksAndMetadata.of(
@@ -2562,14 +2578,12 @@ protected LocksAndMetadata getLocksAndMetadataForWrites() {
                         : Optional.of(LockRequestMetadata.of(lockDescriptorToChangeMetadata)));
     }
 
-    /**
-     * Returns the number of lock descriptors that were added.
-     */
-    private Long collectCellLocks(
+    private LockAndChangeMetadataCount collectCellLocks(
             ImmutableSet.Builder<LockDescriptor> lockDescriptorSetBuilder,
             ImmutableMap.Builder<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadataBuilder,
             TableReference tableRef) {
         long lockCount = 0;
+        long changeMetadataCount = 0;
         Map<Cell, ChangeMetadata> changeMetadataForWrites = localWriteBuffer.getChangeMetadataForTable(tableRef);
         for (Cell cell : localWriteBuffer.getLocalWritesForTable(tableRef).keySet()) {
             LockDescriptor lockDescriptor =
@@ -2578,19 +2592,18 @@ private Long collectCellLocks(
             lockCount++;
             if (changeMetadataForWrites.containsKey(cell)) {
                 lockDescriptorToChangeMetadataBuilder.put(lockDescriptor, changeMetadataForWrites.get(cell));
+                changeMetadataCount++;
             }
         }
-        return lockCount;
+        return ImmutableLockAndChangeMetadataCount.of(lockCount, changeMetadataCount);
     }
 
-    /**
-     * Returns the number of lock descriptors that were added.
-     */
-    private Long collectRowLocks(
+    private LockAndChangeMetadataCount collectRowLocks(
             ImmutableSet.Builder<LockDescriptor> lockDescriptorSetBuilder,
             ImmutableMap.Builder<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadataBuilder,
             TableReference tableRef) {
         long lockCount = 0;
+        long changeMetadataCount = 0;
         Map<Cell, ChangeMetadata> changeMetadataForWrites = localWriteBuffer.getChangeMetadataForTable(tableRef);
         Optional<byte[]> lastRow = Optional.empty();
         Optional<byte[]> lastRowWithMetadata = Optional.empty();
@@ -2616,9 +2629,10 @@ private Long collectRowLocks(
                 lockDescriptorToChangeMetadataBuilder.put(
                         currentRowDescriptor.orElseThrow(), changeMetadataForWrites.get(cell));
                 lastRowWithMetadata = Optional.of(cell.getRowName());
+                changeMetadataCount++;
             }
         }
-        return lockCount;
+        return ImmutableLockAndChangeMetadataCount.of(lockCount, changeMetadataCount);
     }
 
     private boolean isSameRow(byte[] rowA, byte[] rowB) {
@@ -2766,6 +2780,15 @@ public TransactionCommitLockInfo getCommitLockInfo() {
                 .build();
     }
 
+    @Override
+    public TransactionWriteMetadataInfo getWriteMetadataInfo() {
+        return ImmutableTransactionWriteMetadataInfo.builder()
+                .changeMetadataBuffered(localWriteBuffer.changeMetadataCount())
+                .cellChangeMetadataSent(cellChangeMetadataSent)
+                .rowChangeMetadataSent(rowChangeMetadataSent)
+                .build();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         if (isStillRunning()) {
@@ -2775,25 +2798,37 @@ public void reportExpectationsCollectedData() {
             return;
         }
 
-        reportExpectationsCollectedData(
-                getAgeMillis(), getReadInfo(), getCommitLockInfo(), expectationsDataCollectionMetrics);
+        ExpectationsData expectationsData = ImmutableExpectationsData.builder()
+                .ageMillis(getAgeMillis())
+                .readInfo(getReadInfo())
+                .commitLockInfo(getCommitLockInfo())
+                .writeMetadataInfo(getWriteMetadataInfo())
+                .build();
+        reportExpectationsCollectedData(expectationsData, expectationsDataCollectionMetrics);
     }
 
     @VisibleForTesting
-    static void reportExpectationsCollectedData(
-            long ageMillis,
-            TransactionReadInfo readInfo,
-            TransactionCommitLockInfo commitLockInfo,
-            ExpectationsMetrics metrics) {
-        metrics.ageMillis().update(ageMillis);
-        metrics.bytesRead().update(readInfo.bytesRead());
-        metrics.kvsReads().update(readInfo.kvsCalls());
-
-        readInfo.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
-                .update(kvsCallReadInfo.bytesRead()));
-
-        metrics.cellCommitLocksRequested().update(commitLockInfo.cellCommitLocksRequested());
-        metrics.rowCommitLocksRequested().update(commitLockInfo.rowCommitLocksRequested());
+    static void reportExpectationsCollectedData(ExpectationsData expectationsData, ExpectationsMetrics metrics) {
+        metrics.ageMillis().update(expectationsData.ageMillis());
+        metrics.bytesRead().update(expectationsData.readInfo().bytesRead());
+        metrics.kvsReads().update(expectationsData.readInfo().kvsCalls());
+
+        expectationsData
+                .readInfo()
+                .maximumBytesKvsCallInfo()
+                .ifPresent(kvsCallReadInfo ->
+                        metrics.mostKvsBytesReadInSingleCall().update(kvsCallReadInfo.bytesRead()));
+
+        metrics.cellCommitLocksRequested()
+                .update(expectationsData.commitLockInfo().cellCommitLocksRequested());
+        metrics.rowCommitLocksRequested()
+                .update(expectationsData.commitLockInfo().rowCommitLocksRequested());
+        metrics.changeMetadataBuffered()
+                .update(expectationsData.writeMetadataInfo().changeMetadataBuffered());
+        metrics.cellChangeMetadataSent()
+                .update(expectationsData.writeMetadataInfo().cellChangeMetadataSent());
+        metrics.rowChangeMetadataSent()
+                .update(expectationsData.writeMetadataInfo().rowChangeMetadataSent());
     }
 
     private long getStartTimestamp() {u}(jf (d52d9be12509b7c29e1cd41dbc4a88c85a9216b3jf 5atlasdb-impl-shared/src/main/metrics/expectations.ymljf modifiedjf K	jf K jf K	jf https://github.com/palantir/atlasdb/blob/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymljf https://github.com/palantir/atlasdb/raw/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymljf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=fab864f4c86356e3a42204c23dd1769433f4251bjf X  @@ -23,3 +23,12 @@ namespaces:
       rowCommitLocksRequested:
         docs: Number of row-level commit locks requested as part of the commit protocol
         type: histogram
+      changeMetadataBuffered:
+        docs: Number of change metadata objects stored locally in the transaction
+        type: histogram
+      cellChangeMetadataSent:
+        docs: Number of change metadata objects attached to cell-level lock descriptors when requesting commit locks
+        type: histogram
+      rowChangeMetadataSent:
+        docs: Number of change metadata objects attached to row-level lock descriptors when requesting commit locks
+        type: histogramu}(jf (c5df60abf475c616ac4febf1691fea4f90fc56b7jf matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javajf modifiedjf K(jf Kjf K:jf https://github.com/palantir/atlasdb/blob/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajf https://github.com/palantir/atlasdb/raw/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=fab864f4c86356e3a42204c23dd1769433f4251bjf X8  @@ -19,10 +19,12 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.codahale.metrics.Histogram;
+import com.palantir.atlasdb.transaction.api.expectations.ExpectationsData;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableExpectationsData;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
-import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionWriteMetadataInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.util.MetricsManagers;
 import org.junit.Before;
@@ -32,15 +34,27 @@
 
 @RunWith(MockitoJUnitRunner.class)
 public final class ExpectationsMetricsReportingTest {
+
     // immutable in type declaration for better 'withX' ergonomics
     private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
             ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
-
     private static final ImmutableTransactionCommitLockInfo BLANK_COMMIT_LOCK_INFO =
             ImmutableTransactionCommitLockInfo.builder()
                     .cellCommitLocksRequested(0L)
                     .rowCommitLocksRequested(0L)
                     .build();
+    private static final ImmutableTransactionWriteMetadataInfo BLANK_METADATA_INFO =
+            ImmutableTransactionWriteMetadataInfo.builder()
+                    .changeMetadataBuffered(0L)
+                    .cellChangeMetadataSent(0L)
+                    .rowChangeMetadataSent(0L)
+                    .build();
+    private static final ImmutableExpectationsData BLANK_EXPECTATIONS_DATA = ImmutableExpectationsData.builder()
+            .ageMillis(0L)
+            .readInfo(BLANK_READ_INFO)
+            .commitLockInfo(BLANK_COMMIT_LOCK_INFO)
+            .writeMetadataInfo(BLANK_METADATA_INFO)
+            .build();
 
     private ExpectationsMetrics metrics;
 
@@ -52,55 +66,63 @@ public void setUp() {
     @Test
     public void ageReported() {
         long age = 129L;
-        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, BLANK_COMMIT_LOCK_INFO, metrics);
+        reportMetrics(BLANK_EXPECTATIONS_DATA.withAgeMillis(age));
         assertHistogramHasSingleValue(metrics.ageMillis(), age);
     }
 
     @Test
     public void bytesReadReported() {
         long bytes = 1290L;
-        reportMetricsWithReadInfo(BLANK_READ_INFO.withBytesRead(bytes));
+        reportMetrics(BLANK_EXPECTATIONS_DATA.withReadInfo(BLANK_READ_INFO.withBytesRead(bytes)));
         assertHistogramHasSingleValue(metrics.bytesRead(), bytes);
     }
 
     @Test
     public void kvsCallsReported() {
         long calls = 12L;
-        reportMetricsWithReadInfo(BLANK_READ_INFO.withKvsCalls(calls));
+        reportMetrics(BLANK_EXPECTATIONS_DATA.withReadInfo(BLANK_READ_INFO.withKvsCalls(calls)));
         assertHistogramHasSingleValue(metrics.kvsReads(), calls);
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
-        reportMetricsWithReadInfo(BLANK_READ_INFO);
+        reportMetrics(BLANK_EXPECTATIONS_DATA);
         assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
                 .isEmpty();
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
         long bytes = 193L;
-        reportMetricsWithReadInfo(
-                BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        reportMetrics(BLANK_EXPECTATIONS_DATA.withReadInfo(
+                BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes))));
         assertHistogramHasSingleValue(metrics.mostKvsBytesReadInSingleCall(), bytes);
     }
 
     @Test
     public void commitLocksRequestsReported() {
-        SnapshotTransaction.reportExpectationsCollectedData(
-                0L,
-                BLANK_READ_INFO,
-                ImmutableTransactionCommitLockInfo.builder()
-                        .cellCommitLocksRequested(1)
-                        .rowCommitLocksRequested(2)
-                        .build(),
-                metrics);
+        reportMetrics(BLANK_EXPECTATIONS_DATA.withCommitLockInfo(ImmutableTransactionCommitLockInfo.builder()
+                .cellCommitLocksRequested(1)
+                .rowCommitLocksRequested(2)
+                .build()));
         assertHistogramHasSingleValue(metrics.cellCommitLocksRequested(), 1);
         assertHistogramHasSingleValue(metrics.rowCommitLocksRequested(), 2);
     }
 
-    private void reportMetricsWithReadInfo(TransactionReadInfo readInfo) {
-        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, BLANK_COMMIT_LOCK_INFO, metrics);
+    @Test
+    public void writeMetadataInfoReported() {
+        reportMetrics(BLANK_EXPECTATIONS_DATA.withWriteMetadataInfo(ImmutableTransactionWriteMetadataInfo.builder()
+                .changeMetadataBuffered(1)
+                .cellChangeMetadataSent(2)
+                .rowChangeMetadataSent(3)
+                .build()));
+        assertHistogramHasSingleValue(metrics.changeMetadataBuffered(), 1);
+        assertHistogramHasSingleValue(metrics.cellChangeMetadataSent(), 2);
+        assertHistogramHasSingleValue(metrics.rowChangeMetadataSent(), 3);
+    }
+
+    private void reportMetrics(ExpectationsData expectationsData) {
+        SnapshotTransaction.reportExpectationsCollectedData(expectationsData, metrics);
     }
 
     private void assertHistogramHasSingleValue(Histogram histogram, long expected) {u}(jf (d2554ce920ff002338221e64ca0b7bedb59df359jf aatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/LocalWriteBufferTest.javajf modifiedjf Kjf Kjf Kjf https://github.com/palantir/atlasdb/blob/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.javajf https://github.com/palantir/atlasdb/raw/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.java?ref=fab864f4c86356e3a42204c23dd1769433f4251bjf X
  @@ -226,33 +226,44 @@ public void writingValueAndMetadataIsAtomicWhenOverwritingWithSameValue()
     @Test
     public void valueByteCountIsUpdatedCorrectlyWhenOverWritingValue() {
         buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of());
-        assertThat(buffer.getByteCount()).isEqualTo(Cells.getApproxSizeOfCell(CELL_1) + VALUE_1.length);
+        assertThat(buffer.getValuesByteCount()).isEqualTo(Cells.getApproxSizeOfCell(CELL_1) + VALUE_1.length);
 
         byte[] otherValue = PtBytes.toBytes("some long string");
         buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, otherValue), ImmutableMap.of());
-        assertThat(buffer.getByteCount()).isEqualTo(Cells.getApproxSizeOfCell(CELL_1) + otherValue.length);
+        assertThat(buffer.getValuesByteCount()).isEqualTo(Cells.getApproxSizeOfCell(CELL_1) + otherValue.length);
     }
 
     @Test
     public void valueByteCountIsUpdatedCorrectlyWhenDeletingValue() {
         buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of());
         buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, new byte[0]), ImmutableMap.of());
 
-        assertThat(buffer.getByteCount()).isEqualTo(Cells.getApproxSizeOfCell(CELL_1));
+        assertThat(buffer.getValuesByteCount()).isEqualTo(Cells.getApproxSizeOfCell(CELL_1));
     }
 
     @Test
     public void valueByteCountIsMaintainedAcrossMultipleTables() {
         buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of());
         buffer.putLocalWritesAndMetadata(TABLE_2, ImmutableMap.of(CELL_2, VALUE_2), ImmutableMap.of());
 
-        assertThat(buffer.getByteCount())
+        assertThat(buffer.getValuesByteCount())
                 .isEqualTo(Cells.getApproxSizeOfCell(CELL_1)
                         + VALUE_1.length
                         + Cells.getApproxSizeOfCell(CELL_2)
                         + VALUE_2.length);
     }
 
+    @Test
+    public void changeMetadataCountIsCorrect() {
+        buffer.putLocalWritesAndMetadata(
+                TABLE,
+                ImmutableMap.of(CELL_1, VALUE_1, CELL_2, VALUE_2),
+                ImmutableMap.of(CELL_1, METADATA_1, CELL_2, METADATA_2));
+        buffer.putLocalWritesAndMetadata(TABLE_2, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of());
+
+        assertThat(buffer.changeMetadataCount()).isEqualTo(2);
+    }
+
     private void assertThatPutThrowsForAllMetadataDueToMissingWrite(
             Map<Cell, byte[]> values, Map<Cell, ChangeMetadata> metadata) {
         assertThatLoggableExceptionThrownBy(() -> buffer.putLocalWritesAndMetadata(TABLE, values, metadata))u}(jf (429137ea0801bc8c888b44f24b4c07cacd8cdbc5jf eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javajf modifiedjf Kjf K jf Kjf https://github.com/palantir/atlasdb/blob/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajf https://github.com/palantir/atlasdb/raw/fab864f4c86356e3a42204c23dd1769433f4251b/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=fab864f4c86356e3a42204c23dd1769433f4251bjf X9  @@ -101,6 +101,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.ValueAndChangeMetadata;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionWriteMetadataInfo;
 import com.palantir.atlasdb.transaction.impl.metrics.DefaultMetricsFilterEvaluationContext;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.ToplistDeltaFilteringTableLevelMetricsController;
@@ -2764,6 +2765,29 @@ public void commitFailsIfMultipleCellsInSameRowHaveMetadataAndUsingRowLocks() {
                         UnsafeArg.of("newMetadata", UPDATE_CHANGE_METADATA));
     }
 
+    @Test
+    public void reportsMetadataInfoCorrectly() {
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE);
+        overrideConflictHandlerForTable(TABLE2, ConflictHandler.SERIALIZABLE_LOCK_LEVEL_MIGRATION);
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+
+        txn.putWithMetadata(
+                TABLE, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA)));
+        txn.putWithMetadata(
+                TABLE2,
+                ImmutableMap.of(
+                        TEST_CELL,
+                        ValueAndChangeMetadata.of(TEST_VALUE, ChangeMetadata.unchanged()),
+                        TEST_CELL_2,
+                        ValueAndChangeMetadata.of(TEST_VALUE, ChangeMetadata.unchanged())));
+        txn.commit();
+
+        TransactionWriteMetadataInfo writeMetadataInfo = txn.getWriteMetadataInfo();
+        assertThat(writeMetadataInfo.changeMetadataBuffered()).isEqualTo(3);
+        assertThat(writeMetadataInfo.cellChangeMetadataSent()).isEqualTo(2);
+        assertThat(writeMetadataInfo.rowChangeMetadataSent()).isEqualTo(3);
+    }
+
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,u}(jf (987f0dd762ce39f024afacde8c1b043c791f3bfajf $changelog/@unreleased/pr-6669.v2.ymljf addedjf Kjf K jf Kjf |https://github.com/palantir/atlasdb/blob/fab864f4c86356e3a42204c23dd1769433f4251b/changelog%2F%40unreleased%2Fpr-6669.v2.ymljf {https://github.com/palantir/atlasdb/raw/fab864f4c86356e3a42204c23dd1769433f4251b/changelog%2F%40unreleased%2Fpr-6669.v2.ymljf https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6669.v2.yml?ref=fab864f4c86356e3a42204c23dd1769433f4251bjf @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add metadata to expectations metrics'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6669ueu(98091adab346d53919131a239b9759473eea731a}(sha(98091adab346d53919131a239b9759473eea731anode_idEC_kwDOAjP5fdoAKDk4MDkxYWRhYjM0NmQ1MzkxOTEzMWEyMzliOTc1OTQ3M2VlYTczMWEcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-01T14:02:51Zu	committer}(jVg Lucas MeirelesjXg meireles31@msn.comjZg 2023-06-01T14:02:51Zumessageset min threadstree}(jNg (bc56da588f2c4c2db67bb71421899394de355897url`https://api.github.com/repos/palantir/atlasdb/git/trees/bc56da588f2c4c2db67bb71421899394de355897ujfg bhttps://api.github.com/repos/palantir/atlasdb/git/commits/98091adab346d53919131a239b9759473eea731a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmR4pQsACgkQJd22kJ7J
GiwPmwf+NePb+KjFwvVt0MboJbnmEvzfz7jq9iZCEjck7t3QEyIaXOu4mkCuwGJA
7C8r0iYL89X7nK9xsQfQnUkJHios6JkrWA1Fc80n/+jP3S7kxTMWpwwB7vLfoVKp
GmCxfB1sJj0vOSSK4UeYtkb290j+R8vqylT0xMlHEJUEtURmoQILQXwlv5NaHRsx
dTRTOhOs1Aud60HdhqfY2eA0hmHB6d/jN+tSLNKp6uGZxeJ38W1IZnH1h13cqyFt
lKr3BGwZ6QHurVl59x8lgcY+m7A8YQELiG/Qhhw700sdSiqCD+J6pVwHU/cwzRQR
2qLkugnHM8tUdeKzL/oLABQT+nvSgQ==
=nB3S
-----END PGP SIGNATURE-----payloadtree bc56da588f2c4c2db67bb71421899394de355897
parent 2e1782aa7c75b5c446455cf34956f858cd4e10d2
author Lucas Meireles <meireles31@msn.com> 1685628171 +0100
committer Lucas Meireles <meireles31@msn.com> 1685628171 +0100

set min threads
uujfg ^https://api.github.com/repos/palantir/atlasdb/commits/98091adab346d53919131a239b9759473eea731ahtml_urlShttps://github.com/palantir/atlasdb/commit/98091adab346d53919131a239b9759473eea731acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/98091adab346d53919131a239b9759473eea731a/commentsjTg }(loginLucasIMEidJg jPg MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jfg %https://api.github.com/users/LucasIMEjtg https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj\g }(jyg LucasIMEj{g Jg jPg MDQ6VXNlcjY3ODczMTE=j}g 3https://avatars.githubusercontent.com/u/6787311?v=4jg h5jfg %https://api.github.com/users/LucasIMEjtg https://github.com/LucasIMEjg /https://api.github.com/users/LucasIME/followersjg <https://api.github.com/users/LucasIME/following{/other_user}jg 5https://api.github.com/users/LucasIME/gists{/gist_id}jg <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jg 3https://api.github.com/users/LucasIME/subscriptionsjg *https://api.github.com/users/LucasIME/orgsjg +https://api.github.com/users/LucasIME/reposjg 6https://api.github.com/users/LucasIME/events{/privacy}jg 5https://api.github.com/users/LucasIME/received_eventsjg Userjg uparents]}(jNg (2e1782aa7c75b5c446455cf34956f858cd4e10d2jfg ^https://api.github.com/repos/palantir/atlasdb/commits/2e1782aa7c75b5c446455cf34956f858cd4e10d2jtg Shttps://github.com/palantir/atlasdb/commit/2e1782aa7c75b5c446455cf34956f858cd4e10d2uastats}(totalK	additionsK	deletionsK ufiles]}(jNg (4de598cae4f408b82f0c44e42cf6c7fc7e196e6dfilenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedjg Kjg K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/98091adab346d53919131a239b9759473eea731a/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/98091adab346d53919131a239b9759473eea731a/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=98091adab346d53919131a239b9759473eea731apatchXw  @@ -253,10 +253,12 @@ private WorkflowAndInvariants<Workflow> createSingleBusyCellReadNoTouchWorkflowV
             LifecycleEnvironment lifecycle) {
         ExecutorService readExecutor = lifecycle
                 .executorService(SingleBusyCellReadsNoTouchWorkflowConfiguration.class.getSimpleName() + "-read")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
                 .maxThreads(workflowConfig.maxThreadCount() / 2)
                 .build();
         ExecutorService writeExecutor = lifecycle
                 .executorService(SingleBusyCellReadsNoTouchWorkflowConfiguration.class.getSimpleName() + "-write")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
                 .maxThreads(workflowConfig.maxThreadCount() / 2)
                 .build();
         InteractiveTransactionStore transactionStore = transactionStoreFactory.create(uau(b6de10dc29fa9abe3b3cd5e1a0ad85c620332377}(sha(b6de10dc29fa9abe3b3cd5e1a0ad85c620332377node_idEC_kwDOAjP5fdoAKGI2ZGUxMGRjMjlmYTlhYmUzYjNjZDVlMWEwYWQ4NWM2MjAzMzIzNzccommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-06-28T20:06:23Zu	committer}(jg David Schlosnaglejg davids@palantir.comjg 2023-06-28T20:06:23Zumessage+Optimize CassandraService#getAddressForHosttree}(jg (9a0ed0ecd2809f72d900c8fa1237c9697d9e1ef1url`https://api.github.com/repos/palantir/atlasdb/git/trees/9a0ed0ecd2809f72d900c8fa1237c9697d9e1ef1ujg bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b6de10dc29fa9abe3b3cd5e1a0ad85c620332377
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmSckr8ACgkQR9hsJ74Q
0l/8mAf9EI816OHeboU4/li0uqKLHp4o8C3qTWvP2K6YhcfdXSeCFwabLPthnr7D
DV56sBSP8bOTApih/N91jA0i6e9ArfC1UM08OnncHNarSgzPyd6mlzif4mC75sON
VDVcdwTe74lkWrQAyfoDznOpT98tXM0rUP7B6BZbDCL9TbINQSQ519RIDeTSJKVA
4kIok9qDKRGE5VUJYd/JKDGSVw3MzKU3QyZpUUl6sYMJYdjVzic7inSn2T7edUMg
7E/32DirK+OwRQiv0zpHJfzOP40lsMQtQbFBAecNlsT01pd93IRU/JGAir0z3Wyu
IhQ6wgH+JAPSm4SoXWMUdUdwPvQa8Q==
=zzoK
-----END PGP SIGNATURE-----payloadX  tree 9a0ed0ecd2809f72d900c8fa1237c9697d9e1ef1
parent 749e80982ecd831eea5946cf02fd3c0ade574578
author David Schlosnagle <davids@palantir.com> 1687982783 -0400
committer David Schlosnagle <davids@palantir.com> 1687982783 -0400

Optimize CassandraService#getAddressForHost
uujg ^https://api.github.com/repos/palantir/atlasdb/commits/b6de10dc29fa9abe3b3cd5e1a0ad85c620332377html_urlShttps://github.com/palantir/atlasdb/commit/b6de10dc29fa9abe3b3cd5e1a0ad85c620332377comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b6de10dc29fa9abe3b3cd5e1a0ad85c620332377/commentsjg }(loginschlosnaidMBjg MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jg %https://api.github.com/users/schlosnajg https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujg }(jg schlosnajg MBjg MDQ6VXNlcjU0NTk0jg 1https://avatars.githubusercontent.com/u/54594?v=4jg h5jg %https://api.github.com/users/schlosnajg https://github.com/schlosnajg /https://api.github.com/users/schlosna/followersjg <https://api.github.com/users/schlosna/following{/other_user}jg 5https://api.github.com/users/schlosna/gists{/gist_id}jg <https://api.github.com/users/schlosna/starred{/owner}{/repo}jh 3https://api.github.com/users/schlosna/subscriptionsjh *https://api.github.com/users/schlosna/orgsjh +https://api.github.com/users/schlosna/reposjh 6https://api.github.com/users/schlosna/events{/privacy}j	h 5https://api.github.com/users/schlosna/received_eventsjh Userj
h uparents]}(jg (749e80982ecd831eea5946cf02fd3c0ade574578jg ^https://api.github.com/repos/palantir/atlasdb/commits/749e80982ecd831eea5946cf02fd3c0ade574578jg Shttps://github.com/palantir/atlasdb/commit/749e80982ecd831eea5946cf02fd3c0ade574578uastats}(totalK	additionsK	deletionsKufiles]}(jg (4e16bd6856b710e2bea5df31215dec94adb90e6bfilenamebatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javastatusmodifiedj'h Kj(h KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b6de10dc29fa9abe3b3cd5e1a0ad85c620332377/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b6de10dc29fa9abe3b3cd5e1a0ad85c620332377/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=b6de10dc29fa9abe3b3cd5e1a0ad85c620332377patchXy  @@ -287,17 +287,15 @@ private CassandraServer getAddressForHostThrowUnchecked(String host) {
     CassandraServer getAddressForHost(String inputHost) throws UnknownHostException {
         Map<String, String> hostnamesByIp = hostnameByIpSupplier.get();
         String cassandraHostName = hostnamesByIp.getOrDefault(inputHost, inputHost);
-        return CassandraServer.of(cassandraHostName, getReachableProxies(cassandraHostName));
-    }
-
-    private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) throws UnknownHostException {
-        InetAddress[] resolvedHosts = InetAddress.getAllByName(inputHost);
+        InetAddress[] resolvedHosts = InetAddress.getAllByName(cassandraHostName);
         int knownPort = getKnownPort();
 
         // It is okay to have reachable proxies that do not have a hostname
-        return Stream.of(resolvedHosts)
-                .map(inetAddr -> new InetSocketAddress(inetAddr, knownPort))
-                .collect(ImmutableSet.toImmutableSet());
+        ImmutableSet.Builder<InetSocketAddress> proxies = ImmutableSet.builderWithExpectedSize(resolvedHosts.length);
+        for (InetAddress host : resolvedHosts) {
+            proxies.add(new InetSocketAddress(host, knownPort));
+        }
+        return CassandraServer.of(cassandraHostName, proxies.build());
     }
 
     private int getKnownPort() throws UnknownHostException {uau(9ea724add81e1c36721a32dc503364e7c7c9d00c}(sha(9ea724add81e1c36721a32dc503364e7c7c9d00cnode_idEC_kwDOAjP5fdoAKDllYTcyNGFkZDgxZTFjMzY3MjFhMzJkYzUwMzM2NGU3YzdjOWQwMGMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-17T17:26:18Zu	committer}(jDh Jeremy KongjFh jkong@palantir.comjHh 2023-05-17T17:26:18Zumessagewomptree}(j<h (e12363ce6acc4a2b53d6bfbb1ecd0d4e15ceca07url`https://api.github.com/repos/palantir/atlasdb/git/trees/e12363ce6acc4a2b53d6bfbb1ecd0d4e15ceca07ujTh bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9ea724add81e1c36721a32dc503364e7c7c9d00c
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRlDjoACgkQTLdFKain
zjztXwgAzhMmp/+Ld6YkciBLn3RRCbxO1CAgGyhb+aqTdV9jQ9FWmjxTEcxY8B0x
zifW4b1HcPtEwWTi3qBDYm4MTJVhth1CusOT2G+xRzooDPpe3Kdy4HyurcqI0Y9A
AzEtgPYssSl4BfxUmr8IuJoHPemE2PxDy2eJcWu/ZalasKFK0YcXHijeSQpxb7Lm
q+lVLsed/dZ815yk9DsQvmLJM97nitY2M7BiO9PUrMOloayuAZQFlyAfG9BSrqTf
0bgJijk57D17ZwtgB6IGqcgBKcnn0KvpZuwNfXenAXYbr10MUk+7zNZw1VRUsMES
dKXKVAIMFlhZPWDIM9wAxdID331mIg==
=dNjY
-----END PGP SIGNATURE-----payloadtree e12363ce6acc4a2b53d6bfbb1ecd0d4e15ceca07
parent 0e65643d51c7652227f5a02604dcda5eeed1abbf
author Jeremy Kong <jkong@palantir.com> 1684344378 +0100
committer Jeremy Kong <jkong@palantir.com> 1684344378 +0100

womp
uujTh ^https://api.github.com/repos/palantir/atlasdb/commits/9ea724add81e1c36721a32dc503364e7c7c9d00chtml_urlShttps://github.com/palantir/atlasdb/commit/9ea724add81e1c36721a32dc503364e7c7c9d00ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9ea724add81e1c36721a32dc503364e7c7c9d00c/commentsjBh }(login
jeremyk-91idJZ j>h MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jTh 'https://api.github.com/users/jeremyk-91jbh https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujJh }(jgh 
jeremyk-91jih JZ j>h MDQ6VXNlcjU5NTU1MTA=jkh 3https://avatars.githubusercontent.com/u/5955510?v=4jmh h5jTh 'https://api.github.com/users/jeremyk-91jbh https://github.com/jeremyk-91jph 1https://api.github.com/users/jeremyk-91/followersjrh >https://api.github.com/users/jeremyk-91/following{/other_user}jth 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jvh >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jxh 5https://api.github.com/users/jeremyk-91/subscriptionsjzh ,https://api.github.com/users/jeremyk-91/orgsj|h -https://api.github.com/users/jeremyk-91/reposj~h 8https://api.github.com/users/jeremyk-91/events{/privacy}jh 7https://api.github.com/users/jeremyk-91/received_eventsjh Userjh uparents]}(j<h (0e65643d51c7652227f5a02604dcda5eeed1abbfjTh ^https://api.github.com/repos/palantir/atlasdb/commits/0e65643d51c7652227f5a02604dcda5eeed1abbfjbh Shttps://github.com/palantir/atlasdb/commit/0e65643d51c7652227f5a02604dcda5eeed1abbfuastats}(totalK&	additionsK	deletionsKufiles]}(j<h (c5349645dc81bf0c8bc33bc720961e281110a64ffilenamexatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionsTest.javastatusmodifiedjh Kjh KchangesK&blob_urlhttps://github.com/palantir/atlasdb/blob/9ea724add81e1c36721a32dc503364e7c7c9d00c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9ea724add81e1c36721a32dc503364e7c7c9d00c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.java?ref=9ea724add81e1c36721a32dc503364e7c7c9d00cpatchX  @@ -39,10 +39,10 @@ public void returnsUnderlyingWitnessedTransactions() {
         FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
 
         assertThat(WitnessedTransactions.sortAndFilterTransactions(
-                readOnlyTransactionStore, ImmutableList.of(twoToEight)))
+                        readOnlyTransactionStore, ImmutableList.of(twoToEight)))
                 .containsExactly(twoToEight);
         assertThat(WitnessedTransactions.sortAndFilterTransactions(
-                readOnlyTransactionStore, ImmutableList.of(readOnlyAtFive)))
+                        readOnlyTransactionStore, ImmutableList.of(readOnlyAtFive)))
                 .containsExactly(readOnlyAtFive);
     }
 
@@ -53,7 +53,7 @@ public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
         FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
 
         assertThat(WitnessedTransactions.sortAndFilterTransactions(
-                readOnlyTransactionStore, ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
+                        readOnlyTransactionStore, ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
                 .containsExactly(fourToSix, threeToSeven, twoToEight);
     }
 
@@ -64,8 +64,8 @@ public void sortsReadOnlyTransactionsByStartTimestamp() {
         FullyWitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
 
         assertThat(WitnessedTransactions.sortAndFilterTransactions(
-                readOnlyTransactionStore,
-                ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
+                        readOnlyTransactionStore,
+                        ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
                 .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
     }
 
@@ -80,14 +80,14 @@ public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
         FullyWitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
 
         assertThat(WitnessedTransactions.sortAndFilterTransactions(
-                readOnlyTransactionStore,
-                ImmutableList.of(
-                        twoToEight,
-                        readOnlyAtNine,
-                        fourToSix,
-                        readOnlyAtFive,
-                        readOnlyAtThree,
-                        readOnlyAtSeven)))
+                        readOnlyTransactionStore,
+                        ImmutableList.of(
+                                twoToEight,
+                                readOnlyAtNine,
+                                fourToSix,
+                                readOnlyAtFive,
+                                readOnlyAtThree,
+                                readOnlyAtSeven)))
                 .containsExactly(
                         readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
     }
@@ -100,12 +100,12 @@ public void filterRemovesUncommittedTransactions() {
         FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
         FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
         assertThat(WitnessedTransactions.sortAndFilterTransactions(
-                readOnlyTransactionStore,
-                List.of(
-                        committedMaybeWitnessedTransaction,
-                        notCommittedTransaction,
-                        readOnlyAtFive,
-                        fourToSix)))
+                        readOnlyTransactionStore,
+                        List.of(
+                                committedMaybeWitnessedTransaction,
+                                notCommittedTransaction,
+                                readOnlyAtFive,
+                                fourToSix)))
                 .containsExactly(committedMaybeWitnessedTransaction.toFullyWitnessed(), readOnlyAtFive, fourToSix);
     }
 uau(ed5d0b6e9c289a0bba39d0b3c104f91446c9392d}(sha(ed5d0b6e9c289a0bba39d0b3c104f91446c9392dnode_idEC_kwDOAjP5fdoAKGVkNWQwYjZlOWMyODlhMGJiYTM5ZDBiM2MxMDRmOTE0NDZjOTM5MmQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-03T09:24:17Zu	committer}(jh 
Sam Kramerjh skramer@palantir.comjh 2023-05-03T09:57:56Zumessageclarify docs/make finaltree}(jh (a18595c2176797d9acecae75af1d9f54024d11dcurl`https://api.github.com/repos/palantir/atlasdb/git/trees/a18595c2176797d9acecae75af1d9f54024d11dcujh bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ed5d0b6e9c289a0bba39d0b3c104f91446c9392d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRSMCUACgkQmPPOpKR4
XS38Ewf+KyZj2dRsiA9esbGWShoc58aub1gZ8XHnI36Ef7QLmeeft/CSlaTwGN7T
x6UGPP4kdh9kU4zWEMetNjbZb2nl3Wd6iH1YMzD9G7kqf7EZgQvgl8mss7Mi6g+K
Q13yYTFE//ArboYR+dd9Lbsak/5XO47aQ+hbHZ9B0b5hxOyiIVjftBgShj8IA/wY
Ovbjn531hzZfYL4ukrKqz8x3P7cSFEij0sk2FYQ33bqCGDC4a0XUwht2YIZaVVep
SglbVDJrxzZ0QO8RR9Y4ipDxijBj3lU9xf4CBZDSZY4fgVrTfd4RfqcMWMVImv4q
uNFoVNJeuHYlunGMn+gj6TJuKD3KSg==
=e7bj
-----END PGP SIGNATURE-----payloadtree a18595c2176797d9acecae75af1d9f54024d11dc
parent 1cf202762aee2dda1314afbf59c9889e5362bd4f
author Sam Kramer <skramer@palantir.com> 1683105857 +0100
committer Sam Kramer <skramer@palantir.com> 1683107876 +0100

clarify docs/make final
uujh ^https://api.github.com/repos/palantir/atlasdb/commits/ed5d0b6e9c289a0bba39d0b3c104f91446c9392dhtml_urlShttps://github.com/palantir/atlasdb/commit/ed5d0b6e9c289a0bba39d0b3c104f91446c9392dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ed5d0b6e9c289a0bba39d0b3c104f91446c9392d/commentsjh }(login
Sam-KrameridJ^2_ jh MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jh 'https://api.github.com/users/Sam-Kramerjh https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujh }(jh 
Sam-Kramerjh J^2_ jh MDQ6VXNlcjYyMzg4MTQ=jh 3https://avatars.githubusercontent.com/u/6238814?v=4jh h5jh 'https://api.github.com/users/Sam-Kramerjh https://github.com/Sam-Kramerjh 1https://api.github.com/users/Sam-Kramer/followersjh >https://api.github.com/users/Sam-Kramer/following{/other_user}jh 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jh >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jh 5https://api.github.com/users/Sam-Kramer/subscriptionsjh ,https://api.github.com/users/Sam-Kramer/orgsjh -https://api.github.com/users/Sam-Kramer/reposjh 8https://api.github.com/users/Sam-Kramer/events{/privacy}jh 7https://api.github.com/users/Sam-Kramer/received_eventsjh Userjh uparents]}(jh (1cf202762aee2dda1314afbf59c9889e5362bd4fjh ^https://api.github.com/repos/palantir/atlasdb/commits/1cf202762aee2dda1314afbf59c9889e5362bd4fjh Shttps://github.com/palantir/atlasdb/commit/1cf202762aee2dda1314afbf59c9889e5362bd4fuastats}(totalK	additionsK	deletionsKufiles]}(jh (9841c55d6853b86d06556e79402ad760e586a9aafilenameNlock-api/src/main/java/com/palantir/lock/client/UnreliableTimeLockService.javastatusmodifiedji Kji KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ed5d0b6e9c289a0bba39d0b3c104f91446c9392d/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ed5d0b6e9c289a0bba39d0b3c104f91446c9392d/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.java?ref=ed5d0b6e9c289a0bba39d0b3c104f91446c9392dpatchX
  @@ -32,7 +32,11 @@
 import java.util.Set;
 import java.util.stream.Collectors;
 
-public class UnreliableTimeLockService implements TimelockService {
+/**
+ * A version of timelock service that has a chance to randomly lose locks during refresh or immediately after
+ * acquiring. This is useful for testing the behavior of clients when locks are lost.
+ */
+public final class UnreliableTimeLockService implements TimelockService {
 
     private final TimelockService delegate;
     private final BuggifyFactory buggify;uau(41a6ca288172f0c97ff261fabe9565f89fbe9dd8}(sha(41a6ca288172f0c97ff261fabe9565f89fbe9dd8node_idEC_kwDOAjP5fdoAKDQxYTZjYTI4ODE3MmYwYzk3ZmYyNjFmYWJlOTU2NWY4OWZiZTlkZDgcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-13T18:26:56Zu	committer}(j2i 	Tom Papkej4i tpapke@palantir.comj6i 2023-06-13T18:26:56ZumessageAdjust test member orderingtree}(j*i (5b1e8dce14a4e8cda1ab63e3d5310bd5438e521burl`https://api.github.com/repos/palantir/atlasdb/git/trees/5b1e8dce14a4e8cda1ab63e3d5310bd5438e521bujBi bhttps://api.github.com/repos/palantir/atlasdb/git/commits/41a6ca288172f0c97ff261fabe9565f89fbe9dd8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSItPEACgkQmF9s0kaF
Iw3ozwf/SRJuQKWuLHEMfjzez4uIit+iF4G4qbQ76ENpZl0rpYbaIJ8J29qiVm8m
KUM5gMJrKja0Prr4Y9ypLsoqlGFwedwWED7gBDNzWULaFgAXYHmV1UKhdm9WN236
4k8Ik6ubWewIaKtBersHM8PmTAk7zgro0+XZ224dRuXh7Gsgo1kPqRV0sdolJvpZ
IKDZvfsSK64fvb/y4VPSOHs0h8SfLCKL1Htzo53OfnN+T6QgH8KzexSkziGoD3HC
0DXJtGUQlsD6J+HB9A+QmkSLyQgF++VVUuF/EdjdnHoargrogBHvkrXEvQLUGZ0j
wo15PIGipk+lPQq0ddBtmL2HXH1sFQ==
=fd8u
-----END PGP SIGNATURE-----payloadtree 5b1e8dce14a4e8cda1ab63e3d5310bd5438e521b
parent 1abf11516477f1573580abdd1ca0488b0fb1a306
author Tom Papke <tpapke@palantir.com> 1686680816 +0100
committer Tom Papke <tpapke@palantir.com> 1686680816 +0100

Adjust test member ordering
uujBi ^https://api.github.com/repos/palantir/atlasdb/commits/41a6ca288172f0c97ff261fabe9565f89fbe9dd8html_urlShttps://github.com/palantir/atlasdb/commit/41a6ca288172f0c97ff261fabe9565f89fbe9dd8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/41a6ca288172f0c97ff261fabe9565f89fbe9dd8/commentsj0i }(login	ToemmscheidJboj,i MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jBi &https://api.github.com/users/ToemmschejPi https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj8i }(jUi 	ToemmschejWi Jboj,i MDQ6VXNlcjQzNjc1NDkwjYi 4https://avatars.githubusercontent.com/u/43675490?v=4j[i h5jBi &https://api.github.com/users/ToemmschejPi https://github.com/Toemmschej^i 0https://api.github.com/users/Toemmsche/followersj`i =https://api.github.com/users/Toemmsche/following{/other_user}jbi 6https://api.github.com/users/Toemmsche/gists{/gist_id}jdi =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jfi 4https://api.github.com/users/Toemmsche/subscriptionsjhi +https://api.github.com/users/Toemmsche/orgsjji ,https://api.github.com/users/Toemmsche/reposjli 7https://api.github.com/users/Toemmsche/events{/privacy}jni 6https://api.github.com/users/Toemmsche/received_eventsjpi Userjri uparents]}(j*i (1abf11516477f1573580abdd1ca0488b0fb1a306jBi ^https://api.github.com/repos/palantir/atlasdb/commits/1abf11516477f1573580abdd1ca0488b0fb1a306jPi Shttps://github.com/palantir/atlasdb/commit/1abf11516477f1573580abdd1ca0488b0fb1a306uastats}(totalK	additionsK	deletionsKufiles]}(j*i (b49051b9f1927b3164eebfdf9f38c9c4bf19ac62filenameQlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javastatusmodifiedji Kji KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/41a6ca288172f0c97ff261fabe9565f89fbe9dd8/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/41a6ca288172f0c97ff261fabe9565f89fbe9dd8/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=41a6ca288172f0c97ff261fabe9565f89fbe9dd8patchX  @@ -42,9 +42,6 @@
 import org.junit.Test;
 
 public class ThreadInfoLockServiceImplTest {
-    private final ExecutorService executor =
-            PTExecutors.newCachedThreadPool(ThreadInfoLockServiceImplTest.class.getName());
-
     private static final LockDescriptor TEST_LOCK_1 = StringLockDescriptor.of("lock-1");
     private static final LockDescriptor TEST_LOCK_2 = StringLockDescriptor.of("lock-2");
     private static final LockDescriptor TEST_LOCK_3 = StringLockDescriptor.of("lock-3");
@@ -58,6 +55,9 @@ public class ThreadInfoLockServiceImplTest {
             .withCreatingThreadName(TEST_THREAD_1)
             .build();
 
+    private final ExecutorService executor =
+            PTExecutors.newCachedThreadPool(ThreadInfoLockServiceImplTest.class.getName());
+
     // Disable background snapshotting, invoke explicitly instead
     private final LockServiceImpl lockService = LockServiceImpl.create(LockServerOptions.builder()
             .isStandaloneServer(false)uau(603e08cb1bcfb044c6835fa8febf63a6d055a2c8}(sha(603e08cb1bcfb044c6835fa8febf63a6d055a2c8node_idEC_kwDOAjP5fdoAKDYwM2UwOGNiMWJjZmIwNDRjNjgzNWZhOGZlYmY2M2E2ZDA1NWEyYzgcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-07-21T18:45:11Zu	committer}(ji 
svc-changelogji svc-changelog@palantir.comji 2023-07-21T18:45:11ZumessageAdd generated changelog entriestree}(ji (c0394ccea54b340d66cb7ce950b9a40890a6cf91url`https://api.github.com/repos/palantir/atlasdb/git/trees/c0394ccea54b340d66cb7ce950b9a40890a6cf91uji bhttps://api.github.com/repos/palantir/atlasdb/git/commits/603e08cb1bcfb044c6835fa8febf63a6d055a2c8
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmS60jcJEHYaJX37fAFQAACURQEA6Sxs5gQxdorlbcmk1qMskst1
smuLMSI/sBzgRs8EPqsBANaMIl6Nj1nrFjC5x94jLt8AxHPMHviBicugNps5vCUX
=LAC6
-----END PGP SIGNATURE-----payloadX  tree c0394ccea54b340d66cb7ce950b9a40890a6cf91
parent c0372f1a94d62c728b6695ea8090c27d4b81f61c
author svc-changelog <svc-changelog@palantir.com> 1689965111 +0000
committer svc-changelog <svc-changelog@palantir.com> 1689965111 +0000

Add generated changelog entriesuuji ^https://api.github.com/repos/palantir/atlasdb/commits/603e08cb1bcfb044c6835fa8febf63a6d055a2c8html_urlShttps://github.com/palantir/atlasdb/commit/603e08cb1bcfb044c6835fa8febf63a6d055a2c8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/603e08cb1bcfb044c6835fa8febf63a6d055a2c8/commentsji }(login
svc-changelogidJ#ji MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5ji *https://api.github.com/users/svc-changelogji  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuji }(ji 
svc-changelogji J#ji MDQ6VXNlcjg0MDc3NjAzji 4https://avatars.githubusercontent.com/u/84077603?v=4ji h5ji *https://api.github.com/users/svc-changelogji  https://github.com/svc-changelogji 4https://api.github.com/users/svc-changelog/followersji Ahttps://api.github.com/users/svc-changelog/following{/other_user}ji :https://api.github.com/users/svc-changelog/gists{/gist_id}ji Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}ji 8https://api.github.com/users/svc-changelog/subscriptionsji /https://api.github.com/users/svc-changelog/orgsji 0https://api.github.com/users/svc-changelog/reposji ;https://api.github.com/users/svc-changelog/events{/privacy}ji :https://api.github.com/users/svc-changelog/received_eventsji Userji uparents]}(ji (c0372f1a94d62c728b6695ea8090c27d4b81f61cji ^https://api.github.com/repos/palantir/atlasdb/commits/c0372f1a94d62c728b6695ea8090c27d4b81f61cji Shttps://github.com/palantir/atlasdb/commit/c0372f1a94d62c728b6695ea8090c27d4b81f61cuastats}(totalK	additionsK	deletionsK ufiles]}(ji (529fa046cce7dd2027f9b419812813bb3a2540a8filename$changelog/@unreleased/pr-6676.v2.ymlstatusaddedjj Kjj K changesKblob_url|https://github.com/palantir/atlasdb/blob/603e08cb1bcfb044c6835fa8febf63a6d055a2c8/changelog%2F%40unreleased%2Fpr-6676.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/603e08cb1bcfb044c6835fa8febf63a6d055a2c8/changelog%2F%40unreleased%2Fpr-6676.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6676.v2.yml?ref=603e08cb1bcfb044c6835fa8febf63a6d055a2c8patchXE  @@ -0,0 +1,8 @@
+type: improvement
+improvement:
+  description: |-
+    Optimize sweep write partitioning
+
+    Reduce allocations when processing large volumes of writes in sweep by avoiding intermediate collections and performing single passes on partitioning.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6676uau(f5a3ce63058cd44a5d2f7e148967fd4b2a843612}(sha(f5a3ce63058cd44a5d2f7e148967fd4b2a843612node_idEC_kwDOAjP5fdoAKGY1YTNjZTYzMDU4Y2Q0NGE1ZDJmN2UxNDg5NjdmZDRiMmE4NDM2MTIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-06T16:28:26Zu	committer}(j j 
Sam Kramerj"j skramer@palantir.comj$j 2023-03-06T16:57:06ZumessageeDo not remove any hosts from pool if it would be emptied.

remove accidental commit

better messagingtree}(jj (858cebaf48b01e5351b84e597614d2424be163d8url`https://api.github.com/repos/palantir/atlasdb/git/trees/858cebaf48b01e5351b84e597614d2424be163d8uj0j bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f5a3ce63058cd44a5d2f7e148967fd4b2a843612
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQGG2MACgkQmPPOpKR4
XS31xQf9EIQcqCLdUSDroBiWMf5FJwEkBWnqQv/oRldJn2Zywywb6EzDT5H2Vu+6
xuJoa80blAKL+uXRXYRE2Kk4ooJYnFxXxQjFEfhnm1tTcHzs66RXvkeBcULAHWPN
0CDju0JAUvP+Ak07r+QzarYfetdHkeJzc5/UFrcUAGach5WylFA/esQxbgDc9fzn
lIgdvmAOqqiw0mDP1zf7mxjnijVEOGco4f5oit8s3TxmHNYZzmqTEhe/3ccAV95r
KWEggOM01vyW2gQMJZNtQ/wUCYZeNRyFZMIyZ0ivBmCVO4z0E7BrBEoAdJ6di3Q7
NlOHTmT2LsOzXKIU0G0O399AmjnYcg==
=/+q5
-----END PGP SIGNATURE-----payloadX<  tree 858cebaf48b01e5351b84e597614d2424be163d8
parent 6f0f7c5849e31c772989b9565d870a5ba17cd721
author Sam Kramer <skramer@palantir.com> 1678120106 +0000
committer Sam Kramer <skramer@palantir.com> 1678121826 +0000

Do not remove any hosts from pool if it would be emptied.

remove accidental commit

better messaging
uuI     j0j ^https://api.github.com/repos/palantir/atlasdb/commits/f5a3ce63058cd44a5d2f7e148967fd4b2a843612html_urlShttps://github.com/palantir/atlasdb/commit/f5a3ce63058cd44a5d2f7e148967fd4b2a843612comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f5a3ce63058cd44a5d2f7e148967fd4b2a843612/commentsjj }(login
Sam-KrameridJ^2_ jj MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j0j 'https://api.github.com/users/Sam-Kramerj>j https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj&j }(jCj 
Sam-KramerjEj J^2_ jj MDQ6VXNlcjYyMzg4MTQ=jGj 3https://avatars.githubusercontent.com/u/6238814?v=4jIj h5j0j 'https://api.github.com/users/Sam-Kramerj>j https://github.com/Sam-KramerjLj 1https://api.github.com/users/Sam-Kramer/followersjNj >https://api.github.com/users/Sam-Kramer/following{/other_user}jPj 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jRj >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jTj 5https://api.github.com/users/Sam-Kramer/subscriptionsjVj ,https://api.github.com/users/Sam-Kramer/orgsjXj -https://api.github.com/users/Sam-Kramer/reposjZj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j\j 7https://api.github.com/users/Sam-Kramer/received_eventsj^j Userj`j uparents]}(jj (6f0f7c5849e31c772989b9565d870a5ba17cd721j0j ^https://api.github.com/repos/palantir/atlasdb/commits/6f0f7c5849e31c772989b9565d870a5ba17cd721j>j Shttps://github.com/palantir/atlasdb/commit/6f0f7c5849e31c772989b9565d870a5ba17cd721uastats}(totalKQ	additionsK9	deletionsKufiles](}(jj (21760362db03ecaa1fcb91a7678e4bb32410e381filenamedatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javastatusmodifiedjzj Kj{j KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/f5a3ce63058cd44a5d2f7e148967fd4b2a843612/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f5a3ce63058cd44a5d2f7e148967fd4b2a843612/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=f5a3ce63058cd44a5d2f7e148967fd4b2a843612patchX  @@ -346,6 +346,23 @@ void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> des
                 .removeKeys(currentServers::contains)
                 .toImmutableMap();
         SetView<CassandraServer> absentServers = Sets.difference(currentServers, desiredServers.keySet());
+        Map<CassandraServer, CassandraClientPoolingContainer> currentPoolWithoutAbsentServers = EntryStream.of(
+                        getCurrentPools())
+                .removeKeys(absentServers::contains)
+                .toMap();
+
+        Set<CassandraServer> validatedServersToAdd =
+                validateNewHostsTopologiesAndMaybeAddToPool(currentPoolWithoutAbsentServers, serversToAdd);
+
+        Preconditions.checkState(
+                !(currentPoolWithoutAbsentServers.isEmpty() && validatedServersToAdd.isEmpty()),
+                "No servers were successfully added to the pool. This means we could not come to a consensus on"
+                    + " cluster topology, or no hosts were provided. We will fallback to using our previous Cassandra"
+                    + " hosts, if any exist. This state should be transient (<5 minutes), and if it is not, indicates"
+                    + " that the user may have accidentally configured AltasDB to use two separate Cassandra clusters"
+                    + " (i.e., user-led split brain).",
+                SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())),
+                SafeArg.of("previousCassandraHosts", CassandraLogHelper.collectionOfHosts(currentServers)));
 
         absentServers.forEach(cassandraServer -> {
             CassandraClientPoolingContainer container = cassandra.removePool(cassandraServer);
@@ -354,21 +371,10 @@ void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> des
 
         Set<CassandraServer> serversToShutdown = absentHostTracker.incrementAbsenceAndRemove();
 
-        Set<CassandraServer> validatedServersToAdd =
-                validateNewHostsTopologiesAndMaybeAddToPool(getCurrentPools(), serversToAdd);
-
         if (!(validatedServersToAdd.isEmpty() && absentServers.isEmpty())) { // if we made any changes
             cassandra.refreshTokenRangesAndGetServers();
         }
 
-        Preconditions.checkState(
-                !getCurrentPools().isEmpty() || serversToAdd.isEmpty(),
-                "No servers were successfully added to the pool. This means we could not come to a consensus on"
-                    + " cluster topology, and the client cannot connect as there are no valid hosts. This state should"
-                    + " be transient (<5 minutes), and if it is not, indicates that the user may have accidentally"
-                    + " configured AltasDB to use two separate Cassandra clusters (i.e., user-led split brain).",
-                SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())));
-
         logRefreshedHosts(validatedServersToAdd, serversToShutdown, absentServers);
     }
 u}(jj (52def44c20ff6c4f159146101ddc62d8c7936141jj datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolTest.javajj modifiedjzj K(j{j K
jj K5jj https://github.com/palantir/atlasdb/blob/f5a3ce63058cd44a5d2f7e148967fd4b2a843612/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javajj https://github.com/palantir/atlasdb/raw/f5a3ce63058cd44a5d2f7e148967fd4b2a843612/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javajj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.java?ref=f5a3ce63058cd44a5d2f7e148967fd4b2a843612jj X  @@ -224,7 +224,7 @@ private void runTwoNoopsOnTwoHostsAndThrowFromSecondRunOnFirstHost(Exception exc
     }
 
     private CassandraServer getServerForIndex(int index) {
-        return CassandraServer.of(InetSocketAddress.createUnresolved(Integer.toString(index), index));
+        return CassandraServer.of(InetSocketAddress.createUnresolved(Integer.toString(index), 8000));
     }
 
     @Test
@@ -280,15 +280,8 @@ public void resilientToRollingRestarts() {
 
     @Test
     public void attemptsShouldBeCountedPerHost() {
-        setupThriftServers(ImmutableSet.of());
-        CassandraClientPoolImpl cassandraClientPool = CassandraClientPoolImpl.createImplForTest(
-                MetricsManagers.of(metricRegistry, taggedMetricRegistry),
-                config,
-                refreshableRuntimeConfig,
-                CassandraClientPoolImpl.StartupChecks.DO_NOT_RUN,
-                blacklist,
-                cassandraTopologyValidator,
-                absentHostTracker);
+        CassandraClientPoolImpl cassandraClientPool =
+                clientPoolWithServersInCurrentPool(ImmutableSet.of(CASS_SERVER_1, CASS_SERVER_2));
 
         host(CASS_SERVER_1)
                 .throwsException(new SocketTimeoutException())
@@ -353,6 +346,35 @@ public void hostIsAutomaticallyAddedOnRefresh() {
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2, CASS_SERVER_3);
     }
 
+    @Test
+    public void hostRemovedIfCurrentTopologyInvalidButHasPreviousHosts() {
+        setupThriftServers(ImmutableSet.of(CASS_SERVER_1.proxy()));
+        when(config.autoRefreshNodes()).thenReturn(true);
+        setCassandraServersTo(CASS_SERVER_1, CASS_SERVER_2, CASS_SERVER_3);
+
+        createClientPool();
+        assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2, CASS_SERVER_3);
+        setupHostsWithInconsistentTopology(CASS_SERVER_2, CASS_SERVER_3);
+
+        setCassandraServersTo(CASS_SERVER_2, CASS_SERVER_3);
+        refreshPool();
+        assertThat(poolServers).containsOnlyKeys(CASS_SERVER_2, CASS_SERVER_3);
+    }
+
+    @Test
+    public void noHostsRemovedIfNewTopologyInvalidAndWouldEmptyPool() {
+        setupThriftServers(ImmutableSet.of(CASS_SERVER_1.proxy()));
+        when(config.autoRefreshNodes()).thenReturn(true);
+        setCassandraServersTo(CASS_SERVER_1);
+
+        createClientPool();
+        setupHostsWithInconsistentTopology(CASS_SERVER_2, CASS_SERVER_3);
+        setCassandraServersTo(CASS_SERVER_2, CASS_SERVER_3);
+
+        refreshPool();
+        assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1);
+    }
+
     @Test
     public void onlyValidatedHostsAreAddedOnRefresh() {
         setupThriftServers(ImmutableSet.of(CASS_SERVER_1.proxy()));
@@ -389,7 +411,8 @@ public void throwsWhenNoServersInPoolAndServersAddedPresentButAreInvalid() {
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("No servers were successfully added to the pool.")
                 .hasExactlyArgs(
-                        SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(Set.of(CASS_SERVER_1))));
+                        SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(Set.of(CASS_SERVER_1))),
+                        SafeArg.of("previousCassandraHosts", CassandraLogHelper.collectionOfHosts(Set.of())));
     }
 
     @Test
@@ -555,12 +578,16 @@ private CassandraClientPoolImpl clientPoolWithInitialProxies(Set<InetSocketAddre
     }
 
     private CassandraClientPoolImpl clientPoolWithServersInCurrentPool(Set<CassandraServer> servers) {
-        return clientPoolWith(ImmutableSet.of(), servers, Optional.empty());
+        return clientPoolWith(
+                servers.stream().map(CassandraServer::proxy).collect(Collectors.toSet()), servers, Optional.empty());
     }
 
     private CassandraClientPoolImpl throwingClientPoolWithServersInCurrentPool(
             Set<CassandraServer> servers, Exception exception) {
-        return clientPoolWith(ImmutableSet.of(), servers, Optional.of(exception));
+        return clientPoolWith(
+                servers.stream().map(CassandraServer::proxy).collect(Collectors.toSet()),
+                servers,
+                Optional.of(exception));
     }
 
     @SuppressWarnings("OptionalUsedAsFieldOrParameterType") // Unpacking it seems less readableueu(b7bd71b1613b2f202643beb52e0cb60f95a164e2}(sha(b7bd71b1613b2f202643beb52e0cb60f95a164e2node_idEC_kwDOAjP5fdoAKGI3YmQ3MWIxNjEzYjJmMjAyNjQzYmViNTJlMGNiNjBmOTVhMTY0ZTIcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-02-27T15:14:59Zu	committer}(jj svc-autoreleasejj -pd-foundry-infrastructure-notify@palantir.comjj 2023-02-27T15:14:59ZumessageAutorelease 0.803.0

[skip ci]tree}(jj (a413bda3cebba2db6abc188dd55a7f1f55dad295url`https://api.github.com/repos/palantir/atlasdb/git/trees/a413bda3cebba2db6abc188dd55a7f1f55dad295ujj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b7bd71b1613b2f202643beb52e0cb60f95a164e2
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmP8yPoACgkQhbrR8ip7mDDCYAEA9xv8mhf4HxjULyvDJZFR2Um4
JBZ03F3nkPN+9HYUTZEA/3jfC0u15PUA5nT96ITYDiAmM2CRKKSffzsb2feo0kFD
=BA1/
-----END PGP SIGNATURE-----
payloadX0  tree a413bda3cebba2db6abc188dd55a7f1f55dad295
parent e4fa25dfb44b029b890e998b292a3db1cdbb3a22
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1677510899 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1677510899 +0000

Autorelease 0.803.0

[skip ci]uujj ^https://api.github.com/repos/palantir/atlasdb/commits/b7bd71b1613b2f202643beb52e0cb60f95a164e2html_urlShttps://github.com/palantir/atlasdb/commit/b7bd71b1613b2f202643beb52e0cb60f95a164e2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b7bd71b1613b2f202643beb52e0cb60f95a164e2/commentsjj }(loginsvc-autoreleaseidJ(jj MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5jj ,https://api.github.com/users/svc-autoreleasejj "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminujj }(jj svc-autoreleasejj J(jj MDQ6VXNlcjUxNzE4MzQ2jj 4https://avatars.githubusercontent.com/u/51718346?v=4jj h5jj ,https://api.github.com/users/svc-autoreleasejj "https://github.com/svc-autoreleasejj 6https://api.github.com/users/svc-autorelease/followersjj Chttps://api.github.com/users/svc-autorelease/following{/other_user}jj <https://api.github.com/users/svc-autorelease/gists{/gist_id}jj Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jj :https://api.github.com/users/svc-autorelease/subscriptionsjj 1https://api.github.com/users/svc-autorelease/orgsjj 2https://api.github.com/users/svc-autorelease/reposjj =https://api.github.com/users/svc-autorelease/events{/privacy}jj <https://api.github.com/users/svc-autorelease/received_eventsjj Userjj uparents]}(jj (e4fa25dfb44b029b890e998b292a3db1cdbb3a22jj ^https://api.github.com/repos/palantir/atlasdb/commits/e4fa25dfb44b029b890e998b292a3db1cdbb3a22jj Shttps://github.com/palantir/atlasdb/commit/e4fa25dfb44b029b890e998b292a3db1cdbb3a22uastats}(totalK 	additionsK 	deletionsK ufiles]}(jj (13dfd77db0f46236b04de3278feb263f5f8427cafilename changelog/0.803.0/pr-6450.v2.ymlstatusrenamedjj K jj K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/b7bd71b1613b2f202643beb52e0cb60f95a164e2/changelog%2F0.803.0%2Fpr-6450.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/b7bd71b1613b2f202643beb52e0cb60f95a164e2/changelog%2F0.803.0%2Fpr-6450.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.803.0%2Fpr-6450.v2.yml?ref=b7bd71b1613b2f202643beb52e0cb60f95a164e2previous_filename$changelog/@unreleased/pr-6450.v2.ymluau(6744b494950e96cab4f165622a5129a1586c9b06}(sha(6744b494950e96cab4f165622a5129a1586c9b06node_idEC_kwDOAjP5fdoAKDY3NDRiNDk0OTUwZTk2Y2FiNGYxNjU2MjJhNTEyOWExNTg2YzliMDYcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-07-10T11:52:59Zu	committer}(jk GitHubjk noreply@github.comjk 2023-07-10T11:52:59Zumessageonly allow range scan batch size increases to be a factor of 8 (#6645)

Ensure user-specified batch hints for range scans do not auto-increase beyond a factor of 8.tree}(jk (c621ad9f623bf754886b492370ab2e0fbca7a464url`https://api.github.com/repos/palantir/atlasdb/git/trees/c621ad9f623bf754886b492370ab2e0fbca7a464uj&k bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6744b494950e96cab4f165622a5129a1586c9b06
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkq/EbCRBK7hj4Ov3rIwAA0XIIAAmIQVeN/gUqTt/Ylb1oZcAe
rRJqn7zMEri65Nj0WMAGQoj97/qzFLoGTQPAuy/f11lZ9B3DFJ8eBwqipgxVrpqN
2cIQitlu67Zyeid6ahI085h41djxO6yPFRMh9wAt89m/KfiYAglSh+CYjqTrmcsx
52kXPrffEDP53K54dOwROvnM/g8KSBmtkwL+7Q1z3YRF+XKb6BVlAAzusFiqCPN9
v7/KD4TuLyL4nN6TC79ZlylJdGT19Zf6D9HM6nsFjEhphFuc+x+dd+Lp9LCl+ncJ
7OWeQv5OZVL/vLK3HhQeo7GwasdzTogcLewbfSLCt9NvwgaR1vIYV+TT4iLtxpo=
=F/Q6
-----END PGP SIGNATURE-----
payloadXw  tree c621ad9f623bf754886b492370ab2e0fbca7a464
parent ad18ca62cc74168498c066c7b456a14737c16eae
author Sam-Kramer <sam.c.kramer@gmail.com> 1688989979 +0100
committer GitHub <noreply@github.com> 1688989979 +0000

only allow range scan batch size increases to be a factor of 8 (#6645)

Ensure user-specified batch hints for range scans do not auto-increase beyond a factor of 8.
uuj&k ^https://api.github.com/repos/palantir/atlasdb/commits/6744b494950e96cab4f165622a5129a1586c9b06html_urlShttps://github.com/palantir/atlasdb/commit/6744b494950e96cab4f165622a5129a1586c9b06comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6744b494950e96cab4f165622a5129a1586c9b06/commentsjk }(login
Sam-KrameridJ^2_ jk MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j&k 'https://api.github.com/users/Sam-Kramerj4k https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujk }(j9k web-flowj;k J/jk MDQ6VXNlcjE5ODY0NDQ3j=k 4https://avatars.githubusercontent.com/u/19864447?v=4j?k h5j&k %https://api.github.com/users/web-flowj4k https://github.com/web-flowjBk /https://api.github.com/users/web-flow/followersjDk <https://api.github.com/users/web-flow/following{/other_user}jFk 5https://api.github.com/users/web-flow/gists{/gist_id}jHk <https://api.github.com/users/web-flow/starred{/owner}{/repo}jJk 3https://api.github.com/users/web-flow/subscriptionsjLk *https://api.github.com/users/web-flow/orgsjNk +https://api.github.com/users/web-flow/reposjPk 6https://api.github.com/users/web-flow/events{/privacy}jRk 5https://api.github.com/users/web-flow/received_eventsjTk UserjVk uparents]}(jk (ad18ca62cc74168498c066c7b456a14737c16eaej&k ^https://api.github.com/repos/palantir/atlasdb/commits/ad18ca62cc74168498c066c7b456a14737c16eaej4k Shttps://github.com/palantir/atlasdb/commit/ad18ca62cc74168498c066c7b456a14737c16eaeuastats}(totalK	additionsK~	deletionsKufiles](}(jk (15aa07ec06196f530db279a3f45361e4dbb9c46efilenamehatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIterator.javastatusmodifiedjpk Kjqk KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/6744b494950e96cab4f165622a5129a1586c9b06/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6744b494950e96cab4f165622a5129a1586c9b06/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.java?ref=6744b494950e96cab4f165622a5129a1586c9b06patchX	  @@ -15,8 +15,10 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterators;
+import com.google.common.math.IntMath;
 import com.palantir.atlasdb.AtlasDbPerformanceConstants;
 import com.palantir.common.base.ClosableIterator;
 import com.palantir.common.base.ClosableIterators;
@@ -32,9 +34,17 @@
 public class BatchSizeIncreasingIterator<T> implements Closeable {
     private static final SafeLogger log = SafeLoggerFactory.get(BatchSizeIncreasingIterator.class);
 
+    @VisibleForTesting
+    static final Integer MAX_FACTOR = 8;
+
+    @VisibleForTesting
+    static final Integer INCREASE_FACTOR = 4;
+
     private final int originalBatchSize;
     private final BatchProvider<T> batchProvider;
 
+    private final int maxBatchSize;
+
     private ClosableIterator<T> currentResults;
     private byte[] lastToken;
 
@@ -51,6 +61,8 @@ public BatchSizeIncreasingIterator(
         if (currentResults != null) {
             this.lastBatchSize = originalBatchSize;
         }
+        this.maxBatchSize = Math.min(
+                IntMath.saturatedMultiply(originalBatchSize, MAX_FACTOR), AtlasDbPerformanceConstants.MAX_BATCH_SIZE);
     }
 
     public void markNumResultsNotDeleted(int resultsInBatch) {
@@ -64,15 +76,15 @@ int getBestBatchSize() {
             return originalBatchSize;
         }
         final long batchSize;
-        long maxNewBatchSize = numReturned * 4;
+        long maxNewBatchSize = numReturned * INCREASE_FACTOR;
         if (numNotDeleted == 0) {
             // If everything we've seen has been deleted, we should be aggressive about getting more rows.
             batchSize = maxNewBatchSize;
         } else {
             batchSize = Math.min(
                     (long) Math.ceil(originalBatchSize * (numReturned / (double) numNotDeleted)), maxNewBatchSize);
         }
-        return (int) Math.min(batchSize, AtlasDbPerformanceConstants.MAX_BATCH_SIZE);
+        return (int) Math.min(batchSize, maxBatchSize);
     }
 
     private void updateResultsIfNeeded() {
@@ -116,6 +128,11 @@ public BatchResult<T> getBatch() {
         return ImmutableBatchResult.of(list, isLastBatch);
     }
 
+    @VisibleForTesting
+    int getMaxBatchSize() {
+        return maxBatchSize;
+    }
+
     @Value.Immutable
     interface BatchResult<T> {
         @Value.Parameteru}(jk (654c9ff367000102ae226eb294db877760cdd71ajvk latlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIteratorTest.javajxk addedjpk Kejqk K jzk Kej{k https://github.com/palantir/atlasdb/blob/6744b494950e96cab4f165622a5129a1586c9b06/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIteratorTest.javaj}k https://github.com/palantir/atlasdb/raw/6744b494950e96cab4f165622a5129a1586c9b06/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIteratorTest.javajk https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIteratorTest.java?ref=6744b494950e96cab4f165622a5129a1586c9b06jk X  @@ -0,0 +1,101 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.AtlasDbPerformanceConstants;
+import com.palantir.common.base.ClosableIterator;
+import com.palantir.common.base.ClosableIterators;
+import java.nio.ByteBuffer;
+import java.util.List;
+import java.util.NavigableSet;
+import java.util.TreeSet;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.Test;
+
+public class BatchSizeIncreasingIteratorTest {
+
+    @Test
+    public void handlesIntegerOverflow() {
+        assertThat(new BatchSizeIncreasingIterator<>(
+                                new TestBatchProvider(0),
+                                Integer.MAX_VALUE,
+                                ClosableIterators.emptyImmutableClosableIterator())
+                        .getMaxBatchSize())
+                .isEqualTo(AtlasDbPerformanceConstants.MAX_BATCH_SIZE);
+    }
+
+    @Test
+    public void getBestBatchSizeEqualToOriginalOnFirstIteration() {
+        assertThat(new BatchSizeIncreasingIterator<>(
+                                new TestBatchProvider(0), 1, ClosableIterators.emptyImmutableClosableIterator())
+                        .getBestBatchSize())
+                .isEqualTo(1);
+    }
+
+    @Test
+    public void getBestBatchSizeNeverLargerThanMax() {
+        int originalBatchSize = 1;
+        BatchSizeIncreasingIterator<Integer> iterator = new BatchSizeIncreasingIterator<>(
+                new TestBatchProvider(1000),
+                originalBatchSize,
+                ClosableIterators.wrap(List.of(0).iterator()));
+        // This will make the batch size increasing iterator think that it is only getting deleted values, which will
+        // result in an increase by BatchSizeIncreasingIterator.INCREASE_FACTOR.
+        iterator.markNumResultsNotDeleted(0);
+        IntStream.range(0, BatchSizeIncreasingIterator.MAX_FACTOR / BatchSizeIncreasingIterator.INCREASE_FACTOR + 1)
+                .forEach(_ignore -> iterator.getBatch());
+        assertThat(iterator.getBestBatchSize()).isEqualTo(originalBatchSize * BatchSizeIncreasingIterator.MAX_FACTOR);
+    }
+
+    private static class TestBatchProvider implements BatchProvider<Integer> {
+
+        private final NavigableSet<Integer> values;
+
+        public TestBatchProvider(Integer count) {
+            this(IntStream.range(0, count)
+                    .boxed()
+                    .collect(Collectors.<Integer, TreeSet<Integer>>toCollection(TreeSet::new)));
+        }
+
+        public TestBatchProvider(NavigableSet<Integer> values) {
+            this.values = values;
+        }
+
+        @Override
+        public ClosableIterator<Integer> getBatch(int batchSize, byte[] lastToken) {
+            int value = ByteBuffer.wrap(lastToken).getInt();
+            return ClosableIterators.wrapWithEmptyClose(
+                    values.tailSet(value, true).iterator());
+        }
+
+        @Override
+        public boolean hasNext(byte[] lastToken) {
+            int value = ByteBuffer.wrap(lastToken).getInt();
+            return values.ceiling(value) != null;
+        }
+
+        @Override
+        public byte[] getLastToken(List<Integer> batch) {
+            return ByteBuffer.allocate(Integer.BYTES)
+                    .putInt(batch.get(batch.size() - 1))
+                    .array();
+        }
+    }
+}u}(jk (e0b05befdf4bf72e70b07846fc766f84e4b79eb4jvk $changelog/@unreleased/pr-6645.v2.ymljxk addedjpk Kjqk K jzk Kj{k |https://github.com/palantir/atlasdb/blob/6744b494950e96cab4f165622a5129a1586c9b06/changelog%2F%40unreleased%2Fpr-6645.v2.ymlj}k {https://github.com/palantir/atlasdb/raw/6744b494950e96cab4f165622a5129a1586c9b06/changelog%2F%40unreleased%2Fpr-6645.v2.ymljk https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6645.v2.yml?ref=6744b494950e96cab4f165622a5129a1586c9b06jk @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Only allow range scan max batch size to be a factor of 8 of the batch
+    hint.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6645ueu(0699b955fa1f085e06dd1be0d43ba4476a752aad}(sha(0699b955fa1f085e06dd1be0d43ba4476a752aadnode_idEC_kwDOAjP5fdoAKDA2OTliOTU1ZmExZjA4NWUwNmRkMWJlMGQ0M2JhNDQ3NmE3NTJhYWQcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-03-13T12:08:21Zu	committer}(jk GitHubjk noreply@github.comjk 2023-03-13T12:08:21Zumessage>Remove slf4j javadocs link (#6467)

Remove slf4j javadocs linktree}(jk (7ae983b09acc58ee4503ce0cd8c324614e55d40aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/7ae983b09acc58ee4503ce0cd8c324614e55d40aujk bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0699b955fa1f085e06dd1be0d43ba4476a752aad
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkDxI1CRBK7hj4Ov3rIwAA08YIAArRPtqeahUE6fc68oZ6f43r
1EQmxySEC/fBs2siM5A7WMIjmzCxDOh2neeeKBr9QS5gh6oDc2h1x3zmbv9K35uO
dXwWfciFqhyimQxf6VAwjZTdNooQdFjiH4Swq+H+vwbIElS8GN8DGCpoKEPwm3AN
oXBhnGA7shkrP9KxKF/sa9LBpzw4mi00kIm/Vi5QkjreFN7eFVUs/tbA54NbThmW
8u+JX1eXw9WZYQmwK/MaAB6nILFqzXvTGZudVf+mxc2BFLricY+dt99ewPK9Osth
3S1qw8ZJT3Mt2ItxYEVOBwxa8acASpc8eRdKerKk0EzN5qgWRIshaXwBfqrpmUE=
=8jwM
-----END PGP SIGNATURE-----
payloadX  tree 7ae983b09acc58ee4503ce0cd8c324614e55d40a
parent f1bba94c8274f7f6320456eff60b71c6b9c3aa7a
author David Schlosnagle <davids@palantir.com> 1678709301 -0400
committer GitHub <noreply@github.com> 1678709301 +0000

Remove slf4j javadocs link (#6467)

Remove slf4j javadocs link
uujk ^https://api.github.com/repos/palantir/atlasdb/commits/0699b955fa1f085e06dd1be0d43ba4476a752aadhtml_urlShttps://github.com/palantir/atlasdb/commit/0699b955fa1f085e06dd1be0d43ba4476a752aadcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0699b955fa1f085e06dd1be0d43ba4476a752aad/commentsjk }(loginschlosnaidMBjk MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jk %https://api.github.com/users/schlosnajk https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujk }(jk web-flowjk J/jk MDQ6VXNlcjE5ODY0NDQ3jk 4https://avatars.githubusercontent.com/u/19864447?v=4jk h5jk %https://api.github.com/users/web-flowjk https://github.com/web-flowjk /https://api.github.com/users/web-flow/followersjk <https://api.github.com/users/web-flow/following{/other_user}jk 5https://api.github.com/users/web-flow/gists{/gist_id}jk <https://api.github.com/users/web-flow/starred{/owner}{/repo}jk 3https://api.github.com/users/web-flow/subscriptionsjk *https://api.github.com/users/web-flow/orgsjk +https://api.github.com/users/web-flow/reposjk 6https://api.github.com/users/web-flow/events{/privacy}jk 5https://api.github.com/users/web-flow/received_eventsjk Userjk uparents]}(jk (f1bba94c8274f7f6320456eff60b71c6b9c3aa7ajk ^https://api.github.com/repos/palantir/atlasdb/commits/f1bba94c8274f7f6320456eff60b71c6b9c3aa7ajk Shttps://github.com/palantir/atlasdb/commit/f1bba94c8274f7f6320456eff60b71c6b9c3aa7auastats}(totalK	additionsK	deletionsKufiles](}(jk (5b0f02dce8a3b1ce70a2ebe8001043a75759ffeafilename$changelog/@unreleased/pr-6467.v2.ymlstatusaddedjk Kjk K changesKblob_url|https://github.com/palantir/atlasdb/blob/0699b955fa1f085e06dd1be0d43ba4476a752aad/changelog%2F%40unreleased%2Fpr-6467.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/0699b955fa1f085e06dd1be0d43ba4476a752aad/changelog%2F%40unreleased%2Fpr-6467.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6467.v2.yml?ref=0699b955fa1f085e06dd1be0d43ba4476a752aadpatch@@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: Remove slf4j javadocs link
+  links:
+  - https://github.com/palantir/atlasdb/pull/6467u}(jk (0f4a7fce4981dffe64a3bd276f44aeaf9a86ee3ejk gradle/javadoc.gradlejk modifiedjk Kjk Kjl Kjl ihttps://github.com/palantir/atlasdb/blob/0699b955fa1f085e06dd1be0d43ba4476a752aad/gradle%2Fjavadoc.gradlejl hhttps://github.com/palantir/atlasdb/raw/0699b955fa1f085e06dd1be0d43ba4476a752aad/gradle%2Fjavadoc.gradlejl {https://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fjavadoc.gradle?ref=0699b955fa1f085e06dd1be0d43ba4476a752aadjl X  @@ -3,5 +3,4 @@
 //     apply from: javadoc.gradle, to: javadoc
 
 exclude '**/examples/**'
-options.links 'https://docs.oracle.com/javase/7/docs/api/'
-options.links 'http://www.slf4j.org/apidocs/'
+options.links 'https://docs.oracle.com/en/java/javase/11/docs/api/'ueu(a88162f69f1ac818e4847a43fed0916e503cfcfb}(sha(a88162f69f1ac818e4847a43fed0916e503cfcfbnode_idEC_kwDOAjP5fdoAKGE4ODE2MmY2OWYxYWM4MThlNDg0N2E0M2ZlZDA5MTZlNTAzY2ZjZmIcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-14T14:07:50Zu	committer}(jl 	Tom Papkejl tpapke@palantir.comj l 2023-06-14T14:07:50ZumessageTidy up benchmarkstree}(jl (747a5e8c7c9692610d54c08b7837fc79fca0aa60url`https://api.github.com/repos/palantir/atlasdb/git/trees/747a5e8c7c9692610d54c08b7837fc79fca0aa60uj,l bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a88162f69f1ac818e4847a43fed0916e503cfcfb
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSJybYACgkQmF9s0kaF
Iw2e8QgAlfLJO7i2ZAzIXAPXRQ8ucHUx1G+OlUZLRNNKifUXFDWRsN5pxcge+Syb
V2gGUWdimhPFKTE2zQAl1Y9h+qm4r0WLfkBhYyRLXxV0W2U6LKJ+kKD1Ppp6Chii
kqw1wXyEouH0mW9KI/MxsB4bnX5nC1f1QgFq/tbWAo292AicnXl5XkGO2gmFrDLQ
eOZm5O1R3OJcRoBraVaqpuJ9RXFcWB5YFeJjIfcg1CJ7eP+ap4o+HLyaDkxBmGWh
6Q97sjmUM3TMUk3lhjidSo+6qp7+bJaVloG3QWu4+iwMAp/Lj1V3wr3e53PQ2osa
Ve4/X3N0cWQoPMNENTj8drGeeKwI5w==
=s55X
-----END PGP SIGNATURE-----payloadtree 747a5e8c7c9692610d54c08b7837fc79fca0aa60
parent 4b222fd3be046f7a172edcb6d59b6f9f6dff6806
author Tom Papke <tpapke@palantir.com> 1686751670 +0100
committer Tom Papke <tpapke@palantir.com> 1686751670 +0100

Tidy up benchmarks
uuj,l ^https://api.github.com/repos/palantir/atlasdb/commits/a88162f69f1ac818e4847a43fed0916e503cfcfbhtml_urlShttps://github.com/palantir/atlasdb/commit/a88162f69f1ac818e4847a43fed0916e503cfcfbcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a88162f69f1ac818e4847a43fed0916e503cfcfb/commentsjl }(login	ToemmscheidJbojl MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j,l &https://api.github.com/users/Toemmschej:l https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj"l }(j?l 	ToemmschejAl Jbojl MDQ6VXNlcjQzNjc1NDkwjCl 4https://avatars.githubusercontent.com/u/43675490?v=4jEl h5j,l &https://api.github.com/users/Toemmschej:l https://github.com/ToemmschejHl 0https://api.github.com/users/Toemmsche/followersjJl =https://api.github.com/users/Toemmsche/following{/other_user}jLl 6https://api.github.com/users/Toemmsche/gists{/gist_id}jNl =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jPl 4https://api.github.com/users/Toemmsche/subscriptionsjRl +https://api.github.com/users/Toemmsche/orgsjTl ,https://api.github.com/users/Toemmsche/reposjVl 7https://api.github.com/users/Toemmsche/events{/privacy}jXl 6https://api.github.com/users/Toemmsche/received_eventsjZl Userj\l uparents]}(jl (4b222fd3be046f7a172edcb6d59b6f9f6dff6806j,l ^https://api.github.com/repos/palantir/atlasdb/commits/4b222fd3be046f7a172edcb6d59b6f9f6dff6806j:l Shttps://github.com/palantir/atlasdb/commit/4b222fd3be046f7a172edcb6d59b6f9f6dff6806uastats}(totalKn	additionsK1	deletionsK=ufiles](}(jl (4cc75a142a8c688ea71f743e7c7d0c036fde64c4filenameJlock-benchmark/src/jmh/java/com/palantir/atlasdb/LockServiceBenchmark.javastatusmodifiedjvl Kjwl KchangesK,blob_urlhttps://github.com/palantir/atlasdb/blob/a88162f69f1ac818e4847a43fed0916e503cfcfb/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FLockServiceBenchmark.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a88162f69f1ac818e4847a43fed0916e503cfcfb/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FLockServiceBenchmark.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FLockServiceBenchmark.java?ref=a88162f69f1ac818e4847a43fed0916e503cfcfbpatchX\
  @@ -44,33 +44,31 @@ public class LockServiceBenchmark {
     @BenchmarkMode(Mode.Throughput)
     @Benchmark
     @Threads(4)
-    public int lockSleepRefreshUnlockMultiThreaded(LockServiceBenchmarkState state, ThreadIndex threadIndex) {
-        final LockClient client = LockClient.of("Benchmark Client " + threadIndex.getThreadId());
-        final LockService lockService = state.getLockService();
-        final LockRequest lockRequest = state.generateLockRequest();
-        try {
-            // acquire some locks
-            LockResponse lockResponse = lockService.lockWithFullLockResponse(client, lockRequest);
+    public int lockSleepRefreshUnlockMultiThreaded(LockServiceBenchmarkState state, ThreadIndex threadIndex)
+            throws InterruptedException {
+        LockClient client = LockClient.of("Benchmark Client " + threadIndex.getThreadId());
+        LockService lockService = state.getLockService();
+        LockRequest lockRequest = state.generateLockRequest();
 
-            // pretend we are doing something with them ...
-            for (int i = 0; i < state.refreshCount + 1; i++) {
-                if (state.sleepMs > 0) {
-                    Thread.sleep(state.sleepMs);
-                }
-                // maybe refresh as well
-                if (i < state.refreshCount && lockResponse.getLockRefreshToken() != null) {
-                    lockService.refreshLockRefreshTokens(ImmutableList.of(lockResponse.getLockRefreshToken()));
-                }
-            }
+        // acquire some locks
+        LockResponse lockResponse = lockService.lockWithFullLockResponse(client, lockRequest);
 
-            // give them back
-            if (lockResponse.getLockRefreshToken() != null) {
-                lockService.unlock(lockResponse.getLockRefreshToken());
+        // pretend we are doing something with them ...
+        for (int i = 0; i < state.refreshCount + 1; i++) {
+            if (state.sleepMs > 0) {
+                Thread.sleep(state.sleepMs);
+            }
+            // maybe refresh as well
+            if (i < state.refreshCount && lockResponse.getLockRefreshToken() != null) {
+                lockService.refreshLockRefreshTokens(ImmutableList.of(lockResponse.getLockRefreshToken()));
             }
+        }
 
-            return lockResponse.getLocks().size();
-        } catch (InterruptedException e) {
-            throw new RuntimeException(e);
+        // give them back
+        if (lockResponse.getLockRefreshToken() != null) {
+            lockService.unlock(lockResponse.getLockRefreshToken());
         }
+
+        return lockResponse.getLocks().size();
     }
 }u}(jl (5d387327739222aa2d93031ca58c3dae5802db94j|l Ulock-benchmark/src/jmh/java/com/palantir/atlasdb/state/LockServiceBenchmarkState.javaj~l modifiedjvl Kjwl K&jl KBjl https://github.com/palantir/atlasdb/blob/a88162f69f1ac818e4847a43fed0916e503cfcfb/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.javajl https://github.com/palantir/atlasdb/raw/a88162f69f1ac818e4847a43fed0916e503cfcfb/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.javajl https://api.github.com/repos/palantir/atlasdb/contents/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.java?ref=a88162f69f1ac818e4847a43fed0916e503cfcfbjl X  @@ -69,28 +69,18 @@ public class LockServiceBenchmarkState {
     private final Random rand = new Random();
     private LockServiceImpl lockService;
     private Supplier<LockRequest> lockRequestSupplier;
-    private List<LockDescriptor> heldLocksAtBeginning;
     private List<LockDescriptor> availableLocks;
 
     private LockRequest nonBlockingAsManyAsPossibleRandomMode() {
-        SortedMap<LockDescriptor, LockMode> locks = new TreeMap<>();
-        for (int i = 0; i < locksPerRequest; i++) {
-            locks.put(
-                    availableLocks.get(rand.nextInt(getAvailableLocks().size())),
-                    rand.nextBoolean() ? LockMode.READ : LockMode.WRITE);
-        }
-        return LockRequest.builder(locks).lockAsManyAsPossible().doNotBlock().build();
+        return LockRequest.builder(getRandomLocksWithRandomMode(locksPerRequest))
+                .lockAsManyAsPossible()
+                .doNotBlock()
+                .build();
     }
 
     private LockRequest allRandom() {
-        SortedMap<LockDescriptor, LockMode> locks = new TreeMap<>();
-        int numLocks = Math.max(1, rand.nextInt(locksPerRequest));
-        for (int i = 0; i < numLocks; i++) {
-            locks.put(
-                    availableLocks.get(rand.nextInt(getAvailableLocks().size())),
-                    rand.nextBoolean() ? LockMode.READ : LockMode.WRITE);
-        }
-        LockRequest.Builder builder = LockRequest.builder(locks);
+        LockRequest.Builder builder =
+                LockRequest.builder(getRandomLocksWithRandomMode(Math.max(1, rand.nextInt(locksPerRequest))));
         if (rand.nextBoolean()) {
             builder.lockAsManyAsPossible();
         }
@@ -105,50 +95,50 @@ private LockRequest allRandom() {
     }
 
     @Setup
-    public void setup() {
-        this.heldLocksAtBeginning = IntStream.range(0, numHeldLocksAtBeginning)
-                .mapToObj(i -> StringLockDescriptor.of(Integer.toString(i)))
-                .collect(Collectors.toList());
-        this.availableLocks = IntStream.range(0, numAvailableLocks)
+    public void setup() throws InterruptedException {
+        availableLocks = IntStream.range(0, numAvailableLocks)
                 .mapToObj(i -> StringLockDescriptor.of(Integer.toString(i)))
                 .collect(Collectors.toUnmodifiableList());
-
-        this.lockRequestSupplier = getRequestSupplierFromName(this.requestSupplierMethodName);
-        this.lockService = LockServiceImpl.create(LockServerOptions.builder()
+        lockRequestSupplier = getRequestSupplierFromName(requestSupplierMethodName);
+        lockService = LockServiceImpl.create(LockServerOptions.builder()
                 .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
                         .recordThreadInfo(recordThreadInfo)
                         .threadInfoSnapshotIntervalMillis(threadInfoSnapshotIntervalMillis)
                         .build())
                 .isStandaloneServer(false)
                 .build());
+        // Simulate locks that are permanently locked to saturate heldLocksTokenMap
+        lockService.lockWithFullLockResponse(
+                LockClient.ANONYMOUS,
+                LockRequest.builder(getRandomLocksWithRandomMode(numHeldLocksAtBeginning))
+                        .lockAsManyAsPossible()
+                        .doNotBlock()
+                        .build());
+    }
 
+    private SortedMap<LockDescriptor, LockMode> getRandomLocksWithRandomMode(int numLocks) {
         SortedMap<LockDescriptor, LockMode> locks = new TreeMap<>();
-        for (LockDescriptor lock : heldLocksAtBeginning) {
-            locks.put(lock, LockMode.WRITE);
-        }
-        LockRequest lockRequest =
-                LockRequest.builder(locks).lockAsManyAsPossible().doNotBlock().build();
-        try {
-            lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest);
-        } catch (InterruptedException e) {
-            throw new RuntimeException(e);
-        }
+        IntStream.range(0, numLocks)
+                .forEach(i -> locks.put(
+                        availableLocks.get(rand.nextInt(availableLocks.size())),
+                        rand.nextBoolean() ? LockMode.READ : LockMode.WRITE));
+        return locks;
     }
 
     public LockServiceImpl getLockService() {
-        return this.lockService;
+        return lockService;
     }
 
     public List<LockDescriptor> getAvailableLocks() {
-        return this.availableLocks;
+        return availableLocks;
     }
 
     public LockRequest generateLockRequest() {
-        return this.lockRequestSupplier.get();
+        return lockRequestSupplier.get();
     }
 
     private Supplier<LockRequest> getRequestSupplierFromName(String name) {
-        switch (this.requestSupplierMethodName) {
+        switch (requestSupplierMethodName) {
             case "nonBlockingAsManyAsPossibleRandomMode":
                 return this::nonBlockingAsManyAsPossibleRandomMode;
             case "allRandom":ueu(60c5b7ec4c21743b74e342b376739396886adc62}(sha(60c5b7ec4c21743b74e342b376739396886adc62node_idEC_kwDOAjP5fdoAKDYwYzViN2VjNGMyMTc0M2I3NGUzNDJiMzc2NzM5Mzk2ODg2YWRjNjIcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-18T15:22:03Zu	committer}(jl 	Tom Papkejl tpapke@palantir.comjl 2023-08-08T17:01:21Zumessage3Add metadata metrics to expectations infrastructuretree}(jl (bce0d42c2ef7d1b3ec763c7d0eaf4a8c591c2491url`https://api.github.com/repos/palantir/atlasdb/git/trees/bce0d42c2ef7d1b3ec763c7d0eaf4a8c591c2491ujl bhttps://api.github.com/repos/palantir/atlasdb/git/commits/60c5b7ec4c21743b74e342b376739396886adc62
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTSdOEACgkQmF9s0kaF
Iw1GCQf+JkG9yhZJZk/YIVgjSynzsxcy4bWXutdwJ/csYKinXsDkJZerzM7aA84D
kupxdTBAlpDRMyBz1JGkng6uAdJlkXjNQYu2SRBdE88CGnutH7z7Cm9X5r5a03TO
ivmn9FZYcvfYLA/oUvMOAX9AtnHB4FqwmJKc1uFQsbo9A5omN4sT+Ia6puPXddvj
5fO/vAi6tM9XAnHIe4rwhAxp0zhw1/q46J7XilJh/YkSCAuq2aBlJx1jDQicwpPO
Pfph3oaf/xbYBXpjAvuDTs29GcCKF/vu9x0EbVDehOzpaAOvQEAQTYlkApSKqfNP
l8UzOeejs/O8Ztn7tWdL1UmgnkgVlQ==
=CsJy
-----END PGP SIGNATURE-----payloadX  tree bce0d42c2ef7d1b3ec763c7d0eaf4a8c591c2491
parent 0b1fd5b611a502e343acf2144c0e384c0ca64b3b
author Tom Papke <tpapke@palantir.com> 1689693723 +0100
committer Tom Papke <tpapke@palantir.com> 1691514081 +0100

Add metadata metrics to expectations infrastructure
uujl ^https://api.github.com/repos/palantir/atlasdb/commits/60c5b7ec4c21743b74e342b376739396886adc62html_urlShttps://github.com/palantir/atlasdb/commit/60c5b7ec4c21743b74e342b376739396886adc62comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/60c5b7ec4c21743b74e342b376739396886adc62/commentsjl }(login	ToemmscheidJbojl MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jl &https://api.github.com/users/Toemmschejl https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujl }(jl 	Toemmschejl Jbojl MDQ6VXNlcjQzNjc1NDkwjl 4https://avatars.githubusercontent.com/u/43675490?v=4jl h5jl &https://api.github.com/users/Toemmschejl https://github.com/Toemmschejl 0https://api.github.com/users/Toemmsche/followersjl =https://api.github.com/users/Toemmsche/following{/other_user}jl 6https://api.github.com/users/Toemmsche/gists{/gist_id}jl =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jl 4https://api.github.com/users/Toemmsche/subscriptionsjl +https://api.github.com/users/Toemmsche/orgsjl ,https://api.github.com/users/Toemmsche/reposjl 7https://api.github.com/users/Toemmsche/events{/privacy}jl 6https://api.github.com/users/Toemmsche/received_eventsjl Userjl uparents]}(jl (0b1fd5b611a502e343acf2144c0e384c0ca64b3bjl ^https://api.github.com/repos/palantir/atlasdb/commits/0b1fd5b611a502e343acf2144c0e384c0ca64b3bjl Shttps://github.com/palantir/atlasdb/commit/0b1fd5b611a502e343acf2144c0e384c0ca64b3buastats}(totalM%	additionsK	deletionsK9ufiles](}(jl (d3fc051a896d064f30ab1b18a612d66c87cdb853filenameaatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/ExpectationsData.javastatusaddedjl Kjl K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/60c5b7ec4c21743b74e342b376739396886adc62/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FExpectationsData.javaraw_urlhttps://github.com/palantir/atlasdb/raw/60c5b7ec4c21743b74e342b376739396886adc62/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FExpectationsData.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FExpectationsData.java?ref=60c5b7ec4c21743b74e342b376739396886adc62patchX  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api.expectations;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ExpectationsData {
+    long ageMillis();
+
+    TransactionReadInfo readInfo();
+
+    TransactionCommitLockInfo commitLockInfo();
+
+    TransactionMetadataInfo metadataInfo();
+}u}(jl (98c2af64f71c9a2eac4d4434494a0291d10390a6jl hatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/TransactionMetadataInfo.javajl addedjl K(jl K jl K(j m https://github.com/palantir/atlasdb/blob/60c5b7ec4c21743b74e342b376739396886adc62/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionMetadataInfo.javajm https://github.com/palantir/atlasdb/raw/60c5b7ec4c21743b74e342b376739396886adc62/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionMetadataInfo.javajm https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionMetadataInfo.java?ref=60c5b7ec4c21743b74e342b376739396886adc62jm X  @@ -0,0 +1,40 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api.expectations;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface TransactionMetadataInfo {
+
+    /**
+     * The number of {@link com.palantir.lock.watch.ChangeMetadata} objects stored internally in a transaction.
+     */
+    long changeMetadataBuffered();
+
+    /**
+     * The number of {@link com.palantir.lock.watch.ChangeMetadata} objects attached to cell-level {@link com.palantir.lock.LockDescriptor}s
+     * when requesting commit locks.
+     */
+    long cellChangeMetadataSent();
+
+    /**
+     * The number of {@link com.palantir.lock.watch.ChangeMetadata} objects attached to row-level {@link com.palantir.lock.LockDescriptor}s
+     * when requesting commit locks.
+     */
+    long rowChangeMetadataSent();
+}u}(jl (d0301423a78dd98b1e80e9ed526918e5ce977f1bjl datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ExpectationsAwareTransaction.javajl modifiedjl Kjl K jl Kj m https://github.com/palantir/atlasdb/blob/60c5b7ec4c21743b74e342b376739396886adc62/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javajm https://github.com/palantir/atlasdb/raw/60c5b7ec4c21743b74e342b376739396886adc62/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javajm https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.java?ref=60c5b7ec4c21743b74e342b376739396886adc62jm X  @@ -18,6 +18,7 @@
 
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionMetadataInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 /**
@@ -38,6 +39,8 @@ public interface ExpectationsAwareTransaction extends Transaction {
      */
     TransactionCommitLockInfo getCommitLockInfo();
 
+    TransactionMetadataInfo getMetadataInfo();
+
     /**
      * Update TEX data collection metrics for (post-mortem) transactions.
      * Expected usage is that this method is called once after the transaction has been committed or aborted.u}(jl (cc5c228d4046bf55007ff7d30ccd94a82de0a543jl natlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingExpectationsAwareTransaction.javajl modifiedjl Kjl K jl Kj m https://github.com/palantir/atlasdb/blob/60c5b7ec4c21743b74e342b376739396886adc62/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javajm https://github.com/palantir/atlasdb/raw/60c5b7ec4c21743b74e342b376739396886adc62/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javajm https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.java?ref=60c5b7ec4c21743b74e342b376739396886adc62jm X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionMetadataInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 public abstract class ForwardingExpectationsAwareTransaction extends ForwardingTransaction
@@ -40,6 +41,11 @@ public TransactionCommitLockInfo getCommitLockInfo() {
         return delegate().getCommitLockInfo();
     }
 
+    @Override
+    public TransactionMetadataInfo getMetadataInfo() {
+        return delegate().getMetadataInfo();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         delegate().reportExpectationsCollectedData();u}(jl (103bfaf35b69300d979ffa5311d2040d7776a3d9jl ]atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/LocalWriteBuffer.javajl modifiedjl K
jl Kjl Kj m https://github.com/palantir/atlasdb/blob/60c5b7ec4c21743b74e342b376739396886adc62/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBuffer.javajm https://github.com/palantir/atlasdb/raw/60c5b7ec4c21743b74e342b376739396886adc62/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBuffer.javajm https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBuffer.java?ref=60c5b7ec4c21743b74e342b376739396886adc62jm X  @@ -46,7 +46,7 @@ class LocalWriteBuffer {
             new ConcurrentHashMap<>();
     private final ConcurrentMap<TableReference, Map<Cell, ChangeMetadata>> metadataByTable = new ConcurrentHashMap<>();
     private final ConcurrentMap<TableReference, Object> locksByTable = new ConcurrentHashMap<>();
-    private final AtomicLong byteCount = new AtomicLong();
+    private final AtomicLong valuesByteCount = new AtomicLong();
 
     public void putLocalWritesAndMetadata(
             TableReference tableRef, Map<Cell, byte[]> values, Map<Cell, ChangeMetadata> metadata) {
@@ -68,7 +68,7 @@ public void putLocalWritesAndMetadata(
                 }
                 long toAdd = val.length + Cells.getApproxSizeOfCell(cell);
                 long toSubtract = oldVal != null ? oldVal.length + Cells.getApproxSizeOfCell(cell) : 0;
-                long newByteCount = byteCount.addAndGet(toAdd - toSubtract);
+                long newByteCount = valuesByteCount.addAndGet(toAdd - toSubtract);
                 if (newByteCount >= TransactionConstants.WARN_LEVEL_FOR_QUEUED_BYTES
                         && newByteCount - toAdd < TransactionConstants.WARN_LEVEL_FOR_QUEUED_BYTES) {
                     log.warn(
@@ -113,16 +113,20 @@ public Map<Cell, ChangeMetadata> getChangeMetadataForTable(TableReference tableR
         return Collections.unmodifiableMap(getChangeMetadataForTableInternal(tableRef));
     }
 
+    public long getValuesByteCount() {
+        return valuesByteCount.get();
+    }
+
+    public long changeMetadataCount() {
+        return metadataByTable.values().stream().mapToLong(Map::size).sum();
+    }
+
     private Map<Cell, ChangeMetadata> getChangeMetadataForTableInternal(TableReference tableRef) {
         // No need for concurrency control on the cell level since it is only written to with a lock and
         // read during commit, which is guaranteed to be single-threaded and exclusive with writing.
         return metadataByTable.computeIfAbsent(tableRef, unused -> new HashMap<>());
     }
 
-    public long getByteCount() {
-        return byteCount.get();
-    }
-
     private Object getLockForTable(TableReference tableRef) {
         return locksByTable.computeIfAbsent(tableRef, _unused -> new Object());
     }u}(jl (e612e0ab4fe987ecf261c19ed689f0ef22c47ba2jl `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javajl modifiedjl KFjl Kjl Kcj m https://github.com/palantir/atlasdb/blob/60c5b7ec4c21743b74e342b376739396886adc62/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajm https://github.com/palantir/atlasdb/raw/60c5b7ec4c21743b74e342b376739396886adc62/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajm https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=60c5b7ec4c21743b74e342b376739396886adc62jm XM(  @@ -98,8 +98,12 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.ValueAndChangeMetadata;
+import com.palantir.atlasdb.transaction.api.expectations.ExpectationsData;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableExpectationsData;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionMetadataInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionMetadataInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
@@ -281,6 +285,8 @@ private enum State {
     private final ExpectationsMetrics expectationsDataCollectionMetrics;
     private volatile long cellCommitLocksRequested = 0L;
     private volatile long rowCommitLocksRequested = 0L;
+    private volatile long cellChangeMetadataSent = 0L;
+    private volatile long rowChangeMetadataSent = 0L;
 
     protected volatile boolean hasReads;
 
@@ -2107,7 +2113,7 @@ private void commitWrites(TransactionService transactionService) {
                 long microsSinceCreation = TimeUnit.MILLISECONDS.toMicros(System.currentTimeMillis() - timeCreated);
                 getTimer("commitTotalTimeSinceTxCreation").update(Duration.of(microsSinceCreation, ChronoUnit.MICROS));
                 getHistogram(AtlasDbMetricNames.SNAPSHOT_TRANSACTION_BYTES_WRITTEN)
-                        .update(localWriteBuffer.getByteCount());
+                        .update(localWriteBuffer.getValuesByteCount());
             } finally {
                 // Not timed because tryUnlock() is an asynchronous operation.
                 traced("postCommitUnlock", () -> timelockService.tryUnlock(ImmutableSet.of(commitLocksToken)));
@@ -2535,22 +2541,32 @@ protected LocksAndMetadata getLocksAndMetadataForWrites() {
                 ImmutableMap.builder();
         long cellLockCount = 0L;
         long rowLockCount = 0L;
+        long cellChangeMetadataCount = 0L;
+        long rowChangeMetadataCount = 0L;
         for (TableReference tableRef : localWriteBuffer.getLocalWrites().keySet()) {
             ConflictHandler conflictHandler = getConflictHandlerForTable(tableRef);
             if (conflictHandler.lockCellsForConflicts()) {
-                cellLockCount +=
+                LockAndChangeMetadataCount counts =
                         collectCellLocks(lockDescriptorSetBuilder, lockDescriptorToChangeMetadataBuilder, tableRef);
+                cellLockCount += counts.lockCount();
+                cellChangeMetadataCount += counts.changeMetadataCount();
             }
             if (conflictHandler.lockRowsForConflicts()) {
-                rowLockCount +=
+                LockAndChangeMetadataCount counts =
                         collectRowLocks(lockDescriptorSetBuilder, lockDescriptorToChangeMetadataBuilder, tableRef);
+                rowLockCount += counts.lockCount();
+                rowChangeMetadataCount += counts.changeMetadataCount();
             }
         }
         lockDescriptorSetBuilder.add(AtlasRowLockDescriptor.of(
                 TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
                 TransactionConstants.getValueForTimestamp(getStartTimestamp())));
+
         cellCommitLocksRequested = cellLockCount;
         rowCommitLocksRequested = rowLockCount + 1;
+        cellChangeMetadataSent = cellChangeMetadataCount;
+        rowChangeMetadataSent = rowChangeMetadataCount;
+
         Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata =
                 lockDescriptorToChangeMetadataBuilder.buildOrThrow();
         return LocksAndMetadata.of(
@@ -2562,14 +2578,12 @@ protected LocksAndMetadata getLocksAndMetadataForWrites() {
                         : Optional.of(LockRequestMetadata.of(lockDescriptorToChangeMetadata)));
     }
 
-    /**
-     * Returns the number of lock descriptors that were added.
-     */
-    private Long collectCellLocks(
+    private LockAndChangeMetadataCount collectCellLocks(
             ImmutableSet.Builder<LockDescriptor> lockDescriptorSetBuilder,
             ImmutableMap.Builder<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadataBuilder,
             TableReference tableRef) {
         long lockCount = 0;
+        long changeMetadataCount = 0;
         Map<Cell, ChangeMetadata> changeMetadataForWrites = localWriteBuffer.getChangeMetadataForTable(tableRef);
         for (Cell cell : localWriteBuffer.getLocalWritesForTable(tableRef).keySet()) {
             LockDescriptor lockDescriptor =
@@ -2578,19 +2592,18 @@ private Long collectCellLocks(
             lockCount++;
             if (changeMetadataForWrites.containsKey(cell)) {
                 lockDescriptorToChangeMetadataBuilder.put(lockDescriptor, changeMetadataForWrites.get(cell));
+                changeMetadataCount++;
             }
         }
-        return lockCount;
+        return ImmutableLockAndChangeMetadataCount.of(lockCount, changeMetadataCount);
     }
 
-    /**
-     * Returns the number of lock descriptors that were added.
-     */
-    private Long collectRowLocks(
+    private LockAndChangeMetadataCount collectRowLocks(
             ImmutableSet.Builder<LockDescriptor> lockDescriptorSetBuilder,
             ImmutableMap.Builder<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadataBuilder,
             TableReference tableRef) {
         long lockCount = 0;
+        long changeMetadataCount = 0;
         Map<Cell, ChangeMetadata> changeMetadataForWrites = localWriteBuffer.getChangeMetadataForTable(tableRef);
         Optional<byte[]> lastRow = Optional.empty();
         Optional<byte[]> lastRowWithMetadata = Optional.empty();
@@ -2616,9 +2629,10 @@ private Long collectRowLocks(
                 lockDescriptorToChangeMetadataBuilder.put(
                         currentRowDescriptor.orElseThrow(), changeMetadataForWrites.get(cell));
                 lastRowWithMetadata = Optional.of(cell.getRowName());
+                changeMetadataCount++;
             }
         }
-        return lockCount;
+        return ImmutableLockAndChangeMetadataCount.of(lockCount, changeMetadataCount);
     }
 
     private boolean isSameRow(byte[] rowA, byte[] rowB) {
@@ -2766,6 +2780,15 @@ public TransactionCommitLockInfo getCommitLockInfo() {
                 .build();
     }
 
+    @Override
+    public TransactionMetadataInfo getMetadataInfo() {
+        return ImmutableTransactionMetadataInfo.builder()
+                .changeMetadataBuffered(localWriteBuffer.changeMetadataCount())
+                .cellChangeMetadataSent(cellChangeMetadataSent)
+                .rowChangeMetadataSent(rowChangeMetadataSent)
+                .build();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         if (isStillRunning()) {
@@ -2775,25 +2798,34 @@ public void reportExpectationsCollectedData() {
             return;
         }
 
-        reportExpectationsCollectedData(
-                getAgeMillis(), getReadInfo(), getCommitLockInfo(), expectationsDataCollectionMetrics);
+        ExpectationsData expectationsData = ImmutableExpectationsData.builder()
+                .ageMillis(getAgeMillis())
+                .readInfo(getReadInfo())
+                .commitLockInfo(getCommitLockInfo())
+                .metadataInfo(getMetadataInfo())
+                .build();
+        reportExpectationsCollectedData(expectationsData, expectationsDataCollectionMetrics);
     }
 
     @VisibleForTesting
-    static void reportExpectationsCollectedData(
-            long ageMillis,
-            TransactionReadInfo readInfo,
-            TransactionCommitLockInfo commitLockInfo,
-            ExpectationsMetrics metrics) {
-        metrics.ageMillis().update(ageMillis);
-        metrics.bytesRead().update(readInfo.bytesRead());
-        metrics.kvsReads().update(readInfo.kvsCalls());
-
-        readInfo.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
-                .update(kvsCallReadInfo.bytesRead()));
-
-        metrics.cellCommitLocksRequested().update(commitLockInfo.cellCommitLocksRequested());
-        metrics.rowCommitLocksRequested().update(commitLockInfo.rowCommitLocksRequested());
+    static void reportExpectationsCollectedData(ExpectationsData expectationsData, ExpectationsMetrics metrics) {
+        metrics.ageMillis().update(expectationsData.ageMillis());
+        metrics.bytesRead().update(expectationsData.readInfo().bytesRead());
+        metrics.kvsReads().update(expectationsData.readInfo().kvsCalls());
+
+        expectationsData
+                .readInfo()
+                .maximumBytesKvsCallInfo()
+                .ifPresent(kvsCallReadInfo ->
+                        metrics.mostKvsBytesReadInSingleCall().update(kvsCallReadInfo.bytesRead()));
+
+        metrics.cellCommitLocksRequested()
+                .update(expectationsData.commitLockInfo().cellCommitLocksRequested());
+        metrics.rowCommitLocksRequested()
+                .update(expectationsData.commitLockInfo().rowCommitLocksRequested());
+        metrics.changeMetadataBuffered().update(expectationsData.metadataInfo().changeMetadataBuffered());
+        metrics.cellChangeMetadataSent().update(expectationsData.metadataInfo().cellChangeMetadataSent());
+        metrics.rowChangeMetadataSent().update(expectationsData.metadataInfo().rowChangeMetadataSent());
     }
 
     private long getStartTimestamp() {
@@ -2922,4 +2954,13 @@ private <T> ListenableFuture<T> scopeToTransaction(ListenableFuture<T> transacti
                 },
                 MoreExecutors.directExecutor());
     }
+
+    @org.immutables.value.Value.Immutable
+    public interface LockAndChangeMetadataCount {
+        @org.immutables.value.Value.Parameter
+        long lockCount();
+
+        @org.immutables.value.Value.Parameter
+        long changeMetadataCount();
+    }
 }u      }(jl (d52d9be12509b7c29e1cd41dbc4a88c85a9216b3jl 5atlasdb-impl-shared/src/main/metrics/expectations.ymljl modifiedjl K	jl K jl K	j m https://github.com/palantir/atlasdb/blob/60c5b7ec4c21743b74e342b376739396886adc62/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymljm https://github.com/palantir/atlasdb/raw/60c5b7ec4c21743b74e342b376739396886adc62/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymljm https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=60c5b7ec4c21743b74e342b376739396886adc62jm X  @@ -23,3 +23,12 @@ namespaces:
       rowCommitLocksRequested:
         docs: Number of row-level commit locks requested as part of the commit protocol
         type: histogram
+      changeMetadataBuffered:
+        docs: Number of change metadata objects stored locally in the transaction
+        type: histogram
+      cellChangeMetadataSent:
+        docs: Number of change metadata objects attached to cell-level lock descriptors when requesting commit locks
+        type: histogram
+      rowChangeMetadataSent:
+        docs: Number of change metadata objects attached to row-level lock descriptors when requesting commit locks
+        type: histogramu}(jl (ed5ced8c9b66dafc43d2e49d405eb343c9a92f98jl matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javajl modifiedjl K(jl Kjl K:j m https://github.com/palantir/atlasdb/blob/60c5b7ec4c21743b74e342b376739396886adc62/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajm https://github.com/palantir/atlasdb/raw/60c5b7ec4c21743b74e342b376739396886adc62/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajm https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=60c5b7ec4c21743b74e342b376739396886adc62jm X  @@ -19,10 +19,12 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.codahale.metrics.Histogram;
+import com.palantir.atlasdb.transaction.api.expectations.ExpectationsData;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableExpectationsData;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionMetadataInfo;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
-import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.util.MetricsManagers;
 import org.junit.Before;
@@ -32,15 +34,27 @@
 
 @RunWith(MockitoJUnitRunner.class)
 public final class ExpectationsMetricsReportingTest {
+
     // immutable in type declaration for better 'withX' ergonomics
     private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
             ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
-
     private static final ImmutableTransactionCommitLockInfo BLANK_COMMIT_LOCK_INFO =
             ImmutableTransactionCommitLockInfo.builder()
                     .cellCommitLocksRequested(0L)
                     .rowCommitLocksRequested(0L)
                     .build();
+    private static final ImmutableTransactionMetadataInfo BLANK_METADATA_INFO =
+            ImmutableTransactionMetadataInfo.builder()
+                    .changeMetadataBuffered(0L)
+                    .cellChangeMetadataSent(0L)
+                    .rowChangeMetadataSent(0L)
+                    .build();
+    private static final ImmutableExpectationsData BLANK_EXPECTATIONS_DATA = ImmutableExpectationsData.builder()
+            .ageMillis(0L)
+            .readInfo(BLANK_READ_INFO)
+            .commitLockInfo(BLANK_COMMIT_LOCK_INFO)
+            .metadataInfo(BLANK_METADATA_INFO)
+            .build();
 
     private ExpectationsMetrics metrics;
 
@@ -52,55 +66,63 @@ public void setUp() {
     @Test
     public void ageReported() {
         long age = 129L;
-        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, BLANK_COMMIT_LOCK_INFO, metrics);
+        reportMetrics(BLANK_EXPECTATIONS_DATA.withAgeMillis(age));
         assertHistogramHasSingleValue(metrics.ageMillis(), age);
     }
 
     @Test
     public void bytesReadReported() {
         long bytes = 1290L;
-        reportMetricsWithReadInfo(BLANK_READ_INFO.withBytesRead(bytes));
+        reportMetrics(BLANK_EXPECTATIONS_DATA.withReadInfo(BLANK_READ_INFO.withBytesRead(bytes)));
         assertHistogramHasSingleValue(metrics.bytesRead(), bytes);
     }
 
     @Test
     public void kvsCallsReported() {
         long calls = 12L;
-        reportMetricsWithReadInfo(BLANK_READ_INFO.withKvsCalls(calls));
+        reportMetrics(BLANK_EXPECTATIONS_DATA.withReadInfo(BLANK_READ_INFO.withKvsCalls(calls)));
         assertHistogramHasSingleValue(metrics.kvsReads(), calls);
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
-        reportMetricsWithReadInfo(BLANK_READ_INFO);
+        reportMetrics(BLANK_EXPECTATIONS_DATA);
         assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
                 .isEmpty();
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
         long bytes = 193L;
-        reportMetricsWithReadInfo(
-                BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        reportMetrics(BLANK_EXPECTATIONS_DATA.withReadInfo(
+                BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes))));
         assertHistogramHasSingleValue(metrics.mostKvsBytesReadInSingleCall(), bytes);
     }
 
     @Test
     public void commitLocksRequestsReported() {
-        SnapshotTransaction.reportExpectationsCollectedData(
-                0L,
-                BLANK_READ_INFO,
-                ImmutableTransactionCommitLockInfo.builder()
-                        .cellCommitLocksRequested(1)
-                        .rowCommitLocksRequested(2)
-                        .build(),
-                metrics);
+        reportMetrics(BLANK_EXPECTATIONS_DATA.withCommitLockInfo(ImmutableTransactionCommitLockInfo.builder()
+                .cellCommitLocksRequested(1)
+                .rowCommitLocksRequested(2)
+                .build()));
         assertHistogramHasSingleValue(metrics.cellCommitLocksRequested(), 1);
         assertHistogramHasSingleValue(metrics.rowCommitLocksRequested(), 2);
     }
 
-    private void reportMetricsWithReadInfo(TransactionReadInfo readInfo) {
-        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, BLANK_COMMIT_LOCK_INFO, metrics);
+    @Test
+    public void metadataInfoReported() {
+        reportMetrics(BLANK_EXPECTATIONS_DATA.withMetadataInfo(ImmutableTransactionMetadataInfo.builder()
+                .changeMetadataBuffered(1)
+                .cellChangeMetadataSent(2)
+                .rowChangeMetadataSent(3)
+                .build()));
+        assertHistogramHasSingleValue(metrics.changeMetadataBuffered(), 1);
+        assertHistogramHasSingleValue(metrics.cellChangeMetadataSent(), 2);
+        assertHistogramHasSingleValue(metrics.rowChangeMetadataSent(), 3);
+    }
+
+    private void reportMetrics(ExpectationsData expectationsData) {
+        SnapshotTransaction.reportExpectationsCollectedData(expectationsData, metrics);
     }
 
     private void assertHistogramHasSingleValue(Histogram histogram, long expected) {u}(jl (22068197d6908ad2bc051f319ed5ad8a724915d0jl aatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/LocalWriteBufferTest.javajl modifiedjl Kjl Kjl Kj m https://github.com/palantir/atlasdb/blob/60c5b7ec4c21743b74e342b376739396886adc62/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.javajm https://github.com/palantir/atlasdb/raw/60c5b7ec4c21743b74e342b376739396886adc62/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.javajm https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.java?ref=60c5b7ec4c21743b74e342b376739396886adc62jm X  @@ -226,27 +226,27 @@ public void writingValueAndMetadataIsAtomicWhenOverwritingWithSameValue()
     @Test
     public void valueByteCountIsUpdatedCorrectlyWhenOverWritingValue() {
         buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of());
-        assertThat(buffer.getByteCount()).isEqualTo(Cells.getApproxSizeOfCell(CELL_1) + VALUE_1.length);
+        assertThat(buffer.getValuesByteCount()).isEqualTo(Cells.getApproxSizeOfCell(CELL_1) + VALUE_1.length);
 
         byte[] otherValue = PtBytes.toBytes("some long string");
         buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, otherValue), ImmutableMap.of());
-        assertThat(buffer.getByteCount()).isEqualTo(Cells.getApproxSizeOfCell(CELL_1) + otherValue.length);
+        assertThat(buffer.getValuesByteCount()).isEqualTo(Cells.getApproxSizeOfCell(CELL_1) + otherValue.length);
     }
 
     @Test
     public void valueByteCountIsUpdatedCorrectlyWhenDeletingValue() {
         buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of());
         buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, new byte[0]), ImmutableMap.of());
 
-        assertThat(buffer.getByteCount()).isEqualTo(Cells.getApproxSizeOfCell(CELL_1));
+        assertThat(buffer.getValuesByteCount()).isEqualTo(Cells.getApproxSizeOfCell(CELL_1));
     }
 
     @Test
     public void valueByteCountIsMaintainedAcrossMultipleTables() {
         buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of());
         buffer.putLocalWritesAndMetadata(TABLE_2, ImmutableMap.of(CELL_2, VALUE_2), ImmutableMap.of());
 
-        assertThat(buffer.getByteCount())
+        assertThat(buffer.getValuesByteCount())
                 .isEqualTo(Cells.getApproxSizeOfCell(CELL_1)
                         + VALUE_1.length
                         + Cells.getApproxSizeOfCell(CELL_2)u}(jl (37cb8850e1f085e152b8ec938927f1501eb1dd7djl eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javajl modifiedjl Kjl K jl Kj m https://github.com/palantir/atlasdb/blob/60c5b7ec4c21743b74e342b376739396886adc62/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajm https://github.com/palantir/atlasdb/raw/60c5b7ec4c21743b74e342b376739396886adc62/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajm https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=60c5b7ec4c21743b74e342b376739396886adc62jm X  @@ -101,6 +101,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.ValueAndChangeMetadata;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionMetadataInfo;
 import com.palantir.atlasdb.transaction.impl.metrics.DefaultMetricsFilterEvaluationContext;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.ToplistDeltaFilteringTableLevelMetricsController;
@@ -2764,6 +2765,29 @@ public void commitFailsIfMultipleCellsInSameRowHaveMetadataAndUsingRowLocks() {
                         UnsafeArg.of("newMetadata", UPDATE_CHANGE_METADATA));
     }
 
+    @Test
+    public void reportsMetadataInfoCorrectly() {
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE);
+        overrideConflictHandlerForTable(TABLE2, ConflictHandler.SERIALIZABLE_LOCK_LEVEL_MIGRATION);
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+
+        txn.putWithMetadata(
+                TABLE, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA)));
+        txn.putWithMetadata(
+                TABLE2,
+                ImmutableMap.of(
+                        TEST_CELL,
+                        ValueAndChangeMetadata.of(TEST_VALUE, ChangeMetadata.unchanged()),
+                        TEST_CELL_2,
+                        ValueAndChangeMetadata.of(TEST_VALUE, ChangeMetadata.unchanged())));
+        txn.commit();
+
+        TransactionMetadataInfo metadataInfo = txn.getMetadataInfo();
+        assertThat(metadataInfo.changeMetadataBuffered()).isEqualTo(3);
+        assertThat(metadataInfo.cellChangeMetadataSent()).isEqualTo(2);
+        assertThat(metadataInfo.rowChangeMetadataSent()).isEqualTo(3);
+    }
+
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,ueu(03b58e8af6948cf30f696cb91eb17c2a371945e6}(sha(03b58e8af6948cf30f696cb91eb17c2a371945e6node_idEC_kwDOAjP5fdoAKDAzYjU4ZThhZjY5NDhjZjMwZjY5NmNiOTFlYjE3YzJhMzcxOTQ1ZTYcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-26T10:23:37Zu	committer}(jZm GitHubj\m noreply@github.comj^m 2023-05-26T10:23:37Zumessage.[TEX] Report transaction level metrics (#6595)tree}(jRm (62cdc96e95c6db23703c22a5b851ccf4eac7e017url`https://api.github.com/repos/palantir/atlasdb/git/trees/62cdc96e95c6db23703c22a5b851ccf4eac7e017ujjm bhttps://api.github.com/repos/palantir/atlasdb/git/commits/03b58e8af6948cf30f696cb91eb17c2a371945e6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkcIipCRBK7hj4Ov3rIwAAOn4IAC0CLKjYg1NTMSu4J6x99dpS
V7TVlwV3sA0nSpv6iPOc8G/2WiKFeBixrMo1Ir5aumfCHuAAdCZNj+2yQQLwHpsK
9dESIs/M91P3uFpyRVTqRQaHq6dET3FEbjaD2ZVIiX2IlU7aA0e/A5Aqr7A4HJ91
2qzlnD0gzvTg7JkRReplxKg4jknYqPD6RyO2AwjhnlxikDhaWG1ewBhNqZp5VUlp
N0+u8BkYkWsXPgSKb0V2Vx93hbyWu1b4XbpamR5/YD52XlhuTfukJJnVJvEBzcQG
8fEGbHnPuPMJ5IWcdYnIP+DbsAWz6M3fGU+Wd/WZvcdja5lcIR5PFdAWvb4ctX0=
=VzN3
-----END PGP SIGNATURE-----
payloadX  tree 62cdc96e95c6db23703c22a5b851ccf4eac7e017
parent 3f5847c30c2cd0fed823af2a401bc2159a2e2178
author aalouane <30903736+ergo14@users.noreply.github.com> 1685096617 +0100
committer GitHub <noreply@github.com> 1685096617 +0000

[TEX] Report transaction level metrics (#6595)

 uujjm ^https://api.github.com/repos/palantir/atlasdb/commits/03b58e8af6948cf30f696cb91eb17c2a371945e6html_urlShttps://github.com/palantir/atlasdb/commit/03b58e8af6948cf30f696cb91eb17c2a371945e6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/03b58e8af6948cf30f696cb91eb17c2a371945e6/commentsjXm }(loginergo14idJjTm MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jjm #https://api.github.com/users/ergo14jxm https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj`m }(j}m web-flowjm J/jTm MDQ6VXNlcjE5ODY0NDQ3jm 4https://avatars.githubusercontent.com/u/19864447?v=4jm h5jjm %https://api.github.com/users/web-flowjxm https://github.com/web-flowjm /https://api.github.com/users/web-flow/followersjm <https://api.github.com/users/web-flow/following{/other_user}jm 5https://api.github.com/users/web-flow/gists{/gist_id}jm <https://api.github.com/users/web-flow/starred{/owner}{/repo}jm 3https://api.github.com/users/web-flow/subscriptionsjm *https://api.github.com/users/web-flow/orgsjm +https://api.github.com/users/web-flow/reposjm 6https://api.github.com/users/web-flow/events{/privacy}jm 5https://api.github.com/users/web-flow/received_eventsjm Userjm uparents]}(jRm (3f5847c30c2cd0fed823af2a401bc2159a2e2178jjm ^https://api.github.com/repos/palantir/atlasdb/commits/3f5847c30c2cd0fed823af2a401bc2159a2e2178jxm Shttps://github.com/palantir/atlasdb/commit/3f5847c30c2cd0fed823af2a401bc2159a2e2178uastats}(totalK	additionsK	deletionsKufiles](}(jRm (88f8467b9c138fc4cb41ea3c961977dd5dd0f8e4filename atlasdb-impl-shared/build.gradlestatusmodifiedjm Kjm K changesKblob_urlthttps://github.com/palantir/atlasdb/blob/03b58e8af6948cf30f696cb91eb17c2a371945e6/atlasdb-impl-shared%2Fbuild.gradleraw_urlshttps://github.com/palantir/atlasdb/raw/03b58e8af6948cf30f696cb91eb17c2a371945e6/atlasdb-impl-shared%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fbuild.gradle?ref=03b58e8af6948cf30f696cb91eb17c2a371945e6patchX
  @@ -12,6 +12,7 @@ license {
   exclude '**/PutUnlessExistsTableMetrics.java'
   exclude '**/TargetedSweepProgressMetrics.java'
   exclude '**/TimestampCorrectnessMetrics.java'
+  exclude '**/ExpectationsMetrics.java'
   exclude '**/VerificationModeMetrics.java'
 }
 u}(jRm (f93956c564df967c827fb4d2fd2ff0c499a92050jm `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javajm modifiedjm Kjm Kjm K"jm https://github.com/palantir/atlasdb/blob/03b58e8af6948cf30f696cb91eb17c2a371945e6/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajm https://github.com/palantir/atlasdb/raw/03b58e8af6948cf30f696cb91eb17c2a371945e6/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajm https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=03b58e8af6948cf30f696cb91eb17c2a371945e6jm X  @@ -98,6 +98,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueServiceImpl;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
@@ -265,12 +266,14 @@ private enum State {
     protected final TableLevelMetricsController tableLevelMetricsController;
     protected final SuccessCallbackManager successCallbackManager = new SuccessCallbackManager();
     private final CommitTimestampLoader commitTimestampLoader;
+    private final ExpectationsMetrics expectationsDataCollectionMetrics;
 
     protected volatile boolean hasReads;
 
     protected final TimestampCache timestampCache;
 
     protected final TransactionKnowledgeComponents knowledge;
+
     protected final Closer closer = Closer.create();
 
     /**
@@ -345,6 +348,7 @@ private enum State {
                 timelockService,
                 immutableTimestamp,
                 knowledge);
+        this.expectationsDataCollectionMetrics = ExpectationsMetrics.of(metricsManager.getTaggedRegistry());
     }
 
     protected TransactionScopedCache getCache() {
@@ -1817,11 +1821,16 @@ private void ensureUncommitted() {
     }
 
     private void ensureStillRunning() {
-        if (!(state.get() == State.UNCOMMITTED || state.get() == State.COMMITTING)) {
+        if (!isStillRunning()) {
             throw new CommittedTransactionException();
         }
     }
 
+    private boolean isStillRunning() {
+        State stateNow = state.get();
+        return stateNow == State.UNCOMMITTED || stateNow == State.COMMITTING;
+    }
+
     /**
      * Returns true iff the transaction is known to have successfully committed.
      *
@@ -2597,9 +2606,28 @@ public TransactionReadInfo getReadInfo() {
         return keyValueService.getOverallReadInfo();
     }
 
-    // TODO(aalouane): implement and call this on transaction exit
     @Override
-    public void reportExpectationsCollectedData() {}
+    public void reportExpectationsCollectedData() {
+        if (isStillRunning()) {
+            log.error(
+                    "reportExpectationsCollectedData is called on an in-progress transaction",
+                    SafeArg.of("state", state.get()));
+            return;
+        }
+
+        reportExpectationsCollectedData(getAgeMillis(), getReadInfo(), expectationsDataCollectionMetrics);
+    }
+
+    @VisibleForTesting
+    static void reportExpectationsCollectedData(
+            long ageMillis, TransactionReadInfo readInfo, ExpectationsMetrics metrics) {
+        metrics.ageMillis().update(ageMillis);
+        metrics.bytesRead().update(readInfo.bytesRead());
+        metrics.kvsReads().update(readInfo.kvsCalls());
+
+        readInfo.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
+                .update(kvsCallReadInfo.bytesRead()));
+    }
 
     private long getStartTimestamp() {
         return startTimestamp.get();u}(jRm (e696a4e851cc0de0f72f1af470c874f29b2e719bjm 5atlasdb-impl-shared/src/main/metrics/expectations.ymljm addedjm Kjm K jm Kjm https://github.com/palantir/atlasdb/blob/03b58e8af6948cf30f696cb91eb17c2a371945e6/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymljm https://github.com/palantir/atlasdb/raw/03b58e8af6948cf30f696cb91eb17c2a371945e6/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymljm https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=03b58e8af6948cf30f696cb91eb17c2a371945e6jm X  @@ -0,0 +1,19 @@
+options:
+  javaPackage: 'com.palantir.atlasdb.transaction.expectations'
+
+namespaces:
+  expectations:
+    docs: Data collection on transaction patterns
+    metrics:
+      bytesRead:
+        docs: Bytes read by a transaction through Atlas kvs read calls
+        type: histogram
+      kvsReads:
+        docs: Number of Atlas kvs read calls made by a transaction
+        type: histogram
+      ageMillis:
+        docs: Elapsed duration in milliseconds for a transaction
+        type: histogram
+      mostKvsBytesReadInSingleCall:
+        docs: Most bytes read by a transaction in one Atlas kvs read call
+        type: histogramu}(jRm (c8823c29da58eca2fbdcdf7fc98f8ab892c82d54jm matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javajm addedjm KSjm K jm KSjm https://github.com/palantir/atlasdb/blob/03b58e8af6948cf30f696cb91eb17c2a371945e6/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajm https://github.com/palantir/atlasdb/raw/03b58e8af6948cf30f696cb91eb17c2a371945e6/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajm https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=03b58e8af6948cf30f696cb91eb17c2a371945e6jm X<
  @@ -0,0 +1,83 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class ExpectationsMetricsReportingTest {
+    // immutable in type declaration for better 'withX' ergonomics
+    private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
+            ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
+
+    private ExpectationsMetrics metrics;
+
+    @Before
+    public void setUp() {
+        metrics = ExpectationsMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
+    }
+
+    @Test
+    public void ageReported() {
+        long age = 129L;
+        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, metrics);
+        assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
+    }
+
+    @Test
+    public void bytesReadReported() {
+        long bytes = 1290L;
+        reportMetrics(BLANK_READ_INFO.withBytesRead(bytes));
+        assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
+    }
+
+    @Test
+    public void kvsCallsReported() {
+        long calls = 12L;
+        reportMetrics(BLANK_READ_INFO.withKvsCalls(calls));
+        assertThat(metrics.kvsReads().getSnapshot().getValues()).containsOnly(calls);
+    }
+
+    @Test
+    public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
+        reportMetrics(BLANK_READ_INFO);
+        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+                .isEmpty();
+    }
+
+    @Test
+    public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
+        long bytes = 193L;
+        reportMetrics(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+                .containsOnly(bytes);
+    }
+
+    private void reportMetrics(TransactionReadInfo readInfo) {
+        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, metrics);
+    }
+}u}(jRm (18e3bf26bf01f5384536788e145f8e8f37200656jm latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javajm modifiedjm Kjm Kjm Kjm https://github.com/palantir/atlasdb/blob/03b58e8af6948cf30f696cb91eb17c2a371945e6/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javajm https://github.com/palantir/atlasdb/raw/03b58e8af6948cf30f696cb91eb17c2a371945e6/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javajm https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=03b58e8af6948cf30f696cb91eb17c2a371945e6jm X  @@ -237,7 +237,10 @@ public void registersMetrics() throws InterruptedException {
         TaggedMetricRegistry registry = snapshotTransactionManager.metricsManager.getTaggedRegistry();
         assertThat(registry.getMetrics().keySet().stream().map(MetricName::safeName))
                 .contains(SETUP_TASK_METRIC_NAME)
-                .contains(FINISH_TASK_METRIC_NAME);
+                .contains(FINISH_TASK_METRIC_NAME)
+                .contains("expectations.bytesRead")
+                .contains("expectations.kvsReads")
+                .contains("expectations.ageMillis");
         assertThat(registry.timer(MetricName.builder()
                                 .safeName(SETUP_TASK_METRIC_NAME)
                                 .build())u}(jRm (b92e0f6636b00a68d6b900daa1da10ff5cbb9a1ejm $changelog/@unreleased/pr-6595.v2.ymljm addedjm Kjm K jm Kjm |https://github.com/palantir/atlasdb/blob/03b58e8af6948cf30f696cb91eb17c2a371945e6/changelog%2F%40unreleased%2Fpr-6595.v2.ymljm {https://github.com/palantir/atlasdb/raw/03b58e8af6948cf30f696cb91eb17c2a371945e6/changelog%2F%40unreleased%2Fpr-6595.v2.ymljm https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6595.v2.yml?ref=03b58e8af6948cf30f696cb91eb17c2a371945e6jm @@ -0,0 +1,5 @@
+type: feature
+feature:
+  description: '[TEX] Report transaction level metrics'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6595ueu(37a96c817cf48aa9efbe472ea91b3f41eb905740}(sha(37a96c817cf48aa9efbe472ea91b3f41eb905740node_idEC_kwDOAjP5fdoAKDM3YTk2YzgxN2NmNDhhYTllZmJlNDcyZWE5MWIzZjQxZWI5MDU3NDAcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-19T08:50:30Zu	committer}(jm 
Sam Kramerjm skramer@palantir.comjm 2023-04-19T08:50:30Zumessage+check entire cause chain for kae exceptionstree}(jm (89244b8cdb43081b1490820e31e8cf8ac92bcddeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/89244b8cdb43081b1490820e31e8cf8ac92bcddeuj	n bhttps://api.github.com/repos/palantir/atlasdb/git/commits/37a96c817cf48aa9efbe472ea91b3f41eb905740
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ/q1YACgkQmPPOpKR4
XS2+cwgAgE5feCQA87dIeeJqTKzoj9Sy2J3rcIpy2e2O1WeVHxTMFF/sN8k8WtHp
88axHUNLo0aqs+g0MPkAHyxed+ewfF1aGNzRzwTYSW78vpHWuhv+hq6R8LcdLytJ
6RgzFEgAAhq17UsjHv+MxuE222Y2EhMVeCaygOS2UOX/ft9tFaTijjleXXJ6c6fv
jKLMQ1JXnzgJUGsttNEQXwYedew1BenUbqyEZEmtZhPUvWsRQmR2C9XZ9F02GjOc
kDAv4oZjr8y4nNDI5Mp588qP97VKgOMJb/KwUX/T8PaFtk1BmLhc3OAtIT59IBNS
hUUMQ8d+FciJgv8ibGsQGlDhGjUIgw==
=rDTl
-----END PGP SIGNATURE-----payloadX  tree 89244b8cdb43081b1490820e31e8cf8ac92bcdde
parent 23de54946e19ce8cc71cdf53e565bb9b1241a593
author Sam Kramer <skramer@palantir.com> 1681894230 +0100
committer Sam Kramer <skramer@palantir.com> 1681894230 +0100

check entire cause chain for kae exceptions
uuj	n ^https://api.github.com/repos/palantir/atlasdb/commits/37a96c817cf48aa9efbe472ea91b3f41eb905740html_urlShttps://github.com/palantir/atlasdb/commit/37a96c817cf48aa9efbe472ea91b3f41eb905740comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/37a96c817cf48aa9efbe472ea91b3f41eb905740/commentsjm }(login
Sam-KrameridJ^2_ jm MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j	n 'https://api.github.com/users/Sam-Kramerjn https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujm }(jn 
Sam-Kramerjn J^2_ jm MDQ6VXNlcjYyMzg4MTQ=j n 3https://avatars.githubusercontent.com/u/6238814?v=4j"n h5j	n 'https://api.github.com/users/Sam-Kramerjn https://github.com/Sam-Kramerj%n 1https://api.github.com/users/Sam-Kramer/followersj'n >https://api.github.com/users/Sam-Kramer/following{/other_user}j)n 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j+n >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j-n 5https://api.github.com/users/Sam-Kramer/subscriptionsj/n ,https://api.github.com/users/Sam-Kramer/orgsj1n -https://api.github.com/users/Sam-Kramer/reposj3n 8https://api.github.com/users/Sam-Kramer/events{/privacy}j5n 7https://api.github.com/users/Sam-Kramer/received_eventsj7n Userj9n uparents]}(jm (23de54946e19ce8cc71cdf53e565bb9b1241a593j	n ^https://api.github.com/repos/palantir/atlasdb/commits/23de54946e19ce8cc71cdf53e565bb9b1241a593jn Shttps://github.com/palantir/atlasdb/commit/23de54946e19ce8cc71cdf53e565bb9b1241a593uastats}(totalK	additionsK	deletionsK	ufiles]}(jm (dc377fee17d198937fea10b82970c9863ce5362afilenamefatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javastatusmodifiedjSn KjTn K	changesKblob_urlhttps://github.com/palantir/atlasdb/blob/37a96c817cf48aa9efbe472ea91b3f41eb905740/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/37a96c817cf48aa9efbe472ea91b3f41eb905740/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=37a96c817cf48aa9efbe472ea91b3f41eb905740patchX&  @@ -34,6 +34,7 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.common.base.Throwables;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
@@ -113,16 +114,18 @@ public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction>
                     .build());
         } catch (SafeIllegalArgumentException e) {
             throw e;
-        } catch (KeyAlreadyExistsException e) {
-            Transaction transaction = transactionReference.get();
-            return Optional.of(MaybeWitnessedTransaction.builder()
-                    .startTimestamp(transaction.getTimestamp())
-                    .commitTimestamp(commitTimestampProvider
-                            .get()
-                            .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
-                    .actions(witnessedActionsReference.get())
-                    .build());
         } catch (Exception e) {
+            if (Throwables.hasCauseInCausalChain(e, KeyAlreadyExistsException.class)) {
+                Transaction transaction = transactionReference.get();
+                return Optional.of(MaybeWitnessedTransaction.builder()
+                        .startTimestamp(transaction.getTimestamp())
+                        .commitTimestamp(commitTimestampProvider
+                                .get()
+                                .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
+                        .actions(witnessedActionsReference.get())
+                        .build());
+            }
+
             Optional<Long> startTimestamp =
                     Optional.ofNullable(transactionReference.get()).map(Transaction::getTimestamp);
             log.info(uau(5256474c5a21711899e45e3fa045a0dbfef4d7f2}(sha(5256474c5a21711899e45e3fa045a0dbfef4d7f2node_idEC_kwDOAjP5fdoAKDUyNTY0NzRjNWEyMTcxMTg5OWU0NWUzZmEwNDVhMGRiZmVmNGQ3ZjIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-20T14:26:02Zu	committer}(jpn 
Sam Kramerjrn skramer@palantir.comjtn 2023-06-20T14:26:02Zumessageremove wonky testtree}(jhn (d59eb4d49a16c96ef2303288c4512a31bff09c8burl`https://api.github.com/repos/palantir/atlasdb/git/trees/d59eb4d49a16c96ef2303288c4512a31bff09c8bujn bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5256474c5a21711899e45e3fa045a0dbfef4d7f2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSRtvsACgkQmPPOpKR4
XS1lAwf+IM55f71ojulIYjc0rTVRnK3PlQHUZE18DN0lcjaSkUV13NfjrUW31/FD
rITF+DSykPHiEwGHrWQ4soCK/BvqtZGaFO/M6OO9sNJ8HTB78Ytut7S6WmnmN9z3
zxDtK85alrIBWi2rg7g+UzISSaLotDXdUwc7KDeKlNjUbyqNRgtmJjmuwroAXWAG
+696jrvl+kZOhuuhXAYvkE4YWm0FIkP/E88z4aLmXnBFGOjCa8swE/kSm86P2eWG
wv4KJaPdw2l+UNuHH583+7YM56qD0ZBHH13Za9/IewfIdgjnPWeC+bIL3/E8wujh
69H1t0knDT6Hie6vqotTb6FuGWaH8g==
=lxlD
-----END PGP SIGNATURE-----payloadtree d59eb4d49a16c96ef2303288c4512a31bff09c8b
parent 4f493c03f69a4a442ad74fbd39db045c8ff6ebbb
author Sam Kramer <skramer@palantir.com> 1687271162 +0100
committer Sam Kramer <skramer@palantir.com> 1687271162 +0100

remove wonky test
uujn ^https://api.github.com/repos/palantir/atlasdb/commits/5256474c5a21711899e45e3fa045a0dbfef4d7f2html_urlShttps://github.com/palantir/atlasdb/commit/5256474c5a21711899e45e3fa045a0dbfef4d7f2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5256474c5a21711899e45e3fa045a0dbfef4d7f2/commentsjnn }(login
Sam-KrameridJ^2_ jjn MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jn 'https://api.github.com/users/Sam-Kramerjn https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujvn }(jn 
Sam-Kramerjn J^2_ jjn MDQ6VXNlcjYyMzg4MTQ=jn 3https://avatars.githubusercontent.com/u/6238814?v=4jn h5jn 'https://api.github.com/users/Sam-Kramerjn https://github.com/Sam-Kramerjn 1https://api.github.com/users/Sam-Kramer/followersjn >https://api.github.com/users/Sam-Kramer/following{/other_user}jn 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jn >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jn 5https://api.github.com/users/Sam-Kramer/subscriptionsjn ,https://api.github.com/users/Sam-Kramer/orgsjn -https://api.github.com/users/Sam-Kramer/reposjn 8https://api.github.com/users/Sam-Kramer/events{/privacy}jn 7https://api.github.com/users/Sam-Kramer/received_eventsjn Userjn uparents]}(jhn (4f493c03f69a4a442ad74fbd39db045c8ff6ebbbjn ^https://api.github.com/repos/palantir/atlasdb/commits/4f493c03f69a4a442ad74fbd39db045c8ff6ebbbjn Shttps://github.com/palantir/atlasdb/commit/4f493c03f69a4a442ad74fbd39db045c8ff6ebbbuastats}(totalK4	additionsK	deletionsKufiles](}(jhn (cc92fa56448dd6b1caec476b1111f85f00a5bea7filenameLatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/AtlasDbTestCase.javastatusmodifiedjn Kjn KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5256474c5a21711899e45e3fa045a0dbfef4d7f2/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5256474c5a21711899e45e3fa045a0dbfef4d7f2/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.java?ref=5256474c5a21711899e45e3fa045a0dbfef4d7f2patchX  @@ -86,7 +86,7 @@ public class AtlasDbTestCase {
     @SuppressWarnings("DoNotMock")
     @Before
     public void setUp() throws Exception {
-        deleteExecutor = spy(MoreExecutors.newDirectExecutorService());
+        deleteExecutor = MoreExecutors.newDirectExecutorService();
         lockClient = LockClient.of(CLIENT);
         lockService = inMemoryTimeLockRule.getLockService();
         timelockService = inMemoryTimeLockRule.getLegacyTimelockService();u}(jhn (dd48ecb9d478041af5646bae3e744586dbef0bb5jn eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javajn modifiedjn Kjn Kjn K2jn https://github.com/palantir/atlasdb/blob/5256474c5a21711899e45e3fa045a0dbfef4d7f2/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajn https://github.com/palantir/atlasdb/raw/5256474c5a21711899e45e3fa045a0dbfef4d7f2/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=5256474c5a21711899e45e3fa045a0dbfef4d7f2jn Xd  @@ -2437,31 +2437,31 @@ public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigratio
         assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
     }
 
-    @Test
-    public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
-        // Need to block deleter executor from deleting aborted values to help bloat the row.
-        doNothing().when(deleteExecutor).execute(any());
-
-        for (int idx = 0; idx < SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS; idx++) {
-            try {
-                txManager.runTaskWithConditionThrowOnConflict(ALWAYS_FAILS_CONDITION, (txn, _c) -> {
-                    txn.put(TABLE_NO_SWEEP, ImmutableMap.of(TEST_CELL, TEST_VALUE));
-                    return null;
-                });
-            } catch (TransactionFailedRetriableException _t) {
-                // Expected, as we want to create a large row with only aborted values.
-            }
-        }
-        assertThatLoggableExceptionThrownBy(
-                        () -> txManager.runTaskThrowOnConflict(txn -> txn.get(TABLE_NO_SWEEP, Set.of(TEST_CELL))))
-                .isInstanceOf(SafeIllegalStateException.class)
-                .hasMessageStartingWith("Unable to filter cells")
-                .hasExactlyArgs(
-                        SafeArg.of("table", TABLE_NO_SWEEP),
-                        SafeArg.of("maxIterations", SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS));
-        doCallRealMethod().when(deleteExecutor).execute(any());
-        txManager.getKeyValueService().truncateTable(TABLE_NO_SWEEP);
-    }
+    // @Test
+    // public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
+    //     // Need to block deleter executor from deleting aborted values to help bloat the row.
+    //     doNothing().when(deleteExecutor).execute(any());
+    //
+    //     for (int idx = 0; idx < SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS; idx++) {
+    //         try {
+    //             txManager.runTaskWithConditionThrowOnConflict(ALWAYS_FAILS_CONDITION, (txn, _c) -> {
+    //                 txn.put(TABLE_NO_SWEEP, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+    //                 return null;
+    //             });
+    //         } catch (TransactionFailedRetriableException _t) {
+    //             // Expected, as we want to create a large row with only aborted values.
+    //         }
+    //     }
+    //     assertThatLoggableExceptionThrownBy(
+    //                     () -> txManager.runTaskThrowOnConflict(txn -> txn.get(TABLE_NO_SWEEP, Set.of(TEST_CELL))))
+    //             .isInstanceOf(SafeIllegalStateException.class)
+    //             .hasMessageStartingWith("Unable to filter cells")
+    //             .hasExactlyArgs(
+    //                     SafeArg.of("table", TABLE_NO_SWEEP),
+    //                     SafeArg.of("maxIterations", SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS));
+    //     doCallRealMethod().when(deleteExecutor).execute(any());
+    //     txManager.getKeyValueService().truncateTable(TABLE_NO_SWEEP);
+    // }
 
     private void verifyPrefetchValidations(
             List<byte[]> rows,ueu(c30b0242b1c3b99757ea17ea4b9216fcd1de75c0}(sha(c30b0242b1c3b99757ea17ea4b9216fcd1de75c0node_idEC_kwDOAjP5fdoAKGMzMGIwMjQyYjFjM2I5OTc1N2VhMTdlYTRiOTIxNmZjZDFkZTc1YzAcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-29T15:58:26Zu	committer}(jn 	Tom Papkejn tpapke@palantir.comjn 2023-06-29T15:58:26ZumessageAdd metadata to LockEventtree}(jn (d79ac3327c30ce74edec54d1178f64484067a2deurl`https://api.github.com/repos/palantir/atlasdb/git/trees/d79ac3327c30ce74edec54d1178f64484067a2deujn bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c30b0242b1c3b99757ea17ea4b9216fcd1de75c0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSdqiIACgkQmF9s0kaF
Iw2H8QgAiRedFzUc7VXTUt5C0vyyca96sp3romq7CMLHgbG/aB4N6gT3YPQ/xLdc
a4xGhSr29ui3TB4P3oRhKY4OZ/g8QxIg3BYivMHMJy2tBWkNhGkKlrHUBmOm2GEg
zXV5PEou3NpnBLKBw72fKqCmJIhCuK9h0DQhTwuLQxeC20T+LNBoXWjPeUGPptXB
ui7ETQAFQa8+KVSnpwUNE3LDs/dL1WYTVbN78f151Z/7vJgWeNK0UEMKafUm8F6N
JeAK7tBiql51QRId8pCHQ7HG4pIrQ1hbbw6TvQfrD9cnJGRpYSW0gUY9bXX3GR9y
LcyW+ufReTpeyJH1kCBqsepW+nqosA==
=PUl6
-----END PGP SIGNATURE-----payloadtree d79ac3327c30ce74edec54d1178f64484067a2de
parent 647b44abf9724111ca3d6e4e36be6c61ee82d1af
author Tom Papke <tpapke@palantir.com> 1688054306 +0100
committer Tom Papke <tpapke@palantir.com> 1688054306 +0100

Add metadata to LockEvent
uujn ^https://api.github.com/repos/palantir/atlasdb/commits/c30b0242b1c3b99757ea17ea4b9216fcd1de75c0html_urlShttps://github.com/palantir/atlasdb/commit/c30b0242b1c3b99757ea17ea4b9216fcd1de75c0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c30b0242b1c3b99757ea17ea4b9216fcd1de75c0/commentsjn }(login	ToemmscheidJbojn MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jn &https://api.github.com/users/Toemmschej
o https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujn }(jo 	Toemmschejo Jbojn MDQ6VXNlcjQzNjc1NDkwjo 4https://avatars.githubusercontent.com/u/43675490?v=4jo h5jn &https://api.github.com/users/Toemmschej
o https://github.com/Toemmschejo 0https://api.github.com/users/Toemmsche/followersjo =https://api.github.com/users/Toemmsche/following{/other_user}jo 6https://api.github.com/users/Toemmsche/gists{/gist_id}j!o =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j#o 4https://api.github.com/users/Toemmsche/subscriptionsj%o +https://api.github.com/users/Toemmsche/orgsj'o ,https://api.github.com/users/Toemmsche/reposj)o 7https://api.github.com/users/Toemmsche/events{/privacy}j+o 6https://api.github.com/users/Toemmsche/received_eventsj-o Userj/o uparents]}(jn (647b44abf9724111ca3d6e4e36be6c61ee82d1afjn ^https://api.github.com/repos/palantir/atlasdb/commits/647b44abf9724111ca3d6e4e36be6c61ee82d1afj
o Shttps://github.com/palantir/atlasdb/commit/647b44abf9724111ca3d6e4e36be6c61ee82d1afuastats}(totalK	additionsK	deletionsKufiles](}(jn (f502755b47a5379d145593d6f6a21b6d0ff20be9filename$changelog/@unreleased/pr-6646.v2.ymlstatusaddedjIo KjJo K changesKblob_url|https://github.com/palantir/atlasdb/blob/c30b0242b1c3b99757ea17ea4b9216fcd1de75c0/changelog%2F%40unreleased%2Fpr-6646.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/c30b0242b1c3b99757ea17ea4b9216fcd1de75c0/changelog%2F%40unreleased%2Fpr-6646.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6646.v2.yml?ref=c30b0242b1c3b99757ea17ea4b9216fcd1de75c0patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add metadata to LockEvent'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6646u}(jn (9ef6441b1ec7d185a6b25c242d1d64524dbaadc5jOo Elock-api-objects/src/main/java/com/palantir/lock/watch/LockEvent.javajQo modifiedjIo KjJo KjSo KjTo https://github.com/palantir/atlasdb/blob/c30b0242b1c3b99757ea17ea4b9216fcd1de75c0/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javajVo https://github.com/palantir/atlasdb/raw/c30b0242b1c3b99757ea17ea4b9216fcd1de75c0/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javajXo https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.java?ref=c30b0242b1c3b99757ea17ea4b9216fcd1de75c0jZo Xa  @@ -16,12 +16,14 @@
 
 package com.palantir.lock.watch;
 
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonTypeName;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.logsafe.Unsafe;
+import java.util.Optional;
 import java.util.Set;
 import org.immutables.value.Value;
 
@@ -37,6 +39,9 @@ public abstract class LockEvent implements LockWatchEvent {
 
     public abstract LockToken lockToken();
 
+    @JsonIgnore
+    public abstract Optional<LockRequestMetadata> metadata();
+
     @Override
     public int size() {
         return lockDescriptors().size();
@@ -48,8 +53,15 @@ public <T> T accept(Visitor<T> visitor) {
     }
 
     public static LockWatchEvent.Builder builder(Set<LockDescriptor> lockDescriptors, LockToken lockToken) {
-        ImmutableLockEvent.Builder builder =
-                ImmutableLockEvent.builder().lockDescriptors(lockDescriptors).lockToken(lockToken);
+        return builder(lockDescriptors, lockToken, Optional.empty());
+    }
+
+    public static LockWatchEvent.Builder builder(
+            Set<LockDescriptor> lockDescriptors, LockToken lockToken, Optional<LockRequestMetadata> metadata) {
+        ImmutableLockEvent.Builder builder = ImmutableLockEvent.builder()
+                .lockDescriptors(lockDescriptors)
+                .lockToken(lockToken)
+                .metadata(metadata);
         return seq -> builder.sequence(seq).build();
     }
 }ueu(e3a256da2291bcebc880fce9d674c40a695d3845}(sha(e3a256da2291bcebc880fce9d674c40a695d3845node_idEC_kwDOAjP5fdoAKGUzYTI1NmRhMjI5MWJjZWJjODgwZmNlOWQ2NzRjNDBhNjk1ZDM4NDUcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-19T17:04:02Zu	committer}(jno Lucas Meirelesjpo meireles31@msn.comjro 2023-06-19T17:04:02Zumessage assert does not throw explicitlytree}(jfo (e10f933f62420fbc6c6fa87de346e91167fe6746url`https://api.github.com/repos/palantir/atlasdb/git/trees/e10f933f62420fbc6c6fa87de346e91167fe6746uj~o bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e3a256da2291bcebc880fce9d674c40a695d3845
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSQioIACgkQJd22kJ7J
GizM0Af+IE4PKNIG0LEI0RpknwkZpnmLSVpQJ1JxHGhhNQ7SevUw3Pbo2GPto3th
6dlMyf5M+WnXWuHYBS8yWzj8kOyvMhSg7c4Agmb0shMvOKhfeTBGCwdDIs26B9b1
7K4OluKNj0TmxYfJ4G2xvKl17okJ0NAqJnKXimayjHxBI5exY9RVcf6404Vrlaof
ewxbhfbeeTpFMHfvY2ETH5JxlQwBRUiiie0BW6Svf8Ae1gxTxtyIPVyqBydDjp4f
l+6YuvC/FHvc5FaQ07lZAa/PJUTEIgCQpqLJMHY3yvdqc1rKriYtrbtDEQX9Oq1J
RUmYXCB1R8G8hDM94R3FrBpJ/F3tNA==
=JSrK
-----END PGP SIGNATURE-----payloadtree e10f933f62420fbc6c6fa87de346e91167fe6746
parent 897ff593cf151c805f52a7e587593666b63e108f
author Lucas Meireles <meireles31@msn.com> 1687194242 +0100
committer Lucas Meireles <meireles31@msn.com> 1687194242 +0100

assert does not throw explicitly
uuj~o ^https://api.github.com/repos/palantir/atlasdb/commits/e3a256da2291bcebc880fce9d674c40a695d3845html_urlShttps://github.com/palantir/atlasdb/commit/e3a256da2291bcebc880fce9d674c40a695d3845comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e3a256da2291bcebc880fce9d674c40a695d3845/commentsjlo }(loginLucasIMEidJg jho MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j~o %https://api.github.com/users/LucasIMEjo https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujto }(jo LucasIMEjo Jg jho MDQ6VXNlcjY3ODczMTE=jo 3https://avatars.githubusercontent.com/u/6787311?v=4jo h5j~o %https://api.github.com/users/LucasIMEjo https://github.com/LucasIMEjo /https://api.github.com/users/LucasIME/followersjo <https://api.github.com/users/LucasIME/following{/other_user}jo 5https://api.github.com/users/LucasIME/gists{/gist_id}jo <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jo 3https://api.github.com/users/LucasIME/subscriptionsjo *https://api.github.com/users/LucasIME/orgsjo +https://api.github.com/users/LucasIME/reposjo 6https://api.github.com/users/LucasIME/events{/privacy}jo 5https://api.github.com/users/LucasIME/received_eventsjo Userjo uparents]}(jfo (897ff593cf151c805f52a7e587593666b63e108fj~o ^https://api.github.com/repos/palantir/atlasdb/commits/897ff593cf151c805f52a7e587593666b63e108fjo Shttps://github.com/palantir/atlasdb/commit/897ff593cf151c805f52a7e587593666b63e108fuastats}(totalK	additionsK	deletionsKufiles]}(jfo (4ecc8d0029caabad8e99518d16b13fcf35ba33ecfilenameqatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractSerializableTransactionTest.javastatusmodifiedjo Kjo KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e3a256da2291bcebc880fce9d674c40a695d3845/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e3a256da2291bcebc880fce9d674c40a695d3845/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.java?ref=e3a256da2291bcebc880fce9d674c40a695d3845patchX  @@ -1082,10 +1082,12 @@ public void testNoMarkTableInvolvedSkipsLockChecksOnCommit() {
     @Test
     public void testMarkTableInvolvedDoesNoCheckLocksForExpiryOnCommitWhenNotRequired() {
         // Test table is not thorough, therefore no immutable timestamp lock checking
-        testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE);
+        assertThatCode(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE))
+                .doesNotThrowAnyException();
 
         if (keyValueService.sweepsEntriesInStrictlyNonDecreasingFashion()) {
-            testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH);
+            assertThatCode(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
+                    .doesNotThrowAnyException();
         } else {
             assertThatThrownBy(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
                     .isExactlyInstanceOf(TransactionLockTimeoutException.class);uau(1e55888496dcb39a4a0022c62274126b14f411a0}(sha(1e55888496dcb39a4a0022c62274126b14f411a0node_idEC_kwDOAjP5fdoAKDFlNTU4ODg0OTZkY2IzOWE0YTAwMjJjNjIyNzQxMjZiMTRmNDExYTAcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-22T12:34:42Zu	committer}(jo 
Ahmed Alouanejo aalouane@palantir.comjo 2023-05-22T12:34:42Zumessagecompile in the build jobtree}(jo (4fd01be05bfbcca9b012b3821f6accf73b4d3f1aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/4fd01be05bfbcca9b012b3821f6accf73b4d3f1aujo bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1e55888496dcb39a4a0022c62274126b14f411a0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRrYWIACgkQPlMHVIT1
yhoWeAf/R5lkmic1srOOLKPlLNoUiBQDxinLjHadcHGa+ApSChtyvaySIqvQewEu
J3IhZk+n0iJBsqBThUPtoFqc+myTaM+d251bb9eEAezrhhdB5D/Q21DN+p/PXAfg
+uT4CxkRUlOArRfp4f/Xd+M2VmKBzufHhTS3DTl8XTci52VnMD9Zw/E7Y3Exoalv
2Tbl3PftgRhh2rfsb+HCyQDK/YXUZWr5RO5P77mI8/5Oq3wSm5tJcmVi4Mu73xsW
z5kiJFMnolfL783+r9xVLU/e5zHqeppR7TmSn2Gq+AU1gFhxJxl+t8UKbMpd5y2s
WLKvYdbbdLWTA/HAAx7Qi76teX5rtA==
=6QT9
-----END PGP SIGNATURE-----payloadtree 4fd01be05bfbcca9b012b3821f6accf73b4d3f1a
parent 08b8b44cc1a55f6a0c550e1e6d2e7621b98625d4
author Ahmed Alouane <aalouane@palantir.com> 1684758882 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684758882 +0100

compile in the build job
uujo ^https://api.github.com/repos/palantir/atlasdb/commits/1e55888496dcb39a4a0022c62274126b14f411a0html_urlShttps://github.com/palantir/atlasdb/commit/1e55888496dcb39a4a0022c62274126b14f411a0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1e55888496dcb39a4a0022c62274126b14f411a0/commentsjo }(loginergo14idJjo MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jo #https://api.github.com/users/ergo14jp https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujo }(jp ergo14j
p Jjo MDQ6VXNlcjMwOTAzNzM2jp 4https://avatars.githubusercontent.com/u/30903736?v=4jp h5jo #https://api.github.com/users/ergo14jp https://github.com/ergo14jp -https://api.github.com/users/ergo14/followersjp :https://api.github.com/users/ergo14/following{/other_user}jp 3https://api.github.com/users/ergo14/gists{/gist_id}jp :https://api.github.com/users/ergo14/starred{/owner}{/repo}jp 1https://api.github.com/users/ergo14/subscriptionsjp (https://api.github.com/users/ergo14/orgsjp )https://api.github.com/users/ergo14/reposjp 4https://api.github.com/users/ergo14/events{/privacy}j!p 3https://api.github.com/users/ergo14/received_eventsj#p Userj%p uparents]}(jo (08b8b44cc1a55f6a0c550e1e6d2e7621b98625d4jo ^https://api.github.com/repos/palantir/atlasdb/commits/08b8b44cc1a55f6a0c550e1e6d2e7621b98625d4jp Shttps://github.com/palantir/atlasdb/commit/08b8b44cc1a55f6a0c550e1e6d2e7621b98625d4uastats}(totalK	additionsK	deletionsK
ufiles]}(jo (182c9c2555fbeab9a17592ffd83941837c9e3765filename.circleci/config.ymlstatusmodifiedj?p Kj@p K
changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/1e55888496dcb39a4a0022c62274126b14f411a0/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/1e55888496dcb39a4a0022c62274126b14f411a0/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=1e55888496dcb39a4a0022c62274126b14f411a0patchX  @@ -17,7 +17,7 @@ jobs:
           key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
 
       - run: git tag -l | xargs git tag -d && git fetch -t # ensure all tags are fetched and up-to-date
-      - run: ./gradlew --scan --profile --parallel --stacktrace classes testClasses
+      - run: ./gradlew --scan --profile --parallel --stacktrace classes testClasses compileJava compileTestJava
 
       - save_cache:
           key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
@@ -80,14 +80,6 @@ jobs:
       - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
       - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
       - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
-      - when:
-          # Persist to workspace for the compile/compileTest container to keep deploy fast.
-          condition:
-            equal: [ 13, << parameters.suite >> ]
-          steps:
-            - persist_to_workspace:
-                root: .
-                paths: [ . ]
       - store_artifacts:
           path: /home/circleci/artifacts
 
@@ -155,7 +147,7 @@ workflows:
             alias: test-no-tl
             parameters:
               # intentionally excluding 12 (TimeLock migration ETE test) from this collection
-              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13]
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
           filters:
             tags:
               only: /.*/uau(9937c40dbff5ba0d192104809b9c28fe0d6a0bf3}(sha(9937c40dbff5ba0d192104809b9c28fe0d6a0bf3node_idEC_kwDOAjP5fdoAKDk5MzdjNDBkYmZmNWJhMGQxOTIxMDQ4MDliOWMyOGZlMGQ2YTBiZjMcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-08-04T14:27:56Zu	committer}(j\p Lucas Meirelesj^p meireles31@msn.comj`p 2023-08-04T14:27:56Zumessagemethod referencetree}(jTp (f81e4ca846f9ffa8f7decc5e891176904baeb3e5url`https://api.github.com/repos/palantir/atlasdb/git/trees/f81e4ca846f9ffa8f7decc5e891176904baeb3e5u)      jlp bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9937c40dbff5ba0d192104809b9c28fe0d6a0bf3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmTNCuwACgkQJd22kJ7J
GizcYAgAxa6VqpU8Q9GbwPNB+sf1oXjxcvCQ2xHRXdjuETpO2s9JBdruy1ujbdCh
sJvdmxH2HUUtS9NtdlH/qoGb2L7n8XsPMdXQIevERhIFRKCctOjGB2MJODc3Gz0N
MutnHrFFg+XoUwmSY1q7RNcT73Gudz4y5TrvbBIdwG4FU1X2fYdER6stzTpLwd9z
yQzgUTKiGitZDaWAVcS/iKHanRxwa8SI5McH1x48MMp+kFX2rrBep1pmYVVEViRl
iA1yy45T6ewUAA/iP7ydcIX4yWHlD3MczKTYjDkC2rjLlpeM1+nAPo/7QpM1nisN
YTgEvCC5bHfSA3kGAdoX3LBoAL4Z3A==
=LtUY
-----END PGP SIGNATURE-----payloadtree f81e4ca846f9ffa8f7decc5e891176904baeb3e5
parent 41d5f3fe26ea5fbd7c105f198dc3eecd05df1761
author Lucas Meireles <meireles31@msn.com> 1691159276 +0100
committer Lucas Meireles <meireles31@msn.com> 1691159276 +0100

method reference
uujlp ^https://api.github.com/repos/palantir/atlasdb/commits/9937c40dbff5ba0d192104809b9c28fe0d6a0bf3html_urlShttps://github.com/palantir/atlasdb/commit/9937c40dbff5ba0d192104809b9c28fe0d6a0bf3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9937c40dbff5ba0d192104809b9c28fe0d6a0bf3/commentsjZp }(loginLucasIMEidJg jVp MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jlp %https://api.github.com/users/LucasIMEjzp https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujbp }(jp LucasIMEjp Jg jVp MDQ6VXNlcjY3ODczMTE=jp 3https://avatars.githubusercontent.com/u/6787311?v=4jp h5jlp %https://api.github.com/users/LucasIMEjzp https://github.com/LucasIMEjp /https://api.github.com/users/LucasIME/followersjp <https://api.github.com/users/LucasIME/following{/other_user}jp 5https://api.github.com/users/LucasIME/gists{/gist_id}jp <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jp 3https://api.github.com/users/LucasIME/subscriptionsjp *https://api.github.com/users/LucasIME/orgsjp +https://api.github.com/users/LucasIME/reposjp 6https://api.github.com/users/LucasIME/events{/privacy}jp 5https://api.github.com/users/LucasIME/received_eventsjp Userjp uparents]}(jTp (41d5f3fe26ea5fbd7c105f198dc3eecd05df1761jlp ^https://api.github.com/repos/palantir/atlasdb/commits/41d5f3fe26ea5fbd7c105f198dc3eecd05df1761jzp Shttps://github.com/palantir/atlasdb/commit/41d5f3fe26ea5fbd7c105f198dc3eecd05df1761uastats}(totalK	additionsK	deletionsKufiles]}(jTp (25c0285d42b303d3c644584a374f8bab7df797a3filenameZatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CachingTransaction.javastatusmodifiedjp Kjp KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9937c40dbff5ba0d192104809b9c28fe0d6a0bf3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9937c40dbff5ba0d192104809b9c28fe0d6a0bf3/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.java?ref=9937c40dbff5ba0d192104809b9c28fe0d6a0bf3patchXT  @@ -203,7 +203,7 @@ private ListenableFuture<Map<Cell, byte[]>> getWithLoader(
             TableReference tableRef, Set<Cell> cells, CellLoader cellLoader) {
         CellResultLoader resultLoader = (table, cacheCells, cellsToLoad) -> {
             ListenableFuture<Map<Cell, byte[]>> future = cellLoader.load(table, cacheCells, cellsToLoad);
-            return Futures.transform(future, response -> Result.ok(response), MoreExecutors.directExecutor());
+            return Futures.transform(future, Result::ok, MoreExecutors.directExecutor());
         };
 
         return Futures.transform(uau(3ccecc86f97445798889a49f39a86e15181baa26}(sha(3ccecc86f97445798889a49f39a86e15181baa26node_idEC_kwDOAjP5fdoAKDNjY2VjYzg2Zjk3NDQ1Nzk4ODg5YTQ5ZjM5YTg2ZTE1MTgxYmFhMjYcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-07-24T20:54:26Zu	committer}(jp Tom Petraccajp tpetracca@palantir.comjp 2023-07-24T20:54:26Zumessage remove service exposure ete testtree}(jp (9f9b923ca002fec348c5d324dfef3a7bf660f66furl`https://api.github.com/repos/palantir/atlasdb/git/trees/9f9b923ca002fec348c5d324dfef3a7bf660f66fujp bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3ccecc86f97445798889a49f39a86e15181baa26
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEHTC5rqjQ6qmsb7sZRnUGJaXvqFMFAmS+5QIACgkQRnUGJaXv
qFPDjgf9GDwNe1PxTTnGczUx2yw6JJB6te9gCykkyyQ1zV+1Xc0OAd4+d+U5Uce1
LpFoMd5C1OzZPj3NHscQTPndBOz8SPO+DSy9Sxi5ACa48jzLMO4PfJ0qjIyXqZcr
Vcm1gymKF+wmX1wYWoUxCOhzhzhH2ecoH7unIqOfScT1FX7q6ms9HhgHVLDT6TxR
9k/eDTJIZYsjh7Ri5x4XX7tKsyiOdsdY646cl9ldl68B1bfNhV+7Suqsgg+4kdp5
qByLBrWo5kCEUNahFTzxVLIajQFgkuHqi7QJCCpO1UDYYUPo3A2fRB6SyHYUSwub
ngJT0bwQToZE6R6S9Ast6X4lpMAbgA==
=p7Pb
-----END PGP SIGNATURE-----payloadtree 9f9b923ca002fec348c5d324dfef3a7bf660f66f
parent e8f5694471613baf7a5c219ee2460dd5e79549fb
author Tom Petracca <tpetracca@palantir.com> 1690232066 -0400
committer Tom Petracca <tpetracca@palantir.com> 1690232066 -0400

remove service exposure ete test
uujp ^https://api.github.com/repos/palantir/atlasdb/commits/3ccecc86f97445798889a49f39a86e15181baa26html_urlShttps://github.com/palantir/atlasdb/commit/3ccecc86f97445798889a49f39a86e15181baa26comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3ccecc86f97445798889a49f39a86e15181baa26/commentsjp }(login	tpetraccaidJ& jp MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5jp &https://api.github.com/users/tpetraccajp https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminujp }(jp 	tpetraccajp J& jp MDQ6VXNlcjI1NTQzMjg=jp 3https://avatars.githubusercontent.com/u/2554328?v=4jp h5jp &https://api.github.com/users/tpetraccajp https://github.com/tpetraccajp 0https://api.github.com/users/tpetracca/followersjq =https://api.github.com/users/tpetracca/following{/other_user}jq 6https://api.github.com/users/tpetracca/gists{/gist_id}jq =https://api.github.com/users/tpetracca/starred{/owner}{/repo}jq 4https://api.github.com/users/tpetracca/subscriptionsj	q +https://api.github.com/users/tpetracca/orgsjq ,https://api.github.com/users/tpetracca/reposj
q 7https://api.github.com/users/tpetracca/events{/privacy}jq 6https://api.github.com/users/tpetracca/received_eventsjq Userjq uparents]}(jp (e8f5694471613baf7a5c219ee2460dd5e79549fbjp ^https://api.github.com/repos/palantir/atlasdb/commits/e8f5694471613baf7a5c219ee2460dd5e79549fbjp Shttps://github.com/palantir/atlasdb/commit/e8f5694471613baf7a5c219ee2460dd5e79549fbuastats}(totalK1	additionsK 	deletionsK1ufiles](}(jp (f48aee4be35889d0da53f6362d8bab1e56d41345filenameTatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/ServiceExposureEteTest.javastatusremovedj-q K j.q K-changesK-blob_urlhttps://github.com/palantir/atlasdb/blob/e8f5694471613baf7a5c219ee2460dd5e79549fb/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FServiceExposureEteTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e8f5694471613baf7a5c219ee2460dd5e79549fb/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FServiceExposureEteTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FServiceExposureEteTest.java?ref=e8f5694471613baf7a5c219ee2460dd5e79549fbpatchX  @@ -1,45 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.ete;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.palantir.timestamp.TimestampManagementService;
-import com.palantir.timestamp.TimestampService;
-import org.junit.Test;
-
-public class ServiceExposureEteTest {
-    @Test
-    public void shouldExposeATimestampServer() {
-        TimestampService timestampClient = EteSetup.createClientToAllNodes(TimestampService.class);
-
-        assertThat(timestampClient.getFreshTimestamp()).isNotNull();
-    }
-
-    @Test
-    public void shouldExposeATimestampManagementServer() {
-        TimestampService timestampClient = EteSetup.createClientToAllNodes(TimestampService.class);
-        TimestampManagementService timestampManagementClient =
-                EteSetup.createClientToAllNodes(TimestampManagementService.class);
-
-        assertThat(timestampClient.getFreshTimestamp()).isNotNull();
-
-        long newts = timestampClient.getFreshTimestamp() + 10000000;
-        timestampManagementClient.fastForwardTimestamp(newts);
-
-        assertThat(timestampClient.getFreshTimestamp()).isGreaterThan(newts);
-    }
-}u}(jp (d80aeb54a32fababe88fb40eee727a8ce68a21fdj3q ratlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/SingleClientWithEmbeddedAndCassandraTestSuite.javaj5q modifiedj-q K j.q Kj7q Kj8q https://github.com/palantir/atlasdb/blob/3ccecc86f97445798889a49f39a86e15181baa26/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndCassandraTestSuite.javaj:q https://github.com/palantir/atlasdb/raw/3ccecc86f97445798889a49f39a86e15181baa26/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndCassandraTestSuite.javaj<q https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndCassandraTestSuite.java?ref=3ccecc86f97445798889a49f39a86e15181baa26j>q X  @@ -20,7 +20,6 @@
 import com.palantir.atlasdb.ete.LockWithoutTimelockEteTest;
 import com.palantir.atlasdb.ete.MultiCassandraDoubleNodeDownEteTest;
 import com.palantir.atlasdb.ete.MultiCassandraSingleNodeDownEteTest;
-import com.palantir.atlasdb.ete.ServiceExposureEteTest;
 import com.palantir.atlasdb.ete.TimestampManagementEteTest;
 import com.palantir.atlasdb.ete.TodoEteTest;
 import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
@@ -33,7 +32,6 @@
 @RunWith(Suite.class)
 @Suite.SuiteClasses({
     TodoEteTest.class,
-    ServiceExposureEteTest.class,
     MultiCassandraSingleNodeDownEteTest.class,
     MultiCassandraDoubleNodeDownEteTest.class,
     TimestampManagementEteTest.class,u}(jp (9832e14f58d41ef4f95fd4167d655c0ca9744396j3q {atlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.javaj5q modifiedj-q K j.q Kj7q Kj8q https://github.com/palantir/atlasdb/blob/3ccecc86f97445798889a49f39a86e15181baa26/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.javaj:q https://github.com/palantir/atlasdb/raw/3ccecc86f97445798889a49f39a86e15181baa26/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.javaj<q https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FSingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.java?ref=3ccecc86f97445798889a49f39a86e15181baa26j>q XZ  @@ -17,7 +17,6 @@
 
 import com.palantir.atlasdb.containers.CassandraEnvironment;
 import com.palantir.atlasdb.ete.EteSetup;
-import com.palantir.atlasdb.ete.ServiceExposureEteTest;
 import com.palantir.atlasdb.ete.TimestampManagementEteTest;
 import com.palantir.atlasdb.ete.TodoEteTest;
 import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
@@ -30,7 +29,6 @@
 @RunWith(Suite.class)
 @Suite.SuiteClasses({
     TodoEteTest.class,
-    ServiceExposureEteTest.class,
     TimestampManagementEteTest.class,
     CoordinationEteTest.class,
     MultipleSchemaVersionsCoordinationEteTest.classueu(d45ef258fe0b363052210fe4cae72fd1f6dd245d}(sha(d45ef258fe0b363052210fe4cae72fd1f6dd245dnode_idEC_kwDOAjP5fdoAKGQ0NWVmMjU4ZmUwYjM2MzA1MjIxMGZlNGNhZTcyZmQxZjZkZDI0NWQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-14T20:19:47Zu	committer}(jZq 
Sam Kramerj\q skramer@palantir.comj^q 2023-04-14T20:19:47Zumessageclean up slopstree}(jRq (5115da61286aad73092b0376b97610a8b0058192url`https://api.github.com/repos/palantir/atlasdb/git/trees/5115da61286aad73092b0376b97610a8b0058192ujjq bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d45ef258fe0b363052210fe4cae72fd1f6dd245d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ5tWMACgkQmPPOpKR4
XS3IHggAnRLzDiHqDvFifWVN1eJyDUwrreNX1dih707e/AuIKkSm4ym6Jd7CabNX
ypI3Pn50n5D2HgYAMqzYXzAB6Q2qW8tHm7PfdGy+0lumMALMoHC5O7BrrJWVXx5f
fV+LJiBWDJZZYprKB9CU7/YwW5LgGZTJ/2vkSSJ280EkhhG5g1nd/MC4eed+wFhx
kKWBxJbpGbnGWyUlHXfddpx88X4aBExjIyfIUmCs5oRkh08Xmg/lCs4qdyaTcN5f
ntU71JTBhJeAn5VEi9M/EdsjpbM+Y5xOLuAio1GiDyXAw5S2CYrTlzrRTvb/hE72
CWNueagBPwjjziTq8WreWLceP7oDkg==
=P6OK
-----END PGP SIGNATURE-----payloadtree 5115da61286aad73092b0376b97610a8b0058192
parent 893c46f7fcd086faf56eb8a483ffa561f75ef129
author Sam Kramer <skramer@palantir.com> 1681503587 +0100
committer Sam Kramer <skramer@palantir.com> 1681503587 +0100

clean up slops
uujjq ^https://api.github.com/repos/palantir/atlasdb/commits/d45ef258fe0b363052210fe4cae72fd1f6dd245dhtml_urlShttps://github.com/palantir/atlasdb/commit/d45ef258fe0b363052210fe4cae72fd1f6dd245dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d45ef258fe0b363052210fe4cae72fd1f6dd245d/commentsjXq }(login
Sam-KrameridJ^2_ jTq MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jjq 'https://api.github.com/users/Sam-Kramerjxq https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj`q }(j}q 
Sam-Kramerjq J^2_ jTq MDQ6VXNlcjYyMzg4MTQ=jq 3https://avatars.githubusercontent.com/u/6238814?v=4jq h5jjq 'https://api.github.com/users/Sam-Kramerjxq https://github.com/Sam-Kramerjq 1https://api.github.com/users/Sam-Kramer/followersjq >https://api.github.com/users/Sam-Kramer/following{/other_user}jq 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jq >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jq 5https://api.github.com/users/Sam-Kramer/subscriptionsjq ,https://api.github.com/users/Sam-Kramer/orgsjq -https://api.github.com/users/Sam-Kramer/reposjq 8https://api.github.com/users/Sam-Kramer/events{/privacy}jq 7https://api.github.com/users/Sam-Kramer/received_eventsjq Userjq uparents]}(jRq (893c46f7fcd086faf56eb8a483ffa561f75ef129jjq ^https://api.github.com/repos/palantir/atlasdb/commits/893c46f7fcd086faf56eb8a483ffa561f75ef129jxq Shttps://github.com/palantir/atlasdb/commit/893c46f7fcd086faf56eb8a483ffa561f75ef129uastats}(totalK
	additionsK	deletionsKufiles](}(jRq (7992bcc13f8941c74b7e8d282a7871271aaa34c3filenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedjq Kjq KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/d45ef258fe0b363052210fe4cae72fd1f6dd245d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d45ef258fe0b363052210fe4cae72fd1f6dd245d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=d45ef258fe0b363052210fe4cae72fd1f6dd245dpatchX  @@ -32,6 +32,7 @@
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
+import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowValidator;
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
@@ -110,7 +111,7 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
-    private WorkflowValidator createSingleRowTwoCellsWorkflowValidator(
+    private WorkflowValidator<Workflow> createSingleRowTwoCellsWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             SingleRowTwoCellsWorkflowConfiguration workflowConfig,
             LifecycleEnvironment lifecycle) {u}(jRq (e65aed3b2e403ef440cc291f5dba0f30f33ea1ecjq qatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunner.javajq modifiedjq Kjq Kjq K
jq https://github.com/palantir/atlasdb/blob/d45ef258fe0b363052210fe4cae72fd1f6dd245d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javajq https://github.com/palantir/atlasdb/raw/d45ef258fe0b363052210fe4cae72fd1f6dd245d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javajq https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.java?ref=d45ef258fe0b363052210fe4cae72fd1f6dd245djq X!  @@ -54,15 +54,17 @@ public void run(List<WorkflowValidator<Workflow>> workflowValidators) {
         }
     }
 
-    private void checkAndReportInvariantViolations(WorkflowHistoryValidator group) {
-        group.invariants().forEach(invariantReporter -> {
+    private void checkAndReportInvariantViolations(WorkflowHistoryValidator validator) {
+        validator.invariants().forEach(invariantReporter -> {
             try {
-                invariantReporter.report(group.history());
+                invariantReporter.report(validator.history());
             } catch (RuntimeException e) {
                 log.error("Caught an exception when running and reporting an invariant.", e);
             }
         });
-        log.info("Dumping transaction log {}", SafeArg.of("transactionLog", group.history()));
+        log.info(
+                "Dumping transaction log {}",
+                SafeArg.of("transactionLog", validator.history().history()));
     }
 
     private List<ListenableFuture<WorkflowHistoryValidator>> submitWorkflowValidators(ueu(e3dfa9bb0f24106d74afce2fc4844464182b843e}(sha(e3dfa9bb0f24106d74afce2fc4844464182b843enode_idEC_kwDOAjP5fdoAKGUzZGZhOWJiMGYyNDEwNmQ3NGFmY2UyZmM0ODQ0NDY0MTgyYjg0M2Ucommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-09T12:47:50Zu	committer}(jq 	Tom Papkejq tpapke@palantir.comjq 2023-06-09T12:47:50ZumessageUse ScheduledExecutor insteadtree}(jq (1fdf20b6d399ada619679e290c55f958fda80f2eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/1fdf20b6d399ada619679e290c55f958fda80f2eujq bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e3dfa9bb0f24106d74afce2fc4844464182b843e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSDH3YACgkQmF9s0kaF
Iw1MyAf/U4hXZ56pv1cezOKaWajThZaUDPOOmcZ6lGDUOglMnh7rIVg2FMHfzgbY
aEVvgQdBXgbNcK6S1SprJo0YJ3BR2KGlSP1rXv/2+TlNGOccRoJUaM01zm4UBFfz
KRSp8L8PjXm3dPVrqacpS7dj+IDCEgwmAJ35euoa9DdE1q/CKL+Pkro3qUrk+6+7
U21KaJnr2Gr28cpmVmzf1R6oMyljTYgL1at0QYRuRRKAPXZzv6Ue4K7MPipwCYAB
VTyKCCYsjSenlnNV1+BNRL4dgwx4WX2iKyU5/0o0Dm/y6uhD0Bzkh+sexB1P4z0i
LSGld/k4lJcID91GGGmIlRnSZFjQdw==
=hf0K
-----END PGP SIGNATURE-----payloadtree 1fdf20b6d399ada619679e290c55f958fda80f2e
parent 69c94cfcbad0a24999a43b2ff3884ddad671e8a1
author Tom Papke <tpapke@palantir.com> 1686314870 +0100
committer Tom Papke <tpapke@palantir.com> 1686314870 +0100

Use ScheduledExecutor instead
uujq ^https://api.github.com/repos/palantir/atlasdb/commits/e3dfa9bb0f24106d74afce2fc4844464182b843ehtml_urlShttps://github.com/palantir/atlasdb/commit/e3dfa9bb0f24106d74afce2fc4844464182b843ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e3dfa9bb0f24106d74afce2fc4844464182b843e/commentsjq }(login	ToemmscheidJbojq MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jq &https://api.github.com/users/Toemmschejq https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujq }(jq 	Toemmschejq Jbojq MDQ6VXNlcjQzNjc1NDkwj r 4https://avatars.githubusercontent.com/u/43675490?v=4jr h5jq &https://api.github.com/users/Toemmschejq https://github.com/Toemmschejr 0https://api.github.com/users/Toemmsche/followersjr =https://api.github.com/users/Toemmsche/following{/other_user}j	r 6https://api.github.com/users/Toemmsche/gists{/gist_id}jr =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j
r 4https://api.github.com/users/Toemmsche/subscriptionsjr +https://api.github.com/users/Toemmsche/orgsjr ,https://api.github.com/users/Toemmsche/reposjr 7https://api.github.com/users/Toemmsche/events{/privacy}jr 6https://api.github.com/users/Toemmsche/received_eventsjr Userjr uparents]}(jq (69c94cfcbad0a24999a43b2ff3884ddad671e8a1jq ^https://api.github.com/repos/palantir/atlasdb/commits/69c94cfcbad0a24999a43b2ff3884ddad671e8a1jq Shttps://github.com/palantir/atlasdb/commit/69c94cfcbad0a24999a43b2ff3884ddad671e8a1uastats}(totalK\	additionsK*	deletionsK2ufiles]}(jq (af3f628be6c8045a386ce0a36f13303f8fdc99c1filenameClock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javastatusmodifiedj3r K*j4r K2changesK\blob_urlhttps://github.com/palantir/atlasdb/blob/e3dfa9bb0f24106d74afce2fc4844464182b843e/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e3dfa9bb0f24106d74afce2fc4844464182b843e/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=e3dfa9bb0f24106d74afce2fc4844464182b843epatchXD  @@ -105,6 +105,8 @@
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Future;
 import java.util.concurrent.PriorityBlockingQueue;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.ScheduledFuture;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicInteger;
@@ -195,8 +197,11 @@ public String toString() {
     /** If enabled, the background this will update the snapshot at this rate */
     private final SimpleTimeDuration threadInfoSnapshotInterval;
 
-    /** If enabled, the background runner that takes snapshots of the current lock state */
-    private final Optional<ThreadInfoSnapshotRunner> threadInfoSnapshotRunner;
+    /**
+     * The background runner that periodically takes snapshots of the current lock state.
+     * If thread info collection is disabled, nothing will actually be run.
+     */
+    private final ThreadInfoSnapshotRunner threadInfoSnapshotRunner;
 
     /**
      * A relatively consistent snapshot of which lock is currently owned by which client-thread
@@ -282,7 +287,7 @@ private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable
         // thread info collection is off by default
         this.collectThreadInfo = false;
         this.threadInfoSnapshotInterval = SimpleTimeDuration.of(5, TimeUnit.SECONDS);
-        this.threadInfoSnapshotRunner = Optional.empty();
+        this.threadInfoSnapshotRunner = new ThreadInfoSnapshotRunner();
     }
 
     private HeldLocksToken createHeldLocksToken(
@@ -1259,20 +1264,6 @@ public Map<LockDescriptor, ThreadAwareLockClient> getLastKnownThreadInfoSnapshot
         return this.lastKnownThreadInfoSnapshot;
     }
 
-    private void updateThreadInfoSnapshotIndefinitely() {
-        while (true) {
-            updateThreadInfoSnapshot();
-            // For benchmarking purposes, we want to retain the ability to run the background task at full load
-            if (threadInfoSnapshotInterval.toMillis() > 0) {
-                try {
-                    Thread.sleep(threadInfoSnapshotInterval.toMillis());
-                } catch (InterruptedException e) {
-                    break;
-                }
-            }
-        }
-    }
-
     @VisibleForTesting
     void updateThreadInfoSnapshot() {
         this.lastKnownThreadInfoSnapshot = heldLocksTokenMap.keySet().stream()
@@ -1307,12 +1298,24 @@ private static String tokenToId(HeldLocksToken from) {
         return from.getTokenId().toString(Character.MAX_RADIX);
     }
 
-    private abstract static class LockServiceRunner implements AutoCloseable {
-        protected final Ownable<ExecutorService> executor;
-        protected List<Future<?>> taskFutures;
+    private final class LockReapRunner implements AutoCloseable {
+        private final Ownable<ExecutorService> executor;
+        private final List<Future<?>> taskFutures;
 
-        protected LockServiceRunner(Ownable<ExecutorService> executor) {
+        private LockReapRunner(Ownable<ExecutorService> executor) {
             this.executor = executor;
+
+            Future<Void> tokenReaperFuture = executor.resource().submit(() -> {
+                ThreadNames.setThreadName(Thread.currentThread(), "Held Locks Token Reaper");
+                reapLocks(lockTokenReaperQueue, heldLocksTokenMap);
+                return null;
+            });
+            Future<Void> grantReaperFuture = executor.resource().submit(() -> {
+                ThreadNames.setThreadName(Thread.currentThread(), "Held Locks Grant Reaper");
+                reapLocks(lockGrantReaperQueue, heldLocksGrantMap);
+                return null;
+            });
+            this.taskFutures = ImmutableList.of(tokenReaperFuture, grantReaperFuture);
         }
 
         @Override
@@ -1328,38 +1331,27 @@ public void close() {
         }
     }
 
-    private final class LockReapRunner extends LockServiceRunner {
+    private final class ThreadInfoSnapshotRunner {
 
-        private LockReapRunner(Ownable<ExecutorService> executor) {
-            super(executor);
+        private final ScheduledExecutorService scheduledExecutor;
 
-            Future<Void> tokenReaperFuture = executor.resource().submit(() -> {
-                ThreadNames.setThreadName(Thread.currentThread(), "Held Locks Token Reaper");
-                reapLocks(lockTokenReaperQueue, heldLocksTokenMap);
-                return null;
-            });
-            Future<Void> grantReaperFuture = executor.resource().submit(() -> {
-                ThreadNames.setThreadName(Thread.currentThread(), "Held Locks Grant Reaper");
-                reapLocks(lockGrantReaperQueue, heldLocksGrantMap);
-                return null;
-            });
-            this.taskFutures = ImmutableList.of(tokenReaperFuture, grantReaperFuture);
-        }
-    }
-
-    private final class ThreadInfoSnapshotRunner extends LockServiceRunner {
+        private final Optional<ScheduledFuture<?>> scheduledFuture;
 
-        // TODO Remove this suppression once the background runner can be enabled via configuration.
-        @SuppressWarnings("UnusedMethod")
-        private ThreadInfoSnapshotRunner(Ownable<ExecutorService> executor) {
-            super(executor);
-
-            Future<Void> holdingThreadUpdaterFuture = executor.resource().submit(() -> {
-                ThreadNames.setThreadName(Thread.currentThread(), "Holding Thread Updater");
-                updateThreadInfoSnapshotIndefinitely();
-                return null;
-            });
-            this.taskFutures = ImmutableList.of(holdingThreadUpdaterFuture);
+        private ThreadInfoSnapshotRunner() {
+            this.scheduledExecutor = PTExecutors.newSingleThreadScheduledExecutor();
+            if (collectThreadInfo) {
+                ScheduledFuture<?> future = scheduledExecutor.scheduleWithFixedDelay(
+                        () -> {
+                            ThreadNames.setThreadName(Thread.currentThread(), " Thread Info Snapshotter");
+                            updateThreadInfoSnapshot();
+                        },
+                        0,
+                        threadInfoSnapshotInterval.toMillis(),
+                        TimeUnit.MILLISECONDS);
+                this.scheduledFuture = Optional.of(future);
+            } else {
+                this.scheduledFuture = Optional.empty();
+            }
         }
     }
 }uau(f4f585132bcb8b41a34b573205ff0f3d74188c48}(sha(f4f585132bcb8b41a34b573205ff0f3d74188c48node_idEC_kwDOAjP5fdoAKGY0ZjU4NTEzMmJjYjhiNDFhMzRiNTczMjA1ZmYwZjNkNzQxODhjNDgcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-24T14:09:08Zu	committer}(jPr 
Sam KramerjRr skramer@palantir.comjTr 2023-03-24T14:09:08Zumessagelog durable writes violationstree}(jHr (a476ac379be7cd9734a06966813aaa1ab2aa37d5url`https://api.github.com/repos/palantir/atlasdb/git/trees/a476ac379be7cd9734a06966813aaa1ab2aa37d5uj`r bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f4f585132bcb8b41a34b573205ff0f3d74188c48
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQdrwUACgkQmPPOpKR4
XS01AAf9GlBAikqjPeXVRyff8V/iCj9a1H1U14l5Ax8aZmu686bnAppzXOIwQ3oB
ZAlk3m863/Pwkrguk5T9wYThPGbNteT8AsOLeQlm8QqEruZhyUjRSbMmV1a+cHVC
OwZNZFqRWzJ8doeaTnYhos1Kl4mezVo6k9FysA7XtJYzB+qGyrifbksSa9oxuz22
beUb0AieMPdoRQ7xVrsT8bGqTCLdRbN75AtxF+Y57zC1UVbPDHJJkar7YYPE3V9U
Aw05whDkYW08zO+Xn1U7OEU8IkTBW9Ud/BSuXgNmzcSx2fsXKoskCarUhaA2IDAG
Kdhfm0YNm4uXagiqPSsmqke0XjvLvg==
=Zycx
-----END PGP SIGNATURE-----payloadtree a476ac379be7cd9734a06966813aaa1ab2aa37d5
parent 96c269d3191b1f411f0dc575a6e89dc08834da68
author Sam Kramer <skramer@palantir.com> 1679666948 +0000
committer Sam Kramer <skramer@palantir.com> 1679666948 +0000

log durable writes violations
uuj`r ^https://api.github.com/repos/palantir/atlasdb/commits/f4f585132bcb8b41a34b573205ff0f3d74188c48html_urlShttps://github.com/palantir/atlasdb/commit/f4f585132bcb8b41a34b573205ff0f3d74188c48comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f4f585132bcb8b41a34b573205ff0f3d74188c48/commentsjNr }(login
Sam-KrameridJ^2_ jJr MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j`r 'https://api.github.com/users/Sam-Kramerjnr https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujVr }(jsr 
Sam-Kramerjur J^2_ jJr MDQ6VXNlcjYyMzg4MTQ=jwr 3https://avatars.githubusercontent.com/u/6238814?v=4jyr h5j`r 'https://api.github.com/users/Sam-Kramerjnr https://github.com/Sam-Kramerj|r 1https://api.github.com/users/Sam-Kramer/followersj~r >https://api.github.com/users/Sam-Kramer/following{/other_user}jr 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jr >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jr 5https://api.github.com/users/Sam-Kramer/subscriptionsjr ,https://api.github.com/users/Sam-Kramer/orgsjr -https://api.github.com/users/Sam-Kramer/reposjr 8https://api.github.com/users/Sam-Kramer/events{/privacy}jr 7https://api.github.com/users/Sam-Kramer/received_eventsjr Userjr uparents]}(jHr (96c269d3191b1f411f0dc575a6e89dc08834da68j`r ^https://api.github.com/repos/palantir/atlasdb/commits/96c269d3191b1f411f0dc575a6e89dc08834da68jnr Shttps://github.com/palantir/atlasdb/commit/96c269d3191b1f411f0dc575a6e89dc08834da68uastats}(totalK	additionsK	deletionsKufiles]}(jHr (90b0893e2e1b4c1c77c064fb363b2dff1d8c9bd4filenamewatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporter.javastatusmodifiedjr Kjr KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/f4f585132bcb8b41a34b573205ff0f3d74188c48/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f4f585132bcb8b41a34b573205ff0f3d74188c48/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.java?ref=f4f585132bcb8b41a34b573205ff0f3d74188c48patchX  @@ -18,12 +18,17 @@
 
 import com.palantir.atlasdb.workload.DurableWritesMetrics;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.Map;
 import java.util.function.Consumer;
 
 public final class DurableWritesMetricInvariantReporter
         implements InvariantReporter<Map<TableAndWorkloadCell, MismatchedValue>> {
 
+    private static final SafeLogger log = SafeLoggerFactory.get(DurableWritesMetricInvariantReporter.class);
+
     private final String workflow;
     private final DurableWritesMetrics durableWritesMetrics;
 
@@ -39,12 +44,14 @@ public Invariant<Map<TableAndWorkloadCell, MismatchedValue>> invariant() {
 
     @Override
     public Consumer<Map<TableAndWorkloadCell, MismatchedValue>> consumer() {
-        return mismatchingValues ->
-                mismatchingValues.forEach((tableAndWorkloadCell, _mismatchedValue) -> durableWritesMetrics
-                        .numberOfViolations()
-                        .workflow(workflow)
-                        .table(tableAndWorkloadCell.tableName())
-                        .build()
-                        .inc());
+        return mismatchingValues -> {
+            mismatchingValues.forEach((tableAndWorkloadCell, _mismatchedValue) -> durableWritesMetrics
+                    .numberOfViolations()
+                    .workflow(workflow)
+                    .table(tableAndWorkloadCell.tableName())
+                    .build()
+                    .inc());
+            log.warn("Durable writes invariant violations found!", SafeArg.of("mismatchingValues", mismatchingValues));
+        };
     }
 }uau(00b390f9efdda454fa7b833ced6bf03fe8a122b9}(sha(00b390f9efdda454fa7b833ced6bf03fe8a122b9node_idEC_kwDOAjP5fdoAKDAwYjM5MGY5ZWZkZGE0NTRmYTdiODMzY2VkNmJmMDNmZThhMTIyYjkcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-07-12T12:39:27Zu	committer}(jr 
Sam Kramerjr skramer@palantir.comjr 2023-07-12T12:39:27Zumessage3update cassandra image to use latest for antithesistree}(jr (28ed198960aafe1ad0af4f53862bca53015afb84url`https://api.github.com/repos/palantir/atlasdb/git/trees/28ed198960aafe1ad0af4f53862bca53015afb84ujr bhttps://api.github.com/repos/palantir/atlasdb/git/commits/00b390f9efdda454fa7b833ced6bf03fe8a122b9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSunv8ACgkQmPPOpKR4
XS0Y8gf/Wsoe+bnzwzWt2NJypoKMOeHo4kYNKkUUdS0ScVNU12RWgukM7FpM2tQu
RIsU+PpUtOYzii+HwDfrYmxMFk8gF1rP8TGmClUM1W4P/31fCyM0apP/Yt6znlNM
aoFno4jnISUqLJNf2bxbRrK8a/D1WTTOs7H0lD3z8aQb8pQYFJRSjn8sGeWDTy4d
M+y2F2KDMOBnenm/HMqA/oj+ugN7fY36e2VDhXRTKPJzP38g7V1ttdNe/H0U2j/8
a8ouMDBTdrYw7MEsax2ZRcs7w8msz9gtIWCe4vUU3zAevQdjDEQIQPkltMWgV4zY
Eima8ejHNfr6GaZQLv7O1NqU+MWjBQ==
=4LMu
-----END PGP SIGNATURE-----payloadX
  tree 28ed198960aafe1ad0af4f53862bca53015afb84
parent 8074a9d364d1680530a98df0d6ee5be147a647dc
author Sam Kramer <skramer@palantir.com> 1689165567 +0100
committer Sam Kramer <skramer@palantir.com> 1689165567 +0100

update cassandra image to use latest for antithesis
uujr ^https://api.github.com/repos/palantir/atlasdb/commits/00b390f9efdda454fa7b833ced6bf03fe8a122b9html_urlShttps://github.com/palantir/atlasdb/commit/00b390f9efdda454fa7b833ced6bf03fe8a122b9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/00b390f9efdda454fa7b833ced6bf03fe8a122b9/commentsjr }(login
Sam-KrameridJ^2_ jr MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jr 'https://api.github.com/users/Sam-Kramerjr https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujr }(jr 
Sam-Kramerjr J^2_ jr MDQ6VXNlcjYyMzg4MTQ=jr 3https://avatars.githubusercontent.com/u/6238814?v=4jr h5jr 'https://api.github.com/users/Sam-Kramerjr https://github.com/Sam-Kramerjr 1https://api.github.com/users/Sam-Kramer/followersjr >https://api.github.com/users/Sam-Kramer/following{/other_user}jr 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jr >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jr 5https://api.github.com/users/Sam-Kramer/subscriptionsjr ,https://api.github.com/users/Sam-Kramer/orgsjr -https://api.github.com/users/Sam-Kramer/reposjs 8https://api.github.com/users/Sam-Kramer/events{/privacy}js 7https://api.github.com/users/Sam-Kramer/received_eventsjs Userjs uparents]}(jr (8074a9d364d1680530a98df0d6ee5be147a647dcjr ^https://api.github.com/repos/palantir/atlasdb/commits/8074a9d364d1680530a98df0d6ee5be147a647dcjr Shttps://github.com/palantir/atlasdb/commit/8074a9d364d1680530a98df0d6ee5be147a647dcuastats}(totalK	additionsK	deletionsKufiles](}(jr (d76af03da7c4bad04f1910eb26d354bd1ad9a05dfilename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedj!s Kj"s KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/00b390f9efdda454fa7b833ced6bf03fe8a122b9/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/00b390f9efdda454fa7b833ced6bf03fe8a122b9/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=00b390f9efdda454fa7b833ced6bf03fe8a122b9patchX  @@ -2,7 +2,7 @@ version: '2'
 
 services:
   cassandra1:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
+    image: palantirtechnologies/cassandra:2.2.18-1.116.0
     ports:
       - "9160"
       - "9042"
@@ -20,7 +20,7 @@ services:
         ipv4_address: 10.20.20.2
 
   cassandra2:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
+    image: palantirtechnologies/cassandra:2.2.18-1.116.0
     ports:
       - "9160"
       - "9042"
@@ -38,7 +38,7 @@ services:
         ipv4_address: 10.20.20.3
 
   cassandra3:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
+    image: palantirtechnologies/cassandra:2.2.18-1.116.0
     ports:
       - "9160"
       - "9042"u}(jr (5915e901d5335a9783ac11cb0206c0e610ac23bcj's *scripts/circle-ci/publish-to-antithesis.shj)s modifiedj!s Kj"s Kj+s Kj,s https://github.com/palantir/atlasdb/blob/00b390f9efdda454fa7b833ced6bf03fe8a122b9/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj.s https://github.com/palantir/atlasdb/raw/00b390f9efdda454fa7b833ced6bf03fe8a122b9/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj0s https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=00b390f9efdda454fa7b833ced6bf03fe8a122b9j2s X*  @@ -26,9 +26,9 @@ printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://$
 
 VERSION=$(./gradlew -q printVersion)
 
-docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
-docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc8 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc8
-docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc8
+docker pull palantirtechnologies/cassandra:2.2.18-1.116.0
+docker tag palantirtechnologies/cassandra:2.2.18-1.116.0 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.116.0
+docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.116.0
 
 docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}
 docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}ueu(32fac3051ab9ff3073170c6dc27087f089638e02}(sha(32fac3051ab9ff3073170c6dc27087f089638e02node_idEC_kwDOAjP5fdoAKDMyZmFjMzA1MWFiOWZmMzA3MzE3MGM2ZGMyNzA4N2YwODk2MzhlMDIcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-03-31T22:19:54Zu	committer}(jFs 
svc-changelogjHs svc-changelog@palantir.comjJs 2023-03-31T22:19:54ZumessageAdd generated changelog entriestree}(j>s (59b33bc418d4d3fa9557e75a1a38ede317cf5dbaurl`https://api.github.com/repos/palantir/atlasdb/git/trees/59b33bc418d4d3fa9557e75a1a38ede317cf5dbaujVs bhttps://api.github.com/repos/palantir/atlasdb/git/commits/32fac3051ab9ff3073170c6dc27087f089638e02
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQnXIoJEHYaJX37fAFQAAC1WAD/XOSh3IvFgZ9mqunNR9kzVFup
fQljI2Au1iSRXvf9q44A/R5fUETqxmCn5u/wZz//OMxsV+csO+142MQPHrlMSbCp
=GldR
-----END PGP SIGNATURE-----payloadX  tree 59b33bc418d4d3fa9557e75a1a38ede317cf5dba
parent 6115296abf1135b25eb7e90cd17d8c65bfee1cbc
author svc-changelog <svc-changelog@palantir.com> 1680301194 +0000
committer svc-changelog <svc-changelog@palantir.com> 1680301194 +0000

Add generated changelog entriesuujVs ^https://api.github.com/repos/palantir/atlasdb/commits/32fac3051ab9ff3073170c6dc27087f089638e02html_urlShttps://github.com/palantir/atlasdb/commit/32fac3051ab9ff3073170c6dc27087f089638e02comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/32fac3051ab9ff3073170c6dc27087f089638e02/commentsjDs }(login
svc-changelogidJ#j@s MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jVs *https://api.github.com/users/svc-changelogjds  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujLs }(jis 
svc-changelogjks J#j@s MDQ6VXNlcjg0MDc3NjAzjms 4https://avatars.githubusercontent.com/u/84077603?v=4jos h5jVs *https://api.github.com/users/svc-changelogjds  https://github.com/svc-changelogjrs 4https://api.github.com/users/svc-changelog/followersjts Ahttps://api.github.com/users/svc-changelog/following{/other_user}jvs :https://api.github.com/users/svc-changelog/gists{/gist_id}jxs Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jzs 8https://api.github.com/users/svc-changelog/subscriptionsj|s /https://api.github.com/users/svc-changelog/orgsj~s 0https://api.github.com/users/svc-changelog/reposjs ;https://api.github.com/users/svc-changelog/events{/privacy}js :https://api.github.com/users/svc-changelog/received_eventsjs Userjs uparents]}(j>s (6115296abf1135b25eb7e90cd17d8c65bfee1cbcjVs ^https://api.github.com/repos/palantir/atlasdb/commits/6115296abf1135b25eb7e90cd17d8c65bfee1cbcjds Shttps://github.com/palantir/atlasdb/commit/6115296abf1135b25eb7e90cd17d8c65bfee1cbcuastats}(totalK	additionsK	deletionsK ufiles]}(j>s (5f61b2bef5ebfcacc253aaa5cda9840887460417filename$changelog/@unreleased/pr-6499.v2.ymlstatusaddedjs Kjs K changesKblob_url|https://github.com/palantir/atlasdb/blob/32fac3051ab9ff3073170c6dc27087f089638e02/changelog%2F%40unreleased%2Fpr-6499.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/32fac3051ab9ff3073170c6dc27087f089638e02/changelog%2F%40unreleased%2Fpr-6499.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6499.v2.yml?ref=32fac3051ab9ff3073170c6dc27087f089638e02patch@@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Disable AtlasDB DB connection testing by default in favor of relying
+    on Hikari's connection testing.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6499uau(355775c5f173c0844ebe85791f507507062f10f8}(sha(355775c5f173c0844ebe85791f507507062f10f8node_idEC_kwDOAjP5fdoAKDM1NTc3NWM1ZjE3M2MwODQ0ZWJlODU3OTFmNTA3NTA3MDYyZjEwZjgcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-04-27T15:35:51Zu	committer}(js GitHubjs noreply@github.comjs 2023-04-27T15:35:51Zumessage[CBT] Retry flaky tests (#6541)tree}(js (1b45b7e4d0052b2dcb52885e905b1aa538a1fa09url`https://api.github.com/repos/palantir/atlasdb/git/trees/1b45b7e4d0052b2dcb52885e905b1aa538a1fa09ujs bhttps://api.github.com/repos/palantir/atlasdb/git/commits/355775c5f173c0844ebe85791f507507062f10f8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkSpZXCRBK7hj4Ov3rIwAAAsoIAIyRjw6ZzA133P+jNR1s70It
eExYLPSwgrTzEc62wLQi4OMnd/b5pucKjf9sJi9QUjOO+9sy34yaZ+cUsL31/+sK
kim4Jv9PMLYWlo869rTjBOwTV+Dn+YGdHdFu5YbL579rDy4xamwGdyQexk8oEcCn
uYdklMLz2Qr3QYUBrL1lGA67eF3vyzhz9AQEaNU89rwtluKIQxRr+x1dOgKarZIh
Ks2bsRvnLjmb1HtnEe1/EWJLO9K3lc1AFOXtJCCSn8vkrvxIS7RQaYzF39u9IvMC
XkDme/8bz97RewydTxgTjLt649VV8t5D7lYsCJADZhZmzOBEJpDRcZ5OWlL5R1s=
=oWZ+
-----END PGP SIGNATURE-----
payloadX  tree 1b45b7e4d0052b2dcb52885e905b1aa538a1fa09
parent 4f4cba20742fc5b7421971161ade8a826e8fb6ba
author aalouane <30903736+ergo14@users.noreply.github.com> 1682609751 +0100
committer GitHub <noreply@github.com> 1682609751 +0000

[CBT] Retry flaky tests (#6541)

 uujs ^https://api.github.com/repos/palantir/atlasdb/commits/355775c5f173c0844ebe85791f507507062f10f8html_urlShttps://github.com/palantir/atlasdb/commit/355775c5f173c0844ebe85791f507507062f10f8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/355775c5f173c0844ebe85791f507507062f10f8/commentsjs }(loginergo14idJjs MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5js #https://api.github.com/users/ergo14js https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujs }(js web-flowjs J/js MDQ6VXNlcjE5ODY0NDQ3js 4https://avatars.githubusercontent.com/u/19864447?v=4js h5js %https://api.github.com/users/web-flowjs https://github.com/web-flowjs /https://api.github.com/users/web-flow/followersjs <https://api.github.com/users/web-flow/following{/other_user}js 5https://api.github.com/users/web-flow/gists{/gist_id}js <https://api.github.com/users/web-flow/starred{/owner}{/repo}js 3https://api.github.com/users/web-flow/subscriptionsjs *https://api.github.com/users/web-flow/orgsjs +https://api.github.com/users/web-flow/reposjs 6https://api.github.com/users/web-flow/events{/privacy}js 5https://api.github.com/users/web-flow/received_eventsjs Userjs uparents]}(js (4f4cba20742fc5b7421971161ade8a826e8fb6bajs ^https://api.github.com/repos/palantir/atlasdb/commits/4f4cba20742fc5b7421971161ade8a826e8fb6bajs Shttps://github.com/palantir/atlasdb/commit/4f4cba20742fc5b7421971161ade8a826e8fb6bauastats}(totalK	additionsK	deletionsKufiles](}(js (1b448a0fde07cfbc9657b00600f040335b3c7c84filenameatlasdb-api/build.gradlestatusmodifiedjt Kjt KchangesKblob_urllhttps://github.com/palantir/atlasdb/blob/355775c5f173c0844ebe85791f507507062f10f8/atlasdb-api%2Fbuild.gradleraw_urlkhttps://github.com/palantir/atlasdb/raw/355775c5f173c0844ebe85791f507507062f10f8/atlasdb-api%2Fbuild.gradlecontents_url~https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fbuild.gradle?ref=355775c5f173c0844ebe85791f507507062f10f8patchX   @@ -39,8 +39,9 @@ dependencies {
   testImplementation 'com.palantir.refreshable:refreshable'
   testImplementation 'io.dropwizard.metrics:metrics-core'
   testImplementation project(':lock-api-objects')
+    testImplementation project(path: ':flake-rule')
 
-  annotationProcessor 'org.immutables:value'
+    annotationProcessor 'org.immutables:value'
   compileOnly 'org.immutables:value::annotations'
   testCompileOnly 'org.immutables:value::annotations'
   annotationProcessor project(":atlasdb-processors")u}(js (c2c86be9a9da93bcfb3eb43dd67f55ea0b9f9d51jt Ratlasdb-api/src/test/java/com/palantir/atlasdb/keyvalue/api/CellReferenceTest.javajt modifiedjt Kjt K j!t Kj"t https://github.com/palantir/atlasdb/blob/355775c5f173c0844ebe85791f507507062f10f8/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellReferenceTest.javaj$t https://github.com/palantir/atlasdb/raw/355775c5f173c0844ebe85791f507507062f10f8/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellReferenceTest.javaj&t https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellReferenceTest.java?ref=355775c5f173c0844ebe85791f507507062f10f8j(t X~  @@ -21,19 +21,25 @@
 
 import com.google.common.math.IntMath;
 import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.flake.FlakeRetryingRule;
+import com.palantir.flake.ShouldRetry;
 import java.util.List;
 import java.util.Map;
 import java.util.concurrent.ThreadLocalRandom;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 import org.assertj.core.data.Percentage;
+import org.junit.Rule;
 import org.junit.Test;
 
 public class CellReferenceTest {
     private static final TableReference TABLE = createFromFullyQualifiedName("fixed.table");
     private static final byte[] ROW = PtBytes.toBytes("row");
     private static final byte[] COL = PtBytes.toBytes("col");
 
+    @Rule
+    public final FlakeRetryingRule retryingRule = new FlakeRetryingRule();
+
     @Test
     public void dynamicSequentialColumns() {
         int totalCount = 20_000;
@@ -44,6 +50,7 @@ public void dynamicSequentialColumns() {
         assertDistributionUniform(hashes, totalCount);
     }
 
+    @ShouldRetry
     @Test
     public void dynamicRandomColumns() {
         ThreadLocalRandom random = ThreadLocalRandom.current();u}(js (5504ea3d7692e9bd5feb8a902db77c14b223e48fjt atlasdb-cli/build.gradlejt modifiedjt Kjt K j!t Kj"t lhttps://github.com/palantir/atlasdb/blob/355775c5f173c0844ebe85791f507507062f10f8/atlasdb-cli%2Fbuild.gradlej$t khttps://github.com/palantir/atlasdb/raw/355775c5f173c0844ebe85791f507507062f10f8/atlasdb-cli%2Fbuild.gradlej&t ~https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cli%2Fbuild.gradle?ref=355775c5f173c0844ebe85791f507507062f10f8j(t X  @@ -8,6 +8,7 @@ dependencies {
     api project(':atlasdb-client')
     api project(':atlasdb-config')
     api project(':timestamp-api')
+    testImplementation project(path: ':flake-rule')
 
     compileOnly 'com.google.dagger:dagger'
     implementation 'io.airlift:airline'u}(js (697bebce05ea5400b3ed453d3cb76e4e2ffc631ejt Tatlasdb-cli/src/test/java/com/palantir/atlasdb/cli/command/TestTimestampCommand.javajt modifiedjt Kjt K j!t Kj"t https://github.com/palantir/atlasdb/blob/355775c5f173c0844ebe85791f507507062f10f8/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.javaj$t https://github.com/palantir/atlasdb/raw/355775c5f173c0844ebe85791f507507062f10f8/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.javaj&t https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.java?ref=355775c5f173c0844ebe85791f507507062f10f8j(t X  @@ -37,6 +37,8 @@
 import com.palantir.atlasdb.services.test.DaggerTestAtlasDbServices;
 import com.palantir.atlasdb.services.test.TestAtlasDbServices;
 import com.palantir.common.time.Clock;
+import com.palantir.flake.FlakeRetryingRule;
+import com.palantir.flake.ShouldRetry;
 import com.palantir.lock.LockClient;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;
@@ -60,6 +62,7 @@
 import org.junit.After;
 import org.junit.Before;
 import org.junit.BeforeClass;
+import org.junit.Rule;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
@@ -71,6 +74,9 @@ public class TestTimestampCommand {
     private static AtlasDbServicesFactory moduleFactory;
     private static List<String> cliArgs;
 
+    @Rule
+    public FlakeRetryingRule flakeRetryingRule = new FlakeRetryingRule();
+
     @BeforeClass
     public static void oneTimeSetup() throws Exception {
         lock = StringLockDescriptor.of("lock");
@@ -181,6 +187,7 @@ public void testWithFile() throws Exception {
         runAndVerifyCliForFile(inputFileString);
     }
 
+    @ShouldRetry
     @Test
     public void testWithFileWithDir() throws Exception {
         String inputFileString = "existing-dir/test.timestamp";u}(js (7704c4f40f9407a6ec34cfd4976c31f5757d7911jt $changelog/@unreleased/pr-6541.v2.ymljt addedjt Kjt K j!t Kj"t |https://github.com/palantir/atlasdb/blob/355775c5f173c0844ebe85791f507507062f10f8/changelog%2F%40unreleased%2Fpr-6541.v2.ymlj$t {https://github.com/palantir/atlasdb/raw/355775c5f173c0844ebe85791f507507062f10f8/changelog%2F%40unreleased%2Fpr-6541.v2.ymlj&t https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6541.v2.yml?ref=355775c5f173c0844ebe85791f507507062f10f8j(t @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[CBT] Retry flaky tests'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6541u}(js (5c814c79f7d5453cc794bf2ee8ac2735986be5acjt ctimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchValueIntegrationTest.javajt modifiedjt Kjt Kj!t Kj"t https://github.com/palantir/atlasdb/blob/355775c5f173c0844ebe85791f507507062f10f8/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.javaj$t https://github.com/palantir/atlasdb/raw/355775c5f173c0844ebe85791f507507062f10f8/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.javaj&t https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.java?ref=355775c5f173c0844ebe85791f507507062f10f8j(t X  @@ -75,7 +75,8 @@
 import org.junit.rules.RuleChain;
 import org.junit.rules.TestRule;
 
-@ShouldRetry // Occasionally there are timeouts when talking to Timelock, which cause a bunch of tests to flake
+// Occasionally there are timeouts when talking to Timelock, which cause a bunch of tests to flake
+@ShouldRetry(numAttempts = 15)
 public final class LockWatchValueIntegrationTest {
     private static final byte[] DATA_1 = "foo".getBytes(StandardCharsets.UTF_8);
     private static final byte[] DATA_2 = "Caecilius est in horto".getBytes(StandardCharsets.UTF_8);
@@ -545,7 +546,7 @@ public void lateAbortingTransactionDoesNotFlushValuesToCentralCache() {
     }
 
     @Test
-    @ShouldRetry // The test fails when trying to cache a value that is currently locked.
+    // The test fails when trying to cache a value that is currently locked.
     // The open question is whether this _should_ fail when there is a locked value being cached on top of, or if
     // there is a better way to handle this.
     public void valueStressTest() {ueu(2857ac281988f23e4cb979112fbb2bfb3ac34cde}(sha(2857ac281988f23e4cb979112fbb2bfb3ac34cdenode_idEC_kwDOAjP5fdoAKDI4NTdhYzI4MTk4OGYyM2U0Y2I5NzkxMTJmYmIyYmZiM2FjMzRjZGUcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-05-03T15:21:35Zu	committer}(j\t GitHubj^t noreply@github.comj`t 2023-05-03T15:21:35ZumessageHandle KAE (or other exceptions of similar type) in the future when witnessing transactions (#6533)

Handles transactions that may or may have not been witnessed due to errors (such as KeyAlreadyExistsException) in the workload server.tree}(jTt (fae171f1a7579b8c0e3dae42ae4cc65316a46316url`https://api.github.com/repos/palantir/atlasdb/git/trees/fae171f1a7579b8c0e3dae42ae4cc65316a46316ujlt bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2857ac281988f23e4cb979112fbb2bfb3ac34cde
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkUnv/CRBK7hj4Ov3rIwAAQPIIAE2rTwEyVmfVIlbFVks+j3yY
5Ko6NwJyEdjhj/H6EXYbUcG1fkQ5bL3u8pueUrUPOToc3pndh9R4G78YpAAIXOQA
B0C5T+SeYtEYxu7WL09+D6O9NdsVa+fuQgPpEBl3Yh5wg6rXcGJZSlO1BbIvw10k
8jhvXAh7E15xEkF+28Pno2G/TRDv8SUupEpgwA7x6VNRqAyCaVekz1GV1465ucpJ
4ZhsDrbKOTXEgNX8mV/3Tt0xUnXirytRVwSVM7YLtNWnj5plkr++h6vL4+DDcmGZ
X2uYlZTN0YwAppAI/uwNdxHPqpjpr3GVb64dSyBVeC7OFCwlJvnxA/AggW/A2gI=
=A/Do
-----END PGP SIGNATURE-----
payloadX  tree fae171f1a7579b8c0e3dae42ae4cc65316a46316
parent f2f0426e8a070534b22383199b16d1f7bf845629
author Sam-Kramer <sam.c.kramer@gmail.com> 1683127295 +0100
committer GitHub <noreply@github.com> 1683127295 +0000

Handle KAE (or other exceptions of similar type) in the future when witnessing transactions (#6533)

Handles transactions that may or may have not been witnessed due to errors (such as KeyAlreadyExistsException) in the workload server. 
uujlt ^https://api.github.com/repos/palantir/atlasdb/commits/2857ac281988f23e4cb979112fbb2bfb3ac34cdehtml_urlShttps://github.com/palantir/atlasdb/commit/2857ac281988f23e4cb979112fbb2bfb3ac34cdecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2857ac281988f23e4cb979112fbb2bfb3ac34cde/commentsjZt }(login
Sam-KrameridJ^2_ jVt MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jlt 'https://api.github.com/users/Sam-Kramerjzt https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}      starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujbt }(jt web-flowjt J/jVt MDQ6VXNlcjE5ODY0NDQ3jt 4https://avatars.githubusercontent.com/u/19864447?v=4jt h5jlt %https://api.github.com/users/web-flowjzt https://github.com/web-flowjt /https://api.github.com/users/web-flow/followersjt <https://api.github.com/users/web-flow/following{/other_user}jt 5https://api.github.com/users/web-flow/gists{/gist_id}jt <https://api.github.com/users/web-flow/starred{/owner}{/repo}jt 3https://api.github.com/users/web-flow/subscriptionsjt *https://api.github.com/users/web-flow/orgsjt +https://api.github.com/users/web-flow/reposjt 6https://api.github.com/users/web-flow/events{/privacy}jt 5https://api.github.com/users/web-flow/received_eventsjt Userjt uparents]}(jTt (f2f0426e8a070534b22383199b16d1f7bf845629jlt ^https://api.github.com/repos/palantir/atlasdb/commits/f2f0426e8a070534b22383199b16d1f7bf845629jzt Shttps://github.com/palantir/atlasdb/commit/f2f0426e8a070534b22383199b16d1f7bf845629uastats}(totalM	additionsM	deletionsKEufiles](}(jTt (b7485353a77f6bf0cd6c937bff58416577e13b1dfilename(atlasdb-workload-server-api/build.gradlestatusmodifiedjt Kjt K changesKblob_url|https://github.com/palantir/atlasdb/blob/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server-api%2Fbuild.gradleraw_url{https://github.com/palantir/atlasdb/raw/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server-api%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fbuild.gradle?ref=2857ac281988f23e4cb979112fbb2bfb3ac34cdepatch@@ -13,4 +13,5 @@ dependencies {
     annotationProcessor 'org.immutables:value'
 
     testImplementation 'com.palantir.safe-logging:preconditions-assertj'
+    testImplementation 'org.mockito:mockito-core'
 }
\ No newline at end of fileu}(jTt (72396cbd183a5589ac7b3cf6593e07b9c5de2fd0jt katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ReadableTransactionStore.javajt modifiedjt Kjt K jt Kjt https://github.com/palantir/atlasdb/blob/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javajt https://github.com/palantir/atlasdb/raw/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.java?ref=2857ac281988f23e4cb979112fbb2bfb3ac34cdejt XY  @@ -28,4 +28,9 @@ public interface ReadableTransactionStore {
      * @return The value of the cell for a given table.
      */
     Optional<Integer> get(String table, WorkloadCell cell);
+
+    /**
+     * Checks whether the transaction with the provided startTimestamp has committed.
+     */
+    boolean isCommitted(long startTimestamp);
 }u}(jTt (574a86c53458c2bbb5f43c19c269eb2ee52679c7jt |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/FullyWitnessedTransaction.javajt addedjt K"jt K jt K"jt https://github.com/palantir/atlasdb/blob/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javajt https://github.com/palantir/atlasdb/raw/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.java?ref=2857ac281988f23e4cb979112fbb2bfb3ac34cdejt X  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we know for certain we've witnessed.
+ */
+@Value.Immutable
+public interface FullyWitnessedTransaction extends WitnessedTransaction {
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableFullyWitnessedTransaction.Builder builder() {
+        return ImmutableFullyWitnessedTransaction.builder();
+    }
+}u}(jTt (5a66280426c78d83ed7001fc4ee1aebb894f7578jt |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransaction.javajt addedjt K4jt K jt K4jt https://github.com/palantir/atlasdb/blob/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javajt https://github.com/palantir/atlasdb/raw/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.java?ref=2857ac281988f23e4cb979112fbb2bfb3ac34cdejt X  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.logsafe.Preconditions;
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we witnessed, but are in a state which we are
+ * unsure if they have committed or not due to failures.
+ */
+@Value.Immutable
+public interface MaybeWitnessedTransaction extends WitnessedTransaction {
+    @Value.Check
+    default void check() {
+        Preconditions.checkArgument(
+                commitTimestamp().isPresent(),
+                "Given how the transaction protocol works, a transaction for which we haven't retrieved the commit "
+                        + "timestamp has not written anything of significance to the database");
+    }
+
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableMaybeWitnessedTransaction.Builder builder() {
+        return ImmutableMaybeWitnessedTransaction.builder();
+    }
+
+    default FullyWitnessedTransaction toFullyWitnessed() {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(startTimestamp())
+                .commitTimestamp(commitTimestamp())
+                .actions(actions())
+                .build();
+    }
+}u}(jTt (525e82582d3affac4608bebfe366141f3088a716jt watlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransaction.javajt modifiedjt Kjt Kjt Kjt https://github.com/palantir/atlasdb/blob/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javajt https://github.com/palantir/atlasdb/raw/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.java?ref=2857ac281988f23e4cb979112fbb2bfb3ac34cdejt X
  @@ -18,9 +18,7 @@
 
 import java.util.List;
 import java.util.Optional;
-import org.immutables.value.Value;
 
-@Value.Immutable
 public interface WitnessedTransaction {
     /** Start timestamp of the transaction. */
     long startTimestamp();
@@ -30,4 +28,6 @@ public interface WitnessedTransaction {
 
     /** Provides an in-order list of actions that were performed during the transaction's execution. */
     List<WitnessedTransactionAction> actions();
+
+    <T> T accept(WitnessedTransactionVisitor<T> visitor);
 }u}(jTt (33682bf649e7b87408367a7f23d4995c94c96d98jt ~atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionVisitor.javajt addedjt Kjt K jt Kjt https://github.com/palantir/atlasdb/blob/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javajt https://github.com/palantir/atlasdb/raw/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.java?ref=2857ac281988f23e4cb979112fbb2bfb3ac34cdejt X  @@ -0,0 +1,23 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+public interface WitnessedTransactionVisitor<T> {
+    T visit(FullyWitnessedTransaction witnessedTransaction);
+
+    T visit(MaybeWitnessedTransaction maybeWitnessedTransaction);
+}u}(jTt (ffbc895344923f90f2a9fbedaca2f32929339b6cjt eatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowHistory.javajt modifiedjt Kjt K jt Kjt https://github.com/palantir/atlasdb/blob/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javajt https://github.com/palantir/atlasdb/raw/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.java?ref=2857ac281988f23e4cb979112fbb2bfb3ac34cdejt X  @@ -26,5 +26,10 @@ public interface WorkflowHistory {
     // We may want to query the KVS during verification.
     ReadableTransactionStore transactionStore();
 
+    /**
+     * TODO: This should only be a list of
+     * {@link com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction} rather than the general
+     * purpose type.
+     */
     List<WitnessedTransaction> history();
 }u}(jTt (98c826c9208fca80e3a6f1f1efcf8240c030d9ffjt atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javajt addedjt KDjt K jt KDjt https://github.com/palantir/atlasdb/blob/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javajt https://github.com/palantir/atlasdb/raw/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=2857ac281988f23e4cb979112fbb2bfb3ac34cdejt X\  @@ -0,0 +1,68 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+import static org.mockito.Mockito.mock;
+
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import org.junit.Test;
+
+public class MaybeWitnessedTransactionTest {
+
+    private static final Long START_TIMESTAMP = 100L;
+    private static final Long COMMIT_TIMESTAMP = 200L;
+
+    @Test
+    public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
+        assertThatLoggableExceptionThrownBy(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining(
+                        "Given how the transaction protocol works, a transaction for which we haven't retrieved the"
+                                + " commit timestamp");
+    }
+
+    @Test
+    public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
+        assertThatCode(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .commitTimestamp(COMMIT_TIMESTAMP)
+                        .build())
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void toFullyWitnessedCopiesArgumentsCorrectly() {
+        WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
+        WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
+        List<WitnessedTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
+        FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
+                .startTimestamp(START_TIMESTAMP)
+                .commitTimestamp(COMMIT_TIMESTAMP)
+                .actions(actions)
+                .build()
+                .toFullyWitnessed();
+        assertThat(fullyWitnessedTransaction.startTimestamp()).isEqualTo(START_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.commitTimestamp()).contains(COMMIT_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.actions()).containsExactlyElementsOf(actions);
+    }
+}u}(jTt (6871e6633db3c7f6293f93c4496e8f449116f688jt fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javajt modifiedjt K'jt Kjt K3jt https://github.com/palantir/atlasdb/blob/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javajt https://github.com/palantir/atlasdb/raw/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=2857ac281988f23e4cb979112fbb2bfb3ac34cdejt X(  @@ -21,16 +21,20 @@
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.PreCommitCondition;
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.TransactionCommitFailedException;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -63,6 +67,13 @@ public Optional<Integer> get(String table, WorkloadCell cell) {
                 transaction -> new AtlasDbInteractiveTransaction(transaction, tables).read(table, cell));
     }
 
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return TransactionStatus.getCommitTimestamp(
+                        transactionManager.getTransactionService().getV2(startTimestamp))
+                .isPresent();
+    }
+
     @Override
     public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
         return readWrite(txn -> {
@@ -74,23 +85,26 @@ public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions)
     @Override
     public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer) {
         AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
+        AtomicReference<Transaction> transactionReference = new AtomicReference<>();
         Supplier<CommitTimestampProvider> commitTimestampProvider =
                 Suppliers.memoize(() -> new CommitTimestampProvider());
         try {
-            Transaction transaction =
-                    transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
-                        AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
-                                new AtlasDbInteractiveTransaction(txn, tables);
-                        interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
-                        witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
-                        return txn;
-                    });
+            transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
+                transactionReference.set(txn);
+                AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
+                        new AtlasDbInteractiveTransaction(txn, tables);
+                interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
+                witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
+                return null;
+            });
+
+            Transaction transaction = transactionReference.get();
 
             if (transaction.isAborted()) {
                 return Optional.empty();
             }
 
-            return Optional.of(ImmutableWitnessedTransaction.builder()
+            return Optional.of(FullyWitnessedTransaction.builder()
                     .startTimestamp(transaction.getTimestamp())
                     .commitTimestamp(commitTimestampProvider
                             .get()
@@ -99,9 +113,22 @@ public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction>
                     .build());
         } catch (SafeIllegalArgumentException e) {
             throw e;
+        } catch (TransactionCommitFailedException e) {
+            Transaction transaction = transactionReference.get();
+            return Optional.of(MaybeWitnessedTransaction.builder()
+                    .startTimestamp(transaction.getTimestamp())
+                    .commitTimestamp(commitTimestampProvider
+                            .get()
+                            .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
+                    .actions(witnessedActionsReference.get())
+                    .build());
         } catch (Exception e) {
-            // TODO: Need to eventually handle PuE exceptions, as they could've succeeded in committing.
-            log.info("Failed to record transaction due to an exception", e);
+            Optional<Long> startTimestamp =
+                    Optional.ofNullable(transactionReference.get()).map(Transaction::getTimestamp);
+            log.info(
+                    "Failed to record transaction due to an exception for startTimestamp {}",
+                    SafeArg.of("startTimestamp", startTimestamp),
+                    e);
             return Optional.empty();
         }
     }u}(jTt (cb6dfce8a01b80d7f3c5368970de60190ce81ddcjt gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/ReadOnlyTransactionStore.javajt modifiedjt Kjt K jt Kjt https://github.com/palantir/atlasdb/blob/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javajt https://github.com/palantir/atlasdb/raw/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.java?ref=2857ac281988f23e4cb979112fbb2bfb3ac34cdejt XU  @@ -33,4 +33,9 @@ public ReadOnlyTransactionStore(ReadableTransactionStore delegate) {
     public Optional<Integer> get(String table, WorkloadCell cell) {
         return delegate.get(table, cell);
     }
+
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return delegate.isCommitted(startTimestamp);
+    }
 }u}(jTt (0ba18e00eabc917a1fd7025d0f9113112c9b8615jt atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitor.javajt addedjt K*jt K jt K*jt https://github.com/palantir/atlasdb/blob/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javajt https://github.com/palantir/atlasdb/raw/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.java?ref=2857ac281988f23e4cb979112fbb2bfb3ac34cdejt X  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.Optional;
+
+public final class OnlyCommittedWitnessedTransactionVisitor
+        implements WitnessedTransactionVisitor<Optional<FullyWitnessedTransaction>> {
+
+    private final ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    public OnlyCommittedWitnessedTransactionVisitor(ReadOnlyTransactionStore readOnlyTransactionStore) {
+        this.readOnlyTransactionStore = readOnlyTransactionStore;
+    }
+
+    @Override
+    public Optional<FullyWitnessedTransaction> visit(FullyWitnessedTransaction witnessedTransaction) {
+        return Optional.of(witnessedTransaction);
+    }
+
+    @Override
+    public Optional<FullyWitnessedTransaction> visit(MaybeWitnessedTransaction maybeWitnessedTransaction) {
+        return readOnlyTransactionStore.isCommitted(maybeWitnessedTransaction.startTimestamp())
+                ? Optional.of(maybeWitnessedTransaction.toFullyWitnessed())
+                : Optional.empty();
+    }
+}u}(jTt (54b290f2339c2518740eb0ba35e08de26406b945jt aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javajt modifiedjt Kjt Kjt Kjt https://github.com/palantir/atlasdb/blob/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajt https://github.com/palantir/atlasdb/raw/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=2857ac281988f23e4cb979112fbb2bfb3ac34cdejt X
  @@ -20,13 +20,15 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.OnlyCommittedWitnessedTransactionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import java.util.Comparator;
 import java.util.List;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
-import java.util.stream.Collectors;
+import one.util.streamex.StreamEx;
 
 public final class DefaultWorkflow<T extends TransactionStore> implements Workflow {
     private final ConcurrentTransactionRunner<T> concurrentTransactionRunner;
@@ -45,7 +47,7 @@ private DefaultWorkflow(
         this.readOnlyTransactionStore = readOnlyTransactionStore;
     }
 
-    public static <T extends TransactionStore> Workflow create(
+    public static <T extends TransactionStore> DefaultWorkflow<T> create(
             T store,
             KeyedTransactionTask<T> transactionTask,
             WorkflowConfiguration configuration,
@@ -60,7 +62,7 @@ public static <T extends TransactionStore> Workflow create(
     @Override
     public WorkflowHistory run() {
         return ImmutableWorkflowHistory.builder()
-                .history(sortByEffectiveTimestamp(runTransactionTask()))
+                .history(sortAndFilterTransactions(runTransactionTask()))
                 .transactionStore(readOnlyTransactionStore)
                 .build();
     }
@@ -79,11 +81,17 @@ private List<WitnessedTransaction> runTransactionTask() {
         }
     }
 
+    /**
+     * Sorts transactions by their effective timestamp and filters out transactions that are not fully committed.
+     */
     @VisibleForTesting
-    static List<WitnessedTransaction> sortByEffectiveTimestamp(List<WitnessedTransaction> unorderedTransactions) {
-        return unorderedTransactions.stream()
+    List<FullyWitnessedTransaction> sortAndFilterTransactions(List<WitnessedTransaction> unorderedTransactions) {
+        OnlyCommittedWitnessedTransactionVisitor visitor =
+                new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
+        return StreamEx.of(unorderedTransactions)
+                .mapPartial(transaction -> transaction.accept(visitor))
                 .sorted(Comparator.comparingLong(DefaultWorkflow::effectiveTimestamp))
-                .collect(Collectors.toList());
+                .toList();
     }
 
     private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {u}(jTt (3d12ec12a07e0b90193451a34a6dccfcfa6f8e76jt {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporterTest.javajt modifiedjt Kjt Kjt Kjt https://github.com/palantir/atlasdb/blob/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javajt https://github.com/palantir/atlasdb/raw/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.java?ref=2857ac281988f23e4cb979112fbb2bfb3ac34cdejt X  @@ -25,7 +25,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -60,7 +60,7 @@ public void runIncreasesMetricsIfViolationsFound() {
                         .build()));
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
                 .transactionStore(store)
-                .history(List.of(ImmutableWitnessedTransaction.builder()
+                .history(List.of(FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(u}(jTt (39cc7f77a28bd84fc271bbca23d8e9195abf6fd6jt matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantTest.javajt modifiedjt Kjt Kjt K
jt https://github.com/palantir/atlasdb/blob/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javajt https://github.com/palantir/atlasdb/raw/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.java?ref=2857ac281988f23e4cb979112fbb2bfb3ac34cdejt X
  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -59,12 +59,12 @@ public void before() {
     public void cellsExpectedToBeDeletedAreFound() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)
@@ -86,12 +86,12 @@ public void cellsExpectedToBeDeletedAreFound() {
     public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)u}(jTt (398677d5ff242f5cee92de9c2737a0843621c59djt watlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporterTest.javajt modifiedjt Kjt Kjt Kjt https://github.com/palantir/atlasdb/blob/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javajt https://github.com/palantir/atlasdb/raw/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.java?ref=2857ac281988f23e4cb979112fbb2bfb3ac34cdejt X  @@ -19,7 +19,7 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import java.util.List;
 import org.junit.Test;
@@ -35,7 +35,7 @@ public void consumerDoesNotThrowWhenAcceptingViolations() {
         assertThatCode(() -> SerializableInvariantLogReporter.INSTANCE
                         .consumer()
                         .accept(List.of(InvalidWitnessedTransaction.of(
-                                ImmutableWitnessedTransaction.builder()
+                                FullyWitnessedTransaction.builder()
                                         .startTimestamp(1)
                                         .build(),
                                 List.of()))))u}(jTt (5ec56f77b39005e45c63e6495f68b817646fecc6jt jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javajt modifiedjt K&jt K jt K&jt https://github.com/palantir/atlasdb/blob/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajt https://github.com/palantir/atlasdb/raw/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=2857ac281988f23e4cb979112fbb2bfb3ac34cdejt X  @@ -28,22 +28,28 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doAnswer;
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
 
 import com.google.common.collect.Iterables;
+import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
+import com.palantir.atlasdb.transaction.api.ConditionAwareTransactionTask;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.encoding.V1EncodingStrategy;
+import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore.CommitTimestampProvider;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -162,6 +168,38 @@ public void abortedTransactionsReturnEmpty() {
                 .isEmpty();
     }
 
+    @Test
+    public void keyAlreadyExistExceptionResultsInMaybeWitnessedTransaction() {
+        WriteTransactionAction writeTransactionAction =
+                WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+        TransactionManager keyAlreadyExistsExceptionThrowingStore = spy(manager);
+        doAnswer(invocation -> {
+                    Supplier<CommitTimestampProvider> commitTimestampFetcher = invocation.getArgument(0);
+                    ConditionAwareTransactionTask<Void, CommitTimestampProvider, Exception> task =
+                            invocation.getArgument(1);
+                    return manager.runTaskWithConditionWithRetry(commitTimestampFetcher, (txn, condition) -> {
+                        manager.getKeyValueService()
+                                .putUnlessExists(
+                                        TransactionConstants.TRANSACTION_TABLE,
+                                        Map.of(
+                                                V1EncodingStrategy.INSTANCE.encodeStartTimestampAsCell(
+                                                        txn.getTimestamp()),
+                                                Ints.toByteArray(-1)));
+                        task.execute(txn, condition);
+                        return null;
+                    });
+                })
+                .when(keyAlreadyExistsExceptionThrowingStore)
+                .runTaskWithConditionWithRetry(any(Supplier.class), any());
+        AtlasDbTransactionStore onlyKeyAlreadyExistsThrowingStore =
+                AtlasDbTransactionStore.create(keyAlreadyExistsExceptionThrowingStore, TABLES_TO_ATLAS_METADATA);
+        assertThat(onlyKeyAlreadyExistsThrowingStore.readWrite(List.of(writeTransactionAction)))
+                .hasValueSatisfying(witnessedTransaction -> {
+                    assertThat(witnessedTransaction).isInstanceOf(MaybeWitnessedTransaction.class);
+                    assertThat(witnessedTransaction.actions()).containsExactly(writeTransactionAction.witness());
+                });
+    }
+
     @Test
     public void getCommitTimestampIsEmptyWhenMatchesStartTimestamp() {
         CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();u}(jTt (d2773b68972e300a262ebb1f8c2a24f280280cfdjt patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javajt modifiedjt Kjt Kjt Kjt https://github.com/palantir/atlasdb/blob/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javajt https://github.com/palantir/atlasdb/raw/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=2857ac281988f23e4cb979112fbb2bfb3ac34cdejt X  @@ -27,7 +27,7 @@
 
 import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.store.ValidationStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import java.util.List;
@@ -40,12 +40,12 @@ public final class InMemoryValidationStoreTest {
     @Test
     public void writeActionsPersistValues() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
@@ -61,13 +61,13 @@ public void writeActionsPersistValues() {
     @Test
     public void deleteActionsPutsEmptyOptionalForCell() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
@@ -80,17 +80,17 @@ public void deleteActionsPutsEmptyOptionalForCell() {
     @Test
     public void writesDeletesAreProcessedInOrder() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(5)
                         .commitTimestamp(6)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_TWO))u}(jTt (2b067a134a06d3e605fca8d36dacf3678a76ffcejt qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javajt modifiedjt Kjt Kjt Kjt https://github.com/palantir/atlasdb/blob/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajt https://github.com/palantir/atlasdb/raw/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=2857ac281988f23e4cb979112fbb2bfb3ac34cdejt X  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -103,7 +103,7 @@ public WitnessedTransactionsBuilder endTransaction(Optional<Long> commitTimestam
                         startTimestamp < commitTimestamp.get(),
                         "Commit timestamp must be greater than the start timestamp.");
             }
-            witnessedTransactions.add(ImmutableWitnessedTransaction.builder()
+            witnessedTransactions.add(FullyWitnessedTransaction.builder()
                     .startTimestamp(startTimestamp)
                     .actions(actions)
                     .commitTimestamp(commitTimestamp)u}(jTt (d495a71c18ca7b125092f092c371e0a4a455ad73jt atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitorTest.javajt addedjt KAjt K jt KAjt https://github.com/palantir/atlasdb/blob/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javajt https://github.com/palantir/atlasdb/raw/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javajt X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.java?ref=2857ac281988f23e4cb979112fbb2bfb3ac34cdejt X
  @@ -0,0 +1,65 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyLong;
+import static org.mockito.Mockito.verifyNoInteractions;
+import static org.mockito.Mockito.when;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class OnlyCommittedWitnessedTransactionVisitorTest {
+
+    private static final FullyWitnessedTransaction READ_ONLY_WITNESSED_TRANSACTION =
+            FullyWitnessedTransaction.builder().startTimestamp(100L).build();
+
+    private static final MaybeWitnessedTransaction MAYBE_WITNESSED_TRANSACTION = MaybeWitnessedTransaction.builder()
+            .startTimestamp(100L)
+            .commitTimestamp(101L)
+            .build();
+
+    @Mock
+    private ReadOnlyTransactionStore transactionStore;
+
+    @Test
+    public void fullyCommittedTransactionsAreNeverChecked() {
+        assertThat(READ_ONLY_WITNESSED_TRANSACTION.accept(
+                        new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(READ_ONLY_WITNESSED_TRANSACTION);
+        verifyNoInteractions(transactionStore);
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsEmptyWhenNotCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(false);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .isEmpty();
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsFullyWitnessedWhenCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(true);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(MAYBE_WITNESSED_TRANSACTION.toFullyWitnessed());
+    }
+}u}(jTt (c661ec5533851b62afb963d1f472d967b8a67e83jt qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunnerTest.javajt modifiedjt Kjt Kjt Kjt https://github.com/palantir/atlasdb/blob/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javajt https://github.com/palantir/atlasdb/raw/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.java?ref=2857ac281988f23e4cb979112fbb2bfb3ac34cdejt X  @@ -33,7 +33,7 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.List;
@@ -126,7 +126,7 @@ public void storePassedThroughToIndividualTasks() {
     }
 
     private static WitnessedTransaction createWitnessedTransactionWithStartTimestamp(int startTimestamp) {
-        return ImmutableWitnessedTransaction.builder()
+        return FullyWitnessedTransaction.builder()
                 .startTimestamp(startTimestamp)
                 .build();
     }u}(jTt (f8a19900eee6cf1226affe562f3f1ad73f58040djt eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javajt modifiedjt K2jt Kjt KNjt https://github.com/palantir/atlasdb/blob/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javajt https://github.com/palantir/atlasdb/raw/2857ac281988f23e4cb979112fbb2bfb3ac34cde/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javajt https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=2857ac281988f23e4cb979112fbb2bfb3ac34cdejt X!  @@ -27,9 +27,10 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.common.concurrent.PTExecutors;
+import java.util.List;
 import java.util.concurrent.ScheduledExecutorService;
 import org.junit.Test;
 
@@ -41,66 +42,78 @@ public class DefaultWorkflowTest {
     private final ScheduledExecutorService scheduler = PTExecutors.newSingleThreadScheduledExecutor();
     private final ListeningExecutorService executionExecutor = MoreExecutors.listeningDecorator(scheduler);
 
+    private final DefaultWorkflow<TransactionStore> workflow =
+            DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
+
     @Test
     public void handlesExceptionsInUnderlyingTasks() {
         RuntimeException transactionException = new RuntimeException("boo");
         when(transactionTask.apply(eq(store), anyInt())).thenThrow(transactionException);
-
-        Workflow workflow =
-                DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
         assertThatThrownBy(workflow::run)
                 .hasMessage("Error when running workflow task")
                 .hasCause(transactionException);
     }
 
     @Test
     public void returnsUnderlyingWitnessedTransactions() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight)))
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight)))
                 .containsExactly(twoToEight);
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(readOnlyAtFive)))
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(readOnlyAtFive)))
                 .containsExactly(readOnlyAtFive);
     }
 
     @Test
     public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
-        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
                 .containsExactly(fourToSix, threeToSeven, twoToEight);
     }
 
     @Test
     public void sortsReadOnlyTransactionsByStartTimestamp() {
-        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        WitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(
+        assertThat(workflow.sortAndFilterTransactions(
                         ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
                 .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
     }
 
     @Test
     public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
 
-        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        WitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(
                         twoToEight, readOnlyAtNine, fourToSix, readOnlyAtFive, readOnlyAtThree, readOnlyAtSeven)))
                 .containsExactly(
                         readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
     }
 
+    @Test
+    public void filterRemovesUncommittedTransactions() {
+        MaybeWitnessedTransaction committedMaybeWitnessedTransaction =
+                createMaybeWitnessedTransactionWithoutActions(1, 3, true);
+        MaybeWitnessedTransaction notCommittedTransaction = createMaybeWitnessedTransactionWithoutActions(2, 8, false);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        assertThat(workflow.sortAndFilterTransactions(List.of(
+                        committedMaybeWitnessedTransaction, notCommittedTransaction, readOnlyAtFive, fourToSix)))
+                .containsExactly(committedMaybeWitnessedTransaction.toFullyWitnessed(), readOnlyAtFive, fourToSix);
+    }
+
     private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
         return new WorkflowConfiguration() {
             @Override
@@ -110,12 +123,21 @@ public int iterationCount() {
         };
     }
 
-    private static WitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
-        return ImmutableWitnessedTransaction.builder().startTimestamp(start).build();
+    private MaybeWitnessedTransaction createMaybeWitnessedTransactionWithoutActions(
+            long start, long commit, boolean committed) {
+        when(store.isCommitted(eq(start))).thenReturn(committed);
+        return MaybeWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+
+    private static FullyWitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
+        return FullyWitnessedTransaction.builder().startTimestamp(start).build();
     }
 
-    private static WitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
-        return ImmutableWitnessedTransaction.builder()
+    private static FullyWitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
+        return FullyWitnessedTransaction.builder()
                 .startTimestamp(start)
                 .commitTimestamp(commit)
                 .build();ueu      (45ff8d9532d492d6b9738fd69d0a9cfb67f1a074}(sha(45ff8d9532d492d6b9738fd69d0a9cfb67f1a074node_idEC_kwDOAjP5fdoAKDQ1ZmY4ZDk1MzJkNDkyZDZiOTczOGZkNjlkMGE5Y2ZiNjdmMWEwNzQcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-07-18T10:21:35Zu	committer}(jsu GitHubjuu noreply@github.comjwu 2023-07-18T10:21:35ZumessageX  Do not wait for quorum of nodes available when performing schema version check (#6667)

* add availability requirement functionality, add methods for usage

* woops remove unused method

* add tests and checks for negative numbers

* add tests for any

* update existing tests

* move comment

* clean up

* last nit

* Add generated changelog entries

* check before and after keyspace creation

---------

Co-authored-by: svc-changelog <svc-changelog@palantir.com>tree}(jku (7019c20db94167c16309edf0ae8a96d463018ce6url`https://api.github.com/repos/palantir/atlasdb/git/trees/7019c20db94167c16309edf0ae8a96d463018ce6uju bhttps://api.github.com/repos/palantir/atlasdb/git/commits/45ff8d9532d492d6b9738fd69d0a9cfb67f1a074
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJktmevCRBK7hj4Ov3rIwAAQZsIAHmp4aG6AQgVjyv9ENFeHUAS
h3P9RDFbLa5ipJJiBf1A5SGdpa0sMdduLrIoUdn/yqwcVpMSlZ2/TsXj7xmaT1iO
p+booAEOueV9dlHkenlB3tKPeoeCby3c+I9k7vlZ8FlOQtfk8cM2p8eCdr2bMBEd
SGaHDG8sBGA7KxeLl6eMgdsIE73xPcKk3hPRQnxHymv9yliWX6bQNlXAQKP88/A3
ONmSfrOYkrboDnbkPqge217I67yI1n+TYFn/Fmk4tAlyGc/AwjmL3CcZJ98bD0td
/x7NHdz1nyctxfjsVa6C650xF3Mn+dhXbGtw203WdGP8IyylX9uVvqdTIWajfhs=
=0k8Q
-----END PGP SIGNATURE-----
payloadX  tree 7019c20db94167c16309edf0ae8a96d463018ce6
parent 3d065fca2c42ba47f433b7982fedf9f45090353c
author Sam-Kramer <sam.c.kramer@gmail.com> 1689675695 +0100
committer GitHub <noreply@github.com> 1689675695 +0100

Do not wait for quorum of nodes available when performing schema version check (#6667)

* add availability requirement functionality, add methods for usage

* woops remove unused method

* add tests and checks for negative numbers

* add tests for any

* update existing tests

* move comment

* clean up

* last nit

* Add generated changelog entries

* check before and after keyspace creation

---------

Co-authored-by: svc-changelog <svc-changelog@palantir.com>uuju ^https://api.github.com/repos/palantir/atlasdb/commits/45ff8d9532d492d6b9738fd69d0a9cfb67f1a074html_urlShttps://github.com/palantir/atlasdb/commit/45ff8d9532d492d6b9738fd69d0a9cfb67f1a074comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/45ff8d9532d492d6b9738fd69d0a9cfb67f1a074/commentsjqu }(login
Sam-KrameridJ^2_ jmu MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5ju 'https://api.github.com/users/Sam-Kramerju https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujyu }(ju web-flowju J/jmu MDQ6VXNlcjE5ODY0NDQ3ju 4https://avatars.githubusercontent.com/u/19864447?v=4ju h5ju %https://api.github.com/users/web-flowju https://github.com/web-flowju /https://api.github.com/users/web-flow/followersju <https://api.github.com/users/web-flow/following{/other_user}ju 5https://api.github.com/users/web-flow/gists{/gist_id}ju <https://api.github.com/users/web-flow/starred{/owner}{/repo}ju 3https://api.github.com/users/web-flow/subscriptionsju *https://api.github.com/users/web-flow/orgsju +https://api.github.com/users/web-flow/reposju 6https://api.github.com/users/web-flow/events{/privacy}ju 5https://api.github.com/users/web-flow/received_eventsju Userju uparents]}(jku (3d065fca2c42ba47f433b7982fedf9f45090353cju ^https://api.github.com/repos/palantir/atlasdb/commits/3d065fca2c42ba47f433b7982fedf9f45090353cju Shttps://github.com/palantir/atlasdb/commit/3d065fca2c42ba47f433b7982fedf9f45090353cuastats}(totalM(	additionsK	deletionsK,ufiles](}(jku (d52315581c77162d527303298aa7da37af522cabfilenamefatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServices.javastatusmodifiedju Kju KchangesK(blob_urlhttps://github.com/palantir/atlasdb/blob/45ff8d9532d492d6b9738fd69d0a9cfb67f1a074/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javaraw_urlhttps://github.com/palantir/atlasdb/raw/45ff8d9532d492d6b9738fd69d0a9cfb67f1a074/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.java?ref=45ff8d9532d492d6b9738fd69d0a9cfb67f1a074patchX  @@ -36,6 +36,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.util.Pair;
+import com.palantir.util.io.AvailabilityRequirement;
 import java.nio.ByteBuffer;
 import java.nio.ByteOrder;
 import java.nio.charset.Charset;
@@ -66,9 +67,16 @@ private CassandraKeyValueServices() {
         // Utility class
     }
 
+    static void waitForSchemaVersions(
+            int schemaMutationTimeMillis, CassandraClient client, String unsafeSchemaChangeDescription)
+            throws TException {
+        waitForSchemaVersions(
+                schemaMutationTimeMillis, client, unsafeSchemaChangeDescription, AvailabilityRequirement.QUORUM);
+    }
+
     /**
-     * Attempt to wait until a quorum of nodes has reached consensus on a schema version, and it is known that no
-     * other nodes currently disagree with this quorum.
+     * Attempt to wait until the specified number of nodes are available and there are no disagreements on schema
+     * version.
      * <p>
      * The goals of this method include:
      * <ol>
@@ -77,23 +85,30 @@ private CassandraKeyValueServices() {
      *         Cassandra can more efficiently come to agreement.
      *     </li>
      *     <li>
-     *         Avoid performing schema mutations if they could potentially cause a split-brain in terms of how the
-     *         schema evolves. This is achieved by ensuring a quorum of reachable nodes agree on the version. There
-     *         is of course a check-then-act race condition, but Cassandra is able to eventually recover.
+     *         Avoid performing schema mutations if our availability requirements are not met. This is to prevent a
+     *         split-brain situation in respect to the schema. While this _should_ be a safe state to be in, there is
+     *         little-to-no risk to availability for waiting for consensus and availability. If the specified
+     *         availability requirements are not met, then it is very likely Cassandra is in an outage anyways, which
+     *         means it is ok for a service to not start up. There is of course a check-then-act race condition, but
+     *         Cassandra is able to eventually recover.
      *     </li>
      *     <li>
      *         Allowing schema mutations to take place in the presence of failures (the KVS needs to be able to
      *         tolerate a limited number of Cassandra node-level failures).
      *     </li>
      * </ol>
      *
-     * @param schemaMutationTimeMillis      time to wait for nodes' schema versions to match.
+     * @param schemaMutationTimeMillis      Time to wait for nodes' schema versions to match.
      * @param client                        Cassandra client.
-     * @param unsafeSchemaChangeDescription description of the schema change that was performed prior to this check.
+     * @param unsafeSchemaChangeDescription Description of the schema change that was performed prior to this check.
+     * @param availabilityRequirement       Number of Cassandra nodes that must be reachable for schema consensus.
      * @throws IllegalStateException if we wait for more than schemaMutationTimeoutMillis specified in config.
      */
     static void waitForSchemaVersions(
-            int schemaMutationTimeMillis, CassandraClient client, String unsafeSchemaChangeDescription)
+            int schemaMutationTimeMillis,
+            CassandraClient client,
+            String unsafeSchemaChangeDescription,
+            AvailabilityRequirement availabilityRequirement)
             throws TException {
         long start = System.currentTimeMillis();
         long sleepTime = INITIAL_SLEEP_TIME;
@@ -102,7 +117,7 @@ static void waitForSchemaVersions(
             // This may only include some of the nodes if the coordinator hasn't shaken hands with someone; however,
             // this existed largely as a defense against performance issues with concurrent schema modifications.
             versions = client.describe_schema_versions();
-            if (majorityOfClusterHasConsistentSchemaVersionAndNoDivergentNodes(versions)) {
+            if (clusterSatisfiesAvailabilityRequirementAndNoDivergentSchemas(versions, availabilityRequirement)) {
                 return;
             }
             sleepTime = sleepAndGetNextBackoffTime(sleepTime);
@@ -148,8 +163,8 @@ static void runWithWaitingForSchemas(
         waitForSchemaVersions(config.schemaMutationTimeoutMillis(), client, "after " + unsafeSchemaChangeDescription);
     }
 
-    private static boolean majorityOfClusterHasConsistentSchemaVersionAndNoDivergentNodes(
-            Map<String, List<String>> versions) {
+    private static boolean clusterSatisfiesAvailabilityRequirementAndNoDivergentSchemas(
+            Map<String, List<String>> versions, AvailabilityRequirement availabilityRequirement) {
         if (getDistinctReachableSchemas(versions).size() != 1) {
             return false;
         }
@@ -158,7 +173,8 @@ private static boolean majorityOfClusterHasConsistentSchemaVersionAndNoDivergent
         int numUnreachableNodes = Optional.ofNullable(versions.get(VERSION_UNREACHABLE))
                 .map(List::size)
                 .orElse(0);
-        return totalNodes - numUnreachableNodes >= (totalNodes / 2) + 1;
+        int availableNodes = totalNodes - numUnreachableNodes;
+        return availabilityRequirement.satisfies(availableNodes, totalNodes);
     }
 
     private static List<String> getDistinctReachableSchemas(Map<String, List<String>> versions) {u}(jku (5401bf3d0166157025601435b19f8490ce4f1643ju ^atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraVerifier.javaju modifiedju Kju Kju Kju https://github.com/palantir/atlasdb/blob/45ff8d9532d492d6b9738fd69d0a9cfb67f1a074/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.javaju https://github.com/palantir/atlasdb/raw/45ff8d9532d492d6b9738fd69d0a9cfb67f1a074/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.javaju https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.java?ref=45ff8d9532d492d6b9738fd69d0a9cfb67f1a074ju X
  @@ -40,6 +40,7 @@
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.util.io.AvailabilityRequirement;
 import java.net.InetSocketAddress;
 import java.time.Duration;
 import java.util.HashSet;
@@ -238,25 +239,36 @@ private static boolean attemptToCreateIfNotExists(InetSocketAddress host, Cassan
         }
     }
 
+    @VisibleForTesting
     // swallows the expected TException subtype NotFoundException, throws connection problem related ones
-    private static boolean keyspaceAlreadyExists(CassandraServer host, CassandraVerifierConfig verifierConfig)
+    static boolean keyspaceAlreadyExists(CassandraClient client, CassandraVerifierConfig verifierConfig)
             throws TException {
-        try (CassandraClient client = CassandraClientFactory.getClientInternal(host, verifierConfig.clientConfig())) {
+        try {
             client.describe_keyspace(verifierConfig.keyspace());
             CassandraKeyValueServices.waitForSchemaVersions(
                     verifierConfig.schemaMutationTimeoutMillis(),
                     client,
-                    "while checking if schemas diverged on startup");
+                    "while checking if schemas diverged on startup",
+                    AvailabilityRequirement.ANY);
             return true;
         } catch (NotFoundException e) {
             return false;
         }
     }
 
+    private static boolean keyspaceAlreadyExists(CassandraServer host, CassandraVerifierConfig verifierConfig)
+            throws TException {
+        try (CassandraClient client = CassandraClientFactory.getClientInternal(host, verifierConfig.clientConfig())) {
+            return keyspaceAlreadyExists(client, verifierConfig);
+        }
+    }
+
     private static boolean attemptToCreateKeyspaceOnHost(CassandraServer host, CassandraVerifierConfig verifierConfig)
             throws TException {
         try (CassandraClient client = CassandraClientFactory.getClientInternal(host, verifierConfig.clientConfig())) {
             KsDef ksDef = createKsDefForFresh(client, verifierConfig);
+            CassandraKeyValueServices.waitForSchemaVersions(
+                    verifierConfig.schemaMutationTimeoutMillis(), client, "before adding the initial empty keyspace");
             client.system_add_keyspace(ksDef);
             log.info("Created keyspace: {}", SafeArg.of("keyspace", verifierConfig.keyspace()));
             CassandraKeyValueServices.waitForSchemaVersions(u}(jku (495bf3755f831be17741c6a0717201cdf739f0f7ju yatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServicesSchemaConsensusTest.javaju modifiedju K-ju Kju KJju https://github.com/palantir/atlasdb/blob/45ff8d9532d492d6b9738fd69d0a9cfb67f1a074/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServicesSchemaConsensusTest.javaju https://github.com/palantir/atlasdb/raw/45ff8d9532d492d6b9738fd69d0a9cfb67f1a074/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServicesSchemaConsensusTest.javaju https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServicesSchemaConsensusTest.java?ref=45ff8d9532d492d6b9738fd69d0a9cfb67f1a074ju XH   @@ -23,8 +23,7 @@
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableSet;
-import java.net.InetSocketAddress;
+import com.palantir.util.io.AvailabilityRequirement;
 import org.apache.thrift.TException;
 import org.junit.Test;
 
@@ -33,77 +32,91 @@ public class CassandraKeyValueServicesSchemaConsensusTest {
     private static final int WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS = 10000;
 
     private static CassandraClient client = mock(CassandraClient.class);
-
-    private static final ImmutableSet<InetSocketAddress> FIVE_SERVERS = ImmutableSet.of(
-            InetSocketAddress.createUnresolved("1", 1),
-            InetSocketAddress.createUnresolved("2", 1),
-            InetSocketAddress.createUnresolved("3", 1),
-            InetSocketAddress.createUnresolved("4", 1),
-            InetSocketAddress.createUnresolved("5", 1));
     private static final String TABLE = "table";
     private static final String VERSION_1 = "v1";
     private static final String VERSION_2 = "v2";
-    private static final String VERSION_UNREACHABLE = "UNREACHABLE";
+    private static final String VERSION_UNREACHABLE = CassandraKeyValueServices.VERSION_UNREACHABLE;
     private static final ImmutableList<String> QUORUM_OF_NODES = ImmutableList.of("1", "2", "3");
     private static final ImmutableList<String> REST_OF_NODES = ImmutableList.of("4", "5");
     private static final ImmutableList<String> ALL_NODES = ImmutableList.of("1", "2", "3", "4", "5");
 
     @Test
     public void waitSucceedsForSameSchemaVersion() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of(VERSION_1, ALL_NODES));
-        assertWaitForSchemaVersionsDoesNotThrow();
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.ANY);
     }
 
     @Test
     public void waitThrowsForAllUnknownSchemaVersion() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of());
-        assertWaitForSchemaVersionsThrows();
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.QUORUM);
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.ANY);
     }
 
     @Test
     public void waitThrowsForAllUnreachableSchemaVersion() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of(VERSION_UNREACHABLE, ALL_NODES));
-        assertWaitForSchemaVersionsThrows();
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.QUORUM);
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.ANY);
+    }
+
+    @Test
+    public void waitThrowsForDifferentSchemaVersion() throws TException {
+        when(client.describe_schema_versions())
+                .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_2, REST_OF_NODES));
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.QUORUM);
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.ANY);
     }
 
     @Test
     public void waitSucceedsWithClusterHavingDownsizedAtRuntime() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of(VERSION_1, REST_OF_NODES));
-        assertWaitForSchemaVersionsDoesNotThrow();
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
     }
 
     @Test
-    public void waitFailsOnMinorityOnSameVersionAndRestUnreachable() throws TException {
+    public void waitFailsForQuorumOnMinorityOnSameVersionAndRestUnreachable() throws TException {
         when(client.describe_schema_versions())
                 .thenReturn(ImmutableMap.of(VERSION_UNREACHABLE, QUORUM_OF_NODES, VERSION_1, REST_OF_NODES));
-        assertWaitForSchemaVersionsThrows();
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.QUORUM);
     }
 
     @Test
     public void waitSucceedsForQuorumOnlyWithUnknownSchemaVersion() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES));
-        assertWaitForSchemaVersionsDoesNotThrow();
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
     }
 
     @Test
     public void waitSucceedsForQuorumOnlyWithUnreachableSchemaVersion() throws TException {
         when(client.describe_schema_versions())
                 .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_UNREACHABLE, REST_OF_NODES));
-        assertWaitForSchemaVersionsDoesNotThrow();
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
     }
 
     @Test
-    public void waitThrowsForDifferentSchemaVersion() throws TException {
+    public void waitSucceedsForQuorumOnlyWithUnknownAndUnreachableSchemaVersion() throws TException {
         when(client.describe_schema_versions())
-                .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_2, REST_OF_NODES));
-        assertWaitForSchemaVersionsThrows();
+                .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_UNREACHABLE, ImmutableList.of("5")));
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
     }
 
     @Test
-    public void waitSucceedsForQuorumOnlyWithUnknownAndUnreachableSchemaVersion() throws TException {
+    public void waitChecksForQuorumByDefault() throws TException {
         when(client.describe_schema_versions())
-                .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_UNREACHABLE, ImmutableList.of("5")));
-        assertWaitForSchemaVersionsDoesNotThrow();
+                .thenReturn(ImmutableMap.of(VERSION_UNREACHABLE, QUORUM_OF_NODES, VERSION_1, REST_OF_NODES));
+        assertThatThrownBy(() -> CassandraKeyValueServices.waitForSchemaVersions(
+                        NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE))
+                .isInstanceOf(IllegalStateException.class)
+                .hasMessageContaining("Cassandra cluster cannot come to agreement on schema versions");
+    }
+
+    @Test
+    public void waitSucceedsForAnyWithOnlyOneReachableHost() throws TException {
+        when(client.describe_schema_versions())
+                .thenReturn(ImmutableMap.of(VERSION_1, ImmutableList.of("5"), VERSION_UNREACHABLE, QUORUM_OF_NODES));
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.ANY);
     }
 
     @Test
@@ -117,18 +130,21 @@ public void waitWaitsForSchemaVersions() throws TException {
                         ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_UNREACHABLE, REST_OF_NODES),
                         ImmutableMap.of(VERSION_1, ALL_NODES));
 
-        CassandraKeyValueServices.waitForSchemaVersions(WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, waitingClient, TABLE);
+        CassandraKeyValueServices.waitForSchemaVersions(
+                WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, waitingClient, TABLE, AvailabilityRequirement.QUORUM);
         verify(waitingClient, times(4)).describe_schema_versions();
     }
 
-    private void assertWaitForSchemaVersionsThrows() {
+    private void assertWaitForSchemaVersionsThrows(AvailabilityRequirement availabilityRequirement) {
         assertThatThrownBy(() -> CassandraKeyValueServices.waitForSchemaVersions(
-                        NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE))
+                        NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE, availabilityRequirement))
                 .isInstanceOf(IllegalStateException.class)
                 .hasMessageContaining("Cassandra cluster cannot come to agreement on schema versions");
     }
 
-    private void assertWaitForSchemaVersionsDoesNotThrow() throws TException {
-        CassandraKeyValueServices.waitForSchemaVersions(NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE);
+    private void assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement availabilityRequirement)
+            throws TException {
+        CassandraKeyValueServices.waitForSchemaVersions(
+                NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE, availabilityRequirement);
     }
 }u}(jku (f22c92e240094982ad75ea602ed3e93436f20ce7ju batlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraVerifierTest.javaju modifiedju K
ju K ju K
ju https://github.com/palantir/atlasdb/blob/45ff8d9532d492d6b9738fd69d0a9cfb67f1a074/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifierTest.javaju https://github.com/palantir/atlasdb/raw/45ff8d9532d492d6b9738fd69d0a9cfb67f1a074/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifierTest.javaju https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifierTest.java?ref=45ff8d9532d492d6b9738fd69d0a9cfb67f1a074ju X  @@ -274,6 +274,19 @@ public void differentRfThanConfigThrows() throws TException {
                 .isInstanceOf(IllegalStateException.class);
     }
 
+    @Test
+    public void keyspaceAlreadyExistsOnlyChecksForAnyAvailableNodes() throws TException {
+        CassandraVerifierConfig verifierConfig =
+                getVerifierConfigBuilderWithDefaults(defaultTopology(HOST_1)).build();
+        when(client.describe_schema_versions())
+                .thenReturn(ImmutableMap.of(
+                        "A",
+                        ImmutableList.of(HOST_1),
+                        CassandraKeyValueServices.VERSION_UNREACHABLE,
+                        ImmutableList.of(HOST_1, HOST_2, HOST_3)));
+        CassandraVerifier.keyspaceAlreadyExists(client, verifierConfig);
+    }
+
     private TokenRange mockRangeWithDetails(EndpointDetails... details) {
         TokenRange mockRange = new TokenRange();
         mockRange.setEndpoint_details(Arrays.asList(details));u}(jku (1c58d50254ae7b8272b34df90b7342f7bd636537ju Oatlasdb-commons/src/main/java/com/palantir/util/io/AvailabilityRequirement.javaju addedju K3ju K ju K3ju https://github.com/palantir/atlasdb/blob/45ff8d9532d492d6b9738fd69d0a9cfb67f1a074/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirement.javaju https://github.com/palantir/atlasdb/raw/45ff8d9532d492d6b9738fd69d0a9cfb67f1a074/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirement.javaju https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirement.java?ref=45ff8d9532d492d6b9738fd69d0a9cfb67f1a074ju X  @@ -0,0 +1,51 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util.io;
+
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+
+public enum AvailabilityRequirement {
+    ANY {
+        @Override
+        protected int calculateRequired(int total) {
+            return 1;
+        }
+    },
+    QUORUM {
+        @Override
+        protected int calculateRequired(int total) {
+            return (total / 2) + 1;
+        }
+    };
+
+    protected abstract int calculateRequired(int total);
+
+    public final boolean satisfies(int available, int total) {
+        Preconditions.checkArgument(
+                available >= 0 && total >= 0,
+                "Available and total must be non-negative.",
+                SafeArg.of("available", available),
+                SafeArg.of("total", total));
+        Preconditions.checkArgument(
+                available <= total,
+                "Available must be less than or equal to total.",
+                SafeArg.of("available", available),
+                SafeArg.of("total", total));
+        return available >= calculateRequired(total);
+    }
+}u}(jku (02ba7a7df417ddea93cfbe362d001e291e48f2ffju Satlasdb-commons/src/test/java/com/palantir/util/io/AvailabilityRequirementTest.javaju addedju K^ju K ju K^ju https://github.com/palantir/atlasdb/blob/45ff8d9532d492d6b9738fd69d0a9cfb67f1a074/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirementTest.javaju https://github.com/palantir/atlasdb/raw/45ff8d9532d492d6b9738fd69d0a9cfb67f1a074/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirementTest.javaju https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirementTest.java?ref=45ff8d9532d492d6b9738fd69d0a9cfb67f1a074ju XS  @@ -0,0 +1,94 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util.io;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import org.junit.Test;
+
+public final class AvailabilityRequirementTest {
+    @Test
+    public void anySatisfiesGreaterThanZero() {
+        assertThat(AvailabilityRequirement.ANY.satisfies(1, 10)).isTrue();
+    }
+
+    @Test
+    public void anySatisfiesWhenEquivalentToTotal() {
+        assertThat(AvailabilityRequirement.ANY.satisfies(1, 1)).isTrue();
+        assertThat(AvailabilityRequirement.ANY.satisfies(10, 10)).isTrue();
+    }
+
+    @Test
+    public void anyDoesNotSatisfyWhenZero() {
+        assertThat(AvailabilityRequirement.ANY.satisfies(0, 10)).isFalse();
+        assertThat(AvailabilityRequirement.ANY.satisfies(0, 0)).isFalse();
+    }
+
+    @Test
+    public void quorumSatisfiesWhenHasMajority() {
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(2, 3)).isTrue();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(4, 6)).isTrue();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(5, 9)).isTrue();
+    }
+
+    @Test
+    public void quorumDoesNotSatisfyWhenItDoesNotHaveMajority() {
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(0, 0)).isFalse();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(0, 1)).isFalse();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(1, 3)).isFalse();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(3, 6)).isFalse();
+    }
+
+    @Test
+    public void quorumSatisfiesWhenHasTotal() {
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(1, 1)).isTrue();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(10, 10)).isTrue();
+    }
+
+    @Test
+    public void satisfiesThrowsWhenAvailableIsNegative() {
+        assertThatNegativeArgumentsExceptionThrowsForArguments(-1, 10);
+    }
+
+    @Test
+    public void satisfiesThrowsWhenTotalIsNegative() {
+        assertThatNegativeArgumentsExceptionThrowsForArguments(1, -10);
+    }
+
+    @Test
+    public void satisfiesThrowsWhenBothAreNegative() {
+        assertThatNegativeArgumentsExceptionThrowsForArguments(-1, -10);
+    }
+
+    @Test
+    public void satisfiesThrowsWhenAvailableIsGreaterThanTotal() {
+        assertThatLoggableExceptionThrownBy(() -> AvailabilityRequirement.ANY.satisfies(11, 10))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Available must be less than or equal to total.")
+                .hasExactlyArgs(SafeArg.of("available", 11), SafeArg.of("total", 10));
+    }
+
+    private static void assertThatNegativeArgumentsExceptionThrowsForArguments(int available, int total) {
+        assertThatLoggableExceptionThrownBy(() -> AvailabilityRequirement.ANY.satisfies(available, total))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Available and total must be non-negative.")
+                .hasExactlyArgs(SafeArg.of("available", available), SafeArg.of("total", total));
+    }
+}u}(jku (240913fc734894a98c05e8c292aa78369a4ece97ju $changelog/@unreleased/pr-6667.v2.ymlju addedju Kju K ju Kju |https://github.com/palantir/atlasdb/blob/45ff8d9532d492d6b9738fd69d0a9cfb67f1a074/changelog%2F%40unreleased%2Fpr-6667.v2.ymlju {https://github.com/palantir/atlasdb/raw/45ff8d9532d492d6b9738fd69d0a9cfb67f1a074/changelog%2F%40unreleased%2Fpr-6667.v2.ymlju https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6667.v2.yml?ref=45ff8d9532d492d6b9738fd69d0a9cfb67f1a074ju X  @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Do not wait for a quorum of nodes to be available for Cassandra's schema
+    version on start up unless when performing DDL operations.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6667ueu(dedce3b313ec713f731b81215b39e30e5af5d556}(sha(dedce3b313ec713f731b81215b39e30e5af5d556node_idEC_kwDOAjP5fdoAKGRlZGNlM2IzMTNlYzcxM2Y3MzFiODEyMTViMzllMzBlNWFmNWQ1NTYcommit}(author}(name
Samuel Krameremailskramer@palantir.comdate2023-03-23T22:32:40Zu	committer}(jv 
Samuel Kramerjv skramer@palantir.comjv 2023-03-23T22:32:40Zumessageone last cleanuptree}(jv (c972955dc6ece00e945b62a5611c393aed96b759url`https://api.github.com/repos/palantir/atlasdb/git/trees/c972955dc6ece00e945b62a5611c393aed96b759uj*v bhttps://api.github.com/repos/palantir/atlasdb/git/commits/dedce3b313ec713f731b81215b39e30e5af5d556
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj*v ^https://api.github.com/repos/palantir/atlasdb/commits/dedce3b313ec713f731b81215b39e30e5af5d556html_urlShttps://github.com/palantir/atlasdb/commit/dedce3b313ec713f731b81215b39e30e5af5d556comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/dedce3b313ec713f731b81215b39e30e5af5d556/commentsjv }(login
Sam-KrameridJ^2_ jv MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j*v 'https://api.github.com/users/Sam-Kramerj6v https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj v }(j;v 
Sam-Kramerj=v J^2_ jv MDQ6VXNlcjYyMzg4MTQ=j?v 3https://avatars.githubusercontent.com/u/6238814?v=4jAv h5j*v 'https://api.github.com/users/Sam-Kramerj6v https://github.com/Sam-KramerjDv 1https://api.github.com/users/Sam-Kramer/followersjFv >https://api.github.com/users/Sam-Kramer/following{/other_user}jHv 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jJv >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jLv 5https://api.github.com/users/Sam-Kramer/subscriptionsjNv ,https://api.github.com/users/Sam-Kramer/orgsjPv -https://api.github.com/users/Sam-Kramer/reposjRv 8https://api.github.com/users/Sam-Kramer/events{/privacy}jTv 7https://api.github.com/users/Sam-Kramer/received_eventsjVv UserjXv uparents]}(jv (8b04dd2c47f05d41e5683917b69aa734ccf663b4j*v ^https://api.github.com/repos/palantir/atlasdb/commits/8b04dd2c47f05d41e5683917b69aa734ccf663b4j6v Shttps://github.com/palantir/atlasdb/commit/8b04dd2c47f05d41e5683917b69aa734ccf663b4uastats}(totalK	additionsK 	deletionsKufiles]}(jv (1b2d452e3c07bb6f7e7dcbd97b739698e0817c15filename/atlasdb-workload-server-distribution/Dockerfilestatusmodifiedjrv K jsv KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/dedce3b313ec713f731b81215b39e30e5af5d556/atlasdb-workload-server-distribution%2FDockerfileraw_urlhttps://github.com/palantir/atlasdb/raw/dedce3b313ec713f731b81215b39e30e5af5d556/atlasdb-workload-server-distribution%2FDockerfilecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2FDockerfile?ref=dedce3b313ec713f731b81215b39e30e5af5d556patchX&  @@ -1,9 +1,6 @@
 FROM adoptopenjdk/openjdk11:jre-11.0.9_11.1-alpine
 MAINTAINER AtlasDB Team
 
-# Bash and curl are convenient for monitoring and debugging
-RUN apk update && apk add bash curl
-
 ENV DOCKERIZE_VERSION v0.2.0
 
 # Bash is useful for monitoring; curl is used by our healthchecks.uau(11d5b37c69746e9366fccc43c84a69d84279f5a2}(sha(11d5b37c69746e9366fccc43c84a69d84279f5a2node_idEC_kwDOAjP5fdoAKDExZDViMzdjNjk3NDZlOTM2NmZjY2M0M2M4NGE2OWQ4NDI3OWY1YTIcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-03-06T16:47:22Zu	committer}(jv svc-autoreleasejv -pd-foundry-infrastructure-notify@palantir.comjv 2023-03-06T16:47:22ZumessageAutorelease 0.809.0

[skip ci]tree}(jv (c5651889b083dcf488f6639968c620beba57a1a6url`https://api.github.com/repos/palantir/atlasdb/git/trees/c5651889b083dcf488f6639968c620beba57a1a6ujv bhttps://api.github.com/repos/palantir/atlasdb/git/commits/11d5b37c69746e9366fccc43c84a69d84279f5a2
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQGGR8ACgkQhbrR8ip7mDBryQD9HG7cS0XAnzNV9pUmvx3rBiCy
Jvm/VhAv+QMDQnxNO9AA/jOHZ1ej2MhqjV0gnHEZS2ZTAuxF7tUFy0qvpVr7FOUx
=JZXj
-----END PGP SIGNATURE-----
payloadX0  tree c5651889b083dcf488f6639968c620beba57a1a6
parent bde83b0dd394ba9dc51321bd2364ae23edc2887d
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1678121242 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1678121242 +0000

Autorelease 0.809.0

[skip ci]uujv ^https://api.github.com/repos/palantir/atlasdb/commits/11d5b37c69746e9366fccc43c84a69d84279f5a2html_urlShttps://github.com/palantir/atlasdb/commit/11d5b37c69746e9366fccc43c84a69d84279f5a2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/11d5b37c69746e9366fccc43c84a69d84279f5a2/commentsjv }(loginsvc-autoreleaseidJ(jv MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5jv ,https://api.github.com/users/svc-autoreleasejv "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminujv }(jv svc-autoreleasejv J(jv MDQ6VXNlcjUxNzE4MzQ2jv 4https://avatars.githubusercontent.com/u/51718346?v=4jv h5jv ,https://api.github.com/users/svc-autoreleasejv "https://github.com/svc-autoreleasejv 6https://api.github.com/users/svc-autorelease/followersjv Chttps://api.github.com/users/svc-autorelease/following{/other_user}jv <https://api.github.com/users/svc-autorelease/gists{/gist_id}jv Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jv :https://api.github.com/users/svc-autorelease/subscriptionsjv 1https://api.github.com/users/svc-autorelease/orgsjv 2https://api.github.com/users/svc-autorelease/reposjv =https://api.github.com/users/svc-autorelease/events{/privacy}jv <https://api.github.com/users/svc-autorelease/received_eventsjv Userjv uparents]}(jv (bde83b0dd394ba9dc51321bd2364ae23edc2887djv ^https://api.github.com/repos/palantir/atlasdb/commits/bde83b0dd394ba9dc51321bd2364ae23edc2887djv Shttps://github.com/palantir/atlasdb/commit/bde83b0dd394ba9dc51321bd2364ae23edc2887duastats}(totalK 	additionsK 	deletionsK ufiles]}(jv (bc64692f16e707b561a8379f3f0058ed44b4c10afilename changelog/0.809.0/pr-6462.v2.ymlstatusrenamedjv K jv K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/11d5b37c69746e9366fccc43c84a69d84279f5a2/changelog%2F0.809.0%2Fpr-6462.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/11d5b37c69746e9366fccc43c84a69d84279f5a2/changelog%2F0.809.0%2Fpr-6462.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.809.0%2Fpr-6462.v2.yml?ref=11d5b37c69746e9366fccc43c84a69d84279f5a2previous_filename$changelog/@unreleased/pr-6462.v2.ymluau(4c44509aa6f6c9757f42402cf9a176c4a722cb49}(sha(4c44509aa6f6c9757f42402cf9a176c4a722cb49node_idEC_kwDOAjP5fdoAKDRjNDQ1MDlhYTZmNmM5NzU3ZjQyNDAyY2Y5YTE3NmM0YTcyMmNiNDkcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-28T11:55:18Zu	committer}(jw GitHubjw noreply@github.comj
w 2023-02-28T11:55:18Zumessage[TTS/Backup & Restore] Prevent rollout of TTS without consideration of backup and restore (#6457)

Enabling users to use TTS will require an explicit removal of a check that asks one to consider internal backup and restore workflows.tree}(jv (8451234ffd457f7bfaa603533fa68cf4a7be6a86url`https://api.github.com/repos/palantir/atlasdb/git/trees/8451234ffd457f7bfaa603533fa68cf4a7be6a86ujw bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4c44509aa6f6c9757f42402cf9a176c4a722cb49
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJj/eumCRBK7hj4Ov3rIwAAfwUIAAsJ4wn5B8z/4bpmSdNclVIE
/+I3OjyTv4N6YhZXbyPbYuinWcOAyK0nzZ7nLjkBblueSIiW8DtgsE1hiZuSIb3w
ARyTvKqpOVmvv4rU1fmoYNxqVjZSyVYvcqmbA8VCtaX2sxCwd2YFNd77OKKU4B6u
UQS72N41/lLB8h6y5dMhF6u1NnKU2oNzH5Z6gn4fqsLv8gqsGjme0AkvuW0epJu6
GhH7Eu3tgngll1tGoVJruTK6siOvPoxGkmygci+x3mx9fv36KvSgvJHgYjI7oVK/
Pyes1K3oRvqrI0/syhxiaBWYTCyRCYn+zACWISUGS1zjcdtj0ylo+veYOUfgsxM=
=bnpr
-----END PGP SIGNATURE-----
payloadX  tree 8451234ffd457f7bfaa603533fa68cf4a7be6a86
parent 93e21c80431d269d5e6ea469a36c4604208d2a82
author Jeremy Kong <jkong@palantir.com> 1677585318 +0000
committer GitHub <noreply@github.com> 1677585318 +0000

[TTS/Backup & Restore] Prevent rollout of TTS without consideration of backup and restore (#6457)

Enabling users to use TTS will require an explicit removal of a check that asks one to consider internal backup and restore workflows.
uujw ^https://api.github.com/repos/palantir/atlasdb/commits/4c44509aa6f6c9757f42402cf9a176c4a722cb49html_urlShttps://github.com/palantir/atlasdb/commit/4c44509aa6f6c9757f42402cf9a176c4a722cb49comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4c44509aa6f6c9757f42402cf9a176c4a722cb49/commentsjw }(login
jeremyk-91idJZ j w MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jw 'https://api.github.com/users/jeremyk-91j$w https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujw }(j)w web-flowj+w J/j w MDQ6VXNlcjE5ODY0NDQ3j-w 4https://avatars.githubusercontent.com/u/19864447?v=4j/w h5jw %https://api.github.com/users/web-flowj$w https://github.com/web-flowj2w /https://api.github.com/users/web-flow/followersj4w <https://api.github.com/users/web-flow/following{/other_user}j6w 5https://api.github.com/users/web-flow/gists{/gist_id}j8w <https://api.github.com/users/web-flow/starred{/owner}{/repo}j:w 3https://api.github.com/users/web-flow/subscriptionsj<w *https://api.github.com/users/web-flow/orgsj>w +https://api.github.com/users/web-flow/reposj@w 6https://api.github.com/users/web-flow/events{/privacy}jBw 5https://api.github.com/users/web-flow/received_eventsjDw UserjFw uparents]}(jv (93e21c80431d269d5e6ea469a36c4604208d2a82jw ^https://api.github.com/repos/palantir/atlasdb/commits/93e21c80431d269d5e6ea469a36c4604208d2a82j$w Shttps://github.com/palantir/atlasdb/commit/93e21c80431d269d5e6ea469a36c4604208d2a82uastats}(totalK
	additionsK
	deletionsK ufiles]}(jv (f731f001f23527f0bc340f51646408b5e3f193f2filename\atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/TransactionConstants.javastatusmodifiedj`w K
jaw K changesK
blob_urlhttps://github.com/palantir/atlasdb/blob/4c44509aa6f6c9757f42402cf9a176c4a722cb49/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4c44509aa6f6c9757f42402cf9a176c4a722cb49/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.java?ref=4c44509aa6f6c9757f42402cf9a176c4a722cb49patchX;  @@ -25,6 +25,8 @@
 import com.palantir.atlasdb.table.description.ValueType;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
 
 public final class TransactionConstants {
     private TransactionConstants() {
@@ -101,4 +103,15 @@ public static long getTimestampForValue(byte[] encodedTimestamp) {
             .explicitCompressionBlockSizeKB(64)
             .denselyAccessedWideRows(true)
             .build();
+
+    static {
+        Preconditions.checkState(
+                !SUPPORTED_TRANSACTIONS_SCHEMA_VERSIONS.contains(TTS_TRANSACTIONS_SCHEMA_VERSION),
+                "Supporting Transactions Table Sweep WILL require changes to internal backup and restore workflows;"
+                    + " failure to do so may only be discoverable at restore time in some implementations. This check"
+                    + " MUST NOT be removed without knowledge that suitable changes have been made to these"
+                    + " workflows.",
+                SafeArg.of("supportedTransactionsSchemaVersions", SUPPORTED_TRANSACTIONS_SCHEMA_VERSIONS),
+                SafeArg.of("transactionsTableSweepSchemaVersion", TTS_TRANSACTIONS_SCHEMA_VERSION));
+    }
 }uau(1454fde89cd63f3f9a63d86bd2ae941d311384cc}(sha(1454fde89cd63f3f9a63d86bd2ae941d311384ccnode_idEC_kwDOAjP5fdoAKDE0NTRmZGU4OWNkNjNmM2Y5YTYzZDg2YmQyYWU5NDFkMzExMzg0Y2Mcommit}(author}(nameMichael Wintermeyeremailmichaelw@palantir.comdate2023-03-20T16:49:58Zu	committer}(j}w Michael Wintermeyerjw michaelw@palantir.comjw 2023-03-20T16:49:58Zumessageempty committree}(juw (0248a38b50b0749e7bd4e156ca935574697f1917url`https://api.github.com/repos/palantir/atlasdb/git/trees/0248a38b50b0749e7bd4e156ca935574697f1917ujw bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1454fde89cd63f3f9a63d86bd2ae941d311384cc
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE8lX9sA3B6yGcd/5kEyeP7w0U/hEFAmQYjrYACgkQEyeP7w0U
/hEcLQgAkdpAKO+CUNqL3ugjujKK31jLKu7gn+1qVSMuX/p0FDCOasH70wWtrkKi
8skJwYXErW0LrTh5s6x7mg+0WWtLzgt+2YKfR0BfN6/uMXIM8MuUmetsvIZL8p5g
fk5stgC2EHbm8Lp2HuzkD6R90hXVqRwapCIY9L2AMKX4YjgIeuUaO2GGb/qstGBQ
1wUknRYBttfa0CW8puOuuQOI9ulGyRWnsRdSHHK9/nGcCfItocO++pkPVyNZHGzP
0WVvkpt2SYd9EvctvBSUKYszjWgtXbXix6nBeDr9A/GsST2m2fJ+32nrTOV/dpXD
VED9QLcfnhXTduJVIgLMS/oa2Rk3MA==
=H0SE
-----END PGP SIGNATURE-----payloadtree 0248a38b50b0749e7bd4e156ca935574697f1917
parent 832c92927290012a66022bdd26d98ae87d5e2cbb
author Michael Wintermeyer <michaelw@palantir.com> 1679330998 -0400
committer Michael Wintermeyer <michaelw@palantir.com> 1679330998 -0400

empty commit
uujw ^https://api.github.com/repos/palantir/atlasdb/commits/1454fde89cd63f3f9a63d86bd2ae941d311384cchtml_urlShttps://github.com/palantir/atlasdb/commit/1454fde89cd63f3f9a63d86bd2ae941d311384cccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1454fde89cd63f3f9a63d86bd2ae941d311384cc/commentsj{w }(login
mswintermeyeridJX% jww MDQ6VXNlcjI0MzIwODg=
avatar_url3https://avatars.githubusercontent.com/u/2432088?v=4gravatar_idh5jw *https://api.github.com/users/mswintermeyerjw  https://github.com/mswintermeyer
followers_url4https://api.github.com/users/mswintermeyer/followers
following_urlAhttps://api.github.com/users/mswintermeyer/following{/other_user}	gists_url:https://api.github.com/users/mswintermeyer/gists{/gist_id}starred_urlAhttps://api.github.com/users/mswintermeyer/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/mswintermeyer/subscriptionsorganizations_url/https://api.github.com/users/mswintermeyer/orgs	repos_url0https://api.github.com/users/mswintermeyer/repos
events_url;https://api.github.com/users/mswintermeyer/events{/privacy}received_events_url:https://api.github.com/users/mswintermeyer/received_eventstypeUser
site_adminujw }(jw 
mswintermeyerjw JX% jww MDQ6VXNlcjI0MzIwODg=jw 3https://avatars.githubusercontent.com/u/2432088?v=4jw h5jw *https://api.github.com/users/mswintermeyerjw  https://github.com/mswintermeyerjw 4https://api.github.com/users/mswintermeyer/followersjw Ahttps://api.github.com/users/mswintermeyer/following{/other_user}jw :https://api.github.com/users/mswintermeyer/gists{/gist_id}jw Ahttps://api.github.com/users/mswintermeyer/starred{/owner}{/repo}jw 8https://api.github.com/users/mswintermeyer/subscriptionsjw /https://api.github.com/users/mswintermeyer/orgsjw 0https://api.github.com/users/mswintermeyer/reposjw ;https://api.github.com/users/mswintermeyer/events{/privacy}jw :https://api.github.com/users/mswintermeyer/received_eventsjw Userjw uparents]}(juw (832c92927290012a66022bdd26d98ae87d5e2cbbjw ^https://api.github.com/repos/palantir/atlasdb/commits/832c92927290012a66022bdd26d98ae87d5e2cbbjw Shttps://github.com/palantir/atlasdb/commit/832c92927290012a66022bdd26d98ae87d5e2cbbuastats}(totalK 	additionsK 	deletionsK ufiles]u(56beb1bf9d0394d07288cb324b28314267fff5c1}(sha(56beb1bf9d0394d07288cb324b28314267fff5c1node_idEC_kwDOAjP5fdoAKDU2YmViMWJmOWQwMzk0ZDA3Mjg4Y2IzMjRiMjgzMTQyNjdmZmY1YzEcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-03-29T11:26:10Zu	committer}(jw 
Ahmed Alouanejw aalouane@palantir.comjw 2023-03-29T11:26:10Zumessageapi flagtree}(jw (30f5d25195e8832e47f8318a3a65a6010e182533url`https://api.github.com/repos/palantir/atlasdb/git/trees/30f5d25195e8832e47f8318a3a65a6010e182533ujw bhttps://api.github.com/repos/palantir/atlasdb/git/commits/56beb1bf9d0394d07288cb324b28314267fff5c1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQkIFIACgkQPlMHVIT1
yhqEXAf/ewC3Ndt6J3iUBATRMvmAu774HlNG2+DYOI64gtemlv4deGU97LhEk33C
VhhAjyUDErgc/d/qXyKSop9e4Zv1QfdIzztjpoua7JjxACukAvh1sPir+C5hi9jf
oLeVkX9eb8swsZjt5uwwfXPm39d0qXN3N4K3kG84CJGvAXo+cwpfuWzwj1aDTsJw
KLm4zbtRulqP+mK9wNZuJOm8zE3VcARNzhWxr11+WcVypgiMAB3trafHmLgjOD5w
gOv0D5xAlb6NlS4erTXgkytQQsIc3CAc19XQKa+UIyJvGripDI9yKIyOK9PuVNTF
du2pXsUQOt8e//fHcPPwDvZO6oAztA==
=bulV
-----END PGP SIGNATURE-----payloadtree 30f5d25195e8832e47f8318a3a65a6010e182533
parent 561379dab3c389eca498ebc911081193b7e3fc78
author Ahmed Alouane <aalouane@palantir.com> 1680089170 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1680089170 +0100

api flag
uujw ^https://api.github.com/repos/palantir/atlasdb/commits/56beb1bf9d0394d07288cb324b28314267fff5c1html_urlShttps://github.com/palantir/atlasdb/commit/56beb1bf9d0394d07288cb324b28314267fff5c1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/56beb1bf9d0394d07288cb324b28314267fff5c1/commentsjw }(loginergo14idJjw MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jw #https://api.github.com/users/ergo14jx https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujw }(jx ergo14j
x Jjw MDQ6VXNlcjMwOTAzNzM2jx 4https://avatars.githubusercontent.com/u/30903736?v=4jx h5jw #https://api.github.com/users/ergo14jx https://github.com/ergo14jx -https://api.github.com/users/ergo14/followersjx :https://api.github.com/users/ergo14/following{/other_user}jx 3https://api.github.com/users/ergo14/gists{/gist_id}jx :https://api.github.com/users/ergo14/starred{/owner}{/repo}jx 1https://api.github.com/users/ergo14/subscriptionsjx (https://api.github.com/users/ergo14/orgsjx )https://api.github.com/users/ergo14/reposjx 4https://api.github.com/users/ergo14/events{/privacy}j!x 3https://api.github.com/users/ergo14/received_eventsj#x Userj%x uparents]}(jw (561379dab3c389eca498ebc911081193b7e3fc78jw ^https://api.github.com/repos/palantir/atlasdb/commits/561379dab3c389eca498ebc911081193b7e3fc78jx Shttps://github.com/palantir/atlasdb/commit/561379dab3c389eca498ebc911081193b7e3fc78uastats}(totalK	additionsK	deletionsKufiles](}(jw (81f2ab027cd69727dec27f2b9a0f6a7d1ad868b2filename9timelock-api/src/main/conjure/timelock-management-api.ymlstatusmodifiedj?x Kj@x KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/56beb1bf9d0394d07288cb324b28314267fff5c1/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/56beb1bf9d0394d07288cb324b28314267fff5c1/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.yml?ref=56beb1bf9d0394d07288cb324b28314267fff5c1patchX  @@ -10,7 +10,8 @@ services:
         returns: set<string>
         docs: |
           The endpoint loads all persisted namespaces. ``leaderPaxos`` is filtered out from the set
-          as it is not a namespace.
+          as it is not a namespace. No transactionality guarantees are given: namespace additions and
+          deletions while the request is running may or may not be reflected in the output.
 
       getActiveNamespaces:
         http: POST /getActiveNamespacesu}(jw (f51d42df113edf4565c16d14a214a1259f59b6ecjEx ctimelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/PersistentNamespaceLoader.javajGx modifiedj?x Kj@x KjIx KjJx https://github.com/palantir/atlasdb/blob/56beb1bf9d0394d07288cb324b28314267fff5c1/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FPersistentNamespaceLoader.javajLx https://github.com/palantir/atlasdb/raw/56beb1bf9d0394d07288cb324b28314267fff5c1/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FPersistentNamespaceLoader.javajNx https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FPersistentNamespaceLoader.java?ref=56beb1bf9d0394d07288cb324b28314267fff5c1jPx X  @@ -22,7 +22,8 @@
 public interface PersistentNamespaceLoader {
     /**
      * Gets all namespaces that have been persisted (via the persistence method under question).
-     * No transactionality guarantees are given.
+     * No transactionality guarantees are given: namespace additions and deletions while the
+     * request is running may or may not be reflected in the output.
      */
     Set<Client> getAllPersistedNamespaces();
 }ueu(90f1a60c4c9a5c488f5c78a7abdd1cd0688954a7}(sha(90f1a60c4c9a5c488f5c78a7abdd1cd0688954a7node_idEC_kwDOAjP5fdoAKDkwZjFhNjBjNGM5YTVjNDg4ZjVjNzhhN2FiZGQxY2QwNjg4OTU0YTccommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-03-30T22:51:27Zu	committer}(jdx 
svc-changelogjfx svc-changelog@palantir.comjhx 2023-03-30T22:51:27ZumessageAdd generated changelog entriestree}(j\x (bc103b66b0188c94bc0d165807a14e1dab742c79url`https://api.github.com/repos/palantir/atlasdb/git/trees/bc103b66b0188c94bc0d165807a14e1dab742c79ujtx bhttps://api.github.com/repos/palantir/atlasdb/git/commits/90f1a60c4c9a5c488f5c78a7abdd1cd0688954a7
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQmEm8JEHYaJX37fAFQAAD3rQEAqjxYAC5jhDCKQ43gD95/LtPr
IRKlY7tMG3stpfTMMYkA/0d0xBAUQPKM/Cei9VAS4CYyRCPlQdi8LFwEosh1JVXf
=6Ic1
-----END PGP SIGNATURE-----payloadX  tree bc103b66b0188c94bc0d165807a14e1dab742c79
parent dfe82c463cb5459dd20b865c9ed7c245cc71bcc8
author svc-changelog <svc-changelog@palantir.com> 1680216687 +0000
committer svc-changelog <svc-changelog@palantir.com> 1680216687 +0000

Add generated changelog entriesuujtx ^https://api.github.com/repos/palantir/atlasdb/commits/90f1a60c4c9a5c488f5c78a7abdd1cd0688954a7html_urlShttps://github.com/palantir/atlasdb/commit/90f1a60c4c9a5c488f5c78a7abdd1cd0688954a7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/90f1a60c4c9a5c488f5c78a7abdd1cd0688954a7/commentsjbx }(login
svc-changelogidJ#j^x MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jtx *https://api.github.com/users/svc-changelogjx  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujjx }(jx 
svc-changelogjx J#j^x MDQ6VXNlcjg0MDc3NjAzjx 4https://avatars.githubusercontent.com/u/84077603?v=4jx h5jtx *https://api.github.com/users/svc-changelogjx  https://github.com/svc-changelogjx 4https://api.github.com/users/svc-changelog/followersjx Ahttps://api.github.com/users/svc-changelog/following{/other_user}jx :https://api.github.com/users/svc-changelog/gists{/gist_id}jx Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jx 8https://api.github.com/users/svc-changelog/subscriptionsjx /https://api.github.com/users/svc-changelog/orgsjx 0https://api.github.com/users/svc-changelog/reposjx ;https://api.github.com/users/svc-changelog/events{/privacy}jx :https://api.github.com/users/svc-changelog/received_eventsjx Userjx uparents]}(j\x (dfe82c463cb5459dd20b865c9ed7c245cc71bcc8jtx ^https://api.github.com/repos/palantir/atlasdb/commits/dfe82c463cb5459dd20b865c9ed7c245cc71bcc8jx Shttps://github.com/palantir/atlasdb/commit/dfe82c463cb5459dd20b865c9ed7c245cc71bcc8uastats}(totalK	additionsK	deletionsK ufiles]}(j\x (310ea4f85263ce4f8ddc5b071ffc29d88987510efilename$changelog/@unreleased/pr-6490.v2.ymlstatusaddedjx Kjx K changesKblob_url|https://github.com/palantir/atlasdb/blob/90f1a60c4c9a5c488f5c78a7abdd1cd0688954a7/changelog%2F%40unreleased%2Fpr-6490.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/90f1a60c4c9a5c488f5c78a7abdd1cd0688954a7/changelog%2F%40unreleased%2Fpr-6490.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6490.v2.yml?ref=90f1a60c4c9a5c488f5c78a7abdd1cd0688954a7patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Executors created using `PTExecutors` don't produce metrics by default.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6490uau(7aa040e3b4ebf5746edf2ea0eafe52442978927e}(sha(7aa040e3b4ebf5746edf2ea0eafe52442978927enode_idEC_kwDOAjP5fdoAKDdhYTA0MGUzYjRlYmY1NzQ2ZWRmMmVhMGVhZmU1MjQ0Mjk3ODkyN2Ucommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-27T13:54:31Zu	committer}(jx Jeremy Kongjx jkong@palantir.comjx 2023-02-27T13:54:31ZumessageResolve merge conflictstree}(jx (363a2949e02c22914ab62eb33431bb8a4a8222eeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/363a2949e02c22914ab62eb33431bb8a4a8222eeujx bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7aa040e3b4ebf5746edf2ea0eafe52442978927e
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmP8thgACgkQTLdFKain
zjywBgf9G3aVDijlpxM+477NI8S4Sp23MAtJJslMpuYPnEyqzEmmESrdxHsEGnX6
rlDD1VIdqIrZEiWKVRnyWn7ev5otg1YXUs7C3t0tX/WrwxBSzcF63L7L2ZPcpi5m
FgPJjgR9+lfwjb9L9yD9KeUuE/FEQsmVEGx5/kY+i3fDXikO0GTYW83tznBJAL+A
DJS50VhtNK9Eb9ix8nV21uZ8DOZ+ai1zTUlgs701mvV2BCgkfvIz72BrG1njQ9Tq
cEiCS8zsq1I/qBzt6BVCeHKBnZY0TmlfIYYzwMOQCz0SRM9DG3Yo/VsbjqprujjT
k/wtKhRwm0fsv7+LEs8jFC5iStP7aQ==
=lZix
-----END PGP SIGNATURE-----payloadX  tree 363a2949e02c22914ab62eb33431bb8a4a8222ee
parent 5834e0d171c6c6708ff3ffe3cbc9ec40ff81afe6
parent b0b25b88284141ca3729494caadeaf1033f9cf76
author Jeremy Kong <jkong@palantir.com> 1677506071 +0000
committer Jeremy Kong <jkong@palantir.com> 1677506071 +0000

Resolve merge conflicts
uujx ^https://api.github.com/repos/palantir/atlasdb/commits/7aa040e3b4ebf5746edf2ea0eafe52442978927ehtml_urlShttps://github.com/palantir/atlasdb/commit/7aa040e3b4ebf5746edf2ea0eafe52442978927ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7aa040e3b4ebf5746edf2ea0eafe52442978927e/commentsjx }(login
jeremyk-91idJZ jx MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jx 'https://api.github.com/users/jeremyk-91jx https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptions	      organizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujx }(jx 
jeremyk-91j y JZ jx MDQ6VXNlcjU5NTU1MTA=jy 3https://avatars.githubusercontent.com/u/5955510?v=4jy h5jx 'https://api.github.com/users/jeremyk-91jx https://github.com/jeremyk-91jy 1https://api.github.com/users/jeremyk-91/followersj	y >https://api.github.com/users/jeremyk-91/following{/other_user}jy 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j
y >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jy 5https://api.github.com/users/jeremyk-91/subscriptionsjy ,https://api.github.com/users/jeremyk-91/orgsjy -https://api.github.com/users/jeremyk-91/reposjy 8https://api.github.com/users/jeremyk-91/events{/privacy}jy 7https://api.github.com/users/jeremyk-91/received_eventsjy Userjy uparents](}(jx (5834e0d171c6c6708ff3ffe3cbc9ec40ff81afe6jx ^https://api.github.com/repos/palantir/atlasdb/commits/5834e0d171c6c6708ff3ffe3cbc9ec40ff81afe6jx Shttps://github.com/palantir/atlasdb/commit/5834e0d171c6c6708ff3ffe3cbc9ec40ff81afe6u}(jx (b0b25b88284141ca3729494caadeaf1033f9cf76jx ^https://api.github.com/repos/palantir/atlasdb/commits/b0b25b88284141ca3729494caadeaf1033f9cf76jx Shttps://github.com/palantir/atlasdb/commit/b0b25b88284141ca3729494caadeaf1033f9cf76uestats}(totalM~	additionsKƌ	deletionsKufiles](}(jx (9891f60d67299ccc96e2e1505697622b429cd956filenamejatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/KeyedTransactionTask.javastatusrenamedj9y Kj:y KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7aa040e3b4ebf5746edf2ea0eafe52442978927e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7aa040e3b4ebf5746edf2ea0eafe52442978927e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.java?ref=7aa040e3b4ebf5746edf2ea0eafe52442978927epatchX  @@ -26,6 +26,8 @@
  * as an input, and returns an {@link Optional} of {@link WitnessedTransaction}. Here, "index" refers to an integer
  * between 0 and the {@link WorkflowConfiguration#iterationCount()} - each copy of the task will receive a different
  * integer.
+ * If the transaction does not succeed, then the task should return an {@link Optional#empty()}. It should not throw
+ * an exception.
  */
 @FunctionalInterface
-public interface IndexedTransactionTask extends BiFunction<TransactionStore, Integer, Optional<WitnessedTransaction>> {}
+public interface KeyedTransactionTask extends BiFunction<TransactionStore, Integer, Optional<WitnessedTransaction>> {}previous_filenamelatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/IndexedTransactionTask.javau}(jx (f1fc2d0dbca1835573ea2d40a263c5e433b57888j?y ^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/Workflow.javajAy modifiedj9y Kj:y KjCy KjDy https://github.com/palantir/atlasdb/blob/7aa040e3b4ebf5746edf2ea0eafe52442978927e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.javajFy https://github.com/palantir/atlasdb/raw/7aa040e3b4ebf5746edf2ea0eafe52442978927e/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.javajHy https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.java?ref=7aa040e3b4ebf5746edf2ea0eafe52442978927ejJy X  @@ -16,20 +16,15 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import java.util.function.Consumer;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.List;
 
 public interface Workflow {
     /**
-     * Runs desired workflow until completion, including calling callbacks registered via {@link #onComplete(Consumer)}.
+     * Runs desired workflow until completion. Returns a list of {@link WitnessedTransaction}, that corresponds to
+     * transactions that were known to be completed.
+     * This list is sorted by ascending "timeline timestamp", which is taken to be the commit timestamp in the case
+     * of read-write transactions, and the start timestamp in the case of read-only transactions.
      */
-    void run();
-
-    /**
-     * Registers a callback that will be called synchronously when the workflow has completed.
-     * If multiple callbacks are registered, there are no guarantees on the order in which they execute, or that they
-     * will execute sequentially or in parallel.
-     *
-     * Behaviour if consumers are added after a call of {@link #run()} has started are undefined.
-     */
-    Workflow onComplete(Consumer<WorkflowHistory> consumer);
+    List<WitnessedTransaction> run();
 }u}(jx (b4d783dbb2dd31f37be8e3b44482b52a6583de01j?y gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/ReadOnlyTransactionStore.javajAy addedj9y K$j:y K jCy K$jDy https://github.com/palantir/atlasdb/blob/7aa040e3b4ebf5746edf2ea0eafe52442978927e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javajFy https://github.com/palantir/atlasdb/raw/7aa040e3b4ebf5746edf2ea0eafe52442978927e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javajHy https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.java?ref=7aa040e3b4ebf5746edf2ea0eafe52442978927ejJy X  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import java.util.Optional;
+
+/**
+ * Facade around {@link ReadableTransactionStore}, to prevent users from casting to retrieve an underlying store that
+ * may implement more functionality.
+ */
+public final class ReadOnlyTransactionStore implements ReadableTransactionStore {
+    private final ReadableTransactionStore delegate;
+
+    public ReadOnlyTransactionStore(ReadableTransactionStore delegate) {
+        this.delegate = delegate;
+    }
+
+    @Override
+    public Optional<Integer> get(String table, WorkloadCell cell) {
+        return delegate.get(table, cell);
+    }
+}u}(jx (b204272a176a774b133f28a9d6c4aef2b38af775j?y matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunner.javajAy modifiedj9y Kj:y KjCy KjDy https://github.com/palantir/atlasdb/blob/7aa040e3b4ebf5746edf2ea0eafe52442978927e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javajFy https://github.com/palantir/atlasdb/raw/7aa040e3b4ebf5746edf2ea0eafe52442978927e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javajHy https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.java?ref=7aa040e3b4ebf5746edf2ea0eafe52442978927ejJy X  @@ -41,7 +41,7 @@ public ConcurrentTransactionRunner(
     }
 
     public Future<List<WitnessedTransaction>> runConcurrentTransactionTask(
-            IndexedTransactionTask transactionTask, int taskMultiplicity) {
+            KeyedTransactionTask transactionTask, int taskMultiplicity) {
         Preconditions.checkArgument(
                 taskMultiplicity >= 0,
                 "Tasks must be run a non-negative number of times",u}(jx (ac2169ba03ac1a299bca1373b1001f180fb6da4bj?y aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javajAy modifiedj9y Kj:y KjCy K.jDy https://github.com/palantir/atlasdb/blob/7aa040e3b4ebf5746edf2ea0eafe52442978927e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajFy https://github.com/palantir/atlasdb/raw/7aa040e3b4ebf5746edf2ea0eafe52442978927e/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajHy https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=7aa040e3b4ebf5746edf2ea0eafe52442978927ejJy X  @@ -16,49 +16,65 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.logsafe.exceptions.SafeRuntimeException;
+import java.util.Comparator;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
-import java.util.function.Consumer;
+import java.util.stream.Collectors;
 
 public final class DefaultWorkflow implements Workflow {
     private final ConcurrentTransactionRunner concurrentTransactionRunner;
-    private final HistoryConsumptionRegistrar historyConsumptionRegistrar;
-    private final IndexedTransactionTask transactionTask;
+    private final KeyedTransactionTask transactionTask;
     private final WorkflowConfiguration workflowConfiguration;
 
     private DefaultWorkflow(
             ConcurrentTransactionRunner concurrentTransactionRunner,
-            HistoryConsumptionRegistrar historyConsumptionRegistrar,
-            IndexedTransactionTask transactionTask,
+            KeyedTransactionTask transactionTask,
             WorkflowConfiguration workflowConfiguration) {
         this.concurrentTransactionRunner = concurrentTransactionRunner;
-        this.historyConsumptionRegistrar = historyConsumptionRegistrar;
         this.transactionTask = transactionTask;
         this.workflowConfiguration = workflowConfiguration;
     }
 
     public static Workflow create(
-            TransactionStore store, IndexedTransactionTask transactionTask, WorkflowConfiguration configuration) {
+            TransactionStore store, KeyedTransactionTask transactionTask, WorkflowConfiguration configuration) {
         return new DefaultWorkflow(
                 new ConcurrentTransactionRunner(store, configuration.executionExecutor()),
-                new HistoryConsumptionRegistrar(store),
                 transactionTask,
                 configuration);
     }
 
     @Override
-    public void run() {
-        Future<List<WitnessedTransaction>> witnessedTransactions =
+    public List<WitnessedTransaction> run() {
+        return sortByEffectiveTimestamp(runTransactionTask());
+    }
+
+    private List<WitnessedTransaction> runTransactionTask() {
+        Future<List<WitnessedTransaction>> transactionsFuture =
                 concurrentTransactionRunner.runConcurrentTransactionTask(
                         transactionTask, workflowConfiguration.iterationCount());
-        historyConsumptionRegistrar.runOnConsumersBlocking(witnessedTransactions);
+        try {
+            return transactionsFuture.get();
+        } catch (InterruptedException e) {
+            Thread.currentThread().interrupt();
+            throw new SafeRuntimeException(e);
+        } catch (ExecutionException e) {
+            throw new SafeRuntimeException("Error when running workflow task", e.getCause());
+        }
     }
 
-    @Override
-    public Workflow onComplete(Consumer<WorkflowHistory> consumer) {
-        historyConsumptionRegistrar.addConsumer(consumer);
-        return this;
+    @VisibleForTesting
+    static List<WitnessedTransaction> sortByEffectiveTimestamp(List<WitnessedTransaction> unorderedTransactions) {
+        return unorderedTransactions.stream()
+                .sorted(Comparator.comparingLong(DefaultWorkflow::effectiveTimestamp))
+                .collect(Collectors.toList());
+    }
+
+    private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
+        return witnessedTransaction.commitTimestamp().orElse(witnessedTransaction.startTimestamp());
     }
 }u}(jx (c34e27f91c4724a99a625bf6454478cab9cc662ej?y matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/HistoryConsumptionRegistrar.javajAy removedj9y K j:y K>jCy K>jDy https://github.com/palantir/atlasdb/blob/5834e0d171c6c6708ff3ffe3cbc9ec40ff81afe6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FHistoryConsumptionRegistrar.javajFy https://github.com/palantir/atlasdb/raw/5834e0d171c6c6708ff3ffe3cbc9ec40ff81afe6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FHistoryConsumptionRegistrar.javajHy https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FHistoryConsumptionRegistrar.java?ref=5834e0d171c6c6708ff3ffe3cbc9ec40ff81afe6jJy X
  @@ -1,62 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.workflow;
-
-import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
-import com.palantir.logsafe.exceptions.SafeRuntimeException;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.Deque;
-import java.util.List;
-import java.util.concurrent.ConcurrentLinkedDeque;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.Future;
-import java.util.function.Consumer;
-
-public final class HistoryConsumptionRegistrar {
-    private static final SafeLogger log = SafeLoggerFactory.get(HistoryConsumptionRegistrar.class);
-
-    private final ReadableTransactionStore readableTransactionStore;
-    private final Deque<Consumer<WorkflowHistory>> consumers = new ConcurrentLinkedDeque<>();
-
-    public HistoryConsumptionRegistrar(ReadableTransactionStore readableTransactionStore) {
-        this.readableTransactionStore = readableTransactionStore;
-    }
-
-    public void addConsumer(Consumer<WorkflowHistory> consumer) {
-        consumers.add(consumer);
-    }
-
-    public void runOnConsumersBlocking(Future<List<WitnessedTransaction>> witnessedTransactions) {
-        try {
-            WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
-                    .history(witnessedTransactions.get())
-                    .transactionStore(readableTransactionStore)
-                    .build();
-            for (Consumer<WorkflowHistory> consumer : consumers) {
-                consumer.accept(workflowHistory);
-            }
-        } catch (ExecutionException e) {
-            log.warn("Error when running workflow.", e);
-            throw new SafeRuntimeException("Error when running workflow.", e.getCause());
-        } catch (InterruptedException e) {
-            Thread.currentThread().interrupt();
-            throw new SafeRuntimeException(e);
-        }
-    }
-}u}(jx (cee8db449033a3a13c0b2fe1f413db0e41bcf1c1j?y qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunnerTest.javajAy modifiedj9y Kj:y KjCy KjDy https://github.com/palantir/atlasdb/blob/7aa040e3b4ebf5746edf2ea0eafe52442978927e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javajFy https://github.com/palantir/atlasdb/raw/7aa040e3b4ebf5746edf2ea0eafe52442978927e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javajHy https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.java?ref=7aa040e3b4ebf5746edf2ea0eafe52442978927ejJy X  @@ -49,7 +49,7 @@
 public class ConcurrentTransactionRunnerTest {
     private static final int DEFAULT_TASK_MULTIPLICITY = 100;
 
-    private final IndexedTransactionTask task = mock(IndexedTransactionTask.class);
+    private final KeyedTransactionTask task = mock(KeyedTransactionTask.class);
     private final TransactionStore store = mock(TransactionStore.class);
     private final DeterministicScheduler scheduler = new DeterministicScheduler();
     private final ListeningExecutorService executorService = MoreExecutors.listeningDecorator(scheduler);
@@ -95,7 +95,7 @@ public void resultFiltersOutTransactionsThatCouldNotBeWitnessed() {
         scheduler.runUntilIdle();
         List<WitnessedTransaction> witnessedTransactions = Futures.getUnchecked(witnessedTransactionsFuture);
         assertThat(witnessedTransactions)
-                .containsExactlyElementsOf(IntStream.range(0, DEFAULT_TASK_MULTIPLICITY)
+                .containsExactlyInAnyOrderElementsOf(IntStream.range(0, DEFAULT_TASK_MULTIPLICITY)
                         .filter(index -> !failingTasks.contains(index))
                         .mapToObj(ConcurrentTransactionRunnerTest::createWitnessedTransactionWithStartTimestamp)
                         .collect(Collectors.toList()));u}(jx (b1d358eeb4d730c38e271a30bf8342dde1c07049j?y eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javajAy addedj9y Kvj:y K jCy KvjDy https://github.com/palantir/atlasdb/blob/7aa040e3b4ebf5746edf2ea0eafe52442978927e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javajFy https://github.com/palantir/atlasdb/raw/7aa040e3b4ebf5746edf2ea0eafe52442978927e/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javajHy https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=7aa040e3b4ebf5746edf2ea0eafe52442978927ejJy X  @@ -0,0 +1,118 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.concurrent.ScheduledExecutorService;
+import org.junit.Test;
+
+public class DefaultWorkflowTest {
+    private final TransactionStore store = mock(TransactionStore.class);
+
+    private final KeyedTransactionTask transactionTask = mock(KeyedTransactionTask.class);
+
+    private final ScheduledExecutorService scheduler = PTExecutors.newSingleThreadScheduledExecutor();
+
+    @Test
+    public void handlesExceptionsInUnderlyingTasks() {
+        RuntimeException transactionException = new RuntimeException("boo");
+        when(transactionTask.apply(eq(store), anyInt())).thenThrow(transactionException);
+
+        Workflow workflow = DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2));
+        assertThatThrownBy(workflow::run)
+                .hasMessage("Error when running workflow task")
+                .hasCause(transactionException);
+    }
+
+    @Test
+    public void returnsUnderlyingWitnessedTransactions() {
+        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+
+        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight)))
+                .containsExactly(twoToEight);
+        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(readOnlyAtFive)))
+                .containsExactly(readOnlyAtFive);
+    }
+
+    @Test
+    public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
+        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        WitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
+        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
+                .containsExactly(fourToSix, threeToSeven, twoToEight);
+    }
+
+    @Test
+    public void sortsReadOnlyTransactionsByStartTimestamp() {
+        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        WitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
+
+        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(
+                        ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
+                .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
+    }
+
+    @Test
+    public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
+        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        WitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
+
+        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(
+                        twoToEight, readOnlyAtNine, fourToSix, readOnlyAtFive, readOnlyAtThree, readOnlyAtSeven)))
+                .containsExactly(
+                        readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
+    }
+
+    private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
+        return ImmutableWorkflowConfiguration.builder()
+                .iterationCount(iterationCount)
+                .executionExecutor(MoreExecutors.listeningDecorator(scheduler))
+                .build();
+    }
+
+    private static WitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
+        return ImmutableWitnessedTransaction.builder().startTimestamp(start).build();
+    }
+
+    private static WitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
+        return ImmutableWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+}u}(jx (c0137d798d6fc7fa58c4619528cebd66af596c67j?y qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/HistoryConsumptionRegistrarTest.javajAy removedj9y K j:y K[jCy K[jDy https://github.com/palantir/atlasdb/blob/5834e0d171c6c6708ff3ffe3cbc9ec40ff81afe6/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FHistoryConsumptionRegistrarTest.javajFy https://github.com/palantir/atlasdb/raw/5834e0d171c6c6708ff3ffe3cbc9ec40ff81afe6/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FHistoryConsumptionRegistrarTest.javajHy https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FHistoryConsumptionRegistrarTest.java?ref=5834e0d171c6c6708ff3ffe3cbc9ec40ff81afe6jJy X{  @@ -1,91 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.workflow;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.never;
-import static org.mockito.Mockito.verify;
-
-import com.google.common.collect.ImmutableList;
-import com.google.common.util.concurrent.Futures;
-import com.google.common.util.concurrent.SettableFuture;
-import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
-import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
-import com.palantir.common.concurrent.PTExecutors;
-import com.palantir.logsafe.exceptions.SafeRuntimeException;
-import java.util.List;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Future;
-import java.util.function.Consumer;
-import org.junit.Test;
-
-@SuppressWarnings("unchecked") // Mocks of known types
-public class HistoryConsumptionRegistrarTest {
-    private final ReadableTransactionStore readableTransactionStore = mock(ReadableTransactionStore.class);
-    private final Consumer<WorkflowHistory> historyConsumerOne = mock(Consumer.class);
-    private final Consumer<WorkflowHistory> historyConsumerTwo = mock(Consumer.class);
-    private final HistoryConsumptionRegistrar registrar = new HistoryConsumptionRegistrar(readableTransactionStore);
-
-    @Test
-    public void passesArgumentsAndStoreToAllConsumers() throws ExecutionException, InterruptedException {
-        SettableFuture<List<WitnessedTransaction>> witnessedTransactionsFuture = SettableFuture.create();
-        ExecutorService separateThreadExecutor = PTExecutors.newSingleThreadExecutor();
-
-        registrar.addConsumer(historyConsumerOne);
-        registrar.addConsumer(historyConsumerTwo);
-        Future<?> blockingTaskFuture =
-                separateThreadExecutor.submit(() -> registrar.runOnConsumersBlocking(witnessedTransactionsFuture));
-
-        assertThat(blockingTaskFuture).isNotDone();
-        verify(historyConsumerOne, never()).accept(any());
-        verify(historyConsumerTwo, never()).accept(any());
-
-        List<WitnessedTransaction> witnessedTransactions = ImmutableList.of(ImmutableWitnessedTransaction.builder()
-                .startTimestamp(5)
-                .commitTimestamp(9)
-                .addActions(WitnessedDeleteTransactionAction.of("foo", ImmutableWorkloadCell.of(1, 2)))
-                .build());
-        WorkflowHistory history = ImmutableWorkflowHistory.builder()
-                .transactionStore(readableTransactionStore)
-                .history(witnessedTransactions)
-                .build();
-        witnessedTransactionsFuture.set(witnessedTransactions);
-        blockingTaskFuture.get();
-
-        verify(historyConsumerOne).accept(history);
-        verify(historyConsumerTwo).accept(history);
-    }
-
-    @Test
-    public void propagatesExceptionsFromTransactionTasks() {
-        RuntimeException taskException = new RuntimeException("boom");
-
-        registrar.addConsumer(historyConsumerOne);
-        registrar.addConsumer(historyConsumerTwo);
-        assertThatThrownBy(() -> registrar.runOnConsumersBlocking(Futures.immediateFailedFuture(taskException)))
-                .isInstanceOf(SafeRuntimeException.class)
-                .hasMessageContaining("Error when running workflow.")
-                .hasCause(taskException);
-    }
-}ueu(9988301a91b9c55408f2b0c9b544a7c70730fd95}(sha(9988301a91b9c55408f2b0c9b544a7c70730fd95node_idEC_kwDOAjP5fdoAKDk5ODgzMDFhOTFiOWM1NTQwOGYyYjBjOWI1NDRhN2M3MDczMGZkOTUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-03T18:09:51Zu	committer}(jy GitHubjy noreply@github.comjy 2023-07-03T18:09:51ZumessageX  [Antithesis | Range Queries] Part 7: Bank Balance Workflow + GetRowsColumnRange (Snapshot Test) (#6612)

* Refactor TransactionActions to have explicitly named single cell variants

* broken tests

* Row column range read APIs

* Actually support row column range reads

* patchy patch

* add one more test

* change typing

* The Eagle has Landed

* More testing

* update random workflow

* CR notes

* snapshot support

* Bank balance stufftree}(jy (466d1e1b6d7cbb5ac75761d61d8f50e5c4443d97url`https://api.github.com/repos/palantir/atlasdb/git/trees/466d1e1b6d7cbb5ac75761d61d8f50e5c4443d97ujy bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9988301a91b9c55408f2b0c9b544a7c70730fd95
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkow7vCRBK7hj4Ov3rIwAA4s0IADKbtDXwDlPOtUW4r+JBqcuv
AesngOl1KBM48t4cEylW4SjNLG9rgnYBBjTNU467ciU6VG8xIjUucNoMLi5LUM1G
RB4SQ1xxj3fBWIZ2a2tIm1UDxuQb2qrxCu9yBwsSS+99uplvz2Bu43hVFgX42M8e
eYb+IUqXA1qK0MRwUw9AZTc/2YCGVJfmRQSKYZG583k8VImFKPMgOBMZdBmJ0w9t
E2j+k+KAq11YMDpi6bL3BYsE4TW87G3l7JuCzi1iflWYN6ImViEtbLeYIMQBdcyb
ok/ycv5styG0fd0JCBh1Lq9g1R9AEZOua7fLARJITr3WnhdCfkmRwahvJf0lq20=
=1b36
-----END PGP SIGNATURE-----
payloadX  tree 466d1e1b6d7cbb5ac75761d61d8f50e5c4443d97
parent b1dfe8f8f9cb59884c44e3f626c518fe884d9708
author Jeremy Kong <jkong@palantir.com> 1688407791 +0100
committer GitHub <noreply@github.com> 1688407791 +0100

[Antithesis | Range Queries] Part 7: Bank Balance Workflow + GetRowsColumnRange (Snapshot Test) (#6612)

* Refactor TransactionActions to have explicitly named single cell variants

* broken tests

* Row column range read APIs

* Actually support row column range reads

* patchy patch

* add one more test

* change typing

* The Eagle has Landed

* More testing

* update random workflow

* CR notes

* snapshot support

* Bank balance stuffuujy ^https://api.github.com/repos/palantir/atlasdb/commits/9988301a91b9c55408f2b0c9b544a7c70730fd95html_urlShttps://github.com/palantir/atlasdb/commit/9988301a91b9c55408f2b0c9b544a7c70730fd95comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9988301a91b9c55408f2b0c9b544a7c70730fd95/commentsjy }(login
jeremyk-91idJZ jy MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jy 'https://api.github.com/users/jeremyk-91jy https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujy }(jy web-flowjy J/jy MDQ6VXNlcjE5ODY0NDQ3jy 4https://avatars.githubusercontent.com/u/19864447?v=4jy h5jy %https://api.github.com/users/web-flowjy https://github.com/web-flowjy /https://api.github.com/users/web-flow/followersjy <https://api.github.com/users/web-flow/following{/other_user}jy 5https://api.github.com/users/web-flow/gists{/gist_id}jy <https://api.github.com/users/web-flow/starred{/owner}{/repo}jy 3https://api.github.com/users/web-flow/subscriptionsjy *https://api.github.com/users/web-flow/orgsjy +https://api.github.com/users/web-flow/reposjy 6https://api.github.com/users/web-flow/events{/privacy}jy 5https://api.github.com/users/web-flow/received_eventsjy Userjy uparents]}(jy (b1dfe8f8f9cb59884c44e3f626c518fe884d9708jy ^https://api.github.com/repos/palantir/atlasdb/commits/b1dfe8f8f9cb59884c44e3f626c518fe884d9708jy Shttps://github.com/palantir/atlasdb/commit/b1dfe8f8f9cb59884c44e3f626c518fe884d9708uastats}(totalK+	additionsK	deletionsK
ufiles](}(jy (a96ccf466ea10c1243f05d1cda77fb840d495a65filenamekatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflows.javastatusmodifiedjy Kjy KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9988301a91b9c55408f2b0c9b544a7c70730fd95/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9988301a91b9c55408f2b0c9b544a7c70730fd95/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.java?ref=9988301a91b9c55408f2b0c9b544a7c70730fd95patchX[
  @@ -18,9 +18,11 @@
 
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
@@ -45,7 +47,8 @@ public final class BankBalanceWorkflows {
     private static final SafeLogger log = SafeLoggerFactory.get(BankBalanceWorkflows.class);
     private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
 
-    private static final Integer COLUMN = 0;
+    @VisibleForTesting
+    static final Integer ROW = 42;
 
     private BankBalanceWorkflows() {
         // utility
@@ -121,16 +124,23 @@ private void performTransfers(InteractiveTransaction transaction, Map<Integer, I
         }
 
         private Map<Integer, Optional<Integer>> getAccountBalances(InteractiveTransaction transaction) {
+            Map<Integer, Integer> balancesInDatabase = transaction
+                    .getRowColumnRange(
+                            workflowConfiguration.tableConfiguration().tableName(),
+                            ROW,
+                            ColumnRangeSelection.builder()
+                                    .endColumnExclusive(workflowConfiguration.numberOfAccounts())
+                                    .build())
+                    .stream()
+                    .collect(Collectors.toMap(ColumnValue::column, ColumnValue::value));
             return IntStream.range(0, workflowConfiguration.numberOfAccounts())
                     .boxed()
                     .collect(Collectors.toMap(
-                            Function.identity(),
-                            index -> transaction.read(
-                                    workflowConfiguration.tableConfiguration().tableName(), getCellForAccount(index))));
+                            Function.identity(), index -> Optional.ofNullable(balancesInDatabase.get(index))));
         }
     }
 
     public static WorkloadCell getCellForAccount(int accountIndex) {
-        return ImmutableWorkloadCell.of(accountIndex, COLUMN);
+        return ImmutableWorkloadCell.of(ROW, accountIndex);
     }
 }u}(jy (331bb45680d8fb7ff466c586cda7199127809adfjy oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowsTest.javajy modifiedjy Kjy Kjy Kjy https://github.com/palantir/atlasdb/blob/9988301a91b9c55408f2b0c9b544a7c70730fd95/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javajy https://github.com/palantir/atlasdb/raw/9988301a91b9c55408f2b0c9b544a7c70730fd95/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javajz https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.java?ref=9988301a91b9c55408f2b0c9b544a7c70730fd95jz X
  @@ -18,6 +18,7 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Iterables;
@@ -29,7 +30,9 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
@@ -38,7 +41,6 @@
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.List;
-import java.util.Optional;
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
@@ -84,12 +86,17 @@ public void bankWorkflowContainsInitialReadsForBalances() {
         List<WitnessedTransactionAction> actions =
                 Iterables.getOnlyElement(history.history()).actions();
 
-        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.numberOfAccounts())
-                .boxed()
-                .map(index -> WitnessedReadTransactionAction.of(
-                        TABLE_NAME, BankBalanceWorkflows.getCellForAccount(index), Optional.empty()))
-                .collect(Collectors.toList());
-        assertThat(actions).containsAll(initialReadActions);
+        assertThat(actions)
+                .contains(WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table(TABLE_NAME)
+                                .row(BankBalanceWorkflows.ROW)
+                                .columnRangeSelection(ColumnRangeSelection.builder()
+                                        .endColumnExclusive(CONFIGURATION.numberOfAccounts())
+                                        .build())
+                                .build())
+                        .columnsAndValues(ImmutableList.of())
+                        .build());
     }
 
     @Testueu(86895fd8563c79609bbb48cfe90ccdd9664dac44}(sha(86895fd8563c79609bbb48cfe90ccdd9664dac44node_idEC_kwDOAjP5fdoAKDg2ODk1ZmQ4NTYzYzc5NjA5YmJiNDhjZmU5MGNjZGQ5NjY0ZGFjNDQcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-05-05T17:55:41Zu	committer}(jz 
svc-changelogjz svc-changelog@palantir.comjz 2023-05-05T17:55:41ZumessageAdd generated changelog entriestree}(jz (863519d011b02b3209feccd886a23afef236dfb2url`https://api.github.com/repos/palantir/atlasdb/git/trees/863519d011b02b3209feccd886a23afef236dfb2uj'z bhttps://api.github.com/repos/palantir/atlasdb/git/commits/86895fd8563c79609bbb48cfe90ccdd9664dac44
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmRVQx0JEHYaJX37fAFQAABxxQEAmYhuuqegH/YNVet1KUY2ez52
tP6/uMBt6kDn412Dbg0BANwl9AFkcJZSbFr6tCPmbQUUOTsi1cA9ETfCclwQKXzn
=EcPr
-----END PGP SIGNATURE-----payloadX  tree 863519d011b02b3209feccd886a23afef236dfb2
parent 76c409108c6e7aa7b560ba34504f4deb5ec7c27b
author svc-changelog <svc-changelog@palantir.com> 1683309341 +0000
committer svc-changelog <svc-changelog@palantir.com> 1683309341 +0000

Add generated changelog entriesuuj'z ^https://api.github.com/repos/palantir/atlasdb/commits/86895fd8563c79609bbb48cfe90ccdd9664dac44html_urlShttps://github.com/palantir/atlasdb/commit/86895fd8563c79609bbb48cfe90ccdd9664dac44comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/86895fd8563c79609bbb48cfe90ccdd9664dac44/commentsjz }(login
svc-changelogidJ#jz MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j'z *https://api.github.com/users/svc-changelogj5z  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujz }(j:z 
svc-changelogj<z J#jz MDQ6VXNlcjg0MDc3NjAzj>z 4https://avatars.githubusercontent.com/u/84077603?v=4j@z h5j'z *https://api.github.com/users/svc-changelogj5z  https://github.com/svc-changelogjCz 4https://api.github.com/users/svc-changelog/followersjEz Ahttps://api.github.com/users/svc-changelog/following{/other_user}jGz :https://api.github.com/users/svc-changelog/gists{/gist_id}jIz Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jKz 8https://api.github.com/users/svc-changelog/subscriptionsjMz /https://api.github.com/users/svc-changelog/orgsjOz 0https://api.github.com/users/svc-changelog/reposjQz ;https://api.github.com/users/svc-changelog/events{/privacy}jSz :https://api.github.com/users/svc-changelog/received_eventsjUz UserjWz uparents]}(jz (76c409108c6e7aa7b560ba34504f4deb5ec7c27bj'z ^https://api.github.com/repos/palantir/atlasdb/commits/76c409108c6e7aa7b560ba34504f4deb5ec7c27bj5z Shttps://github.com/palantir/atlasdb/commit/76c409108c6e7aa7b560ba34504f4deb5ec7c27buastats}(totalK	additionsK	deletionsK ufiles]}(jz (b4f0f9cfa1631ef560d32a317b1d9e42a3cac71ffilename$changelog/@unreleased/pr-6562.v2.ymlstatusaddedjqz Kjrz K changesKblob_url|https://github.com/palantir/atlasdb/blob/86895fd8563c79609bbb48cfe90ccdd9664dac44/changelog%2F%40unreleased%2Fpr-6562.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/86895fd8563c79609bbb48cfe90ccdd9664dac44/changelog%2F%40unreleased%2Fpr-6562.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6562.v2.yml?ref=86895fd8563c79609bbb48cfe90ccdd9664dac44patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Avoid boxing for Cassandra known port checks
+  links:
+  - https://github.com/palantir/atlasdb/pull/6562uau(af1ee0f2db905cb1fa8456a59cd228af6db0956c}(sha(af1ee0f2db905cb1fa8456a59cd228af6db0956cnode_idEC_kwDOAjP5fdoAKGFmMWVlMGYyZGI5MDVjYjFmYTg0NTZhNTljZDIyOGFmNmRiMDk1NmMcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-15T16:00:15Zu	committer}(jz svc-autoreleasejz -pd-foundry-infrastructure-notify@palantir.comjz 2023-05-15T16:00:15Zumessage"Autorelease 0.854.0-rc9

[skip ci]tree}(jz (ea9cda3a76cbc11642c364d9e3f4e93d6a3d63cfurl`https://api.github.com/repos/palantir/atlasdb/git/trees/ea9cda3a76cbc11642c364d9e3f4e93d6a3d63cfujz bhttps://api.github.com/repos/palantir/atlasdb/git/commits/af1ee0f2db905cb1fa8456a59cd228af6db0956c
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRiVxAACgkQhbrR8ip7mDCMngD9HFvQmlGWqivIn7AefTcb4vBu
gowIH+xK/Q2M1Dsca5oA/A8Sb7NVtumUtuMklwhTsMFkx5vOCxhn806cknIPDhS3
=3+kC
-----END PGP SIGNATURE-----
payloadX(  tree ea9cda3a76cbc11642c364d9e3f4e93d6a3d63cf
parent a684ef6513438aecd84a2ae28ae98d798a0cb04b
author aalouane <30903736+ergo14@users.noreply.github.com> 1684166415 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684166415 +0000

Autorelease 0.854.0-rc9

[skip ci]uujz ^https://api.github.com/repos/palantir/atlasdb/commits/af1ee0f2db905cb1fa8456a59cd228af6db0956chtml_urlShttps://github.com/palantir/atlasdb/commit/af1ee0f2db905cb1fa8456a59cd228af6db0956ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/af1ee0f2db905cb1fa8456a59cd228af6db0956c/commentsjz }(loginergo14idJjz MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jz #https://api.github.com/users/ergo14jz https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujz }(jz svc-autoreleasejz J(jz MDQ6VXNlcjUxNzE4MzQ2jz 4https://avatars.githubusercontent.com/u/51718346?v=4jz h5jz ,https://api.github.com/users/svc-autoreleasejz "https://github.com/svc-autoreleasejz 6https://api.github.com/users/svc-autorelease/followersjz Chttps://api.github.com/users/svc-autorelease/following{/other_user}jz <https://api.github.com/users/svc-autorelease/gists{/gist_id}jz Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jz :https://api.github.com/users/svc-autorelease/subscriptionsjz 1https://api.github.com/users/svc-autorelease/orgsjz 2https://api.github.com/users/svc-autorelease/reposjz =https://api.github.com/users/svc-autorelease/events{/privacy}jz <https://api.github.com/users/svc-autorelease/received_eventsjz Userjz uparents]}(jz (a684ef6513438aecd84a2ae28ae98d798a0cb04bjz ^https://api.github.com/repos/palantir/atlasdb/commits/a684ef6513438aecd84a2ae28ae98d798a0cb04bjz Shttps://github.com/palantir/atlasdb/commit/a684ef6513438aecd84a2ae28ae98d798a0cb04buastats}(totalK 	additionsK 	deletionsK ufiles]u(561379dab3c389eca498ebc911081193b7e3fc78}(sha(561379dab3c389eca498ebc911081193b7e3fc78node_idEC_kwDOAjP5fdoAKDU2MTM3OWRhYjNjMzg5ZWNhNDk4ZWJjOTExMDgxMTkzYjdlM2ZjNzgcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-03-28T14:54:33Zu	committer}(jz 
Ahmed Alouanejz aalouane@palantir.comjz 2023-03-28T14:54:33Zumessagevariable namingtree}(jz (5d1f20645c9da68ac8c62d330df30e32a646be3aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/5d1f20645c9da68ac8c62d330df30e32a646be3auj{ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/561379dab3c389eca498ebc911081193b7e3fc78
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQi/6kACgkQPlMHVIT1
yhoLdAgAtIJo+SFi52IEExacGQNbCpySO1WcnrJkarrOnR1cHtDTdqBlMX3rMCTN
5bbnKWJC+sdFABEV836mxOvjxmjVoOh603DGCjccDJDsX7+IdP/I+MVs+0/ywZIA
AgYPwY8dQNyayZoz7qOHRfppdRnvUHNZFq4Ouk03v+e/LBorUhpOcFk7IHDr34UN
dZ93aOApqjS/6l4Fmrd6xqIBA52zi8ODdWexY88U0dAllZ6+Ekbm8VL4F6jEq/aj
DkFpRbPQfAIicI/SZ/t3qM76YeRsEPvZPkpdM9tPpadT/H3bY3kZorW6n2IWrbRV
ZQHSXQm5KCPyE4bv7e1iI42jdrkTxQ==
=IUBc
-----END PGP SIGNATURE-----payloadtree 5d1f20645c9da68ac8c62d330df30e32a646be3a
parent b83ae229260e8cdd9f1ebe2929e4ea31bd029362
author Ahmed Alouane <aalouane@palantir.com> 1680015273 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1680015273 +0100

variable naming
uuj{ ^https://api.github.com/repos/palantir/atlasdb/commits/561379dab3c389eca498ebc911081193b7e3fc78html_urlShttps://github.com/palantir/atlasdb/commit/561379dab3c389eca498ebc911081193b7e3fc78comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/561379dab3c389eca498ebc911081193b7e3fc78/commentsjz }(loginergo14idJjz MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j{ #https://api.github.com/users/ergo14j{ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujz }(j{ ergo14j{ Jjz MDQ6VXNlcjMwOTAzNzM2j{ 4https://avatars.githubusercontent.com/u/30903736?v=4j{ h5j{ #https://api.github.com/users/ergo14j{ https://github.com/ergo14j"{ -https://api.github.com/users/ergo14/followersj${ :https://api.github.com/users/ergo14/following{/other_user}j&{ 3https://api.github.com/users/ergo14/gists{/gist_id}j({ :https://api.github.com/users/ergo14/starred{/owner}{/repo}j*{ 1https://api.github.com/users/ergo14/subscriptionsj,{ (https://api.github.com/users/ergo14/orgsj.{ )https://api.github.com/users/ergo14/reposj0{ 4https://api.github.com/users/ergo14/events{/privacy}j2{ 3https://api.github.com/users/ergo14/received_eventsj4{ Userj6{ uparents]}(jz (b83ae229260e8cdd9f1ebe2929e4ea31bd029362j{ ^https://api.github.com/repos/palantir/atlasdb/commits/b83ae229260e8cdd9f1ebe2929e4ea31bd029362j{ Shttps://github.com/palantir/atlasdb/commit/b83ae229260e8cdd9f1ebe2929e4ea31bd029362uastats}(totalK	additionsK	deletionsKufiles]}(jz (753c689805a91e0805d71d7cf71e426878f97eabfilenameNleader-election-impl/src/main/java/com/palantir/paxos/SqlitePaxosStateLog.javastatusmodifiedjP{ KjQ{ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/561379dab3c389eca498ebc911081193b7e3fc78/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FSqlitePaxosStateLog.javaraw_urlhttps://github.com/palantir/atlasdb/raw/561379dab3c389eca498ebc911081193b7e3fc78/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FSqlitePaxosStateLog.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FSqlitePaxosStateLog.java?ref=561379dab3c389eca498ebc911081193b7e3fc78patchX  @@ -142,6 +142,6 @@ <V extends Persistable & Versionable> boolean[] writeBatchOfRounds(
         Optional<String> getSmallestNamespace();
 
         @SqlQuery("SELECT MIN(namespace) FROM paxosLog WHERE namespace > :namespace")
-        Optional<String> getNextSmallestNamespace(@Bind("namespace") String namespace);
+        Optional<String> getNextSmallestNamespace(@Bind("namespace") String lastReadNamespace);
     }
 }uau(bfb99ca43c1f958aad0d601f11eb3d56c592c6c2}(sha(bfb99ca43c1f958aad0d601f11eb3d56c592c6c2node_idEC_kwDOAjP5fdoAKGJmYjk5Y2E0M2MxZjk1OGFhZDBkNjAxZjExZWIzZDU2YzU5MmM2YzIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-27T16:47:14Zu	committer}(jm{ Jeremy Kongjo{ jkong@palantir.comjq{ 2023-02-27T16:47:14Zumessagefixtree}(je{ (2db9d384de6a9d0a0ed94474c47e878ecd1d145durl`https://api.github.com/repos/palantir/atlasdb/git/trees/2db9d384de6a9d0a0ed94474c47e878ecd1d145duj}{ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bfb99ca43c1f958aad0d601f11eb3d56c592c6c2
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmP83pIACgkQTLdFKain
zjznyQf+IXmRVU8svhk4Yq8m9WHnHIEk7ZaPn8NrozwhZzjbyhWLefE9VGiQi9Hd
W+OacNoM19CycBtl0e64CS8pNn3xoROKujkepqY12zjaJnOIN25aL4ZbzJhCByM5
qLDwvbQnFokt2tQwWR1xHBMtx6fgl/hlYj+OMdRA52asqVaQWfbVOVwj0kDAx9Qc
edfpOonuVwY/JJMAZDeC1VtmBh6EJXN1LZ1MJuc4KYjMNNtrL8FFJoVx3lBXykXz
yovGdNdwHavNEc00FD0ZvkPJP40vsUOTacb+AiZcWjjT0A2vINFeT1vEJPNgIPP2
KMnvwDjEEpPztvFHB7+1mr+TO4vSeg==
=5UaD
-----END PGP SIGNATURE-----payloadtree 2db9d384de6a9d0a0ed94474c47e878ecd1d145d
parent 310f11e2e2b3b0c28ede4cc8e642d2e34154ab4c
author Jeremy Kong <jkong@palantir.com> 1677516434 +0000
committer Jeremy Kong <jkong@palantir.com> 1677516434 +0000

fix
uuj}{ ^https://api.github.com/repos/palantir/atlasdb/commits/bfb99ca43c1f958aad0d601f11eb3d56c592c6c2html_urlShttps://github.com/palantir/atlasdb/commit/bfb99ca43c1f958aad0d601f11eb3d56c592c6c2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bfb99ca43c1f958aad0d601f11eb3d56c592c6c2/commentsjk{ }(login
jeremyk-91idJZ jg{ MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j}{ 'https://api.github.com/users/jeremyk-91j{ https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujs{ }(j{ 
jeremyk-91j{ JZ jg{ MDQ6VXNlcjU5NTU1MTA=j{ 3https://avatars.githubusercontent.com/u/5955510?v=4j{ h5j}{ 'https://api.github.com/users/jeremyk-91j{ https://github.com/jeremyk-91j{ 1https://api.github.com/users/jeremyk-91/followersj{ >https://api.github.com/users/jeremyk-91/following{/other_user}j{ 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j{ >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j{ 5https://api.github.com/users/jeremyk-91/subscriptionsj{ ,https://api.github.com/users/jeremyk-91/orgsj{ -https://api.github.com/users/jeremyk-91/reposj{ 8https://api.github.com/users/jeremyk-91/events{/privacy}j{ 7https://api.github.com/users/jeremyk-91/received_eventsj{ Userj{ uparents]}(je{ (310f11e2e2b3b0c28ede4cc8e642d2e34154ab4cj}{ ^https://api.github.com/repos/palantir/atlasdb/commits/310f11e2e2b3b0c28ede4cc8e642d2e34154ab4cj{ Shttps://github.com/palantir/atlasdb/commit/310f11e2e2b3b0c28ede4cc8e642d2e34154ab4cuastats}(totalK	additionsK	deletionsKufiles]}(je{ (85e8a3aef2caf2827655420156b2454973c9fb83filenamepatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javastatusmodifiedj{ Kj{ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/bfb99ca43c1f958aad0d601f11eb3d56c592c6c2/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/bfb99ca43c1f958aad0d601f11eb3d56c592c6c2/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=bfb99ca43c1f958aad0d601f11eb3d56c592c6c2patchX  @@ -37,10 +37,8 @@
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import java.util.Comparator;
 import java.util.List;
 import java.util.Optional;
-import java.util.stream.Collectors;
 import java.util.stream.Stream;
 import org.junit.Test;
 
@@ -64,20 +62,14 @@ public void smokeTest() {
                                         MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(100)))
                                 .build())
                         .build());
-        workflow.onComplete(this::assertWorkflowHistoryConsistent);
-        workflow.run();
+        assertWorkflowHistoryConsistent(workflow.run());
     }
 
     // This is basically a very simple invariant checker
     private void assertWorkflowHistoryConsistent(WorkflowHistory workflowHistory) {
-        List<WitnessedTransaction> transactionsByCommitTime = workflowHistory.history().stream()
-                .sorted(Comparator.comparingLong(witnessedTransaction ->
-                        witnessedTransaction.commitTimestamp().orElseThrow()))
-                .collect(Collectors.toList());
+        workflowHistory.history().forEach(SingleRowTwoCellsWorkflowsTest::validateLocalReadsMatchLocalWrites);
 
-        for (WitnessedTransaction transaction : transactionsByCommitTime) {
-            validateLocalReadsMatchLocalWrites(transaction);
-        }
+        List<WitnessedTransaction> transactionsByCommitTime = workflowHistory.history();
 
         // Start from 1 intentional as we want to look at pairs of transactions
         for (int index = 1; index < transactionsByCommitTime.size(); index++) {uau(c189c3d2676483e348ca3d0d8b003db9c2888c99}(sha(c189c3d2676483e348ca3d0d8b003db9c2888c99node_idEC_kwDOAjP5fdoAKGMxODljM2QyNjc2NDgzZTM0OGNhM2QwZDhiMDAzZGI5YzI4ODhjOTkcommit}(author}(nameMohammed Daudaliemailmdaudali786@gmail.comdate2023-05-19T13:22:40Zu	committer}(j{ svc-autoreleasej{ -pd-foundry-infrastructure-notify@palantir.comj{ 2023-05-19T13:22:40Zumessage"Autorelease 0.857.0-rc3

[skip ci]tree}(j{ (fb6c780c71656eaf75fba7d110e95d34fb23d092url`https://api.github.com/repos/palantir/atlasdb/git/trees/fb6c780c71656eaf75fba7d110e95d34fb23d092uj{ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c189c3d2676483e348ca3d0d8b003db9c2888c99
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRneCEACgkQhbrR8ip7mDDUAAEA/kH5vhWzUtG0xB2355/3zczE
QO3rRCedmJKD64w1MlgA/2iua0e5ZNcNyeIvZ6j9rmAfHSUcJP0Sd+H0A/2XVFjI
=TV9S
-----END PGP SIGNATURE-----
payloadX  tree fb6c780c71656eaf75fba7d110e95d34fb23d092
parent fee7570bf9c8102feb1de4c43a71eaabd46b34b9
author Mohammed Daudali <mdaudali786@gmail.com> 1684502560 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684502560 +0000

Autorelease 0.857.0-rc3

[skip ci]uuj{ ^https://api.github.com/repos/palantir/atlasdb/commits/c189c3d2676483e348ca3d0d8b003db9c2888c99html_urlShttps://github.com/palantir/atlasdb/commit/c189c3d2676483e348ca3d0d8b003db9c2888c99comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c189c3d2676483e348ca3d0d8b003db9c2888c99/commentsj{ }(loginmdaudaliidJ j{ MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5j{ %https://api.github.com/users/mdaudalij| https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminuj{ }(j| svc-autoreleasej	| J(j{ MDQ6VXNlcjUxNzE4MzQ2j| 4https://avatars.githubusercontent.com/u/51718346?v=4j
| h5j{ ,https://api.github.com/users/svc-autorelease	     j| "https://github.com/svc-autoreleasej| 6https://api.github.com/users/svc-autorelease/followersj| Chttps://api.github.com/users/svc-autorelease/following{/other_user}j| <https://api.github.com/users/svc-autorelease/gists{/gist_id}j| Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j| :https://api.github.com/users/svc-autorelease/subscriptionsj| 1https://api.github.com/users/svc-autorelease/orgsj| 2https://api.github.com/users/svc-autorelease/reposj| =https://api.github.com/users/svc-autorelease/events{/privacy}j | <https://api.github.com/users/svc-autorelease/received_eventsj"| Userj$| uparents]}(j{ (fee7570bf9c8102feb1de4c43a71eaabd46b34b9j{ ^https://api.github.com/repos/palantir/atlasdb/commits/fee7570bf9c8102feb1de4c43a71eaabd46b34b9j| Shttps://github.com/palantir/atlasdb/commit/fee7570bf9c8102feb1de4c43a71eaabd46b34b9uastats}(totalK 	additionsK 	deletionsK ufiles]u(28fbc4099f7ed7bcd6016becd682589a90fb42cf}(sha(28fbc4099f7ed7bcd6016becd682589a90fb42cfnode_idEC_kwDOAjP5fdoAKDI4ZmJjNDA5OWY3ZWQ3YmNkNjAxNmJlY2Q2ODI1ODlhOTBmYjQyY2Ycommit}(author}(name
Nimai Agarwalemailnagarwal@palantir.comdate2023-04-17T18:11:07Zu	committer}(jL| 
Nimai AgarwaljN| nagarwal@palantir.comjP| 2023-04-17T18:11:07ZumessageAdded implementationtree}(jD| (be612471d8f9c4cd29ef6b70f6982f93600715a5url`https://api.github.com/repos/palantir/atlasdb/git/trees/be612471d8f9c4cd29ef6b70f6982f93600715a5uj\| bhttps://api.github.com/repos/palantir/atlasdb/git/commits/28fbc4099f7ed7bcd6016becd682589a90fb42cf
comment_countK verification}(verifiedreasonno_user	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEJmdCZzv7/iUs98lyHp7dxz7XLrgFAmQ9i7sACgkQHp7dxz7X
LriaxQf/U4XJOwHO5zKfTib5PoLUy1tBY12+0SD5f/ovep8osJI5w3sVcEbZVUXl
JTbT50P9CUMS3831Jt7ptMIzUIEwuZKuvv/xtnFlGGr+gBHi/kV/a9KNj7qaOIYU
JQF/re0tBAZIwOB8Z6wu0VXh26uYlQCz9hIglEvh/kun7OLvPv6dNpvPNESRcXb6
nYweuvvWjodmjUh0AxgTC9C31mX29o9KB5utqS0UaLn+xuQUBvVbt7Khh6O/GfEi
cDuV1STBiDo4FX6xO2PgS76oYaqMdiCKdmxQxQn3/r1iLCjwMjpYocgaGQ8/KSm+
nD+GvD76PxOjF4ecZFgbw7LQjoa9XQ==
=JtGm
-----END PGP SIGNATURE-----payloadtree be612471d8f9c4cd29ef6b70f6982f93600715a5
parent a5db530392136df1e9d8986516da0a254b61ca75
author Nimai Agarwal <nagarwal@palantir.com> 1681755067 -0400
committer Nimai Agarwal <nagarwal@palantir.com> 1681755067 -0400

Added implementation
uuj\| ^https://api.github.com/repos/palantir/atlasdb/commits/28fbc4099f7ed7bcd6016becd682589a90fb42cfhtml_urlShttps://github.com/palantir/atlasdb/commit/28fbc4099f7ed7bcd6016becd682589a90fb42cfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/28fbc4099f7ed7bcd6016becd682589a90fb42cf/commentsjJ| NjR| Nparents]}(jD| (a5db530392136df1e9d8986516da0a254b61ca75j\| ^https://api.github.com/repos/palantir/atlasdb/commits/a5db530392136df1e9d8986516da0a254b61ca75jj| Shttps://github.com/palantir/atlasdb/commit/a5db530392136df1e9d8986516da0a254b61ca75uastats}(totalK	additionsK	deletionsKufiles](}(jD| (2aab4e5059e0dbc48d1d5bd99e74e28618187e62filename9timelock-api/src/main/conjure/timelock-management-api.ymlstatusmodifiedjw| Kjx| KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/28fbc4099f7ed7bcd6016becd682589a90fb42cf/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/28fbc4099f7ed7bcd6016becd682589a90fb42cf/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.yml?ref=28fbc4099f7ed7bcd6016becd682589a90fb42cfpatchX  @@ -61,10 +61,14 @@ services:
           server id would imply that the server was bounced.
 
       fastForwardTimestamp:
-        http: POST /fastForward
+        http: POST /fastForward/{namespace}
         args:
+          namespace:
+            type: string
+            safety: safe
           currentTimestamp:
             type: safelong
+            safety: safe
             param-type: query
             docs: the largest timestamp issued until the fast-forward call
         docs: |u}(jD| (34227d111595be94cbefc92121bbbddf7e2cb3c8j}| dtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/TimeLockManagementResource.javaj| modifiedjw| Kjx| K j| Kj| https://github.com/palantir/atlasdb/blob/28fbc4099f7ed7bcd6016becd682589a90fb42cf/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.javaj| https://github.com/palantir/atlasdb/raw/28fbc4099f7ed7bcd6016becd682589a90fb42cf/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.javaj| https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.java?ref=28fbc4099f7ed7bcd6016becd682589a90fb42cfj| X.  @@ -28,6 +28,7 @@
 import com.palantir.atlasdb.timelock.api.management.TimeLockManagementServiceEndpoints;
 import com.palantir.atlasdb.timelock.api.management.UndertowTimeLockManagementService;
 import com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants;
+import com.palantir.conjure.java.lib.SafeLong;
 import com.palantir.conjure.java.undertow.lib.UndertowService;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
@@ -137,6 +138,18 @@ public ListenableFuture<UUID> forceKillTimeLockServer(AuthHeader authHeader) {
         return Futures.immediateFuture(serviceLifecycleController.getServerId());
     }
 
+    @Override
+    public ListenableFuture<Void> fastForwardTimestamp(
+            AuthHeader authHeader, String namespace, SafeLong currentTimestamp) {
+        return handleExceptions(() -> {
+            timelockNamespaces
+                    .get(namespace)
+                    .getTimestampManagementService()
+                    .fastForwardTimestamp(currentTimestamp.longValue());
+            return Futures.immediateFuture(null);
+        });
+    }
+
     private <T> ListenableFuture<T> handleExceptions(Supplier<ListenableFuture<T>> supplier) {
         return exceptionHandler.handleExceptions(supplier);
     }
@@ -192,6 +205,11 @@ public UUID forceKillTimeLockServer(AuthHeader authHeader) {
             return unwrap(resource.forceKillTimeLockServer(authHeader));
         }
 
+        @Override
+        public void fastForwardTimestamp(AuthHeader authHeader, String namespace, SafeLong currentTimestamp) {
+            unwrap(resource.fastForwardTimestamp(authHeader, namespace, currentTimestamp));
+        }
+
         private static <T> T unwrap(ListenableFuture<T> future) {
             return AtlasFutures.getUnchecked(future);
         }ueu(dd680dd2303e9c91b574242d075af181d5ff19f6}(sha(dd680dd2303e9c91b574242d075af181d5ff19f6node_idEC_kwDOAjP5fdoAKGRkNjgwZGQyMzAzZTljOTFiNTc0MjQyZDA3NWFmMTgxZDVmZjE5ZjYcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-03-16T16:38:45Zu	committer}(j| svc-excavator-botj| svc-excavator-bot@palantir.comj| 2023-03-16T16:38:45Zumessage3Excavator:  Upgrades Baseline to the latest versiontree}(j| (fcd82a5fdf8b9f2a93d3d3675dbd19e192dc7bbfurl`https://api.github.com/repos/palantir/atlasdb/git/trees/fcd82a5fdf8b9f2a93d3d3675dbd19e192dc7bbfuj| bhttps://api.github.com/repos/palantir/atlasdb/git/commits/dd680dd2303e9c91b574242d075af181d5ff19f6
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQTRhUJEMmvEkpISILgAABUygEAriMTqE2rZu+1cEzoVv/Eo66i
kgeIPqjiZtuaYq9th3cA/jBELMllFiidyMh/a6luvn07wd6pPkurPWfLcGlX0LHI
=zRr2
-----END PGP SIGNATURE-----
payloadX+  tree fcd82a5fdf8b9f2a93d3d3675dbd19e192dc7bbf
parent 82c974208a8c9b802173e8cfe1ee01a349c12e2c
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1678984725 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1678984725 +0000

Excavator:  Upgrades Baseline to the latest versionuuj| ^https://api.github.com/repos/palantir/atlasdb/commits/dd680dd2303e9c91b574242d075af181d5ff19f6html_urlShttps://github.com/palantir/atlasdb/commit/dd680dd2303e9c91b574242d075af181d5ff19f6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/dd680dd2303e9c91b574242d075af181d5ff19f6/commentsj| }(loginsvc-excavator-botidJj| MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j| .https://api.github.com/users/svc-excavator-botj| $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj| }(j| svc-excavator-botj| Jj| MDQ6VXNlcjMzMjY2MzY4j| 4https://avatars.githubusercontent.com/u/33266368?v=4j| h5j| .https://api.github.com/users/svc-excavator-botj| $https://github.com/svc-excavator-botj| 8https://api.github.com/users/svc-excavator-bot/followersj| Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}j| >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}j| Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}j| <https://api.github.com/users/svc-excavator-bot/subscriptionsj| 3https://api.github.com/users/svc-excavator-bot/orgsj| 4https://api.github.com/users/svc-excavator-bot/reposj| ?https://api.github.com/users/svc-excavator-bot/events{/privacy}j| >https://api.github.com/users/svc-excavator-bot/received_eventsj| Userj| uparents]}(j| (82c974208a8c9b802173e8cfe1ee01a349c12e2cj| ^https://api.github.com/repos/palantir/atlasdb/commits/82c974208a8c9b802173e8cfe1ee01a349c12e2cj| Shttps://github.com/palantir/atlasdb/commit/82c974208a8c9b802173e8cfe1ee01a349c12e2cuastats}(totalK	additionsK	deletionsKufiles]}(j| (9f581ccc48a0a310f2892c131a333db28abedbc3filenamebuild.gradlestatusmodifiedj| Kj| KchangesKblob_url^https://github.com/palantir/atlasdb/blob/dd680dd2303e9c91b574242d075af181d5ff19f6/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/dd680dd2303e9c91b574242d075af181d5ff19f6/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=dd680dd2303e9c91b574242d075af181d5ff19f6patchX3  @@ -9,7 +9,7 @@ buildscript {
     dependencies {
         classpath 'com.netflix.nebula:gradle-info-plugin:12.0.1'
         classpath 'com.netflix.nebula:nebula-publishing-plugin:20.0.0'
-        classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
+        classpath 'com.palantir.baseline:gradle-baseline-java:5.0.0'
         classpath 'com.palantir.gradle.conjure:gradle-conjure:5.34.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'uau(7f500145065bd9ac08201055f8a5b4411c5fd340}(sha(7f500145065bd9ac08201055f8a5b4411c5fd340node_idEC_kwDOAjP5fdoAKDdmNTAwMTQ1MDY1YmQ5YWMwODIwMTA1NWY4YTViNDQxMWM1ZmQzNDAcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-22T09:44:14Zu	committer}(j} 
Sam Kramerj} skramer@palantir.comj} 2023-05-22T09:44:14Zumessage&fix script to publish latest cassandratree}(j} (c0f31d31de95d0684dbc23246a4675014881df60url`https://api.github.com/repos/palantir/atlasdb/git/trees/c0f31d31de95d0684dbc23246a4675014881df60uj#} bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7f500145065bd9ac08201055f8a5b4411c5fd340
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRrOW4ACgkQmPPOpKR4
XS2Higf/RG2Ls8p1hwVE6D5jgLCRSft9OFsrTC4dt15OUcyAZyQI78wRnJSz/ekL
K9eGudxQBVhfZ1XzwYJkep7FA76mfX9CK+kX4YJTENUj5VIbKSdf2kD1PlaW5zjE
VHou7aO1+rxDFeekLi7h2N7LF3RkBRyfOjVdZ1WidK/RV6D+zoG/eIrnhcb3bEBq
oHP9Vzj4Flwj8DB4ZmLLjJdX7gltClkC1SJzXiXoia/YFSRY/mXTbX9UfWG4laVH
21w/balk1MOxqIzUG54rRvM0AHNSsMNeAgcgdSXd5SkCL8DB8q2F+ijCKggQVLbS
7vPH8OjMn+/XFYGRvw6MhyTKJAZVUg==
=RifO
-----END PGP SIGNATURE-----payloadtree c0f31d31de95d0684dbc23246a4675014881df60
parent 2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30
author Sam Kramer <skramer@palantir.com> 1684748654 +0100
committer Sam Kramer <skramer@palantir.com> 1684748654 +0100

fix script to publish latest cassandra
uuj#} ^https://api.github.com/repos/palantir/atlasdb/commits/7f500145065bd9ac08201055f8a5b4411c5fd340html_urlShttps://github.com/palantir/atlasdb/commit/7f500145065bd9ac08201055f8a5b4411c5fd340comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7f500145065bd9ac08201055f8a5b4411c5fd340/commentsj} }(login
Sam-KrameridJ^2_ j
} MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j#} 'https://api.github.com/users/Sam-Kramerj1} https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj} }(j6} 
Sam-Kramerj8} J^2_ j
} MDQ6VXNlcjYyMzg4MTQ=j:} 3https://avatars.githubusercontent.com/u/6238814?v=4j<} h5j#} 'https://api.github.com/users/Sam-Kramerj1} https://github.com/Sam-Kramerj?} 1https://api.github.com/users/Sam-Kramer/followersjA} >https://api.github.com/users/Sam-Kramer/following{/other_user}jC} 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jE} >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jG} 5https://api.github.com/users/Sam-Kramer/subscriptionsjI} ,https://api.github.com/users/Sam-Kramer/orgsjK} -https://api.github.com/users/Sam-Kramer/reposjM} 8https://api.github.com/users/Sam-Kramer/events{/privacy}jO} 7https://api.github.com/users/Sam-Kramer/received_eventsjQ} UserjS} uparents]}(j} (2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30j#} ^https://api.github.com/repos/palantir/atlasdb/commits/2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30j1} Shttps://github.com/palantir/atlasdb/commit/2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30uastats}(totalK	additionsK	deletionsKufiles]}(j} (5f39e0e56f2510fcdb9ebb4ce33aeee0b71f408afilename*scripts/circle-ci/publish-to-antithesis.shstatusmodifiedjm} Kjn} KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7f500145065bd9ac08201055f8a5b4411c5fd340/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shraw_urlhttps://github.com/palantir/atlasdb/raw/7f500145065bd9ac08201055f8a5b4411c5fd340/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=7f500145065bd9ac08201055f8a5b4411c5fd340patchX  @@ -16,9 +16,9 @@ printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://$
 
 VERSION=$(./gradlew -q printVersion)
 
-docker pull palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
-docker tag palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra ${ANTITHESIS_REPO_URL}/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
-docker push ${ANTITHESIS_REPO_URL}/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc5 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
+docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
 
 docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${VERSION}
 docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${VERSION}uau(f4439832e9bd60ddfcafde5f711bacd8bde20b38}(sha(f4439832e9bd60ddfcafde5f711bacd8bde20b38node_idEC_kwDOAjP5fdoAKGY0NDM5ODMyZTliZDYwZGRmY2FmZGU1ZjcxMWJhY2Q4YmRlMjBiMzgcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-04-13T15:06:22Zu	committer}(j} GitHubj} noreply@github.comj} 2023-04-13T15:06:22Zumessageadd serializable invariant and transaction builder (#6513)

Invariant for serializable isolation can be used for validating workflowstree}(j} (546be6f62901f91f6d88799c3270b9bd05c5ff2aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/546be6f62901f91f6d88799c3270b9bd05c5ff2auj} bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f4439832e9bd60ddfcafde5f711bacd8bde20b38
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkOBpuCRBK7hj4Ov3rIwAAXYMIAJLi3XD+5y1sNBUVhkTalaTK
J2WNmfiiWnMMLxRqPeoAy8nUJwizMVrooaUIT+2osWsKlsZDmZbNlpTUXeyGD6DU
800LUhFG6x6zxEdu5OTJ8bDMuMPG3na/O3IqoVxkuRG5vu5m2atDQPg1oWrAjSvx
mll3bT8oTL0L1F1j7OPQyoFjafAdYAzgZwcVfMmCpT0keEpXq1tmEGK63quhDM/6
nF9YxUjKr0+RwP5ef0d6YXFEGEGuWNl7aQgdQscyoaHZhIusg+CheTnJoQ70O4pU
+h10Bx9IZPuSY/gs9yov7b/8d+LXAjw7TdIHiULpq0Fpk+iYDWdmVib0/ePa/1k=
=IFik
-----END PGP SIGNATURE-----
payloadXX  tree 546be6f62901f91f6d88799c3270b9bd05c5ff2a
parent f4759f8351fe208942a33e983b847c2e963ae3bf
author Sam-Kramer <sam.c.kramer@gmail.com> 1681398382 +0100
committer GitHub <noreply@github.com> 1681398382 +0000

add serializable invariant and transaction builder (#6513)

Invariant for serializable isolation can be used for validating workflows
uuj} ^https://api.github.com/repos/palantir/atlasdb/commits/f4439832e9bd60ddfcafde5f711bacd8bde20b38html_urlShttps://github.com/palantir/atlasdb/commit/f4439832e9bd60ddfcafde5f711bacd8bde20b38comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f4439832e9bd60ddfcafde5f711bacd8bde20b38/commentsj} }(login
Sam-KrameridJ^2_ j} MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j} 'https://api.github.com/users/Sam-Kramerj} https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj} }(j} web-flowj} J/j} MDQ6VXNlcjE5ODY0NDQ3j} 4https://avatars.githubusercontent.com/u/19864447?v=4j} h5j} %https://api.github.com/users/web-flowj} https://github.com/web-flowj} /https://api.github.com/users/web-flow/followersj} <https://api.github.com/users/web-flow/following{/other_user}j} 5https://api.github.com/users/web-flow/gists{/gist_id}j} <https://api.github.com/users/web-flow/starred{/owner}{/repo}j} 3https://api.github.com/users/web-flow/subscriptionsj} *https://api.github.com/users/web-flow/orgsj} +https://api.github.com/users/web-flow/reposj} 6https://api.github.com/users/web-flow/events{/privacy}j} 5https://api.github.com/users/web-flow/received_eventsj} Userj} uparents]}(j} (f4759f8351fe208942a33e983b847c2e963ae3bfj} ^https://api.github.com/repos/palantir/atlasdb/commits/f4759f8351fe208942a33e983b847c2e963ae3bfj} Shttps://github.com/palantir/atlasdb/commit/f4759f8351fe208942a33e983b847c2e963ae3bfuastats}(totalM	additionsMh	deletionsKXufiles](}(j} (f311e643064907dd8eeece7fe8fe0069efe51f4efilename~atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransaction.javastatusaddedj} K"j} K changesK"blob_urlhttps://github.com/palantir/atlasdb/blob/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.java?ref=f4439832e9bd60ddfcafde5f711bacd8bde20b38patchX  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedTransaction {
+    @Value.Parameter
+    WitnessedTransaction transaction();
+
+    @Value.Parameter
+    List<InvalidWitnessedTransactionAction> invalidActions();
+
+    static InvalidWitnessedTransaction of(
+            WitnessedTransaction witnessedTransaction, List<InvalidWitnessedTransactionAction> invalidActions) {
+        return ImmutableInvalidWitnessedTransaction.of(witnessedTransaction, invalidActions);
+    }
+}u}(j} (13fc2568c111b1ef3b542238490857c5d0b5acb9j} atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javaj} addedj} K!j} K j} K!j} https://github.com/palantir/atlasdb/blob/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj} https://github.com/palantir/atlasdb/raw/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj} https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=f4439832e9bd60ddfcafde5f711bacd8bde20b38j} X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.invariant.MismatchedValue;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedTransactionAction {
+    @Value.Parameter
+    WitnessedTransactionAction action();
+
+    @Value.Parameter
+    MismatchedValue mismatchedValue();
+
+    static InvalidWitnessedTransactionAction of(WitnessedTransactionAction action, MismatchedValue mismatchedValue) {
+        return ImmutableInvalidWitnessedTransactionAction.of(action, mismatchedValue);
+    }
+}u}(j} (9182de83512f620a1034f9caa1e0e65888560fa1j} latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj} modifiedj} Kj} Kj} Kj} https://github.com/palantir/atlasdb/blob/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj} https://github.com/palantir/atlasdb/raw/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj} https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=f4439832e9bd60ddfcafde5f711bacd8bde20b38j} X  @@ -26,8 +26,8 @@
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
 import com.palantir.atlasdb.workload.invariant.DurableWritesMetricInvariantReporter;
+import com.palantir.atlasdb.workload.runner.AntithesisWorkflowRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
-import com.palantir.atlasdb.workload.workflow.AntithesisWorkflowRunner;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;u}(j} (6692c7a0ab9dc06ee5a6b9df123917c46c3d2758j} iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariant.javaj} modifiedj} Kj} Kj} Kj} https://github.com/palantir/atlasdb/blob/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj} https://github.com/palantir/atlasdb/raw/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj} https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.java?ref=f4439832e9bd60ddfcafde5f711bacd8bde20b38j} X  @@ -16,10 +16,10 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
+import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.ValidationStore;
-import com.palantir.atlasdb.workload.transaction.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import io.vavr.Tuple;
 import java.util.Map;u}(j} (c6c57e6a8de2b5781bc3377bb37255bb7b0465a7j} hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj} addedj} K\j} K j} K\j} https://github.com/palantir/atlasdb/blob/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj} https://github.com/palantir/atlasdb/raw/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj} https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=f4439832e9bd60ddfcafde5f711bacd8bde20b38j} XC  @@ -0,0 +1,92 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.List;
+import java.util.Optional;
+import java.util.function.Consumer;
+import one.util.streamex.StreamEx;
+
+public enum SerializableInvariant implements Invariant<List<InvalidWitnessedTransaction>> {
+    INSTANCE;
+
+    @Override
+    public void accept(
+            WorkflowHistory workflowHistory, Consumer<List<InvalidWitnessedTransaction>> invalidWitnessedTransactions) {
+        SerializableInvariantVisitor visitor = new SerializableInvariantVisitor();
+        List<InvalidWitnessedTransaction> transactions = StreamEx.of(workflowHistory.history())
+                .mapPartial(witnessedTransaction -> {
+                    List<InvalidWitnessedTransactionAction> invalidTransactions = StreamEx.of(
+                                    witnessedTransaction.actions())
+                            .mapPartial(action -> action.accept(visitor))
+                            .toList();
+
+                    if (invalidTransactions.isEmpty()) {
+                        return Optional.empty();
+                    }
+
+                    return Optional.of(InvalidWitnessedTransaction.of(witnessedTransaction, invalidTransactions));
+                })
+                .toList();
+        invalidWitnessedTransactions.accept(transactions);
+    }
+
+    private static final class SerializableInvariantVisitor
+            implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
+
+        private final InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+            Optional<Integer> expectedValue = inMemoryTransactionReplayer
+                    .getValues()
+                    .get(TableAndWorkloadCell.of(readTransactionAction.table(), readTransactionAction.cell()))
+                    .toJavaOptional()
+                    .orElseGet(Optional::empty);
+
+            if (!expectedValue.equals(readTransactionAction.value())) {
+                return Optional.of(InvalidWitnessedTransactionAction.of(
+                        readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expectedValue)));
+            }
+
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedWriteTransactionAction writeTransactionAction) {
+            inMemoryTransactionReplayer.visit(writeTransactionAction);
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedDeleteTransactionAction deleteTransactionAction) {
+            inMemoryTransactionReplayer.visit(deleteTransactionAction);
+            return Optional.empty();
+        }
+    }
+}u}(j} (47c1c58dc5ec09e6991e1b15ffa1c7e7c13a1b46j} hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowRunner.javaj} renamedj} Kj} Kj} Kj} https://github.com/palantir/atlasdb/blob/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.javaj} https://github.com/palantir/atlasdb/raw/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.javaj} https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.java?ref=f4439832e9bd60ddfcafde5f711bacd8bde20b38j} X&  @@ -14,9 +14,12 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.workload.workflow;
+package com.palantir.atlasdb.workload.runner;
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowRunner;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;previous_filenamejatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/AntithesisWorkflowRunner.javau}(j} (f903482687bcb5e66793d816482b51d37342f3f8j} fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/InMemoryValidationStore.javaj} addedj} K.j} K j} K.j} https://github.com/palantir/atlasdb/blob/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.javaj} https://github.com/palantir/atlasdb/raw/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.javaj} https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.java?ref=f4439832e9bd60ddfcafde5f711bacd8bde20b38j} X2  @@ -0,0 +1,46 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.Optional;
+
+public final class InMemoryValidationStore implements ValidationStore {
+
+    private final Map<TableAndWorkloadCell, Optional<Integer>> values;
+
+    private InMemoryValidationStore(Map<TableAndWorkloadCell, Optional<Integer>> values) {
+        this.values = values;
+    }
+
+    public static InMemoryValidationStore create(List<WitnessedTransaction> history) {
+        InMemoryTransactionReplayer replayer = new InMemoryTransactionReplayer();
+        history.stream()
+                .map(WitnessedTransaction::actions)
+                .forEach(witnessedTransactionActions ->
+                        witnessedTransactionActions.forEach(action -> action.accept(replayer)));
+        return new InMemoryValidationStore(replayer.getValues());
+    }
+
+    @Override
+    public Map<TableAndWorkloadCell, Optional<Integer>> values() {
+        return values;
+    }
+}u}(j} (dc1ba80c80acc0c1062aac7549f052f600d069cfj} patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj} addedj} K=j} K j} K=j} https://github.com/palantir/atlasdb/blob/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj} https://github.com/palantir/atlasdb/raw/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj} https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=f4439832e9bd60ddfcafde5f711bacd8bde20b38j} X
  @@ -0,0 +1,61 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.Optional;
+
+public final class InMemoryTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
+
+    private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> values =
+            StructureHolder.create(HashMap::empty);
+
+    @Override
+    public Void visit(WitnessedReadTransactionAction _readTransactionAction) {
+        return null;
+    }
+
+    @Override
+    public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
+        TableAndWorkloadCell tableAndWorkloadCell =
+                TableAndWorkloadCell.of(writeTransactionAction.table(), writeTransactionAction.cell());
+        values.with(map -> map.put(tableAndWorkloadCell, Optional.of(writeTransactionAction.value())));
+        return null;
+    }
+
+    /**
+     * Deletes are explicitly tracked to enable invariants that rely on verifying that deleted values stay deleted.
+     */
+    @Override
+    public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+        TableAndWorkloadCell tableAndWorkloadCell =
+                TableAndWorkloadCell.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
+        values.with(map -> map.put(tableAndWorkloadCell, Optional.empty()));
+        return null;
+    }
+
+    public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
+        return values.getSnapshot();
+    }
+}u}(j} (301fd225038dc758fb5af7d2c0a7b9fd364ca74dj} latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStore.javaj} removedj} K j} KTj} KTj} https://github.com/palantir/atlasdb/blob/f4759f8351fe208942a33e983b847c2e963ae3bf/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javaj} https://github.com/palantir/atlasdb/raw/f4759f8351fe208942a33e983b847c2e963ae3bf/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javaj} https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.java?ref=f4759f8351fe208942a33e983b847c2e963ae3bfj} X  @@ -1,84 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.transaction;
-
-import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
-import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
-import com.palantir.atlasdb.workload.store.ValidationStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
-import io.vavr.collection.HashMap;
-import io.vavr.collection.Map;
-import java.util.List;
-import java.util.Optional;
-
-public final class InMemoryValidationStore implements ValidationStore {
-
-    private final Map<TableAndWorkloadCell, Optional<Integer>> values;
-
-    private InMemoryValidationStore(Map<TableAndWorkloadCell, Optional<Integer>> values) {
-        this.values = values;
-    }
-
-    public static InMemoryValidationStore create(List<WitnessedTransaction> history) {
-        InMemoryTransactionReplayer replayer = new InMemoryTransactionReplayer();
-        history.stream()
-                .map(WitnessedTransaction::actions)
-                .forEach(witnessedTransactionActions ->
-                        witnessedTransactionActions.forEach(action -> action.accept(replayer)));
-        return new InMemoryValidationStore(replayer.getValues());
-    }
-
-    @Override
-    public Map<TableAndWorkloadCell, Optional<Integer>> values() {
-        return values;
-    }
-
-    private static final class InMemoryTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
-
-        private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> values =
-                StructureHolder.create(HashMap::empty);
-
-        @Override
-        public Void visit(WitnessedReadTransactionAction readTransactionAction) {
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
-            TableAndWorkloadCell tableAndWorkloadCell =
-                    TableAndWorkloadCell.of(writeTransactionAction.table(), writeTransactionAction.cell());
-            values.with(map -> map.put(tableAndWorkloadCell, Optional.of(writeTransactionAction.value())));
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
-            TableAndWorkloadCell tableAndWorkloadCell =
-                    TableAndWorkloadCell.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
-            values.with(map -> map.put(tableAndWorkloadCell, Optional.empty()));
-            return null;
-        }
-
-        public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
-            return values.getSnapshot();
-        }
-    }
-}u}(j} (90b36432d0c4959d6f029a213c9b14ce813a43a8j} latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj} addedj} Kj} K j} Kj} https://github.com/palantir/atlasdb/blob/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj} https://github.com/palantir/atlasdb/raw/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj} https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=f4439832e9bd60ddfcafde5f711bacd8bde20b38j} X\  @@ -0,0 +1,152 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class SerializableInvariantTest {
+
+    @Mock
+    private ReadableTransactionStore readableTransactionStore;
+
+    @Test
+    public void handlesLocalWrites() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .read(5, 10)
+                .write(5, 10, 15)
+                .read(5, 10, 15)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void noInvalidTransactionsWhenSerializable() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .write(23, 1, 20)
+                .write(7, 15, 14)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(23, 1, 20)
+                .read(7, 15, 14)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void catchesWriteSkew() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(6, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(6, 10, 15)
+                .write(5, 10, 0)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(6, 10, 15)
+                .write(6, 10, 0)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);
+
+        assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
+
+        assertThat(invalidWitnessedTransactionAction.action())
+                .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
+                    assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
+                    assertThat(action.value()).contains(15);
+                });
+        assertThat(invalidWitnessedTransactionAction.mismatchedValue())
+                .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+    }
+
+    @Test
+    public void handlesDeletes() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(6, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .delete(5, 10)
+                .read(5, 10)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+}u}(j} (7a5e8dd4c01ddc761284d5c5bdc9c0345ddd2826j} latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowRunnerTest.javaj} renamedj} Kj} Kj} Kj} https://github.com/palantir/atlasdb/blob/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.javaj} https://github.com/palantir/atlasdb/raw/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.javaj} https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.java?ref=f4439832e9bd60ddfcafde5f711bacd8bde20b38j} X"  @@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.workload.workflow;
+package com.palantir.atlasdb.workload.runner;
 
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.mock;
@@ -23,6 +23,8 @@
 import static org.mockito.Mockito.when;
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import java.util.List;
 import org.junit.Test;
 j~ natlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/AntithesisWorkflowRunnerTest.javau}(j} (eb63f7e70bff1527685e728d66979d4f8f1a1f60j} tatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayerTest.javaj} addedj} KJj} K j} KJj} https://github.com/palantir/atlasdb/blob/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj} https://github.com/palantir/atlasdb/raw/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj} https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.java?ref=f4439832e9bd60ddfcafde5f711bacd8bde20b38j} X  @@ -0,0 +1,74 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.Tuple2;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class InMemoryTransactionReplayerTest {
+
+    private static final WitnessedWriteTransactionAction WRITE_TRANSACTION_ACTION_1 =
+            ImmutableWitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+    private static final WitnessedWriteTransactionAction WRITE_TRANSACTION_ACTION_2 =
+            ImmutableWitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO);
+
+    @Test
+    public void readActionsAreIgnored() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        inMemoryTransactionReplayer.visit(
+                ImmutableWitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+        assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
+    }
+
+    @Test
+    public void writesAreRecorded() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_1);
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_2);
+        assertThat(inMemoryTransactionReplayer.getValues())
+                .containsExactlyInAnyOrder(
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)),
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_TWO, Optional.of(VALUE_TWO)));
+    }
+
+    @Test
+    public void deletesAreRecorded() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_1);
+        inMemoryTransactionReplayer.visit(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
+        inMemoryTransactionReplayer.visit(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO));
+        assertThat(inMemoryTransactionReplayer.getValues())
+                .containsExactlyInAnyOrder(
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_ONE, Optional.empty()),
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_TWO, Optional.empty()));
+    }
+}u}(j} (78af7c7707b5a99809f2969167221c5abc0b8231j} patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javaj} modifiedj} Kj} K j} Kj} https://github.com/palantir/atlasdb/blob/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj} https://github.com/palantir/atlasdb/raw/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj} https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=f4439832e9bd60ddfcafde5f711bacd8bde20b38j} X  @@ -25,6 +25,7 @@
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.store.ValidationStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;u}(j} (7b1fab2f64a88a2f2feeed744728c00b88416708j} qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj} addedj} Krj} K j} Krj} https://github.com/palantir/atlasdb/blob/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj} https://github.com/palantir/atlasdb/raw/f4439832e9bd60ddfcafde5f711bacd8bde20b38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj} https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=f4439832e9bd60ddfcafde5f711bacd8bde20b38j} Xz  @@ -0,0 +1,114 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.logsafe.Preconditions;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicLong;
+
+public final class WitnessedTransactionsBuilder {
+
+    private final List<WitnessedTransaction> witnessedTransactions = new ArrayList<>();
+
+    private final AtomicLong timestampCounter = new AtomicLong();
+    private final String table;
+
+    public WitnessedTransactionsBuilder(String table) {
+        this.table = table;
+    }
+
+    public WitnessedTransactionBuilder startTransaction() {
+        return new WitnessedTransactionBuilder(timestampCounter.incrementAndGet());
+    }
+
+    public List<WitnessedTransaction> build() {
+        return List.copyOf(witnessedTransactions);
+    }
+
+    public final class WitnessedTransactionBuilder {
+        private final List<WitnessedTransactionAction> actions = new ArrayList<>();
+
+        private boolean needsCommitTimestamp = false;
+
+        private final long startTimestamp;
+
+        public WitnessedTransactionBuilder(long startTimestamp) {
+            this.startTimestamp = startTimestamp;
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column, Optional<Integer> valueRead) {
+            actions.add(WitnessedReadTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), valueRead));
+            return this;
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column, Integer valueRead) {
+            return read(row, column, Optional.of(valueRead));
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column) {
+            return read(row, column, Optional.empty());
+        }
+
+        public WitnessedTransactionBuilder write(Integer row, Integer column, Integer value) {
+            actions.add(WitnessedWriteTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), value));
+            needsCommitTimestamp = true;
+            return this;
+        }
+
+        public WitnessedTransactionBuilder delete(Integer row, Integer column) {
+            actions.add(WitnessedDeleteTransactionAction.of(table, ImmutableWorkloadCell.of(row, column)));
+            needsCommitTimestamp = true;
+            return this;
+        }
+
+        public WitnessedTransactionsBuilder endTransaction() {
+            Optional<Long> commitTimestamp =
+                    needsCommitTimestamp ? Optional.of(timestampCounter.incrementAndGet()) : Optional.empty();
+            return endTransaction(commitTimestamp);
+        }
+
+        public WitnessedTransactionsBuilder endTransaction(Long commitTimestamp) {
+            return endTransaction(Optional.of(commitTimestamp));
+        }
+
+        public WitnessedTransactionsBuilder endTransaction(Optional<Long> commitTimestamp) {
+            if (needsCommitTimestamp) {
+                Preconditions.checkArgument(
+                        commitTimestamp.isPresent(),
+                        "Commit timestamp must be provided when the transaction has any writes or deletes.");
+                Preconditions.checkArgument(
+                        startTimestamp < commitTimestamp.get(),
+                        "Commit timestamp must be greater than the start timestamp.");
+            }
+            witnessedTransactions.add(ImmutableWitnessedTransaction.builder()
+                    .startTimestamp(startTimestamp)
+                    .actions(actions)
+                    .commitTimestamp(commitTimestamp)
+                    .build());
+            return WitnessedTransactionsBuilder.this;
+        }
+    }
+}ueu-      (b2292ce98723ecaaf7b5e61496a4dcb1b636269c}(sha(b2292ce98723ecaaf7b5e61496a4dcb1b636269cnode_idEC_kwDOAjP5fdoAKGIyMjkyY2U5ODcyM2VjYWFmN2I1ZTYxNDk2YTRkY2IxYjYzNjI2OWMcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-08-02T09:42:40Zu	committer}(jl~ Lucas Meirelesjn~ meireles31@msn.comjp~ 2023-08-02T09:42:40Zumessagefix test styletree}(jd~ (d7ecd30a5478d6608c21ac3b134052eec1d2d803url`https://api.github.com/repos/palantir/atlasdb/git/trees/d7ecd30a5478d6608c21ac3b134052eec1d2d803uj|~ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b2292ce98723ecaaf7b5e61496a4dcb1b636269c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmTKJRAACgkQJd22kJ7J
GizVbgf/RSgAIpK4mZ38UdwI12Wv9bEAv3tp4qc8CzQ7cCa0mW8Ez6tZZ74MHrgp
MawYLevWiIAT+Q6qfhl9c6XA4DZlgL7BBfsibJF33IDNjRc4Vc5GKDnYRFrMznpO
qbNz0kjVMSXzgYCNTRCTrC5axo+bl4uKVWhO3+TbSe0Yfp6HdVWL6Jvuz5SDkRp8
s0HO5jrwMSQ7D4Xrhty0dJmH5QvcAQuNsyAXcooUnCG6ai94zWW1i09yuhSFxt+L
jNbTbFg4MhjI9AYAikxiOdPMSHsY5+/4qJpZ8YNlY3Il2YFXxZVtPbe9T+Pb0XxI
dUOoFwRwzyFGpPG8U60NQXKPBqJhDw==
=hZP7
-----END PGP SIGNATURE-----payloadtree d7ecd30a5478d6608c21ac3b134052eec1d2d803
parent 9d61cc75576ad21444f08998003af2f38906a3b4
author Lucas Meireles <meireles31@msn.com> 1690969360 +0100
committer Lucas Meireles <meireles31@msn.com> 1690969360 +0100

fix test style
uuj|~ ^https://api.github.com/repos/palantir/atlasdb/commits/b2292ce98723ecaaf7b5e61496a4dcb1b636269chtml_urlShttps://github.com/palantir/atlasdb/commit/b2292ce98723ecaaf7b5e61496a4dcb1b636269ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b2292ce98723ecaaf7b5e61496a4dcb1b636269c/commentsjj~ }(loginLucasIMEidJg jf~ MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j|~ %https://api.github.com/users/LucasIMEj~ https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujr~ }(j~ LucasIMEj~ Jg jf~ MDQ6VXNlcjY3ODczMTE=j~ 3https://avatars.githubusercontent.com/u/6787311?v=4j~ h5j|~ %https://api.github.com/users/LucasIMEj~ https://github.com/LucasIMEj~ /https://api.github.com/users/LucasIME/followersj~ <https://api.github.com/users/LucasIME/following{/other_user}j~ 5https://api.github.com/users/LucasIME/gists{/gist_id}j~ <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j~ 3https://api.github.com/users/LucasIME/subscriptionsj~ *https://api.github.com/users/LucasIME/orgsj~ +https://api.github.com/users/LucasIME/reposj~ 6https://api.github.com/users/LucasIME/events{/privacy}j~ 5https://api.github.com/users/LucasIME/received_eventsj~ Userj~ uparents]}(jd~ (9d61cc75576ad21444f08998003af2f38906a3b4j|~ ^https://api.github.com/repos/palantir/atlasdb/commits/9d61cc75576ad21444f08998003af2f38906a3b4j~ Shttps://github.com/palantir/atlasdb/commit/9d61cc75576ad21444f08998003af2f38906a3b4uastats}(totalKJ	additionsK	deletionsK,ufiles]}(jd~ (ab9a6bde80a284b351d56e562af813d8f95bfa76filenamepatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/expectations/CellCountValidatorTest.javastatusmodifiedj~ Kj~ K,changesKJblob_urlhttps://github.com/palantir/atlasdb/blob/b2292ce98723ecaaf7b5e61496a4dcb1b636269c/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FCellCountValidatorTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b2292ce98723ecaaf7b5e61496a4dcb1b636269c/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FCellCountValidatorTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FCellCountValidatorTest.java?ref=b2292ce98723ecaaf7b5e61496a4dcb1b636269cpatchX"  @@ -20,17 +20,29 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 
+import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.cache.CacheValue;
 import com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
-import java.nio.charset.StandardCharsets;
 import java.util.Map;
 import one.util.streamex.EntryStream;
 import org.junit.Test;
 
 public class CellCountValidatorTest {
+    private static final Map<Cell, byte[]> TWO_PRESENT_ENTRIES_MAP = Map.of(
+            Cell.create(PtBytes.toBytes("foo"), PtBytes.toBytes("someColumn")),
+            PtBytes.toBytes("bar"),
+            Cell.create(PtBytes.toBytes("baz"), PtBytes.toBytes("someColumn")),
+            PtBytes.toBytes("qux"));
+    private static final Map<Cell, CacheValue> TWO_PRESENT_ONE_EMPTY_ENTRY_MAP = Map.of(
+            Cell.create(PtBytes.toBytes("foo"), PtBytes.toBytes("someColumn")),
+            CacheValue.of(PtBytes.toBytes("bar")),
+            Cell.create(PtBytes.toBytes("foo2"), PtBytes.toBytes("someColumn")),
+            CacheValue.of(PtBytes.toBytes("bar2")),
+            Cell.create(PtBytes.toBytes("baz"), PtBytes.toBytes("someColumn")),
+            CacheValue.empty());
 
     @Test
     public void testDontThrowIfFetchedLessCellsThanExpected() {
@@ -58,105 +70,79 @@ public void testDontThrowIfFetchedCellsEqualToExpected() {
 
     @Test
     public void testThrowsIfFetchedMoreCellsThanExpected() {
-        Map<Cell, byte[]> presentValues = cellMapOf("foo", "bar", "baz", "qux");
         assertThatLoggableExceptionThrownBy(
-                        () -> CellCountValidator.validateFetchedLessOrEqualToExpected(1, presentValues))
+                        () -> CellCountValidator.validateFetchedLessOrEqualToExpected(1, TWO_PRESENT_ENTRIES_MAP))
                 .isInstanceOf(MoreCellsPresentThanExpectedException.class)
                 .hasExactlyArgs(
                         SafeArg.of("expectedNumberOfCells", 1L),
                         SafeArg.of("numberOfCellsRetrieved", 2),
-                        UnsafeArg.of("retrievedCells", presentValues));
+                        UnsafeArg.of("retrievedCells", TWO_PRESENT_ENTRIES_MAP));
 
-        Map<Cell, CacheValue> cachedValues = toCached(presentValues);
+        Map<Cell, CacheValue> cachedValues = toCached(TWO_PRESENT_ENTRIES_MAP);
         assertThatLoggableExceptionThrownBy(
                         () -> CellCountValidator.validateCacheAndGetNonEmptyValuesCount(1, cachedValues))
                 .isInstanceOf(MoreCellsPresentThanExpectedException.class)
                 .hasExactlyArgs(
                         SafeArg.of("expectedNumberOfCells", 1L),
                         SafeArg.of("numberOfCellsRetrieved", 2),
-                        UnsafeArg.of("retrievedCells", presentValues));
+                        UnsafeArg.of("retrievedCells", TWO_PRESENT_ENTRIES_MAP));
     }
 
     @Test
     public void testThrowsIfExpectingNegativeValue() {
-        Map<Cell, byte[]> presentValues = cellMapOf("foo", "bar", "baz", "qux");
         assertThatLoggableExceptionThrownBy(
-                        () -> CellCountValidator.validateFetchedLessOrEqualToExpected(-1, presentValues))
+                        () -> CellCountValidator.validateFetchedLessOrEqualToExpected(-1, TWO_PRESENT_ENTRIES_MAP))
                 .isInstanceOf(MoreCellsPresentThanExpectedException.class)
                 .hasExactlyArgs(
                         SafeArg.of("expectedNumberOfCells", -1L),
                         SafeArg.of("numberOfCellsRetrieved", 2),
-                        UnsafeArg.of("retrievedCells", presentValues));
+                        UnsafeArg.of("retrievedCells", TWO_PRESENT_ENTRIES_MAP));
 
-        Map<Cell, CacheValue> cachedValues = toCached(presentValues);
+        Map<Cell, CacheValue> cachedValues = toCached(TWO_PRESENT_ENTRIES_MAP);
         assertThatLoggableExceptionThrownBy(
                         () -> CellCountValidator.validateCacheAndGetNonEmptyValuesCount(-1, cachedValues))
                 .isInstanceOf(MoreCellsPresentThanExpectedException.class)
                 .hasExactlyArgs(
                         SafeArg.of("expectedNumberOfCells", -1L),
                         SafeArg.of("numberOfCellsRetrieved", 2),
-                        UnsafeArg.of("retrievedCells", presentValues));
+                        UnsafeArg.of("retrievedCells", TWO_PRESENT_ENTRIES_MAP));
     }
 
     @Test
     public void testEmptyCacheValuesDoesNotCountAgainstPresentCells() {
-        Map<Cell, CacheValue> cachedValues = Map.of(
-                Cell.create("foo".getBytes(StandardCharsets.UTF_8), "someColumn".getBytes(StandardCharsets.UTF_8)),
-                CacheValue.of("bar".getBytes(StandardCharsets.UTF_8)),
-                Cell.create("baz".getBytes(StandardCharsets.UTF_8), "someColumn".getBytes(StandardCharsets.UTF_8)),
-                CacheValue.empty());
-
-        assertThatCode(() -> CellCountValidator.validateCacheAndGetNonEmptyValuesCount(1, cachedValues))
+        assertThatCode(() ->
+                        CellCountValidator.validateCacheAndGetNonEmptyValuesCount(2, TWO_PRESENT_ONE_EMPTY_ENTRY_MAP))
                 .doesNotThrowAnyException();
     }
 
     @Test
     public void testReturnsValueOfNonEmptyEntriesInCacheAfterValidation() {
-        Map<Cell, CacheValue> cachedValues = Map.of(
-                Cell.create("foo".getBytes(StandardCharsets.UTF_8), "someColumn".getBytes(StandardCharsets.UTF_8)),
-                CacheValue.of("bar".getBytes(StandardCharsets.UTF_8)),
-                Cell.create("foo2".getBytes(StandardCharsets.UTF_8), "someColumn".getBytes(StandardCharsets.UTF_8)),
-                CacheValue.of("bar2".getBytes(StandardCharsets.UTF_8)),
-                Cell.create("baz".getBytes(StandardCharsets.UTF_8), "someColumn".getBytes(StandardCharsets.UTF_8)),
-                CacheValue.empty());
-
-        assertThat(CellCountValidator.validateCacheAndGetNonEmptyValuesCount(2, cachedValues))
+        assertThat(CellCountValidator.validateCacheAndGetNonEmptyValuesCount(2, TWO_PRESENT_ONE_EMPTY_ENTRY_MAP))
                 .isEqualTo(2L);
     }
 
     @Test
     public void testThrowsIfMorePresentCachedCellsThanExpected() {
-        Map<Cell, byte[]> rawValues = cellMapOf("foo", "bar", "baz", "qux");
-        Map<Cell, CacheValue> cachedValues = toCached(rawValues);
+        Map<Cell, CacheValue> cachedValues = toCached(TWO_PRESENT_ENTRIES_MAP);
 
         assertThatLoggableExceptionThrownBy(
                         () -> CellCountValidator.validateCacheAndGetNonEmptyValuesCount(1, cachedValues))
                 .isInstanceOf(MoreCellsPresentThanExpectedException.class)
                 .hasExactlyArgs(
                         SafeArg.of("expectedNumberOfCells", 1L),
                         SafeArg.of("numberOfCellsRetrieved", 2),
-                        UnsafeArg.of("retrievedCells", rawValues));
-    }
-
-    private Map<Cell, byte[]> cellMapOf(String key, String value, String key2, String value2) {
-        return Map.of(
-                Cell.create(key.getBytes(StandardCharsets.UTF_8), "someColumn".getBytes(StandardCharsets.UTF_8)),
-                value.getBytes(StandardCharsets.UTF_8),
-                Cell.create(key2.getBytes(StandardCharsets.UTF_8), "someColumn".getBytes(StandardCharsets.UTF_8)),
-                value2.getBytes(StandardCharsets.UTF_8));
+                        UnsafeArg.of("retrievedCells", TWO_PRESENT_ENTRIES_MAP));
     }
 
-    private Map<Cell, byte[]> cellMapOf(String key, String value) {
-        return Map.of(
-                Cell.create(key.getBytes(StandardCharsets.UTF_8), "someColumn".getBytes(StandardCharsets.UTF_8)),
-                value.getBytes(StandardCharsets.UTF_8));
+    private static Map<Cell, byte[]> cellMapOf(String key, String value) {
+        return Map.of(Cell.create(PtBytes.toBytes(key), PtBytes.toBytes("someColumn")), PtBytes.toBytes(value));
     }
 
-    private Map<Cell, CacheValue> cacheCellMapOf(String key, String value) {
+    private static Map<Cell, CacheValue> cacheCellMapOf(String key, String value) {
         return EntryStream.of(cellMapOf(key, value)).mapValues(CacheValue::of).toMap();
     }
 
-    private Map<Cell, CacheValue> toCached(Map<Cell, byte[]> presentValues) {
+    private static Map<Cell, CacheValue> toCached(Map<Cell, byte[]> presentValues) {
         return EntryStream.of(presentValues).mapValues(CacheValue::of).toMap();
     }
 }uau(893c46f7fcd086faf56eb8a483ffa561f75ef129}(sha(893c46f7fcd086faf56eb8a483ffa561f75ef129node_idEC_kwDOAjP5fdoAKDg5M2M0NmY3ZmNkMDg2ZmFmNTZlYjhhNDgzZmZhNTYxZjc1ZWYxMjkcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-14T19:58:57Zu	committer}(j~ 
Sam Kramerj~ skramer@palantir.comj~ 2023-04-14T19:58:57Zumessage#validate that semaphore has permitstree}(j~ (a0738bb27daf966ed39b973e3b5c71d5f00918a4url`https://api.github.com/repos/palantir/atlasdb/git/trees/a0738bb27daf966ed39b973e3b5c71d5f00918a4uj~ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/893c46f7fcd086faf56eb8a483ffa561f75ef129
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ5sIEACgkQmPPOpKR4
XS20ywf7B5sCCF8YAlKHjAjIg6eQ0MMtBVPmHw6AcG64AQ+vmSvSv8NYHNRwlIB/
9FSD6PBKe+v20YbUMI1pvVAbao3hpmLQ5P2CgthppmMmbGooxV2soDEqi9dljK4+
d7VHhR2qvoAiECSYpc2KpYRoX6QX+gOL/boF82kVbmQ61knAAeJ6PvGWVOJu6Eaz
R7uJTdZhRr7Bvl82Hdlwvk7IhTdmDWEMeLX7VGtyWbRckT5ZLN/YZUk/1UICRHi9
aMfhS2u6+mkuc4sSLcdmhSfu/MqenEdrYImIbN7YwNoLa7WkpvNwV2KK3QRYkdGS
Dh7yNIk1LI3wXDhPx3i79J78w6gsJQ==
=qMbA
-----END PGP SIGNATURE-----payloadtree a0738bb27daf966ed39b973e3b5c71d5f00918a4
parent d3d20588bfa1092b760fbb3cba7daf8da03f8fc4
author Sam Kramer <skramer@palantir.com> 1681502337 +0100
committer Sam Kramer <skramer@palantir.com> 1681502337 +0100

validate that semaphore has permits
uuj~ ^https://api.github.com/repos/palantir/atlasdb/commits/893c46f7fcd086faf56eb8a483ffa561f75ef129html_urlShttps://github.com/palantir/atlasdb/commit/893c46f7fcd086faf56eb8a483ffa561f75ef129comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/893c46f7fcd086faf56eb8a483ffa561f75ef129/commentsj~ }(login
Sam-KrameridJ^2_ j~ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j~ 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj~ }(j 
Sam-Kramerj J^2_ j~ MDQ6VXNlcjYyMzg4MTQ=j
 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j~ 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj! Userj# uparents]}(j~ (d3d20588bfa1092b760fbb3cba7daf8da03f8fc4j~ ^https://api.github.com/repos/palantir/atlasdb/commits/d3d20588bfa1092b760fbb3cba7daf8da03f8fc4j Shttps://github.com/palantir/atlasdb/commit/d3d20588bfa1092b760fbb3cba7daf8da03f8fc4uastats}(totalK	additionsK	deletionsK ufiles]}(j~ (eafc13febea235bd6914114fb3b44ee3feed25d4filenameuatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunnerTest.javastatusmodifiedj= Kj> K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/893c46f7fcd086faf56eb8a483ffa561f75ef129/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/893c46f7fcd086faf56eb8a483ffa561f75ef129/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.java?ref=893c46f7fcd086faf56eb8a483ffa561f75ef129patchX  @@ -110,6 +110,7 @@ public void runExecutesMultipleWorkflowsAndWaitsForAllToFinishBeforeInvokingInva
 
         new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(slowWorkflowValidator, workflowValidator);
 
+        assertThat(semaphore.availablePermits()).isEqualTo(2);
         verify(workflow, times(1)).run();
         verify(slowWorkflow, times(1)).run();
         verify(invariantReporterOne, times(2)).report(any());uau(3eda56b7ba053430de86290b670b6343a115ab35}(sha(3eda56b7ba053430de86290b670b6343a115ab35node_idEC_kwDOAjP5fdoAKDNlZGE1NmI3YmEwNTM0MzBkZTg2MjkwYjY3MGI2MzQzYTExNWFiMzUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-09T09:49:50Zu	committer}(jZ Jeremy Kongj\ jkong@palantir.comj^ 2023-06-09T09:49:50ZumessageColumnANDValuetree}(jR (592bea98a5c670cf2903b0e86b15f22cae8496eaurl`https://api.github.com/repos/palantir/atlasdb/git/trees/592bea98a5c670cf2903b0e86b15f22cae8496eaujj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3eda56b7ba053430de86290b670b6343a115ab35
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSC9b4ACgkQTLdFKain
zjxyRggA4szFbRnQkyvWl0gqfEQbWQ1HcmZExrsyHBn6rovtlxpy517gf6RCruik
d2/rLhRe8fVo7uBsgACpLZ7jWFCqoCrWUS/ByFX96hur+VoHNIf36qULNLRBNVjU
dJFWdsPb9Ot1hLlXS9CcNjj27jmn4mJmeymSwyJxi8QWShLIf/UabXcIo3SvX6DK
dCxQqXPF1KvAKDXGm7ps+oeDTmDU/ZWk9FxsC1aDQe9JCIqCUuvnH4eQfnBBI3LI
evdXA1axt4udJR5IouJkCRAjGgZPrDV6oAgj8ghFBLuoltDHTbaT9Jp/NYyYvXB0
jDrlfpb8hbA6uo9xU9pIg5MOS+IrTA==
=+IEV
-----END PGP SIGNATURE-----payloadtree 592bea98a5c670cf2903b0e86b15f22cae8496ea
parent 6b7b053d608391abfdb6b79144ece08c9758c464
author Jeremy Kong <jkong@palantir.com> 1686304190 +0100
committer Jeremy Kong <jkong@palantir.com> 1686304190 +0100

ColumnANDValue
uujj ^https://api.github.com/repos/palantir/atlasdb/commits/3eda56b7ba053430de86290b670b6343a115ab35html_urlShttps://github.com/palantir/atlasdb/commit/3eda56b7ba053430de86290b670b6343a115ab35comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3eda56b7ba053430de86290b670b6343a115ab35/commentsjX }(login
jeremyk-91idJZ jT MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jj 'https://api.github.com/users/jeremyk-91jx https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj` }(j} 
jeremyk-91j JZ jT MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5jj 'https://api.github.com/users/jeremyk-91jx https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(jR (6b7b053d608391abfdb6b79144ece08c9758c464jj ^https://api.github.com/repos/palantir/atlasdb/commits/6b7b053d608391abfdb6b79144ece08c9758c464jx Shttps://github.com/palantir/atlasdb/commit/6b7b053d608391abfdb6b79144ece08c9758c464uastats}(totalMJ	additionsK	deletionsKufiles](}(jR (7688afda0d1babfe3e30b9cb5e95cdef3667ba38filenameaatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ColumnAndValue.javastatusrenamedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnAndValue.javaraw_urlhttps://github.com/palantir/atlasdb/raw/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnAndValue.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnAndValue.java?ref=3eda56b7ba053430de86290b670b6343a115ab35patchX  @@ -19,14 +19,14 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface ColumnValue {
+public interface ColumnAndValue {
     @Value.Parameter
     int column();
 
     @Value.Parameter
     int value();
 
-    static ColumnValue of(int column, int value) {
-        return ImmutableColumnValue.of(column, value);
+    static ColumnAndValue of(int column, int value) {
+        return ImmutableColumnAndValue.of(column, value);
     }
 }previous_filename^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ColumnValue.javau}(jR (1eca332d3382e2a96829df93753d948b529fc5bdj \atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/RowResult.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FRowResult.javaj https://github.com/palantir/atlasdb/raw/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FRowResult.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FRowResult.java?ref=3eda56b7ba053430de86290b670b6343a115ab35j @@ -23,7 +23,7 @@
 public interface RowResult {
     int row();
 
-    Set<ColumnValue> columns();
+    Set<ColumnAndValue> columns();
 
     static ImmutableRowResult.Builder builder() {
         return ImmutableRowResult.builder();u}(jR (65f3deecc43c12a40cc68dcd204508e26ac15764j oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj https://github.com/palantir/atlasdb/raw/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=3eda56b7ba053430de86290b670b6343a115ab35j XI  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.RowResult;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -34,7 +34,7 @@ public interface InteractiveTransaction {
 
     void delete(String table, WorkloadCell workloadCell);
 
-    List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection);
+    List<ColumnAndValue> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection);
 
     List<RowResult> getRange(String table, RangeSlice rowsToRead, SortedSet<Integer> columns);
 u}(jR (6be89ac577d426cb259ff547d6ed9c8b7a14da63j |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowColumnRangeReadTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.java?ref=3eda56b7ba053430de86290b670b6343a115ab35j XU  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import java.util.List;
 import org.immutables.value.Value;
@@ -42,7 +42,7 @@ default <T> T accept(TransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-    default WitnessedRowColumnRangeReadTransactionAction witness(List<ColumnValue> columnsAndValues) {
+    default WitnessedRowColumnRangeReadTransactionAction witness(List<ColumnAndValue> columnsAndValues) {
         return WitnessedRowColumnRangeReadTransactionAction.builder()
                 .originalQuery(this)
                 .columnsAndValues(columnsAndValues)u}(jR (c3f046a1384b93cbb56e4130900d91a35a72ff09j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedRowColumnRangeReadTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.java?ref=3eda56b7ba053430de86290b670b6343a115ab35j X  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import java.util.List;
@@ -26,7 +26,7 @@
 public interface InvalidWitnessedRowColumnRangeReadTransactionAction extends InvalidWitnessedTransactionAction {
     WitnessedRowColumnRangeReadTransactionAction witness();
 
-    List<ColumnValue> expectedColumnsAndValues();
+    List<ColumnAndValue> expectedColumnsAndValues();
 
     @Value.Check
     default void check() {u}(jR (a860751524cbbcadb73613c7c16b916a1cc63326j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=3eda56b7ba053430de86290b670b6343a115ab35j Xg  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
@@ -29,7 +29,7 @@
 public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedTransactionAction {
     RowColumnRangeReadTransactionAction originalQuery();
 
-    List<ColumnValue> columnsAndValues();
+    List<ColumnAndValue> columnsAndValues();
 
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
@@ -39,13 +39,13 @@ default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
     @Value.Check
     default void check() {
         Set<Integer> knownColumns = new HashSet<>();
-        for (ColumnValue columnValue : columnsAndValues()) {
+        for (ColumnAndValue columnAndValue : columnsAndValues()) {
             Preconditions.checkState(
-                    !knownColumns.contains(columnValue.column()),
+                    !knownColumns.contains(columnAndValue.column()),
                     "Duplicate column in columnsAndValues",
-                    SafeArg.of("duplicatedColumn", columnValue.column()),
+                    SafeArg.of("duplicatedColumn", columnAndValue.column()),
                     SafeArg.of("columnsAndValues", columnsAndValues()));
-            knownColumns.add(columnValue.column());
+            knownColumns.add(columnAndValue.column());
         }
     }
 u}(jR (9d7e0b0d79a64fcfee363feb57ac3b369e780deaj atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javaj modifiedj Kj Kj K j https://github.com/palantir/atlasdb/blob/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj https://github.com/palantir/atlasdb/raw/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=3eda56b7ba053430de86290b670b6343a115ab35j X  @@ -20,7 +20,7 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 
 import com.google.common.collect.ImmutableList;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.logsafe.SafeArg;
@@ -31,34 +31,34 @@ public class WitnessedRowColumnRangeReadTransactionActionTest {
     @Test
     public void canCreateWitness() {
         assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
-                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                                .table("foo")
-                                .row(1)
-                                .columnRangeSelection(
-                                        ColumnRangeSelection.builder().build())
-                                .build())
+                .addColumnsAndValues(ColumnAndValue.of(1, 5), ColumnAndValue.of(5, 1), ColumnAndValue.of(3, 3))
+                .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                        .table("foo")
+                        .row(1)
+                        .columnRangeSelection(
+                                ColumnRangeSelection.builder().build())
                         .build())
+                .build())
                 .doesNotThrowAnyException();
     }
 
     @Test
     public void cannotCreateWitnessWithDuplicateColumns() {
         assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))
-                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                                .table("foo")
-                                .row(1)
-                                .columnRangeSelection(
-                                        ColumnRangeSelection.builder().build())
-                                .build())
+                .addColumnsAndValues(ColumnAndValue.of(1, 5), ColumnAndValue.of(5, 1), ColumnAndValue.of(1, 3))
+                .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                        .table("foo")
+                        .row(1)
+                        .columnRangeSelection(
+                                ColumnRangeSelection.builder().build())
                         .build())
+                .build())
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Duplicate column in columnsAndValues")
                 .hasExactlyArgs(
                         SafeArg.of("duplicatedColumn", 1),
                         SafeArg.of(
                                 "columnsAndValues",
-                                ImmutableList.of(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))));
+                                ImmutableList.of(ColumnAndValue.of(1, 5), ColumnAndValue.of(5, 1), ColumnAndValue.of(1, 3))));
     }
 }u}(jR (65ff70ed2f92e0a7769259f46ab982fe9d589a41j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://github.com/palantir/atlasdb/raw/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=3eda56b7ba053430de86290b670b6343a115ab35j X%  @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
 import com.palantir.atlasdb.workload.transaction.RangeQueryReader;
@@ -101,7 +101,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(
         @Override
         public Optional<InvalidWitnessedTransactionAction> visit(
                 WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
-            List<ColumnValue> expectedReads =
+            List<ColumnAndValue> expectedReads =
                     rangeQueryReader.readRange(rowColumnRangeReadTransactionAction.originalQuery());
             if (!expectedReads.equals(rowColumnRangeReadTransactionAction.columnsAndValues())) {
                 return Optional.of(InvalidWitnessedRowColumnRangeReadTransactionAction.builder()u}(jR (e74c51f2767e5744e31cbb2cb65d286085493adej katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj https://github.com/palantir/atlasdb/raw/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=3eda56b7ba053430de86290b670b6343a115ab35j X  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.invariant;
 
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.SimpleRangeQueryReader;
@@ -62,7 +62,7 @@ final class SnapshotInvariantVisitor
     public Optional<InvalidWitnessedTransactionAction> visit(
             WitnessedSingleCellReadTransactionAction readTransactionAction) {
         Optional<Integer> expected = fetchValueFromView(
-                        readTransactionAction.table(), readTransactionAction.cell(), readView)
+                readTransactionAction.table(), readTransactionAction.cell(), readView)
                 .value();
         if (!expected.equals(readTransactionAction.value())) {
             return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
@@ -74,7 +74,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
-                        writeTransactionAction.table(), writeTransactionAction.cell())
+                writeTransactionAction.table(), writeTransactionAction.cell())
                 .map(mismatchedValue ->
                         InvalidWitnessedSingleCellTransactionAction.of(writeTransactionAction, mismatchedValue));
 
@@ -88,7 +88,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransacti
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
-                        deleteTransactionAction.table(), deleteTransactionAction.cell())
+                deleteTransactionAction.table(), deleteTransactionAction.cell())
                 .map(mismatchedValue ->
                         InvalidWitnessedSingleCellTransactionAction.of(deleteTransactionAction, mismatchedValue));
 
@@ -99,7 +99,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransact
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(
             WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
-        List<ColumnValue> expectedReads = SimpleRangeQueryReader.createForSnapshot(readView)
+        List<ColumnAndValue> expectedReads = SimpleRangeQueryReader.createForSnapshot(readView)
                 .readRange(rowColumnRangeReadTransactionAction.originalQuery());
         if (!expectedReads.equals(rowColumnRangeReadTransactionAction.columnsAndValues())) {
             return Optional.of(InvalidWitnessedRowColumnRangeReadTransactionAction.builder()u}(jR (b5e0a05f4943eb768abdf7bd8062d182d748a95cj latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://github.com/palantir/atlasdb/raw/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=3eda56b7ba053430de86290b670b6343a115ab35j X	  @@ -107,7 +107,7 @@ public void delete(String table, WorkloadCell workloadCell) {
     }
 
     @Override
-    public List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection) {
+    public List<ColumnAndValue> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection) {
         return run(
                 tableReference -> {
                     // Having a non-configurable batch hint is a bit iffy, but suffices as this won't be used in
@@ -117,11 +117,11 @@ public List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRang
                             List.of(AtlasDbUtils.toAtlasKey(row)),
                             BatchColumnRangeSelection.create(
                                     AtlasDbUtils.toAtlasColumnRangeSelection(columnRangeSelection), 100));
-                    List<ColumnValue> columnsAndValues = EntryStream.of(iterators.get(AtlasDbUtils.toAtlasKey(row)))
+                    List<ColumnAndValue> columnsAndValues = EntryStream.of(iterators.get(AtlasDbUtils.toAtlasKey(row)))
                             .mapKeys(Cell::getColumnName)
                             .mapKeys(AtlasDbUtils::fromAtlasColumn)
                             .mapValues(AtlasDbUtils::fromAtlasValue)
-                            .map(entry -> ColumnValue.of(entry.getKey(), entry.getValue()))
+                            .map(entry -> ColumnAndValue.of(entry.getKey(), entry.getValue()))
                             .collect(Collectors.toList());
                     witnessedTransactionActions.add(WitnessedRowColumnRangeReadTransactionAction.builder()
                             .originalQuery(RowColumnRangeReadTransactionAction.builder()
@@ -146,7 +146,7 @@ public List<RowResult> getRange(String table, RangeSlice rowsToRead, SortedSet<I
                             .map(atlasRowResult -> RowResult.builder()
                                     .row(AtlasDbUtils.fromAtlasRow(atlasRowResult.getRowName()))
                                     .addAllColumns(atlasRowResult.getColumns().entrySet().stream()
-                                            .map(entry -> ColumnValue.of(
+                                            .map(entry -> ColumnAndValue.of(
                                                     AtlasDbUtils.fromAtlasColumn(entry.getKey()),
                                                     AtlasDbUtils.fromAtlasValue(entry.getValue())))
                                             .collect(Collectors.toList()))u}(jR (60d3e000f2076c608fd8208ae840c3a81c246f9dj eatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/RangeQueryReader.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.javaj https://github.com/palantir/atlasdb/raw/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.java?ref=3eda56b7ba053430de86290b670b6343a115ab35j X  @@ -16,9 +16,9 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import java.util.List;
 
 public interface RangeQueryReader {
-    List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction);
+    List<ColumnAndValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction);
 }u}(jR (d129f7b73c4fd31f9d978d5fb77b1604a3cd003ej katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReader.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj https://github.com/palantir/atlasdb/raw/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.java?ref=3eda56b7ba053430de86290b670b6343a115ab35j X	  @@ -19,7 +19,7 @@
 import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.invariant.ValueAndMaybeTimestamp;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
@@ -52,13 +52,13 @@ public static RangeQueryReader createForSnapshot(
     }
 
     @Override
-    public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction) {
+    public List<ColumnAndValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction) {
         Map<TableAndWorkloadCell, Optional<Integer>> allValues = rawValueSupplier.get();
         if (allValues.size() > LARGE_HISTORY_LIMIT) {
             log.error(
                     "Attempted to do range queries in a simple way, even though the history is large ({} entries)! If"
-                        + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
-                        + " efficient range query implementation.",
+                            + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
+                            + " efficient range query implementation.",
                     SafeArg.of("size", allValues.size()));
         }
         return allValues
@@ -74,12 +74,12 @@ public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTrans
                             .contains(tableAndWorkloadCell.cell().column());
                 })
                 .filterValues(Optional::isPresent)
-                .map(entry -> ColumnValue.of(
+                .map(entry -> ColumnAndValue.of(
                         entry._1().cell().column(),
                         entry._2()
                                 .orElseThrow(() -> new SafeRuntimeException(
                                         "Empty values should already have been filtered out!"))))
-                .sortBy(ColumnValue::column)
+                .sortBy(ColumnAndValue::column)
                 .toJavaList();
     }
 }u}(jR (696e20bfa4e91d86751f7c482791d8f7445b3348j katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflows.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaj https://github.com/palantir/atlasdb/raw/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.java?ref=3eda56b7ba053430de86290b670b6343a115ab35j XU  @@ -18,7 +18,7 @@
 
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
@@ -132,7 +132,7 @@ private Map<Integer, Optional<Integer>> getAccountBalances(InteractiveTransactio
                                     .endColumnExclusive(workflowConfiguration.numberOfAccounts())
                                     .build())
                     .stream()
-                    .collect(Collectors.toMap(ColumnValue::column, ColumnValue::value));
+                    .collect(Collectors.toMap(ColumnAndValue::column, ColumnAndValue::value));
             return IntStream.range(0, workflowConfiguration.numberOfAccounts())
                     .boxed()
                     .collect(Collectors.toMap(u}(jR (bb82ed109ab12bf07503eb28f206bb662101d44cj latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj modifiedj Kj Kj K&j https://github.com/palantir/atlasdb/blob/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj https://github.com/palantir/atlasdb/raw/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=3eda56b7ba053430de86290b670b6343a115ab35j X&  @@ -20,7 +20,7 @@
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterables;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
@@ -214,7 +214,7 @@ public void readsRowRangeToExhaustion() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(15, 21)))
+                        ImmutableList.of(ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -238,7 +238,7 @@ public void incorporatesLocalWritesIntoRowColumnRangeQueries() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(15, 21), ColumnValue.of(20, 34)))
+                        ImmutableList.of(ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21), ColumnAndValue.of(20, 34)))
                 .write(5, 10, 99)
                 .write(5, 13, 24)
                 .delete(5, 15)
@@ -247,10 +247,10 @@ public void incorporatesLocalWritesIntoRowColumnRangeQueries() {
                         5,
                         ColumnRangeSelection.builder().build(),
                         ImmutableList.of(
-                                ColumnValue.of(10, 99),
-                                ColumnValue.of(13, 24),
-                                ColumnValue.of(18, 36),
-                                ColumnValue.of(20, 34)))
+                                ColumnAndValue.of(10, 99),
+                                ColumnAndValue.of(13, 24),
+                                ColumnAndValue.of(18, 36),
+                                ColumnAndValue.of(20, 34)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -274,7 +274,7 @@ public void identifiesUnexpectedMissingCellInRowColumnRangeRead() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(20, 34)))
+                        ImmutableList.of(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -286,8 +286,8 @@ public void identifiesUnexpectedMissingCellInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                                action.expectedColumnsAndValues())
-                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(15, 21), ColumnValue.of(20, 34)));
+                        action.expectedColumnsAndValues())
+                        .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 21), ColumnAndValue.of(20, 34)));
     }
 
     @Test
@@ -302,7 +302,7 @@ public void identifiesUnexpectedAdditionalCellInRowColumnRangeRead() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(15, 24), ColumnValue.of(20, 34)))
+                        ImmutableList.of(ColumnAndValue.of(10, 15), ColumnAndValue.of(15, 24), ColumnAndValue.of(20, 34)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -314,8 +314,8 @@ public void identifiesUnexpectedAdditionalCellInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                                action.expectedColumnsAndValues())
-                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
+                        action.expectedColumnsAndValues())
+                        .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
     }
 
     @Test
@@ -330,7 +330,7 @@ public void identifiesIncorrectCellValuesInRowColumnRangeRead() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(10, 8888888), ColumnValue.of(20, 34)))
+                        ImmutableList.of(ColumnAndValue.of(10, 8888888), ColumnAndValue.of(20, 34)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -342,8 +342,8 @@ public void identifiesIncorrectCellValuesInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                                action.expectedColumnsAndValues())
-                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
+                        action.expectedColumnsAndValues())
+                        .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
     }
 
     @Test
@@ -358,7 +358,7 @@ public void identifiesIncorrectOrderingInRowColumnRangeRead() {
                 .rowColumnRangeRead(
                         5,
                         ColumnRangeSelection.builder().build(),
-                        ImmutableList.of(ColumnValue.of(20, 34), ColumnValue.of(10, 15)))
+                        ImmutableList.of(ColumnAndValue.of(20, 34), ColumnAndValue.of(10, 15)))
                 .endTransaction()
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -370,8 +370,8 @@ public void identifiesIncorrectOrderingInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                                action.expectedColumnsAndValues())
-                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
+                        action.expectedColumnsAndValues())
+                        .containsExactly(ColumnAndValue.of(10, 15), ColumnAndValue.of(20, 34)));
     }
 
     private static InvalidWitnessedTransactionAction getSingularFinalInvalidAction(u}(jR (1dd888be2cbe216b733496bdef850a4e96a0dc2cj hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj https://github.com/palantir/atlasdb/raw/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=3eda56b7ba053430de86290b670b6343a115ab35j X*  @@ -20,7 +20,7 @@
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterables;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
@@ -190,8 +190,8 @@ public void rowColumnRangeScanNotExpectedToReadColumnsCommittingAfterOurStart()
                         5,
                         ColumnRangeSelection.builder().build(),
                         ImmutableList.of(
-                                ColumnValue.of(10, WorkloadTestHelpers.VALUE_ONE),
-                                ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE + WorkloadTestHelpers.VALUE_TWO)))
+                                ColumnAndValue.of(10, WorkloadTestHelpers.VALUE_ONE),
+                                ColumnAndValue.of(30, WorkloadTestHelpers.VALUE_ONE + WorkloadTestHelpers.VALUE_TWO)))
                 .endTransaction(21L)
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -215,8 +215,8 @@ public void rowColumnRangeScanFlagsColumnCommittingAfterOurStartAsViolating() {
                         5,
                         ColumnRangeSelection.builder().build(),
                         ImmutableList.of(
-                                ColumnValue.of(20, WorkloadTestHelpers.VALUE_TWO),
-                                ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
+                                ColumnAndValue.of(20, WorkloadTestHelpers.VALUE_TWO),
+                                ColumnAndValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
                 .endTransaction(21L)
                 .build();
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
@@ -242,11 +242,11 @@ public void rowColumnRangeScanFlagsColumnCommittingAfterOurStartAsViolating() {
                                                             .build())
                                                     .build())
                                             .columnsAndValues(ImmutableList.of(
-                                                    ColumnValue.of(20, WorkloadTestHelpers.VALUE_TWO),
-                                                    ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
+                                                    ColumnAndValue.of(20, WorkloadTestHelpers.VALUE_TWO),
+                                                    ColumnAndValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
                                             .build());
                             assertThat(invalidRowColumnRangeRead.expectedColumnsAndValues())
-                                    .containsExactly(ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE));
+                                    .containsExactly(ColumnAndValue.of(30, WorkloadTestHelpers.VALUE_ONE));
                         });
     }
 }u}(jR (77e2749f4f663f16529ed4a3a2f0be18bf9ffca4j patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.java     j modifiedj K:j K:j Ktj https://github.com/palantir/atlasdb/blob/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://github.com/palantir/atlasdb/raw/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=3eda56b7ba053430de86290b670b6343a115ab35j X32  @@ -63,10 +63,10 @@ public void before() {
     @Test
     public void witnessRecordsAllSingleCellActions() {
         assertThat(readWrite(transaction -> {
-                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-                    transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
-                }))
+            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+            transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
+        }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
@@ -76,10 +76,10 @@ public void witnessRecordsAllSingleCellActions() {
     @Test
     public void readHandlesEmptyAndPresentValue() {
         assertThat(readWrite(transaction -> {
-                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-                    transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
-                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-                }))
+            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+            transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+        }))
                 .containsExactly(
                         WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
@@ -90,12 +90,12 @@ public void readHandlesEmptyAndPresentValue() {
     @Test
     public void witnessRecordsColumnRangeActions() {
         assertThat(readWrite(transaction -> {
-                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            WORKLOAD_CELL_TWO.key(),
-                            ColumnRangeSelection.builder().build());
-                }))
+            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+            transaction.getRowColumnRange(
+                    TABLE_1,
+                    WORKLOAD_CELL_TWO.key(),
+                    ColumnRangeSelection.builder().build());
+        }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedRowColumnRangeReadTransactionAction.builder()
@@ -105,18 +105,18 @@ public void witnessRecordsColumnRangeActions() {
                                         .columnRangeSelection(
                                                 ColumnRangeSelection.builder().build())
                                         .build())
-                                .addColumnsAndValues(ColumnValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
+                                .addColumnsAndValues(ColumnAndValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
                                 .build());
     }
 
     @Test
     public void emptyColumnRangeReadsAreRecorded() {
         assertThat(readWrite(transaction -> {
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            WORKLOAD_CELL_TWO.key(),
-                            ColumnRangeSelection.builder().build());
-                }))
+            transaction.getRowColumnRange(
+                    TABLE_1,
+                    WORKLOAD_CELL_TWO.key(),
+                    ColumnRangeSelection.builder().build());
+        }))
                 .containsExactly(WitnessedRowColumnRangeReadTransactionAction.builder()
                         .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                 .table(TABLE_1)
@@ -131,20 +131,20 @@ public void emptyColumnRangeReadsAreRecorded() {
     public void allRelevantCellsAreRecordedForFullColumnScan() {
         int iterationCount = 1000;
         assertThat(readWrite(transaction -> {
-                    IntStream.range(0, iterationCount)
-                            .forEach(column ->
-                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-                    transaction.getRowColumnRange(
-                            TABLE_1, 1, ColumnRangeSelection.builder().build());
-                }))
+            IntStream.range(0, iterationCount)
+                    .forEach(column ->
+                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+            transaction.getRowColumnRange(
+                    TABLE_1, 1, ColumnRangeSelection.builder().build());
+        }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
                         .isInstanceOfSatisfying(
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
                                         .isEqualTo(IntStream.range(0, iterationCount)
-                                                .mapToObj(column -> ColumnValue.of(column, VALUE_ONE))
+                                                .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
                                                 .collect(Collectors.toList()))));
     }
 
@@ -154,35 +154,35 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
         int startInclusive = 313;
         int endExclusive = 855;
         assertThat(readWrite(transaction -> {
-                    IntStream.range(0, iterationCount)
-                            .forEach(column ->
-                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            1,
-                            ColumnRangeSelection.builder()
-                                    .startColumnInclusive(startInclusive)
-                                    .endColumnExclusive(endExclusive)
-                                    .build());
-                }))
+            IntStream.range(0, iterationCount)
+                    .forEach(column ->
+                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+            transaction.getRowColumnRange(
+                    TABLE_1,
+                    1,
+                    ColumnRangeSelection.builder()
+                            .startColumnInclusive(startInclusive)
+                            .endColumnExclusive(endExclusive)
+                            .build());
+        }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
                         .isInstanceOfSatisfying(
                                 WitnessedRowColumnRangeReadTransactionAction.class,
                                 witness -> assertThat(witness.columnsAndValues())
                                         .isEqualTo(IntStream.range(startInclusive, endExclusive)
-                                                .mapToObj(column -> ColumnValue.of(column, VALUE_ONE))
+                                                .mapToObj(column -> ColumnAndValue.of(column, VALUE_ONE))
                                                 .collect(Collectors.toList()))));
     }
 
     @Test
     public void witnessRecordsRowRangeScans() {
         assertThat(readWrite(transaction -> {
-                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-                    transaction.getRange(
-                            TABLE_1, RangeSlice.builder().build(), ImmutableSortedSet.of(WORKLOAD_CELL_TWO.column()));
-                }))
+            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+            transaction.getRange(
+                    TABLE_1, RangeSlice.builder().build(), ImmutableSortedSet.of(WORKLOAD_CELL_TWO.column()));
+        }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedRowRangeReadTransactionAction.builder()
@@ -193,17 +193,17 @@ public void witnessRecordsRowRangeScans() {
                                         .build())
                                 .addResults(RowResult.builder()
                                         .row(WORKLOAD_CELL_TWO.key())
-                                        .addColumns(ColumnValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
+                                        .addColumns(ColumnAndValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
                                         .build())
                                 .build());
     }
 
     @Test
     public void emptyRowRangeScansAreRecorded() {
         assertThat(readWrite(transaction -> {
-                    transaction.getRange(
-                            TABLE_1, RangeSlice.builder().build(), ImmutableSortedSet.of(WORKLOAD_CELL_TWO.column()));
-                }))
+            transaction.getRange(
+                    TABLE_1, RangeSlice.builder().build(), ImmutableSortedSet.of(WORKLOAD_CELL_TWO.column()));
+        }))
                 .containsExactly(WitnessedRowRangeReadTransactionAction.builder()
                         .originalQuery(RowRangeReadTransactionAction.builder()
                                 .table(TABLE_1)
@@ -246,7 +246,7 @@ public void rowRangeScansReturnPreciselyValuesInRange() {
                         .addAllResults(IntStream.range(3, 8)
                                 .mapToObj(index -> RowResult.builder()
                                         .row(index)
-                                        .addColumns(ColumnValue.of(column, index))
+                                        .addColumns(ColumnAndValue.of(column, index))
                                         .build())
                                 .collect(Collectors.toList()))
                         .build());
@@ -280,7 +280,7 @@ public void rowRangeScansOnlyReturnNecessaryColumns() {
                         .addAllResults(IntStream.range(0, numRows)
                                 .mapToObj(index -> RowResult.builder()
                                         .row(index)
-                                        .addColumns(ColumnValue.of(2, index + 1))
+                                        .addColumns(ColumnAndValue.of(2, index + 1))
                                         .build())
                                 .collect(Collectors.toList()))
                         .build());
@@ -356,22 +356,22 @@ private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTr
     private void assertThatThrownWhenUnknownTableReferenced(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-                    transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
-                    return null;
-                }))
+            transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
+            return null;
+        }))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Transaction action has unknown table.");
     }
 
     private void assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-                    AtlasDbInteractiveTransaction transaction =
-                            new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
-                    transaction.witness();
-                    transactionConsumer.accept(transaction);
-                    return null;
-                }))
+            AtlasDbInteractiveTransaction transaction =
+                    new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
+            transaction.witness();
+            transactionConsumer.accept(transaction);
+            return null;
+        }))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Transaction has already been witnessed and can no longer perform any actions.");
     }u}(jR (f9ab6d967d90e8804068f2a7404ea3ea44d290f1j oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReaderTest.javaj modifiedj Kj Kj K$j https://github.com/palantir/atlasdb/blob/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj https://github.com/palantir/atlasdb/raw/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.java?ref=3eda56b7ba053430de86290b670b6343a115ab35j X<
  @@ -19,7 +19,7 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import io.vavr.collection.HashMap;
@@ -38,10 +38,10 @@ public void doesNotReadCellsFromDifferentTable() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                        .table(WorkloadTestHelpers.TABLE_2)
-                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
-                        .columnRangeSelection(ColumnRangeSelection.builder().build())
-                        .build()))
+                .table(WorkloadTestHelpers.TABLE_2)
+                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                .columnRangeSelection(ColumnRangeSelection.builder().build())
+                .build()))
                 .isEmpty();
     }
 
@@ -51,10 +51,10 @@ public void doesNotReadCellsFromDifferentRow() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                        .table(WorkloadTestHelpers.TABLE_1)
-                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
-                        .columnRangeSelection(ColumnRangeSelection.builder().build())
-                        .build()))
+                .table(WorkloadTestHelpers.TABLE_1)
+                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
+                .columnRangeSelection(ColumnRangeSelection.builder().build())
+                .build()))
                 .isEmpty();
     }
 
@@ -67,15 +67,15 @@ public void readsCellsFromRangeInOrder() {
                     Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         }
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                        .table(WorkloadTestHelpers.TABLE_1)
-                        .row(1)
-                        .columnRangeSelection(ColumnRangeSelection.builder()
-                                .startColumnInclusive(2)
-                                .endColumnExclusive(4)
-                                .build())
-                        .build()))
+                .table(WorkloadTestHelpers.TABLE_1)
+                .row(1)
+                .columnRangeSelection(ColumnRangeSelection.builder()
+                        .startColumnInclusive(2)
+                        .endColumnExclusive(4)
+                        .build())
+                .build()))
                 .containsExactly(
-                        ColumnValue.of(2, WorkloadTestHelpers.VALUE_ONE),
-                        ColumnValue.of(3, WorkloadTestHelpers.VALUE_ONE));
+                        ColumnAndValue.of(2, WorkloadTestHelpers.VALUE_ONE),
+                        ColumnAndValue.of(3, WorkloadTestHelpers.VALUE_ONE));
     }
 }u}(jR (2b934cdc97c8110ba09d2c8ec34544b2aae3f399j qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://github.com/palantir/atlasdb/raw/3eda56b7ba053430de86290b670b6343a115ab35/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=3eda56b7ba053430de86290b670b6343a115ab35j X   @@ -16,7 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ColumnAndValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
@@ -95,7 +95,7 @@ public WitnessedTransactionBuilder delete(Integer row, Integer column) {
         }
 
         public WitnessedTransactionBuilder rowColumnRangeRead(
-                Integer row, ColumnRangeSelection columnRangeSelection, List<ColumnValue> valuesRead) {
+                Integer row, ColumnRangeSelection columnRangeSelection, List<ColumnAndValue> valuesRead) {
             actions.add(WitnessedRowColumnRangeReadTransactionAction.builder()
                     .originalQuery(RowColumnRangeReadTransactionAction.builder()
                             .table(table)u}(jR (0f6d0e1b8700ae828c12ab9a6071fbf266c1ba31j 'docs/source/schemas/dynamic_columns.rstj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3eda56b7ba053430de86290b670b6343a115ab35/docs%2Fsource%2Fschemas%2Fdynamic_columns.rstj ~https://github.com/palantir/atlasdb/raw/3eda56b7ba053430de86290b670b6343a115ab35/docs%2Fsource%2Fschemas%2Fdynamic_columns.rstj https://api.github.com/repos/palantir/atlasdb/contents/docs%2Fsource%2Fschemas%2Fdynamic_columns.rst?ref=3eda56b7ba053430de86290b670b6343a115ab35j Xk	  @@ -223,7 +223,7 @@ return).
     List<Todo> result = Lists.newArrayList();
     BatchingVisitable<TodoTable.TodoColumnValue> visitable = Iterables.getOnlyElement(results.values());
     visitable.batchAccept(limit, item -> {
-        item.forEach(columnValue -> result.add(ImmutableTodo.of(columnValue.getValue())));
+        item.forEach(columnAndValue -> result.add(ImmutableTodo.of(columnAndValue.getValue())));
         return result.size() < limit;
     });
     return result.subList(0, limit); // The batch hint may not always be respected exactly.
@@ -248,11 +248,11 @@ size and cost ranges respectively. We also assume the existence of ``person`` (t
     List<Todo> result = Lists.newArrayList();
     BatchingVisitable<TodoTable.TodoColumnValue> visitable = Iterables.getOnlyElement(results.values());
     visitable.batchAccept(100, item -> {
-        item.forEach(columnValue -> {
+        item.forEach(columnAndValue -> {
             // needed to ignore values with an intermediate size that are not in the cost range
-            if (columnValue.getColumnName().getMonetaryCost() >= lowerCost &&
-                    columnValue.getColumnName().getMonetaryCost() <= upperCost) {
-                result.add(ImmutableTodo.of(columnValue.getValue()));
+            if (columnAndValue.getColumnName().getMonetaryCost() >= lowerCost &&
+                    columnAndValue.getColumnName().getMonetaryCost() <= upperCost) {
+                result.add(ImmutableTodo.of(columnAndValue.getValue()));
             }
         });
         return true;
@@ -297,8 +297,8 @@ Assume the existence of a Set of Strings, ``personSet``. This corresponds to per
 
             long smallestSize = smallestSizes.get(person);
             columnValues.stream()
-                    .filter(columnValue -> columnValue.getColumnName().getTaskSize() == smallestSize)
-                    .forEach(columnValue -> results.get(person).add(ImmutableTodo.of(columnValue.getValue())));
+                    .filter(columnAndValue -> columnAndValue.getColumnName().getTaskSize() == smallestSize)
+                    .forEach(columnAndValue -> results.get(person).add(ImmutableTodo.of(columnAndValue.getValue())));
 
             // If the last entry doesn't have the smallest size, we must have covered all of the smallest todos
             // in this batch. This works, because dynamic columns are returned in sorted order.ueu(8f0d0f17208a2a7d39769b83da70b54f18ace82b}(sha(8f0d0f17208a2a7d39769b83da70b54f18ace82bnode_idEC_kwDOAjP5fdoAKDhmMGQwZjE3MjA4YTJhN2QzOTc2OWI4M2RhNzBiNTRmMThhY2U4MmIcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-03-31T22:48:13Zu	committer}(jc Patrick Koenigje pkoenig10@gmail.comjg 2023-03-31T22:50:50Zumessage*Use isValid to test connections by defaulttree}(j[ (9b8293b86fc504dc9444e572f18b3904b4e830dburl`https://api.github.com/repos/palantir/atlasdb/git/trees/9b8293b86fc504dc9444e572f18b3904b4e830dbujs bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8f0d0f17208a2a7d39769b83da70b54f18ace82b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAAhcAAAAHc3NoLXJzYQAAAAMBAAEAAAIBAOLBVI00yZaP7395xCyqzy
aD/kgGj5GS8qP2f4Q0hM5gFbEYaTLwKvZTgcFMKJEw/3tOlCyuFoQChwrZ+YjoX3ZcTdIs
QnoGeYlwKUGY4x3QXLvrURZtGaXWggfEc+UKHT3mnGXM9FpX9CSdpTopg7KhxDlx3/Jv90
zimWImFPxKFUSZrhVGqD8qAQibPTFDs+JhK0cqllhsvm0PR9PilTde++NKLCQUNrRJi2+f
BjLBjJMJshRwXkkM6J8hDvyjiLJz4Bg9hq+5QLnO1fYaetU7aP4bsCs6ix5pyD4WO6cr6T
SMCtJThNdHvOVuOaCCHBOQrdVGjbMH9lmW5FL5oMsTZ86p24rZOFD9ly44mMJWYGk6F81y
japNgWorhR0tSZMSZPVlisGQQsRnsqQidrVPe3IR4MTUsKx39CAutxgk6N+BseeByXKw+H
aBKmd75u/FU7IoxEbXX7EuDq2TCtUmujYXiY7SY4T0DQDjNpHq+vrEUsKyi5mbRTdNahvt
eFWJU5UIwO7Ao+HdsqfUjGN6zw2HSkiHEG3iOj5OY+byI/ykoYGMQ40w6w7shCt7XDbUXa
/kGqIyicthBGQ7Y4/TtquH5Ag2UPSlN9C0Rt/ZBolkTfoLz4wCtTMzd7hdixs5yuocVTn7
njhSYSXRyRbbVcF/q56x1NAAsVOe9epxAAAAA2dpdAAAAAAAAAAGc2hhNTEyAAACFAAAAA
xyc2Etc2hhMi01MTIAAAIA31POVFRv1PoE/koKC/pF/ROymi+pCNX18oYYOTMIjdTwJhMv
YYY/lJuG0eDbAXuU/7dBHCSzkElR5uFTTQsLrwVPnRSDi+BfW+j7H62jUdTLhCyFdI6Pan
vA/WtUVzokMWleaQyffLQK+K4bNcjH2KUbptjXu50fUK+DzH8v4MAI5K8b4ObF8CdSuR9q
ZAFS8ay85MDaG6uMR7O7jXAorgwXclA/qVrDGUeliDcm0jN2FrBRKllzzYnith0hwEIT2V
j8hqqEf7DJpo9h38XkAXzIvbLTSNpUEzID/ny/u73SXKpzW/YhvU68Pw4lworW5MluI//2
IG51C2BvtTGozLhh3/xMjh1Gi+CPeLdZ3AmQ70Ap7sL1FwIWn3CzeTCuI41DOPGZZioQIH
LCIhgBZqOrGr3oBNpCSUSrkcFZzJ2X56iqGT3lHBOrXM2VlxMZsYRQ6Ry+kCjbpHr1VPZo
tQpgUQqaje4KS5YM0FA46loPIRgllQvLHXCxfPJjFDAPQNMG5UysP1eUu2KLvhhuw0+XDY
mv2ui23btOj6hGBJ1mYNcYpW5dm+IQMjEJpMy1fOxor1D27xa0Lg/KyAJUJWD38NAhyr4k
gH+83pT4i5+LiRt9ak5kNivFdAMayKmcglzdkzv5bt6P/icAJD6O6ST824EwF78sB6Q3vQ
Gj9a8=
-----END SSH SIGNATURE-----payloadX  tree 9b8293b86fc504dc9444e572f18b3904b4e830db
parent 32fac3051ab9ff3073170c6dc27087f089638e02
author Patrick Koenig <pkoenig10@gmail.com> 1680302893 -0700
committer Patrick Koenig <pkoenig10@gmail.com> 1680303050 -0700

Use isValid to test connections by default
uujs ^https://api.github.com/repos/palantir/atlasdb/commits/8f0d0f17208a2a7d39769b83da70b54f18ace82bhtml_urlShttps://github.com/palantir/atlasdb/commit/8f0d0f17208a2a7d39769b83da70b54f18ace82bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8f0d0f17208a2a7d39769b83da70b54f18ace82b/commentsja }(login	pkoenig10idJLvP j] MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5js &https://api.github.com/users/pkoenig10j https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminuji }(j 	pkoenig10j JLvP j] MDQ6VXNlcjUyNzMxNjQ=j 3https://avatars.githubusercontent.com/u/5273164?v=4j h5js &https://api.github.com/users/pkoenig10j https://github.com/pkoenig10j 0https://api.github.com/users/pkoenig10/followersj =https://api.github.com/users/pkoenig10/following{/other_user}j 6https://api.github.com/users/pkoenig10/gists{/gist_id}j =https://api.github.com/users/pkoenig10/starred{/owner}{/repo}j 4https://api.github.com/users/pkoenig10/subscriptionsj +https://api.github.com/users/pkoenig10/orgsj ,https://api.github.com/users/pkoenig10/reposj 7https://api.github.com/users/pkoenig10/events{/privacy}j 6https://api.github.com/users/pkoenig10/received_eventsj Userj uparents]}(j[ (32fac3051ab9ff3073170c6dc27087f089638e02js ^https://api.github.com/repos/palantir/atlasdb/commits/32fac3051ab9ff3073170c6dc27087f089638e02j Shttps://github.com/palantir/atlasdb/commit/32fac3051ab9ff3073170c6dc27087f089638e02uastats}(totalK	additionsK	deletionsKufiles](}(j[ (fa0abb8e2533a26b49003b3fb3c3acb92f58f9adfilenameZatlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/ConnectionConfig.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/8f0d0f17208a2a7d39769b83da70b54f18ace82b/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javaraw_urlhttps://github.com/palantir/atlasdb/raw/8f0d0f17208a2a7d39769b83da70b54f18ace82b/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.java?ref=8f0d0f17208a2a7d39769b83da70b54f18ace82bpatchX  @@ -58,7 +58,10 @@ public MaskedValue getDbPassword() {
 
     public abstract String getDriverClass();
 
-    public abstract String getTestQuery();
+    @Value.Default
+    public String getTestQuery() {
+        return "";
+    }
 
     @JsonIgnore
     @Value.Derivedu}(j[ (a2ad768a82efd1e1c312c4709fc4d57be8af1b8ejÀ \atlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/H2ConnectionConfig.javajŀ modifiedj K j Kjǀ KjȀ https://github.com/palantir/atlasdb/blob/8f0d0f17208a2a7d39769b83da70b54f18ace82b/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FH2ConnectionConfig.javajʀ https://github.com/palantir/atlasdb/raw/8f0d0f17208a2a7d39769b83da70b54f18ace82b/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FH2ConnectionConfig.javaj̀ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FH2ConnectionConfig.java?ref=8f0d0f17208a2a7d39769b83da70b54f18ace82bj΀ X!  @@ -50,12 +50,6 @@ public String getDriverClass() {
         return "org.h2.Driver";
     }
 
-    @Override
-    @Value.Default
-    public String getTestQuery() {
-        return "SELECT 1";
-    }
-
     @Override
     public final DBType getDbType() {
         return DBType.H2_MEMORY;u}(j[ (41a91b3af333f4beb327239129f2b5db59d5dc2ejÀ `atlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/OracleConnectionConfig.javajŀ modifiedj K j Kjǀ KjȀ https://github.com/palantir/atlasdb/blob/8f0d0f17208a2a7d39769b83da70b54f18ace82b/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FOracleConnectionConfig.javajʀ https://github.com/palantir/atlasdb/raw/8f0d0f17208a2a7d39769b83da70b54f18ace82b/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FOracleConnectionConfig.javaj̀ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FOracleConnectionConfig.java?ref=8f0d0f17208a2a7d39769b83da70b54f18ace82bj΀ Xk  @@ -88,12 +88,6 @@ public String getDriverClass() {
         return "oracle.jdbc.driver.OracleDriver";
     }
 
-    @Override
-    @Value.Default
-    public String getTestQuery() {
-        return "SELECT 1 FROM DUAL";
-    }
-
     public abstract Optional<String> getSid();
 
     public abstract Optional<ServiceNameConfiguration> serviceNameConfiguration();u}(j[ (814cb717b3d8c2d5aeb4ff0368d10e7cb32fa81djÀ batlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/PostgresConnectionConfig.javajŀ modifiedj K j Kjǀ KjȀ https://github.com/palantir/atlasdb/blob/8f0d0f17208a2a7d39769b83da70b54f18ace82b/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FPostgresConnectionConfig.javajʀ https://github.com/palantir/atlasdb/raw/8f0d0f17208a2a7d39769b83da70b54f18ace82b/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FPostgresConnectionConfig.javaj̀ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FPostgresConnectionConfig.java?ref=8f0d0f17208a2a7d39769b83da70b54f18ace82bj΀ X  @@ -66,12 +66,6 @@ public String getDriverClass() {
         return "org.postgresql.Driver";
     }
 
-    @Override
-    @Value.Default
-    public String getTestQuery() {
-        return "SELECT 1";
-    }
-
     public abstract String getDbName();
 
     @Overrideueu(e9fe74ce662c9ab679769729db342780a9cd125d}(sha(e9fe74ce662c9ab679769729db342780a9cd125dnode_idEC_kwDOAjP5fdoAKGU5ZmU3NGNlNjYyYzlhYjY3OTc2OTcyOWRiMzQyNzgwYTljZDEyNWQcommit}(author}(nameAndrew Svobodaemailsvoboda.andrew@gmail.comdate2023-04-18T15:05:32Zu	committer}(j GitHubj noreply@github.comj 2023-04-18T15:05:32ZumessagemRun gradle with build scans (#6519)

* Run gradle with build scans

* Add scans to more gradlew invocationstree}(j (e0ccdeb2a122b27c513c3a80b209400967899167url`https://api.github.com/repos/palantir/atlasdb/git/trees/e0ccdeb2a122b27c513c3a80b209400967899167uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e9fe74ce662c9ab679769729db342780a9cd125d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkPrG8CRBK7hj4Ov3rIwAA0FkIAIKO+nWOGcGdSSZ07OLSWzlE
XoFQh/i2cTakP9z/RV9PnmGxmDcksmix1cMwJUbvzIMppvHgV7RWVOk368mQyxg1
A/gPEtUt80uSTCdD9fPPeBeObKn6DeAc6vNOgOHvnNGxPrWkZOVNA2SPM09M8Xgl
Wf9RpU4ZMXnUKiYv0SY1JecsWcY1yXN+9vCZAwaGT918dxEaSohqgCB8oktfPaRm
w/psPVedQWkwBbExsNSUnD+9APCQaFa5/OnliWpfE9Ti+OydjnG2wm8waQgpeAu0
4jXjR+Ap2JNWTNjeEfxB+zlPjHtN+Uokhs7EdUEiZKT4KGfNM3SmP0Aw0eXCfnA=
=gNF6
-----END PGP SIGNATURE-----
payloadXE  tree e0ccdeb2a122b27c513c3a80b209400967899167
parent 5a1e86e8ab326717a679f0df1329141dea8519d8
author Andrew Svoboda <svoboda.andrew@gmail.com> 1681830332 +0100
committer GitHub <noreply@github.com> 1681830332 +0100

Run gradle with build scans (#6519)

* Run gradle with build scans

* Add scans to more gradlew invocationsuuj ^https://api.github.com/repos/palantir/atlasdb/commits/e9fe74ce662c9ab679769729db342780a9cd125dhtml_urlShttps://github.com/palantir/atlasdb/commit/e9fe74ce662c9ab679769729db342780a9cd125dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e9fe74ce662c9ab679769729db342780a9cd125d/commentsj }(loginasvobodaidJ$ j MDQ6VXNlcjEzMTk5NDQ=
avatar_url3https://avatars.githubusercontent.com/u/1319944?v=4gravatar_idh5j %https://api.github.com/users/asvobodaj https://github.com/asvoboda
followers_url/https://api.github.com/users/asvoboda/followers
following_url<https://api.github.com/users/asvoboda/following{/other_user}	gists_url5https://api.github.com/users/asvoboda/gists{/gist_id}starred_url<https://api.github.com/users/asvoboda/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/asvoboda/subscriptionsorganizations_url*https://api.github.com/users/asvoboda/orgs	repos_url+https://api.github.com/users/asvoboda/repos
events_url6https://api.github.com/users/asvoboda/events{/privacy}received_events_url5https://api.github.com/users/asvoboda/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j" 5https://api.github.com/users/web-flow/gists{/gist_id}j$ <https://api.github.com/users/web-flow/starred{/owner}{/repo}j& 3https://api.github.com/users/web-flow/subscriptionsj( *https://api.github.com/users/web-flow/orgsj* +https://api.github.com/users/web-flow/reposj, 6https://api.github.com/users/web-flow/events{/privacy}j. 5https://api.github.com/users/web-flow/received_eventsj0 Userj2 uparents]}(j (5a1e86e8ab326717a679f0df1329141dea8519d8j ^https://api.github.com/repos/palantir/atlasdb/commits/5a1e86e8ab326717a679f0df1329141dea8519d8j Shttps://github.com/palantir/atlasdb/commit/5a1e86e8ab326717a679f0df1329141dea8519d8uastats}(totalK	additionsK	deletionsKufiles](}(j (8860749f334e2fbd898a532814099762c3c557d7filename.circleci/config.ymlstatusmodifiedjL KjM KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/e9fe74ce662c9ab679769729db342780a9cd125d/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/e9fe74ce662c9ab679769729db342780a9cd125d/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=e9fe74ce662c9ab679769729db342780a9cd125dpatchX  @@ -17,7 +17,7 @@ jobs:
           key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
 
       - run: git tag -l | xargs git tag -d && git fetch -t # ensure all tags are fetched and up-to-date
-      - run: ./gradlew --profile --parallel --stacktrace classes testClasses
+      - run: ./gradlew --scan --profile --parallel --stacktrace classes testClasses
 
       - save_cache:
           key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
@@ -95,7 +95,7 @@ jobs:
       CIRCLE_ARTIFACTS: /tmp/artifacts
     steps:
       - attach_workspace: { at: . }
-      - run: ./gradlew --profile --stacktrace --continue publishToMavenLocal
+      - run: ./gradlew --scan --profile --stacktrace --continue publishToMavenLocal
 
   deploy:
     docker:
@@ -118,7 +118,7 @@ jobs:
             # hack - notion of "owners" isn't supported in Circle 2
             if [ $CIRCLE_PROJECT_USERNAME = 'palantir' ] && [ -z $CIRCLE_PR_NUMBER ]; then
               git status
-              ./gradlew --profile --stacktrace --continue publish
+              ./gradlew --scan --profile --stacktrace --continue publish
             fi
       - run:
           command: |u}(j (e69de29bb2d1d6434b8b29ae775ad8c2e48c5391jR .circleci/template.shjT removedjL K jM K jV K jW ihttps://github.com/palantir/atlasdb/blob/5a1e86e8ab326717a679f0df1329141dea8519d8/.circleci%2Ftemplate.shjY hhttps://github.com/palantir/atlasdb/raw/5a1e86e8ab326717a679f0df1329141dea8519d8/.circleci%2Ftemplate.shj[ {https://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Ftemplate.sh?ref=5a1e86e8ab326717a679f0df1329141dea8519d8u}(j (06197f4756b7bc8f69989b875b83d9bab86d64d0jR *scripts/circle-ci/publish-to-antithesis.shjT modifiedjL KjM KjV KjW https://github.com/palantir/atlasdb/blob/e9fe74ce662c9ab679769729db342780a9cd125d/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shjY https://github.com/palantir/atlasdb/raw/e9fe74ce662c9ab679769729db342780a9cd125d/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj[ https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=e9fe74ce662c9ab679769729db342780a9cd125dj] X2  @@ -12,7 +12,7 @@ fi
 
 printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://${ANTITHESIS_REPO_URL} --password-stdin
 
-./gradlew docker
+./gradlew --scan docker
 
 docker pull palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
 docker tag palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra ${ANTITHESIS_REPO_URL}/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
@@ -26,4 +26,4 @@ docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:unspecif
 
 LATEST_ANTITHESIS_TAG=$(docker image ls palantirtechnologies/atlasdb-workload-server-antithesis --format "{{.Tag}}")
 docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}
\ No newline at end of file
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}u}(j (a7f8e6bf1b22ad9488b7b86d01c7e73e5c2aa5c7jR %scripts/circle-ci/run-circle-tests.shjT modifiedjL KjM KjV KjW {https://github.com/palantir/atlasdb/blob/e9fe74ce662c9ab679769729db342780a9cd125d/scripts%2Fcircle-ci%2Frun-circle-tests.shjY zhttps://github.com/palantir/atlasdb/raw/e9fe74ce662c9ab679769729db342780a9cd125d/scripts%2Fcircle-ci%2Frun-circle-tests.shj[ https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=e9fe74ce662c9ab679769729db342780a9cd125dj] X}  @@ -68,7 +68,7 @@ if [ "$CIRCLE_NODE_INDEX" -eq "11" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
-    BASE_GRADLE_ARGS+=" --parallel"
+    BASE_GRADLE_ARGS+=" --scan --parallel"
 fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64mu}(j (e54426d1acfa50edcd80ca6e7c5690038753ddebjR settings.gradlejT modifiedjL K
jM K jV K
jW ahttps://github.com/palantir/atlasdb/blob/e9fe74ce662c9ab679769729db342780a9cd125d/settings.gradlejY `https://github.com/palantir/atlasdb/raw/e9fe74ce662c9ab679769729db342780a9cd125d/settings.gradlej[ shttps://api.github.com/repos/palantir/atlasdb/contents/settings.gradle?ref=e9fe74ce662c9ab679769729db342780a9cd125dj] X  @@ -1,4 +1,9 @@
+plugins {
+    id "com.gradle.enterprise" version "3.12.6"
+}
+
 rootProject.name = 'atlasdb'
+
 include ":atlasdb-api"
 include ":atlasdb-autobatch"
 include ":atlasdb-cassandra"
@@ -80,3 +85,11 @@ buildCache {
         enabled = !isCiServer
     }
 }
+
+gradleEnterprise {
+    buildScan {
+        termsOfServiceUrl = "https://gradle.com/terms-of-service"
+        termsOfServiceAgree = "yes"
+        uploadInBackground = !isCiServer
+    }
+}ueu(4f9b28d748e25dcae7a8763f65d685acf2aa82d4}(sha(4f9b28d748e25dcae7a8763f65d685acf2aa82d4node_idEC_kwDOAjP5fdoAKDRmOWIyOGQ3NDhlMjVkY2FlN2E4NzYzZjY1ZDY4NWFjZjJhYTgyZDQcommit}(author}(name	Tom Papkeemail+43675490+Toemmsche@users.noreply.github.comdate2023-07-13T13:33:53Zu	committer}(j GitHubj noreply@github.comj 2023-07-13T13:33:53Zumessage~[LWMeta] Add Conjure metadata types and conversion methods (#6653)

[LWMeta] Add Conjure metadata types and conversion methodstree}(j (a1eddf50c29bc1ed45e4945edcb2bebf2b3a79b4url`https://api.github.com/repos/palantir/atlasdb/git/trees/a1eddf50c29bc1ed45e4945edcb2bebf2b3a79b4uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4f9b28d748e25dcae7a8763f65d685acf2aa82d4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkr/1BCRBK7hj4Ov3rIwAAry0IAHc8omKd8Mt6PGbouLPZutkT
ItANbCixTELpx9aiwNV8uBMWt0NV6kBcFja/08E/qAJWhAPsh79tXtcCvRvz3/QP
BaN2zzFdbvZUEkG1fO6Pw1VaAbvnPxuw0m8Th2YqaYBhw/7RO2ZqNqTsxhpFkjEk
6ln2nB6wWhiHANlG7R6hyZbSJ0OKRnSx+wEpPXM56fLXMClupcThGeNAl5PdRV3C
rP1mrCznSSGR5iEJRx+i1JQtONqOBcXcpLKDgJc5w3dNhoIUP3D6Anopf2FcqhJK
k/rSh1fkOcm4YXkpPU7IZpa9Lpfkr8N0NV7gsdpLnOG13xQB+Bp/ofcjcRgGOhU=
=VU3L
-----END PGP SIGNATURE-----
payloadXe  tree a1eddf50c29bc1ed45e4945edcb2bebf2b3a79b4
parent 43a048fd492f4d9590d0f088f65034d2db7c859e
author Tom Papke <43675490+Toemmsche@users.noreply.github.com> 1689255233 +0200
committer GitHub <noreply@github.com> 1689255233 +0000

[LWMeta] Add Conjure metadata types and conversion methods (#6653)

[LWMeta] Add Conjure metadata types and conversion methods
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/4f9b28d748e25dcae7a8763f65d685acf2aa82d4html_urlShttps://github.com/palantir/atlasdb/commit/4f9b28d748e25dcae7a8763f65d685acf2aa82d4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4f9b28d748e25dcae7a8763f65d685acf2aa82d4/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}jā 5https://api.github.com/users/web-flow/received_eventsjƁ Userjȁ uparents]}(j (43a048fd492f4d9590d0f088f65034d2db7c859ej ^https://api.github.com/repos/palantir/atlasdb/commits/43a048fd492f4d9590d0f088f65034d2db7c859ej Shttps://github.com/palantir/atlasdb/commit/43a048fd492f4d9590d0f088f65034d2db7c859euastats}(totalMw	additionsMt	deletionsKufiles](}(j (c2fa8c43f4d3dd1867f4e8fce33ca1d02c7d39a7filenameGatlasdb-commons/src/main/java/com/palantir/util/IndexEncodingUtils.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/4f9b28d748e25dcae7a8763f65d685acf2aa82d4/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4f9b28d748e25dcae7a8763f65d685acf2aa82d4/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.java?ref=4f9b28d748e25dcae7a8763f65d685acf2aa82d4patchX  @@ -17,7 +17,6 @@
 package com.palantir.util;
 
 import com.fasterxml.jackson.annotation.JsonIgnoreType;
-import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.Maps;
 import com.google.common.collect.Sets;
 import com.palantir.logsafe.Preconditions;
@@ -115,8 +114,7 @@ public static <K extends DeterministicHashable, V, R> Map<K, R> decode(
         return keyToValue;
     }
 
-    @VisibleForTesting
-    static <K extends DeterministicHashable> KeyListChecksum computeChecksum(
+    public static <K extends DeterministicHashable> KeyListChecksum computeChecksum(
             ChecksumType checksumType, List<K> keyList) {
         switch (checksumType) {
             case CRC32_OF_DETERMINISTIC_HASHCODE: {u}(j (b9d68aed0eb7a84215df245f61e86e6dfad77494j lock-api/build.gradlej modifiedj Kj K j Kj ihttps://github.com/palantir/atlasdb/blob/4f9b28d748e25dcae7a8763f65d685acf2aa82d4/lock-api%2Fbuild.gradlej hhttps://github.com/palantir/atlasdb/raw/4f9b28d748e25dcae7a8763f65d685acf2aa82d4/lock-api%2Fbuild.gradlej {https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fbuild.gradle?ref=4f9b28d748e25dcae7a8763f65d685acf2aa82d4j X  @@ -44,8 +44,10 @@ dependencies {
     testImplementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
     testImplementation 'com.google.guava:guava'
     testImplementation 'com.palantir.common:streams'
+    testImplementation 'com.palantir.safe-logging:preconditions-assertj'
     testImplementation 'io.dropwizard.metrics:metrics-core'
     testImplementation 'org.slf4j:slf4j-api'
+    testImplementation project(':atlasdb-api')
     testImplementation project(':lock-api-objects')
     testImplementation project(':lock-conjure-api:lock-conjure-api-objects')
     testImplementation project(':timelock-api:timelock-api-objects')u}(j (04139c5c6a94302d7c0326ccbdc2ab53683820e5j Slock-api/src/main/java/com/palantir/lock/watch/ConjureLockRequestMetadataUtils.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/4f9b28d748e25dcae7a8763f65d685acf2aa82d4/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtils.javaj https://github.com/palantir/atlasdb/raw/4f9b28d748e25dcae7a8763f65d685acf2aa82d4/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtils.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtils.java?ref=4f9b28d748e25dcae7a8763f65d685acf2aa82d4j XM   @@ -0,0 +1,176 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.timelock.api.ConjureChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureCreatedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureDeletedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureLockDescriptorListChecksum;
+import com.palantir.atlasdb.timelock.api.ConjureLockRequestMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureUnchangedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureUpdatedChangeMetadata;
+import com.palantir.common.streams.KeyedStream;
+import com.palantir.conjure.java.lib.Bytes;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.watch.ChangeMetadata.Created;
+import com.palantir.lock.watch.ChangeMetadata.Deleted;
+import com.palantir.lock.watch.ChangeMetadata.Unchanged;
+import com.palantir.lock.watch.ChangeMetadata.Updated;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.Unsafe;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.util.IndexEncodingUtils;
+import com.palantir.util.IndexEncodingUtils.ChecksumType;
+import com.palantir.util.IndexEncodingUtils.IndexEncodingResult;
+import com.palantir.util.IndexEncodingUtils.KeyListChecksum;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import org.immutables.value.Value;
+
+public final class ConjureLockRequestMetadataUtils {
+    private ConjureLockRequestMetadataUtils() {}
+
+    @VisibleForTesting
+    static final ChecksumType DEFAULT_CHECKSUM_TYPE = ChecksumType.CRC32_OF_DETERMINISTIC_HASHCODE;
+
+    private static final SafeLogger log = SafeLoggerFactory.get(ConjureLockRequestMetadataUtils.class);
+
+    public static ConjureMetadataConversionResult toConjureIndexEncoded(
+            Set<LockDescriptor> lockDescriptors, LockRequestMetadata metadata) {
+        IndexEncodingResult<LockDescriptor, ConjureChangeMetadata> encoded = IndexEncodingUtils.encode(
+                lockDescriptors,
+                metadata.lockDescriptorToChangeMetadata(),
+                changeMetadata -> changeMetadata.accept(ChangeMetadataToConjureVisitor.INSTANCE),
+                DEFAULT_CHECKSUM_TYPE);
+        KeyListChecksum checksum = encoded.keyListChecksum();
+        ConjureLockRequestMetadata conjureLockRequestMetadata = ConjureLockRequestMetadata.builder()
+                .indexToChangeMetadata(encoded.indexToValue())
+                .lockListChecksum(checksumToConjure(checksum))
+                .build();
+        return ImmutableConjureMetadataConversionResult.builder()
+                .lockList(encoded.keyList())
+                .conjureMetadata(conjureLockRequestMetadata)
+                .build();
+    }
+
+    public static LockRequestMetadata fromConjureIndexEncoded(ConjureMetadataConversionResult conversionResult) {
+        List<LockDescriptor> keyList = conversionResult.lockList();
+        ConjureLockRequestMetadata conjureMetadata = conversionResult.conjureMetadata();
+        KeyListChecksum checksum =
+                checksumFromConjure(conversionResult.conjureMetadata().getLockListChecksum());
+        IndexEncodingResult<LockDescriptor, ConjureChangeMetadata> encoded =
+                IndexEncodingResult.<LockDescriptor, ConjureChangeMetadata>builder()
+                        .keyList(keyList)
+                        .indexToValue(conjureMetadata.getIndexToChangeMetadata())
+                        .keyListChecksum(checksum)
+                        .build();
+        Map<LockDescriptor, Optional<ChangeMetadata>> optChangeMetadata = IndexEncodingUtils.decode(
+                encoded,
+                conjureChangeMetadata -> conjureChangeMetadata.accept(ChangeMetadataFromConjureVisitor.INSTANCE));
+        Map<LockDescriptor, ChangeMetadata> changeMetadata = KeyedStream.ofEntries(
+                        optChangeMetadata.entrySet().stream())
+                .flatMap(Optional::stream)
+                .collectToMap();
+        return LockRequestMetadata.of(changeMetadata);
+    }
+
+    private static ConjureLockDescriptorListChecksum checksumToConjure(KeyListChecksum checksum) {
+        return ConjureLockDescriptorListChecksum.of(checksum.type().getId(), Bytes.from(checksum.value()));
+    }
+
+    private static KeyListChecksum checksumFromConjure(ConjureLockDescriptorListChecksum conjureChecksum) {
+        return KeyListChecksum.of(
+                ChecksumType.valueOf(conjureChecksum.getTypeId()),
+                conjureChecksum.getValue().asNewByteArray());
+    }
+
+    @Unsafe
+    @Value.Immutable
+    public interface ConjureMetadataConversionResult {
+        List<LockDescriptor> lockList();
+
+        ConjureLockRequestMetadata conjureMetadata();
+
+        static ImmutableConjureMetadataConversionResult.Builder builder() {
+            return ImmutableConjureMetadataConversionResult.builder();
+        }
+    }
+
+    private enum ChangeMetadataToConjureVisitor implements ChangeMetadata.Visitor<ConjureChangeMetadata> {
+        INSTANCE;
+
+        @Override
+        public ConjureChangeMetadata visit(Unchanged unchanged) {
+            return ConjureChangeMetadata.unchanged(ConjureUnchangedChangeMetadata.of());
+        }
+
+        @Override
+        public ConjureChangeMetadata visit(Updated updated) {
+            return ConjureChangeMetadata.updated(
+                    ConjureUpdatedChangeMetadata.of(Bytes.from(updated.oldValue()), Bytes.from(updated.newValue())));
+        }
+
+        @Override
+        public ConjureChangeMetadata visit(Deleted deleted) {
+            return ConjureChangeMetadata.deleted(ConjureDeletedChangeMetadata.of(Bytes.from(deleted.oldValue())));
+        }
+
+        @Override
+        public ConjureChangeMetadata visit(Created created) {
+            return ConjureChangeMetadata.created(ConjureCreatedChangeMetadata.of(Bytes.from(created.newValue())));
+        }
+    }
+
+    private enum ChangeMetadataFromConjureVisitor implements ConjureChangeMetadata.Visitor<Optional<ChangeMetadata>> {
+        INSTANCE;
+
+        @Override
+        public Optional<ChangeMetadata> visitUnchanged(ConjureUnchangedChangeMetadata unchanged) {
+            return Optional.of(ChangeMetadata.unchanged());
+        }
+
+        @Override
+        public Optional<ChangeMetadata> visitUpdated(ConjureUpdatedChangeMetadata updated) {
+            return Optional.of(ChangeMetadata.updated(
+                    updated.getOldValue().asNewByteArray(),
+                    updated.getNewValue().asNewByteArray()));
+        }
+
+        @Override
+        public Optional<ChangeMetadata> visitDeleted(ConjureDeletedChangeMetadata deleted) {
+            return Optional.of(ChangeMetadata.deleted(deleted.getOldValue().asNewByteArray()));
+        }
+
+        @Override
+        public Optional<ChangeMetadata> visitCreated(ConjureCreatedChangeMetadata created) {
+            return Optional.of(ChangeMetadata.created(created.getNewValue().asNewByteArray()));
+        }
+
+        @Override
+        public Optional<ChangeMetadata> visitUnknown(String unknownType) {
+            log.trace(
+                    "Encountered an unknown ConjureChangeMetadata type. This is likely a new type that was added in a"
+                            + " future version. This ChangeMetadata will be discarded",
+                    SafeArg.of("unknownType", unknownType));
+            return Optional.empty();
+        }
+    }
+}u}(j (c0d1025cfe51e19db09fc5399c40d1efe6257dbaj Wlock-api/src/test/java/com/palantir/lock/watch/ConjureLockRequestMetadataUtilsTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/4f9b28d748e25dcae7a8763f65d685acf2aa82d4/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.javaj https://github.com/palantir/atlasdb/raw/4f9b28d748e25dcae7a8763f65d685acf2aa82d4/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtilsTest.java?ref=4f9b28d748e25dcae7a8763f65d685acf2aa82d4j X  @@ -0,0 +1,155 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.atlasdb.timelock.api.ConjureChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureCreatedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureDeletedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureLockDescriptorListChecksum;
+import com.palantir.atlasdb.timelock.api.ConjureLockRequestMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureUnchangedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureUpdatedChangeMetadata;
+import com.palantir.conjure.java.lib.Bytes;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.watch.ConjureLockRequestMetadataUtils.ConjureMetadataConversionResult;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.util.IndexEncodingUtils;
+import com.palantir.util.IndexEncodingUtils.KeyListChecksum;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class ConjureLockRequestMetadataUtilsTest {
+    private static final LockDescriptor LOCK_1 = StringLockDescriptor.of("lock1");
+    private static final LockDescriptor LOCK_2 = StringLockDescriptor.of("lock2");
+    private static final LockDescriptor LOCK_3 = StringLockDescriptor.of("lock3");
+    private static final LockDescriptor LOCK_4 = StringLockDescriptor.of("lock4");
+    private static final byte[] BYTES_OLD = PtBytes.toBytes("old");
+    private static final byte[] BYTES_NEW = PtBytes.toBytes("new");
+    private static final byte[] BYTES_DELETED = PtBytes.toBytes("deleted");
+    private static final byte[] BYTES_CREATED = PtBytes.toBytes("created");
+    private static final List<LockDescriptor> LOCK_LIST = ImmutableList.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4);
+    // Although this is quite verbose, we explicitly want to test all possible types of change metadata and ensure
+    // that we do the conversion right for each of them.
+    private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(ImmutableMap.of(
+            LOCK_1,
+            ChangeMetadata.unchanged(),
+            LOCK_2,
+            ChangeMetadata.updated(BYTES_OLD, BYTES_NEW),
+            LOCK_3,
+            ChangeMetadata.deleted(BYTES_DELETED),
+            LOCK_4,
+            ChangeMetadata.created(BYTES_CREATED)));
+    private static final Map<Integer, ConjureChangeMetadata> CONJURE_LOCKS_WITH_METADATA = ImmutableMap.of(
+            0,
+            ConjureChangeMetadata.unchanged(ConjureUnchangedChangeMetadata.of()),
+            1,
+            ConjureChangeMetadata.updated(
+                    ConjureUpdatedChangeMetadata.of(Bytes.from(BYTES_OLD), Bytes.from(BYTES_NEW))),
+            2,
+            ConjureChangeMetadata.deleted(ConjureDeletedChangeMetadata.of(Bytes.from(BYTES_DELETED))),
+            3,
+            ConjureChangeMetadata.created(ConjureCreatedChangeMetadata.of(Bytes.from(BYTES_CREATED))));
+
+    private static ConjureMetadataConversionResult conjureMetadataConversionResult;
+
+    // This is a good candidate for a static construction method, but we would rather avoid testing internals of
+    // IndexEncodingUtils (checksum computation) within the tests for Conjure conversion.
+    @BeforeClass
+    public static void setup() {
+        KeyListChecksum checksum =
+                IndexEncodingUtils.computeChecksum(ConjureLockRequestMetadataUtils.DEFAULT_CHECKSUM_TYPE, LOCK_LIST);
+        ConjureLockRequestMetadata conjureMetadata = ConjureLockRequestMetadata.builder()
+                .indexToChangeMetadata(CONJURE_LOCKS_WITH_METADATA)
+                .lockListChecksum(
+                        ConjureLockDescriptorListChecksum.of(checksum.type().getId(), Bytes.from(checksum.value())))
+                .build();
+        conjureMetadataConversionResult = ConjureMetadataConversionResult.builder()
+                .lockList(LOCK_LIST)
+                .conjureMetadata(conjureMetadata)
+                .build();
+    }
+
+    @Test
+    public void convertsToConjureCorrectly() {
+        // ImmutableSet remembers insertion order, which is critical here
+        assertThat(ConjureLockRequestMetadataUtils.toConjureIndexEncoded(
+                        ImmutableSet.copyOf(LOCK_LIST), LOCK_REQUEST_METADATA))
+                .isEqualTo(conjureMetadataConversionResult);
+    }
+
+    @Test
+    public void convertsFromConjureCorrectly() {
+        assertThat(ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(conjureMetadataConversionResult))
+                .isEqualTo(LOCK_REQUEST_METADATA);
+    }
+
+    @Test
+    public void canConvertSparseMetadata() {
+        List<LockDescriptor> lockDescriptors = IntStream.range(0, 10)
+                .mapToObj(Integer::toString)
+                .map(StringLockDescriptor::of)
+                .collect(Collectors.toList());
+        // Unique metadata on some locks, but not all
+        Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata = ImmutableMap.of(
+                lockDescriptors.get(0), ChangeMetadata.created(BYTES_CREATED),
+                lockDescriptors.get(4), ChangeMetadata.deleted(BYTES_DELETED),
+                lockDescriptors.get(9), ChangeMetadata.unchanged(),
+                lockDescriptors.get(5), ChangeMetadata.updated(BYTES_OLD, BYTES_NEW),
+                lockDescriptors.get(7), ChangeMetadata.unchanged());
+        LockRequestMetadata metadata = LockRequestMetadata.of(lockDescriptorToChangeMetadata);
+
+        assertThat(ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(
+                        ConjureLockRequestMetadataUtils.toConjureIndexEncoded(
+                                ImmutableSet.copyOf(lockDescriptors), metadata)))
+                .isEqualTo(metadata);
+    }
+
+    @Test
+    public void changedLockOrderIsDetected() {
+        List<LockDescriptor> modifiedLockList = new ArrayList<>(LOCK_LIST);
+        Collections.swap(modifiedLockList, 0, 1);
+        ConjureMetadataConversionResult conversionResult = ImmutableConjureMetadataConversionResult.copyOf(
+                        conjureMetadataConversionResult)
+                .withLockList(modifiedLockList);
+        assertThatLoggableExceptionThrownBy(
+                        () -> ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(conversionResult))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageStartingWith("Key list integrity check failed");
+    }
+
+    @Test
+    public void handlesEmptyData() {
+        assertThat(ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(
+                        ConjureLockRequestMetadataUtils.toConjureIndexEncoded(
+                                ImmutableSet.of(), LockRequestMetadata.of(ImmutableMap.of()))))
+                .isEqualTo(LockRequestMetadata.of(ImmutableMap.of()));
+    }
+}u     }(j (90aeb7cae105131813b07e01ab508eefaeeaf766j .timelock-api/src/main/conjure/timelock-api.ymlj modifiedj K&j K j K&j https://github.com/palantir/atlasdb/blob/4f9b28d748e25dcae7a8763f65d685acf2aa82d4/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-api.ymlj https://github.com/palantir/atlasdb/raw/4f9b28d748e25dcae7a8763f65d685acf2aa82d4/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-api.ymlj https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-api.yml?ref=4f9b28d748e25dcae7a8763f65d685acf2aa82d4j Xe  @@ -93,6 +93,44 @@ types:
           inclusiveUpper: Long
       ConjureGetFreshTimestampsResponseV2:
         alias: ConjureTimestampRange
+      ConjureUnchangedChangeMetadata:
+        fields: {}
+      ConjureUpdatedChangeMetadata:
+        fields:
+          oldValue:
+            type: binary
+            safety: unsafe
+          newValue:
+            type: binary
+            safety: unsafe
+      ConjureDeletedChangeMetadata:
+        fields:
+          oldValue:
+            type: binary
+            safety: unsafe
+      ConjureCreatedChangeMetadata:
+        fields:
+          newValue:
+            type: binary
+            safety: unsafe
+      ConjureChangeMetadata:
+          union:
+            unchanged: ConjureUnchangedChangeMetadata
+            updated: ConjureUpdatedChangeMetadata
+            deleted: ConjureDeletedChangeMetadata
+            created: ConjureCreatedChangeMetadata
+      ConjureLockDescriptorListChecksum:
+        fields:
+          typeId:
+            type: integer
+            safety: safe
+          value:
+            type: binary
+            safety: unsafe
+      ConjureLockRequestMetadata:
+        fields:
+          indexToChangeMetadata: map<integer, ConjureChangeMetadata>
+          lockListChecksum: ConjureLockDescriptorListChecksum
       ConjureLockDescriptor:
         alias: binary
         safety: unsafeueu(553cf1583ac6eb60c68dc190b842e19d9b369ba8}(sha(553cf1583ac6eb60c68dc190b842e19d9b369ba8node_idEC_kwDOAjP5fdoAKDU1M2NmMTU4M2FjNmViNjBjNjhkYzE5MGI4NDJlMTlkOWIzNjliYTgcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2022-12-09T00:34:27Zu	committer}(j Patrick Koenigj! pkoenig10@gmail.comj# 2023-03-06T18:36:38Zumessage6Avoid lambda allocations when using transaction statustree}(j (a002a4d66dcddc1181acb674c716d9d310bc1232url`https://api.github.com/repos/palantir/atlasdb/git/trees/a002a4d66dcddc1181acb674c716d9d310bc1232uj/ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/553cf1583ac6eb60c68dc190b842e19d9b369ba8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAAhcAAAAHc3NoLXJzYQAAAAMBAAEAAAIBAOLBVI00yZaP7395xCyqzy
aD/kgGj5GS8qP2f4Q0hM5gFbEYaTLwKvZTgcFMKJEw/3tOlCyuFoQChwrZ+YjoX3ZcTdIs
QnoGeYlwKUGY4x3QXLvrURZtGaXWggfEc+UKHT3mnGXM9FpX9CSdpTopg7KhxDlx3/Jv90
zimWImFPxKFUSZrhVGqD8qAQibPTFDs+JhK0cqllhsvm0PR9PilTde++NKLCQUNrRJi2+f
BjLBjJMJshRwXkkM6J8hDvyjiLJz4Bg9hq+5QLnO1fYaetU7aP4bsCs6ix5pyD4WO6cr6T
SMCtJThNdHvOVuOaCCHBOQrdVGjbMH9lmW5FL5oMsTZ86p24rZOFD9ly44mMJWYGk6F81y
japNgWorhR0tSZMSZPVlisGQQsRnsqQidrVPe3IR4MTUsKx39CAutxgk6N+BseeByXKw+H
aBKmd75u/FU7IoxEbXX7EuDq2TCtUmujYXiY7SY4T0DQDjNpHq+vrEUsKyi5mbRTdNahvt
eFWJU5UIwO7Ao+HdsqfUjGN6zw2HSkiHEG3iOj5OY+byI/ykoYGMQ40w6w7shCt7XDbUXa
/kGqIyicthBGQ7Y4/TtquH5Ag2UPSlN9C0Rt/ZBolkTfoLz4wCtTMzd7hdixs5yuocVTn7
njhSYSXRyRbbVcF/q56x1NAAsVOe9epxAAAAA2dpdAAAAAAAAAAGc2hhNTEyAAACFAAAAA
xyc2Etc2hhMi01MTIAAAIAbHN2CLFz99CIAtuDuYjEMLVgKUzrmSkrtCcxr7LYd0w9ffkl
dGq4jVKbmwLxi7xILyi7ZLMLvk5cQ7HDS5ZMMil7bO4W4OC67a7ZPpYZSUzTUjYfjYJf24
AG4lTqr9uHqNJQgW7ErTo+aTr4W79HBxY6fX0hi2H+1J8laVVSKr8kR6CpKRYzBng9G2L+
Z02Dr/1NiH85/aKLaaHQfhYxpKbaUeA/7doKcvCUDoBtwunOh0+A9tXZniUU6LwxLhjh/s
Zd2oieNwmXtNReY8zDzhdOB3ZdHyPdtW+Kq8EcK7GLiO+xu7JdcvR5sIeeB71ZYfpxf7ks
CFU93cGmIbIfgKDUw34k/S+9FLU9ZGkDG/jdBea+2YiDzMkbtBoF3G2pqW3d6UY2GW6BKY
QRUKFZydDYvN5+Ul5y1NDodZNhFQEMlJJikbE7YFxPblYspX6ELff2UJges+ukEUrGHwW+
5hIOlCbds2DuG3Hc1FwtxNDfxdOmSxVkcyC8pjNY65dTGbZjvgxzXeHMh5WsDZKcw1VykV
gjufHYYLKajsGdfBgEpmp9fAjjdxbulxEZ+WgM/rIMysHeMF7DYB2Y1w6RGknGoofpqJhK
AWZ+CBQLc/tTjWKtvFdaTlYMOhHqEN7Da37pufCha4PJnCMhaLY7bjY2bva6XYChGF744C
ZLcCU=
-----END SSH SIGNATURE-----payloadX  tree a002a4d66dcddc1181acb674c716d9d310bc1232
parent 6f0f7c5849e31c772989b9565d870a5ba17cd721
author Patrick Koenig <pkoenig10@gmail.com> 1670546067 -0800
committer Patrick Koenig <pkoenig10@gmail.com> 1678127798 -0800

Avoid lambda allocations when using transaction status
uuj/ ^https://api.github.com/repos/palantir/atlasdb/commits/553cf1583ac6eb60c68dc190b842e19d9b369ba8html_urlShttps://github.com/palantir/atlasdb/commit/553cf1583ac6eb60c68dc190b842e19d9b369ba8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/553cf1583ac6eb60c68dc190b842e19d9b369ba8/commentsj }(login	pkoenig10idJLvP j MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5j/ &https://api.github.com/users/pkoenig10j= https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminuj% }(jB 	pkoenig10jD JLvP j MDQ6VXNlcjUyNzMxNjQ=jF 3https://avatars.githubusercontent.com/u/5273164?v=4jH h5j/ &https://api.github.com/users/pkoenig10j= https://github.com/pkoenig10jK 0https://api.github.com/users/pkoenig10/followersjM =https://api.github.com/users/pkoenig10/following{/other_user}jO 6https://api.github.com/users/pkoenig10/gists{/gist_id}jQ =https://api.github.com/users/pkoenig10/starred{/owner}{/repo}jS 4https://api.github.com/users/pkoenig10/subscriptionsjU +https://api.github.com/users/pkoenig10/orgsjW ,https://api.github.com/users/pkoenig10/reposjY 7https://api.github.com/users/pkoenig10/events{/privacy}j[ 6https://api.github.com/users/pkoenig10/received_eventsj] Userj_ uparents]}(j (6f0f7c5849e31c772989b9565d870a5ba17cd721j/ ^https://api.github.com/repos/palantir/atlasdb/commits/6f0f7c5849e31c772989b9565d870a5ba17cd721j= Shttps://github.com/palantir/atlasdb/commit/6f0f7c5849e31c772989b9565d870a5ba17cd721uastats}(totalM	additionsK	deletionsKufiles](}(j (bbba7d7df9b785fec01bf20efe6f2553f4e30dbbfilename.palantir/revapi.ymlstatusmodifiedjy Kjz K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8patchX  @@ -95,3 +95,18 @@ acceptedBreaks:
       new: "method com.google.common.collect.ImmutableMap<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
         \ com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin> com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::refreshTokenRangesAndGetServers()"
       justification: "Internal Cassandra KVS APIs"
+  "0.808.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.transaction.service.TransactionStatuses"
+      justification: "Internal methods"
+    - code: "java.class.removed"
+      old: "interface com.palantir.atlasdb.transaction.service.TransactionStatus.Cases<R\
+        \ extends java.lang.Object>"
+      justification: "Internal methods"
+    - code: "java.method.removed"
+      old: "method <R> R com.palantir.atlasdb.transaction.service.TransactionStatus::match(com.palantir.atlasdb.transaction.service.TransactionStatus.Cases<R>)"
+      justification: "Internal methods"
+    - code: "java.method.removed"
+      old: "method boolean com.palantir.atlasdb.transaction.service.TransactionStatus::equals(java.lang.Object)"
+      justification: "Internal methods"u}(j (198777a0d5f59dbca9c418c827b918a2ff4645c8j Yatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/service/TransactionStatus.javaj modifiedjy K.jz K"j KPj https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionStatus.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionStatus.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionStatus.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X]  @@ -16,42 +16,54 @@
 
 package com.palantir.atlasdb.transaction.service;
 
-import org.derive4j.Data;
-
-/**
- * Status of a transaction can be one of the following -
- * 1. IN_PROGRESS, if that the transaction with this start timestamp has started but has not committed yet,
- * 2. COMMITTED (with a commit timestamp), if the transaction with this start timestamp has been committed,
- * 3. ABORTED, if the transaction with this start timestamp has been aborted,
- * 4. UNKNOWN, if the transactions table does not have information about the start timestamp. (This may,
- *    for example, be because the transaction is known to have concluded and the transactions table has been swept).
- * */
-@Data
+import com.palantir.common.annotations.ImmutablesStyles.PackageVisibleImmutablesStyle;
+import java.util.Optional;
+import org.immutables.value.Value;
+
 public interface TransactionStatus {
-    interface Cases<R> {
-        /**
-         * For transactions on schema version >= 4, an inProgress state has been introduced. The state will be set in
-         * the transactions table against the start timestamp. The state will be written before writing to the kvs.
-         *
-         * Previously, absence of any state for a transaction would indicate that it is in progress.
-         * */
-        R inProgress();
-
-        R committed(long commitTimestamp);
-
-        R aborted();
-
-        /**
-         * From transaction schema version 4, we have added the ability to truncate the transactions table i.e. it
-         * would be possible that the transactions table is not the source of truth for state of a transaction.
-         *
-         * Note that this state is not expected for transaction schema versions < 4.
-         * */
-        R unknown();
+
+    static TransactionStatus inProgress() {
+        return ImmutableInProgress.of();
+    }
+
+    static TransactionStatus aborted() {
+        return ImmutableAborted.of();
+    }
+
+    static TransactionStatus committed(long commitTimestamp) {
+        return ImmutableCommitted.of(commitTimestamp);
+    }
+
+    static TransactionStatus unknown() {
+        return ImmutableUnknown.of();
+    }
+
+    static Optional<Long> getCommitTimestamp(TransactionStatus status) {
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return Optional.of(committed.commitTimestamp());
+        } else {
+            return Optional.empty();
+        }
     }
 
-    <R> R match(Cases<R> cases);
+    @Value.Immutable(singleton = true)
+    @PackageVisibleImmutablesStyle
+    interface InProgress extends TransactionStatus {}
+
+    @Value.Immutable(singleton = true)
+    @PackageVisibleImmutablesStyle
+    interface Aborted extends TransactionStatus {}
+
+    @Value.Immutable(builder = false)
+    @PackageVisibleImmutablesStyle
+    interface Committed extends TransactionStatus {
+
+        @Value.Parameter
+        long commitTimestamp();
+    }
 
-    @Override
-    boolean equals(Object other);
+    @Value.Immutable(singleton = true)
+    @PackageVisibleImmutablesStyle
+    interface Unknown extends TransactionStatus {}
 }u}(j (617049a9e7ba3c0f72ea61d2d980892baf478d89j zatlasdb-cassandra-integration-tests/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraBackedPueTableTest.javaj modifiedjy Kjz K
j Kj https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraBackedPueTableTest.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraBackedPueTableTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraBackedPueTableTest.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X  @@ -35,13 +35,12 @@
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
-import java.util.Optional;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.ExecutorService;
 import java.util.stream.Collectors;
@@ -93,16 +92,12 @@ public void getDoesNotLeakExceptionsInRaceConditions() throws ExecutionException
             }
             Futures.allAsList(reads).get().forEach(singleResult -> {
                 for (long ts : singlePartition) {
-                    assertCommitTimestampAbsentOrEqualToStartTimestamp(singleResult, ts);
+                    TransactionStatus status = singleResult.get(ts);
+                    if (status instanceof Committed) {
+                        assertThat(status).isEqualTo(TransactionStatus.committed(ts));
+                    }
                 }
             });
         }
     }
-
-    private static void assertCommitTimestampAbsentOrEqualToStartTimestamp(
-            Map<Long, TransactionStatus> result, long ts) {
-        Optional.ofNullable(result.get(ts))
-                .flatMap(TransactionStatuses::getCommitTimestamp)
-                .ifPresent(commitTs -> assertThat(ts).isEqualTo(commitTs));
-    }
 }u}(j (728c30ccb37b7e8e5eb4d85803b92b65d26e741bj qatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/transaction/TransactionTableEntryUtils.javaj modifiedjy Kjz K	j Kj https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactionTableEntryUtils.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactionTableEntryUtils.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactionTableEntryUtils.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X  @@ -17,20 +17,22 @@
 package com.palantir.atlasdb.cassandra.backup.transaction;
 
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Aborted;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 
 public final class TransactionTableEntryUtils {
     private TransactionTableEntryUtils() {}
 
-    public static TransactionTableEntry fromStatus(long startTimestamp, TransactionStatus commitStatus) {
-        return TransactionStatuses.caseOf(commitStatus)
-                .committed(commitTs -> TransactionTableEntries.committedLegacy(startTimestamp, commitTs))
-                .aborted(() -> TransactionTableEntries.explicitlyAborted(startTimestamp))
-                .otherwise(() -> {
-                    throw new SafeIllegalStateException(
-                            "Illegal transaction status", SafeArg.of("status", commitStatus));
-                });
+    public static TransactionTableEntry fromStatus(long startTimestamp, TransactionStatus status) {
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return TransactionTableEntries.committedLegacy(startTimestamp, committed.commitTimestamp());
+        } else if (status instanceof Aborted) {
+            return TransactionTableEntries.explicitlyAborted(startTimestamp);
+        } else {
+            throw new SafeIllegalStateException("Illegal transaction status", SafeArg.of("status", status));
+        }
     }
 }u}(j (cfeb9f02aeb926b035c4fcf5695b3b16d519d450j tatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions1TableInteraction.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteraction.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteraction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteraction.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X  @@ -49,7 +49,7 @@ public Transactions1TableInteraction(FullyBoundedTimestampRange timestampRange,
 
     private static final byte[] DUMMY = new byte[] {1};
     private static final byte[] ABORT_COMMIT_TS_ENCODED =
-            V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(0, TransactionConstants.ABORTED);
+            V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(0, TransactionStatus.aborted());
     static final ByteBuffer COLUMN_NAME_BB = ByteBuffer.wrap(TransactionConstants.COMMIT_TS_COLUMN);
 
     @Overrideu}(j (b151ce954511712c43c8cff621e8d600fc587c56j tatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions3TableInteraction.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteraction.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteraction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteraction.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X  @@ -93,7 +93,7 @@ public TransactionTableEntry extractTimestamps(Row row) {
         AtomicValue<TransactionStatus> commitValue = encodingStrategy.decodeValueAsCommitStatus(
                 startTimestamp, Bytes.getArray(row.getBytes(CassandraConstants.VALUE)));
 
-        if (commitValue.value() == TransactionConstants.ABORTED) {
+        if (commitValue.value() == TransactionStatus.aborted()) {
             return TransactionTableEntries.explicitlyAborted(startTimestamp);
         }
 u}(j (078fdebb7aa6ebff214d94e219894401b3973ddaj xatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions1TableInteractionTest.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteractionTest.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteractionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteractionTest.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j Xg  @@ -33,6 +33,7 @@
 import com.palantir.atlasdb.transaction.encoding.V1EncodingStrategy;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.timestamp.FullyBoundedTimestampRange;
 import java.nio.ByteBuffer;
 import org.apache.commons.codec.binary.Hex;
@@ -57,7 +58,7 @@ public void cellEncodingTest() {
     public void valueEncodingTest() {
         byte[] actualValue =
                 V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(111L, TransactionStatusUtils.fromTimestamp(222L));
-        byte[] abort = V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(1L, TransactionConstants.ABORTED);
+        byte[] abort = V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(1L, TransactionStatus.aborted());
 
         assertThat(Transactions1TableInteraction.encodeCommitTimestamp(222L)).isEqualTo(ByteBuffer.wrap(actualValue));
         assertThat(Transactions1TableInteraction.encodeCommitTimestamp(TransactionConstants.FAILED_COMMIT_TS))u}(j (665255398e90af7633b7ed78d422f68bbdb494e2j xatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions2TableInteractionTest.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions2TableInteractionTest.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions2TableInteractionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions2TableInteractionTest.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X  @@ -33,7 +33,7 @@
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraConstants;
 import com.palantir.atlasdb.transaction.encoding.TicketsEncodingStrategy;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.timestamp.FullyBoundedTimestampRange;
 import java.nio.ByteBuffer;
 import java.util.ArrayList;
@@ -128,7 +128,7 @@ private static Row createRow(long start, long commit) {
         when(row.getBytes(CassandraConstants.COLUMN)).thenReturn(ByteBuffer.wrap(cell.getColumnName()));
         when(row.getBytes(CassandraConstants.VALUE))
                 .thenReturn(ByteBuffer.wrap(TicketsEncodingStrategy.INSTANCE.encodeCommitStatusAsValue(
-                        start, TransactionStatuses.committed(commit))));
+                        start, TransactionStatus.committed(commit))));
         return row;
     }
 u}(j (6c8488c0b734a2196aa6268e3b1b4e173ea36688j xatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions3TableInteractionTest.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteractionTest.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteractionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteractionTest.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X  @@ -37,7 +37,6 @@
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.timestamp.FullyBoundedTimestampRange;
 import java.nio.ByteBuffer;
 import java.util.ArrayList;
@@ -68,8 +67,7 @@ public void extractCommittedTimestampTest() {
         TransactionTableEntryAssertions.assertTwoPhase(entry, (startTs, commitValue) -> {
             assertThat(startTs).isEqualTo(150L);
             assertThat(commitValue.isCommitted()).isTrue();
-            assertThat(TransactionStatuses.getCommitTimestamp(commitValue.value()))
-                    .hasValue(200L);
+            assertThat(commitValue.value()).isEqualTo(TransactionStatus.committed(200L));
         });
     }
 
@@ -80,8 +78,7 @@ public void extractStagingCommitTimestampTest() {
         TransactionTableEntryAssertions.assertTwoPhase(entry, (startTs, commitValue) -> {
             assertThat(startTs).isEqualTo(150L);
             assertThat(commitValue.isCommitted()).isFalse();
-            assertThat(TransactionStatuses.getCommitTimestamp(commitValue.value()))
-                    .hasValue(200L);
+            assertThat(commitValue.value()).isEqualTo(TransactionStatus.committed(200L));
         });
     }
 u}(j (5f795e54adce9a66821695cbd1b7903855070846j \atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/TransactionConstants.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X  @@ -24,7 +24,6 @@
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.table.description.ValueType;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 
@@ -46,13 +45,10 @@ private TransactionConstants() {
     public static final byte[] DIRECT_ENCODING_ABORTED_TRANSACTION_VALUE = getValueForTimestamp(FAILED_COMMIT_TS);
     public static final byte[] TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE = PtBytes.EMPTY_BYTE_ARRAY;
 
-    public static final TransactionStatus ABORTED = TransactionStatuses.aborted();
-    public static final TransactionStatus IN_PROGRESS = TransactionStatuses.inProgress();
-    public static final TransactionStatus UNKNOWN = TransactionStatuses.unknown();
     public static final byte[] TTS_IN_PROGRESS_MARKER = getTtsInProgressMarker();
     public static final long LOWEST_POSSIBLE_START_TS = 1L;
     public static long PRE_START_COMMITTED_TS = TransactionConstants.LOWEST_POSSIBLE_START_TS - 1;
-    public static final TransactionStatus PRE_START_COMMITTED = TransactionStatuses.committed(PRE_START_COMMITTED_TS);
+    public static final TransactionStatus PRE_START_COMMITTED = TransactionStatus.committed(PRE_START_COMMITTED_TS);
 
     public static final long WARN_LEVEL_FOR_QUEUED_BYTES = 10 * 1024 * 1024;
 u}(j (d6ee97d6e0da719997ae5b3ffa7c377ce74a2186j ^atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/TransactionStatusUtils.javaj modifiedjy Kjz Kj K*j https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionStatusUtils.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionStatusUtils.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionStatusUtils.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X  @@ -18,51 +18,61 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Aborted;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.Optional;
 import java.util.function.Function;
 
 public final class TransactionStatusUtils {
+
     private TransactionStatusUtils() {}
 
     public static TransactionStatus fromTimestamp(long timestamp) {
         if (timestamp == TransactionConstants.FAILED_COMMIT_TS) {
-            return TransactionConstants.ABORTED;
+            return TransactionStatus.aborted();
         }
-        return TransactionStatuses.committed(timestamp);
+        return TransactionStatus.committed(timestamp);
     }
 
     /**
      * This helper is only meant to be used for transactions with schema < 4. For schemas >= 4,
      * use {@link #getCommitTsFromStatus(long, TransactionStatus, Function)}
      * */
     public static long getCommitTimestampIfKnown(TransactionStatus status) {
-        return TransactionStatuses.caseOf(status)
-                .committed(Function.identity())
-                .aborted_(TransactionConstants.FAILED_COMMIT_TS)
-                .otherwise(() -> {
-                    throw new SafeIllegalStateException("Illegal transaction status", SafeArg.of("status", status));
-                });
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return committed.commitTimestamp();
+        } else if (status instanceof Aborted) {
+            return TransactionConstants.FAILED_COMMIT_TS;
+        } else {
+            throw new SafeIllegalStateException("Illegal transaction status", SafeArg.of("status", status));
+        }
     }
 
     /**
      * This helper is only meant to be used for transactions with schema < 4. For schemas >= 4,
      * use {@link #getCommitTsFromStatus(long, TransactionStatus, Function)}
      * */
     public static Optional<Long> maybeGetCommitTs(TransactionStatus status) {
-        return TransactionStatuses.caseOf(status)
-                .committed(Function.identity())
-                .aborted_(TransactionConstants.FAILED_COMMIT_TS)
-                .otherwiseEmpty();
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return Optional.of(committed.commitTimestamp());
+        } else if (status instanceof Aborted) {
+            return Optional.of(TransactionConstants.FAILED_COMMIT_TS);
+        } else {
+            return Optional.empty();
+        }
     }
 
     public static Long getCommitTsFromStatus(
             long startTs, TransactionStatus status, Function<Long, Boolean> abortedCheck) {
-        return TransactionStatuses.caseOf(status)
-                .unknown(() -> getCommitTsForConcludedTransaction(startTs, abortedCheck))
-                .otherwise(() -> TransactionStatusUtils.maybeGetCommitTs(status).orElse(null));
+        if (status instanceof TransactionStatus.Unknown) {
+            return getCommitTsForConcludedTransaction(startTs, abortedCheck);
+        } else {
+            return TransactionStatusUtils.maybeGetCommitTs(status).orElse(null);
+        }
     }
 
     public static long getCommitTsForConcludedTransaction(long startTs, Function<Long, Boolean> isAborted) {u}(j (7ffa2fefee8958ba1a2ce1a90aef690293f911a2j fatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTable.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X0  @@ -32,7 +32,6 @@
 import com.palantir.atlasdb.transaction.encoding.TwoPhaseEncodingStrategy;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.exception.AtlasDbDependencyException;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.common.time.Clock;
@@ -177,13 +176,10 @@ private FollowUpAction touchAndReturn(CellInfo cellAndValue) {
         } catch (CheckAndSetException e) {
             long startTs = cellAndValue.startTs();
             AtomicValue<TransactionStatus> currentValue = encodingStrategy.decodeValueAsCommitStatus(startTs, actual);
-            TransactionStatus commitStatus = currentValue.value();
             AtomicValue<TransactionStatus> kvsValue =
                     encodingStrategy.decodeValueAsCommitStatus(startTs, Iterables.getOnlyElement(e.getActualValues()));
             Preconditions.checkState(
-                    kvsValue.isCommitted()
-                            && TransactionStatuses.getCommitTimestamp(kvsValue.value())
-                                    .equals(TransactionStatuses.getCommitTimestamp(commitStatus)),
+                    kvsValue.isCommitted() && kvsValue.value().equals(currentValue.value()),
                     "Failed to persist a staging value for commit timestamp because an unexpected value "
                             + "was found in the KVS",
                     SafeArg.of("kvsValue", kvsValue),u}(j (1240bb172017e3e15ccf95f6e1f3ed08b526e789j aatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/atomic/TimestampExtractingAtomicTable.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTable.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTable.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X]  @@ -22,7 +22,6 @@
 import com.palantir.atlasdb.keyvalue.api.KeyAlreadyExistsException;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.Map;
@@ -63,7 +62,7 @@ public ListenableFuture<Map<Long, Long>> get(Iterable<Long> keys) {
         return Futures.transform(
                 delegate.get(keys),
                 statuses -> {
-                    if (statuses.values().stream().anyMatch(TransactionStatuses.unknown()::equals)) {
+                    if (statuses.values().stream().anyMatch(TransactionStatus.unknown()::equals)) {
                         throw new SafeIllegalStateException("There has been a mistake in the wiring as "
                                 + "transactions that do not support transaction table sweep should not be seeing "
                                 + "`unknown` transaction status.");u}(j (98088205de8d1e7b8472112b1ed3c692920135c1j hatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/encoding/TicketsEncodingStrategy.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategy.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategy.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategy.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X2
  @@ -20,7 +20,8 @@
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Aborted;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Arrays;
@@ -59,25 +60,26 @@ public long decodeCellAsStartTimestamp(Cell cell) {
     }
 
     @Override
-    public byte[] encodeCommitStatusAsValue(long startTimestamp, TransactionStatus commitStatus) {
-        return TransactionStatuses.caseOf(commitStatus)
-                .committed(ts -> TransactionConstants.getValueForTimestamp(ts - startTimestamp))
-                .aborted_(TransactionConstants.TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE)
-                .otherwise(() -> {
-                    throw new SafeIllegalArgumentException(
-                            "Unexpected transaction status", SafeArg.of("status", commitStatus));
-                });
+    public byte[] encodeCommitStatusAsValue(long startTimestamp, TransactionStatus status) {
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return TransactionConstants.getValueForTimestamp(committed.commitTimestamp() - startTimestamp);
+        } else if (status instanceof Aborted) {
+            return TransactionConstants.TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE;
+        } else {
+            throw new SafeIllegalArgumentException("Unexpected transaction status", SafeArg.of("status", status));
+        }
     }
 
     @Override
     public TransactionStatus decodeValueAsCommitStatus(long startTimestamp, byte[] value) {
         if (value == null) {
-            return TransactionConstants.IN_PROGRESS;
+            return TransactionStatus.inProgress();
         }
         if (Arrays.equals(value, TransactionConstants.TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE)) {
-            return TransactionConstants.ABORTED;
+            return TransactionStatus.aborted();
         }
-        return TransactionStatuses.committed(startTimestamp + TransactionConstants.getTimestampForValue(value));
+        return TransactionStatus.committed(startTimestamp + TransactionConstants.getTimestampForValue(value));
     }
 
     public Stream<byte[]> getRowSetCoveringTimestampRange(long fromInclusive, long toInclusive) {u}(j (48ed8037c90f16ac56dce747642fb90047ae4127j iatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/encoding/TwoPhaseEncodingStrategy.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTwoPhaseEncodingStrategy.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTwoPhaseEncodingStrategy.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTwoPhaseEncodingStrategy.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X  @@ -22,7 +22,6 @@
 import com.palantir.atlasdb.ptobject.EncodingUtils;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
@@ -35,7 +34,7 @@ public final class TwoPhaseEncodingStrategy
     private static final byte[] COMMITTED = new byte[] {1};
 
     private static final AtomicValue<TransactionStatus> IN_PROGRESS_COMMITTED =
-            AtomicValue.committed(TransactionConstants.IN_PROGRESS);
+            AtomicValue.committed(TransactionStatus.inProgress());
     public static final byte[] ABORTED_TRANSACTION_COMMITTED_VALUE =
             EncodingUtils.add(TransactionConstants.TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE, COMMITTED);
     public static final byte[] ABORTED_TRANSACTION_STAGING_VALUE =
@@ -69,7 +68,7 @@ public AtomicValue<TransactionStatus> decodeNullValueAsCommitStatus() {
         }
         // `null` value is the in_progress marker for transaction schema <= 3. For transaction schema > 3, we have an
         // explicit in-progress marker and a null values represents that the table has been swept.
-        return AtomicValue.committed(TransactionStatuses.unknown());
+        return AtomicValue.committed(TransactionStatus.unknown());
     }
 
     @Overrideu}(j (332546bb3f57de279d692beddd67f9a12bbff65fj catlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/encoding/V1EncodingStrategy.javaj modifiedjy Kjz K
j Kj https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FV1EncodingStrategy.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FV1EncodingStrategy.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FV1EncodingStrategy.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j XT  @@ -20,7 +20,8 @@
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Aborted;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 
@@ -39,20 +40,21 @@ public long decodeCellAsStartTimestamp(Cell cell) {
     }
 
     @Override
-    public byte[] encodeCommitStatusAsValue(long _ignoredStartTimestamp, TransactionStatus commitStatus) {
-        return TransactionStatuses.caseOf(commitStatus)
-                .committed(TransactionConstants::getValueForTimestamp)
-                .aborted_(TransactionConstants.DIRECT_ENCODING_ABORTED_TRANSACTION_VALUE)
-                .otherwise(() -> {
-                    throw new SafeIllegalStateException(
-                            "Illegal transaction status", SafeArg.of("status", commitStatus));
-                });
+    public byte[] encodeCommitStatusAsValue(long _ignoredStartTimestamp, TransactionStatus status) {
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return TransactionConstants.getValueForTimestamp(committed.commitTimestamp());
+        } else if (status instanceof Aborted) {
+            return TransactionConstants.DIRECT_ENCODING_ABORTED_TRANSACTION_VALUE;
+        } else {
+            throw new SafeIllegalStateException("Illegal transaction status", SafeArg.of("status", status));
+        }
     }
 
     @Override
     public TransactionStatus decodeValueAsCommitStatus(long _ignoredStartTimestamp, byte[] value) {
         if (value == null) {
-            return TransactionConstants.IN_PROGRESS;
+            return TransactionStatus.inProgress();
         }
 
         return TransactionStatusUtils.fromTimestamp(TransactionConstants.getTimestampForValue(value));u}(j (b360e6e7298b91b238d9122bff9320bf177b827fj batlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoader.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X  @@ -31,7 +31,6 @@
 import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
 import com.palantir.atlasdb.transaction.service.AsyncTransactionService;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
@@ -141,13 +140,13 @@ private Map<Long, Long> cacheKnownLoadedValuesAndValidate(Map<Long, TransactionS
             long start = entry.getKey();
             TransactionStatus commitStatus = entry.getValue();
 
-            if (commitStatus.equals(TransactionStatuses.inProgress())) {
+            if (commitStatus.equals(TransactionStatus.inProgress())) {
                 continue;
             }
 
             long commitTs = TransactionStatusUtils.getCommitTsFromStatus(
                     start, commitStatus, abortedTransactionsCache::isKnownAbandoned);
-            if (commitStatus.equals(TransactionStatuses.unknown())) {
+            if (commitStatus.equals(TransactionStatus.unknown())) {
                 shouldValidate = true;
             } else {
                 timestampCache.putAlreadyCommittedTransaction(start, commitTs);u}(j (6145cc9af0bd5b4fcbcfc599ba7616db926d9a99j ratlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/KnowledgeableTimestampExtractingAtomicTableTest.javaj modifiedjy Kjz K
j Kj https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FKnowledgeableTimestampExtractingAtomicTableTest.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FKnowledgeableTimestampExtractingAtomicTableTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FKnowledgeableTimestampExtractingAtomicTableTest.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X@  @@ -32,7 +32,6 @@
 import com.palantir.atlasdb.transaction.knowledge.KnownConcludedTransactions.Consistency;
 import com.palantir.atlasdb.transaction.knowledge.VerificationModeMetrics;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.util.concurrent.ExecutionException;
 import org.junit.Test;
@@ -79,7 +78,7 @@ public void canGetTsOfNonConcludedTxn() throws ExecutionException, InterruptedEx
         long commitTs = 127L;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.committed(commitTs)));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.committed(commitTs)));
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isEqualTo(commitTs);
     }
@@ -89,7 +88,7 @@ public void canGetTsOfNonConcludedAbortedTxn() throws ExecutionException, Interr
         long startTs = 27l;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.aborted()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.aborted()));
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isEqualTo(TransactionConstants.FAILED_COMMIT_TS);
     }
@@ -99,7 +98,7 @@ public void canGetTsOfNonConcludedInProgressTxn() throws ExecutionException, Int
         long startTs = 27l;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.inProgress()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.inProgress()));
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isNull();
     }
@@ -109,7 +108,7 @@ public void canGetTsOfRemotelyConcludedTxn() throws ExecutionException, Interrup
         long startTs = 27l;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.unknown()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.unknown()));
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(false);
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isEqualTo(startTs);
@@ -120,7 +119,7 @@ public void canGetTsOfRemotelyConcludedAbortedTxn() throws ExecutionException, I
         long startTs = 27l;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.unknown()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.unknown()));
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(true);
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isEqualTo(TransactionConstants.FAILED_COMMIT_TS);
@@ -130,7 +129,7 @@ public void canGetTsOfRemotelyConcludedAbortedTxn() throws ExecutionException, I
     @Test
     public void noVerificationIfTransactionInProgress() {
         long startTs = 27l;
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.inProgress()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.inProgress()));
         tsExtractingTable.get(startTs);
 
         verifyNoInteractions(knownAbandonedTransactions);
@@ -142,7 +141,7 @@ public void noVerificationIfTransactionInProgress() {
     public void noVerificationInBatchedGetIfTransactionInProgress() {
         long startTs = 27l;
         when(delegate.get(ImmutableSet.of(startTs)))
-                .thenReturn(Futures.immediateFuture(ImmutableMap.of(startTs, TransactionStatuses.inProgress())));
+                .thenReturn(Futures.immediateFuture(ImmutableMap.of(startTs, TransactionStatus.inProgress())));
         tsExtractingTable.get(ImmutableSet.of(startTs));
 
         verifyNoInteractions(knownAbandonedTransactions);
@@ -154,7 +153,7 @@ public void noVerificationInBatchedGetIfTransactionInProgress() {
     public void noVerificationIfTransactionNotConcluded() {
         long startTs = 27l;
         long commitTs = 35l;
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.committed(commitTs)));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.committed(commitTs)));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(false);
 
@@ -169,7 +168,7 @@ public void noVerificationIfTransactionNotConcluded() {
     public void verifiesConcludedTransaction() {
         long startTs = 27l;
         long commitTs = 35l;
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.committed(commitTs)));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.committed(commitTs)));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(true);
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(false);
@@ -186,7 +185,7 @@ public void verifiesConcludedTransaction() {
     public void verifiesConcludedAbandonedTransaction() {
         long startTs = 27l;
 
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.aborted()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.aborted()));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(true);
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(true);
@@ -204,7 +203,7 @@ public void catchesInconsistencyIfCommittedTransactionIsMarkedAbandoned() {
         long startTs = 27l;
         long commitTs = 35l;
 
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.committed(commitTs)));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.committed(commitTs)));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(true);
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(true);
@@ -221,7 +220,7 @@ public void catchesInconsistencyIfCommittedTransactionIsMarkedAbandoned() {
     public void catchesInconsistencyIfAbortedTransactionIsNotMarkedAbandoned() {
         long startTs = 27l;
 
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.aborted()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.aborted()));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(true);
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(false);u}(j (de47f4b61de48b3d358e06301facd8a4098aae44j uatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTableIntegrationTest.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableIntegrationTest.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableIntegrationTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableIntegrationTest.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X  @@ -25,7 +25,6 @@
 import com.palantir.atlasdb.transaction.encoding.BaseProgressEncodingStrategy;
 import com.palantir.atlasdb.transaction.encoding.TwoPhaseEncodingStrategy;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.time.Duration;
@@ -90,7 +89,7 @@ private void submitWriteTask(
                 writeExecutionLatch.await();
                 Uninterruptibles.sleepUninterruptibly(
                         Duration.ofMillis(ThreadLocalRandom.current().nextInt(10)));
-                pueTable.update(startTimestamp, TransactionStatuses.committed(startTimestamp + writerIndex));
+                pueTable.update(startTimestamp, TransactionStatus.committed(startTimestamp + writerIndex));
             } catch (RuntimeException e) {
                 // Expected - some failures will happen as part of our test.
             }
@@ -154,7 +153,7 @@ private TimestampReader(long startTimestamp, AtomicTable<Long, TransactionStatus
 
         public List<Optional<Long>> getTimestampReads() {
             return timestampReads.stream()
-                    .map(TransactionStatuses::getCommitTimestamp)
+                    .map(TransactionStatus::getCommitTimestamp)
                     .collect(Collectors.toList());
         }
 u}(j (22a536520a6a833dfdb825d32190bc03183fad7ej jatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTableTest.javaj modifiedjy K#jz K7j KZj https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableTest.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableTest.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X-  @@ -43,7 +43,6 @@
 import com.palantir.atlasdb.transaction.encoding.TicketsEncodingStrategy;
 import com.palantir.atlasdb.transaction.encoding.TwoPhaseEncodingStrategy;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.time.Clock;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.time.Duration;
@@ -101,67 +100,58 @@ public static Collection<Object[]> data() {
 
     @Test
     public void canPutAndGet() throws ExecutionException, InterruptedException {
-        atomicTable.update(1L, TransactionStatuses.committed(2L));
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(2L);
+        atomicTable.update(1L, TransactionStatus.committed(2L));
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(2L));
         verify(spiedStore).batchAtomicUpdate(anyMap());
         verify(spiedStore, atLeastOnce()).put(anyMap());
         verify(spiedStore).getMultiple(any());
     }
 
     @Test
     public void emptyReturnsInProgress() throws ExecutionException, InterruptedException {
-        assertThat(TransactionStatuses.caseOf(atomicTable.get(3L).get())
-                        .inProgress_(true)
-                        .otherwise_(false))
-                .isTrue();
+        assertThat(atomicTable.get(3L).get()).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Test
     public void canPutAndGetAbortedTransactions() throws ExecutionException, InterruptedException {
-        atomicTable.update(1L, TransactionStatuses.aborted());
-        assertThat(TransactionStatuses.caseOf(atomicTable.get(1L).get())
-                        .aborted_(true)
-                        .otherwise_(false))
-                .isTrue();
+        atomicTable.update(1L, TransactionStatus.aborted());
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.aborted());
     }
 
     @Test
     public void cannotPueTwice() {
-        atomicTable.update(1L, TransactionStatuses.committed(2L));
-        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatuses.committed(2L)))
+        atomicTable.update(1L, TransactionStatus.committed(2L));
+        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatus.committed(2L)))
                 .isInstanceOf(KeyAlreadyExistsException.class);
     }
 
     @Test
     public void canPutAndGetMultiple() throws ExecutionException, InterruptedException {
         ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(
                 1L,
-                TransactionStatuses.committed(2L),
+                TransactionStatus.committed(2L),
                 3L,
-                TransactionStatuses.committed(4L),
+                TransactionStatus.committed(4L),
                 7L,
-                TransactionStatuses.committed(8L));
+                TransactionStatus.committed(8L));
         atomicTable.updateMultiple(inputs);
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 3L, 5L, 7L)).get();
         assertThat(result).hasSize(4);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(3L))).hasValue(4L);
-        assertThat(TransactionStatuses.caseOf(result.get(5L)).inProgress_(true).otherwise_(false))
-                .isTrue();
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(7L))).hasValue(8L);
+        assertThat(result.get(1L)).isEqualTo(TransactionStatus.committed(2L));
+        assertThat(result.get(3L)).isEqualTo(TransactionStatus.committed(4L));
+        assertThat(result.get(5L)).isEqualTo(TransactionStatus.inProgress());
+        assertThat(result.get(7L)).isEqualTo(TransactionStatus.committed(8L));
     }
 
     @Test
     public void pueThatThrowsIsCorrectedOnGet() throws ExecutionException, InterruptedException {
         spiedStore.startFailingPuts();
-        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatuses.committed(2L)))
+        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatus.committed(2L)))
                 .isInstanceOf(RuntimeException.class);
         spiedStore.stopFailingPuts();
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(2L);
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(2L));
         verify(spiedStore, times(2)).put(anyMap());
     }
 
@@ -170,7 +160,7 @@ public void getReturnsStagingValuesThatWereCommittedBySomeoneElse()
             throws ExecutionException, InterruptedException {
 
         long startTimestamp = 1L;
-        TransactionStatus commitStatus = TransactionStatuses.committed(2L);
+        TransactionStatus commitStatus = TransactionStatus.committed(2L);
         Cell timestampAsCell = encodingStrategy.encodeStartTimestampAsCell(startTimestamp);
         byte[] stagingValue =
                 encodingStrategy.encodeCommitStatusAsValue(startTimestamp, AtomicValue.staging(commitStatus));
@@ -184,9 +174,7 @@ public void getReturnsStagingValuesThatWereCommittedBySomeoneElse()
                 .when(spiedStore)
                 .checkAndTouch(timestampAsCell, stagingValue);
 
-        assertThat(TransactionStatuses.getCommitTimestamp(
-                        atomicTable.get(startTimestamp).get()))
-                .isEqualTo(TransactionStatuses.getCommitTimestamp(commitStatus));
+        assertThat(atomicTable.get(startTimestamp).get()).isEqualTo(commitStatus);
     }
 
     @Test
@@ -209,14 +197,14 @@ public void onceNonNullValueIsReturnedItIsAlwaysReturned() {
             for (int i = 0; i < 30; i++) {
                 TransactionStatus valueRead = firstSuccessfulRead(putUnlessExistsTable, startTs);
                 onlyAllowedCommitTs.ifPresentOrElse(
-                        commit -> assertThat(TransactionStatuses.getCommitTimestamp(valueRead))
-                                .hasValue(commit),
-                        () -> assertThat(TransactionStatuses.caseOf(valueRead)
-                                        .inProgress_(true)
-                                        .committed(commitTs -> commitTs >= ts && commitTs <= ts + 2)
-                                        .otherwise_(false))
-                                .isTrue());
-                onlyAllowedCommitTs = TransactionStatuses.getCommitTimestamp(valueRead);
+                        commit -> assertThat(valueRead).isEqualTo(TransactionStatus.committed(commit)),
+                        () -> assertThat(valueRead)
+                                .satisfiesAnyOf(
+                                        status -> assertThat(status).isEqualTo(TransactionStatus.inProgress()),
+                                        status -> assertThat(status).isEqualTo(TransactionStatus.committed(ts)),
+                                        status -> assertThat(status).isEqualTo(TransactionStatus.committed(ts + 1)),
+                                        status -> assertThat(status).isEqualTo(TransactionStatus.committed(ts + 2))));
+                onlyAllowedCommitTs = TransactionStatus.getCommitTimestamp(valueRead);
             }
         }
     }
@@ -242,9 +230,7 @@ public void inAbsenceOfConcurrencyGetRetriesBothTouchAndPut() throws ExecutionEx
 
         spiedStore.stopFailingPuts();
         for (long i = 0; i < 100; i++) {
-            assertThat(TransactionStatuses.getCommitTimestamp(
-                            atomicTable.get(0L).get()))
-                    .hasValue(0L);
+            assertThat(atomicTable.get(0L).get()).isEqualTo(TransactionStatus.committed(0L));
         }
 
         if (validating) {
@@ -343,8 +329,7 @@ public void doNotPutIfAlreadyCommitted() throws ExecutionException, InterruptedE
         setupStagingValues(1);
         spiedStore.enableCommittingUnderUs();
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(0L).get()))
-                .hasValue(0L);
+        assertThat(atomicTable.get(0L).get()).isEqualTo(TransactionStatus.committed(0L));
         verify(spiedKvs, times(1)).checkAndSet(any());
         // only the put from the original PUE was registered
         verify(spiedStore, times(1)).put(anyMap());
@@ -357,18 +342,15 @@ public void acceptStagingAsCommittedWhenCommittingIsSlow() throws ExecutionExcep
         spiedStore.stopFailingPuts();
         spiedStore.startSlowPue();
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(0L).get()))
-                .hasValue(0L);
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(1L);
+        assertThat(atomicTable.get(0L).get()).isEqualTo(TransactionStatus.committed(0L));
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(1L));
 
         verify(spiedKvs, times(1)).checkAndSet(any());
         verify(spiedStore, times(1 + 2)).put(anyMap());
 
         clockLong.accumulateAndGet(Duration.ofSeconds(62).toMillis(), Long::sum);
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(2L).get()))
-                .hasValue(2L);
+        assertThat(atomicTable.get(2L).get()).isEqualTo(TransactionStatus.committed(2L));
         verify(spiedKvs, times(2)).checkAndSet(any());
         verify(spiedStore, times(1 + 3)).put(anyMap());
     }
@@ -384,23 +366,21 @@ public void acceptStagingAsCommittedWhenRetryingTooMuch() throws ExecutionExcept
                 .hasCauseInstanceOf(RetryLimitReachedException.class);
         spiedStore.stopFailingPuts();
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(1L);
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(1L));
         verify(spiedKvs, times(1)).checkAndSet(any());
         verify(spiedStore, times(1 + 2)).put(anyMap());
 
         clockLong.accumulateAndGet(Duration.ofSeconds(62).toMillis(), Long::sum);
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(2L).get()))
-                .hasValue(2L);
+        assertThat(atomicTable.get(2L).get()).isEqualTo(TransactionStatus.committed(2L));
         verify(spiedKvs, times(2)).checkAndSet(any());
         verify(spiedStore, times(1 + 3)).put(anyMap());
     }
 
     private void setupStagingValues(int num) {
         spiedStore.startFailingPuts();
         Map<Long, TransactionStatus> initialWrites =
-                LongStream.range(0, num).boxed().collect(Collectors.toMap(x -> x, TransactionStatuses::committed));
+                LongStream.range(0, num).boxed().collect(Collectors.toMap(x -> x, TransactionStatus::committed));
         assertThatThrownBy(() -> atomicTable.updateMultiple(initialWrites))
                 .isInstanceOf(RuntimeException.class)
                 .hasMessageContaining("Failed to set value");
@@ -409,7 +389,7 @@ private void setupStagingValues(int num) {
     private static Optional<Long> tryPue(
             AtomicTable<Long, TransactionStatus> atomicTable, long startTs, long commitTs) {
         try {
-            atomicTable.update(startTs, TransactionStatuses.committed(commitTs));
+            atomicTable.update(startTs, TransactionStatus.committed(commitTs));
             return Optional.of(commitTs);
         } catch (Exception e) {
             // this is ok, we may have failed because it already exists or randomly. Either way, continue.uR     }(j (09cfb417a9a7f8920f5c480e8b9a3bd3be73fe0cj gatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/SimpleCommitTimestampAtomicTableTest.javaj modifiedjy Kjz Kj K+j https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FSimpleCommitTimestampAtomicTableTest.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FSimpleCommitTimestampAtomicTableTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FSimpleCommitTimestampAtomicTableTest.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X  @@ -27,9 +27,7 @@
 import com.palantir.atlasdb.transaction.encoding.TicketsEncodingStrategy;
 import com.palantir.atlasdb.transaction.encoding.TransactionStatusEncodingStrategy;
 import com.palantir.atlasdb.transaction.encoding.V1EncodingStrategy;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import java.util.Arrays;
 import java.util.Collection;
 import java.util.Map;
@@ -58,74 +56,75 @@ public void setup() {
 
     @Test
     public void canPutAndGet() throws ExecutionException, InterruptedException {
-        atomicTable.update(1L, TransactionStatuses.committed(2L));
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(2L);
+        atomicTable.update(1L, TransactionStatus.committed(2L));
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(2L));
     }
 
     @Test
     public void emptyReturnsInProgress() throws ExecutionException, InterruptedException {
-        assertThat(atomicTable.get(3L).get()).isEqualTo(TransactionConstants.IN_PROGRESS);
+        assertThat(atomicTable.get(3L).get()).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Test
     public void cannotPueTwice() {
-        atomicTable.update(1L, TransactionStatuses.committed(2L));
-        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatuses.committed(2L)))
+        atomicTable.update(1L, TransactionStatus.committed(2L));
+        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatus.committed(2L)))
                 .isInstanceOf(KeyAlreadyExistsException.class);
     }
 
     @Test
     public void canPutAndGetMultiple() throws ExecutionException, InterruptedException {
         ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(
                 1L,
-                TransactionStatuses.committed(2L),
+                TransactionStatus.committed(2L),
                 3L,
-                TransactionStatuses.committed(4L),
+                TransactionStatus.committed(4L),
                 7L,
-                TransactionStatuses.committed(8L));
+                TransactionStatus.committed(8L));
         atomicTable.updateMultiple(inputs);
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 3L, 5L, 7L)).get();
         assertThat(result).hasSize(4);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(3L))).hasValue(4L);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(7L))).hasValue(8L);
+        assertThat(result.get(1L)).isEqualTo(TransactionStatus.committed(2L));
+        assertThat(result.get(3L)).isEqualTo(TransactionStatus.committed(4L));
+        assertThat(result.get(7L)).isEqualTo(TransactionStatus.committed(8L));
     }
 
     @Test
     public void canPutAndGetAbortedTransactions() throws ExecutionException, InterruptedException {
-        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatuses.aborted());
+        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatus.aborted());
         atomicTable.updateMultiple(inputs);
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L)).get();
         assertThat(result).hasSize(1);
-        assertThat(result).containsEntry(1L, TransactionConstants.ABORTED);
+        assertThat(result).containsEntry(1L, TransactionStatus.aborted());
     }
 
     @Test
     public void getsAllTimestamps() throws ExecutionException, InterruptedException {
-        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatuses.committed(2L));
+        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatus.committed(2L));
         atomicTable.updateMultiple(inputs);
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 3L)).get();
         assertThat(result).hasSize(2);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(result).containsEntry(3L, TransactionConstants.IN_PROGRESS);
+        assertThat(result)
+                .containsEntry(1L, TransactionStatus.committed(2L))
+                .containsEntry(3L, TransactionStatus.inProgress());
     }
 
     @Test
     public void doesNotThrowForDuplicateValues() throws ExecutionException, InterruptedException {
-        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatuses.committed(2L));
+        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatus.committed(2L));
         atomicTable.updateMultiple(inputs);
 
         // does not throw any exception
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 1L, 3L)).get();
 
         assertThat(result).hasSize(2);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(result).containsEntry(3L, TransactionConstants.IN_PROGRESS);
+        assertThat(result)
+                .containsEntry(1L, TransactionStatus.committed(2L))
+                .containsEntry(3L, TransactionStatus.inProgress());
     }
 
     private AtomicTable<Long, TransactionStatus> createPueTable() {u}(j (17c2d2d99fcc56873eb8e3c9724337a5187746f8j eatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/TimestampExtractingAtomicTableTest.javaj modifiedjy Kjz K	j Kj https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTableTest.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTableTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTableTest.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X  @@ -26,7 +26,6 @@
 import com.google.common.util.concurrent.Futures;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.Map;
@@ -42,7 +41,7 @@ public class TimestampExtractingAtomicTableTest {
     public void canExtractCommittedTransaction() throws ExecutionException, InterruptedException {
         Iterable<Long> keys = ImmutableList.of(1L, 2L, 3L);
         Map<Long, TransactionStatus> commits = KeyedStream.of(keys)
-                .map(key -> TransactionStatuses.committed(commitTs(key)))
+                .map(key -> TransactionStatus.committed(commitTs(key)))
                 .collectToMap();
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
@@ -54,7 +53,7 @@ public void canExtractCommittedTransaction() throws ExecutionException, Interrup
     public void canExtractAbortedTransaction() throws ExecutionException, InterruptedException {
         Iterable<Long> keys = ImmutableList.of(1L);
         Map<Long, TransactionStatus> commits =
-                KeyedStream.of(keys).map(_key -> TransactionConstants.ABORTED).collectToMap();
+                KeyedStream.of(keys).map(_key -> TransactionStatus.aborted()).collectToMap();
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
         Map<Long, Long> expected = KeyedStream.of(keys)
@@ -70,9 +69,9 @@ public void canExtractCommittedOrAbortedTransaction() throws ExecutionException,
         Iterable<Long> keys = ImmutableList.of(committedTs, abortedTs);
         Map<Long, TransactionStatus> commits = ImmutableMap.of(
                 committedTs,
-                TransactionStatuses.committed(commitTs(committedTs)),
+                TransactionStatus.committed(commitTs(committedTs)),
                 abortedTs,
-                TransactionConstants.ABORTED);
+                TransactionStatus.aborted());
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
         Map<Long, Long> expected =
@@ -83,9 +82,8 @@ public void canExtractCommittedOrAbortedTransaction() throws ExecutionException,
     @Test
     public void ignoresInProgressTransaction() throws ExecutionException, InterruptedException {
         Iterable<Long> keys = ImmutableList.of(1L);
-        Map<Long, TransactionStatus> commits = KeyedStream.of(keys)
-                .map(_key -> TransactionConstants.IN_PROGRESS)
-                .collectToMap();
+        Map<Long, TransactionStatus> commits =
+                KeyedStream.of(keys).map(_key -> TransactionStatus.inProgress()).collectToMap();
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
         assertThat(timestampExtractingAtomicTable.get(keys).get()).isEmpty();
@@ -95,7 +93,7 @@ public void ignoresInProgressTransaction() throws ExecutionException, Interrupte
     public void throwsOnUnknownTransaction() {
         Iterable<Long> keys = ImmutableList.of(1L);
         Map<Long, TransactionStatus> commits =
-                KeyedStream.of(keys).map(_key -> TransactionConstants.UNKNOWN).collectToMap();
+                KeyedStream.of(keys).map(_key -> TransactionStatus.unknown()).collectToMap();
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
         assertThatThrownBy(() -> timestampExtractingAtomicTable.get(keys).get())u}(j (f83731cd3f3f8b3be5c5f506cb85afad40f4ec7bj latlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/encoding/TicketsEncodingStrategyTest.javaj modifiedjy Kjz Kj K!j https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategyTest.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategyTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategyTest.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j XN  @@ -24,8 +24,7 @@
 import com.google.protobuf.ByteString;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.Cell;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Arrays;
 import java.util.List;
@@ -87,22 +86,20 @@ public void commitTimestampEncodeAndDecodeAreInverses() {
             long startTimestamp = ThreadLocalRandom.current().nextLong(0, Long.MAX_VALUE - 1);
             long commitTimestamp = ThreadLocalRandom.current().nextLong(startTimestamp, Long.MAX_VALUE);
             byte[] encoded =
-                    STRATEGY.encodeCommitStatusAsValue(startTimestamp, TransactionStatuses.committed(commitTimestamp));
-            assertThat(TransactionStatuses.getCommitTimestamp(
-                            STRATEGY.decodeValueAsCommitStatus(startTimestamp, encoded)))
-                    .hasValue(commitTimestamp);
+                    STRATEGY.encodeCommitStatusAsValue(startTimestamp, TransactionStatus.committed(commitTimestamp));
+            assertThat(STRATEGY.decodeValueAsCommitStatus(startTimestamp, encoded))
+                    .isEqualTo(TransactionStatus.committed(commitTimestamp));
         });
     }
 
     @Test
     public void storesLargeCommitTimestampsCompactly() {
         long highTimestamp = Long.MAX_VALUE - 1;
         byte[] commitTimestampEncoding =
-                STRATEGY.encodeCommitStatusAsValue(highTimestamp, TransactionStatuses.committed(highTimestamp + 1));
+                STRATEGY.encodeCommitStatusAsValue(highTimestamp, TransactionStatus.committed(highTimestamp + 1));
         assertThat(commitTimestampEncoding).hasSize(1);
-        assertThat(TransactionStatuses.getCommitTimestamp(
-                        STRATEGY.decodeValueAsCommitStatus(highTimestamp, commitTimestampEncoding)))
-                .hasValue(highTimestamp + 1);
+        assertThat(STRATEGY.decodeValueAsCommitStatus(highTimestamp, commitTimestampEncoding))
+                .isEqualTo(TransactionStatus.committed(highTimestamp + 1));
     }
 
     @Test
@@ -151,36 +148,36 @@ public void distributesRowsEvenlyAcrossBitSpace() {
 
     @Test
     public void canStoreTransactionsCommittingInstantaneously() {
-        assertThatCode(() -> STRATEGY.encodeCommitStatusAsValue(10, TransactionStatuses.committed(10L)))
+        assertThatCode(() -> STRATEGY.encodeCommitStatusAsValue(10, TransactionStatus.committed(10L)))
                 .doesNotThrowAnyException();
     }
 
     @Test
     public void canStoreAbortedTransactionCompactly() {
-        assertThat(STRATEGY.encodeCommitStatusAsValue(537369, TransactionConstants.ABORTED))
+        assertThat(STRATEGY.encodeCommitStatusAsValue(537369, TransactionStatus.aborted()))
                 .hasSize(0);
     }
 
     @Test
     public void encodingIllegalCommitThrows() {
-        assertThatThrownBy(() -> STRATEGY.encodeCommitStatusAsValue(12327758, TransactionStatuses.inProgress()))
+        assertThatThrownBy(() -> STRATEGY.encodeCommitStatusAsValue(12327758, TransactionStatus.inProgress()))
                 .isInstanceOf(SafeIllegalArgumentException.class);
-        assertThatThrownBy(() -> STRATEGY.encodeCommitStatusAsValue(12327758, TransactionStatuses.unknown()))
+        assertThatThrownBy(() -> STRATEGY.encodeCommitStatusAsValue(12327758, TransactionStatus.unknown()))
                 .isInstanceOf(SafeIllegalArgumentException.class);
     }
 
     @Test
     public void canDecodeEmptyByteArrayAsAbortedTransaction() {
         assertThat(STRATEGY.decodeValueAsCommitStatus(1, PtBytes.EMPTY_BYTE_ARRAY))
-                .isEqualTo(TransactionConstants.ABORTED);
+                .isEqualTo(TransactionStatus.aborted());
         assertThat(STRATEGY.decodeValueAsCommitStatus(862846378267L, PtBytes.EMPTY_BYTE_ARRAY))
-                .isEqualTo(TransactionConstants.ABORTED);
+                .isEqualTo(TransactionStatus.aborted());
     }
 
     @Test
     public void canDecodeNullAsInProgressTransaction() {
-        assertThat(STRATEGY.decodeValueAsCommitStatus(1, null)).isEqualTo(TransactionConstants.IN_PROGRESS);
-        assertThat(STRATEGY.decodeValueAsCommitStatus(862846378267L, null)).isEqualTo(TransactionConstants.IN_PROGRESS);
+        assertThat(STRATEGY.decodeValueAsCommitStatus(1, null)).isEqualTo(TransactionStatus.inProgress());
+        assertThat(STRATEGY.decodeValueAsCommitStatus(862846378267L, null)).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Testu}(j (f4c51432c4b246954b0fa6a7bcbfe0fa602255ecj fatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoaderTest.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X  @@ -35,7 +35,6 @@
 import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
 import com.palantir.atlasdb.transaction.service.AsyncTransactionService;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.lock.v2.LockToken;
@@ -59,7 +58,7 @@ public class CommitTimestampLoaderTest {
     private final KnownConcludedTransactions knownConcludedTransactions = mock(KnownConcludedTransactions.class);
 
     private void setup(long startTs, long commitTs) {
-        TransactionStatus commitStatus = TransactionStatuses.committed(commitTs);
+        TransactionStatus commitStatus = TransactionStatus.committed(commitTs);
         setup(startTs, commitStatus, false);
     }
 
@@ -87,7 +86,7 @@ public void readOnlyDoesNotThrowForUnsweptTTSCell() throws ExecutionException, I
     public void throwIfTTSBeyondReadOnlyForSweptTTSCell() {
         long transactionTs = 27l;
         long startTs = 5l;
-        TransactionStatus commitStatus = TransactionStatuses.unknown();
+        TransactionStatus commitStatus = TransactionStatus.unknown();
 
         setup(startTs, commitStatus, true);
 
@@ -160,7 +159,7 @@ public void doesNotCacheUnknownTransactions() throws ExecutionException, Interru
         long commitTsKnown = startTsKnown + 1;
 
         long startTsUnknown = 7l;
-        TransactionStatus commitUnknown = TransactionStatuses.unknown();
+        TransactionStatus commitUnknown = TransactionStatus.unknown();
 
         CommitTimestampLoader commitTimestampLoader =
                 getCommitTsLoader(Optional.empty(), transactionTs, transactionTs - 1);u}(j (065284f020ede2cc6279444cf58d921a7a7e099fj hatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/service/TransactionServicesTest.javaj modifiedjy Kjz Kj K
j https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionServicesTest.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionServicesTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionServicesTest.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X  @@ -191,7 +191,7 @@ public void canReadInProgressStatusV4Transaction() {
         initializeTimestamps();
         transactionService.markInProgress(startTs);
         assertThat(transactionService.get(startTs)).isNull();
-        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatuses.inProgress());
+        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Test
@@ -216,8 +216,8 @@ public void canCommitV4Transaction() {
 
         TwoPhaseEncodingStrategy strategy = new TwoPhaseEncodingStrategy(V4ProgressEncodingStrategy.INSTANCE);
         Cell cell = strategy.encodeStartTimestampAsCell(startTs);
-        byte[] update = strategy.encodeCommitStatusAsValue(
-                startTs, AtomicValue.staging(TransactionStatuses.committed(commitTs)));
+        byte[] update =
+                strategy.encodeCommitStatusAsValue(startTs, AtomicValue.staging(TransactionStatus.committed(commitTs)));
 
         MultiCheckAndSetRequest actualMcasRequest = verifyMcasInTableAndReturnArgument();
         assertThat(actualMcasRequest.tableRef()).isEqualTo(TransactionConstants.TRANSACTIONS2_TABLE);
@@ -244,14 +244,14 @@ public void canReadCommittedV4Transaction() {
     public void emptyValueReadsAsInProgressInV3() {
         forceInstallV3();
         initializeTimestamps();
-        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatuses.inProgress());
+        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Test
     public void emptyValueReadsAsUnknownInV4() {
         forceInstallV4();
         initializeTimestamps();
-        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatuses.unknown());
+        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatus.unknown());
     }
 
     private void initializeTimestamps() {u}(j (f5325ab250288de7492dba17e669a167978c832aj fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj modifiedjy Kjz Kj Kj https://github.com/palantir/atlasdb/blob/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://github.com/palantir/atlasdb/raw/553cf1583ac6eb60c68dc190b842e19d9b369ba8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=553cf1583ac6eb60c68dc190b842e19d9b369ba8j X*  @@ -22,7 +22,6 @@
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
@@ -85,7 +84,7 @@ public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions)
             TransactionStatus status =
                     transactionManager.getTransactionService().getV2(startTimestampReference.get());
 
-            Optional<Long> commitTimestamp = TransactionStatuses.getCommitTimestamp(status);
+            Optional<Long> commitTimestamp = TransactionStatus.getCommitTimestamp(status);
 
             return Optional.of(ImmutableWitnessedTransaction.builder()
                     .startTimestamp(startTimestampReference.get())ueu(1cf202762aee2dda1314afbf59c9889e5362bd4f}(sha(1cf202762aee2dda1314afbf59c9889e5362bd4fnode_idEC_kwDOAjP5fdoAKDFjZjIwMjc2MmFlZTJkZGExMzE0YWZiZjU5Yzk4ODllNTM2MmJkNGYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-03T09:07:09Zu	committer}(j^ 
Sam Kramerj` skramer@palantir.comjb 2023-05-03T09:57:25Zumessagerefresh locks frequentlytree}(jV (52ca2563fcd4188437ed13333a72e6ba16a68854url`https://api.github.com/repos/palantir/atlasdb/git/trees/52ca2563fcd4188437ed13333a72e6ba16a68854ujn bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1cf202762aee2dda1314afbf59c9889e5362bd4f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRSMAUACgkQmPPOpKR4
XS0hmAf/THC2XzcZwiS7OnpF07X/ejY+z/gOmXr4UcD27W/nT7CEVx8929MgWpRG
JL5hBZLwHsDzxE8iVh+NP5c537eFqMM61KnwyOoKcJElV48lgi5D0J9/xT9mqgaG
O69w+aB+z/2aH7qAUORIDz2tY+6AW7RW1wpaZ3CzlKHChb77gyyX1g/2o1vbvoGC
k9kfRPy4V9XsJzU4pFPAFSOdCzLatAoKQdvRp2OXUUU2GgMBG4RmQ5Dhie5tBntR
3K+3BQb30sWrg8+eQxVRgBzX8WLopCAnmZrbzxtQ6zbDmKOcubwDPPL6ZrKshlqm
Zxz5RFWZXqB3tJ5ov0HUmFQrgvrk5Q==
=akrr
-----END PGP SIGNATURE-----payloadtree 52ca2563fcd4188437ed13333a72e6ba16a68854
parent e0090fb57b5fb1574a90d9b35cd98f26841253fc
author Sam Kramer <skramer@palantir.com> 1683104829 +0100
committer Sam Kramer <skramer@palantir.com> 1683107845 +0100

refresh locks frequently
uujn ^https://api.github.com/repos/palantir/atlasdb/commits/1cf202762aee2dda1314afbf59c9889e5362bd4fhtml_urlShttps://github.com/palantir/atlasdb/commit/1cf202762aee2dda1314afbf59c9889e5362bd4fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1cf202762aee2dda1314afbf59c9889e5362bd4f/commentsj\ }(login
Sam-KrameridJ^2_ jX MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jn 'https://api.github.com/users/Sam-Kramerj| https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujd }(j 
Sam-Kramerj J^2_ jX MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5jn 'https://api.github.com/users/Sam-Kramerj| https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jV (e0090fb57b5fb1574a90d9b35cd98f26841253fcjn ^https://api.github.com/repos/palantir/atlasdb/commits/e0090fb57b5fb1574a90d9b35cd98f26841253fcj| Shttps://github.com/palantir/atlasdb/commit/e0090fb57b5fb1574a90d9b35cd98f26841253fcuastats}(totalK	additionsK	deletionsKufiles]}(jV (8e9c2c1ec9314055bfcee199874c2d9b881e28e8filenamematlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/1cf202762aee2dda1314afbf59c9889e5362bd4f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1cf202762aee2dda1314afbf59c9889e5362bd4f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=1cf202762aee2dda1314afbf59c9889e5362bd4fpatchX>  @@ -141,7 +141,7 @@ public static AtlasDbTransactionStoreFactory createFromConfig(
                 .globalTaggedMetricRegistry(metricsManager.getTaggedRegistry())
                 .runtimeConfigSupplier(atlasDbRuntimeConfig)
                 .defaultTimelockClientFactory(
-                        lockService -> TimeLockClient.createDefault(UnreliableTimeLockService.create(lockService)))
+                        lockService -> TimeLockClient.createDefault(UnreliableTimeLockService.create(lockService), 100))
                 .build()
                 .serializable();
 uau(2416ac46311282fa603c4713308c311f2dc6f712}(sha(2416ac46311282fa603c4713308c311f2dc6f712node_idEC_kwDOAjP5fdoAKDI0MTZhYzQ2MzExMjgyZmE2MDNjNDcxMzMwOGMzMTFmMmRjNmY3MTIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-04T15:47:38Zu	committer}(jՃ 
Sam Kramerj׃ skramer@palantir.comjك 2023-08-04T15:47:38Zumessageclean up round 2tree}(j̓ (5e038b11f350e0677d3ed3881237eef012b104bcurl`https://api.github.com/repos/palantir/atlasdb/git/trees/5e038b11f350e0677d3ed3881237eef012b104bcuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2416ac46311282fa603c4713308c311f2dc6f712
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTNHZoACgkQmPPOpKR4
XS3qqgf/ayKSKHpW67UWOY5BbgHO8eFcoSKJzIUfvZ8CvwTkjTNwoYOslgoNohmj
iv6QMLMO9iJThlrWywBWtBxqZ3kZj7Xq+j2adzM1ptIH4D0Yq6TJvn0anos44xj4
u4M/Xtfsi6V3oTPheehv3PDYHmGtRly9BwnCmAWpGQeOZepyBvBR6OFBzM3Dxg7D
inv9UvjSd9akaAgZZYYX0vAVyN6leIEvfcMS+gEKHESJhe4gbmUEpVOyC1p4YIpB
oUf3CAzAa49R/a4/e21uLe04whkM2YWRvyHbUrMbcZEXy0+TgAYTJe/03uTq5LWe
OZP80uRNswLFyMPiTK1WXOl3mBHy3A==
=nyPC
-----END PGP SIGNATURE-----payloadtree 5e038b11f350e0677d3ed3881237eef012b104bc
parent 2a9aed066dbb21b588a64f64f1d6d196a5ac4773
author Sam Kramer <skramer@palantir.com> 1691164058 +0100
committer Sam Kramer <skramer@palantir.com> 1691164058 +0100

clean up round 2
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/2416ac46311282fa603c4713308c311f2dc6f712html_urlShttps://github.com/palantir/atlasdb/commit/2416ac46311282fa603c4713308c311f2dc6f712comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2416ac46311282fa603c4713308c311f2dc6f712/commentsjӃ }(login
Sam-KrameridJ^2_ jσ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujۃ }(j 
Sam-Kramerj J^2_ jσ MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j	 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj
 -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j̓ (2a9aed066dbb21b588a64f64f1d6d196a5ac4773j ^https://api.github.com/repos/palantir/atlasdb/commits/2a9aed066dbb21b588a64f64f1d6d196a5ac4773j Shttps://github.com/palantir/atlasdb/commit/2a9aed066dbb21b588a64f64f1d6d196a5ac4773uastats}(totalK	additionsK	deletionsKufiles]}(j̓ (beae6af7cd8a2a002bb8dc0dc3e36b6d1d909bc6filenameYleader-election-impl/src/main/java/com/palantir/leader/proxy/AwaitingLeadershipProxy.javastatusmodifiedj/ Kj0 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/2416ac46311282fa603c4713308c311f2dc6f712/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2416ac46311282fa603c4713308c311f2dc6f712/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.java?ref=2416ac46311282fa603c4713308c311f2dc6f712patchX	  @@ -160,7 +160,9 @@ private RuntimeException handleDelegateThrewException(
             LeadershipToken leadershipToken, InvocationTargetException exception) throws Exception {
         Throwable cause = exception.getCause();
 
-        maybeHandleLeadershipChangeException(leadershipToken, cause);
+        if (cause instanceof ServiceNotAvailableException) {
+            handleLeadershipChangeException(leadershipToken, (ServiceNotAvailableException) cause);
+        }
 
         // Prevent blocked lock requests from receiving a non-retryable 500 on interrupts
         // in case of a leader election.
@@ -173,23 +175,22 @@ private RuntimeException handleDelegateThrewException(
     }
 
     /**
-     * Check and see if the provided throwable thew a {@link ServiceNotAvailableException} and if so, check and see
-     * if it is a {@link MaybeNotCurrentLeaderException}. If it is, check and see if we are still leading, as we may
-     * still be, but contending with ourselves. Otherwise, assume we are not, and invalidate our leadership state.
+     * Check and see if the provided {@link ServiceNotAvailableException} is a {@link MaybeNotCurrentLeaderException}.
+     * If it is, check and see if we are still leading, as we may still be, but contending with ourselves. Otherwise,
+     * assume we are not, and invalidate our leadership state.
      */
-    private void maybeHandleLeadershipChangeException(LeadershipToken leadershipToken, Throwable throwable)
+    private void handleLeadershipChangeException(
+            LeadershipToken leadershipToken, ServiceNotAvailableException exception)
             throws ExecutionException, InterruptedException {
-        if (throwable instanceof ServiceNotAvailableException) {
-            boolean notLeading = true;
+        boolean notLeading = true;
 
-            if (throwable instanceof MaybeNotCurrentLeaderException) {
-                notLeading = isNotLeading(
-                        leadershipCoordinator.isStillLeading(leadershipToken).get());
-            }
+        if (exception instanceof MaybeNotCurrentLeaderException) {
+            notLeading = isNotLeading(
+                    leadershipCoordinator.isStillLeading(leadershipToken).get());
+        }
 
-            if (notLeading) {
-                leadershipStateManager.handleNotLeading(leadershipToken, throwable);
-            }
+        if (notLeading) {
+            leadershipStateManager.handleNotLeading(leadershipToken, exception);
         }
     }
 uau(924be27fffe8c9bad42c4b1d8d3cdb2d788a63bc}(sha(924be27fffe8c9bad42c4b1d8d3cdb2d788a63bcnode_idEC_kwDOAjP5fdoAKDkyNGJlMjdmZmZlOGM5YmFkNDJjNGIxZDhkM2NkYjJkNzg4YTYzYmMcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-07-26T20:22:27Zu	committer}(jL Tom PetraccajN tpetracca@palantir.comjP 2023-08-04T13:28:02Zumessagefix timeLockMigration etetree}(jD (8b9b1503e36d489b8525d87b8b27a1399a7e643furl`https://api.github.com/repos/palantir/atlasdb/git/trees/8b9b1503e36d489b8525d87b8b27a1399a7e643fuj\ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/924be27fffe8c9bad42c4b1d8d3cdb2d788a63bc
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj\ ^https://api.github.com/repos/palantir/atlasdb/commits/924be27fffe8c9bad42c4b1d8d3cdb2d788a63bchtml_urlShttps://github.com/palantir/atlasdb/commit/924be27fffe8c9bad42c4b1d8d3cdb2d788a63bccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/924be27fffe8c9bad42c4b1d8d3cdb2d788a63bc/commentsjJ }(login	tpetraccaidJ& jF MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5j\ &https://api.github.com/users/tpetraccajh https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminujR }(jm 	tpetraccajo J& jF MDQ6VXNlcjI1NTQzMjg=jq 3https://avatars.githubusercontent.com/u/2554328?v=4js h5j\ &https://api.github.com/users/tpetraccajh https://github.com/tpetraccajv 0https://api.github.com/users/tpetracca/followersjx =https://api.github.com/users/tpetracca/following{/other_user}jz 6https://api.github.com/users/tpetracca/gists{/gist_id}j| =https://api.github.com/users/tpetracca/starred{/owner}{/repo}j~ 4https://api.github.com/users/tpetracca/subscriptionsj +https://api.github.com/users/tpetracca/orgsj ,https://api.github.com/users/tpetracca/reposj 7https://api.github.com/users/tpetracca/events{/privacy}j 6https://api.github.com/users/tpetracca/received_eventsj Userj uparents]}(jD (0a597a9273b87b5e5525737c46156d0bfcdc1eb9j\ ^https://api.github.com/repos/palantir/atlasdb/commits/0a597a9273b87b5e5525737c46156d0bfcdc1eb9jh Shttps://github.com/palantir/atlasdb/commit/0a597a9273b87b5e5525737c46156d0bfcdc1eb9uastats}(totalK	additionsK	deletionsKufiles]}(jD (3e5e78208bd362f331e92ea8ca27a7a5449f0fc1filenameaatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/standalone/TimeLockMigrationEteTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/924be27fffe8c9bad42c4b1d8d3cdb2d788a63bc/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fstandalone%2FTimeLockMigrationEteTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/924be27fffe8c9bad42c4b1d8d3cdb2d788a63bc/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fstandalone%2FTimeLockMigrationEteTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fstandalone%2FTimeLockMigrationEteTest.java?ref=924be27fffe8c9bad42c4b1d8d3cdb2d788a63bcpatchX  @@ -69,7 +69,7 @@ public class TimeLockMigrationEteTest {
                         .build();
                 TEST_CONTEXT = ImmutableTimeLockMigrationTestContext.builder()
                         .eteConfigWithEmbedded(embeddedConfig)
-                        .eteConfigWithTimeLock(new File("docker/conf/atlasdb-ete.timelock.cassandra.yml"))
+                        .eteConfigWithTimeLock(new File("docker/conf/atlasdb-ete.timelock-and-cassandra.yml"))
                         .dockerClientConfiguration(dockerClientConfiguration)
                         .build();
                 break;
@@ -82,7 +82,7 @@ public class TimeLockMigrationEteTest {
                         .build();
                 TEST_CONTEXT = ImmutableTimeLockMigrationTestContext.builder()
                         .eteConfigWithEmbedded(embeddedConfig)
-                        .eteConfigWithTimeLock(new File("docker/conf/atlasdb-ete.timelock.dbkvs.yml"))
+                        .eteConfigWithTimeLock(new File("docker/conf/atlasdb-ete.postgres-timelock-and-postgres.yml"))
                         .dockerClientConfiguration(dockerClientConfiguration)
                         .build();
                 break;uau(1465f8df704fd033774c9e5b7dcb4655667779b3}(sha(1465f8df704fd033774c9e5b7dcb4655667779b3node_idEC_kwDOAjP5fdoAKDE0NjVmOGRmNzA0ZmQwMzM3NzRjOWU1YjdkY2I0NjU1NjY3Nzc5YjMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-11T18:21:42Zu	committer}(j Jeremy KongjÄ jkong@palantir.comjń 2023-05-11T18:21:42Zumessagereturn fourtree}(j (49b36b9b234b8d5d14ec9f3e4c178708cd8e32c3url`https://api.github.com/repos/palantir/atlasdb/git/trees/49b36b9b234b8d5d14ec9f3e4c178708cd8e32c3ujф bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1465f8df704fd033774c9e5b7dcb4655667779b3
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRdMjYACgkQTLdFKain
zjw+nAgA1v1RURz81r0faabd7XzZRBvaws9nvz5mu/21v6mXU/nIcm6KUP+YfG7G
oQZMYEU6YMUnr0vUuT1u633W9L2dUbkZz/jex/TqtC8gaBg4yhXkxg0tX+jEfw3d
jl3Fma65vKqsmMmIXFHVaX/MEjVGIzs/9jhoXEiO7t9qzoMMbO0YfVCWsOPgU/ZY
aQqf/OV6YYD+LchVJXXAZLCncaiz+pGrJ/Zq0euXoFqTa+ss4bEZim5RUkgLDfDw
OC37T10vby6ReG9BVqTsfzRM1ZBxYZBNrjkSY+zJBHdwqaXAEabv0CbIcIYNYEf8
dXYQl8v8HnlACyVIFQEPo7njYl7TRQ==
=IN3y
-----END PGP SIGNATURE-----payloadtree 49b36b9b234b8d5d14ec9f3e4c178708cd8e32c3
parent 1a6d2588bd535edf80e99f26701aa4c26c333180
author Jeremy Kong <jkong@palantir.com> 1683829302 +0100
committer Jeremy Kong <jkong@palantir.com> 1683829302 +0100

return four
uujф ^https://api.github.com/repos/palantir/atlasdb/commits/1465f8df704fd033774c9e5b7dcb4655667779b3html_urlShttps://github.com/palantir/atlasdb/commit/1465f8df704fd033774c9e5b7dcb4655667779b3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1465f8df704fd033774c9e5b7dcb4655667779b3/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jф 'https://api.github.com/users/jeremyk-91j߄ https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujǄ }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5jф 'https://api.github.com/users/jeremyk-91j߄ https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j (1a6d2588bd535edf80e99f26701aa4c26c333180jф ^https://api.github.com/repos/palantir/atlasdb/commits/1a6d2588bd535edf80e99f26701aa4c26c333180j߄ Shttps://github.com/palantir/atlasdb/commit/1a6d2588bd535edf80e99f26701aa4c26c333180uastats}(totalK		additionsK	deletionsKufiles]}(j (d01fac95238cae13e6ac2ea5202009988916beadfilenameZatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactory.javastatusmodifiedj Kj KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/1465f8df704fd033774c9e5b7dcb4655667779b3/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1465f8df704fd033774c9e5b7dcb4655667779b3/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.java?ref=1465f8df704fd033774c9e5b7dcb4655667779b3patchX  @@ -32,10 +32,15 @@ public final class DefaultBuggifyFactory implements BuggifyFactory {
     static {
         SecureRandom randomInstance;
         try {
-            // See https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html#securerandom-number-generation-algorithms
+            // Antithesis's implementation of /dev/urandom is deterministic and something controlled by their fuzzer,
+            // which allows them to explore the state space. We thus choose the NativePRNG algorithm which is backed by
+            // /dev/urandom. This string is a reserved identifier for the algorithm, following
+            // https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html#securerandom-number-generation-algorithms
             randomInstance = SecureRandom.getInstance("NativePRNG");
         } catch (Exception e) {
-            log.warn("Failed to initialize fully native secure random instance, letting the Java runtime select for us", e);
+            log.warn(
+                    "Failed to initialize fully native secure random instance, letting the Java runtime select for us",
+                    e);
             randomInstance = new SecureRandom();
         }
         SECURE_RANDOM = randomInstance;uau(0005592fb848f09b00557aa1ec207cd7eea3cee5}(sha(0005592fb848f09b00557aa1ec207cd7eea3cee5node_idEC_kwDOAjP5fdoAKDAwMDU1OTJmYjg0OGYwOWIwMDU1N2FhMWVjMjA3Y2Q3ZWVhM2NlZTUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-16T10:13:25Zu	committer}(j8 Jeremy Kongj: jkong@palantir.comj< 2023-06-16T10:13:25Zumessageknow youtree}(j0 (0193b69a73c5d9de1acaec485227bfa758553539url`https://api.github.com/repos/palantir/atlasdb/git/trees/0193b69a73c5d9de1acaec485227bfa758553539ujH bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0005592fb848f09b00557aa1ec207cd7eea3cee5
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSMNcYACgkQTLdFKain
zjxkBgf/StCsJPbkTa/GPiQEzvcLV/du3JjSVWlpFOMaonJ5ZmlR0fhB2sUxGNH5
Qocja8hpZJLWAe/byb3wf6wlrlIJ8nIi6hDYHIuNfZqV1S0vtPDMyb2YhBUB+SIn
DhgJ1V3+mlk0clRapTjjUurG4nmp/zD3Glf9IEwsMv5ltcQh9dBoCCXUx4REdWsY
h9qf0inYyLqCP1zekzYK7QFzcbXYAlDCxAbRvrV/SaH+fz0/fCTaKr1fe3M9iqTr
Ggtqj4+7UqfaJLGhXBYVdJ99pMsd2LO2lIRCd8UEnLWU6uPjd75fj8jqxHf1v5eS
wBFuuaqsbAope7aylr1jGaJFIwUr9Q==
=aVdd
-----END PGP SIGNATURE-----payloadtree 0193b69a73c5d9de1acaec485227bfa758553539
parent 30cd082b141761013cb9cd7cbb397eb0151d3d52
author Jeremy Kong <jkong@palantir.com> 1686910405 +0800
committer Jeremy Kong <jkong@palantir.com> 1686910405 +0800

know you
uujH ^https://api.github.com/repos/palantir/atlasdb/commits/0005592fb848f09b00557aa1ec207cd7eea3cee5html_urlShttps://github.com/palantir/atlasdb/commit/0005592fb848f09b00557aa1ec207cd7eea3cee5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0005592fb848f09b00557aa1ec207cd7eea3cee5/commentsj6 }(login
jeremyk-91idJZ j2 MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jH 'https://api.github.com/users/jeremyk-91jV https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj> }(j[ 
jeremyk-91j] JZ j2 MDQ6VXNlcjU5NTU1MTA=j_ 3https://avatars.githubusercontent.com/u/5955510?v=4ja h5jH 'https://api.github.com/users/jeremyk-91jV https://github.com/jeremyk-91jd 1https://api.github.com/users/jeremyk-91/followersjf >https://api.github.com/users/jeremyk-91/following{/other_user}jh 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jj >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jl 5https://api.github.com/users/jeremyk-91/subscriptionsjn ,https://api.github.com/users/jeremyk-91/orgsjp -https://api.github.com/users/jeremyk-91/reposjr 8https://api.github.com/users/jeremyk-91/events{/privacy}jt 7https://api.github.com/users/jeremyk-91/received_eventsjv Userjx uparents]}(j0 (30cd082b141761013cb9cd7cbb397eb0151d3d52jH ^https://api.github.com/repos/palantir/atlasdb/commits/30cd082b141761013cb9cd7cbb397eb0151d3d52jV Shttps://github.com/palantir/atlasdb/commit/30cd082b141761013cb9cd7cbb397eb0151d3d52uastats}(totalK		additionsK	deletionsKufiles]}(j0 (c8934d1bf3734e2ff7572da31c4b3e0c75a9226dfilenamelatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javastatusmodifiedj Kj KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/0005592fb848f09b00557aa1ec207cd7eea3cee5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0005592fb848f09b00557aa1ec207cd7eea3cee5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=0005592fb848f09b00557aa1ec207cd7eea3cee5patchXd  @@ -111,6 +111,7 @@ private static Optional<WitnessedTransaction> run(
         return maybeTransaction;
     }
 
+    @SuppressWarnings("PreferSafeLoggableExceptions") // Specific type needed for external analysis
     private static void flagViolation() {
         log.error("Illegal table state observed!");
         throw new NullPointerException("boom");
@@ -132,11 +133,11 @@ static boolean shouldWriteToFirstCell(int taskIndex) {
     private static List<TransactionAction> createCellUpdateActions(int taskIndex, String tableName) {
         return shouldWriteToFirstCell(taskIndex)
                 ? ImmutableList.of(
-                        WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
-                        DeleteTransactionAction.of(tableName, SECOND_CELL))
+                WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
+                DeleteTransactionAction.of(tableName, SECOND_CELL))
                 : ImmutableList.of(
-                        DeleteTransactionAction.of(tableName, FIRST_CELL),
-                        WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
+                DeleteTransactionAction.of(tableName, FIRST_CELL),
+                WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
     }
 
     private static List<TransactionAction> createCellReadActions(String tableName) {uau(5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1}(sha(5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1node_idEC_kwDOAjP5fdoAKDVmZDRlOTMxMTAzM2ZlMDg2ZjhmNjRhOGM4ZTZkMGE5N2Q2ZDlkZDEcommit}(author}(name	Tom Papkeemail+43675490+Toemmsche@users.noreply.github.comdate2023-06-01T14:01:48Zu	committer}(j GitHubj noreply@github.comj 2023-06-01T14:01:48Zumessage|Add metric for number of commit lock acquisition failures (#6598)

Add metric for number of commit lock acquisition failurestree}(j (ab17ed5e49c4a1314feee86ef853692e0d5fde68url`https://api.github.com/repos/palantir/atlasdb/git/trees/ab17ed5e49c4a1314feee86ef853692e0d5fde68uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkeKTMCRBK7hj4Ov3rIwAADqQIAESl4iEX1G3y1Lq490Hu4xTi
+t3oKs5sa3f9hisBOo0zkmdkHp+BeyFqwXJvCvBYIee2gCPSeZ9Vxk0qE4JEW4pt
vLhcmQaibHG2yqh3xpe/P9EhV6XsOZttGvbqmP7KJu0cf+LRIwNuSrIm/Oby0ml0
xcOa85x8S7N8dxJSvxC/jEXAolPTvAIJSJjG5yA1hXl43Ir5/zQ/bRNyPVZOyzwP
JbYkG1JliYv8wZhXwi6HRE+MdOdf3CEyWYubGcDv11WI/ZN6JjMqBrOLh8LBWIge
L3jUPhf6wyrEgrl5JmKsPu/eI3Innl/l1tOzry5P9SSiPkUOoqTA5aCtLGqaJak=
=XMJ5
-----END PGP SIGNATURE-----
payloadXc  tree ab17ed5e49c4a1314feee86ef853692e0d5fde68
parent f1122a43e8aa35d314c30a514c34ed8c28c32f5a
author Tom Papke <43675490+Toemmsche@users.noreply.github.com> 1685628108 +0100
committer GitHub <noreply@github.com> 1685628108 +0000

Add metric for number of commit lock acquisition failures (#6598)

Add metric for number of commit lock acquisition failures
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1html_urlShttps://github.com/palantir/atlasdb/commit/5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschejͅ https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j҅ web-flowjԅ J/j MDQ6VXNlcjE5ODY0NDQ3jօ 4https://avatars.githubusercontent.com/u/19864447?v=4j؅ h5j %https://api.github.com/users/web-flowjͅ https://github.com/web-flowjۅ /https://api.github.com/users/web-flow/followersj݅ <https://api.github.com/users/web-flow/following{/other_user}j߅ 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j (f1122a43e8aa35d314c30a514c34ed8c28c32f5aj ^https://api.github.com/repos/palantir/atlasdb/commits/f1122a43e8aa35d314c30a514c34ed8c28c32f5ajͅ Shttps://github.com/palantir/atlasdb/commit/f1122a43e8aa35d314c30a514c34ed8c28c32f5auastats}(totalK7	additionsK5	deletionsKufiles](}(j (3baaaaf51b7360fce9a867bd4f521f4017dceb26filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj	 Kj
 K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1patchX  @@ -2412,6 +2412,7 @@ protected LockToken acquireLocksForCommit() {
                                 lockDescriptors, currentTransactionConfig, stackTraceSnapshot))
                         .build());
         if (!lockResponse.wasSuccessful()) {
+            transactionOutcomeMetrics.markCommitLockAcquisitionFailed();
             log.error(
                     "Timed out waiting while acquiring commit locks. Timeout was {} ms. "
                             + "First ten required locks were {}.",u}(j (7a4b02962f2c8fcd57bfd60b8b4b157b2e6ed956j gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcome.javaj modifiedj	 Kj
 Kj Kj https://github.com/palantir/atlasdb/blob/5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.javaj https://github.com/palantir/atlasdb/raw/5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.java?ref=5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1j X  @@ -62,5 +62,10 @@ public enum TransactionOutcome {
      * that started before our start timestamp and hasn't committed). This will be logged at most once for a given
      * transaction being rolled back, even if multiple transactions aim to rollback the same transaction.
      */
-    ROLLBACK_OTHER
+    ROLLBACK_OTHER,
+
+    /**
+     * The transaction failed to acquire commit locks at the beginning of the AtlasDB commit protocol.
+     */
+    COMMIT_LOCK_ACQUISITION_FAILED,
 }u}(j (0cf6b112d9082ed759671aab0086b2bf32ccbedbj natlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetrics.javaj modifiedj	 Kj
 K j Kj https://github.com/palantir/atlasdb/blob/5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.javaj https://github.com/palantir/atlasdb/raw/5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.java?ref=5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1j X  @@ -85,6 +85,10 @@ public void markRollbackOtherTransaction() {
         getMeter(TransactionOutcome.ROLLBACK_OTHER).mark();
     }
 
+    public void markCommitLockAcquisitionFailed() {
+        getMeter(TransactionOutcome.COMMIT_LOCK_ACQUISITION_FAILED).mark();
+    }
+
     @VisibleForTesting
     Meter getMeter(TransactionOutcome outcome) {
         return getMeter(outcome, ImmutableMap.of());u}(j (8732fe7b76fe6fc4d194ebc3c3c808c8ab2df91ej uatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetricsAssert.javaj modifiedj	 Kj
 K j Kj https://github.com/palantir/atlasdb/blob/5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.javaj https://github.com/palantir/atlasdb/raw/5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.java?ref=5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1j X  @@ -59,6 +59,11 @@ public TransactionOutcomeMetricsAssert hasRollbackOther(long count) {
         return this;
     }
 
+    public TransactionOutcomeMetricsAssert hasCommitLockAcquisitionFailures(long count) {
+        checkPresentAndCheckCount(TransactionOutcome.COMMIT_LOCK_ACQUISITION_FAILED, count);
+        return this;
+    }
+
     public TransactionOutcomeMetricsAssert hasLocksExpired(long count) {
         checkPresentAndCheckCount(TransactionOutcome.LOCKS_EXPIRED, count);
         return this;u}(j (c66fcac2f74aa5be8cdfd05aebf8029a49d9f883j eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj modifiedj	 Kj
 K j Kj https://github.com/palantir/atlasdb/blob/5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://github.com/palantir/atlasdb/raw/5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1j X  @@ -90,6 +90,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionConflictException;
 import com.palantir.atlasdb.transaction.api.TransactionFailedNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionFailedRetriableException;
+import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
@@ -118,6 +119,7 @@
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.TimeDuration;
 import com.palantir.lock.v2.LockImmutableTimestampResponse;
+import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.math.BigInteger;
@@ -322,6 +324,8 @@ public void cleanup() {}
     private static final Cell TEST_CELL = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("column1"));
     private static final Cell TEST_CELL_2 = Cell.create(PtBytes.toBytes("row2"), PtBytes.toBytes("column2"));
 
+    private static final byte[] TEST_VALUE = PtBytes.toBytes("value");
+
     @Override
     @Before
     public void setUp() throws Exception {
@@ -1484,6 +1488,23 @@ public void commitThrowsIfRolledBackAtCommitTime_expiredLocks() {
                 .hasLocksExpired(1);
     }
 
+    @Test
+    public void commitThrowsIfCommitLockAcquisitionFails() {
+        TimelockService timelockService = mock(TimelockService.class);
+        when(timelockService.lock(any(), any())).thenReturn(LockResponse.timedOut());
+        Transaction txn = getSnapshotTransactionWith(timelockService);
+
+        // We only request commit locks for transactions that write at least one value
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+
+        assertThatThrownBy(txn::commit)
+                .isInstanceOf(TransactionLockAcquisitionTimeoutException.class)
+                .hasMessage("Timed out while acquiring commit locks.");
+        TransactionOutcomeMetricsAssert.assertThat(transactionOutcomeMetrics)
+                .hasFailedCommits(1)
+                .hasCommitLockAcquisitionFailures(1);
+    }
+
     @Test
     public void commitThrowsIfRolledBackAtCommitTime_alreadyAborted() {
         final Cell cell = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("column1"));
@@ -2459,6 +2480,14 @@ private void setTransactionConfig(TransactionConfig config) {
         transactionConfig = config;
     }
 
+    private Transaction getSnapshotTransactionWith(TimelockService timelockService) {
+        ConjureStartTransactionsResponse conjureResponse = startTransactionWithWatches();
+        LockImmutableTimestampResponse lockImmutableTimestampResponse = conjureResponse.getImmutableTimestamp();
+        long transactionTs = conjureResponse.getTimestamps().start();
+        return getSnapshotTransactionWith(
+                timelockService, () -> transactionTs, lockImmutableTimestampResponse, unused -> {});
+    }
+
     private Transaction getSnapshotTransactionWith(
             TimelockService timelockService,
             Supplier<Long> startTs,us     }(j (b86c6ab4d0e299588d4d550dff55a4b053fb2870j satlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetricsTest.javaj modifiedj	 Kj
 Kj Kj https://github.com/palantir/atlasdb/blob/5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.javaj https://github.com/palantir/atlasdb/raw/5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.java?ref=5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1j XL  @@ -72,6 +72,7 @@ public void canMarkVariousOutcomes() {
                 .put(4, transactionOutcomeMetrics::markPutUnlessExistsFailed)
                 .put(5, transactionOutcomeMetrics::markRollbackOtherTransaction)
                 .put(6, transactionOutcomeMetrics::markPreCommitCheckFailed)
+                .put(7, transactionOutcomeMetrics::markCommitLockAcquisitionFailed)
                 .buildOrThrow();
 
         tasks.entrySet().forEach(entry -> IntStream.range(0, entry.getKey())
@@ -83,7 +84,8 @@ public void canMarkVariousOutcomes() {
                 .hasLocksExpired(3)
                 .hasPutUnlessExistsFailures(4)
                 .hasRollbackOther(5)
-                .hasPreCommitCheckFailures(6);
+                .hasPreCommitCheckFailures(6)
+                .hasCommitLockAcquisitionFailures(7);
     }
 
     @Testu}(j (088ecb3494e3094a7ce37361e9ec8cf8f2816acaj $changelog/@unreleased/pr-6598.v2.ymlj addedj	 Kj
 K j Kj |https://github.com/palantir/atlasdb/blob/5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1/changelog%2F%40unreleased%2Fpr-6598.v2.ymlj {https://github.com/palantir/atlasdb/raw/5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1/changelog%2F%40unreleased%2Fpr-6598.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6598.v2.yml?ref=5fd4e9311033fe086f8f64a8c8e6d0a97d6d9dd1j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Add metric for number of commit lock acquisition failures
+  links:
+  - https://github.com/palantir/atlasdb/pull/6598ueu(16de6309892fd75185d1c8f9a8622614491b4ae5}(sha(16de6309892fd75185d1c8f9a8622614491b4ae5node_idEC_kwDOAjP5fdoAKDE2ZGU2MzA5ODkyZmQ3NTE4NWQxYzhmOWE4NjIyNjE0NDkxYjRhZTUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-21T01:29:33Zu	committer}(jV 
Ahmed AlouanejX aalouane@palantir.comjZ 2023-04-21T01:29:33Zumessageand nowtree}(jN (3e1d0622ce74018576b0e31cbbcc1b3a1ea4775durl`https://api.github.com/repos/palantir/atlasdb/git/trees/3e1d0622ce74018576b0e31cbbcc1b3a1ea4775dujf bhttps://api.github.com/repos/palantir/atlasdb/git/commits/16de6309892fd75185d1c8f9a8622614491b4ae5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRB5v4ACgkQPlMHVIT1
yhqB/gf9EG4+yvn+aouN4CALChngm/yXwCgGYk9ImrxDQ9HdUdJGZhfX93ZHGrEl
TgokZpnrAx+EfsOVSpJEtAsew4Zwuq6Qs5F0bZAZ5HOY9GFNX/9Jo3j0+eoHCtE4
X7WQMykNBhfc76dKJBcJGSLothbwnfds7vvPHpHiT7gJ/FRkH6XkAC7qv0MCltGs
q+htSE3/o+1LYRFSdFElCVqhRk65voWtPt/PDca+rDw5uk4LRk71m2e4m8zG/g3w
GMwa7R4/HPHBuzahTOkhtJgfaW1o1nBMfAXVNnMva8R8/m6Rg/Rl1hGBWz15YbZn
KH5W4EgSLhDO8UUzUFjxyJYQ447O7g==
=+u9j
-----END PGP SIGNATURE-----payloadtree 3e1d0622ce74018576b0e31cbbcc1b3a1ea4775d
parent bc246025a297d452861f2a39a0653d5943e7760e
author Ahmed Alouane <aalouane@palantir.com> 1682040573 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682040573 +0100

and now
uujf ^https://api.github.com/repos/palantir/atlasdb/commits/16de6309892fd75185d1c8f9a8622614491b4ae5html_urlShttps://github.com/palantir/atlasdb/commit/16de6309892fd75185d1c8f9a8622614491b4ae5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/16de6309892fd75185d1c8f9a8622614491b4ae5/commentsjT }(loginergo14idJjP MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jf #https://api.github.com/users/ergo14jt https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj\ }(jy ergo14j{ JjP MDQ6VXNlcjMwOTAzNzM2j} 4https://avatars.githubusercontent.com/u/30903736?v=4j h5jf #https://api.github.com/users/ergo14jt https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jN (bc246025a297d452861f2a39a0653d5943e7760ejf ^https://api.github.com/repos/palantir/atlasdb/commits/bc246025a297d452861f2a39a0653d5943e7760ejt Shttps://github.com/palantir/atlasdb/commit/bc246025a297d452861f2a39a0653d5943e7760euastats}(totalK	additionsK	deletionsKufiles](}(jN (5504ea3d7692e9bd5feb8a902db77c14b223e48ffilenameatlasdb-cli/build.gradlestatusmodifiedj Kj K changesKblob_urllhttps://github.com/palantir/atlasdb/blob/16de6309892fd75185d1c8f9a8622614491b4ae5/atlasdb-cli%2Fbuild.gradleraw_urlkhttps://github.com/palantir/atlasdb/raw/16de6309892fd75185d1c8f9a8622614491b4ae5/atlasdb-cli%2Fbuild.gradlecontents_url~https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cli%2Fbuild.gradle?ref=16de6309892fd75185d1c8f9a8622614491b4ae5patchX  @@ -8,6 +8,7 @@ dependencies {
     api project(':atlasdb-client')
     api project(':atlasdb-config')
     api project(':timestamp-api')
+    testImplementation project(path: ':flake-rule')
 
     compileOnly 'com.google.dagger:dagger'
     implementation 'io.airlift:airline'u}(jN (ec85f8f1a28571cee7cab487a10f6d5d09307a44j Tatlasdb-cli/src/test/java/com/palantir/atlasdb/cli/command/TestTimestampCommand.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/16de6309892fd75185d1c8f9a8622614491b4ae5/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.javaj https://github.com/palantir/atlasdb/raw/16de6309892fd75185d1c8f9a8622614491b4ae5/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.java?ref=16de6309892fd75185d1c8f9a8622614491b4ae5j X  @@ -181,6 +181,7 @@ public void testWithFile() throws Exception {
         runAndVerifyCliForFile(inputFileString);
     }
 
+    @ShouldRetry
     @Test
     public void testWithFileWithDir() throws Exception {
         String inputFileString = "existing-dir/test.timestamp";u}(jN (7941e5d790c3733a658d9b701c99ad7771ac078bj %scripts/circle-ci/run-circle-tests.shj modifiedj Kj Kj Kj {https://github.com/palantir/atlasdb/blob/16de6309892fd75185d1c8f9a8622614491b4ae5/scripts%2Fcircle-ci%2Frun-circle-tests.shj zhttps://github.com/palantir/atlasdb/raw/16de6309892fd75185d1c8f9a8622614491b4ae5/scripts%2Fcircle-ci%2Frun-circle-tests.shj https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=16de6309892fd75185d1c8f9a8622614491b4ae5j @@ -2,7 +2,7 @@
 
 set -x
 
-BASE_GRADLE_ARGS="--profile"
+BASE_GRADLE_ARGS="--profile --fail-fast"
 
 function checkDocsBuild {
      pyenv install 3.5.4ueu(7eec290e7b01aee4e34d37706e0ce598bba3f6ab}(sha(7eec290e7b01aee4e34d37706e0ce598bba3f6abnode_idEC_kwDOAjP5fdoAKDdlZWMyOTBlN2IwMWFlZTRlMzRkMzc3MDZlMGNlNTk4YmJhM2Y2YWIcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-16T13:19:38Zu	committer}(j݆ 
Ahmed Alouanej߆ aalouane@palantir.comj 2023-05-16T13:19:38Zumessagejust 3tree}(jՆ (3726900b0d4f1e2997ce9e33cfeea96d27227fd5url`https://api.github.com/repos/palantir/atlasdb/git/trees/3726900b0d4f1e2997ce9e33cfeea96d27227fd5uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7eec290e7b01aee4e34d37706e0ce598bba3f6ab
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRjguoACgkQPlMHVIT1
yhrHbwf8DaSCDOyV5XhTkqKWRTr/L2GJcDADha9Z4FoiTfIv7G417qygUmRwBOs4
kuIFtRyCj6NjfXzFfK81pp5sfo1PyI+XxPuiXVCuUoS/HiB+oGSXQfUSzKEL/z+o
HDSTzI72LTW2Y4ftUGKCYxePieCIYEAIg8kXQpJKUH/vSSMz48Hx9SXC4s/o+qqA
XjKYX4iTvOORL+xYr+lhePmWUCDG+4IoNcTFII0wF6RN58bdryHbE2qw2Nco2Cn9
x18y2NSSlu2PrxJ/CsdBR0vgE43+fKBBagnAPZmCaN76E8MPlrEXdBxVxj23yYA2
fy777kw6eCM6Z3P6Mii7D1pmi+LOQA==
=gQXq
-----END PGP SIGNATURE-----payloadtree 3726900b0d4f1e2997ce9e33cfeea96d27227fd5
parent 8fe1ba9180883846f22d44b206ef345e178fe9c5
author Ahmed Alouane <aalouane@palantir.com> 1684243178 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684243178 +0100

just 3
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/7eec290e7b01aee4e34d37706e0ce598bba3f6abhtml_urlShttps://github.com/palantir/atlasdb/commit/7eec290e7b01aee4e34d37706e0ce598bba3f6abcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7eec290e7b01aee4e34d37706e0ce598bba3f6ab/commentsjۆ }(loginergo14idJj׆ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j  ergo14j Jj׆ MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j	 -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j
 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jՆ (8fe1ba9180883846f22d44b206ef345e178fe9c5j ^https://api.github.com/repos/palantir/atlasdb/commits/8fe1ba9180883846f22d44b206ef345e178fe9c5j Shttps://github.com/palantir/atlasdb/commit/8fe1ba9180883846f22d44b206ef345e178fe9c5uastats}(totalK	additionsK	deletionsKufiles]}(jՆ (253bc16ac5dc5a851cf320386566a9af40147d25filename.circleci/config.ymlstatusmodifiedj7 Kj8 KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/7eec290e7b01aee4e34d37706e0ce598bba3f6ab/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/7eec290e7b01aee4e34d37706e0ce598bba3f6ab/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=7eec290e7b01aee4e34d37706e0ce598bba3f6abpatchXQ  @@ -155,7 +155,7 @@ workflows:
             alias: test-no-tl
             parameters:
               # intentionally excluding 12 (TimeLock migration ETE test) from this collection
-              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13]
+              suite: [3]
           filters:
             tags:
               only: /.*/uau(77cf0e558cbad8cefcd09d1abd3e06e5c7505cc4}(sha(77cf0e558cbad8cefcd09d1abd3e06e5c7505cc4node_idEC_kwDOAjP5fdoAKDc3Y2YwZTU1OGNiYWQ4Y2VmY2QwOWQxYWJkM2UwNmU1Yzc1MDVjYzQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-26T16:19:48Zu	committer}(jT 
Sam KramerjV skramer@palantir.comjX 2023-06-26T16:19:48Zumessage,Create branch for healthy antithesis versiontree}(jL (d2417754726155f53c666455d65cb56f191642aeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/d2417754726155f53c666455d65cb56f191642aeujd bhttps://api.github.com/repos/palantir/atlasdb/git/commits/77cf0e558cbad8cefcd09d1abd3e06e5c7505cc4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSZuqUACgkQmPPOpKR4
XS38XAgAi4N9tfkxnJlyLsv2bb3FE9Tys9N7s89F9e/imvWMzS7kwwoxpRz1rFEm
IfmqWF4xzHWhbHXR6pA/EWh9OoKA8uCEOsg1Y0nvNwj2jS+nFvBke1hLffGWMlkZ
FoDrWOUJw8Q/WV9yluN2toDK/di9mJlHVUPeiA0LSYHVyfyz7ovzVmjYLN+W+TKi
GGJYdZZ0RaGi7YBTLQtiqQS0gifaBIC1q5MraJDNax5DRMqxJF4Qrwv8ctCCb1L5
sbGySCGtCAkWvbxOQqDPiwIpWUINlqLWD1AYTI3fYI/VzZ3pZDPTrVfiAATK4g67
vFy2I5aYO+4CAg8xBrmN1ymR4cSCOw==
=NAcD
-----END PGP SIGNATURE-----payloadX  tree d2417754726155f53c666455d65cb56f191642ae
parent ffcbe1a62920e248b82407e29c58561ec79380e1
author Sam Kramer <skramer@palantir.com> 1687796388 +0100
committer Sam Kramer <skramer@palantir.com> 1687796388 +0100

Create branch for healthy antithesis version
uujd ^https://api.github.com/repos/palantir/atlasdb/commits/77cf0e558cbad8cefcd09d1abd3e06e5c7505cc4html_urlShttps://github.com/palantir/atlasdb/commit/77cf0e558cbad8cefcd09d1abd3e06e5c7505cc4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/77cf0e558cbad8cefcd09d1abd3e06e5c7505cc4/commentsjR }(login
Sam-KrameridJ^2_ jN MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jd 'https://api.github.com/users/Sam-Kramerjr https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujZ }(jw 
Sam-Kramerjy J^2_ jN MDQ6VXNlcjYyMzg4MTQ=j{ 3https://avatars.githubusercontent.com/u/6238814?v=4j} h5jd 'https://api.github.com/users/Sam-Kramerjr https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jL (ffcbe1a62920e248b82407e29c58561ec79380e1jd ^https://api.github.com/repos/palantir/atlasdb/commits/ffcbe1a62920e248b82407e29c58561ec79380e1jr Shttps://github.com/palantir/atlasdb/commit/ffcbe1a62920e248b82407e29c58561ec79380e1uastats}(totalK	additionsK	deletionsKufiles]}(jL (69f581236b5f107c22a46408a061b07dd50fd1bcfilenameiatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/77cf0e558cbad8cefcd09d1abd3e06e5c7505cc4/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/77cf0e558cbad8cefcd09d1abd3e06e5c7505cc4/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=77cf0e558cbad8cefcd09d1abd3e06e5c7505cc4patchXN  @@ -215,7 +215,7 @@ public void close() {
     }
 
     static final ConsistencyLevel WRITE_CONSISTENCY = ConsistencyLevel.EACH_QUORUM;
-    static final ConsistencyLevel DELETE_CONSISTENCY = ConsistencyLevel.EACH_QUORUM;
+    static final ConsistencyLevel DELETE_CONSISTENCY = ConsistencyLevel.ALL;
 
     private final Logger log;
 uau(69c94cfcbad0a24999a43b2ff3884ddad671e8a1}(sha(69c94cfcbad0a24999a43b2ff3884ddad671e8a1node_idEC_kwDOAjP5fdoAKDY5Yzk0Y2ZjYmFkMGEyNDk5OWE0M2IyZmYzODg0ZGRhZDY3MWU4YTEcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-09T08:59:04Zu	committer}(jˇ 	Tom Papkej͇ tpapke@palantir.comjχ 2023-06-09T08:59:04ZumessageRemove duplicate flagtree}(jÇ (90ffe3ec4169b3f5db6b0504dc38f1352c10811furl`https://api.github.com/repos/palantir/atlasdb/git/trees/90ffe3ec4169b3f5db6b0504dc38f1352c10811fujۇ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/69c94cfcbad0a24999a43b2ff3884ddad671e8a1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSC6dgACgkQmF9s0kaF
Iw3JJgf/Qe7SIMckf2nHFbcJq5GEwhArTuyVwUL44NBHvX5EEkk7Xhl06KFN+eQn
uYpF5P7WWxQ16CdPj6Yvso/nV6Cz2yjrnQMF2F2xJs4eoqYAUrf5ljsDx7XPMxuf
I+Hdnye7+Q9MMdctX1jruvJeuJTdp/n1+uU1kSD1zaIzUijlO19qBSB6Vzvs0S0Y
gscvRPvW/89/x5rwVpuDmwcAmPw085Ta/TRB1WuDDXs5rnKnNBnE28aIkDv57+EH
7m4yRS4o7f85XeSLiW6PYpS2n7hfbfpb5kE3FZENZI2wpOhzAZ5l9F+upVvgbj+9
0Nm0MbTdAt/fjPzs34glilghPxawEg==
=zDVs
-----END PGP SIGNATURE-----payloadtree 90ffe3ec4169b3f5db6b0504dc38f1352c10811f
parent 26939f22390efb844f368c0d121b43f2e2ca8098
author Tom Papke <tpapke@palantir.com> 1686301144 +0100
committer Tom Papke <tpapke@palantir.com> 1686301144 +0100

Remove duplicate flag
uujۇ ^https://api.github.com/repos/palantir/atlasdb/commits/69c94cfcbad0a24999a43b2ff3884ddad671e8a1html_urlShttps://github.com/palantir/atlasdb/commit/69c94cfcbad0a24999a43b2ff3884ddad671e8a1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/69c94cfcbad0a24999a43b2ff3884ddad671e8a1/commentsjɇ }(login	ToemmscheidJbojŇ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jۇ &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujч }(j 	Toemmschej JbojŇ MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5jۇ &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj	 Userj uparents]}(jÇ (26939f22390efb844f368c0d121b43f2e2ca8098jۇ ^https://api.github.com/repos/palantir/atlasdb/commits/26939f22390efb844f368c0d121b43f2e2ca8098j Shttps://github.com/palantir/atlasdb/commit/26939f22390efb844f368c0d121b43f2e2ca8098uastats}(totalK	additionsK 	deletionsKufiles]}(jÇ (abe9258a8063b0dc94aa6367e2919015dee01193filenameClock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javastatusmodifiedj% K j& KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/69c94cfcbad0a24999a43b2ff3884ddad671e8a1/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/69c94cfcbad0a24999a43b2ff3884ddad671e8a1/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=69c94cfcbad0a24999a43b2ff3884ddad671e8a1patchX7  @@ -147,8 +147,6 @@ public final class LockServiceImpl
     @VisibleForTesting
     static final long DEBUG_SLOW_LOG_TRIGGER_MILLIS = 100;
 
-    public static boolean COLLECT_AND_LOG_THREAD_INFO = true;
-
     @Immutable
     public static class HeldLocks<T extends ExpiringToken> {
         final T realToken;uau(3737bcca28cb09a31d60be93cdc39d4e04bb0e79}(sha(3737bcca28cb09a31d60be93cdc39d4e04bb0e79node_idEC_kwDOAjP5fdoAKDM3MzdiY2NhMjhjYjA5YTMxZDYwYmU5M2NkYzM5ZDRlMDRiYjBlNzkcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-03T13:58:03Zu	committer}(jB 
Sam KramerjD skramer@palantir.comjF 2023-05-03T13:58:03Zumessagefix testtree}(j: (970b84d5be11081d517a150cff0ebf9ef8e63059url`https://api.github.com/repos/palantir/atlasdb/git/trees/970b84d5be11081d517a150cff0ebf9ef8e63059ujR bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3737bcca28cb09a31d60be93cdc39d4e04bb0e79
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRSaGsACgkQmPPOpKR4
XS1Ntwf6A7Ty+TeNzQTP2V6sL/OEhGfbmH1LNqeVcSGH/R09YsvXEaQpwH9Ud1uR
JGryrlY6Sm2Q5xbG29QYx0nmeP/bZiB2Ce14unfxXjlrr8CduAHWKMK+a0AFAKj+
BYzEbeakGqt4YObA096cWTD8Y8PBDa+mBNspZs4U6lF2RCDtMEdzjcsZlCJxc9L6
W562ZsB1Jkd4NaC6dtBdcDdqlX3yOyF2nTal+d4yH5OH6uVWc94xNY5xo5ko4g2S
NzUWKqdl7rUHneuahmqb33d5dE0lB0Y2L2spCe9tO1WXIzGCJYiARTCWI1TIyXzk
3rpJ4I03RVC3kcnJhzfDeQpPy7F8dA==
=b58h
-----END PGP SIGNATURE-----payloadtree 970b84d5be11081d517a150cff0ebf9ef8e63059
parent fca9cff9451e9f6c147dc8c24b564895ea25dd12
author Sam Kramer <skramer@palantir.com> 1683122283 +0100
committer Sam Kramer <skramer@palantir.com> 1683122283 +0100

fix test
uujR ^https://api.github.com/repos/palantir/atlasdb/commits/3737bcca28cb09a31d60be93cdc39d4e04bb0e79html_urlShttps://github.com/palantir/atlasdb/commit/3737bcca28cb09a31d60be93cdc39d4e04bb0e79comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3737bcca28cb09a31d60be93cdc39d4e04bb0e79/commentsj@ }(login
Sam-KrameridJ^2_ j< MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jR 'https://api.github.com/users/Sam-Kramerj` https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujH }(je 
Sam-Kramerjg J^2_ j< MDQ6VXNlcjYyMzg4MTQ=ji 3https://avatars.githubusercontent.com/u/6238814?v=4jk h5jR 'https://api.github.com/users/Sam-Kramerj` https://github.com/Sam-Kramerjn 1https://api.github.com/users/Sam-Kramer/followersjp >https://api.github.com/users/Sam-Kramer/following{/other_user}jr 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jt >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jv 5https://api.github.com/users/Sam-Kramer/subscriptionsjx ,https://api.github.com/users/Sam-Kramer/orgsjz -https://api.github.com/users/Sam-Kramer/reposj| 8https://api.github.com/users/Sam-Kramer/events{/privacy}j~ 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j: (fca9cff9451e9f6c147dc8c24b564895ea25dd12jR ^https://api.github.com/repos/palantir/atlasdb/commits/fca9cff9451e9f6c147dc8c24b564895ea25dd12j` Shttps://github.com/palantir/atlasdb/commit/fca9cff9451e9f6c147dc8c24b564895ea25dd12uastats}(totalK		additionsK	deletionsKufiles]}(j: (98c826c9208fca80e3a6f1f1efcf8240c030d9fffilenameatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javastatusmodifiedj Kj KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/3737bcca28cb09a31d60be93cdc39d4e04bb0e79/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/3737bcca28cb09a31d60be93cdc39d4e04bb0e79/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=3737bcca28cb09a31d60be93cdc39d4e04bb0e79patchXu  @@ -32,10 +32,13 @@ public class MaybeWitnessedTransactionTest {
 
     @Test
     public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
-        assertThatLoggableExceptionThrownBy(() ->
-                        MaybeWitnessedTransaction.builder().startTimestamp(100L).build())
+        assertThatLoggableExceptionThrownBy(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .build())
                 .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageContaining("Commit timestamp must be present in a potentially witnessed transaction");
+                .hasMessageContaining(
+                        "Given how the transaction protocol works, a transaction for which we haven't retrieved the"
+                                + " commit timestamp");
     }
 
     @Testuau(31bc3b87383e1977e436e93cc0d86b33eb522004}(sha(31bc3b87383e1977e436e93cc0d86b33eb522004node_idEC_kwDOAjP5fdoAKDMxYmMzYjg3MzgzZTE5NzdlNDM2ZTkzY2MwZDg2YjMzZWI1MjIwMDQcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-24T13:56:53Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-04-24T13:56:53Zumessagehow about thattree}(j (74994083d880f52be8c45d66b3142d4f727cd1c2url`https://api.github.com/repos/palantir/atlasdb/git/trees/74994083d880f52be8c45d66b3142d4f727cd1c2ujɈ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/31bc3b87383e1977e436e93cc0d86b33eb522004
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRGiqUACgkQPlMHVIT1
yhr9ewgAmbN5ohbj50vbcDKtwCyRsXlmOHb1QEyE1qsF8jLuXXdMoMcp54LF9Yay
cpUxDfgXQwcFCki65UbGXBMTM4rY4PVk1Qo/GfewHU/SkfEIyQOZTgkfAhf+L+bz
mz1MGR+hpEmduWpDH+XW5pTIG9fIJ3DtLOSdlPr2WEBdm5LNmSKv65js4869tjJf
5PS/o6fRfJ5IjjJFL+QKJEjKJ06YWpraeaSKuXnPcTgA79Tt2gohouCMkKgQTkin
yjlGbcgyiDVrg3YFTQIOwy2XnQ23oSE09JezV0jXo2qllkwOL7nAWuLfidoBGXSb
ByNBRANiEgVcH5TBEAWaMOlhO4pVHQ==
=Aemp
-----END PGP SIGNATURE-----payloadtree 74994083d880f52be8c45d66b3142d4f727cd1c2
parent edbd233345a6aac470769bc6617abf59235ce132
author Ahmed Alouane <aalouane@palantir.com> 1682344613 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682344613 +0100

how about that
uujɈ ^https://api.github.com/repos/palantir/atlasdb/commits/31bc3b87383e1977e436e93cc0d86b33eb522004html_urlShttps://github.com/palantir/atlasdb/commit/31bc3b87383e1977e436e93cc0d86b33eb522004comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/31bc3b87383e1977e436e93cc0d86b33eb522004/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jɈ #https://api.github.com/users/ergo14j׈ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j܈ ergo14jވ Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5jɈ #https://api.github.com/users/ergo14j׈ https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j (edbd233345a6aac470769bc6617abf59235ce132jɈ ^https://api.github.com/repos/palantir/atlasdb/commits/edbd233345a6aac470769bc6617abf59235ce132j׈ Shttps://github.com/palantir/atlasdb/commit/edbd233345a6aac470769bc6617abf59235ce132uastats}(totalK0	additionsK.	deletionsKufiles](}(j (b098b294e7f2e884dff2bc2074799566c83061b7filename.circleci/config.ymlstatusmodifiedj Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/31bc3b87383e1977e436e93cc0d86b33eb522004/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/31bc3b87383e1977e436e93cc0d86b33eb522004/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=31bc3b87383e1977e436e93cc0d86b33eb522004patch@@ -32,7 +32,7 @@ jobs:
           paths: [ . ]
 
   test:
-    parallelism: 12
+    parallelism: 15
     machine:
       image: ubuntu-2004:202111-02
     resource_class: xlargeu}(j (e3a6e463c444898ba1293d4b174ff20011cb46eaj 0atlasdb-cassandra-integration-tests/build.gradlej modifiedj K j K j K j https://github.com/palantir/atlasdb/blob/31bc3b87383e1977e436e93cc0d86b33eb522004/atlasdb-cassandra-integration-tests%2Fbuild.gradlej  https://github.com/palantir/atlasdb/raw/31bc3b87383e1977e436e93cc0d86b33eb522004/atlasdb-cassandra-integration-tests%2Fbuild.gradlej" https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fbuild.gradle?ref=31bc3b87383e1977e436e93cc0d86b33eb522004j$ XY  @@ -56,6 +56,38 @@ test {
     exclude '**/CassandraKeyValueServiceSweepTaskRunnerIntegrationTest.class'
 }
 
+task testChunk0(type: Test) {
+    include '**/CassandraBackedPueTableTest.class'
+    include '**/CassandraBackgroundSweeperIntegrationTest.class'
+    include '**/CassandraClientPoolIntegrationTest.class'
+    include '**/CassandraConnectionIntegrationTest.class'
+    include '**/CassandraGetCandidateCellsForSweepingTest.class'
+}
+
+task testChunk1(type: Test) {
+    include '**/CassandraKeyValueServiceAsyncInitializationTest.class'
+    include '**/CassandraKeyValueServiceGetRowKeysInRangeTest.class'
+    include '**/CassandraKeyValueServiceIntegrationTest.class'
+    include '**/CassandraKeyValueServiceMultiCasIntegrationTest.class'
+    include '**/CassandraKeyValueServiceSweepTaskRunnerIntegrationTest.class'
+}
+
+task testChunk2(type: Test) {
+    include '**/CassandraKeyValueServiceTableCreationIntegrationTest.class'
+    include '**/CassandraKeyValueServiceTableManipulationIntegrationTest.class'
+    include '**/CassandraKeyValueServiceTransactionIntegrationTest.class'
+    include '**/CassandraKvsAsyncFallbackMechanismsTests.class'
+    include '**/CassandraKvsSerializableTransactionTest.class'
+}
+
+task testChunk3(type: Test) {
+    include '**/CassandraNamespaceDeleterIntegrationTest.class'
+    include '**/CassandraSweepProgressStoreIntegrationTest.class'
+    include '**/CassandraTargetedSweepIntegrationTest.class'
+    include '**/CassandraTimestampBackupIntegrationTest.class'
+}
+
+
 tasks.withType(Test) {
     testLogging {
         // set options for log level LIFECYCLEu}(j (02269e678a440fdd8ea75c888663b00a6e5a4339j %scripts/circle-ci/run-circle-tests.shj modifiedj K
j Kj Kj {https://github.com/palantir/atlasdb/blob/31bc3b87383e1977e436e93cc0d86b33eb522004/scripts%2Fcircle-ci%2Frun-circle-tests.shj  zhttps://github.com/palantir/atlasdb/raw/31bc3b87383e1977e436e93cc0d86b33eb522004/scripts%2Fcircle-ci%2Frun-circle-tests.shj" https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=31bc3b87383e1977e436e93cc0d86b33eb522004j$ X  @@ -32,7 +32,15 @@ CONTAINER_8=(':atlasdb-ete-tests:oracleTest')
 CONTAINER_9=('atlasdb-dbkvs-tests:oracleTest')
 
 CONTAINER_10=('compileJava' 'compileTestJava')
-# 7 _8_ 9 10 11
+
+CONTAINER_11=('atlasdb-cassandra-integration-tests:testChunk0')
+
+CONTAINER_12=('atlasdb-cassandra-integration-tests:testChunk1')
+
+CONTAINER_13=('atlasdb-cassandra-integration-tests:testChunk2')
+
+CONTAINER_14=('atlasdb-cassandra-integration-tests:testChunk3')
+
 # Container 0 - runs tasks not found in the below containers
 CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}")
 
@@ -83,4 +91,8 @@ case $CIRCLE_NODE_INDEX in
     8) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_8[@]} ;;
     9) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_9[@]} ;;
     10) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_10[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
+    11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} ;;
+    12) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_12[@]} ;;
+    13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_13[@]} ;;
+    14) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_14[@]} ;;
 esacueu(310f11e2e2b3b0c28ede4cc8e642d2e34154ab4c}(sha(310f11e2e2b3b0c28ede4cc8e642d2e34154ab4cnode_idEC_kwDOAjP5fdoAKDMxMGYxMWUyZTJiM2IwYzI4ZWRlNGNjOGU2NDJkMmUzNDE1NGFiNGMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-27T16:28:57Zu	committer}(j@ Jeremy KongjB jkong@palantir.comjD 2023-02-27T16:28:57ZumessageWMerge branch 'jkong/workload-service-workflows' into jkong/workload-service-row-storiestree}(j8 (e86ca2124e87ed7147a60d60b0aeb167eacdc6e8url`https://api.github.com/repos/palantir/atlasdb/git/trees/e86ca2124e87ed7147a60d60b0aeb167eacdc6e8ujP bhttps://api.github.com/repos/palantir/atlasdb/git/commits/310f11e2e2b3b0c28ede4cc8e642d2e34154ab4c
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmP82ksACgkQTLdFKain
zjyCwgf9GDrAOuytccUfFSeDs+eS5ktvE8scSZhMEXK5EJ/xgfbuql39sThUTVIv
i7IcwGIvnDqFAJGqlyswAhe/KfGC+Baa+qs/xF2zDWTlgKEWUcj96gZft94Ky4sD
bsWHu0nme2NU1q7MmOeJ4e9lYZ7x7mdCcTiNPLvgVlecaxS/aWs1ZueBGHhP9BtN
12xyuR0mMsWHTuOgC3zHOKeVmEnlkyAmR7i/0+lrxPTB8LMkK1zUVlowecr4yzNf
dFPj1R+itP0x5GhJUY+6OouUgDiSNSAV97k02UNWFG7RLf6zEOcvaP5c2m3dwtUi
ZdUSaD/Ni6wvF55KV5qynCOeX3Rdtw==
=xMoU
-----END PGP SIGNATURE-----payloadX\  tree e86ca2124e87ed7147a60d60b0aeb167eacdc6e8
parent 7aa040e3b4ebf5746edf2ea0eafe52442978927e
parent 84f6111b8bb65226027d3e147bda70c1c0128650
author Jeremy Kong <jkong@palantir.com> 1677515337 +0000
committer Jeremy Kong <jkong@palantir.com> 1677515337 +0000

Merge branch 'jkong/workload-service-workflows' into jkong/workload-service-row-stories
uujP ^https://api.github.com/repos/palantir/atlasdb/commits/310f11e2e2b3b0c28ede4cc8e642d2e34154ab4chtml_urlShttps://github.com/palantir/atlasdb/commit/310f11e2e2b3b0c28ede4cc8e642d2e34154ab4ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/310f11e2e2b3b0c28ede4cc8e642d2e34154ab4c/commentsj> }(login
jeremyk-91idJZ j: MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jP 'https://api.github.com/users/jeremyk-91j^ https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujF }(jc 
jeremyk-91je JZ j: MDQ6VXNlcjU5NTU1MTA=jg 3https://avatars.githubusercontent.com/u/5955510?v=4ji h5jP 'https://api.github.com/users/jeremyk-91j^ https://github.com/jeremyk-91jl 1https://api.github.com/users/jeremyk-91/followersjn >https://api.github.com/users/jeremyk-91/following{/other_user}jp 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jr >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jt 5https://api.github.com/users/jeremyk-91/subscriptionsjv ,https://api.github.com/users/jeremyk-91/orgsjx -https://api.github.com/users/jeremyk-91/reposjz 8https://api.github.com/users/jeremyk-91/events{/privacy}j| 7https://api.github.com/users/jeremyk-91/received_eventsj~ Userj uparents](}(j8 (7aa040e3b4ebf5746edf2ea0eafe52442978927ejP ^https://api.github.com/repos/palantir/atlasdb/commits/7aa040e3b4ebf5746edf2ea0eafe52442978927ej^ Shttps://github.com/palantir/atlasdb/commit/7aa040e3b4ebf5746edf2ea0eafe52442978927eu}(j8 (84f6111b8bb65226027d3e147bda70c1c0128650jP ^https://api.github.com/repos/palantir/atlasdb/commits/84f6111b8bb65226027d3e147bda70c1c0128650j^ Shttps://github.com/palantir/atlasdb/commit/84f6111b8bb65226027d3e147bda70c1c0128650uestats}(totalK	additionsK	deletionsK
ufiles](}(j8 (65d3983ff664082fe5b4995c46765f9b36f47deefilename^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/Workflow.javastatusmodifiedj Kj KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/310f11e2e2b3b0c28ede4cc8e642d2e34154ab4c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.javaraw_urlhttps://github.com/palantir/atlasdb/raw/310f11e2e2b3b0c28ede4cc8e642d2e34154ab4c/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.java?ref=310f11e2e2b3b0c28ede4cc8e642d2e34154ab4cpatchXF  @@ -16,15 +16,12 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
-import java.util.List;
-
 public interface Workflow {
     /**
-     * Runs desired workflow until completion. Returns a list of {@link WitnessedTransaction}, that corresponds to
-     * transactions that were known to be completed.
+     * Runs desired workflow until completion. Returns {@link WorkflowHistory}, that corresponds to transactions that
+     * were known to be completed.
      * This list is sorted by ascending "timeline timestamp", which is taken to be the commit timestamp in the case
      * of read-write transactions, and the start timestamp in the case of read-only transactions.
      */
-    List<WitnessedTransaction> run();
+    WorkflowHistory run();
 }u}(j8 (fc8e0c564b1cd37e767ca93ef66983604fad5e84j aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/310f11e2e2b3b0c28ede4cc8e642d2e34154ab4c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj https://github.com/palantir/atlasdb/raw/310f11e2e2b3b0c28ede4cc8e642d2e34154ab4c/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=310f11e2e2b3b0c28ede4cc8e642d2e34154ab4cj X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
@@ -30,27 +31,34 @@ public final class DefaultWorkflow implements Workflow {
     private final ConcurrentTransactionRunner concurrentTransactionRunner;
     private final KeyedTransactionTask transactionTask;
     private final WorkflowConfiguration workflowConfiguration;
+    private final ReadOnlyTransactionStore readOnlyTransactionStore;
 
     private DefaultWorkflow(
             ConcurrentTransactionRunner concurrentTransactionRunner,
             KeyedTransactionTask transactionTask,
-            WorkflowConfiguration workflowConfiguration) {
+            WorkflowConfiguration workflowConfiguration,
+            ReadOnlyTransactionStore readOnlyTransactionStore) {
         this.concurrentTransactionRunner = concurrentTransactionRunner;
         this.transactionTask = transactionTask;
         this.workflowConfiguration = workflowConfiguration;
+        this.readOnlyTransactionStore = readOnlyTransactionStore;
     }
 
     public static Workflow create(
             TransactionStore store, KeyedTransactionTask transactionTask, WorkflowConfiguration configuration) {
         return new DefaultWorkflow(
                 new ConcurrentTransactionRunner(store, configuration.executionExecutor()),
                 transactionTask,
-                configuration);
+                configuration,
+                new ReadOnlyTransactionStore(store));
     }
 
     @Override
-    public List<WitnessedTransaction> run() {
-        return sortByEffectiveTimestamp(runTransactionTask());
+    public WorkflowHistory run() {
+        return ImmutableWorkflowHistory.builder()
+                .history(sortByEffectiveTimestamp(runTransactionTask()))
+                .transactionStore(readOnlyTransactionStore)
+                .build();
     }
 
     private List<WitnessedTransaction> runTransactionTask() {ueu(414fe2f87e5d1e91d8a3dcff6f8d18a3e55e95a6}(sha(414fe2f87e5d1e91d8a3dcff6f8d18a3e55e95a6node_idEC_kwDOAjP5fdoAKDQxNGZlMmY4N2U1ZDFlOTFkOGEzZGNmZjZmOGQxOGEzZTU1ZTk1YTYcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-03-31T12:45:32Zu	committer}(jÉ David Schlosnaglejŉ davids@palantir.comjǉ 2023-03-31T12:45:32ZumessageUpgrade dependenciestree}(j (731f9da1c96ee36f5ca4e9ee4715100375cd1c55url`https://api.github.com/repos/palantir/atlasdb/git/trees/731f9da1c96ee36f5ca4e9ee4715100375cd1c55ujӉ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/414fe2f87e5d1e91d8a3dcff6f8d18a3e55e95a6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmQm1ewACgkQR9hsJ74Q
0l8IsggAto5P+99QefRBQnd0xfYrKiecxkPn/TXa6+FS0mKPYr0F+77HrSAafVX8
E5STpSm8xhITFnIwRkis3/1CwtgcrZfh954l/KVDUvT9cNk5CuKqZIUQa80tPavv
KfEPItOfYe3LroMYeSjSUB2SnWEslFOYBDiZcZU08PDpWEqEeIikOGa+1r/Qv59o
FzJP1p/oseqAxxtwJBzL473sRZKNBlSyPE54KcSVYpVjeoGpcTn7RRtOTTFz6pYA
UU7hPfhpSin7x0OuElClag+BMzWUi5iBfYYOGpzu7jrNRR0qXDYvpx6KPQKQYd/t
xQ2msLc/8v4WkbrRAc5+Jics9xWBOg==
=0HhM
-----END PGP SIGNATURE-----payloadtree 731f9da1c96ee36f5ca4e9ee4715100375cd1c55
parent 7cc5501bd242badcf433815b00b31d3574efa99c
author David Schlosnagle <davids@palantir.com> 1680266732 -0400
committer David Schlosnagle <davids@palantir.com> 1680266732 -0400

Upgrade dependencies
uujӉ ^https://api.github.com/repos/palantir/atlasdb/commits/414fe2f87e5d1e91d8a3dcff6f8d18a3e55e95a6html_urlShttps://github.com/palantir/atlasdb/commit/414fe2f87e5d1e91d8a3dcff6f8d18a3e55e95a6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/414fe2f87e5d1e91d8a3dcff6f8d18a3e55e95a6/commentsj }(loginschlosnaidMBj MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jӉ %https://api.github.com/users/schlosnaj https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujɉ }(j schlosnaj MBj MDQ6VXNlcjU0NTk0j 1https://avatars.githubusercontent.com/u/54594?v=4j h5jӉ %https://api.github.com/users/schlosnaj https://github.com/schlosnaj /https://api.github.com/users/schlosna/followersj <https://api.github.com/users/schlosna/following{/other_user}j 5https://api.github.com/users/schlosna/gists{/gist_id}j <https://api.github.com/users/schlosna/starred{/owner}{/repo}j 3https://api.github.com/users/schlosna/subscriptionsj *https://api.github.com/users/schlosna/orgsj +https://api.github.com/users/schlosna/reposj 6https://api.github.com/users/schlosna/events{/privacy}j 5https://api.github.com/users/schlosna/received_eventsj Userj uparents]}(j (7cc5501bd242badcf433815b00b31d3574efa99cjӉ ^https://api.github.com/repos/palantir/atlasdb/commits/7cc5501bd242badcf433815b00b31d3574efa99cj Shttps://github.com/palantir/atlasdb/commit/7cc5501bd242badcf433815b00b31d3574efa99cuastats}(totalK	additionsKJ	deletionsKJufiles](}(j (11833f62e38b3c1c99381053a372aced0c6f971bfilename
versions.lockstatusmodifiedj KAj K@changesKblob_url_https://github.com/palantir/atlasdb/blob/414fe2f87e5d1e91d8a3dcff6f8d18a3e55e95a6/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/414fe2f87e5d1e91d8a3dcff6f8d18a3e55e95a6/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=414fe2f87e5d1e91d8a3dcff6f8d18a3e55e95a6patchX<  @@ -8,9 +8,9 @@ com.boundary:high-scale-lib:1.0.6 (2 constraints: 9d14d4a0)
 com.clearspring.analytics:stream:2.5.2 (1 constraints: 970f7788)
 com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
-com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c28159b8)
-com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bab50372)
-com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 01ba3a29)
+com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c38132bb)
+com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bbb5dd72)
+com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 03bafb2e)
 com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e133df00)
 com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7e1c9da4)
 com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2 (4 constraints: 2244332b)
@@ -25,7 +25,7 @@ com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9
 com.fasterxml.jackson.module:jackson-module-blackbird:2.14.2 (1 constraints: b40e625e)
 com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.2 (2 constraints: db2e8469)
 com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 17cea3fd)
+com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 24cec010)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -67,28 +67,28 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:6.68.0 (5 constraints: ab549471)
-com.palantir.conjure.java:conjure-undertow-annotations:6.68.0 (1 constraints: 44056d3b)
-com.palantir.conjure.java:conjure-undertow-lib:6.68.0 (2 constraints: 8b1c75b0)
-com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 41692d74)
+com.palantir.conjure.java:conjure-lib:6.77.0 (5 constraints: ad546073)
+com.palantir.conjure.java:conjure-undertow-annotations:6.77.0 (1 constraints: 4605743b)
+com.palantir.conjure.java:conjure-undertow-lib:6.77.0 (2 constraints: 8d1cfdb0)
+com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 3d696e70)
 com.palantir.conjure.java.api:service-config:2.34.0 (5 constraints: 724d79ca)
 com.palantir.conjure.java.api:ssl-config:2.34.0 (3 constraints: e22a0da5)
-com.palantir.conjure.java.runtime:client-config:7.40.0 (6 constraints: bc6b702d)
+com.palantir.conjure.java.runtime:client-config:7.40.0 (6 constraints: a46bdb28)
 com.palantir.conjure.java.runtime:conjure-java-annotations:7.40.0 (1 constraints: c1187e9e)
 com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.40.0 (2 constraints: c521007b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.40.0 (6 constraints: 386e9f88)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.40.0 (6 constraints: 306e1085)
 com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.40.0 (1 constraints: 4505703b)
 com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.40.0 (1 constraints: 4505703b)
 com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:keystores:7.40.0 (3 constraints: 1e2a555f)
+com.palantir.conjure.java.runtime:keystores:7.40.0 (3 constraints: 162a3e5f)
 com.palantir.conjure.java.runtime:refresh-utils:7.40.0 (2 constraints: 051e6045)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.74.0 (2 constraints: 7c29b801)
-com.palantir.dialogue:dialogue-blocking-channels:3.74.0 (2 constraints: db2399b3)
-com.palantir.dialogue:dialogue-clients:3.74.0 (1 constraints: 3d05503b)
-com.palantir.dialogue:dialogue-core:3.74.0 (3 constraints: 7d3d43e1)
-com.palantir.dialogue:dialogue-futures:3.74.0 (3 constraints: d13392be)
-com.palantir.dialogue:dialogue-serde:3.74.0 (3 constraints: b82e92a1)
-com.palantir.dialogue:dialogue-target:3.74.0 (7 constraints: 8976a556)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.77.0 (2 constraints: 7f29c101)
+com.palantir.dialogue:dialogue-blocking-channels:3.77.0 (2 constraints: e12335b4)
+com.palantir.dialogue:dialogue-clients:3.77.0 (1 constraints: 4305623b)
+com.palantir.dialogue:dialogue-core:3.77.0 (3 constraints: 833de5e1)
+com.palantir.dialogue:dialogue-futures:3.77.0 (3 constraints: da3348c0)
+com.palantir.dialogue:dialogue-serde:3.77.0 (3 constraints: c12e6ba4)
+com.palantir.dialogue:dialogue-target:3.77.0 (7 constraints: 9e760764)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -105,17 +105,17 @@ com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: f7178aeb)
 com.palantir.safe-logging:safe-logging:3.2.0 (28 constraints: 0cd34fc4)
 com.palantir.safethreadlocalrandom:safe-thread-local-random:0.1.0 (3 constraints: 933225f9)
 com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
-com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 455c618f)
-com.palantir.tracing:tracing:6.17.0 (8 constraints: f17d5057)
-com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 134502f4)
+com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 485c7290)
+com.palantir.tracing:tracing:6.17.0 (8 constraints: f97d045e)
+com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 1745b4f5)
 com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 441994bb)
 com.palantir.tritium:tritium-api:0.64.0 (6 constraints: 5052c7ce)
 com.palantir.tritium:tritium-caffeine:0.64.0 (1 constraints: 3c05433b)
 com.palantir.tritium:tritium-core:0.64.0 (5 constraints: 5d43281d)
 com.palantir.tritium:tritium-lib:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: e96b2dd3)
+com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f16b49d8)
 com.palantir.tritium:tritium-proxy:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-registry:0.64.0 (12 constraints: ecd2692c)
+com.palantir.tritium:tritium-registry:0.64.0 (12 constraints: f6d27f35)
 com.palantir.tritium:tritium-slf4j:0.64.0 (2 constraints: bd138370)
 com.palantir.tritium:tritium-time:0.64.0 (1 constraints: 820e8359)
 com.palantir.tritium:tritium-tracing:0.64.0 (1 constraints: 820e8359)
@@ -155,51 +155,52 @@ io.dropwizard.metrics:metrics-jvm:4.2.12 (3 constraints: 1b2ec84e)
 io.dropwizard.metrics:metrics-logback:4.2.12 (1 constraints: b10e925e)
 io.dropwizard.metrics:metrics-servlets:4.2.12 (1 constraints: 730daf2c)
 io.leangen.geantyref:geantyref:1.3.13 (1 constraints: bb08bd94)
-io.netty:netty-all:4.1.85.Final (1 constraints: e21188fd)
-io.netty:netty-buffer:4.1.85.Final (14 constraints: 57d94af6)
-io.netty:netty-codec:4.1.85.Final (7 constraints: 5c5e624a)
-io.netty:netty-codec-dns:4.1.85.Final (2 constraints: aa199904)
-io.netty:netty-codec-haproxy:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-http:4.1.85.Final (2 constraints: 131acd1f)
-io.netty:netty-codec-http2:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-memcache:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-mqtt:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-redis:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-smtp:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-socks:4.1.85.Final (2 constraints: 131acd1f)
-io.netty:netty-codec-stomp:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-xml:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-common:4.1.85.Final (17 constraints: e3069ffc)
-io.netty:netty-handler:4.1.85.Final (4 constraints: 673c7bac)
-io.netty:netty-handler-proxy:4.1.85.Final (2 constraints: 5b12ca2a)
-io.netty:netty-resolver:4.1.85.Final (4 constraints: 0134e5fa)
-io.netty:netty-resolver-dns:4.1.85.Final (2 constraints: 051f31b1)
-io.netty:netty-resolver-dns-classes-macos:4.1.85.Final (2 constraints: 9e1ec28f)
-io.netty:netty-resolver-dns-native-macos:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-transport:4.1.85.Final (14 constraints: ffd205e6)
-io.netty:netty-transport-classes-epoll:4.1.85.Final (2 constraints: b01d1135)
-io.netty:netty-transport-classes-kqueue:4.1.85.Final (2 constraints: 241eb356)
-io.netty:netty-transport-native-epoll:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-transport-native-kqueue:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-transport-native-unix-common:4.1.85.Final (7 constraints: 1f78440c)
-io.netty:netty-transport-rxtx:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-transport-sctp:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-transport-udt:4.1.85.Final (1 constraints: 000b22cf)
+io.netty:netty-all:4.1.90.Final (1 constraints: e21188fd)
+io.netty:netty-buffer:4.1.90.Final (14 constraints: 1fd940ae)
+io.netty:netty-codec:4.1.90.Final (7 constraints: 405eed3b)
+io.netty:netty-codec-dns:4.1.90.Final (2 constraints: a219b703)
+io.netty:netty-codec-haproxy:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-codec-http:4.1.90.Final (2 constraints: 0b1ae71e)
+io.netty:netty-codec-http2:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-codec-memcache:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-codec-mqtt:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-codec-redis:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-codec-smtp:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-codec-socks:4.1.90.Final (2 constraints: 0b1ae71e)
+io.netty:netty-codec-stomp:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-codec-xml:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-common:4.1.90.Final (17 constraints: 9f060892)
+io.netty:netty-handler:4.1.90.Final (4 constraints: 5b3c2eaa)
+io.netty:netty-handler-proxy:4.1.90.Final (2 constraints: 53120c2a)
+io.netty:netty-handler-ssl-ocsp:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-resolver:4.1.90.Final (4 constraints: f133a9f6)
+io.netty:netty-resolver-dns:4.1.90.Final (2 constraints: fd1e17b0)
+io.netty:netty-resolver-dns-classes-macos:4.1.90.Final (2 constraints: 961eac8e)
+io.netty:netty-resolver-dns-native-macos:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-transport:4.1.90.Final (14 constraints: c7d2039e)
+io.netty:netty-transport-classes-epoll:4.1.90.Final (2 constraints: a81d0734)
+io.netty:netty-transport-classes-kqueue:4.1.90.Final (2 constraints: 1c1ea555)
+io.netty:netty-transport-native-epoll:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-transport-native-kqueue:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf9)
+io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
 io.undertow:undertow-core:2.2.22.Final (2 constraints: 341d4606)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
 jakarta.activation:jakarta.activation-api:1.2.2 (3 constraints: 4e3741b6)
-jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 29799834)
+jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 26793e31)
 jakarta.inject:jakarta.inject-api:1.0.5 (13 constraints: decbc9f9)
 jakarta.servlet:jakarta.servlet-api:4.0.4 (10 constraints: 7b9def70)
 jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
-jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (19 constraints: 0348c6c3)
+jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (18 constraints: 5a38d98d)
 jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
-joda-time:joda-time:2.12.1 (6 constraints: 8059c3f0)
+joda-time:joda-time:2.12.5 (6 constraints: 845987f4)
 junit:junit:4.13.2 (8 constraints: 5a9c5baf)
-net.bytebuddy:byte-buddy:1.14.3 (3 constraints: 3b259091)
+net.bytebuddy:byte-buddy:1.14.3 (3 constraints: 3d25d791)
 net.bytebuddy:byte-buddy-agent:1.14.1 (1 constraints: 410b3fde)
 net.java.dev.jna:jna:4.1.0 (2 constraints: 6e1bbbad)
 net.jpountz.lz4:lz4:1.3.0 (2 constraints: 971453a0)
@@ -215,12 +216,12 @@ org.apache.commons:commons-lang3:3.12.0 (8 constraints: 5873a6cf)
 org.apache.commons:commons-math3:3.2 (2 constraints: 90196ff8)
 org.apache.commons:commons-pool2:2.11.1 (1 constraints: 3705333b)
 org.apache.commons:commons-text:1.9 (1 constraints: b5102f9b)
-org.apache.httpcomponents.client5:httpclient5:5.2.1 (2 constraints: 7618a7a4)
-org.apache.httpcomponents.core5:httpcore5:5.2 (3 constraints: 40388deb)
+org.apache.httpcomponents.client5:httpclient5:5.2.1 (2 constraints: d518b1c3)
+org.apache.httpcomponents.core5:httpcore5:5.2.1 (3 constraints: 9f383c39)
 org.apache.httpcomponents.core5:httpcore5-h2:5.2 (1 constraints: dd12c315)
 org.apache.thrift:libthrift:0.17.0 (4 constraints: 00372854)
-org.assertj:assertj-core:3.23.1 (4 constraints: 9d36e469)
-org.assertj:assertj-guava:3.4.0 (1 constraints: 09050636)
+org.assertj:assertj-core:3.24.2 (4 constraints: a136076b)
+org.assertj:assertj-guava:3.24.2 (1 constraints: 3d05473b)
 org.awaitility:awaitility:4.2.0 (2 constraints: c71a893b)
 org.caffinitas.ohc:ohc-core:0.3.4 (1 constraints: 950f6988)
 org.checkerframework:checker-compat-qual:2.5.5 (2 constraints: 1f1d1717)
@@ -304,13 +305,13 @@ org.ow2.asm:asm-tree:5.0.3 (4 constraints: d8272223)
 org.ow2.asm:asm-util:5.0.3 (1 constraints: ee09d4b2)
 org.postgresql:postgresql:42.4.1 (1 constraints: 3d05503b)
 org.reflections:reflections:0.10.2 (1 constraints: 3505253b)
-org.rocksdb:rocksdbjni:7.7.3 (1 constraints: 13052636)
+org.rocksdb:rocksdbjni:7.9.2 (1 constraints: 14052b36)
 org.slf4j:jcl-over-slf4j:1.7.36 (3 constraints: 492febed)
 org.slf4j:jul-to-slf4j:1.7.36 (1 constraints: b90e9c5e)
 org.slf4j:log4j-over-slf4j:1.7.36 (3 constraints: 492febed)
 org.slf4j:slf4j-api:1.7.36 (44 constraints: 8180995b)
 org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
-org.wildfly.common:wildfly-common:1.6.0.Final (3 constraints: 94236ea3)
+org.wildfly.common:wildfly-common:1.6.0.Final (4 constraints: 3f390b3d)
 org.xerial:sqlite-jdbc:3.36.0 (1 constraints: 3e054f3b)
 org.xerial.snappy:snappy-java:1.1.8 (2 constraints: 011529cb)
 org.yaml:snakeyaml:1.33 (5 constraints: 0a4c5570)
@@ -351,7 +352,7 @@ org.codehaus.groovy:groovy-sql:2.5.14 (1 constraints: b00d2137)
 org.codehaus.groovy:groovy-test:2.5.14 (2 constraints: ed12fb43)
 org.codehaus.groovy:groovy-test-junit5:2.5.14 (1 constraints: b00d2137)
 org.codehaus.groovy:groovy-testng:2.5.14 (1 constraints: b00d2137)
-org.freemarker:freemarker:2.3.31 (1 constraints: 3b053c3b)
+org.freemarker:freemarker:2.3.32 (1 constraints: 3c053d3b)
 org.glassfish.grizzly:connection-pool:2.4.4 (1 constraints: 1418374b)
 org.glassfish.grizzly:grizzly-framework:2.4.4 (3 constraints: bc31e6d7)
 org.glassfish.grizzly:grizzly-http:2.4.4 (1 constraints: e11123e3)u      }(j (c54be3d4789cd787b90c761ba8a4b6cc2da9471dj# versions.propsj% modifiedj K	j K
j' Kj( `https://github.com/palantir/atlasdb/blob/414fe2f87e5d1e91d8a3dcff6f8d18a3e55e95a6/versions.propsj* _https://github.com/palantir/atlasdb/raw/414fe2f87e5d1e91d8a3dcff6f8d18a3e55e95a6/versions.propsj, rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=414fe2f87e5d1e91d8a3dcff6f8d18a3e55e95a6j. X		  @@ -2,7 +2,7 @@ com.boundary:high-scale-lib = 1.0.6
 com.ea.agentloader:ea-agent-loader = 1.0.3
 com.fasterxml.jackson.*:* = 2.14.2
 com.fasterxml.jackson.core:jackson-databind = 2.14.2
-com.github.ben-manes.caffeine:caffeine = 3.1.1
+com.github.ben-manes.caffeine:caffeine = 3.1.5
 com.github.peterwippermann.junit4:parameterized-suite = 1.1.0
 com.github.rholder:guava-retrying = 2.0.0
 com.github.stefanbirkner:system-rules = 1.19.0
@@ -25,9 +25,9 @@ com.palantir.common:streams = 2.1.0
 com.palantir.config.crypto:* = 5.1.0
 com.palantir.conjure.java.api:* = 2.29.0
 com.palantir.conjure.java.runtime:* = 7.39.0
-com.palantir.conjure.java:* = 6.66.0
+com.palantir.conjure.java:* = 6.77.0
 com.palantir.conjure:conjure = 4.35.0
-com.palantir.dialogue:* = 3.71.0
+com.palantir.dialogue:* = 3.77.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
 com.palantir.goethe:* = 0.9.0
@@ -45,26 +45,25 @@ commons-dbutils:* = 1.7
 commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
-io.netty:* = 4.1.85.Final
+io.netty:* = 4.1.90.Final
 io.undertow:* = 2.2.22.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2
-joda-time:joda-time = 2.12.1
+joda-time:joda-time = 2.12.5
 junit:junit = 4.13.2
 net.jcip:jcip-annotations = 1.0
 net.jpountz.lz4:lz4 = 1.3.0
 one.util:streamex = 0.8.1
 org.apache.commons:commons-lang3 = 3.12.0
 org.apache.commons:commons-pool2 = 2.11.1
-org.apache.httpcomponents.client5:httpclient5 = 5.2
-org.assertj:assertj-* = 3.23.1
-org.assertj:assertj-guava = 3.4.0
+org.apache.httpcomponents.client5:httpclient5 = 5.2.1
+org.assertj:* = 3.24.2
 org.awaitility:awaitility = 4.2.0
 org.clojure:clojure = 1.8.0
 org.derive4j:* = 1.1.1
 org.eclipse.collections:* = 11.1.0
-org.freemarker:freemarker = 2.3.31
+org.freemarker:freemarker = 2.3.32
 org.glassfish.jersey.core:jersey-common = 2.34
 org.gmock:* = 0.8.3
 org.immutables:* = 2.8.8
@@ -76,7 +75,7 @@ org.mindrot:jbcrypt = 0.4
 org.mockito:* = 5.2.0
 org.openjdk.jmh:* = 1.36
 org.reflections:reflections = 0.10.2
-org.rocksdb:rocksdbjni = 7.7.3
+org.rocksdb:rocksdbjni = 7.9.2
 org.slf4j:* = 1.7.36
 org.wildfly.common:wildfly-common = 1.6.0.Final
 org.xerial.snappy:snappy-java = 1.1.8ueu(838f4a90b2070855b04736dc82d98e3f70d766d7}(sha(838f4a90b2070855b04736dc82d98e3f70d766d7node_idEC_kwDOAjP5fdoAKDgzOGY0YTkwYjIwNzA4NTViMDQ3MzZkYzgyZDk4ZTNmNzBkNzY2ZDccommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-15T16:17:35Zu	committer}(jB svc-autoreleasejD -pd-foundry-infrastructure-notify@palantir.comjF 2023-05-15T16:17:35Zumessage#Autorelease 0.854.0-rc11

[skip ci]tree}(j: (60f277f9cfd1546abfe0c2c34daaafccc8f328b4url`https://api.github.com/repos/palantir/atlasdb/git/trees/60f277f9cfd1546abfe0c2c34daaafccc8f328b4ujR bhttps://api.github.com/repos/palantir/atlasdb/git/commits/838f4a90b2070855b04736dc82d98e3f70d766d7
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRiWyAACgkQhbrR8ip7mDDFXgD9FG+++8s+HQzgFl2stwHm8hqe
IuxM+SILDmp3TNa5dDoBANauHJGGOB+V73X/MI/qxoX1TgGPPhNNqvy8uhejT3bN
=Gmkr
-----END PGP SIGNATURE-----
payloadX)  tree 60f277f9cfd1546abfe0c2c34daaafccc8f328b4
parent 313d10b5f9661ee302e2544ab5efce860de92161
author aalouane <30903736+ergo14@users.noreply.github.com> 1684167455 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684167455 +0000

Autorelease 0.854.0-rc11

[skip ci]uujR ^https://api.github.com/repos/palantir/atlasdb/commits/838f4a90b2070855b04736dc82d98e3f70d766d7html_urlShttps://github.com/palantir/atlasdb/commit/838f4a90b2070855b04736dc82d98e3f70d766d7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/838f4a90b2070855b04736dc82d98e3f70d766d7/commentsj@ }(loginergo14idJj< MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jR #https://api.github.com/users/ergo14j` https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujH }(je svc-autoreleasejg J(j< MDQ6VXNlcjUxNzE4MzQ2ji 4https://avatars.githubusercontent.com/u/51718346?v=4jk h5jR ,https://api.github.com/users/svc-autoreleasej` "https://github.com/svc-autoreleasejn 6https://api.github.com/users/svc-autorelease/followersjp Chttps://api.github.com/users/svc-autorelease/following{/other_user}jr <https://api.github.com/users/svc-autorelease/gists{/gist_id}jt Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jv :https://api.github.com/users/svc-autorelease/subscriptionsjx 1https://api.github.com/users/svc-autorelease/orgsjz 2https://api.github.com/users/svc-autorelease/reposj| =https://api.github.com/users/svc-autorelease/events{/privacy}j~ <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(j: (313d10b5f9661ee302e2544ab5efce860de92161jR ^https://api.github.com/repos/palantir/atlasdb/commits/313d10b5f9661ee302e2544ab5efce860de92161j` Shttps://github.com/palantir/atlasdb/commit/313d10b5f9661ee302e2544ab5efce860de92161uastats}(totalK 	additionsK 	deletionsK ufiles]u(648e33f273782b8cd2e540cc63b5ac40e4abbd08}(sha(648e33f273782b8cd2e540cc63b5ac40e4abbd08node_idEC_kwDOAjP5fdoAKDY0OGUzM2YyNzM3ODJiOGNkMmU1NDBjYzYzYjVhYzQwZTRhYmJkMDgcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-01T13:56:17Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-06-01T13:56:17Zumessage1Merge branch 'develop' into skramer/bank-workflowtree}(j (5f2c6fee008d1a371b8fee86ed8407de81550b45url`https://api.github.com/repos/palantir/atlasdb/git/trees/5f2c6fee008d1a371b8fee86ed8407de81550b45uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/648e33f273782b8cd2e540cc63b5ac40e4abbd08
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR4o4MACgkQTLdFKain
zjzYOwf9FD7fzBXI1ltBQhtrsN5vN6WwYSYfXYATkv6JLzRkw5tuXi1tZfWCMMmO
JJudZE9Dut9iY7SQbn2aH32Cnp3kIcFMi9h9s5sitmNK/tEAVfIdZj3+7ZohpmpJ
WwGKaa+j4dLOaD0JXogrTcjk7eXVbtRjZ0Mu42EQ69yobp3xE9zGWvqoCFVHSJAM
kEUtj05uamf/nUrNQU7CT+5keus65rFL+Z7P9vUa/0os0ZpO4atooKWaHKZtQzZy
99E2D/b6RDR0meSlFxvlbMxVmXV5yVNV4stUShDeXDICTGQl1ln4x5ZuLFo0o4po
ikCr6HYkE8GnNpY6Z65sfPWdUcvpVQ==
=UTf1
-----END PGP SIGNATURE-----payloadX6  tree 5f2c6fee008d1a371b8fee86ed8407de81550b45
parent 1c05b3bc58185fe903ceb284e5e03dd4636d1303
parent f1122a43e8aa35d314c30a514c34ed8c28c32f5a
author Jeremy Kong <jkong@palantir.com> 1685627777 +0100
committer Jeremy Kong <jkong@palantir.com> 1685627777 +0100

Merge branch 'develop' into skramer/bank-workflow
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/648e33f273782b8cd2e540cc63b5ac40e4abbd08html_urlShttps://github.com/palantir/atlasdb/commit/648e33f273782b8cd2e540cc63b5ac40e4abbd08comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/648e33f273782b8cd2e540cc63b5ac40e4abbd08/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91jȊ https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j͊ 
jeremyk-91jϊ JZ j MDQ6VXNlcjU5NTU1MTA=jъ 3https://avatars.githubusercontent.com/u/5955510?v=4jӊ h5j 'https://api.github.com/users/jeremyk-91jȊ https://github.com/jeremyk-91j֊ 1https://api.github.com/users/jeremyk-91/followersj؊ >https://api.github.com/users/jeremyk-91/following{/other_user}jڊ 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j܊ >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jފ 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents](}(j (1c05b3bc58185fe903ceb284e5e03dd4636d1303j ^https://api.github.com/repos/palantir/atlasdb/commits/1c05b3bc58185fe903ceb284e5e03dd4636d1303jȊ Shttps://github.com/palantir/atlasdb/commit/1c05b3bc58185fe903ceb284e5e03dd4636d1303u}(j (f1122a43e8aa35d314c30a514c34ed8c28c32f5aj ^https://api.github.com/repos/palantir/atlasdb/commits/f1122a43e8aa35d314c30a514c34ed8c28c32f5ajȊ Shttps://github.com/palantir/atlasdb/commit/f1122a43e8aa35d314c30a514c34ed8c28c32f5auestats}(totalK	additionsK	deletionsK ufiles]}(j (bc31d27900115be081baf19cc837aafa21d931acfilenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj Kj	 K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/648e33f273782b8cd2e540cc63b5ac40e4abbd08/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/648e33f273782b8cd2e540cc63b5ac40e4abbd08/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=648e33f273782b8cd2e540cc63b5ac40e4abbd08patchX@  @@ -122,10 +122,12 @@ private void scheduleBackgroundJobs(Environment environment) {
     }
 
     private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {
+        // This is a single threaded executor; this is intentional, so that we only run one workflow at a time.
         ExecutorService antithesisWorkflowRunnerExecutorService = environment
                 .lifecycle()
                 .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
                 .build();
+
         MetricsManager metricsManager = MetricsManagers.of(environment.metrics(), taggedMetricRegistry);
         AtlasDbTransactionStoreFactory transactionStoreFactory = AtlasDbTransactionStoreFactory.createFromConfig(
                 configuration.install().atlas(),
@@ -218,10 +220,12 @@ private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
             LifecycleEnvironment lifecycle) {
         ExecutorService readExecutor = lifecycle
                 .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-read")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
                 .maxThreads(workflowConfig.maxThreadCount() / 2)
                 .build();
         ExecutorService writeExecutor = lifecycle
                 .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-write")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
                 .maxThreads(workflowConfig.maxThreadCount() / 2)
                 .build();
         InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
@@ -326,6 +330,7 @@ private static <T> ExecutorService createExecutorService(
             WorkflowConfiguration workflowConfig, LifecycleEnvironment lifecycle, Class<T> workflowFactoryClass) {
         return lifecycle
                 .executorService(workflowFactoryClass.getSimpleName())
+                .minThreads(workflowConfig.maxThreadCount())
                 .maxThreads(workflowConfig.maxThreadCount())
                 .build();
     }uau(8cd6310987f845be632817abb7699473e80a7221}(sha(8cd6310987f845be632817abb7699473e80a7221node_idEC_kwDOAjP5fdoAKDhjZDYzMTA5ODdmODQ1YmU2MzI4MTdhYmI3Njk5NDczZTgwYTcyMjEcommit}(author}(name
Nimai Agarwalemailnagarwal@palantir.comdate2023-04-17T18:41:20Zu	committer}(j% 
Nimai Agarwalj' nagarwal@palantir.comj) 2023-04-17T18:41:20Zumessage Changed namespace to query paramtree}(j (22d73b17a855f59ab220dc9177053568a43c66a4url`https://api.github.com/repos/palantir/atlasdb/git/trees/22d73b17a855f59ab220dc9177053568a43c66a4uj5 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8cd6310987f845be632817abb7699473e80a7221
comment_countK verification}(verifiedreasonno_user	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEJmdCZzv7/iUs98lyHp7dxz7XLrgFAmQ9ktAACgkQHp7dxz7X
Lrhh1Qf9Fp/ZSw+OC2Z/ouigQFJZ6Tns7732o8s0S/OjxSQY4AEz4V5Vdl2kUxVm
MTbxuoShxseY0NzmLxJZiAuqtMg3YF8V5D5F+JYtwCxOM+LKOeNNoR1yix8A/Q7X
iTGqMRk1BYZAjJzOOGqDgb/CnUjVYzAG4c4+2/wONfJ/+onh8c1tPBSOxO5xq5l4
cAp4Ir8NmfQVbWiCfr9TOqfP0t7oSSD4RNW1SE1o7hYuxYQnxcAo9PlKZqSWTsb5
aSeIh8GzL8HEbiWc1pEh19GqHCZDY/93Qz+IjEE8ca7A852dy7KYfR3sUFC+AKbW
rfC618IdBlh3NhcWSN9NpHR3/L07tQ==
=o+aW
-----END PGP SIGNATURE-----payloadtree 22d73b17a855f59ab220dc9177053568a43c66a4
parent 28fbc4099f7ed7bcd6016becd682589a90fb42cf
author Nimai Agarwal <nagarwal@palantir.com> 1681756880 -0400
committer Nimai Agarwal <nagarwal@palantir.com> 1681756880 -0400

Changed namespace to query param
uuj5 ^https://api.github.com/repos/palantir/atlasdb/commits/8cd6310987f845be632817abb7699473e80a7221html_urlShttps://github.com/palantir/atlasdb/commit/8cd6310987f845be632817abb7699473e80a7221comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8cd6310987f845be632817abb7699473e80a7221/commentsj# Nj+ Nparents]}(j (28fbc4099f7ed7bcd6016becd682589a90fb42cfj5 ^https://api.github.com/repos/palantir/atlasdb/commits/28fbc4099f7ed7bcd6016becd682589a90fb42cfjC Shttps://github.com/palantir/atlasdb/commit/28fbc4099f7ed7bcd6016becd682589a90fb42cfuastats}(totalK	additionsK	deletionsKufiles]}(j (215c10ba3743e75143224c5583b75a3e9e6c394afilename9timelock-api/src/main/conjure/timelock-management-api.ymlstatusmodifiedjP KjQ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/8cd6310987f845be632817abb7699473e80a7221/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/8cd6310987f845be632817abb7699473e80a7221/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.yml?ref=8cd6310987f845be632817abb7699473e80a7221patchX  @@ -61,11 +61,12 @@ services:
           server id would imply that the server was bounced.
 
       fastForwardTimestamp:
-        http: POST /fastForward/{namespace}
+        http: POST /fastForward
         args:
           namespace:
             type: string
             safety: safe
+            param-type: query
           currentTimestamp:
             type: safelong
             safety: safeuau(6950c33af9234a0957552c9554e01b49a5567fed}(sha(6950c33af9234a0957552c9554e01b49a5567fednode_idEC_kwDOAjP5fdoAKDY5NTBjMzNhZjkyMzRhMDk1NzU1MmM5NTU0ZTAxYjQ5YTU1NjdmZWQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-08T18:09:46Zu	committer}(jm Jeremy Kongjo jkong@palantir.comjq 2023-06-08T18:09:46Zumessage
get set gotree}(je (b60bd9a1be551b50562dad0a09d42e5ddbf25ca5url`https://api.github.com/repos/palantir/atlasdb/git/trees/b60bd9a1be551b50562dad0a09d42e5ddbf25ca5uj} bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6950c33af9234a0957552c9554e01b49a5567fed
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSCGWoACgkQTLdFKain
zjzTDQgA2rbXuM9bJ5Wi3JlVfVVF7VxYM7PerWG4ItgxaWeMKlvEj0S/9mtwQlnt
dmNbJ02Nj+LjWiactx1uCUS4hI9rg9DqFOcDdu/UXwVnWWdGce7rhdteZYH6pXvA
ZM91EsWmDpGRzAouCXJvuHTK89X2D8NTSaUJK3mukusvGZIz7aRvUhUIgpPR7Bvj
fudyQ7QvPk685s1i9wSQEcuFcQ6cgCswNWGSZqPfWeooJU+a6jNyHCKO+mvcv4DM
fCTK9IIYSCmdpVPqgYr2eFuYmcp+irfym1As3i8HXG6DZ6LU5sRwEIo3GOBvQpGG
ttp3NFptjcZgr750XB/kdK/66oJeUA==
=0//6
-----END PGP SIGNATURE-----payloadtree b60bd9a1be551b50562dad0a09d42e5ddbf25ca5
parent 98ccbd0a612da84b2aa1f0620410b20c736c6655
author Jeremy Kong <jkong@palantir.com> 1686247786 +0100
committer Jeremy Kong <jkong@palantir.com> 1686247786 +0100

get set go
uuj} ^https://api.github.com/repos/palantir/atlasdb/commits/6950c33af9234a0957552c9554e01b49a5567fedhtml_urlShttps://github.com/palantir/atlasdb/commit/6950c33af9234a0957552c9554e01b49a5567fedcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6950c33af9234a0957552c9554e01b49a5567fed/commentsjk }(login
jeremyk-91idJZ jg MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j} 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujs }(j 
jeremyk-91j JZ jg MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j} 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(je (98ccbd0a612da84b2aa1f0620410b20c736c6655j} ^https://api.github.com/repos/palantir/atlasdb/commits/98ccbd0a612da84b2aa1f0620410b20c736c6655j Shttps://github.com/palantir/atlasdb/commit/98ccbd0a612da84b2aa1f0620410b20c736c6655uastats}(totalK	additionsK
	deletionsKufiles]}(je (9a69370a25ef5eb990d9b21df2ab7cf4191e65dcfilenamexatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javastatusmodifiedjǋ K
jȋ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/6950c33af9234a0957552c9554e01b49a5567fed/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6950c33af9234a0957552c9554e01b49a5567fed/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=6950c33af9234a0957552c9554e01b49a5567fedpatchX  @@ -30,6 +30,7 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -44,14 +45,13 @@
 public class SingleBusyCellReadNoTouchWorkflowsTest {
     private static final String TABLE_NAME = "busy.readnotouch.cell";
     private static final int ITERATION_COUNT = 1_000;
-    private static final SingleBusyCellReadNoTouchWorkflowConfiguration CONFIGURATION =
-            ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.builder()
-                    .tableConfiguration(ImmutableTableConfiguration.builder()
-                            .tableName(TABLE_NAME)
-                            .isolationLevel(IsolationLevel.SERIALIZABLE)
-                            .build())
-                    .iterationCount(ITERATION_COUNT)
-                    .build();
+    private static final SingleBusyCellReadNoTouchWorkflowConfiguration CONFIGURATION = ImSin.builder()
+            .tableConfiguration(ImmutableTableConfiguration.builder()
+                    .tableName(TABLE_NAME)
+                    .isolationLevel(IsolationLevel.SERIALIZABLE)
+                    .build())
+            .iterationCount(ITERATION_COUNT)
+            .build();
 
     private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
             TransactionManagers.createInMemory(ImmutableSet.of()),
@@ -83,10 +83,11 @@ public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
                 .map(WitnessedTransaction::actions)
                 .flatMap(Collection::stream)
                 .collect(Collectors.toList());
-        assertThat(witnessedTransactionActions)
-                .allMatch(action -> action.table().equals(TABLE_NAME));
-        assertThat(witnessedTransactionActions)
-                .allMatch(action -> action.cell().equals(SingleBusyCellReadNoTouchWorkflows.BUSY_CELL));
+        assertThat(witnessedTransactionActions).allSatisfy(action -> assertThat(action)
+                .isInstanceOfSatisfying(WitnessedSingleCellTransactionAction.class, singleCellAction -> {
+                    assertThat(singleCellAction.table()).isEqualTo(TABLE_NAME);
+                    assertThat(singleCellAction.cell()).isEqualTo(SingleBusyCellReadNoTouchWorkflows.BUSY_CELL);
+                }));
     }
 
     @Testuau(ce1772ace6f3a1469283ee7661653cf9284f49cf}(sha(ce1772ace6f3a1469283ee7661653cf9284f49cfnode_idEC_kwDOAjP5fdoAKGNlMTc3MmFjZTZmM2ExNDY5MjgzZWU3NjYxNjUzY2Y5Mjg0ZjQ5Y2Ycommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-13T14:25:32Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-06-13T14:25:32ZumessageORename ThreadAwareLockClient to LockClientAndThread

Fix some formatting issuestree}(j܋ (d5e80a27d62faa0f5adb315c16a7140a9d1b35e0url`https://api.github.com/repos/palantir/atlasdb/git/trees/d5e80a27d62faa0f5adb315c16a7140a9d1b35e0uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ce1772ace6f3a1469283ee7661653cf9284f49cf
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSIfFwACgkQmF9s0kaF
Iw0ltQf+IhfmTnN/TkV1JBpTmJYhSNPkQrJxPYxH1yDC3QYf2VBKYlFSe5v0lfQ9
9uZ6NEymSybc578u8UhrxWixJOyf6GveOq3oOgKYa3aAupwzpVzK9Z53Vb/8GNnL
Y4oSQN8bjoOvq7652dP1zzprIb7b9BNH0Oo9HHCSoPLGeBGMyRDq8dM24pGEnPqd
rUb/M4mFdv1HSlBiVsPWd4ioIFarn5JcmXEjRpRW7AJ31x3TwNCCCmQ7tB2d/38e
U0Jlm47eKmqfIsTsrrOGud6XYFh6VOusYISDrOqlYgK1wmEgZj9ZPpovUqP7ayM8
V/y362axQ2TL4cmZ8EQfE8zaSCJuvg==
=t6IT
-----END PGP SIGNATURE-----payloadX"  tree d5e80a27d62faa0f5adb315c16a7140a9d1b35e0
parent 0b83aa8fefbaca1862147c56563a9ea6cd0293e4
author Tom Papke <tpapke@palantir.com> 1686666332 +0100
committer Tom Papke <tpapke@palantir.com> 1686666332 +0100

Rename ThreadAwareLockClient to LockClientAndThread

Fix some formatting issues
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/ce1772ace6f3a1469283ee7661653cf9284f49cfhtml_urlShttps://github.com/palantir/atlasdb/commit/ce1772ace6f3a1469283ee7661653cf9284f49cfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ce1772ace6f3a1469283ee7661653cf9284f49cf/commentsj }(login	ToemmscheidJbojދ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej	 Jbojދ MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j
 h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj" Userj$ uparents]}(j܋ (0b83aa8fefbaca1862147c56563a9ea6cd0293e4j ^https://api.github.com/repos/palantir/atlasdb/commits/0b83aa8fefbaca1862147c56563a9ea6cd0293e4j Shttps://github.com/palantir/atlasdb/commit/0b83aa8fefbaca1862147c56563a9ea6cd0293e4uastats}(totalK9	additionsK	deletionsKufiles](}(j܋ (933965abbab2686a96a62a6ac504123076081ec8filenameIlock-api-objects/src/main/java/com/palantir/lock/LockClientAndThread.javastatusrenamedj> Kj? KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/ce1772ace6f3a1469283ee7661653cf9284f49cf/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ce1772ace6f3a1469283ee7661653cf9284f49cf/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.java?ref=ce1772ace6f3a1469283ee7661653cf9284f49cfpatchX  @@ -19,18 +19,18 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface ThreadAwareLockClient {
-    ThreadAwareLockClient UNKNOWN = ThreadAwareLockClient.of(LockClient.ANONYMOUS, "unknown-thread");
+public interface LockClientAndThread {
+    LockClientAndThread UNKNOWN = LockClientAndThread.of(LockClient.ANONYMOUS, "unknown-thread");
 
     LockClient client();
 
     String thread();
 
-    static ImmutableThreadAwareLockClient.Builder builder() {
-        return ImmutableThreadAwareLockClient.builder();
+    static ImmutableLockClientAndThread.Builder builder() {
+        return ImmutableLockClientAndThread.builder();
     }
 
-    static ThreadAwareLockClient of(LockClient client, String requestingThread) {
+    static LockClientAndThread of(LockClient client, String requestingThread) {
         return builder().client(client).thread(requestingThread).build();
     }
 }previous_filenameKlock-api-objects/src/main/java/com/palantir/lock/ThreadAwareLockClient.javau}(j܋ (c1d577bafa8dddaf4b92f72302213790f77e06aejD Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javajF modifiedj> Kj? KjH KjI https://github.com/palantir/atlasdb/blob/ce1772ace6f3a1469283ee7661653cf9284f49cf/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javajK https://github.com/palantir/atlasdb/raw/ce1772ace6f3a1469283ee7661653cf9284f49cf/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javajM https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=ce1772ace6f3a1469283ee7661653cf9284f49cfjO X
  @@ -22,8 +22,8 @@
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.lock.DebugThreadInfoConfiguration;
 import com.palantir.lock.HeldLocksToken;
+import com.palantir.lock.LockClientAndThread;
 import com.palantir.lock.LockDescriptor;
-import com.palantir.lock.ThreadAwareLockClient;
 import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
 import java.util.Map;
 import java.util.Map.Entry;
@@ -35,12 +35,11 @@
 import java.util.stream.Collectors;
 
 public class LockThreadInfoSnapshotManager {
-
     private DebugThreadInfoConfiguration threadInfoConfiguration;
 
     private Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
 
-    private Map<LockDescriptor, ThreadAwareLockClient> lastKnownThreadInfoSnapshot;
+    private Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot;
 
     private ScheduledExecutorService scheduledExecutorService = PTExecutors.newSingleThreadScheduledExecutor();
 
@@ -66,9 +65,9 @@ private void scheduleSnapshotting() {
     /**
      * Returns a consistent snapshot of tread information restricted to the given lock descriptors
      */
-    public Map<LockDescriptor, ThreadAwareLockClient> getLastKnownThreadInfoSnapshot(
+    public Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot(
             Set<LockDescriptor> lockDescriptors) {
-        final Map<LockDescriptor, ThreadAwareLockClient> currentSnapshot = this.lastKnownThreadInfoSnapshot;
+        final Map<LockDescriptor, LockClientAndThread> currentSnapshot = this.lastKnownThreadInfoSnapshot;
         return lockDescriptors.stream()
                 .filter(currentSnapshot::containsKey)
                 .collect(Collectors.toMap(lock -> lock, currentSnapshot::get));
@@ -78,10 +77,10 @@ public Map<LockDescriptor, ThreadAwareLockClient> getLastKnownThreadInfoSnapshot
     void takeSnapshot() {
         this.lastKnownThreadInfoSnapshot = tokenMapSupplier.get().keySet().stream()
                 .flatMap(token -> {
-                    ThreadAwareLockClient threadAwareLockClient =
+                    LockClientAndThread threadAwareLockClient =
                             token.getClient() == null || Strings.isNullOrEmpty(token.getRequestingThread())
-                                    ? ThreadAwareLockClient.UNKNOWN
-                                    : ThreadAwareLockClient.of(token.getClient(), token.getRequestingThread());
+                                    ? LockClientAndThread.UNKNOWN
+                                    : LockClientAndThread.of(token.getClient(), token.getRequestingThread());
                     return token.getLockDescriptors().stream()
                             .map(lockDescriptor -> Map.entry(lockDescriptor, threadAwareLockClient));
                 })u}(j܋ (d2e07dcb492c9d8867aa484b4366151e0a4dd11djD Rlock-impl/src/test/java/com/palantir/lock/impl/ThreadAwareLockServiceImplTest.javajF modifiedj> Kj? KjH K jI https://github.com/palantir/atlasdb/blob/ce1772ace6f3a1469283ee7661653cf9284f49cf/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.javajK https://github.com/palantir/atlasdb/raw/ce1772ace6f3a1469283ee7661653cf9284f49cf/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.javajM https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.java?ref=ce1772ace6f3a1469283ee7661653cf9284f49cfjO X)  @@ -22,14 +22,14 @@
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
 import com.palantir.lock.LockClient;
+import com.palantir.lock.LockClientAndThread;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.LockResponse;
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.StringLockDescriptor;
-import com.palantir.lock.ThreadAwareLockClient;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
@@ -85,7 +85,7 @@ public void recordsThreadInfo_singleLock() throws InterruptedException {
         snapshotRunner.takeSnapshot();
 
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
-                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1));
+                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1));
     }
 
     @Test
@@ -114,9 +114,9 @@ public void recordsThreadInfo_multipleUniqueLocks_fromDifferentThreads() throws
 
         snapshotRunner.takeSnapshot();
 
-        Map<LockDescriptor, ThreadAwareLockClient> expected = locksPerThread.keySet().stream()
+        Map<LockDescriptor, LockClientAndThread> expected = locksPerThread.keySet().stream()
                 .flatMap(threadName -> locksPerThread.get(threadName).stream()
-                        .map(lock -> Map.entry(lock, ThreadAwareLockClient.of(LockClient.ANONYMOUS, threadName))))
+                        .map(lock -> Map.entry(lock, LockClientAndThread.of(LockClient.ANONYMOUS, threadName))))
                 .collect(Collectors.toMap(Entry::getKey, Entry::getValue));
 
         expected.forEach((lock, clientThread) -> {
@@ -141,8 +141,8 @@ public void recordsThreadInfo_sharedLock_fromDifferentThreads() throws Interrupt
 
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
                 .isIn(
-                        ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1),
-                        ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+                        LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1),
+                        LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
     }
 
     @Test
@@ -160,7 +160,7 @@ public void doesNotRecordDroppedLocksWithLockAllOrNone() throws InterruptedExcep
         snapshotRunner.takeSnapshot();
 
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
-                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1));
+                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1));
     }
 
     @Test
@@ -176,7 +176,7 @@ public void doesNotRecordFailedLocks() throws InterruptedException {
         snapshotRunner.takeSnapshot();
 
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
-                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1));
+                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1));
     }
 
     @Test
@@ -241,20 +241,20 @@ public void recordsCorrectStateAfterMultipleOperations() throws Exception {
 
         // T1 should hold nothing, T2 holds 3 in exclusive mode, T3 holds 1 in exclusive and 2 in shared mode
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
-                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
-                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_3))
-                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
 
         lockService.unlock(response2.getToken());
         snapshotRunner.takeSnapshot();
 
         // Only T3 should hold locks
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
-                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
-                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isNull();
 
         lockService.unlock(response3.get().getToken());
@@ -274,7 +274,7 @@ public void refreshDoesNotChangeSnapshot() throws InterruptedException {
         snapshotRunner.takeSnapshot();
 
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
-                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1));
+                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1));
     }
 
     @Test(timeout = 500L)
@@ -297,7 +297,7 @@ public void backgroundSnapshotRunnerWorks() throws InterruptedException {
         assertThat(backgroundSnapshotRunner
                         .getLastKnownThreadInfoSnapshot(Set.of(TEST_LOCK_1))
                         .get(TEST_LOCK_1))
-                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1));
+                .isEqualTo(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1));
 
         lockServiceWithBackgroundRunner.unlock(response.getToken());
 
@@ -309,7 +309,7 @@ public void backgroundSnapshotRunnerWorks() throws InterruptedException {
                 .isNull();
     }
 
-    private ThreadAwareLockClient getLatestThreadInfoForLock(LockDescriptor lock) {
+    private LockClientAndThread getLatestThreadInfoForLock(LockDescriptor lock) {
         return snapshotRunner.getLastKnownThreadInfoSnapshot(Set.of(lock)).get(lock);
     }
 }ueu(b26121e0160be2ac5ec056f1be18c00ba85b4081}(sha(b26121e0160be2ac5ec056f1be18c00ba85b4081node_idEC_kwDOAjP5fdoAKGIyNjEyMWUwMTYwYmUyYWM1ZWMwNTZmMWJlMThjMDBiYTg1YjQwODEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-20T17:43:31Zu	committer}(jm 
Sam Kramerjo skramer@palantir.comjq 2023-05-03T16:12:29Zumessagetraptree}(je (0ecfce3504563797bf09c4159390fea25153e930url`https://api.github.com/repos/palantir/atlasdb/git/trees/0ecfce3504563797bf09c4159390fea25153e930uj} bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b26121e0160be2ac5ec056f1be18c00ba85b4081
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRSh+8ACgkQmPPOpKR4
XS10Ogf+OhLK8mA0KcCjWT1pSZaXakB+/9vZFWbXXW9IKRmRRoECsQX3FYVVCxdL
BbGbSGPK3ICVp0KbsYZ8QU9A68JpEqIopufBZbdhlg6091tMLRAsiRuC/Ga38vKp
RrUwUm7HqF3ioI66bjHbWcZTvJdSBHr/w5v/bRoQ64emD8wgvbJYmHfl937O8Wj/
cePsszUzY7fwSH7iI9OkigqeVd33ZEkJikc1k1HTZMff+Z1eTmbqV0eB3/zo1tOI
paiwAtvSzMcipkyDNh4bP9RZH0rl70A3/LCBvXyjkLjOAkt0wsyW/uvl312I8J0x
wH4f6HmiPLdi0rTRuahzSqtElEk40A==
=o3IC
-----END PGP SIGNATURE-----payloadtree 0ecfce3504563797bf09c4159390fea25153e930
parent 2857ac281988f23e4cb979112fbb2bfb3ac34cde
author Jeremy Kong <jkong@palantir.com> 1682012611 +0100
committer Sam Kramer <skramer@palantir.com> 1683130349 +0100

trap
uuj} ^https://api.github.com/repos/palantir/atlasdb/commits/b26121e0160be2ac5ec056f1be18c00ba85b4081html_urlShttps://github.com/palantir/atlasdb/commit/b26121e0160be2ac5ec056f1be18c00ba85b4081comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b26121e0160be2ac5ec056f1be18c00ba85b4081/commentsjk }(login
jeremyk-91idJZ jg MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j} 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujs }(j 
Sam-Kramerj J^2_ jg MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j} 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(je (2857ac281988f23e4cb979112fbb2bfb3ac34cdej} ^https://api.github.com/repos/palantir/atlasdb/commits/2857ac281988f23e4cb979112fbb2bfb3ac34cdej Shttps://github.com/palantir/atlasdb/commit/2857ac281988f23e4cb979112fbb2bfb3ac34cdeuastats}(totalK	additionsK	deletionsKufiles](}(je (546f00c5a057265f0aa389ffdfd822f7968ec459filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedjǌ KjȌ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b26121e0160be2ac5ec056f1be18c00ba85b4081/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b26121e0160be2ac5ec056f1be18c00ba85b4081/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=b26121e0160be2ac5ec056f1be18c00ba85b4081patchX  @@ -48,6 +48,7 @@
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.common.util.concurrent.Uninterruptibles;
 import com.google.errorprone.annotations.MustBeClosed;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.AtlasDbMetricNames;
@@ -169,6 +170,7 @@
 import java.util.concurrent.CopyOnWriteArrayList;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.RejectedExecutionException;
+import java.util.concurrent.ThreadLocalRandom;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.atomic.AtomicLong;
 import java.util.concurrent.atomic.AtomicReference;
@@ -2003,13 +2005,6 @@ private void commitWrites(TransactionService transactionService) {
                 // Not timed as this is generally an asynchronous operation.
                 traced("microsForPunch", () -> cleaner.punch(commitTimestamp));
 
-                // Serializable transactions need to check their reads haven't changed, by reading again at
-                // commitTs + 1. This must happen before the lock check for thorough tables, because the lock check
-                // verifies the immutable timestamp hasn't moved forward - thorough sweep might sweep a conflict out
-                // from underneath us.
-                timedAndTraced(
-                        "readWriteConflictCheck", () -> throwIfReadWriteConflictForSerializable(commitTimestamp));
-
                 // Verify that our locks and pre-commit conditions are still valid before we actually commit;
                 // this throwIfPreCommitRequirementsNotMet is required by the transaction protocol for correctness.
                 // We check the pre-commit conditions first since they may operate similarly to read write conflict
@@ -2020,6 +2015,21 @@ private void commitWrites(TransactionService transactionService) {
                 // timed.
                 traced("preCommitLockCheck", () -> throwIfImmutableTsOrCommitLocksExpired(commitLocksToken));
 
+                // Buggify stuff
+                Set<LockToken> tokensToUnlock = new HashSet<>();
+                tokensToUnlock.add(commitLocksToken);
+                immutableTimestampLock.ifPresent(tokensToUnlock::add);
+                Uninterruptibles.sleepUninterruptibly(
+                        Duration.ofMillis(ThreadLocalRandom.current().nextInt(60_000)));
+
+                // This can fail :(
+                // Serializable transactions need to check their reads haven't changed, by reading again at
+                // commitTs + 1. This must happen before the lock check for thorough tables, because the lock check
+                // verifies the immutable timestamp hasn't moved forward - thorough sweep might sweep a conflict out
+                // from underneath us.
+                timedAndTraced(
+                        "readWriteConflictCheck", () -> throwIfReadWriteConflictForSerializable(commitTimestamp));
+
                 // Not timed, because this just calls TransactionService.putUnlessExists, and that is timed.
                 traced(
                         "commitPutCommitTs",u}(je (14a7c7277f49e79755bef32089cfab3d99fde495j͌ latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javajό modifiedjǌ KjȌ Kjь KjҌ https://github.com/palantir/atlasdb/blob/b26121e0160be2ac5ec056f1be18c00ba85b4081/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajԌ https://github.com/palantir/atlasdb/raw/b26121e0160be2ac5ec056f1be18c00ba85b4081/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj֌ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=b26121e0160be2ac5ec056f1be18c00ba85b4081j، XB
  @@ -21,7 +21,6 @@
 import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
 import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
 import com.google.common.annotations.VisibleForTesting;
-import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
@@ -31,6 +30,7 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.workflow.BouncingValueWorkflow;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
 import com.palantir.atlasdb.workload.workflow.Workflow;
@@ -108,9 +108,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                         createSingleRowTwoCellsWorkflowValidator(
                                 transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
                         createRingWorkflowValidator(
-                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()));
-
-        log.info("antithesis: terminate");
+                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()),
+                        createBouncingValueWorkflow(transactionStoreFactory));
 
         workflowsRanLatch.countDown();
 
@@ -159,6 +158,17 @@ private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator
                 .build();
     }
 
+    private WorkflowAndInvariants<Workflow> createBouncingValueWorkflow(
+            AtlasDbTransactionStoreFactory transactionStoreFactory) {
+        return WorkflowAndInvariants.builder()
+                .workflow(BouncingValueWorkflow.createBouncingValue(transactionStoreFactory.create(
+                        Map.of(BouncingValueWorkflow.TEST_TABLE, IsolationLevel.SERIALIZABLE), Set.of())))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        BouncingValueWorkflow.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
     @VisibleForTesting
     CountDownLatch workflowsRanLatch() {
         return workflowsRanLatch;u}(je (e749f9df76faaaed267dc5f8e040b8f5eac95a77j͌ gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/BouncingValueWorkflow.javajό addedjǌ KhjȌ K jь KhjҌ https://github.com/palantir/atlasdb/blob/b26121e0160be2ac5ec056f1be18c00ba85b4081/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FBouncingValueWorkflow.javajԌ https://github.com/palantir/atlasdb/raw/b26121e0160be2ac5ec056f1be18c00ba85b4081/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FBouncingValueWorkflow.javaj֌ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FBouncingValueWorkflow.java?ref=b26121e0160be2ac5ec056f1be18c00ba85b4081j، X  @@ -0,0 +1,104 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.OnlyCommittedWitnessedTransactionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Comparator;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.Executors;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+import one.util.streamex.StreamEx;
+
+public class BouncingValueWorkflow {
+    private static final String TEST_TABLE = "bouncingValue";
+    private static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow createBouncingValue(InteractiveTransactionStore store) {
+        return new Workflow() {
+            @Override
+            public WorkflowHistory run() {
+                ListeningExecutorService readExecutor =
+                        MoreExecutors.listeningDecorator(Executors.newSingleThreadExecutor());
+                ListeningExecutorService writeExecutor =
+                        MoreExecutors.listeningDecorator(Executors.newSingleThreadExecutor());
+                List<ListenableFuture<Optional<WitnessedTransaction>>> reads = IntStream.range(0, 1_000)
+                        .mapToObj(idx -> readExecutor.submit(() -> {
+                            return store.readWrite(txn -> {
+                                Optional<Integer> value = txn.read(TEST_TABLE, BUSY_CELL);
+                                txn.write(TEST_TABLE, BUSY_CELL, value.orElse(-1));
+                            });
+                        }))
+                        .collect(Collectors.toList());
+
+                List<ListenableFuture<Optional<WitnessedTransaction>>> writes = new ArrayList<>();
+                for (int i = 0; i < 500; i++) {
+                    int stableI = i;
+                    writes.add(writeExecutor.submit(
+                            () -> store.readWrite(List.of(WriteTransactionAction.of(TEST_TABLE, BUSY_CELL, stableI)))));
+                    writes.add(writeExecutor.submit(
+                            () -> store.readWrite(List.of(DeleteTransactionAction.of(TEST_TABLE, BUSY_CELL)))));
+                }
+                ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                        Futures.allAsList(Stream.of(reads, writes)
+                                .flatMap(Collection::stream)
+                                .collect(Collectors.toList())),
+                        maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                                .flatMap(Optional::stream)
+                                .collect(Collectors.toList()),
+                        MoreExecutors.directExecutor());
+                ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+                return ImmutableWorkflowHistory.builder()
+                        .addAllHistory(sortAndFilterTransactions(
+                                readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                        .transactionStore(readOnlyTransactionStore)
+                        .build();
+            }
+        };
+    }
+
+    // Naughty
+    static List<FullyWitnessedTransaction> sortAndFilterTransactions(
+            ReadOnlyTransactionStore readOnlyTransactionStore, List<WitnessedTransaction> unorderedTransactions) {
+        OnlyCommittedWitnessedTransactionVisitor visitor =
+                new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
+        return StreamEx.of(unorderedTransactions)
+                .mapPartial(transaction -> transaction.accept(visitor))
+                .sorted(Comparator.comparingLong(BouncingValueWorkflow::effectiveTimestamp))
+                .toList();
+    }
+
+    private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
+        return witnessedTransaction.commitTimestamp().orElseGet(witnessedTransaction::startTimestamp);
+    }
+}ueu(2f93f28efa9110716fa55db64abdf449478b6a4b}(sha(2f93f28efa9110716fa55db64abdf449478b6a4bnode_idEC_kwDOAjP5fdoAKDJmOTNmMjhlZmE5MTEwNzE2ZmE1NWRiNjRhYmRmNDQ5NDc4YjZhNGIcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-03-28T15:41:47Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-03-28T15:41:47ZumessageAutorelease 0.823.0

[skip ci]tree}(j (f1acd52354b4fb25a86d398b8d9b80fb60baa76burl`https://api.github.com/repos/palantir/atlasdb/git/trees/f1acd52354b4fb25a86d398b8d9b80fb60baa76buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2f93f28efa9110716fa55db64abdf449478b6a4b
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQjCsAACgkQhbrR8ip7mDCk3QEAnlux9UfUy4S98r3DSy5Kxk+k
WE0gXxILj6W/G3lyrVUBAIk1NU1U1vmbYs2hDh3ukwHDsM1Adb8gSKK2lRkkKY2J
=L6DW
-----END PGP SIGNATURE-----
payloadX0  tree f1acd52354b4fb25a86d398b8d9b80fb60baa76b
parent 2f7e3f8545731452393b3b7d3438b6155661d2ff
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1680018107 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1680018107 +0000

Autorelease 0.823.0

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/2f93f28efa9110716fa55db64abdf449478b6a4bhtml_urlShttps://github.com/palantir/atlasdb/commit/2f93f28efa9110716fa55db64abdf449478b6a4bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2f93f28efa9110716fa55db64abdf449478b6a4b/commentsj }(loginsvc-autoreleaseidJ(j MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(j MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej  6https://api.github.com/users/svc-autorelease/followersj" Chttps://api.github.com/users/svc-autorelease/following{/other_user}j$ <https://api.github.com/users/svc-autorelease/gists{/gist_id}j& Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j( :https://api.github.com/users/svc-autorelease/subscriptionsj* 1https://api.github.com/users/svc-autorelease/orgsj, 2https://api.github.com/users/svc-autorelease/reposj. =https://api.github.com/users/svc-autorelease/events{/privacy}j0 <https://api.github.com/users/svc-autorelease/received_eventsj2 Userj4 uparents]}(j (2f7e3f8545731452393b3b7d3438b6155661d2ffj ^https://api.github.com/repos/palantir/atlasdb/commits/2f7e3f8545731452393b3b7d3438b6155661d2ffj Shttps://github.com/palantir/atlasdb/commit/2f7e3f8545731452393b3b7d3438b6155661d2ffuastats}(totalK 	additionsK 	deletionsK ufiles]}(j (1982907aadb718672df6cccb587875586f7006c9filename changelog/0.823.0/pr-6485.v2.ymlstatusrenamedjN K jO K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/2f93f28efa9110716fa55db64abdf449478b6a4b/changelog%2F0.823.0%2Fpr-6485.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/2f93f28efa9110716fa55db64abdf449478b6a4b/changelog%2F0.823.0%2Fpr-6485.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.823.0%2Fpr-6485.v2.yml?ref=2f93f28efa9110716fa55db64abdf449478b6a4bprevious_filename$changelog/@unreleased/pr-6485.v2.ymluau(1976368d453bf4281a394580f44648720ed5b705}(sha(1976368d453bf4281a394580f44648720ed5b705node_idEC_kwDOAjP5fdoAKDE5NzYzNjhkNDUzYmY0MjgxYTM5NDU4MGY0NDY0ODcyMGVkNWI3MDUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-01T22:31:16Zu	committer}(jk 
Ahmed Alouanejm aalouane@palantir.comjo 2023-05-01T22:31:16Zumessageno optree}(jc (e7edeafa3716d639736ccf32baa572bab504280furl`https://api.github.com/repos/palantir/atlasdb/git/trees/e7edeafa3716d639736ccf32baa572bab504280fuj{ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1976368d453bf4281a394580f44648720ed5b705
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRQPbQACgkQPlMHVIT1
yhojSAgAsf7hZD39IKp5ZsdAIY6rQ9gjY+okO2IdtA+o/ApDJibZkQR4U8fo9/eW
Mxz9OsVNycolnZzlyt/fzucpH36ith2vMnl9cDsv9cr20C231GhAm7W98a7K98R4
m8FDvFm+KidjxLb0eoZ1x0bo4SDxCCDmFv/FJzmXK3m00LasH4iCUR4EzGuvJrV4
OYi2nUnfPmVoAHVXma1A22sYhNsoYlhriLT9tanje+Kd2tOn3ppk10PAdN9h7Ebm
3zB7MyjDazjAE6b+DsUe1MVlgbzHe53R2iRL/Yw4Rqw3dB9WXQJ4F9gwJckavriQ
rtB6Jh8/8JjSQKvxMvV1kbNGNUp70Q==
=99gO
-----END PGP SIGNATURE-----payloadtree e7edeafa3716d639736ccf32baa572bab504280f
parent 919d571f0de7222781745198478d0286c515df3b
author Ahmed Alouane <aalouane@palantir.com> 1682980276 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682980276 +0100

no op
uuj{ ^https://api.github.com/repos/palantir/atlasdb/commits/1976368d453bf4281a394580f44648720ed5b705html_urlShttps://github.com/palantir/atlasdb/commit/1976368d453bf4281a394580f44648720ed5b705comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1976368d453bf4281a394580f44648720ed5b705/commentsji }(loginergo14idJje MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j{ #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url     (https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujq }(j ergo14j Jje MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j{ #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jc (919d571f0de7222781745198478d0286c515df3bj{ ^https://api.github.com/repos/palantir/atlasdb/commits/919d571f0de7222781745198478d0286c515df3bj Shttps://github.com/palantir/atlasdb/commit/919d571f0de7222781745198478d0286c515df3buastats}(totalK	additionsK	deletionsK ufiles]}(jc (2cdd1e27d35e584a25c8c06f5807b571987531affilenamebuild.gradlestatusmodifiedjō Kjƍ K changesKblob_url^https://github.com/palantir/atlasdb/blob/1976368d453bf4281a394580f44648720ed5b705/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/1976368d453bf4281a394580f44648720ed5b705/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=1976368d453bf4281a394580f44648720ed5b705patch@@ -1,5 +1,6 @@
 import org.gradle.plugins.ide.idea.model.IdeaModel
 
+
 buildscript {
     repositories {
         mavenCentral() { metadataSources { mavenPom(); ignoreGradleMetadataRedirection() } }uau(f13cb31e1b6f7b2a912c669c919b41ff3a721401}(sha(f13cb31e1b6f7b2a912c669c919b41ff3a721401node_idEC_kwDOAjP5fdoAKGYxM2NiMzFlMWI2ZjdiMmE5MTJjNjY5YzkxOWI0MWZmM2E3MjE0MDEcommit}(author}(nameTom Petraccaemail"tpetracca@users.noreply.github.comdate2023-08-09T20:27:03Zu	committer}(j GitHubj noreply@github.comj 2023-08-09T20:27:03Zumessageadd todo linking ghe issuetree}(jڍ (b623362f2fdbc6840a94463b68141829101dadcburl`https://api.github.com/repos/palantir/atlasdb/git/trees/b623362f2fdbc6840a94463b68141829101dadcbuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f13cb31e1b6f7b2a912c669c919b41ff3a721401
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk0/aXCRBK7hj4Ov3rIwAAgc8IAKYU3WFKICguw/ty4EJ6WT6J
6g7lyLj/3Pjrp0EkLz6hY5DeoHJFxficHUsPsZ99cpPkj1RCCxx1TPFoYaKbsm3z
rto+m5934rlCamsZJ27tcUvmpATRQGijVslxrWi/AhniK4i5rweKvlosWSrIrXlO
+Xn9ul19YPkYKiQwIFCZVivRBuDNCL909UFo4APMFmCosNI+kCw6mSzCphqnv9fz
7QyA0u0UJ7siFMqwFt3QOfbnG+p4GcSOZj13kmRcECXcvIEoJKgaUWoVlle8rEG2
rZIBUxXzRLyqExj0F5YERcS4NW4tqccA4rkgYlnCLWPnTtfkIYJVmMaKtm7cU0s=
=F0OW
-----END PGP SIGNATURE-----
payloadtree b623362f2fdbc6840a94463b68141829101dadcb
parent 3776ea8e3f014dffab5915f132a8214380138816
author Tom Petracca <tpetracca@users.noreply.github.com> 1691612823 -0400
committer GitHub <noreply@github.com> 1691612823 -0400

add todo linking ghe issueuuj ^https://api.github.com/repos/palantir/atlasdb/commits/f13cb31e1b6f7b2a912c669c919b41ff3a721401html_urlShttps://github.com/palantir/atlasdb/commit/f13cb31e1b6f7b2a912c669c919b41ff3a721401comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f13cb31e1b6f7b2a912c669c919b41ff3a721401/commentsj }(login	tpetraccaidJ& j܍ MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5j &https://api.github.com/users/tpetraccaj  https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminuj }(j web-flowj J/j܍ MDQ6VXNlcjE5ODY0NDQ3j	 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj  https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj  Userj" uparents]}(jڍ (3776ea8e3f014dffab5915f132a8214380138816j ^https://api.github.com/repos/palantir/atlasdb/commits/3776ea8e3f014dffab5915f132a8214380138816j  Shttps://github.com/palantir/atlasdb/commit/3776ea8e3f014dffab5915f132a8214380138816uastats}(totalK	additionsK	deletionsK ufiles]}(jڍ (c3eb030b1993c993cb918a875427696a63cd6c87filenamectimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchValueIntegrationTest.javastatusmodifiedj< Kj= K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/f13cb31e1b6f7b2a912c669c919b41ff3a721401/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f13cb31e1b6f7b2a912c669c919b41ff3a721401/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.java?ref=f13cb31e1b6f7b2a912c669c919b41ff3a721401patchX  @@ -547,6 +547,7 @@ public void lateAbortingTransactionDoesNotFlushValuesToCentralCache() {
     }
 
     @Ignore
+    // TODO(#6699): make this test less flakey before re-enabling
     @Test
     // The test fails when trying to cache a value that is currently locked.
     // The open question is whether this _should_ fail when there is a locked value being cached on top of, or ifuau(37ac526dcf41a772635987aae9bced6365590007}(sha(37ac526dcf41a772635987aae9bced6365590007node_idEC_kwDOAjP5fdoAKDM3YWM1MjZkY2Y0MWE3NzI2MzU5ODdhYWU5YmNlZDYzNjU1OTAwMDccommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-20T14:18:37Zu	committer}(jY Lucas Meirelesj[ meireles31@msn.comj] 2023-07-20T14:18:37ZumessageAdd cache testtree}(jQ (a48723266832f414f2d70780ed2adfd6d295599durl`https://api.github.com/repos/palantir/atlasdb/git/trees/a48723266832f414f2d70780ed2adfd6d295599duji bhttps://api.github.com/repos/palantir/atlasdb/git/commits/37ac526dcf41a772635987aae9bced6365590007
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS5Qj4ACgkQJd22kJ7J
GiwYbggAuTKXm4+04IA7YmUwahRu6K6soRrWIiR1VrrqS2GAhURi9LX4I8vIaJr9
cwj9JdaFsgfB3gFbqOD04urZMbWCgOWc5FhzsJCuZQILLEilMgb8zPJ2JS3bCPq7
Em9ZbIla+Ee2YOb4eCoD0NogVMkW+JHZ+1UnBex0TqFoGllo8SJR1CgZFdkMv1GI
KOLJ1wojtsnvspd5LUqHIAgtB0/aIqbrvugH+X/bkVfDZPMOfivjxJN9Li5uOffw
4muqGVYi9bwJFRB2B9RLDwiov7qXgfyj0A7woZqpF2a5mrO0ndnCe6tMV/nKI8mZ
9C2YEBFG/wzG829p8emYqEGJ3/wWqw==
=+GPw
-----END PGP SIGNATURE-----payloadtree a48723266832f414f2d70780ed2adfd6d295599d
parent d3afa8d65c2865b7503edb05aa5825832ad86ebe
author Lucas Meireles <meireles31@msn.com> 1689862717 +0100
committer Lucas Meireles <meireles31@msn.com> 1689862717 +0100

Add cache test
uuji ^https://api.github.com/repos/palantir/atlasdb/commits/37ac526dcf41a772635987aae9bced6365590007html_urlShttps://github.com/palantir/atlasdb/commit/37ac526dcf41a772635987aae9bced6365590007comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/37ac526dcf41a772635987aae9bced6365590007/commentsjW }(loginLucasIMEidJg jS MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5ji %https://api.github.com/users/LucasIMEjw https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj_ }(j| LucasIMEj~ Jg jS MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5ji %https://api.github.com/users/LucasIMEjw https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsj Userj uparents]}(jQ (d3afa8d65c2865b7503edb05aa5825832ad86ebeji ^https://api.github.com/repos/palantir/atlasdb/commits/d3afa8d65c2865b7503edb05aa5825832ad86ebejw Shttps://github.com/palantir/atlasdb/commit/d3afa8d65c2865b7503edb05aa5825832ad86ebeuastats}(totalKd	additionsKb	deletionsKufiles](}(jQ (eb84b2b99369a51b5487af6ed0dded0f8a4646defilenameiatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/cache/TransactionScopedCacheImpl.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/37ac526dcf41a772635987aae9bced6365590007/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FTransactionScopedCacheImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/37ac526dcf41a772635987aae9bced6365590007/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FTransactionScopedCacheImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FTransactionScopedCacheImpl.java?ref=37ac526dcf41a772635987aae9bced6365590007patchX9  @@ -46,7 +46,7 @@
 import org.immutables.value.Value;
 
 @ThreadSafe
-final class TransactionScopedCacheImpl implements TransactionScopedCache {
+public final class TransactionScopedCacheImpl implements TransactionScopedCache {
     private final TransactionCacheValueStore valueStore;
     private final CacheMetrics metrics;
     private volatile boolean finalised = false;
@@ -56,7 +56,7 @@ private TransactionScopedCacheImpl(TransactionCacheValueStore valueStore, CacheM
         this.metrics = metrics;
     }
 
-    static TransactionScopedCache create(ValueCacheSnapshot snapshot, CacheMetrics metrics) {
+    public static TransactionScopedCache create(ValueCacheSnapshot snapshot, CacheMetrics metrics) {
         return new TransactionScopedCacheImpl(new TransactionCacheValueStoreImpl(snapshot), metrics);
     }
 u}(jQ (abf69a0a328a809da23348779eec76728e7c76bej !atlasdb-tests-shared/build.gradlej modifiedj Kj K j Kj uhttps://github.com/palantir/atlasdb/blob/37ac526dcf41a772635987aae9bced6365590007/atlasdb-tests-shared%2Fbuild.gradlej thttps://github.com/palantir/atlasdb/raw/37ac526dcf41a772635987aae9bced6365590007/atlasdb-tests-shared%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fbuild.gradle?ref=37ac526dcf41a772635987aae9bced6365590007jĎ X{  @@ -55,6 +55,7 @@ dependencies {
   testImplementation 'com.palantir.tritium:tritium-registry'
   testImplementation 'commons-io:commons-io'
   testImplementation 'io.dropwizard.metrics:metrics-core'
+  testImplementation 'io.vavr:vavr'
   testImplementation 'one.util:streamex'
   testImplementation 'org.apache.commons:commons-lang3'
   testImplementation 'org.slf4j:slf4j-api'u}(jQ (cc04f879131c8d942cc8f38a70ea44610ff5dc6dj eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj modifiedj K_j K j K_j https://github.com/palantir/atlasdb/blob/37ac526dcf41a772635987aae9bced6365590007/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://github.com/palantir/atlasdb/raw/37ac526dcf41a772635987aae9bced6365590007/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=37ac526dcf41a772635987aae9bced6365590007jĎ X  @@ -61,6 +61,7 @@
 import com.palantir.atlasdb.keyvalue.api.AutoDelegate_KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.BatchColumnRangeSelection;
 import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.keyvalue.api.CellReference;
 import com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection;
 import com.palantir.atlasdb.keyvalue.api.ColumnSelection;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
@@ -69,6 +70,13 @@
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.Value;
+import com.palantir.atlasdb.keyvalue.api.cache.CacheEntry;
+import com.palantir.atlasdb.keyvalue.api.cache.CacheMetrics;
+import com.palantir.atlasdb.keyvalue.api.cache.CacheValue;
+import com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCache;
+import com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCacheImpl;
+import com.palantir.atlasdb.keyvalue.api.cache.ValueCacheSnapshotImpl;
+import com.palantir.atlasdb.keyvalue.api.watch.LockWatchManagerInternal;
 import com.palantir.atlasdb.keyvalue.api.watch.NoOpLockWatchManager;
 import com.palantir.atlasdb.keyvalue.impl.ForwardingKeyValueService;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
@@ -125,6 +133,8 @@
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.HashSet;
 import java.math.BigInteger;
 import java.nio.ByteBuffer;
 import java.nio.charset.StandardCharsets;
@@ -329,6 +339,7 @@ public void cleanup() {}
     private static final Cell TEST_CELL = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("column1"));
     private static final Cell TEST_CELL_2 = Cell.create(PtBytes.toBytes("row2"), PtBytes.toBytes("column2"));
     private static final Cell TEST_CELL_3 = Cell.create(PtBytes.toBytes("row3"), PtBytes.toBytes("column3"));
+    private static final Cell TEST_CELL_4 = Cell.create(PtBytes.toBytes("row4"), PtBytes.toBytes("column4"));
 
     private static final byte[] TEST_VALUE = PtBytes.toBytes("value");
 
@@ -1694,6 +1705,55 @@ public void throwsIfReadingMoreThanExpectedNumberOfValues() {
         verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
     }
 
+    @Test
+    public void reduceCachedCellsFromNumberOfExpectedCells() {
+        putCellsInTable(List.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3, TEST_CELL_4), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        TransactionScopedCache txnCache = createCacheWithEntry(TABLE_SWEPT_THOROUGH, TEST_CELL);
+        LockWatchManagerInternal mockLockWatchManager = mock(LockWatchManagerInternal.class);
+        when(mockLockWatchManager.getTransactionScopedCache(anyLong())).thenReturn(txnCache);
+
+        PathTypeTracker pathTypeTracker = PathTypeTrackers.constructSynchronousTracker();
+        SnapshotTransaction spiedSnapshotTransaction =
+                spy(getSnapshotTransactionWith(transactionTs, res, mockLockWatchManager, pathTypeTracker));
+        Transaction transaction = transactionWrapper.apply(spiedSnapshotTransaction, pathTypeTracker);
+
+        // Fetching 3 cells, but expect only 2 to be present.
+        assertThatCode(() -> transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2))
+                .doesNotThrowAnyException();
+
+        // We shouldn't check for locks even though we haven't fetched all 3 cells, because we fetched 2 and passed
+        // that as the expected value
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+
+        // Since one cell is cached, should only expect 1 to be present on internal call
+        verify(spiedSnapshotTransaction)
+                .getInternal(
+                        eq("getWithExpectedNumberOfCells"),
+                        eq(TABLE_SWEPT_THOROUGH),
+                        eq(Set.of(TEST_CELL_2)),
+                        eq(1),
+                        any(),
+                        any());
+    }
+
+    private TransactionScopedCache createCacheWithEntry(TableReference table, Cell cell) {
+        CacheMetrics metrics = mock(CacheMetrics.class);
+        return TransactionScopedCacheImpl.create(
+                ValueCacheSnapshotImpl.of(
+                        HashMap.of(
+                                CellReference.of(table, cell),
+                                CacheEntry.unlocked(CacheValue.of("value".getBytes(StandardCharsets.UTF_8)))),
+                        HashSet.of(table),
+                        ImmutableSet.of(table)),
+                metrics);
+    }
+
     @Test
     public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithValidationOnReads() {
         putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
@@ -2719,6 +2779,41 @@ private Transaction getSnapshotTransactionWith(
                 timelockService, startTs, lockImmutableTimestampResponse, preCommitCondition, true);
     }
 
+    private SnapshotTransaction getSnapshotTransactionWith(
+            long transactionTs,
+            LockImmutableTimestampResponse res,
+            LockWatchManagerInternal mockLockWatchManager,
+            PathTypeTracker pathTypeTracker) {
+        return new SnapshotTransaction(
+                metricsManager,
+                keyValueServiceWrapper.apply(keyValueService, pathTypeTracker),
+                timelockService,
+                mockLockWatchManager,
+                transactionService,
+                NoOpCleaner.INSTANCE,
+                () -> transactionTs,
+                TestConflictDetectionManagers.createWithStaticConflictDetection(
+                        ImmutableMap.of(TABLE, Optional.of(ConflictHandler.RETRY_ON_WRITE_WRITE))),
+                SweepStrategyManagers.createDefault(keyValueService),
+                res.getImmutableTimestamp(),
+                Optional.of(res.getLock()),
+                PreCommitConditions.NO_OP,
+                AtlasDbConstraintCheckingMode.NO_CONSTRAINT_CHECKING,
+                null,
+                TransactionReadSentinelBehavior.THROW_EXCEPTION,
+                false,
+                timestampCache,
+                getRangesExecutor,
+                defaultGetRangesConcurrency,
+                MultiTableSweepQueueWriter.NO_OP,
+                MoreExecutors.newDirectExecutorService(),
+                true,
+                () -> transactionConfig,
+                ConflictTracer.NO_OP,
+                tableLevelMetricsController,
+                knowledge);
+    }
+
     private Transaction getSnapshotTransactionWith(
             TimelockService timelockService,
             Supplier<Long> startTs,ueu(9106838137afc2dd4618db1c4237b7b24a7bf8cf}(sha(9106838137afc2dd4618db1c4237b7b24a7bf8cfnode_idEC_kwDOAjP5fdoAKDkxMDY4MzgxMzdhZmMyZGQ0NjE4ZGIxYzQyMzdiN2IyNGE3YmY4Y2Ycommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-02T14:02:22Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-06-02T15:58:24Zumessage:Address review comments
Use volatile instead of AtomicLongtree}(j؎ (d69d3cd900c8b48a845f5fa053156294039f4bbfurl`https://api.github.com/repos/palantir/atlasdb/git/trees/d69d3cd900c8b48a845f5fa053156294039f4bbfuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9106838137afc2dd4618db1c4237b7b24a7bf8cf
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmR6EaAACgkQmF9s0kaF
Iw3j7QgAqZAX+nSUY46ggZTgbeOvW2AG9GL91gwvyF4oVxmpVKQ7cACcjEMaPSow
9PlGkCxVEp6MDJUuLChGz19Sib6WxQugBFzlXclDgJdn6sG3H+103kl8a8mq1Dtd
OjToKwHq/kh+b33PWwHlCAbwmxCsopCbBOloDhHhQmigJAOhsq03M3TIi6OEAgkn
/H6+gyEUqWH0AawdQGcZchzy4J4A4WmS+E4a8frh3YMwF/6zCsYxtTEZ2nLqDQY3
wyvlBjCBDUJJgR9CrqvARB0Y1Q7lSW0MZoE/3OlAO048fU63Qhw/rnTgqetjYw/Z
BiW3hnXzHBoegyf8yEKQgmYQSmzGVw==
=A/A6
-----END PGP SIGNATURE-----payloadX
  tree d69d3cd900c8b48a845f5fa053156294039f4bbf
parent dd972237c7c65a255ee0ed3291ebf12c2ebc39b3
author Tom Papke <tpapke@palantir.com> 1685714542 +0100
committer Tom Papke <tpapke@palantir.com> 1685721504 +0100

Address review comments
Use volatile instead of AtomicLong
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/9106838137afc2dd4618db1c4237b7b24a7bf8cfhtml_urlShttps://github.com/palantir/atlasdb/commit/9106838137afc2dd4618db1c4237b7b24a7bf8cfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9106838137afc2dd4618db1c4237b7b24a7bf8cf/commentsjގ }(login	ToemmscheidJbojڎ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jbojڎ MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j	 h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj  uparents]}(j؎ (dd972237c7c65a255ee0ed3291ebf12c2ebc39b3j ^https://api.github.com/repos/palantir/atlasdb/commits/dd972237c7c65a255ee0ed3291ebf12c2ebc39b3j Shttps://github.com/palantir/atlasdb/commit/dd972237c7c65a255ee0ed3291ebf12c2ebc39b3uastats}(totalK	additionsKi	deletionsKUufiles](}(j؎ (783bc3b5467ffef2ad1e64d4a8aefd0da4ee44ddfilenamejatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/TransactionCommitLockInfo.javastatusrenamedj: Kj; KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/9106838137afc2dd4618db1c4237b7b24a7bf8cf/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9106838137afc2dd4618db1c4237b7b24a7bf8cf/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.java?ref=9106838137afc2dd4618db1c4237b7b24a7bf8cfpatchX  @@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.transaction.impl.expectations;
+package com.palantir.atlasdb.transaction.api.expectations;
 
 import org.immutables.value.Value;
 
@@ -24,7 +24,14 @@
 @Value.Immutable
 public interface TransactionCommitLockInfo {
 
+    /**
+     * The number of cell-level locks requested as part of the commit protocol (excluding any user-defined locking).
+     */
     long cellCommitLocksRequested();
 
+    /**
+     * The number of row-level locks requested as part of the commit protocol (excluding any user-defined locking).
+     * For write transactions, this includes the single row lock that is requested for the transaction table itself.
+     */
     long rowCommitLocksRequested();
 }previous_filenamesatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/expectations/TransactionCommitLockInfo.javau}(j؎ (a609938800595c6a4ed1b28154a58151f7d04af3j@ datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ExpectationsAwareTransaction.javajB modifiedj: Kj; K jD KjE https://github.com/palantir/atlasdb/blob/9106838137afc2dd4618db1c4237b7b24a7bf8cf/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javajG https://github.com/palantir/atlasdb/raw/9106838137afc2dd4618db1c4237b7b24a7bf8cf/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.java?ref=9106838137afc2dd4618db1c4237b7b24a7bf8cfjK X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 /**
@@ -32,6 +33,11 @@ public interface ExpectationsAwareTransaction extends Transaction {
      */
     TransactionReadInfo getReadInfo();
 
+    /**
+     * Returns transaction commit lock information.
+     */
+    TransactionCommitLockInfo getCommitLockInfo();
+
     /**
      * Update TEX data collection metrics for (post-mortem) transactions.
      * Expected usage is that this method is called once after the transaction has been committed or aborted.u}(j؎ (6795ea4a937624401807d2b3742ab596ad23984bj@ natlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingExpectationsAwareTransaction.javajB modifiedj: Kj; K jD KjE https://github.com/palantir/atlasdb/blob/9106838137afc2dd4618db1c4237b7b24a7bf8cf/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javajG https://github.com/palantir/atlasdb/raw/9106838137afc2dd4618db1c4237b7b24a7bf8cf/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.java?ref=9106838137afc2dd4618db1c4237b7b24a7bf8cfjK X  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.transaction.impl;
 
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 public abstract class ForwardingExpectationsAwareTransaction extends ForwardingTransaction
@@ -34,6 +35,11 @@ public TransactionReadInfo getReadInfo() {
         return delegate().getReadInfo();
     }
 
+    @Override
+    public TransactionCommitLockInfo getCommitLockInfo() {
+        return delegate().getCommitLockInfo();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         delegate().reportExpectationsCollectedData();u}(j؎ (1af8e94c18216811717f33916f106b41dc1f2a48j@ `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javajB modifiedj: Kj; KjD KjE https://github.com/palantir/atlasdb/blob/9106838137afc2dd4618db1c4237b7b24a7bf8cf/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajG https://github.com/palantir/atlasdb/raw/9106838137afc2dd4618db1c4237b7b24a7bf8cf/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=9106838137afc2dd4618db1c4237b7b24a7bf8cfjK X  @@ -97,12 +97,12 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
-import com.palantir.atlasdb.transaction.impl.expectations.ImmutableTransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueServiceImpl;
-import com.palantir.atlasdb.transaction.impl.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.TransactionOutcomeMetrics;
 import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
@@ -270,8 +270,8 @@ private enum State {
     protected final SuccessCallbackManager successCallbackManager = new SuccessCallbackManager();
     private final CommitTimestampLoader commitTimestampLoader;
     private final ExpectationsMetrics expectationsDataCollectionMetrics;
-    private final AtomicLong cellCommitLocksRequested = new AtomicLong();
-    private final AtomicLong rowCommitLocksRequested = new AtomicLong();
+    private volatile long cellCommitLocksRequested = 0L;
+    private volatile long rowCommitLocksRequested = 0L;
 
     protected volatile boolean hasReads;
 
@@ -354,8 +354,6 @@ private enum State {
                 immutableTimestamp,
                 knowledge);
         this.expectationsDataCollectionMetrics = ExpectationsMetrics.of(metricsManager.getTaggedRegistry());
-        this.cellCommitLocksRequested.set(0L);
-        this.rowCommitLocksRequested.set(0L);
     }
 
     protected TransactionScopedCache getCache() {
@@ -2455,6 +2453,8 @@ private void logCommitLockTenureExceeded(
 
     protected Set<LockDescriptor> getLocksForWrites() {
         Set<LockDescriptor> result = new HashSet<>();
+        long cellLockCount = 0L;
+        long rowLockCount = 0L;
         for (TableReference tableRef : writesByTable.keySet()) {
             ConflictHandler conflictHandler = getConflictHandlerForTable(tableRef);
             if (conflictHandler.lockCellsForConflicts()) {
@@ -2463,25 +2463,25 @@ protected Set<LockDescriptor> getLocksForWrites() {
                     result.add(AtlasCellLockDescriptor.of(
                             tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName()));
                 }
-                cellCommitLocksRequested.set(cellsToLock.size());
+                cellLockCount = cellsToLock.size();
             }
 
             if (conflictHandler.lockRowsForConflicts()) {
                 Cell lastCell = null;
-                long rowLockCount = 0L;
                 for (Cell cell : getLocalWrites(tableRef).keySet()) {
                     if (lastCell == null || !Arrays.equals(lastCell.getRowName(), cell.getRowName())) {
                         result.add(AtlasRowLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName()));
                         rowLockCount++;
                     }
                     lastCell = cell;
                 }
-                rowCommitLocksRequested.set(rowLockCount);
             }
         }
         result.add(AtlasRowLockDescriptor.of(
                 TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
                 TransactionConstants.getValueForTimestamp(getStartTimestamp())));
+        cellCommitLocksRequested = cellLockCount;
+        rowCommitLocksRequested = rowLockCount + 1;
         return result;
     }
 
@@ -2619,10 +2619,11 @@ public TransactionReadInfo getReadInfo() {
         return keyValueService.getOverallReadInfo();
     }
 
+    @Override
     public TransactionCommitLockInfo getCommitLockInfo() {
         return ImmutableTransactionCommitLockInfo.builder()
-                .cellCommitLocksRequested(cellCommitLocksRequested.get())
-                .rowCommitLocksRequested(rowCommitLocksRequested.get())
+                .cellCommitLocksRequested(cellCommitLocksRequested)
+                .rowCommitLocksRequested(rowCommitLocksRequested)
                 .build();
     }
 u}(j؎ (89147dc77a01612d3af8f3130ea758e4445537c7j@ 5atlasdb-impl-shared/src/main/metrics/expectations.ymljB modifiedj: Kj; KjD KjE https://github.com/palantir/atlasdb/blob/9106838137afc2dd4618db1c4237b7b24a7bf8cf/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymljG https://github.com/palantir/atlasdb/raw/9106838137afc2dd4618db1c4237b7b24a7bf8cf/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymljI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=9106838137afc2dd4618db1c4237b7b24a7bf8cfjK Xl  @@ -18,8 +18,8 @@ namespaces:
         docs: Most bytes read by a transaction in one Atlas kvs read call
         type: histogram
       cellCommitLocksRequested:
-        docs: Number of cell-level commit locks requested at the beginning of the commit protocol
+        docs: Number of cell-level commit locks requested as part of the commit protocol
         type: histogram
       rowCommitLocksRequested:
-        docs: Number of row-level commit locks requested at the beginning of the commit protocol
+        docs: Number of row-level commit locks requested as part of the commit protocol
         type: histogramu}(j؎ (283b84abcfb6697b50fee5fa0db0dbc2d58dfab8j@ matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javajB modifiedj: Kj; KjD K$jE https://github.com/palantir/atlasdb/blob/9106838137afc2dd4618db1c4237b7b24a7bf8cf/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajG https://github.com/palantir/atlasdb/raw/9106838137afc2dd4618db1c4237b7b24a7bf8cf/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=9106838137afc2dd4618db1c4237b7b24a7bf8cfjK XF  @@ -18,11 +18,12 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.codahale.metrics.Histogram;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
-import com.palantir.atlasdb.transaction.impl.expectations.ImmutableTransactionCommitLockInfo;
 import com.palantir.atlasdb.util.MetricsManagers;
 import org.junit.Before;
 import org.junit.Test;
@@ -52,50 +53,57 @@ public void setUp() {
     public void ageReported() {
         long age = 129L;
         SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, BLANK_COMMIT_LOCK_INFO, metrics);
-        assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
+        assertHistogramHasSingleValue(metrics.ageMillis(), age);
     }
 
     @Test
     public void bytesReadReported() {
         long bytes = 1290L;
-        reportMetrics(BLANK_READ_INFO.withBytesRead(bytes));
-        assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
+        reportMetricsWithReadInfo(BLANK_READ_INFO.withBytesRead(bytes));
+        assertHistogramHasSingleValue(metrics.bytesRead(), bytes);
     }
 
     @Test
     public void kvsCallsReported() {
         long calls = 12L;
-        reportMetrics(BLANK_READ_INFO.withKvsCalls(calls));
-        assertThat(metrics.kvsReads().getSnapshot().getValues()).containsOnly(calls);
+        reportMetricsWithReadInfo(BLANK_READ_INFO.withKvsCalls(calls));
+        assertHistogramHasSingleValue(metrics.kvsReads(), calls);
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
-        reportMetrics(BLANK_READ_INFO);
+        reportMetricsWithReadInfo(BLANK_READ_INFO);
         assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
                 .isEmpty();
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
         long bytes = 193L;
-        reportMetrics(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
-        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
-                .containsOnly(bytes);
+        reportMetricsWithReadInfo(
+                BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        assertHistogramHasSingleValue(metrics.mostKvsBytesReadInSingleCall(), bytes);
     }
 
     @Test
     public void commitLocksRequestsReported() {
         SnapshotTransaction.reportExpectationsCollectedData(
                 0L,
                 BLANK_READ_INFO,
-                BLANK_COMMIT_LOCK_INFO.withCellCommitLocksRequested(1).withRowCommitLocksRequested(2),
+                ImmutableTransactionCommitLockInfo.builder()
+                        .cellCommitLocksRequested(1)
+                        .rowCommitLocksRequested(2)
+                        .build(),
                 metrics);
-        assertThat(metrics.cellCommitLocksRequested().getSnapshot().getValues()).containsOnly(1);
-        assertThat(metrics.rowCommitLocksRequested().getSnapshot().getValues()).containsOnly(2);
+        assertHistogramHasSingleValue(metrics.cellCommitLocksRequested(), 1);
+        assertHistogramHasSingleValue(metrics.rowCommitLocksRequested(), 2);
     }
 
-    private void reportMetrics(TransactionReadInfo readInfo) {
+    private void reportMetricsWithReadInfo(TransactionReadInfo readInfo) {
         SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, BLANK_COMMIT_LOCK_INFO, metrics);
     }
+
+    private void assertHistogramHasSingleValue(Histogram histogram, long expected) {
+        assertThat(histogram.getSnapshot().getValues()).containsOnly(expected);
+    }
 }u}(j؎ (bb29f1f5379469e2420cec2f171a4e7f631e047cj@ eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javajB modifiedj: K1j; K9jD KjjE https://github.com/palantir/atlasdb/blob/9106838137afc2dd4618db1c4237b7b24a7bf8cf/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajG https://github.com/palantir/atlasdb/raw/9106838137afc2dd4618db1c4237b7b24a7bf8cf/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=9106838137afc2dd4618db1c4237b7b24a7bf8cfjK X  @@ -33,8 +33,6 @@
 import static org.mockito.Mockito.verifyNoInteractions;
 import static org.mockito.Mockito.when;
 
-import com.codahale.metrics.Histogram;
-import com.codahale.metrics.Metric;
 import com.google.common.base.Joiner;
 import com.google.common.base.Suppliers;
 import com.google.common.collect.ImmutableList;
@@ -96,6 +94,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.impl.metrics.DefaultMetricsFilterEvaluationContext;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.ToplistDeltaFilteringTableLevelMetricsController;
@@ -124,7 +123,6 @@
 import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import com.palantir.tritium.metrics.registry.MetricName;
 import java.math.BigInteger;
 import java.nio.ByteBuffer;
 import java.nio.charset.StandardCharsets;
@@ -325,7 +323,6 @@ public void cleanup() {}
     private static final byte[] COL_B = "b".getBytes(StandardCharsets.UTF_8);
 
     private static final Cell TEST_CELL = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("column1"));
-
     private static final Cell TEST_CELL_2 = Cell.create(PtBytes.toBytes("row2"), PtBytes.toBytes("column2"));
 
     private static final byte[] TEST_VALUE = PtBytes.toBytes("value");
@@ -2375,78 +2372,73 @@ public void testConstraintsViolated() {
                         eq(AtlasDbConstraintCheckingMode.FULL_CONSTRAINT_CHECKING_THROWS_EXCEPTIONS));
     }
 
-    private void assertCellCommitLocksMetricEquals(long expected) {
-        assertThat(metricsManager.getTaggedRegistry().getMetrics())
-                .anySatisfy((MetricName metricName, Metric metric) -> {
-                    assertThat(metricName.safeName()).isEqualTo("expectations.cellCommitLocksRequested");
-                    assertThat(metric).isInstanceOf(Histogram.class);
-                    assertThat(((Histogram) metric).getSnapshot().getValues()).containsOnly(expected);
-                });
-    }
-
-    private void assertRowCommitLocksMetricEquals(long expected) {
-        assertThat(metricsManager.getTaggedRegistry().getMetrics())
-                .anySatisfy((MetricName metricName, Metric metric) -> {
-                    assertThat(metricName.safeName()).isEqualTo("expectations.rowCommitLocksRequested");
-                    assertThat(metric).isInstanceOf(Histogram.class);
-                    assertThat(((Histogram) metric).getSnapshot().getValues()).containsOnly(expected);
-                });
-    }
-
     @Test
-    public void reportsRequestedCommitLocksCountCorrectly_serializableCell() {
+    public void setsRequestedCommitLocksCountCorrectly_serializableCell() {
         // Will request commit locks for cells, but not rows
         overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_CELL);
 
-        txManager.runTaskThrowOnConflict(txn -> {
-            txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
-            return null;
-        });
+        // We can only get the commit info from a snapshot transaction
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
 
-        assertCellCommitLocksMetricEquals(1);
-        assertRowCommitLocksMetricEquals(0);
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        // For write transactions, we always lock an additional row in the transaction table
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(0 + 1);
     }
 
     @Test
-    public void reportsRequestedCommitLocksCountCorrectly_serializable() {
+    public void setsRequestedCommitLocksCountCorrectly_serializable() {
         // Will request commit locks for rows, but not cells
         overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE);
 
-        txManager.runTaskThrowOnConflict(txn -> {
-            txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
-            return null;
-        });
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
 
-        assertCellCommitLocksMetricEquals(0);
-        assertRowCommitLocksMetricEquals(1);
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(0);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(2 + 1);
     }
 
     @Test
-    public void reportsRequestedCommitLocksCountCorrectly_serializableLockLevelMigration_sameRow() {
+    public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigration_sameRow() {
         // Will request commit locks for cells and rows
         overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_LOCK_LEVEL_MIGRATION);
 
-        txManager.runTaskThrowOnConflict(txn -> {
-            txn.put(
-                    TABLE,
-                    ImmutableMap.of(
-                            Cell.create(
-                                    "same_row".getBytes(StandardCharsets.UTF_8),
-                                    "column1".getBytes(StandardCharsets.UTF_8)),
-                            TEST_VALUE));
-            txn.put(
-                    TABLE,
-                    ImmutableMap.of(
-                            Cell.create(
-                                    "same_row".getBytes(StandardCharsets.UTF_8),
-                                    // Writing to the same row, but different column/cell
-                                    "column2".getBytes(StandardCharsets.UTF_8)),
-                            TEST_VALUE));
-            return null;
-        });
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(
+                TABLE,
+                ImmutableMap.of(Cell.create(PtBytes.toBytes("same_row"), PtBytes.toBytes("column1")), TEST_VALUE));
+        txn.put(
+                TABLE,
+                ImmutableMap.of(
+                        Cell.create(
+                                PtBytes.toBytes("same_row"),
+                                // Writing to the same row, but different column/cell
+                                PtBytes.toBytes("column2")),
+                        TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
+    }
+
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_readOnlyTransaction() {
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.get(TABLE, ImmutableSet.of(TEST_CELL));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
 
-        assertCellCommitLocksMetricEquals(2);
-        assertRowCommitLocksMetricEquals(1);
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(0);
+        // Since this is a read-only transaction, we should not even lock a row in the transaction table itself
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(0);
     }
 
     private void verifyPrefetchValidations(ueu(ed1757e27de26ff7e8ff2a022fbc5831360f6efd}(sha(ed1757e27de26ff7e8ff2a022fbc5831360f6efdnode_idEC_kwDOAjP5fdoAKGVkMTc1N2UyN2RlMjZmZjdlOGZmMmEwMjJmYmM1ODMxMzYwZjZlZmQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-11T15:22:00Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-04-11T15:22:00Zumessagespotlesstree}(j (3ea3c493e59407fcf20e560bc00d2533424f3c36url`https://api.github.com/repos/palantir/atlasdb/git/trees/3ea3c493e59407fcf20e560bc00d2533424f3c36uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ed1757e27de26ff7e8ff2a022fbc5831360f6efd
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ1exgACgkQTLdFKain
zjzePQf+JU/ikKspLGc5UZFx9vjsaJrg7UzVBDsy+Md5F7J15wQxCbREBtA4iKBt
1vfyiVzZoLBXzyU26Q1EQJYm9dBdN/IwBcre7KVjOFD4EaKjM29NBCNK1eY3Ov8O
o514doSoi/FSVnF4FVzsfvAJFl8A59noLrnhsvtjryyynR0e+MHt46ioAz8lu/Sr
+uAXQ1omQ6/Rh3ljo9SMFJwdpVigtVqrL+z6/KIwBCKyeBqJyCZJCiNhHp9qxn5O
K/GLOVYWVHlY9oMSH4tw8HBvyzDXimrckaJ8iSBlE+odpcZ0zICgsaKxK6FtesaR
ppGOvX2n+lFZtP7XdxszC3H38zwCMQ==
=LQPa
-----END PGP SIGNATURE-----payloadtree 3ea3c493e59407fcf20e560bc00d2533424f3c36
parent 7b778d856d3b579d2699735d2b772c782646f85b
author Jeremy Kong <jkong@palantir.com> 1681226520 +0800
committer Jeremy Kong <jkong@palantir.com> 1681226520 +0800

spotless
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/ed1757e27de26ff7e8ff2a022fbc5831360f6efdhtml_urlShttps://github.com/palantir/atlasdb/commit/ed1757e27de26ff7e8ff2a022fbc5831360f6efdcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ed1757e27de26ff7e8ff2a022fbc5831360f6efd/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposjÏ 8https://api.github.com/users/jeremyk-91/events{/privacy}jŏ 7https://api.github.com/users/jeremyk-91/received_eventsjǏ Userjɏ uparents]}(j (7b778d856d3b579d2699735d2b772c782646f85bj ^https://api.github.com/repos/palantir/atlasdb/commits/7b778d856d3b579d2699735d2b772c782646f85bj Shttps://github.com/palantir/atlasdb/commit/7b778d856d3b579d2699735d2b772c782646f85buastats}(totalKr	additionsK@	deletionsK2ufiles](}(j (5cdcabaa8268eb540f0ccfc73d1fe1870eb88dadfilenameXatlasdb-tests-shared/src/main/java/com/palantir/timelock/paxos/InMemoryTimeLockRule.javastatusmodifiedj K j KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ed1757e27de26ff7e8ff2a022fbc5831360f6efd/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimeLockRule.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ed1757e27de26ff7e8ff2a022fbc5831360f6efd/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimeLockRule.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimeLockRule.java?ref=ed1757e27de26ff7e8ff2a022fbc5831360f6efdpatchXo  @@ -18,7 +18,6 @@
 
 import com.palantir.atlasdb.keyvalue.api.watch.LockWatchManagerInternal;
 import com.palantir.atlasdb.timelock.AsyncTimelockService;
-import com.palantir.atlasdb.timelock.JerseyAsyncTimelockResource;
 import com.palantir.atlasdb.timelock.TimeLockServices;
 import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.lock.LockService;u}(j (fd1072fee241e64f646b79a5c47f7f4c01826392j \atlasdb-tests-shared/src/main/java/com/palantir/timelock/paxos/InMemoryTimelockServices.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/ed1757e27de26ff7e8ff2a022fbc5831360f6efd/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.javaj https://github.com/palantir/atlasdb/raw/ed1757e27de26ff7e8ff2a022fbc5831360f6efd/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.java?ref=ed1757e27de26ff7e8ff2a022fbc5831360f6efdj X  @@ -23,7 +23,6 @@
 import com.palantir.atlasdb.keyvalue.api.watch.LockWatchManagerInternal;
 import com.palantir.atlasdb.timelock.AsyncTimelockService;
 import com.palantir.atlasdb.timelock.ConjureTimelockResource;
-import com.palantir.atlasdb.timelock.JerseyAsyncTimelockResource;
 import com.palantir.atlasdb.timelock.TimeLockServices;
 import com.palantir.atlasdb.timelock.api.ConjureTimelockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;u}(j (018c6439ead4edc16d259b99aa429c98a1e7960aj Ztimelock-agent/src/main/java/com/palantir/timelock/paxos/AsyncTimeLockServicesCreator.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/ed1757e27de26ff7e8ff2a022fbc5831360f6efd/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.javaj https://github.com/palantir/atlasdb/raw/ed1757e27de26ff7e8ff2a022fbc5831360f6efd/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.java?ref=ed1757e27de26ff7e8ff2a022fbc5831360f6efdj X  @@ -20,7 +20,6 @@
 import com.palantir.atlasdb.debug.LockDiagnosticConfig;
 import com.palantir.atlasdb.timelock.AsyncTimelockService;
 import com.palantir.atlasdb.timelock.AsyncTimelockServiceImpl;
-import com.palantir.atlasdb.timelock.JerseyAsyncTimelockResource;
 import com.palantir.atlasdb.timelock.TimeLockServices;
 import com.palantir.atlasdb.timelock.lock.AsyncLockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;u}(j (aeebed08ecc92da60110e5c5e44192dea5e0f173j Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/JerseyAsyncTimelockResource.javaj modifiedj K j Kj K1j https://github.com/palantir/atlasdb/blob/ed1757e27de26ff7e8ff2a022fbc5831360f6efd/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FJerseyAsyncTimelockResource.javaj https://github.com/palantir/atlasdb/raw/ed1757e27de26ff7e8ff2a022fbc5831360f6efd/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FJerseyAsyncTimelockResource.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FJerseyAsyncTimelockResource.java?ref=ed1757e27de26ff7e8ff2a022fbc5831360f6efdj X&  @@ -67,37 +67,37 @@ public void getFreshTimestamp(@Suspended final AsyncResponse response, @PathPara
     @POST
     @Path("fresh-timestamps")
     public void getFreshTimestamps(
-            @Suspended final AsyncResponse response, @PathParam("namespace") String namespace,
+            @Suspended final AsyncResponse response,
+            @PathParam("namespace") String namespace,
             @Safe @QueryParam("number") int numTimestampsRequested) {
         addJerseyCallback(getAsyncTimelockService(namespace).getFreshTimestampsAsync(numTimestampsRequested), response);
     }
 
     @POST
     @Path("lock-immutable-timestamp")
-    public LockImmutableTimestampResponse lockImmutableTimestamp(@PathParam("namespace") String namespace,
-                                                                 IdentifiedTimeLockRequest request) {
+    public LockImmutableTimestampResponse lockImmutableTimestamp(
+            @PathParam("namespace") String namespace, IdentifiedTimeLockRequest request) {
         return getAsyncTimelockService(namespace).lockImmutableTimestamp(request);
     }
 
     @POST
     @Path("start-atlasdb-transaction")
-    public StartAtlasDbTransactionResponse deprecatedStartTransactionV1(@PathParam("namespace") String namespace, IdentifiedTimeLockRequest request) {
+    public StartAtlasDbTransactionResponse deprecatedStartTransactionV1(
+            @PathParam("namespace") String namespace, IdentifiedTimeLockRequest request) {
         return getAsyncTimelockService(namespace).deprecatedStartTransaction(request);
     }
 
     @POST
     @Path("start-identified-atlasdb-transaction")
     public StartIdentifiedAtlasDbTransactionResponse deprecatedStartTransactionV2(
-            @PathParam("namespace") String namespace,
-            StartIdentifiedAtlasDbTransactionRequest request) {
+            @PathParam("namespace") String namespace, StartIdentifiedAtlasDbTransactionRequest request) {
         return getAsyncTimelockService(namespace).startTransaction(request).toStartTransactionResponse();
     }
 
     @POST
     @Path("start-atlasdb-transaction-v3")
     public StartAtlasDbTransactionResponseV3 deprecatedStartTransactionV3(
-            @PathParam("namespace") String namespace,
-            StartIdentifiedAtlasDbTransactionRequest request) {
+            @PathParam("namespace") String namespace, StartIdentifiedAtlasDbTransactionRequest request) {
         return getAsyncTimelockService(namespace).startTransaction(request);
     }
 
@@ -110,8 +110,10 @@ public StartAtlasDbTransactionResponseV3 deprecatedStartTransactionV3(
      */
     @POST
     @Path("start-atlasdb-transaction-v4")
-    public void startTransactions(@Suspended final AsyncResponse response, @PathParam("namespace") String namespace,
-                                  StartTransactionRequestV4 request) {
+    public void startTransactions(
+            @Suspended final AsyncResponse response,
+            @PathParam("namespace") String namespace,
+            StartTransactionRequestV4 request) {
         addJerseyCallback(getAsyncTimelockService(namespace).startTransactionsAsync(request), response);
     }
 
@@ -123,31 +125,42 @@ public long getImmutableTimestamp(@PathParam("namespace") String namespace) {
 
     @POST
     @Path("lock")
-    public void deprecatedLock(@Suspended final AsyncResponse response, @PathParam("namespace") String namespace, IdentifiedLockRequest request) {
+    public void deprecatedLock(
+            @Suspended final AsyncResponse response,
+            @PathParam("namespace") String namespace,
+            IdentifiedLockRequest request) {
         addJerseyCallback(getAsyncTimelockService(namespace).deprecatedLock(request), response);
     }
 
     @POST
     @Path("lock-v2")
-    public void lock(@Suspended final AsyncResponse response, @PathParam("namespace") String namespace, IdentifiedLockRequest request) {
+    public void lock(
+            @Suspended final AsyncResponse response,
+            @PathParam("namespace") String namespace,
+            IdentifiedLockRequest request) {
         addJerseyCallback(getAsyncTimelockService(namespace).lock(request), response);
     }
 
     @POST
     @Path("await-locks")
-    public void waitForLocks(@Suspended final AsyncResponse response, @PathParam("namespace") String namespace, WaitForLocksRequest request) {
+    public void waitForLocks(
+            @Suspended final AsyncResponse response,
+            @PathParam("namespace") String namespace,
+            WaitForLocksRequest request) {
         addJerseyCallback(getAsyncTimelockService(namespace).waitForLocks(request), response);
     }
 
     @POST
     @Path("refresh-locks")
-    public void deprecatedRefreshLockLeases(@Suspended final AsyncResponse response, @PathParam("namespace") String namespace, Set<LockToken> tokens) {
+    public void deprecatedRefreshLockLeases(
+            @Suspended final AsyncResponse response, @PathParam("namespace") String namespace, Set<LockToken> tokens) {
         addJerseyCallback(getAsyncTimelockService(namespace).deprecatedRefreshLockLeases(tokens), response);
     }
 
     @POST
     @Path("refresh-locks-v2")
-    public void refreshLockLeases(@Suspended final AsyncResponse response, @PathParam("namespace") String namespace, Set<LockToken> tokens) {
+    public void refreshLockLeases(
+            @Suspended final AsyncResponse response, @PathParam("namespace") String namespace, Set<LockToken> tokens) {
         addJerseyCallback(getAsyncTimelockService(namespace).refreshLockLeases(tokens), response);
     }
 
@@ -159,7 +172,8 @@ public void getLeaderTime(@Suspended final AsyncResponse response, @PathParam("n
 
     @POST
     @Path("unlock")
-    public void unlock(@Suspended final AsyncResponse response, @PathParam("namespace") String namespace, Set<LockToken> tokens) {
+    public void unlock(
+            @Suspended final AsyncResponse response, @PathParam("namespace") String namespace, Set<LockToken> tokens) {
         addJerseyCallback(getAsyncTimelockService(namespace).unlock(tokens), response);
     }
 
@@ -176,7 +190,8 @@ public long currentTimeMillis(@PathParam("namespace") String namespace) {
     @Deprecated
     @POST
     @Path("do-not-use-without-explicit-atlasdb-authorisation/lock-diagnostic-config")
-    public Optional<LockDiagnosticInfo> getEnhancedLockDiagnosticInfo(@PathParam("namespace") String namespace, Set<UUID> requestIds) {
+    public Optional<LockDiagnosticInfo> getEnhancedLockDiagnosticInfo(
+            @PathParam("namespace") String namespace, Set<UUID> requestIds) {
         return timelockNamespaces.get(namespace).getLockLog().getAndLogLockDiagnosticInfo(requestIds);
     }
 u#      }(j (8bfcfd6664ac25e00e734b83480cf166f399ec0cj Otimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimeLockServices.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ed1757e27de26ff7e8ff2a022fbc5831360f6efd/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServices.javaj https://github.com/palantir/atlasdb/raw/ed1757e27de26ff7e8ff2a022fbc5831360f6efd/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServices.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServices.java?ref=ed1757e27de26ff7e8ff2a022fbc5831360f6efdj XL  @@ -21,7 +21,6 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.timestamp.TimestampManagementService;
 import com.palantir.timestamp.TimestampService;
-import java.util.Optional;
 import java.util.stream.Stream;
 import org.immutables.value.Value;
 
@@ -57,11 +56,7 @@ static TimeLockServices create(
 
     @Override
     default void close() {
-        Stream.of(
-                        getTimestampService(),
-                        getLockService(),
-                        getTimelockService(),
-                        getTimestampManagementService())
+        Stream.of(getTimestampService(), getLockService(), getTimelockService(), getTimestampManagementService())
                 .filter(service -> service instanceof AutoCloseable)
                 .distinct()
                 .forEach(service -> {u}(j (258f7d073bc5ee49ccdfc4894267cfb38f294becj \timelock-impl/src/main/java/com/palantir/atlasdb/timelock/UndertowAsyncTimelockResource.javaj modifiedj Kj Kj K*j https://github.com/palantir/atlasdb/blob/ed1757e27de26ff7e8ff2a022fbc5831360f6efd/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FUndertowAsyncTimelockResource.javaj https://github.com/palantir/atlasdb/raw/ed1757e27de26ff7e8ff2a022fbc5831360f6efd/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FUndertowAsyncTimelockResource.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FUndertowAsyncTimelockResource.java?ref=ed1757e27de26ff7e8ff2a022fbc5831360f6efdj X}  @@ -18,7 +18,6 @@
 
 import com.google.common.util.concurrent.ListenableFuture;
 import com.palantir.atlasdb.debug.LockDiagnosticInfo;
-import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.conjure.java.undertow.annotations.Handle;
 import com.palantir.conjure.java.undertow.annotations.HttpMethod;
 import com.palantir.lock.client.IdentifiedLockRequest;
@@ -57,34 +56,38 @@ public ListenableFuture<Long> getFreshTimestamp(@Safe @Handle.PathParam String n
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/fresh-timestamps")
     public ListenableFuture<TimestampRange> getFreshTimestamps(
-            @Safe @Handle.PathParam String namespace, @Safe @Handle.QueryParam(value = "number") int numTimestampsRequested) {
+            @Safe @Handle.PathParam String namespace,
+            @Safe @Handle.QueryParam(value = "number") int numTimestampsRequested) {
         return getTimelockService(namespace).getFreshTimestampsAsync(numTimestampsRequested);
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/lock-immutable-timestamp")
-    public LockImmutableTimestampResponse lockImmutableTimestamp(@Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedTimeLockRequest request) {
+    public LockImmutableTimestampResponse lockImmutableTimestamp(
+            @Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedTimeLockRequest request) {
         return getTimelockService(namespace).lockImmutableTimestamp(request);
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-atlasdb-transaction")
-    public StartAtlasDbTransactionResponse deprecatedStartTransactionV1(@Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedTimeLockRequest request) {
+    public StartAtlasDbTransactionResponse deprecatedStartTransactionV1(
+            @Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedTimeLockRequest request) {
         return getTimelockService(namespace).deprecatedStartTransaction(request);
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-identified-atlasdb-transaction")
     public StartIdentifiedAtlasDbTransactionResponse deprecatedStartTransactionV2(
-            @Safe @Handle.PathParam String namespace, @Handle.Body   StartIdentifiedAtlasDbTransactionRequest request) {
+            @Safe @Handle.PathParam String namespace, @Handle.Body StartIdentifiedAtlasDbTransactionRequest request) {
         return getTimelockService(namespace).startTransaction(request).toStartTransactionResponse();
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-atlasdb-transaction-v3")
     public StartAtlasDbTransactionResponseV3 deprecatedStartTransactionV3(
-            @Safe @Handle.PathParam String namespace, @Handle.Body             StartIdentifiedAtlasDbTransactionRequest request) {
+            @Safe @Handle.PathParam String namespace, @Handle.Body StartIdentifiedAtlasDbTransactionRequest request) {
         return getTimelockService(namespace).startTransaction(request);
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-atlasdb-transaction-v4")
-    public ListenableFuture<StartTransactionResponseV4> startTransactions(@Safe @Handle.PathParam String namespace, @Handle.Body  StartTransactionRequestV4 request) {
+    public ListenableFuture<StartTransactionResponseV4> startTransactions(
+            @Safe @Handle.PathParam String namespace, @Handle.Body StartTransactionRequestV4 request) {
         return getTimelockService(namespace).startTransactionsAsync(request);
     }
 
@@ -94,27 +97,32 @@ public long getImmutableTimestamp(@Safe @Handle.PathParam String namespace) {
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/lock")
-    public ListenableFuture<LockResponse> deprecatedLock(@Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedLockRequest request) {
+    public ListenableFuture<LockResponse> deprecatedLock(
+            @Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedLockRequest request) {
         return getTimelockService(namespace).deprecatedLock(request);
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/lock-v2")
-    public ListenableFuture<LockResponseV2> lock(@Safe @Handle.PathParam String namespace, @Handle.Body  IdentifiedLockRequest request) {
+    public ListenableFuture<LockResponseV2> lock(
+            @Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedLockRequest request) {
         return getTimelockService(namespace).lock(request);
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/await-locks")
-    public ListenableFuture<WaitForLocksResponse> waitForLocks(@Safe @Handle.PathParam String namespace, @Handle.Body   WaitForLocksRequest request) {
+    public ListenableFuture<WaitForLocksResponse> waitForLocks(
+            @Safe @Handle.PathParam String namespace, @Handle.Body WaitForLocksRequest request) {
         return getTimelockService(namespace).waitForLocks(request);
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/refresh-locks")
-    public ListenableFuture<Set<LockToken>> deprecatedRefreshLockLeases(@Safe @Handle.PathParam String namespace, @Handle.Body   Set<LockToken> tokens) {
+    public ListenableFuture<Set<LockToken>> deprecatedRefreshLockLeases(
+            @Safe @Handle.PathParam String namespace, @Handle.Body Set<LockToken> tokens) {
         return getTimelockService(namespace).deprecatedRefreshLockLeases(tokens);
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/refresh-locks-v2")
-    public ListenableFuture<RefreshLockResponseV2> refreshLockLeases(@Safe @Handle.PathParam String namespace, @Handle.Body   Set<LockToken> tokens) {
+    public ListenableFuture<RefreshLockResponseV2> refreshLockLeases(
+            @Safe @Handle.PathParam String namespace, @Handle.Body Set<LockToken> tokens) {
         return getTimelockService(namespace).refreshLockLeases(tokens);
     }
 
@@ -124,7 +132,8 @@ public ListenableFuture<LeaderTime> getLeaderTime(@Safe @Handle.PathParam String
     }
 
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/unlock")
-    public ListenableFuture<Set<LockToken>> unlock(@Safe @Handle.PathParam String namespace, @Handle.Body  Set<LockToken> tokens) {
+    public ListenableFuture<Set<LockToken>> unlock(
+            @Safe @Handle.PathParam String namespace, @Handle.Body Set<LockToken> tokens) {
         return getTimelockService(namespace).unlock(tokens);
     }
 
@@ -134,8 +143,11 @@ public long currentTimeMillis(@Safe @Handle.PathParam String namespace) {
     }
 
     // TODO(jkong): Remove this once PDS-95791 is resolved.
-    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/do-not-use-without-explicit-atlasdb-authorisation/lock-diagnostic-config")
-    public Optional<LockDiagnosticInfo> getEnhancedLockDiagnosticInfo(@Safe @Handle.PathParam String namespace, @Handle.Body  Set<UUID> requestIds) {
+    @Handle(
+            method = HttpMethod.POST,
+            path = "/{namespace}/timelock/do-not-use-without-explicit-atlasdb-authorisation/lock-diagnostic-config")
+    public Optional<LockDiagnosticInfo> getEnhancedLockDiagnosticInfo(
+            @Safe @Handle.PathParam String namespace, @Handle.Body Set<UUID> requestIds) {
         return namespaces.get(namespace).getLockLog().getAndLogLockDiagnosticInfo(requestIds);
     }
 u}(j (6418b11b22cf39de9ebf8e0d555413ee7e4b1340j Stimelock-impl/src/test/java/com/palantir/atlasdb/timelock/TimeLockServicesTest.javaj modifiedj Kj K	j K
j https://github.com/palantir/atlasdb/blob/ed1757e27de26ff7e8ff2a022fbc5831360f6efd/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServicesTest.javaj https://github.com/palantir/atlasdb/raw/ed1757e27de26ff7e8ff2a022fbc5831360f6efd/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServicesTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServicesTest.java?ref=ed1757e27de26ff7e8ff2a022fbc5831360f6efdj X  @@ -33,8 +33,7 @@ public void doNotCloseRepeatedInterfaceMultipleTimes() throws IOException {
         LockService lockService = mock(LockService.class);
         AsyncTimelockService asyncTimelockService = mock(AsyncTimelockService.class);
 
-        getTimeLockServices(lockService, asyncTimelockService)
-                .close();
+        getTimeLockServices(lockService, asyncTimelockService).close();
 
         verify(asyncTimelockService, times(1)).close();
     }
@@ -44,8 +43,7 @@ public void closesCloseableImplementationsOfNotNecessarilyCloseableInterfaces()
         CloseableLockService closeableLockService = mock(CloseableLockService.class);
         AsyncTimelockService asyncTimelockService = mock(AsyncTimelockService.class);
 
-        getTimeLockServices(closeableLockService, asyncTimelockService)
-                .close();
+        getTimeLockServices(closeableLockService, asyncTimelockService).close();
 
         verify(closeableLockService).close();
     }
@@ -58,16 +56,13 @@ public void exceptionsWhenClosingDoNotAffectOverallClosure() throws IOException
         doThrow(new RuntimeException()).when(asyncTimelockService).close();
         doThrow(new RuntimeException()).when(closeableLockService).close();
 
-        getTimeLockServices(closeableLockService, asyncTimelockService)
-                .close();
+        getTimeLockServices(closeableLockService, asyncTimelockService).close();
 
         verify(closeableLockService).close();
         verify(asyncTimelockService).close();
     }
 
-    private TimeLockServices getTimeLockServices(
-            LockService lockService,
-            AsyncTimelockService asyncTimelockService) {
+    private TimeLockServices getTimeLockServices(LockService lockService, AsyncTimelockService asyncTimelockService) {
         return TimeLockServices.create(
                 asyncTimelockService, lockService, asyncTimelockService, asyncTimelockService, mock(LockLog.class));
     }ueu(bf5b2712e6dee05d8dc96eecf020636af022fc4a}(sha(bf5b2712e6dee05d8dc96eecf020636af022fc4anode_idEC_kwDOAjP5fdoAKGJmNWIyNzEyZTZkZWUwNWQ4ZGM5NmVlY2YwMjA2MzZhZjAyMmZjNGEcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-25T13:44:55Zu	committer}(j0 Lucas Meirelesj2 meireles31@msn.comj4 2023-07-25T14:18:11ZumessageHAdd test to verify we throw if we have cached more values than we expecttree}(j( (16317b406f85ebe6c89ed0e9979a3bb49270eb39url`https://api.github.com/repos/palantir/atlasdb/git/trees/16317b406f85ebe6c89ed0e9979a3bb49270eb39uj@ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bf5b2712e6dee05d8dc96eecf020636af022fc4a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS/2aQACgkQJd22kJ7J
GixSQQgAlOQE/UUDNVbEa28fYIEYNny6pKPQ+4NcOyvug59wMlJ0V4y3e9GcPWhh
wfWgRz9xSXnoxH+iU/Q+LduMT/ucRCvYhV72oivkqb3xNdnIwA/hTLqAm+WqtIU9
SBTzrIQkReaiOogTcnagmlb1C3wW1znurve2wDOjgsMJU5E9yafULE6QnnazjFwD
jO5ax+TrTRMRWmMv+BDplLOPwTdtzsPOMxqbB4QkM9TUEgASwEH62onP9S+ZEv6Z
QbphfgaHBAdde+OBdxUL9SN6Qu1abz0Cm5lGkhHk0TNJtwCRNvwP6CJ7SHF67xa7
w98noXoTD4NAAE9CzKVGb0A8DnJaHg==
=mr05
-----END PGP SIGNATURE-----payloadX#  tree 16317b406f85ebe6c89ed0e9979a3bb49270eb39
parent 89cb06619d2a2523c2462eeb5cfb42f0eb477f34
author Lucas Meireles <meireles31@msn.com> 1690292695 +0100
committer Lucas Meireles <meireles31@msn.com> 1690294691 +0100

Add test to verify we throw if we have cached more values than we expect
uuj@ ^https://api.github.com/repos/palantir/atlasdb/commits/bf5b2712e6dee05d8dc96eecf020636af022fc4ahtml_urlShttps://github.com/palantir/atlasdb/commit/bf5b2712e6dee05d8dc96eecf020636af022fc4acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bf5b2712e6dee05d8dc96eecf020636af022fc4a/commentsj. }(loginLucasIMEidJg j* MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j@ %https://api.github.com/users/LucasIMEjN https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj6 }(jS LucasIMEjU Jg j* MDQ6VXNlcjY3ODczMTE=jW 3https://avatars.githubusercontent.com/u/6787311?v=4jY h5j@ %https://api.github.com/users/LucasIMEjN https://github.com/LucasIMEj\ /https://api.github.com/users/LucasIME/followersj^ <https://api.github.com/users/LucasIME/following{/other_user}j` 5https://api.github.com/users/LucasIME/gists{/gist_id}jb <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jd 3https://api.github.com/users/LucasIME/subscriptionsjf *https://api.github.com/users/LucasIME/orgsjh +https://api.github.com/users/LucasIME/reposjj 6https://api.github.com/users/LucasIME/events{/privacy}jl 5https://api.github.com/users/LucasIME/received_eventsjn Userjp uparents]}(j( (89cb06619d2a2523c2462eeb5cfb42f0eb477f34j@ ^https://api.github.com/repos/palantir/atlasdb/commits/89cb06619d2a2523c2462eeb5cfb42f0eb477f34jN Shttps://github.com/palantir/atlasdb/commit/89cb06619d2a2523c2462eeb5cfb42f0eb477f34uastats}(totalKG	additionsK8	deletionsKufiles](}(j( (949ef84aa10f38800cb72ef1c565de403cf127c4filenameiatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/cache/TransactionScopedCacheImpl.javastatusmodifiedj Kj K	changesKblob_urlhttps://github.com/palantir/atlasdb/blob/bf5b2712e6dee05d8dc96eecf020636af022fc4a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FTransactionScopedCacheImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/bf5b2712e6dee05d8dc96eecf020636af022fc4a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FTransactionScopedCacheImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FTransactionScopedCacheImpl.java?ref=bf5b2712e6dee05d8dc96eecf020636af022fc4apatchX  @@ -112,15 +112,11 @@ public ListenableFuture<Map<Cell, byte[]>> getAsyncWithCachedRef(
 
         CacheLookupResult cacheLookup = cacheLookup(tableReference, cells);
 
-        if (cacheLookup.missedCells().isEmpty()) {
-            return Futures.immediateFuture(filterEmptyValues(cacheLookup.cacheHits()));
-        } else {
-            return Futures.transform(
-                    valueLoader.apply(cacheLookup),
-                    uncachedValues -> processUncachedCells(
-                            tableReference, cacheLookup.cacheHits(), cacheLookup.missedCells(), uncachedValues),
-                    MoreExecutors.directExecutor());
-        }
+        return Futures.transform(
+                valueLoader.apply(cacheLookup),
+                uncachedValues -> processUncachedCells(
+                        tableReference, cacheLookup.cacheHits(), cacheLookup.missedCells(), uncachedValues),
+                MoreExecutors.directExecutor());
     }
 
     @Overrideu}(j( (197cc1f807fa41f1aeae36b617d0a13771ddcdfej matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/keyvalue/api/cache/TransactionScopedCacheImplTest.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/bf5b2712e6dee05d8dc96eecf020636af022fc4a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FTransactionScopedCacheImplTest.javaj https://github.com/palantir/atlasdb/raw/bf5b2712e6dee05d8dc96eecf020636af022fc4a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FTransactionScopedCacheImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FTransactionScopedCacheImplTest.java?ref=bf5b2712e6dee05d8dc96eecf020636af022fc4aj X?  @@ -19,12 +19,14 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.clearInvocations;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.verifyNoInteractions;
+import static org.mockito.Mockito.when;
 
 import com.google.common.collect.HashMultiset;
 import com.google.common.collect.ImmutableList;
@@ -147,14 +149,18 @@ public void lockedCellsAreNeverCached() {
     }
 
     @Test
-    public void allValuesReadFromCachePreventsReadToDb() {
+    public void allValuesReadFromCachePreventsReadToDbByPropagatingEmptySetToValueLoader() {
         TransactionScopedCache cache = TransactionScopedCacheImpl.create(snapshotWithSingleValue(), metrics);
 
+        // mocking because you can't spy a lambda
         Function<Set<Cell>, ListenableFuture<Map<Cell, byte[]>>> valueLoader = mock(Function.class);
+        when(valueLoader.apply(any())).thenReturn(Futures.immediateFuture(ImmutableMap.of()));
+
         assertThat(cache.get(TABLE, ImmutableSet.of(CELL_1), valueLoader))
                 .containsExactlyInAnyOrderEntriesOf(
                         ImmutableMap.of(CELL_1, VALUE_1.value().get()));
-        verifyNoInteractions(valueLoader);
+
+        verify(valueLoader, times(1)).apply(eq(ImmutableSet.of()));
     }
 
     @Testu}(j( (1f12d791be0c0fb3c3ad9a6283afae6bc3e4db55j satlasdb-impl-shared/src/test/java/com/palantir/atlasdb/keyvalue/api/cache/ValidatingTransactionScopedCacheTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/bf5b2712e6dee05d8dc96eecf020636af022fc4a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FValidatingTransactionScopedCacheTest.javaj https://github.com/palantir/atlasdb/raw/bf5b2712e6dee05d8dc96eecf020636af022fc4a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FValidatingTransactionScopedCacheTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FValidatingTransactionScopedCacheTest.java?ref=bf5b2712e6dee05d8dc96eecf020636af022fc4aj X  @@ -21,7 +21,6 @@
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.verifyNoInteractions;
@@ -85,12 +84,13 @@ public void validationCausesAllCellsToBeReadRemotely() {
     }
 
     @Test
-    public void validationDoesNotReadFromRemoteWhenItShouldNotValidate() {
+    public void validationDoesNotReadFromRemoteWhenItShouldNotValidateButStillPropagateValueLoaderCallWithEmptySet() {
         TransactionScopedCache delegate = TransactionScopedCacheImpl.create(snapshotWithSingleValue(), metrics);
         TransactionScopedCache validatingCache = new ValidatingTransactionScopedCache(delegate, 0.0, () -> {});
 
+        when(valueLoader.apply(any())).thenReturn(Futures.immediateFuture(ImmutableMap.of()));
         validatingCache.get(TABLE, ImmutableSet.of(CELL_1), valueLoader);
-        verify(valueLoader, never()).apply(any());
+        verify(valueLoader).apply(eq(ImmutableSet.of()));
     }
 
     @Testu}(j( (4bd9e96e7b167b6d5feccd861ab9af4c6b367ca0j eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj modifiedj K(j Kj K)j https://github.com/palantir/atlasdb/blob/bf5b2712e6dee05d8dc96eecf020636af022fc4a/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://github.com/palantir/atlasdb/raw/bf5b2712e6dee05d8dc96eecf020636af022fc4a/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=bf5b2712e6dee05d8dc96eecf020636af022fc4aj X
  @@ -1824,7 +1824,7 @@ public void keepNumberOfExpectedCellsIfCachedWithEmptyValue() {
     }
 
     @Test
-    public void dontFetchCellsIfAllCached() {
+    public void dontFetchCellsIfAllCachedButPropagateWithEmptyRequest() {
         putCellsInTable(List.of(TEST_CELL, TEST_CELL_2), TABLE_SWEPT_THOROUGH);
 
         TimelockService spiedTimeLockService = spy(timelockService);
@@ -1851,6 +1851,45 @@ public void dontFetchCellsIfAllCached() {
                         TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 2))
                 .doesNotThrowAnyException();
 
+        verify(spiedTimeLockService, never()).refreshLockLeases(any());
+        verify(spiedSnapshotTransaction)
+                .getInternal(
+                        eq("getWithExpectedNumberOfCells"),
+                        eq(TABLE_SWEPT_THOROUGH),
+                        eq(ImmutableSet.of()),
+                        anyLong(),
+                        any(),
+                        any());
+    }
+
+    @Test
+    public void throwsIfAllValuesCachedButMoreThanExpectedPresent() {
+        putCellsInTable(List.of(TEST_CELL, TEST_CELL_2), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        TransactionScopedCache txnCache = createCacheWithEntries(
+                TABLE_SWEPT_THOROUGH,
+                Map.of(
+                        TEST_CELL,
+                        "someValue".getBytes(StandardCharsets.UTF_8),
+                        TEST_CELL_2,
+                        "someOtherValue".getBytes(StandardCharsets.UTF_8)));
+
+        LockWatchManagerInternal mockLockWatchManager = mock(LockWatchManagerInternal.class);
+        when(mockLockWatchManager.getTransactionScopedCache(anyLong())).thenReturn(txnCache);
+
+        PathTypeTracker pathTypeTracker = PathTypeTrackers.constructSynchronousTracker();
+        SnapshotTransaction spiedSnapshotTransaction =
+                spy(getSnapshotTransactionWith(transactionTs, res, mockLockWatchManager, pathTypeTracker));
+        Transaction transaction = transactionWrapper.apply(spiedSnapshotTransaction, pathTypeTracker);
+
+        assertThatThrownBy(() -> transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 1))
+                .isInstanceOf(MoreCellsPresentThanExpectedException.class);
+
         verify(spiedTimeLockService, never()).refreshLockLeases(any());
         verify(spiedSnapshotTransaction, never())
                 .getInternal(ueu(f65449841f3dcc1c7b09b376cb17276fda403279}(sha(f65449841f3dcc1c7b09b376cb17276fda403279node_idEC_kwDOAjP5fdoAKGY2NTQ0OTg0MWYzZGNjMWM3YjA5YjM3NmNiMTcyNzZmZGE0MDMyNzkcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-03-02T23:42:34Zu	committer}(j 
svc-changelogj svc-changelog@palantir.comjÐ 2023-03-02T23:42:34ZumessageAdd generated changelog entriestree}(j (6525509aa6a848ef4e0b4e39e94e0587e3ebbb10url`https://api.github.com/repos/palantir/atlasdb/git/trees/6525509aa6a848ef4e0b4e39e94e0587e3ebbb10ujϐ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f65449841f3dcc1c7b09b376cb17276fda403279
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQBNGoJEHYaJX37fAFQAAD+0AEAnieRwwShesx7QC0AZvQTE8Gi
e6udRxoXk+UEQlK3hq8BAKWrxsEOeZJiysqG2Q9D9nwNXT0lxELLoueqBk3v7Zbw
=pYkA
-----END PGP SIGNATURE-----payloadX  tree 6525509aa6a848ef4e0b4e39e94e0587e3ebbb10
parent 81e62bcc2539e0bdda79d4a09272f0f06a83da85
author svc-changelog <svc-changelog@palantir.com> 1677800554 +0000
committer svc-changelog <svc-changelog@palantir.com> 1677800554 +0000

Add generated changelog entriesuujϐ ^https://api.github.com/repos/palantir/atlasdb/commits/f65449841f3dcc1c7b09b376cb17276fda403279html_urlShttps://github.com/palantir/atlasdb/commit/f65449841f3dcc1c7b09b376cb17276fda403279comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f65449841f3dcc1c7b09b376cb17276fda403279/commentsj }(login
svc-changelogidJ#j MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jϐ *https://api.github.com/users/svc-changelogjݐ  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujŐ }(j 
svc-changelogj J#j MDQ6VXNlcjg0MDc3NjAzj 4https://avatars.githubusercontent.com/u/84077603?v=4j h5jϐ *https://api.github.com/users/svc-changelogjݐ  https://github.com/svc-changelogj 4https://api.github.com/users/svc-changelog/followersj Ahttps://api.github.com/users/svc-changelog/following{/other_user}j :https://api.github.com/users/svc-changelog/gists{/gist_id}j Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j 8https://api.github.com/users/svc-changelog/subscriptionsj /https://api.github.com/users/svc-changelog/orgsj 0https://api.github.com/users/svc-changelog/reposj ;https://api.github.com/users/svc-changelog/events{/privacy}j :https://api.github.com/users/svc-changelog/received_eventsj Userj uparents]}(j (81e62bcc2539e0bdda79d4a09272f0f06a83da85jϐ ^https://api.github.com/repos/palantir/atlasdb/commits/81e62bcc2539e0bdda79d4a09272f0f06a83da85jݐ Shttps://github.com/palantir/atlasdb/commit/81e62bcc2539e0bdda79d4a09272f0f06a83da85uastats}(totalK	additionsK	deletionsK ufiles]}(j (7b88eb2fa6e908493a700ce025a282b9af951326filename$changelog/@unreleased/pr-6461.v2.ymlstatusaddedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/f65449841f3dcc1c7b09b376cb17276fda403279/changelog%2F%40unreleased%2Fpr-6461.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/f65449841f3dcc1c7b09b376cb17276fda403279/changelog%2F%40unreleased%2Fpr-6461.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6461.v2.yml?ref=f65449841f3dcc1c7b09b376cb17276fda403279patchX#  @@ -0,0 +1,7 @@
+type: fix
+fix:
+  description: All versions of `getRange()` and `getRanges()` now correctly longer
+    include locally written columns that do not match the provided `ColumnSelection`
+    in their `RowResult`s.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6461uau(cf0a32db63532dc25dbcc498e8d6a7b93f44e1da}(sha(cf0a32db63532dc25dbcc498e8d6a7b93f44e1danode_idEC_kwDOAjP5fdoAKGNmMGEzMmRiNjM1MzJkYzI1ZGJjYzQ5OGU4ZDZhN2I5M2Y0NGUxZGEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-07T19:08:31Zu	committer}(j6 Jeremy Kongj8 jkong@palantir.comj: 2023-06-07T19:08:31ZumessageSingleCellReadtree}(j. (2b1d785654b5fb9e753afd979a8a9335e08d9df4url`https://api.github.com/repos/palantir/atlasdb/git/trees/2b1d785654b5fb9e753afd979a8a9335e08d9df4ujF bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSA1bAACgkQTLdFKain
zjyKzQf6Av2Dk3DtvJnA9SanzOEcjcNEu2wfcf9nEzBlM6GdLG9urEL2m8EDt1IF
CNxduLlXp8lmwsDqEuTKlVnxXoifJlrfbunSVA4tu+74Yheu0tilQrZ0VVrz1112
pliokhLlkjWTaCSzdT2SGV8frVvhmDSR2KhfIMW99C8Zyl9Cswt/H5duEpQ4CxN8
7TjtB92dav8mv2KfItAn+xRIEarjT1hhquzMWUdqEu7xQNKS6WlP2pMvz49/SZ5E
gCTTH418jvANQh9CzcmmJgtHFvUSK8YO0QTrRB5XH+zE68SthG20aD6oDeQQX9uG
hk47vmg+QhV4ByYh3Lwy+FAVaaIjbQ==
=57VG
-----END PGP SIGNATURE-----payloadtree 2b1d785654b5fb9e753afd979a8a9335e08d9df4
parent 72b003f4750fac0d6ed4a124514bf82ba47b3918
author Jeremy Kong <jkong@palantir.com> 1686164911 +0100
committer Jeremy Kong <jkong@palantir.com> 1686164911 +0100

SingleCellRead
uujF ^https://api.github.com/repos/palantir/atlasdb/commits/cf0a32db63532dc25dbcc498e8d6a7b93f44e1dahtml_urlShttps://github.com/palantir/atlasdb/commit/cf0a32db63532dc25dbcc498e8d6a7b93f44e1dacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/commentsj4 }(login
jeremyk-91idJZ j0 MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jF 'https://api.github.com/users/jeremyk-91jT https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj< }(jY 
jeremyk-91j[ JZ j0 MDQ6VXNlcjU5NTU1MTA=j] 3https://avatars.githubusercontent.com/u/5955510?v=4j_ h5jF 'https://api.github.com/users/jeremyk-91jT https://github.com/jeremyk-91jb 1https://api.github.com/users/jeremyk-91/followersjd >https://api.github.com/users/jeremyk-91/following{/other_user}jf 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jh >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jj 5https://api.github.com/users/jeremyk-91/subscriptionsjl ,https://api.github.com/users/jeremyk-91/orgsjn -https://api.github.com/users/jeremyk-91/reposjp 8https://api.github.com/users/jeremyk-91/events{/privacy}jr 7https://api.github.com/users/jeremyk-91/received_eventsjt Userjv uparents]}(j. (72b003f4750fac0d6ed4a124514bf82ba47b3918jF ^https://api.github.com/repos/palantir/atlasdb/commits/72b003f4750fac0d6ed4a124514bf82ba47b3918jT Shttps://github.com/palantir/atlasdb/commit/72b003f4750fac0d6ed4a124514bf82ba47b3918uastats}(totalMc	additionsK	deletionsKufiles](}(j. (6580107e5fb576755452ea3aa328f978ee552266filenamexatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/SingleCellReadTransactionAction.javastatusrenamedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellReadTransactionAction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellReadTransactionAction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellReadTransactionAction.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1dapatchXU  @@ -17,24 +17,24 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedSingleCellReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import java.util.Optional;
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface ReadTransactionAction extends SingleCellTransactionAction {
+public interface SingleCellReadTransactionAction extends SingleCellTransactionAction {
 
-    default WitnessedReadTransactionAction witness(Optional<Integer> value) {
-        return ImmutableWitnessedReadTransactionAction.of(table(), cell(), value);
+    default WitnessedSingleCellReadTransactionAction witness(Optional<Integer> value) {
+        return ImmutableWitnessedSingleCellReadTransactionAction.of(table(), cell(), value);
     }
 
     @Override
     default <T> T accept(TransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-    static ReadTransactionAction of(String table, WorkloadCell workloadCell) {
-        return ImmutableReadTransactionAction.of(table, workloadCell);
+    static SingleCellReadTransactionAction of(String table, WorkloadCell workloadCell) {
+        return ImmutableSingleCellReadTransactionAction.of(table, workloadCell);
     }
 }previous_filenamenatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ReadTransactionAction.javau}(j. (0a91db8551cefb63678b7a8738390e5453d4310bj qatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionActionVisitor.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj XB  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction;
 
 public interface TransactionActionVisitor<T> {
-    T visit(ReadTransactionAction readTransactionAction);
+    T visit(SingleCellReadTransactionAction singleCellReadTransactionAction);
 
     T visit(WriteTransactionAction writeTransactionAction);
 u}(j. (9197f147ae1ecef66030e63f59ef55d515b046a6j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedSingleCellReadTransactionAction.javaj renamedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellReadTransactionAction.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellReadTransactionAction.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj Xb  @@ -21,7 +21,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedReadTransactionAction extends WitnessedSingleCellTransactionAction {
+public interface WitnessedSingleCellReadTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     @Value.Parameter
@@ -40,7 +40,7 @@ default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-    static WitnessedReadTransactionAction of(String table, WorkloadCell cell, Optional<Integer> value) {
-        return ImmutableWitnessedReadTransactionAction.of(table, cell, value);
+    static WitnessedSingleCellReadTransactionAction of(String table, WorkloadCell cell, Optional<Integer> value) {
+        return ImmutableWitnessedSingleCellReadTransactionAction.of(table, cell, value);
     }
 }j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedReadTransactionAction.javau}(j. (f5757c803ef0b621c430879709896498f246314aj atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionActionVisitor.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj Xf  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
 public interface WitnessedTransactionActionVisitor<T> {
-    T visit(WitnessedReadTransactionAction readTransactionAction);
+    T visit(WitnessedSingleCellReadTransactionAction readTransactionAction);
 
     T visit(WitnessedWriteTransactionAction writeTransactionAction);
 u}(j. (022638901e2bde8a956eab1ae699bbd6b5665f88j atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj XW  @@ -33,8 +33,8 @@ public class MaybeWitnessedTransactionTest {
     @Test
     public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
         assertThatLoggableExceptionThrownBy(() -> MaybeWitnessedTransaction.builder()
-                        .startTimestamp(START_TIMESTAMP)
-                        .build())
+                .startTimestamp(START_TIMESTAMP)
+                .build())
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining(
                         "Given how the transaction protocol works, a transaction for which we haven't retrieved the"
@@ -44,16 +44,16 @@ public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
     @Test
     public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
         assertThatCode(() -> MaybeWitnessedTransaction.builder()
-                        .startTimestamp(START_TIMESTAMP)
-                        .commitTimestamp(COMMIT_TIMESTAMP)
-                        .build())
+                .startTimestamp(START_TIMESTAMP)
+                .commitTimestamp(COMMIT_TIMESTAMP)
+                .build())
                 .doesNotThrowAnyException();
     }
 
     @Test
     public void toFullyWitnessedCopiesArgumentsCorrectly() {
         WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
-        WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
+        WitnessedSingleCellReadTransactionAction readTransactionAction = mock(WitnessedSingleCellReadTransactionAction.class);
         List<WitnessedSingleCellTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
         FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
                 .startTimestamp(START_TIMESTAMP)u}(j. (46af581c86a8d726a18632bef71a7b59c310f4c9j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj X  @@ -26,7 +26,7 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -67,7 +67,7 @@ private static final class SerializableInvariantVisitor
         private final RangeQueryReader rangeQueryReader = SimpleRangeQueryReader.create(inMemoryTransactionReplayer);
 
         @Override
-        public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+        public Optional<InvalidWitnessedTransactionAction> visit(WitnessedSingleCellReadTransactionAction readTransactionAction) {
             Optional<Integer> expectedValue = inMemoryTransactionReplayer
                     .getValues()
                     .get(TableAndWorkloadCell.of(readTransactionAction.table(), readTransactionAction.cell()))u}(j. (cfd70d1537b7536aac6af2d2ded7892cfa23796aj katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj X,  @@ -25,7 +25,7 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -58,9 +58,9 @@ final class SnapshotInvariantVisitor
     }
 
     @Override
-    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedSingleCellReadTransactionAction readTransactionAction) {
         Optional<Integer> expected = fetchValueFromView(
-                        readTransactionAction.table(), readTransactionAction.cell(), readView)
+                readTransactionAction.table(), readTransactionAction.cell(), readView)
                 .value();
         if (!expected.equals(readTransactionAction.value())) {
             return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
@@ -72,7 +72,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactio
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
-                        writeTransactionAction.table(), writeTransactionAction.cell())
+                writeTransactionAction.table(), writeTransactionAction.cell())
                 .map(mismatchedValue ->
                         InvalidWitnessedSingleCellTransactionAction.of(writeTransactionAction, mismatchedValue));
 
@@ -86,7 +86,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransacti
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
-                        deleteTransactionAction.table(), deleteTransactionAction.cell())
+                deleteTransactionAction.table(), deleteTransactionAction.cell())
                 .map(mismatchedValue ->
                         InvalidWitnessedSingleCellTransactionAction.of(deleteTransactionAction, mismatchedValue));
 u}(j. (ee5b0ff12aa3b924fea59c6136cb1b0218b00c4cj latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj X  @@ -25,7 +25,7 @@
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -69,7 +69,7 @@ public Optional<Integer> read(String table, WorkloadCell workloadCell) {
                     Map<Cell, byte[]> values = transaction.get(tableReference, Set.of(atlasCell));
                     Optional<Integer> valueRead =
                             Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
-                    witnessedTransactionActions.add(WitnessedReadTransactionAction.of(table, workloadCell, valueRead));
+                    witnessedTransactionActions.add(WitnessedSingleCellReadTransactionAction.of(table, workloadCell, valueRead));
                     return valueRead;
                 },
                 table,u}(j. (985498250dff454dc34b1c255dcdbe279b47d79ej fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj X  @@ -26,7 +26,7 @@
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
@@ -143,8 +143,8 @@ public AtlasDbTransactionActionVisitor(InteractiveTransaction transaction) {
         }
 
         @Override
-        public Void visit(ReadTransactionAction readTransactionAction) {
-            transaction.read(readTransactionAction.table(), readTransactionAction.cell());
+        public Void visit(SingleCellReadTransactionAction singleCellReadTransactionAction) {
+            transaction.read(singleCellReadTransactionAction.table(), singleCellReadTransactionAction.cell());
             return null;
         }
 u}(j. (2a72f3454d85a3f46162a823d7ff974d49615e44j patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj XL  @@ -19,7 +19,7 @@
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -33,7 +33,7 @@ public final class InMemoryTransactionReplayer implements WitnessedTransactionAc
             StructureHolder.create(HashMap::empty);
 
     @Override
-    public Void visit(WitnessedReadTransactionAction _readTransactionAction) {
+    public Void visit(WitnessedSingleCellReadTransactionAction _readTransactionAction) {
         return null;
     }
 u}(j. (b3d3f695f7e4e9d4fb51922762c4a38aaa406ec8j katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj X  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -26,8 +26,8 @@ public enum WitnessToActionVisitor implements WitnessedTransactionActionVisitor<
     INSTANCE;
 
     @Override
-    public ReadTransactionAction visit(WitnessedReadTransactionAction readTransactionAction) {
-        return ImmutableReadTransactionAction.of(readTransactionAction.table(), readTransactionAction.cell());
+    public SingleCellReadTransactionAction visit(WitnessedSingleCellReadTransactionAction readTransactionAction) {
+        return ImmutableSingleCellReadTransactionAction.of(readTransactionAction.table(), readTransactionAction.cell());
     }
 
     @Overrideu}(j. (210e97fcf2c05368ad00cb1bd6106bd7fc13e685j aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj X"  @@ -24,11 +24,11 @@
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ImmutableDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ImmutableReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ImmutableRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ImmutableRowColumnRangeReadTransactionAction.Builder;
+import com.palantir.atlasdb.workload.transaction.ImmutableSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ImmutableWriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
@@ -91,10 +91,10 @@ public Optional<WitnessedTransaction> run(TransactionStore store) {
             return store.readWrite(actions);
         }
 
-        private List<ReadTransactionAction> generateReadActions() {
+        private List<SingleCellReadTransactionAction> generateReadActions() {
             return IntStream.range(0, random.nextInt(workflowConfiguration.maxReads() + 1))
                     .boxed()
-                    .map(_index -> ImmutableReadTransactionAction.of(
+                    .map(_index -> ImmutableSingleCellReadTransactionAction.of(
                             workflowConfiguration.tableConfiguration().tableName(), randomCell()))
                     .collect(Collectors.toList());
         }u}(j. (cfe6047d6040fa841da6319b6be9cb4833b4116bj latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj Xv  @@ -24,7 +24,7 @@
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -97,15 +97,15 @@ static boolean shouldWriteToFirstCell(int taskIndex) {
     private static List<TransactionAction> createCellUpdateActions(int taskIndex, String tableName) {
         return shouldWriteToFirstCell(taskIndex)
                 ? ImmutableList.of(
-                        WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
-                        DeleteTransactionAction.of(tableName, SECOND_CELL))
+                WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
+                DeleteTransactionAction.of(tableName, SECOND_CELL))
                 : ImmutableList.of(
-                        DeleteTransactionAction.of(tableName, FIRST_CELL),
-                        WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
+                DeleteTransactionAction.of(tableName, FIRST_CELL),
+                WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
     }
 
     private static List<TransactionAction> createCellReadActions(String tableName) {
         return ImmutableList.of(
-                ReadTransactionAction.of(tableName, FIRST_CELL), ReadTransactionAction.of(tableName, SECOND_CELL));
+                SingleCellReadTransactionAction.of(tableName, FIRST_CELL), SingleCellReadTransactionAction.of(tableName, SECOND_CELL));
     }
 }u}(j. (ceffb2fe9e4ff3e0220bf803bda268edfd737954j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java     j https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj Xt
  @@ -28,7 +28,7 @@
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.logsafe.SafeArg;
@@ -58,7 +58,8 @@ public final class TransientRowsWorkflows {
 
     private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
 
-    private TransientRowsWorkflows() {}
+    private TransientRowsWorkflows() {
+    }
 
     public static Workflow create(
             InteractiveTransactionStore store,
@@ -128,19 +129,19 @@ private static List<CrossCellInconsistency> findInconsistencyInTransactionHistor
 
     private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActions(
             List<WitnessedTransactionAction> actions) {
-        Set<WitnessedReadTransactionAction> readTransactionActions = actions.stream()
-                .filter(WitnessedReadTransactionAction.class::isInstance)
-                .map(action -> (WitnessedReadTransactionAction) action)
+        Set<WitnessedSingleCellReadTransactionAction> readTransactionActions = actions.stream()
+                .filter(WitnessedSingleCellReadTransactionAction.class::isInstance)
+                .map(action -> (WitnessedSingleCellReadTransactionAction) action)
                 .collect(Collectors.toSet());
         if (readTransactionActions.size() == 0) {
             return Stream.empty();
         }
-        WitnessedReadTransactionAction summaryRowRead = readTransactionActions.stream()
+        WitnessedSingleCellReadTransactionAction summaryRowRead = readTransactionActions.stream()
                 .filter(action -> action.cell().key() == SUMMARY_ROW)
                 .findAny()
                 .orElseThrow(() -> new SafeIllegalStateException(
                         "Expected to find a read of the summary row", SafeArg.of("actions", actions)));
-        WitnessedReadTransactionAction normalRowRead = readTransactionActions.stream()
+        WitnessedSingleCellReadTransactionAction normalRowRead = readTransactionActions.stream()
                 .filter(action -> action.cell().key() != SUMMARY_ROW)
                 .findAny()
                 .orElseThrow(() -> new SafeIllegalStateException(u}(j. (8dbcfe3fb65e2dae3335d1322992d82414944b8aj latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj X  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -123,7 +123,7 @@ public void catchesWriteSkew() {
                         InvalidWitnessedSingleCellTransactionAction.class,
                         invalidSingleCellWitnessedTransactionAction -> {
                             assertThat(invalidSingleCellWitnessedTransactionAction.action())
-                                    .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
+                                    .isInstanceOfSatisfying(WitnessedSingleCellReadTransactionAction.class, action -> {
                                         assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
                                         assertThat(action.value()).contains(15);
                                     });
@@ -286,7 +286,7 @@ public void identifiesUnexpectedMissingCellInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                                action.expectedColumnsAndValues())
+                        action.expectedColumnsAndValues())
                         .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(15, 21), ColumnValue.of(20, 34)));
     }
 
@@ -314,7 +314,7 @@ public void identifiesUnexpectedAdditionalCellInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                                action.expectedColumnsAndValues())
+                        action.expectedColumnsAndValues())
                         .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
     }
 
@@ -342,7 +342,7 @@ public void identifiesIncorrectCellValuesInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                                action.expectedColumnsAndValues())
+                        action.expectedColumnsAndValues())
                         .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
     }
 
@@ -370,7 +370,7 @@ public void identifiesIncorrectOrderingInRowColumnRangeRead() {
                 getSingularFinalInvalidAction(invalidTransactions, transactions);
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
-                                action.expectedColumnsAndValues())
+                        action.expectedColumnsAndValues())
                         .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
     }
 u}(j. (0f8885514d2b9d4b851856712889543d12d6858fj patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj modifiedj K1j K1j Kbj https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj X#  @@ -30,7 +30,7 @@
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -59,38 +59,38 @@ public void before() {
     @Test
     public void witnessRecordsAllSingleCellActions() {
         assertThat(readWrite(transaction -> {
-                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-                    transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
-                }))
+            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+            transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
+        }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
-                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
     }
 
     @Test
     public void readHandlesEmptyAndPresentValue() {
         assertThat(readWrite(transaction -> {
-                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-                    transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
-                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-                }))
+            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+            transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+        }))
                 .containsExactly(
-                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
-                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+                        WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
     }
 
     @Test
     public void witnessRecordsColumnRangeActions() {
         assertThat(readWrite(transaction -> {
-                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            WORKLOAD_CELL_TWO.key(),
-                            ColumnRangeSelection.builder().build());
-                }))
+            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+            transaction.getRowColumnRange(
+                    TABLE_1,
+                    WORKLOAD_CELL_TWO.key(),
+                    ColumnRangeSelection.builder().build());
+        }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedRowColumnRangeReadTransactionAction.builder()
@@ -107,11 +107,11 @@ public void witnessRecordsColumnRangeActions() {
     @Test
     public void emptyColumnRangeReadsAreRecorded() {
         assertThat(readWrite(transaction -> {
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            WORKLOAD_CELL_TWO.key(),
-                            ColumnRangeSelection.builder().build());
-                }))
+            transaction.getRowColumnRange(
+                    TABLE_1,
+                    WORKLOAD_CELL_TWO.key(),
+                    ColumnRangeSelection.builder().build());
+        }))
                 .containsExactly(WitnessedRowColumnRangeReadTransactionAction.builder()
                         .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                 .table(TABLE_1)
@@ -126,12 +126,12 @@ public void emptyColumnRangeReadsAreRecorded() {
     public void allRelevantCellsAreRecordedForFullColumnScan() {
         int iterationCount = 1000;
         assertThat(readWrite(transaction -> {
-                    IntStream.range(0, iterationCount)
-                            .forEach(column ->
-                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-                    transaction.getRowColumnRange(
-                            TABLE_1, 1, ColumnRangeSelection.builder().build());
-                }))
+            IntStream.range(0, iterationCount)
+                    .forEach(column ->
+                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+            transaction.getRowColumnRange(
+                    TABLE_1, 1, ColumnRangeSelection.builder().build());
+        }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
@@ -149,17 +149,17 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
         int startInclusive = 313;
         int endExclusive = 855;
         assertThat(readWrite(transaction -> {
-                    IntStream.range(0, iterationCount)
-                            .forEach(column ->
-                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            1,
-                            ColumnRangeSelection.builder()
-                                    .startColumnInclusive(startInclusive)
-                                    .endColumnExclusive(endExclusive)
-                                    .build());
-                }))
+            IntStream.range(0, iterationCount)
+                    .forEach(column ->
+                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+            transaction.getRowColumnRange(
+                    TABLE_1,
+                    1,
+                    ColumnRangeSelection.builder()
+                            .startColumnInclusive(startInclusive)
+                            .endColumnExclusive(endExclusive)
+                            .build());
+        }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
@@ -229,22 +229,22 @@ private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTr
     private void assertThatThrownWhenUnknownTableReferenced(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-                    transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
-                    return null;
-                }))
+            transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
+            return null;
+        }))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Transaction action has unknown table.");
     }
 
     private void assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-                    AtlasDbInteractiveTransaction transaction =
-                            new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
-                    transaction.witness();
-                    transactionConsumer.accept(transaction);
-                    return null;
-                }))
+            AtlasDbInteractiveTransaction transaction =
+                    new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
+            transaction.witness();
+            transactionConsumer.accept(transaction);
+            return null;
+        }))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Transaction has already been witnessed and can no longer perform any actions.");
     }u}(j. (4a8dc0d2734da17fde376dcb45cb977a12e100ccj jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj modifiedj Kj Kj K6j https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj X  @@ -46,11 +46,11 @@
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore.CommitTimestampProvider;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -102,10 +102,10 @@ public void canWriteDataToStore() {
     public void witnessedTransactionMaintainsOrder() {
         List<WitnessedTransactionAction> actions = List.of(
                 WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, 100),
-                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, Optional.of(100)),
-                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_THREE, Optional.empty()),
+                WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, Optional.of(100)),
+                WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_THREE, Optional.empty()),
                 WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, 24),
-                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(24)));
+                WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(24)));
         Optional<WitnessedTransaction> maybeTransaction = store.readWrite(actions.stream()
                 .map(action -> action.accept(WitnessToActionVisitor.INSTANCE))
                 .collect(Collectors.toList()));
@@ -118,20 +118,20 @@ public void witnessedTransactionMaintainsOrder() {
     @Test
     public void readWriteHandlesAllTransactionTypes() {
         store.readWrite(List.of(WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE)));
-        assertThat(store.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+        assertThat(store.readWrite(List.of(SingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isPresent()
                 .map(WitnessedTransaction::actions)
                 .map(Iterables::getOnlyElement)
-                .map(WitnessedReadTransactionAction.class::cast)
-                .map(WitnessedReadTransactionAction::value)
+                .map(WitnessedSingleCellReadTransactionAction.class::cast)
+                .map(WitnessedSingleCellReadTransactionAction::value)
                 .contains(Optional.of(VALUE_ONE));
         store.readWrite(List.of(DeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
         assertThat(store.get(TABLE_1, WORKLOAD_CELL_ONE)).isEmpty();
     }
 
     @Test
     public void readWriteThrowsWhenTableDoesNotExist() {
-        assertThatThrownBy(() -> store.readWrite(List.of(ReadTransactionAction.of("chocolate", WORKLOAD_CELL_ONE))))
+        assertThatThrownBy(() -> store.readWrite(List.of(SingleCellReadTransactionAction.of("chocolate", WORKLOAD_CELL_ONE))))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Transaction action has unknown table.");
     }
@@ -144,14 +144,14 @@ public void readWriteReturnsEmptyWhenExceptionThrown() {
         when(transactionManager.runTaskWithRetry(any())).thenThrow(new RuntimeException());
         AtlasDbTransactionStore transactionStore = AtlasDbTransactionStore.create(
                 transactionManager, Map.of(TABLE_REFERENCE, AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
-        assertThat(transactionStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+        assertThat(transactionStore.readWrite(List.of(SingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isEmpty();
     }
 
     @Test
     public void readWriteHandlesReadOnlyTransaction() {
         Optional<WitnessedTransaction> witnessedTransaction =
-                store.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
+                store.readWrite(List.of(SingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
         assertThat(witnessedTransaction).isPresent();
         assertThat(witnessedTransaction.get().commitTimestamp()).isEmpty();
     }
@@ -164,7 +164,7 @@ public void abortedTransactionsReturnEmpty() {
         doReturn(abortedTransaction).when(onlyAbortsManager).runTaskWithConditionWithRetry(any(Supplier.class), any());
         AtlasDbTransactionStore onlyAbortsStore =
                 AtlasDbTransactionStore.create(onlyAbortsManager, TABLES_TO_ATLAS_METADATA);
-        assertThat(onlyAbortsStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+        assertThat(onlyAbortsStore.readWrite(List.of(SingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isEmpty();
     }
 
@@ -174,21 +174,21 @@ public void keyAlreadyExistExceptionResultsInMaybeWitnessedTransaction() {
                 WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
         TransactionManager keyAlreadyExistsExceptionThrowingStore = spy(manager);
         doAnswer(invocation -> {
-                    Supplier<CommitTimestampProvider> commitTimestampFetcher = invocation.getArgument(0);
-                    ConditionAwareTransactionTask<Void, CommitTimestampProvider, Exception> task =
-                            invocation.getArgument(1);
-                    return manager.runTaskWithConditionWithRetry(commitTimestampFetcher, (txn, condition) -> {
-                        manager.getKeyValueService()
-                                .putUnlessExists(
-                                        TransactionConstants.TRANSACTION_TABLE,
-                                        Map.of(
-                                                V1EncodingStrategy.INSTANCE.encodeStartTimestampAsCell(
-                                                        txn.getTimestamp()),
-                                                Ints.toByteArray(-1)));
-                        task.execute(txn, condition);
-                        return null;
-                    });
-                })
+            Supplier<CommitTimestampProvider> commitTimestampFetcher = invocation.getArgument(0);
+            ConditionAwareTransactionTask<Void, CommitTimestampProvider, Exception> task =
+                    invocation.getArgument(1);
+            return manager.runTaskWithConditionWithRetry(commitTimestampFetcher, (txn, condition) -> {
+                manager.getKeyValueService()
+                        .putUnlessExists(
+                                TransactionConstants.TRANSACTION_TABLE,
+                                Map.of(
+                                        V1EncodingStrategy.INSTANCE.encodeStartTimestampAsCell(
+                                                txn.getTimestamp()),
+                                        Ints.toByteArray(-1)));
+                task.execute(txn, condition);
+                return null;
+            });
+        })
                 .when(keyAlreadyExistsExceptionThrowingStore)
                 .runTaskWithConditionWithRetry(any(Supplier.class), any());
         AtlasDbTransactionStore onlyKeyAlreadyExistsThrowingStore =u}(j. (c661d3097db74b152dee1883f9df9482ab662fe6j tatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayerTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj X  @@ -25,7 +25,7 @@
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
 import static org.assertj.core.api.Assertions.assertThat;
 
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -44,7 +44,7 @@ public final class InMemoryTransactionReplayerTest {
     public void readActionsAreIgnored() {
         InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
         inMemoryTransactionReplayer.visit(
-                ImmutableWitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+                ImmutableWitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
         assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
     }
 u}(j. (971037703a3100aada580c79c798eac8ad8b3c98j oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitorTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj XI  @@ -21,7 +21,7 @@
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import java.util.Optional;
 import org.junit.Test;
@@ -34,9 +34,9 @@ public final class WitnessToActionVisitorTest {
 
     @Test
     public void convertsReadsCorrectly() {
-        WitnessedReadTransactionAction witnessedRead =
-                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL, Optional.of(VALUE));
-        ReadTransactionAction read = WitnessToActionVisitor.INSTANCE.visit(witnessedRead);
+        WitnessedSingleCellReadTransactionAction witnessedRead =
+                WitnessedSingleCellReadTransactionAction.of(TABLE, WORKLOAD_CELL, Optional.of(VALUE));
+        SingleCellReadTransactionAction read = WitnessToActionVisitor.INSTANCE.visit(witnessedRead);
         assertThat(read.table()).isEqualTo(witnessedRead.table());
         assertThat(read.cell()).isEqualTo(witnessedRead.cell());
     }u}(j. (230ef00ef7a92d91b04ceb7e136955d881e5cfa9j qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj X  @@ -20,7 +20,7 @@
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -69,7 +69,7 @@ public WitnessedTransactionBuilder(long startTimestamp) {
         }
 
         public WitnessedTransactionBuilder read(Integer row, Integer column, Optional<Integer> valueRead) {
-            actions.add(WitnessedReadTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), valueRead));
+            actions.add(WitnessedSingleCellReadTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), valueRead));
             return this;
         }
 u}(j. (ed9a2765bcf0961732d7159fbfca849775d47637j eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj XF  @@ -30,7 +30,7 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -95,7 +95,7 @@ public void workflowRunsReadWritesDeletes() {
                 .flatMap(Collection::stream)
                 .collect(Collectors.toList());
         assertThat(actions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
-        assertThat(actions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedSingleCellReadTransactionAction.class::isInstance);
         assertThat(actions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
         assertThat(actions).anyMatch(WitnessedRowColumnRangeReadTransactionAction.class::isInstance);
     }u}(j. (4268ff21ba88dc967e7e3835d86ccbea101b35e2j matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj X_  @@ -28,7 +28,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -96,7 +96,7 @@ public void targetCellIsReadModifiedAndDeleted() {
                 .map(WitnessedTransaction::actions)
                 .flatMap(Collection::stream)
                 .collect(Collectors.toList());
-        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedSingleCellReadTransactionAction.class::isInstance);
         assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
         assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
     }u}(j. (d82ebc82d525ca3f31eae702e98652e22d5b8db9j patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javaj modifiedj Kj Kj K,j https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj X  @@ -29,10 +29,10 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.common.concurrent.PTExecutors;
@@ -69,40 +69,40 @@ public void shouldNotWriteToFirstCellOnOddIndices() {
     public void createsReadsThenMutationsThenReads() {
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(0, TABLE_NAME))
                 .containsExactly(
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
                         WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
                         DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(1, TABLE_NAME))
                 .containsExactly(
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
                         DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
                         WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, 1),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
     }
 
     @Test
     public void writesValueCorrespondingToTaskIndexInRelevantCell() {
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(31415926, TABLE_NAME))
                 .containsExactly(
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
                         WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 31415926),
                         DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(6021023, TABLE_NAME))
                 .containsExactly(
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
                         DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
                         WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, 6021023),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
     }
 
     @Test
@@ -121,15 +121,15 @@ public void workflowHistoryPreservesStoreAndCapturesWitnessedActions() {
                 .isInstanceOf(ReadOnlyTransactionStore.class);
         assertThat(Iterables.getOnlyElement(history.history()).actions())
                 .containsExactly(
-                        WitnessedReadTransactionAction.of(
+                        WitnessedSingleCellReadTransactionAction.of(
                                 TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.empty()),
-                        WitnessedReadTransactionAction.of(
+                        WitnessedSingleCellReadTransactionAction.of(
                                 TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
                         WitnessedDeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
-                        WitnessedReadTransactionAction.of(
+                        WitnessedSingleCellReadTransactionAction.of(
                                 TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.of(0)),
-                        WitnessedReadTransactionAction.of(
+                        WitnessedSingleCellReadTransactionAction.of(
                                 TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()));
     }
 }u}(j. (5a3385dea9f8223924a0dc1c83abc2b6030deb0fj latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj Xe
  @@ -34,7 +34,7 @@
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableFullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -107,7 +107,7 @@ public void subsequentTransactionsWriteThenReadThenDelete() {
         for (int index = 1; index < ITERATION_COUNT; index++) {
             assertThat(witnessedTransactions.get(index).actions()).hasSize(7).satisfies(actions -> {
                 assertThat(actions.subList(0, 2)).allMatch(WitnessedWriteTransactionAction.class::isInstance);
-                assertThat(actions.subList(2, 5)).allMatch(WitnessedReadTransactionAction.class::isInstance);
+                assertThat(actions.subList(2, 5)).allMatch(WitnessedSingleCellReadTransactionAction.class::isInstance);
                 assertThat(actions.subList(5, 7)).allMatch(WitnessedDeleteTransactionAction.class::isInstance);
             });
         }
@@ -190,12 +190,12 @@ public void invariantReportsViolationsFromTransactionHistory() {
 
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(
             WitnessedTransactionAction action) {
-        if (action instanceof WitnessedReadTransactionAction) {
-            WitnessedReadTransactionAction readAction = (WitnessedReadTransactionAction) action;
+        if (action instanceof WitnessedSingleCellReadTransactionAction) {
+            WitnessedSingleCellReadTransactionAction readAction = (WitnessedSingleCellReadTransactionAction) action;
             if (readAction.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
-                return WitnessedReadTransactionAction.of(readAction.table(), readAction.cell(), Optional.empty());
+                return WitnessedSingleCellReadTransactionAction.of(readAction.table(), readAction.cell(), Optional.empty());
             } else {
-                return WitnessedReadTransactionAction.of(
+                return WitnessedSingleCellReadTransactionAction.of(
                         readAction.table(), readAction.cell(), Optional.of(TransientRowsWorkflows.VALUE));
             }
         } else {u}(j. (71d533ae03e6cadb5f8ac572b3d0aa5bfb22f440j hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/cf0a32db63532dc25dbcc498e8d6a7b93f44e1da/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.java?ref=cf0a32db63532dc25dbcc498e8d6a7b93f44e1daj X  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
@@ -84,10 +84,10 @@ public void ringWorkflowContainsInitialReadsForRing() {
         List<WitnessedTransactionAction> actions =
                 Iterables.getOnlyElement(history.history()).actions();
 
-        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.ringSize())
+        List<WitnessedSingleCellReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.ringSize())
                 .boxed()
                 .map(index ->
-                        WitnessedReadTransactionAction.of(TABLE_NAME, RingWorkflows.cell(index), Optional.empty()))
+                        WitnessedSingleCellReadTransactionAction.of(TABLE_NAME, RingWorkflows.cell(index), Optional.empty()))
                 .collect(Collectors.toList());
         assertThat(actions).containsAll(initialReadActions);
     }ueu(7d27d1bf8ae6931fbae7a130ef33309e0faa7078}(sha(7d27d1bf8ae6931fbae7a130ef33309e0faa7078node_idEC_kwDOAjP5fdoAKDdkMjdkMWJmOGFlNjkzMWZiYWU3YTEzMGVmMzMzMDllMGZhYTcwNzgcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-22T22:51:39Zu	committer}(jp 
Ahmed Alouanejr aalouane@palantir.comjt 2023-05-22T22:51:39Zumessagemistaketree}(jh (dd3af70d00f38ccdbbe0200f67671dcd68d53744url`https://api.github.com/repos/palantir/atlasdb/git/trees/dd3af70d00f38ccdbbe0200f67671dcd68d53744uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7d27d1bf8ae6931fbae7a130ef33309e0faa7078
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRr8fsACgkQPlMHVIT1
yho8oAf/TNDzskbgHq2pQEJTicauVri29EKPIm8gz5CV2NVk+5Ykn3d0iK+uhUFc
YOdXaiGHVXadUGT3U23aGvjL7Fxlsc81FzzAEhBJli7qQT3eLye0bqnTlVDVA0Ii
Bm17SHFyuDAD2GmhWV+q73CDAdqDZClM517a4m2pQ+V7s60QerKTlWAJ3TtlAx9c
GtEGBuyFOKrs2hagkKZlTe02R3d2wEsPwQC0CGruFsknBR1j2nlwTyQMWlOAlAlz
bcjxZ6bW/wETopKSw/5h7QMuJ2s9YR4V4cfozCTHovnbbCQ7cPAIjtJejtq3uCp0
YCzj8jJM8YXtclwJRpywGDmMI+TwUw==
=/c5u
-----END PGP SIGNATURE-----payloadtree dd3af70d00f38ccdbbe0200f67671dcd68d53744
parent 5f77e40e44257e96dfdbf2c1f04d74d165cd2ef1
author Ahmed Alouane <aalouane@palantir.com> 1684795899 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684795899 +0100

mistake
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/7d27d1bf8ae6931fbae7a130ef33309e0faa7078html_urlShttps://github.com/palantir/atlasdb/commit/7d27d1bf8ae6931fbae7a130ef33309e0faa7078comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7d27d1bf8ae6931fbae7a130ef33309e0faa7078/commentsjn }(loginergo14idJjj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujv }(j ergo14j Jjj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jh (5f77e40e44257e96dfdbf2c1f04d74d165cd2ef1j ^https://api.github.com/repos/palantir/atlasdb/commits/5f77e40e44257e96dfdbf2c1f04d74d165cd2ef1j Shttps://github.com/palantir/atlasdb/commit/5f77e40e44257e96dfdbf2c1f04d74d165cd2ef1uastats}(totalK	additionsK	deletionsKufiles]}(jh (11083e785de804bd91113c402d960c70a3e0a634filename%scripts/circle-ci/run-circle-tests.shstatusmodifiedjʒ Kj˒ KchangesKblob_url{https://github.com/palantir/atlasdb/blob/7d27d1bf8ae6931fbae7a130ef33309e0faa7078/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/7d27d1bf8ae6931fbae7a130ef33309e0faa7078/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=7d27d1bf8ae6931fbae7a130ef33309e0faa7078patchX@  @@ -101,6 +101,6 @@ case "$test_suite_index" in
     10) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_10[@]} ;;
     11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} ;;
     12) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_12[@]} ;;
-    12) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_13[@]} ;;
-    13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_14[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
+    13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_13[@]} ;;
+    14) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_14[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
 esacuau(cf3b124550171321d16a26aa990b14ad842f6a27}(sha(cf3b124550171321d16a26aa990b14ad842f6a27node_idEC_kwDOAjP5fdoAKGNmM2IxMjQ1NTAxNzEzMjFkMTZhMjZhYTk5MGIxNGFkODQyZjZhMjccommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-08-08T15:33:58Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-08-08T15:33:58ZumessageITest multiple cells for putWithMetadata
Mix it up with deleteWithMetadatatree}(jߒ (3097245665ab54b21ed0bdfea062b7faac3b0a97url`https://api.github.com/repos/palantir/atlasdb/git/trees/3097245665ab54b21ed0bdfea062b7faac3b0a97uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cf3b124550171321d16a26aa990b14ad842f6a27
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTSYGYACgkQmF9s0kaF
Iw3nfgf7B3L/gwGFtzz1hmBcBSCjNByfGz6iT/Kblhh25UrJWs2ujKej37ZxAJ4w
UbeCUzjkirkUZ2MS9lZPgQ4zPI2uqQOeiaM/TF0IqWzMYPkgxCun6xiDLU72jGxl
h0lYlfzxwNqPNj/CoBqHIZVAWhQubbz4MtUEnj26/xqo+N059y0k0K5SvvLN8+sf
U1dosU+rfkwRm6Ljl5PQa//dlgo3Ih+UNyAYBm2cZ5A9t1U4sORt5S6VJEkeVuDo
g4L4Gt4OL1mQfqdUzbYPJg9Omh2JaLdldYHUAuByO/mU/YR8ZuREfbszmH9hI3py
IlrVpiM4ZrwYxTdlfmkj6uvdHgmr+Q==
=R1Cj
-----END PGP SIGNATURE-----payloadX  tree 3097245665ab54b21ed0bdfea062b7faac3b0a97
parent 4aa0e421da39f8ef14f0398d9b73a1fae85a0752
author Tom Papke <tpapke@palantir.com> 1691508838 +0100
committer Tom Papke <tpapke@palantir.com> 1691508838 +0100

Test multiple cells for putWithMetadata
Mix it up with deleteWithMetadata
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/cf3b124550171321d16a26aa990b14ad842f6a27html_urlShttps://github.com/palantir/atlasdb/commit/cf3b124550171321d16a26aa990b14ad842f6a27comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cf3b124550171321d16a26aa990b14ad842f6a27/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j
 	Toemmschej Jboj MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj! 7https://api.github.com/users/Toemmsche/events{/privacy}j# 6https://api.github.com/users/Toemmsche/received_eventsj% Userj' uparents]}(jߒ (4aa0e421da39f8ef14f0398d9b73a1fae85a0752j ^https://api.github.com/repos/palantir/atlasdb/commits/4aa0e421da39f8ef14f0398d9b73a1fae85a0752j Shttps://github.com/palantir/atlasdb/commit/4aa0e421da39f8ef14f0398d9b73a1fae85a0752uastats}(totalK+	additionsK	deletionsKufiles](}(jߒ (f716b298867762533c9c8156112d10ec5d19f7b3filenameaatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/LocalWriteBufferTest.javastatusmodifiedjA KjB KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/cf3b124550171321d16a26aa990b14ad842f6a27/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/cf3b124550171321d16a26aa990b14ad842f6a27/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.java?ref=cf3b124550171321d16a26aa990b14ad842f6a27patchX  @@ -117,12 +117,14 @@ public void writingWithoutMetadataRemovesMetadata() {
 
     @Test
     public void canStoreValuesAndMetadataForMultipleCellsAndTables() {
-        buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of(CELL_1, METADATA_1));
-        buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_2, VALUE_2), ImmutableMap.of(CELL_2, METADATA_2));
         buffer.putLocalWritesAndMetadata(
-                TABLE_2, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of(CELL_1, METADATA_1));
+                TABLE,
+                ImmutableMap.of(CELL_1, VALUE_1, CELL_2, VALUE_2),
+                ImmutableMap.of(CELL_1, METADATA_1, CELL_2, METADATA_2));
         buffer.putLocalWritesAndMetadata(
-                TABLE_2, ImmutableMap.of(CELL_2, VALUE_2), ImmutableMap.of(CELL_2, METADATA_2));
+                TABLE_2,
+                ImmutableMap.of(CELL_1, VALUE_1, CELL_2, VALUE_2),
+                ImmutableMap.of(CELL_1, METADATA_1, CELL_2, METADATA_2));
 
         assertThat(buffer.getLocalWritesForTable(TABLE))
                 .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(CELL_1, VALUE_1, CELL_2, VALUE_2));u}(jߒ (f1a9d9322a773a61c930f815c568c2992b399b8cjG eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javajI modifiedjA KjB KjK K!jL https://github.com/palantir/atlasdb/blob/cf3b124550171321d16a26aa990b14ad842f6a27/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajN https://github.com/palantir/atlasdb/raw/cf3b124550171321d16a26aa990b14ad842f6a27/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajP https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=cf3b124550171321d16a26aa990b14ad842f6a27jR X;  @@ -2576,9 +2576,12 @@ public void metadataIsTransferredToCellLocks() {
                 ImmutableMap.of(TABLE, ConflictHandler.SERIALIZABLE_CELL, TABLE2, ConflictHandler.SERIALIZABLE_CELL));
 
         txn.putWithMetadata(
-                TABLE, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA)));
-        txn.putWithMetadata(
-                TABLE, ImmutableMap.of(TEST_CELL_2, ValueAndChangeMetadata.of(TEST_VALUE, DELETE_CHANGE_METADATA)));
+                TABLE,
+                ImmutableMap.of(
+                        TEST_CELL,
+                        ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA),
+                        TEST_CELL_2,
+                        ValueAndChangeMetadata.of(TEST_VALUE, DELETE_CHANGE_METADATA)));
         txn.putWithMetadata(
                 TABLE2, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, UNCHANGED_CHANGE_METADATA)));
 
@@ -2610,23 +2613,29 @@ public void metadataIsTransferredToRowLocks() {
                 timelockService,
                 ImmutableMap.of(TABLE, ConflictHandler.SERIALIZABLE, TABLE2, ConflictHandler.SERIALIZABLE));
 
-        txn.put(TABLE, ImmutableMap.of(Cell.create(ROW_FOO, COL_A), TEST_VALUE));
-        txn.putWithMetadata(
+        txn.delete(TABLE, ImmutableSet.of(Cell.create(ROW_FOO, COL_A)));
+        txn.deleteWithMetadata(
                 TABLE,
                 ImmutableMap.of(
-                        Cell.create(ROW_FOO, COL_B), ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA)));
-        txn.putWithMetadata(
-                TABLE2, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, UNCHANGED_CHANGE_METADATA)));
+                        Cell.create(ROW_FOO, COL_B), UPDATE_CHANGE_METADATA,
+                        Cell.create(ROW_BAR, COL_A), DELETE_CHANGE_METADATA));
+        txn.deleteWithMetadata(TABLE2, ImmutableMap.of(TEST_CELL, UNCHANGED_CHANGE_METADATA));
 
         LockDescriptor rowLock = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), ROW_FOO);
-        LockDescriptor rowLock2 = AtlasRowLockDescriptor.of(TABLE2.getQualifiedName(), TEST_CELL.getRowName());
+        LockDescriptor rowLock2 = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), ROW_BAR);
+        LockDescriptor rowLock3 = AtlasRowLockDescriptor.of(TABLE2.getQualifiedName(), TEST_CELL.getRowName());
         verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
                 txn,
                 timelockService,
                 LocksAndMetadata.of(
-                        ImmutableSet.of(rowLock, rowLock2),
+                        ImmutableSet.of(rowLock, rowLock2, rowLock3),
                         Optional.of(LockRequestMetadata.of(ImmutableMap.of(
-                                rowLock, UPDATE_CHANGE_METADATA, rowLock2, UNCHANGED_CHANGE_METADATA)))));
+                                rowLock,
+                                UPDATE_CHANGE_METADATA,
+                                rowLock2,
+                                DELETE_CHANGE_METADATA,
+                                rowLock3,
+                                UNCHANGED_CHANGE_METADATA)))));
     }
 
     @Test
@@ -3020,7 +3029,7 @@ private static void verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
                         argThat(lockRequest -> {
                             // We always acquire a lock on the transaction table
                             Set<LockDescriptor> locksWithTransactionTableLock = new ImmutableSet.Builder<
-                                    LockDescriptor>()
+                                            LockDescriptor>()
                                     .addAll(locksAndMetadata.lockDescriptors())
                                     .add(AtlasRowLockDescriptor.of(
                                             TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),ueu.      (6f0815519abd3518da0b4d2cc561cc07dfab9887}(sha(6f0815519abd3518da0b4d2cc561cc07dfab9887node_idEC_kwDOAjP5fdoAKDZmMDgxNTUxOWFiZDM1MThkYTBiNGQyY2M1NjFjYzA3ZGZhYjk4ODccommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-07-24T14:33:01Zu	committer}(jf GitHubjh noreply@github.comjj 2023-07-24T14:33:01Zumessage,Excavator:  Update policy-bot config (#6663)tree}(j^ (b40853fe7687d146a694c5b66c922d16b459d322url`https://api.github.com/repos/palantir/atlasdb/git/trees/b40853fe7687d146a694c5b66c922d16b459d322ujv bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6f0815519abd3518da0b4d2cc561cc07dfab9887
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkvoudCRBK7hj4Ov3rIwAAPMYIABjvKGVQFAkAjIc8KNWpNpBI
9Ob4J7m0hQuTNiyrkguHBb2GpmaLQoIl+UKHNUcXY9O48Dhz7KZt3uSVmatb/+yD
jePf11Nk7WwG4/xCoPX9xKpTZRTRU3rdy5phLPvwI92INsCqy3foENTzQkKo8e9a
IVTJfiqjpinfGnb83+BGK7h+PqT62sE13dhV6I0aYROr+eD2P1qiyzOU+xdTU0NY
4BXhcN+RYGwn214ldUSJe3T3kfkqHvKfEymytRLIU3jAhqmq3/hcYuBep+YlzYT5
4HvNPh0GxLWOgoaED7HNJdpf+iyk7UzNC+J6VwonUelTdnQfGEK45NzH3xK1YLY=
=9h6e
-----END PGP SIGNATURE-----
payloadX!  tree b40853fe7687d146a694c5b66c922d16b459d322
parent 4a0d9bb9024e1dc8ada49fc9f19064dfb0d4aa7d
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1690209181 -0700
committer GitHub <noreply@github.com> 1690209181 +0000

Excavator:  Update policy-bot config (#6663)

 uujv ^https://api.github.com/repos/palantir/atlasdb/commits/6f0815519abd3518da0b4d2cc561cc07dfab9887html_urlShttps://github.com/palantir/atlasdb/commit/6f0815519abd3518da0b4d2cc561cc07dfab9887comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6f0815519abd3518da0b4d2cc561cc07dfab9887/commentsjd }(loginsvc-excavator-botidJj` MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5jv .https://api.github.com/users/svc-excavator-botj $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminujl }(j web-flowj J/j` MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5jv %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j^ (4a0d9bb9024e1dc8ada49fc9f19064dfb0d4aa7djv ^https://api.github.com/repos/palantir/atlasdb/commits/4a0d9bb9024e1dc8ada49fc9f19064dfb0d4aa7dj Shttps://github.com/palantir/atlasdb/commit/4a0d9bb9024e1dc8ada49fc9f19064dfb0d4aa7duastats}(totalK	additionsK	deletionsKufiles]}(j^ (95c0afd59482612e75dcd14fb8ccaca826a94dfdfilename.policy.ymlstatusmodifiedj Kj KchangesKblob_url]https://github.com/palantir/atlasdb/blob/6f0815519abd3518da0b4d2cc561cc07dfab9887/.policy.ymlraw_url\https://github.com/palantir/atlasdb/raw/6f0815519abd3518da0b4d2cc561cc07dfab9887/.policy.ymlcontents_urlohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=6f0815519abd3518da0b4d2cc561cc07dfab9887patchXe  @@ -48,20 +48,22 @@ approval_rules:
       permissions: ["admin", "maintain"]
     if:
       has_author_in:
-        users: [ "svc-excavator-bot" ]
+        users: [ "svc-excavator-bot", "dependabot[bot]" ]
 
   - name: excavator only touched baseline, circle, gradle files, godel files, generated code, go dependencies, docker-compose-rule config or versions.props
     requires:
       count: 0
     if:
       has_author_in:
-        users: [ "svc-excavator-bot" ]
+        users: [ "svc-excavator-bot", "dependabot[bot]" ]
       only_changed_files:
         # product-dependencies.lock should never go here, to force review of all product (SLS) dependency changes
         # this way excavator cannot change the deployability of a service or product via auto-merge
         paths:
           - "changelog/@unreleased/.*\\.yml"
           - "^\\.baseline/.*$"
+          - "^(.+/)?Cargo.toml$"
+          - "^Cargo.lock$"
           - "^\\.circleci/.*$"
           - "^\\.docker-compose-rule\\.yml$"
           - "^.*gradle$"
@@ -83,7 +85,7 @@ approval_rules:
           - "^internal/generated_src/.*"
           - "^gradle-baseline-java/src/main/resources/checkstyle.version$"
       has_valid_signatures_by_keys:
-        key_ids: ["C9AF124A484882E0"]
+        key_ids: ["C9AF124A484882E0", "4AEE18F83AFDEB23"]
 
   - name: excavator only touched config files
     requires:uau(08b8b44cc1a55f6a0c550e1e6d2e7621b98625d4}(sha(08b8b44cc1a55f6a0c550e1e6d2e7621b98625d4node_idEC_kwDOAjP5fdoAKDA4YjhiNDRjYzFhNTVmNmEwYzU1MGUxZTZkMmU3NjIxYjk4NjI1ZDQcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-22T12:19:32Zu	committer}(jݓ 
Ahmed Alouanejߓ aalouane@palantir.comj 2023-05-22T12:19:32ZumessageWRevert "compile compile"

This reverts commit 8dd47179d8862282fb4a094308e26b5b65e8dcf3.tree}(jՓ (bf1efbed3af353bd911ab7b023da078f38947c3eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/bf1efbed3af353bd911ab7b023da078f38947c3euj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/08b8b44cc1a55f6a0c550e1e6d2e7621b98625d4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRrXdUACgkQPlMHVIT1
yhqUDwf9G8BBQMdy1gnp7hxNew8MLdPefT8zM8Zr5HhlSJHbRGeRx64CmS2b2uka
L4GSd1LALFnCW6qavleex1i8oRtoO5YWtBa1asinsndPtmiF1kHTbElJjBBF4VT5
Kbz+yBzQNpG21DqEvBvKCt4X/VdhYCpwzSS7TQzO69s+NbqZ5WzJPUimyWR8/n7K
ibSwx9Ey+XQxo5piQrV5c/NXqhH30RQ8ImJ4UanRApV7CDsL703Ga5KvMRpZa96f
k3NsV0cNvqfkT6mXSZ4KrnWpwch57yAbel9wUoK/kY6LojMAn+xnGrwjHeCWcbhp
Ppq+QRyxuWpcNk/O6vLnjbqAGNZ2MQ==
=HXTu
-----END PGP SIGNATURE-----payloadX6  tree bf1efbed3af353bd911ab7b023da078f38947c3e
parent 95c8c250a8302f33c0d69c0c67b435dbf42f4ec4
author Ahmed Alouane <aalouane@palantir.com> 1684757972 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684757972 +0100

Revert "compile compile"

This reverts commit 8dd47179d8862282fb4a094308e26b5b65e8dcf3.
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/08b8b44cc1a55f6a0c550e1e6d2e7621b98625d4html_urlShttps://github.com/palantir/atlasdb/commit/08b8b44cc1a55f6a0c550e1e6d2e7621b98625d4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/08b8b44cc1a55f6a0c550e1e6d2e7621b98625d4/commentsjۓ }(loginergo14idJjד MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j  ergo14j Jjד MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j	 -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j
 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jՓ (95c8c250a8302f33c0d69c0c67b435dbf42f4ec4j ^https://api.github.com/repos/palantir/atlasdb/commits/95c8c250a8302f33c0d69c0c67b435dbf42f4ec4j Shttps://github.com/palantir/atlasdb/commit/95c8c250a8302f33c0d69c0c67b435dbf42f4ec4uastats}(totalK	additionsK	deletionsKufiles]}(jՓ (97d4354e82ad28af333625140441ffe7750a2b0dfilename.circleci/config.ymlstatusmodifiedj7 Kj8 KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/08b8b44cc1a55f6a0c550e1e6d2e7621b98625d4/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/08b8b44cc1a55f6a0c550e1e6d2e7621b98625d4/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=08b8b44cc1a55f6a0c550e1e6d2e7621b98625d4patchXS  @@ -151,25 +151,16 @@ workflows:
               only: /.*/
       - test-suite:
           requires: [build]
-          matrix:
-            alias: compile
-            parameters:
-              suite: [13]
-          filters:
-            tags:
-              only: /.*/
-      - test-suite:
-          requires: [build, compile]
           matrix:
             alias: test-no-tl
             parameters:
               # intentionally excluding 12 (TimeLock migration ETE test) from this collection
-              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13]
           filters:
             tags:
               only: /.*/
       - test-suite:
-          requires: [build, compile]
+          requires: [build]
           matrix:
             alias: test-tl
             parameters:
@@ -190,7 +181,7 @@ workflows:
             branches:
               ignore: [develop]
       - deploy:
-          requires: [build, compile, test]
+          requires: [build, test]
           filters:
             branches:
               only: developuau(157f6ab25629d95e50b6de28f4fa361dd2287687}(sha(157f6ab25629d95e50b6de28f4fa361dd2287687node_idEC_kwDOAjP5fdoAKDE1N2Y2YWIyNTYyOWQ5NWU1MGI2ZGUyOGY0ZmEzNjFkZDIyODc2ODccommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-04T13:20:58Zu	committer}(jT 
Sam KramerjV skramer@palantir.comjX 2023-04-04T13:20:58Zumessage*create script to easily push to antithesistree}(jL (dd03bd1cd912b818a169ec1ee410eeda3a8fe382url`https://api.github.com/repos/palantir/atlasdb/git/trees/dd03bd1cd912b818a169ec1ee410eeda3a8fe382ujd bhttps://api.github.com/repos/palantir/atlasdb/git/commits/157f6ab25629d95e50b6de28f4fa361dd2287687
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQsJDoACgkQmPPOpKR4
XS2fcAgA0fauv6PK1SuqtggZza5XQnHes4qRbSsm7Rr1n93XcSfB2LOefmG2I2GE
DJUevk9EeWkk6YGK5hzyztlDHkg5P8AyciaOTPRhS5y1S2MHemS2rgpjt1Ts998p
nmkTcEek8YeUDXyp9bhgcKlQ5EeG55voFuBnptyoI4E6k4zN+qvt+BNf56gCavip
rG0mPxIjwSeCjCn3+1V8LvjxDt/VsKgrecAFmJ0u3sf2oMV0v5zKla/X7CpbW3eL
gBzEVEwX3iovqr5UqoAi2V7cbShTK/waW7J5IuX/CMfOLv8iuzCMEQr3r2ouwuMm
1SG3pjhlX/4ms53ljSnD+Uz8s9cpXw==
=pcuF
-----END PGP SIGNATURE-----payloadX  tree dd03bd1cd912b818a169ec1ee410eeda3a8fe382
parent c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263
author Sam Kramer <skramer@palantir.com> 1680614458 +0100
committer Sam Kramer <skramer@palantir.com> 1680614458 +0100

create script to easily push to antithesis
uujd ^https://api.github.com/repos/palantir/atlasdb/commits/157f6ab25629d95e50b6de28f4fa361dd2287687html_urlShttps://github.com/palantir/atlasdb/commit/157f6ab25629d95e50b6de28f4fa361dd2287687comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/157f6ab25629d95e50b6de28f4fa361dd2287687/commentsjR }(login
Sam-KrameridJ^2_ jN MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jd 'https://api.github.com/users/Sam-Kramerjr https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujZ }(jw 
Sam-Kramerjy J^2_ jN MDQ6VXNlcjYyMzg4MTQ=j{ 3https://avatars.githubusercontent.com/u/6238814?v=4j} h5jd 'https://api.github.com/users/Sam-Kramerjr https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jL (c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263jd ^https://api.github.com/repos/palantir/atlasdb/commits/c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263jr Shttps://github.com/palantir/atlasdb/commit/c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263uastats}(totalK	additionsK	deletionsK ufiles]}(jL (e85c50f63d054cf6720489aaceb8563ccd430d87filename*scripts/circle-ci/publish-to-antithesis.shstatusaddedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/157f6ab25629d95e50b6de28f4fa361dd2287687/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shraw_urlhttps://github.com/palantir/atlasdb/raw/157f6ab25629d95e50b6de28f4fa361dd2287687/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=157f6ab25629d95e50b6de28f4fa361dd2287687patchX  @@ -0,0 +1,19 @@
+#!/bin/bash
+
+printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://${ANTITHESIS_REPO_URL} --password-stdin
+
+./gradlew docker
+
+docker pull palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+docker tag palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra ${ANTITHESIS_REPO_URL}/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+docker push ${ANTITHESIS_REPO_URL}/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+
+docker tag palantirtechnologies/timelock-server-distribution:unspecified ${ANTITHESIS_REPO_URL}/timelock-server-distribution:unspecified
+docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:unspecified
+
+docker tag palantirtechnologies/atlasdb-workload-server-distribution:unspecified ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:unspecified
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:unspecified
+
+LATEST_ANTITHESIS_TAG=$(docker image ls palantirtechnologies/atlasdb-workload-server-antithesis --format "{{.Tag}}")
+docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${LATEST_ANTITHESIS_TAG}
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${LATEST_ANTITHESIS_TAG}
\ No newline at end of fileuau(014c2733aa7b1997bd08a2e5deb58536552d77f7}(sha(014c2733aa7b1997bd08a2e5deb58536552d77f7node_idEC_kwDOAjP5fdoAKDAxNGMyNzMzYWE3YjE5OTdiZDA4YTJlNWRlYjU4NTM2NTUyZDc3Zjccommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-12T16:06:51Zu	committer}(j˔ 	Tom Papkej͔ tpapke@palantir.comjϔ 2023-07-12T16:06:51ZumessageRemove changelogtree}(jÔ (3fb826eeccc24afd58ed6f714fbe5bba111513f2url`https://api.github.com/repos/palantir/atlasdb/git/trees/3fb826eeccc24afd58ed6f714fbe5bba111513f2uj۔ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/014c2733aa7b1997bd08a2e5deb58536552d77f7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEyBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSuz5sACgkQmF9s0kaF
Iw0SYQf4uU25kfS3vguVZvdYyUVXuFV9KuoUqZPjJNRWk3ZrroFGpUGJNdpXQIto
pUBxLIfNcotGL1l5sOly/d/rBYAenqS1rg0DTp6lIEajxzwLJBk67H4cc/fwA0Lp
hTTxZKmeJNf5r2f1FzyRPjHP0S2I9rHhAesGL+UygoSs50IT/+fb9pdbT7BCWTTU
TO/Lhwm6WHFrTFFHqw3Y6BrhkDf1zu5Jg9UGV9jFuZ88kdQt9lTVTJV86BFSQNin
v3qPDkoXYbM1TIq6aNsPefNrqMIWI6GFrO6Zzdst5+vwBQIkEbwm4JKOcjY6iwEh
dIg7+82fQAJPpylfOe0nGP0A6jp2
=kg2e
-----END PGP SIGNATURE-----payloadtree 3fb826eeccc24afd58ed6f714fbe5bba111513f2
parent 87347505912a61b0e772bd233e41dd25de3f440e
author Tom Papke <tpapke@palantir.com> 1689178011 +0100
committer Tom Papke <tpapke@palantir.com> 1689178011 +0100

Remove changelog
uuj۔ ^https://api.github.com/repos/palantir/atlasdb/commits/014c2733aa7b1997bd08a2e5deb58536552d77f7html_urlShttps://github.com/palantir/atlasdb/commit/014c2733aa7b1997bd08a2e5deb58536552d77f7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/014c2733aa7b1997bd08a2e5deb58536552d77f7/commentsjɔ }(login	ToemmscheidJbojŔ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j۔ &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujє }(j 	Toemmschej JbojŔ MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j۔ &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj	 Userj uparents]}(jÔ (87347505912a61b0e772bd233e41dd25de3f440ej۔ ^https://api.github.com/repos/palantir/atlasdb/commits/87347505912a61b0e772bd233e41dd25de3f440ej Shttps://github.com/palantir/atlasdb/commit/87347505912a61b0e772bd233e41dd25de3f440euastats}(totalK	additionsK 	deletionsKufiles]}(jÔ (9e457103994f0014a2fef20927e5151ff97c4f68filename$changelog/@unreleased/pr-6652.v2.ymlstatusremovedj% K j& KchangesKblob_url|https://github.com/palantir/atlasdb/blob/87347505912a61b0e772bd233e41dd25de3f440e/changelog%2F%40unreleased%2Fpr-6652.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/87347505912a61b0e772bd233e41dd25de3f440e/changelog%2F%40unreleased%2Fpr-6652.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6652.v2.yml?ref=87347505912a61b0e772bd233e41dd25de3f440epatch@@ -1,5 +0,0 @@
-type: improvement
-improvement:
-  description: '[LWMeta] Add index encoding utility class'
-  links:
-  - https://github.com/palantir/atlasdb/pull/6652uau(e1ea6c2ee0f2f913cbae1f5f15eaac1423f3ec68}(sha(e1ea6c2ee0f2f913cbae1f5f15eaac1423f3ec68node_idEC_kwDOAjP5fdoAKGUxZWE2YzJlZTBmMmY5MTNjYmFlMWY1ZjE1ZWFhYzE0MjNmM2VjNjgcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-28T14:48:59Zu	committer}(jB 
Ahmed AlouanejD aalouane@palantir.comjF 2023-04-28T14:48:59Zumessagebyetree}(j: (734f9e22fe714cec53743a00920211457840f174url`https://api.github.com/repos/palantir/atlasdb/git/trees/734f9e22fe714cec53743a00920211457840f174ujR bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e1ea6c2ee0f2f913cbae1f5f15eaac1423f3ec68
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRL3NsACgkQPlMHVIT1
yhpvZgf+JPEh5BOW9I1k+saE5iuFnfxclG/1XODNYm/4QIgje3ccEVAt0OqfDDcs
zQshmDqXIgsCXWkBP1Y9TdCQ6ZEPQtKTk3EPPw3cnkp+/XVGt27VutFVLnGqvLrd
cGN7k1haUz8B0DFV6vrlLNMPdVDafahPCYjdiFX8tBEqbBUVbDBfhTVpWlVCq6MR
HsL2CfnyVJLQeskR3RJUtrj1Msedt5gQKk1xtN1mvC1KlDZ+crV2/+wIDpH+wv4H
JM9zsFS2Aol+FVvl+wQukDcWExoME/2Wd6k8MOpgnfraCwDvRCR5gYjt2FSzDk87
mz0ASqsI4rpYWWqkq8cMZQPvbOQxhw==
=i9ua
-----END PGP SIGNATURE-----payloadtree 734f9e22fe714cec53743a00920211457840f174
parent 31396508c229b7d0f3ef77e6b9361e854784ed07
author Ahmed Alouane <aalouane@palantir.com> 1682693339 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682693339 +0100

bye
uujR ^https://api.github.com/repos/palantir/atlasdb/commits/e1ea6c2ee0f2f913cbae1f5f15eaac1423f3ec68html_urlShttps://github.com/palantir/atlasdb/commit/e1ea6c2ee0f2f913cbae1f5f15eaac1423f3ec68comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e1ea6c2ee0f2f913cbae1f5f15eaac1423f3ec68/commentsj@ }(loginergo14idJj< MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jR #https://api.github.com/users/ergo14j` https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujH }(je ergo14jg Jj< MDQ6VXNlcjMwOTAzNzM2ji 4https://avatars.githubusercontent.com/u/30903736?v=4jk h5jR #https://api.github.com/users/ergo14j` https://github.com/ergo14jn -https://api.github.com/users/ergo14/followersjp :https://api.github.com/users/ergo14/following{/other_user}jr 3https://api.github.com/users/ergo14/gists{/gist_id}jt :https://api.github.com/users/ergo14/starred{/owner}{/repo}jv 1https://api.github.com/users/ergo14/subscriptionsjx (https://api.github.com/users/ergo14/orgsjz )https://api.github.com/users/ergo14/reposj| 4https://api.github.com/users/ergo14/events{/privacy}j~ 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j: (31396508c229b7d0f3ef77e6b9361e854784ed07jR ^https://api.github.com/repos/palantir/atlasdb/commits/31396508c229b7d0f3ef77e6b9361e854784ed07j` Shttps://github.com/palantir/atlasdb/commit/31396508c229b7d0f3ef77e6b9361e854784ed07uastats}(totalK	additionsK	deletionsK ufiles]}(j: (3ff20c89788655753a8b15d128544927adea49bdfilenamebuild.gradlestatusmodifiedj Kj K changesKblob_url^https://github.com/palantir/atlasdb/blob/e1ea6c2ee0f2f913cbae1f5f15eaac1423f3ec68/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/e1ea6c2ee0f2f913cbae1f5f15eaac1423f3ec68/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=e1ea6c2ee0f2f913cbae1f5f15eaac1423f3ec68patch@@ -4,6 +4,11 @@ import org.gradle.plugins.ide.idea.model.IdeaModel
 
 
 
+
+
+
+
+
 buildscript {
     repositories {
         mavenCentral() { metadataSources { mavenPom(); ignoreGradleMetadataRedirection() } }uau(c1f7e5db2dba2f5d9cb5ba8ca0664b1b8b8c9e37}(sha(c1f7e5db2dba2f5d9cb5ba8ca0664b1b8b8c9e37node_idEC_kwDOAjP5fdoAKGMxZjdlNWRiMmRiYTJmNWQ5Y2I1YmE4Y2EwNjY0YjFiOGI4YzllMzccommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-17T10:08:23Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-04-17T10:08:23Zumessagechange version to unspecifiedtree}(j (36d1c1f63651ffee8f762bfe43845508b4a565a6url`https://api.github.com/repos/palantir/atlasdb/git/trees/36d1c1f63651ffee8f762bfe43845508b4a565a6ujɕ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c1f7e5db2dba2f5d9cb5ba8ca0664b1b8b8c9e37
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ9GpgACgkQmPPOpKR4
XS0JmAf+OetbFOmY6T+BjdmlcXZckdblbzgc5172byLb715DjTQF5JVwa1XZ5Mwg
+SuVSyESPBJj7KdfxP3R4aknWad719kLDt+4cFx5sN50GobXeA9j7ody8Ksj6zTD
5ofAE3lq/pDOs6WjqLRfhWyrU24nkSh8mNdukKdTTkiuladTD1qWEPcW1RpN8R8q
bGe7k6ki+df9ro0c6dgrl1zAwpRkWxn4vxKgGQw2RULPBG6xVFaxiFbmWRwdnGm7
iDPDqIMEglnmmFbAIXQluWSmztXkFxj8iQcvEr7pc5bWMkj+sXlStNoxBpBwxMAv
55NghJQmaUaRscY82rCegUlMQ+5jOw==
=LUVl
-----END PGP SIGNATURE-----payloadtree 36d1c1f63651ffee8f762bfe43845508b4a565a6
parent 143be05923383c9ea844ab41a19b4e0a324bd87c
author Sam Kramer <skramer@palantir.com> 1681726103 +0100
committer Sam Kramer <skramer@palantir.com> 1681726103 +0100

change version to unspecified
uujɕ ^https://api.github.com/repos/palantir/atlasdb/commits/c1f7e5db2dba2f5d9cb5ba8ca0664b1b8b8c9e37html_urlShttps://github.com/palantir/atlasdb/commit/c1f7e5db2dba2f5d9cb5ba8ca0664b1b8b8c9e37comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c1f7e5db2dba2f5d9cb5ba8ca0664b1b8b8c9e37/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jɕ 'https://api.github.com/users/Sam-Kramerjו https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(jܕ 
Sam-Kramerjޕ J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5jɕ 'https://api.github.com/users/Sam-Kramerjו https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (143be05923383c9ea844ab41a19b4e0a324bd87cjɕ ^https://api.github.com/repos/palantir/atlasdb/commits/143be05923383c9ea844ab41a19b4e0a324bd87cjו Shttps://github.com/palantir/atlasdb/commit/143be05923383c9ea844ab41a19b4e0a324bd87cuastats}(totalK	additionsK	deletionsKufiles]}(j (c06fe3c9bd6b02b059d57839730b82d03c5ab3fcfilename*scripts/circle-ci/publish-to-antithesis.shstatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/c1f7e5db2dba2f5d9cb5ba8ca0664b1b8b8c9e37/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shraw_urlhttps://github.com/palantir/atlasdb/raw/c1f7e5db2dba2f5d9cb5ba8ca0664b1b8b8c9e37/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=c1f7e5db2dba2f5d9cb5ba8ca0664b1b8b8c9e37patchXm  @@ -25,5 +25,5 @@ docker tag palantirtechnologies/atlasdb-workload-server-distribution:unspecified
 docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:unspecified
 
 LATEST_ANTITHESIS_TAG=$(docker image ls palantirtechnologies/atlasdb-workload-server-antithesis --format "{{.Tag}}")
-docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}
\ No newline at end of file
+docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:unspecified
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:unspecified
\ No newline at end of fileuau(30998248f7179d6ab5e35a45525d8261d5163073}(sha(30998248f7179d6ab5e35a45525d8261d5163073node_idEC_kwDOAjP5fdoAKDMwOTk4MjQ4ZjcxNzlkNmFiNWUzNWE0NTUyNWQ4MjYxZDUxNjMwNzMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-08-08T17:02:03Zu	committer}(j0 GitHubj2 noreply@github.comj4 2023-08-08T17:02:03ZumessagePChanging TransactionManagerTest to be Correct when Switching to Embedded (#6697)tree}(j( (e7d193a8f3b5fcaa3f5bdf2c6b03258c6bab4995url`https://api.github.com/repos/palantir/atlasdb/git/trees/e7d193a8f3b5fcaa3f5bdf2c6b03258c6bab4995uj@ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/30998248f7179d6ab5e35a45525d8261d5163073
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk0nULCRBK7hj4Ov3rIwAApAoIAGBGUNuvo+cppwr5UhApuPBd
Dn2bPiUoS6Qo5/NIjKyzEi0J46/Xxd/M4l4azsp/l0qpdqiAY9o/2LXK3HXjscEC
/GnqCGjCDBGSL5fcBCWTDO46+eEkkXBMl0TJbk6lHKxZKreKfCVl6QyxvUGS8Ebz
rgRZ5CjUxA1fLQojlnHXh99oOpi5KpG/s/q4+diq8akS1XxznGsQpnodzi3boXp0
KjarZ1MXug7AFiZsZhrFYDUIlCBZyUKg0+BFan00TTppScVy67BR++9bpbs5CDDF
v1SXH16dUjf18BVlRLk/Q6NCRC2xaUr5HzLGHRkFjeqW6zIoXTXmIGK1pRpOIfI=
=xq9m
-----END PGP SIGNATURE-----
payloadX!  tree e7d193a8f3b5fcaa3f5bdf2c6b03258c6bab4995
parent b7ae7fc524208ab2d56a9f602040439421aeb300
author Jeremy Kong <jkong@palantir.com> 1691514123 +0100
committer GitHub <noreply@github.com> 1691514123 -0400

Changing TransactionManagerTest to be Correct when Switching to Embedded (#6697)

uuj@ ^https://api.github.com/repos/palantir/atlasdb/commits/30998248f7179d6ab5e35a45525d8261d5163073html_urlShttps://github.com/palantir/atlasdb/commit/30998248f7179d6ab5e35a45525d8261d5163073comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/30998248f7179d6ab5e35a45525d8261d5163073/commentsj. }(login
jeremyk-91idJZ j* MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j@ 'https://api.github.com/users/jeremyk-91jN https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj6 }(jS web-flowjU J/j* MDQ6VXNlcjE5ODY0NDQ3jW 4https://avatars.githubusercontent.com/u/19864447?v=4jY h5j@ %https://api.github.com/users/web-flowjN https://github.com/web-flowj\ /https://api.github.com/users/web-flow/followersj^ <https://api.github.com/users/web-flow/following{/other_user}j` 5https://api.github.com/users/web-flow/gists{/gist_id}jb <https://api.github.com/users/web-flow/starred{/owner}{/repo}jd 3https://api.github.com/users/web-flow/subscriptionsjf *https://api.github.com/users/web-flow/orgsjh +https://api.github.com/users/web-flow/reposjj 6https://api.github.com/users/web-flow/events{/privacy}jl 5https://api.github.com/users/web-flow/received_eventsjn Userjp uparents]}(j( (b7ae7fc524208ab2d56a9f602040439421aeb300j@ ^https://api.github.com/repos/palantir/atlasdb/commits/b7ae7fc524208ab2d56a9f602040439421aeb300jN Shttps://github.com/palantir/atlasdb/commit/b7ae7fc524208ab2d56a9f602040439421aeb300uastats}(totalKM	additionsK	deletionsKIufiles]}(j( (87cf95107ba7694161f7107c671122a0577e4fccfilename\atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/factory/TransactionManagersTest.javastatusmodifiedj Kj KIchangesKMblob_urlhttps://github.com/palantir/atlasdb/blob/30998248f7179d6ab5e35a45525d8261d5163073/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/30998248f7179d6ab5e35a45525d8261d5163073/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.java?ref=30998248f7179d6ab5e35a45525d8261d5163073patchX.  @@ -19,7 +19,6 @@
 import static com.github.tomakehurst.wiremock.client.WireMock.containing;
 import static com.github.tomakehurst.wiremock.client.WireMock.findAll;
 import static com.github.tomakehurst.wiremock.client.WireMock.get;
-import static com.github.tomakehurst.wiremock.client.WireMock.getRequestedFor;
 import static com.github.tomakehurst.wiremock.client.WireMock.post;
 import static com.github.tomakehurst.wiremock.client.WireMock.postRequestedFor;
 import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo;
@@ -37,7 +36,6 @@
 import com.github.tomakehurst.wiremock.junit.WireMockRule;
 import com.github.tomakehurst.wiremock.verification.LoggedRequest;
 import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -92,14 +90,12 @@
 import com.palantir.timestamp.TimestampStoreInvalidator;
 import com.palantir.tokens.auth.AuthHeader;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
-import com.palantir.tritium.metrics.registry.MetricName;
 import java.io.IOException;
 import java.nio.charset.StandardCharsets;
 import java.nio.file.Paths;
 import java.time.Duration;
 import java.util.Collection;
 import java.util.List;
-import java.util.Map;
 import java.util.Optional;
 import java.util.UUID;
 import java.util.concurrent.TimeUnit;
@@ -238,31 +234,6 @@ public void userAgentsPresentOnRequestsToRemoteTimestampAndLockServices() {
         verifyUserAgentOnRawTimestampAndLockRequests();
     }
 
-    @Test
-    public void userAgentsPresentOnRequestsWithLeaderBlockConfigured() throws IOException {
-        setUpLeaderBlockInConfig();
-
-        verifyUserAgentOnRawTimestampAndLockRequests();
-    }
-
-    @Test
-    public void remoteCallsStillMadeIfPingableLeader404s() throws IOException {
-        setUpForRemoteServices();
-        setUpLeaderBlockInConfig();
-
-        LockAndTimestampServices lockAndTimestamp = getLockAndTimestampServices();
-        availableServer.verify(getRequestedFor(urlMatching(LEADER_UUID_PATH)));
-
-        lockAndTimestamp.timelock().getFreshTimestamp();
-        lockAndTimestamp.lock().currentTimeMillis();
-
-        // TODO (jkong): Assert v2 once we move Leader Block to v2 as well
-        availableServer.verify(postRequestedFor(urlMatching(TIMESTAMP_PATH))
-                .withHeader(USER_AGENT_HEADER, containing(EXPECTED_USER_AGENT_STRING)));
-        availableServer.verify(postRequestedFor(urlMatching(LOCK_PATH))
-                .withHeader(USER_AGENT_HEADER, containing(EXPECTED_USER_AGENT_STRING)));
-    }
-
     @Test
     public void tryUnlockIsAsync() throws IOException {
         setUpLeaderBlockInConfig();
@@ -527,24 +498,13 @@ private TransactionManagers withLockImmutableTsOnReadOnlyTransaction(boolean opt
     }
 
     @Test
-    public void metricsAreNotDirectlyReportedFromLocalService() throws IOException {
+    public void metricsAreReportedWhenUsingEmbeddedService() throws IOException {
         setUpLeaderBlockInConfig();
 
-        assertThatTimeAndLockMetricsAreNotRecorded(
+        assertThatTimeAndLockMetricsAreRecorded(
                 TIMESTAMP_SERVICE_FRESH_TIMESTAMP_METRIC, LOCK_SERVICE_CURRENT_TIME_METRIC);
     }
 
-    @Test
-    public void metricsAreReportedExactlyOnceWhenUsingRemoteService() throws IOException {
-        setUpForRemoteServices();
-        setUpLeaderBlockInConfig();
-
-        assertThatTimeAndLockMetricsWithTagsAreRecorded(
-                TIMESTAMP_SERVICE_FRESH_TIMESTAMP_METRIC,
-                NAMESPACE_AGNOSTIC_LOCK_RPC_CLIENT_CURRENT_TIME_METRIC,
-                ImmutableMap.of());
-    }
-
     @Test
     public void timeLockMigrationReportsReadyIfMigrationDone() {
         when(migrator.isInitialized()).thenReturn(true);
@@ -641,7 +601,7 @@ private static boolean isSweepStatsKvsPresentInDelegatingChain(KeyValueService k
         return services.stream().anyMatch(TransactionManagersTest::isSweepStatsKvsPresentInDelegatingChain);
     }
 
-    private void assertThatTimeAndLockMetricsAreNotRecorded(String timestampMetric, String lockMetric) {
+    private void assertThatTimeAndLockMetricsAreRecorded(String timestampMetric, String lockMetric) {
         assertThat(metricsManager.getRegistry().timer(timestampMetric).getCount())
                 .isEqualTo(0L);
         assertThat(metricsManager.getRegistry().timer(lockMetric).getCount()).isEqualTo(0L);
@@ -651,37 +611,8 @@ private void assertThatTimeAndLockMetricsAreNotRecorded(String timestampMetric,
         lockAndTimestamp.timelock().currentTimeMillis();
 
         assertThat(metricsManager.getRegistry().timer(timestampMetric).getCount())
-                .isEqualTo(0L);
-        assertThat(metricsManager.getRegistry().timer(lockMetric).getCount()).isEqualTo(0L);
-    }
-
-    private void assertThatTimeAndLockMetricsWithTagsAreRecorded(
-            String timestampMetric, String lockMetric, Map<String, String> tags) {
-        MetricName timestampMetricName = MetricName.builder()
-                .safeName(timestampMetric)
-                .putAllSafeTags(tags)
-                .build();
-        MetricName lockMetricName =
-                MetricName.builder().safeName(lockMetric).putAllSafeTags(tags).build();
-
-        assertThat(metricsManager.getTaggedRegistry().timer(timestampMetricName).getCount())
-                .isEqualTo(0L);
-        assertThat(metricsManager.getTaggedRegistry().timer(lockMetricName).getCount())
-                .isEqualTo(0L);
-
-        LockAndTimestampServices lockAndTimestamp = getLockAndTimestampServices();
-        lockAndTimestamp.timelock().getFreshTimestamp();
-        lockAndTimestamp.timelock().currentTimeMillis();
-
-        assertThat(metricsManager.getTaggedRegistry().timer(timestampMetricName).getCount())
                 .isEqualTo(1L);
-        assertThat(metricsManager.getTaggedRegistry().timer(lockMetricName).getCount())
-                .isEqualTo(1L);
-    }
-
-    private void setUpForRemoteServices() throws IOException {
-        availableServer.stubFor(LEADER_UUID_MAPPING.willReturn(aResponse().withStatus(404)));
-        setUpLeaderBlockInConfig();
+        assertThat(metricsManager.getRegistry().timer(lockMetric).getCount()).isEqualTo(1L);
     }
 
     private void setUpTimeLockBlockInRuntimeConfig() {uau(696d1fae73d7370dcd63271d4ee2049a678cdc77}(sha(696d1fae73d7370dcd63271d4ee2049a678cdc77node_idEC_kwDOAjP5fdoAKDY5NmQxZmFlNzNkNzM3MGRjZDYzMjcxZDRlZTIwNDlhNjc4Y2RjNzccommit}(author}(name
Steven Berleremailsberler@palantir.comdate2023-07-26T19:44:15Zu	committer}(j 
Steven Berlerj sberler@palantir.comj 2023-07-26T19:44:15Zumessage%use runtimeOnly for netty-handler deptree}(j (1490b4f88333bad7990b5a85086b52b22137d51burl`https://api.github.com/repos/palantir/atlasdb/git/trees/1490b4f88333bad7990b5a85086b52b22137d51buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/696d1fae73d7370dcd63271d4ee2049a678cdc77
comment_countK verification}(verifiedreasonvalid	signatureX@  -----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEw59h1YMk8taw6E9gP6wKgcBSQL8FAmTBd5oACgkQP6wKgcBS
QL9vQQ//cw/WhTXlJXVVUqpbMBTTNyek7oq/smUdO8RS8hLMnY4wiZ1vSAcpZPyF
zV4OViB9U9dUwDe50EAvH0jWF8W1HrwSsud/QWn+nTJedq1Ysqz++oIlslJrmuaI
s1HfXAh4JrvL72UXFIIZe9ZvaoKGsOpm2G7tWExFf/Xi/ha4bA9rBoroXBiyTwih
H10owu6svNRaFDMyEvAsnoZuLhRidlYu1J0TRYaGum71dZNuZvAS3CGL+4XujCAL
io96FaHlz10tG/6uSk20xoU+7/QeFmVJrnK/ALH5F9rl47zPWZRvbkiXLdwHqllN
+XrEpAiuWblDSNi8yKVpNP2jl2MiYGmXLjlBcGOc6Gsx/hkRrWS7/L59RXV2gPJs
IDGwdCLzV/uwGqrWQhbt7rPGiwaKsu2vVYLdltQiL110tUcEvajJv/kL9uFykxXM
FcrAJyoL/R9VqG+gx0quOVznDm5aGvE5nR95L6Q5YiwSHjIBJlhjUhxMI2Sv8f+h
nB7Ouyf2zNvF7mKLU2ZaYkhVbKOx3uToNuhANT5JJyx6LxWpSBqBrm/6/bMRlGrO
hTGlQNPk1Zpwrep082EZRENVVAVGaOJb73+vxLxQWt4LiqYa/LnLgPCFIxur9XwP
EXTyE/5G8M3dVGiVyw2eHLApVOiVLlZjhmaQ07FIRgPvLusvC/o=
=9x2m
-----END PGP SIGNATURE-----payloadX  tree 1490b4f88333bad7990b5a85086b52b22137d51b
parent d4f5644c27f0ebc1867ff0e6fc8c9eaf5b43696c
author Steven Berler <sberler@palantir.com> 1690400655 -0700
committer Steven Berler <sberler@palantir.com> 1690400655 -0700

use runtimeOnly for netty-handler dep
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/696d1fae73d7370dcd63271d4ee2049a678cdc77html_urlShttps://github.com/palantir/atlasdb/commit/696d1fae73d7370dcd63271d4ee2049a678cdc77comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/696d1fae73d7370dcd63271d4ee2049a678cdc77/commentsj }(loginberleridJ j MDQ6VXNlcjEwMzA2Mjc=
avatar_url3https://avatars.githubusercontent.com/u/1030627?v=4gravatar_idh5j #https://api.github.com/users/berlerjŖ https://github.com/berler
followers_url-https://api.github.com/users/berler/followers
following_url:https://api.github.com/users/berler/following{/other_user}	gists_url3https://api.github.com/users/berler/gists{/gist_id}starred_url:https://api.github.com/users/berler/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/berler/subscriptionsorganizations_url(https://api.github.com/users/berler/orgs	repos_url)https://api.github.com/users/berler/repos
events_url4https://api.github.com/users/berler/events{/privacy}received_events_url3https://api.github.com/users/berler/received_eventstypeUser
site_adminuj }(jʖ berlerj̖ J j MDQ6VXNlcjEwMzA2Mjc=jΖ 3https://avatars.githubusercontent.com/u/1030627?v=4jЖ h5j #https://api.github.com/users/berlerjŖ https://github.com/berlerjӖ -https://api.github.com/users/berler/followersjՖ :https://api.github.com/users/berler/following{/other_user}jז 3https://api.github.com/users/berler/gists{/gist_id}jٖ :https://api.github.com/users/berler/starred{/owner}{/repo}jۖ 1https://api.github.com/users/berler/subscriptionsjݖ (https://api.github.com/users/berler/orgsjߖ )https://api.github.com/users/berler/reposj 4https://api.github.com/users/berler/events{/privacy}j 3https://api.github.com/users/berler/received_eventsj Userj uparents]}(j (d4f5644c27f0ebc1867ff0e6fc8c9eaf5b43696cj ^https://api.github.com/repos/palantir/atlasdb/commits/d4f5644c27f0ebc1867ff0e6fc8c9eaf5b43696cjŖ Shttps://github.com/palantir/atlasdb/commit/d4f5644c27f0ebc1867ff0e6fc8c9eaf5b43696cuastats}(totalK	additionsK	deletionsKufiles]}(j (ac5151208f3564728fb656114e6d47b89cd33bb2filenameatlasdb-cassandra/build.gradlestatusmodifiedj Kj KchangesKblob_urlrhttps://github.com/palantir/atlasdb/blob/696d1fae73d7370dcd63271d4ee2049a678cdc77/atlasdb-cassandra%2Fbuild.gradleraw_urlqhttps://github.com/palantir/atlasdb/raw/696d1fae73d7370dcd63271d4ee2049a678cdc77/atlasdb-cassandra%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fbuild.gradle?ref=696d1fae73d7370dcd63271d4ee2049a678cdc77patchXp  @@ -60,7 +60,7 @@ dependencies {
 
   // transitive from cassandra-driver-core
   // need to specify as a direct dep so downstream projects get the correct version
-  implementation 'io.netty:netty-handler'
+  runtimeOnly 'io.netty:netty-handler'
 
   testImplementation 'commons-codec:commons-codec'
   testImplementation 'com.fasterxml.jackson.core:jackson-databind'uau(c7c6d8f39b0d85e4b24a813e7c98ca397471c6c8}(sha(c7c6d8f39b0d85e4b24a813e7c98ca397471c6c8node_idEC_kwDOAjP5fdoAKGM3YzZkOGYzOWIwZDg1ZTRiMjRhODEzZTdjOThjYTM5NzQ3MWM2Yzgcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-27T09:18:47Zu	committer}(j Jeremy Kongj  jkong@palantir.comj" 2023-06-27T09:18:47Zumessagerc8tree}(j (6eaff6e1682ff2c693146fdede5976a692f0dda8url`https://api.github.com/repos/palantir/atlasdb/git/trees/6eaff6e1682ff2c693146fdede5976a692f0dda8uj. bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c7c6d8f39b0d85e4b24a813e7c98ca397471c6c8
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSaqXcACgkQTLdFKain
zjwmtQf8Cxlaq8eIqI9aJUX8H491WzWAgN1SIJEQ/v+4R1dxgWUTmRJoWrwiSqnO
LLu2V9Qy6GjbTlRajD3t4eoqJb6mqvAcRNUu5LOBeP5T8VJMEuw2X7LqPo+iUwbA
tsSlJCdeNglZ4UbkhaU63ByGWw7CjdcACUZEaeevDYxwmb7thqDRqE6UxRz5O2Dv
XRwY/yqU1f7C6oYjn+EKAuU84/g/UwU1mxk5inCVwQQlgMTdDWScwXjSlpr1hAtI
6iT3rTBGjb3mQqmdoXG3vIONjOq3KvxCl7O/K8k6/ytLZbys2IybLNyEBst0U8cg
tl6muDLGDIvRHBrSLcM9/Th7eLVXJA==
=KsXi
-----END PGP SIGNATURE-----payloadtree 6eaff6e1682ff2c693146fdede5976a692f0dda8
parent afa3cd9b80299d91edf7d637ef86383c99b076ae
author Jeremy Kong <jkong@palantir.com> 1687857527 +0800
committer Jeremy Kong <jkong@palantir.com> 1687857527 +0800

rc8
uuj. ^https://api.github.com/repos/palantir/atlasdb/commits/c7c6d8f39b0d85e4b24a813e7c98ca397471c6c8html_urlShttps://github.com/palantir/atlasdb/commit/c7c6d8f39b0d85e4b24a813e7c98ca397471c6c8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c7c6d8f39b0d85e4b24a813e7c98ca397471c6c8/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j. 'https://api.github.com/users/jeremyk-91j< https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj$ }(jA 
jeremyk-91jC JZ j MDQ6VXNlcjU5NTU1MTA=jE 3https://avatars.githubusercontent.com/u/5955510?v=4jG h5j. 'https://api.github.com/users/jeremyk-91j< https://github.com/jeremyk-91jJ 1https://api.github.com/users/jeremyk-91/followersjL >https://api.github.com/users/jeremyk-91/following{/other_user}jN 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jP >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jR 5https://api.github.com/users/jeremyk-91/subscriptionsjT ,https://api.github.com/users/jeremyk-91/orgsjV -https://api.github.com/users/jeremyk-91/reposjX 8https://api.github.com/users/jeremyk-91/events{/privacy}jZ 7https://api.github.com/users/jeremyk-91/received_eventsj\ Userj^ uparents]}(j (afa3cd9b80299d91edf7d637ef86383c99b076aej. ^https://api.github.com/repos/palantir/atlasdb/commits/afa3cd9b80299d91edf7d637ef86383c99b076aej< Shttps://github.com/palantir/atlasdb/commit/afa3cd9b80299d91edf7d637ef86383c99b076aeuastats}(totalK	additionsK	deletionsKufiles](}(j (0ce31921904e426b54d85217a99f028ed2f9d0c9filename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedjx Kjy KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/c7c6d8f39b0d85e4b24a813e7c98ca397471c6c8/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/c7c6d8f39b0d85e4b24a813e7c98ca397471c6c8/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=c7c6d8f39b0d85e4b24a813e7c98ca397471c6c8patchX  @@ -2,7 +2,7 @@ version: '2'
 
 services:
   cassandra1:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
     ports:
       - "9160"
       - "9042"
@@ -22,7 +22,7 @@ services:
         ipv4_address: 10.20.20.2
 
   cassandra2:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
     ports:
       - "9160"
       - "9042"
@@ -42,7 +42,7 @@ services:
         ipv4_address: 10.20.20.3
 
   cassandra3:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
     ports:
       - "9160"
       - "9042"u}(j (48f273657721a4b7c32b7e712584c2a4cc1b23c4j~ *scripts/circle-ci/publish-to-antithesis.shj modifiedjx Kjy Kj Kj https://github.com/palantir/atlasdb/blob/c7c6d8f39b0d85e4b24a813e7c98ca397471c6c8/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj https://github.com/palantir/atlasdb/raw/c7c6d8f39b0d85e4b24a813e7c98ca397471c6c8/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=c7c6d8f39b0d85e4b24a813e7c98ca397471c6c8j X:  @@ -26,9 +26,9 @@ printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://$
 
 VERSION=$(./gradlew -q printVersion)
 
-docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
-docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc7 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc7
-docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc7
+docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
+docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc8 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc8
+docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc8
 
 docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}
 docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}ueu(051f92a393a0f77ccc3027255d1ddeb5375e99d4}(sha(051f92a393a0f77ccc3027255d1ddeb5375e99d4node_idEC_kwDOAjP5fdoAKDA1MWY5MmEzOTNhMGY3N2NjYzMwMjcyNTVkMWRkZWI1Mzc1ZTk5ZDQcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-15T08:31:43Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-06-15T08:31:43ZumessageMake close() synchronizedtree}(j (a0021948415cd2094fa3625863e824761442d3d0url`https://api.github.com/repos/palantir/atlasdb/git/trees/a0021948415cd2094fa3625863e824761442d3d0uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/051f92a393a0f77ccc3027255d1ddeb5375e99d4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSKzG8ACgkQmF9s0kaF
Iw2ISgf9E5RGM3ARMguS1eG6EzN56LJL1ag73TwIJTGrg0ivjqHfdMddk9pl7gEe
hBXqV50boa2IUFrj5sAiUH8lM37D31Zza53Izd9F26PXdHYJyf7P5FZ60+caRGhM
6D3l4qpOxCKGzd0k54mFmzx5WYNAsUHUMeQbQFRMkeRBXXrsQsV4QO1MzhFmbLLj
BhD0PdoSsoSrxAlmaibyk0pofMFLTr7peTZt9nTSbp20m9E88WeKG30NpoA2+OEs
KEUCW//mMmEvEqfovr1t0QtSBna0YrBJ+BCV2aniZpowCyZCBoGlsqQvXYF+sOZI
NyHI0cDB4E3VH8O/29mqrYR2rKH6IA==
=q8T/
-----END PGP SIGNATURE-----payloadtree a0021948415cd2094fa3625863e824761442d3d0
parent 34fcad8b7f74c1cf15c9ab5bbb2d6e45a15dcdeb
author Tom Papke <tpapke@palantir.com> 1686817903 +0100
committer Tom Papke <tpapke@palantir.com> 1686817903 +0100

Make close() synchronized
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/051f92a393a0f77ccc3027255d1ddeb5375e99d4html_urlShttps://github.com/palantir/atlasdb/commit/051f92a393a0f77ccc3027255d1ddeb5375e99d4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/051f92a393a0f77ccc3027255d1ddeb5375e99d4/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jboj MDQ6VXNlcjQzNjc1NDkwjė 4https://avatars.githubusercontent.com/u/43675490?v=4jƗ h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschejɗ 0https://api.github.com/users/Toemmsche/followersj˗ =https://api.github.com/users/Toemmsche/following{/other_user}j͗ 6https://api.github.com/users/Toemmsche/gists{/gist_id}jϗ =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jї 4https://api.github.com/users/Toemmsche/subscriptionsjӗ +https://api.github.com/users/Toemmsche/orgsj՗ ,https://api.github.com/users/Toemmsche/reposjח 7https://api.github.com/users/Toemmsche/events{/privacy}jٗ 6https://api.github.com/users/Toemmsche/received_eventsjۗ Userjݗ uparents]}(j (34fcad8b7f74c1cf15c9ab5bbb2d6e45a15dcdebj ^https://api.github.com/repos/palantir/atlasdb/commits/34fcad8b7f74c1cf15c9ab5bbb2d6e45a15dcdebj Shttps://github.com/palantir/atlasdb/commit/34fcad8b7f74c1cf15c9ab5bbb2d6e45a15dcdebuastats}(totalK	additionsK	deletionsKufiles]}(j (6f2010a2176ac3518c8b629305f9cc84a3069736filenameQlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/051f92a393a0f77ccc3027255d1ddeb5375e99d4/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaraw_urlhttps://github.com/palantir/atlasdb/raw/051f92a393a0f77ccc3027255d1ddeb5375e99d4/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=051f92a393a0f77ccc3027255d1ddeb5375e99d4patchX  @@ -149,12 +149,10 @@ void takeSnapshot() {
     }
 
     @Override
-    public void close() {
+    public synchronized void close() {
         scheduledExecutorService.shutdown();
-        synchronized (this) {
-            // To prevent scheduling of future tasks, which will throw an exception
-            isRunning = true;
-        }
+        // To prevent scheduling of future tasks, which will throw an exception
+        isRunning = true;
         disposable.dispose();
     }
 }uau(5b4a082cd6c223db56fa624a9947c50be0b8306b}(sha(5b4a082cd6c223db56fa624a9947c50be0b8306bnode_idEC_kwDOAjP5fdoAKDViNGEwODJjZDZjMjIzZGI1NmZhNjI0YTk5NDdjNTBiZTBiODMwNmIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-23T18:13:45Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-05-23T18:13:45Zumessagebumptree}(j (fb6c780c71656eaf75fba7d110e95d34fb23d092url`https://api.github.com/repos/palantir/atlasdb/git/trees/fb6c780c71656eaf75fba7d110e95d34fb23d092uj$ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5b4a082cd6c223db56fa624a9947c50be0b8306b
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRtAlkACgkQTLdFKain
zjz/8AgA0INzRB9fAm6pA2WjLfBxRJqip2lMo+ElmG2of6pjMPbKpns+sGyOS8sb
Dmm6wYc47XXZnjtOBHbMHoPzlSJKFGlxgVR2VEoZv9WqAJ+CpHau8nJO1jJ80Wf7
hJ9VGdzv132NZG8xRI3zpr9gvqnjB607zsFSuLSjifuQ74nKOD4hrY33FX1YI4ym
gvQiHzBVqZuvrujALSLcZ5jarBr718GLYR2RyjGWslTDelHIJ3trlwTX6oJosLqK
/TwZt9Pq3JpYVI/D30BN7AsVlrg+e4/h10FSRH6Dqn7P9zTfqZXnN0lV+Q4DDkKj
liTIYgAj9VhCKQUI/iiAPtSOvM1lPw==
=5fSe
-----END PGP SIGNATURE-----payloadtree fb6c780c71656eaf75fba7d110e95d34fb23d092
parent c189c3d2676483e348ca3d0d8b003db9c2888c99
author Jeremy Kong <jkong@palantir.com> 1684865625 +0100
committer Jeremy Kong <jkong@palantir.com> 1684865625 +0100

bump
uuj$ ^https://api.github.com/repos/palantir/atlasdb/commits/5b4a082cd6c223db56fa624a9947c50be0b8306bhtml_urlShttps://github.com/palantir/atlasdb/commit/5b4a082cd6c223db56fa624a9947c50be0b8306bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5b4a082cd6c223db56fa624a9947c50be0b8306b/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j$ 'https://api.github.com/users/jeremyk-91j2 https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j7 
jeremyk-91j9 JZ j MDQ6VXNlcjU5NTU1MTA=j; 3https://avatars.githubusercontent.com/u/5955510?v=4j= h5j$ 'https://api.github.com/users/jeremyk-91j2 https://github.com/jeremyk-91j@ 1https://api.github.com/users/jeremyk-91/followersjB >https://api.github.com/users/jeremyk-91/following{/other_user}jD 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jF >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jH 5https://api.github.com/users/jeremyk-91/subscriptionsjJ ,https://api.github.com/users/jeremyk-91/orgsjL -https://api.github.com/users/jeremyk-91/reposjN 8https://api.github.com/users/jeremyk-91/events{/privacy}jP 7https://api.github.com/users/jeremyk-91/received_eventsjR UserjT uparents]}(j (c189c3d2676483e348ca3d0d8b003db9c2888c99j$ ^https://api.github.com/repos/palantir/atlasdb/commits/c189c3d2676483e348ca3d0d8b003db9c2888c99j2 Shttps://github.com/palantir/atlasdb/commit/c189c3d2676483e348ca3d0d8b003db9c2888c99uastats}(totalK 	additionsK 	deletionsK ufiles]u(a57b897a6a082bc5f4168d7c226c33a9cdf6e628}(sha(a57b897a6a082bc5f4168d7c226c33a9cdf6e628node_idEC_kwDOAjP5fdoAKGE1N2I4OTdhNmEwODJiYzVmNDE2OGQ3YzIyNmMzM2E5Y2RmNmU2Mjgcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-06-14T09:41:55Zu	committer}(j| 
svc-changelogj~ svc-changelog@palantir.comj 2023-06-14T09:41:55ZumessageAdd generated changelog entriestree}(jt (e983b3eab2d36affcd37ab96f8922e8493683975url`https://api.github.com/repos/palantir/atlasdb/git/trees/e983b3eab2d36affcd37ab96f8922e8493683975uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a57b897a6a082bc5f4168d7c226c33a9cdf6e628
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSJi2MJEHYaJX37fAFQAAAD3AEAgPXIJbG30DhGSz2AdfB4BV4K
Vy9vdnttYLaon/tsu8ABANn/iSbv+CoKUh19BjZUAygKFn+HaZJ8o6iTqc985zkV
=cNaP
-----END PGP SIGNATURE-----payloadX  tree e983b3eab2d36affcd37ab96f8922e8493683975
parent 0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7
author svc-changelog <svc-changelog@palantir.com> 1686735715 +0000
committer svc-changelog <svc-changelog@palantir.com> 1686735715 +0000

Add generated changelog entriesuuj ^https://api.github.com/repos/palantir/atlasdb/commits/a57b897a6a082bc5f4168d7c226c33a9cdf6e628html_urlShttps://github.com/palantir/atlasdb/commit/a57b897a6a082bc5f4168d7c226c33a9cdf6e628comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a57b897a6a082bc5f4168d7c226c33a9cdf6e628/commentsjz }(login
svc-changelogidJ#jv MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptions       organizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj }(j 
svc-changelogj J#jv MDQ6VXNlcjg0MDc3NjAzj 4https://avatars.githubusercontent.com/u/84077603?v=4j h5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelogj 4https://api.github.com/users/svc-changelog/followersj Ahttps://api.github.com/users/svc-changelog/following{/other_user}j :https://api.github.com/users/svc-changelog/gists{/gist_id}j Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j 8https://api.github.com/users/svc-changelog/subscriptionsj /https://api.github.com/users/svc-changelog/orgsj 0https://api.github.com/users/svc-changelog/reposj ;https://api.github.com/users/svc-changelog/events{/privacy}j :https://api.github.com/users/svc-changelog/received_eventsj Userj uparents]}(jt (0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7j ^https://api.github.com/repos/palantir/atlasdb/commits/0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7j Shttps://github.com/palantir/atlasdb/commit/0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7uastats}(totalK	additionsK	deletionsK ufiles]}(jt (ffd47f177c27dd39d87fb4cd84339ad7d1911c1cfilename$changelog/@unreleased/pr-6625.v2.ymlstatusaddedj֘ Kjט K changesKblob_url|https://github.com/palantir/atlasdb/blob/a57b897a6a082bc5f4168d7c226c33a9cdf6e628/changelog%2F%40unreleased%2Fpr-6625.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/a57b897a6a082bc5f4168d7c226c33a9cdf6e628/changelog%2F%40unreleased%2Fpr-6625.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6625.v2.yml?ref=a57b897a6a082bc5f4168d7c226c33a9cdf6e628patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LockV1] Add async thread info snapshotting (disabled by default)'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6625uau(fac744deb5517a2928c669bc63347b3d6bad70ac}(sha(fac744deb5517a2928c669bc63347b3d6bad70acnode_idEC_kwDOAjP5fdoAKGZhYzc0NGRlYjU1MTdhMjkyOGM2NjliYzYzMzQ3YjNkNmJhZDcwYWMcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-24T14:33:21Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-04-24T14:33:21Zumessagesee nowtree}(j (be4ec0fe1f3eb87c3663fca4a61851d17e35a926url`https://api.github.com/repos/palantir/atlasdb/git/trees/be4ec0fe1f3eb87c3663fca4a61851d17e35a926uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fac744deb5517a2928c669bc63347b3d6bad70ac
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRGkzIACgkQPlMHVIT1
yhrMkAgAiQ4FbDUj/Yo5KQ9PFdPjG+QTguVxNs+9sAeIy3Mh8VPUuoJ81eHAvx2i
a/iNyImhXflR/KivKHAkjzuFIBOycAcYTWC/xWikGtD7BJ128B5oNJFTW2yNMf85
PQsrrCg2s0H2WendRoVVnjgvz1Pvh+czH2JDijF7YmIJtWb7PjDlPCJ5aNVfCRcB
tT7F83fVaqt6jbhsxT9U4iGkkx4uIhuYHkUf4OxYZ21rw+ni2+08GACclwfP8oHo
ckLHqTCX5FjD5W2xK+7MvKDW42RTr4VMgRpFt9jSEiuMaiy8D1j+JUYt8dloirBR
qRZJRblmDki3Z3Tc49TKqGBoD4wbBg==
=GuoF
-----END PGP SIGNATURE-----payloadtree be4ec0fe1f3eb87c3663fca4a61851d17e35a926
parent 31bc3b87383e1977e436e93cc0d86b33eb522004
author Ahmed Alouane <aalouane@palantir.com> 1682346801 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682346801 +0100

see now
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/fac744deb5517a2928c669bc63347b3d6bad70achtml_urlShttps://github.com/palantir/atlasdb/commit/fac744deb5517a2928c669bc63347b3d6bad70accomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fac744deb5517a2928c669bc63347b3d6bad70ac/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj! :https://api.github.com/users/ergo14/following{/other_user}j# 3https://api.github.com/users/ergo14/gists{/gist_id}j% :https://api.github.com/users/ergo14/starred{/owner}{/repo}j' 1https://api.github.com/users/ergo14/subscriptionsj) (https://api.github.com/users/ergo14/orgsj+ )https://api.github.com/users/ergo14/reposj- 4https://api.github.com/users/ergo14/events{/privacy}j/ 3https://api.github.com/users/ergo14/received_eventsj1 Userj3 uparents]}(j (31bc3b87383e1977e436e93cc0d86b33eb522004j ^https://api.github.com/repos/palantir/atlasdb/commits/31bc3b87383e1977e436e93cc0d86b33eb522004j Shttps://github.com/palantir/atlasdb/commit/31bc3b87383e1977e436e93cc0d86b33eb522004uastats}(totalK	additionsK	deletionsKufiles]}(j (67e4a67037b949f1b11b5972599f5f9e9aa60a3cfilename%scripts/circle-ci/run-circle-tests.shstatusmodifiedjM KjN KchangesKblob_url{https://github.com/palantir/atlasdb/blob/fac744deb5517a2928c669bc63347b3d6bad70ac/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/fac744deb5517a2928c669bc63347b3d6bad70ac/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=fac744deb5517a2928c669bc63347b3d6bad70acpatchX  @@ -13,13 +13,13 @@ function checkDocsBuild {
      make html
 }
 
-CONTAINER_1=(':atlasdb-cassandra-integration-tests:check')
+CONTAINER_1=(':atlasdb-ete-tests:dbkvsTest')
 
 CONTAINER_2=(':atlasdb-ete-tests:check')
 
 CONTAINER_3=(':atlasdb-dbkvs:check' ':atlasdb-cassandra:check' ':timelock-server:integTest')
 
-CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-impl-shared:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:dbkvsTest')
+CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check')
 
 CONTAINER_5=(':lock-impl:check' ':atlasdb-dbkvs-tests:postgresTest' ':atlasdb-ete-test-utils:check' ':atlasdb-ete-tests:longTest')
 
@@ -41,8 +41,14 @@ CONTAINER_13=('atlasdb-cassandra-integration-tests:testChunk2')
 
 CONTAINER_14=('atlasdb-cassandra-integration-tests:testChunk3')
 
+CONTAINER_15=(':atlasdb-impl-shared:check')
+
+CONTAINER_16=(':atlasdb-tests-shared:check')
+
+CONTAINER_17=(':atlasdb-perf:check')
+
 # Container 0 - runs tasks not found in the below containers
-CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}")
+CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}" "${CONTAINER_11[@]}" "${CONTAINER_12[@]}" "${CONTAINER_13[@]}" "${CONTAINER_14[@]}" "${CONTAINER_15[@]}" "${CONTAINER_16[@]}" "${CONTAINER_17[@]}")
 
 for task in "${CONTAINER_0_EXCLUDE[@]}"
 do
@@ -95,4 +101,7 @@ case $CIRCLE_NODE_INDEX in
     12) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_12[@]} ;;
     13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_13[@]} ;;
     14) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_14[@]} ;;
+    15) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_15[@]} ;;
+    16) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_16[@]} ;;
+    17) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_17[@]} ;;
 esacuau(2cd458721176dfde79df9f4764cbf2e23b3291ee}(sha(2cd458721176dfde79df9f4764cbf2e23b3291eenode_idEC_kwDOAjP5fdoAKDJjZDQ1ODcyMTE3NmRmZGU3OWRmOWY0NzY0Y2JmMmUyM2IzMjkxZWUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-26T17:13:06Zu	committer}(jj Jeremy Kongjl jkong@palantir.comjn 2023-06-26T17:13:06Zumessagebootree}(jb (6eaff6e1682ff2c693146fdede5976a692f0dda8url`https://api.github.com/repos/palantir/atlasdb/git/trees/6eaff6e1682ff2c693146fdede5976a692f0dda8ujz bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2cd458721176dfde79df9f4764cbf2e23b3291ee
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSZxyIACgkQTLdFKain
zjxwjgf+N1oZBCQMrHZpNg9vp66dRyh8+sz+VvtUpoLCfmOtOtS2x8RlhFVzi64/
AWZ8L7qKMM29YbzWfkvT06YEp8J2qN3d9um+x9Kg2e8pKJA1iNd7wpUGzFI0c8AA
TfapnfN8S7hf+CSODoM2VbbYLcgrmG1XKHeqoZGmIhTwnf84nh7bvllUUUL3Lqok
4QKmxxViBd1qgntdmVgfgtS5jMyw4cCGVIywm4uU99I6LR3DKF7y+q0fWIXRSoNW
dICeUaFR/rnguTGpIilp1J+nvV2wDtBW8mNHtMQyr5qaO2/G4EGL5FKOk5eoKyCG
c2Uih5EiQVZd4S2TST/IKIAjZvfJcg==
=ItBC
-----END PGP SIGNATURE-----payloadtree 6eaff6e1682ff2c693146fdede5976a692f0dda8
parent e87be332def7512dc9fc0359d99a85348d088d3c
author Jeremy Kong <jkong@palantir.com> 1687799586 +0800
committer Jeremy Kong <jkong@palantir.com> 1687799586 +0800

boo
uujz ^https://api.github.com/repos/palantir/atlasdb/commits/2cd458721176dfde79df9f4764cbf2e23b3291eehtml_urlShttps://github.com/palantir/atlasdb/commit/2cd458721176dfde79df9f4764cbf2e23b3291eecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2cd458721176dfde79df9f4764cbf2e23b3291ee/commentsjh }(login
jeremyk-91idJZ jd MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jz 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujp }(j 
jeremyk-91j JZ jd MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5jz 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(jb (e87be332def7512dc9fc0359d99a85348d088d3cjz ^https://api.github.com/repos/palantir/atlasdb/commits/e87be332def7512dc9fc0359d99a85348d088d3cj Shttps://github.com/palantir/atlasdb/commit/e87be332def7512dc9fc0359d99a85348d088d3cuastats}(totalK	additionsK	deletionsKufiles](}(jb (0ce31921904e426b54d85217a99f028ed2f9d0c9filename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedję Kjř KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/2cd458721176dfde79df9f4764cbf2e23b3291ee/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/2cd458721176dfde79df9f4764cbf2e23b3291ee/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=2cd458721176dfde79df9f4764cbf2e23b3291eepatchX  @@ -2,7 +2,7 @@ version: '2'
 
 services:
   cassandra1:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
     ports:
       - "9160"
       - "9042"
@@ -22,7 +22,7 @@ services:
         ipv4_address: 10.20.20.2
 
   cassandra2:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
     ports:
       - "9160"
       - "9042"
@@ -42,7 +42,7 @@ services:
         ipv4_address: 10.20.20.3
 
   cassandra3:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
     ports:
       - "9160"
       - "9042"u}(jb (48f273657721a4b7c32b7e712584c2a4cc1b23c4jʙ *scripts/circle-ci/publish-to-antithesis.shj̙ modifiedję Kjř KjΙ Kjϙ https://github.com/palantir/atlasdb/blob/2cd458721176dfde79df9f4764cbf2e23b3291ee/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shjљ https://github.com/palantir/atlasdb/raw/2cd458721176dfde79df9f4764cbf2e23b3291ee/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shjә https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=2cd458721176dfde79df9f4764cbf2e23b3291eejՙ X:  @@ -26,9 +26,9 @@ printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://$
 
 VERSION=$(./gradlew -q printVersion)
 
-docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
-docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc7 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc7
-docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc7
+docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
+docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc8 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc8
+docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc8
 
 docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}
 docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}ueu(258720aa285766dfa3383ad711f2c49e3a1f7af1}(sha(258720aa285766dfa3383ad711f2c49e3a1f7af1node_idEC_kwDOAjP5fdoAKDI1ODcyMGFhMjg1NzY2ZGZhMzM4M2FkNzExZjJjNDllM2ExZjdhZjEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-19T09:35:14Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-06-19T09:35:14Zumessagecrimes against humanitytree}(j (a2b205ef9352d5e15bf0cd73115130dcb66b695aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/a2b205ef9352d5e15bf0cd73115130dcb66b695auj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/258720aa285766dfa3383ad711f2c49e3a1f7af1
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSQIVIACgkQTLdFKain
zjxT3QgA1GE6NeZmzhiGqB9sEFi27z+bAn04nYFoOJjj82zSL84BsaOvPBbkFUu6
6VneONXwSBd4Gdkd6z9J0ks25s31QchQMV9EX2AF4r+xTNeGJhprzdxd8A8zpJ6T
DYFeEIF05ol6wgcsOo5sgW7pshrBuU2LNY6RJA6Z/MwepmJGxBlnEvFHe3aXLYBa
DWA6lmb8SpPcPkNuc7I+2Nh5uEiX3TbKkXMM21oVTRHRrZZoBHLpOSv49uNV/M65
P7Vd4Qz3pbZWUr3au7IfKj65wSUZ3ctw8PodDsKimDq5SPLjgNn+1Ot0zjETlHgi
a4IiGJN+F795DleNiBGU83y/yA/Xjw==
=2MsR
-----END PGP SIGNATURE-----payloadtree a2b205ef9352d5e15bf0cd73115130dcb66b695a
parent 19bdb8613c2edc21547ffe24172a6d18f38f33b8
author Jeremy Kong <jkong@palantir.com> 1687167314 +0800
committer Jeremy Kong <jkong@palantir.com> 1687167314 +0800

crimes against humanity
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/258720aa285766dfa3383ad711f2c49e3a1f7af1html_urlShttps://github.com/palantir/atlasdb/commit/258720aa285766dfa3383ad711f2c49e3a1f7af1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/258720aa285766dfa3383ad711f2c49e3a1f7af1/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj! -https://api.github.com/users/jeremyk-91/reposj# 8https://api.github.com/users/jeremyk-91/events{/privacy}j% 7https://api.github.com/users/jeremyk-91/received_eventsj' Userj) uparents]}(j (19bdb8613c2edc21547ffe24172a6d18f38f33b8j ^https://api.github.com/repos/palantir/atlasdb/commits/19bdb8613c2edc21547ffe24172a6d18f38f33b8j Shttps://github.com/palantir/atlasdb/commit/19bdb8613c2edc21547ffe24172a6d18f38f33b8uastats}(totalK	additionsK	deletionsKufiles](}(j (47f0dc4ba429f72b73ebee5913807bb0fa5baf85filenameqatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunner.javastatusmodifiedjC K jD KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/258720aa285766dfa3383ad711f2c49e3a1f7af1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javaraw_urlhttps://github.com/palantir/atlasdb/raw/258720aa285766dfa3383ad711f2c49e3a1f7af1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.java?ref=258720aa285766dfa3383ad711f2c49e3a1f7af1patchX  @@ -41,7 +41,6 @@ public AntithesisWorkflowValidatorRunner(ListeningExecutorService listeningExecu
     @Override
     public void run(List<WorkflowAndInvariants<Workflow>> workflowAndInvariants) {
         try {
-            log.info("antithesis: start_faults");
             List<WorkflowHistoryValidator> workflowHistoryValidators = Futures.allAsList(
                             submitWorkflowValidators(workflowAndInvariants))
                     .get();u}(j (864fff233175a214d69e302ce8a3ed26e07d0941jI aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javajK modifiedjC KjD K jM KjN https://github.com/palantir/atlasdb/blob/258720aa285766dfa3383ad711f2c49e3a1f7af1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajP https://github.com/palantir/atlasdb/raw/258720aa285766dfa3383ad711f2c49e3a1f7af1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajR https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=258720aa285766dfa3383ad711f2c49e3a1f7af1jT Xu  @@ -17,11 +17,14 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
 import java.util.Optional;
 import java.util.concurrent.ExecutionException;
@@ -31,6 +34,8 @@
 import java.util.stream.Stream;
 
 public final class DefaultWorkflow<T extends TransactionStore> implements Workflow {
+    private static final SafeLogger log = SafeLoggerFactory.get(DefaultWorkflow.class);
+
     private final ConcurrentTransactionRunner<T> concurrentTransactionRunner;
     private final KeyedTransactionTask<T> transactionTask;
     private final WorkflowConfiguration workflowConfiguration;
@@ -75,6 +80,7 @@ public static <T extends TransactionStore> DefaultWorkflow<T> create(
     @Override
     public WorkflowHistory run() {
         Optional<WitnessedTransaction> bootstrapWitness = bootstrap.get();
+        log.info("antithesis: start_faults");
         return ImmutableWorkflowHistory.builder()
                 .history(WitnessedTransactions.sortAndFilterTransactions(
                         readOnlyTransactionStore,ueu(ed51dfd42a8723bd76e3d969c7b6c4f30910149c}(sha(ed51dfd42a8723bd76e3d969c7b6c4f30910149cnode_idEC_kwDOAjP5fdoAKGVkNTFkZmQ0MmE4NzIzYmQ3NmUzZDk2OWM3YjZjNGYzMDkxMDE0OWMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-16T10:43:21Zu	committer}(jh Jeremy Kongjj jkong@palantir.comjl 2023-06-16T10:43:21Zumessagetry with just transient rows?tree}(j` (4f5cd285b0906a609f3decb9e2103eedfe04086burl`https://api.github.com/repos/palantir/atlasdb/git/trees/4f5cd285b0906a609f3decb9e2103eedfe04086bujx bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ed51dfd42a8723bd76e3d969c7b6c4f30910149c
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSMPMoACgkQTLdFKain
zjxGUAf+Mtjc8UwA0I3H7MMeVfyWJMavdSjepKhsHjGR7i+i2PqMxWpaq0Z/Mx+a
HcoPOJnKkM7WDus4nl6w31KxBT6eCMqjAS9HsVZfuQCfFhTdnfASiaCxd+ceFtDt
Kd8NAS4ENzfyS91OS8IQ8l9QqUdDCbsmPW5wWLRkuifqo0JfC92CMadpqV58U/OI
7NdUKObHC0/fHVh/qUDM22ls63YgqosI7fIIX05VpulBTkZfO1LIWIsil9Kp0QL7
swp9luTTPfEMPrqjHBjOCbd30pABsWhN1iIg5Lfgj/paTvI+n78Rc4Ufc80F6d0B
1T51+KcYn7U4/Wy1FOBQzMjgEoh9IA==
=30mA
-----END PGP SIGNATURE-----payloadtree 4f5cd285b0906a609f3decb9e2103eedfe04086b
parent c7e35a106b2a95aa43c3b8a2107177b3218c6ec3
author Jeremy Kong <jkong@palantir.com> 1686912201 +0800
committer Jeremy Kong <jkong@palantir.com> 1686912201 +0800

try with just transient rows?
uujx ^https://api.github.com/repos/palantir/atlasdb/commits/ed51dfd42a8723bd76e3d969c7b6c4f30910149chtml_urlShttps://github.com/palantir/atlasdb/commit/ed51dfd42a8723bd76e3d969c7b6c4f30910149ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ed51dfd42a8723bd76e3d969c7b6c4f30910149c/commentsjf }(login
jeremyk-91idJZ jb MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jx 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujn }(j 
jeremyk-91j JZ jb MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5jx 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j` (c7e35a106b2a95aa43c3b8a2107177b3218c6ec3jx ^https://api.github.com/repos/palantir/atlasdb/commits/c7e35a106b2a95aa43c3b8a2107177b3218c6ec3j Shttps://github.com/palantir/atlasdb/commit/c7e35a106b2a95aa43c3b8a2107177b3218c6ec3uastats}(totalK	additionsK	deletionsK
ufiles]}(j` (a3b578e6a88fb679caee35f210f12ca79db67eacfilenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj KjÚ K
changesKblob_urlhttps://github.com/palantir/atlasdb/blob/ed51dfd42a8723bd76e3d969c7b6c4f30910149c/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ed51dfd42a8723bd76e3d969c7b6c4f30910149c/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=ed51dfd42a8723bd76e3d969c7b6c4f30910149cpatchX
  @@ -155,20 +155,21 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
 
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
                 .run(
-                        createSingleRowTwoCellsWorkflowValidator(
-                                transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
-                        createRingWorkflowValidator(
-                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()),
+//                        createSingleRowTwoCellsWorkflowValidator(
+//                                transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
+//                        createRingWorkflowValidator(
+//                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()),
                         createTransientRowsWorkflowValidator(
-                                transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
-                        createSingleBusyCellWorkflowValidator(
-                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
-                        createSingleBusyCellReadNoTouchWorkflowValidator(
-                                transactionStoreFactory,
-                                singleBusyCellReadNoTouchWorkflowConfiguration,
-                                environment.lifecycle()),
-                        createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
-                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
+                                transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle())
+//                        createSingleBusyCellWorkflowValidator(
+//                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
+//                        createSingleBusyCellReadNoTouchWorkflowValidator(
+//                                transactionStoreFactory,
+//                                singleBusyCellReadNoTouchWorkflowConfiguration,
+//                                environment.lifecycle()),
+//                        createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
+//                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle())
+                );
 
         log.info("antithesis: terminate");
 uau(2c1b8fa4492f9ec9b36570b72d867bda3f88cedb}(sha(2c1b8fa4492f9ec9b36570b72d867bda3f88cedbnode_idEC_kwDOAjP5fdoAKDJjMWI4ZmE0NDkyZjllYzliMzY1NzBiNzJkODY3YmRhM2Y4OGNlZGIcommit}(author}(nameCVdV-auemail)69226052+CVdV-au@users.noreply.github.comdate2023-05-30T08:12:36Zu	committer}(jߚ GitHubj noreply@github.comj 2023-05-30T08:12:36ZumessageHint away NESTED LOOP SEMI on overflow delete (#6581)

Dissuade Oracle from doing INDEX_FFS - it should revert to INDEX UNIQUE which is the preferred plan.tree}(jך (1184b5fbe36b12fff9276b4c8cd246d79bb7760durl`https://api.github.com/repos/palantir/atlasdb/git/trees/1184b5fbe36b12fff9276b4c8cd246d79bb7760duj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2c1b8fa4492f9ec9b36570b72d867bda3f88cedb
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkda/0CRBK7hj4Ov3rIwAAM/oIAD/vpBZJmotfIS6lfnxAHkAo
L3qxBjgr047C46kGiUoSHvgpVocTE921/t/OtgZK++vyudt/qV9exUCu7tN0tMwr
4nbmAb2lNrxkSdqG1v28buaUflf40zJE8Pvwpi6eQ+bWPezGla3jfn744bSbC7B/
kOC7so7Kc8sWiJGi6QDbftHbeK7cQxR+GPfbuVTUQGdxx0fCPOKKKnSYkuSTcaFh
+m5lbl9p70I5py07YqXtuC0LCR6xkBGd27zPSilrIeuHbOMwjid6lduhWOqW/8dU
R9uKuxuLeQw+NHfpy8MWJTNRmQ8QinS2DmthSHYJ6i4T6Dxx7gF6b07/GT4Gqvs=
=oJuO
-----END PGP SIGNATURE-----
payloadX~  tree 1184b5fbe36b12fff9276b4c8cd246d79bb7760d
parent 24820153082f53974c94dcc24a1917fb7fc3c91a
author CVdV-au <69226052+CVdV-au@users.noreply.github.com> 1685434356 +1000
committer GitHub <noreply@github.com> 1685434356 +0000

Hint away NESTED LOOP SEMI on overflow delete (#6581)

Dissuade Oracle from doing INDEX_FFS - it should revert to INDEX UNIQUE which is the preferred plan.
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/2c1b8fa4492f9ec9b36570b72d867bda3f88cedbhtml_urlShttps://github.com/palantir/atlasdb/commit/2c1b8fa4492f9ec9b36570b72d867bda3f88cedbcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2c1b8fa4492f9ec9b36570b72d867bda3f88cedb/commentsjݚ }(loginCVdV-auidJDN jٚ MDQ6VXNlcjY5MjI2MDUy
avatar_url4https://avatars.githubusercontent.com/u/69226052?v=4gravatar_idh5j $https://api.github.com/users/CVdV-auj https://github.com/CVdV-au
followers_url.https://api.github.com/users/CVdV-au/followers
following_url;https://api.github.com/users/CVdV-au/following{/other_user}	gists_url4https://api.github.com/users/CVdV-au/gists{/gist_id}starred_url;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/CVdV-au/subscriptionsorganizations_url)https://api.github.com/users/CVdV-au/orgs	repos_url*https://api.github.com/users/CVdV-au/repos
events_url5https://api.github.com/users/CVdV-au/events{/privacy}received_events_url4https://api.github.com/users/CVdV-au/received_eventstypeUser
site_adminuj }(j web-flowj J/jٚ MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj
 <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(jך (24820153082f53974c94dcc24a1917fb7fc3c91aj ^https://api.github.com/repos/palantir/atlasdb/commits/24820153082f53974c94dcc24a1917fb7fc3c91aj Shttps://github.com/palantir/atlasdb/commit/24820153082f53974c94dcc24a1917fb7fc3c91auastats}(totalKP	additionsK2	deletionsKufiles](}(jך (08cd766747be7ea89f3186414b112d6fff840236filenameiatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleOverflowWriteTable.javastatusmodifiedj9 K,j: KchangesKJblob_urlhttps://github.com/palantir/atlasdb/blob/2c1b8fa4492f9ec9b36570b72d867bda3f88cedb/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2c1b8fa4492f9ec9b36570b72d867bda3f88cedb/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.java?ref=2c1b8fa4492f9ec9b36570b72d867bda3f88cedbpatchXQ  @@ -351,31 +351,41 @@ private void deleteOverflow(String overflowTable, List<Object[]> args) {
         String shortTableName = oraclePrefixedTableNames.get(tableRef, conns);
         conns.get()
                 .updateManyUnregisteredQuery(
-                        " /* DELETE_ONE_OVERFLOW (" + overflowTable + ") */ "
-                                + " DELETE /*+ INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */ "
-                                + "   FROM " + overflowTable + " m "
-                                + "  WHERE m.id IN (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName)
-                                + ") */ "
-                                + "                        i.overflow "
-                                + "                   FROM " + shortTableName + " i "
-                                + "                  WHERE i.row_name = ? "
-                                + "                    AND i.col_name = ? "
-                                + "                    AND i.ts = ? "
-                                + "                    AND i.overflow IS NOT NULL)",
+                        "/* DELETE_ONE_OVERFLOW (" + overflowTable + ") */"
+                                + " DELETE"
+                                + " /*+"
+                                + "   INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ")"
+                                + "   LEADING(i) USE_NL(i m)"
+                                + " */"
+                                + " FROM " + overflowTable + " m"
+                                + " WHERE m.id IN"
+                                + "   (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName) + ") */"
+                                + "     i.overflow"
+                                + "     FROM " + shortTableName + " i"
+                                + "     WHERE i.row_name = ?"
+                                + "       AND i.col_name = ?"
+                                + "       AND i.ts = ?"
+                                + "       AND i.overflow IS NOT NULL)",
                         args);
     }
 
     private void deleteOverflowRange(String overflowTable, String shortTableName, RangeRequest range) {
         StringBuilder query = new StringBuilder();
-        query.append(" /* DELETE_RANGE_OVERFLOW (").append(overflowTable).append(") */ ");
-        query.append(" DELETE /*+ INDEX(m pk_").append(overflowTable).append(") */ ");
-        query.append("   FROM ").append(overflowTable).append(" m ");
-        query.append(" WHERE m.id IN (");
+        query.append("/* DELETE_RANGE_OVERFLOW (")
+                .append(overflowTable)
+                .append(") */ DELETE /*+ INDEX(m ")
+                .append(PrimaryKeyConstraintNames.get(overflowTable))
+                .append(") LEADING(i) USE_NL(i m) */ FROM ")
+                .append(overflowTable)
+                .append(" m WHERE m.id IN (");
 
         // subquery for finding rows in the short table
-        query.append("SELECT /*+ INDEX(i pk_").append(shortTableName).append(") */ ");
-        query.append("       i.overflow ");
-        query.append("    FROM ").append(shortTableName).append(" i ");
+        query.append("SELECT /*+ INDEX(i ")
+                .append(PrimaryKeyConstraintNames.get(shortTableName))
+                .append(") */")
+                .append(" i.overflow FROM ")
+                .append(shortTableName)
+                .append(" i");
 
         // add where clauses
         WhereClauses whereClauses = WhereClauses.create("i", range, "i.overflow IS NOT NULL");
@@ -398,18 +408,22 @@ private void deleteAllTimestampsOverflow(String overflowTable, List<Object[]> ar
         String shortTableName = oraclePrefixedTableNames.get(tableRef, conns);
         conns.get()
                 .updateManyUnregisteredQuery(
-                        " /* DELETE_ALL_TS_OVERFLOW (" + overflowTable + ") */ "
-                                + " DELETE /*+ INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */ "
-                                + "   FROM " + overflowTable + " m "
-                                + "  WHERE m.id IN (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName)
-                                + ") */ "
-                                + "                        i.overflow "
-                                + "                   FROM " + shortTableName + " i "
-                                + "                  WHERE i.row_name = ? "
-                                + "                    AND i.col_name = ? "
-                                + "                    AND i.ts >= ? "
-                                + "                    AND i.ts <= ? "
-                                + "                    AND i.overflow IS NOT NULL)",
+                        " /* DELETE_ALL_TS_OVERFLOW (" + overflowTable + ") */"
+                                + " DELETE"
+                                + " /*+"
+                                + "   INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ")"
+                                + "   LEADING(i) USE_NL(i m)"
+                                + " */"
+                                + " FROM " + overflowTable + " m"
+                                + " WHERE m.id IN"
+                                + "   (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName) + ") */"
+                                + "     i.overflow"
+                                + "     FROM " + shortTableName + " i"
+                                + "     WHERE i.row_name = ?"
+                                + "       AND i.col_name = ?"
+                                + "       AND i.ts >= ?"
+                                + "       AND i.ts <= ?"
+                                + "       AND i.overflow IS NOT NULL)",
                         args);
     }
 u}(jך (24da7696d056cef662a3a0936f5eaef73ca2f9f2j? $changelog/@unreleased/pr-6581.v2.ymljA addedj9 Kj: K jC KjD |https://github.com/palantir/atlasdb/blob/2c1b8fa4492f9ec9b36570b72d867bda3f88cedb/changelog%2F%40unreleased%2Fpr-6581.v2.ymljF {https://github.com/palantir/atlasdb/raw/2c1b8fa4492f9ec9b36570b72d867bda3f88cedb/changelog%2F%40unreleased%2Fpr-6581.v2.ymljH https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6581.v2.yml?ref=2c1b8fa4492f9ec9b36570b72d867bda3f88cedbjJ @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Add leading/nested loop hints on Oracle delete overflow related SQL
+    to improve perf
+  links:
+  - https://github.com/palantir/atlasdb/pull/6581ueu(dd4b583f4b274213e27fc800b884ce0080ab9189}(sha(dd4b583f4b274213e27fc800b884ce0080ab9189node_idEC_kwDOAjP5fdoAKGRkNGI1ODNmNGIyNzQyMTNlMjdmYzgwMGI4ODRjZTAwODBhYjkxODkcommit}(author}(nameMichael Wintermeyeremail&mswintermeyer@users.noreply.github.comdate2023-03-20T17:29:22Zu	committer}(j^ GitHubj` noreply@github.comjb 2023-03-20T17:29:22Zumessage(Add getActiveNamespaces endpoint (#6474)tree}(jV (5658646a4ef4b11e829c6bf46d5c549bae23c38aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/5658646a4ef4b11e829c6bf46d5c549bae23c38aujn bhttps://api.github.com/repos/palantir/atlasdb/git/commits/dd4b583f4b274213e27fc800b884ce0080ab9189
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkGJfyCRBK7hj4Ov3rIwAA740IABuAjpRM8gng8yRYHVYOb4NV
suUQ6PPspsg/OcVBvWO0ZwQyn3zkCsEhddDN+glalQrWXu6ihBwtbfEt6YN3lOz6
AZkRCuo9+7ssOHjWpWPo0UC98pRHKQpsCm9VoMPtTgKtML54Mxcr5bXgREXH+LmF
RFLfMwCtt6T8/TkX9rtlGXrJCbigS3rN8q1K4njaALl9Y96aE1W+bLUvOafvMqWd
2oLq85zIZWbtUDSc4wtO4VBGN10MgLHdkLXkZz8570aNUCuHoIpSmqiq8CZQfQfO
Rjp/Bp77k8krGFHF9doW8xt3yqzqYsZriBnVtbUmb2Y7tsNmqDJliIf7A29dx5g=
=przw
-----END PGP SIGNATURE-----
payloadX  tree 5658646a4ef4b11e829c6bf46d5c549bae23c38a
parent 409a00b2b18c78677f64a5492fa67c76ea589407
author Michael Wintermeyer <mswintermeyer@users.noreply.github.com> 1679333362 -0400
committer GitHub <noreply@github.com> 1679333362 +0000

Add getActiveNamespaces endpoint (#6474)

 uujn ^https://api.github.com/repos/palantir/atlasdb/commits/dd4b583f4b274213e27fc800b884ce0080ab9189html_urlShttps://github.com/palantir/atlasdb/commit/dd4b583f4b274213e27fc800b884ce0080ab9189comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/dd4b583f4b274213e27fc800b884ce0080ab9189/commentsj\ }(login
mswintermeyeridJX% jX MDQ6VXNlcjI0MzIwODg=
avatar_url3https://avatars.githubusercontent.com/u/2432088?v=4gravatar_idh5jn *https://api.github.com/users/mswintermeyerj|  https://github.com/mswintermeyer
followers_url4https://api.github.com/users/mswintermeyer/followers
following_urlAhttps://api.github.com/users/mswintermeyer/following{/other_user}	gists_url:https://api.github.com/users/mswintermeyer/gists{/gist_id}starred_urlAhttps://api.github.com/users/mswintermeyer/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/mswintermeyer/subscriptionsorganizations_url/https://api.github.com/users/mswintermeyer/orgs	repos_url0https://api.github.com/users/mswintermeyer/repos
events_url;https://api.github.com/users/mswintermeyer/events{/privacy}received_events_url:https://api.github.com/users/mswintermeyer/received_eventstypeUser
site_adminujd }(j web-flowj J/jX MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5jn %https://api.github.com/users/web-flowj| https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(jV (409a00b2b18c78677f64a5492fa67c76ea589407jn ^https://api.github.com/repos/palantir/atlasdb/commits/409a00b2b18c78677f64a5492fa67c76ea589407j| Shttps://github.com/palantir/atlasdb/commit/409a00b2b18c78677f64a5492fa67c76ea589407uastats}(totalK0	additionsK+	deletionsKufiles](}(jV (3309c1d1cee08ce85d9ae1b7416b9cc06ad14e0ffilename$changelog/@unreleased/pr-6474.v2.ymlstatusaddedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/dd4b583f4b274213e27fc800b884ce0080ab9189/changelog%2F%40unreleased%2Fpr-6474.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/dd4b583f4b274213e27fc800b884ce0080ab9189/changelog%2F%40unreleased%2Fpr-6474.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6474.v2.yml?ref=dd4b583f4b274213e27fc800b884ce0080ab9189patch@@ -0,0 +1,5 @@
+type: feature
+feature:
+  description: Add getActiveNamespaces endpoint
+  links:
+  - https://github.com/palantir/atlasdb/pull/6474u}(jV (8fd2fe20d1f63dc3cf67e6824314aa0af5ca53e5j 9timelock-api/src/main/conjure/timelock-management-api.ymlj modifiedj Kj K j KjÛ https://github.com/palantir/atlasdb/blob/dd4b583f4b274213e27fc800b884ce0080ab9189/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymljś https://github.com/palantir/atlasdb/raw/dd4b583f4b274213e27fc800b884ce0080ab9189/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymljǛ https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.yml?ref=dd4b583f4b274213e27fc800b884ce0080ab9189jɛ X  @@ -12,6 +12,13 @@ services:
           The endpoint loads all persisted namespaces. ``leaderPaxos`` is filtered out from the set
           as it is not a namespace.
 
+      getActiveNamespaces:
+        http: POST /getActiveNamespaces
+        returns: set<string>
+        docs: |
+          The endpoint loads all namespaces with new timestamps since the last restart. 
+          ``leaderPaxos`` is filtered out from the set as it is not a namespace.
+
       achieveConsensus:
         http: POST /achieveConsensus
         args:u}(jV (9de376eff6a2ade06d2a17b7271c4a04db9991dbj dtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/TimeLockManagementResource.javaj modifiedj Kj K j KjÛ https://github.com/palantir/atlasdb/blob/dd4b583f4b274213e27fc800b884ce0080ab9189/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.javajś https://github.com/palantir/atlasdb/raw/dd4b583f4b274213e27fc800b884ce0080ab9189/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.javajǛ https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.java?ref=dd4b583f4b274213e27fc800b884ce0080ab9189jɛ Xp  @@ -87,6 +87,15 @@ public static TimeLockManagementService jersey(
                 persistentNamespaceContext, timelockNamespaces, redirectRetryTargeter, serviceLifecycleController));
     }
 
+    @Override
+    public ListenableFuture<Set<String>> getActiveNamespaces(AuthHeader authHeader) {
+        // This endpoint only returns state already in memory, so it's okay to NOT make it async.
+        return Futures.immediateFuture(timelockNamespaces.getActiveClients().stream()
+                .map(Client::value)
+                .filter(value -> !value.equals(PaxosTimeLockConstants.LEADER_PAXOS_NAMESPACE))
+                .collect(Collectors.toSet()));
+    }
+
     @Override
     public ListenableFuture<Set<String>> getNamespaces(AuthHeader authHeader) {
         // This endpoint is not used frequently (only called by migration cli), so it's okay to NOT make it async.
@@ -158,6 +167,11 @@ public Set<String> getNamespaces(AuthHeader authHeader) {
             return unwrap(resource.getNamespaces(authHeader));
         }
 
+        @Override
+        public Set<String> getActiveNamespaces(AuthHeader authHeader) {
+            return unwrap(resource.getActiveNamespaces(authHeader));
+        }
+
         @Override
         public void achieveConsensus(AuthHeader authHeader, Set<String> namespaces) {
             unwrap(resource.achieveConsensus(authHeader, namespaces));u}(jV (778704192bd5c7d127baa2fe4e47a41236e0980ej qtimelock-server/src/suiteTest/java/com/palantir/atlasdb/timelock/MultiNodePaxosTimeLockServerIntegrationTest.javaj modifiedj Kj Kj KjÛ https://github.com/palantir/atlasdb/blob/dd4b583f4b274213e27fc800b884ce0080ab9189/timelock-server%2Fsrc%2FsuiteTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FMultiNodePaxosTimeLockServerIntegrationTest.javajś https://github.com/palantir/atlasdb/raw/dd4b583f4b274213e27fc800b884ce0080ab9189/timelock-server%2Fsrc%2FsuiteTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FMultiNodePaxosTimeLockServerIntegrationTest.javajǛ https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FsuiteTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FMultiNodePaxosTimeLockServerIntegrationTest.java?ref=dd4b583f4b274213e27fc800b884ce0080ab9189jɛ X	  @@ -23,7 +23,6 @@
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.ImmutableSortedMap;
 import com.google.common.collect.Iterables;
-import com.google.common.collect.Sets;
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.http.v2.ClientOptionsConstants;
@@ -340,6 +339,8 @@ public void canGetAllNamespaces() {
 
         Set<String> knownNamespaces = getKnownNamespaces();
         assertThat(knownNamespaces).contains(randomNamespace);
+        Set<String> activeNamespaces = getActiveNamespaces();
+        assertThat(activeNamespaces).contains(randomNamespace);
 
         for (TestableTimelockServer server : cluster.servers()) {
             server.killSync();
@@ -349,10 +350,13 @@ public void canGetAllNamespaces() {
         cluster.waitUntilAllServersOnlineAndReadyToServeNamespaces(
                 ImmutableList.of(cluster.clientForRandomNamespace().namespace()));
 
-        Set<String> namespacesAfterRestart = getKnownNamespaces();
-        assertThat(namespacesAfterRestart).contains(randomNamespace);
-        assertThat(namespacesAfterRestart).doesNotContain("learner", "acceptor");
-        assertThat(Sets.difference(knownNamespaces, namespacesAfterRestart)).isEmpty();
+        Set<String> knownNamespacesAfterRestart = getKnownNamespaces();
+        assertThat(knownNamespacesAfterRestart).contains(randomNamespace);
+        assertThat(knownNamespacesAfterRestart).doesNotContain("learner", "acceptor");
+        assertThat(knownNamespaces).isSubsetOf(knownNamespacesAfterRestart);
+
+        Set<String> activeNamespacesAfterRestart = getActiveNamespaces();
+        assertThat(activeNamespacesAfterRestart).doesNotContain(randomNamespace);
     }
 
     private Set<String> getKnownNamespaces() {
@@ -363,6 +367,14 @@ private Set<String> getKnownNamespaces() {
                 .collect(Collectors.toSet());
     }
 
+    private Set<String> getActiveNamespaces() {
+        return cluster.servers().stream()
+                .map(TestableTimelockServer::timeLockManagementService)
+                .map(resource -> resource.getActiveNamespaces(AuthHeader.valueOf("Bearer omitted")))
+                .flatMap(Set::stream)
+                .collect(Collectors.toSet());
+    }
+
     @Test
     public void directLegacyAndConjureLockServicesInteractCorrectly() throws InterruptedException {
         LockRefreshToken token = client.legacyLockService()ueu(f7dfb739bc8e1b5bcdee611c76637a95b40da2c9}(sha(f7dfb739bc8e1b5bcdee611c76637a95b40da2c9node_idEC_kwDOAjP5fdoAKGY3ZGZiNzM5YmM4ZTFiNWJjZGVlNjExYzc2NjM3YTk1YjQwZGEyYzkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-28T16:35:55Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-04-28T16:35:55Zumessagetesttree}(j (de56d5082ee9582552fb4c205f6e03c7874dddf8url`https://api.github.com/repos/palantir/atlasdb/git/trees/de56d5082ee9582552fb4c205f6e03c7874dddf8uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f7dfb739bc8e1b5bcdee611c76637a95b40da2c9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRL9esACgkQPlMHVIT1
yhpArQgAkxcfkVKrPxNikQOEZae/d7nsk+nn4/qag8Pn5e7oPLWR+wjlvRjq2gbf
SKF5292DEGW5avJoKV+P8zAhA9H1l0AhERho9TlQeava0QoGkpxbg00YkI43+Idu
0qR7mH1tipS1EJmTim9nEIyqF95fHSDPi+6iNXcAq8r1D3zAIUpvtIw5i5FiBbOX
fSecqxhtmRJRVYYza0XdGTaEo/h5ktYd6TMEzTj5CBpxINpSD8yKZoyiM3kDIMuN
t96k+FXZuAIQ7JGOcLjeXzWf8ouaaNLfGbTWw02Tjvw+Hegsoo40Q/V8OC0dbMH6
3xZfv4CHw4g6jV9RFMXQc8mu6eNHYA==
=R9bI
-----END PGP SIGNATURE-----payloadtree de56d5082ee9582552fb4c205f6e03c7874dddf8
parent c7554bd8295918017d799e3608f27826ddd6b07f
author Ahmed Alouane <aalouane@palantir.com> 1682699755 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682699755 +0100

test
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/f7dfb739bc8e1b5bcdee611c76637a95b40da2c9html_urlShttps://github.com/palantir/atlasdb/commit/f7dfb739bc8e1b5bcdee611c76637a95b40da2c9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f7dfb739bc8e1b5bcdee611c76637a95b40da2c9/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j! 1https://api.github.com/users/ergo14/subscriptionsj# (https://api.github.com/users/ergo14/orgsj% )https://api.github.com/users/ergo14/reposj' 4https://api.github.com/users/ergo14/events{/privacy}j) 3https://api.github.com/users/ergo14/received_eventsj+ Userj- uparents]}(j (c7554bd8295918017d799e3608f27826ddd6b07fj ^https://api.github.com/repos/palantir/atlasdb/commits/c7554bd8295918017d799e3608f27826ddd6b07fj Shttps://github.com/palantir/atlasdb/commit/c7554bd8295918017d799e3608f27826ddd6b07fuastats}(totalK	additionsK	deletionsKufiles]}(j (a070a49d11e22d8e9335ae52e2fb17de7f2d5cfcfilename%scripts/circle-ci/run-circle-tests.shstatusmodifiedjG KjH KchangesKblob_url{https://github.com/palantir/atlasdb/blob/f7dfb739bc8e1b5bcdee611c76637a95b40da2c9/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/f7dfb739bc8e1b5bcdee611c76637a95b40da2c9/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=f7dfb739bc8e1b5bcdee611c76637a95b40da2c9patchX  @@ -89,7 +89,7 @@ case $CIRCLE_NODE_INDEX in
     5) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_5[@]} ;;
     6) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_6[@]} ;;
     7) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_7[@]} ;;
-    8) if [[ "$CIRCLE_BRANCH" = "develop" || ! -z "$CIRCLE_TAG" ]]; then ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_8[@]}; else echo "Skipping"; fi ;;
+    8) if [[ "$CIRCLE_BRANCH" = "aatest23" || ! -z "$CIRCLE_TAG" ]]; then ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_8[@]}; else echo "Skipping"; fi ;;
     9) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_9[@]} ;;
     10) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_10[@]} ;;
     11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} ;;uau(7190b7e2a4094fbfedf7d3cf27dc486db49167e8}(sha(7190b7e2a4094fbfedf7d3cf27dc486db49167e8node_idEC_kwDOAjP5fdoAKDcxOTBiN2UyYTQwOTRmYmZlZGY3ZDNjZjI3ZGM0ODZkYjQ5MTY3ZTgcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-04-28T17:05:35Zu	committer}(jd GitHubjf noreply@github.comjh 2023-04-28T17:05:35Zumessage4Eliminate duplicate executor instrumentation (#6491)tree}(j\ (0b8684e084d0ca2be5242ebfadea49eb31a11143url`https://api.github.com/repos/palantir/atlasdb/git/trees/0b8684e084d0ca2be5242ebfadea49eb31a11143ujt bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7190b7e2a4094fbfedf7d3cf27dc486db49167e8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkS/zfCRBK7hj4Ov3rIwAARb0IAEGQVBtzdJzZxPgKLvpqNIKc
OQjoxGlp9Rns5klpsEA2cqgEZo4oaEXPl/c2XemLQABFD8RjEsg/dPOSVHHPqNQS
UWUuE+f+fPin3+Yv9Et7qUNj0tdOw8dTsl1G2KAx31tW3xkV9WYLGzytGhqILZ8y
erGP2h0o9DtcootHuUbReTnAP7WBAvKHd+MHiXuo9Mty7hhVJdM0BohZL5v2PErw
W3NYHhAqxRmp03/XoC44DKxWFupaQS2iu3f5y++yuAyKZjwK2wldqUg5nugYN4j4
S5e/MlRBPbazqD2Q05LtmLDtBHgCsXvcDC+kwYc8xhLkx4Jmw5WgffUy6vq1XHw=
=qJx2
-----END PGP SIGNATURE-----
payloadX
  tree 0b8684e084d0ca2be5242ebfadea49eb31a11143
parent cc9bb4733ea5afc3e467218602986b3314468167
author Patrick Koenig <pkoenig10@gmail.com> 1682701535 -0700
committer GitHub <noreply@github.com> 1682701535 +0000

Eliminate duplicate executor instrumentation (#6491)

 uujt ^https://api.github.com/repos/palantir/atlasdb/commits/7190b7e2a4094fbfedf7d3cf27dc486db49167e8html_urlShttps://github.com/palantir/atlasdb/commit/7190b7e2a4094fbfedf7d3cf27dc486db49167e8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7190b7e2a4094fbfedf7d3cf27dc486db49167e8/commentsjb }(login	pkoenig10idJLvP j^ MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5jt &https://api.github.com/users/pkoenig10j https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminujj }(j web-flowj J/j^ MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5jt %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j\ (cc9bb4733ea5afc3e467218602986b3314468167jt ^https://api.github.com/repos/palantir/atlasdb/commits/cc9bb4733ea5afc3e467218602986b3314468167j Shttps://github.com/palantir/atlasdb/commit/cc9bb4733ea5afc3e467218602986b3314468167uastats}(totalK5	additionsK	deletionsKufiles](}(j\ (d712c836408b8b983fda0502a1815c19270ae9e1filename.palantir/revapi.ymlstatusmodifiedj Kj K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/7190b7e2a4094fbfedf7d3cf27dc486db49167e8/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/7190b7e2a4094fbfedf7d3cf27dc486db49167e8/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=7190b7e2a4094fbfedf7d3cf27dc486db49167e8patchX_  @@ -115,3 +115,9 @@ acceptedBreaks:
     - code: "java.class.removed"
       old: "interface com.palantir.atlasdb.transaction.api.expectations.ExpectationsAwareTransaction"
       justification: "moving out of API"
+  "0.824.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.removed"
+      old: "method java.util.concurrent.ExecutorService com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService::createThreadPoolWihtoutSpans(java.lang.String,\
+        \ int, int) @ com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl"
+      justification: "Protected method"u}(j\ (69f581236b5f107c22a46408a061b07dd50fd1bcjĜ iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javajƜ modifiedj Kj KjȜ Kjɜ https://github.com/palantir/atlasdb/blob/7190b7e2a4094fbfedf7d3cf27dc486db49167e8/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj˜ https://github.com/palantir/atlasdb/raw/7190b7e2a4094fbfedf7d3cf27dc486db49167e8/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj͜ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=7190b7e2a4094fbfedf7d3cf27dc486db49167e8jϜ X2  @@ -108,8 +108,6 @@
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
-import com.palantir.tracing.Tracers;
-import com.palantir.tritium.metrics.MetricRegistries;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import com.palantir.util.Pair;
 import com.palantir.util.paging.AbstractPagingIterable;
@@ -485,10 +483,7 @@ private static Supplier<ExecutorService> instrumentedFixedThreadPoolSupplier(
             int numberOfThriftHosts = serversConfig.numberOfThriftHosts();
             int corePoolSize = poolSize * numberOfThriftHosts;
             int maxPoolSize = maxConnectionBurstSize * numberOfThriftHosts;
-            return Tracers.wrap(MetricRegistries.instrument(
-                    registry,
-                    createThreadPoolWihtoutSpans("Atlas Cassandra KVS", corePoolSize, maxPoolSize),
-                    "Atlas Cassandra KVS"));
+            return createThreadPoolWithoutSpans("Atlas Cassandra KVS", corePoolSize, maxPoolSize);
         };
     }
 u}(j\ (605212243716ab96bbbde3a8b0fd9ec3aa421b48     jĜ \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/AbstractKeyValueService.javajƜ modifiedj K	j K
jȜ Kjɜ https://github.com/palantir/atlasdb/blob/7190b7e2a4094fbfedf7d3cf27dc486db49167e8/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javaj˜ https://github.com/palantir/atlasdb/raw/7190b7e2a4094fbfedf7d3cf27dc486db49167e8/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javaj͜ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.java?ref=7190b7e2a4094fbfedf7d3cf27dc486db49167e8jϜ X^	  @@ -70,38 +70,37 @@ public AbstractKeyValueService(ExecutorService executor) {
     /**
      * Creates a fixed thread pool.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param corePoolSize size of the core pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createFixedThreadPool(String threadNamePrefix, int corePoolSize) {
-        return createThreadPool(threadNamePrefix, corePoolSize, corePoolSize);
+    protected static ExecutorService createFixedThreadPool(String name, int corePoolSize) {
+        return createThreadPool(name, corePoolSize, corePoolSize);
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPool(String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPool(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPool(String name, int _corePoolSize, int maxPoolSize) {
+        return PTExecutors.newFixedThreadPool(maxPoolSize, name);
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      * It does not create a span.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPoolWihtoutSpans(
-            String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPoolWithoutSpans(String name, int _corePoolSize, int maxPoolSize) {
+        return PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, name);
     }
 
     @Overrideu}(j\ (be35f6935babe6fd6f3078a75090f80835e5f244jĜ Ocommons-executors/src/main/java/com/palantir/common/concurrent/PTExecutors.javajƜ modifiedj Kj K	jȜ Kjɜ https://github.com/palantir/atlasdb/blob/7190b7e2a4094fbfedf7d3cf27dc486db49167e8/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutors.javaj˜ https://github.com/palantir/atlasdb/raw/7190b7e2a4094fbfedf7d3cf27dc486db49167e8/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutors.javaj͜ https://api.github.com/repos/palantir/atlasdb/contents/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutors.java?ref=7190b7e2a4094fbfedf7d3cf27dc486db49167e8jϜ X  @@ -295,10 +295,12 @@ public static ThreadPoolExecutor newFixedThreadPool(int numThreads, ThreadFactor
      * @throws IllegalArgumentException if <tt>numThreads &lt;= 0</tt>
      */
     public static ExecutorService newFixedThreadPool(int numThreads, String name) {
-        return MetricRegistries.instrument(
-                SharedTaggedMetricRegistries.getSingleton(),
-                PTExecutors.wrap(name, getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())),
-                name);
+        return MetricRegistries.executor()
+                .registry(SharedTaggedMetricRegistries.getSingleton())
+                .name(name)
+                .executor(PTExecutors.wrap(
+                        name, getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())))
+                .build();
     }
 
     /**
@@ -316,11 +318,12 @@ public static ExecutorService newFixedThreadPool(int numThreads, String name) {
      * @throws IllegalArgumentException if <tt>numThreads &lt;= 0</tt>
      */
     public static ExecutorService newFixedThreadPoolWithoutSpan(int numThreads, String name) {
-        return MetricRegistries.instrument(
-                SharedTaggedMetricRegistries.getSingleton(),
-                PTExecutors.wrapWithoutSpan(
-                        getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())),
-                name);
+        return MetricRegistries.executor()
+                .registry(SharedTaggedMetricRegistries.getSingleton())
+                .name(name)
+                .executor(PTExecutors.wrapWithoutSpan(
+                        getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())))
+                .build();
     }
 
     public static ExecutorService getViewExecutor(ueu(61d920ed990101244bc01009b1e145c30e01f329}(sha(61d920ed990101244bc01009b1e145c30e01f329node_idEC_kwDOAjP5fdoAKDYxZDkyMGVkOTkwMTAxMjQ0YmMwMTAwOWIxZTE0NWMzMGUwMWYzMjkcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-13T09:17:22Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-04-13T14:46:41ZumessageFix check style violationstree}(j (48cbaee525039a3327a09b244ef6268f1323e4feurl`https://api.github.com/repos/palantir/atlasdb/git/trees/48cbaee525039a3327a09b244ef6268f1323e4feuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/61d920ed990101244bc01009b1e145c30e01f329
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ4FdEACgkQmPPOpKR4
XS3ZWQgArmbJGA2eyCphs7E/mRExdNbSds8ldhFWOrT2ltWoyMXpT+6RFmiOGZ96
WYUDotCNHFt22XIC/QIPp3GNf58LJjD8PVWPAHIOV6cf+IZEI+8RCVqPkZq/Oz67
XJArQgMBEWw5N2J07uSGOahsjfXRQHVQVxcPJ7yuv/xnR6onA1vb0ZxgE4V4Djs7
Dt+7wLqulXnHj25HhigrnBGtSinEMxQcQ2k8rh6QRXaARHu1PRCgwKT0Tat6WNAG
2NjvKszQBpGh4mLS0Lf24sGDG3QxSik/RHm1PrHlL+lA5Qaeq5gOj4dcKopIZqGB
1pWItk2VYyLgX1VBtP4bwnix7JvgUA==
=iWXq
-----END PGP SIGNATURE-----payloadtree 48cbaee525039a3327a09b244ef6268f1323e4fe
parent ce49422da5ffa61be8f709813e7fa3f9d03f0ff9
author Sam Kramer <skramer@palantir.com> 1681377442 +0100
committer Sam Kramer <skramer@palantir.com> 1681397201 +0100

Fix check style violations
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/61d920ed990101244bc01009b1e145c30e01f329html_urlShttps://github.com/palantir/atlasdb/commit/61d920ed990101244bc01009b1e145c30e01f329comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/61d920ed990101244bc01009b1e145c30e01f329/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj! >https://api.github.com/users/Sam-Kramer/following{/other_user}j# 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j% >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j' 5https://api.github.com/users/Sam-Kramer/subscriptionsj) ,https://api.github.com/users/Sam-Kramer/orgsj+ -https://api.github.com/users/Sam-Kramer/reposj- 8https://api.github.com/users/Sam-Kramer/events{/privacy}j/ 7https://api.github.com/users/Sam-Kramer/received_eventsj1 Userj3 uparents]}(j (ce49422da5ffa61be8f709813e7fa3f9d03f0ff9j ^https://api.github.com/repos/palantir/atlasdb/commits/ce49422da5ffa61be8f709813e7fa3f9d03f0ff9j Shttps://github.com/palantir/atlasdb/commit/ce49422da5ffa61be8f709813e7fa3f9d03f0ff9uastats}(totalK	additionsK	deletionsKufiles]}(j (20f4962063b1c0efbf73e03151acc25d2e0ac704filename`atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingGraph.javastatusmodifiedjM KjN KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/61d920ed990101244bc01009b1e145c30e01f329/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaraw_urlhttps://github.com/palantir/atlasdb/raw/61d920ed990101244bc01009b1e145c30e01f329/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.java?ref=61d920ed990101244bc01009b1e145c30e01f329patchX  @@ -84,7 +84,7 @@ public Optional<RingError> validate() {
                 return Optional.of(RingError.missingEntries(ring));
             }
 
-            // If the node already has been visited, it means we're in a cycle
+            // If the node already has been visited, it means we're in a cycle within our ring
             if (!remainingNodes.remove(nextNode)) {
                 return Optional.of(RingError.cycle(ring));
             }uau(1b65392beb769754cbf0f8cc6b05e8dd239fd694}(sha(1b65392beb769754cbf0f8cc6b05e8dd239fd694node_idEC_kwDOAjP5fdoAKDFiNjUzOTJiZWI3Njk3NTRjYmYwZjhjYzZiMDVlOGRkMjM5ZmQ2OTQcommit}(author}(nameMohammed Daudaliemailmdaudali@palantir.comdate2023-02-28T12:27:07Zu	committer}(jj Mohammed Daudalijl mdaudali@palantir.comjn 2023-02-28T12:27:07Zumessagetrack the origin prototypetree}(jb (0b2b57e9f39fb817df9f3d44d68c1cabcb56f0e6url`https://api.github.com/repos/palantir/atlasdb/git/trees/0b2b57e9f39fb817df9f3d44d68c1cabcb56f0e6ujz bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1b65392beb769754cbf0f8cc6b05e8dd239fd694
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE85NpmxiQII63+jWv1DJ7K5YIya0FAmP98xwACgkQ1DJ7K5YI
ya0Mswf+PHptmk9gfv0oCLnXifZSr7ek7ixxfOWsnnHnhFF5NlzWcNtP+1M93M2S
+yzpEn/Z18TC0i4B24dSlJ9PYiBa2r3OejTHcnlvg1ZhQXiDVwnV1Z9CdO2Lz3yl
5QrxnYkFV3Fr185DwYsbHCQXSwvwFsJpf5YCfWPHwbGy0YVJx8fllQM3+aDN5Pjj
U0TmULsv8/raKRjGE5RYzwKT7jcyUzEgDQoRseOIgnhHEdr+sCOEXBmUIk/IR616
zIx/Vpb6rDJ61KXh6TS1SpMu7MTUd19JLT5Q+cI5eRjWfIL18sl4IfZusTsUy+7b
L3RtekSPb2+cB/Ypyh2P9TTJcpD/oQ==
=PCfx
-----END PGP SIGNATURE-----payloadtree 0b2b57e9f39fb817df9f3d44d68c1cabcb56f0e6
parent abc509fc315970b6b62832c8a3c6eb1fe69acf72
author Mohammed Daudali <mdaudali@palantir.com> 1677587227 +0000
committer Mohammed Daudali <mdaudali@palantir.com> 1677587227 +0000

track the origin prototype
uujz ^https://api.github.com/repos/palantir/atlasdb/commits/1b65392beb769754cbf0f8cc6b05e8dd239fd694html_urlShttps://github.com/palantir/atlasdb/commit/1b65392beb769754cbf0f8cc6b05e8dd239fd694comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1b65392beb769754cbf0f8cc6b05e8dd239fd694/commentsjh }(loginmdaudaliidJ jd MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5jz %https://api.github.com/users/mdaudalij https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminujp }(j mdaudalij J jd MDQ6VXNlcjE4MTI3NjQ=j 3https://avatars.githubusercontent.com/u/1812764?v=4j h5jz %https://api.github.com/users/mdaudalij https://github.com/mdaudalij /https://api.github.com/users/mdaudali/followersj <https://api.github.com/users/mdaudali/following{/other_user}j 5https://api.github.com/users/mdaudali/gists{/gist_id}j <https://api.github.com/users/mdaudali/starred{/owner}{/repo}j 3https://api.github.com/users/mdaudali/subscriptionsj *https://api.github.com/users/mdaudali/orgsj +https://api.github.com/users/mdaudali/reposj 6https://api.github.com/users/mdaudali/events{/privacy}j 5https://api.github.com/users/mdaudali/received_eventsj Userj uparents]}(jb (abc509fc315970b6b62832c8a3c6eb1fe69acf72jz ^https://api.github.com/repos/palantir/atlasdb/commits/abc509fc315970b6b62832c8a3c6eb1fe69acf72j Shttps://github.com/palantir/atlasdb/commit/abc509fc315970b6b62832c8a3c6eb1fe69acf72uastats}(totalK[	additionsK8	deletionsK#ufiles](}(jb (b2b98b5e92c968340b1c32b64e325b1c9e7ea90bfilenamedatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javastatusmodifiedjĝ Kjŝ K
changesKblob_urlhttps://github.com/palantir/atlasdb/blob/1b65392beb769754cbf0f8cc6b05e8dd239fd694/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1b65392beb769754cbf0f8cc6b05e8dd239fd694/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=1b65392beb769754cbf0f8cc6b05e8dd239fd694patchX_  @@ -48,6 +48,7 @@
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.concurrent.ScheduledFuture;
 import java.util.concurrent.TimeUnit;
+import one.util.streamex.EntryStream;
 
 /**
  * Feature breakdown:
@@ -339,10 +340,12 @@ private synchronized void refreshPool() {
     }
 
     @VisibleForTesting
-    void setServersInPoolTo(ImmutableSet<CassandraServer> desiredServers) {
+    void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> desiredServers) {
         Set<CassandraServer> currentServers = getCachedServers();
-        SetView<CassandraServer> serversToAdd = Sets.difference(desiredServers, currentServers);
-        SetView<CassandraServer> absentServers = Sets.difference(currentServers, desiredServers);
+        Map<CassandraServer, CassandraServerOrigin> serversToAdd = EntryStream.of(desiredServers)
+                .removeKeys(currentServers::contains)
+                .toImmutableMap();
+        SetView<CassandraServer> absentServers = Sets.difference(currentServers, desiredServers.keySet());
 
         absentServers.forEach(cassandraServer -> {
             CassandraClientPoolingContainer container = cassandra.removePool(cassandraServer);
@@ -361,10 +364,10 @@ void setServersInPoolTo(ImmutableSet<CassandraServer> desiredServers) {
         Preconditions.checkState(
                 !getCurrentPools().isEmpty() || serversToAdd.isEmpty(),
                 "No servers were successfully added to the pool. This means we could not come to a consensus on"
-                    + " cluster topology, and the client cannot connect as there are no valid hosts. This state should"
-                    + " be transient (<5 minutes), and if it is not, indicates that the user may have accidentally"
-                    + " configured AltasDB to use two separate Cassandra clusters (i.e., user-led split brain).",
-                SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd)));
+                        + " cluster topology, and the client cannot connect as there are no valid hosts. This state should"
+                        + " be transient (<5 minutes), and if it is not, indicates that the user may have accidentally"
+                        + " configured AltasDB to use two separate Cassandra clusters (i.e., user-led split brain).",
+                SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())));
 
         logRefreshedHosts(validatedServersToAdd, serversToShutdown, absentServers);
     }
@@ -380,13 +383,13 @@ void setServersInPoolTo(ImmutableSet<CassandraServer> desiredServers) {
     @VisibleForTesting
     Set<CassandraServer> validateNewHostsTopologiesAndMaybeAddToPool(
             Map<CassandraServer, CassandraClientPoolingContainer> currentContainers,
-            Set<CassandraServer> serversToAdd) {
+            Map<CassandraServer, CassandraServerOrigin> serversToAdd) {
         if (serversToAdd.isEmpty()) {
             return Set.of();
         }
 
         Map<CassandraServer, CassandraClientPoolingContainer> serversToAddContainers =
-                getContainerForNewServers(serversToAdd);
+                getContainerForNewServers(serversToAdd.keySet());
 
         Preconditions.checkArgument(
                 Sets.intersection(currentContainers.keySet(), serversToAddContainers.keySet())
@@ -408,7 +411,8 @@ Set<CassandraServer> validateNewHostsTopologiesAndMaybeAddToPool(
                 cassandraTopologyValidator.getNewHostsWithInconsistentTopologiesAndRetry(
                         serversToAdd, allContainers, Duration.ofSeconds(5), Duration.ofMinutes(1));
 
-        Set<CassandraServer> validatedServersToAdd = Sets.difference(serversToAdd, newHostsWithDifferingTopology);
+        Set<CassandraServer> validatedServersToAdd =
+                Sets.difference(serversToAdd.keySet(), newHostsWithDifferingTopology);
         validatedServersToAdd.forEach(server -> cassandra.addPool(server, serversToAddContainers.get(server)));
         newHostsWithDifferingTopology.forEach(
                 server -> absentHostTracker.trackAbsentCassandraServer(server, serversToAddContainers.get(server)));u}(jb (658ca6050220944210858ffe25d93ace452559ecjʝ batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraServerOrigin.javaj̝ addedjĝ Kjŝ K jΝ Kjϝ https://github.com/palantir/atlasdb/blob/1b65392beb769754cbf0f8cc6b05e8dd239fd694/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.javajѝ https://github.com/palantir/atlasdb/raw/1b65392beb769754cbf0f8cc6b05e8dd239fd694/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.javajӝ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.java?ref=1b65392beb769754cbf0f8cc6b05e8dd239fd694j՝ @@ -0,0 +1,7 @@
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+public enum CassandraServerOrigin {
+    CONFIG,
+    LAST_KNOWN,
+    TOKEN_RANGE;
+}u}(jb (577bc3f47baa835e91fe09d483f14a1a8f03e789jʝ gatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraTopologyValidator.javaj̝ modifiedjĝ Kjŝ K
jΝ Kjϝ https://github.com/palantir/atlasdb/blob/1b65392beb769754cbf0f8cc6b05e8dd239fd694/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.javajѝ https://github.com/palantir/atlasdb/raw/1b65392beb769754cbf0f8cc6b05e8dd239fd694/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.javajӝ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.java?ref=1b65392beb769754cbf0f8cc6b05e8dd239fd694j՝ Xt  @@ -98,7 +98,7 @@ public CassandraTopologyValidator(CassandraTopologyValidationMetrics metrics) {
      * the get_host_ids endpoint will never be returned here.
      */
     public Set<CassandraServer> getNewHostsWithInconsistentTopologiesAndRetry(
-            Set<CassandraServer> newlyAddedHosts,
+            Map<CassandraServer, CassandraServerOrigin> newlyAddedHosts,
             Map<CassandraServer, CassandraClientPoolingContainer> allHosts,
             Duration waitTimeBetweenCalls,
             Duration maxWaitTime) {
@@ -128,44 +128,45 @@ public Set<CassandraServer> getNewHostsWithInconsistentTopologiesAndRetry(
 
     @VisibleForTesting
     Set<CassandraServer> getNewHostsWithInconsistentTopologies(
-            Set<CassandraServer> newlyAddedHosts, Map<CassandraServer, CassandraClientPoolingContainer> allHosts) {
+            Map<CassandraServer, CassandraServerOrigin> newlyAddedHosts,
+            Map<CassandraServer, CassandraClientPoolingContainer> allHosts) {
 
+        Set<CassandraServer> newlyAddedHostsWithoutOrigin = newlyAddedHosts.keySet();
         if (newlyAddedHosts.isEmpty()) {
-            return newlyAddedHosts;
+            return newlyAddedHostsWithoutOrigin;
         }
 
         Preconditions.checkArgument(
-                allHosts.keySet().containsAll(newlyAddedHosts),
+                allHosts.keySet().containsAll(newlyAddedHostsWithoutOrigin),
                 "Newly added hosts must be a subset of all hosts, as otherwise we have no way to query them.",
-                SafeArg.of("newlyAddedHosts", CassandraLogHelper.collectionOfHosts(newlyAddedHosts)),
+                SafeArg.of("newlyAddedHosts", CassandraLogHelper.collectionOfHosts(newlyAddedHostsWithoutOrigin)),
                 SafeArg.of("allHosts", CassandraLogHelper.collectionOfHosts(allHosts.keySet())));
 
         Map<CassandraServer, HostIdResult> hostIdsByServerWithoutSoftFailures =
                 fetchHostIdsIgnoringSoftFailures(allHosts);
 
         Map<CassandraServer, HostIdResult> currentServersWithoutSoftFailures = EntryStream.of(
                         hostIdsByServerWithoutSoftFailures)
-                .removeKeys(newlyAddedHosts::contains)
+                .removeKeys(newlyAddedHosts::containsKey)
                 .toMap();
         Map<CassandraServer, HostIdResult> newServersWithoutSoftFailures = EntryStream.of(
                         hostIdsByServerWithoutSoftFailures)
-                .filterKeys(newlyAddedHosts::contains)
+                .filterKeys(newlyAddedHosts::containsKey)
                 .toMap();
 
         // This means currently we've no servers or no server without the get_host_ids endpoint.
         // Therefore, we need to come to a consensus on the new servers.
         if (currentServersWithoutSoftFailures.isEmpty()) {
             ClusterTopologyResult topologyResultFromNewServers =
                     maybeGetConsistentClusterTopology(newServersWithoutSoftFailures);
-            Map<CassandraServer, HostIdResult> newServersWithoutAnyFailures = EntryStream.of(
-                            newServersWithoutSoftFailures)
-                    .filterValues(result -> result.type() == HostIdResult.Type.SUCCESS)
+            Map<CassandraServer, HostIdResult> newServersFromConfig = EntryStream.of(newServersWithoutSoftFailures)
+                    .filterKeys(server -> newlyAddedHosts.get(server) == CassandraServerOrigin.CONFIG)
                     .toMap();
             return getNewHostsWithInconsistentTopologiesFromTopologyResult(
                     topologyResultFromNewServers,
                     newServersWithoutSoftFailures,
-                    newServersWithoutAnyFailures,
-                    newlyAddedHosts,
+                    newServersFromConfig,
+                    newlyAddedHosts.keySet(),
                     allHosts.keySet());
         }
 
@@ -179,7 +180,7 @@ Set<CassandraServer> getNewHostsWithInconsistentTopologies(
                 topologyFromCurrentServers,
                 newServersWithoutSoftFailures,
                 newServersWithoutSoftFailures,
-                newlyAddedHosts,
+                newlyAddedHosts.keySet(),
                 allHosts.keySet());
     }
 u}(jb (0569166b316674121a7b7d66379c0d11d9c97ab4jʝ batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaj̝ modifiedjĝ Kjŝ KjΝ K!jϝ https://github.com/palantir/atlasdb/blob/1b65392beb769754cbf0f8cc6b05e8dd239fd694/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javajѝ https://github.com/palantir/atlasdb/raw/1b65392beb769754cbf0f8cc6b05e8dd239fd694/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javajӝ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=1b65392beb769754cbf0f8cc6b05e8dd239fd694j՝ X!  @@ -35,6 +35,7 @@
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClient;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraLogHelper;
+import com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraUtils;
 import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
 import com.palantir.atlasdb.util.MetricsManager;
@@ -120,7 +121,7 @@ public CassandraService(
     @Override
     public void close() {}
 
-    public ImmutableSet<CassandraServer> refreshTokenRangesAndGetServers() {
+    public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAndGetServers() {
         // explicitly not using immutable builders to deduplicate nodes
         Set<CassandraServer> servers = new HashSet<>();
         Map<CassandraServer, String> hostToDatacentersThisRefresh = new HashMap<>();
@@ -171,7 +172,8 @@ public ImmutableSet<CassandraServer> refreshTokenRangesAndGetServers() {
             tokenMap = tokensInterner.intern(newTokenRing.build());
             hostToDatacenter = ImmutableMap.copyOf(hostToDatacentersThisRefresh);
             logHostToDatacenterMapping(hostToDatacenter);
-            return ImmutableSet.copyOf(servers);
+            return servers.stream()
+                    .collect(ImmutableMap.toImmutableMap(server -> server, _v -> CassandraServerOrigin.LAST_KNOWN));
         } catch (Exception e) {
             log.info(
                     "Couldn't grab new token ranges for token aware cassandra mapping. We will retry in {} seconds.",
@@ -180,24 +182,30 @@ public ImmutableSet<CassandraServer> refreshTokenRangesAndGetServers() {
 
             // Attempt to re-resolve addresses from the configuration; this is important owing to certain race
             // conditions where the entire pool becomes invalid between refreshes.
-            ImmutableSet<CassandraServer> resolvedConfigAddresses = getCurrentServerListFromConfig();
-
-            ImmutableSet<CassandraServer> lastKnownAddresses = tokenMap.asMapOfRanges().values().stream()
-                    .flatMap(Collection::stream)
-                    .collect(ImmutableSet.toImmutableSet());
-
-            return Sets.union(resolvedConfigAddresses, lastKnownAddresses).immutableCopy();
+            ImmutableMap<CassandraServer, CassandraServerOrigin> resolvedConfigAddresses =
+                    getCurrentServerListFromConfig();
+
+            ImmutableMap<CassandraServer, CassandraServerOrigin> lastKnownAddresses =
+                    tokenMap.asMapOfRanges().values().stream()
+                            .flatMap(Collection::stream)
+                            .collect(ImmutableMap.toImmutableMap(
+                                    server -> server, _v -> CassandraServerOrigin.LAST_KNOWN));
+
+            return ImmutableMap.<CassandraServer, CassandraServerOrigin>builder()
+                    .putAll(lastKnownAddresses)
+                    .putAll(resolvedConfigAddresses)
+                    .build();
         }
     }
 
     /**
      * It is expected that config provides list of servers that are directly reachable and do not require special IP
      * resolution.
      * */
-    public ImmutableSet<CassandraServer> getCurrentServerListFromConfig() {
+    public ImmutableMap<CassandraServer, CassandraServerOrigin> getCurrentServerListFromConfig() {
         return getServersSocketAddressesFromConfig().stream()
                 .map(cassandraHost -> CassandraServer.of(cassandraHost.getHostString(), cassandraHost))
-                .collect(ImmutableSet.toImmutableSet());
+                .collect(ImmutableMap.toImmutableMap(server -> server, _v -> CassandraServerOrigin.CONFIG));
     }
 
     private ImmutableSet<InetSocketAddress> getServersSocketAddressesFromConfig() {
@@ -491,7 +499,8 @@ public CassandraClientPoolingContainer removePool(CassandraServer removedServerA
     }
 
     public void cacheInitialCassandraHosts() {
-        ImmutableSet<CassandraServer> thriftSocket = getCurrentServerListFromConfig();
+        ImmutableSet<CassandraServer> thriftSocket =
+                getCurrentServerListFromConfig().keySet();
 
         cassandraHosts = thriftSocket.stream()
                 .sorted(Comparator.comparing(CassandraServer::cassandraHostName))ueu(b1e4c0ef5668724b993350d3ac3e9c72a60a4e00}(sha(b1e4c0ef5668724b993350d3ac3e9c72a60a4e00node_idEC_kwDOAjP5fdoAKGIxZTRjMGVmNTY2ODcyNGI5OTMzNTBkM2FjM2U5YzcyYTYwYTRlMDAcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-09T09:50:41Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-06-09T09:50:41Zumessage
test stufftree}(j (d3a7323ba6ae75dfbce40c26d570c019038ff135url`https://api.github.com/repos/palantir/atlasdb/git/trees/d3a7323ba6ae75dfbce40c26d570c019038ff135uj	 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b1e4c0ef5668724b993350d3ac3e9c72a60a4e00
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSC9fEACgkQTLdFKain
zjyAdAgAo3926ritgT36j0dWBzq3HwUSMduMcEL1wwurizfViR94fY6481D393lB
/juEA8N5mBVV49Iy00VUhcO41/BYqHa7E5N5+ntuoPjwyBeNFvQtjf99IK/FEQ2i
AgIl9acmWhMG6yvDK3CZSvJ08DoRhHzNdIxcBwje+Z2BagGaCB1hidklMu4M2pFl
G7etzAIqRXUV03+UOrV0XfO5WheeQCijXbVGeEBlqYAs6MlvlfsxaXhBP7EOjsJp
MOyRDLikoUc5g6Yi+ZIXgfZCNwdNrzmpLBlp0VHYmOD5yyv6wfKYjTBOPhdNIQBp
hoDzVclgRK1+OYTcLcx3ZTieXiK9Gg==
=XaCt
-----END PGP SIGNATURE-----payloadtree d3a7323ba6ae75dfbce40c26d570c019038ff135
parent a4a8cec2f7589e93db1a2e28bc8c2037888e07c5
author Jeremy Kong <jkong@palantir.com> 1686304241 +0100
committer Jeremy Kong <jkong@palantir.com> 1686304241 +0100

test stuff
uuj	 ^https://api.github.com/repos/palantir/atlasdb/commits/b1e4c0ef5668724b993350d3ac3e9c72a60a4e00html_urlShttps://github.com/palantir/atlasdb/commit/b1e4c0ef5668724b993350d3ac3e9c72a60a4e00comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b1e4c0ef5668724b993350d3ac3e9c72a60a4e00/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j	 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j  3https://avatars.githubusercontent.com/u/5955510?v=4j" h5j	 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j% 1https://api.github.com/users/jeremyk-91/followersj' >https://api.github.com/users/jeremyk-91/following{/other_user}j) 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j+ >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j- 5https://api.github.com/users/jeremyk-91/subscriptionsj/ ,https://api.github.com/users/jeremyk-91/orgsj1 -https://api.github.com/users/jeremyk-91/reposj3 8https://api.github.com/users/jeremyk-91/events{/privacy}j5 7https://api.github.com/users/jeremyk-91/received_eventsj7 Userj9 uparents]}(j (a4a8cec2f7589e93db1a2e28bc8c2037888e07c5j	 ^https://api.github.com/repos/palantir/atlasdb/commits/a4a8cec2f7589e93db1a2e28bc8c2037888e07c5j Shttps://github.com/palantir/atlasdb/commit/a4a8cec2f7589e93db1a2e28bc8c2037888e07c5uastats}(totalK	additionsK	deletionsKufiles]}(j (ce49e27d10355fb6f5b71d88a206899b12b7f25bfilenamexatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javastatusmodifiedjS KjT KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b1e4c0ef5668724b993350d3ac3e9c72a60a4e00/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b1e4c0ef5668724b993350d3ac3e9c72a60a4e00/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=b1e4c0ef5668724b993350d3ac3e9c72a60a4e00patchX  @@ -45,13 +45,14 @@
 public class SingleBusyCellReadNoTouchWorkflowsTest {
     private static final String TABLE_NAME = "busy.readnotouch.cell";
     private static final int ITERATION_COUNT = 1_000;
-    private static final SingleBusyCellReadNoTouchWorkflowConfiguration CONFIGURATION = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.builder()
-            .tableConfiguration(ImmutableTableConfiguration.builder()
-                    .tableName(TABLE_NAME)
-                    .isolationLevel(IsolationLevel.SERIALIZABLE)
-                    .build())
-            .iterationCount(ITERATION_COUNT)
-            .build();
+    private static final SingleBusyCellReadNoTouchWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
 
     private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
             TransactionManagers.createInMemory(ImmutableSet.of()),uau(7a6c2e6de52d398ed3ac48f410bd3ae2a7026c63}(sha(7a6c2e6de52d398ed3ac48f410bd3ae2a7026c63node_idEC_kwDOAjP5fdoAKDdhNmMyZTZkZTUyZDM5OGVkM2FjNDhmNDEwYmQzYWUyYTcwMjZjNjMcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-08T15:25:27Zu	committer}(jp 
Ahmed Alouanejr aalouane@palantir.comjt 2023-05-08T15:25:27Zumessageindenttree}(jh (33082cdbb90e5e6d9280c14dd6943ad307d6bcdeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/33082cdbb90e5e6d9280c14dd6943ad307d6bcdeuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7a6c2e6de52d398ed3ac48f410bd3ae2a7026c63
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRZFGcACgkQPlMHVIT1
yhpgCggAk3866D7xO8r8Kobmu1/sTYsQegG7V3XXlgGqaWZ/sOJxIjUHcxhKi/My
nP63Ym0E6vlw14k1EcAceipwHofwZzCQgnfSUHS2pMuUn97axcz42Xu6qesx/8sX
u/UC995HpadtVlpfeEyckhNYj2HP0Byw1Rl+zcorJKvgvBIYHXRc/8xjuIN8LMyz
TSXY5EAOwdAy6FGSQHdFCwSC/bK/PX0KGU0zyNBiiUZwa+DXZOlU69tBTNGZk0T4
ALnZwITxyujEhD6EJWs6+ADKA/EdTkn9j82I/ukomyi2iQKaCLYIwW237iNb52aU
bMy7yoEyC3PLyXI6wkkO4oFy7GyNDg==
=vjtx
-----END PGP SIGNATURE-----payloadtree 33082cdbb90e5e6d9280c14dd6943ad307d6bcde
parent 685f97c3101e989bab3c1aed8e848921f553d7e9
author Ahmed Alouane <aalouane@palantir.com> 1683559527 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1683559527 +0100

indent
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/7a6c2e6de52d398ed3ac48f410bd3ae2a7026c63html_urlShttps://github.com/palantir/atlasdb/commit/7a6c2e6de52d398ed3ac48f410bd3ae2a7026c63comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7a6c2e6de52d398ed3ac48f410bd3ae2a7026c63/commentsjn }(loginergo14idJjj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujv }(j ergo14j Jjj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jh (685f97c3101e989bab3c1aed8e848921f553d7e9j ^https://api.github.com/repos/palantir/atlasdb/commits/685f97c3101e989bab3c1aed8e848921f553d7e9j Shttps://github.com/palantir/atlasdb/commit/685f97c3101e989bab3c1aed8e848921f553d7e9uastats}(totalK	additionsK	deletionsKufiles]}(jh (830db64a76d640120a6b68c9c1c353cf4ab659b6filename.circleci/config.ymlstatusmodifiedjʞ Kj˞ KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/7a6c2e6de52d398ed3ac48f410bd3ae2a7026c63/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/7a6c2e6de52d398ed3ac48f410bd3ae2a7026c63/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=7a6c2e6de52d398ed3ac48f410bd3ae2a7026c63patchXu  @@ -165,10 +165,10 @@ workflows:
             tags:
               only: /.*/
       - noop:
-        requires: [test-no-tl, test-tl]
-        filters:
-          tags:
-            only: /.*/
+          requires: [test-no-tl, test-tl]
+          filters:
+            tags:
+              only: /.*/
       - trial-publish:
           requires: [build]
           filters:uau(bb9fe9b189bfdb90a920eb39344354793d5beb0b}(sha(bb9fe9b189bfdb90a920eb39344354793d5beb0bnode_idEC_kwDOAjP5fdoAKGJiOWZlOWIxODliZmRiOTBhOTIwZWIzOTM0NDM1NDc5M2Q1YmViMGIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-08T17:38:11Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-06-08T17:38:11Zumessagespotlesstree}(jߞ (3942ecec6c088aa9ca55efdd2380acec8efacb1curl`https://api.github.com/repos/palantir/atlasdb/git/trees/3942ecec6c088aa9ca55efdd2380acec8efacb1cuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bb9fe9b189bfdb90a920eb39344354793d5beb0b
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSCEgMACgkQTLdFKain
zjxRQQgAg3kKByv1zm/GMtbmno0RsWKtXOrUl0hfXBimztw0Fk32ggEzlVoopBIx
w49gr5P1zIgMTIQ7J2t1D7dKr8KtuJE1bybcOB2L9ChtGHc2i3d4z1ANtVLlT2Pc
XxPE5hPiasu0nlUfbalTJ16ZaV1W7Ad49fQ2p3M3+fAoQcuXgFmV5+TDPGSnMmyG
iZr33yNwRBWnDDOPIO7rhl5TYLWWTDz42r24NqVQW0HH/lTPnr1lgTROA2yoTjm8
xQLxnLU1vn6rw1HnGOkErt7gRBlFZNtkPPOx+EIsHJ3wt5/U2Esj5nHnFNIIgnWd
bj/pQFG4fYiMhM8wbgjxYppvUqCBGQ==
=X614
-----END PGP SIGNATURE-----payloadtree 3942ecec6c088aa9ca55efdd2380acec8efacb1c
parent c31b25e62176cfb4ea8f821a972908bc016dad7c
author Jeremy Kong <jkong@palantir.com> 1686245891 +0100
committer Jeremy Kong <jkong@palantir.com> 1686245891 +0100

spotless
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/bb9fe9b189bfdb90a920eb39344354793d5beb0bhtml_urlShttps://github.com/palantir/atlasdb/commit/bb9fe9b189bfdb90a920eb39344354793d5beb0bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bb9fe9b189bfdb90a920eb39344354793d5beb0b/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j
 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj! 8https://api.github.com/users/jeremyk-91/events{/privacy}j# 7https://api.github.com/users/jeremyk-91/received_eventsj% Userj' uparents]}(jߞ (c31b25e62176cfb4ea8f821a972908bc016dad7cj ^https://api.github.com/repos/palantir/atlasdb/commits/c31b25e62176cfb4ea8f821a972908bc016dad7cj Shttps://github.com/palantir/atlasdb/commit/c31b25e62176cfb4ea8f821a972908bc016dad7cuastats}(totalK#	additionsK	deletionsKufiles](}(jߞ (284f26075e3ae1ed8320bcbc8402749af631ccddfilenameatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javastatusmodifiedjA KjB KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/bb9fe9b189bfdb90a920eb39344354793d5beb0b/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/bb9fe9b189bfdb90a920eb39344354793d5beb0b/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javacontents_urlX  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=bb9fe9b189bfdb90a920eb39344354793d5beb0bpatchX  @@ -46,7 +46,8 @@ default void check() {
                 .map(ColumnValue::column)
                 .filter(column -> !knownColumns.add(column))
                 .collect(Collectors.toSet());
-        Preconditions.checkState(duplicateColumns.isEmpty(),
+        Preconditions.checkState(
+                duplicateColumns.isEmpty(),
                 "Duplicate columns in columnsAndValues",
                 SafeArg.of("duplicateColumns", duplicateColumns),
                 SafeArg.of("columnsAndValues", columnsAndValues()));u}(jߞ (b2c905aecbadb5eff96bc5dbc26f890c72dbd00cjG atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javajI modifiedjA KjB KjK K jL https://github.com/palantir/atlasdb/blob/bb9fe9b189bfdb90a920eb39344354793d5beb0b/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javajN https://github.com/palantir/atlasdb/raw/bb9fe9b189bfdb90a920eb39344354793d5beb0b/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javajP X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=bb9fe9b189bfdb90a920eb39344354793d5beb0bjR X
  @@ -33,14 +33,14 @@ public class WitnessedRowColumnRangeReadTransactionActionTest {
     @Test
     public void canCreateWitness() {
         assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
-                .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                        .table("foo")
-                        .row(1)
-                        .columnRangeSelection(
-                                ColumnRangeSelection.builder().build())
+                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
                         .build())
-                .build())
                 .doesNotThrowAnyException();
     }
 
@@ -54,20 +54,18 @@ public void cannotCreateWitnessWithDuplicateColumns() {
                 ColumnValue.of(9, 99));
 
         assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                .addAllColumnsAndValues(columnsAndValues)
-                .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                        .table("foo")
-                        .row(1)
-                        .columnRangeSelection(
-                                ColumnRangeSelection.builder().build())
+                        .addAllColumnsAndValues(columnsAndValues)
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
                         .build())
-                .build())
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Duplicate columns in columnsAndValues")
                 .hasExactlyArgs(
                         SafeArg.of("duplicateColumns", ImmutableSet.of(1, 5)),
-                        SafeArg.of(
-                                "columnsAndValues",
-                                columnsAndValues));
+                        SafeArg.of("columnsAndValues", columnsAndValues));
     }
 }ueu(0f014d7af9f371e8c7944b7b3e2a6deb9bda10d0}(sha(0f014d7af9f371e8c7944b7b3e2a6deb9bda10d0node_idEC_kwDOAjP5fdoAKDBmMDE0ZDdhZjlmMzcxZThjNzk0NGI3YjNlMmE2ZGViOWJkYTEwZDAcommit}(author}(nameMohammed Daudaliemailmdaudali@palantir.comdate2023-05-19T13:09:45Zu	committer}(jf Mohammed Daudalijh mdaudali@palantir.comjj 2023-05-19T13:09:45Zumessagelogstree}(j^ (b6a8b31b4f19a8d6f3ae664a6a15a0b9307b400eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/b6a8b31b4f19a8d6f3ae664a6a15a0b9307b400eujv bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0f014d7af9f371e8c7944b7b3e2a6deb9bda10d0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE85NpmxiQII63+jWv1DJ7K5YIya0FAmRndRkACgkQ1DJ7K5YI
ya0UBAgAiSAOTbtNBDcPiQ8cnINjjVpOpK926SHIPvuX7KgMThczsVxewVKqWH7x
OywzuOC63an/z0GSFy/qbjf01HusyqYRWYuHE7zFbLy1LZcgDXBsZq8x/o6A3VBo
kNRMwm1sRtXh85G/gyvq8K09CIUhOclzp4OpI8Bqt9Eqb8YsVab0AXjrgqEikTlB
/cRPegZvTVygczy2NYSp2MvDU273uBx/FIRKSZ6wsGGI7HipFg3+FTViiEFMn9gT
/RPTqBu1IKtHTYwstylRHeo47RlGIabsAUSnx0ZTUya1pwu9UfE7XxfY8dgFB+pk
7a9qaJWvo2f42DePxrPtTNviJw4B+A==
=FqgB
-----END PGP SIGNATURE-----payloadtree b6a8b31b4f19a8d6f3ae664a6a15a0b9307b400e
parent 6d014a5f21edd6ca9a7de56b98f94e4875dfa077
author Mohammed Daudali <mdaudali@palantir.com> 1684501785 +0100
committer Mohammed Daudali <mdaudali@palantir.com> 1684501785 +0100

logs
uujv ^https://api.github.com/repos/palantir/atlasdb/commits/0f014d7af9f371e8c7944b7b3e2a6deb9bda10d0html_urlShttps://github.com/palantir/atlasdb/commit/0f014d7af9f371e8c7944b7b3e2a6deb9bda10d0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0f014d7af9f371e8c7944b7b3e2a6deb9bda10d0/commentsjd }(loginmdaudaliidJ j` MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5jv %https://api.github.com/users/mdaudalij https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminujl }(j mdaudalij J j` MDQ6VXNlcjE4MTI3NjQ=j 3https://avatars.githubusercontent.com/u/1812764?v=4j h5jv %https://api.github.com/users/mdaudalij https://github.com/mdaudalij /https://api.github.com/users/mdaudali/followersj <https://api.github.com/users/mdaudali/following{/other_user}j 5https://api.github.com/users/mdaudali/gists{/gist_id}j <https://api.github.com/users/mdaudali/starred{/owner}{/repo}j 3https://api.github.com/users/mdaudali/subscriptionsj *https://api.github.com/users/mdaudali/orgsj +https://api.github.com/users/mdaudali/reposj 6https://api.github.com/users/mdaudali/events{/privacy}j 5https://api.github.com/users/mdaudali/received_eventsj Userj uparents]}(j^ (6d014a5f21edd6ca9a7de56b98f94e4875dfa077jv ^https://api.github.com/repos/palantir/atlasdb/commits/6d014a5f21edd6ca9a7de56b98f94e4875dfa077j Shttps://github.com/palantir/atlasdb/commit/6d014a5f21edd6ca9a7de56b98f94e4875dfa077uastats}(totalK	additionsK	deletionsK ufiles]}(j^ (a4e6170ac4bfe37bca40287b6c85c6d0d2e0c41efilename_atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTable.javastatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/0f014d7af9f371e8c7944b7b3e2a6deb9bda10d0/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0f014d7af9f371e8c7944b7b3e2a6deb9bda10d0/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.java?ref=0f014d7af9f371e8c7944b7b3e2a6deb9bda10d0patchX	  @@ -95,12 +95,19 @@ public static OracleDdlTable create(
 
     @Override
     public void create(byte[] tableMetadata) {
+        log.info("Attempting to create table {}.", LoggingArgs.tableRef(tableRef));
         TableMetadata metadata = TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMetadata);
         boolean needsOverflow = needsOverflow(metadata);
         int compressionSetting = getOptimalIndexCompression(metadata);
 
         if (tableExists()) {
+            if (log.isDebugEnabled()) {
+                log.debug("Table {} already exists.", LoggingArgs.tableRef(tableRef));
+            }
             if (needsOverflow) {
+                if (log.isDebugEnabled()) {
+                    log.debug("Table {} needs overflow.", LoggingArgs.tableRef(tableRef));
+                }
                 TableValueStyle existingStyle = valueStyleCache.getTableType(conns, tableRef, config.metadataTable());
                 if (existingStyle != TableValueStyle.OVERFLOW) {
                     throwForMissingOverflowTable();
@@ -126,9 +133,23 @@ public void create(byte[] tableMetadata) {
     }
 
     private void maybeAlterTableToHaveOverflowColumn() {
+        if (log.isDebugEnabled()) {
+            log.debug("Potentially altering table {} to have overflow column.", LoggingArgs.tableRef(tableRef));
+        }
         if (config.alterTablesOrMetadataToMatch().contains(tableRef)) {
+            if (log.isDebugEnabled()) {
+                log.debug("Config contains table {}, checking if we can alter table.", LoggingArgs.tableRef(tableRef));
+            }
             try {
                 String shortTableName = oracleTableNameGetter.getInternalShortTableName(conns, tableRef);
+                if (log.isDebugEnabled()) {
+                    log.debug(
+                            "Overflow table migrated status: {}, overflow table existence status: {}, overflow "
+                                    + "column exists status: {}",
+                            SafeArg.of("overflowTableHasMigrated", overflowTableHasMigrated()),
+                            SafeArg.of("overflowTableExists", overflowTableExists()),
+                            SafeArg.of("overflowColumnExists", overflowColumnExists(shortTableName)));
+                }
                 if (overflowTableHasMigrated() && overflowTableExists() && !overflowColumnExists(shortTableName)) {
                     alterTableToHaveOverflowColumn(shortTableName);
                 }uau(5b2f4b9e0992ecf666618b05d667acb98da3c491}(sha(5b2f4b9e0992ecf666618b05d667acb98da3c491node_idEC_kwDOAjP5fdoAKDViMmY0YjllMDk5MmVjZjY2NjYxOGIwNWQ2NjdhY2I5OGRhM2M0OTEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-10T06:58:23Zu	committer}(jݟ Jeremy Kongjߟ jkong@palantir.comj 2023-04-10T06:58:23Zumessageboingtree}(j՟ (6cbea917107b2175a2c34528a96a8bfbec6287e0url`https://api.github.com/repos/palantir/atlasdb/git/trees/6cbea917107b2175a2c34528a96a8bfbec6287e0uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5b2f4b9e0992ecf666618b05d667acb98da3c491
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQzs48ACgkQTLdFKain
zjwH5Af/c1DfG/mYKUUlWtHkCg6Qni++5AJg/ZOavBDfV8QGCW/bcxeiGurocbKP
xNxCgdWnVetT9ZIXKaogycKC5q1gps4HgVR2weTyJqNi/39JLKIhBTGqAHBYiVq1
wFJPnjKsFe6ZI482rkKwD1YUbLeI90yqXmKdH5qVs9z5I3FwYUQRnRD4+wPwp9fJ
XPUls74CcDbDtKeCkBFE4WRxmGmhFdf0SEGRmfM9pvw2056V2xcUAifzCmJtI80d
L29ZQXlulxxOYCR0uq2+CCXiB7/BN1UfpNj+A3sKjOeOuX8yBlygQ9nSwESqdbmD
qUBJ7xbyXRm8il2jxNCuhVbAxNKtCQ==
=ySd4
-----END PGP SIGNATURE-----payloadtree 6cbea917107b2175a2c34528a96a8bfbec6287e0
parent bb560d91ca79c925d7bba16296cfbe85b3d28d37
author Jeremy Kong <jkong@palantir.com> 1681109903 +0800
committer Jeremy Kong <jkong@palantir.com> 1681109903 +0800

boing
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/5b2f4b9e0992ecf666618b05d667acb98da3c491html_urlShttps://github.com/palantir/atlasdb/commit/5b2f4b9e0992ecf666618b05d667acb98da3c491comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5b2f4b9e0992ecf666618b05d667acb98da3c491/commentsj۟ }(login
jeremyk-91idJZ jן MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j  
jeremyk-91j JZ jן MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j	 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j
 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j՟ (bb560d91ca79c925d7bba16296cfbe85b3d28d37j ^https://api.github.com/repos/palantir/atlasdb/commits/bb560d91ca79c925d7bba16296cfbe85b3d28d37j Shttps://github.com/palantir/atlasdb/commit/bb560d91ca79c925d7bba16296cfbe85b3d28d37uastats}(totalKE	additionsK'	deletionsKufiles](}(j՟ (57b213bd179a693effa0301e23232a334a6bc7b4filenameKtimelock-agent/src/main/java/com/palantir/timelock/paxos/TimeLockAgent.javastatusmodifiedj7 K
j8 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5b2f4b9e0992ecf666618b05d667acb98da3c491/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5b2f4b9e0992ecf666618b05d667acb98da3c491/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.java?ref=5b2f4b9e0992ecf666618b05d667acb98da3c491patchX  @@ -37,6 +37,8 @@
 import com.palantir.atlasdb.timelock.AsyncTimelockService;
 import com.palantir.atlasdb.timelock.ConjureLockWatchingResource;
 import com.palantir.atlasdb.timelock.ConjureTimelockResource;
+import com.palantir.atlasdb.timelock.LegacyAggregatedTimelockResource;
+import com.palantir.atlasdb.timelock.LegacyAggregatedTimelockResourceEndpoints;
 import com.palantir.atlasdb.timelock.TimeLockResource;
 import com.palantir.atlasdb.timelock.TimeLockServices;
 import com.palantir.atlasdb.timelock.TimelockNamespaces;
@@ -52,6 +54,7 @@
 import com.palantir.atlasdb.timelock.management.ServiceLifecycleController;
 import com.palantir.atlasdb.timelock.management.TimeLockManagementResource;
 import com.palantir.atlasdb.timelock.paxos.ImmutableTimelockPaxosInstallationContext;
+import com.palantir.atlasdb.timelock.paxos.LeaderAcceptorResourceEndpoints;
 import com.palantir.atlasdb.timelock.paxos.PaxosResources;
 import com.palantir.atlasdb.timelock.paxos.PaxosResourcesFactory;
 import com.palantir.atlasdb.timelock.paxos.TimeLockCorruptionComponents;
@@ -325,11 +328,8 @@ private void createAndRegisterResources() {
                 Suppliers.compose(TimeLockRuntimeConfiguration::maxNumberOfClients, runtime::get));
 
         registerManagementResource();
-        // Finally, register the health check, and endpoints associated with the clients.
-        TimeLockResource resource = TimeLockResource.create(namespaces);
         healthCheck = paxosResources.leadershipComponents().healthCheck(namespaces::getActiveClients);
-
-        registrar.accept(resource);
+        LegacyAggregatedTimelockResource aggregatedTimelockResource = LegacyAggregatedTimelockResource.create(namespaces);
 
         Function<String, LockService> lockServiceGetter =
                 namespace -> namespaces.get(namespace).getLockService();
@@ -352,13 +352,22 @@ private void createAndRegisterResources() {
             registerCorruptionHandlerWrappedService(
                     presentUndertowRegistrar,
                     MultiClientConjureTimelockResource.undertow(redirectRetryTargeter, asyncTimelockServiceGetter));
+            registerCorruptionHandlerWrappedService(
+                    presentUndertowRegistrar,
+                    new TimelockUndertowExceptionWrapper(
+                            LegacyAggregatedTimelockResourceEndpoints.of(aggregatedTimelockResource),
+                            redirectRetryTargeter));
         } else {
+            TimeLockResource resource = TimeLockResource.create(namespaces);
+            registrar.accept(resource);
+
             registrar.accept(ConjureTimelockResource.jersey(redirectRetryTargeter, asyncTimelockServiceGetter));
             registrar.accept(ConjureLockWatchingResource.jersey(redirectRetryTargeter, asyncTimelockServiceGetter));
             registrar.accept(ConjureLockV1Resource.jersey(redirectRetryTargeter, lockServiceGetter));
             registrar.accept(TimeLockPaxosHistoryProviderResource.jersey(corruptionComponents.localHistoryLoader()));
             registrar.accept(
                     MultiClientConjureTimelockResource.jersey(redirectRetryTargeter, asyncTimelockServiceGetter));
+            registrar.accept(aggregatedTimelockResource);
         }
     }
 u     }(j՟ (aa6268c6756a6bc0ec32ad22379537feb32439e3j= _timelock-impl/src/main/java/com/palantir/atlasdb/timelock/LegacyAggregatedTimelockResource.javaj? modifiedj7 Kj8 KjA K4jB https://github.com/palantir/atlasdb/blob/5b2f4b9e0992ecf666618b05d667acb98da3c491/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAggregatedTimelockResource.javajD https://github.com/palantir/atlasdb/raw/5b2f4b9e0992ecf666618b05d667acb98da3c491/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAggregatedTimelockResource.javajF https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAggregatedTimelockResource.java?ref=5b2f4b9e0992ecf666618b05d667acb98da3c491jH X  @@ -55,18 +55,18 @@
 import javax.ws.rs.core.MediaType;
 
 /**
- * This class exists as a simple migration of Jersey resources to use conjure-undertow annotations.
+ * This class exists as a simple migration of the synchronous Jersey resources in {@link TimeLockResource}.
+ * Notice that {@link AsyncTimelockResource} is excluded; the handling of that class is somewhat more complex.
  *
  * New endpoints should not be added here; instead, they should be defined in Conjure.
- *
  * Namespaces should respect the regular expression (?!(tl|lw)/)[a-zA-Z0-9_-]+. Requests will still be mapped here, but
  * we do not guarantee we will service them.
  */
-public class LegacyAggregatedTimelockResource {
+@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}")
+public final class LegacyAggregatedTimelockResource {
     private static final long SENTINEL_TIMESTAMP = Long.MIN_VALUE;
     private static final String SENTINEL_TIMESTAMP_STRING =
             SENTINEL_TIMESTAMP + ""; // can't use valueOf/toString because we need a compile time constant!
-    private static final String PING_RESPONSE = "pong";
 
     private final TimelockNamespaces namespaces;
 
@@ -81,26 +81,26 @@ public static LegacyAggregatedTimelockResource create(TimelockNamespaces namespa
 
     // Legacy timestamp
     @POST // This has to be POST because we can't allow caching.
-    @Path("/{namespace}/timestamp/fresh-timestamp")
+    @Path("/timestamp/fresh-timestamp")
     @Produces(MediaType.APPLICATION_JSON)
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timestamp/fresh-timestamp")
     public long getFreshTimestamp(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
         return namespaces.get(namespace).getTimestampService().getFreshTimestamp();
     }
 
     @POST // This has to be POST because we can't allow caching.
-    @Path("/{namespace}/timestamp/fresh-timestamps")
+    @Path("/timestamp/fresh-timestamps")
     @Produces(MediaType.APPLICATION_JSON)
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timestamp/fresh-timestamps")
     public TimestampRange getFreshTimestamps(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
-            @Safe @QueryParam("number") int numTimestampsRequested) {
+            @QueryParam("number") @Handle.QueryParam(value = "number") int numTimestampsRequested) {
         return namespaces.get(namespace).getTimestampService().getFreshTimestamps(numTimestampsRequested);
     }
 
     // Lock v1
     @POST
-    @Path("/{namespace}/lock/lock-with-full-response/{client}")
+    @Path("/lock/lock-with-full-response/{client}")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @CancelableServerCall
@@ -115,7 +115,7 @@ public LockResponse lockWithFullLockResponse(
     }
 
     @POST
-    @Path("/{namespace}/lock/unlock-deprecated")
+    @Path("lock/unlock-deprecated")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @Deprecated
@@ -127,7 +127,7 @@ public boolean unlock(
     }
 
     @POST
-    @Path("/{namespace}/lock/unlock-simple")
+    @Path("lock/unlock-simple")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @NonIdempotent
@@ -138,7 +138,7 @@ public boolean unlockSimple(
     }
 
     @POST
-    @Path("/{namespace}/lock/unlock-and-freeze")
+    @Path("lock/unlock-and-freeze")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @NonIdempotent
@@ -149,7 +149,7 @@ public boolean unlockAndFreeze(
     }
 
     @POST
-    @Path("/{namespace}/lock/get-tokens/{client}")
+    @Path("lock/get-tokens/{client}")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @CancelableServerCall
@@ -162,7 +162,7 @@ public Set<HeldLocksToken> getTokens(
     }
 
     @POST
-    @Path("/{namespace}/lock/refresh-tokens")
+    @Path("lock/refresh-tokens")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @Deprecated
@@ -175,7 +175,7 @@ public Set<HeldLocksToken> refreshTokens(
     }
 
     @POST
-    @Path("/{namespace}/lock/refresh-grant")
+    @Path("lock/refresh-grant")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @Idempotent
@@ -187,7 +187,7 @@ public HeldLocksGrant refreshGrant(
     }
 
     @POST
-    @Path("/{namespace}/lock/refresh-grant-id")
+    @Path("lock/refresh-grant-id")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @Idempotent
@@ -199,7 +199,7 @@ public HeldLocksGrant refreshGrant(
     }
 
     @POST
-    @Path("/{namespace}/lock/convert-to-grant")
+    @Path("lock/convert-to-grant")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @NonIdempotent
@@ -210,7 +210,7 @@ public HeldLocksGrant convertToGrant(
     }
 
     @POST
-    @Path("/{namespace}/lock/use-grant/{client}")
+    @Path("lock/use-grant/{client}")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @NonIdempotent
@@ -223,7 +223,7 @@ public HeldLocksToken useGrant(
     }
 
     @POST
-    @Path("/{namespace}/lock/use-grant-id/{client}")
+    @Path("lock/use-grant-id/{client}")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @NonIdempotent
@@ -236,7 +236,7 @@ public HeldLocksToken useGrant(
     }
 
     @POST
-    @Path("/{namespace}/lock/min-locked-in-version-id")
+    @Path("lock/min-locked-in-version-id")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @Deprecated
@@ -248,7 +248,7 @@ public Long getMinLockedInVersionId(@Safe @PathParam("namespace") @Handle.PathPa
     }
 
     @POST
-    @Path("/{namespace}/lock/min-locked-in-version-id-for-client/{client}")
+    @Path("lock/min-locked-in-version-id-for-client/{client}")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version-id-for-client/{client}")
@@ -259,7 +259,7 @@ public Long getMinLockedInVersionId(
     }
 
     @POST
-    @Path("/{namespace}/lock/lock-server-options")
+    @Path("lock/lock-server-options")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @Idempotent
@@ -269,7 +269,7 @@ public LockServerOptions getLockServerOptions(@Safe @PathParam("namespace") @Han
     }
 
     @POST
-    @Path("/{namespace}/lock/current-time-millis")
+    @Path("lock/current-time-millis")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @Idempotent
@@ -279,7 +279,7 @@ public long currentTimeMillis(@Safe @PathParam("namespace") @Handle.PathParam St
     }
 
     @POST
-    @Path("/{namespace}/lock/log-current-state")
+    @Path("lock/log-current-state")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @Idempotent
@@ -290,7 +290,7 @@ public void logCurrentState(@Safe @PathParam("namespace") @Handle.PathParam Stri
 
     // Timestamp management
     @POST
-    @Path("/{namespace}/timestamp-management/fast-forward")
+    @Path("timestamp-management/fast-forward")
     @Produces(MediaType.APPLICATION_JSON)
     @Handle(method = HttpMethod.POST, path = "/{namespace}/timestamp-management/fast-forward")
     public void fastForwardTimestamp(
@@ -305,7 +305,7 @@ public void fastForwardTimestamp(
     }
 
     @GET
-    @Path("/{namespace}/timestamp-management/ping")
+    @Path("timestamp-management/ping")
     @Produces(MediaType.TEXT_PLAIN)
     @CheckReturnValue(when = When.NEVER)
     @Handle(
@@ -316,7 +316,7 @@ public String ping(@Safe @PathParam("namespace") @Handle.PathParam String namesp
         return namespaces.get(namespace).getTimestampManagementService().ping();
     }
 
-    private enum TextPlainSerializer implements SerializerFactory<String> {
+    enum TextPlainSerializer implements SerializerFactory<String> {
         INSTANCE;
 
         @Overrideueu(d04ff4a19366637694f234ec45ff273546be9019}(sha(d04ff4a19366637694f234ec45ff273546be9019node_idEC_kwDOAjP5fdoAKGQwNGZmNGExOTM2NjYzNzY5NGYyMzRlYzQ1ZmYyNzM1NDZiZTkwMTkcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-08-08T20:59:52Zu	committer}(j\ svc-autoreleasej^ -pd-foundry-infrastructure-notify@palantir.comj` 2023-08-08T20:59:52ZumessageAutorelease 0.911.0

[skip ci]tree}(jT (cf6cfc6ffd62a5bda1865dddd307f3a18920dceburl`https://api.github.com/repos/palantir/atlasdb/git/trees/cf6cfc6ffd62a5bda1865dddd307f3a18920dcebujl bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d04ff4a19366637694f234ec45ff273546be9019
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmTSrM8ACgkQhbrR8ip7mDDlvAD/QdJyFFWq+pgVE0v87VmwFsl9
/DITt+bJLVaxmxj9rpYBAKZIA+Oz8F6HxEi5Z1i73V8aGtBhWGKUPiNN/uD1Z3dz
=zICU
-----END PGP SIGNATURE-----
payloadX0  tree cf6cfc6ffd62a5bda1865dddd307f3a18920dceb
parent 41d902e085f4c9b35a27d817f74c462eb3750462
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1691528392 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1691528392 +0000

Autorelease 0.911.0

[skip ci]uujl ^https://api.github.com/repos/palantir/atlasdb/commits/d04ff4a19366637694f234ec45ff273546be9019html_urlShttps://github.com/palantir/atlasdb/commit/d04ff4a19366637694f234ec45ff273546be9019comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d04ff4a19366637694f234ec45ff273546be9019/commentsjZ }(loginsvc-autoreleaseidJ(jV MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5jl ,https://api.github.com/users/svc-autoreleasejz "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminujb }(j svc-autoreleasej J(jV MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5jl ,https://api.github.com/users/svc-autoreleasejz "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(jT (41d902e085f4c9b35a27d817f74c462eb3750462jl ^https://api.github.com/repos/palantir/atlasdb/commits/41d902e085f4c9b35a27d817f74c462eb3750462jz Shttps://github.com/palantir/atlasdb/commit/41d902e085f4c9b35a27d817f74c462eb3750462uastats}(totalK 	additionsK 	deletionsK ufiles]}(jT (ae5b6dc095d5c6cd4217b7bcf63b7026ec96c159filename changelog/0.911.0/pr-6698.v2.ymlstatusrenamedj K j K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/d04ff4a19366637694f234ec45ff273546be9019/changelog%2F0.911.0%2Fpr-6698.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/d04ff4a19366637694f234ec45ff273546be9019/changelog%2F0.911.0%2Fpr-6698.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.911.0%2Fpr-6698.v2.yml?ref=d04ff4a19366637694f234ec45ff273546be9019previous_filename$changelog/@unreleased/pr-6698.v2.ymluau(474d9a4e7b78ee006566f36db034a2e85773c3c5}(sha(474d9a4e7b78ee006566f36db034a2e85773c3c5node_idEC_kwDOAjP5fdoAKDQ3NGQ5YTRlN2I3OGVlMDA2NTY2ZjM2ZGIwMzRhMmU4NTc3M2MzYzUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-23T23:11:29Zu	committer}(jӠ 
Ahmed Alouanejՠ aalouane@palantir.comjנ 2023-05-23T23:11:29Zumessageogtree}(jˠ (57cb7092f2a3a0fc3ee69e4aed2376718cd1cd09url`https://api.github.com/repos/palantir/atlasdb/git/trees/57cb7092f2a3a0fc3ee69e4aed2376718cd1cd09uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/474d9a4e7b78ee006566f36db034a2e85773c3c5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRtSCIACgkQPlMHVIT1
yhreNQf+JPpQWPKD29x0MAtV8J8mx/fDRMJHzBvd8hfpj8hyoVv6Cq4JAoBCJ/A7
h8KGMneM5M9sq0d7FLIURUyASph63dD+oX8ggdvjrsBRbTK6OhD3kwntHMp41FRj
E7Z5u3gowVdBtL+cYJSY3cLDXIR94/GwLO8pNhgdFUCiBxbQwx4sehBQE/3sLKHa
7LsD0HypXhe6NvLJr4ggmpvx51KlNsA6xz1cO9416EvIfsbxAVTauEMZBTzeZBDs
+GizCRC14V+aNYM9IBByhBN8sYIIixOoKOHQfRrySJmw8V6ViOx2ZVxcmUyf1LS7
eMT4cKqYMV6IAHm+s0Ryks2Hi5YJ3A==
=Dwcl
-----END PGP SIGNATURE-----payloadtree 57cb7092f2a3a0fc3ee69e4aed2376718cd1cd09
parent 8183e7bf46e9a83621d715c516dcb21f50f6ed75
author Ahmed Alouane <aalouane@palantir.com> 1684883489 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684883489 +0100

og
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/474d9a4e7b78ee006566f36db034a2e85773c3c5html_urlShttps://github.com/palantir/atlasdb/commit/474d9a4e7b78ee006566f36db034a2e85773c3c5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/474d9a4e7b78ee006566f36db034a2e85773c3c5/commentsjѠ }(loginergo14idJj͠ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj٠ }(j ergo14j Jj͠ MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj	 (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj
 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jˠ (8183e7bf46e9a83621d715c516dcb21f50f6ed75j ^https://api.github.com/repos/palantir/atlasdb/commits/8183e7bf46e9a83621d715c516dcb21f50f6ed75j Shttps://github.com/palantir/atlasdb/commit/8183e7bf46e9a83621d715c516dcb21f50f6ed75uastats}(totalK	additionsK	deletionsKufiles]}(jˠ (ed6e31f77b21e59fc2a70f39f0a5e78fdf33c10efilename.circleci/config.ymlstatusmodifiedj- Kj. KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/474d9a4e7b78ee006566f36db034a2e85773c3c5/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/474d9a4e7b78ee006566f36db034a2e85773c3c5/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=474d9a4e7b78ee006566f36db034a2e85773c3c5patchX  @@ -156,12 +156,23 @@ workflows:
           matrix:
             alias: test-no-tl
             parameters:
-              # intentionally excluding 13 (TimeLock migration ETE test) from this collection
-              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14]
+              # intentionally excluding  3 (TimeLock integration test) from this collection, it's ran with more resources
+              # intentionally excluding 13 (TimeLock migration ETE test) from this collection, it's ran conditionally
+              suite: [0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14]
               resource_class: ["xlarge"]
           filters:
             tags:
               only: /.*/
+      - test-suite:
+          requires: [build]
+          matrix:
+            alias: test-tl-integ
+            parameters:
+              suite: [3]
+              resource_class: ["2xlarge"]
+          filters:
+            tags:
+              only: /.*/
       - test-suite:
           requires: [build]
           matrix:
@@ -175,7 +186,7 @@ workflows:
             tags:
               only: /.*/
       - test:
-          requires: [test-tl, test-no-tl]
+          requires: [test-tl-integ, test-tl, test-no-tl]
           filters:
             tags:
               only: /.*/uau(e6a1318c19308d45c0e5cf275de57b6f3ca51579}(sha(e6a1318c19308d45c0e5cf275de57b6f3ca51579node_idEC_kwDOAjP5fdoAKGU2YTEzMThjMTkzMDhkNDVjMGU1Y2YyNzVkZTU3YjZmM2NhNTE1Nzkcommit}(author}(name
Louis Bembergemaillbemberg@palantir.comdate2023-04-28T18:45:47Zu	committer}(jJ 
Louis BembergjL lbemberg@palantir.comjN 2023-04-28T18:45:47Zumessageadd interpolationtree}(jB (532e6da9bfebc6d98e02d72cb7d56e6e73fc7fedurl`https://api.github.com/repos/palantir/atlasdb/git/trees/532e6da9bfebc6d98e02d72cb7d56e6e73fc7fedujZ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e6a1318c19308d45c0e5cf275de57b6f3ca51579
comment_countK verification}(verifiedreasonno_user	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEWASyGscg/aE7qfKTryYcV6eKVuAFAmRMFFsACgkQryYcV6eK
VuCtmwgAzNXYFCEBIjMbZmQEwukKAwJUyl15bd4JA+MQL07cXJbooN99qdOcWRKu
kBCJb1ylKFHFcv9gJyGttUaCp+1/E2rQMFFf9Jc5WJWE6zRea8YpMFUAfonOMJeN
NwPO6oocCIx4RvDw/w/9lH5p9pUXy5dy5/rLEAGYZ9tfS5LIQ0+9XkW/zSgy8smk
LrzZPGa3Ln8ogJIGbsXrezBfWy5vrTROX4a3ex1qvYcCOrjAMnRcKWMK5Bgeq/s4
IYLPfEZqY6zockqmCiwtQfUil5YhCqH1XM/heEV7WlZsGVW9uwNtHd0M0Fbb3LQ5
J4W530DBYj1byfVEhD5O8ncbuQH6Ag==
=ADEZ
-----END PGP SIGNATURE-----payloadtree 532e6da9bfebc6d98e02d72cb7d56e6e73fc7fed
parent 057f133ed21fc0078b824d45ce0da6d1646b69b8
author Louis Bemberg <lbemberg@palantir.com> 1682707547 -0400
committer Louis Bemberg <lbemberg@palantir.com> 1682707547 -0400

add interpolation
uujZ ^https://api.github.com/repos/palantir/atlasdb/commits/e6a1318c19308d45c0e5cf275de57b6f3ca51579html_urlShttps://github.com/palantir/atlasdb/commit/e6a1318c19308d45c0e5cf275de57b6f3ca51579comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e6a1318c19308d45c0e5cf275de57b6f3ca51579/commentsjH NjP Nparents]}(jB (057f133ed21fc0078b824d45ce0da6d1646b69b8jZ ^https://api.github.com/repos/palantir/atlasdb/commits/057f133ed21fc0078b824d45ce0da6d1646b69b8jh Shttps://github.com/palantir/atlasdb/commit/057f133ed21fc0078b824d45ce0da6d1646b69b8uastats}(totalK	additionsK	deletionsKufiles]}(jB (9349407113acc740ee10dc130cf8c83c5bdebddafilenamekatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AdvisoryLockConditionSuppliers.javastatusmodifiedju Kjv KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e6a1318c19308d45c0e5cf275de57b6f3ca51579/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e6a1318c19308d45c0e5cf275de57b6f3ca51579/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.java?ref=e6a1318c19308d45c0e5cf275de57b6f3ca51579patchX  @@ -80,7 +80,10 @@ private static HeldLocksToken acquireLock(LockService lockService, LockRequest l
                     case BLOCK_INDEFINITELY:
                     case BLOCK_INDEFINITELY_THEN_RELEASE:
                         ++failureCount;
-                        log.warn("Could not lock successfully", SafeArg.of("failureCount", failureCount), ex);
+                        log.warn(
+                                "Could not lock successfully. Attempt number {}",
+                                SafeArg.of("failureCount", failureCount),
+                                ex);
                         if (failureCount >= NUM_RETRIES) {
                             log.warn("Failing after {} tries", SafeArg.of("failureCount", failureCount), ex);
                             throw ex;uau(ffcf4dc36467bc81b448fa4d63ff1e868167ee59}(sha(ffcf4dc36467bc81b448fa4d63ff1e868167ee59node_idEC_kwDOAjP5fdoAKGZmY2Y0ZGMzNjQ2N2JjODFiNDQ4ZmE0ZDYzZmYxZTg2ODE2N2VlNTkcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-05T18:39:57Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-06-05T18:39:57Zumessage'Serializable invariant with range scanstree}(j (2033471403138515f38f71b912520ab63ffaf11aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/2033471403138515f38f71b912520ab63ffaf11auj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ffcf4dc36467bc81b448fa4d63ff1e868167ee59
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR+K/0ACgkQTLdFKain
zjwjsQf/VllZkz+oEmQa191Y2aTgBKeh7jZxJjQK/j2CA08WHeIDwV3cRmTrWnaL
a6/02F0hY/EFM151X0+NA/svO/RkE2NFUWGoust27+b0lrAzh0lw5dJrsh3QCaDF
Hr4FF/mbrfW5wST/XoZ0Qya0XPe9JAF1At0BaVQESa1zuyfzXBon7Emj4SXM5hCC
SPMTYojwgQ88SQ3UH/ebRacYI2msqgQhxfbCvjkNZdU6vICZC3noEtSvJzAgXf8Z
1Tj9pi8LAHCNvXrinpzjY8DITVl/QRepl0CPmWkMkSrIJ//iOkOLR2ZYaLqo3IqK
+4IbN6dLwVT7woVJyOat4v5CfrxQ7w==
=5Goh
-----END PGP SIGNATURE-----payloadtree 2033471403138515f38f71b912520ab63ffaf11a
parent 1b01dcc04c0a349ce89595439bf0918511b62851
author Jeremy Kong <jkong@palantir.com> 1685990397 +0100
committer Jeremy Kong <jkong@palantir.com> 1685990397 +0100

Serializable invariant with range scans
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/ffcf4dc36467bc81b448fa4d63ff1e868167ee59html_urlShttps://github.com/palantir/atlasdb/commit/ffcf4dc36467bc81b448fa4d63ff1e868167ee59comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ffcf4dc36467bc81b448fa4d63ff1e868167ee59/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j¡ 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jġ >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jơ 5https://api.github.com/users/jeremyk-91/subscriptionsjȡ ,https://api.github.com/users/jeremyk-91/orgsjʡ -https://api.github.com/users/jeremyk-91/reposj̡ 8https://api.github.com/users/jeremyk-91/events{/privacy}jΡ 7https://api.github.com/users/jeremyk-91/received_eventsjС Userjҡ uparents]}(j (1b01dcc04c0a349ce89595439bf0918511b62851j ^https://api.github.com/repos/palantir/atlasdb/commits/1b01dcc04c0a349ce89595439bf0918511b62851j Shttps://github.com/palantir/atlasdb/commit/1b01dcc04c0a349ce89595439bf0918511b62851uastats}(totalK	additionsK،	deletionsKufiles](}(j (602c5f018b462f5e65d08cfe945de835dd397db1filenameatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedRowColumnRangePageReadTransactionAction.javastatusremovedj K j KchangesKblob_urlX   https://github.com/palantir/atlasdb/blob/1b01dcc04c0a349ce89595439bf0918511b62851/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangePageReadTransactionAction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1b01dcc04c0a349ce89595439bf0918511b62851/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangePageReadTransactionAction.javacontents_urlX  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangePageReadTransactionAction.java?ref=1b01dcc04c0a349ce89595439bf0918511b62851patchXW  @@ -1,25 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.transaction.witnessed;
-
-import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeReadTransactionAction;
-
-public interface InvalidWitnessedRowColumnRangePageReadTransactionAction extends InvalidWitnessedTransactionAction {
-    WitnessedRowsColumnRangeReadTransactionAction action();
-
-    // TODO (jkong): Add whatever is needed to represent the mismatched value.
-}u}(j (a32abd3c557d74f76bc6bc56b62438b3c56787daj matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/RowColumnRangeQueryManager.javaj modifiedj K#j K j K#j https://github.com/palantir/atlasdb/blob/ffcf4dc36467bc81b448fa4d63ff1e868167ee59/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FRowColumnRangeQueryManager.javaj https://github.com/palantir/atlasdb/raw/ffcf4dc36467bc81b448fa4d63ff1e868167ee59/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FRowColumnRangeQueryManager.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FRowColumnRangeQueryManager.java?ref=ffcf4dc36467bc81b448fa4d63ff1e868167ee59j X%
  @@ -114,6 +114,17 @@ public Optional<RowColumnRangeQueryState> getLiveQueryState(
                 .toJavaOptional();
     }
 
+    public void trackQueryRead(WitnessedRowsColumnRangeReadTransactionAction rowsColumnRangeReadTransactionAction) {
+        queriesByTable.with(map -> {
+            SingleTableLiveQueries liveQueries = map.get(rowsColumnRangeReadTransactionAction.table())
+                    .getOrElseThrow(() -> new SafeIllegalStateException(
+                            "Should not attempt to read from nonexistent iterator",
+                            SafeArg.of("table", rowsColumnRangeReadTransactionAction.table())));
+            liveQueries.trackQueryRead(rowsColumnRangeReadTransactionAction);
+            return map;
+        });
+    }
+
     @VisibleForTesting
     static final class SingleTableLiveQueries {
         private final StructureHolder<Multimap<Integer, RowColumnRangeQueryState>> queriesByRow;
@@ -157,6 +168,23 @@ public Option<RowColumnRangeQueryState> getLiveQueryState(
                     .flatMap(queryStates -> queryStates.find(queryState ->
                             Objects.equals(queryState.iteratorId(), readTransactionAction.iteratorIdentifier())));
         }
+
+        public void trackQueryRead(WitnessedRowsColumnRangeReadTransactionAction witness) {
+            queriesByRow.with(map -> {
+                if (!map.containsKey(witness.specificRow())) {
+                    // Is fine. All the queries for this row have been invalidated.
+                    return map;
+                }
+                Traversable<RowColumnRangeQueryState> matchingQueryState = map.get(witness.specificRow())
+                        .get()
+                        .filter(state -> state.iteratorId().equals(witness.iteratorIdentifier()));
+                RowColumnRangeQueryState singleMatchingQuery = matchingQueryState.single();
+                return map.replace(
+                        witness.specificRow(),
+                        singleMatchingQuery,
+                        singleMatchingQuery.copyWithLastReadCell(witness.cell()));
+            });
+        }
     }
 
     @Value.Immutable
@@ -168,5 +196,12 @@ interface RowColumnRangeQueryState {
         // State used to check reads
 
         Optional<WorkloadCell> lastReadCell();
+
+        default RowColumnRangeQueryState copyWithLastReadCell(Optional<WorkloadCell> cell) {
+            return ImmutableRowColumnRangeQueryState.builder()
+                    .from(this)
+                    .lastReadCell(cell)
+                    .build();
+        }
     }
 }u}(j (4f3596b99308e0ae270b894e384b1ec8d92ed978j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj modifiedj K3j Kj K4j https://github.com/palantir/atlasdb/blob/ffcf4dc36467bc81b448fa4d63ff1e868167ee59/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://github.com/palantir/atlasdb/raw/ffcf4dc36467bc81b448fa4d63ff1e868167ee59/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=ffcf4dc36467bc81b448fa4d63ff1e868167ee59j Xl  @@ -18,6 +18,11 @@
 
 import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.workload.invariant.RowColumnRangeQueryManager.RowColumnRangeQueryState;
+import com.palantir.atlasdb.workload.store.CellReferenceAndValue;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.Table;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
@@ -26,9 +31,11 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.InvalidWitnessedRowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeIteratorCreationTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import java.util.List;
 import java.util.Optional;
 import java.util.function.Consumer;
@@ -112,10 +119,53 @@ public List<InvalidWitnessedTransactionAction> visit(
             Optional<RowColumnRangeQueryState> maybeLiveQueryState =
                     rowColumnRangeQueryManager.getLiveQueryState(rowsColumnRangeReadTransactionAction);
             if (maybeLiveQueryState.isEmpty()) {
+                // Query either does not exist, or corresponds to a range for which we have subsequently seen a write
+                // or delete - which is not defined behaviour.
                 return ImmutableList.of();
             }
             RowColumnRangeQueryState liveQueryState = maybeLiveQueryState.get();
-            return ImmutableList.of(); // TODO (jkong): Wrong
+            Table sourceTable = inMemoryTransactionReplayer
+                    .getValues()
+                    .get(rowsColumnRangeReadTransactionAction.table())
+                    .getOrElseThrow(() -> new SafeRuntimeException("Verifying read against nonexistent table"));
+            Optional<CellReferenceAndValue> expectedRead = sourceTable
+                    .getColumnsInRange(
+                            rowsColumnRangeReadTransactionAction.specificRow(),
+                            liveQueryState
+                                    .lastReadCell()
+                                    .map(WorkloadCell::column)
+                                    .map(column -> column + 1) // Find the starting point of the next query
+                                    .or(() -> liveQueryState
+                                            .workloadColumnRangeSelection()
+                                            .startColumnInclusive()),
+                            liveQueryState.workloadColumnRangeSelection().endColumnExclusive())
+                    .headOption()
+                    .toJavaOptional()
+                    .map(tuple -> CellReferenceAndValue.builder()
+                            .tableAndWorkloadCell(TableAndWorkloadCell.of(
+                                    rowsColumnRangeReadTransactionAction.table(),
+                                    ImmutableWorkloadCell.of(
+                                            rowsColumnRangeReadTransactionAction.specificRow(), tuple._1())))
+                            .value(tuple._2())
+                            .build());
+            Optional<CellReferenceAndValue> actualRead = rowsColumnRangeReadTransactionAction
+                    .cell()
+                    .map(workloadCell -> CellReferenceAndValue.builder()
+                            .tableAndWorkloadCell(
+                                    TableAndWorkloadCell.of(rowsColumnRangeReadTransactionAction.table(), workloadCell))
+                            .value(rowsColumnRangeReadTransactionAction.value())
+                            .build());
+
+            rowColumnRangeQueryManager.trackQueryRead(rowsColumnRangeReadTransactionAction);
+
+            if (!expectedRead.equals(actualRead)) {
+                return ImmutableList.of(InvalidWitnessedRowsColumnRangeReadTransactionAction.builder()
+                        .rowColumnRangeRead(rowsColumnRangeReadTransactionAction)
+                        .expectedRead(expectedRead)
+                        .actualRead(actualRead)
+                        .build());
+            }
+            return ImmutableList.of();
         }
     }
 }u}(j (9b90c2e18d8651272cdb8e7bbb0fabd527b87186j ]atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/DefaultColumns.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ffcf4dc36467bc81b448fa4d63ff1e868167ee59/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FDefaultColumns.javaj https://github.com/palantir/atlasdb/raw/ffcf4dc36467bc81b448fa4d63ff1e868167ee59/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FDefaultColumns.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FDefaultColumns.java?ref=ffcf4dc36467bc81b448fa4d63ff1e868167ee59j X  @@ -65,8 +65,9 @@ public SortedMap<Integer, Optional<Integer>> getColumnsInRange(
         //  algorithm that is O(N) instead of O(log N) in the columns probably isn't the worst for now, given we
         //  don't expect to have many columns in a single row.
         return structureHolder.apply(map -> map.dropWhile(
-                        tuple -> startInclusive.map(start -> start < tuple._1()).orElse(false))
-                .takeWhile(tuple -> endExclusive.map(end -> end > tuple._1()).orElse(true)));
+                        tuple -> startInclusive.map(start -> tuple._1() < start).orElse(false))
+                .takeWhile(tuple -> endExclusive.map(end -> end > tuple._1()).orElse(true))
+                .filter(tuple -> tuple._2().isPresent()));
     }
 
     @Overrideu}(j (f854ec3426f2de45ce866ec03c718bed25e50f2cj patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/ffcf4dc36467bc81b448fa4d63ff1e868167ee59/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj https://github.com/palantir/atlasdb/raw/ffcf4dc36467bc81b448fa4d63ff1e868167ee59/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=ffcf4dc36467bc81b448fa4d63ff1e868167ee59j XM  @@ -19,7 +19,6 @@
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.store.DefaultTable;
 import com.palantir.atlasdb.workload.store.Table;
-import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
@@ -58,8 +57,6 @@ public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
      */
     @Override
     public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
-        TableAndWorkloadCell tableAndWorkloadCell =
-                TableAndWorkloadCell.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
         values.with(map -> {
             Tuple2<Table, ? extends Map<String, Table>> tuple =
                     map.computeIfAbsent(deleteTransactionAction.table(), unused -> DefaultTable.empty());u}(j (6f1d22334678d81699128c5f297099d86f2f089dj latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj modifiedj KUj K j KUj https://github.com/palantir/atlasdb/blob/ffcf4dc36467bc81b448fa4d63ff1e868167ee59/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj https://github.com/palantir/atlasdb/raw/ffcf4dc36467bc81b448fa4d63ff1e868167ee59/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=ffcf4dc36467bc81b448fa4d63ff1e868167ee59j X  @@ -32,6 +32,7 @@
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Optional;
+import java.util.UUID;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.mockito.Mock;
@@ -155,4 +156,88 @@ public void handlesDeletes() {
         SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
         assertThat(invalidTransactions).isEmpty();
     }
+
+    @Test
+    public void handlesRowColumnRangeScansCoveringRange() {
+        UUID iteratorId = UUID.randomUUID();
+
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .endTransaction()
+                .startTransaction()
+                .createRowColumnRangeIterator(iteratorId, 5, 5, 20)
+                .rowColumnRangeRead(iteratorId, 5, 10, 15)
+                .rowColumnRangeRead(iteratorId, 5, 15, 21)
+                .rowColumnRangeExhaustion(iteratorId, 5)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void handlesRowColumnRangeScansOnlyReadingRelevantValues() {
+        UUID iteratorId = UUID.randomUUID();
+
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 5, 5)
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .endTransaction()
+                .startTransaction()
+                .createRowColumnRangeIterator(iteratorId, 5, 8, 13)
+                .rowColumnRangeRead(iteratorId, 5, 10, 15)
+                .rowColumnRangeExhaustion(iteratorId, 5)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void handlesRowColumnRangeScanLocalWriteSemantics() {
+        UUID createdBeforeWriteReadingValue = UUID.randomUUID();
+        UUID createdBeforeWriteNotReadingValue = UUID.randomUUID();
+        UUID createdAfterWrite = UUID.randomUUID();
+
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .createRowColumnRangeIterator(createdBeforeWriteReadingValue, 5, 0, 99)
+                .createRowColumnRangeIterator(createdBeforeWriteNotReadingValue, 5, 0, 99)
+                .write(5, 5, 5)
+                .createRowColumnRangeIterator(createdAfterWrite, 5, 0, 99)
+                .rowColumnRangeRead(createdAfterWrite, 5, 5, 5)
+                .rowColumnRangeRead(createdAfterWrite, 5, 10, 15)
+                .rowColumnRangeExhaustion(createdAfterWrite, 5)
+                .rowColumnRangeRead(createdBeforeWriteReadingValue, 5, 5, 5)
+                .rowColumnRangeRead(createdBeforeWriteReadingValue, 5, 10, 15)
+                .rowColumnRangeExhaustion(createdBeforeWriteReadingValue, 5)
+                .rowColumnRangeRead(createdBeforeWriteNotReadingValue, 5, 10, 15)
+                .rowColumnRangeExhaustion(createdBeforeWriteNotReadingValue, 5)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
 }u}(j (0d5831e68377330b493f8a7ff8ff5d0414a7815cj qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj modifiedj K*j K j K*j https://github.com/palantir/atlasdb/blob/ffcf4dc36467bc81b448fa4d63ff1e868167ee59/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://github.com/palantir/atlasdb/raw/ffcf4dc36467bc81b448fa4d63ff1e868167ee59/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=ffcf4dc36467bc81b448fa4d63ff1e868167ee59j X
  @@ -17,16 +17,20 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeIteratorCreationTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeReadTransactionAction;
 import com.palantir.logsafe.Preconditions;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Optional;
+import java.util.UUID;
 import java.util.concurrent.atomic.AtomicLong;
 
 public final class WitnessedTransactionsBuilder {
@@ -91,6 +95,44 @@ public WitnessedTransactionBuilder delete(Integer row, Integer column) {
             return this;
         }
 
+        public WitnessedTransactionBuilder createRowColumnRangeIterator(
+                UUID iteratorIdentifier, Integer row, Integer startColumnInclusive, Integer endColumnExclusive) {
+            actions.add(WitnessedRowsColumnRangeIteratorCreationTransactionAction.builder()
+                    .iteratorIdentifier(iteratorIdentifier)
+                    .specificRow(row)
+                    .originalAction(ImmutableRowsColumnRangeReadTransactionAction.builder()
+                            .table(table)
+                            .addRows(row)
+                            .batchColumnRangeSelection(WorkloadColumnRangeSelection.builder()
+                                    .startColumnInclusive(startColumnInclusive)
+                                    .endColumnExclusive(endColumnExclusive)
+                                    .build())
+                            .build())
+                    .build());
+            return this;
+        }
+
+        public WitnessedTransactionBuilder rowColumnRangeRead(
+                UUID iteratorIdentifier, Integer row, Integer column, Integer value) {
+            actions.add(WitnessedRowsColumnRangeReadTransactionAction.builder()
+                    .iteratorIdentifier(iteratorIdentifier)
+                    .table(table)
+                    .specificRow(row)
+                    .cell(ImmutableWorkloadCell.of(row, column))
+                    .value(value)
+                    .build());
+            return this;
+        }
+
+        public WitnessedTransactionBuilder rowColumnRangeExhaustion(UUID iteratorIdentifier, Integer row) {
+            actions.add(WitnessedRowsColumnRangeReadTransactionAction.builder()
+                    .iteratorIdentifier(iteratorIdentifier)
+                    .table(table)
+                    .specificRow(row)
+                    .build());
+            return this;
+        }
+
         public WitnessedTransactionsBuilder endTransaction() {
             Optional<Long> commitTimestamp =
                     needsCommitTimestamp ? Optional.of(timestampCounter.incrementAndGet()) : Optional.empty();ueu(369087b5ab1b782bbae2be0a7631c4b0c4d04ab8}(sha(369087b5ab1b782bbae2be0a7631c4b0c4d04ab8node_idEC_kwDOAjP5fdoAKDM2OTA4N2I1YWIxYjc4MmJiYWUyYmUwYTc2MzFjNGIwYzRkMDRhYjgcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-07-19T18:42:24Zu	committer}(j9 svc-excavator-botj; svc-excavator-bot@palantir.comj= 2023-07-19T18:42:24Zumessage,Excavator:  Upgrade buildscript dependenciestree}(j1 (cfd6d470e40ba23759f61c8b5f70e98e0fc11c96url`https://api.github.com/repos/palantir/atlasdb/git/trees/cfd6d470e40ba23759f61c8b5f70e98e0fc11c96ujI bhttps://api.github.com/repos/palantir/atlasdb/git/commits/369087b5ab1b782bbae2be0a7631c4b0c4d04ab8
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmS4LpAJEMmvEkpISILgAAAkAwEA14GoFGFEUY2vAnGUFyvspuZt
nIjMqxK9n3UUt4LQ8skA/RdEhaKT7+EDX5dBXa7DC1qvYXfR9OsBLA5p1haLN+U4
=0CXi
-----END PGP SIGNATURE-----
payloadX$  tree cfd6d470e40ba23759f61c8b5f70e98e0fc11c96
parent bfe7051211ad42fc0f3f59928e8602f422bf630b
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1689792144 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1689792144 +0000

Excavator:  Upgrade buildscript dependenciesuujI ^https://api.github.com/repos/palantir/atlasdb/commits/369087b5ab1b782bbae2be0a7631c4b0c4d04ab8html_urlShttps://github.com/palantir/atlasdb/commit/369087b5ab1b782bbae2be0a7631c4b0c4d04ab8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/369087b5ab1b782bbae2be0a7631c4b0c4d04ab8/commentsj7 }(loginsvc-excavator-botidJj3 MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5jI .https://api.github.com/users/svc-excavator-botjW $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj? }(j\ svc-excavator-botj^ Jj3 MDQ6VXNlcjMzMjY2MzY4j` 4https://avatars.githubusercontent.com/u/33266368?v=4jb h5jI .https://api.github.com/users/svc-excavator-botjW $https://github.com/svc-excavator-botje 8https://api.github.com/users/svc-excavator-bot/followersjg Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}ji >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}jk Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}jm <https://api.github.com/users/svc-excavator-bot/subscriptionsjo 3https://api.github.com/users/svc-excavator-bot/orgsjq 4https://api.github.com/users/svc-excavator-bot/reposjs ?https://api.github.com/users/svc-excavator-bot/events{/privacy}ju >https://api.github.com/users/svc-excavator-bot/received_eventsjw Userjy uparents]}(j1 (bfe7051211ad42fc0f3f59928e8602f422bf630bjI ^https://api.github.com/repos/palantir/atlasdb/commits/bfe7051211ad42fc0f3f59928e8602f422bf630bjW Shttps://github.com/palantir/atlasdb/commit/bfe7051211ad42fc0f3f59928e8602f422bf630buastats}(totalK
	additionsK	deletionsKufiles]}(j1 (18afee9bf446b79ded43a86d2c433704e1d36fa5filenamebuild.gradlestatusmodifiedj Kj KchangesK
blob_url^https://github.com/palantir/atlasdb/blob/369087b5ab1b782bbae2be0a7631c4b0c4d04ab8/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/369087b5ab1b782bbae2be0a7631c4b0c4d04ab8/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=369087b5ab1b782bbae2be0a7631c4b0c4d04ab8patchX  @@ -7,20 +7,20 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.4'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.6'
         classpath 'com.netflix.nebula:nebula-publishing-plugin:20.3.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.39.0'
-        classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.41.0'
+        classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.13.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
-        classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
+        classpath 'com.palantir.metricschema:gradle-metric-schema:0.22.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
-        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.3'
+        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.4'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
         classpath 'gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1'
         classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'uau(6968365ad100ec8b0dc5afe4340571fb4015a546}(sha(6968365ad100ec8b0dc5afe4340571fb4015a546node_idEC_kwDOAjP5fdoAKDY5NjgzNjVhZDEwMGVjOGIwZGM1YWZlNDM0MDU3MWZiNDAxNWE1NDYcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-02-01T16:48:49Zu	committer}(j David Schlosnaglej davids@palantir.comj 2023-02-01T16:48:49ZumessageClarify mock invocationtree}(j (86af3414b4e76a70898c3be97a6bb0428ed7eed0url`https://api.github.com/repos/palantir/atlasdb/git/trees/86af3414b4e76a70898c3be97a6bb0428ed7eed0uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6968365ad100ec8b0dc5afe4340571fb4015a546
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmPal/EACgkQR9hsJ74Q
0l9Awwf9H9u8VFRFWNe3s4ZFP5Ai8zkUn5Gir1GzVSmc4+IScaSVTZ7ZXt6V1g3k
dKUJ6OnC+mrn4CFztVjDN5aS7LiBHjQDupDl0lOiwKd9CCMwFBsa6mNgkKFFejf5
6uOCrRDfGv62jam6l3hV2RU4lC66jVYgJRlx0bUrQkTe5Uyr/lND9O7PzbJSZp51
I/tWLN0ZvHZOQxDYD9pUF0uuLRUiChANYwvv/BgLTDrAXIETrB3rqkUXQkmyObcz
WfuS2FY/K2elVLJRjen32Ay0hyedY9KC4+rn/9bGCeRB5cthKeucPh3GVNnvr3nm
Rr/+NnYcWtKvPuLGHyBe+hIAJ/kF9A==
=xt/a
-----END PGP SIGNATURE-----payloadtree 86af3414b4e76a70898c3be97a6bb0428ed7eed0
parent 159b7e73db3bfc173f0e6e856e436965b6ae22df
author David Schlosnagle <davids@palantir.com> 1675270129 -0500
committer David Schlosnagle <davids@palantir.com> 1675270129 -0500

Clarify mock invocation
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/6968365ad100ec8b0dc5afe4340571fb4015a546html_urlShttps://github.com/palantir/atlasdb/commit/6968365ad100ec8b0dc5afe4340571fb4015a546comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6968365ad100ec8b0dc5afe4340571fb4015a546/commentsj }(loginschlosnaidMBj MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j %https://api.github.com/users/schlosnaj΢ https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj }(jӢ schlosnajբ MBj MDQ6VXNlcjU0NTk0jע 1https://avatars.githubusercontent.com/u/54594?v=4j٢ h5j %https://api.github.com/users/schlosnaj΢ https://github.com/schlosnajܢ /https://api.github.com/users/schlosna/followersjޢ <https://api.github.com/users/schlosna/following{/other_user}j 5https://api.github.com/users/schlosna/gists{/gist_id}j <https://api.github.com/users/schlosna/starred{/owner}{/repo}j 3https://api.github.com/users/schlosna/subscriptionsj *https://api.github.com/users/schlosna/orgsj +https://api.github.com/users/schlosna/reposj 6https://api.github.com/users/schlosna/events{/privacy}j 5https://api.github.com/users/schlosna/received_eventsj Userj uparents]}(j (159b7e73db3bfc173f0e6e856e436965b6ae22dfj ^https://api.github.com/repos/palantir/atlasdb/commits/159b7e73db3bfc173f0e6e856e436965b6ae22dfj΢ Shttps://github.com/palantir/atlasdb/commit/159b7e73db3bfc173f0e6e856e436965b6ae22dfuastats}(totalK	additionsK	deletionsKufiles]}(j (8ec3fa293a386c6e5b7d4e2ee7c38d3b3e28115afilename\timelock-agent/src/test/java/com/palantir/atlasdb/timelock/paxos/PaxosRemoteClientsTest.javastatusmodifiedj
 Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosRemoteClientsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosRemoteClientsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosRemoteClientsTest.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546patchXN  @@ -48,26 +48,24 @@ public class PaxosRemoteClientsTest {
     @Rule
     public final TemporaryFolder temporaryFolder = new TemporaryFolder();
 
-    private PaxosInstallConfiguration paxosInstallConfiguration;
-    private TimeLockInstallConfiguration installConfiguration;
     private PaxosResourcesFactory.TimelockPaxosInstallationContext context;
 
     @Before
     public void setUp() {
-        paxosInstallConfiguration = PaxosInstallConfiguration.builder()
+        PaxosInstallConfiguration paxosInstallConfiguration = PaxosInstallConfiguration.builder()
                 .isNewService(false)
                 .dataDirectory(temporaryFolder.getRoot())
                 .sqlitePersistence(SqlitePaxosPersistenceConfigurations.DEFAULT)
                 .leaderMode(PaxosInstallConfiguration.PaxosLeaderMode.SINGLE_LEADER)
                 .build();
-        installConfiguration = TimeLockInstallConfiguration.builder()
+        TimeLockInstallConfiguration installConfiguration = TimeLockInstallConfiguration.builder()
                 .paxos(paxosInstallConfiguration) // Normally awful, but too onerous to set up
                 .timestampBoundPersistence(
                         ImmutablePaxosTsBoundPersisterConfiguration.builder().build())
                 .build();
         TimeLockDialogueServiceProvider dialogueServiceProvider = mock(TimeLockDialogueServiceProvider.class);
         when(dialogueServiceProvider.createSingleNodeInstrumentedProxy(anyString(), any(), anyBoolean()))
-                .thenAnswer(invocation -> mock(invocation.getArgument(1)));
+                .thenAnswer(invocation -> mock("argument", invocation.<Object>getArgument(1)));
         context = ImmutableTimelockPaxosInstallationContext.builder()
                 .install(installConfiguration)
                 .cluster(ImmutableDefaultClusterConfiguration.builder()uau(89301daada3aa480a1d2baae560213a3292c52b9}(sha(89301daada3aa480a1d2baae560213a3292c52b9node_idEC_kwDOAjP5fdoAKDg5MzAxZGFhZGEzYWE0ODBhMWQyYmFhZTU2MDIxM2EzMjkyYzUyYjkcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-05-04T10:28:50Zu	committer}(j' GitHubj) noreply@github.comj+ 2023-05-04T10:28:50Zumessage,Excavator:  Update policy-bot config (#6560)tree}(j (3090816c7e26e9d33c24ee90225ca1d4e3a5bfd0url`https://api.github.com/repos/palantir/atlasdb/git/trees/3090816c7e26e9d33c24ee90225ca1d4e3a5bfd0uj7 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/89301daada3aa480a1d2baae560213a3292c52b9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkU4jiCRBK7hj4Ov3rIwAALNUIAIfaF0RFW+XYkS4EgO2lrDTe
0+mZrmqjPTZcmzTqcMEgJ1b08RL53yE4eKexXavs8Yi9lcXZaNS9r9eQpKa8O9yX
BLQ64xlMRfqho5ClN2CvDsh2/aQJvb5Ip+QbS6WUAjJA8BIKzbZf32CoGFEL3knW
b8t91wzjpzGMft4IHLwRQjUaM+6db0t3WPENETpLZBIYQ0DypZPE83sXOQNj88ZO
34ECSx3PiK8iUdrJMCYIjs733j5MfhyYRJl3ywuWGNB/hjDTsW/AzEawtv77AY0c
qsrL3Oam3g6cUpElYOVhOt+0VgkSBMojICV4DbMrCqv362eBJF38eUecaUNtdvo=
=WY+a
-----END PGP SIGNATURE-----
payloadX!  tree 3090816c7e26e9d33c24ee90225ca1d4e3a5bfd0
parent 2857ac281988f23e4cb979112fbb2bfb3ac34cde
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1683196130 +0100
committer GitHub <noreply@github.com> 1683196130 +0000

Excavator:  Update policy-bot config (#6560)

 uu      j7 ^https://api.github.com/repos/palantir/atlasdb/commits/89301daada3aa480a1d2baae560213a3292c52b9html_urlShttps://github.com/palantir/atlasdb/commit/89301daada3aa480a1d2baae560213a3292c52b9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/89301daada3aa480a1d2baae560213a3292c52b9/commentsj% }(loginsvc-excavator-botidJj! MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j7 .https://api.github.com/users/svc-excavator-botjE $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj- }(jJ web-flowjL J/j! MDQ6VXNlcjE5ODY0NDQ3jN 4https://avatars.githubusercontent.com/u/19864447?v=4jP h5j7 %https://api.github.com/users/web-flowjE https://github.com/web-flowjS /https://api.github.com/users/web-flow/followersjU <https://api.github.com/users/web-flow/following{/other_user}jW 5https://api.github.com/users/web-flow/gists{/gist_id}jY <https://api.github.com/users/web-flow/starred{/owner}{/repo}j[ 3https://api.github.com/users/web-flow/subscriptionsj] *https://api.github.com/users/web-flow/orgsj_ +https://api.github.com/users/web-flow/reposja 6https://api.github.com/users/web-flow/events{/privacy}jc 5https://api.github.com/users/web-flow/received_eventsje Userjg uparents]}(j (2857ac281988f23e4cb979112fbb2bfb3ac34cdej7 ^https://api.github.com/repos/palantir/atlasdb/commits/2857ac281988f23e4cb979112fbb2bfb3ac34cdejE Shttps://github.com/palantir/atlasdb/commit/2857ac281988f23e4cb979112fbb2bfb3ac34cdeuastats}(totalK	additionsK	deletionsKufiles]}(j (d8f732c3615aaed89bbf22d2dd57bf2198b25723filename.policy.ymlstatusmodifiedj Kj KchangesKblob_url]https://github.com/palantir/atlasdb/blob/89301daada3aa480a1d2baae560213a3292c52b9/.policy.ymlraw_url\https://github.com/palantir/atlasdb/raw/89301daada3aa480a1d2baae560213a3292c52b9/.policy.ymlcontents_urlohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=89301daada3aa480a1d2baae560213a3292c52b9patchX(  @@ -20,21 +20,21 @@ approval_rules:
       allow_contributor: false
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: two admins have approved
     options:
       allow_contributor: true
     requires:
       count: 2
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: changelog only and contributor approval
     options:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       only_changed_files:
         paths:
@@ -45,7 +45,7 @@ approval_rules:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       has_author_in:
         users: [ "svc-excavator-bot" ]uau(ffb3de76c86ad818025ddf735ec2a2259dd0d443}(sha(ffb3de76c86ad818025ddf735ec2a2259dd0d443node_idEC_kwDOAjP5fdoAKGZmYjNkZTc2Yzg2YWQ4MTgwMjVkZGY3MzVlYzJhMjI1OWRkMGQ0NDMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-15T15:20:43Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-05-18T15:14:19Zumessageoopstree}(j (b7f7320a4b4ff0bbbb9dd4235362112f9555e786url`https://api.github.com/repos/palantir/atlasdb/git/trees/b7f7320a4b4ff0bbbb9dd4235362112f9555e786uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ffb3de76c86ad818025ddf735ec2a2259dd0d443
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRmQMsACgkQTLdFKain
zjxr7gf+OwG+OorN5K6Y6mHRsI2lXCpfXIpwl874SSEDjhSjQnR/qrYy03aF2AIt
sFneaQJXV1TtCqqIvwCZaMG97d7epr3pBC2zBu/F61m7v2YpCsG2C7545bV/JAwS
DzqonMSdF1rp0r4CytiSBgQFkezTEeFIKuvp4W2dlBdU2u4sGX5YZX81mPyUx7gm
IWbUZjz2Ch9SqxSfwlx2arP6OCxvZCEhS16SC1TdJ4BUioVl+KXQDKy1pccspJxx
ywjdtse7A4TQmYwKlwmm+UjovNpbYrfuwGQorM0VHACkTAtV47VmrDaQt/viGaMW
19Qr517KP31cEih1ECN6F1pahwKYdA==
=RV4W
-----END PGP SIGNATURE-----payloadtree b7f7320a4b4ff0bbbb9dd4235362112f9555e786
parent 35d03f713288cb8bc3ec561a7eb13f53c06f9beb
author Jeremy Kong <jkong@palantir.com> 1684164043 +0100
committer Jeremy Kong <jkong@palantir.com> 1684422859 +0100

oops
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/ffb3de76c86ad818025ddf735ec2a2259dd0d443html_urlShttps://github.com/palantir/atlasdb/commit/ffb3de76c86ad818025ddf735ec2a2259dd0d443comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ffb3de76c86ad818025ddf735ec2a2259dd0d443/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91jã JZ j MDQ6VXNlcjU5NTU1MTA=jţ 3https://avatars.githubusercontent.com/u/5955510?v=4jǣ h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91jʣ 1https://api.github.com/users/jeremyk-91/followersj̣ >https://api.github.com/users/jeremyk-91/following{/other_user}jΣ 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jУ >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jң 5https://api.github.com/users/jeremyk-91/subscriptionsjԣ ,https://api.github.com/users/jeremyk-91/orgsj֣ -https://api.github.com/users/jeremyk-91/reposjأ 8https://api.github.com/users/jeremyk-91/events{/privacy}jڣ 7https://api.github.com/users/jeremyk-91/received_eventsjܣ Userjޣ uparents]}(j (35d03f713288cb8bc3ec561a7eb13f53c06f9bebj ^https://api.github.com/repos/palantir/atlasdb/commits/35d03f713288cb8bc3ec561a7eb13f53c06f9bebj Shttps://github.com/palantir/atlasdb/commit/35d03f713288cb8bc3ec561a7eb13f53c06f9bebuastats}(totalK	additionsK 	deletionsKufiles]}(j (14d3d829e1806b18a737a8d46709cabe31a2e655filenameXatlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/OracleDdlConfigTest.javastatusmodifiedj K j KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ffb3de76c86ad818025ddf735ec2a2259dd0d443/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleDdlConfigTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ffb3de76c86ad818025ddf735ec2a2259dd0d443/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleDdlConfigTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleDdlConfigTest.java?ref=ffb3de76c86ad818025ddf735ec2a2259dd0d443patchX  @@ -173,11 +173,6 @@ public void serializeAndDeserializeIsNoOp() throws JsonProcessingException {
 
         OracleDdlConfig config =
                 createLongNameSupportingOracleConfigWithPrefixes(getPrefixWithLength(44), getPrefixWithLength(33));
-        config = ImmutableOracleDdlConfig.copyOf(config).withAlterTablesOrMetadataToMatch(
-                TableReference.create(Namespace.create("ns"), "table"),
-                TableReference.createWithEmptyNamespace("iDoNotHaveOne")
-        );
-        System.out.println(jsonMapper.writeValueAsString(config));
         assertThat(jsonMapper.readValue(jsonMapper.writeValueAsString(config), OracleDdlConfig.class))
                 .isEqualTo(config);
     }uau(215d620903282ec828ba3be1435a8837b7cdda82}(sha(215d620903282ec828ba3be1435a8837b7cdda82node_idEC_kwDOAjP5fdoAKDIxNWQ2MjA5MDMyODJlYzgyOGJhM2JlMTQzNWE4ODM3YjdjZGRhODIcommit}(author}(name
Samuel Krameremailskramer@palantir.comdate2023-03-23T14:55:51Zu	committer}(j 
Samuel Kramerj skramer@palantir.comj 2023-03-23T22:09:51Zumessageadd configuration filestree}(j
 (238886e7a902872e948fc0ab643d46c37b0ea14curl`https://api.github.com/repos/palantir/atlasdb/git/trees/238886e7a902872e948fc0ab643d46c37b0ea14cuj% bhttps://api.github.com/repos/palantir/atlasdb/git/commits/215d620903282ec828ba3be1435a8837b7cdda82
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj% ^https://api.github.com/repos/palantir/atlasdb/commits/215d620903282ec828ba3be1435a8837b7cdda82html_urlShttps://github.com/palantir/atlasdb/commit/215d620903282ec828ba3be1435a8837b7cdda82comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/215d620903282ec828ba3be1435a8837b7cdda82/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j% 'https://api.github.com/users/Sam-Kramerj1 https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j6 
Sam-Kramerj8 J^2_ j MDQ6VXNlcjYyMzg4MTQ=j: 3https://avatars.githubusercontent.com/u/6238814?v=4j< h5j% 'https://api.github.com/users/Sam-Kramerj1 https://github.com/Sam-Kramerj? 1https://api.github.com/users/Sam-Kramer/followersjA >https://api.github.com/users/Sam-Kramer/following{/other_user}jC 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jE >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jG 5https://api.github.com/users/Sam-Kramer/subscriptionsjI ,https://api.github.com/users/Sam-Kramer/orgsjK -https://api.github.com/users/Sam-Kramer/reposjM 8https://api.github.com/users/Sam-Kramer/events{/privacy}jO 7https://api.github.com/users/Sam-Kramer/received_eventsjQ UserjS uparents]}(j
 (f6039b6289cea7e9b149cb637de75da4384d3672j% ^https://api.github.com/repos/palantir/atlasdb/commits/f6039b6289cea7e9b149cb637de75da4384d3672j1 Shttps://github.com/palantir/atlasdb/commit/f6039b6289cea7e9b149cb637de75da4384d3672uastats}(totalK	additionsK	deletionsKufiles](}(j
 (92430ad0397e159d2c1ea903cea20d5f337d208bfilenameatlasdb-ete-tests/build.gradlestatusmodifiedjm Kjn KchangesKblob_urlrhttps://github.com/palantir/atlasdb/blob/215d620903282ec828ba3be1435a8837b7cdda82/atlasdb-ete-tests%2Fbuild.gradleraw_urlqhttps://github.com/palantir/atlasdb/raw/215d620903282ec828ba3be1435a8837b7cdda82/atlasdb-ete-tests%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fbuild.gradle?ref=215d620903282ec828ba3be1435a8837b7cdda82patch@@ -1,4 +1,4 @@
-vaapply from: "../gradle/shared.gradle"
+apply from: "../gradle/shared.gradle"
 apply from: "../gradle/tests.gradle"
 apply from: "../gradle/non-client-dist.gradle"
 u}(j
 (6d90b58f20996e218525bbe4ab8a36606180aa2ajs 9atlasdb-workload-server-antithesis/var/docker-compose.ymlju addedjm KNjn K jw KNjx https://github.com/palantir/atlasdb/blob/215d620903282ec828ba3be1435a8837b7cdda82/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymljz https://github.com/palantir/atlasdb/raw/215d620903282ec828ba3be1435a8837b7cdda82/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj| https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=215d620903282ec828ba3be1435a8837b7cdda82j~ X  @@ -0,0 +1,78 @@
+version: '2'
+
+services:
+  cassandra1:
+    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    ports:
+      - "9160"
+      - "9042"
+      - "7199"
+    environment:
+      - CASSANDRA_SEEDS=cassandra1,cassandra2,cassandra3
+      - CASSANDRA_ENDPOINT_SNITCH=PropertyFileSnitch
+      - MAX_HEAP_SIZE=512m
+      - HEAP_NEWSIZE=64m
+      - LOCAL_JMX=no
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.2
+
+  cassandra2:
+    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    ports:
+      - "9160"
+      - "9042"
+      - "7199"
+    environment:
+      - CASSANDRA_SEEDS=cassandra1,cassandra2,cassandra3
+      - CASSANDRA_ENDPOINT_SNITCH=PropertyFileSnitch
+      - MAX_HEAP_SIZE=512m
+      - HEAP_NEWSIZE=64m
+      - LOCAL_JMX=no
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.3
+
+  cassandra3:
+    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    ports:
+      - "9160"
+      - "9042"
+      - "7199"
+    environment:
+      - CASSANDRA_SEEDS=cassandra1,cassandra2,cassandra3
+      - CASSANDRA_ENDPOINT_SNITCH=PropertyFileSnitch
+      - MAX_HEAP_SIZE=512m
+      - HEAP_NEWSIZE=64m
+      - LOCAL_JMX=no
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.4
+
+  timelock:
+    image: palantirtechnologies/timelock-server-distribution:unspecified
+    ports:
+      - "8421"
+      - "8422"
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.5
+
+  workload-server:
+    image: palantirtechnologies/atlasdb-workload-server-distribution:unspecified
+    command: [bash, -c, 'cp var/conf/workload-server.timelock.cassandra.yml var/conf/workload-server.yml && dockerize -timeout 120s -wait tcp://cassandra1:9160 && service/bin/init.sh console']
+    depends_on:
+      - cassandra1
+      - cassandra2
+      - cassandra3
+      - timelock
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.6
+
+networks:
+  antithesis-net:
+    driver: bridge
+    ipam:
+      config:
+        - subnet: 10.20.20.0/24
\ No newline at end of fileu}(j
 (0318c818f5b2bc114ebc30223588df043f5b4707js Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlju addedjm K.jn K jw K.jx https://github.com/palantir/atlasdb/blob/215d620903282ec828ba3be1435a8837b7cdda82/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljz https://github.com/palantir/atlasdb/raw/215d620903282ec828ba3be1435a8837b7cdda82/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj| https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=215d620903282ec828ba3be1435a8837b7cdda82j~ X  @@ -0,0 +1,46 @@
+runtime:
+  atlas:
+    internalSchema:
+      targetTransactionsSchemaVersion: 3
+    sweep:
+      enabled: false
+    targetedSweep:
+      enabled: true
+      shards: 1
+    timelockRuntime:
+      serversList:
+        servers:
+          - 'http://timelock:8421'
+        sslConfiguration:
+          keyStorePath: "var/security/keyStore.jks"
+          keyStorePassword: "keystore"
+          trustStorePath: "var/security/trustStore.jks"
+install:
+  atlas:
+    keyValueService:
+      type: cassandra
+      servers:
+        type: cqlCapable
+        cqlHosts:
+          - cassandra1:9042
+          - cassandra2:9042
+          - cassandra3:9042
+        thriftHosts:
+          - cassandra1:9160
+          - cassandra2:9160
+          - cassandra3:9160
+      credentials:
+        username: cassandra
+        password: cassandra
+      ssl: false
+      replicationFactor: 3
+    targetedSweep:
+      enableSweepQueueWrites: true
+    namespace: workload_server
+  single-row-two-cells-config:
+    table-configuration:
+      table-name: two_cells_test
+      isolation-level: SERIALIZABLE
+    iteration-count: 100
+    type: singleRowTwoCells
+  exit-after-running: trueu}(j
 (e664a780b53fd2efd5cd47e97de07608604db988js Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlju addedjm K
jn K jw K
jx https://github.com/palantir/atlasdb/blob/215d620903282ec828ba3be1435a8837b7cdda82/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljz https://github.com/palantir/atlasdb/raw/215d620903282ec828ba3be1435a8837b7cdda82/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj| https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=215d620903282ec828ba3be1435a8837b7cdda82j~ X`  @@ -0,0 +1,13 @@
+runtime: {}
+install:
+  atlas:
+    namespace: test
+    keyValueService:
+      type: memory
+  single-row-two-cells-config:
+    table-configuration:
+      table-name: two-cells-test
+      isolation-level: SERIALIZABLE
+    iteration-count: 100
+    type: singleRowTwoCells
+  exit-after-running: true
\ No newline at end of fileu}(j
 (7d7c58d85db7aec41551dce0fc7be0a3e2d22fb1js >atlasdb-workload-server-distribution/var/security/keyStore.jksju addedjm K jn K jw K jx https://github.com/palantir/atlasdb/blob/215d620903282ec828ba3be1435a8837b7cdda82/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FkeyStore.jksjz https://github.com/palantir/atlasdb/raw/215d620903282ec828ba3be1435a8837b7cdda82/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FkeyStore.jksj| https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FkeyStore.jks?ref=215d620903282ec828ba3be1435a8837b7cdda82u}(j
 (49dd792296e2678272e6b07df09e286ff5b8879ejs @atlasdb-workload-server-distribution/var/security/trustStore.jksju addedjm K jn K jw K jx https://github.com/palantir/atlasdb/blob/215d620903282ec828ba3be1435a8837b7cdda82/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FtrustStore.jksjz https://github.com/palantir/atlasdb/raw/215d620903282ec828ba3be1435a8837b7cdda82/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FtrustStore.jksj| https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FtrustStore.jks?ref=215d620903282ec828ba3be1435a8837b7cdda82ueu(cc9bb4733ea5afc3e467218602986b3314468167}(sha(cc9bb4733ea5afc3e467218602986b3314468167node_idEC_kwDOAjP5fdoAKGNjOWJiNDczM2VhNWFmYzNlNDY3MjE4NjAyOTg2YjMzMTQ0NjgxNjccommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-04-28T15:28:40Zu	committer}(j GitHubj noreply@github.comj 2023-04-28T15:28:40ZumessagexWorkflow validators  (#6529)

Adds workflow validators abstraction to allow multiple workflows and invariants to be ran.tree}(j (08cdd0c308a0365b72c883955b90d09894ef4dc9url`https://api.github.com/repos/palantir/atlasdb/git/trees/08cdd0c308a0365b72c883955b90d09894ef4dc9uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cc9bb4733ea5afc3e467218602986b3314468167
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkS+YoCRBK7hj4Ov3rIwAA36EIAFofb9IiG6LfM83nAEECvjgr
4lhQArNWYYuWUs0vcgCofpzqPiaCvChbqIMeFL4B+kKc6sP+eEKRDckmpZyhq8uo
ik6lmFTlmbN5OQXegatrMEFp3bBHtiNYqoNIdoVZMj0DMq7VDct4CuweUpnC9L8j
+eJasZehYM6R2/rzi9VlgZXBxiRFR3eZFyCyVx25m9dwDba0nuM0x8IAyTJak8vQ
LYrrNZKOpA/jy/HHvjuLTbihPWeP9T+sDmggHLlgiS/rW5xoi5eU65Q2fmKPe88a
oGXTHD0d1xKo5QsZJ8qErdtSJd53Z+TI3cqXgUEaN475wG2jOqpyTbLief8Bwaw=
=1dg8
-----END PGP SIGNATURE-----
payloadXK  tree 08cdd0c308a0365b72c883955b90d09894ef4dc9
parent a2ef728bbf6192f5b8f9f9bd16f69671aa9c4283
author Sam-Kramer <sam.c.kramer@gmail.com> 1682695720 +0100
committer GitHub <noreply@github.com> 1682695720 +0000

Workflow validators  (#6529)

Adds workflow validators abstraction to allow multiple workflows and invariants to be ran.
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/cc9bb4733ea5afc3e467218602986b3314468167html_urlShttps://github.com/palantir/atlasdb/commit/cc9bb4733ea5afc3e467218602986b3314468167comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cc9bb4733ea5afc3e467218602986b3314468167/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-KramerjΤ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(jӤ web-flowjդ J/j MDQ6VXNlcjE5ODY0NDQ3jפ 4https://avatars.githubusercontent.com/u/19864447?v=4j٤ h5j %https://api.github.com/users/web-flowjΤ https://github.com/web-flowjܤ /https://api.github.com/users/web-flow/followersjޤ <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j (a2ef728bbf6192f5b8f9f9bd16f69671aa9c4283j ^https://api.github.com/repos/palantir/atlasdb/commits/a2ef728bbf6192f5b8f9f9bd16f69671aa9c4283jΤ Shttps://github.com/palantir/atlasdb/commit/a2ef728bbf6192f5b8f9f9bd16f69671aa9c4283uastats}(totalM	additionsMX	deletionsKuufiles](}(j (521eb86ec62e39c42dea4234b11b2f742d9a8e1dfilenamekatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowAndInvariants.javastatusaddedj
 K-j K changesK-blob_urlhttps://github.com/palantir/atlasdb/blob/cc9bb4733ea5afc3e467218602986b3314468167/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.javaraw_urlhttps://github.com/palantir/atlasdb/raw/cc9bb4733ea5afc3e467218602986b3314468167/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.java?ref=cc9bb4733ea5afc3e467218602986b3314468167patchX  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import java.util.Arrays;
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WorkflowAndInvariants<WorkflowTypeT extends Workflow> {
+    @Value.Parameter
+    WorkflowTypeT workflow();
+
+    @Value.Parameter
+    List<InvariantReporter<?>> invariantReporters();
+
+    static <WorkflowTypeT extends Workflow> WorkflowAndInvariants<WorkflowTypeT> of(
+            WorkflowTypeT workflow, List<InvariantReporter<?>> invariants) {
+        return ImmutableWorkflowAndInvariants.of(workflow, invariants);
+    }
+
+    static <WorkflowTypeT extends Workflow> WorkflowAndInvariants<WorkflowTypeT> of(
+            WorkflowTypeT workflow, InvariantReporter<?>... invariants) {
+        return ImmutableWorkflowAndInvariants.of(workflow, Arrays.asList(invariants));
+    }
+
+    static <WorkflowTypeT extends Workflow> ImmutableWorkflowAndInvariants.Builder<WorkflowTypeT> builder() {
+        return ImmutableWorkflowAndInvariants.builder();
+    }
+}u}(j (3b0f830372ef64835a492324722b2b2019546854j natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowHistoryValidator.javaj renamedj
 Kj Kj Kj https://github.com/palantir/atlasdb/blob/cc9bb4733ea5afc3e467218602986b3314468167/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.javaj https://github.com/palantir/atlasdb/raw/cc9bb4733ea5afc3e467218602986b3314468167/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.java?ref=cc9bb4733ea5afc3e467218602986b3314468167j X  @@ -18,13 +18,17 @@
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
 import java.util.List;
+import org.immutables.value.Value;
 
-/**
- * Run the provided workflow and execute the provided invariant reporters.
- *
- * The idea of this class is that long-term we will want to have multiple ways to run/execute workflows,
- * rather than biasing towards the present case (just once).
- */
-public interface WorkflowRunner<WorkflowTypeT extends Workflow> {
-    void run(WorkflowTypeT workflow, List<InvariantReporter<?>> invariantReporters);
+@Value.Immutable
+public interface WorkflowHistoryValidator {
+    @Value.Parameter
+    WorkflowHistory history();
+
+    @Value.Parameter
+    List<InvariantReporter<?>> invariants();
+
+    static WorkflowHistoryValidator of(WorkflowHistory history, List<InvariantReporter<?>> invariants) {
+        return ImmutableWorkflowHistoryValidator.of(history, invariants);
+    }
 }previous_filenamedatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowRunner.javau}(j (7bda1b5a5ae5fcf4035a9bcb3a8979da682b9deaj matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowValidatorRunner.javaj addedj
 K#j K j K#j https://github.com/palantir/atlasdb/blob/cc9bb4733ea5afc3e467218602986b3314468167/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.javaj https://github.com/palantir/atlasdb/raw/cc9bb4733ea5afc3e467218602986b3314468167/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.java?ref=cc9bb4733ea5afc3e467218602986b3314468167j X(  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * Run the provided workflow and validate that it is correct with the provided invariants.
+ */
+public interface WorkflowValidatorRunner<WorkflowTypeT extends Workflow> {
+    void run(List<WorkflowAndInvariants<WorkflowTypeT>> workflowAndInvariants);
+
+    default void run(WorkflowAndInvariants<WorkflowTypeT>... workflowAndInvariants) {
+        run(Arrays.asList(workflowAndInvariants));
+    }
+
+    default void run(WorkflowAndInvariants<WorkflowTypeT> workflowAndInvariants) {
+        run(List.of(workflowAndInvariants));
+    }
+}u}(j (17e96e021eb01e7d96761d28936606468c4059d5j latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedj
 K"j Kj K4j https://github.com/palantir/atlasdb/blob/cc9bb4733ea5afc3e467218602986b3314468167/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://github.com/palantir/atlasdb/raw/cc9bb4733ea5afc3e467218602986b3314468167/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=cc9bb4733ea5afc3e467218602986b3314468167j X  @@ -27,10 +27,13 @@
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
 import com.palantir.atlasdb.workload.invariant.DurableWritesInvariantMetricReporter;
 import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
-import com.palantir.atlasdb.workload.runner.AntithesisWorkflowRunner;
+import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
 import com.palantir.conjure.java.serialization.ObjectMappers;
@@ -41,9 +44,9 @@
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import io.dropwizard.Application;
 import io.dropwizard.jackson.DiscoverableSubtypeResolver;
+import io.dropwizard.lifecycle.setup.LifecycleEnvironment;
 import io.dropwizard.setup.Bootstrap;
 import io.dropwizard.setup.Environment;
-import java.util.List;
 import java.util.Map;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
@@ -82,7 +85,7 @@ public void run(WorkloadServerConfiguration configuration, Environment environme
     }
 
     private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {
-        ExecutorService singleRowTwoCellsExecutorService = environment
+        ExecutorService antithesisWorkflowRunnerExecutorService = environment
                 .lifecycle()
                 .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
                 .build();
@@ -95,21 +98,10 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         SingleRowTwoCellsWorkflowConfiguration workflowConfig =
                 configuration.install().singleRowTwoCellsConfig();
 
-        log.info("antithesis: start_faults");
-        AntithesisWorkflowRunner.INSTANCE.run(
-                SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
-                        transactionStoreFactory.create(
-                                Map.of(
-                                        workflowConfig.tableConfiguration().tableName(),
-                                        workflowConfig.tableConfiguration().isolationLevel()),
-                                Set.of()),
-                        workflowConfig,
-                        MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)),
-                List.of(
-                        new DurableWritesInvariantMetricReporter(
-                                SingleRowTwoCellsWorkflows.class.getSimpleName(),
-                                DurableWritesMetrics.of(taggedMetricRegistry)),
-                        SerializableInvariantLogReporter.INSTANCE));
+        new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
+                .run(createSingleRowTwoCellsWorkflowValidator(
+                        transactionStoreFactory, workflowConfig, environment.lifecycle()));
+
         log.info("antithesis: terminate");
 
         workflowsRanLatch.countDown();
@@ -119,6 +111,30 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
+    private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleRowTwoCellsWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService singleRowTwoCellsExecutorService = lifecycle
+                .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
+                .build();
+        TransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
     @VisibleForTesting
     CountDownLatch workflowsRanLatch() {
         return workflowsRanLatch;u}(j (47c1c58dc5ec09e6991e1b15ffa1c7e7c13a1b46j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowRunner.javaj removedj
 K j K.j K.j https://github.com/palantir/atlasdb/blob/a2ef728bbf6192f5b8f9f9bd16f69671aa9c4283/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.javaj https://github.com/palantir/atlasdb/raw/a2ef728bbf6192f5b8f9f9bd16f69671aa9c4283/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.java?ref=a2ef728bbf6192f5b8f9f9bd16f69671aa9c4283j X  @@ -1,46 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.runner;
-
-import com.palantir.atlasdb.workload.invariant.InvariantReporter;
-import com.palantir.atlasdb.workload.workflow.Workflow;
-import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
-import com.palantir.atlasdb.workload.workflow.WorkflowRunner;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.List;
-
-public enum AntithesisWorkflowRunner implements WorkflowRunner<Workflow> {
-    INSTANCE;
-
-    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisWorkflowRunner.class);
-
-    @Override
-    public void run(Workflow workflow, List<InvariantReporter<?>> invariants) {
-        WorkflowHistory workflowHistory = workflow.run();
-        log.info("antithesis: stop_faults");
-        invariants.forEach(reporter -> {
-            try {
-                reporter.report(workflowHistory);
-            } catch (RuntimeException e) {
-                log.error("Caught an exception when running and reporting an invariant.", e);
-            }
-        });
-        log.info("Dumping transaction log {}", SafeArg.of("transactionLog", workflowHistory.history()));
-    }
-}u}(j (7746b1901d37ab005efb2fedddecc226a6be376dj qatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunner.javaj addedj
 KNj K j KNj https://github.com/palantir/atlasdb/blob/cc9bb4733ea5afc3e467218602986b3314468167/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javaj https://github.com/palantir/atlasdb/raw/cc9bb4733ea5afc3e467218602986b3314468167/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.java?ref=cc9bb4733ea5afc3e467218602986b3314468167j XL  @@ -0,0 +1,78 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.runner;
+
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistoryValidator;
+import com.palantir.atlasdb.workload.workflow.WorkflowValidatorRunner;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.concurrent.ExecutionException;
+import java.util.stream.Collectors;
+
+public final class AntithesisWorkflowValidatorRunner implements WorkflowValidatorRunner<Workflow> {
+    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisWorkflowValidatorRunner.class);
+    private final ListeningExecutorService listeningExecutorService;
+
+    public AntithesisWorkflowValidatorRunner(ListeningExecutorService listeningExecutorService) {
+        this.listeningExecutorService = listeningExecutorService;
+    }
+
+    @Override
+    public void run(List<WorkflowAndInvariants<Workflow>> workflowAndInvariants) {
+        try {
+            log.info("antithesis: start_faults");
+            List<WorkflowHistoryValidator> workflowHistoryValidators = Futures.allAsList(
+                            submitWorkflowValidators(workflowAndInvariants))
+                    .get();
+            log.info("antithesis: stop_faults");
+            workflowHistoryValidators.forEach(this::checkAndReportInvariantViolations);
+        } catch (InterruptedException e) {
+            Thread.currentThread().interrupt();
+            throw new RuntimeException(e);
+        } catch (ExecutionException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private void checkAndReportInvariantViolations(WorkflowHistoryValidator validator) {
+        validator.invariants().forEach(invariantReporter -> {
+            try {
+                invariantReporter.report(validator.history());
+            } catch (RuntimeException e) {
+                log.error("Caught an exception when running and reporting an invariant.", e);
+            }
+        });
+        log.info(
+                "Dumping transaction log {}",
+                SafeArg.of("transactionLog", validator.history().history()));
+    }
+
+    private List<ListenableFuture<WorkflowHistoryValidator>> submitWorkflowValidators(
+            List<WorkflowAndInvariants<Workflow>> workflowAndInvariants) {
+        return workflowAndInvariants.stream()
+                .map(workflowValidator -> listeningExecutorService.submit(() -> WorkflowHistoryValidator.of(
+                        workflowValidator.workflow().run(), workflowValidator.invariantReporters())))
+                .collect(Collectors.toList());
+    }
+}u}(j (7a5e8dd4c01ddc761284d5c5bdc9c0345ddd2826j latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowRunnerTest.javaj removedj
 K j K-j K-j https://github.com/palantir/atlasdb/blob/a2ef728bbf6192f5b8f9f9bd16f69671aa9c4283/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.javaj https://github.com/palantir/atlasdb/raw/a2ef728bbf6192f5b8f9f9bd16f69671aa9c4283/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.java?ref=a2ef728bbf6192f5b8f9f9bd16f69671aa9c4283j X  @@ -1,45 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.runner;
-
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.when;
-
-import com.palantir.atlasdb.workload.invariant.InvariantReporter;
-import com.palantir.atlasdb.workload.workflow.Workflow;
-import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
-import java.util.List;
-import org.junit.Test;
-
-public class AntithesisWorkflowRunnerTest {
-    @Test
-    public void runExecutesWorkflowsAndInvokesInvariantReporter() {
-        Workflow exampleWorkflow = mock(Workflow.class);
-        WorkflowHistory workflowHistory = mock(WorkflowHistory.class);
-        when(exampleWorkflow.run()).thenReturn(workflowHistory);
-        InvariantReporter<Void> exampleInvariantReporterOne = mock(InvariantReporter.class);
-        InvariantReporter<Void> exampleInvariantReporterTwo = mock(InvariantReporter.class);
-        AntithesisWorkflowRunner.INSTANCE.run(
-                exampleWorkflow, List.of(exampleInvariantReporterOne, exampleInvariantReporterTwo));
-        verify(exampleWorkflow, times(1)).run();
-        verify(exampleInvariantReporterOne, times(1)).report(any());
-        verify(exampleInvariantReporterTwo, times(1)).report(any());
-    }
-}u}(j (6c7f1d05425e8759d68b71073e9525eaf8f11057j uatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunnerTest.javaj addedj
 Kj K j Kj https://github.com/palantir/atlasdb/blob/cc9bb4733ea5afc3e467218602986b3314468167/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javaj https://github.com/palantir/atlasdb/raw/cc9bb4733ea5afc3e467218602986b3314468167/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.java?ref=cc9bb4733ea5afc3e467218602986b3314468167j Xb  @@ -0,0 +1,140 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.runner;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doAnswer;
+import static org.mockito.Mockito.doThrow;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.times;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
+
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.Future;
+import java.util.concurrent.atomic.AtomicBoolean;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class AntithesisWorkflowValidatorRunnerTest {
+
+    private static final ListeningExecutorService EXECUTOR_SERVICE =
+            MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(8));
+
+    @Mock
+    private Workflow workflow;
+
+    @Mock
+    private WorkflowHistory workflowHistory;
+
+    @Mock
+    private InvariantReporter<Void> invariantReporterOne;
+
+    @Mock
+    private InvariantReporter<Void> invariantReporterTwo;
+
+    private WorkflowAndInvariants<Workflow> workflowAndInvariants;
+
+    @Before
+    public void before() {
+        when(workflow.run()).thenReturn(workflowHistory);
+        workflowAndInvariants = WorkflowAndInvariants.of(workflow, invariantReporterOne, invariantReporterTwo);
+    }
+
+    @Test
+    public void runExecutesWorkflowAndInvokesInvariantReporters() {
+        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(workflowAndInvariants);
+        verify(workflow, times(1)).run();
+        verify(invariantReporterOne, times(1)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+
+    @Test
+    public void runValidatesAllInvariantsIgnoringExceptions() {
+        doThrow(new RuntimeException()).when(invariantReporterOne).report(any());
+        doThrow(new RuntimeException()).when(invariantReporterTwo).report(any());
+        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(workflowAndInvariants);
+        verify(workflow, times(1)).run();
+        verify(invariantReporterOne, times(1)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+
+    @Test
+    public void runExecutesMultipleWorkflowsAndWaitsForAllToFinishBeforeInvokingInvariantReporter() {
+        CountDownLatch slowWorkflowCanMakeProgress = new CountDownLatch(1);
+        AtomicBoolean slowWorkflowIsDone = new AtomicBoolean(false);
+
+        Workflow slowWorkflow = mock(Workflow.class);
+        when(slowWorkflow.run()).thenAnswer(_input -> {
+            try {
+                slowWorkflowCanMakeProgress.await();
+                slowWorkflowIsDone.set(true);
+                return workflowHistory;
+            } catch (InterruptedException e) {
+                Thread.currentThread().interrupt();
+                throw new RuntimeException(e);
+            }
+        });
+
+        doAnswer(_invocation -> {
+                    assertThat(slowWorkflowIsDone.get())
+                            .as("the invariant reporter ran, even though the slow workflow was not done yet")
+                            .isTrue();
+                    return null;
+                })
+                .when(invariantReporterOne)
+                .report(any());
+
+        ExecutorService backgroundExecutor = PTExecutors.newSingleThreadExecutor();
+        try {
+            Future<Void> validation = backgroundExecutor.submit(() -> {
+                WorkflowAndInvariants<Workflow> slowWorkflowAndInvariants =
+                        WorkflowAndInvariants.of(slowWorkflow, invariantReporterOne);
+                new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE)
+                        .run(slowWorkflowAndInvariants, workflowAndInvariants);
+                return null;
+            });
+
+            assertThat(validation).as("the slow workflow was not actually slow").isNotDone();
+
+            slowWorkflowCanMakeProgress.countDown();
+            Futures.getUnchecked(validation);
+        } finally {
+            backgroundExecutor.shutdown();
+        }
+
+        verify(workflow, times(1)).run();
+        verify(slowWorkflow, times(1)).run();
+        verify(invariantReporterOne, times(2)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+}ueu(409a00b2b18c78677f64a5492fa67c76ea589407}(sha(409a00b2b18c78677f64a5492fa67c76ea589407node_idEC_kwDOAjP5fdoAKDQwOWEwMGIyYjE4Yzc4Njc3ZjY0YTU0OTJmYTY3Yzc2ZWE1ODk0MDccommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-03-20T15:55:20Zu	committer}(ja GitHubjc noreply@github.comje 2023-03-20T15:55:20ZumessageX  [Workload Service] Proof-of-concept: one row two cells (#6453)

* v0

* atlasdb store

* fix tests

* stash

* stash

* working v0

* working v0

* refactor

* add more tests

* boo

* templates and runners

* Cleanup and tests: CTR

* CTR: concretions to abstractions

* boo

* rocket launch

* self-CR

* final

* dependencies

* proof-of-concept: one row two cells

* la campanella

* la campanella

* explanations

* bleh

* fixes

* boo

* Slash and burn

* workflow behaves differently

* fix

* boo

* cleanup

* final

* clair de lune

* CR checkpoint

* CR

* CR

* Add witnessed transaction actions

* fixes

---------

Co-authored-by: Sam Kramer <skramer@palantir.com>tree}(jY (b7d428c54b58bebe0fcf9d7caf1fdfdcd9b3000aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/b7d428c54b58bebe0fcf9d7caf1fdfdcd9b3000aujq bhttps://api.github.com/repos/palantir/atlasdb/git/commits/409a00b2b18c78677f64a5492fa67c76ea589407
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkGIHoCRBK7hj4Ov3rIwAA+tIIAKL+994P6e/S43x1gBKw6HRO
09Fiz4txeIQrfQRFF8sjOdm2/k9YUJa/g2c4XonwsMroU6/ElLqGWWFWBek3E2WI
UxW4lU/aMkRUewPxWQTp4ppmq/02S35dda69SL/XZADQcSxwJNb6NOl5gl8S6Z4e
GKE8cQfmF19deNl8yusC58G5DF/YClMPJAQ1bMNdPF8gxGTdaqQvbiO1maG+eWHz
cdCsvBZcVvmb07u82LI2ICeLZ3V/gkj2Zhj/BpecIWCCY1msV9/lAHEJc5nBzIz3
9wdSuhw46oJVL3XW42Z53JAcMXC37SE0yicZktKCJ1w7iAOHXyMG3s13nBKNDOQ=
=nDbc
-----END PGP SIGNATURE-----
payloadX  tree b7d428c54b58bebe0fcf9d7caf1fdfdcd9b3000a
parent 868f3e786068a9f2e93808be26fd7f4f00a75a09
author Jeremy Kong <jkong@palantir.com> 1679327720 +0000
committer GitHub <noreply@github.com> 1679327720 +0000

[Workload Service] Proof-of-concept: one row two cells (#6453)

* v0

* atlasdb store

* fix tests

* stash

* stash

* working v0

* working v0

* refactor

* add more tests

* boo

* templates and runners

* Cleanup and tests: CTR

* CTR: concretions to abstractions

* boo

* rocket launch

* self-CR

* final

* dependencies

* proof-of-concept: one row two cells

* la campanella

* la campanella

* explanations

* bleh

* fixes

* boo

* Slash and burn

* workflow behaves differently

* fix

* boo

* cleanup

* final

* clair de lune

* CR checkpoint

* CR

* CR

* Add witnessed transaction actions

* fixes

---------

Co-authored-by: Sam Kramer <skramer@palantir.com>uujq ^https://api.github.com/repos/palantir/atlasdb/commits/409a00b2b18c78677f64a5492fa67c76ea589407html_urlShttps://github.com/palantir/atlasdb/commit/409a00b2b18c78677f64a5492fa67c76ea589407comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/409a00b2b18c78677f64a5492fa67c76ea589407/commentsj_ }(login
jeremyk-91idJZ j[ MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jq 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujg }(j web-flowj J/j[ MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5jq %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(jY (868f3e786068a9f2e93808be26fd7f4f00a75a09jq ^https://api.github.com/repos/palantir/atlasdb/commits/868f3e786068a9f2e93808be26fd7f4f00a75a09j Shttps://github.com/palantir/atlasdb/commit/868f3e786068a9f2e93808be26fd7f4f00a75a09uastats}(totalM	additionsM	deletionsKufiles](}(jY (f3b4e04f4d4358c82e503f82cffa59f41a139357filenamehatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/TableConfiguration.javastatusaddedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/409a00b2b18c78677f64a5492fa67c76ea589407/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.javaraw_urlhttps://github.com/palantir/atlasdb/raw/409a00b2b18c78677f64a5492fa67c76ea589407/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.java?ref=409a00b2b18c78677f64a5492fa67c76ea589407patchX  @@ -0,0 +1,31 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableTableConfiguration.class)
+@JsonDeserialize(as = ImmutableTableConfiguration.class)
+public interface TableConfiguration {
+    String tableName();
+
+    IsolationLevel isolationLevel();
+}u}(jY (a62866eedfc187b1d057728b326c060a7c0d1062j katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowConfiguration.javajå modifiedj Kj Kjť K
jƥ https://github.com/palantir/atlasdb/blob/409a00b2b18c78677f64a5492fa67c76ea589407/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javajȥ https://github.com/palantir/atlasdb/raw/409a00b2b18c78677f64a5492fa67c76ea589407/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javajʥ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.java?ref=409a00b2b18c78677f64a5492fa67c76ea589407j̥ X  @@ -16,15 +16,9 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import com.google.common.util.concurrent.ListeningExecutorService;
-import org.immutables.value.Value;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
 
-@Value.Immutable
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
 public interface WorkflowConfiguration {
     int iterationCount();
-
-    /**
-     * Executor used to execute workload threads (i.e., transactions).
-     */
-    ListeningExecutorService executionExecutor();
 }u}(jY (8f30fb237a5cd358c7c5da59bc5c02eced7d50d1j $atlasdb-workload-server/build.gradlejå modifiedj Kj K jť Kjƥ xhttps://github.com/palantir/atlasdb/blob/409a00b2b18c78677f64a5492fa67c76ea589407/atlasdb-workload-server%2Fbuild.gradlejȥ whttps://github.com/palantir/atlasdb/raw/409a00b2b18c78677f64a5492fa67c76ea589407/atlasdb-workload-server%2Fbuild.gradlejʥ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=409a00b2b18c78677f64a5492fa67c76ea589407j̥ X  @@ -17,6 +17,7 @@ dependencies {
 
     testImplementation project(':commons-executors')
     testImplementation 'org.mockito:mockito-core'
+    testImplementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
     testImplementation 'com.palantir.safe-logging:preconditions-assertj'
     testImplementation('org.jmock:jmock') {
         exclude group: 'org.hamcrest'u}(jY (bf29ecb36d37560dd0ff90b22ff674e8ad11a892j Zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/AtlasDbUtils.javajå modifiedj Kj K jť Kjƥ https://github.com/palantir/atlasdb/blob/409a00b2b18c78677f64a5492fa67c76ea589407/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javajȥ https://github.com/palantir/atlasdb/raw/409a00b2b18c78677f64a5492fa67c76ea589407/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javajʥ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.java?ref=409a00b2b18c78677f64a5492fa67c76ea589407j̥ X  @@ -24,7 +24,10 @@
 import com.palantir.atlasdb.table.description.NameMetadataDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 
 public final class AtlasDbUtils {
 
@@ -50,6 +53,20 @@ public static byte[] tableMetadata(ConflictHandler conflictHandler) {
                 .persistToBytes();
     }
 
+    public static byte[] tableMetadata(IsolationLevel isolationLevel) {
+        switch (isolationLevel) {
+            case SERIALIZABLE:
+                return tableMetadata(ConflictHandler.SERIALIZABLE);
+            case SNAPSHOT:
+                return tableMetadata(ConflictHandler.RETRY_ON_WRITE_WRITE);
+            case NONE:
+                return tableMetadata(ConflictHandler.IGNORE_ALL);
+            default:
+                throw new SafeIllegalStateException(
+                        "Unknown isolation level", SafeArg.of("isolationLevel", isolationLevel));
+        }
+    }
+
     public static byte[] indexMetadata(ConflictHandler baseTableConflictHandler) {
         ConflictHandler conflictHandler = baseTableConflictHandler.checkReadWriteConflicts()
                 ? ConflictHandler.SERIALIZABLE_INDEXu;     }(jY (cdafd0cea6d319a2cc5b488f7348f8f55229c3d8j aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javajå modifiedj Kj Kjť Kjƥ https://github.com/palantir/atlasdb/blob/409a00b2b18c78677f64a5492fa67c76ea589407/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajȥ https://github.com/palantir/atlasdb/raw/409a00b2b18c78677f64a5492fa67c76ea589407/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajʥ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=409a00b2b18c78677f64a5492fa67c76ea589407j̥ Xm  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -45,9 +46,12 @@ private DefaultWorkflow(
     }
 
     public static Workflow create(
-            TransactionStore store, KeyedTransactionTask transactionTask, WorkflowConfiguration configuration) {
+            TransactionStore store,
+            KeyedTransactionTask transactionTask,
+            WorkflowConfiguration configuration,
+            ListeningExecutorService executionExecutor) {
         return new DefaultWorkflow(
-                new ConcurrentTransactionRunner(store, configuration.executionExecutor()),
+                new ConcurrentTransactionRunner(store, executionExecutor),
                 transactionTask,
                 configuration,
                 new ReadOnlyTransactionStore(store));u}(jY (05d4f3bfef3b253ef2ed35d6c93d57b5c7fa50f9j xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javajå addedj K+j K jť K+jƥ https://github.com/palantir/atlasdb/blob/409a00b2b18c78677f64a5492fa67c76ea589407/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javajȥ https://github.com/palantir/atlasdb/raw/409a00b2b18c78677f64a5492fa67c76ea589407/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javajʥ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=409a00b2b18c78677f64a5492fa67c76ea589407j̥ XY  @@ -0,0 +1,43 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonTypeName(SingleRowTwoCellsWorkflowConfiguration.TYPE)
+public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "SINGLE_ROW_TWO_CELLS";
+
+    TableConfiguration tableConfiguration();
+
+    @Value.Default
+    default double rateLimit() {
+        return 100;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jY (a051b9750921550bf6cef8e388f821ed91ce81c5j latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javajå addedj Kgj K jť Kgjƥ https://github.com/palantir/atlasdb/blob/409a00b2b18c78677f64a5492fa67c76ea589407/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javajȥ https://github.com/palantir/atlasdb/raw/409a00b2b18c78677f64a5492fa67c76ea589407/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javajʥ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=409a00b2b18c78677f64a5492fa67c76ea589407j̥ X  @@ -0,0 +1,103 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.Streams;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+
+/**
+ * Consider a single row in a database that has two cells, which should between them maintain the invariant that
+ * at most one cell has a value (this workflow is extremely common in AtlasDB Proxy). This workflow maintains
+ * concurrent transactions that read the row (both cells), and then sends an update to one of the cells and attempts
+ * to delete the other.
+ */
+public final class SingleRowTwoCellsWorkflows {
+    private static final int SINGLE_ROW = 1;
+    private static final int FIRST_COLUMN = 1;
+    private static final int SECOND_COLUMN = 2;
+
+    @VisibleForTesting
+    static final WorkloadCell FIRST_CELL = ImmutableWorkloadCell.of(SINGLE_ROW, FIRST_COLUMN);
+
+    @VisibleForTesting
+    static final WorkloadCell SECOND_CELL = ImmutableWorkloadCell.of(SINGLE_ROW, SECOND_COLUMN);
+
+    private SingleRowTwoCellsWorkflows() {
+        // static factory
+    }
+
+    public static Workflow createSingleRowTwoCell(
+            TransactionStore store,
+            SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, index) -> run(txnStore, index, singleRowTwoCellsWorkflowConfiguration),
+                singleRowTwoCellsWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    private static Optional<WitnessedTransaction> run(
+            TransactionStore store, int taskIndex, SingleRowTwoCellsWorkflowConfiguration workflowConfiguration) {
+        workflowConfiguration.transactionRateLimiter().acquire();
+
+        List<TransactionAction> transactionActions = createTransactionActions(
+                taskIndex, workflowConfiguration.tableConfiguration().tableName());
+        return store.readWrite(transactionActions);
+    }
+
+    @VisibleForTesting
+    static List<TransactionAction> createTransactionActions(int taskIndex, String tableName) {
+        List<TransactionAction> cellReads = createCellReadActions(tableName);
+        List<TransactionAction> cellUpdates = createCellUpdateActions(taskIndex, tableName);
+        return Streams.concat(cellReads.stream(), cellUpdates.stream(), cellReads.stream())
+                .collect(Collectors.toList());
+    }
+
+    @VisibleForTesting
+    static boolean shouldWriteToFirstCell(int taskIndex) {
+        return taskIndex % 2 == 0;
+    }
+
+    private static List<TransactionAction> createCellUpdateActions(int taskIndex, String tableName) {
+        return shouldWriteToFirstCell(taskIndex)
+                ? ImmutableList.of(
+                        WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
+                        DeleteTransactionAction.of(tableName, SECOND_CELL))
+                : ImmutableList.of(
+                        DeleteTransactionAction.of(tableName, FIRST_CELL),
+                        WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
+    }
+
+    private static List<TransactionAction> createCellReadActions(String tableName) {
+        return ImmutableList.of(
+                ReadTransactionAction.of(tableName, FIRST_CELL), ReadTransactionAction.of(tableName, SECOND_CELL));
+    }
+}u}(jY (74c98c744a224ef0887b3c37e94c7aaff43a4feej eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javajå modifiedj K
j Kjť Kjƥ https://github.com/palantir/atlasdb/blob/409a00b2b18c78677f64a5492fa67c76ea589407/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javajȥ https://github.com/palantir/atlasdb/raw/409a00b2b18c78677f64a5492fa67c76ea589407/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javajʥ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=409a00b2b18c78677f64a5492fa67c76ea589407j̥ X(  @@ -24,6 +24,7 @@
 import static org.mockito.Mockito.when;
 
 import com.google.common.collect.ImmutableList;
+import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
@@ -38,13 +39,15 @@ public class DefaultWorkflowTest {
     private final KeyedTransactionTask transactionTask = mock(KeyedTransactionTask.class);
 
     private final ScheduledExecutorService scheduler = PTExecutors.newSingleThreadScheduledExecutor();
+    private final ListeningExecutorService executionExecutor = MoreExecutors.listeningDecorator(scheduler);
 
     @Test
     public void handlesExceptionsInUnderlyingTasks() {
         RuntimeException transactionException = new RuntimeException("boo");
         when(transactionTask.apply(eq(store), anyInt())).thenThrow(transactionException);
 
-        Workflow workflow = DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2));
+        Workflow workflow =
+                DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
         assertThatThrownBy(workflow::run)
                 .hasMessage("Error when running workflow task")
                 .hasCause(transactionException);
@@ -99,10 +102,12 @@ public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
     }
 
     private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
-        return ImmutableWorkflowConfiguration.builder()
-                .iterationCount(iterationCount)
-                .executionExecutor(MoreExecutors.listeningDecorator(scheduler))
-                .build();
+        return new WorkflowConfiguration() {
+            @Override
+            public int iterationCount() {
+                return iterationCount;
+            }
+        };
     }
 
     private static WitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {u}(jY (08764ef8040e0a87faef8c586798721177e1c904j |atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfigurationTest.javajå addedj KHj K jť KHjƥ https://github.com/palantir/atlasdb/blob/409a00b2b18c78677f64a5492fa67c76ea589407/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfigurationTest.javajȥ https://github.com/palantir/atlasdb/raw/409a00b2b18c78677f64a5492fa67c76ea589407/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfigurationTest.javajʥ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfigurationTest.java?ref=409a00b2b18c78677f64a5492fa67c76ea589407j̥ X  @@ -0,0 +1,72 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.google.common.util.concurrent.RateLimiter;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import org.junit.Test;
+
+public class SingleRowTwoCellsWorkflowConfigurationTest {
+    private static final TableConfiguration TABLE_CONFIGURATION = ImmutableTableConfiguration.builder()
+            .tableName(WorkloadTestHelpers.TABLE)
+            .isolationLevel(IsolationLevel.SERIALIZABLE)
+            .build();
+    private static final ObjectMapper OBJECT_MAPPER = ObjectMappers.newServerObjectMapper();
+
+    static {
+        OBJECT_MAPPER.registerSubtypes(SingleRowTwoCellsWorkflowConfiguration.class);
+    }
+
+    @Test
+    public void rateLimiterCreatedWithConfiguredNumberOfPermits() {
+        SingleRowTwoCellsWorkflowConfiguration configuration = createWithRateLimit(Double.MIN_NORMAL);
+        RateLimiter rateLimiter = configuration.transactionRateLimiter();
+        assertThat(rateLimiter.tryAcquire()).isTrue();
+        assertThat(rateLimiter.tryAcquire())
+                .as("the rate limiter granted two requests, but was not configured to accept more than one every"
+                        + " ~2.2 * 10^308 seconds")
+                .isFalse();
+    }
+
+    @Test
+    public void deserializationIsInverseOfSerialization() throws JsonProcessingException {
+        SingleRowTwoCellsWorkflowConfiguration configuration = createWithRateLimit(5);
+        assertThat(OBJECT_MAPPER.readValue(
+                        OBJECT_MAPPER.writeValueAsString(configuration), WorkflowConfiguration.class))
+                .isEqualTo(configuration);
+    }
+
+    @Test
+    public void rateLimitAccountedForInSerializedForm() throws JsonProcessingException {
+        assertThat(OBJECT_MAPPER.writeValueAsString(createWithRateLimit(10)))
+                .isNotEqualTo(OBJECT_MAPPER.writeValueAsString(createWithRateLimit(20)));
+    }
+
+    private static SingleRowTwoCellsWorkflowConfiguration createWithRateLimit(double rateLimit) {
+        return ImmutableSingleRowTwoCellsWorkflowConfiguration.builder()
+                .tableConfiguration(TABLE_CONFIGURATION)
+                .rateLimit(rateLimit)
+                .iterationCount(10)
+                .build();
+    }
+}u}(jY (4bc5be54fe26532ca6b52d1b18be46aa4b43832dj patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javajå addedj Kj K jť Kjƥ https://github.com/palantir/atlasdb/blob/409a00b2b18c78677f64a5492fa67c76ea589407/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javajȥ https://github.com/palantir/atlasdb/raw/409a00b2b18c78677f64a5492fa67c76ea589407/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javajʥ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=409a00b2b18c78677f64a5492fa67c76ea589407j̥ X   @@ -0,0 +1,135 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Optional;
+import org.junit.Test;
+
+public class SingleRowTwoCellsWorkflowsTest {
+    private static final String TABLE_NAME = "my.coffee";
+    private static final SingleRowTwoCellsWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleRowTwoCellsWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .rateLimit(Double.MAX_VALUE)
+                    .iterationCount(1)
+                    .build();
+
+    @Test
+    public void shouldWriteToFirstCellOnEvenIndices() {
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(0)).isTrue();
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(2)).isTrue();
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(24682468)).isTrue();
+    }
+
+    @Test
+    public void shouldNotWriteToFirstCellOnOddIndices() {
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(1)).isFalse();
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(3)).isFalse();
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(35793579)).isFalse();
+    }
+
+    @Test
+    public void createsReadsThenMutationsThenReads() {
+        assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(0, TABLE_NAME))
+                .containsExactly(
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
+                        DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+        assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(1, TABLE_NAME))
+                .containsExactly(
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, 1),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+    }
+
+    @Test
+    public void writesValueCorrespondingToTaskIndexInRelevantCell() {
+        assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(31415926, TABLE_NAME))
+                .containsExactly(
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 31415926),
+                        DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+        assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(6021023, TABLE_NAME))
+                .containsExactly(
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, 6021023),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+    }
+
+    @Test
+    public void workflowHistoryPreservesStoreAndCapturesWitnessedActions() {
+        TransactionStore memoryStore = AtlasDbTransactionStore.create(
+                TransactionManagers.createInMemory(ImmutableSet.of()),
+                ImmutableMap.of(
+                        TableReference.createWithEmptyNamespace(TABLE_NAME),
+                        AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+        WorkflowHistory history = SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
+                        memoryStore, CONFIGURATION, MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)))
+                .run();
+
+        assertThat(history.transactionStore())
+                .as("should return a read only tranasction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+        assertThat(Iterables.getOnlyElement(history.history()).actions())
+                .containsExactly(
+                        WitnessedReadTransactionAction.of(
+                                TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.empty()),
+                        WitnessedReadTransactionAction.of(
+                                TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()),
+                        WitnessedWriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
+                        WitnessedDeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        WitnessedReadTransactionAction.of(
+                                TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.of(0)),
+                        WitnessedReadTransactionAction.of(
+                                TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()));
+    }
+}ueu(4b82f40527535a0c95dc0e8fd507fd2bb1ab5414}(sha(4b82f40527535a0c95dc0e8fd507fd2bb1ab5414node_idEC_kwDOAjP5fdoAKDRiODJmNDA1Mjc1MzVhMGM5NWRjMGU4ZmQ1MDdmZDJiYjFhYjU0MTQcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T15:53:03Zu	committer}(j  
Ahmed Alouanej" aalouane@palantir.comj$ 2023-05-15T15:53:03ZumessageJMerge branch 'tlmetexxxxx' of github.com:palantir/atlasdb into tlmetexxxxxtree}(j (7a7e93e03c1d6889afecc647e5d389aeeb92a4e5url`https://api.github.com/repos/palantir/atlasdb/git/trees/7a7e93e03c1d6889afecc647e5d389aeeb92a4e5uj0 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4b82f40527535a0c95dc0e8fd507fd2bb1ab5414
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiVWEACgkQPlMHVIT1
yhqH7Qf/YqrX/zgcYgIaZ4Be4xEt0mKZfUCgpPF7O0DGg1hGtt7E1YTN39TK2pN/
sLZqSboiyGqUibVH6rjIuVm5HhP4OPNAcWC9I2eyOJnS20248K/3SHNn7jMuDPCe
FYqM4mVSsIctD8D8Pi47tXv+g3O6y+pljTsBAqjjSStRqYKmWrveDLSADAMSjQ2l
YVwG+IB1y/R2/SNFb8VdIvqlbbPxQXhTCdBviRlE9RMwF7MAkHyzlcgXh9C7Y/eC
mrHAfxsIttRs9odOyMeRv2Us0lC/THps62MuHX8+lln45g7E5mD6gjbMtbI8DtQq
eWD+gwRjuUira0zgw89YTQlI+7+Kaw==
=eYyP
-----END PGP SIGNATURE-----payloadXY  tree 7a7e93e03c1d6889afecc647e5d389aeeb92a4e5
parent 0ff89edc257a9bea60c56ec84af51905c8eabea7
parent b32cfb113e8e4982f290f2b11d4f5c7fd785368f
author Ahmed Alouane <aalouane@palantir.com> 1684165983 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684165983 +0100

Merge branch 'tlmetexxxxx' of github.com:palantir/atlasdb into tlmetexxxxx
uuj0 ^https://api.github.com/repos/palantir/atlasdb/commits/4b82f40527535a0c95dc0e8fd507fd2bb1ab5414html_urlShttps://github.com/palantir/atlasdb/commit/4b82f40527535a0c95dc0e8fd507fd2bb1ab5414comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4b82f40527535a0c95dc0e8fd507fd2bb1ab5414/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j0 #https://api.github.com/users/ergo14j> https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj& }(jC ergo14jE Jj MDQ6VXNlcjMwOTAzNzM2jG 4https://avatars.githubusercontent.com/u/30903736?v=4jI h5j0 #https://api.github.com/users/ergo14j> https://github.com/ergo14jL -https://api.github.com/users/ergo14/followersjN :https://api.github.com/users/ergo14/following{/other_user}jP 3https://api.github.com/users/ergo14/gists{/gist_id}jR :https://api.github.com/users/ergo14/starred{/owner}{/repo}jT 1https://api.github.com/users/ergo14/subscriptionsjV (https://api.github.com/users/ergo14/orgsjX )https://api.github.com/users/ergo14/reposjZ 4https://api.github.com/users/ergo14/events{/privacy}j\ 3https://api.github.com/users/ergo14/received_eventsj^ Userj` uparents](}(j (0ff89edc257a9bea60c56ec84af51905c8eabea7j0 ^https://api.github.com/repos/palantir/atlasdb/commits/0ff89edc257a9bea60c56ec84af51905c8eabea7j> Shttps://github.com/palantir/atlasdb/commit/0ff89edc257a9bea60c56ec84af51905c8eabea7u}(j (b32cfb113e8e4982f290f2b11d4f5c7fd785368fj0 ^https://api.github.com/repos/palantir/atlasdb/commits/b32cfb113e8e4982f290f2b11d4f5c7fd785368fj> Shttps://github.com/palantir/atlasdb/commit/b32cfb113e8e4982f290f2b11d4f5c7fd785368fuestats}(totalK 	additionsK 	deletionsK ufiles]u(0c77fee17a07d47c2f8b60602d27a07394b85187}(sha(0c77fee17a07d47c2f8b60602d27a07394b85187node_idEC_kwDOAjP5fdoAKDBjNzdmZWUxN2EwN2Q0N2MyZjhiNjA2MDJkMjdhMDczOTRiODUxODccommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-03-29T07:23:43Zu	committer}(j 
svc-changelogj svc-changelog@palantir.comj 2023-03-29T07:23:43ZumessageAdd generated changelog entriestree}(j (2c3734cffce4b3521ce4183a9320dba26c994c93url`https://api.github.com/repos/palantir/atlasdb/git/trees/2c3734cffce4b3521ce4183a9320dba26c994c93uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0c77fee17a07d47c2f8b60602d27a07394b85187
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQj538JEHYaJX37fAFQAAA6jwD/WqxWHUhh462YZYl3ovr608k8
n6d+Qpl4mpxv3Hd6Q3AA/0zyw6OVVmZZxiirFLdIwxJqxEYAQRnNbU27Efe47AJt
=DWRT
-----END PGP SIGNATURE-----payloadX  tree 2c3734cffce4b3521ce4183a9320dba26c994c93
parent d102003839146211c90e690c3f51cd300336a054
author svc-changelog <svc-changelog@palantir.com> 1680074623 +0000
committer svc-changelog <svc-changelog@palantir.com> 1680074623 +0000

Add generated changelog entriesuuj ^https://api.github.com/repos/palantir/atlasdb/commits/0c77fee17a07d47c2f8b60602d27a07394b85187html_urlShttps://github.com/palantir/atlasdb/commit/0c77fee17a07d47c2f8b60602d27a07394b85187comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0c77fee17a07d47c2f8b60602d27a07394b85187/commentsj }(login
svc-changelogidJ#j MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj }(j 
svc-changelogj J#j MDQ6VXNlcjg0MDc3NjAzj 4https://avatars.githubusercontent.com/u/84077603?v=4j h5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelogj 4https://api.github.com/users/svc-changelog/followersj Ahttps://api.github.com/users/svc-changelog/following{/other_user}j :https://api.github.com/users/svc-changelog/gists{/gist_id}j Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j 8https://api.github.com/users/svc-changelog/subscriptionsj¦ /https://api.github.com/users/svc-changelog/orgsjĦ 0https://api.github.com/users/svc-changelog/reposjƦ ;https://api.github.com/users/svc-changelog/events{/privacy}jȦ :https://api.github.com/users/svc-changelog/received_eventsjʦ Userj̦ uparents]}(j (d102003839146211c90e690c3f51cd300336a054j ^https://api.github.com/repos/palantir/atlasdb/commits/d102003839146211c90e690c3f51cd300336a054j Shttps://github.com/palantir/atlasdb/commit/d102003839146211c90e690c3f51cd300336a054uastats}(totalK	additionsK	deletionsK ufiles]}(j (b6ee9b4dfa1da170c4c398511447a1f49d7e82b7filename$changelog/@unreleased/pr-6489.v2.ymlstatusaddedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/0c77fee17a07d47c2f8b60602d27a07394b85187/changelog%2F%40unreleased%2Fpr-6489.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/0c77fee17a07d47c2f8b60602d27a07394b85187/changelog%2F%40unreleased%2Fpr-6489.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6489.v2.yml?ref=0c77fee17a07d47c2f8b60602d27a07394b85187patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Oracle tables (including overflow) will be created with PCTFREE 0.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6489uau(e87be332def7512dc9fc0359d99a85348d088d3c}(sha(e87be332def7512dc9fc0359d99a85348d088d3cnode_idEC_kwDOAjP5fdoAKGU4N2JlMzMyZGVmNzUxMmRjOWZjMDM1OWQ5OWE4NTM0OGQwODhkM2Mcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-26T14:26:46Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-06-26T14:26:46Zumessagerc7tree}(j (06044b27fa6de1d8e3ae9e5c94a07651932d27d1url`https://api.github.com/repos/palantir/atlasdb/git/trees/06044b27fa6de1d8e3ae9e5c94a07651932d27d1uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e87be332def7512dc9fc0359d99a85348d088d3c
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSZoCcACgkQTLdFKain
zjyVBwf/QrEIvGrIqMJI8YMAx1wGA1H7sKjlISIeFukrpHZIQvlVdoWJNncKIao4
QzFmx1roVhaMoXEPipByur3MoBgyeNI0vJE1L6TMPbv6Fcb4dUNN/d2cuHZ1pcaJ
Oc1E7vMP46+LJfe9Ia3tQ2mloPvkZNCTOi7mB8Cv7kOCHkwxkuPtXr3bu7sNOnRm
yWZAp56pLQP7bPcucXqvMm2b0T9i+VLtHYffruvaLKhPN3Kr0huqkTYpxyBc9RcH
m1BQgPAoy/4BuxyG72F1y15kUOsIN4KHuK10F5g5j80qnRlCc+yXuyInXwNx7ktD
4dSpHrkm7Y6oisTToOK6d6M8ctwADQ==
=4YPs
-----END PGP SIGNATURE-----payloadtree 06044b27fa6de1d8e3ae9e5c94a07651932d27d1
parent b66c188b79060d2b1551740cf56ae3ecfe2f09af
author Jeremy Kong <jkong@palantir.com> 1687789606 +0800
committer Jeremy Kong <jkong@palantir.com> 1687789606 +0800

rc7
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/e87be332def7512dc9fc0359d99a85348d088d3chtml_urlShttps://github.com/palantir/atlasdb/commit/e87be332def7512dc9fc0359d99a85348d088d3ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e87be332def7512dc9fc0359d99a85348d088d3c/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j! https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj	 }(j& 
jeremyk-91j( JZ j MDQ6VXNlcjU5NTU1MTA=j* 3https://avatars.githubusercontent.com/u/5955510?v=4j, h5j 'https://api.github.com/users/jeremyk-91j! https://github.com/jeremyk-91j/ 1https://api.github.com/users/jeremyk-91/followersj1 >https://api.github.com/users/jeremyk-91/following{/other_user}j3 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j5 >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j7 5https://api.github.com/users/jeremyk-91/subscriptionsj9 ,https://api.github.com/users/jeremyk-91/orgsj; -https://api.github.com/users/jeremyk-91/reposj= 8https://api.github.com/users/jeremyk-91/events{/privacy}j? 7https://api.github.com/users/jeremyk-91/received_eventsjA UserjC uparents]}(j (b66c188b79060d2b1551740cf56ae3ecfe2f09afj ^https://api.github.com/repos/palantir/atlasdb/commits/b66c188b79060d2b1551740cf56ae3ecfe2f09afj! Shttps://github.com/palantir/atlasdb/commit/b66c188b79060d2b1551740cf56ae3ecfe2f09afuastats}(totalK	additionsK	deletionsKufiles](}(j (d28834cb346cbfad789589ced7d81f5709fae00cfilename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedj] Kj^ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e87be332def7512dc9fc0359d99a85348d088d3c/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/e87be332def7512dc9fc0359d99a85348d088d3c/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=e87be332def7512dc9fc0359d99a85348d088d3cpatchX  @@ -2,7 +2,7 @@ version: '2'
 
 services:
   cassandra1:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
     ports:
       - "9160"
       - "9042"
@@ -22,7 +22,7 @@ services:
         ipv4_address: 10.20.20.2
 
   cassandra2:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
     ports:
       - "9160"
       - "9042"
@@ -42,7 +42,7 @@ services:
         ipv4_address: 10.20.20.3
 
   cassandra3:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
     ports:
       - "9160"
       - "9042"u}(j (6d65ed99c75a1f027fdaabaea55923135c1ecf5djc *scripts/circle-ci/publish-to-antithesis.shje modifiedj] Kj^ Kjg Kjh https://github.com/palantir/atlasdb/blob/e87be332def7512dc9fc0359d99a85348d088d3c/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shjj https://github.com/palantir/atlasdb/raw/e87be332def7512dc9fc0359d99a85348d088d3c/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shjl https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=e87be332def7512dc9fc0359d99a85348d088d3cjn X:  @@ -26,9 +26,9 @@ printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://$
 
 VERSION=$(./gradlew -q printVersion)
 
-docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
-docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc5 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
-docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
+docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc7
+docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc7 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc7
+docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc7
 
 docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}
 docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}ueu(3a9b98c0bc0d74fcf285f857ddb08f946bbad192}(sha(3a9b98c0bc0d74fcf285f857ddb08f946bbad192node_idEC_kwDOAjP5fdoAKDNhOWI5OGMwYmMwZDc0ZmNmMjg1Zjg1N2RkYjA4Zjk0NmJiYWQxOTIcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-01T20:23:51Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-01T20:23:51ZumessageDduplicate test definition in config.yml instead of using matrix jobstree}(jz (b5179481c2ab9858436e9d03269b79dee56a132furl`https://api.github.com/repos/palantir/atlasdb/git/trees/b5179481c2ab9858436e9d03269b79dee56a132fuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3a9b98c0bc0d74fcf285f857ddb08f946bbad192
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRQH9cACgkQPlMHVIT1
yhrEIwgAqkjAZ35/9Tnsd0x68jsTQauOtO+xi0tcvvcV505DuPUgpqqbSdpip/IB
RlQh/y1p2al0zEKIjYt+uyxSsg9sgoVW2j0fpH8RkHkVGrequR8EOQ8A6SDlnHuA
OScntbATK2VsSUInh1lH/f2hskw19dpBuc1R/wR5JGaVfBGzd1l/GmSws1i3G10j
n/L8hmywEacJu55i3NAwnamJnzRRb0r1lCqNT/s2pWVPyA275jZPnlnb2ompOl4j
w6d3kasGeME5Id8kR6Derv2WmhG+mBjePbtIq6y5EZ31GWnrS8offh5Lw0K2P6S8
gok4B6Eah2gGC4qm1mgJkR9SANIXRQ==
=6CLp
-----END PGP SIGNATURE-----payloadX#  tree b5179481c2ab9858436e9d03269b79dee56a132f
parent f46dd8e1e88cc9707ce6e89b9f8c509f2fcf33ee
author Ahmed Alouane <aalouane@palantir.com> 1682972631 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682972631 +0100

duplicate test definition in config.yml instead of using matrix jobs
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/3a9b98c0bc0d74fcf285f857ddb08f946bbad192html_urlShttps://github.com/palantir/atlasdb/commit/3a9b98c0bc0d74fcf285f857ddb08f946bbad192comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3a9b98c0bc0d74fcf285f857ddb08f946bbad192/commentsj }(loginergo14idJj| MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj| MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj§ uparents]}(jz (f46dd8e1e88cc9707ce6e89b9f8c509f2fcf33eej ^https://api.github.com/repos/palantir/atlasdb/commits/f46dd8e1e88cc9707ce6e89b9f8c509f2fcf33eej Shttps://github.com/palantir/atlasdb/commit/f46dd8e1e88cc9707ce6e89b9f8c509f2fcf33eeuastats}(totalM	additionsM	deletionsKufiles]}(jz (24f192cb3eff08bbd38767cf73bc305003f38badfilename.circleci/config.ymlstatusmodifiedjܧ Mjݧ KchangesMblob_urlhhttps://github.com/palantir/atlasdb/blob/3a9b98c0bc0d74fcf285f857ddb08f946bbad192/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/3a9b98c0bc0d74fcf285f857ddb08f946bbad192/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=3a9b98c0bc0d74fcf285f857ddb08f946bbad192patchX8  @@ -31,10 +31,7 @@ jobs:
           root: .
           paths: [ . ]
 
-  test:
-    parameters:
-      suite:
-        type: integer
+  test0:
     machine:
       image: ubuntu-2004:202111-02
     resource_class: xlarge
@@ -68,7 +65,7 @@ jobs:
               curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
               sudo ln -s /opt/java/zulu*/ /opt/java8
       - run:
-          command: ./scripts/circle-ci/run-circle-tests.sh << parameters.suite >>
+          command: ./scripts/circle-ci/run-circle-tests.sh 0
           no_output_timeout: 900
       - run: ./scripts/circle-ci/ensure-repo-clean.sh
       - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
@@ -85,12 +82,670 @@ jobs:
       - persist_to_workspace:
           root: .
           paths: [ . ]
+  test1:
+    machine:
+      image: ubuntu-2004:202111-02
+    resource_class: xlarge
+    environment:
+      GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
+      JAVA_HOME: /opt/java8
+      _JAVA_OPTIONS: "-XX:ActiveProcessorCount=8 -Xmx8g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
+      CIRCLE_TEST_REPORTS: /home/circleci/junit
+      CIRCLE_ARTIFACTS: /home/circleci/artifacts
+
+    steps:
+      - attach_workspace: { at: . }
+      - restore_cache:
+          key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
+      - restore_cache:
+          key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
+      - run: mkdir -p $CIRCLE_ARTIFACTS
+      - run:
+          command: ./scripts/circle-ci/pull-all-images.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/track-memory-usage.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/monitor-all-processes.sh
+          background: true
+      - run:
+          name: Install Java
+          command: |
+            sudo mkdir -p /opt/java && cd /opt/java && sudo chown -R circleci:circleci .
+            curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
+            sudo ln -s /opt/java/zulu*/ /opt/java8
+      - run:
+          command: ./scripts/circle-ci/run-circle-tests.sh 1
+          no_output_timeout: 900
+      - run: ./scripts/circle-ci/ensure-repo-clean.sh
+      - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
+      - run:
+          command: find . -type f -regex ".*/build/test-results/TEST-.*\.xml" -exec cp {} --parents $CIRCLE_TEST_REPORTS \;
+          when: always
+      - store_test_results:
+          path: /home/circleci/junit # Circle doesn't do substitution in this path
+      - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
+      - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
+      - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - store_artifacts:
+          path: /home/circleci/artifacts
+      - persist_to_workspace:
+          root: .
+          paths: [ . ]
+  test2:
+    machine:
+      image: ubuntu-2004:202111-02
+    resource_class: xlarge
+    environment:
+      GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
+      JAVA_HOME: /opt/java8
+      _JAVA_OPTIONS: "-XX:ActiveProcessorCount=8 -Xmx8g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
+      CIRCLE_TEST_REPORTS: /home/circleci/junit
+      CIRCLE_ARTIFACTS: /home/circleci/artifacts
+
+    steps:
+      - attach_workspace: { at: . }
+      - restore_cache:
+          key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
+      - restore_cache:
+          key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
+      - run: mkdir -p $CIRCLE_ARTIFACTS
+      - run:
+          command: ./scripts/circle-ci/pull-all-images.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/track-memory-usage.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/monitor-all-processes.sh
+          background: true
+      - run:
+          name: Install Java
+          command: |
+            sudo mkdir -p /opt/java && cd /opt/java && sudo chown -R circleci:circleci .
+            curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
+            sudo ln -s /opt/java/zulu*/ /opt/java8
+      - run:
+          command: ./scripts/circle-ci/run-circle-tests.sh 2
+          no_output_timeout: 900
+      - run: ./scripts/circle-ci/ensure-repo-clean.sh
+      - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
+      - run:
+          command: find . -type f -regex ".*/build/test-results/TEST-.*\.xml" -exec cp {} --parents $CIRCLE_TEST_REPORTS \;
+          when: always
+      - store_test_results:
+          path: /home/circleci/junit # Circle doesn't do substitution in this path
+      - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
+      - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
+      - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - store_artifacts:
+          path: /home/circleci/artifacts
+      - persist_to_workspace:
+          root: .
+          paths: [ . ]
+  test3:
+    machine:
+      image: ubuntu-2004:202111-02
+    resource_class: xlarge
+    environment:
+      GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
+      JAVA_HOME: /opt/java8
+      _JAVA_OPTIONS: "-XX:ActiveProcessorCount=8 -Xmx8g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
+      CIRCLE_TEST_REPORTS: /home/circleci/junit
+      CIRCLE_ARTIFACTS: /home/circleci/artifacts
+
+    steps:
+      - attach_workspace: { at: . }
+      - restore_cache:
+          key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
+      - restore_cache:
+          key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
+      - run: mkdir -p $CIRCLE_ARTIFACTS
+      - run:
+          command: ./scripts/circle-ci/pull-all-images.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/track-memory-usage.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/monitor-all-processes.sh
+          background: true
+      - run:
+          name: Install Java
+          command: |
+            sudo mkdir -p /opt/java && cd /opt/java && sudo chown -R circleci:circleci .
+            curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
+            sudo ln -s /opt/java/zulu*/ /opt/java8
+      - run:
+          command: ./scripts/circle-ci/run-circle-tests.sh 3
+          no_output_timeout: 900
+      - run: ./scripts/circle-ci/ensure-repo-clean.sh
+      - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
+      - run:
+          command: find . -type f -regex ".*/build/test-results/TEST-.*\.xml" -exec cp {} --parents $CIRCLE_TEST_REPORTS \;
+          when: always
+      - store_test_results:
+          path: /home/circleci/junit # Circle doesn't do substitution in this path
+      - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
+      - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
+      - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - store_artifacts:
+          path: /home/circleci/artifacts
+      - persist_to_workspace:
+          root: .
+          paths: [ . ]
+
+  test4:
+    machine:
+      image: ubuntu-2004:202111-02
+    resource_class: xlarge
+    environment:
+      GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
+      JAVA_HOME: /opt/java8
+      _JAVA_OPTIONS: "-XX:ActiveProcessorCount=8 -Xmx8g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
+      CIRCLE_TEST_REPORTS: /home/circleci/junit
+      CIRCLE_ARTIFACTS: /home/circleci/artifacts
+
+    steps:
+      - attach_workspace: { at: . }
+      - restore_cache:
+          key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
+      - restore_cache:
+          key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
+      - run: mkdir -p $CIRCLE_ARTIFACTS
+      - run:
+          command: ./scripts/circle-ci/pull-all-images.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/track-memory-usage.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/monitor-all-processes.sh
+          background: true
+      - run:
+          name: Install Java
+          command: |
+            sudo mkdir -p /opt/java && cd /opt/java && sudo chown -R circleci:circleci .
+            curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
+            sudo ln -s /opt/java/zulu*/ /opt/java8
+      - run:
+          command: ./scripts/circle-ci/run-circle-tests.sh 4
+          no_output_timeout: 900
+      - run: ./scripts/circle-ci/ensure-repo-clean.sh
+      - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
+      - run:
+          command: find . -type f -regex ".*/build/test-results/TEST-.*\.xml" -exec cp {} --parents $CIRCLE_TEST_REPORTS \;
+          when: always
+      - store_test_results:
+          path: /home/circleci/junit # Circle doesn't do substitution in this path
+      - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
+      - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
+      - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - store_artifacts:
+          path: /home/circleci/artifacts
+      - persist_to_workspace:
+          root: .
+          paths: [ . ]
+  test5:
+    machine:
+      image: ubuntu-2004:202111-02
+    resource_class: xlarge
+    environment:
+      GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
+      JAVA_HOME: /opt/java8
+      _JAVA_OPTIONS: "-XX:ActiveProcessorCount=8 -Xmx8g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
+      CIRCLE_TEST_REPORTS: /home/circleci/junit
+      CIRCLE_ARTIFACTS: /home/circleci/artifacts
+
+    steps:
+      - attach_workspace: { at: . }
+      - restore_cache:
+          key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
+      - restore_cache:
+          key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
+      - run: mkdir -p $CIRCLE_ARTIFACTS
+      - run:
+          command: ./scripts/circle-ci/pull-all-images.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/track-memory-usage.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/monitor-all-processes.sh
+          background: true
+      - run:
+          name: Install Java
+          command: |
+            sudo mkdir -p /opt/java && cd /opt/java && sudo chown -R circleci:circleci .
+            curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
+            sudo ln -s /opt/java/zulu*/ /opt/java8
+      - run:
+          command: ./scripts/circle-ci/run-circle-tests.sh 5
+          no_output_timeout: 900
+      - run: ./scripts/circle-ci/ensure-repo-clean.sh
+      - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
+      - run:
+          command: find . -type f -regex ".*/build/test-results/TEST-.*\.xml" -exec cp {} --parents $CIRCLE_TEST_REPORTS \;
+          when: always
+      - store_test_results:
+          path: /home/circleci/junit # Circle doesn't do substitution in this path
+      - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
+      - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
+      - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - store_artifacts:
+          path: /home/circleci/artifacts
+      - persist_to_workspace:
+          root: .
+          paths: [ . ]
+  test6:
+    machine:
+      image: ubuntu-2004:202111-02
+    resource_class: xlarge
+    environment:
+      GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
+      JAVA_HOME: /opt/java8
+      _JAVA_OPTIONS: "-XX:ActiveProcessorCount=8 -Xmx8g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
+      CIRCLE_TEST_REPORTS: /home/circleci/junit
+      CIRCLE_ARTIFACTS: /home/circleci/artifacts
+
+    steps:
+      - attach_workspace: { at: . }
+      - restore_cache:
+          key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
+      - restore_cache:
+          key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
+      - run: mkdir -p $CIRCLE_ARTIFACTS
+      - run:
+          command: ./scripts/circle-ci/pull-all-images.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/track-memory-usage.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/monitor-all-processes.sh
+          background: true
+      - run:
+          name: Install Java
+          command: |
+            sudo mkdir -p /opt/java && cd /opt/java && sudo chown -R circleci:circleci .
+            curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
+            sudo ln -s /opt/java/zulu*/ /opt/java8
+      - run:
+          command: ./scripts/circle-ci/run-circle-tests.sh 6
+          no_output_timeout: 900
+      - run: ./scripts/circle-ci/ensure-repo-clean.sh
+      - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
+      - run:
+          command: find . -type f -regex ".*/build/test-results/TEST-.*\.xml" -exec cp {} --parents $CIRCLE_TEST_REPORTS \;
+          when: always
+      - store_test_results:
+          path: /home/circleci/junit # Circle doesn't do substitution in this path
+      - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
+      - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
+      - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - store_artifacts:
+          path: /home/circleci/artifacts
+      - persist_to_workspace:
+          root: .
+          paths: [ . ]
+  test7:
+    machine:
+      image: ubuntu-2004:202111-02
+    resource_class: xlarge
+    environment:
+      GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
+      JAVA_HOME: /opt/java8
+      _JAVA_OPTIONS: "-XX:ActiveProcessorCount=8 -Xmx8g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
+      CIRCLE_TEST_REPORTS: /home/circleci/junit
+      CIRCLE_ARTIFACTS: /home/circleci/artifacts
+
+    steps:
+      - attach_workspace: { at: . }
+      - restore_cache:
+          key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
+      - restore_cache:
+          key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
+      - run: mkdir -p $CIRCLE_ARTIFACTS
+      - run:
+          command: ./scripts/circle-ci/pull-all-images.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/track-memory-usage.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/monitor-all-processes.sh
+          background: true
+      - run:
+          name: Install Java
+          command: |
+            sudo mkdir -p /opt/java && cd /opt/java && sudo chown -R circleci:circleci .
+            curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
+            sudo ln -s /opt/java/zulu*/ /opt/java8
+      - run:
+          command: ./scripts/circle-ci/run-circle-tests.sh 7
+          no_output_timeout: 900
+      - run: ./scripts/circle-ci/ensure-repo-clean.sh
+      - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
+      - run:
+          command: find . -type f -regex ".*/build/test-results/TEST-.*\.xml" -exec cp {} --parents $CIRCLE_TEST_REPORTS \;
+          when: always
+      - store_test_results:
+          path: /home/circleci/junit # Circle doesn't do substitution in this path
+      - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
+      - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
+      - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - store_artifacts:
+          path: /home/circleci/artifacts
+      - persist_to_workspace:
+          root: .
+          paths: [ . ]
+  test8:
+    machine:
+      image: ubuntu-2004:202111-02
+    resource_class: xlarge
+    environment:
+      GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
+      JAVA_HOME: /opt/java8
+      _JAVA_OPTIONS: "-XX:ActiveProcessorCount=8 -Xmx8g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
+      CIRCLE_TEST_REPORTS: /home/circleci/junit
+      CIRCLE_ARTIFACTS: /home/circleci/artifacts
+
+    steps:
+      - attach_workspace: { at: . }
+      - restore_cache:
+          key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
+      - restore_cache:
+          key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
+      - run: mkdir -p $CIRCLE_ARTIFACTS
+      - run:
+          command: ./scripts/circle-ci/pull-all-images.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/track-memory-usage.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/monitor-all-processes.sh
+          background: true
+      - run:
+          name: Install Java
+          command: |
+            sudo mkdir -p /opt/java && cd /opt/java && sudo chown -R circleci:circleci .
+            curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
+            sudo ln -s /opt/java/zulu*/ /opt/java8
+      - run:
+          command: ./scripts/circle-ci/run-circle-tests.sh 8
+          no_output_timeout: 900
+      - run: ./scripts/circle-ci/ensure-repo-clean.sh
+      - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
+      - run:
+          command: find . -type f -regex ".*/build/test-results/TEST-.*\.xml" -exec cp {} --parents $CIRCLE_TEST_REPORTS \;
+          when: always
+      - store_test_results:
+          path: /home/circleci/junit # Circle doesn't do substitution in this path
+      - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
+      - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
+      - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - store_artifacts:
+          path: /home/circleci/artifacts
+      - persist_to_workspace:
+          root: .
+          paths: [ . ]
+  test9:
+    machine:
+      image: ubuntu-2004:202111-02
+    resource_class: xlarge
+    environment:
+      GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
+      JAVA_HOME: /opt/java8
+      _JAVA_OPTIONS: "-XX:ActiveProcessorCount=8 -Xmx8g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
+      CIRCLE_TEST_REPORTS: /home/circleci/junit
+      CIRCLE_ARTIFACTS: /home/circleci/artifacts
+
+    steps:
+      - attach_workspace: { at: . }
+      - restore_cache:
+          key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
+      - restore_cache:
+          key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
+      - run: mkdir -p $CIRCLE_ARTIFACTS
+      - run:
+          command: ./scripts/circle-ci/pull-all-images.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/track-memory-usage.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/monitor-all-processes.sh
+          background: true
+      - run:
+          name: Install Java
+          command: |
+            sudo mkdir -p /opt/java && cd /opt/java && sudo chown -R circleci:circleci .
+            curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
+            sudo ln -s /opt/java/zulu*/ /opt/java8
+      - run:
+          command: ./scripts/circle-ci/run-circle-tests.sh 9
+          no_output_timeout: 900
+      - run: ./scripts/circle-ci/ensure-repo-clean.sh
+      - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
+      - run:
+          command: find . -type f -regex ".*/build/test-results/TEST-.*\.xml" -exec cp {} --parents $CIRCLE_TEST_REPORTS \;
+          when: always
+      - store_test_results:
+          path: /home/circleci/junit # Circle doesn't do substitution in this path
+      - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
+      - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
+      - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - store_artifacts:
+          path: /home/circleci/artifacts
+      - persist_to_workspace:
+          root: .
+          paths: [ . ]
+  test10:
+    machine:
+      image: ubuntu-2004:202111-02
+    resource_class: xlarge
+    environment:
+      GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
+      JAVA_HOME: /opt/java8
+      _JAVA_OPTIONS: "-XX:ActiveProcessorCount=8 -Xmx8g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
+      CIRCLE_TEST_REPORTS: /home/circleci/junit
+      CIRCLE_ARTIFACTS: /home/circleci/artifacts
+
+    steps:
+      - attach_workspace: { at: . }
+      - restore_cache:
+          key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
+      - restore_cache:
+          key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
+      - run: mkdir -p $CIRCLE_ARTIFACTS
+      - run:
+          command: ./scripts/circle-ci/pull-all-images.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/track-memory-usage.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/monitor-all-processes.sh
+          background: true
+      - run:
+          name: Install Java
+          command: |
+            sudo mkdir -p /opt/java && cd /opt/java && sudo chown -R circleci:circleci .
+            curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
+            sudo ln -s /opt/java/zulu*/ /opt/java8
+      - run:
+          command: ./scripts/circle-ci/run-circle-tests.sh 10
+          no_output_timeout: 900
+      - run: ./scripts/circle-ci/ensure-repo-clean.sh
+      - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
+      - run:
+          command: find . -type f -regex ".*/build/test-results/TEST-.*\.xml" -exec cp {} --parents $CIRCLE_TEST_REPORTS \;
+          when: always
+      - store_test_results:
+          path: /home/circleci/junit # Circle doesn't do substitution in this path
+      - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
+      - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
+      - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - store_artifacts:
+          path: /home/circleci/artifacts
+      - persist_to_workspace:
+          root: .
+          paths: [ . ]
+  test11:
+    machine:
+      image: ubuntu-2004:202111-02
+    resource_class: xlarge
+    environment:
+      GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
+      JAVA_HOME: /opt/java8
+      _JAVA_OPTIONS: "-XX:ActiveProcessorCount=8 -Xmx8g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
+      CIRCLE_TEST_REPORTS: /home/circleci/junit
+      CIRCLE_ARTIFACTS: /home/circleci/artifacts
+
+    steps:
+      - attach_workspace: { at: . }
+      - restore_cache:
+          key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
+      - restore_cache:
+          key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
+      - run: mkdir -p $CIRCLE_ARTIFACTS
+      - run:
+          command: ./scripts/circle-ci/pull-all-images.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/track-memory-usage.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/monitor-all-processes.sh
+          background: true
+      - run:
+          name: Install Java
+          command: |
+            sudo mkdir -p /opt/java && cd /opt/java && sudo chown -R circleci:circleci .
+            curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
+            sudo ln -s /opt/java/zulu*/ /opt/java8
+      - run:
+          command: ./scripts/circle-ci/run-circle-tests.sh 11
+          no_output_timeout: 900
+      - run: ./scripts/circle-ci/ensure-repo-clean.sh
+      - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
+      - run:
+          command: find . -type f -regex ".*/build/test-results/TEST-.*\.xml" -exec cp {} --parents $CIRCLE_TEST_REPORTS \;
+          when: always
+      - store_test_results:
+          path: /home/circleci/junit # Circle doesn't do substitution in this path
+      - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
+      - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
+      - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - store_artifacts:
+          path: /home/circleci/artifacts
+      - persist_to_workspace:
+          root: .
+          paths: [ . ]
+  test12:
+    machine:
+      image: ubuntu-2004:202111-02
+    resource_class: xlarge
+    environment:
+      GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
+      JAVA_HOME: /opt/java8
+      _JAVA_OPTIONS: "-XX:ActiveProcessorCount=8 -Xmx8g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
+      CIRCLE_TEST_REPORTS: /home/circleci/junit
+      CIRCLE_ARTIFACTS: /home/circleci/artifacts
+
+    steps:
+      - attach_workspace: { at: . }
+      - restore_cache:
+          key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
+      - restore_cache:
+          key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
+      - run: mkdir -p $CIRCLE_ARTIFACTS
+      - run:
+          command: ./scripts/circle-ci/pull-all-images.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/track-memory-usage.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/monitor-all-processes.sh
+          background: true
+      - run:
+          name: Install Java
+          command: |
+            sudo mkdir -p /opt/java && cd /opt/java && sudo chown -R circleci:circleci .
+            curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
+            sudo ln -s /opt/java/zulu*/ /opt/java8
+      - run:
+          command: ./scripts/circle-ci/run-circle-tests.sh 12
+          no_output_timeout: 900
+      - run: ./scripts/circle-ci/ensure-repo-clean.sh
+      - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
+      - run:
+          command: find . -type f -regex ".*/build/test-results/TEST-.*\.xml" -exec cp {} --parents $CIRCLE_TEST_REPORTS \;
+          when: always
+      - store_test_results:
+          path: /home/circleci/junit # Circle doesn't do substitution in this path
+      - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
+      - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
+      - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - store_artifacts:
+          path: /home/circleci/artifacts
+      - persist_to_workspace:
+          root: .
+          paths: [ . ]
+  test13:
+    machine:
+      image: ubuntu-2004:202111-02
+    resource_class: xlarge
+    environment:
+      GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
+      JAVA_HOME: /opt/java8
+      _JAVA_OPTIONS: "-XX:ActiveProcessorCount=8 -Xmx8g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
+      CIRCLE_TEST_REPORTS: /home/circleci/junit
+      CIRCLE_ARTIFACTS: /home/circleci/artifacts
+
+    steps:
+      - attach_workspace: { at: . }
+      - restore_cache:
+          key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
+      - restore_cache:
+          key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
+      - run: mkdir -p $CIRCLE_ARTIFACTS
+      - run:
+          command: ./scripts/circle-ci/pull-all-images.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/track-memory-usage.sh
+          background: true
+      - run:
+          command: ./scripts/circle-ci/monitor-all-processes.sh
+          background: true
       - run:
-          name: Fail Fast
-          when: on_fail
+          name: Install Java
           command: |
-            echo "Canceling workflow as a step resulted in failure"
-            curl -X POST --header "Content-Type: application/json" "https://circleci.com/api/v2/workflow/${CIRCLE_WORKFLOW_ID}/cancel?circle-token=${CIRCLE_TOKEN}"
+            sudo mkdir -p /opt/java && cd /opt/java && sudo chown -R circleci:circleci .
+            curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
+            sudo ln -s /opt/java/zulu*/ /opt/java8
+      - run:
+          command: ./scripts/circle-ci/run-circle-tests.sh 13
+          no_output_timeout: 900
+      - run: ./scripts/circle-ci/ensure-repo-clean.sh
+      - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
+      - run:
+          command: find . -type f -regex ".*/build/test-results/TEST-.*\.xml" -exec cp {} --parents $CIRCLE_TEST_REPORTS \;
+          when: always
+      - store_test_results:
+          path: /home/circleci/junit # Circle doesn't do substitution in this path
+      - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
+      - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
+      - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - store_artifacts:
+          path: /home/circleci/artifacts
+      - persist_to_workspace:
+          root: .
+          paths: [ . ]
 
   trial-publish:
     docker:
@@ -145,11 +800,73 @@ workflows:
           filters:
             tags:
               only: /.*/
-      - test:
+      - test0:
+          requires: [build]
+          filters:
+            tags:
+              only: /.*/
+      - test1:
+          requires: [build]
+          filters:
+            tags:
+              only: /.*/
+      - test2:
+          requires: [build]
+          filters:
+            tags:
+              only: /.*/
+      - test3:
+          requires: [build]
+          filters:
+            tags:
+              only: /.*/
+      - test4:
+          requires: [build]
+          filters:
+            tags:
+              only: /.*/
+      - test5:
+          requires: [build]
+          filters:
+            tags:
+              only: /.*/
+      - test6:
+          requires: [build]
+          filters:
+            tags:
+              only: /.*/
+      - test7:
+          requires: [build]
+          filters:
+            tags:
+              only: /.*/
+      - test8:
+          requires: [build]
+          filters:
+            tags:
+              only: /.*/
+      - test9:
+          requires: [build]
+          filters:
+            tags:
+              only: /.*/
+      - test10:
+          requires: [build]
+          filters:
+            tags:
+              only: /.*/
+      - test11:
+          requires: [build]
+          filters:
+            tags:
+              only: /.*/
+      - test12:
+          requires: [build]
+          filters:
+            tags:
+              only: /.*/
+      - test13:
           requires: [build]
-          matrix:
-            parameters:
-              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
           filters:
             tags:
               only: /.*/
@@ -159,7 +876,7 @@ workflows:
             branches:
               ignore: [develop]
       - deploy:
-          requires: [build, test]
+          requires: [build, test0, test1, test2, test3, test4, test5, test6, test7, test8, test9, test10, test11, test12, test13]
           filters:
             branches:
               only: developuau>     (45c36ae5f1012b136b0e91a58a6cca47f92f7c5a}(sha(45c36ae5f1012b136b0e91a58a6cca47f92f7c5anode_idEC_kwDOAjP5fdoAKDQ1YzM2YWU1ZjEwMTJiMTM2YjBlOTFhNThhNmNjYTQ3ZjkyZjdjNWEcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-03-17T10:16:27Zu	committer}(j GitHubj noreply@github.comj 2023-03-17T10:16:27ZumessageAdd workload server interfaces to help modularity (#6471)

Adds interfaces to the workload server which makes integration with dropwizard or other server frameworks.tree}(j (73005ee38bc54c1ccf8f3eb9dd79420d14bfbca1url`https://api.github.com/repos/palantir/atlasdb/git/trees/73005ee38bc54c1ccf8f3eb9dd79420d14bfbca1uj	 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/45c36ae5f1012b136b0e91a58a6cca47f92f7c5a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkFD37CRBK7hj4Ov3rIwAAFqUIAKi/TlddnDCl3fd7KwNG2mvU
NybvZ0njTkCVVaHOsLCQ8AMFRGAW02GLg3wQVTOvfnIU2xBWVKhfeCFgehkYshE7
G0DJuAF7Ok6XdTv68QENH3Il4xoq6MYPIF4a8t952gZzFkFOFdL0cb3x3eV0C5N8
Lnb2YNo+sdF+xIgYHFI8hkPloUEyRaWzkWnHhtENDZUxqYZMVi8QdUt5Tg8UwOj5
lu3Zn8o1VOwInWuutAET516p5cCsF1lAQf0SKN5GH3h3JRdbuZ4tGp+lYfLmxeeK
ICCa2Zl8kEej5vYmRSaTg4wLZlbn23wxZfUGyehivNQusaAERni2UDaT1FoXQGs=
=puTt
-----END PGP SIGNATURE-----
payloadXx  tree 73005ee38bc54c1ccf8f3eb9dd79420d14bfbca1
parent 82c974208a8c9b802173e8cfe1ee01a349c12e2c
author Sam-Kramer <sam.c.kramer@gmail.com> 1679048187 +0000
committer GitHub <noreply@github.com> 1679048187 +0000

Add workload server interfaces to help modularity (#6471)

Adds interfaces to the workload server which makes integration with dropwizard or other server frameworks.
uuj	 ^https://api.github.com/repos/palantir/atlasdb/commits/45c36ae5f1012b136b0e91a58a6cca47f92f7c5ahtml_urlShttps://github.com/palantir/atlasdb/commit/45c36ae5f1012b136b0e91a58a6cca47f92f7c5acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/45c36ae5f1012b136b0e91a58a6cca47f92f7c5a/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j	 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j" h5j	 %https://api.github.com/users/web-flowj https://github.com/web-flowj% /https://api.github.com/users/web-flow/followersj' <https://api.github.com/users/web-flow/following{/other_user}j) 5https://api.github.com/users/web-flow/gists{/gist_id}j+ <https://api.github.com/users/web-flow/starred{/owner}{/repo}j- 3https://api.github.com/users/web-flow/subscriptionsj/ *https://api.github.com/users/web-flow/orgsj1 +https://api.github.com/users/web-flow/reposj3 6https://api.github.com/users/web-flow/events{/privacy}j5 5https://api.github.com/users/web-flow/received_eventsj7 Userj9 uparents]}(j (82c974208a8c9b802173e8cfe1ee01a349c12e2cj	 ^https://api.github.com/repos/palantir/atlasdb/commits/82c974208a8c9b802173e8cfe1ee01a349c12e2cj Shttps://github.com/palantir/atlasdb/commit/82c974208a8c9b802173e8cfe1ee01a349c12e2cuastats}(totalK	additionsK	deletionsK ufiles](}(j (e7305ade35c915bb53a9c53289a6a434cfb626dbfilenamehatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/InvariantReporter.javastatusaddedjS K#jT K changesK#blob_urlhttps://github.com/palantir/atlasdb/blob/45c36ae5f1012b136b0e91a58a6cca47f92f7c5a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariantReporter.javaraw_urlhttps://github.com/palantir/atlasdb/raw/45c36ae5f1012b136b0e91a58a6cca47f92f7c5a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariantReporter.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariantReporter.java?ref=45c36ae5f1012b136b0e91a58a6cca47f92f7c5apatchX  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.function.Consumer;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvariantReporter<ViolationsT> {
+
+    @Value.Parameter
+    Invariant<ViolationsT> invariant();
+
+    @Value.Parameter
+    Consumer<ViolationsT> consumer();
+
+    default void report(WorkflowHistory history) {
+        invariant().accept(history, consumer());
+    }
+}u}(j (74577176782254379012e1999cadb8c1ea4b8edcjY ]atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/IndexTable.javaj[ addedjS K,jT K j] K,j^ https://github.com/palantir/atlasdb/blob/45c36ae5f1012b136b0e91a58a6cca47f92f7c5a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTable.javaj` https://github.com/palantir/atlasdb/raw/45c36ae5f1012b136b0e91a58a6cca47f92f7c5a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTable.javajb https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTable.java?ref=45c36ae5f1012b136b0e91a58a6cca47f92f7c5ajd X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface IndexTable {
+
+    @Value.Parameter
+    String indexTableName();
+
+    @Value.Parameter
+    String primaryTableName();
+
+    @Value.Check
+    default void checkNameAndPrimaryTableAreNotEqual() {
+        Preconditions.checkArgument(
+                !indexTableName().equalsIgnoreCase(primaryTableName()),
+                "Index table name and primary table name are identical.",
+                SafeArg.of("name", indexTableName()),
+                SafeArg.of("primaryTable", primaryTableName()));
+    }
+
+    static ImmutableIndexTable.Builder builder() {
+        return ImmutableIndexTable.builder();
+    }
+}u}(j (360fb590830275fb2bcc053744705e446a7931fajY aatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/IsolationLevel.javaj[ addedjS KjT K j] Kj^ https://github.com/palantir/atlasdb/blob/45c36ae5f1012b136b0e91a58a6cca47f92f7c5a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIsolationLevel.javaj` https://github.com/palantir/atlasdb/raw/45c36ae5f1012b136b0e91a58a6cca47f92f7c5a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIsolationLevel.javajb https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIsolationLevel.java?ref=45c36ae5f1012b136b0e91a58a6cca47f92f7c5ajd X  @@ -0,0 +1,23 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+public enum IsolationLevel {
+    SERIALIZABLE,
+    SNAPSHOT,
+    NONE;
+}u}(j (388c429b93e386dccfaa31596a889119c7973aafjY jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStoreFactory.javaj[ addedjS KjT K j] Kj^ https://github.com/palantir/atlasdb/blob/45c36ae5f1012b136b0e91a58a6cca47f92f7c5a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaj` https://github.com/palantir/atlasdb/raw/45c36ae5f1012b136b0e91a58a6cca47f92f7c5a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javajb https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.java?ref=45c36ae5f1012b136b0e91a58a6cca47f92f7c5ajd X  @@ -0,0 +1,27 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import java.util.Map;
+import java.util.Set;
+
+/**
+ * Creates transaction stores of a certain type which are bounded to the provided tables/indexes.
+ */
+public interface TransactionStoreFactory {
+    TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
+}u}(j (c89254863db9843a151e02ce80e4be268d1493e5jY datlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowRunner.javaj[ addedjS KjT K j] Kj^ https://github.com/palantir/atlasdb/blob/45c36ae5f1012b136b0e91a58a6cca47f92f7c5a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowRunner.javaj` https://github.com/palantir/atlasdb/raw/45c36ae5f1012b136b0e91a58a6cca47f92f7c5a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowRunner.javajb https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowRunner.java?ref=45c36ae5f1012b136b0e91a58a6cca47f92f7c5ajd X  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import java.util.List;
+
+/**
+ * Run the provided workflow and execute the provided invariant reporters.
+ *
+ * The idea of this class is that long-term we will want to have multiple ways to run/execute workflows,
+ * rather than biasing towards the present case (just once).
+ */
+public interface WorkflowRunner<WorkflowType extends Workflow> {
+    void run(WorkflowType workflow, List<InvariantReporter<?>> invariantReporters);
+}u}(j (e29feefdc7506942a05d1a7938b0903280f26161jY aatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/store/IndexTableTest.javaj[ addedjS KAjT K j] KAj^ https://github.com/palantir/atlasdb/blob/45c36ae5f1012b136b0e91a58a6cca47f92f7c5a/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTableTest.javaj` https://github.com/palantir/atlasdb/raw/45c36ae5f1012b136b0e91a58a6cca47f92f7c5a/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTableTest.javajb https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTableTest.java?ref=45c36ae5f1012b136b0e91a58a6cca47f92f7c5ajd X
  @@ -0,0 +1,65 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.palantir.logsafe.SafeArg;
+import java.util.Locale;
+import org.junit.Test;
+
+public final class IndexTableTest {
+
+    private static final String TABLE_1 = "foo";
+    private static final String TABLE_2 = "bar";
+
+    @Test
+    public void doesNotThrowWhenNamesAreDifferent() {
+        assertThatCode(() -> createIndexTable("foo", "bar")).doesNotThrowAnyException();
+    }
+
+    @Test
+    public void indexTableNameIsFirstArgumentAndPrimaryTableIsSecondArgument() {
+        IndexTable indexTable = createIndexTable(TABLE_1, TABLE_2);
+        assertThat(indexTable.indexTableName()).isEqualTo(TABLE_1);
+        assertThat(indexTable.primaryTableName()).isEqualTo(TABLE_2);
+    }
+
+    @Test
+    public void throwsWhenIndexNameIsTheSameAsPrimary() {
+        assertThatLoggableExceptionThrownBy(() -> createIndexTable(TABLE_1, TABLE_1))
+                .hasMessageContaining("Index table name and primary table name are identical.")
+                .hasExactlyArgs(SafeArg.of("name", TABLE_1), SafeArg.of("primaryTable", TABLE_1));
+    }
+
+    @Test
+    public void throwsWhenIndexNameIsTheSameAsPrimaryIgnoresCase() {
+        assertThatLoggableExceptionThrownBy(() -> createIndexTable(TABLE_1, TABLE_1.toUpperCase(Locale.ROOT)))
+                .hasMessageContaining("Index table name and primary table name are identical.")
+                .hasExactlyArgs(
+                        SafeArg.of("name", TABLE_1), SafeArg.of("primaryTable", TABLE_1.toUpperCase(Locale.ROOT)));
+    }
+
+    private IndexTable createIndexTable(String indexTableName, String primaryTableName) {
+        return IndexTable.builder()
+                .primaryTableName(primaryTableName)
+                .indexTableName(indexTableName)
+                .build();
+    }
+}u}(j (146eafaef341f53b563527d249d44fac28f8c6d9jY $changelog/@unreleased/pr-6471.v2.ymlj[ addedjS KjT K j] Kj^ |https://github.com/palantir/atlasdb/blob/45c36ae5f1012b136b0e91a58a6cca47f92f7c5a/changelog%2F%40unreleased%2Fpr-6471.v2.ymlj` {https://github.com/palantir/atlasdb/raw/45c36ae5f1012b136b0e91a58a6cca47f92f7c5a/changelog%2F%40unreleased%2Fpr-6471.v2.ymljb https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6471.v2.yml?ref=45c36ae5f1012b136b0e91a58a6cca47f92f7c5ajd @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Adds interfaces to the workload server which makes integration with
+    dropwizard or other server frameworks.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6471ueu(5014396ec71e1e9f40d074fa178c2c9c8a817ab3}(sha(5014396ec71e1e9f40d074fa178c2c9c8a817ab3node_idEC_kwDOAjP5fdoAKDUwMTQzOTZlYzcxZTFlOWY0MGQwNzRmYTE3OGMyYzljOGE4MTdhYjMcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-07-21T02:04:33Zu	committer}(j svc-excavator-botj svc-excavator-bot@palantir.comj 2023-07-21T02:04:33Zumessage8Excavator:  Upgrade Jackson to the latest stable releasetree}(j (101c5e415edc67b77bbc377160dbbeea84de5d00url`https://api.github.com/repos/palantir/atlasdb/git/trees/101c5e415edc67b77bbc377160dbbeea84de5d00uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5014396ec71e1e9f40d074fa178c2c9c8a817ab3
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmS557EJEMmvEkpISILgAAC85AEA2+6Wl1r374TEyH0haQ7sBwHf
CUPIqqQxGig6dq+FxakA+QE6tSeUzJbGMPJZS8nRNtvXTPfS3CL5RiNF6URmkmY6
=nZsE
-----END PGP SIGNATURE-----
payloadX0  tree 101c5e415edc67b77bbc377160dbbeea84de5d00
parent 4e050a9cb4f8f2b45b8b700df082f442d2fec694
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1689905073 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1689905073 +0000

Excavator:  Upgrade Jackson to the latest stable releaseuuj ^https://api.github.com/repos/palantir/atlasdb/commits/5014396ec71e1e9f40d074fa178c2c9c8a817ab3html_urlShttps://github.com/palantir/atlasdb/commit/5014396ec71e1e9f40d074fa178c2c9c8a817ab3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5014396ec71e1e9f40d074fa178c2c9c8a817ab3/commentsj }(loginsvc-excavator-botidJj MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j .https://api.github.com/users/svc-excavator-botj $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj }(jè svc-excavator-botjŨ Jj MDQ6VXNlcjMzMjY2MzY4jǨ 4https://avatars.githubusercontent.com/u/33266368?v=4jɨ h5j .https://api.github.com/users/svc-excavator-botj $https://github.com/svc-excavator-botj̨ 8https://api.github.com/users/svc-excavator-bot/followersjΨ Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}jШ >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}jҨ Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}jԨ <https://api.github.com/users/svc-excavator-bot/subscriptionsj֨ 3https://api.github.com/users/svc-excavator-bot/orgsjب 4https://api.github.com/users/svc-excavator-bot/reposjڨ ?https://api.github.com/users/svc-excavator-bot/events{/privacy}jܨ >https://api.github.com/users/svc-excavator-bot/received_eventsjި Userj uparents]}(j (4e050a9cb4f8f2b45b8b700df082f442d2fec694j ^https://api.github.com/repos/palantir/atlasdb/commits/4e050a9cb4f8f2b45b8b700df082f442d2fec694j Shttps://github.com/palantir/atlasdb/commit/4e050a9cb4f8f2b45b8b700df082f442d2fec694uastats}(totalK,	additionsK	deletionsKufiles](}(j (557e7f7d5c436128704ff021554784072d44c41bfilename
versions.lockstatusmodifiedj Kj KchangesK(blob_url_https://github.com/palantir/atlasdb/blob/5014396ec71e1e9f40d074fa178c2c9c8a817ab3/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/5014396ec71e1e9f40d074fa178c2c9c8a817ab3/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=5014396ec71e1e9f40d074fa178c2c9c8a817ab3patchX  @@ -8,23 +8,23 @@ com.boundary:high-scale-lib:1.0.6 (2 constraints: 9d14d4a0)
 com.clearspring.analytics:stream:2.5.2 (1 constraints: 970f7788)
 com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
-com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c38132bb)
-com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bbb5dd72)
-com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 06bad036)
-com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e233e000)
-com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7f1c9ea4)
-com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2 (4 constraints: 2244332b)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 343f76b0)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6c30915e)
-com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 322bf7af)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6c30915e)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 41197bbb)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.2 (2 constraints: 251d9309)
-com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9b1c99a6)
-com.fasterxml.jackson.module:jackson-module-blackbird:2.14.2 (1 constraints: b40e625e)
-com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2 (1 constraints: b40e625e)
+com.fasterxml.jackson.core:jackson-annotations:2.15.2 (24 constraints: c8810fce)
+com.fasterxml.jackson.core:jackson-core:2.15.2 (22 constraints: c9b52a9f)
+com.fasterxml.jackson.core:jackson-databind:2.15.2 (37 constraints: 13ba1a84)
+com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.15.2 (2 constraints: e3333101)
+com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.15.2 (1 constraints: 7f1c9ea4)
+com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.15.2 (4 constraints: 2344e62b)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.15.2 (4 constraints: 353f1bb1)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.2 (3 constraints: 6d300c5f)
+com.fasterxml.jackson.datatype:jackson-datatype-joda:2.15.2 (2 constraints: 322bf7af)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.2 (3 constraints: 6d300c5f)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.15.2 (2 constraints: dd2ecb69)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.15.2 (1 constraints: 41197bbb)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.15.2 (2 constraints: 251d9309)
+com.fasterxml.jackson.module:jackson-module-afterburner:2.15.2 (1 constraints: 9b1c99a6)
+com.fasterxml.jackson.module:jackson-module-blackbird:2.15.2 (1 constraints: b40e625e)
+com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.15.2 (2 constraints: dd2ecb69)
+com.fasterxml.jackson.module:jackson-module-parameter-names:2.15.2 (1 constraints: b40e625e)
 com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 2dce2620)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
@@ -49,7 +49,7 @@ com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f994935f)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
-com.google.guava:guava:32.1.1-jre (48 constraints: 03383c24)
+com.google.guava:guava:32.1.1-jre (48 constraints: d839700b)
 com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava (1 constraints: bd17c918)
 com.google.j2objc:j2objc-annotations:2.8 (1 constraints: be09f5a0)
 com.google.protobuf:protobuf-java:3.21.9 (1 constraints: 4105453b)
@@ -198,7 +198,7 @@ jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
 jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (17 constraints: 6f283f6d)
 jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
-joda-time:joda-time:2.12.5 (6 constraints: 845987f4)
+joda-time:joda-time:2.12.5 (6 constraints: b1596f2f)
 junit:junit:4.13.2 (8 constraints: 5a9c5baf)
 net.bytebuddy:byte-buddy:1.14.4 (3 constraints: 4025da91)
 net.bytebuddy:byte-buddy-agent:1.14.4 (1 constraints: 440b42de)
@@ -314,7 +314,7 @@ org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
 org.wildfly.common:wildfly-common:1.6.0.Final (4 constraints: 3f390b3d)
 org.xerial:sqlite-jdbc:3.42.0.0 (1 constraints: 99054946)
 org.xerial.snappy:snappy-java:1.1.10.1 (2 constraints: 891546f4)
-org.yaml:snakeyaml:1.33 (5 constraints: 0a4c5570)
+org.yaml:snakeyaml:2.0 (5 constraints: d54b952a)
 
 [Test dependencies]
 cglib:cglib:3.2.8 (1 constraints: 1f0a62b5)u}(j (710fc38347b9c50a763a52b2ae24d32480b24db6j  versions.propsj modifiedj Kj Kj Kj `https://github.com/palantir/atlasdb/blob/5014396ec71e1e9f40d074fa178c2c9c8a817ab3/versions.propsj _https://github.com/palantir/atlasdb/raw/5014396ec71e1e9f40d074fa178c2c9c8a817ab3/versions.propsj	 rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=5014396ec71e1e9f40d074fa178c2c9c8a817ab3j X  @@ -1,7 +1,7 @@
 com.boundary:high-scale-lib = 1.0.6
 com.ea.agentloader:ea-agent-loader = 1.0.3
-com.fasterxml.jackson.*:* = 2.14.2
-com.fasterxml.jackson.core:jackson-databind = 2.14.2
+com.fasterxml.jackson.*:* = 2.15.2
+com.fasterxml.jackson.core:jackson-databind = 2.15.2
 com.github.ben-manes.caffeine:caffeine = 3.1.5
 com.github.peterwippermann.junit4:parameterized-suite = 1.1.0
 com.github.rholder:guava-retrying = 2.0.0ueu(0a5ff0ab72c437a7949021958315c74853e0c5b8}(sha(0a5ff0ab72c437a7949021958315c74853e0c5b8node_idEC_kwDOAjP5fdoAKDBhNWZmMGFiNzJjNDM3YTc5NDkwMjE5NTgzMTVjNzQ4NTNlMGM1Yjgcommit}(author}(nameLucas Sousa Meirelesemailmeireles31@msn.comdate2023-06-21T14:44:38Zu	committer}(j svc-autoreleasej! -pd-foundry-infrastructure-notify@palantir.comj# 2023-06-21T14:44:38Zumessage"Autorelease 0.878.0-rc2

[skip ci]tree}(j (ee754af9c079b02b06c3b67e7437830e28266c36url`https://api.github.com/repos/palantir/atlasdb/git/trees/ee754af9c079b02b06c3b67e7437830e28266c36uj/ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0a5ff0ab72c437a7949021958315c74853e0c5b8
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmSTDNcACgkQhbrR8ip7mDDFCwD/VXC7Ex3jXgxsimR6Jh9rkClm
Chqzmg8peZmeEVonPakBAMVNZEp4DTRmTZf+YoXmAbpiJdLTdPwoN3sSSnxJD5Ul
=MJFr
-----END PGP SIGNATURE-----
payloadX  tree ee754af9c079b02b06c3b67e7437830e28266c36
parent 81939b058f1461193be2e29e42de511bed37db95
author Lucas Sousa Meireles <meireles31@msn.com> 1687358678 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1687358678 +0000

Autorelease 0.878.0-rc2

[skip ci]uuj/ ^https://api.github.com/repos/palantir/atlasdb/commits/0a5ff0ab72c437a7949021958315c74853e0c5b8html_urlShttps://github.com/palantir/atlasdb/commit/0a5ff0ab72c437a7949021958315c74853e0c5b8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0a5ff0ab72c437a7949021958315c74853e0c5b8/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j/ %https://api.github.com/users/LucasIMEj= https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj% }(jB svc-autoreleasejD J(j MDQ6VXNlcjUxNzE4MzQ2jF 4https://avatars.githubusercontent.com/u/51718346?v=4jH h5j/ ,https://api.github.com/users/svc-autoreleasej= "https://github.com/svc-autoreleasejK 6https://api.github.com/users/svc-autorelease/followersjM Chttps://api.github.com/users/svc-autorelease/following{/other_user}jO <https://api.github.com/users/svc-autorelease/gists{/gist_id}jQ Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jS :https://api.github.com/users/svc-autorelease/subscriptionsjU 1https://api.github.com/users/svc-autorelease/orgsjW 2https://api.github.com/users/svc-autorelease/reposjY =https://api.github.com/users/svc-autorelease/events{/privacy}j[ <https://api.github.com/users/svc-autorelease/received_eventsj] Userj_ uparents]}(j (81939b058f1461193be2e29e42de511bed37db95j/ ^https://api.github.com/repos/palantir/atlasdb/commits/81939b058f1461193be2e29e42de511bed37db95j= Shttps://github.com/palantir/atlasdb/commit/81939b058f1461193be2e29e42de511bed37db95uastats}(totalK 	additionsK 	deletionsK ufiles]u(83b3ee4a718e35a58f0a4aef5e38985693ef63e8}(sha(83b3ee4a718e35a58f0a4aef5e38985693ef63e8node_idEC_kwDOAjP5fdoAKDgzYjNlZTRhNzE4ZTM1YTU4ZjBhNGFlZjVlMzg5ODU2OTNlZjYzZTgcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-14T14:27:26Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-06-14T14:27:26Zumessage!Do not use a getter for isRunningtree}(j (e2d1fdec50005b4c8b7759b8a8acaff8e9e0f2fdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/e2d1fdec50005b4c8b7759b8a8acaff8e9e0f2fduj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/83b3ee4a718e35a58f0a4aef5e38985693ef63e8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSJzk4ACgkQmF9s0kaF
Iw3Lxgf7BZh4vn7W67tw5e4DKGPHkebixSa9EQ75/VS9xwUcHyaRq5ZSSgiFH7re
67rLbRPkxpoQgX9oiFIweheBZlGQdBzLsQyuHPzFoCrUg0Gq7KE1ceqB20ahfYUX
ldG75UiuYrwcZ2qQMpdY6yqbWpscAEUWtRlDV5+2KkleuCBD7B91BmJA2grSpx7D
rHmatnfps8ZEmygG29rxTrLZVsPI/4Qzx8d5nlZKYu2EtS7+CvwGEGN6ie+v/NFc
ykJdif2EdDxJ3XrnkokTxpS78W40bipF3y/EPML8CZtaefd8ypUl888/L6neVUF8
EFRywaK3iU8zn91qu/PjCmHyN4pmFA==
=IMmV
-----END PGP SIGNATURE-----payloadtree e2d1fdec50005b4c8b7759b8a8acaff8e9e0f2fd
parent b3243ff458eba8c62532f6c844d6c5b998d6d869
author Tom Papke <tpapke@palantir.com> 1686752846 +0100
committer Tom Papke <tpapke@palantir.com> 1686752846 +0100

Do not use a getter for isRunning
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/83b3ee4a718e35a58f0a4aef5e38985693ef63e8html_urlShttps://github.com/palantir/atlasdb/commit/83b3ee4a718e35a58f0a4aef5e38985693ef63e8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/83b3ee4a718e35a58f0a4aef5e38985693ef63e8/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jboj MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}jé 6https://api.github.com/users/Toemmsche/received_eventsjũ Userjǩ uparents]}(j (b3243ff458eba8c62532f6c844d6c5b998d6d869j ^https://api.github.com/repos/palantir/atlasdb/commits/b3243ff458eba8c62532f6c844d6c5b998d6d869j Shttps://github.com/palantir/atlasdb/commit/b3243ff458eba8c62532f6c844d6c5b998d6d869uastats}(totalK
	additionsK	deletionsKufiles](}(j (025eedec61d024d1479730c960609689ec373781filenameQlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/83b3ee4a718e35a58f0a4aef5e38985693ef63e8/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaraw_urlhttps://github.com/palantir/atlasdb/raw/83b3ee4a718e35a58f0a4aef5e38985693ef63e8/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=83b3ee4a718e35a58f0a4aef5e38985693ef63e8patchX  @@ -54,7 +54,8 @@ public class LockThreadInfoSnapshotManager implements AutoCloseable {
 
     private Disposable disposable;
 
-    private boolean isRunning = false;
+    @VisibleForTesting
+    boolean isRunning = false;
 
     public LockThreadInfoSnapshotManager(
             Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration,
@@ -83,11 +84,6 @@ private void run() {
         scheduleRun();
     }
 
-    @VisibleForTesting
-    synchronized boolean isRunning() {
-        return isRunning;
-    }
-
     private synchronized void scheduleRun() {
         if (threadInfoConfiguration.current().recordThreadInfo()) {
             if (!isRunning) {u}(j (c7229d4bc91dc8ac8393f204cddeaf0b6d6ad533j Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/83b3ee4a718e35a58f0a4aef5e38985693ef63e8/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/83b3ee4a718e35a58f0a4aef5e38985693ef63e8/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=83b3ee4a718e35a58f0a4aef5e38985693ef63e8j X  @@ -363,7 +363,7 @@ public void willRestartWhenConfigIsUpdated() throws InterruptedException {
                 .threadInfoSnapshotIntervalMillis(50L)
                 .build());
 
-        Awaitility.await().until(() -> !backgroundSnapshotRunner.isRunning());
+        Awaitility.await().until(() -> !backgroundSnapshotRunner.isRunning);
 
         lockServiceWithBackgroundRunner.unlock(lockResponse.getToken());
 ueu(34fcad8b7f74c1cf15c9ab5bbb2d6e45a15dcdeb}(sha(34fcad8b7f74c1cf15c9ab5bbb2d6e45a15dcdebnode_idEC_kwDOAjP5fdoAKDM0ZmNhZDhiN2Y3NGMxY2YxNWM5YWI1YmJiMmQ2ZTQ1YTE1ZGNkZWIcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-15T08:30:30Zu	committer}(j 	Tom Papkej tpapke@palantir.comj
 2023-06-15T08:30:30ZumessageUse GuardedBy("this")tree}(j (d5898a4b75eb7cbcf1b915aae137d29baeb6f013url`https://api.github.com/repos/palantir/atlasdb/git/trees/d5898a4b75eb7cbcf1b915aae137d29baeb6f013uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/34fcad8b7f74c1cf15c9ab5bbb2d6e45a15dcdeb
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSKzCYACgkQmF9s0kaF
Iw24MAgAo+N9dCyRn0F4i4wG/Sn5XwDWvhHHG7p6uI5QkQpbSNcYMvFT3wgr83Kv
4w4WzvrL1Y9Zj352in1PiTqG8SAjYzICb50Fe2oIhYV7qxlvwTXffel/zvU8/1TT
wVJnjXOydC9iriFS7BuxPO0MTojplP/j/CnYm5LNB7syaLz9LwqFfqf7gbGGvnne
KWxmmnxncO0E8JlkINrEfVdfGBrjhqqLhGyGICpeZPgDLC9buELZdzjoXUiSoDsH
bYbUvpAH+J1PRkl5k1ECduErmdRdlHiekYNRaEfch4sCKsqnDEzOUALJNwriqkBM
e6g9HXPs1Hc/uvcAtlAcdWKhY2WBNA==
=FmYe
-----END PGP SIGNATURE-----payloadtree d5898a4b75eb7cbcf1b915aae137d29baeb6f013
parent 83b3ee4a718e35a58f0a4aef5e38985693ef63e8
author Tom Papke <tpapke@palantir.com> 1686817830 +0100
committer Tom Papke <tpapke@palantir.com> 1686817830 +0100

Use GuardedBy("this")
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/34fcad8b7f74c1cf15c9ab5bbb2d6e45a15dcdebhtml_urlShttps://github.com/palantir/atlasdb/commit/34fcad8b7f74c1cf15c9ab5bbb2d6e45a15dcdebcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/34fcad8b7f74c1cf15c9ab5bbb2d6e45a15dcdeb/commentsj }(login	ToemmscheidJboj  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej$ https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j) 	Toemmschej+ Jboj  MDQ6VXNlcjQzNjc1NDkwj- 4https://avatars.githubusercontent.com/u/43675490?v=4j/ h5j &https://api.github.com/users/Toemmschej$ https://github.com/Toemmschej2 0https://api.github.com/users/Toemmsche/followersj4 =https://api.github.com/users/Toemmsche/following{/other_user}j6 6https://api.github.com/users/Toemmsche/gists{/gist_id}j8 =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j: 4https://api.github.com/users/Toemmsche/subscriptionsj< +https://api.github.com/users/Toemmsche/orgsj> ,https://api.github.com/users/Toemmsche/reposj@ 7https://api.github.com/users/Toemmsche/events{/privacy}jB 6https://api.github.com/users/Toemmsche/received_eventsjD UserjF uparents]}(j (83b3ee4a718e35a58f0a4aef5e38985693ef63e8j ^https://api.github.com/repos/palantir/atlasdb/commits/83b3ee4a718e35a58f0a4aef5e38985693ef63e8j$ Shttps://github.com/palantir/atlasdb/commit/83b3ee4a718e35a58f0a4aef5e38985693ef63e8uastats}(totalK	additionsK
	deletionsKufiles](}(j (8f895e08fb610aaea730b86b506080bf0c89bd4dfilenameQlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javastatusmodifiedj` Kja KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/34fcad8b7f74c1cf15c9ab5bbb2d6e45a15dcdeb/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaraw_urlhttps://github.com/palantir/atlasdb/raw/34fcad8b7f74c1cf15c9ab5bbb2d6e45a15dcdeb/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=34fcad8b7f74c1cf15c9ab5bbb2d6e45a15dcdebpatchX{  @@ -41,6 +41,7 @@
 import java.util.concurrent.TimeUnit;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
+import javax.annotation.concurrent.GuardedBy;
 
 public class LockThreadInfoSnapshotManager implements AutoCloseable {
     private static final SafeLogger log = SafeLoggerFactory.get(LockThreadInfoSnapshotManager.class);
@@ -54,8 +55,8 @@ public class LockThreadInfoSnapshotManager implements AutoCloseable {
 
     private Disposable disposable;
 
-    @VisibleForTesting
-    boolean isRunning = false;
+    @GuardedBy("this")
+    private boolean isRunning = false;
 
     public LockThreadInfoSnapshotManager(
             Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration,
@@ -84,6 +85,11 @@ private void run() {
         scheduleRun();
     }
 
+    @VisibleForTesting
+    synchronized boolean isRunning() {
+        return isRunning;
+    }
+
     private synchronized void scheduleRun() {
         if (threadInfoConfiguration.current().recordThreadInfo()) {
             if (!isRunning) {
@@ -145,7 +151,10 @@ void takeSnapshot() {
     @Override
     public void close() {
         scheduledExecutorService.shutdown();
-        isRunning = true;
+        synchronized (this) {
+            // To prevent scheduling of future tasks, which will throw an exception
+            isRunning = true;
+        }
         disposable.dispose();
     }
 }u}(j (f99f4d297084bce6ca7c1a6ad19f7ecfa1ec4c34jf Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javajh modifiedj` Kja Kjj Kjk https://github.com/palantir/atlasdb/blob/34fcad8b7f74c1cf15c9ab5bbb2d6e45a15dcdeb/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javajm https://github.com/palantir/atlasdb/raw/34fcad8b7f74c1cf15c9ab5bbb2d6e45a15dcdeb/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javajo https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=34fcad8b7f74c1cf15c9ab5bbb2d6e45a15dcdebjq X  @@ -363,7 +363,7 @@ public void willRestartWhenConfigIsUpdated() throws InterruptedException {
                 .threadInfoSnapshotIntervalMillis(50L)
                 .build());
 
-        Awaitility.await().until(() -> !backgroundSnapshotRunner.isRunning);
+        Awaitility.await().until(() -> !backgroundSnapshotRunner.isRunning());
 
         lockServiceWithBackgroundRunner.unlock(lockResponse.getToken());
 ueu(484e7713eb2f5115c1f2c53a288ba5261f061551}(sha(484e7713eb2f5115c1f2c53a288ba5261f061551node_idEC_kwDOAjP5fdoAKDQ4NGU3NzEzZWIyZjUxMTVjMWYyYzUzYTI4OGJhNTI2MWYwNjE1NTEcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-06T13:18:09Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-06-06T13:18:09Zumessage0actually don't check for locks on thorough readstree}(j} (f7a4e13396e853d4bd76e22055a62a36032a6dd2url`https://api.github.com/repos/palantir/atlasdb/git/trees/f7a4e13396e853d4bd76e22055a62a36032a6dd2uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/484e7713eb2f5115c1f2c53a288ba5261f061551
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmR/MhEACgkQJd22kJ7J
GiyRBQgAh5TTZsciajOqMCQHSMV4Tp6USLE88B/ETeDeeVp3W69+hBDMsAlv0Lap
iYTH6GrkeL2PmUqG4MJv5KMlgPimCRC9fbG0H3iw4bPu5NPwLhpRer9m5IkutB7l
ElLti+j3C2HnFb31DwvBcAfc8ZPsu1PknxU1nci40ks0EQ1aDikowGKicIx0WqTi
RZjEnRS5cib55peiTgHfO9y3oCscnzHeVv5mR21YZJfU/n8nzbsXAtqJHp5mhNvP
E8yAFnza7CRJgn6fZS2qPKDnjIFXIqh/bj1k5r+P958KST5bNHXhdsNl4JVVKG1B
WfOt73n/w3niK9wUwQ8ivBPqtUK3FQ==
=hzPV
-----END PGP SIGNATURE-----payloadX  tree f7a4e13396e853d4bd76e22055a62a36032a6dd2
parent 43c37cccec9dc898631f37d2c0e3aeb13f0706d8
author Lucas Meireles <meireles31@msn.com> 1686057489 +0100
committer Lucas Meireles <meireles31@msn.com> 1686057489 +0100

actually don't check for locks on thorough reads
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/484e7713eb2f5115c1f2c53a288ba5261f061551html_urlShttps://github.com/palantir/atlasdb/commit/484e7713eb2f5115c1f2c53a288ba5261f061551comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/484e7713eb2f5115c1f2c53a288ba5261f061551/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j LucasIMEj Jg j MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsjê UserjŪ uparents]}(j} (43c37cccec9dc898631f37d2c0e3aeb13f0706d8j ^https://api.github.com/repos/palantir/atlasdb/commits/43c37cccec9dc898631f37d2c0e3aeb13f0706d8j Shttps://github.com/palantir/atlasdb/commit/43c37cccec9dc898631f37d2c0e3aeb13f0706d8uastats}(totalK	additionsK	deletionsKufiles]}(j} (cab5ee27b555cae688f52b0daba75065c4b9abd7filenameVatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javastatusmodifiedjߪ Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/484e7713eb2f5115c1f2c53a288ba5261f061551/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaraw_urlhttps://github.com/palantir/atlasdb/raw/484e7713eb2f5115c1f2c53a288ba5261f061551/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=484e7713eb2f5115c1f2c53a288ba5261f061551patchX  @@ -69,10 +69,9 @@ private static boolean mustCheckImmutableLockAfterReads(TableMetadataPersistence
         switch (strategy) {
             case CONSERVATIVE:
             case NOTHING:
-                return false;
             case THOROUGH_MIGRATION:
             case THOROUGH:
-                return true;
+                return false;
         }
         throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
     }uau(219f56b4327bf35c71bf5d10028da2d022eccc1f}(sha(219f56b4327bf35c71bf5d10028da2d022eccc1fnode_idEC_kwDOAjP5fdoAKDIxOWY1NmI0MzI3YmYzNWM3MWJmNWQxMDAyOGRhMmQwMjJlY2NjMWYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-17T09:29:48Zu	committer}(j GitHubj noreply@github.comj  2023-04-17T09:29:48ZumessageX  [PDS-350703 and Others | i like trains] Part 1: Conjure Undertow, and Flattening Subresource Locators (#6518)

We no longer use Jersey sub-resource locators for user-facing timestamp, timestamp management and lock v1 endpoints (except for the asynchronous TimeLock service).tree}(j (cdef0552266ad83554175136efc5bab45c994a86url`https://api.github.com/repos/palantir/atlasdb/git/trees/cdef0552266ad83554175136efc5bab45c994a86uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/219f56b4327bf35c71bf5d10028da2d022eccc1f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkPRGMCRBK7hj4Ov3rIwAAUGIIAAOFFzi9PW6bLJ90btvWvq6L
AJdB/UbxJ5mp6CPBSh+Uxb+H8dhfr4l0iICXdy9m/4d7aPHsB3aW39tUyrZf1aqV
rBI1EV5BIKrZg/TDWB9Sacdx46XcE3tjVXH6yq71vws0AEL+cZieJXzQNbrvdBxn
i49qqyId2yEy392luvp94tLaJ7aGnaCMSVkbmfHcmtzZAU+a5TrK6gU8OQhLt3QM
/xKKzSRJ3TT8BYgi2S3dYIPL4ns/wfDhKbaYYMdpIFGKg32Tnye7aLISLqKczMaD
2FLjqOmaUAA+jkBgYDyNCUVzuKb/tT3n1b4x0C87n3G03jhSNIBUxyO+lPkpjaI=
=3Pv0
-----END PGP SIGNATURE-----
payloadX  tree cdef0552266ad83554175136efc5bab45c994a86
parent 54545b6d33158c18f41df0d7b85a4536c946e72f
author Jeremy Kong <jkong@palantir.com> 1681723788 +0100
committer GitHub <noreply@github.com> 1681723788 +0000

[PDS-350703 and Others | i like trains] Part 1: Conjure Undertow, and Flattening Subresource Locators (#6518)

We no longer use Jersey sub-resource locators for user-facing timestamp, timestamp management and lock v1 endpoints (except for the asynchronous TimeLock service).
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/219f56b4327bf35c71bf5d10028da2d022eccc1fhtml_urlShttps://github.com/palantir/atlasdb/commit/219f56b4327bf35c71bf5d10028da2d022eccc1fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/219f56b4327bf35c71bf5d10028da2d022eccc1f/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j web-flowj! J/j MDQ6VXNlcjE5ODY0NDQ3j# 4https://avatars.githubusercontent.com/u/19864447?v=4j% h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj( /https://api.github.com/users/web-flow/followersj* <https://api.github.com/users/web-flow/following{/other_user}j, 5https://api.github.com/users/web-flow/gists{/gist_id}j. <https://api.github.com/users/web-flow/starred{/owner}{/repo}j0 3https://api.github.com/users/web-flow/subscriptionsj2 *https://api.github.com/users/web-flow/orgsj4 +https://api.github.com/users/web-flow/reposj6 6https://api.github.com/users/web-flow/events{/privacy}j8 5https://api.github.com/users/web-flow/received_eventsj: Userj< uparents]}(j (54545b6d33158c18f41df0d7b85a4536c946e72fj ^https://api.github.com/repos/palantir/atlasdb/commits/54545b6d33158c18f41df0d7b85a4536c946e72fj Shttps://github.com/palantir/atlasdb/commit/54545b6d33158c18f41df0d7b85a4536c946e72fuastats}(totalM	additionsM	deletionsKufiles](}(j (f78ad2562cc65a8da82f8d8fc92f20368d1a9981filename$changelog/@unreleased/pr-6518.v2.ymlstatusaddedjV KjW K changesKblob_url|https://github.com/palantir/atlasdb/blob/219f56b4327bf35c71bf5d10028da2d022eccc1f/changelog%2F%40unreleased%2Fpr-6518.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/219f56b4327bf35c71bf5d10028da2d022eccc1f/changelog%2F%40unreleased%2Fpr-6518.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6518.v2.yml?ref=219f56b4327bf35c71bf5d10028da2d022eccc1fpatchX+  @@ -0,0 +1,7 @@
+type: improvement
+improvement:
+  description: We no longer use Jersey sub-resource locators for user-facing timestamp,
+    timestamp management and lock v1 endpoints (except for the asynchronous TimeLock
+    service).
+  links:
+  - https://github.com/palantir/atlasdb/pull/6518u}(j (887229db22e056f005fba2f8dddddc5b9bc75155j\ Ytimelock-agent/src/main/java/com/palantir/timelock/paxos/NonConjureTimelockResources.javaj^ addedjV K7jW K j` K7ja https://github.com/palantir/atlasdb/blob/219f56b4327bf35c71bf5d10028da2d022eccc1f/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FNonConjureTimelockResources.javajc https://github.com/palantir/atlasdb/raw/219f56b4327bf35c71bf5d10028da2d022eccc1f/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FNonConjureTimelockResources.javaje https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FNonConjureTimelockResources.java?ref=219f56b4327bf35c71bf5d10028da2d022eccc1fjg X	  @@ -0,0 +1,55 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.timelock.paxos;
+
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.http.RedirectRetryTargeter;
+import com.palantir.atlasdb.timelock.LockV1Resource;
+import com.palantir.atlasdb.timelock.LockV1ResourceEndpoints;
+import com.palantir.atlasdb.timelock.TimelockNamespaces;
+import com.palantir.atlasdb.timelock.TimestampManagementResource;
+import com.palantir.atlasdb.timelock.TimestampManagementResourceEndpoints;
+import com.palantir.atlasdb.timelock.TimestampResource;
+import com.palantir.atlasdb.timelock.TimestampResourceEndpoints;
+import com.palantir.conjure.java.undertow.lib.UndertowService;
+import java.util.Set;
+import java.util.stream.Collectors;
+
+public final class NonConjureTimelockResources {
+    private NonConjureTimelockResources() {
+        // utility
+    }
+
+    public static Set<UndertowService> createUndertowServices(
+            TimelockNamespaces namespaces, RedirectRetryTargeter redirectRetryTargeter) {
+        Set<UndertowService> rawServices = ImmutableSet.of(
+                LockV1ResourceEndpoints.of(new LockV1Resource(namespaces)),
+                TimestampResourceEndpoints.of(new TimestampResource(namespaces)),
+                TimestampManagementResourceEndpoints.of(new TimestampManagementResource(namespaces)));
+
+        return rawServices.stream()
+                .map(service -> new TimelockUndertowExceptionWrapper(service, redirectRetryTargeter))
+                .collect(Collectors.toSet());
+    }
+
+    public static Set<Object> createJerseyResources(TimelockNamespaces namespaces) {
+        return ImmutableSet.of(
+                new LockV1Resource(namespaces),
+                new TimestampResource(namespaces),
+                new TimestampManagementResource(namespaces));
+    }
+}u}(j (b9d020717295503233d25d847ea2e0509fab6a22j\ Ktimelock-agent/src/main/java/com/palantir/timelock/paxos/TimeLockAgent.javaj^ modifiedjV KjW Kj` Kja https://github.com/palantir/atlasdb/blob/219f56b4327bf35c71bf5d10028da2d022eccc1f/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javajc https://github.com/palantir/atlasdb/raw/219f56b4327bf35c71bf5d10028da2d022eccc1f/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javaje https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.java?ref=219f56b4327bf35c71bf5d10028da2d022eccc1fjg X]  @@ -325,10 +325,9 @@ private void createAndRegisterResources() {
                 Suppliers.compose(TimeLockRuntimeConfiguration::maxNumberOfClients, runtime::get));
 
         registerManagementResource();
-        // Finally, register the health check, and endpoints associated with the clients.
-        TimeLockResource resource = TimeLockResource.create(namespaces);
         healthCheck = paxosResources.leadershipComponents().healthCheck(namespaces::getActiveClients);
 
+        TimeLockResource resource = TimeLockResource.create(namespaces);
         registrar.accept(resource);
 
         Function<String, LockService> lockServiceGetter =
@@ -352,13 +351,16 @@ private void createAndRegisterResources() {
             registerCorruptionHandlerWrappedService(
                     presentUndertowRegistrar,
                     MultiClientConjureTimelockResource.undertow(redirectRetryTargeter, asyncTimelockServiceGetter));
+            NonConjureTimelockResources.createUndertowServices(namespaces, redirectRetryTargeter)
+                    .forEach(service -> registerCorruptionHandlerWrappedService(presentUndertowRegistrar, service));
         } else {
             registrar.accept(ConjureTimelockResource.jersey(redirectRetryTargeter, asyncTimelockServiceGetter));
             registrar.accept(ConjureLockWatchingResource.jersey(redirectRetryTargeter, asyncTimelockServiceGetter));
             registrar.accept(ConjureLockV1Resource.jersey(redirectRetryTargeter, lockServiceGetter));
             registrar.accept(TimeLockPaxosHistoryProviderResource.jersey(corruptionComponents.localHistoryLoader()));
             registrar.accept(
                     MultiClientConjureTimelockResource.jersey(redirectRetryTargeter, asyncTimelockServiceGetter));
+            NonConjureTimelockResources.createJerseyResources(namespaces).forEach(registrar);
         }
     }
 u}(j (b009e2a44272a2626ff3806af6ca13135f806a86j\ ^timelock-agent/src/main/java/com/palantir/timelock/paxos/TimelockUndertowExceptionWrapper.javaj^ modifiedjV KjW K j` Kja https://github.com/palantir/atlasdb/blob/219f56b4327bf35c71bf5d10028da2d022eccc1f/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimelockUndertowExceptionWrapper.javajc https://github.com/palantir/atlasdb/raw/219f56b4327bf35c71bf5d10028da2d022eccc1f/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimelockUndertowExceptionWrapper.javaje https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimelockUndertowExceptionWrapper.java?ref=219f56b4327bf35c71bf5d10028da2d022eccc1fjg X  @@ -38,6 +38,11 @@
 import java.util.List;
 import java.util.function.Function;
 
+/**
+ * For endpoints that pre-date the introduction of conjure, we need to be able to handle legacy requests in a
+ * consistent way without breaking API, hence the existence of this class. Resources and services with endpoints
+ * predating the introduction of conjure should be wrapped in this wrapper.
+ */
 final class TimelockUndertowExceptionWrapper implements UndertowService {
 
     private final UndertowService delegate;u}(j (2204a1bd3b81364b73c8ace8fc31438127caf2e2j\ Mtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/LockV1Resource.javaj^ addedjV MjW K j` Mja https://github.com/palantir/atlasdb/blob/219f56b4327bf35c71bf5d10028da2d022eccc1f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.javajc https://github.com/palantir/atlasdb/raw/219f56b4327bf35c71bf5d10028da2d022eccc1f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.javaje https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.java?ref=219f56b4327bf35c71bf5d10028da2d022eccc1fjg XC  @@ -0,0 +1,411 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock;
+
+import com.palantir.annotations.remoting.CancelableServerCall;
+import com.palantir.common.annotation.Idempotent;
+import com.palantir.common.annotation.NonIdempotent;
+import com.palantir.conjure.java.undertow.annotations.Handle;
+import com.palantir.conjure.java.undertow.annotations.HttpMethod;
+import com.palantir.lock.HeldLocksGrant;
+import com.palantir.lock.HeldLocksToken;
+import com.palantir.lock.LockClient;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.LockRefreshToken;
+import com.palantir.lock.LockRequest;
+import com.palantir.lock.LockResponse;
+import com.palantir.lock.LockServerOptions;
+import com.palantir.lock.LockService;
+import com.palantir.lock.LockState;
+import com.palantir.lock.SimpleHeldLocksToken;
+import com.palantir.logsafe.Safe;
+import java.math.BigInteger;
+import java.util.Set;
+import javax.annotation.Nullable;
+import javax.ws.rs.Consumes;
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+import javax.ws.rs.PathParam;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.MediaType;
+
+@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}") // Only read by Jersey, not by Undertow
+public class LockV1Resource {
+    private final TimelockNamespaces namespaces;
+
+    public LockV1Resource(TimelockNamespaces namespaces) {
+        this.namespaces = namespaces;
+    }
+
+    // Lock v1
+    @POST
+    @Path("/lock/lock-with-full-response/{client}")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @CancelableServerCall
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock-with-full-response/{client}")
+    public LockResponse lockWithFullLockResponse(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Safe @PathParam("client") @Handle.PathParam LockClient client,
+            @Handle.Body LockRequest request)
+            throws InterruptedException {
+        return getLockService(namespace).lockWithFullLockResponse(client, request);
+    }
+
+    @POST
+    @Path("/lock/lock-with-full-response")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @CancelableServerCall
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock-with-full-response")
+    public LockResponse lockWithFullLockResponse(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockRequest request)
+            throws InterruptedException {
+        return lockWithFullLockResponse(namespace, LockClient.ANONYMOUS, request);
+    }
+
+    @POST
+    @Path("lock/unlock-deprecated")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Deprecated
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/unlock-deprecated")
+    public boolean unlock(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body HeldLocksToken token) {
+        return getLockService(namespace).unlock(token);
+    }
+
+    @POST
+    @Path("lock/unlock-simple")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/unlock-simple")
+    public boolean unlockSimple(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body SimpleHeldLocksToken token) {
+        return getLockService(namespace).unlockSimple(token);
+    }
+
+    @POST
+    @Path("lock/unlock-and-freeze")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/unlock-and-freeze")
+    public boolean unlockAndFreeze(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body HeldLocksToken token) {
+        return getLockService(namespace).unlockAndFreeze(token);
+    }
+
+    @POST
+    @Path("lock/get-tokens/{client}")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Idempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/get-tokens/{client}")
+    public Set<HeldLocksToken> getTokens(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Safe @PathParam("client") @Handle.PathParam LockClient client) {
+        return getLockService(namespace).getTokens(client);
+    }
+
+    @POST
+    @Path("lock/get-tokens")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Idempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/get-tokens")
+    public Set<HeldLocksToken> getTokens(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        return getTokens(namespace, LockClient.ANONYMOUS);
+    }
+
+    @POST
+    @Path("lock/refresh-tokens")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Deprecated
+    @Idempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/refresh-tokens")
+    public Set<HeldLocksToken> refreshTokens(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Handle.Body Iterable<HeldLocksToken> tokens) {
+        return getLockService(namespace).refreshTokens(tokens);
+    }
+
+    @POST
+    @Path("lock/refresh-grant")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Idempotent
+    @Nullable
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/refresh-grant")
+    public HeldLocksGrant refreshGrant(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body HeldLocksGrant grant) {
+        return getLockService(namespace).refreshGrant(grant);
+    }
+
+    @POST
+    @Path("lock/refresh-grant-id")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Idempotent
+    @Nullable
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/refresh-grant-id")
+    public HeldLocksGrant refreshGrant(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body BigInteger grantId) {
+        return getLockService(namespace).refreshGrant(grantId);
+    }
+
+    @POST
+    @Path("lock/convert-to-grant")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/convert-to-grant")
+    public HeldLocksGrant convertToGrant(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body HeldLocksToken token) {
+        return getLockService(namespace).convertToGrant(token);
+    }
+
+    @POST
+    @Path("lock/use-grant/{client}")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/use-grant/{client}")
+    public HeldLocksToken useGrant(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Safe @PathParam("client") @Handle.PathParam LockClient client,
+            @Handle.Body HeldLocksGrant grant) {
+        return getLockService(namespace).useGrant(client, grant);
+    }
+
+    @POST
+    @Path("lock/use-grant")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/use-grant")
+    public HeldLocksToken useGrant(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body HeldLocksGrant grant) {
+        return useGrant(namespace, LockClient.ANONYMOUS, grant);
+    }
+
+    @POST
+    @Path("lock/use-grant-id/{client}")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/use-grant-id/{client}")
+    public HeldLocksToken useGrant(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Safe @PathParam("client") @Handle.PathParam LockClient client,
+            @Handle.Body BigInteger grantId) {
+        return getLockService(namespace).useGrant(client, grantId);
+    }
+
+    @POST
+    @Path("lock/use-grant-id")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/use-grant-id")
+    public HeldLocksToken useGrant(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body BigInteger grantId) {
+        return useGrant(namespace, LockClient.ANONYMOUS, grantId);
+    }
+
+    @POST
+    @Path("lock/min-locked-in-version-id")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Deprecated
+    @Idempotent
+    @Nullable
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version-id")
+    public Long getMinLockedInVersionId(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        return getLockService(namespace).getMinLockedInVersionId();
+    }
+
+    @POST
+    @Path("lock/min-locked-in-version-id-for-client/{client}")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version-id-for-client/{client}")
+    public Long getMinLockedInVersionId(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Safe @PathParam("client") @Handle.PathParam LockClient client) {
+        return getLockService(namespace).getMinLockedInVersionId(client);
+    }
+
+    @POST
+    @Path("lock/min-locked-in-version-id-for-client")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version-id-for-client")
+    public Long getMinLockedInVersionIdForAnonymousClient(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        return getMinLockedInVersionId(namespace, LockClient.ANONYMOUS);
+    }
+
+    @POST
+    @Path("lock/lock-server-options")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Idempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock-server-options")
+    public LockServerOptions getLockServerOptions(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        return getLockService(namespace).getLockServerOptions();
+    }
+
+    @POST
+    @Path("lock/current-time-millis")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Idempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/current-time-millis")
+    public long currentTimeMillis(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        return getLockService(namespace).currentTimeMillis();
+    }
+
+    @POST
+    @Path("lock/log-current-state")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Idempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/log-current-state")
+    public void logCurrentState(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        getLockService(namespace).logCurrentState();
+    }
+
+    // Remote lock service
+    @POST
+    @Path("lock/lock/{client}")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Nullable
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock/{client}")
+    public LockRefreshToken lock(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Safe @PathParam("client") @Handle.PathParam String client,
+            @Handle.Body LockRequest request)
+            throws InterruptedException {
+        return getLockService(namespace).lock(client, request);
+    }
+
+    @POST
+    @Path("lock/lock")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Nullable
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock")
+    public LockRefreshToken lock(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockRequest request)
+            throws InterruptedException {
+        return lock(namespace, LockClient.ANONYMOUS.getClientId(), request);
+    }
+
+    @POST
+    @Path("lock/try-lock/{client}")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/try-lock/{client}")
+    public HeldLocksToken lockAndGetHeldLocks(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Safe @PathParam("client") @Handle.PathParam String client,
+            @Handle.Body LockRequest request)
+            throws InterruptedException {
+        return getLockService(namespace).lockAndGetHeldLocks(client, request);
+    }
+
+    @POST
+    @Path("lock/try-lock")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/try-lock")
+    public HeldLocksToken lockAndGetHeldLocks(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockRequest request)
+            throws InterruptedException {
+        return lockAndGetHeldLocks(namespace, LockClient.ANONYMOUS.getClientId(), request);
+    }
+
+    @POST
+    @Path("lock/unlock")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @NonIdempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/unlock")
+    public boolean unlock(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockRefreshToken token) {
+        return getLockService(namespace).unlock(token);
+    }
+
+    @POST
+    @Path("lock/refresh-lock-tokens")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Idempotent
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/refresh-lock-tokens")
+    public Set<LockRefreshToken> refreshLockRefreshTokens(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Handle.Body Iterable<LockRefreshToken> tokens) {
+        return getLockService(namespace).refreshLockRefreshTokens(tokens);
+    }
+
+    @POST
+    @Path("lock/min-locked-in-version/{client}")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Idempotent
+    @Nullable
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version/{client}")
+    public Long getMinLockedInVersionId(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Safe @PathParam("client") @Handle.PathParam String client) {
+        return getLockService(namespace).getMinLockedInVersionId(client);
+    }
+
+    @POST
+    @Path("lock/min-locked-in-version")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Idempotent
+    @Nullable
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version")
+    public Long getMinLockedInVersionIdForAnonymousClientString(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        return getMinLockedInVersionId(namespace, LockClient.ANONYMOUS.getClientId());
+    }
+
+    @POST
+    @Path("lock/get-debugging-lock-state")
+    @Idempotent
+    @Produces(MediaType.APPLICATION_JSON)
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/get-debugging-lock-state")
+    public LockState getLockState(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockDescriptor lock) {
+        return getLockService(namespace).getLockState(lock);
+    }
+
+    private LockService getLockService(String namespace) {
+        return namespaces.get(namespace).getLockService();
+    }
+}u      }(j (bd3a2ba95ba30b897cf251bbfcd4675e993540b6j\ Otimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimeLockResource.javaj^ modifiedjV K jW Kj` Kja https://github.com/palantir/atlasdb/blob/219f56b4327bf35c71bf5d10028da2d022eccc1f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockResource.javajc https://github.com/palantir/atlasdb/raw/219f56b4327bf35c71bf5d10028da2d022eccc1f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockResource.javaje https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockResource.java?ref=219f56b4327bf35c71bf5d10028da2d022eccc1fjg X  @@ -15,10 +15,7 @@
  */
 package com.palantir.atlasdb.timelock;
 
-import com.palantir.lock.LockService;
 import com.palantir.logsafe.Safe;
-import com.palantir.timestamp.TimestampManagementService;
-import com.palantir.timestamp.TimestampService;
 import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
 
@@ -38,23 +35,8 @@ public static TimeLockResource create(TimelockNamespaces namespaces) {
         return new TimeLockResource(namespaces);
     }
 
-    @Path("/lock")
-    public LockService getLockService(@Safe @PathParam("namespace") String namespace) {
-        return namespaces.get(namespace).getLockService();
-    }
-
-    @Path("/timestamp")
-    public TimestampService getTimeService(@Safe @PathParam("namespace") String namespace) {
-        return namespaces.get(namespace).getTimestampService();
-    }
-
     @Path("/timelock")
     public AsyncTimelockResource getTimelockService(@Safe @PathParam("namespace") String namespace) {
         return namespaces.get(namespace).getTimelockResource();
     }
-
-    @Path("/timestamp-management")
-    public TimestampManagementService getTimestampManagementService(@Safe @PathParam("namespace") String namespace) {
-        return namespaces.get(namespace).getTimestampManagementService();
-    }
 }u}(j (1c4f4967f8030a70b7a15f69299a4d00bafe675fj\ Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimestampManagementResource.javaj^ addedjV KfjW K j` Kfja https://github.com/palantir/atlasdb/blob/219f56b4327bf35c71bf5d10028da2d022eccc1f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampManagementResource.javajc https://github.com/palantir/atlasdb/raw/219f56b4327bf35c71bf5d10028da2d022eccc1f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampManagementResource.javaje https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampManagementResource.java?ref=219f56b4327bf35c71bf5d10028da2d022eccc1fjg X  @@ -0,0 +1,102 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock;
+
+import com.palantir.conjure.java.undertow.annotations.Handle;
+import com.palantir.conjure.java.undertow.annotations.HttpMethod;
+import com.palantir.conjure.java.undertow.annotations.SerializerFactory;
+import com.palantir.conjure.java.undertow.lib.Endpoint;
+import com.palantir.conjure.java.undertow.lib.Serializer;
+import com.palantir.conjure.java.undertow.lib.TypeMarker;
+import com.palantir.conjure.java.undertow.lib.UndertowRuntime;
+import com.palantir.logsafe.Safe;
+import com.palantir.timestamp.TimestampManagementService;
+import io.undertow.server.HttpServerExchange;
+import io.undertow.util.Headers;
+import java.io.IOException;
+import java.nio.charset.StandardCharsets;
+import java.util.OptionalLong;
+import javax.annotation.CheckReturnValue;
+import javax.annotation.meta.When;
+import javax.ws.rs.DefaultValue;
+import javax.ws.rs.GET;
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+import javax.ws.rs.PathParam;
+import javax.ws.rs.Produces;
+import javax.ws.rs.QueryParam;
+import javax.ws.rs.core.MediaType;
+
+@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}") // Only read by Jersey, not by Undertow
+public class TimestampManagementResource {
+    private static final long SENTINEL_TIMESTAMP = Long.MIN_VALUE;
+    private static final String SENTINEL_TIMESTAMP_STRING =
+            SENTINEL_TIMESTAMP + ""; // can't use valueOf/toString because we need a compile time constant!
+
+    private final TimelockNamespaces namespaces;
+
+    public TimestampManagementResource(TimelockNamespaces namespaces) {
+        this.namespaces = namespaces;
+    }
+
+    // Timestamp management
+    @POST
+    @Path("timestamp-management/fast-forward")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timestamp-management/fast-forward")
+    public void fastForwardTimestamp(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Safe
+                    @QueryParam("currentTimestamp")
+                    @DefaultValue(SENTINEL_TIMESTAMP_STRING)
+                    @Handle.QueryParam(value = "currentTimestamp")
+                    OptionalLong currentTimestamp) {
+        long timestampToUse = currentTimestamp.orElse(SENTINEL_TIMESTAMP);
+        getTimestampManagementService(namespace).fastForwardTimestamp(timestampToUse);
+    }
+
+    @GET
+    @Path("timestamp-management/ping")
+    @Produces(MediaType.TEXT_PLAIN)
+    @CheckReturnValue(when = When.NEVER)
+    @Handle(
+            method = HttpMethod.GET,
+            path = "/{namespace}/timestamp-management/ping",
+            produces = TextPlainSerializer.class)
+    public String ping(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        return getTimestampManagementService(namespace).ping();
+    }
+
+    private TimestampManagementService getTimestampManagementService(String namespace) {
+        return namespaces.get(namespace).getTimestampManagementService();
+    }
+
+    enum TextPlainSerializer implements SerializerFactory<String> {
+        INSTANCE;
+
+        @Override
+        public <T extends String> Serializer<T> serializer(
+                TypeMarker<T> type, UndertowRuntime runtime, Endpoint endpoint) {
+            return this::serialize;
+        }
+
+        private void serialize(String value, HttpServerExchange exchange) throws IOException {
+            exchange.getResponseHeaders().put(Headers.CONTENT_TYPE, MediaType.TEXT_PLAIN);
+            exchange.getOutputStream().write(value.getBytes(StandardCharsets.UTF_8));
+        }
+    }
+}u}(j (04e1d4c2a15de9947b70c587bd4dfa39d113bb1ej\ Ptimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimestampResource.javaj^ addedjV K<jW K j` K<ja https://github.com/palantir/atlasdb/blob/219f56b4327bf35c71bf5d10028da2d022eccc1f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampResource.javajc https://github.com/palantir/atlasdb/raw/219f56b4327bf35c71bf5d10028da2d022eccc1f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampResource.javaje https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampResource.java?ref=219f56b4327bf35c71bf5d10028da2d022eccc1fjg X#
  @@ -0,0 +1,60 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock;
+
+import com.palantir.conjure.java.undertow.annotations.Handle;
+import com.palantir.conjure.java.undertow.annotations.HttpMethod;
+import com.palantir.logsafe.Safe;
+import com.palantir.timestamp.TimestampRange;
+import com.palantir.timestamp.TimestampService;
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+import javax.ws.rs.PathParam;
+import javax.ws.rs.Produces;
+import javax.ws.rs.QueryParam;
+import javax.ws.rs.core.MediaType;
+
+@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}") // Only read by Jersey, not by Undertow
+public final class TimestampResource {
+    private final TimelockNamespaces namespaces;
+
+    public TimestampResource(TimelockNamespaces timelockNamespaces) {
+        this.namespaces = timelockNamespaces;
+    }
+
+    @POST // This has to be POST because we can't allow caching.
+    @Path("/timestamp/fresh-timestamp")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timestamp/fresh-timestamp")
+    public long getFreshTimestamp(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        return getTimestampService(namespace).getFreshTimestamp();
+    }
+
+    @POST // This has to be POST because we can't allow caching.
+    @Path("/timestamp/fresh-timestamps")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timestamp/fresh-timestamps")
+    public TimestampRange getFreshTimestamps(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @QueryParam("number") @Handle.QueryParam(value = "number") int numTimestampsRequested) {
+        return getTimestampService(namespace).getFreshTimestamps(numTimestampsRequested);
+    }
+
+    private TimestampService getTimestampService(String namespace) {
+        return namespaces.get(namespace).getTimestampService();
+    }
+}ueu(e1bc361791e118294de932dd1be84916b6f7a2c5}(sha(e1bc361791e118294de932dd1be84916b6f7a2c5node_idEC_kwDOAjP5fdoAKGUxYmMzNjE3OTFlMTE4Mjk0ZGU5MzJkZDFiZTg0OTE2YjZmN2EyYzUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-07-17T14:26:38Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-07-17T14:26:38Zumessagewoops remove unused methodtree}(j (948416294469c902f32992a6d38b0c5d02b8b41durl`https://api.github.com/repos/palantir/atlasdb/git/trees/948416294469c902f32992a6d38b0c5d02b8b41duj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e1bc361791e118294de932dd1be84916b6f7a2c5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmS1T54ACgkQmPPOpKR4
XS2i0ggAyE7Z07Bi81GT7AtyCDZi3pXB5Jzpz2z+pyjrR9NhdjaLW5cb8alBEDqF
TbWbzPLkAluJGIGOeOfrF82F9gZry0yORkKVJeM6KgLMHP0StRkKKg312XeF3v8P
bRtiEF0PKBz+YSrOFL0sVX120dJTOnARk703ubmppLn6521r6CF1gcBfyne3ccXH
AeuqXAN5tqakUzQvgfva5jK714fJxx0fmRkDJGi0IDdlxy6fonceSIUUiDJU774t
PMolHK8OfA7ZufbfNnZDsTpYs3VAWCIG31eAUL0mDlNrxIt+6Z5xfYm8zTNZO6jF
HvWp643rrdM8xXVjgwdKjksta3ENyQ==
=K3J4
-----END PGP SIGNATURE-----payloadtree 948416294469c902f32992a6d38b0c5d02b8b41d
parent e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dff
author Sam Kramer <skramer@palantir.com> 1689603998 +0100
committer Sam Kramer <skramer@palantir.com> 1689603998 +0100

woops remove unused method
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/e1bc361791e118294de932dd1be84916b6f7a2c5html_urlShttps://github.com/palantir/atlasdb/commit/e1bc361791e118294de932dd1be84916b6f7a2c5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e1bc361791e118294de932dd1be84916b6f7a2c5/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerjɫ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(jΫ 
Sam-KramerjЫ J^2_ j MDQ6VXNlcjYyMzg4MTQ=jҫ 3https://avatars.githubusercontent.com/u/6238814?v=4jԫ h5j 'https://api.github.com/users/Sam-Kramerjɫ https://github.com/Sam-Kramerj׫ 1https://api.github.com/users/Sam-Kramer/followersj٫ >https://api.github.com/users/Sam-Kramer/following{/other_user}j۫ 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jݫ >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j߫ 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dffj ^https://api.github.com/repos/palantir/atlasdb/commits/e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dffjɫ Shttps://github.com/palantir/atlasdb/commit/e7a98acb26fe82e5ba3a0d2ed1480d0aa9a03dffuastats}(totalK	additionsK 	deletionsKufiles]}(j (924aadbcfb1dba87d95bbeb0d7d16cf081b870fcfilenamefatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServices.javastatusmodifiedj K j KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e1bc361791e118294de932dd1be84916b6f7a2c5/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e1bc361791e118294de932dd1be84916b6f7a2c5/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.java?ref=e1bc361791e118294de932dd1be84916b6f7a2c5patchX?  @@ -152,8 +152,6 @@ static void waitForSchemaVersions(
         throw new IllegalStateException(errorMessage);
     }
 
-    public void waitForSchemaVersionsAny() {}
-
     static void runWithWaitingForSchemas(
             RunnableCheckedException<TException> task,
             CassandraKeyValueServiceConfig config,uau(4be234f4e535819287bcf3fb5360ffe5a0d5d9c5}(sha(4be234f4e535819287bcf3fb5360ffe5a0d5d9c5node_idEC_kwDOAjP5fdoAKDRiZTIzNGY0ZTUzNTgxOTI4N2JjZjNmYjUzNjBmZmU1YTBkNWQ5YzUcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-12T09:20:44Zu	committer}(j" 	Tom Papkej$ tpapke@palantir.comj& 2023-07-12T09:20:44Zumessage!Print random seed for random testtree}(j (b623e6dab081357a7396328cb2421c07c24bb863url`https://api.github.com/repos/palantir/atlasdb/git/trees/b623e6dab081357a7396328cb2421c07c24bb863uj2 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4be234f4e535819287bcf3fb5360ffe5a0d5d9c5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSucGwACgkQmF9s0kaF
Iw2AYAgAsJMTBoE3uinBU3tBFlWsPUaJVdBW4nogi8X7INN2samKobNW9JglZ9O5
WNg2ITny3Jg8lFTNFiksdoVMISmo6CqXKXGcekKP2muyyAAAMeZvPaL2l7hVjGgG
PdU7Y1IgC0v9QPrlbZrHrLei4I8WBhRnzk81sSHjIVhqDEvxWMoQZCVMYu62GNqJ
S7Y1NPa0tl/4lY7e9QYchZ91dnfRJecMrh0QFN2mtWeFLTILKDvWNjQexMnu4Alb
1C6Q9voottcSzc1p4XrRV877MktVnEPb/WpCNBmbpoluIx9ykN2xmc/kKknyaTmH
uVLCQNqXNiN3/MoDsZ1uBRLyosE59Q==
=J+dA
-----END PGP SIGNATURE-----payloadtree b623e6dab081357a7396328cb2421c07c24bb863
parent 2b51a0c2e087e06deb5d6681e60f2664e6fd032c
author Tom Papke <tpapke@palantir.com> 1689153644 +0100
committer Tom Papke <tpapke@palantir.com> 1689153644 +0100

Print random seed for random test
uuj2 ^https://api.github.com/repos/palantir/atlasdb/commits/4be234f4e535819287bcf3fb5360ffe5a0d5d9c5html_urlShttps://github.com/palantir/atlasdb/commit/4be234f4e535819287bcf3fb5360ffe5a0d5d9c5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4be234f4e535819287bcf3fb5360ffe5a0d5d9c5/commentsj  }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j2 &https://api.github.com/users/Toemmschej@ https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj( }(jE 	ToemmschejG Jboj MDQ6VXNlcjQzNjc1NDkwjI 4https://avatars.githubusercontent.com/u/43675490?v=4jK h5j2 &https://api.github.com/users/Toemmschej@ https://github.com/ToemmschejN 0https://api.github.com/users/Toemmsche/followersjP =https://api.github.com/users/Toemmsche/following{/other_user}jR 6https://api.github.com/users/Toemmsche/gists{/gist_id}jT =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jV 4https://api.github.com/users/Toemmsche/subscriptionsjX +https://api.github.com/users/Toemmsche/orgsjZ ,https://api.github.com/users/Toemmsche/reposj\ 7https://api.github.com/users/Toemmsche/events{/privacy}j^ 6https://api.github.com/users/Toemmsche/received_eventsj` Userjb uparents]}(j (2b51a0c2e087e06deb5d6681e60f2664e6fd032cj2 ^https://api.github.com/repos/palantir/atlasdb/commits/2b51a0c2e087e06deb5d6681e60f2664e6fd032cj@ Shttps://github.com/palantir/atlasdb/commit/2b51a0c2e087e06deb5d6681e60f2664e6fd032cuastats}(totalK	additionsK	deletionsKufiles]}(j (7b5eeb0cda1856cbd335f217ee036a168621a8ebfilenameKatlasdb-commons/src/test/java/com/palantir/util/IndexEncodingUtilsTest.javastatusmodifiedj| Kj} KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/4be234f4e535819287bcf3fb5360ffe5a0d5d9c5/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4be234f4e535819287bcf3fb5360ffe5a0d5d9c5/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.java?ref=4be234f4e535819287bcf3fb5360ffe5a0d5d9c5patchX  @@ -174,7 +174,8 @@ public void integrityCheckFailsForDifferentChecksum() {
 
     @Test
     public void decodingEncodedDataYieldsOriginalForRandomData() {
-        Random rand = new Random();
+        int seed = (int) System.currentTimeMillis();
+        Random rand = new Random(seed);
         Set<DeterministicHashableWrapper<UUID>> keys = Stream.generate(UUID::randomUUID)
                 .limit(1000)
                 .map(IndexEncodingUtilsTest::wrap)
@@ -185,6 +186,7 @@ public void decodingEncodedDataYieldsOriginalForRandomData() {
                 .collectToMap();
         Assertions.assertThat(IndexEncodingUtils.decode(
                         IndexEncodingUtils.encode(keys, data, Function.identity(), checksumType), Function.identity()))
+                .as("Encoding and decoding yields original data. Random seed: " + seed)
                 .containsExactlyInAnyOrderEntriesOf(data);
     }
 uau(707c7d0eb606b92517c757154a67c729d24e360c}(sha(707c7d0eb606b92517c757154a67c729d24e360cnode_idEC_kwDOAjP5fdoAKDcwN2M3ZDBlYjYwNmI5MjUxN2M3NTcxNTRhNjdjNzI5ZDI0ZTM2MGMcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-08-04T14:06:09Zu	committer}(j Tom Petraccaj tpetracca@palantir.comj 2023-08-04T16:10:58Zumessageupdatestree}(j (d3c7ac959c16adbda483df959abd1d959eecb79durl`https://api.github.com/repos/palantir/atlasdb/git/trees/d3c7ac959c16adbda483df959abd1d959eecb79duj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/707c7d0eb606b92517c757154a67c729d24e360c
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEHTC5rqjQ6qmsb7sZRnUGJaXvqFMFAmTNIxQACgkQRnUGJaXv
qFO7owf/dH77sKGipsGA89lofJKEV72YFuzSygGsbrc8U46jW6ip1f1wzpFz+Hmd
TvFi2wn5+/KJe1oNHFFLbrLqzhSwwIEFk7MwBNUpQT7OgGCLXNeCoMx6Ndt6+vpG
6vPHA8YYOdM+IVWkptLZ+bIFQoDQh/31tKX6UfBLsYWhnpXROmOraoJnZ4d1GxKu
5H3GEWv8H+QFdZq+U71Enk6D1SVwapN9+dfvqXlgWRFUbqMbXuQ2FLz3VhO6BteQ
avubGlYFolb0L0bwy26aIn8e2i9/FlfLpJBn94hx/kIU1EBdJ1hJFGtDW6SX+7AY
MXoUKCAhBFI69aKbu2GC5r8cFL0LYg==
=O5/c
-----END PGP SIGNATURE-----payloadtree d3c7ac959c16adbda483df959abd1d959eecb79d
parent 924be27fffe8c9bad42c4b1d8d3cdb2d788a63bc
author Tom Petracca <tpetracca@palantir.com> 1691157969 -0400
committer Tom Petracca <tpetracca@palantir.com> 1691165458 -0400

updates
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/707c7d0eb606b92517c757154a67c729d24e360chtml_urlShttps://github.com/palantir/atlasdb/commit/707c7d0eb606b92517c757154a67c729d24e360ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/707c7d0eb606b92517c757154a67c729d24e360c/commentsj }(login	tpetraccaidJ& j MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5j &https://api.github.com/users/tpetraccaj https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminuj }(j 	tpetraccaj J& j MDQ6VXNlcjI1NTQzMjg=j 3https://avatars.githubusercontent.com/u/2554328?v=4j¬ h5j &https://api.github.com/users/tpetraccaj https://github.com/tpetraccajŬ 0https://api.github.com/users/tpetracca/followersjǬ =https://api.github.com/users/tpetracca/following{/other_user}jɬ 6https://api.github.com/users/tpetracca/gists{/gist_id}jˬ =https://api.github.com/users/tpetracca/starred{/owner}{/repo}jͬ 4https://api.github.com/users/tpetracca/subscriptionsjϬ +https://api.github.com/users/tpetracca/orgsjѬ ,https://api.github.com/users/tpetracca/reposjӬ 7https://api.github.com/users/tpetracca/events{/privacy}jլ 6https://api.github.com/users/tpetracca/received_eventsj׬ Userj٬ uparents]}(j (924be27fffe8c9bad42c4b1d8d3cdb2d788a63bcj ^https://api.github.com/repos/palantir/atlasdb/commits/924be27fffe8c9bad42c4b1d8d3cdb2d788a63bcj Shttps://github.com/palantir/atlasdb/commit/924be27fffe8c9bad42c4b1d8d3cdb2d788a63bcuastats}(totalKf	additionsKK	deletionsKufiles](}(j (ea4b71016e096289330369e362cf9264b81ec3dcfilenameatlasdb-ete-tests/build.gradlestatusmodifiedj KHj KchangesK`blob_urlrhttps://github.com/palantir/atlasdb/blob/707c7d0eb606b92517c757154a67c729d24e360c/atlasdb-ete-tests%2Fbuild.gradleraw_urlqhttps://github.com/palantir/atlasdb/raw/707c7d0eb606b92517c757154a67c729d24e360c/atlasdb-ete-tests%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fbuild.gradle?ref=707c7d0eb606b92517c757154a67c729d24e360cpatchXV  @@ -94,62 +94,110 @@ dependencies {
     testCompileOnly 'org.immutables:value::annotations'
 }
 
+// ETE Test Wiring
+//
+// For each non-trivially sized ETE test and all ETE test suites:
+// - define a custom gradle task for just that test [suite]
+// - remove that test [suite] from :atlasdb-ete-tests:test
+// - add that custom task as a dependency of :customEteTasks, which :atlasdb-ete-tests:test then depends on
+// - use task exclusion in our circleci commands to ensure only specific things get run in certain containers at CI time
+//
+// This does a few things:
+// - for test suites, makes it easier to reason about which suite class executions belong to what test suites in the
+//   generated junit reports and test suite cost in gradle build scans
+// - allows us to run certain tests in their own containers for CI speed reasons
+// - on the off chance someone adds or re-names a test in the future, but forgets to give it its own task and wiring
+//   described above, that test will still get run via :atlasdb-ete-tests:test to avoid a situation where the new test
+//   isn't run in CI without us realizing
+
+// Tasks required before ETE tests can be run
+
 task prepareForEteTests(type: Copy, dependsOn: 'distTar') {
     from distTar.outputs
     into 'build/docker/'
 
     rename { filename -> 'atlasdb-ete-snapshot.tgz' }
 }
 
-// standalone test with its own task
-// is very expensive and so separate task is used to control when/where it is executed
-task timeLockMigrationTest(type: Test) {
-    dependsOn prepareForEteTests, ':timelock-server-distribution:dockerTag'
+task prepareForTimelockEteTests() {
+    dependsOn 'prepareForEteTests', ':timelock-server-distribution:dockerTag'
+}
+
+// Individual ETE Test Tasks
+
+task timeLockMigrationTest(type: Test, dependsOn: 'prepareForTimelockEteTests') {
     filter {
         includeTestsMatching 'com.palantir.atlasdb.ete.standalone.TimeLockMigrationEteTest'
     }
 }
 
-// test suites with their own test tasks
-// not sure why some have it and others do not
+task multiClientWithPostgresTimelockAndPostgresTest(type: Test, dependsOn: 'prepareForTimelockEteTests') {
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.MultiClientWithPostgresTimelockAndPostgresTestSuite'
+    }
+}
 
-task singleClientWithEmbeddedAndThreeNodeCassandraTest(type: Test) {
-    dependsOn prepareForEteTests
+task multiClientWithTimelockAndCassandraTest(type: Test, dependsOn: 'prepareForTimelockEteTests') {
     filter {
-        includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite'
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.MultiClientWithTimelockAndCassandraTestSuite'
     }
 }
 
-task singleClientWithEmbeddedAndPostgresTest(type: Test) {
-    dependsOn prepareForEteTests
+task singleClientWithEmbeddedAndCassandraTest(type: Test, dependsOn: 'prepareForEteTests') {
     filter {
-        includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndPostgresTestSuite'
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndCassandraTestSuite'
     }
 }
 
-task singleClientWithEmbeddedAndOracleTest(type: Test) {
-    dependsOn prepareForEteTests
+task singleClientWithEmbeddedAndOracleTest(type: Test, dependsOn: 'prepareForEteTests') {
     filter {
         includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndOracleTestSuite'
     }
 }
 
+task singleClientWithEmbeddedAndPostgresTest(type: Test, dependsOn: 'prepareForEteTests') {
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndPostgresTestSuite'
+    }
+}
+
+task singleClientWithEmbeddedAndThreeNodeCassandraTest(type: Test, dependsOn: 'prepareForEteTests') {
+    filter {
+        includeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite'
+    }
+}
+
+// Re-wire 'test' to include custom tasks as dependencies via a single task instead of directly running them
+
+task customEteTasks() {
+    dependsOn multiClientWithPostgresTimelockAndPostgresTest,
+        multiClientWithTimelockAndCassandraTest,
+        singleClientWithEmbeddedAndCassandraTest,
+        singleClientWithEmbeddedAndOracleTest,
+        singleClientWithEmbeddedAndPostgresTest,
+        singleClientWithEmbeddedAndThreeNodeCassandraTest
+        // timeLockMigrationTest // intentionally not run on every commit/PR due to length
+}
+
 test {
-    // this list explicitly doesn't include timelockMigration because it's too expensive to run on every PR
-    // this list explicitly doesn't include singleClientWithEmbeddedAndOracleTest; not sure why
-    // :timelock-server-distribution:dockerTag needed by any ETE test that spins up a timelock-server
-    dependsOn prepareForEteTests, ':timelock-server-distribution:dockerTag', singleClientWithEmbeddedAndThreeNodeCassandraTest, singleClientWithEmbeddedAndPostgresTest
+    dependsOn customEteTasks
 
     filter {
-        // include standalone and suite tests
-        includeTestsMatching 'com.palantir.atlasdb.ete.standalone.*'
-        includeTestsMatching 'com.palantir.atlasdb.ete.suites.*'
+        // in the expected case "test" doesn't actually have any tests to run because they're all in custom tasks
+        // gradle would normally fail a task of type Test that doesn't actually have any tests to run
+        setFailOnNoMatchingTests(false)
+
+        // suite classes that should not be run outside of suites
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suiteclasses.*'
 
-        // exclude any tests with their own 1-off tasks
+        // tests with 1-off tasks
         excludeTestsMatching 'com.palantir.atlasdb.ete.standalone.TimeLockMigrationEteTest'
-        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite'
-        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndPostgresTestSuite'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.MultiClientWithPostgresTimelockAndPostgresTestSuite'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.MultiClientWithTimelockAndCassandraTestSuite'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndCassandraTestSuite'
         excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndOracleTestSuite'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndPostgresTestSuite'
+        excludeTestsMatching 'com.palantir.atlasdb.ete.suites.SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite'
     }
 }
 u}(j (46b08373d5f2c6671184ea4db24958e4b16ecbf7j %scripts/circle-ci/run-circle-tests.shj modifiedj Kj Kj Kj {https://github.com/palantir/atlasdb/blob/707c7d0eb606b92517c757154a67c729d24e360c/scripts%2Fcircle-ci%2Frun-circle-tests.shj  zhttps://github.com/palantir/atlasdb/raw/707c7d0eb606b92517c757154a67c729d24e360c/scripts%2Fcircle-ci%2Frun-circle-tests.shj https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=707c7d0eb606b92517c757154a67c729d24e360cj X  @@ -15,13 +15,13 @@ function checkDocsBuild {
 
 CONTAINER_1=(':atlasdb-cassandra-integration-tests:testSubset1')
 
-CONTAINER_2=(':atlasdb-ete-tests:check')
+CONTAINER_2=(':atlasdb-ete-tests:check' ':atlasdb-ete-tests:multiClientWithPostgresTimelockAndPostgresTest' ':atlasdb-ete-tests:multiClientWithTimelockAndCassandraTest')
 
 CONTAINER_3=(':timelock-server:integTest')
 
 CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:singleClientWithEmbeddedAndPostgresTest')
 
-CONTAINER_5=(':lock-impl:check' ':atlasdb-dbkvs-tests:postgresTest' ':atlasdb-ete-test-utils:check' ':atlasdb-ete-tests:singleClientWithEmbeddedAndThreeNodeCassandraTest')
+CONTAINER_5=(':lock-impl:check' ':atlasdb-dbkvs-tests:postgresTest' ':atlasdb-ete-test-utils:check' ':atlasdb-ete-tests:singleClientWithEmbeddedAndThreeNodeCassandraTest' ':atlasdb-ete-tests:singleClientWithEmbeddedAndCassandraTest')
 
 CONTAINER_6=(':timelock-server:suiteTest')
 
@@ -92,7 +92,7 @@ export CASSANDRA_HEAP_NEWSIZE=64m
 case "$test_suite_index" in
     0) ./gradlew $BASE_GRADLE_ARGS check $CONTAINER_0_EXCLUDE_ARGS -x :atlasdb-jepsen-tests:check;;
     1) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_1[@]} ;;
-    2) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_2[@]} -x :atlasdb-ete-tests:singleClientWithEmbeddedAndThreeNodeCassandraTest -x atlasdb-ete-tests:singleClientWithEmbeddedAndPostgresTest -x :atlasdb-ete-tests:timeLockMigrationTest ;;
+    2) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_2[@]} -x :atlasdb-ete-tests:customEteTasks ;;
     3) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_3[@]} ;;
     4) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_4[@]} ;;
     5) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_5[@]} ;;ueu(9832b147b793579477ca7c67a684391431722e28}(sha(9832b147b793579477ca7c67a684391431722e28node_idEC_kwDOAjP5fdoAKDk4MzJiMTQ3Yjc5MzU3OTQ3N2NhN2M2N2E2ODQzOTE0MzE3MjJlMjgcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-15T15:13:00Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-05-15T15:13:00Zumessage"Autorelease 0.854.0-rc6

[skip ci]tree}(j (7798105d8a030b29d8973acfbb90d62ffad4930furl`https://api.github.com/repos/palantir/atlasdb/git/trees/7798105d8a030b29d8973acfbb90d62ffad4930fuj( bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9832b147b793579477ca7c67a684391431722e28
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRiS/0ACgkQhbrR8ip7mDBynwEAmkg4Zw5Qf1qx1ymVg7DSSAAJ
moavfiFlubU7l6gyHBQBAOu1BDHo9/BbcG6RKBGesRWnHzAIlIjWHaCGw2eAkPDp
=y2Qi
-----END PGP SIGNATURE-----
payloadX(  tree 7798105d8a030b29d8973acfbb90d62ffad4930f
parent cc64c0d5cc22f3361810af85fbf301b36ba6ef69
author aalouane <30903736+ergo14@users.noreply.github.com> 1684163580 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684163580 +0000

Autorelease 0.854.0-rc6

[skip ci]uuj( ^https://api.github.com/repos/palantir/atlasdb/commits/9832b147b793579477ca7c67a684391431722e28html_urlShttps://github.com/palantir/atlasdb/commit/9832b147b793579477ca7c67a684391431722e28comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9832b147b793579477ca7c67a684391431722e28/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j( #https://api.github.com/users/ergo14j6 https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j; svc-autoreleasej= J(j MDQ6VXNlcjUxNzE4MzQ2j? 4https://avatars.githubusercontent.com/u/51718346?v=4jA h5j( ,https://api.github.com/users/svc-autoreleasej6 "https://github.com/svc-autoreleasejD 6https://api.github.com/users/svc-autorelease/followersjF Chttps://api.github.com/users/svc-autorelease/following{/other_user}jH <https://api.github.com/users/svc-autorelease/gists{/gist_id}jJ Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jL :https://api.github.com/users/svc-autorelease/subscriptionsjN 1https://api.github.com/users/svc-autorelease/orgsjP 2https://api.github.com/users/svc-autorelease/reposjR =https://api.github.com/users/svc-autorelease/events{/privacy}jT <https://api.github.com/users/svc-autorelease/received_eventsjV UserjX uparents]}(j (cc64c0d5cc22f3361810af85fbf301b36ba6ef69j( ^https://api.github.com/repos/palantir/atlasdb/commits/cc64c0d5cc22f3361810af85fbf301b36ba6ef69j6 Shttps://github.com/palantir/atlasdb/commit/cc64c0d5cc22f3361810af85fbf301b36ba6ef69uastats}(totalK 	additionsK 	deletionsK ufiles]u(c3260588bd4307afc042b07f837352e38d69fff1}(sha(c3260588bd4307afc042b07f837352e38d69fff1node_idEC_kwDOAjP5fdoAKGMzMjYwNTg4YmQ0MzA3YWZjMDQyYjA3ZjgzNzM1MmUzOGQ2OWZmZjEcommit}(author}(name
Samuel Krameremailskramer@palantir.comdate2023-04-04T09:34:03Zu	committer}(j 
Samuel Kramerj skramer@palantir.comj 2023-04-04T09:34:03Zumessagedump transaction log by defaulttree}(jx (15d7df322c3312b51a06506e821de66187ddbb64url`https://api.github.com/repos/palantir/atlasdb/git/trees/15d7df322c3312b51a06506e821de66187ddbb64uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c3260588bd4307afc042b07f837352e38d69fff1
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj ^https://api.github.com/repos/palantir/atlasdb/commits/c3260588bd4307afc042b07f837352e38d69fff1html_urlShttps://github.com/palantir/atlasdb/commit/c3260588bd4307afc042b07f837352e38d69fff1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c3260588bd4307afc042b07f837352e38d69fff1/commentsj~ }(login
Sam-KrameridJ^2_ jz MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ jz MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jx (eceb15181f0668678cfe5e1e0d91d2d0a20d6366j ^https://api.github.com/repos/palantir/atlasdb/commits/eceb15181f0668678cfe5e1e0d91d2d0a20d6366j Shttps://github.com/palantir/atlasdb/commit/eceb15181f0668678cfe5e1e0d91d2d0a20d6366uastats}(totalK	additionsK	deletionsK ufiles]}(jx (b4ee017980d3bf2f40b872865df3d113ba69f56bfilenamegatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RunOnceWorkflowRunner.javastatusmodifiedjح Kj٭ K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/c3260588bd4307afc042b07f837352e38d69fff1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRunOnceWorkflowRunner.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c3260588bd4307afc042b07f837352e38d69fff1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRunOnceWorkflowRunner.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRunOnceWorkflowRunner.java?ref=c3260588bd4307afc042b07f837352e38d69fff1patchXy  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
@@ -36,5 +37,6 @@ public void run(Workflow workflow, List<InvariantReporter<?>> invariants) {
                 log.error("Caught an exception when running and reporting an invariant.", e);
             }
         });
+        log.info("Dumping transaction log {}", SafeArg.of("transactionLog", workflowHistory.history()));
     }
 }uau(4f1a99e8d5da7e551dc91ccc088903afa29cd276}(sha(4f1a99e8d5da7e551dc91ccc088903afa29cd276node_idEC_kwDOAjP5fdoAKDRmMWE5OWU4ZDVkYTdlNTUxZGM5MWNjYzA4ODkwM2FmYTI5Y2QyNzYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-11T10:12:51Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-04-11T10:12:51Zumessagescratchtree}(j (b23c0805e05a00be4b8129d3b68fe8ab5a41b174url`https://api.github.com/repos/palantir/atlasdb/git/trees/b23c0805e05a00be4b8129d3b68fe8ab5a41b174uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4f1a99e8d5da7e551dc91ccc088903afa29cd276
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ1MqMACgkQTLdFKain
zjx01Qf+OaV6CaYG2oA6zSCDEmJ2GnJMkJXcaBTMkpJKEg5EIN0FPoN3bmH6GUpO
KBcdVoilfwzOEfHg9GdV/ksZ4b0qN2/UIPaDlQrKqyWKtJ/u7E8f6PMSAkTOIqMt
+8DEX35DECyfPCK1R3LAMuCWctYL77tck9vT2NHkKSIUYvnPn1Aj1B9FMWyQBRJL
3WfOKIcxI1ycHInItWr/It2yicgiWQ9XkxypOx7Cn/KljqjhtlF5U1jjh/GeOuJv
bHNZN5+hRobmhwsPgXnLOEwAH6EkJgwvnGKI2MaGRbiisrK8lUas7ej0dqBsjt74
qPB8aXM91N2UGOxXcLMEw43/j5eQEg==
=LQOi
-----END PGP SIGNATURE-----payloadtree b23c0805e05a00be4b8129d3b68fe8ab5a41b174
parent 5b5719651efd7641cc3d9cdc07e43f8a5d5dcd76
author Jeremy Kong <jkong@palantir.com> 1681207971 +0800
committer Jeremy Kong <jkong@palantir.com> 1681207971 +0800

scratch
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/4f1a99e8d5da7e551dc91ccc088903afa29cd276html_urlShttps://github.com/palantir/atlasdb/commit/4f1a99e8d5da7e551dc91ccc088903afa29cd276comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4f1a99e8d5da7e551dc91ccc088903afa29cd276/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j! 1https://api.github.com/users/jeremyk-91/followersj# >https://api.github.com/users/jeremyk-91/following{/other_user}j% 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j' >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j) 5https://api.github.com/users/jeremyk-91/subscriptionsj+ ,https://api.github.com/users/jeremyk-91/orgsj- -https://api.github.com/users/jeremyk-91/reposj/ 8https://api.github.com/users/jeremyk-91/events{/privacy}j1 7https://api.github.com/users/jeremyk-91/received_eventsj3 Userj5 uparents]}(j (5b5719651efd7641cc3d9cdc07e43f8a5d5dcd76j ^https://api.github.com/repos/palantir/atlasdb/commits/5b5719651efd7641cc3d9cdc07e43f8a5d5dcd76j Shttps://github.com/palantir/atlasdb/commit/5b5719651efd7641cc3d9cdc07e43f8a5d5dcd76uastats}(totalK%	additionsK%	deletionsK ufiles]}(j (0c5dc5f176d5f16de5ef54ac7d8f23aa88db767dfilename\timelock-impl/src/main/java/com/palantir/atlasdb/timelock/UndertowAsyncTimelockResource.javastatusaddedjO K%jP K changesK%blob_urlhttps://github.com/palantir/atlasdb/blob/4f1a99e8d5da7e551dc91ccc088903afa29cd276/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FUndertowAsyncTimelockResource.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4f1a99e8d5da7e551dc91ccc088903afa29cd276/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FUndertowAsyncTimelockResource.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FUndertowAsyncTimelockResource.java?ref=4f1a99e8d5da7e551dc91ccc088903afa29cd276patchX  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock;
+
+import com.google.common.util.concurrent.ListenableFuture;
+import com.palantir.conjure.java.undertow.annotations.Handle;
+import com.palantir.conjure.java.undertow.annotations.HttpMethod;
+import com.palantir.logsafe.Safe;
+
+public final class UndertowAsyncTimelockResource {
+    private final TimelockNamespaces namespaces;
+
+    public UndertowAsyncTimelockResource(TimelockNamespaces namespaces) {
+        this.namespaces = namespaces;
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/fresh-timestamp")
+    public ListenableFuture<Long> getFreshTimestamp(@Safe @Handle.PathParam String namespace) {
+        return namespaces.get(namespace).getTimelockService().getFreshTimestampAsync();
+    }
+
+
+}uau(7e7f0c360c2c5cb5c3ce072f1e29dbe6563b4614}(sha(7e7f0c360c2c5cb5c3ce072f1e29dbe6563b4614node_idEC_kwDOAjP5fdoAKDdlN2YwYzM2MGMyYzVjYjVjM2NlMDcyZjFlMjlkYmU2NTYzYjQ2MTQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-10T13:29:23Zu	committer}(jl 
Sam Kramerjn skramer@palantir.comjp 2023-08-10T13:29:23Zumessage8create an abstract class for stoppable transaction taskstree}(jd (d008db15dcf346d3319f1509906198d742902689url`https://api.github.com/repos/palantir/atlasdb/git/trees/d008db15dcf346d3319f1509906198d742902689uj| bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7e7f0c360c2c5cb5c3ce072f1e29dbe6563b4614
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTU5jQACgkQmPPOpKR4
XS2H+QgAsS5DTjt/bicZew2T+EEgyPcHXzCx3dWEcgKToaGDQlMHKSRv2gnblCRu
6F9MLX0GtVYDAEl2lrZ4w8mM8Jc6AbEZcC1rhWDeAmBNruqmkKCyk5rtyI4D4/6b
OC0IATC2Uly2pHsLjHXGNQ//dlbZZ8pT4+0TXoDbOINe71VbX8bXTmFSay2hjDND
mZ5SV96OiWR8r/3/naNlo/jY3ZTM0eFlig0nDFOvb0SQszZcitOjASZBf9UqES0y
45rHKomFv73nCA0jQ1SrOGRL5z68LuE27aohkQAlyptSHFuqOC25kBmpJ1A9rbgz
kJnxp71T2jbYKKL5Qku0V47CSbeIEQ==
=dYkB
-----END PGP SIGNATURE-----payloadX  tree d008db15dcf346d3319f1509906198d742902689
parent d9dc21a21e545eb9c86655062ed27cbc17174055
author Sam Kramer <skramer@palantir.com> 1691674163 +0100
committer Sam Kramer <skramer@palantir.com> 1691674163 +0100

create an abstract class for stoppable transaction tasks
uuj| ^https://api.github.com/repos/palantir/atlasdb/commits/7e7f0c360c2c5cb5c3ce072f1e29dbe6563b4614html_urlShttps://github.com/palantir/atlasdb/commit/7e7f0c360c2c5cb5c3ce072f1e29dbe6563b4614comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7e7f0c360c2c5cb5c3ce072f1e29dbe6563b4614/commentsjj }(login
Sam-KrameridJ^2_ jf MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j| 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujr }(j 
Sam-Kramerj J^2_ jf MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j| 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jd (d9dc21a21e545eb9c86655062ed27cbc17174055j| ^https://api.github.com/repos/palantir/atlasdb/commits/d9dc21a21e545eb9c86655062ed27cbc17174055j Shttps://github.com/palantir/atlasdb/commit/d9dc21a21e545eb9c86655062ed27cbc17174055uastats}(totalKr	additionsKI	deletionsK)ufiles](}(jd (818c6d21db60ab2cc8e76725d48fa24dcec6401ffilenameoatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/StoppableKeyedTransactionTask.javastatusaddedjƮ K8jǮ K changesK8blob_urlhttps://github.com/palantir/atlasdb/blob/7e7f0c360c2c5cb5c3ce072f1e29dbe6563b4614/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FStoppableKeyedTransactionTask.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7e7f0c360c2c5cb5c3ce072f1e29dbe6563b4614/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FStoppableKeyedTransactionTask.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FStoppableKeyedTransactionTask.java?ref=7e7f0c360c2c5cb5c3ce072f1e29dbe6563b4614patchX+  @@ -0,0 +1,56 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.function.Consumer;
+
+/**
+ * A keyed transaction task which will stop running if it encounters a failure. Implementing classes must record the
+ * failure themselves, and should not throw an exception.
+ */
+public abstract class StoppableKeyedTransactionTask<T extends TransactionStore, ViolationT>
+        implements KeyedTransactionTask<T> {
+
+    private final AtomicBoolean stopRunning;
+    private final Consumer<ViolationT> onFailure;
+
+    public StoppableKeyedTransactionTask(AtomicBoolean stopRunning, Consumer<ViolationT> onFailure) {
+        this.stopRunning = stopRunning;
+        this.onFailure = onFailure;
+    }
+
+    protected final void recordFailure(ViolationT violation) {
+        if (stopRunning.compareAndSet(false, true)) {
+            onFailure.accept(violation);
+        }
+    }
+
+    protected abstract Optional<WitnessedTransaction> run(T store, Integer index);
+
+    @Override
+    public final Optional<WitnessedTransaction> apply(T store, Integer index) {
+        if (stopRunning.get()) {
+            return Optional.empty();
+        }
+
+        return run(store, index);
+    }
+}u}(jd (0dfba03e579b561191288f2432ebd763d77ce144j̮ katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflows.javajή modifiedjƮ KjǮ KjЮ K%jѮ https://github.com/palantir/atlasdb/blob/7e7f0c360c2c5cb5c3ce072f1e29dbe6563b4614/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javajӮ https://github.com/palantir/atlasdb/raw/7e7f0c360c2c5cb5c3ce072f1e29dbe6563b4614/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javajծ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.java?ref=7e7f0c360c2c5cb5c3ce072f1e29dbe6563b4614j׮ X  @@ -26,6 +26,7 @@
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
+import com.palantir.atlasdb.workload.workflow.StoppableKeyedTransactionTask;
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -60,11 +61,7 @@ public static Workflow create(
             BankBalanceWorkflowConfiguration bankBalanceWorkflowConfiguration,
             ListeningExecutorService executionExecutor) {
         BankBalanceRunTask runTask = new BankBalanceRunTask(bankBalanceWorkflowConfiguration);
-        return DefaultWorkflow.create(
-                store,
-                (txnStore, _index) -> runTask.run(txnStore),
-                bankBalanceWorkflowConfiguration,
-                executionExecutor);
+        return DefaultWorkflow.create(store, runTask, bankBalanceWorkflowConfiguration, executionExecutor);
     }
 
     @VisibleForTesting
@@ -75,21 +72,14 @@ static Workflow create(
             AtomicBoolean skipRunning,
             Consumer<Map<Integer, Optional<Integer>>> onFailure) {
         BankBalanceRunTask runTask = new BankBalanceRunTask(skipRunning, bankBalanceWorkflowConfiguration, onFailure);
-        return DefaultWorkflow.create(
-                store,
-                (txnStore, _index) -> runTask.run(txnStore),
-                bankBalanceWorkflowConfiguration,
-                executionExecutor);
+        return DefaultWorkflow.create(store, runTask, bankBalanceWorkflowConfiguration, executionExecutor);
     }
 
-    private static class BankBalanceRunTask {
-
-        private final Consumer<Map<Integer, Optional<Integer>>> onFailure;
-        private final AtomicBoolean skipRunning;
-
+    private static class BankBalanceRunTask
+            extends StoppableKeyedTransactionTask<InteractiveTransactionStore, Map<Integer, Optional<Integer>>> {
         private final BankBalanceWorkflowConfiguration workflowConfiguration;
 
-        public BankBalanceRunTask(BankBalanceWorkflowConfiguration workflowConfiguration) {
+        private BankBalanceRunTask(BankBalanceWorkflowConfiguration workflowConfiguration) {
             this(
                     new AtomicBoolean(),
                     workflowConfiguration,
@@ -98,19 +88,16 @@ public BankBalanceRunTask(BankBalanceWorkflowConfiguration workflowConfiguration
                             SafeArg.of("maybeBalances", maybeBalances)));
         }
 
-        public BankBalanceRunTask(
+        private BankBalanceRunTask(
                 AtomicBoolean skipRunning,
                 BankBalanceWorkflowConfiguration workflowConfiguration,
                 Consumer<Map<Integer, Optional<Integer>>> onFailure) {
-            this.skipRunning = skipRunning;
+            super(skipRunning, onFailure);
             this.workflowConfiguration = workflowConfiguration;
-            this.onFailure = onFailure;
         }
 
-        public Optional<WitnessedTransaction> run(InteractiveTransactionStore store) {
-            if (skipRunning.get()) {
-                return Optional.empty();
-            }
+        @Override
+        public Optional<WitnessedTransaction> run(InteractiveTransactionStore store, Integer _index) {
             workflowConfiguration.transactionRateLimiter().acquire();
             return store.readWrite(txn -> {
                 Map<Integer, Optional<Integer>> maybeBalances = getAccountBalances(txn);
@@ -119,9 +106,7 @@ public Optional<WitnessedTransaction> run(InteractiveTransactionStore store) {
                                 workflowConfiguration.numberOfAccounts(),
                                 workflowConfiguration.initialBalancePerAccount())
                         .ifPresentOrElse(balances -> performTransfers(txn, balances), () -> {
-                            if (skipRunning.compareAndSet(false, true)) {
-                                onFailure.accept(maybeBalances);
-                            }
+                            recordFailure(maybeBalances);
                         });
             });
         }u}(jd (d58eb1f1b2b1b242a5f029c032c4ceb281e2c1a7j̮ datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflows.javajή modifiedjƮ KjǮ KjЮ KjѮ https://github.com/palantir/atlasdb/blob/7e7f0c360c2c5cb5c3ce072f1e29dbe6563b4614/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javajӮ https://github.com/palantir/atlasdb/raw/7e7f0c360c2c5cb5c3ce072f1e29dbe6563b4614/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javajծ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.java?ref=7e7f0c360c2c5cb5c3ce072f1e29dbe6563b4614j׮ XR
  @@ -23,7 +23,7 @@
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
-import com.palantir.atlasdb.workload.workflow.KeyedTransactionTask;
+import com.palantir.atlasdb.workload.workflow.StoppableKeyedTransactionTask;
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
@@ -83,27 +83,20 @@ static Workflow create(
         return DefaultWorkflow.create(store, task, ringWorkflowConfiguration, executionExecutor);
     }
 
-    private static final class RingWorkflowTask implements KeyedTransactionTask<InteractiveTransactionStore> {
-
-        private final AtomicBoolean skipRunning;
-        private final Consumer<RingValidationException> onFailure;
+    private static final class RingWorkflowTask
+            extends StoppableKeyedTransactionTask<InteractiveTransactionStore, RingValidationException> {
         private final RingWorkflowConfiguration workflowConfiguration;
 
         public RingWorkflowTask(
                 AtomicBoolean skipRunning,
                 Consumer<RingValidationException> onFailure,
                 RingWorkflowConfiguration workflowConfiguration) {
-            this.skipRunning = skipRunning;
-            this.onFailure = onFailure;
+            super(skipRunning, onFailure);
             this.workflowConfiguration = workflowConfiguration;
         }
 
         @Override
-        public Optional<WitnessedTransaction> apply(InteractiveTransactionStore store, Integer integer) {
-            if (skipRunning.get()) {
-                return Optional.empty();
-            }
-
+        public Optional<WitnessedTransaction> run(InteractiveTransactionStore store, Integer integer) {
             workflowConfiguration.transactionRateLimiter().acquire();
             String table = workflowConfiguration.tableConfiguration().tableName();
             int ringSize = workflowConfiguration.ringSize();
@@ -116,9 +109,7 @@ public Optional<WitnessedTransaction> apply(InteractiveTransactionStore store, I
                             .asMap()
                             .forEach((rootNode, nextNode) -> txn.write(table, cell(rootNode), nextNode));
                 } catch (RingValidationException e) {
-                    if (skipRunning.compareAndSet(false, true)) {
-                        onFailure.accept(e);
-                    }
+                    recordFailure(e);
                 }
             });
         }ueu(9a9498864da1458f73cfe6727b6f7ad06e27f93c}(sha(9a9498864da1458f73cfe6727b6f7ad06e27f93cnode_idEC_kwDOAjP5fdoAKDlhOTQ5ODg2NGRhMTQ1OGY3M2NmZTY3MjdiNmY3YWQwNmUyN2Y5M2Mcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-18T17:20:44Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-05-18T17:20:44Zumessage	no captortree}(j (f9d3c5c6b550a0dc807796e63766de31d311dc36url`https://api.github.com/repos/palantir/atlasdb/git/trees/f9d3c5c6b550a0dc807796e63766de31d311dc36uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9a9498864da1458f73cfe6727b6f7ad06e27f93c
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRmXmwACgkQTLdFKain
zjzPkwf+KVjOIBf8rgRU2RwLZKtjEXql2fDFv3MkQsQCwP0u/z2CvBQZRWSdB3zq
ZrgYjx/4UdNn9zr6wQch4DHO7DaeRlsSQJNQtDXIDHnuy6jZVVJaxSVDEb7Y4bEF
miH/xoWFjpzTV0cNi1C36WydQmwTMbnTXYWQzl7STXNboshoaVHBoh//03OPFqld
yQoExicIqx9fxqmV5F4hDuIByOZHVDim3SzRplspOgA5VL9IPZW0cBkjpv11S5Aj
MDzjM0FjjfO01cFf5E0+roGZvGOI73kWO0PXS1V51VGFo6rPZVyTCh+3yo+qXUlW
5RhZolHTuX/QtQ8ocz7Txn86JofHfg==
=ZQnw
-----END PGP SIGNATURE-----      payloadtree f9d3c5c6b550a0dc807796e63766de31d311dc36
parent 1f06bbcb1a86e0c853b03c6e9153e4684be99fcb
author Jeremy Kong <jkong@palantir.com> 1684430444 +0100
committer Jeremy Kong <jkong@palantir.com> 1684430444 +0100

no captor
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/9a9498864da1458f73cfe6727b6f7ad06e27f93chtml_urlShttps://github.com/palantir/atlasdb/commit/9a9498864da1458f73cfe6727b6f7ad06e27f93ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9a9498864da1458f73cfe6727b6f7ad06e27f93c/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj! >https://api.github.com/users/jeremyk-91/following{/other_user}j# 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j% >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j' 5https://api.github.com/users/jeremyk-91/subscriptionsj) ,https://api.github.com/users/jeremyk-91/orgsj+ -https://api.github.com/users/jeremyk-91/reposj- 8https://api.github.com/users/jeremyk-91/events{/privacy}j/ 7https://api.github.com/users/jeremyk-91/received_eventsj1 Userj3 uparents]}(j (1f06bbcb1a86e0c853b03c6e9153e4684be99fcbj ^https://api.github.com/repos/palantir/atlasdb/commits/1f06bbcb1a86e0c853b03c6e9153e4684be99fcbj Shttps://github.com/palantir/atlasdb/commit/1f06bbcb1a86e0c853b03c6e9153e4684be99fcbuastats}(totalK	additionsK 	deletionsKufiles]}(j (8de3e641c895bf2806f3ce1d64f371738bb4ec9efilenamelatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javastatusmodifiedjM K jN KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9a9498864da1458f73cfe6727b6f7ad06e27f93c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9a9498864da1458f73cfe6727b6f7ad06e27f93c/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=9a9498864da1458f73cfe6727b6f7ad06e27f93cpatchXZ  @@ -190,7 +190,6 @@ public void invariantReportsViolationsFromTransactionHistory() {
                 .build();
         invariant.accept(falseHistory, reference::set);
 
-        ArgumentCaptor<List<CrossCellInconsistency>> captor = ArgumentCaptor.forClass(List.class);
         assertThat(reference.get()).hasSize(ITERATION_COUNT - 1);
     }
 uau(e62f84c7936fac099c18eebba4abb782789bc5e0}(sha(e62f84c7936fac099c18eebba4abb782789bc5e0node_idEC_kwDOAjP5fdoAKGU2MmY4NGM3OTM2ZmFjMDk5YzE4ZWViYmE0YWJiNzgyNzg5YmM1ZTAcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-23T20:12:45Zu	committer}(jj Jeremy Kongjl jkong@palantir.comjn 2023-05-23T20:12:45ZumessageMMerge remote-tracking branch 'origin/develop' into jkong/antithesis-fall-guystree}(jb (6501d387d103f4143932ebe32e2231f778bd402eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/6501d387d103f4143932ebe32e2231f778bd402eujz bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e62f84c7936fac099c18eebba4abb782789bc5e0
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRtHj8ACgkQTLdFKain
zjyYoQgAucCylhp+1OA8yWxh7cA5FWtUsb/xYHhZXGSEEOtjO28XUvcaZcWvjPri
A9uoKkbCa+QOPmO/naMV0O0t/+thAei35TzfRjHLTycLnXKVPuvHxvABgS+4r/MT
xmaXzzNfCosgW/bH5Y8R5JJX+IXgjjbO7w6NOerVbgo+cV1LGan5JQJt7xdvS4Ek
28cUtDPuF8QJL174zz6G59GsUjv0LWxzIM7Sb2rQVzvauCJLx8neNQxtUd85I92i
UA4Zou6bsPibaaM72jXGPzfOAeHiVzW4OBlNRbV3XLBN7nD4PERPhMwPDUZ8AnQX
DDEkxpPV2VwYymz1+GsrktYy63DKXQ==
=PgWp
-----END PGP SIGNATURE-----payloadXR  tree 6501d387d103f4143932ebe32e2231f778bd402e
parent 09bf36946428fa380e00a724683d6a2fb86a57e9
parent a874f84093e25da6d594d8454175fbc4316dfb88
author Jeremy Kong <jkong@palantir.com> 1684872765 +0100
committer Jeremy Kong <jkong@palantir.com> 1684872765 +0100

Merge remote-tracking branch 'origin/develop' into jkong/antithesis-fall-guys
uujz ^https://api.github.com/repos/palantir/atlasdb/commits/e62f84c7936fac099c18eebba4abb782789bc5e0html_urlShttps://github.com/palantir/atlasdb/commit/e62f84c7936fac099c18eebba4abb782789bc5e0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e62f84c7936fac099c18eebba4abb782789bc5e0/commentsjh }(login
jeremyk-91idJZ jd MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jz 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujp }(j 
jeremyk-91j JZ jd MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5jz 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents](}(jb (09bf36946428fa380e00a724683d6a2fb86a57e9jz ^https://api.github.com/repos/palantir/atlasdb/commits/09bf36946428fa380e00a724683d6a2fb86a57e9j Shttps://github.com/palantir/atlasdb/commit/09bf36946428fa380e00a724683d6a2fb86a57e9u}(jb (a874f84093e25da6d594d8454175fbc4316dfb88jz ^https://api.github.com/repos/palantir/atlasdb/commits/a874f84093e25da6d594d8454175fbc4316dfb88j Shttps://github.com/palantir/atlasdb/commit/a874f84093e25da6d594d8454175fbc4316dfb88uestats}(totalM		additionsM	deletionsMufiles](}(jb (869937b7996e6e9b9e16721bba28e199b9d1dd82filename,.baseline/checkstyle/custom-suppressions.xmlstatusmodifiedjȯ K jɯ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/.baseline%2Fcheckstyle%2Fcustom-suppressions.xmlraw_urlhttps://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/.baseline%2Fcheckstyle%2Fcustom-suppressions.xmlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/.baseline%2Fcheckstyle%2Fcustom-suppressions.xml?ref=e62f84c7936fac099c18eebba4abb782789bc5e0patchXT  @@ -26,7 +26,6 @@
     <suppress files=".*" checks="RedundantModifier"/>
     <suppress files=".*" checks="SummaryJavadocCheck"/>
     <suppress files=".*" checks="VisibilityModifier"/>
-    <suppress files=".*" id="BanGuavaCaches"/>
 
     <!-- Certain AtlasDB projects are ignored. -->
     <suppress files="atlasdb-client/*" checks="."/>u}(jb (a31b7819db3f6f91597edd144957cf18b2f7a613jί .circleci/config.ymljЯ modifiedjȯ Kjɯ Kjү Kjӯ hhttps://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/.circleci%2Fconfig.ymljկ ghttps://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/.circleci%2Fconfig.ymljׯ zhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -154,8 +154,8 @@ workflows:
           matrix:
             alias: test-no-tl
             parameters:
-              # intentionally excluding 12 (TimeLock migration ETE test) from this collection
-              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13]
+              # intentionally excluding 13 (TimeLock migration ETE test) from this collection
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14]
           filters:
             tags:
               only: /.*/
@@ -164,7 +164,7 @@ workflows:
           matrix:
             alias: test-tl
             parameters:
-              suite: [12]
+              suite: [13]
           filters:
             branches:
               only: /(tlmete.*|develop)/u}(jb (2dbc24b32d3c1d36a5252a785ef380d28cefa391jί 
.java-versionjЯ modifiedjȯ Kjɯ Kjү Kjӯ _https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/.java-versionjկ ^https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/.java-versionjׯ qhttps://api.github.com/repos/palantir/atlasdb/contents/.java-version?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ @@ -1 +1 @@
-11
+11.0u}(jb (b4b3fdb6c8a3dbc046c441a7d9341e93b8857c14jί Katlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/Buggify.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -22,7 +22,7 @@
  * downstream users of this class can easily swap out their {@link BuggifyFactory} to change the behavior of their
  * class, without having to change the implementation of their class. This is useful for tests, as we can force the
  * behavior of never running the provided runnable, or always running the provided runnable.
- *
+ * <p>
  * See https://apple.github.io/foundationdb/client-testing.html for more information.
  */
 public interface Buggify {u}(jb (bf4172a8a7e4e4576cacc81f228d95963322a41djί Watlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyFactory.javajЯ addedjȯ Kjɯ K jү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -0,0 +1,29 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+
+public enum NoOpBuggifyFactory implements BuggifyFactory {
+    INSTANCE;
+
+    @Override
+    public Buggify maybe(double _probability) {
+        return NoOpBuggify.INSTANCE;
+    }
+}u}(jb (a7db5aa15eb7d98f2bcc738671a8f30fdfb489adjί ^atlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactoryTest.javajЯ modifiedjȯ K jɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ @@ -21,7 +21,6 @@
 import org.junit.Test;
 
 public class DefaultBuggifyFactoryTest {
-
     @Test
     public void maybeReturnsDefaultWhenMaxProbability() {
         assertThat(DefaultBuggifyFactory.INSTANCE.maybe(1.0)).isSameAs(DefaultBuggify.INSTANCE);u}(jb (4070f53a1fe32fff1205f946858d747ab540e48bjί datlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javajЯ modifiedjȯ Kjɯ K jү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ Xw  @@ -359,6 +359,7 @@ void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> des
 
         if (!(validatedServersToAdd.isEmpty() && absentServers.isEmpty())) { // if we made any changes
             cassandra.refreshTokenRangesAndGetServers();
+            metrics.recordPoolSize(getCurrentPools().size());
         }
 
         Preconditions.checkState(u}(jb (90804433a22ec03af979e3c1e8590efd24af0579jί `atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppToken.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -27,13 +27,16 @@
 import java.util.Arrays;
 
 public class LightweightOppToken implements Comparable<LightweightOppToken> {
-
     final byte[] bytes;
 
     public LightweightOppToken(byte[] bytes) {
         this.bytes = bytes;
     }
 
+    public static LightweightOppToken fromHex(String token) {
+        return new LightweightOppToken(Tokens.hexDecode(token));
+    }
+
     public static LightweightOppToken of(Cell cell) {
         return new LightweightOppToken(cell.getRowName());
     }u}(jb (b6e36b890415f2534eb284b773e57dbc27d4313bjί Satlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/Tokens.javajЯ addedjȯ K4jɯ K jү K4jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ XP  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.io.BaseEncoding;
+import java.util.Locale;
+import java.util.function.IntPredicate;
+
+final class Tokens {
+
+    private static final BaseEncoding LOWER_CASE_HEX = BaseEncoding.base16().lowerCase();
+
+    static byte[] hexDecode(String token) {
+        // OPP tokens should be lowercase -- fast path assumes this; slow fallback converts to uppercase
+        return Tokens.isAllLowercaseOrDigits(token)
+                ? LOWER_CASE_HEX.decode(token)
+                : BaseEncoding.base16().decode(token.toUpperCase(Locale.ROOT));
+    }
+
+    @VisibleForTesting
+    static boolean isAllLowercaseOrDigits(String token) {
+        return allMatch(token, ch -> Character.isLowerCase(ch) || Character.isDigit(ch));
+    }
+
+    @VisibleForTesting
+    static boolean allMatch(String token, IntPredicate predicate) {
+        for (int i = 0; i < token.length(); i++) {
+            char ch = token.charAt(i);
+            if (!predicate.test(ch)) {
+                return false;
+            }
+        }
+        return true;
+    }
+
+    private Tokens() {}
+}u}(jb (4d583484e99e4cc63642e62a005732ba4ca0d5d9jί latlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetrics.javajЯ modifiedjȯ Kjɯ K jү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X	  @@ -18,6 +18,7 @@
 import com.codahale.metrics.Counter;
 import com.codahale.metrics.Gauge;
 import com.codahale.metrics.Meter;
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableMap;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer;
@@ -26,10 +27,13 @@
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.Map;
+import java.util.concurrent.atomic.AtomicLong;
 import java.util.function.Consumer;
 import java.util.function.Supplier;
 
 public class CassandraClientPoolMetrics {
+
+    public static final String POOL_SIZE_METRIC_NAME = "pool-size";
     private final MetricsManager metricsManager;
     private final RequestMetrics aggregateRequestMetrics;
     private final Map<CassandraServer, RequestMetrics> metricsByHost = new HashMap<>();
@@ -39,12 +43,15 @@ public class CassandraClientPoolMetrics {
     // Not bundled in with request metrics, as we seek to not produce host-level metrics for economic reasons.
     private final Counter poolExhaustionCounter;
 
+    private final AtomicLong poolSize = new AtomicLong(0L);
+
     public CassandraClientPoolMetrics(MetricsManager metricsManager) {
         this.metricsManager = metricsManager;
         this.aggregateRequestMetrics = new RequestMetrics(metricsManager);
         this.poolExhaustionCounter =
                 metricsManager.registerOrGetCounter(CassandraClientPoolMetrics.class, "pool-exhaustion");
         this.outlierControllers = createOutlierControllers(metricsManager);
+        metricsManager.registerMetric(CassandraClientPoolMetrics.class, POOL_SIZE_METRIC_NAME, poolSize::get);
     }
 
     private static Map<CassandraClientPoolHostLevelMetric, DistributionOutlierController> createOutlierControllers(
@@ -93,6 +100,15 @@ public void recordPoolExhaustion() {
         poolExhaustionCounter.inc();
     }
 
+    public void recordPoolSize(long desiredPoolSize) {
+        poolSize.set(desiredPoolSize);
+    }
+
+    @VisibleForTesting
+    Long getPoolSize() {
+        return poolSize.get();
+    }
+
     @SuppressWarnings("unchecked") // Guaranteed to have the correct type
     public void registerPoolMetric(CassandraClientPoolHostLevelMetric metric, Gauge<Long> gauge, int poolNumber) {
         MetricPublicationFilter filter = outlierControllers.get(metric).registerAndCreateFilter(gauge);u}(jb (32b1efd1deac46330f4d5d125b203b6a950a167djί batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javajЯ modifiedjȯ Kjɯ K
jү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X
  @@ -24,10 +24,10 @@
 import com.google.common.collect.Interner;
 import com.google.common.collect.Interners;
 import com.google.common.collect.Iterables;
+import com.google.common.collect.Maps;
 import com.google.common.collect.Range;
 import com.google.common.collect.RangeMap;
 import com.google.common.collect.Sets;
-import com.google.common.io.BaseEncoding;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs.ThriftHostsExtractingVisitor;
@@ -62,9 +62,7 @@
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.List;
-import java.util.Locale;
 import java.util.Map;
-import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Optional;
 import java.util.PrimitiveIterator.OfInt;
@@ -162,10 +160,8 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
                     servers.addAll(hosts);
                     hostToDatacentersThisRefresh.putAll(hostToDatacentersOnThisTokenRange);
 
-                    LightweightOppToken startToken = new LightweightOppToken(BaseEncoding.base16()
-                            .decode(tokenRange.getStart_token().toUpperCase(Locale.ROOT)));
-                    LightweightOppToken endToken = new LightweightOppToken(BaseEncoding.base16()
-                            .decode(tokenRange.getEnd_token().toUpperCase(Locale.ROOT)));
+                    LightweightOppToken startToken = LightweightOppToken.fromHex(tokenRange.getStart_token());
+                    LightweightOppToken endToken = LightweightOppToken.fromHex(tokenRange.getEnd_token());
                     if (startToken.compareTo(endToken) <= 0) {
                         newTokenRing.put(Range.openClosed(startToken, endToken), hosts);
                     } else {
@@ -420,9 +416,8 @@ Set<CassandraServer> maybeFilterLocalHosts(Set<CassandraServer> hosts) {
     @VisibleForTesting
     Optional<CassandraServer> getRandomHostByActiveConnections(Set<CassandraServer> desiredHosts) {
         Set<CassandraServer> localFilteredHosts = maybeFilterLocalHosts(desiredHosts);
-        ImmutableMap<CassandraServer, CassandraClientPoolingContainer> matchingPools = currentPools.entrySet().stream()
-                .filter(e -> localFilteredHosts.contains(e.getKey()))
-                .collect(ImmutableMap.toImmutableMap(Entry::getKey, Entry::getValue));
+        Map<CassandraServer, CassandraClientPoolingContainer> matchingPools =
+                ImmutableMap.copyOf(Maps.filterKeys(currentPools, localFilteredHosts::contains));
         if (matchingPools.isEmpty()) {
             return Optional.empty();
         }u}(jb (0018cc3f41f93c005b4fbadee9f0f569b180a38cjί datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolTest.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X&  @@ -35,6 +35,7 @@
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs;
 import com.palantir.atlasdb.cassandra.ImmutableDefaultConfig;
+import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraClientPoolMetrics;
 import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
 import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService;
 import com.palantir.atlasdb.util.MetricsManagers;
@@ -224,7 +225,7 @@ private void runTwoNoopsOnTwoHostsAndThrowFromSecondRunOnFirstHost(Exception exc
     }
 
     private CassandraServer getServerForIndex(int index) {
-        return CassandraServer.of(InetSocketAddress.createUnresolved(Integer.toString(index), index));
+        return CassandraServer.of(InetSocketAddress.createUnresolved(Integer.toString(index), 8000));
     }
 
     @Test
@@ -310,6 +311,7 @@ public void hostIsAutomaticallyRemovedOnStartup() {
 
         createClientPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1);
+        assertPoolSizeMetricIsEqualTo(1);
     }
 
     @Test
@@ -321,10 +323,12 @@ public void hostIsAutomaticallyRemovedOnRefresh() {
 
         createClientPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2, CASS_SERVER_3);
+        assertPoolSizeMetricIsEqualTo(3);
 
         setCassandraServersTo(CASS_SERVER_1, CASS_SERVER_2);
         refreshPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2);
+        assertPoolSizeMetricIsEqualTo(2);
     }
 
     @Test
@@ -495,7 +499,7 @@ private void setCassandraServersTo(CassandraServer... servers) {
 
     private CassandraClientPoolImpl createClientPool() {
         return CassandraClientPoolImpl.createImplForTest(
-                MetricsManagers.createForTests(),
+                MetricsManagers.of(metricRegistry, taggedMetricRegistry),
                 config,
                 refreshableRuntimeConfig,
                 CassandraClientPoolImpl.StartupChecks.DO_NOT_RUN,
@@ -687,4 +691,16 @@ private void setupHostsWithInconsistentTopology(CassandraServer... cassandraServ
     private void refreshPool() {
         deterministicExecutor.tick(POOL_REFRESH_INTERVAL_SECONDS, TimeUnit.SECONDS);
     }
+
+    private void assertPoolSizeMetricIsEqualTo(long expected) {
+        assertThat(taggedMetricRegistry
+                        .<Long>gauge(MetricName.builder()
+                                .safeName(MetricRegistry.name(
+                                        CassandraClientPoolMetrics.class,
+                                        CassandraClientPoolMetrics.POOL_SIZE_METRIC_NAME))
+                                .build())
+                        .get()
+                        .getValue())
+                .isEqualTo(expected);
+    }
 }u}(jb (3753c37f1661486b791e667b00225ee922b75441jί datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppTokenTest.javajЯ addedjȯ Kjɯ K jү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X5  @@ -0,0 +1,167 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.conjure.java.lib.Bytes;
+import java.nio.ByteBuffer;
+import java.util.Collection;
+import java.util.Locale;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+import org.junit.runners.Parameterized.Parameter;
+import org.junit.runners.Parameterized.Parameters;
+
+@RunWith(Parameterized.class)
+public class LightweightOppTokenTest {
+    @Parameter()
+    public String input;
+
+    @Parameters(name = "{index}: input=\"{0}\"")
+    public static Collection<Object[]> data() {
+        return TokensTest.generateTokens()
+                .flatMap(input -> Stream.of(input, input.toLowerCase(Locale.ROOT), input.toUpperCase(Locale.ROOT)))
+                .map(input -> new Object[] {input})
+                .collect(Collectors.toList());
+    }
+
+    @Test
+    public void inputsAreValidBase16Strings() {
+        assertThat(input).matches("^[0-9a-fA-F]*$");
+        assertThat(input.length() % 2 == 0)
+                .as("input must be even length to base16 decode")
+                .isTrue();
+        assertThat(CassandraHex.hexToBytes(input)).hasSize(input.length() / 2);
+    }
+
+    @Test
+    public void createFromHexEncodedStringRegardlessOfCase() {
+        LightweightOppToken token = LightweightOppToken.fromHex(input);
+        LightweightOppToken tokenFromLowerCase = LightweightOppToken.fromHex(input.toLowerCase(Locale.ROOT));
+        LightweightOppToken tokenFromUpperCase = LightweightOppToken.fromHex(input.toUpperCase(Locale.ROOT));
+        LightweightOppToken tokenFromBytes = new LightweightOppToken(CassandraHex.hexToBytes(input));
+
+        assertThat(token.bytes)
+                .hasSize(input.length() / 2)
+                .isEqualTo(tokenFromLowerCase.bytes)
+                .isEqualTo(tokenFromUpperCase.bytes)
+                .isEqualTo(tokenFromBytes.bytes);
+        assertThat(token)
+                .isNotNull()
+                .isEqualTo(tokenFromLowerCase)
+                .isEqualTo(tokenFromUpperCase)
+                .isEqualTo(tokenFromBytes)
+                .isEqualByComparingTo(tokenFromLowerCase)
+                .isEqualByComparingTo(tokenFromUpperCase)
+                .isEqualByComparingTo(tokenFromBytes);
+    }
+
+    @Test
+    public void fromHexCorrectlyDeserializesStrings() throws Exception {
+        LightweightOppToken token = LightweightOppToken.fromHex(input);
+        Bytes expectedBytes = Bytes.from(org.apache.commons.codec.binary.Hex.decodeHex(input));
+        assertThat(token.bytes).contains(expectedBytes.asNewByteArray());
+        assertThat(token.isEmpty()).isEqualTo(input.length() == 0);
+        ByteBuffer deserialized = token.deserialize();
+        assertThat(deserialized).isEqualTo(expectedBytes.asReadOnlyByteBuffer());
+        assertThat(deserialized.remaining()).isEqualTo(input.length() / 2);
+        assertThat(token.toString()).isEqualToIgnoringCase(input);
+    }
+
+    @Test
+    public void tokenMatchesCassandraImplementation() throws Exception {
+        // Test compatibility with Cassandra hex conversions from:
+        // https://github.com/palantir/cassandra/blob/palantir-cassandra-2.2.18/src/java/org/apache/cassandra/dht/ByteOrderedPartitioner.java#L74
+        Bytes expectedBytes = Bytes.from(org.apache.commons.codec.binary.Hex.decodeHex(input));
+        String hexFromCassandra = CassandraHex.bytesToHex(expectedBytes.asNewByteArray());
+        byte[] bytesFromCassandra = CassandraHex.hexToBytes(hexFromCassandra);
+        LightweightOppToken token = LightweightOppToken.fromHex(hexFromCassandra);
+        assertThat(Tokens.isAllLowercaseOrDigits(hexFromCassandra))
+                .as("Expect lowercase hex %s", hexFromCassandra)
+                .isTrue();
+        assertThat(token).isEqualTo(new LightweightOppToken(expectedBytes.asNewByteArray()));
+        assertThat(token.bytes).contains(bytesFromCassandra);
+    }
+
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one
+     * or more contributor license agreements.  See the NOTICE file
+     * distributed with this work for additional information
+     * regarding copyright ownership.  The ASF licenses this file
+     * to you under the Apache License, Version 2.0 (the
+     * "License"); you may not use this file except in compliance
+     * with the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+    // Imported from cassandra to test using their conversions
+    // https://github.com/palantir/cassandra/blob/palantir-cassandra-2.2.18/src/java/org/apache/cassandra/utils/Hex.java
+    static final class CassandraHex {
+        private static final byte[] charToByte = new byte[256];
+
+        // package protected for use by ByteBufferUtil. Do not modify this array !!
+        static final char[] byteToChar = new char[16];
+
+        static {
+            for (char c = 0; c < charToByte.length; ++c) {
+                if (c >= '0' && c <= '9') charToByte[c] = (byte) (c - '0');
+                else if (c >= 'A' && c <= 'F') charToByte[c] = (byte) (c - 'A' + 10);
+                else if (c >= 'a' && c <= 'f') charToByte[c] = (byte) (c - 'a' + 10);
+                else charToByte[c] = (byte) -1;
+            }
+
+            for (int i = 0; i < 16; ++i) {
+                byteToChar[i] = Integer.toHexString(i).charAt(0);
+            }
+        }
+
+        public static byte[] hexToBytes(String str) {
+            if (str.length() % 2 == 1)
+                throw new NumberFormatException("An hex string representing bytes must have an even length");
+
+            byte[] bytes = new byte[str.length() / 2];
+            for (int i = 0; i < bytes.length; i++) {
+                byte halfByte1 = charToByte[str.charAt(i * 2)];
+                byte halfByte2 = charToByte[str.charAt(i * 2 + 1)];
+                if (halfByte1 == -1 || halfByte2 == -1) throw new NumberFormatException("Non-hex characters in " + str);
+                bytes[i] = (byte) ((halfByte1 << 4) | halfByte2);
+            }
+            return bytes;
+        }
+
+        public static String bytesToHex(byte... bytes) {
+            char[] c = new char[bytes.length * 2];
+            for (int i = 0; i < bytes.length; i++) {
+                int bint = bytes[i];
+                c[i * 2] = byteToChar[(bint & 0xf0) >> 4];
+                c[1 + i * 2] = byteToChar[bint & 0x0f];
+            }
+
+            return new String(c);
+        }
+    }
+}u}(jb (db57abd4b23910bc5e3468db860764b587878808jί Watlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/TokensTest.javajЯ addedjȯ Kjjɯ K jү Kjjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X8  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.io.BaseEncoding;
+import com.google.common.primitives.Longs;
+import java.util.Locale;
+import java.util.concurrent.ThreadLocalRandom;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+import org.junit.Test;
+
+public final class TokensTest {
+    @Test
+    public void decodeHex() {
+        generateTokens().forEach(input -> assertThat(Tokens.hexDecode(input))
+                .as("token '%s'", input)
+                .hasSize(input.length() / 2));
+    }
+
+    @Test
+    public void isAllLowercaseOrDigits() {
+        assertThat(Tokens.isAllLowercaseOrDigits("abcdef01234567890")).isTrue();
+        assertThat(Tokens.isAllLowercaseOrDigits("01234567890abcdef")).isTrue();
+        assertThat(Tokens.isAllLowercaseOrDigits("Abcdef01234567890")).isFalse();
+        assertThat(Tokens.isAllLowercaseOrDigits("01234567890ABCDEF")).isFalse();
+    }
+
+    @Test
+    public void allMatch() {
+        assertThat(Tokens.allMatch("01234567890", Character::isDigit)).isTrue();
+        assertThat(Tokens.allMatch("0123456789A", Character::isDigit)).isFalse();
+        assertThat(Tokens.allMatch("ABCEFGHIJKLMNOPQRSTUVWXYZ", Character::isUpperCase))
+                .isTrue();
+        assertThat(Tokens.allMatch("ABCEFGHIJKLMNOPQRSTUVWXYZ", Character::isLowerCase))
+                .isFalse();
+        assertThat(Tokens.allMatch("abcefghijklmnopqrstuvwxyz", Character::isLowerCase))
+                .isTrue();
+        assertThat(Tokens.allMatch("abcefghijklmnopqrstuvwxyz", Character::isUpperCase))
+                .isFalse();
+    }
+
+    static Stream<String> generateTokens() {
+        return Stream.concat(
+                        Stream.of(
+                                "",
+                                "0F",
+                                "decafbad",
+                                "0123456789ABCDEF",
+                                "0123456789abcdef",
+                                "0123456789Abcdef",
+                                "0123456789aBcdef",
+                                "0123456789abCdef",
+                                "0123456789abcDef",
+                                "0123456789abcdEf",
+                                "0123456789abcdeF",
+                                Long.toHexString(Long.MIN_VALUE),
+                                Long.toHexString(Long.MAX_VALUE)),
+                        Stream.concat(
+                                IntStream.range(0, 32).mapToObj(i -> {
+                                    byte[] bytes = new byte[i * 2];
+                                    ThreadLocalRandom.current().nextBytes(bytes);
+                                    return BaseEncoding.base16().encode(bytes);
+                                }),
+                                IntStream.range(0, 1_000).mapToObj(_i -> BaseEncoding.base16()
+                                        .encode(Longs.toByteArray(
+                                                ThreadLocalRandom.current().nextLong())))))
+                .flatMap(input -> Stream.of(
+                        input, input.toLowerCase(Locale.ROOT), input.toUpperCase(Locale.ROOT), shuffleCase(input)));
+    }
+
+    private static String shuffleCase(String input) {
+        if (input == null || input.isEmpty()) {
+            return input;
+        }
+        StringBuilder sb = new StringBuilder(input.length());
+        for (int i = 0; i < input.length(); i++) {
+            char ch = input.charAt(i);
+            if (Character.isAlphabetic(ch) && ThreadLocalRandom.current().nextBoolean()) {
+                if (Character.isLowerCase(ch)) {
+                    ch = Character.toUpperCase(ch);
+                } else {
+                    ch = Character.toLowerCase(ch);
+                }
+            }
+            sb.append(ch);
+        }
+        return sb.toString();
+    }
+}u}(jb (bc3e5261d087a84993ba8ae1e523c8b05fc4c179jί patlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetricsTest.javajЯ modifiedjȯ Kjɯ K jү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -33,6 +33,8 @@ public class CassandraClientPoolMetricsTest {
     private final MetricsManager metricsManager =
             MetricsManagers.of(new MetricRegistry(), new DefaultTaggedMetricRegistry(), Refreshable.only(true));
 
+    private final CassandraClientPoolMetrics metrics = new CassandraClientPoolMetrics(metricsManager);
+
     @Test
     public void metricsAreProducedAndFiltered() {
         CassandraClientPoolMetrics metrics = new CassandraClientPoolMetrics(metricsManager);
@@ -57,6 +59,18 @@ public void metricsAreProducedAndFiltered() {
                 .containsKey(createMeanActiveTimeMillisMetric("mean"));
     }
 
+    @Test
+    public void recordPoolSizeSetsSizeToLastReportedValue() {
+        metrics.recordPoolSize(100);
+        assertThat(metrics.getPoolSize()).isEqualTo(100);
+        metrics.recordPoolSize(-13);
+        assertThat(metrics.getPoolSize()).isEqualTo(-13);
+        metrics.recordPoolSize(25);
+        assertThat(metrics.getPoolSize()).isEqualTo(25);
+        metrics.recordPoolSize(0);
+        assertThat(metrics.getPoolSize()).isEqualTo(0);
+    }
+
     private static MetricName createMeanActiveTimeMillisMetric(String pool) {
         return MetricName.builder()
                 .safeName(MetricRegistry.name(u}(jb (8b6e6cafaf4bfeb159b9821f6b05b34ee3d1bd3bjί \atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/CompactMetadataTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FCompactMetadataTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FCompactMetadataTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FCompactMetadataTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "VridlmiMEcMLIrwQyqcRHQ==";
+    static String __CLASS_HASH = "PSwZcMysyzWemW+V1hGphQ==";
 }u}(jb (a9253d217f7922c43a4719d7eba66ff928fd42c2jί Zatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepIdToNameTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepIdToNameTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepIdToNameTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepIdToNameTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -731,6 +732,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -754,5 +756,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "XhY0sfHU7ygS3NHM1+HK7Q==";
+    static String __CLASS_HASH = "XRAvO+BpbFM1l4QIBkArjA==";
 }u}(jb (92e033f8a02b6af466530e87d3272b1a29f5b16bjί Zatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepNameToIdTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepNameToIdTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepNameToIdTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepNameToIdTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -672,6 +673,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -695,5 +697,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "sJD6WdNMiuuJDNsMwkhsvA==";
+    static String __CLASS_HASH = "ZVl8vtH0bWDeCq5tKMA3Aw==";
 }u}(jb (466585bf6d5f35472abb07bf7c9340d1fec25923jί Zatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepPriorityTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepPriorityTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepPriorityTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepPriorityTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -1228,6 +1229,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -1251,5 +1253,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "SYJq7EPSrqhI5ojA5DS3vQ==";
+    static String __CLASS_HASH = "rABMHBdCo+LhmxyLoeFFwQ==";
 }u}(jb (91aeab67a811c50ed99500a6dbab71f30426896bjί _atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepShardProgressTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepShardProgressTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepShardProgressTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepShardProgressTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -684,6 +685,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -707,5 +709,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "vxDaJU4r7oWggNPDq0Qu6Q==";
+    static String __CLASS_HASH = "2Fj81SsG3WRpPjQ1kYDw3A==";
 }u}(jb (e1e792ef2a8d8d17d6dc1f0ebf62edaa5f434f46jί [atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepableCellsTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableCellsTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableCellsTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableCellsTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -766,6 +767,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -789,5 +791,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "0G8vHXvwR/HGZ0ZrAaeqTQ==";
+    static String __CLASS_HASH = "hMikiCT1ysKqkzSOdiKujg==";
 }u}(jb (a0fed777bc3cae52361dd15d5e1f8d185ff33447jί `atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepableTimestampsTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableTimestampsTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableTimestampsTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableTimestampsTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -763,6 +764,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -786,5 +788,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Jw99h/0z3T8JcRN8j6d17w==";
+    static String __CLASS_HASH = "66qq5d5do+PszHk7DehVPA==";
 }u}(jb (04e0abea5b6d71d399ce0be42bf5e788186bb907jί Xatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/TableClearsTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FTableClearsTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FTableClearsTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FTableClearsTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "G5tVqtzNmeGOIdOf4QSySA==";
+    static String __CLASS_HASH = "Wm/9d03F9WHgPC5jjTUOaA==";
 }u}(jb (8adb21b448fa2a5a257bb87fb7a4c6fc9e50e566jί catlasdb-client/src/main/java/com/palantir/atlasdb/table/description/render/StreamStoreRenderer.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Frender%2FStreamStoreRenderer.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Frender%2FStreamStoreRenderer.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Frender%2FStreamStoreRenderer.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X
  @@ -362,7 +362,8 @@ private void putMetadataAndHashIndexTask() {
                     line("}");
                     line("putHashIndexTask(t, rowsToStoredMetadata);");
                     line();
-                    line("Map<", StreamMetadataRow, ", StreamMetadata> rowsToMetadata = new HashMap<>();");
+                    line("Map<", StreamMetadataRow, ", StreamMetadata> rowsToMetadata =");
+                    line("        Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());");
                     line("rowsToMetadata.putAll(rowsToStoredMetadata);");
                     line("rowsToMetadata.putAll(rowsToUnstoredMetadata);");
                     line("mdTable.putMetadata(rowsToMetadata);");
@@ -462,7 +463,10 @@ private void getMetadata() {
                             "Map<",
                             StreamMetadataRow,
                             ", StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));");
-                    line("Map<", StreamId, ", StreamMetadata> ret = new HashMap<>();");
+                    line(
+                            "Map<",
+                            StreamId,
+                            ", StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());");
                     line("for (Map.Entry<", StreamMetadataRow, ", StreamMetadata> e : metadatas.entrySet()) {");
                     {
                         line("ret.put(e.getKey().getId(), e.getValue());");
@@ -494,7 +498,7 @@ private void lookupStreamIdsByHash() {
                             ", ",
                             StreamHashAidxColumnValue,
                             "> m = idx.getRowsMultimap(rows);");
-                    line("Map<", StreamId, ", Sha256Hash> hashForStreams = new HashMap<>();");
+                    line("Map<", StreamId, ", Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());");
                     line("for (", StreamHashAidxRow, " r : m.keySet()) {");
                     {
                         line("for (", StreamHashAidxColumnValue, " v : m.get(r)) {");
@@ -535,7 +539,7 @@ private void lookupStreamIdsByHash() {
             private void getHashIndexRowsForHashes() {
                 line("private Set<", StreamHashAidxRow, "> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {");
                 {
-                    line("Set<", StreamHashAidxRow, "> rows = new HashSet<>();");
+                    line("Set<", StreamHashAidxRow, "> rows = Sets.newHashSetWithExpectedSize(hashes.size());");
                     line("for (Sha256Hash h : hashes) {");
                     {
                         line("rows.add(", StreamHashAidxRow, ".of(h));");u}(jb (3759f65a37646f6fbe6a02bde98fbb9e88c58ec5jί Zatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CachingTransaction.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -15,8 +15,8 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSortedMap;
 import com.google.common.collect.Iterables;
@@ -63,7 +63,7 @@ public CachingTransaction(Transaction delegate) {
 
     public CachingTransaction(Transaction delegate, long maxCachedCells) {
         this.delegate = delegate;
-        cellCache = CacheBuilder.newBuilder()
+        cellCache = Caffeine.newBuilder()
                 .maximumSize(maxCachedCells)
                 .softValues()
                 .recordStats()u}(jb (ffcff3662b5f930a1b2f09879755c6fb0014cd88jί `atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ConflictDetectionManager.javajЯ modifiedjȯ Kjɯ Kjү K
jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManager.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManager.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManager.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0v      jٯ X$  @@ -15,9 +15,9 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.CacheLoader;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import java.util.Map;
@@ -39,7 +39,7 @@ public class ConflictDetectionManager {
      *  (This has always been the behavior of this class; I'm simply calling it out)
      */
     public ConflictDetectionManager(CacheLoader<TableReference, Optional<ConflictHandler>> loader) {
-        this.cache = CacheBuilder.newBuilder().maximumSize(100_000).build(loader);
+        this.cache = Caffeine.newBuilder().maximumSize(100_000).build(loader);
     }
 
     public void warmCacheWith(Map<TableReference, Optional<ConflictHandler>> preload) {
@@ -51,6 +51,6 @@ public Map<TableReference, Optional<ConflictHandler>> getCachedValues() {
     }
 
     public Optional<ConflictHandler> get(TableReference tableReference) {
-        return cache.getUnchecked(tableReference);
+        return cache.get(tableReference);
     }
 }u}(jb (11eda8300ddf8db89380d1fcb74052090f9cf9e9jί aatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ConflictDetectionManagers.javajЯ modifiedjȯ K
jɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManagers.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManagers.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManagers.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X3
  @@ -15,10 +15,8 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
-import com.google.common.cache.CacheLoader;
 import com.google.common.collect.Maps;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.logging.LoggingArgs;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
@@ -32,12 +30,7 @@ public final class ConflictDetectionManagers {
     private ConflictDetectionManagers() {}
 
     public static ConflictDetectionManager createWithNoConflictDetection() {
-        return new ConflictDetectionManager(new CacheLoader<>() {
-            @Override
-            public Optional<ConflictHandler> load(TableReference tableReference) throws Exception {
-                return Optional.of(ConflictHandler.IGNORE_ALL);
-            }
-        });
+        return new ConflictDetectionManager(tableReference -> Optional.of(ConflictHandler.IGNORE_ALL));
     }
 
     /**
@@ -65,18 +58,15 @@ public static ConflictDetectionManager create(KeyValueService kvs) {
     }
 
     private static ConflictDetectionManager create(KeyValueService kvs, boolean warmCache) {
-        ConflictDetectionManager conflictDetectionManager = new ConflictDetectionManager(new CacheLoader<>() {
-            @Override
-            public Optional<ConflictHandler> load(TableReference tableReference) throws Exception {
-                byte[] metadata = kvs.getMetadataForTable(tableReference);
-                if (metadata.length == 0) {
-                    log.error(
-                            "Tried to make a transaction over a table that has no metadata: {}.",
-                            LoggingArgs.tableRef("tableReference", tableReference));
-                    return Optional.empty();
-                } else {
-                    return Optional.of(getConflictHandlerFromMetadata(metadata));
-                }
+        ConflictDetectionManager conflictDetectionManager = new ConflictDetectionManager(tableReference -> {
+            byte[] metadata = kvs.getMetadataForTable(tableReference);
+            if (metadata.length == 0) {
+                log.error(
+                        "Tried to make a transaction over a table that has no metadata: {}.",
+                        LoggingArgs.tableRef("tableReference", tableReference));
+                return Optional.empty();
+            } else {
+                return Optional.of(getConflictHandlerFromMetadata(metadata));
             }
         });
         if (warmCache) {u}(jb (02903d03f745dbe6781ac51c6ebebc98782ed544jί datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/NoDuplicateWritesTransaction.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FNoDuplicateWritesTransaction.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FNoDuplicateWritesTransaction.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FNoDuplicateWritesTransaction.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -15,9 +15,8 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.io.BaseEncoding;
 import com.palantir.atlasdb.keyvalue.api.Cell;
@@ -31,7 +30,6 @@
 import java.util.HashMap;
 import java.util.Map;
 import java.util.Set;
-import java.util.concurrent.ExecutionException;
 
 /**
  * Disallows the same cell from being written twice with different values within
@@ -43,13 +41,8 @@ public class NoDuplicateWritesTransaction extends ForwardingTransaction {
 
     final Transaction delegate;
     final ImmutableSet<TableReference> noDoubleWritesTables;
-    final LoadingCache<TableReference, Map<Cell, byte[]>> writes = CacheBuilder.newBuilder()
-            .build(new CacheLoader<TableReference, Map<Cell, byte[]>>() {
-                @Override
-                public Map<Cell, byte[]> load(TableReference input) {
-                    return Collections.synchronizedMap(new HashMap<>());
-                }
-            });
+    final LoadingCache<TableReference, Map<Cell, byte[]>> writes =
+            Caffeine.newBuilder().build(input -> Collections.synchronizedMap(new HashMap<>()));
 
     public NoDuplicateWritesTransaction(Transaction delegate, Iterable<TableReference> noDoubleWritesTables) {
         this.delegate = delegate;
@@ -81,12 +74,7 @@ public void delete(TableReference tableRef, Set<Cell> keys) {
 
     private void validateWrites(TableReference tableRef, Map<Cell, byte[]> values) {
         if (noDoubleWritesTables.contains(tableRef)) {
-            Map<Cell, byte[]> table;
-            try {
-                table = writes.get(tableRef);
-            } catch (ExecutionException e) {
-                throw new RuntimeException(e.getCause());
-            }
+            Map<Cell, byte[]> table = writes.get(tableRef);
             for (Map.Entry<Cell, byte[]> value : values.entrySet()) {
                 byte[] newValue = value.getValue();
                 byte[] oldValue = table.get(value.getKey());u}(jb (5c2151332395c0abdd30bf0e9e81f9ea340e0275jί latlasdb-client/src/test/java/com/palantir/atlasdb/table/description/generated/GenericRangeScanTestTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FGenericRangeScanTestTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FGenericRangeScanTestTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FGenericRangeScanTestTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -782,6 +783,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -805,5 +807,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "kqedl2mBeAbedzXlMy+Imw==";
+    static String __CLASS_HASH = "YkaZuzFs8LBGmT3/H/I5eg==";
 }u}(jb (3ca57c907f8e38fa47c80cd5637bb2936c356d75jί eatlasdb-client/src/test/java/com/palantir/atlasdb/table/description/generated/RangeScanTestTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FRangeScanTestTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FRangeScanTestTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FRangeScanTestTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -720,6 +721,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -743,5 +745,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "T2bysa8OZ+/WjRrXnIqCPA==";
+    static String __CLASS_HASH = "1i+tNWsmUREmFNoXh6QUeg==";
 }u}(jb (fc7b8e44b9e02cbd50722b39931ad66604c4fc42jί atlasdb-commons/build.gradlejЯ modifiedjȯ Kjɯ K jү Kjӯ phttps://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fbuild.gradlejկ ohttps://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fbuild.gradlejׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fbuild.gradle?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ XY  @@ -16,6 +16,7 @@ dependencies {
     }
 
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
+    implementation 'com.github.ben-manes.caffeine:caffeine'
     implementation 'com.google.errorprone:error_prone_annotations'
     implementation 'com.google.guava:guava'
     implementation 'com.palantir.safe-logging:safe-logging'u}(jb (7d30fe4fd283df55958201d1f120806d5611aa18jί ^atlasdb-commons/src/main/java/com/palantir/common/exception/TableMappingNotFoundException.javajЯ modifiedjȯ Kjɯ K jү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fexception%2FTableMappingNotFoundException.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fexception%2FTableMappingNotFoundException.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fexception%2FTableMappingNotFoundException.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -23,4 +23,8 @@ public TableMappingNotFoundException(String msg) {
     public TableMappingNotFoundException(Throwable cause) {
         super(cause);
     }
+
+    public TableMappingNotFoundException(String msg, Throwable cause) {
+        super(msg, cause);
+    }
 }u}(jb (e8b18dde40473e321f4bc1e4cfc195d6eef76a8bjί Matlasdb-commons/src/main/java/com/palantir/util/MutuallyExclusiveSetLock.javajЯ modifiedjȯ K
jɯ Kjү K$jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FMutuallyExclusiveSetLock.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FMutuallyExclusiveSetLock.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FMutuallyExclusiveSetLock.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -15,11 +15,9 @@
  */
 package com.palantir.util;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Sets;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.ArrayList;
@@ -54,17 +52,9 @@
  * @author carrino
  */
 public class MutuallyExclusiveSetLock<T> {
-    private final boolean fair;
     private final Comparator<? super T> comparator;
-    private final Set<Thread> threadSet = Sets.newSetFromMap(new ConcurrentHashMap<Thread, Boolean>());
-    private final LoadingCache<T, ReentrantLock> syncMap = CacheBuilder.newBuilder()
-            .weakValues()
-            .build(new CacheLoader<T, ReentrantLock>() {
-                @Override
-                public ReentrantLock load(T key) {
-                    return new ReentrantLock(fair);
-                }
-            });
+    private final Set<Thread> threadSet = ConcurrentHashMap.newKeySet();
+    private final LoadingCache<T, ReentrantLock> syncMap;
 
     /**
      * Constructs a new <code>MutuallyExclusiveSetLock</code>
@@ -102,12 +92,12 @@ public MutuallyExclusiveSetLock(boolean fair) {
      */
     @Deprecated
     public MutuallyExclusiveSetLock(boolean fair, Comparator<? super T> comparator) {
-        this.fair = fair;
         this.comparator = comparator;
+        this.syncMap = Caffeine.newBuilder().weakValues().build(key -> new ReentrantLock(fair));
     }
 
     public static <T extends Comparable<? super T>> MutuallyExclusiveSetLock<T> create(boolean fair) {
-        return new MutuallyExclusiveSetLock<T>(fair);
+        return new MutuallyExclusiveSetLock<>(fair);
     }
 
     /**
@@ -119,7 +109,7 @@ public static <T extends Comparable<? super T>> MutuallyExclusiveSetLock<T> crea
      * @param comparator a <code>java.util.Comparator</code> to use in determining lock order.
      */
     public static <T> MutuallyExclusiveSetLock<T> createWithComparator(boolean fair, Comparator<? super T> comparator) {
-        return new MutuallyExclusiveSetLock<T>(fair, comparator);
+        return new MutuallyExclusiveSetLock<>(fair, comparator);
     }
 
     /**
@@ -130,7 +120,7 @@ public static <T> MutuallyExclusiveSetLock<T> createWithComparator(boolean fair,
      */
     public boolean isLocked(Iterable<T> items) {
         for (T t : items) {
-            ReentrantLock lock = syncMap.getUnchecked(t);
+            ReentrantLock lock = syncMap.get(t);
             if (!lock.isHeldByCurrentThread()) {
                 return false;
             }
@@ -157,7 +147,7 @@ public LockState<T> lockOnObjects(Iterable<T> lockObjects) {
             lock.lock();
         }
         threadSet.add(Thread.currentThread());
-        return new LockState<T>(sortedLocks.values(), this);
+        return new LockState<>(sortedLocks.values(), this);
     }
 
     public LockState<T> lockOnObjectsInterruptibly(Iterable<T> lockObjects) throws InterruptedException {
@@ -170,7 +160,7 @@ public LockState<T> lockOnObjectsInterruptibly(Iterable<T> lockObjects) throws I
                 lock.lockInterruptibly();
                 toUnlock.add(lock);
             }
-            LockState<T> ret = new LockState<T>(sortedLocks.values(), this);
+            LockState<T> ret = new LockState<>(sortedLocks.values(), this);
             threadSet.add(Thread.currentThread());
             toUnlock.clear();
             return ret;
@@ -201,7 +191,7 @@ private ImmutableSet<T> validateLockInput(Iterable<T> lockObjects) {
         }
 
         // verify that the compareTo and equals are consistent in that we are always locking on all objects
-        SortedSet<T> treeSet = new TreeSet<T>(comparator);
+        SortedSet<T> treeSet = new TreeSet<>(comparator);
         treeSet.addAll(hashSet);
         if (treeSet.size() != hashSet.size()) {
             throw new SafeIllegalArgumentException("The number of elements using .equals and compareTo differ. "
@@ -242,9 +232,9 @@ public void unlock(LockState<T> lockState) {
     }
 
     private SortedMap<T, ReentrantLock> getSortedLocks(Collection<T> lockObjects) {
-        final TreeMap<T, ReentrantLock> sortedLocks = new TreeMap<T, ReentrantLock>(comparator);
+        final TreeMap<T, ReentrantLock> sortedLocks = new TreeMap<>(comparator);
         for (T t : lockObjects) {
-            sortedLocks.put(t, syncMap.getUnchecked(t));
+            sortedLocks.put(t, syncMap.get(t));
         }
         return sortedLocks;
     }u}(jb (e01f8f7d37ce43a9eb4672184fb9c3abd935633ejί eatlasdb-commons/src/test/java/com/palantir/common/concurrent/CheckedRejectionExecutorServiceTest.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X#
  @@ -19,31 +19,38 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.doThrow;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.google.common.util.concurrent.Futures;
 import java.util.concurrent.Callable;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.RejectedExecutionException;
 import org.junit.Test;
+import org.mockito.MockMakers;
 
 public class CheckedRejectionExecutorServiceTest {
     private static final Runnable DO_NOTHING = () -> {};
     private static final Callable<Integer> RETURN_ONE = () -> 1;
-    private static final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION = new RejectedExecutionException();
+    private static final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION =
+            new RejectedExecutionException("test");
 
-    private final ExecutorService delegate = mock(ExecutorService.class);
+    private final ExecutorService delegate =
+            mock(ExecutorService.class, withSettings().mockMaker(MockMakers.SUBCLASS));
     private final CheckedRejectionExecutorService checkedRejectionExecutor =
             new CheckedRejectionExecutorService(delegate);
 
     @Test
     public void passesCallThroughExecute() throws CheckedRejectedExecutionException {
         checkedRejectionExecutor.execute(DO_NOTHING);
         verify(delegate, times(1)).execute(DO_NOTHING);
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
@@ -52,22 +59,27 @@ public void passesCallThroughSubmit() throws CheckedRejectedExecutionException {
         assertThat(Futures.getUnchecked(checkedRejectionExecutor.submit(RETURN_ONE)))
                 .isEqualTo(1);
         verify(delegate, times(1)).submit(RETURN_ONE);
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
     public void propagatesRejectionThroughExecute() {
-        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).execute(any());
+        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).execute(any(Runnable.class));
         assertThatThrownBy(() -> checkedRejectionExecutor.execute(DO_NOTHING))
                 .isInstanceOf(CheckedRejectedExecutionException.class)
                 .hasCause(REJECTED_EXECUTION_EXCEPTION);
+        verify(delegate).execute(eq(DO_NOTHING));
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
     @SuppressWarnings("unchecked") // Mocks
     public void propagatesRejectionThroughSubmit() {
-        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).submit(any(Callable.class));
+        when(delegate.submit(any(Callable.class))).thenThrow(REJECTED_EXECUTION_EXCEPTION);
         assertThatThrownBy(() -> checkedRejectionExecutor.submit(RETURN_ONE))
                 .isInstanceOf(CheckedRejectedExecutionException.class)
                 .hasCause(REJECTED_EXECUTION_EXCEPTION);
+        verify(delegate).submit(eq(RETURN_ONE));
+        verifyNoMoreInteractions(delegate);
     }
 }u}(jb (d0f9372cc1f1f0ca2951aae2549e2f3c289903e7jί Xatlasdb-commons/src/test/java/com/palantir/common/concurrent/CoalescingSupplierTest.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -24,6 +24,7 @@
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
@@ -49,12 +50,14 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
+import org.mockito.MockMakers;
 
 @RunWith(Parameterized.class)
 public class CoalescingSupplierTest {
     private static final int DEFAULT_VALUE = 123;
 
-    private final Supplier<Integer> delegate = mock(Supplier.class);
+    private final Supplier<Integer> delegate =
+            mock(Supplier.class, withSettings().mockMaker(MockMakers.SUBCLASS));
     private final FreezableSupplier freezableDelegate = new FreezableSupplier(delegate);
     private final CoalescingSupplier<Integer> coalescing = new CoalescingSupplier<>(freezableDelegate);
 u}(jb (9146e63073d86fe3d770ab7103a6eb65623b8820jί Watlasdb-commons/src/test/java/com/palantir/common/proxy/ExperimentRunningProxyTest.javajЯ modifiedjȯ K	jɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X-  @@ -21,6 +21,7 @@
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import java.lang.reflect.Proxy;
 import java.time.Clock;
@@ -31,18 +32,21 @@
 import java.util.function.Supplier;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class ExperimentRunningProxyTest {
     private static final int EXPERIMENTAL_RESULT = 123;
     private static final int FALLBACK_RESULT = 1;
     private static final RuntimeException RUNTIME_EXCEPTION = new RuntimeException("foo");
 
-    private final IntSupplier experimentalIntSupplier = mock(IntSupplier.class);
-    private final Supplier<IntSupplier> experimentSupplier = mock(Supplier.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private final IntSupplier experimentalIntSupplier = mock(IntSupplier.class, mockSettings);
+    private final Supplier<IntSupplier> experimentSupplier = mock(Supplier.class, mockSettings);
     private final IntSupplier fallbackIntSupplier = () -> FALLBACK_RESULT;
-    private final BooleanSupplier useExperimental = mock(BooleanSupplier.class);
-    private final BooleanSupplier enableFallback = mock(BooleanSupplier.class);
-    private final Clock clock = mock(Clock.class);
+    private final BooleanSupplier useExperimental = mock(BooleanSupplier.class, mockSettings);
+    private final BooleanSupplier enableFallback = mock(BooleanSupplier.class, mockSettings);
+    private final Clock clock = mock(Clock.class, mockSettings);
     private final AtomicLong errorCounter = new AtomicLong();
 
     private final IntSupplier proxyInstance = intSupplierForProxy(new ExperimentRunningProxy<>(u}(jb (b0f2716a61e018a00bbe37c55b0a8985af943d96jί Watlasdb-commons/src/test/java/com/palantir/common/proxy/PredicateSwitchedProxyTest.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X~  @@ -19,14 +19,18 @@
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.withSettings;
 
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.function.IntConsumer;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class PredicateSwitchedProxyTest {
-    private final IntConsumer decorated = mock(IntConsumer.class);
-    private final IntConsumer delegate = mock(IntConsumer.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private final IntConsumer decorated = mock(IntConsumer.class, mockSettings);
+    private final IntConsumer delegate = mock(IntConsumer.class, mockSettings);
 
     private final AtomicBoolean atomicBoolean = new AtomicBoolean(false);
 u}(jb (afb4f7f151215eb0eb16fab26719c6f0358957e5jί `atlasdb-commons/src/test/java/com/palantir/common/proxy/ReplaceIfExceptionMatchingProxyTest.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ Xl  @@ -29,16 +29,17 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.mockito.Mock;
+import org.mockito.MockMakers;
 import org.mockito.junit.MockitoJUnitRunner;
 
 // Mock is used as a convenient supplier, alternatives are rather verbose
 @SuppressWarnings("DirectInvocationOnMock")
 @RunWith(MockitoJUnitRunner.class)
 public class ReplaceIfExceptionMatchingProxyTest {
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private TestInterface delegate;
 
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private Supplier<TestInterface> supplier;
 
     interface TestInterface {u}(jb (d8fe3c284ed462a646f9db9df6e46865f71c8b7fjί Oatlasdb-commons/src/test/java/com/palantir/util/CachedComposedSupplierTest.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -16,7 +16,9 @@
 package com.palantir.util;
 
 import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.concurrent.ExecutorService;
@@ -25,7 +27,7 @@
 import java.util.function.Supplier;
 import org.junit.Before;
 import org.junit.Test;
-import org.mockito.Mockito;
+import org.mockito.MockMakers;
 
 public class CachedComposedSupplierTest {
     private long counter;
@@ -37,7 +39,7 @@ public class CachedComposedSupplierTest {
     public void setup() {
         counter = 0;
         supplierCounter = 0;
-        mockVersionedSupplier = Mockito.mock(Supplier.class);
+        mockVersionedSupplier = mock(Supplier.class, withSettings().mockMaker(MockMakers.SUBCLASS));
         testSupplier = new CachedComposedSupplier<>(this::countingFunction, mockVersionedSupplier);
     }
 u}(jb (21ad962d9f363b09efeaba7f674e27e337cb763ajί Katlasdb-commons/src/test/java/com/palantir/util/SafeShutdownRunnerTest.javajЯ modifiedjȯ Kjɯ Kjү K
jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -24,6 +24,7 @@
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import java.time.Duration;
@@ -32,14 +33,17 @@
 import java.util.stream.Stream;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class SafeShutdownRunnerTest {
     private static final RuntimeException EXCEPTION_1 = new RuntimeException("test");
     private static final RuntimeException EXCEPTION_2 = new RuntimeException("bleh");
 
-    private Runnable mockRunnable = mock(Runnable.class);
-    private Runnable throwingRunnable = mock(Runnable.class);
-    private Runnable blockingUninterruptibleRunnable = mock(Runnable.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private Runnable mockRunnable = mock(Runnable.class, mockSettings);
+    private Runnable throwingRunnable = mock(Runnable.class, mockSettings);
+    private Runnable blockingUninterruptibleRunnable = mock(Runnable.class, mockSettings);
 
     @Before
     public void setupMocks() {u}(jb (66bef959146e2dc5dd5452e6f9606c9e4120c4f4jί Datlasdb-commons/src/test/java/com/palantir/util/TimedRunnerTest.javajЯ modifiedjȯ K	jɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X	  @@ -23,19 +23,23 @@
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.util.TimedRunner.TaskContext;
 import java.time.Duration;
 import java.util.concurrent.Callable;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public final class TimedRunnerTest {
     private static final RuntimeException EXCEPTION_1 = new RuntimeException("test");
     private static final RuntimeException EXCEPTION_2 = new RuntimeException("bleh");
 
-    private Runnable noOpRunnable = mock(Runnable.class);
-    private Runnable throwingRunnable = mock(Runnable.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private Runnable noOpRunnable = mock(Runnable.class, mockSettings);
+    private Runnable throwingRunnable = mock(Runnable.class, mockSettings);
 
     @Before
     public void setupMocks() {
@@ -46,7 +50,7 @@ public void setupMocks() {
     public void runnerRunsOneTask() throws Exception {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
 
-        Callable<Integer> task = mock(Callable.class);
+        Callable<Integer> task = mock(Callable.class, mockSettings);
         when(task.call()).thenReturn(5);
         int result = runner.run(TaskContext.create(task, noOpRunnable));
 
@@ -58,7 +62,7 @@ public void runnerRunsOneTask() throws Exception {
     @Test
     public void exceptionsAreThrownWhenRunningSingleton() {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
-        Runnable failureHandler = mock(Runnable.class);
+        Runnable failureHandler = mock(Runnable.class, mockSettings);
 
         assertThatThrownBy(() -> runner.run(TaskContext.createRunnable(throwingRunnable, failureHandler)))
                 .isEqualTo(EXCEPTION_1);
@@ -68,7 +72,7 @@ public void exceptionsAreThrownWhenRunningSingleton() {
     @Test
     public void correctSuppressedExceptionsAreThrownIfFailureHandlerThrows() {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
-        Runnable failureHandler = mock(Runnable.class);
+        Runnable failureHandler = mock(Runnable.class, mockSettings);
         doThrow(EXCEPTION_2).when(failureHandler).run();
 
         assertThatThrownBy(() -> runner.run(TaskContext.createRunnable(throwingRunnable, failureHandler)))u}(jb (df57e9fd3c6376b49fd3c1adb77db41b476aeffejί datlasdb-config/src/main/java/com/palantir/atlasdb/factory/DefaultLockAndTimestampServiceFactory.javajЯ modifiedjȯ K&jɯ Kjү K)jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X4  @@ -96,6 +96,7 @@
 import java.util.Set;
 import java.util.concurrent.CompletableFuture;
 import java.util.function.Consumer;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import javax.ws.rs.ClientErrorException;
 
@@ -118,6 +119,8 @@ public final class DefaultLockAndTimestampServiceFactory implements LockAndTimes
     private final Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders;
     private final Set<Schema> schemas;
 
+    private final Function<TimelockService, TimeLockClient> timelockClientFactory;
+
     public DefaultLockAndTimestampServiceFactory(
             MetricsManager metricsManager,
             AtlasDbConfig config,
@@ -132,6 +135,38 @@ public DefaultLockAndTimestampServiceFactory(
             Optional<TimeLockFeedbackBackgroundTask> timeLockFeedbackBackgroundTask,
             Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders,
             Set<Schema> schemas) {
+        this(
+                metricsManager,
+                config,
+                runtimeConfig,
+                registrar,
+                lock,
+                time,
+                invalidator,
+                userAgent,
+                lockDiagnosticComponents,
+                reloadingFactory,
+                timeLockFeedbackBackgroundTask,
+                timelockRequestBatcherProviders,
+                schemas,
+                TimeLockClient::createDefault);
+    }
+
+    public DefaultLockAndTimestampServiceFactory(
+            MetricsManager metricsManager,
+            AtlasDbConfig config,
+            Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
+            Consumer<Object> registrar,
+            Supplier<LockService> lock,
+            Supplier<ManagedTimestampService> time,
+            TimestampStoreInvalidator invalidator,
+            UserAgent userAgent,
+            Optional<LockDiagnosticComponents> lockDiagnosticComponents,
+            ReloadingFactory reloadingFactory,
+            Optional<TimeLockFeedbackBackgroundTask> timeLockFeedbackBackgroundTask,
+            Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders,
+            Set<Schema> schemas,
+            Function<TimelockService, TimeLockClient> timelockClientFactory) {
         this.metricsManager = metricsManager;
         this.config = config;
         this.runtimeConfig = runtimeConfig;
@@ -145,6 +180,7 @@ public DefaultLockAndTimestampServiceFactory(
         this.timeLockFeedbackBackgroundTask = timeLockFeedbackBackgroundTask;
         this.timelockRequestBatcherProviders = timelockRequestBatcherProviders;
         this.schemas = schemas;
+        this.timelockClientFactory = timelockClientFactory;
     }
 
     @Override
@@ -166,9 +202,8 @@ public LockAndTimestampServices createLockAndTimestampServices() {
         return withMetrics(metricsManager, withRefreshingLockService(lockAndTimestampServices));
     }
 
-    private static LockAndTimestampServices withRefreshingLockService(
-            LockAndTimestampServices lockAndTimestampServices) {
-        TimeLockClient timeLockClient = TimeLockClient.createDefault(lockAndTimestampServices.timelock());
+    private LockAndTimestampServices withRefreshingLockService(LockAndTimestampServices lockAndTimestampServices) {
+        TimeLockClient timeLockClient = timelockClientFactory.apply(lockAndTimestampServices.timelock());
         ProfilingTimelockService profilingService = ProfilingTimelockService.create(timeLockClient);
         return ImmutableLockAndTimestampServices.builder()
                 .from(lockAndTimestampServices)u}(jb (37473508e06c194b315e01d89ff08da1a5152705jί Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javajЯ modifiedjȯ Kjɯ Kjү K	jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X+  @@ -129,6 +129,7 @@
 import com.palantir.lock.client.TimeLockClient;
 import com.palantir.lock.client.metrics.TimeLockFeedbackBackgroundTask;
 import com.palantir.lock.impl.LockServiceImpl;
+import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -198,6 +199,11 @@ boolean allSafeForLogging() {
         return false;
     }
 
+    @Value.Default
+    Function<TimelockService, TimeLockClient> defaultTimelockClientFactory() {
+        return TimeLockClient::createDefault;
+    }
+
     abstract Optional<LockAndTimestampServiceFactory> lockAndTimestampServiceFactory();
 
     abstract UserAgent userAgent();
@@ -385,7 +391,8 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                         reloadingFactory(),
                         timeLockFeedbackBackgroundTask,
                         timelockRequestBatcherProviders(),
-                        schemas()));
+                        schemas(),
+                        defaultTimelockClientFactory()));
         LockAndTimestampServices lockAndTimestampServices = factory.createLockAndTimestampServices();
         adapter.setTimestampService(lockAndTimestampServices.managedTimestampService());
 u}(jb (830982ceb08e4589ac04405c25af4ab7902e61fajί )atlasdb-container-test-utils/build.gradlejЯ modifiedjȯ Kjɯ K jү Kjӯ }https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-container-test-utils%2Fbuild.gradlejկ |https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-container-test-utils%2Fbuild.gradlejׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-container-test-utils%2Fbuild.gradle?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -7,6 +7,7 @@ dependencies {
     implementation project(':atlasdb-tests-shared')
     implementation project(":flake-rule")
 
+    implementation 'com.github.ben-manes.caffeine:caffeine'
     implementation 'com.google.guava:guava'
     implementation 'com.palantir.docker.compose:docker-compose-rule-core'
     implementation 'com.palantir.docker.compose:docker-compose-rule-junit4'u}(jb (67f1ebfdab7e84e38c746fafcd1c8d3c0d58bbeejί Zatlasdb-container-test-utils/src/main/java/com/palantir/atlasdb/containers/Containers.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FContainers.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FContainers.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FContainers.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X	  @@ -15,11 +15,10 @@
  */
 package com.palantir.atlasdb.containers;
 
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Throwables;
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
 import com.google.common.collect.Sets;
 import com.palantir.docker.compose.DockerComposeRule;
 import com.palantir.docker.compose.configuration.DockerComposeFiles;
@@ -56,7 +55,7 @@ public class Containers extends ExternalResource {
     private static final Set<Container> containersToStart = new HashSet<>();
     private static final Set<Container> containersStarted = new HashSet<>();
     private static final LoadingCache<String, String> dockerComposeFilesToTemporaryCopies =
-            CacheBuilder.newBuilder().build(CacheLoader.from(Containers::getDockerComposeFile));
+            Caffeine.newBuilder().build(Containers::getDockerComposeFile);
 
     private static volatile DockerComposeRule dockerComposeRule;
     private static volatile InterruptibleFileLogCollector currentLogCollector;
@@ -132,10 +131,11 @@ private void setupLogCollectorForLogDirectory() {
     }
 
     private void setupDockerComposeRule() throws InterruptedException, IOException {
-        Set<String> containerDockerComposeFiles = containersToStart.stream()
+        DockerComposeFiles files = DockerComposeFiles.from(containersToStart.stream()
                 .map(Container::getDockerComposeFile)
-                .map(dockerComposeFilesToTemporaryCopies::getUnchecked)
-                .collect(Collectors.toSet());
+                .map(dockerComposeFilesToTemporaryCopies::get)
+                .distinct()
+                .toArray(String[]::new));
 
         Map<String, String> environment = containersToStart.stream()
                 .flatMap(container -> container.getEnvironment().entrySet().stream())
@@ -145,7 +145,7 @@ private void setupDockerComposeRule() throws InterruptedException, IOException {
                 DockerMachine.localMachine().withEnvironment(environment).build();
 
         dockerComposeRule = DockerComposeRule.builder()
-                .files(DockerComposeFiles.from(containerDockerComposeFiles.toArray(new String[0])))
+                .files(files)
                 .projectName(PROJECT_NAME)
                 .machine(machine)
                 .logCollector(currentLogCollector)u}(jb (b93a15e152b0661235eae7311c65e340f0766e0ajί atlasdb-dbkvs/build.gradlejЯ modifiedjȯ Kjɯ K jү Kjӯ nhttps://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-dbkvs%2Fbuild.gradlejկ mhttps://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-dbkvs%2Fbuild.gradlejׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fbuild.gradle?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -14,6 +14,7 @@ dependencies {
   implementation "com.palantir.nylon:nylon-threads"
   implementation 'com.fasterxml.jackson.core:jackson-annotations'
   implementation 'com.fasterxml.jackson.core:jackson-databind'
+  implementation 'com.github.ben-manes.caffeine:caffeine'
   implementation 'com.google.auto.service:auto-service-annotations'
   implementation 'com.google.errorprone:error_prone_annotations'
   implementation 'com.google.guava:guava'u}(jb (5ae1b103b3cc86213d6ae94812960a7d892efa6ejί \atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/OracleTableNameUnmapper.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapper.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapper.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapper.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -15,8 +15,8 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs;
 
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -28,6 +28,7 @@
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.nexus.db.sql.AgnosticResultSet;
@@ -37,17 +38,16 @@
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
-import java.util.concurrent.ExecutionException;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 
 class OracleTableNameUnmapper {
     private static final SafeLogger log = SafeLoggerFactory.get(OracleTableNameUnmapper.class);
 
-    private Cache<String, String> unmappingCache;
+    private final Cache<String, String> unmappingCache;
 
     OracleTableNameUnmapper() {
-        unmappingCache = CacheBuilder.newBuilder().build();
+        unmappingCache = Caffeine.newBuilder().build();
     }
 
     @SuppressWarnings("checkstyle:NestedTryDepth")
@@ -56,22 +56,26 @@ public String getShortTableNameFromMappingTable(
             throws TableMappingNotFoundException {
         String fullTableName = tablePrefix + DbKvs.internalTableName(tableRef);
         try {
-            return unmappingCache.get(fullTableName, () -> {
+            return unmappingCache.get(fullTableName, tableNameKey -> {
                 SqlConnection conn = connectionSupplier.get();
                 AgnosticResultSet results = conn.selectResultSetUnregisteredQuery(
                         "SELECT short_table_name "
                                 + "FROM " + AtlasDbConstants.ORACLE_NAME_MAPPING_TABLE
                                 + " WHERE table_name = ?",
-                        fullTableName);
+                        tableNameKey);
                 if (results.size() == 0) {
-                    throw new TableMappingNotFoundException("The table " + fullTableName + " does not have a mapping."
-                            + "This might be because the table does not exist.");
+                    throw new SafeIllegalStateException(
+                            "The table does not have a mapping. This might be because the table does not exist.",
+                            UnsafeArg.of("tableName", tableNameKey));
                 }
 
                 return Iterables.getOnlyElement(results.rows()).getString("short_table_name");
             });
-        } catch (ExecutionException e) {
-            throw new TableMappingNotFoundException(e.getCause());
+        } catch (SafeIllegalStateException e) {
+            throw new TableMappingNotFoundException(
+                    "The table " + fullTableName
+                            + " does not have a mapping. This might be because the table does not exist.",
+                    e);
         }
     }
 u}(jb (dd961f490b5a264afcf9ab9af27ad5f4a20d2264jί \atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/TableMetadataCache.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableMetadataCache.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableMetadataCache.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableMetadataCache.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X:  @@ -15,8 +15,8 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs.impl;
 
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import java.time.Duration;
@@ -25,7 +25,7 @@
 public class TableMetadataCache {
     private static final TableMetadata EMPTY = TableMetadata.allDefault();
 
-    private final Cache<TableReference, TableMetadata> cache = CacheBuilder.newBuilder()
+    private final Cache<TableReference, TableMetadata> cache = Caffeine.newBuilder()
             .maximumSize(10000)
             .expireAfterWrite(Duration.ofHours(1))
             .build();u}(jb (d3a8c60a800e959b3becd43b20e4445fbceefb30jί batlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/TableValueStyleCacheImpl.javajЯ modifiedjȯ Kjɯ K
jү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableValueStyleCacheImpl.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableValueStyleCacheImpl.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableValueStyleCacheImpl.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ Xf
  @@ -15,47 +15,45 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs.impl;
 
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.google.common.base.Preconditions;
-import com.google.common.base.Throwables;
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.logging.LoggingArgs;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.nexus.db.sql.AgnosticResultSet;
 import com.palantir.nexus.db.sql.SqlConnection;
-import java.util.concurrent.ExecutionException;
 
 public final class TableValueStyleCacheImpl implements TableValueStyleCache {
     private static final SafeLogger log = SafeLoggerFactory.get(TableValueStyleCacheImpl.class);
 
     private final Cache<TableReference, TableValueStyle> valueStyleByTableRef =
-            CacheBuilder.newBuilder().build();
+            Caffeine.newBuilder().build();
 
     @Override
     public TableValueStyle getTableType(
             final ConnectionSupplier connectionSupplier, final TableReference tableRef, TableReference metadataTable) {
         try {
-            return valueStyleByTableRef.get(tableRef, () -> {
+            return valueStyleByTableRef.get(tableRef, tableRefKey -> {
                 SqlConnection conn = connectionSupplier.get();
                 AgnosticResultSet results = conn.selectResultSetUnregisteredQuery(
                         String.format(
                                 "SELECT table_size FROM %s WHERE table_name = ?", metadataTable.getQualifiedName()),
-                        tableRef.getQualifiedName());
+                        tableRefKey.getQualifiedName());
                 Preconditions.checkArgument(
-                        !results.rows().isEmpty(), "table %s not found", tableRef.getQualifiedName());
+                        !results.rows().isEmpty(), "table %s not found", tableRefKey.getQualifiedName());
 
                 return TableValueStyle.byId(
                         Iterables.getOnlyElement(results.rows()).getInteger("table_size"));
             });
-        } catch (ExecutionException e) {
+        } catch (RuntimeException e) {
             log.error(
                     "TableValueStyle for the table {} could not be retrieved.",
                     LoggingArgs.safeInternalTableName(tableRef.getQualifiedName()),
                     e);
-            throw Throwables.propagate(e);
+            throw e;
         }
     }
 u}(jb (ac33fad35d76f1ceb079128628c94f48a6bb5693jί `atlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/OracleTableNameUnmapperTest.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -18,6 +18,7 @@
 import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
+import static org.assertj.core.api.InstanceOfAssertFactories.type;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.ArgumentMatchers.startsWith;
@@ -103,7 +104,16 @@ public void shouldThrowIfTableMappingDoesNotExist() {
         assertThatThrownBy(() -> oracleTableNameUnmapper.getShortTableNameFromMappingTable(
                         connectionSupplier, TEST_PREFIX, TABLE_REF))
                 .isInstanceOf(TableMappingNotFoundException.class)
-                .hasMessageContaining("The table a_test_namespace__ThisIsAVeryLongTableNameThatWillExceed");
+                .hasMessageContaining("The table a_test_namespace__ThisIsAVeryLongTableNameThatWillExceed")
+                .hasRootCauseInstanceOf(SafeIllegalStateException.class)
+                .rootCause()
+                .asInstanceOf(type(SafeIllegalStateException.class))
+                .extracting(SafeIllegalStateException::getArgs)
+                .satisfies(args -> assertThat(args)
+                        .hasSize(1)
+                        .first()
+                        .isEqualTo(
+                                UnsafeArg.of("tableName", "a_test_namespace__ThisIsAVeryLongTableNameThatWillExceed")));
     }
 
     @Testu}(jb (406ea4c829a8af8841a2d625eb7be180b4deeb1bjί aatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/LatestSnapshotTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FLatestSnapshotTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FLatestSnapshotTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FLatestSnapshotTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "1hXp6wqgn1sn1zvk2FNCsA==";
+    static String __CLASS_HASH = "IGBmCsqLmahL4VNCmymeTA==";
 }u}(jb (691b032f8500c1d98893ea25953a5a1da6159237jί aatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/NamespacedTodoTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FNamespacedTodoTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FNamespacedTodoTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FNamespacedTodoTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "u45FW2313LWExLwSpn1QNQ==";
+    static String __CLASS_HASH = "hQ6/1zRsdc2LBKW0GTYdpw==";
 }u}(jb (8d929951097fa4dd1ed276565d0e054a197030c1jί jatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamHashAidxTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamHashAidxTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamHashAidxTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamHashAidxTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "PCkKiTatC1CKEn6ZH3wovQ==";
+    static String __CLASS_HASH = "D9OdSrGepZI1dcZ5KV7B0g==";
 }u     }(jb (c2166395fe0ce40fad624f15a49f97e8082edb87jί eatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamIdxTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamIdxTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamIdxTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamIdxTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "D1MDUfpiS0iyGcBvr58Y8g==";
+    static String __CLASS_HASH = "Ql7tNJ0Z5v0pWFviP9dcuw==";
 }u}(jb (751427a20cec42114f38fb040766075b79fceb85jί jatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamMetadataTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamMetadataTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamMetadataTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamMetadataTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "CYeYrtJK8/cz/1qm4lAQbw==";
+    static String __CLASS_HASH = "AgT8WHSuUvJzkk+inw4twg==";
 }u}(jb (d9eb5e622958eabbadfc64f623d7af4e2b8f6ab2jί batlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamStore.javajЯ modifiedjȯ Kjɯ Kjү K	jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamStore.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamStore.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamStore.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         SnapshotsStreamMetadataTable table = tables.getSnapshotsStreamMetadataTable(t);
         Map<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow, SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow r : m.keySet()) {
             for (SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> rows = new HashSet<>();
+        Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow.of(h));
         }u}(jb (50fe24ebd9570730219ff9c8cabd8b95ef133793jί gatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamValueTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamValueTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamValueTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamValueTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "VELEHtyEvSAidzHk7HUynw==";
+    static String __CLASS_HASH = "9m/lRuE/UHMttmLTS1Q8iQ==";
 }u}(jb (0fc54eda7b5bdfc6e1df2d83a646c1c897f7545djί Watlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/TodoTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FTodoTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FTodoTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FTodoTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "a41wenQu3aKASLvmOEI8kQ==";
+    static String __CLASS_HASH = "1g5OdW5n4H7icFXg1gG2Xg==";
 }u}(jb (1d193b8827aecd4f6d245fb465dfbdc647f5e14ajί +atlasdb-ete-tests/docker-compose.oracle.ymljЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fdocker-compose.oracle.ymljկ ~https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fdocker-compose.oracle.ymljׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.oracle.yml?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ @@ -2,7 +2,7 @@ version: '2'
 
 services:
   oracle:
-    image: palantirtechnologies/oracle-atlasdb:19.18.0.0-se
+    image: palantirtechnologies/oracle-atlasdb:19.19.0.0-se
     ports:
       - "1521"
 u}(jb (c7df5ab0634529958ebd6f5e9833133b80d6f481jί Yatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/AuditedDataTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FAuditedDataTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FAuditedDataTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FAuditedDataTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "HWEvAR+se/bt6noPrSI5eQ==";
+    static String __CLASS_HASH = "AkImLEM5fv/Ji8qCyRf5dw==";
 }u}(jb (691e7c2e8f8e94ee1c2d708ae8a7265a658fc2d7jί `atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamHashAidxTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamHashAidxTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamHashAidxTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamHashAidxTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "6ODGPI1lqmv77xZs7geJPg==";
+    static String __CLASS_HASH = "4xCW34HnUp0WcB647QLiyQ==";
 }u}(jb (450188be061709cb7be5970d7510cb674fd90334jί [atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamIdxTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamIdxTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamIdxTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamIdxTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -730,6 +731,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -753,5 +755,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Rdk+n2nUmS6yWZK9HAk9OA==";
+    static String __CLASS_HASH = "Cv4WRWZ3CKVWR5IhFRmgLg==";
 }u}(jb (02b71ddbab73ddfa1fb611fe7718aec48202c8f9jί `atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamMetadataTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamMetadataTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamMetadataTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamMetadataTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -697,6 +698,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -720,5 +722,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "RPuWa9/Enf/G4yy7WraKvg==";
+    static String __CLASS_HASH = "AFwooxC06krTqFv58UfkcA==";
 }u}(jb (8c464c6e727d316151fe167fb7023408f8223c1bjί Xatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamStore.javajЯ modifiedjȯ Kjɯ Kjү K	jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamStore.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamStore.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamStore.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         DataStreamMetadataTable table = tables.getDataStreamMetadataTable(t);
         Map<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<DataStreamHashAidxTable.DataStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<DataStreamHashAidxTable.DataStreamHashAidxRow, DataStreamHashAidxTable.DataStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (DataStreamHashAidxTable.DataStreamHashAidxRow r : m.keySet()) {
             for (DataStreamHashAidxTable.DataStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<DataStreamHashAidxTable.DataStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<DataStreamHashAidxTable.DataStreamHashAidxRow> rows = new HashSet<>();
+        Set<DataStreamHashAidxTable.DataStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(DataStreamHashAidxTable.DataStreamHashAidxRow.of(h));
         }u}(jb (339121486a993326e0fab616ee41e6840e0bcdeajί ]atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamValueTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamValueTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamValueTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamValueTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -685,6 +686,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -708,5 +710,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "DS6SuJzRnFffdUrdtO6Guw==";
+    static String __CLASS_HASH = "hogeDv0tsmrHDkXuhcwteQ==";
 }u}(jb (9ddaa82ed535788ceb2af45646bddc9ef36ee8c1jί iatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamHashAidxTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamHashAidxTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamHashAidxTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamHashAidxTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "SH1UPkfcLa9w8NXZtXW8SQ==";
+    static String __CLASS_HASH = "NOiRKvLXsadPhJ4N/aae6Q==";
 }u}(jb (64418a6885ea388ae8cacfebdee217037e578fbcjί datlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamIdxTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamIdxTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamIdxTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamIdxTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "mpf2q7hm+MfMFLkXqKHb6Q==";
+    static String __CLASS_HASH = "lWy4z6m1ZmwcuY4d/ez8Rw==";
 }u}(jb (db9af2411ac58ba1397ec11aaec3110306b1b1f0jί iatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamMetadataTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamMetadataTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamMetadataTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamMetadataTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Ce61mTEgHfgl6d16rBNwUA==";
+    static String __CLASS_HASH = "KLkPI2rjlr8itPxC4ZWJLg==";
 }u}(jb (dde1b9206472d7a2d64075fe39b94b5e132abc0djί aatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamStore.javajЯ modifiedjȯ Kjɯ Kjү K	jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamStore.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamStore.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamStore.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         HotspottyDataStreamMetadataTable table = tables.getHotspottyDataStreamMetadataTable(t);
         Map<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow, HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow r : m.keySet()) {
             for (HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> rows = new HashSet<>();
+        Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow.of(h));
         }u}(jb (8883d5d8737eef19a3f25fd258d579ac8e1dbec9jί fatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamValueTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamValueTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamValueTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamValueTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "qpxadEqMHw8NeLcCZ0b7oA==";
+    static String __CLASS_HASH = "9KSCRtbyVXFg2nb/7Wc8OA==";
 }u}(jb (c343ae3edce2f8e4d5a1c928511f569ac571e2d1jί Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/cleaner/CachingPuncherStore.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FCachingPuncherStore.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FCachingPuncherStore.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FCachingPuncherStore.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -15,9 +15,8 @@
  */
 package com.palantir.atlasdb.cleaner;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 
 /**
  * Wrap another PuncherStore, optimizing the #get() operation to operate on a local cache, only
@@ -31,14 +30,8 @@ public final class CachingPuncherStore implements PuncherStore {
     private static final int CACHE_SIZE = 64000;
 
     public static CachingPuncherStore create(final PuncherStore puncherStore, long granularityMillis) {
-        LoadingCache<Long, Long> timeMillisToTimestamp = CacheBuilder.newBuilder()
-                .maximumSize(CACHE_SIZE)
-                .build(new CacheLoader<Long, Long>() {
-                    @Override
-                    public Long load(Long timeMillis) throws Exception {
-                        return puncherStore.get(timeMillis);
-                    }
-                });
+        LoadingCache<Long, Long> timeMillisToTimestamp =
+                Caffeine.newBuilder().maximumSize(CACHE_SIZE).build(puncherStore::get);
         return new CachingPuncherStore(puncherStore, timeMillisToTimestamp, granularityMillis);
     }
 
@@ -66,7 +59,7 @@ public void put(long timestamp, long timeMillis) {
     @Override
     public Long get(Long timeMillis) {
         long approximateTimeMillis = timeMillis - (timeMillis % granularityMillis);
-        return timeMillisToTimestamp.getUnchecked(approximateTimeMillis);
+        return timeMillisToTimestamp.get(approximateTimeMillis);
     }
 
     @Overrideu}(jb (c480df0088f6789eb9035ca913cc7cc57d932d70jί _atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/watch/TimestampMapping.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -16,12 +16,17 @@
 
 package com.palantir.atlasdb.keyvalue.api.watch;
 
-import com.google.common.collect.MoreCollectors;
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.Collections2;
 import com.google.common.collect.Range;
 import com.palantir.lock.watch.LockWatchVersion;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Iterator;
 import java.util.LongSummaryStatistics;
 import java.util.Map;
+import java.util.Objects;
 import java.util.UUID;
 import org.immutables.value.Value;
 
@@ -44,10 +49,8 @@ default LockWatchVersion lastVersion() {
 
     @Value.Derived
     default UUID leader() {
-        return timestampMapping().values().stream()
-                .map(LockWatchVersion::id)
-                .distinct()
-                .collect(MoreCollectors.onlyElement());
+        // explicitly avoiding stream and distinct collection copy when all IDs should be identical
+        return identicalElement(Collections2.transform(timestampMapping().values(), LockWatchVersion::id));
     }
 
     @Value.Check
@@ -58,4 +61,20 @@ default void nonEmptyMapping() {
     static ImmutableTimestampMapping.Builder builder() {
         return ImmutableTimestampMapping.builder();
     }
+
+    @VisibleForTesting
+    static <T> T identicalElement(Iterable<? extends T> iterable) {
+        Iterator<? extends T> iterator = iterable.iterator();
+        T element = iterator.next();
+        while (iterator.hasNext()) {
+            T next = iterator.next();
+            if (!Objects.equals(element, next)) {
+                throw new SafeIllegalArgumentException(
+                        "Input contains multiple distinct elements",
+                        SafeArg.of("element", element),
+                        SafeArg.of("next", next));
+            }
+        }
+        return element;
+    }
 }u}(jb (473d85d8410eb6afff14e536910bcdc893df9991jί Oatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/CommitTsCache.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FCommitTsCache.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FCommitTsCache.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FCommitTsCache.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ XK  @@ -25,7 +25,7 @@
 
 public final class CommitTsCache {
     private static final Long ONE_MILLION = 1_000_000L;
-    private LoadingCache<Long, Long> cache;
+    private final LoadingCache<Long, Long> cache;
 
     private CommitTsCache(TransactionService transactionService, long maxSize) {
         cache = Caffeine.newBuilder()u}(jb (a5aa10990351e2183eaafa2292e37b9821a2373bjί \atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitioner.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X.  @@ -15,10 +15,9 @@
  */
 package com.palantir.atlasdb.sweep.queue;
 
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.annotations.VisibleForTesting;
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.WriteReference;
@@ -41,13 +40,8 @@ public class WriteInfoPartitioner {
     private final KeyValueService kvs;
     private final Supplier<Integer> numShards;
 
-    private final LoadingCache<TableReference, SweeperStrategy> cache = CacheBuilder.newBuilder()
-            .build(new CacheLoader<>() {
-                @Override
-                public SweeperStrategy load(TableReference key) {
-                    return getStrategyFromKvs(key);
-                }
-            });
+    private final LoadingCache<TableReference, SweeperStrategy> cache =
+            Caffeine.newBuilder().build(this::getStrategyFromKvs);
 
     public WriteInfoPartitioner(KeyValueService kvs, Supplier<Integer> numShards) {
         this.kvs = kvs;
@@ -96,7 +90,7 @@ SweeperStrategy getStrategy(WriteInfo writeInfo) {
     }
 
     SweeperStrategy getStrategyForTable(TableReference tableRef) {
-        return cache.getUnchecked(tableRef);
+        return cache.get(tableRef);
     }
 
     private SweeperStrategy getStrategyFromKvs(TableReference tableRef) {u}(jb (2de6f288bf092213b4b2345a73a735695f0f3c27jί catlasdb-impl-shared/src/test/java/com/palantir/atlasdb/keyvalue/api/watch/TimestampMappingTest.javajЯ addedjȯ K\jɯ K jү K\jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X;  @@ -0,0 +1,92 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.api.watch;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.google.common.collect.Iterables;
+import com.palantir.lock.watch.LockWatchVersion;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import java.util.NoSuchElementException;
+import java.util.UUID;
+import org.junit.Test;
+
+public class TimestampMappingTest {
+    @Test
+    public void singleLeaderMappingIsValid() {
+        UUID id = UUID.randomUUID();
+        ImmutableTimestampMapping timestampMapping = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(id, 1))
+                .build();
+        assertThat(timestampMapping.leader()).isEqualTo(id);
+    }
+
+    @Test
+    public void singleDistinctLeaderMappingIsValid() {
+        UUID id = UUID.randomUUID();
+        ImmutableTimestampMapping timestampMapping = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(id, 1))
+                .putTimestampMapping(2L, LockWatchVersion.of(id, 1))
+                .build();
+        assertThat(timestampMapping.leader()).isEqualTo(id);
+    }
+
+    @Test
+    public void conflictingLeaderMappingIsInvalid() {
+        ImmutableTimestampMapping.Builder builder = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(UUID.randomUUID(), 1))
+                .putTimestampMapping(2L, LockWatchVersion.of(UUID.randomUUID(), 1));
+
+        assertThatThrownBy(builder::build)
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+    }
+
+    @Test
+    public void emptyMappingIsInvalid() {
+        assertThatThrownBy(() -> TimestampMapping.builder().build())
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("Invalid range");
+    }
+
+    @Test
+    public void onlyIdenticalElements() {
+        assertThat(TimestampMapping.identicalElement(List.of("test"))).isEqualTo("test");
+        assertThat(TimestampMapping.identicalElement(Iterables.limit(Iterables.cycle("test"), 1000)))
+                .isEqualTo("test");
+        assertThat(TimestampMapping.identicalElement(Iterables.limit(Iterables.cycle(42L), 1000)))
+                .isEqualTo(42L);
+    }
+
+    @Test
+    public void emptyDistinctElements() {
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of()))
+                .isInstanceOf(NoSuchElementException.class);
+    }
+
+    @Test
+    public void multipleDistinctElements() {
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of("a", "b", "a")))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of("a", "a", "b")))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+    }
+}u}(jb (ed0c8b2b67fd881994a89c56448b471760eee7f3jί `atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitionerTest.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -30,14 +30,14 @@
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.Iterables;
-import com.google.common.util.concurrent.UncheckedExecutionException;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.atlasdb.table.description.SweeperStrategy;
+import com.palantir.common.exception.PalantirRuntimeException;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
@@ -74,15 +74,16 @@ public void setup() {
     public void getStrategyThrowsForIllegalMetadata() {
         when(mockKvs.getMetadataForTable(any())).thenReturn(AtlasDbConstants.EMPTY_TABLE_METADATA);
         assertThatThrownBy(() -> partitioner.getStrategy(getWriteInfoWithFixedShard(getTableRef("a"), 0, numShards)))
-                .isInstanceOf(UncheckedExecutionException.class);
+                .isInstanceOf(PalantirRuntimeException.class)
+                .hasMessageContaining("Message missing required fields: rowName, columns, conflictHandler");
     }
 
     @Test
     public void getStrategyThrowsOnUncheckedException() {
         RuntimeException cause = new RuntimeException("cause");
         when(mockKvs.getMetadataForTable(any())).thenThrow(cause);
         assertThatThrownBy(() -> partitioner.getStrategy(getWriteInfoWithFixedShard(getTableRef("a"), 0, numShards)))
-                .isInstanceOf(UncheckedExecutionException.class)
+                .isInstanceOf(RuntimeException.class)
                 .hasCause(cause);
     }
 u}(jb (cd21ecbc3c68e28c454d5bff8f68991164cec40bjί tatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/TransactionConflictDetectionManagerTest.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConflictDetectionManagerTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConflictDetectionManagerTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConflictDetectionManagerTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -21,7 +21,7 @@
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.Mockito.when;
 
-import com.google.common.cache.CacheLoader;
+import com.github.benmanes.caffeine.cache.CacheLoader;
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;u}(jb (9e9357f8de655d0e17ba1dd9b8acd708782624dajί _atlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/KeyValueTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FKeyValueTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FKeyValueTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FKeyValueTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -720,6 +721,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -743,5 +745,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "hup2zbIPEU3UyNMOfe1YNw==";
+    static String __CLASS_HASH = "EvFEiQbULvhKQD1IWFw9Og==";
 }u}(jb (71133787b090b82a707e49603e186dfa7e9667bbjί jatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamHashAidxTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamHashAidxTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamHashAidxTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamHashAidxTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "5cWqgzNsimsjOXwgH7qMXg==";
+    static String __CLASS_HASH = "JgFB0UN+4Pm4N3LOPvQBgQ==";
 }u}(jb (12c3935195ed70fde95f3887274b533b88339351jί eatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamIdxTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamIdxTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamIdxTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamIdxTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "MkCIg9TK7rahg1mYHQmGVQ==";
+    static String __CLASS_HASH = "bEOuPNCg8sYuyW4OuRhvww==";
 }u}(jb (89e24ea6242c9b9fb14e61ea5dcf01368dfc11ddjί jatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamMetadataTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamMetadataTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamMetadataTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamMetadataTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "C96zzv/xJuD8fFjGUzSd4A==";
+    static String __CLASS_HASH = "lqzqHpNRg+/IVPQNyNYi8w==";
 }u}(jb (131662e5ecd75a9a845b1ada71a5f0caabb1015bjί batlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamStore.javajЯ modifiedjȯ Kjɯ Kjү K	jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamStore.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamStore.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamStore.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X$
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         ValueStreamMetadataTable table = tables.getValueStreamMetadataTable(t);
         Map<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<ValueStreamHashAidxTable.ValueStreamHashAidxRow, ValueStreamHashAidxTable.ValueStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (ValueStreamHashAidxTable.ValueStreamHashAidxRow r : m.keySet()) {
             for (ValueStreamHashAidxTable.ValueStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> rows = new HashSet<>();
+        Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(ValueStreamHashAidxTable.ValueStreamHashAidxRow.of(h));
         }u}(jb (8612b0a582e6b1950385aa6d1574bbac6e20ffa1jί gatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamValueTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamValueTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamValueTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamValueTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "AWqOKaIXG5obDvezpY9QEQ==";
+    static String __CLASS_HASH = "uFwDglAaZjBu9w6E/JkGTA==";
 }u}(jb (026fff67eab8e84d14bad0730080cfefeff0ac7djί atlasdb-service/build.gradlejЯ modifiedjȯ Kjɯ K jү Kjӯ phttps://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-service%2Fbuild.gradlejկ ohttps://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-service%2Fbuild.gradlejׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-service%2Fbuild.gradle?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -11,6 +11,7 @@ dependencies {
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'
     implementation 'com.fasterxml.jackson.core:jackson-databind'
+    implementation 'com.github.ben-manes.caffeine:caffeine'
     implementation 'com.google.guava:guava'
     implementation 'com.google.protobuf:protobuf-java'
     implementation 'com.palantir.safe-logging:preconditions'u}(jb (b79b4dafcc946cf96444ea06a15f80c43c917632jί Oatlasdb-service/src/main/java/com/palantir/atlasdb/impl/AtlasDbServiceImpl.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FAtlasDbServiceImpl.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FAtlasDbServiceImpl.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FAtlasDbServiceImpl.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ Xh  @@ -15,8 +15,8 @@
  */
 package com.palantir.atlasdb.impl;
 
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Iterables;
@@ -66,7 +66,7 @@ public class AtlasDbServiceImpl implements AtlasDbService {
     private final KeyValueService kvs;
     private final TransactionManager txManager;
     private final Cache<TransactionToken, OpenTransaction> transactions =
-            CacheBuilder.newBuilder().expireAfterAccess(Duration.ofHours(12)).build();
+            Caffeine.newBuilder().expireAfterAccess(Duration.ofHours(12)).build();
     private final TableMetadataCache metadataCache;
 
     @Injectu}(jb (0ada116d7372c26c8a0931872702ce8748ea8d09jί Oatlasdb-service/src/main/java/com/palantir/atlasdb/impl/TableMetadataCache.javajЯ modifiedjȯ K	jɯ K
jү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FTableMetadataCache.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FTableMetadataCache.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FTableMetadataCache.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -15,9 +15,8 @@
  */
 package com.palantir.atlasdb.impl;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.table.description.TableMetadata;
@@ -31,24 +30,21 @@ public class TableMetadataCache {
 
     @Inject
     public TableMetadataCache(final KeyValueService kvs) {
-        this.cache = CacheBuilder.newBuilder()
+        this.cache = Caffeine.newBuilder()
                 .expireAfterAccess(Duration.ofMinutes(15))
-                .build(new CacheLoader<String, TableMetadata>() {
-                    @Override
-                    public TableMetadata load(String tableName) throws Exception {
-                        byte[] rawMetadata = kvs.getMetadataForTable(TableReference.createUnsafe(tableName));
-                        if (rawMetadata == null || rawMetadata.length == 0) {
-                            return EMPTY;
-                        }
-                        return TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(rawMetadata);
+                .build(tableName -> {
+                    byte[] rawMetadata = kvs.getMetadataForTable(TableReference.createUnsafe(tableName));
+                    if (rawMetadata == null || rawMetadata.length == 0) {
+                        return EMPTY;
                     }
+                    return TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(rawMetadata);
                 });
     }
 
     @CheckForNull
     @SuppressWarnings("ImmutablesReferenceEquality")
     public TableMetadata getMetadata(String tableName) {
-        TableMetadata ret = cache.getUnchecked(tableName);
+        TableMetadata ret = cache.get(tableName);
         if (ret == EMPTY) {
             return null;
         }u!      }(jb (633bf2503dddd056c1d63648ab4b3b33ddae8945jί !atlasdb-tests-shared/build.gradlejЯ modifiedjȯ Kjɯ K jү Kjӯ uhttps://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fbuild.gradlejկ thttps://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fbuild.gradlejׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fbuild.gradle?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ Xc  @@ -16,6 +16,7 @@ dependencies {
   implementation 'org.awaitility:awaitility'
 
   implementation 'com.fasterxml.jackson.core:jackson-core'
+  implementation 'com.github.ben-manes.caffeine:caffeine'
   implementation 'com.google.guava:guava'
   implementation 'com.palantir.common:streams'
   implementation 'com.palantir.conjure.java.api:service-config'u}(jb (495fe1f85525119f02ade86e97c44ed5de897764jί katlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/TestConflictDetectionManagers.javajЯ modifiedjȯ Kjɯ Kjү K	jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTestConflictDetectionManagers.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTestConflictDetectionManagers.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTestConflictDetectionManagers.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X#  @@ -16,7 +16,6 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.google.common.annotations.VisibleForTesting;
-import com.google.common.cache.CacheLoader;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import java.util.Map;
@@ -28,11 +27,7 @@ private TestConflictDetectionManagers() {}
     @VisibleForTesting
     static ConflictDetectionManager createWithStaticConflictDetection(
             Map<TableReference, Optional<ConflictHandler>> staticMap) {
-        return new ConflictDetectionManager(new CacheLoader<>() {
-            @Override
-            public Optional<ConflictHandler> load(TableReference tableReference) throws Exception {
-                return staticMap.getOrDefault(tableReference, Optional.of(ConflictHandler.RETRY_ON_WRITE_WRITE));
-            }
-        });
+        return new ConflictDetectionManager(tableReference ->
+                staticMap.getOrDefault(tableReference, Optional.of(ConflictHandler.RETRY_ON_WRITE_WRITE)));
     }
 }u}(jb (8154359d774907dc53f1db528c9656c41f00ad36jί `atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/indexing/generated/DataTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FDataTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FDataTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FDataTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -3605,6 +3606,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -3628,5 +3630,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "rHjWG0+SGxcp7KyF4uN6Tg==";
+    static String __CLASS_HASH = "fgza/c8nH19LqrftPRIqiA==";
 }u}(jb (ee2a5122bea79238ecd27ad1e4ca1456a7f7b835jί fatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/indexing/generated/TwoColumnsTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FTwoColumnsTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FTwoColumnsTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FTwoColumnsTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -2175,6 +2176,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -2198,5 +2200,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "ZLP1HeIjAhSt/NFAlfaFZw==";
+    static String __CLASS_HASH = "KStjuJG0LJnDxQ1sOAdxdg==";
 }u}(jb (c38a44055aef521e0c7a9078ac8e38e1f8f113f3jί batlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/KeyValueTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FKeyValueTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FKeyValueTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FKeyValueTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "FVgUWmuxuVzpOrJIO/DXPQ==";
+    static String __CLASS_HASH = "4kr4uM+Pm0pXXBnI3Rwp/g==";
 }u}(jb (483655cb2596c5c21bca0cbf355078fc452c2f2djί xatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamHashAidxTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamHashAidxTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamHashAidxTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamHashAidxTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "8WWlkvBZIFpNHwUr7wJuXA==";
+    static String __CLASS_HASH = "QDCK4a9zv6EgLNkYkrAVPQ==";
 }u}(jb (69c2cc77ef0d597921e1c6bf0028a4c9b6da106ejί satlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamIdxTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamIdxTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamIdxTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamIdxTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "fBsgiTVm3m2sJucODfXkrw==";
+    static String __CLASS_HASH = "ZrY7oPqs4lWL5Vm3ZAOfyQ==";
 }u}(jb (a48313725d6bbc0ecd9e5fd285aa2e10742f285djί xatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamMetadataTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamMetadataTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamMetadataTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamMetadataTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "YleWz4H842qjJBXcYvLobg==";
+    static String __CLASS_HASH = "k1qnaFkT6dVNCXg3oBI4WQ==";
 }u}(jb (b52156d27108b8235106d6448d277090b0bc34f1jί patlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamStore.javajЯ modifiedjȯ Kjɯ Kjү K	jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamStore.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamStore.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamStore.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ XX  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         StreamTestMaxMemStreamMetadataTable table = tables.getStreamTestMaxMemStreamMetadataTable(t);
         Map<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow, StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow r : m.keySet()) {
             for (StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> rows = new HashSet<>();
+        Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow.of(h));
         }u}(jb (4cc09292a0c881814092e59571bf42259f56cab7jί uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamValueTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamValueTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamValueTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamValueTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "1ctM+vcHEi56Rw7hX+plQg==";
+    static String __CLASS_HASH = "pYIryyxlhArJOo7k0Zv3dA==";
 }u}(jb (f825d53bfb0e6c5d7381ec01f8ecd07240bf379cjί ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamHashAidxTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamHashAidxTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamHashAidxTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamHashAidxTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "A+NE35cfeEnY2MHhBM0Twg==";
+    static String __CLASS_HASH = "aO3hKAuHYd9vJquk5PiY1w==";
 }u}(jb (5502e70c87e613d70db75d4804d811626d434f02jί matlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamIdxTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamIdxTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamIdxTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamIdxTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "eaBakAMUdj76AdcnIf29/Q==";
+    static String __CLASS_HASH = "hWTBrXR/SoJCr/v5CGBp5Q==";
 }u}(jb (ec5dd38ea6150d4b8d92e1084501290f8c0fef27jί ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamMetadataTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamMetadataTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamMetadataTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamMetadataTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "gtouBjIyyNsb/b/qc9pCHA==";
+    static String __CLASS_HASH = "I4QsHKuDj4n21oCZPrbGRw==";
 }u}(jb (003e31d632e6a70db0661c723e695e8a07ef78a2jί jatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamStore.javajЯ modifiedjȯ Kjɯ Kjү K	jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamStore.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamStore.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamStore.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         StreamTestStreamMetadataTable table = tables.getStreamTestStreamMetadataTable(t);
         Map<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow, StreamTestStreamHashAidxTable.StreamTestStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow r : m.keySet()) {
             for (StreamTestStreamHashAidxTable.StreamTestStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> rows = new HashSet<>();
+        Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow.of(h));
         }u}(jb (67cbdf05b137660b3db269c6391c261c8816ea46jί oatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamValueTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamValueTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamValueTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamValueTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Zjb+q9OtKHIGgdeO8BnLSw==";
+    static String __CLASS_HASH = "/Af3nGP1PVa3CpaveqZwGA==";
 }u}(jb (917b574b5d504d1cb1c8bf3fcffd2b3c22519a95jί zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamHashAidxTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamHashAidxTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamHashAidxTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamHashAidxTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "X1hqbiqiEZbDU9agjHYzMA==";
+    static String __CLASS_HASH = "lE3nxoiGnxh9y5ILD8Ji1Q==";
 }u}(jb (303868d7e785a5c1384e703d5a65adf7a26b2a74jί uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamIdxTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamIdxTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamIdxTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamIdxTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -730,6 +731,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -753,5 +755,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "U/6cxNEugWqjJJAs3M94Ew==";
+    static String __CLASS_HASH = "R1lO5ziYaN0Udjl/IakPew==";
 }u}(jb (71ec56a5ce54c4d000801a844aada1339c16a547jί zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamMetadataTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamMetadataTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamMetadataTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamMetadataTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -697,6 +698,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -720,5 +722,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "nfCYOSFgRw9vgCfK8zepPQ==";
+    static String __CLASS_HASH = "ZnMVClEGG1k/Y9BfO/PktA==";
 }u}(jb (b239a11943f978187efeb70a40e27a8726a0f1dbjί ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamStore.javajЯ modifiedjȯ Kjɯ Kjү K	jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamStore.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamStore.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamStore.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         StreamTestWithHashStreamMetadataTable table = tables.getStreamTestWithHashStreamMetadataTable(t);
         Map<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow, StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow r : m.keySet()) {
             for (StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> rows = new HashSet<>();
+        Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow.of(h));
         }u}(jb (c74f7ec43a6341758a168abed0155c4295302fa9jί watlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamValueTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamValueTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamValueTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamValueTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -684,6 +685,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -707,5 +709,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "gK5/dTiV0fnsYG3GkVekCA==";
+    static String __CLASS_HASH = "uywx4Vs+y/rXbP+WoU1Vqg==";
 }u}(jb (01c9c33be5490be859359377b6d7903a04344513jί zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamHashAidxTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamHashAidxTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamHashAidxTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamHashAidxTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Ki6bqIt1Bc7VLmWbBOyz8w==";
+    static String __CLASS_HASH = "52McDDADyoK80XG2PM7xUQ==";
 }u}(jb (693352f35cd8833aee14743963d366a5727e2a75jί uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamIdxTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamIdxTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamIdxTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamIdxTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -730,6 +731,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -753,5 +755,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "1iZU2XfKSsaB+roXMxh1gQ==";
+    static String __CLASS_HASH = "tH6ZP3FAS46/RMntNor6tw==";
 }u}(jb (0d40497726fdeeb4e593498fd2a0b43d8e75e666jί zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamMetadataTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamMetadataTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamMetadataTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamMetadataTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -697,6 +698,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -720,5 +722,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "+eCmpk539lJx0Nvz/T4ltw==";
+    static String __CLASS_HASH = "j3IJu2gsDa9Zov5ZP9X4Mw==";
 }u}(jb (f2eb8a4207166b17b12c7605809b2b0c3d930ff2jί ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamStore.javajЯ modifiedjȯ Kjɯ Kjү K	jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamStore.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamStore.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamStore.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         TestHashComponentsStreamMetadataTable table = tables.getTestHashComponentsStreamMetadataTable(t);
         Map<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow, TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow r : m.keySet()) {
             for (TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> rows = new HashSet<>();
+        Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow.of(h));
         }u}(jb (e7ad00be1ac27e569b3ab9038b9fe44f48f231dbjί watlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamValueTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamValueTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamValueTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamValueTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -685,6 +686,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -708,5 +710,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "lib/FOHtmiJ4apr21C/FRA==";
+    static String __CLASS_HASH = "iDMBVL6YNzaq38VRV2lB/g==";
 }u}(jb (9ce74a5cd2c6d02324dae753b39d4472d7e0fcadjί -atlasdb-workload-server-antithesis/DockerfilejЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server-antithesis%2FDockerfilejկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server-antithesis%2FDockerfilejׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2FDockerfile?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ @@ -1,4 +1,6 @@
 FROM scratch
 MAINTAINER AtlasDB Team
 
-ADD docker-compose.yml /
\ No newline at end of file
+ADD docker-compose.yml /
+ADD compact.sh /
+ADD flush.sh /
\ No newline at end of fileu}(jb (b284936b64cae7e6b461c14a3b7d116eadd96a23jί /atlasdb-workload-server-antithesis/build.gradlejЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server-antithesis%2Fbuild.gradlejկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server-antithesis%2Fbuild.gradlejׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fbuild.gradle?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ XL  @@ -7,5 +7,5 @@ def imageVersion = "${project.version.toString().replaceAll('\\+', '-')}"
 docker {
     name "palantirtechnologies/${project.name}:${imageVersion}"
     tags 'latest', 'snapshot'
-    files 'var/docker-compose.yml'
+    files 'var/docker-compose.yml', 'var/compact.sh', 'var/flush.sh'
 }
\ No newline at end of fileu}(jb (0d1f2696fe20c1f1abb4c94f88cae6650478d2b8jί 9atlasdb-workload-server-antithesis/var/docker-compose.ymljЯ modifiedjȯ Kjɯ K jү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymljկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymljׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X8  @@ -15,6 +15,8 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra1
+    volumes:
+      - /opt/config/volumes/cassandra1:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
@@ -33,6 +35,8 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra2
+    volumes:
+      - /opt/config/volumes/cassandra2:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
@@ -51,6 +55,8 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra3
+    volumes:
+      - /opt/config/volumes/cassandra3:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.4u}(jb (04cc4dab5436bb2c1953c6ca807ac317748dafeejί latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javajЯ modifiedjȯ K?jɯ Kjү K@jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -22,6 +22,7 @@
 import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.common.util.concurrent.Uninterruptibles;
 import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
@@ -34,6 +35,8 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
@@ -46,6 +49,7 @@
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
 import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.refreshable.Refreshable;
@@ -56,6 +60,7 @@
 import io.dropwizard.lifecycle.setup.LifecycleEnvironment;
 import io.dropwizard.setup.Bootstrap;
 import io.dropwizard.setup.Environment;
+import java.time.Instant;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
@@ -129,6 +134,10 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().ringConfig();
         TransientRowsWorkflowConfiguration transientRowsWorkflowConfiguration =
                 configuration.install().transientRowsConfig();
+        SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
+                configuration.install().singleBusyCellConfig();
+
+        waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
 
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
                 .run(
@@ -137,7 +146,9 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                         createRingWorkflowValidator(
                                 transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()),
                         createTransientRowsWorkflowValidator(
-                                transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()));
+                                transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellWorkflowValidator(
+                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -148,6 +159,29 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
+
+    private void waitForTransactionStoreFactoryToBeInitialized(AtlasDbTransactionStoreFactory factory) {
+        // TODO (jkong): This is awful, but sufficient for now.
+        Instant deadline = Instant.now().plusSeconds(TimeUnit.MINUTES.toSeconds(5));
+        while (Instant.now().isBefore(deadline)) {
+            if (factory.isInitialized()) {
+                log.info("AtlasDB transaction store factory initialized.");
+                return;
+            } else {
+                log.info(
+                        "AtlasDB transaction store factory not yet initialized. Waiting for five seconds; we won't"
+                                + " retry after {}.",
+                        SafeArg.of("deadline", deadline));
+                Uninterruptibles.sleepUninterruptibly(5, TimeUnit.SECONDS);
+            }
+        }
+        log.error("AtlasDB transaction store factory not initialized after five minutes, which suggests that there's"
+                + " likely to be some issue with starting up one of our service's dependencies.");
+        log.info("antithesis: terminate");
+        log.error("Workflow will now exit.");
+        System.exit(1);
+    }
+
     private WorkflowAndInvariants<Workflow> createTransientRowsWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             TransientRowsWorkflowConfiguration workflowConfig,
@@ -169,6 +203,34 @@ private WorkflowAndInvariants<Workflow> createTransientRowsWorkflowValidator(
                 .build();
     }
 
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-read")
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-write")
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
     private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             RingWorkflowConfiguration workflowConfig,u}(jb (3ef80d1a92d430c99a0805e5c1e1c3f77a0980d9jί atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javajЯ modifiedjȯ Kjɯ K jү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
@@ -36,5 +37,7 @@ public interface WorkloadServerInstallConfiguration {
 
     TransientRowsWorkflowConfiguration transientRowsConfig();
 
+    SingleBusyCellWorkflowConfiguration singleBusyCellConfig();
+
     boolean exitAfterRunning();
 }u}(jb (72629e641e22a5415761b5cb52c0bf3011604525jί Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymljЯ modifiedjȯ Kjɯ K jү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymljկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymljׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ Xs  @@ -22,4 +22,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: transient-rows
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
   exitAfterRunning: false
\ No newline at end of fileu}(jb (c2e6a9870bb0b9bd58749ef485010ca70071dcc1jί Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymljЯ modifiedjȯ K	jɯ K jү K	jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@ runtime:
           trustStorePath: "var/security/trustStore.jks"
 install:
   atlas:
+    initializeAsync: true
     keyValueService:
       type: cassandra
       servers:
@@ -36,6 +37,7 @@ install:
         password: cassandra
       ssl: false
       replicationFactor: 3
+      gcGraceSeconds: 300
     targetedSweep:
       enableSweepQueueWrites: true
     namespace: workload_server
@@ -57,4 +59,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: transient-rows
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single_busy_cell_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
   exitAfterRunning: trueu}(jb (ad7fc8f3b33e885222871c0d26e5884631c2ffcajί Aatlasdb-workload-server-distribution/var/conf/workload-server.ymljЯ modifiedjȯ K	jɯ Kjү K
jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlq      jկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ Xi  @@ -1,9 +1,10 @@
 runtime: {}
 install:
   atlas:
-    namespace: test
+    initializeAsync: true
     keyValueService:
       type: memory
+    namespace: test
   singleRowTwoCellsConfig:
     tableConfiguration:
       tableName: two-cells-test
@@ -22,4 +23,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: transient-rows
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
   exitAfterRunning: true
\ No newline at end of fileu}(jb (a1646b6ee093076187da250847d896517a6e93a1jί $atlasdb-workload-server/build.gradlejЯ modifiedjȯ Kjɯ K jү Kjӯ xhttps://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server%2Fbuild.gradlejկ whttps://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server%2Fbuild.gradlejׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -12,6 +12,8 @@ dependencies {
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-config')
     implementation project(':atlasdb-impl-shared')
+    implementation project(':lock-api')
+    implementation project(':lock-impl')
 
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'u}(jb (d7dd783c1221e2a93fad625414ea628dac4c9695jί matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javajЯ modifiedjȯ Kjɯ K jү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ Xd  @@ -28,6 +28,8 @@
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.conjure.java.api.config.service.UserAgent;
+import com.palantir.lock.client.TimeLockClient;
+import com.palantir.lock.client.UnreliableTimeLockService;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
@@ -41,6 +43,9 @@
 
 public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory<InteractiveTransactionStore> {
 
+    // Purposefully override the lock refresh interval to increase our chances of losing locks.
+    private static final int LOCK_REFRESH_INTERVAL_MS = 200;
+
     private final TransactionManager transactionManager;
     private final Optional<Namespace> maybeNamespace;
 
@@ -49,6 +54,10 @@ public AtlasDbTransactionStoreFactory(TransactionManager transactionManager, Opt
         this.maybeNamespace = maybeNamespace.map(Namespace::create);
     }
 
+    public boolean isInitialized() {
+        return transactionManager.isInitialized();
+    }
+
     @Override
     public InteractiveTransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
         return AtlasDbTransactionStore.create(transactionManager, toAtlasTables(tables, indexes));
@@ -138,6 +147,8 @@ public static AtlasDbTransactionStoreFactory createFromConfig(
                 .globalMetricsRegistry(metricsManager.getRegistry())
                 .globalTaggedMetricRegistry(metricsManager.getTaggedRegistry())
                 .runtimeConfigSupplier(atlasDbRuntimeConfig)
+                .defaultTimelockClientFactory(lockService -> TimeLockClient.createDefault(
+                        UnreliableTimeLockService.create(lockService), LOCK_REFRESH_INTERVAL_MS))
                 .build()
                 .serializable();
 u}(jb (c0b3881cb15e0ba7b72700e3a80768b2c77a4b32jί tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactions.javajЯ addedjȯ K-jɯ K jү K-jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.Comparator;
+import java.util.List;
+import one.util.streamex.StreamEx;
+
+public final class WitnessedTransactions {
+    private WitnessedTransactions() {
+        // utility
+    }
+
+    /**
+     * Sorts transactions by their effective timestamp and filters out transactions that are not fully committed.
+     */
+    public static List<FullyWitnessedTransaction> sortAndFilterTransactions(
+            ReadOnlyTransactionStore readOnlyTransactionStore, List<WitnessedTransaction> unorderedTransactions) {
+        OnlyCommittedWitnessedTransactionVisitor visitor =
+                new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
+        return StreamEx.of(unorderedTransactions)
+                .mapPartial(transaction -> transaction.accept(visitor))
+                .sorted(Comparator.comparingLong(WitnessedTransactions::effectiveTimestamp))
+                .toList();
+    }
+
+    private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
+        return witnessedTransaction.commitTimestamp().orElseGet(witnessedTransaction::startTimestamp);
+    }
+}u}(jb (f4ad0b8dddc43f5cd0380760c6cfdc9c58c273e1jί aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ Xf
  @@ -16,19 +16,15 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.OnlyCommittedWitnessedTransactionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
-import java.util.Comparator;
 import java.util.List;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
-import one.util.streamex.StreamEx;
 
 public final class DefaultWorkflow<T extends TransactionStore> implements Workflow {
     private final ConcurrentTransactionRunner<T> concurrentTransactionRunner;
@@ -62,7 +58,8 @@ public static <T extends TransactionStore> DefaultWorkflow<T> create(
     @Override
     public WorkflowHistory run() {
         return ImmutableWorkflowHistory.builder()
-                .history(sortAndFilterTransactions(runTransactionTask()))
+                .history(
+                        WitnessedTransactions.sortAndFilterTransactions(readOnlyTransactionStore, runTransactionTask()))
                 .transactionStore(readOnlyTransactionStore)
                 .build();
     }
@@ -80,21 +77,4 @@ private List<WitnessedTransaction> runTransactionTask() {
             throw new SafeRuntimeException("Error when running workflow task", e.getCause());
         }
     }
-
-    /**
-     * Sorts transactions by their effective timestamp and filters out transactions that are not fully committed.
-     */
-    @VisibleForTesting
-    List<FullyWitnessedTransaction> sortAndFilterTransactions(List<WitnessedTransaction> unorderedTransactions) {
-        OnlyCommittedWitnessedTransactionVisitor visitor =
-                new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
-        return StreamEx.of(unorderedTransactions)
-                .mapPartial(transaction -> transaction.accept(visitor))
-                .sorted(Comparator.comparingLong(DefaultWorkflow::effectiveTimestamp))
-                .toList();
-    }
-
-    private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
-        return witnessedTransaction.commitTimestamp().orElseGet(witnessedTransaction::startTimestamp);
-    }
 }u}(jb (4ca9777a60bba46b458d814677435f4e29d93675jί uatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowConfiguration.javajЯ addedjȯ K jɯ K jү K jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X?  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellWorkflowConfiguration.TYPE)
+public interface SingleBusyCellWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell";
+
+    TableConfiguration tableConfiguration();
+}u}(jb (c82f3d3c2182e14e8f2d6630ac1cb719f0cd3c4cjί iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflows.javajЯ addedjȯ Kijɯ K jү Kijӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -0,0 +1,105 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions.
+ */
+public final class SingleBusyCellWorkflows {
+    private SingleBusyCellWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReadsAndTouches(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReadsAndTouches(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(txn -> {
+                    Optional<Integer> value =
+                            txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL);
+                    txn.write(configuration.tableConfiguration().tableName(), BUSY_CELL, value.orElse(-1));
+                })))
+                .collect(Collectors.toList());
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
+    }
+}u}(jb (c5349645dc81bf0c8bc33bc720961e281110a64fjί xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionsTest.javajЯ addedjȯ Kjɯ K jү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -0,0 +1,131 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.List;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class WitnessedTransactionsTest {
+    @Mock
+    private ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    @Test
+    public void returnsUnderlyingWitnessedTransactions() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(twoToEight)))
+                .containsExactly(twoToEight);
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(readOnlyAtFive)))
+                .containsExactly(readOnlyAtFive);
+    }
+
+    @Test
+    public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
+                .containsExactly(fourToSix, threeToSeven, twoToEight);
+    }
+
+    @Test
+    public void sortsReadOnlyTransactionsByStartTimestamp() {
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
+                .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
+    }
+
+    @Test
+    public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        ImmutableList.of(
+                                twoToEight,
+                                readOnlyAtNine,
+                                fourToSix,
+                                readOnlyAtFive,
+                                readOnlyAtThree,
+                                readOnlyAtSeven)))
+                .containsExactly(
+                        readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
+    }
+
+    @Test
+    public void filterRemovesUncommittedTransactions() {
+        MaybeWitnessedTransaction committedMaybeWitnessedTransaction =
+                createMaybeWitnessedTransactionWithoutActions(1, 3, true);
+        MaybeWitnessedTransaction notCommittedTransaction = createMaybeWitnessedTransactionWithoutActions(2, 8, false);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        List.of(
+                                committedMaybeWitnessedTransaction,
+                                notCommittedTransaction,
+                                readOnlyAtFive,
+                                fourToSix)))
+                .containsExactly(committedMaybeWitnessedTransaction.toFullyWitnessed(), readOnlyAtFive, fourToSix);
+    }
+
+    private MaybeWitnessedTransaction createMaybeWitnessedTransactionWithoutActions(
+            long start, long commit, boolean committed) {
+        when(readOnlyTransactionStore.isCommitted(eq(start))).thenReturn(committed);
+        return MaybeWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+
+    private static FullyWitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
+        return FullyWitnessedTransaction.builder().startTimestamp(start).build();
+    }
+
+    private static FullyWitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+}u}(jb (84316bacac0bff7ed7e0091b3a88e14381eec0f0jί eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javajЯ modifiedjȯ K jɯ KUjү KUjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -16,21 +16,16 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.anyInt;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
-import com.google.common.collect.ImmutableList;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.common.concurrent.PTExecutors;
-import java.util.List;
 import java.util.concurrent.ScheduledExecutorService;
 import org.junit.Test;
 
@@ -54,66 +49,6 @@ public void handlesExceptionsInUnderlyingTasks() {
                 .hasCause(transactionException);
     }
 
-    @Test
-    public void returnsUnderlyingWitnessedTransactions() {
-        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-
-        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight)))
-                .containsExactly(twoToEight);
-        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(readOnlyAtFive)))
-                .containsExactly(readOnlyAtFive);
-    }
-
-    @Test
-    public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
-        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        FullyWitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
-        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
-
-        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
-                .containsExactly(fourToSix, threeToSeven, twoToEight);
-    }
-
-    @Test
-    public void sortsReadOnlyTransactionsByStartTimestamp() {
-        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        FullyWitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
-
-        assertThat(workflow.sortAndFilterTransactions(
-                        ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
-                .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
-    }
-
-    @Test
-    public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
-        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
-
-        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        FullyWitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
-
-        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(
-                        twoToEight, readOnlyAtNine, fourToSix, readOnlyAtFive, readOnlyAtThree, readOnlyAtSeven)))
-                .containsExactly(
-                        readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
-    }
-
-    @Test
-    public void filterRemovesUncommittedTransactions() {
-        MaybeWitnessedTransaction committedMaybeWitnessedTransaction =
-                createMaybeWitnessedTransactionWithoutActions(1, 3, true);
-        MaybeWitnessedTransaction notCommittedTransaction = createMaybeWitnessedTransactionWithoutActions(2, 8, false);
-        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
-        assertThat(workflow.sortAndFilterTransactions(List.of(
-                        committedMaybeWitnessedTransaction, notCommittedTransaction, readOnlyAtFive, fourToSix)))
-                .containsExactly(committedMaybeWitnessedTransaction.toFullyWitnessed(), readOnlyAtFive, fourToSix);
-    }
-
     private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
         return new WorkflowConfiguration() {
             @Override
@@ -122,24 +57,4 @@ public int iterationCount() {
             }
         };
     }
-
-    private MaybeWitnessedTransaction createMaybeWitnessedTransactionWithoutActions(
-            long start, long commit, boolean committed) {
-        when(store.isCommitted(eq(start))).thenReturn(committed);
-        return MaybeWitnessedTransaction.builder()
-                .startTimestamp(start)
-                .commitTimestamp(commit)
-                .build();
-    }
-
-    private static FullyWitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
-        return FullyWitnessedTransaction.builder().startTimestamp(start).build();
-    }
-
-    private static FullyWitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
-        return FullyWitnessedTransaction.builder()
-                .startTimestamp(start)
-                .commitTimestamp(commit)
-                .build();
-    }
 }u}(jb (051afb2dbe0f301ea8ff0ca03da0e8f1a9387a2ajί matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowsTest.javajЯ addedjȯ Kejɯ K jү Kejӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -0,0 +1,101 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Collection;
+import java.util.List;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class SingleBusyCellWorkflowsTest {
+    private static final String TABLE_NAME = "busy.cell";
+    private static final int ITERATION_COUNT = 1_000;
+    private static final SingleBusyCellWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow workflow = SingleBusyCellWorkflows.create(
+            transactionStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)),
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)));
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void transactionsDoNotConflictExcessively() {
+        WorkflowHistory workflowHistory = workflow.run();
+        assertThat(workflowHistory.history()).hasSizeBetween(ITERATION_COUNT / 2, ITERATION_COUNT);
+    }
+
+    @Test
+    public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.table().equals(TABLE_NAME));
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.cell().equals(SingleBusyCellWorkflows.BUSY_CELL));
+    }
+
+    @Test
+    public void targetCellIsReadModifiedAndDeleted() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+}u}(jb (0a67965f248dc6c77872217a9f2d26da88537b99jί build.gradlejЯ modifiedjȯ Kjɯ Kjү Kjӯ ^https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/build.gradlejկ ]https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/build.gradlejׯ phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ Xw  @@ -17,7 +17,7 @@ buildscript {
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.30.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
         classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'u}(jb (91d691ab16f5b7a0ca12fc7a603e315687a4ed27jί  changelog/0.857.0/pr-6564.v2.ymljЯ addedjȯ Kjɯ K jү Kjӯ vhttps://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/changelog%2F0.857.0%2Fpr-6564.v2.ymljկ uhttps://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/changelog%2F0.857.0%2Fpr-6564.v2.ymljׯ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.857.0%2Fpr-6564.v2.yml?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Avoid Stream overhead in getRandomHostByActiveConnections
+  links:
+  - https://github.com/palantir/atlasdb/pull/6564u}(jb (cc8b41318d17db1f892fc5ec26f90d1af877c1b2jί  changelog/0.859.0/pr-6571.v2.ymljЯ addedjȯ Kjɯ K jү Kjӯ vhttps://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/changelog%2F0.859.0%2Fpr-6571.v2.ymljկ uhttps://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/changelog%2F0.859.0%2Fpr-6571.v2.ymljׯ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.859.0%2Fpr-6571.v2.yml?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Generate StreamStore implementations with presized maps/sets
+  links:
+  - https://github.com/palantir/atlasdb/pull/6571u}(jb (aceed5bc2b1874600ed6c3412972b87ad8b63a51jί  changelog/0.860.0/pr-6410.v2.ymljЯ addedjȯ Kjɯ K jү Kjӯ vhttps://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/changelog%2F0.860.0%2Fpr-6410.v2.ymljկ uhttps://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/changelog%2F0.860.0%2Fpr-6410.v2.ymljׯ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.860.0%2Fpr-6410.v2.yml?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Use Caffeine instead of Guava caches
+  links:
+  - https://github.com/palantir/atlasdb/pull/6410u}(jb (16fb8eee169fd963709ea4a7cfbd511308736f08jί  changelog/0.862.0/pr-6506.v2.ymljЯ addedjȯ Kjɯ K jү Kjӯ vhttps://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/changelog%2F0.862.0%2Fpr-6506.v2.ymljկ uhttps://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/changelog%2F0.862.0%2Fpr-6506.v2.ymljׯ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.862.0%2Fpr-6506.v2.yml?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize TimestampMapping::leader to avoid stream overhead
+  links:
+  - https://github.com/palantir/atlasdb/pull/6506u}(jb (76e1a7993fd1a88f86737b4d470e05d637bc0990jί  changelog/0.862.0/pr-6554.v2.ymljЯ addedjȯ Kjɯ K jү Kjӯ vhttps://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/changelog%2F0.862.0%2Fpr-6554.v2.ymljկ uhttps://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/changelog%2F0.862.0%2Fpr-6554.v2.ymljׯ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.862.0%2Fpr-6554.v2.yml?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Adds metric for tracking the size of the cassandra client pool
+  links:
+  - https://github.com/palantir/atlasdb/pull/6554u}(jb (accf41e869d53eedaf4f54d948e2b5260617a8cbjί $changelog/@unreleased/pr-6468.v2.ymljЯ addedjȯ Kjɯ K jү Kjӯ |https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/changelog%2F%40unreleased%2Fpr-6468.v2.ymljկ {https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/changelog%2F%40unreleased%2Fpr-6468.v2.ymljׯ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6468.v2.yml?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Avoid string case conversion when parsing token ring
+  links:
+  - https://github.com/palantir/atlasdb/pull/6468
+u}(jb (be28e0890da21d6d8b36c3d7f6d13422933da314jί $changelog/@unreleased/pr-6584.v2.ymljЯ addedjȯ Kjɯ K jү Kjӯ |https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/changelog%2F%40unreleased%2Fpr-6584.v2.ymljկ {https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/changelog%2F%40unreleased%2Fpr-6584.v2.ymljׯ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6584.v2.yml?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[CBT] Split up container 3 and add more max heap to timelock integTest'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6584u}(jb (708a23de65fd9745cd8136bb140888a0ea0fa2c0jί commons-db/build.gradlejЯ modifiedjȯ Kjɯ K jү Kjӯ khttps://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/commons-db%2Fbuild.gradlejկ jhttps://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/commons-db%2Fbuild.gradlejׯ }https://api.github.com/repos/palantir/atlasdb/contents/commons-db%2Fbuild.gradle?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ XO  @@ -17,6 +17,7 @@ dependencies {
   implementation 'com.zaxxer:HikariCP'
   implementation 'joda-time:joda-time'
 
+  implementation 'com.github.ben-manes.caffeine:caffeine'
   implementation 'com.google.guava:guava'
   implementation 'com.palantir.safe-logging:preconditions'
   implementation 'com.palantir.safe-logging:safe-logging'u}(jb (92790ade1c26cd57450221409fceba6e35172b2bjί Ncommons-db/src/main/java/com/palantir/nexus/db/pool/RetriableTransactions.javajЯ modifiedjȯ Kjɯ K7jү KKjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/commons-db%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FRetriableTransactions.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/commons-db%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FRetriableTransactions.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/commons-db%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FRetriableTransactions.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X   @@ -15,12 +15,12 @@
  */
 package com.palantir.nexus.db.pool;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.sql.Connection;
@@ -81,15 +81,15 @@ private TransactionResult(TransactionStatus status, @Nullable T resultValue, Opt
         }
 
         public static <T> TransactionResult<T> success(T resultValue) {
-            return new TransactionResult<T>(TransactionStatus.SUCCESSFUL, resultValue, Optional.<Throwable>empty());
+            return new TransactionResult<>(TransactionStatus.SUCCESSFUL, resultValue, Optional.empty());
         }
 
         public static <T> TransactionResult<T> failure(Throwable error) {
-            return new TransactionResult<T>(TransactionStatus.FAILED, null /* result value */, Optional.of(error));
+            return new TransactionResult<>(TransactionStatus.FAILED, null /* result value */, Optional.of(error));
         }
 
         public static <T> TransactionResult<T> unknown(Throwable error) {
-            return new TransactionResult<T>(TransactionStatus.UNKNOWN, null /* result value */, Optional.of(error));
+            return new TransactionResult<>(TransactionStatus.UNKNOWN, null /* result value */, Optional.of(error));
         }
 
         public TransactionStatus getStatus() {
@@ -130,7 +130,7 @@ public static <T> TransactionResult<T> run(final ConnectionManager cm, final Ret
         }
 
         class LexicalHelper {
-            long startTimeMs = System.currentTimeMillis();
+            final long startTimeMs = System.currentTimeMillis();
             boolean pending = false;
             UUID id = null;
             T result = null;
@@ -205,8 +205,7 @@ public TransactionResult<T> run() {
             private void attemptTx() throws SQLException {
                 boolean ret = false;
                 try {
-                    Connection c = cm.getConnection();
-                    try {
+                    try (Connection c = cm.getConnection()) {
                         // Crash anywhere in here means no commit attempted and we stay in non-pending
                         c.setAutoCommit(false);
                         T newResult = tx.run(c);
@@ -224,10 +223,6 @@ private void attemptTx() throws SQLException {
 
                         cleanTxLog(c, id);
                         c.commit();
-
-                        return;
-                    } finally {
-                        c.close();
                     }
                 } catch (SQLException e) {
                     if (ret) {
@@ -241,15 +236,12 @@ private void attemptTx() throws SQLException {
             private boolean attemptVerify() throws SQLException {
                 boolean ret = false;
                 try {
-                    Connection c = cm.getConnection();
-                    try {
+                    try (Connection c = cm.getConnection()) {
                         ret = checkTxLog(c, id);
                         if (ret) {
                             cleanTxLog(c, id);
                         }
                         return ret;
-                    } finally {
-                        c.close();
                     }
                 } catch (SQLException e) {
                     if (ret) {
@@ -273,22 +265,16 @@ private void squelch(SQLException e) {
         return new LexicalHelper().run();
     }
 
-    private static final LoadingCache<ConnectionManager, AtomicBoolean> createdTxTables = CacheBuilder.newBuilder()
-            .weakKeys()
-            .build(new CacheLoader<ConnectionManager, AtomicBoolean>() {
-                @Override
-                public AtomicBoolean load(ConnectionManager cm) {
-                    return new AtomicBoolean(false);
-                }
-            });
+    private static final LoadingCache<ConnectionManager, AtomicBoolean> createdTxTables =
+            Caffeine.newBuilder().weakKeys().build(cm -> new AtomicBoolean(false));
 
     private static void createTxTable(ConnectionManager cm) throws SQLException {
-        AtomicBoolean createdTxTable = createdTxTables.getUnchecked(cm);
+        AtomicBoolean createdTxTable = createdTxTables.get(cm);
         if (createdTxTable.get()) {
             return;
         }
 
-        String varcharType = null;
+        String varcharType;
         switch (cm.getDbType()) {
             case ORACLE:
                 varcharType = "VARCHAR2";
@@ -300,23 +286,17 @@ private static void createTxTable(ConnectionManager cm) throws SQLException {
                 break;
 
             default:
-                throw new IllegalStateException();
-        }
-        if (varcharType == null) {
-            throw new IllegalStateException();
+                throw new SafeIllegalStateException("Unknown DB type", SafeArg.of("dbType", cm.getDbType()));
         }
 
         // I'd love to CREATE TABLE ... IF NOT EXISTS but Ye Olde Postgres (TM)
         // does not like it so we do something ugly.
         try {
-            Connection c = cm.getConnection();
-            try {
+            try (Connection c = cm.getConnection()) {
                 // Attempt to add to the table, but don't actually commit it.
                 c.setAutoCommit(false);
                 addTxLog(c, UUID.randomUUID());
                 c.rollback();
-            } finally {
-                c.close();
             }
             // Great, that worked, fallthrough to below but don't commit.
         } catch (SQLException e) {
@@ -327,13 +307,10 @@ private static void createTxTable(ConnectionManager cm) throws SQLException {
                     "To check whether the table exists we tried to use it. This caused an exception indicating that it"
                             + " did not exist. The exception was: ",
                     e);
-            Connection c = cm.getConnection();
-            try {
+            try (Connection c = cm.getConnection()) {
                 c.createStatement()
                         .execute("CREATE TABLE " + TABLE_NAME + " (id " + varcharType
                                 + "(36) PRIMARY KEY, created TIMESTAMP DEFAULT CURRENT_TIMESTAMP)");
-            } finally {
-                c.close();
             }
             // Good enough, fallthrough to below.
         }
@@ -343,37 +320,25 @@ private static void createTxTable(ConnectionManager cm) throws SQLException {
     }
 
     private static void addTxLog(Connection c, UUID id) throws SQLException {
-        PreparedStatement ps = c.prepareStatement("INSERT INTO " + TABLE_NAME + " (id) VALUES (?)");
-        try {
+        try (PreparedStatement ps = c.prepareStatement("INSERT INTO " + TABLE_NAME + " (id) VALUES (?)")) {
             ps.setString(1, id.toString());
             ps.executeUpdate();
-        } finally {
-            ps.close();
         }
     }
 
     private static boolean checkTxLog(Connection c, UUID id) throws SQLException {
-        PreparedStatement ps = c.prepareStatement("SELECT 1 FROM " + TABLE_NAME + " WHERE id = ?");
-        try {
+        try (PreparedStatement ps = c.prepareStatement("SELECT 1 FROM " + TABLE_NAME + " WHERE id = ?")) {
             ps.setString(1, id.toString());
-            ResultSet rs = ps.executeQuery();
-            try {
+            try (ResultSet rs = ps.executeQuery()) {
                 return rs.next();
-            } finally {
-                rs.close();
             }
-        } finally {
-            ps.close();
         }
     }
 
     private static void cleanTxLog(Connection c, UUID id) throws SQLException {
-        PreparedStatement ps = c.prepareStatement("DELETE FROM " + TABLE_NAME + " WHERE id = ?");
-        try {
+        try (PreparedStatement ps = c.prepareStatement("DELETE FROM " + TABLE_NAME + " WHERE id = ?")) {
             ps.setString(1, id.toString());
             ps.executeUpdate();
-        } finally {
-            ps.close();
         }
     }
 u}(jb (c2fb36880db07b47881646a3cd81e9f271638446jί vexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserPhotosStreamHashAidxTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamHashAidxTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamHashAidxTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamHashAidxTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "iZ+WrjLjlfsRJ+4PXOxllA==";
+    static String __CLASS_HASH = "vICtXgN//uNG/gj7cFWrOQ==";
 }u}(jb (e49d24081d562e00a550119b818f297048d50661jί qexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserPhotosStreamIdxTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamIdxTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamIdxTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamIdxTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "/5EqpAIHVfvrgAAL314Q6g==";
+    static String __CLASS_HASH = "evlQwEFn9nzK+VsNjgPIJA==";
 }u}(jb (08b73ce8b3b9ac1429d38284f07d08d8596984cejί vexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserPhotosStreamMetadataTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamMetadataTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamMetadataTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamMetadataTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "tIyb2ulllUpil2D9Zl4zpA==";
+    static String __CLASS_HASH = "7ViZjlUfW+7BKGwGDvuIww==";
 }u}(jb (72052cf73ef5aa5b32eb5b5b1f6d58c0b9122513jί nexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserPhotosStreamStore.javajЯ modifiedjȯ Kjɯ Kjү K	jӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamStore.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamStore.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamStore.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<UserPhotosStreamMetadataTable.UserPhotosStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<UserPhotosStreamMetadataTable.UserPhotosStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         UserPhotosStreamMetadataTable table = tables.getUserPhotosStreamMetadataTable(t);
         Map<UserPhotosStreamMetadataTable.UserPhotosStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<UserPhotosStreamMetadataTable.UserPhotosStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow, UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow r : m.keySet()) {
             for (UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow> rows = new HashSet<>();
+        Set<UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow.of(h));
         }u}(jb (83cd7d93a31541131e10d013afd149bb96a8ba96jί sexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserPhotosStreamValueTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamValueTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamValueTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamValueTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0
      jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "gyLvhEYvzXXshQvSEEOq3Q==";
+    static String __CLASS_HASH = "vnCpFwiY6zZC+s1UYLuLCw==";
 }u}(jb (0966bf8d91605107a3f820775bb4e4e284a9efb1jί iexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserProfileTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserProfileTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserProfileTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserProfileTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -3317,6 +3318,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -3340,5 +3342,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "3Edl1drru2bGGW0fAmHL/g==";
+    static String __CLASS_HASH = "FUR78HF+b7t9uXpBh7oYCQ==";
 }u}(jb (ca651f0763ebdabbad8b6ad4375c30af9d4dc3a6jί ]leader-election-impl/src/main/java/com/palantir/paxos/CoalescingPaxosLatestRoundVerifier.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FCoalescingPaxosLatestRoundVerifier.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FCoalescingPaxosLatestRoundVerifier.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FCoalescingPaxosLatestRoundVerifier.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X!  @@ -15,9 +15,8 @@
  */
 package com.palantir.paxos;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.palantir.common.concurrent.CoalescingSupplier;
 
@@ -27,29 +26,23 @@
  */
 public class CoalescingPaxosLatestRoundVerifier implements PaxosLatestRoundVerifier {
 
-    private final PaxosLatestRoundVerifier delegate;
     // we only care about keeping the verifier for the latest round; the cache is just here to handle concurrency
     // around creating a new verifier for a newly requested round
-    private final LoadingCache<Long, CoalescingSupplier<PaxosQuorumStatus>> verifiersByRound = CacheBuilder.newBuilder()
-            .maximumSize(1)
-            .build(new CacheLoader<Long, CoalescingSupplier<PaxosQuorumStatus>>() {
-                @Override
-                public CoalescingSupplier<PaxosQuorumStatus> load(Long key) throws Exception {
-                    return new CoalescingSupplier<>(() -> delegate.isLatestRound(key));
-                }
-            });
+    private final LoadingCache<Long, CoalescingSupplier<PaxosQuorumStatus>> verifiersByRound;
 
     public CoalescingPaxosLatestRoundVerifier(PaxosLatestRoundVerifier delegate) {
-        this.delegate = delegate;
+        this.verifiersByRound = Caffeine.newBuilder()
+                .maximumSize(1)
+                .build(key -> new CoalescingSupplier<>(() -> delegate.isLatestRound(key)));
     }
 
     @Override
     public ListenableFuture<PaxosQuorumStatus> isLatestRoundAsync(long round) {
-        return verifiersByRound.getUnchecked(round).getAsync();
+        return verifiersByRound.get(round).getAsync();
     }
 
     @Override
     public PaxosQuorumStatus isLatestRound(long round) {
-        return verifiersByRound.getUnchecked(round).get();
+        return verifiersByRound.get(round).get();
     }
 }u}(jb (c201a75037718ee45a6d24add55ec4992f91ef88jί lock-api/build.gradlejЯ modifiedjȯ Kjɯ K jү Kjӯ ihttps://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-api%2Fbuild.gradlejկ hhttps://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-api%2Fbuild.gradlejׯ {https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fbuild.gradle?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ Xq  @@ -19,6 +19,7 @@ dependencies {
 
     implementation project(":atlasdb-autobatch")
     implementation project(":atlasdb-commons")
+    implementation project(":atlasdb-buggify")
     implementation 'jakarta.ws.rs:jakarta.ws.rs-api'
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-databind'u}(jb (fd5b31c1b0e6208a7f9308a03fa062d1b4247527jί Clock-api/src/main/java/com/palantir/lock/client/TimeLockClient.javajЯ modifiedjȯ Kjɯ K jү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ XZ  @@ -62,6 +62,17 @@ public static TimeLockClient createDefault(TimelockService timelockService) {
                 timelockService, timestampService, createLockRefresher(timelockService), asyncUnlocker);
     }
 
+    public static TimeLockClient createDefault(TimelockService timelockService, long lockRefreshIntervalMillis) {
+        AsyncTimeLockUnlocker asyncUnlocker = AsyncTimeLockUnlocker.create(timelockService);
+        RequestBatchingTimestampService timestampService =
+                RequestBatchingTimestampService.create(new TimelockServiceErrorDecorator(timelockService));
+        return new TimeLockClient(
+                timelockService,
+                timestampService,
+                createLockRefresher(timelockService, lockRefreshIntervalMillis),
+                asyncUnlocker);
+    }
+
     public static TimeLockClient withSynchronousUnlocker(TimelockService timelockService) {
         CloseableTimestampService timestampService = new TimelockServiceErrorDecorator(timelockService);
         return new TimeLockClient(
@@ -206,6 +217,12 @@ private static LockRefresher<LockToken> createLockRefresher(TimelockService time
         return new LockRefresher<>(refreshExecutor, lockTokenRefresher, REFRESH_INTERVAL_MILLIS);
     }
 
+    private static LockRefresher<LockToken> createLockRefresher(
+            TimelockService timelockService, long lockRefreshIntervalMillis) {
+        LockLeaseRefresher<LockToken> lockTokenRefresher = timelockService::refreshLockLeases;
+        return new LockRefresher<>(refreshExecutor, lockTokenRefresher, lockRefreshIntervalMillis);
+    }
+
     private static ScheduledExecutorService createSingleThreadScheduledExecutor(String operation) {
         return PTExecutors.newSingleThreadScheduledExecutor(
                 new NamedThreadFactory(TimeLockClient.class.getSimpleName() + "-" + operation, true));u}(jb (f5eafd4efa22db15cffb486b29e1a8e16e9cfbc4jί Nlock-api/src/main/java/com/palantir/lock/client/UnreliableTimeLockService.javajЯ addedjȯ Kjɯ K jү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ Xn  @@ -0,0 +1,147 @@
+/*
+ * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.palantir.lock.client;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.Sets;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
+import com.palantir.lock.v2.ClientLockingOptions;
+import com.palantir.lock.v2.LockImmutableTimestampResponse;
+import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.v2.LockResponse;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.v2.StartIdentifiedAtlasDbTransactionResponse;
+import com.palantir.lock.v2.TimelockService;
+import com.palantir.lock.v2.WaitForLocksRequest;
+import com.palantir.lock.v2.WaitForLocksResponse;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.timestamp.TimestampRange;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+
+/**
+ * A version of timelock service that has a chance to randomly lose locks during refresh or immediately after
+ * acquiring. This is useful for testing the behavior of clients when locks are lost.
+ */
+public final class UnreliableTimeLockService implements TimelockService {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(UnreliableTimeLockService.class);
+
+    private final TimelockService delegate;
+    private final BuggifyFactory buggify;
+
+    public static UnreliableTimeLockService create(TimelockService timelockService) {
+        return new UnreliableTimeLockService(timelockService, DefaultBuggifyFactory.INSTANCE);
+    }
+
+    @VisibleForTesting
+    UnreliableTimeLockService(TimelockService delegate, BuggifyFactory buggifyFactory) {
+        this.delegate = delegate;
+        this.buggify = buggifyFactory;
+    }
+
+    @Override
+    public boolean isInitialized() {
+        return delegate.isInitialized();
+    }
+
+    @Override
+    public long getFreshTimestamp() {
+        return delegate.getFreshTimestamp();
+    }
+
+    @Override
+    public long getCommitTimestamp(long startTs, LockToken commitLocksToken) {
+        return delegate.getCommitTimestamp(startTs, commitLocksToken);
+    }
+
+    @Override
+    public TimestampRange getFreshTimestamps(int numTimestampsRequested) {
+        return delegate.getFreshTimestamps(numTimestampsRequested);
+    }
+
+    @Override
+    public LockImmutableTimestampResponse lockImmutableTimestamp() {
+        return delegate.lockImmutableTimestamp();
+    }
+
+    @Override
+    public List<StartIdentifiedAtlasDbTransactionResponse> startIdentifiedAtlasDbTransactionBatch(int count) {
+        return delegate.startIdentifiedAtlasDbTransactionBatch(count);
+    }
+
+    @Override
+    public long getImmutableTimestamp() {
+        return delegate.getImmutableTimestamp();
+    }
+
+    @Override
+    public LockResponse lock(LockRequest request) {
+        LockResponse response = delegate.lock(request);
+        buggify.maybe(0.05).run(() -> {
+            log.info("BUGGIFY: Unlocking lock token {} after acquiring", SafeArg.of("token", response.getToken()));
+            delegate.unlock(Set.of(response.getToken()));
+        });
+        return response;
+    }
+
+    @Override
+    public LockResponse lock(LockRequest lockRequest, ClientLockingOptions options) {
+        LockResponse response = delegate.lock(lockRequest, options);
+        buggify.maybe(0.05).run(() -> {
+            log.info("BUGGIFY: Unlocking lock token {} after acquiring", SafeArg.of("token", response.getToken()));
+            delegate.unlock(Set.of(response.getToken()));
+        });
+        return response;
+    }
+
+    @Override
+    public WaitForLocksResponse waitForLocks(WaitForLocksRequest request) {
+        return delegate.waitForLocks(request);
+    }
+
+    @Override
+    public Set<LockToken> refreshLockLeases(Set<LockToken> tokens) {
+        Set<LockToken> tokensToRefresh = tokens.stream()
+                .filter(_token -> !buggify.maybe(0.01).asBoolean())
+                .collect(Collectors.toSet());
+        Set<LockToken> tokensToUnlock = Sets.difference(tokens, tokensToRefresh);
+        if (!tokensToUnlock.isEmpty()) {
+            log.info("BUGGIFY: Unlocking tokens on refresh: {}", SafeArg.of("tokens", tokensToUnlock));
+            delegate.unlock(tokensToUnlock);
+        }
+        return delegate.refreshLockLeases(tokensToRefresh);
+    }
+
+    @Override
+    public Set<LockToken> unlock(Set<LockToken> tokens) {
+        return delegate.unlock(tokens);
+    }
+
+    @Override
+    public void tryUnlock(Set<LockToken> tokens) {
+        delegate.tryUnlock(tokens);
+    }
+
+    @Override
+    public long currentTimeMillis() {
+        return delegate.currentTimeMillis();
+    }
+}u}(jb (fcb51a9d2957bb45c95e4bf848d1dd2da8eb2547jί Qlock-api/src/test/java/com/palantir/lock/client/UnreliableTimelockClientTest.javajЯ addedjȯ Kjɯ K jү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimelockClientTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimelockClientTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimelockClientTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ Xd  @@ -0,0 +1,179 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.client;
+
+import static org.mockito.ArgumentMatchers.anyDouble;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
+
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggify;
+import com.palantir.atlasdb.buggify.impl.NoOpBuggify;
+import com.palantir.atlasdb.buggify.impl.NoOpBuggifyFactory;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.v2.ClientLockingOptions;
+import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.v2.LockResponse;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.v2.WaitForLocksRequest;
+import java.util.LinkedHashSet;
+import java.util.List;
+import java.util.Set;
+import java.util.UUID;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class UnreliableTimelockClientTest {
+
+    private static final LockToken LOCK_TOKEN = LockToken.of(UUID.fromString("00000000-0000-0000-0000-000000000000"));
+
+    private static final LockToken LOCK_TOKEN_2 = LockToken.of(UUID.fromString("00000000-0000-0000-0000-000000000001"));
+    private static final LockDescriptor LOCK_DESCRIPTOR = StringLockDescriptor.of("foo");
+    private static final LockRequest LOCK_REQUEST = LockRequest.of(Set.of(LOCK_DESCRIPTOR), 1);
+
+    @Mock
+    private TimeLockClient timeLockClient;
+
+    private UnreliableTimeLockService unreliableTimeLockService;
+
+    @Before
+    public void before() {
+        unreliableTimeLockService = new UnreliableTimeLockService(timeLockClient, NoOpBuggifyFactory.INSTANCE);
+    }
+
+    @Test
+    public void verifyIsInitializedCallsDelegate() {
+        unreliableTimeLockService.isInitialized();
+        verify(timeLockClient).isInitialized();
+    }
+
+    @Test
+    public void verifyGetFreshTimestampCallsDelegate() {
+        unreliableTimeLockService.getFreshTimestamp();
+        verify(timeLockClient).getFreshTimestamp();
+    }
+
+    @Test
+    public void verifyGetCommitTimestampsCallsDelegate() {
+        unreliableTimeLockService.getCommitTimestamp(1, LOCK_TOKEN);
+        verify(timeLockClient).getCommitTimestamp(1, LOCK_TOKEN);
+    }
+
+    @Test
+    public void verifyGetFreshTimestampsCallsDelegate() {
+        unreliableTimeLockService.getFreshTimestamps(1);
+        verify(timeLockClient).getFreshTimestamps(1);
+    }
+
+    @Test
+    public void verifyLockImmutableTimestampCallsDelegate() {
+        unreliableTimeLockService.lockImmutableTimestamp();
+        verify(timeLockClient).lockImmutableTimestamp();
+    }
+
+    @Test
+    public void verifyStartIdentifiedAtlasDbTransactionCallsDelegate() {
+        unreliableTimeLockService.startIdentifiedAtlasDbTransactionBatch(1);
+        verify(timeLockClient).startIdentifiedAtlasDbTransactionBatch(1);
+    }
+
+    @Test
+    public void verifyGetImmutableTimestampCallsDelegate() {
+        unreliableTimeLockService.getImmutableTimestamp();
+        verify(timeLockClient).getImmutableTimestamp();
+    }
+
+    @Test
+    public void verifyLockCallsDelegate() {
+        unreliableTimeLockService.lock(LOCK_REQUEST);
+        verify(timeLockClient).lock(LOCK_REQUEST);
+    }
+
+    @Test
+    public void lockMayUnlockImmediately() {
+        when(timeLockClient.lock(LOCK_REQUEST)).thenReturn(LockResponse.successful(LOCK_TOKEN));
+        new UnreliableTimeLockService(timeLockClient, createAlwaysBuggyFactory()).lock(LOCK_REQUEST);
+        verify(timeLockClient).unlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void lockWithOptionMayUnlockImmediately() {
+        ClientLockingOptions lockingOptions = ClientLockingOptions.getDefault();
+        when(timeLockClient.lock(LOCK_REQUEST, lockingOptions)).thenReturn(LockResponse.successful(LOCK_TOKEN));
+        new UnreliableTimeLockService(timeLockClient, createAlwaysBuggyFactory()).lock(LOCK_REQUEST, lockingOptions);
+        verify(timeLockClient).unlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyLockWithOptionsCallsDelegate() {
+        unreliableTimeLockService.lock(LOCK_REQUEST, ClientLockingOptions.getDefault());
+        verify(timeLockClient).lock(LOCK_REQUEST, ClientLockingOptions.getDefault());
+    }
+
+    @Test
+    public void verifyWaitForLocksCallsDelegate() {
+        WaitForLocksRequest waitForLocksRequest = WaitForLocksRequest.of(Set.of(LOCK_DESCRIPTOR), 1);
+        unreliableTimeLockService.waitForLocks(waitForLocksRequest);
+        verify(timeLockClient).waitForLocks(waitForLocksRequest);
+    }
+
+    @Test
+    public void refreshLockLeasesMaybeUnlocksLocks() {
+        BuggifyFactory factory = mock(BuggifyFactory.class);
+        when(factory.maybe(anyDouble())).thenReturn(DefaultBuggify.INSTANCE, NoOpBuggify.INSTANCE);
+        new UnreliableTimeLockService(timeLockClient, factory)
+                .refreshLockLeases(new LinkedHashSet<>(List.of(LOCK_TOKEN, LOCK_TOKEN_2)));
+        verify(timeLockClient).refreshLockLeases(Set.of(LOCK_TOKEN_2));
+        verify(timeLockClient).unlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyRefreshLockLeasesCallsDelegate() {
+        unreliableTimeLockService.refreshLockLeases(Set.of(LOCK_TOKEN));
+        verify(timeLockClient).refreshLockLeases(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyUnlockCallsDelegate() {
+        unreliableTimeLockService.unlock(Set.of(LOCK_TOKEN));
+        verify(timeLockClient).unlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyTryUnlockCallsDelegate() {
+        unreliableTimeLockService.tryUnlock(Set.of(LOCK_TOKEN));
+        verify(timeLockClient).tryUnlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyCurrentTimeMillisCallsDelegate() {
+        unreliableTimeLockService.currentTimeMillis();
+        verify(timeLockClient).currentTimeMillis();
+    }
+
+    private static BuggifyFactory createAlwaysBuggyFactory() {
+        BuggifyFactory factory = mock(BuggifyFactory.class);
+        when(factory.maybe(anyDouble())).thenReturn(DefaultBuggify.INSTANCE);
+        return factory;
+    }
+}u}(jb (80ad13cf8556efbef4954e0d02f872fe14f7b3a1jί lock-impl/build.gradlejЯ modifiedjȯ Kjɯ K jү Kjӯ jhttps://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-impl%2Fbuild.gradlejկ ihttps://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-impl%2Fbuild.gradlejׯ |https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fbuild.gradle?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X{  @@ -5,6 +5,7 @@ dependencies {
 
   implementation 'com.fasterxml.jackson.core:jackson-annotations'
   implementation 'com.fasterxml.jackson.core:jackson-databind'
+  implementation 'com.github.ben-manes.caffeine:caffeine'
   implementation 'com.google.errorprone:error_prone_annotations'
   implementation 'com.google.guava:guava'
   implementation 'com.palantir.common:streams'u}(jb (8565bf0549ed767c72914d5e58a5d9f913b6ad64jί Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ XH  @@ -21,12 +21,11 @@
 import static com.palantir.lock.LockGroupBehavior.LOCK_ALL_OR_NONE;
 import static com.palantir.lock.LockGroupBehavior.LOCK_AS_MANY_AS_POSSIBLE;
 
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.MoreObjects;
 import com.google.common.base.Preconditions;
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
 import com.google.common.collect.Collections2;
 import com.google.common.collect.HashMultimap;
 import com.google.common.collect.ImmutableList;
@@ -98,7 +97,6 @@
 import java.util.concurrent.BlockingQueue;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ConcurrentMap;
-import java.util.concurrent.ExecutionException;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Future;
 import java.util.concurrent.PriorityBlockingQueue;
@@ -188,14 +186,8 @@ public String toString() {
     private final LockClientIndices clientIndices = new LockClientIndices();
 
     /** The backing client-aware read write lock for each lock descriptor. */
-    private final LoadingCache<LockDescriptor, ClientAwareReadWriteLock> descriptorToLockMap = CacheBuilder.newBuilder()
-            .weakValues()
-            .build(new CacheLoader<LockDescriptor, ClientAwareReadWriteLock>() {
-                @Override
-                public ClientAwareReadWriteLock load(LockDescriptor from) {
-                    return new LockServerLock(from, clientIndices);
-                }
-            });
+    private final LoadingCache<LockDescriptor, ClientAwareReadWriteLock> descriptorToLockMap =
+            Caffeine.newBuilder().weakValues().build(from -> new LockServerLock(from, clientIndices));
 
     /** The locks (and canonical token) associated with each HeldLocksToken. */
     private final ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>> heldLocksTokenMap = new MapMaker().makeMap();
@@ -521,12 +513,7 @@ private void tryLocks(
                     continue;
                 }
 
-                ClientAwareReadWriteLock lock;
-                try {
-                    lock = descriptorToLockMap.get(entry.getKey());
-                } catch (ExecutionException e) {
-                    throw new RuntimeException(e.getCause());
-                }
+                ClientAwareReadWriteLock lock = descriptorToLockMap.get(entry.getKey());
                 if (locks.containsKey(lock)) {
                     // This is the 2nd time we are calling tryLocks and we already locked this one.
                     continue;
@@ -1201,7 +1188,7 @@ private String safeLockStats() {
                 + maxAllowedClockDrift
                 + "\n"
                 + "descriptorToLockMap.size = "
-                + descriptorToLockMap.size()
+                + descriptorToLockMap.estimatedSize()
                 + "\n"
                 + "outstandingLockRequestMultimap.size = "
                 + outstandingLockRequestMultimap.size()u}(jb (9fe9d43261f7a9aee7f98c3febb6dfc81ee82d3cjί Llock-impl/src/main/java/com/palantir/lock/logger/LockServiceStateLogger.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLogger.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLogger.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLogger.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X.  @@ -16,6 +16,7 @@
 package com.palantir.lock.logger;
 
 import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.ImmutableSetMultimap;
 import com.google.common.collect.Multimap;
 import com.google.common.collect.Multimaps;
 import com.google.common.collect.SetMultimap;
@@ -66,7 +67,7 @@ public LockServiceStateLogger(
     public LogState logLocks() {
         List<SimpleLockRequestsWithSameDescriptor> generatedOutstandingRequests =
                 generateOutstandingLocks(outstandingLockRequests);
-        Map<ObfuscatedLockDescriptor, SimpleTokenInfo> generatedHeldLocks = generateHeldLocks(heldLocks);
+        Multimap<ObfuscatedLockDescriptor, SimpleTokenInfo> generatedHeldLocks = generateHeldLocks(heldLocks);
         Map<ObfuscatedLockDescriptor, String> generatedSyncState = generateSyncState(descriptorToLockMap);
         Map<ClientId, List<SanitizedLockRequestProgress>> synthesizedRequestState =
                 synthesizeRequestState(outstandingLockRequests, descriptorToLockMap);
@@ -130,14 +131,14 @@ private List<SimpleLockRequestsWithSameDescriptor> generateOutstandingLocks(
                 .collect(Collectors.toList());
     }
 
-    private Map<ObfuscatedLockDescriptor, SimpleTokenInfo> generateHeldLocks(
+    private Multimap<ObfuscatedLockDescriptor, SimpleTokenInfo> generateHeldLocks(
             ConcurrentMap<HeldLocksToken, LockServiceImpl.HeldLocks<HeldLocksToken>> heldLocksTokenMap) {
         return heldLocksTokenMap.values().stream()
                 .flatMap(locks -> locks.getRealToken().getLocks().stream()
                         .map(lock -> Map.entry(
                                 this.lockDescriptorMapper.getDescriptorMapping(lock.getLockDescriptor()),
                                 SimpleTokenInfo.of(locks.getRealToken(), lock.getLockMode()))))
-                .collect(Collectors.toMap(Entry::getKey, Entry::getValue));
+                .collect(ImmutableSetMultimap.toImmutableSetMultimap(Entry::getKey, Entry::getValue));
     }
 
     private Map<ObfuscatedLockDescriptor, String> generateSyncState(u}(jb (a5db35d08e52dedc10c9a0db02572d3b809a9531jί Jlock-impl/src/main/java/com/palantir/lock/logger/LockServiceTestUtils.javajЯ modifiedjȯ Kjɯ K	jү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceTestUtils.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceTestUtils.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceTestUtils.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X)  @@ -24,15 +24,13 @@
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.StringLockDescriptor;
 import java.math.BigInteger;
-import java.util.Arrays;
-import java.util.List;
+import java.util.Map;
 
 public class LockServiceTestUtils {
 
     public static HeldLocksToken getFakeHeldLocksToken(
-            String clientName, String requestingThread, BigInteger tokenId, String... descriptors) {
-        ImmutableSortedMap<LockDescriptor, LockMode> lockDescriptorLockMode =
-                getLockDescriptorLockMode(Arrays.asList(descriptors));
+            String clientName, String requestingThread, BigInteger tokenId, Map<String, LockMode> descriptors) {
+        ImmutableSortedMap<LockDescriptor, LockMode> lockDescriptorLockMode = getLockDescriptorLockMode(descriptors);
 
         return new HeldLocksToken(
                 tokenId,
@@ -45,11 +43,12 @@ public static HeldLocksToken getFakeHeldLocksToken(
                 requestingThread);
     }
 
-    public static ImmutableSortedMap<LockDescriptor, LockMode> getLockDescriptorLockMode(List<String> descriptors) {
+    public static ImmutableSortedMap<LockDescriptor, LockMode> getLockDescriptorLockMode(
+            Map<String, LockMode> descriptors) {
         ImmutableSortedMap.Builder<LockDescriptor, LockMode> builder = ImmutableSortedMap.naturalOrder();
-        for (String descriptor : descriptors) {
-            LockDescriptor descriptor1 = StringLockDescriptor.of(descriptor);
-            builder.put(descriptor1, LockMode.WRITE);
+        for (Map.Entry<String, LockMode> descriptorAndMode : descriptors.entrySet()) {
+            LockDescriptor descriptor1 = StringLockDescriptor.of(descriptorAndMode.getKey());
+            builder.put(descriptor1, descriptorAndMode.getValue());
         }
         return builder.buildOrThrow();
     }u}(jb (296c1bf1d09ef2afae13517b51f18c423208a9e6jί >lock-impl/src/main/java/com/palantir/lock/logger/LogState.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLogState.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLogState.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLogState.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X1  @@ -16,6 +16,7 @@
 
 package com.palantir.lock.logger;
 
+import com.google.common.collect.Multimap;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.SafeArg;
@@ -33,7 +34,7 @@ public interface LogState {
     List<SimpleLockRequestsWithSameDescriptor> getOutstandingRequests();
 
     @Safe
-    Map<ObfuscatedLockDescriptor, SimpleTokenInfo> getHeldLocks();
+    Multimap<ObfuscatedLockDescriptor, SimpleTokenInfo> getHeldLocks();
 
     @Safe
     Map<ObfuscatedLockDescriptor, String> getSyncState();u}(jb (5b2b8d65d1a16e7b6ff4a49446104efd578d647djί Jlock-impl/src/test/java/com/palantir/lock/logger/LockServiceSerDeTest.javajЯ modifiedjȯ K
jɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceSerDeTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceSerDeTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceSerDeTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ XP	  @@ -18,7 +18,6 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.fasterxml.jackson.databind.ObjectMapper;
-import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.lock.HeldLocksGrant;
@@ -42,7 +41,10 @@ public class LockServiceSerDeTest {
     @Test
     public void testSerialisationAndDeserialisationOfLockResponse() throws Exception {
         HeldLocksToken token = LockServiceTestUtils.getFakeHeldLocksToken(
-                "client A", "Fake thread", new BigInteger("1"), "held-lock-1", "logger-lock");
+                "client A",
+                "Fake thread",
+                new BigInteger("1"),
+                ImmutableMap.of("held-lock-1", LockMode.WRITE, "logger-lock", LockMode.WRITE));
         LockResponse response = new LockResponse(token);
         ObjectMapper mapper = new ObjectMapper();
         LockResponse deserializedLockResponse =
@@ -53,7 +55,10 @@ public void testSerialisationAndDeserialisationOfLockResponse() throws Exception
     @Test
     public void testSerialisationAndDeserialisationOfLockResponseWithLockHolders() throws Exception {
         HeldLocksToken token = LockServiceTestUtils.getFakeHeldLocksToken(
-                "client A", "Fake thread", new BigInteger("1"), "held-lock-1", "logger-lock");
+                "client A",
+                "Fake thread",
+                new BigInteger("1"),
+                ImmutableMap.of("held-lock-1", LockMode.WRITE, "logger-lock", LockMode.WRITE));
         Map<LockDescriptor, LockClient> lockHolders = ImmutableMap.of(
                 StringLockDescriptor.of("lock_id"),
                 LockClient.ANONYMOUS,
@@ -92,7 +97,8 @@ public void testSerialisationAndDeserialisationOfLockServerOptions() throws Exce
     @Test
     public void testSerialisationAndDeserialisationOfHeldLocksGrant() throws Exception {
         ImmutableSortedMap<LockDescriptor, LockMode> lockDescriptorLockMode =
-                LockServiceTestUtils.getLockDescriptorLockMode(ImmutableList.of("lock1", "lock2"));
+                LockServiceTestUtils.getLockDescriptorLockMode(
+                        ImmutableMap.of("lock1", LockMode.WRITE, "lock2", LockMode.WRITE));
 
         HeldLocksGrant heldLocksGrant = new HeldLocksGrant(
                 BigInteger.ONE,u}(jb (072fb1ef70cfd7dc1f19cb3684f7d835be7c52fejί Plock-impl/src/test/java/com/palantir/lock/logger/LockServiceStateLoggerTest.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLoggerTest.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLoggerTest.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLoggerTest.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ XL  @@ -19,6 +19,7 @@
 
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.common.collect.HashMultimap;
+import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSortedMap;
 import com.google.common.collect.MapMaker;
 import com.google.common.collect.Multimaps;
@@ -82,12 +83,24 @@ public static void setUp() {
         outstandingLockRequestMultimap.put(clientA, request2);
 
         HeldLocksToken token = LockServiceTestUtils.getFakeHeldLocksToken(
-                "client A", "Fake thread", new BigInteger("1"), "held-lock-1", "logger-lock");
+                "client A",
+                "Fake thread",
+                new BigInteger("1"),
+                ImmutableMap.of("held-lock-1", LockMode.WRITE, "logger-lock", LockMode.WRITE));
         HeldLocksToken token2 = LockServiceTestUtils.getFakeHeldLocksToken(
-                "client B", "Fake thread 2", new BigInteger("2"), "held-lock-2", "held-lock-3");
+                "client B",
+                "Fake thread 2",
+                new BigInteger("2"),
+                ImmutableMap.of("held-lock-2", LockMode.WRITE, "held-lock-3", LockMode.WRITE));
+        HeldLocksToken token3 = LockServiceTestUtils.getFakeHeldLocksToken(
+                "client C", "Fake thread 3", new BigInteger("3"), ImmutableMap.of("held-lock-4", LockMode.READ));
+        HeldLocksToken token4 = LockServiceTestUtils.getFakeHeldLocksToken(
+                "client D", "Fake thread 4", new BigInteger("4"), ImmutableMap.of("held-lock-4", LockMode.READ));
 
         heldLocksTokenMap.putIfAbsent(token, LockServiceImpl.HeldLocks.of(token, LockCollections.of()));
         heldLocksTokenMap.putIfAbsent(token2, LockServiceImpl.HeldLocks.of(token2, LockCollections.of()));
+        heldLocksTokenMap.putIfAbsent(token3, LockServiceImpl.HeldLocks.of(token2, LockCollections.of()));
+        heldLocksTokenMap.putIfAbsent(token4, LockServiceImpl.HeldLocks.of(token2, LockCollections.of()));
 
         LockServerLock lock1 = new LockServerLock(DESCRIPTOR_1, new LockClientIndices());
         syncStateMap.put(DESCRIPTOR_1, lock1);u}(jb (5f39e0e56f2510fcdb9ebb4ce33aeee0b71f408ajί *scripts/circle-ci/publish-to-antithesis.shjЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shjկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shjׯ https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -16,9 +16,9 @@ printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://$
 
 VERSION=$(./gradlew -q printVersion)
 
-docker pull palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
-docker tag palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra ${ANTITHESIS_REPO_URL}/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
-docker push ${ANTITHESIS_REPO_URL}/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc5 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
+docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc5
 
 docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${VERSION}
 docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${VERSION}u}(jb (c26bf39fcadc8784eabff6fd1e20a4ad15b5d344jί %scripts/circle-ci/run-circle-tests.shjЯ modifiedjȯ Kjɯ Kjү Kjӯ {https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/scripts%2Fcircle-ci%2Frun-circle-tests.shjկ zhttps://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/scripts%2Fcircle-ci%2Frun-circle-tests.shjׯ https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -17,7 +17,7 @@ CONTAINER_1=(':atlasdb-cassandra-integration-tests:testSubset1')
 
 CONTAINER_2=(':atlasdb-ete-tests:check')
 
-CONTAINER_3=(':atlasdb-dbkvs:check' ':atlasdb-cassandra:check' ':timelock-server:integTest')
+CONTAINER_3=(':timelock-server:integTest')
 
 CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:dbkvsTest')
 
@@ -35,15 +35,17 @@ CONTAINER_10=('atlasdb-dbkvs-tests:oracleTest')
 
 CONTAINER_11=(':atlasdb-impl-shared:check' )
 
-CONTAINER_12=(':atlasdb-ete-tests:timeLockMigrationTest')
+CONTAINER_12=(':atlasdb-dbkvs:check' ':atlasdb-cassandra:check' )
 
-CONTAINER_13=('compileJava' 'compileTestJava')
+CONTAINER_13=(':atlasdb-ete-tests:timeLockMigrationTest')
+
+CONTAINER_14=('compileJava' 'compileTestJava')
 
 # Excluded as it is split into two subsets
 EXCLUDED=(':atlasdb-cassandra-integration-tests:check')
 
 # Container 0 - runs tasks not found in the below containers
-CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}" "${CONTAINER_11[@]}" "${CONTAINER_12[@]}" "${EXCLUDED[@]}")
+CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}" "${CONTAINER_11[@]}" "${CONTAINER_12[@]}" "${CONTAINER_13[@]}" "${EXCLUDED[@]}")
 
 for task in "${CONTAINER_0_EXCLUDE[@]}"
 do
@@ -73,8 +75,11 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
 # External builds have a 16gb limit.
-if [ "$test_suite_index" -eq "13" ]; then
+if [ "$test_suite_index" -eq "14" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
+elif [ "$test_suite_index" -eq "3" ]; then
+    export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
+    BASE_GRADLE_ARGS+=" --scan --parallel"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
     BASE_GRADLE_ARGS+=" --scan --parallel"
@@ -96,5 +101,6 @@ case "$test_suite_index" in
     10) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_10[@]} ;;
     11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} ;;
     12) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_12[@]} ;;
-    13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_13[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
+    13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_13[@]} ;;
+    14) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_14[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
 esacu}(jb (0b2e25c1efbf2581b0f2ea54e67e8b583c906ac4jί timelock-server-benchmark-client/src/main/java/com/palantir/atlasdb/timelock/benchmarks/schema/generated/BlobsSerializableTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FBlobsSerializableTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FBlobsSerializableTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FBlobsSerializableTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "jpbUef6G6FMHoZjbw+bBKQ==";
+    static String __CLASS_HASH = "X9vlVcKWG1PnG8EugUP/kA==";
 }u}(jb (09a27f561e01b9eb3709f6d67aa6cffeb97e3da4jί xtimelock-server-benchmark-client/src/main/java/com/palantir/atlasdb/timelock/benchmarks/schema/generated/BlobsTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FBlobsTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FBlobsTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FBlobsTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "ebAUSbvXjUAAU8MmEfZdhw==";
+    static String __CLASS_HASH = "RU6CLtTd3DluJLwkYHXzeQ==";
 }u}(jb (3faee9118f858e0ca89e83898a0999931a40e261jί timelock-server-benchmark-client/src/main/java/com/palantir/atlasdb/timelock/benchmarks/schema/generated/KvDynamicColumnsTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FKvDynamicColumnsTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FKvDynamicColumnsTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FKvDynamicColumnsTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -810,6 +811,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -833,5 +835,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "WonqNwl3FFSJcXG3L2uHcA==";
+    static String __CLASS_HASH = "ujWl4A2gAakYQiWxv+hZew==";
 }u}(jb (1370c1cea330883f414f3b9ea89fbad05a2c1487jί ytimelock-server-benchmark-client/src/main/java/com/palantir/atlasdb/timelock/benchmarks/schema/generated/KvRowsTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FKvRowsTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FKvRowsTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FKvRowsTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -776,6 +777,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -799,5 +801,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "G3l1p9aHW8n32yBnhbylTQ==";
+    static String __CLASS_HASH = "E7HBSSSWtvxMljBiJQ/8mg==";
 }u}(jb (3bf5d8d5916fe24a6fc9c5c8898f75c2e2c00d09jί {timelock-server-benchmark-client/src/main/java/com/palantir/atlasdb/timelock/benchmarks/schema/generated/MetadataTable.javajЯ modifiedjȯ Kjɯ Kjү Kjӯ https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FMetadataTable.javajկ https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FMetadataTable.javajׯ https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FMetadataTable.java?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -748,6 +749,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -771,5 +773,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "ZnB3dQeFf2sMuVxmdZI9OQ==";
+    static String __CLASS_HASH = "MVgxOXWoD/e8wdW5v1b6og==";
 }u}(jb (196c276969d650b1d6d0e72c152a4a1d49ef5f6ejί 
versions.lockjЯ modifiedjȯ Kjɯ Kjү Kjӯ _https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/versions.lockjկ ^https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/versions.lockjׯ qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -200,8 +200,8 @@ jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.5 (6 constraints: 845987f4)
 junit:junit:4.13.2 (8 constraints: 5a9c5baf)
-net.bytebuddy:byte-buddy:1.14.3 (3 constraints: 3d25d791)
-net.bytebuddy:byte-buddy-agent:1.14.1 (1 constraints: 410b3fde)
+net.bytebuddy:byte-buddy:1.14.4 (3 constraints: 4025da91)
+net.bytebuddy:byte-buddy-agent:1.14.4 (1 constraints: 440b42de)
 net.java.dev.jna:jna:4.1.0 (2 constraints: 6e1bbbad)
 net.jpountz.lz4:lz4:1.3.0 (2 constraints: 971453a0)
 net.ltgt.gradle.incap:incap:0.2 (1 constraints: ea0d3b32)
@@ -293,7 +293,7 @@ org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.0 (3 constraints: c125b5a3)
 org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.5.0 (1 constraints: 4b0ea44e)
 org.jvnet:animal-sniffer-annotation:1.0 (1 constraints: f20b95eb)
 org.mindrot:jbcrypt:0.4 (2 constraints: 4714f171)
-org.mockito:mockito-core:5.2.0 (2 constraints: 51165c12)
+org.mockito:mockito-core:5.3.1 (2 constraints: 5316c412)
 org.mpierce.metrics.reservoir:hdrhistogram-metrics-reservoir:1.1.3 (1 constraints: 0d10f991)
 org.objenesis:objenesis:3.3 (2 constraints: c71412ab)
 org.openjdk.jmh:jmh-core:1.36 (2 constraints: f51525d9)u}(jb (089fade66d09b3cbc4c42ee07a5dca286262895cjί versions.propsjЯ modifiedjȯ Kjɯ Kjү Kjӯ `https://github.com/palantir/atlasdb/blob/e62f84c7936fac099c18eebba4abb782789bc5e0/versions.propsjկ _https://github.com/palantir/atlasdb/raw/e62f84c7936fac099c18eebba4abb782789bc5e0/versions.propsjׯ rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=e62f84c7936fac099c18eebba4abb782789bc5e0jٯ X  @@ -17,7 +17,7 @@ com.google.dagger:* = 2.44.1
 com.google.devtools.ksp:symbol-processing-api = 1.5.21-1.0.0-beta07
 com.google.errorprone:* = 2.10.0 # upgrading to 2.11.0 is blocked by a google bug
 com.google.errorprone:error_prone_annotations = 2.10.0
-com.google.guava:* = 31.1-jre
+com.google.guava:guava = 31.1-jre
 com.google.protobuf:* = 3.21.9
 com.googlecode.protobuf-java-format:* = 1.4
 com.lmax:disruptor = 3.4.2
@@ -72,7 +72,7 @@ org.jboss.threads:jboss-threads = 3.5.0.Final
 org.jdbi:* = 3.30.0
 org.jmock:jmock* = 2.12.0
 org.mindrot:jbcrypt = 0.4
-org.mockito:* = 5.2.0
+org.mockito:* = 5.3.1
 org.openjdk.jmh:* = 1.36
 org.reflections:reflections = 0.10.2
 org.rocksdb:rocksdbjni = 7.9.2ueu(979f85ce8ce31b7cfefe51b83daf555a6f62c7d1}(sha(979f85ce8ce31b7cfefe51b83daf555a6f62c7d1node_idEC_kwDOAjP5fdoAKDk3OWY4NWNlOGNlMzFiN2NmZWZlNTFiODNkYWY1NTVhNmY2MmM3ZDEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-06T17:50:21Zu	committer}(j 
Sam Kramerj skramer@palantir.comj	 2023-04-06T17:50:21Zumessage2add serializable invariant and transaction buildertree}(j (6cf422220d04e9205661bda48afdc93c1f8d3374url`https://api.github.com/repos/palantir/atlasdb/git/trees/6cf422220d04e9205661bda48afdc93c1f8d3374uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQvBl0ACgkQmPPOpKR4
XS2Itgf9GOIidqowNfs0fI6qAwiqHYkJe5pdeg1XwS0DAQ7Gv2iugIPT/aSaISg5
A/gts0/rpPHUDAgFA567J+H5T69Usan7CuDNDv9vQh3aDFUwk3zudRpxOTuGhcne
T6cG0nd/lTFIh2RvVkTVSdfW7s6/oK3gavgPAGK0yuKuI8knyU3/SAUn6e/X7Uoq
W2m9rF3CdVY8lbpIV51kL9WMWIx+sJGvxH9iTWIooUTzA0pXvl2/DWy2D5EpEeG8
6DLK6oTz/meEnbwXvGZu53v/07tlPbSaxWTbbHPnmrGUCWL5gjnWrlRecEFv/H5t
9aW+hmg7dbN3QyJMRS+t59X7/BC0hg==
=+osK
-----END PGP SIGNATURE-----payloadX	  tree 6cf422220d04e9205661bda48afdc93c1f8d3374
parent 8b467ad037b64131e76cac81d375e860a142dcbf
author Sam Kramer <skramer@palantir.com> 1680803421 +0100
committer Sam Kramer <skramer@palantir.com> 1680803421 +0100

add serializable invariant and transaction builder
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1html_urlShttps://github.com/palantir/atlasdb/commit/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj# https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j( 
Sam-Kramerj* J^2_ j MDQ6VXNlcjYyMzg4MTQ=j, 3https://avatars.githubusercontent.com/u/6238814?v=4j. h5j 'https://api.github.com/users/Sam-Kramerj# https://github.com/Sam-Kramerj1 1https://api.github.com/users/Sam-Kramer/followersj3 >https://api.github.com/users/Sam-Kramer/following{/other_user}j5 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j7 >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j9 5https://api.github.com/users/Sam-Kramer/subscriptionsj; ,https://api.github.com/users/Sam-Kramer/orgsj= -https://api.github.com/users/Sam-Kramer/reposj? 8https://api.github.com/users/Sam-Kramer/events{/privacy}jA 7https://api.github.com/users/Sam-Kramer/received_eventsjC UserjE uparents]}(j (8b467ad037b64131e76cac81d375e860a142dcbfj ^https://api.github.com/repos/palantir/atlasdb/commits/8b467ad037b64131e76cac81d375e860a142dcbfj# Shttps://github.com/palantir/atlasdb/commit/8b467ad037b64131e76cac81d375e860a142dcbfuastats}(totalM?	additionsM	deletionsKWufiles](}(j (f311e643064907dd8eeece7fe8fe0069efe51f4efilename~atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransaction.javastatusaddedj_ K"j` K changesK"blob_urlhttps://github.com/palantir/atlasdb/blob/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.java?ref=979f85ce8ce31b7cfefe51b83daf555a6f62c7d1patchX  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedTransaction {
+    @Value.Parameter
+    WitnessedTransaction transaction();
+
+    @Value.Parameter
+    List<InvalidWitnessedTransactionAction> invalidActions();
+
+    static InvalidWitnessedTransaction of(
+            WitnessedTransaction witnessedTransaction, List<InvalidWitnessedTransactionAction> invalidActions) {
+        return ImmutableInvalidWitnessedTransaction.of(witnessedTransaction, invalidActions);
+    }
+}u}(j (13fc2568c111b1ef3b542238490857c5d0b5acb9je atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javajg addedj_ K!j` K ji K!jj https://github.com/palantir/atlasdb/blob/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javajl https://github.com/palantir/atlasdb/raw/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=979f85ce8ce31b7cfefe51b83daf555a6f62c7d1jp X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.invariant.MismatchedValue;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedTransactionAction {
+    @Value.Parameter
+    WitnessedTransactionAction action();
+
+    @Value.Parameter
+    MismatchedValue mismatchedValue();
+
+    static InvalidWitnessedTransactionAction of(WitnessedTransactionAction action, MismatchedValue mismatchedValue) {
+        return ImmutableInvalidWitnessedTransactionAction.of(action, mismatchedValue);
+    }
+}u}(j (9182de83512f620a1034f9caa1e0e65888560fa1je latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javajg modifiedj_ Kj` Kji Kjj https://github.com/palantir/atlasdb/blob/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java      jl https://github.com/palantir/atlasdb/raw/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=979f85ce8ce31b7cfefe51b83daf555a6f62c7d1jp X  @@ -26,8 +26,8 @@
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
 import com.palantir.atlasdb.workload.invariant.DurableWritesMetricInvariantReporter;
+import com.palantir.atlasdb.workload.runner.AntithesisWorkflowRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
-import com.palantir.atlasdb.workload.workflow.AntithesisWorkflowRunner;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;u}(j (6692c7a0ab9dc06ee5a6b9df123917c46c3d2758je iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariant.javajg modifiedj_ Kj` Kji Kjj https://github.com/palantir/atlasdb/blob/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javajl https://github.com/palantir/atlasdb/raw/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.java?ref=979f85ce8ce31b7cfefe51b83daf555a6f62c7d1jp X  @@ -16,10 +16,10 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
+import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.ValidationStore;
-import com.palantir.atlasdb.workload.transaction.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import io.vavr.Tuple;
 import java.util.Map;u}(j (6271e6ab27b4be7ffef0fe73d45cd18a94d4f378je hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javajg addedj_ K_j` K ji K_jj https://github.com/palantir/atlasdb/blob/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajl https://github.com/palantir/atlasdb/raw/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=979f85ce8ce31b7cfefe51b83daf555a6f62c7d1jp X  @@ -0,0 +1,95 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.List;
+import java.util.Optional;
+import java.util.function.Consumer;
+import java.util.stream.Collectors;
+import one.util.streamex.StreamEx;
+
+public enum SerializableInvariant implements Invariant<List<InvalidWitnessedTransaction>> {
+    INSTANCE;
+
+    @Override
+    public void accept(
+            WorkflowHistory workflowHistory, Consumer<List<InvalidWitnessedTransaction>> invalidWitnessedTransactions) {
+        SerializableInvariantVisitor visitor = new SerializableInvariantVisitor();
+        List<InvalidWitnessedTransaction> transactions = StreamEx.of(workflowHistory.history())
+                .sequential()
+                .mapPartial(witnessedTransaction -> {
+                    List<InvalidWitnessedTransactionAction> invalidTransactions = StreamEx.of(
+                                    witnessedTransaction.actions())
+                            .sequential()
+                            .mapPartial(action -> action.accept(visitor))
+                            .toList();
+
+                    if (invalidTransactions.isEmpty()) {
+                        return Optional.empty();
+                    }
+
+                    return Optional.of(InvalidWitnessedTransaction.of(witnessedTransaction, invalidTransactions));
+                })
+                .collect(Collectors.toList());
+        invalidWitnessedTransactions.accept(transactions);
+    }
+
+    private static final class SerializableInvariantVisitor
+            implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
+
+        private final InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+            Optional<Integer> expectedValue = inMemoryTransactionReplayer
+                    .getValues()
+                    .get(TableAndWorkloadCell.of(readTransactionAction.table(), readTransactionAction.cell()))
+                    .toJavaOptional()
+                    .orElseGet(Optional::empty);
+
+            if (!expectedValue.equals(readTransactionAction.value())) {
+                return Optional.of(InvalidWitnessedTransactionAction.of(
+                        readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expectedValue)));
+            }
+
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedWriteTransactionAction writeTransactionAction) {
+            inMemoryTransactionReplayer.visit(writeTransactionAction);
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedDeleteTransactionAction deleteTransactionAction) {
+            inMemoryTransactionReplayer.visit(deleteTransactionAction);
+            return Optional.empty();
+        }
+    }
+}u}(j (47c1c58dc5ec09e6991e1b15ffa1c7e7c13a1b46je hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowRunner.javajg renamedj_ Kj` Kji Kjj https://github.com/palantir/atlasdb/blob/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.javajl https://github.com/palantir/atlasdb/raw/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.java?ref=979f85ce8ce31b7cfefe51b83daf555a6f62c7d1jp X&  @@ -14,9 +14,12 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.workload.workflow;
+package com.palantir.atlasdb.workload.runner;
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowRunner;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;previous_filenamejatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/AntithesisWorkflowRunner.javau}(j (f903482687bcb5e66793d816482b51d37342f3f8je fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/InMemoryValidationStore.javajg addedj_ K.j` K ji K.jj https://github.com/palantir/atlasdb/blob/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.javajl https://github.com/palantir/atlasdb/raw/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.java?ref=979f85ce8ce31b7cfefe51b83daf555a6f62c7d1jp X2  @@ -0,0 +1,46 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.Optional;
+
+public final class InMemoryValidationStore implements ValidationStore {
+
+    private final Map<TableAndWorkloadCell, Optional<Integer>> values;
+
+    private InMemoryValidationStore(Map<TableAndWorkloadCell, Optional<Integer>> values) {
+        this.values = values;
+    }
+
+    public static InMemoryValidationStore create(List<WitnessedTransaction> history) {
+        InMemoryTransactionReplayer replayer = new InMemoryTransactionReplayer();
+        history.stream()
+                .map(WitnessedTransaction::actions)
+                .forEach(witnessedTransactionActions ->
+                        witnessedTransactionActions.forEach(action -> action.accept(replayer)));
+        return new InMemoryValidationStore(replayer.getValues());
+    }
+
+    @Override
+    public Map<TableAndWorkloadCell, Optional<Integer>> values() {
+        return values;
+    }
+}u}(j (e49b1b455b4e598bdcc84ee3da10f9cafb6bc43eje patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javajg addedj_ K:j` K ji K:jj https://github.com/palantir/atlasdb/blob/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javajl https://github.com/palantir/atlasdb/raw/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=979f85ce8ce31b7cfefe51b83daf555a6f62c7d1jp X
  @@ -0,0 +1,58 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.Optional;
+
+public final class InMemoryTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
+
+    private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> values =
+            StructureHolder.create(HashMap::empty);
+
+    @Override
+    public Void visit(WitnessedReadTransactionAction readTransactionAction) {
+        return null;
+    }
+
+    @Override
+    public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
+        TableAndWorkloadCell tableAndWorkloadCell =
+                TableAndWorkloadCell.of(writeTransactionAction.table(), writeTransactionAction.cell());
+        values.with(map -> map.put(tableAndWorkloadCell, Optional.of(writeTransactionAction.value())));
+        return null;
+    }
+
+    @Override
+    public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+        TableAndWorkloadCell tableAndWorkloadCell =
+                TableAndWorkloadCell.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
+        values.with(map -> map.put(tableAndWorkloadCell, Optional.empty()));
+        return null;
+    }
+
+    public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
+        return values.getSnapshot();
+    }
+}u}(j (301fd225038dc758fb5af7d2c0a7b9fd364ca74dje latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStore.javajg removedj_ K j` KTji KTjj https://github.com/palantir/atlasdb/blob/8b467ad037b64131e76cac81d375e860a142dcbf/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javajl https://github.com/palantir/atlasdb/raw/8b467ad037b64131e76cac81d375e860a142dcbf/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.java?ref=8b467ad037b64131e76cac81d375e860a142dcbfjp X  @@ -1,84 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.transaction;
-
-import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
-import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
-import com.palantir.atlasdb.workload.store.ValidationStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
-import io.vavr.collection.HashMap;
-import io.vavr.collection.Map;
-import java.util.List;
-import java.util.Optional;
-
-public final class InMemoryValidationStore implements ValidationStore {
-
-    private final Map<TableAndWorkloadCell, Optional<Integer>> values;
-
-    private InMemoryValidationStore(Map<TableAndWorkloadCell, Optional<Integer>> values) {
-        this.values = values;
-    }
-
-    public static InMemoryValidationStore create(List<WitnessedTransaction> history) {
-        InMemoryTransactionReplayer replayer = new InMemoryTransactionReplayer();
-        history.stream()
-                .map(WitnessedTransaction::actions)
-                .forEach(witnessedTransactionActions ->
-                        witnessedTransactionActions.forEach(action -> action.accept(replayer)));
-        return new InMemoryValidationStore(replayer.getValues());
-    }
-
-    @Override
-    public Map<TableAndWorkloadCell, Optional<Integer>> values() {
-        return values;
-    }
-
-    private static final class InMemoryTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
-
-        private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> values =
-                StructureHolder.create(HashMap::empty);
-
-        @Override
-        public Void visit(WitnessedReadTransactionAction readTransactionAction) {
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
-            TableAndWorkloadCell tableAndWorkloadCell =
-                    TableAndWorkloadCell.of(writeTransactionAction.table(), writeTransactionAction.cell());
-            values.with(map -> map.put(tableAndWorkloadCell, Optional.of(writeTransactionAction.value())));
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
-            TableAndWorkloadCell tableAndWorkloadCell =
-                    TableAndWorkloadCell.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
-            values.with(map -> map.put(tableAndWorkloadCell, Optional.empty()));
-            return null;
-        }
-
-        public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
-            return values.getSnapshot();
-        }
-    }
-}u}(j (5b3346ff1e502eabe3378e20fb4e00cc1d150683je latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javajg addedj_ Kzj` K ji Kzjj https://github.com/palantir/atlasdb/blob/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajl https://github.com/palantir/atlasdb/raw/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=979f85ce8ce31b7cfefe51b83daf555a6f62c7d1jp Xm  @@ -0,0 +1,122 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicReference;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class SerializableInvariantTest {
+
+    @Mock
+    private ReadableTransactionStore readableTransactionStore;
+
+    @Test
+    public void handlesLocalWrites() {
+        AtomicReference<List<InvalidWitnessedTransaction>> invalidTransactions = new AtomicReference<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .read(5, 10)
+                .write(5, 10, 15)
+                .read(5, 10, 15)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::set);
+        assertThat(invalidTransactions.get()).isEmpty();
+    }
+
+    @Test
+    public void noInvalidTransactionsWhenSerializable() {
+        AtomicReference<List<InvalidWitnessedTransaction>> invalidTransactions = new AtomicReference<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .write(23, 1, 20)
+                .write(7, 15, 14)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(23, 1, 20)
+                .read(7, 15, 14)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::set);
+        assertThat(invalidTransactions.get()).isEmpty();
+    }
+
+    @Test
+    public void catchesWriteSkew() {
+        AtomicReference<List<InvalidWitnessedTransaction>> invalidTransactions = new AtomicReference<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(6, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(6, 10, 15)
+                .write(5, 10, 0)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(6, 10, 15)
+                .write(6, 10, 0)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::set);
+        assertThat(invalidTransactions).hasValueSatisfying(invalidWitnessedTransactions -> {
+            InvalidWitnessedTransaction invalidWitnessedTransaction =
+                    Iterables.getOnlyElement(invalidWitnessedTransactions);
+            assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
+
+            InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                    Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
+            assertThat(invalidWitnessedTransactionAction.mismatchedValue())
+                    .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+        });
+    }
+}u}(j (78af7c7707b5a99809f2969167221c5abc0b8231je patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javajg modifiedj_ Kj` K ji Kjj https://github.com/palantir/atlasdb/blob/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javajl https://github.com/palantir/atlasdb/raw/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=979f85ce8ce31b7cfefe51b83daf555a6f62c7d1jp X  @@ -25,6 +25,7 @@
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.store.ValidationStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;u}(j (057848f8f928510f6f60499bdc2067d8b056eb31je qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javajg addedj_ K\j` K ji K\jj https://github.com/palantir/atlasdb/blob/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajl https://github.com/palantir/atlasdb/raw/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=979f85ce8ce31b7cfefe51b83daf555a6f62c7d1jp X  @@ -0,0 +1,92 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicLong;
+
+public class WitnessedTransactionsBuilder {
+
+    private final List<WitnessedTransaction> witnessedTransactions = new ArrayList<>();
+
+    private final AtomicLong timestampCounter = new AtomicLong();
+    private final String table;
+
+    public WitnessedTransactionsBuilder(String table) {
+        this.table = table;
+    }
+
+    public WitnessedTransactionBuilder startTransaction() {
+        return new WitnessedTransactionBuilder();
+    }
+
+    public List<WitnessedTransaction> build() {
+        return List.copyOf(witnessedTransactions);
+    }
+
+    public final class WitnessedTransactionBuilder {
+        private final List<WitnessedTransactionAction> actions = new ArrayList<>();
+
+        private boolean needsCommitTimestamp = false;
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column, Optional<Integer> valueRead) {
+            actions.add(WitnessedReadTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), valueRead));
+            return this;
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column, Integer valueRead) {
+            return read(row, column, Optional.of(valueRead));
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column) {
+            return read(row, column, Optional.empty());
+        }
+
+        public WitnessedTransactionBuilder write(Integer row, Integer column, Integer value) {
+            actions.add(WitnessedWriteTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), value));
+            needsCommitTimestamp = true;
+            return this;
+        }
+
+        public WitnessedTransactionBuilder delete(Integer row, Integer column) {
+            actions.add(WitnessedDeleteTransactionAction.of(table, ImmutableWorkloadCell.of(row, column)));
+            needsCommitTimestamp = true;
+            return this;
+        }
+
+        public WitnessedTransactionsBuilder endTransaction() {
+            long startTimestamp = timestampCounter.incrementAndGet();
+            Optional<Long> commitTimestamp =
+                    needsCommitTimestamp ? Optional.of(timestampCounter.incrementAndGet()) : Optional.empty();
+            witnessedTransactions.add(ImmutableWitnessedTransaction.builder()
+                    .startTimestamp(startTimestamp)
+                    .actions(actions)
+                    .commitTimestamp(commitTimestamp)
+                    .build());
+            return WitnessedTransactionsBuilder.this;
+        }
+    }
+}u}(j (07936157d324576a9f20715f268a208f9925c6d6je natlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/AntithesisWorkflowRunnerTest.javajg modifiedj_ Kj` K ji Kjj https://github.com/palantir/atlasdb/blob/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FAntithesisWorkflowRunnerTest.javajl https://github.com/palantir/atlasdb/raw/979f85ce8ce31b7cfefe51b83daf555a6f62c7d1/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FAntithesisWorkflowRunnerTest.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FAntithesisWorkflowRunnerTest.java?ref=979f85ce8ce31b7cfefe51b83daf555a6f62c7d1jp @@ -23,6 +23,7 @@
 import static org.mockito.Mockito.when;
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.runner.AntithesisWorkflowRunner;
 import java.util.List;
 import org.junit.Test;
 ueu(e1092e5c76c989e0360de20274fb117b4528ec32}(sha(e1092e5c76c989e0360de20274fb117b4528ec32node_idEC_kwDOAjP5fdoAKGUxMDkyZTVjNzZjOTg5ZTAzNjBkZTIwMjc0ZmIxMTdiNDUyOGVjMzIcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-03T19:46:48Zu	committer}(j޵ 	Tom Papkej tpapke@palantir.comj 2023-07-03T19:46:48Zumessageaddress address addresstree}(jֵ (18cd97b2565daafc954dfc7f01a331b07674d8b4url`https://api.github.com/repos/palantir/atlasdb/git/trees/18cd97b2565daafc954dfc7f01a331b07674d8b4uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e1092e5c76c989e0360de20274fb117b4528ec32
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSjJagACgkQmF9s0kaF
Iw1+tAf+PhnpiSdPAjw6cUziqIZ3Mvrf7K9Knz0UXmE7iJRI2ZBM+ckYQUvaqVWn
uES0Dg/MA+64NZNXQ7I8maUAgytRLgRXNvsnl26MNNE9qn2c4y7Iaj4R8q79zHW4
Scdl+/CHc7Nfol+JuY0Hx5V28U8t1gzfVWlspTsXKaUCuzqLzx5U9/V2ggeG3Le0
9IPCLJpL/8mbvVOaT/GdsxBudaTL3ilIBHGR5ssvrffv+3WHTzb9jKitd0XQkPJa
+09SZmpUaaAwfevlhIm28IAwjWh6fEy2Qc5ktFEdxdvwYmjKcfNG1Q65HXY5aYk0
t1dutugdFc45pXvri3vCMMIaUjPmGw==
=nHBC
-----END PGP SIGNATURE-----payloadtree 18cd97b2565daafc954dfc7f01a331b07674d8b4
parent 7855da7be463ca7221030a62cd3401cb2180c96f
author Tom Papke <tpapke@palantir.com> 1688413608 +0100
committer Tom Papke <tpapke@palantir.com> 1688413608 +0100

address address address
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/e1092e5c76c989e0360de20274fb117b4528ec32html_urlShttps://github.com/palantir/atlasdb/commit/e1092e5c76c989e0360de20274fb117b4528ec32comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e1092e5c76c989e0360de20274fb117b4528ec32/commentsjܵ }(login	ToemmscheidJbojص MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jbojص MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej
 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(jֵ (7855da7be463ca7221030a62cd3401cb2180c96fj ^https://api.github.com/repos/palantir/atlasdb/commits/7855da7be463ca7221030a62cd3401cb2180c96fj Shttps://github.com/palantir/atlasdb/commit/7855da7be463ca7221030a62cd3401cb2180c96fuastats}(totalKU	additionsK,	deletionsK)ufiles](}(jֵ (5aa7adcd06b95de174be8a046f2863e429511039filenameatimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javastatusmodifiedj8 Kj9 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e1092e5c76c989e0360de20274fb117b4528ec32/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e1092e5c76c989e0360de20274fb117b4528ec32/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=e1092e5c76c989e0360de20274fb117b4528ec32patchX  @@ -178,7 +178,11 @@ private void runIfDescriptorsMatchLockWatchesWithMetadata(
                     .map(unfilteredLockMetadata -> {
                         Map<LockDescriptor, ChangeMetadata> filteredLockMetadata = KeyedStream.ofEntries(
                                         unfilteredLockMetadata.entrySet().stream())
-                                .filterKeys(ranges::contains)
+                                // For an efficient encoding, we enforce that metadata is never attached to a lock
+                                // descriptor that is not contained in the original request, so this lookup is
+                                // sufficient.
+                                // It is also cheaper than calling RangeSet::contains.
+                                .filterKeys(filteredLocks::contains)
                                 .collectToMap();
                         return LockRequestMetadata.of(filteredLockMetadata);
                     });u}(jֵ (8e020b91d52d16688f90e3b5b814c087faf5f702j> etimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImplTest.javaj@ modifiedj8 Kj9 KjB KjC https://github.com/palantir/atlasdb/blob/e1092e5c76c989e0360de20274fb117b4528ec32/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javajE https://github.com/palantir/atlasdb/raw/e1092e5c76c989e0360de20274fb117b4528ec32/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javajG https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.java?ref=e1092e5c76c989e0360de20274fb117b4528ec32jI X  @@ -108,7 +108,7 @@ public void runTaskRunsExclusivelyOnLockLog() throws InterruptedException {
         Set<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR);
 
         Future<?> registerLock = executor.submit(() -> {
-            lockWatcher.registerLock(locks, TOKEN, Optional.empty());
+            lockWatcher.registerLock(locks, TOKEN);
             otherTaskCompleted.countDown();
             return null;
         });
@@ -152,11 +152,11 @@ public void watchExactRowLockWatchLogsHeldLocksInRange() {
         lockWatcher.startWatching(request);
 
         Set<LockDescriptor> cellDescriptor = ImmutableSet.of(CELL_DESCRIPTOR);
-        lockWatcher.registerLock(cellDescriptor, TOKEN, attachMetadataToLocks(cellDescriptor));
+        lockWatcher.registerLock(cellDescriptor, TOKEN, createMetadataForLocks(cellDescriptor));
 
         assertLoggedEvents(ImmutableList.of(
                 createdEvent(request.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
-                lockEvent(cellDescriptor, attachMetadataToLocks(cellDescriptor))));
+                lockEvent(cellDescriptor, createMetadataForLocks(cellDescriptor))));
     }
 
     @Test
@@ -237,12 +237,12 @@ public void exactCellWatchMatchesExactDescriptorOnly() {
         lockWatcher.startWatching(request);
 
         ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, cellSuffixDescriptor);
-        lockWatcher.registerLock(locks, TOKEN, attachMetadataToLocks(locks));
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
 
         ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(CELL_DESCRIPTOR);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(request.getReferences(), ImmutableSet.of()),
-                lockEvent(expectedFilteredLocks, attachMetadataToLocks(expectedFilteredLocks)));
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -253,12 +253,12 @@ public void exactRowWatchMatchesCellAndRowDescriptors() {
         lockWatcher.startWatching(rowRequest);
 
         ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR);
-        lockWatcher.registerLock(locks, TOKEN, attachMetadataToLocks(locks));
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
 
         ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(rowRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
-                lockEvent(expectedFilteredLocks, attachMetadataToLocks(expectedFilteredLocks)));
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -271,12 +271,12 @@ public void rowPrefixWatchMatchesSuffixes() {
         lockWatcher.startWatching(prefixRequest);
 
         ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR, notPrefixDescriptor);
-        lockWatcher.registerLock(locks, TOKEN, attachMetadataToLocks(locks));
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
 
         ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(prefixRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
-                lockEvent(expectedFilteredLocks, attachMetadataToLocks(expectedFilteredLocks)));
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -299,12 +299,12 @@ public void rowRangeWatchTest() {
         ImmutableSet<LockDescriptor> locks =
                 ImmutableSet.of(cellInRange, cellOutOfRange, rowInRange, rowInRange2, rowOutOfRange);
 
-        lockWatcher.registerLock(locks, TOKEN, attachMetadataToLocks(locks));
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
 
         ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(cellInRange, rowInRange, rowInRange2);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(rangeRequest.getReferences(), ImmutableSet.of()),
-                lockEvent(expectedFilteredLocks, attachMetadataToLocks(expectedFilteredLocks)));
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -319,13 +319,13 @@ public void entireTableWatchTest() {
 
         ImmutableSet<LockDescriptor> locks =
                 ImmutableSet.of(CELL_DESCRIPTOR, cellOutOfRange, rowInRange, rowOutOfRange);
-        lockWatcher.registerLock(locks, TOKEN, attachMetadataToLocks(locks));
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
 
         ImmutableSet<LockDescriptor> expectedFilteredLocks =
                 ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR, rowInRange);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(tableRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
-                lockEvent(expectedFilteredLocks, attachMetadataToLocks(expectedFilteredLocks)));
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -370,9 +370,9 @@ private static LockDescriptor descriptorForOtherTable() {
         return AtlasRowLockDescriptor.of(TABLE_2.getQualifiedName(), ROW);
     }
 
-    private static Optional<LockRequestMetadata> attachMetadataToLocks(Set<LockDescriptor> lockDescriptors) {
+    private static Optional<LockRequestMetadata> createMetadataForLocks(Set<LockDescriptor> lockDescriptors) {
         return Optional.of(LockRequestMetadata.of(
-                KeyedStream.of(lockDescriptors).map(unused -> DUMMY_METADATA).collectToMap()));
+                KeyedStream.of(lockDescriptors).map(_unused -> DUMMY_METADATA).collectToMap()));
     }
 
     private void assertLoggedEvents(List<LockWatchEvent> expectedEvents) {u}(jֵ (a3b10c9f04a06383b8e5a71683a05f1468ae9784j> qtimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataIntegrationTest.javaj@ modifiedj8 Kj9 KjB K1jC https://github.com/palantir/atlasdb/blob/e1092e5c76c989e0360de20274fb117b4528ec32/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataIntegrationTest.javajE https://github.com/palantir/atlasdb/raw/e1092e5c76c989e0360de20274fb117b4528ec32/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataIntegrationTest.javajG https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataIntegrationTest.java?ref=e1092e5c76c989e0360de20274fb117b4528ec32jI Xi%  @@ -22,13 +22,13 @@
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.timelock.api.ConjureIdentifiedVersion;
 import com.palantir.atlasdb.timelock.api.ConjureStartTransactionsRequest;
 import com.palantir.atlasdb.timelock.api.ConjureStartTransactionsResponse;
 import com.palantir.atlasdb.timelock.api.LockWatchRequest;
 import com.palantir.atlasdb.timelock.lock.AsyncLockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;
-import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.client.IdentifiedLockRequest;
@@ -49,7 +49,6 @@
 import com.palantir.lock.watch.UnlockEvent;
 import com.palantir.timestamp.InMemoryTimestampService;
 import java.nio.charset.StandardCharsets;
-import java.time.Duration;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
@@ -58,7 +57,7 @@
 import java.util.concurrent.Future;
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.stream.Collectors;
-import org.awaitility.Awaitility;
+import org.jmock.lib.concurrent.DeterministicScheduler;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -70,30 +69,30 @@ public class AsyncTimeLockServiceMetadataIntegrationTest {
 
     private static final String WATCHED_TABLE_NAME = "watched-table";
     private static final LockDescriptor WATCHED_LOCK_1 =
-            AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, "lock1".getBytes(StandardCharsets.UTF_8));
+            AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, PtBytes.toBytes("lock1"));
     private static final LockDescriptor WATCHED_LOCK_2 =
-            AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, "lock2".getBytes(StandardCharsets.UTF_8));
+            AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, PtBytes.toBytes("lock2"));
     private static final LockDescriptor WATCHED_LOCK_3 =
-            AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, "lock3".getBytes(StandardCharsets.UTF_8));
+            AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, PtBytes.toBytes("lock3"));
     private static final LockDescriptor WATCHED_LOCK_4 =
-            AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, "lock4".getBytes(StandardCharsets.UTF_8));
+            AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, PtBytes.toBytes("lock4"));
     private static final Map<LockDescriptor, ChangeMetadata> ALL_WATCHED_LOCKS_WITH_METADATA = ImmutableMap.of(
             WATCHED_LOCK_1,
             ChangeMetadata.unchanged(),
             WATCHED_LOCK_2,
-            ChangeMetadata.updated("old".getBytes(StandardCharsets.UTF_8), "new".getBytes(StandardCharsets.UTF_8)),
+            ChangeMetadata.updated(PtBytes.toBytes("old"), PtBytes.toBytes("new")),
             WATCHED_LOCK_3,
-            ChangeMetadata.deleted("deleted".getBytes(StandardCharsets.UTF_8)),
+            ChangeMetadata.deleted(PtBytes.toBytes("deleted")),
             WATCHED_LOCK_4,
-            ChangeMetadata.created("created".getBytes(StandardCharsets.UTF_8)));
+            ChangeMetadata.created(PtBytes.toBytes("created")));
     private static final String UNWATCHED_TABLE_NAME = "a-random-unwatched-table";
     private static final LockDescriptor UNWATCHED_LOCK_1 =
             AtlasRowLockDescriptor.of(UNWATCHED_TABLE_NAME, "lock1".getBytes(StandardCharsets.UTF_8));
     private static final IdentifiedLockRequest WATCHED_LOCK_REQUEST_WITH_METADATA =
             standardRequestWithMetadata(ALL_WATCHED_LOCKS_WITH_METADATA);
 
     private final LockLog lockLog = new LockLog(new MetricRegistry(), () -> 10000L);
-    private final ScheduledExecutorService scheduledExecutorService = PTExecutors.newSingleThreadScheduledExecutor();
+    private final ScheduledExecutorService scheduledExecutorService = new DeterministicScheduler();
     private final AsyncLockService asyncLockService =
             AsyncLockService.createDefault(lockLog, scheduledExecutorService, scheduledExecutorService);
     private final AsyncTimelockServiceImpl timeLockService =
@@ -108,14 +107,14 @@ public class AsyncTimeLockServiceMetadataIntegrationTest {
                     .build();
 
     @Before
-    public void setupLockServiceWithWatches() {
+    public void setup() {
         timeLockService.startWatching(
                 LockWatchRequest.of(ImmutableSet.of(LockWatchReferences.entireTable(WATCHED_TABLE_NAME))));
     }
 
     @Test
     public void lockEventContainsMetadataFromRequestIfWatched() {
-        waitForFuture(timeLockService.lock(WATCHED_LOCK_REQUEST_WITH_METADATA));
+        assertDone(timeLockService.lock(WATCHED_LOCK_REQUEST_WITH_METADATA));
 
         assertThat(getAllLockEventsMetadata())
                 .containsExactly(Optional.of(LockRequestMetadata.of(ALL_WATCHED_LOCKS_WITH_METADATA)));
@@ -131,8 +130,8 @@ public void lockEventDoesNotContainMetadataThatIsNotWatched() {
                                 ChangeMetadata.updated(
                                         "bla".getBytes(StandardCharsets.UTF_8),
                                         "blabla".getBytes(StandardCharsets.UTF_8)))
-                        .buildKeepingLast());
-        waitForFuture(timeLockService.lock(mixedRequest));
+                        .buildOrThrow());
+        assertDone(timeLockService.lock(mixedRequest));
 
         assertThat(getAllLockEventsMetadata())
                 .containsExactly(Optional.of(LockRequestMetadata.of(ALL_WATCHED_LOCKS_WITH_METADATA)));
@@ -144,7 +143,7 @@ public void noLockEventIsPublishedIfNothingIsWatched() {
                 UNWATCHED_LOCK_1,
                 ChangeMetadata.updated(
                         "bla".getBytes(StandardCharsets.UTF_8), "blabla".getBytes(StandardCharsets.UTF_8))));
-        waitForFuture(timeLockService.lock(mixedRequest));
+        assertDone(timeLockService.lock(mixedRequest));
 
         assertThat(getAllLockEventsMetadata()).isEmpty();
     }
@@ -155,7 +154,7 @@ public void canRetrieveMultipleEventsWithMetadata() {
         ALL_WATCHED_LOCKS_WITH_METADATA.forEach((lock, metadata) -> {
             Map<LockDescriptor, ChangeMetadata> map = ImmutableMap.of(lock, metadata);
             IdentifiedLockRequest request = standardRequestWithMetadata(map);
-            waitForFuture(timeLockService.lock(request));
+            assertDone(timeLockService.lock(request));
             metadataList.add(Optional.of(LockRequestMetadata.of(map)));
         });
 
@@ -168,7 +167,7 @@ public void toleratesAndPassesDownAbsentMetadata() {
         IdentifiedLockRequest requestWithoutMetadata = ImmutableIdentifiedLockRequest.copyOf(
                         standardRequestWithMetadata(ALL_WATCHED_LOCKS_WITH_METADATA))
                 .withMetadata(Optional.empty());
-        waitForFuture(timeLockService.lock(requestWithoutMetadata));
+        assertDone(timeLockService.lock(requestWithoutMetadata));
 
         assertThat(getAllLockEventsMetadata()).containsExactly(Optional.empty());
     }
@@ -184,21 +183,21 @@ public void canMixWithOtherLockWatchEventsAndAbsentMetadata() {
             // -> LockEvent with metadata
             Map<LockDescriptor, ChangeMetadata> map = ImmutableMap.of(lock, metadata);
             IdentifiedLockRequest requestWithMetadata = standardRequestWithMetadata(map);
-            LockResponseV2 response = waitForFuture(timeLockService.lock(requestWithMetadata));
+            LockResponseV2 response = assertDone(timeLockService.lock(requestWithMetadata));
             metadataList.add(Optional.of(LockRequestMetadata.of(map)));
 
             // -> UnlockEvent
-            waitForFuture(timeLockService.unlock(ImmutableSet.of(getToken(response))));
+            assertDone(timeLockService.unlock(ImmutableSet.of(getToken(response))));
 
             // -> LockEvent with absent metadata
             IdentifiedLockRequest requestWithoutMetadata = ImmutableIdentifiedLockRequest.copyOf(
                             standardRequestWithMetadata(map))
                     .withMetadata(Optional.empty());
-            response = waitForFuture(timeLockService.lock(requestWithoutMetadata));
+            response = assertDone(timeLockService.lock(requestWithoutMetadata));
             metadataList.add(Optional.empty());
 
             // -> UnlockEvent
-            waitForFuture(timeLockService.unlock(ImmutableSet.of(getToken(response))));
+            assertDone(timeLockService.unlock(ImmutableSet.of(getToken(response))));
         });
 
         assertThat(getAllLockWatchEvents()).hasSize(5 * ALL_WATCHED_LOCKS_WITH_METADATA.size());
@@ -215,13 +214,13 @@ private List<Optional<LockRequestMetadata>> getAllLockEventsMetadata() {
 
     private List<LockWatchEvent> getAllLockWatchEvents() {
         ConjureStartTransactionsResponse response =
-                waitForFuture(timeLockService.startTransactionsWithWatches(startTransactionsRequestWithInitialVersion));
+                assertDone(timeLockService.startTransactionsWithWatches(startTransactionsRequestWithInitialVersion));
 
         return response.getLockWatchUpdate().accept(LOCK_WATCH_STATE_UPDATE_VISITOR);
     }
 
-    private static <T> T waitForFuture(Future<T> future) {
-        Awaitility.await().atMost(Duration.ofMillis(200)).until(future::isDone);
+    private static <T> T assertDone(Future<T> future) {
+        assertThat(future).isDone();
         try {
             return future.get();
         } catch (Throwable t) {ueu(7cf685d00a4d1d1398790c038c454f1b45760363}(sha(7cf685d00a4d1d1398790c038c454f1b45760363node_idEC_kwDOAjP5fdoAKDdjZjY4NWQwMGE0ZDFkMTM5ODc5MGMwMzhjNDU0ZjFiNDU3NjAzNjMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-18T15:48:44Zu	committer}(je Jeremy Kongjg jkong@palantir.comji 2023-05-18T15:48:44Zumessageprivatetree}(j] (48ebce28350760450c0d9f246be3bd94128cf33aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/48ebce28350760450c0d9f246be3bd94128cf33auju bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7cf685d00a4d1d1398790c038c454f1b45760363
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRmSNwACgkQTLdFKain
zjy7EwgAodhO0VycrHnLy4NvhmZGp7fXIfRgZOxRpTtO2W/pjpcwDjvn3mtrT07o
IPVB+MaHHFn5l2W6U7QpmpoS93pkozXw9IEDgsNlNQgoslcyYisqMfudpqYesg1e
TWyAN2KOpdFYaCeQ2FYewvKsOia6lnex9ga+xew1lYLwvjnpD6ZXLQuc1AcPfoQQ
8snscE9DPFHES1L811TP3wDMhsbFiDbGsWFHoGWo7j6Q0w6Do5necf7isDSwUBeD
mcMMjoHnpWJsmB2ktYMG8NCoT8QJltmIgM8F4br2+ajnu/bsU4oE8vUOkWmEJs0p
xULbKpaEUOniG4fCQ+lz1VI73U2Dyg==
=e8IV
-----END PGP SIGNATURE-----payloadtree 48ebce28350760450c0d9f246be3bd94128cf33a
parent b16f4be12004d603cfb885425c90b5d75b7edae2
author Jeremy Kong <jkong@palantir.com> 1684424924 +0100
committer Jeremy Kong <jkong@palantir.com> 1684424924 +0100

private
uuju ^https://api.github.com/repos/palantir/atlasdb/commits/7cf685d00a4d1d1398790c038c454f1b45760363html_urlShttps://github.com/palantir/atlasdb/commit/7cf685d00a4d1d1398790c038c454f1b45760363comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7cf685d00a4d1d1398790c038c454f1b45760363/commentsjc }(login
jeremyk-91idJZ j_ MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5ju 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujk }(j 
jeremyk-91j JZ j_ MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5ju 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j] (b16f4be12004d603cfb885425c90b5d75b7edae2ju ^https://api.github.com/repos/palantir/atlasdb/commits/b16f4be12004d603cfb885425c90b5d75b7edae2j Shttps://github.com/palantir/atlasdb/commit/b16f4be12004d603cfb885425c90b5d75b7edae2uastats}(totalK	additionsK	deletionsKufiles]}(j] (357066036296b93c4cc13595bbdbc3b6d32cc11ffilenamelatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7cf685d00a4d1d1398790c038c454f1b45760363/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7cf685d00a4d1d1398790c038c454f1b45760363/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=7cf685d00a4d1d1398790c038c454f1b45760363patchXl  @@ -218,11 +218,11 @@ private OnceSettableAtomicReference() {
             this.delegate = new AtomicReference<>();
         }
 
-        T get() {
+        private T get() {
             return Preconditions.checkNotNull(delegate.get(), "Underlying atomic reference has not been set!");
         }
 
-        void set(T value) {
+        private void set(T value) {
             Preconditions.checkNotNull(value, "Expecting values set to a once-settable atomic reference to be nonnull");
             if (!delegate.compareAndSet(null, value)) {
                 throw new SafeIllegalStateException("Value already set");uau(2bb7bc4a58970df824ec3958117a5e1efaf6d75d}(sha(2bb7bc4a58970df824ec3958117a5e1efaf6d75dnode_idEC_kwDOAjP5fdoAKDJiYjdiYzRhNTg5NzBkZjgyNGVjMzk1ODExN2E1ZTFlZmFmNmQ3NWQcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-08-09T16:27:43Zu	committer}(jܶ 	Tom Papkej޶ tpapke@palantir.comj 2023-08-09T16:27:43ZumessageAdress commentstree}(jԶ (2f2832c1c1af0deac41f9f4b2a4dfbc2b9a5e301url`https://api.github.com/repos/palantir/atlasdb/git/trees/2f2832c1c1af0deac41f9f4b2a4dfbc2b9a5e301uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2bb7bc4a58970df824ec3958117a5e1efaf6d75d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTTvoAACgkQmF9s0kaF
Iw03CAf8DQc7ceCeHMdUzDfSB/Z13jht4hry4SvlmZoKELGIrdoHbDrKTekdUQDE
9xqjKm817ke/ehZ+Yl5rfyg4hbLRXPuwPBkGanphkJFMUyIYc33knICYvpzrc1+2
Ca9PwH9/kBm0qWalAwnn7nKFqo128V0er1woop5PFZ3bbY9KjS9tBVF7h3vLnSVE
WTEFbFdLpILbc2kQGKJvmOJJ6xnq2QXmaG1PFzCL+9gXvUZDywE62fiwmeIU6Zfv
kUbveTRaZ8a/3Mu+nvdBOZSjJcqxZIY/aOyzvBcfqSvatn7ZqwcVGG1TYeOs9ClS
cssMJdJNFhZ4+EFhkaFl8tkJJOtFVg==
=2F4Z
-----END PGP SIGNATURE-----payloadtree 2f2832c1c1af0deac41f9f4b2a4dfbc2b9a5e301
parent 78a4cc3b2bd34eb6307032d97c38045994d4cf85
author Tom Papke <tpapke@palantir.com> 1691598463 +0100
committer Tom Papke <tpapke@palantir.com> 1691598463 +0100

Adress comments
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/2bb7bc4a58970df824ec3958117a5e1efaf6d75dhtml_urlShttps://github.com/palantir/atlasdb/commit/2bb7bc4a58970df824ec3958117a5e1efaf6d75dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2bb7bc4a58970df824ec3958117a5e1efaf6d75d/commentsjڶ }(login	ToemmscheidJbojֶ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jbojֶ MDQ6VXNlcjQzNjc1NDkwE      j 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj
 =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(jԶ (78a4cc3b2bd34eb6307032d97c38045994d4cf85j ^https://api.github.com/repos/palantir/atlasdb/commits/78a4cc3b2bd34eb6307032d97c38045994d4cf85j Shttps://github.com/palantir/atlasdb/commit/78a4cc3b2bd34eb6307032d97c38045994d4cf85uastats}(totalK\	additionsK9	deletionsK#ufiles](}(jԶ (a634b95891e9e2fb130ea437801156c849de4e83filenameaatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/ExpectationsData.javastatusmodifiedj6 Kj7 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/2bb7bc4a58970df824ec3958117a5e1efaf6d75d/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FExpectationsData.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2bb7bc4a58970df824ec3958117a5e1efaf6d75d/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FExpectationsData.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FExpectationsData.java?ref=2bb7bc4a58970df824ec3958117a5e1efaf6d75dpatch@@ -26,5 +26,5 @@ public interface ExpectationsData {
 
     TransactionCommitLockInfo commitLockInfo();
 
-    TransactionMetadataInfo metadataInfo();
+    TransactionWriteMetadataInfo writeMetadataInfo();
 }u}(jԶ (2a84ba8535743351325850d52c8960bbcc6e8932j< matlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/TransactionWriteMetadataInfo.javaj> renamedj6 Kj7 Kj@ KjA https://github.com/palantir/atlasdb/blob/2bb7bc4a58970df824ec3958117a5e1efaf6d75d/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionWriteMetadataInfo.javajC https://github.com/palantir/atlasdb/raw/2bb7bc4a58970df824ec3958117a5e1efaf6d75d/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionWriteMetadataInfo.javajE https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionWriteMetadataInfo.java?ref=2bb7bc4a58970df824ec3958117a5e1efaf6d75djG X"  @@ -19,7 +19,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface TransactionMetadataInfo {
+public interface TransactionWriteMetadataInfo {
 
     /**
      * The number of {@link com.palantir.lock.watch.ChangeMetadata} objects stored internally in a transaction.previous_filenamehatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/TransactionMetadataInfo.javau}(jԶ (a24f377716872baf7ceec3095f27de813aae5654j< datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ExpectationsAwareTransaction.javaj> modifiedj6 Kj7 Kj@ KjA https://github.com/palantir/atlasdb/blob/2bb7bc4a58970df824ec3958117a5e1efaf6d75d/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javajC https://github.com/palantir/atlasdb/raw/2bb7bc4a58970df824ec3958117a5e1efaf6d75d/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javajE https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.java?ref=2bb7bc4a58970df824ec3958117a5e1efaf6d75djG Xf  @@ -18,8 +18,8 @@
 
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
-import com.palantir.atlasdb.transaction.api.expectations.TransactionMetadataInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionWriteMetadataInfo;
 
 /**
  * Implementors of this interface provide methods useful for tracking transactional expectations and whether
@@ -39,7 +39,7 @@ public interface ExpectationsAwareTransaction extends Transaction {
      */
     TransactionCommitLockInfo getCommitLockInfo();
 
-    TransactionMetadataInfo getMetadataInfo();
+    TransactionWriteMetadataInfo getWriteMetadataInfo();
 
     /**
      * Update TEX data collection metrics for (post-mortem) transactions.u}(jԶ (f5c123aa89a8ceafb060a36ac627f11aed726e5bj< natlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingExpectationsAwareTransaction.javaj> modifiedj6 Kj7 Kj@ KjA https://github.com/palantir/atlasdb/blob/2bb7bc4a58970df824ec3958117a5e1efaf6d75d/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javajC https://github.com/palantir/atlasdb/raw/2bb7bc4a58970df824ec3958117a5e1efaf6d75d/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javajE https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.java?ref=2bb7bc4a58970df824ec3958117a5e1efaf6d75djG Xw  @@ -17,8 +17,8 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
-import com.palantir.atlasdb.transaction.api.expectations.TransactionMetadataInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionWriteMetadataInfo;
 
 public abstract class ForwardingExpectationsAwareTransaction extends ForwardingTransaction
         implements ExpectationsAwareTransaction {
@@ -42,8 +42,8 @@ public TransactionCommitLockInfo getCommitLockInfo() {
     }
 
     @Override
-    public TransactionMetadataInfo getMetadataInfo() {
-        return delegate().getMetadataInfo();
+    public TransactionWriteMetadataInfo getWriteMetadataInfo() {
+        return delegate().getWriteMetadataInfo();
     }
 
     @Overrideu}(jԶ (106956d7a11d06b7764c14b70b76b0a096ef12a6j< gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/LockAndChangeMetadataCount.javaj> addedj6 Kj7 K j@ KjA https://github.com/palantir/atlasdb/blob/2bb7bc4a58970df824ec3958117a5e1efaf6d75d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLockAndChangeMetadataCount.javajC https://github.com/palantir/atlasdb/raw/2bb7bc4a58970df824ec3958117a5e1efaf6d75d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLockAndChangeMetadataCount.javajE https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLockAndChangeMetadataCount.java?ref=2bb7bc4a58970df824ec3958117a5e1efaf6d75djG X  @@ -0,0 +1,28 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+interface LockAndChangeMetadataCount {
+    @Value.Parameter
+    long lockCount();
+
+    @Value.Parameter
+    long changeMetadataCount();
+}u}(jԶ (a1570f908092e89d660cbfbcb3e6bc26f6389f6bj< `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj> modifiedj6 Kj7 Kj@ KjA https://github.com/palantir/atlasdb/blob/2bb7bc4a58970df824ec3958117a5e1efaf6d75d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajC https://github.com/palantir/atlasdb/raw/2bb7bc4a58970df824ec3958117a5e1efaf6d75d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajE https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=2bb7bc4a58970df824ec3958117a5e1efaf6d75djG X
  @@ -101,10 +101,10 @@
 import com.palantir.atlasdb.transaction.api.expectations.ExpectationsData;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableExpectationsData;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
-import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionMetadataInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionWriteMetadataInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
-import com.palantir.atlasdb.transaction.api.expectations.TransactionMetadataInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionWriteMetadataInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueServiceImpl;
@@ -2781,8 +2781,8 @@ public TransactionCommitLockInfo getCommitLockInfo() {
     }
 
     @Override
-    public TransactionMetadataInfo getMetadataInfo() {
-        return ImmutableTransactionMetadataInfo.builder()
+    public TransactionWriteMetadataInfo getWriteMetadataInfo() {
+        return ImmutableTransactionWriteMetadataInfo.builder()
                 .changeMetadataBuffered(localWriteBuffer.changeMetadataCount())
                 .cellChangeMetadataSent(cellChangeMetadataSent)
                 .rowChangeMetadataSent(rowChangeMetadataSent)
@@ -2802,7 +2802,7 @@ public void reportExpectationsCollectedData() {
                 .ageMillis(getAgeMillis())
                 .readInfo(getReadInfo())
                 .commitLockInfo(getCommitLockInfo())
-                .metadataInfo(getMetadataInfo())
+                .writeMetadataInfo(getWriteMetadataInfo())
                 .build();
         reportExpectationsCollectedData(expectationsData, expectationsDataCollectionMetrics);
     }
@@ -2823,9 +2823,12 @@ static void reportExpectationsCollectedData(ExpectationsData expectationsData, E
                 .update(expectationsData.commitLockInfo().cellCommitLocksRequested());
         metrics.rowCommitLocksRequested()
                 .update(expectationsData.commitLockInfo().rowCommitLocksRequested());
-        metrics.changeMetadataBuffered().update(expectationsData.metadataInfo().changeMetadataBuffered());
-        metrics.cellChangeMetadataSent().update(expectationsData.metadataInfo().cellChangeMetadataSent());
-        metrics.rowChangeMetadataSent().update(expectationsData.metadataInfo().rowChangeMetadataSent());
+        metrics.changeMetadataBuffered()
+                .update(expectationsData.writeMetadataInfo().changeMetadataBuffered());
+        metrics.cellChangeMetadataSent()
+                .update(expectationsData.writeMetadataInfo().cellChangeMetadataSent());
+        metrics.rowChangeMetadataSent()
+                .update(expectationsData.writeMetadataInfo().rowChangeMetadataSent());
     }
 
     private long getStartTimestamp() {
@@ -2954,13 +2957,4 @@ private <T> ListenableFuture<T> scopeToTransaction(ListenableFuture<T> transacti
                 },
                 MoreExecutors.directExecutor());
     }
-
-    @org.immutables.value.Value.Immutable
-    public interface LockAndChangeMetadataCount {
-        @org.immutables.value.Value.Parameter
-        long lockCount();
-
-        @org.immutables.value.Value.Parameter
-        long changeMetadataCount();
-    }
 }u}(jԶ (c5df60abf475c616ac4febf1691fea4f90fc56b7j< matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javaj> modifiedj6 Kj7 Kj@ KjA https://github.com/palantir/atlasdb/blob/2bb7bc4a58970df824ec3958117a5e1efaf6d75d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajC https://github.com/palantir/atlasdb/raw/2bb7bc4a58970df824ec3958117a5e1efaf6d75d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajE https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=2bb7bc4a58970df824ec3958117a5e1efaf6d75djG X  @@ -23,8 +23,8 @@
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableExpectationsData;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
-import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionMetadataInfo;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionWriteMetadataInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.util.MetricsManagers;
 import org.junit.Before;
@@ -43,8 +43,8 @@ public final class ExpectationsMetricsReportingTest {
                     .cellCommitLocksRequested(0L)
                     .rowCommitLocksRequested(0L)
                     .build();
-    private static final ImmutableTransactionMetadataInfo BLANK_METADATA_INFO =
-            ImmutableTransactionMetadataInfo.builder()
+    private static final ImmutableTransactionWriteMetadataInfo BLANK_METADATA_INFO =
+            ImmutableTransactionWriteMetadataInfo.builder()
                     .changeMetadataBuffered(0L)
                     .cellChangeMetadataSent(0L)
                     .rowChangeMetadataSent(0L)
@@ -53,7 +53,7 @@ public final class ExpectationsMetricsReportingTest {
             .ageMillis(0L)
             .readInfo(BLANK_READ_INFO)
             .commitLockInfo(BLANK_COMMIT_LOCK_INFO)
-            .metadataInfo(BLANK_METADATA_INFO)
+            .writeMetadataInfo(BLANK_METADATA_INFO)
             .build();
 
     private ExpectationsMetrics metrics;
@@ -110,8 +110,8 @@ public void commitLocksRequestsReported() {
     }
 
     @Test
-    public void metadataInfoReported() {
-        reportMetrics(BLANK_EXPECTATIONS_DATA.withMetadataInfo(ImmutableTransactionMetadataInfo.builder()
+    public void writeMetadataInfoReported() {
+        reportMetrics(BLANK_EXPECTATIONS_DATA.withWriteMetadataInfo(ImmutableTransactionWriteMetadataInfo.builder()
                 .changeMetadataBuffered(1)
                 .cellChangeMetadataSent(2)
                 .rowChangeMetadataSent(3)u}(jԶ (429137ea0801bc8c888b44f24b4c07cacd8cdbc5j< eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj> modifiedj6 Kj7 Kj@ K
jA https://github.com/palantir/atlasdb/blob/2bb7bc4a58970df824ec3958117a5e1efaf6d75d/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajC https://github.com/palantir/atlasdb/raw/2bb7bc4a58970df824ec3958117a5e1efaf6d75d/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajE https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=2bb7bc4a58970df824ec3958117a5e1efaf6d75djG X  @@ -101,7 +101,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.ValueAndChangeMetadata;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
-import com.palantir.atlasdb.transaction.api.expectations.TransactionMetadataInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionWriteMetadataInfo;
 import com.palantir.atlasdb.transaction.impl.metrics.DefaultMetricsFilterEvaluationContext;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.ToplistDeltaFilteringTableLevelMetricsController;
@@ -2782,10 +2782,10 @@ public void reportsMetadataInfoCorrectly() {
                         ValueAndChangeMetadata.of(TEST_VALUE, ChangeMetadata.unchanged())));
         txn.commit();
 
-        TransactionMetadataInfo metadataInfo = txn.getMetadataInfo();
-        assertThat(metadataInfo.changeMetadataBuffered()).isEqualTo(3);
-        assertThat(metadataInfo.cellChangeMetadataSent()).isEqualTo(2);
-        assertThat(metadataInfo.rowChangeMetadataSent()).isEqualTo(3);
+        TransactionWriteMetadataInfo writeMetadataInfo = txn.getWriteMetadataInfo();
+        assertThat(writeMetadataInfo.changeMetadataBuffered()).isEqualTo(3);
+        assertThat(writeMetadataInfo.cellChangeMetadataSent()).isEqualTo(2);
+        assertThat(writeMetadataInfo.rowChangeMetadataSent()).isEqualTo(3);
     }
 
     private void verifyPrefetchValidations(ueu(983f8bed86be3a42bb9c432f25f11c8f21e09ca4}(sha(983f8bed86be3a42bb9c432f25f11c8f21e09ca4node_idEC_kwDOAjP5fdoAKDk4M2Y4YmVkODZiZTNhNDJiYjljNDMyZjI1ZjExYzhmMjFlMDljYTQcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-03-17T18:17:24Zu	committer}(j 
svc-changelogj svc-changelog@palantir.comj 2023-03-17T18:17:24ZumessageAdd generated changelog entriestree}(j (a4f946011ab4d9b261d0a6dfb6325ad1bc675f87url`https://api.github.com/repos/palantir/atlasdb/git/trees/a4f946011ab4d9b261d0a6dfb6325ad1bc675f87uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/983f8bed86be3a42bb9c432f25f11c8f21e09ca4
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQUrrQJEHYaJX37fAFQAABYPQEAx0UPFj2cQyuTqL+55sw+Qc3e
R8eR8n9luoCko/19HPQBAIE/yatBCDaPTtbIBYTS4PvYGioztR60w283qk9lWS7K
=yqcr
-----END PGP SIGNATURE-----payloadX  tree a4f946011ab4d9b261d0a6dfb6325ad1bc675f87
parent 4660bd7ba06860ed5062c0351253682bfd1a3704
author svc-changelog <svc-changelog@palantir.com> 1679077044 +0000
committer svc-changelog <svc-changelog@palantir.com> 1679077044 +0000

Add generated changelog entriesuuj ^https://api.github.com/repos/palantir/atlasdb/commits/983f8bed86be3a42bb9c432f25f11c8f21e09ca4html_urlShttps://github.com/palantir/atlasdb/commit/983f8bed86be3a42bb9c432f25f11c8f21e09ca4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/983f8bed86be3a42bb9c432f25f11c8f21e09ca4/commentsj }(login
svc-changelogidJ#j MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj }(j 
svc-changelogj J#j MDQ6VXNlcjg0MDc3NjAzj 4https://avatars.githubusercontent.com/u/84077603?v=4j h5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelogj 4https://api.github.com/users/svc-changelog/followersj Ahttps://api.github.com/users/svc-changelog/following{/other_user}j :https://api.github.com/users/svc-changelog/gists{/gist_id}j Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j 8https://api.github.com/users/svc-changelog/subscriptionsj÷ /https://api.github.com/users/svc-changelog/orgsjŷ 0https://api.github.com/users/svc-changelog/reposjǷ ;https://api.github.com/users/svc-changelog/events{/privacy}jɷ :https://api.github.com/users/svc-changelog/received_eventsj˷ Userjͷ uparents]}(j (4660bd7ba06860ed5062c0351253682bfd1a3704j ^https://api.github.com/repos/palantir/atlasdb/commits/4660bd7ba06860ed5062c0351253682bfd1a3704j Shttps://github.com/palantir/atlasdb/commit/4660bd7ba06860ed5062c0351253682bfd1a3704uastats}(totalK	additionsK	deletionsK ufiles]}(j (3309c1d1cee08ce85d9ae1b7416b9cc06ad14e0ffilename$changelog/@unreleased/pr-6474.v2.ymlstatusaddedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/983f8bed86be3a42bb9c432f25f11c8f21e09ca4/changelog%2F%40unreleased%2Fpr-6474.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/983f8bed86be3a42bb9c432f25f11c8f21e09ca4/changelog%2F%40unreleased%2Fpr-6474.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6474.v2.yml?ref=983f8bed86be3a42bb9c432f25f11c8f21e09ca4patch@@ -0,0 +1,5 @@
+type: feature
+feature:
+  description: Add getActiveNamespaces endpoint
+  links:
+  - https://github.com/palantir/atlasdb/pull/6474uau(1de135ec0c9ef0e1cf3536bc7fd49a6f838c04be}(sha(1de135ec0c9ef0e1cf3536bc7fd49a6f838c04benode_idEC_kwDOAjP5fdoAKDFkZTEzNWVjMGM5ZWYwZTFjZjM1MzZiYzdmZDQ5YTZmODM4YzA0YmUcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-08-10T10:26:13Zu	committer}(j GitHubj noreply@github.comj 2023-08-10T10:26:13ZumessageURefactor bank balance to allow errors to be consumed rather than just logged  (#6703)tree}(j (941d64817eee9648cacdb011c521a03ceb3f5d7burl`https://api.github.com/repos/palantir/atlasdb/git/trees/941d64817eee9648cacdb011c521a03ceb3f5d7buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1de135ec0c9ef0e1cf3536bc7fd49a6f838c04be
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk1LtFCRBK7hj4Ov3rIwAAkDsIAAMIrkQobRbD62URBTT7D6eg
qH7jD6J/mfzSdxCSDflfB3pk8oySqXEXroS5WPOTevRqpNFZjkkbdy/MJl1TUy5G
wMIsnH9XwZeOY3zHeKNHQ9SGlNasB85E4Z0pBjbSkZxZyP/y3riWMSfZh6IB5glj
wUsTToas2GJm0OY7jowv0n9UB4U4/1vs06AHtPffSnJNLN2TZGuJ4sMssUniSvVY
/hgliEXnKWZ0hNe8Q3ASX20/R8OPo9tSFBnRzscrbg12VlpUoR/jR4Ub1EV7erY/
E39ZcKhuSwqNDQKQxG2iF7K9hLyjUxjTIA5zg7QnZoadMRmTyTizO/AWepEjXbM=
=flsx
-----END PGP SIGNATURE-----
payloadX*  tree 941d64817eee9648cacdb011c521a03ceb3f5d7b
parent 99e2c16fb38f05280b1081eaa6e15da4fca051e9
author Sam-Kramer <sam.c.kramer@gmail.com> 1691663173 +0100
committer GitHub <noreply@github.com> 1691663173 +0000

Refactor bank balance to allow errors to be consumed rather than just logged  (#6703)

 uuj ^https://api.github.com/repos/palantir/atlasdb/commits/1de135ec0c9ef0e1cf3536bc7fd49a6f838c04behtml_urlShttps://github.com/palantir/atlasdb/commit/1de135ec0c9ef0e1cf3536bc7fd49a6f838c04becomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1de135ec0c9ef0e1cf3536bc7fd49a6f838c04be/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj" https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj
 }(j' web-flowj) J/j MDQ6VXNlcjE5ODY0NDQ3j+ 4https://avatars.githubusercontent.com/u/19864447?v=4j- h5j %https://api.github.com/users/web-flowj" https://github.com/web-flowj0 /https://api.github.com/users/web-flow/followersj2 <https://api.github.com/users/web-flow/following{/other_user}j4 5https://api.github.com/users/web-flow/gists{/gist_id}j6 <https://api.github.com/users/web-flow/starred{/owner}{/repo}j8 3https://api.github.com/users/web-flow/subscriptionsj: *https://api.github.com/users/web-flow/orgsj< +https://api.github.com/users/web-flow/reposj> 6https://api.github.com/users/web-flow/events{/privacy}j@ 5https://api.github.com/users/web-flow/received_eventsjB UserjD uparents]}(j (99e2c16fb38f05280b1081eaa6e15da4fca051e9j ^https://api.github.com/repos/palantir/atlasdb/commits/99e2c16fb38f05280b1081eaa6e15da4fca051e9j" Shttps://github.com/palantir/atlasdb/commit/99e2c16fb38f05280b1081eaa6e15da4fca051e9uastats}(totalK1	additionsK(	deletionsK	ufiles](}(j (84eff5488159adcea344444577e027aa5667506cfilenamekatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflows.javastatusmodifiedj^ Kj_ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/1de135ec0c9ef0e1cf3536bc7fd49a6f838c04be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1de135ec0c9ef0e1cf3536bc7fd49a6f838c04be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.java?ref=1de135ec0c9ef0e1cf3536bc7fd49a6f838c04bepatchXh  @@ -34,6 +34,7 @@
 import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.function.Consumer;
 import java.util.function.Function;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
@@ -71,8 +72,9 @@ static Workflow create(
             InteractiveTransactionStore store,
             BankBalanceWorkflowConfiguration bankBalanceWorkflowConfiguration,
             ListeningExecutorService executionExecutor,
-            AtomicBoolean skipRunning) {
-        BankBalanceRunTask runTask = new BankBalanceRunTask(skipRunning, bankBalanceWorkflowConfiguration);
+            AtomicBoolean skipRunning,
+            Consumer<Map<Integer, Optional<Integer>>> onFailure) {
+        BankBalanceRunTask runTask = new BankBalanceRunTask(skipRunning, bankBalanceWorkflowConfiguration, onFailure);
         return DefaultWorkflow.create(
                 store,
                 (txnStore, _index) -> runTask.run(txnStore),
@@ -81,18 +83,28 @@ static Workflow create(
     }
 
     private static class BankBalanceRunTask {
+
+        private final Consumer<Map<Integer, Optional<Integer>>> onFailure;
         private final AtomicBoolean skipRunning;
 
         private final BankBalanceWorkflowConfiguration workflowConfiguration;
 
         public BankBalanceRunTask(BankBalanceWorkflowConfiguration workflowConfiguration) {
-            this(new AtomicBoolean(), workflowConfiguration);
+            this(
+                    new AtomicBoolean(),
+                    workflowConfiguration,
+                    maybeBalances -> log.error(
+                            "Balance validation failed, indicating we have violated snapshot isolation.",
+                            SafeArg.of("maybeBalances", maybeBalances)));
         }
 
-        @VisibleForTesting
-        BankBalanceRunTask(AtomicBoolean skipRunning, BankBalanceWorkflowConfiguration workflowConfiguration) {
+        public BankBalanceRunTask(
+                AtomicBoolean skipRunning,
+                BankBalanceWorkflowConfiguration workflowConfiguration,
+                Consumer<Map<Integer, Optional<Integer>>> onFailure) {
             this.skipRunning = skipRunning;
             this.workflowConfiguration = workflowConfiguration;
+            this.onFailure = onFailure;
         }
 
         public Optional<WitnessedTransaction> run(InteractiveTransactionStore store) {
@@ -108,9 +120,7 @@ public Optional<WitnessedTransaction> run(InteractiveTransactionStore store) {
                                 workflowConfiguration.initialBalancePerAccount())
                         .ifPresentOrElse(balances -> performTransfers(txn, balances), () -> {
                             if (skipRunning.compareAndSet(false, true)) {
-                                log.error(
-                                        "Balance validation failed, indicating we have violated snapshot isolation.",
-                                        SafeArg.of("maybeBalances", maybeBalances));
+                                onFailure.accept(maybeBalances);
                             }
                         });
             });u}(j (aed05e8ec29ada628511286cf95ca466f815480cjd oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowsTest.javajf modifiedj^ Kj_ Kjh Kji https://github.com/palantir/atlasdb/blob/1de135ec0c9ef0e1cf3536bc7fd49a6f838c04be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javajk https://github.com/palantir/atlasdb/raw/1de135ec0c9ef0e1cf3536bc7fd49a6f838c04be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javajm https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.java?ref=1de135ec0c9ef0e1cf3536bc7fd49a6f838c04bejo X  @@ -41,9 +41,14 @@
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.List;
+import java.util.Map;
+import java.util.Optional;
 import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.concurrent.atomic.AtomicReference;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
+import one.util.streamex.EntryStream;
+import one.util.streamex.IntStreamEx;
 import org.junit.Test;
 
 public final class BankBalanceWorkflowsTest {
@@ -59,6 +64,8 @@ public final class BankBalanceWorkflowsTest {
 
     private final AtomicBoolean skipRunning = new AtomicBoolean();
 
+    private final AtomicReference<Map<Integer, Optional<Integer>>> invalidBalances = new AtomicReference<>();
+
     private final InteractiveTransactionStore memoryStore = AtlasDbTransactionStore.create(
             TransactionManagers.createInMemory(ImmutableSet.of()),
             ImmutableMap.of(
@@ -69,7 +76,8 @@ public final class BankBalanceWorkflowsTest {
             memoryStore,
             CONFIGURATION,
             MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)),
-            skipRunning);
+            skipRunning,
+            invalidBalances::set);
 
     @Test
     public void workflowHistoryTransactionStoreShouldBeReadOnly() {
@@ -133,4 +141,17 @@ public void bankWorkflowDoesNotWitnessTransactionWhenSkipRunningSetToTrue() {
         skipRunning.set(true);
         assertThat(workflow.run().history()).isEmpty();
     }
+
+    @Test
+    public void bankWorkflowCallsConsumerWhenInvalidBalanceSet() {
+        assertThat(invalidBalances.get()).isNull();
+        memoryStore.readWrite(txn -> txn.write(TABLE_NAME, BankBalanceWorkflows.getCellForAccount(0), 1));
+        workflow.run();
+        Map<Integer, Optional<Integer>> balances = EntryStream.of(Map.of(0, Optional.of(1)))
+                .append(IntStreamEx.range(1, CONFIGURATION.numberOfAccounts())
+                        .boxed()
+                        .collect(Collectors.toMap(i -> i, _i -> Optional.empty())))
+                .toMap();
+        assertThat(invalidBalances).hasValue(balances);
+    }
 }ueu(63ae4d4b50ff7ced1876fe3e8ff446cd96f0f6a9}(sha(63ae4d4b50ff7ced1876fe3e8ff446cd96f0f6a9node_idEC_kwDOAjP5fdoAKDYzYWU0ZDRiNTBmZjdjZWQxODc2ZmUzZThmZjQ0NmNkOTZmMGY2YTkcommit}(author}(name	Tom Papkeemail+43675490+Toemmsche@users.noreply.github.comdate2023-07-14T13:00:21Zu	committer}(j GitHubj noreply@github.comj 2023-07-14T13:00:21Zumessage^Fix cell lock count across multiple tables (#6666)

Fix cell lock count across multiple tablestree}(j{ (6e416f4d8d32b564ac36c201896ddad3ee4418e1url`https://api.github.com/repos/palantir/atlasdb/git/trees/6e416f4d8d32b564ac36c201896ddad3ee4418e1uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/63ae4d4b50ff7ced1876fe3e8ff446cd96f0f6a9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJksUblCRBK7hj4Ov3rIwAAMXwIAKg5K4SuE9ZOLHFukrh53FnL
ftU3xJHzsqYUMnZXOhKB43VBFxtZLr5R3q2qXNpHJ40RCWHcS3am+nmW0B7VX+jt
w0X7JrWGNNmCjDoyh7CYab6D+N+N1UXkSlxcpBf87Cy2H7Fy6Bgy6GrPQpUfUL52
t99+EPMl1/T6g8h5zOYLJdP7g/i0MEGFdQGGSIOQ7KSS+Uuha/o7vW0hUkzgye5H
ySiUOYUwmknnEHYsHJqQAPys1yvrj6VOUpnWFHMbYHj+W5iW+cU0UiFDo6hGW5PD
tEAOjMekTSvL97Vbbc8O2Yp9ZQ9YAeoN0rWKuKjH87cvgfqxUbMPDlLmCalCQgQ=
=d2Tz
-----END PGP SIGNATURE-----
payloadXE  tree 6e416f4d8d32b564ac36c201896ddad3ee4418e1
parent 43136fc95acea5ceb1decebcf906e547b21d5a99
author Tom Papke <43675490+Toemmsche@users.noreply.github.com> 1689339621 +0200
committer GitHub <noreply@github.com> 1689339621 +0000

Fix cell lock count across multiple tables (#6666)

Fix cell lock count across multiple tables
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/63ae4d4b50ff7ced1876fe3e8ff446cd96f0f6a9html_urlShttps://github.com/palantir/atlasdb/commit/63ae4d4b50ff7ced1876fe3e8ff446cd96f0f6a9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/63ae4d4b50ff7ced1876fe3e8ff446cd96f0f6a9/commentsj }(login	ToemmscheidJboj} MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j web-flowj J/j} MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userjø uparents]}(j{ (43136fc95acea5ceb1decebcf906e547b21d5a99j ^https://api.github.com/repos/palantir/atlasdb/commits/43136fc95acea5ceb1decebcf906e547b21d5a99j Shttps://github.com/palantir/atlasdb/commit/43136fc95acea5ceb1decebcf906e547b21d5a99uastats}(totalK	additionsK	deletionsKufiles](}(j{ (44874b3c840c6dfbabcb5b8aa1dc169343a4cd7bfilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedjݸ Kj޸ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/63ae4d4b50ff7ced1876fe3e8ff446cd96f0f6a9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/63ae4d4b50ff7ced1876fe3e8ff446cd96f0f6a9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=63ae4d4b50ff7ced1876fe3e8ff446cd96f0f6a9patchX  @@ -2521,7 +2521,7 @@ protected Set<LockDescriptor> getLocksForWrites() {
                     result.add(AtlasCellLockDescriptor.of(
                             tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName()));
                 }
-                cellLockCount = cellsToLock.size();
+                cellLockCount += cellsToLock.size();
             }
 
             if (conflictHandler.lockRowsForConflicts()) {u}(j{ (f2e691648e3d3020d09ae176b23c26a2f6f5e6a7j eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj modifiedjݸ Kj޸ K j Kj https://github.com/palantir/atlasdb/blob/63ae4d4b50ff7ced1876fe3e8ff446cd96f0f6a9/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://github.com/palantir/atlasdb/raw/63ae4d4b50ff7ced1876fe3e8ff446cd96f0f6a9/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=63ae4d4b50ff7ced1876fe3e8ff446cd96f0f6a9j Xi  @@ -2522,6 +2522,21 @@ public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigratio
         assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
     }
 
+    @Test
+    public void setsRequestedCellCommitLocksCountCorrectlyForMultipleTables() {
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_CELL);
+        overrideConflictHandlerForTable(TABLE2, ConflictHandler.SERIALIZABLE_CELL);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE2, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(0 + 1);
+    }
+
     @Test
     public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
         for (int idx = 0; idx < SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS; idx++) {u}(j{ (ff9f08f8e6f43315a79a74fdf43e11f2070b6d9fj $changelog/@unreleased/pr-6666.v2.ymlj addedjݸ Kj޸ K j Kj |https://github.com/palantir/atlasdb/blob/63ae4d4b50ff7ced1876fe3e8ff446cd96f0f6a9/changelog%2F%40unreleased%2Fpr-6666.v2.ymlj {https://github.com/palantir/atlasdb/raw/63ae4d4b50ff7ced1876fe3e8ff446cd96f0f6a9/changelog%2F%40unreleased%2Fpr-6666.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6666.v2.yml?ref=63ae4d4b50ff7ced1876fe3e8ff446cd96f0f6a9j @@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: Fix cell lock count across multiple tables
+  links:
+  - https://github.com/palantir/atlasdb/pull/6666ueu(a37cad12389529457ff1b9b6953c94aa74659b03}(sha(a37cad12389529457ff1b9b6953c94aa74659b03node_idEC_kwDOAjP5fdoAKGEzN2NhZDEyMzg5NTI5NDU3ZmYxYjliNjk1M2M5NGFhNzQ2NTliMDMcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T23:54:56Zu	committer}(j
 
Ahmed Alouanej aalouane@palantir.comj 2023-05-15T23:54:56ZumessageJMerge branch 'tlmetexxxxx' of github.com:palantir/atlasdb into tlmetexxxxxtree}(j (929e8e488a6cf542c228e2716640938c4b0379d6url`https://api.github.com/repos/palantir/atlasdb/git/trees/929e8e488a6cf542c228e2716640938c4b0379d6uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a37cad12389529457ff1b9b6953c94aa74659b03
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRixlEACgkQPlMHVIT1
yhoZXQf+IaqEv3ATQxspY6VrRQqH8Vgp66UjeNn9Kkw9Bf3mEvTbO1r6xwVBnqWH
STCDzA1EtFC/WmKiAcDqRIMHxuz26g3zFYhY5m1nTVEoN1BGbvDBE7EQzsZNs1qI
WeJgQJ5ez2reczTocIQMPseXMh79ga6Z08EiVrVQSMsj7e9YKm7A824WQj4lHoUm
TA8mHTs6PQKEbtuBms6aYxPM/nje2ZKdWgvxuu/DbQxSEQYJAuB+S34YIaQAGQyO
U5ZRyI1i6r8aWX/jmBMbdQtacnc91JFEyWi8likTiNnoOxZ+oR0/H9GVs76OwxQ8
Ack2lNuW9XvkXv452PVqdGV3XvCPkQ==
=QPsk
-----END PGP SIGNATURE-----payloadXY  tree 929e8e488a6cf542c228e2716640938c4b0379d6
parent c7a555d6f2ef6bfbe3e113b7f1dfaf03d3490019
parent 0cd2e5980e531bbdd82ffc1b86f024928a35f5b7
author Ahmed Alouane <aalouane@palantir.com> 1684194896 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684194896 +0100

Merge branch 'tlmetexxxxx' of github.com:palantir/atlasdb into tlmetexxxxx
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/a37cad12389529457ff1b9b6953c94aa74659b03html_urlShttps://github.com/palantir/atlasdb/commit/a37cad12389529457ff1b9b6953c94aa74659b03comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a37cad12389529457ff1b9b6953c94aa74659b03/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j( https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j- ergo14j/ Jj MDQ6VXNlcjMwOTAzNzM2j1 4https://avatars.githubusercontent.com/u/30903736?v=4j3 h5j #https://api.github.com/users/ergo14j( https://github.com/ergo14j6 -https://api.github.com/users/ergo14/followersj8 :https://api.github.com/users/ergo14/following{/other_user}j: 3https://api.github.com/users/ergo14/gists{/gist_id}j< :https://api.github.com/users/ergo14/starred{/owner}{/repo}j> 1https://api.github.com/users/ergo14/subscriptionsj@ (https://api.github.com/users/ergo14/orgsjB )https://api.github.com/users/ergo14/reposjD 4https://api.github.com/users/ergo14/events{/privacy}jF 3https://api.github.com/users/ergo14/received_eventsjH UserjJ uparents](}(j (c7a555d6f2ef6bfbe3e113b7f1dfaf03d3490019j ^https://api.github.com/repos/palantir/atlasdb/commits/c7a555d6f2ef6bfbe3e113b7f1dfaf03d3490019j( Shttps://github.com/palantir/atlasdb/commit/c7a555d6f2ef6bfbe3e113b7f1dfaf03d3490019u}(j (0cd2e5980e531bbdd82ffc1b86f024928a35f5b7j ^https://api.github.com/repos/palantir/atlasdb/commits/0cd2e5980e531bbdd82ffc1b86f024928a35f5b7j( Shttps://github.com/palantir/atlasdb/commit/0cd2e5980e531bbdd82ffc1b86f024928a35f5b7uestats}(totalK 	additionsK 	deletionsK ufiles]u(0e65643d51c7652227f5a02604dcda5eeed1abbf}(sha(0e65643d51c7652227f5a02604dcda5eeed1abbfnode_idEC_kwDOAjP5fdoAKDBlNjU2NDNkNTFjNzY1MjIyN2Y1YTAyNjA0ZGNkYTVlZWVkMWFiYmYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-17T09:30:22Zu	committer}(jv Jeremy Kongjx jkong@palantir.comjz 2023-05-17T09:30:22Zumessagefixtree}(jn (d93829bf020797c3567eea04c91703008d1c864durl`https://api.github.com/repos/palantir/atlasdb/git/trees/d93829bf020797c3567eea04c91703008d1c864duj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0e65643d51c7652227f5a02604dcda5eeed1abbf
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRknq4ACgkQTLdFKain
zjy/OQgAyGPsj8l9XnrETo+VlULxz2N/MpJTCeOrstfXrSHdHzGyGqFGaOMIwRxE
e+qMfrBxVCYcYxXrUdckQn2diC6FiW2d7o30d9XGZCa6c5zltDRyhAn40MYV2DOL
T1gzt6LS7Mre8jcHnam9X6btCoFtW4Nfvwp7i+zyJ7zJmADEBzTlb++9ccNi+DGy
d3ZqxK0fxJ+YRM+z05c/gvLVEQ8JUqL6u520N1pmbuNZT0rmcexdxAIg63EwBCd1
Pk8yvEHll04lOdb9dtOfS8tNLgrHkOo6+8WtLrWaCFP8M4pHQnHqZX/4/IpRRc1x
Op/jGil0536oRnbECdTNvRsA20JemQ==
=EI7+
-----END PGP SIGNATURE-----payloadtree d93829bf020797c3567eea04c91703008d1c864d
parent 13e7f7b901ffa9d684e50e5df34aa961977351b0
author Jeremy Kong <jkong@palantir.com> 1684315822 +0100
committer Jeremy Kong <jkong@palantir.com> 1684315822 +0100

fix
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/0e65643d51c7652227f5a02604dcda5eeed1abbfhtml_urlShttps://github.com/palantir/atlasdb/commit/0e65643d51c7652227f5a02604dcda5eeed1abbfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0e65643d51c7652227f5a02604dcda5eeed1abbf/commentsjt }(login
jeremyk-91idJZ jp MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj| }(j 
jeremyk-91j JZ jp MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(jn (13e7f7b901ffa9d684e50e5df34aa961977351b0j ^https://api.github.com/repos/palantir/atlasdb/commits/13e7f7b901ffa9d684e50e5df34aa961977351b0j Shttps://github.com/palantir/atlasdb/commit/13e7f7b901ffa9d684e50e5df34aa961977351b0uastats}(totalK)	additionsK	deletionsKufiles]}(jn (3079e16e8c5e478b3cf4d432c270dac8638ac790filenamexatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionsTest.javastatusmodifiedjй Kjѹ KchangesK)blob_urlhttps://github.com/palantir/atlasdb/blob/0e65643d51c7652227f5a02604dcda5eeed1abbf/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0e65643d51c7652227f5a02604dcda5eeed1abbf/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.java?ref=0e65643d51c7652227f5a02604dcda5eeed1abbfpatchXy  @@ -24,8 +24,11 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import java.util.List;
 import org.junit.Test;
+import org.junit.runner.RunWith;
 import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
 
+@RunWith(MockitoJUnitRunner.class)
 public class WitnessedTransactionsTest {
     @Mock
     private ReadOnlyTransactionStore readOnlyTransactionStore;
@@ -36,10 +39,10 @@ public void returnsUnderlyingWitnessedTransactions() {
         FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
 
         assertThat(WitnessedTransactions.sortAndFilterTransactions(
-                        readOnlyTransactionStore, ImmutableList.of(twoToEight)))
+                readOnlyTransactionStore, ImmutableList.of(twoToEight)))
                 .containsExactly(twoToEight);
         assertThat(WitnessedTransactions.sortAndFilterTransactions(
-                        readOnlyTransactionStore, ImmutableList.of(readOnlyAtFive)))
+                readOnlyTransactionStore, ImmutableList.of(readOnlyAtFive)))
                 .containsExactly(readOnlyAtFive);
     }
 
@@ -50,7 +53,7 @@ public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
         FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
 
         assertThat(WitnessedTransactions.sortAndFilterTransactions(
-                        readOnlyTransactionStore, ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
+                readOnlyTransactionStore, ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
                 .containsExactly(fourToSix, threeToSeven, twoToEight);
     }
 
@@ -61,8 +64,8 @@ public void sortsReadOnlyTransactionsByStartTimestamp() {
         FullyWitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
 
         assertThat(WitnessedTransactions.sortAndFilterTransactions(
-                        readOnlyTransactionStore,
-                        ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
+                readOnlyTransactionStore,
+                ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
                 .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
     }
 
@@ -77,14 +80,14 @@ public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
         FullyWitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
 
         assertThat(WitnessedTransactions.sortAndFilterTransactions(
-                        readOnlyTransactionStore,
-                        ImmutableList.of(
-                                twoToEight,
-                                readOnlyAtNine,
-                                fourToSix,
-                                readOnlyAtFive,
-                                readOnlyAtThree,
-                                readOnlyAtSeven)))
+                readOnlyTransactionStore,
+                ImmutableList.of(
+                        twoToEight,
+                        readOnlyAtNine,
+                        fourToSix,
+                        readOnlyAtFive,
+                        readOnlyAtThree,
+                        readOnlyAtSeven)))
                 .containsExactly(
                         readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
     }
@@ -97,12 +100,12 @@ public void filterRemovesUncommittedTransactions() {
         FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
         FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
         assertThat(WitnessedTransactions.sortAndFilterTransactions(
-                        readOnlyTransactionStore,
-                        List.of(
-                                committedMaybeWitnessedTransaction,
-                                notCommittedTransaction,
-                                readOnlyAtFive,
-                                fourToSix)))
+                readOnlyTransactionStore,
+                List.of(
+                        committedMaybeWitnessedTransaction,
+                        notCommittedTransaction,
+                        readOnlyAtFive,
+                        fourToSix)))
                 .containsExactly(committedMaybeWitnessedTransaction.toFullyWitnessed(), readOnlyAtFive, fourToSix);
     }
 uau(749e80982ecd831eea5946cf02fd3c0ade574578}(sha(749e80982ecd831eea5946cf02fd3c0ade574578node_idEC_kwDOAjP5fdoAKDc0OWU4MDk4MmVjZDgzMWVlYTU5NDZjZjAyZmQzYzBhZGU1NzQ1Nzgcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-06-28T16:55:37Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-06-28T16:55:37ZumessageAutorelease 0.880.0

[skip ci]tree}(j (19b6b2e0c3933de1d11d77c1614e7236f364b328url`https://api.github.com/repos/palantir/atlasdb/git/trees/19b6b2e0c3933de1d11d77c1614e7236f364b328uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/749e80982ecd831eea5946cf02fd3c0ade574578
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmScZhAACgkQhbrR8ip7mDDbfQD/dO4UQ3atSqktA3n0D30LHTSk
gKHFqOHwjuIUQmwfm1sBANdoJvPQRfLxyaWJKgNpDUuv7iAD7GNxsDnculaSGu6v
=GW0L
-----END PGP SIGNATURE-----
payloadX0  tree 19b6b2e0c3933de1d11d77c1614e7236f364b328
parent ba7f5bae6c633558ec26a35e00cbbdddaef134c3
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1687971337 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1687971337 +0000

Autorelease 0.880.0

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/749e80982ecd831eea5946cf02fd3c0ade574578html_urlShttps://github.com/palantir/atlasdb/commit/749e80982ecd831eea5946cf02fd3c0ade574578comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/749e80982ecd831eea5946cf02fd3c0ade574578/commentsj }(loginsvc-autoreleaseidJ(j MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(j MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j! :https://api.github.com/users/svc-autorelease/subscriptionsj# 1https://api.github.com/users/svc-autorelease/orgsj% 2https://api.github.com/users/svc-autorelease/reposj' =https://api.github.com/users/svc-autorelease/events{/privacy}j) <https://api.github.com/users/svc-autorelease/received_eventsj+ Userj- uparents]}(j (ba7f5bae6c633558ec26a35e00cbbdddaef134c3j ^https://api.github.com/repos/palantir/atlasdb/commits/ba7f5bae6c633558ec26a35e00cbbdddaef134c3j Shttps://github.com/palantir/atlasdb/commit/ba7f5bae6c633558ec26a35e00cbbdddaef134c3uastats}(totalK 	additionsK 	deletionsK ufiles]}(j (a17f90ec5d7c8dabd4b8d110ace6016af8cfad9cfilename changelog/0.880.0/pr-6641.v2.ymlstatusrenamedjG K jH K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/749e80982ecd831eea5946cf02fd3c0ade574578/changelog%2F0.880.0%2Fpr-6641.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/749e80982ecd831eea5946cf02fd3c0ade574578/changelog%2F0.880.0%2Fpr-6641.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.880.0%2Fpr-6641.v2.yml?ref=749e80982ecd831eea5946cf02fd3c0ade574578previous_filename$changelog/@unreleased/pr-6641.v2.ymluau(666a7563a2ce558765e8b574ed7cb05e8a9a8bb8}(sha(666a7563a2ce558765e8b574ed7cb05e8a9a8bb8node_idEC_kwDOAjP5fdoAKDY2NmE3NTYzYTJjZTU1ODc2NWU4YjU3NGVkN2NiMDVlOGE5YThiYjgcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-03-06T15:46:45Zu	committer}(jd 
Ahmed Alouanejf aalouane@palantir.comjh 2023-03-06T15:46:45Zumessage not the time for the license nowtree}(j\ (9cb45d34ac97f61e1d94ba1be20a1ea76b9b73c9url`https://api.github.com/repos/palantir/atlasdb/git/trees/9cb45d34ac97f61e1d94ba1be20a1ea76b9b73c9ujt bhttps://api.github.com/repos/palantir/atlasdb/git/commits/666a7563a2ce558765e8b574ed7cb05e8a9a8bb8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQGCuUACgkQPlMHVIT1
yhr7Wwf+ORkwQfHrCgMzVjmK6/ppqPPPpAwjjqVh7LWKrGe8rU0uid3JVEHeoeMp
2hZbW9cIvLbRse2eUeIxfoFbyazfwSXzNyToaDvOrtYsN0HIoNx5g8Z0PTiuk9Xl
DMeRSfLQlEnICT3U4OPXX+mGyYHq53PDbA+DPMvz2j2KTPWFDa/UT2xu7OrDxzpb
tIKJDPJ+tiFFzqR/bGcA7GqFvOZRUwRSi1dtOSp/beGSHAXWa/eWBqz9CQKQwc3I
YpDVDJWH28ZtppoOaL4/S52p5HFC6twl/yur0uWBxBwitLLYaRL7cAVPQtBNrvjZ
NmoJC1G1hHqqt7nncn8deBfWG1/m6Q==
=Ez74
-----END PGP SIGNATURE-----payloadtree 9cb45d34ac97f61e1d94ba1be20a1ea76b9b73c9
parent 985af7ddf096eca0cab974ab5f5f6ae346ceb425
author Ahmed Alouane <aalouane@palantir.com> 1678117605 +0000
committer Ahmed Alouane <aalouane@palantir.com> 1678117605 +0000

not the time for the license now
uujt ^https://api.github.com/repos/palantir/atlasdb/commits/666a7563a2ce558765e8b574ed7cb05e8a9a8bb8html_urlShttps://github.com/palantir/atlasdb/commit/666a7563a2ce558765e8b574ed7cb05e8a9a8bb8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/666a7563a2ce558765e8b574ed7cb05e8a9a8bb8/commentsjb }(loginergo14idJj^ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jt #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujj }(j ergo14j Jj^ MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5jt #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j\ (985af7ddf096eca0cab974ab5f5f6ae346ceb425jt ^https://api.github.com/repos/palantir/atlasdb/commits/985af7ddf096eca0cab974ab5f5f6ae346ceb425j Shttps://github.com/palantir/atlasdb/commit/985af7ddf096eca0cab974ab5f5f6ae346ceb425uastats}(totalK	additionsK	deletionsK ufiles]}(j\ (d62ce6936a1622ad7cce29a0555e0b5dbabe2525filenamefatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraServerOriginTest.javastatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/666a7563a2ce558765e8b574ed7cb05e8a9a8bb8/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/666a7563a2ce558765e8b574ed7cb05e8a9a8bb8/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.java?ref=666a7563a2ce558765e8b574ed7cb05e8a9a8bb8patchX  @@ -1,3 +1,19 @@
+/*
+ * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package com.palantir.atlasdb.keyvalue.cassandra;
 
 import static org.assertj.core.api.Assertions.assertThat;uau(0183f8ac78689790a8ee83b877e3b10d6be52db5}(sha(0183f8ac78689790a8ee83b877e3b10d6be52db5node_idEC_kwDOAjP5fdoAKDAxODNmOGFjNzg2ODk3OTBhOGVlODNiODc3ZTNiMTBkNmJlNTJkYjU!      commit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T15:38:25Zu	committer}(jۺ 
Ahmed Alouanejݺ aalouane@palantir.comjߺ 2023-05-15T15:38:25Zumessage+timelockMigrationEteTest runs conditionallytree}(jӺ (5eea213dcbb6f4ad2363f3f74c83bc1a598be20burl`https://api.github.com/repos/palantir/atlasdb/git/trees/5eea213dcbb6f4ad2363f3f74c83bc1a598be20buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0183f8ac78689790a8ee83b877e3b10d6be52db5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiUfEACgkQPlMHVIT1
yhqnmgf/aazfGe+t3sH7B0TiPeXVopxX30UYS6Aw6ts+JRv8Biv4QSVCGccELtLg
5BnHOtXxnDiXNqv2IQbhkQXhz8j+hA/Jb+Gc/lb8icpvIpTDZRcauANBmVNfwO1s
vOnATi5Ex5IWfffrhtG4G7QuvhROGEllNb+QxPUP395+zSw209ZkFBtl2mEVa+Dl
vkTlOOdr2yxBhN3GIB0Dp6Tjdxa8xljmxC0cAJHiFpNdeJnJXzk2cgp7WoonQsOI
P7hhS4LhCyyxmQ3mdqQ+NfRP2OzYl/ze/DSk5jDa6r3UIKAoOHqxP04SThPcnDjO
hOTG8NeQpaCMvIb4lQGp4306lLxMWQ==
=FL1T
-----END PGP SIGNATURE-----payloadX
  tree 5eea213dcbb6f4ad2363f3f74c83bc1a598be20b
parent 19b62c179d41b87d35c7dca866b5e134cc05b906
author Ahmed Alouane <aalouane@palantir.com> 1684165105 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684165105 +0100

timelockMigrationEteTest runs conditionally
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/0183f8ac78689790a8ee83b877e3b10d6be52db5html_urlShttps://github.com/palantir/atlasdb/commit/0183f8ac78689790a8ee83b877e3b10d6be52db5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0183f8ac78689790a8ee83b877e3b10d6be52db5/commentsjٺ }(loginergo14idJjպ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j  Jjպ MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj	 :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j
 :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jӺ (19b62c179d41b87d35c7dca866b5e134cc05b906j ^https://api.github.com/repos/palantir/atlasdb/commits/19b62c179d41b87d35c7dca866b5e134cc05b906j Shttps://github.com/palantir/atlasdb/commit/19b62c179d41b87d35c7dca866b5e134cc05b906uastats}(totalK	additionsK	deletionsKufiles]}(jӺ (ffa70dc08570f118af6db8068edb983caaa185c3filename.circleci/config.ymlstatusmodifiedj5 Kj6 KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/0183f8ac78689790a8ee83b877e3b10d6be52db5/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/0183f8ac78689790a8ee83b877e3b10d6be52db5/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=0183f8ac78689790a8ee83b877e3b10d6be52db5patchXw  @@ -144,13 +144,26 @@ workflows:
       - test-suite:
           requires: [build]
           matrix:
+            alias: test-no-tl
             parameters:
-              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
+              # intentionally excluding 12 (TimeLock migration ETE test) from this collection
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13]
           filters:
             tags:
               only: /.*/
+      - test-suite:
+          requires: [build]
+          matrix:
+            alias: test-tl
+            parameters:
+              suite: [12]
+          filters:
+            branches:
+              only: /(tlmete.*|develop)/
+            tags:
+              only: /.*/
       - test:
-          requires: [test-suite]
+          requires: [test-tl, test-no-tl]
           filters:
             tags:
               only: /.*/uau(f91d0baae11da4e56a9b3b29b65a2b7207b8d6d7}(sha(f91d0baae11da4e56a9b3b29b65a2b7207b8d6d7node_idEC_kwDOAjP5fdoAKGY5MWQwYmFhZTExZGE0ZTU2YTliM2IyOWI2NWEyYjcyMDdiOGQ2ZDccommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-08-01T15:24:58Zu	committer}(jR Lucas MeirelesjT meireles31@msn.comjV 2023-08-01T15:24:58Zumessagecell count validator teststree}(jJ (326db77d82565038069ff546f75cbb7db793e748url`https://api.github.com/repos/palantir/atlasdb/git/trees/326db77d82565038069ff546f75cbb7db793e748ujb bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f91d0baae11da4e56a9b3b29b65a2b7207b8d6d7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmTJI8oACgkQJd22kJ7J
Giw+GAf9HOl3GT4ikhWjUiwsbnErxjlftKOKNSc1qmO4e8iUDSLthceR9NS/L0el
+x5BsjYwzmKkqjuRC2JrfH7NONrsGl7cjgve+UG1t68TZTgK2LzVBA4J9zvRhQNt
RNctsfreeQrrARpa52Uirx6PGuJmakonDdHkx/nJagM4l9Gx6zb/T01JJ63fGDQE
C7F6hpvZ4yVES7KZQSYnlS7ojDObCl3JAeFA3qmcE13Y1eq9Z4+RMtcia+lR3qgc
RsyxsLs7295MSfrSMto0jtr9aE5Fk0+m4xzdh6e29Lt8RgXW3AA+qAVy2jnkAXp4
Ihpg3VxMSfFnRFIBjscHFZt5ynYSPg==
=dD9r
-----END PGP SIGNATURE-----payloadtree 326db77d82565038069ff546f75cbb7db793e748
parent a42100a11fe15c1a606d08a3810b2c28f0677069
author Lucas Meireles <meireles31@msn.com> 1690903498 +0100
committer Lucas Meireles <meireles31@msn.com> 1690903498 +0100

cell count validator tests
uujb ^https://api.github.com/repos/palantir/atlasdb/commits/f91d0baae11da4e56a9b3b29b65a2b7207b8d6d7html_urlShttps://github.com/palantir/atlasdb/commit/f91d0baae11da4e56a9b3b29b65a2b7207b8d6d7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f91d0baae11da4e56a9b3b29b65a2b7207b8d6d7/commentsjP }(loginLucasIMEidJg jL MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jb %https://api.github.com/users/LucasIMEjp https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujX }(ju LucasIMEjw Jg jL MDQ6VXNlcjY3ODczMTE=jy 3https://avatars.githubusercontent.com/u/6787311?v=4j{ h5jb %https://api.github.com/users/LucasIMEjp https://github.com/LucasIMEj~ /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsj Userj uparents]}(jJ (a42100a11fe15c1a606d08a3810b2c28f0677069jb ^https://api.github.com/repos/palantir/atlasdb/commits/a42100a11fe15c1a606d08a3810b2c28f0677069jp Shttps://github.com/palantir/atlasdb/commit/a42100a11fe15c1a606d08a3810b2c28f0677069uastats}(totalK	additionsK	deletionsK ufiles]}(jJ (06c6b7e94772079e06f7fa22cd81981429cb58c1filenamepatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/expectations/CellCountValidatorTest.javastatusaddedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/f91d0baae11da4e56a9b3b29b65a2b7207b8d6d7/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FCellCountValidatorTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f91d0baae11da4e56a9b3b29b65a2b7207b8d6d7/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FCellCountValidatorTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FCellCountValidatorTest.java?ref=f91d0baae11da4e56a9b3b29b65a2b7207b8d6d7patchX
   @@ -0,0 +1,162 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl.expectations;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.keyvalue.api.cache.CacheValue;
+import com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.UnsafeArg;
+import java.nio.charset.StandardCharsets;
+import java.util.Map;
+import one.util.streamex.EntryStream;
+import org.junit.Test;
+
+public class CellCountValidatorTest {
+
+    @Test
+    public void testDontThrowIfFetchedLessCellsThanExpected() {
+        assertThatCode(() -> {
+                    CellCountValidator.validateFetchedLessOrEqualToExpected(1, Map.of());
+                    CellCountValidator.validateCacheAndGetNonEmptyValuesCount(1, Map.of());
+
+                    CellCountValidator.validateFetchedLessOrEqualToExpected(2, cellMapOf("foo", "bar"));
+                    CellCountValidator.validateCacheAndGetNonEmptyValuesCount(2, cacheCellMapOf("foo", "bar"));
+                })
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void testDontThrowIfFetchedCellsEqualToExpected() {
+        assertThatCode(() -> {
+                    CellCountValidator.validateFetchedLessOrEqualToExpected(0, Map.of());
+                    CellCountValidator.validateCacheAndGetNonEmptyValuesCount(0, Map.of());
+
+                    CellCountValidator.validateFetchedLessOrEqualToExpected(1, cellMapOf("foo", "bar"));
+                    CellCountValidator.validateCacheAndGetNonEmptyValuesCount(1, cacheCellMapOf("foo", "bar"));
+                })
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void testThrowsIfFetchedMoreCellsThanExpected() {
+        Map<Cell, byte[]> presentValues = cellMapOf("foo", "bar", "baz", "qux");
+        assertThatLoggableExceptionThrownBy(
+                        () -> CellCountValidator.validateFetchedLessOrEqualToExpected(1, presentValues))
+                .isInstanceOf(MoreCellsPresentThanExpectedException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("expectedNumberOfCells", 1L),
+                        SafeArg.of("numberOfCellsRetrieved", 2),
+                        UnsafeArg.of("retrievedCells", presentValues));
+
+        Map<Cell, CacheValue> cachedValues = toCached(presentValues);
+        assertThatLoggableExceptionThrownBy(
+                        () -> CellCountValidator.validateCacheAndGetNonEmptyValuesCount(1, cachedValues))
+                .isInstanceOf(MoreCellsPresentThanExpectedException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("expectedNumberOfCells", 1L),
+                        SafeArg.of("numberOfCellsRetrieved", 2),
+                        UnsafeArg.of("retrievedCells", presentValues));
+    }
+
+    @Test
+    public void testThrowsIfExpectingNegativeValue() {
+        Map<Cell, byte[]> presentValues = cellMapOf("foo", "bar", "baz", "qux");
+        assertThatLoggableExceptionThrownBy(
+                        () -> CellCountValidator.validateFetchedLessOrEqualToExpected(-1, presentValues))
+                .isInstanceOf(MoreCellsPresentThanExpectedException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("expectedNumberOfCells", -1L),
+                        SafeArg.of("numberOfCellsRetrieved", 2),
+                        UnsafeArg.of("retrievedCells", presentValues));
+
+        Map<Cell, CacheValue> cachedValues = toCached(presentValues);
+        assertThatLoggableExceptionThrownBy(
+                        () -> CellCountValidator.validateCacheAndGetNonEmptyValuesCount(-1, cachedValues))
+                .isInstanceOf(MoreCellsPresentThanExpectedException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("expectedNumberOfCells", -1L),
+                        SafeArg.of("numberOfCellsRetrieved", 2),
+                        UnsafeArg.of("retrievedCells", presentValues));
+    }
+
+    @Test
+    public void testEmptyCacheValuesDoesNotCountAgainstPresentCells() {
+        Map<Cell, CacheValue> cachedValues = Map.of(
+                Cell.create("foo".getBytes(StandardCharsets.UTF_8), "someColumn".getBytes(StandardCharsets.UTF_8)),
+                CacheValue.of("bar".getBytes(StandardCharsets.UTF_8)),
+                Cell.create("baz".getBytes(StandardCharsets.UTF_8), "someColumn".getBytes(StandardCharsets.UTF_8)),
+                CacheValue.empty());
+
+        assertThatCode(() -> CellCountValidator.validateCacheAndGetNonEmptyValuesCount(1, cachedValues))
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void testReturnsValueOfNonEmptyEntriesInCacheAfterValidation() {
+        Map<Cell, CacheValue> cachedValues = Map.of(
+                Cell.create("foo".getBytes(StandardCharsets.UTF_8), "someColumn".getBytes(StandardCharsets.UTF_8)),
+                CacheValue.of("bar".getBytes(StandardCharsets.UTF_8)),
+                Cell.create("foo2".getBytes(StandardCharsets.UTF_8), "someColumn".getBytes(StandardCharsets.UTF_8)),
+                CacheValue.of("bar2".getBytes(StandardCharsets.UTF_8)),
+                Cell.create("baz".getBytes(StandardCharsets.UTF_8), "someColumn".getBytes(StandardCharsets.UTF_8)),
+                CacheValue.empty());
+
+        assertThat(CellCountValidator.validateCacheAndGetNonEmptyValuesCount(2, cachedValues))
+                .isEqualTo(2L);
+    }
+
+    @Test
+    public void testThrowsIfMorePresentCachedCellsThanExpected() {
+        Map<Cell, byte[]> rawValues = cellMapOf("foo", "bar", "baz", "qux");
+        Map<Cell, CacheValue> cachedValues = toCached(rawValues);
+
+        assertThatLoggableExceptionThrownBy(
+                        () -> CellCountValidator.validateCacheAndGetNonEmptyValuesCount(1, cachedValues))
+                .isInstanceOf(MoreCellsPresentThanExpectedException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("expectedNumberOfCells", 1L),
+                        SafeArg.of("numberOfCellsRetrieved", 2),
+                        UnsafeArg.of("retrievedCells", rawValues));
+    }
+
+    private Map<Cell, byte[]> cellMapOf(String key, String value, String key2, String value2) {
+        return Map.of(
+                Cell.create(key.getBytes(StandardCharsets.UTF_8), "someColumn".getBytes(StandardCharsets.UTF_8)),
+                value.getBytes(StandardCharsets.UTF_8),
+                Cell.create(key2.getBytes(StandardCharsets.UTF_8), "someColumn".getBytes(StandardCharsets.UTF_8)),
+                value2.getBytes(StandardCharsets.UTF_8));
+    }
+
+    private Map<Cell, byte[]> cellMapOf(String key, String value) {
+        return Map.of(
+                Cell.create(key.getBytes(StandardCharsets.UTF_8), "someColumn".getBytes(StandardCharsets.UTF_8)),
+                value.getBytes(StandardCharsets.UTF_8));
+    }
+
+    private Map<Cell, CacheValue> cacheCellMapOf(String key, String value) {
+        return EntryStream.of(cellMapOf(key, value)).mapValues(CacheValue::of).toMap();
+    }
+
+    private Map<Cell, CacheValue> toCached(Map<Cell, byte[]> presentValues) {
+        return EntryStream.of(presentValues).mapValues(CacheValue::of).toMap();
+    }
+}
\ No newline at end of fileuau(0e4b32c14bf30002a47e9ce278c793f8ad06b779}(sha(0e4b32c14bf30002a47e9ce278c793f8ad06b779node_idEC_kwDOAjP5fdoAKDBlNGIzMmMxNGJmMzAwMDJhNDdlOWNlMjc4Yzc5M2Y4YWQwNmI3Nzkcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-16T11:56:37Zu	committer}(jɻ Lucas Meirelesj˻ meireles31@msn.comjͻ 2023-06-16T12:02:55ZumessageScreate copy of Sets difference so we don't get a size change after adding to resulttree}(j (0f44d05f3e4e1d6f6acfccfef483f6dfb5f30fe3url`https://api.github.com/repos/palantir/atlasdb/git/trees/0f44d05f3e4e1d6f6acfccfef483f6dfb5f30fe3ujٻ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0e4b32c14bf30002a47e9ce278c793f8ad06b779
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSMT28ACgkQJd22kJ7J
Giy85wf8Cwbp8rWg/yOj0JAC8eTLkEGi/yWkKfJq5VoNH7IuN/hh3SASOktHkhYm
IrEBDvG2nHjnnbALl2jbUc7EQRzrlQpNrQwwvFiMxYzflBcNLy3vEq3AWTsbM26H
epsQ6rBr4HlV7ggwjhZje9S6t9Ky7UebMOpU3CTGRxWi9qaRzWo59Bf8qckY4OZz
qApsQJDqhVHWcZ6aaH5G2U+jvlYUL3l1ybrf/GnuzsZWn4dP8D3sEuueKlbExzVx
rfNGyJOzvVZlWWt8qDnDgXCrogZYD8PHT2lMaDDJ35YTe6jYWvWd1MXvJU0/LP1p
NUNncvle8wGYYjeob9SaqQeAOh5mLg==
=1Eyv
-----END PGP SIGNATURE-----payloadX.  tree 0f44d05f3e4e1d6f6acfccfef483f6dfb5f30fe3
parent be1d44c05cfabc3a10c06c3ae704ac5baaa60083
author Lucas Meireles <meireles31@msn.com> 1686916597 +0100
committer Lucas Meireles <meireles31@msn.com> 1686916975 +0100

create copy of Sets difference so we don't get a size change after adding to result
uujٻ ^https://api.github.com/repos/palantir/atlasdb/commits/0e4b32c14bf30002a47e9ce278c793f8ad06b779html_urlShttps://github.com/palantir/atlasdb/commit/0e4b32c14bf30002a47e9ce278c793f8ad06b779comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0e4b32c14bf30002a47e9ce278c793f8ad06b779/commentsjǻ }(loginLucasIMEidJg jû MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jٻ %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujϻ }(j LucasIMEj Jg jû MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5jٻ %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsj Userj	 uparents]}(j (be1d44c05cfabc3a10c06c3ae704ac5baaa60083jٻ ^https://api.github.com/repos/palantir/atlasdb/commits/be1d44c05cfabc3a10c06c3ae704ac5baaa60083j Shttps://github.com/palantir/atlasdb/commit/be1d44c05cfabc3a10c06c3ae704ac5baaa60083uastats}(totalK	additionsK	deletionsKufiles]}(j (37901bf7b895e75d483234f3fa678c85f5884e3cfilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj# Kj$ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/0e4b32c14bf30002a47e9ce278c793f8ad06b779/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0e4b32c14bf30002a47e9ce278c793f8ad06b779/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=0e4b32c14bf30002a47e9ce278c793f8ad06b779patchXd  @@ -934,8 +934,10 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
             }
         }
 
-        // We don't need to read any cells that were written locally.
-        Set<Cell> cellsWithNoLocalWrites = Sets.difference(cells, result.keySet());
+        // We don't need to read any cells that were written locally. Making an immutable copy because otherwise adding
+        // values to the result map would prevent us from calculating the correct size for
+        // allPossibleCellsReadAndNonEmpty, since Sets.difference gives us a live view.
+        Set<Cell> cellsWithNoLocalWrites = ImmutableSet.copyOf(Sets.difference(cells, result.keySet()));
         return Futures.transform(
                 getFromKeyValueService(tableRef, cellsWithNoLocalWrites, asyncKeyValueService, asyncTransactionService),
                 fromKeyValueService -> {uau(0a131485040a4ba563d7b5f299483e3f123550a6}(sha(0a131485040a4ba563d7b5f299483e3f123550a6node_idEC_kwDOAjP5fdoAKDBhMTMxNDg1MDQwYTRiYTU2M2Q3YjVmMjk5NDgzZTNmMTIzNTUwYTYcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-20T16:19:28Zu	committer}(j@ Lucas MeirelesjB meireles31@msn.comjD 2023-07-20T16:19:28Zumessagerev apitree}(j8 (5c41681a8056c17e6a714e8baabc0b313bd95775url`https://api.github.com/repos/palantir/atlasdb/git/trees/5c41681a8056c17e6a714e8baabc0b313bd95775ujP bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0a131485040a4ba563d7b5f299483e3f123550a6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS5XpAACgkQJd22kJ7J
GiyGDAf/ZpjD41OcnFYwZvnbN30pwsuaKTaupqlMwM8KMfeipd8yXIhx1Lxpy1IX
VEUIVN7Rv5jCyshOef79gm29LJKcv6ONY4AHg1CitYG5ULBErJGl4f5dBkIcTDEQ
aYzkUu7xavy1LXl5MyNodJZRE+RpsQrwSZeRWt5NRdKi2v+8TyHIvoxGa/GlL53J
ndiDzwrns4YIgyuFEv430J/QaTFfRDLo0jTu4v+d+EyYaE4fNfh97MdTseP9LiPF
TwbsXZYl/+ZHv4JHi2iKZ/N35aKwWu1IVQQdm9qBsm1CtBQmH56QGi3W9k1s7600
hmIBTHgYEhesH8XpASoAaJJ8D/w9AA==
=gko9
-----END PGP SIGNATURE-----payloadtree 5c41681a8056c17e6a714e8baabc0b313bd95775
parent 34c0b2546d2418b494455534e99a6e60e5f05058
author Lucas Meireles <meireles31@msn.com> 1689869968 +0100
committer Lucas Meireles <meireles31@msn.com> 1689869968 +0100

rev api
uujP ^https://api.github.com/repos/palantir/atlasdb/commits/0a131485040a4ba563d7b5f299483e3f123550a6html_urlShttps://github.com/palantir/atlasdb/commit/0a131485040a4ba563d7b5f299483e3f123550a6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0a131485040a4ba563d7b5f299483e3f123550a6/commentsj> }(loginLucasIMEidJg j: MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jP %https://api.github.com/users/LucasIMEj^ https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujF }(jc LucasIMEje Jg j: MDQ6VXNlcjY3ODczMTE=jg 3https://avatars.githubusercontent.com/u/6787311?v=4ji h5jP %https://api.github.com/users/LucasIMEj^ https://github.com/LucasIMEjl /https://api.github.com/users/LucasIME/followersjn <https://api.github.com/users/LucasIME/following{/other_user}jp 5https://api.github.com/users/LucasIME/gists{/gist_id}jr <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jt 3https://api.github.com/users/LucasIME/subscriptionsjv *https://api.github.com/users/LucasIME/orgsjx +https://api.github.com/users/LucasIME/reposjz 6https://api.github.com/users/LucasIME/events{/privacy}j| 5https://api.github.com/users/LucasIME/received_eventsj~ Userj uparents]}(j8 (34c0b2546d2418b494455534e99a6e60e5f05058jP ^https://api.github.com/repos/palantir/atlasdb/commits/34c0b2546d2418b494455534e99a6e60e5f05058j^ Shttps://github.com/palantir/atlasdb/commit/34c0b2546d2418b494455534e99a6e60e5f05058uastats}(totalK	additionsK	deletionsK ufiles]}(j8 (e8dad2007d361cfe4efd2ac8e365e1da757b4180filename.palantir/revapi.ymlstatusmodifiedj Kj K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/0a131485040a4ba563d7b5f299483e3f123550a6/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/0a131485040a4ba563d7b5f299483e3f123550a6/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=0a131485040a4ba563d7b5f299483e3f123550a6patchXU  @@ -135,3 +135,22 @@ acceptedBreaks:
       new: "method java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell, byte[]> com.palantir.atlasdb.transaction.api.Transaction::getWithExpectedNumberOfCells(com.palantir.atlasdb.keyvalue.api.TableReference,\
         \ java.util.Set<com.palantir.atlasdb.keyvalue.api.Cell>, int)"
       justification: "Just introducing new Get API"
+  "0.885.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.method.addedToInterface"
+      new: "method com.google.common.util.concurrent.ListenableFuture<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
+        \ byte[]>> com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCache::getAsyncWithCachedRef(com.palantir.atlasdb.keyvalue.api.TableReference,\
+        \ java.util.Set<com.palantir.atlasdb.keyvalue.api.Cell>, java.util.function.Function<com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCache.CacheLookupResult,\
+        \ com.google.common.util.concurrent.ListenableFuture<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
+        \ byte[]>>>)"
+      justification: "just adding a new get method"
+    - code: "java.method.addedToInterface"
+      new: "method java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell, byte[]> com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCache::getWithCachedRef(com.palantir.atlasdb.keyvalue.api.TableReference,\
+        \ java.util.Set<com.palantir.atlasdb.keyvalue.api.Cell>, java.util.function.Function<com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCache.CacheLookupResult,\
+        \ com.google.common.util.concurrent.ListenableFuture<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
+        \ byte[]>>>)"
+      justification: "just adding a new get method"
+    - code: "java.method.addedToInterface"
+      new: "method java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell, byte[]> com.palantir.atlasdb.transaction.api.Transaction::getWithExpectedNumberOfCells(com.palantir.atlasdb.keyvalue.api.TableReference,\
+        \ java.util.Set<com.palantir.atlasdb.keyvalue.api.Cell>, long)"
+      justification: "just adding a new get method"uau(6713dfb18da46c6c6a12b687adb7c3d0f6a05080}(sha(6713dfb18da46c6c6a12b687adb7c3d0f6a05080node_idEC_kwDOAjP5fdoAKDY3MTNkZmIxOGRhNDZjNmM2YTEyYjY4N2FkYjdjM2QwZjZhMDUwODAcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-27T12:19:26Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-06-27T12:19:26ZumessageDecrease max batch size to 1000tree}(j (1a89e0672bdf3b125835ff23730ae9c423cdc138url`https://api.github.com/repos/palantir/atlasdb/git/trees/1a89e0672bdf3b125835ff23730ae9c423cdc138ujǼ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6713dfb18da46c6c6a12b687adb7c3d0f6a05080
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSa084ACgkQmPPOpKR4
XS3sPAf/fuOq0OTsmOGq6RSW5+tYcW5TXfU+bwXb6iva0Eooa1mPoCKOj9SKCGIt
5Hc+yrpy9gNpj7PWpOFUVXmj8JgaVMn/sjaecIUtIIb4HkCFmPDTfKvrRL50u6hz
IghCuYL9bEjtMDPlb+WyRPCKBO5MQukJAwpSY7Q29lkR7aT56L/rXloHB0zh/QSS
surKzogmqzZ+HVuimtkoFPCyF8na0UY4I2pk5OJDWZbyVI0w7/+XazIQguA+fSMi
G/nK78qxg5ZsN3h09f5KLQkkkqvLhe/jjrNz9a4mMr4l4zl9qM3qS42QqLaWwtKW
9HOwt2kgICKNXbbZMr6VGJEFHPTK9Q==
=d+2d
-----END PGP SIGNATURE-----payloadtree 1a89e0672bdf3b125835ff23730ae9c423cdc138
parent 613e115d909748315adbea905ad912518b569b38
author Sam Kramer <skramer@palantir.com> 1687868366 +0100
committer Sam Kramer <skramer@palantir.com> 1687868366 +0100

Decrease max batch size to 1000
uujǼ ^https://api.github.com/repos/palantir/atlasdb/commits/6713dfb18da46c6c6a12b687adb7c3d0f6a05080html_urlShttps://github.com/palantir/atlasdb/commit/6713dfb18da46c6c6a12b687adb7c3d0f6a05080comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6713dfb18da46c6c6a12b687adb7c3d0f6a05080/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jǼ 'https://api.github.com/users/Sam-Kramerjռ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(jڼ 
Sam-Kramerjܼ J^2_ j MDQ6VXNlcjYyMzg4MTQ=j޼ 3https://avatars.githubusercontent.com/u/6238814?v=4j h5jǼ 'https://api.github.com/users/Sam-Kramerjռ https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (613e115d909748315adbea905ad912518b569b38jǼ ^https://api.github.com/repos/palantir/atlasdb/commits/613e115d909748315adbea905ad912518b569b38jռ Shttps://github.com/palantir/atlasdb/commit/613e115d909748315adbea905ad912518b569b38uastats}(totalK	additionsK	deletionsKufiles]}(j (a35a51367fd9982d1e79214892ec9f3f93ca640dfilenamehatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIterator.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/6713dfb18da46c6c6a12b687adb7c3d0f6a05080/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6713dfb18da46c6c6a12b687adb7c3d0f6a05080/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.java?ref=6713dfb18da46c6c6a12b687adb7c3d0f6a05080patchX$  @@ -17,7 +17,6 @@
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterators;
-import com.palantir.atlasdb.AtlasDbPerformanceConstants;
 import com.palantir.common.base.ClosableIterator;
 import com.palantir.common.base.ClosableIterators;
 import com.palantir.logsafe.Preconditions;
@@ -31,6 +30,7 @@
 
 public class BatchSizeIncreasingIterator<T> implements Closeable {
     private static final SafeLogger log = SafeLoggerFactory.get(BatchSizeIncreasingIterator.class);
+    private static final int MAX_BATCH_SIZE = 1000;
 
     private final int originalBatchSize;
     private final BatchProvider<T> batchProvider;
@@ -72,7 +72,7 @@ int getBestBatchSize() {
             batchSize = Math.min(
                     (long) Math.ceil(originalBatchSize * (numReturned / (double) numNotDeleted)), maxNewBatchSize);
         }
-        return (int) Math.min(batchSize, AtlasDbPerformanceConstants.MAX_BATCH_SIZE);
+        return (int) Math.min(batchSize, MAX_BATCH_SIZE);
     }
 
     private void updateResultsIfNeeded() {uau(ea424addc9aab4c74bed2473899379d2f0e2569e}(sha(ea424addc9aab4c74bed2473899379d2f0e2569enode_idEC_kwDOAjP5fdoAKGVhNDI0YWRkYzlhYWI0Yzc0YmVkMjQ3Mzg5OTM3OWQyZjBlMjU2OWUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-15T14:31:04Zu	committer}(j. 
Sam Kramerj0 skramer@palantir.comj2 2023-05-15T14:31:04Zumessagetone down buggyifytree}(j& (aaae8435a4a6a2cfa6a107969838ec70bf9ec2b0url`https://api.github.com/repos/palantir/atlasdb/git/trees/aaae8435a4a6a2cfa6a107969838ec70bf9ec2b0uj> bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ea424addc9aab4c74bed2473899379d2f0e2569e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRiQikACgkQmPPOpKR4
XS3QZQf8DJp+9PgnwpbvT9vTnK5fRRW88QFKVf9iO+0XLDYgu4tI3lb0DuXCkJNY
cfV9DApI9/Xb65Ei67iq7HvL32fuMk2uGxn1cq1HyzqumRxH5ngEj2vmQUq3n4WE
fyX6+6M4nGh4Sl0REMfe5oywsMmjhDM9hkL+B4XB5hDTcZ+nG1ii4cOVs8mWxs2o
S3DA0Iqchb//gjaWVsyMYsZ66zRWCVnxH0Cfwaay4ZZ/WL4lvKpkcLGfFCjQI8R8
C79+ZMxfHZhF3cvhStd2jICyvI7yosTsRh41N4i5MnWN+yPci5+G4eUxiCPVVRjs
Ps1M5wxL+zcirXQAmixJApWYZUWptw==
=A3uy
-----END PGP SIGNATURE-----payloadtree aaae8435a4a6a2cfa6a107969838ec70bf9ec2b0
parent e45e38fcb00916552ae4ab6fffcc4276b8256363
author Sam Kramer <skramer@palantir.com> 1684161064 +0100
committer Sam Kramer <skramer@palantir.com> 1684161064 +0100

tone down buggyify
uuj> ^https://api.github.com/repos/palantir/atlasdb/commits/ea424addc9aab4c74bed2473899379d2f0e2569ehtml_urlShttps://github.com/palantir/atlasdb/commit/ea424addc9aab4c74bed2473899379d2f0e2569ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ea424addc9aab4c74bed2473899379d2f0e2569e/commentsj, }(login
Sam-KrameridJ^2_ j( MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j> 'https://api.github.com/users/Sam-KramerjL https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj4 }(jQ 
Sam-KramerjS J^2_ j( MDQ6VXNlcjYyMzg4MTQ=jU 3https://avatars.githubusercontent.com/u/6238814?v=4jW h5j> 'https://api.github.com/users/Sam-KramerjL https://github.com/Sam-KramerjZ 1https://api.github.com/users/Sam-Kramer/followersj\ >https://api.github.com/users/Sam-Kramer/following{/other_user}j^ 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j` >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jb 5https://api.github.com/users/Sam-Kramer/subscriptionsjd ,https://api.github.com/users/Sam-Kramer/orgsjf -https://api.github.com/users/Sam-Kramer/reposjh 8https://api.github.com/users/Sam-Kramer/events{/privacy}jj 7https://api.github.com/users/Sam-Kramer/received_eventsjl Userjn uparents]}(j& (e45e38fcb00916552ae4ab6fffcc4276b8256363j> ^https://api.github.com/repos/palantir/atlasdb/commits/e45e38fcb00916552ae4ab6fffcc4276b8256363jL Shttps://github.com/palantir/atlasdb/commit/e45e38fcb00916552ae4ab6fffcc4276b8256363uastats}(totalK	additionsK	deletionsKufiles]}(j& (af12c19de06d35224c14616daa2bc0d54099b189filenameNlock-api/src/main/java/com/palantir/lock/client/UnreliableTimeLockService.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ea424addc9aab4c74bed2473899379d2f0e2569e/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ea424addc9aab4c74bed2473899379d2f0e2569e/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.java?ref=ea424addc9aab4c74bed2473899379d2f0e2569epatchX  @@ -95,7 +95,7 @@ public long getImmutableTimestamp() {
     @Override
     public LockResponse lock(LockRequest request) {
         LockResponse response = delegate.lock(request);
-        buggify.maybe(0.25).run(() -> {
+        buggify.maybe(0.05).run(() -> {
             log.info("BUGGIFY: Unlocking lock token {} after acquiring", SafeArg.of("token", response.getToken()));
             delegate.unlock(Set.of(response.getToken()));
         });
@@ -105,7 +105,7 @@ public LockResponse lock(LockRequest request) {
     @Override
     public LockResponse lock(LockRequest lockRequest, ClientLockingOptions options) {
         LockResponse response = delegate.lock(lockRequest, options);
-        buggify.maybe(0.25).run(() -> {
+        buggify.maybe(0.05).run(() -> {
             log.info("BUGGIFY: Unlocking lock token {} after acquiring", SafeArg.of("token", response.getToken()));
             delegate.unlock(Set.of(response.getToken()));
         });
@@ -120,7 +120,7 @@ public WaitForLocksResponse waitForLocks(WaitForLocksRequest request) {
     @Override
     public Set<LockToken> refreshLockLeases(Set<LockToken> tokens) {
         Set<LockToken> tokensToRefresh = tokens.stream()
-                .filter(_token -> !buggify.maybe(0.10).asBoolean())
+                .filter(_token -> !buggify.maybe(0.025).asBoolean())
                 .collect(Collectors.toSet());
         Set<LockToken> tokensToUnlock = Sets.difference(tokens, tokensToRefresh);
         if (!tokensToUnlock.isEmpty()) {uau(2bb657238bc800d98119bd67cf74b0488cb21362}(sha(2bb657238bc800d98119bd67cf74b0488cb21362node_idEC_kwDOAjP5fdoAKDJiYjY1NzIzOGJjODAwZDk4MTE5YmQ2N2NmNzRiMDQ4OGNiMjEzNjIcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-05T18:00:46Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-06-05T18:00:46ZumessageEmpty-Commit to trigger CItree}(j (d69d3cd900c8b48a845f5fa053156294039f4bbfurl`https://api.github.com/repos/palantir/atlasdb/git/trees/d69d3cd900c8b48a845f5fa053156294039f4bbfuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2bb657238bc800d98119bd67cf74b0488cb21362
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmR+Is4ACgkQmF9s0kaF
Iw2prAf/fgcbPIUJLR1SYUkZ+uWSO9Lw7zqowL9QusObrG9velkqsAp/2YabuxzD
ynirPK+9wXDLYCLMyT+tFkOL6Lld5vppi5WNYeeEfY7eN3L39AaBwhDWTtqKpnm4
f/wV3FhMbyzklnoyPlq3ELqvooHiqDcmKPS7RbV42gbD2Vb48sok/7sHETRwYt0E
YvN3iVoGsmnwzRCF+iq3X1M89q0oifKn3Z8GgZetCg1VTEcJSoIjggxNsFRceCff
32uPhCjksi4AJgdODTSZW6NAT2I9IRuobO+rieM1wGty3STjebytGTfWnfOByQCV
KP5o7PC+bNMZsZoa2QBTRcVIgDUFEg==
=yua6
-----END PGP SIGNATURE-----payloadtree d69d3cd900c8b48a845f5fa053156294039f4bbf
parent 9106838137afc2dd4618db1c4237b7b24a7bf8cf
author Tom Papke <tpapke@palantir.com> 1685988046 +0100
committer Tom Papke <tpapke@palantir.com> 1685988046 +0100

Empty-Commit to trigger CI
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/2bb657238bc800d98119bd67cf74b0488cb21362html_urlShttps://github.com/palantir/atlasdb/commit/2bb657238bc800d98119bd67cf74b0488cb21362comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2bb657238bc800d98119bd67cf74b0488cb21362/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschejý https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(jȽ 	Toemmschejʽ Jboj MDQ6VXNlcjQzNjc1NDkwj̽ 4https://avatars.githubusercontent.com/u/43675490?v=4jν h5j &https://api.github.com/users/Toemmschejý https://github.com/Toemmschejѽ 0https://api.github.com/users/Toemmsche/followersjӽ =https://api.github.com/users/Toemmsche/following{/other_user}jս 6https://api.github.com/users/Toemmsche/gists{/gist_id}j׽ =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jٽ 4https://api.github.com/users/Toemmsche/subscriptionsj۽ +https://api.github.com/users/Toemmsche/orgsjݽ ,https://api.github.com/users/Toemmsche/reposj߽ 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(j (9106838137afc2dd4618db1c4237b7b24a7bf8cfj ^https://api.github.com/repos/palantir/atlasdb/commits/9106838137afc2dd4618db1c4237b7b24a7bf8cfjý Shttps://github.com/palantir/atlasdb/commit/9106838137afc2dd4618db1c4237b7b24a7bf8cfuastats}(totalK 	additionsK 	deletionsK ufiles]u(be7fdf1a9b6cc94c4772299faf32b72918403e65}(sha(be7fdf1a9b6cc94c4772299faf32b72918403e65node_idEC_kwDOAjP5fdoAKGJlN2ZkZjFhOWI2Y2M5NGM0NzcyMjk5ZmFmMzJiNzI5MTg0MDNlNjUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-05T10:28:24Zu	committer}(j
 Jeremy Kongj jkong@palantir.comj 2023-07-05T10:28:24Zumessage(semantic merge conflicts are unfortunatetree}(j (43bdb7eb3f7c925ea1422bf2af058ebd86c3b41aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/43bdb7eb3f7c925ea1422bf2af058ebd86c3b41auj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/be7fdf1a9b6cc94c4772299faf32b72918403e65
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSlRcgACgkQTLdFKain
zjyphAf/RuqHxKdOPE8wOxkrJOyd7+Y+YO29qriCuZR9MOmzOjX4FlRLitGHU3hq
VrCbPobN4fc8ZOda35YlouVfl3HfIt7WWtvrPO1Gaf1VxH8GTsRWA9pZ0bOPvw4P
BO33JeSX+frXSWvnpaLknIEJWLIrN2UO05uM+rFkoUVA3E8b7WGlhwTOmGUOSniB
gh+MdAcD+Kz2Bb2c40yRHynjjGYcDTTBzHL8jvKO7UYlq0w2hBTe36R7L1RlUcO6
noNKxNUpAh/AVh87q6iM+UJoy2w3xcZhtdcFqqy3sbEdDs3ux8qa7Lnr2FFzI8em
wU44zc5XuYqhval0y5kZHDEmGctVaw==
=I+9N
-----END PGP SIGNATURE-----payloadtree 43bdb7eb3f7c925ea1422bf2af058ebd86c3b41a
parent 4a0c61b4eec7fbef029f1a223a84f1acf57cb6ac
author Jeremy Kong <jkong@palantir.com> 1688552904 +0100
committer Jeremy Kong <jkong@palantir.com> 1688552904 +0100

semantic merge conflicts are unfortunate
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/be7fdf1a9b6cc94c4772299faf32b72918403e65html_urlShttps://github.com/palantir/atlasdb/commit/be7fdf1a9b6cc94c4772299faf32b72918403e65comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/be7fdf1a9b6cc94c4772299faf32b72918403e65/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j+ https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j0 
jeremyk-91j2 JZ j MDQ6VXNlcjU5NTU1MTA=j4 3https://avatars.githubusercontent.com/u/5955510?v=4j6 h5j 'https://api.github.com/users/jeremyk-91j+ https://github.com/jeremyk-91j9 1https://api.github.com/users/jeremyk-91/followersj; >https://api.github.com/users/jeremyk-91/following{/other_user}j= 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j? >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jA 5https://api.github.com/users/jeremyk-91/subscriptionsjC ,https://api.github.com/users/jeremyk-91/orgsjE -https://api.github.com/users/jeremyk-91/reposjG 8https://api.github.com/users/jeremyk-91/events{/privacy}jI 7https://api.github.com/users/jeremyk-91/received_eventsjK UserjM uparents]}(j (4a0c61b4eec7fbef029f1a223a84f1acf57cb6acj ^https://api.github.com/repos/palantir/atlasdb/commits/4a0c61b4eec7fbef029f1a223a84f1acf57cb6acj+ Shttps://github.com/palantir/atlasdb/commit/4a0c61b4eec7fbef029f1a223a84f1acf57cb6acuastats}(totalK
	additionsK	deletionsKufiles]}(j (7dac3dbbaecbe0ab005842c464dc318c4e189bd2filenamelatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javastatusmodifiedjg Kjh KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/be7fdf1a9b6cc94c4772299faf32b72918403e65/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/be7fdf1a9b6cc94c4772299faf32b72918403e65/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=be7fdf1a9b6cc94c4772299faf32b72918403e65patchX	  @@ -198,7 +198,8 @@ public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
         WitnessedSingleCellReadTransactionAction readWitness = WitnessedSingleCellReadTransactionAction.of(
                 TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
         WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
-        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {
+        }))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Expected to find a read of the summary row")
                 .hasExactlyArgs(SafeArg.of("actions", ImmutableList.of(readWitness)));
@@ -212,7 +213,8 @@ public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCor
                 WitnessedSingleCellReadTransactionAction.of(
                         TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
         WorkflowHistory history = getWorkflowHistory(actions);
-        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {
+        }))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Expected to find a read of a corresponding normal row")
                 .hasExactlyArgs(SafeArg.of("actions", actions));
@@ -276,11 +278,11 @@ private ImmutableWorkflowHistory getWorkflowHistory(List<WitnessedTransactionAct
     private static List<WitnessedTransactionAction> getReadWitnessesForSingleTransaction(
             int columnIndex, Optional<Integer> summaryValue, Optional<Integer> primaryValue) {
         return ImmutableList.of(
-                WitnessedReadTransactionAction.of(
+                WitnessedSingleCellReadTransactionAction.of(
                         TABLE_NAME,
                         ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, columnIndex),
                         summaryValue),
-                WitnessedReadTransactionAction.of(
+                WitnessedSingleCellReadTransactionAction.of(
                         TABLE_NAME,
                         ImmutableWorkloadCell.of(columnIndex, TransientRowsWorkflows.COLUMN),
                         primaryValue));uau(dba735d6da5f1d784cff684a79928bc41cede084}(sha(dba735d6da5f1d784cff684a79928bc41cede084node_idEC_kwDOAjP5fdoAKGRiYTczNWQ2ZGE1ZjFkNzg0Y2ZmNjg0YTc5OTI4YmM0MWNlZGUwODQcommit}(author}(nameTom Petraccaemail"tpetracca@users.noreply.github.comdate2023-08-09T20:39:41Zu	committer}(j GitHubj noreply@github.comj 2023-08-09T20:39:41ZumessageXignore LockWatchValueIT#valueStressTest (#6700)

ignore LockWatchValueIT#valueStressTesttree}(j| (e864a767f470f64fe38685335a499dfbf1979e28url`https://api.github.com/repos/palantir/atlasdb/git/trees/e864a767f470f64fe38685335a499dfbf1979e28uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/dba735d6da5f1d784cff684a79928bc41cede084
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk0/mNCRBK7hj4Ov3rIwAAE7oIAD6kQTzu/R7cGpp8sXP0J+vW
s9uaFhiG2PGEMMqKapvb8hQLWo2Re5B3gOz3120aZ49C4TSRz6eRfQNm0wE1Ihu+
PEs8Gr4vDXplpkvTNsPnFLPHhjN+VCHzMrRi7mDnF8jrzVbePu9b+OAp7otB+QRN
SE1up76sVlzrzY7zJslghX62exysHZwLUsotfzIo/yhJ0prj8zU0UPOdMI0wEp60
DtgDjj9Nj6Oxrf3HoX5zyGCUstVEwl0+z+Tk9jZVlTnPLHoxjFWSkzXdZ3FViwA2
57cayivwB0+cRmj8hV9BNeC5BfYIEHRcRDTht94WyN3HRhyIVtCF52/9C2T2Qkc=
=MZva
-----END PGP SIGNATURE-----
payloadX9  tree e864a767f470f64fe38685335a499dfbf1979e28
parent fab864f4c86356e3a42204c23dd1769433f4251b
author Tom Petracca <tpetracca@users.noreply.github.com> 1691613581 -0400
committer GitHub <noreply@github.com> 1691613581 +0000

ignore LockWatchValueIT#valueStressTest (#6700)

ignore LockWatchValueIT#valueStressTest
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/dba735d6da5f1d784cff684a79928bc41cede084html_urlShttps://github.com/palantir/atlasdb/commit/dba735d6da5f1d784cff684a79928bc41cede084comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/dba735d6da5f1d784cff684a79928bc41cede084/commentsj }(login	tpetraccaidJ& j~ MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5j &https://api.github.com/users/tpetraccaj https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminuj }(j web-flowj J/j~ MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj¾ Userjľ uparents]}(j| (fab864f4c86356e3a42204c23dd1769433f4251bj ^https://api.github.com/repos/palantir/atlasdb/commits/fab864f4c86356e3a42204c23dd1769433f4251bj Shttps://github.com/palantir/atlasdb/commit/fab864f4c86356e3a42204c23dd1769433f4251buastats}(totalK	additionsK	deletionsK ufiles]}(j| (c3eb030b1993c993cb918a875427696a63cd6c87filenamectimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchValueIntegrationTest.javastatusmodifiedj޾ Kj߾ K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/dba735d6da5f1d784cff684a79928bc41cede084/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/dba735d6da5f1d784cff684a79928bc41cede084/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.java?ref=dba735d6da5f1d784cff684a79928bc41cede084patchXq  @@ -71,6 +71,7 @@
 import java.util.stream.IntStream;
 import org.junit.Before;
 import org.junit.ClassRule;
+import org.junit.Ignore;
 import org.junit.Test;
 import org.junit.rules.RuleChain;
 import org.junit.rules.TestRule;
@@ -545,6 +546,8 @@ public void lateAbortingTransactionDoesNotFlushValuesToCentralCache() {
         });
     }
 
+    @Ignore
+    // TODO(#6699): make this test less flakey before re-enabling
     @Test
     // The test fails when trying to cache a value that is currently locked.
     // The open question is whether this _should_ fail when there is a locked value being cached on top of, or ifuau(5a28411c8bd2a909eadc11ed58c49121eaeffad3}(sha(5a28411c8bd2a909eadc11ed58c49121eaeffad3node_idEC_kwDOAjP5fdoAKDVhMjg0MTFjOGJkMmE5MDllYWRjMTFlZDU4YzQ5MTIxZWFlZmZhZDMcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-01T18:21:30Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-01T18:21:30Zumessage
simulate failtree}(j (24213159c79582cb8aed75821e275eb43c444498url`https://api.github.com/repos/palantir/atlasdb/git/trees/24213159c79582cb8aed75821e275eb43c444498uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5a28411c8bd2a909eadc11ed58c49121eaeffad3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRQAyoACgkQPlMHVIT1
yhrmjQf/R8GIUISEQTP1V7kuR80wMOawxHlVbVaoOJCh/oDwlxAj9ZIQ+xZcVXGD
udeq0lo7dloFWcsZ4kjKkx9E9dRCJbo+zli5PAtxXaWOoy7PXLHb8/P998eYDHT6
XKJelWTC6jaa8JGk5DPO/1yvqjz+H6+C6goERWxn5c5pdUe4CV39BZPcxyj6CaFJ
R3Txm5N84pD6wgkZ8b39eMy7QoOB65D54MLsYI1FjYZpsCET0laPuFgi80H83g5G
EsVkxmOBNtasOSrPFmU8BqF9IzFR8I00hYJhf3Hvpox/3VVYZz4s7EcwVWxpH1Yi
g787izs8o8v9zTSYlkLJClNsC/z4QQ==
=5BM0
-----END PGP SIGNATURE-----payloadtree 24213159c79582cb8aed75821e275eb43c444498
parent 40b90784b46c7a9555697659d7ea9b29b0ed4d25
author Ahmed Alouane <aalouane@palantir.com> 1682965290 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682965290 +0100

simulate fail
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/5a28411c8bd2a909eadc11ed58c49121eaeffad3html_urlShttps://github.com/palantir/atlasdb/commit/5a28411c8bd2a909eadc11ed58c49121eaeffad3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5a28411c8bd2a909eadc11ed58c49121eaeffad3/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j  Jj MDQ6VXNlcjMwOTAzNzM2j" 4https://avatars.githubusercontent.com/u/30903736?v=4j$ h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j' -https://api.github.com/users/ergo14/followersj) :https://api.github.com/users/ergo14/following{/other_user}j+ 3https://api.github.com/users/ergo14/gists{/gist_id}j- :https://api.github.com/users/ergo14/starred{/owner}{/repo}j/ 1https://api.github.com/users/ergo14/subscriptionsj1 (https://api.github.com/users/ergo14/orgsj3 )https://api.github.com/users/ergo14/reposj5 4https://api.github.com/users/ergo14/events{/privacy}j7 3https://api.github.com/users/ergo14/received_eventsj9 Userj; uparents]}(j (40b90784b46c7a9555697659d7ea9b29b0ed4d25j ^https://api.github.com/repos/palantir/atlasdb/commits/40b90784b46c7a9555697659d7ea9b29b0ed4d25j Shttps://github.com/palantir/atlasdb/commit/40b90784b46c7a9555697659d7ea9b29b0ed4d25uastats}(totalK	additionsK	deletionsK ufiles]}(j (7f8acef4dead0fec74f5f2c47b257bb8ecc7219efilenameratlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/metrics/TargetedSweepMetricPublicationFilterTest.javastatusmodifiedjU KjV K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/5a28411c8bd2a909eadc11ed58c49121eaeffad3/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fmetrics%2FTargetedSweepMetricPublicationFilterTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5a28411c8bd2a909eadc11ed58c49121eaeffad3/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fmetrics%2FTargetedSweepMetricPublicationFilterTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fmetrics%2FTargetedSweepMetricPublicationFilterTest.java?ref=5a28411c8bd2a909eadc11ed58c49121eaeffad3patchX  @@ -62,6 +62,11 @@ public void shouldBePublishedAfterWritingManyValues() {
         assertThat(filter.shouldPublish()).isTrue();
     }
 
+    @Test
+    public void fakeTest() {
+        assertThat(1 + 5).isEqualTo(7);
+    }
+
     @Test
     public void shouldBePublishedIfFarBehind() {
         millisSinceLastSweptTs.set(TargetedSweepMetricPublicationFilter.MINIMUM_STALE_DURATION.toMillis());uau(e593fe14c59329b0a4211a4ff7285d63c906f371}(sha(e593fe14c59329b0a4211a4ff7285d63c906f371node_idEC_kwDOAjP5fdoAKGU1OTNmZTE0YzU5MzI5YjBhNDIxMWE0ZmY3Mjg1ZDYzYzkwNmYzNzEcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-01T22:34:52Zu	committer}(jr svc-autoreleasejt -pd-foundry-infrastructure-notify@palantir.comjv 2023-05-01T22:34:52Zumessage"Autorelease 0.846.0-rc2

[skip ci]tree}(jj (3d7ed6504bfdd9774b5868f03f613ae5225cee3furl`https://api.github.com/repos/palantir/atlasdb/git/trees/3d7ed6504bfdd9774b5868f03f613ae5225cee3fuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e593fe14c59329b0a4211a4ff7285d63c906f371
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRQPowACgkQhbrR8ip7mDC+7gEAgSTJo8Cr8fvBrrxGw5cPs0s8
9uPIUV3wa3vPONL8yJ8A/RrZQVOuc+gXdAbBk0nGTa3Konq2hH7p93Oe1uEwcTlP
=gbo4
-----END PGP SIGNATURE-----
payloadX(  tree 3d7ed6504bfdd9774b5868f03f613ae5225cee3f
parent 867ec9a3169734d49b23f0d0825671d7266b44b7
author aalouane <30903736+ergo14@users.noreply.github.com> 1682980492 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1682980492 +0000

Autorelease 0.846.0-rc2

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/e593fe14c59329b0a4211a4ff7285d63c906f371html_urlShttps://github.com/palantir/atlasdb/commit/e593fe14c59329b0a4211a4ff7285d63c906f371comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e593fe14c59329b0a4211a4ff7285d63c906f371/commentsjp }(loginergo14idJjl MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14(      j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujx }(j svc-autoreleasej J(jl MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(jj (867ec9a3169734d49b23f0d0825671d7266b44b7j ^https://api.github.com/repos/palantir/atlasdb/commits/867ec9a3169734d49b23f0d0825671d7266b44b7j Shttps://github.com/palantir/atlasdb/commit/867ec9a3169734d49b23f0d0825671d7266b44b7uastats}(totalK 	additionsK 	deletionsK ufiles]u(0b6d538ef47588dbf1bbf05793ca42f3058dfc08}(sha(0b6d538ef47588dbf1bbf05793ca42f3058dfc08node_idEC_kwDOAjP5fdoAKDBiNmQ1MzhlZjQ3NTg4ZGJmMWJiZjA1NzkzY2E0MmYzMDU4ZGZjMDgcommit}(author}(name
Samuel Krameremailskramer@palantir.comdate2023-03-23T15:49:09Zu	committer}(jڿ 
Samuel Kramerjܿ skramer@palantir.comj޿ 2023-03-23T15:49:09Zumessagenits nits nitstree}(jҿ (e3c9e09f8e5f19e23354b860ac799f87476de0a9url`https://api.github.com/repos/palantir/atlasdb/git/trees/e3c9e09f8e5f19e23354b860ac799f87476de0a9uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0b6d538ef47588dbf1bbf05793ca42f3058dfc08
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj ^https://api.github.com/repos/palantir/atlasdb/commits/0b6d538ef47588dbf1bbf05793ca42f3058dfc08html_urlShttps://github.com/palantir/atlasdb/commit/0b6d538ef47588dbf1bbf05793ca42f3058dfc08comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0b6d538ef47588dbf1bbf05793ca42f3058dfc08/commentsjؿ }(login
Sam-KrameridJ^2_ jԿ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ jԿ MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j
 >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jҿ (f348e017fadf17bd57a6953669d5bd49d57c9b48j ^https://api.github.com/repos/palantir/atlasdb/commits/f348e017fadf17bd57a6953669d5bd49d57c9b48j Shttps://github.com/palantir/atlasdb/commit/f348e017fadf17bd57a6953669d5bd49d57c9b48uastats}(totalK$	additionsK	deletionsKufiles](}(jҿ (f3b4e04f4d4358c82e503f82cffa59f41a139357filenamehatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/TableConfiguration.javastatusmodifiedj2 K j3 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/0b6d538ef47588dbf1bbf05793ca42f3058dfc08/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0b6d538ef47588dbf1bbf05793ca42f3058dfc08/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.java?ref=0b6d538ef47588dbf1bbf05793ca42f3058dfc08patchXs  @@ -16,7 +16,6 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.workload.store.IsolationLevel;
@@ -26,9 +25,7 @@
 @JsonSerialize(as = ImmutableTableConfiguration.class)
 @JsonDeserialize(as = ImmutableTableConfiguration.class)
 public interface TableConfiguration {
-    @JsonProperty("table-name")
     String tableName();
 
-    @JsonProperty("isolation-level")
     IsolationLevel isolationLevel();
 }u}(jҿ (a62866eedfc187b1d057728b326c060a7c0d1062j8 katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowConfiguration.javaj: modifiedj2 K j3 Kj< Kj= https://github.com/palantir/atlasdb/blob/0b6d538ef47588dbf1bbf05793ca42f3058dfc08/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj? https://github.com/palantir/atlasdb/raw/0b6d538ef47588dbf1bbf05793ca42f3058dfc08/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.java?ref=0b6d538ef47588dbf1bbf05793ca42f3058dfc08jC Xe  @@ -16,12 +16,9 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.annotation.JsonTypeInfo;
 
 @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
 public interface WorkflowConfiguration {
-
-    @JsonProperty("iteration-count")
     int iterationCount();
 }u}(jҿ (9df48b200bfac9a63133d522bf43ef6e6d502329j8 /atlasdb-workload-server-distribution/Dockerfilej: modifiedj2 Kj3 Kj< Kj= https://github.com/palantir/atlasdb/blob/0b6d538ef47588dbf1bbf05793ca42f3058dfc08/atlasdb-workload-server-distribution%2FDockerfilej? https://github.com/palantir/atlasdb/raw/0b6d538ef47588dbf1bbf05793ca42f3058dfc08/atlasdb-workload-server-distribution%2FDockerfilejA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2FDockerfile?ref=0b6d538ef47588dbf1bbf05793ca42f3058dfc08jC X=  @@ -1,7 +1,7 @@
 FROM adoptopenjdk/openjdk11:jre-11.0.9_11.1-alpine
 MAINTAINER AtlasDB Team
 
-# Bash is useful for monitoring; curl is used by our healthchecks.
+# Bash and curl are convenient for monitoring and debugging
 RUN apk update && apk add bash curl
 
 # Prefer ADD to COPY because it does the tar handlingu}(jҿ (808f311155ea3c78418d424bc99d2379446a8356j8 1atlasdb-workload-server-distribution/build.gradlej: modifiedj2 Kj3 Kj< K	j= https://github.com/palantir/atlasdb/blob/0b6d538ef47588dbf1bbf05793ca42f3058dfc08/atlasdb-workload-server-distribution%2Fbuild.gradlej? https://github.com/palantir/atlasdb/raw/0b6d538ef47588dbf1bbf05793ca42f3058dfc08/atlasdb-workload-server-distribution%2Fbuild.gradlejA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=0b6d538ef47588dbf1bbf05793ca42f3058dfc08jC X  @@ -20,11 +20,12 @@ dependencies {
     implementation 'com.palantir.conjure.java.runtime:conjure-java-jersey-server'
     implementation 'com.google.guava:guava'
 
-    implementation project(':atlasdb-config')
-    implementation project(':atlasdb-workload-server')
-    implementation project(':atlasdb-client')
 
-    api project(':atlasdb-workload-server-api')
+    implementation project(':atlasdb-client')
+    implementation project(':atlasdb-cassandra')
+    implementation project(':atlasdb-workload-server')
+    implementation project(':atlasdb-workload-server-api')
+    implementation project(':atlasdb-config')
 
     testImplementation 'io.dropwizard:dropwizard-testing'
 u}(jҿ (009d1e836cb4f2d06c17d17b2580dcc7ec4d27e7j8 atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj: modifiedj2 K j3 Kj< Kj= https://github.com/palantir/atlasdb/blob/0b6d538ef47588dbf1bbf05793ca42f3058dfc08/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj? https://github.com/palantir/atlasdb/raw/0b6d538ef47588dbf1bbf05793ca42f3058dfc08/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=0b6d538ef47588dbf1bbf05793ca42f3058dfc08jC X  @@ -16,7 +16,6 @@
 
 package com.palantir.atlasdb.workload.config;
 
-import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
@@ -27,12 +26,9 @@
 @JsonSerialize(as = ImmutableWorkloadServerInstallConfiguration.class)
 @Value.Immutable
 public interface WorkloadServerInstallConfiguration {
-    @JsonProperty("atlas")
     AtlasDbConfig atlas();
 
-    @JsonProperty("single-row-two-cells-config")
     SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig();
 
-    @JsonProperty("exit-after-running")
     boolean exitAfterRunning();
 }u}(jҿ (7e40ac0af622142842a15da5fabb1d3cac282fd3j8 Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj: modifiedj2 Kj3 Kj< Kj= https://github.com/palantir/atlasdb/blob/0b6d538ef47588dbf1bbf05793ca42f3058dfc08/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj? https://github.com/palantir/atlasdb/raw/0b6d538ef47588dbf1bbf05793ca42f3058dfc08/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymljA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=0b6d538ef47588dbf1bbf05793ca42f3058dfc08jC X  @@ -4,10 +4,10 @@ install:
     namespace: test
     keyValueService:
       type: memory
-  single-row-two-cells-config:
-    table-configuration:
-      table-name: two-cells-test
-      isolation-level: SERIALIZABLE
-    iteration-count: 100
+  singleRowTwoCellsConfig:
+    tableConfiguration:
+      tableName: two-cells-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
     type: singleRowTwoCells
-  exit-after-running: false
\ No newline at end of file
+  exitAfterRunning: false
\ No newline at end of fileu}(jҿ (64294ae949e876e90849cc856e5f5959e722f79aj8 xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javaj: modifiedj2 K j3 Kj< Kj= https://github.com/palantir/atlasdb/blob/0b6d538ef47588dbf1bbf05793ca42f3058dfc08/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj? https://github.com/palantir/atlasdb/raw/0b6d538ef47588dbf1bbf05793ca42f3058dfc08/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=0b6d538ef47588dbf1bbf05793ca42f3058dfc08jC X  @@ -16,7 +16,6 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.annotation.JsonTypeName;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
@@ -30,10 +29,8 @@
 public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfiguration {
     String TYPE = "singleRowTwoCells";
 
-    @JsonProperty("table-configuration")
     TableConfiguration tableConfiguration();
 
-    @JsonProperty("rate-limit")
     @Value.Default
     default double rateLimit() {
         return 100;ueu(b70bcfdc24a9077627c1e4cf6b5df18cd928e6dd}(sha(b70bcfdc24a9077627c1e4cf6b5df18cd928e6ddnode_idEC_kwDOAjP5fdoAKGI3MGJjZmRjMjRhOTA3NzYyN2MxZTRjZjZiNWRmMThjZDkyOGU2ZGQcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-13T09:37:25Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-07-18T14:29:00Zumessage+Test all types of metadata in serializationtree}(jw (8864cc28d878c15a4cd90007d2ec7d06fea13c5burl`https://api.github.com/repos/palantir/atlasdb/git/trees/8864cc28d878c15a4cd90007d2ec7d06fea13c5buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b70bcfdc24a9077627c1e4cf6b5df18cd928e6dd
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS2oawACgkQmF9s0kaF
Iw3YMAf+PFXwyJuhnqldxdZXeHQ6o+axi/gQW76DVT775IaOoLg48n/HkEDKNKE2
H3yEfYT/KY/tBnvG37MumOoTVJ9VdhlLQN1x5AvZw091X2Z6ZGsZW72hWxPPJfGh
hkWQNNarmgIWhFKAPF33aLydKQ0OoM7YTWKhKUeTRZC5hl8krimWdMYD9wDmMZJe
OLJ3JO6m9cANIRnF7LHIC45xIZkJgW5I/9EkWjYj556ADHk8407jqaQzLeWb+CyT
ZfxGmStGPjCDRxtRl136e1f4xKVC4tDs0Ij9F2CRjxaUj11rkWVovUpWrMf1wBfJ
fdVD5hiMv0C8lfu3mHiUGGLVu8BI0Q==
=mKIN
-----END PGP SIGNATURE-----payloadtree 8864cc28d878c15a4cd90007d2ec7d06fea13c5b
parent 976d038f391b857fdf7be13594f965022bca2c58
author Tom Papke <tpapke@palantir.com> 1689241045 +0100
committer Tom Papke <tpapke@palantir.com> 1689690540 +0100

Test all types of metadata in serialization
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/b70bcfdc24a9077627c1e4cf6b5df18cd928e6ddhtml_urlShttps://github.com/palantir/atlasdb/commit/b70bcfdc24a9077627c1e4cf6b5df18cd928e6ddcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b70bcfdc24a9077627c1e4cf6b5df18cd928e6dd/commentsj} }(login	ToemmscheidJbojy MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jbojy MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(jw (976d038f391b857fdf7be13594f965022bca2c58j ^https://api.github.com/repos/palantir/atlasdb/commits/976d038f391b857fdf7be13594f965022bca2c58j Shttps://github.com/palantir/atlasdb/commit/976d038f391b857fdf7be13594f965022bca2c58uastats}(totalK@	additionsK3	deletionsK
ufiles](}(jw (ca84852c3a088fa69261e3a402cb6dcd8968a351filenameKlock-api/src/test/java/com/palantir/lock/client/ConjureLockRequestTest.javastatusmodifiedj Kj KchangesK"blob_urlhttps://github.com/palantir/atlasdb/blob/b70bcfdc24a9077627c1e4cf6b5df18cd928e6dd/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequestTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b70bcfdc24a9077627c1e4cf6b5df18cd928e6dd/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequestTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequestTest.java?ref=b70bcfdc24a9077627c1e4cf6b5df18cd928e6ddpatchX  @@ -24,11 +24,14 @@
 import com.google.common.collect.ImmutableMap;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.timelock.api.ConjureChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureCreatedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureDeletedChangeMetadata;
 import com.palantir.atlasdb.timelock.api.ConjureLockDescriptor;
 import com.palantir.atlasdb.timelock.api.ConjureLockDescriptorListChecksum;
 import com.palantir.atlasdb.timelock.api.ConjureLockRequest;
 import com.palantir.atlasdb.timelock.api.ConjureLockRequestMetadata;
 import com.palantir.atlasdb.timelock.api.ConjureUnchangedChangeMetadata;
+import com.palantir.atlasdb.timelock.api.ConjureUpdatedChangeMetadata;
 import com.palantir.conjure.java.lib.Bytes;
 import com.palantir.conjure.java.serialization.ObjectMappers;
 import java.nio.file.Files;
@@ -41,20 +44,35 @@ public class ConjureLockRequestTest {
     private static final String BASE = "src/test/resources/conjure-lock-request-wire-format/";
     private static final boolean REWRITE_JSON_BLOBS = false;
 
-    private static final ConjureLockDescriptor TEST_LOCK = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("abc")));
+    private static final ConjureLockDescriptor LOCK_1 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("abc")));
+    private static final ConjureLockDescriptor LOCK_2 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("def")));
+    private static final ConjureLockDescriptor LOCK_3 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("ghi")));
+    private static final ConjureLockDescriptor LOCK_4 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("jkl")));
+    private static final byte[] BYTES_OLD = PtBytes.toBytes("old");
+    private static final byte[] BYTES_NEW = PtBytes.toBytes("new");
+    private static final byte[] BYTES_DELETED = PtBytes.toBytes("deleted");
+    private static final byte[] BYTES_CREATED = PtBytes.toBytes("created");
+    // The checksum on this does not have to be correct since the integrity check is performed by the server and not
+    // by Conjure itself
+    private static final ConjureLockRequestMetadata CONJURE_LOCK_REQUEST_METADATA = ConjureLockRequestMetadata.of(
+            ImmutableMap.of(
+                    0,
+                    ConjureChangeMetadata.unchanged(ConjureUnchangedChangeMetadata.of()),
+                    1,
+                    ConjureChangeMetadata.updated(
+                            ConjureUpdatedChangeMetadata.of(Bytes.from(BYTES_OLD), Bytes.from(BYTES_NEW))),
+                    2,
+                    ConjureChangeMetadata.deleted(ConjureDeletedChangeMetadata.of(Bytes.from(BYTES_DELETED))),
+                    3,
+                    ConjureChangeMetadata.created(ConjureCreatedChangeMetadata.of(Bytes.from(BYTES_CREATED)))),
+            ConjureLockDescriptorListChecksum.of(0, Bytes.from(PtBytes.toBytes("test-checksum-value"))));
     private static final ConjureLockRequest BASELINE_CONJURE_LOCK_REQUEST = ConjureLockRequest.builder()
             .requestId(new UUID(1337, 42))
-            .lockDescriptors(ImmutableList.of(TEST_LOCK))
+            .lockDescriptors(ImmutableList.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4))
             .acquireTimeoutMs(100)
             .clientDescription("client: test, thread: test")
             .build();
 
-    // The checksum on this does not have to be correct since the integrity check is performed by the server and not
-    // by Conjure itself
-    private static final ConjureLockRequestMetadata CONJURE_LOCK_REQUEST_METADATA = ConjureLockRequestMetadata.of(
-            ImmutableMap.of(0, ConjureChangeMetadata.unchanged(ConjureUnchangedChangeMetadata.of())),
-            ConjureLockDescriptorListChecksum.of(0, Bytes.from(PtBytes.toBytes("test-checksum-value"))));
-
     // AtlasDB (Client) serializes and TimeLock (Server) deserializes ConjureLockRequest objects.
     // These are the respective mappers used internally by Conjure.
     private static final ObjectMapper SERIALIZATION_MAPPER =u}(jw (56e0e9f551398a56e8c56e758c6eab6f6d5a6072j Xlock-api/src/test/resources/conjure-lock-request-wire-format/baseline-with-metadata.jsonj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/b70bcfdc24a9077627c1e4cf6b5df18cd928e6dd/lock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fbaseline-with-metadata.jsonj https://github.com/palantir/atlasdb/raw/b70bcfdc24a9077627c1e4cf6b5df18cd928e6dd/lock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fbaseline-with-metadata.jsonj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fbaseline-with-metadata.json?ref=b70bcfdc24a9077627c1e4cf6b5df18cd928e6ddj X=  @@ -1,13 +1,32 @@
 {
   "requestId" : "00000000-0000-0539-0000-00000000002a",
-  "lockDescriptors" : [ "YWJj" ],
+  "lockDescriptors" : [ "YWJj", "ZGVm", "Z2hp", "amts" ],
   "acquireTimeoutMs" : 100,
   "clientDescription" : "client: test, thread: test",
   "metadata" : {
     "indexToChangeMetadata" : {
       "0" : {
         "type" : "unchanged",
         "unchanged" : { }
+      },
+      "1" : {
+        "type" : "updated",
+        "updated" : {
+          "oldValue" : "b2xk",
+          "newValue" : "bmV3"
+        }
+      },
+      "2" : {
+        "type" : "deleted",
+        "deleted" : {
+          "oldValue" : "ZGVsZXRlZA=="
+        }
+      },
+      "3" : {
+        "type" : "created",
+        "created" : {
+          "newValue" : "Y3JlYXRlZA=="
+        }
       }
     },
     "lockListChecksum" : {u}(jw (e1b7813afcfedd61b6686b1bab138e5f151ea739j Jlock-api/src/test/resources/conjure-lock-request-wire-format/baseline.jsonj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/b70bcfdc24a9077627c1e4cf6b5df18cd928e6dd/lock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fbaseline.jsonj https://github.com/palantir/atlasdb/raw/b70bcfdc24a9077627c1e4cf6b5df18cd928e6dd/lock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fbaseline.jsonj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fbaseline.json?ref=b70bcfdc24a9077627c1e4cf6b5df18cd928e6ddj X  @@ -1,6 +1,6 @@
 {
   "requestId" : "00000000-0000-0539-0000-00000000002a",
-  "lockDescriptors" : [ "YWJj" ],
+  "lockDescriptors" : [ "YWJj", "ZGVm", "Z2hp", "amts" ],
   "acquireTimeoutMs" : 100,
   "clientDescription" : "client: test, thread: test"
 }
\ No newline at end of fileu}(jw (c24734181cbad94d445b4961d924704f54d8132ej ctimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchEventIntegrationTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/b70bcfdc24a9077627c1e4cf6b5df18cd928e6dd/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javaj https://github.com/palantir/atlasdb/raw/b70bcfdc24a9077627c1e4cf6b5df18cd928e6dd/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.java?ref=b70bcfdc24a9077627c1e4cf6b5df18cd928e6ddj X  @@ -261,7 +261,7 @@ public void leaderElectionDuringTransactionCausesTransactionToFailRetriably() {
 
     @Test
     public void absentMetadataIsVisibleToTransaction() {
-        LockRequest requestWithoutMetadata = lockRequestOf(
+        LockRequest requestWithoutMetadata = createTestLockRequest(
                 ImmutableSet.of(AtlasRowLockDescriptor.of(TABLE_REF.getQualifiedName(), ROW)), Optional.empty());
         List<Optional<LockRequestMetadata>> allMetadata =
                 lockAndGetAllLockEventMetadataForNewTransaction(requestWithoutMetadata);
@@ -273,7 +273,7 @@ public void nonEmptyMetadataIsVisibleToTransaction() {
         LockDescriptor lock = AtlasRowLockDescriptor.of(TABLE_REF.getQualifiedName(), ROW);
         LockRequestMetadata metadata =
                 LockRequestMetadata.of(ImmutableMap.of(lock, ChangeMetadata.created(PtBytes.toBytes("foo"))));
-        LockRequest requestWithMetadata = lockRequestOf(ImmutableSet.of(lock), Optional.of(metadata));
+        LockRequest requestWithMetadata = createTestLockRequest(ImmutableSet.of(lock), Optional.of(metadata));
         List<Optional<LockRequestMetadata>> allMetadata =
                 lockAndGetAllLockEventMetadataForNewTransaction(requestWithMetadata);
         assertThat(allMetadata).containsExactly(Optional.of(metadata));
@@ -401,7 +401,8 @@ private List<Optional<LockRequestMetadata>> lockAndGetAllLockEventMetadataForNew
         return LockWatchIntegrationTestUtilities.extractMetadata(lockWatchEvents);
     }
 
-    private LockRequest lockRequestOf(Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {
+    private LockRequest createTestLockRequest(
+            Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {
         return ImmutableLockRequest.builder()
                 .lockDescriptors(lockDescriptors)
                 .clientDescription("test-client")ueu(dd7a181790fc2e528b8ee9929a3046cb6285c776}(sha(dd7a181790fc2e528b8ee9929a3046cb6285c776node_idEC_kwDOAjP5fdoAKGRkN2ExODE3OTBmYzJlNTI4YjhlZTk5MjlhMzA0NmNiNjI4NWM3NzYcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-05-20T03:17:50Zu	committer}(j GitHubj noreply@github.comj 2023-05-20T03:17:50ZumessageGenerate StreamStore implementations with presized maps/sets (#6571)

Generate StreamStore implementations with presized maps/setstree}(j (5fa6182e48c685bd12671e0cc105fc885e3ecfd5url`https://api.github.com/repos/palantir/atlasdb/git/trees/5fa6182e48c685bd12671e0cc105fc885e3ecfd5uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/dd7a181790fc2e528b8ee9929a3046cb6285c776
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkaDveCRBK7hj4Ov3rIwAAmboIAHZdfmDLqsFvTU+z0UdXsArl
DIyvd2WvP6v5/S3FiQb5VOSQioK2X53hDQlzjpxQ5XLZFEbdSWNVX4zQOeyLyY6U
ifo7XjWWWOpBBIJ6I9ko8YDLzhl0hSa0oeIwq4ShXHIiTFqMmAVQ6SgAxy27BGA2
QL++sbuxWtZ3/0l/bxyVMklwU8y57/EsLCNLDp0dWonQKwVdCQ2tSFOJdra2TWJs
PfPwRFE+HDgYNou/f0TP0PIgd5Rwz9CcY06pN5l2/xtHpWj13djT9hDn3jL0mp4W
yLT1P8nODARV+2JOmi+28BrRJ2mpQzlHYrvTfVwS81OI8/H/pbaeUfv96ySPBAM=
=2lFV
-----END PGP SIGNATURE-----
payloadXY  tree 5fa6182e48c685bd12671e0cc105fc885e3ecfd5
parent 3b7277fbfdf71f5d403f7195597c58c6ed6a1a59
author David Schlosnagle <davids@palantir.com> 1684552670 -0400
committer GitHub <noreply@github.com> 1684552670 +0000

Generate StreamStore implementations with presized maps/sets (#6571)

Generate StreamStore implementations with presized maps/sets
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/dd7a181790fc2e528b8ee9929a3046cb6285c776html_urlShttps://github.com/palantir/atlasdb/commit/dd7a181790fc2e528b8ee9929a3046cb6285c776comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/dd7a181790fc2e528b8ee9929a3046cb6285c776/commentsj }(loginschlosnaidMBj MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j %https://api.github.com/users/schlosnaj, https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj }(j1 web-flowj3 J/j MDQ6VXNlcjE5ODY0NDQ3j5 4https://avatars.githubusercontent.com/u/19864447?v=4j7 h5j %https://api.github.com/users/web-flowj, https://github.com/web-flowj: /https://api.github.com/users/web-flow/followersj< <https://api.github.com/users/web-flow/following{/other_user}j> 5https://api.github.com/users/web-flow/gists{/gist_id}j@ <https://api.github.com/users/web-flow/starred{/owner}{/repo}jB 3https://api.github.com/users/web-flow/subscriptionsjD *https://api.github.com/users/web-flow/orgsjF +https://api.github.com/users/web-flow/reposjH 6https://api.github.com/users/web-flow/events{/privacy}jJ 5https://api.github.com/users/web-flow/received_eventsjL UserjN uparents]}(j (3b7277fbfdf71f5d403f7195597c58c6ed6a1a59j ^https://api.github.com/repos/palantir/atlasdb/commits/3b7277fbfdf71f5d403f7195597c58c6ed6a1a59j, Shttps://github.com/palantir/atlasdb/commit/3b7277fbfdf71f5d403f7195597c58c6ed6a1a59uastats}(totalMR	additionsK	deletionsKdufiles](}(j (8b6e6cafaf4bfeb159b9821f6b05b34ee3d1bd3bfilename\atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/CompactMetadataTable.javastatusmodifiedjh Kji KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FCompactMetadataTable.javaraw_urlhttps://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FCompactMetadataTable.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FCompactMetadataTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776patchX  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "VridlmiMEcMLIrwQyqcRHQ==";
+    static String __CLASS_HASH = "PSwZcMysyzWemW+V1hGphQ==";
 }u}(j (a9253d217f7922c43a4719d7eba66ff928fd42c2jn Zatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepIdToNameTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepIdToNameTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepIdToNameTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepIdToNameTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -731,6 +732,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -754,5 +756,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "XhY0sfHU7ygS3NHM1+HK7Q==";
+    static String __CLASS_HASH = "XRAvO+BpbFM1l4QIBkArjA==";
 }u}(j (92e033f8a02b6af466530e87d3272b1a29f5b16bjn Zatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepNameToIdTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepNameToIdTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepNameToIdTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepNameToIdTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -672,6 +673,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -695,5 +697,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "sJD6WdNMiuuJDNsMwkhsvA==";
+    static String __CLASS_HASH = "ZVl8vtH0bWDeCq5tKMA3Aw==";
 }u}(j (466585bf6d5f35472abb07bf7c9340d1fec25923jn Zatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepPriorityTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepPriorityTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepPriorityTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepPriorityTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -1228,6 +1229,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -1251,5 +1253,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "SYJq7EPSrqhI5ojA5DS3vQ==";
+    static String __CLASS_HASH = "rABMHBdCo+LhmxyLoeFFwQ==";
 }u}(j (91aeab67a811c50ed99500a6dbab71f30426896bjn _atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepShardProgressTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepShardProgressTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepShardProgressTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepShardProgressTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -684,6 +685,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -707,5 +709,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "vxDaJU4r7oWggNPDq0Qu6Q==";
+    static String __CLASS_HASH = "2Fj81SsG3WRpPjQ1kYDw3A==";
 }u}(j (e1e792ef2a8d8d17d6dc1f0ebf62edaa5f434f46jn [atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepableCellsTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableCellsTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableCellsTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableCellsTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -766,6 +767,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -789,5 +791,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "0G8vHXvwR/HGZ0ZrAaeqTQ==";
+    static String __CLASS_HASH = "hMikiCT1ysKqkzSOdiKujg==";
 }u}(j (a0fed777bc3cae52361dd15d5e1f8d185ff33447jn `atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepableTimestampsTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableTimestampsTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableTimestampsTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableTimestampsTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -763,6 +764,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -786,5 +788,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Jw99h/0z3T8JcRN8j6d17w==";
+    static String __CLASS_HASH = "66qq5d5do+PszHk7DehVPA==";
 }u}(j (04e0abea5b6d71d399ce0be42bf5e788186bb907jn Xatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/TableClearsTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FTableClearsTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FTableClearsTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FTableClearsTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "G5tVqtzNmeGOIdOf4QSySA==";
+    static String __CLASS_HASH = "Wm/9d03F9WHgPC5jjTUOaA==";
 }u}(j (8adb21b448fa2a5a257bb87fb7a4c6fc9e50e566jn catlasdb-client/src/main/java/com/palantir/atlasdb/table/description/render/StreamStoreRenderer.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Frender%2FStreamStoreRenderer.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Frender%2FStreamStoreRenderer.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Frender%2FStreamStoreRenderer.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X
  @@ -362,7 +362,8 @@ private void putMetadataAndHashIndexTask() {
                     line("}");
                     line("putHashIndexTask(t, rowsToStoredMetadata);");
                     line();
-                    line("Map<", StreamMetadataRow, ", StreamMetadata> rowsToMetadata = new HashMap<>();");
+                    line("Map<", StreamMetadataRow, ", StreamMetadata> rowsToMetadata =");
+                    line("        Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());");
                     line("rowsToMetadata.putAll(rowsToStoredMetadata);");
                     line("rowsToMetadata.putAll(rowsToUnstoredMetadata);");
                     line("mdTable.putMetadata(rowsToMetadata);");
@@ -462,7 +463,10 @@ private void getMetadata() {
                             "Map<",
                             StreamMetadataRow,
                             ", StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));");
-                    line("Map<", StreamId, ", StreamMetadata> ret = new HashMap<>();");
+                    line(
+                            "Map<",
+                            StreamId,
+                            ", StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());");
                     line("for (Map.Entry<", StreamMetadataRow, ", StreamMetadata> e : metadatas.entrySet()) {");
                     {
                         line("ret.put(e.getKey().getId(), e.getValue());");
@@ -494,7 +498,7 @@ private void lookupStreamIdsByHash() {
                             ", ",
                             StreamHashAidxColumnValue,
                             "> m = idx.getRowsMultimap(rows);");
-                    line("Map<", StreamId, ", Sha256Hash> hashForStreams = new HashMap<>();");
+                    line("Map<", StreamId, ", Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());");
                     line("for (", StreamHashAidxRow, " r : m.keySet()) {");
                     {
                         line("for (", StreamHashAidxColumnValue, " v : m.get(r)) {");
@@ -535,7 +539,7 @@ private void lookupStreamIdsByHash() {
             private void getHashIndexRowsForHashes() {
                 line("private Set<", StreamHashAidxRow, "> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {");
                 {
-                    line("Set<", StreamHashAidxRow, "> rows = new HashSet<>();");
+                    line("Set<", StreamHashAidxRow, "> rows = Sets.newHashSetWithExpectedSize(hashes.size());");
                     line("for (Sha256Hash h : hashes) {");
                     {
                         line("rows.add(", StreamHashAidxRow, ".of(h));");u}(j (5c2151332395c0abdd30bf0e9e81f9ea340e0275jn latlasdb-client/src/test/java/com/palantir/atlasdb/table/description/generated/GenericRangeScanTestTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FGenericRangeScanTestTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FGenericRangeScanTestTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FGenericRangeScanTestTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -782,6 +783,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -805,5 +807,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "kqedl2mBeAbedzXlMy+Imw==";
+    static String __CLASS_HASH = "YkaZuzFs8LBGmT3/H/I5eg==";
 }u}(j (3ca57c907f8e38fa47c80cd5637bb2936c356d75jn eatlasdb-client/src/test/java/com/palantir/atlasdb/table/description/generated/RangeScanTestTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FRangeScanTestTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FRangeScanTestTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FRangeScanTestTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -720,6 +721,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -743,5 +745,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "T2bysa8OZ+/WjRrXnIqCPA==";
+    static String __CLASS_HASH = "1i+tNWsmUREmFNoXh6QUeg==";
 }u}(j (406ea4c829a8af8841a2d625eb7be180b4deeb1bjn aatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/LatestSnapshotTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FLatestSnapshotTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FLatestSnapshotTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FLatestSnapshotTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "1hXp6wqgn1sn1zvk2FNCsA==";
+    static String __CLASS_HASH = "IGBmCsqLmahL4VNCmymeTA==";
 }u}(j (691b032f8500c1d98893ea25953a5a1da6159237jn aatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/NamespacedTodoTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FNamespacedTodoTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FNamespacedTodoTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FNamespacedTodoTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "u45FW2313LWExLwSpn1QNQ==";
+    static String __CLASS_HASH = "hQ6/1zRsdc2LBKW0GTYdpw==";
 }u}(j (8d929951097fa4dd1ed276565d0e054a197030c1jn jatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamHashAidxTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamHashAidxTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamHashAidxTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamHashAidxTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "PCkKiTatC1CKEn6ZH3wovQ==";
+    static String __CLASS_HASH = "D9OdSrGepZI1dcZ5KV7B0g==";
 }u}(j (c2166395fe0ce40fad624f15a49f97e8082edb87jn eatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamIdxTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamIdxTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamIdxTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamIdxTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "D1MDUfpiS0iyGcBvr58Y8g==";
+    static String __CLASS_HASH = "Ql7tNJ0Z5v0pWFviP9dcuw==";
 }u}(j (751427a20cec42114f38fb040766075b79fceb85jn jatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamMetadataTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamMetadataTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamMetadataTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamMetadataTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "CYeYrtJK8/cz/1qm4lAQbw==";
+    static String __CLASS_HASH = "AgT8WHSuUvJzkk+inw4twg==";
 }u}(j (d9eb5e622958eabbadfc64f623d7af4e2b8f6ab2jn batlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamStore.javajp modifiedjh Kji Kjr K	js https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamStore.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamStore.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamStore.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         SnapshotsStreamMetadataTable table = tables.getSnapshotsStreamMetadataTable(t);
         Map<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow, SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow r : m.keySet()) {
             for (SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> rows = new HashSet<>();
+        Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow.of(h));
         }u}(j (50fe24ebd9570730219ff9c8cabd8b95ef133793jn gatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamValueTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamValueTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamValueTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamValueTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "VELEHtyEvSAidzHk7HUynw==";
+    static String __CLASS_HASH = "9m/lRuE/UHMttmLTS1Q8iQ==";
 }u     }(j (0fc54eda7b5bdfc6e1df2d83a646c1c897f7545djn Watlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/TodoTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FTodoTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FTodoTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FTodoTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "a41wenQu3aKASLvmOEI8kQ==";
+    static String __CLASS_HASH = "1g5OdW5n4H7icFXg1gG2Xg==";
 }u}(j (c7df5ab0634529958ebd6f5e9833133b80d6f481jn Yatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/AuditedDataTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FAuditedDataTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FAuditedDataTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FAuditedDataTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "HWEvAR+se/bt6noPrSI5eQ==";
+    static String __CLASS_HASH = "AkImLEM5fv/Ji8qCyRf5dw==";
 }u}(j (691e7c2e8f8e94ee1c2d708ae8a7265a658fc2d7jn `atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamHashAidxTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamHashAidxTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamHashAidxTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamHashAidxTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "6ODGPI1lqmv77xZs7geJPg==";
+    static String __CLASS_HASH = "4xCW34HnUp0WcB647QLiyQ==";
 }u}(j (450188be061709cb7be5970d7510cb674fd90334jn [atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamIdxTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamIdxTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamIdxTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamIdxTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -730,6 +731,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -753,5 +755,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Rdk+n2nUmS6yWZK9HAk9OA==";
+    static String __CLASS_HASH = "Cv4WRWZ3CKVWR5IhFRmgLg==";
 }u}(j (02b71ddbab73ddfa1fb611fe7718aec48202c8f9jn `atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamMetadataTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamMetadataTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamMetadataTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamMetadataTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -697,6 +698,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -720,5 +722,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "RPuWa9/Enf/G4yy7WraKvg==";
+    static String __CLASS_HASH = "AFwooxC06krTqFv58UfkcA==";
 }u}(j (8c464c6e727d316151fe167fb7023408f8223c1bjn Xatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamStore.javajp modifiedjh Kji Kjr K	js https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamStore.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamStore.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamStore.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         DataStreamMetadataTable table = tables.getDataStreamMetadataTable(t);
         Map<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<DataStreamHashAidxTable.DataStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<DataStreamHashAidxTable.DataStreamHashAidxRow, DataStreamHashAidxTable.DataStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (DataStreamHashAidxTable.DataStreamHashAidxRow r : m.keySet()) {
             for (DataStreamHashAidxTable.DataStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<DataStreamHashAidxTable.DataStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<DataStreamHashAidxTable.DataStreamHashAidxRow> rows = new HashSet<>();
+        Set<DataStreamHashAidxTable.DataStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(DataStreamHashAidxTable.DataStreamHashAidxRow.of(h));
         }u}(j (339121486a993326e0fab616ee41e6840e0bcdeajn ]atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamValueTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamValueTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamValueTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamValueTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -685,6 +686,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -708,5 +710,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "DS6SuJzRnFffdUrdtO6Guw==";
+    static String __CLASS_HASH = "hogeDv0tsmrHDkXuhcwteQ==";
 }u}(j (9ddaa82ed535788ceb2af45646bddc9ef36ee8c1jn iatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamHashAidxTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamHashAidxTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamHashAidxTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamHashAidxTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "SH1UPkfcLa9w8NXZtXW8SQ==";
+    static String __CLASS_HASH = "NOiRKvLXsadPhJ4N/aae6Q==";
 }u}(j (64418a6885ea388ae8cacfebdee217037e578fbcjn datlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamIdxTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamIdxTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamIdxTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamIdxTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "mpf2q7hm+MfMFLkXqKHb6Q==";
+    static String __CLASS_HASH = "lWy4z6m1ZmwcuY4d/ez8Rw==";
 }u}(j (db9af2411ac58ba1397ec11aaec3110306b1b1f0jn iatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamMetadataTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamMetadataTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamMetadataTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamMetadataTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Ce61mTEgHfgl6d16rBNwUA==";
+    static String __CLASS_HASH = "KLkPI2rjlr8itPxC4ZWJLg==";
 }u}(j (dde1b9206472d7a2d64075fe39b94b5e132abc0djn aatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamStore.javajp modifiedjh Kji Kjr K	js https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamStore.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamStore.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamStore.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         HotspottyDataStreamMetadataTable table = tables.getHotspottyDataStreamMetadataTable(t);
         Map<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow, HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow r : m.keySet()) {
             for (HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> rows = new HashSet<>();
+        Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow.of(h));
         }u}(j (8883d5d8737eef19a3f25fd258d579ac8e1dbec9jn fatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamValueTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamValueTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamValueTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamValueTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "qpxadEqMHw8NeLcCZ0b7oA==";
+    static String __CLASS_HASH = "9KSCRtbyVXFg2nb/7Wc8OA==";
 }u}(j (9e9357f8de655d0e17ba1dd9b8acd708782624dajn _atlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/KeyValueTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FKeyValueTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FKeyValueTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FKeyValueTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -720,6 +721,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -743,5 +745,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "hup2zbIPEU3UyNMOfe1YNw==";
+    static String __CLASS_HASH = "EvFEiQbULvhKQD1IWFw9Og==";
 }u}(j (71133787b090b82a707e49603e186dfa7e9667bbjn jatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamHashAidxTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamHashAidxTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamHashAidxTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamHashAidxTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "5cWqgzNsimsjOXwgH7qMXg==";
+    static String __CLASS_HASH = "JgFB0UN+4Pm4N3LOPvQBgQ==";
 }u}(j (12c3935195ed70fde95f3887274b533b88339351jn eatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamIdxTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamIdxTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamIdxTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamIdxTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "MkCIg9TK7rahg1mYHQmGVQ==";
+    static String __CLASS_HASH = "bEOuPNCg8sYuyW4OuRhvww==";
 }u}(j (89e24ea6242c9b9fb14e61ea5dcf01368dfc11ddjn jatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamMetadataTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamMetadataTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamMetadataTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamMetadataTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "C96zzv/xJuD8fFjGUzSd4A==";
+    static String __CLASS_HASH = "lqzqHpNRg+/IVPQNyNYi8w==";
 }u}(j (131662e5ecd75a9a845b1ada71a5f0caabb1015bjn batlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamStore.javajp modifiedjh Kji Kjr K	js https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamStore.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamStore.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamStore.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X$
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         ValueStreamMetadataTable table = tables.getValueStreamMetadataTable(t);
         Map<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<ValueStreamHashAidxTable.ValueStreamHashAidxRow, ValueStreamHashAidxTable.ValueStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (ValueStreamHashAidxTable.ValueStreamHashAidxRow r : m.keySet()) {
             for (ValueStreamHashAidxTable.ValueStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> rows = new HashSet<>();
+        Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(ValueStreamHashAidxTable.ValueStreamHashAidxRow.of(h));
         }u}(j (8612b0a582e6b1950385aa6d1574bbac6e20ffa1jn gatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamValueTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamValueTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamValueTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamValueTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "AWqOKaIXG5obDvezpY9QEQ==";
+    static String __CLASS_HASH = "uFwDglAaZjBu9w6E/JkGTA==";
 }u}(j (8154359d774907dc53f1db528c9656c41f00ad36jn `atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/indexing/generated/DataTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FDataTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FDataTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FDataTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -3605,6 +3606,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -3628,5 +3630,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "rHjWG0+SGxcp7KyF4uN6Tg==";
+    static String __CLASS_HASH = "fgza/c8nH19LqrftPRIqiA==";
 }u}(j (ee2a5122bea79238ecd27ad1e4ca1456a7f7b835jn fatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/indexing/generated/TwoColumnsTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FTwoColumnsTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FTwoColumnsTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FTwoColumnsTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -2175,6 +2176,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -2198,5 +2200,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "ZLP1HeIjAhSt/NFAlfaFZw==";
+    static String __CLASS_HASH = "KStjuJG0LJnDxQ1sOAdxdg==";
 }u}(j (c38a44055aef521e0c7a9078ac8e38e1f8f113f3jn batlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/KeyValueTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FKeyValueTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FKeyValueTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FKeyValueTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "FVgUWmuxuVzpOrJIO/DXPQ==";
+    static String __CLASS_HASH = "4kr4uM+Pm0pXXBnI3Rwp/g==";
 }u}(j (483655cb2596c5c21bca0cbf355078fc452c2f2djn xatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamHashAidxTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamHashAidxTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamHashAidxTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamHashAidxTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "8WWlkvBZIFpNHwUr7wJuXA==";
+    static String __CLASS_HASH = "QDCK4a9zv6EgLNkYkrAVPQ==";
 }u}(j (69c2cc77ef0d597921e1c6bf0028a4c9b6da106ejn satlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamIdxTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamIdxTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamIdxTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamIdxTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "fBsgiTVm3m2sJucODfXkrw==";
+    static String __CLASS_HASH = "ZrY7oPqs4lWL5Vm3ZAOfyQ==";
 }u}(j (a48313725d6bbc0ecd9e5fd285aa2e10742f285djn xatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamMetadataTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamMetadataTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamMetadataTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamMetadataTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "YleWz4H842qjJBXcYvLobg==";
+    static String __CLASS_HASH = "k1qnaFkT6dVNCXg3oBI4WQ==";
 }u}(j (b52156d27108b8235106d6448d277090b0bc34f1jn patlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamStore.javajp modifiedjh Kji Kjr K	js https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamStore.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamStore.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamStore.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy XX  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         StreamTestMaxMemStreamMetadataTable table = tables.getStreamTestMaxMemStreamMetadataTable(t);
         Map<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow, StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow r : m.keySet()) {
             for (StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> rows = new HashSet<>();
+        Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow.of(h));
         }u}(j (4cc09292a0c881814092e59571bf42259f56cab7jn uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamValueTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamValueTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamValueTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamValueTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "1ctM+vcHEi56Rw7hX+plQg==";
+    static String __CLASS_HASH = "pYIryyxlhArJOo7k0Zv3dA==";
 }u}(j (f825d53bfb0e6c5d7381ec01f8ecd07240bf379cjn ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamHashAidxTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamHashAidxTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamHashAidxTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamHashAidxTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "A+NE35cfeEnY2MHhBM0Twg==";
+    static String __CLASS_HASH = "aO3hKAuHYd9vJquk5PiY1w==";
 }u}(j (5502e70c87e613d70db75d4804d811626d434f02jn matlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamIdxTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamIdxTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamIdxTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamIdxTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "eaBakAMUdj76AdcnIf29/Q==";
+    static String __CLASS_HASH = "hWTBrXR/SoJCr/v5CGBp5Q==";
 }u}(j (ec5dd38ea6150d4b8d92e1084501290f8c0fef27jn ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamMetadataTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamMetadataTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamMetadataTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamMetadataTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "gtouBjIyyNsb/b/qc9pCHA==";
+    static String __CLASS_HASH = "I4QsHKuDj4n21oCZPrbGRw==";
 }u}(j (003e31d632e6a70db0661c723e695e8a07ef78a2jn jatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamStore.javajp modifiedjh Kji Kjr K	js https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamStore.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamStore.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamStore.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         StreamTestStreamMetadataTable table = tables.getStreamTestStreamMetadataTable(t);
         Map<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow, StreamTestStreamHashAidxTable.StreamTestStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow r : m.keySet()) {
             for (StreamTestStreamHashAidxTable.StreamTestStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> rows = new HashSet<>();
+        Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow.of(h));
         }u}(j (67cbdf05b137660b3db269c6391c261c8816ea46jn oatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamValueTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamValueTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamValueTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamValueTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Zjb+q9OtKHIGgdeO8BnLSw==";
+    static String __CLASS_HASH = "/Af3nGP1PVa3CpaveqZwGA==";
 }u}(j (917b574b5d504d1cb1c8bf3fcffd2b3c22519a95jn zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamHashAidxTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamHashAidxTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamHashAidxTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamHashAidxTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "X1hqbiqiEZbDU9agjHYzMA==";
+    static String __CLASS_HASH = "lE3nxoiGnxh9y5ILD8Ji1Q==";
 }u}(j (303868d7e785a5c1384e703d5a65adf7a26b2a74jn uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamIdxTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamIdxTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamIdxTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamIdxTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -730,6 +731,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -753,5 +755,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "U/6cxNEugWqjJJAs3M94Ew==";
+    static String __CLASS_HASH = "R1lO5ziYaN0Udjl/IakPew==";
 }u}(j (71ec56a5ce54c4d000801a844aada1339c16a547jn zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamMetadataTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamMetadataTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamMetadataTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamMetadataTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -697,6 +698,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -720,5 +722,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "nfCYOSFgRw9vgCfK8zepPQ==";
+    static String __CLASS_HASH = "ZnMVClEGG1k/Y9BfO/PktA==";
 }u
     }(j (b239a11943f978187efeb70a40e27a8726a0f1dbjn ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamStore.javajp modifiedjh Kji Kjr K	js https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamStore.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamStore.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamStore.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         StreamTestWithHashStreamMetadataTable table = tables.getStreamTestWithHashStreamMetadataTable(t);
         Map<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow, StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow r : m.keySet()) {
             for (StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> rows = new HashSet<>();
+        Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow.of(h));
         }u}(j (c74f7ec43a6341758a168abed0155c4295302fa9jn watlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamValueTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamValueTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamValueTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamValueTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -684,6 +685,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -707,5 +709,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "gK5/dTiV0fnsYG3GkVekCA==";
+    static String __CLASS_HASH = "uywx4Vs+y/rXbP+WoU1Vqg==";
 }u}(j (01c9c33be5490be859359377b6d7903a04344513jn zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamHashAidxTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamHashAidxTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamHashAidxTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamHashAidxTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Ki6bqIt1Bc7VLmWbBOyz8w==";
+    static String __CLASS_HASH = "52McDDADyoK80XG2PM7xUQ==";
 }u}(j (693352f35cd8833aee14743963d366a5727e2a75jn uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamIdxTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamIdxTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamIdxTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamIdxTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -730,6 +731,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -753,5 +755,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "1iZU2XfKSsaB+roXMxh1gQ==";
+    static String __CLASS_HASH = "tH6ZP3FAS46/RMntNor6tw==";
 }u}(j (0d40497726fdeeb4e593498fd2a0b43d8e75e666jn zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamMetadataTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamMetadataTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamMetadataTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamMetadataTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -697,6 +698,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -720,5 +722,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "+eCmpk539lJx0Nvz/T4ltw==";
+    static String __CLASS_HASH = "j3IJu2gsDa9Zov5ZP9X4Mw==";
 }u}(j (f2eb8a4207166b17b12c7605809b2b0c3d930ff2jn ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamStore.javajp modifiedjh Kji Kjr K	js https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamStore.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamStore.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamStore.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         TestHashComponentsStreamMetadataTable table = tables.getTestHashComponentsStreamMetadataTable(t);
         Map<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow, TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow r : m.keySet()) {
             for (TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> rows = new HashSet<>();
+        Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow.of(h));
         }u}(j (e7ad00be1ac27e569b3ab9038b9fe44f48f231dbjn watlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamValueTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamValueTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamValueTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamValueTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -685,6 +686,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -708,5 +710,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "lib/FOHtmiJ4apr21C/FRA==";
+    static String __CLASS_HASH = "iDMBVL6YNzaq38VRV2lB/g==";
 }u}(j (cc8b41318d17db1f892fc5ec26f90d1af877c1b2jn $changelog/@unreleased/pr-6571.v2.ymljp addedjh Kji K jr Kjs |https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/changelog%2F%40unreleased%2Fpr-6571.v2.ymlju {https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/changelog%2F%40unreleased%2Fpr-6571.v2.ymljw https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6571.v2.yml?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Generate StreamStore implementations with presized maps/sets
+  links:
+  - https://github.com/palantir/atlasdb/pull/6571u}(j (c2fb36880db07b47881646a3cd81e9f271638446jn vexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserPhotosStreamHashAidxTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamHashAidxTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamHashAidxTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamHashAidxTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "iZ+WrjLjlfsRJ+4PXOxllA==";
+    static String __CLASS_HASH = "vICtXgN//uNG/gj7cFWrOQ==";
 }u}(j (e49d24081d562e00a550119b818f297048d50661jn qexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserPhotosStreamIdxTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamIdxTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamIdxTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamIdxTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "/5EqpAIHVfvrgAAL314Q6g==";
+    static String __CLASS_HASH = "evlQwEFn9nzK+VsNjgPIJA==";
 }u}(j (08b73ce8b3b9ac1429d38284f07d08d8596984cejn vexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserPhotosStreamMetadataTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamMetadataTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamMetadataTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamMetadataTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "tIyb2ulllUpil2D9Zl4zpA==";
+    static String __CLASS_HASH = "7ViZjlUfW+7BKGwGDvuIww==";
 }u}(j (72052cf73ef5aa5b32eb5b5b1f6d58c0b9122513jn nexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserPhotosStreamStore.javajp modifiedjh Kji Kjr K	js https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamStore.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamStore.javajw https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamStore.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<UserPhotosStreamMetadataTable.UserPhotosStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<UserPhotosStreamMetadataTable.UserPhotosStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         UserPhotosStreamMetadataTable table = tables.getUserPhotosStreamMetadataTable(t);
         Map<UserPhotosStreamMetadataTable.UserPhotosStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<UserPhotosStreamMetadataTable.UserPhotosStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow, UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow r : m.keySet()) {
             for (UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow> rows = new HashSet<>();
+        Set<UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow.of(h));
         }u}(j (83cd7d93a31541131e10d013afd149bb96a8ba96jn sexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserPhotosStreamValueTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamValueTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamValueTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamValueTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "gyLvhEYvzXXshQvSEEOq3Q==";
+    static String __CLASS_HASH = "vnCpFwiY6zZC+s1UYLuLCw==";
 }u}(j (0966bf8d91605107a3f820775bb4e4e284a9efb1jn iexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserProfileTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserProfileTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserProfileTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserProfileTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -3317,6 +3318,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -3340,5 +3342,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "3Edl1drru2bGGW0fAmHL/g==";
+    static String __CLASS_HASH = "FUR78HF+b7t9uXpBh7oYCQ==";
 }u}(j (0b2e25c1efbf2581b0f2ea54e67e8b583c906ac4jn timelock-server-benchmark-client/src/main/java/com/palantir/atlasdb/timelock/benchmarks/schema/generated/BlobsSerializableTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FBlobsSerializableTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FBlobsSerializableTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FBlobsSerializableTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "jpbUef6G6FMHoZjbw+bBKQ==";
+    static String __CLASS_HASH = "X9vlVcKWG1PnG8EugUP/kA==";
 }u}(j (09a27f561e01b9eb3709f6d67aa6cffeb97e3da4jn xtimelock-server-benchmark-client/src/main/java/com/palantir/atlasdb/timelock/benchmarks/schema/generated/BlobsTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FBlobsTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FBlobsTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FBlobsTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "ebAUSbvXjUAAU8MmEfZdhw==";
+    static String __CLASS_HASH = "RU6CLtTd3DluJLwkYHXzeQ==";
 }u}(j (3faee9118f858e0ca89e83898a0999931a40e261jn timelock-server-benchmark-client/src/main/java/com/palantir/atlasdb/timelock/benchmarks/schema/generated/KvDynamicColumnsTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FKvDynamicColumnsTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FKvDynamicColumnsTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FKvDynamicColumnsTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -810,6 +811,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -833,5 +835,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "WonqNwl3FFSJcXG3L2uHcA==";
+    static String __CLASS_HASH = "ujWl4A2gAakYQiWxv+hZew==";
 }u}(j (1370c1cea330883f414f3b9ea89fbad05a2c1487jn ytimelock-server-benchmark-client/src/main/java/com/palantir/atlasdb/timelock/benchmarks/schema/generated/KvRowsTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FKvRowsTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FKvRowsTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FKvRowsTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -776,6 +777,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -799,5 +801,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "G3l1p9aHW8n32yBnhbylTQ==";
+    static String __CLASS_HASH = "E7HBSSSWtvxMljBiJQ/8mg==";
 }u}(j (3bf5d8d5916fe24a6fc9c5c8898f75c2e2c00d09jn {timelock-server-benchmark-client/src/main/java/com/palantir/atlasdb/timelock/benchmarks/schema/generated/MetadataTable.javajp modifiedjh Kji Kjr Kjs https://github.com/palantir/atlasdb/blob/dd7a181790fc2e528b8ee9929a3046cb6285c776/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FMetadataTable.javaju https://github.com/palantir/atlasdb/raw/dd7a181790fc2e528b8ee9929a3046cb6285c776/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FMetadataTable.javajw https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-benchmark-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fbenchmarks%2Fschema%2Fgenerated%2FMetadataTable.java?ref=dd7a181790fc2e528b8ee9929a3046cb6285c776jy X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -748,6 +749,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -771,5 +773,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "ZnB3dQeFf2sMuVxmdZI9OQ==";
+    static String __CLASS_HASH = "MVgxOXWoD/e8wdW5v1b6og==";
 }ueu(526225736500fdd12ad840a285a43f87114e1d7a}(sha(526225736500fdd12ad840a285a43f87114e1d7anode_idEC_kwDOAjP5fdoAKDUyNjIyNTczNjUwMGZkZDEyYWQ4NDBhMjg1YTQzZjg3MTE0ZTFkN2Ecommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-22T10:05:38Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-22T10:05:38Zumessagecompile no compiletree}(j (d20a5a385d02572c95902284d507a8fdae82257burl`https://api.github.com/repos/palantir/atlasdb/git/trees/d20a5a385d02572c95902284d507a8fdae82257buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/526225736500fdd12ad840a285a43f87114e1d7a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRrPnMACgkQPlMHVIT1
yhqmLwf/cap2HtXLZRiossaKJ9CvaHQqhd53kACfOJw7ukT26MQvP/ZJ/9/ypec9
y8v0vD7t6QhmcYsfJjfVwQIVbfqt5TxG2N3bn8sXcz+3FF4PyrHQ1oUIHb4ZybYH
b/B2XAoubYNejyXPYwIH6VOlLX5ykZOAdgSq2/w44OkTWbAy9jN7wR348m67rSgg
CCK4QiPYN6/qUixasNzeHxSJPNPX20T2xNXTSsJSeqqxMGNhCiTPINUeaTY6cnuO
isUtLU4/JoOAa4dYOAw7yksIQd4swMO94vQHur5IpblBEBEQgIgaYl3FpewehZvN
3L0/DRBcwMIJspTV01QJCa1xTvb4qw==
=raRF
-----END PGP SIGNATURE-----payloadtree d20a5a385d02572c95902284d507a8fdae82257b
parent 8dd47179d8862282fb4a094308e26b5b65e8dcf3
author Ahmed Alouane <aalouane@palantir.com> 1684749938 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684749938 +0100

compile no compile
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/526225736500fdd12ad840a285a43f87114e1d7ahtml_urlShttps://github.com/palantir/atlasdb/commit/526225736500fdd12ad840a285a43f87114e1d7acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/526225736500fdd12ad840a285a43f87114e1d7a/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j (8dd47179d8862282fb4a094308e26b5b65e8dcf3j ^https://api.github.com/repos/palantir/atlasdb/commits/8dd47179d8862282fb4a094308e26b5b65e8dcf3j Shttps://github.com/palantir/atlasdb/commit/8dd47179d8862282fb4a094308e26b5b65e8dcf3uastats}(totalK	additionsK	deletionsKufiles]}(j (fdbd178c7c1713708df62247b7fb4d735137857bfilename.circleci/config.ymlstatusmodifiedj Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/526225736500fdd12ad840a285a43f87114e1d7a/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/526225736500fdd12ad840a285a43f87114e1d7a/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=526225736500fdd12ad840a285a43f87114e1d7apatchX  @@ -159,7 +159,7 @@ workflows:
             tags:
               only: /.*/
       - test-suite:
-          requires: [build, compile]
+          requires: [build]
           matrix:
             alias: test-no-tl
             parameters:
@@ -169,7 +169,7 @@ workflows:
             tags:
               only: /.*/
       - test-suite:
-          requires: [build, compile]
+          requires: [build]
           matrix:
             alias: test-tl
             parameters:uau(613e115d909748315adbea905ad912518b569b38}(sha(613e115d909748315adbea905ad912518b569b38node_idEC_kwDOAjP5fdoAKDYxM2UxMTVkOTA5NzQ4MzE1YWRiZWE5MDVhZDkxMjUxOGI1NjliMzgcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-06-22T16:27:51Zu	committer}(j, svc-autoreleasej. -pd-foundry-infrastructure-notify@palantir.comj0 2023-06-22T16:27:51ZumessageAutorelease 0.878.0

[skip ci]tree}(j$ (175fcf6abc104595820eed08665916f10cc4bfefurl`https://api.github.com/repos/palantir/atlasdb/git/trees/175fcf6abc104595820eed08665916f10cc4bfefuj< bhttps://api.github.com/repos/palantir/atlasdb/git/commits/613e115d909748315adbea905ad912518b569b38
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmSUdo0ACgkQhbrR8ip7mDB/IQD/YVbP3SrtPse6KH6EmivwPbw0
7MkUe3B9KqLjpyQS504A/iMWZumHyPWPSw9OMoSEI4CyvXVE2FiufMaJSMHUOWyB
=06BX
-----END PGP SIGNATURE-----
payloadX0  tree 175fcf6abc104595820eed08665916f10cc4bfef
parent c22a9122dc1ce1542da8713f8f69613baf873522
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1687451271 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1687451271 +0000

Autorelease 0.878.0

[skip ci]uuj< ^https://api.github.com/repos/palantir/atlasdb/commits/613e115d909748315adbea905ad912518b569b38html_urlShttps://github.com/palantir/atlasdb/commit/613e115d909748315adbea905ad912518b569b38comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/613e115d909748315adbea905ad912518b569b38/commentsj* }(loginsvc-autoreleaseidJ(j& MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j< ,https://api.github.com/users/svc-autoreleasejJ "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj2 }(jO svc-autoreleasejQ J(j& MDQ6VXNlcjUxNzE4MzQ2jS 4https://avatars.githubusercontent.com/u/51718346?v=4jU h5j< ,https://api.github.com/users/svc-autoreleasejJ "https://github.com/svc-autoreleasejX 6https://api.github.com/users/svc-autorelease/followersjZ Chttps://api.github.com/users/svc-autorelease/following{/other_user}j\ <https://api.github.com/users/svc-autorelease/gists{/gist_id}j^ Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j` :https://api.github.com/users/svc-autorelease/subscriptionsjb 1https://api.github.com/users/svc-autorelease/orgsjd 2https://api.github.com/users/svc-autorelease/reposjf =https://api.github.com/users/svc-autorelease/events{/privacy}jh <https://api.github.com/users/svc-autorelease/received_eventsjj Userjl uparents]}(j$ (c22a9122dc1ce1542da8713f8f69613baf873522j< ^https://api.github.com/repos/palantir/atlasdb/commits/c22a9122dc1ce1542da8713f8f69613baf873522jJ Shttps://github.com/palantir/atlasdb/commit/c22a9122dc1ce1542da8713f8f69613baf873522uastats}(totalK 	additionsK 	deletionsK ufiles]}(j$ (46b215e4664b4438f038bf048c14656f6fb089e1filename changelog/0.878.0/pr-6630.v2.ymlstatusrenamedj K j K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/613e115d909748315adbea905ad912518b569b38/changelog%2F0.878.0%2Fpr-6630.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/613e115d909748315adbea905ad912518b569b38/changelog%2F0.878.0%2Fpr-6630.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.878.0%2Fpr-6630.v2.yml?ref=613e115d909748315adbea905ad912518b569b38previous_filename$changelog/@unreleased/pr-6630.v2.ymluau(5ed07faa5e19406671f7758321199d090d33459f}(sha(5ed07faa5e19406671f7758321199d090d33459fnode_idEC_kwDOAjP5fdoAKDVlZDA3ZmFhNWUxOTQwNjY3MWY3NzU4MzIxMTk5ZDA5MGQzMzQ1OWYcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-20T10:27:52Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-07-20T12:44:30ZumessageAddress commentstree}(j (089190d29fa6528c22c9230acd84c693c0239560url`https://api.github.com/repos/palantir/atlasdb/git/trees/089190d29fa6528c22c9230acd84c693c0239560uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5ed07faa5e19406671f7758321199d090d33459f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS5LC4ACgkQmF9s0kaF
Iw1Hawf+KtHmlhB+L3xWptRv18n/wIorGzMej5NBfk6cdS0e6TjdxKY+613TT8lo
sIFNufmi+hjf4tlUaOZsL/Ew7ZWCgzOK31FpOxpPLFviYMmXMvUPTdphhddTjq7q
c7PVxVVU3WqaQ/IH7aAHcmxb+IFlDNsARI35CbzEdPqW33i8UJnVFie9ksrgljNL
dTQ7H7kULWJXfS8PJQEXtkgXsXoQ9kZASgXYxonkiyYx66GBSK1LwGV9nGbM+ccc
/HrIdyL8DqriAiG3X97Mo9tFqHd+XBPDF5WnN7SYiLDF0WWoSDmnDBnIbXONXR85
OE0zO2JKil44bbypEuQfg18EeGqidA==
=sNL8
-----END PGP SIGNATURE-----payloadtree 089190d29fa6528c22c9230acd84c693c0239560
parent 1f96f2c483b00da53c1157959f7d79c4ec13be5d
author Tom Papke <tpapke@palantir.com> 1689848872 +0100
committer Tom Papke <tpapke@palantir.com> 1689857070 +0100

Address comments
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/5ed07faa5e19406671f7758321199d090d33459fhtml_urlShttps://github.com/palantir/atlasdb/commit/5ed07faa5e19406671f7758321199d090d33459fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5ed07faa5e19406671f7758321199d090d33459f/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jboj MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(j (1f96f2c483b00da53c1157959f7d79c4ec13be5dj ^https://api.github.com/repos/palantir/atlasdb/commits/1f96f2c483b00da53c1157959f7d79c4ec13be5dj Shttps://github.com/palantir/atlasdb/commit/1f96f2c483b00da53c1157959f7d79c4ec13be5duastats}(totalM	additionsK	deletionsKufiles](}(j (61604476876c718808c5de4dd8e4fd268b6fefb2filenameZtimelock-agent/src/main/java/com/palantir/timelock/paxos/AsyncTimeLockServicesCreator.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5ed07faa5e19406671f7758321199d090d33459f/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5ed07faa5e19406671f7758321199d090d33459f/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.java?ref=5ed07faa5e19406671f7758321199d090d33459fpatchX	  @@ -24,8 +24,8 @@
 import com.palantir.atlasdb.timelock.lock.AsyncLockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.atlasdb.timelock.lock.NonTransactionalLockService;
-import com.palantir.atlasdb.timelock.metrics.RequestMetadataMetrics;
-import com.palantir.atlasdb.timelock.metrics.StoredMetadataMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
 import com.palantir.atlasdb.timelock.paxos.LeadershipComponents;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.concurrent.NamedThreadFactory;
@@ -100,10 +100,10 @@ private AsyncTimelockService createRawAsyncTimelockService(
                         maybeEnhancedLockLog,
                         reaperExecutor,
                         timeoutExecutor,
-                        StoredMetadataMetrics.of(metricsManager.getTaggedRegistry())),
+                        CurrentMetrics.of(metricsManager.getTaggedRegistry())),
                 timestampServiceSupplier.get(),
                 maybeEnhancedLockLog,
-                RequestMetadataMetrics.of(metricsManager.getTaggedRegistry()));
+                RequestMetrics.of(metricsManager.getTaggedRegistry()));
     }
 
     /**u}(j (766681eb5110e69d8b5ba22d3e599cc900172c5bj timelock-impl/build.gradlej modifiedj Kj Kj Kj nhttps://github.com/palantir/atlasdb/blob/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fbuild.gradlej
 mhttps://github.com/palantir/atlasdb/raw/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fbuild.gradle?ref=5ed07faa5e19406671f7758321199d090d33459fj @@ -105,6 +105,6 @@ dependencies {
 }
 
 license {
-    exclude '**/RequestMetadataMetrics.java'
-    exclude '**/StoredMetadataMetrics.java'
+    exclude '**/RequestMetrics.java'
+    exclude '**/CurrentMetrics.java'
 }u}(j (9621a8f2b663bdf3ad29791637809be64ba5a328j Wtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/AsyncTimelockServiceImpl.javaj modifiedj Kj K
j Kj https://github.com/palantir/atlasdb/blob/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.javaj
 https://github.com/palantir/atlasdb/raw/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.java?ref=5ed07faa5e19406671f7758321199d090d33459fj X
  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.timelock;
 
+import com.codahale.metrics.Histogram;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.SettableFuture;
@@ -29,7 +30,7 @@
 import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.atlasdb.timelock.lock.TimeLimit;
 import com.palantir.atlasdb.timelock.lock.watch.ValueAndLockWatchStateUpdate;
-import com.palantir.atlasdb.timelock.metrics.RequestMetadataMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
 import com.palantir.atlasdb.timelock.transaction.timestamp.DelegatingClientAwareManagedTimestampService;
 import com.palantir.atlasdb.timelock.transaction.timestamp.LeadershipGuardedClientAwareManagedTimestampService;
 import com.palantir.lock.LockDescriptor;
@@ -63,14 +64,14 @@ public class AsyncTimelockServiceImpl implements AsyncTimelockService {
     private final AsyncLockService lockService;
     private final LeadershipGuardedClientAwareManagedTimestampService timestampService;
     private final LockLog lockLog;
-    private final RequestMetadataMetrics metadataMetrics;
+    private final Histogram changeMetadataHistogram;
 
     public AsyncTimelockServiceImpl(
             AsyncLockService lockService,
             ManagedTimestampService timestampService,
             LockLog lockLog,
-            RequestMetadataMetrics metadataMetrics) {
-        this.metadataMetrics = metadataMetrics;
+            RequestMetrics metadataMetrics) {
+        this.changeMetadataHistogram = metadataMetrics.changeMetadata();
         this.lockService = lockService;
         this.timestampService = new LeadershipGuardedClientAwareManagedTimestampService(
                 DelegatingClientAwareManagedTimestampService.createDefault(timestampService));
@@ -112,12 +113,9 @@ public ListenableFuture<LockResponseV2> lock(IdentifiedLockRequest request) {
                 request.getLockDescriptors(),
                 TimeLimit.of(request.getAcquireTimeoutMs()),
                 request.getMetadata());
-        metadataMetrics
-                .changeMetadataReceived()
-                .update(request.getMetadata()
-                        .map(metadata ->
-                                metadata.lockDescriptorToChangeMetadata().size())
-                        .orElse(0));
+        changeMetadataHistogram.update(request.getMetadata()
+                .map(metadata -> metadata.lockDescriptorToChangeMetadata().size())
+                .orElse(0));
         lockLog.registerRequest(request, result);
         SettableFuture<LockResponseV2> response = SettableFuture.create();
         result.onComplete(() -> {u}(j (c5a5a3e2a261d1ee3b12b95cac4e1c788c222e29j Ttimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/AsyncLockService.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javaj
 https://github.com/palantir/atlasdb/raw/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.java?ref=5ed07faa5e19406671f7758321199d090d33459fj X:  @@ -19,7 +19,7 @@
 import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingService;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingServiceImpl;
-import com.palantir.atlasdb.timelock.metrics.StoredMetadataMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LeaderTime;
 import com.palantir.lock.v2.LockToken;
@@ -62,7 +62,7 @@ public static AsyncLockService createDefault(
             LockLog lockLog,
             ScheduledExecutorService reaperExecutor,
             ScheduledExecutorService timeoutExecutor,
-            StoredMetadataMetrics metadataMetrics) {
+            CurrentMetrics metadataMetrics) {
 
         LeaderClock clock = LeaderClock.create();
 u}(j (5e6b3515a5c5fe20703e11cd19192b3417eb1ea7j etimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/ArrayLockEventSlidingWindow.javaj modifiedj K4j Kj K;j https://github.com/palantir/atlasdb/blob/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindow.javaj
 https://github.com/palantir/atlasdb/raw/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindow.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindow.java?ref=5ed07faa5e19406671f7758321199d090d33459fj X<  @@ -16,11 +16,18 @@
 
 package com.palantir.atlasdb.timelock.lock.watch;
 
+import com.codahale.metrics.Counter;
 import com.google.common.math.LongMath;
 import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
+import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
+import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
+import com.palantir.lock.watch.UnlockEvent;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import javax.annotation.concurrent.NotThreadSafe;
 
@@ -29,26 +36,45 @@ public class ArrayLockEventSlidingWindow {
     private final LockWatchEvent[] buffer;
     private final int maxSize;
     private long nextSequence = 0;
+    private final Counter changeMetadataCounter;
+    private final Counter eventsWithMetadataCounter;
 
-    ArrayLockEventSlidingWindow(int maxSize) {
+    ArrayLockEventSlidingWindow(int maxSize, CurrentMetrics metadataMetrics) {
         this.buffer = new LockWatchEvent[maxSize];
         this.maxSize = maxSize;
+        this.changeMetadataCounter = metadataMetrics.changeMetadata();
+        this.eventsWithMetadataCounter = metadataMetrics.eventsWithMetadata();
     }
 
     long lastVersion() {
         return nextSequence - 1;
     }
 
-    /**
-     * Returns the {@link LockWatchEvent} that was replaced if the buffer is already full.
-     */
-    Optional<LockWatchEvent> add(LockWatchEvent.Builder eventBuilder) {
+    void add(LockWatchEvent.Builder eventBuilder) {
         LockWatchEvent event = eventBuilder.build(nextSequence);
         int index = LongMath.mod(nextSequence, maxSize);
-        LockWatchEvent replacedEvent = buffer[index];
+        updateCurrentMetadataMetrics(
+                event.accept(LockWatchEventMetadataVisitor.INSTANCE),
+                Optional.ofNullable(buffer[index])
+                        .flatMap(replacedEvent -> replacedEvent.accept(LockWatchEventMetadataVisitor.INSTANCE)));
         buffer[index] = event;
         nextSequence++;
-        return Optional.ofNullable(replacedEvent);
+    }
+
+    private void updateCurrentMetadataMetrics(
+            Optional<LockRequestMetadata> newMetadata, Optional<LockRequestMetadata> replacedMetadata) {
+        int changeMetadataSizeDiff = newMetadata
+                        .map(LockRequestMetadata::lockDescriptorToChangeMetadata)
+                        .map(Map::size)
+                        .orElse(0)
+                - replacedMetadata
+                        .map(LockRequestMetadata::lockDescriptorToChangeMetadata)
+                        .map(Map::size)
+                        .orElse(0);
+        int numPresentMetadataDiff = newMetadata.map(_unused -> 1).orElse(0)
+                - replacedMetadata.map(_unused -> 1).orElse(0);
+        changeMetadataCounter.inc(changeMetadataSizeDiff);
+        eventsWithMetadataCounter.inc(numPresentMetadataDiff);
     }
 
     public Optional<List<LockWatchEvent>> getNextEvents(long version) {
@@ -78,4 +104,23 @@ private boolean versionInTheFuture(long version) {
     private boolean versionTooOld(long version) {
         return lastVersion() - version > maxSize;
     }
+
+    private enum LockWatchEventMetadataVisitor implements LockWatchEvent.Visitor<Optional<LockRequestMetadata>> {
+        INSTANCE;
+
+        @Override
+        public Optional<LockRequestMetadata> visit(LockEvent lockEvent) {
+            return lockEvent.metadata();
+        }
+
+        @Override
+        public Optional<LockRequestMetadata> visit(UnlockEvent unlockEvent) {
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<LockRequestMetadata> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
+            return Optional.empty();
+        }
+    }
 }u}(j (5b2f09550cedcdaef61d8df4d63bb50e0108edd2j Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImpl.javaj modifiedj Kj K2j K7j https://github.com/palantir/atlasdb/blob/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javaj
 https://github.com/palantir/atlasdb/raw/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.java?ref=5ed07faa5e19406671f7758321199d090d33459fj X  @@ -16,50 +16,42 @@
 
 package com.palantir.atlasdb.timelock.lock.watch;
 
-import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.RangeSet;
 import com.palantir.atlasdb.timelock.lock.AsyncLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
-import com.palantir.atlasdb.timelock.metrics.StoredMetadataMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.watch.LockEvent;
 import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
-import com.palantir.lock.watch.LockWatchEvent;
 import com.palantir.lock.watch.LockWatchReferences.LockWatchReference;
 import com.palantir.lock.watch.LockWatchStateUpdate;
 import com.palantir.lock.watch.LockWatchVersion;
 import com.palantir.lock.watch.UnlockEvent;
 import com.palantir.logsafe.Unsafe;
 import java.util.HashSet;
-import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 
 public class LockEventLogImpl implements LockEventLog {
-
-    @VisibleForTesting
-    static final int SLIDING_WINDOW_SIZE = 1000;
-
     private final UUID logId;
-    private final ArrayLockEventSlidingWindow slidingWindow = new ArrayLockEventSlidingWindow(SLIDING_WINDOW_SIZE);
+    private final ArrayLockEventSlidingWindow slidingWindow;
     private final Supplier<LockWatches> watchesSupplier;
     private final HeldLocksCollection heldLocksCollection;
-    private final StoredMetadataMetrics metadataMetrics;
 
     LockEventLogImpl(
             UUID logId,
             Supplier<LockWatches> watchesSupplier,
             HeldLocksCollection heldLocksCollection,
-            StoredMetadataMetrics metadataMetrics) {
+            CurrentMetrics metadataMetrics) {
         this.logId = logId;
+        this.slidingWindow = new ArrayLockEventSlidingWindow(1000, metadataMetrics);
         this.watchesSupplier = watchesSupplier;
         this.heldLocksCollection = heldLocksCollection;
-        this.metadataMetrics = metadataMetrics;
     }
 
     @Override
@@ -78,26 +70,8 @@ public synchronized <T> ValueAndLockWatchStateUpdate<T> runTask(
     @Override
     public synchronized void logLock(
             Set<LockDescriptor> locksTakenOut, LockToken lockToken, Optional<LockRequestMetadata> metadata) {
-        Optional<LockWatchEvent> replacedEvent =
-                slidingWindow.add(LockEvent.builder(locksTakenOut, lockToken, metadata));
-        updateMetadataMetrics(
-                metadata, replacedEvent.flatMap(event -> event.accept(LockEventMetadataVisitor.INSTANCE)));
-    }
 
-    private void updateMetadataMetrics(
-            Optional<LockRequestMetadata> newMetadata, Optional<LockRequestMetadata> replacedMetadata) {
-        int changeMetadataSizeDiff = newMetadata
-                        .map(LockRequestMetadata::lockDescriptorToChangeMetadata)
-                        .map(Map::size)
-                        .orElse(0)
-                - replacedMetadata
-                        .map(LockRequestMetadata::lockDescriptorToChangeMetadata)
-                        .map(Map::size)
-                        .orElse(0);
-        int numPresentMetadataDiff = newMetadata.map(_unused -> 1).orElse(0)
-                - replacedMetadata.map(_unused -> 1).orElse(0);
-        metadataMetrics.changeMetadataStored().inc(changeMetadataSizeDiff);
-        metadataMetrics.eventsWithMetadataStored().inc(numPresentMetadataDiff);
+        slidingWindow.add(LockEvent.builder(locksTakenOut, lockToken, metadata));
     }
 
     @Override
@@ -142,23 +116,4 @@ private Set<LockDescriptor> calculateOpenLocks(RangeSet<LockDescriptor> watchedR
                 .filter(watchedRanges::contains)
                 .collect(Collectors.toSet());
     }
-
-    private enum LockEventMetadataVisitor implements LockWatchEvent.Visitor<Optional<LockRequestMetadata>> {
-        INSTANCE;
-
-        @Override
-        public Optional<LockRequestMetadata> visit(LockEvent lockEvent) {
-            return lockEvent.metadata();
-        }
-
-        @Override
-        public Optional<LockRequestMetadata> visit(UnlockEvent unlockEvent) {
-            return Optional.empty();
-        }
-
-        @Override
-        public Optional<LockRequestMetadata> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
-            return Optional.empty();
-        }
-    }
 }u(      }(j (c91a07c65fa2c556cec9aa057aa9135eb882541cj atimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj
 https://github.com/palantir/atlasdb/raw/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=5ed07faa5e19406671f7758321199d090d33459fj Xf  @@ -22,7 +22,7 @@
 import com.google.common.collect.TreeRangeSet;
 import com.palantir.atlasdb.timelock.api.LockWatchRequest;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
-import com.palantir.atlasdb.timelock.metrics.StoredMetadataMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LeadershipId;
@@ -74,13 +74,12 @@ public class LockWatchingServiceImpl implements LockWatchingService {
     private final ReadWriteLock watchesLock = new ReentrantReadWriteLock(true);
 
     public LockWatchingServiceImpl(
-            HeldLocksCollection heldLocksCollection, LeadershipId leadershipId, StoredMetadataMetrics metadataMetrics) {
+            HeldLocksCollection heldLocksCollection, LeadershipId leadershipId, CurrentMetrics metadataMetrics) {
         this(leadershipId.id(), heldLocksCollection, metadataMetrics);
     }
 
     @VisibleForTesting
-    LockWatchingServiceImpl(
-            UUID logId, HeldLocksCollection heldLocksCollection, StoredMetadataMetrics metadataMetrics) {
+    LockWatchingServiceImpl(UUID logId, HeldLocksCollection heldLocksCollection, CurrentMetrics metadataMetrics) {
         this.lockEventLog = new LockEventLogImpl(logId, watches::get, heldLocksCollection, metadataMetrics);
     }
 u}(j (a31bdf42575195ef4328f050652c7175fbea6b5ej +timelock-impl/src/main/metrics/metadata.ymlj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Fmetadata.ymlj
 https://github.com/palantir/atlasdb/raw/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Fmetadata.ymlj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fmetrics%2Fmetadata.yml?ref=5ed07faa5e19406671f7758321199d090d33459fj Xb  @@ -1,20 +1,20 @@
 options:
-  javaPackage: 'com.palantir.atlasdb.timelock.metrics'
+  javaPackage: 'com.palantir.atlasdb.timelock.lockwatches'
 
 namespaces:
-  requestMetadata:
-    docs: Metrics tracking metadata presence in lock requests sent to TimeLock
+  request:
+    docs: Metrics tracking metadata presence in lock requests received by TimeLock
     metrics:
-      changeMetadataReceived:
+      changeMetadata:
         docs: Number of change metadata objects contained in a lock request
         type: histogram
-  storedMetadata:
-    docs: Metrics tracking metadata stored in LockEvents in the LockWatchEvent sliding window
+  current:
+    docs: Metrics tracking metadata currently stored in LockEvents in the LockWatchEvent sliding window
     metrics:
-      eventsWithMetadataStored:
+      eventsWithMetadata:
         docs: Number of LockEvents currently stored in the sliding window that have non-absent metadata
         type: counter
-      changeMetadataStored:
+      changeMetadata:
         docs: Number of change metadata objects currently stored in the sliding window
         type: counter
 u}(j (d612d1bb1d5eea09655d460bf0f0ad1077579a6dj [timelock-impl/src/test/java/com/palantir/atlasdb/timelock/AsyncTimelockServiceImplTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImplTest.javaj
 https://github.com/palantir/atlasdb/raw/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImplTest.java?ref=5ed07faa5e19406671f7758321199d090d33459fj X  @@ -21,7 +21,7 @@
 
 import com.palantir.atlasdb.timelock.lock.AsyncLockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;
-import com.palantir.atlasdb.timelock.metrics.RequestMetadataMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
 import com.palantir.timestamp.ManagedTimestampService;
 import org.junit.Test;
 
@@ -30,7 +30,7 @@ public class AsyncTimelockServiceImplTest {
     public void delegatesInitializationCheck() {
         ManagedTimestampService mockMts = mock(ManagedTimestampService.class);
         AsyncTimelockServiceImpl service = new AsyncTimelockServiceImpl(
-                mock(AsyncLockService.class), mockMts, mock(LockLog.class), mock(RequestMetadataMetrics.class));
+                mock(AsyncLockService.class), mockMts, mock(LockLog.class), mock(RequestMetrics.class));
         when(mockMts.isInitialized()).thenReturn(false).thenReturn(true);
 
         assertThat(service.isInitialized()).isFalse();u}(j (11932e8e528e26d99ebe44168e11158df4a7a56bj Xtimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/AsyncLockServiceTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javaj
 https://github.com/palantir/atlasdb/raw/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.java?ref=5ed07faa5e19406671f7758321199d090d33459fj X0  @@ -18,7 +18,7 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
-import com.palantir.atlasdb.timelock.metrics.StoredMetadataMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.common.concurrent.PTExecutors;
@@ -36,7 +36,7 @@ public void executorsShutDownAfterClose() {
                 new LockLog(metricsManager.getRegistry(), () -> 1L),
                 reaperExecutor,
                 timeoutExecutor,
-                StoredMetadataMetrics.of(metricsManager.getTaggedRegistry()));
+                CurrentMetrics.of(metricsManager.getTaggedRegistry()));
 
         asyncLockService.close();
         assertThat(reaperExecutor.isShutdown()).isTrue();u}(j (7e95a2415c05e38c189961ec9f70ade5bd040f32j itimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/ArrayLockEventSlidingWindowTest.javaj modifiedj KWj Kj Kjj https://github.com/palantir/atlasdb/blob/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.javaj
 https://github.com/palantir/atlasdb/raw/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FArrayLockEventSlidingWindowTest.java?ref=5ed07faa5e19406671f7758321199d090d33459fj X  @@ -18,17 +18,39 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchEvent;
 import java.util.List;
+import java.util.Optional;
+import java.util.Set;
+import java.util.UUID;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import java.util.stream.LongStream;
-import org.immutables.value.Value;
 import org.junit.Test;
 
 public class ArrayLockEventSlidingWindowTest {
     private static final int WINDOW_SIZE = 10;
 
-    private final ArrayLockEventSlidingWindow slidingWindow = new ArrayLockEventSlidingWindow(WINDOW_SIZE);
+    private static final LockDescriptor LOCK_1 = StringLockDescriptor.of("abc");
+    private static final LockDescriptor LOCK_2 = StringLockDescriptor.of("def");
+    private static final LockDescriptor LOCK_3 = StringLockDescriptor.of("ghi");
+    private static final LockToken TOKEN = LockToken.of(UUID.randomUUID());
+
+    private final CurrentMetrics metadataMetrics =
+            CurrentMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
+    private final ArrayLockEventSlidingWindow slidingWindow =
+            new ArrayLockEventSlidingWindow(WINDOW_SIZE, metadataMetrics);
 
     @Test
     public void whenLastKnownVersionIsAfterCurrentReturnEmpty() {
@@ -72,6 +94,65 @@ public void returnRangeAfterBoundary() {
         assertContainsNextEventsInOrder(10, 11, 14);
     }
 
+    @Test
+    public void countsMetadataCorrectlyStartingFromEmptyBuffer() {
+        LockRequestMetadata metadata = LockRequestMetadata.of(ImmutableMap.of(
+                LOCK_1, ChangeMetadata.unchanged(), LOCK_2, ChangeMetadata.created(PtBytes.toBytes("foo"))));
+        LockRequestMetadata metadata2 =
+                LockRequestMetadata.of(ImmutableMap.of(LOCK_3, ChangeMetadata.deleted(PtBytes.toBytes("bar"))));
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_1, LOCK_2), Optional.of(metadata));
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_3), Optional.of(metadata2));
+
+        assertThat(metadataMetrics.changeMetadata().getCount()).isEqualTo(3);
+        assertThat(metadataMetrics.eventsWithMetadata().getCount()).isEqualTo(2);
+
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_1), Optional.empty());
+        addLockEventWithMetadata(ImmutableSet.of(), Optional.of(LockRequestMetadata.of(ImmutableMap.of())));
+
+        assertThat(metadataMetrics.changeMetadata().getCount())
+                .as("Absent metadata should count for nothing")
+                .isEqualTo(3);
+        assertThat(metadataMetrics.eventsWithMetadata().getCount())
+                .as("Empty metadata map should count for present metadata")
+                .isEqualTo(3);
+    }
+
+    @Test
+    public void maintainsCorrectMetadataCountWhenOverwritingBuffer() {
+        assertThat(WINDOW_SIZE).as("This test does not work with small windows").isGreaterThanOrEqualTo(5);
+
+        IntStream.range(0, WINDOW_SIZE).forEach(i -> {
+            LockDescriptor lock = StringLockDescriptor.of("lock" + i);
+            LockRequestMetadata metadata = LockRequestMetadata.of(
+                    ImmutableMap.of(lock, ChangeMetadata.created(PtBytes.toBytes("created" + i))));
+            addLockEventWithMetadata(ImmutableSet.of(lock), Optional.of(metadata));
+        });
+        assertThat(metadataMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+        assertThat(metadataMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+
+        // Counts are maintained if we replace an event with metadata of same size
+        addLockEventWithMetadata(
+                ImmutableSet.of(LOCK_1),
+                Optional.of(LockRequestMetadata.of(ImmutableMap.of(LOCK_1, ChangeMetadata.unchanged()))));
+        assertThat(metadataMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+        assertThat(metadataMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE);
+
+        // Both counts can decrease
+        addLockEventWithMetadata(ImmutableSet.of(LOCK_1), Optional.empty());
+        assertThat(metadataMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
+        assertThat(metadataMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
+
+        // ChangeMetadata count can increase
+        addLockEventWithMetadata(
+                ImmutableSet.of(LOCK_1, LOCK_2, LOCK_3),
+                Optional.of(LockRequestMetadata.of(ImmutableMap.of(
+                        LOCK_1, ChangeMetadata.created(PtBytes.toBytes("created")),
+                        LOCK_2, ChangeMetadata.unchanged(),
+                        LOCK_3, ChangeMetadata.updated(PtBytes.toBytes("old"), PtBytes.toBytes("new"))))));
+        assertThat(metadataMetrics.changeMetadata().getCount()).isEqualTo(WINDOW_SIZE + 1);
+        assertThat(metadataMetrics.eventsWithMetadata().getCount()).isEqualTo(WINDOW_SIZE - 1);
+    }
+
     private void whenLogContainsEvents0To4() {
         // Log contains events [0,1,2,3,4]
         addEvents(5);
@@ -101,24 +182,11 @@ private void assertContainsNextEventsInOrder(long version, int startInclusive, i
                         .collect(Collectors.toList()));
     }
 
-    private static LockWatchEvent createEvent(long sequence) {
-        return ImmutableFakeLockWatchEvent.of(sequence, 1);
+    private void addLockEventWithMetadata(Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {
+        slidingWindow.add(LockEvent.builder(lockDescriptors, TOKEN, metadata));
     }
 
-    @Value.Immutable
-    abstract static class FakeLockWatchEvent implements LockWatchEvent {
-        @Override
-        @Value.Parameter
-        public abstract long sequence();
-
-        @Override
-        @Value.Parameter
-        public abstract int size();
-
-        @Override
-        public <T> T accept(LockWatchEvent.Visitor<T> visitor) {
-            // do nothing
-            return null;
-        }
+    private static LockWatchEvent createEvent(long sequence) {
+        return LockEvent.builder(ImmutableSet.of(), TOKEN).build(sequence);
     }
 }u}(j (a460dc03eeab30ebefe8a1628011cc6a4b9cd992j ^timelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImplTest.javaj modifiedj Kj KKj KQj https://github.com/palantir/atlasdb/blob/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.javaj
 https://github.com/palantir/atlasdb/raw/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImplTest.java?ref=5ed07faa5e19406671f7758321199d090d33459fj X]  @@ -20,7 +20,6 @@
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
-import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.RangeSet;
 import com.google.common.collect.TreeRangeSet;
@@ -31,15 +30,12 @@
 import com.palantir.atlasdb.timelock.lock.ExclusiveLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocks;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
-import com.palantir.atlasdb.timelock.metrics.StoredMetadataMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
-import com.palantir.lock.StringLockDescriptor;
 import com.palantir.lock.v2.LockToken;
-import com.palantir.lock.watch.ChangeMetadata;
 import com.palantir.lock.watch.LockEvent;
-import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchReferences;
 import com.palantir.lock.watch.LockWatchReferences.LockWatchReference;
@@ -51,7 +47,6 @@
 import java.util.UUID;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.stream.Collectors;
-import java.util.stream.IntStream;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -74,10 +69,11 @@ public class LockEventLogImplTest {
     private final AtomicReference<LockWatches> lockWatches = new AtomicReference<>(LockWatches.create());
     private final HeldLocksCollection heldLocksCollection = mock(HeldLocksCollection.class);
     private final HeldLocks heldLocks = mock(HeldLocks.class);
-    private final StoredMetadataMetrics metadataMetrics =
-            StoredMetadataMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
-    private final LockEventLog log =
-            new LockEventLogImpl(LOG_ID, lockWatches::get, heldLocksCollection, metadataMetrics);
+    private final LockEventLog log = new LockEventLogImpl(
+            LOG_ID,
+            lockWatches::get,
+            heldLocksCollection,
+            CurrentMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
 
     @Before
     public void setupMocks() {
@@ -181,71 +177,6 @@ public void requestWithStaleLogIdReturnsSnapshot() {
         assertThat(snapshot.lockWatches()).containsExactly(entireTable);
     }
 
-    @Test
-    public void countsMetadataCorrectlyStartingFromEmptyBuffer() {
-        LockRequestMetadata metadata = LockRequestMetadata.of(ImmutableMap.of(
-                DESCRIPTOR, ChangeMetadata.unchanged(), DESCRIPTOR_2, ChangeMetadata.created(PtBytes.toBytes("foo"))));
-        LockRequestMetadata metadata2 =
-                LockRequestMetadata.of(ImmutableMap.of(DESCRIPTOR_3, ChangeMetadata.deleted(PtBytes.toBytes("bar"))));
-        log.logLock(ImmutableSet.of(DESCRIPTOR, DESCRIPTOR_2), TOKEN, Optional.of(metadata));
-        log.logLock(ImmutableSet.of(DESCRIPTOR_3), TOKEN, Optional.of(metadata2));
-
-        assertThat(metadataMetrics.changeMetadataStored().getCount()).isEqualTo(3);
-        assertThat(metadataMetrics.eventsWithMetadataStored().getCount()).isEqualTo(2);
-
-        log.logLock(ImmutableSet.of(DESCRIPTOR), TOKEN, Optional.empty());
-        log.logLock(ImmutableSet.of(), TOKEN, Optional.of(LockRequestMetadata.of(ImmutableMap.of())));
-
-        assertThat(metadataMetrics.changeMetadataStored().getCount())
-                .as("Absent metadata should count for nothing")
-                .isEqualTo(3);
-        assertThat(metadataMetrics.eventsWithMetadataStored().getCount())
-                .as("Empty metadata map should count for present metadata")
-                .isEqualTo(3);
-    }
-
-    @Test
-    public void maintainsCorrectMetadataCountWhenOverwritingBuffer() {
-        IntStream.range(0, LockEventLogImpl.SLIDING_WINDOW_SIZE).forEach(i -> {
-            LockDescriptor lock = StringLockDescriptor.of("lock" + i);
-            LockRequestMetadata metadata = LockRequestMetadata.of(
-                    ImmutableMap.of(lock, ChangeMetadata.created(PtBytes.toBytes("created" + i))));
-            log.logLock(ImmutableSet.of(lock), TOKEN, Optional.of(metadata));
-        });
-        assertThat(metadataMetrics.changeMetadataStored().getCount()).isEqualTo(LockEventLogImpl.SLIDING_WINDOW_SIZE);
-        assertThat(metadataMetrics.eventsWithMetadataStored().getCount())
-                .isEqualTo(LockEventLogImpl.SLIDING_WINDOW_SIZE);
-
-        // Counts are maintained if we replace an event with metadata of same size
-        log.logLock(
-                ImmutableSet.of(DESCRIPTOR),
-                TOKEN,
-                Optional.of(LockRequestMetadata.of(ImmutableMap.of(DESCRIPTOR, ChangeMetadata.unchanged()))));
-        assertThat(metadataMetrics.changeMetadataStored().getCount()).isEqualTo(LockEventLogImpl.SLIDING_WINDOW_SIZE);
-        assertThat(metadataMetrics.eventsWithMetadataStored().getCount())
-                .isEqualTo(LockEventLogImpl.SLIDING_WINDOW_SIZE);
-
-        // Both counts can decrease
-        log.logLock(ImmutableSet.of(DESCRIPTOR), TOKEN, Optional.empty());
-        assertThat(metadataMetrics.changeMetadataStored().getCount())
-                .isEqualTo(LockEventLogImpl.SLIDING_WINDOW_SIZE - 1);
-        assertThat(metadataMetrics.eventsWithMetadataStored().getCount())
-                .isEqualTo(LockEventLogImpl.SLIDING_WINDOW_SIZE - 1);
-
-        // ChangeMetadata count can increase
-        log.logLock(
-                ImmutableSet.of(DESCRIPTOR, DESCRIPTOR_2, DESCRIPTOR_3),
-                TOKEN,
-                Optional.of(LockRequestMetadata.of(ImmutableMap.of(
-                        DESCRIPTOR, ChangeMetadata.created(PtBytes.toBytes("created")),
-                        DESCRIPTOR_2, ChangeMetadata.unchanged(),
-                        DESCRIPTOR_3, ChangeMetadata.updated(PtBytes.toBytes("old"), PtBytes.toBytes("new"))))));
-        assertThat(metadataMetrics.changeMetadataStored().getCount())
-                .isEqualTo(LockEventLogImpl.SLIDING_WINDOW_SIZE + 1);
-        assertThat(metadataMetrics.eventsWithMetadataStored().getCount())
-                .isEqualTo(LockEventLogImpl.SLIDING_WINDOW_SIZE - 1);
-    }
-
     private LockWatches createWatchesFor(LockWatchReference... references) {
         return ImmutableLockWatches.of(
                 Arrays.stream(references).collect(Collectors.toSet()),u}(j (941aa6ecf4a06e87a4ad876a0aa481a4ac532ad2j etimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImplTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaj
 https://github.com/palantir/atlasdb/raw/5ed07faa5e19406671f7758321199d090d33459f/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.java?ref=5ed07faa5e19406671f7758321199d090d33459fj X  @@ -33,7 +33,7 @@
 import com.palantir.atlasdb.timelock.lock.ExclusiveLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocks;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
-import com.palantir.atlasdb.timelock.metrics.StoredMetadataMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.AtlasCellLockDescriptor;
@@ -78,9 +78,7 @@ public class LockWatchingServiceImplTest {
 
     private final HeldLocksCollection locks = mock(HeldLocksCollection.class);
     private final LockWatchingService lockWatcher = new LockWatchingServiceImpl(
-            LOG_ID,
-            locks,
-            StoredMetadataMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
+            LOG_ID, locks, CurrentMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
 
     private final HeldLocks heldLocks = mock(HeldLocks.class);
 u}(j (eda992c7104d1de5b706af56feddf3a24d7d349dj ftimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/5ed07faa5e19406671f7758321199d090d33459f/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj
 https://github.com/palantir/atlasdb/raw/5ed07faa5e19406671f7758321199d090d33459f/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.java?ref=5ed07faa5e19406671f7758321199d090d33459fj XG  @@ -31,8 +31,8 @@
 import com.palantir.atlasdb.timelock.api.LockWatchRequest;
 import com.palantir.atlasdb.timelock.lock.AsyncLockService;
 import com.palantir.atlasdb.timelock.lock.LockLog;
-import com.palantir.atlasdb.timelock.metrics.RequestMetadataMetrics;
-import com.palantir.atlasdb.timelock.metrics.StoredMetadataMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.RequestMetrics;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.lock.AtlasRowLockDescriptor;
@@ -79,15 +79,14 @@ public class AsyncTimeLockServiceMetadataTest {
             standardRequestWithMetadata(ALL_WATCHED_LOCKS_WITH_METADATA);
 
     private final MetricsManager metricsManager = MetricsManagers.createForTests();
-    private final RequestMetadataMetrics metadataMetrics =
-            RequestMetadataMetrics.of(metricsManager.getTaggedRegistry());
+    private final RequestMetrics metadataMetrics = RequestMetrics.of(metricsManager.getTaggedRegistry());
     private final LockLog lockLog = new LockLog(metricsManager.getRegistry(), () -> 10000L);
     private final ScheduledExecutorService scheduledExecutorService = new DeterministicScheduler();
     private final AsyncLockService asyncLockService = AsyncLockService.createDefault(
             lockLog,
             scheduledExecutorService,
             scheduledExecutorService,
-            StoredMetadataMetrics.of(metricsManager.getTaggedRegistry()));
+            CurrentMetrics.of(metricsManager.getTaggedRegistry()));
     private final AsyncTimelockServiceImpl timeLockService =
             new AsyncTimelockServiceImpl(asyncLockService, new InMemoryTimestampService(), lockLog, metadataMetrics);
     private final ConjureStartTransactionsRequest startTransactionsRequestWithInitialVersion =
@@ -155,7 +154,7 @@ public void cannotPassDownMetadataForUnknownLockDescriptors() {
     }
 
     @Test
-    public void updatesMetadataSizeMetricForAllMetadata() {
+    public void updatesRequestMetricsCorrectly() {
         timeLockService.lock(standardRequestWithMetadata(ImmutableMap.of()));
         timeLockService.lock(standardRequestWithMetadata(ImmutableMap.of(
                 StringLockDescriptor.of("1"), ChangeMetadata.unchanged(),
@@ -164,8 +163,7 @@ public void updatesMetadataSizeMetricForAllMetadata() {
         timeLockService.lock(ImmutableIdentifiedLockRequest.copyOf(WATCHED_LOCK_REQUEST_WITH_METADATA)
                 .withMetadata(Optional.empty()));
 
-        assertThat(metadataMetrics.changeMetadataReceived().getSnapshot().getValues())
-                .containsOnly(0, 3, 0);
+        assertThat(metadataMetrics.changeMetadata().getSnapshot().getValues()).containsOnly(0, 3, 0);
     }
 
     private List<Optional<LockRequestMetadata>> getAllLockEventsMetadata() {u}(j (61b281a0401eae5283071ce3369fb8f04d8ec84ej ]timelock-server/src/test/java/com/palantir/atlasdb/timelock/lock/AsyncLockServiceEteTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/5ed07faa5e19406671f7758321199d090d33459f/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceEteTest.javaj
 https://github.com/palantir/atlasdb/raw/5ed07faa5e19406671f7758321199d090d33459f/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceEteTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceEteTest.java?ref=5ed07faa5e19406671f7758321199d090d33459fj X  @@ -22,7 +22,7 @@
 import com.google.common.util.concurrent.Uninterruptibles;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingService;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingServiceImpl;
-import com.palantir.atlasdb.timelock.metrics.StoredMetadataMetrics;
+import com.palantir.atlasdb.timelock.lockwatches.CurrentMetrics;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.flake.FlakeRetryingRule;
 import com.palantir.flake.ShouldRetry;
@@ -68,7 +68,7 @@ public class AsyncLockServiceEteTest {
     private final LockWatchingService lockWatchingService = new LockWatchingServiceImpl(
             heldLocks,
             clock.id(),
-            StoredMetadataMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
+            CurrentMetrics.of(MetricsManagers.createForTests().getTaggedRegistry()));
     private final AsyncLockService service = new AsyncLockService(
             new LockCollection(),
             new ImmutableTimestampTracker(),ueu(00234809df1409c29ffcd4b684e380be48545bba}(sha(00234809df1409c29ffcd4b684e380be48545bbanode_idEC_kwDOAjP5fdoAKDAwMjM0ODA5ZGYxNDA5YzI5ZmZjZDRiNjg0ZTM4MGJlNDg1NDViYmEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-03T15:02:19Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-07-03T15:02:19ZumessageCR feedbacktree}(j (902ad6a7da050d1e54353484beb26dcae4c51160url`https://api.github.com/repos/palantir/atlasdb/git/trees/902ad6a7da050d1e54353484beb26dcae4c51160uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/00234809df1409c29ffcd4b684e380be48545bba
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSi4vsACgkQTLdFKain
zjxkLAf8DQsB7vkoT65feomhMKwnjXDiTCqlW1Jlqd0sPhYyyaaNXfafJ4+youyc
5PY+AU3Yy7k0X0USsuKehOEDO7PdZYSFS8u7QejUvqYXtPozWjCwwNJ4wOs0ua8V
bKbeXg8dJYs31lCk2+JDaeCOo7FIU+Pc0wLPtKH/GcOE7mnJfztRattT+21m78RP
PFrWADlOy1WKt8lAz0YooVZKoLJu+8dz/DrWhNwc5Tgo13cdHvHYvWF3gAbLRxKY
Ay9INdKkoTBU0NDV1BUcX7nNNY5vTpb/mtBwSiePj2IzPgyFUIB39ZnQTi5wlIEB
wNKidJg32ezYMaFyX37Gv8tr2YR5hg==
=01dG
-----END PGP SIGNATURE-----payloadtree 902ad6a7da050d1e54353484beb26dcae4c51160
parent 5d977f9250977920d62c1ba1a807a6e6da830052
author Jeremy Kong <jkong@palantir.com> 1688396539 +0100
committer Jeremy Kong <jkong@palantir.com> 1688396539 +0100

CR feedback
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/00234809df1409c29ffcd4b684e380be48545bbahtml_urlShttps://github.com/palantir/atlasdb/commit/00234809df1409c29ffcd4b684e380be48545bbacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/00234809df1409c29ffcd4b684e380be48545bba/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j (5d977f9250977920d62c1ba1a807a6e6da830052j ^https://api.github.com/repos/palantir/atlasdb/commits/5d977f9250977920d62c1ba1a807a6e6da830052j Shttps://github.com/palantir/atlasdb/commit/5d977f9250977920d62c1ba1a807a6e6da830052uastats}(totalK@	additionsK#	deletionsKufiles](}(j (b2c905aecbadb5eff96bc5dbc26f890c72dbd00cfilenameatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/00234809df1409c29ffcd4b684e380be48545bba/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/00234809df1409c29ffcd4b684e380be48545bba/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javacontents_urlX  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=00234809df1409c29ffcd4b684e380be48545bbapatchXW	  @@ -33,14 +33,14 @@ public class WitnessedRowColumnRangeReadTransactionActionTest {
     @Test
     public void canCreateWitness() {
         assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
-                .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                        .table("foo")
-                        .row(1)
-                        .columnRangeSelection(
-                                ColumnRangeSelection.builder().build())
+                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
                         .build())
-                .build())
                 .doesNotThrowAnyException();
     }
 
@@ -54,14 +54,14 @@ public void cannotCreateWitnessWithDuplicateColumns() {
                 ColumnValue.of(9, 99));
 
         assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                .addAllColumnsAndValues(columnsAndValues)
-                .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                        .table("foo")
-                        .row(1)
-                        .columnRangeSelection(
-                                ColumnRangeSelection.builder().build())
+                        .addAllColumnsAndValues(columnsAndValues)
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
                         .build())
-                .build())
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Duplicate columns in columnsAndValues")
                 .hasExactlyArgs(u}(j (599f2bf4f9d6f0c2f5ccb34ad02843ac95a3c7edj katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReader.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/00234809df1409c29ffcd4b684e380be48545bba/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj https://github.com/palantir/atlasdb/raw/00234809df1409c29ffcd4b684e380be48545bba/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.java?ref=00234809df1409c29ffcd4b684e380be48545bbaj X  @@ -20,7 +20,6 @@
 import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import io.vavr.collection.Map;
@@ -67,11 +66,8 @@ public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTrans
                             .contains(tableAndWorkloadCell.cell().column());
                 })
                 .filterValues(Optional::isPresent)
-                .map(entry -> ColumnValue.of(
-                        entry._1().cell().column(),
-                        entry._2()
-                                .orElseThrow(() -> new SafeRuntimeException(
-                                        "Empty values should already have been filtered out!"))))
+                .mapValues(Optional::get)
+                .map(entry -> ColumnValue.of(entry._1().cell().column(), entry._2()))
                 .sortBy(ColumnValue::column)
                 .toJavaList();
     }u}(j (af40346fb1dddff47a9981cb1ded09f586587ce6j oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReaderTest.javaj modifiedj K
j K j K
j https://github.com/palantir/atlasdb/blob/00234809df1409c29ffcd4b684e380be48545bba/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj https://github.com/palantir/atlasdb/raw/00234809df1409c29ffcd4b684e380be48545bba/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.java?ref=00234809df1409c29ffcd4b684e380be48545bbaj XW  @@ -78,4 +78,17 @@ public void readsCellsFromRangeInOrder() {
                         ColumnValue.of(2, WorkloadTestHelpers.VALUE_ONE),
                         ColumnValue.of(3, WorkloadTestHelpers.VALUE_ONE));
     }
+
+    @Test
+    public void doesNotReturnExplicitlyEmptyValues() {
+        valueMap.with(map -> map.put(
+                TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
+                Optional.empty()));
+        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                        .columnRangeSelection(ColumnRangeSelection.builder().build())
+                        .build()))
+                .isEmpty();
+    }
 }u}(j (9a0127534a3d94444fd74526c1be680a9eff55a3j qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj modifiedj Kj K	j Kj https://github.com/palantir/atlasdb/blob/00234809df1409c29ffcd4b684e380be48545bba/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://github.com/palantir/atlasdb/raw/00234809df1409c29ffcd4b684e380be48545bba/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=00234809df1409c29ffcd4b684e380be48545bbaj X  @@ -21,7 +21,6 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -95,14 +94,12 @@ public WitnessedTransactionBuilder delete(Integer row, Integer column) {
 
         public WitnessedTransactionBuilder rowColumnRangeRead(
                 Integer row, ColumnRangeSelection columnRangeSelection, List<ColumnValue> valuesRead) {
-            actions.add(WitnessedRowColumnRangeReadTransactionAction.builder()
-                    .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                            .table(table)
-                            .row(row)
-                            .columnRangeSelection(columnRangeSelection)
-                            .build())
-                    .columnsAndValues(valuesRead)
-                    .build());
+            RowColumnRangeReadTransactionAction transactionAction = RowColumnRangeReadTransactionAction.builder()
+                    .table(table)
+                    .row(row)
+                    .columnRangeSelection(columnRangeSelection)
+                    .build();
+            actions.add(transactionAction.witness(valuesRead));
             return this;
         }
 ueu(5b1d8f7aca163d24d017e12af916e7c4af87b7a6}(sha(5b1d8f7aca163d24d017e12af916e7c4af87b7a6node_idEC_kwDOAjP5fdoAKDViMWQ4ZjdhY2ExNjNkMjRkMDE3ZTEyYWY5MTZlN2M0YWY4N2I3YTYcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-05-31T19:23:07Zu	committer}(j GitHubj noreply@github.comj 2023-05-31T19:23:07ZumessageCompletely random workflow that will hopefully find us a bug! (#6594)

* Add random workflow, this better find a bug...

* wire up workflow

* clean up

* nits

* just do +1tree}(j (30ce77048f035336691eb16bb8950aa1c2290a70url`https://api.github.com/repos/palantir/atlasdb/git/trees/30ce77048f035336691eb16bb8950aa1c2290a70uj) bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5b1d8f7aca163d24d017e12af916e7c4af87b7a6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkd56bCRBK7hj4Ov3rIwAAuh0IAGj/rH4IJ4VSC0PxCXIe5wxE
YjkF1jBy/DbnYxbkVfCtDZw86zIMCfF3cb5p36l6fmbsAHwgAq6QBovOZgDZLM3r
xbdYGib7tv2SsQl9+bYy/g9NTg4hwTuwk0n3dS7j8o0X+Xpzp9SR8hLVfsh10TWx
Tm77bOtEbHIZD4y/6EBPAFCABrMdaOZ/CXv58DADuxV0AFv9+EMUFl8bTXirEaHy
j1KQDGzh4t4OIUTxuyI5WE1nscOZmoriSa295wYm8/n+0ABa7xHydBsegxHsB2LY
R9GEDZgyHlkvhOSlDfwjgXK83gUeHc0yYtwAKOJW8JfwImCrZs1a4aCI/kD4Gzc=
=UDTX
-----END PGP SIGNATURE-----
payloadX  tree 30ce77048f035336691eb16bb8950aa1c2290a70
parent c75242a139c2207057ddb45ff0010459fac178e7
author Sam-Kramer <sam.c.kramer@gmail.com> 1685560987 +0100
committer GitHub <noreply@github.com> 1685560987 +0100

Completely random workflow that will hopefully find us a bug! (#6594)

* Add random workflow, this better find a bug...

* wire up workflow

* clean up

* nits

* just do +1uuj) ^https://api.github.com/repos/palantir/atlasdb/commits/5b1d8f7aca163d24d017e12af916e7c4af87b7a6html_urlShttps://github.com/palantir/atlasdb/commit/5b1d8f7aca163d24d017e12af916e7c4af87b7a6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5b1d8f7aca163d24d017e12af916e7c4af87b7a6/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j) 'https://api.github.com/users/Sam-Kramerj7 https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j< web-flowj> J/j MDQ6VXNlcjE5ODY0NDQ3j@ 4https://avatars.githubusercontent.com/u/19864447?v=4jB h5j) %https://api.github.com/users/web-flowj7 https://github.com/web-flowjE /https://api.github.com/users/web-flow/followersjG <https://api.github.com/users/web-flow/following{/other_user}jI 5https://api.github.com/users/web-flow/gists{/gist_id}jK <https://api.github.com/users/web-flow/starred{/owner}{/repo}jM 3https://api.github.com/users/web-flow/subscriptionsjO *https://api.github.com/users/web-flow/orgsjQ +https://api.github.com/users/web-flow/reposjS 6https://api.github.com/users/web-flow/events{/privacy}jU 5https://api.github.com/users/web-flow/received_eventsjW UserjY uparents]}(j (c75242a139c2207057ddb45ff0010459fac178e7j) ^https://api.github.com/repos/palantir/atlasdb/commits/c75242a139c2207057ddb45ff0010459fac178e7j7 Shttps://github.com/palantir/atlasdb/commit/c75242a139c2207057ddb45ff0010459fac178e7uastats}(totalMC	additionsMB	deletionsKufiles](}(j (898801b6832e22982043b219a212d430aeab8498filenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedjs Kjt KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5b1d8f7aca163d24d017e12af916e7c4af87b7a6/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5b1d8f7aca163d24d017e12af916e7c4af87b7a6/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=5b1d8f7aca163d24d017e12af916e7c4af87b7a6patchX  @@ -35,6 +35,8 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
@@ -136,6 +138,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().transientRowsConfig();
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
+        RandomWorkflowConfiguration randomWorkflowConfig =
+                configuration.install().randomConfig();
 
         waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
 
@@ -148,7 +152,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                         createTransientRowsWorkflowValidator(
                                 transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
                         createSingleBusyCellWorkflowValidator(
-                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()));
+                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
+                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -265,6 +270,25 @@ private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator
                 .build();
     }
 
+    private WorkflowAndInvariants<Workflow> createRandomWorkflow(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            RandomWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RandomWorkflows.class);
+        TransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(RandomWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        RandomWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
     @VisibleForTesting
     CountDownLatch workflowsRanLatch() {
         return workflowsRanLatch;u}(j (2149c559f2ddbce0c16f673f22bbf91c848f1afcjy atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj{ modifiedjs Kjt K j} Kj~ https://github.com/palantir/atlasdb/blob/5b1d8f7aca163d24d017e12af916e7c4af87b7a6/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://github.com/palantir/atlasdb/raw/5b1d8f7aca163d24d017e12af916e7c4af87b7a6/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=5b1d8f7aca163d24d017e12af916e7c4af87b7a6j X  @@ -19,6 +19,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
@@ -39,5 +40,7 @@ public interface WorkloadServerInstallConfiguration {
 
     SingleBusyCellWorkflowConfiguration singleBusyCellConfig();
 
+    RandomWorkflowConfiguration randomConfig();
+
     boolean exitAfterRunning();
 }u}(j (aeb4451ed59b761bd57d4a70a89a0ff464a5defbjy Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj{ modifiedjs Kjt K j} Kj~ https://github.com/palantir/atlasdb/blob/5b1d8f7aca163d24d017e12af916e7c4af87b7a6/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/5b1d8f7aca163d24d017e12af916e7c4af87b7a6/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=5b1d8f7aca163d24d017e12af916e7c4af87b7a6j X5  @@ -29,4 +29,10 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  randomConfig:
+    tableConfiguration:
+      tableName: random-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
   exitAfterRunning: false
\ No newline at end of fileu}(j (d3c8029b336c5abb85238cca61be9878caa832a2jy Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj{ modifiedjs Kjt K j} Kj~ https://github.com/palantir/atlasdb/blob/5b1d8f7aca163d24d017e12af916e7c4af87b7a6/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://github.com/palantir/atlasdb/raw/5b1d8f7aca163d24d017e12af916e7c4af87b7a6/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=5b1d8f7aca163d24d017e12af916e7c4af87b7a6j X  @@ -66,4 +66,10 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  randomConfig:
+    tableConfiguration:
+      tableName: random_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
   exitAfterRunning: trueu}(j (985ab37b6542d0c7e0018377feda83abe68d3804jy Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj{ modifiedjs Kjt K j} Kj~ https://github.com/palantir/atlasdb/blob/5b1d8f7aca163d24d017e12af916e7c4af87b7a6/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/5b1d8f7aca163d24d017e12af916e7c4af87b7a6/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=5b1d8f7aca163d24d017e12af916e7c4af87b7a6j X4  @@ -30,4 +30,10 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  randomConfig:
+    tableConfiguration:
+      tableName: random-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
   exitAfterRunning: true
\ No newline at end of fileu}(j (e0b5354ebacbf6077ea736f29765fb8d71159fcdjy matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowConfiguration.javaj{ addedjs K:jt K j} K:j~ https://github.com/palantir/atlasdb/blob/5b1d8f7aca163d24d017e12af916e7c4af87b7a6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/5b1d8f7aca163d24d017e12af916e7c4af87b7a6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.java?ref=5b1d8f7aca163d24d017e12af916e7c4af87b7a6j X  @@ -0,0 +1,58 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableRandomWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableRandomWorkflowConfiguration.class)
+@JsonTypeName(RandomWorkflowConfiguration.TYPE)
+public interface RandomWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "random";
+
+    TableConfiguration tableConfiguration();
+
+    @Value.Default
+    default Integer maxWrites() {
+        return 5;
+    }
+
+    @Value.Default
+    default Integer maxReads() {
+        return 5;
+    }
+
+    @Value.Default
+    default Integer maxDeletes() {
+        return 2;
+    }
+
+    @Value.Default
+    default Integer maxCells() {
+        return 10;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(j (a9726d8998a6fbf1c745d6616a2e4356d3889a34jy aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javaj{ addedjs Kvjt K j} Kvj~ https://github.com/palantir/atlasdb/blob/5b1d8f7aca163d24d017e12af916e7c4af87b7a6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaj https://github.com/palantir/atlasdb/raw/5b1d8f7aca163d24d017e12af916e7c4af87b7a6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=5b1d8f7aca163d24d017e12af916e7c4af87b7a6j Xw  @@ -0,0 +1,118 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.security.SecureRandom;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+import org.jetbrains.annotations.VisibleForTesting;
+
+public final class RandomWorkflows {
+    private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+    private static final Integer COLUMN = 0;
+
+    private RandomWorkflows() {
+        // static factory
+    }
+
+    public static Workflow create(
+            TransactionStore store,
+            RandomWorkflowConfiguration randomWorkflowConfig,
+            ListeningExecutorService executionExecutor) {
+        return create(store, randomWorkflowConfig, executionExecutor, RANDOM);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            TransactionStore store,
+            RandomWorkflowConfiguration randomWorkflowConfig,
+            ListeningExecutorService executionExecutor,
+            SecureRandom random) {
+        RandomWorkflowTask task = new RandomWorkflowTask(randomWorkflowConfig, random);
+        return DefaultWorkflow.create(
+                store, (txnStore, _index) -> task.run(txnStore), randomWorkflowConfig, executionExecutor);
+    }
+
+    private static final class RandomWorkflowTask {
+
+        private final RandomWorkflowConfiguration workflowConfiguration;
+        private final SecureRandom random;
+
+        public RandomWorkflowTask(RandomWorkflowConfiguration workflowConfiguration, SecureRandom random) {
+            this.workflowConfiguration = workflowConfiguration;
+            this.random = random;
+        }
+
+        public Optional<WitnessedTransaction> run(TransactionStore store) {
+            workflowConfiguration.transactionRateLimiter().acquire();
+            List<TransactionAction> actions = Stream.of(
+                            generateReadActions(), generateWriteActions(), generateDeleteActions())
+                    .flatMap(Collection::stream)
+                    .collect(Collectors.toList());
+            Collections.shuffle(actions, random);
+            return store.readWrite(actions);
+        }
+
+        private List<ReadTransactionAction> generateReadActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxReads() + 1))
+                    .boxed()
+                    .map(_index -> ImmutableReadTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(), randomCell()))
+                    .collect(Collectors.toList());
+        }
+
+        private List<WriteTransactionAction> generateWriteActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxWrites() + 1))
+                    .boxed()
+                    .map(_index -> ImmutableWriteTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(),
+                            randomCell(),
+                            random.nextInt(100_000)))
+                    .collect(Collectors.toList());
+        }
+
+        private List<DeleteTransactionAction> generateDeleteActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxDeletes() + 1))
+                    .boxed()
+                    .map(_index -> ImmutableDeleteTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(), randomCell()))
+                    .collect(Collectors.toList());
+        }
+
+        private WorkloadCell randomCell() {
+            return ImmutableWorkloadCell.of(random.nextInt(workflowConfiguration.maxCells()), COLUMN);
+        }
+    }
+}u}(j (aab6c8e21d5584a8291807921d8d032d4786559djy eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowsTest.javay     j{ addedjs Kdjt K j} Kdj~ https://github.com/palantir/atlasdb/blob/5b1d8f7aca163d24d017e12af916e7c4af87b7a6/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/5b1d8f7aca163d24d017e12af916e7c4af87b7a6/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.java?ref=5b1d8f7aca163d24d017e12af916e7c4af87b7a6j Xh  @@ -0,0 +1,100 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.security.SecureRandom;
+import java.util.Collection;
+import java.util.List;
+import java.util.stream.Collectors;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class RandomWorkflowsTest {
+    private static final String TABLE_NAME = "random.random";
+    private static final RandomWorkflowConfiguration CONFIGURATION = ImmutableRandomWorkflowConfiguration.builder()
+            .tableConfiguration(ImmutableTableConfiguration.builder()
+                    .tableName(TABLE_NAME)
+                    .isolationLevel(IsolationLevel.SERIALIZABLE)
+                    .build())
+            .iterationCount(1)
+            .build();
+
+    private final TransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+
+    @Mock
+    private SecureRandom random;
+
+    private Workflow workflow;
+
+    @Before
+    public void before() {
+        this.workflow = RandomWorkflows.create(
+                memoryStore,
+                CONFIGURATION,
+                MoreExecutors.listeningDecorator(PTExecutors.newSingleThreadExecutor()),
+                random);
+    }
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore())
+                .as("should return a read only transaction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void workflowRunsReadWritesDeletes() {
+        when(random.nextInt(anyInt())).thenReturn(1);
+        WorkflowHistory history = workflow.run();
+        List<WitnessedTransactionAction> actions = history.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(actions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+}ueu(0c26a38a24d8cc7c3a79cbf5d2fe3d57dffbaf25}(sha(0c26a38a24d8cc7c3a79cbf5d2fe3d57dffbaf25node_idEC_kwDOAjP5fdoAKDBjMjZhMzhhMjRkOGNjN2MzYTc5Y2JmNWQyZmUzZDU3ZGZmYmFmMjUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-25T16:45:00Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-05-25T16:45:00Zumessage
just do +1tree}(j (49fee786d4bf83f71924c924d5a9d64594c109afurl`https://api.github.com/repos/palantir/atlasdb/git/trees/49fee786d4bf83f71924c924d5a9d64594c109afuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0c26a38a24d8cc7c3a79cbf5d2fe3d57dffbaf25
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRvkIwACgkQmPPOpKR4
XS2NFQgAx8EnMIjoIJROBbFGTMjHC4Zm93T2FXDM9YtenrwEPhtfVolbMq5I39AI
RsPS4A3vUJ2dkhQ841R5bOpPF1q6Yx6jfsXvUpJmfHM0o//uumyIrEiQrn0aBCBV
x7CAkc2yEnGQ8QhjaXHD0anQPpacDGgG9rXNNN5yjQVQKNdfCE8EAreHwZhOc5vK
yKOkxAjM6AfOXmJV733HEXkUsC8PPPXwf/COrqEfucGhLkLJic6y3HGxxmVdXT+R
s3yD/ywKmD61C2KdWTuc8ayvFO44E4Zc+jt6vEFzDApAZmADaAquRKuZZqpBVHtI
Ps6bouMwZ9rCdz4ueuMdGJmCwg8oSA==
=vR/j
-----END PGP SIGNATURE-----payloadtree 49fee786d4bf83f71924c924d5a9d64594c109af
parent f45fc9f2f37ab917be877f05b0926e96d2d894a7
author Sam Kramer <skramer@palantir.com> 1685033100 +0100
committer Sam Kramer <skramer@palantir.com> 1685033100 +0100

just do +1
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/0c26a38a24d8cc7c3a79cbf5d2fe3d57dffbaf25html_urlShttps://github.com/palantir/atlasdb/commit/0c26a38a24d8cc7c3a79cbf5d2fe3d57dffbaf25comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0c26a38a24d8cc7c3a79cbf5d2fe3d57dffbaf25/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj  -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (f45fc9f2f37ab917be877f05b0926e96d2d894a7j ^https://api.github.com/repos/palantir/atlasdb/commits/f45fc9f2f37ab917be877f05b0926e96d2d894a7j Shttps://github.com/palantir/atlasdb/commit/f45fc9f2f37ab917be877f05b0926e96d2d894a7uastats}(totalK	additionsK	deletionsKufiles]}(j (a9726d8998a6fbf1c745d6616a2e4356d3889a34filenameaatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javastatusmodifiedj" Kj# KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/0c26a38a24d8cc7c3a79cbf5d2fe3d57dffbaf25/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0c26a38a24d8cc7c3a79cbf5d2fe3d57dffbaf25/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=0c26a38a24d8cc7c3a79cbf5d2fe3d57dffbaf25patchXb  @@ -86,15 +86,15 @@ public Optional<WitnessedTransaction> run(TransactionStore store) {
         }
 
         private List<ReadTransactionAction> generateReadActions() {
-            return IntStream.rangeClosed(0, random.nextInt(workflowConfiguration.maxReads()))
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxReads() + 1))
                     .boxed()
                     .map(_index -> ImmutableReadTransactionAction.of(
                             workflowConfiguration.tableConfiguration().tableName(), randomCell()))
                     .collect(Collectors.toList());
         }
 
         private List<WriteTransactionAction> generateWriteActions() {
-            return IntStream.rangeClosed(0, random.nextInt(workflowConfiguration.maxWrites()))
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxWrites() + 1))
                     .boxed()
                     .map(_index -> ImmutableWriteTransactionAction.of(
                             workflowConfiguration.tableConfiguration().tableName(),
@@ -104,7 +104,7 @@ private List<WriteTransactionAction> generateWriteActions() {
         }
 
         private List<DeleteTransactionAction> generateDeleteActions() {
-            return IntStream.rangeClosed(0, random.nextInt(workflowConfiguration.maxDeletes()))
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxDeletes() + 1))
                     .boxed()
                     .map(_index -> ImmutableDeleteTransactionAction.of(
                             workflowConfiguration.tableConfiguration().tableName(), randomCell()))uau(e776f01feced6142121dde259ba4dd7125c8ef51}(sha(e776f01feced6142121dde259ba4dd7125c8ef51node_idEC_kwDOAjP5fdoAKGU3NzZmMDFmZWNlZDYxNDIxMjFkZGUyNTliYTRkZDcxMjVjOGVmNTEcommit}(author}(nameMohammed Daudaliemailmdaudali@palantir.comdate2023-02-28T15:03:55Zu	committer}(j? Mohammed DaudalijA mdaudali@palantir.comjC 2023-02-28T15:03:55Zumessagespotless applytree}(j7 (25545febdfd0d84d6a05fbfcdc8298473b2616f6url`https://api.github.com/repos/palantir/atlasdb/git/trees/25545febdfd0d84d6a05fbfcdc8298473b2616f6ujO bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e776f01feced6142121dde259ba4dd7125c8ef51
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE85NpmxiQII63+jWv1DJ7K5YIya0FAmP+F9sACgkQ1DJ7K5YI
ya3SxAf/crKjyZAG8ROkUUWGtH0hP3SAfkcMSBYO0b/d1pZdj7NxkEP67pgDlAxp
LQRpqXH5wWGJe8Jpd8Q/WHgJZPdM5WURc1tFzulsg+WtVLvXgIJSEjY/q+8oNvWo
Kh266k63nVhphbAAEoUMQdbYpITvFaeddWX1RYr5twOs5X3npYOwwfBxZjdtltMg
DsIP9VJ5cC+i/QrtEEhA/LOO0Bpxy6AKmykxbnbWjM9n+eByp22y1c1vtGrtKchA
skUOUyc313TbUy2S4K8ueoox8NWdOGopR/qMGMtSE7a2nZrjccmzWlbkwMSuva3W
tA69BC/0TL5M9vC+FTfFpUf8ayVMtg==
=Yjr8
-----END PGP SIGNATURE-----payloadtree 25545febdfd0d84d6a05fbfcdc8298473b2616f6
parent 93f060ab2b7642c15e1d1bc184ecc952406941ae
author Mohammed Daudali <mdaudali@palantir.com> 1677596635 +0000
committer Mohammed Daudali <mdaudali@palantir.com> 1677596635 +0000

spotless apply
uujO ^https://api.github.com/repos/palantir/atlasdb/commits/e776f01feced6142121dde259ba4dd7125c8ef51html_urlShttps://github.com/palantir/atlasdb/commit/e776f01feced6142121dde259ba4dd7125c8ef51comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e776f01feced6142121dde259ba4dd7125c8ef51/commentsj= }(loginmdaudaliidJ j9 MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5jO %https://api.github.com/users/mdaudalij] https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminujE }(jb mdaudalijd J j9 MDQ6VXNlcjE4MTI3NjQ=jf 3https://avatars.githubusercontent.com/u/1812764?v=4jh h5jO %https://api.github.com/users/mdaudalij] https://github.com/mdaudalijk /https://api.github.com/users/mdaudali/followersjm <https://api.github.com/users/mdaudali/following{/other_user}jo 5https://api.github.com/users/mdaudali/gists{/gist_id}jq <https://api.github.com/users/mdaudali/starred{/owner}{/repo}js 3https://api.github.com/users/mdaudali/subscriptionsju *https://api.github.com/users/mdaudali/orgsjw +https://api.github.com/users/mdaudali/reposjy 6https://api.github.com/users/mdaudali/events{/privacy}j{ 5https://api.github.com/users/mdaudali/received_eventsj} Userj uparents]}(j7 (93f060ab2b7642c15e1d1bc184ecc952406941aejO ^https://api.github.com/repos/palantir/atlasdb/commits/93f060ab2b7642c15e1d1bc184ecc952406941aej] Shttps://github.com/palantir/atlasdb/commit/93f060ab2b7642c15e1d1bc184ecc952406941aeuastats}(totalK	additionsK	deletionsKufiles]}(j7 (06464059ce8d15cdc69b0251f88e546c68198146filenamedatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e776f01feced6142121dde259ba4dd7125c8ef51/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e776f01feced6142121dde259ba4dd7125c8ef51/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=e776f01feced6142121dde259ba4dd7125c8ef51patchX  @@ -364,9 +364,9 @@ void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> des
         Preconditions.checkState(
                 !getCurrentPools().isEmpty() || serversToAdd.isEmpty(),
                 "No servers were successfully added to the pool. This means we could not come to a consensus on"
-                        + " cluster topology, and the client cannot connect as there are no valid hosts. This state should"
-                        + " be transient (<5 minutes), and if it is not, indicates that the user may have accidentally"
-                        + " configured AltasDB to use two separate Cassandra clusters (i.e., user-led split brain).",
+                    + " cluster topology, and the client cannot connect as there are no valid hosts. This state should"
+                    + " be transient (<5 minutes), and if it is not, indicates that the user may have accidentally"
+                    + " configured AltasDB to use two separate Cassandra clusters (i.e., user-led split brain).",
                 SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())));
 
         logRefreshedHosts(validatedServersToAdd, serversToShutdown, absentServers);uau(057f133ed21fc0078b824d45ce0da6d1646b69b8}(sha(057f133ed21fc0078b824d45ce0da6d1646b69b8node_idEC_kwDOAjP5fdoAKDA1N2YxMzNlZDIxZmMwMDc4YjgyNGQ0NWNlMGRhNmQxNjQ2YjY5Yjgcommit}(author}(name
Louis Bembergemaillbemberg@palantir.comdate2023-04-27T20:15:38Zu	committer}(j 
Louis Bembergj lbemberg@palantir.comj 2023-04-27T20:15:38Zumessage"improve unusuccessful lock loggingtree}(j (2c544311a3b1998eb3c06a3d95c80d4abcafbcc9url`https://api.github.com/repos/palantir/atlasdb/git/trees/2c544311a3b1998eb3c06a3d95c80d4abcafbcc9uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/057f133ed21fc0078b824d45ce0da6d1646b69b8
comment_countK verification}(verifiedreasonno_user	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEWASyGscg/aE7qfKTryYcV6eKVuAFAmRK1+sACgkQryYcV6eK
VuBKNggAuWMmnzHpBHdTOBBwdOqZze+ivr5SG5lFtttLrWSFa34c0mqod3INvQ3s
N6tkoHZFcTAKdKva6Ss0nIw2D9FE2Bpv/s/Jnody8Rxio8IS4IPIEQ5Y8tLSCpWg
3UBgdWZka7wdCQPY6pVppBB8OBCS1a8VkXWhTZa5uTQ3KbgsmArXOcCxYO3dbf+E
4Q0Vef4F7INP8UlgQAutO6yd8S4djH1AcnU3qjK3Xu9hpxe/SDwkR0yM2jgG+yZS
/SsiJ9xLCkH00Oh0bOLd7ThGyDZDJuvfUIDlITx/UCivXNi518ZGfU6q6ILe5RVK
djxpf9EqYwT7xm02FRgyP4gx2NFd7Q==
=hgLV
-----END PGP SIGNATURE-----payloadX  tree 2c544311a3b1998eb3c06a3d95c80d4abcafbcc9
parent b9a867ac9b4981ff75dcd5d8882089c3c7b1e0ee
author Louis Bemberg <lbemberg@palantir.com> 1682626538 -0400
committer Louis Bemberg <lbemberg@palantir.com> 1682626538 -0400

improve unusuccessful lock logging
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/057f133ed21fc0078b824d45ce0da6d1646b69b8html_urlShttps://github.com/palantir/atlasdb/commit/057f133ed21fc0078b824d45ce0da6d1646b69b8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/057f133ed21fc0078b824d45ce0da6d1646b69b8/commentsj Nj Nparents]}(j (b9a867ac9b4981ff75dcd5d8882089c3c7b1e0eej ^https://api.github.com/repos/palantir/atlasdb/commits/b9a867ac9b4981ff75dcd5d8882089c3c7b1e0eej Shttps://github.com/palantir/atlasdb/commit/b9a867ac9b4981ff75dcd5d8882089c3c7b1e0eeuastats}(totalK	additionsK	deletionsKufiles]}(j (bc4967ab2775696ff379dd4b88e49afcd8f92f87filenamekatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AdvisoryLockConditionSuppliers.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/057f133ed21fc0078b824d45ce0da6d1646b69b8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javaraw_urlhttps://github.com/palantir/atlasdb/raw/057f133ed21fc0078b824d45ce0da6d1646b69b8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.java?ref=057f133ed21fc0078b824d45ce0da6d1646b69b8patchX  @@ -79,8 +79,8 @@ private static HeldLocksToken acquireLock(LockService lockService, LockRequest l
                     case BLOCK_UNTIL_TIMEOUT:
                     case BLOCK_INDEFINITELY:
                     case BLOCK_INDEFINITELY_THEN_RELEASE:
-                        log.warn("Could not lock successfully", ex);
                         ++failureCount;
+                        log.warn("Could not lock successfully", SafeArg.of("failureCount", failureCount), ex);
                         if (failureCount >= NUM_RETRIES) {
                             log.warn("Failing after {} tries", SafeArg.of("failureCount", failureCount), ex);
                             throw ex;uau(af0744e3a36f58aaac4d687a7b69a7fac73f0674}(sha(af0744e3a36f58aaac4d687a7b69a7fac73f0674node_idEC_kwDOAjP5fdoAKGFmMDc0NGUzYTM2ZjU4YWFhYzRkNjg3YTdiNjlhN2ZhYzczZjA2NzQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-28T18:51:12Zu	committer}(j Jeremy Kongj  jkong@palantir.comj 2023-02-28T18:51:12Zumessagefinaltree}(j (ca86c94b9b96003c16345ee46fd400997eb2ce2durl`https://api.github.com/repos/palantir/atlasdb/git/trees/ca86c94b9b96003c16345ee46fd400997eb2ce2duj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/af0744e3a36f58aaac4d687a7b69a7fac73f0674
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmP+TSAACgkQTLdFKain
zjwggggAsbe4VFJAE90ou1Poy3v6QaOBHf96Xyiu9klfUQ8eNhiFSlS5vX6+NKxK
LCntuEbbwcg9chZdWMCA6+8onugRKxgqmEI8M3rqPm/rrV/qxDktomWssPIOKEZ5
1X0tgfdGz3XVYIW49MYFmq07x/FWpxoPzZ3GyEeGNAOvpdseLPW2HxR84UctGYRA
C556RHtbd3d/i+L5Qpc9BPmfpAuX6AmHzLC/bT/KgHLbdWddiTIRN/gasGVeF+w+
B5kYeoori2wk0VfNngLjULclaUdHvDcJ710RsnZKe0LyUqTcu6otQTQsqh6rotur
VCJCsW/iJXUcnATaRIrv1/mZ69VEUg==
=yiEY
-----END PGP SIGNATURE-----payloadtree ca86c94b9b96003c16345ee46fd400997eb2ce2d
parent aded4c82dd271513b46e81f988d7367ae49e9031
author Jeremy Kong <jkong@palantir.com> 1677610272 +0000
committer Jeremy Kong <jkong@palantir.com> 1677610272 +0000

final
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/af0744e3a36f58aaac4d687a7b69a7fac73f0674html_urlShttps://github.com/palantir/atlasdb/commit/af0744e3a36f58aaac4d687a7b69a7fac73f0674comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/af0744e3a36f58aaac4d687a7b69a7fac73f0674/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j! 
jeremyk-91j# JZ j MDQ6VXNlcjU5NTU1MTA=j% 3https://avatars.githubusercontent.com/u/5955510?v=4j' h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j* 1https://api.github.com/users/jeremyk-91/followersj, >https://api.github.com/users/jeremyk-91/following{/other_user}j. 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j0 >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j2 5https://api.github.com/users/jeremyk-91/subscriptionsj4 ,https://api.github.com/users/jeremyk-91/orgsj6 -https://api.github.com/users/jeremyk-91/reposj8 8https://api.github.com/users/jeremyk-91/events{/privacy}j: 7https://api.github.com/users/jeremyk-91/received_eventsj< Userj> uparents]}(j (aded4c82dd271513b46e81f988d7367ae49e9031j ^https://api.github.com/repos/palantir/atlasdb/commits/aded4c82dd271513b46e81f988d7367ae49e9031j Shttps://github.com/palantir/atlasdb/commit/aded4c82dd271513b46e81f988d7367ae49e9031uastats}(totalK	additionsK	deletionsKufiles]}(j (6649d6ab5e4baeb9fbfe2927cf76bca38823425bfilenamepatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javastatusmodifiedjX KjY KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/af0744e3a36f58aaac4d687a7b69a7fac73f0674/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/af0744e3a36f58aaac4d687a7b69a7fac73f0674/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=af0744e3a36f58aaac4d687a7b69a7fac73f0674patchX  @@ -111,7 +111,7 @@ private static void validateFinalTableState(WorkflowHistory workflowHistory) {
                 .isBetween(0, ITERATION_COUNT);
     }
 
-    private static class LocalWriteWitnessVisitor implements WitnessedTransactionActionVisitor<Void> {
+    private static final class LocalWriteWitnessVisitor implements WitnessedTransactionActionVisitor<Void> {
         private final Map<WorkloadCell, Optional<Integer>> localWriteMap = new HashMap<>();
 
         @Override
@@ -135,7 +135,7 @@ public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         }
     }
 
-    private static class CellStateCheckingVisitor implements WitnessedTransactionActionVisitor<Void> {
+    private static final class CellStateCheckingVisitor implements WitnessedTransactionActionVisitor<Void> {
         private final Map<WorkloadCell, Integer> tableState = new HashMap<>();
 
         @Overrideuau(7601b088bde146379ab5fe4337ed6f190ce71032}(sha(7601b088bde146379ab5fe4337ed6f190ce71032node_idEC_kwDOAjP5fdoAKDc2MDFiMDg4YmRlMTQ2Mzc5YWI1ZmU0MzM3ZWQ2ZjE5MGNlNzEwMzIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-08-08T15:01:10Zu	committer}(ju Jeremy Kongjw jkong@palantir.comjy 2023-08-08T15:01:10Zumessagenoch maltree}(jm (bc50b1693ae1126154bfc3fc7d5311a3d49d2fe7url`https://api.github.com/repos/palantir/atlasdb/git/trees/bc50b1693ae1126154bfc3fc7d5311a3d49d2fe7uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7601b088bde146379ab5fe4337ed6f190ce71032
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmTSWLcACgkQTLdFKain
zjwXZgf/Vvw5F9q1HscurBsO13FsS4spZi0qnXl0qfViS8I1BJUjEa6kS2/AcYSC
qM0t+jvHC7mkeV2p6WCZNWD/qD7s1So0r4S6Ot1kS70TNxWb4YwR2NCGLFqjvuYa
riSPdTJcFBtwqV+gmEQh2L6nBl0PVu+8swCN48lVYnaNQo0RTX7fWo6eBS+dtJTk
k0EdMRBxeZEObpNUsg7GpMu0vQyx1JwoDOG8KGV96RKfce4YdOqj0ap9yvsfSoCS
LqKyjGfkmL/fkDFIc2wFFtRLU8dGpnQUsoymek7viK9jE7zeNFvFDr0KlT5c4gy9
LmUlVqFkQix2v/Qmwg1Z4/qBSQZ4DQ==
=22n3
-----END PGP SIGNATURE-----payloadtree bc50b1693ae1126154bfc3fc7d5311a3d49d2fe7
parent 3acee7efef8617f3e3c316aea88b8f40057a969b
author Jeremy Kong <jkong@palantir.com> 1691506870 +0100
committer Jeremy Kong <jkong@palantir.com> 1691506870 +0100

noch mal
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/7601b088bde146379ab5fe4337ed6f190ce71032html_urlShttps://github.com/palantir/atlasdb/commit/7601b088bde146379ab5fe4337ed6f190ce71032comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7601b088bde146379ab5fe4337ed6f190ce71032/commentsjs }(login
jeremyk-91idJZ jo MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj{ }(j 
jeremyk-91j JZ jo MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(jm (3acee7efef8617f3e3c316aea88b8f40057a969bj ^https://api.github.com/repos/palantir/atlasdb/commits/3acee7efef8617f3e3c316aea88b8f40057a969bj Shttps://github.com/palantir/atlasdb/commit/3acee7efef8617f3e3c316aea88b8f40057a969buastats}(totalK	additionsK	deletionsKufiles]}(jm (741d86edca2642b5cf185c58712013b2828a6ec3filenameqatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/MultiClientWithTimelockAndCassandraTestSuite.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7601b088bde146379ab5fe4337ed6f190ce71032/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithTimelockAndCassandraTestSuite.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7601b088bde146379ab5fe4337ed6f190ce71032/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithTimelockAndCassandraTestSuite.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithTimelockAndCassandraTestSuite.java?ref=7601b088bde146379ab5fe4337ed6f190ce71032patchX  @@ -31,13 +31,13 @@
 
 @RunWith(Suite.class)
 @Suite.SuiteClasses({
-        TodoEteTest.class,
-        TargetedSweepEteTest.class,
-        CassandraTimestampsEteTest.class,
-        TimestampManagementEteTest.class,
-        CoordinationEteTest.class,
-        MultipleSchemaVersionsCoordinationEteTest.class,
-        LockWithTimelockEteTest.class
+    TodoEteTest.class,
+    TargetedSweepEteTest.class,
+    CassandraTimestampsEteTest.class,
+    TimestampManagementEteTest.class,
+    CoordinationEteTest.class,
+    MultipleSchemaVersionsCoordinationEteTest.class,
+    LockWithTimelockEteTest.class
 })
 public class MultiClientWithTimelockAndCassandraTestSuite extends EteSetup {
     @ClassRuleuau(70ccfe4c4ab04063354086b212ae7f3da038ea06}(sha(70ccfe4c4ab04063354086b212ae7f3da038ea06node_idEC_kwDOAjP5fdoAKDcwY2NmZTRjNGFiMDQwNjMzNTQwODZiMjEyYWU3ZjNkYTAzOGVhMDYcommit}(author}(name
Samuel Krameremailskramer@palantir.comdate2023-04-03T16:06:34Zu	committer}(j 
Samuel Kramerj skramer@palantir.comj 2023-04-03T16:06:34Zumessageremove useless depstree}(j (a82d646e29ca372be6b2dab3193be7dd1d134c85url`https://api.github.com/repos/palantir/atlasdb/git/trees/a82d646e29ca372be6b2dab3193be7dd1d134c85uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/70ccfe4c4ab04063354086b212ae7f3da038ea06
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj ^https://api.github.com/repos/palantir/atlasdb/commits/70ccfe4c4ab04063354086b212ae7f3da038ea06html_urlShttps://github.com/palantir/atlasdb/commit/70ccfe4c4ab04063354086b212ae7f3da038ea06comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/70ccfe4c4ab04063354086b212ae7f3da038ea06/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j
 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj  ,https://api.github.com/users/Sam-Kramer/orgsj" -https://api.github.com/users/Sam-Kramer/reposj$ 8https://api.github.com/users/Sam-Kramer/events{/privacy}j& 7https://api.github.com/users/Sam-Kramer/received_eventsj( Userj* uparents]}(j (daf9fc830af8d8d8ab744dc6203a3c505e107793j ^https://api.github.com/repos/palantir/atlasdb/commits/daf9fc830af8d8d8ab744dc6203a3c505e107793j Shttps://github.com/palantir/atlasdb/commit/daf9fc830af8d8d8ab744dc6203a3c505e107793uastats}(totalK	additionsK 	deletionsKufiles]}(j (77aa082a3f56273b255cc5a16f5dfd48dbf64a7afilename1atlasdb-workload-server-distribution/build.gradlestatusmodifiedjD K jE KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/70ccfe4c4ab04063354086b212ae7f3da038ea06/atlasdb-workload-server-distribution%2Fbuild.gradleraw_urlhttps://github.com/palantir/atlasdb/raw/70ccfe4c4ab04063354086b212ae7f3da038ea06/atlasdb-workload-server-distribution%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=70ccfe4c4ab04063354086b212ae7f3da038ea06patchX  @@ -5,8 +5,6 @@ apply from: "../gradle/shared.gradle"
 apply from: "../gradle/non-client-dist.gradle"
 
 dependencies {
-    implementation 'ch.qos.logback:logback-classic'
-    implementation 'ch.qos.logback:logback-core'
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'
     implementation 'com.fasterxml.jackson.core:jackson-databind'uau(fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8}(sha(fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8node_idEC_kwDOAjP5fdoAKGZiMWQ3YmNiNWZjMGNiYWExOWY5YmNlYTQyYWY2M2ZiNWVlY2FhYjgcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-16T22:08:10Zu	committer}(ja Jeremy Kongjc jkong@palantir.comje 2023-05-16T22:08:10Zumessage7Split witnessed action in general and cell level actiontree}(jY (1fcd58083424d6bd6e04545140c61d3b36e85f93url`https://api.github.com/repos/palantir/atlasdb/git/trees/1fcd58083424d6bd6e04545140c61d3b36e85f93ujq bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRj/soACgkQTLdFKain
zjybwAf9Fznvdp5X7HFpEOa9KV+DIke5BjnFoIhcx1iS8PF539Kr4iOBauGZSLXy
keeCjQO9d1Eg6QNDrKx54psMW1siFXukwJmQxiJzcHMkG0kX1RVnSdTajKU3s57J
+2TjlEybJK3FloulvGedTxVVCrNXrWwJodLWYSxoqihdyjqhrRsE+xSvcYdF7EB/
jDYtoVoU2llEEnZmeJKGsGJU/MGOsGg3flzeYA8AXzKSLfNSxPqecIqGMJQpkz0Q
2MwUJv88McdtbgfsiATVjGlg62xgo/R6x/BLXNHnnL2Ruc9MKb9I20w32/cnq7xQ
MloIgZTatKE/5jPO1rUKovhDxqOuyA==
=NYMI
-----END PGP SIGNATURE-----payloadX  tree 1fcd58083424d6bd6e04545140c61d3b36e85f93
parent 60cfe5f80bc98e6633662a39720a7e56a4f391bb
author Jeremy Kong <jkong@palantir.com> 1684274890 +0100
committer Jeremy Kong <jkong@palantir.com> 1684274890 +0100

Split witnessed action in general and cell level action
uujq ^https://api.github.com/repos/palantir/atlasdb/commits/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8html_urlShttps://github.com/palantir/atlasdb/commit/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/commentsj_ }(login
jeremyk-91idJZ j[ MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jq 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujg }(j 
jeremyk-91j JZ j[ MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5jq 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(jY (60cfe5f80bc98e6633662a39720a7e56a4f391bbjq ^https://api.github.com/repos/palantir/atlasdb/commits/60cfe5f80bc98e6633662a39720a7e56a4f391bbj Shttps://github.com/palantir/atlasdb/commit/60cfe5f80bc98e6633662a39720a7e56a4f391bbuastats}(totalK	additionsK[	deletionsKFufiles](}(jY (8c2c7ed84cbcce51fd77b431c919a87dd48df7dafilenameoatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8patchXO  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedCellTransactionAction;
 import java.util.List;
 import java.util.Optional;
 
@@ -31,5 +31,5 @@ public interface InteractiveTransaction {
 
     void delete(String table, WorkloadCell workloadCell);
 
-    List<WitnessedTransactionAction> witness();
+    List<WitnessedCellTransactionAction> witness();
 }u}(jY (e270bc56122f2f3551e58527497ce536aba95769j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj https://github.com/palantir/atlasdb/raw/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8j X_  @@ -22,12 +22,12 @@
 @Value.Immutable
 public interface InvalidWitnessedTransactionAction {
     @Value.Parameter
-    WitnessedTransactionAction action();
+    WitnessedCellTransactionAction action();
 
     @Value.Parameter
     MismatchedValue mismatchedValue();
 
-    static InvalidWitnessedTransactionAction of(WitnessedTransactionAction action, MismatchedValue mismatchedValue) {
+    static InvalidWitnessedTransactionAction of(WitnessedCellTransactionAction action, MismatchedValue mismatchedValue) {
         return ImmutableInvalidWitnessedTransactionAction.of(action, mismatchedValue);
     }
 }u}(jY (68b642b5d9a384bd04df2b0abb064250b19a09b0j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedCellTransactionAction.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedCellTransactionAction.javaj https://github.com/palantir/atlasdb/raw/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedCellTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedCellTransactionAction.java?ref=fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8j X  @@ -0,0 +1,27 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface WitnessedCellTransactionAction extends WitnessedTransactionAction {
+    /** Cell (Key, Column) the action applied to. */
+    @Value.Parameter
+    WorkloadCell cell();
+
+}u}(jY (68a2df05a4b92b0b947e2ec5ca2d6ea01cb8a794j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedDeleteTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javaj https://github.com/palantir/atlasdb/raw/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.java?ref=fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8j Xi  @@ -20,7 +20,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedDeleteTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedDeleteTransactionAction extends WitnessedCellTransactionAction {
 
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {u}(jY (04782e9152376cb85ce01024384e9e79a614289bj atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedReadTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.java?ref=fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8j X1  @@ -21,7 +21,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedReadTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedReadTransactionAction extends WitnessedCellTransactionAction {
 
     @Override
     @Value.Parameteru}(jY (4c2cbd9e19b83069a2ca6699956e43870f9b2804j watlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javaj https://github.com/palantir/atlasdb/raw/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.java?ref=fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8j Xq  @@ -27,7 +27,7 @@ public interface WitnessedTransaction {
     Optional<Long> commitTimestamp();
 
     /** Provides an in-order list of actions that were performed during the transaction's execution. */
-    List<WitnessedTransactionAction> actions();
+    List<WitnessedCellTransactionAction> actions();
 
     <T> T accept(WitnessedTransactionVisitor<T> visitor);
 }u}(jY (36937107ac1528fb4ef2fbc5b8e6ad266fcabba5j }atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionAction.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javaj https://github.com/palantir/atlasdb/raw/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.java?ref=fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8j X  @@ -16,18 +16,12 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.store.WorkloadCell;
 import org.immutables.value.Value;
 
 public interface WitnessedTransactionAction {
-
     /** Table action was applied to. */
     @Value.Parameter
     String table();
 
-    /** Cell (Key, Column) the action applied to. */
-    @Value.Parameter
-    WorkloadCell cell();
-
     <T> T accept(WitnessedTransactionActionVisitor<T> visitor);
 }u}(jY (2f65ccbb9f96e73d0804d18124cac2fdb5db47d9j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedWriteTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javaj https://github.com/palantir/atlasdb/raw/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.java?ref=fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8j X"  @@ -20,7 +20,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WitnessedWriteTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedWriteTransactionAction extends WitnessedCellTransactionAction {
 
     @Override
     @Value.Parameteru}(jY (8f152f802e97d4ed0f86fd94b9e74615a4543b05j atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj https://github.com/palantir/atlasdb/raw/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8j Xq  @@ -33,8 +33,8 @@ public class MaybeWitnessedTransactionTest {
     @Test
     public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
         assertThatLoggableExceptionThrownBy(() -> MaybeWitnessedTransaction.builder()
-                        .startTimestamp(START_TIMESTAMP)
-                        .build())
+                .startTimestamp(START_TIMESTAMP)
+                .build())
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining(
                         "Given how the transaction protocol works, a transaction for which we haven't retrieved the"
@@ -44,17 +44,17 @@ public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
     @Test
     public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
         assertThatCode(() -> MaybeWitnessedTransaction.builder()
-                        .startTimestamp(START_TIMESTAMP)
-                        .commitTimestamp(COMMIT_TIMESTAMP)
-                        .build())
+                .startTimestamp(START_TIMESTAMP)
+                .commitTimestamp(COMMIT_TIMESTAMP)
+                .build())
                 .doesNotThrowAnyException();
     }
 
     @Test
     public void toFullyWitnessedCopiesArgumentsCorrectly() {
         WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
         WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
-        List<WitnessedTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
+        List<WitnessedCellTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
         FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
                 .startTimestamp(START_TIMESTAMP)
                 .commitTimestamp(COMMIT_TIMESTAMP)u}(jY (48cca08c1a45caa843bbaadadfb3c6d7c9bee543j latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://github.com/palantir/atlasdb/raw/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8j X  @@ -21,9 +21,9 @@
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.logsafe.Preconditions;
@@ -44,7 +44,7 @@ final class AtlasDbInteractiveTransaction implements InteractiveTransaction {
 
     private final Map<String, TableReference> tables;
 
-    private final List<WitnessedTransactionAction> witnessedTransactionActions = new ArrayList<>();
+    private final List<WitnessedCellTransactionAction> witnessedCellTransactionActions = new ArrayList<>();
 
     private boolean hasFinished = false;
 
@@ -60,7 +60,7 @@ public Optional<Integer> read(String table, WorkloadCell workloadCell) {
                     Map<Cell, byte[]> values = transaction.get(tableReference, Set.of(atlasCell));
                     Optional<Integer> valueRead =
                             Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
-                    witnessedTransactionActions.add(WitnessedReadTransactionAction.of(table, workloadCell, valueRead));
+                    witnessedCellTransactionActions.add(WitnessedReadTransactionAction.of(table, workloadCell, valueRead));
                     return valueRead;
                 },
                 table,
@@ -72,7 +72,7 @@ public void write(String table, WorkloadCell workloadCell, Integer value) {
         run(
                 (tableReference, atlasCell) -> {
                     transaction.put(tableReference, Map.of(atlasCell, Ints.toByteArray(value)));
-                    witnessedTransactionActions.add(WitnessedWriteTransactionAction.of(table, workloadCell, value));
+                    witnessedCellTransactionActions.add(WitnessedWriteTransactionAction.of(table, workloadCell, value));
                     return null;
                 },
                 table,
@@ -84,17 +84,17 @@ public void delete(String table, WorkloadCell workloadCell) {
         run(
                 (tableReference, atlasCell) -> {
                     transaction.delete(tableReference, Set.of(atlasCell));
-                    witnessedTransactionActions.add(WitnessedDeleteTransactionAction.of(table, workloadCell));
+                    witnessedCellTransactionActions.add(WitnessedDeleteTransactionAction.of(table, workloadCell));
                     return null;
                 },
                 table,
                 workloadCell);
     }
 
     @Override
-    public List<WitnessedTransactionAction> witness() {
+    public List<WitnessedCellTransactionAction> witness() {
         hasFinished = true;
-        return witnessedTransactionActions;
+        return witnessedCellTransactionActions;
     }
 
     private TableReference getTableReferenceOrThrow(String table) {u}(jY (8c3124b968f0f00740b71564e7bee26d0d44564aj fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://github.com/palantir/atlasdb/raw/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8j Xr  @@ -32,8 +32,8 @@
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
@@ -84,7 +84,7 @@ public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions)
 
     @Override
     public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer) {
-        AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
+        AtomicReference<List<WitnessedCellTransactionAction>> witnessedActionsReference = new AtomicReference<>();
         AtomicReference<Transaction> transactionReference = new AtomicReference<>();
         Supplier<CommitTimestampProvider> commitTimestampProvider =
                 Suppliers.memoize(() -> new CommitTimestampProvider());u}(jY (bc2152afd69abfcf17475e241c4425f727ec282fj patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj modifiedj Kj Kj K&j https://github.com/palantir/atlasdb/blob/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://github.com/palantir/atlasdb/raw/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8j X  @@ -27,9 +27,9 @@
 
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
@@ -54,10 +54,10 @@ public void before() {
     @Test
     public void witnessRecordAllActions() {
         assertThat(readWrite(transaction -> {
-                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-                    transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
-                }))
+            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+            transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
+        }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
@@ -67,10 +67,10 @@ public void witnessRecordAllActions() {
     @Test
     public void readHandlesEmptyAndPresentValue() {
         assertThat(readWrite(transaction -> {
-                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-                    transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
-                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-                }))
+            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+            transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+        }))
                 .containsExactly(
                         WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
@@ -111,7 +111,7 @@ public void deleteThrowsWhenInteractiveTransactionAlreadyWitnessed() {
                 transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
     }
 
-    private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+    private List<WitnessedCellTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         return manager.runTaskWithRetry(atlasTransaction -> {
             AtlasDbInteractiveTransaction interactiveTransaction =
                     new AtlasDbInteractiveTransaction(atlasTransaction, NAMES_TO_REFERENCES_TABLE_1);
@@ -123,22 +123,22 @@ private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTr
     private void assertThatThrownWhenUnknownTableReferenced(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-                    transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
-                    return null;
-                }))
+            transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
+            return null;
+        }))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Transaction action has unknown table.");
     }
 
     private void assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-                    AtlasDbInteractiveTransaction transaction =
-                            new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
-                    transaction.witness();
-                    transactionConsumer.accept(transaction);
-                    return null;
-                }))
+            AtlasDbInteractiveTransaction transaction =
+                    new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
+            transaction.witness();
+            transactionConsumer.accept(transaction);
+            return null;
+        }))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Transaction has already been witnessed and can no longer perform any actions.");
     }u*
     }(jY (fc8e62cc9074f93c59a17f1cc5e9580d928f44a7j jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj modifiedj Kj Kj K"j https://github.com/palantir/atlasdb/blob/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj https://github.com/palantir/atlasdb/raw/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8j X  @@ -50,9 +50,9 @@
 import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
@@ -100,7 +100,7 @@ public void canWriteDataToStore() {
 
     @Test
     public void witnessedTransactionMaintainsOrder() {
-        List<WitnessedTransactionAction> actions = List.of(
+        List<WitnessedCellTransactionAction> actions = List.of(
                 WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, 100),
                 WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, Optional.of(100)),
                 WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_THREE, Optional.empty()),
@@ -174,21 +174,21 @@ public void keyAlreadyExistExceptionResultsInMaybeWitnessedTransaction() {
                 WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
         TransactionManager keyAlreadyExistsExceptionThrowingStore = spy(manager);
         doAnswer(invocation -> {
-                    Supplier<CommitTimestampProvider> commitTimestampFetcher = invocation.getArgument(0);
-                    ConditionAwareTransactionTask<Void, CommitTimestampProvider, Exception> task =
-                            invocation.getArgument(1);
-                    return manager.runTaskWithConditionWithRetry(commitTimestampFetcher, (txn, condition) -> {
-                        manager.getKeyValueService()
-                                .putUnlessExists(
-                                        TransactionConstants.TRANSACTION_TABLE,
-                                        Map.of(
-                                                V1EncodingStrategy.INSTANCE.encodeStartTimestampAsCell(
-                                                        txn.getTimestamp()),
-                                                Ints.toByteArray(-1)));
-                        task.execute(txn, condition);
-                        return null;
-                    });
-                })
+            Supplier<CommitTimestampProvider> commitTimestampFetcher = invocation.getArgument(0);
+            ConditionAwareTransactionTask<Void, CommitTimestampProvider, Exception> task =
+                    invocation.getArgument(1);
+            return manager.runTaskWithConditionWithRetry(commitTimestampFetcher, (txn, condition) -> {
+                manager.getKeyValueService()
+                        .putUnlessExists(
+                                TransactionConstants.TRANSACTION_TABLE,
+                                Map.of(
+                                        V1EncodingStrategy.INSTANCE.encodeStartTimestampAsCell(
+                                                txn.getTimestamp()),
+                                        Ints.toByteArray(-1)));
+                task.execute(txn, condition);
+                return null;
+            });
+        })
                 .when(keyAlreadyExistsExceptionThrowingStore)
                 .runTaskWithConditionWithRetry(any(Supplier.class), any());
         AtlasDbTransactionStore onlyKeyAlreadyExistsThrowingStore =u}(jY (5f94c49c9e8d8cc5f28e2eabc0db5f481d66e32aj qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://github.com/palantir/atlasdb/raw/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8j X{  @@ -18,10 +18,10 @@
 
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.logsafe.Preconditions;
 import java.util.ArrayList;
@@ -49,7 +49,7 @@ public List<WitnessedTransaction> build() {
     }
 
     public final class WitnessedTransactionBuilder {
-        private final List<WitnessedTransactionAction> actions = new ArrayList<>();
+        private final List<WitnessedCellTransactionAction> actions = new ArrayList<>();
 
         private boolean needsCommitTimestamp = false;
 u}(jY (f2096df8055fce95897fb336f6146b88ea854495j hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.java?ref=fb1d7bcb5fc0cbaa19f9bcea42af63fb5eecaab8j X^  @@ -29,8 +29,8 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.atlasdb.workload.workflow.ImmutableTableConfiguration;
@@ -81,7 +81,7 @@ public void workflowHistoryTransactionStoreShouldBeReadOnly() {
     public void ringWorkflowContainsInitialReadsForRing() {
         WorkflowHistory history = workflow.run();
 
-        List<WitnessedTransactionAction> actions =
+        List<WitnessedCellTransactionAction> actions =
                 Iterables.getOnlyElement(history.history()).actions();
 
         List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.ringSize())
@@ -96,7 +96,7 @@ public void ringWorkflowContainsInitialReadsForRing() {
     public void ringWorkflowContainsInitialWritesForRing() {
         WorkflowHistory history = workflow.run();
 
-        List<WitnessedTransactionAction> actions =
+        List<WitnessedCellTransactionAction> actions =
                 Iterables.getOnlyElement(history.history()).actions();
 
         List<WorkloadCell> actualWrittenCells = actions.stream()ueu(f1d9ce23fc831bd3987fe8df3e3eb7d1f68c4f2a}(sha(f1d9ce23fc831bd3987fe8df3e3eb7d1f68c4f2anode_idEC_kwDOAjP5fdoAKGYxZDljZTIzZmM4MzFiZDM5ODdmZThkZjNlM2ViN2QxZjY4YzRmMmEcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-04-28T23:27:25Zu	committer}(jH svc-autoreleasejJ -pd-foundry-infrastructure-notify@palantir.comjL 2023-04-28T23:27:25Zumessage"Autorelease 0.845.0-rc4

[skip ci]tree}(j@ (d46f5135f424d12ab60d951eddbc0ed16e5aaf96url`https://api.github.com/repos/palantir/atlasdb/git/trees/d46f5135f424d12ab60d951eddbc0ed16e5aaf96ujX bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f1d9ce23fc831bd3987fe8df3e3eb7d1f68c4f2a
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRMVl4ACgkQhbrR8ip7mDD1vwEAyGH7/l0htWEozcl6UifXdSSR
7G5C8dJabh6kYwTtjPcBAOlwPRgBwgbN1to8CVLbIylepTUCWP8HcS37NhYI61H+
=/YOo
-----END PGP SIGNATURE-----
payloadX(  tree d46f5135f424d12ab60d951eddbc0ed16e5aaf96
parent 79b272629750fff0cfa1b8c925fc0ea49059b1c8
author aalouane <30903736+ergo14@users.noreply.github.com> 1682724445 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1682724445 +0000

Autorelease 0.845.0-rc4

[skip ci]uujX ^https://api.github.com/repos/palantir/atlasdb/commits/f1d9ce23fc831bd3987fe8df3e3eb7d1f68c4f2ahtml_urlShttps://github.com/palantir/atlasdb/commit/f1d9ce23fc831bd3987fe8df3e3eb7d1f68c4f2acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f1d9ce23fc831bd3987fe8df3e3eb7d1f68c4f2a/commentsjF }(loginergo14idJjB MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jX #https://api.github.com/users/ergo14jf https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujN }(jk svc-autoreleasejm J(jB MDQ6VXNlcjUxNzE4MzQ2jo 4https://avatars.githubusercontent.com/u/51718346?v=4jq h5jX ,https://api.github.com/users/svc-autoreleasejf "https://github.com/svc-autoreleasejt 6https://api.github.com/users/svc-autorelease/followersjv Chttps://api.github.com/users/svc-autorelease/following{/other_user}jx <https://api.github.com/users/svc-autorelease/gists{/gist_id}jz Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j| :https://api.github.com/users/svc-autorelease/subscriptionsj~ 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(j@ (79b272629750fff0cfa1b8c925fc0ea49059b1c8jX ^https://api.github.com/repos/palantir/atlasdb/commits/79b272629750fff0cfa1b8c925fc0ea49059b1c8jf Shttps://github.com/palantir/atlasdb/commit/79b272629750fff0cfa1b8c925fc0ea49059b1c8uastats}(totalK 	additionsK 	deletionsK ufiles]u(6d00cf306c229c718347717ead9bc5f90ba743a3}(sha(6d00cf306c229c718347717ead9bc5f90ba743a3node_idEC_kwDOAjP5fdoAKDZkMDBjZjMwNmMyMjljNzE4MzQ3NzE3ZWFkOWJjNWY5MGJhNzQzYTMcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-03-20T17:29:30Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-03-20T17:29:30ZumessageAutorelease 0.816.0

[skip ci]tree}(j (63316f58ffea44ef1f97b4f95c8957e52343ebe1url`https://api.github.com/repos/palantir/atlasdb/git/trees/63316f58ffea44ef1f97b4f95c8957e52343ebe1uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6d00cf306c229c718347717ead9bc5f90ba743a3
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQYl/8ACgkQhbrR8ip7mDCdmwD+Ko7PBosuSJjHmZ3zoouYENBQ
D6/hKNQb2lZSZRekg4oBALGVjTnA0utpC5kMV1U3pXffkHN8O1FNrjte+fuQjWfs
=EkIt
-----END PGP SIGNATURE-----
payloadX0  tree 63316f58ffea44ef1f97b4f95c8957e52343ebe1
parent dd4b583f4b274213e27fc800b884ce0080ab9189
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1679333370 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1679333370 +0000

Autorelease 0.816.0

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/6d00cf306c229c718347717ead9bc5f90ba743a3html_urlShttps://github.com/palantir/atlasdb/commit/6d00cf306c229c718347717ead9bc5f90ba743a3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6d00cf306c229c718347717ead9bc5f90ba743a3/commentsj }(loginsvc-autoreleaseidJ(j MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(j MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(j (dd4b583f4b274213e27fc800b884ce0080ab9189j ^https://api.github.com/repos/palantir/atlasdb/commits/dd4b583f4b274213e27fc800b884ce0080ab9189j Shttps://github.com/palantir/atlasdb/commit/dd4b583f4b274213e27fc800b884ce0080ab9189uastats}(totalK 	additionsK 	deletionsK ufiles]}(j (3309c1d1cee08ce85d9ae1b7416b9cc06ad14e0ffilename changelog/0.816.0/pr-6474.v2.ymlstatusrenamedj
 K j K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/6d00cf306c229c718347717ead9bc5f90ba743a3/changelog%2F0.816.0%2Fpr-6474.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/6d00cf306c229c718347717ead9bc5f90ba743a3/changelog%2F0.816.0%2Fpr-6474.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.816.0%2Fpr-6474.v2.yml?ref=6d00cf306c229c718347717ead9bc5f90ba743a3previous_filename$changelog/@unreleased/pr-6474.v2.ymluau(e8c08c730beff2a6a8c739a74f7d5bca8e353d94}(sha(e8c08c730beff2a6a8c739a74f7d5bca8e353d94node_idEC_kwDOAjP5fdoAKGU4YzA4YzczMGJlZmYyYTZhOGM3MzlhNzRmN2Q1YmNhOGUzNTNkOTQcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-24T15:18:12Zu	committer}(j' Lucas Meirelesj) meireles31@msn.comj+ 2023-07-24T15:18:12Zumessagetesting all fetched cachedtree}(j (f47be4766989f68242938f7de76030b4491a9129url`https://api.github.com/repos/palantir/atlasdb/git/trees/f47be4766989f68242938f7de76030b4491a9129uj7 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e8c08c730beff2a6a8c739a74f7d5bca8e353d94
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS+ljQACgkQJd22kJ7J
GiwYywf+PiXvfIHMTHxFPnBqsZ5SKJNv9p+8FD9IAW9DT1lfb8p76pD0o1UaZmUF
1/jmo6dBnVkJK6cSwvTeI7nXEbuPIGw2waNtaDGqqJZisXEKghVny6m5VDNEAdZE
RfBZ+dAkcvWd9oce8tHAqQa1oTdQtWOalIdOzAYnBKaYbrefo7RHxY93UTdMuPRx
VgUw+rRtATPm5HFZPBLE5x2TLuNoi1cd9RJ1p20J97Rq4AEUwg6geu+Tq3WW0c2N
uhQyze6E7Z/g75ZX8nNjRjKCkXCUnHA5QgUD4Iue6yBlGvTfmaI7JlkYUB89Hxai
wPs81M5JOpyqb9McBZrCSYiVwCSfuA==
=ilTB
-----END PGP SIGNATURE-----payloadtree f47be4766989f68242938f7de76030b4491a9129
parent 2926f79b6213f00e947e604941cbcb3676b978c7
author Lucas Meireles <meireles31@msn.com> 1690211892 +0100
committer Lucas Meireles <meireles31@msn.com> 1690211892 +0100

testing all fetched cached
uuj7 ^https://api.github.com/repos/palantir/atlasdb/commits/e8c08c730beff2a6a8c739a74f7d5bca8e353d94html_urlShttps://github.com/palantir/atlasdb/commit/e8c08c730beff2a6a8c739a74f7d5bca8e353d94comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e8c08c730beff2a6a8c739a74f7d5bca8e353d94/commentsj% }(loginLucasIMEidJg j! MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j7 %https://api.github.com/users/LucasIMEjE https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj- }(jJ LucasIMEjL Jg j! MDQ6VXNlcjY3ODczMTE=jN 3https://avatars.githubusercontent.com/u/6787311?v=4jP h5j7 %https://api.github.com/users/LucasIMEjE https://github.com/LucasIMEjS /https://api.github.com/users/LucasIME/followersjU <https://api.github.com/users/LucasIME/following{/other_user}jW 5https://api.github.com/users/LucasIME/gists{/gist_id}jY <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j[ 3https://api.github.com/users/LucasIME/subscriptionsj] *https://api.github.com/users/LucasIME/orgsj_ +https://api.github.com/users/LucasIME/reposja 6https://api.github.com/users/LucasIME/events{/privacy}jc 5https://api.github.com/users/LucasIME/received_eventsje Userjg uparents]}(j (2926f79b6213f00e947e604941cbcb3676b978c7j7 ^https://api.github.com/repos/palantir/atlasdb/commits/2926f79b6213f00e947e604941cbcb3676b978c7jE Shttps://github.com/palantir/atlasdb/commit/2926f79b6213f00e947e604941cbcb3676b978c7uastats}(totalK+	additionsK*	deletionsKufiles]}(j (2c178980e58f9d161298daeef2a109999a45e6d9filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedj K*j KchangesK+blob_urlhttps://github.com/palantir/atlasdb/blob/e8c08c730beff2a6a8c739a74f7d5bca8e353d94/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e8c08c730beff2a6a8c739a74f7d5bca8e353d94/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=e8c08c730beff2a6a8c739a74f7d5bca8e353d94patchXB  @@ -1822,11 +1822,52 @@ public void keepNumberOfExpectedCellsIfCachedWithEmptyValue() {
                         any());
     }
 
+    @Test
+    public void dontFetchCellsIfAllCached() {
+        putCellsInTable(List.of(TEST_CELL, TEST_CELL_2), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        TransactionScopedCache txnCache = createCacheWithEntries(
+                TABLE_SWEPT_THOROUGH,
+                Map.of(
+                        TEST_CELL,
+                        "someValue".getBytes(StandardCharsets.UTF_8),
+                        TEST_CELL_2,
+                        "someOtherValue".getBytes(StandardCharsets.UTF_8)));
+
+        LockWatchManagerInternal mockLockWatchManager = mock(LockWatchManagerInternal.class);
+        when(mockLockWatchManager.getTransactionScopedCache(anyLong())).thenReturn(txnCache);
+
+        PathTypeTracker pathTypeTracker = PathTypeTrackers.constructSynchronousTracker();
+        SnapshotTransaction spiedSnapshotTransaction =
+                spy(getSnapshotTransactionWith(transactionTs, res, mockLockWatchManager, pathTypeTracker));
+        Transaction transaction = transactionWrapper.apply(spiedSnapshotTransaction, pathTypeTracker);
+
+        assertThatCode(() -> transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 2))
+                .doesNotThrowAnyException();
+
+        verify(spiedTimeLockService, never()).refreshLockLeases(any());
+        verify(spiedSnapshotTransaction, never())
+                .getInternal(
+                        eq("getWithExpectedNumberOfCells"), eq(TABLE_SWEPT_THOROUGH), any(), anyLong(), any(), any());
+    }
+
     private TransactionScopedCache createCacheWithEntry(TableReference table, Cell cell, byte[] value) {
+        return createCacheWithEntries(table, ImmutableMap.of(cell, value));
+    }
+
+    private TransactionScopedCache createCacheWithEntries(TableReference table, Map<Cell, byte[]> values) {
         CacheMetrics metrics = mock(CacheMetrics.class);
         return TransactionScopedCacheImpl.create(
                 ValueCacheSnapshotImpl.of(
-                        HashMap.of(CellReference.of(table, cell), CacheEntry.unlocked(CacheValue.of(value))),
+                        HashMap.ofAll(EntryStream.of(values)
+                                .mapKeys(cell -> CellReference.of(table, cell))
+                                .mapValues(value -> CacheEntry.unlocked(CacheValue.of(value)))
+                                .toMap()),
                         HashSet.of(table),
                         ImmutableSet.of(table)),
                 metrics);uau(ff89a0eee3af2f90b027f87290863c5cdc8a044f}(sha(ff89a0eee3af2f90b027f87290863c5cdc8a044fnode_idEC_kwDOAjP5fdoAKGZmODlhMGVlZTNhZjJmOTBiMDI3Zjg3MjkwODYzYzVjZGM4YTA0NGYcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-05-31T12:23:57Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-05-31T12:23:57Zumessage
initial batchtree}(j (80854d6fc6adc52a1909be3bb60cdb9dd5559e72url`https://api.github.com/repos/palantir/atlasdb/git/trees/80854d6fc6adc52a1909be3bb60cdb9dd5559e72uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ff89a0eee3af2f90b027f87290863c5cdc8a044f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmR3PF0ACgkQJd22kJ7J
GizUtQgAi4qcEpx1h+aF+h6w0Xz5xWORoEOOOVTCBHpWfTb4sv9w1OooDetXKIU6
+YPIg5jXd4lpP0eBfopTKwN+EiGTkjsCXaWfN8GTjvCKNnMtJRNEXmlupy2E7gWZ
4dwQKGXOnJS1X30Zk9CyIbQBwGNINMRzJji3bRqYNcW0l0j/0UkmBtjUMS8SL8S3
A20P862UyWN37Sx/ySxQti/DqWIfHHYFKc4fgZEtC61TGol7Vr2XqP1tjWklo+6k
aORsKQj+qhLqHtPpt5N187iYKg0XsTyy+QbwgpZB7vgvxu/5kbN3rTQdgw/jBp9F
4m/auTCWPahdqmhXokjr83R7mxrEmA==
=AJgY
-----END PGP SIGNATURE-----payloadtree 80854d6fc6adc52a1909be3bb60cdb9dd5559e72
parent bf6890433442e3e1661fb64a5ec87a7ffee50c23
author Lucas Meireles <meireles31@msn.com> 1685535837 +0100
committer Lucas Meireles <meireles31@msn.com> 1685535837 +0100

initial batch
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/ff89a0eee3af2f90b027f87290863c5cdc8a044fhtml_urlShttps://github.com/palantir/atlasdb/commit/ff89a0eee3af2f90b027f87290863c5cdc8a044fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ff89a0eee3af2f90b027f87290863c5cdc8a044f/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j LucasIMEj Jg j MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsj Userj uparents]}(j (bf6890433442e3e1661fb64a5ec87a7ffee50c23j ^https://api.github.com/repos/palantir/atlasdb/commits/bf6890433442e3e1661fb64a5ec87a7ffee50c23j Shttps://github.com/palantir/atlasdb/commit/bf6890433442e3e1661fb64a5ec87a7ffee50c23uastats}(totalM3	additionsK	deletionsKufiles](}(j (3fcdfba63012add4efff255598da04f0cb9e9b8afilenamePatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/KeyValueService.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fpatchX  @@ -69,7 +69,7 @@ public interface KeyValueService extends AutoCloseable, AsyncKeyValueService {
     @Idempotent
     @Timed
     Map<Cell, Value> getRows(
-            TableReference tableRef, Iterable<byte[]> rows, ColumnSelection columnSelection, long timestamp);
+            TableReference tableRef, Collection<byte[]> rows, ColumnSelection columnSelection, long timestamp);
 
     /**
      * Gets values from the key-value store for the specified rows and column range
@@ -89,14 +89,14 @@ Map<Cell, Value> getRows(
     @Timed
     Map<byte[], RowColumnRangeIterator> getRowsColumnRange(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             BatchColumnRangeSelection batchColumnRangeSelection,
             long timestamp);
 
     /**
      * Gets values from the key-value store for the specified rows and column range as a single iterator. This method
      * should be at least as performant as
-     * {@link #getRowsColumnRange(TableReference, Iterable, BatchColumnRangeSelection, long)}, and may be more
+     * {@link #getRowsColumnRange(TableReference, Collection, BatchColumnRangeSelection, long)}, and may be more
      * performant in some cases. Note that rows and columns must be non-empty: behaviour is undefined when
      * any of the rows or any of the columns in the column selection are the empty byte array.
      *
@@ -116,7 +116,7 @@ Map<byte[], RowColumnRangeIterator> getRowsColumnRange(
     @Timed
     RowColumnRangeIterator getRowsColumnRange(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             ColumnRangeSelection columnRangeSelection,
             int cellBatchHint,
             long timestamp);
@@ -395,7 +395,7 @@ default boolean supportsCheckAndSet() {
      */
     @Idempotent
     @Timed
-    void deleteRows(TableReference tableRef, Iterable<byte[]> rows);
+    void deleteRows(TableReference tableRef, Collection<byte[]> rows);
 
     /**
      * For each cell, deletes all timestamps prior to the associated maximum timestamp. If this
@@ -516,7 +516,7 @@ ClosableIterator<List<CandidateCellForSweeping>> getCandidateCellsForSweeping(
     @Idempotent
     @Timed
     Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> getFirstBatchForRanges(
-            TableReference tableRef, Iterable<RangeRequest> rangeRequests, long timestamp);
+            TableReference tableRef, Collection<RangeRequest> rangeRequests, long timestamp);
 
     ////////////////////////////////////////////////////////////
     // TABLE CREATION AND METADATA
@@ -601,7 +601,7 @@ Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> getFirs
      */
     @Idempotent
     @Timed
-    void addGarbageCollectionSentinelValues(TableReference tableRef, Iterable<Cell> cells);
+    void addGarbageCollectionSentinelValues(TableReference tableRef, Collection<Cell> cells);
 
     /**
      * Gets timestamp values from the key-value store. For each cell, this returns all associatedu}(j (9e9fb2ee236f97a361780916e1b40e9c4ffb0f4dj aatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/cache/NoOpTransactionScopedCache.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FNoOpTransactionScopedCache.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FNoOpTransactionScopedCache.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FNoOpTransactionScopedCache.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X{  @@ -25,6 +25,7 @@
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.lock.watch.CommitUpdate;
+import java.util.Collection;
 import java.util.Map;
 import java.util.NavigableMap;
 import java.util.Set;
@@ -62,10 +63,10 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(
     @Override
     public NavigableMap<byte[], RowResult<byte[]>> getRows(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             ColumnSelection columnSelection,
             Function<Set<Cell>, Map<Cell, byte[]>> cellLoader,
-            Function<Iterable<byte[]>, NavigableMap<byte[], RowResult<byte[]>>> rowLoader) {
+            Function<Collection<byte[]>, NavigableMap<byte[], RowResult<byte[]>>> rowLoader) {
         return rowLoader.apply(rows);
     }
 u}(j (5a4b9dd672dc5985921e0b7ce7673deefbcea5fcj eatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/cache/ReadOnlyTransactionScopedCache.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FReadOnlyTransactionScopedCache.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FReadOnlyTransactionScopedCache.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FReadOnlyTransactionScopedCache.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X  @@ -22,6 +22,7 @@
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.lock.watch.CommitUpdate;
+import java.util.Collection;
 import java.util.Map;
 import java.util.NavigableMap;
 import java.util.Set;
@@ -67,10 +68,10 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(
     @Override
     public NavigableMap<byte[], RowResult<byte[]>> getRows(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             ColumnSelection columnSelection,
             Function<Set<Cell>, Map<Cell, byte[]>> cellLoader,
-            Function<Iterable<byte[]>, NavigableMap<byte[], RowResult<byte[]>>> rowLoader) {
+            Function<Collection<byte[]>, NavigableMap<byte[], RowResult<byte[]>>> rowLoader) {
         return delegate.getRows(tableRef, rows, columnSelection, cellLoader, rowLoader);
     }
 u}(j (1915ba3de7bfed0acc5d19ac4d5913c1cd824499j ]atlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/cache/TransactionScopedCache.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FTransactionScopedCache.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FTransactionScopedCache.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FTransactionScopedCache.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X  @@ -23,6 +23,7 @@
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.lock.watch.CommitUpdate;
+import java.util.Collection;
 import java.util.Map;
 import java.util.NavigableMap;
 import java.util.Set;
@@ -77,10 +78,10 @@ ListenableFuture<Map<Cell, byte[]>> getAsync(
      */
     NavigableMap<byte[], RowResult<byte[]>> getRows(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             ColumnSelection columnSelection,
             Function<Set<Cell>, Map<Cell, byte[]>> cellLoader,
-            Function<Iterable<byte[]>, NavigableMap<byte[], RowResult<byte[]>>> rowLoader);
+            Function<Collection<byte[]>, NavigableMap<byte[], RowResult<byte[]>>> rowLoader);
 
     /**
      * This method should be called before retrieving the value or hit digest, as it guarantees that no more reads oru}(j (d532a5292992cb0fd392d50f351f9afc6f776ef9j aatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/ConstraintCheckingTransaction.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FConstraintCheckingTransaction.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FConstraintCheckingTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FConstraintCheckingTransaction.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X  @@ -18,6 +18,7 @@
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
+import java.util.Collection;
 import java.util.Map;
 import java.util.Set;
 import java.util.SortedMap;
@@ -31,5 +32,5 @@ public interface ConstraintCheckingTransaction extends Transaction {
     /**
      * Returns the row result values in the key-value service, ignoring the cache of local writes.
      */
-    SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(TableReference tableRef, Iterable<byte[]> rows);
+    SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(TableReference tableRef, Collection<byte[]> rows);
 }u}(j (34e77e56524190fa2b45f17ccdfb769c6cb4fcaaj Oatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/Transaction.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X  @@ -27,6 +27,7 @@
 import com.palantir.atlasdb.transaction.service.TransactionService;
 import com.palantir.common.annotation.Idempotent;
 import com.palantir.common.base.BatchingVisitable;
+import java.util.Collection;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
@@ -71,7 +72,7 @@ public interface Transaction {
      */
     @Idempotent
     NavigableMap<byte[], RowResult<byte[]>> getRows(
-            TableReference tableRef, Iterable<byte[]> rows, ColumnSelection columnSelection);
+            TableReference tableRef, Collection<byte[]> rows, ColumnSelection columnSelection);
 
     /**
      * Returns a mapping of requested {@code rows} to corresponding columns from the queried table.
@@ -93,7 +94,7 @@ NavigableMap<byte[], RowResult<byte[]>> getRows(
      */
     @Idempotent
     Map<byte[], BatchingVisitable<Map.Entry<Cell, byte[]>>> getRowsColumnRange(
-            TableReference tableRef, Iterable<byte[]> rows, BatchColumnRangeSelection columnRangeSelection);
+            TableReference tableRef, Collection<byte[]> rows, BatchColumnRangeSelection columnRangeSelection);
 
     /**
      * Returns a single iterator over the cell-value pairs in {@code tableRef} for the specified {@code rows}, where the
@@ -140,7 +141,7 @@ Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
      */
     @Idempotent
     Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator(
-            TableReference tableRef, Iterable<byte[]> rows, BatchColumnRangeSelection columnRangeSelection);
+            TableReference tableRef, Collection<byte[]> rows, BatchColumnRangeSelection columnRangeSelection);
 
     /**
      * Returns an iterator over cell-value pairs within {@code tableRef} for the specified {@code rows}, where theu}(j (c6a86038d7cbf1edb5084a31ae1d92c8f775960fj iatlasdb-api/src/test/java/com/palantir/atlasdb/keyvalue/api/cache/ReadOnlyTransactionScopedCacheTest.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FReadOnlyTransactionScopedCacheTest.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FReadOnlyTransactionScopedCacheTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FReadOnlyTransactionScopedCacheTest.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X  @@ -28,6 +28,7 @@
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.lock.watch.CommitUpdate;
+import java.util.Collection;
 import java.util.Map;
 import java.util.NavigableMap;
 import java.util.Set;
@@ -56,7 +57,7 @@ public final class ReadOnlyTransactionScopedCacheTest {
     public Function<Set<Cell>, Map<Cell, byte[]>> immediateValueLoader;
 
     @Mock
-    public Function<Iterable<byte[]>, NavigableMap<byte[], RowResult<byte[]>>> rowLoader;
+    public Function<Collection<byte[]>, NavigableMap<byte[], RowResult<byte[]>>> rowLoader;
 
     @Test
     public void nonReadMethodsThrow() {u}(j (a920a745b10a2ea748a947b7dabb15cf625fa59cj iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X  @@ -606,7 +606,7 @@ private void lowerConsistencyWhenSafe() {
      */
     @Override
     public Map<Cell, Value> getRows(
-            TableReference tableRef, Iterable<byte[]> rows, ColumnSelection selection, long startTs) {
+            TableReference tableRef, Collection<byte[]> rows, ColumnSelection selection, long startTs) {
         if (!selection.allColumnsSelected()) {
             return getRowsForSpecificColumns(tableRef, rows, selection, startTs);
         }
@@ -854,7 +854,7 @@ private Map<Cell, Value> get(
     @Override
     public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             BatchColumnRangeSelection batchColumnRangeSelection,
             long timestamp) {
         Set<Map.Entry<CassandraServer, List<byte[]>>> rowsByHost = HostPartitioner.partitionByHost(
@@ -1307,7 +1307,7 @@ CfDef getCfForTable(TableReference tableRef, byte[] rawMetadata, int gcGraceSeco
     @Override
     @Idempotent
     public Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> getFirstBatchForRanges(
-            TableReference tableRef, Iterable<RangeRequest> rangeRequests, long timestamp) {
+            TableReference tableRef, Collection<RangeRequest> rangeRequests, long timestamp) {
         int concurrency = config.rangesConcurrency();
         return KeyValueServices.getFirstBatchForRangesUsingGetRangeConcurrent(
                 executor, this, tableRef, rangeRequests, timestamp, concurrency);
@@ -1741,7 +1741,7 @@ private static boolean isForSingleRow(byte[] startInclusive, byte[] endExclusive
     }
 
     @Override
-    public void deleteRows(TableReference tableRef, Iterable<byte[]> rows) {
+    public void deleteRows(TableReference tableRef, Collection<byte[]> rows) {
         Set<ByteBuffer> actualKeys = StreamSupport.stream(rows.spliterator(), false)
                 .map(ByteBuffer::wrap)
                 .collect(Collectors.toSet());
@@ -1805,13 +1805,13 @@ public void close() {
      * @throws AtlasDbDependencyException if fewer than a quorum of Cassandra nodes are reachable.
      */
     @Override
-    public void addGarbageCollectionSentinelValues(TableReference tableRef, Iterable<Cell> cells) {
+    public void addGarbageCollectionSentinelValues(TableReference tableRef, Collection<Cell> cells) {
         try {
             final Value value = Value.create(PtBytes.EMPTY_BYTE_ARRAY, Value.INVALID_VALUE_TIMESTAMP);
             cellValuePutter.putWithOverriddenTimestamps(
                     "addGarbageCollectionSentinelValues",
                     tableRef,
-                    Iterables.transform(cells, cell -> Maps.immutableEntry(cell, value)));
+                    cells.stream().map(cell -> Maps.immutableEntry(cell, value)).collect(Collectors.toList()));
         } catch (Exception e) {
             throw Throwables.unwrapAndThrowAtlasDbDependencyException(e);
         }u}(j (4dfff8de031e41c60228562c2c64cd5974b461e5j \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/AbstractKeyValueService.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X  @@ -178,7 +178,7 @@ public void deleteRange(TableReference tableRef, RangeRequest range) {
     }
 
     @Override
-    public void deleteRows(TableReference tableRef, Iterable<byte[]> rows) {
+    public void deleteRows(TableReference tableRef, Collection<byte[]> rows) {
         rows.forEach(row -> deleteRange(tableRef, RangeRequests.ofSingleRow(row)));
     }
 
@@ -222,7 +222,7 @@ private static String computeInternalTableName(TableReference tableRef) {
     @Override
     public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             BatchColumnRangeSelection batchColumnRangeSelection,
             long timestamp) {
         return KeyValueServices.filterGetRowsToColumnRange(this, tableRef, rows, batchColumnRangeSelection, timestamp);
@@ -231,7 +231,7 @@ public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(
     @Override
     public RowColumnRangeIterator getRowsColumnRange(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             ColumnRangeSelection columnRangeSelection,
             int cellBatchHint,
             long timestamp) {u}(j (3d78dfb478df6c59ef63a1b21556dc108ea7e3eaj ]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/DualWriteKeyValueService.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X1
  @@ -73,7 +73,7 @@ public Collection<? extends KeyValueService> getDelegates() {
 
     @Override
     public Map<Cell, Value> getRows(
-            TableReference tableRef, Iterable<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
+            TableReference tableRef, Collection<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
         return delegate1.getRows(tableRef, rows, columnSelection, timestamp);
     }
 
@@ -143,7 +143,7 @@ public void deleteRange(TableReference tableRef, RangeRequest range) {
     }
 
     @Override
-    public void deleteRows(TableReference tableRef, Iterable<byte[]> rows) {
+    public void deleteRows(TableReference tableRef, Collection<byte[]> rows) {
         delegate1.deleteRows(tableRef, rows);
         delegate2.deleteRows(tableRef, rows);
     }
@@ -175,7 +175,7 @@ public ClosableIterator<RowResult<Value>> getRange(
 
     @Override
     public Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> getFirstBatchForRanges(
-            TableReference tableRef, Iterable<RangeRequest> rangeRequests, long timestamp) {
+            TableReference tableRef, Collection<RangeRequest> rangeRequests, long timestamp) {
         return delegate1.getFirstBatchForRanges(tableRef, rangeRequests, timestamp);
     }
 
@@ -221,7 +221,7 @@ public void putMetadataForTable(TableReference tableRef, byte[] metadata) {
     }
 
     @Override
-    public void addGarbageCollectionSentinelValues(TableReference tableRef, Iterable<Cell> cells) {
+    public void addGarbageCollectionSentinelValues(TableReference tableRef, Collection<Cell> cells) {
         delegate1.addGarbageCollectionSentinelValues(tableRef, cells);
         delegate2.addGarbageCollectionSentinelValues(tableRef, cells);
     }
@@ -282,7 +282,7 @@ public boolean isInitialized() {
     @Override
     public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             BatchColumnRangeSelection batchColumnRangeSelection,
             long timestamp) {
         return delegate1.getRowsColumnRange(tableRef, rows, batchColumnRangeSelection, timestamp);
@@ -291,7 +291,7 @@ public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(
     @Override
     public RowColumnRangeIterator getRowsColumnRange(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             ColumnRangeSelection columnRangeSelection,
             int cellBatchHint,
             long timestamp) {u}(j (e89d141e9f2d5d675a1702484614c813bc720205j \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/InMemoryKeyValueService.javaj  modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X	  @@ -111,7 +111,7 @@ public InMemoryKeyValueService(boolean createTablesAutomatically, ExecutorServic
     @Override
     @SuppressWarnings({"CheckReturnValue"}) // Consume all remaining values of iterator.
     public Map<Cell, Value> getRows(
-            TableReference tableRef, Iterable<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
+            TableReference tableRef, Collection<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
         Map<Cell, Value> result = new HashMap<>();
         ConcurrentNavigableMap<Key, byte[]> table = getTableMap(tableRef).entries;
         for (byte[] row : rows) {
@@ -176,7 +176,7 @@ public Map<Cell, Value> get(TableReference tableRef, Map<Cell, Long> timestampBy
 
     @Override
     public Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> getFirstBatchForRanges(
-            TableReference tableRef, Iterable<RangeRequest> rangeRequests, long timestamp) {
+            TableReference tableRef, Collection<RangeRequest> rangeRequests, long timestamp) {
         return KeyValueServices.getFirstBatchForRangesUsingGetRange(this, tableRef, rangeRequests, timestamp);
     }
 
@@ -314,7 +314,7 @@ protected Map.Entry<Key, byte[]> computeNext() {
     @Override
     public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             BatchColumnRangeSelection batchColumnRangeSelection,
             long timestamp) {
         IdentityHashMap<byte[], RowColumnRangeIterator> result = new IdentityHashMap<>();
@@ -332,7 +332,7 @@ public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(
     @Override
     public RowColumnRangeIterator getRowsColumnRange(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             ColumnRangeSelection columnRangeSelection,
             int cellBatchHint,
             long timestamp) {
@@ -686,7 +686,7 @@ private Table getTableMap(TableReference tableRef) {
     }
 
     @Override
-    public void addGarbageCollectionSentinelValues(TableReference tableRef, Iterable<Cell> cells) {
+    public void addGarbageCollectionSentinelValues(TableReference tableRef, Collection<Cell> cells) {
         runWithLockForWrites(tableRef, table -> {
             for (Cell cell : cells) {
                 table.put(new Key(cell, Value.INVALID_VALUE_TIMESTAMP), ArrayUtils.EMPTY_BYTE_ARRAY);u}(j (f77bedc10f600e2acce22f3c57ceda4272157e22j Uatlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/KeyValueServices.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FKeyValueServices.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FKeyValueServices.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FKeyValueServices.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X  @@ -56,6 +56,7 @@
 import java.util.SortedMap;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ExecutorService;
+import java.util.stream.Collectors;
 import org.apache.commons.lang3.tuple.Pair;
 
 public final class KeyValueServices {
@@ -147,7 +148,7 @@ public static Collection<Map.Entry<Cell, Value>> toConstantTimestampValues(
     public static Map<byte[], RowColumnRangeIterator> filterGetRowsToColumnRange(
             KeyValueService kvs,
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             BatchColumnRangeSelection columnRangeSelection,
             long timestamp) {
         log.warn("Using inefficient postfiltering for getRowsColumnRange because the KVS doesn't support it natively. "
@@ -195,7 +196,7 @@ public static Map<byte[], RowColumnRangeIterator> filterGetRowsToColumnRange(
     public static RowColumnRangeIterator mergeGetRowsColumnRangeIntoSingleIterator(
             KeyValueService kvs,
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             ColumnRangeSelection columnRangeSelection,
             int batchHint,
             long timestamp) {
@@ -208,7 +209,8 @@ public static RowColumnRangeIterator mergeGetRowsColumnRangeIntoSingleIterator(
         Map<byte[], RowColumnRangeIterator> rowsColumnRanges =
                 kvs.getRowsColumnRange(tableRef, rows, batchColumnRangeSelection, timestamp);
         // Return results in the same order as the provided rows.
-        Iterable<RowColumnRangeIterator> orderedRanges = Iterables.transform(rows, rowsColumnRanges::get);
+        Iterable<RowColumnRangeIterator> orderedRanges =
+                rows.stream().map(rowsColumnRanges::get).collect(Collectors.toList());
         return new LocalRowColumnRangeIterator(Iterators.concat(orderedRanges.iterator()));
     }
 u}(j (eb6bc5abfef90a55f141e49e6b36a99eb9185279j ]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/ProfilingKeyValueService.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X1  @@ -158,7 +158,7 @@ private static BiConsumer<LoggingFunction, Map<Cell, Value>> logCellResultSize(l
     }
 
     @Override
-    public void addGarbageCollectionSentinelValues(TableReference tableRef, Iterable<Cell> cells) {
+    public void addGarbageCollectionSentinelValues(TableReference tableRef, Collection<Cell> cells) {
         long startTime = System.currentTimeMillis();
         maybeLog(
                 () -> delegate.addGarbageCollectionSentinelValues(tableRef, cells),
@@ -197,7 +197,7 @@ public void deleteRange(TableReference tableRef, RangeRequest range) {
     }
 
     @Override
-    public void deleteRows(TableReference tableRef, Iterable<byte[]> rows) {
+    public void deleteRows(TableReference tableRef, Collection<byte[]> rows) {
         maybeLog(() -> delegate.deleteRows(tableRef, rows), logTimeAndTableRows("deleteRows", tableRef, rows));
     }
 
@@ -251,7 +251,7 @@ public Collection<? extends KeyValueService> getDelegates() {
 
     @Override
     public Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> getFirstBatchForRanges(
-            TableReference tableRef, Iterable<RangeRequest> rangeRequests, long timestamp) {
+            TableReference tableRef, Collection<RangeRequest> rangeRequests, long timestamp) {
         return maybeLog(
                 () -> delegate.getFirstBatchForRanges(tableRef, rangeRequests, timestamp),
                 logTimeAndTable("getFirstBatchForRanges", tableRef));
@@ -306,7 +306,7 @@ public ClosableIterator<List<CandidateCellForSweeping>> getCandidateCellsForSwee
 
     @Override
     public Map<Cell, Value> getRows(
-            TableReference tableRef, Iterable<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
+            TableReference tableRef, Collection<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
         long startTime = System.currentTimeMillis();
         return KvsProfilingLogger.maybeLog(
                 () -> delegate.getRows(tableRef, rows, columnSelection, timestamp),
@@ -463,7 +463,7 @@ public void compactInternally(TableReference tableRef, boolean inMaintenanceMode
     @Override
     public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             BatchColumnRangeSelection batchColumnRangeSelection,
             long timestamp) {
         long startTime = System.currentTimeMillis();
@@ -481,7 +481,7 @@ public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(
     @Override
     public RowColumnRangeIterator getRowsColumnRange(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             ColumnRangeSelection columnRangeSelection,
             int cellBatchHint,
             long timestamp) {u}(j (1bef3e4b0322d8b50768cffbdb6fbff4af058587j aatlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/StatsTrackingKeyValueService.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FStatsTrackingKeyValueService.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FStatsTrackingKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FStatsTrackingKeyValueService.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X[  @@ -30,6 +30,7 @@
 import com.palantir.common.base.ForwardingClosableIterator;
 import com.palantir.common.collect.MapEntries;
 import java.io.PrintWriter;
+import java.util.Collection;
 import java.util.Collections;
 import java.util.Map;
 import java.util.concurrent.ConcurrentHashMap;
@@ -166,7 +167,7 @@ public Map<Cell, Value> get(TableReference tableRef, Map<Cell, Long> timestampBy
 
     @Override
     public Map<Cell, Value> getRows(
-            TableReference tableRef, Iterable<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
+            TableReference tableRef, Collection<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
         long start = System.currentTimeMillis();
         Map<Cell, Value> r = super.getRows(tableRef, rows, columnSelection, timestamp);
         long finish = System.currentTimeMillis();u}(j (d5cae4f666aef4c48abf9259ff3640d12f04c4d0j [atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/TracingKeyValueService.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X  @@ -91,7 +91,7 @@ protected KeyValueService delegate() {
     }
 
     @Override
-    public void addGarbageCollectionSentinelValues(TableReference tableRef, Iterable<Cell> cells) {
+    public void addGarbageCollectionSentinelValues(TableReference tableRef, Collection<Cell> cells) {
         //noinspection unused - try-with-resources closes trace
         try (CloseableTracer trace = startLocalTrace("atlasdb-kvs.addGarbageCollectionSentinelValues", sink -> {
             sink.tableRef(tableRef);
@@ -191,7 +191,7 @@ public void deleteRange(TableReference tableRef, RangeRequest range) {
     }
 
     @Override
-    public void deleteRows(TableReference tableRef, Iterable<byte[]> rows) {
+    public void deleteRows(TableReference tableRef, Collection<byte[]> rows) {
         //noinspection unused - try-with-resources closes trace
         try (CloseableTracer trace = startLocalTrace("atlasdb-kvs.deleteRows", tableRef)) {
             delegate().deleteRows(tableRef, rows);
@@ -264,7 +264,7 @@ public Collection<? extends KeyValueService> getDelegates() {
 
     @Override
     public Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> getFirstBatchForRanges(
-            TableReference tableRef, Iterable<RangeRequest> rangeRequests, long timestamp) {
+            TableReference tableRef, Collection<RangeRequest> rangeRequests, long timestamp) {
         //noinspection unused - try-with-resources closes trace
         try (CloseableTracer trace = startLocalTrace("atlasdb-kvs.getFirstBatchForRanges", sink -> {
             sink.tableRef(tableRef);
@@ -356,7 +356,7 @@ public ClosableIterator<List<CandidateCellForSweeping>> getCandidateCellsForSwee
 
     @Override
     public Map<Cell, Value> getRows(
-            TableReference tableRef, Iterable<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
+            TableReference tableRef, Collection<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
         //noinspection unused - try-with-resources closes trace
         try (CloseableTracer trace = startLocalTrace("atlasdb-kvs.getRows", sink -> {
             sink.tableRef(tableRef);
@@ -370,7 +370,7 @@ public Map<Cell, Value> getRows(
     @Override
     public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             BatchColumnRangeSelection columnRangeSelection,
             long timestamp) {
         TraceStatistic original = TraceStatistics.getCurrentAndClear();
@@ -389,7 +389,7 @@ public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(
     @Override
     public RowColumnRangeIterator getRowsColumnRange(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             ColumnRangeSelection columnRangeSelection,
             int cellBatchHint,
             long timestamp) {u     }(j (6ab486f53bc7053be6fa9b3806e4702337698373j latlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/ValidatingQueryRewritingKeyValueService.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FValidatingQueryRewritingKeyValueService.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FValidatingQueryRewritingKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FValidatingQueryRewritingKeyValueService.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X  @@ -159,7 +159,7 @@ public Collection<? extends KeyValueService> getDelegates() {
 
     @Override
     public Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> getFirstBatchForRanges(
-            TableReference tableRef, Iterable<RangeRequest> rangeRequests, long timestamp) {
+            TableReference tableRef, Collection<RangeRequest> rangeRequests, long timestamp) {
         if (Iterables.isEmpty(rangeRequests)) {
             return ImmutableMap.of();
         }
@@ -176,7 +176,7 @@ public Map<Cell, Long> getLatestTimestamps(TableReference tableRef, Map<Cell, Lo
 
     @Override
     public Map<Cell, Value> getRows(
-            TableReference tableRef, Iterable<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
+            TableReference tableRef, Collection<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
         if (Iterables.isEmpty(rows) || columnSelection.noColumnsSelected()) {
             return ImmutableMap.of();
         }u}(j (42edafe31d8d142d61fe20eeeb4a4000d3115a2fj Zatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CachingTransaction.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X  @@ -77,7 +77,7 @@ public Transaction delegate() {
 
     @Override
     public NavigableMap<byte[], RowResult<byte[]>> getRows(
-            TableReference tableRef, Iterable<byte[]> rows, ColumnSelection columnSelection) {
+            TableReference tableRef, Collection<byte[]> rows, ColumnSelection columnSelection) {
         if (Iterables.isEmpty(rows)) {
             return AbstractTransaction.EMPTY_SORTED_ROWS;
         }u}(j (0aca589aa53a94d3f5dc4c033e86b447270d1c47j ]atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingTransaction.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 XW  @@ -31,6 +31,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 import com.palantir.common.base.BatchingVisitable;
+import java.util.Collection;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
@@ -50,19 +51,19 @@ public void useTable(TableReference tableRef, ConstraintCheckable table) {
 
     @Override
     public NavigableMap<byte[], RowResult<byte[]>> getRows(
-            TableReference tableRef, Iterable<byte[]> rows, ColumnSelection columnSelection) {
+            TableReference tableRef, Collection<byte[]> rows, ColumnSelection columnSelection) {
         return delegate().getRows(tableRef, rows, columnSelection);
     }
 
     @Override
     public Map<byte[], BatchingVisitable<Map.Entry<Cell, byte[]>>> getRowsColumnRange(
-            TableReference tableRef, Iterable<byte[]> rows, BatchColumnRangeSelection columnRangeSelection) {
+            TableReference tableRef, Collection<byte[]> rows, BatchColumnRangeSelection columnRangeSelection) {
         return delegate().getRowsColumnRange(tableRef, rows, columnRangeSelection);
     }
 
     @Override
     public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator(
-            TableReference tableRef, Iterable<byte[]> rows, BatchColumnRangeSelection columnRangeSelection) {
+            TableReference tableRef, Collection<byte[]> rows, BatchColumnRangeSelection columnRangeSelection) {
         return delegate().getRowsColumnRangeIterator(tableRef, rows, columnRangeSelection);
     }
 u}(j (07c7e09726253c635f9e879dfdee08044aef247cj Watlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ReadTransaction.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X  @@ -29,6 +29,7 @@
 import com.palantir.common.base.BatchingVisitable;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Collection;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
@@ -52,7 +53,7 @@ public CallbackAwareTransaction delegate() {
 
     @Override
     public NavigableMap<byte[], RowResult<byte[]>> getRows(
-            TableReference tableRef, Iterable<byte[]> rows, ColumnSelection columnSelection) {
+            TableReference tableRef, Collection<byte[]> rows, ColumnSelection columnSelection) {
         checkTableName(tableRef);
         return delegate().getRows(tableRef, rows, columnSelection);
     }
@@ -109,14 +110,14 @@ public Stream<BatchingVisitable<RowResult<byte[]>>> getRangesLazy(
 
     @Override
     public Map<byte[], BatchingVisitable<Map.Entry<Cell, byte[]>>> getRowsColumnRange(
-            TableReference tableRef, Iterable<byte[]> rows, BatchColumnRangeSelection columnRangeSelection) {
+            TableReference tableRef, Collection<byte[]> rows, BatchColumnRangeSelection columnRangeSelection) {
         checkTableName(tableRef);
         return delegate().getRowsColumnRange(tableRef, rows, columnRangeSelection);
     }
 
     @Override
     public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator(
-            TableReference tableRef, Iterable<byte[]> rows, BatchColumnRangeSelection columnRangeSelection) {
+            TableReference tableRef, Collection<byte[]> rows, BatchColumnRangeSelection columnRangeSelection) {
         checkTableName(tableRef);
         return delegate().getRowsColumnRangeIterator(tableRef, rows, columnRangeSelection);
     }u}(j (b9b13b7cc3acdc024b34e9f1de2da2289a3f4490j ^atlasdb-client/src/test/java/com/palantir/atlasdb/table/description/AbstractSchemaApiTest.javaj  modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FAbstractSchemaApiTest.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FAbstractSchemaApiTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FAbstractSchemaApiTest.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X]  @@ -26,7 +26,6 @@
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Iterables;
-import com.google.common.collect.Lists;
 import com.google.common.primitives.UnsignedBytes;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.Cell;
@@ -43,7 +42,9 @@
 import com.palantir.atlasdb.transaction.impl.AbstractTransaction;
 import com.palantir.common.base.BatchingVisitableFromIterable;
 import java.nio.charset.StandardCharsets;
+import java.util.ArrayList;
 import java.util.Arrays;
+import java.util.Collection;
 import java.util.Collections;
 import java.util.List;
 import java.util.Map;
@@ -121,7 +122,7 @@ public void testGetSingleRowFirstColumn() {
         long value = getSingleRowFirstColumn(transaction, TEST_ROW_KEY);
 
         assertThat(value).isEqualTo(TEST_VALUE_LONG);
-        ArgumentCaptor<Iterable<byte[]>> argument = ArgumentCaptor.forClass(Iterable.class);
+        ArgumentCaptor<Collection<byte[]>> argument = ArgumentCaptor.forClass(Collection.class);
         verify(transaction, times(1)).getRows(eq(tableRef), argument.capture(), eq(FIRST_COLUMN_SELECTION));
 
         Iterable<byte[]> argumentRows = argument.getValue();
@@ -144,10 +145,10 @@ public void testGetMultipleRowsFirstColumn() {
         assertThat(result)
                 .containsExactlyInAnyOrderEntriesOf(
                         ImmutableMap.of(TEST_ROW_KEY, TEST_VALUE_LONG, TEST_ROW_KEY2, TEST_VALUE_LONG2));
-        ArgumentCaptor<Iterable<byte[]>> argument = ArgumentCaptor.forClass(Iterable.class);
+        ArgumentCaptor<Collection<byte[]>> argument = ArgumentCaptor.forClass(Collection.class);
         verify(transaction, times(1)).getRows(eq(tableRef), argument.capture(), eq(FIRST_COLUMN_SELECTION));
 
-        List<byte[]> argumentRows = Lists.newArrayList(argument.getValue());
+        List<byte[]> argumentRows = new ArrayList<>(argument.getValue());
         assertThat(argumentRows).hasSize(2);
         assertThat(argumentRows.get(0))
                 .usingComparator(UnsignedBytes.lexicographicalComparator())u}(j (9e32062f3314481a20f5f37d2dd4d25b41505763j Oatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/DbKvs.javaj  modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FDbKvs.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FDbKvs.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FDbKvs.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X  @@ -314,7 +314,7 @@ public void close() {
 
     @Override
     public Map<Cell, Value> getRows(
-            TableReference tableRef, Iterable<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
+            TableReference tableRef, Collection<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
         return getRowsBatching(tableRef, rows, columnSelection, timestamp);
     }
 
@@ -653,7 +653,7 @@ public void deleteAllTimestamps(TableReference tableRef, Map<Cell, TimestampRang
 
     @Override
     public Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> getFirstBatchForRanges(
-            TableReference tableRef, Iterable<RangeRequest> rangeRequests, long timestamp) {
+            TableReference tableRef, Collection<RangeRequest> rangeRequests, long timestamp) {
         return new DbKvsGetRanges(this, dbTables.getDbType(), connections, dbTables.getPrefixedTableNames())
                 .getFirstBatchForRanges(tableRef, rangeRequests, timestamp);
     }
@@ -812,7 +812,7 @@ private TimestampsByCellResultWithToken getTimestampsByCell(
     @Override
     public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             BatchColumnRangeSelection batchColumnRangeSelection,
             long timestamp) {
         List<byte[]> rowList = ImmutableList.copyOf(rows);
@@ -846,7 +846,7 @@ public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(
     @Override
     public RowColumnRangeIterator getRowsColumnRange(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             ColumnRangeSelection columnRangeSelection,
             int cellBatchHint,
             long timestamp) {
@@ -1219,7 +1219,7 @@ public Map<TableReference, byte[]> getMetadataForTables() {
     }
 
     @Override
-    public void addGarbageCollectionSentinelValues(TableReference tableRef, Iterable<Cell> cells) {
+    public void addGarbageCollectionSentinelValues(TableReference tableRef, Collection<Cell> cells) {
         runWrite(tableRef, (Function<DbWriteTable, Void>) table -> {
             table.putSentinels(cells);
             return null;u}(j (143bcd17be6ad529a3971cceb318b9904133dfe2j eatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/RowsColumnRangeBatchRequest.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FRowsColumnRangeBatchRequest.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FRowsColumnRangeBatchRequest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FRowsColumnRangeBatchRequest.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X{  @@ -25,8 +25,7 @@
 import org.immutables.value.Value;
 
 /**
- * Represents a batch to load in {@link com.palantir.atlasdb.keyvalue.api.KeyValueService#getRowsColumnRange(
- * com.palantir.atlasdb.keyvalue.api.TableReference, Iterable, ColumnRangeSelection, int, long)}. The overall iteration
+ * Represents a batch to load in {@link com.palantir.atlasdb.keyvalue.api.KeyValueService#getRowsColumnRange(com.palantir.atlasdb.keyvalue.api.TableReference, java.util.Collection, ColumnRangeSelection, int, long)}. The overall iteration
  * order returns all requested columns for the first row, followed by all requested columns for the second row, and so
  * forth. Hence, a single batch consists of some contiguous group of rows to fully load, plus optionally a first row
  * that has a different starting column and optionally a last row where we load a number of columns less than the total.u}(j (b293289054ff438ad833550c2f437c85f54c14c3j iatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/cache/TransactionScopedCacheImpl.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FTransactionScopedCacheImpl.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FTransactionScopedCacheImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FTransactionScopedCacheImpl.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 Xy  @@ -34,6 +34,7 @@
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.watch.CommitUpdate;
 import java.util.ArrayList;
+import java.util.Collection;
 import java.util.HashSet;
 import java.util.List;
 import java.util.Map;
@@ -108,10 +109,10 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(
     @Override
     public NavigableMap<byte[], RowResult<byte[]>> getRows(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             ColumnSelection columnSelection,
             Function<Set<Cell>, Map<Cell, byte[]>> cellLoader,
-            Function<Iterable<byte[]>, NavigableMap<byte[], RowResult<byte[]>>> rowLoader) {
+            Function<Collection<byte[]>, NavigableMap<byte[], RowResult<byte[]>>> rowLoader) {
         ensureNotFinalised();
 
         if (!valueStore.isWatched(tableRef)) {u}(j (959080932a8536717744e4d33e161e04cec7614dj oatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/cache/ValidatingTransactionScopedCache.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FValidatingTransactionScopedCache.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FValidatingTransactionScopedCache.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FValidatingTransactionScopedCache.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X	  @@ -38,6 +38,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.Arrays;
+import java.util.Collection;
 import java.util.Map;
 import java.util.NavigableMap;
 import java.util.NavigableSet;
@@ -117,10 +118,10 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(
     @Override
     public NavigableMap<byte[], RowResult<byte[]>> getRows(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             ColumnSelection columnSelection,
             Function<Set<Cell>, Map<Cell, byte[]>> cellLoader,
-            Function<Iterable<byte[]>, NavigableMap<byte[], RowResult<byte[]>>> rowLoader) {
+            Function<Collection<byte[]>, NavigableMap<byte[], RowResult<byte[]>>> rowLoader) {
         if (shouldValidate()) {
             NavigableMap<byte[], RowResult<byte[]>> remoteReads = rowLoader.apply(rows);
             NavigableMap<byte[], RowResult<byte[]>> cacheReads = delegate.getRows(u}(j (209767642e6b8ee33ed93937f727cad2836e1314j gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableRemappingKeyValueService.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X
  @@ -68,7 +68,7 @@ private TableRemappingKeyValueService(KeyValueService delegate, TableMappingServ
     }
 
     @Override
-    public void addGarbageCollectionSentinelValues(TableReference tableRef, Iterable<Cell> cells) {
+    public void addGarbageCollectionSentinelValues(TableReference tableRef, Collection<Cell> cells) {
         try {
             delegate().addGarbageCollectionSentinelValues(tableMapper.getMappedTableName(tableRef), cells);
         } catch (TableMappingNotFoundException e) {
@@ -116,7 +116,7 @@ public void deleteRange(TableReference tableRef, RangeRequest range) {
     }
 
     @Override
-    public void deleteRows(TableReference tableRef, Iterable<byte[]> rows) {
+    public void deleteRows(TableReference tableRef, Collection<byte[]> rows) {
         try {
             delegate().deleteRows(tableMapper.getMappedTableName(tableRef), rows);
         } catch (TableMappingNotFoundException e) {
@@ -193,7 +193,7 @@ public Collection<? extends KeyValueService> getDelegates() {
 
     @Override
     public Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> getFirstBatchForRanges(
-            TableReference tableRef, Iterable<RangeRequest> rangeRequests, long timestamp) {
+            TableReference tableRef, Collection<RangeRequest> rangeRequests, long timestamp) {
         try {
             return delegate()
                     .getFirstBatchForRanges(tableMapper.getMappedTableName(tableRef), rangeRequests, timestamp);
@@ -268,7 +268,7 @@ public ClosableIterator<List<CandidateCellForSweeping>> getCandidateCellsForSwee
 
     @Override
     public Map<Cell, Value> getRows(
-            TableReference tableRef, Iterable<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
+            TableReference tableRef, Collection<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
         try {
             return delegate().getRows(tableMapper.getMappedTableName(tableRef), rows, columnSelection, timestamp);
         } catch (TableMappingNotFoundException e) {
@@ -279,7 +279,7 @@ public Map<Cell, Value> getRows(
     @Override
     public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             BatchColumnRangeSelection columnRangeSelection,
             long timestamp) {
         try {
@@ -294,7 +294,7 @@ public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(
     @Override
     public RowColumnRangeIterator getRowsColumnRange(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             ColumnRangeSelection columnRangeSelection,
             int cellBatchHint,
             long timestamp) {u}(j (ec3e9246c6a3c2c589b2fb1ea13eba6ef2029a49j gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableSplittingKeyValueService.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X	  @@ -97,7 +97,7 @@ private TableSplittingKeyValueService(
     }
 
     @Override
-    public void addGarbageCollectionSentinelValues(TableReference tableRef, Iterable<Cell> cells) {
+    public void addGarbageCollectionSentinelValues(TableReference tableRef, Collection<Cell> cells) {
         getDelegate(tableRef).addGarbageCollectionSentinelValues(tableRef, cells);
     }
 
@@ -143,7 +143,7 @@ public void deleteRange(TableReference tableRef, RangeRequest range) {
     }
 
     @Override
-    public void deleteRows(TableReference tableRef, Iterable<byte[]> rows) {
+    public void deleteRows(TableReference tableRef, Collection<byte[]> rows) {
         getDelegate(tableRef).deleteRows(tableRef, rows);
     }
 
@@ -227,7 +227,7 @@ public Collection<? extends KeyValueService> getDelegates() {
 
     @Override
     public Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> getFirstBatchForRanges(
-            TableReference tableRef, Iterable<RangeRequest> rangeRequests, long timestamp) {
+            TableReference tableRef, Collection<RangeRequest> rangeRequests, long timestamp) {
         return getDelegate(tableRef).getFirstBatchForRanges(tableRef, rangeRequests, timestamp);
     }
 
@@ -273,14 +273,14 @@ public ClosableIterator<List<CandidateCellForSweeping>> getCandidateCellsForSwee
 
     @Override
     public Map<Cell, Value> getRows(
-            TableReference tableRef, Iterable<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
+            TableReference tableRef, Collection<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
         return getDelegate(tableRef).getRows(tableRef, rows, columnSelection, timestamp);
     }
 
     @Override
     public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             BatchColumnRangeSelection batchColumnRangeSelection,
             long timestamp) {
         return getDelegate(tableRef).getRowsColumnRange(tableRef, rows, batchColumnRangeSelection, timestamp);
@@ -289,7 +289,7 @@ public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(
     @Override
     public RowColumnRangeIterator getRowsColumnRange(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             ColumnRangeSelection columnRangeSelection,
             int cellBatchHint,
             long timestamp) {u}(j (2854e46159f601b9418908b35da2d6ed36a8390aj Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/SweepQueueTable.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepQueueTable.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepQueueTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepQueueTable.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X_  @@ -25,6 +25,7 @@
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.impl.LocalRowColumnRangeIterator;
 import com.palantir.atlasdb.sweep.metrics.TargetedSweepMetrics;
+import java.util.Collection;
 import java.util.Collections;
 import java.util.HashMap;
 import java.util.List;
@@ -123,7 +124,7 @@ private Stream<RowColumnRangeIterator> getBatchForRow(byte[] row, ColumnRangeSel
                 .stream();
     }
 
-    void deleteRows(Iterable<byte[]> rows) {
+    void deleteRows(Collection<byte[]> rows) {
         kvs.deleteRows(tableRef, rows);
     }
 }u}(j (3662f5f533e3c8129aba028c70996e6e2f7d5ecaj datlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X`  @@ -85,6 +85,7 @@
 import com.palantir.util.Pair;
 import java.nio.ByteBuffer;
 import java.util.ArrayList;
+import java.util.Collection;
 import java.util.Collections;
 import java.util.Comparator;
 import java.util.HashMap;
@@ -195,15 +196,15 @@ public SerializableTransaction(
     @Override
     @Idempotent
     public NavigableMap<byte[], RowResult<byte[]>> getRows(
-            TableReference tableRef, Iterable<byte[]> rows, ColumnSelection columnSelection) {
+            TableReference tableRef, Collection<byte[]> rows, ColumnSelection columnSelection) {
         NavigableMap<byte[], RowResult<byte[]>> ret = super.getRows(tableRef, rows, columnSelection);
         markRowsRead(tableRef, rows, columnSelection, ret.values());
         return ret;
     }
 
     @Override
     public Map<byte[], BatchingVisitable<Map.Entry<Cell, byte[]>>> getRowsColumnRange(
-            TableReference tableRef, Iterable<byte[]> rows, BatchColumnRangeSelection columnRangeSelection) {
+            TableReference tableRef, Collection<byte[]> rows, BatchColumnRangeSelection columnRangeSelection) {
         Map<byte[], BatchingVisitable<Map.Entry<Cell, byte[]>>> ret =
                 super.getRowsColumnRange(tableRef, rows, columnRangeSelection);
         return KeyedStream.stream(ret)
@@ -222,7 +223,7 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
 
     @Override
     public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator(
-            TableReference tableRef, Iterable<byte[]> rows, BatchColumnRangeSelection columnRangeSelection) {
+            TableReference tableRef, Collection<byte[]> rows, BatchColumnRangeSelection columnRangeSelection) {
         Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> ret =
                 super.getRowsColumnRangeIterator(tableRef, rows, columnRangeSelection);
         return KeyedStream.stream(ret)u}(j (d0533b6f5667076f1e20275d616bc546c1c44ccbj `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X  @@ -393,7 +393,7 @@ public void markTableInvolved(TableReference tableRef) {
 
     @Override
     public NavigableMap<byte[], RowResult<byte[]>> getRows(
-            TableReference tableRef, Iterable<byte[]> rows, ColumnSelection columnSelection) {
+            TableReference tableRef, Collection<byte[]> rows, ColumnSelection columnSelection) {
         if (columnSelection.allColumnsSelected()) {
             return getRowsInternal(tableRef, rows, columnSelection);
         }
@@ -408,7 +408,7 @@ public NavigableMap<byte[], RowResult<byte[]>> getRows(
     }
 
     private NavigableMap<byte[], RowResult<byte[]>> getRowsInternal(
-            TableReference tableRef, Iterable<byte[]> rows, ColumnSelection columnSelection) {
+            TableReference tableRef, Collection<byte[]> rows, ColumnSelection columnSelection) {
         Timer.Context timer = getTimer("getRows").time();
         checkGetPreconditions(tableRef);
         if (Iterables.isEmpty(rows)) {
@@ -444,7 +444,7 @@ private NavigableMap<byte[], RowResult<byte[]>> getRowsInternal(
 
     @Override
     public Map<byte[], BatchingVisitable<Map.Entry<Cell, byte[]>>> getRowsColumnRange(
-            TableReference tableRef, Iterable<byte[]> rows, BatchColumnRangeSelection columnRangeSelection) {
+            TableReference tableRef, Collection<byte[]> rows, BatchColumnRangeSelection columnRangeSelection) {
         return KeyedStream.stream(getRowsColumnRangeIterator(tableRef, rows, columnRangeSelection))
                 .map(BatchingVisitableFromIterable::create)
                 .map(this::scopeToTransaction)
@@ -474,7 +474,7 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
     @Override
     @SuppressWarnings("MustBeClosedChecker") // Sadly we can't close properly here without an ABI break :/
     public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator(
-            TableReference tableRef, Iterable<byte[]> rows, BatchColumnRangeSelection columnRangeSelection) {
+            TableReference tableRef, Collection<byte[]> rows, BatchColumnRangeSelection columnRangeSelection) {
         checkGetPreconditions(tableRef);
         if (Iterables.isEmpty(rows)) {
             return ImmutableMap.of();
@@ -483,7 +483,7 @@ public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator
         ImmutableSortedMap<byte[], RowColumnRangeIterator> rawResults = ImmutableSortedMap.copyOf(
                 keyValueService.getRowsColumnRange(tableRef, rows, columnRangeSelection, getStartTimestamp()),
                 PtBytes.BYTES_COMPARATOR);
-        ImmutableSortedMap<byte[], Iterator<Map.Entry<Cell, byte[]>>> postFilteredResults = Streams.stream(rows)
+        ImmutableSortedMap<byte[], Iterator<Map.Entry<Cell, byte[]>>> postFilteredResults = rows.stream()
                 .collect(ImmutableSortedMap.toImmutableSortedMap(PtBytes.BYTES_COMPARATOR, row -> row, row -> {
                     // explicitly not using Optional due to allocation perf overhead
                     Iterator<Map.Entry<Cell, byte[]>> entryIterator;
@@ -512,7 +512,7 @@ public Iterator<Map.Entry<Cell, byte[]>> getSortedColumns(
         if (Iterables.isEmpty(rows)) {
             return Collections.emptyIterator();
         }
-        Iterable<byte[]> distinctRows = getDistinctRows(rows);
+        Collection<byte[]> distinctRows = getDistinctRows(rows);
 
         hasReads = true;
         int batchSize = getPerRowBatchSize(batchColumnRangeSelection, Iterables.size(distinctRows));
@@ -739,7 +739,7 @@ private Comparator<Cell> preserveInputRowOrder(List<Map.Entry<Cell, Value>> inpu
 
     /**
      * Partitions a {@link RowColumnRangeIterator} into contiguous blocks that share the same row name. {@link
-     * KeyValueService#getRowsColumnRange(TableReference, Iterable, ColumnRangeSelection, int, long)} guarantees that
+     * KeyValueService#getRowsColumnRange(TableReference, Collection, ColumnRangeSelection, int, long)} guarantees that
      * all columns for a single row are adjacent, so this method will return an {@link Iterator} with exactly one entry
      * per non-empty row.
      */
@@ -818,7 +818,7 @@ public Map.Entry<Cell, Value> next() {
 
     @Override
     public SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(
-            TableReference tableRef, Iterable<byte[]> rows) {
+            TableReference tableRef, Collection<byte[]> rows) {
         checkGetPreconditions(tableRef);
         if (Iterables.isEmpty(rows)) {
             return AbstractTransaction.EMPTY_SORTED_ROWS;u}(j (142d7f22c3550927796c1e289041ff3789cfbd9fj uatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/expectations/TrackingKeyValueServiceImpl.javaj  modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FTrackingKeyValueServiceImpl.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FTrackingKeyValueServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FTrackingKeyValueServiceImpl.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X  @@ -43,6 +43,7 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.util.paging.TokenBackedBasicResultsPage;
 import java.lang.reflect.Array;
+import java.util.Collection;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
@@ -87,7 +88,7 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
 
     @Override
     public Map<Cell, Value> getRows(
-            TableReference tableRef, Iterable<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
+            TableReference tableRef, Collection<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
         Map<Cell, Value> result = delegate.getRows(tableRef, rows, columnSelection, timestamp);
         tracker.recordReadForTable(tableRef, "getRows", MeasuringUtils.sizeOf(result));
         return result;
@@ -96,7 +97,7 @@ public Map<Cell, Value> getRows(
     @Override
     public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             BatchColumnRangeSelection batchColumnRangeSelection,
             long timestamp) {
         Map<byte[], RowColumnRangeIterator> result =
@@ -114,7 +115,7 @@ public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(
     @Override
     public RowColumnRangeIterator getRowsColumnRange(
             TableReference tableRef,
-            Iterable<byte[]> rows,
+            Collection<byte[]> rows,
             ColumnRangeSelection columnRangeSelection,
             int cellBatchHint,
             long timestamp) {
@@ -166,7 +167,7 @@ public ClosableIterator<List<CandidateCellForSweeping>> getCandidateCellsForSwee
 
     @Override
     public Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> getFirstBatchForRanges(
-            TableReference tableRef, Iterable<RangeRequest> rangeRequests, long timestamp) {
+            TableReference tableRef, Collection<RangeRequest> rangeRequests, long timestamp) {
         Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> result =
                 delegate.getFirstBatchForRanges(tableRef, rangeRequests, timestamp);
         tracker.recordReadForTable(u}(j (6b1c224aa878d16876cea2f1ba579b70c04fd96cj satlasdb-impl-shared/src/test/java/com/palantir/atlasdb/keyvalue/api/cache/ValidatingTransactionScopedCacheTest.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FValidatingTransactionScopedCacheTest.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FValidatingTransactionScopedCacheTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FValidatingTransactionScopedCacheTest.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 Xs  @@ -43,6 +43,7 @@
 import com.palantir.lock.watch.CommitUpdate;
 import io.vavr.collection.HashMap;
 import io.vavr.collection.HashSet;
+import java.util.Collection;
 import java.util.Map;
 import java.util.NavigableMap;
 import java.util.Optional;
@@ -150,7 +151,7 @@ public void getRowsReadsRemotelyOnceWhenValidating() {
         ColumnSelection columns = ColumnSelection.create(rowsAndCols);
 
         Function<Set<Cell>, Map<Cell, byte[]>> cellLoader = mock(Function.class);
-        Function<Iterable<byte[]>, NavigableMap<byte[], RowResult<byte[]>>> rowLoader = mock(Function.class);
+        Function<Collection<byte[]>, NavigableMap<byte[], RowResult<byte[]>>> rowLoader = mock(Function.class);
 
         // set up mock
         NavigableMap<byte[], RowResult<byte[]>> resultMap = new TreeMap<>(UnsignedBytes.lexicographicalComparator());
@@ -179,7 +180,7 @@ public void getRowsValidates() {
         ColumnSelection columns = ColumnSelection.create(rowsAndCols);
 
         Function<Set<Cell>, Map<Cell, byte[]>> cellLoader = mock(Function.class);
-        Function<Iterable<byte[]>, NavigableMap<byte[], RowResult<byte[]>>> rowLoader = mock(Function.class);
+        Function<Collection<byte[]>, NavigableMap<byte[], RowResult<byte[]>>> rowLoader = mock(Function.class);
 
         when(rowLoader.apply(any())).thenReturn(new TreeMap<>(UnsignedBytes.lexicographicalComparator()));
 u}(j (d53a51e3afef5f5b232792d6f738be4d36f9fe48j atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/expectations/TrackingKeyValueServiceForwardingTest.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FTrackingKeyValueServiceForwardingTest.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FTrackingKeyValueServiceForwardingTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FTrackingKeyValueServiceForwardingTest.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 XM  @@ -47,6 +47,7 @@
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.util.paging.TokenBackedBasicResultsPage;
 import java.util.AbstractMap.SimpleEntry;
+import java.util.Collection;
 import java.util.Comparator;
 import java.util.List;
 import java.util.Map;
@@ -258,7 +259,7 @@ public void getCandidateCellsForSweepingForwardsDelegateResult() {
 
     @Test
     public void getFirstBatchForRangesForwardsDelegateResult() {
-        Iterable<RangeRequest> rangeRequests = mock(Iterable.class);
+        Collection<RangeRequest> rangeRequests = mock(Collection.class);
         Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> batchForRangesMap = mock(Map.class);
         when(delegate.getFirstBatchForRanges(tableReference, rangeRequests, TIMESTAMP))
                 .thenReturn(batchForRangesMap);u}(j (6614635563311a77024e8c74966f5d539c3d29a4j }atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/expectations/TrackingKeyValueServiceReadInfoTest.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FTrackingKeyValueServiceReadInfoTest.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FTrackingKeyValueServiceReadInfoTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FTrackingKeyValueServiceReadInfoTest.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 XM  @@ -43,6 +43,7 @@
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.common.base.ClosableIterators;
 import com.palantir.util.paging.TokenBackedBasicResultsPage;
+import java.util.Collection;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
@@ -259,7 +260,7 @@ public void readInfoIsCorrectAfterGetCandidateCellsForSweepingCallAndIteratorCon
 
     @Test
     public void readInfoIsCorrectAfterGetFirstBatchForRangesCall() {
-        Iterable<RangeRequest> rangeRequests = mock(Iterable.class);
+        Collection<RangeRequest> rangeRequests = mock(Collection.class);
         Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> pageByRangeRequestMapOfSize =
                 TrackingKeyValueServiceTestUtils.createPageByRangeRequestMapWithSize(size);
 u}(j (79633e6f51122ff8a90f7181e1416fe666b2f640j aatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/benchmarks/KvsGetRangeBenchmarks.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fbenchmarks%2FKvsGetRangeBenchmarks.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fbenchmarks%2FKvsGetRangeBenchmarks.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fbenchmarks%2FKvsGetRangeBenchmarks.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X/  @@ -26,6 +26,7 @@
 import com.palantir.common.base.ClosableIterator;
 import com.palantir.util.paging.TokenBackedBasicResultsPage;
 import java.util.Arrays;
+import java.util.Collection;
 import java.util.List;
 import java.util.Map;
 import java.util.concurrent.TimeUnit;
@@ -62,7 +63,7 @@ private Object getSingleRangeInner(ConsecutiveNarrowTable table, int sliceSize)
     }
 
     private Object getMultiRangeInner(ConsecutiveNarrowTable table) {
-        Iterable<RangeRequest> requests = table.getRangeRequests(1000, 1, false);
+        Collection<RangeRequest> requests = table.getRangeRequests(1000, 1, false);
         Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> results =
                 table.getKvs().getFirstBatchForRanges(table.getTableRef(), requests, Long.MAX_VALUE);
 u}(j (574198148feceed401e7cee8ce25c82c3a7c56fej hatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/benchmarks/table/ConsecutiveNarrowTable.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fbenchmarks%2Ftable%2FConsecutiveNarrowTable.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fbenchmarks%2Ftable%2FConsecutiveNarrowTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fbenchmarks%2Ftable%2FConsecutiveNarrowTable.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X  @@ -28,6 +28,7 @@
 import com.palantir.atlasdb.services.AtlasDbServices;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import java.util.ArrayList;
+import java.util.Collection;
 import java.util.HashSet;
 import java.util.List;
 import java.util.Map;
@@ -188,7 +189,7 @@ public Set<Cell> getCellsRequest(int numberOfCellsToRequest) {
                 .collect(Collectors.toSet());
     }
 
-    public Iterable<RangeRequest> getRangeRequests(int numRequests, int sliceSize, boolean allColumns) {
+    public Collection<RangeRequest> getRangeRequests(int numRequests, int sliceSize, boolean allColumns) {
         List<RangeRequest> requests = new ArrayList<>();
         Set<Integer> used = new HashSet<>();
         for (int i = 0; i < numRequests; i++) {u}(j (b4e915d6bfd7cfb441dbadad0b967fbd838359d5j Matlasdb-service/src/main/java/com/palantir/atlasdb/api/TableRowSelection.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fapi%2FTableRowSelection.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fapi%2FTableRowSelection.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fapi%2FTableRowSelection.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X  @@ -17,6 +17,7 @@
 
 import com.palantir.atlasdb.keyvalue.api.ColumnSelection;
 import com.palantir.logsafe.Preconditions;
+import java.util.Collection;
 
 /**
  * <pre>
@@ -32,10 +33,10 @@
  */
 public class TableRowSelection {
     private final String tableName;
-    private final Iterable<byte[]> rows;
+    private final Collection<byte[]> rows;
     private final ColumnSelection columnSelection;
 
-    public TableRowSelection(String tableName, Iterable<byte[]> rows, ColumnSelection columnSelection) {
+    public TableRowSelection(String tableName, Collection<byte[]> rows, ColumnSelection columnSelection) {
         this.tableName = Preconditions.checkNotNull(tableName, "tableName must not be null!");
         this.rows = Preconditions.checkNotNull(rows, "rows must not be null!");
         this.columnSelection = columnSelection;
@@ -45,7 +46,7 @@ public String getTableName() {
         return tableName;
     }
 
-    public Iterable<byte[]> getRows() {
+    public Collection<byte[]> getRows() {
         return rows;
     }
 u}(j (07fd2aeff73587d3b4ec769fd49e35a9a2cd5b08j ]atlasdb-service/src/main/java/com/palantir/atlasdb/jackson/TableRowSelectionDeserializer.javaj  modifiedj K
j Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fjackson%2FTableRowSelectionDeserializer.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fjackson%2FTableRowSelectionDeserializer.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fjackson%2FTableRowSelectionDeserializer.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X  @@ -25,6 +25,8 @@
 import com.palantir.atlasdb.keyvalue.api.ColumnSelection;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Collection;
 
 public class TableRowSelectionDeserializer extends StdDeserializer<TableRowSelection> {
     private static final long serialVersionUID = 1L;
@@ -42,10 +44,19 @@ public TableRowSelection deserialize(JsonParser jp, DeserializationContext ctxt)
         TableMetadata metadata = metadataCache.getMetadata(tableName);
         Iterable<byte[]> rows = AtlasDeserializers.deserializeRows(metadata.getRowMetadata(), node.get("rows"));
         Iterable<byte[]> columns = AtlasDeserializers.deserializeNamedCols(metadata.getColumns(), node.get("cols"));
+        Collection<byte[]> rowCollection = iterableToCollection(rows);
         if (Iterables.isEmpty(columns)) {
-            return new TableRowSelection(tableName, rows, ColumnSelection.all());
+            return new TableRowSelection(tableName, rowCollection, ColumnSelection.all());
         } else {
-            return new TableRowSelection(tableName, rows, ColumnSelection.create(columns));
+            return new TableRowSelection(tableName, rowCollection, ColumnSelection.create(columns));
         }
     }
+
+    private static <T> Collection<T> iterableToCollection(Iterable<T> iterable) {
+        Collection<T> collection = new ArrayList<T>();
+        for (T item : iterable) {
+            collection.add(item);
+        }
+        return collection;
+    }
 }u}(j (5f5db980f5a8701ed9c37dcff56662daf72d796cj batlasdb-tests-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TrackingKeyValueService.javaj  modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTrackingKeyValueService.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTrackingKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTrackingKeyValueService.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X   @@ -28,6 +28,7 @@
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.common.base.ClosableIterator;
+import java.util.Collection;
 import java.util.Map;
 import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
@@ -54,7 +55,7 @@ public Map<Cell, Value> get(TableReference tableRef, Map<Cell, Long> timestampBy
 
     @Override
     public Map<Cell, Value> getRows(
-            TableReference tableRef, Iterable<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
+            TableReference tableRef, Collection<byte[]> rows, ColumnSelection columnSelection, long timestamp) {
         tablesReadFrom.add(tableRef);
         return super.getRows(tableRef, rows, columnSelection, timestamp);
     }u}(j (7aedc92568ecb5267490267d6007a957f0392445j eatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractTransactionTest.javaj  modifiedj Kj Kj K%j https://github.com/palantir/atlasdb/blob/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.javaj https://github.com/palantir/atlasdb/raw/ff89a0eee3af2f90b027f87290863c5cdc8a044f/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.java?ref=ff89a0eee3af2f90b027f87290863c5cdc8a044fj	 X  @@ -479,14 +479,18 @@ public void testRangePagingBatches() {
         for (int i = 0; i < totalPuts; i++) {
             putDirect("row" + i, "col1", "v1", 0);
         }
-
+        List<RangeRequest> requests = IntStream.range(0, 100)
+                .boxed()
+                .map(_x -> RangeRequest.builder().batchHint(1000).build())
+                .collect(Collectors.toList());
         Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> ranges =
                 keyValueService.getFirstBatchForRanges(
                         TEST_TABLE,
-                        Iterables.limit(
-                                Iterables.cycle(
-                                        RangeRequest.builder().batchHint(1000).build()),
-                                100),
+                        requests,
+                        //                        Iterables.limit(
+                        //                                Iterables.cycle(
+                        //                                        RangeRequest.builder().batchHint(1000).build()),
+                        //                                100),
                         1);
         assertThat(ranges.keySet()).hasSize(1);
         assertThat(ranges.values().iterator().next().getResults()).hasSize(totalPuts);
@@ -502,15 +506,12 @@ public void testRangePagingBatchesReverse() {
             putDirect("row" + i, "col1", "v1", 0);
         }
 
+        List<RangeRequest> requests = IntStream.range(0, 100)
+                .boxed()
+                .map(_x -> RangeRequest.builder().batchHint(1000).build())
+                .collect(Collectors.toList());
         Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> ranges =
-                keyValueService.getFirstBatchForRanges(
-                        TEST_TABLE,
-                        Iterables.limit(
-                                Iterables.cycle(RangeRequest.reverseBuilder()
-                                        .batchHint(1000)
-                                        .build()),
-                                100),
-                        1);
+                keyValueService.getFirstBatchForRanges(TEST_TABLE, requests, 1);
         assertThat(ranges.keySet()).hasSize(1);
         assertThat(ranges.values().iterator().next().getResults()).hasSize(totalPuts);
     }
@@ -523,9 +524,10 @@ public void testRangePagingBatchSizeOne() {
         }
 
         RangeRequest rangeRequest = RangeRequest.builder().batchHint(1).build();
+        List<RangeRequest> requests =
+                IntStream.range(0, 100).boxed().map(_x -> rangeRequest).collect(Collectors.toList());
         Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> ranges =
-                keyValueService.getFirstBatchForRanges(
-                        TEST_TABLE, Iterables.limit(Iterables.cycle(rangeRequest), 100), 1);
+                keyValueService.getFirstBatchForRanges(TEST_TABLE, requests, 1);
         assertThat(ranges.keySet()).hasSize(1);
         assertThat(ranges.values().iterator().next().getResults()).hasSize(1);
         assertThat(PtBytes.toString(ranges.values()
@@ -549,9 +551,10 @@ public void testRangePagingBatchSizeOneReverse() {
         }
 
         RangeRequest rangeRequest = RangeRequest.reverseBuilder().batchHint(1).build();
+        List<RangeRequest> requests =
+                IntStream.range(0, 100).boxed().map(_x -> rangeRequest).collect(Collectors.toList());
         Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> ranges =
-                keyValueService.getFirstBatchForRanges(
-                        TEST_TABLE, Iterables.limit(Iterables.cycle(rangeRequest), 100), 1);
+                keyValueService.getFirstBatchForRanges(TEST_TABLE, requests, 1);
         assertThat(ranges.keySet()).hasSize(1);
         assertThat(ranges.values().iterator().next().getResults()).hasSize(1);
         assertThat(PtBytes.toString(ranges.values()ueu(9e6ee10933f491e5a1ff1db4c9ba5764883a8af0}(sha(9e6ee10933f491e5a1ff1db4c9ba5764883a8af0node_idEC_kwDOAjP5fdoAKDllNmVlMTA5MzNmNDkxZTVhMWZmMWRiNGM5YmE1NzY0ODgzYThhZjAcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-26T17:16:19Zu	committer}(jE 	Tom PapkejG tpapke@palantir.comjI 2023-06-26T17:16:19Zumessageause Duration instead
only apply minimum duration if not running
add test for supplier invocationstree}(j= (643086498ec75dbf27d0e94334c318422be03303url`https://api.github.com/repos/palantir/atlasdb/git/trees/643086498ec75dbf27d0e94334c318422be03303ujU bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9e6ee10933f491e5a1ff1db4c9ba5764883a8af0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSZx+MACgkQmF9s0kaF
Iw1U8Af/TpleF9BiVEcDfKsx2GZCRyX45yDqyMybsS+v9qOBebVK1jUKMLJ0R8H3
jwa3U//+47y/uM8X/VTIoA596jJ9OTtSB1/Jvh9HG34xfAg1xX/BGY6Tke0YlqXu
XH8bU50T7W1KPukGlGK9yK8FLPEtRGYTHN7VTS8U4BQCGLzslm53zbeXcLNJfBNU
1mrerp2UXvmWDmIkNqSGsCeLqeQGRV0dZc8XkJV+q3SCl+CWxKhqnfp30RpJn+Fh
jPvvfOJhpDxxrVswZpBlSMkCNUm0btrMiA79Xq+kEdTeZHMyv2WVrc3V0UMlO1KP
kN3eR0R6jeODMFqzxWdZATOY1pjlKA==
=hETC
-----END PGP SIGNATURE-----payloadX4  tree 643086498ec75dbf27d0e94334c318422be03303
parent 0ac33cc4f3344a0f1389f927c97ba1935c8d07aa
author Tom Papke <tpapke@palantir.com> 1687799779 +0100
committer Tom Papke <tpapke@palantir.com> 1687799779 +0100

use Duration instead
only apply minimum duration if not running
add test for supplier invocations
uujU ^https://api.github.com/repos/palantir/atlasdb/commits/9e6ee10933f491e5a1ff1db4c9ba5764883a8af0html_urlShttps://github.com/palantir/atlasdb/commit/9e6ee10933f491e5a1ff1db4c9ba5764883a8af0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9e6ee10933f491e5a1ff1db4c9ba5764883a8af0/commentsjC }(login	ToemmscheidJboj? MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jU &https://api.github.com/users/Toemmschejc https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujK }(jh 	Toemmschejj Jboj? MDQ6VXNlcjQzNjc1NDkwjl 4https://avatars.githubusercontent.com/u/43675490?v=4jn h5jU &https://api.github.com/users/Toemmschejc https://github.com/Toemmschejq 0https://api.github.com/users/Toemmsche/followersjs =https://api.github.com/users/Toemmsche/following{/other_user}ju 6https://api.github.com/users/Toemmsche/gists{/gist_id}jw =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jy 4https://api.github.com/users/Toemmsche/subscriptionsj{ +https://api.github.com/users/Toemmsche/orgsj} ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(j= (0ac33cc4f3344a0f1389f927c97ba1935c8d07aajU ^https://api.github.com/repos/palantir/atlasdb/commits/0ac33cc4f3344a0f1389f927c97ba1935c8d07aajc Shttps://github.com/palantir/atlasdb/commit/0ac33cc4f3344a0f1389f927c97ba1935c8d07aauastats}(totalK	additionsK[	deletionsK/ufiles](}(j= (a0138352227dd728d38098c614a5788fea891ca6filenameLlock-impl/src/main/java/com/palantir/lock/impl/AdjustableBackgroundTask.javastatusmodifiedj Kj KchangesK,blob_urlhttps://github.com/palantir/atlasdb/blob/9e6ee10933f491e5a1ff1db4c9ba5764883a8af0/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9e6ee10933f491e5a1ff1db4c9ba5764883a8af0/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.java?ref=9e6ee10933f491e5a1ff1db4c9ba5764883a8af0patchXK  @@ -18,9 +18,11 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.palantir.common.concurrent.PTExecutors;
-import com.palantir.lock.SimpleTimeDuration;
-import com.palantir.lock.TimeDuration;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.io.Closeable;
+import java.time.Duration;
+import java.util.concurrent.RejectedExecutionException;
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.concurrent.TimeUnit;
 import java.util.function.Supplier;
@@ -31,23 +33,26 @@ public final class AdjustableBackgroundTask implements Closeable {
      * A minimum duration between invocations if the task is not actually enabled.
      * This is to prevent having a blocking thread in the background that does nothing.
      */
-    private static final TimeDuration MINIMUM_DELAY_IF_NOT_RUNNING = SimpleTimeDuration.of(1, TimeUnit.SECONDS);
+    @VisibleForTesting
+    static final Duration MINIMUM_DELAY_IF_NOT_RUNNING = Duration.ofSeconds(1);
+
+    private static final SafeLogger log = SafeLoggerFactory.get(AdjustableBackgroundTask.class);
 
     private final ScheduledExecutorService scheduledExecutor;
     private final Supplier<Boolean> shouldRunSupplier;
-    private final Supplier<TimeDuration> intervalSupplier;
+    private final Supplier<Duration> intervalSupplier;
     private final Runnable task;
 
     public static AdjustableBackgroundTask create(
-            Supplier<Boolean> shouldRunSupplier, Supplier<TimeDuration> delaySupplier, Runnable task) {
+            Supplier<Boolean> shouldRunSupplier, Supplier<Duration> delaySupplier, Runnable task) {
         return new AdjustableBackgroundTask(
                 shouldRunSupplier, delaySupplier, task, PTExecutors.newSingleThreadScheduledExecutor());
     }
 
     @VisibleForTesting
     AdjustableBackgroundTask(
             Supplier<Boolean> shouldRunSupplier,
-            Supplier<TimeDuration> intervalSupplier,
+            Supplier<Duration> intervalSupplier,
             Runnable task,
             ScheduledExecutorService scheduledExecutor) {
         this.shouldRunSupplier = shouldRunSupplier;
@@ -57,22 +62,33 @@ public static AdjustableBackgroundTask create(
         run();
     }
 
-    private synchronized void run() {
-        if (shouldRunSupplier.get()) {
-            task.run();
+    private void run() {
+        boolean shouldRun = shouldRunSupplier.get();
+        if (shouldRun) {
+            try {
+                task.run();
+            } catch (Exception e) {
+                if (Thread.interrupted()) {
+                    log.error("Task was interrupted", e);
+                    Thread.currentThread().interrupt();
+                    return;
+                }
+                log.error("Error occurred during task", e);
+            }
         }
-        if (!scheduledExecutor.isShutdown()) {
+        try {
+            long intervalMillis = intervalSupplier.get().toMillis();
             scheduledExecutor.schedule(
                     this::run,
-                    Math.max(
-                            MINIMUM_DELAY_IF_NOT_RUNNING.toMillis(),
-                            intervalSupplier.get().toMillis()),
+                    shouldRun ? intervalMillis : Math.max(MINIMUM_DELAY_IF_NOT_RUNNING.toMillis(), intervalMillis),
                     TimeUnit.MILLISECONDS);
+        } catch (RejectedExecutionException e) {
+            // that's ok, we were probably closed
         }
     }
 
     @Override
-    public synchronized void close() {
+    public void close() {
         scheduledExecutor.shutdown();
     }
 }u     }(j= (4530bd589502e82012e4bd61c60010f404b87e99j Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/9e6ee10933f491e5a1ff1db4c9ba5764883a8af0/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj https://github.com/palantir/atlasdb/raw/9e6ee10933f491e5a1ff1db4c9ba5764883a8af0/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=9e6ee10933f491e5a1ff1db4c9ba5764883a8af0j X  @@ -22,21 +22,20 @@
 import com.palantir.lock.HeldLocksToken;
 import com.palantir.lock.LockClientAndThread;
 import com.palantir.lock.LockDescriptor;
-import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.refreshable.Refreshable;
+import java.time.Duration;
 import java.util.HashMap;
 import java.util.Map;
 import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.ConcurrentMap;
-import java.util.concurrent.TimeUnit;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 
@@ -57,8 +56,7 @@ public LockThreadInfoSnapshotManager(
         this.tokenMapSupplier = mapSupplier;
         this.backgroundTask = AdjustableBackgroundTask.create(
                 threadInfoConfiguration.map(DebugThreadInfoConfiguration::recordThreadInfo),
-                threadInfoConfiguration.map(config ->
-                        SimpleTimeDuration.of(config.threadInfoSnapshotIntervalMillis(), TimeUnit.MILLISECONDS)),
+                threadInfoConfiguration.map(config -> Duration.ofMillis(config.threadInfoSnapshotIntervalMillis())),
                 this::takeSnapshot);
     }
 u}(j= (63256269eb2f02b657ef551d24f196d7f7c364f8j Plock-impl/src/test/java/com/palantir/lock/impl/AdjustableBackgroundTaskTest.javaj modifiedj K;j Kj KXj https://github.com/palantir/atlasdb/blob/9e6ee10933f491e5a1ff1db4c9ba5764883a8af0/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaj https://github.com/palantir/atlasdb/raw/9e6ee10933f491e5a1ff1db4c9ba5764883a8af0/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.java?ref=9e6ee10933f491e5a1ff1db4c9ba5764883a8af0j X  @@ -18,38 +18,42 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
-import com.palantir.lock.SimpleTimeDuration;
-import com.palantir.lock.TimeDuration;
 import com.palantir.refreshable.Refreshable;
 import com.palantir.refreshable.SettableRefreshable;
-import java.util.concurrent.ExecutorService;
+import java.time.Duration;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.atomic.AtomicInteger;
 import org.jmock.lib.concurrent.DeterministicScheduler;
+import org.junit.BeforeClass;
 import org.junit.Test;
 
 public class AdjustableBackgroundTaskTest {
 
-    /**
-     * Dummy deterministic scheduled executor service that cannot be shut down.
-     * The default {@link DeterministicScheduler} throws an exception when calling {@link ExecutorService#isShutdown()}.
-     */
-    private static final class NeverShutdownDeterministicScheduler extends DeterministicScheduler {
-        @Override
-        public boolean isShutdown() {
-            return false;
-        }
-    }
-
     // We have to ensure all of our delays are higher than MINIMUM_DELAY_IF_NOT_RUNNING
     // so it doesn't interfere with our tests
-    private static final TimeDuration DEFAULT_DELAY = SimpleTimeDuration.of(10, TimeUnit.SECONDS);
+    private static final Duration DEFAULT_DELAY = Duration.ofSeconds(10);
     private final AtomicInteger field = new AtomicInteger(0);
     private final SettableRefreshable<Boolean> shouldRun = Refreshable.create(false);
-    private final SettableRefreshable<TimeDuration> interval = Refreshable.create(DEFAULT_DELAY);
-    private final NeverShutdownDeterministicScheduler scheduledExecutor = new NeverShutdownDeterministicScheduler();
-    private final AdjustableBackgroundTask adjustableBackgroundTask =
-            new AdjustableBackgroundTask(shouldRun, interval, field::incrementAndGet, scheduledExecutor);
+    private final SettableRefreshable<Duration> interval = Refreshable.create(DEFAULT_DELAY);
+    private final DeterministicScheduler scheduledExecutor = new DeterministicScheduler();
+    private final AtomicInteger numCallsToShouldRunSupplier = new AtomicInteger();
+    private final AtomicInteger numCallsToIntervalSupplier = new AtomicInteger(0);
+    AdjustableBackgroundTask adjustableBackgroundTask = new AdjustableBackgroundTask(
+            () -> {
+                numCallsToShouldRunSupplier.incrementAndGet();
+                return shouldRun.current();
+            },
+            () -> {
+                numCallsToIntervalSupplier.incrementAndGet();
+                return interval.current();
+            },
+            field::incrementAndGet,
+            scheduledExecutor);
+
+    @BeforeClass
+    public static void testDelayShouldNotExceedMinimumDelay() {
+        assertThat(DEFAULT_DELAY).isGreaterThanOrEqualTo(AdjustableBackgroundTask.MINIMUM_DELAY_IF_NOT_RUNNING);
+    }
 
     @Test
     public void doesNotRunTaskDuringConstruction() {
@@ -58,18 +62,16 @@ public void doesNotRunTaskDuringConstruction() {
 
     @Test
     public void doesNotRunTaskByDefault() {
-        int before = field.get();
         tick(DEFAULT_DELAY);
-        assertThat(field.get()).isEqualTo(before);
+        assertThat(field.get()).isEqualTo(0);
     }
 
     @Test
     public void canBeEnabledDisabledAndReEnabled() {
-        int before = field.get();
         shouldRun.update(true);
         tick(DEFAULT_DELAY);
         int after = field.get();
-        assertThat(after).isEqualTo(before + 1);
+        assertThat(after).isEqualTo(1);
 
         shouldRun.update(false);
         tick(DEFAULT_DELAY);
@@ -81,16 +83,44 @@ public void canBeEnabledDisabledAndReEnabled() {
     }
 
     @Test
-    public void canAdjustDuration() {
-        int before = field.get();
-        TimeDuration newInterval = SimpleTimeDuration.of(42, TimeUnit.SECONDS);
+    public void canAdjustDurationBelowMinimumDelayIfRunning() {
+        Duration newInterval = Duration.ofMillis(1);
         interval.update(newInterval);
         shouldRun.update(true);
-        tick(SimpleTimeDuration.of(10 * newInterval.toMillis(), TimeUnit.MILLISECONDS));
-        assertThat(field.get()).isEqualTo(before + 10);
+        // will run the task once
+        tick(DEFAULT_DELAY);
+        tick(Duration.ofMillis(10 - 1));
+        assertThat(field.get()).isEqualTo(10);
+    }
+
+    @Test
+    public void runsSuppliersAtReducedIntervalIfNotRunning() {
+        Duration newInterval = Duration.ofMillis(1);
+        interval.update(newInterval);
+        Duration elapsedDuration = Duration.ofSeconds(10);
+        // will invoke suppliers an additional time
+        tick(DEFAULT_DELAY);
+        tick(elapsedDuration);
+
+        assertThat(field.get()).isEqualTo(0);
+        // suppliers are also called once when running the constructor
+        assertThat(numCallsToShouldRunSupplier.get())
+                .isEqualTo(elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_DELAY_IF_NOT_RUNNING) + 2);
+        assertThat(numCallsToIntervalSupplier.get())
+                .isEqualTo(elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_DELAY_IF_NOT_RUNNING) + 2);
+    }
+
+    @Test
+    public void suppliersAreCalledTogetherWithTask() {
+        shouldRun.update(true);
+        tick(Duration.ofSeconds(10 * DEFAULT_DELAY.toSeconds()));
+        assertThat(field.get()).isEqualTo(10);
+        // suppliers are also called once when running the constructor
+        assertThat(numCallsToShouldRunSupplier.get()).isEqualTo(11);
+        assertThat(numCallsToIntervalSupplier.get()).isEqualTo(11);
     }
 
-    private void tick(TimeDuration duration) {
+    private void tick(Duration duration) {
         scheduledExecutor.tick(duration.toMillis(), TimeUnit.MILLISECONDS);
     }
 }ueu(543712ed39aa972054d857c1ef5e334d5be30650}(sha(543712ed39aa972054d857c1ef5e334d5be30650node_idEC_kwDOAjP5fdoAKDU0MzcxMmVkMzlhYTk3MjA1NGQ4NTdjMWVmNWUzMzRkNWJlMzA2NTAcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-28T15:11:44Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-04-28T15:11:44ZumessageLMerge branch 'jkong/349286' of github.com:palantir/atlasdb into jkong/349286tree}(j (9c841288954aa4a5b25363b07a693b5612755b94url`https://api.github.com/repos/palantir/atlasdb/git/trees/9c841288954aa4a5b25363b07a693b5612755b94uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/543712ed39aa972054d857c1ef5e334d5be30650
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRL4kYACgkQTLdFKain
zjykZwf/alhqynrHViqkHMHksDQd08yEy335H2gDSxixrtw7c3XQ3LEjyHCwB5yx
Z33mmlcc7HGe/1JJ5iElKvVTlula5g9dCFTIc8NfJelZe46IEBxTfo+f8G54ScTT
Spp+Tr0VDHAqfpHIOOvMdYd/+F/59h65ieGSzjxeY1KUvhdtlImNsRcxTWevTqzE
UFP444B72GV2B122ocXovmE5waYYx+uJSgMPTL/fOxjZQZBxuUQYJGh7WZpgfCkA
tQKhl7prlSqJLim9IeHCnJZSf9yfXJCqwg6uyztL7hyfbyRKbWAQC8C+WCyVR4Ok
XF0twHjCxGlBBw68VcPqLS+gDbSYBw==
=XN2V
-----END PGP SIGNATURE-----payloadXQ  tree 9c841288954aa4a5b25363b07a693b5612755b94
parent 08f8e4b2397f3e602a2df2595043e0aa2b9cf328
parent 894015703bf87db017f6be94af85691aa1eceb66
author Jeremy Kong <jkong@palantir.com> 1682694704 +0100
committer Jeremy Kong <jkong@palantir.com> 1682694704 +0100

Merge branch 'jkong/349286' of github.com:palantir/atlasdb into jkong/349286
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/543712ed39aa972054d857c1ef5e334d5be30650html_urlShttps://github.com/palantir/atlasdb/commit/543712ed39aa972054d857c1ef5e334d5be30650comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/543712ed39aa972054d857c1ef5e334d5be30650/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j  5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj
 Userj uparents](}(j (08f8e4b2397f3e602a2df2595043e0aa2b9cf328j ^https://api.github.com/repos/palantir/atlasdb/commits/08f8e4b2397f3e602a2df2595043e0aa2b9cf328j Shttps://github.com/palantir/atlasdb/commit/08f8e4b2397f3e602a2df2595043e0aa2b9cf328u}(j (894015703bf87db017f6be94af85691aa1eceb66j ^https://api.github.com/repos/palantir/atlasdb/commits/894015703bf87db017f6be94af85691aa1eceb66j Shttps://github.com/palantir/atlasdb/commit/894015703bf87db017f6be94af85691aa1eceb66uestats}(totalK 	additionsK 	deletionsK ufiles]u(832c9226e4164bacaf8fcd70673cbb9e5404d128}(sha(832c9226e4164bacaf8fcd70673cbb9e5404d128node_idEC_kwDOAjP5fdoAKDgzMmM5MjI2ZTQxNjRiYWNhZjhmY2Q3MDY3M2NiYjllNTQwNGQxMjgcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-07-18T14:10:13Zu	committer}(j8 
svc-changelogj: svc-changelog@palantir.comj< 2023-07-18T14:10:13ZumessageAdd generated changelog entriestree}(j0 (e246b95faf023a1a57861ee18b06611aefdf6bc8url`https://api.github.com/repos/palantir/atlasdb/git/trees/e246b95faf023a1a57861ee18b06611aefdf6bc8ujH bhttps://api.github.com/repos/palantir/atlasdb/git/commits/832c9226e4164bacaf8fcd70673cbb9e5404d128
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmS2nUUJEHYaJX37fAFQAAAa+QD7BWbM0W1/H9+jEYqmuh2UxDOG
Ob3761OV0d+mf0QwWeABAOnJ3eS08dEzpEPuoRpA1IRTtkOAYZvv4mWiJWTSPEKk
=POB0
-----END PGP SIGNATURE-----payloadX  tree e246b95faf023a1a57861ee18b06611aefdf6bc8
parent 23c1a249d3c6c161d2d4d6cf2ce4f42d135ba557
author svc-changelog <svc-changelog@palantir.com> 1689689413 +0000
committer svc-changelog <svc-changelog@palantir.com> 1689689413 +0000

Add generated changelog entriesuujH ^https://api.github.com/repos/palantir/atlasdb/commits/832c9226e4164bacaf8fcd70673cbb9e5404d128html_urlShttps://github.com/palantir/atlasdb/commit/832c9226e4164bacaf8fcd70673cbb9e5404d128comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/832c9226e4164bacaf8fcd70673cbb9e5404d128/commentsj6 }(login
svc-changelogidJ#j2 MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jH *https://api.github.com/users/svc-changelogjV  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj> }(j[ 
svc-changelogj] J#j2 MDQ6VXNlcjg0MDc3NjAzj_ 4https://avatars.githubusercontent.com/u/84077603?v=4ja h5jH *https://api.github.com/users/svc-changelogjV  https://github.com/svc-changelogjd 4https://api.github.com/users/svc-changelog/followersjf Ahttps://api.github.com/users/svc-changelog/following{/other_user}jh :https://api.github.com/users/svc-changelog/gists{/gist_id}jj Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jl 8https://api.github.com/users/svc-changelog/subscriptionsjn /https://api.github.com/users/svc-changelog/orgsjp 0https://api.github.com/users/svc-changelog/reposjr ;https://api.github.com/users/svc-changelog/events{/privacy}jt :https://api.github.com/users/svc-changelog/received_eventsjv Userjx uparents]}(j0 (23c1a249d3c6c161d2d4d6cf2ce4f42d135ba557jH ^https://api.github.com/repos/palantir/atlasdb/commits/23c1a249d3c6c161d2d4d6cf2ce4f42d135ba557jV Shttps://github.com/palantir/atlasdb/commit/23c1a249d3c6c161d2d4d6cf2ce4f42d135ba557uastats}(totalK	additionsK	deletionsK ufiles]}(j0 (53dbb997fbc87d47ddeeae107c0d0a5d610f7820filename$changelog/@unreleased/pr-6659.v2.ymlstatusaddedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/832c9226e4164bacaf8fcd70673cbb9e5404d128/changelog%2F%40unreleased%2Fpr-6659.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/832c9226e4164bacaf8fcd70673cbb9e5404d128/changelog%2F%40unreleased%2Fpr-6659.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6659.v2.yml?ref=832c9226e4164bacaf8fcd70673cbb9e5404d128patch@@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add custom serialization to LockEvent with index-encoded
+    metadata'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6659uau(8a3a44d88919bd9e215d2ef23f46d53dca4e8e36}(sha(8a3a44d88919bd9e215d2ef23f46d53dca4e8e36node_idEC_kwDOAjP5fdoAKDhhM2E0NGQ4ODkxOWJkOWUyMTVkMmVmMjNmNDZkNTNkY2E0ZThlMzYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T23:20:32Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-15T23:20:32Zumessageanother arrangementtree}(j (1a8d23a305d93ecda5ff6e406b4451905587f3dcurl`https://api.github.com/repos/palantir/atlasdb/git/trees/1a8d23a305d93ecda5ff6e406b4451905587f3dcuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8a3a44d88919bd9e215d2ef23f46d53dca4e8e36
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRivkAACgkQPlMHVIT1
yhqVsAgAhgpKEk725JQ1/rju3fHHml421SKnIxL8Tj3v4TxcivbtWsTwUs3GnuzQ
69fMbesYOagE9ioP2Fl0EAP22BImWUfeYC+LJIXYPsIKOBj6esfuE89HaZXWkA/6
GuGE1Y5wqOYPsb57PHai1QkiVEO6wEJGkTNPmdo9uRW91F1k7BOCRSxczOcKELnu
Ad4bxlLCfTi0Wgl8Ckp9wgAkl4+GHno+9INNOpPZVFziDXYMJNnFyOf3VCzxKW4X
ky57r8H9WRvKV/2I/oP/nwYmz6yeAFJouqNOIsnS7nHdKMaFrvCQ9QKwVwbCOPvz
yN/6v41CA9df33XHzcgc0ZGiMWzOEw==
=kGTC
-----END PGP SIGNATURE-----payloadtree 1a8d23a305d93ecda5ff6e406b4451905587f3dc
parent 838f4a90b2070855b04736dc82d98e3f70d766d7
author Ahmed Alouane <aalouane@palantir.com> 1684192832 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684192832 +0100

another arrangement
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/8a3a44d88919bd9e215d2ef23f46d53dca4e8e36html_urlShttps://github.com/palantir/atlasdb/commit/8a3a44d88919bd9e215d2ef23f46d53dca4e8e36comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8a3a44d88919bd9e215d2ef23f46d53dca4e8e36/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j (838f4a90b2070855b04736dc82d98e3f70d766d7j ^https://api.github.com/repos/palantir/atlasdb/commits/838f4a90b2070855b04736dc82d98e3f70d766d7j Shttps://github.com/palantir/atlasdb/commit/838f4a90b2070855b04736dc82d98e3f70d766d7uastats}(totalK	additionsK	deletionsKufiles]}(j (b3cace9def88416e367abf262164bf79f1bdf07afilename.circleci/config.ymlstatusmodifiedj	 Kj
 KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/8a3a44d88919bd9e215d2ef23f46d53dca4e8e36/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/8a3a44d88919bd9e215d2ef23f46d53dca4e8e36/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=8a3a44d88919bd9e215d2ef23f46d53dca4e8e36patchX  @@ -123,7 +123,7 @@ jobs:
             # hack - notion of "owners" isn't supported in Circle 2
             if [ $CIRCLE_PROJECT_USERNAME = 'palantir' ] && [ -z $CIRCLE_PR_NUMBER ]; then
               git status
-              ./gradlew --scan --continue --parallel publish
+              ./gradlew --scan --profile --stacktrace --continue publish
             fi
       - run:
           command: |uau(6c3432437df528326b457d8b20a6199d334261d6}(sha(6c3432437df528326b457d8b20a6199d334261d6node_idEC_kwDOAjP5fdoAKDZjMzQzMjQzN2RmNTI4MzI2YjQ1N2Q4YjIwYTYxOTlkMzM0MjYxZDYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-05T15:17:09Zu	committer}(j& Jeremy Kongj( jkong@palantir.comj* 2023-06-05T15:17:09Zumessagecheckpoint: columns and tablestree}(j (fc6df8d2b753593689a97c8f960dc8be7d2e4300url`https://api.github.com/repos/palantir/atlasdb/git/trees/fc6df8d2b753593689a97c8f960dc8be7d2e4300uj6 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6c3432437df528326b457d8b20a6199d334261d6
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR9/HUACgkQTLdFKain
zjzlEwgAof0bIY8QAqOUJ/3etHlreVGbNx5ElfImmAE3j7HqmKtYbj8PF8yXYQCP
KO/bNIK6prjDHhIfnlHsSNglfxwM3GQScwf4fGuXwyXxDFyAwYC8qH0F7gKjHA1V
XnR3xyRkP9aS8N9nPh0mKZkJ13Z73462DWGydR5yMDpE4NM72ObRNL4iX/k9YxYu
DmM9GbUrEzUcmdKmQvxmGqqoMibx0mjFBxfyxqKyXWkb5P5UxrVv0okuKIjtG9dJ
wghMY74Wpn0ftyCF8Gs6b/PoDN5L2g5JLCe3gZP22xZ8v1/4tsAFYa5aREY2dWha
qJfhF0sxTElahANFEg6p1KrH7bm3uA==
=1erx
-----END PGP SIGNATURE-----payloadtree fc6df8d2b753593689a97c8f960dc8be7d2e4300
parent 2e50d9b77833ff873946f59cc5c1426f5a6dec50
author Jeremy Kong <jkong@palantir.com> 1685978229 +0100
committer Jeremy Kong <jkong@palantir.com> 1685978229 +0100

checkpoint: columns and tables
uuj6 ^https://api.github.com/repos/palantir/atlasdb/commits/6c3432437df528326b457d8b20a6199d334261d6html_urlShttps://github.com/palantir/atlasdb/commit/6c3432437df528326b457d8b20a6199d334261d6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6c3432437df528326b457d8b20a6199d334261d6/commentsj$ }(login
jeremyk-91idJZ j  MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j6 'https://api.github.com/users/jeremyk-91jD https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj, }(jI 
jeremyk-91jK JZ j  MDQ6VXNlcjU5NTU1MTA=jM 3https://avatars.githubusercontent.com/u/5955510?v=4jO h5j6 'https://api.github.com/users/jeremyk-91jD https://github.com/jeremyk-91jR 1https://api.github.com/users/jeremyk-91/followersjT >https://api.github.com/users/jeremyk-91/following{/other_user}jV 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jX >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jZ 5https://api.github.com/users/jeremyk-91/subscriptionsj\ ,https://api.github.com/users/jeremyk-91/orgsj^ -https://api.github.com/users/jeremyk-91/reposj` 8https://api.github.com/users/jeremyk-91/events{/privacy}jb 7https://api.github.com/users/jeremyk-91/received_eventsjd Userjf uparents]}(j (2e50d9b77833ff873946f59cc5c1426f5a6dec50j6 ^https://api.github.com/repos/palantir/atlasdb/commits/2e50d9b77833ff873946f59cc5c1426f5a6dec50jD Shttps://github.com/palantir/atlasdb/commit/2e50d9b77833ff873946f59cc5c1426f5a6dec50uastats}(totalK	additionsKs	deletionsK6ufiles](}(j (a9cd05b1bdd19d859afdfe8b200b7fe2392113e9filenamebatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ValidationStore.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/6c3432437df528326b457d8b20a6199d334261d6/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6c3432437df528326b457d8b20a6199d334261d6/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.java?ref=6c3432437df528326b457d8b20a6199d334261d6patchX  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.workload.store;
 
 import io.vavr.collection.Map;
-import java.util.Optional;
 
 /**
  * Store used for replaying witnessed transactions, and ultimately being used as the 'source-of-truth' when validating
@@ -26,5 +25,5 @@
 public interface ValidationStore {
 
     /** Return all cells and values for all tables. Value is expected to be empty for deleted cells. */
-    Map<TableAndWorkloadCell, Optional<Integer>> values();
+    Map<String, Table> values();
 }u}(j (f5c5e40c82e8e62fd3f0333d7ca37d062d92bbf9j iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariant.javaj modifiedj Kj K	j K"j https://github.com/palantir/atlasdb/blob/6c3432437df528326b457d8b20a6199d334261d6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj https://github.com/palantir/atlasdb/raw/6c3432437df528326b457d8b20a6199d334261d6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.java?ref=6c3432437df528326b457d8b20a6199d334261d6j X0  @@ -16,12 +16,18 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
+import com.google.common.collect.Ordering;
+import com.palantir.atlasdb.workload.store.Columns;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.ValidationStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import io.vavr.Tuple;
+import io.vavr.collection.List;
+import io.vavr.collection.SortedMap;
 import java.util.Map;
 import java.util.Optional;
 import java.util.function.Consumer;
@@ -36,18 +42,28 @@ public void accept(
         ReadableTransactionStore storeToValidate = workflowHistory.transactionStore();
         Map<TableAndWorkloadCell, MismatchedValue> cellsThatDoNotMatch = expectedState
                 .values()
-                .map((writtenCell, expectedValue) -> {
-                    Optional<MismatchedValue> maybeMismatchedValue = Optional.empty();
-                    Optional<Integer> actualValue = storeToValidate.get(writtenCell.tableName(), writtenCell.cell());
+                .flatMap((tableName, table) -> {
+                    SortedMap<Integer, Columns> tableContents = table.snapshot();
 
-                    if (!actualValue.equals(expectedValue)) {
-                        maybeMismatchedValue = Optional.of(MismatchedValue.of(actualValue, expectedValue));
-                    }
+                    // There is an issue with vavr, where flatMap on a sorted map is assumed to return a sorted map,
+                    // but this should not be the case if the key type on the returned tuples is not comparable. We
+                    // thus need to specify this ordering.
+                    return tableContents.flatMap(Ordering.arbitrary(), (row, columns) -> {
+                        SortedMap<Integer, Optional<Integer>> columnContents = columns.snapshot();
+                        return columnContents.flatMap(Ordering.arbitrary(), (column, value) -> {
+                            WorkloadCell cell = ImmutableWorkloadCell.of(row, column);
 
-                    return Tuple.of(writtenCell, maybeMismatchedValue);
+                            Optional<Integer> actualValue = storeToValidate.get(tableName, cell);
+
+                            if (!actualValue.equals(value)) {
+                                return List.of(Tuple.of(
+                                        TableAndWorkloadCell.of(tableName, cell),
+                                        MismatchedValue.of(actualValue, value)));
+                            }
+                            return List.of();
+                        });
+                    });
                 })
-                .filterValues(Optional::isPresent)
-                .mapValues(Optional::get)
                 .toJavaMap();
         invariantListener.accept(cellsThatDoNotMatch);
     }u}(j (654da5b0b847fc57669ea71f4a80193e01d008d8j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/6c3432437df528326b457d8b20a6199d334261d6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://github.com/palantir/atlasdb/raw/6c3432437df528326b457d8b20a6199d334261d6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=6c3432437df528326b457d8b20a6199d334261d6j X4  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.invariant;
 
 import com.google.common.collect.ImmutableList;
-import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.invariant.RowColumnRangeQueryManager.RowColumnRangeQueryState;
 import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
@@ -69,7 +69,10 @@ private static final class SerializableInvariantVisitor
         public List<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
             Optional<Integer> expectedValue = inMemoryTransactionReplayer
                     .getValues()
-                    .get(TableAndWorkloadCell.of(readTransactionAction.table(), readTransactionAction.cell()))
+                    .get(readTransactionAction.table())
+                    .map(table -> table.get(
+                            readTransactionAction.cell().key(),
+                            readTransactionAction.cell().column()))
                     .toJavaOptional()
                     .orElseGet(Optional::empty);
 
@@ -106,8 +109,13 @@ public List<InvalidWitnessedTransactionAction> visit(
         @Override
         public List<InvalidWitnessedTransactionAction> visit(
                 WitnessedRowsColumnRangeReadTransactionAction rowsColumnRangeReadTransactionAction) {
-            // TODO (jkong): Not implemented yet
-            return ImmutableList.of();
+            Optional<RowColumnRangeQueryState> maybeLiveQueryState =
+                    rowColumnRangeQueryManager.getLiveQueryState(rowsColumnRangeReadTransactionAction);
+            if (maybeLiveQueryState.isEmpty()) {
+                return ImmutableList.of();
+            }
+            RowColumnRangeQueryState liveQueryState = maybeLiveQueryState.get();
+            return ImmutableList.of(); // TODO (jkong): Wrong
         }
     }
 }u}(j (98476fadbad8cf3f8cb8808ccabe15416536ab76j fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/InMemoryValidationStore.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/6c3432437df528326b457d8b20a6199d334261d6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.javaj https://github.com/palantir/atlasdb/raw/6c3432437df528326b457d8b20a6199d334261d6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.java?ref=6c3432437df528326b457d8b20a6199d334261d6j XN  @@ -20,13 +20,12 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import io.vavr.collection.Map;
 import java.util.List;
-import java.util.Optional;
 
 public final class InMemoryValidationStore implements ValidationStore {
 
-    private final Map<TableAndWorkloadCell, Optional<Integer>> values;
+    private final Map<String, Table> values;
 
-    private InMemoryValidationStore(Map<TableAndWorkloadCell, Optional<Integer>> values) {
+    public InMemoryValidationStore(Map<String, Table> values) {
         this.values = values;
     }
 
@@ -40,7 +39,7 @@ public static InMemoryValidationStore create(List<WitnessedTransaction> history)
     }
 
     @Override
-    public Map<TableAndWorkloadCell, Optional<Integer>> values() {
+    public Map<String, Table> values() {
         return values;
     }
 }u}(j (d90611a70169a13048f4601afa9ccd5e051d9f0fj patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj modifiedj Kj K	j K!j https://github.com/palantir/atlasdb/blob/6c3432437df528326b457d8b20a6199d334261d6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj https://github.com/palantir/atlasdb/raw/6c3432437df528326b457d8b20a6199d334261d6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=6c3432437df528326b457d8b20a6199d334261d6j XF  @@ -17,21 +17,21 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.DefaultTable;
+import com.palantir.atlasdb.workload.store.Table;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeIteratorCreationTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeReadTransactionAction;
+import io.vavr.Tuple2;
 import io.vavr.collection.HashMap;
 import io.vavr.collection.Map;
-import java.util.Optional;
 
 public final class InMemoryTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
-
-    private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> values =
-            StructureHolder.create(HashMap::empty);
+    private final StructureHolder<Map<String, Table>> values = StructureHolder.create(HashMap::empty);
 
     @Override
     public Void visit(WitnessedReadTransactionAction _readTransactionAction) {
@@ -40,9 +40,16 @@ public Void visit(WitnessedReadTransactionAction _readTransactionAction) {
 
     @Override
     public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
-        TableAndWorkloadCell tableAndWorkloadCell =
-                TableAndWorkloadCell.of(writeTransactionAction.table(), writeTransactionAction.cell());
-        values.with(map -> map.put(tableAndWorkloadCell, Optional.of(writeTransactionAction.value())));
+        values.with(map -> {
+            Tuple2<Table, ? extends Map<String, Table>> tuple =
+                    map.computeIfAbsent(writeTransactionAction.table(), unused -> DefaultTable.empty());
+            tuple._1()
+                    .put(
+                            writeTransactionAction.cell().key(),
+                            writeTransactionAction.cell().column(),
+                            writeTransactionAction.value());
+            return tuple._2();
+        });
         return null;
     }
 
@@ -53,7 +60,15 @@ public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
     public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         TableAndWorkloadCell tableAndWorkloadCell =
                 TableAndWorkloadCell.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
-        values.with(map -> map.put(tableAndWorkloadCell, Optional.empty()));
+        values.with(map -> {
+            Tuple2<Table, ? extends Map<String, Table>> tuple =
+                    map.computeIfAbsent(deleteTransactionAction.table(), unused -> DefaultTable.empty());
+            tuple._1()
+                    .delete(
+                            deleteTransactionAction.cell().key(),
+                            deleteTransactionAction.cell().column());
+            return tuple._2();
+        });
         return null;
     }
 
@@ -67,7 +82,7 @@ public Void visit(WitnessedRowsColumnRangeIteratorCreationTransactionAction unus
         return null;
     }
 
-    public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
+    public Map<String, Table> getValues() {
         return values.getSnapshot();
     }
 }u}(j (980ada7103b45798d9d8aa85f811d9b7beb19599j katlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/VersionedColumnsViewTest.javaj renamedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/6c3432437df528326b457d8b20a6199d334261d6/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedColumnsViewTest.javaj https://github.com/palantir/atlasdb/raw/6c3432437df528326b457d8b20a6199d334261d6/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedColumnsViewTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedColumnsViewTest.java?ref=6c3432437df528326b457d8b20a6199d334261d6j X!  @@ -26,7 +26,7 @@
 import java.util.TreeMap;
 import org.junit.Test;
 
-public final class VersionedTableViewTest {
+public final class VersionedColumnsViewTest {
     @Test
     public void putStoresTable() {
         VersionedTableView<Long, Long> tableView = new VersionedTableView<>();previous_filenameiatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/VersionedTableViewTest.javau}(j (c78ca7331101c9d0c5ffae0660d47507eabb482bj tatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayerTest.javaj modifiedj Kj K	j K#j https://github.com/palantir/atlasdb/blob/6c3432437df528326b457d8b20a6199d334261d6/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj https://github.com/palantir/atlasdb/raw/6c3432437df528326b457d8b20a6199d334261d6/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.java?ref=6c3432437df528326b457d8b20a6199d334261d6j X}  @@ -25,11 +25,12 @@
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.workload.store.Table;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
-import io.vavr.Tuple2;
+import io.vavr.collection.Map;
 import java.util.Optional;
 import org.junit.Test;
 
@@ -53,10 +54,18 @@ public void writesAreRecorded() {
         InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
         inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_1);
         inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_2);
-        assertThat(inMemoryTransactionReplayer.getValues())
-                .containsExactlyInAnyOrder(
-                        new Tuple2<>(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)),
-                        new Tuple2<>(TABLE_WORKLOAD_CELL_TWO, Optional.of(VALUE_TWO)));
+        Map<String, Table> tables = inMemoryTransactionReplayer.getValues();
+        assertThat(tables).hasSize(1);
+        assertThat(tables.get(TABLE_1).get()).satisfies(table -> {
+            assertThat(table.get(
+                            TABLE_WORKLOAD_CELL_ONE.cell().key(),
+                            TABLE_WORKLOAD_CELL_ONE.cell().column()))
+                    .contains(VALUE_ONE);
+            assertThat(table.get(
+                            TABLE_WORKLOAD_CELL_TWO.cell().key(),
+                            TABLE_WORKLOAD_CELL_TWO.cell().column()))
+                    .contains(VALUE_TWO);
+        });
     }
 
     @Test
@@ -66,9 +75,17 @@ public void deletesAreRecorded() {
         inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_1);
         inMemoryTransactionReplayer.visit(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
         inMemoryTransactionReplayer.visit(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO));
-        assertThat(inMemoryTransactionReplayer.getValues())
-                .containsExactlyInAnyOrder(
-                        new Tuple2<>(TABLE_WORKLOAD_CELL_ONE, Optional.empty()),
-                        new Tuple2<>(TABLE_WORKLOAD_CELL_TWO, Optional.empty()));
+        Map<String, Table> tables = inMemoryTransactionReplayer.getValues();
+        assertThat(tables).hasSize(1);
+        assertThat(tables.get(TABLE_1).get()).satisfies(table -> {
+            assertThat(table.get(
+                            TABLE_WORKLOAD_CELL_ONE.cell().key(),
+                            TABLE_WORKLOAD_CELL_ONE.cell().column()))
+                    .isEmpty();
+            assertThat(table.get(
+                            TABLE_WORKLOAD_CELL_TWO.cell().key(),
+                            TABLE_WORKLOAD_CELL_TWO.cell().column()))
+                    .isEmpty();
+        });
     }
 }u}(j (009e02a01426effd70daa8e4ac1308b96502e72aj patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javaj modifiedj Kj Kj K'j https://github.com/palantir/atlasdb/blob/6c3432437df528326b457d8b20a6199d334261d6/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj https://github.com/palantir/atlasdb/raw/6c3432437df528326b457d8b20a6199d334261d6/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=6c3432437df528326b457d8b20a6199d334261d6j X\  @@ -17,8 +17,6 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
-import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_ONE;
-import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_TWO;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
@@ -31,8 +29,6 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import java.util.List;
-import java.util.Map;
-import java.util.Optional;
 import org.junit.Test;
 
 public final class InMemoryValidationStoreTest {
@@ -50,12 +46,13 @@ public void writeActionsPersistValues() {
                         .commitTimestamp(4)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
                         .build()));
-        assertThat(store.values().toJavaMap())
-                .containsExactlyInAnyOrderEntriesOf(Map.of(
-                        TABLE_WORKLOAD_CELL_ONE,
-                        Optional.of(VALUE_ONE),
-                        TABLE_WORKLOAD_CELL_TWO,
-                        Optional.of(VALUE_TWO)));
+        assertThat(store.values()).hasSize(1);
+        assertThat(store.values().get(TABLE_1).get()).satisfies(table -> {
+            assertThat(table.get(WORKLOAD_CELL_ONE.key(), WORKLOAD_CELL_ONE.column()))
+                    .contains(VALUE_ONE);
+            assertThat(table.get(WORKLOAD_CELL_TWO.key(), WORKLOAD_CELL_TWO.column()))
+                    .contains(VALUE_TWO);
+        });
     }
 
     @Test
@@ -72,9 +69,16 @@ public void deleteActionsPutsEmptyOptionalForCell() {
                         .commitTimestamp(4)
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .build()));
-        assertThat(store.values().toJavaMap())
-                .containsExactlyInAnyOrderEntriesOf(Map.of(
-                        TABLE_WORKLOAD_CELL_ONE, Optional.empty(), TABLE_WORKLOAD_CELL_TWO, Optional.of(VALUE_ONE)));
+        assertThat(store.values()).hasSize(1);
+        assertThat(store.values().get(TABLE_1).get()).satisfies(table -> {
+            assertThat(table.get(WORKLOAD_CELL_ONE.key(), WORKLOAD_CELL_ONE.column()))
+                    .isEmpty();
+            assertThat(table.containsKey(WORKLOAD_CELL_ONE.key(), WORKLOAD_CELL_ONE.column()))
+                    .as("a tombstone should have been explicitly written")
+                    .isTrue();
+            assertThat(table.get(WORKLOAD_CELL_TWO.key(), WORKLOAD_CELL_TWO.column()))
+                    .contains(VALUE_TWO);
+        });
     }
 
     @Test
@@ -95,14 +99,17 @@ public void writesDeletesAreProcessedInOrder() {
                         .commitTimestamp(6)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_TWO))
                         .build()));
-        assertThat(store.values().toJavaMap())
-                .containsExactlyInAnyOrderEntriesOf(Map.of(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_TWO)));
+        assertThat(store.values()).hasSize(1);
+        assertThat(store.values().get(TABLE_1).get()).satisfies(table -> {
+            assertThat(table.get(WORKLOAD_CELL_ONE.key(), WORKLOAD_CELL_ONE.column()))
+                    .contains(VALUE_TWO);
+        });
     }
 
     @Test
     public void valuesCannotBeModified() {
         ValidationStore validationStore = InMemoryValidationStore.create(List.of());
-        validationStore.values().put(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_TWO));
+        validationStore.values().get(TABLE_1).get().put(WORKLOAD_CELL_ONE.key(), WORKLOAD_CELL_ONE.column(), VALUE_ONE);
         assertThat(validationStore.values()).isEmpty();
     }
 }ueu(79dde1b234d0441c5fa5b5bf7121e473442e4c2a}(sha(79dde1b234d0441c5fa5b5bf7121e473442e4c2anode_idEC_kwDOAjP5fdoAKDc5ZGRlMWIyMzRkMDQ0MWM1ZmE1YjViZjcxMjFlNDczNDQyZTRjMmEcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-28T17:59:41Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-04-28T17:59:41Zumessagetest in parallel of buildtree}(j (137c8bcf3bca67f6f0ca45a75d6b0936734ed5fdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/137c8bcf3bca67f6f0ca45a75d6b0936734ed5fduj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/79dde1b234d0441c5fa5b5bf7121e473442e4c2a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRMCY0ACgkQPlMHVIT1
yhrCxAf7B7m//t7/vWOZguyF3qaIlskN+CU/UFtYEHdXmQFzTyNr972nyawsQ0cv
dflOPJaS9DQ0csZ3OXpUkynKNUBjn27psCLnMzdooRQRCN9CweLIjnfKwz/NAc2x
hhrACFT+zM6Yp3pfhfjZFLIbNYiciz45UqBXnkZEBLxK7EY17Hc7JdeJ0/jsYbZ1
VxubVLvoy8k7zGo8OB96O2dxwo7lvTt4zyxnNHFUwA2ayNVnVus+ck3OVtYCltPU
rWVsE2og3s2WwQJbxuLhbau5hU6SWegd72kz2+7X5iJ7p62RyElTuXSnTTZfvz+h
M/usP2SGN7HzPeHsKoPlatmYpdwZ9A==
=p20o
-----END PGP SIGNATURE-----payloadtree 137c8bcf3bca67f6f0ca45a75d6b0936734ed5fd
parent 6bf2dfd5499de5b6e9984e6aa637108146974777
author Ahmed Alouane <aalouane@palantir.com> 1682704781 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682704781 +0100

test in parallel of build
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/79dde1b234d0441c5fa5b5bf7121e473442e4c2ahtml_urlShttps://github.com/palantir/atlasdb/commit/79dde1b234d0441c5fa5b5bf7121e473442e4c2acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/79dde1b234d0441c5fa5b5bf7121e473442e4c2a/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j  h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j	 :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj
 (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j (6bf2dfd5499de5b6e9984e6aa637108146974777j ^https://api.github.com/repos/palantir/atlasdb/commits/6bf2dfd5499de5b6e9984e6aa637108146974777j Shttps://github.com/palantir/atlasdb/commit/6bf2dfd5499de5b6e9984e6aa637108146974777uastats}(totalK	additionsK 	deletionsKufiles]}(j (4cd84cf7ad5067aae325228ca6020c7db5a85dbbfilename.circleci/config.ymlstatusmodifiedj1 K j2 KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/79dde1b234d0441c5fa5b5bf7121e473442e4c2a/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/79dde1b234d0441c5fa5b5bf7121e473442e4c2a/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=79dde1b234d0441c5fa5b5bf7121e473442e4c2apatch@@ -138,7 +138,6 @@ workflows:
             tags:
               only: /.*/
       - test:
-          requires: [build]
           filters:
             tags:
               only: /.*/uau(435e29d47d0f563fbf567705e16123ddf8754b17}(sha(435e29d47d0f563fbf567705e16123ddf8754b17node_idEC_kwDOAjP5fdoAKDQzNWUyOWQ0N2QwZjU2M2ZiZjU2NzcwNWUxNjEyM2RkZjg3NTRiMTccommit}(author}(nameCVdV-auemail)69226052+CVdV-au@users.noreply.github.comdate2023-04-13T10:44:57Zu	committer}(jN GitHubjP noreply@github.comjR 2023-04-13T10:44:57Zumessage|Use bindargs for rownum/limit in dbkvs (#6508)

DB queries to Oracle/Postgres now use bind variables for rownum/limit terms.tree}(jF (60a0c3874587626cb5a6923d7530f6123ee7589burl`https://api.github.com/repos/palantir/atlasdb/git/trees/60a0c3874587626cb5a6923d7530f6123ee7589buj^ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/435e29d47d0f563fbf567705e16123ddf8754b17
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkN90pCRBK7hj4Ov3rIwAAkWQIAIbz1VZEilAK5MY8tbD1BVA3
f+vujP9kQcACprqxKSUs9iQVMRmd1mJoxrikZ7Y/6XBWw4OYT5kEltIEnqctgqfs
wASpnA/mmH5ypOxXB1KsS9/wCJc+xDV9z/yy2qnSZAszETdtz/dhbxCcmtUJz3Sc
n12QCkCHff7KoIryBCjTLwURZ/mlvIx8mGPtYjpykpCD3Dp9iKKSZB/GRhuoTyQ1
2ZfDLqVuDtePwqGXTwG8MEGl0v6saHkA+myUxmty77zP7v+D/xlI6tVf5at+kmmC
MA+hQ/oL27nwr7L3O02D/tVRaM/KxcYdiIBjJZJlAKmQpuwgUVRRbFC6qbIfeI4=
=PUV4
-----END PGP SIGNATURE-----
payloadX_  tree 60a0c3874587626cb5a6923d7530f6123ee7589b
parent 6e081f04521863ae0874fd2ba63760f3ef0f0d68
author CVdV-au <69226052+CVdV-au@users.noreply.github.com> 1681382697 +1000
committer GitHub <noreply@github.com> 1681382697 +0000

Use bindargs for rownum/limit in dbkvs (#6508)

DB queries to Oracle/Postgres now use bind variables for rownum/limit terms.
uuj^ ^https://api.github.com/repos/palantir/atlasdb/commits/435e29d47d0f563fbf567705e16123ddf8754b17html_urlShttps://github.com/palantir/atlasdb/commit/435e29d47d0f563fbf567705e16123ddf8754b17comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/435e29d47d0f563fbf567705e16123ddf8754b17/commentsjL }(loginCVdV-auidJDN jH MDQ6VXNlcjY5MjI2MDUy
avatar_url4https://avatars.githubusercontent.com/u/69226052?v=4gravatar_idh5j^ $https://api.github.com/users/CVdV-aujl https://github.com/CVdV-au
followers_url.https://api.github.com/users/CVdV-au/followers
following_url;https://api.github.com/users/CVdV-au/following{/other_user}	gists_url4https://api.github.com/users/CVdV-au/gists{/gist_id}starred_url;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/CVdV-au/subscriptionsorganizations_url)https://api.github.com/users/CVdV-au/orgs	repos_url*https://api.github.com/users/CVdV-au/repos
events_url5https://api.github.com/users/CVdV-au/events{/privacy}received_events_url4https://api.github.com/users/CVdV-au/received_eventstypeUser
site_adminujT }(jq web-flowjs J/jH MDQ6VXNlcjE5ODY0NDQ3ju 4https://avatars.githubusercontent.com/u/19864447?v=4jw h5j^ %https://api.github.com/users/web-flowjl https://github.com/web-flowjz /https://api.github.com/users/web-flow/followersj| <https://api.github.com/users/web-flow/following{/other_user}j~ 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(jF (6e081f04521863ae0874fd2ba63760f3ef0f0d68j^ ^https://api.github.com/repos/palantir/atlasdb/commits/6e081f04521863ae0874fd2ba63760f3ef0f0d68jl Shttps://github.com/palantir/atlasdb/commit/6e081f04521863ae0874fd2ba63760f3ef0f0d68uastats}(totalK4	additionsK	deletionsKufiles](}(jF (2a91fe0d6e86187e3690c8655b64ea385b2f02fafilenameSatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/FullQuery.javastatusmodifiedj K j KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/435e29d47d0f563fbf567705e16123ddf8754b17/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.javaraw_urlhttps://github.com/palantir/atlasdb/raw/435e29d47d0f563fbf567705e16123ddf8754b17/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.java?ref=435e29d47d0f563fbf567705e16123ddf8754b17patchXe  @@ -35,11 +35,6 @@ public Builder append(String query) {
             return this;
         }
 
-        public Builder append(long number) {
-            queryBuilder.append(number);
-            return this;
-        }
-
         public Builder append(String query, Object arg) {
             queryBuilder.append(query);
             argsBuilder.add(arg);u}(jF (ddbe99f94fd632341080a204b08994736d8ac8d1j gatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleCellTsPageLoader.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/435e29d47d0f563fbf567705e16123ddf8754b17/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.javaj https://github.com/palantir/atlasdb/raw/435e29d47d0f563fbf567705e16123ddf8754b17/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.java?ref=435e29d47d0f563fbf567705e16123ddf8754b17j X  @@ -195,8 +195,7 @@ private FullQuery getQuery(boolean singleRow) {
             appendRangePredicates(singleRow, queryBuilder);
             return queryBuilder
                     .append("  ORDER BY row_name, col_name, ts")
-                    .append(") WHERE rownum <= ")
-                    .append(sqlRowLimit)
+                    .append(") WHERE rownum <= ?", sqlRowLimit)
                     .append(" ORDER BY row_name, col_name, ts")
                     .build();
         }u}(jF (570b443f767b2c7f891051709f1bd68ce081d75cj _atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleGetRange.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/435e29d47d0f563fbf567705e16123ddf8754b17/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.javaj https://github.com/palantir/atlasdb/raw/435e29d47d0f563fbf567705e16123ddf8754b17/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.java?ref=435e29d47d0f563fbf567705e16123ddf8754b17j XF  @@ -316,8 +316,7 @@ private FullQuery getRangeQuery(ConnectionSupplier conns) {
                     .append(shortTableName)
                     .append(" v ON ")
                     .append("    sub.row_name = v.row_name and sub.col_name = v.col_name and sub.ts = v.ts")
-                    .append("  WHERE sub.rn <= ")
-                    .append(maxRowsPerPage)
+                    .append("  WHERE sub.rn <= ?", maxRowsPerPage)
                     .append("  ORDER BY sub.row_name ")
                     .append(direction)
                     .append(", sub.col_name ")u}(jF (68c4ca31f6171bb238d98d2e9cfa5f4ad9e2f919j catlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleQueryFactory.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/435e29d47d0f563fbf567705e16123ddf8754b17/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.javaj https://github.com/palantir/atlasdb/raw/435e29d47d0f563fbf567705e16123ddf8754b17/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.java?ref=435e29d47d0f563fbf567705e16123ddf8754b17j XW	  @@ -312,8 +312,8 @@ public FullQuery getRangeQuery(RangeRequest range, long ts, int maxRows) {
                 + "     FROM " + tableName + " m "
                 + (bounds.isEmpty() ? "" : " WHERE  " + Joiner.on(" AND ").join(bounds))
                 + "     ORDER BY m.row_name " + (range.isReverse() ? "DESC" : "ASC")
-                + "   ) inner WHERE rownum <= " + maxRows;
-        return new FullQuery(query).withArgs(args);
+                + "   ) inner WHERE rownum <= ?";
+        return new FullQuery(query).withArgs(args).withArg(maxRows);
     }
 
     @Override
@@ -334,10 +334,10 @@ public FullQuery getRowsColumnRangeCountsQuery(
                 + " GROUP BY m.row_name";
         FullQuery fullQuery = new FullQuery(query).withArgs(rowsToOracleArray(rows), ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
         return fullQuery;
     }
@@ -355,14 +355,15 @@ protected FullQuery getRowsColumnRangeSubQuery(
                 + (columnRangeSelection.getStartCol().length > 0 ? " AND m.col_name >= ?" : "")
                 + (columnRangeSelection.getEndCol().length > 0 ? " AND m.col_name < ?" : "")
                 + " GROUP BY m.row_name, m.col_name"
-                + " ORDER BY m.row_name ASC, m.col_name ASC ) s WHERE rownum <= " + columnRangeSelection.getBatchHint();
+                + " ORDER BY m.row_name ASC, m.col_name ASC ) s WHERE rownum <= ?";
         FullQuery fullQuery = new FullQuery(query).withArg(row).withArg(ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
+        fullQuery.withArg(columnRangeSelection.getBatchHint());
         return fullQuery;
     }
 u      }(jF (2f1bb8d487f43f4608acaf707e7e6788af473dbdj katlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresCellTsPageLoader.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/435e29d47d0f563fbf567705e16123ddf8754b17/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.javaj https://github.com/palantir/atlasdb/raw/435e29d47d0f563fbf567705e16123ddf8754b17/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.java?ref=435e29d47d0f563fbf567705e16123ddf8754b17j XR  @@ -154,8 +154,7 @@ private FullQuery getFullQuery() {
                                 token.startRowInclusive(), token.startColInclusive(), token.startTsInclusive());
                 return queryBuilder
                         .append("      ORDER BY row_name, col_name, ts")
-                        .append("      LIMIT ")
-                        .append(sqlRowLimit)
+                        .append("      LIMIT ?", sqlRowLimit)
                         .append("    ) sub")
                         .append("    GROUP BY row_name, col_name")
                         .append("    ORDER BY row_name, col_name")
@@ -183,8 +182,7 @@ private FullQuery getFullQuery() {
                                 token.startRowInclusive(), token.startColInclusive(), token.startTsInclusive());
                 return queryBuilder
                         .append("  ORDER BY row_name, col_name, ts")
-                        .append("  LIMIT ")
-                        .append(sqlRowLimit)
+                        .append("  LIMIT ?", sqlRowLimit)
                         .build();
             }
         }u}(jF (00cafb31e5f67e282a7490f4d2f3b4c4034b0fb5j catlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresGetRange.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/435e29d47d0f563fbf567705e16123ddf8754b17/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.javaj https://github.com/palantir/atlasdb/raw/435e29d47d0f563fbf567705e16123ddf8754b17/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.java?ref=435e29d47d0f563fbf567705e16123ddf8754b17j X  @@ -288,8 +288,7 @@ private FullQuery getRangeQuery() {
                     .append(direction)
                     .append(", col_name ")
                     .append(direction)
-                    .append("    LIMIT ")
-                    .append(maxCellsPerPage)
+                    .append("    LIMIT ?", maxCellsPerPage)
                     .append("  ) i")
                     .append("  WHERE wrap.row_name = i.row_name")
                     .append("    AND wrap.col_name = i.col_name")u}(jF (09ea7a8a8689d417885286a94aaf8424dfa8b7faj gatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresQueryFactory.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/435e29d47d0f563fbf567705e16123ddf8754b17/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.javaj https://github.com/palantir/atlasdb/raw/435e29d47d0f563fbf567705e16123ddf8754b17/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.java?ref=435e29d47d0f563fbf567705e16123ddf8754b17j X  @@ -229,8 +229,8 @@ public FullQuery getRangeQuery(RangeRequest range, long ts, int maxRows) {
                 + " FROM " + prefixedTableName() + " m "
                 + (bounds.isEmpty() ? "" : " WHERE  " + Joiner.on(" AND ").join(bounds))
                 + " ORDER BY m.row_name " + (range.isReverse() ? "DESC" : "ASC")
-                + " LIMIT " + maxRows;
-        return new FullQuery(query).withArgs(args);
+                + " LIMIT ?";
+        return new FullQuery(query).withArgs(args).withArg(maxRows);
     }
 
     @Override
@@ -319,16 +319,17 @@ protected FullQuery getRowsColumnRangeSubQuery(
                 + (columnRangeSelection.getStartCol().length > 0 ? " AND m.col_name >= ?" : "")
                 + (columnRangeSelection.getEndCol().length > 0 ? " AND m.col_name < ?" : "")
                 + " GROUP BY m.row_name, m.col_name"
-                + " ORDER BY m.col_name ASC LIMIT " + columnRangeSelection.getBatchHint();
+                + " ORDER BY m.col_name ASC LIMIT ?";
         FullQuery fullQuery = new FullQuery(wrapQueryWithIncludeValue("GET_ROWS_COLUMN_RANGE", query, true))
                 .withArg(row)
                 .withArg(ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
+        fullQuery.withArg(columnRangeSelection.getBatchHint());
         return fullQuery;
     }
 u}(jF (fdaa0f14c0403bcf95c1cdd5c0f860c959c67c95j $changelog/@unreleased/pr-6508.v2.ymlj addedj Kj K j Kj |https://github.com/palantir/atlasdb/blob/435e29d47d0f563fbf567705e16123ddf8754b17/changelog%2F%40unreleased%2Fpr-6508.v2.ymlj {https://github.com/palantir/atlasdb/raw/435e29d47d0f563fbf567705e16123ddf8754b17/changelog%2F%40unreleased%2Fpr-6508.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6508.v2.yml?ref=435e29d47d0f563fbf567705e16123ddf8754b17j @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: DB queries to Oracle/Postgres now use bind variables for rownum/limit
+    terms.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6508ueu(47c02af593ecae5da875dba526148ab591e05788}(sha(47c02af593ecae5da875dba526148ab591e05788node_idEC_kwDOAjP5fdoAKDQ3YzAyYWY1OTNlY2FlNWRhODc1ZGJhNTI2MTQ4YWI1OTFlMDU3ODgcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-16T12:16:09Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-03-16T12:16:09Zumessagenitstree}(j (f8e346b26eb3134599c800a8705da614f16e24ddurl`https://api.github.com/repos/palantir/atlasdb/git/trees/f8e346b26eb3134599c800a8705da614f16e24dduj
 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/47c02af593ecae5da875dba526148ab591e05788
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQTCIkACgkQmPPOpKR4
XS0pSgf5AR8CEwl5PugDJ6VdE7H5pPVqF0eVBqjv5d7fsN+UhZHjbI/Ngho1B1iE
AWazth5UpLUDhqLwCatqW1FBvTZdtn0DUxSe72GZ6bL+rxYIyo8WslraRy9G23bq
XdplT1ZfL2YCNDPcFNjyLyO7/VkztZbm0Vbzc5rdYI8mgUq08+0vru8aKqJSnBJu
CTvyeYng4rvbfd5kJ7ffQwiJ6KCO6TkcR1C3prQ0jRIx6OmsR9HPrKavCVytnG0S
cnyacRUHjH68qlrtz4lZg6h7jEP+AeEu37YPw0/L+D1LRe+I5oDw4nEjiuHYy3bS
yAXQ8bHPZV43dVsTyzA3vC1NRAC2LA==
=prPU
-----END PGP SIGNATURE-----payloadtree f8e346b26eb3134599c800a8705da614f16e24dd
parent 3a08478ca372e6dc12d7b18025ca7d1b353c46c9
author Sam Kramer <skramer@palantir.com> 1678968969 +0000
committer Sam Kramer <skramer@palantir.com> 1678968969 +0000

nits
uuj
 ^https://api.github.com/repos/palantir/atlasdb/commits/47c02af593ecae5da875dba526148ab591e05788html_urlShttps://github.com/palantir/atlasdb/commit/47c02af593ecae5da875dba526148ab591e05788comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/47c02af593ecae5da875dba526148ab591e05788/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j
 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j  
Sam-Kramerj" J^2_ j MDQ6VXNlcjYyMzg4MTQ=j$ 3https://avatars.githubusercontent.com/u/6238814?v=4j& h5j
 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj) 1https://api.github.com/users/Sam-Kramer/followersj+ >https://api.github.com/users/Sam-Kramer/following{/other_user}j- 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j/ >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j1 5https://api.github.com/users/Sam-Kramer/subscriptionsj3 ,https://api.github.com/users/Sam-Kramer/orgsj5 -https://api.github.com/users/Sam-Kramer/reposj7 8https://api.github.com/users/Sam-Kramer/events{/privacy}j9 7https://api.github.com/users/Sam-Kramer/received_eventsj; Userj= uparents]}(j (3a08478ca372e6dc12d7b18025ca7d1b353c46c9j
 ^https://api.github.com/repos/palantir/atlasdb/commits/3a08478ca372e6dc12d7b18025ca7d1b353c46c9j Shttps://github.com/palantir/atlasdb/commit/3a08478ca372e6dc12d7b18025ca7d1b353c46c9uastats}(totalK	additionsK
	deletionsK
ufiles](}(j (e7305ade35c915bb53a9c53289a6a434cfb626dbfilenamehatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/InvariantReporter.javastatusmodifiedjW KjX KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/47c02af593ecae5da875dba526148ab591e05788/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariantReporter.javaraw_urlhttps://github.com/palantir/atlasdb/raw/47c02af593ecae5da875dba526148ab591e05788/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariantReporter.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariantReporter.java?ref=47c02af593ecae5da875dba526148ab591e05788patchX  @@ -21,13 +21,13 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface InvariantReporter<Violations> {
+public interface InvariantReporter<ViolationsT> {
 
     @Value.Parameter
-    Invariant<Violations> invariant();
+    Invariant<ViolationsT> invariant();
 
     @Value.Parameter
-    Consumer<Violations> consumer();
+    Consumer<ViolationsT> consumer();
 
     default void report(WorkflowHistory history) {
         invariant().accept(history, consumer());u}(j (17168cfeef95bc4bb006e36031f525902005168cj] ]atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/IndexTable.javaj_ modifiedjW KjX Kja K
jb https://github.com/palantir/atlasdb/blob/47c02af593ecae5da875dba526148ab591e05788/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTable.javajd https://github.com/palantir/atlasdb/raw/47c02af593ecae5da875dba526148ab591e05788/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTable.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTable.java?ref=47c02af593ecae5da875dba526148ab591e05788jh X>  @@ -24,18 +24,18 @@
 public interface IndexTable {
 
     @Value.Parameter
-    String name();
+    String indexTableName();
 
     @Value.Parameter
-    String primaryTable();
+    String primaryTableName();
 
     @Value.Check
     default void checkNameAndPrimaryTableAreNotEqual() {
         Preconditions.checkArgument(
-                !name().equalsIgnoreCase(primaryTable()),
+                !indexTableName().equalsIgnoreCase(primaryTableName()),
                 "Index table name and primary table name are identical.",
-                SafeArg.of("name", name()),
-                SafeArg.of("primaryTable", primaryTable()));
+                SafeArg.of("name", indexTableName()),
+                SafeArg.of("primaryTable", primaryTableName()));
     }
 
     static IndexTable of(String name, String primaryTable) {u}(j (26454afbc01fdc4f8844d94a6daf381b64a638b6j] aatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/store/IndexTableTest.javaj_ modifiedjW KjX Kja Kjb https://github.com/palantir/atlasdb/blob/47c02af593ecae5da875dba526148ab591e05788/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTableTest.javajd https://github.com/palantir/atlasdb/raw/47c02af593ecae5da875dba526148ab591e05788/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTableTest.javajf https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTableTest.java?ref=47c02af593ecae5da875dba526148ab591e05788jh X   @@ -37,8 +37,8 @@ public void doesNotThrowWhenNamesAreDifferent() {
     @Test
     public void indexTableNameIsFirstArgumentAndPrimaryTableIsSecondArgument() {
         IndexTable indexTable = IndexTable.of(TABLE_1, TABLE_2);
-        assertThat(indexTable.name()).isEqualTo(TABLE_1);
-        assertThat(indexTable.primaryTable()).isEqualTo(TABLE_2);
+        assertThat(indexTable.indexTableName()).isEqualTo(TABLE_1);
+        assertThat(indexTable.primaryTableName()).isEqualTo(TABLE_2);
     }
 
     @Testueu(48f4bc2f47016ae7e3840f8167909effcd48e8e8}(sha(48f4bc2f47016ae7e3840f8167909effcd48e8e8node_idEC_kwDOAjP5fdoAKDQ4ZjRiYzJmNDcwMTZhZTdlMzg0MGY4MTY3OTA5ZWZmY2Q0OGU4ZTgcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-03T09:35:52Zu	committer}(j 
Samuel Kramerj skramer@palantir.comj 2023-03-23T11:11:52Zumessagerstash workoad server

stash skeleton for workload server

Create workload server launcher with test for dropwizardtree}(j| (ec6ef14565243c5f8f931ee726bc427a0fea0710url`https://api.github.com/repos/palantir/atlasdb/git/trees/ec6ef14565243c5f8f931ee726bc427a0fea0710uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/48f4bc2f47016ae7e3840f8167909effcd48e8e8
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj ^https://api.github.com/repos/palantir/atlasdb/commits/48f4bc2f47016ae7e3840f8167909effcd48e8e8html_urlShttps://github.com/palantir/atlasdb/commit/48f4bc2f47016ae7e3840f8167909effcd48e8e8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/48f4bc2f47016ae7e3840f8167909effcd48e8e8/commentsj }(login
Sam-KrameridJ^2_ j~ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j~ MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j| (5a07e2462e19aee5b13cc1d65dd3c6871747c97dj ^https://api.github.com/repos/palantir/atlasdb/commits/5a07e2462e19aee5b13cc1d65dd3c6871747c97dj Shttps://github.com/palantir/atlasdb/commit/5a07e2462e19aee5b13cc1d65dd3c6871747c97duastats}(totalM>	additionsM=	deletionsKufiles](}(j| (cc2606be2718203fb80a545f95628e784153ad8ffilenamehatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/TableConfiguration.javastatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/48f4bc2f47016ae7e3840f8167909effcd48e8e8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.javaraw_urlhttps://github.com/palantir/atlasdb/raw/48f4bc2f47016ae7e3840f8167909effcd48e8e8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.java?ref=48f4bc2f47016ae7e3840f8167909effcd48e8e8patchXs  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.workload.store.IsolationLevel;
@@ -25,7 +26,9 @@
 @JsonSerialize(as = ImmutableTableConfiguration.class)
 @JsonDeserialize(as = ImmutableTableConfiguration.class)
 public interface TableConfiguration {
+    @JsonProperty("table-name")
     String tableName();
 
+    @JsonProperty("isolation-level")
     IsolationLevel isolationLevel();
 }u}(j| (6c0c6f09bf7601bbb84e694fa8220291599e31eaj katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowConfiguration.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/48f4bc2f47016ae7e3840f8167909effcd48e8e8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/48f4bc2f47016ae7e3840f8167909effcd48e8e8/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.java?ref=48f4bc2f47016ae7e3840f8167909effcd48e8e8j Xe  @@ -16,9 +16,12 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.annotation.JsonTypeInfo;
 
 @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
 public interface WorkflowConfiguration {
+
+    @JsonProperty("iteration-count")
     int iterationCount();
 }u}(j| (57806c33957fc6f2eea095273614e7facdbe7c1ej 1atlasdb-workload-server-distribution/build.gradlej addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/48f4bc2f47016ae7e3840f8167909effcd48e8e8/atlasdb-workload-server-distribution%2Fbuild.gradlej https://github.com/palantir/atlasdb/raw/48f4bc2f47016ae7e3840f8167909effcd48e8e8/atlasdb-workload-server-distribution%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=48f4bc2f47016ae7e3840f8167909effcd48e8e8j X5  @@ -0,0 +1,29 @@
+apply from: "../gradle/shared.gradle"
+
+dependencies {
+    implementation 'com.fasterxml.jackson.core:jackson-annotations'
+    implementation 'com.fasterxml.jackson.core:jackson-core'
+    implementation 'com.fasterxml.jackson.core:jackson-databind'
+    implementation 'io.dropwizard.metrics:metrics-core'
+    implementation 'io.dropwizard:dropwizard-core'
+    implementation 'io.dropwizard:dropwizard-http2'
+    implementation 'io.dropwizard:dropwizard-jackson'
+    implementation 'io.dropwizard:dropwizard-jersey'
+    implementation 'io.dropwizard:dropwizard-lifecycle'
+    implementation 'io.dropwizard:dropwizard-logging'
+    implementation 'io.dropwizard:dropwizard-request-logging'
+    implementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
+    implementation 'com.palantir.conjure.java.runtime:conjure-java-jersey-server'
+    implementation 'com.google.guava:guava'
+
+    implementation project(':atlasdb-config')
+    implementation project(':atlasdb-workload-server')
+    implementation project(':atlasdb-client')
+
+    api project(':atlasdb-workload-server-api')
+
+    testImplementation 'io.dropwizard:dropwizard-testing'
+
+    compileOnly 'org.immutables:value::annotations'
+    annotationProcessor 'org.immutables:value'
+}
\ No newline at end of fileu}(j| (923fa6bb06d45e977022b53d1f6904c4b3ffa9b1j latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj addedj Klj K j Klj https://github.com/palantir/atlasdb/blob/48f4bc2f47016ae7e3840f8167909effcd48e8e8/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://github.com/palantir/atlasdb/raw/48f4bc2f47016ae7e3840f8167909effcd48e8e8/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=48f4bc2f47016ae7e3840f8167909effcd48e8e8j X6  @@ -0,0 +1,108 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload;
+
+import com.codahale.metrics.MetricRegistry;
+import com.codahale.metrics.SharedMetricRegistries;
+import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
+import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.util.MetricsManager;
+import com.palantir.atlasdb.util.MetricsManagers;
+import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
+import com.palantir.atlasdb.workload.invariant.DurableWritesMetricInvariantReporter;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.workflow.RunOnceWorkflowRunner;
+import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
+import com.palantir.conjure.java.api.config.service.UserAgent;
+import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.refreshable.Refreshable;
+import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
+import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
+import io.dropwizard.Application;
+import io.dropwizard.jackson.DiscoverableSubtypeResolver;
+import io.dropwizard.setup.Bootstrap;
+import io.dropwizard.setup.Environment;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.concurrent.ExecutorService;
+
+public class WorkloadServerLauncher extends Application<WorkloadServerConfiguration> {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(WorkloadServerLauncher.class);
+    private static final UserAgent USER_AGENT = UserAgent.of(Agent.of("AtlasDbWorkloadServer", "0.0.0"));
+
+    private final TaggedMetricRegistry taggedMetricRegistry = new DefaultTaggedMetricRegistry();
+
+    public static void main(String[] args) throws Exception {
+        new WorkloadServerLauncher().run(args);
+    }
+
+    @Override
+    public void initialize(Bootstrap<WorkloadServerConfiguration> bootstrap) {
+        MetricRegistry metricRegistry = SharedMetricRegistries.getOrCreate("AtlasDbWorkLoadServer");
+        bootstrap.setMetricRegistry(metricRegistry);
+        bootstrap.setObjectMapper(ObjectMappers.newServerObjectMapper());
+        bootstrap.getObjectMapper().setSubtypeResolver(new DiscoverableSubtypeResolver());
+        bootstrap.getObjectMapper().registerModule(new Jdk8Module());
+        super.initialize(bootstrap);
+    }
+
+    @Override
+    public void run(WorkloadServerConfiguration configuration, Environment environment) {
+        environment.getObjectMapper().registerModule(new Jdk8Module()).registerModule(new JavaTimeModule());
+
+        ExecutorService singleRowTwoCellsExecutorService = environment
+                .lifecycle()
+                .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
+                .build();
+        MetricsManager metricsManager = MetricsManagers.of(environment.metrics(), taggedMetricRegistry);
+        AtlasDbTransactionStoreFactory transactionStoreFactory = AtlasDbTransactionStoreFactory.createFromConfig(
+                configuration.install().atlas(),
+                Refreshable.only(configuration.runtime().atlas()),
+                USER_AGENT,
+                metricsManager);
+        SingleRowTwoCellsWorkflowConfiguration workflowConfig =
+                configuration.install().singleRowTwoCellsConfig();
+
+        log.info("antithesis: start_faults");
+        RunOnceWorkflowRunner.INSTANCE.run(
+                SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
+                        transactionStoreFactory.create(
+                                Map.of(
+                                        workflowConfig.tableConfiguration().tableName(),
+                                        workflowConfig.tableConfiguration().isolationLevel()),
+                                Set.of()),
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)),
+                List.of(new DurableWritesMetricInvariantReporter(
+                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry))));
+        log.info("antithesis: terminate");
+    }
+
+    @VisibleForTesting
+    TaggedMetricRegistry getTaggedMetricRegistry() {
+        return taggedMetricRegistry;
+    }
+}u}(j| (655b2984713096f58ef552b3e999b0c467a73c48j xatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerConfiguration.javaj addedj K)j K j K)j https://github.com/palantir/atlasdb/blob/48f4bc2f47016ae7e3840f8167909effcd48e8e8/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerConfiguration.javaj https://github.com/palantir/atlasdb/raw/48f4bc2f47016ae7e3840f8167909effcd48e8e8/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerConfiguration.java?ref=48f4bc2f47016ae7e3840f8167909effcd48e8e8j X  @@ -0,0 +1,41 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.config;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.dropwizard.Configuration;
+
+public class WorkloadServerConfiguration extends Configuration {
+
+    private final WorkloadServerRuntimeConfiguration runtime;
+    private final WorkloadServerInstallConfiguration install;
+
+    public WorkloadServerConfiguration(
+            @JsonProperty(value = "install", required = true) WorkloadServerInstallConfiguration install,
+            @JsonProperty(value = "runtime", required = true) WorkloadServerRuntimeConfiguration runtime) {
+        this.install = install;
+        this.runtime = runtime;
+    }
+
+    public WorkloadServerRuntimeConfiguration runtime() {
+        return runtime;
+    }
+
+    public WorkloadServerInstallConfiguration install() {
+        return install;
+    }
+}u}(j| (0c447faab6b08116a8479508592e151244de0ed4j atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj addedj K$j K j K$j https://github.com/palantir/atlasdb/blob/48f4bc2f47016ae7e3840f8167909effcd48e8e8/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://github.com/palantir/atlasdb/raw/48f4bc2f47016ae7e3840f8167909effcd48e8e8/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=48f4bc2f47016ae7e3840f8167909effcd48e8e8j X  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.config;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import org.immutables.value.Value;
+
+@JsonDeserialize(as = ImmutableWorkloadServerInstallConfiguration.class)
+@JsonSerialize(as = ImmutableWorkloadServerInstallConfiguration.class)
+@Value.Immutable
+public interface WorkloadServerInstallConfiguration {
+
+    @JsonProperty("atlas")
+    AtlasDbConfig atlas();
+
+    @JsonProperty("single-row-two-cells-config")
+    SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig();
+}u}(j| (2824c644dc8df565316087e7978c2a1b336f0bf9j atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerRuntimeConfiguration.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/48f4bc2f47016ae7e3840f8167909effcd48e8e8/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerRuntimeConfiguration.javaj https://github.com/palantir/atlasdb/raw/48f4bc2f47016ae7e3840f8167909effcd48e8e8/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerRuntimeConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerRuntimeConfiguration.java?ref=48f4bc2f47016ae7e3840f8167909effcd48e8e8j X  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.config;
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.palantir.atlasdb.config.AtlasDbRuntimeConfig;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@JsonDeserialize(as = ImmutableWorkloadServerRuntimeConfiguration.class)
+@JsonSerialize(as = ImmutableWorkloadServerRuntimeConfiguration.class)
+@Value.Immutable
+public interface WorkloadServerRuntimeConfiguration {
+    Optional<AtlasDbRuntimeConfig> atlas();
+}u}(j| (8ac8b6733c8ca7339c25db246b7447bec7c4b291j patlasdb-workload-server-distribution/src/test/java/com/palantir/atlasdb/workload/WorkloadServerLauncherTest.javaj addedj K2j K j K2j https://github.com/palantir/atlasdb/blob/48f4bc2f47016ae7e3840f8167909effcd48e8e8/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncherTest.javaj https://github.com/palantir/atlasdb/raw/48f4bc2f47016ae7e3840f8167909effcd48e8e8/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncherTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncherTest.java?ref=48f4bc2f47016ae7e3840f8167909effcd48e8e8j X  @@ -0,0 +1,50 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.codahale.metrics.Timer;
+import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
+import com.palantir.tritium.metrics.registry.MetricName;
+import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
+import io.dropwizard.testing.ResourceHelpers;
+import io.dropwizard.testing.junit.DropwizardAppRule;
+import java.util.Map;
+import org.junit.ClassRule;
+import org.junit.Test;
+
+public class WorkloadServerLauncherTest {
+    @ClassRule
+    public static final DropwizardAppRule<WorkloadServerConfiguration> RULE = new DropwizardAppRule<>(
+            WorkloadServerLauncher.class, ResourceHelpers.resourceFilePath("workload-server.yml"));
+
+    @Test
+    public void runsWorkflow() {
+        TaggedMetricRegistry metricRegistry =
+                ((WorkloadServerLauncher) RULE.getApplication()).getTaggedMetricRegistry();
+        MetricName metricName = MetricName.builder()
+                .safeName("com.palantir.atlasdb.keyvalue.api.KeyValueService.get")
+                .safeTags(Map.of("libraryOrigin", "atlasdb"))
+                .build();
+        Timer kvsGetMetric = (Timer) metricRegistry.getMetrics().get(metricName);
+        assertThat(kvsGetMetric.getCount())
+                .as("Count of KeyValueService get calls should be greater than zero,"
+                        + "as a workflow should have been executed")
+                .isGreaterThan(0);
+    }
+}u}(j| (8889bb2617baf7f3a5d587f5e23427cbd21b7f85j Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/48f4bc2f47016ae7e3840f8167909effcd48e8e8/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/48f4bc2f47016ae7e3840f8167909effcd48e8e8/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=48f4bc2f47016ae7e3840f8167909effcd48e8e8j XD  @@ -0,0 +1,12 @@
+runtime: {}
+install:
+  atlas:
+    namespace: test
+    keyValueService:
+      type: memory
+  single-row-two-cells-config:
+    table-configuration:
+      table-name: two-cells-test
+      isolation-level: SERIALIZABLE
+    iteration-count: 100
+    type: singleRowTwoCells
\ No newline at end of fileu}(j| (4c9581d9d562069b64b94059ad69f59f283ec30cj xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/48f4bc2f47016ae7e3840f8167909effcd48e8e8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/48f4bc2f47016ae7e3840f8167909effcd48e8e8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=48f4bc2f47016ae7e3840f8167909effcd48e8e8j XJ  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.annotation.JsonTypeName;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
@@ -27,10 +28,12 @@
 @JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
 @JsonTypeName(SingleRowTwoCellsWorkflowConfiguration.TYPE)
 public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfiguration {
-    String TYPE = "SINGLE_ROW_TWO_CELLS";
+    String TYPE = "singleRowTwoCells";
 
+    @JsonProperty("table-configuration")
     TableConfiguration tableConfiguration();
 
+    @JsonProperty("rate-limit")
     @Value.Default
     default double rateLimit() {
         return 100;u}(j| (386cf16ebb6be475023b0b5ad84883a9519f290dj settings.gradlej modifiedj Kj K j Kj ahttps://github.com/palantir/atlasdb/blob/48f4bc2f47016ae7e3840f8167909effcd48e8e8/settings.gradlej `https://github.com/palantir/atlasdb/raw/48f4bc2f47016ae7e3840f8167909effcd48e8e8/settings.gradlej shttps://api.github.com/repos/palantir/atlasdb/contents/settings.gradle?ref=48f4bc2f47016ae7e3840f8167909effcd48e8e8j X  @@ -31,6 +31,7 @@ include ":atlasdb-service"
 include ":atlasdb-tests-shared"
 include ":atlasdb-workload-server"
 include ":atlasdb-workload-server-api"
+include ":atlasdb-workload-server-distribution"
 include ":commons-annotations"
 include ":commons-api"
 include ":commons-db"ueu(6a5b77cf2be59e34059678835c5f4ce6f8e84a9c}(sha(6a5b77cf2be59e34059678835c5f4ce6f8e84a9cnode_idEC_kwDOAjP5fdoAKDZhNWI3N2NmMmJlNTllMzQwNTk2Nzg4MzVjNWY0Y2U2ZjhlODRhOWMcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-16T13:09:02Zu	committer}(jI 	Tom PapkejK tpapke@palantir.comjM 2023-06-16T13:09:02Zumessage/Update log messages

Make suitable fields finaltree}(jA (a1eae1bdc9a71744c110931df525c0660f6170e4url`https://api.github.com/repos/palantir/atlasdb/git/trees/a1eae1bdc9a71744c110931df525c0660f6170e4ujY bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6a5b77cf2be59e34059678835c5f4ce6f8e84a9c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSMXu8ACgkQmF9s0kaF
Iw25hAgAt7mHoIzFP3QJPcwB0JWQdbZw17T40QWF6zm0uVi/HMp7eyqMjm8nU5gT
yjy1g9+k+DxVAJbSsTBVXUR8LNzLa4K4vs/3CJs7c5m9XuNy0TjCLbcCFJB76Spz
G7rHQtOLjSwRVCycvkHy0Y4lCSVSZ/8bIJBZ7RU0of6RftRIoShvDwuCk4rRpiE+
wUZF/mNLcdM+hBfrSboPOhd/rvgiQBrNicQNAPYLS8k/eH0QApbQJwxpqRjK0Si3
tO8zuEjPWTR0rHqSPsj3sZbN2dW4cpfETnjyYLLA5tF2jNNLWsR6eZfgliwSMrRy
JM1QPDhHMZN1yJNBTQWkqUwdQwt3pw==
=kIwg
-----END PGP SIGNATURE-----payloadX  tree a1eae1bdc9a71744c110931df525c0660f6170e4
parent 5fff27f9738a90b791fa10c302adb43339ca28ee
author Tom Papke <tpapke@palantir.com> 1686920942 +0100
committer Tom Papke <tpapke@palantir.com> 1686920942 +0100

Update log messages

Make suitable fields final
uujY ^https://api.github.com/repos/palantir/atlasdb/commits/6a5b77cf2be59e34059678835c5f4ce6f8e84a9chtml_urlShttps://github.com/palantir/atlasdb/commit/6a5b77cf2be59e34059678835c5f4ce6f8e84a9ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6a5b77cf2be59e34059678835c5f4ce6f8e84a9c/commentsjG }(login	ToemmscheidJbojC MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jY &https://api.github.com/users/Toemmschejg https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujO }(jl 	Toemmschejn JbojC MDQ6VXNlcjQzNjc1NDkwjp 4https://avatars.githubusercontent.com/u/43675490?v=4jr h5jY &https://api.github.com/users/Toemmschejg https://github.com/Toemmscheju 0https://api.github.com/users/Toemmsche/followersjw =https://api.github.com/users/Toemmsche/following{/other_user}jy 6https://api.github.com/users/Toemmsche/gists{/gist_id}j{ =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j} 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(jA (5fff27f9738a90b791fa10c302adb43339ca28eejY ^https://api.github.com/repos/palantir/atlasdb/commits/5fff27f9738a90b791fa10c302adb43339ca28eejg Shttps://github.com/palantir/atlasdb/commit/5fff27f9738a90b791fa10c302adb43339ca28eeuastats}(totalK	additionsK	deletionsKufiles]}(jA (0545749dfadc39c3fe0bf864f6e2d942f0453e55filenameQlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/6a5b77cf2be59e34059678835c5f4ce6f8e84a9c/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6a5b77cf2be59e34059678835c5f4ce6f8e84a9c/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=6a5b77cf2be59e34059678835c5f4ce6f8e84a9cpatchXi  @@ -45,13 +45,13 @@
 
 public class LockThreadInfoSnapshotManager implements AutoCloseable {
     private static final SafeLogger log = SafeLoggerFactory.get(LockThreadInfoSnapshotManager.class);
-    private Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration;
+    private final Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration;
 
-    private Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
+    private final Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
 
     private volatile Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot = ImmutableMap.of();
 
-    private ScheduledExecutorService scheduledExecutorService = PTExecutors.newSingleThreadScheduledExecutor();
+    private final ScheduledExecutorService scheduledExecutorService = PTExecutors.newSingleThreadScheduledExecutor();
 
     private Optional<Disposable> disposable;
 
@@ -82,9 +82,11 @@ public synchronized void start() {
     private void run() {
         takeSnapshot();
         log.info(
-                "Took lock thread info snapshot of size {}. Next snapshot due in {}",
+                "Took thread info snapshot of {} locks. Next snapshot due in {}ms",
                 SafeArg.of("snapshotSize", lastKnownThreadInfoSnapshot.size()),
-                SafeArg.of("snapshotInterval", threadInfoConfiguration.current().threadInfoSnapshotIntervalMillis()));
+                SafeArg.of(
+                        "snapshotIntervalMillis",
+                        threadInfoConfiguration.current().threadInfoSnapshotIntervalMillis()));
         scheduleRun();
     }
 
@@ -102,7 +104,7 @@ private synchronized void scheduleRun() {
                 log.info(
                         "Starting to take lock thread info snapshots in the background",
                         SafeArg.of(
-                                "snapshotInterval",
+                                "snapshotIntervalMillis",
                                 threadInfoConfiguration.current().threadInfoSnapshotIntervalMillis()));
                 isRunning = true;
             }uau(f430cc13539b95dcdb3f07e056a234feb971c750}(sha(f430cc13539b95dcdb3f07e056a234feb971c750node_idEC_kwDOAjP5fdoAKGY0MzBjYzEzNTM5Yjk1ZGNkYjNmMDdlMDU2YTIzNGZlYjk3MWM3NTAcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-19T14:32:31Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-06-19T15:20:12Zumessage
Add unit testtree}(j (03d67f69a84cb8c217b3672bda299b44de270a08url`https://api.github.com/repos/palantir/atlasdb/git/trees/03d67f69a84cb8c217b3672bda299b44de270a08uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f430cc13539b95dcdb3f07e056a234feb971c750
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSQci4ACgkQmPPOpKR4
XS1w+gf/T6wQTznoHBD/qJfww81J05VJXI3f4rqkMnjreNt3/PWZe8XgDq5qdPTr
JwtYM3IcrYt0QOq6jK8dbl/CS2ld0xjr9JM6KHgajJgBsNT+aN6MHZSayJ0AVmUT
JSHn+KeCp0cvx6PBsd2CfFMcTJYGOAPkk4+skffEtAgVC2O0URaSnStgWYQ6F3oh
z2spqD5tr4m96PFWmRk7g6/5EOlMhiY/XEhtTnapMDGjUaXaWgHEm2k0Y6FAT6Qf
W+GbWmeJfc6UwSM1qa5+hu2v7gkSc6OSd38Cwi+nMNACh8C7gFAA8lQa4Hzw6EDU
thJgEjR4G0KqwQfV4OxYblm6GwGTdA==
=PBsD
-----END PGP SIGNATURE-----payloadtree 03d67f69a84cb8c217b3672bda299b44de270a08
parent 322d411dda306a37227fef474f81edf205aa7f0b
author Sam Kramer <skramer@palantir.com> 1687185151 +0100
committer Sam Kramer <skramer@palantir.com> 1687188012 +0100

Add unit test
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/f430cc13539b95dcdb3f07e056a234feb971c750html_urlShttps://github.com/palantir/atlasdb/commit/f430cc13539b95dcdb3f07e056a234feb971c750comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f430cc13539b95dcdb3f07e056a234feb971c750/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj  uparents]}(j (322d411dda306a37227fef474f81edf205aa7f0bj ^https://api.github.com/repos/palantir/atlasdb/commits/322d411dda306a37227fef474f81edf205aa7f0bj Shttps://github.com/palantir/atlasdb/commit/322d411dda306a37227fef474f81edf205aa7f0buastats}(totalK%	additionsK"	deletionsKufiles](}(j (4db07012d981499aa3d9ff132af786f890afa848filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/f430cc13539b95dcdb3f07e056a234feb971c750/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f430cc13539b95dcdb3f07e056a234feb971c750/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=f430cc13539b95dcdb3f07e056a234feb971c750patchX  @@ -210,7 +210,8 @@ public class SnapshotTransaction extends AbstractTransaction
     private static final int BATCH_SIZE_GET_FIRST_PAGE = 1000;
     private static final long TXN_LENGTH_THRESHOLD = Duration.ofMinutes(30).toMillis();
 
-    private static final int MAX_POST_FILTERING_ITERATIONS = 100_000;
+    @VisibleForTesting
+    static final int MAX_POST_FILTERING_ITERATIONS = 200;
 
     @VisibleForTesting
     static final int MIN_BATCH_SIZE_FOR_DISTRIBUTED_LOAD = 100;
@@ -1489,7 +1490,7 @@ private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilterin
                                 asyncKeyValueService,
                                 asyncTransactionService));
                         Preconditions.checkState(
-                                iterations++ < MAX_POST_FILTERING_ITERATIONS,
+                                ++iterations < MAX_POST_FILTERING_ITERATIONS,
                                 "Unable to filter cells to find correct result after "
                                         + "reaching max iterations. This is likely due to aborted cells lying around,"
                                         + " or in the very rare case, could be due to transactions which constantly "
@@ -1600,6 +1601,7 @@ private <T> ListenableFuture<Map<Cell, Value>> getWithPostFilteringInternal(
             AsyncTransactionService asyncTransactionService) {
         Set<Cell> orphanedSentinels = findOrphanedSweepSentinels(tableRef, rawResults);
         Set<Long> valuesStartTimestamps = getStartTimestampsForValues(rawResults.values());
+
         return Futures.transformAsync(
                 getCommitTimestamps(tableRef, valuesStartTimestamps, true, asyncTransactionService),
                 commitTimestamps -> collectCellsToPostFilter(u}(j (ef7779298d5f6344934683a252d149fdfd3375f8j  Latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/AtlasDbTestCase.javaj" modifiedj Kj K j$ Kj% https://github.com/palantir/atlasdb/blob/f430cc13539b95dcdb3f07e056a234feb971c750/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javaj' https://github.com/palantir/atlasdb/raw/f430cc13539b95dcdb3f07e056a234feb971c750/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javaj) https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.java?ref=f430cc13539b95dcdb3f07e056a234feb971c750j+ X  @@ -77,11 +77,16 @@ public class AtlasDbTestCase {
 
     protected TransactionKnowledgeComponents knowledge;
 
+    protected ExecutorService deleteExecutor;
+
     @Rule
     public InMemoryTimeLockRule inMemoryTimeLockRule = new InMemoryTimeLockRule(CLIENT);
 
+    // Needed for preventing runnables from being executed by an executor service
+    @SuppressWarnings("DoNotMock")
     @Before
     public void setUp() throws Exception {
+        deleteExecutor = spy(MoreExecutors.newDirectExecutorService());
         lockClient = LockClient.of(CLIENT);
         lockService = inMemoryTimeLockRule.getLockService();
         timelockService = inMemoryTimeLockRule.getLegacyTimelockService();u}(j (a96b4a3dd6dc2817fb96f52dc18295d2b2063eb9j  eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj" modifiedj Kj Kj$ Kj% https://github.com/palantir/atlasdb/blob/f430cc13539b95dcdb3f07e056a234feb971c750/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj' https://github.com/palantir/atlasdb/raw/f430cc13539b95dcdb3f07e056a234feb971c750/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj) https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=f430cc13539b95dcdb3f07e056a234feb971c750j+ XC  @@ -23,6 +23,7 @@
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyLong;
 import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.doNothing;
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.doThrow;
 import static org.mockito.Mockito.mock;
@@ -317,6 +318,8 @@ public void cleanup() {}
     static final TableReference TABLE_SWEPT_THOROUGH_MIGRATION =
             TableReference.createFromFullyQualifiedName("default.table5");
 
+    static final TableReference TABLE_NO_SWEEP = TableReference.createFromFullyQualifiedName("default.table6");
+
     private static final byte[] ROW_FOO = "foo".getBytes(StandardCharsets.UTF_8);
     private static final byte[] ROW_BAR = "bar".getBytes(StandardCharsets.UTF_8);
     private static final byte[] COL_A = "a".getBytes(StandardCharsets.UTF_8);
@@ -347,6 +350,9 @@ public void setUp() throws Exception {
                 TABLE_SWEPT_THOROUGH_MIGRATION,
                 getTableMetadataForSweepStrategy(SweepStrategy.THOROUGH_MIGRATION)
                         .persistToBytes());
+        keyValueService.createTable(
+                TABLE_NO_SWEEP,
+                getTableMetadataForSweepStrategy(SweepStrategy.NOTHING).persistToBytes());
     }
 
     @Override
@@ -361,7 +367,7 @@ protected TestTransactionManager constructTestTransactionManager() {
                 sweepStrategyManager,
                 timestampCache,
                 sweepQueue,
-                MoreExecutors.newDirectExecutorService(),
+                deleteExecutor,
                 transactionWrapper,
                 keyValueServiceWrapper,
                 knowledge);
@@ -2428,6 +2434,24 @@ public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigratio
         assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
     }
 
+    @Test
+    public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
+        // Need to block deleter executor from deleting aborted values to help bloat the row.
+        doNothing().when(deleteExecutor).execute(any());
+
+        for (int idx = 0; idx < SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS; idx++) {
+            try {
+                txManager.runTaskWithConditionThrowOnConflict(ALWAYS_FAILS_CONDITION, (txn, _c) -> {
+                    txn.put(TABLE_NO_SWEEP, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+                    return null;
+                });
+            } catch (TransactionFailedRetriableException _t) {
+            }
+        }
+        assertThatThrownBy(() -> txManager.runTaskThrowOnConflict(txn -> txn.get(TABLE_NO_SWEEP, Set.of(TEST_CELL))))
+                .isInstanceOf(SafeIllegalStateException.class);
+    }
+
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,ueu(f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2}(sha(f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2node_idEC_kwDOAjP5fdoAKGY3YzhlNTNmNDQyZTViYjQyODJhMGQ2YjJhN2JiZThiYTc1ZjFlZjIcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-07T10:53:57Zu	committer}(jG 	Tom PapkejI tpapke@palantir.comjK 2023-06-08T16:27:52ZumessageX  Add asynchronous background task that periodically collects a snapshot of which lock is owned by which client-thread

Add (initial) JMH microbenchmarks for LockServiceImpl to investigate the performance impact of the background task

Add new interface to expose thread info snapshot

Add configuration for thread info collection & snapshotter interval

Add unit tests for thread info snapshot collectiontree}(j? (dfa270d45cfdae72c8afaf09f157c61a1f089bb6url`https://api.github.com/repos/palantir/atlasdb/git/trees/dfa270d45cfdae72c8afaf09f157c61a1f089bb6ujW bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSCAYgACgkQmF9s0kaF
Iw0tSwf/cGuQHISOAHDGFXgaz433q3/QI3kxNUcmX1FVs94utA9pzWjeYyRH1aui
WpQC76qkLvgfDiTsyK+ofModuAAvDATNBBC57UgYze+gKsDPD0mkMrQf821PyUU7
TvAgDGpwtj5wCttc35Ss2nUdHXdAYoSo9pih5Kck43aDVmogo12HGNCHjDt5tVwo
Egebk9o0K5csSPoAoXRyshFtUFnJ1G/9iExftudtlNnj16AlZoPsa18VWkDq53SO
iZdbjS98gbNW8ksjBlmvHm8Szv82swa/fsEwAeE+pVgfEccxGl4vqrQdK746ptcF
9Ac2NnMWfjjdJ5lmrDGaLPFUo/859w==
=nxo0
-----END PGP SIGNATURE-----payloadXf  tree dfa270d45cfdae72c8afaf09f157c61a1f089bb6
parent acdd8b440cf16a635a7163ab8e533e4576073ab9
author Tom Papke <tpapke@palantir.com> 1686135237 +0100
committer Tom Papke <tpapke@palantir.com> 1686241672 +0100

Add asynchronous background task that periodically collects a snapshot of which lock is owned by which client-thread

Add (initial) JMH microbenchmarks for LockServiceImpl to investigate the performance impact of the background task

Add new interface to expose thread info snapshot

Add configuration for thread info collection & snapshotter interval

Add unit tests for thread info snapshot collection
uujW ^https://api.github.com/repos/palantir/atlasdb/commits/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2html_urlShttps://github.com/palantir/atlasdb/commit/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/commentsjE }(login	ToemmscheidJbojA MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jW &https://api.github.com/users/Toemmscheje https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujM }(jj 	Toemmschejl JbojA MDQ6VXNlcjQzNjc1NDkwjn 4https://avatars.githubusercontent.com/u/43675490?v=4jp h5jW &https://api.github.com/users/Toemmscheje https://github.com/Toemmschejs 0https://api.github.com/users/Toemmsche/followersju =https://api.github.com/users/Toemmsche/following{/other_user}jw 6https://api.github.com/users/Toemmsche/gists{/gist_id}jy =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j{ 4https://api.github.com/users/Toemmsche/subscriptionsj} +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_events$     j Userj uparents]}(j? (acdd8b440cf16a635a7163ab8e533e4576073ab9jW ^https://api.github.com/repos/palantir/atlasdb/commits/acdd8b440cf16a635a7163ab8e533e4576073ab9je Shttps://github.com/palantir/atlasdb/commit/acdd8b440cf16a635a7163ab8e533e4576073ab9uastats}(totalM	additionsM	deletionsKufiles](}(j? (d0fc5280ef1d4b2466d0f6986d92aa2a5f4e126ffilenamebuild.gradlestatusmodifiedj Kj K changesKblob_url^https://github.com/palantir/atlasdb/blob/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2patchXG  @@ -26,6 +26,7 @@ buildscript {
         classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'
         classpath 'org.unbroken-dome.gradle-plugins:gradle-testsets-plugin:4.0.0'
         classpath 'com.palantir.gradle.revapi:gradle-revapi:1.7.0'
+        classpath 'me.champeau.jmh:jmh-gradle-plugin:0.6.6'
     }
 }
 u}(j? (f73fce67a52d57edd3af14c9ac2e91615f43740cj Klock-api-objects/src/main/java/com/palantir/lock/ThreadAwareLockClient.javaj addedj K$j K j K$j https://github.com/palantir/atlasdb/blob/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareLockClient.javaj https://github.com/palantir/atlasdb/raw/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareLockClient.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareLockClient.java?ref=f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2j X  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import javax.annotation.Nullable;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ThreadAwareLockClient {
+    @Nullable
+    LockClient client();
+
+    String requestingThread();
+
+    static ImmutableThreadAwareLockClient.Builder builder() {
+        return ImmutableThreadAwareLockClient.builder();
+    }
+
+    static ThreadAwareLockClient of(LockClient client, String requestingThread) {
+        return builder().client(client).requestingThread(requestingThread).build();
+    }
+}u}(j? (ea2bcf8dc255e0bed5d47cf7a3625ab6ddc42777j ?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javaj modifiedj Kj Kj K j https://github.com/palantir/atlasdb/blob/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj https://github.com/palantir/atlasdb/raw/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2j X
  @@ -16,6 +16,7 @@
 package com.palantir.lock;
 
 import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.google.common.base.MoreObjects;
@@ -126,6 +127,27 @@ public long slowLogTriggerMillis() {
         return 10000L;
     }
 
+    /**
+     * Whether the lock server should asynchronously collect information
+     * about which lock is currently owned by which client-thread.
+     */
+    @JsonProperty("collectThreadInfo")
+    @JsonIgnore
+    @Value.Default
+    public boolean collectThreadInfo() {
+        return false;
+    }
+
+    /**
+     * If collection is enabled, returns the interval at which snapshots about the current lock state are created.
+     */
+    @JsonProperty("threadInfoSnapshotInterval")
+    @JsonIgnore
+    @Value.Default
+    public TimeDuration threadInfoSnapshotInterval() {
+        return SimpleTimeDuration.of(5, TimeUnit.SECONDS);
+    }
+
     @Override
     public boolean equals(@Nullable Object obj) {
         if (this == obj) {
@@ -142,7 +164,9 @@ && getRandomBitCount() == other.getRandomBitCount()
                 && Objects.equals(getMaxAllowedClockDrift(), other.getMaxAllowedClockDrift())
                 && Objects.equals(getMaxAllowedBlockingDuration(), other.getMaxAllowedBlockingDuration())
                 && Objects.equals(getMaxNormalLockAge(), other.getMaxNormalLockAge())
-                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout());
+                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout())
+                && collectThreadInfo() == other.collectThreadInfo()
+                && Objects.equals(threadInfoSnapshotInterval(), other.threadInfoSnapshotInterval());
     }
 
     @Override
@@ -155,7 +179,9 @@ public int hashCode() {
                 getMaxNormalLockAge(),
                 getRandomBitCount(),
                 getStuckTransactionTimeout(),
-                slowLogTriggerMillis());
+                slowLogTriggerMillis(),
+                collectThreadInfo(),
+                threadInfoSnapshotInterval());
     }
 
     @Override
@@ -169,6 +195,8 @@ public String toString() {
                 .add("randomBitCount", getRandomBitCount())
                 .add("stuckTransactionTimeout", getStuckTransactionTimeout())
                 .add("slowLogTriggerMillis", slowLogTriggerMillis())
+                .add("collectThreadInfo", collectThreadInfo())
+                .add("threadInfoSnapshotInterval", threadInfoSnapshotInterval())
                 .toString();
     }
 u}(j? (1d7d4aad1b64ff4c79d56e5643e17d4874105fa6j Mlock-api/src/main/java/com/palantir/lock/ThreadAwareCloseableLockService.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareCloseableLockService.javaj https://github.com/palantir/atlasdb/raw/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareCloseableLockService.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareCloseableLockService.java?ref=f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2j X  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import java.util.Map;
+
+public interface ThreadAwareCloseableLockService extends CloseableLockService {
+
+    /**
+     * This is a debugging-only method providing a good-effort guess for the client-threads currently
+     * holding some locks.
+     * This guess may be based on significantly out-of-date information.
+     * Lock descriptors without a mapping (or mapped to null) in the return value are assumed to be free at the moment.
+     */
+    Map<LockDescriptor, ThreadAwareLockClient> getLastKnownThreadInfoSnapshot();
+}u}(j? (af91993fdd3f1b0aae5ac31d34f90f6564ae8023j lock-benchmark/build.gradlej addedj Kj K j Kj ohttps://github.com/palantir/atlasdb/blob/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/lock-benchmark%2Fbuild.gradlej nhttps://github.com/palantir/atlasdb/raw/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/lock-benchmark%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/lock-benchmark%2Fbuild.gradle?ref=f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2j X9  @@ -0,0 +1,17 @@
+apply from: "../gradle/shared.gradle"
+apply plugin: 'me.champeau.jmh'
+
+dependencies {
+    jmhImplementation project(path: ':lock-impl')
+    jmhImplementation project(path: ':lock-api')
+
+    jmhAnnotationProcessor 'org.immutables:value'
+    jmhAnnotationProcessor 'org.openjdk.jmh:jmh-generator-annprocess'
+
+    compileOnly 'org.openjdk.jmh:jmh-generator-annprocess'
+}
+
+tasks.jmhCompileGeneratedClasses {
+    options.annotationProcessorPath = configurations.errorprone
+    options.errorprone.enabled = true
+}
\ No newline at end of fileu}(j? (d6e2ee873a135661fd5e02efeaf6155f30904b19j Jlock-benchmark/src/jmh/java/com/palantir/atlasdb/LockServiceBenchmark.javaj addedj KAj K j KAj https://github.com/palantir/atlasdb/blob/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FLockServiceBenchmark.javaj https://github.com/palantir/atlasdb/raw/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FLockServiceBenchmark.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FLockServiceBenchmark.java?ref=f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2j X	  @@ -0,0 +1,65 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb;
+
+import com.palantir.atlasdb.state.LockServiceBenchmarkState;
+import com.palantir.atlasdb.state.ThreadIndex;
+import com.palantir.lock.LockClient;
+import com.palantir.lock.LockRequest;
+import com.palantir.lock.LockResponse;
+import com.palantir.lock.LockService;
+import org.openjdk.jmh.annotations.Benchmark;
+import org.openjdk.jmh.annotations.BenchmarkMode;
+import org.openjdk.jmh.annotations.Fork;
+import org.openjdk.jmh.annotations.Measurement;
+import org.openjdk.jmh.annotations.Mode;
+import org.openjdk.jmh.annotations.Threads;
+import org.openjdk.jmh.annotations.Warmup;
+
+@SuppressWarnings("checkstyle:HideUtilityClassConstructor")
+@Measurement(iterations = 2)
+@Warmup(iterations = 1)
+@Fork(2)
+public class LockServiceBenchmark {
+
+    @BenchmarkMode(Mode.Throughput)
+    @Benchmark
+    @Threads(4)
+    public int lockSleepUnlockMultiThreaded(LockServiceBenchmarkState state, ThreadIndex threadIndex) {
+        final LockClient client = LockClient.of("Benchmark Client " + threadIndex.getThreadId());
+        final LockService lockService = state.getLockService();
+        final LockRequest lockRequest = state.generateLockRequest();
+        try {
+            // acquire some locks
+            LockResponse lockResponse = lockService.lockWithFullLockResponse(client, lockRequest);
+
+            // pretend we are doing something with them ...
+            if (state.sleepMs > 0) {
+                Thread.sleep(state.sleepMs);
+            }
+
+            // give them back
+            if (lockResponse.getLockRefreshToken() != null) {
+                lockService.unlock(lockResponse.getLockRefreshToken());
+            }
+        } catch (InterruptedException e) {
+            throw new RuntimeException(e);
+        }
+
+        return lockRequest.getLocks().size();
+    }
+}u}(j? (1c84958406b03b423a0072173464c9ca4e9eaaf5j Ulock-benchmark/src/jmh/java/com/palantir/atlasdb/state/LockServiceBenchmarkState.javaj addedj Kzj K j Kzj https://github.com/palantir/atlasdb/blob/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.javaj https://github.com/palantir/atlasdb/raw/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.java?ref=f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2j X  @@ -0,0 +1,122 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.state;
+
+import com.palantir.lock.LockClient;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.LockMode;
+import com.palantir.lock.LockRequest;
+import com.palantir.lock.LockServerOptions;
+import com.palantir.lock.SimpleTimeDuration;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.ThreadAwareCloseableLockService;
+import com.palantir.lock.impl.LockServiceImpl;
+import java.util.List;
+import java.util.Random;
+import java.util.SortedMap;
+import java.util.TreeMap;
+import java.util.concurrent.TimeUnit;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.openjdk.jmh.annotations.Param;
+import org.openjdk.jmh.annotations.Scope;
+import org.openjdk.jmh.annotations.Setup;
+import org.openjdk.jmh.annotations.State;
+
+@State(Scope.Benchmark)
+public class LockServiceBenchmarkState {
+    @Param({"true", "false"})
+    public boolean collectAndLogThreadInfo;
+
+    @Param("20")
+    public int locksPerRequest;
+
+    @Param({"50", "5", "0"})
+    public int sleepMs;
+
+    private Supplier<LockRequest> lockRequestSupplier;
+
+    public Random rand = new Random();
+
+    private ThreadAwareCloseableLockService lockService;
+
+    @Param("1000000")
+    public int numHeldLocksAtBeginning;
+
+    @Param("10000")
+    public int numAvailableLocks;
+
+    private List<LockDescriptor> heldLocksAtBeginning;
+
+    private List<LockDescriptor> availableLocks;
+
+    private LockRequest nonBlocking_asManyAsPossible_randomMode() {
+        SortedMap<LockDescriptor, LockMode> locks = new TreeMap<>();
+        for (int i = 0; i < locksPerRequest; i++) {
+            locks.put(
+                    this.getAvailableLocks()
+                            .get(rand.nextInt(getAvailableLocks().size())),
+                    Math.random() > 0.5 ? LockMode.READ : LockMode.WRITE);
+        }
+        return LockRequest.builder(locks).lockAsManyAsPossible().doNotBlock().build();
+    }
+
+    public void lockExclusively(LockDescriptor lockDescriptor) {
+        SortedMap<LockDescriptor, LockMode> locks = new TreeMap<>();
+        locks.put(lockDescriptor, LockMode.WRITE);
+        LockRequest lockRequest =
+                LockRequest.builder(locks).lockAsManyAsPossible().doNotBlock().build();
+        try {
+            lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest);
+        } catch (InterruptedException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    @Setup
+    public void setup() {
+        this.heldLocksAtBeginning = IntStream.range(0, numHeldLocksAtBeginning)
+                .mapToObj(i -> StringLockDescriptor.of(Integer.toString(i)))
+                .collect(Collectors.toList());
+        this.availableLocks = IntStream.range(0, numAvailableLocks)
+                .mapToObj(i -> StringLockDescriptor.of(Integer.toString(i)))
+                .collect(Collectors.toUnmodifiableList());
+        this.lockRequestSupplier = this::nonBlocking_asManyAsPossible_randomMode;
+        this.lockService = LockServiceImpl.create(LockServerOptions.builder()
+                .collectThreadInfo(collectAndLogThreadInfo)
+                // We want to measure the worst-case scenario where our background task is constantly running
+                .threadInfoSnapshotInterval(SimpleTimeDuration.of(0, TimeUnit.MILLISECONDS))
+                .isStandaloneServer(false)
+                .build());
+        for (LockDescriptor lock : heldLocksAtBeginning) {
+            lockExclusively(lock);
+        }
+    }
+
+    public ThreadAwareCloseableLockService getLockService() {
+        return this.lockService;
+    }
+
+    public List<LockDescriptor> getAvailableLocks() {
+        return this.availableLocks;
+    }
+
+    public LockRequest generateLockRequest() {
+        return this.lockRequestSupplier.get();
+    }
+}u}(j? (e8124e8a312da672e91eac0772ee0b55d5a6f09aj Glock-benchmark/src/jmh/java/com/palantir/atlasdb/state/ThreadIndex.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FThreadIndex.javaj https://github.com/palantir/atlasdb/raw/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FThreadIndex.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FThreadIndex.java?ref=f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2j XN  @@ -0,0 +1,31 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.state;
+
+import java.util.concurrent.atomic.AtomicInteger;
+import org.openjdk.jmh.annotations.Scope;
+import org.openjdk.jmh.annotations.State;
+
+@State(Scope.Thread)
+public class ThreadIndex {
+    private static final AtomicInteger THREAD_INDEX = new AtomicInteger(0);
+    private final int id = THREAD_INDEX.getAndIncrement();
+
+    public int getThreadId() {
+        return this.id;
+    }
+}u}(j? (11798108f5011933229198de0ecd0a9b6b828e68j lock-impl/build.gradlej modifiedj Kj K j Kj jhttps://github.com/palantir/atlasdb/blob/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/lock-impl%2Fbuild.gradlej ihttps://github.com/palantir/atlasdb/raw/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/lock-impl%2Fbuild.gradlej |https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fbuild.gradle?ref=f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2j Xb  @@ -22,6 +22,7 @@ dependencies {
   implementation project(':lock-api-objects')
   implementation project(':timestamp-api')
 
+  testImplementation 'org.awaitility:awaitility'
   testImplementation 'com.fasterxml.jackson.core:jackson-databind'
   testImplementation 'com.google.guava:guava'
   testImplementation 'com.palantir.safe-logging:preconditions'u}(j? (9403b49357feaba89d63278ac9958b746dbfcf0aj Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj modifiedj K]j Kj Kkj https://github.com/palantir/atlasdb/blob/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://github.com/palantir/atlasdb/raw/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2j XF!  @@ -29,6 +29,7 @@
 import com.google.common.collect.Collections2;
 import com.google.common.collect.HashMultimap;
 import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.ImmutableSortedMap;
 import com.google.common.collect.Iterables;
@@ -70,6 +71,8 @@
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.SortedLockCollection;
 import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.ThreadAwareCloseableLockService;
+import com.palantir.lock.ThreadAwareLockClient;
 import com.palantir.lock.TimeDuration;
 import com.palantir.lock.logger.LockServiceStateLogger;
 import com.palantir.logsafe.Safe;
@@ -82,6 +85,7 @@
 import com.palantir.nylon.threads.ThreadNames;
 import com.palantir.util.JMXUtils;
 import com.palantir.util.Ownable;
+import com.palantir.util.Pair;
 import java.math.BigInteger;
 import java.time.Instant;
 import java.util.ArrayDeque;
@@ -104,6 +108,7 @@
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicInteger;
 import java.util.function.Supplier;
+import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 import javax.annotation.concurrent.ThreadSafe;
@@ -117,6 +122,7 @@
 @ThreadSafe
 public final class LockServiceImpl
         implements LockService,
+                ThreadAwareCloseableLockService,
                 CloseableRemoteLockService,
                 CloseableLockService,
                 RemoteLockService,
@@ -140,6 +146,8 @@ public final class LockServiceImpl
     @VisibleForTesting
     static final long DEBUG_SLOW_LOG_TRIGGER_MILLIS = 100;
 
+    public static boolean COLLECT_AND_LOG_THREAD_INFO = true;
+
     @Immutable
     public static class HeldLocks<T extends ExpiringToken> {
         final T realToken;
@@ -181,6 +189,21 @@ public String toString() {
     private final SimpleTimeDuration maxAllowedClockDrift;
     private final SimpleTimeDuration maxNormalLockAge;
     private final SimpleTimeDuration stuckTransactionTimeout;
+
+    /** Whether or not to run a background task that periodically takes snapshot of which lock owned by which client-thread */
+    private final boolean collectThreadInfo;
+
+    /** If enabled, the background this will update the snapshot at this rate */
+    private final SimpleTimeDuration threadInfoSnapshotInterval;
+
+    /** If enabled, the background runner that takes snapshots of the current lock state */
+    private final Optional<ThreadInfoSnapshotRunner> threadInfoSnapshotRunner;
+
+    /**
+     * A relatively consistent snapshot of which lock is currently owned by which client-thread
+     */
+    private volatile Map<LockDescriptor, ThreadAwareLockClient> lastKnownThreadInfoSnapshot = ImmutableMap.of();
+
     private final AtomicBoolean isShutDown = new AtomicBoolean(false);
 
     private final LockClientIndices clientIndices = new LockClientIndices();
@@ -256,6 +279,10 @@ private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable
         this.maxNormalLockAge = SimpleTimeDuration.of(options.getMaxNormalLockAge());
         this.stuckTransactionTimeout = SimpleTimeDuration.of(options.getStuckTransactionTimeout());
         this.slowLogTriggerMillis = options.slowLogTriggerMillis();
+        this.collectThreadInfo = options.collectThreadInfo();
+        this.threadInfoSnapshotInterval = SimpleTimeDuration.of(options.threadInfoSnapshotInterval());
+        this.threadInfoSnapshotRunner =
+                collectThreadInfo ? Optional.of(new ThreadInfoSnapshotRunner(executor)) : Optional.empty();
     }
 
     private HeldLocksToken createHeldLocksToken(
@@ -1227,6 +1254,38 @@ public long currentTimeMillis() {
         return System.currentTimeMillis();
     }
 
+    @Override
+    public Map<LockDescriptor, ThreadAwareLockClient> getLastKnownThreadInfoSnapshot() {
+        return this.lastKnownThreadInfoSnapshot;
+    }
+
+    private void updateThreadInfoSnapshotIndefinitely() {
+        while (true) {
+            updateThreadInfoSnapshot();
+            // For benchmarking purposes, we want to retain the ability to run the background task at full load
+            if (threadInfoSnapshotInterval.toMillis() > 0) {
+                try {
+                    Thread.sleep(threadInfoSnapshotInterval.toMillis());
+                } catch (InterruptedException e) {
+                    break;
+                }
+            }
+        }
+    }
+
+    @VisibleForTesting
+    void updateThreadInfoSnapshot() {
+        this.lastKnownThreadInfoSnapshot = heldLocksTokenMap.keySet().stream()
+                .flatMap(token -> token.getLockDescriptors().stream()
+                        .map(lockDescriptor -> Pair.create(
+                                lockDescriptor,
+                                ThreadAwareLockClient.of(
+                                        MoreObjects.firstNonNull(token.getClient(), INTERNAL_LOCK_GRANT_CLIENT),
+                                        token.getRequestingThread()))))
+                // Although a lock can be held by multiple clients/threads, we only remember one to save space
+                .collect(Collectors.toMap(Pair::getLhSide, Pair::getRhSide, (existing, replacement) -> existing));
+    }
+
     private static String updateThreadName(LockRequest request) {
         String currentThreadName = Thread.currentThread().getName();
         tryRenameThread(
@@ -1246,12 +1305,31 @@ private static String tokenToId(HeldLocksToken from) {
         return from.getTokenId().toString(Character.MAX_RADIX);
     }
 
-    private final class LockReapRunner implements AutoCloseable {
-        private final Ownable<ExecutorService> executor;
-        private final List<Future<?>> taskFutures;
+    private abstract static class LockServiceRunner implements AutoCloseable {
+        protected final Ownable<ExecutorService> executor;
+        protected List<Future<?>> taskFutures;
 
-        private LockReapRunner(Ownable<ExecutorService> executor) {
+        protected LockServiceRunner(Ownable<ExecutorService> executor) {
             this.executor = executor;
+        }
+
+        @Override
+        public void close() {
+            if (executor.isOwned()) {
+                executor.resource().shutdownNow();
+            } else {
+                // Even if we don't own the executor, these ordinarily run infinitely, and so MUST be interrupted.
+                // It's not enough to simply guard each iteration, because there are calls to blocking methods that may
+                // block infinitely if no further requests come in.
+                taskFutures.forEach(future -> future.cancel(true));
+            }
+        }
+    }
+
+    private final class LockReapRunner extends LockServiceRunner {
+
+        private LockReapRunner(Ownable<ExecutorService> executor) {
+            super(executor);
 
             Future<Void> tokenReaperFuture = executor.resource().submit(() -> {
                 ThreadNames.setThreadName(Thread.currentThread(), "Held Locks Token Reaper");
@@ -1265,17 +1343,18 @@ private LockReapRunner(Ownable<ExecutorService> executor) {
             });
             this.taskFutures = ImmutableList.of(tokenReaperFuture, grantReaperFuture);
         }
+    }
 
-        @Override
-        public void close() {
-            if (executor.isOwned()) {
-                executor.resource().shutdownNow();
-            } else {
-                // Even if we don't own the executor, these ordinarily run infinitely, and so MUST be interrupted.
-                // It's not enough to simply guard each iteration, because there are calls to blocking methods that may
-                // block infinitely if no further requests come in.
-                taskFutures.forEach(future -> future.cancel(true));
-            }
+    private final class ThreadInfoSnapshotRunner extends LockServiceRunner {
+        private ThreadInfoSnapshotRunner(Ownable<ExecutorService> executor) {
+            super(executor);
+
+            Future<Void> holdingThreadUpdaterFuture = executor.resource().submit(() -> {
+                ThreadNames.setThreadName(Thread.currentThread(), "Holding Thread Updater");
+                updateThreadInfoSnapshotIndefinitely();
+                return null;
+            });
+            this.taskFutures = ImmutableList.of(holdingThreadUpdaterFuture);
         }
     }
 }u}(j? (90f3f2bf8a4753f9c32b3573d74d519599635940j Rlock-impl/src/test/java/com/palantir/lock/impl/ThreadAwareLockServiceImplTest.javaj addedj Mj K j Mj https://github.com/palantir/atlasdb/blob/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.java?ref=f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2j X03  @@ -0,0 +1,272 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSortedMap;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.lock.LockClient;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.LockMode;
+import com.palantir.lock.LockRequest;
+import com.palantir.lock.LockResponse;
+import com.palantir.lock.LockServerOptions;
+import com.palantir.lock.SimpleTimeDuration;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.ThreadAwareCloseableLockService;
+import com.palantir.lock.ThreadAwareLockClient;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.concurrent.Callable;
+import java.util.concurrent.CyclicBarrier;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.awaitility.Awaitility;
+import org.junit.Test;
+
+public class ThreadAwareLockServiceImplTest {
+
+    // Disable background thread info collection by default, it will be invoked manually instead
+    private final LockServiceImpl lockService = LockServiceImpl.create(LockServerOptions.builder()
+            .isStandaloneServer(false)
+            .collectThreadInfo(false)
+            .build());
+
+    private final ExecutorService executor =
+            PTExecutors.newCachedThreadPool(ThreadAwareLockServiceImplTest.class.getName());
+
+    private static final LockDescriptor TEST_LOCK_1 = StringLockDescriptor.of("lock-1");
+    private static final LockDescriptor TEST_LOCK_2 = StringLockDescriptor.of("lock-2");
+    private static final LockDescriptor TEST_LOCK_3 = StringLockDescriptor.of("lock-3");
+
+    private static final String TEST_THREAD_1 = "thread-1";
+    private static final String TEST_THREAD_2 = "thread-2";
+    private static final String TEST_THREAD_3 = "thread-3";
+
+    private static final LockClient TEST_LOCK_CLIENT = LockClient.ANONYMOUS;
+
+    @Test
+    public void initialSnapShotIsEmpty() {
+        lockService.updateThreadInfoSnapshot();
+        assertThat(lockService.getLastKnownThreadInfoSnapshot()).isEmpty();
+    }
+
+    @Test
+    public void collectsHeldLocks_singleLock() throws InterruptedException {
+        LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+
+        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest);
+        lockService.updateThreadInfoSnapshot();
+
+        assertThat(lockService.getLastKnownThreadInfoSnapshot())
+                .containsExactly(Map.entry(TEST_LOCK_1, ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_1)));
+    }
+
+    @Test
+    public void collectsHeldLocks_multipleUniqueLocks_fromDifferentThreads() throws InterruptedException {
+        final int numThreads = 10;
+        final int numLocksPerThread = 10;
+
+        List<String> threadNames =
+                IntStream.range(0, numThreads).mapToObj(i -> "test-thread-" + i).collect(Collectors.toList());
+        Map<String, List<LockDescriptor>> locksPerThread = new HashMap<>();
+        for (String threadName : threadNames) {
+            List<LockDescriptor> locks = IntStream.range(0, numLocksPerThread)
+                    .mapToObj(i -> StringLockDescriptor.of("test-lock-" + i + "-from-thread-" + threadName))
+                    .collect(Collectors.toList());
+            locksPerThread.put(threadName, locks);
+        }
+
+        for (String threadName : threadNames) {
+            LockRequest lockRequest = LockRequest.builder(
+                            ImmutableSortedMap.copyOf(locksPerThread.get(threadName).stream()
+                                    .collect(Collectors.toMap(lock -> lock, lock -> LockMode.WRITE))))
+                    .withCreatingThreadName(threadName)
+                    .build();
+            lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest);
+        }
+        lockService.updateThreadInfoSnapshot();
+
+        Map<LockDescriptor, ThreadAwareLockClient> expected = locksPerThread.keySet().stream()
+                .flatMap(threadName -> locksPerThread.get(threadName).stream()
+                        .map(lock -> Map.entry(lock, ThreadAwareLockClient.of(TEST_LOCK_CLIENT, threadName))))
+                .collect(Collectors.toMap(Entry::getKey, Entry::getValue));
+        assertThat(lockService.getLastKnownThreadInfoSnapshot()).containsExactlyInAnyOrderEntriesOf(expected);
+    }
+
+    @Test
+    public void collectsHeldLocks_sharedLock_fromDifferentThreads() throws InterruptedException {
+        LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+        LockRequest lockRequest2 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .doNotBlock()
+                .lockAsManyAsPossible()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest1);
+        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest2);
+        lockService.updateThreadInfoSnapshot();
+
+        assertThat(lockService.getLastKnownThreadInfoSnapshot())
+                .hasSize(1)
+                .containsAnyOf(
+                        Map.entry(TEST_LOCK_1, ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_1)),
+                        Map.entry(TEST_LOCK_1, ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_2)));
+    }
+
+    @Test
+    public void doesNotCollectDroppedLocksWithLockAllOrNone() throws InterruptedException {
+        LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+
+        // T2 cannot get lock 1 -> grouping behavior LOCK_ALL_OR_NONE will release lock 2, even though it could have
+        // been locked
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
+                .doNotBlock()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest1);
+        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest2);
+        lockService.updateThreadInfoSnapshot();
+
+        assertThat(lockService.getLastKnownThreadInfoSnapshot())
+                .containsExactly(Map.entry(TEST_LOCK_1, ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_1)));
+    }
+
+    @Test
+    public void doesNotCollectUnlockedLocks() throws InterruptedException {
+        LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+
+        LockResponse response = lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest);
+        lockService.unlock(response.getLockRefreshToken());
+        lockService.updateThreadInfoSnapshot();
+
+        assertThat(lockService.getLastKnownThreadInfoSnapshot()).isEmpty();
+    }
+
+    @Test
+    public void doesNotCollectFailedLocks() throws InterruptedException {
+        LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+        LockRequest lockRequest2 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+                .doNotBlock()
+                .lockAsManyAsPossible()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        LockResponse response = lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest1);
+        // should fail to acquire lock
+        lockService.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest2);
+        // After unlocking locks of T1, no more locks should be held by any thread
+        lockService.unlock(response.getLockRefreshToken());
+        lockService.updateThreadInfoSnapshot();
+
+        assertThat(lockService.getLastKnownThreadInfoSnapshot()).isEmpty();
+    }
+
+    @Test
+    public void collectsCorrectStateAfterMultipleOperations() throws Exception {
+        final CyclicBarrier barrier = new CyclicBarrier(2);
+
+        // T1 locks 1 exclusively and locks 2 in shared mode
+        LockResponse response1 = lockService.lockWithFullLockResponse(
+                TEST_LOCK_CLIENT,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_1)
+                        .build());
+
+        // T2 won't get lock 1, but locks 3 in exclusive mode,
+        LockResponse response2 = lockService.lockWithFullLockResponse(
+                TEST_LOCK_CLIENT,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_3, LockMode.WRITE))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_2)
+                        .build());
+
+        executor.submit((Callable<Void>) () -> {
+
+            // T3 will wait 5 seconds to lock 1 in exclusive mode and lock 2 in shared mode
+            LockResponse response3 = lockService.lockWithFullLockResponse(
+                    TEST_LOCK_CLIENT,
+                    LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                            .blockForAtMost(SimpleTimeDuration.of(5, TimeUnit.SECONDS))
+                            .lockAsManyAsPossible()
+                            .withCreatingThreadName(TEST_THREAD_3)
+                            .build());
+            barrier.await();
+            return null;
+        });
+        lockService.unlock(response1.getLockRefreshToken());
+        barrier.await();
+
+        lockService.updateThreadInfoSnapshot();
+
+        // Now T1 should hold nothing, T2 holds 3 in exclusive mode, T3 holds 1 in exclusive and 2 in shared mode
+        Map<LockDescriptor, ThreadAwareLockClient> expected = ImmutableMap.of(
+                TEST_LOCK_1,
+                ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_3),
+                TEST_LOCK_2,
+                ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_3),
+                TEST_LOCK_3,
+                ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_2));
+
+        assertThat(lockService.getLastKnownThreadInfoSnapshot()).containsExactlyInAnyOrderEntriesOf(expected);
+    }
+
+    @Test
+    public void backgroundCollectionWorks() throws InterruptedException {
+        final ThreadAwareCloseableLockService lockWithServiceWithBackgroundRunner =
+                LockServiceImpl.create(LockServerOptions.builder()
+                        .isStandaloneServer(false)
+                        .collectThreadInfo(true)
+                        .threadInfoSnapshotInterval(SimpleTimeDuration.of(100, TimeUnit.MILLISECONDS))
+                        .build());
+
+        LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+
+        lockWithServiceWithBackgroundRunner.lockWithFullLockResponse(TEST_LOCK_CLIENT, lockRequest);
+
+        Awaitility.await("wait for background runner to take a snapshot")
+                .atMost(500, TimeUnit.MILLISECONDS)
+                .untilAsserted(() -> {
+                    assertThat(lockWithServiceWithBackgroundRunner.getLastKnownThreadInfoSnapshot())
+                            .containsExactly(
+                                    Map.entry(TEST_LOCK_1, ThreadAwareLockClient.of(TEST_LOCK_CLIENT, TEST_THREAD_1)));
+                });
+    }
+}u}(j? (64532f4aa46d1ff81f1c4b7559611549c717d445j settings.gradlej modifiedj Kj K j Kj ahttps://github.com/palantir/atlasdb/blob/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/settings.gradlej `https://github.com/palantir/atlasdb/raw/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/settings.gradlej shttps://api.github.com/repos/palantir/atlasdb/contents/settings.gradle?ref=f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2j X  @@ -54,6 +54,7 @@ include ":leader-election-api-protobufs"
 include ":leader-election-impl"
 include ":lock-api"
 include ":lock-api-objects"
+include ":lock-benchmark"
 include ":lock-conjure-api"
 include ":lock-conjure-api:lock-conjure-api-undertow"
 include ":lock-conjure-api:lock-conjure-api-jersey"
@@ -94,3 +95,4 @@ gradleEnterprise {
         uploadInBackground = !isCiServer
     }
 }
+u}(j? (a49c2ee3037ee4e2a3c1dcc34a940588aee318aaj btimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockService.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj https://github.com/palantir/atlasdb/raw/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.java?ref=f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2j XI  @@ -32,6 +32,7 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.LockState;
 import com.palantir.lock.SimpleHeldLocksToken;
+import com.palantir.lock.ThreadAwareCloseableLockService;
 import com.palantir.lock.remoting.BlockingTimeoutException;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
@@ -51,20 +52,20 @@
 public class BlockingTimeLimitedLockService implements CloseableLockService {
     private static final SafeLogger log = SafeLoggerFactory.get(BlockingTimeLimitedLockService.class);
 
-    private final CloseableLockService delegate;
+    private final ThreadAwareCloseableLockService delegate;
     private final TimeLimiter timeLimiter;
     private final long blockingTimeLimitMillis;
 
     @VisibleForTesting
     BlockingTimeLimitedLockService(
-            CloseableLockService delegate, TimeLimiter timeLimiter, long blockingTimeLimitMillis) {
+            ThreadAwareCloseableLockService delegate, TimeLimiter timeLimiter, long blockingTimeLimitMillis) {
         this.delegate = delegate;
         this.timeLimiter = timeLimiter;
         this.blockingTimeLimitMillis = blockingTimeLimitMillis;
     }
 
     public static BlockingTimeLimitedLockService create(
-            CloseableLockService lockService, long blockingTimeLimitMillis) {
+            ThreadAwareCloseableLockService lockService, long blockingTimeLimitMillis) {
         // TODO (jkong): Inject the executor to allow application lifecycle managed executors.
         // Currently maintaining existing behaviour.
         return new BlockingTimeLimitedLockService(u}(j? (8cd6e4705eee8add4f67aa3e76f12f21071bd0c6j ftimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockServiceTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.javaj https://github.com/palantir/atlasdb/raw/f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.java?ref=f7c8e53f442e5bb4282a0d6b2a7bbe8ba75f1ef2j X  @@ -28,11 +28,11 @@
 import com.google.common.util.concurrent.FakeTimeLimiter;
 import com.google.common.util.concurrent.TimeLimiter;
 import com.google.common.util.concurrent.UncheckedExecutionException;
-import com.palantir.lock.CloseableLockService;
 import com.palantir.lock.LockClient;
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.ThreadAwareCloseableLockService;
 import com.palantir.lock.remoting.BlockingTimeoutException;
 import java.io.IOException;
 import java.util.concurrent.ExecutionException;
@@ -55,7 +55,7 @@ public class BlockingTimeLimitedLockServiceTest {
     private final TimeLimiter uncheckedThrowingLimiter = mock(TimeLimiter.class);
     private final TimeLimiter checkedThrowingLimiter = mock(TimeLimiter.class);
 
-    private final CloseableLockService delegate = mock(CloseableLockService.class);
+    private final ThreadAwareCloseableLockService delegate = mock(ThreadAwareCloseableLockService.class);
 
     private final BlockingTimeLimitedLockService acceptingService = createService(acceptingLimiter);
     private final BlockingTimeLimitedLockService timingOutService = createService(timingOutLimiter);ueu(0afb522e66943a9e2139218e23ad4c7a39bf1f54}(sha(0afb522e66943a9e2139218e23ad4c7a39bf1f54node_idEC_kwDOAjP5fdoAKDBhZmI1MjJlNjY5NDNhOWUyMTM5MjE4ZTIzYWQ0YzdhMzliZjFmNTQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-06T09:18:02Zu	committer}(j& 
Sam Kramerj( skramer@palantir.comj* 2023-04-06T09:18:02Zumessagecheck if var existstree}(j (36bb4f1f90594f186a699ed3e0b840e6d7676367url`https://api.github.com/repos/palantir/atlasdb/git/trees/36bb4f1f90594f186a699ed3e0b840e6d7676367uj6 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0afb522e66943a9e2139218e23ad4c7a39bf1f54
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQujkoACgkQmPPOpKR4
XS3ZrQf/cXQciHGT9LPEGgmZeNK9VLNKrwishLxgORuGJ1TDhLy63UPl/6BgmR1T
m9yxuzR4kSujFeeZ3mE5GppJEsqFIRVfzkUQUlmarCS5IOfManzB6iYPhLtTnON7
SiCvnLPLdz/UGY5W7ctoKS7jucMysG+oWa1BQaLWVvQSfJcLw63TjtoE8wkIetzp
tAi65AR6vZLA9SyTFhhYfoUB4quh9NQNMC3loc0idhiunmO8uCEQZaDxZLEOjfHd
/nFCke5N90GjpDF+Ez3BU5W9VSnQLiUUNga4BwzX41XTOOLWPMjHYrfXv4WoRAgN
d8Crqu6zOyRzbY+SksJx3GXLalb6Ew==
=yeMN
-----END PGP SIGNATURE-----payloadtree 36bb4f1f90594f186a699ed3e0b840e6d7676367
parent 157f6ab25629d95e50b6de28f4fa361dd2287687
author Sam Kramer <skramer@palantir.com> 1680772682 +0100
committer Sam Kramer <skramer@palantir.com> 1680772682 +0100

check if var exists
uuj6 ^https://api.github.com/repos/palantir/atlasdb/commits/0afb522e66943a9e2139218e23ad4c7a39bf1f54html_urlShttps://github.com/palantir/atlasdb/commit/0afb522e66943a9e2139218e23ad4c7a39bf1f54comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0afb522e66943a9e2139218e23ad4c7a39bf1f54/commentsj$ }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j6 'https://api.github.com/users/Sam-KramerjD https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj, }(jI 
Sam-KramerjK J^2_ j  MDQ6VXNlcjYyMzg4MTQ=jM 3https://avatars.githubusercontent.com/u/6238814?v=4jO h5j6 'https://api.github.com/users/Sam-KramerjD https://github.com/Sam-KramerjR 1https://api.github.com/users/Sam-Kramer/followersjT >https://api.github.com/users/Sam-Kramer/following{/other_user}jV 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jX >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jZ 5https://api.github.com/users/Sam-Kramer/subscriptionsj\ ,https://api.github.com/users/Sam-Kramer/orgsj^ -https://api.github.com/users/Sam-Kramer/reposj` 8https://api.github.com/users/Sam-Kramer/events{/privacy}jb 7https://api.github.com/users/Sam-Kramer/received_eventsjd Userjf uparents]}(j (157f6ab25629d95e50b6de28f4fa361dd2287687j6 ^https://api.github.com/repos/palantir/atlasdb/commits/157f6ab25629d95e50b6de28f4fa361dd2287687jD Shttps://github.com/palantir/atlasdb/commit/157f6ab25629d95e50b6de28f4fa361dd2287687uastats}(totalK
	additionsK
	deletionsK ufiles]}(j (5278509069ce4b7f363fc0c3f609beea448e74a8filename*scripts/circle-ci/publish-to-antithesis.shstatusmodifiedj K
j K changesK
blob_urlhttps://github.com/palantir/atlasdb/blob/0afb522e66943a9e2139218e23ad4c7a39bf1f54/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shraw_urlhttps://github.com/palantir/atlasdb/raw/0afb522e66943a9e2139218e23ad4c7a39bf1f54/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=0afb522e66943a9e2139218e23ad4c7a39bf1f54patchX  @@ -1,5 +1,15 @@
 #!/bin/bash
 
+if [[ -z "${ANTITHESIS_REPO_URL}" ]]; then
+  echo "Antithesis image repository URL is not set as an environment variable, exiting."
+  exit 1
+fi
+
+if [[ -z "${ANTITHESIS_LOGIN_JSON}" ]]; then
+  echo "Antithesis json key is not set as an environment variable, exiting."
+  exit 1
+fi
+
 printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://${ANTITHESIS_REPO_URL} --password-stdin
 
 ./gradlew dockeruau(aad68bbf9d1e6ef848f56ab9e80bfd77fc09b825}(sha(aad68bbf9d1e6ef848f56ab9e80bfd77fc09b825node_idEC_kwDOAjP5fdoAKGFhZDY4YmJmOWQxZTZlZjg0OGY1NmFiOWU4MGJmZDc3ZmMwOWI4MjUcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-15T23:55:39Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-05-15T23:55:39Zumessage#Autorelease 0.854.0-rc18

[skip ci]tree}(j (929e8e488a6cf542c228e2716640938c4b0379d6url`https://api.github.com/repos/palantir/atlasdb/git/trees/929e8e488a6cf542c228e2716640938c4b0379d6uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/aad68bbf9d1e6ef848f56ab9e80bfd77fc09b825
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRixnwACgkQhbrR8ip7mDA5eQD8C7JKH2oOhLuhn54ZaqG0G+a6
rj/M9OI0oduwhGWZwmAA/1oWZwPOQsZSH44mBoiGkMks9UW5zJRbyqAHQu5rzTbk
=Gel4
-----END PGP SIGNATURE-----
payloadX)  tree 929e8e488a6cf542c228e2716640938c4b0379d6
parent a37cad12389529457ff1b9b6953c94aa74659b03
author aalouane <30903736+ergo14@users.noreply.github.com> 1684194939 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684194939 +0000

Autorelease 0.854.0-rc18

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/aad68bbf9d1e6ef848f56ab9e80bfd77fc09b825html_urlShttps://github.com/palantir/atlasdb/commit/aad68bbf9d1e6ef848f56ab9e80bfd77fc09b825comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/aad68bbf9d1e6ef848f56ab9e80bfd77fc09b825/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(j MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(j (a37cad12389529457ff1b9b6953c94aa74659b03j ^https://api.github.com/repos/palantir/atlasdb/commits/a37cad12389529457ff1b9b6953c94aa74659b03j Shttps://github.com/palantir/atlasdb/commit/a37cad12389529457ff1b9b6953c94aa74659b03uastats}(totalK 	additionsK 	deletionsK ufiles]u(cf84babd5564ce0cb16deb135f1158eb01123aca}(sha(cf84babd5564ce0cb16deb135f1158eb01123acanode_idEC_kwDOAjP5fdoAKGNmODRiYWJkNTU2NGNlMGNiMTZkZWIxMzVmMTE1OGViMDExMjNhY2Ecommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-08-03T12:51:18Zu	committer}(j Jeremy Kongj jkong@palantir.comj	 2023-08-03T12:51:18Zumessagev1tree}(j (72d688d3227b1d286bf09c74a5ba46eec0e0263aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/72d688d3227b1d286bf09c74a5ba46eec0e0263auj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cf84babd5564ce0cb16deb135f1158eb01123aca
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmTLoscACgkQTLdFKain
zjwvGAf9HY7PHtup7CoHc1oxih2JnClVaAfjEE9HsfD7/NP7h9GeQbC4y1qp5zTP
ZyL9Kec5mBNE4rovRuBh3sShvpvTI0SI1Z71ay6HH8boH6JynY5iAkujOPIrgHAw
mJwd5fTve6qEPr4Okt7/Nb4zEpKE21cHTXDdP21sr/NYi9XfmeiKsPkbkv+dnsqf
QtZzy3hdJSbWHHYY58pofkeMSnEFQs4Gli9DM2Sni/ANlf7xqLJFL6sffl1cwJzD
CI9CPCBSF6V1P7IFY+rfN7IwUSVtPFIKp8Xs3w5iTffZBtXIpoE1fecZewVo/zYP
Yy6EyLLWZgU+N3hKN+NEphvDjZLjng==
=DgRl
-----END PGP SIGNATURE-----payloadtree 72d688d3227b1d286bf09c74a5ba46eec0e0263a
parent a2df32a5c8430028d68c99e5a6a54294375ed779
author Jeremy Kong <jkong@palantir.com> 1691067078 +0100
committer Jeremy Kong <jkong@palantir.com> 1691067078 +0100

v1
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/cf84babd5564ce0cb16deb135f1158eb01123acahtml_urlShttps://github.com/palantir/atlasdb/commit/cf84babd5564ce0cb16deb135f1158eb01123acacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cf84babd5564ce0cb16deb135f1158eb01123aca/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j# https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j( 
jeremyk-91j* JZ j MDQ6VXNlcjU5NTU1MTA=j, 3https://avatars.githubusercontent.com/u/5955510?v=4j. h5j 'https://api.github.com/users/jeremyk-91j# https://github.com/jeremyk-91j1 1https://api.github.com/users/jeremyk-91/followersj3 >https://api.github.com/users/jeremyk-91/following{/other_user}j5 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j7 >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j9 5https://api.github.com/users/jeremyk-91/subscriptionsj; ,https://api.github.com/users/jeremyk-91/orgsj= -https://api.github.com/users/jeremyk-91/reposj? 8https://api.github.com/users/jeremyk-91/events{/privacy}jA 7https://api.github.com/users/jeremyk-91/received_eventsjC UserjE uparents]}(j (a2df32a5c8430028d68c99e5a6a54294375ed779j ^https://api.github.com/repos/palantir/atlasdb/commits/a2df32a5c8430028d68c99e5a6a54294375ed779j# Shttps://github.com/palantir/atlasdb/commit/a2df32a5c8430028d68c99e5a6a54294375ed779uastats}(totalK	additionsK	deletionsK ufiles](}(j (5872f23f416692e0106c84b130ed5471b27c7ecafilenameOatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/Transaction.javastatusmodifiedj_ K&j` KchangesK?blob_urlhttps://github.com/palantir/atlasdb/blob/cf84babd5564ce0cb16deb135f1158eb01123aca/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/cf84babd5564ce0cb16deb135f1158eb01123aca/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.java?ref=cf84babd5564ce0cb16deb135f1158eb01123acapatchX/  @@ -24,6 +24,7 @@
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.spi.KeyValueServiceConfig;
+import com.palantir.atlasdb.transaction.api.purity.PurityDeclaration;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 import com.palantir.common.annotation.Idempotent;
 import com.palantir.common.base.BatchingVisitable;
@@ -36,11 +37,11 @@
 
 /**
  * Provides the methods for a transaction with the key-value store.
- *
+ * <p>
  * In general: users may assume that if maps (including sorted maps) keyed on byte[] are returned to the user,
  * they may be accessed via any byte array that is equivalent in terms of
  * {@link java.util.Arrays#equals(byte[], byte[])}.
- *
+ * <p>
  * Throughout this class, methods that return structures that may not perform all of their loading upfront (batching
  * visitables, iterables, streams and futures, for instance) _must_ be used strictly within the scope of the
  * transaction. Concretely, this means that results must be retrieved before exiting the transaction - in the case of
@@ -55,10 +56,10 @@ public interface Transaction {
      * Returns a mapping of rows to {@link RowResult}s within {@code tableRef} for the specified {@code rows}, loading
      * columns according to the provided {@link ColumnSelection}. Duplicate rows are permitted (but there will be just
      * one key-value pair for that row in the returned {@link NavigableMap}).
-     *
+     * <p>
      * The returned {@link NavigableMap} is sorted on the byte order of row keys; the ordering of the input parameter
      * {@code rows} is irrelevant.
-     *
+     * <p>
      * If there are rows with no cells matching the provided {@link ColumnSelection}, they will not be present in the
      * {@link Map#keySet()} of the output map at all. This accounts for writes and deletes done in this transaction:
      * a row written to in this transaction will be present, and a row which is deleted in this transaction will be
@@ -77,13 +78,13 @@ NavigableMap<byte[], RowResult<byte[]>> getRows(
      * Returns a mapping of requested {@code rows} to corresponding columns from the queried table.
      * Only columns matching the provided predicate will be returned, and the single predicate provided applies across
      * all of the rows. Users should provide unique rows: behaviour is undefined if this is not the case.
-     *
+     * <p>
      * The returned {@link BatchingVisitable}s are guaranteed to return cells matching the predicate. These are sorted
      * by column on byte ordering.
-     *
+     * <p>
      * It is guaranteed that the {@link Map#keySet()} of the returned map has a corresponding element for each of the
      * input {@code rows}, even if there are rows where no columns match the predicate.
-     *
+     * <p>
      * Batching visitables must be used strictly within the scope of the transaction.
      *
      * @param tableRef table to load values from
@@ -99,13 +100,13 @@ Map<byte[], BatchingVisitable<Map.Entry<Cell, byte[]>>> getRowsColumnRange(
      * Returns a single iterator over the cell-value pairs in {@code tableRef} for the specified {@code rows}, where the
      * columns fall within the provided {@link ColumnRangeSelection}. The single provided {@link ColumnRangeSelection}
      * applies to all of the rows.
-     *
+     * <p>
      * The returned iterator is guaranteed to return cell-value pairs in a lexicographic ordering over rows and columns
      * where rows are sorted according to the provided {@code rows} {@link Iterable} and then columns on byte ordering.
      * If the {@link Iterable} does not have a stable ordering (i.e. iteration order can change across iterators
      * returned) then the returned iterator is sorted lexicographically with columns sorted on byte ordering, but
      * the ordering of rows is undefined.
-     *
+     * <p>
      * Iterators must be used strictly within the scope of the transaction.
      *
      * @param tableRef table to load values from
@@ -123,13 +124,13 @@ Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
      * Returns a mapping of rows to {@link Iterator}s over cell-value pairs within {@code tableRef} for the specified
      * {@code rows}, where the columns fall within the provided {@link BatchColumnRangeSelection}. The single provided
      * {@link BatchColumnRangeSelection} applies to all of the rows.
-     *
+     * <p>
      * The returned iterators are guaranteed to return cells matching the predicate. These are sorted by column on
      * byte ordering.
-     *
+     * <p>
      * It is guaranteed that the {@link Map#keySet()} of the returned map has a corresponding element for each of the
      * input {@code rows}, even if there are rows where no columns match the predicate.
-     *
+     * <p>
      * Iterators must be used strictly within the scope of the transaction.
      *
      * @param tableRef table to load values from
@@ -147,14 +148,14 @@ Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator(
      * columns fall within the provided  {@link BatchColumnRangeSelection}.The single provided
      * {@link BatchColumnRangeSelection} applies to all of the rows. The cells for a row appear exactly once even if
      * the same row is included multiple times in {@code rows}.
-     *
+     * <p>
      * The returned iterator is guaranteed to contain cells sorted first in lexicographical order of column on byte
      * ordering, then in order of row, where rows are sorted according to the provided {@code rows} {@link Iterable}.
      * If the {@link Iterable} does not have a stable ordering (i.e. iteration order can change across iterators
      * returned) then the returned iterator is sorted lexicographically with columns sorted on byte ordering, but the
      * ordering of rows is undefined. In case of duplicate rows, the ordering is based on the first occurrence of
      * the row.
-     *
+     * <p>
      * Iterators must be used strictly within the scope of the transaction.
      *
      * @param tableRef table to load values from
@@ -165,6 +166,7 @@ Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator(
     @Idempotent
     Iterator<Map.Entry<Cell, byte[]>> getSortedColumns(
             TableReference tableRef, Iterable<byte[]> rows, BatchColumnRangeSelection batchColumnRangeSelection);
+
     /**
      * Gets the values associated for each cell in {@code cells} from table specified by {@code tableRef}.
      *
@@ -178,7 +180,7 @@ Iterator<Map.Entry<Cell, byte[]>> getSortedColumns(
     /**
      * Gets the values associated for each cell in {@code cells} from table specified by {@code tableRef}. It is not
      * guaranteed that the actual implementations are in fact asynchronous.
-     *
+     * <p>
      * The future must be used strictly within the scope of the transaction.
      *
      * @param tableRef the table from which to get the values
@@ -190,7 +192,7 @@ Iterator<Map.Entry<Cell, byte[]>> getSortedColumns(
 
     /**
      * Creates a visitable that scans the provided range.
-     *
+     * <p>
      * Batching visitables must be used strictly within the scope of the transaction.
      *
      * @param tableRef the table to scan
@@ -207,7 +209,7 @@ Iterator<Map.Entry<Cell, byte[]>> getSortedColumns(
      * the batch hint in each RangeRequest. If this isn't done then this method may do more work
      * than you need and will be slower than it needs to be.  If the batchHint isn't specified it
      * will default to 1 for the first page in each range.
-     *
+     * <p>
      * Batching visitables must be used strictly within the scope of the transaction.
      *
      * @deprecated Should use either {@link #getRanges(TableReference, Iterable, int, BiFunction)} or
@@ -222,10 +224,10 @@ Iterable<BatchingVisitable<RowResult<byte[]>>> getRanges(
     /**
      * Creates unvisited visitables that scan the provided ranges and then applies the provided visitableProcessor
      * function with concurrency specified by the concurrencyLevel parameter.
-     *
+     * <p>
      * It is guaranteed that the range requests seen by the provided visitable processor are equal to the provided
      * iterable of range requests, though no guarantees are made on the order they are encountered in.
-     *
+     * <p>
      * Streams must be read within the scope of the transaction.
      */
     @Idempotent
@@ -255,7 +257,7 @@ <T> Stream<T> getRanges(
     /**
      * Returns visitibles that scan the provided ranges. This does no pre-fetching so visiting the resulting
      * visitibles will incur database reads on first access.
-     *
+     * <p>
      * Streams and visitables must be read within the scope of this transaction.
      */
     @Idempotent
@@ -265,6 +267,7 @@ Stream<BatchingVisitable<RowResult<byte[]>>> getRangesLazy(
     /**
      * Puts values into the key-value store. If you put a null or the empty byte array, then
      * this is treated like a delete to the store.
+     *
      * @param tableRef the table into which to put the values
      * @param values the values to append to the table
      */
@@ -273,6 +276,7 @@ Stream<BatchingVisitable<RowResult<byte[]>>> getRangesLazy(
 
     /**
      * Deletes values from the key-value store.
+     *
      * @param tableRef the table from which to delete the values
      * @param keys the set of cells to delete from the store
      */
@@ -298,7 +302,7 @@ enum TransactionType {
         /**
          * In addition to queuing cells for "scrubbing", we also:
          * - (a) Scrub earlier than we would have otherwise, even at the cost of possibly
-         *       causing open transactions to abort, and
+         * causing open transactions to abort, and
          * - (b) Block until the scrub is complete.
          */
         AGGRESSIVE_HARD_DELETE
@@ -322,6 +326,7 @@ enum TransactionType {
      * <p>
      * NOTE: only cell-level conflicts are detected.  If another transaction writes to the same row
      * but a different cell, then no conflict occurs.
+     *
      * @throws TransactionConflictException if this transaction had a conflict with another running transaction
      * @throws TransactionCommitFailedException if this transaction failed at commit time.  If this exception
      * is thrown, then this transaction may have been committed, but most likely not.
@@ -344,7 +349,7 @@ enum TransactionType {
      * Gets whether the transaction has not been committed.
      *
      * @return <code>true</code> if neither <code>commit()</code> or <code>abort()</code> have been called,
-     *         otherwise <code>false</code>
+     * otherwise <code>false</code>
      */
     @Idempotent
     boolean isUncommitted();
@@ -368,10 +373,10 @@ enum TransactionType {
 
     /**
      * Registers a callback that will be called after the AtlasDB client perceives a successful commit of a transaction.
-     *
+     * <p>
      * We guarantee that if the provided callback runs, the transaction has definitely committed successfully.
      * The converse is NOT true: it is possible that the callback is NOT called even if the transaction was successful.
-     *
+     * <p>
      * The semantics of callbacks are as follows:
      * <ul>
      *     <li>Callbacks must be registered before a transaction commits or aborts; registration of a callback once
@@ -387,7 +392,7 @@ enum TransactionType {
 
     /**
      * Disables read-write conflict checking for this table for the duration of this transaction only.
-     *
+     * <p>
      * This method should be called before any reads are done on this table.
      */
     @Idempotent
@@ -402,4 +407,12 @@ default void disableReadWriteConflictChecking(TableReference tableRef) {
     default void markTableInvolved(TableReference tableRef) {
         throw new UnsupportedOperationException();
     }
+
+    default void declareTransactionAsPure(PurityDeclaration unused) {
+        throw new UnsupportedOperationException();
+    }
+
+    default boolean isTransactionKnownToBeDoomed() {
+        return false;
+    }
 }u      }(j (0a41b381aff6a9d82252c954a2a7958db159f596je \atlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/purity/PurityDeclaration.javajg addedj_ Kj` K ji Kjj https://github.com/palantir/atlasdb/blob/cf84babd5564ce0cb16deb135f1158eb01123aca/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fpurity%2FPurityDeclaration.javajl https://github.com/palantir/atlasdb/raw/cf84babd5564ce0cb16deb135f1158eb01123aca/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fpurity%2FPurityDeclaration.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fpurity%2FPurityDeclaration.java?ref=cf84babd5564ce0cb16deb135f1158eb01123acajp X  @@ -0,0 +1,28 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api.purity;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface PurityDeclaration {
+    String reason();
+
+    static PurityDeclaration of(String reason) {
+        return ImmutablePurityDeclaration.builder().reason(reason).build();
+    }
+}u}(j (7a3834fbc7421123a9847891d0ecc8fad6975f45je \atlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/purity/TransactionPurity.javajg addedj_ K4j` K ji K4jj https://github.com/palantir/atlasdb/blob/cf84babd5564ce0cb16deb135f1158eb01123aca/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fpurity%2FTransactionPurity.javajl https://github.com/palantir/atlasdb/raw/cf84babd5564ce0cb16deb135f1158eb01123aca/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fpurity%2FTransactionPurity.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fpurity%2FTransactionPurity.java?ref=cf84babd5564ce0cb16deb135f1158eb01123acajp X  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api.purity;
+
+import org.immutables.value.Value;
+
+/**
+ * Be VERY careful about labelling transactions pure, in particular being "resilient to momentarily inconsistent reads
+ * on doomed transactions". This is a pretty strong guarantee: if you do significant processing in a transaction, you
+ * might get garbage results, and even things you think are pure might not be. For example, an invariant that
+ * exactly one of two cells must be present could be invalidated if you read the first (empty) cell, and a concurrent
+ * transaction writes the first cell and deletes the second cell before you read the second cell.
+ */
+@Value.Immutable(intern = true)
+public interface TransactionPurity {
+    static TransactionPurity pure() {
+        return ImmutableTransactionPurity.builder()
+                .doesNotHaveSideEffects(true)
+                .resilientToMomentarilyInconsistentReadsOnDoomedTransactions(true)
+                .build();
+    }
+
+    static TransactionPurity impure() {
+        return ImmutableTransactionPurity.builder()
+                .doesNotHaveSideEffects(false)
+                .resilientToMomentarilyInconsistentReadsOnDoomedTransactions(false)
+                .build();
+    }
+
+    boolean doesNotHaveSideEffects();
+
+    boolean resilientToMomentarilyInconsistentReadsOnDoomedTransactions();
+
+    @Value.Lazy
+    default boolean canSkipIntermediateImmutableLockChecksOnThoroughTables() {
+        return doesNotHaveSideEffects() && resilientToMomentarilyInconsistentReadsOnDoomedTransactions();
+    }
+}u}(j (f5b0b13e253568f637a160fcc0710d87c8a71083je ]atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingTransaction.javajg modifiedj_ Kj` K ji Kjj https://github.com/palantir/atlasdb/blob/cf84babd5564ce0cb16deb135f1158eb01123aca/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.javajl https://github.com/palantir/atlasdb/raw/cf84babd5564ce0cb16deb135f1158eb01123aca/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.java?ref=cf84babd5564ce0cb16deb135f1158eb01123acajp X  @@ -29,6 +29,7 @@
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionFailedException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.purity.PurityDeclaration;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 import com.palantir.common.base.BatchingVisitable;
 import java.util.Iterator;
@@ -196,4 +197,14 @@ public void onSuccess(Runnable callback) {
     public ListenableFuture<Map<Cell, byte[]>> getAsync(TableReference tableRef, Set<Cell> cells) {
         return delegate().getAsync(tableRef, cells);
     }
+
+    @Override
+    public void declareTransactionAsPure(PurityDeclaration unused) {
+        delegate().declareTransactionAsPure(unused);
+    }
+
+    @Override
+    public boolean isTransactionKnownToBeDoomed() {
+        return delegate().isTransactionKnownToBeDoomed();
+    }
 }u}(j (be9ebc0d4e89a868820af235f55b321b477e6612je `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javajg modifiedj_ Kj` Kji K jj https://github.com/palantir/atlasdb/blob/cf84babd5564ce0cb16deb135f1158eb01123aca/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajl https://github.com/palantir/atlasdb/raw/cf84babd5564ce0cb16deb135f1158eb01123aca/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=cf84babd5564ce0cb16deb135f1158eb01123acajp XV  @@ -100,6 +100,8 @@
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.api.purity.PurityDeclaration;
+import com.palantir.atlasdb.transaction.api.purity.TransactionPurity;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueServiceImpl;
@@ -281,6 +283,7 @@ private enum State {
     private final ExpectationsMetrics expectationsDataCollectionMetrics;
     private volatile long cellCommitLocksRequested = 0L;
     private volatile long rowCommitLocksRequested = 0L;
+    private volatile TransactionPurity transactionPurity = TransactionPurity.impure();
 
     protected volatile boolean hasReads;
 
@@ -296,7 +299,7 @@ private enum State {
 
     /**
      * @param immutableTimestamp If we find a row written before the immutableTimestamp we don't need to grab a read
-     *                           lock for it because we know that no writers exist.
+     * lock for it because we know that no writers exist.
      * @param preCommitCondition This check must pass for this transaction to commit.
      */
     /* package */ SnapshotTransaction(
@@ -374,6 +377,19 @@ protected TransactionScopedCache getCache() {
         return lockWatchManager.getTransactionScopedCache(getTimestamp());
     }
 
+    // Note: The purity declaration is intended as documentation, and possibly for static analysis (eventually, this
+    // makes more sense as an annotation on the transaction task.
+    public void declareTransactionAsPure(PurityDeclaration unused) {
+        transactionPurity = TransactionPurity.pure();
+        // TODO (jkong): How can we validate this? Can we do some kind of static analysis?
+    }
+
+    // Note: Transactions for which true is returned will not commit. False transactions can still fail.
+    public boolean isTransactionKnownToBeDoomed() {
+        Set<LockToken> expiredLocks = refreshCommitAndImmutableTsLocks(null); // During transaction
+        return expiredLocks.isEmpty();
+    }
+
     @Override
     public long getTimestamp() {
         return getStartTimestamp();
@@ -601,7 +617,7 @@ private Iterator<Map.Entry<Cell, byte[]>> getSortedColumnsLocalWrites(
     /**
      * Provides comparator to sort cells by columns (sorted lexicographically on byte ordering) and then in the order
      * of input rows.
-     * */
+     */
     @VisibleForTesting
     static Comparator<Cell> columnOrderThenPreserveInputRowOrder(Iterable<byte[]> rows) {
         return Cell.COLUMN_COMPARATOR.thenComparing(
@@ -622,7 +638,7 @@ protected static <V> Iterator<Map.Entry<Cell, V>> mergeByComparator(
      * possibility of needing a second batch of fetching.
      * If the batch hint is large, split batch size across rows to avoid loading too much data, while accepting that
      * second fetches may be needed to get everyone their data.
-     * */
+     */
     private static int getPerRowBatchSize(BatchColumnRangeSelection columnRangeSelection, int distinctRowCount) {
         return Math.max(
                 Math.min(MIN_BATCH_SIZE_FOR_DISTRIBUTED_LOAD, columnRangeSelection.getBatchHint()),
@@ -1207,7 +1223,9 @@ private void validatePreCommitRequirementsOnReadIfNecessary(
     }
 
     private boolean isValidationNecessaryOnReads(TableReference tableRef, boolean allPossibleCellsReadAndPresent) {
-        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef, allPossibleCellsReadAndPresent);
+        return !transactionPurity.canSkipIntermediateImmutableLockChecksOnThoroughTables()
+                && validateLocksOnReads
+                && requiresImmutableTimestampLocking(tableRef, allPossibleCellsReadAndPresent);
     }
 
     private boolean requiresImmutableTimestampLocking(TableReference tableRef, boolean allPossibleCellsReadAndPresent) {
@@ -1384,7 +1402,7 @@ private ConcurrentNavigableMap<Cell, byte[]> getLocalWrites(TableReference table
 
     /**
      * This includes deleted writes as zero length byte arrays, be sure to strip them out.
-     *
+     * <p>
      * For the selectedColumns parameter, empty set means all columns. This is unfortunate, but follows the semantics of
      * {@link RangeRequest}.
      */
@@ -1903,7 +1921,7 @@ private boolean isStillRunning() {
 
     /**
      * Returns true iff the transaction is known to have successfully committed.
-     *
+     * <p>
      * Be careful when using this method! A transaction that the client thinks has failed could actually have
      * committed as far as the key-value service is concerned.
      */
@@ -2578,7 +2596,7 @@ private LongLongMap getCommitTimestampsSync(
     /**
      * This will attempt to put the commitTimestamp into the DB.
      *
-     * @throws TransactionLockTimeoutException  If our locks timed out while trying to commit.
+     * @throws TransactionLockTimeoutException If our locks timed out while trying to commit.
      * @throws TransactionCommitFailedException failed when committing in a way that isn't retriable
      */
     private void putCommitTimestamp(long commitTimestamp, LockToken locksToken, TransactionService transactionService)ueu(f4a2c0380b8fd39cb61c9b7f2cec7fe205d7fa89}(sha(f4a2c0380b8fd39cb61c9b7f2cec7fe205d7fa89node_idEC_kwDOAjP5fdoAKGY0YTJjMDM4MGI4ZmQzOWNiNjFjOWI3ZjJjZWM3ZmUyMDVkN2ZhODkcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-03-17T11:17:33Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-03-17T11:17:33ZumessageAutorelease 0.813.0

[skip ci]tree}(j (7af9947bc848c2f8ac9ee88c217a30f8984186e7url`https://api.github.com/repos/palantir/atlasdb/git/trees/7af9947bc848c2f8ac9ee88c217a30f8984186e7uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f4a2c0380b8fd39cb61c9b7f2cec7fe205d7fa89
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQUTFMACgkQhbrR8ip7mDCVnQD8CDVziooKY/zF1Iw78rvtapwX
XujTPPJaAou/RPusFLsBAJ6cjsbjNq9efjK/3UpZpOyLwF7Idawwgaf93RXhdqpu
=JJP2
-----END PGP SIGNATURE-----
payloadX0  tree 7af9947bc848c2f8ac9ee88c217a30f8984186e7
parent 45c36ae5f1012b136b0e91a58a6cca47f92f7c5a
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1679051853 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1679051853 +0000

Autorelease 0.813.0

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/f4a2c0380b8fd39cb61c9b7f2cec7fe205d7fa89html_urlShttps://github.com/palantir/atlasdb/commit/f4a2c0380b8fd39cb61c9b7f2cec7fe205d7fa89comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f4a2c0380b8fd39cb61c9b7f2cec7fe205d7fa89/commentsj }(loginsvc-autoreleaseidJ(j MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(j MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(j (45c36ae5f1012b136b0e91a58a6cca47f92f7c5aj ^https://api.github.com/repos/palantir/atlasdb/commits/45c36ae5f1012b136b0e91a58a6cca47f92f7c5aj Shttps://github.com/palantir/atlasdb/commit/45c36ae5f1012b136b0e91a58a6cca47f92f7c5auastats}(totalK 	additionsK 	deletionsK ufiles]}(j (146eafaef341f53b563527d249d44fac28f8c6d9filename changelog/0.813.0/pr-6471.v2.ymlstatusrenamedj K j K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/f4a2c0380b8fd39cb61c9b7f2cec7fe205d7fa89/changelog%2F0.813.0%2Fpr-6471.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/f4a2c0380b8fd39cb61c9b7f2cec7fe205d7fa89/changelog%2F0.813.0%2Fpr-6471.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.813.0%2Fpr-6471.v2.yml?ref=f4a2c0380b8fd39cb61c9b7f2cec7fe205d7fa89previous_filename$changelog/@unreleased/pr-6471.v2.ymluau(c8157985e1f51135546a20fc9eb8998bba58c4a8}(sha(c8157985e1f51135546a20fc9eb8998bba58c4a8node_idEC_kwDOAjP5fdoAKGM4MTU3OTg1ZTFmNTExMzU1NDZhMjBmYzllYjg5OThiYmE1OGM0YTgcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-03-02T23:45:41Zu	committer}(j 
svc-changelogj svc-changelog@palantir.comj 2023-03-02T23:45:41ZumessageAdd generated changelog entriestree}(j (3fbafaa2fe35696659b8f9bb07d98c5db45b9e66url`https://api.github.com/repos/palantir/atlasdb/git/trees/3fbafaa2fe35696659b8f9bb07d98c5db45b9e66uj# bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c8157985e1f51135546a20fc9eb8998bba58c4a8
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQBNSUJEHYaJX37fAFQAAB6xwD/ZV/FP5iOBIl5k+SrRJE5mTRp
33dgBIdVRTGgARN5dQMA/0PeIpufYH/4CMig97BGz+7831/5+4j90rUOQm8wSeRp
=cKuG
-----END PGP SIGNATURE-----payloadX  tree 3fbafaa2fe35696659b8f9bb07d98c5db45b9e66
parent f65449841f3dcc1c7b09b376cb17276fda403279
author svc-changelog <svc-changelog@palantir.com> 1677800741 +0000
committer svc-changelog <svc-changelog@palantir.com> 1677800741 +0000

Add generated changelog entriesuuj# ^https://api.github.com/repos/palantir/atlasdb/commits/c8157985e1f51135546a20fc9eb8998bba58c4a8html_urlShttps://github.com/palantir/atlasdb/commit/c8157985e1f51135546a20fc9eb8998bba58c4a8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c8157985e1f51135546a20fc9eb8998bba58c4a8/commentsj }(login
svc-changelogidJ#j
 MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j# *https://api.github.com/users/svc-changelogj1  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj }(j6 
svc-changelogj8 J#j
 MDQ6VXNlcjg0MDc3NjAzj: 4https://avatars.githubusercontent.com/u/84077603?v=4j< h5j# *https://api.github.com/users/svc-changelogj1  https://github.com/svc-changelogj? 4https://api.github.com/users/svc-changelog/followersjA Ahttps://api.github.com/users/svc-changelog/following{/other_user}jC :https://api.github.com/users/svc-changelog/gists{/gist_id}jE Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jG 8https://api.github.com/users/svc-changelog/subscriptionsjI /https://api.github.com/users/svc-changelog/orgsjK 0https://api.github.com/users/svc-changelog/reposjM ;https://api.github.com/users/svc-changelog/events{/privacy}jO :https://api.github.com/users/svc-changelog/received_eventsjQ UserjS uparents]}(j (f65449841f3dcc1c7b09b376cb17276fda403279j# ^https://api.github.com/repos/palantir/atlasdb/commits/f65449841f3dcc1c7b09b376cb17276fda403279j1 Shttps://github.com/palantir/atlasdb/commit/f65449841f3dcc1c7b09b376cb17276fda403279uastats}(totalK	additionsK	deletionsKufiles]}(j (65ffe362769b62fe351cbc6ceac4acd99f1d9599filename$changelog/@unreleased/pr-6461.v2.ymlstatusmodifiedjm Kjn KchangesKblob_url|https://github.com/palantir/atlasdb/blob/c8157985e1f51135546a20fc9eb8998bba58c4a8/changelog%2F%40unreleased%2Fpr-6461.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/c8157985e1f51135546a20fc9eb8998bba58c4a8/changelog%2F%40unreleased%2Fpr-6461.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6461.v2.yml?ref=c8157985e1f51135546a20fc9eb8998bba58c4a8patchXG  @@ -1,6 +1,6 @@
 type: fix
 fix:
-  description: All versions of `getRange()` and `getRanges()` now correctly longer
+  description: All versions of `getRange()` and `getRanges()` now correctly no longer
     include locally written columns that do not match the provided `ColumnSelection`
     in their `RowResult`s.
   links:uau(eceb15181f0668678cfe5e1e0d91d2d0a20d6366}(sha(eceb15181f0668678cfe5e1e0d91d2d0a20d6366node_idEC_kwDOAjP5fdoAKGVjZWIxNTE4MWYwNjY4Njc4Y2ZlNWUxZTBkOTFkMmQwYTIwZDYzNjYcommit}(author}(name
Samuel Krameremailskramer@palantir.comdate2023-04-03T16:01:39Zu	committer}(j 
Samuel Kramerj skramer@palantir.comj 2023-04-03T16:01:39ZumessageRevert "only log invariants when found and print map of violations"

This reverts commit 473ca16aab2f69c9ff65d9ddd5dbbb06cccbdef2.tree}(j (3ebf43a5a89b2b29ce4719d10c1588ee092996e3url`https://api.github.com/repos/palantir/atlasdb/git/trees/3ebf43a5a89b2b29ce4719d10c1588ee092996e3uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/eceb15181f0668678cfe5e1e0d91d2d0a20d6366
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj ^https://api.github.com/repos/palantir/atlasdb/commits/eceb15181f0668678cfe5e1e0d91d2d0a20d6366html_urlShttps://github.com/palantir/atlasdb/commit/eceb15181f0668678cfe5e1e0d91d2d0a20d6366comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/eceb15181f0668678cfe5e1e0d91d2d0a20d6366/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (473ca16aab2f69c9ff65d9ddd5dbbb06cccbdef2j ^https://api.github.com/repos/palantir/atlasdb/commits/473ca16aab2f69c9ff65d9ddd5dbbb06cccbdef2j Shttps://github.com/palantir/atlasdb/commit/473ca16aab2f69c9ff65d9ddd5dbbb06cccbdef2uastats}(totalK	additionsK	deletionsKufiles](}(j (77aa082a3f56273b255cc5a16f5dfd48dbf64a7afilename1atlasdb-workload-server-distribution/build.gradlestatusmodifiedj K j KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/eceb15181f0668678cfe5e1e0d91d2d0a20d6366/atlasdb-workload-server-distribution%2Fbuild.gradleraw_urlhttps://github.com/palantir/atlasdb/raw/eceb15181f0668678cfe5e1e0d91d2d0a20d6366/atlasdb-workload-server-distribution%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=eceb15181f0668678cfe5e1e0d91d2d0a20d6366patchX  @@ -5,8 +5,6 @@ apply from: "../gradle/shared.gradle"
 apply from: "../gradle/non-client-dist.gradle"
 
 dependencies {
-    implementation 'ch.qos.logback:logback-classic'
-    implementation 'ch.qos.logback:logback-core'
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'
     implementation 'com.fasterxml.jackson.core:jackson-databind'u}(j (90b0893e2e1b4c1c77c064fb363b2dff1d8c9bd4j watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporter.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/eceb15181f0668678cfe5e1e0d91d2d0a20d6366/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.javaj https://github.com/palantir/atlasdb/raw/eceb15181f0668678cfe5e1e0d91d2d0a20d6366/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesMetricInvariantReporter.java?ref=eceb15181f0668678cfe5e1e0d91d2d0a20d6366j XW  @@ -51,11 +51,7 @@ public Consumer<Map<TableAndWorkloadCell, MismatchedValue>> consumer() {
                     .table(tableAndWorkloadCell.tableName())
                     .build()
                     .inc());
-            if (!mismatchingValues.isEmpty()) {
-                log.warn(
-                        "Durable writes invariant violations found: {}",
-                        SafeArg.of("mismatchingValues", mismatchingValues));
-            }
+            log.warn("Durable writes invariant violations found!", SafeArg.of("mismatchingValues", mismatchingValues));
         };
     }
 }ueu(cd625690380b3d869a4b60e23c04967b1ca962c5}(sha(cd625690380b3d869a4b60e23c04967b1ca962c5node_idEC_kwDOAjP5fdoAKGNkNjI1NjkwMzgwYjNkODY5YTRiNjBlMjNjMDQ5NjdiMWNhOTYyYzUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-20T17:51:04Zu	committer}(j 
Sam Kramerj	 skramer@palantir.comj 2023-05-03T16:14:57Zumessageoopstree}(j (e63eeb8cb00e48f3d4d0b6bbeac8b7f9c0a8ed88url`https://api.github.com/repos/palantir/atlasdb/git/trees/e63eeb8cb00e48f3d4d0b6bbeac8b7f9c0a8ed88uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cd625690380b3d869a4b60e23c04967b1ca962c5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRSiIMACgkQmPPOpKR4
XS20zAf+J+s4XGwNaCO/cM8dBlaPV1LlwDoXcOICbg4RT7qxgqPC4RCy5dtGfMkj
pTxpgX3PyN+ZmTkE9dgpdFcM4cwlXYw2wgxubJK5tTG010Otp9BvO6WgMZZwdTcl
fswA8dg9vWOBYbOHwA6Hb33Yo2Z7cSDXrLFSrRvPLtlDhDjLKBHxg/G1Yxo7X1OB
g4NLvtvN0OAospJM4YumP8tmQ6caaX7TY7K/GIOxUvUFUQBPW3uXO/B4fEboWkJG
moLsq9pGd2MKX5SlyFk10BiApgJOx1KAm3L/2e7tl5UeJOzZT/uKApWl2I0yr8L3
RdmW1mevhBKcKCTLroai7Tz1bJhfJA==
=sXZT
-----END PGP SIGNATURE-----payloadtree e63eeb8cb00e48f3d4d0b6bbeac8b7f9c0a8ed88
parent b26121e0160be2ac5ec056f1be18c00ba85b4081
author Jeremy Kong <jkong@palantir.com> 1682013064 +0100
committer Sam Kramer <skramer@palantir.com> 1683130497 +0100

oops
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/cd625690380b3d869a4b60e23c04967b1ca962c5html_urlShttps://github.com/palantir/atlasdb/commit/cd625690380b3d869a4b60e23c04967b1ca962c5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cd625690380b3d869a4b60e23c04967b1ca962c5/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j% https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj
 }(j* 
Sam-Kramerj, J^2_ j MDQ6VXNlcjYyMzg4MTQ=j. 3https://avatars.githubusercontent.com/u/6238814?v=4j0 h5j 'https://api.github.com/users/Sam-Kramerj% https://github.com/Sam-Kramerj3 1https://api.github.com/users/Sam-Kramer/followersj5 >https://api.github.com/users/Sam-Kramer/following{/other_user}j7 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j9 >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j; 5https://api.github.com/users/Sam-Kramer/subscriptionsj= ,https://api.github.com/users/Sam-Kramer/orgsj? -https://api.github.com/users/Sam-Kramer/reposjA 8https://api.github.com/users/Sam-Kramer/events{/privacy}jC 7https://api.github.com/users/Sam-Kramer/received_eventsjE UserjG uparents]}(j (b26121e0160be2ac5ec056f1be18c00ba85b4081j ^https://api.github.com/repos/palantir/atlasdb/commits/b26121e0160be2ac5ec056f1be18c00ba85b4081j% Shttps://github.com/palantir/atlasdb/commit/b26121e0160be2ac5ec056f1be18c00ba85b4081uastats}(totalK	additionsK	deletionsKufiles](}(j (ed32635eddb80e00b6a6bdf32cdbb27ce739ff8dfilenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedja Kjb K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/cd625690380b3d869a4b60e23c04967b1ca962c5/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/cd625690380b3d869a4b60e23c04967b1ca962c5/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=cd625690380b3d869a4b60e23c04967b1ca962c5patchX  @@ -21,6 +21,7 @@
 import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
 import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
 import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
@@ -29,6 +30,7 @@
 import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.BouncingValueWorkflow;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;u}(j (fe28a43b4a0fa45b28c5ec5550cd37f1fe6abf5ejg gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/BouncingValueWorkflow.javaji modifiedja Kjb Kjk Kjl https://github.com/palantir/atlasdb/blob/cd625690380b3d869a4b60e23c04967b1ca962c5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FBouncingValueWorkflow.javajn https://github.com/palantir/atlasdb/raw/cd625690380b3d869a4b60e23c04967b1ca962c5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FBouncingValueWorkflow.javajp https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FBouncingValueWorkflow.java?ref=cd625690380b3d869a4b60e23c04967b1ca962c5jr X  @@ -41,7 +41,7 @@
 import one.util.streamex.StreamEx;
 
 public class BouncingValueWorkflow {
-    private static final String TEST_TABLE = "bouncingValue";
+    public static final String TEST_TABLE = "bouncingValue";
     private static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
 
     public static Workflow createBouncingValue(InteractiveTransactionStore store) {ueu(9e25ffaecbe425c65b3a33c0d2430c03744a9778}(sha(9e25ffaecbe425c65b3a33c0d2430c03744a9778node_idEC_kwDOAjP5fdoAKDllMjVmZmFlY2JlNDI1YzY1YjNhMzNjMGQyNDMwYzAzNzQ0YTk3Nzgcommit}(author}(nameLucas Sousa Meirelesemailmeireles31@msn.comdate2023-08-09T11:56:25Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-08-09T11:56:25Zumessage"Autorelease 0.908.0-rc2

[skip ci]tree}(j~ (28d6da83f36fa8ac244202426425caa2cd882035url`https://api.github.com/repos/palantir/atlasdb/git/trees/28d6da83f36fa8ac244202426425caa2cd882035uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9e25ffaecbe425c65b3a33c0d2430c03744a9778
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmTTfuoACgkQhbrR8ip7mDCyLwEAitX7OTWXXslXV26wveocOG0V
8ixjDme29E0N6ytoueAA/jS/fTZ4Dw7SNN3h4ixS6xjVuzTIDPRVFj25cNHEN+7z
=/FNn
-----END PGP SIGNATURE-----
payloadX  tree 28d6da83f36fa8ac244202426425caa2cd882035
parent b8d981ffce5dd68a2dde1b131561589db71eaa83
author Lucas Sousa Meireles <meireles31@msn.com> 1691582185 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1691582185 +0000

Autorelease 0.908.0-rc2

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/9e25ffaecbe425c65b3a33c0d2430c03744a9778html_urlShttps://github.com/palantir/atlasdb/commit/9e25ffaecbe425c65b3a33c0d2430c03744a9778comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9e25ffaecbe425c65b3a33c0d2430c03744a9778/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(j MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(j~ (b8d981ffce5dd68a2dde1b131561589db71eaa83j ^https://api.github.com/repos/palantir/atlasdb/commits/b8d981ffce5dd68a2dde1b131561589db71eaa83j Shttps://github.com/palantir/atlasdb/commit/b8d981ffce5dd68a2dde1b131561589db71eaa83uastats}(totalK 	additionsK 	deletionsK ufiles]u(e58b4a6032d4fda283c2909331fa599f575a421c}(sha(e58b4a6032d4fda283c2909331fa599f575a421cnode_idEC_kwDOAjP5fdoAKGU1OGI0YTYwMzJkNGZkYTI4M2MyOTA5MzMxZmE1OTlmNTc1YTQyMWMcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-05-24T15:15:05Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-05-24T15:15:05Zumessageuse timer context for durationtree}(j (72ee62edb3d975825f55f71cdf27b61a9094eb53url`https://api.github.com/repos/palantir/atlasdb/git/trees/72ee62edb3d975825f55f71cdf27b61a9094eb53uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e58b4a6032d4fda283c2909331fa599f575a421c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmRuKfoACgkQJd22kJ7J
GiyThgf5AbyRnnDVwkLTAJcK250AYhD3dC2+zxAx0LEf7A4RutWOu7VChaZ5ehUS
3GP7CRTCYXGSKbnR/v5RA3KMiiHcBcewwAWwDUk9AmQxKKpB/xj4Nqs3ooeYpXUG
qtRRcUH84yfuTBCubXUZckdtJOW3ZBf/f3CHbyRwMABfPqfop394uRYxPOBmE3Wr
lvopxVLY+Fk0UBgklHTTzaJH1ubzD358bqmTaJ7od2GesKqFwgb42JmfcqAks5Iy
SVvFDBrimGp6OotFqHyXDxloNeNj8W4K73TlVBMRiGwSEXkn7p4ynUwZMB+gsU/1
rpObj331W91oVDhg1+uGHJRdMs3EXw==
=D/RN
-----END PGP SIGNATURE-----payloadtree 72ee62edb3d975825f55f71cdf27b61a9094eb53
parent ecb3c75c61d24925e3b0bf2584ad7b3640cab18c
author Lucas Meireles <meireles31@msn.com> 1684941305 +0100
committer Lucas Meireles <meireles31@msn.com> 1684941305 +0100

use timer context for duration
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/e58b4a6032d4fda283c2909331fa599f575a421chtml_urlShttps://github.com/palantir/atlasdb/commit/e58b4a6032d4fda283c2909331fa599f575a421ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e58b4a6032d4fda283c2909331fa599f575a421c/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j LucasIMEj Jg j MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j" 3https://api.github.com/users/LucasIME/subscriptionsj$ *https://api.github.com/users/LucasIME/orgsj& +https://api.github.com/users/LucasIME/reposj( 6https://api.github.com/users/LucasIME/events{/privacy}j* 5https://api.github.com/users/LucasIME/received_eventsj, Userj. uparents]}(j (ecb3c75c61d24925e3b0bf2584ad7b3640cab18cj ^https://api.github.com/repos/palantir/atlasdb/commits/ecb3c75c61d24925e3b0bf2584ad7b3640cab18cj Shttps://github.com/palantir/atlasdb/commit/ecb3c75c61d24925e3b0bf2584ad7b3640cab18cuastats}(totalK	additionsK	deletionsKufiles]}(j (0f82e64a27ea34ae828da5d2e85bdc78bc9148d6filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedjH KjI KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e58b4a6032d4fda283c2909331fa599f575a421c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e58b4a6032d4fda283c2909331fa599f575a421c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=e58b4a6032d4fda283c2909331fa599f575a421cpatchXA  @@ -1951,9 +1951,8 @@ private void commitWrites(TransactionService transactionService) {
                     throwIfImmutableTsOrCommitLocksExpired(null);
                 }
             }
-            long microsSinceCreation = TimeUnit.MILLISECONDS.toMicros(System.currentTimeMillis() - timeCreated);
             getTimer("nonWriteCommitTotalTimeSinceTxCreation")
-                    .update(Duration.of(microsSinceCreation, ChronoUnit.MICROS));
+                    .update(Duration.of(transactionTimerContext.stop(), ChronoUnit.NANOS));
             return;
         }
 uau(e4d6704ac1d2e0ddf320c9554e7a9d94589c6c4b}(sha(e4d6704ac1d2e0ddf320c9554e7a9d94589c6c4bnode_idEC_kwDOAjP5fdoAKGU0ZDY3MDRhYzFkMmUwZGRmMzIwYzk1NTRlN2E5ZDk0NTg5YzZjNGIcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-07-25T21:38:29Zu	committer}(je Tom Petraccajg tpetracca@palantir.comji 2023-07-25T21:38:29Zumessage"back to original working conditiontree}(j] (0212e818253fac3d83f08cc385a5d959e137164furl`https://api.github.com/repos/palantir/atlasdb/git/trees/0212e818253fac3d83f08cc385a5d959e137164fuju bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e4d6704ac1d2e0ddf320c9554e7a9d94589c6c4b
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEHTC5rqjQ6qmsb7sZRnUGJaXvqFMFAmTAQNUACgkQRnUGJaXv
qFNu9gf/VUDKN0Voj+HAv0F5OKYO+X658a3jzKuCsJGBywASxUS6IF8YLLN+Upa0
cU+LuoTrWjwbPGdXZfUqVbeJGGtJqQuaZfKhUG/NIlEOUPeCUMaNkHoLa5pfSgRj
fkSrNAgZQ5H0/5VbBuc3oe6t5j4g1CXw6SaXvEKjQrLylmzXkk7JNK+HyiAVTg1N
IIHvv7W8rbiER6lrorA0ht6Jlnic8O/ahGpa10Yd9Y1SbfrWnKzkCzOzXH6likT2
96nA3iojSRlEDl0jE5wvvYd1NXhhNx7kZFymCjRZwHRjhBxSDyXKBjlskDGYXxF1
1SNJuXct4FgVQTxlJI/w5g79vmpBrg==
=sC2d
-----END PGP SIGNATURE-----payloadX  tree 0212e818253fac3d83f08cc385a5d959e137164f
parent 290595f26484de4cf74c4838b95caa07cbd3fa7e
author Tom Petracca <tpetracca@palantir.com> 1690321109 -0400
committer Tom Petracca <tpetracca@palantir.com> 1690321109 -0400

back to original working condition
uuju ^https://api.github.com/repos/palantir/atlasdb/commits/e4d6704ac1d2e0ddf320c9554e7a9d94589c6c4bhtml_urlShttps://github.com/palantir/atlasdb/commit/e4d6704ac1d2e0ddf320c9554e7a9d94589c6c4bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e4d6704ac1d2e0ddf320c9554e7a9d94589c6c4b/commentsjc }(login	tpetraccaidJ& j_ MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5ju &https://api.github.com/users/tpetraccaj https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminujk }(j 	tpetraccaj J& j_ MDQ6VXNlcjI1NTQzMjg=j 3https://avatars.githubusercontent.com/u/2554328?v=4j h5ju &https://api.github.com/users/tpetraccaj https://github.com/tpetraccaj 0https://api.github.com/users/tpetracca/followersj =https://api.github.com/users/tpetracca/following{/other_user}j 6https://api.github.com/users/tpetracca/gists{/gist_id}j =https://api.github.com/users/tpetracca/starred{/owner}{/repo}j 4https://api.github.com/users/tpetracca/subscriptionsj +https://api.github.com/users/tpetracca/orgsj ,https://api.github.com/users/tpetracca/reposj 7https://api.github.com/users/tpetracca/events{/privacy}j 6https://api.github.com/users/tpetracca/received_eventsj Userj uparents]}(j] (290595f26484de4cf74c4838b95caa07cbd3fa7eju ^https://api.github.com/repos/palantir/atlasdb/commits/290595f26484de4cf74c4838b95caa07cbd3fa7ej Shttps://github.com/palantir/atlasdb/commit/290595f26484de4cf74c4838b95caa07cbd3fa7euastats}(totalK	additionsK	deletionsKufiles]}(j] (09e0f4494f5b7d0d9f8bcc08976713bd0a0ff9f5filenameatlasdb-ete-tests/build.gradlestatusmodifiedj Kj KchangesKblob_urlrhttps://github.com/palantir/atlasdb/blob/e4d6704ac1d2e0ddf320c9554e7a9d94589c6c4b/atlasdb-ete-tests%2Fbuild.gradleraw_urlqhttps://github.com/palantir/atlasdb/raw/e4d6704ac1d2e0ddf320c9554e7a9d94589c6c4b/atlasdb-ete-tests%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fbuild.gradle?ref=e4d6704ac1d2e0ddf320c9554e7a9d94589c6c4bpatchX!  @@ -101,6 +101,12 @@ task prepareForEteTests(type: Copy, dependsOn: 'distTar') {
     rename { filename -> 'atlasdb-ete-snapshot.tgz' }
 }
 
+task timeLockTest(type: Test) {
+    dependsOn prepareForEteTests, ':timelock-server-distribution:dockerTag'
+    include '**/*TimeLock*.class'
+    exclude '**/*TimeLockMigration*.class'
+}
+
 // standalone test with its own task
 // is very expensive and so separate task is used to control when/where it is executed
 task timeLockMigrationTest(type: Test) {
@@ -149,7 +155,7 @@ task singleClientWithEmbeddedAndOracleTest(type: Test) {
 test {
     // this list explicitly doesn't include the timelockMigration or singleClientWithEmbeddedAndOracleTest tasks
     // not sure why that is
-    dependsOn prepareForEteTests, singleClientWithEmbeddedAndThreeNodeCassandraTest, singleClientWithEmbeddedAndPostgresTest
+    dependsOn prepareForEteTests, timeLockTest, singleClientWithEmbeddedAndThreeNodeCassandraTest, singleClientWithEmbeddedAndPostgresTest
 
     // 1-off ETE tests
     exclude '**/*TimeLock*.class'uau(7901e13240b519c79aef86373c67b020be9ae024}(sha(7901e13240b519c79aef86373c67b020be9ae024node_idEC_kwDOAjP5fdoAKDc5MDFlMTMyNDBiNTE5Yzc5YWVmODYzNzNjNjdiMDIwYmU5YWUwMjQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-27T14:59:00Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-06-27T14:59:00Zumessage;only allow range scan batch size increases to be a max of 8tree}(j (56c70b513df1eff5f6b64384188373b329a13577url`https://api.github.com/repos/palantir/atlasdb/git/trees/56c70b513df1eff5f6b64384188373b329a13577uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7901e13240b519c79aef86373c67b020be9ae024
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSa+TUACgkQmPPOpKR4
XS033Af+INrK5Xv+ZFaPdH27dZobyxnvTkhgtiQTnoAewRjCyG9YfdRqa7On2yeN
I6ltDx7RlbpP7nQ0xh6WCsYMjkuolDma7wdyi6XuXhRPMzbTuCxRYjsrvP308wv/
ovu8UR5ouSgPP0lsn71lHlNep1go1dSmik/YtsWBvOTwu+e2wGH8YbjsPYdXKplQ
77I17KXFBRGh89dpS6pIatQrTDbUh2OrgmkoM7nf9ANHxrRaerKfRbfT9NpAvBGV
PdHlMVe3J65pbnkuowNLyLtcVRswTBXsAZA90Tk3KxCSKNBt6+Ls6e8AkFfFm+8/
G0EpVhr/nsKAJfEnxsBB3JTx++AdIA==
=xhc1
-----END PGP SIGNATURE-----payloadX  tree 56c70b513df1eff5f6b64384188373b329a13577
parent 613e115d909748315adbea905ad912518b569b38
author Sam Kramer <skramer@palantir.com> 1687877940 +0100
committer Sam Kramer <skramer@palantir.com> 1687877940 +0100

only allow range scan batch size increases to be a max of 8
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/7901e13240b519c79aef86373c67b020be9ae024html_urlShttps://github.com/palantir/atlasdb/commit/7901e13240b519c79aef86373c67b020be9ae024comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7901e13240b519c79aef86373c67b020be9ae024/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj
 >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (613e115d909748315adbea905ad912518b569b38j ^https://api.github.com/repos/palantir/atlasdb/commits/613e115d909748315adbea905ad912518b569b38j Shttps://github.com/palantir/atlasdb/commit/613e115d909748315adbea905ad912518b569b38uastats}(totalK	additionsK	deletionsKufiles]}(j (9dbcbaec5944613be2f3ef91a6fe984fa92b88d2filenamehatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIterator.javastatusmodifiedj6 Kj7 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7901e13240b519c79aef86373c67b020be9ae024/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7901e13240b519c79aef86373c67b020be9ae024/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.java?ref=7901e13240b519c79aef86373c67b020be9ae024patchX  @@ -35,6 +35,8 @@ public class BatchSizeIncreasingIterator<T> implements Closeable {
     private final int originalBatchSize;
     private final BatchProvider<T> batchProvider;
 
+    private final int maxBatchSize;
+
     private ClosableIterator<T> currentResults;
     private byte[] lastToken;
 
@@ -51,6 +53,7 @@ public BatchSizeIncreasingIterator(
         if (currentResults != null) {
             this.lastBatchSize = originalBatchSize;
         }
+        this.maxBatchSize = originalBatchSize * 8;
     }
 
     public void markNumResultsNotDeleted(int resultsInBatch) {
@@ -72,7 +75,7 @@ int getBestBatchSize() {
             batchSize = Math.min(
                     (long) Math.ceil(originalBatchSize * (numReturned / (double) numNotDeleted)), maxNewBatchSize);
         }
-        return (int) Math.min(batchSize, AtlasDbPerformanceConstants.MAX_BATCH_SIZE);
+        return (int) Math.min(batchSize, Math.min(maxBatchSize, AtlasDbPerformanceConstants.MAX_BATCH_SIZE));
     }
 
     private void updateResultsIfNeeded() {uau(edf233499fca6578767b593f8cbd455e1462eef5}(sha(edf233499fca6578767b593f8cbd455e1462eef5node_idEC_kwDOAjP5fdoAKGVkZjIzMzQ5OWZjYTY1Nzg3NjdiNTkzZjhjYmQ0NTVlMTQ2MmVlZjUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-03-24T15:20:36Zu	committer}(jS Jeremy KongjU jkong@palantir.comjW 2023-03-24T15:20:36Zumessageblehtree}(jK (7886b8c1b6f4db169fa9f3f4f1be38652fdbfff4url`https://api.github.com/repos/palantir/atlasdb/git/trees/7886b8c1b6f4db169fa9f3f4f1be38652fdbfff4ujc bhttps://api.github.com/repos/palantir/atlasdb/git/commits/edf233499fca6578767b593f8cbd455e1462eef5
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQdv8QACgkQTLdFKain
zjxORAgA5OWPKhXzToeSVBQ8ZCxMf3iJO/OzT2UFGITcr5XgVTiVEH9cQI5lybWz
Xe8n/vDBy6DvKRYIC8TBZjsyCpD+oJ4TdZIUkLkTlCES6jK7DqFsKLnR5cynB3Tj
8sUi8s1C0MK/WBmkNJXUQ4dAQZSFAruRKD4HDG1ZGwa4dUzGiaJMer8QRwNz1D4C
gxLxBI2r2vxvV2ydZlyv3sUmkQhm71sqmRjWGNMmNF+mb8agYUmlTBSNSL0SctNI
bzwQF9CRCESYdvDeZ/9gJ8RcSKeDczitxshz+hsbwOYcd4JPcl5G4fVxhm7kmFKr
zAnsW6/dL2nQXz+gjJ1XYos2w2YDjA==
=KDgs
-----END PGP SIGNATURE-----payloadtree 7886b8c1b6f4db169fa9f3f4f1be38652fdbfff4
parent f4ba2346a0736e4f029339f4d676ad31d164b2a3
author Jeremy Kong <jkong@palantir.com> 1679671236 +0000
committer Jeremy Kong <jkong@palantir.com> 1679671236 +0000

bleh
uujc ^https://api.github.com/repos/palantir/atlasdb/commits/edf233499fca6578767b593f8cbd455e1462eef5html_urlShttps://github.com/palantir/atlasdb/commit/edf233499fca6578767b593f8cbd455e1462eef5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/edf233499fca6578767b593f8cbd455e1462eef5/commentsjQ }(login
jeremyk-91idJZ jM MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jc 'https://api.github.com/users/jeremyk-91jq https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujY }(jv 
jeremyk-91jx JZ jM MDQ6VXNlcjU5NTU1MTA=jz 3https://avatars.githubusercontent.com/u/5955510?v=4j| h5jc 'https://api.github.com/users/jeremyk-91jq https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(jK (f4ba2346a0736e4f029339f4d676ad31d164b2a3jc ^https://api.github.com/repos/palantir/atlasdb/commits/f4ba2346a0736e4f029339f4d676ad31d164b2a3jq Shttps://github.com/palantir/atlasdb/commit/f4ba2346a0736e4f029339f4d676ad31d164b2a3uastats}(totalK	additionsK	deletionsKufiles]}(jK (48e682ffbc6b29429ea66bd45db55035bff32b36filenameRatlasdb-commons/src/main/java/com/palantir/async/initializer/AsyncInitializer.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/edf233499fca6578767b593f8cbd455e1462eef5/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.javaraw_urlhttps://github.com/palantir/atlasdb/raw/edf233499fca6578767b593f8cbd455e1462eef5/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.java?ref=edf233499fca6578767b593f8cbd455e1462eef5patchX  @@ -60,17 +60,28 @@ public final void initialize(boolean initializeAsync) {
 
     private void tryInitializationLoop() {
         if (state.isCancelled()) {
+            log.info(
+                    "Shutting down executor associated with asynchronous initialisation, as it was cancelled",
+                    SafeArg.of("className", getInitializingClassName()),
+                    SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
+                    SafeArg.of("durationBeforeCancellation", getTimeSinceInitialization()));
             singleThreadedExecutor.shutdown();
             return;
         }
 
         try {
+            log.info(
+                    "Attempting to initialize {} on the attempt {}. The amount of time elapsed since we began was {}"
+                            + " ms.",
+                    SafeArg.of("className", getInitializingClassName()),
+                    SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
+                    SafeArg.of("initializationDuration", getTimeSinceInitialization()));
             tryInitializeInternal();
             log.info(
                     "Initialized {} on the attempt {} in {} milliseconds",
                     SafeArg.of("className", getInitializingClassName()),
                     SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
-                    SafeArg.of("initializationDuration", System.currentTimeMillis() - initializationStartTime));
+                    SafeArg.of("initializationDuration", getTimeSinceInitialization()));
         } catch (Throwable throwable) {
             log.info(
                     "Failed to initialize {} on the attempt {}",
@@ -84,19 +95,23 @@ private void tryInitializationLoop() {
                         "Failed to cleanup when initialization of {} failed on attempt {} with {} milliseconds",
                         SafeArg.of("className", getInitializingClassName()),
                         SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
-                        SafeArg.of("initializationDuration", System.currentTimeMillis() - initializationStartTime),
+                        SafeArg.of("initializationDuration", getTimeSinceInitialization()),
                         cleanupThrowable);
             }
             scheduleInitialization(sleepInterval());
         }
     }
 
+    private long getTimeSinceInitialization() {
+        return System.currentTimeMillis() - initializationStartTime;
+    }
+
     // Not final for tests.
     void scheduleInitialization(Duration delay) {
         singleThreadedExecutor.schedule(this::tryInitializationLoop, delay.toMillis(), TimeUnit.MILLISECONDS);
     }
 
-    // Not final for tests
+    // Not final for tests.
     ScheduledExecutorService createExecutorService() {
         return PTExecutors.newSingleThreadScheduledExecutor(
                 new NamedThreadFactory("AsyncInitializer-" + getInitializingClassName(), true));uau(28cc7eee76cb83abf2e3d74901594c9dff47ccb2}(sha(28cc7eee76cb83abf2e3d74901594c9dff47ccb2node_idEC_kwDOAjP5fdoAKDI4Y2M3ZWVlNzZjYjgzYWJmMmUzZDc0OTAxNTk0YzlkZmY0N2NjYjIcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-22T12:54:14Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-06-22T12:55:08Zumessage	add teststree}(j (54ff41d360f2c3babae0a6af7d7e0986fe92e517url`https://api.github.com/repos/palantir/atlasdb/git/trees/54ff41d360f2c3babae0a6af7d7e0986fe92e517uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/28cc7eee76cb83abf2e3d74901594c9dff47ccb2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSURKwACgkQJd22kJ7J
Gix+IwgAzLYqrwxgAWXfcgME8MDf1XS5MwJDw4eXQGH2IrBTr+HQkGVkbL+7B84z
rcfQbJOGKg4H7aVa+H5relTS2gs9lX7Eviov3G62aOmtJnA62v5At6NBNZqNZ3c5
B1flAo3pOKXDRRqYerAigzMIbyplNPqPKNi+gbz1B0ByRgAdifHKkJgkRQYueO+m
ON3Vrnh/OnPFM36GfRxTHCB1rLHM1+FOByEC4azmVKFU8bpKEIJqqg4GCglN5sAm
lDJgajeJryqAORoUmTmPmnyoDyw0iwC8h0EaHX/b6dbC3vwUpyoacq2haIJSrDTj
9jpFMi7ON97clNVb7gptLXbM41yzdg==
=ruJh
-----END PGP SIGNATURE-----payloadtree 54ff41d360f2c3babae0a6af7d7e0986fe92e517
parent 6a24bc913895b934cdd1c1dea42fe28dfefc6baa
author Lucas Meireles <meireles31@msn.com> 1687438454 +0100
committer Lucas Meireles <meireles31@msn.com> 1687438508 +0100

add tests
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/28cc7eee76cb83abf2e3d74901594c9dff47ccb2html_urlShttps://github.com/palantir/atlasdb/commit/28cc7eee76cb83abf2e3d74901594c9dff47ccb2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/28cc7eee76cb83abf2e3d74901594c9dff47ccb2/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j LucasIMEj Jg j MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME     j /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj  *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsj Userj
 uparents]}(j (6a24bc913895b934cdd1c1dea42fe28dfefc6baaj ^https://api.github.com/repos/palantir/atlasdb/commits/6a24bc913895b934cdd1c1dea42fe28dfefc6baaj Shttps://github.com/palantir/atlasdb/commit/6a24bc913895b934cdd1c1dea42fe28dfefc6baauastats}(totalKI	additionsKH	deletionsKufiles](}(j (58c1c4cdc7a6cae1368a8f7145472effe585a60cfilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj$ Kj% KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/28cc7eee76cb83abf2e3d74901594c9dff47ccb2/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/28cc7eee76cb83abf2e3d74901594c9dff47ccb2/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=28cc7eee76cb83abf2e3d74901594c9dff47ccb2patchX  @@ -957,7 +957,7 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
     private void emitReadMetrics(boolean allPossibleCellsReadAndPresent) {
         Map<String, String> exhaustiveReadTags =
                 ImmutableMap.of("isExhaustive", Boolean.toString(allPossibleCellsReadAndPresent));
-        getCounter("snapshotTransactionGet", exhaustiveReadTags).inc();
+        getCounter("snapshotTransactionGetInternal", exhaustiveReadTags).inc();
     }
 
     @Overrideu}(j (834b83340fb5e1ef5992f1187c3ec2ebc0ecc12aj* eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj, modifiedj$ KGj% K j. KGj/ https://github.com/palantir/atlasdb/blob/28cc7eee76cb83abf2e3d74901594c9dff47ccb2/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj1 https://github.com/palantir/atlasdb/raw/28cc7eee76cb83abf2e3d74901594c9dff47ccb2/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj3 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=28cc7eee76cb83abf2e3d74901594c9dff47ccb2j5 X&  @@ -33,6 +33,7 @@
 import static org.mockito.Mockito.verifyNoInteractions;
 import static org.mockito.Mockito.when;
 
+import com.codahale.metrics.Counter;
 import com.google.common.base.Joiner;
 import com.google.common.base.Suppliers;
 import com.google.common.collect.ImmutableList;
@@ -2428,6 +2429,76 @@ public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigratio
         assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
     }
 
+    @Test
+    public void emitExhaustiveMetricWhenReadingExistingValue() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        Counter exhaustiveReadCounter = metricsManager.registerOrGetTaggedCounter(
+                SnapshotTransaction.class, "snapshotTransactionGetInternal", Map.of("isExhaustive", "true"));
+        long exhaustiveReadsBeforeGet = exhaustiveReadCounter.getCount();
+        Counter nonExhaustiveReadCounter = metricsManager.registerOrGetTaggedCounter(
+                SnapshotTransaction.class, "snapshotTransactionGetInternal", Map.of("isExhaustive", "false"));
+        long nonExhaustiveReadsBeforeGet = nonExhaustiveReadCounter.getCount();
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+
+        long exhaustiveReadsCountAfterGet = exhaustiveReadCounter.getCount();
+        assertThat(exhaustiveReadsCountAfterGet).isEqualTo(exhaustiveReadsBeforeGet + 1);
+        long nonExhaustiveReadsCountAfterGet = nonExhaustiveReadCounter.getCount();
+        assertThat(nonExhaustiveReadsCountAfterGet).isEqualTo(nonExhaustiveReadsBeforeGet);
+    }
+
+    @Test
+    public void emitNonExhaustiveMetricWhenReadingMissingValue() {
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        Counter exhaustiveReadCounter = metricsManager.registerOrGetTaggedCounter(
+                SnapshotTransaction.class, "snapshotTransactionGetInternal", Map.of("isExhaustive", "true"));
+        long exhaustiveReadsBeforeGet = exhaustiveReadCounter.getCount();
+        Counter nonExhaustiveReadCounter = metricsManager.registerOrGetTaggedCounter(
+                SnapshotTransaction.class, "snapshotTransactionGetInternal", Map.of("isExhaustive", "false"));
+        long nonExhaustiveReadsBeforeGet = nonExhaustiveReadCounter.getCount();
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL_2));
+
+        long exhaustiveReadsCountAfterGet = exhaustiveReadCounter.getCount();
+        assertThat(exhaustiveReadsCountAfterGet).isEqualTo(exhaustiveReadsBeforeGet);
+        long nonExhaustiveReadsCountAfterGet = nonExhaustiveReadCounter.getCount();
+        assertThat(nonExhaustiveReadsCountAfterGet).isEqualTo(nonExhaustiveReadsBeforeGet + 1);
+    }
+
+    @Test
+    public void emitNonExhaustiveMetricWhenReadingCombinatioOfPresentAndMissingValues() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        Counter exhaustiveReadCounter = metricsManager.registerOrGetTaggedCounter(
+                SnapshotTransaction.class, "snapshotTransactionGetInternal", Map.of("isExhaustive", "true"));
+        long exhaustiveReadsBeforeGet = exhaustiveReadCounter.getCount();
+        Counter nonExhaustiveReadCounter = metricsManager.registerOrGetTaggedCounter(
+                SnapshotTransaction.class, "snapshotTransactionGetInternal", Map.of("isExhaustive", "false"));
+        long nonExhaustiveReadsBeforeGet = nonExhaustiveReadCounter.getCount();
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2));
+
+        long exhaustiveReadsCountAfterGet = exhaustiveReadCounter.getCount();
+        assertThat(exhaustiveReadsCountAfterGet).isEqualTo(exhaustiveReadsBeforeGet);
+        long nonExhaustiveReadsCountAfterGet = nonExhaustiveReadCounter.getCount();
+        assertThat(nonExhaustiveReadsCountAfterGet).isEqualTo(nonExhaustiveReadsBeforeGet + 1);
+    }
+
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,ueu(0dba96c8edcb098b02df2851ccc5fb06f606adae}(sha(0dba96c8edcb098b02df2851ccc5fb06f606adaenode_idEC_kwDOAjP5fdoAKDBkYmE5NmM4ZWRjYjA5OGIwMmRmMjg1MWNjYzVmYjA2ZjYwNmFkYWUcommit}(author}(nameMichael Wintermeyeremailmichaelw@palantir.comdate2023-03-20T15:24:15Zu	committer}(jI Michael WintermeyerjK michaelw@palantir.comjM 2023-03-20T15:24:44Zumessagepr feedbacktree}(jA (cf2f840a13fd70258512d9888c746b7f9d18e5e3url`https://api.github.com/repos/palantir/atlasdb/git/trees/cf2f840a13fd70258512d9888c746b7f9d18e5e3ujY bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0dba96c8edcb098b02df2851ccc5fb06f606adae
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE8lX9sA3B6yGcd/5kEyeP7w0U/hEFAmQYerwACgkQEyeP7w0U
/hGgswf+JhiNO5+9WSOgD7z3+gESQ1/Dq9MA2VtJMnQBBF1DK+aZNgY6hOs5kjK2
dBWUHohXzMO5XUv05Ly4iE+ndrtFSFsuHaE/eFQyAqHGb09ixkSHxbylqvhjM4IP
s+QdFpaaOg7qEuCXZEhYHLcbNpaJo2hWozWazJ6gSARfqRIyqcCvQCgqcXa2oT67
g9cyo+8RR3gCTqmEpB4pifhdDjLg9ZmqwDnJ2vPe8cluxqPQUjkeZc3AXnI3H4aL
+TvejwxAYiWfV9S6rxIMTdceGSLy8qykrqXN64Mu+zoF6PGSew6anEYFWpDMwVGB
Tj3MQ14s2wGg1UZj32yGsRcDqh1t6w==
=eyKV
-----END PGP SIGNATURE-----payloadtree cf2f840a13fd70258512d9888c746b7f9d18e5e3
parent 983f8bed86be3a42bb9c432f25f11c8f21e09ca4
author Michael Wintermeyer <michaelw@palantir.com> 1679325855 -0400
committer Michael Wintermeyer <michaelw@palantir.com> 1679325884 -0400

pr feedback
uujY ^https://api.github.com/repos/palantir/atlasdb/commits/0dba96c8edcb098b02df2851ccc5fb06f606adaehtml_urlShttps://github.com/palantir/atlasdb/commit/0dba96c8edcb098b02df2851ccc5fb06f606adaecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0dba96c8edcb098b02df2851ccc5fb06f606adae/commentsjG }(login
mswintermeyeridJX% jC MDQ6VXNlcjI0MzIwODg=
avatar_url3https://avatars.githubusercontent.com/u/2432088?v=4gravatar_idh5jY *https://api.github.com/users/mswintermeyerjg  https://github.com/mswintermeyer
followers_url4https://api.github.com/users/mswintermeyer/followers
following_urlAhttps://api.github.com/users/mswintermeyer/following{/other_user}	gists_url:https://api.github.com/users/mswintermeyer/gists{/gist_id}starred_urlAhttps://api.github.com/users/mswintermeyer/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/mswintermeyer/subscriptionsorganizations_url/https://api.github.com/users/mswintermeyer/orgs	repos_url0https://api.github.com/users/mswintermeyer/repos
events_url;https://api.github.com/users/mswintermeyer/events{/privacy}received_events_url:https://api.github.com/users/mswintermeyer/received_eventstypeUser
site_adminujO }(jl 
mswintermeyerjn JX% jC MDQ6VXNlcjI0MzIwODg=jp 3https://avatars.githubusercontent.com/u/2432088?v=4jr h5jY *https://api.github.com/users/mswintermeyerjg  https://github.com/mswintermeyerju 4https://api.github.com/users/mswintermeyer/followersjw Ahttps://api.github.com/users/mswintermeyer/following{/other_user}jy :https://api.github.com/users/mswintermeyer/gists{/gist_id}j{ Ahttps://api.github.com/users/mswintermeyer/starred{/owner}{/repo}j} 8https://api.github.com/users/mswintermeyer/subscriptionsj /https://api.github.com/users/mswintermeyer/orgsj 0https://api.github.com/users/mswintermeyer/reposj ;https://api.github.com/users/mswintermeyer/events{/privacy}j :https://api.github.com/users/mswintermeyer/received_eventsj Userj uparents]}(jA (983f8bed86be3a42bb9c432f25f11c8f21e09ca4jY ^https://api.github.com/repos/palantir/atlasdb/commits/983f8bed86be3a42bb9c432f25f11c8f21e09ca4jg Shttps://github.com/palantir/atlasdb/commit/983f8bed86be3a42bb9c432f25f11c8f21e09ca4uastats}(totalK	additionsK	deletionsKufiles](}(jA (9de376eff6a2ade06d2a17b7271c4a04db9991dbfilenamedtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/TimeLockManagementResource.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/0dba96c8edcb098b02df2851ccc5fb06f606adae/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0dba96c8edcb098b02df2851ccc5fb06f606adae/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.java?ref=0dba96c8edcb098b02df2851ccc5fb06f606adaepatchX\  @@ -89,7 +89,7 @@ public static TimeLockManagementService jersey(
 
     @Override
     public ListenableFuture<Set<String>> getActiveNamespaces(AuthHeader authHeader) {
-        // This endpoint is not used frequently (only called by migration cli), so it's okay to NOT make it async.
+        // This endpoint only returns state already in memory, so it's okay to NOT make it async.
         return Futures.immediateFuture(timelockNamespaces.getActiveClients().stream()
                 .map(Client::value)
                 .filter(value -> !value.equals(PaxosTimeLockConstants.LEADER_PAXOS_NAMESPACE))u}(jA (cd56b534b6e45a576708221b314e5ad3952317efj qtimelock-server/src/suiteTest/java/com/palantir/atlasdb/timelock/MultiNodePaxosTimeLockServerIntegrationTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/0dba96c8edcb098b02df2851ccc5fb06f606adae/timelock-server%2Fsrc%2FsuiteTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FMultiNodePaxosTimeLockServerIntegrationTest.javaj https://github.com/palantir/atlasdb/raw/0dba96c8edcb098b02df2851ccc5fb06f606adae/timelock-server%2Fsrc%2FsuiteTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FMultiNodePaxosTimeLockServerIntegrationTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FsuiteTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FMultiNodePaxosTimeLockServerIntegrationTest.java?ref=0dba96c8edcb098b02df2851ccc5fb06f606adaej X5  @@ -23,7 +23,6 @@
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.ImmutableSortedMap;
 import com.google.common.collect.Iterables;
-import com.google.common.collect.Sets;
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.http.v2.ClientOptionsConstants;
@@ -353,10 +352,8 @@ public void canGetAllNamespaces() {
 
         Set<String> knownNamespacesAfterRestart = getKnownNamespaces();
         assertThat(knownNamespacesAfterRestart).contains(randomNamespace);
-        assertThat(knownNamespacesAfterRestart).contains(randomNamespace);
         assertThat(knownNamespacesAfterRestart).doesNotContain("learner", "acceptor");
-        assertThat(Sets.difference(knownNamespaces, knownNamespacesAfterRestart))
-                .isEmpty();
+        assertThat(knownNamespacesAfterRestart).isSubsetOf(knownNamespaces);
 
         Set<String> activeNamespacesAfterRestart = getActiveNamespaces();
         assertThat(activeNamespacesAfterRestart).doesNotContain(randomNamespace);ueu(ba7f5bae6c633558ec26a35e00cbbdddaef134c3}(sha(ba7f5bae6c633558ec26a35e00cbbdddaef134c3node_idEC_kwDOAjP5fdoAKGJhN2Y1YmFlNmM2MzM1NThlYzI2YTM1ZTAwY2JiZGRkYWVmMTM0YzMcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-06-28T01:20:43Zu	committer}(j GitHubj noreply@github.comj 2023-06-28T01:20:43Zumessage|Optimize CassandraService#refreshTokenRangesAndGetServers (#6641)

Optimize CassandraService#refreshTokenRangesAndGetServerstree}(j (3ea101e0ed79ad2915f50b45371522ed707ad6cburl`https://api.github.com/repos/palantir/atlasdb/git/trees/3ea101e0ed79ad2915f50b45371522ed707ad6cbuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ba7f5bae6c633558ec26a35e00cbbdddaef134c3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkm4rrCRBK7hj4Ov3rIwAA0a8IAAMHUko/NJukp/Bo7/VVFJCR
OXtBAQcg2BAwWw2hWvhWq9kgPmg+m4z0AxnHp/2qHGhvzy7Rhp+AK0IIoLW+FHGR
vnpOvyKTvGARFQom8JZmORQ5Nn4nSFyUWTOgGG2B0cAesCGgK4R6d3jPsL0GILTN
lwOu9jBsepbpsA/25nk1CjaApRgxh2r9JqQZ7K5sHDd3yx1k42VvXzGLY3/oL9K0
+z4n7NNmVHs2sFyAHE+hBGNZ5OpecOta0iVvRZpKeX0Ghs81xg1R+R76T1GmkHlM
yjiTn8CiMAeVadjgkBr1kVEldk31YvHg6EIyFc64FKrGYJ7tvVzJPTxo7CHr1jo=
=0FgI
-----END PGP SIGNATURE-----
payloadXS  tree 3ea101e0ed79ad2915f50b45371522ed707ad6cb
parent 58a1ddb69aed3709b2e0a758df74aa2fd4412383
author David Schlosnagle <davids@palantir.com> 1687915243 -0400
committer GitHub <noreply@github.com> 1687915243 +0000

Optimize CassandraService#refreshTokenRangesAndGetServers (#6641)

Optimize CassandraService#refreshTokenRangesAndGetServers
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/ba7f5bae6c633558ec26a35e00cbbdddaef134c3html_urlShttps://github.com/palantir/atlasdb/commit/ba7f5bae6c633558ec26a35e00cbbdddaef134c3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ba7f5bae6c633558ec26a35e00cbbdddaef134c3/commentsj }(loginschlosnaidMBj MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j %https://api.github.com/users/schlosnaj https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j (58a1ddb69aed3709b2e0a758df74aa2fd4412383j ^https://api.github.com/repos/palantir/atlasdb/commits/58a1ddb69aed3709b2e0a758df74aa2fd4412383j Shttps://github.com/palantir/atlasdb/commit/58a1ddb69aed3709b2e0a758df74aa2fd4412383uastats}(totalK	additionsK	deletionsKufiles](}(j (605103a11942c0e2de2a8ece96d105f2ef775e5afilenamebatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javastatusmodifiedj" K
j# KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ba7f5bae6c633558ec26a35e00cbbdddaef134c3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ba7f5bae6c633558ec26a35e00cbbdddaef134c3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=ba7f5bae6c633558ec26a35e00cbbdddaef134c3patchX,  @@ -148,18 +148,17 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
                 hostToDatacentersThisRefresh.put(onlyHost, onlyEndpoint.getDatacenter());
             } else { // normal case, large cluster with many vnodes
                 for (TokenRange tokenRange : tokenRanges) {
-                    Map<CassandraServer, String> hostToDatacentersOnThisTokenRange = KeyedStream.of(
-                                    tokenRange.getEndpoint_details())
-                            .mapKeys(EndpointDetails::getHost)
-                            .mapKeys(this::getAddressForHostThrowUnchecked)
-                            .map(EndpointDetails::getDatacenter)
-                            .collectToMap();
-
-                    ImmutableSet<CassandraServer> hosts =
-                            ImmutableSet.copyOf(hostToDatacentersOnThisTokenRange.keySet());
-                    servers.addAll(hosts);
-                    hostToDatacentersThisRefresh.putAll(hostToDatacentersOnThisTokenRange);
+                    List<EndpointDetails> endpointDetails = tokenRange.getEndpoint_details();
+                    ImmutableSet.Builder<CassandraServer> hostsBuilder =
+                            ImmutableSet.builderWithExpectedSize(endpointDetails.size());
+                    for (EndpointDetails endpoint : endpointDetails) {
+                        CassandraServer cassandraServer = getAddressForHostThrowUnchecked(endpoint.getHost());
+                        hostToDatacentersThisRefresh.put(cassandraServer, endpoint.getDatacenter());
+                        hostsBuilder.add(cassandraServer);
+                        servers.add(cassandraServer);
+                    }
 
+                    ImmutableSet<CassandraServer> hosts = hostsBuilder.build();
                     LightweightOppToken startToken = LightweightOppToken.fromHex(tokenRange.getStart_token());
                     LightweightOppToken endToken = LightweightOppToken.fromHex(tokenRange.getEnd_token());
                     if (startToken.compareTo(endToken) <= 0) {u}(j (a17f90ec5d7c8dabd4b8d110ace6016af8cfad9cj( $changelog/@unreleased/pr-6641.v2.ymlj* addedj" Kj# K j, Kj- |https://github.com/palantir/atlasdb/blob/ba7f5bae6c633558ec26a35e00cbbdddaef134c3/changelog%2F%40unreleased%2Fpr-6641.v2.ymlj/ {https://github.com/palantir/atlasdb/raw/ba7f5bae6c633558ec26a35e00cbbdddaef134c3/changelog%2F%40unreleased%2Fpr-6641.v2.ymlj1 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6641.v2.yml?ref=ba7f5bae6c633558ec26a35e00cbbdddaef134c3j3 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize CassandraService#refreshTokenRangesAndGetServers
+  links:
+  - https://github.com/palantir/atlasdb/pull/6641ueu(46c1cadde6f3f88a88f576812d8a8701400dead0}(sha(46c1cadde6f3f88a88f576812d8a8701400dead0node_idEC_kwDOAjP5fdoAKDQ2YzFjYWRkZTZmM2Y4OGE4OGY1NzY4MTJkOGE4NzAxNDAwZGVhZDAcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-03-10T20:10:51Zu	committer}(jG David SchlosnaglejI davids@palantir.comjK 2023-03-10T20:10:51ZumessageRemove slf4j javadoc linkstree}(j? (5e24139b6b8a053db56312d36c3d6d23267c8cb4url`https://api.github.com/repos/palantir/atlasdb/git/trees/5e24139b6b8a053db56312d36c3d6d23267c8cb4ujW bhttps://api.github.com/repos/palantir/atlasdb/git/commits/46c1cadde6f3f88a88f576812d8a8701400dead0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmQLjssACgkQR9hsJ74Q
0l8bkAf/V5WUFad6NyAcaJvnK91r4RNtSCzK425MCW+pFrrjcJOwI0zeR2OV7uMn
ZgxQuhv9KHtV5XB+m528/NJAAa8D8u2L5TIXOuwCdLBhCj8OoQFd4NRf9XohQl6u
NeGnzr7ggKpA96wSoKUj3B/yEPq0NzM93Oafw4os8COoG9dEopb5znktIRXBt8Yg
dixWFFQORFs54SZVQo/MZBWl1h+xzGY3eR4LdaQ7j1pzqyXvA34RJvRmnGzYMy6I
nkRPkjLAqTwhqaWj1388s7VAWrV7Ka1QWd/Bf00wr2z5tJewGaqvne8NRoQ7IlJb
lFUYJVe5IvkbULeeqdnvm/Q36/ElxA==
=fJAA
-----END PGP SIGNATURE-----payloadtree 5e24139b6b8a053db56312d36c3d6d23267c8cb4
parent 658064598f7cdc2ad2b06f11bf9f418f59ab316e
author David Schlosnagle <davids@palantir.com> 1678479051 -0500
committer David Schlosnagle <davids@palantir.com> 1678479051 -0500

Remove slf4j javadoc links
uujW ^https://api.github.com/repos/palantir/atlasdb/commits/46c1cadde6f3f88a88f576812d8a8701400dead0html_urlShttps://github.com/palantir/atlasdb/commit/46c1cadde6f3f88a88f576812d8a8701400dead0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/46c1cadde6f3f88a88f576812d8a8701400dead0/commentsjE }(loginschlosnaidMBjA MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jW %https://api.github.com/users/schlosnaje https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujM }(jj schlosnajl MBjA MDQ6VXNlcjU0NTk0jn 1https://avatars.githubusercontent.com/u/54594?v=4jp h5jW %https://api.github.com/users/schlosnaje https://github.com/schlosnajs /https://api.github.com/users/schlosna/followersju <https://api.github.com/users/schlosna/following{/other_user}jw 5https://api.github.com/users/schlosna/gists{/gist_id}jy <https://api.github.com/users/schlosna/starred{/owner}{/repo}j{ 3https://api.github.com/users/schlosna/subscriptionsj} *https://api.github.com/users/schlosna/orgsj +https://api.github.com/users/schlosna/reposj 6https://api.github.com/users/schlosna/events{/privacy}j 5https://api.github.com/users/schlosna/received_eventsj Userj uparents]}(j? (658064598f7cdc2ad2b06f11bf9f418f59ab316ejW ^https://api.github.com/repos/palantir/atlasdb/commits/658064598f7cdc2ad2b06f11bf9f418f59ab316eje Shttps://github.com/palantir/atlasdb/commit/658064598f7cdc2ad2b06f11bf9f418f59ab316euastats}(totalK	additionsK	deletionsKufiles]}(j? (0f4a7fce4981dffe64a3bd276f44aeaf9a86ee3efilenamegradle/javadoc.gradlestatusmodifiedj Kj KchangesKblob_urlihttps://github.com/palantir/atlasdb/blob/46c1cadde6f3f88a88f576812d8a8701400dead0/gradle%2Fjavadoc.gradleraw_urlhhttps://github.com/palantir/atlasdb/raw/46c1cadde6f3f88a88f576812d8a8701400dead0/gradle%2Fjavadoc.gradlecontents_url{https://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fjavadoc.gradle?ref=46c1cadde6f3f88a88f576812d8a8701400dead0patchX  @@ -3,5 +3,4 @@
 //     apply from: javadoc.gradle, to: javadoc
 
 exclude '**/examples/**'
-options.links 'https://docs.oracle.com/javase/7/docs/api/'
-options.links 'https://www.slf4j.org/apidocs/'
+options.links 'https://docs.oracle.com/en/java/javase/11/docs/api/'uau(520532d9f7ef0e83256a56761c812bcaced86fd3}(sha(520532d9f7ef0e83256a56761c812bcaced86fd3node_idEC_kwDOAjP5fdoAKDUyMDUzMmQ5ZjdlZjBlODMyNTZhNTY3NjFjODEyYmNhY2VkODZmZDMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-22T14:24:36Zu	committer}(j 
Samuel Kramerj skramer@palantir.comj 2023-03-23T11:11:54Zumessage9start to build docker

fixes to workload docker containertree}(j (2cf05dc7ab9f9337391824c5986970e7db59bb7burl`https://api.github.com/repos/palantir/atlasdb/git/trees/2cf05dc7ab9f9337391824c5986970e7db59bb7buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/520532d9f7ef0e83256a56761c812bcaced86fd3
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj ^https://api.github.com/repos/palantir/atlasdb/commits/520532d9f7ef0e83256a56761c812bcaced86fd3html_urlShttps://github.com/palantir/atlasdb/commit/520532d9f7ef0e83256a56761c812bcaced86fd3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/520532d9f7ef0e83256a56761c812bcaced86fd3/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (48f4bc2f47016ae7e3840f8167909effcd48e8e8j ^https://api.github.com/repos/palantir/atlasdb/commits/48f4bc2f47016ae7e3840f8167909effcd48e8e8j Shttps://github.com/palantir/atlasdb/commit/48f4bc2f47016ae7e3840f8167909effcd48e8e8uastats}(totalKP	additionsKK	deletionsKufiles](}(j (797c18a4f8379bf54388799e8f03ab6fe52895dbfilename/atlasdb-workload-server-distribution/Dockerfilestatusaddedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/520532d9f7ef0e83256a56761c812bcaced86fd3/atlasdb-workload-server-distribution%2FDockerfileraw_urlhttps://github.com/palantir/atlasdb/raw/520532d9f7ef0e83256a56761c812bcaced86fd3/atlasdb-workload-server-distribution%2FDockerfilecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2FDockerfile?ref=520532d9f7ef0e83256a56761c812bcaced86fd3patchX  @@ -0,0 +1,23 @@
+FROM adoptopenjdk/openjdk11:jre-11.0.9_11.1-alpine
+MAINTAINER AtlasDB Team
+
+# Bash is useful for monitoring; curl is used by our healthchecks.
+RUN apk update && apk add bash curl
+
+# Prefer ADD to COPY because it does the tar handling
+ADD atlasdb-workload-server-*.tgz /
+
+RUN mv /atlasdb-workload-server-* /atlasdb-workload-server
+
+WORKDIR /atlasdb-workload-server
+
+EXPOSE 8421 \
+       8422
+
+# Putting exit code as '1' on failure to adhere to docker specification
+HEALTHCHECK --interval=5s \
+            --timeout=5s \
+            --retries=5 \
+            CMD curl -f http://localhost:8422/healthcheck || exit 1
+
+CMD ["service/bin/init.sh", "console"]u}(j (a086f8b0eee70afb488c03210a70984c9ba0d71dj 1atlasdb-workload-server-distribution/build.gradlej modifiedj Kj K j  Kj! https://github.com/palantir/atlasdb/blob/520532d9f7ef0e83256a56761c812bcaced86fd3/atlasdb-workload-server-distribution%2Fbuild.gradlej# https://github.com/palantir/atlasdb/raw/520532d9f7ef0e83256a56761c812bcaced86fd3/atlasdb-workload-server-distribution%2Fbuild.gradlej% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=520532d9f7ef0e83256a56761c812bcaced86fd3j' X  @@ -1,4 +1,8 @@
+apply plugin: 'com.palantir.sls-java-service-distribution'
+apply plugin: 'com.palantir.external-publish-dist'
+apply from: "../gradle/docker.gradle"
 apply from: "../gradle/shared.gradle"
+apply from: "../gradle/non-client-dist.gradle"
 
 dependencies {
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
@@ -26,4 +30,12 @@ dependencies {
 
     compileOnly 'org.immutables:value::annotations'
     annotationProcessor 'org.immutables:value'
+}
+
+
+distribution {
+    serviceName "atlasdb-workload-server"
+    mainClass 'com.palantir.atlasdb.workload.WorkloadServerLauncher'
+    args 'server', 'var/conf/workload-server.yml'
+    defaultJvmOpts "-Xms512m", "-Xmx512m"
 }
\ No newline at end of fileu}(j (1aa38d2e20d8b80b2f6242e4e4d7e5d93ed30d06j latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedj Kj K j  Kj! https://github.com/palantir/atlasdb/blob/520532d9f7ef0e83256a56761c812bcaced86fd3/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj# https://github.com/palantir/atlasdb/raw/520532d9f7ef0e83256a56761c812bcaced86fd3/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=520532d9f7ef0e83256a56761c812bcaced86fd3j' X  @@ -45,6 +45,7 @@
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
+import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutorService;
 
 public class WorkloadServerLauncher extends Application<WorkloadServerConfiguration> {
@@ -53,6 +54,7 @@ public class WorkloadServerLauncher extends Application<WorkloadServerConfigurat
     private static final UserAgent USER_AGENT = UserAgent.of(Agent.of("AtlasDbWorkloadServer", "0.0.0"));
 
     private final TaggedMetricRegistry taggedMetricRegistry = new DefaultTaggedMetricRegistry();
+    private final CountDownLatch workflowsRanLatch = new CountDownLatch(1);
 
     public static void main(String[] args) throws Exception {
         new WorkloadServerLauncher().run(args);
@@ -72,6 +74,15 @@ public void initialize(Bootstrap<WorkloadServerConfiguration> bootstrap) {
     public void run(WorkloadServerConfiguration configuration, Environment environment) {
         environment.getObjectMapper().registerModule(new Jdk8Module()).registerModule(new JavaTimeModule());
 
+        ExecutorService workflowRunnerExecutor = environment
+                .lifecycle()
+                .executorService("workflow-runner")
+                .build();
+
+        workflowRunnerExecutor.execute(() -> runWorkflows(configuration, environment));
+    }
+
+    private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {
         ExecutorService singleRowTwoCellsExecutorService = environment
                 .lifecycle()
                 .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
@@ -99,6 +110,17 @@ public void run(WorkloadServerConfiguration configuration, Environment environme
                         SingleRowTwoCellsWorkflows.class.getSimpleName(),
                         DurableWritesMetrics.of(taggedMetricRegistry))));
         log.info("antithesis: terminate");
+
+        workflowsRanLatch.countDown();
+
+        if (configuration.install().exitAfterRunning()) {
+            System.exit(0);
+        }
+    }
+
+    @VisibleForTesting
+    CountDownLatch workflowsRanLatch() {
+        return workflowsRanLatch;
     }
 
     @VisibleForTestingu}(j (ff10d177df86b86c34db48f796d962d80eb1d8a2j atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj modifiedj Kj K j  Kj! https://github.com/palantir/atlasdb/blob/520532d9f7ef0e83256a56761c812bcaced86fd3/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj# https://github.com/palantir/atlasdb/raw/520532d9f7ef0e83256a56761c812bcaced86fd3/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=520532d9f7ef0e83256a56761c812bcaced86fd3j' X
  @@ -28,6 +28,11 @@
 @Value.Immutable
 public interface WorkloadServerInstallConfiguration {
 
+    @JsonProperty("exit-after-running")
+    default boolean exitAfterRunning() {
+        return false;
+    }
+
     @JsonProperty("atlas")
     AtlasDbConfig atlas();
 u}(j (de8ac8137080a18591a69dabb98316ec9897dfa3j patlasdb-workload-server-distribution/src/test/java/com/palantir/atlasdb/workload/WorkloadServerLauncherTest.javaj modifiedj Kj Kj  Kj! https://github.com/palantir/atlasdb/blob/520532d9f7ef0e83256a56761c812bcaced86fd3/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncherTest.javaj# https://github.com/palantir/atlasdb/raw/520532d9f7ef0e83256a56761c812bcaced86fd3/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncherTest.javaj% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncherTest.java?ref=520532d9f7ef0e83256a56761c812bcaced86fd3j' X3  @@ -25,6 +25,7 @@
 import io.dropwizard.testing.ResourceHelpers;
 import io.dropwizard.testing.junit.DropwizardAppRule;
 import java.util.Map;
+import java.util.concurrent.TimeUnit;
 import org.junit.ClassRule;
 import org.junit.Test;
 
@@ -34,17 +35,18 @@ public class WorkloadServerLauncherTest {
             WorkloadServerLauncher.class, ResourceHelpers.resourceFilePath("workload-server.yml"));
 
     @Test
-    public void runsWorkflow() {
-        TaggedMetricRegistry metricRegistry =
-                ((WorkloadServerLauncher) RULE.getApplication()).getTaggedMetricRegistry();
+    public void runsWorkflow() throws InterruptedException {
+        WorkloadServerLauncher workloadServerLauncher = RULE.getApplication();
+        workloadServerLauncher.workflowsRanLatch().await(20, TimeUnit.SECONDS);
+        TaggedMetricRegistry metricRegistry = workloadServerLauncher.getTaggedMetricRegistry();
         MetricName metricName = MetricName.builder()
                 .safeName("com.palantir.atlasdb.keyvalue.api.KeyValueService.get")
                 .safeTags(Map.of("libraryOrigin", "atlasdb"))
                 .build();
         Timer kvsGetMetric = (Timer) metricRegistry.getMetrics().get(metricName);
         assertThat(kvsGetMetric.getCount())
-                .as("Count of KeyValueService get calls should be greater than zero,"
+                .as("Count of KeyValueService get calls should be greater than one,"
                         + "as a workflow should have been executed")
-                .isGreaterThan(0);
+                .isGreaterThan(1);
     }
 }u}(j (dfa528399321579bee1f6168c51760b2ad0bb6d9j build.gradlej modifiedj Kj K j  Kj! ^https://github.com/palantir/atlasdb/blob/520532d9f7ef0e83256a56761c812bcaced86fd3/build.gradlej# ]https://github.com/palantir/atlasdb/raw/520532d9f7ef0e83256a56761c812bcaced86fd3/build.gradlej% phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=520532d9f7ef0e83256a56761c812bcaced86fd3j' X  @@ -161,3 +161,9 @@ allprojects {
         systemProperty 'RUNNING_IN_GRADLE', 'true'
     }
 }
+
+jdks {
+    jdkDistribution('amazon-corretto') {
+        baseUrl = 'https://artifactory.palantir.build/artifactory/internal-dist-thirdparty/corretto'
+    }
+}ueu(d4bc942c934640acbe24a540001b3dd5a887d217}(sha(d4bc942c934640acbe24a540001b3dd5a887d217node_idEC_kwDOAjP5fdoAKGQ0YmM5NDJjOTM0NjQwYWNiZTI0YTU0MDAwMWIzZGQ1YTg4N2QyMTccommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-05-18T16:43:21Zu	committer}(j[ 
svc-changelogj] svc-changelog@palantir.comj_ 2023-05-18T16:43:21ZumessageAdd generated changelog entriestree}(jS (6618b316497b0d3b2425927490a6b997c6c11f68url`https://api.github.com/repos/palantir/atlasdb/git/trees/6618b316497b0d3b2425927490a6b997c6c11f68ujk bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d4bc942c934640acbe24a540001b3dd5a887d217
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmRmVakJEHYaJX37fAFQAAALCQD+Lyon48NL9IDY8YM98iZL1Gk6
x1G3FuNGB98QSVjvjB4A/1XMx3Z7dYMkDYT5NVSnfLHe/Q6xvPmbYmXWd/vhJ7aN
=Ng4k
-----END PGP SIGNATURE-----payloadX  tree 6618b316497b0d3b2425927490a6b997c6c11f68
parent 7c47f1eabca0c847dc6e959273f77448981d788c
author svc-changelog <svc-changelog@palantir.com> 1684428201 +0000
committer svc-changelog <svc-changelog@palantir.com> 1684428201 +0000

Add generated changelog entriesuujk ^https://api.github.com/repos/palantir/atlasdb/commits/d4bc942c934640acbe24a540001b3dd5a887d217html_urlShttps://github.com/palantir/atlasdb/commit/d4bc942c934640acbe24a540001b3dd5a887d217comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d4bc942c934640acbe24a540001b3dd5a887d217/commentsjY }(login
svc-changelogidJ#jU MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jk *https://api.github.com/users/svc-changelogjy  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuja }(j~ 
svc-changelogj J#jU MDQ6VXNlcjg0MDc3NjAzj 4https://avatars.githubusercontent.com/u/84077603?v=4j h5jk *https://api.github.com/users/svc-changelogjy  https://github.com/svc-changelogj 4https://api.github.com/users/svc-changelog/followersj Ahttps://api.github.com/users/svc-changelog/following{/other_user}j :https://api.github.com/users/svc-changelog/gists{/gist_id}j Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j 8https://api.github.com/users/svc-changelog/subscriptionsj /https://api.github.com/users/svc-changelog/orgsj 0https://api.github.com/users/svc-changelog/reposj ;https://api.github.com/users/svc-changelog/events{/privacy}j :https://api.github.com/users/svc-changelog/received_eventsj Userj uparents]}(jS (7c47f1eabca0c847dc6e959273f77448981d788cjk ^https://api.github.com/repos/palantir/atlasdb/commits/7c47f1eabca0c847dc6e959273f77448981d788cjy Shttps://github.com/palantir/atlasdb/commit/7c47f1eabca0c847dc6e959273f77448981d788cuastats}(totalK	additionsK	deletionsK ufiles]}(jS (91d691ab16f5b7a0ca12fc7a603e315687a4ed27filename$changelog/@unreleased/pr-6564.v2.ymlstatusaddedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/d4bc942c934640acbe24a540001b3dd5a887d217/changelog%2F%40unreleased%2Fpr-6564.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/d4bc942c934640acbe24a540001b3dd5a887d217/changelog%2F%40unreleased%2Fpr-6564.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6564.v2.yml?ref=d4bc942c934640acbe24a540001b3dd5a887d217patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Avoid Stream overhead in getRandomHostByActiveConnections
+  links:
+  - https://github.com/palantir/atlasdb/pull/6564uau(afc579d36cc24577d1c0103097a5c0f86f8060ed}(sha(afc579d36cc24577d1c0103097a5c0f86f8060ednode_idEC_kwDOAjP5fdoAKGFmYzU3OWQzNmNjMjQ1NzdkMWMwMTAzMDk3YTVjMGY4NmY4MDYwZWQcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-07-24T22:27:53Zu	committer}(j svc-excavator-botj svc-excavator-bot@palantir.comj 2023-07-24T22:27:53Zumessage3Excavator:  Update conjure plugins and dependenciestree}(j (e9b343251f2670be70e47329700b51367e4c5421url`https://api.github.com/repos/palantir/atlasdb/git/trees/e9b343251f2670be70e47329700b51367e4c5421uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/afc579d36cc24577d1c0103097a5c0f86f8060ed
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmS++ukJEMmvEkpISILgAACTKwD9FpCLOU4jKQkZW3dCYzgqXuSa
fw4gCIqZh7iHR+2jejgBAK8cqkJshhfBvBvS9uPtHOIxuDVmLe5sTCuw0o7Ju9VB
=+x2Z
-----END PGP SIGNATURE-----
payloadX+  tree e9b343251f2670be70e47329700b51367e4c5421
parent 2d3302e04df9f15bf77f64cd5155fa3aa1d3e0ef
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1690237673 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1690237673 +0000

Excavator:  Update conjure plugins and dependenciesuuj ^https://api.github.com/repos/palantir/atlasdb/commits/afc579d36cc24577d1c0103097a5c0f86f8060edhtml_urlShttps://github.com/palantir/atlasdb/commit/afc579d36cc24577d1c0103097a5c0f86f8060edcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/afc579d36cc24577d1c0103097a5c0f86f8060ed/commentsj }(loginsvc-excavator-botidJj MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j .https://api.github.com/users/svc-excavator-botj $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj }(j svc-excavator-botj Jj MDQ6VXNlcjMzMjY2MzY4j 4https://avatars.githubusercontent.com/u/33266368?v=4j h5j .https://api.github.com/users/svc-excavator-botj $https://github.com/svc-excavator-botj 8https://api.github.com/users/svc-excavator-bot/followersj  Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}j >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}j Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}j <https://api.github.com/users/svc-excavator-bot/subscriptionsj 3https://api.github.com/users/svc-excavator-bot/orgsj
 4https://api.github.com/users/svc-excavator-bot/reposj ?https://api.github.com/users/svc-excavator-bot/events{/privacy}j >https://api.github.com/users/svc-excavator-bot/received_eventsj Userj uparents]}(j (2d3302e04df9f15bf77f64cd5155fa3aa1d3e0efj ^https://api.github.com/repos/palantir/atlasdb/commits/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0efj Shttps://github.com/palantir/atlasdb/commit/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0efuastats}(totalK	additionsKJ	deletionsKJufiles](}(j (988990f8bb872675390ec90c8312f5b430bc49d8filename
versions.lockstatusmodifiedj, KGj- KGchangesKblob_url_https://github.com/palantir/atlasdb/blob/afc579d36cc24577d1c0103097a5c0f86f8060ed/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/afc579d36cc24577d1c0103097a5c0f86f8060ed/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=afc579d36cc24577d1c0103097a5c0f86f8060edpatchXjE  @@ -8,24 +8,24 @@ com.boundary:high-scale-lib:1.0.6 (2 constraints: 9d14d4a0)
 com.clearspring.analytics:stream:2.5.2 (1 constraints: 970f7788)
 com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
-com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c38132bb)
-com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bbb5dd72)
-com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 06bad036)
-com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e233e000)
-com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7f1c9ea4)
-com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2 (4 constraints: 2244332b)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 343f76b0)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6c30915e)
-com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 322bf7af)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6c30915e)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 41197bbb)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.2 (2 constraints: 251d9309)
-com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9b1c99a6)
-com.fasterxml.jackson.module:jackson-module-blackbird:2.14.2 (1 constraints: b40e625e)
-com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 2dce2620)
+com.fasterxml.jackson.core:jackson-annotations:2.15.2 (24 constraints: c88127cc)
+com.fasterxml.jackson.core:jackson-core:2.15.2 (22 constraints: c8b5699a)
+com.fasterxml.jackson.core:jackson-databind:2.15.2 (37 constraints: 16baa088)
+com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.15.2 (2 constraints: e3333101)
+com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.15.2 (1 constraints: 7f1c9ea4)
+com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.15.2 (4 constraints: 2244332b)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.15.2 (4 constraints: 343f76b0)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.2 (3 constraints: 6c30915e)
+com.fasterxml.jackson.datatype:jackson-datatype-joda:2.15.2 (2 constraints: 322bf7af)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.2 (3 constraints: 6c30915e)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.15.2 (2 constraints: dd2ecb69)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.15.2 (1 constraints: 41197bbb)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.15.2 (2 constraints: 251d9309)
+com.fasterxml.jackson.module:jackson-module-afterburner:2.15.2 (1 constraints: 9b1c99a6)
+com.fasterxml.jackson.module:jackson-module-blackbird:2.15.2 (1 constraints: b40e625e)
+com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.15.2 (2 constraints: dd2ecb69)
+com.fasterxml.jackson.module:jackson-module-parameter-names:2.15.2 (1 constraints: b40e625e)
+com.github.ben-manes.caffeine:caffeine:3.1.6 (13 constraints: 34ce7029)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -45,11 +45,11 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f994935f)
+com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: 1595607f)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
-com.google.guava:guava:32.1.1-jre (48 constraints: 03383c24)
+com.google.guava:guava:32.1.1-jre (48 constraints: d13c9656)
 com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava (1 constraints: bd17c918)
 com.google.j2objc:j2objc-annotations:2.8 (1 constraints: be09f5a0)
 com.google.protobuf:protobuf-java:3.21.9 (1 constraints: 4105453b)
@@ -67,28 +67,28 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:7.5.0 (5 constraints: cd530c72)
-com.palantir.conjure.java:conjure-undertow-annotations:7.5.0 (1 constraints: 0e051d36)
-com.palantir.conjure.java:conjure-undertow-lib:7.5.0 (2 constraints: 1d1c4081)
-com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 3d696e70)
-com.palantir.conjure.java.api:service-config:2.34.0 (5 constraints: 724d79ca)
-com.palantir.conjure.java.api:ssl-config:2.34.0 (3 constraints: e22a0da5)
-com.palantir.conjure.java.runtime:client-config:7.45.0 (6 constraints: bd6b2133)
-com.palantir.conjure.java.runtime:conjure-java-annotations:7.45.0 (1 constraints: c6188d9e)
-com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.45.0 (2 constraints: ca210f7b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.45.0 (6 constraints: 3f6ee88e)
-com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.45.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.45.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.45.0 (1 constraints: c6188d9e)
-com.palantir.conjure.java.runtime:keystores:7.45.0 (3 constraints: 202a4c60)
-com.palantir.conjure.java.runtime:refresh-utils:7.45.0 (2 constraints: 0a1e6f45)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.78.0 (2 constraints: 83295d02)
-com.palantir.dialogue:dialogue-blocking-channels:3.78.0 (2 constraints: e32369b4)
-com.palantir.dialogue:dialogue-clients:3.78.0 (1 constraints: 4405653b)
-com.palantir.dialogue:dialogue-core:3.78.0 (3 constraints: 883d62e3)
-com.palantir.dialogue:dialogue-futures:3.78.0 (3 constraints: dd33dac0)
-com.palantir.dialogue:dialogue-serde:3.78.0 (3 constraints: c62e7fa5)
-com.palantir.dialogue:dialogue-target:3.78.0 (7 constraints: a7763c6a)
+com.palantir.conjure.java:conjure-lib:7.14.0 (5 constraints: 8754055e)
+com.palantir.conjure.java:conjure-undertow-annotations:7.14.0 (1 constraints: 3e05593b)
+com.palantir.conjure.java:conjure-undertow-lib:7.14.0 (2 constraints: 7d1cc7ae)
+com.palantir.conjure.java.api:errors:2.35.0 (6 constraints: 4269c872)
+com.palantir.conjure.java.api:service-config:2.35.0 (5 constraints: 764da6cb)
+com.palantir.conjure.java.api:ssl-config:2.35.0 (4 constraints: 983b9c6e)
+com.palantir.conjure.java.runtime:client-config:7.57.0 (6 constraints: cc6b5039)
+com.palantir.conjure.java.runtime:conjure-java-annotations:7.57.0 (1 constraints: c918979e)
+com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.57.0 (2 constraints: cd21197b)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.57.0 (6 constraints: 486ed394)
+com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.57.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.57.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.57.0 (1 constraints: c918979e)
+com.palantir.conjure.java.runtime:keystores:7.57.0 (3 constraints: 262af060)
+com.palantir.conjure.java.runtime:refresh-utils:7.57.0 (2 constraints: 0d1e7945)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.86.0 (2 constraints: 7f29c301)
+com.palantir.dialogue:dialogue-blocking-channels:3.86.0 (2 constraints: e12337b4)
+com.palantir.dialogue:dialogue-clients:3.86.0 (1 constraints: 4305633b)
+com.palantir.dialogue:dialogue-core:3.86.0 (3 constraints: 833de8e1)
+com.palantir.dialogue:dialogue-futures:3.86.0 (3 constraints: da334bc0)
+com.palantir.dialogue:dialogue-serde:3.86.0 (3 constraints: c12e6ea4)
+com.palantir.dialogue:dialogue-target:3.86.0 (7 constraints: 9e760e64)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -97,28 +97,28 @@ com.palantir.docker.proxy:docker-proxy-rule-junit4:1.6.0 (1 constraints: 0905023
 com.palantir.goethe:goethe:0.11.0 (1 constraints: 3405263b)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
-com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
-com.palantir.safe-logging:logger:3.2.0 (24 constraints: 98a4d6fa)
-com.palantir.safe-logging:logger-slf4j:3.2.0 (1 constraints: 000e5942)
-com.palantir.safe-logging:logger-spi:3.2.0 (2 constraints: 0f1e997a)
-com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: f7178aeb)
-com.palantir.safe-logging:safe-logging:3.2.0 (28 constraints: 0cd34fc4)
+com.palantir.ri:resource-identifier:2.6.0 (3 constraints: aa2f1337)
+com.palantir.safe-logging:logger:3.5.0 (24 constraints: c4a4cd59)
+com.palantir.safe-logging:logger-slf4j:3.5.0 (1 constraints: 030e6242)
+com.palantir.safe-logging:logger-spi:3.5.0 (2 constraints: 151e387b)
+com.palantir.safe-logging:preconditions:3.5.0 (31 constraints: 30182f82)
+com.palantir.safe-logging:safe-logging:3.5.0 (28 constraints: 0ed394c2)
 com.palantir.safethreadlocalrandom:safe-thread-local-random:0.1.0 (3 constraints: 933225f9)
 com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
-com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 485c7290)
+com.palantir.tokens:auth-tokens:3.18.0 (5 constraints: 4d5c8992)
 com.palantir.tracing:tracing:6.17.0 (8 constraints: f97d045e)
 com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 1745b4f5)
 com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 46199abb)
-com.palantir.tritium:tritium-api:0.64.0 (6 constraints: 5052c7ce)
-com.palantir.tritium:tritium-caffeine:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-core:0.64.0 (5 constraints: 5d43281d)
-com.palantir.tritium:tritium-lib:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f96b65dd)
-com.palantir.tritium:tritium-proxy:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-registry:0.64.0 (13 constraints: 88ef0d92)
-com.palantir.tritium:tritium-slf4j:0.64.0 (2 constraints: bd138370)
-com.palantir.tritium:tritium-time:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-tracing:0.64.0 (1 constraints: 820e8359)
+com.palantir.tritium:tritium-api:0.68.0 (6 constraints: 64520bd6)
+com.palantir.tritium:tritium-caffeine:0.68.0 (1 constraints: 3c05433b)
+com.palantir.tritium:tritium-core:0.68.0 (5 constraints: 6d439821)
+com.palantir.tritium:tritium-lib:0.68.0 (1 constraints: 3c05433b)
+com.palantir.tritium:tritium-metrics:0.68.0 (7 constraints: 116c5de8)
+com.palantir.tritium:tritium-proxy:0.68.0 (1 constraints: 860e8f59)
+com.palantir.tritium:tritium-registry:0.68.0 (13 constraints: b4efdfbd)
+com.palantir.tritium:tritium-slf4j:0.68.0 (2 constraints: c1138f70)
+com.palantir.tritium:tritium-time:0.68.0 (1 constraints: 860e8f59)
+com.palantir.tritium:tritium-tracing:0.68.0 (1 constraints: 860e8f59)
 com.squareup:javapoet:1.13.0 (4 constraints: 102cc1ed)
 com.squareup:kotlinpoet:1.11.0 (1 constraints: 6a0c7f0d)
 com.thinkaurelius.thrift:thrift-server:0.3.7 (1 constraints: 980f6c88)
@@ -145,7 +145,7 @@ io.dropwizard:dropwizard-util:2.1.2 (12 constraints: 6eb0fdf0)
 io.dropwizard:dropwizard-validation:2.1.2 (8 constraints: 85778aa6)
 io.dropwizard.logback:logback-throttling-appender:1.1.9 (1 constraints: 830ed74f)
 io.dropwizard.metrics:metrics-annotation:4.2.12 (3 constraints: 6c2e5a89)
-io.dropwizard.metrics:metrics-core:4.2.12 (29 constraints: 2fcff7c9)
+io.dropwizard.metrics:metrics-core:4.2.19 (29 constraints: f5d02e7e)
 io.dropwizard.metrics:metrics-healthchecks:4.2.12 (5 constraints: 4b4964b0)
 io.dropwizard.metrics:metrics-jersey2:4.2.12 (1 constraints: 5c0e744e)
 io.dropwizard.metrics:metrics-jetty9:4.2.12 (3 constraints: 2729b8ff)
@@ -191,16 +191,16 @@ io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
 jakarta.activation:jakarta.activation-api:1.2.2 (3 constraints: 4e3741b6)
-jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 26793e31)
+jakarta.annotation:jakarta.annotation-api:1.3.5 (7 constraints: 396987f4)
 jakarta.inject:jakarta.inject-api:1.0.5 (13 constraints: decbc9f9)
 jakarta.servlet:jakarta.servlet-api:4.0.4 (10 constraints: 7b9def70)
 jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
 jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (17 constraints: 6f283f6d)
 jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
-joda-time:joda-time:2.12.5 (6 constraints: 845987f4)
+joda-time:joda-time:2.12.5 (6 constraints: b1596f2f)
 junit:junit:4.13.2 (8 constraints: 5a9c5baf)
-net.bytebuddy:byte-buddy:1.14.4 (3 constraints: 4025da91)
+net.bytebuddy:byte-buddy:1.14.4 (3 constraints: 41252092)
 net.bytebuddy:byte-buddy-agent:1.14.4 (1 constraints: 440b42de)
 net.java.dev.jna:jna:4.1.0 (2 constraints: 6e1bbbad)
 net.jpountz.lz4:lz4:1.3.0 (2 constraints: 971453a0)
@@ -217,15 +217,15 @@ org.apache.commons:commons-math3:3.2 (2 constraints: 90196ff8)
 org.apache.commons:commons-pool2:2.11.1 (1 constraints: 3705333b)
 org.apache.commons:commons-text:1.9 (1 constraints: b5102f9b)
 org.apache.httpcomponents.client5:httpclient5:5.2.1 (2 constraints: d518b1c3)
-org.apache.httpcomponents.core5:httpcore5:5.2.1 (3 constraints: 9f383c39)
+org.apache.httpcomponents.core5:httpcore5:5.2.2 (3 constraints: a038a439)
 org.apache.httpcomponents.core5:httpcore5-h2:5.2 (1 constraints: dd12c315)
 org.apache.thrift:libthrift:0.17.0 (4 constraints: 00372854)
-org.assertj:assertj-core:3.24.2 (4 constraints: a136076b)
+org.assertj:assertj-core:3.24.2 (4 constraints: a5360d6c)
 org.assertj:assertj-guava:3.24.2 (1 constraints: 3d05473b)
 org.awaitility:awaitility:4.2.0 (2 constraints: c71a893b)
 org.caffinitas.ohc:ohc-core:0.3.4 (1 constraints: 950f6988)
 org.checkerframework:checker-compat-qual:2.5.5 (2 constraints: 1f1d1717)
-org.checkerframework:checker-qual:3.33.0 (3 constraints: 6f2678e2)
+org.checkerframework:checker-qual:3.33.0 (3 constraints: 7026bde2)
 org.clojure:clojure:1.8.0 (1 constraints: 0b050836)
 org.codehaus.groovy:groovy:2.5.14 (23 constraints: b55185ba)
 org.codehaus.groovy:groovy-cli-picocli:2.5.14 (5 constraints: d54e9017)
@@ -284,7 +284,7 @@ org.jboss.xnio:xnio-api:3.8.7.Final (2 constraints: 771a3146)
 org.jboss.xnio:xnio-nio:3.8.7.Final (1 constraints: c80dcb30)
 org.jdbi:jdbi3-core:3.30.0 (2 constraints: 0e10d5bf)
 org.jdbi:jdbi3-sqlobject:3.30.0 (1 constraints: 38053d3b)
-org.jetbrains:annotations:23.0.0 (4 constraints: 0c35f637)
+org.jetbrains:annotations:24.0.1 (4 constraints: 10350c39)
 org.jetbrains.kotlin:kotlin-reflect:1.6.10 (1 constraints: 360b7dd6)
 org.jetbrains.kotlin:kotlin-stdlib:1.7.0 (7 constraints: 07713968)
 org.jetbrains.kotlin:kotlin-stdlib-common:1.7.0 (1 constraints: 110f8b6b)
@@ -293,7 +293,7 @@ org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.0 (3 constraints: c125b5a3)
 org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.5.0 (1 constraints: 4b0ea44e)
 org.jvnet:animal-sniffer-annotation:1.0 (1 constraints: f20b95eb)
 org.mindrot:jbcrypt:0.4 (2 constraints: 4714f171)
-org.mockito:mockito-core:5.3.1 (2 constraints: 5316c412)
+org.mockito:mockito-core:5.3.1 (2 constraints: 26166bfc)
 org.mpierce.metrics.reservoir:hdrhistogram-metrics-reservoir:1.1.3 (1 constraints: 0d10f991)
 org.objenesis:objenesis:3.3 (2 constraints: c71412ab)
 org.openjdk.jmh:jmh-core:1.36 (2 constraints: f51525d9)
@@ -314,7 +314,7 @@ org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
 org.wildfly.common:wildfly-common:1.6.0.Final (4 constraints: 3f390b3d)
 org.xerial:sqlite-jdbc:3.42.0.0 (1 constraints: 99054946)
 org.xerial.snappy:snappy-java:1.1.10.1 (2 constraints: 891546f4)
-org.yaml:snakeyaml:1.33 (5 constraints: 0a4c5570)
+org.yaml:snakeyaml:2.0 (5 constraints: d54b952a)
 
 [Test dependencies]
 cglib:cglib:3.2.8 (1 constraints: 1f0a62b5)
@@ -324,8 +324,8 @@ com.github.peterwippermann.junit4:parameterized-suite:1.1.0 (1 constraints: 0405
 com.github.stefanbirkner:system-rules:1.19.0 (1 constraints: 3d05443b)
 com.github.tomakehurst:wiremock-standalone:2.27.2 (1 constraints: 3f054a3b)
 com.google.code.findbugs:annotations:3.0.1 (1 constraints: 9e0aafc3)
-com.palantir.conjure.java.api:test-utils:2.34.0 (1 constraints: 3f054e3b)
-com.palantir.safe-logging:preconditions-assertj:3.2.0 (1 constraints: 07050036)
+com.palantir.conjure.java.api:test-utils:2.35.0 (1 constraints: 3f054e3b)
+com.palantir.safe-logging:preconditions-assertj:3.5.0 (1 constraints: 07050036)
 com.palantir.tracing:tracing-test-utils:6.17.0 (1 constraints: 3e05563b)
 com.spotify.dataenum:dataenum:1.4.1 (1 constraints: e9105ac1)
 com.thoughtworks.qdox:qdox:1.12.1 (1 constraints: 6d11f7d9)u#     }(j (661fe88dbac6c0abeea7597392a1891c7cfceb01j2 versions.propsj4 modifiedj, Kj- Kj6 Kj7 `https://github.com/palantir/atlasdb/blob/afc579d36cc24577d1c0103097a5c0f86f8060ed/versions.propsj9 _https://github.com/palantir/atlasdb/raw/afc579d36cc24577d1c0103097a5c0f86f8060ed/versions.propsj; rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=afc579d36cc24577d1c0103097a5c0f86f8060edj= X   @@ -25,9 +25,9 @@ com.palantir.common:streams = 2.1.0
 com.palantir.config.crypto:* = 5.1.0
 com.palantir.conjure.java.api:* = 2.29.0
 com.palantir.conjure.java.runtime:* = 7.39.0
-com.palantir.conjure.java:* = 7.5.0
-com.palantir.conjure:conjure = 4.36.0
-com.palantir.dialogue:* = 3.78.0
+com.palantir.conjure.java:* = 7.14.0
+com.palantir.conjure:conjure = 4.38.0
+com.palantir.dialogue:* = 3.86.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
 com.palantir.goethe:* = 0.11.0ueu(9f77e77b3a9acee1ca612588945b539a5cb2aa21}(sha(9f77e77b3a9acee1ca612588945b539a5cb2aa21node_idEC_kwDOAjP5fdoAKDlmNzdlNzdiM2E5YWNlZTFjYTYxMjU4ODk0NWI1MzlhNWNiMmFhMjEcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T23:28:37Zu	committer}(jQ 
Ahmed AlouanejS aalouane@palantir.comjU 2023-05-15T23:28:37Zumessagewowtree}(jI (7798105d8a030b29d8973acfbb90d62ffad4930furl`https://api.github.com/repos/palantir/atlasdb/git/trees/7798105d8a030b29d8973acfbb90d62ffad4930fuja bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9f77e77b3a9acee1ca612588945b539a5cb2aa21
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiwCUACgkQPlMHVIT1
yhozvgf8D4OGBIP7SiD2kXiPnJWBdzgu3ncYb9wASSk4MOHG3VvxAFLgHqqZ2QNL
B2ArmMsuRmv4+PEMKRNjqXAG374RHMc0gG7+xu1fJhOtJ9W7zWIEZ9NlIOov27ew
uC8lkSfybS6C+F8b7kGh7wAXyPiUk09BerUAQLfZH16DOYlKNIiWeE/2e18D+UfS
f96zYEbKn5q56qxNUI2CF/eai6b07a3jy5nXSaOoVCNaEF+Q/IrW51k9EVmhEmGO
utX68CKvMm3VfQsiWh+AjT5aORpH4s86OkRSiNA2E6UK+yq6zQMw1ym+N1taQ4Lw
Q7GC0F34F8FLLo+jKAn4i8JajOsAPA==
=0oi6
-----END PGP SIGNATURE-----payloadtree 7798105d8a030b29d8973acfbb90d62ffad4930f
parent 8a3a44d88919bd9e215d2ef23f46d53dca4e8e36
author Ahmed Alouane <aalouane@palantir.com> 1684193317 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684193317 +0100

wow
uuja ^https://api.github.com/repos/palantir/atlasdb/commits/9f77e77b3a9acee1ca612588945b539a5cb2aa21html_urlShttps://github.com/palantir/atlasdb/commit/9f77e77b3a9acee1ca612588945b539a5cb2aa21comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9f77e77b3a9acee1ca612588945b539a5cb2aa21/commentsjO }(loginergo14idJjK MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5ja #https://api.github.com/users/ergo14jo https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujW }(jt ergo14jv JjK MDQ6VXNlcjMwOTAzNzM2jx 4https://avatars.githubusercontent.com/u/30903736?v=4jz h5ja #https://api.github.com/users/ergo14jo https://github.com/ergo14j} -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jI (8a3a44d88919bd9e215d2ef23f46d53dca4e8e36ja ^https://api.github.com/repos/palantir/atlasdb/commits/8a3a44d88919bd9e215d2ef23f46d53dca4e8e36jo Shttps://github.com/palantir/atlasdb/commit/8a3a44d88919bd9e215d2ef23f46d53dca4e8e36uastats}(totalK	additionsK	deletionsKufiles]}(jI (20f28d02d3d4a69c6fd9fcdf1b72da410836b9edfilename.circleci/config.ymlstatusmodifiedj Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/9f77e77b3a9acee1ca612588945b539a5cb2aa21/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/9f77e77b3a9acee1ca612588945b539a5cb2aa21/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=9f77e77b3a9acee1ca612588945b539a5cb2aa21patchX  @@ -105,7 +105,7 @@ jobs:
   deploy:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: 2xlarge+
+    resource_class: 2xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"uau(374053bfd4603324814ba15be3120eff4c7955dd}(sha(374053bfd4603324814ba15be3120eff4c7955ddnode_idEC_kwDOAjP5fdoAKDM3NDA1M2JmZDQ2MDMzMjQ4MTRiYTE1YmUzMTIwZWZmNGM3OTU1ZGQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-18T12:45:44Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-04-18T12:45:44Zumessagefix class typestree}(j (204384a35abf0b19405dabef5cc4f8e059376499url`https://api.github.com/repos/palantir/atlasdb/git/trees/204384a35abf0b19405dabef5cc4f8e059376499uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/374053bfd4603324814ba15be3120eff4c7955dd
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ+kPgACgkQmPPOpKR4
XS3PLQf+LWI4k7rKVK1Q7hygRSkTCiHaPhiD5uIK8h34/XYrbtoTVExGmTmKThKE
P30/EoDEC0b4/Iv/CDM+VL8j+cXGqpP8Ac40vzQWPfKcocbgyOl1dzQqF8rsMwY7
BI+bmNHC83Zs2uijYuHQ+EwmB34EGFwacfm4Y6mccIyymXemrn1kHw0bJ1WPaQ6l
i3DxcFU1ghx/b0tC+443RFWiDxP/UcmXq/NTSqsFnBbA85NrXl5VMYYTHrrgvBnf
ncJ8MKOI6lXfOR3LWD4TlH31GaDpQiR+iIO/oJHmnGesvaImIRfxwl4Y8gAsrNqu
Or6LhjPR4oYkzgSxoedPeQLIfZeURA==
=//th
-----END PGP SIGNATURE-----payloadtree 204384a35abf0b19405dabef5cc4f8e059376499
parent 32dac63e002eb6890ead391c7783bd1c86af8443
author Sam Kramer <skramer@palantir.com> 1681821944 +0100
committer Sam Kramer <skramer@palantir.com> 1681821944 +0100

fix class types
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/374053bfd4603324814ba15be3120eff4c7955ddhtml_urlShttps://github.com/palantir/atlasdb/commit/374053bfd4603324814ba15be3120eff4c7955ddcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/374053bfd4603324814ba15be3120eff4c7955dd/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj  -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (32dac63e002eb6890ead391c7783bd1c86af8443j ^https://api.github.com/repos/palantir/atlasdb/commits/32dac63e002eb6890ead391c7783bd1c86af8443j Shttps://github.com/palantir/atlasdb/commit/32dac63e002eb6890ead391c7783bd1c86af8443uastats}(totalK.	additionsK	deletionsKufiles](}(j (54b290f2339c2518740eb0ba35e08de26406b945filenameaatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javastatusmodifiedj" Kj# KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/374053bfd4603324814ba15be3120eff4c7955dd/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaraw_urlhttps://github.com/palantir/atlasdb/raw/374053bfd4603324814ba15be3120eff4c7955dd/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=374053bfd4603324814ba15be3120eff4c7955ddpatchX  @@ -20,6 +20,7 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.OnlyCommittedWitnessedTransactionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
@@ -84,7 +85,7 @@ private List<WitnessedTransaction> runTransactionTask() {
      * Sorts transactions by their effective timestamp and filters out transactions that are not fully committed.
      */
     @VisibleForTesting
-    List<WitnessedTransaction> sortAndFilterTransactions(List<WitnessedTransaction> unorderedTransactions) {
+    List<FullyWitnessedTransaction> sortAndFilterTransactions(List<WitnessedTransaction> unorderedTransactions) {
         OnlyCommittedWitnessedTransactionVisitor visitor =
                 new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
         return StreamEx.of(unorderedTransactions)u}(j (f8a19900eee6cf1226affe562f3f1ad73f58040dj( eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javaj* modifiedj" Kj# Kj, K+j- https://github.com/palantir/atlasdb/blob/374053bfd4603324814ba15be3120eff4c7955dd/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj/ https://github.com/palantir/atlasdb/raw/374053bfd4603324814ba15be3120eff4c7955dd/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=374053bfd4603324814ba15be3120eff4c7955ddj3 X^  @@ -29,7 +29,6 @@
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.List;
 import java.util.concurrent.ScheduledExecutorService;
@@ -57,8 +56,8 @@ public void handlesExceptionsInUnderlyingTasks() {
 
     @Test
     public void returnsUnderlyingWitnessedTransactions() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
 
         assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight)))
                 .containsExactly(twoToEight);
@@ -68,19 +67,19 @@ public void returnsUnderlyingWitnessedTransactions() {
 
     @Test
     public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
-        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
 
         assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
                 .containsExactly(fourToSix, threeToSeven, twoToEight);
     }
 
     @Test
     public void sortsReadOnlyTransactionsByStartTimestamp() {
-        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        WitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
 
         assertThat(workflow.sortAndFilterTransactions(
                         ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
@@ -89,13 +88,13 @@ public void sortsReadOnlyTransactionsByStartTimestamp() {
 
     @Test
     public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
 
-        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        WitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
 
         assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(
                         twoToEight, readOnlyAtNine, fourToSix, readOnlyAtFive, readOnlyAtThree, readOnlyAtSeven)))
@@ -105,14 +104,14 @@ public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
 
     @Test
     public void filterRemovesUncommittedTransactions() {
-        WitnessedTransaction committedMaybeWitnessedTransaction =
+        MaybeWitnessedTransaction committedMaybeWitnessedTransaction =
                 createMaybeWitnessedTransactionWithoutActions(1, 3, true);
-        WitnessedTransaction notCommittedTransaction = createMaybeWitnessedTransactionWithoutActions(2, 8, false);
-        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        MaybeWitnessedTransaction notCommittedTransaction = createMaybeWitnessedTransactionWithoutActions(2, 8, false);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
         assertThat(workflow.sortAndFilterTransactions(List.of(
                         committedMaybeWitnessedTransaction, notCommittedTransaction, readOnlyAtFive, fourToSix)))
-                .containsExactly(committedMaybeWitnessedTransaction, readOnlyAtFive, fourToSix);
+                .containsExactly(committedMaybeWitnessedTransaction.toFullyWitnessed(), readOnlyAtFive, fourToSix);
     }
 
     private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
@@ -133,11 +132,11 @@ private MaybeWitnessedTransaction createMaybeWitnessedTransactionWithoutActions(
                 .build();
     }
 
-    private static WitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
+    private static FullyWitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
         return FullyWitnessedTransaction.builder().startTimestamp(start).build();
     }
 
-    private static WitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
+    private static FullyWitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
         return FullyWitnessedTransaction.builder()
                 .startTimestamp(start)
                 .commitTimestamp(commit)ueu(97b9b925f1bd7be4f93e0fe53cdfc49b4fa63b6e}(sha(97b9b925f1bd7be4f93e0fe53cdfc49b4fa63b6enode_idEC_kwDOAjP5fdoAKDk3YjliOTI1ZjFiZDdiZTRmOTNlMGZlNTNjZGZjNDliNGZhNjNiNmUcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-16T12:05:38Zu	committer}(jG svc-autoreleasejI -pd-foundry-infrastructure-notify@palantir.comjK 2023-05-16T12:05:38Zumessage#Autorelease 0.854.0-rc24

[skip ci]tree}(j? (a18ca3c47d19bb53eaf4a075537d45f4ac27b690url`https://api.github.com/repos/palantir/atlasdb/git/trees/a18ca3c47d19bb53eaf4a075537d45f4ac27b690ujW bhttps://api.github.com/repos/palantir/atlasdb/git/commits/97b9b925f1bd7be4f93e0fe53cdfc49b4fa63b6e
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRjcZMACgkQhbrR8ip7mDBSzQEA2ViuhboE9bO+/QR3bng1hZnr
83CMM8QLGE+CqnsI5vsBAO90AM79m4+DgvOO5KZthceT43S6TTsy3a1Q0R2NHW2T
=X22U
-----END PGP SIGNATURE-----
payloadX)  tree a18ca3c47d19bb53eaf4a075537d45f4ac27b690
parent 3d35f51937485b2d7f35647f112307eaae750c8c
author aalouane <30903736+ergo14@users.noreply.github.com> 1684238738 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684238738 +0000

Autorelease 0.854.0-rc24

[skip ci]uujW ^https://api.github.com/repos/palantir/atlasdb/commits/97b9b925f1bd7be4f93e0fe53cdfc49b4fa63b6ehtml_urlShttps://github.com/palantir/atlasdb/commit/97b9b925f1bd7be4f93e0fe53cdfc49b4fa63b6ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/97b9b925f1bd7be4f93e0fe53cdfc49b4fa63b6e/commentsjE }(loginergo14idJjA MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jW #https://api.github.com/users/ergo14je https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujM }(jj svc-autoreleasejl J(jA MDQ6VXNlcjUxNzE4MzQ2jn 4https://avatars.githubusercontent.com/u/51718346?v=4jp h5jW ,https://api.github.com/users/svc-autoreleaseje "https://github.com/svc-autoreleasejs 6https://api.github.com/users/svc-autorelease/followersju Chttps://api.github.com/users/svc-autorelease/following{/other_user}jw <https://api.github.com/users/svc-autorelease/gists{/gist_id}jy Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j{ :https://api.github.com/users/svc-autorelease/subscriptionsj} 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(j? (3d35f51937485b2d7f35647f112307eaae750c8cjW ^https://api.github.com/repos/palantir/atlasdb/commits/3d35f51937485b2d7f35647f112307eaae750c8cje Shttps://github.com/palantir/atlasdb/commit/3d35f51937485b2d7f35647f112307eaae750c8cuastats}(totalK 	additionsK 	deletionsK ufiles]u(46f8ba918722e9153e09b4c9385812631f685207}(sha(46f8ba918722e9153e09b4c9385812631f685207node_idEC_kwDOAjP5fdoAKDQ2ZjhiYTkxODcyMmU5MTUzZTA5YjRjOTM4NTgxMjYzMWY2ODUyMDccommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-07-19T11:32:45Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-07-19T11:32:45ZumessageAutorelease 0.898.0

[skip ci]tree}(j (9293c8e97e86c4071ec65272d7bb84680562be00url`https://api.github.com/repos/palantir/atlasdb/git/trees/9293c8e97e86c4071ec65272d7bb84680562be00uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/46f8ba918722e9153e09b4c9385812631f685207
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmS3yeEACgkQhbrR8ip7mDDqIAEAsFzxlMhD9DnWpZncrrYRMmCA
Vwo3QJwh8rqCJ3zMKyABALgzxdXyhg+FvqZt5x3iJNKJnF68p/3AkrNZoXUOrfhq
=BW5n
-----END PGP SIGNATURE-----
payloadX0  tree 9293c8e97e86c4071ec65272d7bb84680562be00
parent ce30466603b4041b56400dea78e01588e4ba3369
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1689766365 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1689766365 +0000

Autorelease 0.898.0

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/46f8ba918722e9153e09b4c9385812631f685207html_urlShttps://github.com/palantir/atlasdb/commit/46f8ba918722e9153e09b4c9385812631f685207comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/46f8ba918722e9153e09b4c9385812631f685207/commentsj }(loginsvc-autoreleaseidJ(j MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(j MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(j (ce30466603b4041b56400dea78e01588e4ba3369j ^https://api.github.com/repos/palantir/atlasdb/commits/ce30466603b4041b56400dea78e01588e4ba3369j Shttps://github.com/palantir/atlasdb/commit/ce30466603b4041b56400dea78e01588e4ba3369uastats}(totalK 	additionsK 	deletionsK ufiles]}(j (53dbb997fbc87d47ddeeae107c0d0a5d610f7820filename changelog/0.898.0/pr-6659.v2.ymlstatusrenamedj	 K j
 K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/46f8ba918722e9153e09b4c9385812631f685207/changelog%2F0.898.0%2Fpr-6659.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/46f8ba918722e9153e09b4c9385812631f685207/changelog%2F0.898.0%2Fpr-6659.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.898.0%2Fpr-6659.v2.yml?ref=46f8ba918722e9153e09b4c9385812631f685207previous_filename$changelog/@unreleased/pr-6659.v2.ymluau(1338241f6bb85070f803671085f848ccb3cd5b67}(sha(1338241f6bb85070f803671085f848ccb3cd5b67node_idEC_kwDOAjP5fdoAKDEzMzgyNDFmNmJiODUwNzBmODAzNjcxMDg1Zjg0OGNjYjNjZDViNjccommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-16T11:50:16Zu	committer}(j& svc-autoreleasej( -pd-foundry-infrastructure-notify@palantir.comj* 2023-05-16T11:50:16Zumessage#Autorelease 0.854.0-rc23

[skip ci]tree}(j (7c68fd200471ef95463533a968f8754fa65d0e43url`https://api.github.com/repos/palantir/atlasdb/git/trees/7c68fd200471ef95463533a968f8754fa65d0e43uj6 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1338241f6bb85070f803671085f848ccb3cd5b67
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRjbfkACgkQhbrR8ip7mDDZcgEAgkxrMdVWZuKJDExNC2fK8x6+
iWdXVwOKXleuJgB4hj0BAK79tSRD9egS0wprZNhwF7J8xFmG4n2GCOhBWKP0sxg3
=kSk5
-----END PGP SIGNATURE-----
payloadX)  tree 7c68fd200471ef95463533a968f8754fa65d0e43
parent 294519fa6f6dc1183d59fdef9ef3b338849b7679
author aalouane <30903736+ergo14@users.noreply.github.com> 1684237816 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684237816 +0000

Autorelease 0.854.0-rc23

[skip ci]uuj6 ^https://api.github.com/repos/palantir/atlasdb/commits/1338241f6bb85070f803671085f848ccb3cd5b67html_urlShttps://github.com/palantir/atlasdb/commit/1338241f6bb85070f803671085f848ccb3cd5b67comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1338241f6bb85070f803671085f848ccb3cd5b67/commentsj$ }(loginergo14idJj  MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j6 #https://api.github.com/users/ergo14jD https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj, }(jI svc-autoreleasejK J(j  MDQ6VXNlcjUxNzE4MzQ2jM 4https://avatars.githubusercontent.com/u/51718346?v=4jO h5j6 ,https://api.github.com/users/svc-autoreleasejD "https://github.com/svc-autoreleasejR 6https://api.github.com/users/svc-autorelease/followersjT Chttps://api.github.com/users/svc-autorelease/following{/other_user}jV <https://api.github.com/users/svc-autorelease/gists{/gist_id}jX Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jZ :https://api.github.com/users/svc-autorelease/subscriptionsj\ 1https://api.github.com/users/svc-autorelease/orgsj^ 2https://api.github.com/users/svc-autorelease/reposj` =https://api.github.com/users/svc-autorelease/events{/privacy}jb <https://api.github.com/users/svc-autorelease/received_eventsjd Userjf uparents]}(j (294519fa6f6dc1183d59fdef9ef3b338849b7679j6 ^https://api.github.com/repos/palantir/atlasdb/commits/294519fa6f6dc1183d59fdef9ef3b338849b7679jD Shttps://github.com/palantir/atlasdb/commit/294519fa6f6dc1183d59fdef9ef3b338849b7679uastats}(totalK 	additionsK 	deletionsK ufiles]u(25c99a096ed2cd60150e4e069ffec9913fc91438}(sha(25c99a096ed2cd60150e4e069ffec9913fc91438node_idEC_kwDOAjP5fdoAKDI1Yzk5YTA5NmVkMmNkNjAxNTBlNGUwNjlmZmVjOTkxM2ZjOTE0Mzgcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-04T11:57:24Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-07-04T11:57:24ZumessageOMerge remote-tracking branch 'origin/develop' into jkong/antithesis-range-two-8tree}(j (b842060fe8689c3329d6d332c17c1832cd21d1a1url`https://api.github.com/repos/palantir/atlasdb/git/trees/b842060fe8689c3329d6d332c17c1832cd21d1a1uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/25c99a096ed2cd60150e4e069ffec9913fc91438
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSkCSYACgkQTLdFKain
zjwtFwgAgIG6KbgVBkzmZCTfx6Y5j6DFEGTmKx4tyeNQ8yFAH/jyG7UfU2S0v29q
Bs+P5pBh+cRWzybIFTBvu+i0hZPu0yJH4jEWpayxS1ln4tWytGxfXHP0sZOdFOgq
/5zRkhIQcsk9JFVKanSjOL5nulEW+wh8JCXFjMqhVFY66d2enterDxXk7Oh82Ha2
oWvStvSXwtNTz3p87F43Dj5A8qwBh0q3s5d/bzPAOW2zDrwhCq1ooxlJEUDNs6/N
/hlTtFLQlwXZdL5FXYKLKaLxEgMK4YcS0X+9Nl+xQNYxcAuQoe0jCp9ojC3M5/zc
t45AgLnNZw6snhQWdD+1aOTV+JynQQ==
=v5SO
-----END PGP SIGNATURE-----payloadXT  tree b842060fe8689c3329d6d332c17c1832cd21d1a1
parent 075bc511bd1d5460118ec0f8a1896314492b80c3
parent 9988301a91b9c55408f2b0c9b544a7c70730fd95
author Jeremy Kong <jkong@palantir.com> 1688471844 +0100
committer Jeremy Kong <jkong@palantir.com> 1688471844 +0100

Merge remote-tracking branch 'origin/develop' into jkong/antithesis-range-two-8
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/25c99a096ed2cd60150e4e069ffec9913fc91438html_urlShttps://github.com/palantir/atlasdb/commit/25c99a096ed2cd60150e4e069ffec9913fc91438comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/25c99a096ed2cd60150e4e069ffec9913fc91438/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents](}(j (075bc511bd1d5460118ec0f8a1896314492b80c3j ^https://api.github.com/repos/palantir/atlasdb/commits/075bc511bd1d5460118ec0f8a1896314492b80c3j Shttps://github.com/palantir/atlasdb/commit/075bc511bd1d5460118ec0f8a1896314492b80c3u}(j (9988301a91b9c55408f2b0c9b544a7c70730fd95j ^https://api.github.com/repos/palantir/atlasdb/commits/9988301a91b9c55408f2b0c9b544a7c70730fd95j Shttps://github.com/palantir/atlasdb/commit/9988301a91b9c55408f2b0c9b544a7c70730fd95uestats}(totalM
	additionsM		deletionsM2ufiles](}(j (7e1fc418d0ab8950f7d0a2c8a9ed46fe72c28ab9filenamePatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/KeyValueService.javastatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438patchX  @@ -711,4 +711,11 @@ default boolean shouldTriggerCompactions() {
     default boolean isValid() {
         return true;
     }
+
+    @DoDelegate
+    default boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        // This is in general True, but we're setting to false to start rollout only for C* of stopping to check for
+        // immutable timestamp lock on non empty reads on thoroughly swept tables.
+        return false;
+    }
 }u}(j (783bc3b5467ffef2ad1e64d4a8aefd0da4ee44ddj jatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/TransactionCommitLockInfo.javaj addedj K%j K j K%j https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j Xg  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api.expectations;
+
+import org.immutables.value.Value;
+
+/**
+ * Data about the amount of commit locks requested by a transaction.
+ */
+@Value.Immutable
+public interface TransactionCommitLockInfo {
+
+    /**
+     * The number of cell-level locks requested as part of the commit protocol (excluding any user-defined locking).
+     */
+    long cellCommitLocksRequested();
+
+    /**
+     * The number of row-level locks requested as part of the commit protocol (excluding any user-defined locking).
+     * For write transactions, this includes the single row lock that is requested for the transaction table itself.
+     */
+    long rowCommitLocksRequested();
+}u}(j (22dc29e0664eb2fea2e0669bb248c2333fbefdd4j atlasdb-cassandra-integration-tests/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceIntegrationTest.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X=  @@ -709,6 +709,12 @@ public void testMultiCheckAndSetIndependentlyFails() {
         verifyMultiCheckAndSet(ImmutableMap.of(firstTestCell, val(0, 0), nextTestCell, val(0, 1)));
     }
 
+    @Test
+    public void cassandraHasStrictlyNonDecreasingSweep() {
+        assertThat(keyValueService.sweepsEntriesInStrictlyNonDecreasingFashion())
+                .isTrue();
+    }
+
     private void verifyMultiCheckAndSet(Map<Cell, byte[]> expectedValues) {
         Multimap<Cell, Long> timestamps = keyValueService.getAllTimestamps(TEST_TABLE, expectedValues.keySet(), 1L);
 u}(j (d7d2d87671c66d0e3f85762da04755fb7955d5b1j iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -2033,6 +2033,11 @@ public ClusterAvailabilityStatus getClusterAvailabilityStatus() {
         return clusterStatus;
     }
 
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return true;
+    }
+
     private static boolean isClusterQuorumAvaialble(ClusterAvailabilityStatus clusterStatus) {
         return clusterStatus.equals(ClusterAvailabilityStatus.ALL_AVAILABLE)
                 || clusterStatus.equals(ClusterAvailabilityStatus.QUORUM_AVAILABLE);u}(j (4e16bd6856b710e2bea5df31215dec94adb90e6bj batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaj modifiedj Kj Kj K#j https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X
  @@ -148,18 +148,17 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
                 hostToDatacentersThisRefresh.put(onlyHost, onlyEndpoint.getDatacenter());
             } else { // normal case, large cluster with many vnodes
                 for (TokenRange tokenRange : tokenRanges) {
-                    Map<CassandraServer, String> hostToDatacentersOnThisTokenRange = KeyedStream.of(
-                                    tokenRange.getEndpoint_details())
-                            .mapKeys(EndpointDetails::getHost)
-                            .mapKeys(this::getAddressForHostThrowUnchecked)
-                            .map(EndpointDetails::getDatacenter)
-                            .collectToMap();
-
-                    ImmutableSet<CassandraServer> hosts =
-                            ImmutableSet.copyOf(hostToDatacentersOnThisTokenRange.keySet());
-                    servers.addAll(hosts);
-                    hostToDatacentersThisRefresh.putAll(hostToDatacentersOnThisTokenRange);
+                    List<EndpointDetails> endpointDetails = tokenRange.getEndpoint_details();
+                    ImmutableSet.Builder<CassandraServer> hostsBuilder =
+                            ImmutableSet.builderWithExpectedSize(endpointDetails.size());
+                    for (EndpointDetails endpoint : endpointDetails) {
+                        CassandraServer cassandraServer = getAddressForHostThrowUnchecked(endpoint.getHost());
+                        hostToDatacentersThisRefresh.put(cassandraServer, endpoint.getDatacenter());
+                        hostsBuilder.add(cassandraServer);
+                        servers.add(cassandraServer);
+                    }
 
+                    ImmutableSet<CassandraServer> hosts = hostsBuilder.build();
                     LightweightOppToken startToken = LightweightOppToken.fromHex(tokenRange.getStart_token());
                     LightweightOppToken endToken = LightweightOppToken.fromHex(tokenRange.getEnd_token());
                     if (startToken.compareTo(endToken) <= 0) {
@@ -288,17 +287,15 @@ private CassandraServer getAddressForHostThrowUnchecked(String host) {
     CassandraServer getAddressForHost(String inputHost) throws UnknownHostException {
         Map<String, String> hostnamesByIp = hostnameByIpSupplier.get();
         String cassandraHostName = hostnamesByIp.getOrDefault(inputHost, inputHost);
-        return CassandraServer.of(cassandraHostName, getReachableProxies(cassandraHostName));
-    }
-
-    private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) throws UnknownHostException {
-        InetAddress[] resolvedHosts = InetAddress.getAllByName(inputHost);
+        InetAddress[] resolvedHosts = InetAddress.getAllByName(cassandraHostName);
         int knownPort = getKnownPort();
 
         // It is okay to have reachable proxies that do not have a hostname
-        return Stream.of(resolvedHosts)
-                .map(inetAddr -> new InetSocketAddress(inetAddr, knownPort))
-                .collect(ImmutableSet.toImmutableSet());
+        ImmutableSet.Builder<InetSocketAddress> proxies = ImmutableSet.builderWithExpectedSize(resolvedHosts.length);
+        for (InetAddress host : resolvedHosts) {
+            proxies.add(new InetSocketAddress(host, knownPort));
+        }
+        return CassandraServer.of(cassandraHostName, proxies.build());
     }
 
     private int getKnownPort() throws UnknownHostException {u}(j (502ae947a588e3d9dcebd649967cafd91a08374bj datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppTokenTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -46,9 +46,9 @@ public static Collection<Object[]> data() {
     @Test
     public void inputsAreValidBase16Strings() {
         assertThat(input).matches("^[0-9a-fA-F]*$");
-        assertThat(input.length() % 2 == 0)
+        assertThat(input.length() % 2)
                 .as("input must be even length to base16 decode")
-                .isTrue();
+                .isEqualTo(0);
         assertThat(CassandraHex.hexToBytes(input)).hasSize(input.length() / 2);
     }
 u}(j (a0daffcaa0a4ea862e707fb50afd62871f197c8ej ]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/DualWriteKeyValueService.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -318,4 +318,9 @@ public List<byte[]> getRowKeysInRange(TableReference tableRef, byte[] startRow,
     public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<Cell, Long> timestampByCell) {
         return delegate1.getAsync(tableRef, timestampByCell);
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate1.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(j (1ab84302f51e4bad9eef3b306d5f224b087a44d4j \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/InMemoryKeyValueService.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X-  @@ -735,6 +735,12 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
         return Futures.immediateFuture(get(tableRef, timestampByCell));
     }
 
+    // Marking this as true as it's only used for tests, so we can better replicate Cassandra behaviour.
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return true;
+    }
+
     /**
      * This takes out a reentrant read lock. It is only exclusive specifically with
      * {@link #multiCheckAndSet(MultiCheckAndSetRequest)}.u}(j (d41572b88d0c8b10e1042d4d64b59e123b40c6c1j ]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/ProfilingKeyValueService.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X|  @@ -554,4 +554,9 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
                         LoggingArgs.durationMillis(stopwatch)),
                 logCellResultSize(4L));
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(j (aee4560b5007342d777bb076c6630351e4618aa1j [atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/TracingKeyValueService.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -531,6 +531,11 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
         });
     }
 
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate().sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
+
     @MustBeClosed
     private static CloseableTracer startLocalTrace(@CompileTimeConstant final String operation) {
         TraceStatistic original = TraceStatistics.getCurrentAndClear();u}(j (b901787debfe08e9dc92324e1ecea39bb182ade1j Vatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javaj modifiedj K(j K
j K2j https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j Xq  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.table.description;
 
+import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
@@ -29,27 +30,40 @@
 public final class SweepStrategy {
 
     public static final SweepStrategy CONSERVATIVE =
-            new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false);
-    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), true);
+            new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false, false);
+    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), false, true);
 
     private final Optional<SweeperStrategy> sweeperStrategy;
-    private final boolean mustCheckImmutableLockAfterReads;
+    private final boolean mustCheckImmutableLockIfAllCellsReadAndPresent;
 
-    private SweepStrategy(Optional<SweeperStrategy> sweeperStrategy, boolean mustCheckImmutableLockAfterReads) {
+    // When we either read an empty value or perform reads like a range-scan, where we can't be certain of how many
+    // values we expect.
+    private final boolean mustCheckImmutableLockIfNonExhaustiveRead;
+
+    private SweepStrategy(
+            Optional<SweeperStrategy> sweeperStrategy,
+            boolean mustCheckImmutableLockIfAllCellsReadAndPresent,
+            boolean mustCheckImmutableLockIfNonExhaustiveRead) {
         this.sweeperStrategy = sweeperStrategy;
-        this.mustCheckImmutableLockAfterReads = mustCheckImmutableLockAfterReads;
+        this.mustCheckImmutableLockIfAllCellsReadAndPresent = mustCheckImmutableLockIfAllCellsReadAndPresent;
+        this.mustCheckImmutableLockIfNonExhaustiveRead = mustCheckImmutableLockIfNonExhaustiveRead;
     }
 
     public Optional<SweeperStrategy> getSweeperStrategy() {
         return sweeperStrategy;
     }
 
-    public boolean mustCheckImmutableLockAfterReads() {
-        return mustCheckImmutableLockAfterReads;
+    public boolean mustCheckImmutableLock(boolean allPossibleCellsReandAndPresent) {
+        return allPossibleCellsReandAndPresent
+                ? mustCheckImmutableLockIfAllCellsReadAndPresent
+                : mustCheckImmutableLockIfNonExhaustiveRead;
     }
 
-    public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy) {
-        return new SweepStrategy(sweeperBehaviour(strategy), mustCheckImmutableLockAfterReads(strategy));
+    public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
+        return new SweepStrategy(
+                sweeperBehaviour(strategy),
+                mustCheckImmutableLockIfAllCellsReadAndPresent(strategy, kvs),
+                mustCheckImmutableLockIfNonExhaustiveRead(strategy));
     }
 
     private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersistence.SweepStrategy strategy) {
@@ -65,7 +79,23 @@ private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersisten
         throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
     }
 
-    private static boolean mustCheckImmutableLockAfterReads(TableMetadataPersistence.SweepStrategy strategy) {
+    private static boolean mustCheckImmutableLockIfAllCellsReadAndPresent(
+            TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
+        if (!kvs.sweepsEntriesInStrictlyNonDecreasingFashion()) {
+            return mustCheckImmutableLockIfNonExhaustiveRead(strategy);
+        }
+
+        switch (strategy) {
+            case CONSERVATIVE:
+            case NOTHING:
+            case THOROUGH_MIGRATION:
+            case THOROUGH:
+                return false;
+        }
+        throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
+    }
+
+    private static boolean mustCheckImmutableLockIfNonExhaustiveRead(TableMetadataPersistence.SweepStrategy strategy) {
         switch (strategy) {
             case CONSERVATIVE:
             case NOTHING:u}(j (a609938800595c6a4ed1b28154a58151f7d04af3j datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ExpectationsAwareTransaction.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 /**
@@ -32,6 +33,11 @@ public interface ExpectationsAwareTransaction extends Transaction {
      */
     TransactionReadInfo getReadInfo();
 
+    /**
+     * Returns transaction commit lock information.
+     */
+    TransactionCommitLockInfo getCommitLockInfo();
+
     /**
      * Update TEX data collection metrics for (post-mortem) transactions.
      * Expected usage is that this method is called once after the transaction has been committed or aborted.u}(j (6795ea4a937624401807d2b3742ab596ad23984bj natlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingExpectationsAwareTransaction.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.transaction.impl;
 
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 public abstract class ForwardingExpectationsAwareTransaction extends ForwardingTransaction
@@ -34,6 +35,11 @@ public TransactionReadInfo getReadInfo() {
         return delegate().getReadInfo();
     }
 
+    @Override
+    public TransactionCommitLockInfo getCommitLockInfo() {
+        return delegate().getCommitLockInfo();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         delegate().reportExpectationsCollectedData();u}(j (71e95645f3ae1137fc44efc89c6e3432b42d85ffj Watlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ReadTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -24,14 +24,15 @@
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.logging.LoggingArgs;
-import com.palantir.atlasdb.table.description.SweepStrategy;
+import com.palantir.atlasdb.table.description.SweeperStrategy;
 import com.palantir.atlasdb.transaction.api.GetRangesQuery;
 import com.palantir.common.base.BatchingVisitable;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
+import java.util.Optional;
 import java.util.Set;
 import java.util.function.BiFunction;
 import java.util.stream.Stream;
@@ -136,11 +137,11 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
     }
 
     private void checkTableName(TableReference tableRef) {
-        SweepStrategy sweepStrategy = sweepStrategies.get(tableRef);
+        Optional<SweeperStrategy> sweepStrategy = sweepStrategies.get(tableRef).getSweeperStrategy();
         Preconditions.checkState(
-                !sweepStrategy.mustCheckImmutableLockAfterReads(),
-                "This table cannot be read from a read-only transaction, because its "
-                        + "sweep strategy is neither NOTHING nor CONSERVATIVE",
+                sweepStrategy.isEmpty() || sweepStrategy.get().equals(SweeperStrategy.CONSERVATIVE),
+                "This table cannot be read from a read-only transaction, because its sweep strategy is neither NOTHING"
+                        + " nor CONSERVATIVE",
                 LoggingArgs.tableRef(tableRef));
     }
 u}(j (59d37859a318b1646ca6da51436b4720150f7940j ]atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/SweepStrategyManagers.javaj modifiedj K	j Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X;  @@ -21,7 +21,6 @@
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
-import com.palantir.atlasdb.table.description.Schema;
 import com.palantir.atlasdb.table.description.SweepStrategy;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.logsafe.Preconditions;
@@ -53,7 +52,7 @@ public static SweepStrategyManager create(KeyValueService kvs, CacheWarming cach
                     // On a cache miss, load metadata only for the relevant table. Helpful when many dynamic tables.
                     LoadingCache<TableReference, SweepStrategy> cache = Caffeine.newBuilder()
                             .expireAfterAccess(Duration.ofDays(1))
-                            .build(tableRef -> getSweepStrategy(kvs.getMetadataForTable(tableRef)));
+                            .build(tableRef -> getSweepStrategy(kvs.getMetadataForTable(tableRef), kvs));
 
                     // Possibly warm the cache.
                     cache.putAll(getSweepStrategiesForWarmingCache(kvs, cacheWarming));
@@ -74,42 +73,34 @@ public void invalidateCaches(Set<TableReference> tableRefs) {
         };
     }
 
-    public static SweepStrategyManager createFromSchema(Schema schema) {
-        return tableRef -> {
-            TableMetadata tableMeta = Preconditions.checkNotNull(
-                    schema.getAllTablesAndIndexMetadata().get(tableRef),
-                    "unknown table",
-                    SafeArg.of("tableRef", tableRef));
-            return SweepStrategy.from(tableMeta.getSweepStrategy());
-        };
-    }
-
     public static SweepStrategyManager fromMap(final Map<TableReference, SweepStrategy> map) {
         return tableRef ->
                 Preconditions.checkNotNull(map.get(tableRef), "unknown table", SafeArg.of("tableRef", tableRef));
     }
 
-    public static SweepStrategyManager completelyConservative() {
-        return tableRef -> SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE);
+    public static SweepStrategyManager completelyConservative(KeyValueService kvs) {
+        return tableRef -> SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE, kvs);
     }
 
     private static Map<TableReference, SweepStrategy> getSweepStrategiesForWarmingCache(
             KeyValueService kvs, CacheWarming cacheWarming) {
         switch (cacheWarming) {
             case FULL:
-                return Maps.transformValues(kvs.getMetadataForTables(), SweepStrategyManagers::getSweepStrategy);
+                return Maps.transformValues(
+                        kvs.getMetadataForTables(),
+                        tableMetadata -> SweepStrategyManagers.getSweepStrategy(tableMetadata, kvs));
             case NONE:
             default:
                 return Collections.emptyMap();
         }
     }
 
-    private static SweepStrategy getSweepStrategy(byte[] tableMeta) {
+    private static SweepStrategy getSweepStrategy(byte[] tableMeta, KeyValueService kvs) {
         if (tableMeta != null && tableMeta.length > 0) {
             return SweepStrategy.from(
-                    TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy());
+                    TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy(), kvs);
         } else {
-            return SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE);
+            return SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE, kvs);
         }
     }
 }u
      }(j (07430a7ea8f348014166e1a21707d9a2d6fa0656j gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableRemappingKeyValueService.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j XQ  @@ -482,4 +482,9 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
             throw new IllegalArgumentException(e);
         }
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(j (5ef033a6ef29cb0e07d55d81f9e01236df5838d0j gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableSplittingKeyValueService.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -413,4 +413,9 @@ public List<byte[]> getRowKeysInRange(TableReference tableRef, byte[] startRow,
     public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<Cell, Long> timestampByCell) {
         return getDelegate(tableRef).getAsync(tableRef, timestampByCell);
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegates.stream().allMatch(KeyValueService::sweepsEntriesInStrictlyNonDecreasingFashion);
+    }
 }u}(j (f4fc16c9cd18f98e0b88191831c6acfff46d8418j Qatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweepTaskRunner.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -152,7 +152,7 @@ private SweepResults runInternal(
             return SweepResults.createEmptySweepResultWithNoMoreToSweep();
         }
         SweepStrategy sweepStrategy = SweepStrategy.from(
-                TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy());
+                TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy(), keyValueService);
         Optional<Sweeper> maybeSweeper = sweepStrategy.getSweeperStrategy().map(Sweeper::of);
         if (runType == RunType.WAS_CONSERVATIVE_NOW_THOROUGH
                 && sweepStrategy.getSweeperStrategy().equals(Optional.of(SweeperStrategy.CONSERVATIVE))) {u}(j (8a130c89d1c136ccdceb2117f2543a8cad93b16cj \atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitioner.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -95,9 +95,11 @@ SweeperStrategy getStrategyForTable(TableReference tableRef) {
 
     private SweeperStrategy getStrategyFromKvs(TableReference tableRef) {
         try {
-            return SweepStrategy.from(TableMetadata.BYTES_HYDRATOR
-                            .hydrateFromBytes(kvs.getMetadataForTable(tableRef))
-                            .getSweepStrategy())
+            return SweepStrategy.from(
+                            TableMetadata.BYTES_HYDRATOR
+                                    .hydrateFromBytes(kvs.getMetadataForTable(tableRef))
+                                    .getSweepStrategy(),
+                            kvs)
                     .getSweeperStrategy()
                     .orElse(SweeperStrategy.NON_SWEEPABLE);
         } catch (Exception e) {u}(j (a754465d028ae56a8b3829de4675ebee0e06762dj `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj modifiedj Kj K6j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X]  @@ -97,6 +97,8 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
@@ -156,6 +158,7 @@
 import java.util.List;
 import java.util.Map;
 import java.util.NavigableMap;
+import java.util.NavigableSet;
 import java.util.NoSuchElementException;
 import java.util.Objects;
 import java.util.Optional;
@@ -207,6 +210,9 @@ public class SnapshotTransaction extends AbstractTransaction
     private static final int BATCH_SIZE_GET_FIRST_PAGE = 1000;
     private static final long TXN_LENGTH_THRESHOLD = Duration.ofMinutes(30).toMillis();
 
+    @VisibleForTesting
+    static final int MAX_POST_FILTERING_ITERATIONS = 200;
+
     @VisibleForTesting
     static final int MIN_BATCH_SIZE_FOR_DISTRIBUTED_LOAD = 100;
 
@@ -267,9 +273,15 @@ private enum State {
     protected final SuccessCallbackManager successCallbackManager = new SuccessCallbackManager();
     private final CommitTimestampLoader commitTimestampLoader;
     private final ExpectationsMetrics expectationsDataCollectionMetrics;
+    private volatile long cellCommitLocksRequested = 0L;
+    private volatile long rowCommitLocksRequested = 0L;
 
     protected volatile boolean hasReads;
 
+    // On thoroughly swept tables, we might require a immutable timestamp lock check if we have performed a
+    // non-exhaustive read.
+    protected volatile boolean hasPossiblyUnvalidatedReads;
+
     protected final TimestampCache timestampCache;
 
     protected final TransactionKnowledgeComponents knowledge;
@@ -333,6 +345,7 @@ private enum State {
         this.sweepQueue = sweepQueue;
         this.deleteExecutor = deleteExecutor;
         this.hasReads = false;
+        this.hasPossiblyUnvalidatedReads = false;
         this.transactionOutcomeMetrics = TransactionOutcomeMetrics.create(metricsManager);
         this.validateLocksOnReads = validateLocksOnReads;
         this.transactionConfig = transactionConfig;
@@ -438,7 +451,9 @@ private NavigableMap<byte[], RowResult<byte[]>> getRowsInternal(
                     SafeArg.of("resultSize", results.size()),
                     SafeArg.of("timeTakenMillis", getRowsMillis));
         }
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+
+        /* can't skip lock check as we don't know how many cells to expect for the column selection */
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return results;
     }
 
@@ -463,7 +478,8 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
         RowColumnRangeIterator rawResults = keyValueService.getRowsColumnRange(
                 tableRef, stableRows, columnRangeSelection, batchHint, getStartTimestamp());
         if (!rawResults.hasNext()) {
-            validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+            // we can't skip checks for range scans
+            validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         } // else the postFiltered iterator will check for each batch.
 
         BatchColumnRangeSelection batchColumnRangeSelection =
@@ -501,7 +517,8 @@ public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator
                 }));
 
         // validate requirements here as the first batch for each of the above iterators will not check
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+        // we can't skip checks on range scans
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return postFilteredResults;
     }
 
@@ -674,7 +691,7 @@ private Iterator<Map.Entry<Cell, byte[]>> filterDeletedValues(
     private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFiltered(
             TableReference tableRef, RowColumnRangeIterator iterator, int batchHint) {
         return Iterators.concat(Iterators.transform(Iterators.partition(iterator, batchHint), batch -> {
-            Map<Cell, Value> raw = validateBatch(tableRef, batch);
+            Map<Cell, Value> raw = validateBatch(tableRef, batch, false /* can't skip lock checks on range scans */);
             if (raw.isEmpty()) {
                 return Collections.emptyIterator();
             }
@@ -696,7 +713,10 @@ private ClosableIterator<Map.Entry<Cell, byte[]>> getRowColumnRangePostFiltered(
                 batchProvider,
                 rawIterator,
                 columnRangeSelection,
-                () -> validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp()),
+                () -> {
+                    // we can't skip lock checks on range scans
+                    validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
+                },
                 raw -> getWithPostFilteringSync(tableRef, raw, Value.GET_VALUE));
     }
 
@@ -706,7 +726,7 @@ private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSor
             int batchHint,
             Comparator<Cell> cellComparator) {
         return Iterators.concat(Iterators.transform(Iterators.partition(iterator, batchHint), batch -> {
-            Map<Cell, Value> raw = validateBatch(tableRef, batch);
+            Map<Cell, Value> raw = validateBatch(tableRef, batch, false /* can't skip lock check on range scans */);
             if (raw.isEmpty()) {
                 return Collections.emptyIterator();
             }
@@ -717,8 +737,9 @@ private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSor
         }));
     }
 
-    private Map<Cell, Value> validateBatch(TableReference tableRef, List<Map.Entry<Cell, Value>> batch) {
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+    private Map<Cell, Value> validateBatch(
+            TableReference tableRef, List<Map.Entry<Cell, Value>> batch, boolean allPossibleCellsReadAndPresent) {
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
         return ImmutableMap.copyOf(batch);
     }
 
@@ -828,7 +849,8 @@ public SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(
         Map<Cell, Value> rawResults =
                 new HashMap<>(keyValueService.getRows(tableRef, rows, ColumnSelection.all(), getStartTimestamp()));
 
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+        // can't skip lock check as we don't know how many cells to expect for the column selection
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return filterRowResults(tableRef, rawResults, ImmutableMap.builderWithExpectedSize(rawResults.size()));
     }
 
@@ -921,13 +943,12 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
             }
         }
 
-        // We don't need to read any cells that were written locally.
+        // We don't need to read any cells that were written locally. Making an immutable copy because otherwise adding
+        // values to the result map would prevent us from calculating the correct size for
+        // allPossibleCellsReadAndPresent, since Sets.difference gives us a live view.
+        Set<Cell> cellsWithNoLocalWrites = ImmutableSet.copyOf(Sets.difference(cells, result.keySet()));
         return Futures.transform(
-                getFromKeyValueService(
-                        tableRef,
-                        Sets.difference(cells, result.keySet()),
-                        asyncKeyValueService,
-                        asyncTransactionService),
+                getFromKeyValueService(tableRef, cellsWithNoLocalWrites, asyncKeyValueService, asyncTransactionService),
                 fromKeyValueService -> {
                     result.putAll(fromKeyValueService);
 
@@ -941,7 +962,11 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
                                 SafeArg.of("getOperation", operationName),
                                 SafeArg.of("durationMillis", getMillis));
                     }
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+
+                    boolean allPossibleCellsReadAndPresent =
+                            fromKeyValueService.size() == cellsWithNoLocalWrites.size();
+                    validatePreCommitRequirementsOnReadIfNecessary(
+                            tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
                     return removeEmptyColumns(result, tableRef);
                 },
                 MoreExecutors.directExecutor());
@@ -957,13 +982,15 @@ public Map<Cell, byte[]> getIgnoringLocalWrites(TableReference tableRef, Set<Cel
 
         ListenableFuture<Map<Cell, byte[]>> result =
                 getFromKeyValueService(tableRef, cells, immediateKeyValueService, immediateTransactionService);
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
 
         Map<Cell, byte[]> unfiltered = Futures.getUnchecked(result);
         Map<Cell, byte[]> filtered = Maps.filterValues(unfiltered, Predicates.not(Value::isTombstone));
 
         TraceStatistics.incEmptyValues(unfiltered.size() - filtered.size());
 
+        boolean allPossibleCellsReadAndPresent = unfiltered.size() == cells.size();
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
+
         return filtered;
     }
 
@@ -1016,7 +1043,8 @@ public Iterable<BatchingVisitable<RowResult<byte[]>>> getRanges(
                     Timer.Context timer = getTimer("processedRangeMillis").time();
                     Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> firstPages =
                             keyValueService.getFirstBatchForRanges(tableRef, input, getStartTimestamp());
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+                    // can't skip lock check for range scans
+                    validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
 
                     SortedMap<Cell, byte[]> postFiltered = postFilterPages(tableRef, firstPages.values());
 
@@ -1142,18 +1170,42 @@ protected <K extends Exception> void batchAcceptSizeHint(
         };
     }
 
-    private void validatePreCommitRequirementsOnReadIfNecessary(TableReference tableRef, long timestamp) {
-        if (isValidationNecessaryOnReads(tableRef)) {
+    private void validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(TableReference tableRef, long timestamp) {
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, timestamp, false);
+    }
+
+    /*
+    We don't have any guarantees that reads and commit will be executed in a single threaded manner, so we could in
+    theory return wrong results if we perform async reads while trying to commit. But our protocol doesn't aim to
+    support such case, and we're OK with having undefined behaviour in these occasions.
+
+    Example of such case:
+       - We're reading a thoroughly swept table with no configuration for immediate validation on reads.
+       - An async range scan is performed, but hasn't started executing yet.
+       - We start commit round on the main thread
+       - Commit doesn't check for immutable timestamp lock because
+           hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound is false
+       - We finish the range scan on the second thread, but validation is skipped due to the configuration and it sets
+           hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound to true, but that is never checked due to
+            the commit round having already happened.
+       - We then risk having returned inconsistent values in this transaction, since we could have lost the immutableT
+            lock, but never checked it and values could've been swept under us.
+    */
+    private void validatePreCommitRequirementsOnReadIfNecessary(
+            TableReference tableRef, long timestamp, boolean allPossibleCellsReadAndPresent) {
+        if (isValidationNecessaryOnReads(tableRef, allPossibleCellsReadAndPresent)) {
             throwIfPreCommitRequirementsNotMet(null, timestamp);
+        } else if (!allPossibleCellsReadAndPresent) {
+            hasPossiblyUnvalidatedReads = true;
         }
     }
 
-    private boolean isValidationNecessaryOnReads(TableReference tableRef) {
-        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef);
+    private boolean isValidationNecessaryOnReads(TableReference tableRef, boolean allPossibleCellsReadAndPresent) {
+        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef, allPossibleCellsReadAndPresent);
     }
 
-    private boolean requiresImmutableTimestampLocking(TableReference tableRef) {
-        return sweepStrategyManager.get(tableRef).mustCheckImmutableLockAfterReads()
+    private boolean requiresImmutableTimestampLocking(TableReference tableRef, boolean allPossibleCellsReadAndPresent) {
+        return sweepStrategyManager.get(tableRef).mustCheckImmutableLock(allPossibleCellsReadAndPresent)
                 || transactionConfig.get().lockImmutableTsOnReadOnlyTransactions();
     }
 
@@ -1302,11 +1354,13 @@ protected <T> ClosableIterator<RowResult<T>> postFilterIterator(
             @Override
             protected Iterator<RowResult<T>> computeNext() {
                 List<RowResult<Value>> batch = results.getBatch().batch();
-                validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
                 if (batch.isEmpty()) {
                     return endOfData();
                 }
                 SortedMap<Cell, T> postFilter = postFilterRows(tableRef, batch, transformer);
+
+                // can't skip lock checks for range scans
+                validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
                 results.markNumResultsNotDeleted(
                         Cells.getRows(postFilter.keySet()).size());
                 return Cells.createRowView(postFilter.entrySet());
@@ -1451,9 +1505,9 @@ private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilterin
 
         return Futures.transformAsync(
                 Futures.immediateFuture(rawResults),
-                remainingResultsToPostFilter -> getWithPostFilteringIterate(
+                resultsToPostFilter -> getWithPostFilteringIterate(
                         tableRef,
-                        remainingResultsToPostFilter,
+                        resultsToPostFilter,
                         resultsAccumulator,
                         transformer,
                         asyncKeyValueService,
@@ -1463,32 +1517,39 @@ private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilterin
 
     private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilteringIterate(
             TableReference tableReference,
-            Map<Cell, Value> remainingResultsToPostFilter,
+            Map<Cell, Value> resultsToPostFilter,
             Collection<Map.Entry<Cell, T>> resultsAccumulator,
             Function<Value, T> transformer,
             AsyncKeyValueService asyncKeyValueService,
             AsyncTransactionService asyncTransactionService) {
-        if (remainingResultsToPostFilter.isEmpty()) {
-            getCounter(AtlasDbMetricNames.SNAPSHOT_TRANSACTION_CELLS_RETURNED, tableReference)
-                    .inc(resultsAccumulator.size());
-            return Futures.immediateFuture(resultsAccumulator);
-        }
-
         return Futures.transformAsync(
-                getWithPostFilteringInternal(
-                        tableReference,
-                        remainingResultsToPostFilter,
-                        resultsAccumulator,
-                        transformer,
-                        asyncKeyValueService,
-                        asyncTransactionService),
-                remaining -> getWithPostFilteringIterate(
-                        tableReference,
-                        remaining,
-                        resultsAccumulator,
-                        transformer,
-                        asyncKeyValueService,
-                        asyncTransactionService),
+                Futures.immediateFuture(resultsToPostFilter),
+                results -> {
+                    int iterations = 0;
+                    Map<Cell, Value> remainingResultsToPostFilter = results;
+                    while (!remainingResultsToPostFilter.isEmpty()) {
+                        remainingResultsToPostFilter = AtlasFutures.getUnchecked(getWithPostFilteringInternal(
+                                tableReference,
+                                remainingResultsToPostFilter,
+                                resultsAccumulator,
+                                transformer,
+                                asyncKeyValueService,
+                                asyncTransactionService));
+                        Preconditions.checkState(
+                                ++iterations < MAX_POST_FILTERING_ITERATIONS,
+                                "Unable to filter cells to find correct result after "
+                                        + "reaching max iterations. This is likely due to aborted cells lying around,"
+                                        + " or in the very rare case, could be due to transactions which constantly "
+                                        + "conflict but never commit. These values will be cleaned up eventually, but"
+                                        + " if the issue persists, ensure that sweep is caught up.",
+                                SafeArg.of("table", tableReference),
+                                SafeArg.of("maxIterations", MAX_POST_FILTERING_ITERATIONS));
+                    }
+                    getCounter(AtlasDbMetricNames.SNAPSHOT_TRANSACTION_CELLS_RETURNED, tableReference)
+                            .inc(resultsAccumulator.size());
+
+                    return Futures.immediateFuture(resultsAccumulator);
+                },
                 MoreExecutors.directExecutor());
     }
 
@@ -1677,7 +1738,9 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
             return Futures.transform(
                     asyncKeyValueService.getAsync(tableRef, keysToReload),
                     nextRawResults -> {
-                        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+                        boolean allPossibleCellsReadAndPresent = nextRawResults.size() == keysToReload.size();
+                        validatePreCommitRequirementsOnReadIfNecessary(
+                                tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
                         return getRemainingResults(nextRawResults, keysAddedToResults);
                     },
                     MoreExecutors.directExecutor());
@@ -2448,20 +2511,25 @@ private void logCommitLockTenureExceeded(
 
     protected Set<LockDescriptor> getLocksForWrites() {
         Set<LockDescriptor> result = new HashSet<>();
+        long cellLockCount = 0L;
+        long rowLockCount = 0L;
         for (TableReference tableRef : writesByTable.keySet()) {
             ConflictHandler conflictHandler = getConflictHandlerForTable(tableRef);
             if (conflictHandler.lockCellsForConflicts()) {
-                for (Cell cell : getLocalWrites(tableRef).keySet()) {
+                NavigableSet<Cell> cellsToLock = getLocalWrites(tableRef).keySet();
+                for (Cell cell : cellsToLock) {
                     result.add(AtlasCellLockDescriptor.of(
                             tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName()));
                 }
+                cellLockCount = cellsToLock.size();
             }
 
             if (conflictHandler.lockRowsForConflicts()) {
                 Cell lastCell = null;
                 for (Cell cell : getLocalWrites(tableRef).keySet()) {
                     if (lastCell == null || !Arrays.equals(lastCell.getRowName(), cell.getRowName())) {
                         result.add(AtlasRowLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName()));
+                        rowLockCount++;
                     }
                     lastCell = cell;
                 }
@@ -2470,6 +2538,8 @@ protected Set<LockDescriptor> getLocksForWrites() {
         result.add(AtlasRowLockDescriptor.of(
                 TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
                 TransactionConstants.getValueForTimestamp(getStartTimestamp())));
+        cellCommitLocksRequested = cellLockCount;
+        rowCommitLocksRequested = rowLockCount + 1;
         return result;
     }
 
@@ -2591,8 +2661,8 @@ private boolean hasAnyInvolvedTables() {
     }
 
     private boolean validationNecessaryForInvolvedTablesOnCommit() {
-        boolean anyTableRequiresImmutableTimestampLocking =
-                involvedTables.stream().anyMatch(this::requiresImmutableTimestampLocking);
+        boolean anyTableRequiresImmutableTimestampLocking = involvedTables.stream()
+                .anyMatch(tableRef -> requiresImmutableTimestampLocking(tableRef, !hasPossiblyUnvalidatedReads));
         boolean needsToValidate = !validateLocksOnReads || !hasReads();
         return anyTableRequiresImmutableTimestampLocking && needsToValidate;
     }
@@ -2607,6 +2677,14 @@ public TransactionReadInfo getReadInfo() {
         return keyValueService.getOverallReadInfo();
     }
 
+    @Override
+    public TransactionCommitLockInfo getCommitLockInfo() {
+        return ImmutableTransactionCommitLockInfo.builder()
+                .cellCommitLocksRequested(cellCommitLocksRequested)
+                .rowCommitLocksRequested(rowCommitLocksRequested)
+                .build();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         if (isStillRunning()) {
@@ -2616,18 +2694,25 @@ public void reportExpectationsCollectedData() {
             return;
         }
 
-        reportExpectationsCollectedData(getAgeMillis(), getReadInfo(), expectationsDataCollectionMetrics);
+        reportExpectationsCollectedData(
+                getAgeMillis(), getReadInfo(), getCommitLockInfo(), expectationsDataCollectionMetrics);
     }
 
     @VisibleForTesting
     static void reportExpectationsCollectedData(
-            long ageMillis, TransactionReadInfo readInfo, ExpectationsMetrics metrics) {
+            long ageMillis,
+            TransactionReadInfo readInfo,
+            TransactionCommitLockInfo commitLockInfo,
+            ExpectationsMetrics metrics) {
         metrics.ageMillis().update(ageMillis);
         metrics.bytesRead().update(readInfo.bytesRead());
         metrics.kvsReads().update(readInfo.kvsCalls());
 
         readInfo.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
                 .update(kvsCallReadInfo.bytesRead()));
+
+        metrics.cellCommitLocksRequested().update(commitLockInfo.cellCommitLocksRequested());
+        metrics.rowCommitLocksRequested().update(commitLockInfo.rowCommitLocksRequested());
     }
 
     private long getStartTimestamp() {u}(j (89147dc77a01612d3af8f3130ea758e4445537c7j 5atlasdb-impl-shared/src/main/metrics/expectations.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -17,3 +17,9 @@ namespaces:
       mostKvsBytesReadInSingleCall:
         docs: Most bytes read by a transaction in one Atlas kvs read call
         type: histogram
+      cellCommitLocksRequested:
+        docs: Number of cell-level commit locks requested as part of the commit protocol
+        type: histogram
+      rowCommitLocksRequested:
+        docs: Number of row-level commit locks requested as part of the commit protocol
+        type: histogramu}(j (58455c9fcbd5e41aa2e34c82091e30cd04cd5a51j `atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitionerTest.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j Xf  @@ -105,6 +105,7 @@ public void getStrategyQueriesKvsOnlyOnceForEachTable() {
         }
         verify(mockKvs, times(1)).getMetadataForTable(NOTHING);
         verify(mockKvs, times(1)).getMetadataForTable(CONSERVATIVE);
+        verify(mockKvs, times(2)).sweepsEntriesInStrictlyNonDecreasingFashion();
         verifyNoMoreInteractions(mockKvs);
     }
 u}(j (283b84abcfb6697b50fee5fa0db0dbc2d58dfab8j matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javaj modifiedj K&j Kj K2j https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j XI  @@ -18,7 +18,9 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.codahale.metrics.Histogram;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
@@ -34,6 +36,12 @@ public final class ExpectationsMetricsReportingTest {
     private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
             ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
 
+    private static final ImmutableTransactionCommitLockInfo BLANK_COMMIT_LOCK_INFO =
+            ImmutableTransactionCommitLockInfo.builder()
+                    .cellCommitLocksRequested(0L)
+                    .rowCommitLocksRequested(0L)
+                    .build();
+
     private ExpectationsMetrics metrics;
 
     @Before
@@ -44,40 +52,58 @@ public void setUp() {
     @Test
     public void ageReported() {
         long age = 129L;
-        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, metrics);
-        assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
+        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, BLANK_COMMIT_LOCK_INFO, metrics);
+        assertHistogramHasSingleValue(metrics.ageMillis(), age);
     }
 
     @Test
     public void bytesReadReported() {
         long bytes = 1290L;
-        reportMetrics(BLANK_READ_INFO.withBytesRead(bytes));
-        assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
+        reportMetricsWithReadInfo(BLANK_READ_INFO.withBytesRead(bytes));
+        assertHistogramHasSingleValue(metrics.bytesRead(), bytes);
     }
 
     @Test
     public void kvsCallsReported() {
         long calls = 12L;
-        reportMetrics(BLANK_READ_INFO.withKvsCalls(calls));
-        assertThat(metrics.kvsReads().getSnapshot().getValues()).containsOnly(calls);
+        reportMetricsWithReadInfo(BLANK_READ_INFO.withKvsCalls(calls));
+        assertHistogramHasSingleValue(metrics.kvsReads(), calls);
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
-        reportMetrics(BLANK_READ_INFO);
+        reportMetricsWithReadInfo(BLANK_READ_INFO);
         assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
                 .isEmpty();
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
         long bytes = 193L;
-        reportMetrics(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
-        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
-                .containsOnly(bytes);
+        reportMetricsWithReadInfo(
+                BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        assertHistogramHasSingleValue(metrics.mostKvsBytesReadInSingleCall(), bytes);
+    }
+
+    @Test
+    public void commitLocksRequestsReported() {
+        SnapshotTransaction.reportExpectationsCollectedData(
+                0L,
+                BLANK_READ_INFO,
+                ImmutableTransactionCommitLockInfo.builder()
+                        .cellCommitLocksRequested(1)
+                        .rowCommitLocksRequested(2)
+                        .build(),
+                metrics);
+        assertHistogramHasSingleValue(metrics.cellCommitLocksRequested(), 1);
+        assertHistogramHasSingleValue(metrics.rowCommitLocksRequested(), 2);
+    }
+
+    private void reportMetricsWithReadInfo(TransactionReadInfo readInfo) {
+        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, BLANK_COMMIT_LOCK_INFO, metrics);
     }
 
-    private void reportMetrics(TransactionReadInfo readInfo) {
-        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, metrics);
+    private void assertHistogramHasSingleValue(Histogram histogram, long expected) {
+        assertThat(histogram.getSnapshot().getValues()).containsOnly(expected);
     }
 }u}(j (f78ed397c1ab2442f099cc74dd518e30185dd324j !atlasdb-tests-shared/build.gradlej modifiedj Kj K j Kj uhttps://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-tests-shared%2Fbuild.gradlej thttps://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-tests-shared%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fbuild.gradle?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -50,6 +50,7 @@ dependencies {
   testImplementation 'com.google.protobuf:protobuf-java'
   testImplementation 'com.palantir.common:streams'
   testImplementation 'com.palantir.safe-logging:safe-logging'
+  testImplementation 'com.palantir.safe-logging:preconditions-assertj'
   testImplementation 'com.palantir.tracing:tracing-api'
   testImplementation 'com.palantir.tritium:tritium-registry'
   testImplementation 'commons-io:commons-io'u}(j (4ecc8d0029caabad8e99518d16b13fcf35ba33ecj qatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractSerializableTransactionTest.javaj modifiedj K
j Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j XL  @@ -1079,17 +1079,19 @@ public void testNoMarkTableInvolvedSkipsLockChecksOnCommit() {
         t1.commit();
     }
 
-    @Test
-    public void testMarkTableInvolvedChecksLocksForExpiryOnCommitWhenRequired() {
-        // Test table is thorough, therefore we check immutable timestamp lock
-        assertThatThrownBy(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
-                .isExactlyInstanceOf(TransactionLockTimeoutException.class);
-    }
-
     @Test
     public void testMarkTableInvolvedDoesNoCheckLocksForExpiryOnCommitWhenNotRequired() {
         // Test table is not thorough, therefore no immutable timestamp lock checking
-        testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE);
+        assertThatCode(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE))
+                .doesNotThrowAnyException();
+
+        if (keyValueService.sweepsEntriesInStrictlyNonDecreasingFashion()) {
+            assertThatCode(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
+                    .doesNotThrowAnyException();
+        } else {
+            assertThatThrownBy(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
+                    .isExactlyInstanceOf(TransactionLockTimeoutException.class);
+        }
     }
 
     @Testu}(j (ddec50c29546659d961c4897e7ecbcde3efe9efbj Latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/AtlasDbTestCase.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X;  @@ -77,11 +77,14 @@ public class AtlasDbTestCase {
 
     protected TransactionKnowledgeComponents knowledge;
 
+    protected ExecutorService deleteExecutor;
+
     @Rule
     public InMemoryTimeLockRule inMemoryTimeLockRule = new InMemoryTimeLockRule(CLIENT);
 
     @Before
     public void setUp() throws Exception {
+        deleteExecutor = MoreExecutors.newDirectExecutorService();
         lockClient = LockClient.of(CLIENT);
         lockService = inMemoryTimeLockRule.getLockService();
         timelockService = inMemoryTimeLockRule.getLegacyTimelockService();u}(j (864d8b372d38e6bbe575244e1b439a23398db117j Uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/TableMigratorTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -89,7 +89,7 @@ public void testMigrationToDifferentKvs() throws TableMappingNotFoundException {
 
         final InMemoryKeyValueService kvs2 = new InMemoryKeyValueService(false);
         final ConflictDetectionManager cdm2 = ConflictDetectionManagers.createWithNoConflictDetection();
-        final SweepStrategyManager ssm2 = SweepStrategyManagers.completelyConservative();
+        final SweepStrategyManager ssm2 = SweepStrategyManagers.completelyConservative(kvs2);
         final MetricsManager metricsManager = MetricsManagers.createForTests();
         final TestTransactionManagerImpl txManager2 = new TestTransactionManagerImpl(
                 metricsManager,
@@ -128,7 +128,7 @@ public void testMigrationToDifferentKvs() throws TableMappingNotFoundException {
         checkpointer.deleteCheckpoints();
 
         final ConflictDetectionManager verifyCdm = ConflictDetectionManagers.createWithNoConflictDetection();
-        final SweepStrategyManager verifySsm = SweepStrategyManagers.completelyConservative();
+        final SweepStrategyManager verifySsm = SweepStrategyManagers.completelyConservative(kvs2);
         final TestTransactionManagerImpl verifyTxManager = new TestTransactionManagerImpl(
                 metricsManager,
                 kvs2,u}(j (25c1bb6a752a65ce98d2dc58adc485085adacef9j latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -240,7 +240,9 @@ public void registersMetrics() throws InterruptedException {
                 .contains(FINISH_TASK_METRIC_NAME)
                 .contains("expectations.bytesRead")
                 .contains("expectations.kvsReads")
-                .contains("expectations.ageMillis");
+                .contains("expectations.ageMillis")
+                .contains("expectations.cellCommitLocksRequested")
+                .contains("expectations.rowCommitLocksRequested");
         assertThat(registry.timer(MetricName.builder()
                                 .safeName(SETUP_TASK_METRIC_NAME)
                                 .build())u}(j (6a539c73f46339e398e128a8c5ba8e32e8ea9869j eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X0  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
@@ -94,6 +95,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.impl.metrics.DefaultMetricsFilterEvaluationContext;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.ToplistDeltaFilteringTableLevelMetricsController;
@@ -121,6 +123,7 @@
 import com.palantir.lock.v2.LockImmutableTimestampResponse;
 import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.TimelockService;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.math.BigInteger;
 import java.nio.ByteBuffer;
@@ -316,6 +319,8 @@ public void cleanup() {}
     static final TableReference TABLE_SWEPT_THOROUGH_MIGRATION =
             TableReference.createFromFullyQualifiedName("default.table5");
 
+    static final TableReference TABLE_NO_SWEEP = TableReference.createFromFullyQualifiedName("default.table6");
+
     private static final byte[] ROW_FOO = "foo".getBytes(StandardCharsets.UTF_8);
     private static final byte[] ROW_BAR = "bar".getBytes(StandardCharsets.UTF_8);
     private static final byte[] COL_A = "a".getBytes(StandardCharsets.UTF_8);
@@ -346,6 +351,9 @@ public void setUp() throws Exception {
                 TABLE_SWEPT_THOROUGH_MIGRATION,
                 getTableMetadataForSweepStrategy(SweepStrategy.THOROUGH_MIGRATION)
                         .persistToBytes());
+        keyValueService.createTable(
+                TABLE_NO_SWEEP,
+                getTableMetadataForSweepStrategy(SweepStrategy.NOTHING).persistToBytes());
     }
 
     @Override
@@ -360,7 +368,7 @@ protected TestTransactionManager constructTestTransactionManager() {
                 sweepStrategyManager,
                 timestampCache,
                 sweepQueue,
-                MoreExecutors.newDirectExecutorService(),
+                deleteExecutor,
                 transactionWrapper,
                 keyValueServiceWrapper,
                 knowledge);
@@ -1552,7 +1560,22 @@ public void commitDoesNotThrowIfAlreadySuccessfullyCommitted() {
     }
 
     @Test
-    public void validateLocksOnReadsIfThoroughlySwept() {
+    public void doNotValidateLocksOnNonEmptyReadsIfThoroughlySwept() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        assertThatCode(() -> transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL)))
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void validateLocksOnEmptyReadsIfThoroughlySwept() {
         long transactionTs = timelockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
         Transaction transaction =
@@ -1564,6 +1587,22 @@ public void validateLocksOnReadsIfThoroughlySwept() {
                 .isThrownBy(() -> transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL)));
     }
 
+    @Test
+    public void doNotValidateLocksOnCommitIfValidationFlagIsFalseAndOnlyReadNonEmptyValuesOnThoroughlySweptTable() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+
+        assertThatCode(transaction::commit).doesNotThrowAnyException();
+    }
+
     @Test
     public void validateLocksOnlyOnCommitIfValidationFlagIsFalse() {
         long transactionTs = timelockService.getFreshTimestamp();
@@ -1579,7 +1618,45 @@ public void validateLocksOnlyOnCommitIfValidationFlagIsFalse() {
     }
 
     @Test
-    public void checkImmutableTsLockOnceIfThoroughlySwept_WithValidationOnReads() {
+    public void validateLocksOnCommitIfEmptyReadsFollowedByNonEmptyReadsIfValidationFlagIsFalse() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        // First reading empty value
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL_2));
+        // Then reading non-empty value.
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+
+        // Make sure that lock is still validated in the end due to the initial empty read
+        assertThatExceptionOfType(TransactionLockTimeoutException.class).isThrownBy(transaction::commit);
+    }
+
+    @Test
+    public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithValidationOnReads() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        Transaction transaction = getSnapshotTransactionWith(
+                spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+        transaction.commit();
+        spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
+
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+    }
+
+    @Test
+    public void checkImmutableTsLockOnceIfEmptyReadOnThoroughlySwept_WithValidationOnReads() {
         TimelockService spiedTimeLockService = spy(timelockService);
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
@@ -1595,7 +1672,25 @@ public void checkImmutableTsLockOnceIfThoroughlySwept_WithValidationOnReads() {
     }
 
     @Test
-    public void checkImmutableTsLockOnceIfThoroughlySwept_WithoutValidationOnReads() {
+    public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithoutValidationOnReads() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        Transaction transaction = getSnapshotTransactionWith(
+                spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+        transaction.commit();
+        spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
+
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+    }
+
+    @Test
+    public void checkImmutableTsLockOnceIfEmptyReadOnThoroughlySwept_WithoutValidationOnReads() {
         TimelockService spiedTimeLockService = spy(timelockService);
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
@@ -2371,6 +2466,76 @@ public void testConstraintsViolated() {
                         eq(AtlasDbConstraintCheckingMode.FULL_CONSTRAINT_CHECKING_THROWS_EXCEPTIONS));
     }
 
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializableCell() {
+        // Will request commit locks for cells, but not rows
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_CELL);
+
+        // We can only get the commit info from a snapshot transaction
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        // For write transactions, we always lock an additional row in the transaction table
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(0 + 1);
+    }
+
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializable() {
+        // Will request commit locks for rows, but not cells
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(0);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(2 + 1);
+    }
+
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigration_sameRow() {
+        // Will request commit locks for cells and rows
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_LOCK_LEVEL_MIGRATION);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(
+                TABLE,
+                ImmutableMap.of(Cell.create(PtBytes.toBytes("same_row"), PtBytes.toBytes("column1")), TEST_VALUE));
+        txn.put(
+                TABLE,
+                ImmutableMap.of(
+                        Cell.create(
+                                PtBytes.toBytes("same_row"),
+                                // Writing to the same row, but different column/cell
+                                PtBytes.toBytes("column2")),
+                        TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
+    }
+
+    @Test
+    public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
+        for (int idx = 0; idx < SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS; idx++) {
+            putUncommittedAtFreshTimestamp(TABLE_NO_SWEEP, TEST_CELL);
+        }
+        assertThatLoggableExceptionThrownBy(
+                        () -> txManager.runTaskThrowOnConflict(txn -> txn.get(TABLE_NO_SWEEP, Set.of(TEST_CELL))))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageStartingWith("Unable to filter cells")
+                .hasExactlyArgs(
+                        SafeArg.of("table", TABLE_NO_SWEEP),
+                        SafeArg.of("maxIterations", SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS));
+    }
+
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,u}(j (b5c7b9efcec99e2e4e3b5ccc3eb2f13e725dca1aj 9atlasdb-workload-server-antithesis/var/docker-compose.ymlj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X8  @@ -15,8 +15,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra1
-    volumes:
-      - /opt/config/volumes/cassandra1:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
@@ -35,8 +33,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra2
-    volumes:
-      - /opt/config/volumes/cassandra2:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
@@ -55,8 +51,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra3
-    volumes:
-      - /opt/config/volumes/cassandra3:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.4u}(j (6fff522b93c2fac008381bf889fb8bd37ac6b462j matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelection.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j Xm  @@ -60,6 +60,10 @@ default void check() {
                 SafeArg.of("endColumnExclusive", endColumnExclusive()));
     }
 
+    static ColumnRangeSelection all() {
+        return ImmutableColumnRangeSelection.builder().build();
+    }
+
     static ImmutableColumnRangeSelection.Builder builder() {
         return ImmutableColumnRangeSelection.builder();
     }u}(j (813978dd1860b6fe6d1edf472c0e66a8bd3a02a9j oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -32,7 +32,7 @@ public interface InteractiveTransaction {
 
     void delete(String table, WorkloadCell workloadCell);
 
-    List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection);
+    List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection);
 
     List<WitnessedTransactionAction> witness();
 }u}(j (72bc11659accd74d0abb03df5bdecff95ddeceb9j xatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/SingleCellReadTransactionAction.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellReadTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellReadTransactionAction.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j XN  @@ -24,7 +24,6 @@
 
 @Value.Immutable(builder = false)
 public interface SingleCellReadTransactionAction extends SingleCellTransactionAction {
-
     default WitnessedSingleCellReadTransactionAction witness(Optional<Integer> value) {
         return ImmutableWitnessedSingleCellReadTransactionAction.of(table(), cell(), value);
     }u}(j (f2fc56cca46a09c2ef718c3b7cb6b8d4000c1d8fj atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java     j https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j @@ -16,4 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-public interface InvalidWitnessedTransactionAction {}
+public interface InvalidWitnessedTransactionAction {
+    // Marker interface
+}u}(j (284f26075e3ae1ed8320bcbc8402749af631ccddj atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X5  @@ -23,12 +23,15 @@
 import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
+import java.util.stream.Collectors;
 import org.immutables.value.Value;
 
 @Value.Immutable
 public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedTransactionAction {
     RowColumnRangeReadTransactionAction originalQuery();
 
+    // This is a List rather than a Set or Map because the ordering in which the columns and values are returned is
+    // important (it must match the ordering specified by the contract of row column range reads).
     List<ColumnValue> columnsAndValues();
 
     @Override
@@ -39,14 +42,15 @@ default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
     @Value.Check
     default void check() {
         Set<Integer> knownColumns = new HashSet<>();
-        for (ColumnValue columnValue : columnsAndValues()) {
-            Preconditions.checkState(
-                    !knownColumns.contains(columnValue.column()),
-                    "Duplicate column in columnsAndValues",
-                    SafeArg.of("duplicatedColumn", columnValue.column()),
-                    SafeArg.of("columnsAndValues", columnsAndValues()));
-            knownColumns.add(columnValue.column());
-        }
+        Set<Integer> duplicateColumns = columnsAndValues().stream()
+                .map(ColumnValue::column)
+                .filter(column -> !knownColumns.add(column))
+                .collect(Collectors.toSet());
+        Preconditions.checkState(
+                duplicateColumns.isEmpty(),
+                "Duplicate columns in columnsAndValues",
+                SafeArg.of("duplicateColumns", duplicateColumns),
+                SafeArg.of("columnsAndValues", columnsAndValues()));
     }
 
     static ImmutableWitnessedRowColumnRangeReadTransactionAction.Builder builder() {u}(j (6eceac9e4aec081bfc01707d271c1ea928848a27j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedSingleCellReadTransactionAction.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellReadTransactionAction.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellReadTransactionAction.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j @@ -22,7 +22,6 @@
 
 @Value.Immutable(builder = false)
 public interface WitnessedSingleCellReadTransactionAction extends WitnessedSingleCellTransactionAction {
-
     @Override
     @Value.Parameter
     String table();u}(j (b2c905aecbadb5eff96bc5dbc26f890c72dbd00cj atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javaj modifiedj K
j Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X	  @@ -20,11 +20,13 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 
 import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
 import org.junit.Test;
 
 public class WitnessedRowColumnRangeReadTransactionActionTest {
@@ -44,8 +46,15 @@ public void canCreateWitness() {
 
     @Test
     public void cannotCreateWitnessWithDuplicateColumns() {
+        List<ColumnValue> columnsAndValues = ImmutableList.of(
+                ColumnValue.of(1, 5),
+                ColumnValue.of(5, 1),
+                ColumnValue.of(1, 3),
+                ColumnValue.of(5, 8),
+                ColumnValue.of(9, 99));
+
         assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))
+                        .addAllColumnsAndValues(columnsAndValues)
                         .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                 .table("foo")
                                 .row(1)
@@ -54,11 +63,9 @@ public void cannotCreateWitnessWithDuplicateColumns() {
                                 .build())
                         .build())
                 .isInstanceOf(SafeIllegalStateException.class)
-                .hasMessageContaining("Duplicate column in columnsAndValues")
+                .hasMessageContaining("Duplicate columns in columnsAndValues")
                 .hasExactlyArgs(
-                        SafeArg.of("duplicatedColumn", 1),
-                        SafeArg.of(
-                                "columnsAndValues",
-                                ImmutableList.of(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))));
+                        SafeArg.of("duplicateColumns", ImmutableSet.of(1, 5)),
+                        SafeArg.of("columnsAndValues", columnsAndValues));
     }
 }u}(j (37e59da7fde3c443b1071e9b0c484c2da4e9f50ej latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedj K'j K j K'j https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j Xk  @@ -37,6 +37,8 @@
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
@@ -142,6 +144,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().transientRowsConfig();
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
+        SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadNoTouchWorkflowConfiguration =
+                configuration.install().singleBusyCellReadsNoTouchConfig();
         BankBalanceWorkflowConfiguration bankBalanceConfig =
                 configuration.install().bankBalanceConfig();
         RandomWorkflowConfiguration randomWorkflowConfig =
@@ -159,6 +163,10 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
                         createSingleBusyCellWorkflowValidator(
                                 transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellReadNoTouchWorkflowValidator(
+                                transactionStoreFactory,
+                                singleBusyCellReadNoTouchWorkflowConfiguration,
+                                environment.lifecycle()),
                         createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
                         createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
 
@@ -244,6 +252,37 @@ private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
                 SerializableInvariantLogReporter.INSTANCE);
     }
 
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellReadNoTouchWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellReadNoTouchWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-read")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-write")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellReadNoTouchWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellReadNoTouchWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
     private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             RingWorkflowConfiguration workflowConfig,u}(j (388054e20c18c9c8d612db0e6d9ac1018b7f9b14j atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X)  @@ -20,6 +20,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
@@ -45,5 +46,7 @@ public interface WorkloadServerInstallConfiguration {
 
     RandomWorkflowConfiguration randomConfig();
 
+    SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadsNoTouchConfig();
+
     boolean exitAfterRunning();
 }u}(j (da4b728986375bd8565c46e930098c1a684a145cj Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -41,4 +41,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: false
\ No newline at end of fileu}(j (50dbd20de7876d2a9cb53eef291722b8b19cd0b5j Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j Xr  @@ -78,4 +78,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single_busy_cell_no_touch_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: trueu}(j (7bd7f984a5ef15a2179c415620f48a0737332c43j Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -42,4 +42,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: true
\ No newline at end of fileu}(j (a8385843e3074e18ec9db56c0547213227584d48j latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj modifiedj Kj K
j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -25,7 +25,6 @@
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -102,7 +101,7 @@ public void delete(String table, WorkloadCell workloadCell) {
     }
 
     @Override
-    public List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection) {
+    public List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection) {
         return run(
                 tableReference -> {
                     // Having a non-configurable batch hint is a bit iffy, but suffices as this won't be used in
@@ -112,20 +111,22 @@ public List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRang
                             List.of(AtlasDbUtils.toAtlasKey(row)),
                             BatchColumnRangeSelection.create(
                                     AtlasDbUtils.toAtlasColumnRangeSelection(columnRangeSelection), 100));
+                    Preconditions.checkState(
+                            iterators.size() == 1,
+                            "Expected exactly one iterator to be returned",
+                            SafeArg.of("iteratorsReturned", iterators.size()));
                     List<ColumnValue> columnsAndValues = EntryStream.of(iterators.get(AtlasDbUtils.toAtlasKey(row)))
                             .mapKeys(Cell::getColumnName)
                             .mapKeys(AtlasDbUtils::fromAtlasColumn)
                             .mapValues(AtlasDbUtils::fromAtlasValue)
                             .map(entry -> ColumnValue.of(entry.getKey(), entry.getValue()))
                             .collect(Collectors.toList());
-                    witnessedTransactionActions.add(WitnessedRowColumnRangeReadTransactionAction.builder()
-                            .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                                    .table(table)
-                                    .row(row)
-                                    .columnRangeSelection(columnRangeSelection)
-                                    .build())
-                            .columnsAndValues(columnsAndValues)
-                            .build());
+                    witnessedTransactionActions.add(RowColumnRangeReadTransactionAction.builder()
+                            .table(table)
+                            .row(row)
+                            .columnRangeSelection(columnRangeSelection)
+                            .build()
+                            .witness(columnsAndValues));
                     return columnsAndValues;
                 },
                 table);u}(j (fa09be03657e9803b074bbd56a9b7fd8b045da62j katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReader.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -22,7 +22,6 @@
 import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import io.vavr.collection.Map;
@@ -74,11 +73,8 @@ public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTrans
                             .contains(tableAndWorkloadCell.cell().column());
                 })
                 .filterValues(Optional::isPresent)
-                .map(entry -> ColumnValue.of(
-                        entry._1().cell().column(),
-                        entry._2()
-                                .orElseThrow(() -> new SafeRuntimeException(
-                                        "Empty values should already have been filtered out!"))))
+                .mapValues(Optional::get)
+                .map(entry -> ColumnValue.of(entry._1().cell().column(), entry._2()))
                 .sortBy(ColumnValue::column)
                 .toJavaList();
     }u}(j (54da9b144a5d75769f8d97431362eee4d8f490b5j aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -26,7 +26,6 @@
 import com.palantir.atlasdb.workload.transaction.ImmutableDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ImmutableRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ImmutableRowColumnRangeReadTransactionAction.Builder;
-import com.palantir.atlasdb.workload.transaction.ImmutableSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ImmutableWriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;u}(j (cfa7bb7b766851d22237ea49091b9cce6c50c789j atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowConfiguration.javaj addedj K j K j K j https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j Xz  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellReadNoTouchWorkflowConfiguration.TYPE)
+public interface SingleBusyCellReadNoTouchWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell-reads-no-touch";
+
+    TableConfiguration tableConfiguration();
+}u}(j (ae852affb871f77d186c4b71ecca052b5aeeed40j tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflows.javaj addedj Kjj K j Kjj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions. This workflow differs
+ * from the {@link SingleBusyCellWorkflows} in the way that its read transaction only does read and doesn't touch the
+ * cell with its current value or -1. This allows us to exercise the code path of read-write transaction that only do
+ * reads, which is necessary to catch bugs like sweep deleting entries under a transaction if it doesn't check for
+ * immutableTimestamp lock.
+ */
+public final class SingleBusyCellReadNoTouchWorkflows {
+    private SingleBusyCellReadNoTouchWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReads(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReads(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(
+                        txn -> txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL))))
+                .collect(Collectors.toList());
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
+    }
+}u}(j (4a225b9a61bb820c7e3d66ad9815a6b22d3ea422j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -144,7 +144,7 @@ private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActi
                 .filter(action -> action.cell().key() != SUMMARY_ROW)
                 .findAny()
                 .orElseThrow(() -> new SafeIllegalStateException(
-                        "Expected to find a read of a normal row", SafeArg.of("actions", actions)));
+                        "Expected to find a read of a corresponding normal row", SafeArg.of("actions", actions)));
         if (!summaryRowRead.value().equals(normalRowRead.value())) {
             return Stream.of(CrossCellInconsistency.builder()
                     .putInconsistentValues(u}(j (a3dfd009b4f72ddf2272912adf2323a74f4e52fcj patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj modifiedj KTj Kj KXj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -172,6 +172,86 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
                                                 .collect(Collectors.toList()))));
     }
 
+    @Test
+    public void witnessRecordsColumnRangeActions() {
+        assertThat(readWrite(transaction -> {
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+                }))
+                .containsExactly(
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
+                        WitnessedRowColumnRangeReadTransactionAction.builder()
+                                .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                        .table(TABLE_1)
+                                        .row(WORKLOAD_CELL_TWO.key())
+                                        .columnRangeSelection(ColumnRangeSelection.all())
+                                        .build())
+                                .addColumnsAndValues(ColumnValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
+                                .build());
+    }
+
+    @Test
+    public void emptyColumnRangeReadsAreRecorded() {
+        assertThat(readWrite(transaction -> {
+                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+                }))
+                .containsExactly(WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table(TABLE_1)
+                                .row(WORKLOAD_CELL_TWO.key())
+                                .columnRangeSelection(ColumnRangeSelection.all())
+                                .build())
+                        .build());
+    }
+
+    @Test
+    public void allRelevantCellsAreRecordedForFullColumnScan() {
+        int iterationCount = 1000;
+        assertThat(readWrite(transaction -> {
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(TABLE_1, 1, ColumnRangeSelection.all());
+                }))
+                .hasSize(iterationCount + 1)
+                .element(iterationCount)
+                .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
+                        .isInstanceOfSatisfying(
+                                WitnessedRowColumnRangeReadTransactionAction.class,
+                                witness -> assertThat(witness.columnsAndValues())
+                                        .isEqualTo(IntStream.range(0, iterationCount)
+                                                .mapToObj(column -> ColumnValue.of(column, VALUE_ONE))
+                                                .collect(Collectors.toList()))));
+    }
+
+    @Test
+    public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
+        int iterationCount = 1000;
+        int startInclusive = 313;
+        int endExclusive = 855;
+        assertThat(readWrite(transaction -> {
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(
+                            TABLE_1,
+                            1,
+                            ColumnRangeSelection.builder()
+                                    .startColumnInclusive(startInclusive)
+                                    .endColumnExclusive(endExclusive)
+                                    .build());
+                }))
+                .hasSize(iterationCount + 1)
+                .element(iterationCount)
+                .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
+                        .isInstanceOfSatisfying(
+                                WitnessedRowColumnRangeReadTransactionAction.class,
+                                witness -> assertThat(witness.columnsAndValues())
+                                        .isEqualTo(IntStream.range(startInclusive, endExclusive)
+                                                .mapToObj(column -> ColumnValue.of(column, VALUE_ONE))
+                                                .collect(Collectors.toList()))));
+    }
+
     @Test
     public void readThrowsWhenTableDoesNotExist() {
         assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.read(TABLE_1, WORKLOAD_CELL_ONE));
@@ -190,8 +270,8 @@ public void deleteThrowsWhenTableDoesNotExist() {
 
     @Test
     public void getRowsColumnRangeThrowsWhenTableDoesNotExist() {
-        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.getRowColumnRange(
-                TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.builder().build()));
+        assertThatThrownWhenUnknownTableReferenced(transaction ->
+                transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.all()));
     }
 
     @Test
@@ -214,8 +294,8 @@ public void deleteThrowsWhenInteractiveTransactionAlreadyWitnessed() {
 
     @Test
     public void getRowColumnRangeThrowsWhenInteractiveTransactionAlreadyWitnessed() {
-        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(transaction -> transaction.getRowColumnRange(
-                TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.builder().build()));
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(transaction ->
+                transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.all()));
     }
 
     private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {u}(j (3a7aebde56bb23390c1e2c8534beaae39c6e3ab4j oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReaderTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j XU  @@ -40,7 +40,7 @@ public void doesNotReadCellsFromDifferentTable() {
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
                         .table(WorkloadTestHelpers.TABLE_2)
                         .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
-                        .columnRangeSelection(ColumnRangeSelection.builder().build())
+                        .columnRangeSelection(ColumnRangeSelection.all())
                         .build()))
                 .isEmpty();
     }
@@ -78,4 +78,17 @@ public void readsCellsFromRangeInOrder() {
                         ColumnValue.of(2, WorkloadTestHelpers.VALUE_ONE),
                         ColumnValue.of(3, WorkloadTestHelpers.VALUE_ONE));
     }
+
+    @Test
+    public void doesNotReturnExplicitlyEmptyValues() {
+        valueMap.with(map -> map.put(
+                TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
+                Optional.empty()));
+        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                        .columnRangeSelection(ColumnRangeSelection.all())
+                        .build()))
+                .isEmpty();
+    }
 }u}(j (d9fdc9b3f5f9c42e86d6718f2c773ea989bb8373j qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj modifiedj Kj K	j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -20,7 +20,6 @@
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -96,14 +95,12 @@ public WitnessedTransactionBuilder delete(Integer row, Integer column) {
 
         public WitnessedTransactionBuilder rowColumnRangeRead(
                 Integer row, ColumnRangeSelection columnRangeSelection, List<ColumnValue> valuesRead) {
-            actions.add(WitnessedRowColumnRangeReadTransactionAction.builder()
-                    .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                            .table(table)
-                            .row(row)
-                            .columnRangeSelection(columnRangeSelection)
-                            .build())
-                    .columnsAndValues(valuesRead)
-                    .build());
+            RowColumnRangeReadTransactionAction transactionAction = RowColumnRangeReadTransactionAction.builder()
+                    .table(table)
+                    .row(row)
+                    .columnRangeSelection(columnRangeSelection)
+                    .build();
+            actions.add(transactionAction.witness(valuesRead));
             return this;
         }
 u}(j (ce49e27d10355fb6f5b71d88a206899b12b7f25bj xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javaj addedj K}j K j K}j https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -0,0 +1,125 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Sets;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Collection;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class SingleBusyCellReadNoTouchWorkflowsTest {
+    private static final String TABLE_NAME = "busy.readnotouch.cell";
+    private static final int ITERATION_COUNT = 1_000;
+    private static final SingleBusyCellReadNoTouchWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow workflow = SingleBusyCellReadNoTouchWorkflows.create(
+            transactionStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)),
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)));
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void transactionsDoNotConflictExcessively() {
+        WorkflowHistory workflowHistory = workflow.run();
+        assertThat(workflowHistory.history()).hasSizeBetween(ITERATION_COUNT / 2, ITERATION_COUNT);
+    }
+
+    @Test
+    public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).allSatisfy(action -> assertThat(action)
+                .isInstanceOfSatisfying(WitnessedSingleCellTransactionAction.class, singleCellAction -> {
+                    assertThat(singleCellAction.table()).isEqualTo(TABLE_NAME);
+                    assertThat(singleCellAction.cell()).isEqualTo(SingleBusyCellReadNoTouchWorkflows.BUSY_CELL);
+                }));
+    }
+
+    @Test
+    public void targetCellIsReadModifiedAndDeleted() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+
+    @Test
+    public void readTransactionsDontDoWrites() {
+        WorkflowHistory workflowHistory = workflow.run();
+
+        Set<WitnessedTransaction> witnessedTransactionsWithReads = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream().anyMatch(WitnessedReadTransactionAction.class::isInstance))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> witnessedTransactionsWithWritesOrDeletes = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream()
+                        .anyMatch(action -> action instanceof WitnessedWriteTransactionAction
+                                || action instanceof WitnessedDeleteTransactionAction))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> transactionsWithReadsAndWritesOrDeletes =
+                Sets.intersection(witnessedTransactionsWithReads, witnessedTransactionsWithWritesOrDeletes);
+
+        assertThat(transactionsWithReadsAndWritesOrDeletes).isEmpty();
+    }
+}u}(j (7c5e5dd4c91f2b67063efe16f34ae4be1c2ca774j latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj modifiedj K|j Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X&  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.google.common.collect.ImmutableList;
@@ -41,8 +42,10 @@
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.stream.Collectors;
@@ -127,7 +130,7 @@ public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
         transactionStore.readWrite(txn -> txn.delete(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 1, 1)));
         invariant.accept(history, reference::set);
         assertThat(reference.get())
-                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                .containsExactly(CrossCellInconsistency.builder()
                         .putInconsistentValues(
                                 TableAndWorkloadCell.of(
                                         TABLE_NAME,
@@ -139,7 +142,7 @@ public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
                                         ImmutableWorkloadCell.of(
                                                 TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 1)),
                                 Optional.of(0))
-                        .build()));
+                        .build());
     }
 
     @Test
@@ -152,7 +155,7 @@ public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
                 TransientRowsWorkflows.VALUE));
         invariant.accept(history, reference::set);
         assertThat(reference.get())
-                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                .containsExactly(CrossCellInconsistency.builder()
                         .putInconsistentValues(
                                 TableAndWorkloadCell.of(
                                         TABLE_NAME,
@@ -164,7 +167,7 @@ public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
                                         ImmutableWorkloadCell.of(
                                                 TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 2)),
                                 Optional.empty())
-                        .build()));
+                        .build());
     }
 
     @Test
@@ -185,7 +188,123 @@ public void invariantReportsViolationsFromTransactionHistory() {
                 .build();
         invariant.accept(falseHistory, reference::set);
 
-        assertThat(reference.get()).hasSize(ITERATION_COUNT - 1);
+        assertThat(reference.get())
+                .hasSize(ITERATION_COUNT - 1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
+        WitnessedReadTransactionAction readWitness = WitnessedReadTransactionAction.of(
+                TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of the summary row")
+                .hasExactlyArgs(SafeArg.of("actions", ImmutableList.of(readWitness)));
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCorrespondingPrimaryRow() {
+        List<WitnessedTransactionAction> actions = ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of a corresponding normal row")
+                .hasExactlyArgs(SafeArg.of("actions", actions));
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothEmpty() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions = getReadWitnessesForSingleTransaction(
+                2, Optional.of(TransientRowsWorkflows.VALUE), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsPresentAndPrimaryIsAbsent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.of(TransientRowsWorkflows.VALUE), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsAbsentAndPrimaryIsPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    private ImmutableWorkflowHistory getWorkflowHistory(List<WitnessedTransactionAction> actions) {
+        return ImmutableWorkflowHistory.builder()
+                .transactionStore(transactionStore)
+                .history(ImmutableList.of(ImmutableFullyWitnessedTransaction.builder()
+                        .addAllActions(actions)
+                        .startTimestamp(0L)
+                        .commitTimestamp(1L)
+                        .build()))
+                .build();
+    }
+
+    private static List<WitnessedTransactionAction> getReadWitnessesForSingleTransaction(
+            int columnIndex, Optional<Integer> summaryValue, Optional<Integer> primaryValue) {
+        return ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, columnIndex),
+                        summaryValue),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(columnIndex, TransientRowsWorkflows.COLUMN),
+                        primaryValue));
+    }
+
+    private static void inconsistencyInvolvesPairOfPrimaryAndSummaryCells(CrossCellInconsistency inconsistency) {
+        Map<TableAndWorkloadCell, Optional<Integer>> readValues = inconsistency.inconsistentValues();
+        TableAndWorkloadCell summaryCell = readValues.keySet().stream()
+                .filter(tableAndWorkloadCell -> tableAndWorkloadCell.cell().key() == TransientRowsWorkflows.SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of the summary row", SafeArg.of("readValues", readValues)));
+        TableAndWorkloadCell primaryCell = getPrimaryCellForSummaryCell(summaryCell);
+
+        assertThat(readValues.keySet()).containsExactlyInAnyOrder(summaryCell, primaryCell);
+        assertThat(readValues.values())
+                .containsExactlyInAnyOrder(Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+    }
+
+    // This workflow uses a single table, where the summary row's columns correspond to rows with primary values.
+    private static TableAndWorkloadCell getPrimaryCellForSummaryCell(TableAndWorkloadCell summaryCell) {
+        return TableAndWorkloadCell.of(
+                summaryCell.tableName(),
+                ImmutableWorkloadCell.of(summaryCell.cell().column(), TransientRowsWorkflows.COLUMN));
     }
 
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(u      }(j (fe0267e6f697a967a6133f2554009d8a0be04d4cj katlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtilsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -67,7 +67,7 @@ public void performTransfersReturnsBalancesWithCorrectSum() {
         when(random.nextInt(anyInt())).thenReturn(0, 1);
         Map<Integer, Integer> balances = Map.of(0, 1, 1, 1);
         Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
-        assertThat(newBalances).isEqualTo(Map.of(0, 0, 1, 2));
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(Map.of(0, 0, 1, 2));
         assertThat(newBalances.values().stream().mapToInt(Integer::intValue).sum())
                 .isEqualTo(2);
     }
@@ -77,6 +77,6 @@ public void performsTransfersOnlyIfValueWouldNotBeBelowZero() {
         when(random.nextInt(anyInt())).thenReturn(0, 1);
         Map<Integer, Integer> balances = Map.of(0, 0, 1, 2);
         Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
-        assertThat(newBalances).isEqualTo(balances);
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(balances);
     }
 }u}(j (7ae440730798415742814c38fb59d0707273036ej datlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingGraphTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X=  @@ -101,6 +101,6 @@ public void generateNewRingReturnsValidRing() {
 
     @Test
     public void asMapConvertsCorrectly() {
-        assertThat(RingGraph.from(VALID_RING).asMap()).isEqualTo(VALID_RING);
+        assertThat(RingGraph.from(VALID_RING).asMap()).containsExactlyInAnyOrderEntriesOf(VALID_RING);
     }
 }u}(j (022221727d6f2d598a0016a225e75264c9780625j build.gradlej modifiedj Kj Kj K
j ^https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/build.gradlej ]https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/build.gradlej phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -7,20 +7,20 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.0'
-        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.2.0'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.4'
+        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.3.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.38.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.39.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
-        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
+        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
-        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'
+        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.3'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
         classpath 'gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1'
         classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'
@@ -113,8 +113,7 @@ allprojects {
                 'Slf4jLogsafeArgs',
                 'StaticAssignmentInConstructor',
                 'StrictUnusedVariable'
-        options.errorprone.error 'DefaultLocale',
-                'SafeLoggingPropagation'
+        options.errorprone.error 'SafeLoggingPropagation'
     }
 }
 u}(j (351dc558cfb12f3027ca880f55c00742ee516cbdj  changelog/0.870.0/pr-6613.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.870.0%2Fpr-6613.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.870.0%2Fpr-6613.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.870.0%2Fpr-6613.v2.yml?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: There now exists an Antithesis workflow that exercises read-write transactions
+    that only do reads.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6613u}(j (ffd47f177c27dd39d87fb4cd84339ad7d1911c1cj  changelog/0.874.0/pr-6625.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.874.0%2Fpr-6625.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.874.0%2Fpr-6625.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.874.0%2Fpr-6625.v2.yml?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LockV1] Add async thread info snapshotting (disabled by default)'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6625u}(j (a6c9d3dd239346b5de33d708683efcea7ca6e0d1j  changelog/0.875.0/pr-6623.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.875.0%2Fpr-6623.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.875.0%2Fpr-6623.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.875.0%2Fpr-6623.v2.yml?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Log lock holder thread info on timeout, slow lock acquisition and contention
+  links:
+  - https://github.com/palantir/atlasdb/pull/6623u}(j (34c425f71f242ce114bab888f8034960c6b716e7j  changelog/0.877.0/pr-6602.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.877.0%2Fpr-6602.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.877.0%2Fpr-6602.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.877.0%2Fpr-6602.v2.yml?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Add metrics for number of requested cell/row-level commit locks
+  links:
+  - https://github.com/palantir/atlasdb/pull/6602u}(j (46b215e4664b4438f038bf048c14656f6fb089e1j  changelog/0.878.0/pr-6630.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.878.0%2Fpr-6630.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.878.0%2Fpr-6630.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.878.0%2Fpr-6630.v2.yml?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Remove recursive loop when filtering out cells that are not applicable
+    to our transaction.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6630u}(j (9914bf81d7b0081790e5b357d977f35947ad8b60j  changelog/0.879.0/pr-6626.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.879.0%2Fpr-6626.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.879.0%2Fpr-6626.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.879.0%2Fpr-6626.v2.yml?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LockV1] Pass refreshable thread info configuration'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6626u}(j (a17f90ec5d7c8dabd4b8d110ace6016af8cfad9cj  changelog/0.880.0/pr-6641.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.880.0%2Fpr-6641.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.880.0%2Fpr-6641.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.880.0%2Fpr-6641.v2.yml?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize CassandraService#refreshTokenRangesAndGetServers
+  links:
+  - https://github.com/palantir/atlasdb/pull/6641u}(j (7afdb03a2af8b0138cc1524e0d39e84990810e28j  changelog/0.881.0/pr-6624.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.881.0%2Fpr-6624.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.881.0%2Fpr-6624.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.881.0%2Fpr-6624.v2.yml?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Stopped checking immutable timestamp lock on thoroughly swept tables
+    when reading an empty value.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6624u}(j (3750fb7fc4996863b5345b1cb6cbf683dd8cfc1fj  changelog/0.882.0/pr-6648.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.882.0%2Fpr-6648.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.882.0%2Fpr-6648.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.882.0%2Fpr-6648.v2.yml?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize CassandraService#getAddressForHost
+  links:
+  - https://github.com/palantir/atlasdb/pull/6648u}(j (aa4df8d917755227eec390dd5e0d424aebabf4c7j  changelog/0.882.0/pr-6649.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.882.0%2Fpr-6649.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.882.0%2Fpr-6649.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.882.0%2Fpr-6649.v2.yml?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: bump snappy-java to 1.1.10.1
+  links:
+  - https://github.com/palantir/atlasdb/pull/6649u}(j (d7951f643174772a855f4d861eeddb8fc504150aj  changelog/0.883.0/pr-6644.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.883.0%2Fpr-6644.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.883.0%2Fpr-6644.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6644.v2.yml?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Create LockRequestMetadata and ChangeMetadata
+  links:
+  - https://github.com/palantir/atlasdb/pull/6644u}(j (f502755b47a5379d145593d6f6a21b6d0ff20be9j  changelog/0.883.0/pr-6646.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.883.0%2Fpr-6646.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.883.0%2Fpr-6646.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6646.v2.yml?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add metadata to LockEvent'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6646u}(j (59a104ba72569b4dfd00ae8626fea6e626f1cc19j  changelog/0.883.0/pr-6647.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.883.0%2Fpr-6647.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/changelog%2F0.883.0%2Fpr-6647.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6647.v2.yml?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add LockMetadata to IdentifiedLockRequest'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6647u}(j (689da2f7264afbb03bb06b6a430723bd1dcbbf4bj lock-api-objects/build.gradlej modifiedj Kj K j Kj qhttps://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api-objects%2Fbuild.gradlej phttps://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api-objects%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fbuild.gradle?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X_  @@ -16,6 +16,7 @@ dependencies {
     implementation 'com.google.errorprone:error_prone_annotations'
     implementation 'com.google.guava:guava'
     implementation project(':commons-annotations')
+    testImplementation project(path: ':lock-api')
 
     annotationProcessor 'org.immutables:value'
     compileOnly 'org.immutables:value::annotations'u}(j (933965abbab2686a96a62a6ac504123076081ec8j Ilock-api-objects/src/main/java/com/palantir/lock/LockClientAndThread.javaj addedj K$j K j K$j https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface LockClientAndThread {
+    LockClientAndThread UNKNOWN = LockClientAndThread.of(LockClient.ANONYMOUS, "unknown-thread");
+
+    LockClient client();
+
+    String thread();
+
+    static ImmutableLockClientAndThread.Builder builder() {
+        return ImmutableLockClientAndThread.builder();
+    }
+
+    static LockClientAndThread of(LockClient client, String requestingThread) {
+        return builder().client(client).thread(requestingThread).build();
+    }
+}u}(j (4305d649486aabcf97ca07976c286654204cf825j Jlock-api-objects/src/main/java/com/palantir/lock/watch/ChangeMetadata.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -0,0 +1,137 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.palantir.lock.watch.ChangeMetadata.Created;
+import com.palantir.lock.watch.ChangeMetadata.Deleted;
+import com.palantir.lock.watch.ChangeMetadata.Unchanged;
+import com.palantir.lock.watch.ChangeMetadata.Updated;
+import org.immutables.value.Value;
+import org.immutables.value.Value.Immutable;
+
+/**
+ * The subtypes of this class can be used to document CRUD-like operations that were applied to a value.
+ * However, the READ case is not accounted for as no locks are taken out for reads.
+ * Every instance should be associated with a {@link com.palantir.lock.LockDescriptor}.
+ * It is up to the users of metadata to know the type of value it refers to
+ * and how to interpret the different subtypes.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
+@JsonSubTypes({
+    @JsonSubTypes.Type(value = Unchanged.class, name = Unchanged.TYPE),
+    @JsonSubTypes.Type(value = Updated.class, name = Updated.TYPE),
+    @JsonSubTypes.Type(value = Deleted.class, name = Deleted.TYPE),
+    @JsonSubTypes.Type(value = Created.class, name = Created.TYPE),
+})
+public interface ChangeMetadata {
+    <T> T accept(Visitor<T> visitor);
+
+    static Unchanged unchanged() {
+        return ImmutableUnchanged.builder().build();
+    }
+
+    static Updated updated(byte[] oldValue, byte[] newValue) {
+        return ImmutableUpdated.of(oldValue, newValue);
+    }
+
+    static Deleted deleted(byte[] oldValue) {
+        return ImmutableDeleted.of(oldValue);
+    }
+
+    static Created created(byte[] newValue) {
+        return ImmutableCreated.of(newValue);
+    }
+
+    interface Visitor<T> {
+        T visit(Unchanged unchanged);
+
+        T visit(Updated updated);
+
+        T visit(Deleted deleted);
+
+        T visit(Created created);
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableUnchanged.class)
+    @JsonDeserialize(as = ImmutableUnchanged.class)
+    @JsonTypeName(Unchanged.TYPE)
+    interface Unchanged extends ChangeMetadata {
+        String TYPE = "unchanged";
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableUpdated.class)
+    @JsonDeserialize(as = ImmutableUpdated.class)
+    @JsonTypeName(Updated.TYPE)
+    interface Updated extends ChangeMetadata {
+        String TYPE = "updated";
+
+        @Value.Parameter
+        byte[] oldValue();
+
+        @Value.Parameter
+        byte[] newValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableDeleted.class)
+    @JsonDeserialize(as = ImmutableDeleted.class)
+    @JsonTypeName(Deleted.TYPE)
+    interface Deleted extends ChangeMetadata {
+        String TYPE = "deleted";
+
+        @Value.Parameter
+        byte[] oldValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableCreated.class)
+    @JsonDeserialize(as = ImmutableCreated.class)
+    @JsonTypeName(Created.TYPE)
+    interface Created extends ChangeMetadata {
+        String TYPE = "created";
+
+        @Value.Parameter
+        byte[] newValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+}u}(j (9ef6441b1ec7d185a6b25c242d1d64524dbaadc5j Elock-api-objects/src/main/java/com/palantir/lock/watch/LockEvent.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j Xa  @@ -16,12 +16,14 @@
 
 package com.palantir.lock.watch;
 
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonTypeName;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.logsafe.Unsafe;
+import java.util.Optional;
 import java.util.Set;
 import org.immutables.value.Value;
 
@@ -37,6 +39,9 @@ public abstract class LockEvent implements LockWatchEvent {
 
     public abstract LockToken lockToken();
 
+    @JsonIgnore
+    public abstract Optional<LockRequestMetadata> metadata();
+
     @Override
     public int size() {
         return lockDescriptors().size();
@@ -48,8 +53,15 @@ public <T> T accept(Visitor<T> visitor) {
     }
 
     public static LockWatchEvent.Builder builder(Set<LockDescriptor> lockDescriptors, LockToken lockToken) {
-        ImmutableLockEvent.Builder builder =
-                ImmutableLockEvent.builder().lockDescriptors(lockDescriptors).lockToken(lockToken);
+        return builder(lockDescriptors, lockToken, Optional.empty());
+    }
+
+    public static LockWatchEvent.Builder builder(
+            Set<LockDescriptor> lockDescriptors, LockToken lockToken, Optional<LockRequestMetadata> metadata) {
+        ImmutableLockEvent.Builder builder = ImmutableLockEvent.builder()
+                .lockDescriptors(lockDescriptors)
+                .lockToken(lockToken)
+                .metadata(metadata);
         return seq -> builder.sequence(seq).build();
     }
 }u}(j (baa29a11aad2762f424acb1d510175b8849ecba2j Olock-api-objects/src/main/java/com/palantir/lock/watch/LockRequestMetadata.javaj addedj K'j K j K'j https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X0  @@ -0,0 +1,39 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import com.palantir.lock.LockDescriptor;
+import com.palantir.logsafe.Unsafe;
+import java.util.Map;
+import org.immutables.value.Value;
+
+/**
+ * Metadata attached to a lock request and to any {@link LockEvent} created as a result of that request.
+ * Ideally, this class is not serialized as-is to JSON due to the repetition of {@link LockDescriptor} values
+ * in {@link LockRequestMetadata#lockDescriptorToChangeMetadata()} and the parent object.
+ */
+@Unsafe
+@Value.Immutable
+public interface LockRequestMetadata {
+    Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata();
+
+    static LockRequestMetadata of(Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata) {
+        return ImmutableLockRequestMetadata.builder()
+                .lockDescriptorToChangeMetadata(lockDescriptorToChangeMetadata)
+                .build();
+    }
+}u}(j (8e3edb51b7ae6b3309b255039a0a6dd18134f32dj Jlock-api/src/main/java/com/palantir/lock/DebugThreadInfoConfiguration.javaj addedj K(j K j K(j https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -0,0 +1,40 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@JsonDeserialize(as = ImmutableDebugThreadInfoConfiguration.class)
+@JsonSerialize(as = ImmutableDebugThreadInfoConfiguration.class)
+@Value.Immutable
+public interface DebugThreadInfoConfiguration {
+
+    @JsonProperty("record-thread-info")
+    @Value.Default
+    default boolean recordThreadInfo() {
+        return false;
+    }
+
+    @JsonProperty("thread-info-snapshot-interval-millis")
+    @Value.Default
+    default long threadInfoSnapshotIntervalMillis() {
+        return 300000L;
+    }
+}u}(j (24a4a395982dfe44421aaba5d136f4694950815fj ?lock-api/src/main/java/com/palantir/lock/LockServerConfigs.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j XV  @@ -20,4 +20,7 @@ public final class LockServerConfigs {
     private LockServerConfigs() {}
 
     public static final LockServerOptions DEFAULT = LockServerOptions.builder().build();
+
+    public static final DebugThreadInfoConfiguration DEFAULT_THREAD_INFO_CONFIG =
+            ImmutableDebugThreadInfoConfiguration.builder().build();
 }u}(j (da50ee7393b93c8d71153140ffe86ba6c40366fcj ?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -16,6 +16,7 @@
 package com.palantir.lock;
 
 import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.google.common.base.MoreObjects;
@@ -126,6 +127,15 @@ public long slowLogTriggerMillis() {
         return 10000L;
     }
 
+    /**
+     * Runtime configuration relating to thread info recording (which lock is held by which client-thread).
+     */
+    @JsonIgnore
+    @Value.Default
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    }
+
     @Override
     public boolean equals(@Nullable Object obj) {
         if (this == obj) {
@@ -142,7 +152,8 @@ && getRandomBitCount() == other.getRandomBitCount()
                 && Objects.equals(getMaxAllowedClockDrift(), other.getMaxAllowedClockDrift())
                 && Objects.equals(getMaxAllowedBlockingDuration(), other.getMaxAllowedBlockingDuration())
                 && Objects.equals(getMaxNormalLockAge(), other.getMaxNormalLockAge())
-                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout());
+                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout())
+                && Objects.equals(threadInfoConfiguration(), other.threadInfoConfiguration());
     }
 
     @Override
@@ -155,7 +166,8 @@ public int hashCode() {
                 getMaxNormalLockAge(),
                 getRandomBitCount(),
                 getStuckTransactionTimeout(),
-                slowLogTriggerMillis());
+                slowLogTriggerMillis(),
+                threadInfoConfiguration());
     }
 
     @Override
@@ -169,6 +181,7 @@ public String toString() {
                 .add("randomBitCount", getRandomBitCount())
                 .add("stuckTransactionTimeout", getStuckTransactionTimeout())
                 .add("slowLogTriggerMillis", slowLogTriggerMillis())
+                .add("threadInfoConfiguration", threadInfoConfiguration())
                 .toString();
     }
 u}(j (6ad04228eeb384671486cf32446155659b4c354ej Jlock-api/src/main/java/com/palantir/lock/client/IdentifiedLockRequest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -15,10 +15,12 @@
  */
 package com.palantir.lock.client;
 
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.Unsafe;
 import java.util.Optional;
 import java.util.Set;
@@ -43,15 +45,32 @@ public interface IdentifiedLockRequest {
     @Value.Parameter
     Optional<String> getClientDescription();
 
+    @Value.Parameter
+    @JsonIgnore
+    Optional<LockRequestMetadata> getMetadata();
+
     static IdentifiedLockRequest of(Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs) {
         return ImmutableIdentifiedLockRequest.of(
-                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.empty());
+                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.empty(), Optional.empty());
     }
 
     static IdentifiedLockRequest of(
             Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs, String clientDescription) {
         return ImmutableIdentifiedLockRequest.of(
-                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription));
+                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription), Optional.empty());
+    }
+
+    static IdentifiedLockRequest of(
+            Set<LockDescriptor> lockDescriptors,
+            long acquireTimeoutMs,
+            String clientDescription,
+            LockRequestMetadata metadata) {
+        return ImmutableIdentifiedLockRequest.of(
+                UUID.randomUUID(),
+                lockDescriptors,
+                acquireTimeoutMs,
+                Optional.of(clientDescription),
+                Optional.of(metadata));
     }
 
     static IdentifiedLockRequest from(LockRequest lockRequest) {u}(j (9f55ad6d5a91523f5133238f9b39ba8002664e51j Nlock-api/src/test/java/com/palantir/lock/client/IdentifiedLockRequestTest.javaj modifiedj KIj Kj KTj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -19,24 +19,86 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
 import com.fasterxml.jackson.datatype.guava.GuavaModule;
 import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockRequestMetadata;
+import java.nio.charset.StandardCharsets;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.UUID;
 import org.junit.Test;
 
 public class IdentifiedLockRequestTest {
-    private static final String SERIALIZED_LOCK_REQUEST = "{"
-            + "\"requestId\":\"885afd9c-de62-44ff-a517-5db14b71bfaa\","
-            + "\"lockDescriptors\":[{\"bytes\":\"Zm9v\"}],"
-            + "\"acquireTimeoutMs\":123,"
-            + "\"clientDescription\":\"Thread: main\"}";
+    private static final String BASE = "src/test/resources/identified-lock-request-wire-format/";
+    private static final boolean REWRITE_JSON_BLOBS = false;
+    private static final IdentifiedLockRequest BASELINE_REQUEST = ImmutableIdentifiedLockRequest.builder()
+            .requestId(new UUID(1337, 42))
+            .lockDescriptors(ImmutableSet.of(StringLockDescriptor.of("lock1"), StringLockDescriptor.of("lock2")))
+            .acquireTimeoutMs(100)
+            .clientDescription("client: test, thread: test")
+            .build();
+    private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(ImmutableMap.of(
+            StringLockDescriptor.of("lock1"), ChangeMetadata.created("something".getBytes(StandardCharsets.UTF_8))));
+    private static final ObjectMapper MAPPER = new ObjectMapper()
+            .enable(SerializationFeature.INDENT_OUTPUT)
+            .registerModule(new Jdk8Module())
+            .registerModule(new GuavaModule());
 
-    private static final ObjectMapper mapper =
-            new ObjectMapper().registerModule(new Jdk8Module()).registerModule(new GuavaModule());
+    @Test
+    public void baselineRequestIsFullCompat() {
+        assertSerializedEquals(BASELINE_REQUEST, "baseline");
+        assertDeserializedEquals("baseline", BASELINE_REQUEST);
+    }
 
     @Test
-    public void ensureSerdeBackcompat() throws Exception {
-        IdentifiedLockRequest request = mapper.readValue(SERIALIZED_LOCK_REQUEST, IdentifiedLockRequest.class);
-        String deserialized = mapper.writeValueAsString(request);
-        assertThat(mapper.readTree(deserialized)).isEqualTo(mapper.readTree(SERIALIZED_LOCK_REQUEST));
+    public void baselineRequestWithMetadataIsBackCompat() {
+        assertSerializedEquals(
+                ImmutableIdentifiedLockRequest.copyOf(BASELINE_REQUEST).withMetadata(LOCK_REQUEST_METADATA),
+                "baseline");
+    }
+
+    private static void assertSerializedEquals(IdentifiedLockRequest request, String jsonFileName) {
+        try {
+            Path path = getJsonPath(jsonFileName);
+            if (REWRITE_JSON_BLOBS) {
+                MAPPER.writeValue(path.toFile(), request);
+            }
+            String serialized = serialize(request);
+            assertThat(MAPPER.readTree(serialized))
+                    .as("Serialization yields identical JSON representation")
+                    .isEqualTo(MAPPER.readTree(Files.readString(path)));
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static void assertDeserializedEquals(String jsonFileName, IdentifiedLockRequest request) {
+        assertThat(deserialize(jsonFileName)).isEqualTo(request);
+    }
+
+    private static String serialize(IdentifiedLockRequest request) {
+        try {
+            return MAPPER.writeValueAsString(request);
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static IdentifiedLockRequest deserialize(String jsonFileName) {
+        try {
+            return MAPPER.readValue(Files.readString(getJsonPath(jsonFileName)), IdentifiedLockRequest.class);
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static Path getJsonPath(String jsonFileName) {
+        return Paths.get(BASE + jsonFileName + ".json");
     }
 }u}(j (88f329985fc4d91067bebcd353b56f20d58b75bej Mlock-api/src/test/resources/identified-lock-request-wire-format/baseline.jsonj addedj K
j K j K
j https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.jsonj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.jsonj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.json?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -0,0 +1,10 @@
+{
+  "requestId" : "00000000-0000-0539-0000-00000000002a",
+  "lockDescriptors" : [ {
+    "bytes" : "bG9jazE="
+  }, {
+    "bytes" : "bG9jazI="
+  } ],
+  "acquireTimeoutMs" : 100,
+  "clientDescription" : "client: test, thread: test"
+}
\ No newline at end of fileu}(j (dfc342440e6b1fcac63ded5134e926da137e5418j lock-impl/build.gradlej modifiedj Kj K j Kj jhttps://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-impl%2Fbuild.gradlej ihttps://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-impl%2Fbuild.gradlej |https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fbuild.gradle?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -10,6 +10,7 @@ dependencies {
   implementation 'com.google.guava:guava'
   implementation 'com.palantir.common:streams'
   implementation 'com.palantir.nylon:nylon-threads'
+  implementation 'com.palantir.refreshable:refreshable'
   implementation 'com.palantir.safe-logging:preconditions'
   implementation 'com.palantir.safe-logging:safe-logging'
   implementation 'joda-time:joda-time'
@@ -22,6 +23,7 @@ dependencies {
   implementation project(':lock-api-objects')
   implementation project(':timestamp-api')
 
+  testImplementation 'org.awaitility:awaitility'
   testImplementation 'com.fasterxml.jackson.core:jackson-databind'
   testImplementation 'com.google.guava:guava'
   testImplementation 'com.palantir.safe-logging:preconditions'u}(j (ccf79fc6208425b23884007b50ffc458e3a26bd5j Llock-impl/src/main/java/com/palantir/lock/impl/AdjustableBackgroundTask.javaj addedj Kej K j Kej https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -0,0 +1,101 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.io.Closeable;
+import java.time.Duration;
+import java.util.concurrent.RejectedExecutionException;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
+import java.util.function.Supplier;
+
+public final class AdjustableBackgroundTask implements Closeable {
+
+    /**
+     * A minimum duration between invocations if the task is not actually enabled.
+     * This is to prevent having a blocking thread in the background that does nothing.
+     */
+    @VisibleForTesting
+    static final Duration MINIMUM_INTERVAL_IF_NOT_RUNNING = Duration.ofSeconds(1);
+
+    private static final SafeLogger log = SafeLoggerFactory.get(AdjustableBackgroundTask.class);
+
+    private final ScheduledExecutorService scheduledExecutor;
+    private final Supplier<Boolean> shouldRunSupplier;
+    private final Supplier<Duration> intervalSupplier;
+    private final Runnable task;
+
+    public static AdjustableBackgroundTask create(
+            Supplier<Boolean> shouldRunSupplier, Supplier<Duration> delaySupplier, Runnable task) {
+        return new AdjustableBackgroundTask(
+                shouldRunSupplier, delaySupplier, task, PTExecutors.newSingleThreadScheduledExecutor());
+    }
+
+    @VisibleForTesting
+    AdjustableBackgroundTask(
+            Supplier<Boolean> shouldRunSupplier,
+            Supplier<Duration> intervalSupplier,
+            Runnable task,
+            ScheduledExecutorService scheduledExecutor) {
+        this.shouldRunSupplier = shouldRunSupplier;
+        this.intervalSupplier = intervalSupplier;
+        this.task = task;
+        this.scheduledExecutor = scheduledExecutor;
+        run();
+    }
+
+    private void run() {
+        boolean shouldRun = shouldRunSupplier.get();
+        if (shouldRun) {
+            try {
+                task.run();
+            } catch (Exception e) {
+                if (Thread.interrupted()) {
+                    log.error("Task was interrupted. Stopping background execution.", e);
+                    Thread.currentThread().interrupt();
+                    return;
+                }
+                log.error("Exception occurred during task", e);
+            } catch (Error e) {
+                log.error("Error occurred during task. Stopping background execution.", e);
+                return;
+            }
+        }
+        try {
+            long intervalMillis = intervalSupplier.get().toMillis();
+            scheduledExecutor.schedule(
+                    this::run,
+                    shouldRun ? intervalMillis : Math.max(MINIMUM_INTERVAL_IF_NOT_RUNNING.toMillis(), intervalMillis),
+                    TimeUnit.MILLISECONDS);
+        } catch (RejectedExecutionException e) {
+            log.warn(
+                    "Scheduler rejected execution",
+                    SafeArg.of("schedulerIsShutdown", scheduledExecutor.isShutdown()),
+                    e);
+        }
+    }
+
+    @Override
+    public void close() {
+        scheduledExecutor.shutdown();
+    }
+}u}(j (d46677bd60efd12dee64f1090e49358ef304d8d9j Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj modifiedj K.j Kj K>j https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X$  @@ -80,6 +80,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.nylon.threads.ThreadNames;
+import com.palantir.refreshable.Refreshable;
 import com.palantir.util.JMXUtils;
 import com.palantir.util.Ownable;
 import java.math.BigInteger;
@@ -92,6 +93,7 @@
 import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.BlockingQueue;
@@ -104,6 +106,7 @@
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicInteger;
 import java.util.function.Supplier;
+import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 import javax.annotation.concurrent.ThreadSafe;
@@ -183,6 +186,9 @@ public String toString() {
     private final SimpleTimeDuration stuckTransactionTimeout;
     private final AtomicBoolean isShutDown = new AtomicBoolean(false);
 
+    /** Configurable background task that periodically collects snapshots about the current lock state */
+    private final LockThreadInfoSnapshotManager threadInfoSnapshotManager;
+
     private final LockClientIndices clientIndices = new LockClientIndices();
 
     /** The backing client-aware read write lock for each lock descriptor. */
@@ -228,15 +234,21 @@ public static LockServiceImpl create() {
     public static LockServiceImpl create(LockServerOptions options) {
         com.palantir.logsafe.Preconditions.checkNotNull(options);
         ExecutorService newExecutor = PTExecutors.newCachedThreadPool(LockServiceImpl.class.getName());
-        return create(options, Ownable.owned(newExecutor));
+        return create(Refreshable.only(options), Ownable.owned(newExecutor));
     }
 
-    public static LockServiceImpl create(LockServerOptions options, ExecutorService injectedExecutor) {
+    public static LockServiceImpl create(Refreshable<LockServerOptions> options, ExecutorService injectedExecutor) {
         com.palantir.logsafe.Preconditions.checkNotNull(options);
+        com.palantir.logsafe.Preconditions.checkNotNull(options.current());
         return create(options, Ownable.notOwned(injectedExecutor));
     }
 
-    private static LockServiceImpl create(LockServerOptions options, Ownable<ExecutorService> executor) {
+    public static LockServiceImpl create(LockServerOptions options, ExecutorService injectedExecutor) {
+        com.palantir.logsafe.Preconditions.checkNotNull(options);
+        return create(Refreshable.only(options), Ownable.notOwned(injectedExecutor));
+    }
+
+    private static LockServiceImpl create(Refreshable<LockServerOptions> options, Ownable<ExecutorService> executor) {
         if (log.isTraceEnabled()) {
             log.trace("Creating LockService with options={}", SafeArg.of("options", options));
         }
@@ -247,15 +259,22 @@ private static LockServiceImpl create(LockServerOptions options, Ownable<Executo
         return lockService;
     }
 
-    private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable<ExecutorService> executor) {
+    /**
+     * Only {@link LockServerOptions#threadInfoConfiguration()} is actually reloadable
+     */
+    private LockServiceImpl(
+            Refreshable<LockServerOptions> options, Runnable callOnClose, Ownable<ExecutorService> executor) {
+        LockServerOptions currentOptions = options.current();
         this.lockReapRunner = new LockReapRunner(executor);
         this.callOnClose = callOnClose;
-        this.isStandaloneServer = options.isStandaloneServer();
-        this.maxAllowedLockTimeout = SimpleTimeDuration.of(options.getMaxAllowedLockTimeout());
-        this.maxAllowedClockDrift = SimpleTimeDuration.of(options.getMaxAllowedClockDrift());
-        this.maxNormalLockAge = SimpleTimeDuration.of(options.getMaxNormalLockAge());
-        this.stuckTransactionTimeout = SimpleTimeDuration.of(options.getStuckTransactionTimeout());
-        this.slowLogTriggerMillis = options.slowLogTriggerMillis();
+        this.isStandaloneServer = currentOptions.isStandaloneServer();
+        this.maxAllowedLockTimeout = SimpleTimeDuration.of(currentOptions.getMaxAllowedLockTimeout());
+        this.maxAllowedClockDrift = SimpleTimeDuration.of(currentOptions.getMaxAllowedClockDrift());
+        this.maxNormalLockAge = SimpleTimeDuration.of(currentOptions.getMaxNormalLockAge());
+        this.stuckTransactionTimeout = SimpleTimeDuration.of(currentOptions.getStuckTransactionTimeout());
+        this.slowLogTriggerMillis = currentOptions.slowLogTriggerMillis();
+        this.threadInfoSnapshotManager = new LockThreadInfoSnapshotManager(
+                options.map(LockServerOptions::threadInfoConfiguration), () -> heldLocksTokenMap);
     }
 
     private HeldLocksToken createHeldLocksToken(
@@ -465,7 +484,7 @@ private void logLockAcquisitionFailure(Map<LockDescriptor, LockClient> failedLoc
         final String logMessage = "Current holders of the first {} of {} total failed locks were: {}";
 
         List<String> lockDescriptions = new ArrayList<>();
-        Iterator<Map.Entry<LockDescriptor, LockClient>> entries =
+        Iterator<Entry<LockDescriptor, LockClient>> entries =
                 failedLocks.entrySet().iterator();
         for (int i = 0; i < MAX_FAILED_LOCKS_TO_LOG && entries.hasNext(); i++) {
             Map.Entry<LockDescriptor, LockClient> entry = entries.next();
@@ -477,7 +496,10 @@ private void logLockAcquisitionFailure(Map<LockDescriptor, LockClient> failedLoc
                 logMessage,
                 SafeArg.of("numLocksLogged", Math.min(MAX_FAILED_LOCKS_TO_LOG, failedLocks.size())),
                 SafeArg.of("numLocksFailed", failedLocks.size()),
-                UnsafeArg.of("lockDescriptions", lockDescriptions));
+                UnsafeArg.of("lockDescriptions", lockDescriptions),
+                threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(failedLocks.keySet().stream()
+                        .limit(MAX_FAILED_LOCKS_TO_LOG)
+                        .collect(Collectors.toSet())));
     }
 
     private boolean isBlocking(BlockingMode blockingMode) {
@@ -523,7 +545,7 @@ private void tryLocks(
                 LockClient currentHolder = tryLock(lock.get(client, entry.getValue()), blockingMode, deadline);
                 if (log.isDebugEnabled() || isSlowLogEnabled()) {
                     long responseTimeMillis = System.currentTimeMillis() - startTime;
-                    logSlowLockAcquisition(entry.getKey().toString(), currentHolder, responseTimeMillis);
+                    logSlowLockAcquisition(entry.getKey(), currentHolder, responseTimeMillis);
                 }
                 if (currentHolder == null) {
                     locks.put(lock, entry.getValue());
@@ -542,22 +564,25 @@ private void tryLocks(
     }
 
     @VisibleForTesting
-    void logSlowLockAcquisition(String lockId, LockClient currentHolder, long durationMillis) {
+    void logSlowLockAcquisition(LockDescriptor lockDescriptor, LockClient currentHolder, long durationMillis) {
         final String slowLockLogMessage = "Blocked for {} ms to acquire lock {} {}.";
+        final String lockId = lockDescriptor.getLockIdAsString();
 
         // Note: The construction of params is pushed into the branches, as it may be expensive.
         if (isSlowLogEnabled() && durationMillis >= slowLogTriggerMillis) {
             SlowLockLogger.logger.warn(
                     slowLockLogMessage,
                     SafeArg.of("durationMillis", durationMillis),
                     UnsafeArg.of("lockId", lockId),
-                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"));
+                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"),
+                    threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(Set.of(lockDescriptor)));
         } else if (log.isDebugEnabled() && durationMillis > DEBUG_SLOW_LOG_TRIGGER_MILLIS) {
             log.debug(
                     slowLockLogMessage,
                     SafeArg.of("durationMillis", durationMillis),
                     UnsafeArg.of("lockId", lockId),
-                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"));
+                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"),
+                    threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(Set.of(lockDescriptor)));
         }
     }
 
@@ -1217,6 +1242,7 @@ private String safeLockStats() {
     public void close() {
         if (isShutDown.compareAndSet(false, true)) {
             lockReapRunner.close();
+            threadInfoSnapshotManager.close();
             blockingThreads.forEach(Thread::interrupt);
             callOnClose.run();
         }
@@ -1227,6 +1253,10 @@ public long currentTimeMillis() {
         return System.currentTimeMillis();
     }
 
+    public LockThreadInfoSnapshotManager getSnapshotManager() {
+        return threadInfoSnapshotManager;
+    }
+
     private static String updateThreadName(LockRequest request) {
         String currentThreadName = Thread.currentThread().getName();
         tryRenameThread(u}(j (8fe141cc254985903635606c7c4d0fb75eae629bj Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javaj addedj Krj K j Krj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -0,0 +1,114 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableMap;
+import com.palantir.lock.DebugThreadInfoConfiguration;
+import com.palantir.lock.HeldLocksToken;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.refreshable.Refreshable;
+import java.time.Duration;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.ConcurrentMap;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+
+public class LockThreadInfoSnapshotManager implements AutoCloseable {
+    private static final SafeLogger log = SafeLoggerFactory.get(LockThreadInfoSnapshotManager.class);
+    private final Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration;
+
+    private final Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
+
+    private volatile Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot = ImmutableMap.of();
+
+    private final AdjustableBackgroundTask backgroundTask;
+
+    public LockThreadInfoSnapshotManager(
+            Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration,
+            Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> mapSupplier) {
+        this.threadInfoConfiguration = threadInfoConfiguration;
+        this.tokenMapSupplier = mapSupplier;
+        this.backgroundTask = AdjustableBackgroundTask.create(
+                threadInfoConfiguration.map(DebugThreadInfoConfiguration::recordThreadInfo),
+                threadInfoConfiguration.map(config -> Duration.ofMillis(config.threadInfoSnapshotIntervalMillis())),
+                this::takeSnapshot);
+    }
+
+    @VisibleForTesting
+    Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot() {
+        return lastKnownThreadInfoSnapshot;
+    }
+
+    /**
+     * Returns a consistent snapshot of thread information restricted to the given lock descriptors wrapped in an
+     * unsafe logging argument.
+     */
+    public UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> getRestrictedSnapshotAsOptionalLogArg(
+            Set<LockDescriptor> lockDescriptors) {
+        String argName = "presumedClientThreadHoldersIfEnabled";
+        if (!threadInfoConfiguration.current().recordThreadInfo()) {
+            // Avoids keeping the value alive even though we are never returning it
+            lastKnownThreadInfoSnapshot = Map.of();
+            return UnsafeArg.of(argName, Optional.empty());
+        }
+        Map<LockDescriptor, LockClientAndThread> latestSnapshot = lastKnownThreadInfoSnapshot;
+        Map<LockDescriptor, LockClientAndThread> restrictedSnapshot = new HashMap<>();
+        for (LockDescriptor lock : lockDescriptors) {
+            restrictedSnapshot.put(lock, latestSnapshot.get(lock));
+        }
+        return UnsafeArg.of(argName, Optional.of(restrictedSnapshot));
+    }
+
+    @VisibleForTesting
+    void takeSnapshot() {
+        lastKnownThreadInfoSnapshot = tokenMapSupplier.get().keySet().stream()
+                .flatMap(token -> {
+                    LockClientAndThread clientThread = LockClientAndThread.of(
+                            Objects.requireNonNullElse(token.getClient(), LockClientAndThread.UNKNOWN.client()),
+                            Objects.requireNonNullElse(
+                                    token.getRequestingThread(), LockClientAndThread.UNKNOWN.thread()));
+                    return token.getLockDescriptors().stream()
+                            .map(lockDescriptor -> Map.entry(lockDescriptor, clientThread));
+                })
+                // Although a lock can be held by multiple clients/threads, we only remember one to save space
+                .collect(Collectors.toMap(Entry::getKey, Entry::getValue, (existing, replacement) -> existing));
+
+        log.info(
+                "Took thread info snapshot of {} locks. Next snapshot due in {}ms",
+                SafeArg.of("snapshotSize", lastKnownThreadInfoSnapshot.size()),
+                SafeArg.of(
+                        "snapshotIntervalMillis",
+                        threadInfoConfiguration.current().threadInfoSnapshotIntervalMillis()));
+    }
+
+    @Override
+    public void close() {
+        backgroundTask.close();
+    }
+}u}(j (97ae55956450814bf5146499495e54f469faa960j Plock-impl/src/test/java/com/palantir/lock/impl/AdjustableBackgroundTaskTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438       j X  @@ -0,0 +1,142 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.refreshable.Refreshable;
+import com.palantir.refreshable.SettableRefreshable;
+import java.time.Duration;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.concurrent.atomic.AtomicLong;
+import org.jmock.lib.concurrent.DeterministicScheduler;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class AdjustableBackgroundTaskTest {
+    private static final Duration DEFAULT_INTERVAL = Duration.ofSeconds(10);
+    private final AtomicLong field = new AtomicLong(0);
+    private final AtomicBoolean shouldRun = new AtomicBoolean(false);
+    private final SettableRefreshable<Duration> interval = Refreshable.create(DEFAULT_INTERVAL);
+    private final DeterministicScheduler scheduledExecutor = new DeterministicScheduler();
+    private final AtomicLong numCallsToShouldRunSupplier = new AtomicLong(0);
+    private final AtomicLong numCallsToIntervalSupplier = new AtomicLong(0);
+    private final AdjustableBackgroundTask adjustableBackgroundTask = new AdjustableBackgroundTask(
+            () -> {
+                numCallsToShouldRunSupplier.incrementAndGet();
+                return shouldRun.get();
+            },
+            () -> {
+                numCallsToIntervalSupplier.incrementAndGet();
+                return interval.current();
+            },
+            field::incrementAndGet,
+            scheduledExecutor);
+
+    @BeforeClass
+    public static void testDelayShouldNotExceedMinimumDelay() {
+        // We have to ensure that our default interval is higher than MINIMUM_INTERVAL_IF_NOT_RUNNING
+        // so our tests are actually meaningful
+        assertThat(DEFAULT_INTERVAL).isGreaterThanOrEqualTo(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING);
+    }
+
+    @Test
+    public void doesNotRunTaskDuringConstruction() {
+        assertThat(field.get()).isEqualTo(0);
+    }
+
+    @Test
+    public void doesNotRunTaskByDefault() {
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(0);
+    }
+
+    @Test
+    public void canBeEnabledDisabledAndReEnabled() {
+        shouldRun.set(true);
+        tick(DEFAULT_INTERVAL);
+        long after = field.get();
+        assertThat(after).isEqualTo(1);
+
+        shouldRun.set(false);
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(after);
+
+        shouldRun.set(true);
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(after + 1);
+    }
+
+    @Test
+    public void canAdjustInterval() {
+        Duration newInterval = Duration.ofMinutes(1);
+        interval.update(newInterval);
+        shouldRun.set(true);
+        // initial run was scheduled at default interval
+        tick(DEFAULT_INTERVAL);
+        tick(Duration.ofMinutes(42 - 1));
+        assertThat(field.get()).isEqualTo(42);
+    }
+
+    @Test
+    public void canAdjustIntervalBelowMinimumDelayIfRunning() {
+        Duration newInterval = Duration.ofMillis(1);
+        interval.update(newInterval);
+        shouldRun.set(true);
+        // initial run was scheduled at default interval
+        tick(DEFAULT_INTERVAL);
+        tick(Duration.ofMillis(10 - 1));
+        assertThat(field.get()).isEqualTo(10);
+    }
+
+    @Test
+    public void runsSuppliersAtReducedIntervalIfNotRunning() {
+        Duration newInterval = Duration.ofMillis(1);
+        interval.update(newInterval);
+        Duration elapsedDuration = Duration.ofSeconds(10);
+        // initial run was scheduled at default interval, this will run suppliers once
+        tick(DEFAULT_INTERVAL);
+        tick(elapsedDuration);
+        assertThat(field.get()).isEqualTo(0);
+        // suppliers are also called once when running the constructor
+        assertThat(numCallsToShouldRunSupplier.get())
+                .as("Ensure the number of times we checked if we should run is at most the number of times"
+                        + " MINIMUM_INTERVAL_IF_NOT_RUNNING has elapsed")
+                .isLessThanOrEqualTo(
+                        elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
+        assertThat(numCallsToIntervalSupplier.get())
+                .as("Ensure the number of times we checked at what interval we should run is at most the number of"
+                        + " times MINIMUM_INTERVAL_IF_NOT_RUNNING has elapsed")
+                .isLessThanOrEqualTo(
+                        elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
+    }
+
+    @Test
+    public void suppliersAreCalledTogetherWithTask() {
+        shouldRun.set(true);
+        tick(Duration.ofSeconds(10 * DEFAULT_INTERVAL.toSeconds()));
+        assertThat(field.get()).isEqualTo(10);
+        // suppliers are also called once when running the constructor
+        assertThat(numCallsToShouldRunSupplier.get()).isEqualTo(11);
+        assertThat(numCallsToIntervalSupplier.get()).isEqualTo(11);
+    }
+
+    private void tick(Duration duration) {
+        scheduledExecutor.tick(duration.toMillis(), TimeUnit.MILLISECONDS);
+    }
+}u}(j (aa47bbbffda9b68b9a93e2e31755530993156e4fj Glock-impl/src/test/java/com/palantir/lock/impl/LockServiceImplTest.javaj modifiedj Kj Kj K%j https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X!  @@ -22,16 +22,21 @@
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.lock.LockClient;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRefreshToken;
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.StringLockDescriptor;
 import com.palantir.lock.client.LockRefreshingLockService;
+import com.palantir.logsafe.UnsafeArg;
 import java.io.IOException;
 import java.util.HashSet;
 import java.util.List;
+import java.util.Map;
+import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.TimeUnit;
@@ -49,6 +54,9 @@
 public final class LockServiceImplTest {
     public static final long SLOW_LOG_TRIGGER_MILLIS = LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS + 10;
     private static final String TEST_LOCKID = "test_lockId";
+    private static final LockDescriptor TEST_LOCK = StringLockDescriptor.of(TEST_LOCKID);
+    private static final UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> THREAD_INFO_SNAPSHOT_ARG =
+            UnsafeArg.of("presumedClientThreadHoldersIfEnabled", Optional.empty());
     private static LockServiceImpl lockServiceWithSlowLogEnabled;
     private static LockServiceImpl lockServiceWithSlowLogDisabled;
 
@@ -94,48 +102,63 @@ public void slowLogShouldNotBeEnabledIfSlowLogTriggerMillisIsSetToZero() {
     @Test
     public void slowLogShouldBeLoggedWhenLockResponseIsSlowButShouldNotBeLoggedAtDebug() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS + 5;
-        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertThat(testLockServiceImplLogger.getLoggingEvents()).isEmpty();
 
         assertThat(testSlowLogger.getLoggingEvents()).hasSize(1);
         assertContainsMatchingLoggingEvent(
                 testSlowLogger.getLoggingEvents(),
-                warn("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                warn(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
     }
 
     @Test
     public void debugLogShouldBeLoggedWhenLockResponseIsSlowButSlowLogIsDisabled() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS + 5;
-        lockServiceWithSlowLogDisabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogDisabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertThat(testLockServiceImplLogger.getLoggingEvents()).hasSize(1);
         assertContainsMatchingLoggingEvent(
                 testLockServiceImplLogger.getLoggingEvents(),
-                debug("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                debug(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }
 
     @Test
     public void debugLogShouldBeLoggedIfLockResponseTimeIsBetweenDebugTriggerTimeAndSlowLogTriggerMillis() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS - 5;
-        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertContainsMatchingLoggingEvent(
                 testLockServiceImplLogger.getLoggingEvents(),
-                debug("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                debug(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }
 
     @Test
     public void debugOrSlowLogShouldNotBeLoggedWhenLockResponseIsNotSlow() {
         lockServiceWithSlowLogEnabled.logSlowLockAcquisition(
-                TEST_LOCKID, LockClient.ANONYMOUS, LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS - 5);
+                TEST_LOCK, LockClient.ANONYMOUS, LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS - 5);
         assertThat(testLockServiceImplLogger.getLoggingEvents()).isEmpty();
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }u}(j (0ff14400f99f0f97c0494b5db923ebce2e42263dj Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javaj addedj MHj K j MHj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j XP:  @@ -0,0 +1,328 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableSortedMap;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.common.streams.KeyedStream;
+import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
+import com.palantir.lock.LockClient;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.LockMode;
+import com.palantir.lock.LockRequest;
+import com.palantir.lock.LockResponse;
+import com.palantir.lock.LockServerOptions;
+import com.palantir.lock.SimpleTimeDuration;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.logsafe.UnsafeArg;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Future;
+import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.After;
+import org.junit.Test;
+
+public class ThreadInfoLockServiceImplTest {
+    private static final LockDescriptor TEST_LOCK_1 = StringLockDescriptor.of("lock-1");
+    private static final LockDescriptor TEST_LOCK_2 = StringLockDescriptor.of("lock-2");
+    private static final LockDescriptor TEST_LOCK_3 = StringLockDescriptor.of("lock-3");
+
+    private static final String TEST_THREAD_1 = "thread-1";
+    private static final String TEST_THREAD_2 = "thread-2";
+    private static final String TEST_THREAD_3 = "thread-3";
+
+    private static final LockRequest LOCK_1_THREAD_1_WRITE_REQUEST = LockRequest.builder(
+                    ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+            .withCreatingThreadName(TEST_THREAD_1)
+            .build();
+
+    private static final LockClientAndThread ANONYMOUS_TEST_THREAD_1 =
+            LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1);
+
+    private final ExecutorService executor =
+            PTExecutors.newCachedThreadPool(ThreadInfoLockServiceImplTest.class.getName());
+
+    // Disable background snapshotting, invoke explicitly instead
+    private final LockServiceImpl lockService = LockServiceImpl.create(LockServerOptions.builder()
+            .isStandaloneServer(false)
+            .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                    .recordThreadInfo(false)
+                    .build())
+            .build());
+
+    @Test
+    public void initialThreadInfoIsEmpty() {
+        forceSnapshot();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+    }
+
+    @Test
+    public void recordsThreadInfoForLock() throws InterruptedException {
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+    }
+
+    @Test
+    public void recordsThreadInfoForUnlock() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+
+        lockService.unlock(response.getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+    }
+
+    @Test
+    public void recordsThreadInfoForMultipleLocks() throws InterruptedException {
+        int numThreads = 10;
+        int numLocksPerThread = 10;
+
+        List<String> threadNames =
+                IntStream.range(0, numThreads).mapToObj(i -> "test-thread-" + i).collect(Collectors.toList());
+
+        Map<String, Set<LockDescriptor>> locksPerThread = KeyedStream.of(threadNames)
+                .map(threadName -> IntStream.range(0, numLocksPerThread)
+                        .mapToObj(i -> StringLockDescriptor.of("test-lock-" + i + "-from-thread-" + threadName))
+                        .collect(Collectors.toSet()))
+                .collectToMap();
+
+        for (Map.Entry<String, Set<LockDescriptor>> entry : locksPerThread.entrySet()) {
+            LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.copyOf(
+                            entry.getValue().stream().collect(Collectors.toMap(lock -> lock, lock -> LockMode.WRITE))))
+                    .withCreatingThreadName(entry.getKey())
+                    .build();
+            lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest);
+        }
+
+        forceSnapshot();
+
+        locksPerThread.forEach((threadName, lockDescriptors) ->
+                lockDescriptors.forEach(lock -> assertThat(getLatestThreadInfoForLock(lock))
+                        .contains(LockClientAndThread.of(LockClient.ANONYMOUS, threadName))));
+    }
+
+    @Test
+    public void recordsThreadInfoForSharedLock() throws InterruptedException {
+        LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+        LockRequest lockRequest2 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .doNotBlock()
+                .lockAsManyAsPossible()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        LockResponse lockResponse = lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest1);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1).get())
+                .isIn(ANONYMOUS_TEST_THREAD_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+
+        lockService.unlock(lockResponse.getToken());
+
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+    }
+
+    @Test
+    public void doesNotRecordDroppedLocksWithLockAllOrNone() throws InterruptedException {
+        // T2 cannot get lock 1 -> grouping behavior LOCK_ALL_OR_NONE will release lock 2, even though it could have
+        // been locked
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
+                .doNotBlock()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+    }
+
+    @Test
+    public void recordsUnlockAndFreezeForNonAnonymousClient() throws InterruptedException {
+        LockClient client = LockClient.of("non-anonymous-client");
+
+        LockResponse response = lockService.lockWithFullLockResponse(client, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(LockClientAndThread.of(client, TEST_THREAD_1));
+
+        lockService.unlockAndFreeze(response.getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+    }
+
+    @Test
+    public void recordsCorrectStateAfterMultipleOperations() throws Exception {
+        CountDownLatch latch = new CountDownLatch(1);
+
+        // T1 locks 1 exclusively and locks 2 in shared mode
+        LockResponse response1 = lockService.lockWithFullLockResponse(
+                LockClient.ANONYMOUS,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_1)
+                        .build());
+
+        // T2 shouldn't get 1, but locks 3 in exclusive mode,
+        LockResponse response2 = lockService.lockWithFullLockResponse(
+                LockClient.ANONYMOUS,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_3, LockMode.WRITE))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_2)
+                        .build());
+
+        Future<LockResponse> response3 = executor.submit(() -> {
+
+            // T3 will wait at most 5 seconds to lock 1 in exclusive mode and lock 2 in shared mode
+            LockResponse response = lockService.lockWithFullLockResponse(
+                    LockClient.ANONYMOUS,
+                    LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                            .blockForAtMost(SimpleTimeDuration.of(5, TimeUnit.SECONDS))
+                            .lockAsManyAsPossible()
+                            .withCreatingThreadName(TEST_THREAD_3)
+                            .build());
+            latch.countDown();
+            return response;
+        });
+        lockService.unlock(response1.getToken());
+        latch.await();
+
+        forceSnapshot();
+
+        // T1 should hold nothing, T2 holds 3 in exclusive mode, T3 holds 1 in exclusive and 2 in shared mode
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+
+        lockService.unlock(response2.getToken());
+        forceSnapshot();
+
+        // Only T3 should hold locks
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+
+        lockService.unlock(response3.get().getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+    }
+
+    @Test
+    public void refreshDoesNotChangeSnapshot() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+
+        lockService.refreshTokens(List.of(response.getToken()));
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+    }
+
+    @Test
+    public void logArgIsUnsafeAndContainsEmptyOptionalIfNotRecordingThreadInfo() throws InterruptedException {
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+        assertThat(lockService.getSnapshotManager().getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
+                .isEqualTo(UnsafeArg.of("presumedClientThreadHoldersIfEnabled", Optional.empty()));
+    }
+
+    @Test
+    public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() throws InterruptedException {
+        LockServiceImpl lockServiceWithRecordingEnabled = LockServiceImpl.create(LockServerOptions.builder()
+                .isStandaloneServer(false)
+                .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                        .recordThreadInfo(true)
+                        .build())
+                .build());
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
+                .doNotBlock()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockServiceWithRecordingEnabled.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockServiceWithRecordingEnabled.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+
+        lockServiceWithRecordingEnabled.getSnapshotManager().takeSnapshot();
+
+        assertThat(lockServiceWithRecordingEnabled
+                        .getSnapshotManager()
+                        .getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
+                .isEqualTo(UnsafeArg.of(
+                        "presumedClientThreadHoldersIfEnabled",
+                        // Snapshot should be restricted to TEST_LOCK_1
+                        Optional.of(Map.of(TEST_LOCK_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1)))));
+
+        lockServiceWithRecordingEnabled.close();
+    }
+
+    @After
+    public void tearDown() {
+        lockService.close();
+    }
+
+    private void forceSnapshot() {
+        lockService.getSnapshotManager().takeSnapshot();
+    }
+
+    private Optional<LockClientAndThread> getLatestThreadInfoForLock(LockDescriptor lock) {
+        return Optional.ofNullable(lockService
+                .getSnapshotManager()
+                .getLastKnownThreadInfoSnapshot()
+                .get(lock));
+    }
+}u}(j (8c5d010b813c3904a027f75049590aef2a7eb16aj %scripts/circle-ci/run-circle-tests.shj modifiedj Kj Kj Kj {https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/scripts%2Fcircle-ci%2Frun-circle-tests.shj zhttps://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/scripts%2Fcircle-ci%2Frun-circle-tests.shj https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -2,7 +2,7 @@
 
 set -x
 
-BASE_GRADLE_ARGS="--profile"
+BASE_GRADLE_ARGS="--scan --profile --continue"
 
 function checkDocsBuild {
      pyenv install 3.5.4
@@ -77,12 +77,14 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 # External builds have a 16gb limit.
 if [ "$test_suite_index" -eq "14" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
+elif [ "$test_suite_index" -eq "4" ]; then
+    export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 elif [ "$test_suite_index" -eq "3" ]; then
     export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
     BASE_GRADLE_ARGS+=" --scan --parallel"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
-    BASE_GRADLE_ARGS+=" --scan --parallel"
+    BASE_GRADLE_ARGS+=" --parallel"
 fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64mu}(j (2d3777830cee23df595f18bcd0f7378a07e49ebej etimelock-agent/src/main/java/com/palantir/timelock/config/RestrictedTimeLockRuntimeConfiguration.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j Xb  @@ -16,6 +16,7 @@
 
 package com.palantir.timelock.config;
 
+import com.palantir.lock.DebugThreadInfoConfiguration;
 import java.util.Optional;
 
 public class RestrictedTimeLockRuntimeConfiguration extends TimeLockRuntimeConfiguration {
@@ -54,4 +55,9 @@ public TimeLockAdjudicationConfiguration adjudication() {
     public Optional<TsBoundPersisterRuntimeConfiguration> timestampBoundPersistence() {
         return runtime.timestampBoundPersistence();
     }
+
+    @Override
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return runtime.threadInfoConfiguration();
+    }
 }u}(j (d8d2a7c36eb3321b137f488acb279decabb46ac6j [timelock-agent/src/main/java/com/palantir/timelock/config/TimeLockRuntimeConfiguration.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -20,6 +20,8 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.google.common.base.Preconditions;
+import com.palantir.lock.DebugThreadInfoConfiguration;
+import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
 import com.palantir.logsafe.DoNotLog;
 import java.util.Optional;
 import org.immutables.value.Value;
@@ -78,6 +80,12 @@ public TimeLockAdjudicationConfiguration adjudication() {
     @JsonProperty("timestamp-bound-persistence")
     public abstract Optional<TsBoundPersisterRuntimeConfiguration> timestampBoundPersistence();
 
+    @JsonProperty("debug-thread-info-config")
+    @Value.Default
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    }
+
     @Value.Check
     public void check() {
         Preconditions.checkState(u}(j (a168b555f03c27ec1cf6a6780262110e71867bedj Itimelock-agent/src/main/java/com/palantir/timelock/paxos/LockCreator.javaj modifiedj K	j Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -21,30 +21,32 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.impl.LockServiceImpl;
 import com.palantir.lock.impl.ThreadPooledLockService;
+import com.palantir.refreshable.Refreshable;
 import com.palantir.timelock.config.TimeLockRuntimeConfiguration;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Semaphore;
-import java.util.function.Supplier;
 
 public class LockCreator {
-    private final Supplier<TimeLockRuntimeConfiguration> runtime;
+    private final Refreshable<TimeLockRuntimeConfiguration> runtime;
     private final long blockingTimeoutMs;
     private final Semaphore sharedThreadPool;
     private final ExecutorService sharedExecutor = PTExecutors.newCachedThreadPool(LockServiceImpl.class.getName());
 
-    public LockCreator(Supplier<TimeLockRuntimeConfiguration> runtime, int threadPoolSize, long blockingTimeoutMs) {
+    public LockCreator(Refreshable<TimeLockRuntimeConfiguration> runtime, int threadPoolSize, long blockingTimeoutMs) {
         this.runtime = runtime;
         this.sharedThreadPool = new Semaphore(threadPoolSize);
         this.blockingTimeoutMs = blockingTimeoutMs;
     }
 
     public CloseableLockService createThreadPoolingLockService() {
-        LockServerOptions lockServerOptions = LockServerOptions.builder()
-                .slowLogTriggerMillis(runtime.get().slowLockLogTriggerMillis())
-                .build();
+        Refreshable<LockServerOptions> lockServerOptions = runtime.map(rt -> LockServerOptions.builder()
+                .slowLogTriggerMillis(rt.slowLockLogTriggerMillis())
+                .threadInfoConfiguration(rt.threadInfoConfiguration())
+                .build());
 
         LockServiceImpl rawLockService = LockServiceImpl.create(lockServerOptions, sharedExecutor);
-        CloseableLockService lockService = BlockingTimeLimitedLockService.create(rawLockService, blockingTimeoutMs);
+        CloseableLockService lockService = BlockingTimeLimitedLockService.create(
+                rawLockService, blockingTimeoutMs, rawLockService.getSnapshotManager());
 
         return new ThreadPooledLockService(lockService, -1, sharedThreadPool);
     }u}(j (cba6348015c254aa9ba5c6b6a2f959d6673f27dcj btimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockService.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X/
  @@ -32,6 +32,7 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.LockState;
 import com.palantir.lock.SimpleHeldLocksToken;
+import com.palantir.lock.impl.LockThreadInfoSnapshotManager;
 import com.palantir.lock.remoting.BlockingTimeoutException;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
@@ -44,31 +45,45 @@
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.TimeoutException;
+import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import javax.ws.rs.PathParam;
 import org.immutables.value.Value;
 
 public class BlockingTimeLimitedLockService implements CloseableLockService {
     private static final SafeLogger log = SafeLoggerFactory.get(BlockingTimeLimitedLockService.class);
 
+    private static final int MAX_THREADINFO_TO_LOG = 20;
+
     private final CloseableLockService delegate;
     private final TimeLimiter timeLimiter;
     private final long blockingTimeLimitMillis;
 
+    private final LockThreadInfoSnapshotManager threadInfoSnapshotManager;
+
     @VisibleForTesting
     BlockingTimeLimitedLockService(
-            CloseableLockService delegate, TimeLimiter timeLimiter, long blockingTimeLimitMillis) {
+            CloseableLockService delegate,
+            TimeLimiter timeLimiter,
+            long blockingTimeLimitMillis,
+            LockThreadInfoSnapshotManager threadInfoSnapshotManager) {
         this.delegate = delegate;
         this.timeLimiter = timeLimiter;
         this.blockingTimeLimitMillis = blockingTimeLimitMillis;
+        this.threadInfoSnapshotManager = threadInfoSnapshotManager;
     }
 
     public static BlockingTimeLimitedLockService create(
-            CloseableLockService lockService, long blockingTimeLimitMillis) {
+            CloseableLockService lockService,
+            long blockingTimeLimitMillis,
+            LockThreadInfoSnapshotManager threadInfoSnapshotManager) {
         // TODO (jkong): Inject the executor to allow application lifecycle managed executors.
         // Currently maintaining existing behaviour.
         return new BlockingTimeLimitedLockService(
-                lockService, SimpleTimeLimiter.create(PTExecutors.newCachedThreadPool()), blockingTimeLimitMillis);
+                lockService,
+                SimpleTimeLimiter.create(PTExecutors.newCachedThreadPool()),
+                blockingTimeLimitMillis,
+                threadInfoSnapshotManager);
     }
 
     @Nullable
@@ -234,7 +249,11 @@ private BlockingTimeoutException logAndHandleTimeout(LockRequestSpecification sp
                 SafeArg.of("timeoutDurationMillis", blockingTimeLimitMillis),
                 SafeArg.of("method", specification.method()),
                 SafeArg.of("client", specification.client()),
-                UnsafeArg.of("lockRequest", specification.lockRequest()));
+                UnsafeArg.of("lockRequest", specification.lockRequest()),
+                threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(
+                        specification.lockRequest().getLockDescriptors().stream()
+                                .limit(MAX_THREADINFO_TO_LOG)
+                                .collect(Collectors.toSet())));
 
         String errorMessage = String.format(
                 logMessage.replace("{}", "%s"),u}(j (ba84282c91e1c85c2d25288ffc78e1895ce61edej ftimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockServiceTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.javaj https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.java?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X:  @@ -33,6 +33,7 @@
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.impl.LockThreadInfoSnapshotManager;
 import com.palantir.lock.remoting.BlockingTimeoutException;
 import java.io.IOException;
 import java.util.concurrent.ExecutionException;
@@ -57,6 +58,8 @@ public class BlockingTimeLimitedLockServiceTest {
 
     private final CloseableLockService delegate = mock(CloseableLockService.class);
 
+    private final LockThreadInfoSnapshotManager snapshotManager = mock(LockThreadInfoSnapshotManager.class);
+
     private final BlockingTimeLimitedLockService acceptingService = createService(acceptingLimiter);
     private final BlockingTimeLimitedLockService timingOutService = createService(timingOutLimiter);
     private final BlockingTimeLimitedLockService interruptingService = createService(interruptingLimiter);
@@ -130,6 +133,6 @@ private void verifyCurrentTimeMillisDelegates(BlockingTimeLimitedLockService ser
     }
 
     private BlockingTimeLimitedLockService createService(TimeLimiter limiter) {
-        return new BlockingTimeLimitedLockService(delegate, limiter, BLOCKING_TIME_LIMIT_MILLIS);
+        return new BlockingTimeLimitedLockService(delegate, limiter, BLOCKING_TIME_LIMIT_MILLIS, snapshotManager);
     }
 }u}(j (d3392a1c1b4cebd374d23f72a1c5cd73c77b3bc2j 
versions.lockj modifiedj K%j K%j KJj _https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/versions.lockj ^https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/versions.lockj qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X*+  @@ -10,22 +10,22 @@ com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
 com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c38132bb)
 com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bbb5dd72)
-com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 03bafb2e)
-com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e133df00)
-com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7e1c9da4)
+com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 06bad036)
+com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e233e000)
+com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7f1c9ea4)
 com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2 (4 constraints: 2244332b)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 333f21b0)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6b30665e)
-com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 312bccaf)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6b30665e)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 343f76b0)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6c30915e)
+com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 322bf7af)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6c30915e)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 40197abb)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 41197bbb)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.2 (2 constraints: 251d9309)
-com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9a1c98a6)
+com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9b1c99a6)
 com.fasterxml.jackson.module:jackson-module-blackbird:2.14.2 (1 constraints: b40e625e)
 com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.2 (2 constraints: db2e8469)
 com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 24cec010)
+com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 2dce2620)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -45,7 +45,7 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (23 constraints: a3788bf6)
+com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f2947442)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
@@ -67,28 +67,28 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:6.77.0 (5 constraints: ad546073)
-com.palantir.conjure.java:conjure-undertow-annotations:6.77.0 (1 constraints: 4605743b)
-com.palantir.conjure.java:conjure-undertow-lib:6.77.0 (2 constraints: 8d1cfdb0)
+com.palantir.conjure.java:conjure-lib:7.5.0 (5 constraints: cd530c72)
+com.palantir.conjure.java:conjure-undertow-annotations:7.5.0 (1 constraints: 0e051d36)
+com.palantir.conjure.java:conjure-undertow-lib:7.5.0 (2 constraints: 1d1c4081)
 com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 3d696e70)
 com.palantir.conjure.java.api:service-config:2.34.0 (5 constraints: 724d79ca)
 com.palantir.conjure.java.api:ssl-config:2.34.0 (3 constraints: e22a0da5)
-com.palantir.conjure.java.runtime:client-config:7.40.0 (6 constraints: a46bdb28)
-com.palantir.conjure.java.runtime:conjure-java-annotations:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.40.0 (2 constraints: c521007b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.40.0 (6 constraints: 306e1085)
-com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.40.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.40.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:keystores:7.40.0 (3 constraints: 162a3e5f)
-com.palantir.conjure.java.runtime:refresh-utils:7.40.0 (2 constraints: 051e6045)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.77.0 (2 constraints: 7f29c101)
-com.palantir.dialogue:dialogue-blocking-channels:3.77.0 (2 constraints: e12335b4)
-com.palantir.dialogue:dialogue-clients:3.77.0 (1 constraints: 4305623b)
-com.palantir.dialogue:dialogue-core:3.77.0 (3 constraints: 833de5e1)
-com.palantir.dialogue:dialogue-futures:3.77.0 (3 constraints: da3348c0)
-com.palantir.dialogue:dialogue-serde:3.77.0 (3 constraints: c12e6ba4)
-com.palantir.dialogue:dialogue-target:3.77.0 (7 constraints: 9e760764)
+com.palantir.conjure.java.runtime:client-config:7.45.0 (6 constraints: bd6b2133)
+com.palantir.conjure.java.runtime:conjure-java-annotations:7.45.0 (1 constraints: c6188d9e)
+com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.45.0 (2 constraints: ca210f7b)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.45.0 (6 constraints: 3f6ee88e)
+com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.45.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.45.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.45.0 (1 constraints: c6188d9e)
+com.palantir.conjure.java.runtime:keystores:7.45.0 (3 constraints: 202a4c60)
+com.palantir.conjure.java.runtime:refresh-utils:7.45.0 (2 constraints: 0a1e6f45)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.78.0 (2 constraints: 83295d02)
+com.palantir.dialogue:dialogue-blocking-channels:3.78.0 (2 constraints: e32369b4)
+com.palantir.dialogue:dialogue-clients:3.78.0 (1 constraints: 4405653b)
+com.palantir.dialogue:dialogue-core:3.78.0 (3 constraints: 883d62e3)
+com.palantir.dialogue:dialogue-futures:3.78.0 (3 constraints: dd33dac0)
+com.palantir.dialogue:dialogue-serde:3.78.0 (3 constraints: c62e7fa5)
+com.palantir.dialogue:dialogue-target:3.78.0 (7 constraints: a7763c6a)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -98,7 +98,7 @@ com.palantir.goethe:goethe:0.9.0 (1 constraints: 0b050636)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
 com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
-com.palantir.safe-logging:logger:3.2.0 (23 constraints: 4e88492a)
+com.palantir.safe-logging:logger:3.2.0 (24 constraints: 98a4d6fa)
 com.palantir.safe-logging:logger-slf4j:3.2.0 (1 constraints: 000e5942)
 com.palantir.safe-logging:logger-spi:3.2.0 (2 constraints: 0f1e997a)
 com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: f7178aeb)
@@ -108,14 +108,14 @@ com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
 com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 485c7290)
 com.palantir.tracing:tracing:6.17.0 (8 constraints: f97d045e)
 com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 1745b4f5)
-com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 441994bb)
+com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 46199abb)
 com.palantir.tritium:tritium-api:0.64.0 (6 constraints: 5052c7ce)
 com.palantir.tritium:tritium-caffeine:0.64.0 (1 constraints: 3c05433b)
 com.palantir.tritium:tritium-core:0.64.0 (5 constraints: 5d43281d)
 com.palantir.tritium:tritium-lib:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f16b49d8)
+com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f96b65dd)
 com.palantir.tritium:tritium-proxy:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-registry:0.64.0 (12 constraints: f6d27f35)
+com.palantir.tritium:tritium-registry:0.64.0 (13 constraints: 88ef0d92)
 com.palantir.tritium:tritium-slf4j:0.64.0 (2 constraints: bd138370)
 com.palantir.tritium:tritium-time:0.64.0 (1 constraints: 820e8359)
 com.palantir.tritium:tritium-tracing:0.64.0 (1 constraints: 820e8359)
@@ -186,7 +186,7 @@ io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf
 io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
-io.undertow:undertow-core:2.2.24.Final (2 constraints: 361dd006)
+io.undertow:undertow-core:2.2.25.Final (2 constraints: 331dfa06)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
@@ -195,7 +195,7 @@ jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 26793e31)
 jakarta.inject:jakarta.inject-api:1.0.5 (13 constraints: decbc9f9)
 jakarta.servlet:jakarta.servlet-api:4.0.4 (10 constraints: 7b9def70)
 jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
-jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (18 constraints: 5a38d98d)
+jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (17 constraints: 6f283f6d)
 jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.5 (6 constraints: 845987f4)
@@ -313,7 +313,7 @@ org.slf4j:slf4j-api:1.7.36 (44 constraints: 8180995b)
 org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
 org.wildfly.common:wildfly-common:1.6.0.Final (4 constraints: 3f390b3d)
 org.xerial:sqlite-jdbc:3.42.0.0 (1 constraints: 99054946)
-org.xerial.snappy:snappy-java:1.1.8 (2 constraints: 011529cb)
+org.xerial.snappy:snappy-java:1.1.10.1 (2 constraints: 891546f4)
 org.yaml:snakeyaml:1.33 (5 constraints: 0a4c5570)
 
 [Test dependencies]u}(j (04244236509f194bcfe0d83350f2346909da1318j versions.propsj modifiedj Kj Kj K
j `https://github.com/palantir/atlasdb/blob/25c99a096ed2cd60150e4e069ffec9913fc91438/versions.propsj _https://github.com/palantir/atlasdb/raw/25c99a096ed2cd60150e4e069ffec9913fc91438/versions.propsj rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=25c99a096ed2cd60150e4e069ffec9913fc91438j X  @@ -25,9 +25,9 @@ com.palantir.common:streams = 2.1.0
 com.palantir.config.crypto:* = 5.1.0
 com.palantir.conjure.java.api:* = 2.29.0
 com.palantir.conjure.java.runtime:* = 7.39.0
-com.palantir.conjure.java:* = 6.77.0
-com.palantir.conjure:conjure = 4.35.0
-com.palantir.dialogue:* = 3.77.0
+com.palantir.conjure.java:* = 7.5.0
+com.palantir.conjure:conjure = 4.36.0
+com.palantir.dialogue:* = 3.78.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
 com.palantir.goethe:* = 0.9.0
@@ -46,7 +46,7 @@ commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
 io.netty:* = 4.1.90.Final
-io.undertow:* = 2.2.24.Final
+io.undertow:* = 2.2.25.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2
@@ -78,7 +78,7 @@ org.reflections:reflections = 0.10.2
 org.rocksdb:rocksdbjni = 7.9.2
 org.slf4j:* = 1.7.36
 org.wildfly.common:wildfly-common = 1.6.0.Final
-org.xerial.snappy:snappy-java = 1.1.8
+org.xerial.snappy:snappy-java = 1.1.10.1
 org.xerial:sqlite-jdbc = 3.42.0.0
 org.yaml:snakeyaml = 1.33
 uk.org.lidalia:slf4j-test = 1.1.0ueu(43809f1b3b763b2899044a66f755804e2710f3a0}(sha(43809f1b3b763b2899044a66f755804e2710f3a0node_idEC_kwDOAjP5fdoAKDQzODA5ZjFiM2I3NjNiMjg5OTA0NGE2NmY3NTU4MDRlMjcxMGYzYTAcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-10T13:55:55Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-08-10T13:55:55ZumessageUpdate bank balance workflowtree}(j (f011a3eb60f8020a93e8f5dc9bd935db86cbc200url`https://api.github.com/repos/palantir/atlasdb/git/trees/f011a3eb60f8020a93e8f5dc9bd935db86cbc200uj	 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/43809f1b3b763b2899044a66f755804e2710f3a0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTU7GsACgkQmPPOpKR4
XS0wCwf+PbDK7nc5J9WWoZZpq02f8MIpqQfWOKQuPg4AdSNxaQnQkyZ0XcpN6PxB
f7I7jgrcZlCVz7n18pzgNCOTx/5RMJ/ZFFFfEjjd02vmRVc3ZbhotlTA8ldL5sHP
Ytgkp1baK1gsCzBlWcYft496E0GLr+8w1MFL4L4Iuv5QXkKybZU/RhsEhf5tHriY
+HXu2NOv+xBmkcOJVqXYG7UTdTbOpqEgV2Y0UnJ1tpUXmlayBp13jlyVamAOZHM2
au+qMqDr+sYMpOxgJX3D45rVJchWXw6QYSkI3Sycm/bxIHn35XWaYipuwJ/kDhyz
RvK4fXpZPMCKJCdwIyDFdwnMjNu/RQ==
=ogBY
-----END PGP SIGNATURE-----payloadtree f011a3eb60f8020a93e8f5dc9bd935db86cbc200
parent 7e7f0c360c2c5cb5c3ce072f1e29dbe6563b4614
author Sam Kramer <skramer@palantir.com> 1691675755 +0100
committer Sam Kramer <skramer@palantir.com> 1691675755 +0100

Update bank balance workflow
uuj	 ^https://api.github.com/repos/palantir/atlasdb/commits/43809f1b3b763b2899044a66f755804e2710f3a0html_urlShttps://github.com/palantir/atlasdb/commit/43809f1b3b763b2899044a66f755804e2710f3a0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/43809f1b3b763b2899044a66f755804e2710f3a0/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j	 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j" h5j	 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj% 1https://api.github.com/users/Sam-Kramer/followersj' >https://api.github.com/users/Sam-Kramer/following{/other_user}j) 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j+ >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j- 5https://api.github.com/users/Sam-Kramer/subscriptionsj/ ,https://api.github.com/users/Sam-Kramer/orgsj1 -https://api.github.com/users/Sam-Kramer/reposj3 8https://api.github.com/users/Sam-Kramer/events{/privacy}j5 7https://api.github.com/users/Sam-Kramer/received_eventsj7 Userj9 uparents]}(j (7e7f0c360c2c5cb5c3ce072f1e29dbe6563b4614j	 ^https://api.github.com/repos/palantir/atlasdb/commits/7e7f0c360c2c5cb5c3ce072f1e29dbe6563b4614j Shttps://github.com/palantir/atlasdb/commit/7e7f0c360c2c5cb5c3ce072f1e29dbe6563b4614uastats}(totalK	additionsK	deletionsKufiles]}(j (9dc92304e724131c1f50ede2faa14d9deb07cd1cfilenamekatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflows.javastatusmodifiedjS KjT KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/43809f1b3b763b2899044a66f755804e2710f3a0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/43809f1b3b763b2899044a66f755804e2710f3a0/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.java?ref=43809f1b3b763b2899044a66f755804e2710f3a0patchX  @@ -75,7 +75,7 @@ static Workflow create(
         return DefaultWorkflow.create(store, runTask, bankBalanceWorkflowConfiguration, executionExecutor);
     }
 
-    private static class BankBalanceRunTask
+    private static final class BankBalanceRunTask
             extends StoppableKeyedTransactionTask<InteractiveTransactionStore, Map<Integer, Optional<Integer>>> {
         private final BankBalanceWorkflowConfiguration workflowConfiguration;
 uau(14982a38b624d53764276f31e344130f8633950a}(sha(14982a38b624d53764276f31e344130f8633950anode_idEC_kwDOAjP5fdoAKDE0OTgyYTM4YjYyNGQ1Mzc2NDI3NmYzMWUzNDQxMzBmODYzMzk1MGEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-24T13:55:13Zu	committer}(jp 
Sam Kramerjr skramer@palantir.comjt 2023-05-24T13:55:13ZumessageOH mytree}(jh (c9f3fd6554861217683c3f32d4bc0b91292312a4url`https://api.github.com/repos/palantir/atlasdb/git/trees/c9f3fd6554861217683c3f32d4bc0b91292312a4uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/14982a38b624d53764276f31e344130f8633950a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRuF0EACgkQmPPOpKR4
XS1Dawf/VyWhxaV5qvKkfVeWLQtyfQQDNGoSSAYqT7cgRAFw9asljgo0g0Z/F8Sa
jZG6UNb2WD7fsOXOBC90CVmj+y+HFKlJU7dQu3TshiCK9Sc0WdVmajJR8yVgGqGU
NQYF0rk//Szed85igA2vfeDxrmMZ/N3cE2srmNNecCGA7pIRUTTNgbRG2Ig3hsJA
BXmCa4x7AFr/5EjaVcDRyRX6JJ+IxASmrkanuJ7NyPl8h1Gp0ls5yBH5P0OB1uAV
9AJYfTuUYPOgJSCFap7l0vAJYdzkNMcU+DD/RrhQKClQ1+50CYfl78RUYu2poscB
9MStZ7Uwg81KlLiAJtDqo1LHW4U0aQ==
=zzlk
-----END PGP SIGNATURE-----payloadtree c9f3fd6554861217683c3f32d4bc0b91292312a4
parent 8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813
author Sam Kramer <skramer@palantir.com> 1684936513 +0100
committer Sam Kramer <skramer@palantir.com> 1684936513 +0100

OH my
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/14982a38b624d53764276f31e344130f8633950ahtml_urlShttps://github.com/palantir/atlasdb/commit/14982a38b624d53764276f31e344130f8633950acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/14982a38b624d53764276f31e344130f8633950a/commentsjn }(login
Sam-KrameridJ^2_ jj MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujv }(j 
Sam-Kramerj J^2_ jj MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jh (8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813j ^https://api.github.com/repos/palantir/atlasdb/commits/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813j Shttps://github.com/palantir/atlasdb/commit/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813uastats}(totalK	additionsK	deletionsKufiles]}(jh (6735acdae9afca5e41e976579b7829865397b699filenameiatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/14982a38b624d53764276f31e344130f8633950a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/14982a38b624d53764276f31e344130f8633950a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=14982a38b624d53764276f31e344130f8633950apatchXN  @@ -215,7 +215,7 @@ public void close() {
     }
 
     static final ConsistencyLevel WRITE_CONSISTENCY = ConsistencyLevel.EACH_QUORUM;
-    static final ConsistencyLevel DELETE_CONSISTENCY = ConsistencyLevel.ALL;
+    static final ConsistencyLevel DELETE_CONSISTENCY = ConsistencyLevel.EACH_QUORUM;
 
     private final Logger log;
 uau(8dc7ca78c3828901d4a14e242e2dbbab7c71f8a0}(sha(8dc7ca78c3828901d4a14e242e2dbbab7c71f8a0node_idEC_kwDOAjP5fdoAKDhkYzdjYTc4YzM4Mjg5MDFkNGExNGUyNDJlMmRiYmFiN2M3MWY4YTAcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-28T16:07:02Zu	committer}(v     j 
Sam Kramerj skramer@palantir.comj 2023-04-28T16:07:02Zumessagesnapshot -> serializabletree}(j (ab0f771aa2bb7584de4fa21e507e47e4e4c32163url`https://api.github.com/repos/palantir/atlasdb/git/trees/ab0f771aa2bb7584de4fa21e507e47e4e4c32163uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8dc7ca78c3828901d4a14e242e2dbbab7c71f8a0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRL7yYACgkQmPPOpKR4
XS0lYQf/anL+2Lo+t7lJ+Rcg94K3PMmzsIi4KFmYCEootkpVtSrZme0dXm0K6Gec
V3tK/liTWRiPeOY5eldeOEdUIFLM3jAYJlCns5iU4vGlv01ipFF7TBPVTr76N/nm
WNHFEHyeZA3VKiXFzQkTluKqKTPBU12SnWmPLEE5p7apHv/nGdi7bNFXodNwSWSd
xFmKqSTK3G0lyW1zpITrjZ/ev0x38XFrPqXC4tVLj0IjzjzKrjsSR57homnDc1ZH
hykBx7DGtgtOGIeEb0UweMau/hitggPkOJqrN1W9nq//0q/OpdUqu6t0jNRiJvAy
cO//rV/htC9tFQVItdUUbb2VkMh4Ew==
=Y+GO
-----END PGP SIGNATURE-----payloadtree ab0f771aa2bb7584de4fa21e507e47e4e4c32163
parent 1bf0ac732110b1e76634d2dc6ac8a1a1375cf4d9
author Sam Kramer <skramer@palantir.com> 1682698022 +0100
committer Sam Kramer <skramer@palantir.com> 1682698022 +0100

snapshot -> serializable
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/8dc7ca78c3828901d4a14e242e2dbbab7c71f8a0html_urlShttps://github.com/palantir/atlasdb/commit/8dc7ca78c3828901d4a14e242e2dbbab7c71f8a0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8dc7ca78c3828901d4a14e242e2dbbab7c71f8a0/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j
 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj! 8https://api.github.com/users/Sam-Kramer/events{/privacy}j# 7https://api.github.com/users/Sam-Kramer/received_eventsj% Userj' uparents]}(j (1bf0ac732110b1e76634d2dc6ac8a1a1375cf4d9j ^https://api.github.com/repos/palantir/atlasdb/commits/1bf0ac732110b1e76634d2dc6ac8a1a1375cf4d9j Shttps://github.com/palantir/atlasdb/commit/1bf0ac732110b1e76634d2dc6ac8a1a1375cf4d9uastats}(totalK	additionsK	deletionsKufiles](}(j (b92811220a5a77616324333bfc9e02b6ac0ca989filenameKatlasdb-workload-server-distribution/src/test/resources/workload-server.ymlstatusmodifiedjA KjB KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/8dc7ca78c3828901d4a14e242e2dbbab7c71f8a0/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/8dc7ca78c3828901d4a14e242e2dbbab7c71f8a0/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=8dc7ca78c3828901d4a14e242e2dbbab7c71f8a0patchX  @@ -13,7 +13,7 @@ install:
   ringConfig:
     tableConfiguration:
       tableName: ring-test
-      isolationLevel: SNAPSHOT
+      isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: ring
   exitAfterRunning: false
\ No newline at end of fileu}(j (d30bb12eccd163f3ff27a1f16336e27031b0e847jG Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymljI modifiedjA KjB KjK KjL https://github.com/palantir/atlasdb/blob/8dc7ca78c3828901d4a14e242e2dbbab7c71f8a0/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljN https://github.com/palantir/atlasdb/raw/8dc7ca78c3828901d4a14e242e2dbbab7c71f8a0/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljP https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=8dc7ca78c3828901d4a14e242e2dbbab7c71f8a0jR @@ -48,7 +48,7 @@ install:
   ringConfig:
     tableConfiguration:
       tableName: ring_test
-      isolationLevel: SNAPSHOT
+      isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: ring
   exitAfterRunning: trueu}(j (f0ef6a7b2a2ff03f260d5e5b1a833d0f4a509161jG Aatlasdb-workload-server-distribution/var/conf/workload-server.ymljI modifiedjA KjB KjK KjL https://github.com/palantir/atlasdb/blob/8dc7ca78c3828901d4a14e242e2dbbab7c71f8a0/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljN https://github.com/palantir/atlasdb/raw/8dc7ca78c3828901d4a14e242e2dbbab7c71f8a0/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljP https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=8dc7ca78c3828901d4a14e242e2dbbab7c71f8a0jR X  @@ -13,7 +13,7 @@ install:
   ringConfig:
     tableConfiguration:
       tableName: ring-test
-      isolationLevel: SNAPSHOT
+      isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: ring
   exitAfterRunning: true
\ No newline at end of fileueu(127165740f88e3cf537159ed71678907e7be752e}(sha(127165740f88e3cf537159ed71678907e7be752enode_idEC_kwDOAjP5fdoAKDEyNzE2NTc0MGY4OGUzY2Y1MzcxNTllZDcxNjc4OTA3ZTdiZTc1MmUcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-05-23T15:41:53Zu	committer}(jn David Schlosnaglejp davids@palantir.comjr 2023-05-23T15:41:53Zumessagejavadoctree}(jf (25a1f41e05ddd0ce406ba33c6dc27d0ce608eb9durl`https://api.github.com/repos/palantir/atlasdb/git/trees/25a1f41e05ddd0ce406ba33c6dc27d0ce608eb9duj~ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/127165740f88e3cf537159ed71678907e7be752e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmRs3sEACgkQR9hsJ74Q
0l9R3QgAnMaNM5RMdkNoLb2DcY/tFK/KphIAthCPcGfoP3Po6yGX77Vy3KaL48Zb
VCTVrafkovUzSeVpMXfCFWxHhXGJNZa+WhLRre+EkGearRkLT9c4M5BshA3jvkIj
66c8XY3apHCpTq+X9nbXcP2CC1aBJ7Umy9LGOWNIK2W3J9upGaZrDG2wd3RhjA0/
AdXfMe8eZena1/ETrRLp3XqmINxovyV2o7qHOEYhCY+BUqKF2SCT6s3YefS7biIh
io6lpghaELxwfBJos4/1+z2OKMXZ7FSqoALWzH6dNfGfPOjRnULvm0DaHON36bNY
U0Uo0vVu2s3H0HhgcKwzhBLPhRJdzg==
=fvTp
-----END PGP SIGNATURE-----payloadtree 25a1f41e05ddd0ce406ba33c6dc27d0ce608eb9d
parent 6faca3dd2fc4aa48b6478f296161b633fd3738e6
author David Schlosnagle <davids@palantir.com> 1684856513 -0400
committer David Schlosnagle <davids@palantir.com> 1684856513 -0400

javadoc
uuj~ ^https://api.github.com/repos/palantir/atlasdb/commits/127165740f88e3cf537159ed71678907e7be752ehtml_urlShttps://github.com/palantir/atlasdb/commit/127165740f88e3cf537159ed71678907e7be752ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/127165740f88e3cf537159ed71678907e7be752e/commentsjl }(loginschlosnaidMBjh MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j~ %https://api.github.com/users/schlosnaj https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujt }(j schlosnaj MBjh MDQ6VXNlcjU0NTk0j 1https://avatars.githubusercontent.com/u/54594?v=4j h5j~ %https://api.github.com/users/schlosnaj https://github.com/schlosnaj /https://api.github.com/users/schlosna/followersj <https://api.github.com/users/schlosna/following{/other_user}j 5https://api.github.com/users/schlosna/gists{/gist_id}j <https://api.github.com/users/schlosna/starred{/owner}{/repo}j 3https://api.github.com/users/schlosna/subscriptionsj *https://api.github.com/users/schlosna/orgsj +https://api.github.com/users/schlosna/reposj 6https://api.github.com/users/schlosna/events{/privacy}j 5https://api.github.com/users/schlosna/received_eventsj Userj uparents]}(jf (6faca3dd2fc4aa48b6478f296161b633fd3738e6j~ ^https://api.github.com/repos/palantir/atlasdb/commits/6faca3dd2fc4aa48b6478f296161b633fd3738e6j Shttps://github.com/palantir/atlasdb/commit/6faca3dd2fc4aa48b6478f296161b633fd3738e6uastats}(totalK	additionsK	deletionsK ufiles]}(jf (48557eda401a3064391850079c9537a2dbf02d68filenameSatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/Tokens.javastatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/127165740f88e3cf537159ed71678907e7be752e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.javaraw_urlhttps://github.com/palantir/atlasdb/raw/127165740f88e3cf537159ed71678907e7be752e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.java?ref=127165740f88e3cf537159ed71678907e7be752epatchX.  @@ -21,22 +21,41 @@
 import java.util.Locale;
 import java.util.function.IntPredicate;
 
+/**
+ * Optimized utility methods for handling Cassandra Order Preserving Partition
+ * tokens that avoid allocations and copies where possible.
+ */
 final class Tokens {
 
     private static final BaseEncoding LOWER_CASE_HEX = BaseEncoding.base16().lowerCase();
 
+    /**
+     * Decodes hex encoded token value.
+     * Cassandra 2.x uses lower case encoded OPP tokens, so this implementation
+     * assumes that the token is lowercase base16 encoded for the fast path,
+     * but supports slower fallback to convert token to uppercase and decode.
+     *
+     * @param token hex encoded token value
+     * @return decoded bytes
+     */
     static byte[] hexDecode(String token) {
         // OPP tokens should be lowercase -- fast path assumes this; slow fallback converts to uppercase
         return Tokens.isAllLowercaseOrDigits(token)
                 ? LOWER_CASE_HEX.decode(token)
                 : BaseEncoding.base16().decode(token.toUpperCase(Locale.ROOT));
     }
 
+    /**
+     * @return true if all characters of token are lowercase or digits
+     */
     @VisibleForTesting
     static boolean isAllLowercaseOrDigits(String token) {
         return allMatch(token, ch -> Character.isLowerCase(ch) || Character.isDigit(ch));
     }
 
+    /**
+     * @return true if all characters of token pass predicate test
+     */
     @VisibleForTesting
     static boolean allMatch(String token, IntPredicate predicate) {
         for (int i = 0; i < token.length(); i++) {uau(1cef1142b43c76226e9a2bab8097a5ca2d04530a}(sha(1cef1142b43c76226e9a2bab8097a5ca2d04530anode_idEC_kwDOAjP5fdoAKDFjZWYxMTQyYjQzYzc2MjI2ZTlhMmJhYjgwOTdhNWNhMmQwNDUzMGEcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-09T15:57:43Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-06-09T15:57:43Zumessage5Add option to switch between request supplier methodstree}(j (c503aaae885aed18136d2bea6def5a4ca971fc7curl`https://api.github.com/repos/palantir/atlasdb/git/trees/c503aaae885aed18136d2bea6def5a4ca971fc7cuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1cef1142b43c76226e9a2bab8097a5ca2d04530a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSDS/cACgkQmF9s0kaF
Iw2IgggArpnOLccNGYRIuh6spTBsOcXTJdnAS8WYDK2y6uBlXokYBmjUUueOfhef
6FHFMoClSrZsGYcF6Eqd9todYP95kxZur0GjU42mt54yzDkZRmpaQ6LTyEd54G1y
j/LuB1xNyEUZbygDTq781NYVRb/RosyvbldJJmt8jlH7jVfDCbOIWhNm/XFf7NKA
EeIZRnLt71XEpM1Qpb0/ayrPcKFMA0iQvWhS2S2PklBVFZlTAb8pRbqoku8zUMyY
3oVJT3/Q62shp3G21CNp+FVM5Yb5LD5GnHH5fEjkWzPkhQF4Nb6LokddsGNJFL4Z
/1S29IdfH1a5mZECoEyoZ5WYWvv8pA==
=+zl2
-----END PGP SIGNATURE-----payloadX  tree c503aaae885aed18136d2bea6def5a4ca971fc7c
parent 1937afef5678ca5436fbf6c69928840050def5f3
author Tom Papke <tpapke@palantir.com> 1686326263 +0100
committer Tom Papke <tpapke@palantir.com> 1686326263 +0100

Add option to switch between request supplier methods
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/1cef1142b43c76226e9a2bab8097a5ca2d04530ahtml_urlShttps://github.com/palantir/atlasdb/commit/1cef1142b43c76226e9a2bab8097a5ca2d04530acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1cef1142b43c76226e9a2bab8097a5ca2d04530a/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej
 Jboj MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j! 6https://api.github.com/users/Toemmsche/received_eventsj# Userj% uparents]}(j (1937afef5678ca5436fbf6c69928840050def5f3j ^https://api.github.com/repos/palantir/atlasdb/commits/1937afef5678ca5436fbf6c69928840050def5f3j Shttps://github.com/palantir/atlasdb/commit/1937afef5678ca5436fbf6c69928840050def5f3uastats}(totalK	additionsK	deletionsKufiles]}(j (2b4cf67e80dcf88705a72c08e68ae3a124ccaaeffilenameUlock-benchmark/src/jmh/java/com/palantir/atlasdb/state/LockServiceBenchmarkState.javastatusmodifiedj? Kj@ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/1cef1142b43c76226e9a2bab8097a5ca2d04530a/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1cef1142b43c76226e9a2bab8097a5ca2d04530a/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-benchmark%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fstate%2FLockServiceBenchmarkState.java?ref=1cef1142b43c76226e9a2bab8097a5ca2d04530apatchX  @@ -72,6 +72,9 @@ public class LockServiceBenchmarkState {
 
     private int maxBlockingDurationMillis = 100;
 
+    @Param({"nonBlocking_asManyAsPossible", "allRandom"})
+    public String requestSupplierMethodName;
+
     private List<LockDescriptor> heldLocksAtBeginning;
 
     private List<LockDescriptor> availableLocks;
@@ -118,7 +121,7 @@ public void setup() {
                 .mapToObj(i -> StringLockDescriptor.of(Integer.toString(i)))
                 .collect(Collectors.toUnmodifiableList());
 
-        this.lockRequestSupplier = this::allRandom;
+        this.lockRequestSupplier = getRequestSupplierFromName(this.requestSupplierMethodName);
         this.lockService = LockServiceImpl.create(LockServerOptions.builder()
                 .collectThreadInfo(collectThreadInfo)
                 .threadInfoSnapshotInterval(
@@ -150,4 +153,15 @@ public List<LockDescriptor> getAvailableLocks() {
     public LockRequest generateLockRequest() {
         return this.lockRequestSupplier.get();
     }
+
+    private Supplier<LockRequest> getRequestSupplierFromName(String name) {
+        switch (this.requestSupplierMethodName) {
+            case "nonBlocking_asManyAsPossible":
+                return this::nonBlocking_asManyAsPossible_randomMode;
+            case "allRandom":
+                return this::allRandom;
+            default:
+                throw new IllegalArgumentException(name + " is not a known request supplier");
+        }
+    }
 }uau(9e482a453d0a8ccd3c60547070a994d5d38a8005}(sha(9e482a453d0a8ccd3c60547070a994d5d38a8005node_idEC_kwDOAjP5fdoAKDllNDgyYTQ1M2QwYThjY2QzYzYwNTQ3MDcwYTk5NGQ1ZDM4YTgwMDUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-07-17T16:09:35Zu	committer}(j\ 
Sam Kramerj^ skramer@palantir.comj` 2023-07-17T16:09:35Zumessagemove commenttree}(jT (dc9974121d51e4ea8a33455a77a12c483d8fc815url`https://api.github.com/repos/palantir/atlasdb/git/trees/dc9974121d51e4ea8a33455a77a12c483d8fc815ujl bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9e482a453d0a8ccd3c60547070a994d5d38a8005
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEyBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmS1Z78ACgkQmPPOpKR4
XS3aFAf41QHe3z0ARHC8kQ2HtOaRn9XH14FBmf0sfDBrezzIsPY6BblkrdkXpUQi
rAGlg9ceeUbbGpFFX3gQxPLLDQntuj9wO0J69kZTBHKw5FubEajUx0VZphKVlqAU
UHfZkSUcWyX/6V1C9SWJPjLCF6Hy5OzrFOxN7OMIBlKc54UiXNWbDo/3BYPgdbiU
dtgdyiaETmPkqby58rvrov/J20kLT2zNAOBLKV9ahV82IoOQg/CNugNRUspHrwQT
wJhNp7cvU6oluKaTqkWv3NwRu/nQyWaFklBcOpZaao+OMsN6k/SbKxTSP/cWJCLg
s3inXiSWKwChuRbt6atDtLY+K5t0
=E9D4
-----END PGP SIGNATURE-----payloadtree dc9974121d51e4ea8a33455a77a12c483d8fc815
parent 194355dfdea94380f7d7935ed98afb9ed483d374
author Sam Kramer <skramer@palantir.com> 1689610175 +0100
committer Sam Kramer <skramer@palantir.com> 1689610175 +0100

move comment
uujl ^https://api.github.com/repos/palantir/atlasdb/commits/9e482a453d0a8ccd3c60547070a994d5d38a8005html_urlShttps://github.com/palantir/atlasdb/commit/9e482a453d0a8ccd3c60547070a994d5d38a8005comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9e482a453d0a8ccd3c60547070a994d5d38a8005/commentsjZ }(login
Sam-KrameridJ^2_ jV MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jl 'https://api.github.com/users/Sam-Kramerjz https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujb }(j 
Sam-Kramerj J^2_ jV MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5jl 'https://api.github.com/users/Sam-Kramerjz https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jT (194355dfdea94380f7d7935ed98afb9ed483d374jl ^https://api.github.com/repos/palantir/atlasdb/commits/194355dfdea94380f7d7935ed98afb9ed483d374jz Shttps://github.com/palantir/atlasdb/commit/194355dfdea94380f7d7935ed98afb9ed483d374uastats}(totalK	additionsK	deletionsKufiles]}(jT (f3fd2bff16a08e53ce5190b5443f064a947b877dfilename^atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraVerifier.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9e482a453d0a8ccd3c60547070a994d5d38a8005/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9e482a453d0a8ccd3c60547070a994d5d38a8005/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.java?ref=9e482a453d0a8ccd3c60547070a994d5d38a8005patchXw  @@ -240,6 +240,7 @@ private static boolean attemptToCreateIfNotExists(InetSocketAddress host, Cassan
     }
 
     @VisibleForTesting
+    // swallows the expected TException subtype NotFoundException, throws connection problem related ones
     static boolean keyspaceAlreadyExists(CassandraClient client, CassandraVerifierConfig verifierConfig)
             throws TException {
         try {
@@ -255,7 +256,6 @@ static boolean keyspaceAlreadyExists(CassandraClient client, CassandraVerifierCo
         }
     }
 
-    // swallows the expected TException subtype NotFoundException, throws connection problem related ones
     private static boolean keyspaceAlreadyExists(CassandraServer host, CassandraVerifierConfig verifierConfig)
             throws TException {
         try (CassandraClient client = CassandraClientFactory.getClientInternal(host, verifierConfig.clientConfig())) {uau(8754b06666adcc5485cbbb1e031f9ce76d4db879}(sha(8754b06666adcc5485cbbb1e031f9ce76d4db879node_idEC_kwDOAjP5fdoAKDg3NTRiMDY2NjZhZGNjNTQ4NWNiYmIxZTAzMWY5Y2U3NmQ0ZGI4Nzkcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-15T23:35:40Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-05-15T23:35:40Zumessage#Autorelease 0.854.0-rc15

[skip ci]tree}(j (1a8d23a305d93ecda5ff6e406b4451905587f3dcurl`https://api.github.com/repos/palantir/atlasdb/git/trees/1a8d23a305d93ecda5ff6e406b4451905587f3dcuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8754b06666adcc5485cbbb1e031f9ce76d4db879
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRiwc0ACgkQhbrR8ip7mDAMwgEAozZ8255ds6GYa+JtE7n5WVBK
/JRfXWuM3rjsOGJtQ9AA/2dD0eouNWXK829VSm3Iy4qW1LxOPJUOMnyEE1dZoPUA
=4Au7
-----END PGP SIGNATURE-----
payloadX)  tree 1a8d23a305d93ecda5ff6e406b4451905587f3dc
parent cbd23bf30e8761e6f0e2acaf6616f2c588663b4e
author aalouane <30903736+ergo14@users.noreply.github.com> 1684193740 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684193740 +0000

Autorelease 0.854.0-rc15

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/8754b06666adcc5485cbbb1e031f9ce76d4db879html_urlShttps://github.com/palantir/atlasdb/commit/8754b06666adcc5485cbbb1e031f9ce76d4db879comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8754b06666adcc5485cbbb1e031f9ce76d4db879/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(j MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj	 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj
 =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(j (cbd23bf30e8761e6f0e2acaf6616f2c588663b4ej ^https://api.github.com/repos/palantir/atlasdb/commits/cbd23bf30e8761e6f0e2acaf6616f2c588663b4ej Shttps://github.com/palantir/atlasdb/commit/cbd23bf30e8761e6f0e2acaf6616f2c588663b4euastats}(totalK 	additionsK 	deletionsK ufiles]u(84ad8300885f547ae032e9cf4f25d66e129ecc97}(sha(84ad8300885f547ae032e9cf4f25d66e129ecc97node_idEC_kwDOAjP5fdoAKDg0YWQ4MzAwODg1ZjU0N2FlMDMyZTljZjRmMjVkNjZlMTI5ZWNjOTccommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-13T16:53:06Zu	committer}(j; 
Sam Kramerj= skramer@palantir.comj? 2023-03-13T16:53:06Zumessageworkload server interfacestree}(j3 (89e3958c5c668523f58a7936432b7206062bf4ceurl`https://api.github.com/repos/palantir/atlasdb/git/trees/89e3958c5c668523f58a7936432b7206062bf4ceujK bhttps://api.github.com/repos/palantir/atlasdb/git/commits/84ad8300885f547ae032e9cf4f25d66e129ecc97
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQPVPIACgkQmPPOpKR4
XS0IyQgAvh7ZCsWEzWyLgADf3BddixIeisEZY+6zAnWAc/j8F1Esy13myfT+B3Rn
owROOKr9Q+Vpc2f2wsb2+wfMukq/oRsaQSoHxc6evQ87EI/aXDd4HLP0LRKJ9USU
bgZ7oUFuTrJsrI+oT3ygNAmly2oGMNULYEVL9EmdBYUdtLps6EsZ59oZJcGtCbJI
Dp24Mmi7JgLtcpko8Hucp2uC4qB9GBdtvfSgJeJhXs7aoEGj3zNAlIfrm2HU5I2e
DwltYvIHK2JK4JAEob+DBMS8DWqIL1E411Mad0iv3fCwForWjj298i2OXa65CRsc
9HYDuyxmJsTs3brXrTjKK+A6GndSqQ==
=b2fd
-----END PGP SIGNATURE-----payloadtree 89e3958c5c668523f58a7936432b7206062bf4ce
parent 82c974208a8c9b802173e8cfe1ee01a349c12e2c
author Sam Kramer <skramer@palantir.com> 1678726386 +0000
committer Sam Kramer <skramer@palantir.com> 1678726386 +0000

workload server interfaces
uujK ^https://api.github.com/repos/palantir/atlasdb/commits/84ad8300885f547ae032e9cf4f25d66e129ecc97html_urlShttps://github.com/palantir/atlasdb/commit/84ad8300885f547ae032e9cf4f25d66e129ecc97comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/84ad8300885f547ae032e9cf4f25d66e129ecc97/commentsj9 }(login
Sam-KrameridJ^2_ j5 MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jK 'https://api.github.com/users/Sam-KramerjY https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujA }(j^ 
Sam-Kramerj` J^2_ j5 MDQ6VXNlcjYyMzg4MTQ=jb 3https://avatars.githubusercontent.com/u/6238814?v=4jd h5jK 'https://api.github.com/users/Sam-KramerjY https://github.com/Sam-Kramerjg 1https://api.github.com/users/Sam-Kramer/followersji >https://api.github.com/users/Sam-Kramer/following{/other_user}jk 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jm >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jo 5https://api.github.com/users/Sam-Kramer/subscriptionsjq ,https://api.github.com/users/Sam-Kramer/orgsjs -https://api.github.com/users/Sam-Kramer/reposju 8https://api.github.com/users/Sam-Kramer/events{/privacy}jw 7https://api.github.com/users/Sam-Kramer/received_eventsjy Userj{ uparents]}(j3 (82c974208a8c9b802173e8cfe1ee01a349c12e2cjK ^https://api.github.com/repos/palantir/atlasdb/commits/82c974208a8c9b802173e8cfe1ee01a349c12e2cjY Shttps://github.com/palantir/atlasdb/commit/82c974208a8c9b802173e8cfe1ee01a349c12e2cuastats}(totalK֌	additionsK֌	deletionsK ufiles](}(j3 (5b16544da0fc7ebae5c8dd5d0305a59e80057869filenamehatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/InvariantReporter.javastatusaddedj K#j K changesK#blob_urlhttps://github.com/palantir/atlasdb/blob/84ad8300885f547ae032e9cf4f25d66e129ecc97/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariantReporter.javaraw_urlhttps://github.com/palantir/atlasdb/raw/84ad8300885f547ae032e9cf4f25d66e129ecc97/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariantReporter.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariantReporter.java?ref=84ad8300885f547ae032e9cf4f25d66e129ecc97patchX  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.function.Consumer;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvariantReporter<Violations> {
+
+    @Value.Parameter
+    Invariant<Violations> invariant();
+
+    @Value.Parameter
+    Consumer<Violations> consumer();
+
+    default void report(WorkflowHistory history) {
+        invariant().accept(history, consumer());
+    }
+}u}(j3 (7460164cac31a569131afa17ee15cbcebe7db4eej ]atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/IndexTable.javaj addedj K,j K j K,j https://github.com/palantir/atlasdb/blob/84ad8300885f547ae032e9cf4f25d66e129ecc97/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTable.javaj https://github.com/palantir/atlasdb/raw/84ad8300885f547ae032e9cf4f25d66e129ecc97/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTable.java?ref=84ad8300885f547ae032e9cf4f25d66e129ecc97j X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface IndexTable {
+
+    @Value.Parameter
+    String name();
+
+    @Value.Parameter
+    String primaryTable();
+
+    @Value.Check
+    default void checkNameAndPrimaryTableAreNotEqual() {
+        Preconditions.checkArgument(
+                !name().equalsIgnoreCase(primaryTable()),
+                "Index table name and primary table name are identical.",
+                SafeArg.of("name", name()),
+                SafeArg.of("primaryTable", primaryTable()));
+    }
+
+    static IndexTable of(String name, String primaryTable) {
+        return ImmutableIndexTable.of(name, primaryTable);
+    }
+}u}(j3 (360fb590830275fb2bcc053744705e446a7931faj aatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/IsolationLevel.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/84ad8300885f547ae032e9cf4f25d66e129ecc97/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIsolationLevel.javaj https://github.com/palantir/atlasdb/raw/84ad8300885f547ae032e9cf4f25d66e129ecc97/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIsolationLevel.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIsolationLevel.java?ref=84ad8300885f547ae032e9cf4f25d66e129ecc97j X  @@ -0,0 +1,23 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+public enum IsolationLevel {
+    SERIALIZABLE,
+    SNAPSHOT,
+    NONE;
+}u}(j3 (fb124642a7ed7864d121e3c6e6d027b0ce71ce15j jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStoreFactory.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/84ad8300885f547ae032e9cf4f25d66e129ecc97/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaj https://github.com/palantir/atlasdb/raw/84ad8300885f547ae032e9cf4f25d66e129ecc97/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.java?ref=84ad8300885f547ae032e9cf4f25d66e129ecc97j X  @@ -0,0 +1,24 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import java.util.Map;
+import java.util.Set;
+
+public interface TransactionStoreFactory {
+    TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
+}u}(j3 (c89254863db9843a151e02ce80e4be268d1493e5j datlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowRunner.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/84ad8300885f547ae032e9cf4f25d66e129ecc97/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowRunner.javaj https://github.com/palantir/atlasdb/raw/84ad8300885f547ae032e9cf4f25d66e129ecc97/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowRunner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowRunner.java?ref=84ad8300885f547ae032e9cf4f25d66e129ecc97j X  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import java.util.List;
+
+/**
+ * Run the provided workflow and execute the provided invariant reporters.
+ *
+ * The idea of this class is that long-term we will want to have multiple ways to run/execute workflows,
+ * rather than biasing towards the present case (just once).
+ */
+public interface WorkflowRunner<WorkflowType extends Workflow> {
+    void run(WorkflowType workflow, List<InvariantReporter<?>> invariantReporters);
+}u}(j3 (683452e2d14dddce65eff5ef2af628437d29d794j aatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/store/IndexTableTest.javaj addedj K:j K j K:j https://github.com/palantir/atlasdb/blob/84ad8300885f547ae032e9cf4f25d66e129ecc97/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTableTest.javaj https://github.com/palantir/atlasdb/raw/84ad8300885f547ae032e9cf4f25d66e129ecc97/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTableTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTableTest.java?ref=84ad8300885f547ae032e9cf4f25d66e129ecc97j X{	  @@ -0,0 +1,58 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.palantir.logsafe.SafeArg;
+import java.util.Locale;
+import org.junit.Test;
+
+public final class IndexTableTest {
+
+    private static final String TABLE_1 = "foo";
+    private static final String TABLE_2 = "bar";
+
+    @Test
+    public void doesNotThrowWhenNamesAreDifferent() {
+        assertThatCode(() -> IndexTable.of("foo", "bar")).doesNotThrowAnyException();
+    }
+
+    @Test
+    public void indexTableNameIsFirstArgumentAndPrimaryTableIsSecondArgument() {
+        IndexTable indexTable = IndexTable.of(TABLE_1, TABLE_2);
+        assertThat(indexTable.name()).isEqualTo(TABLE_1);
+        assertThat(indexTable.primaryTable()).isEqualTo(TABLE_2);
+    }
+
+    @Test
+    public void throwsWhenIndexNameIsTheSameAsPrimary() {
+        assertThatLoggableExceptionThrownBy(() -> IndexTable.of(TABLE_1, TABLE_1))
+                .hasMessageContaining("Index table name and primary table name are identical.")
+                .hasExactlyArgs(SafeArg.of("name", TABLE_1), SafeArg.of("primaryTable", TABLE_1));
+    }
+
+    @Test
+    public void throwsWhenIndexNameIsTheSameAsPrimaryIgnoresCase() {
+        assertThatLoggableExceptionThrownBy(() -> IndexTable.of(TABLE_1, TABLE_1.toUpperCase(Locale.ROOT)))
+                .hasMessageContaining("Index table name and primary table name are identical.")
+                .hasExactlyArgs(
+                        SafeArg.of("name", TABLE_1), SafeArg.of("primaryTable", TABLE_1.toUpperCase(Locale.ROOT)));
+    }
+}ueu(4042f72d514d46a48a5326a7c240b54e8eb11149}(sha(4042f72d514d46a48a5326a7c240b54e8eb11149node_idEC_kwDOAjP5fdoAKDQwNDJmNzJkNTE0ZDQ2YTQ4YTUzMjZhN2MyNDBiNTRlOGViMTExNDkcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-06-19T08:48:29Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-06-19T08:48:29ZumessageAutorelease 0.877.0

[skip ci]tree}(j (44ec48dfe898b51e745af8151ca426cd0849feccurl`https://api.github.com/repos/palantir/atlasdb/git/trees/44ec48dfe898b51e745af8151ca426cd0849feccuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4042f72d514d46a48a5326a7c240b54e8eb11149
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmSQFmIACgkQhbrR8ip7mDDZOwD/UagkW81QFdmrn4A61z0C2fXn
227cEIWuMdlgWdVPGNIA/0HSNWl15YfDyCy8GqllAofRunpydXUOvtBQaX/4oXyb
=Uq2Q
-----END PGP SIGNATURE-----
payloadX0  tree 44ec48dfe898b51e745af8151ca426cd0849fecc
parent 0c45af25f48364f07bd9330e03ce07c0127615f4
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1687164509 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1687164509 +0000

Autorelease 0.877.0

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/4042f72d514d46a48a5326a7c240b54e8eb11149html_urlShttps://github.com/palantir/atlasdb/commit/4042f72d514d46a48a5326a7c240b54e8eb11149comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4042f72d514d46a48a5326a7c240b54e8eb11149/commentsj }(loginsvc-autoreleaseidJ(j MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(j MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j
 <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(j (0c45af25f48364f07bd9330e03ce07c0127615f4j ^https://api.github.com/repos/palantir/atlasdb/commits/0c45af25f48364f07bd9330e03ce07c0127615f4j Shttps://github.com/palantir/atlasdb/commit/0c45af25f48364f07bd9330e03ce07c0127615f4uastats}(totalK 	additionsK 	deletionsK ufiles]}(j (34c425f71f242ce114bab888f8034960c6b716e7filename changelog/0.877.0/pr-6602.v2.ymlstatusrenamedj4 K j5 K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/4042f72d514d46a48a5326a7c240b54e8eb11149/changelog%2F0.877.0%2Fpr-6602.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/4042f72d514d46a48a5326a7c240b54e8eb11149/changelog%2F0.877.0%2Fpr-6602.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.877.0%2Fpr-6602.v2.yml?ref=4042f72d514d46a48a5326a7c240b54e8eb11149previous_filename$changelog/@unreleased/pr-6602.v2.ymluau(fa3dfe6ce8a6e2c352c88d5e7de8e1d3c58fea8b}(sha(fa3dfe6ce8a6e2c352c88d5e7de8e1d3c58fea8bnode_idEC_kwDOAjP5fdoAKGZhM2RmZTZjZThhNmUyYzM1MmM4OGQ1ZTdkZThlMWQzYzU4ZmVhOGIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-07-03T15:16:29Zu	committer}(jQ 
Sam KramerjS skramer@palantir.comjU 2023-07-10T12:20:26ZumessageWrite once delete oncetree}(jI (b3f9eab42e3981a80fbb96184982bbc9d2195084url`https://api.github.com/repos/palantir/atlasdb/git/trees/b3f9eab42e3981a80fbb96184982bbc9d2195084uja bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fa3dfe6ce8a6e2c352c88d5e7de8e1d3c58fea8b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSr94oACgkQmPPOpKR4
XS3FKwf+ITAnZ2m+vf1pP8AsOe0nfU/etBlLvwRJw3FLtk2euGMHx6Dla6EPRJgE
UVofs2sABgyhQc1mMHd1iTBVhKd7PBRe60exupwpHE5MbKzRyv9cx9fx2F39nwo3
fp1S0f3kFUMr3JQnmMrCO0GfdlBsKdtM7dbIuOKpgMTMVJb+i6PriO1MqMnSMbN9
HM3gnnpbjNlBw8y1840NM9ycCrHnr0tnAJjbD4o0K9yTMYhDcrOZ6Hz3oJmteC7/
tNspMFzoUaIbOOQfFYDu2YtMhMRqZYRO9JHBd1pmsCA97sLDHLcmE1QfYtvkgu08
zLZ/B6wrKhkMYcFBkZlyoaRqVK83YA==
=qffa
-----END PGP SIGNATURE-----payloadtree b3f9eab42e3981a80fbb96184982bbc9d2195084
parent 9e792b09f8092273e0e1a0f9d762f741054c513d
author Sam Kramer <skramer@palantir.com> 1688397389 +0100
committer Sam Kramer <skramer@palantir.com> 1688991626 +0100

Write once delete once
uuja ^https://api.github.com/repos/palantir/atlasdb/commits/fa3dfe6ce8a6e2c352c88d5e7de8e1d3c58fea8bhtml_urlShttps://github.com/palantir/atlasdb/commit/fa3dfe6ce8a6e2c352c88d5e7de8e1d3c58fea8bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fa3dfe6ce8a6e2c352c88d5e7de8e1d3c58fea8b/commentsjO }(login
Sam-KrameridJ^2_ jK MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5ja 'https://api.github.com/users/Sam-Kramerjo https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujW }(jt 
Sam-Kramerjv J^2_ jK MDQ6VXNlcjYyMzg4MTQ=jx 3https://avatars.githubusercontent.com/u/6238814?v=4jz h5ja 'https://api.github.com/users/Sam-Kramerjo https://github.com/Sam-Kramerj} 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jI (9e792b09f8092273e0e1a0f9d762f741054c513dja ^https://api.github.com/repos/palantir/atlasdb/commits/9e792b09f8092273e0e1a0f9d762f741054c513djo Shttps://github.com/palantir/atlasdb/commit/9e792b09f8092273e0e1a0f9d762f741054c513duastats}(totalK	additionsKӌ	deletionsKufiles](}(jI (70c6fe61994b26fc7fc5e40c6f69d1ba1bb6b75bfilenamezatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflowConfiguration.javastatusmodifiedj K	j K changesK	blob_urlhttps://github.com/palantir/atlasdb/blob/fa3dfe6ce8a6e2c352c88d5e7de8e1d3c58fea8b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowConfiguration.javaraw_urlhttps://github.com/palantir/atlasdb/raw/fa3dfe6ce8a6e2c352c88d5e7de8e1d3c58fea8b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowConfiguration.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowConfiguration.java?ref=fa3dfe6ce8a6e2c352c88d5e7de8e1d3c58fea8bpatchX  @@ -31,6 +31,15 @@ public interface WriteOnceDeleteOnceWorkflowConfiguration extends WorkflowConfig
 
     TableConfiguration tableConfiguration();
 
+    /**
+     * The maximum value for the row key.
+     * This is half the iteration count, so we ideally perform two actions per cell.
+     */
+    @Value.Derived
+    default Integer maxKey() {
+        return iterationCount() / 2;
+    }
+
     @Value.Lazy
     default RateLimiter transactionRateLimiter() {
         return RateLimiter.create(rateLimit());u}(jI (c53a6a9fe4c83d33bcd93dd41fd72721763c758cj natlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflows.javaj modifiedj K9j Kj KGj https://github.com/palantir/atlasdb/blob/fa3dfe6ce8a6e2c352c88d5e7de8e1d3c58fea8b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflows.javaj https://github.com/palantir/atlasdb/raw/fa3dfe6ce8a6e2c352c88d5e7de8e1d3c58fea8b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflows.java?ref=fa3dfe6ce8a6e2c352c88d5e7de8e1d3c58fea8bj X  @@ -16,7 +16,9 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
 import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
 import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
@@ -25,7 +27,14 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import java.security.SecureRandom;
 import java.util.Optional;
+import java.util.function.IntFunction;
 
+/**
+ * The idea of this class is to catch bugs around tombstone drops, by having a
+ * workflow which _mostly_ writes once then deletes once for a given cell. Probability and randomness are used to
+ * enforce this behaviour, thus it's possible to have a write without a delete, or visa versa; some cells may
+ * randomly be written or deleted multiple times as well.
+ */
 public final class WriteOnceDeleteOnceWorkflows {
 
     private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
@@ -40,24 +49,58 @@ public static Workflow create(
             InteractiveTransactionStore store,
             WriteOnceDeleteOnceWorkflowConfiguration configuration,
             ListeningExecutorService executionExecutor) {
-        return DefaultWorkflow.create(
-                store, (txnStore, index) -> run(txnStore, index, configuration), configuration, executionExecutor);
+        return create(store, configuration, executionExecutor, DefaultBuggifyFactory.INSTANCE, RANDOM::nextInt);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            InteractiveTransactionStore store,
+            WriteOnceDeleteOnceWorkflowConfiguration configuration,
+            ListeningExecutorService executionExecutor,
+            BuggifyFactory buggifyFactory,
+            IntFunction<Integer> randomNumberGenerator) {
+        WriteOnceDeleteOnceWorkflow workflow =
+                new WriteOnceDeleteOnceWorkflow(buggifyFactory, randomNumberGenerator, configuration);
+        return DefaultWorkflow.create(store, workflow::run, configuration, executionExecutor);
+    }
+
+    private static class WriteOnceDeleteOnceWorkflow {
+        private final BuggifyFactory buggifyFactory;
+        private final IntFunction<Integer> rowKeyGenerator;
+        private final WriteOnceDeleteOnceWorkflowConfiguration configuration;
+
+        public WriteOnceDeleteOnceWorkflow(
+                BuggifyFactory buggifyFactory,
+                IntFunction<Integer> rowKeyGenerator,
+                WriteOnceDeleteOnceWorkflowConfiguration configuration) {
+            this.buggifyFactory = buggifyFactory;
+            this.rowKeyGenerator = rowKeyGenerator;
+            this.configuration = configuration;
+        }
+
+        public Optional<WitnessedTransaction> run(InteractiveTransactionStore store, int taskIndex) {
+            configuration.transactionRateLimiter().acquire();
+            return store.readWrite(txn -> {
+                Integer rowKey = rowKeyGenerator.apply(configuration.maxKey());
+                if (buggifyFactory
+                        .maybe(calculateChanceForDelete(taskIndex, configuration.iterationCount()))
+                        .asBoolean()) {
+                    txn.delete(configuration.tableConfiguration().tableName(), cell(rowKey));
+                } else {
+                    txn.write(configuration.tableConfiguration().tableName(), cell(rowKey), RANDOM.nextInt(10000));
+                }
+            });
+        }
     }
 
-    private static Optional<WitnessedTransaction> run(
-            InteractiveTransactionStore store, int taskIndex, WriteOnceDeleteOnceWorkflowConfiguration configuration) {
-        configuration.transactionRateLimiter().acquire();
-        return store.readWrite(txn -> {
-            Integer cellIndex = RANDOM.nextInt(100);
-            if (DefaultBuggifyFactory.INSTANCE.maybe(taskIndex * 0.01).asBoolean()) {
-                txn.delete(configuration.tableConfiguration().tableName(), cell(cellIndex));
-            } else {
-                txn.write(configuration.tableConfiguration().tableName(), cell(cellIndex), RANDOM.nextInt(10000));
-            }
-        });
+    @VisibleForTesting
+    static Double calculateChanceForDelete(int taskIndex, int iterationCount) {
+        // Index generation is [inclusive, exclusive], so we need to add 1 to the task index.
+        return (taskIndex + 1.0) / iterationCount;
     }
 
-    private static WorkloadCell cell(Integer index) {
+    @VisibleForTesting
+    static WorkloadCell cell(Integer index) {
         return ImmutableWorkloadCell.of(index, COLUMN);
     }
 }u}(jI (4fbe6bbf3756930f143f2166cd7c9756188cf6f3j qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/WriteOnceDeleteOnceWorkflowTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/fa3dfe6ce8a6e2c352c88d5e7de8e1d3c58fea8b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javaj https://github.com/palantir/atlasdb/raw/fa3dfe6ce8a6e2c352c88d5e7de8e1d3c58fea8b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWriteOnceDeleteOnceWorkflowTest.java?ref=fa3dfe6ce8a6e2c352c88d5e7de8e1d3c58fea8bj Xs  @@ -0,0 +1,145 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyDouble;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.buggify.AlwaysBuggifyFactory;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggify;
+import com.palantir.atlasdb.buggify.impl.NoOpBuggify;
+import com.palantir.atlasdb.buggify.impl.NoOpBuggifyFactory;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import java.util.Iterator;
+import java.util.List;
+import java.util.function.IntFunction;
+import org.junit.Test;
+
+public class WriteOnceDeleteOnceWorkflowTest {
+    private static final String TABLE_NAME = "my.latte";
+    private static final WriteOnceDeleteOnceWorkflowConfiguration CONFIGURATION =
+            ImmutableWriteOnceDeleteOnceWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .rateLimit(Double.MAX_VALUE)
+                    .iterationCount(1)
+                    .build();
+
+    private final InteractiveTransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+
+    @Test
+    public void deleteWhenBuggifyTrue() {
+        Workflow workflow = createWorkflow(AlwaysBuggifyFactory.INSTANCE, i -> i);
+        WorkflowHistory history = workflow.run();
+        WitnessedTransaction transaction = Iterables.getOnlyElement(history.history());
+        WitnessedTransactionAction action = Iterables.getOnlyElement(transaction.actions());
+        assertThat(action).isInstanceOf(WitnessedDeleteTransactionAction.class);
+    }
+
+    @Test
+    public void writeWhenBuggifyFalse() {
+        Workflow workflow = createWorkflow(NoOpBuggifyFactory.INSTANCE, i -> i);
+        WorkflowHistory history = workflow.run();
+        WitnessedTransaction transaction = Iterables.getOnlyElement(history.history());
+        WitnessedTransactionAction action = Iterables.getOnlyElement(transaction.actions());
+        assertThat(action).isInstanceOf(WitnessedWriteTransactionAction.class);
+    }
+
+    @Test
+    public void calculateChanceForDeleteHasExpectedValues() {
+        assertThat(WriteOnceDeleteOnceWorkflows.calculateChanceForDelete(0, 100))
+                .isEqualTo(0.01);
+        assertThat(WriteOnceDeleteOnceWorkflows.calculateChanceForDelete(99, 100))
+                .isEqualTo(1.00);
+    }
+
+    @Test
+    public void writesThenDeletes() {
+        Iterator<Integer> keys = List.of(0, 0, 1, 1).iterator();
+        IntFunction<Integer> rowKeyGenerator = _ignore -> keys.next();
+        BuggifyFactory alternatingBuggify = mock(BuggifyFactory.class);
+        when(alternatingBuggify.maybe(anyDouble()))
+                .thenReturn(
+                        NoOpBuggify.INSTANCE, DefaultBuggify.INSTANCE, NoOpBuggify.INSTANCE, DefaultBuggify.INSTANCE);
+        Workflow workflow = createWorkflow(alternatingBuggify, rowKeyGenerator, 4);
+
+        List<WitnessedTransaction> transactions = workflow.run().history();
+
+        assertThat(transactions.size()).isEqualTo(4);
+        assertThat(getTransactionAction(transactions.get(0), WitnessedWriteTransactionAction.class)
+                        .cell()
+                        .key())
+                .isEqualTo(0);
+        assertThat(getTransactionAction(transactions.get(1), WitnessedDeleteTransactionAction.class)
+                        .cell()
+                        .key())
+                .isEqualTo(0);
+        assertThat(getTransactionAction(transactions.get(2), WitnessedWriteTransactionAction.class)
+                        .cell()
+                        .key())
+                .isEqualTo(1);
+        assertThat(getTransactionAction(transactions.get(3), WitnessedDeleteTransactionAction.class)
+                        .cell()
+                        .key())
+                .isEqualTo(1);
+    }
+
+    private <T> T getTransactionAction(WitnessedTransaction transaction, Class<T> clazz) {
+        WitnessedTransactionAction action = Iterables.getOnlyElement(transaction.actions());
+        assertThat(action).isInstanceOf(clazz);
+        return (T) action;
+    }
+
+    private Workflow createWorkflow(BuggifyFactory factory, IntFunction<Integer> randomNumberGenerator) {
+        return createWorkflow(factory, randomNumberGenerator, CONFIGURATION.iterationCount());
+    }
+
+    private Workflow createWorkflow(
+            BuggifyFactory factory, IntFunction<Integer> randomNumberGenerator, int iterationCount) {
+        return WriteOnceDeleteOnceWorkflows.create(
+                memoryStore,
+                ImmutableWriteOnceDeleteOnceWorkflowConfiguration.builder()
+                        .from(CONFIGURATION)
+                        .iterationCount(iterationCount)
+                        .build(),
+                MoreExecutors.newDirectExecutorService(),
+                factory,
+                randomNumberGenerator);
+    }
+}ueu`      (92c2551cacdb4610fb6ba2992cdacf4a4e04f4fe}(sha(92c2551cacdb4610fb6ba2992cdacf4a4e04f4fenode_idEC_kwDOAjP5fdoAKDkyYzI1NTFjYWNkYjQ2MTBmYjZiYTI5OTJjZGFjZjRhNGUwNGY0ZmUcommit}(author}(nameMohammed Daudaliemailmdaudali786@gmail.comdate2023-05-19T13:12:40Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-05-19T13:12:40Zumessage"Autorelease 0.857.0-rc1

[skip ci]tree}(j (b6a8b31b4f19a8d6f3ae664a6a15a0b9307b400eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/b6a8b31b4f19a8d6f3ae664a6a15a0b9307b400euj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/92c2551cacdb4610fb6ba2992cdacf4a4e04f4fe
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRndckACgkQhbrR8ip7mDAmbQD/Qj1eWlpjr8UtiLFIttf6AaFc
yAuxiKKo0m74Iz5gcOEA/jZzZ26XrnYMIpcIvzJHsURmwORT0gqpfR5P2G4y9AnM
=cCa5
-----END PGP SIGNATURE-----
payloadX  tree b6a8b31b4f19a8d6f3ae664a6a15a0b9307b400e
parent 0f014d7af9f371e8c7944b7b3e2a6deb9bda10d0
author Mohammed Daudali <mdaudali786@gmail.com> 1684501960 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684501960 +0000

Autorelease 0.857.0-rc1

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/92c2551cacdb4610fb6ba2992cdacf4a4e04f4fehtml_urlShttps://github.com/palantir/atlasdb/commit/92c2551cacdb4610fb6ba2992cdacf4a4e04f4fecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/92c2551cacdb4610fb6ba2992cdacf4a4e04f4fe/commentsj }(loginmdaudaliidJ j MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5j %https://api.github.com/users/mdaudalij https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(j MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j
 Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(j (0f014d7af9f371e8c7944b7b3e2a6deb9bda10d0j ^https://api.github.com/repos/palantir/atlasdb/commits/0f014d7af9f371e8c7944b7b3e2a6deb9bda10d0j Shttps://github.com/palantir/atlasdb/commit/0f014d7af9f371e8c7944b7b3e2a6deb9bda10d0uastats}(totalK 	additionsK 	deletionsK ufiles]u(be1d44c05cfabc3a10c06c3ae704ac5baaa60083}(sha(be1d44c05cfabc3a10c06c3ae704ac5baaa60083node_idEC_kwDOAjP5fdoAKGJlMWQ0NGMwNWNmYWJjM2ExMGMwNmMzYWU3MDRhYzViYWFhNjAwODMcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-16T10:40:02Zu	committer}(j@ Lucas MeirelesjB meireles31@msn.comjD 2023-06-16T12:02:55Zumessage!fix flag accidentally set to truetree}(j8 (c81e41d8397debd388c5ebcbd2d7ea205efa675eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/c81e41d8397debd388c5ebcbd2d7ea205efa675eujP bhttps://api.github.com/repos/palantir/atlasdb/git/commits/be1d44c05cfabc3a10c06c3ae704ac5baaa60083
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSMT28ACgkQJd22kJ7J
GizXIAf9EqfivUCsoonuDHlJ99fcOQmXhbiO+JVh7xeVzHCnzOyR2C1wbJTgG7+B
gXxCRbId3xdCHC6SXs9Tc1nb1B96FQqELNjTgMkAdhytsIcczSHvk+6HUCPYbmDQ
ePnyk4Zz1sIXND3GYKOUkhJItmUxk0FNV6xpLCSCQKvcpz9durm1sJ1wuQcna50s
eohn0cuQjm6sfGmKsrPLV/CirOfDtD0Jcp9SBwfI3SXbHPRUshMgnKM+nAZNS+pF
Kkz9tZV7fP3c9qBkupOyk6qwAgYtvfZswY75UmZ7wEbuEKIefvP6rQW/bYem9hEV
8lul4qLWImQkZ1hU4qyRyJRxmIFMIQ==
=Ks50
-----END PGP SIGNATURE-----payloadtree c81e41d8397debd388c5ebcbd2d7ea205efa675e
parent 10df5c835d5085557a840fbb588549005e2aed23
author Lucas Meireles <meireles31@msn.com> 1686912002 +0100
committer Lucas Meireles <meireles31@msn.com> 1686916975 +0100

fix flag accidentally set to true
uujP ^https://api.github.com/repos/palantir/atlasdb/commits/be1d44c05cfabc3a10c06c3ae704ac5baaa60083html_urlShttps://github.com/palantir/atlasdb/commit/be1d44c05cfabc3a10c06c3ae704ac5baaa60083comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/be1d44c05cfabc3a10c06c3ae704ac5baaa60083/commentsj> }(loginLucasIMEidJg j: MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jP %https://api.github.com/users/LucasIMEj^ https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujF }(jc LucasIMEje Jg j: MDQ6VXNlcjY3ODczMTE=jg 3https://avatars.githubusercontent.com/u/6787311?v=4ji h5jP %https://api.github.com/users/LucasIMEj^ https://github.com/LucasIMEjl /https://api.github.com/users/LucasIME/followersjn <https://api.github.com/users/LucasIME/following{/other_user}jp 5https://api.github.com/users/LucasIME/gists{/gist_id}jr <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jt 3https://api.github.com/users/LucasIME/subscriptionsjv *https://api.github.com/users/LucasIME/orgsjx +https://api.github.com/users/LucasIME/reposjz 6https://api.github.com/users/LucasIME/events{/privacy}j| 5https://api.github.com/users/LucasIME/received_eventsj~ Userj uparents]}(j8 (10df5c835d5085557a840fbb588549005e2aed23jP ^https://api.github.com/repos/palantir/atlasdb/commits/10df5c835d5085557a840fbb588549005e2aed23j^ Shttps://github.com/palantir/atlasdb/commit/10df5c835d5085557a840fbb588549005e2aed23uastats}(totalK	additionsK	deletionsKufiles]}(j8 (8e427c06f9a2664d47d4bca3897293a00c87fe22filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/be1d44c05cfabc3a10c06c3ae704ac5baaa60083/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/be1d44c05cfabc3a10c06c3ae704ac5baaa60083/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=be1d44c05cfabc3a10c06c3ae704ac5baaa60083patchX\  @@ -1586,7 +1586,7 @@ public void doNotValidateLocksOnCommitIfValidationFlagIsFalseAndOnlyReadNonEmpty
         long transactionTs = timelockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
         Transaction transaction =
-                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
 
         timelockService.unlock(ImmutableSet.of(res.getLock()));
 uau(a82cb1ff19d0b04d3c599534a72f22e4bfcb369d}(sha(a82cb1ff19d0b04d3c599534a72f22e4bfcb369dnode_idEC_kwDOAjP5fdoAKGE4MmNiMWZmMTlkMGIwNGQzYzU5OTUzNGE3MmYyMmU0YmZjYjM2OWQcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T13:54:35Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-15T13:54:35Zumessage/Merge branch 'aacbttimelock' into aacbtfastfailtree}(j (7b78ce82dd069f58d3106da773334c1ae625750eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/7b78ce82dd069f58d3106da773334c1ae625750euj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiOZ4ACgkQPlMHVIT1
yhpeygf/SEdooIlCzzm0TTqrh8kz2zk/kgP9+Y1mpJ5mrOojcOXwXku59TXxf7j6
RrjA8N3kewKeTZ0l/KP1zXTVJEQPE9PpChIgB5hh9I9a+Ik01lzWtWim5dqjd9cW
gGjiZkMtnmVJm+vESF6jnzCchUW3eeXaGoNNyf3JEfpxh5o+vdkziOgT068Wiwcb
n0atQX+GlrB442B4pssAPtRtPIflPLA6QZD1qRyPd/7nWoJnfJ9V4ASp9tYi+G7r
1Je9SvWEGNuA9CGswltLDYZuD9GeNVyfrj+SuymyK6QCK6KP54pJfCGo+ClL8BUd
ZBccPwoKyKEixq0EbGLE3QvAbjuo2Q==
=EnED
-----END PGP SIGNATURE-----payloadX>  tree 7b78ce82dd069f58d3106da773334c1ae625750e
parent e9caad876ededaaffdee33ff5eae046d49a0a387
parent be63d599f29932788b4c79c3947619d45e225157
author Ahmed Alouane <aalouane@palantir.com> 1684158875 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684158875 +0100

Merge branch 'aacbttimelock' into aacbtfastfail
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/a82cb1ff19d0b04d3c599534a72f22e4bfcb369dhtml_urlShttps://github.com/palantir/atlasdb/commit/a82cb1ff19d0b04d3c599534a72f22e4bfcb369dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents](}(j (e9caad876ededaaffdee33ff5eae046d49a0a387j ^https://api.github.com/repos/palantir/atlasdb/commits/e9caad876ededaaffdee33ff5eae046d49a0a387j Shttps://github.com/palantir/atlasdb/commit/e9caad876ededaaffdee33ff5eae046d49a0a387u}(j (be63d599f29932788b4c79c3947619d45e225157j ^https://api.github.com/repos/palantir/atlasdb/commits/be63d599f29932788b4c79c3947619d45e225157j Shttps://github.com/palantir/atlasdb/commit/be63d599f29932788b4c79c3947619d45e225157uestats}(totalMp	additionsM	deletionsKufiles](}(j (ba64936f524e339c02f8b51cfa2ca65146a3612cfilename.circleci/config.ymlstatusmodifiedj Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dpatchX  @@ -31,7 +31,7 @@ jobs:
           root: .
           paths: [ . ]
 
-  test:
+  test-suite:
     parameters:
       suite:
         type: integer
@@ -99,6 +99,12 @@ jobs:
       - attach_workspace: { at: . }
       - run: ./gradlew --scan --profile --stacktrace --continue publishToMavenLocal
 
+  test:
+    docker: [{ image: 'busybox:1.34.1' }]
+    resource_class: small
+    steps:
+      - run: {command: echo "Ran all required tests successfully"}
+
   deploy:
     docker:
       - image: cimg/openjdk:11.0.10-node
@@ -138,33 +144,39 @@ workflows:
           filters:
             tags:
               only: /.*/
-      - test:
+      - test-suite:
           requires: [build]
           matrix:
             alias: test-no-tl
             parameters:
-              suite: [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13]
+              # intentionally excluding 12 (TimeLock migration ETE test) from this collection
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13]
           filters:
             tags:
               only: /.*/
-      - test:
+      - test-suite:
           requires: [build]
           matrix:
             alias: test-tl
             parameters:
-              suite: [8]
+              suite: [12]
           filters:
             branches:
               only: /(tlmete.*|develop)/
             tags:
               only: /.*/
+      - test:
+          requires: [test-tl, test-no-tl]
+          filters:
+            tags:
+              only: /.*/
       - trial-publish:
           requires: [build]
           filters:
             branches:
               ignore: [develop]
       - deploy:
-          requires: [build, test-no-tl, test-tl]
+          requires: [build, test]
           filters:
             branches:
               only: developu}(j (d8f732c3615aaed89bbf22d2dd57bf2198b25723j .policy.ymlj modifiedj Kj Kj Kj  ]https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/.policy.ymlj" \https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/.policy.ymlj$ ohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X(  @@ -20,21 +20,21 @@ approval_rules:
       allow_contributor: false
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: two admins have approved
     options:
       allow_contributor: true
     requires:
       count: 2
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: changelog only and contributor approval
     options:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       only_changed_files:
         paths:
@@ -45,7 +45,7 @@ approval_rules:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       has_author_in:
         users: [ "svc-excavator-bot" ]u}(j (c8f5ec6d41d45b1db43cb98d871dd8aaff4fbe06j atlasdb-buggify/build.gradlej addedj Kj K j Kj  phttps://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-buggify%2Fbuild.gradlej" ohttps://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-buggify%2Fbuild.gradlej$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fbuild.gradle?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X`  @@ -0,0 +1,12 @@
+
+apply from: "../gradle/shared.gradle"
+
+dependencies {
+    implementation 'com.google.guava:guava'
+    testImplementation 'junit:junit'
+    testImplementation 'org.assertj:assertj-core'
+    testImplementation('org.jmock:jmock') {
+      exclude group: 'org.hamcrest'
+    }
+    testImplementation 'org.mockito:mockito-core'
+}u}(j (8fce620da2473d4f99412b1eafb18c42c9b4a1d2j Katlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/Buggify.javaj addedj K'j K j K'j  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X5  @@ -0,0 +1,39 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+/**
+ * Instances of this class could vary in implementation, such that they may perform no action {@link com.palantir.atlasdb.buggify.impl.NoOpBuggify} or
+ * always perform the action {@link com.palantir.atlasdb.buggify.impl.DefaultBuggify}. The idea here is that a
+ * downstream users of this class can easily swap out their {@link BuggifyFactory} to change the behavior of their
+ * class, without having to change the implementation of their class. This is useful for tests, as we can force the
+ * behavior of never running the provided runnable, or always running the provided runnable.
+ *
+ * See https://apple.github.io/foundationdb/client-testing.html for more information.
+ */
+public interface Buggify {
+    /**
+     * Maybe runs the provided runnable, depending on the instance of the class.
+     */
+    void run(Runnable runnable);
+
+    /**
+     * Returns true if this instance of buggify would perform an action if {@link #run Run} would execute the
+     * provided runnable. This is useful if you wish to produce a boolean that will be skewed towards true or false.
+     */
+    boolean asBoolean();
+}u}(j (0ed48b1c56bc0efc8ac5be656900e3c3a38c67faj Ratlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/BuggifyFactory.javaj addedj Kj K j Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& Xy  @@ -0,0 +1,24 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+public interface BuggifyFactory {
+    /**
+     * The probability of returning a buggify instance which performs actions.
+     */
+    Buggify maybe(double probability);
+}u}(j (bf47a2abcceffe92e42715b2377315e57a40f763j Satlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggify.javaj addedj K!j K j K!j  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+
+public enum DefaultBuggify implements Buggify {
+    INSTANCE;
+
+    @Override
+    public void run(Runnable runnable) {
+        runnable.run();
+    }
+
+    @Override
+    public boolean asBoolean() {
+        return true;
+    }
+}u}(j (c3bbf92469d211a6ab5bde05cefaaba784549d49j Zatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactory.javaj addedj K/j K j K/j  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -0,0 +1,47 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import java.security.SecureRandom;
+import java.util.function.DoubleSupplier;
+
+public final class DefaultBuggifyFactory implements BuggifyFactory {
+    private static final SecureRandom SECURE_RANDOM = new SecureRandom();
+    public static final BuggifyFactory INSTANCE = new DefaultBuggifyFactory();
+
+    private final DoubleSupplier doubleSupplier;
+
+    @VisibleForTesting
+    DefaultBuggifyFactory(DoubleSupplier doubleSupplier) {
+        this.doubleSupplier = doubleSupplier;
+    }
+
+    private DefaultBuggifyFactory() {
+        this(SECURE_RANDOM::nextDouble);
+    }
+
+    @Override
+    public Buggify maybe(double probability) {
+        if (doubleSupplier.getAsDouble() < probability) {
+            return DefaultBuggify.INSTANCE;
+        }
+        return NoOpBuggify.INSTANCE;
+    }
+}u}(j (7ffdf499b3babaa3d0997abc88e28cb57de2aa01j Patlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggify.javaj addedj K!j K j K!j  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+
+public enum NoOpBuggify implements Buggify {
+    INSTANCE;
+
+    @Override
+    public void run(Runnable _runnable) {
+        // do nothing
+    }
+
+    @Override
+    public boolean asBoolean() {
+        return false;
+    }
+}u}(j (2f200762a9c587bece4b4f26652a9d0c930bba0ej ^atlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactoryTest.javaj addedj K,j K j K,j  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X%  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import org.junit.Test;
+
+public class DefaultBuggifyFactoryTest {
+
+    @Test
+    public void maybeReturnsDefaultWhenMaxProbability() {
+        assertThat(DefaultBuggifyFactory.INSTANCE.maybe(1.0)).isSameAs(DefaultBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsNoOpWhenNeverProbability() {
+        assertThat(DefaultBuggifyFactory.INSTANCE.maybe(0.0)).isSameAs(NoOpBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsNoOpWhenBelowOrEqualToProbability() {
+        assertThat(new DefaultBuggifyFactory(() -> 0.50).maybe(0.50)).isSameAs(NoOpBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsDefaultWhenAboveProbability() {
+        assertThat(new DefaultBuggifyFactory(() -> 0.49).maybe(0.50)).isSameAs(DefaultBuggify.INSTANCE);
+    }
+}u}(j (28a8b18ae59b101e1489b1e086bbac7d63318767j Watlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyTest.javaj addedj K%j K j K%j  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.verify;
+
+import org.junit.Test;
+
+public class DefaultBuggifyTest {
+    @Test
+    public void runAlwaysExecutes() {
+        Runnable runnable = mock(Runnable.class);
+        DefaultBuggify.INSTANCE.run(runnable);
+        verify(runnable).run();
+    }
+
+    @Test
+    public void asBooleanReturnsTrue() {
+        assertThat(DefaultBuggify.INSTANCE.asBoolean()).isTrue();
+    }
+}u}(j (c6d5d05237311ecd06793772e3b673f5836c8896j Tatlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyTest.javaj addedj K&j K j K&j  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -0,0 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.never;
+import static org.mockito.Mockito.verify;
+
+import org.junit.Test;
+
+public class NoOpBuggifyTest {
+    @Test
+    public void runNeverExecutes() {
+        Runnable runnable = mock(Runnable.class);
+        NoOpBuggify.INSTANCE.run(runnable);
+        verify(runnable, never()).run();
+    }
+
+    @Test
+    public void asBooleanReturnsFalse() {
+        assertThat(NoOpBuggify.INSTANCE.asBoolean()).isFalse();
+    }
+}u}(j (a1974a0a70f2e9dc1483e8b6fcc59cc3a141917bj batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaj modifiedj K	j K	j Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X	  @@ -17,7 +17,6 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
-import com.google.common.collect.FluentIterable;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableRangeMap;
@@ -62,13 +61,13 @@
 import java.util.Comparator;
 import java.util.HashMap;
 import java.util.HashSet;
-import java.util.Iterator;
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
 import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Optional;
+import java.util.PrimitiveIterator.OfInt;
 import java.util.Random;
 import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
@@ -77,6 +76,7 @@
 import java.util.function.Predicate;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import java.util.stream.Stream;
 import org.apache.cassandra.thrift.EndpointDetails;
 import org.apache.cassandra.thrift.TokenRange;
@@ -306,16 +306,16 @@ private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) th
     }
 
     private int getKnownPort() throws UnknownHostException {
-        // explicitly not using streams due to allocation overhead
-        return onlyPort(FluentIterable.concat(
-                        FluentIterable.from(currentPools.keySet()).transform(CassandraServer::proxy),
-                        getServersSocketAddressesFromConfig())
-                .transform(InetSocketAddress::getPort));
+        // Avoid allocations and intermediate collection as this is on hot path
+        return only(Stream.concat(
+                        currentPools.keySet().stream().map(CassandraServer::proxy),
+                        getServersSocketAddressesFromConfig().stream())
+                .mapToInt(InetSocketAddress::getPort));
     }
 
     @VisibleForTesting
-    static int onlyPort(Iterable<? extends Integer> iterable) throws UnknownHostException {
-        Iterator<? extends Integer> iterator = iterable.iterator();
+    static int only(IntStream intStream) throws UnknownHostException {
+        OfInt iterator = intStream.iterator();
         if (!iterator.hasNext()) {
             throw new UnknownHostException("No single known port");
         }u}(j (ea93d4225293149bfc275c742ea245b6b263274fj fatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraServiceTest.javaj modifiedj Kj Kj Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -33,7 +33,6 @@
 import com.palantir.refreshable.Refreshable;
 import java.net.InetSocketAddress;
 import java.net.UnknownHostException;
-import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.ThreadLocalRandom;
@@ -272,12 +271,10 @@ public void getRandomHostByActiveConnectionsReturnsDesiredHost() {
 
     @Test
     public void ports() throws Exception {
-        assertThat(CassandraService.onlyPort(List.of(1, 1, 1))).isEqualTo(1);
-        assertThat(IntStream.generate(() -> 4224).boxed().limit(15).collect(Collectors.toList()))
-                .hasSize(15)
-                .satisfies(cluster ->
-                        assertThat(CassandraService.onlyPort(cluster)).isEqualTo(4224));
-        assertThatThrownBy(() -> CassandraService.onlyPort(List.of(1, 2, 1)))
+        assertThat(CassandraService.only(IntStream.of(1, 1, 1))).isEqualTo(1);
+        assertThat(CassandraService.only(IntStream.generate(() -> 4224).limit(15)))
+                .isEqualTo(4224);
+        assertThatThrownBy(() -> CassandraService.only(IntStream.of(1, 2, 1)))
                 .isInstanceOf(UnknownHostException.class)
                 .hasMessageContaining("No single known port");
     }u}(j (873fe01fb2bcd122671ed8446a4741d208fbfa02j katlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AdvisoryLockConditionSuppliers.javaj modifiedj Kj Kj Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -79,10 +79,13 @@ private static HeldLocksToken acquireLock(LockService lockService, LockRequest l
                     case BLOCK_UNTIL_TIMEOUT:
                     case BLOCK_INDEFINITELY:
                     case BLOCK_INDEFINITELY_THEN_RELEASE:
-                        log.warn("Could not lock successfully", ex);
                         ++failureCount;
+                        log.warn("Could not lock successfully", SafeArg.of("failureCount", failureCount), ex);
                         if (failureCount >= NUM_RETRIES) {
-                            log.warn("Failing after {} tries", SafeArg.of("failureCount", failureCount), ex);
+                            log.warn(
+                                    "Failing after exceeding maximum tries",
+                                    SafeArg.of("failureCount", failureCount),
+                                    ex);
                             throw ex;
                         }
                         break;u}(j (b7485353a77f6bf0cd6c937bff58416577e13b1dj (atlasdb-workload-server-api/build.gradlej modifiedj Kj K j Kj  |https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-api%2Fbuild.gradlej" {https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-api%2Fbuild.gradlej$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fbuild.gradle?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& @@ -13,4 +13,5 @@ dependencies {
     annotationProcessor 'org.immutables:value'
 
     testImplementation 'com.palantir.safe-logging:preconditions-assertj'
+    testImplementation 'org.mockito:mockito-core'
 }
\ No newline at end of fileu}(j (72396cbd183a5589ac7b3cf6593e07b9c5de2fd0j katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ReadableTransactionStore.javaj modifiedj Kj K j Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& XY  @@ -28,4 +28,9 @@ public interface ReadableTransactionStore {
      * @return The value of the cell for a given table.
      */
     Optional<Integer> get(String table, WorkloadCell cell);
+
+    /**
+     * Checks whether the transaction with the provided startTimestamp has committed.
+     */
+    boolean isCommitted(long startTimestamp);
 }u}(j (9a3b7a7060c8f72d6a97bc2c347571b698b81c47j jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStoreFactory.javaj modifiedj Kj Kj Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -22,6 +22,6 @@
 /**
  * Creates transaction stores of a certain type which are bounded to the provided tables/indexes.
  */
-public interface TransactionStoreFactory {
-    TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
+public interface TransactionStoreFactory<T extends TransactionStore> {
+    T create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
 }u}(j (574a86c53458c2bbb5f43c19c269eb2ee52679c7j |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/FullyWitnessedTransaction.javaj addedj K"j K j K"j  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we know for certain we've witnessed.
+ */
+@Value.Immutable
+public interface FullyWitnessedTransaction extends WitnessedTransaction {
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableFullyWitnessedTransaction.Builder builder() {
+        return ImmutableFullyWitnessedTransaction.builder();
+    }
+}u}(j (5a66280426c78d83ed7001fc4ee1aebb894f7578j |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransaction.javaj addedj K4j K j K4j  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.logsafe.Preconditions;
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we witnessed, but are in a state which we are
+ * unsure if they have committed or not due to failures.
+ */
+@Value.Immutable
+public interface MaybeWitnessedTransaction extends WitnessedTransaction {
+    @Value.Check
+    default void check() {
+        Preconditions.checkArgument(
+                commitTimestamp().isPresent(),
+                "Given how the transaction protocol works, a transaction for which we haven't retrieved the commit "
+                        + "timestamp has not written anything of significance to the database");
+    }
+
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableMaybeWitnessedTransaction.Builder builder() {
+        return ImmutableMaybeWitnessedTransaction.builder();
+    }
+
+    default FullyWitnessedTransaction toFullyWitnessed() {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(startTimestamp())
+                .commitTimestamp(commitTimestamp())
+                .actions(actions())
+                .build();
+    }
+}u}(j (525e82582d3affac4608bebfe366141f3088a716j watlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransaction.javaj modifiedj Kj Kj Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X
  @@ -18,9 +18,7 @@
 
 import java.util.List;
 import java.util.Optional;
-import org.immutables.value.Value;
 
-@Value.Immutable
 public interface WitnessedTransaction {
     /** Start timestamp of the transaction. */
     long startTimestamp();
@@ -30,4 +28,6 @@ public interface WitnessedTransaction {
 
     /** Provides an in-order list of actions that were performed during the transaction's execution. */
     List<WitnessedTransactionAction> actions();
+
+    <T> T accept(WitnessedTransactionVisitor<T> visitor);
 }u}(j (33682bf649e7b87408367a7f23d4995c94c96d98j ~atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionVisitor.javaj addedj Kj K j Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -0,0 +1,23 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+public interface WitnessedTransactionVisitor<T> {
+    T visit(FullyWitnessedTransaction witnessedTransaction);
+
+    T visit(MaybeWitnessedTransaction maybeWitnessedTransaction);
+}u}(j (47b4109802a3529a585cdba06bb50cbe3fb2a098j katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowConfiguration.javaj modifiedj Kj K j Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -17,8 +17,19 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import org.immutables.value.Value;
 
 @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
 public interface WorkflowConfiguration {
     int iterationCount();
+
+    @Value.Default
+    default double rateLimit() {
+        return 100;
+    }
+
+    @Value.Default
+    default Integer maxThreadCount() {
+        return 100;
+    }
 }u}(j (ffbc895344923f90f2a9fbedaca2f32929339b6cj eatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowHistory.javaj modifiedj Kj K j Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -26,5 +26,10 @@ public interface WorkflowHistory {
     // We may want to query the KVS during verification.
     ReadableTransactionStore transactionStore();
 
+    /**
+     * TODO: This should only be a list of
+     * {@link com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction} rather than the general
+     * purpose type.
+     */
     List<WitnessedTransaction> history();
 }u}(j (98c826c9208fca80e3a6f1f1efcf8240c030d9ffj atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javaj addedj KDj K j KDj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X\  @@ -0,0 +1,68 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+import static org.mockito.Mockito.mock;
+
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import org.junit.Test;
+
+public class MaybeWitnessedTransactionTest {
+
+    private static final Long START_TIMESTAMP = 100L;
+    private static final Long COMMIT_TIMESTAMP = 200L;
+
+    @Test
+    public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
+        assertThatLoggableExceptionThrownBy(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining(
+                        "Given how the transaction protocol works, a transaction for which we haven't retrieved the"
+                                + " commit timestamp");
+    }
+
+    @Test
+    public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
+        assertThatCode(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .commitTimestamp(COMMIT_TIMESTAMP)
+                        .build())
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void toFullyWitnessedCopiesArgumentsCorrectly() {
+        WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
+        WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
+        List<WitnessedTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
+        FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
+                .startTimestamp(START_TIMESTAMP)
+                .commitTimestamp(COMMIT_TIMESTAMP)
+                .actions(actions)
+                .build()
+                .toFullyWitnessed();
+        assertThat(fullyWitnessedTransaction.startTimestamp()).isEqualTo(START_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.commitTimestamp()).contains(COMMIT_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.actions()).containsExactlyElementsOf(actions);
+    }
+}u}(j (657030222c223cabc3af02a6cfa9a51829ab3112j latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedj K j Kj K(j  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -29,11 +29,14 @@
 import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
 import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
 import com.palantir.conjure.java.serialization.ObjectMappers;
@@ -95,12 +98,17 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 Refreshable.only(configuration.runtime().atlas()),
                 USER_AGENT,
                 metricsManager);
-        SingleRowTwoCellsWorkflowConfiguration workflowConfig =
+        SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig =
                 configuration.install().singleRowTwoCellsConfig();
+        RingWorkflowConfiguration ringWorkflowConfiguration =
+                configuration.install().ringConfig();
 
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
-                .run(createSingleRowTwoCellsWorkflowValidator(
-                        transactionStoreFactory, workflowConfig, environment.lifecycle()));
+                .run(
+                        createSingleRowTwoCellsWorkflowValidator(
+                                transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
+                        createRingWorkflowValidator(
+                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -111,12 +119,30 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
+    private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            RingWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = lifecycle
+                .executorService(RingWorkflows.class.getSimpleName())
+                .maxThreads(workflowConfig.maxThreadCount())
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(RingWorkflows.create(
+                transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)));
+    }
+
     private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             SingleRowTwoCellsWorkflowConfiguration workflowConfig,
             LifecycleEnvironment lifecycle) {
-        ExecutorService singleRowTwoCellsExecutorService = lifecycle
-                .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
+        ExecutorService executorService = lifecycle
+                .executorService(RingWorkflows.class.getSimpleName())
+                .maxThreads(workflowConfig.maxThreadCount())
                 .build();
         TransactionStore transactionStore = transactionStoreFactory.create(
                 Map.of(
@@ -125,9 +151,7 @@ private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator
                 Set.of());
         return WorkflowAndInvariants.builder()
                 .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
-                        transactionStore,
-                        workflowConfig,
-                        MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)))
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
                 .addInvariantReporters(new DurableWritesInvariantMetricReporter(
                         SingleRowTwoCellsWorkflows.class.getSimpleName(),
                         DurableWritesMetrics.of(taggedMetricRegistry)))u      }(j (899459cdb3b709b73bdaa6f88501e36e980580c8j atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj modifiedj Kj K j Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -20,6 +20,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
 
 @JsonDeserialize(as = ImmutableWorkloadServerInstallConfiguration.class)
@@ -30,5 +31,7 @@ public interface WorkloadServerInstallConfiguration {
 
     SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig();
 
+    RingWorkflowConfiguration ringConfig();
+
     boolean exitAfterRunning();
 }u}(j (b92811220a5a77616324333bfc9e02b6ac0ca989j Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj modifiedj Kj K j Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X=  @@ -10,4 +10,10 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
   exitAfterRunning: false
\ No newline at end of fileu}(j (d30bb12eccd163f3ff27a1f16336e27031b0e847j Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj modifiedj Kj K j Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X   @@ -45,4 +45,10 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
   exitAfterRunning: trueu}(j (f0ef6a7b2a2ff03f260d5e5b1a833d0f4a509161j Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj modifiedj Kj K j Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X<  @@ -10,4 +10,10 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
   exitAfterRunning: true
\ No newline at end of fileu}(j (6871e6633db3c7f6293f93c4496e8f449116f688j fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj modifiedj K'j Kj K3j  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X(  @@ -21,16 +21,20 @@
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.PreCommitCondition;
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.TransactionCommitFailedException;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -63,6 +67,13 @@ public Optional<Integer> get(String table, WorkloadCell cell) {
                 transaction -> new AtlasDbInteractiveTransaction(transaction, tables).read(table, cell));
     }
 
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return TransactionStatus.getCommitTimestamp(
+                        transactionManager.getTransactionService().getV2(startTimestamp))
+                .isPresent();
+    }
+
     @Override
     public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
         return readWrite(txn -> {
@@ -74,23 +85,26 @@ public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions)
     @Override
     public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer) {
         AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
+        AtomicReference<Transaction> transactionReference = new AtomicReference<>();
         Supplier<CommitTimestampProvider> commitTimestampProvider =
                 Suppliers.memoize(() -> new CommitTimestampProvider());
         try {
-            Transaction transaction =
-                    transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
-                        AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
-                                new AtlasDbInteractiveTransaction(txn, tables);
-                        interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
-                        witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
-                        return txn;
-                    });
+            transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
+                transactionReference.set(txn);
+                AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
+                        new AtlasDbInteractiveTransaction(txn, tables);
+                interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
+                witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
+                return null;
+            });
+
+            Transaction transaction = transactionReference.get();
 
             if (transaction.isAborted()) {
                 return Optional.empty();
             }
 
-            return Optional.of(ImmutableWitnessedTransaction.builder()
+            return Optional.of(FullyWitnessedTransaction.builder()
                     .startTimestamp(transaction.getTimestamp())
                     .commitTimestamp(commitTimestampProvider
                             .get()
@@ -99,9 +113,22 @@ public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction>
                     .build());
         } catch (SafeIllegalArgumentException e) {
             throw e;
+        } catch (TransactionCommitFailedException e) {
+            Transaction transaction = transactionReference.get();
+            return Optional.of(MaybeWitnessedTransaction.builder()
+                    .startTimestamp(transaction.getTimestamp())
+                    .commitTimestamp(commitTimestampProvider
+                            .get()
+                            .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
+                    .actions(witnessedActionsReference.get())
+                    .build());
         } catch (Exception e) {
-            // TODO: Need to eventually handle PuE exceptions, as they could've succeeded in committing.
-            log.info("Failed to record transaction due to an exception", e);
+            Optional<Long> startTimestamp =
+                    Optional.ofNullable(transactionReference.get()).map(Transaction::getTimestamp);
+            log.info(
+                    "Failed to record transaction due to an exception for startTimestamp {}",
+                    SafeArg.of("startTimestamp", startTimestamp),
+                    e);
             return Optional.empty();
         }
     }u}(j (6c1f4a7a8436891c6ea5ad47054652ed82549811j matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javaj modifiedj Kj Kj Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& XW  @@ -39,7 +39,7 @@
 import one.util.streamex.EntryStream;
 import one.util.streamex.StreamEx;
 
-public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory {
+public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory<InteractiveTransactionStore> {
 
     private final TransactionManager transactionManager;
     private final Optional<Namespace> maybeNamespace;
@@ -50,7 +50,7 @@ public AtlasDbTransactionStoreFactory(TransactionManager transactionManager, Opt
     }
 
     @Override
-    public TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
+    public InteractiveTransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
         return AtlasDbTransactionStore.create(transactionManager, toAtlasTables(tables, indexes));
     }
 u}(j (cb6dfce8a01b80d7f3c5368970de60190ce81ddcj gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/ReadOnlyTransactionStore.javaj modifiedj Kj K j Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& XU  @@ -33,4 +33,9 @@ public ReadOnlyTransactionStore(ReadableTransactionStore delegate) {
     public Optional<Integer> get(String table, WorkloadCell cell) {
         return delegate.get(table, cell);
     }
+
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return delegate.isCommitted(startTimestamp);
+    }
 }u}(j (0ba18e00eabc917a1fd7025d0f9113112c9b8615j atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitor.javaj addedj K*j K j K*j  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.Optional;
+
+public final class OnlyCommittedWitnessedTransactionVisitor
+        implements WitnessedTransactionVisitor<Optional<FullyWitnessedTransaction>> {
+
+    private final ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    public OnlyCommittedWitnessedTransactionVisitor(ReadOnlyTransactionStore readOnlyTransactionStore) {
+        this.readOnlyTransactionStore = readOnlyTransactionStore;
+    }
+
+    @Override
+    public Optional<FullyWitnessedTransaction> visit(FullyWitnessedTransaction witnessedTransaction) {
+        return Optional.of(witnessedTransaction);
+    }
+
+    @Override
+    public Optional<FullyWitnessedTransaction> visit(MaybeWitnessedTransaction maybeWitnessedTransaction) {
+        return readOnlyTransactionStore.isCommitted(maybeWitnessedTransaction.startTimestamp())
+                ? Optional.of(maybeWitnessedTransaction.toFullyWitnessed())
+                : Optional.empty();
+    }
+}u}(j (54b290f2339c2518740eb0ba35e08de26406b945j aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javaj modifiedj Kj Kj Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X
  @@ -20,13 +20,15 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.OnlyCommittedWitnessedTransactionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import java.util.Comparator;
 import java.util.List;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
-import java.util.stream.Collectors;
+import one.util.streamex.StreamEx;
 
 public final class DefaultWorkflow<T extends TransactionStore> implements Workflow {
     private final ConcurrentTransactionRunner<T> concurrentTransactionRunner;
@@ -45,7 +47,7 @@ private DefaultWorkflow(
         this.readOnlyTransactionStore = readOnlyTransactionStore;
     }
 
-    public static <T extends TransactionStore> Workflow create(
+    public static <T extends TransactionStore> DefaultWorkflow<T> create(
             T store,
             KeyedTransactionTask<T> transactionTask,
             WorkflowConfiguration configuration,
@@ -60,7 +62,7 @@ public static <T extends TransactionStore> Workflow create(
     @Override
     public WorkflowHistory run() {
         return ImmutableWorkflowHistory.builder()
-                .history(sortByEffectiveTimestamp(runTransactionTask()))
+                .history(sortAndFilterTransactions(runTransactionTask()))
                 .transactionStore(readOnlyTransactionStore)
                 .build();
     }
@@ -79,11 +81,17 @@ private List<WitnessedTransaction> runTransactionTask() {
         }
     }
 
+    /**
+     * Sorts transactions by their effective timestamp and filters out transactions that are not fully committed.
+     */
     @VisibleForTesting
-    static List<WitnessedTransaction> sortByEffectiveTimestamp(List<WitnessedTransaction> unorderedTransactions) {
-        return unorderedTransactions.stream()
+    List<FullyWitnessedTransaction> sortAndFilterTransactions(List<WitnessedTransaction> unorderedTransactions) {
+        OnlyCommittedWitnessedTransactionVisitor visitor =
+                new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
+        return StreamEx.of(unorderedTransactions)
+                .mapPartial(transaction -> transaction.accept(visitor))
                 .sorted(Comparator.comparingLong(DefaultWorkflow::effectiveTimestamp))
-                .collect(Collectors.toList());
+                .toList();
     }
 
     private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {u}(j (caadf187b4d5e22652f2a830ce77923c1b876143j xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javaj modifiedj K j Kj Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X_  @@ -31,11 +31,6 @@ public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfigur
 
     TableConfiguration tableConfiguration();
 
-    @Value.Default
-    default double rateLimit() {
-        return 100;
-    }
-
     @Value.Lazy
     default RateLimiter transactionRateLimiter() {
         return RateLimiter.create(rateLimit());u}(j (8db9245638b72b40f73f9ae3c427c4ccb2c69053j patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowConfiguration.javaj modifiedj Kj Kj K
j  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -20,14 +20,13 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.google.common.util.concurrent.RateLimiter;
-import com.palantir.atlasdb.workload.workflow.ImmutableSingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TableConfiguration;
 import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
 import org.immutables.value.Value;
 
 @Value.Immutable
-@JsonSerialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
-@JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonSerialize(as = ImmutableRingWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableRingWorkflowConfiguration.class)
 @JsonTypeName(RingWorkflowConfiguration.TYPE)
 public interface RingWorkflowConfiguration extends WorkflowConfiguration {
     String TYPE = "ring";
@@ -38,11 +37,6 @@ default Integer ringSize() {
         return 3;
     }
 
-    @Value.Default
-    default double rateLimit() {
-        return 100;
-    }
-
     @Value.Lazy
     default RateLimiter transactionRateLimiter() {
         return RateLimiter.create(rateLimit());u}(j (b786a95bef1effb5bd44f53eed786d588b38a9b0j datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflows.javaj modifiedj K
j K j K
j  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -51,6 +51,19 @@ private RingWorkflows() {
     }
 
     public static Workflow create(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration ringWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        AtomicBoolean skipRunning = new AtomicBoolean(false);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
+                ringWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
             InteractiveTransactionStore store,
             RingWorkflowConfiguration ringWorkflowConfiguration,
             ListeningExecutorService executionExecutor,u}(j (3d12ec12a07e0b90193451a34a6dccfcfa6f8e76j {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporterTest.javaj modifiedj Kj Kj Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -25,7 +25,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -60,7 +60,7 @@ public void runIncreasesMetricsIfViolationsFound() {
                         .build()));
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
                 .transactionStore(store)
-                .history(List.of(ImmutableWitnessedTransaction.builder()
+                .history(List.of(FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(u}(j (39cc7f77a28bd84fc271bbca23d8e9195abf6fd6j matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantTest.javaj modifiedj Kj Kj K
j  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X
  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -59,12 +59,12 @@ public void before() {
     public void cellsExpectedToBeDeletedAreFound() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)
@@ -86,12 +86,12 @@ public void cellsExpectedToBeDeletedAreFound() {
     public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)u}(j (398677d5ff242f5cee92de9c2737a0843621c59dj watlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporterTest.javaj modifiedj Kj Kj Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -19,7 +19,7 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import java.util.List;
 import org.junit.Test;
@@ -35,7 +35,7 @@ public void consumerDoesNotThrowWhenAcceptingViolations() {
         assertThatCode(() -> SerializableInvariantLogReporter.INSTANCE
                         .consumer()
                         .accept(List.of(InvalidWitnessedTransaction.of(
-                                ImmutableWitnessedTransaction.builder()
+                                FullyWitnessedTransaction.builder()
                                         .startTimestamp(1)
                                         .build(),
                                 List.of()))))u}(j (5ec56f77b39005e45c63e6495f68b817646fecc6j jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj modifiedj K&j K j K&j  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -28,22 +28,28 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doAnswer;
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
 
 import com.google.common.collect.Iterables;
+import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
+import com.palantir.atlasdb.transaction.api.ConditionAwareTransactionTask;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.encoding.V1EncodingStrategy;
+import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore.CommitTimestampProvider;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -162,6 +168,38 @@ public void abortedTransactionsReturnEmpty() {
                 .isEmpty();
     }
 
+    @Test
+    public void keyAlreadyExistExceptionResultsInMaybeWitnessedTransaction() {
+        WriteTransactionAction writeTransactionAction =
+                WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+        TransactionManager keyAlreadyExistsExceptionThrowingStore = spy(manager);
+        doAnswer(invocation -> {
+                    Supplier<CommitTimestampProvider> commitTimestampFetcher = invocation.getArgument(0);
+                    ConditionAwareTransactionTask<Void, CommitTimestampProvider, Exception> task =
+                            invocation.getArgument(1);
+                    return manager.runTaskWithConditionWithRetry(commitTimestampFetcher, (txn, condition) -> {
+                        manager.getKeyValueService()
+                                .putUnlessExists(
+                                        TransactionConstants.TRANSACTION_TABLE,
+                                        Map.of(
+                                                V1EncodingStrategy.INSTANCE.encodeStartTimestampAsCell(
+                                                        txn.getTimestamp()),
+                                                Ints.toByteArray(-1)));
+                        task.execute(txn, condition);
+                        return null;
+                    });
+                })
+                .when(keyAlreadyExistsExceptionThrowingStore)
+                .runTaskWithConditionWithRetry(any(Supplier.class), any());
+        AtlasDbTransactionStore onlyKeyAlreadyExistsThrowingStore =
+                AtlasDbTransactionStore.create(keyAlreadyExistsExceptionThrowingStore, TABLES_TO_ATLAS_METADATA);
+        assertThat(onlyKeyAlreadyExistsThrowingStore.readWrite(List.of(writeTransactionAction)))
+                .hasValueSatisfying(witnessedTransaction -> {
+                    assertThat(witnessedTransaction).isInstanceOf(MaybeWitnessedTransaction.class);
+                    assertThat(witnessedTransaction.actions()).containsExactly(writeTransactionAction.witness());
+                });
+    }
+
     @Test
     public void getCommitTimestampIsEmptyWhenMatchesStartTimestamp() {
         CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();u}(j (d2773b68972e300a262ebb1f8c2a24f280280cfdj patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javaj modifiedj Kj Kj Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -27,7 +27,7 @@
 
 import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.store.ValidationStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import java.util.List;
@@ -40,12 +40,12 @@ public final class InMemoryValidationStoreTest {
     @Test
     public void writeActionsPersistValues() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
@@ -61,13 +61,13 @@ public void writeActionsPersistValues() {
     @Test
     public void deleteActionsPutsEmptyOptionalForCell() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
@@ -80,17 +80,17 @@ public void deleteActionsPutsEmptyOptionalForCell() {
     @Test
     public void writesDeletesAreProcessedInOrder() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(5)
                         .commitTimestamp(6)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_TWO))u}(j (2b067a134a06d3e605fca8d36dacf3678a76ffcej qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj modifiedj Kj Kj Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -103,7 +103,7 @@ public WitnessedTransactionsBuilder endTransaction(Optional<Long> commitTimestam
                         startTimestamp < commitTimestamp.get(),
                         "Commit timestamp must be greater than the start timestamp.");
             }
-            witnessedTransactions.add(ImmutableWitnessedTransaction.builder()
+            witnessedTransactions.add(FullyWitnessedTransaction.builder()
                     .startTimestamp(startTimestamp)
                     .actions(actions)
                     .commitTimestamp(commitTimestamp)u}(j (d495a71c18ca7b125092f092c371e0a4a455ad73j atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitorTest.javaj addedj KAj K j KAj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javaj$ X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X
  @@ -0,0 +1,65 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyLong;
+import static org.mockito.Mockito.verifyNoInteractions;
+import static org.mockito.Mockito.when;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class OnlyCommittedWitnessedTransactionVisitorTest {
+
+    private static final FullyWitnessedTransaction READ_ONLY_WITNESSED_TRANSACTION =
+            FullyWitnessedTransaction.builder().startTimestamp(100L).build();
+
+    private static final MaybeWitnessedTransaction MAYBE_WITNESSED_TRANSACTION = MaybeWitnessedTransaction.builder()
+            .startTimestamp(100L)
+            .commitTimestamp(101L)
+            .build();
+
+    @Mock
+    private ReadOnlyTransactionStore transactionStore;
+
+    @Test
+    public void fullyCommittedTransactionsAreNeverChecked() {
+        assertThat(READ_ONLY_WITNESSED_TRANSACTION.accept(
+                        new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(READ_ONLY_WITNESSED_TRANSACTION);
+        verifyNoInteractions(transactionStore);
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsEmptyWhenNotCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(false);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .isEmpty();
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsFullyWitnessedWhenCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(true);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(MAYBE_WITNESSED_TRANSACTION.toFullyWitnessed());
+    }
+}u}(j (c661ec5533851b62afb963d1f472d967b8a67e83j qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunnerTest.javaj modifiedj Kj Kj Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -33,7 +33,7 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.List;
@@ -126,7 +126,7 @@ public void storePassedThroughToIndividualTasks() {
     }
 
     private static WitnessedTransaction createWitnessedTransactionWithStartTimestamp(int startTimestamp) {
-        return ImmutableWitnessedTransaction.builder()
+        return FullyWitnessedTransaction.builder()
                 .startTimestamp(startTimestamp)
                 .build();
     }u}(j (f8a19900eee6cf1226affe562f3f1ad73f58040dj eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javaj modifiedj K2j Kj KNj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X!  @@ -27,9 +27,10 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.common.concurrent.PTExecutors;
+import java.util.List;
 import java.util.concurrent.ScheduledExecutorService;
 import org.junit.Test;
 
@@ -41,66 +42,78 @@ public class DefaultWorkflowTest {
     private final ScheduledExecutorService scheduler = PTExecutors.newSingleThreadScheduledExecutor();
     private final ListeningExecutorService executionExecutor = MoreExecutors.listeningDecorator(scheduler);
 
+    private final DefaultWorkflow<TransactionStore> workflow =
+            DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
+
     @Test
     public void handlesExceptionsInUnderlyingTasks() {
         RuntimeException transactionException = new RuntimeException("boo");
         when(transactionTask.apply(eq(store), anyInt())).thenThrow(transactionException);
-
-        Workflow workflow =
-                DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
         assertThatThrownBy(workflow::run)
                 .hasMessage("Error when running workflow task")
                 .hasCause(transactionException);
     }
 
     @Test
     public void returnsUnderlyingWitnessedTransactions() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight)))
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight)))
                 .containsExactly(twoToEight);
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(readOnlyAtFive)))
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(readOnlyAtFive)))
                 .containsExactly(readOnlyAtFive);
     }
 
     @Test
     public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
-        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
                 .containsExactly(fourToSix, threeToSeven, twoToEight);
     }
 
     @Test
     public void sortsReadOnlyTransactionsByStartTimestamp() {
-        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        WitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(
+        assertThat(workflow.sortAndFilterTransactions(
                         ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
                 .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
     }
 
     @Test
     public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
 
-        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        WitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(
                         twoToEight, readOnlyAtNine, fourToSix, readOnlyAtFive, readOnlyAtThree, readOnlyAtSeven)))
                 .containsExactly(
                         readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
     }
 
+    @Test
+    public void filterRemovesUncommittedTransactions() {
+        MaybeWitnessedTransaction committedMaybeWitnessedTransaction =
+                createMaybeWitnessedTransactionWithoutActions(1, 3, true);
+        MaybeWitnessedTransaction notCommittedTransaction = createMaybeWitnessedTransactionWithoutActions(2, 8, false);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        assertThat(workflow.sortAndFilterTransactions(List.of(
+                        committedMaybeWitnessedTransaction, notCommittedTransaction, readOnlyAtFive, fourToSix)))
+                .containsExactly(committedMaybeWitnessedTransaction.toFullyWitnessed(), readOnlyAtFive, fourToSix);
+    }
+
     private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
         return new WorkflowConfiguration() {
             @Override
@@ -110,12 +123,21 @@ public int iterationCount() {
         };
     }
 
-    private static WitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
-        return ImmutableWitnessedTransaction.builder().startTimestamp(start).build();
+    private MaybeWitnessedTransaction createMaybeWitnessedTransactionWithoutActions(
+            long start, long commit, boolean committed) {
+        when(store.isCommitted(eq(start))).thenReturn(committed);
+        return MaybeWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+
+    private static FullyWitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
+        return FullyWitnessedTransaction.builder().startTimestamp(start).build();
     }
 
-    private static WitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
-        return ImmutableWitnessedTransaction.builder()
+    private static FullyWitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
+        return FullyWitnessedTransaction.builder()
                 .startTimestamp(start)
                 .commitTimestamp(commit)
                 .build();u}(j (b4f0f9cfa1631ef560d32a317b1d9e42a3cac71fj  changelog/0.849.0/pr-6562.v2.ymlj addedj Kj K j Kj  vhttps://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/changelog%2F0.849.0%2Fpr-6562.v2.ymlj" uhttps://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/changelog%2F0.849.0%2Fpr-6562.v2.ymlj$ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.849.0%2Fpr-6562.v2.yml?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Avoid boxing for Cassandra known port checks
+  links:
+  - https://github.com/palantir/atlasdb/pull/6562u}(j (217d9399bdb068283f3ed607c705739151adc8eaj  changelog/0.850.0/pr-6563.v2.ymlj addedj Kj K j Kj  vhttps://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/changelog%2F0.850.0%2Fpr-6563.v2.ymlj" uhttps://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/changelog%2F0.850.0%2Fpr-6563.v2.ymlj$ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.850.0%2Fpr-6563.v2.yml?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& @@ -0,0 +1,6 @@
+type: fix
+fix:
+  description: Fixed a serialization issue for users of `LockServerOptions` and `LockState`
+    endpoints in the legacy lock service.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6563u}(j (23134b9e8533848c590920b5b3a3ff99b19db234j  changelog/0.851.0/pr-6551.v2.ymlj addedj Kj K j Kj  vhttps://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/changelog%2F0.851.0%2Fpr-6551.v2.ymlj" uhttps://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/changelog%2F0.851.0%2Fpr-6551.v2.ymlj$ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.851.0%2Fpr-6551.v2.yml?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Display as safe arg the failureCount in the "Could not lock successfully"
+  links:
+  - https://github.com/palantir/atlasdb/pull/6551u}(j (7deaaeb752dd206465461e58105cf13d7c7dbeffj lock-api/build.gradlej modifiedj Kj K j Kj  ihttps://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/lock-api%2Fbuild.gradlej" hhttps://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/lock-api%2Fbuild.gradlej$ {https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fbuild.gradle?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -45,6 +45,7 @@ dependencies {
     testImplementation 'com.palantir.common:streams'
     testImplementation 'io.dropwizard.metrics:metrics-core'
     testImplementation 'org.slf4j:slf4j-api'
+    testImplementation project(':lock-api-objects')
     testImplementation project(':lock-conjure-api:lock-conjure-api-objects')
     testImplementation project(':timelock-api:timelock-api-objects')
 u}(j (da3109e146d361ca31d2958b0fc223d0d2334824j ?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javaj modifiedj Kj K j Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& @@ -48,6 +48,7 @@ public class LockServerOptions implements Serializable {
      * client accessing it.
      */
     @Value.Default
+    @JsonProperty("isStandaloneServer")
     public boolean isStandaloneServer() {
         return true;
     }u}(j (7cd1c34cf31d800e3d13f665c2f83a2f2153b95ej 7lock-api/src/main/java/com/palantir/lock/LockState.javaj modifiedj Kj K j Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& XD  @@ -16,6 +16,7 @@
 
 package com.palantir.lock;
 
+import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import java.util.List;
@@ -26,8 +27,10 @@
 @JsonSerialize(as = ImmutableLockState.class)
 @JsonDeserialize(as = ImmutableLockState.class)
 public interface LockState {
+    @JsonProperty("isWriteLocked")
     boolean isWriteLocked();
 
+    @JsonProperty("isFrozen")
     boolean isFrozen();
 
     List<LockClient> exactCurrentLockHolders();u}(j (1926ba4ded622aa9fbfde697ed803a0543ddf1b5j Clock-api/src/test/java/com/palantir/lock/LockServerOptionsTest.javaj addedj KSj K j KSj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.javaj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.javaj$ https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.java?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369d5      j& Xh  @@ -0,0 +1,83 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.lock.v2.IdentifiedTimeLockRequest;
+import java.io.File;
+import java.io.IOException;
+import java.util.concurrent.TimeUnit;
+import org.junit.Test;
+
+public class LockServerOptionsTest {
+    private static final File LOCK_SERVER_OPTIONS_JSON = new File(IdentifiedTimeLockRequest.class
+            .getResource("/lock-server-options.json")
+            .getPath());
+    private static final LockServerOptions NON_STANDALONE_OPTIONS =
+            LockServerOptions.builder().isStandaloneServer(false).build();
+
+    private final ObjectMapper serverMapper = ObjectMappers.newServerObjectMapper();
+    private final ObjectMapper clientMapper = ObjectMappers.newClientObjectMapper();
+
+    @Test
+    public void serializationContainsIsStandaloneServerExplicitly() throws Exception {
+        assertThat(serverMapper.writeValueAsString(NON_STANDALONE_OPTIONS))
+                .isNotEmpty()
+                .contains("\"isStandaloneServer\":false");
+        assertThat(serverMapper.writeValueAsString(LockServerOptions.builder().build()))
+                .isNotEmpty()
+                .contains("\"isStandaloneServer\":true");
+    }
+
+    @Test
+    public void serializationIsInverseOfDeserialization() throws JsonProcessingException {
+        assertSerializationIsInverseOfDeserialization(NON_STANDALONE_OPTIONS);
+        assertSerializationIsInverseOfDeserialization(
+                LockServerOptions.builder().build());
+    }
+
+    @Test
+    @SuppressWarnings("deprecation") // These are actual fields users might set that we still support...
+    public void existingOptionsCanBeDeserialized() throws IOException {
+        LockServerOptions lockServerOptions = LockServerOptions.builder()
+                .maxAllowedLockTimeout(SimpleTimeDuration.of(1, TimeUnit.MILLISECONDS))
+                .maxAllowedClockDrift(SimpleTimeDuration.of(2, TimeUnit.SECONDS))
+                .maxAllowedBlockingDuration(SimpleTimeDuration.of(3, TimeUnit.MINUTES))
+                .maxNormalLockAge(SimpleTimeDuration.of(4, TimeUnit.HOURS))
+                .randomBitCount(32)
+                .stuckTransactionTimeout(SimpleTimeDuration.of(5, TimeUnit.DAYS))
+                .slowLogTriggerMillis(12345)
+                .isStandaloneServer(false)
+                .build();
+
+        assertThat(clientMapper.readValue(LOCK_SERVER_OPTIONS_JSON, LockServerOptions.class))
+                .isEqualTo(lockServerOptions);
+        assertThat(serverMapper.readValue(LOCK_SERVER_OPTIONS_JSON, LockServerOptions.class))
+                .isEqualTo(lockServerOptions);
+    }
+
+    private void assertSerializationIsInverseOfDeserialization(LockServerOptions options)
+            throws JsonProcessingException {
+        String json = serverMapper.writeValueAsString(options);
+        assertThat(clientMapper.readValue(json, LockServerOptions.class)).isEqualTo(options);
+        assertThat(serverMapper.readValue(json, LockServerOptions.class)).isEqualTo(options);
+    }
+}u}(j (efe8f1aaad6365f7c6d18f7a187cf695d298d214j 4lock-api/src/test/resources/lock-server-options.jsonj addedj Kj K j Kj  https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.jsonj" https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.jsonj$ https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.json?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& Xa  @@ -0,0 +1 @@
+{"maxAllowedLockTimeout":{"time":1,"unit":"MILLISECONDS"},"maxAllowedClockDrift":{"time":2,"unit":"SECONDS"},"maxAllowedBlockingDuration":{"time":3,"unit":"MINUTES"},"maxNormalLockAge":{"time":4,"unit":"HOURS"},"randomBitCount":32,"stuckTransactionTimeout":{"time":5,"unit":"DAYS"},"slowLogTriggerMillis":12345,"isStandaloneServer":false}u}(j (bba9d63fbbe8164d0cd4c0489e523982076a1ba1j %scripts/circle-ci/run-circle-tests.shj modifiedj Kj Kj Kj  {https://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/scripts%2Fcircle-ci%2Frun-circle-tests.shj" zhttps://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/scripts%2Fcircle-ci%2Frun-circle-tests.shj$ https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& X  @@ -27,15 +27,15 @@ CONTAINER_6=(':timelock-server:suiteTest')
 
 CONTAINER_7=(':timelock-server:stressTest')
 
-CONTAINER_8=(':atlasdb-ete-tests:timeLockMigrationTest')
+CONTAINER_8=(':atlasdb-cassandra-integration-tests:testSubset2')
 
 CONTAINER_9=(':atlasdb-ete-tests:oracleTest')
 
 CONTAINER_10=('atlasdb-dbkvs-tests:oracleTest')
 
 CONTAINER_11=(':atlasdb-impl-shared:check' )
 
-CONTAINER_12=(':atlasdb-cassandra-integration-tests:testSubset2')
+CONTAINER_12=(':atlasdb-ete-tests:timeLockMigrationTest')
 
 CONTAINER_13=('compileJava' 'compileTestJava')
 
@@ -50,16 +50,18 @@ do
     CONTAINER_0_EXCLUDE_ARGS="$CONTAINER_0_EXCLUDE_ARGS -x $task"
 done
 
+test_suite_index=$1
+
 # Short circuit the build if it's docs only
 if ./scripts/circle-ci/check-only-docs-changes.sh; then
-    if [ $1 -eq 0 ]; then
+    if [ "$test_suite_index" -eq 0 ]; then
         checkDocsBuild
         exit $?
     fi
     exit 0
 fi
 
-if [ $1 -eq 9 ] || [ $1 -eq 10 ]; then
+if [ "$test_suite_index" -eq 9 ] || [ "$test_suite_index" -eq 10 ]; then
     printenv DOCKERHUB_PASSWORD | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
     # The oracle container is very large and takes a long time to pull.
     # If this image is not pulled here, the circle build usually times out.
@@ -71,7 +73,7 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
 # External builds have a 16gb limit.
-if [ "$1" -eq "13" ]; then
+if [ "$test_suite_index" -eq "13" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
@@ -80,7 +82,7 @@ fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64m
 
-case $1 in
+case "$test_suite_index" in
     0) ./gradlew $BASE_GRADLE_ARGS check $CONTAINER_0_EXCLUDE_ARGS -x :atlasdb-jepsen-tests:check;;
     1) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_1[@]} ;;
     2) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_2[@]} -x :atlasdb-ete-tests:longTest -x atlasdb-ete-tests:dbkvsTest -x :atlasdb-ete-tests:timeLockMigrationTest ;;u}(j (92b41a4f3220d1bdf849b4024cc98b1a38f996dej settings.gradlej modifiedj Kj K j Kj  ahttps://github.com/palantir/atlasdb/blob/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/settings.gradlej" `https://github.com/palantir/atlasdb/raw/a82cb1ff19d0b04d3c599534a72f22e4bfcb369d/settings.gradlej$ shttps://api.github.com/repos/palantir/atlasdb/contents/settings.gradle?ref=a82cb1ff19d0b04d3c599534a72f22e4bfcb369dj& @@ -6,6 +6,7 @@ rootProject.name = 'atlasdb'
 
 include ":atlasdb-api"
 include ":atlasdb-autobatch"
+include ":atlasdb-buggify"
 include ":atlasdb-cassandra"
 include ":atlasdb-cassandra-integration-tests"
 include ":atlasdb-cassandra-multinode-tests"ueu(d9d70d52896bb28a26ffb3cf4e54084e3e014a37}(sha(d9d70d52896bb28a26ffb3cf4e54084e3e014a37node_idEC_kwDOAjP5fdoAKGQ5ZDcwZDUyODk2YmIyOGEyNmZmYjNjZjRlNTQwODRlM2UwMTRhMzccommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-04-03T14:16:48Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-04-03T14:16:48ZumessageAutorelease 0.828.0

[skip ci]tree}(j (3ebf43a5a89b2b29ce4719d10c1588ee092996e3url`https://api.github.com/repos/palantir/atlasdb/git/trees/3ebf43a5a89b2b29ce4719d10c1588ee092996e3uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d9d70d52896bb28a26ffb3cf4e54084e3e014a37
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQq39cACgkQhbrR8ip7mDAQvwEAoavFLJ/wCEGVJ1xhIDZX2wip
SQnRKn5vrlEUIvzShVsA+wU4oGamBkJtUMoRHMii20cKLy6vFPn0ki8OGszjH23V
=eRF7
-----END PGP SIGNATURE-----
payloadX0  tree 3ebf43a5a89b2b29ce4719d10c1588ee092996e3
parent 1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1680531408 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1680531408 +0000

Autorelease 0.828.0

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/d9d70d52896bb28a26ffb3cf4e54084e3e014a37html_urlShttps://github.com/palantir/atlasdb/commit/d9d70d52896bb28a26ffb3cf4e54084e3e014a37comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d9d70d52896bb28a26ffb3cf4e54084e3e014a37/commentsj }(loginsvc-autoreleaseidJ(j MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj }(j
 svc-autoreleasej J(j MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj  1https://api.github.com/users/svc-autorelease/orgsj" 2https://api.github.com/users/svc-autorelease/reposj$ =https://api.github.com/users/svc-autorelease/events{/privacy}j& <https://api.github.com/users/svc-autorelease/received_eventsj( Userj* uparents]}(j (1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7j ^https://api.github.com/repos/palantir/atlasdb/commits/1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7j Shttps://github.com/palantir/atlasdb/commit/1ef52ee20ebffa3f67d3cc24cc78345c25e7b8b7uastats}(totalK 	additionsK 	deletionsK ufiles]}(j (d950412e3468eb3c6435b88c85e31c8234c831c5filename changelog/0.828.0/pr-6488.v2.ymlstatusrenamedjD K jE K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/d9d70d52896bb28a26ffb3cf4e54084e3e014a37/changelog%2F0.828.0%2Fpr-6488.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/d9d70d52896bb28a26ffb3cf4e54084e3e014a37/changelog%2F0.828.0%2Fpr-6488.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.828.0%2Fpr-6488.v2.yml?ref=d9d70d52896bb28a26ffb3cf4e54084e3e014a37previous_filename$changelog/@unreleased/pr-6488.v2.ymluau(2d3302e04df9f15bf77f64cd5155fa3aa1d3e0ef}(sha(2d3302e04df9f15bf77f64cd5155fa3aa1d3e0efnode_idEC_kwDOAjP5fdoAKDJkMzMwMmUwNGRmOWYxNWJmNzdmNjRjZDUxNTVmYTNhYTFkM2UwZWYcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-07-24T21:56:37Zu	committer}(ja GitHubjc noreply@github.comje 2023-07-24T21:56:37Zumessage$Fix TimeLockMigrationEteTest (#6685)tree}(jY (49ec966778e33b69ab891c221aade04b81cbcc76url`https://api.github.com/repos/palantir/atlasdb/git/trees/49ec966778e33b69ab891c221aade04b81cbcc76ujq bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0ef
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkvvOVCRBK7hj4Ov3rIwAAmXYIAFBTR3Ox7U/E4rOzgAwt7XcY
mmNHC2YnQg7WeyflEmGsEeYxy9IF+d5Q9fO5LRmaGHHsqvL11UAvw5Yg66P0+sXP
BdYhyC/ufyo9a1Lv6LbHF2pNHxI4ajY2qpl5z396Cla2yqMMnJ/X72Pv+7lEXO/c
vOoEAEjagfMu9LahA2l2JJtgL91DsfdKJSTcF1RfAG6BjzAOzxrPJOyBR0AX6SOL
8KtfAOMrGc7lca0jr5/iIKIr2f5M0EvWujf3U3J5d297pD+ZIxxfkoHY9mc1rfjY
3JKBEZRJIl6ngJ1K1w9T5FDr/ih8Wd3qLe6k5uJdWWLH13h6C4iSNEoiMipPkpE=
=1080
-----END PGP SIGNATURE-----
payloadtree 49ec966778e33b69ab891c221aade04b81cbcc76
parent 9fbe798096c9c15531e10bcd50b25f622037741a
author Patrick Koenig <pkoenig10@gmail.com> 1690235797 -0700
committer GitHub <noreply@github.com> 1690235797 +0000

Fix TimeLockMigrationEteTest (#6685)

 uujq ^https://api.github.com/repos/palantir/atlasdb/commits/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0efhtml_urlShttps://github.com/palantir/atlasdb/commit/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0efcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0ef/commentsj_ }(login	pkoenig10idJLvP j[ MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5jq &https://api.github.com/users/pkoenig10j https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminujg }(j web-flowj J/j[ MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5jq %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(jY (9fbe798096c9c15531e10bcd50b25f622037741ajq ^https://api.github.com/repos/palantir/atlasdb/commits/9fbe798096c9c15531e10bcd50b25f622037741aj Shttps://github.com/palantir/atlasdb/commit/9fbe798096c9c15531e10bcd50b25f622037741auastats}(totalK	additionsK	deletionsKufiles]}(jY (dfda65b5b3a490e801cb83c5985bf54d247aafc5filenameVatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/TimeLockMigrationEteTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0ef/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2d3302e04df9f15bf77f64cd5155fa3aa1d3e0ef/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FTimeLockMigrationEteTest.java?ref=2d3302e04df9f15bf77f64cd5155fa3aa1d3e0efpatchX  @@ -100,6 +100,7 @@ public class TimeLockMigrationEteTest {
             SslConfiguration.of(Paths.get("var/security/trustStore.jks"));
     public static final TrustContext TRUST_CONTEXT = SslSocketFactories.createTrustContext(SSL_CONFIGURATION);
 
+    private static final long ID = 1L;
     private static final Todo TODO = ImmutableTodo.of("some stuff to do");
     private static final Todo TODO_2 = ImmutableTodo.of("more stuff to do");
     private static final Todo TODO_3 = ImmutableTodo.of("even more stuff to do");
@@ -126,17 +127,14 @@ public static void setUp() {
     }
 
     @Test
-    public void automaticallyMigratesTimestampsAndFailsOnRestart() throws Exception {
-        TimestampService timestampClient = createEteClientFor(TimestampService.class);
+    public void automaticallyMigratesTimestampsAndFailsOnRestart() {
         TodoResource todoClient = createEteClientFor(TodoResource.class);
 
-        todoClient.addTodo(TODO);
+        long embeddedTimestamp = todoClient.addTodoWithIdAndReturnTimestamp(ID, TODO);
         softAssertions
                 .assertThat(todoClient.getTodoList())
                 .as("contains one todo pre-migration")
                 .contains(TODO);
-
-        long embeddedTimestamp = timestampClient.getFreshTimestamp();
         softAssertions
                 .assertThat(embeddedTimestamp)
                 .as("can get a timestamp before migration")uau(f5618cf8c97b49547f1c10ded81dd39de6564a58}(sha(f5618cf8c97b49547f1c10ded81dd39de6564a58node_idEC_kwDOAjP5fdoAKGY1NjE4Y2Y4Yzk3YjQ5NTQ3ZjFjMTBkZWQ4MWRkMzlkZTY1NjRhNTgcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-05-10T21:55:32Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-05-10T21:55:32ZumessageAutorelease 0.851.0

[skip ci]tree}(j (398b5fb5b3363488954d5b9e3b41778881de6c1aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/398b5fb5b3363488954d5b9e3b41778881de6c1auj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f5618cf8c97b49547f1c10ded81dd39de6564a58
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRcEtkACgkQhbrR8ip7mDBYXwEAngyGrVLbTTKaASIXmTkTCChY
GV70bmwEkiqj9wPuGfAA/2E/BTD/smn4dS0OPdK+yrVFPspb0rNcFPb/qa4QJXSn
=IvCu
-----END PGP SIGNATURE-----
payloadX0  tree 398b5fb5b3363488954d5b9e3b41778881de6c1a
parent 6c38c9955d96b2ea5eadabfac54229acf4246929
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1683755732 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1683755732 +0000

Autorelease 0.851.0

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/f5618cf8c97b49547f1c10ded81dd39de6564a58html_urlShttps://github.com/palantir/atlasdb/commit/f5618cf8c97b49547f1c10ded81dd39de6564a58comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f5618cf8c97b49547f1c10ded81dd39de6564a58/commentsj }(loginsvc-autoreleaseidJ(j MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(j MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j
 Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(j (6c38c9955d96b2ea5eadabfac54229acf4246929j ^https://api.github.com/repos/palantir/atlasdb/commits/6c38c9955d96b2ea5eadabfac54229acf4246929j Shttps://github.com/palantir/atlasdb/commit/6c38c9955d96b2ea5eadabfac54229acf4246929uastats}(totalK 	additionsK 	deletionsK ufiles]}(j (23134b9e8533848c590920b5b3a3ff99b19db234filename changelog/0.851.0/pr-6551.v2.ymlstatusrenamedj2 K j3 K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/f5618cf8c97b49547f1c10ded81dd39de6564a58/changelog%2F0.851.0%2Fpr-6551.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/f5618cf8c97b49547f1c10ded81dd39de6564a58/changelog%2F0.851.0%2Fpr-6551.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.851.0%2Fpr-6551.v2.yml?ref=f5618cf8c97b49547f1c10ded81dd39de6564a58previous_filename$changelog/@unreleased/pr-6551.v2.ymluau(192f4b6dc577a992ac70cdc64d2a62135d2aec9a}(sha(192f4b6dc577a992ac70cdc64d2a62135d2aec9anode_idEC_kwDOAjP5fdoAKDE5MmY0YjZkYzU3N2E5OTJhYzcwY2RjNjRkMmE2MjEzNWQyYWVjOWEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-06T18:06:59Zu	committer}(jO 
Sam KramerjQ skramer@palantir.comjS 2023-04-06T18:06:59Zumessagefix antithesis scripttree}(jG (d04d1d47d0eef933f2946b86ba8981d4537f9239url`https://api.github.com/repos/palantir/atlasdb/git/trees/d04d1d47d0eef933f2946b86ba8981d4537f9239uj_ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/192f4b6dc577a992ac70cdc64d2a62135d2aec9a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQvCkMACgkQmPPOpKR4
XS1yLggApg/xubdHaWKV/eApb3nuoWld0BYnGKdj57g5ZaTxXV21A1fQW3Cyg2Nd
L0SBATc4MZuRzFhhcutbtc2woEW6DhWbKZ/uGG2yaVqPmtP1xL0kO4N4wePIEK1d
PTIQddq39RvBvoASNBQ085lCXDXeC65LI5H4pXKAeJYYXeVcaHGI1xOQILOryOO5
LhbfuwzNr4ncwjzsDJOJ+0s+XstFhj8ldrLmxeR5Yr2I/rjcU+XaERmncQujIrmv
1Fqb70O4Y/9S8mDfnKqtQVt5d7AQ2NA8F65yfxVd0aA51CcRUxOkkZsHhyRYbQ3s
ht4cXf/qe5+plEqgOQhKH1UYrBtemw==
=RYc+
-----END PGP SIGNATURE-----payloadtree d04d1d47d0eef933f2946b86ba8981d4537f9239
parent 8b467ad037b64131e76cac81d375e860a142dcbf
author Sam Kramer <skramer@palantir.com> 1680804419 +0100
committer Sam Kramer <skramer@palantir.com> 1680804419 +0100

fix antithesis script
uuj_ ^https://api.github.com/repos/palantir/atlasdb/commits/192f4b6dc577a992ac70cdc64d2a62135d2aec9ahtml_urlShttps://github.com/palantir/atlasdb/commit/192f4b6dc577a992ac70cdc64d2a62135d2aec9acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/192f4b6dc577a992ac70cdc64d2a62135d2aec9a/commentsjM }(login
Sam-KrameridJ^2_ jI MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j_ 'https://api.github.com/users/Sam-Kramerjm https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujU }(jr 
Sam-Kramerjt J^2_ jI MDQ6VXNlcjYyMzg4MTQ=jv 3https://avatars.githubusercontent.com/u/6238814?v=4jx h5j_ 'https://api.github.com/users/Sam-Kramerjm https://github.com/Sam-Kramerj{ 1https://api.github.com/users/Sam-Kramer/followersj} >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jG (8b467ad037b64131e76cac81d375e860a142dcbfj_ ^https://api.github.com/repos/palantir/atlasdb/commits/8b467ad037b64131e76cac81d375e860a142dcbfjm Shttps://github.com/palantir/atlasdb/commit/8b467ad037b64131e76cac81d375e860a142dcbfuastats}(totalK	additionsK	deletionsKufiles]}(jG (577af56d07c46b2ba098705dc05a852ec616b335filename*scripts/circle-ci/publish-to-antithesis.shstatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/192f4b6dc577a992ac70cdc64d2a62135d2aec9a/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shraw_urlhttps://github.com/palantir/atlasdb/raw/192f4b6dc577a992ac70cdc64d2a62135d2aec9a/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=192f4b6dc577a992ac70cdc64d2a62135d2aec9apatchX  @@ -25,5 +25,5 @@ docker tag palantirtechnologies/atlasdb-workload-server-distribution:unspecified
 docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:unspecified
 
 LATEST_ANTITHESIS_TAG=$(docker image ls palantirtechnologies/atlasdb-workload-server-antithesis --format "{{.Tag}}")
-docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${LATEST_ANTITHESIS_TAG}
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${LATEST_ANTITHESIS_TAG}
\ No newline at end of file
+docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}
\ No newline at end of fileuau(75b40e96d6b1647f3a56252237eebafc96c11f56}(sha(75b40e96d6b1647f3a56252237eebafc96c11f56node_idEC_kwDOAjP5fdoAKDc1YjQwZTk2ZDZiMTY0N2YzYTU2MjUyMjM3ZWViYWZjOTZjMTFmNTYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-06T15:36:01Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-06-06T15:36:01ZumessageRow column range read APIstree}(j (21830e5e8f3dc16cd45d1f2df40baf8735c7b3beurl`https://api.github.com/repos/palantir/atlasdb/git/trees/21830e5e8f3dc16cd45d1f2df40baf8735c7b3beuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/75b40e96d6b1647f3a56252237eebafc96c11f56
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR/UmEACgkQTLdFKain
zjztTQgAsiV+KikrN6vdTZ3XMB/QSd1Poyn4yl4yy083WbcgbEhE8wZUSKZWjnP+
pP3umyVDMExDq8uq+fi43bv7j7RukAnkdu/MJCIZsGvRDQgStY6VNvAy2eD6Esdu
yvfBtVEIODbmY1lYCWN4R8nPrrDcompWaRmen6Yeb2yvYWKwqkvLtGTJR6Onvr1W
LF4ydwxFJ4ugCIyaobk3zzsUqlF2rkOsI5MaAtrOEZiHkkTuGQ4h4m8Q6LpK//2/
dk7X8bS5CLnoCcf6Ib8UKFU6Ap0FmzYwpUZfyXOZfjxez5bwoIVJnEBEpPjISG8y
lq7HSj8M4ZsmJSVC1tPSbidmO7/luQ==
=3832
-----END PGP SIGNATURE-----payloadtree 21830e5e8f3dc16cd45d1f2df40baf8735c7b3be
parent 989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4
author Jeremy Kong <jkong@palantir.com> 1686065761 +0100
committer Jeremy Kong <jkong@palantir.com> 1686065761 +0100

Row column range read APIs
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/75b40e96d6b1647f3a56252237eebafc96c11f56html_urlShttps://github.com/palantir/atlasdb/commit/75b40e96d6b1647f3a56252237eebafc96c11f56comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/75b40e96d6b1647f3a56252237eebafc96c11f56/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj  8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j (989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4j ^https://api.github.com/repos/palantir/atlasdb/commits/989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4j Shttps://github.com/palantir/atlasdb/commit/989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4uastats}(totalM	additionsM	deletionsK ufiles](}(j (8a9dd68a171bcb94d41b777979635f8a4cca5c99filenamematlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelection.javastatusaddedj  KBj! K changesKBblob_urlhttps://github.com/palantir/atlasdb/blob/75b40e96d6b1647f3a56252237eebafc96c11f56/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaraw_urlhttps://github.com/palantir/atlasdb/raw/75b40e96d6b1647f3a56252237eebafc96c11f56/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.java?ref=75b40e96d6b1647f3a56252237eebafc96c11f56patchXq	  @@ -0,0 +1,66 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.google.common.collect.Range;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ColumnRangeSelection {
+    Optional<Integer> startColumnInclusive();
+
+    Optional<Integer> endColumnExclusive();
+
+    default boolean contains(int column) {
+        return asGuavaRange().contains(column);
+    }
+
+    default Range<Integer> asGuavaRange() {
+        if (startColumnInclusive().isEmpty()) {
+            if (endColumnExclusive().isEmpty()) {
+                return Range.all();
+            } else {
+                return Range.lessThan(endColumnExclusive().get());
+            }
+        } else {
+            if (endColumnExclusive().isEmpty()) {
+                return Range.atLeast(startColumnInclusive().get());
+            } else {
+                return Range.closedOpen(
+                        startColumnInclusive().get(), endColumnExclusive().get());
+            }
+        }
+    }
+
+    @Value.Check
+    default void check() {
+        Preconditions.checkState(
+                startColumnInclusive().isEmpty()
+                        || endColumnExclusive().isEmpty()
+                        || startColumnInclusive().get() <= endColumnExclusive().get(),
+                "Start column must be less than or equal to end column",
+                SafeArg.of("startColumnInclusive", startColumnInclusive()),
+                SafeArg.of("endColumnExclusive", endColumnExclusive()));
+    }
+
+    static ImmutableColumnRangeSelection.Builder builder() {
+        return ImmutableColumnRangeSelection.builder();
+    }
+}u}(j (65fb61296ad207dc328fa26cc56fbd43a325b11ej& |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowColumnRangeReadTransactionAction.javaj( addedj  K2j! K j* K2j+ https://github.com/palantir/atlasdb/blob/75b40e96d6b1647f3a56252237eebafc96c11f56/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj- https://github.com/palantir/atlasdb/raw/75b40e96d6b1647f3a56252237eebafc96c11f56/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.java?ref=75b40e96d6b1647f3a56252237eebafc96c11f56j1 XH  @@ -0,0 +1,50 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import io.vavr.collection.Map;
+import org.immutables.value.Value;
+
+/**
+ * This transaction action models a column range read in AtlasDB ("getRowsColumnRange" in the AtlasDB API).
+ * <p>
+ * In the interest of implementation simplicity, two significant simplifications are made. Firstly, the action is
+ * presumed to act on a single row, though calls to getRowsColumnRange in practice can act on multiple rows in parallel.
+ * Secondly, values read from getRowsColumnRange are accessed through a live iterator, while for purposes of gathering
+ * a witness, we immediately drain the iterator and use the set of columns read as the witness to this action.
+ */
+@Value.Immutable
+public interface RowColumnRangeReadTransactionAction extends TransactionAction {
+    String table();
+
+    int row();
+
+    ColumnRangeSelection columnRangeSelection();
+
+    @Override
+    default <T> T accept(TransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    default WitnessedRowColumnRangeReadTransactionAction witness(Map<Integer, Integer> columnsAndValues) {
+        return WitnessedRowColumnRangeReadTransactionAction.builder()
+                .originalQuery(this)
+                .columnsAndValues(columnsAndValues)
+                .build();
+    }
+}u}(j (1625640516054c38d6886dbd91b10123cb0bb223j& qatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionActionVisitor.javaj( modifiedj  Kj! K j* Kj+ https://github.com/palantir/atlasdb/blob/75b40e96d6b1647f3a56252237eebafc96c11f56/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj- https://github.com/palantir/atlasdb/raw/75b40e96d6b1647f3a56252237eebafc96c11f56/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.java?ref=75b40e96d6b1647f3a56252237eebafc96c11f56j1 X  @@ -22,4 +22,6 @@ public interface TransactionActionVisitor<T> {
     T visit(WriteTransactionAction writeTransactionAction);
 
     T visit(DeleteTransactionAction deleteTransactionAction);
+
+    T visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction);
 }u}(j (5bf796c463599f96f8c633cb763ea4b38fa201c3j& atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javaj( addedj  K%j! K j* K%j+ https://github.com/palantir/atlasdb/blob/75b40e96d6b1647f3a56252237eebafc96c11f56/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj- https://github.com/palantir/atlasdb/raw/75b40e96d6b1647f3a56252237eebafc96c11f56/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj/ X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=75b40e96d6b1647f3a56252237eebafc96c11f56j1 X  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import io.vavr.collection.Map;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedTransactionAction {
+    RowColumnRangeReadTransactionAction originalQuery();
+
+    Map<Integer, Integer> columnsAndValues();
+
+    @Override
+    default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableWitnessedRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableWitnessedRowColumnRangeReadTransactionAction.builder();
+    }
+}u}(j (ca4d65c16390f51cc645a365e26e4c1c79a67e15j& atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionActionVisitor.javaj( modifiedj  Kj! K j* Kj+ https://github.com/palantir/atlasdb/blob/75b40e96d6b1647f3a56252237eebafc96c11f56/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj- https://github.com/palantir/atlasdb/raw/75b40e96d6b1647f3a56252237eebafc96c11f56/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.java?ref=75b40e96d6b1647f3a56252237eebafc96c11f56j1 X>  @@ -22,4 +22,6 @@ public interface WitnessedTransactionActionVisitor<T> {
     T visit(WitnessedWriteTransactionAction writeTransactionAction);
 
     T visit(WitnessedDeleteTransactionAction deleteTransactionAction);
+
+    T visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction);
 }u}(j (e023081417c4bca7cf9bb80aeeb71bd64bdf21a4j& qatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelectionTest.javaj( addedj  Kbj! K j* Kbj+ https://github.com/palantir/atlasdb/blob/75b40e96d6b1647f3a56252237eebafc96c11f56/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.javaj- https://github.com/palantir/atlasdb/raw/75b40e96d6b1647f3a56252237eebafc96c11f56/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.java?ref=75b40e96d6b1647f3a56252237eebafc96c11f56j1 X  @@ -0,0 +1,98 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.Optional;
+import org.junit.Test;
+
+public class ColumnRangeSelectionTest {
+    @Test
+    public void cannotCreateRangeWithStartColumnGreaterThanEndColumn() {
+        assertThatLoggableExceptionThrownBy(() -> ColumnRangeSelection.builder()
+                        .startColumnInclusive(5)
+                        .endColumnExclusive(4)
+                        .build())
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Start column must be less than or equal to end column")
+                .hasExactlyArgs(
+                        SafeArg.of("startColumnInclusive", Optional.of(5)),
+                        SafeArg.of("endColumnExclusive", Optional.of(4)));
+    }
+
+    @Test
+    public void emptyRangeDoesNotContainAnyElements() {
+        ColumnRangeSelection emptyRange = ColumnRangeSelection.builder()
+                .startColumnInclusive(6)
+                .endColumnExclusive(6)
+                .build();
+        assertThat(emptyRange.contains(5)).isFalse();
+        assertThat(emptyRange.contains(6)).isFalse();
+        assertThat(emptyRange.contains(7)).isFalse();
+        assertThat(emptyRange.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(emptyRange.contains(Integer.MAX_VALUE)).isFalse();
+    }
+
+    @Test
+    public void singleElementRangeContainsJustItself() {
+        ColumnRangeSelection justSeven = ColumnRangeSelection.builder()
+                .startColumnInclusive(7)
+                .endColumnExclusive(8)
+                .build();
+        assertThat(justSeven.contains(6)).isFalse();
+        assertThat(justSeven.contains(7)).isTrue();
+        assertThat(justSeven.contains(8)).isFalse();
+        assertThat(justSeven.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(justSeven.contains(Integer.MAX_VALUE)).isFalse();
+    }
+
+    @Test
+    public void universalRangeContainsEverything() {
+        ColumnRangeSelection universal = ColumnRangeSelection.builder().build();
+        assertThat(universal.contains(10241024)).isTrue();
+        assertThat(universal.contains(-20482048)).isTrue();
+        assertThat(universal.contains(40924092)).isTrue();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isTrue();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isTrue();
+    }
+
+    @Test
+    public void lowerBoundedRangesContainCorrectElements() {
+        ColumnRangeSelection universal =
+                ColumnRangeSelection.builder().startColumnInclusive(5).build();
+        assertThat(universal.contains(4)).isFalse();
+        assertThat(universal.contains(5)).isTrue();
+        assertThat(universal.contains(6)).isTrue();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isTrue();
+    }
+
+    @Test
+    public void upperBoundedRangesContainCorrectElements() {
+        ColumnRangeSelection universal =
+                ColumnRangeSelection.builder().endColumnExclusive(5).build();
+        assertThat(universal.contains(4)).isTrue();
+        assertThat(universal.contains(5)).isFalse();
+        assertThat(universal.contains(6)).isFalse();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isTrue();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isFalse();
+    }
+}u}(j (7f8015ae9aa8e1cda19fbbfa7a571ed881b71b56j& hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj( modifiedj  Kj! K j* Kj+ https://github.com/palantir/atlasdb/blob/75b40e96d6b1647f3a56252237eebafc96c11f56/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj- https://github.com/palantir/atlasdb/raw/75b40e96d6b1647f3a56252237eebafc96c11f56/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=75b40e96d6b1647f3a56252237eebafc96c11f56j1 X  @@ -23,6 +23,7 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -89,5 +90,12 @@ public Optional<InvalidWitnessedTransactionAction> visit(
             inMemoryTransactionReplayer.visit(deleteTransactionAction);
             return Optional.empty();
         }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+            // TODO (jkong): Not implemented yet
+            return Optional.empty();
+        }
     }
 }u}(j (077c0294a2f984f9f97dca7c4b24ef6de5bc6f16j& katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj( modifiedj  Kj! K j* Kj+ https://github.com/palantir/atlasdb/blob/75b40e96d6b1647f3a56252237eebafc96c11f56/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj- https://github.com/palantir/atlasdb/raw/75b40e96d6b1647f3a56252237eebafc96c11f56/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=75b40e96d6b1647f3a56252237eebafc96c11f56j1 X  @@ -23,6 +23,7 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.Map;
@@ -89,6 +90,13 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransact
         return invalidAction;
     }
 
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(
+            WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        // TODO (jkong): Not implemented yet
+        return Optional.empty();
+    }
+
     /**
      * Applies writes to both our read and latest table view.
      * Latest table view needs to be updated to apply our writes from our transaction,u}(j (53b40b5fe80de185e89ff3bfca0044e6f97e759dj& patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj( modifiedj  Kj! K j* Kj+ https://github.com/palantir/atlasdb/blob/75b40e96d6b1647f3a56252237eebafc96c11f56/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj- https://github.com/palantir/atlasdb/raw/75b40e96d6b1647f3a56252237eebafc96c11f56/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=75b40e96d6b1647f3a56252237eebafc96c11f56j1 X  @@ -20,6 +20,7 @@
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.HashMap;
@@ -55,6 +56,11 @@ public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         return null;
     }
 
+    @Override
+    public Void visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        return null;
+    }
+
     public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
         return values.getSnapshot();
     }u}(j (32db22149cce31693c0af4b33f0f275d03565d29j& katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javaj( modifiedj  Kj! K j* Kj+ https://github.com/palantir/atlasdb/blob/75b40e96d6b1647f3a56252237eebafc96c11f56/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj- https://github.com/palantir/atlasdb/raw/75b40e96d6b1647f3a56252237eebafc96c11f56/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=75b40e96d6b1647f3a56252237eebafc96c11f56j1 X  @@ -18,6 +18,7 @@
 
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 
@@ -39,4 +40,9 @@ public WriteTransactionAction visit(WitnessedWriteTransactionAction writeTransac
     public DeleteTransactionAction visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         return ImmutableDeleteTransactionAction.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
     }
+
+    @Override
+    public TransactionAction visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        return rowColumnRangeReadTransactionAction.originalQuery();
+    }
 }ueu(6e081f04521863ae0874fd2ba63760f3ef0f0d68}(sha(6e081f04521863ae0874fd2ba63760f3ef0f0d68node_idEC_kwDOAjP5fdoAKDZlMDgxZjA0NTIxODYzYWUwODc0ZmQyYmE2Mzc2MGYzZWYwZjBkNjgcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-04-11T10:33:00Zu	committer}(j GitHubj noreply@github.comj 2023-04-11T10:33:00Zumessagefix antithesis script (#6514)tree}(j} (d2ee8989d7b6d099b620d3483db94ff76a8def3burl`https://api.github.com/repos/palantir/atlasdb/git/trees/d2ee8989d7b6d099b620d3483db94ff76a8def3buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6e081f04521863ae0874fd2ba63760f3ef0f0d68
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkNTdcCRBK7hj4Ov3rIwAAM+MIAGKmiDocNTE2YO/r3u3B6yQa
UtHzOjN8pMeOFGGF+b3NlO/ZzGOIpgaMwle2gdF55gKDKDb/hqxgF+TaDdcSyqZk
PRNxgTmR3mhykaUrovUzB6vt7a83jdYDwWNW/+Wag9V9KIeBfOmIFjHz6GDL1Ffh
s1Hnh+Bln5EMkrjEON/q5km17K16KrVuJh2fwOM/o8W0jmkcp3UAxlk1La304sky
ZlyiEBsRsym9sRAgML0Z+cxnKB0hztMzicNrkQ8mNVrCEP1e6JSdw/ZMwphNevvU
5Xkq38plBGmnW6ZgCCm4r1qVR3EqSFrqi+HywWsujk+SCDC0F1xYLVQQyj/AOhI=
=Ga4r
-----END PGP SIGNATURE-----
payloadtree d2ee8989d7b6d099b620d3483db94ff76a8def3b
parent f543584dc5a49d081d16f535500baff12f56075e
author Sam-Kramer <sam.c.kramer@gmail.com> 1681209180 +0100
committer GitHub <noreply@github.com> 1681209180 +0000

fix antithesis script (#6514)

 uuj ^https://api.github.com/repos/palantir/atlasdb/commits/6e081f04521863ae0874fd2ba63760f3ef0f0d68html_urlShttps://github.com/palantir/atlasdb/commit/6e081f04521863ae0874fd2ba63760f3ef0f0d68comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6e081f04521863ae0874fd2ba63760f3ef0f0d68/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j} (f543584dc5a49d081d16f535500baff12f56075ej ^https://api.github.com/repos/palantir/atlasdb/commits/f543584dc5a49d081d16f535500baff12f56075ej Shttps://github.com/palantir/atlasdb/commit/f543584dc5a49d081d16f535500baff12f56075euastats}(totalK	additionsK	deletionsKufiles]}(j} (577af56d07c46b2ba098705dc05a852ec616b335filename*scripts/circle-ci/publish-to-antithesis.shstatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/6e081f04521863ae0874fd2ba63760f3ef0f0d68/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shraw_urlhttps://github.com/palantir/atlasdb/raw/6e081f04521863ae0874fd2ba63760f3ef0f0d68/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=6e081f04521863ae0874fd2ba63760f3ef0f0d68patchX  @@ -25,5 +25,5 @@ docker tag palantirtechnologies/atlasdb-workload-server-distribution:unspecified
 docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:unspecified
 
 LATEST_ANTITHESIS_TAG=$(docker image ls palantirtechnologies/atlasdb-workload-server-antithesis --format "{{.Tag}}")
-docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${LATEST_ANTITHESIS_TAG}
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${LATEST_ANTITHESIS_TAG}
\ No newline at end of file
+docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}
\ No newline at end of fileuau(70b82e859d6edee9d22fe55a51beef27149755cb}(sha(70b82e859d6edee9d22fe55a51beef27149755cbnode_idEC_kwDOAjP5fdoAKDcwYjgyZTg1OWQ2ZWRlZTlkMjJmZTU1YTUxYmVlZjI3MTQ5NzU1Y2Icommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-06-26T03:08:15Zu	committer}(j David Schlosnaglej davids@palantir.comj  2023-06-26T03:08:15Zumessage Remove intermediate ImmutableMaptree}(j (67e3943eff959beddcbcbf01cc55eecc40555642url`https://api.github.com/repos/palantir/atlasdb/git/trees/67e3943eff959beddcbcbf01cc55eecc40555642uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/70b82e859d6edee9d22fe55a51beef27149755cb
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmSZASAACgkQR9hsJ74Q
0l8XjQgAqvWFhMOo+NrY5LwApnJ/X59CL9iSSuhwyXCA8A0uoACNyZUw3Fuiu+rN
59H2OvYu9C29vcRq0kv/QAXjA+zncwPUr+EfsF1XanfWUtV/YeNFqNL/7iRB5ORd
5cPC2Ol23568ZePRgAYwRpq4QnrcYnloBMUTbPnc1M76Qkerut32mjKd4bgAlVIH
oUCkZQPhxF8JlXAy52g7EbWSE6hQF0iB0fNS24hWVAjIepVotfWEgYo+95nxmQZY
aRk/whRo+mnfmDiZOHYf7hb3wVU90NZXKRUqNdSotQnjUI3RsfM5eNUbxLg9Cmzz
pb7vStQhO7RkaTGW+8i5opU2o5pyvQ==
=sqO4
-----END PGP SIGNATURE-----payloadX  tree 67e3943eff959beddcbcbf01cc55eecc40555642
parent 9a3a2dcaf88b0ddb90eed64661bb4d16142978d2
author David Schlosnagle <davids@palantir.com> 1687748895 -0400
committer David Schlosnagle <davids@palantir.com> 1687748895 -0400

Remove intermediate ImmutableMap
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/70b82e859d6edee9d22fe55a51beef27149755cbhtml_urlShttps://github.com/palantir/atlasdb/commit/70b82e859d6edee9d22fe55a51beef27149755cbcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/70b82e859d6edee9d22fe55a51beef27149755cb/commentsj }(loginschlosnaidMBj MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j %https://api.github.com/users/schlosnaj https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj }(j schlosnaj! MBj MDQ6VXNlcjU0NTk0j# 1https://avatars.githubusercontent.com/u/54594?v=4j% h5j %https://api.github.com/users/schlosnaj https://github.com/schlosnaj( /https://api.github.com/users/schlosna/followersj* <https://api.github.com/users/schlosna/following{/other_user}j, 5https://api.github.com/users/schlosna/gists{/gist_id}j. <https://api.github.com/users/schlosna/starred{/owner}{/repo}j0 3https://api.github.com/users/schlosna/subscriptionsm      j2 *https://api.github.com/users/schlosna/orgsj4 +https://api.github.com/users/schlosna/reposj6 6https://api.github.com/users/schlosna/events{/privacy}j8 5https://api.github.com/users/schlosna/received_eventsj: Userj< uparents]}(j (9a3a2dcaf88b0ddb90eed64661bb4d16142978d2j ^https://api.github.com/repos/palantir/atlasdb/commits/9a3a2dcaf88b0ddb90eed64661bb4d16142978d2j Shttps://github.com/palantir/atlasdb/commit/9a3a2dcaf88b0ddb90eed64661bb4d16142978d2uastats}(totalK	additionsK	deletionsKufiles]}(j (605103a11942c0e2de2a8ece96d105f2ef775e5afilenamebatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javastatusmodifiedjV KjW KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/70b82e859d6edee9d22fe55a51beef27149755cb/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/70b82e859d6edee9d22fe55a51beef27149755cb/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=70b82e859d6edee9d22fe55a51beef27149755cbpatchX  @@ -149,16 +149,16 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
             } else { // normal case, large cluster with many vnodes
                 for (TokenRange tokenRange : tokenRanges) {
                     List<EndpointDetails> endpointDetails = tokenRange.getEndpoint_details();
-                    ImmutableMap.Builder<CassandraServer, String> builder =
-                            ImmutableMap.builderWithExpectedSize(endpointDetails.size());
+                    ImmutableSet.Builder<CassandraServer> hostsBuilder =
+                            ImmutableSet.builderWithExpectedSize(endpointDetails.size());
                     for (EndpointDetails endpoint : endpointDetails) {
-                        builder.put(getAddressForHostThrowUnchecked(endpoint.getHost()), endpoint.getDatacenter());
+                        CassandraServer cassandraServer = getAddressForHostThrowUnchecked(endpoint.getHost());
+                        hostToDatacentersThisRefresh.put(cassandraServer, endpoint.getDatacenter());
+                        hostsBuilder.add(cassandraServer);
+                        servers.add(cassandraServer);
                     }
-                    ImmutableMap<CassandraServer, String> hostToDatacentersOnThisTokenRange = builder.build();
-                    ImmutableSet<CassandraServer> hosts = hostToDatacentersOnThisTokenRange.keySet();
-                    servers.addAll(hosts);
-                    hostToDatacentersThisRefresh.putAll(hostToDatacentersOnThisTokenRange);
 
+                    ImmutableSet<CassandraServer> hosts = hostsBuilder.build();
                     LightweightOppToken startToken = LightweightOppToken.fromHex(tokenRange.getStart_token());
                     LightweightOppToken endToken = LightweightOppToken.fromHex(tokenRange.getEnd_token());
                     if (startToken.compareTo(endToken) <= 0) {uau(ee89de1fc94f739690d75f4607d1fed58fd6b373}(sha(ee89de1fc94f739690d75f4607d1fed58fd6b373node_idEC_kwDOAjP5fdoAKGVlODlkZTFmYzk0ZjczOTY5MGQ3NWY0NjA3ZDFmZWQ1OGZkNmIzNzMcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-08-08T11:24:45Zu	committer}(js GitHubju noreply@github.comjw 2023-08-08T11:24:45ZumessageUpdate atlasdb-commons/src/main/java/com/palantir/leader/MaybeNotCurrentLeaderException.java

Co-authored-by: David Schlosnagle <davids@palantir.com>tree}(jk (6d2bf28b3e93fc075b2546056e0c4907617cfab5url`https://api.github.com/repos/palantir/atlasdb/git/trees/6d2bf28b3e93fc075b2546056e0c4907617cfab5uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ee89de1fc94f739690d75f4607d1fed58fd6b373
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk0iX9CRBK7hj4Ov3rIwAAYSYIAChjTcE6wZPtBfEmgulzL1nx
2JhNKzO3yPMRA2d+3pOTgdue9CMyptjm4KmB6uZy5mOHtSGioCoOk1Tb/X0npTtW
NZDBfk38oofwf7jn5dA+81BrQQzDn43TTtFn+XRIGnuDK3jvlQcz4lfRprzCEX8y
ZVbDGW05KjCJg9/1PmPVIa1M0Eof7dcTX5CyTLjP3C7CImPkca84aMuQgwKQR24P
58hni7WTWjK5bHnXaL50y4HuE1EiUGc/TUg+PIYCT5QC2Tc8rFaxlumfJMueCLju
wQ4QijxvQ/ZZYnDV2EX0nsMWPo4y/CsPZpuctoGpPnZTjvmdDqbDOKMRJ/xMoug=
=+Iw9
-----END PGP SIGNATURE-----
payloadXg  tree 6d2bf28b3e93fc075b2546056e0c4907617cfab5
parent f392ec2dbef414a4c90f416b777f13ed7d07d10d
author Sam-Kramer <sam.c.kramer@gmail.com> 1691493885 +0100
committer GitHub <noreply@github.com> 1691493885 +0100

Update atlasdb-commons/src/main/java/com/palantir/leader/MaybeNotCurrentLeaderException.java

Co-authored-by: David Schlosnagle <davids@palantir.com>uuj ^https://api.github.com/repos/palantir/atlasdb/commits/ee89de1fc94f739690d75f4607d1fed58fd6b373html_urlShttps://github.com/palantir/atlasdb/commit/ee89de1fc94f739690d75f4607d1fed58fd6b373comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ee89de1fc94f739690d75f4607d1fed58fd6b373/commentsjq }(login
Sam-KrameridJ^2_ jm MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujy }(j web-flowj J/jm MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(jk (f392ec2dbef414a4c90f416b777f13ed7d07d10dj ^https://api.github.com/repos/palantir/atlasdb/commits/f392ec2dbef414a4c90f416b777f13ed7d07d10dj Shttps://github.com/palantir/atlasdb/commit/f392ec2dbef414a4c90f416b777f13ed7d07d10duastats}(totalK	additionsK	deletionsKufiles]}(jk (123aeadcc931cb100fbdbb692230e20ca78eb63bfilenameUatlasdb-commons/src/main/java/com/palantir/leader/MaybeNotCurrentLeaderException.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ee89de1fc94f739690d75f4607d1fed58fd6b373/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2FMaybeNotCurrentLeaderException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ee89de1fc94f739690d75f4607d1fed58fd6b373/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2FMaybeNotCurrentLeaderException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2FMaybeNotCurrentLeaderException.java?ref=ee89de1fc94f739690d75f4607d1fed58fd6b373patchXz  @@ -30,7 +30,7 @@
 public final class MaybeNotCurrentLeaderException extends NotCurrentLeaderException implements SafeLoggable {
 
     private final String message;
-    private final List<Arg<?>> args;
+    private final ImmutableList<Arg<?>> args;
 
     public MaybeNotCurrentLeaderException(@CompileTimeConstant String message, List<Arg<?>> args) {
         super(message);uau(cff4e026530a55040e59bf34afc47bb4978c2750}(sha(cff4e026530a55040e59bf34afc47bb4978c2750node_idEC_kwDOAjP5fdoAKGNmZjRlMDI2NTMwYTU1MDQwZTU5YmYzNGFmYzQ3YmI0OTc4YzI3NTAcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-21T10:13:08Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-06-21T10:13:08Zumessageshorter and more generic nametree}(j (cdb93f95e8ab7760a752fc7cef8bf0d7bd257a2eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/cdb93f95e8ab7760a752fc7cef8bf0d7bd257a2euj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cff4e026530a55040e59bf34afc47bb4978c2750
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSSzTQACgkQJd22kJ7J
GiyYMggAkJOB82q1i6nz4LHharzDtTrX+NMFk95GaFMGGJT8ZqFIGJhhoPwhVgt8
dnK/tb7ZVYwZx132ABnOGCwkvgT1A9LMNWQdBRw8PjBjGzE0h6JZyXmwf2IPbyu3
YPlDok6Pu+o6UqNDtG1HWF2wocOaEi7DORAJqZ4llIDU5gtHXHCuH505/v0r4bOt
7kEp+dR8qr1PcAbtfYyICy2UUPNaFVxpt5Qcg3qxUlDCj8oMhU/78OuBTFAlyq5p
xt6dG+T95OcKifYem64H0HqLLuOPo0QxwK05xvY/NedsCePCpbyiivFbbDFyC3Um
/7QSOupqoFrpQgKZgzPlQhZnLdDwmg==
=5utH
-----END PGP SIGNATURE-----payloadtree cdb93f95e8ab7760a752fc7cef8bf0d7bd257a2e
parent 9aac005ef1effc27a431da057d341710cfc27515
author Lucas Meireles <meireles31@msn.com> 1687342388 +0100
committer Lucas Meireles <meireles31@msn.com> 1687342388 +0100

shorter and more generic name
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/cff4e026530a55040e59bf34afc47bb4978c2750html_urlShttps://github.com/palantir/atlasdb/commit/cff4e026530a55040e59bf34afc47bb4978c2750comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cff4e026530a55040e59bf34afc47bb4978c2750/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j
 LucasIMEj Jg j MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj  *https://api.github.com/users/LucasIME/orgsj" +https://api.github.com/users/LucasIME/reposj$ 6https://api.github.com/users/LucasIME/events{/privacy}j& 5https://api.github.com/users/LucasIME/received_eventsj( Userj* uparents]}(j (9aac005ef1effc27a431da057d341710cfc27515j ^https://api.github.com/repos/palantir/atlasdb/commits/9aac005ef1effc27a431da057d341710cfc27515j Shttps://github.com/palantir/atlasdb/commit/9aac005ef1effc27a431da057d341710cfc27515uastats}(totalK	additionsK	deletionsKufiles]}(j (5a6edfd0fb134a47aaae47f61bad602c5b8c2ba8filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedjD KjE KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/cff4e026530a55040e59bf34afc47bb4978c2750/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/cff4e026530a55040e59bf34afc47bb4978c2750/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=cff4e026530a55040e59bf34afc47bb4978c2750patchXW  @@ -269,7 +269,10 @@ private enum State {
     private final ExpectationsMetrics expectationsDataCollectionMetrics;
 
     protected volatile boolean hasReads;
-    protected volatile boolean hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound;
+
+    // On thoroughly swept tables, we might require a immutable timestamp lock check if we have performed a
+    // non-exhaustive read.
+    protected volatile boolean hasPossiblyUnvalidatedReads;
 
     protected final TimestampCache timestampCache;
 
@@ -334,7 +337,7 @@ private enum State {
         this.sweepQueue = sweepQueue;
         this.deleteExecutor = deleteExecutor;
         this.hasReads = false;
-        this.hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = false;
+        this.hasPossiblyUnvalidatedReads = false;
         this.transactionOutcomeMetrics = TransactionOutcomeMetrics.create(metricsManager);
         this.validateLocksOnReads = validateLocksOnReads;
         this.transactionConfig = transactionConfig;
@@ -1185,7 +1188,7 @@ private void validatePreCommitRequirementsOnReadIfNecessary(
         if (isValidationNecessaryOnReads(tableRef, allPossibleCellsReadAndNonEmpty)) {
             throwIfPreCommitRequirementsNotMet(null, timestamp);
         } else if (!allPossibleCellsReadAndNonEmpty) {
-            hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
+            hasPossiblyUnvalidatedReads = true;
         }
     }
 
@@ -2638,8 +2641,7 @@ private boolean hasAnyInvolvedTables() {
 
     private boolean validationNecessaryForInvolvedTablesOnCommit() {
         boolean anyTableRequiresImmutableTimestampLocking = involvedTables.stream()
-                .anyMatch(tableRef -> requiresImmutableTimestampLocking(
-                        tableRef, !hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound));
+                .anyMatch(tableRef -> requiresImmutableTimestampLocking(tableRef, !hasPossiblyUnvalidatedReads));
         boolean needsToValidate = !validateLocksOnReads || !hasReads();
         return anyTableRequiresImmutableTimestampLocking && needsToValidate;
     }uau(5d661bf17972eae792be394ccb7f68fa605809bf}(sha(5d661bf17972eae792be394ccb7f68fa605809bfnode_idEC_kwDOAjP5fdoAKDVkNjYxYmYxNzk3MmVhZTc5MmJlMzk0Y2NiN2Y2OGZhNjA1ODA5YmYcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-08-07T11:04:33Zu	committer}(ja 	Tom Papkejc tpapke@palantir.comje 2023-08-07T11:04:33ZumessageAddress nitstree}(jY (92deda88cc36f9bc9a9316d915a5d8f0d6b07668url`https://api.github.com/repos/palantir/atlasdb/git/trees/92deda88cc36f9bc9a9316d915a5d8f0d6b07668ujq bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5d661bf17972eae792be394ccb7f68fa605809bf
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTQz8EACgkQmF9s0kaF
Iw30twf+NZImiZBgxlZ11aJoIzxBEPAngECKhPw/LSjBVSITG8oN1sOYQNO6yQ7S
Yo1QXJbu0B8xBrs50Lrb6+XBhokLHcT6HmxEhvqWiaXQKDp63dW6OyEG0P7RlOgp
9kKBqEzHz+4fSjsYBn6CsSLQyFVDNPs3Faq9zS+4mGClFYuLxdiCcEJYOOokgBix
+WO16MbJsavgn0zTlpJsVD8qrwrd4cnK7pW52og9AF24enrm3286OV3OUsOFDbSX
ltM8pEyTCd7HroRa/C18GQDmGY7Tgtgqsvx4rU3KvivJfu+dcSNZHTd7b/2R4KMy
9s0aYde1KS5NiM8fqPIzSGE0ralgEw==
=m5sh
-----END PGP SIGNATURE-----payloadtree 92deda88cc36f9bc9a9316d915a5d8f0d6b07668
parent 3b3d24bf967aeef4c6ed4b9d15841f137ae861e3
author Tom Papke <tpapke@palantir.com> 1691406273 +0100
committer Tom Papke <tpapke@palantir.com> 1691406273 +0100

Address nits
uujq ^https://api.github.com/repos/palantir/atlasdb/commits/5d661bf17972eae792be394ccb7f68fa605809bfhtml_urlShttps://github.com/palantir/atlasdb/commit/5d661bf17972eae792be394ccb7f68fa605809bfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5d661bf17972eae792be394ccb7f68fa605809bf/commentsj_ }(login	ToemmscheidJboj[ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jq &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujg }(j 	Toemmschej Jboj[ MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5jq &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(jY (3b3d24bf967aeef4c6ed4b9d15841f137ae861e3jq ^https://api.github.com/repos/palantir/atlasdb/commits/3b3d24bf967aeef4c6ed4b9d15841f137ae861e3j Shttps://github.com/palantir/atlasdb/commit/3b3d24bf967aeef4c6ed4b9d15841f137ae861e3uastats}(totalK5	additionsK#	deletionsKufiles](}(jY (a197605a5a01db4d3be14b4a17059f1a9b765d34filename]atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/LocalWriteBuffer.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5d661bf17972eae792be394ccb7f68fa605809bf/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBuffer.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5d661bf17972eae792be394ccb7f68fa605809bf/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBuffer.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBuffer.java?ref=5d661bf17972eae792be394ccb7f68fa605809bfpatchXN  @@ -22,6 +22,7 @@
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.impl.Cells;
+import com.palantir.atlasdb.logging.LoggingArgs;
 import com.palantir.lock.watch.ChangeMetadata;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
@@ -86,7 +87,7 @@ public void putLocalWritesAndMetadata(
             Set<Cell> cellsWithOnlyMetadata = Sets.difference(metadata.keySet(), values.keySet());
             throw new SafeIllegalStateException(
                     "Every metadata we put must be associated with a write",
-                    UnsafeArg.of("tableRef", tableRef),
+                    LoggingArgs.tableRef(tableRef),
                     UnsafeArg.of("cellsWithOnlyMetadata", cellsWithOnlyMetadata));
         }
     }u}(jY (af1646a03fdc092457f641a230ecb3296a63d5b5j `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/5d661bf17972eae792be394ccb7f68fa605809bf/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://github.com/palantir/atlasdb/raw/5d661bf17972eae792be394ccb7f68fa605809bf/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=5d661bf17972eae792be394ccb7f68fa605809bfj X  @@ -2608,7 +2608,7 @@ private Long collectRowLocks(
                 if (lastRowWithMetadata.isPresent() && isSameRow(lastRowWithMetadata.get(), cell.getRowName())) {
                     throw new SafeIllegalStateException(
                             "Two different cells in the same row have metadata and we create locks on row level.",
-                            UnsafeArg.of("tableRef", tableRef),
+                            LoggingArgs.tableRef(tableRef),
                             UnsafeArg.of("rowName", cell.getRowName()),
                             UnsafeArg.of("newMetadata", changeMetadataForWrites.get(cell)));
                 }u}(jY (8b2bf3a24fbb50992f7be5755bbda2b73be4481aj eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj modifiedj K j Kj K0j https://github.com/palantir/atlasdb/blob/5d661bf17972eae792be394ccb7f68fa605809bf/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://github.com/palantir/atlasdb/raw/5d661bf17972eae792be394ccb7f68fa605809bf/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=5d661bf17972eae792be394ccb7f68fa605809bfj X  @@ -337,10 +337,10 @@ public void cleanup() {}
 
     private static final byte[] TEST_VALUE = PtBytes.toBytes("value");
 
-    private static final ChangeMetadata TEST_METADATA =
+    private static final ChangeMetadata UPDATE_CHANGE_METADATA =
             ChangeMetadata.updated(PtBytes.toBytes("abc"), PtBytes.toBytes("def"));
-    private static final ChangeMetadata TEST_METADATA_2 = ChangeMetadata.deleted(PtBytes.toBytes("old"));
-    private static final ChangeMetadata TEST_METADATA_3 = ChangeMetadata.unchanged();
+    private static final ChangeMetadata DELETE_CHANGE_METADATA = ChangeMetadata.deleted(PtBytes.toBytes("old"));
+    private static final ChangeMetadata UNCHANGED_CHANGE_METADATA = ChangeMetadata.unchanged();
 
     @Override
     @Before
@@ -2574,10 +2574,12 @@ public void metadataIsTransferredToCellLocks() {
                         TABLE2,
                         Optional.of(ConflictHandler.SERIALIZABLE_CELL)));
 
-        txn.putWithMetadata(TABLE, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, TEST_METADATA)));
         txn.putWithMetadata(
-                TABLE, ImmutableMap.of(TEST_CELL_2, ValueAndChangeMetadata.of(TEST_VALUE, TEST_METADATA_2)));
-        txn.putWithMetadata(TABLE2, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, TEST_METADATA_3)));
+                TABLE, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA)));
+        txn.putWithMetadata(
+                TABLE, ImmutableMap.of(TEST_CELL_2, ValueAndChangeMetadata.of(TEST_VALUE, DELETE_CHANGE_METADATA)));
+        txn.putWithMetadata(
+                TABLE2, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, UNCHANGED_CHANGE_METADATA)));
 
         LockDescriptor cellLock =
                 AtlasCellLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL.getRowName(), TEST_CELL.getColumnName());
@@ -2589,7 +2591,12 @@ public void metadataIsTransferredToCellLocks() {
                 txn,
                 timelockService,
                 Optional.of(LockRequestMetadata.of(ImmutableMap.of(
-                        cellLock, TEST_METADATA, cellLock2, TEST_METADATA_2, cellLock3, TEST_METADATA_3))));
+                        cellLock,
+                        UPDATE_CHANGE_METADATA,
+                        cellLock2,
+                        DELETE_CHANGE_METADATA,
+                        cellLock3,
+                        UNCHANGED_CHANGE_METADATA))));
     }
 
     @Test
@@ -2604,10 +2611,12 @@ public void metadataIsTransferredToRowLocks() {
                         TABLE2,
                         Optional.of(ConflictHandler.SERIALIZABLE)));
 
-        txn.putWithMetadata(TABLE, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, TEST_METADATA)));
         txn.putWithMetadata(
-                TABLE, ImmutableMap.of(TEST_CELL_2, ValueAndChangeMetadata.of(TEST_VALUE, TEST_METADATA_2)));
-        txn.putWithMetadata(TABLE2, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, TEST_METADATA_3)));
+                TABLE, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA)));
+        txn.putWithMetadata(
+                TABLE, ImmutableMap.of(TEST_CELL_2, ValueAndChangeMetadata.of(TEST_VALUE, DELETE_CHANGE_METADATA)));
+        txn.putWithMetadata(
+                TABLE2, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, UNCHANGED_CHANGE_METADATA)));
 
         LockDescriptor rowLock = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL.getRowName());
         LockDescriptor rowLock2 = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL_2.getRowName());
@@ -2616,7 +2625,12 @@ public void metadataIsTransferredToRowLocks() {
                 txn,
                 timelockService,
                 Optional.of(LockRequestMetadata.of(ImmutableMap.of(
-                        rowLock, TEST_METADATA, rowLock2, TEST_METADATA_2, rowLock3, TEST_METADATA_3))));
+                        rowLock,
+                        UPDATE_CHANGE_METADATA,
+                        rowLock2,
+                        DELETE_CHANGE_METADATA,
+                        rowLock3,
+                        UNCHANGED_CHANGE_METADATA))));
     }
 
     @Test
@@ -2627,15 +2641,17 @@ public void metadataCanBeTransferredToCellAndRowLocksSimultaneously() {
                 timelockService,
                 ImmutableMap.of(TABLE, Optional.of(ConflictHandler.SERIALIZABLE_LOCK_LEVEL_MIGRATION)));
 
-        txn.putWithMetadata(TABLE, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, TEST_METADATA)));
+        txn.putWithMetadata(
+                TABLE, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA)));
 
         LockDescriptor rowLock = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL.getRowName());
         LockDescriptor cellLock =
                 AtlasCellLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL.getRowName(), TEST_CELL.getColumnName());
         verifyLockWasCalledWithMetadataWhenCommitting(
                 txn,
                 timelockService,
-                Optional.of(LockRequestMetadata.of(ImmutableMap.of(rowLock, TEST_METADATA, cellLock, TEST_METADATA))));
+                Optional.of(LockRequestMetadata.of(
+                        ImmutableMap.of(rowLock, UPDATE_CHANGE_METADATA, cellLock, UPDATE_CHANGE_METADATA))));
     }
 
     @Test
@@ -2657,17 +2673,17 @@ public void commitFailsIfMultipleCellsInSameRowHaveMetadataAndUsingRowLocks() {
                 TABLE,
                 ImmutableMap.of(
                         cell1,
-                        ValueAndChangeMetadata.of(TEST_VALUE, TEST_METADATA),
+                        ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA),
                         cell2,
-                        ValueAndChangeMetadata.of(TEST_VALUE, TEST_METADATA)));
+                        ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA)));
 
         assertThatLoggableExceptionThrownBy(txn::commit)
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasLogMessage("Two different cells in the same row have metadata and we create locks on row level.")
                 .hasExactlyArgs(
                         UnsafeArg.of("tableRef", TABLE),
                         UnsafeArg.of("rowName", cell1.getRowName()),
-                        UnsafeArg.of("newMetadata", TEST_METADATA));
+                        UnsafeArg.of("newMetadata", UPDATE_CHANGE_METADATA));
     }
 
     private void verifyPrefetchValidations(ueu(d9738d00eaf0654e3bf41c613179210a85abfa25}(sha(d9738d00eaf0654e3bf41c613179210a85abfa25node_idEC_kwDOAjP5fdoAKGQ5NzM4ZDAwZWFmMDY1NGUzYmY0MWM2MTMxNzkyMTBhODVhYmZhMjUcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-03-08T10:26:33Zu	committer}(j 
svc-changelogj svc-changelog@palantir.comj 2023-03-08T10:26:33ZumessageAdd generated changelog entriestree}(j (45b527ac74a02b74db8ef67835107fa7ad14b1f4url`https://api.github.com/repos/palantir/atlasdb/git/trees/45b527ac74a02b74db8ef67835107fa7ad14b1f4uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d9738d00eaf0654e3bf41c613179210a85abfa25
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQIYtkJEHYaJX37fAFQAAD60wEA0OY1ehKycuVuaTZPzpLMLCQt
JmCvk+bgIF2YDTKqiV0BAKnwiTquccrHTdgr45Jv9ekT2MKWG1Ti06iTwwaOwJ5v
=hQBh
-----END PGP SIGNATURE-----payloadX  tree 45b527ac74a02b74db8ef67835107fa7ad14b1f4
parent 764d1e6f28dd53e42d95e542aff809adaf8110e8
author svc-changelog <svc-changelog@palantir.com> 1678271193 +0000
committer svc-changelog <svc-changelog@palantir.com> 1678271193 +0000

Add generated changelog entriesuuj ^https://api.github.com/repos/palantir/atlasdb/commits/d9738d00eaf0654e3bf41c613179210a85abfa25html_urlShttps://github.com/palantir/atlasdb/commit/d9738d00eaf0654e3bf41c613179210a85abfa25comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d9738d00eaf0654e3bf41c613179210a85abfa25/commentsj }(login
svc-changelogidJ#j MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj }(j 
svc-changelogj
 J#j MDQ6VXNlcjg0MDc3NjAzj 4https://avatars.githubusercontent.com/u/84077603?v=4j h5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelogj 4https://api.github.com/users/svc-changelog/followersj Ahttps://api.github.com/users/svc-changelog/following{/other_user}j :https://api.github.com/users/svc-changelog/gists{/gist_id}j Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j 8https://api.github.com/users/svc-changelog/subscriptionsj /https://api.github.com/users/svc-changelog/orgsj  0https://api.github.com/users/svc-changelog/reposj" ;https://api.github.com/users/svc-changelog/events{/privacy}j$ :https://api.github.com/users/svc-changelog/received_eventsj& Userj( uparents]}(j (764d1e6f28dd53e42d95e542aff809adaf8110e8j ^https://api.github.com/repos/palantir/atlasdb/commits/764d1e6f28dd53e42d95e542aff809adaf8110e8j Shttps://github.com/palantir/atlasdb/commit/764d1e6f28dd53e42d95e542aff809adaf8110e8uastats}(totalK	additionsK	deletionsK ufiles]}(j (1c40c26a2b7f255ced582014ba59023261e207c9filename$changelog/@unreleased/pr-6463.v2.ymlstatusaddedjB KjC K changesKblob_url|https://github.com/palantir/atlasdb/blob/d9738d00eaf0654e3bf41c613179210a85abfa25/changelog%2F%40unreleased%2Fpr-6463.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/d9738d00eaf0654e3bf41c613179210a85abfa25/changelog%2F%40unreleased%2Fpr-6463.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6463.v2.yml?ref=d9738d00eaf0654e3bf41c613179210a85abfa25patch@@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Never completely empty the Cassandra client pool, even if a new list
+    of hosts are provided.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6463uau(1388897860675ba03429ba8d46c2489830b9c988}(sha(1388897860675ba03429ba8d46c2489830b9c988node_idEC_kwDOAjP5fdoAKDEzODg4OTc4NjA2NzViYTAzNDI5YmE4ZDQ2YzI0ODk4MzBiOWM5ODgcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-03-09T16:49:33Zu	committer}(j_ 
svc-changelogja svc-changelog@palantir.comjc 2023-03-09T16:49:33ZumessageAdd generated changelog entriestree}(jW (9513aa7e2680bc03ed387c0db35ba51ab8833f79url`https://api.github.com/repos/palantir/atlasdb/git/trees/9513aa7e2680bc03ed387c0db35ba51ab8833f79ujo bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1388897860675ba03429ba8d46c2489830b9c988
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQKDh0JEHYaJX37fAFQAAB3AAEAniT1vA6nGv7FByflBx9Io0Mg
2MiOMQcrLFMxSXVw8JMA/1ICrjItZuvKXMgRvRMlucJQ7ceCwFZLNZluQhPNJIVn
=6PIQ
-----END PGP SIGNATURE-----payloadX  tree 9513aa7e2680bc03ed387c0db35ba51ab8833f79
parent 059e05ec71254f582db47692b1e1d7ff75f0c885
author svc-changelog <svc-changelog@palantir.com> 1678380573 +0000
committer svc-changelog <svc-changelog@palantir.com> 1678380573 +0000

Add generated changelog entriesuujo ^https://api.github.com/repos/palantir/atlasdb/commits/1388897860675ba03429ba8d46c2489830b9c988html_urlShttps://github.com/palantir/atlasdb/commit/1388897860675ba03429ba8d46c2489830b9c988comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1388897860675ba03429ba8d46c2489830b9c988/commentsj] }(login
svc-changelogidJ#jY MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jo *https://api.github.com/users/svc-changelogj}  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuje }(j 
svc-changelogj J#jY MDQ6VXNlcjg0MDc3NjAzj 4https://avatars.githubusercontent.com/u/84077603?v=4j h5jo *https://api.github.com/users/svc-changelogj}  https://github.com/svc-changelogj 4https://api.github.com/users/svc-changelog/followersj Ahttps://api.github.com/users/svc-changelog/following{/other_user}j :https://api.github.com/users/svc-changelog/gists{/gist_id}j Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j 8https://api.github.com/users/svc-changelog/subscriptionsj /https://api.github.com/users/svc-changelog/orgsj 0https://api.github.com/users/svc-changelog/reposj ;https://api.github.com/users/svc-changelog/events{/privacy}j :https://api.github.com/users/svc-changelog/received_eventsj Userj uparents]}(jW (059e05ec71254f582db47692b1e1d7ff75f0c885jo ^https://api.github.com/repos/palantir/atlasdb/commits/059e05ec71254f582db47692b1e1d7ff75f0c885j} Shttps://github.com/palantir/atlasdb/commit/059e05ec71254f582db47692b1e1d7ff75f0c885uastats}(totalK	additionsK	deletionsK ufiles]}(jW (85ba589854ac34ebd9c8c823c51cf5a3b31cf07dfilename$changelog/@unreleased/pr-6459.v2.ymlstatusaddedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/1388897860675ba03429ba8d46c2489830b9c988/changelog%2F%40unreleased%2Fpr-6459.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/1388897860675ba03429ba8d46c2489830b9c988/changelog%2F%40unreleased%2Fpr-6459.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6459.v2.yml?ref=1388897860675ba03429ba8d46c2489830b9c988patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Adds a durable writes invariant check to the workload server
+  links:
+  - https://github.com/palantir/atlasdb/pull/6459uau(7254c0714a4018d3f746961b27439df5ea3a34c7}(sha(7254c0714a4018d3f746961b27439df5ea3a34c7node_idEC_kwDOAjP5fdoAKDcyNTRjMDcxNGE0MDE4ZDNmNzQ2OTYxYjI3NDM5ZGY1ZWEzYTM0Yzccommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-19T18:09:55Zu	committer}(j GitHubj noreply@github.comj 2023-05-19T18:09:55Zumessage5Merge branch 'develop' into jkong/asynchronously-firetree}(j (a0f0255c0be37d0a00cfd6bdfa45ddb9a1f91d04url`https://api.github.com/repos/palantir/atlasdb/git/trees/a0f0255c0be37d0a00cfd6bdfa45ddb9a1f91d04uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7254c0714a4018d3f746961b27439df5ea3a34c7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkZ7tzCRBK7hj4Ov3rIwAADdIIAFCylJ7xvBwIao2MWGp/BkiF
k+82XqGp7saKb7gC0GNUZXOITrafmQ/eKrSYmwRZqP4jTw8S5P/dC1j3Uf2OT32D
G689JKNtsqMY7n6tQaAzU/IKPP5kvHppOWdKW9jgHxNv2A5Rq/gCdhtR+rBrBYel
dDGYnu+PmhodJdV9/dRao7yoj1/rpeVMpuOUeFaqS+KLzJ055dRe06u6aQbonzhE
tjaj5sAiIgkd2I20m+BJZDPiC8ajllH33WjlJQQebXk5U2AixZnKua75lueFpRUi
AcH0VlUF5u1K6XDbRNKFEnr9r+pS8wJQDRkxnAEOuJUrlqehZuzL48wQVaZM7sc=
=oQSb
-----END PGP SIGNATURE-----
payloadX4  tree a0f0255c0be37d0a00cfd6bdfa45ddb9a1f91d04
parent 2ef80dfed23989e3f3b95bbdcdc932c2bcdf3281
parent 3b7277fbfdf71f5d403f7195597c58c6ed6a1a59
author Jeremy Kong <jkong@palantir.com> 1684519795 +0100
committer GitHub <noreply@github.com> 1684519795 +0100

Merge branch 'develop' into jkong/asynchronously-fireuuj ^https://api.github.com/repos/palantir/atlasdb/commits/7254c0714a4018d3f746961b27439df5ea3a34c7html_urlShttps://github.com/palantir/atlasdb/commit/7254c0714a4018d3f746961b27439df5ea3a34c7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7254c0714a4018d3f746961b27439df5ea3a34c7/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j
 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents](}(j (2ef80dfed23989e3f3b95bbdcdc932c2bcdf3281j ^https://api.github.com/repos/palantir/atlasdb/commits/2ef80dfed23989e3f3b95bbdcdc932c2bcdf3281j Shttps://github.com/palantir/atlasdb/commit/2ef80dfed23989e3f3b95bbdcdc932c2bcdf3281u}(j (3b7277fbfdf71f5d403f7195597c58c6ed6a1a59j ^https://api.github.com/repos/palantir/atlasdb/commits/3b7277fbfdf71f5d403f7195597c58c6ed6a1a59j Shttps://github.com/palantir/atlasdb/commit/3b7277fbfdf71f5d403f7195597c58c6ed6a1a59uestats}(totalML	additionsM	deletionsKufiles](}(j (b4b3fdb6c8a3dbc046c441a7d9341e93b8857c14filenameKatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/Buggify.javastatusmodifiedj4 Kj5 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7patchX  @@ -22,7 +22,7 @@
  * downstream users of this class can easily swap out their {@link BuggifyFactory} to change the behavior of their
  * class, without having to change the implementation of their class. This is useful for tests, as we can force the
  * behavior of never running the provided runnable, or always running the provided runnable.
- *
+ * <p>
  * See https://apple.github.io/foundationdb/client-testing.html for more information.
  */
 public interface Buggify {u}(j (bf4172a8a7e4e4576cacc81f228d95963322a41dj: Watlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyFactory.javaj< addedj4 Kj5 K j> Kj? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE X  @@ -0,0 +1,29 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+
+public enum NoOpBuggifyFactory implements BuggifyFactory {
+    INSTANCE;
+
+    @Override
+    public Buggify maybe(double _probability) {
+        return NoOpBuggify.INSTANCE;
+    }
+}u}(j (a7db5aa15eb7d98f2bcc738671a8f30fdfb489adj: ^atlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactoryTest.javaj< modifiedj4 K j5 Kj> Kj? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE @@ -21,7 +21,6 @@
 import org.junit.Test;
 
 public class DefaultBuggifyFactoryTest {
-
     @Test
     public void maybeReturnsDefaultWhenMaxProbability() {
         assertThat(DefaultBuggifyFactory.INSTANCE.maybe(1.0)).isSameAs(DefaultBuggify.INSTANCE);u}(j (c52d2d055598765a8eaf2152beff312bf3167cddj: batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaj< modifiedj4 Kj5 Kj> Kj? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE Xk  @@ -24,6 +24,7 @@
 import com.google.common.collect.Interner;
 import com.google.common.collect.Interners;
 import com.google.common.collect.Iterables;
+import com.google.common.collect.Maps;
 import com.google.common.collect.Range;
 import com.google.common.collect.RangeMap;
 import com.google.common.collect.Sets;
@@ -64,7 +65,6 @@
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
-import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Optional;
 import java.util.PrimitiveIterator.OfInt;
@@ -420,9 +420,8 @@ Set<CassandraServer> maybeFilterLocalHosts(Set<CassandraServer> hosts) {
     @VisibleForTesting
     Optional<CassandraServer> getRandomHostByActiveConnections(Set<CassandraServer> desiredHosts) {
         Set<CassandraServer> localFilteredHosts = maybeFilterLocalHosts(desiredHosts);
-        ImmutableMap<CassandraServer, CassandraClientPoolingContainer> matchingPools = currentPools.entrySet().stream()
-                .filter(e -> localFilteredHosts.contains(e.getKey()))
-                .collect(ImmutableMap.toImmutableMap(Entry::getKey, Entry::getValue));
+        Map<CassandraServer, CassandraClientPoolingContainer> matchingPools =
+                ImmutableMap.copyOf(Maps.filterKeys(currentPools, localFilteredHosts::contains));
         if (matchingPools.isEmpty()) {
             return Optional.empty();
         }u}(j (df57e9fd3c6376b49fd3c1adb77db41b476aeffej: datlasdb-config/src/main/java/com/palantir/atlasdb/factory/DefaultLockAndTimestampServiceFactory.javaj< modifiedj4 K&j5 Kj> K)j? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE X4  @@ -96,6 +96,7 @@
 import java.util.Set;
 import java.util.concurrent.CompletableFuture;
 import java.util.function.Consumer;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import javax.ws.rs.ClientErrorException;
 
@@ -118,6 +119,8 @@ public final class DefaultLockAndTimestampServiceFactory implements LockAndTimes
     private final Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders;
     private final Set<Schema> schemas;
 
+    private final Function<TimelockService, TimeLockClient> timelockClientFactory;
+
     public DefaultLockAndTimestampServiceFactory(
             MetricsManager metricsManager,
             AtlasDbConfig config,
@@ -132,6 +135,38 @@ public DefaultLockAndTimestampServiceFactory(
             Optional<TimeLockFeedbackBackgroundTask> timeLockFeedbackBackgroundTask,
             Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders,
             Set<Schema> schemas) {
+        this(
+                metricsManager,
+                config,
+                runtimeConfig,
+                registrar,
+                lock,
+                time,
+                invalidator,
+                userAgent,
+                lockDiagnosticComponents,
+                reloadingFactory,
+                timeLockFeedbackBackgroundTask,
+                timelockRequestBatcherProviders,
+                schemas,
+                TimeLockClient::createDefault);
+    }
+
+    public DefaultLockAndTimestampServiceFactory(
+            MetricsManager metricsManager,
+            AtlasDbConfig config,
+            Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
+            Consumer<Object> registrar,
+            Supplier<LockService> lock,
+            Supplier<ManagedTimestampService> time,
+            TimestampStoreInvalidator invalidator,
+            UserAgent userAgent,
+            Optional<LockDiagnosticComponents> lockDiagnosticComponents,
+            ReloadingFactory reloadingFactory,
+            Optional<TimeLockFeedbackBackgroundTask> timeLockFeedbackBackgroundTask,
+            Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders,
+            Set<Schema> schemas,
+            Function<TimelockService, TimeLockClient> timelockClientFactory) {
         this.metricsManager = metricsManager;
         this.config = config;
         this.runtimeConfig = runtimeConfig;
@@ -145,6 +180,7 @@ public DefaultLockAndTimestampServiceFactory(
         this.timeLockFeedbackBackgroundTask = timeLockFeedbackBackgroundTask;
         this.timelockRequestBatcherProviders = timelockRequestBatcherProviders;
         this.schemas = schemas;
+        this.timelockClientFactory = timelockClientFactory;
     }
 
     @Override
@@ -166,9 +202,8 @@ public LockAndTimestampServices createLockAndTimestampServices() {
         return withMetrics(metricsManager, withRefreshingLockService(lockAndTimestampServices));
     }
 
-    private static LockAndTimestampServices withRefreshingLockService(
-            LockAndTimestampServices lockAndTimestampServices) {
-        TimeLockClient timeLockClient = TimeLockClient.createDefault(lockAndTimestampServices.timelock());
+    private LockAndTimestampServices withRefreshingLockService(LockAndTimestampServices lockAndTimestampServices) {
+        TimeLockClient timeLockClient = timelockClientFactory.apply(lockAndTimestampServices.timelock());
         ProfilingTimelockService profilingService = ProfilingTimelockService.create(timeLockClient);
         return ImmutableLockAndTimestampServices.builder()
                 .from(lockAndTimestampServices)u}(j (37473508e06c194b315e01d89ff08da1a5152705j: Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javaj< modifiedj4 Kj5 Kj> K	j? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE X+  @@ -129,6 +129,7 @@
 import com.palantir.lock.client.TimeLockClient;
 import com.palantir.lock.client.metrics.TimeLockFeedbackBackgroundTask;
 import com.palantir.lock.impl.LockServiceImpl;
+import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -198,6 +199,11 @@ boolean allSafeForLogging() {
         return false;
     }
 
+    @Value.Default
+    Function<TimelockService, TimeLockClient> defaultTimelockClientFactory() {
+        return TimeLockClient::createDefault;
+    }
+
     abstract Optional<LockAndTimestampServiceFactory> lockAndTimestampServiceFactory();
 
     abstract UserAgent userAgent();
@@ -385,7 +391,8 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                         reloadingFactory(),
                         timeLockFeedbackBackgroundTask,
                         timelockRequestBatcherProviders(),
-                        schemas()));
+                        schemas(),
+                        defaultTimelockClientFactory()));
         LockAndTimestampServices lockAndTimestampServices = factory.createLockAndTimestampServices();
         adapter.setTimestampService(lockAndTimestampServices.managedTimestampService());
 u}(j (1d193b8827aecd4f6d245fb465dfbdc647f5e14aj: +atlasdb-ete-tests/docker-compose.oracle.ymlj< modifiedj4 Kj5 Kj> Kj? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-ete-tests%2Fdocker-compose.oracle.ymljA ~https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-ete-tests%2Fdocker-compose.oracle.ymljC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.oracle.yml?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE @@ -2,7 +2,7 @@ version: '2'
 
 services:
   oracle:
-    image: palantirtechnologies/oracle-atlasdb:19.18.0.0-se
+    image: palantirtechnologies/oracle-atlasdb:19.19.0.0-se
     ports:
       - "1521"
 u}(j (0d1f2696fe20c1f1abb4c94f88cae6650478d2b8j: 9atlasdb-workload-server-antithesis/var/docker-compose.ymlj< modifiedj4 Kj5 K j> Kj? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymljA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymljC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE X8  @@ -15,6 +15,8 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra1
+    volumes:
+      - /opt/config/volumes/cassandra1:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
@@ -33,6 +35,8 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra2
+    volumes:
+      - /opt/config/volumes/cassandra2:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
@@ -51,6 +55,8 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra3
+    volumes:
+      - /opt/config/volumes/cassandra3:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.4u}(j (b86932b661e3da17f104f58842a6abb1d2486e6fj: latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj< modifiedj4 K#j5 Kj> K$j? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE X  @@ -35,6 +35,8 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
 import com.palantir.atlasdb.workload.workflow.Workflow;
@@ -127,6 +129,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().singleRowTwoCellsConfig();
         RingWorkflowConfiguration ringWorkflowConfiguration =
                 configuration.install().ringConfig();
+        SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
+                configuration.install().singleBusyCellConfig();
 
         waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
 
@@ -135,7 +139,9 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                         createSingleRowTwoCellsWorkflowValidator(
                                 transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
                         createRingWorkflowValidator(
-                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()));
+                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellWorkflowValidator(
+                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -168,6 +174,34 @@ private void waitForTransactionStoreFactoryToBeInitialized(AtlasDbTransactionSto
         System.exit(1);
     }
 
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-read")
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-write")
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
     private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             RingWorkflowConfiguration workflowConfig,u}(j (e066585ffc82825e55fda21d1909dcc38bb9b518j: atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj< modifiedj4 Kj5 K j> Kj? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE X  @@ -19,6 +19,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
@@ -33,5 +34,7 @@ public interface WorkloadServerInstallConfiguration {
 
     RingWorkflowConfiguration ringConfig();
 
+    SingleBusyCellWorkflowConfiguration singleBusyCellConfig();
+
     boolean exitAfterRunning();
 }u}(j (d8121b0b815f2fb3134e788ecc38e1fba194cf2ej: Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj< modifiedj4 Kj5 K j> Kj? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymljA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymljC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE Xi  @@ -16,4 +16,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: ring
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
   exitAfterRunning: false
\ No newline at end of fileu       }(j (ed1d1e636ce8b5a7ba7f91916bdfa9467a454cb2j: Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj< modifiedj4 Kj5 K j> Kj? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE XL  @@ -52,4 +52,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: ring
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
   exitAfterRunning: trueu}(j (e998e111e223273bdb28df2df52768ed59a74d5dj: Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj< modifiedj4 Kj5 K j> Kj? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE Xh  @@ -17,4 +17,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: ring
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
   exitAfterRunning: true
\ No newline at end of fileu}(j (a1646b6ee093076187da250847d896517a6e93a1j: $atlasdb-workload-server/build.gradlej< modifiedj4 Kj5 K j> Kj? xhttps://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server%2Fbuild.gradlejA whttps://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server%2Fbuild.gradlejC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE X  @@ -12,6 +12,8 @@ dependencies {
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-config')
     implementation project(':atlasdb-impl-shared')
+    implementation project(':lock-api')
+    implementation project(':lock-impl')
 
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'u}(j (d7dd783c1221e2a93fad625414ea628dac4c9695j: matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javaj< modifiedj4 Kj5 K j> Kj? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE Xm  @@ -28,6 +28,8 @@
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.conjure.java.api.config.service.UserAgent;
+import com.palantir.lock.client.TimeLockClient;
+import com.palantir.lock.client.UnreliableTimeLockService;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
@@ -41,6 +43,9 @@
 
 public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory<InteractiveTransactionStore> {
 
+    // Purposefully override the lock refresh interval to increase our chances of losing locks.
+    private static final int LOCK_REFRESH_INTERVAL_MS = 200;
+
     private final TransactionManager transactionManager;
     private final Optional<Namespace> maybeNamespace;
 
@@ -142,6 +147,8 @@ public static AtlasDbTransactionStoreFactory createFromConfig(
                 .globalMetricsRegistry(metricsManager.getRegistry())
                 .globalTaggedMetricRegistry(metricsManager.getTaggedRegistry())
                 .runtimeConfigSupplier(atlasDbRuntimeConfig)
+                .defaultTimelockClientFactory(lockService -> TimeLockClient.createDefault(
+                        UnreliableTimeLockService.create(lockService), LOCK_REFRESH_INTERVAL_MS))
                 .build()
                 .serializable();
 u}(j (c0b3881cb15e0ba7b72700e3a80768b2c77a4b32j: tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactions.javaj< addedj4 K-j5 K j> K-j? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE X  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.Comparator;
+import java.util.List;
+import one.util.streamex.StreamEx;
+
+public final class WitnessedTransactions {
+    private WitnessedTransactions() {
+        // utility
+    }
+
+    /**
+     * Sorts transactions by their effective timestamp and filters out transactions that are not fully committed.
+     */
+    public static List<FullyWitnessedTransaction> sortAndFilterTransactions(
+            ReadOnlyTransactionStore readOnlyTransactionStore, List<WitnessedTransaction> unorderedTransactions) {
+        OnlyCommittedWitnessedTransactionVisitor visitor =
+                new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
+        return StreamEx.of(unorderedTransactions)
+                .mapPartial(transaction -> transaction.accept(visitor))
+                .sorted(Comparator.comparingLong(WitnessedTransactions::effectiveTimestamp))
+                .toList();
+    }
+
+    private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
+        return witnessedTransaction.commitTimestamp().orElseGet(witnessedTransaction::startTimestamp);
+    }
+}u}(j (f4ad0b8dddc43f5cd0380760c6cfdc9c58c273e1j: aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javaj< modifiedj4 Kj5 Kj> Kj? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE Xf
  @@ -16,19 +16,15 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.OnlyCommittedWitnessedTransactionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
-import java.util.Comparator;
 import java.util.List;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
-import one.util.streamex.StreamEx;
 
 public final class DefaultWorkflow<T extends TransactionStore> implements Workflow {
     private final ConcurrentTransactionRunner<T> concurrentTransactionRunner;
@@ -62,7 +58,8 @@ public static <T extends TransactionStore> DefaultWorkflow<T> create(
     @Override
     public WorkflowHistory run() {
         return ImmutableWorkflowHistory.builder()
-                .history(sortAndFilterTransactions(runTransactionTask()))
+                .history(
+                        WitnessedTransactions.sortAndFilterTransactions(readOnlyTransactionStore, runTransactionTask()))
                 .transactionStore(readOnlyTransactionStore)
                 .build();
     }
@@ -80,21 +77,4 @@ private List<WitnessedTransaction> runTransactionTask() {
             throw new SafeRuntimeException("Error when running workflow task", e.getCause());
         }
     }
-
-    /**
-     * Sorts transactions by their effective timestamp and filters out transactions that are not fully committed.
-     */
-    @VisibleForTesting
-    List<FullyWitnessedTransaction> sortAndFilterTransactions(List<WitnessedTransaction> unorderedTransactions) {
-        OnlyCommittedWitnessedTransactionVisitor visitor =
-                new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
-        return StreamEx.of(unorderedTransactions)
-                .mapPartial(transaction -> transaction.accept(visitor))
-                .sorted(Comparator.comparingLong(DefaultWorkflow::effectiveTimestamp))
-                .toList();
-    }
-
-    private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
-        return witnessedTransaction.commitTimestamp().orElseGet(witnessedTransaction::startTimestamp);
-    }
 }u}(j (4ca9777a60bba46b458d814677435f4e29d93675j: uatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowConfiguration.javaj< addedj4 K j5 K j> K j? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE X?  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellWorkflowConfiguration.TYPE)
+public interface SingleBusyCellWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell";
+
+    TableConfiguration tableConfiguration();
+}u}(j (c82f3d3c2182e14e8f2d6630ac1cb719f0cd3c4cj: iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflows.javaj< addedj4 Kij5 K j> Kij? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE X  @@ -0,0 +1,105 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions.
+ */
+public final class SingleBusyCellWorkflows {
+    private SingleBusyCellWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReadsAndTouches(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReadsAndTouches(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(txn -> {
+                    Optional<Integer> value =
+                            txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL);
+                    txn.write(configuration.tableConfiguration().tableName(), BUSY_CELL, value.orElse(-1));
+                })))
+                .collect(Collectors.toList());
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
+    }
+}u}(j (c5349645dc81bf0c8bc33bc720961e281110a64fj: xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionsTest.javaj< addedj4 Kj5 K j> Kj? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE X  @@ -0,0 +1,131 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.List;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class WitnessedTransactionsTest {
+    @Mock
+    private ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    @Test
+    public void returnsUnderlyingWitnessedTransactions() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(twoToEight)))
+                .containsExactly(twoToEight);
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(readOnlyAtFive)))
+                .containsExactly(readOnlyAtFive);
+    }
+
+    @Test
+    public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
+                .containsExactly(fourToSix, threeToSeven, twoToEight);
+    }
+
+    @Test
+    public void sortsReadOnlyTransactionsByStartTimestamp() {
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
+                .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
+    }
+
+    @Test
+    public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        ImmutableList.of(
+                                twoToEight,
+                                readOnlyAtNine,
+                                fourToSix,
+                                readOnlyAtFive,
+                                readOnlyAtThree,
+                                readOnlyAtSeven)))
+                .containsExactly(
+                        readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
+    }
+
+    @Test
+    public void filterRemovesUncommittedTransactions() {
+        MaybeWitnessedTransaction committedMaybeWitnessedTransaction =
+                createMaybeWitnessedTransactionWithoutActions(1, 3, true);
+        MaybeWitnessedTransaction notCommittedTransaction = createMaybeWitnessedTransactionWithoutActions(2, 8, false);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        List.of(
+                                committedMaybeWitnessedTransaction,
+                                notCommittedTransaction,
+                                readOnlyAtFive,
+                                fourToSix)))
+                .containsExactly(committedMaybeWitnessedTransaction.toFullyWitnessed(), readOnlyAtFive, fourToSix);
+    }
+
+    private MaybeWitnessedTransaction createMaybeWitnessedTransactionWithoutActions(
+            long start, long commit, boolean committed) {
+        when(readOnlyTransactionStore.isCommitted(eq(start))).thenReturn(committed);
+        return MaybeWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+
+    private static FullyWitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
+        return FullyWitnessedTransaction.builder().startTimestamp(start).build();
+    }
+
+    private static FullyWitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+}u}(j (84316bacac0bff7ed7e0091b3a88e14381eec0f0j: eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javaj< modifiedj4 K j5 KUj> KUj? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE X  @@ -16,21 +16,16 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.anyInt;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
-import com.google.common.collect.ImmutableList;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.common.concurrent.PTExecutors;
-import java.util.List;
 import java.util.concurrent.ScheduledExecutorService;
 import org.junit.Test;
 
@@ -54,66 +49,6 @@ public void handlesExceptionsInUnderlyingTasks() {
                 .hasCause(transactionException);
     }
 
-    @Test
-    public void returnsUnderlyingWitnessedTransactions() {
-        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-
-        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight)))
-                .containsExactly(twoToEight);
-        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(readOnlyAtFive)))
-                .containsExactly(readOnlyAtFive);
-    }
-
-    @Test
-    public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
-        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        FullyWitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
-        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
-
-        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
-                .containsExactly(fourToSix, threeToSeven, twoToEight);
-    }
-
-    @Test
-    public void sortsReadOnlyTransactionsByStartTimestamp() {
-        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        FullyWitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
-
-        assertThat(workflow.sortAndFilterTransactions(
-                        ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
-                .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
-    }
-
-    @Test
-    public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
-        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
-
-        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        FullyWitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
-
-        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(
-                        twoToEight, readOnlyAtNine, fourToSix, readOnlyAtFive, readOnlyAtThree, readOnlyAtSeven)))
-                .containsExactly(
-                        readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
-    }
-
-    @Test
-    public void filterRemovesUncommittedTransactions() {
-        MaybeWitnessedTransaction committedMaybeWitnessedTransaction =
-                createMaybeWitnessedTransactionWithoutActions(1, 3, true);
-        MaybeWitnessedTransaction notCommittedTransaction = createMaybeWitnessedTransactionWithoutActions(2, 8, false);
-        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
-        assertThat(workflow.sortAndFilterTransactions(List.of(
-                        committedMaybeWitnessedTransaction, notCommittedTransaction, readOnlyAtFive, fourToSix)))
-                .containsExactly(committedMaybeWitnessedTransaction.toFullyWitnessed(), readOnlyAtFive, fourToSix);
-    }
-
     private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
         return new WorkflowConfiguration() {
             @Override
@@ -122,24 +57,4 @@ public int iterationCount() {
             }
         };
     }
-
-    private MaybeWitnessedTransaction createMaybeWitnessedTransactionWithoutActions(
-            long start, long commit, boolean committed) {
-        when(store.isCommitted(eq(start))).thenReturn(committed);
-        return MaybeWitnessedTransaction.builder()
-                .startTimestamp(start)
-                .commitTimestamp(commit)
-                .build();
-    }
-
-    private static FullyWitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
-        return FullyWitnessedTransaction.builder().startTimestamp(start).build();
-    }
-
-    private static FullyWitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
-        return FullyWitnessedTransaction.builder()
-                .startTimestamp(start)
-                .commitTimestamp(commit)
-                .build();
-    }
 }u}(j (051afb2dbe0f301ea8ff0ca03da0e8f1a9387a2aj: matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowsTest.javaj< addedj4 Kej5 K j> Kej? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE X  @@ -0,0 +1,101 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Collection;
+import java.util.List;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class SingleBusyCellWorkflowsTest {
+    private static final String TABLE_NAME = "busy.cell";
+    private static final int ITERATION_COUNT = 1_000;
+    private static final SingleBusyCellWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow workflow = SingleBusyCellWorkflows.create(
+            transactionStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)),
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)));
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void transactionsDoNotConflictExcessively() {
+        WorkflowHistory workflowHistory = workflow.run();
+        assertThat(workflowHistory.history()).hasSizeBetween(ITERATION_COUNT / 2, ITERATION_COUNT);
+    }
+
+    @Test
+    public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.table().equals(TABLE_NAME));
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.cell().equals(SingleBusyCellWorkflows.BUSY_CELL));
+    }
+
+    @Test
+    public void targetCellIsReadModifiedAndDeleted() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+}u}(j (91d691ab16f5b7a0ca12fc7a603e315687a4ed27j:  changelog/0.857.0/pr-6564.v2.ymlj< addedj4 Kj5 K j> Kj? vhttps://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/changelog%2F0.857.0%2Fpr-6564.v2.ymljA uhttps://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/changelog%2F0.857.0%2Fpr-6564.v2.ymljC https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.857.0%2Fpr-6564.v2.yml?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Avoid Stream overhead in getRandomHostByActiveConnections
+  links:
+  - https://github.com/palantir/atlasdb/pull/6564u}(j (c201a75037718ee45a6d24add55ec4992f91ef88j: lock-api/build.gradlej< modifiedj4 Kj5 K j> Kj? ihttps://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/lock-api%2Fbuild.gradlejA hhttps://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/lock-api%2Fbuild.gradlejC {https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fbuild.gradle?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE Xq  @@ -19,6 +19,7 @@ dependencies {
 
     implementation project(":atlasdb-autobatch")
     implementation project(":atlasdb-commons")
+    implementation project(":atlasdb-buggify")
     implementation 'jakarta.ws.rs:jakarta.ws.rs-api'
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-databind'u}(j (fd5b31c1b0e6208a7f9308a03fa062d1b4247527j: Clock-api/src/main/java/com/palantir/lock/client/TimeLockClient.javaj< modifiedj4 Kj5 K j> Kj? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.javajC https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE XZ  @@ -62,6 +62,17 @@ public static TimeLockClient createDefault(TimelockService timelockService) {
                 timelockService, timestampService, createLockRefresher(timelockService), asyncUnlocker);
     }
 
+    public static TimeLockClient createDefault(TimelockService timelockService, long lockRefreshIntervalMillis) {
+        AsyncTimeLockUnlocker asyncUnlocker = AsyncTimeLockUnlocker.create(timelockService);
+        RequestBatchingTimestampService timestampService =
+                RequestBatchingTimestampService.create(new TimelockServiceErrorDecorator(timelockService));
+        return new TimeLockClient(
+                timelockService,
+                timestampService,
+                createLockRefresher(timelockService, lockRefreshIntervalMillis),
+                asyncUnlocker);
+    }
+
     public static TimeLockClient withSynchronousUnlocker(TimelockService timelockService) {
         CloseableTimestampService timestampService = new TimelockServiceErrorDecorator(timelockService);
         return new TimeLockClient(
@@ -206,6 +217,12 @@ private static LockRefresher<LockToken> createLockRefresher(TimelockService time
         return new LockRefresher<>(refreshExecutor, lockTokenRefresher, REFRESH_INTERVAL_MILLIS);
     }
 
+    private static LockRefresher<LockToken> createLockRefresher(
+            TimelockService timelockService, long lockRefreshIntervalMillis) {
+        LockLeaseRefresher<LockToken> lockTokenRefresher = timelockService::refreshLockLeases;
+        return new LockRefresher<>(refreshExecutor, lockTokenRefresher, lockRefreshIntervalMillis);
+    }
+
     private static ScheduledExecutorService createSingleThreadScheduledExecutor(String operation) {
         return PTExecutors.newSingleThreadScheduledExecutor(
                 new NamedThreadFactory(TimeLockClient.class.getSimpleName() + "-" + operation, true));u}(j (f5eafd4efa22db15cffb486b29e1a8e16e9cfbc4j: Nlock-api/src/main/java/com/palantir/lock/client/UnreliableTimeLockService.javaj< addedj4 Kj5 K j> Kj? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javajC https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE Xn  @@ -0,0 +1,147 @@
+/*
+ * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.palantir.lock.client;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.Sets;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
+import com.palantir.lock.v2.ClientLockingOptions;
+import com.palantir.lock.v2.LockImmutableTimestampResponse;
+import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.v2.LockResponse;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.v2.StartIdentifiedAtlasDbTransactionResponse;
+import com.palantir.lock.v2.TimelockService;
+import com.palantir.lock.v2.WaitForLocksRequest;
+import com.palantir.lock.v2.WaitForLocksResponse;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.timestamp.TimestampRange;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+
+/**
+ * A version of timelock service that has a chance to randomly lose locks during refresh or immediately after
+ * acquiring. This is useful for testing the behavior of clients when locks are lost.
+ */
+public final class UnreliableTimeLockService implements TimelockService {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(UnreliableTimeLockService.class);
+
+    private final TimelockService delegate;
+    private final BuggifyFactory buggify;
+
+    public static UnreliableTimeLockService create(TimelockService timelockService) {
+        return new UnreliableTimeLockService(timelockService, DefaultBuggifyFactory.INSTANCE);
+    }
+
+    @VisibleForTesting
+    UnreliableTimeLockService(TimelockService delegate, BuggifyFactory buggifyFactory) {
+        this.delegate = delegate;
+        this.buggify = buggifyFactory;
+    }
+
+    @Override
+    public boolean isInitialized() {
+        return delegate.isInitialized();
+    }
+
+    @Override
+    public long getFreshTimestamp() {
+        return delegate.getFreshTimestamp();
+    }
+
+    @Override
+    public long getCommitTimestamp(long startTs, LockToken commitLocksToken) {
+        return delegate.getCommitTimestamp(startTs, commitLocksToken);
+    }
+
+    @Override
+    public TimestampRange getFreshTimestamps(int numTimestampsRequested) {
+        return delegate.getFreshTimestamps(numTimestampsRequested);
+    }
+
+    @Override
+    public LockImmutableTimestampResponse lockImmutableTimestamp() {
+        return delegate.lockImmutableTimestamp();
+    }
+
+    @Override
+    public List<StartIdentifiedAtlasDbTransactionResponse> startIdentifiedAtlasDbTransactionBatch(int count) {
+        return delegate.startIdentifiedAtlasDbTransactionBatch(count);
+    }
+
+    @Override
+    public long getImmutableTimestamp() {
+        return delegate.getImmutableTimestamp();
+    }
+
+    @Override
+    public LockResponse lock(LockRequest request) {
+        LockResponse response = delegate.lock(request);
+        buggify.maybe(0.05).run(() -> {
+            log.info("BUGGIFY: Unlocking lock token {} after acquiring", SafeArg.of("token", response.getToken()));
+            delegate.unlock(Set.of(response.getToken()));
+        });
+        return response;
+    }
+
+    @Override
+    public LockResponse lock(LockRequest lockRequest, ClientLockingOptions options) {
+        LockResponse response = delegate.lock(lockRequest, options);
+        buggify.maybe(0.05).run(() -> {
+            log.info("BUGGIFY: Unlocking lock token {} after acquiring", SafeArg.of("token", response.getToken()));
+            delegate.unlock(Set.of(response.getToken()));
+        });
+        return response;
+    }
+
+    @Override
+    public WaitForLocksResponse waitForLocks(WaitForLocksRequest request) {
+        return delegate.waitForLocks(request);
+    }
+
+    @Override
+    public Set<LockToken> refreshLockLeases(Set<LockToken> tokens) {
+        Set<LockToken> tokensToRefresh = tokens.stream()
+                .filter(_token -> !buggify.maybe(0.01).asBoolean())
+                .collect(Collectors.toSet());
+        Set<LockToken> tokensToUnlock = Sets.difference(tokens, tokensToRefresh);
+        if (!tokensToUnlock.isEmpty()) {
+            log.info("BUGGIFY: Unlocking tokens on refresh: {}", SafeArg.of("tokens", tokensToUnlock));
+            delegate.unlock(tokensToUnlock);
+        }
+        return delegate.refreshLockLeases(tokensToRefresh);
+    }
+
+    @Override
+    public Set<LockToken> unlock(Set<LockToken> tokens) {
+        return delegate.unlock(tokens);
+    }
+
+    @Override
+    public void tryUnlock(Set<LockToken> tokens) {
+        delegate.tryUnlock(tokens);
+    }
+
+    @Override
+    public long currentTimeMillis() {
+        return delegate.currentTimeMillis();
+    }
+}u}(j (fcb51a9d2957bb45c95e4bf848d1dd2da8eb2547j: Qlock-api/src/test/java/com/palantir/lock/client/UnreliableTimelockClientTest.javaj< addedj4 Kj5 K j> Kj? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimelockClientTest.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimelockClientTest.javajC https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimelockClientTest.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE Xd  @@ -0,0 +1,179 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.client;
+
+import static org.mockito.ArgumentMatchers.anyDouble;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
+
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggify;
+import com.palantir.atlasdb.buggify.impl.NoOpBuggify;
+import com.palantir.atlasdb.buggify.impl.NoOpBuggifyFactory;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.v2.ClientLockingOptions;
+import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.v2.LockResponse;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.v2.WaitForLocksRequest;
+import java.util.LinkedHashSet;
+import java.util.List;
+import java.util.Set;
+import java.util.UUID;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class UnreliableTimelockClientTest {
+
+    private static final LockToken LOCK_TOKEN = LockToken.of(UUID.fromString("00000000-0000-0000-0000-000000000000"));
+
+    private static final LockToken LOCK_TOKEN_2 = LockToken.of(UUID.fromString("00000000-0000-0000-0000-000000000001"));
+    private static final LockDescriptor LOCK_DESCRIPTOR = StringLockDescriptor.of("foo");
+    private static final LockRequest LOCK_REQUEST = LockRequest.of(Set.of(LOCK_DESCRIPTOR), 1);
+
+    @Mock
+    private TimeLockClient timeLockClient;
+
+    private UnreliableTimeLockService unreliableTimeLockService;
+
+    @Before
+    public void before() {
+        unreliableTimeLockService = new UnreliableTimeLockService(timeLockClient, NoOpBuggifyFactory.INSTANCE);
+    }
+
+    @Test
+    public void verifyIsInitializedCallsDelegate() {
+        unreliableTimeLockService.isInitialized();
+        verify(timeLockClient).isInitialized();
+    }
+
+    @Test
+    public void verifyGetFreshTimestampCallsDelegate() {
+        unreliableTimeLockService.getFreshTimestamp();
+        verify(timeLockClient).getFreshTimestamp();
+    }
+
+    @Test
+    public void verifyGetCommitTimestampsCallsDelegate() {
+        unreliableTimeLockService.getCommitTimestamp(1, LOCK_TOKEN);
+        verify(timeLockClient).getCommitTimestamp(1, LOCK_TOKEN);
+    }
+
+    @Test
+    public void verifyGetFreshTimestampsCallsDelegate() {
+        unreliableTimeLockService.getFreshTimestamps(1);
+        verify(timeLockClient).getFreshTimestamps(1);
+    }
+
+    @Test
+    public void verifyLockImmutableTimestampCallsDelegate() {
+        unreliableTimeLockService.lockImmutableTimestamp();
+        verify(timeLockClient).lockImmutableTimestamp();
+    }
+
+    @Test
+    public void verifyStartIdentifiedAtlasDbTransactionCallsDelegate() {
+        unreliableTimeLockService.startIdentifiedAtlasDbTransactionBatch(1);
+        verify(timeLockClient).startIdentifiedAtlasDbTransactionBatch(1);
+    }
+
+    @Test
+    public void verifyGetImmutableTimestampCallsDelegate() {
+        unreliableTimeLockService.getImmutableTimestamp();
+        verify(timeLockClient).getImmutableTimestamp();
+    }
+
+    @Test
+    public void verifyLockCallsDelegate() {
+        unreliableTimeLockService.lock(LOCK_REQUEST);
+        verify(timeLockClient).lock(LOCK_REQUEST);
+    }
+
+    @Test
+    public void lockMayUnlockImmediately() {
+        when(timeLockClient.lock(LOCK_REQUEST)).thenReturn(LockResponse.successful(LOCK_TOKEN));
+        new UnreliableTimeLockService(timeLockClient, createAlwaysBuggyFactory()).lock(LOCK_REQUEST);
+        verify(timeLockClient).unlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void lockWithOptionMayUnlockImmediately() {
+        ClientLockingOptions lockingOptions = ClientLockingOptions.getDefault();
+        when(timeLockClient.lock(LOCK_REQUEST, lockingOptions)).thenReturn(LockResponse.successful(LOCK_TOKEN));
+        new UnreliableTimeLockService(timeLockClient, createAlwaysBuggyFactory()).lock(LOCK_REQUEST, lockingOptions);
+        verify(timeLockClient).unlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyLockWithOptionsCallsDelegate() {
+        unreliableTimeLockService.lock(LOCK_REQUEST, ClientLockingOptions.getDefault());
+        verify(timeLockClient).lock(LOCK_REQUEST, ClientLockingOptions.getDefault());
+    }
+
+    @Test
+    public void verifyWaitForLocksCallsDelegate() {
+        WaitForLocksRequest waitForLocksRequest = WaitForLocksRequest.of(Set.of(LOCK_DESCRIPTOR), 1);
+        unreliableTimeLockService.waitForLocks(waitForLocksRequest);
+        verify(timeLockClient).waitForLocks(waitForLocksRequest);
+    }
+
+    @Test
+    public void refreshLockLeasesMaybeUnlocksLocks() {
+        BuggifyFactory factory = mock(BuggifyFactory.class);
+        when(factory.maybe(anyDouble())).thenReturn(DefaultBuggify.INSTANCE, NoOpBuggify.INSTANCE);
+        new UnreliableTimeLockService(timeLockClient, factory)
+                .refreshLockLeases(new LinkedHashSet<>(List.of(LOCK_TOKEN, LOCK_TOKEN_2)));
+        verify(timeLockClient).refreshLockLeases(Set.of(LOCK_TOKEN_2));
+        verify(timeLockClient).unlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyRefreshLockLeasesCallsDelegate() {
+        unreliableTimeLockService.refreshLockLeases(Set.of(LOCK_TOKEN));
+        verify(timeLockClient).refreshLockLeases(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyUnlockCallsDelegate() {
+        unreliableTimeLockService.unlock(Set.of(LOCK_TOKEN));
+        verify(timeLockClient).unlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyTryUnlockCallsDelegate() {
+        unreliableTimeLockService.tryUnlock(Set.of(LOCK_TOKEN));
+        verify(timeLockClient).tryUnlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyCurrentTimeMillisCallsDelegate() {
+        unreliableTimeLockService.currentTimeMillis();
+        verify(timeLockClient).currentTimeMillis();
+    }
+
+    private static BuggifyFactory createAlwaysBuggyFactory() {
+        BuggifyFactory factory = mock(BuggifyFactory.class);
+        when(factory.maybe(anyDouble())).thenReturn(DefaultBuggify.INSTANCE);
+        return factory;
+    }
+}u}(j (9fe9d43261f7a9aee7f98c3febb6dfc81ee82d3cj: Llock-impl/src/main/java/com/palantir/lock/logger/LockServiceStateLogger.javaj< modifiedj4 Kj5 Kj> Kj? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLogger.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLogger.javajC https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLogger.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE X.  @@ -16,6 +16,7 @@
 package com.palantir.lock.logger;
 
 import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.ImmutableSetMultimap;
 import com.google.common.collect.Multimap;
 import com.google.common.collect.Multimaps;
 import com.google.common.collect.SetMultimap;
@@ -66,7 +67,7 @@ public LockServiceStateLogger(
     public LogState logLocks() {
         List<SimpleLockRequestsWithSameDescriptor> generatedOutstandingRequests =
                 generateOutstandingLocks(outstandingLockRequests);
-        Map<ObfuscatedLockDescriptor, SimpleTokenInfo> generatedHeldLocks = generateHeldLocks(heldLocks);
+        Multimap<ObfuscatedLockDescriptor, SimpleTokenInfo> generatedHeldLocks = generateHeldLocks(heldLocks);
         Map<ObfuscatedLockDescriptor, String> generatedSyncState = generateSyncState(descriptorToLockMap);
         Map<ClientId, List<SanitizedLockRequestProgress>> synthesizedRequestState =
                 synthesizeRequestState(outstandingLockRequests, descriptorToLockMap);
@@ -130,14 +131,14 @@ private List<SimpleLockRequestsWithSameDescriptor> generateOutstandingLocks(
                 .collect(Collectors.toList());
     }
 
-    private Map<ObfuscatedLockDescriptor, SimpleTokenInfo> generateHeldLocks(
+    private Multimap<ObfuscatedLockDescriptor, SimpleTokenInfo> generateHeldLocks(
             ConcurrentMap<HeldLocksToken, LockServiceImpl.HeldLocks<HeldLocksToken>> heldLocksTokenMap) {
         return heldLocksTokenMap.values().stream()
                 .flatMap(locks -> locks.getRealToken().getLocks().stream()
                         .map(lock -> Map.entry(
                                 this.lockDescriptorMapper.getDescriptorMapping(lock.getLockDescriptor()),
                                 SimpleTokenInfo.of(locks.getRealToken(), lock.getLockMode()))))
-                .collect(Collectors.toMap(Entry::getKey, Entry::getValue));
+                .collect(ImmutableSetMultimap.toImmutableSetMultimap(Entry::getKey, Entry::getValue));
     }
 
     private Map<ObfuscatedLockDescriptor, String> generateSyncState(u}(j (a5db35d08e52dedc10c9a0db02572d3b809a9531j: Jlock-impl/src/main/java/com/palantir/lock/logger/LockServiceTestUtils.javaj< modifiedj4 Kj5 K	j> Kj? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceTestUtils.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceTestUtils.javajC https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceTestUtils.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE X)  @@ -24,15 +24,13 @@
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.StringLockDescriptor;
 import java.math.BigInteger;
-import java.util.Arrays;
-import java.util.List;
+import java.util.Map;
 
 public class LockServiceTestUtils {
 
     public static HeldLocksToken getFakeHeldLocksToken(
-            String clientName, String requestingThread, BigInteger tokenId, String... descriptors) {
-        ImmutableSortedMap<LockDescriptor, LockMode> lockDescriptorLockMode =
-                getLockDescriptorLockMode(Arrays.asList(descriptors));
+            String clientName, String requestingThread, BigInteger tokenId, Map<String, LockMode> descriptors) {
+        ImmutableSortedMap<LockDescriptor, LockMode> lockDescriptorLockMode = getLockDescriptorLockMode(descriptors);
 
         return new HeldLocksToken(
                 tokenId,
@@ -45,11 +43,12 @@ public static HeldLocksToken getFakeHeldLocksToken(
                 requestingThread);
     }
 
-    public static ImmutableSortedMap<LockDescriptor, LockMode> getLockDescriptorLockMode(List<String> descriptors) {
+    public static ImmutableSortedMap<LockDescriptor, LockMode> getLockDescriptorLockMode(
+            Map<String, LockMode> descriptors) {
         ImmutableSortedMap.Builder<LockDescriptor, LockMode> builder = ImmutableSortedMap.naturalOrder();
-        for (String descriptor : descriptors) {
-            LockDescriptor descriptor1 = StringLockDescriptor.of(descriptor);
-            builder.put(descriptor1, LockMode.WRITE);
+        for (Map.Entry<String, LockMode> descriptorAndMode : descriptors.entrySet()) {
+            LockDescriptor descriptor1 = StringLockDescriptor.of(descriptorAndMode.getKey());
+            builder.put(descriptor1, descriptorAndMode.getValue());
         }
         return builder.buildOrThrow();
     }u}(j (296c1bf1d09ef2afae13517b51f18c423208a9e6j: >lock-impl/src/main/java/com/palantir/lock/logger/LogState.javaj< modifiedj4 Kj5 Kj> Kj? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLogState.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLogState.javajC https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLogState.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE X1  @@ -16,6 +16,7 @@
 
 package com.palantir.lock.logger;
 
+import com.google.common.collect.Multimap;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.SafeArg;
@@ -33,7 +34,7 @@ public interface LogState {
     List<SimpleLockRequestsWithSameDescriptor> getOutstandingRequests();
 
     @Safe
-    Map<ObfuscatedLockDescriptor, SimpleTokenInfo> getHeldLocks();
+    Multimap<ObfuscatedLockDescriptor, SimpleTokenInfo> getHeldLocks();
 
     @Safe
     Map<ObfuscatedLockDescriptor, String> getSyncState();u}(j (5b2b8d65d1a16e7b6ff4a49446104efd578d647dj: Jlock-impl/src/test/java/com/palantir/lock/logger/LockServiceSerDeTest.javaj<      modifiedj4 K
j5 Kj> Kj? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceSerDeTest.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceSerDeTest.javajC https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceSerDeTest.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE XP	  @@ -18,7 +18,6 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.fasterxml.jackson.databind.ObjectMapper;
-import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.lock.HeldLocksGrant;
@@ -42,7 +41,10 @@ public class LockServiceSerDeTest {
     @Test
     public void testSerialisationAndDeserialisationOfLockResponse() throws Exception {
         HeldLocksToken token = LockServiceTestUtils.getFakeHeldLocksToken(
-                "client A", "Fake thread", new BigInteger("1"), "held-lock-1", "logger-lock");
+                "client A",
+                "Fake thread",
+                new BigInteger("1"),
+                ImmutableMap.of("held-lock-1", LockMode.WRITE, "logger-lock", LockMode.WRITE));
         LockResponse response = new LockResponse(token);
         ObjectMapper mapper = new ObjectMapper();
         LockResponse deserializedLockResponse =
@@ -53,7 +55,10 @@ public void testSerialisationAndDeserialisationOfLockResponse() throws Exception
     @Test
     public void testSerialisationAndDeserialisationOfLockResponseWithLockHolders() throws Exception {
         HeldLocksToken token = LockServiceTestUtils.getFakeHeldLocksToken(
-                "client A", "Fake thread", new BigInteger("1"), "held-lock-1", "logger-lock");
+                "client A",
+                "Fake thread",
+                new BigInteger("1"),
+                ImmutableMap.of("held-lock-1", LockMode.WRITE, "logger-lock", LockMode.WRITE));
         Map<LockDescriptor, LockClient> lockHolders = ImmutableMap.of(
                 StringLockDescriptor.of("lock_id"),
                 LockClient.ANONYMOUS,
@@ -92,7 +97,8 @@ public void testSerialisationAndDeserialisationOfLockServerOptions() throws Exce
     @Test
     public void testSerialisationAndDeserialisationOfHeldLocksGrant() throws Exception {
         ImmutableSortedMap<LockDescriptor, LockMode> lockDescriptorLockMode =
-                LockServiceTestUtils.getLockDescriptorLockMode(ImmutableList.of("lock1", "lock2"));
+                LockServiceTestUtils.getLockDescriptorLockMode(
+                        ImmutableMap.of("lock1", LockMode.WRITE, "lock2", LockMode.WRITE));
 
         HeldLocksGrant heldLocksGrant = new HeldLocksGrant(
                 BigInteger.ONE,u}(j (072fb1ef70cfd7dc1f19cb3684f7d835be7c52fej: Plock-impl/src/test/java/com/palantir/lock/logger/LockServiceStateLoggerTest.javaj< modifiedj4 Kj5 Kj> Kj? https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLoggerTest.javajA https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLoggerTest.javajC https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLoggerTest.java?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE XL  @@ -19,6 +19,7 @@
 
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.common.collect.HashMultimap;
+import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSortedMap;
 import com.google.common.collect.MapMaker;
 import com.google.common.collect.Multimaps;
@@ -82,12 +83,24 @@ public static void setUp() {
         outstandingLockRequestMultimap.put(clientA, request2);
 
         HeldLocksToken token = LockServiceTestUtils.getFakeHeldLocksToken(
-                "client A", "Fake thread", new BigInteger("1"), "held-lock-1", "logger-lock");
+                "client A",
+                "Fake thread",
+                new BigInteger("1"),
+                ImmutableMap.of("held-lock-1", LockMode.WRITE, "logger-lock", LockMode.WRITE));
         HeldLocksToken token2 = LockServiceTestUtils.getFakeHeldLocksToken(
-                "client B", "Fake thread 2", new BigInteger("2"), "held-lock-2", "held-lock-3");
+                "client B",
+                "Fake thread 2",
+                new BigInteger("2"),
+                ImmutableMap.of("held-lock-2", LockMode.WRITE, "held-lock-3", LockMode.WRITE));
+        HeldLocksToken token3 = LockServiceTestUtils.getFakeHeldLocksToken(
+                "client C", "Fake thread 3", new BigInteger("3"), ImmutableMap.of("held-lock-4", LockMode.READ));
+        HeldLocksToken token4 = LockServiceTestUtils.getFakeHeldLocksToken(
+                "client D", "Fake thread 4", new BigInteger("4"), ImmutableMap.of("held-lock-4", LockMode.READ));
 
         heldLocksTokenMap.putIfAbsent(token, LockServiceImpl.HeldLocks.of(token, LockCollections.of()));
         heldLocksTokenMap.putIfAbsent(token2, LockServiceImpl.HeldLocks.of(token2, LockCollections.of()));
+        heldLocksTokenMap.putIfAbsent(token3, LockServiceImpl.HeldLocks.of(token2, LockCollections.of()));
+        heldLocksTokenMap.putIfAbsent(token4, LockServiceImpl.HeldLocks.of(token2, LockCollections.of()));
 
         LockServerLock lock1 = new LockServerLock(DESCRIPTOR_1, new LockClientIndices());
         syncStateMap.put(DESCRIPTOR_1, lock1);u}(j (a510647b74daa828dda4e74270e1dbeaa363e859j: versions.propsj< modifiedj4 Kj5 Kj> Kj? `https://github.com/palantir/atlasdb/blob/7254c0714a4018d3f746961b27439df5ea3a34c7/versions.propsjA _https://github.com/palantir/atlasdb/raw/7254c0714a4018d3f746961b27439df5ea3a34c7/versions.propsjC rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=7254c0714a4018d3f746961b27439df5ea3a34c7jE X  @@ -17,7 +17,7 @@ com.google.dagger:* = 2.44.1
 com.google.devtools.ksp:symbol-processing-api = 1.5.21-1.0.0-beta07
 com.google.errorprone:* = 2.10.0 # upgrading to 2.11.0 is blocked by a google bug
 com.google.errorprone:error_prone_annotations = 2.10.0
-com.google.guava:* = 31.1-jre
+com.google.guava:guava = 31.1-jre
 com.google.protobuf:* = 3.21.9
 com.googlecode.protobuf-java-format:* = 1.4
 com.lmax:disruptor = 3.4.2ueu(2ee0a1cc31181dc5b3d8d8f1ef9569a8e9d5ae89}(sha(2ee0a1cc31181dc5b3d8d8f1ef9569a8e9d5ae89node_idEC_kwDOAjP5fdoAKDJlZTBhMWNjMzExODFkYzViM2Q4ZDhmMWVmOTU2OWE4ZTlkNWFlODkcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-04-04T00:26:34Zu	committer}(jQ svc-excavator-botjS svc-excavator-bot@palantir.comjU 2023-04-04T00:26:34Zumessage,Excavator:  Upgrade buildscript dependenciestree}(jI (8ca281e1818da09a1b18350e418b4f6fd38debc7url`https://api.github.com/repos/palantir/atlasdb/git/trees/8ca281e1818da09a1b18350e418b4f6fd38debc7uja bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2ee0a1cc31181dc5b3d8d8f1ef9569a8e9d5ae89
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQrbroJEMmvEkpISILgAAAa/gEAxyvItVnRBWEMO9s2OyG31xJR
XhiHCqsP6lyuX0hBrfIA/RNgY2CckYzr+ekXIf5lJv6BdupXMXCVBfOm6vEBzQK+
=8D1l
-----END PGP SIGNATURE-----
payloadX$  tree 8ca281e1818da09a1b18350e418b4f6fd38debc7
parent c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1680567994 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1680567994 +0000

Excavator:  Upgrade buildscript dependenciesuuja ^https://api.github.com/repos/palantir/atlasdb/commits/2ee0a1cc31181dc5b3d8d8f1ef9569a8e9d5ae89html_urlShttps://github.com/palantir/atlasdb/commit/2ee0a1cc31181dc5b3d8d8f1ef9569a8e9d5ae89comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2ee0a1cc31181dc5b3d8d8f1ef9569a8e9d5ae89/commentsjO }(loginsvc-excavator-botidJjK MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5ja .https://api.github.com/users/svc-excavator-botjo $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminujW }(jt svc-excavator-botjv JjK MDQ6VXNlcjMzMjY2MzY4jx 4https://avatars.githubusercontent.com/u/33266368?v=4jz h5ja .https://api.github.com/users/svc-excavator-botjo $https://github.com/svc-excavator-botj} 8https://api.github.com/users/svc-excavator-bot/followersj Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}j >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}j Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}j <https://api.github.com/users/svc-excavator-bot/subscriptionsj 3https://api.github.com/users/svc-excavator-bot/orgsj 4https://api.github.com/users/svc-excavator-bot/reposj ?https://api.github.com/users/svc-excavator-bot/events{/privacy}j >https://api.github.com/users/svc-excavator-bot/received_eventsj Userj uparents]}(jI (c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263ja ^https://api.github.com/repos/palantir/atlasdb/commits/c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263jo Shttps://github.com/palantir/atlasdb/commit/c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263uastats}(totalK	additionsK	deletionsKufiles]}(jI (f8dd2896df56785008e3d0b5a18ac74905dc3a69filenamebuild.gradlestatusmodifiedj Kj KchangesKblob_url^https://github.com/palantir/atlasdb/blob/2ee0a1cc31181dc5b3d8d8f1ef9569a8e9d5ae89/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/2ee0a1cc31181dc5b3d8d8f1ef9569a8e9d5ae89/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=2ee0a1cc31181dc5b3d8d8f1ef9569a8e9d5ae89patchXX  @@ -7,14 +7,14 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.0.1'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.0'
         classpath 'com.netflix.nebula:nebula-publishing-plugin:20.2.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.37.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.38.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
-        classpath 'com.palantir.gradle.gitversion:gradle-git-version:2.0.0'
+        classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.31.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'uau(f8c2d5b1b11a0ba61aec7bdf9b56d5d2f3b5cfc7}(sha(f8c2d5b1b11a0ba61aec7bdf9b56d5d2f3b5cfc7node_idEC_kwDOAjP5fdoAKGY4YzJkNWIxYjExYTBiYTYxYWVjN2JkZjliNTZkNWQyZjNiNWNmYzccommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-03-10T19:31:20Zu	committer}(j David Schlosnaglej davids@palantir.comj 2023-03-10T19:31:20Zumessage-CassandraService::getKnownPort uses intStreamtree}(j (f9f97104b93994e0f1198f6d5fcdebb33eb7dc8burl`https://api.github.com/repos/palantir/atlasdb/git/trees/f9f97104b93994e0f1198f6d5fcdebb33eb7dc8buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f8c2d5b1b11a0ba61aec7bdf9b56d5d2f3b5cfc7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmQLhYgACgkQR9hsJ74Q
0l+iBggAkt2Exe0XVSpu4M+66e3XKDoaQsHCYcIo/suESSx4emDdRko/0aUMLt7y
+li+betNX42h6ZXCKOcG3wdvRLRn+TAZfwSuygUe4Mapt9weg+H1xSbF+Q4tBB8P
mPhAc6OwtruRISzFEZEWpz0f+5xMuDFcCuiiHVW26Mf1NIji+xCbf9euUZu7TGlN
hLnkJQ6l1OhxGeUBZknJ04JiMr9+qPLy/J+IgXfv5uKygdopIsMhToEySfh5AaBT
nEJ96hosJi2qvkVUqPOrnRasNMssSXIT2wYbLrqUjjcDl9iOU6B4Oc/orrgRef/a
ZlIYcDdmaRWI2YlMmeaM3yjU7spIRQ==
=Oyim
-----END PGP SIGNATURE-----payloadX  tree f9f97104b93994e0f1198f6d5fcdebb33eb7dc8b
parent f1bba94c8274f7f6320456eff60b71c6b9c3aa7a
author David Schlosnagle <davids@palantir.com> 1678476680 -0500
committer David Schlosnagle <davids@palantir.com> 1678476680 -0500

CassandraService::getKnownPort uses intStream
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/f8c2d5b1b11a0ba61aec7bdf9b56d5d2f3b5cfc7html_urlShttps://github.com/palantir/atlasdb/commit/f8c2d5b1b11a0ba61aec7bdf9b56d5d2f3b5cfc7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f8c2d5b1b11a0ba61aec7bdf9b56d5d2f3b5cfc7/commentsj }(loginschlosnaidMBj MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j %https://api.github.com/users/schlosnaj https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj }(j schlosnaj MBj MDQ6VXNlcjU0NTk0j 1https://avatars.githubusercontent.com/u/54594?v=4j h5j %https://api.github.com/users/schlosnaj https://github.com/schlosnaj /https://api.github.com/users/schlosna/followersj <https://api.github.com/users/schlosna/following{/other_user}j 5https://api.github.com/users/schlosna/gists{/gist_id}j <https://api.github.com/users/schlosna/starred{/owner}{/repo}j 3https://api.github.com/users/schlosna/subscriptionsj *https://api.github.com/users/schlosna/orgsj  +https://api.github.com/users/schlosna/reposj 6https://api.github.com/users/schlosna/events{/privacy}j 5https://api.github.com/users/schlosna/received_eventsj Userj uparents]}(j (f1bba94c8274f7f6320456eff60b71c6b9c3aa7aj ^https://api.github.com/repos/palantir/atlasdb/commits/f1bba94c8274f7f6320456eff60b71c6b9c3aa7aj Shttps://github.com/palantir/atlasdb/commit/f1bba94c8274f7f6320456eff60b71c6b9c3aa7auastats}(totalK$	additionsK	deletionsKufiles](}(j (65dcb2f6c10f36a62aa2bef9d4695349c9634345filenamebatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javastatusmodifiedj" Kj# KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/f8c2d5b1b11a0ba61aec7bdf9b56d5d2f3b5cfc7/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f8c2d5b1b11a0ba61aec7bdf9b56d5d2f3b5cfc7/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=f8c2d5b1b11a0ba61aec7bdf9b56d5d2f3b5cfc7patchX
  @@ -17,7 +17,6 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
-import com.google.common.collect.FluentIterable;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableRangeMap;
@@ -58,13 +57,13 @@
 import java.util.Comparator;
 import java.util.HashMap;
 import java.util.HashSet;
-import java.util.Iterator;
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
 import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Optional;
+import java.util.PrimitiveIterator.OfInt;
 import java.util.Random;
 import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
@@ -73,6 +72,7 @@
 import java.util.function.Predicate;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import java.util.stream.Stream;
 import org.apache.cassandra.thrift.EndpointDetails;
 import org.apache.cassandra.thrift.TokenRange;
@@ -302,22 +302,23 @@ private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) th
     }
 
     private int getKnownPort() throws UnknownHostException {
-        // explicitly not using streams due to allocation overhead
-        return onlyPort(FluentIterable.concat(
-                        FluentIterable.from(currentPools.keySet()).transform(CassandraServer::proxy),
-                        getServersSocketAddressesFromConfig())
-                .transform(InetSocketAddress::getPort));
+        // explicitly not collecting to a set to avoid allocation overhead
+        return onlyPort(Stream.concat(
+                        currentPools.keySet().stream().map(CassandraServer::proxy),
+                        getServersSocketAddressesFromConfig().stream())
+                .mapToInt(InetSocketAddress::getPort));
     }
 
     @VisibleForTesting
-    static int onlyPort(Iterable<? extends Integer> iterable) throws UnknownHostException {
-        Iterator<? extends Integer> iterator = iterable.iterator();
+    static int onlyPort(IntStream intStream) throws UnknownHostException {
+        // explicitly avoiding boxing from int -> Integer
+        OfInt iterator = intStream.iterator();
         if (!iterator.hasNext()) {
             throw new UnknownHostException("No single known port");
         }
-        int port = iterator.next();
+        int port = iterator.nextInt();
         while (iterator.hasNext()) {
-            if (port != iterator.next()) {
+            if (port != iterator.nextInt()) {
                 throw new UnknownHostException("No single known port");
             }
         }u}(j (2db406979f9a5425cdb8000224b1f86ad221ebe3j( fatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraServiceTest.javaj* modifiedj" Kj# Kj, K
j- https://github.com/palantir/atlasdb/blob/f8c2d5b1b11a0ba61aec7bdf9b56d5d2f3b5cfc7/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javaj/ https://github.com/palantir/atlasdb/raw/f8c2d5b1b11a0ba61aec7bdf9b56d5d2f3b5cfc7/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javaj1 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.java?ref=f8c2d5b1b11a0ba61aec7bdf9b56d5d2f3b5cfc7j3 Xd  @@ -33,7 +33,6 @@
 import com.palantir.refreshable.Refreshable;
 import java.net.InetSocketAddress;
 import java.net.UnknownHostException;
-import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.ThreadLocalRandom;
@@ -272,12 +271,12 @@ public void getRandomHostByActiveConnectionsReturnsDesiredHost() {
 
     @Test
     public void ports() throws Exception {
-        assertThat(CassandraService.onlyPort(List.of(1, 1, 1))).isEqualTo(1);
-        assertThat(IntStream.generate(() -> 4224).boxed().limit(15).collect(Collectors.toList()))
-                .hasSize(15)
-                .satisfies(cluster ->
-                        assertThat(CassandraService.onlyPort(cluster)).isEqualTo(4224));
-        assertThatThrownBy(() -> CassandraService.onlyPort(List.of(1, 2, 1)))
+        assertThat(CassandraService.onlyPort(IntStream.of(1, 1, 1))).isEqualTo(1);
+        assertThat(CassandraService.onlyPort(IntStream.generate(() -> 4224).limit(15)))
+                .isEqualTo(4224);
+        assertThat(CassandraService.onlyPort(IntStream.iterate(42, port -> port).limit(10_000_000)))
+                .isEqualTo(42);
+        assertThatThrownBy(() -> CassandraService.onlyPort(IntStream.of(1, 2, 1)))
                 .isInstanceOf(UnknownHostException.class)
                 .hasMessageContaining("No single known port");
     }ueu(76351d395490aed06e6dc553b508e77d800761b6}(sha(76351d395490aed06e6dc553b508e77d800761b6node_idEC_kwDOAjP5fdoAKDc2MzUxZDM5NTQ5MGFlZDA2ZTZkYzU1M2I1MDhlNzdkODAwNzYxYjYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T15:24:24Zu	committer}(jG 
Ahmed AlouanejI aalouane@palantir.comjK 2023-05-15T15:24:24Zumessageinitialtree}(j? (0711772f5c2d12aeeaebf6759bd5b218154ab850url`https://api.github.com/repos/palantir/atlasdb/git/trees/0711772f5c2d12aeeaebf6759bd5b218154ab850ujW bhttps://api.github.com/repos/palantir/atlasdb/git/commits/76351d395490aed06e6dc553b508e77d800761b6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiTqgACgkQPlMHVIT1
yhomuAgAuKVOY1RlsYIgi8kuolfNmFXYehfuS5yo6IbWjSOPoDNF12hk6B3+gUzu
BU+jG0owVb+NNyoMIErz6BtRA6Kx6tS26JrgmQl/c8UDZShm4L7tAnpR948aj5Z4
LN0A5G0X6EVKwPK0dqWzvCZSHwkcTUidTKcqPRcLF9MfYvUakYu/+hq9Xe9uTCGs
MDRKfN5iiXtoTK2CS4ZfzHxl+QSo+lvbd8Y9wQeSN2TPF25EcPRHRm857qZVvuAV
UzwAup3BZ54zzHoH/HaF/LxR4QJdGAbdBxSjiGoDrSnyPxqPMoLc1mbFDwf0+FBV
OnLvXS3st8jLRhyi5dXB4guaYZZ2cA==
=jq2U
-----END PGP SIGNATURE-----payloadtree 0711772f5c2d12aeeaebf6759bd5b218154ab850
parent 8e578cdd1c7763800f7ad168945183ad65020fd1
author Ahmed Alouane <aalouane@palantir.com> 1684164264 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684164264 +0100

initial
uujW ^https://api.github.com/repos/palantir/atlasdb/commits/76351d395490aed06e6dc553b508e77d800761b6html_urlShttps://github.com/palantir/atlasdb/commit/76351d395490aed06e6dc553b508e77d800761b6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/76351d395490aed06e6dc553b508e77d800761b6/commentsjE }(loginergo14idJjA MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jW #https://api.github.com/users/ergo14je https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujM }(jj ergo14jl JjA MDQ6VXNlcjMwOTAzNzM2jn 4https://avatars.githubusercontent.com/u/30903736?v=4jp h5jW #https://api.github.com/users/ergo14je https://github.com/ergo14js -https://api.github.com/users/ergo14/followersju :https://api.github.com/users/ergo14/following{/other_user}jw 3https://api.github.com/users/ergo14/gists{/gist_id}jy :https://api.github.com/users/ergo14/starred{/owner}{/repo}j{ 1https://api.github.com/users/ergo14/subscriptionsj} (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(j? (8e578cdd1c7763800f7ad168945183ad65020fd1jW ^https://api.github.com/repos/palantir/atlasdb/commits/8e578cdd1c7763800f7ad168945183ad65020fd1je Shttps://github.com/palantir/atlasdb/commit/8e578cdd1c7763800f7ad168945183ad65020fd1uastats}(totalK(	additionsK	deletionsK
ufiles](}(j? (5bdba1b75af5b245897d0c321061e511f00c99e1filename.circleci/config.ymlstatusmodifiedj Kj K	changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/76351d395490aed06e6dc553b508e77d800761b6/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/76351d395490aed06e6dc553b508e77d800761b6/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=76351d395490aed06e6dc553b508e77d800761b6patchX1  @@ -1,4 +1,4 @@
-version: 2
+version: 2.1
 
 jobs:
   build:
@@ -31,8 +31,10 @@ jobs:
           root: .
           paths: [ . ]
 
-  test:
-    parallelism: 14
+  test-suite:
+    parameters:
+      suite:
+        type: integer
     machine:
       image: ubuntu-2004:202111-02
     resource_class: xlarge
@@ -66,7 +68,7 @@ jobs:
               curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
               sudo ln -s /opt/java/zulu*/ /opt/java8
       - run:
-          command: ./scripts/circle-ci/run-circle-tests.sh
+          command: ./scripts/circle-ci/run-circle-tests.sh << parameters.suite >>
           no_output_timeout: 900
       - run: ./scripts/circle-ci/ensure-repo-clean.sh
       - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
@@ -80,9 +82,6 @@ jobs:
       - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
       - store_artifacts:
           path: /home/circleci/artifacts
-      - persist_to_workspace:
-          root: .
-          paths: [ . ]
 
   trial-publish:
     docker:
@@ -97,6 +96,12 @@ jobs:
       - attach_workspace: { at: . }
       - run: ./gradlew --scan --profile --stacktrace --continue publishToMavenLocal
 
+  test:
+    docker: [ { image: 'busybox:1.34.1' } ]
+    resource_class: small
+    steps:
+      - run: {command: echo "Ran all required tests successfully"}
+
   deploy:
     docker:
       - image: cimg/openjdk:11.0.10-node
@@ -130,15 +135,22 @@ jobs:
             fi
 
 workflows:
-  version: 2
   check:
     jobs:
       - build:
           filters:
             tags:
               only: /.*/
-      - test:
+      - test-suite:
           requires: [build]
+          matrix:
+            parameters:
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
+          filters:
+            tags:
+              only: /.*/
+      - test:
+          requires: [test-suite]
           filters:
             tags:
               only: /.*/u}(j? (dd376117c068272bff8de388549f0b737167064aj %scripts/circle-ci/run-circle-tests.shj modifiedj Kj Kj K
j {https://github.com/palantir/atlasdb/blob/76351d395490aed06e6dc553b508e77d800761b6/scripts%2Fcircle-ci%2Frun-circle-tests.shj zhttps://github.com/palantir/atlasdb/raw/76351d395490aed06e6dc553b508e77d800761b6/scripts%2Fcircle-ci%2Frun-circle-tests.shj https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=76351d395490aed06e6dc553b508e77d800761b6j X  @@ -50,16 +50,18 @@ do
     CONTAINER_0_EXCLUDE_ARGS="$CONTAINER_0_EXCLUDE_ARGS -x $task"
 done
 
+test_suite_index=$1
+
 # Short circuit the build if it's docs only
 if ./scripts/circle-ci/check-only-docs-changes.sh; then
-    if [ $CIRCLE_NODE_INDEX -eq 0 ]; then
+    if [ "$test_suite_index" -eq 0 ]; then
         checkDocsBuild
         exit $?
     fi
     exit 0
 fi
 
-if [ $CIRCLE_NODE_INDEX -eq 9 ] || [ $CIRCLE_NODE_INDEX -eq 10 ]; then
+if [ "$test_suite_index" -eq 9 ] || [ "$test_suite_index" -eq 10 ]; then
     printenv DOCKERHUB_PASSWORD | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
     # The oracle container is very large and takes a long time to pull.
     # If this image is not pulled here, the circle build usually times out.
@@ -71,7 +73,7 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
 # External builds have a 16gb limit.
-if [ "$CIRCLE_NODE_INDEX" -eq "13" ]; then
+if [ "$test_suite_index" -eq "13" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
@@ -80,7 +82,7 @@ fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64m
 
-case $CIRCLE_NODE_INDEX in
+case "$test_suite_index" in
     0) ./gradlew $BASE_GRADLE_ARGS check $CONTAINER_0_EXCLUDE_ARGS -x :atlasdb-jepsen-tests:check;;
     1) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_1[@]} ;;
     2) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_2[@]} -x :atlasdb-ete-tests:longTest -x atlasdb-ete-tests:dbkvsTest -x :atlasdb-ete-tests:timeLockMigrationTest ;;ueu(4d8833fdf4ee78ec1f01ef985467b7a0fe8f67c9}(sha(4d8833fdf4ee78ec1f01ef985467b7a0fe8f67c9node_idEC_kwDOAjP5fdoAKDRkODgzM2ZkZjRlZTc4ZWMxZjAxZWY5ODU0NjdiN2EwZmU4ZjY3Yzkcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-15T13:08:11Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-06-15T13:08:11ZumessageHdon't calculate empty read, but calculate directly if all wanted fetchedtree}(j (7e032f7cce99260f73552a07224a6e18a4546076url`https://api.github.com/repos/palantir/atlasdb/git/trees/7e032f7cce99260f73552a07224a6e18a4546076uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4d8833fdf4ee78ec1f01ef985467b7a0fe8f67c9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSLDTsACgkQJd22kJ7J
GiyJgQgAn62GANXLoRQS8rGPCB0HCPj3HdKJjoTQsmmI02Qg6jspXReJFpB30CVi
dvEXyEFUWHHVS/aBuopMubaQ2OyUPPGPaaahyyzzLCBOcWrcKUbyhsR4vrKo3n5R
pRDt9edvZRr8uAljFbUN57oZoDZH6R4hnGbHxfbelmypusWdG8qD8fKzl0V8xpFG
V99I5u07craqPpztk1B2faqgninOuxd69ifYs7kmU38Q7caZozB7X3aKU0WhH+Sx
C8yWCoY/DZTJT2Fer9ojipyXUPpvs8aqUPX7r7PGEfLMuTLVdJowROhRw4Uk6O/+
SlxiLNwb5UPM6hRIBnqQUBKf+8uKyw==
=mrOr
-----END PGP SIGNATURE-----payloadX#  tree 7e032f7cce99260f73552a07224a6e18a4546076
parent 968a1a240fee9a4dcae0fa862fe385c78eaa410a
author Lucas Meireles <meireles31@msn.com> 1686834491 +0100
committer Lucas Meireles <meireles31@msn.com> 1686834491 +0100

don't calculate empty read, but calculate directly if all wanted fetched
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/4d8833fdf4ee78ec1f01ef985467b7a0fe8f67c9html_urlShttps://github.com/palantir/atlasdb/commit/4d8833fdf4ee78ec1f01ef985467b7a0fe8f67c9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4d8833fdf4ee78ec1f01ef985467b7a0fe8f67c9/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j LucasIMEj Jg j MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj  6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsj Userj uparents]}(j (968a1a240fee9a4dcae0fa862fe385c78eaa410aj ^https://api.github.com/repos/palantir/atlasdb/commits/968a1a240fee9a4dcae0fa862fe385c78eaa410aj Shttps://github.com/palantir/atlasdb/commit/968a1a240fee9a4dcae0fa862fe385c78eaa410auastats}(totalK	additionsK	deletionsK	ufiles]}(j (d02635f005646c46caf4324d878129c6f5417445filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj  Kj! K	changesKblob_urlhttps://github.com/palantir/atlasdb/blob/4d8833fdf4ee78ec1f01ef985467b7a0fe8f67c9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4d8833fdf4ee78ec1f01ef985467b7a0fe8f67c9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=4d8833fdf4ee78ec1f01ef985467b7a0fe8f67c9patchXm  @@ -957,11 +957,13 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
                                 SafeArg.of("getOperation", operationName),
                                 SafeArg.of("durationMillis", getMillis));
                     }
-                    boolean hasReadEmptyCells = fromKeyValueService.size() < cellsWithNoLocalWrites.size();
-                    if (hasReadEmptyCells) {
+                    boolean allPossibleCellsReadAndNonEmpty =
+                            fromKeyValueService.size() == cellsWithNoLocalWrites.size();
+                    if (!allPossibleCellsReadAndNonEmpty) {
                         hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
                     }
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), !hasReadEmptyCells);
+                    validatePreCommitRequirementsOnReadIfNecessary(
+                            tableRef, getStartTimestamp(), allPossibleCellsReadAndNonEmpty);
                     return removeEmptyColumns(result, tableRef);
                 },
                 MoreExecutors.directExecutor());
@@ -982,11 +984,11 @@ public Map<Cell, byte[]> getIgnoringLocalWrites(TableReference tableRef, Set<Cel
         Map<Cell, byte[]> filtered = Maps.filterValues(unfiltered, Predicates.not(Value::isTombstone));
 
         TraceStatistics.incEmptyValues(unfiltered.size() - filtered.size());
-        boolean hasReadEmptyCells = unfiltered.size() < cells.size();
-        if (hasReadEmptyCells) {
+        boolean allPossibleCellsReadAndNonEmpty = unfiltered.size() == cells.size();
+        if (!allPossibleCellsReadAndNonEmpty) {
             hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
         }
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), !hasReadEmptyCells);
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndNonEmpty);
 
         return filtered;
     }
@@ -1708,12 +1710,12 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
             return Futures.transform(
                     asyncKeyValueService.getAsync(tableRef, keysToReload),
                     nextRawResults -> {
-                        boolean hasReadEmptyCells = nextRawResults.size() < keysToReload.size();
-                        if (hasReadEmptyCells) {
+                        boolean allPossibleCellsReadAndNonEmpty = nextRawResults.size() == keysToReload.size();
+                        if (!allPossibleCellsReadAndNonEmpty) {
                             hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
                         }
                         validatePreCommitRequirementsOnReadIfNecessary(
-                                tableRef, getStartTimestamp(), !hasReadEmptyCells);
+                                tableRef, getStartTimestamp(), allPossibleCellsReadAndNonEmpty);
                         return getRemainingResults(nextRawResults, keysAddedToResults);
                     },
                     MoreExecutors.directExecutor());uau(a12cc4ccd5de04bdee553d3dbebb0de602a28585}(sha(a12cc4ccd5de04bdee553d3dbebb0de602a28585node_idEC_kwDOAjP5fdoAKGExMmNjNGNjZDVkZTA0YmRlZTU1M2QzZGJlYmIwZGU2MDJhMjg1ODUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-04T18:09:24Zu	committer}(j= 
Sam Kramerj? skramer@palantir.comjA 2023-05-05T12:20:26Zumessageno-op buggify testtree}(j5 (5e0fce0180b161c2cfcffaee5d97063d80800ec5url`https://api.github.com/repos/palantir/atlasdb/git/trees/5e0fce0180b161c2cfcffaee5d97063d80800ec5ujM bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a12cc4ccd5de04bdee553d3dbebb0de602a28585
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRU9IoACgkQmPPOpKR4
XS0J4Af9GEJAVQFY4t615Gq9Xxf/Rq3PSUghEFXr1QTOfkT2LX9+2LuKDG//w2Xs
LN/vKdOS8jOBYS9SYAXacQ2uUybFyo/d4sbZbOGxtlj2quL6cffAWe9gCK20i4Gi
/zSwyXuATUwJTEy5QC5HHjiHDepnN1oHHki3o2eKEGqMyA/qWSe0k5Rx5e1Y1irl
v4cFq9D3fvCR0yBAz/r0pnUBZR1bt0njpVTvnVbs3XMoigxU0H6dRkMvOArLje1j
aa0/l3Y1N7yjNPyT6Of3FuTwwYV+EE3AnbJ6WnH86IAYVEomg8lXj4AEwYhqa68M
8Jgm7dMTJuyRx8XvjfBCE1o6KdMT3g==
=vrDF
-----END PGP SIGNATURE-----payloadtree 5e0fce0180b161c2cfcffaee5d97063d80800ec5
parent 01bb85f66836351aa69dd81b40bc7964e09ebe2a
author Sam Kramer <skramer@palantir.com> 1683223764 +0100
committer Sam Kramer <skramer@palantir.com> 1683289226 +0100

no-op buggify test
uujM ^https://api.github.com/repos/palantir/atlasdb/commits/a12cc4ccd5de04bdee553d3dbebb0de602a28585html_urlShttps://github.com/palantir/atlasdb/commit/a12cc4ccd5de04bdee553d3dbebb0de602a28585comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a12cc4ccd5de04bdee553d3dbebb0de602a28585/commentsj; }(login
Sam-KrameridJ^2_ j7 MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jM 'https://api.github.com/users/Sam-Kramerj[ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujC }(j` 
Sam-Kramerjb J^2_ j7 MDQ6VXNlcjYyMzg4MTQ=jd 3https://avatars.githubusercontent.com/u/6238814?v=4jf h5jM 'https://api.github.com/users/Sam-Kramerj[ https://github.com/Sam-Kramerji 1https://api.github.com/users/Sam-Kramer/followersjk >https://api.github.com/users/Sam-Kramer/following{/other_user}jm 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jo >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jq 5https://api.github.com/users/Sam-Kramer/subscriptionsjs ,https://api.github.com/users/Sam-Kramer/orgsju -https://api.github.com/users/Sam-Kramer/reposjw 8https://api.github.com/users/Sam-Kramer/events{/privacy}jy 7https://api.github.com/users/Sam-Kramer/received_eventsj{ Userj} uparents]}(j5 (01bb85f66836351aa69dd81b40bc7964e09ebe2ajM ^https://api.github.com/repos/palantir/atlasdb/commits/01bb85f66836351aa69dd81b40bc7964e09ebe2aj[ Shttps://github.com/palantir/atlasdb/commit/01bb85f66836351aa69dd81b40bc7964e09ebe2auastats}(totalK	additionsK	deletionsKufiles]}(j5 (c6d5d05237311ecd06793772e3b673f5836c8896filenameTatlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/a12cc4ccd5de04bdee553d3dbebb0de602a28585/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a12cc4ccd5de04bdee553d3dbebb0de602a28585/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.java?ref=a12cc4ccd5de04bdee553d3dbebb0de602a28585patch@@ -33,6 +33,6 @@ public void runNeverExecutes() {
 
     @Test
     public void asBooleanReturnsFalse() {
-        assertThat(DefaultBuggify.INSTANCE.asBoolean()).isFalse();
+        assertThat(NoOpBuggify.INSTANCE.asBoolean()).isFalse();
     }
 }uau(64b53584e75414e7364f04ca9f55abe3ac45d9ea}(sha(64b53584e75414e7364f04ca9f55abe3ac45d9eanode_idEC_kwDOAjP5fdoAKDY0YjUzNTg0ZTc1NDE0ZTczNjRmMDRjYTlmNTVhYmUzYWM0NWQ5ZWEcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-06-09T13:16:24Zu	committer}(j svc-excavator-botj svc-excavator-bot@palantir.comj 2023-06-09T13:16:24ZumessageExcavator:  Prefer AssertJtree}(j (9f3bca8b6617b869054c885e33d72f2b6912a04burl`https://api.github.com/repos/palantir/atlasdb/git/trees/9f3bca8b6617b869054c885e33d72f2b6912a04buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/64b53584e75414e7364f04ca9f55abe3ac45d9ea
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSDJigJEMmvEkpISILgAABfIwEAjEwuiDMnpnX7TW4hbnTZJknq
AdgrrFo/VLQiQKXBkYcA/0SYKFGqdetDb5/d3TxJ4c8M0ymOJvzUrPpfA6utOgI+
=/HyD
-----END PGP SIGNATURE-----
payloadX  tree 9f3bca8b6617b869054c885e33d72f2b6912a04b
parent 8d65a011e35cfff9bbdb38ad706cc252b977467b
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1686316584 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1686316584 +0000

Excavator:  Prefer AssertJuuj ^https://api.github.com/repos/palantir/atlasdb/commits/64b53584e75414e7364f04ca9f55abe3ac45d9eahtml_urlShttps://github.com/palantir/atlasdb/commit/64b53584e75414e7364f04ca9f55abe3ac45d9eacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/64b53584e75414e7364f04ca9f55abe3ac45d9ea/commentsj }(loginsvc-excavator-botidJj MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j .https://api.github.com/users/svc-excavator-botj $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj }(j svc-excavator-botj Jj MDQ6VXNlcjMzMjY2MzY4j 4https://avatars.githubusercontent.com/u/33266368?v=4j h5j .https://api.github.com/users/svc-excavator-botj $https://github.com/svc-excavator-botj 8https://api.github.com/users/svc-excavator-bot/followersj Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}j >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}j Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}j <https://api.github.com/users/svc-excavator-bot/subscriptionsj 3https://api.github.com/users/svc-excavator-bot/orgsj 4https://api.github.com/users/svc-excavator-bot/reposj ?https://api.github.com/users/svc-excavator-bot/events{/privacy}j >https://api.github.com/users/svc-excavator-bot/received_eventsj Userj uparents]}(j (8d65a011e35cfff9bbdb38ad706cc252b977467bj ^https://api.github.com/repos/palantir/atlasdb/commits/8d65a011e35cfff9bbdb38ad706cc252b977467bj Shttps://github.com/palantir/atlasdb/commit/8d65a011e35cfff9bbdb38ad706cc252b977467buastats}(totalK	additionsK		deletionsK	ufiles](}(j (502ae947a588e3d9dcebd649967cafd91a08374bfilenamedatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppTokenTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/64b53584e75414e7364f04ca9f55abe3ac45d9ea/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/64b53584e75414e7364f04ca9f55abe3ac45d9ea/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.java?ref=64b53584e75414e7364f04ca9f55abe3ac45d9eapatchX  @@ -46,9 +46,9 @@ public static Collection<Object[]> data() {
     @Test
     public void inputsAreValidBase16Strings() {
         assertThat(input).matches("^[0-9a-fA-F]*$");
-        assertThat(input.length() % 2 == 0)
+        assertThat(input.length() % 2)
                 .as("input must be even length to base16 decode")
-                .isTrue();
+                .isEqualTo(0);
         assertThat(CassandraHex.hexToBytes(input)).hasSize(input.length() / 2);
     }
 u}(j (a982645e9685b7e2b328546bb927b2c415ad29bfj latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/64b53584e75414e7364f04ca9f55abe3ac45d9ea/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/64b53584e75414e7364f04ca9f55abe3ac45d9ea/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=64b53584e75414e7364f04ca9f55abe3ac45d9eaj X  @@ -130,7 +130,7 @@ public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
         transactionStore.readWrite(txn -> txn.delete(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 1, 1)));
         invariant.accept(history, reference::set);
         assertThat(reference.get())
-                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                .containsExactly(CrossCellInconsistency.builder()
                         .putInconsistentValues(
                                 TableAndWorkloadCell.of(
                                         TABLE_NAME,
@@ -142,7 +142,7 @@ public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
                                         ImmutableWorkloadCell.of(
                                                 TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 1)),
                                 Optional.of(0))
-                        .build()));
+                        .build());
     }
 
     @Test
@@ -155,7 +155,7 @@ public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
                 TransientRowsWorkflows.VALUE));
         invariant.accept(history, reference::set);
         assertThat(reference.get())
-                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                .containsExactly(CrossCellInconsistency.builder()
                         .putInconsistentValues(
                                 TableAndWorkloadCell.of(
                                         TABLE_NAME,
@@ -167,7 +167,7 @@ public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
                                         ImmutableWorkloadCell.of(
                                                 TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 2)),
                                 Optional.empty())
-                        .build()));
+                        .build());
     }
 
     @Testu}(j (fe0267e6f697a967a6133f2554009d8a0be04d4cj katlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtilsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/64b53584e75414e7364f04ca9f55abe3ac45d9ea/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj https://github.com/palantir/atlasdb/raw/64b53584e75414e7364f04ca9f55abe3ac45d9ea/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.java?ref=64b53584e75414e7364f04ca9f55abe3ac45d9eaj X  @@ -67,7 +67,7 @@ public void performTransfersReturnsBalancesWithCorrectSum() {
         when(random.nextInt(anyInt())).thenReturn(0, 1);
         Map<Integer, Integer> balances = Map.of(0, 1, 1, 1);
         Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
-        assertThat(newBalances).isEqualTo(Map.of(0, 0, 1, 2));
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(Map.of(0, 0, 1, 2));
         assertThat(newBalances.values().stream().mapToInt(Integer::intValue).sum())
                 .isEqualTo(2);
     }
@@ -77,6 +77,6 @@ public void performsTransfersOnlyIfValueWouldNotBeBelowZero() {
         when(random.nextInt(anyInt())).thenReturn(0, 1);
         Map<Integer, Integer> balances = Map.of(0, 0, 1, 2);
         Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
-        assertThat(newBalances).isEqualTo(balances);
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(balances);
     }
 }u}(j (7ae440730798415742814c38fb59d0707273036ej datlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingGraphTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/64b53584e75414e7364f04ca9f55abe3ac45d9ea/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj https://github.com/palantir/atlasdb/raw/64b53584e75414e7364f04ca9f55abe3ac45d9ea/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.java?ref=64b53584e75414e7364f04ca9f55abe3ac45d9eaj X=  @@ -101,6 +101,6 @@ public void generateNewRingReturnsValidRing() {
 
     @Test
     public void asMapConvertsCorrectly() {
-        assertThat(RingGraph.from(VALID_RING).asMap()).isEqualTo(VALID_RING);
+        assertThat(RingGraph.from(VALID_RING).asMap()).containsExactlyInAnyOrderEntriesOf(VALID_RING);
     }
 }ueu(a90667bdbe564afc78d491359b9e12c143b333a6}(sha(a90667bdbe564afc78d491359b9e12c143b333a6node_idEC_kwDOAjP5fdoAKGE5MDY2N2JkYmU1NjRhZmM3OGQ0OTEzNTliOWUxMmMxNDNiMzMzYTYcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-04-26T09:01:37Zu	committer}(jC GitHubjE noreply@github.comjG 2023-04-26T09:01:37Zumessage$[CBT] Run build with 2xlarge (#6540)tree}(j; (565f435d60fa4018de617a1544be420ccdd72105url`https://api.github.com/repos/palantir/atlasdb/git/trees/565f435d60fa4018de617a1544be420ccdd72105ujS bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a90667bdbe564afc78d491359b9e12c143b333a6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkSOhxCRBK7hj4Ov3rIwAA1QEIAGuSx4v3UosG23njarw30eyA
xpepiNRSgFyltfg9HeR5IUaDmv3uQPbGZNv21PAVCaxBVyIFZAqTSPUswUvpEX1S
9Q66dzlC4niJ1zZkQ07cYXWN+Y1UWOEgChMwxDI/+/uZxzfM6/bwSj0I9lIMuhky
dnbunxwPHfMunTACeDnkHqgKZ9Stc2GK5CNDsBn00dYGnlkYp3JhwGvfJjPbf2Q7
KmEvNVO8ht9MJWBB+3OTJ8ZRnF+34p7vJ0ZT5Pqku/rM1CQUpaGLQ8Mt0I1+WHye
oPkWUN+tiQGRFv03XeXTjXlMY0IhfSrV68oF3LZ9tHp4QLgv+IxYxXVTrz2ylVM=
=KStL
-----END PGP SIGNATURE-----
payloadX	  tree 565f435d60fa4018de617a1544be420ccdd72105
parent a9991c18e0bcb2a0729a21d6568df6bf7ba3e3a1
author aalouane <30903736+ergo14@users.noreply.github.com> 1682499697 +0100
committer GitHub <noreply@github.com> 1682499697 +0000

[CBT] Run build with 2xlarge (#6540)

 uujS ^https://api.github.com/repos/palantir/atlasdb/commits/a90667bdbe564afc78d491359b9e12c143b333a6html_urlShttps://github.com/palantir/atlasdb/commit/a90667bdbe564afc78d491359b9e12c143b333a6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a90667bdbe564afc78d491359b9e12c143b333a6/commentsjA }(loginergo14idJj= MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jS #https://api.github.com/users/ergo14ja https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujI }(jf web-flowjh J/j= MDQ6VXNlcjE5ODY0NDQ3jj 4https://avatars.githubusercontent.com/u/19864447?v=4jl h5jS %https://api.github.com/users/web-flowja https://github.com/web-flowjo /https://api.github.com/users/web-flow/followersjq <https://api.github.com/users/web-flow/following{/other_user}js 5https://api.github.com/users/web-flow/gists{/gist_id}ju <https://api.github.com/users/web-flow/starred{/owner}{/repo}jw 3https://api.github.com/users/web-flow/subscriptionsjy *https://api.github.com/users/web-flow/orgsj{ +https://api.github.com/users/web-flow/reposj} 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j; (a9991c18e0bcb2a0729a21d6568df6bf7ba3e3a1jS ^https://api.github.com/repos/palantir/atlasdb/commits/a9991c18e0bcb2a0729a21d6568df6bf7ba3e3a1ja Shttps://github.com/palantir/atlasdb/commit/a9991c18e0bcb2a0729a21d6568df6bf7ba3e3a1uastats}(totalK	additionsK	deletionsKufiles](}(j; (d2b3c3b68679a697a69d34da94a33bd15fd0e53afilename.circleci/config.ymlstatusmodifiedj Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/a90667bdbe564afc78d491359b9e12c143b333a6/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/a90667bdbe564afc78d491359b9e12c143b333a6/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=a90667bdbe564afc78d491359b9e12c143b333a6patchX}  @@ -4,7 +4,7 @@ jobs:
   build:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: xlarge
+    resource_class: 2xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"u}(j; (9bdb41d8ffed33be231b3497c550f32137ae4e87j $changelog/@unreleased/pr-6540.v2.ymlj addedj Kj K j Kj |https://github.com/palantir/atlasdb/blob/a90667bdbe564afc78d491359b9e12c143b333a6/changelog%2F%40unreleased%2Fpr-6540.v2.ymlj {https://github.com/palantir/atlasdb/raw/a90667bdbe564afc78d491359b9e12c143b333a6/changelog%2F%40unreleased%2Fpr-6540.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6540.v2.yml?ref=a90667bdbe564afc78d491359b9e12c143b333a6j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[CBT] Run build with 2xlarge'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6540ueu(8c834eaf6846ba849e1c3e93ba28648b5a72271b}(sha(8c834eaf6846ba849e1c3e93ba28648b5a72271bnode_idEC_kwDOAjP5fdoAKDhjODM0ZWFmNjg0NmJhODQ5ZTFjM2U5M2JhMjg2NDhiNWE3MjI3MWIcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-07-21T01:02:36Zu	committer}(j David Schlosnaglej davids@palantir.comj 2023-07-21T01:02:36Zumessage@Merge remote-tracking branch 'origin/develop' into ds/primitivestree}(j (440c9c2270e035cdbe111bdda746353a951c734burl`https://api.github.com/repos/palantir/atlasdb/git/trees/440c9c2270e035cdbe111bdda746353a951c734buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8c834eaf6846ba849e1c3e93ba28648b5a72271b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmS52S4ACgkQR9hsJ74Q
0l/Vigf8D5Z3SPHMJBezJw/D71+Sx2rbwsjYoTDHZ5yJ8986OGbZBDCRi5sB7fwO
kT1BUtvJktRaD86SnJUWebIYcXTIQXtrQpGwDCSCBI/KvfVIiWAqidXejOdsauVr
Qz/z0hiDWxyMBIpayRDQLf7k74E5GNacRcfpLgS0RvGY5OT+gu1KnuEmpt0Mkn5M
JmhWo7gV6onza2rhcDkcyrDyB/LOtHEGKvM5TKOKVkel70opijPsIkoG2AezK08O
MOz1rDEjJ2g4eEzTwaYaDrM0POPyIK4PlfN9JFQPzK5D3P6BhAiU3syM9ycg0LUM
Tmjk/GI771B+zY9rijRcNsO4bPK3fA==
=bw7s
-----END PGP SIGNATURE-----payloadXS  tree 440c9c2270e035cdbe111bdda746353a951c734b
parent 1eaca39f57caf130cd591ba5f38af03e1292b3ab
parent 4e050a9cb4f8f2b45b8b700df082f442d2fec694
author David Schlosnagle <davids@palantir.com> 1689901356 -0400
committer David Schlosnagle <davids@palantir.com> 1689901356 -0400

Merge remote-tracking branch 'origin/develop' into ds/primitives
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/8c834eaf6846ba849e1c3e93ba28648b5a72271bhtml_urlShttps://github.com/palantir/atlasdb/commit/8c834eaf6846ba849e1c3e93ba28648b5a72271bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8c834eaf6846ba849e1c3e93ba28648b5a72271b/commentsj }(loginschlosnaidMBj MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j %https://api.github.com/users/schlosnaj https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj }(j schlosnaj MBj MDQ6VXNlcjU0NTk0j 1https://avatars.githubusercontent.com/u/54594?v=4j h5j %https://api.github.com/users/schlosnaj https://github.com/schlosnaj /https://api.github.com/users/schlosna/followersj <https://api.github.com/users/schlosna/following{/other_user}j 5https://api.github.com/users/schlosna/gists{/gist_id}j <https://api.github.com/users/schlosna/starred{/owner}{/repo}j 3https://api.github.com/users/schlosna/subscriptionsj *https://api.github.com/users/schlosna/orgsj +https://api.github.com/users/schlosna/reposj 6https://api.github.com/users/schlosna/events{/privacy}j 5https://api.github.com/users/schlosna/received_eventsj  Userj uparents](}(j (1eaca39f57caf130cd591ba5f38af03e1292b3abj ^https://api.github.com/repos/palantir/atlasdb/commits/1eaca39f57caf130cd591ba5f38af03e1292b3abj Shttps://github.com/palantir/atlasdb/commit/1eaca39f57caf130cd591ba5f38af03e1292b3abu}(j (4e050a9cb4f8f2b45b8b700df082f442d2fec694j ^https://api.github.com/repos/palantir/atlasdb/commits/4e050a9cb4f8f2b45b8b700df082f442d2fec694j Shttps://github.com/palantir/atlasdb/commit/4e050a9cb4f8f2b45b8b700df082f442d2fec694uestats}(totalM:	additionsM	deletionsKufiles](}(j (64ceb8b5e885dd8fcf5ecc5cbb31964147a5e35dfilenameEatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/Cell.javastatusmodifiedj  Kj! KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCell.javaraw_urlhttps://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCell.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCell.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bpatchX  @@ -137,6 +137,9 @@ public boolean equals(Object obj) {
             return false;
         }
         Cell other = (Cell) obj;
+        if (this.hashCode != 0 && other.hashCode != 0 && this.hashCode != other.hashCode) {
+            return false;
+        }
         return Arrays.equals(rowName, other.rowName) && Arrays.equals(columnName, other.columnName);
     }
 
@@ -147,15 +150,17 @@ public int hashCode() {
          * accessed via hash collections, but computation can be expensive, and
          * allow for benign data races.
          */
-        if (hashCode == 0) {
+        int hash = this.hashCode;
+        if (hash == 0) {
             /*
              * This hashCode() implementation has a rather unfortunate case where it is always 0 if the row name and
              * the column name match. We did not want to change it to keep backwards compatibility.
              * See {@link CellReference#goodHash()}
              */
-            hashCode = Arrays.hashCode(rowName) ^ Arrays.hashCode(columnName);
+            hash = Arrays.hashCode(rowName) ^ Arrays.hashCode(columnName);
+            this.hashCode = hash;
         }
-        return hashCode;
+        return hash;
     }
 
     @Overrideut      }(j (b258440488d99978b8ead154e3fe2ac76efcff9fj& Fatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/Value.javaj( modifiedj  Kj! Kj* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FValue.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FValue.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FValue.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X]  @@ -18,7 +18,6 @@
 import com.fasterxml.jackson.annotation.JsonCreator;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.google.common.base.Function;
-import com.google.common.base.MoreObjects;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.util.Measurable;
 import com.palantir.logsafe.Preconditions;
@@ -38,7 +37,7 @@ public final class Value implements Serializable, Measurable {
 
     @JsonCreator
     public static Value create(@JsonProperty("contents") byte[] contents, @JsonProperty("timestamp") long timestamp) {
-        return new Value(MoreObjects.firstNonNull(contents, PtBytes.EMPTY_BYTE_ARRAY), timestamp);
+        return new Value(Objects.requireNonNullElse(contents, PtBytes.EMPTY_BYTE_ARRAY), timestamp);
     }
 
     public static Value createWithCopyOfData(byte[] contents, long timestamp) {u}(j (aa106081adcb5d28ce3ea1dc5396095caa8be759j& iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj( modifiedj  K
j! K	j* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X  @@ -71,6 +71,7 @@
 import com.palantir.atlasdb.keyvalue.api.TimestampRangeDelete;
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolImpl.StartupChecks;
+import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServices.ColumnAndTimestamp;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServices.StartTsResultsCollector;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraVerifier.CassandraVerifierConfig;
 import com.palantir.atlasdb.keyvalue.cassandra.RowColumnRangeExtractor.RowColumnRangeResult;
@@ -109,7 +110,6 @@
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
-import com.palantir.util.Pair;
 import com.palantir.util.paging.AbstractPagingIterable;
 import com.palantir.util.paging.SimpleTokenBackedResultsPage;
 import com.palantir.util.paging.TokenBackedBasicResultsPage;
@@ -731,9 +731,9 @@ private SlicePredicate getNextLexicographicalSlicePredicate(List<ColumnOrSuperCo
         Preconditions.checkState(!columns.isEmpty(), "Columns was empty. This is probably an AtlasDb bug");
 
         Column lastColumn = columns.get(columns.size() - 1).getColumn();
-        Pair<byte[], Long> columnNameAndTimestamp = CassandraKeyValueServices.decompose(lastColumn.name);
+        ColumnAndTimestamp columnNameAndTimestamp = CassandraKeyValueServices.decomposeColumn(lastColumn.name);
         ByteBuffer nextLexicographicColumn = CassandraKeyValueServices.makeCompositeBuffer(
-                RangeRequests.nextLexicographicName(columnNameAndTimestamp.lhSide), Long.MAX_VALUE);
+                RangeRequests.nextLexicographicName(columnNameAndTimestamp.columnName()), Long.MAX_VALUE);
 
         return SlicePredicates.create(
                 Range.of(nextLexicographicColumn, Range.UNBOUND_END),
@@ -897,8 +897,8 @@ private Map<byte[], RowColumnRangeIterator> getRowsColumnRangeIteratorForSingleH
             IdentityHashMap<byte[], byte[]> incompleteRowsToNextColumns = new IdentityHashMap<>();
             for (Map.Entry<byte[], Column> e : rowsToLastCompositeColumns.entrySet()) {
                 byte[] row = e.getKey();
-                byte[] col =
-                        CassandraKeyValueServices.decomposeName(e.getValue()).getLhSide();
+                byte[] col = CassandraKeyValueServices.decomposeColumnName(e.getValue())
+                        .columnName();
                 // If we read a version of the cell before our start timestamp, it will be the most recent version
                 // readable to us and we can continue to the next column. Otherwise we have to continue reading
                 // this column.
@@ -1048,8 +1048,9 @@ public TokenBackedBasicResultsPage<Map.Entry<Cell, Value>, byte[]> apply(
                                                 .getResults()
                                                 .getOrDefault(row, Collections.emptyMap());
                                         ColumnOrSuperColumn lastColumn = values.get(values.size() - 1);
-                                        byte[] lastCol = CassandraKeyValueServices.decomposeName(lastColumn.getColumn())
-                                                .getLhSide();
+                                        byte[] lastCol = CassandraKeyValueServices.decomposeColumnName(
+                                                        lastColumn.getColumn())
+                                                .columnName();
                                         // Same idea as the getRows case to handle seeing only newer entries of a column
                                         boolean completedCell = ret.get(Cell.create(row, lastCol)) != null;
                                         if (isEndOfColumnRange(
@@ -1868,7 +1869,8 @@ public void putUnlessExists(final TableReference tableRef, final Map<Cell, byte[
                                 casResult.getCurrent_values().stream()
                                         .map(column -> Cell.create(
                                                 partition.getKey().toByteArray(),
-                                                CassandraKeyValueServices.decompose(column.bufferForName()).lhSide))
+                                                CassandraKeyValueServices.decomposeColumn(column.bufferForName())
+                                                        .columnName()))
                                         .collect(Collectors.toList())));
                     }
                 }
@@ -2001,7 +2003,9 @@ public void multiCheckAndSet(MultiCheckAndSetRequest request) throws MultiCheckA
             if (!casResult.isSuccess()) {
                 Map<Cell, byte[]> currentValues = KeyedStream.of(casResult.getCurrent_values())
                         .mapKeys(column -> Cell.create(
-                                request.rowName(), CassandraKeyValueServices.decompose(column.bufferForName()).lhSide))
+                                request.rowName(),
+                                CassandraKeyValueServices.decomposeColumn(column.bufferForName())
+                                        .columnName()))
                         .map(Column::getValue)
                         .collectToMap();
 u}(j (d52315581c77162d527303298aa7da37af522cabj& fatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServices.javaj( modifiedj  K`j! Kj* K{j+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X*  @@ -29,14 +29,14 @@
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.util.MetricsManager;
-import com.palantir.common.annotation.Output;
 import com.palantir.common.base.RunnableCheckedException;
 import com.palantir.common.base.Throwables;
 import com.palantir.common.visitor.Visitor;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.util.Pair;
+import com.palantir.util.io.AvailabilityRequirement;
 import java.nio.ByteBuffer;
 import java.nio.ByteOrder;
 import java.nio.charset.Charset;
@@ -67,9 +67,16 @@ private CassandraKeyValueServices() {
         // Utility class
     }
 
+    static void waitForSchemaVersions(
+            int schemaMutationTimeMillis, CassandraClient client, String unsafeSchemaChangeDescription)
+            throws TException {
+        waitForSchemaVersions(
+                schemaMutationTimeMillis, client, unsafeSchemaChangeDescription, AvailabilityRequirement.QUORUM);
+    }
+
     /**
-     * Attempt to wait until a quorum of nodes has reached consensus on a schema version, and it is known that no
-     * other nodes currently disagree with this quorum.
+     * Attempt to wait until the specified number of nodes are available and there are no disagreements on schema
+     * version.
      * <p>
      * The goals of this method include:
      * <ol>
@@ -78,23 +85,30 @@ private CassandraKeyValueServices() {
      *         Cassandra can more efficiently come to agreement.
      *     </li>
      *     <li>
-     *         Avoid performing schema mutations if they could potentially cause a split-brain in terms of how the
-     *         schema evolves. This is achieved by ensuring a quorum of reachable nodes agree on the version. There
-     *         is of course a check-then-act race condition, but Cassandra is able to eventually recover.
+     *         Avoid performing schema mutations if our availability requirements are not met. This is to prevent a
+     *         split-brain situation in respect to the schema. While this _should_ be a safe state to be in, there is
+     *         little-to-no risk to availability for waiting for consensus and availability. If the specified
+     *         availability requirements are not met, then it is very likely Cassandra is in an outage anyways, which
+     *         means it is ok for a service to not start up. There is of course a check-then-act race condition, but
+     *         Cassandra is able to eventually recover.
      *     </li>
      *     <li>
      *         Allowing schema mutations to take place in the presence of failures (the KVS needs to be able to
      *         tolerate a limited number of Cassandra node-level failures).
      *     </li>
      * </ol>
      *
-     * @param schemaMutationTimeMillis      time to wait for nodes' schema versions to match.
+     * @param schemaMutationTimeMillis      Time to wait for nodes' schema versions to match.
      * @param client                        Cassandra client.
-     * @param unsafeSchemaChangeDescription description of the schema change that was performed prior to this check.
+     * @param unsafeSchemaChangeDescription Description of the schema change that was performed prior to this check.
+     * @param availabilityRequirement       Number of Cassandra nodes that must be reachable for schema consensus.
      * @throws IllegalStateException if we wait for more than schemaMutationTimeoutMillis specified in config.
      */
     static void waitForSchemaVersions(
-            int schemaMutationTimeMillis, CassandraClient client, String unsafeSchemaChangeDescription)
+            int schemaMutationTimeMillis,
+            CassandraClient client,
+            String unsafeSchemaChangeDescription,
+            AvailabilityRequirement availabilityRequirement)
             throws TException {
         long start = System.currentTimeMillis();
         long sleepTime = INITIAL_SLEEP_TIME;
@@ -103,7 +117,7 @@ static void waitForSchemaVersions(
             // This may only include some of the nodes if the coordinator hasn't shaken hands with someone; however,
             // this existed largely as a defense against performance issues with concurrent schema modifications.
             versions = client.describe_schema_versions();
-            if (majorityOfClusterHasConsistentSchemaVersionAndNoDivergentNodes(versions)) {
+            if (clusterSatisfiesAvailabilityRequirementAndNoDivergentSchemas(versions, availabilityRequirement)) {
                 return;
             }
             sleepTime = sleepAndGetNextBackoffTime(sleepTime);
@@ -149,8 +163,8 @@ static void runWithWaitingForSchemas(
         waitForSchemaVersions(config.schemaMutationTimeoutMillis(), client, "after " + unsafeSchemaChangeDescription);
     }
 
-    private static boolean majorityOfClusterHasConsistentSchemaVersionAndNoDivergentNodes(
-            Map<String, List<String>> versions) {
+    private static boolean clusterSatisfiesAvailabilityRequirementAndNoDivergentSchemas(
+            Map<String, List<String>> versions, AvailabilityRequirement availabilityRequirement) {
         if (getDistinctReachableSchemas(versions).size() != 1) {
             return false;
         }
@@ -159,7 +173,8 @@ private static boolean majorityOfClusterHasConsistentSchemaVersionAndNoDivergent
         int numUnreachableNodes = Optional.ofNullable(versions.get(VERSION_UNREACHABLE))
                 .map(List::size)
                 .orElse(0);
-        return totalNodes - numUnreachableNodes >= (totalNodes / 2) + 1;
+        int availableNodes = totalNodes - numUnreachableNodes;
+        return availabilityRequirement.satisfies(availableNodes, totalNodes);
     }
 
     private static List<String> getDistinctReachableSchemas(Map<String, List<String>> versions) {
@@ -229,7 +244,16 @@ public static ByteBuffer makeCompositeBuffer(byte[] colName, long positiveTimest
         return buffer;
     }
 
+    /**
+     * @deprecated use {@link #decomposeColumn(ByteBuffer)}
+     */
+    @Deprecated
     static Pair<byte[], Long> decompose(ByteBuffer inputComposite) {
+        ColumnAndTimestamp columnAndTimestamp = decomposeColumn(inputComposite);
+        return Pair.create(columnAndTimestamp.columnName(), columnAndTimestamp.timestamp());
+    }
+
+    static ColumnAndTimestamp decomposeColumn(ByteBuffer inputComposite) {
         ByteBuffer composite = inputComposite.slice().order(ByteOrder.BIG_ENDIAN);
 
         short len = composite.getShort();
@@ -243,14 +267,23 @@ static Pair<byte[], Long> decompose(ByteBuffer inputComposite) {
         com.palantir.logsafe.Preconditions.checkArgument(shouldBe8 == 8);
         long ts = composite.getLong();
 
-        return Pair.create(colName, ~ts);
+        return new ColumnAndTimestamp(colName, ~ts);
+    }
+
+    /**
+     * @deprecated use {@link #decomposeColumnName(Column)}
+     */
+    @Deprecated
+    public static Pair<byte[], Long> decomposeName(Column column) {
+        ColumnAndTimestamp columnAndTimestamp = decomposeColumnName(column);
+        return Pair.create(columnAndTimestamp.columnName(), columnAndTimestamp.timestamp());
     }
 
     /**
      * Convenience method to get the name buffer for the specified column and
      * decompose it into the name and timestamp.
      */
-    public static Pair<byte[], Long> decomposeName(Column column) {
+    public static ColumnAndTimestamp decomposeColumnName(Column column) {
         ByteBuffer nameBuffer;
         if (column.isSetName()) {
             nameBuffer = column.bufferForName();
@@ -260,7 +293,7 @@ public static Pair<byte[], Long> decomposeName(Column column) {
             // the transform to bytes and wrap ourselves
             nameBuffer = ByteBuffer.wrap(column.getName());
         }
-        return decompose(nameBuffer);
+        return decomposeColumn(nameBuffer);
     }
 
     public static byte[] getBytesFromByteBuffer(ByteBuffer buffer) {
@@ -402,17 +435,13 @@ public Multimap<Cell, Long> getCollectedResults() {
 
         @Override
         public synchronized void visit(Map<ByteBuffer, List<ColumnOrSuperColumn>> results) {
-            extractTimestampResults(collectedResults, results);
-        }
-    }
-
-    private static void extractTimestampResults(
-            @Output Multimap<Cell, Long> ret, Map<ByteBuffer, List<ColumnOrSuperColumn>> results) {
-        for (Map.Entry<ByteBuffer, List<ColumnOrSuperColumn>> result : results.entrySet()) {
-            byte[] row = CassandraKeyValueServices.getBytesFromByteBuffer(result.getKey());
-            for (ColumnOrSuperColumn col : result.getValue()) {
-                Pair<byte[], Long> pair = CassandraKeyValueServices.decomposeName(col.column);
-                ret.put(Cell.create(row, pair.lhSide), pair.rhSide);
+            for (Map.Entry<ByteBuffer, List<ColumnOrSuperColumn>> result : results.entrySet()) {
+                byte[] row = CassandraKeyValueServices.getBytesFromByteBuffer(result.getKey());
+                for (ColumnOrSuperColumn col : result.getValue()) {
+                    ColumnAndTimestamp columnAndTimestamp = CassandraKeyValueServices.decomposeColumnName(col.column);
+                    Cell cell = Cell.create(row, columnAndTimestamp.columnName());
+                    collectedResults.put(cell, columnAndTimestamp.timestamp());
+                }
             }
         }
     }
@@ -429,4 +458,44 @@ static TableMetadata getMetadataOrDefaultToGeneric(byte[] metadata) {
         }
         return TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(metadata);
     }
+
+    public static class ColumnAndTimestamp {
+        private final long timestamp;
+        private final byte[] columnName;
+
+        ColumnAndTimestamp(byte[] columnName, long timestamp) {
+            this.columnName = columnName;
+            this.timestamp = timestamp;
+        }
+
+        public byte[] columnName() {
+            return columnName;
+        }
+
+        public long timestamp() {
+            return timestamp;
+        }
+
+        @Override
+        public boolean equals(Object obj) {
+            if (this == obj) {
+                return true;
+            }
+            if (obj == null || getClass() != obj.getClass()) {
+                return false;
+            }
+            ColumnAndTimestamp that = (ColumnAndTimestamp) obj;
+            return timestamp == that.timestamp && Arrays.equals(columnName, that.columnName);
+        }
+
+        @Override
+        public int hashCode() {
+            return 31 * Long.hashCode(timestamp) + Arrays.hashCode(columnName);
+        }
+
+        @Override
+        public String toString() {
+            return "ColumnAndTimestamp{columnName=" + Arrays.toString(columnName) + ", timestamp=" + timestamp + '}';
+        }
+    }
 }u}(j (5401bf3d0166157025601435b19f8490ce4f1643j& ^atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraVerifier.javaj( modifiedj  Kj! Kj* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X
  @@ -40,6 +40,7 @@
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.util.io.AvailabilityRequirement;
 import java.net.InetSocketAddress;
 import java.time.Duration;
 import java.util.HashSet;
@@ -238,25 +239,36 @@ private static boolean attemptToCreateIfNotExists(InetSocketAddress host, Cassan
         }
     }
 
+    @VisibleForTesting
     // swallows the expected TException subtype NotFoundException, throws connection problem related ones
-    private static boolean keyspaceAlreadyExists(CassandraServer host, CassandraVerifierConfig verifierConfig)
+    static boolean keyspaceAlreadyExists(CassandraClient client, CassandraVerifierConfig verifierConfig)
             throws TException {
-        try (CassandraClient client = CassandraClientFactory.getClientInternal(host, verifierConfig.clientConfig())) {
+        try {
             client.describe_keyspace(verifierConfig.keyspace());
             CassandraKeyValueServices.waitForSchemaVersions(
                     verifierConfig.schemaMutationTimeoutMillis(),
                     client,
-                    "while checking if schemas diverged on startup");
+                    "while checking if schemas diverged on startup",
+                    AvailabilityRequirement.ANY);
             return true;
         } catch (NotFoundException e) {
             return false;
         }
     }
 
+    private static boolean keyspaceAlreadyExists(CassandraServer host, CassandraVerifierConfig verifierConfig)
+            throws TException {
+        try (CassandraClient client = CassandraClientFactory.getClientInternal(host, verifierConfig.clientConfig())) {
+            return keyspaceAlreadyExists(client, verifierConfig);
+        }
+    }
+
     private static boolean attemptToCreateKeyspaceOnHost(CassandraServer host, CassandraVerifierConfig verifierConfig)
             throws TException {
         try (CassandraClient client = CassandraClientFactory.getClientInternal(host, verifierConfig.clientConfig())) {
             KsDef ksDef = createKsDefForFresh(client, verifierConfig);
+            CassandraKeyValueServices.waitForSchemaVersions(
+                    verifierConfig.schemaMutationTimeoutMillis(), client, "before adding the initial empty keyspace");
             client.system_add_keyspace(ksDef);
             log.info("Created keyspace: {}", SafeArg.of("keyspace", verifierConfig.keyspace()));
             CassandraKeyValueServices.waitForSchemaVersions(u}(j (5642b359735213f35a666d4a009a48e99cb87d71j& ]atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/ResultsExtractor.javaj( modifiedj  K
j! Kj* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 XQ  @@ -22,11 +22,11 @@
 import com.palantir.atlasdb.keyvalue.api.ColumnSelection;
 import com.palantir.atlasdb.keyvalue.api.RangeRequests;
 import com.palantir.atlasdb.keyvalue.api.RowResult;
+import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServices.ColumnAndTimestamp;
 import com.palantir.atlasdb.keyvalue.impl.Cells;
 import com.palantir.atlasdb.keyvalue.impl.RowResults;
 import com.palantir.atlasdb.tracing.TraceStatistics;
 import com.palantir.atlasdb.util.MetricsManager;
-import com.palantir.util.Pair;
 import com.palantir.util.paging.SimpleTokenBackedResultsPage;
 import com.palantir.util.paging.TokenBackedBasicResultsPage;
 import java.nio.ByteBuffer;
@@ -55,14 +55,20 @@ public final byte[] extractResults(
             maxRow = updatedMaxRow(maxRow, row);
 
             for (ColumnOrSuperColumn c : colEntry.getValue()) {
-                Pair<byte[], Long> pair = CassandraKeyValueServices.decomposeName(c.getColumn());
+                ColumnAndTimestamp columnAndTimestamp = CassandraKeyValueServices.decomposeColumnName(c.getColumn());
                 byte[] value = c.getColumn().getValue();
 
                 // Read the value & the column name size; we're not currently trying to model all the overheads
-                TraceStatistics.incBytesRead(pair.lhSide);
+                TraceStatistics.incBytesRead(columnAndTimestamp.columnName());
                 TraceStatistics.incBytesRead(value);
 
-                internalExtractResult(startTs, selection, row, pair.lhSide, value, pair.rhSide);
+                internalExtractResult(
+                        startTs,
+                        selection,
+                        row,
+                        columnAndTimestamp.columnName(),
+                        value,
+                        columnAndTimestamp.timestamp());
             }
         }
         return maxRow;u}(j (99a083b77cf802540499e0f29bf3af47ae1ea5f4j& datlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/RowColumnRangeExtractor.javaj( modifiedj  Kj! Kj* K
j+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRowColumnRangeExtractor.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRowColumnRangeExtractor.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRowColumnRangeExtractor.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X  @@ -21,9 +21,9 @@
 import com.palantir.atlasdb.AtlasDbMetricNames.CellFilterMetrics;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.Value;
+import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServices.ColumnAndTimestamp;
 import com.palantir.atlasdb.tracing.TraceStatistics;
 import com.palantir.atlasdb.util.MetricsManager;
-import com.palantir.util.Pair;
 import java.nio.ByteBuffer;
 import java.util.Collection;
 import java.util.Collections;
@@ -110,15 +110,15 @@ static RowColumnRangeResult extract(
             }
             rowsToRawColumnCount.put(row, columns.size());
             for (ColumnOrSuperColumn c : columns) {
-                Pair<byte[], Long> pair = CassandraKeyValueServices.decomposeName(c.getColumn());
+                ColumnAndTimestamp columnAndTimestamp = CassandraKeyValueServices.decomposeColumnName(c.getColumn());
                 // Column name
-                TraceStatistics.incBytesRead(pair.lhSide);
+                TraceStatistics.incBytesRead(columnAndTimestamp.columnName());
                 // Column value
                 TraceStatistics.incBytesRead(c.getColumn().getValue().length);
 
-                long ts = pair.rhSide;
+                long ts = columnAndTimestamp.timestamp();
                 if (ts < startTs) {
-                    Cell cell = Cell.create(row, pair.lhSide);
+                    Cell cell = Cell.create(row, columnAndTimestamp.columnName());
                     LinkedHashMap<Cell, Value> cellToValue =
                             collector.computeIfAbsent(row, _b -> new LinkedHashMap<>(1));
                     if (cellToValue.containsKey(cell)) {u}(j (c23d4ed1b56a12e3356ebc24b89c630b5fec3568j& [atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/ValueExtractor.javaj( modifiedj  Kj! Kj* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 XP  @@ -43,10 +43,12 @@ public void internalExtractResult(
             long startTs, ColumnSelection selection, byte[] row, byte[] col, byte[] val, long ts) {
         if (ts < startTs && selection.contains(col)) {
             Cell cell = Cell.create(row, col);
-            Value value = collector.computeIfAbsent(cell, _cell -> Value.create(val, ts));
-            if (value.getTimestamp() != ts) {
+            // explicitly not using `collector.computeIfAbsent` to avoid `LambdaForm.linkToTargetMethod` allocation
+            if (collector.containsKey(cell)) {
                 TraceStatistics.incSkippedValues(1L);
                 notLatestVisibleValueCellFilterCounter.inc();
+            } else {
+                collector.put(cell, Value.create(val, ts));
             }
         } else {
             TraceStatistics.incSkippedValues(1L);u}(j (495bf3755f831be17741c6a0717201cdf739f0f7j& yatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServicesSchemaConsensusTest.javaj( modifiedj  K-j! Kj* KJj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServicesSchemaConsensusTest.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServicesSchemaConsensusTest.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServicesSchemaConsensusTest.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 XH   @@ -23,8 +23,7 @@
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableSet;
-import java.net.InetSocketAddress;
+import com.palantir.util.io.AvailabilityRequirement;
 import org.apache.thrift.TException;
 import org.junit.Test;
 
@@ -33,77 +32,91 @@ public class CassandraKeyValueServicesSchemaConsensusTest {
     private static final int WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS = 10000;
 
     private static CassandraClient client = mock(CassandraClient.class);
-
-    private static final ImmutableSet<InetSocketAddress> FIVE_SERVERS = ImmutableSet.of(
-            InetSocketAddress.createUnresolved("1", 1),
-            InetSocketAddress.createUnresolved("2", 1),
-            InetSocketAddress.createUnresolved("3", 1),
-            InetSocketAddress.createUnresolved("4", 1),
-            InetSocketAddress.createUnresolved("5", 1));
     private static final String TABLE = "table";
     private static final String VERSION_1 = "v1";
     private static final String VERSION_2 = "v2";
-    private static final String VERSION_UNREACHABLE = "UNREACHABLE";
+    private static final String VERSION_UNREACHABLE = CassandraKeyValueServices.VERSION_UNREACHABLE;
     private static final ImmutableList<String> QUORUM_OF_NODES = ImmutableList.of("1", "2", "3");
     private static final ImmutableList<String> REST_OF_NODES = ImmutableList.of("4", "5");
     private static final ImmutableList<String> ALL_NODES = ImmutableList.of("1", "2", "3", "4", "5");
 
     @Test
     public void waitSucceedsForSameSchemaVersion() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of(VERSION_1, ALL_NODES));
-        assertWaitForSchemaVersionsDoesNotThrow();
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.ANY);
     }
 
     @Test
     public void waitThrowsForAllUnknownSchemaVersion() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of());
-        assertWaitForSchemaVersionsThrows();
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.QUORUM);
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.ANY);
     }
 
     @Test
     public void waitThrowsForAllUnreachableSchemaVersion() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of(VERSION_UNREACHABLE, ALL_NODES));
-        assertWaitForSchemaVersionsThrows();
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.QUORUM);
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.ANY);
+    }
+
+    @Test
+    public void waitThrowsForDifferentSchemaVersion() throws TException {
+        when(client.describe_schema_versions())
+                .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_2, REST_OF_NODES));
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.QUORUM);
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.ANY);
     }
 
     @Test
     public void waitSucceedsWithClusterHavingDownsizedAtRuntime() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of(VERSION_1, REST_OF_NODES));
-        assertWaitForSchemaVersionsDoesNotThrow();
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
     }
 
     @Test
-    public void waitFailsOnMinorityOnSameVersionAndRestUnreachable() throws TException {
+    public void waitFailsForQuorumOnMinorityOnSameVersionAndRestUnreachable() throws TException {
         when(client.describe_schema_versions())
                 .thenReturn(ImmutableMap.of(VERSION_UNREACHABLE, QUORUM_OF_NODES, VERSION_1, REST_OF_NODES));
-        assertWaitForSchemaVersionsThrows();
+        assertWaitForSchemaVersionsThrows(AvailabilityRequirement.QUORUM);
     }
 
     @Test
     public void waitSucceedsForQuorumOnlyWithUnknownSchemaVersion() throws TException {
         when(client.describe_schema_versions()).thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES));
-        assertWaitForSchemaVersionsDoesNotThrow();
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
     }
 
     @Test
     public void waitSucceedsForQuorumOnlyWithUnreachableSchemaVersion() throws TException {
         when(client.describe_schema_versions())
                 .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_UNREACHABLE, REST_OF_NODES));
-        assertWaitForSchemaVersionsDoesNotThrow();
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
     }
 
     @Test
-    public void waitThrowsForDifferentSchemaVersion() throws TException {
+    public void waitSucceedsForQuorumOnlyWithUnknownAndUnreachableSchemaVersion() throws TException {
         when(client.describe_schema_versions())
-                .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_2, REST_OF_NODES));
-        assertWaitForSchemaVersionsThrows();
+                .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_UNREACHABLE, ImmutableList.of("5")));
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.QUORUM);
     }
 
     @Test
-    public void waitSucceedsForQuorumOnlyWithUnknownAndUnreachableSchemaVersion() throws TException {
+    public void waitChecksForQuorumByDefault() throws TException {
         when(client.describe_schema_versions())
-                .thenReturn(ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_UNREACHABLE, ImmutableList.of("5")));
-        assertWaitForSchemaVersionsDoesNotThrow();
+                .thenReturn(ImmutableMap.of(VERSION_UNREACHABLE, QUORUM_OF_NODES, VERSION_1, REST_OF_NODES));
+        assertThatThrownBy(() -> CassandraKeyValueServices.waitForSchemaVersions(
+                        NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE))
+                .isInstanceOf(IllegalStateException.class)
+                .hasMessageContaining("Cassandra cluster cannot come to agreement on schema versions");
+    }
+
+    @Test
+    public void waitSucceedsForAnyWithOnlyOneReachableHost() throws TException {
+        when(client.describe_schema_versions())
+                .thenReturn(ImmutableMap.of(VERSION_1, ImmutableList.of("5"), VERSION_UNREACHABLE, QUORUM_OF_NODES));
+        assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement.ANY);
     }
 
     @Test
@@ -117,18 +130,21 @@ public void waitWaitsForSchemaVersions() throws TException {
                         ImmutableMap.of(VERSION_1, QUORUM_OF_NODES, VERSION_UNREACHABLE, REST_OF_NODES),
                         ImmutableMap.of(VERSION_1, ALL_NODES));
 
-        CassandraKeyValueServices.waitForSchemaVersions(WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, waitingClient, TABLE);
+        CassandraKeyValueServices.waitForSchemaVersions(
+                WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, waitingClient, TABLE, AvailabilityRequirement.QUORUM);
         verify(waitingClient, times(4)).describe_schema_versions();
     }
 
-    private void assertWaitForSchemaVersionsThrows() {
+    private void assertWaitForSchemaVersionsThrows(AvailabilityRequirement availabilityRequirement) {
         assertThatThrownBy(() -> CassandraKeyValueServices.waitForSchemaVersions(
-                        NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE))
+                        NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE, availabilityRequirement))
                 .isInstanceOf(IllegalStateException.class)
                 .hasMessageContaining("Cassandra cluster cannot come to agreement on schema versions");
     }
 
-    private void assertWaitForSchemaVersionsDoesNotThrow() throws TException {
-        CassandraKeyValueServices.waitForSchemaVersions(NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE);
+    private void assertWaitForSchemaVersionsDoesNotThrow(AvailabilityRequirement availabilityRequirement)
+            throws TException {
+        CassandraKeyValueServices.waitForSchemaVersions(
+                NO_WAITING_SCHEMA_MUTATION_TIMEOUT_MILLIS, client, TABLE, availabilityRequirement);
     }
 }u}(j (f22c92e240094982ad75ea602ed3e93436f20ce7j& batlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraVerifierTest.javaj( modifiedj  K
j! K j* K
j+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifierTest.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifierTest.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifierTest.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X  @@ -274,6 +274,19 @@ public void differentRfThanConfigThrows() throws TException {
                 .isInstanceOf(IllegalStateException.class);
     }
 
+    @Test
+    public void keyspaceAlreadyExistsOnlyChecksForAnyAvailableNodes() throws TException {
+        CassandraVerifierConfig verifierConfig =
+                getVerifierConfigBuilderWithDefaults(defaultTopology(HOST_1)).build();
+        when(client.describe_schema_versions())
+                .thenReturn(ImmutableMap.of(
+                        "A",
+                        ImmutableList.of(HOST_1),
+                        CassandraKeyValueServices.VERSION_UNREACHABLE,
+                        ImmutableList.of(HOST_1, HOST_2, HOST_3)));
+        CassandraVerifier.keyspaceAlreadyExists(client, verifierConfig);
+    }
+
     private TokenRange mockRangeWithDetails(EndpointDetails... details) {
         TokenRange mockRange = new TokenRange();
         mockRange.setEndpoint_details(Arrays.asList(details));u}(j (1db88b0afce6cbbc7e74528881cb99bc7a567681j& Gatlasdb-commons/src/main/java/com/palantir/util/IndexEncodingUtils.javaj( modifiedj  K	j! K j* K	j+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X  @@ -37,6 +37,11 @@
 public final class IndexEncodingUtils {
     private IndexEncodingUtils() {}
 
+    public static <K extends DeterministicHashable, V> IndexEncodingResult<K, V> encode(
+            Set<K> keys, Map<K, V> keyToValue, ChecksumType checksumType) {
+        return encode(keys, keyToValue, Function.identity(), checksumType);
+    }
+
     /**
      * Compute a derived map (replacing keys with their associated index into the ordered list) to the value returned
      * by running the {@code valueMapper} over the original value.
@@ -77,6 +82,10 @@ public static <K extends DeterministicHashable, V, R> IndexEncodingResult<K, R>
                 .build();
     }
 
+    public static <K extends DeterministicHashable, V> Map<K, V> decode(IndexEncodingResult<K, V> indexEncoding) {
+        return decode(indexEncoding, Function.identity());
+    }
+
     /**
      * Compute a derived map (replacing indices into the list of keys with their item) to the value returned
      * by running the {@code valueMapper} over the original value.u}(j (1c58d50254ae7b8272b34df90b7342f7bd636537j& Oatlasdb-commons/src/main/java/com/palantir/util/io/AvailabilityRequirement.javaj( addedj  K3j! K j* K3j+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirement.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirement.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirement.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X  @@ -0,0 +1,51 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util.io;
+
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+
+public enum AvailabilityRequirement {
+    ANY {
+        @Override
+        protected int calculateRequired(int total) {
+            return 1;
+        }
+    },
+    QUORUM {
+        @Override
+        protected int calculateRequired(int total) {
+            return (total / 2) + 1;
+        }
+    };
+
+    protected abstract int calculateRequired(int total);
+
+    public final boolean satisfies(int available, int total) {
+        Preconditions.checkArgument(
+                available >= 0 && total >= 0,
+                "Available and total must be non-negative.",
+                SafeArg.of("available", available),
+                SafeArg.of("total", total));
+        Preconditions.checkArgument(
+                available <= total,
+                "Available must be less than or equal to total.",
+                SafeArg.of("available", available),
+                SafeArg.of("total", total));
+        return available >= calculateRequired(total);
+    }
+}u}(j (27fe98fdf2bee74850041a69a10a00e91d3ae2f0j& Katlasdb-commons/src/test/java/com/palantir/util/IndexEncodingUtilsTest.javaj( modifiedj  Kj! Kj* K%j+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X  @@ -37,7 +37,6 @@
 import java.util.Random;
 import java.util.Set;
 import java.util.UUID;
-import java.util.function.Function;
 import java.util.stream.Collectors;
 import java.util.stream.Stream;
 import org.immutables.value.Value;
@@ -79,22 +78,18 @@ public void cannotLookupUnknownChecksumType() {
 
     @Test
     public void canEncodeSimpleData() {
-        assertThat(createIndexEncodingWithIdentity().indexToValue())
-                .isEqualTo(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
+        assertThat(createIndexEncoding().indexToValue()).isEqualTo(ImmutableMap.of(1, 1337L, 2, -10L, 0, 42L));
     }
 
     @Test
     public void canDecodeSimpleData() {
-        assertThat(IndexEncodingUtils.decode(createIndexEncodingWithIdentity(), Function.identity()))
-                .containsExactlyInAnyOrderEntriesOf(VALUES);
+        assertThat(IndexEncodingUtils.decode(createIndexEncoding())).containsExactlyInAnyOrderEntriesOf(VALUES);
     }
 
     @Test
     public void canEncodeAndDecodeEmptyData() {
         assertThat(IndexEncodingUtils.decode(
-                        IndexEncodingUtils.encode(
-                                ImmutableSet.of(), ImmutableMap.of(), Function.identity(), checksumType),
-                        Function.identity()))
+                        IndexEncodingUtils.encode(ImmutableSet.of(), ImmutableMap.of(), checksumType)))
                 .isEmpty();
     }
 
@@ -116,8 +111,8 @@ public void canDecodeWithCustomValueMapper() {
 
     @Test
     public void encodeFailsForUnknownKeysInValueMap() {
-        assertThatLoggableExceptionThrownBy(() -> IndexEncodingUtils.encode(
-                        KEYS, ImmutableMap.of(wrap("unknown-key"), 0L), Function.identity(), checksumType))
+        assertThatLoggableExceptionThrownBy(
+                        () -> IndexEncodingUtils.encode(KEYS, ImmutableMap.of(wrap("unknown-key"), 0L), checksumType))
                 .isExactlyInstanceOf(SafeIllegalArgumentException.class)
                 .hasLogMessage("Value map uses keys that are not in the provided set of keys")
                 .hasExactlyArgs(UnsafeArg.of("unknownKeys", ImmutableSet.of(wrap("unknown-key"))));
@@ -126,25 +121,23 @@ public void encodeFailsForUnknownKeysInValueMap() {
     @Test
     public void decodeFailsForInvalidIndices() {
         IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encodedWithInvalidIndices =
-                ImmutableIndexEncodingResult.copyOf(createIndexEncodingWithIdentity())
+                ImmutableIndexEncodingResult.copyOf(createIndexEncoding())
                         .withIndexToValue(ImmutableMap.of(KEYS.size(), 17L));
-        assertThatLoggableExceptionThrownBy(
-                        () -> IndexEncodingUtils.decode(encodedWithInvalidIndices, Function.identity()))
+        assertThatLoggableExceptionThrownBy(() -> IndexEncodingUtils.decode(encodedWithInvalidIndices))
                 .isExactlyInstanceOf(SafeIllegalArgumentException.class)
                 .hasLogMessage("Index map contains invalid index")
                 .hasExactlyArgs(SafeArg.of("index", KEYS.size()), SafeArg.of("keyListSize", KEYS.size()));
     }
 
     @Test
     public void integrityCheckFailsForDifferentKeyList() {
-        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encoded = createIndexEncodingWithIdentity();
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encoded = createIndexEncoding();
         List<DeterministicHashableWrapper<String>> modifiedKeyList = new ArrayList<>(KEYS);
         Collections.swap(modifiedKeyList, 0, 1);
         IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encodedWithModifiedKeyList =
                 ImmutableIndexEncodingResult.copyOf(encoded).withKeyList(modifiedKeyList);
         KeyListChecksum actualChecksum = IndexEncodingUtils.computeChecksum(checksumType, modifiedKeyList);
-        assertThatLoggableExceptionThrownBy(
-                        () -> IndexEncodingUtils.decode(encodedWithModifiedKeyList, Function.identity()))
+        assertThatLoggableExceptionThrownBy(() -> IndexEncodingUtils.decode(encodedWithModifiedKeyList))
                 .isExactlyInstanceOf(SafeIllegalArgumentException.class)
                 .hasLogMessage("Key list integrity check failed")
                 .hasExactlyArgs(
@@ -155,14 +148,13 @@ public void integrityCheckFailsForDifferentKeyList() {
 
     @Test
     public void integrityCheckFailsForDifferentChecksum() {
-        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encoded = createIndexEncodingWithIdentity();
+        IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encoded = createIndexEncoding();
         byte[] modifiedChecksum = encoded.keyListChecksum().value();
         modifiedChecksum[0]++;
         IndexEncodingResult<DeterministicHashableWrapper<String>, Long> encodedWithModifiedChecksum =
                 ImmutableIndexEncodingResult.copyOf(encoded)
                         .withKeyListChecksum(KeyListChecksum.of(checksumType, modifiedChecksum));
-        assertThatLoggableExceptionThrownBy(
-                        () -> IndexEncodingUtils.decode(encodedWithModifiedChecksum, Function.identity()))
+        assertThatLoggableExceptionThrownBy(() -> IndexEncodingUtils.decode(encodedWithModifiedChecksum))
                 .isExactlyInstanceOf(SafeIllegalArgumentException.class)
                 .hasLogMessage("Key list integrity check failed")
                 .hasExactlyArgs(
@@ -183,14 +175,13 @@ public void decodingEncodedDataYieldsOriginalForRandomData() {
                 .filter(_unused -> rand.nextBoolean())
                 .map(_unused -> rand.nextLong())
                 .collectToMap();
-        assertThat(IndexEncodingUtils.decode(
-                        IndexEncodingUtils.encode(keys, data, Function.identity(), checksumType), Function.identity()))
+        assertThat(IndexEncodingUtils.decode(IndexEncodingUtils.encode(keys, data, checksumType)))
                 .as("Encoding and decoding yields original data. Random seed: " + seed)
                 .containsExactlyInAnyOrderEntriesOf(data);
     }
 
-    private IndexEncodingResult<DeterministicHashableWrapper<String>, Long> createIndexEncodingWithIdentity() {
-        return IndexEncodingUtils.encode(KEYS, VALUES, Function.identity(), checksumType);
+    private IndexEncodingResult<DeterministicHashableWrapper<String>, Long> createIndexEncoding() {
+        return IndexEncodingUtils.encode(KEYS, VALUES, checksumType);
     }
 
     private static <T> DeterministicHashableWrapper<T> wrap(T value) {u}(j (02ba7a7df417ddea93cfbe362d001e291e48f2ffj& Satlasdb-commons/src/test/java/com/palantir/util/io/AvailabilityRequirementTest.javaj( addedj  K^j! K j* K^j+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirementTest.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirementTest.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2Fio%2FAvailabilityRequirementTest.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 XS  @@ -0,0 +1,94 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util.io;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import org.junit.Test;
+
+public final class AvailabilityRequirementTest {
+    @Test
+    public void anySatisfiesGreaterThanZero() {
+        assertThat(AvailabilityRequirement.ANY.satisfies(1, 10)).isTrue();
+    }
+
+    @Test
+    public void anySatisfiesWhenEquivalentToTotal() {
+        assertThat(AvailabilityRequirement.ANY.satisfies(1, 1)).isTrue();
+        assertThat(AvailabilityRequirement.ANY.satisfies(10, 10)).isTrue();
+    }
+
+    @Test
+    public void anyDoesNotSatisfyWhenZero() {
+        assertThat(AvailabilityRequirement.ANY.satisfies(0, 10)).isFalse();
+        assertThat(AvailabilityRequirement.ANY.satisfies(0, 0)).isFalse();
+    }
+
+    @Test
+    public void quorumSatisfiesWhenHasMajority() {
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(2, 3)).isTrue();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(4, 6)).isTrue();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(5, 9)).isTrue();
+    }
+
+    @Test
+    public void quorumDoesNotSatisfyWhenItDoesNotHaveMajority() {
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(0, 0)).isFalse();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(0, 1)).isFalse();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(1, 3)).isFalse();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(3, 6)).isFalse();
+    }
+
+    @Test
+    public void quorumSatisfiesWhenHasTotal() {
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(1, 1)).isTrue();
+        assertThat(AvailabilityRequirement.QUORUM.satisfies(10, 10)).isTrue();
+    }
+
+    @Test
+    public void satisfiesThrowsWhenAvailableIsNegative() {
+        assertThatNegativeArgumentsExceptionThrowsForArguments(-1, 10);
+    }
+
+    @Test
+    public void satisfiesThrowsWhenTotalIsNegative() {
+        assertThatNegativeArgumentsExceptionThrowsForArguments(1, -10);
+    }
+
+    @Test
+    public void satisfiesThrowsWhenBothAreNegative() {
+        assertThatNegativeArgumentsExceptionThrowsForArguments(-1, -10);
+    }
+
+    @Test
+    public void satisfiesThrowsWhenAvailableIsGreaterThanTotal() {
+        assertThatLoggableExceptionThrownBy(() -> AvailabilityRequirement.ANY.satisfies(11, 10))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Available must be less than or equal to total.")
+                .hasExactlyArgs(SafeArg.of("available", 11), SafeArg.of("total", 10));
+    }
+
+    private static void assertThatNegativeArgumentsExceptionThrowsForArguments(int available, int total) {
+        assertThatLoggableExceptionThrownBy(() -> AvailabilityRequirement.ANY.satisfies(available, total))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Available and total must be non-negative.")
+                .hasExactlyArgs(SafeArg.of("available", available), SafeArg.of("total", total));
+    }
+}u}(j (7f90d96f996595cc4084c6ca9063c5df68e00be7j& fatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/LockDiagnosticConjureTimelockService.javaj( modifiedj  Kj! Kj* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FLockDiagnosticConjureTimelockService.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FLockDiagnosticConjureTimelockService.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FLockDiagnosticConjureTimelockService.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X  @@ -16,10 +16,12 @@
 
 package com.palantir.atlasdb.debug;
 
+import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.timelock.api.ConjureGetFreshTimestampsRequest;
 import com.palantir.atlasdb.timelock.api.ConjureGetFreshTimestampsRequestV2;
 import com.palantir.atlasdb.timelock.api.ConjureGetFreshTimestampsResponse;
 import com.palantir.atlasdb.timelock.api.ConjureGetFreshTimestampsResponseV2;
+import com.palantir.atlasdb.timelock.api.ConjureLockDescriptor;
 import com.palantir.atlasdb.timelock.api.ConjureLockRequest;
 import com.palantir.atlasdb.timelock.api.ConjureLockResponse;
 import com.palantir.atlasdb.timelock.api.ConjureRefreshLocksRequest;
@@ -42,6 +44,7 @@
 import com.palantir.lock.v2.LeaderTime;
 import com.palantir.tokens.auth.AuthHeader;
 import java.util.Optional;
+import java.util.Set;
 
 /**
  * TODO(fdesouza): Remove this once PDS-95791 is resolved.
@@ -97,24 +100,26 @@ public LeaderTime leaderTime(AuthHeader authHeader, String namespace) {
 
     @Override
     public ConjureLockResponse lock(AuthHeader authHeader, String namespace, ConjureLockRequest request) {
+        Set<ConjureLockDescriptor> lockDescriptors = ImmutableSet.copyOf(request.getLockDescriptors());
         request.getClientDescription()
                 .flatMap(LockDiagnosticConjureTimelockService::tryParseStartTimestamp)
-                .ifPresent(startTimestamp -> lockDiagnosticCollector.collect(
-                        startTimestamp, request.getRequestId(), request.getLockDescriptors()));
+                .ifPresent(startTimestamp ->
+                        lockDiagnosticCollector.collect(startTimestamp, request.getRequestId(), lockDescriptors));
         ConjureLockResponse response = conjureDelegate.lock(authHeader, namespace, request);
-        localLockTracker.logLockResponse(request.getLockDescriptors(), response);
+        localLockTracker.logLockResponse(lockDescriptors, response);
         return response;
     }
 
     @Override
     public ConjureWaitForLocksResponse waitForLocks(
             AuthHeader authHeader, String namespace, ConjureLockRequest request) {
+        Set<ConjureLockDescriptor> lockDescriptors = ImmutableSet.copyOf(request.getLockDescriptors());
         request.getClientDescription()
                 .flatMap(LockDiagnosticConjureTimelockService::tryParseStartTimestamp)
-                .ifPresent(startTimestamp -> lockDiagnosticCollector.collect(
-                        startTimestamp, request.getRequestId(), request.getLockDescriptors()));
+                .ifPresent(startTimestamp ->
+                        lockDiagnosticCollector.collect(startTimestamp, request.getRequestId(), lockDescriptors));
         ConjureWaitForLocksResponse response = conjureDelegate.waitForLocks(authHeader, namespace, request);
-        localLockTracker.logWaitForLocksResponse(request.getLockDescriptors(), response);
+        localLockTracker.logWaitForLocksResponse(lockDescriptors, response);
         return response;
     }
 u}(j (439576f15e42da0c21bdab43e98c39b3929a76adj& `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj( modifiedj  Kj! Kj* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X  @@ -2540,7 +2540,7 @@ protected Set<LockDescriptor> getLocksForWrites() {
                     result.add(AtlasCellLockDescriptor.of(
                             tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName()));
                 }
-                cellLockCount = cellsToLock.size();
+                cellLockCount += cellsToLock.size();
             }
 
             if (conflictHandler.lockRowsForConflicts()) {u}(j (5e7f986f7b70e5c550f97a4eafd0ef844c99fe20j& Oatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/util/MeasuringUtils.javaj( modifiedj  Kj! K
j* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMeasuringUtils.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMeasuringUtils.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FMeasuringUtils.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X  @@ -24,7 +24,6 @@
 import java.lang.reflect.Array;
 import java.util.Collection;
 import java.util.Map;
-import java.util.Map.Entry;
 import java.util.Set;
 import java.util.function.ToLongFunction;
 
@@ -64,7 +63,7 @@ public static long sizeOf(Multimap<? extends Measurable, Long> map) {
         return sizeOf(map.keys()) + ((long) map.size()) * Long.BYTES;
     }
 
-    public static long sizeOf(Entry<? extends Measurable, ? extends Measurable> entry) {
+    public static long sizeOf(Map.Entry<? extends Measurable, ? extends Measurable> entry) {
         return entry.getKey().sizeInBytes() + entry.getValue().sizeInBytes();
     }
 
@@ -86,16 +85,18 @@ private static <T> long sizeOfCollection(Collection<T> collection, ToLongFunctio
 
     private static <K, V> long sizeOfMap(
             Map<K, V> map, ToLongFunction<K> keyMeasurer, ToLongFunction<V> valueMeasurer) {
-        return map.entrySet().stream()
-                .mapToLong(
-                        entry -> keyMeasurer.applyAsLong(entry.getKey()) + valueMeasurer.applyAsLong(entry.getValue()))
-                .sum();
+        long sum = 0L;
+        for (Map.Entry<K, V> entry : map.entrySet()) {
+            sum += keyMeasurer.applyAsLong(entry.getKey()) + valueMeasurer.applyAsLong(entry.getValue());
+        }
+        return sum;
     }
 
     private static <T> long sizeOfRowResult(RowResult<T> rowResult, ToLongFunction<T> measurer) {
-        return rowResult.getRowNameSize()
-                + rowResult.getColumns().entrySet().stream()
-                        .mapToLong(entry -> entry.getKey().length + measurer.applyAsLong(entry.getValue()))
-                        .sum();
+        long sum = rowResult.getRowNameSize();
+        for (Map.Entry<byte[], T> entry : rowResult.getColumns().entrySet()) {
+            sum += entry.getKey().length + measurer.applyAsLong(entry.getValue());
+        }
+        return sum;
     }
 }u}(j (f2e691648e3d3020d09ae176b23c26a2f6f5e6a7j& eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj( modifiedj  Kj! K j* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaF      j/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 Xi  @@ -2522,6 +2522,21 @@ public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigratio
         assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
     }
 
+    @Test
+    public void setsRequestedCellCommitLocksCountCorrectlyForMultipleTables() {
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_CELL);
+        overrideConflictHandlerForTable(TABLE2, ConflictHandler.SERIALIZABLE_CELL);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE2, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(0 + 1);
+    }
+
     @Test
     public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
         for (int idx = 0; idx < SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS; idx++) {u}(j (33a2a2d54d648f18cdab6d3f0ba9dad15dbe0a2fj&  changelog/0.895.0/pr-6642.v2.ymlj( addedj  Kj! K j* Kj+ vhttps://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/changelog%2F0.895.0%2Fpr-6642.v2.ymlj- uhttps://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/changelog%2F0.895.0%2Fpr-6642.v2.ymlj/ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.895.0%2Fpr-6642.v2.yml?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Reduce allocations extracting Cassandra values
+  links:
+  - https://github.com/palantir/atlasdb/pull/6642u}(j (ff9f08f8e6f43315a79a74fdf43e11f2070b6d9fj&  changelog/0.895.0/pr-6666.v2.ymlj( addedj  Kj! K j* Kj+ vhttps://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/changelog%2F0.895.0%2Fpr-6666.v2.ymlj- uhttps://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/changelog%2F0.895.0%2Fpr-6666.v2.ymlj/ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.895.0%2Fpr-6666.v2.yml?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 @@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: Fix cell lock count across multiple tables
+  links:
+  - https://github.com/palantir/atlasdb/pull/6666u}(j (240913fc734894a98c05e8c292aa78369a4ece97j&  changelog/0.897.0/pr-6667.v2.ymlj( addedj  Kj! K j* Kj+ vhttps://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/changelog%2F0.897.0%2Fpr-6667.v2.ymlj- uhttps://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/changelog%2F0.897.0%2Fpr-6667.v2.ymlj/ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.897.0%2Fpr-6667.v2.yml?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X  @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Do not wait for a quorum of nodes to be available for Cassandra's schema
+    version on start up unless when performing DDL operations.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6667u}(j (53dbb997fbc87d47ddeeae107c0d0a5d610f7820j&  changelog/0.898.0/pr-6659.v2.ymlj( addedj  Kj! K j* Kj+ vhttps://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/changelog%2F0.898.0%2Fpr-6659.v2.ymlj- uhttps://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/changelog%2F0.898.0%2Fpr-6659.v2.ymlj/ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.898.0%2Fpr-6659.v2.yml?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add custom serialization to LockEvent with index-encoded
+    metadata'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6659u}(j (5f02ea670ebe579e2fc7dbfcda201cb6c125b07ej&  changelog/0.899.0/pr-6660.v2.ymlj( addedj  Kj! K j* Kj+ vhttps://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/changelog%2F0.899.0%2Fpr-6660.v2.ymlj- uhttps://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/changelog%2F0.899.0%2Fpr-6660.v2.ymlj/ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.899.0%2Fpr-6660.v2.yml?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 @@ -0,0 +1,5 @@
+type: feature
+feature:
+  description: '[LWMeta] Add metadata to ConjureLockRequest'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6660u}(j (6d81d856dcfcfde488238b25a5d5367e13bd6f75j& Wdocs/source/configuration/key_value_service_configs/oracle_key_value_service_config.rstj( modifiedj  K j! K j* K j+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rstj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rstj/ https://api.github.com/repos/palantir/atlasdb/contents/docs%2Fsource%2Fconfiguration%2Fkey_value_service_configs%2Foracle_key_value_service_config.rst?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X  @@ -197,3 +197,35 @@ migration as `serviceNameConfiguration.namespaceOverride`.
 
 This migration can be reversed trivially (just by changing the config to reference the now-correct `sid`) if you are
 using embedded timestamp and lock services.
+
+Altering Table To Match Metadata
+--------------------------------
+
+On rare occasions, the metadata in Oracle can mismatch the expected metadata by the service. This can happen as a result
+of a rare race condition on table creation, where one service expects the table to have an overflow column, while
+the other does not.
+
+To resolve, simply add the following configuration to your Oracle ddl configuration.
+
+.. code-block:: yaml
+
+    atlasdb:
+      keyValueService:
+        type: relational
+        ddl:
+          type: oracle
+          alterTablesOrMetadataToMatchAndIKnowWhatIAmDoing:
+              - namespace:
+                  name: <namespace>
+                tablename: <table-name>
+
+Note: Table names are case sensitive.
+
+Generally speaking the operation is safe to perform, although it's on the operator to determine what the side
+effects are. For example, if the issue arose as two services are configured to use this table, but only one is
+performing table mapping, then it is expected that this could break one of the services. However, that condition
+still satisfies the status quo, thus it's on the configurator to determine if this change is safe to make.
+
+Although the alter action is idempotent, it is recommended to remove the configuration after it has ran. Check the logs
+for ``Altering table to have overflow column to match metadata.`` and that there were no error logs printed to ensure that
+has successfully ran.
\ No newline at end of fileu}(j (d94333ba246e527d1a418c250421a3e4bd0a3ea7j& lock-api-objects/build.gradlej( modifiedj  Kj! K j* Kj+ qhttps://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api-objects%2Fbuild.gradlej- phttps://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api-objects%2Fbuild.gradlej/ https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fbuild.gradle?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X  @@ -17,6 +17,14 @@ dependencies {
     implementation 'com.google.guava:guava'
     implementation project(':commons-annotations')
 
+    testImplementation 'com.fasterxml.jackson.datatype:jackson-datatype-guava'
+    testImplementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8'
+    testImplementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
+    testImplementation 'com.palantir.common:streams'
+    testImplementation project(':atlasdb-api')
+    testAnnotationProcessor 'org.immutables:value'
+    testCompileOnly 'org.immutables:value::annotations'
+
     annotationProcessor 'org.immutables:value'
     compileOnly 'org.immutables:value::annotations'
     annotationProcessor project(":atlasdb-processors")u}(j (37dda23eb949c186568d3c32bafd886eb2861e4dj& Dlock-api-objects/src/main/java/com/palantir/lock/v2/LockRequest.javaj( modifiedj  Kj! Kj* K	j+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fv2%2FLockRequest.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fv2%2FLockRequest.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fv2%2FLockRequest.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X  @@ -18,6 +18,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.Unsafe;
 import java.util.Optional;
@@ -39,12 +40,16 @@ public interface LockRequest {
     @Value.Parameter
     Optional<String> getClientDescription();
 
+    @Value.Parameter
+    Optional<LockRequestMetadata> getMetadata();
+
     static LockRequest of(Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs) {
-        return ImmutableLockRequest.of(lockDescriptors, acquireTimeoutMs, Optional.empty());
+        return ImmutableLockRequest.of(lockDescriptors, acquireTimeoutMs, Optional.empty(), Optional.empty());
     }
 
     static LockRequest of(Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs, String clientDescription) {
-        return ImmutableLockRequest.of(lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription));
+        return ImmutableLockRequest.of(
+                lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription), Optional.empty());
     }
 
     @Value.Checku}(j (7ede3b7c38e0b57309248f76a702b4fd3ebbc9cbj& Elock-api-objects/src/main/java/com/palantir/lock/watch/LockEvent.javaj( modifiedj  Kj! Kj* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X  @@ -16,30 +16,45 @@
 
 package com.palantir.lock.watch;
 
-import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonInclude.Include;
+import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.annotation.JsonValue;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.logsafe.Unsafe;
+import com.palantir.util.IndexEncodingUtils;
+import com.palantir.util.IndexEncodingUtils.ChecksumType;
+import com.palantir.util.IndexEncodingUtils.IndexEncodingResult;
+import com.palantir.util.IndexEncodingUtils.KeyListChecksum;
+import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
 import org.immutables.value.Value;
 
+/*
+ * Warning: This class contains custom serialization logic. Changing anything about the serialized format of this class
+ * requires careful modification of the @JsonCreator and @JsonValue-annotated methods as well as the Wire-... classes
+ * All serialization changes should be properly tested.
+ */
 @Unsafe
 @Value.Immutable
-@JsonSerialize(as = ImmutableLockEvent.class)
-@JsonDeserialize(as = ImmutableLockEvent.class)
 @JsonTypeName(LockEvent.TYPE)
 public abstract class LockEvent implements LockWatchEvent {
     static final String TYPE = "lock";
+    private static final ChecksumType DEFAULT_CHECKSUM_TYPE = ChecksumType.CRC32_OF_DETERMINISTIC_HASHCODE;
 
     public abstract Set<LockDescriptor> lockDescriptors();
 
     public abstract LockToken lockToken();
 
-    @JsonIgnore
     public abstract Optional<LockRequestMetadata> metadata();
 
     @Override
@@ -52,6 +67,43 @@ public <T> T accept(Visitor<T> visitor) {
         return visitor.visit(this);
     }
 
+    @JsonCreator
+    public static LockEvent create(
+            @JsonProperty("sequence") long sequence,
+            @JsonProperty("lockDescriptors") List<LockDescriptor> lockDescriptors,
+            @JsonProperty("lockToken") LockToken lockToken,
+            @JsonProperty("metadata") Optional<WireLockRequestMetadata> optWireMetadata) {
+        Optional<LockRequestMetadata> metadata =
+                optWireMetadata.map(wireMetadata -> convertFromWireMetadata(lockDescriptors, wireMetadata));
+        return ImmutableLockEvent.builder()
+                .sequence(sequence)
+                .lockDescriptors(ImmutableSet.copyOf(lockDescriptors))
+                .lockToken(lockToken)
+                .metadata(metadata)
+                .build();
+    }
+
+    @Unsafe
+    @JsonValue
+    public WireLockEvent toWireLockEvent() {
+        Optional<IndexEncodingResult<LockDescriptor, ChangeMetadata>> optIndexEncodingResult = metadata()
+                .map(metadata -> IndexEncodingUtils.encode(
+                        lockDescriptors(), metadata.lockDescriptorToChangeMetadata(), DEFAULT_CHECKSUM_TYPE));
+        // If the lock event has metadata, we need to use the key list that was used to encode the metadata.
+        // Otherwise, any ordering of the lock descriptors is fine.
+        List<LockDescriptor> orderedLocks = optIndexEncodingResult
+                .map(IndexEncodingResult::keyList)
+                .orElseGet(() -> ImmutableList.copyOf(lockDescriptors()));
+        Optional<WireLockRequestMetadata> wireMetadata =
+                optIndexEncodingResult.map(LockEvent::buildWireLockRequestMetadata);
+        return WireLockEvent.builder()
+                .sequence(sequence())
+                .lockDescriptors(orderedLocks)
+                .lockToken(lockToken())
+                .metadata(wireMetadata)
+                .build();
+    }
+
     public static LockWatchEvent.Builder builder(Set<LockDescriptor> lockDescriptors, LockToken lockToken) {
         return builder(lockDescriptors, lockToken, Optional.empty());
     }
@@ -64,4 +116,81 @@ public static LockWatchEvent.Builder builder(
                 .metadata(metadata);
         return seq -> builder.sequence(seq).build();
     }
+
+    private static WireLockRequestMetadata buildWireLockRequestMetadata(
+            IndexEncodingResult<LockDescriptor, ChangeMetadata> result) {
+        return WireLockRequestMetadata.builder()
+                .indexToChangeMetadata(result.indexToValue())
+                .lockListChecksum(LockListChecksum.of(
+                        result.keyListChecksum().type().getId(),
+                        result.keyListChecksum().value()))
+                .build();
+    }
+
+    private static LockRequestMetadata convertFromWireMetadata(
+            List<LockDescriptor> lockDescriptors, WireLockRequestMetadata wireMetadata) {
+        KeyListChecksum checksum = KeyListChecksum.of(
+                ChecksumType.valueOf(wireMetadata.lockListChecksum().typeId()),
+                wireMetadata.lockListChecksum().value());
+        IndexEncodingResult<LockDescriptor, ChangeMetadata> indexEncodingResult =
+                IndexEncodingResult.<LockDescriptor, ChangeMetadata>builder()
+                        .keyList(lockDescriptors)
+                        .indexToValue(wireMetadata.indexToChangeMetadata())
+                        .keyListChecksum(checksum)
+                        .build();
+        return LockRequestMetadata.of(IndexEncodingUtils.decode(indexEncodingResult));
+    }
+
+    // This class is explicitly missing @JsonDeserialize as it should only be used for serialization.
+    // Deserialization should take place in the @JsonCreator-annotated static constructor method.
+    @Unsafe
+    @Value.Immutable
+    @JsonSerialize(as = ImmutableWireLockEvent.class)
+    @JsonTypeName(LockEvent.TYPE)
+    public interface WireLockEvent {
+        long sequence();
+
+        List<LockDescriptor> lockDescriptors();
+
+        LockToken lockToken();
+
+        // If metadata is absent, it should be completely omitted
+        @JsonInclude(Include.NON_ABSENT)
+        Optional<WireLockRequestMetadata> metadata();
+
+        static ImmutableWireLockEvent.Builder builder() {
+            return ImmutableWireLockEvent.builder();
+        }
+    }
+
+    @Unsafe
+    @Value.Immutable
+    @JsonSerialize(as = ImmutableWireLockRequestMetadata.class)
+    @JsonDeserialize(as = ImmutableWireLockRequestMetadata.class)
+    public interface WireLockRequestMetadata {
+
+        Map<Integer, ChangeMetadata> indexToChangeMetadata();
+
+        LockListChecksum lockListChecksum();
+
+        static ImmutableWireLockRequestMetadata.Builder builder() {
+            return ImmutableWireLockRequestMetadata.builder();
+        }
+    }
+
+    @Value.Immutable
+    @JsonSerialize(as = ImmutableLockListChecksum.class)
+    @JsonDeserialize(as = ImmutableLockListChecksum.class)
+    public interface LockListChecksum {
+
+        @Value.Parameter
+        int typeId();
+
+        @Value.Parameter
+        byte[] value();
+
+        static LockListChecksum of(int typeId, byte[] value) {
+            return ImmutableLockListChecksum.of(typeId, value);
+        }
+    }
 }u}(j (e82dfb8fb3ac704571c72a868213133c36e5489bj& Ilock-api-objects/src/test/java/com/palantir/lock/watch/LockEventTest.javaj( addedj  Kj! K j* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X)  @@ -0,0 +1,225 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.fasterxml.jackson.databind.exc.InvalidDefinitionException;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.UUID;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.immutables.value.Value;
+import org.junit.Test;
+
+public class LockEventTest {
+    private static final String BASE = "src/test/resources/lock-event-wire-format/";
+    private static final String OLD_LOCK_EVENT_FILE = "old";
+    private static final String WITH_METADATA_FILE = "with-metadata";
+    private static final String WITH_EMPTY_METADATA_MAP_FILE = "with-empty-metadata-map";
+    private static final String SPARSE_METADATA_FILE = "sparse-metadata";
+    private static final String SHUFFLED_LOCKS_FILE = "shuffled-locks";
+    private static final boolean REWRITE_JSON_BLOBS = false;
+
+    private static final LockDescriptor LOCK_1 = StringLockDescriptor.of("abc");
+    private static final LockDescriptor LOCK_2 = StringLockDescriptor.of("def");
+    private static final LockDescriptor LOCK_3 = StringLockDescriptor.of("ghi");
+    private static final LockDescriptor LOCK_4 = StringLockDescriptor.of("jkl");
+    private static final long SEQUENCE = 10L;
+    private static final LockToken LOCK_TOKEN = LockToken.of(new UUID(1337, 42));
+    private static final Set<LockDescriptor> LOCK_SET = ImmutableSet.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4);
+    private static final OldLockEvent OLD_LOCK_EVENT = ImmutableOldLockEvent.builder()
+            .sequence(SEQUENCE)
+            .lockDescriptors(LOCK_SET)
+            .lockToken(LOCK_TOKEN)
+            .build();
+    private static final LockEvent DEFAULT_LOCK_EVENT = ImmutableLockEvent.builder()
+            .sequence(SEQUENCE)
+            .lockDescriptors(LOCK_SET)
+            .lockToken(LOCK_TOKEN)
+            .build();
+    private static final byte[] BYTES_OLD = PtBytes.toBytes("old");
+    private static final byte[] BYTES_NEW = PtBytes.toBytes("new");
+    private static final byte[] BYTES_DELETED = PtBytes.toBytes("deleted");
+    private static final byte[] BYTES_CREATED = PtBytes.toBytes("created");
+    private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(ImmutableMap.of(
+            LOCK_1,
+            ChangeMetadata.unchanged(),
+            LOCK_2,
+            ChangeMetadata.updated(BYTES_OLD, BYTES_NEW),
+            LOCK_3,
+            ChangeMetadata.deleted(BYTES_DELETED),
+            LOCK_4,
+            ChangeMetadata.created(BYTES_CREATED)));
+
+    // TimeLock (Server) serializes and AtlasDB (Client) deserializes.
+    // These are the respective mappers used internally by Conjure.
+    private static final ObjectMapper SERIALIZATION_MAPPER =
+            ObjectMappers.newServerObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
+    private static final ObjectMapper DESERIALIZATION_MAPPER =
+            ObjectMappers.newClientObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
+    // This mapper is used to ensure that two JSONs are equal excluding indentation
+    private static final ObjectMapper VERIFYING_MAPPER = new ObjectMapper();
+
+    @Test
+    public void oldLockEventSerializesDeserializes() {
+        assertSerializedEquals(OLD_LOCK_EVENT, OLD_LOCK_EVENT_FILE);
+        assertDeserializedEquals(OLD_LOCK_EVENT_FILE, OLD_LOCK_EVENT, OldLockEvent.class);
+    }
+
+    @Test
+    public void absentMetadataSerializesDeserializes() {
+        assertSerializedEquals(DEFAULT_LOCK_EVENT, OLD_LOCK_EVENT_FILE);
+        assertDeserializedEquals(OLD_LOCK_EVENT_FILE, DEFAULT_LOCK_EVENT, LockEvent.class);
+    }
+
+    @Test
+    public void presentMetadataSerializesDeserializes() {
+        LockEvent lockEventWithMetadata =
+                ImmutableLockEvent.copyOf(DEFAULT_LOCK_EVENT).withMetadata(LOCK_REQUEST_METADATA);
+        assertSerializedEquals(lockEventWithMetadata, WITH_METADATA_FILE);
+        assertDeserializedEquals(WITH_METADATA_FILE, lockEventWithMetadata, LockEvent.class);
+    }
+
+    @Test
+    public void serializesDeserializesAsLockWatchEventWithMetadata() {
+        LockWatchEvent lockWatchEvent =
+                ImmutableLockEvent.copyOf(DEFAULT_LOCK_EVENT).withMetadata(LOCK_REQUEST_METADATA);
+        assertSerializedEquals(lockWatchEvent, WITH_METADATA_FILE);
+        assertDeserializedEquals(WITH_METADATA_FILE, lockWatchEvent, LockWatchEvent.class);
+    }
+
+    @Test
+    public void emptyMetadataMapSerializesDeserializes() {
+        LockEvent lockEventWithMetadata =
+                ImmutableLockEvent.copyOf(DEFAULT_LOCK_EVENT).withMetadata(LockRequestMetadata.of(ImmutableMap.of()));
+        assertSerializedEquals(lockEventWithMetadata, WITH_EMPTY_METADATA_MAP_FILE);
+        assertDeserializedEquals(WITH_EMPTY_METADATA_MAP_FILE, lockEventWithMetadata, LockEvent.class);
+    }
+
+    // This behavior should be guaranteed by the Conjure spec
+    @Test
+    public void oldClientIgnoresMetadata() {
+        assertDeserializedEquals(WITH_METADATA_FILE, OLD_LOCK_EVENT, OldLockEvent.class);
+    }
+
+    @Test
+    public void sparseMetadataSerializesDeserializes() {
+        List<LockDescriptor> lockDescriptors = IntStream.range(0, 10)
+                .mapToObj(Integer::toString)
+                .map(StringLockDescriptor::of)
+                .collect(Collectors.toList());
+        // Unique metadata on some locks, but not all
+        Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata = ImmutableMap.of(
+                lockDescriptors.get(0), ChangeMetadata.created(BYTES_CREATED),
+                lockDescriptors.get(4), ChangeMetadata.deleted(BYTES_DELETED),
+                lockDescriptors.get(9), ChangeMetadata.unchanged(),
+                lockDescriptors.get(5), ChangeMetadata.updated(BYTES_OLD, BYTES_NEW),
+                lockDescriptors.get(7), ChangeMetadata.unchanged());
+        LockEvent lockEventWithSparseMetadata = ImmutableLockEvent.builder()
+                .lockDescriptors(lockDescriptors)
+                .sequence(SEQUENCE)
+                .lockToken(LOCK_TOKEN)
+                .metadata(LockRequestMetadata.of(lockDescriptorToChangeMetadata))
+                .build();
+
+        assertSerializedEquals(lockEventWithSparseMetadata, SPARSE_METADATA_FILE);
+        assertDeserializedEquals(SPARSE_METADATA_FILE, lockEventWithSparseMetadata, LockEvent.class);
+    }
+
+    @Test
+    public void shufflingLockDescriptorsOnTheWireIsDetectedByClient() {
+        assertThatThrownBy(() ->
+                        // The order of the lock descriptors in this JSON file is swapped
+                        DESERIALIZATION_MAPPER.readValue(
+                                Files.readString(getJsonPath(SHUFFLED_LOCKS_FILE)), LockEvent.class))
+                .rootCause()
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageStartingWith("Key list integrity check failed");
+    }
+
+    @Test
+    public void cannotDeserializeAsWireLockEvent() {
+        assertThatThrownBy(() -> DESERIALIZATION_MAPPER.readValue(
+                        Files.readString(getJsonPath(WITH_METADATA_FILE)), LockEvent.WireLockEvent.class))
+                .isInstanceOf(InvalidDefinitionException.class);
+    }
+
+    private static <T> void assertSerializedEquals(T object, String jsonFileName) {
+        try {
+            Path path = getJsonPath(jsonFileName);
+            if (REWRITE_JSON_BLOBS) {
+                SERIALIZATION_MAPPER.writeValue(path.toFile(), object);
+            }
+            String serialized = SERIALIZATION_MAPPER.writeValueAsString(object);
+            assertThat(VERIFYING_MAPPER.readTree(serialized))
+                    .as("Serialization yields semantically identical JSON representation")
+                    .isEqualTo(VERIFYING_MAPPER.readTree(Files.readString(path)));
+        } catch (IOException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private static <T> void assertDeserializedEquals(String jsonFileName, T object, Class<T> clazz) {
+        try {
+            assertThat(DESERIALIZATION_MAPPER.readValue(Files.readString(getJsonPath(jsonFileName)), clazz))
+                    .as("Deserialization yields identical object")
+                    .isEqualTo(object);
+        } catch (IOException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private static Path getJsonPath(String jsonFileName) {
+        return Paths.get(BASE, jsonFileName + ".json");
+    }
+
+    // This is a copy of the LockEvent class before metadata was added
+    @Value.Immutable
+    @JsonSerialize(as = ImmutableOldLockEvent.class)
+    @JsonDeserialize(as = ImmutableOldLockEvent.class)
+    @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
+    @JsonTypeName(LockEvent.TYPE)
+    public interface OldLockEvent {
+        long sequence();
+
+        Set<LockDescriptor> lockDescriptors();
+
+        LockToken lockToken();
+    }
+}u}(j (1d1d3cf3bf2579562acbf88f3b9915493eb45cedj& Clock-api-objects/src/test/resources/lock-event-wire-format/old.jsonj( addedj  Kj! K j* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fold.jsonj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fold.jsonj/ https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fold.json?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X?  @@ -0,0 +1,16 @@
+{
+  "type" : "lock",
+  "sequence" : 10,
+  "lockDescriptors" : [ {
+    "bytes" : "YWJj"
+  }, {
+    "bytes" : "ZGVm"
+  }, {
+    "bytes" : "Z2hp"
+  }, {
+    "bytes" : "amts"
+  } ],
+  "lockToken" : {
+    "requestId" : "00000000-0000-0539-0000-00000000002a"
+  }
+}
\ No newline at end of fileu}(j (cc146577c79cb9e4b947642412249c7d1fa65b9bj& Nlock-api-objects/src/test/resources/lock-event-wire-format/shuffled-locks.jsonj( addedj  Kj! K j* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fshuffled-locks.jsonj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fshuffled-locks.jsonj/ https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fshuffled-locks.json?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X-  @@ -0,0 +1,27 @@
+{
+  "type" : "lock",
+  "sequence" : 10,
+  "lockDescriptors" : [ {
+    "bytes" : "dGVzdC1sb2Nr"
+  }, {
+    "bytes" : "YWJj"
+  } ],
+  "lockToken" : {
+    "requestId" : "00000000-0000-0539-0000-00000000002a"
+  },
+  "metadata" : {
+    "indexToChangeMetadata" : {
+      "0" : {
+        "type" : "created",
+        "newValue" : "bmV3"
+      },
+      "1" : {
+        "type" : "unchanged"
+      }
+    },
+    "lockListChecksum" : {
+      "typeId" : 1,
+      "value" : "AAAAAIOu57o="
+    }
+  }
+}
\ No newline at end of fileu}(j (c463a4528f6bad141ab71a4124edd6fd095ccb67j& Olock-api-objects/src/test/resources/lock-event-wire-format/sparse-metadata.jsonj( addedj  K7j! K j* K7j+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fsparse-metadata.jsonj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fsparse-metadata.jsonj/ https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fsparse-metadata.json?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X   @@ -0,0 +1,55 @@
+{
+  "type" : "lock",
+  "sequence" : 10,
+  "lockDescriptors" : [ {
+    "bytes" : "MA=="
+  }, {
+    "bytes" : "MQ=="
+  }, {
+    "bytes" : "Mg=="
+  }, {
+    "bytes" : "Mw=="
+  }, {
+    "bytes" : "NA=="
+  }, {
+    "bytes" : "NQ=="
+  }, {
+    "bytes" : "Ng=="
+  }, {
+    "bytes" : "Nw=="
+  }, {
+    "bytes" : "OA=="
+  }, {
+    "bytes" : "OQ=="
+  } ],
+  "lockToken" : {
+    "requestId" : "00000000-0000-0539-0000-00000000002a"
+  },
+  "metadata" : {
+    "indexToChangeMetadata" : {
+      "0" : {
+        "type" : "created",
+        "newValue" : "Y3JlYXRlZA=="
+      },
+      "4" : {
+        "type" : "deleted",
+        "oldValue" : "ZGVsZXRlZA=="
+      },
+      "5" : {
+        "type" : "updated",
+        "oldValue" : "b2xk",
+        "newValue" : "bmV3"
+      },
+      "7" : {
+        "type" : "unchanged"
+      },
+      "9" : {
+        "type" : "unchanged"
+      }
+    },
+    "lockListChecksum" : {
+      "typeId" : 1,
+      "value" : "AAAAALDKyYU="
+    }
+  }
+}
\ No newline at end of fileu}(j (2c9785a186f61aaa5706802f2c384a031bb75f3ej& Wlock-api-objects/src/test/resources/lock-event-wire-format/with-empty-metadata-map.jsonj( addedj  Kj! K j* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-empty-metadata-map.jsonj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-empty-metadata-map.jsonj/ https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-empty-metadata-map.json?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X  @@ -0,0 +1,23 @@
+{
+  "type" : "lock",
+  "sequence" : 10,
+  "lockDescriptors" : [ {
+    "bytes" : "YWJj"
+  }, {
+    "bytes" : "ZGVm"
+  }, {
+    "bytes" : "Z2hp"
+  }, {
+    "bytes" : "amts"
+  } ],
+  "lockToken" : {
+    "requestId" : "00000000-0000-0539-0000-00000000002a"
+  },
+  "metadata" : {
+    "indexToChangeMetadata" : { },
+    "lockListChecksum" : {
+      "typeId" : 1,
+      "value" : "AAAAADUuws0="
+    }
+  }
+}
\ No newline at end of fileu}(j (c11abb8e1348ee4599b6226e583474cda683e1efj& Mlock-api-objects/src/test/resources/lock-event-wire-format/with-metadata.jsonj( addedj  K(j! K j* K(j+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-metadata.jsonj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-metadata.jsonj/ https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fresources%2Flock-event-wire-format%2Fwith-metadata.json?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X5  @@ -0,0 +1,40 @@
+{
+  "type" : "lock",
+  "sequence" : 10,
+  "lockDescriptors" : [ {
+    "bytes" : "YWJj"
+  }, {
+    "bytes" : "ZGVm"
+  }, {
+    "bytes" : "Z2hp"
+  }, {
+    "bytes" : "amts"
+  } ],
+  "lockToken" : {
+    "requestId" : "00000000-0000-0539-0000-00000000002a"
+  },
+  "metadata" : {
+    "indexToChangeMetadata" : {
+      "0" : {
+        "type" : "unchanged"
+      },
+      "1" : {
+        "type" : "updated",
+        "oldValue" : "b2xk",
+        "newValue" : "bmV3"
+      },
+      "2" : {
+        "type" : "deleted",
+        "oldValue" : "ZGVsZXRlZA=="
+      },
+      "3" : {
+        "type" : "created",
+        "newValue" : "Y3JlYXRlZA=="
+      }
+    },
+    "lockListChecksum" : {
+      "typeId" : 1,
+      "value" : "AAAAADUuws0="
+    }
+  }
+}
\ No newline at end of fileu}(j (fdd60c0b734cecbf10734e0fbd30536bb6a5dec9j& Hlock-api/src/main/java/com/palantir/lock/client/ConjureLockRequests.javaj( modifiedj  Kj! Kj* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequests.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequests.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequests.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 XJ
  @@ -16,6 +16,7 @@
 
 package com.palantir.lock.client;
 
+import com.google.common.collect.ImmutableList;
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.timelock.api.ConjureIdentifiedVersion;
 import com.palantir.atlasdb.timelock.api.ConjureLockDescriptor;
@@ -27,7 +28,10 @@
 import com.palantir.lock.v2.LockRequest;
 import com.palantir.lock.v2.WaitForLocksRequest;
 import com.palantir.lock.v2.WaitForLocksResponse;
+import com.palantir.lock.watch.ConjureLockRequestMetadataUtils;
+import com.palantir.lock.watch.ConjureLockRequestMetadataUtils.ConjureMetadataConversionResult;
 import com.palantir.lock.watch.LockWatchVersion;
+import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
@@ -37,11 +41,18 @@ public final class ConjureLockRequests {
     private ConjureLockRequests() {}
 
     public static ConjureLockRequest toConjure(LockRequest request) {
+        Optional<ConjureMetadataConversionResult> optConversionResult = request.getMetadata()
+                .map(metadata ->
+                        ConjureLockRequestMetadataUtils.toConjureIndexEncoded(request.getLockDescriptors(), metadata));
+        List<LockDescriptor> orderedLocks = optConversionResult
+                .map(ConjureMetadataConversionResult::lockList)
+                .orElseGet(() -> ImmutableList.copyOf(request.getLockDescriptors()));
         return ConjureLockRequest.builder()
-                .lockDescriptors(toConjure(request.getLockDescriptors()))
+                .lockDescriptors(toConjure(orderedLocks))
                 .clientDescription(request.getClientDescription())
                 .requestId(UUID.randomUUID())
                 .acquireTimeoutMs(Ints.checkedCast(request.getAcquireTimeoutMs()))
+                .metadata(optConversionResult.map(ConjureMetadataConversionResult::conjureMetadata))
                 .build();
     }
 
@@ -62,6 +73,14 @@ private static Set<ConjureLockDescriptor> toConjure(Set<LockDescriptor> lockDesc
                 .collect(Collectors.toSet());
     }
 
+    private static List<ConjureLockDescriptor> toConjure(List<LockDescriptor> lockDescriptors) {
+        return lockDescriptors.stream()
+                .map(LockDescriptor::getBytes)
+                .map(Bytes::from)
+                .map(ConjureLockDescriptor::of)
+                .collect(Collectors.toList());
+    }
+
     public static Optional<ConjureIdentifiedVersion> toConjure(Optional<LockWatchVersion> maybeVersion) {
         return maybeVersion.map(identifiedVersion -> ConjureIdentifiedVersion.builder()
                 .id(identifiedVersion.id())u}(j (96fe402e4d52617d8c36e2a0ce2d98c6c893ef57j& Nlock-api/src/test/java/com/palantir/lock/client/IdentifiedLockRequestTest.javaj( modifiedj  Kj! Kj* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X  @@ -99,6 +99,6 @@ private static IdentifiedLockRequest deserialize(String jsonFileName) {
     }
 
     private static Path getJsonPath(String jsonFileName) {
-        return Paths.get(BASE + jsonFileName + ".json");
+        return Paths.get(BASE, jsonFileName + ".json");
     }
 }u}(j (efa35782df23f11a2b560a1360460927c3a64c83j& timelock-api/build.gradlej( modifiedj  Kj! K j* Kj+ mhttps://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-api%2Fbuild.gradlej- lhttps://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-api%2Fbuild.gradlej/ https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fbuild.gradle?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X[  @@ -7,6 +7,11 @@ dependencies {
     compileOnly 'com.fasterxml.jackson.core:jackson-databind'
     compileOnly 'org.immutables:value::annotations'
     annotationProcessor 'org.immutables:value'
+
+    testImplementation project(':atlasdb-api')
+    testImplementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
+    testImplementation 'junit:junit'
+    testImplementation 'org.assertj:assertj-core'
 }
 
 subprojects {
@@ -28,3 +33,9 @@ subprojects {
     }
     tasks.licenseMain.enabled = false
 }
+
+conjure {
+    java {
+        excludeEmptyOptionals = true
+    }
+}u}(j (fde4513aa3ded3e8c3dd435abae8afd3aadb7511j& .timelock-api/src/main/conjure/timelock-api.ymlj( modifiedj  Kj! Kj* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-api.ymlj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-api.ymlj/ https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-api.yml?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X  @@ -139,13 +139,14 @@ types:
           requestId:
             type: uuid
             safety: safe
-          lockDescriptors: set<ConjureLockDescriptor>
+          lockDescriptors: list<ConjureLockDescriptor>
           acquireTimeoutMs:
             type: integer
             safety: safe
           clientDescription:
             type: optional<string>
             safety: unsafe
+          metadata: optional<ConjureLockRequestMetadata>
       ConjureLockToken:
         fields:
           requestId:u}(j (00bacead92b2565926c6a60644ee7001dcabc21bj& Xtimelock-api/src/test/java/com/palantir/atlasdb/timelock/api/ConjureLockRequestTest.javaj( addedj  Kj! K j* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FConjureLockRequestTest.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FConjureLockRequestTest.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FConjureLockRequestTest.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X  @@ -0,0 +1,157 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock.api;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.conjure.java.lib.Bytes;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.UUID;
+import org.junit.Test;
+
+public class ConjureLockRequestTest {
+    private static final String BASE = "src/test/resources/conjure-lock-request-wire-format/";
+    private static final String LEGACY_CONJURE_LOCK_REQUEST_FILE = "legacy";
+    private static final String WITH_METADATA_FILE = "with-metadata";
+    private static final boolean REWRITE_JSON_BLOBS = false;
+
+    private static final ConjureLockDescriptor LOCK_1 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("abc")));
+    private static final ConjureLockDescriptor LOCK_2 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("def")));
+    private static final ConjureLockDescriptor LOCK_3 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("ghi")));
+    private static final ConjureLockDescriptor LOCK_4 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("jkl")));
+    private static final UUID REQUEST_ID = new UUID(1337, 42);
+    private static final int ACQUIRE_TIMEOUT_MS = 100;
+    private static final String CLIENT_DESCRIPTION = "client: test, thread: test";
+    private static final LegacyConjureLockRequest LEGACY_CONJURE_LOCK_REQUEST = LegacyConjureLockRequest.builder()
+            .requestId(REQUEST_ID)
+            .lockDescriptors(ImmutableSet.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4))
+            .acquireTimeoutMs(ACQUIRE_TIMEOUT_MS)
+            .clientDescription(CLIENT_DESCRIPTION)
+            .build();
+    private static final ConjureLockRequest DEFAULT_CONJURE_LOCK_REQUEST = ConjureLockRequest.builder()
+            .requestId(REQUEST_ID)
+            .lockDescriptors(ImmutableList.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4))
+            .acquireTimeoutMs(ACQUIRE_TIMEOUT_MS)
+            .clientDescription(CLIENT_DESCRIPTION)
+            .build();
+
+    private static final byte[] BYTES_OLD = PtBytes.toBytes("old");
+    private static final byte[] BYTES_NEW = PtBytes.toBytes("new");
+    private static final byte[] BYTES_DELETED = PtBytes.toBytes("deleted");
+    private static final byte[] BYTES_CREATED = PtBytes.toBytes("created");
+    // The checksum on this does not have to be correct since the integrity check is performed by the server and not
+    // by Conjure itself
+    private static final ConjureLockRequestMetadata CONJURE_LOCK_REQUEST_METADATA = ConjureLockRequestMetadata.of(
+            ImmutableMap.of(
+                    0,
+                    ConjureChangeMetadata.unchanged(ConjureUnchangedChangeMetadata.of()),
+                    1,
+                    ConjureChangeMetadata.updated(
+                            ConjureUpdatedChangeMetadata.of(Bytes.from(BYTES_OLD), Bytes.from(BYTES_NEW))),
+                    2,
+                    ConjureChangeMetadata.deleted(ConjureDeletedChangeMetadata.of(Bytes.from(BYTES_DELETED))),
+                    3,
+                    ConjureChangeMetadata.created(ConjureCreatedChangeMetadata.of(Bytes.from(BYTES_CREATED)))),
+            ConjureLockDescriptorListChecksum.of(0, Bytes.from(PtBytes.toBytes("test-checksum-value"))));
+
+    // AtlasDB (Client) serializes and TimeLock (Server) deserializes ConjureLockRequest objects.
+    // These are the respective mappers used internally by Conjure.
+    private static final ObjectMapper SERIALIZATION_MAPPER =
+            ObjectMappers.newClientObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
+    private static final ObjectMapper DESERIALIZATION_MAPPER =
+            ObjectMappers.newServerObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
+    // This mapper is used to ensure that two JSONs are equal excluding indentation
+    private static final ObjectMapper VERIFYING_MAPPER = new ObjectMapper();
+
+    @Test
+    public void oldConjureLockRequestSerializesDeserializes() {
+        assertSerializedEquals(LEGACY_CONJURE_LOCK_REQUEST, LEGACY_CONJURE_LOCK_REQUEST_FILE);
+        assertDeserializedEquals(
+                LEGACY_CONJURE_LOCK_REQUEST_FILE, LEGACY_CONJURE_LOCK_REQUEST, LegacyConjureLockRequest.class);
+    }
+
+    @Test
+    public void absentMetadataSerializesDeserializes() {
+        // Because we use the Conjure configuration "excludeEmptyOptionals = true", we omit fields with empty optionals
+        // during serialization instead of setting them to null.
+        assertSerializedEquals(DEFAULT_CONJURE_LOCK_REQUEST, LEGACY_CONJURE_LOCK_REQUEST_FILE);
+        assertDeserializedEquals(
+                LEGACY_CONJURE_LOCK_REQUEST_FILE, DEFAULT_CONJURE_LOCK_REQUEST, ConjureLockRequest.class);
+    }
+
+    @Test
+    public void presentMetadataSerializesDeserializes() {
+        ConjureLockRequest requestWithMetadata = ConjureLockRequest.builder()
+                .from(DEFAULT_CONJURE_LOCK_REQUEST)
+                .metadata(CONJURE_LOCK_REQUEST_METADATA)
+                .build();
+        assertSerializedEquals(requestWithMetadata, WITH_METADATA_FILE);
+        assertDeserializedEquals(WITH_METADATA_FILE, requestWithMetadata, ConjureLockRequest.class);
+    }
+
+    @Test
+    public void newServerCanHandleMissingMetadata() {
+        assertDeserializedEquals(
+                LEGACY_CONJURE_LOCK_REQUEST_FILE, DEFAULT_CONJURE_LOCK_REQUEST, ConjureLockRequest.class);
+    }
+
+    @Test
+    public void oldServerCanHandlePresentMetadata() {
+        // Because we use the Conjure configuration "strictObjects = false", our Conjure objects actually ignore
+        // unknown properties, even on the server side.
+        assertDeserializedEquals(WITH_METADATA_FILE, LEGACY_CONJURE_LOCK_REQUEST, LegacyConjureLockRequest.class);
+    }
+
+    private static <T> void assertSerializedEquals(T object, String jsonFileName) {
+        try {
+            Path path = getJsonPath(jsonFileName);
+            if (REWRITE_JSON_BLOBS) {
+                SERIALIZATION_MAPPER.writeValue(path.toFile(), object);
+            }
+            String serialized = SERIALIZATION_MAPPER.writeValueAsString(object);
+            assertThat(VERIFYING_MAPPER.readTree(serialized))
+                    .as("Serialization yields semantically identical JSON representation")
+                    .isEqualTo(VERIFYING_MAPPER.readTree(Files.readString(path)));
+        } catch (IOException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private static <T> void assertDeserializedEquals(String jsonFileName, T object, Class<T> clazz) {
+        try {
+            assertThat(DESERIALIZATION_MAPPER.readValue(Files.readString(getJsonPath(jsonFileName)), clazz))
+                    .as("Deserialization yields identical object")
+                    .isEqualTo(object);
+        } catch (IOException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private static Path getJsonPath(String jsonFileName) {
+        return Paths.get(BASE, jsonFileName + ".json");
+    }
+}u}(j (4b6b7e1a40067dbc572e6bd05e38e2b7a38abef2j& Ztimelock-api/src/test/java/com/palantir/atlasdb/timelock/api/LegacyConjureLockRequest.javaj( addedj  M
j! K j* M
j+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FLegacyConjureLockRequest.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FLegacyConjureLockRequest.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FLegacyConjureLockRequest.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 Xk(  @@ -0,0 +1,266 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock.api;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonSetter;
+import com.fasterxml.jackson.annotation.Nulls;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.palantir.conjure.java.lib.internal.ConjureCollections;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.Safe;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.Unsafe;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.LinkedHashSet;
+import java.util.List;
+import java.util.Optional;
+import java.util.Set;
+import java.util.UUID;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+import javax.annotation.processing.Generated;
+
+// Copy of Conjure-generated file and prefixed with "Legcacy" to avoid conflicts
+@Unsafe
+@JsonDeserialize(builder = LegacyConjureLockRequest.Builder.class)
+@Generated("com.palantir.conjure.java.types.BeanGenerator")
+public final class LegacyConjureLockRequest {
+    private final UUID requestId;
+
+    private final Set<ConjureLockDescriptor> lockDescriptors;
+
+    private final int acquireTimeoutMs;
+
+    private final Optional<String> clientDescription;
+
+    private int memoizedHashCode;
+
+    private LegacyConjureLockRequest(
+            UUID requestId,
+            Set<ConjureLockDescriptor> lockDescriptors,
+            int acquireTimeoutMs,
+            Optional<String> clientDescription) {
+        validateFields(requestId, lockDescriptors, clientDescription);
+        this.requestId = requestId;
+        this.lockDescriptors = Collections.unmodifiableSet(lockDescriptors);
+        this.acquireTimeoutMs = acquireTimeoutMs;
+        this.clientDescription = clientDescription;
+    }
+
+    @JsonProperty("requestId")
+    @Safe
+    public UUID getRequestId() {
+        return this.requestId;
+    }
+
+    @JsonProperty("lockDescriptors")
+    public Set<ConjureLockDescriptor> getLockDescriptors() {
+        return this.lockDescriptors;
+    }
+
+    @JsonProperty("acquireTimeoutMs")
+    @Safe
+    public int getAcquireTimeoutMs() {
+        return this.acquireTimeoutMs;
+    }
+
+    @JsonProperty("clientDescription")
+    @Unsafe
+    public Optional<String> getClientDescription() {
+        return this.clientDescription;
+    }
+
+    @Override
+    public boolean equals(@Nullable Object other) {
+        return this == other
+                || (other instanceof LegacyConjureLockRequest && equalTo((LegacyConjureLockRequest) other));
+    }
+
+    private boolean equalTo(LegacyConjureLockRequest other) {
+        if (this.memoizedHashCode != 0
+                && other.memoizedHashCode != 0
+                && this.memoizedHashCode != other.memoizedHashCode) {
+            return false;
+        }
+        return this.requestId.equals(other.requestId)
+                && this.lockDescriptors.equals(other.lockDescriptors)
+                && this.acquireTimeoutMs == other.acquireTimeoutMs
+                && this.clientDescription.equals(other.clientDescription);
+    }
+
+    @Override
+    public int hashCode() {
+        int result = memoizedHashCode;
+        if (result == 0) {
+            int hash = 1;
+            hash = 31 * hash + this.requestId.hashCode();
+            hash = 31 * hash + this.lockDescriptors.hashCode();
+            hash = 31 * hash + this.acquireTimeoutMs;
+            hash = 31 * hash + this.clientDescription.hashCode();
+            result = hash;
+            memoizedHashCode = result;
+        }
+        return result;
+    }
+
+    @Override
+    @Unsafe
+    public String toString() {
+        return "OldConjureLockRequest{requestId: " + requestId + ", lockDescriptors: " + lockDescriptors
+                + ", acquireTimeoutMs: " + acquireTimeoutMs + ", clientDescription: " + clientDescription + '}';
+    }
+
+    private static void validateFields(
+            UUID requestId, Set<ConjureLockDescriptor> lockDescriptors, Optional<String> clientDescription) {
+        List<String> missingFields = null;
+        missingFields = addFieldIfMissing(missingFields, requestId, "requestId");
+        missingFields = addFieldIfMissing(missingFields, lockDescriptors, "lockDescriptors");
+        missingFields = addFieldIfMissing(missingFields, clientDescription, "clientDescription");
+        if (missingFields != null) {
+            throw new SafeIllegalArgumentException(
+                    "Some required fields have not been set", SafeArg.of("missingFields", missingFields));
+        }
+    }
+
+    private static List<String> addFieldIfMissing(List<String> prev, Object fieldValue, String fieldName) {
+        List<String> missingFields = prev;
+        if (fieldValue == null) {
+            if (missingFields == null) {
+                missingFields = new ArrayList<>(3);
+            }
+            missingFields.add(fieldName);
+        }
+        return missingFields;
+    }
+
+    public static Builder builder() {
+        return new Builder();
+    }
+
+    @Generated("com.palantir.conjure.java.types.BeanBuilderGenerator")
+    @JsonIgnoreProperties(ignoreUnknown = true)
+    public static final class Builder {
+        boolean _buildInvoked;
+
+        private @Safe UUID requestId;
+
+        private Set<ConjureLockDescriptor> lockDescriptors = new LinkedHashSet<>();
+
+        private @Safe int acquireTimeoutMs;
+
+        private Optional<@Unsafe String> clientDescription = Optional.empty();
+
+        private boolean _acquireTimeoutMsInitialized = false;
+
+        private Builder() {}
+
+        public Builder from(LegacyConjureLockRequest other) {
+            checkNotBuilt();
+            requestId(other.getRequestId());
+            lockDescriptors(other.getLockDescriptors());
+            acquireTimeoutMs(other.getAcquireTimeoutMs());
+            clientDescription(other.getClientDescription());
+            return this;
+        }
+
+        @JsonSetter("requestId")
+        public Builder requestId(@Nonnull @Safe UUID requestId) {
+            checkNotBuilt();
+            this.requestId = Preconditions.checkNotNull(requestId, "requestId cannot be null");
+            return this;
+        }
+
+        @JsonSetter(value = "lockDescriptors", nulls = Nulls.SKIP)
+        public Builder lockDescriptors(@Nonnull Iterable<ConjureLockDescriptor> lockDescriptors) {
+            checkNotBuilt();
+            this.lockDescriptors = ConjureCollections.newLinkedHashSet(
+                    Preconditions.checkNotNull(lockDescriptors, "lockDescriptors cannot be null"));
+            return this;
+        }
+
+        public Builder addAllLockDescriptors(@Nonnull Iterable<ConjureLockDescriptor> lockDescriptors) {
+            checkNotBuilt();
+            ConjureCollections.addAll(
+                    this.lockDescriptors,
+                    Preconditions.checkNotNull(lockDescriptors, "lockDescriptors cannot be null"));
+            return this;
+        }
+
+        public Builder lockDescriptors(ConjureLockDescriptor lockDescriptors) {
+            checkNotBuilt();
+            this.lockDescriptors.add(lockDescriptors);
+            return this;
+        }
+
+        @JsonSetter("acquireTimeoutMs")
+        public Builder acquireTimeoutMs(@Safe int acquireTimeoutMs) {
+            checkNotBuilt();
+            this.acquireTimeoutMs = acquireTimeoutMs;
+            this._acquireTimeoutMsInitialized = true;
+            return this;
+        }
+
+        @JsonSetter(value = "clientDescription", nulls = Nulls.SKIP)
+        public Builder clientDescription(@Nonnull Optional<@Unsafe String> clientDescription) {
+            checkNotBuilt();
+            this.clientDescription = Preconditions.checkNotNull(clientDescription, "clientDescription cannot be null");
+            return this;
+        }
+
+        public Builder clientDescription(@Nonnull @Unsafe String clientDescription) {
+            checkNotBuilt();
+            this.clientDescription =
+                    Optional.of(Preconditions.checkNotNull(clientDescription, "clientDescription cannot be null"));
+            return this;
+        }
+
+        private void validatePrimitiveFieldsHaveBeenInitialized() {
+            List<String> missingFields = null;
+            missingFields = addFieldIfMissing(missingFields, _acquireTimeoutMsInitialized, "acquireTimeoutMs");
+            if (missingFields != null) {
+                throw new SafeIllegalArgumentException(
+                        "Some required fields have not been set", SafeArg.of("missingFields", missingFields));
+            }
+        }
+
+        private static List<String> addFieldIfMissing(List<String> prev, boolean initialized, String fieldName) {
+            List<String> missingFields = prev;
+            if (!initialized) {
+                if (missingFields == null) {
+                    missingFields = new ArrayList<>(1);
+                }
+                missingFields.add(fieldName);
+            }
+            return missingFields;
+        }
+
+        public LegacyConjureLockRequest build() {
+            checkNotBuilt();
+            this._buildInvoked = true;
+            validatePrimitiveFieldsHaveBeenInitialized();
+            return new LegacyConjureLockRequest(requestId, lockDescriptors, acquireTimeoutMs, clientDescription);
+        }
+
+        private void checkNotBuilt() {
+            Preconditions.checkState(!_buildInvoked, "Build has already been called");
+        }
+    }
+}u}(j (e1b7813afcfedd61b6686b1bab138e5f151ea739j& Ltimelock-api/src/test/resources/conjure-lock-request-wire-format/legacy.jsonj( addedj  Kj! K j* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Flegacy.jsonj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Flegacy.jsonj/ https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Flegacy.json?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 @@ -0,0 +1,6 @@
+{
+  "requestId" : "00000000-0000-0539-0000-00000000002a",
+  "lockDescriptors" : [ "YWJj", "ZGVm", "Z2hp", "amts" ],
+  "acquireTimeoutMs" : 100,
+  "clientDescription" : "client: test, thread: test"
+}
\ No newline at end of fileu}(j (56e0e9f551398a56e8c56e758c6eab6f6d5a6072j& Stimelock-api/src/test/resources/conjure-lock-request-wire-format/with-metadata.jsonj( addedj  K%j! K j* K%j+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fwith-metadata.jsonj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fwith-metadata.jsonj/ https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fwith-metadata.json?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271b	     j1 X  @@ -0,0 +1,37 @@
+{
+  "requestId" : "00000000-0000-0539-0000-00000000002a",
+  "lockDescriptors" : [ "YWJj", "ZGVm", "Z2hp", "amts" ],
+  "acquireTimeoutMs" : 100,
+  "clientDescription" : "client: test, thread: test",
+  "metadata" : {
+    "indexToChangeMetadata" : {
+      "0" : {
+        "type" : "unchanged",
+        "unchanged" : { }
+      },
+      "1" : {
+        "type" : "updated",
+        "updated" : {
+          "oldValue" : "b2xk",
+          "newValue" : "bmV3"
+        }
+      },
+      "2" : {
+        "type" : "deleted",
+        "deleted" : {
+          "oldValue" : "ZGVsZXRlZA=="
+        }
+      },
+      "3" : {
+        "type" : "created",
+        "created" : {
+          "newValue" : "Y3JlYXRlZA=="
+        }
+      }
+    },
+    "lockListChecksum" : {
+      "typeId" : 0,
+      "value" : "dGVzdC1jaGVja3N1bS12YWx1ZQ=="
+    }
+  }
+}
\ No newline at end of fileu}(j (b8c7fe17976b2dba7ec9f678d87a104b61a8622dj& Vtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/ConjureTimelockResource.javaj( modifiedj  Kj! Kj* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FConjureTimelockResource.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FConjureTimelockResource.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FConjureTimelockResource.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.timelock;
 
 import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Sets;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
@@ -68,9 +69,13 @@
 import com.palantir.lock.v2.RefreshLockResponseV2;
 import com.palantir.lock.v2.WaitForLocksRequest;
 import com.palantir.lock.v2.WaitForLocksResponse;
+import com.palantir.lock.watch.ConjureLockRequestMetadataUtils;
+import com.palantir.lock.watch.ConjureLockRequestMetadataUtils.ConjureMetadataConversionResult;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchVersion;
 import com.palantir.timestamp.TimestampRange;
 import com.palantir.tokens.auth.AuthHeader;
+import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.function.Function;
@@ -145,11 +150,19 @@ public ListenableFuture<LeaderTime> leaderTime(AuthHeader authHeader, String nam
     public ListenableFuture<ConjureLockResponse> lock(
             AuthHeader authHeader, String namespace, ConjureLockRequest request) {
         return handleExceptions(() -> {
+            List<LockDescriptor> lockDescriptors = fromConjureLockDescriptors(request.getLockDescriptors());
+            Optional<LockRequestMetadata> metadata = request.getMetadata()
+                    .map(conjureMetadata -> ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(
+                            ConjureMetadataConversionResult.builder()
+                                    .conjureMetadata(conjureMetadata)
+                                    .lockList(lockDescriptors)
+                                    .build()));
             IdentifiedLockRequest lockRequest = ImmutableIdentifiedLockRequest.builder()
-                    .lockDescriptors(fromConjureLockDescriptors(request.getLockDescriptors()))
+                    .lockDescriptors(lockDescriptors)
                     .clientDescription(request.getClientDescription())
                     .requestId(request.getRequestId())
                     .acquireTimeoutMs(request.getAcquireTimeoutMs())
+                    .metadata(metadata)
                     .build();
             ListenableFuture<LockResponseV2> tokenFuture =
                     forNamespace(namespace).lock(lockRequest);
@@ -182,12 +195,13 @@ public ListenableFuture<ConjureWaitForLocksResponse> waitForLocks(
         });
     }
 
-    private static Set<LockDescriptor> fromConjureLockDescriptors(Set<ConjureLockDescriptor> lockDescriptors) {
-        Set<LockDescriptor> descriptors = Sets.newHashSetWithExpectedSize(lockDescriptors.size());
+    private static List<LockDescriptor> fromConjureLockDescriptors(List<ConjureLockDescriptor> lockDescriptors) {
+        ImmutableList.Builder<LockDescriptor> descriptors =
+                ImmutableList.builderWithExpectedSize(lockDescriptors.size());
         for (ConjureLockDescriptor descriptor : lockDescriptors) {
             descriptors.add(ByteArrayLockDescriptor.of(descriptor.get().asNewByteArray()));
         }
-        return descriptors;
+        return descriptors.build();
     }
 
     @Overrideu}(j (08876923395e82027205da60a8814a680cbfd019j& atimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javaj( modifiedj  Kj! Kj* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 X  @@ -193,15 +193,18 @@ private static Optional<LockRequestMetadata> filterMetadataBasedOnFilteredLocks(
             Optional<LockRequestMetadata> unfilteredMetadata) {
         return unfilteredMetadata
                 .map(LockRequestMetadata::lockDescriptorToChangeMetadata)
-                .map(unfilteredLockMetadata -> {
+                .flatMap(unfilteredLockMetadata -> {
                     Map<LockDescriptor, ChangeMetadata> filteredLockMetadata = KeyedStream.ofEntries(
                                     unfilteredLockMetadata.entrySet().stream())
                             .filterKeys(lockDescriptor -> {
                                 assert unfilteredLocks.contains(lockDescriptor) : "Unknown lock descriptor in metadata";
                                 return filteredLocks.contains(lockDescriptor);
                             })
                             .collectToMap();
-                    return LockRequestMetadata.of(filteredLockMetadata);
+                    if (filteredLockMetadata.isEmpty()) {
+                        return Optional.empty();
+                    }
+                    return Optional.of(LockRequestMetadata.of(filteredLockMetadata));
                 });
     }
 }u}(j (2b250b7d920d2bfcc7d3ce072eaed3742cfb4a00j& etimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImplTest.javaj( modifiedj  K'j! K j* K'j+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 Xk	  @@ -342,6 +342,45 @@ public void unlockWithoutLockTest() {
         assertLoggedEvents(expectedEvents);
     }
 
+    @Test
+    public void sparseMetadataIsFiltered() {
+        LockDescriptor cellOutOfRange = AtlasCellLockDescriptor.of(TABLE_2.getQualifiedName(), ROW, ROW);
+        LockDescriptor rowInRange = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), ROW);
+        LockDescriptor rowOutOfRange = AtlasRowLockDescriptor.of(TABLE_2.getQualifiedName(), ROW);
+
+        LockWatchRequest tableRequest = tableRequest();
+        lockWatcher.startWatching(tableRequest);
+
+        ImmutableSet<LockDescriptor> locks =
+                ImmutableSet.of(CELL_DESCRIPTOR, cellOutOfRange, rowInRange, rowOutOfRange);
+        lockWatcher.registerLock(
+                locks, TOKEN, createMetadataForLocks(ImmutableSet.of(CELL_DESCRIPTOR, cellOutOfRange)));
+
+        ImmutableSet<LockDescriptor> expectedFilteredLocks =
+                ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR, rowInRange);
+        List<LockWatchEvent> expectedEvents = ImmutableList.of(
+                createdEvent(tableRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(ImmutableSet.of(CELL_DESCRIPTOR))));
+        assertLoggedEvents(expectedEvents);
+    }
+
+    @Test
+    public void metadataIsRemovedIfMapEmptyAfterFiltering() {
+        LockDescriptor rowOutOfRange = AtlasRowLockDescriptor.of(TABLE_2.getQualifiedName(), ROW);
+
+        LockWatchRequest tableRequest = tableRequest();
+        lockWatcher.startWatching(tableRequest);
+
+        ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, rowOutOfRange);
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(ImmutableSet.of(rowOutOfRange)));
+
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(CELL_DESCRIPTOR);
+        List<LockWatchEvent> expectedEvents = ImmutableList.of(
+                createdEvent(tableRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
+                lockEvent(expectedFilteredLocks, Optional.empty()));
+        assertLoggedEvents(expectedEvents);
+    }
+
     private LockWatchEvent createdEvent(Set<LockWatchReference> references, Set<LockDescriptor> descriptors) {
         return LockWatchCreatedEvent.builder(references, descriptors).build(sequenceCounter++);
     }u}(j (15264463d051884bdaed57931b81becc7a3a36a3j& ftimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataTest.javaj( modifiedj  Kj! K'j* K3j+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 Xi  @@ -18,9 +18,9 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatException;
+import static org.assertj.core.api.Assertions.fail;
 
 import com.codahale.metrics.MetricRegistry;
-import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.util.concurrent.ListenableFuture;
@@ -38,32 +38,22 @@
 import com.palantir.lock.client.IdentifiedLockRequest;
 import com.palantir.lock.client.ImmutableIdentifiedLockRequest;
 import com.palantir.lock.watch.ChangeMetadata;
-import com.palantir.lock.watch.LockEvent;
 import com.palantir.lock.watch.LockRequestMetadata;
-import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
 import com.palantir.lock.watch.LockWatchReferences;
 import com.palantir.lock.watch.LockWatchStateUpdate;
-import com.palantir.lock.watch.LockWatchStateUpdate.Snapshot;
-import com.palantir.lock.watch.LockWatchStateUpdate.Success;
-import com.palantir.lock.watch.UnlockEvent;
 import com.palantir.timestamp.InMemoryTimestampService;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
 import java.util.UUID;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.ScheduledExecutorService;
-import java.util.stream.Collectors;
 import org.jmock.lib.concurrent.DeterministicScheduler;
 import org.junit.Before;
 import org.junit.Test;
 
 public class AsyncTimeLockServiceMetadataTest {
-    private static final LockWatchEventVisitor LOCK_WATCH_EVENT_VISITOR = new LockWatchEventVisitor();
-    private static final LockWatchStateUpdateVisitor LOCK_WATCH_STATE_UPDATE_VISITOR =
-            new LockWatchStateUpdateVisitor();
-
     private static final String WATCHED_TABLE_NAME = "watched-table";
     private static final LockDescriptor WATCHED_LOCK =
             AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, PtBytes.toBytes("lock1"));
@@ -146,50 +136,33 @@ public void cannotPassDownMetadataForUnknownLockDescriptors() {
     }
 
     private List<Optional<LockRequestMetadata>> getAllLockEventsMetadata() {
-        return getAllLockWatchEvents().stream()
-                .map(event -> event.accept(LOCK_WATCH_EVENT_VISITOR))
-                .flatMap(Optional::stream)
-                .map(LockEvent::metadata)
-                .collect(Collectors.toList());
+        return LockWatchIntegrationTestUtilities.extractMetadata(getAllLockWatchEvents());
     }
 
     private List<LockWatchEvent> getAllLockWatchEvents() {
         ListenableFuture<ConjureStartTransactionsResponse> responseFuture =
                 timeLockService.startTransactionsWithWatches(startTransactionsRequestWithInitialVersion);
-        return AtlasFutures.getUnchecked(responseFuture).getLockWatchUpdate().accept(LOCK_WATCH_STATE_UPDATE_VISITOR);
+        return AtlasFutures.getUnchecked(responseFuture)
+                .getLockWatchUpdate()
+                .accept(AssertSuccessVisitor.INSTANCE)
+                .events();
     }
 
     private static IdentifiedLockRequest standardRequestWithMetadata(Map<LockDescriptor, ChangeMetadata> metadata) {
         return IdentifiedLockRequest.of(metadata.keySet(), 1000, "testClient", LockRequestMetadata.of(metadata));
     }
 
-    private static final class LockWatchEventVisitor implements LockWatchEvent.Visitor<Optional<LockEvent>> {
-        @Override
-        public Optional<LockEvent> visit(LockEvent lockEvent) {
-            return Optional.of(lockEvent);
-        }
-
-        @Override
-        public Optional<LockEvent> visit(UnlockEvent unlockEvent) {
-            return Optional.empty();
-        }
-
-        @Override
-        public Optional<LockEvent> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
-            return Optional.empty();
-        }
-    }
+    private enum AssertSuccessVisitor implements LockWatchStateUpdate.Visitor<LockWatchStateUpdate.Success> {
+        INSTANCE;
 
-    private static final class LockWatchStateUpdateVisitor
-            implements LockWatchStateUpdate.Visitor<List<LockWatchEvent>> {
         @Override
-        public List<LockWatchEvent> visit(Success success) {
-            return success.events();
+        public LockWatchStateUpdate.Success visit(LockWatchStateUpdate.Success success) {
+            return success;
         }
 
         @Override
-        public List<LockWatchEvent> visit(Snapshot snapshot) {
-            return ImmutableList.of();
+        public LockWatchStateUpdate.Success visit(LockWatchStateUpdate.Snapshot snapshot) {
+            return fail("Unexpected snapshot");
         }
     }
 }u}(j (3dfb5b7f1909e36d9a30ffc83f18e7231000c611j& ctimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchEventIntegrationTest.javaj( modifiedj  K<j! K j* K<j+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 XM  @@ -40,9 +40,15 @@
 import com.palantir.atlasdb.transaction.impl.PreCommitConditions;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.lock.AtlasCellLockDescriptor;
+import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.v2.ImmutableLockRequest;
+import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.v2.LockResponse;
+import com.palantir.lock.watch.ChangeMetadata;
 import com.palantir.lock.watch.CommitUpdate;
 import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
 import com.palantir.lock.watch.LockWatchReferences;
@@ -54,6 +60,7 @@
 import com.palantir.timelock.config.PaxosInstallConfiguration;
 import java.nio.charset.StandardCharsets;
 import java.util.Collection;
+import java.util.List;
 import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
@@ -251,6 +258,34 @@ public void leaderElectionDuringTransactionCausesTransactionToFailRetriably() {
                 .doesNotThrowAnyException();
     }
 
+    @Test
+    public void absentMetadataIsVisibleToTransaction() {
+        LockRequest requestWithoutMetadata = createTestLockRequest(
+                ImmutableSet.of(AtlasRowLockDescriptor.of(TABLE_REF.getQualifiedName(), ROW)), Optional.empty());
+        assertThat(lockAndGetEventMetadataFromLockWatchLog(requestWithoutMetadata))
+                .isEmpty();
+    }
+
+    @Test
+    public void nonEmptyMetadataIsVisibleToTransactionForWatchedTable() {
+        LockDescriptor lock1 =
+                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_1.getRowName(), CELL_1.getColumnName());
+        LockDescriptor lock2 =
+                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_2.getRowName(), CELL_2.getColumnName());
+        LockDescriptor lock3 =
+                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_3.getRowName(), CELL_3.getColumnName());
+        LockDescriptor lock4 =
+                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_4.getRowName(), CELL_4.getColumnName());
+        LockRequestMetadata metadata = LockRequestMetadata.of(ImmutableMap.of(
+                lock1, ChangeMetadata.created(DATA_1),
+                lock2, ChangeMetadata.deleted(DATA_2),
+                lock3, ChangeMetadata.unchanged(),
+                lock4, ChangeMetadata.updated(DATA_3, DATA_4)));
+        LockRequest requestWithMetadata =
+                createTestLockRequest(ImmutableSet.of(lock1, lock2, lock3, lock4), Optional.of(metadata));
+        assertThat(lockAndGetEventMetadataFromLockWatchLog(requestWithMetadata)).contains(metadata);
+    }
+
     private Runnable performWriteTransactionThatBlocksAfterLockingCells() {
         CountDownLatch endOfTest = new CountDownLatch(1);
         CountDownLatch inCommitBlock = new CountDownLatch(1);
@@ -359,6 +394,31 @@ private Set<LockDescriptor> getDescriptors(TableReference tableRef, Cell... cell
                 .collect(Collectors.toSet());
     }
 
+    private Optional<LockRequestMetadata> lockAndGetEventMetadataFromLockWatchLog(LockRequest lockRequest) {
+        LockWatchVersion currentVersion = getCurrentVersion();
+        LockResponse response = txnManager.getTimelockService().lock(lockRequest);
+        // We need to clean up the lock, otherwise it will be held forever (the TimeLock cluster is static)!
+        txnManager.getTimelockService().unlock(ImmutableSet.of(response.getToken()));
+        OpenTransaction newTxn = startSingleTransaction();
+        List<LockWatchEvent> lockWatchEvents =
+                getUpdateForTransactions(Optional.of(currentVersion), newTxn).events();
+        newTxn.abort();
+        List<Optional<LockRequestMetadata>> metadataList =
+                LockWatchIntegrationTestUtilities.extractMetadata(lockWatchEvents);
+        assertThat(metadataList).hasSize(1);
+        return metadataList.get(0);
+    }
+
+    private LockRequest createTestLockRequest(
+            Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {
+        return ImmutableLockRequest.builder()
+                .lockDescriptors(lockDescriptors)
+                .clientDescription("test-client")
+                .acquireTimeoutMs(100)
+                .metadata(metadata)
+                .build();
+    }
+
     private Set<LockDescriptor> extractDescriptorsFromUpdate(CommitUpdate commitUpdate) {
         return filterDescriptors(commitUpdate.accept(new CommitUpdate.Visitor<>() {
             @Overrideu}(j (a6850ec52c43c8d5ddc73b6a2c24f75bf3d70e64j& gtimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchIntegrationTestUtilities.javaj( modifiedj  Kj! K j* Kj+ https://github.com/palantir/atlasdb/blob/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchIntegrationTestUtilities.javaj- https://github.com/palantir/atlasdb/raw/8c834eaf6846ba849e1c3e93ba28648b5a72271b/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchIntegrationTestUtilities.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchIntegrationTestUtilities.java?ref=8c834eaf6846ba849e1c3e93ba28648b5a72271bj1 XD	  @@ -31,6 +31,7 @@
 import com.palantir.atlasdb.transaction.api.PreCommitCondition;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
 import com.palantir.lock.watch.LockWatchReferences;
@@ -43,6 +44,7 @@
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.function.BiFunction;
 import java.util.function.Predicate;
+import java.util.stream.Collectors;
 import org.awaitility.Awaitility;
 
 public final class LockWatchIntegrationTestUtilities {
@@ -105,6 +107,14 @@ public static LockWatchManagerInternal extractInternalLockWatchManager(Transacti
         return (LockWatchManagerInternal) txnManager.getLockWatchManager();
     }
 
+    public static List<Optional<LockRequestMetadata>> extractMetadata(List<LockWatchEvent> lockWatchEvents) {
+        return lockWatchEvents.stream()
+                .map(event -> event.accept(LockEventVisitor.INSTANCE))
+                .flatMap(Optional::stream)
+                .map(LockEvent::metadata)
+                .collect(Collectors.toList());
+    }
+
     public static TransactionManager createTransactionManager(
             double validationProbability, TestableTimelockCluster timelockCluster, String namespace) {
         return TimeLockTestUtils.createTransactionManager(
@@ -190,6 +200,25 @@ public Boolean visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
         }
     }
 
+    private enum LockEventVisitor implements LockWatchEvent.Visitor<Optional<LockEvent>> {
+        INSTANCE;
+
+        @Override
+        public Optional<LockEvent> visit(LockEvent lockEvent) {
+            return Optional.of(lockEvent);
+        }
+
+        @Override
+        public Optional<LockEvent> visit(UnlockEvent unlockEvent) {
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<LockEvent> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
+            return Optional.empty();
+        }
+    }
+
     /**
      * {@link PreCommitCondition} is actually run several times throughout a transaction - namely, before any read
      * if this is configured. When run at these times, the start timestamp is passed in. However, when the conditionueu(f61c5378c2e6a67d2fa1f309e7fcb59b6ce0e542}(sha(f61c5378c2e6a67d2fa1f309e7fcb59b6ce0e542node_idEC_kwDOAjP5fdoAKGY2MWM1Mzc4YzJlNmE2N2QyZmExZjMwOWU3ZmNiNTliNmNlMGU1NDIcommit}(author}(nameChris Van de Veldeemailcvandevelde@palantir.comdate2023-04-04T05:38:35Zu	committer}(j Chris Van de Veldej cvandevelde@palantir.comj 2023-04-04T05:38:35ZumessageReview commentstree}(j (d34d528cf2c8556e2affa4ab47cee8a1d66647f6url`https://api.github.com/repos/palantir/atlasdb/git/trees/d34d528cf2c8556e2affa4ab47cee8a1d66647f6uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f61c5378c2e6a67d2fa1f309e7fcb59b6ce0e542
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEfsytHu2QbUsz5QamhCdbnbxuCwoFAmQrt+AACgkQhCdbnbxu
Cwq5AQf/b5U15cdkzspv5IWpV/qYJrHjAphfqiMjUtAQQcnBnZwInrORY4LFtUTO
Yin3ka9Q73eAMdQL5HAQXLtvDubvZ/Zgzvm9I8G0/3cY5uzJAfWtphaU7wBMkndV
WOea/iLcoUkGphE7XetD0yUPBNpagxtaYVHWndS6UJXhlMNpLlNQm5vTQDdKQvt9
hrgjvUNp1k5n5c0gv4a+L4s1btwqiyiaoEY4oXQlw3k9ufSx6cdU5C9aNx3NVYZT
ybrLqLC2NnyK3h5wvrU4/uL5EixFUtl0esSdVQVP0G9KDIycZrstdyOcTZp96wlV
5odXZPL4JW6iLg1/QHpDz4q//DTEhg==
=GpUl
-----END PGP SIGNATURE-----payloadtree d34d528cf2c8556e2affa4ab47cee8a1d66647f6
parent 29d87fb6eb0a6002e4d35354a7a95b3b4c227353
author Chris Van de Velde <cvandevelde@palantir.com> 1680586715 +1000
committer Chris Van de Velde <cvandevelde@palantir.com> 1680586715 +1000

Review comments
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/f61c5378c2e6a67d2fa1f309e7fcb59b6ce0e542html_urlShttps://github.com/palantir/atlasdb/commit/f61c5378c2e6a67d2fa1f309e7fcb59b6ce0e542comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f61c5378c2e6a67d2fa1f309e7fcb59b6ce0e542/commentsj }(loginCVdV-auidJDN j MDQ6VXNlcjY5MjI2MDUy
avatar_url4https://avatars.githubusercontent.com/u/69226052?v=4gravatar_idh5j $https://api.github.com/users/CVdV-auj https://github.com/CVdV-au
followers_url.https://api.github.com/users/CVdV-au/followers
following_url;https://api.github.com/users/CVdV-au/following{/other_user}	gists_url4https://api.github.com/users/CVdV-au/gists{/gist_id}starred_url;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/CVdV-au/subscriptionsorganizations_url)https://api.github.com/users/CVdV-au/orgs	repos_url*https://api.github.com/users/CVdV-au/repos
events_url5https://api.github.com/users/CVdV-au/events{/privacy}received_events_url4https://api.github.com/users/CVdV-au/received_eventstypeUser
site_adminuj }(j CVdV-auj JDN j MDQ6VXNlcjY5MjI2MDUyj 4https://avatars.githubusercontent.com/u/69226052?v=4j h5j $https://api.github.com/users/CVdV-auj https://github.com/CVdV-auj .https://api.github.com/users/CVdV-au/followersj ;https://api.github.com/users/CVdV-au/following{/other_user}j 4https://api.github.com/users/CVdV-au/gists{/gist_id}j ;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}j 2https://api.github.com/users/CVdV-au/subscriptionsj )https://api.github.com/users/CVdV-au/orgsj *https://api.github.com/users/CVdV-au/reposj 5https://api.github.com/users/CVdV-au/events{/privacy}j 4https://api.github.com/users/CVdV-au/received_eventsj Userj uparents]}(j (29d87fb6eb0a6002e4d35354a7a95b3b4c227353j ^https://api.github.com/repos/palantir/atlasdb/commits/29d87fb6eb0a6002e4d35354a7a95b3b4c227353j Shttps://github.com/palantir/atlasdb/commit/29d87fb6eb0a6002e4d35354a7a95b3b4c227353uastats}(totalKF	additionsK	deletionsK/ufiles]}(j (91e6e6e7360e3514322dfc6b2ddd045573d8268efilenamecatlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTableTest.javastatusmodifiedj Kj K/changesKFblob_urlhttps://github.com/palantir/atlasdb/blob/f61c5378c2e6a67d2fa1f309e7fcb59b6ce0e542/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f61c5378c2e6a67d2fa1f309e7fcb59b6ce0e542/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.java?ref=f61c5378c2e6a67d2fa1f309e7fcb59b6ce0e542patchX  @@ -61,7 +61,6 @@
 import java.util.Locale;
 import java.util.Set;
 import java.util.concurrent.ExecutorService;
-import java.util.concurrent.ThreadLocalRandom;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
@@ -357,78 +356,55 @@ public void createDoesNotThrowWhenOverflowColumnAlreadyExistsAndAlterIsRan() thr
         verifyTableAltered();
     }
 
+
+
     @Test
-    public void testIndexStrategy_conservative_sweep() {
-        for (int col = 0; col < 10; col++) {
+    public void conservativeSweptTablesHaveIndexCompression2() {
+        for (int numColumns = 0; numColumns <= 2; numColumns++) {
             TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.CONSERVATIVE);
-            for (int colName = 0; colName < col; colName++) {
-                boolean hasOverflow = ThreadLocalRandom.current().nextBoolean();
+            for (int colName = 0; colName < numColumns; colName++) {
                 metadataBuilder.singleNamedColumn(
-                        "foo" + colName, "foobar" + colName, hasOverflow ? ValueType.STRING : ValueType.FIXED_LONG);
+                        "c" + colName, "col" + colName, ValueType.STRING);
             }
             TableMetadata metadata = metadataBuilder.build();
             assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(2);
         }
     }
 
     @Test
-    public void testIndexStrategy_dynamic_columns() {
-        for (int col = 1; col <= 10; col++) {
-            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
-            List<NameComponentDescription> dynamicColumns = new ArrayList<>();
-            for (int colDesc = 1; colDesc <= col; colDesc++) {
-                boolean hasOverflow = ThreadLocalRandom.current().nextBoolean();
-                ValueType valueType =
-                        colDesc == col ? (hasOverflow ? ValueType.STRING : ValueType.FIXED_LONG) : ValueType.SHA256HASH;
-                dynamicColumns.add(NameComponentDescription.of("foo" + colDesc, valueType));
-            }
-            TableMetadata metadata = metadataBuilder
-                    .dynamicColumns(dynamicColumns, ValueType.STRING)
+    public void thoroughSweptTablesWithDynamicColsHaveIndexCompression1() {
+        TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+        TableMetadata metadata = metadataBuilder
+                    .dynamicColumns(List.of(NameComponentDescription.of("c" , ValueType.STRING)), ValueType.STRING)
                     .build();
-            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(1);
-        }
+        assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(1);
     }
 
     @Test
-    public void testIndexStrategy_named_columns() {
-        for (int col = 2; col <= 10; col++) {
+    public void thoroughSweptTablesWithMultipleNamedColsHaveIndexCompression1() {
+        for (int numColumns = 2; numColumns <= 3; numColumns++) {
             TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
             List<NamedColumnDescription> columns = new ArrayList<>();
-            for (int colDesc = 1; colDesc <= col; colDesc++) {
-                boolean hasOverflow = ThreadLocalRandom.current().nextBoolean();
-                ColumnValueDescription type = ColumnValueDescription.forType(
-                        colDesc == col
-                                ? (hasOverflow ? ValueType.STRING : ValueType.FIXED_LONG)
-                                : ValueType.SHA256HASH);
-                columns.add(new NamedColumnDescription("foo" + colDesc, "foo_bar_baz" + colDesc, type));
+            for (int colDesc = 1; colDesc <= numColumns; colDesc++) {
+                columns.add(new NamedColumnDescription("c" + colDesc, "col" + colDesc,
+                        ColumnValueDescription.forType(ValueType.STRING)));
             }
             TableMetadata metadata = metadataBuilder
                     .columns(new ColumnMetadataDescription(columns))
                     .build();
             assertThat(OracleDdlTable.getOptimalIndexCompression(metadata))
-                    .as("%d named columns", col)
                     .isEqualTo(1);
         }
     }
 
     @Test
-    public void testIndexStrategy_no_columns() {
-        for (int col = 0; col <= 1; col++) {
-            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
-            List<NamedColumnDescription> columns = new ArrayList<>();
-            for (int colDesc = 1; colDesc <= col; colDesc++) {
-                boolean hasOverflow = ThreadLocalRandom.current().nextBoolean();
-                ColumnValueDescription type = ColumnValueDescription.forType(
-                        colDesc == col
-                                ? (hasOverflow ? ValueType.STRING : ValueType.FIXED_LONG)
-                                : ValueType.SHA256HASH);
-                columns.add(new NamedColumnDescription("foo" + colDesc, "foo_bar_baz" + colDesc, type));
-            }
-            TableMetadata metadata = metadataBuilder
-                    .columns(new ColumnMetadataDescription(columns))
-                    .build();
-            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(0);
-        }
+    public void thoroughSweptTablesWithOneNamedColHaveIndexCompressionDisabled() {
+        TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+        TableMetadata metadata = metadataBuilder
+                .columns(new ColumnMetadataDescription(List.of(
+                        new NamedColumnDescription("c", "col", ColumnValueDescription.forType(ValueType.STRING)))))
+                .build();
+        assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(0);
     }
 
     private void createTable() throws TableMappingNotFoundException {uau(4849a8bb50412be15990d2bda83d05850b64c3aa}(sha(4849a8bb50412be15990d2bda83d05850b64c3aanode_idEC_kwDOAjP5fdoAKDQ4NDlhOGJiNTA0MTJiZTE1OTkwZDJiZGE4M2QwNTg1MGI2NGMzYWEcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-16T10:40:02Zu	committer}(j$ Lucas Meirelesj& meireles31@msn.comj( 2023-06-16T10:40:02Zumessage!fix flag accidentally set to truetree}(j (2a48ea1b6b1a620639d248eba80b1cefda0ddb20url`https://api.github.com/repos/palantir/atlasdb/git/trees/2a48ea1b6b1a620639d248eba80b1cefda0ddb20uj4 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4849a8bb50412be15990d2bda83d05850b64c3aa
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSMPAIACgkQJd22kJ7J
Giynzwf/cayIH2x04vGKujnIgogUVMSIABL2HPC4rh1B3PYVY+ukbq6utrixDkNa
LyeIhiwmprHEgOXuPQtaXsSl29gIHz4AB6+vOnNWHJv8P60LWETuiOmTnDhO681p
JCpVo0Q+JlKVPaBROmIR1jXEq0Q47680tJOFdAlh24aThQBalSHwDkAXm9w50giT
ssbvcRjnXHmRSebJxmPTFyf9CWh/I8PJhMvoSBKD22ZrH1QWqwE1wCC/NK3L7jXa
BsLa1euRzB/XHTf/68kMHyuU21gskJTLOnaLnGs+A4e/SxRKZbzCDVit9aA6WT7R
Qz+VvgHkTlIPcCtWVFJ9CVENggiA/w==
=LWKt
-----END PGP SIGNATURE-----payloadtree 2a48ea1b6b1a620639d248eba80b1cefda0ddb20
parent 81f98b7ebaf98537caf3f29c48d5e90b1a71a145
author Lucas Meireles <meireles31@msn.com> 1686912002 +0100
committer Lucas Meireles <meireles31@msn.com> 1686912002 +0100

fix flag accidentally set to true
uuj4 ^https://api.github.com/repos/palantir/atlasdb/commits/4849a8bb50412be15990d2bda83d05850b64c3aahtml_urlShttps://github.com/palantir/atlasdb/commit/4849a8bb50412be15990d2bda83d05850b64c3aacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4849a8bb50412be15990d2bda83d05850b64c3aa/commentsj" }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j4 %https://api.github.com/users/LucasIMEjB https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj* }(jG LucasIMEjI Jg j MDQ6VXNlcjY3ODczMTE=jK 3https://avatars.githubusercontent.com/u/6787311?v=4jM h5j4 %https://api.github.com/users/LucasIMEjB https://github.com/LucasIMEjP /https://api.github.com/users/LucasIME/followersjR <https://api.github.com/users/LucasIME/following{/other_user}jT 5https://api.github.com/users/LucasIME/gists{/gist_id}jV <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jX 3https://api.github.com/users/LucasIME/subscriptionsjZ *https://api.github.com/users/LucasIME/orgsj\ +https://api.github.com/users/LucasIME/reposj^ 6https://api.github.com/users/LucasIME/events{/privacy}j` 5https://api.github.com/users/LucasIME/received_eventsjb Userjd uparents]}(j (81f98b7ebaf98537caf3f29c48d5e90b1a71a145j4 ^https://api.github.com/repos/palantir/atlasdb/commits/81f98b7ebaf98537caf3f29c48d5e90b1a71a145jB Shttps://github.com/palantir/atlasdb/commit/81f98b7ebaf98537caf3f29c48d5e90b1a71a145uastats}(totalK	additionsK	deletionsKufiles]}(j (8e427c06f9a2664d47d4bca3897293a00c87fe22filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedj~ Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/4849a8bb50412be15990d2bda83d05850b64c3aa/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4849a8bb50412be15990d2bda83d05850b64c3aa/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=4849a8bb50412be15990d2bda83d05850b64c3aapatchX\  @@ -1586,7 +1586,7 @@ public void doNotValidateLocksOnCommitIfValidationFlagIsFalseAndOnlyReadNonEmpty
         long transactionTs = timelockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
         Transaction transaction =
-                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
 
         timelockService.unlock(ImmutableSet.of(res.getLock()));
 uau(d0594f667889eba2f6279639c6f00fccfede3ef9}(sha(d0594f667889eba2f6279639c6f00fccfede3ef9node_idEC_kwDOAjP5fdoAKGQwNTk0ZjY2Nzg4OWViYTJmNjI3OTYzOWM2ZjAwZmNjZmVkZTNlZjkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T23:28:47Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-15T23:28:47ZumessageJMerge branch 'tlmetexxxxx' of github.com:palantir/atlasdb into tlmetexxxxxtree}(j (7798105d8a030b29d8973acfbb90d62ffad4930furl`https://api.github.com/repos/palantir/atlasdb/git/trees/7798105d8a030b29d8973acfbb90d62ffad4930fuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d0594f667889eba2f6279639c6f00fccfede3ef9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiwDAACgkQPlMHVIT1
yhrxxQgApBgww/Ftcn/KbUFCskgDveecvLtY366wdaECz0VTVxyhRocN4pqaiBXk
g4zbnd/hSH5+EAAn1hB/ApBan+3q56xtkH9djcOypcvxu+LBEWNGmHOrIMiCosez
6mPSPW0ckPal3Pz10t0lcjfOjMt6MO6+z7RXLaEMqQXMzYwUU04fq07nf7z/X3iC
A5CYKY9xABfV7C8cMauf4lNsgHcJFtjKhx4FtavkE8GphIsn39BjaSsg/BcYo3eY
T327nUTvuajz8XowhL8lrEGlxyfW5d4BIaDU8oewhvluJSu11Ec0oTKveoXEl0r1
W/aPf9JsgfJxLq8UzzQkRxmwsB2Alw==
=xJIK
-----END PGP SIGNATURE-----payloadXY  tree 7798105d8a030b29d8973acfbb90d62ffad4930f
parent 9f77e77b3a9acee1ca612588945b539a5cb2aa21
parent 278aec0d4bc4d4719d642b8e75a63ac0cce6523c
author Ahmed Alouane <aalouane@palantir.com> 1684193327 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684193327 +0100

Merge branch 'tlmetexxxxx' of github.com:palantir/atlasdb into tlmetexxxxx
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/d0594f667889eba2f6279639c6f00fccfede3ef9html_urlShttps://github.com/palantir/atlasdb/commit/d0594f667889eba2f6279639c6f00fccfede3ef9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d0594f667889eba2f6279639c6f00fccfede3ef9/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j ergo14j Jj MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents](}(j (9f77e77b3a9acee1ca612588945b539a5cb2aa21j ^https://api.github.com/repos/palantir/atlasdb/commits/9f77e77b3a9acee1ca612588945b539a5cb2aa21j Shttps://github.com/palantir/atlasdb/commit/9f77e77b3a9acee1ca612588945b539a5cb2aa21u}(j (278aec0d4bc4d4719d642b8e75a63ac0cce6523cj ^https://api.github.com/repos/palantir/atlasdb/commits/278aec0d4bc4d4719d642b8e75a63ac0cce6523cj Shttps://github.com/palantir/atlasdb/commit/278aec0d4bc4d4719d642b8e75a63ac0cce6523cuestats}(totalK 	additionsK 	deletionsK ufiles]u(78d595ff4fc963ae112f48198af44d9121e0ba7a}(sha(78d595ff4fc963ae112f48198af44d9121e0ba7anode_idEC_kwDOAjP5fdoAKDc4ZDU5NWZmNGZjOTYzYWUxMTJmNDgxOThhZjQ0ZDkxMjFlMGJhN2Ecommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-08-15T19:31:15Zu	committer}(j GitHubj	 noreply@github.comj 2023-08-15T19:31:15Zumessage=Excavator:  Update gradle-jdks infrastructure plugins (#6689)tree}(j (f41342a40dffed0ec73386a522cfc012c7781851url`https://api.github.com/repos/palantir/atlasdb/git/trees/f41342a40dffed0ec73386a522cfc012c7781851uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/78d595ff4fc963ae112f48198af44d9121e0ba7a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk29KDCRBK7hj4Ov3rIwAAPgQIADRqeXjS8iFo9DUWzDqXke2w
lD08wycm4OyiGAyQpwpwRfnMHyClqM4NVMIw0bAF5yW+FWTw17mE6xgdGOZEj0tO
PumEP0clsVxYsyLRytad3z3wJvqyn/Lm52dJ5n0EgHaA2iQxs3fLtMjbHJixfTQf
UuVr4AQiNWW9oy7P1EWklqfyyRPxLucyimQN8DaRrYJSGbakDxtF2WwP/RUgE8Kc
EWREvMOnm/jm7C3hQxfxUVBPpd60AKYo/r2X6yVTaC0ta4hS1LulrY5A5NMoBBTj
ZNhIzcCClNol4fH7Y107q50VfFT+HvwYa92+5dkAokcOVtDeTpv5mCv/rozuPWg=
=h6In
-----END PGP SIGNATURE-----
payloadX2  tree f41342a40dffed0ec73386a522cfc012c7781851
parent 4460b0be63853d1a2490cef11f6bcb58660f5625
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1692127875 -0700
committer GitHub <noreply@github.com> 1692127875 +0000

Excavator:  Update gradle-jdks infrastructure plugins (#6689)

 uuj ^https://api.github.com/repos/palantir/atlasdb/commits/78d595ff4fc963ae112f48198af44d9121e0ba7ahtml_urlShttps://github.com/palantir/atlasdb/commit/78d595ff4fc963ae112f48198af44d9121e0ba7acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/78d595ff4fc963ae112f48198af44d9121e0ba7a/commentsj }(loginsvc-excavator-botidJj MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j .https://api.github.com/users/svc-excavator-botj% $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj
 }(j* web-flowj, J/j MDQ6VXNlcjE5ODY0NDQ3j. 4https://avatars.githubusercontent.com/u/19864447?v=4j0 h5j %https://api.github.com/users/web-flowj% https://github.com/web-flowj3 /https://api.github.com/users/web-flow/followersj5 <https://api.github.com/users/web-flow/following{/other_user}j7 5https://api.github.com/users/web-flow/gists{/gist_id}j9 <https://api.github.com/users/web-flow/starred{/owner}{/repo}j; 3https://api.github.com/users/web-flow/subscriptionsj= *https://api.github.com/users/web-flow/orgsj? +https://api.github.com/users/web-flow/reposjA 6https://api.github.com/users/web-flow/events{/privacy}jC 5https://api.github.com/users/web-flow/received_eventsjE UserjG uparents]}(j (4460b0be63853d1a2490cef11f6bcb58660f5625j ^https://api.github.com/repos/palantir/atlasdb/commits/4460b0be63853d1a2490cef11f6bcb58660f5625j% Shttps://github.com/palantir/atlasdb/commit/4460b0be63853d1a2490cef11f6bcb58660f5625uastats}(totalK	additionsK	deletionsKufiles]}(j (1f599280d24695b09649cdad7d6313e376f116fbfilenamebuild.gradlestatusmodifiedja Kjb KchangesKblob_url^https://github.com/palantir/atlasdb/blob/78d595ff4fc963ae112f48198af44d9121e0ba7a/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/78d595ff4fc963ae112f48198af44d9121e0ba7a/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=78d595ff4fc963ae112f48198af44d9121e0ba7apatchX  @@ -15,8 +15,8 @@ buildscript {
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
-        classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
-        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
+        classpath 'com.palantir.gradle.jdks:gradle-jdks:0.33.0'
+        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.10.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.35.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.22.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'uau(3a08478ca372e6dc12d7b18025ca7d1b353c46c9}(sha(3a08478ca372e6dc12d7b18025ca7d1b353c46c9node_idEC_kwDOAjP5fdoAKDNhMDg0NzhjYTM3MmU2ZGMxMmQ3YjE4MDI1Y2E3ZDFiMzUzYzQ2Yzkcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-13T16:59:55Zu	committer}(j~ 
Sam Kramerj skramer@palantir.comj 2023-03-13T16:59:55Zumessage+add comment about transaction store factorytree}(jv (2bba8ef418919104e62b72ebae5bb8e7dd64404aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/2bba8ef418919104e62b72ebae5bb8e7dd64404auj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3a08478ca372e6dc12d7b18025ca7d1b353c46c9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQPVosACgkQmPPOpKR4
XS3lPQgAkUGiFEOLyz67Ayaq617do8rCvT/tdN/zLFRfy29IMEPlS9h1HfCuN5tr
IDqUGuAPHEx7IeiMLrlR5tRNgOH1vjGiBVcwTkF/HeTQZWkcgQ9iRoIRGRiDh0Hy
yl89LnMoUNAFIoRntvoIIsDUJ11pyUVEcIKjX1mnvYu6GWbO/GTXqqCNLu9M+WwH
+YvNO6Jfaizf2gXoty3z4i9EdCXdL6GQ07PG+GPy3OPzu350Yv9g3nqOR6sdF4I2
bnRE90SqTkEosZ9w4cqQtfNDJ2jgfkDRY/DcX5uxqS6y3H+xNwSZf/0JQtX+mgzc
z/E8jW+63Me0e30ZZSl4M/wjNNgU6Q==
=id/O
-----END PGP SIGNATURE-----payloadX  tree 2bba8ef418919104e62b72ebae5bb8e7dd64404a
parent 84ad8300885f547ae032e9cf4f25d66e129ecc97
author Sam Kramer <skramer@palantir.com> 1678726795 +0000
committer Sam Kramer <skramer@palantir.com> 1678726795 +0000

add comment about transaction store factory
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/3a08478ca372e6dc12d7b18025ca7d1b353c46c9html_urlShttps://github.com/palantir/atlasdb/commit/3a08478ca372e6dc12d7b18025ca7d1b353c46c9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3a08478ca372e6dc12d7b18025ca7d1b353c46c9/commentsj| }(login
Sam-KrameridJ^2_ jx MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ jx MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jv (84ad8300885f547ae032e9cf4f25d66e129ecc97j ^https://api.github.com/repos/palantir/atlasdb/commits/84ad8300885f547ae032e9cf4f25d66e129ecc97j Shttps://github.com/palantir/atlasdb/commit/84ad8300885f547ae032e9cf4f25d66e129ecc97uastats}(totalK	additionsK	deletionsK ufiles]}(jv (388c429b93e386dccfaa31596a889119c7973aaffilenamejatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStoreFactory.javastatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/3a08478ca372e6dc12d7b18025ca7d1b353c46c9/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/3a08478ca372e6dc12d7b18025ca7d1b353c46c9/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.java?ref=3a08478ca372e6dc12d7b18025ca7d1b353c46c9patchX8  @@ -19,6 +19,9 @@
 import java.util.Map;
 import java.util.Set;
 
+/**
+ * Creates transaction stores of a certain type which are bounded to the provided tables/indexes.
+ */
 public interface TransactionStoreFactory {
     TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
 }uau(584a16c7f547c24a0a95081ecaf7d1a829e7633a}(sha(584a16c7f547c24a0a95081ecaf7d1a829e7633anode_idEC_kwDOAjP5fdoAKDU4NGExNmM3ZjU0N2MyNGEwYTk1MDgxZWNhZjdkMWE4MjllNzYzM2Ecommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-28T10:59:56Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-04-28T10:59:56Zumessagereadd --scantree}(j (0e8c9bdd9b99c3334fb2bc75f8f66c1fc9239287url`https://api.github.com/repos/palantir/atlasdb/git/trees/0e8c9bdd9b99c3334fb2bc75f8f66c1fc9239287uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/584a16c7f547c24a0a95081ecaf7d1a829e7633a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRLpywACgkQmPPOpKR4
XS2WbQf+LeO2Prkmp3W+hJTQHAvbeNR4i9Tw8bPDyYamoLLuYmp5KWTysTBt4PUc
ybeKhdO0xAcSXYTOlkFRKM5iB4RUGxGfzWJS3gmz7MhKMkaaI3PIEfWfnfKONqWw
jWwctOc9x5/aCATI+QCgs3kzAMLS6cwuq9s0T7toIRqU0DIpCktoCRzTa/ani5OS
EJH/ssjFRxBHkde1gBlHac1EoES+WkI2ArQR3wPz/rI20WIfe53pxrT6WNnVNIP8
E6V1IBfPBr1V5hhSfB8u8t3elKLvMyO06+E4XS/Wi2wyoI3h83ds4QrFswvPb+Qy
98RO77kr5ejo3E+GQu1u7k4+yVvdtg==
=BW49
-----END PGP SIGNATURE-----payloadtree 0e8c9bdd9b99c3334fb2bc75f8f66c1fc9239287
parent 7466c4187727314b45a35469b31da6e79b69c4c0
author Sam Kramer <skramer@palantir.com> 1682679596 +0100
committer Sam Kramer <skramer@palantir.com> 1682679596 +0100

readd --scan
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/584a16c7f547c24a0a95081ecaf7d1a829e7633ahtml_urlShttps://github.com/palantir/atlasdb/commit/584a16c7f547c24a0a95081ecaf7d1a829e7633acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/584a16c7f547c24a0a95081ecaf7d1a829e7633a/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj! 1https://api.github.com/users/Sam-Kramer/followersj# >https://api.github.com/users/Sam-Kramer/following{/other_user}j% 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j' >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j) 5https://api.github.com/users/Sam-Kramer/subscriptionsj+ ,https://api.github.com/users/Sam-Kramer/orgsj- -https://api.github.com/users/Sam-Kramer/reposj/ 8https://api.github.com/users/Sam-Kramer/events{/privacy}j1 7https://api.github.com/users/Sam-Kramer/received_eventsj3 Userj5 uparents]}(j (7466c4187727314b45a35469b31da6e79b69c4c0j ^https://api.github.com/repos/palantir/atlasdb/commits/7466c4187727314b45a35469b31da6e79b69c4c0j Shttps://github.com/palantir/atlasdb/commit/7466c4187727314b45a35469b31da6e79b69c4c0uastats}(totalK	additionsK	deletionsKufiles]}(j (eaeb2c0f0e5d188b45c25cd7a8276be5f686ca0dfilename*scripts/circle-ci/publish-to-antithesis.shstatusmodifiedjO KjP KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/584a16c7f547c24a0a95081ecaf7d1a829e7633a/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shraw_urlhttps://github.com/palantir/atlasdb/raw/584a16c7f547c24a0a95081ecaf7d1a829e7633a/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=584a16c7f547c24a0a95081ecaf7d1a829e7633apatch@@ -12,7 +12,7 @@ fi
 
 printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://${ANTITHESIS_REPO_URL} --password-stdin
 
-./gradlew dockerTag
+./gradlew --scan dockerTag
 
 VERSION=$(./gradlew -q printVersion)
 uau(390ce73ac5a734937f0405b9283e7e3c1d5d0d32}(sha(390ce73ac5a734937f0405b9283e7e3c1d5d0d32node_idEC_kwDOAjP5fdoAKDM5MGNlNzNhYzVhNzM0OTM3ZjA0MDViOTI4M2U3ZTNjMWQ1ZDBkMzIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-24T21:04:54Zu	committer}(jl 
Sam Kramerjn skramer@palantir.comjp 2023-05-24T21:11:51ZumessageActually wire up the workflowtree}(jd (6ebdd4708f8020f7f49fc029d4db74c94255c0e4url`https://api.github.com/repos/palantir/atlasdb/git/trees/6ebdd4708f8020f7f49fc029d4db74c94255c0e4uj| bhttps://api.github.com/repos/palantir/atlasdb/git/commits/390ce73ac5a734937f0405b9283e7e3c1d5d0d32
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRufZkACgkQmPPOpKR4
XS2QzAgAvinnHuBIQiFXNIUv5mDYiB18Y6Uscm01ynHCPrctRAeFhjVBBcHlf1gP
zHJX0dy1jsTxg/gsN0Var7cDZNGPv7i8IJ5kS1Ws9nE0lNCoTXXz/Mh3hqe87ibz
lKdc5FwLtBrsDguQT6n7QqpH6mnz64SnVGXzIOoCt+SINsVwfAEcA9BodF6vA0cD
OeQNVMAqK1R2w9XcEeUiuWBNt3Bb+PRRUcC9nmP7JMeRkwYW0fiWEltB2PiF7cd7
9QdESuJeyp8fI2mUt1ixMsnDJ8ZN8yvkGzPWDTU6F7mOZ3arAK7ZtP4mt77mYcXZ
s3JlENivX/ikaDh3TIZjOqkuaLT9kA==
=eg4l
-----END PGP SIGNATURE-----payloadtree 6ebdd4708f8020f7f49fc029d4db74c94255c0e4
parent 06a966b6c76e8d7ef54e3831b980a18bfba8565b
author Sam Kramer <skramer@palantir.com> 1684962294 +0100
committer Sam Kramer <skramer@palantir.com> 1684962711 +0100

Actually wire up the workflow
uuj| ^https://api.github.com/repos/palantir/atlasdb/commits/390ce73ac5a734937f0405b9283e7e3c1d5d0d32html_urlShttps://github.com/palantir/atlasdb/commit/390ce73ac5a734937f0405b9283e7e3c1d5d0d32comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/390ce73ac5a734937f0405b9283e7e3c1d5d0d32/commentsjj }(login
Sam-KrameridJ^2_ jf MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j| 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujr }(j 
Sam-Kramerj J^2_ jf MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j| 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jd (06a966b6c76e8d7ef54e3831b980a18bfba8565bj| ^https://api.github.com/repos/palantir/atlasdb/commits/06a966b6c76e8d7ef54e3831b980a18bfba8565bj Shttps://github.com/palantir/atlasdb/commit/06a966b6c76e8d7ef54e3831b980a18bfba8565buastats}(totalK6	additionsK3	deletionsKufiles](}(jd (9371f77bc60dfc87a42d41c2dcb54ab4e3762d92filenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/390ce73ac5a734937f0405b9283e7e3c1d5d0d32/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/390ce73ac5a734937f0405b9283e7e3c1d5d0d32/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=390ce73ac5a734937f0405b9283e7e3c1d5d0d32patchX
  @@ -44,6 +44,8 @@
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
 import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflows;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;
@@ -136,6 +138,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().transientRowsConfig();
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
+        BankBalanceWorkflowConfiguration bankBalanceConfig =
+                configuration.install().bankBalanceConfig();
 
         waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
 
@@ -148,7 +152,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                         createTransientRowsWorkflowValidator(
                                 transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
                         createSingleBusyCellWorkflowValidator(
-                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()));
+                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
+                        createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -265,6 +270,28 @@ private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator
                 .build();
     }
 
+    private WorkflowAndInvariants<Workflow> createBankBalanceWorkflow(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            BankBalanceWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = lifecycle
+                .executorService(RingWorkflows.class.getSimpleName())
+                .maxThreads(workflowConfig.maxThreadCount())
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(BankBalanceWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)))
+                .build();
+    }
+
     @VisibleForTesting
     CountDownLatch workflowsRanLatch() {
         return workflowsRanLatch;u     }(jd (817fa821a14df29701fa0b77eaf129480dc04a9dj atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/390ce73ac5a734937f0405b9283e7e3c1d5d0d32/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://github.com/palantir/atlasdb/raw/390ce73ac5a734937f0405b9283e7e3c1d5d0d32/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=390ce73ac5a734937f0405b9283e7e3c1d5d0d32j X  @@ -22,6 +22,7 @@
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
 
@@ -39,5 +40,7 @@ public interface WorkloadServerInstallConfiguration {
 
     SingleBusyCellWorkflowConfiguration singleBusyCellConfig();
 
+    BankBalanceWorkflowConfiguration bankBalanceConfig();
+
     boolean exitAfterRunning();
 }u}(jd (d0168ae1d1f176c2f449f6f2cf7e97e0aa7d3669j Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/390ce73ac5a734937f0405b9283e7e3c1d5d0d32/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/390ce73ac5a734937f0405b9283e7e3c1d5d0d32/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=390ce73ac5a734937f0405b9283e7e3c1d5d0d32j XB  @@ -29,4 +29,10 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  bankBalanceConfig:
+    tableConfiguration:
+      tableName: bank-balance-test
+      isolationLevel: SNAPSHOT
+    iterationCount: 100
+    type: bank-balance
   exitAfterRunning: false
\ No newline at end of fileu}(jd (aa10322acf9d5d16fcb25eeed45ddb7770a58c58j Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/390ce73ac5a734937f0405b9283e7e3c1d5d0d32/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://github.com/palantir/atlasdb/raw/390ce73ac5a734937f0405b9283e7e3c1d5d0d32/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=390ce73ac5a734937f0405b9283e7e3c1d5d0d32j X%  @@ -66,4 +66,10 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  bankBalanceConfig:
+    tableConfiguration:
+      tableName: bank_balance_test
+      isolationLevel: SNAPSHOT
+    iterationCount: 100
+    type: bank-balance
   exitAfterRunning: trueu}(jd (9eb9e071727fd9054ecb9ab1371c87a883806585j Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/390ce73ac5a734937f0405b9283e7e3c1d5d0d32/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/390ce73ac5a734937f0405b9283e7e3c1d5d0d32/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=390ce73ac5a734937f0405b9283e7e3c1d5d0d32j XA  @@ -30,4 +30,10 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  bankBalanceConfig:
+    tableConfiguration:
+      tableName: bank-balance-test
+      isolationLevel: SNAPSHOT
+    iterationCount: 100
+    type: bank-balance
   exitAfterRunning: true
\ No newline at end of fileu}(jd (dd8ae4bd5d9bdf4ebb6f459b4fc1771835066b3ej watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowConfiguration.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/390ce73ac5a734937f0405b9283e7e3c1d5d0d32/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/390ce73ac5a734937f0405b9283e7e3c1d5d0d32/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.java?ref=390ce73ac5a734937f0405b9283e7e3c1d5d0d32j X  @@ -29,13 +29,13 @@
 @JsonDeserialize(as = ImmutableBankBalanceWorkflowConfiguration.class)
 @JsonTypeName(BankBalanceWorkflowConfiguration.TYPE)
 public interface BankBalanceWorkflowConfiguration extends WorkflowConfiguration {
-    String TYPE = "singleRowTwoCells";
+    String TYPE = "bank-balance";
 
     TableConfiguration tableConfiguration();
 
     @Value.Default
     default Integer numberOfAccounts() {
-        return 5;
+        return 10;
     }
 
     @Value.Defaultueu(d2009d054c126df06cf73f4c214f0967cb760f10}(sha(d2009d054c126df06cf73f4c214f0967cb760f10node_idEC_kwDOAjP5fdoAKGQyMDA5ZDA1NGMxMjZkZjA2Y2Y3M2Y0YzIxNGYwOTY3Y2I3NjBmMTAcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-14T13:31:09Zu	committer}(j 	Tom Papkej
 tpapke@palantir.comj 2023-06-14T13:31:09ZumessageRename isScheduled to isRunningtree}(j (065bea88d6f1b6913d3e5ae2bd01f992ca019b1durl`https://api.github.com/repos/palantir/atlasdb/git/trees/065bea88d6f1b6913d3e5ae2bd01f992ca019b1duj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d2009d054c126df06cf73f4c214f0967cb760f10
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSJwR0ACgkQmF9s0kaF
Iw32KQgArgX6w368rq7OdPmFlauWoIYSlfUdR/JCTB8EzljGyWagiBKuSMb6jwn5
mz/WWuq+lyjB3nXlMNQyyLrZ0BLeOq388eVjPDb4UIkBlxAveC4IEweoWbFopgxD
/Tc5nHl0G2Ceo11ud3SCpADt116cVduePR5hq1LlhSL74zG+VJJbP+BbUKl5yga5
yMFYAYhNwwiSr9b5v/1BL74L/XR5T035h1NMcAoUqL/rKFiYNV1GKd2uuCmPkLgP
559rWwF5c3zLEvg0BBJvcrzXlU93I9NynUMkQtGmiaqNQ9NDZXOR/OHvmtfIUsqZ
voYrvT+ewYVavG02QqPHO7BarMIbkA==
=2/ki
-----END PGP SIGNATURE-----payloadtree 065bea88d6f1b6913d3e5ae2bd01f992ca019b1d
parent 5ea773497cb453a40007c2137489af6970639efe
author Tom Papke <tpapke@palantir.com> 1686749469 +0100
committer Tom Papke <tpapke@palantir.com> 1686749469 +0100

Rename isScheduled to isRunning
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/d2009d054c126df06cf73f4c214f0967cb760f10html_urlShttps://github.com/palantir/atlasdb/commit/d2009d054c126df06cf73f4c214f0967cb760f10comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d2009d054c126df06cf73f4c214f0967cb760f10/commentsj	 }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej) https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j. 	Toemmschej0 Jboj MDQ6VXNlcjQzNjc1NDkwj2 4https://avatars.githubusercontent.com/u/43675490?v=4j4 h5j &https://api.github.com/users/Toemmschej) https://github.com/Toemmschej7 0https://api.github.com/users/Toemmsche/followersj9 =https://api.github.com/users/Toemmsche/following{/other_user}j; 6https://api.github.com/users/Toemmsche/gists{/gist_id}j= =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j? 4https://api.github.com/users/Toemmsche/subscriptionsjA +https://api.github.com/users/Toemmsche/orgsjC ,https://api.github.com/users/Toemmsche/reposjE 7https://api.github.com/users/Toemmsche/events{/privacy}jG 6https://api.github.com/users/Toemmsche/received_eventsjI UserjK uparents]}(j (5ea773497cb453a40007c2137489af6970639efej ^https://api.github.com/repos/palantir/atlasdb/commits/5ea773497cb453a40007c2137489af6970639efej) Shttps://github.com/palantir/atlasdb/commit/5ea773497cb453a40007c2137489af6970639efeuastats}(totalK	additionsK		deletionsK	ufiles](}(j (5220c18808515e60fa24b9cdfda86e32dcccb721filenameQlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javastatusmodifiedje Kjf KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/d2009d054c126df06cf73f4c214f0967cb760f10/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d2009d054c126df06cf73f4c214f0967cb760f10/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=d2009d054c126df06cf73f4c214f0967cb760f10patchX  @@ -50,7 +50,7 @@ public class LockThreadInfoSnapshotManager implements AutoCloseable {
 
     private Disposable disposable;
 
-    private boolean isScheduled = false;
+    private boolean isRunning = false;
 
     public LockThreadInfoSnapshotManager(
             Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration,
@@ -63,7 +63,7 @@ public void start() {
         scheduleRun();
         disposable = threadInfoConfiguration.subscribe(newThreadInfoConfiguration -> {
             synchronized (this) {
-                if (!isScheduled) {
+                if (!isRunning) {
                     scheduleRun();
                 }
             }
@@ -78,21 +78,21 @@ private void run() {
     }
 
     @VisibleForTesting
-    synchronized boolean isScheduled() {
-        return isScheduled;
+    synchronized boolean isRunning() {
+        return isRunning;
     }
 
     private synchronized void scheduleRun() {
         if (threadInfoConfiguration.current().recordThreadInfo()) {
-            if (!isScheduled) {
-                isScheduled = true;
+            if (!isRunning) {
+                isRunning = true;
             }
             scheduledExecutorService.schedule(
                     this::run,
                     threadInfoConfiguration.current().threadInfoSnapshotIntervalMillis(),
                     TimeUnit.MILLISECONDS);
         } else {
-            isScheduled = false;
+            isRunning = false;
         }
     }
 
@@ -137,7 +137,7 @@ void takeSnapshot() {
     @Override
     public void close() {
         scheduledExecutorService.shutdown();
-        isScheduled = true;
+        isRunning = true;
         disposable.dispose();
     }
 }u}(j (f99f4d297084bce6ca7c1a6ad19f7ecfa1ec4c34jk Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javajm modifiedje Kjf Kjo Kjp https://github.com/palantir/atlasdb/blob/d2009d054c126df06cf73f4c214f0967cb760f10/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javajr https://github.com/palantir/atlasdb/raw/d2009d054c126df06cf73f4c214f0967cb760f10/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javajt https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=d2009d054c126df06cf73f4c214f0967cb760f10jv X  @@ -363,7 +363,7 @@ public void willRestartWhenConfigIsUpdated() throws InterruptedException {
                 .threadInfoSnapshotIntervalMillis(50L)
                 .build());
 
-        Awaitility.await().until(() -> !backgroundSnapshotRunner.isScheduled());
+        Awaitility.await().until(() -> !backgroundSnapshotRunner.isRunning());
 
         lockServiceWithBackgroundRunner.unlock(lockResponse.getToken());
 ueu(6b7b053d608391abfdb6b79144ece08c9758c464}(sha(6b7b053d608391abfdb6b79144ece08c9758c464node_idEC_kwDOAjP5fdoAKDZiN2IwNTNkNjA4MzkxYWJmZGI2Yjc5MTQ0ZWNlMDhjOTc1OGM0NjQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-08T16:26:30Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-06-08T16:26:30Zumessage
get set gotree}(j (b385d3f80b5ec44ca22e70a06f320a9bd0b2f17burl`https://api.github.com/repos/palantir/atlasdb/git/trees/b385d3f80b5ec44ca22e70a06f320a9bd0b2f17buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6b7b053d608391abfdb6b79144ece08c9758c464
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSCATYACgkQTLdFKain
zjx0cAf+L34VNtM20mjKQIymJpSxrJWvUkbBSjwkTyxdAtjoAU3cbiS6dH2l+Wwj
MtegWVghDdO5TGH5wnClhxUma9uVNer+xYoKWhlYavMhmqyfXJU2DKT/+3zZIqgG
tUkmNgzqm2QAwIlM6L3HMV/3axv+8qnERPZNnIBcMam0SuVzCOdVL8MdPFOisw0R
4mxBza73DA1C1TH9ypE2UUQ8BWo97tTItJ+/dEyC6YFFLndSp8PtgyXfK5/FcJL4
YKA0XP5JDgix9Lb3b21Y99AD04rYEWgDppK13wqpZ6wWWrxecFnsxevERWW5iS4O
obSqBgOHeOHJ0Ca90okCdjNxiZ6DbQ==
=rym7
-----END PGP SIGNATURE-----payloadtree b385d3f80b5ec44ca22e70a06f320a9bd0b2f17b
parent 54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38
author Jeremy Kong <jkong@palantir.com> 1686241590 +0100
committer Jeremy Kong <jkong@palantir.com> 1686241590 +0100

get set go
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/6b7b053d608391abfdb6b79144ece08c9758c464html_urlShttps://github.com/palantir/atlasdb/commit/6b7b053d608391abfdb6b79144ece08c9758c464comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6b7b053d608391abfdb6b79144ece08c9758c464/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j (54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38j ^https://api.github.com/repos/palantir/atlasdb/commits/54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38j Shttps://github.com/palantir/atlasdb/commit/54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38uastats}(totalK
	additionsK		deletionsKufiles]}(j (62618a2d9b3e0ec80708cbc2ecef5da1c7e0ba73filenamematlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelection.javastatusmodifiedj K	j KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/6b7b053d608391abfdb6b79144ece08c9758c464/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6b7b053d608391abfdb6b79144ece08c9758c464/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.java?ref=6b7b053d608391abfdb6b79144ece08c9758c464patchX  @@ -43,10 +43,14 @@ public static ColumnRangeSelection.Builder builder() {
     }
 
     @Override
-    public boolean equals(Object o) {
-        if (this == o) return true;
-        if (o == null || getClass() != o.getClass()) return false;
-        ColumnRangeSelection that = (ColumnRangeSelection) o;
+    public boolean equals(Object other) {
+        if (this == other) {
+            return true;
+        }
+        if (other == null || getClass() != other.getClass()) {
+            return false;
+        }
+        ColumnRangeSelection that = (ColumnRangeSelection) other;
         return Objects.equals(rangeSlice, that.rangeSlice);
     }
 
@@ -55,6 +59,7 @@ public int hashCode() {
         return Objects.hashCode(rangeSlice);
     }
 
+    @SuppressWarnings({"HiddenField"}) // Should be reasonable for builder classes
     public static final class Builder {
         private Optional<Integer> startColumnInclusive = Optional.empty();
         private Optional<Integer> endColumnExclusive = Optional.empty();uau(eff1a5e54d4fbce49d25e06ddc6a6674ab52e344}(sha(eff1a5e54d4fbce49d25e06ddc6a6674ab52e344node_idEC_kwDOAjP5fdoAKGVmZjFhNWU1NGQ0ZmJjZTQ5ZDI1ZTA2ZGRjNmE2Njc0YWI1MmUzNDQcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-01T22:34:27Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-05-01T22:34:27Zumessage"Autorelease 0.846.0-rc1

[skip ci]tree}(j (e7edeafa3716d639736ccf32baa572bab504280furl`https://api.github.com/repos/palantir/atlasdb/git/trees/e7edeafa3716d639736ccf32baa572bab504280fuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/eff1a5e54d4fbce49d25e06ddc6a6674ab52e344
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRQPnMACgkQhbrR8ip7mDDvSgD+JzqypTpxQSdHuJsZYBf4lGsK
5I87qxZbdo+2frpME90A/iUh1sK++DoTVihu/fpjxp9/axb9s0Y8+AwhoaO8JsQL
=srx+
-----END PGP SIGNATURE-----
payloadX(  tree e7edeafa3716d639736ccf32baa572bab504280f
parent 1976368d453bf4281a394580f44648720ed5b705
author aalouane <30903736+ergo14@users.noreply.github.com> 1682980467 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1682980467 +0000

Autorelease 0.846.0-rc1

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/eff1a5e54d4fbce49d25e06ddc6a6674ab52e344html_urlShttps://github.com/palantir/atlasdb/commit/eff1a5e54d4fbce49d25e06ddc6a6674ab52e344comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/eff1a5e54d4fbce49d25e06ddc6a6674ab52e344/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j$ svc-autoreleasej& J(j MDQ6VXNlcjUxNzE4MzQ2j( 4https://avatars.githubusercontent.com/u/51718346?v=4j* h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej- 6https://api.github.com/users/svc-autorelease/followersj/ Chttps://api.github.com/users/svc-autorelease/following{/other_user}j1 <https://api.github.com/users/svc-autorelease/gists{/gist_id}j3 Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j5 :https://api.github.com/users/svc-autorelease/subscriptionsj7 1https://api.github.com/users/svc-autorelease/orgsj9 2https://api.github.com/users/svc-autorelease/reposj; =https://api.github.com/users/svc-autorelease/events{/privacy}j= <https://api.github.com/users/svc-autorelease/received_eventsj? UserjA uparents]}(j (1976368d453bf4281a394580f44648720ed5b705j ^https://api.github.com/repos/palantir/atlasdb/commits/1976368d453bf4281a394580f44648720ed5b705j Shttps://github.com/palantir/atlasdb/commit/1976368d453bf4281a394580f44648720ed5b705uastats}(totalK 	additionsK 	deletionsK ufiles]u(d0e3aba1921e1050c4dc18ecea72a08c328a8958}(sha(d0e3aba1921e1050c4dc18ecea72a08c328a8958node_idEC_kwDOAjP5fdoAKGQwZTNhYmExOTIxZTEwNTBjNGRjMThlY2VhNzJhMDhjMzI4YTg5NTgcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-16T10:59:42Zu	committer}(ji Jeremy Kongjk jkong@palantir.comjm 2023-06-16T10:59:42Zumessagetransient rows onlytree}(ja (01b6fcd86ea0b08f1d42ac347e49a8f42187a9a8url`https://api.github.com/repos/palantir/atlasdb/git/trees/01b6fcd86ea0b08f1d42ac347e49a8f42187a9a8ujy bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d0e3aba1921e1050c4dc18ecea72a08c328a8958
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSMQJ4ACgkQTLdFKain
zjwU+Qf9EJp1XDl36yLLShWx23cNLySa9We7iogdevldkwLj96c4X33UFsKklYCQ
JMfhfoVzJIk3IUyWZ0cjoFRtOVfQJZQXHrGaCyjBVk54PurOHpMfkJjjtlxnvgvA
2PeHCaJCy5D9bzwxSrBOCu5T08Vp7WBNFYhnyDPWMhJkmVs6xpCCwNiCaFIx/gnp
GdQw4w6bGFMxGJhqeiPU2hHVxT3n7WMXDYQe+cmOeDhBGEr0QrT7J/9hToS0BNVu
gzU2+1tik3S1Y2hlsmhG0ABZUjAGX6eAgAa41MMk5WGobgdoFDiG3ZIUJieF16TH
dKnIq9kZw006Haq/Z8ZLI5hGGCf/aw==
=UbzT
-----END PGP SIGNATURE-----payloadtree 01b6fcd86ea0b08f1d42ac347e49a8f42187a9a8
parent ed51dfd42a8723bd76e3d969c7b6c4f30910149c
author Jeremy Kong <jkong@palantir.com> 1686913182 +0800
committer Jeremy Kong <jkong@palantir.com> 1686913182 +0800

transient rows only
uujy ^https://api.github.com/repos/palantir/atlasdb/commits/d0e3aba1921e1050c4dc18ecea72a08c328a8958html_urlShttps://github.com/palantir/atlasdb/commit/d0e3aba1921e1050c4dc18ecea72a08c328a8958comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d0e3aba1921e1050c4dc18ecea72a08c328a8958/commentsjg }(login
jeremyk-91idJZ jc MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jy 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujo }(j 
jeremyk-91j JZ jc MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5jy 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(ja (ed51dfd42a8723bd76e3d969c7b6c4f30910149cjy ^https://api.github.com/repos/palantir/atlasdb/commits/ed51dfd42a8723bd76e3d969c7b6c4f30910149cj Shttps://github.com/palantir/atlasdb/commit/ed51dfd42a8723bd76e3d969c7b6c4f30910149cuastats}(totalK=	additionsK!	deletionsKufiles](}(ja (178c37e7b48c2409a2d23cdc52be575412ef9369filenameiatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/d0e3aba1921e1050c4dc18ecea72a08c328a8958/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d0e3aba1921e1050c4dc18ecea72a08c328a8958/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=d0e3aba1921e1050c4dc18ecea72a08c328a8958patchX  @@ -1068,10 +1068,10 @@ private static boolean isEndOfColumnRange(
             boolean completedCell, byte[] lastCol, int numRawResults, BatchColumnRangeSelection columnRangeSelection) {
         return (numRawResults < columnRangeSelection.getBatchHint())
                 || (completedCell
-                && (RangeRequests.isLastRowName(lastCol)
-                || Arrays.equals(
-                RangeRequests.nextLexicographicName(lastCol),
-                columnRangeSelection.getEndCol())));
+                        && (RangeRequests.isLastRowName(lastCol)
+                                || Arrays.equals(
+                                        RangeRequests.nextLexicographicName(lastCol),
+                                        columnRangeSelection.getEndCol())));
     }
 
     private static byte[] getNextColumnRangeColumn(boolean completedCell, byte[] lastCol) {
@@ -1279,10 +1279,10 @@ public void truncateTables(final Set<TableReference> tablesToTruncate) {
     @Override
     public void delete(TableReference tableRef, Multimap<Cell, Long> keys) {
         new CellDeleter(
-                clientPool,
-                wrappingQueryRunner,
-                DELETE_CONSISTENCY,
-                mutationTimestampProvider.getDeletionTimestampOperatorForBatchDelete())
+                        clientPool,
+                        wrappingQueryRunner,
+                        DELETE_CONSISTENCY,
+                        mutationTimestampProvider.getDeletionTimestampOperatorForBatchDelete())
                 .delete(tableRef, keys);
     }
 
@@ -1752,10 +1752,10 @@ private static Map<String, List<Mutation>> keyMutationMapByColumnFamily(
     @Override
     public void deleteAllTimestamps(TableReference tableRef, Map<Cell, TimestampRangeDelete> deletes) {
         new CellRangeDeleter(
-                clientPool,
-                wrappingQueryRunner,
-                DELETE_CONSISTENCY,
-                mutationTimestampProvider::getRangeTombstoneTimestamp)
+                        clientPool,
+                        wrappingQueryRunner,
+                        DELETE_CONSISTENCY,
+                        mutationTimestampProvider::getRangeTombstoneTimestamp)
                 .deleteAllTimestamps(tableRef, deletes);
     }
 
@@ -1891,9 +1891,9 @@ private static CASResult putUnlessExistsSinglePartition(
 
     private static Column prepareColumnForPutUnlessExists(Map.Entry<Cell, byte[]> insertion) {
         return new Column(CassandraKeyValueServices.makeCompositeBuffer(
-                insertion.getKey().getColumnName(),
-                // Atlas timestamp
-                CassandraConstants.CAS_TABLE_TIMESTAMP))
+                        insertion.getKey().getColumnName(),
+                        // Atlas timestamp
+                        CassandraConstants.CAS_TABLE_TIMESTAMP))
                 // Cassandra timestamp
                 .setTimestamp(CassandraConstants.CAS_TABLE_TIMESTAMP)
                 .setValue(insertion.getValue());u}(ja (477bc217538aa3b4f6851d2211f938eea107d933j latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedj Kj K
j Kj https://github.com/palantir/atlasdb/blob/d0e3aba1921e1050c4dc18ecea72a08c328a8958/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://github.com/palantir/atlasdb/raw/d0e3aba1921e1050c4dc18ecea72a08c328a8958/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=d0e3aba1921e1050c4dc18ecea72a08c328a8958j X  @@ -155,21 +155,26 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
 
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
                 .run(
-//                        createSingleRowTwoCellsWorkflowValidator(
-//                                transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
-//                        createRingWorkflowValidator(
-//                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()),
+                        //                        createSingleRowTwoCellsWorkflowValidator(
+                        //                                transactionStoreFactory, singleRowTwoCellsConfig,
+                        // environment.lifecycle()),
+                        //                        createRingWorkflowValidator(
+                        //                                transactionStoreFactory, ringWorkflowConfiguration,
+                        // environment.lifecycle()),
                         createTransientRowsWorkflowValidator(
                                 transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle())
-//                        createSingleBusyCellWorkflowValidator(
-//                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
-//                        createSingleBusyCellReadNoTouchWorkflowValidator(
-//                                transactionStoreFactory,
-//                                singleBusyCellReadNoTouchWorkflowConfiguration,
-//                                environment.lifecycle()),
-//                        createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
-//                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle())
-                );
+                        //                        createSingleBusyCellWorkflowValidator(
+                        //                                transactionStoreFactory, singleBusyCellWorkflowConfiguration,
+                        // environment.lifecycle()),
+                        //                        createSingleBusyCellReadNoTouchWorkflowValidator(
+                        //                                transactionStoreFactory,
+                        //                                singleBusyCellReadNoTouchWorkflowConfiguration,
+                        //                                environment.lifecycle()),
+                        //                        createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig,
+                        // environment.lifecycle()),
+                        //                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig,
+                        // environment.lifecycle())
+                        );
 
         log.info("antithesis: terminate");
 ueu(7a3a1b30b6ff647bd8d924697550793ef6b72944}(sha(7a3a1b30b6ff647bd8d924697550793ef6b72944node_idEC_kwDOAjP5fdoAKDdhM2ExYjMwYjZmZjY0N2JkOGQ5MjQ2OTc1NTA3OTNlZjZiNzI5NDQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-16T20:51:19Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-05-16T20:51:19Zumessagedarkest dungeonstree}(j (16e01a26feeac8af3f5652a7393cb79e1bd8bcf6url`https://api.github.com/repos/palantir/atlasdb/git/trees/16e01a26feeac8af3f5652a7393cb79e1bd8bcf6uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7a3a1b30b6ff647bd8d924697550793ef6b72944
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRj7McACgkQTLdFKain
zjylfQf+JncXYYKc3LDwodKxohwMSvKGkVgIzFlR5FQRGE8mkOJ/hzafmsO+J92i
qf0fItcGX7tadbmVH5rKd5V/KFDXIX1ioN8tffeyQGP8cuJjEh8QZlPJywr6OLPh
EXe2AjfHF9W7ySWi+qWmLOLH3e4viK2aYlPUMT9/LLdL8ocq2bJPWEyy6AWDwhZq
ru3Fp1l6yTGV0rd+KqCzp/ykgtcYql63wi2NueSvr4xQ+a0KU851kvVKNXISiYPI
8TuqBnQgWTAy9uwK97c81iotiLFkOCL/9b+SMswScxywWXeJFaKr7fVv48Z/OO3h
qmGj4aRiSv3sP899UEK4bYbVkeBFaA==
=v/+O
-----END PGP SIGNATURE-----payloadtree 16e01a26feeac8af3f5652a7393cb79e1bd8bcf6
parent 275c9ecc472e84c0ef765ff7cac6367978d17d46
author Jeremy Kong <jkong@palantir.com> 1684270279 +0100
committer Jeremy Kong <jkong@palantir.com> 1684270279 +0100

darkest dungeons
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/7a3a1b30b6ff647bd8d924697550793ef6b72944html_urlShttps://github.com/palantir/atlasdb/commit/7a3a1b30b6ff647bd8d924697550793ef6b72944comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7a3a1b30b6ff647bd8d924697550793ef6b72944/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j
 JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj  -https://api.github.com/users/jeremyk-91/reposj" 8https://api.github.com/users/jeremyk-91/events{/privacy}j$ 7https://api.github.com/users/jeremyk-91/received_eventsj& Userj( uparents]}(j (275c9ecc472e84c0ef765ff7cac6367978d17d46j ^https://api.github.com/repos/palantir/atlasdb/commits/275c9ecc472e84c0ef765ff7cac6367978d17d46j Shttps://github.com/palantir/atlasdb/commit/275c9ecc472e84c0ef765ff7cac6367978d17d46uastats}(totalK7	additionsK)	deletionsKufiles](}(j (ad4151d3d8ebcafdd85a6b7105852841417d1cdcfilenamehatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javastatusmodifiedjB K
jC KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/7a3a1b30b6ff647bd8d924697550793ef6b72944/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7a3a1b30b6ff647bd8d924697550793ef6b72944/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=7a3a1b30b6ff647bd8d924697550793ef6b72944patchX  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
 import com.palantir.atlasdb.workload.invariant.CrossCellInconsistency;
@@ -46,9 +47,15 @@
 public final class TransientRowsWorkflows {
     private static final SafeLogger log = SafeLoggerFactory.get(TransientRowsWorkflows.class);
 
-    private static final int SUMMARY_ROW = -1;
-    private static final int COLUMN = 1;
-    private static final int VALUE = 0;
+    @VisibleForTesting
+    static final int SUMMARY_ROW = -1;
+
+    @VisibleForTesting
+    static final int COLUMN = 1;
+
+    @VisibleForTesting
+    static final int VALUE = 0;
+
     private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
 
     private TransientRowsWorkflows() {}u}(j (67e81151abbd080ea70d44727a80c0cb5d9a2eabjH latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javajJ modifiedjB KjC KjL K*jM https://github.com/palantir/atlasdb/blob/7a3a1b30b6ff647bd8d924697550793ef6b72944/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javajO https://github.com/palantir/atlasdb/raw/7a3a1b30b6ff647bd8d924697550793ef6b72944/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javajQ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=7a3a1b30b6ff647bd8d924697550793ef6b72944jS XA  @@ -92,8 +92,14 @@ public void firstTransactionWritesTwoCells() {
         assertThat(witnessedTransactions.get(0).actions())
                 .hasSize(2)
                 .containsExactlyInAnyOrder(
-                        WitnessedWriteTransactionAction.of(TABLE_NAME, ImmutableWorkloadCell.of(0, 1), 0),
-                        WitnessedWriteTransactionAction.of(TABLE_NAME, ImmutableWorkloadCell.of(-1, 0), 0));
+                        WitnessedWriteTransactionAction.of(
+                                TABLE_NAME,
+                                ImmutableWorkloadCell.of(0, TransientRowsWorkflows.COLUMN),
+                                TransientRowsWorkflows.VALUE),
+                        WitnessedWriteTransactionAction.of(
+                                TABLE_NAME,
+                                ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 0),
+                                TransientRowsWorkflows.VALUE));
     }
 
     @Test
@@ -127,10 +133,15 @@ public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
         verify(violationConsumer)
                 .accept(ImmutableList.of(CrossCellInconsistency.builder()
                         .putInconsistentValues(
-                                TableAndWorkloadCell.of(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 1, 1)),
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(ITERATION_COUNT - 1, TransientRowsWorkflows.COLUMN)),
                                 Optional.empty())
                         .putInconsistentValues(
-                                TableAndWorkloadCell.of(TABLE_NAME, ImmutableWorkloadCell.of(-1, ITERATION_COUNT - 1)),
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(
+                                                TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 1)),
                                 Optional.of(0))
                         .build()));
         verifyNoMoreInteractions(violationConsumer);
@@ -140,15 +151,23 @@ public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
     public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
         Consumer<List<CrossCellInconsistency>> violationConsumer = mock(Consumer.class);
         WorkflowHistory history = transientRowsWorkflow.run();
-        transactionStore.readWrite(txn -> txn.write(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 2, 1), 0));
+        transactionStore.readWrite(txn -> txn.write(
+                TABLE_NAME,
+                ImmutableWorkloadCell.of(ITERATION_COUNT - 2, TransientRowsWorkflows.COLUMN),
+                TransientRowsWorkflows.VALUE));
         invariant.accept(history, violationConsumer);
         verify(violationConsumer)
                 .accept(ImmutableList.of(CrossCellInconsistency.builder()
                         .putInconsistentValues(
-                                TableAndWorkloadCell.of(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 2, 1)),
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(ITERATION_COUNT - 2, TransientRowsWorkflows.COLUMN)),
                                 Optional.of(0))
                         .putInconsistentValues(
-                                TableAndWorkloadCell.of(TABLE_NAME, ImmutableWorkloadCell.of(-1, ITERATION_COUNT - 2)),
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(
+                                                TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 2)),
                                 Optional.empty())
                         .build()));
         verifyNoMoreInteractions(violationConsumer);
@@ -164,7 +183,7 @@ public void invariantReportsViolationsFromTransactionHistory() {
                 .history(history.history().stream()
                         .map(witnessedTransaction -> ImmutableFullyWitnessedTransaction.builder()
                                 .actions(witnessedTransaction.actions().stream()
-                                        .map(TransientRowsWorkflowsTest::rewriteReadHistoryAsNeverReadingFromSummaryRow)
+                                        .map(TransientRowsWorkflowsTest::rewriteReadHistoryAsAlwaysInconsistent)
                                         .collect(Collectors.toList()))
                                 .startTimestamp(witnessedTransaction.startTimestamp())
                                 .commitTimestamp(witnessedTransaction.commitTimestamp())
@@ -179,13 +198,14 @@ public void invariantReportsViolationsFromTransactionHistory() {
         verifyNoMoreInteractions(violationConsumer);
     }
 
-    private static WitnessedTransactionAction rewriteReadHistoryAsNeverReadingFromSummaryRow(
+    private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(
             WitnessedTransactionAction action) {
         if (action instanceof WitnessedReadTransactionAction) {
-            if (action.cell().key() == -1) {
+            if (action.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
                 return WitnessedReadTransactionAction.of(action.table(), action.cell(), Optional.empty());
             } else {
-                return WitnessedReadTransactionAction.of(action.table(), action.cell(), Optional.of(0));
+                return WitnessedReadTransactionAction.of(
+                        action.table(), action.cell(), Optional.of(TransientRowsWorkflows.VALUE));
             }
         } else {
             return action;ueu(a4625fff5cb6e505450f30822d450f0f801f9fec}(sha(a4625fff5cb6e505450f30822d450f0f801f9fecnode_idEC_kwDOAjP5fdoAKGE0NjI1ZmZmNWNiNmU1MDU0NTBmMzA4MjJkNDUwZjBmODAxZjlmZWMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-17T09:34:32Zu	committer}(jg Jeremy Kongji jkong@palantir.comjk 2023-04-17T09:34:32ZumessageJMerge remote-tracking branch 'origin/develop' into jkong/asynchronous-ragetree}(j_ (94a612b51ac0dc72bd4780b440e09a03d83cba1eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/94a612b51ac0dc72bd4780b440e09a03d83cba1eujw bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a4625fff5cb6e505450f30822d450f0f801f9fec
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ9EqkACgkQTLdFKain
zjwIGQf+Nl13B5sr5DH1jtSfKSHML2N2LVYfqNHJK/8WcSK1GiCBi920qyzbnFIp
DxRhQXUNkL9tfEhkeqfe2XJAShSmQh44dPz5nWm0/WG4znQBostqNpQ6Z+eUG2PR
GK30Ncb1d14U9k753WQzyBbU2xf68Iuh7xcn9tCVyvqMqidL+yYx8BjEClyTBtz+
n1ezjEw3JHvDV1jPEH0Ax9bqVNMogwIyzeCuvbOccXWhe25MCp/5nEQFP0yIdnM0
okKmE2DnwRYCUdQixq5YDcTfdNmYAlZzaMa3TC7CltlERgDDT2AaKnWqj0CdTRpq
xMvpo0vzOih1K4+rWCTrtZWGvvCd2A==
=xjHQ
-----END PGP SIGNATURE-----payloadXO  tree 94a612b51ac0dc72bd4780b440e09a03d83cba1e
parent bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d
parent 219f56b4327bf35c71bf5d10028da2d022eccc1f
author Jeremy Kong <jkong@palantir.com> 1681724072 +0100
committer Jeremy Kong <jkong@palantir.com> 1681724072 +0100

Merge remote-tracking branch 'origin/develop' into jkong/asynchronous-rage
uujw ^https://api.github.com/repos/palantir/atlasdb/commits/a4625fff5cb6e505450f30822d450f0f801f9fechtml_urlShttps://github.com/palantir/atlasdb/commit/a4625fff5cb6e505450f30822d450f0f801f9feccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a4625fff5cb6e505450f30822d450f0f801f9fec/commentsje }(login
jeremyk-91idJZ ja MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jw 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujm }(j 
jeremyk-91j JZ ja MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5jw 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents](}(j_ (bf83eb0aa07b9b02a03ccc4a20e8589986e0c29djw ^https://api.github.com/repos/palantir/atlasdb/commits/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj Shttps://github.com/palantir/atlasdb/commit/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29du}(j_ (219f56b4327bf35c71bf5d10028da2d022eccc1fjw ^https://api.github.com/repos/palantir/atlasdb/commits/219f56b4327bf35c71bf5d10028da2d022eccc1fj Shttps://github.com/palantir/atlasdb/commit/219f56b4327bf35c71bf5d10028da2d022eccc1fuestats}(totalM	additionsM$	deletionsMufiles](}(j_ (1f8d140f2fcd68b79edcbd2a6f52017316caa266filename^atlasdb-config/src/main/java/com/palantir/atlasdb/config/ShouldRunBackgroundSweepSupplier.javastatusremovedj K j K*changesK*blob_urlhttps://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.javaraw_urlhttps://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dpatchX  @@ -1,42 +0,0 @@
-/*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.config;
-
-import java.util.function.BooleanSupplier;
-import java.util.function.Supplier;
-
-/**
- * Synthesises provided install and runtime configurations, and uses this to decide whether the background sweeper
- * should run. Specifically:
- *
- * <ul>
- *     <li>if the background sweeper has been explicitly enabled or disabled, use that setting;</li>
- *     <li>otherwise disable background sweep</li>
- * </ul>
- */
-public class ShouldRunBackgroundSweepSupplier implements BooleanSupplier {
-    private final Supplier<SweepConfig> runtimeConfigSupplier;
-
-    public ShouldRunBackgroundSweepSupplier(Supplier<SweepConfig> runtimeConfig) {
-        this.runtimeConfigSupplier = runtimeConfig;
-    }
-
-    @Override
-    public boolean getAsBoolean() {
-        return runtimeConfigSupplier.get().enabled().orElse(false);
-    }
-}u}(j_ (8e383ff5530f7a77f005d2ff7e7e17df90fef15bj Iatlasdb-config/src/main/java/com/palantir/atlasdb/config/SweepConfig.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X  @@ -34,7 +34,10 @@ public abstract class SweepConfig {
      * If unspecified, AtlasDB will decide whether to run the background sweeper or not. This may depend on factors
      * elsewhere in configuration.
      */
-    public abstract Optional<Boolean> enabled();
+    @Value.Default
+    public boolean enabled() {
+        return false;
+    }
 
     // TODO handle live reload
     /**u}(j_ (5140cb743e991d158d882ff7fb88c203a8ba5c68j datlasdb-config/src/main/java/com/palantir/atlasdb/factory/DefaultLockAndTimestampServiceFactory.javaj modifiedj Kj Kj K j https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X  @@ -107,7 +107,7 @@ public final class DefaultLockAndTimestampServiceFactory implements LockAndTimes
     private final MetricsManager metricsManager;
     private final AtlasDbConfig config;
     private final Refreshable<AtlasDbRuntimeConfig> runtimeConfig;
-    private final Consumer<Object> env;
+    private final Consumer<Object> registrar;
     private final Supplier<LockService> lock;
     private final Supplier<ManagedTimestampService> time;
     private final TimestampStoreInvalidator invalidator;
@@ -122,7 +122,7 @@ public DefaultLockAndTimestampServiceFactory(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -135,7 +135,7 @@ public DefaultLockAndTimestampServiceFactory(
         this.metricsManager = metricsManager;
         this.config = config;
         this.runtimeConfig = runtimeConfig;
-        this.env = env;
+        this.registrar = registrar;
         this.lock = lock;
         this.time = time;
         this.invalidator = invalidator;
@@ -153,7 +153,7 @@ public LockAndTimestampServices createLockAndTimestampServices() {
                 metricsManager,
                 config,
                 runtimeConfig,
-                env,
+                registrar,
                 lock,
                 time,
                 invalidator,
@@ -198,7 +198,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -211,7 +211,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
         AtlasDbRuntimeConfig initialRuntimeConfig = runtimeConfig.get();
         assertNoSpuriousTimeLockBlockInRuntimeConfig(config, initialRuntimeConfig);
         if (config.leader().isPresent()) {
-            return createRawLeaderServices(metricsManager, config.leader().get(), env, lock, time, userAgent);
+            return createRawLeaderServices(metricsManager, config.leader().get(), registrar, lock, time, userAgent);
         } else if (config.timestamp().isPresent() && config.lock().isPresent()) {
             return createRawRemoteServices(metricsManager, config, runtimeConfig, userAgent);
         } else if (TransactionManagers.isUsingTimeLock(config, initialRuntimeConfig)) {
@@ -227,7 +227,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
                     timelockRequestBatcherProviders,
                     knownSchemas);
         } else {
-            return createRawEmbeddedServices(metricsManager, env, lock, time);
+            return createRawEmbeddedServices(metricsManager, registrar, lock, time);
         }
     }
 
@@ -412,13 +412,13 @@ private static Supplier<InternalMultiClientConjureTimelockService> getMultiClien
     private static LockAndTimestampServices createRawLeaderServices(
             MetricsManager metricsManager,
             LeaderConfig leaderConfig,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             UserAgent userAgent) {
         // Create local services, that may or may not end up being registered in an Consumer<Object>.
         LocalPaxosServices localPaxosServices =
-                Leaders.createAndRegisterLocalServices(metricsManager, env, leaderConfig, userAgent);
+                Leaders.createAndRegisterLocalServices(metricsManager, registrar, leaderConfig, userAgent);
 
         LeadershipCoordinator leadershipCoordinator = localPaxosServices.leadershipCoordinator();
         LockService localLock =
@@ -432,9 +432,9 @@ private static LockAndTimestampServices createRawLeaderServices(
         TimestampService localTime = getTimestampFacade(managedTimestampProxy);
         TimestampManagementService localManagement = getTimestampManagementFacade(managedTimestampProxy);
 
-        env.accept(localLock);
-        env.accept(localTime);
-        env.accept(localManagement);
+        registrar.accept(localLock);
+        registrar.accept(localTime);
+        registrar.accept(localManagement);
 
         // Create remote services, that may end up calling our own local services.
         ImmutableServerListConfig serverListConfig = ImmutableServerListConfig.builder()
@@ -586,7 +586,7 @@ private static LockAndTimestampServices createRawRemoteServices(
 
     private static LockAndTimestampServices createRawEmbeddedServices(
             MetricsManager metricsManager,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> managedTimestampServiceSupplier) {
         LockService lockService =
@@ -599,9 +599,9 @@ private static LockAndTimestampServices createRawEmbeddedServices(
         TimestampManagementService timestampManagementService = ServiceCreator.instrumentService(
                 metricsManager.getRegistry(), managedTimestampService, TimestampManagementService.class);
 
-        env.accept(lockService);
-        env.accept(timeService);
-        env.accept(timestampManagementService);
+        registrar.accept(lockService);
+        registrar.accept(timeService);
+        registrar.accept(timestampManagementService);
 
         return ImmutableLockAndTimestampServices.builder()
                 .lock(lockService)u}(j_ (92cee3c0379971de0a91702380e2b466da96ff6bj Fatlasdb-config/src/main/java/com/palantir/atlasdb/factory/Leaders.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X  @@ -79,13 +79,13 @@ private Leaders() {
      * service.
      */
     public static LocalPaxosServices createAndRegisterLocalServices(
-            MetricsManager metricsManager, Consumer<Object> env, LeaderConfig config, UserAgent userAgent) {
+            MetricsManager metricsManager, Consumer<Object> registrar, LeaderConfig config, UserAgent userAgent) {
         LocalPaxosServices localPaxosServices = createInstrumentedLocalServices(metricsManager, config, userAgent);
 
-        env.accept(localPaxosServices.ourAcceptor());
-        env.accept(localPaxosServices.ourLearner());
-        env.accept(localPaxosServices.localPingableLeader());
-        env.accept(new NotCurrentLeaderExceptionMapper());
+        registrar.accept(localPaxosServices.ourAcceptor());
+        registrar.accept(localPaxosServices.ourLearner());
+        registrar.accept(localPaxosServices.localPingableLeader());
+        registrar.accept(new NotCurrentLeaderExceptionMapper());
         return localPaxosServices;
     }
 u}(j_ (299a6baf0f3a0a5cf0514c2639c49ba1a5475878j Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javaj modifiedj K
j K#j K-j https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X%  @@ -40,7 +40,6 @@
 import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
 import com.palantir.atlasdb.config.ImmutableAtlasDbConfig;
 import com.palantir.atlasdb.config.ServerListConfig;
-import com.palantir.atlasdb.config.ShouldRunBackgroundSweepSupplier;
 import com.palantir.atlasdb.config.SweepConfig;
 import com.palantir.atlasdb.config.TimeLockClientConfig;
 import com.palantir.atlasdb.config.TimeLockRequestBatcherProviders;
@@ -79,7 +78,6 @@
 import com.palantir.atlasdb.sweep.SpecificTableSweeper;
 import com.palantir.atlasdb.sweep.SweepBatchConfig;
 import com.palantir.atlasdb.sweep.SweepTaskRunner;
-import com.palantir.atlasdb.sweep.SweeperServiceImpl;
 import com.palantir.atlasdb.sweep.metrics.LegacySweepMetrics;
 import com.palantir.atlasdb.sweep.queue.MultiTableSweepQueueWriter;
 import com.palantir.atlasdb.sweep.queue.TargetedSweeper;
@@ -534,7 +532,7 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
         transactionManager.registerClosingCallback(targetedSweep::close);
 
         initializeCloseable(
-                () -> initializeSweepEndpointAndBackgroundProcess(
+                () -> initializeSweepBackgroundProcess(
                         metricsManager,
                         config(),
                         runtime,
@@ -809,11 +807,11 @@ static boolean timeLockMigrationCompleteIfNeeded(LockAndTimestampServices lockAn
                 .orElse(true);
     }
 
-    private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess(
+    private static BackgroundSweeperImpl initializeSweepBackgroundProcess(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Supplier<AtlasDbRuntimeConfig> runtimeConfigSupplier,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             KeyValueService kvs,
             TransactionService transactionService,
             CleanupFollower follower,
@@ -835,21 +833,19 @@ private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess
                 metricsManager,
                 () -> getSweepBatchConfig(runtimeConfigSupplier.get().sweep()));
 
-        SpecificTableSweeper specificTableSweeper = initializeSweepEndpoint(
-                env,
-                kvs,
+        SpecificTableSweeper specificTableSweeper = SpecificTableSweeper.create(
                 transactionManager,
+                kvs,
                 sweepRunner,
+                SweepTableFactory.of(),
                 sweepPerfLogger,
                 sweepMetrics,
-                config.initializeAsync(),
-                sweepBatchConfigSource);
+                config.initializeAsync());
 
         BackgroundSweeperImpl backgroundSweeper = BackgroundSweeperImpl.create(
                 metricsManager,
                 sweepBatchConfigSource,
-                new ShouldRunBackgroundSweepSupplier(
-                        () -> runtimeConfigSupplier.get().sweep())::getAsBoolean,
+                () -> runtimeConfigSupplier.get().sweep().enabled(),
                 () -> runtimeConfigSupplier.get().sweep().sweepThreads(),
                 () -> runtimeConfigSupplier.get().sweep().pauseMillis(),
                 () -> runtimeConfigSupplier.get().sweep().sweepPriorityOverrides(),
@@ -864,27 +860,6 @@ private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess
         return backgroundSweeper;
     }
 
-    private static SpecificTableSweeper initializeSweepEndpoint(
-            Consumer<Object> env,
-            KeyValueService kvs,
-            TransactionManager transactionManager,
-            SweepTaskRunner sweepRunner,
-            BackgroundSweeperPerformanceLogger sweepPerfLogger,
-            LegacySweepMetrics sweepMetrics,
-            boolean initializeAsync,
-            AdjustableSweepBatchConfigSource sweepBatchConfigSource) {
-        SpecificTableSweeper specificTableSweeper = SpecificTableSweeper.create(
-                transactionManager,
-                kvs,
-                sweepRunner,
-                SweepTableFactory.of(),
-                sweepPerfLogger,
-                sweepMetrics,
-                initializeAsync);
-        env.accept(new SweeperServiceImpl(specificTableSweeper, sweepBatchConfigSource));
-        return specificTableSweeper;
-    }
-
     private static SweepBatchConfig getSweepBatchConfig(SweepConfig sweepConfig) {
         return ImmutableSweepBatchConfig.builder()
                 .maxCellTsPairsToExamine(sweepConfig.readLimit())
@@ -940,7 +915,7 @@ public static LockAndTimestampServices createLockAndTimestampServicesForCli(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfigSupplier,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -950,7 +925,7 @@ public static LockAndTimestampServices createLockAndTimestampServicesForCli(
                         metricsManager,
                         config,
                         runtimeConfigSupplier,
-                        env,
+                        registrar,
                         lock,
                         time,
                         invalidator,u      }(j_ (5d339f0ca1b1d528743d2246718cc8b977604ba6j Vatlasdb-config/src/test/java/com/palantir/atlasdb/config/AtlasDbRuntimeConfigTest.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X  @@ -21,18 +21,6 @@
 import org.junit.Test;
 
 public class AtlasDbRuntimeConfigTest {
-    @Test
-    public void configDoesNotSpecifySweepByDefault() {
-        AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.defaultRuntimeConfig();
-        assertThat(config.sweep().enabled()).isEmpty();
-    }
-
-    @Test
-    public void configWithoutSweepHasSweepDisabled() {
-        AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.withSweepDisabled();
-        assertThat(config.sweep().enabled()).contains(false);
-    }
-
     @Test
     public void configWithoutSpecifyingStreamPersistenceConfigHasDefaultConfig() {
         AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.defaultRuntimeConfig();u}(j_ (99709ed401e5f0d37ebfb9169ea783f5f6e19c95j batlasdb-config/src/test/java/com/palantir/atlasdb/config/ShouldRunBackgroundSweepSupplierTest.javaj removedj K j Kfj Kfj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X]  @@ -1,102 +0,0 @@
-/*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.config;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
-
-import com.palantir.atlasdb.sweep.queue.config.ImmutableTargetedSweepRuntimeConfig;
-import com.palantir.atlasdb.sweep.queue.config.TargetedSweepRuntimeConfig;
-import java.util.function.Supplier;
-import org.junit.Test;
-
-public class ShouldRunBackgroundSweepSupplierTest {
-
-    private static final TargetedSweepRuntimeConfig TARGETED_SWEEP_ENABLED =
-            ImmutableTargetedSweepRuntimeConfig.builder().enabled(true).build();
-    private static final TargetedSweepRuntimeConfig TARGETED_SWEEP_DISABLED =
-            ImmutableTargetedSweepRuntimeConfig.builder().enabled(false).build();
-
-    private static final SweepConfig BACKGROUND_SWEEP_ENABLED =
-            ImmutableSweepConfig.builder().enabled(true).build();
-    private static final SweepConfig BACKGROUND_SWEEP_UNSET = SweepConfig.defaultSweepConfig();
-    private static final SweepConfig BACKGROUND_SWEEP_DISABLED = SweepConfig.disabled();
-
-    @Test
-    public void disableBackgroundSweepIfBackgroundSweepExplicitlyDisabled() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_DISABLED))
-                .isFalse();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_DISABLED))
-                .isFalse();
-    }
-
-    @Test
-    public void enableBackgroundSweepIfBackgroundSweepExplicitlyEnabled() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_ENABLED))
-                .isTrue();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED))
-                .isTrue();
-    }
-
-    @Test
-    public void disableBackgroundSweepIfNotSet() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET))
-                .isFalse();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET))
-                .isFalse();
-    }
-
-    // Mock assignment known to be safe
-    // Direct mock invocation is safe here as we're using it as a convenient way to create a supplier
-    @SuppressWarnings({"unchecked", "DirectInvocationOnMock"})
-    @Test
-    public void liveReload() {
-        Supplier<AtlasDbRuntimeConfig> runtimeConfigSupplier = mock(Supplier.class);
-        when(runtimeConfigSupplier.get())
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET))
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET))
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED));
-
-        ShouldRunBackgroundSweepSupplier supplier = new ShouldRunBackgroundSweepSupplier(
-                () -> runtimeConfigSupplier.get().sweep());
-
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET")
-                .isFalse();
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET")
-                .isFalse();
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED")
-                .isTrue();
-    }
-
-    private static boolean runBackgroundSweep(TargetedSweepRuntimeConfig tsRuntime, SweepConfig bgSweepConfig) {
-        return new ShouldRunBackgroundSweepSupplier(
-                        () -> createRuntimeConfig(tsRuntime, bgSweepConfig).sweep())
-                .getAsBoolean();
-    }
-
-    private static AtlasDbRuntimeConfig createRuntimeConfig(
-            TargetedSweepRuntimeConfig targetedSweepRuntimeConfig, SweepConfig backgroundSweepConfig) {
-        return ImmutableAtlasDbRuntimeConfig.builder()
-                .targetedSweep(targetedSweepRuntimeConfig)
-                .sweep(backgroundSweepConfig)
-                .build();
-    }
-}u}(j_ (7b553ba97fea29cc28f91d035e5cbe8060e8cae3j hatlasdb-config/src/test/java/com/palantir/atlasdb/config/TransactionManagersAsyncInitializationTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X  @@ -45,7 +45,7 @@ public class TransactionManagersAsyncInitializationTest {
     private static final String USER_AGENT_VERSION = "3.1415926.5358979";
     private static final UserAgent USER_AGENT = UserAgent.of(UserAgent.Agent.of(USER_AGENT_NAME, USER_AGENT_VERSION));
 
-    private final Consumer<Object> environment = mock(Consumer.class);
+    private final Consumer<Object> registrar = mock(Consumer.class);
 
     @Test
     public void asyncInitializationEventuallySucceeds() {
@@ -59,7 +59,7 @@ public void asyncInitializationEventuallySucceeds() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema())
                 .build()
                 .serializable();
@@ -84,7 +84,7 @@ public void transactionManagersBuilderDoesNotThrowIfAsyncInitialisationFailsRepe
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema());
 
         assertThatCode(() -> build.build().serializable()).doesNotThrowAnyException();u}(j_ (9c5d0752d26338a6bd7a12031a481f8b1013f2d0j \atlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/HikariCPConnectionManager.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X  @@ -246,20 +246,21 @@ private void testDataSource(HikariDataSource dataSourcePool) throws SQLException
      * @throws SQLException if connection is invalid and cannot be used.
      */
     private void testConnection(Connection connection) throws SQLException {
-        if (connConfig.getTestQuery().isEmpty()) {
-            if (!connection.isValid(connConfig.getSocketTimeoutSeconds())) {
-                throw new SQLException(String.format("Connection %s is not valid", connection));
-            }
-        } else {
-            try (PreparedStatement stmt = connection.prepareStatement(connConfig.getTestQuery())) {
+        if (connConfig.getTestQuery().isPresent()) {
+            try (PreparedStatement stmt =
+                    connection.prepareStatement(connConfig.getTestQuery().get())) {
                 stmt.setFetchSize(1); // only need first row result
                 ResultSet rs = stmt.executeQuery();
                 if (!rs.next()) {
                     throw new SQLException(String.format(
                             "Connection %s could not be validated as it did not return any results for test query %s",
-                            connection, connConfig.getTestQuery()));
+                            connection, connConfig.getTestQuery().get()));
                 }
             }
+        } else {
+            if (!connection.isValid(connConfig.getSocketTimeoutSeconds())) {
+                throw new SQLException(String.format("Connection %s is not valid", connection));
+            }
         }
     }
 u}(j_ (e1fd2afeb410162c7eb111eb2ed045144d3511afj Zatlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/ConnectionConfig.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X  @@ -58,10 +58,7 @@ public MaskedValue getDbPassword() {
 
     public abstract String getDriverClass();
 
-    @Value.Default
-    public String getTestQuery() {
-        return "";
-    }
+    public abstract Optional<String> getTestQuery();
 
     @JsonIgnore
     @Value.Derived
@@ -185,8 +182,8 @@ public HikariConfig getHikariConfig() {
 
         initializeFailTimeoutMillis().ifPresent(config::setInitializationFailTimeout);
 
-        if (!getTestQuery().isEmpty()) {
-            config.setConnectionTestQuery(getTestQuery());
+        if (getTestQuery().isPresent()) {
+            config.setConnectionTestQuery(getTestQuery().get());
         }
 
         if (getSqlExceptionOverrideClass().isPresent()) {u}(j_ (8998869ed08a7e30d96c016b7470e3e524faa8c5j Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/BackgroundSweepThread.javaj modifiedj Kj K	j Kj https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj XB  @@ -39,6 +39,8 @@
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.TimeUnit;
+import java.util.function.BooleanSupplier;
+import java.util.function.LongSupplier;
 import java.util.function.Supplier;
 
 public class BackgroundSweepThread implements Runnable {
@@ -49,8 +51,8 @@ public class BackgroundSweepThread implements Runnable {
     private final SweepOutcomeMetrics sweepOutcomeMetrics;
     private final SpecificTableSweeper specificTableSweeper;
     private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-    private final Supplier<Long> sweepPauseMillis;
-    private final Supplier<Boolean> isSweepEnabled;
+    private final LongSupplier sweepPauseMillis;
+    private final BooleanSupplier isSweepEnabled;
     private final Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig;
     private final NextTableToSweepProvider nextTableToSweepProvider;
     private final CountDownLatch shuttingDown;
@@ -64,8 +66,8 @@ public static BackgroundSweepThread createForTests(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper,
             MetricsManager metricsManager) {
@@ -86,8 +88,8 @@ public static BackgroundSweepThread createForTests(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper,
             SweepOutcomeMetrics sweepOutcomeMetrics,
@@ -190,7 +192,7 @@ private Duration getSleepDuration(Optional<SweepOutcome> maybeOutcome) {
         return maybeOutcome
                 .flatMap(outcome -> {
                     if (outcome == SweepOutcome.SUCCESS) {
-                        return Optional.of(Duration.ofMillis(sweepPauseMillis.get()));
+                        return Optional.of(Duration.ofMillis(sweepPauseMillis.getAsLong()));
                     } else if (outcome == SweepOutcome.NOTHING_TO_SWEEP) {
                         return Optional.of(getBackoffTimeWhenNothingToSweep());
                     } else {
@@ -202,7 +204,7 @@ private Duration getSleepDuration(Optional<SweepOutcome> maybeOutcome) {
 
     @VisibleForTesting
     Optional<SweepOutcome> checkConfigAndRunSweep(SingleLockService locks) throws InterruptedException {
-        if (isSweepEnabled.get()) {
+        if (isSweepEnabled.getAsBoolean()) {
             return Optional.of(grabLocksAndRun(locks));
         }
 
@@ -233,7 +235,7 @@ private SweepOutcome grabLocksAndRun(SingleLockService locks) throws Interrupted
     }
 
     private Duration getBackoffTimeWhenSweepHasNotRun() {
-        return Duration.ofMillis(sweepPauseMillis.get()).plusSeconds(1).multipliedBy(20); // 2 minutes by default
+        return Duration.ofMillis(sweepPauseMillis.getAsLong()).plusSeconds(1).multipliedBy(20); // 2 minutes by default
     }
 
     private Duration getBackoffTimeWhenNothingToSweep() {u}(j_ (44bc31882603500ba427d3970ff3730e2b7b3a21j Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/BackgroundSweeperImpl.javaj modifiedj K
j K
j Kj https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X  @@ -27,6 +27,9 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
+import java.util.function.BooleanSupplier;
+import java.util.function.IntSupplier;
+import java.util.function.LongSupplier;
 import java.util.function.Supplier;
 
 public final class BackgroundSweeperImpl implements BackgroundSweeper, AutoCloseable {
@@ -35,16 +38,16 @@ public final class BackgroundSweeperImpl implements BackgroundSweeper, AutoClose
     private static final long MAX_DAEMON_CLEAN_SHUTDOWN_TIME_MILLIS = 10_000;
 
     // Thread management
-    private final Supplier<Integer> sweepThreads;
+    private final IntSupplier sweepThreads;
     private Set<Thread> daemons;
     private final CountDownLatch shuttingDown = new CountDownLatch(1);
 
     // Shared between threads
     private final LockService lockService;
     private final NextTableToSweepProvider nextTableToSweepProvider;
     private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-    private final Supplier<Boolean> isSweepEnabled;
-    private final Supplier<Long> sweepPauseMillis;
+    private final BooleanSupplier isSweepEnabled;
+    private final LongSupplier sweepPauseMillis;
     private final Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig;
     private final SpecificTableSweeper specificTableSweeper;
     private final SweepOutcomeMetrics sweepOutcomeMetrics;
@@ -54,9 +57,9 @@ private BackgroundSweeperImpl(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Integer> sweepThreads,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            IntSupplier sweepThreads,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper) {
         this.sweepOutcomeMetrics = SweepOutcomeMetrics.registerLegacy(metricsManager);
@@ -73,9 +76,9 @@ private BackgroundSweeperImpl(
     public static BackgroundSweeperImpl create(
             MetricsManager metricsManager,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Integer> sweepThreads,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            IntSupplier sweepThreads,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper) {
         NextTableToSweepProvider nextTableToSweepProvider = NextTableToSweepProvider.create(
@@ -98,7 +101,7 @@ public static BackgroundSweeperImpl create(
     @Override
     public synchronized void runInBackground() {
         Preconditions.checkState(daemons == null);
-        int numThreads = sweepThreads.get();
+        int numThreads = sweepThreads.getAsInt();
         daemons = Sets.newHashSetWithExpectedSize(numThreads);
 
         for (int idx = 1; idx <= numThreads; idx++) {u}(j_ (02fd2f3ca2aca4164d40955a1e90f300421e02dcj Patlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweeperService.javaj removedj K j Kbj Kbj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperService.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperService.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X-  @@ -1,98 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import com.palantir.logsafe.Safe;
-import java.util.Optional;
-import javax.ws.rs.Consumes;
-import javax.ws.rs.POST;
-import javax.ws.rs.Path;
-import javax.ws.rs.Produces;
-import javax.ws.rs.QueryParam;
-import javax.ws.rs.core.MediaType;
-
-/**
- * Provides endpoints for sweeping a specific table.
- */
-@Path("/sweep")
-@Produces(MediaType.APPLICATION_JSON)
-@Consumes(MediaType.APPLICATION_JSON)
-public interface SweeperService {
-
-    default SweepTableResponse sweepTableFully(String tableName) {
-        return sweepTable(
-                tableName, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
-    }
-
-    default SweepTableResponse sweepTableFrom(String tableName, String startRow) {
-        return sweepTable(
-                tableName,
-                Optional.of(startRow),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-    }
-
-    /**
-     * Sweeps a particular table.
-     *
-     * @param tableName the table to sweep, in the format namespace.table_name (e.g. myapp.users)
-     * @param startRow (Optional) the row to start from, encoded as a hex string (e.g. 12345abcde)
-     * @param fullSweep (Optional; default true) whether to sweep the full table; if false just runs one batch
-     * @param maxCellTsPairsToExamine (Optional) see {@link SweepBatchConfig#maxCellTsPairsToExamine()}
-     * @param candidateBatchSize (Optional) see {@link SweepBatchConfig#candidateBatchSize()}
-     * @param deleteBatchSize (Optional) see {@link SweepBatchConfig#deleteBatchSize()}
-     */
-    @POST
-    @Path("sweep-table")
-    SweepTableResponse sweepTable(
-            @QueryParam("tablename") String tableName,
-            @QueryParam("startRow") Optional<String> startRow,
-            @Safe @QueryParam("fullSweep") Optional<Boolean> fullSweep,
-            @Safe @QueryParam("maxCellTsPairsToExamine") Optional<Integer> maxCellTsPairsToExamine,
-            @Safe @QueryParam("candidateBatchSize") Optional<Integer> candidateBatchSize,
-            @Safe @QueryParam("deleteBatchSize") Optional<Integer> deleteBatchSize);
-
-    /**
-     * Sweeps a table, but intentionally probabilistically skips a fraction of eligible entries to prevent issues that
-     * might arise from having too many consecutive deletes in the underlying KVS. This is expected to be safe to
-     * invoke at least twice without cleanup at the KVS level, but generally the expected usage is to run once, and
-     * then invoke {@link #sweepTable(String, Optional, Optional, Optional, Optional, Optional)} to clean any
-     * skipped values once KVS cleanup, such as compactions, is done.
-     *
-     * Implementation must respect the usual sweep guarantee: no (possibly in-flight) transaction may as a result of
-     * this operation read a version (or lack of one) of a cell different than it would have read if this operation had
-     * not run, and still succeed. In particular, this means that if any version of a cell is retained, then also the
-     * latest version prior to the sweep timestamp of the same cell must not be removed (even if it is a delete).
-     *
-     * @param tableName the table to sweep, in the format namespace.table_name (e.g. myapp.users)
-     * @param startRow (Optional) the row to start from, encoded as a hex string (e.g. 12345abcde)
-     * @param fullSweep (Optional; default true) whether to sweep the full table; if false just runs one batch
-     * @param maxCellTsPairsToExamine (Optional) see {@link SweepBatchConfig#maxCellTsPairsToExamine()}
-     * @param candidateBatchSize (Optional) see {@link SweepBatchConfig#candidateBatchSize()}
-     * @param deleteBatchSize (Optional) see {@link SweepBatchConfig#deleteBatchSize()}
-     */
-    @POST
-    @Path("sweep-previously-conservative-now-thorough-table")
-    SweepTableResponse sweepPreviouslyConservativeNowThoroughTable(
-            @QueryParam("tablename") String tableName,
-            @QueryParam("startRow") Optional<String> startRow,
-            @Safe @QueryParam("fullSweep") Optional<Boolean> fullSweep,
-            @Safe @QueryParam("maxCellTsPairsToExamine") Optional<Integer> maxCellTsPairsToExamine,
-            @Safe @QueryParam("candidateBatchSize") Optional<Integer> candidateBatchSize,
-            @Safe @QueryParam("deleteBatchSize") Optional<Integer> deleteBatchSize);
-}u}(j_ (a043b1f465845d038463867d0cef3a602201da50j Tatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweeperServiceImpl.javaj removedj K j Kj Kj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImpl.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImpl.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X.  @@ -1,169 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.SweepResults;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
-import com.palantir.atlasdb.logging.LoggingArgs;
-import com.palantir.logsafe.Preconditions;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.UnsafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.Optional;
-
-public final class SweeperServiceImpl implements SweeperService {
-    private static final SafeLogger log = SafeLoggerFactory.get(SweeperServiceImpl.class);
-
-    private final SpecificTableSweeper specificTableSweeper;
-    private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-
-    public SweeperServiceImpl(
-            SpecificTableSweeper specificTableSweeper, AdjustableSweepBatchConfigSource sweepBatchConfigSource) {
-        this.specificTableSweeper = specificTableSweeper;
-        this.sweepBatchConfigSource = sweepBatchConfigSource;
-    }
-
-    @Override
-    public SweepTableResponse sweepTable(
-            String tableName,
-            Optional<String> startRow,
-            Optional<Boolean> fullSweep,
-            Optional<Integer> maxCellTsPairsToExamine,
-            Optional<Integer> candidateBatchSize,
-            Optional<Integer> deleteBatchSize) {
-        TableReference tableRef = getTableRef(tableName);
-        checkTableExists(tableName, tableRef);
-
-        byte[] decodedStartRow = startRow.map(PtBytes::decodeHexString).orElse(PtBytes.EMPTY_BYTE_ARRAY);
-        SweepBatchConfig config =
-                buildConfigWithOverrides(maxCellTsPairsToExamine, candidateBatchSize, deleteBatchSize);
-
-        return SweepTableResponse.from(
-                runSweep(fullSweep, tableRef, decodedStartRow, config, SweepTaskRunner.RunType.FULL));
-    }
-
-    @Override
-    public SweepTableResponse sweepPreviouslyConservativeNowThoroughTable(
-            String tableName,
-            Optional<String> startRow,
-            Optional<Boolean> fullSweep,
-            Optional<Integer> maxCellTsPairsToExamine,
-            Optional<Integer> candidateBatchSize,
-            Optional<Integer> deleteBatchSize) {
-        TableReference tableRef = getTableRef(tableName);
-        checkTableExists(tableName, tableRef);
-
-        byte[] decodedStartRow = startRow.map(PtBytes::decodeHexString).orElse(PtBytes.EMPTY_BYTE_ARRAY);
-        SweepBatchConfig config =
-                buildConfigWithOverrides(maxCellTsPairsToExamine, candidateBatchSize, deleteBatchSize);
-
-        return SweepTableResponse.from(runSweep(
-                fullSweep, tableRef, decodedStartRow, config, SweepTaskRunner.RunType.WAS_CONSERVATIVE_NOW_THOROUGH));
-    }
-
-    private SweepResults runSweep(
-            Optional<Boolean> fullSweep,
-            TableReference tableRef,
-            byte[] decodedStartRow,
-            SweepBatchConfig config,
-            SweepTaskRunner.RunType runType) {
-        if (!fullSweep.isPresent()) {
-            log.warn("fullSweep parameter was not specified, defaulting to true");
-        }
-
-        if (fullSweep.orElse(true)) {
-            log.info(
-                    "Running sweep of full table {}, "
-                            + "with maxCellTsPairsToExamine: {}, candidateBatchSize: {}, deleteBatchSize: {}, "
-                            + "starting from row {}",
-                    LoggingArgs.tableRef(tableRef),
-                    SafeArg.of("maxCellTsPairsToExamine", config.maxCellTsPairsToExamine()),
-                    SafeArg.of("candidateBatchSize", config.candidateBatchSize()),
-                    SafeArg.of("deleteBatchSize", config.deleteBatchSize()),
-                    UnsafeArg.of("decodedStartRow", decodedStartRow));
-            return runFullSweepWithoutSavingResults(tableRef, decodedStartRow, config, runType);
-        } else {
-            log.info(
-                    "Running sweep of a single batch on table {}, "
-                            + "with maxCellTsPairsToExamine: {}, candidateBatchSize: {}, deleteBatchSize: {}, "
-                            + "starting from row {}",
-                    LoggingArgs.tableRef(tableRef),
-                    SafeArg.of("maxCellTsPairsToExamine", config.maxCellTsPairsToExamine()),
-                    SafeArg.of("candidateBatchSize", config.candidateBatchSize()),
-                    SafeArg.of("deleteBatchSize", config.deleteBatchSize()),
-                    UnsafeArg.of("decodedStartRow", decodedStartRow));
-            return runOneBatchWithoutSavingResults(tableRef, decodedStartRow, config, runType);
-        }
-    }
-
-    private SweepBatchConfig buildConfigWithOverrides(
-            Optional<Integer> maxCellTsPairsToExamine,
-            Optional<Integer> candidateBatchSize,
-            Optional<Integer> deleteBatchSize) {
-        ImmutableSweepBatchConfig.Builder batchConfigBuilder =
-                ImmutableSweepBatchConfig.builder().from(sweepBatchConfigSource.getAdjustedSweepConfig());
-
-        maxCellTsPairsToExamine.ifPresent(batchConfigBuilder::maxCellTsPairsToExamine);
-        candidateBatchSize.ifPresent(batchConfigBuilder::candidateBatchSize);
-        deleteBatchSize.ifPresent(batchConfigBuilder::deleteBatchSize);
-
-        return batchConfigBuilder.build();
-    }
-
-    private TableReference getTableRef(String tableName) {
-        Preconditions.checkArgument(
-                TableReference.isFullyQualifiedName(tableName),
-                "Table name is not fully qualified",
-                LoggingArgs.safeInternalTableName(tableName));
-        return TableReference.createFromFullyQualifiedName(tableName);
-    }
-
-    private void checkTableExists(String tableName, TableReference tableRef) {
-        Preconditions.checkArgument(
-                specificTableSweeper.getKvs().getAllTableNames().contains(tableRef),
-                "Table requested to sweep does not exist",
-                LoggingArgs.safeInternalTableName(tableName));
-    }
-
-    private SweepResults runFullSweepWithoutSavingResults(
-            TableReference tableRef,
-            byte[] startRow,
-            SweepBatchConfig sweepBatchConfig,
-            SweepTaskRunner.RunType runType) {
-        SweepResults cumulativeResults = SweepResults.createEmptySweepResult(Optional.of(startRow));
-
-        while (cumulativeResults.getNextStartRow().isPresent()) {
-            SweepResults results = runOneBatchWithoutSavingResults(
-                    tableRef, cumulativeResults.getNextStartRow().get(), sweepBatchConfig, runType);
-
-            specificTableSweeper.updateTimeMetricsOneIteration(
-                    results.getTimeInMillis(), results.getTimeElapsedSinceStartedSweeping());
-            cumulativeResults = cumulativeResults.accumulateWith(results);
-        }
-
-        return cumulativeResults;
-    }
-
-    private SweepResults runOneBatchWithoutSavingResults(
-            TableReference tableRef,
-            byte[] startRow,
-            SweepBatchConfig sweepBatchConfig,
-            SweepTaskRunner.RunType runType) {
-        return specificTableSweeper.runOneIteration(tableRef, startRow, sweepBatchConfig, runType);
-    }
-}u}(j_ (dccc318b332ffaa971355af06b94dc51f14199e0j Xatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/SweeperServiceImplTest.javaj removedj K j Kj Kj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplTest.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X`!  @@ -1,205 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.never;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoMoreInteractions;
-import static org.mockito.Mockito.when;
-
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.io.BaseEncoding;
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.SweepResults;
-import com.palantir.atlasdb.util.DropwizardClientRule;
-import com.palantir.atlasdb.util.TestJaxRsClientFactory;
-import com.palantir.conjure.java.api.errors.RemoteException;
-import com.palantir.conjure.java.server.jersey.ConjureJerseyFeature;
-import java.util.List;
-import java.util.Optional;
-import javax.ws.rs.core.Response;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Rule;
-import org.junit.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-
-public class SweeperServiceImplTest extends SweeperTestSetup {
-
-    private static final String VALID_START_ROW = "0102030A";
-    private static final String LOWERCASE_BUT_VALID_START_ROW = "abadcafe";
-    private static final String MIXED_CASE_START_ROW = "AaAaAaAaAa1111";
-    private static final String INVALID_START_ROW = "xyz";
-    SweeperService sweeperService;
-
-    private static final SweepResults RESULTS_NO_MORE_TO_SWEEP = SweepResults.createEmptySweepResultWithNoMoreToSweep();
-    private static final SweepResults RESULTS_MORE_TO_SWEEP = SweepResults.createEmptySweepResultWithMoreToSweep();
-
-    @Rule
-    public DropwizardClientRule dropwizardClientRule = new DropwizardClientRule(
-            new SweeperServiceImpl(getSpecificTableSweeperService(), sweepBatchConfigSource),
-            ConjureJerseyFeature.INSTANCE);
-
-    @Override
-    @Before
-    public void setup() {
-        super.setup();
-
-        sweeperService = TestJaxRsClientFactory.createJaxRsClientForTest(
-                SweeperService.class,
-                SweeperServiceImplTest.class,
-                dropwizardClientRule.baseUri().toString());
-
-        setupTaskRunner(RESULTS_NO_MORE_TO_SWEEP);
-        when(kvs.getAllTableNames()).thenReturn(ImmutableSet.of(TABLE_REF));
-    }
-
-    @After
-    public void after() {
-        verifyNoSweepResultsSaved();
-    }
-
-    @Test
-    public void sweepingNonFullyTableShouldNotBeSuccessful() {
-        assertThatExceptionOfType(RemoteException.class)
-                .isThrownBy(() -> sweeperService.sweepTableFully("non_fully_qualified_name"))
-                .matches(ex -> ex.getStatus() == Response.Status.BAD_REQUEST.getStatusCode());
-    }
-
-    @Test
-    public void sweepingNonExistingTableShouldNotBeSuccessful() {
-        assertThatExceptionOfType(RemoteException.class)
-                .isThrownBy(() -> sweeperService.sweepTableFully("ns.non_existing_table"))
-                .matches(ex -> ex.getStatus() == Response.Status.BAD_REQUEST.getStatusCode());
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithValidStartRowShouldBeSuccessful() {
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), VALID_START_ROW);
-    }
-
-    @Test
-    public void sweepTableFromStartRowShouldAcceptLowercaseBase16Encodings() {
-        when(kvs.getAllTableNames()).thenReturn(ImmutableSet.of(TABLE_REF));
-
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), LOWERCASE_BUT_VALID_START_ROW);
-    }
-
-    @Test
-    public void sweepTableFromStartRowShouldAcceptMixedCaseBase16Encodings() {
-        when(kvs.getAllTableNames()).thenReturn(ImmutableSet.of(TABLE_REF));
-
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), MIXED_CASE_START_ROW);
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithInValidStartRowShouldThrow() {
-        assertThatExceptionOfType(RemoteException.class)
-                .isThrownBy(() -> sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), INVALID_START_ROW))
-                .matches(ex -> ex.getStatus() == Response.Status.BAD_REQUEST.getStatusCode());
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithBatchConfigWithNullStartRowShouldBeSuccessful() {
-        sweeperService.sweepTable(
-                TABLE_REF.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.of(1000),
-                Optional.of(1000),
-                Optional.of(500));
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithBatchConfigWithExactlyOneNonNullBatchConfigShouldBeSuccessful() {
-        sweeperService.sweepTable(
-                TABLE_REF.getQualifiedName(),
-                Optional.of(encodeStartRow(new byte[] {1, 2, 3})),
-                Optional.empty(),
-                Optional.of(10),
-                Optional.empty(),
-                Optional.empty());
-    }
-
-    @Test
-    public void testWriteProgressAndPriorityNotUpdatedAfterSweepRunsSuccessfully_butMetricsAre() {
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), encodeStartRow(new byte[] {1, 2, 3}));
-        ArgumentCaptor<Long> sweepTime = ArgumentCaptor.forClass(Long.class);
-        ArgumentCaptor<Long> totalTimeElapsed = ArgumentCaptor.forClass(Long.class);
-
-        Mockito.verify(sweepMetrics, times(1)).updateSweepTime(sweepTime.capture(), totalTimeElapsed.capture());
-        verifyExpectedArgument(sweepTime.getValue(), totalTimeElapsed.getValue());
-    }
-
-    @Test
-    public void sweepsEntireTableByDefault() {
-        List<byte[]> startRows = ImmutableList.of(PtBytes.EMPTY_BYTE_ARRAY, new byte[] {0x10}, new byte[] {0x50});
-
-        for (int i = 0; i < startRows.size(); i++) {
-            byte[] currentRow = startRows.get(i);
-            Optional<byte[]> nextRow =
-                    (i + 1) == startRows.size() ? Optional.empty() : Optional.of(startRows.get(i + 1));
-
-            SweepResults results = SweepResults.createEmptySweepResult(nextRow);
-            when(sweepTaskRunner.run(any(), any(), eq(currentRow), any())).thenReturn(results);
-        }
-
-        sweeperService.sweepTableFully(TABLE_REF.getQualifiedName());
-
-        startRows.forEach(row -> verify(sweepTaskRunner).run(any(), any(), eq(row), any()));
-        verifyNoMoreInteractions(sweepTaskRunner);
-    }
-
-    @Test
-    public void runsOneIterationIfRequested() {
-        setupTaskRunner(RESULTS_MORE_TO_SWEEP);
-
-        sweeperService.sweepTable(
-                TABLE_REF.getQualifiedName(),
-                Optional.empty(),
-                Optional.of(false),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        verify(sweepTaskRunner, times(1)).run(any(), any(), any(), any());
-        verifyNoMoreInteractions(sweepTaskRunner);
-    }
-
-    private void verifyExpectedArgument(long sweepTime, long totalTimeElapsed) {
-        assertThat(RESULTS_NO_MORE_TO_SWEEP.getTimeInMillis()).isEqualTo(sweepTime);
-        assertThat(totalTimeElapsed)
-                .isBetween(
-                        RESULTS_NO_MORE_TO_SWEEP.getTimeElapsedSinceStartedSweeping() - 1000L,
-                        RESULTS_NO_MORE_TO_SWEEP.getTimeElapsedSinceStartedSweeping());
-    }
-
-    private String encodeStartRow(byte[] rowBytes) {
-        return BaseEncoding.base16().encode(rowBytes);
-    }
-
-    private void verifyNoSweepResultsSaved() {
-        verify(progressStore, never()).saveProgress(any());
-        verify(priorityStore, never()).update(any(), any(), any());
-    }
-}u}(j_ (d030dbed17299b5450443775cf43034372a1ca11j datlasdb-tests-shared/src/main/java/com/palantir/atlasdb/sweep/SweeperServiceImplIntegrationTest.javaj removedj K j Kj Kj https://github.com/palantir/atlasdb/blob/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplIntegrationTest.javaj https://github.com/palantir/atlasdb/raw/bf83eb0aa07b9b02a03ccc4a20e8589986e0c29d/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplIntegrationTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplIntegrationTest.java?ref=bf83eb0aa07b9b02a03ccc4a20e8589986e0c29dj X&  @@ -1,235 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.Cell;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.Value;
-import com.palantir.atlasdb.keyvalue.impl.InMemoryKeyValueService;
-import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
-import com.palantir.common.streams.KeyedStream;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.concurrent.ThreadLocalRandom;
-import java.util.stream.Collectors;
-import java.util.stream.IntStream;
-import org.junit.Before;
-import org.junit.Test;
-
-public class SweeperServiceImplIntegrationTest extends AbstractBackgroundSweeperIntegrationTest {
-    private SweeperService sweeperService;
-
-    @Before
-    @Override
-    public void setup() {
-        super.setup();
-        sweeperService = new SweeperServiceImpl(specificTableSweeper, sweepBatchConfigSource);
-    }
-
-    @Override
-    @Test
-    public void smokeTest() {
-        createTable(TABLE_1, SweepStrategy.CONSERVATIVE);
-        putManyCells(TABLE_1, 100, 110);
-        putManyCells(TABLE_1, 103, 113);
-        putManyCells(TABLE_1, 105, 115);
-        sweeperService.sweepTableFully(TABLE_1.getQualifiedName());
-        verifyTableSwept(TABLE_1, 75, true);
-    }
-
-    @Test
-    public void previouslyConservativeErasesMostExistingSentinelsInThoroughTable() {
-        skipCellVersion.setPeriod(Integer.MAX_VALUE);
-        createTable(TABLE_1, SweepStrategy.THOROUGH);
-
-        Map<Cell, byte[]> sentinelWrites = IntStream.range(0, 100)
-                .mapToObj(PtBytes::toBytes)
-                .map(bytes -> Cell.create(bytes, bytes))
-                .collect(Collectors.toMap(cell -> cell, _ignore -> PtBytes.EMPTY_BYTE_ARRAY));
-        kvs.put(TABLE_1, sentinelWrites, Value.INVALID_VALUE_TIMESTAMP);
-        Map<Cell, Long> readMap = KeyedStream.stream(sentinelWrites)
-                .map(_ignore -> Long.MAX_VALUE)
-                .collectToMap();
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(100);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(1);
-    }
-
-    @Test
-    public void previouslyConservativeRunsFullSweepIfTableIsStillConservativelySwept() {
-        createTable(TABLE_1, SweepStrategy.CONSERVATIVE);
-
-        Map<Cell, byte[]> writes = KeyedStream.of(IntStream.range(0, 100).boxed())
-                .mapKeys(PtBytes::toBytes)
-                .mapKeys(bytes -> Cell.create(bytes, bytes))
-                .map(PtBytes::toBytes)
-                .collectToMap();
-        kvs.put(TABLE_1, writes, 100L);
-        txService.putUnlessExists(100L, 101L);
-        kvs.put(TABLE_1, writes, 103L);
-        txService.putUnlessExists(103L, 104L);
-        Map<Cell, Long> readMap =
-                KeyedStream.stream(writes).map(_ignore -> 102L).collectToMap();
-
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(100);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        Map<Cell, Value> reads = kvs.get(TABLE_1, readMap);
-        // lower ts entries are swept, but we have sentinels
-        assertThat(reads.values().stream().map(Value::getTimestamp).collect(Collectors.toSet()))
-                .containsExactly(Value.INVALID_VALUE_TIMESTAMP);
-        assertThat(reads).hasSize(100);
-        Map<Cell, Long> readsAtMaxTs =
-                KeyedStream.stream(readMap).map(_ignore -> Long.MAX_VALUE).collectToMap();
-        Map<Cell, Value> maxTsReads = kvs.get(TABLE_1, readsAtMaxTs);
-        assertThat(maxTsReads.values().stream().map(Value::getTimestamp).collect(Collectors.toSet()))
-                .containsExactly(103L);
-        assertThat(maxTsReads).hasSize(100);
-    }
-
-    /**
-     * To help understand the test below, refer to the tables.
-     * Before sweep
-     * +----------+--------+-----------+
-     * | START_TS | VALUES | DELETIONS |
-     * +----------+--------+-----------+
-     * |      100 |    500 |       500 |
-     * |      103 |    500 |       500 |
-     * +----------+--------+-----------+
-     *
-     * After sweep
-     * +----------+--------+-----------+
-     * | START_TS | VALUES | DELETIONS |
-     * +----------+--------+-----------+
-     * |      100 |      6 |         5 |
-     * |      103 |    500 |     5 + 5 |
-     * +----------+--------+-----------+
-     */
-    @Test
-    public void previouslyConservativeRespectsSkipPeriodWhenSweepingNormally() {
-        skipCellVersion.setPeriod(9);
-        createTable(TABLE_1, SweepStrategy.THOROUGH);
-
-        Map<Cell, byte[]> writes = KeyedStream.of(IntStream.range(0, 1000).boxed())
-                .mapKeys(PtBytes::toBytes)
-                .mapKeys(bytes -> Cell.create(bytes, bytes))
-                .map(count -> count < 500 ? PtBytes.toBytes(count) : PtBytes.EMPTY_BYTE_ARRAY)
-                .collectToMap();
-        kvs.put(TABLE_1, writes, 100L);
-        txService.putUnlessExists(100L, 101L);
-        kvs.put(TABLE_1, writes, 103L);
-        txService.putUnlessExists(103L, 104L);
-
-        Map<Cell, Long> readMap =
-                KeyedStream.stream(writes).map(_ignore -> 102L).collectToMap();
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(1000);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        assertThat(kvs.get(TABLE_1, readMap))
-                .as("deletes all but 11 entries at lower timestamp ~ 1%")
-                .hasSize(11);
-        Map<Cell, Long> readsAtMaxTs =
-                KeyedStream.stream(readMap).map(_ignore -> Long.MAX_VALUE).collectToMap();
-        Map<Cell, Value> latestVisibleVersions = kvs.get(TABLE_1, readsAtMaxTs);
-        assertThat(latestVisibleVersions.values().stream()
-                        .map(Value::getTimestamp)
-                        .noneMatch(timestamp -> timestamp == 100L))
-                .as("none of the entries at lower ts are naked")
-                .isTrue();
-        assertThat(latestVisibleVersions)
-                .as("500 non-deletes, 5 deletes skipped normally, and 5 skipped to prevent revealing at lower ts")
-                .hasSize(510);
-    }
-
-    @Test
-    public void sweepPreviouslyConservativeNowThoroughTableFuzzTest() {
-        skipCellVersion.makeNonDeterministic();
-        createTable(TABLE_1, SweepStrategy.THOROUGH);
-
-        Set<Cell> cells = IntStream.range(0, 10_000)
-                .boxed()
-                .map(PtBytes::toBytes)
-                .map(bytes -> Cell.create(bytes, bytes))
-                .collect(Collectors.toSet());
-
-        for (int i = 0; i < 10; i++) {
-            Map<Cell, byte[]> writes = KeyedStream.of(cells)
-                    .map(cell ->
-                            ThreadLocalRandom.current().nextBoolean() ? cell.getRowName() : PtBytes.EMPTY_BYTE_ARRAY)
-                    .collectToMap();
-            kvs.put(TABLE_1, writes, 100L + 2L * i);
-            txService.putUnlessExists(100L + 2L * i, 101L + 2L * i);
-        }
-
-        Map<Cell, Long> readMap = KeyedStream.of(cells).map(_ignore -> 102L).collectToMap();
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(10_000);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        assertThat(kvs.get(TABLE_1, readMap).size())
-                .as("expected number of remaining entries is 1%, ~100")
-                .isBetween(50, 200);
-
-        Map<Cell, Long> readsAtMaxTs =
-                KeyedStream.of(cells).map(_ignore -> Long.MAX_VALUE).collectToMap();
-        Map<Cell, Value> latestVisibleVersions = kvs.get(TABLE_1, readsAtMaxTs);
-        assertThat(latestVisibleVersions.values().stream()
-                        .map(Value::getTimestamp)
-                        .allMatch(ts -> ts == 100 + 2 * 9))
-                .as("every visible cell still has the version at greatest timestamp")
-                .isTrue();
-        assertThat(latestVisibleVersions.size())
-                .as("expected number of cells that are fully deleted is ~45.22%, ~5500 remaining")
-                .isBetween(4500, 6500);
-    }
-
-    @Override
-    protected KeyValueService getKeyValueService() {
-        return new InMemoryKeyValueService(true);
-    }
-}u}(j_ (b477ac45a67d3461a2afb8a529c94e3055b5291cj \atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/factory/TransactionManagersTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X  @@ -165,7 +165,7 @@ public class TransactionManagersTest {
     private AtlasDbConfig config;
     private AtlasDbRuntimeConfig mockAtlasDbRuntimeConfig;
 
-    private Consumer<Object> environment;
+    private Consumer<Object> registrar;
     private TimestampStoreInvalidator invalidator;
     private Consumer<Runnable> originalAsyncMethod;
 
@@ -208,7 +208,7 @@ public void setUp() {
         when(mockAtlasDbRuntimeConfig.timelockRuntime()).thenReturn(Optional.empty());
         when(mockAtlasDbRuntimeConfig.remotingClient()).thenReturn(RemotingClientConfigs.DEFAULT);
 
-        environment = mock(Consumer.class);
+        registrar = mock(Consumer.class);
 
         invalidator = mock(TimestampStoreInvalidator.class);
         when(invalidator.backupAndInvalidate()).thenReturn(EMBEDDED_BOUND);
@@ -236,7 +236,7 @@ public void cannotProvideRuntimeConfigTwice() {
                         .userAgent(USER_AGENT)
                         .globalMetricsRegistry(new MetricRegistry())
                         .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                        .registrar(environment)
+                        .registrar(registrar)
                         .runtimeConfig(Refreshable.only(Optional.empty()))
                         .runtimeConfigSupplier(Optional::empty)
                         .build())
@@ -351,7 +351,7 @@ public void setsGlobalDefaultLockTimeout() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build()
                 .serializable();
 
@@ -412,7 +412,7 @@ public void runsClosingCallbackOnShutdown() throws Exception {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build()
                 .serializable();
         manager.registerClosingCallback(callback);
@@ -432,7 +432,7 @@ public void keyValueServiceMetricsDoNotContainUserAgent() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build()
                 .serializable();
         assertThat(metrics.getNames().stream().anyMatch(metricName -> metricName.contains(USER_AGENT_NAME)))
@@ -453,7 +453,7 @@ public void overriddenServiceNameIsReturned() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .serviceIdentifierOverride("overriden")
                 .build();
 
@@ -473,7 +473,7 @@ public void serviceNameIsFetchedFromAtlasConfig() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build();
         assertThat(transactionManagers.serviceName()).isEqualTo("namespace");
     }
@@ -493,7 +493,7 @@ public void serviceNameIsFetchedFromKvsConfigWhenItIsNotPresentInAtlasConfig() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build();
 
         assertThat(transactionManagers.serviceName()).isEqualTo("namespace");
@@ -510,7 +510,7 @@ public void serviceNameFallsBackToDefaultWhenNamespaceIsNotPresent() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build();
 
         assertThat(transactionManagers.serviceName()).isEqualTo("UNKNOWN");
@@ -520,7 +520,7 @@ public void serviceNameFallsBackToDefaultWhenNamespaceIsNotPresent() {
     public void interruptingLocalLeaderElectionTerminates() throws IOException {
         Leaders.LocalPaxosServices localPaxosServices = Leaders.createAndRegisterLocalServices(
                 metricsManager,
-                environment,
+                registrar,
                 ImmutableLeaderConfig.builder()
                         .localServer("https://example")
                         .quorumSize(1)
@@ -593,7 +593,7 @@ private TransactionManagers withLockImmutableTsOnReadOnlyTransaction(boolean opt
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .lockImmutableTsOnReadOnlyTransactions(option)
                 .build();
     }
@@ -699,7 +699,7 @@ private KeyValueService initializeKeyValueServiceWithSweepSettings(boolean enabl
                 .userAgent(UserAgent.of(UserAgent.Agent.of("test", "0.0.0")))
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema())
                 .runtimeConfigSupplier(() -> Optional.of(atlasDbRuntimeConfig))
                 .build()
@@ -762,7 +762,7 @@ private void setUpForLocalServices() throws IOException {
                             .withBody(("\"" + localPingableLeader.getUUID() + "\"").getBytes(StandardCharsets.UTF_8))));
                     return null;
                 })
-                .when(environment)
+                .when(registrar)
                 .accept(isA(PingableLeader.class));
         setUpLeaderBlockInConfig();
     }
@@ -807,7 +807,7 @@ private LockAndTimestampServices getLockAndTimestampServices() {
                         metricsManager,
                         config,
                         Refreshable.only(mockAtlasDbRuntimeConfig),
-                        environment,
+                        registrar,
                         LockServiceImpl::create,
                         () -> ts,
                         invalidator,u}(j_ (0af0f463fb79115401361fa63b2a86fc5fbbe84fj jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/KeyedTransactionTask.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj XD  @@ -30,4 +30,5 @@
  * an exception.
  */
 @FunctionalInterface
-public interface KeyedTransactionTask extends BiFunction<TransactionStore, Integer, Optional<WitnessedTransaction>> {}
+public interface KeyedTransactionTask<T extends TransactionStore>
+        extends BiFunction<T, Integer, Optional<WitnessedTransaction>> {}u}(j_ (121a175146bc6a56997ba38d7f713d850fb50e15j       /atlasdb-workload-server-distribution/Dockerfilej modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server-distribution%2FDockerfilej https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server-distribution%2FDockerfilej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2FDockerfile?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X`  @@ -1,10 +1,10 @@
-FROM adoptopenjdk/openjdk11:jre-11.0.9_11.1-alpine
+FROM adoptopenjdk/openjdk11:jdk-11.0.11_9-debian
 MAINTAINER AtlasDB Team
 
 ENV DOCKERIZE_VERSION v0.2.0
 
 # Bash is useful for monitoring; curl is used by our healthchecks.
-RUN apk update && apk add bash curl procps wget \
+RUN apt-get update && apt-get -y install bash curl procps wget \
     && wget --no-check-certificate http://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
     && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
 u}(j_ (b870e40056d44cb7c1e844730a97bc94774a820aj latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X7  @@ -25,7 +25,8 @@
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
-import com.palantir.atlasdb.workload.invariant.DurableWritesMetricInvariantReporter;
+import com.palantir.atlasdb.workload.invariant.DurableWritesInvariantMetricReporter;
+import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
 import com.palantir.atlasdb.workload.runner.AntithesisWorkflowRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
@@ -104,9 +105,11 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 Set.of()),
                         workflowConfig,
                         MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)),
-                List.of(new DurableWritesMetricInvariantReporter(
-                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
-                        DurableWritesMetrics.of(taggedMetricRegistry))));
+                List.of(
+                        new DurableWritesInvariantMetricReporter(
+                                SingleRowTwoCellsWorkflows.class.getSimpleName(),
+                                DurableWritesMetrics.of(taggedMetricRegistry)),
+                        SerializableInvariantLogReporter.INSTANCE));
         log.info("antithesis: terminate");
 
         workflowsRanLatch.countDown();u}(j_ (79aa8cfd57984c9bdea2aaf3249996fe3fa9f4d7j watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporter.javaj renamedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X  @@ -24,15 +24,15 @@
 import java.util.Map;
 import java.util.function.Consumer;
 
-public final class DurableWritesMetricInvariantReporter
+public final class DurableWritesInvariantMetricReporter
         implements InvariantReporter<Map<TableAndWorkloadCell, MismatchedValue>> {
 
-    private static final SafeLogger log = SafeLoggerFactory.get(DurableWritesMetricInvariantReporter.class);
+    private static final SafeLogger log = SafeLoggerFactory.get(DurableWritesInvariantMetricReporter.class);
 
     private final String workflow;
     private final DurableWritesMetrics durableWritesMetrics;
 
-    public DurableWritesMetricInvariantReporter(String workflow, DurableWritesMetrics durableWritesMetrics) {
+    public DurableWritesInvariantMetricReporter(String workflow, DurableWritesMetrics durableWritesMetrics) {
         this.workflow = workflow;
         this.durableWritesMetrics = durableWritesMetrics;
     }previous_filenamewatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporter.javau}(j_ (0f489a908a062dc89f3e2a38f2be28d193d61511j satlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporter.javaj addedj K-j K j K-j https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X>  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.function.Consumer;
+
+public enum SerializableInvariantLogReporter implements InvariantReporter<List<InvalidWitnessedTransaction>> {
+    INSTANCE;
+    private static final SafeLogger log = SafeLoggerFactory.get(SerializableInvariantLogReporter.class);
+
+    @Override
+    public Invariant<List<InvalidWitnessedTransaction>> invariant() {
+        return SerializableInvariant.INSTANCE;
+    }
+
+    @Override
+    public Consumer<List<InvalidWitnessedTransaction>> consumer() {
+        return invalidWitnessedTransactions -> {
+            if (!invalidWitnessedTransactions.isEmpty()) {
+                log.error(
+                        "Detected transactions that violated our serializable isolation invariant {}",
+                        SafeArg.of("invalidWitnessedTransactions", invalidWitnessedTransactions));
+            }
+        };
+    }
+}u}(j_ (c14cafe2cad0f011ce8b5b31617cf86e0d9736faj matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunner.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj Xz  @@ -30,18 +30,17 @@
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 
-public final class ConcurrentTransactionRunner {
-    private final TransactionStore transactionStore;
+public final class ConcurrentTransactionRunner<T extends TransactionStore> {
+    private final T transactionStore;
     private final ListeningExecutorService listeningExecutorService;
 
-    public ConcurrentTransactionRunner(
-            TransactionStore transactionStore, ListeningExecutorService listeningExecutorService) {
+    public ConcurrentTransactionRunner(T transactionStore, ListeningExecutorService listeningExecutorService) {
         this.transactionStore = transactionStore;
         this.listeningExecutorService = listeningExecutorService;
     }
 
     public Future<List<WitnessedTransaction>> runConcurrentTransactionTask(
-            KeyedTransactionTask transactionTask, int taskMultiplicity) {
+            KeyedTransactionTask<T> transactionTask, int taskMultiplicity) {
         Preconditions.checkArgument(
                 taskMultiplicity >= 0,
                 "Tasks must be run a non-negative number of times",u}(j_ (c852afbb5ada25c05d1126818d128fa8dce0b123j aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javaj modifiedj K
j K
j Kj https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X  @@ -28,15 +28,15 @@
 import java.util.concurrent.Future;
 import java.util.stream.Collectors;
 
-public final class DefaultWorkflow implements Workflow {
-    private final ConcurrentTransactionRunner concurrentTransactionRunner;
-    private final KeyedTransactionTask transactionTask;
+public final class DefaultWorkflow<T extends TransactionStore> implements Workflow {
+    private final ConcurrentTransactionRunner<T> concurrentTransactionRunner;
+    private final KeyedTransactionTask<T> transactionTask;
     private final WorkflowConfiguration workflowConfiguration;
     private final ReadOnlyTransactionStore readOnlyTransactionStore;
 
     private DefaultWorkflow(
-            ConcurrentTransactionRunner concurrentTransactionRunner,
-            KeyedTransactionTask transactionTask,
+            ConcurrentTransactionRunner<T> concurrentTransactionRunner,
+            KeyedTransactionTask<T> transactionTask,
             WorkflowConfiguration workflowConfiguration,
             ReadOnlyTransactionStore readOnlyTransactionStore) {
         this.concurrentTransactionRunner = concurrentTransactionRunner;
@@ -45,13 +45,13 @@ private DefaultWorkflow(
         this.readOnlyTransactionStore = readOnlyTransactionStore;
     }
 
-    public static Workflow create(
-            TransactionStore store,
-            KeyedTransactionTask transactionTask,
+    public static <T extends TransactionStore> Workflow create(
+            T store,
+            KeyedTransactionTask<T> transactionTask,
             WorkflowConfiguration configuration,
             ListeningExecutorService executionExecutor) {
-        return new DefaultWorkflow(
-                new ConcurrentTransactionRunner(store, executionExecutor),
+        return new DefaultWorkflow<>(
+                new ConcurrentTransactionRunner<>(store, executionExecutor),
                 transactionTask,
                 configuration,
                 new ReadOnlyTransactionStore(store));u}(j_ (42c9022acb53a72eea92413c05355dd9e46a328aj `atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingGraph.javaj addedj Kyj K j Kyj https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X'  @@ -0,0 +1,121 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.google.common.collect.Iterators;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import one.util.streamex.EntryStream;
+
+public final class RingGraph {
+    private final Map<Integer, Integer> ring;
+
+    private RingGraph(Map<Integer, Integer> ring) {
+        this.ring = ring;
+    }
+
+    public static RingGraph from(Map<Integer, Integer> ring) throws RingValidationException {
+        validateGraphIsRing(ring);
+        return new RingGraph(ring);
+    }
+
+    public static RingGraph fromPartial(Map<Integer, Optional<Integer>> ring) throws RingValidationException {
+        if (isEmpty(ring)) {
+            return RingGraph.generateNewRing(ring.keySet());
+        }
+
+        Preconditions.checkArgument(
+                !anyEmpty(ring),
+                "Graph contains missing entries, thus cannot be made into a ring.",
+                SafeArg.of("ring", ring));
+
+        return from(EntryStream.of(ring).mapValues(Optional::get).toMap());
+    }
+
+    public static RingGraph create(int size) {
+        return generateNewRing(IntStream.range(0, size).boxed().collect(Collectors.toSet()));
+    }
+
+    /**
+     * Checks that the ring is correct by verifying:
+     * (1) There are no missing entries
+     * (2) There are no sub-cycles
+     * (3) The ring is connected
+     *
+     * This is simply done by iterating over the length of the ring, and validating that we visited each node.
+     * To ensure that the ring is connected, we do not track our entry into the ring (i.e. the first node we visit),
+     * as we expect to have it be visited again as the last node.
+     */
+    public static void validateGraphIsRing(Map<Integer, Integer> ring) throws RingValidationException {
+        Integer initialNode = ring.keySet().iterator().next();
+        Set<Integer> remainingNodes = new HashSet<>(ring.keySet());
+        int maxIterations = ring.keySet().size();
+        Integer nextNode = ring.get(initialNode);
+        for (int iterations = 0; iterations < maxIterations; iterations++) {
+            // If we reference a node that does not exist in our ring, it means we are missing data
+            if (!ring.containsKey(nextNode)) {
+                RingValidationException.throwMissingEntries(ring);
+            }
+
+            // If the node already has been visited, it means we're in a cycle within our ring
+            if (!remainingNodes.remove(nextNode)) {
+                RingValidationException.throwEarlyCycle(ring);
+            }
+
+            nextNode = ring.get(nextNode);
+        }
+    }
+
+    public RingGraph generateNewRing() {
+        return generateNewRing(ring.keySet());
+    }
+
+    /**
+     * Returns a valid new ring with the same nodes but randomly generated edges.
+     */
+    private static RingGraph generateNewRing(Set<Integer> nodes) {
+        List<Integer> keys = new ArrayList<>(nodes);
+        Collections.shuffle(keys);
+        Iterator<Integer> valuesIterator = Iterators.cycle(keys);
+        valuesIterator.next();
+        return new RingGraph(
+                keys.stream().collect(Collectors.toMap(Function.identity(), _node -> valuesIterator.next())));
+    }
+
+    public Map<Integer, Integer> asMap() {
+        return ring;
+    }
+
+    private static boolean isEmpty(Map<Integer, Optional<Integer>> ring) {
+        return ring.values().stream().allMatch(Optional::isEmpty);
+    }
+
+    private static boolean anyEmpty(Map<Integer, Optional<Integer>> ring) {
+        return ring.values().stream().anyMatch(Optional::isEmpty);
+    }
+}u}(j_ (109ed2a6c2ef9753e6500d3ea6827a032511da81j natlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingValidationException.javaj addedj K?j K j K?j https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X  @@ -0,0 +1,63 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.palantir.logsafe.Arg;
+import com.palantir.logsafe.Safe;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.SafeLoggable;
+import java.util.List;
+import java.util.Map;
+
+public final class RingValidationException extends IllegalArgumentException implements SafeLoggable {
+
+    private final Map<Integer, Integer> ring;
+    private final Type type;
+
+    private RingValidationException(Map<Integer, Integer> ring, Type type) {
+        this.ring = ring;
+        this.type = type;
+    }
+
+    @Override
+    public @Safe String getLogMessage() {
+        return "Detected an error in the graph when attempting to validate as a ring.";
+    }
+
+    @Override
+    public List<Arg<?>> getArgs() {
+        return List.of(SafeArg.of("ring", ring), SafeArg.of("type", type));
+    }
+
+    public static void throwEarlyCycle(Map<Integer, Integer> ring) throws RingValidationException {
+        throw new RingValidationException(ring, Type.EARLY_CYCLE);
+    }
+
+    public static void throwMissingEntries(Map<Integer, Integer> ring) throws RingValidationException {
+        throw new RingValidationException(ring, Type.MISSING_ENTRIES);
+    }
+
+    enum Type {
+        // Detected a cycle in our ring before visiting all nodes,
+        // indicating the integrity of our ring has been compromised.
+        EARLY_CYCLE,
+
+        // Detected a reference to a node that does not exist,
+        // indicating the integrity of our ring has been compromised.
+        MISSING_ENTRIES;
+    }
+}u}(j_ (f2b29bc6a4a030ffa7d19578ea5ec47a9d861ab5j patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowConfiguration.javaj addedj K2j K j K2j https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X[  @@ -0,0 +1,50 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import com.palantir.atlasdb.workload.workflow.ImmutableSingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.TableConfiguration;
+import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonTypeName(RingWorkflowConfiguration.TYPE)
+public interface RingWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "ring";
+
+    TableConfiguration tableConfiguration();
+
+    default Integer ringSize() {
+        return 3;
+    }
+
+    @Value.Default
+    default double rateLimit() {
+        return 100;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(j_ (7e62e75fc5695d084b1a2d7793eaf1b05fef0bd9j datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflows.javaj addedj Kgj K j Kgj https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj Xh  @@ -0,0 +1,103 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.Map;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+
+/**
+ * Runs a workflow which creates a representation of a ring using key-value pairs.
+ * The ring is validated and shuffled after every iteration. If the ring ever becomes invalid (cycles, missing data),
+ * this indicates that there is a bug in our underlying storage infrastructure, as snapshot isolation has been violated.
+ * Snapshot isolation would be violated here, as it indicates that we did not detect a write-write conflict,
+ * as every write will be of a correct ring.
+ */
+public final class RingWorkflows {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(RingWorkflows.class);
+
+    private static final int COLUMN = 0;
+
+    private RingWorkflows() {
+        // static factory
+    }
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration ringWorkflowConfiguration,
+            ListeningExecutorService executionExecutor,
+            AtomicBoolean skipRunning) {
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
+                ringWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    private static Optional<WitnessedTransaction> run(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration workflowConfiguration,
+            AtomicBoolean skipRunning) {
+        if (skipRunning.get()) {
+            return Optional.empty();
+        }
+
+        workflowConfiguration.transactionRateLimiter().acquire();
+        String table = workflowConfiguration.tableConfiguration().tableName();
+        Integer ringSize = workflowConfiguration.ringSize();
+        return store.readWrite(txn -> {
+            Map<Integer, Optional<Integer>> data = fetchData(table, ringSize, txn);
+            try {
+                RingGraph ringGraph = RingGraph.fromPartial(data);
+                ringGraph
+                        .generateNewRing()
+                        .asMap()
+                        .forEach((rootNode, nextNode) -> txn.write(table, cell(rootNode), nextNode));
+            } catch (IllegalArgumentException e) {
+                if (skipRunning.compareAndSet(false, true)) {
+                    log.error("Detected violation with our ring.", e);
+                }
+            }
+        });
+    }
+
+    private static Map<Integer, Optional<Integer>> fetchData(
+            String table, int ringSize, InteractiveTransaction transaction) {
+        return IntStream.range(0, ringSize)
+                .boxed()
+                .collect(Collectors.toMap(Function.identity(), index -> transaction.read(table, cell(index))));
+    }
+
+    @VisibleForTesting
+    static ImmutableWorkloadCell cell(Integer node) {
+        return ImmutableWorkloadCell.of(node, COLUMN);
+    }
+}u}(j_ (95f6220e03fd5f14e9922f8b70989e0b8dad5a69j {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporterTest.javaj renamedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X  @@ -37,15 +37,15 @@
 import java.util.Set;
 import org.junit.Test;
 
-public final class DurableWritesMetricInvariantReporterTest {
+public final class DurableWritesInvariantMetricReporterTest {
 
     private final TaggedMetricRegistry taggedMetricRegistry = new DefaultTaggedMetricRegistry();
     private final DurableWritesMetrics metrics = DurableWritesMetrics.of(taggedMetricRegistry);
 
     @Test
     public void runIncreasesMetricsIfViolationsFound() {
-        DurableWritesMetricInvariantReporter reporter =
-                new DurableWritesMetricInvariantReporter(WorkloadTestHelpers.WORKFLOW, metrics);
+        DurableWritesInvariantMetricReporter reporter =
+                new DurableWritesInvariantMetricReporter(WorkloadTestHelpers.WORKFLOW, metrics);
         AtlasDbTransactionStoreFactory factory = new AtlasDbTransactionStoreFactory(
                 TransactionManagers.createInMemory(Set.of()), Optional.of("keyspace"));
         TransactionStore store = factory.create(jx {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporterTest.javau}(j_ (61f1a620b29aa305c11b38dca9efc4bfd03fa771j watlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporterTest.javaj addedj K3j K j K3j https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj XC  @@ -0,0 +1,51 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import java.util.List;
+import org.junit.Test;
+
+public class SerializableInvariantLogReporterTest {
+    @Test
+    public void invariantIsSerializable() {
+        assertThat(SerializableInvariantLogReporter.INSTANCE.invariant()).isEqualTo(SerializableInvariant.INSTANCE);
+    }
+
+    @Test
+    public void consumerDoesNotThrowWhenAcceptingViolations() {
+        assertThatCode(() -> SerializableInvariantLogReporter.INSTANCE
+                        .consumer()
+                        .accept(List.of(InvalidWitnessedTransaction.of(
+                                ImmutableWitnessedTransaction.builder()
+                                        .startTimestamp(1)
+                                        .build(),
+                                List.of()))))
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void consumerDoesNotThrowWhenAcceptingNoViolations() {
+        assertThatCode(() ->
+                        SerializableInvariantLogReporter.INSTANCE.consumer().accept(List.of()))
+                .doesNotThrowAnyException();
+    }
+}u}(j_ (9fe533e5541cbe57b1ffd7b58637bec5a246f6e7j qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunnerTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj Xr  @@ -49,11 +49,12 @@
 public class ConcurrentTransactionRunnerTest {
     private static final int DEFAULT_TASK_MULTIPLICITY = 100;
 
-    private final KeyedTransactionTask task = mock(KeyedTransactionTask.class);
+    private final KeyedTransactionTask<TransactionStore> task = mock(KeyedTransactionTask.class);
     private final TransactionStore store = mock(TransactionStore.class);
     private final DeterministicScheduler scheduler = new DeterministicScheduler();
     private final ListeningExecutorService executorService = MoreExecutors.listeningDecorator(scheduler);
-    private final ConcurrentTransactionRunner runner = new ConcurrentTransactionRunner(store, executorService);
+    private final ConcurrentTransactionRunner<TransactionStore> runner =
+            new ConcurrentTransactionRunner<>(store, executorService);
 
     @Before
     public void setupTask() {u}(j_ (64cf1619b17fbb0e21a1c034b30a32619f4a4f18j eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X"  @@ -36,7 +36,7 @@
 public class DefaultWorkflowTest {
     private final TransactionStore store = mock(TransactionStore.class);
 
-    private final KeyedTransactionTask transactionTask = mock(KeyedTransactionTask.class);
+    private final KeyedTransactionTask<TransactionStore> transactionTask = mock(KeyedTransactionTask.class);
 
     private final ScheduledExecutorService scheduler = PTExecutors.newSingleThreadScheduledExecutor();
     private final ListeningExecutorService executionExecutor = MoreExecutors.listeningDecorator(scheduler);u}(j_ (c1f634d4126720aa2ed7f3a586024740f66c9ab0j datlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingGraphTest.javaj addedj Kjj K j Kjj https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj XM  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.google.common.collect.ImmutableMap;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Map;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class RingGraphTest {
+
+    private static final Map<Integer, Integer> VALID_RING = ImmutableMap.of(0, 2, 1, 0, 2, 1);
+
+    @Test
+    public void fromPartialGeneratesRandomRingWhenAllKeysEmpty() {
+        Map<Integer, Optional<Integer>> emptyEdges = ImmutableMap.of(1, Optional.empty(), 2, Optional.empty());
+        assertThatCode(() -> RingGraph.fromPartial(emptyEdges)).doesNotThrowAnyException();
+    }
+
+    @Test
+    public void fromPartialThrowsWhenSomeEntriesAreEmpty() {
+        Map<Integer, Optional<Integer>> partiallyEmptyRing = ImmutableMap.of(0, Optional.of(1), 1, Optional.empty());
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.fromPartial(partiallyEmptyRing))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Graph contains missing entries, thus cannot be made into a ring.")
+                .hasExactlyArgs(SafeArg.of("ring", partiallyEmptyRing));
+    }
+
+    @Test
+    public void fromThrowsMissingEntriesWhenNodeReferencedDoesNotExist() {
+        Map<Integer, Integer> missingNodesRing = ImmutableMap.of(0, 2, 1, 0);
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(missingNodesRing))
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.MISSING_ENTRIES),
+                        SafeArg.of("ring", missingNodesRing));
+    }
+
+    @Test
+    public void fromThrowsCycleExceptionWhenUnableToReachEveryNode() {
+        Map<Integer, Integer> incompleteRing = ImmutableMap.of(0, 1, 1, 1, 2, 0);
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(incompleteRing))
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.EARLY_CYCLE),
+                        SafeArg.of("ring", incompleteRing));
+    }
+
+    @Test
+    public void fromThrowsCycleExceptionWhenEntryNodeNotRevisited() {
+        Map<Integer, Integer> incompleteRing = ImmutableMap.of(0, 1, 1, 1);
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(incompleteRing))
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.EARLY_CYCLE),
+                        SafeArg.of("ring", incompleteRing));
+    }
+
+    @Test
+    public void generateNewRingCreatesDifferentRing() {
+        RingGraph ringGraph = RingGraph.create(8);
+        boolean uniqueAtLeastOnce = false;
+        for (int iteration = 0; iteration < 10; iteration++) {
+            if (!ringGraph.generateNewRing().asMap().equals(ringGraph.asMap())) {
+                uniqueAtLeastOnce = true;
+                break;
+            }
+        }
+        assertThat(uniqueAtLeastOnce)
+                .as("Check ring generation multiple times as we could randomly generate an identical ring")
+                .isTrue();
+    }
+
+    @Test
+    public void generateNewRingReturnsValidRing() {
+        RingGraph ring = RingGraph.create(8);
+        for (int count = 0; count < 1000; count++) {
+            assertThatCode(() -> RingGraph.from(ring.generateNewRing().asMap())).doesNotThrowAnyException();
+        }
+    }
+
+    @Test
+    public void asMapConvertsCorrectly() {
+        assertThat(RingGraph.from(VALID_RING).asMap()).isEqualTo(VALID_RING);
+    }
+}u}(j_ (b76eb98bf9ca3cc3502b229247cd0eb65cd5a3cej hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowsTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.java?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X"  @@ -0,0 +1,129 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.atlasdb.workload.workflow.ImmutableTableConfiguration;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.Test;
+
+public class RingWorkflowsTest {
+
+    private static final String TABLE_NAME = "ring.ring";
+    private static final RingWorkflowConfiguration CONFIGURATION = ImmutableRingWorkflowConfiguration.builder()
+            .tableConfiguration(ImmutableTableConfiguration.builder()
+                    .tableName(TABLE_NAME)
+                    .isolationLevel(IsolationLevel.SNAPSHOT)
+                    .build())
+            .iterationCount(1)
+            .build();
+
+    private final InteractiveTransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SNAPSHOT)));
+
+    private final AtomicBoolean skipRunning = new AtomicBoolean(false);
+
+    private final Workflow workflow = RingWorkflows.create(
+            memoryStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)),
+            skipRunning);
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore())
+                .as("should return a read only transaction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void ringWorkflowContainsInitialReadsForRing() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.ringSize())
+                .boxed()
+                .map(index ->
+                        WitnessedReadTransactionAction.of(TABLE_NAME, RingWorkflows.cell(index), Optional.empty()))
+                .collect(Collectors.toList());
+        assertThat(actions).containsAll(initialReadActions);
+    }
+
+    @Test
+    public void ringWorkflowContainsInitialWritesForRing() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WorkloadCell> actualWrittenCells = actions.stream()
+                .filter(WitnessedWriteTransactionAction.class::isInstance)
+                .map(WitnessedWriteTransactionAction.class::cast)
+                .map(WitnessedWriteTransactionAction::cell)
+                .collect(Collectors.toList());
+
+        List<WorkloadCell> expectedWrittenCells = IntStream.range(0, CONFIGURATION.ringSize())
+                .boxed()
+                .map(RingWorkflows::cell)
+                .collect(Collectors.toList());
+
+        assertThat(actualWrittenCells).containsAll(expectedWrittenCells);
+    }
+
+    @Test
+    public void ringWorkflowSetsSkipRunningToTrueWhenInvalidRingPresent() {
+        assertThat(skipRunning).isFalse();
+        memoryStore.readWrite(txn -> txn.write(TABLE_NAME, RingWorkflows.cell(0), 99));
+        workflow.run();
+        assertThat(skipRunning).isTrue();
+    }
+
+    @Test
+    public void ringWorkflowDoesNotWitnessTransactionWhenSkipRunningSetToTrue() {
+        skipRunning.set(true);
+        assertThat(workflow.run().history()).isEmpty();
+    }
+}u}(j_ (1d48df051a7627207eae8887272331c4921a8011j  changelog/0.836.0/pr-6516.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/changelog%2F0.836.0%2Fpr-6516.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/changelog%2F0.836.0%2Fpr-6516.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.836.0%2Fpr-6516.v2.yml?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: AtlasDB no longer registers the `/sweep` endpoints.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6516u}(j_ (7cd0781ff20be0bdee6ed7080da226fe65bc85c7j  changelog/0.837.0/pr-6527.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/changelog%2F0.837.0%2Fpr-6527.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/changelog%2F0.837.0%2Fpr-6527.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.837.0%2Fpr-6527.v2.yml?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Use debian images for workload-server and timelock-server for integration
+    tests
+  links:
+  - https://github.com/palantir/atlasdb/pull/6527u}(j_ (be72c004493be08c4fc82ce80da6356af57c9035j 'timelock-server-distribution/Dockerfilej modifiedj Kj Kj Kj {https://github.com/palantir/atlasdb/blob/a4625fff5cb6e505450f30822d450f0f801f9fec/timelock-server-distribution%2FDockerfilej zhttps://github.com/palantir/atlasdb/raw/a4625fff5cb6e505450f30822d450f0f801f9fec/timelock-server-distribution%2FDockerfilej https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-distribution%2FDockerfile?ref=a4625fff5cb6e505450f30822d450f0f801f9fecj X  @@ -1,8 +1,8 @@
-FROM adoptopenjdk/openjdk11:jre-11.0.9_11.1-alpine
+FROM adoptopenjdk/openjdk11:jdk-11.0.11_9-debian
 MAINTAINER AtlasDB Team
 
 # Bash is useful for monitoring; curl is used by our healthchecks.
-RUN apk update && apk add bash curl
+RUN apt-get update && apt-get -y install bash curl
 
 # Prefer ADD to COPY because it does the tar handling
 ADD timelock-server-*.tgz /ueu(9721cfaf779d33b012bedaa315a17446673d1d20}(sha(9721cfaf779d33b012bedaa315a17446673d1d20node_idEC_kwDOAjP5fdoAKDk3MjFjZmFmNzc5ZDMzYjAxMmJlZGFhMzE1YTE3NDQ2NjczZDFkMjAcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T15:55:46Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj	 2023-05-15T15:55:46Zumessagegotchatree}(j (7710bc57d7f2faf4c77f562c0d6f7dea38407c5furl`https://api.github.com/repos/palantir/atlasdb/git/trees/7710bc57d7f2faf4c77f562c0d6f7dea38407c5fuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9721cfaf779d33b012bedaa315a17446673d1d20
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiVgIACgkQPlMHVIT1
yhph0gf+O30FWuOhUFbjxlZFr762UcZyuiVXs04m8LMJYJvYfWwVoxSLBpPDor1K
/DywkGkYEzMUInBuaug80To8sZqpDh6Goowp6j2xvfrib+Lkkmk6o7gOBG7IX+2d
Qu5Mo2Zj057FY0gPRmHWjGXkQT8DDz6SwhDHT6q0yitxdVPWac7FDmomxiWfZ7Uf
MnH9Y8B4En5PvWiOKlf0+6CPUZGEo2wWFs0ae7A3BA0ut4PY2eGHijOYJG7n4HiU
R5SGLGdYVADAMjFngDIWHRpxCFD8r3/GzDP7O7EU6lVg9P3s4Es6RYFF+grDkCqH
JuEqazSdo0opyuiSePdIVL4dlWLbhQ==
=EomT
-----END PGP SIGNATURE-----payloadtree 7710bc57d7f2faf4c77f562c0d6f7dea38407c5f
parent 0183f8ac78689790a8ee83b877e3b10d6be52db5
author Ahmed Alouane <aalouane@palantir.com> 1684166146 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684166146 +0100

gotcha
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/9721cfaf779d33b012bedaa315a17446673d1d20html_urlShttps://github.com/palantir/atlasdb/commit/9721cfaf779d33b012bedaa315a17446673d1d20comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9721cfaf779d33b012bedaa315a17446673d1d20/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j# https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j( ergo14j* Jj MDQ6VXNlcjMwOTAzNzM2j, 4https://avatars.githubusercontent.com/u/30903736?v=4j. h5j #https://api.github.com/users/ergo14j# https://github.com/ergo14j1 -https://api.github.com/users/ergo14/followersj3 :https://api.github.com/users/ergo14/following{/other_user}j5 3https://api.github.com/users/ergo14/gists{/gist_id}j7 :https://api.github.com/users/ergo14/starred{/owner}{/repo}j9 1https://api.github.com/users/ergo14/subscriptionsj; (https://api.github.com/users/ergo14/orgsj= )https://api.github.com/users/ergo14/reposj? 4https://api.github.com/users/ergo14/events{/privacy}jA 3https://api.github.com/users/ergo14/received_eventsjC UserjE uparents]}(j (0183f8ac78689790a8ee83b877e3b10d6be52db5j ^https://api.github.com/repos/palantir/atlasdb/commits/0183f8ac78689790a8ee83b877e3b10d6be52db5j# Shttps://github.com/palantir/atlasdb/commit/0183f8ac78689790a8ee83b877e3b10d6be52db5uastats}(totalK	additionsK	deletionsKufiles]}(j (bba9d63fbbe8164d0cd4c0489e523982076a1ba1filename%scripts/circle-ci/run-circle-tests.shstatusmodifiedj_ Kj` KchangesKblob_url{https://github.com/palantir/atlasdb/blob/9721cfaf779d33b012bedaa315a17446673d1d20/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/9721cfaf779d33b012bedaa315a17446673d1d20/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=9721cfaf779d33b012bedaa315a17446673d1d20patchX3  @@ -27,15 +27,15 @@ CONTAINER_6=(':timelock-server:suiteTest')
 
 CONTAINER_7=(':timelock-server:stressTest')
 
-CONTAINER_8=(':atlasdb-ete-tests:timeLockMigrationTest')
+CONTAINER_8=(':atlasdb-cassandra-integration-tests:testSubset2')
 
 CONTAINER_9=(':atlasdb-ete-tests:oracleTest')
 
 CONTAINER_10=('atlasdb-dbkvs-tests:oracleTest')
 
 CONTAINER_11=(':atlasdb-impl-shared:check' )
 
-CONTAINER_12=(':atlasdb-cassandra-integration-tests:testSubset2')
+CONTAINER_12=(':atlasdb-ete-tests:timeLockMigrationTest')
 
 CONTAINER_13=('compileJava' 'compileTestJava')
 uau(9fbe798096c9c15531e10bcd50b25f622037741a}(sha(9fbe798096c9c15531e10bcd50b25f622037741anode_idEC_kwDOAjP5fdoAKDlmYmU3OTgwOTZjOWMxNTUzMWUxMGJjZDUwYjI1ZjYyMjAzNzc0MWEcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-07-24T19:14:41Zu	committer}(j| GitHubj~ noreply@github.comj 2023-07-24T19:14:41Zumessage)Remove unused registrar parameter (#6675)tree}(jt (583e8f96eb795abb267fc8d4dd50c54680441e1durl`https://api.github.com/repos/palantir/atlasdb/git/trees/583e8f96eb795abb267fc8d4dd50c54680441e1duj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9fbe798096c9c15531e10bcd50b25f622037741a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkvs2hCRBK7hj4Ov3rIwAAVNIIADOX2I/54QvswDgoFepTR9Ng
LrjsHIAm64KNDTRGJ2zi7uj3CenRpcdZ/Gm6jbs5ULiTPJMYpxtd7lVRouavWQF4
YT+iqno3HkuZNN7a+OnJi3A07PGeo0Ycr+zpML6/YBFaczjfA1gICIA3XnYdVgFB
KI71VohB+jGIJq4B1gFoQgfaBfGCV3yKAkj+lvPA/XXmhaN0TA9NpQD/mTDJ7bKr
1L0C4VUzkSg3XxE9ryarbkMhPyDMCUmU6Hu84jyVfUcTTxoR6CyTutX/TVL9eIRL
JFBy6i32gS6RvLZUOUEiHZmm2lE4t40TEWk//X3O5gwSRtAJiqOhrPdw0V1QJo0=
=k+ei
-----END PGP SIGNATURE-----
payloadtree 583e8f96eb795abb267fc8d4dd50c54680441e1d
parent e3982d1b26db4de46a3fb46d9882da90f38af2ca
author Patrick Koenig <pkoenig10@gmail.com> 1690226081 -0700
committer GitHub <noreply@github.com> 1690226081 +0000

Remove unused registrar parameter (#6675)

 uuj ^https://api.github.com/repos/palantir/atlasdb/commits/9fbe798096c9c15531e10bcd50b25f622037741ahtml_urlShttps://github.com/palantir/atlasdb/commit/9fbe798096c9c15531e10bcd50b25f622037741acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9fbe798096c9c15531e10bcd50b25f622037741a/commentsjz }(login	pkoenig10idJLvP jv MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5j &https://api.github.com/users/pkoenig10j https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminuj }(j web-flowj J/jv MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(jt (e3982d1b26db4de46a3fb46d9882da90f38af2caj ^https://api.github.com/repos/palantir/atlasdb/commits/e3982d1b26db4de46a3fb46d9882da90f38af2caj Shttps://github.com/palantir/atlasdb/commit/e3982d1b26db4de46a3fb46d9882da90f38af2cauastats}(totalK	additionsK 	deletionsKufiles]}(jt (b8581c6ca1106927b53fd0a43ed2256f151e06a2filenameRatlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javastatusmodifiedj K j KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9fbe798096c9c15531e10bcd50b25f622037741a/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9fbe798096c9c15531e10bcd50b25f622037741a/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=9fbe798096c9c15531e10bcd50b25f622037741apatchX  @@ -542,7 +542,6 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                         metricsManager,
                         config(),
                         runtime,
-                        registrar(),
                         keyValueService,
                         transactionService,
                         follower,
@@ -817,7 +816,6 @@ private static BackgroundSweeperImpl initializeSweepBackgroundProcess(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Supplier<AtlasDbRuntimeConfig> runtimeConfigSupplier,
-            Consumer<Object> registrar,
             KeyValueService kvs,
             TransactionService transactionService,
             CleanupFollower follower,uau(6ad004126fa837e7ffa5857878cd9ed58e20d469}(sha(6ad004126fa837e7ffa5857878cd9ed58e20d469node_idEC_kwDOAjP5fdoAKDZhZDAwNDEyNmZhODM3ZTdmZmE1ODU3ODc4Y2Q5ZWQ1OGUyMGQ0Njkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-01T18:27:14Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-01T18:27:14Zumessagedon't continuetree}(j (5852e64210f40cd06cbd0b1cf263dbedc230396burl`https://api.github.com/repos/palantir/atlasdb/git/trees/5852e64210f40cd06cbd0b1cf263dbedc230396buj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6ad004126fa837e7ffa5857878cd9ed58e20d469
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRQBIIACgkQPlMHVIT1
yhrzQgf/VNpY+txWc2YUhsIfMHndhAlno2Ql8NUJEr50qr7IzFLavxDfEQUs7pC5
3Ma/1CfBT8VvcQMxW9+96a6nwqOQ/SGqxD0HAMPRPpI2BXDWucJErEvX2ojxclm7
nWAXGkf6Gx6Ys3102sd4xI9ZQNNklV5ZBCD0/T09AvRhPFKgucjSDHSrtcBDPKir
SSR9YDqgb6dTgXpfu93nMrxZqMrOMYGOjFyqo9+3uuEZnUWvBMqt0qgchg8cEjvW
Smglt6Nrp9yoE0d18uQ3IXuLQaX/x33lMaPQLLkjOz5Ij5OVzZUrBXtQ6I3SCwZe
/yLtah0mj4XqML0j/oaVldORF1BWaA==
=CYEG
-----END PGP SIGNATURE-----payloadtree 5852e64210f40cd06cbd0b1cf263dbedc230396b
parent 5a28411c8bd2a909eadc11ed58c49121eaeffad3
author Ahmed Alouane <aalouane@palantir.com> 1682965634 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682965634 +0100

don't continue
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/6ad004126fa837e7ffa5857878cd9ed58e20d469html_urlShttps://github.com/palantir/atlasdb/commit/6ad004126fa837e7ffa5857878cd9ed58e20d469comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6ad004126fa837e7ffa5857878cd9ed58e20d469/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url      3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j  ergo14j  Jj MDQ6VXNlcjMwOTAzNzM2j  4https://avatars.githubusercontent.com/u/30903736?v=4j  h5j  #https://api.github.com/users/ergo14j  https://github.com/ergo14j  -https://api.github.com/users/ergo14/followersj!  :https://api.github.com/users/ergo14/following{/other_user}j#  3https://api.github.com/users/ergo14/gists{/gist_id}j%  :https://api.github.com/users/ergo14/starred{/owner}{/repo}j'  1https://api.github.com/users/ergo14/subscriptionsj)  (https://api.github.com/users/ergo14/orgsj+  )https://api.github.com/users/ergo14/reposj-  4https://api.github.com/users/ergo14/events{/privacy}j/  3https://api.github.com/users/ergo14/received_eventsj1  Userj3  uparents]}(j (5a28411c8bd2a909eadc11ed58c49121eaeffad3j  ^https://api.github.com/repos/palantir/atlasdb/commits/5a28411c8bd2a909eadc11ed58c49121eaeffad3j  Shttps://github.com/palantir/atlasdb/commit/5a28411c8bd2a909eadc11ed58c49121eaeffad3uastats}(totalK	additionsK	deletionsKufiles]}(j (af1ac2a48067cb778eb31bcc6a9308c56522cceefilename%scripts/circle-ci/run-circle-tests.shstatusmodifiedjM  KjN  KchangesKblob_url{https://github.com/palantir/atlasdb/blob/6ad004126fa837e7ffa5857878cd9ed58e20d469/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/6ad004126fa837e7ffa5857878cd9ed58e20d469/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=6ad004126fa837e7ffa5857878cd9ed58e20d469patch@@ -2,7 +2,7 @@
 
 set -x
 
-BASE_GRADLE_ARGS="--profile --continue"
+BASE_GRADLE_ARGS="--profile"
 
 function checkDocsBuild {
      pyenv install 3.5.4uau(09061bf96b53c244e97e1b2cdc441307f0043e71}(sha(09061bf96b53c244e97e1b2cdc441307f0043e71node_idEC_kwDOAjP5fdoAKDA5MDYxYmY5NmI1M2MyNDRlOTdlMWIyY2RjNDQxMzA3ZjAwNDNlNzEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-08T13:36:48Zu	committer}(jj  
Sam Kramerjl  skramer@palantir.comjn  2023-08-08T13:36:48Zumessagefix testtree}(jb  (55a198f4960f21f8d5943591418345750d34979furl`https://api.github.com/repos/palantir/atlasdb/git/trees/55a198f4960f21f8d5943591418345750d34979fujz  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/09061bf96b53c244e97e1b2cdc441307f0043e71
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTSRPAACgkQmPPOpKR4
XS2zhAf/aUDKQK4Q+IGm3Z295w16+/Xbc5PRzqo2kYlmyjBWLn+PXroo6P3jp76z
0X9PqY617C5UUgNBgr9WUPOPemaonrlXQk72j15u5SmMlm8Su94iPSPkqzOn+fYy
O9kXTCjWLCCaEjJ0G99jW5d2CHXdAB+t/rO0EvBZlyafWPdFjfU3Lv1/GlPt0CKN
2iDpt9jMPLIwgJ5gL0mbhrY0UVJAFZ/6U17YP5uEfzEupyi4rCifAdaSOdBtfwxr
LAiiTclTVAgGLF9LPqIiWOpYmazQYP12yfECNvLRIU9bDbEvoSWGOu6Qpkz2e/PA
O4P3YoAiXnLu5ZZqTp3m2otBUWD2/g==
=2lE4
-----END PGP SIGNATURE-----payloadtree 55a198f4960f21f8d5943591418345750d34979f
parent e35dab0e65bd69707c57be7741e71569889b0229
author Sam Kramer <skramer@palantir.com> 1691501808 +0100
committer Sam Kramer <skramer@palantir.com> 1691501808 +0100

fix test
uujz  ^https://api.github.com/repos/palantir/atlasdb/commits/09061bf96b53c244e97e1b2cdc441307f0043e71html_urlShttps://github.com/palantir/atlasdb/commit/09061bf96b53c244e97e1b2cdc441307f0043e71comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/09061bf96b53c244e97e1b2cdc441307f0043e71/commentsjh  }(login
Sam-KrameridJ^2_ jd  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jz  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujp  }(j  
Sam-Kramerj  J^2_ jd  MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j  h5jz  'https://api.github.com/users/Sam-Kramerj  https://github.com/Sam-Kramerj  1https://api.github.com/users/Sam-Kramer/followersj  >https://api.github.com/users/Sam-Kramer/following{/other_user}j  7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j  >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j  5https://api.github.com/users/Sam-Kramer/subscriptionsj  ,https://api.github.com/users/Sam-Kramer/orgsj  -https://api.github.com/users/Sam-Kramer/reposj  8https://api.github.com/users/Sam-Kramer/events{/privacy}j  7https://api.github.com/users/Sam-Kramer/received_eventsj  Userj  uparents]}(jb  (e35dab0e65bd69707c57be7741e71569889b0229jz  ^https://api.github.com/repos/palantir/atlasdb/commits/e35dab0e65bd69707c57be7741e71569889b0229j  Shttps://github.com/palantir/atlasdb/commit/e35dab0e65bd69707c57be7741e71569889b0229uastats}(totalK	additionsK	deletionsKufiles]}(jb  (e10b0f23b968bd36b320ca2cad302b91efca83e2filenameatimelock-impl/src/test/java/com/palantir/atlasdb/timelock/paxos/PaxosTimestampBoundStoreTest.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/09061bf96b53c244e97e1b2cdc441307f0043e71/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/09061bf96b53c244e97e1b2cdc441307f0043e71/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.java?ref=09061bf96b53c244e97e1b2cdc441307f0043e71patchX  @@ -251,7 +251,7 @@ public void throwsIfBoundUnexpectedlyChangedUnderUs() {
                 .hasMessageContaining("Timestamp limit changed from under us for sequence")
                 .args()
                 // We don't know the leader ids in advance, so we can't assert on them.
-                .contains(SafeArg.of("newSeq", PaxosAcceptor.NO_LOG_ENTRY + 1), SafeArg.of("limit", TIMESTAMP_2));
+                .contains(SafeArg.of("newSeq", PaxosAcceptor.NO_LOG_ENTRY + 1), SafeArg.of("target", TIMESTAMP_2));
     }
 
     @Testuau(4dd429668a390497fae8e714765e83e4db4a2d7b}(sha(4dd429668a390497fae8e714765e83e4db4a2d7bnode_idEC_kwDOAjP5fdoAKDRkZDQyOTY2OGEzOTA0OTdmYWU4ZTcxNDc2NWU4M2U0ZGI0YTJkN2Icommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-13T12:03:59Zu	committer}(j  	Tom Papkej  tpapke@palantir.comj  2023-07-13T15:07:50ZumessageRefactor teststree}(j  (ae6922fc973f6947d9dd2a401bf5a17ec1bfe0c9url`https://api.github.com/repos/palantir/atlasdb/git/trees/ae6922fc973f6947d9dd2a401bf5a17ec1bfe0c9uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4dd429668a390497fae8e714765e83e4db4a2d7b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSwE0YACgkQmF9s0kaF
Iw1n7wgAhq1O4NAi/wd88jfngZESyJ3w+ex4U+wn8ggzMKVmc59hGGg/+TGoZNZy
nu5u5NHfQzKgKRnsVbzKjrTa7mi9tcp0AFIsPaztOZxTL32HEcrCvtlhN3yKa54E
q/6biENd4YFw7WvKJGNsrxXXv+XGcG6q+edZU+rqhIm3ERqjJ5adm8FAtwH5naeC
npLVJtVRtwvhntqgSoHf/0/0RfY/Rm1KFZeYJG+PxLYbJVLxqC3czlH+q9BLHOSo
0e2khGKNjb8MKk0qPcV7GUdb8m64oefQ8940s4CZO7WciCPd6IqOhm+op24x3+1a
bvCFTYDzGZH8FcuaFauJlYYFs7AXWQ==
=sN86
-----END PGP SIGNATURE-----payloadtree ae6922fc973f6947d9dd2a401bf5a17ec1bfe0c9
parent 23e62d4178b98a208f1d0523fb1b25c1144c5898
author Tom Papke <tpapke@palantir.com> 1689249839 +0100
committer Tom Papke <tpapke@palantir.com> 1689260870 +0100

Refactor tests
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/4dd429668a390497fae8e714765e83e4db4a2d7bhtml_urlShttps://github.com/palantir/atlasdb/commit/4dd429668a390497fae8e714765e83e4db4a2d7bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4dd429668a390497fae8e714765e83e4db4a2d7b/commentsj  }(login	ToemmscheidJboj  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj  }(j 	Toemmschej Jboj  MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j
 h5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmschej
 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj! uparents]}(j  (23e62d4178b98a208f1d0523fb1b25c1144c5898j  ^https://api.github.com/repos/palantir/atlasdb/commits/23e62d4178b98a208f1d0523fb1b25c1144c5898j  Shttps://github.com/palantir/atlasdb/commit/23e62d4178b98a208f1d0523fb1b25c1144c5898uastats}(totalK$	additionsK	deletionsKufiles]}(j  (cd7b942e1008d41122cdb4249c096d96b550239bfilenameIlock-api-objects/src/test/java/com/palantir/lock/watch/LockEventTest.javastatusmodifiedj; Kj< KchangesK$blob_urlhttps://github.com/palantir/atlasdb/blob/4dd429668a390497fae8e714765e83e4db4a2d7b/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4dd429668a390497fae8e714765e83e4db4a2d7b/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.java?ref=4dd429668a390497fae8e714765e83e4db4a2d7bpatchXO  @@ -26,7 +26,6 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.fasterxml.jackson.databind.exc.InvalidDefinitionException;
-import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.encoding.PtBytes;
@@ -39,6 +38,7 @@
 import java.nio.file.Path;
 import java.nio.file.Paths;
 import java.util.List;
+import java.util.Map;
 import java.util.Set;
 import java.util.UUID;
 import java.util.stream.Collectors;
@@ -71,20 +71,15 @@ public class LockEventTest {
     private static final byte[] BYTES_NEW = PtBytes.toBytes("new");
     private static final byte[] BYTES_DELETED = PtBytes.toBytes("deleted");
     private static final byte[] BYTES_CREATED = PtBytes.toBytes("created");
-    private static final List<ChangeMetadata> CHANGE_METADATA_LIST = ImmutableList.of(
-            ChangeMetadata.unchanged(),
-            ChangeMetadata.updated(BYTES_OLD, BYTES_NEW),
-            ChangeMetadata.deleted(BYTES_DELETED),
-            ChangeMetadata.created(BYTES_CREATED));
     private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(ImmutableMap.of(
             LOCK_1,
-            CHANGE_METADATA_LIST.get(0),
+            ChangeMetadata.unchanged(),
             LOCK_2,
-            CHANGE_METADATA_LIST.get(1),
+            ChangeMetadata.updated(BYTES_OLD, BYTES_NEW),
             LOCK_3,
-            CHANGE_METADATA_LIST.get(2),
+            ChangeMetadata.deleted(BYTES_DELETED),
             LOCK_4,
-            CHANGE_METADATA_LIST.get(3)));
+            ChangeMetadata.created(BYTES_CREATED)));
 
     // TimeLock (Server) serializes and AtlasDB (Client) deserializes.
     // These are the respective mappers used internally by Conjure.
@@ -131,29 +126,30 @@ public void serializesEmptyMetadataMap() {
         assertDeserializedEquals("baseline-empty-metadata-map", lockEventWithMetadata, LockEvent.class);
     }
 
-    // This property should be guaranteed by the Conjure spec
+    // This behavior should be guaranteed by the Conjure spec
     @Test
     public void oldClientIgnoresMetadata() {
         assertDeserializedEquals("baseline-with-metadata", OLD_LOCK_EVENT, OldLockEvent.class);
     }
 
     @Test
     public void serializesSparseMetadata() {
-        List<LockDescriptor> tenLocks = IntStream.range(0, 10)
+        List<LockDescriptor> lockDescriptors = IntStream.range(0, 10)
                 .mapToObj(Integer::toString)
                 .map(StringLockDescriptor::of)
                 .collect(Collectors.toList());
-        // Unique metadata on less than 50% of locks
-        LockRequestMetadata sparseMetadata = LockRequestMetadata.of(ImmutableMap.of(
-                tenLocks.get(0), ChangeMetadata.created(PtBytes.toBytes(0)),
-                tenLocks.get(4), ChangeMetadata.created(PtBytes.toBytes(4)),
-                tenLocks.get(9), ChangeMetadata.created(PtBytes.toBytes(9)),
-                tenLocks.get(5), ChangeMetadata.created(PtBytes.toBytes(5))));
+        // Unique metadata on some locks, but not all
+        Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata = ImmutableMap.of(
+                lockDescriptors.get(0), ChangeMetadata.created(BYTES_CREATED),
+                lockDescriptors.get(4), ChangeMetadata.deleted(BYTES_DELETED),
+                lockDescriptors.get(9), ChangeMetadata.unchanged(),
+                lockDescriptors.get(5), ChangeMetadata.updated(BYTES_OLD, BYTES_NEW),
+                lockDescriptors.get(7), ChangeMetadata.unchanged());
         LockEvent lockEventWithSparseMetadata = ImmutableLockEvent.builder()
-                .lockDescriptors(tenLocks)
+                .lockDescriptors(lockDescriptors)
                 .sequence(SEQUENCE)
                 .lockToken(LOCK_TOKEN)
-                .metadata(sparseMetadata)
+                .metadata(LockRequestMetadata.of(lockDescriptorToChangeMetadata))
                 .build();
 
         assertSerializedEquals(lockEventWithSparseMetadata, "sparse-metadata");uau(bbb5b6583ab92624d21ca5605f8ea6dabad2e164}(sha(bbb5b6583ab92624d21ca5605f8ea6dabad2e164node_idEC_kwDOAjP5fdoAKGJiYjViNjU4M2FiOTI2MjRkMjFjYTU2MDVmOGVhNmRhYmFkMmUxNjQcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-08-02T10:05:53Zu	committer}(jX Lucas MeirelesjZ meireles31@msn.comj\ 2023-08-02T10:05:53ZumessageX7  Merge branch 'lmeireles/expose-get-with-expected-size' into lmeireles/api-with-result-type

# Conflicts:
#	atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.java
#	atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javatree}(jP (1daf8c5c8ecd8b3697116ebbcbc30dafd8baeabfurl`https://api.github.com/repos/palantir/atlasdb/git/trees/1daf8c5c8ecd8b3697116ebbcbc30dafd8baeabfujh bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bbb5b6583ab92624d21ca5605f8ea6dabad2e164
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmTKKoEACgkQJd22kJ7J
Giw3yQf7Bt83emluKqRUIOJcSBPP34rS6u+t1te4KRsVrp1tFInIlyG80eVF2KWj
ib/6w+msWvU2CZwwFzZM42gRpPE/N7pc+SMjnykUAK1xvzCGxWeFul0tMMJfkCaB
PxZEUZYLNKe+zosQs0EJuJHq86eAnyyyEPCvUQBwXkc2qUrcj5WzR/JfbQmljvgi
qCMz8D2DKjnhGNhH28jxWLQZklgSZUvtBIdFdUJQ9sGwM9Q5+8G1tLC6zpWR9jKU
cZKZ1uXSPW9UT4YdUwIFR8YzFTasOwf9BNmFW0aGwY3zZvYVMejiwf2KM3xRV8pl
9Zxpjw7rWkp+L32GTQ0hb/FDuoP+Yw==
=CyvL
-----END PGP SIGNATURE-----payloadXB  tree 1daf8c5c8ecd8b3697116ebbcbc30dafd8baeabf
parent 44cebe27980152b451780b000f44c3df159fceb0
parent b2292ce98723ecaaf7b5e61496a4dcb1b636269c
author Lucas Meireles <meireles31@msn.com> 1690970753 +0100
committer Lucas Meireles <meireles31@msn.com> 1690970753 +0100

Merge branch 'lmeireles/expose-get-with-expected-size' into lmeireles/api-with-result-type

# Conflicts:
#	atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.java
#	atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.java
uujh ^https://api.github.com/repos/palantir/atlasdb/commits/bbb5b6583ab92624d21ca5605f8ea6dabad2e164html_urlShttps://github.com/palantir/atlasdb/commit/bbb5b6583ab92624d21ca5605f8ea6dabad2e164comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bbb5b6583ab92624d21ca5605f8ea6dabad2e164/commentsjV }(loginLucasIMEidJg jR MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jh %https://api.github.com/users/LucasIMEjv https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj^ }(j{ LucasIMEj} Jg jR MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5jh %https://api.github.com/users/LucasIMEjv https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsj Userj uparents](}(jP (44cebe27980152b451780b000f44c3df159fceb0jh ^https://api.github.com/repos/palantir/atlasdb/commits/44cebe27980152b451780b000f44c3df159fceb0jv Shttps://github.com/palantir/atlasdb/commit/44cebe27980152b451780b000f44c3df159fceb0u}(jP (b2292ce98723ecaaf7b5e61496a4dcb1b636269cjh ^https://api.github.com/repos/palantir/atlasdb/commits/b2292ce98723ecaaf7b5e61496a4dcb1b636269cjv Shttps://github.com/palantir/atlasdb/commit/b2292ce98723ecaaf7b5e61496a4dcb1b636269cuestats}(totalK	additionsK	deletionsKufiles](}(jP (e5d13e135c2e9275480655516898bc560a7920a8filenametatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/exceptions/MoreCellsPresentThanExpectedException.javastatusmodifiedj K"j K	changesK+blob_urlhttps://github.com/palantir/atlasdb/blob/bbb5b6583ab92624d21ca5605f8ea6dabad2e164/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexceptions%2FMoreCellsPresentThanExpectedException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/bbb5b6583ab92624d21ca5605f8ea6dabad2e164/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexceptions%2FMoreCellsPresentThanExpectedException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexceptions%2FMoreCellsPresentThanExpectedException.java?ref=bbb5b6583ab92624d21ca5605f8ea6dabad2e164patchXY
  @@ -17,26 +17,51 @@
 package com.palantir.atlasdb.transaction.api.exceptions;
 
 import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.logsafe.Arg;
+import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.SafeLoggable;
+import com.palantir.logsafe.Unsafe;
 import com.palantir.logsafe.UnsafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import com.palantir.logsafe.exceptions.SafeExceptions;
+import java.util.List;
 import java.util.Map;
 
-public class MoreCellsPresentThanExpectedException extends IllegalStateException {
+public final class MoreCellsPresentThanExpectedException extends IllegalStateException implements SafeLoggable {
+
+    private static final String MESSAGE =
+            "KeyValueService returned more results than Get expected. This means there is a bug"
+                    + "either in the SnapshotTransaction implementation or in how the client is "
+                    + "using such method.";
+    private final List<Arg<?>> arguments;
     private final Map<Cell, byte[]> fetchedCells;
 
     public MoreCellsPresentThanExpectedException(Map<Cell, byte[]> fetchedCells, long expectedNumberOfCells) {
-        super(new SafeIllegalStateException(
-                "KeyValueService returned more results than Get expected. This means there is a bug"
-                        + "either in the SnapshotTransaction implementation or in how the client is "
-                        + "using such method.",
-                SafeArg.of("expectedNumberOfCells", expectedNumberOfCells),
-                SafeArg.of("numberOfCellsRetrieved", fetchedCells.size()),
-                UnsafeArg.of("retrievedCells", fetchedCells)));
+        super(SafeExceptions.renderMessage(
+                MESSAGE, argsFrom(fetchedCells, expectedNumberOfCells).toArray(Arg<?>[]::new)));
         this.fetchedCells = fetchedCells;
+        this.arguments = argsFrom(fetchedCells, expectedNumberOfCells);
     }
 
     public Map<Cell, byte[]> getFetchedCells() {
         return fetchedCells;
     }
+
+    @Override
+    public @Safe String getLogMessage() {
+        return MESSAGE;
+    }
+
+    @Override
+    public List<Arg<?>> getArgs() {
+        return arguments;
+    }
+
+    @Unsafe
+    private static List<Arg<?>> argsFrom(Map<Cell, byte[]> retrievedCells, long expectedNumberOfCells) {
+        return List.of(
+                SafeArg.of("expectedNumberOfCells", expectedNumberOfCells),
+                SafeArg.of("numberOfCellsRetrieved", retrievedCells.size()),
+                UnsafeArg.of("retrievedCells", retrievedCells));
+    }
 }u}(jP (5894e3d528b1cc9fdcab3ff7fc0c7cb5fae0db48j Zatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CachingTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/bbb5b6583ab92624d21ca5605f8ea6dabad2e164/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javaj https://github.com/palantir/atlasdb/raw/bbb5b6583ab92624d21ca5605f8ea6dabad2e164/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.java?ref=bbb5b6583ab92624d21ca5605f8ea6dabad2e164j X4  @@ -155,7 +155,9 @@ public Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> getWithE
                                 tableReference, toRead, numberOfCellsExpectingValuePostCache));
                     })
                     .get();
-        } catch (InterruptedException | ExecutionException e) {
+        } catch (InterruptedException e) {
+            throw Throwables.rewrapAndThrowUncheckedException(e);
+        } catch (ExecutionException e) {
             throw Throwables.rewrapAndThrowUncheckedException(e.getCause());
         }
     }u}(jP (fb68d971757d01d92003d822fe25e2afb2f27fd4j datlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/bbb5b6583ab92624d21ca5605f8ea6dabad2e164/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaj https://github.com/palantir/atlasdb/raw/bbb5b6583ab92624d21ca5605f8ea6dabad2e164/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.java?ref=bbb5b6583ab92624d21ca5605f8ea6dabad2e164j X,
  @@ -113,6 +113,7 @@
 import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import org.immutables.value.Value;
+import org.jetbrains.annotations.VisibleForTesting;
 
 /**
  * This class will track all reads to verify that there are no read-write conflicts at commit time.
@@ -318,7 +319,9 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
                             cells,
                             (tableReference, toRead) -> Futures.immediateFuture(super.get(tableRef, toRead)))
                     .get();
-        } catch (InterruptedException | ExecutionException e) {
+        } catch (InterruptedException e) {
+            throw Throwables.rewrapAndThrowUncheckedException(e);
+        } catch (ExecutionException e) {
             throw Throwables.rewrapAndThrowUncheckedException(e.getCause());
         }
     }
@@ -335,7 +338,9 @@ public Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> getWithE
                             (tableReference, toRead) -> Futures.immediateFuture(super.getWithExpectedNumberOfCells(
                                     tableReference, toRead, expectedNumberOfPresentCells)))
                     .get();
-        } catch (InterruptedException | ExecutionException e) {
+        } catch (InterruptedException e) {
+            throw Throwables.rewrapAndThrowUncheckedException(e);
+        } catch (ExecutionException e) {
             throw Throwables.rewrapAndThrowUncheckedException(e.getCause());
         }
     }
@@ -351,7 +356,8 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(TableReference tableRef, Set
      * {@link Transaction#getWithExpectedNumberOfCells(TableReference, Set, long)} implementation to take intro account the
      * filtering and change the number of expect cells it sends to the super class.
      */
-    private ListenableFuture<Map<Cell, byte[]>> getWithLoader(
+    @VisibleForTesting
+    ListenableFuture<Map<Cell, byte[]>> getWithLoader(
             TableReference tableRef, Set<Cell> cells, CellLoader cellLoader) {
         CellResultLoader resultLoader = (table, toRead) -> {
             ListenableFuture<Map<Cell, byte[]>> future = cellLoader.load(table, toRead);
@@ -377,8 +383,9 @@ private ListenableFuture<Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedE
                 MoreExecutors.directExecutor());
     }
 
+    @VisibleForTesting
     @FunctionalInterface
-    private interface CellLoader {
+    interface CellLoader {
         ListenableFuture<Map<Cell, byte[]>> load(TableReference tableReference, Set<Cell> toRead);
     }
 u}(jP (ab9a6bde80a284b351d56e562af813d8f95bfa76j patlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/expectations/CellCountValidatorTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/bbb5b6583ab92624d21ca5605f8ea6dabad2e164/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FCellCountValidatorTest.javaj https://github.com/palantir/atlasdb/raw/bbb5b6583ab92624d21ca5605f8ea6dabad2e164/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FCellCountValidatorTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fexpectations%2FCellCountValidatorTest.java?ref=bbb5b6583ab92624d21ca5605f8ea6dabad2e164j X  @@ -0,0 +1,148 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl.expectations;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.keyvalue.api.cache.CacheValue;
+import com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.UnsafeArg;
+import java.util.Map;
+import one.util.streamex.EntryStream;
+import org.junit.Test;
+
+public class CellCountValidatorTest {
+    private static final Map<Cell, byte[]> TWO_PRESENT_ENTRIES_MAP = Map.of(
+            Cell.create(PtBytes.toBytes("foo"), PtBytes.toBytes("someColumn")),
+            PtBytes.toBytes("bar"),
+            Cell.create(PtBytes.toBytes("baz"), PtBytes.toBytes("someColumn")),
+            PtBytes.toBytes("qux"));
+    private static final Map<Cell, CacheValue> TWO_PRESENT_ONE_EMPTY_ENTRY_MAP = Map.of(
+            Cell.create(PtBytes.toBytes("foo"), PtBytes.toBytes("someColumn")),
+            CacheValue.of(PtBytes.toBytes("bar")),
+            Cell.create(PtBytes.toBytes("foo2"), PtBytes.toBytes("someColumn")),
+            CacheValue.of(PtBytes.toBytes("bar2")),
+            Cell.create(PtBytes.toBytes("baz"), PtBytes.toBytes("someColumn")),
+            CacheValue.empty());
+
+    @Test
+    public void testDontThrowIfFetchedLessCellsThanExpected() {
+        assertThatCode(() -> {
+                    CellCountValidator.validateFetchedLessOrEqualToExpected(1, Map.of());
+                    CellCountValidator.validateCacheAndGetNonEmptyValuesCount(1, Map.of());
+
+                    CellCountValidator.validateFetchedLessOrEqualToExpected(2, cellMapOf("foo", "bar"));
+                    CellCountValidator.validateCacheAndGetNonEmptyValuesCount(2, cacheCellMapOf("foo", "bar"));
+                })
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void testDontThrowIfFetchedCellsEqualToExpected() {
+        assertThatCode(() -> {
+                    CellCountValidator.validateFetchedLessOrEqualToExpected(0, Map.of());
+                    CellCountValidator.validateCacheAndGetNonEmptyValuesCount(0, Map.of());
+
+                    CellCountValidator.validateFetchedLessOrEqualToExpected(1, cellMapOf("foo", "bar"));
+                    CellCountValidator.validateCacheAndGetNonEmptyValuesCount(1, cacheCellMapOf("foo", "bar"));
+                })
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void testThrowsIfFetchedMoreCellsThanExpected() {
+        assertThatLoggableExceptionThrownBy(
+                        () -> CellCountValidator.validateFetchedLessOrEqualToExpected(1, TWO_PRESENT_ENTRIES_MAP))
+                .isInstanceOf(MoreCellsPresentThanExpectedException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("expectedNumberOfCells", 1L),
+                        SafeArg.of("numberOfCellsRetrieved", 2),
+                        UnsafeArg.of("retrievedCells", TWO_PRESENT_ENTRIES_MAP));
+
+        Map<Cell, CacheValue> cachedValues = toCached(TWO_PRESENT_ENTRIES_MAP);
+        assertThatLoggableExceptionThrownBy(
+                        () -> CellCountValidator.validateCacheAndGetNonEmptyValuesCount(1, cachedValues))
+                .isInstanceOf(MoreCellsPresentThanExpectedException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("expectedNumberOfCells", 1L),
+                        SafeArg.of("numberOfCellsRetrieved", 2),
+                        UnsafeArg.of("retrievedCells", TWO_PRESENT_ENTRIES_MAP));
+    }
+
+    @Test
+    public void testThrowsIfExpectingNegativeValue() {
+        assertThatLoggableExceptionThrownBy(
+                        () -> CellCountValidator.validateFetchedLessOrEqualToExpected(-1, TWO_PRESENT_ENTRIES_MAP))
+                .isInstanceOf(MoreCellsPresentThanExpectedException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("expectedNumberOfCells", -1L),
+                        SafeArg.of("numberOfCellsRetrieved", 2),
+                        UnsafeArg.of("retrievedCells", TWO_PRESENT_ENTRIES_MAP));
+
+        Map<Cell, CacheValue> cachedValues = toCached(TWO_PRESENT_ENTRIES_MAP);
+        assertThatLoggableExceptionThrownBy(
+                        () -> CellCountValidator.validateCacheAndGetNonEmptyValuesCount(-1, cachedValues))
+                .isInstanceOf(MoreCellsPresentThanExpectedException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("expectedNumberOfCells", -1L),
+                        SafeArg.of("numberOfCellsRetrieved", 2),
+                        UnsafeArg.of("retrievedCells", TWO_PRESENT_ENTRIES_MAP));
+    }
+
+    @Test
+    public void testEmptyCacheValuesDoesNotCountAgainstPresentCells() {
+        assertThatCode(() ->
+                        CellCountValidator.validateCacheAndGetNonEmptyValuesCount(2, TWO_PRESENT_ONE_EMPTY_ENTRY_MAP))
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void testReturnsValueOfNonEmptyEntriesInCacheAfterValidation() {
+        assertThat(CellCountValidator.validateCacheAndGetNonEmptyValuesCount(2, TWO_PRESENT_ONE_EMPTY_ENTRY_MAP))
+                .isEqualTo(2L);
+    }
+
+    @Test
+    public void testThrowsIfMorePresentCachedCellsThanExpected() {
+        Map<Cell, CacheValue> cachedValues = toCached(TWO_PRESENT_ENTRIES_MAP);
+
+        assertThatLoggableExceptionThrownBy(
+                        () -> CellCountValidator.validateCacheAndGetNonEmptyValuesCount(1, cachedValues))
+                .isInstanceOf(MoreCellsPresentThanExpectedException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("expectedNumberOfCells", 1L),
+                        SafeArg.of("numberOfCellsRetrieved", 2),
+                        UnsafeArg.of("retrievedCells", TWO_PRESENT_ENTRIES_MAP));
+    }
+
+    private static Map<Cell, byte[]> cellMapOf(String key, String value) {
+        return Map.of(Cell.create(PtBytes.toBytes(key), PtBytes.toBytes("someColumn")), PtBytes.toBytes(value));
+    }
+
+    private static Map<Cell, CacheValue> cacheCellMapOf(String key, String value) {
+        return EntryStream.of(cellMapOf(key, value)).mapValues(CacheValue::of).toMap();
+    }
+
+    private static Map<Cell, CacheValue> toCached(Map<Cell, byte[]> presentValues) {
+        return EntryStream.of(presentValues).mapValues(CacheValue::of).toMap();
+    }
+}u}(jP (d9184f1e861ba439c819235be5edce661ac86c68j qatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractSerializableTransactionTest.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/bbb5b6583ab92624d21ca5605f8ea6dabad2e164/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj https://github.com/palantir/atlasdb/raw/bbb5b6583ab92624d21ca5605f8ea6dabad2e164/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.java?ref=bbb5b6583ab92624d21ca5605f8ea6dabad2e164j Xe
  @@ -20,10 +20,14 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.assertj.core.api.Assertions.catchThrowable;
+import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyLong;
+import static org.mockito.ArgumentMatchers.anySet;
+import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.doThrow;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
 
 import com.google.common.base.Suppliers;
 import com.google.common.collect.ImmutableList;
@@ -36,6 +40,7 @@
 import com.google.common.collect.Ordering;
 import com.google.common.collect.Streams;
 import com.google.common.primitives.UnsignedBytes;
+import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.cleaner.NoOpCleaner;
@@ -64,6 +69,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.TransactionSerializableConflictException;
+import com.palantir.atlasdb.transaction.impl.SerializableTransaction.CellLoader;
 import com.palantir.atlasdb.transaction.impl.metrics.SimpleTableLevelMetricsController;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.common.base.BatchingVisitable;
@@ -78,6 +84,7 @@
 import java.util.Map;
 import java.util.Optional;
 import java.util.Random;
+import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.BrokenBarrierException;
 import java.util.concurrent.Callable;
@@ -89,6 +96,7 @@
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 import org.junit.Test;
+import org.mockito.ArgumentCaptor;
 
 @SuppressWarnings("CheckReturnValue")
 public abstract class AbstractSerializableTransactionTest extends AbstractTransactionTest {
@@ -1487,6 +1495,27 @@ public void testChecksIfTablesAreSerializable() {
         });
     }
 
+    // This test exists as a best effort approach to catch any change to the getWithLoader method that would filter
+    // down cells and potentially break getWithExpectedNumberOfCells if it was not changed accordingly.
+    @Test
+    public void getWithLoaderDoesntFilterDownCells() {
+        CellLoader cellLoader = mock(CellLoader.class);
+        when(cellLoader.load(any(), anySet()))
+                .thenReturn(Futures.immediateFuture(ImmutableMap.of(CELL_ONE, BYTES_ONE, CELL_TWO, BYTES_TWO)));
+
+        createManager().runTaskThrowOnConflict(tx -> {
+            SerializableTransaction serializable = (SerializableTransaction) tx;
+
+            serializable.getWithLoader(TEST_TABLE_SERIALIZABLE, ImmutableSet.of(CELL_ONE, CELL_TWO), cellLoader);
+
+            ArgumentCaptor<Set<Cell>> captor = ArgumentCaptor.forClass(Set.class);
+            verify(cellLoader).load(eq(TEST_TABLE_SERIALIZABLE), captor.capture());
+
+            assertThat(captor.getValue()).containsExactlyInAnyOrder(CELL_ONE, CELL_TWO);
+            return null;
+        });
+    }
+
     @Override
     protected void put(Transaction txn, String rowName, String columnName, String value) {
         put(txn, TEST_TABLE_SERIALIZABLE, rowName, columnName, value);u}(jP (90280f96546fdea75d5d09270ac4db76fd0d518aj eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/bbb5b6583ab92624d21ca5605f8ea6dabad2e164/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://github.com/palantir/atlasdb/raw/bbb5b6583ab92624d21ca5605f8ea6dabad2e164/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=bbb5b6583ab92624d21ca5605f8ea6dabad2e164j X)  @@ -133,6 +133,7 @@
 import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.util.result.Result;
 import io.vavr.collection.HashMap;
@@ -1902,6 +1903,11 @@ public void throwsIfAllValuesCachedButMoreThanExpectedPresent() {
                         TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 1);
         assertThat(result.isErr()).isTrue();
         assertThat(result.unwrapErr().getFetchedCells()).isEqualTo(cacheContent);
+        assertThat(result.unwrapErr().getArgs())
+                .containsExactlyInAnyOrder(
+                        SafeArg.of("expectedNumberOfCells", 1L),
+                        SafeArg.of("numberOfCellsRetrieved", 2),
+                        UnsafeArg.of("retrievedCells", cacheContent));
 
         verify(spiedTimeLockService, never()).refreshLockLeases(any());
         verify(spiedSnapshotTransaction, never())ueu(590140ae5da7270f7c79f1deefdb5cb55589d566}(sha(590140ae5da7270f7c79f1deefdb5cb55589d566node_idEC_kwDOAjP5fdoAKDU5MDE0MGFlNWRhNzI3MGY3Yzc5ZjFkZWVmZGI1Y2I1NTU4OWQ1NjYcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-12T12:33:07Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-07-13T15:53:03Zumessage(Rename test methods
use enum for visitortree}(j (adbe39f1b9e31363af7cf9ff51aae55a3623c516url`https://api.github.com/repos/palantir/atlasdb/git/trees/adbe39f1b9e31363af7cf9ff51aae55a3623c516uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/590140ae5da7270f7c79f1deefdb5cb55589d566
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSwHd8ACgkQmF9s0kaF
Iw2rbgf/VGYn9UijlDBiKHIRtN1jP4w+ZC5O2OiaSKFOWlwni6vSycpbWZ1EPZ80
zwPqJtp8oGyePpHdImf8zIwpUVT0Ye1LnXyV9K4tZ+dlFINCTwhIvAtjPciaPd/t
T36GR+/aA1iQlQ1eU41jRLtPB1T1YZgkRyvfMJfzCdzcJiXhRT4NT1lr2ZEqUD3j
xcJBsxdP02vyx/H53FtrSJbyYTHP1eUl4ZryHrNiXI62M1/sCeKirNPDcLG7ync4
lBt+/aNJoUK3REg8qFnxDTrMNB1lKtDduMKk5K9INKd92PP0e9x/eL4SthFA+CQt
2+JCKdIZGsqZWRfRe2sScDRVcNlrnw==
=mStK
-----END PGP SIGNATURE-----payloadtree adbe39f1b9e31363af7cf9ff51aae55a3623c516
parent 33def95ec91f99ac7ad9bb8304c5bb4938bc9162
author Tom Papke <tpapke@palantir.com> 1689165187 +0100
committer Tom Papke <tpapke@palantir.com> 1689263583 +0100

Rename test methods
use enum for visitor
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/590140ae5da7270f7c79f1deefdb5cb55589d566html_urlShttps://github.com/palantir/atlasdb/commit/590140ae5da7270f7c79f1deefdb5cb55589d566comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/590140ae5da7270f7c79f1deefdb5cb55589d566/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej  Jboj MDQ6VXNlcjQzNjc1NDkwj" 4https://avatars.githubusercontent.com/u/43675490?v=4j$ h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej' 0https://api.github.com/users/Toemmsche/followersj) =https://api.github.com/users/Toemmsche/following{/other_user}j+ 6https://api.github.com/users/Toemmsche/gists{/gist_id}j- =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j/ 4https://api.github.com/users/Toemmsche/subscriptionsj1 +https://api.github.com/users/Toemmsche/orgsj3 ,https://api.github.com/users/Toemmsche/reposj5 7https://api.github.com/users/Toemmsche/events{/privacy}j7 6https://api.github.com/users/Toemmsche/received_eventsj9 Userj; uparents]}(j (33def95ec91f99ac7ad9bb8304c5bb4938bc9162j ^https://api.github.com/repos/palantir/atlasdb/commits/33def95ec91f99ac7ad9bb8304c5bb4938bc9162j Shttps://github.com/palantir/atlasdb/commit/33def95ec91f99ac7ad9bb8304c5bb4938bc9162uastats}(totalK
	additionsK	deletionsKufiles](}(j (4791e04efee5a95b9c1920e7aa74003f7ec030a6filenameftimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataTest.javastatusmodifiedjU KjV KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/590140ae5da7270f7c79f1deefdb5cb55589d566/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/590140ae5da7270f7c79f1deefdb5cb55589d566/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.java?ref=590140ae5da7270f7c79f1deefdb5cb55589d566patchX  @@ -136,7 +136,7 @@ public void cannotPassDownMetadataForUnknownLockDescriptors() {
     }
 
     private List<Optional<LockRequestMetadata>> getAllLockEventsMetadata() {
-        return LockWatchIntegrationTestUtilities.getAllLockEventMetadata(getAllLockWatchEvents());
+        return LockWatchIntegrationTestUtilities.extractMetadata(getAllLockWatchEvents());
     }
 
     private List<LockWatchEvent> getAllLockWatchEvents() {u}(j (22a09052e5cf9f475ac811f157e33b23156561e0j[ ctimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchEventIntegrationTest.javaj] modifiedjU KjV Kj_ Kj` https://github.com/palantir/atlasdb/blob/590140ae5da7270f7c79f1deefdb5cb55589d566/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javajb https://github.com/palantir/atlasdb/raw/590140ae5da7270f7c79f1deefdb5cb55589d566/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javajd https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.java?ref=590140ae5da7270f7c79f1deefdb5cb55589d566jf X9  @@ -398,7 +398,7 @@ private List<Optional<LockRequestMetadata>> lockAndGetAllLockEventMetadataForNew
         List<LockWatchEvent> lockWatchEvents =
                 getUpdateForTransactions(Optional.of(currentVersion), dummyTxn).events();
         dummyTxn.abort();
-        return LockWatchIntegrationTestUtilities.getAllLockEventMetadata(lockWatchEvents);
+        return LockWatchIntegrationTestUtilities.extractMetadata(lockWatchEvents);
     }
 
     private LockRequest lockRequestOf(Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {u}(j (a6850ec52c43c8d5ddc73b6a2c24f75bf3d70e64j[ gtimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchIntegrationTestUtilities.javaj] modifiedjU KjV Kj_ K	j` https://github.com/palantir/atlasdb/blob/590140ae5da7270f7c79f1deefdb5cb55589d566/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchIntegrationTestUtilities.javajb https://github.com/palantir/atlasdb/raw/590140ae5da7270f7c79f1deefdb5cb55589d566/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchIntegrationTestUtilities.javajd https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchIntegrationTestUtilities.java?ref=590140ae5da7270f7c79f1deefdb5cb55589d566jf X  @@ -51,7 +51,6 @@ public final class LockWatchIntegrationTestUtilities {
     private static final String TEST_PACKAGE = "package";
     static final String TABLE = "table";
     static final String TABLE_2 = "rowLevelTable";
-    static final LockEventVisitor LOCK_EVENT_VISITOR = new LockEventVisitor();
 
     private LockWatchIntegrationTestUtilities() {
         // no-op
@@ -108,9 +107,9 @@ public static LockWatchManagerInternal extractInternalLockWatchManager(Transacti
         return (LockWatchManagerInternal) txnManager.getLockWatchManager();
     }
 
-    public static List<Optional<LockRequestMetadata>> getAllLockEventMetadata(List<LockWatchEvent> lockWatchEvents) {
+    public static List<Optional<LockRequestMetadata>> extractMetadata(List<LockWatchEvent> lockWatchEvents) {
         return lockWatchEvents.stream()
-                .map(event -> event.accept(LOCK_EVENT_VISITOR))
+                .map(event -> event.accept(LockEventVisitor.INSTANCE))
                 .flatMap(Optional::stream)
                 .map(LockEvent::metadata)
                 .collect(Collectors.toList());
@@ -201,7 +200,9 @@ public Boolean visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
         }
     }
 
-    private static final class LockEventVisitor implements LockWatchEvent.Visitor<Optional<LockEvent>> {
+    private enum LockEventVisitor implements LockWatchEvent.Visitor<Optional<LockEvent>> {
+        INSTANCE;
+
         @Override
         public Optional<LockEvent> visit(LockEvent lockEvent) {
             return Optional.of(lockEvent);ueu(2059642f7fb2d8b06b2089d4d7b87ab0390002f9}(sha(2059642f7fb2d8b06b2089d4d7b87ab0390002f9node_idEC_kwDOAjP5fdoAKDIwNTk2NDJmN2ZiMmQ4YjA2YjIwODlkNGQ3Yjg3YWIwMzkwMDAyZjkcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-11T17:47:15Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-04-11T17:47:35Zumessage8Create a separate interface for interactive transactionstree}(jz (9d55ca758a2a4b9009c111a22dc6935806b12913url`https://api.github.com/repos/palantir/atlasdb/git/trees/9d55ca758a2a4b9009c111a22dc6935806b12913uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2059642f7fb2d8b06b2089d4d7b87ab0390002f9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ1nTcACgkQmPPOpKR4
XS1GYgf+Ka+N0Oq8QExDJKfM1oHG8R7mf5YBzXbE4Ikw/bSlScs93pp8mbe6cPoc
y0SCgj8sK+HCvMj7zGFDlZh9rD/HMw8JyN398PR9dAN+nknnTdesTvxqqeuVuj6a
Mh8QVIzE19oDD+oxmmEuPPt2ZCo5VXDnXvCB97IP09j3ZjQULUfjW52o1oLSkUgj
8v5vV/U0vsGSiIisbMa+7hyXbLPt5rx+Osq8KEo4Yk0fFMEarS1P5gs3zOt/Aqkj
Aq0JaMVZZjd3m1MEpbrdAJZ9/pGOxEWneXmPujO3HzaFE4oPhM7kLUR+DWE8eJ4W
+7LtaX2RMNXln9H4XIesVHn5SBlC0Q==
=KhaB
-----END PGP SIGNATURE-----payloadX  tree 9d55ca758a2a4b9009c111a22dc6935806b12913
parent 7a8b5f26f23166c4a0cf30b44f4066044079a185
author Sam Kramer <skramer@palantir.com> 1681235235 +0100
committer Sam Kramer <skramer@palantir.com> 1681235255 +0100

Create a separate interface for interactive transactions
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/2059642f7fb2d8b06b2089d4d7b87ab0390002f9html_urlShttps://github.com/palantir/atlasdb/commit/2059642f7fb2d8b06b2089d4d7b87ab0390002f9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2059642f7fb2d8b06b2089d4d7b87ab0390002f9/commentsj }(login
Sam-KrameridJ^2_ j| MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j| MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jz (7a8b5f26f23166c4a0cf30b44f4066044079a185j ^https://api.github.com/repos/palantir/atlasdb/commits/7a8b5f26f23166c4a0cf30b44f4066044079a185j Shttps://github.com/palantir/atlasdb/commit/7a8b5f26f23166c4a0cf30b44f4066044079a185uastats}(totalK)	additionsK	deletionsK
ufiles](}(jz (1004af4e079565ca27e0a30f12f387662f8d5af6filenamenatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/InteractiveTransactionStore.javastatusaddedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/2059642f7fb2d8b06b2089d4d7b87ab0390002f9/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2059642f7fb2d8b06b2089d4d7b87ab0390002f9/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.java?ref=2059642f7fb2d8b06b2089d4d7b87ab0390002f9patchX  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.Optional;
+import java.util.function.Consumer;
+
+public interface InteractiveTransactionStore extends TransactionStore {
+    /**
+     * Provides a convenient interface for interacting with a transaction, and having each action automatically recorded.
+     * @param interactiveTransactionConsumer Consumer which performs gets/puts/deletes
+     * @return The witnessed transaction, if successfully committed.
+     */
+    Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer);
+}u}(jz (8d96b166fe052e818ea2430f7bd5ae5fbe29f426j catlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStore.javaj modifiedj K j K	j K	j https://github.com/palantir/atlasdb/blob/2059642f7fb2d8b06b2089d4d7b87ab0390002f9/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.javaj https://github.com/palantir/atlasdb/raw/2059642f7fb2d8b06b2089d4d7b87ab0390002f9/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.java?ref=2059642f7fb2d8b06b2089d4d7b87ab0390002f9j Xc  @@ -16,12 +16,10 @@
 
 package com.palantir.atlasdb.workload.store;
 
-import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import java.util.List;
 import java.util.Optional;
-import java.util.function.Consumer;
 
 /**
  * A transactional store for the workload server to read/write from.
@@ -35,11 +33,4 @@ public interface TransactionStore extends ReadableTransactionStore {
      * @return The witnessed transaction, if successfully committed.
      */
     Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions);
-
-    /**
-     * Provides a convenient interface for interacting with a transaction, and having each action automatically recorded.
-     * @param interactiveTransactionConsumer Consumer which performs gets/puts/deletes
-     * @return The witnessed transaction, if successfully committed.
-     */
-    Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer);
 }u}(jz (1dde2062932c9a3778110dd4074eee9d1b300cbbj fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/2059642f7fb2d8b06b2089d4d7b87ab0390002f9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://github.com/palantir/atlasdb/raw/2059642f7fb2d8b06b2089d4d7b87ab0390002f9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=2059642f7fb2d8b06b2089d4d7b87ab0390002f9j X  @@ -45,7 +45,7 @@
 import javax.annotation.concurrent.NotThreadSafe;
 import one.util.streamex.EntryStream;
 
-public final class AtlasDbTransactionStore implements TransactionStore {
+public final class AtlasDbTransactionStore implements InteractiveTransactionStore {
 
     private static final SafeLogger log = SafeLoggerFactory.get(AtlasDbTransactionStore.class);
     private final TransactionManager transactionManager;ueu(75e811c802f52834962b027c0ff599a1d00d205e}(sha(75e811c802f52834962b027c0ff599a1d00d205enode_idEC_kwDOAjP5fdoAKDc1ZTgxMWM4MDJmNTI4MzQ5NjJiMDI3YzBmZjU5OWExZDAwZDIwNWUcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-15T13:40:37Zu	committer}(j	 svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj
 2023-05-15T13:40:37Zumessage"Autorelease 0.854.0-rc2

[skip ci]tree}(j (457e53a9db790a95888dfee93bc403f75388b1b0url`https://api.github.com/repos/palantir/atlasdb/git/trees/457e53a9db790a95888dfee93bc403f75388b1b0uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/75e811c802f52834962b027c0ff599a1d00d205e
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRiNlYACgkQhbrR8ip7mDCwuwEA5b9sMajxFnadJ7ukjq4WAYXr
wz07sgT99QFX45fjGKEA/1QMgoFjtS7hJYz5He+OWfxkbZBZzftC4iGAqCWLXaso
=kX4a
-----END PGP SIGNATURE-----
payloadX(  tree 457e53a9db790a95888dfee93bc403f75388b1b0
parent 7b9ddf867bba22bc8cc91b30b4fff3b81bc248ce
author aalouane <30903736+ergo14@users.noreply.github.com> 1684158037 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684158037 +0000

Autorelease 0.854.0-rc2

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/75e811c802f52834962b027c0ff599a1d00d205ehtml_urlShttps://github.com/palantir/atlasdb/commit/75e811c802f52834962b027c0ff599a1d00d205ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/75e811c802f52834962b027c0ff599a1d00d205e/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j' https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j, svc-autoreleasej. J(j MDQ6VXNlcjUxNzE4MzQ2j0 4https://avatars.githubusercontent.com/u/51718346?v=4j2 h5j ,https://api.github.com/users/svc-autoreleasej' "https://github.com/svc-autoreleasej5 6https://api.github.com/users/svc-autorelease/followersj7 Chttps://api.github.com/users/svc-autorelease/following{/other_user}j9 <https://api.github.com/users/svc-autorelease/gists{/gist_id}j; Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j= :https://api.github.com/users/svc-autorelease/subscriptionsj? 1https://api.github.com/users/svc-autorelease/orgsjA 2https://api.github.com/users/svc-autorelease/reposjC =https://api.github.com/users/svc-autorelease/events{/privacy}jE <https://api.github.com/users/svc-autorelease/received_eventsjG UserjI uparents]}(j (7b9ddf867bba22bc8cc91b30b4fff3b81bc248cej ^https://api.github.com/repos/palantir/atlasdb/commits/7b9ddf867bba22bc8cc91b30b4fff3b81bc248ce
     j' Shttps://github.com/palantir/atlasdb/commit/7b9ddf867bba22bc8cc91b30b4fff3b81bc248ceuastats}(totalK 	additionsK 	deletionsK ufiles]u(8cfbc0339a2b640e5318ea4a47683cad51cb4210}(sha(8cfbc0339a2b640e5318ea4a47683cad51cb4210node_idEC_kwDOAjP5fdoAKDhjZmJjMDMzOWEyYjY0MGU1MzE4ZWE0YTQ3NjgzY2FkNTFjYjQyMTAcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-25T11:22:51Zu	committer}(jq 
Ahmed Alouanejs aalouane@palantir.comju 2023-04-25T11:22:51ZumessageDMerge branch 'aaflakes' of github.com:palantir/atlasdb into aaflakestree}(ji (cf6ddb1ae88770d7e5fc2cc2df09ae3ca4427bc9url`https://api.github.com/repos/palantir/atlasdb/git/trees/cf6ddb1ae88770d7e5fc2cc2df09ae3ca4427bc9uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8cfbc0339a2b640e5318ea4a47683cad51cb4210
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRHuA0ACgkQPlMHVIT1
yhp0rggAoNrw1GwIKPGKzWsSdVd7++qsN5CIi3ta5svY+k7NZQ+P5ef8JtvvXasb
W0z4YrueXPmI4VvOgPQ9/zihaIhjnF2XxSn+G2o5Fwox5q6+EqkexsfXabkANyIn
ooiIBrsmMoYT6/LTyxmHN+q8Ejp2CLv1sQ025pAkUTPxF+gnM/ZfrWrLEPJdhtTa
ve6BCoiBOIV5ZZ7yorkz+eVTo1LP6AzkBrlj3AfwnJ8q0TAWjhYvmLPVw4YsbeLt
cwYRjz/EFCafN3XuATnGERjrkP5eUvY12Anlj7I2iHX0SszjOYaox8seWsi4ogcl
2WUGlHSc5UGJOUPg4Fy4+XZo2Hn8BA==
=mkww
-----END PGP SIGNATURE-----payloadXS  tree cf6ddb1ae88770d7e5fc2cc2df09ae3ca4427bc9
parent a2222930957cd842eb796a6602fde16a6e92b3cf
parent 3521a7f14cba2bd5c840ecdedfcb6f459e1a6cf1
author Ahmed Alouane <aalouane@palantir.com> 1682421771 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682421771 +0100

Merge branch 'aaflakes' of github.com:palantir/atlasdb into aaflakes
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/8cfbc0339a2b640e5318ea4a47683cad51cb4210html_urlShttps://github.com/palantir/atlasdb/commit/8cfbc0339a2b640e5318ea4a47683cad51cb4210comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8cfbc0339a2b640e5318ea4a47683cad51cb4210/commentsjo }(loginergo14idJjk MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujw }(j ergo14j Jjk MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents](}(ji (a2222930957cd842eb796a6602fde16a6e92b3cfj ^https://api.github.com/repos/palantir/atlasdb/commits/a2222930957cd842eb796a6602fde16a6e92b3cfj Shttps://github.com/palantir/atlasdb/commit/a2222930957cd842eb796a6602fde16a6e92b3cfu}(ji (3521a7f14cba2bd5c840ecdedfcb6f459e1a6cf1j ^https://api.github.com/repos/palantir/atlasdb/commits/3521a7f14cba2bd5c840ecdedfcb6f459e1a6cf1j Shttps://github.com/palantir/atlasdb/commit/3521a7f14cba2bd5c840ecdedfcb6f459e1a6cf1uestats}(totalK	additionsK	deletionsK ufiles]}(ji (7704c4f40f9407a6ec34cfd4976c31f5757d7911filename$changelog/@unreleased/pr-6541.v2.ymlstatusaddedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/8cfbc0339a2b640e5318ea4a47683cad51cb4210/changelog%2F%40unreleased%2Fpr-6541.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/8cfbc0339a2b640e5318ea4a47683cad51cb4210/changelog%2F%40unreleased%2Fpr-6541.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6541.v2.yml?ref=8cfbc0339a2b640e5318ea4a47683cad51cb4210patch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[CBT] Retry flaky tests'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6541uau(6454430d53f6f50996847261c013f897d550e91a}(sha(6454430d53f6f50996847261c013f897d550e91anode_idEC_kwDOAjP5fdoAKDY0NTQ0MzBkNTNmNmY1MDk5Njg0NzI2MWMwMTNmODk3ZDU1MGU5MWEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-02-27T12:52:03Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-02-28T10:41:56Zumessageinvariant - stashtree}(j (f38bf0e4e721aecef2a37629f4b1eb26612d28feurl`https://api.github.com/repos/palantir/atlasdb/git/trees/f38bf0e4e721aecef2a37629f4b1eb26612d28feuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6454430d53f6f50996847261c013f897d550e91a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmP92nQACgkQmPPOpKR4
XS0vuAgAkOZ1zM/TL0uYJSsoabwaxfladUzuG1Alhj4nLOhZDB5V/XBHAQYoWzTJ
xvi9Q/LVGGq9dmhFmUTk1qOyWrZcpJPnx2ROy/xKUqyEOieGn4IovyoQMb/tZECI
1vH5HxRoYDN+fqQM2+RXnc6O9dqqNB8N6XJq5mt1JFGEKvvcASugyyXTcD2Fb8mp
VT4rNGAE6XlVDHlqMlc+imIfZJRvem6Omo+oFxhRM02LLChxlnk0/N6qXAKana2/
q4cnrnDaAW40YyBCkaWj0Hy9qcxQfN/4EnH/0kbjp+eNOpPqSITei81TD0X9Be4n
g4t2+t4uphrA7GkM/Y6QK2we/NdPFg==
=s3KQ
-----END PGP SIGNATURE-----payloadtree f38bf0e4e721aecef2a37629f4b1eb26612d28fe
parent 93e21c80431d269d5e6ea469a36c4604208d2a82
author Sam Kramer <skramer@palantir.com> 1677502323 +0000
committer Sam Kramer <skramer@palantir.com> 1677580916 +0000

invariant - stash
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/6454430d53f6f50996847261c013f897d550e91ahtml_urlShttps://github.com/palantir/atlasdb/commit/6454430d53f6f50996847261c013f897d550e91acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6454430d53f6f50996847261c013f897d550e91a/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj
 https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj
 https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j  5https://api.github.com/users/Sam-Kramer/subscriptionsj" ,https://api.github.com/users/Sam-Kramer/orgsj$ -https://api.github.com/users/Sam-Kramer/reposj& 8https://api.github.com/users/Sam-Kramer/events{/privacy}j( 7https://api.github.com/users/Sam-Kramer/received_eventsj* Userj, uparents]}(j (93e21c80431d269d5e6ea469a36c4604208d2a82j ^https://api.github.com/repos/palantir/atlasdb/commits/93e21c80431d269d5e6ea469a36c4604208d2a82j
 Shttps://github.com/palantir/atlasdb/commit/93e21c80431d269d5e6ea469a36c4604208d2a82uastats}(totalK	additionsK	deletionsK ufiles](}(j (55a535dfa1a52ca3df17e37cba498050c333f70dfilenameVatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/Invariant.javastatusaddedjF KjG K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/6454430d53f6f50996847261c013f897d550e91a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FInvariant.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6454430d53f6f50996847261c013f897d550e91a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FInvariant.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FInvariant.java?ref=6454430d53f6f50996847261c013f897d550e91apatchXp  @@ -0,0 +1,23 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload;
+
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+
+import java.util.function.Consumer;
+
+public interface Invariant extends Consumer<WorkflowHistory> {}u}(j (08dd9060ab8150d1bd2241906478794d9f4205b5jL iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariant.javajN addedjF KwjG K jP KwjQ https://github.com/palantir/atlasdb/blob/6454430d53f6f50996847261c013f897d550e91a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javajS https://github.com/palantir/atlasdb/raw/6454430d53f6f50996847261c013f897d550e91a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javajU https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.java?ref=6454430d53f6f50996847261c013f897d550e91ajW X  @@ -0,0 +1,119 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.google.common.collect.HashBasedTable;
+import com.google.common.collect.Table;
+import com.palantir.atlasdb.workload.Invariant;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+
+import javax.annotation.concurrent.NotThreadSafe;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Set;
+
+public class DurableWritesInvariant implements Invariant {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(AtlasDbTransactionStore.class);
+
+    @Override
+    public void accept(WorkflowHistory workflowHistory) {
+        InMemoryKvsTransactionReplayer replayer = new InMemoryKvsTransactionReplayer();
+        workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .forEach(witnessedTransactionActions ->
+                        witnessedTransactionActions.forEach(action -> action.accept(replayer)));
+        replayer.getTables().forEach(tableName -> {
+            replayer.getValues(tableName).forEach((cell, value) -> {
+                boolean equalValues = workflowHistory
+                        .transactionStore()
+                        .get(tableName, cell)
+                        .map(value::equals)
+                        .orElse(false);
+                if (!equalValues) {
+                    log.error(
+                            "InMemoryKvs does not match external KVS.",
+                            SafeArg.of("table", tableName),
+                            SafeArg.of("cell", cell),
+                            SafeArg.of("expectedValue", value));
+                }
+            });
+        });
+    }
+
+    @NotThreadSafe
+    private static class InMemoryKvsTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
+
+        private final Table<String, WorkloadCell, Integer> kvs = HashBasedTable.create();
+        private final Map<String, WorkloadCell> deletedCells = new HashMap<>();
+        private boolean hasFinished = false;
+
+        @Override
+        public Void visit(WitnessedReadTransactionAction readTransactionAction) {
+            checkMutable();
+            return null;
+        }
+
+        @Override
+        public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
+            checkMutable();
+            kvs.put(writeTransactionAction.table(), writeTransactionAction.cell(), writeTransactionAction.value());
+            deletedCells.remove(writeTransactionAction.cell());
+            return null;
+        }
+
+        @Override
+        public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+            checkMutable();
+            kvs.remove(deleteTransactionAction.table(), deleteTransactionAction.cell());
+            deletedCells.put(deleteTransactionAction.table(), deleteTransactionAction.cell());
+            return null;
+        }
+
+        private void checkMutable() {
+            Preconditions.checkState(
+                    !hasFinished, "Cannot replay transaction, as we've already calculated our view of the KVS.");
+        }
+
+        private Set<String> getTables() {
+            hasFinished = true;
+            return Collections.unmodifiableSet(kvs.rowKeySet());
+        }
+
+        private Map<WorkloadCell, Integer> getValues(String tableName) {
+            hasFinished = true;
+            return Collections.unmodifiableMap(kvs.row(tableName));
+        }
+
+        private Map<String, WorkloadCell> getDeletedCells() {
+            hasFinished = true;
+            return Collections.unmodifiableMap(deletedCells);
+        }
+    }
+}ueu(d962a53deada302b0533028b2b3cbe6b6fa2ba81}(sha(d962a53deada302b0533028b2b3cbe6b6fa2ba81node_idEC_kwDOAjP5fdoAKGQ5NjJhNTNkZWFkYTMwMmIwNTMzMDI4YjJiM2NiZTZiNmZhMmJhODEcommit}(author}(name
Louis Bembergemaillbemberg@palantir.comdate2023-05-10T15:19:39Zu	committer}(jk 
Louis Bembergjm lbemberg@palantir.comjo 2023-05-10T15:19:39Zumessage remove {} from max retry loglinetree}(jc (f35179723c69b170d96cd3f3cea6990d02109651url`https://api.github.com/repos/palantir/atlasdb/git/trees/f35179723c69b170d96cd3f3cea6990d02109651uj{ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d962a53deada302b0533028b2b3cbe6b6fa2ba81
comment_countK verification}(verifiedreasonno_user	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEWASyGscg/aE7qfKTryYcV6eKVuAFAmRbtgsACgkQryYcV6eK
VuBWOwgAhCf4rfn4bF3szcq21Y64GBRd9178+gIZzRq8fhA742d4NQul358BLDIc
LLA4tXaUgkKYniwzgorq04urYhPXY1kvYrXjkpgS/zKfqVO/8xHS1/DXfhjCYFQx
56r6H65gPE4DODha72AAK3JmZ0zL+54FAmlna0p608t4ZJRnRjSjXOcojegKOBro
a84mm6HlgOsxW8Ss3+baGjvaM3F7+YjVest/eKFx+dpEatZOcmb9pkEnvcjADNSN
ncu+FHC8LEaJLCzXivB9cCR7Lnj/3axDUtPOJzx8qtuOvxwFfAJ58F3S5Ensw/p/
r2nOTL4Hi8MG0Z6WGmTihK2GmdNZ0g==
=//cV
-----END PGP SIGNATURE-----payloadtree f35179723c69b170d96cd3f3cea6990d02109651
parent 1d664a5892626f486deb6ef73d4bccd33ffa5c87
author Louis Bemberg <lbemberg@palantir.com> 1683731979 -0400
committer Louis Bemberg <lbemberg@palantir.com> 1683731979 -0400

remove {} from max retry logline
uuj{ ^https://api.github.com/repos/palantir/atlasdb/commits/d962a53deada302b0533028b2b3cbe6b6fa2ba81html_urlShttps://github.com/palantir/atlasdb/commit/d962a53deada302b0533028b2b3cbe6b6fa2ba81comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d962a53deada302b0533028b2b3cbe6b6fa2ba81/commentsji Njq Nparents]}(jc (1d664a5892626f486deb6ef73d4bccd33ffa5c87j{ ^https://api.github.com/repos/palantir/atlasdb/commits/1d664a5892626f486deb6ef73d4bccd33ffa5c87j Shttps://github.com/palantir/atlasdb/commit/1d664a5892626f486deb6ef73d4bccd33ffa5c87uastats}(totalK	additionsK	deletionsKufiles]}(jc (873fe01fb2bcd122671ed8446a4741d208fbfa02filenamekatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AdvisoryLockConditionSuppliers.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/d962a53deada302b0533028b2b3cbe6b6fa2ba81/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d962a53deada302b0533028b2b3cbe6b6fa2ba81/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.java?ref=d962a53deada302b0533028b2b3cbe6b6fa2ba81patchX  @@ -82,7 +82,10 @@ private static HeldLocksToken acquireLock(LockService lockService, LockRequest l
                         ++failureCount;
                         log.warn("Could not lock successfully", SafeArg.of("failureCount", failureCount), ex);
                         if (failureCount >= NUM_RETRIES) {
-                            log.warn("Failing after {} tries", SafeArg.of("failureCount", failureCount), ex);
+                            log.warn(
+                                    "Failing after exceeding maximum tries",
+                                    SafeArg.of("failureCount", failureCount),
+                                    ex);
                             throw ex;
                         }
                         break;uau(143be05923383c9ea844ab41a19b4e0a324bd87c}(sha(143be05923383c9ea844ab41a19b4e0a324bd87cnode_idEC_kwDOAjP5fdoAKDE0M2JlMDU5MjMzODNjOWVhODQ0YWI0MWExOWI0ZTBhMzI0YmQ4N2Mcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-17T10:06:09Zu	committer}(j GitHubj noreply@github.comj 2023-04-17T10:06:09ZumessageXv  [PDS-350703 and Others | i like trains] Part 2: ListenableFutures and the AsyncTimelockService (#6520)

* latr

* timestamp

* lock updates

* boing

* fix

* spotless

* checkpoint

* slice and dice

* this should not be here

* Add generated changelog entries

* legacy

* common core educational standards

* scratch

* extraction

* chop and change

* strict unused variable

* CR comments

* primitive

* spotless

* Autorelease 0.833.0-rc1

[skip ci]

* CR feedback

* Autorelease 0.833.0-rc2

[skip ci]

---------

Co-authored-by: svc-changelog <svc-changelog@palantir.com>tree}(j (94a612b51ac0dc72bd4780b440e09a03d83cba1eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/94a612b51ac0dc72bd4780b440e09a03d83cba1euj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/143be05923383c9ea844ab41a19b4e0a324bd87c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkPRoRCRBK7hj4Ov3rIwAAYecIAHuNPYzb+xnhAJ+/H8YEymUv
eCPWELkv14lgI02h9tu5APwcA2W+JVRJLF765Wi9BreLhfTygTxpnDBHPyT8BEjb
NIduQETLiKsYcVYWtcbkDYVwy0dDblnMAMYY7F93wTHbPxWbA/r5HF+FqgbNf2s+
oCZO70DFilj2rPYxA+laokcwyKuo9AF2vc646CVWtlVr0ozPTDtzkopbk68bmBPi
EBbL+loeKfu9GFWgnQItpcKCB5IZbcL90Wjs0tq8tAEeiHm5fvb6OUAbzSyuWeIo
EKRQOvnJIHUes+xO9u486qai4ZdDaViVY6VBjcb9hmynkFxPCMa6Z933LSvd658=
=5Wm1
-----END PGP SIGNATURE-----
payloadXE  tree 94a612b51ac0dc72bd4780b440e09a03d83cba1e
parent 219f56b4327bf35c71bf5d10028da2d022eccc1f
author Jeremy Kong <jkong@palantir.com> 1681725969 +0100
committer GitHub <noreply@github.com> 1681725969 +0100

[PDS-350703 and Others | i like trains] Part 2: ListenableFutures and the AsyncTimelockService (#6520)

* latr

* timestamp

* lock updates

* boing

* fix

* spotless

* checkpoint

* slice and dice

* this should not be here

* Add generated changelog entries

* legacy

* common core educational standards

* scratch

* extraction

* chop and change

* strict unused variable

* CR comments

* primitive

* spotless

* Autorelease 0.833.0-rc1

[skip ci]

* CR feedback

* Autorelease 0.833.0-rc2

[skip ci]

---------

Co-authored-by: svc-changelog <svc-changelog@palantir.com>uuj ^https://api.github.com/repos/palantir/atlasdb/commits/143be05923383c9ea844ab41a19b4e0a324bd87chtml_urlShttps://github.com/palantir/atlasdb/commit/143be05923383c9ea844ab41a19b4e0a324bd87ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/143be05923383c9ea844ab41a19b4e0a324bd87c/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j (219f56b4327bf35c71bf5d10028da2d022eccc1fj ^https://api.github.com/repos/palantir/atlasdb/commits/219f56b4327bf35c71bf5d10028da2d022eccc1fj Shttps://github.com/palantir/atlasdb/commit/219f56b4327bf35c71bf5d10028da2d022eccc1fuastats}(totalM	additionsM-	deletionsKufiles](}(j (5cdcabaa8268eb540f0ccfc73d1fe1870eb88dadfilenameXatlasdb-tests-shared/src/main/java/com/palantir/timelock/paxos/InMemoryTimeLockRule.javastatusmodifiedj
 Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/143be05923383c9ea844ab41a19b4e0a324bd87c/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimeLockRule.javaraw_urlhttps://github.com/palantir/atlasdb/raw/143be05923383c9ea844ab41a19b4e0a324bd87c/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimeLockRule.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimeLockRule.java?ref=143be05923383c9ea844ab41a19b4e0a324bd87cpatchX  @@ -17,9 +17,9 @@
 package com.palantir.timelock.paxos;
 
 import com.palantir.atlasdb.keyvalue.api.watch.LockWatchManagerInternal;
-import com.palantir.atlasdb.timelock.AsyncTimelockResource;
 import com.palantir.atlasdb.timelock.AsyncTimelockService;
 import com.palantir.atlasdb.timelock.TimeLockServices;
+import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.lock.LockService;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.timestamp.ManagedTimestampService;
@@ -66,11 +66,6 @@ public LockService getLockService() {
         return services.getLockService();
     }
 
-    @Override
-    public AsyncTimelockResource getTimelockResource() {
-        return services.getTimelockResource();
-    }
-
     @Override
     public AsyncTimelockService getTimelockService() {
         return services.getTimelockService();
@@ -81,6 +76,11 @@ public TimestampManagementService getTimestampManagementService() {
         return services.getTimestampManagementService();
     }
 
+    @Override
+    public LockLog getLockLog() {
+        return services.getLockLog();
+    }
+
     public TimelockService getLegacyTimelockService() {
         return services.getLegacyTimelockService();
     }u}(j (fd1072fee241e64f646b79a5c47f7f4c01826392j \atlasdb-tests-shared/src/main/java/com/palantir/timelock/paxos/InMemoryTimelockServices.javaj modifiedj
 Kj Kj Kj https://github.com/palantir/atlasdb/blob/143be05923383c9ea844ab41a19b4e0a324bd87c/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.javaj https://github.com/palantir/atlasdb/raw/143be05923383c9ea844ab41a19b4e0a324bd87c/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.java?ref=143be05923383c9ea844ab41a19b4e0a324bd87cj X  @@ -21,11 +21,11 @@
 import com.palantir.atlasdb.http.RedirectRetryTargeter;
 import com.palantir.atlasdb.keyvalue.api.LockWatchCachingConfig;
 import com.palantir.atlasdb.keyvalue.api.watch.LockWatchManagerInternal;
-import com.palantir.atlasdb.timelock.AsyncTimelockResource;
 import com.palantir.atlasdb.timelock.AsyncTimelockService;
 import com.palantir.atlasdb.timelock.ConjureTimelockResource;
 import com.palantir.atlasdb.timelock.TimeLockServices;
 import com.palantir.atlasdb.timelock.api.ConjureTimelockService;
+import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.conjure.java.api.config.service.PartialServiceConfiguration;
@@ -205,11 +205,6 @@ public LockService getLockService() {
         return delegate.getLockService();
     }
 
-    @Override
-    public AsyncTimelockResource getTimelockResource() {
-        return delegate.getTimelockResource();
-    }
-
     @Override
     public AsyncTimelockService getTimelockService() {
         return delegate.getTimelockService();
@@ -220,6 +215,11 @@ public TimestampManagementService getTimestampManagementService() {
         return delegate.getTimestampManagementService();
     }
 
+    @Override
+    public LockLog getLockLog() {
+        return delegate.getLockLog();
+    }
+
     public ManagedTimestampService getManagedTimestampService() {
         return delegate.getTimelockService();
     }u}(j (018c6439ead4edc16d259b99aa429c98a1e7960aj Ztimelock-agent/src/main/java/com/palantir/timelock/paxos/AsyncTimeLockServicesCreator.javaj modifiedj
 Kj Kj Kj https://github.com/palantir/atlasdb/blob/143be05923383c9ea844ab41a19b4e0a324bd87c/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.javaj https://github.com/palantir/atlasdb/raw/143be05923383c9ea844ab41a19b4e0a324bd87c/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FAsyncTimeLockServicesCreator.java?ref=143be05923383c9ea844ab41a19b4e0a324bd87cj Xr  @@ -18,7 +18,6 @@
 import com.codahale.metrics.InstrumentedScheduledExecutorService;
 import com.google.common.base.Suppliers;
 import com.palantir.atlasdb.debug.LockDiagnosticConfig;
-import com.palantir.atlasdb.timelock.AsyncTimelockResource;
 import com.palantir.atlasdb.timelock.AsyncTimelockService;
 import com.palantir.atlasdb.timelock.AsyncTimelockServiceImpl;
 import com.palantir.atlasdb.timelock.TimeLockServices;
@@ -73,16 +72,13 @@ public TimeLockServices createTimeLockServices(
                 AsyncTimelockService.class,
                 () -> createRawAsyncTimelockService(client, rawTimestampServiceSupplier, maybeEnhancedLockLog));
 
-        AsyncTimelockResource asyncTimelockResource =
-                new AsyncTimelockResource(maybeEnhancedLockLog, asyncTimelockService);
-
         LockService lockService = leadershipComponents.wrapInLeadershipProxy(
                 client,
                 LockService.class,
                 Suppliers.compose(NonTransactionalLockService::new, rawLockServiceSupplier::get));
 
         return TimeLockServices.create(
-                asyncTimelockService, lockService, asyncTimelockService, asyncTimelockResource, asyncTimelockService);
+                asyncTimelockService, lockService, asyncTimelockService, asyncTimelockService, maybeEnhancedLockLog);
     }
 
     private AsyncTimelockService createRawAsyncTimelockService(u}(j (c20be1260b8abc608cf4fcf7f917f2b4831730d0j Ytimelock-agent/src/main/java/com/palantir/timelock/paxos/NonConjureTimelockResources.javaj modifiedj
 Kj Kj K	j https://github.com/palantir/atlasdb/blob/143be05923383c9ea844ab41a19b4e0a324bd87c/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FNonConjureTimelockResources.javaj https://github.com/palantir/atlasdb/raw/143be05923383c9ea844ab41a19b4e0a324bd87c/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FNonConjureTimelockResources.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FNonConjureTimelockResources.java?ref=143be05923383c9ea844ab41a19b4e0a324bd87cj X+  @@ -18,13 +18,16 @@
 
 import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.http.RedirectRetryTargeter;
+import com.palantir.atlasdb.timelock.JerseyAsyncTimelockResource;
 import com.palantir.atlasdb.timelock.LockV1Resource;
 import com.palantir.atlasdb.timelock.LockV1ResourceEndpoints;
 import com.palantir.atlasdb.timelock.TimelockNamespaces;
 import com.palantir.atlasdb.timelock.TimestampManagementResource;
 import com.palantir.atlasdb.timelock.TimestampManagementResourceEndpoints;
 import com.palantir.atlasdb.timelock.TimestampResource;
 import com.palantir.atlasdb.timelock.TimestampResourceEndpoints;
+import com.palantir.atlasdb.timelock.UndertowAsyncTimelockResource;
+import com.palantir.atlasdb.timelock.UndertowAsyncTimelockResourceEndpoints;
 import com.palantir.conjure.java.undertow.lib.UndertowService;
 import java.util.Set;
 import java.util.stream.Collectors;
@@ -39,7 +42,8 @@ public static Set<UndertowService> createUndertowServices(
         Set<UndertowService> rawServices = ImmutableSet.of(
                 LockV1ResourceEndpoints.of(new LockV1Resource(namespaces)),
                 TimestampResourceEndpoints.of(new TimestampResource(namespaces)),
-                TimestampManagementResourceEndpoints.of(new TimestampManagementResource(namespaces)));
+                TimestampManagementResourceEndpoints.of(new TimestampManagementResource(namespaces)),
+                UndertowAsyncTimelockResourceEndpoints.of(new UndertowAsyncTimelockResource(namespaces)));
 
         return rawServices.stream()
                 .map(service -> new TimelockUndertowExceptionWrapper(service, redirectRetryTargeter))
@@ -50,6 +54,7 @@ public static Set<Object> createJerseyResources(TimelockNamespaces namespaces) {
         return ImmutableSet.of(
                 new LockV1Resource(namespaces),
                 new TimestampResource(namespaces),
-                new TimestampManagementResource(namespaces));
+                new TimestampManagementResource(namespaces),
+                new JerseyAsyncTimelockResource(namespaces));
     }
 }u}(j (982216eae6a97fa1a8433e4f0cc254b2857140edj Ktimelock-agent/src/main/java/com/palantir/timelock/paxos/TimeLockAgent.javaj modifiedj
 K j Kj Kj https://github.com/palantir/atlasdb/blob/143be05923383c9ea844ab41a19b4e0a324bd87c/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javaj https://github.com/palantir/atlasdb/raw/143be05923383c9ea844ab41a19b4e0a324bd87c/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.java?ref=143be05923383c9ea844ab41a19b4e0a324bd87cj X  @@ -37,7 +37,6 @@
 import com.palantir.atlasdb.timelock.AsyncTimelockService;
 import com.palantir.atlasdb.timelock.ConjureLockWatchingResource;
 import com.palantir.atlasdb.timelock.ConjureTimelockResource;
-import com.palantir.atlasdb.timelock.TimeLockResource;
 import com.palantir.atlasdb.timelock.TimeLockServices;
 import com.palantir.atlasdb.timelock.TimelockNamespaces;
 import com.palantir.atlasdb.timelock.TooManyRequestsExceptionMapper;
@@ -327,9 +326,6 @@ private void createAndRegisterResources() {
         registerManagementResource();
         healthCheck = paxosResources.leadershipComponents().healthCheck(namespaces::getActiveClients);
 
-        TimeLockResource resource = TimeLockResource.create(namespaces);
-        registrar.accept(resource);
-
         Function<String, LockService> lockServiceGetter =
                 namespace -> namespaces.get(namespace).getLockService();
         Function<String, AsyncTimelockService> asyncTimelockServiceGetter =u}(j (64e90b93bcb2fa62910271990ef185551e5c62adj Stimelock-impl/src/main/java/com/palantir/atlasdb/timelock/AsyncTimelockService.javaj modifiedj
 K*j K j K*j https://github.com/palantir/atlasdb/blob/143be05923383c9ea844ab41a19b4e0a324bd87c/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockService.javaj https://github.com/palantir/atlasdb/raw/143be05923383c9ea844ab41a19b4e0a324bd87c/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockService.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockService.java?ref=143be05923383c9ea844ab41a19b4e0a324bd87cj Xd
  @@ -15,15 +15,21 @@
  */
 package com.palantir.atlasdb.timelock;
 
+import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.timelock.api.ConjureStartTransactionsRequest;
 import com.palantir.atlasdb.timelock.api.ConjureStartTransactionsResponse;
 import com.palantir.atlasdb.timelock.api.GetCommitTimestampsResponse;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingService;
 import com.palantir.lock.client.IdentifiedLockRequest;
 import com.palantir.lock.v2.IdentifiedTimeLockRequest;
+import com.palantir.lock.v2.ImmutableStartTransactionResponseV4;
 import com.palantir.lock.v2.LeaderTime;
+import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.LockResponseV2;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.v2.RefreshLockResponseV2;
 import com.palantir.lock.v2.StartAtlasDbTransactionResponse;
 import com.palantir.lock.v2.StartAtlasDbTransactionResponseV3;
 import com.palantir.lock.v2.StartIdentifiedAtlasDbTransactionRequest;
@@ -36,6 +42,7 @@
 import com.palantir.timestamp.TimestampRange;
 import java.io.Closeable;
 import java.util.Optional;
+import java.util.Set;
 
 public interface AsyncTimelockService
         extends BackupTimeLockServiceView, ManagedTimestampService, LockWatchingService, Closeable {
@@ -63,4 +70,39 @@ ListenableFuture<GetCommitTimestampsResponse> getCommitTimestamps(
     ListenableFuture<LeaderTime> leaderTime();
 
     ListenableFuture<TimestampRange> getFreshTimestampsAsync(int timestampsToRequest);
+
+    default ListenableFuture<Long> getFreshTimestampAsync() {
+        return Futures.transform(
+                getFreshTimestampsAsync(1), TimestampRange::getLowerBound, MoreExecutors.directExecutor());
+    }
+
+    default ListenableFuture<StartTransactionResponseV4> startTransactionsAsync(StartTransactionRequestV4 request) {
+        ConjureStartTransactionsRequest conjureRequest = ConjureStartTransactionsRequest.builder()
+                .requestId(request.requestId())
+                .requestorId(request.requestorId())
+                .numTransactions(request.numTransactions())
+                .build();
+        return Futures.transform(
+                startTransactionsWithWatches(conjureRequest),
+                newResponse -> ImmutableStartTransactionResponseV4.builder()
+                        .timestamps(newResponse.getTimestamps())
+                        .immutableTimestamp(newResponse.getImmutableTimestamp())
+                        .lease(newResponse.getLease())
+                        .build(),
+                MoreExecutors.directExecutor());
+    }
+
+    default ListenableFuture<LockResponse> deprecatedLock(IdentifiedLockRequest request) {
+        return Futures.transform(
+                lock(request),
+                result -> result.accept(LockResponseV2.Visitor.of(
+                        success -> LockResponse.successful(success.getToken()),
+                        unsuccessful -> LockResponse.timedOut())),
+                MoreExecutors.directExecutor());
+    }
+
+    default ListenableFuture<Set<LockToken>> deprecatedRefreshLockLeases(Set<LockToken> tokens) {
+        return Futures.transform(
+                refreshLockLeases(tokens), RefreshLockResponseV2::refreshedTokens, MoreExecutors.directExecutor());
+    }
 }u}(j (e55aa2f2e0a07c96f0a2052e2f3a6559d088abbcj Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/JerseyAsyncTimelockResource.javaj renamedj
 K@j KPj Kj https://github.com/palantir/atlasdb/blob/143be05923383c9ea844ab41a19b4e0a324bd87c/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FJerseyAsyncTimelockResource.javaj https://github.com/palantir/atlasdb/raw/143be05923383c9ea844ab41a19b4e0a324bd87c/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FJerseyAsyncTimelockResource.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FJerseyAsyncTimelockResource.java?ref=143be05923383c9ea844ab41a19b4e0a324bd87cj X0  @@ -18,19 +18,12 @@
 import com.google.common.util.concurrent.FutureCallback;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
-import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.debug.LockDiagnosticInfo;
-import com.palantir.atlasdb.timelock.api.ConjureStartTransactionsRequest;
-import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.lock.client.IdentifiedLockRequest;
 import com.palantir.lock.v2.IdentifiedTimeLockRequest;
-import com.palantir.lock.v2.ImmutableStartTransactionResponseV4;
 import com.palantir.lock.v2.LockImmutableTimestampResponse;
-import com.palantir.lock.v2.LockResponse;
-import com.palantir.lock.v2.LockResponseV2;
 import com.palantir.lock.v2.LockToken;
-import com.palantir.lock.v2.RefreshLockResponseV2;
 import com.palantir.lock.v2.StartAtlasDbTransactionResponse;
 import com.palantir.lock.v2.StartAtlasDbTransactionResponseV3;
 import com.palantir.lock.v2.StartIdentifiedAtlasDbTransactionRequest;
@@ -39,7 +32,6 @@
 import com.palantir.lock.v2.StartTransactionResponseV4;
 import com.palantir.lock.v2.WaitForLocksRequest;
 import com.palantir.logsafe.Safe;
-import com.palantir.timestamp.TimestampRange;
 import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
@@ -48,67 +40,65 @@
 import javax.ws.rs.GET;
 import javax.ws.rs.POST;
 import javax.ws.rs.Path;
+import javax.ws.rs.PathParam;
 import javax.ws.rs.Produces;
 import javax.ws.rs.QueryParam;
 import javax.ws.rs.container.AsyncResponse;
 import javax.ws.rs.container.Suspended;
 import javax.ws.rs.core.MediaType;
 
-@Path("/timelock")
+@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}/timelock")
 @Consumes(MediaType.APPLICATION_JSON)
 @Produces(MediaType.APPLICATION_JSON)
-public class AsyncTimelockResource {
+public class JerseyAsyncTimelockResource {
     private static final ExecutorService asyncResponseExecutor = PTExecutors.newFixedThreadPool(64);
-    private final LockLog lockLog;
-    private final AsyncTimelockService timelock;
+    private final TimelockNamespaces namespaces;
 
-    public AsyncTimelockResource(LockLog lockLog, AsyncTimelockService timelock) {
-        this.lockLog = lockLog;
-        this.timelock = timelock;
+    public JerseyAsyncTimelockResource(TimelockNamespaces namespaces) {
+        this.namespaces = namespaces;
     }
 
     @POST
     @Path("fresh-timestamp")
-    public void getFreshTimestamp(@Suspended final AsyncResponse response) {
-        addJerseyCallback(
-                Futures.transform(
-                        timelock.getFreshTimestampsAsync(1),
-                        TimestampRange::getLowerBound,
-                        MoreExecutors.directExecutor()),
-                response);
+    public void getFreshTimestamp(@Suspended final AsyncResponse response, @PathParam("namespace") String namespace) {
+        addJerseyCallback(getAsyncTimelockService(namespace).getFreshTimestampAsync(), response);
     }
 
     @POST
     @Path("fresh-timestamps")
     public void getFreshTimestamps(
-            @Suspended final AsyncResponse response, @Safe @QueryParam("number") int numTimestampsRequested) {
-        addJerseyCallback(timelock.getFreshTimestampsAsync(numTimestampsRequested), response);
+            @Suspended final AsyncResponse response,
+            @PathParam("namespace") String namespace,
+            @Safe @QueryParam("number") int numTimestampsRequested) {
+        addJerseyCallback(getAsyncTimelockService(namespace).getFreshTimestampsAsync(numTimestampsRequested), response);
     }
 
     @POST
     @Path("lock-immutable-timestamp")
-    public LockImmutableTimestampResponse lockImmutableTimestamp(IdentifiedTimeLockRequest request) {
-        return timelock.lockImmutableTimestamp(request);
+    public LockImmutableTimestampResponse lockImmutableTimestamp(
+            @PathParam("namespace") String namespace, IdentifiedTimeLockRequest request) {
+        return getAsyncTimelockService(namespace).lockImmutableTimestamp(request);
     }
 
     @POST
     @Path("start-atlasdb-transaction")
-    public StartAtlasDbTransactionResponse deprecatedStartTransactionV1(IdentifiedTimeLockRequest request) {
-        return timelock.deprecatedStartTransaction(request);
+    public StartAtlasDbTransactionResponse deprecatedStartTransactionV1(
+            @PathParam("namespace") String namespace, IdentifiedTimeLockRequest request) {
+        return getAsyncTimelockService(namespace).deprecatedStartTransaction(request);
     }
 
     @POST
     @Path("start-identified-atlasdb-transaction")
     public StartIdentifiedAtlasDbTransactionResponse deprecatedStartTransactionV2(
-            StartIdentifiedAtlasDbTransactionRequest request) {
-        return timelock.startTransaction(request).toStartTransactionResponse();
+            @PathParam("namespace") String namespace, StartIdentifiedAtlasDbTransactionRequest request) {
+        return getAsyncTimelockService(namespace).startTransaction(request).toStartTransactionResponse();
     }
 
     @POST
     @Path("start-atlasdb-transaction-v3")
     public StartAtlasDbTransactionResponseV3 deprecatedStartTransactionV3(
-            StartIdentifiedAtlasDbTransactionRequest request) {
-        return timelock.startTransaction(request);
+            @PathParam("namespace") String namespace, StartIdentifiedAtlasDbTransactionRequest request) {
+        return getAsyncTimelockService(namespace).startTransaction(request);
     }
 
     /**
@@ -120,88 +110,77 @@ public StartAtlasDbTransactionResponseV3 deprecatedStartTransactionV3(
      */
     @POST
     @Path("start-atlasdb-transaction-v4")
-    public void startTransactions(@Suspended final AsyncResponse response, StartTransactionRequestV4 request) {
-        ConjureStartTransactionsRequest conjureRequest = ConjureStartTransactionsRequest.builder()
-                .requestId(request.requestId())
-                .requestorId(request.requestorId())
-                .numTransactions(request.numTransactions())
-                .build();
-        addJerseyCallback(
-                Futures.transform(
-                        timelock.startTransactionsWithWatches(conjureRequest),
-                        newResponse -> ImmutableStartTransactionResponseV4.builder()
-                                .timestamps(newResponse.getTimestamps())
-                                .immutableTimestamp(newResponse.getImmutableTimestamp())
-                                .lease(newResponse.getLease())
-                                .build(),
-                        MoreExecutors.directExecutor()),
-                response);
+    public void startTransactions(
+            @Suspended final AsyncResponse response,
+            @PathParam("namespace") String namespace,
+            StartTransactionRequestV4 request) {
+        addJerseyCallback(getAsyncTimelockService(namespace).startTransactionsAsync(request), response);
     }
 
     @POST
     @Path("immutable-timestamp")
-    public long getImmutableTimestamp() {
-        return timelock.getImmutableTimestamp();
+    public long getImmutableTimestamp(@PathParam("namespace") String namespace) {
+        return getAsyncTimelockService(namespace).getImmutableTimestamp();
     }
 
     @POST
     @Path("lock")
-    public void deprecatedLock(@Suspended final AsyncResponse response, IdentifiedLockRequest request) {
-        addJerseyCallback(
-                Futures.transform(
-                        timelock.lock(request),
-                        result -> result.accept(LockResponseV2.Visitor.of(
-                                success -> LockResponse.successful(success.getToken()),
-                                unsuccessful -> LockResponse.timedOut())),
-                        MoreExecutors.directExecutor()),
-                response);
+    public void deprecatedLock(
+            @Suspended final AsyncResponse response,
+            @PathParam("namespace") String namespace,
+            IdentifiedLockRequest request) {
+        addJerseyCallback(getAsyncTimelockService(namespace).deprecatedLock(request), response);
     }
 
     @POST
     @Path("lock-v2")
-    public void lock(@Suspended final AsyncResponse response, IdentifiedLockRequest request) {
-        addJerseyCallback(timelock.lock(request), response);
+    public void lock(
+            @Suspended final AsyncResponse response,
+            @PathParam("namespace") String namespace,
+            IdentifiedLockRequest request) {
+        addJerseyCallback(getAsyncTimelockService(namespace).lock(request), response);
     }
 
     @POST
     @Path("await-locks")
-    public void waitForLocks(@Suspended final AsyncResponse response, WaitForLocksRequest request) {
-        addJerseyCallback(timelock.waitForLocks(request), response);
+    public void waitForLocks(
+            @Suspended final AsyncResponse response,
+            @PathParam("namespace") String namespace,
+            WaitForLocksRequest request) {
+        addJerseyCallback(getAsyncTimelockService(namespace).waitForLocks(request), response);
     }
 
     @POST
     @Path("refresh-locks")
-    public void deprecatedRefreshLockLeases(@Suspended final AsyncResponse response, Set<LockToken> tokens) {
-        addJerseyCallback(
-                Futures.transform(
-                        timelock.refreshLockLeases(tokens),
-                        RefreshLockResponseV2::refreshedTokens,
-                        MoreExecutors.directExecutor()),
-                response);
+    public void deprecatedRefreshLockLeases(
+            @Suspended final AsyncResponse response, @PathParam("namespace") String namespace, Set<LockToken> tokens) {
+        addJerseyCallback(getAsyncTimelockService(namespace).deprecatedRefreshLockLeases(tokens), response);
     }
 
     @POST
     @Path("refresh-locks-v2")
-    public void refreshLockLeases(@Suspended final AsyncResponse response, Set<LockToken> tokens) {
-        addJerseyCallback(timelock.refreshLockLeases(tokens), response);
+    public void refreshLockLeases(
+            @Suspended final AsyncResponse response, @PathParam("namespace") String namespace, Set<LockToken> tokens) {
+        addJerseyCallback(getAsyncTimelockService(namespace).refreshLockLeases(tokens), response);
     }
 
     @GET
     @Path("leader-time")
-    public void getLeaderTime(@Suspended final AsyncResponse response) {
-        addJerseyCallback(timelock.leaderTime(), response);
+    public void getLeaderTime(@Suspended final AsyncResponse response, @PathParam("namespace") String namespace) {
+        addJerseyCallback(getAsyncTimelockService(namespace).leaderTime(), response);
     }
 
     @POST
     @Path("unlock")
-    public void unlock(@Suspended final AsyncResponse response, Set<LockToken> tokens) {
-        addJerseyCallback(timelock.unlock(tokens), response);
+    public void unlock(
+            @Suspended final AsyncResponse response, @PathParam("namespace") String namespace, Set<LockToken> tokens) {
+        addJerseyCallback(getAsyncTimelockService(namespace).unlock(tokens), response);
     }
 
     @POST
     @Path("current-time-millis")
-    public long currentTimeMillis() {
-        return timelock.currentTimeMillis();
+    public long currentTimeMillis(@PathParam("namespace") String namespace) {
+        return getAsyncTimelockService(namespace).currentTimeMillis();
     }
 
     /**
@@ -211,8 +190,9 @@ public long currentTimeMillis() {
     @Deprecated
     @POST
     @Path("do-not-use-without-explicit-atlasdb-authorisation/lock-diagnostic-config")
-    public Optional<LockDiagnosticInfo> getEnhancedLockDiagnosticInfo(Set<UUID> requestIds) {
-        return lockLog.getAndLogLockDiagnosticInfo(requestIds);
+    public Optional<LockDiagnosticInfo> getEnhancedLockDiagnosticInfo(
+            @PathParam("namespace") String namespace, Set<UUID> requestIds) {
+        return namespaces.get(namespace).getLockLog().getAndLogLockDiagnosticInfo(requestIds);
     }
 
     private void addJerseyCallback(ListenableFuture<?> result, AsyncResponse response) {
@@ -231,4 +211,8 @@ public void onFailure(Throwable thrown) {
                 },
                 asyncResponseExecutor);
     }
+
+    private AsyncTimelockService getAsyncTimelockService(String namespace) {
+        return namespaces.get(namespace).getTimelockService();
+    }
 }previous_filenameTtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/AsyncTimelockResource.javau}(j (bd3a2ba95ba30b897cf251bbfcd4675e993540b6j Otimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimeLockResource.javaj removedj
 K j K*j K*j https://github.com/palantir/atlasdb/blob/219f56b4327bf35c71bf5d10028da2d022eccc1f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockResource.javaj https://github.com/palantir/atlasdb/raw/219f56b4327bf35c71bf5d10028da2d022eccc1f/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockResource.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockResource.java?ref=219f56b4327bf35c71bf5d10028da2d022eccc1fj X  @@ -1,42 +0,0 @@
-/*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.timelock;
-
-import com.palantir.logsafe.Safe;
-import javax.ws.rs.Path;
-import javax.ws.rs.PathParam;
-
-/**
- * DO NOT add new endpoints in here. Instead, define them as Conjure endpoints.
- */
-@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}")
-@Deprecated
-public final class TimeLockResource {
-    private final TimelockNamespaces namespaces;
-
-    private TimeLockResource(TimelockNamespaces namespaces) {
-        this.namespaces = namespaces;
-    }
-
-    public static TimeLockResource create(TimelockNamespaces namespaces) {
-        return new TimeLockResource(namespaces);
-    }
-
-    @Path("/timelock")
-    public AsyncTimelockResource getTimelockService(@Safe @PathParam("namespace") String namespace) {
-        return namespaces.get(namespace).getTimelockResource();
-    }
-}u}(j (68300112477637160e1c7952a4d87b188afda4abj Otimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimeLockServices.javaj modifiedj
 Kj Kj Kj https://github.com/palantir/atlasdb/blob/143be05923383c9ea844ab41a19b4e0a324bd87c/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServices.javaj https://github.com/palantir/atlasdb/raw/143be05923383c9ea844ab41a19b4e0a324bd87c/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServices.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServices.java?ref=143be05923383c9ea844ab41a19b4e0a324bd87cj X8  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.timelock;
 
+import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.lock.LockService;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
@@ -31,35 +32,34 @@ static TimeLockServices create(
             TimestampService timestampService,
             LockService lockService,
             AsyncTimelockService timelockService,
-            AsyncTimelockResource timelockResource,
-            TimestampManagementService timestampManagementService) {
+            TimestampManagementService timestampManagementService,
+            LockLog lockLog) {
         return ImmutableTimeLockServices.builder()
                 .timestampService(timestampService)
                 .lockService(lockService)
                 .timestampManagementService(timestampManagementService)
                 .timelockService(timelockService)
-                .timelockResource(timelockResource)
+                .lockLog(lockLog)
                 .build();
     }
 
     TimestampService getTimestampService();
 
     LockService getLockService();
-    // The Jersey endpoints
-    AsyncTimelockResource getTimelockResource();
     // The RPC-independent leadership-enabled implementation of the timelock service
     AsyncTimelockService getTimelockService();
 
     TimestampManagementService getTimestampManagementService();
 
+    /**
+     * Do not use without AtlasDB team guidance.
+     */
+    @Deprecated
+    LockLog getLockLog();
+
     @Override
     default void close() {
-        Stream.of(
-                        getTimestampService(),
-                        getLockService(),
-                        getTimelockResource(),
-                        getTimelockService(),
-                        getTimestampManagementService())
+        Stream.of(getTimestampService(), getLockService(), getTimelockService(), getTimestampManagementService())
                 .filter(service -> service instanceof AutoCloseable)
                 .distinct()
                 .forEach(service -> {u}(j (14d7b623c713195e6a115c1b73f4a02fb42ef8daj \timelock-impl/src/main/java/com/palantir/atlasdb/timelock/UndertowAsyncTimelockResource.javaj addedj
 Kj K j Kj https://github.com/palantir/atlasdb/blob/143be05923383c9ea844ab41a19b4e0a324bd87c/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FUndertowAsyncTimelockResource.javaj https://github.com/palantir/atlasdb/raw/143be05923383c9ea844ab41a19b4e0a324bd87c/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FUndertowAsyncTimelockResource.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FUndertowAsyncTimelockResource.java?ref=143be05923383c9ea844ab41a19b4e0a324bd87cj X  @@ -0,0 +1,158 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock;
+
+import com.google.common.util.concurrent.ListenableFuture;
+import com.palantir.atlasdb.debug.LockDiagnosticInfo;
+import com.palantir.conjure.java.undertow.annotations.Handle;
+import com.palantir.conjure.java.undertow.annotations.HttpMethod;
+import com.palantir.lock.client.IdentifiedLockRequest;
+import com.palantir.lock.v2.IdentifiedTimeLockRequest;
+import com.palantir.lock.v2.LeaderTime;
+import com.palantir.lock.v2.LockImmutableTimestampResponse;
+import com.palantir.lock.v2.LockResponse;
+import com.palantir.lock.v2.LockResponseV2;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.v2.RefreshLockResponseV2;
+import com.palantir.lock.v2.StartAtlasDbTransactionResponse;
+import com.palantir.lock.v2.StartAtlasDbTransactionResponseV3;
+import com.palantir.lock.v2.StartIdentifiedAtlasDbTransactionRequest;
+import com.palantir.lock.v2.StartIdentifiedAtlasDbTransactionResponse;
+import com.palantir.lock.v2.StartTransactionRequestV4;
+import com.palantir.lock.v2.StartTransactionResponseV4;
+import com.palantir.lock.v2.WaitForLocksRequest;
+import com.palantir.lock.v2.WaitForLocksResponse;
+import com.palantir.logsafe.Safe;
+import com.palantir.timestamp.TimestampRange;
+import java.util.Optional;
+import java.util.Set;
+import java.util.UUID;
+
+public final class UndertowAsyncTimelockResource {
+    private final TimelockNamespaces namespaces;
+
+    public UndertowAsyncTimelockResource(TimelockNamespaces namespaces) {
+        this.namespaces = namespaces;
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/fresh-timestamp")
+    public ListenableFuture<Long> getFreshTimestamp(@Safe @Handle.PathParam String namespace) {
+        return getAsyncTimelockService(namespace).getFreshTimestampAsync();
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/fresh-timestamps")
+    public ListenableFuture<TimestampRange> getFreshTimestamps(
+            @Safe @Handle.PathParam String namespace,
+            @Safe @Handle.QueryParam(value = "number") int numTimestampsRequested) {
+        return getAsyncTimelockService(namespace).getFreshTimestampsAsync(numTimestampsRequested);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/lock-immutable-timestamp")
+    public LockImmutableTimestampResponse lockImmutableTimestamp(
+            @Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedTimeLockRequest request) {
+        return getAsyncTimelockService(namespace).lockImmutableTimestamp(request);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-atlasdb-transaction")
+    public StartAtlasDbTransactionResponse deprecatedStartTransactionV1(
+            @Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedTimeLockRequest request) {
+        return getAsyncTimelockService(namespace).deprecatedStartTransaction(request);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-identified-atlasdb-transaction")
+    public StartIdentifiedAtlasDbTransactionResponse deprecatedStartTransactionV2(
+            @Safe @Handle.PathParam String namespace, @Handle.Body StartIdentifiedAtlasDbTransactionRequest request) {
+        return getAsyncTimelockService(namespace).startTransaction(request).toStartTransactionResponse();
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-atlasdb-transaction-v3")
+    public StartAtlasDbTransactionResponseV3 deprecatedStartTransactionV3(
+            @Safe @Handle.PathParam String namespace, @Handle.Body StartIdentifiedAtlasDbTransactionRequest request) {
+        return getAsyncTimelockService(namespace).startTransaction(request);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-atlasdb-transaction-v4")
+    public ListenableFuture<StartTransactionResponseV4> startTransactions(
+            @Safe @Handle.PathParam String namespace, @Handle.Body StartTransactionRequestV4 request) {
+        return getAsyncTimelockService(namespace).startTransactionsAsync(request);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/immutable-timestamp")
+    public long getImmutableTimestamp(@Safe @Handle.PathParam String namespace) {
+        return getAsyncTimelockService(namespace).getImmutableTimestamp();
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/lock")
+    public ListenableFuture<LockResponse> deprecatedLock(
+            @Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedLockRequest request) {
+        return getAsyncTimelockService(namespace).deprecatedLock(request);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/lock-v2")
+    public ListenableFuture<LockResponseV2> lock(
+            @Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedLockRequest request) {
+        return getAsyncTimelockService(namespace).lock(request);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/await-locks")
+    public ListenableFuture<WaitForLocksResponse> waitForLocks(
+            @Safe @Handle.PathParam String namespace, @Handle.Body WaitForLocksRequest request) {
+        return getAsyncTimelockService(namespace).waitForLocks(request);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/refresh-locks")
+    public ListenableFuture<Set<LockToken>> deprecatedRefreshLockLeases(
+            @Safe @Handle.PathParam String namespace, @Handle.Body Set<LockToken> tokens) {
+        return getAsyncTimelockService(namespace).deprecatedRefreshLockLeases(tokens);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/refresh-locks-v2")
+    public ListenableFuture<RefreshLockResponseV2> refreshLockLeases(
+            @Safe @Handle.PathParam String namespace, @Handle.Body Set<LockToken> tokens) {
+        return getAsyncTimelockService(namespace).refreshLockLeases(tokens);
+    }
+
+    @Handle(method = HttpMethod.GET, path = "/{namespace}/timelock/leader-time")
+    public ListenableFuture<LeaderTime> getLeaderTime(@Safe @Handle.PathParam String namespace) {
+        return getAsyncTimelockService(namespace).leaderTime();
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/unlock")
+    public ListenableFuture<Set<LockToken>> unlock(
+            @Safe @Handle.PathParam String namespace, @Handle.Body Set<LockToken> tokens) {
+        return getAsyncTimelockService(namespace).unlock(tokens);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/current-time-millis")
+    public long currentTimeMillis(@Safe @Handle.PathParam String namespace) {
+        return getAsyncTimelockService(namespace).currentTimeMillis();
+    }
+
+    // TODO(jkong): Remove this once PDS-95791 is resolved.
+    @Handle(
+            method = HttpMethod.POST,
+            path = "/{namespace}/timelock/do-not-use-without-explicit-atlasdb-authorisation/lock-diagnostic-config")
+    @Deprecated
+    public Optional<LockDiagnosticInfo> getEnhancedLockDiagnosticInfo(
+            @Safe @Handle.PathParam String namespace, @Handle.Body Set<UUID> requestIds) {
+        return namespaces.get(namespace).getLockLog().getAndLogLockDiagnosticInfo(requestIds);
+    }
+
+    private AsyncTimelockService getAsyncTimelockService(String namespace) {
+        return namespaces.get(namespace).getTimelockService();
+    }
+}u     }(j (6418b11b22cf39de9ebf8e0d555413ee7e4b1340j Stimelock-impl/src/test/java/com/palantir/atlasdb/timelock/TimeLockServicesTest.javaj modifiedj
 Kj Kj Kj https://github.com/palantir/atlasdb/blob/143be05923383c9ea844ab41a19b4e0a324bd87c/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServicesTest.javaj https://github.com/palantir/atlasdb/raw/143be05923383c9ea844ab41a19b4e0a324bd87c/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServicesTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockServicesTest.java?ref=143be05923383c9ea844ab41a19b4e0a324bd87cj XY  @@ -21,6 +21,7 @@
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
 
+import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.lock.CloseableLockService;
 import com.palantir.lock.LockService;
 import java.io.IOException;
@@ -31,10 +32,8 @@ public class TimeLockServicesTest {
     public void doNotCloseRepeatedInterfaceMultipleTimes() throws IOException {
         LockService lockService = mock(LockService.class);
         AsyncTimelockService asyncTimelockService = mock(AsyncTimelockService.class);
-        AsyncTimelockResource asyncTimelockResource = mock(AsyncTimelockResource.class);
 
-        getTimeLockServices(lockService, asyncTimelockService, asyncTimelockResource)
-                .close();
+        getTimeLockServices(lockService, asyncTimelockService).close();
 
         verify(asyncTimelockService, times(1)).close();
     }
@@ -43,10 +42,8 @@ public void doNotCloseRepeatedInterfaceMultipleTimes() throws IOException {
     public void closesCloseableImplementationsOfNotNecessarilyCloseableInterfaces() throws IOException {
         CloseableLockService closeableLockService = mock(CloseableLockService.class);
         AsyncTimelockService asyncTimelockService = mock(AsyncTimelockService.class);
-        AsyncTimelockResource asyncTimelockResource = mock(AsyncTimelockResource.class);
 
-        getTimeLockServices(closeableLockService, asyncTimelockService, asyncTimelockResource)
-                .close();
+        getTimeLockServices(closeableLockService, asyncTimelockService).close();
 
         verify(closeableLockService).close();
     }
@@ -55,23 +52,18 @@ public void closesCloseableImplementationsOfNotNecessarilyCloseableInterfaces()
     public void exceptionsWhenClosingDoNotAffectOverallClosure() throws IOException {
         CloseableLockService closeableLockService = mock(CloseableLockService.class);
         AsyncTimelockService asyncTimelockService = mock(AsyncTimelockService.class);
-        AsyncTimelockResource asyncTimelockResource = mock(AsyncTimelockResource.class);
 
         doThrow(new RuntimeException()).when(asyncTimelockService).close();
         doThrow(new RuntimeException()).when(closeableLockService).close();
 
-        getTimeLockServices(closeableLockService, asyncTimelockService, asyncTimelockResource)
-                .close();
+        getTimeLockServices(closeableLockService, asyncTimelockService).close();
 
         verify(closeableLockService).close();
         verify(asyncTimelockService).close();
     }
 
-    private TimeLockServices getTimeLockServices(
-            LockService lockService,
-            AsyncTimelockService asyncTimelockService,
-            AsyncTimelockResource asyncTimelockResource) {
+    private TimeLockServices getTimeLockServices(LockService lockService, AsyncTimelockService asyncTimelockService) {
         return TimeLockServices.create(
-                asyncTimelockService, lockService, asyncTimelockService, asyncTimelockResource, asyncTimelockService);
+                asyncTimelockService, lockService, asyncTimelockService, asyncTimelockService, mock(LockLog.class));
     }
 }ueu(58299e570b240d99516727b5bcc2b126d3941c21}(sha(58299e570b240d99516727b5bcc2b126d3941c21node_idEC_kwDOAjP5fdoAKDU4Mjk5ZTU3MGIyNDBkOTk1MTY3MjdiNWJjYzJiMTI2ZDM5NDFjMjEcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-04-13T10:47:22Zu	committer}(j| svc-autoreleasej~ -pd-foundry-infrastructure-notify@palantir.comj 2023-04-13T10:47:22ZumessageAutorelease 0.835.0

[skip ci]tree}(jt (cdbfcbe3bfd4642517c7cdf909312cd17177994burl`https://api.github.com/repos/palantir/atlasdb/git/trees/cdbfcbe3bfd4642517c7cdf909312cd17177994buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/58299e570b240d99516727b5bcc2b126d3941c21
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQ33b8ACgkQhbrR8ip7mDAjfgD9FyKNZ3HgKzLGGIApYlaEiXjH
FyqtwGgZYRJeJscEGpkA/1K3wK3XbUa/M6bz6M9e99QkxB+W3vGlIkiZlf9m4xhQ
=zzI1
-----END PGP SIGNATURE-----
payloadX0  tree cdbfcbe3bfd4642517c7cdf909312cd17177994b
parent 728d80eb5a7370ce9bdb230d49a27f5a771b0431
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1681382842 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1681382842 +0000

Autorelease 0.835.0

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/58299e570b240d99516727b5bcc2b126d3941c21html_urlShttps://github.com/palantir/atlasdb/commit/58299e570b240d99516727b5bcc2b126d3941c21comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/58299e570b240d99516727b5bcc2b126d3941c21/commentsjz }(loginsvc-autoreleaseidJ(jv MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(jv MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(jt (728d80eb5a7370ce9bdb230d49a27f5a771b0431j ^https://api.github.com/repos/palantir/atlasdb/commits/728d80eb5a7370ce9bdb230d49a27f5a771b0431j Shttps://github.com/palantir/atlasdb/commit/728d80eb5a7370ce9bdb230d49a27f5a771b0431uastats}(totalK 	additionsK 	deletionsK ufiles](}(jt (dc8ccab7fb0c3ad8d14f7566ab89d660c8508c47filename changelog/0.835.0/pr-6498.v2.ymlstatusrenamedj K j K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/58299e570b240d99516727b5bcc2b126d3941c21/changelog%2F0.835.0%2Fpr-6498.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/58299e570b240d99516727b5bcc2b126d3941c21/changelog%2F0.835.0%2Fpr-6498.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.835.0%2Fpr-6498.v2.yml?ref=58299e570b240d99516727b5bcc2b126d3941c21previous_filename$changelog/@unreleased/pr-6498.v2.ymlu}(jt (fdaa0f14c0403bcf95c1cdd5c0f860c959c67c95j  changelog/0.835.0/pr-6508.v2.ymlj renamedj K j K j K j vhttps://github.com/palantir/atlasdb/blob/58299e570b240d99516727b5bcc2b126d3941c21/changelog%2F0.835.0%2Fpr-6508.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/58299e570b240d99516727b5bcc2b126d3941c21/changelog%2F0.835.0%2Fpr-6508.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.835.0%2Fpr-6508.v2.yml?ref=58299e570b240d99516727b5bcc2b126d3941c21j $changelog/@unreleased/pr-6508.v2.ymlueu(1a6d2588bd535edf80e99f26701aa4c26c333180}(sha(1a6d2588bd535edf80e99f26701aa4c26c333180node_idEC_kwDOAjP5fdoAKDFhNmQyNTg4YmQ1MzVlZGY4MGU5OWYyNjcwMWFhNGMyNmMzMzMxODAcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-11T18:14:06Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-05-11T18:14:06Zumessageuse pure numberstree}(j (63b15c80efcc79c4aa16f17d8ec928cd2846ecfdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/63b15c80efcc79c4aa16f17d8ec928cd2846ecfduj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1a6d2588bd535edf80e99f26701aa4c26c333180
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRdMG4ACgkQTLdFKain
zjxn3QgA6IE8Mxez2Ix2Kp0DABjWxhuI8hD09sh7UCGsSCzCvf5d5Mwz9QjoHbFa
IBn86WleoCJ02WyY9HjHgUvXt4xkJZaEUrH1w2bgMpkIevo+g5U4g91fKrkdrfQh
FwhQaUo/kMdQSUFP9MeeVrbCRK7Xk03IfjbS1l+6NaqgSK8UyASgIMjRz/2fXZHC
NCQi7WLmP4TmuR6xJGE94ZQsOAc1lijHURd1ekgihSATMcIzJkbNcaCLHCbPyXDF
I+g5KJVj2OUDeEOKgEEK8YBnciUV7RBhpdJNOXqxMiOOzOfU5v7iFhakrzpdEy2Q
t+YCpesX4HOOakwj0ArhzeTPRKlhrA==
=B3Hd
-----END PGP SIGNATURE-----payloadtree 63b15c80efcc79c4aa16f17d8ec928cd2846ecfd
parent 50e05491daed01d64ec4867ce2176b153629246b
author Jeremy Kong <jkong@palantir.com> 1683828846 +0100
committer Jeremy Kong <jkong@palantir.com> 1683828846 +0100

use pure numbers
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/1a6d2588bd535edf80e99f26701aa4c26c333180html_urlShttps://github.com/palantir/atlasdb/commit/1a6d2588bd535edf80e99f26701aa4c26c333180comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1a6d2588bd535edf80e99f26701aa4c26c333180/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j  JZ j MDQ6VXNlcjU5NTU1MTA=j" 3https://avatars.githubusercontent.com/u/5955510?v=4j$ h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j' 1https://api.github.com/users/jeremyk-91/followersj) >https://api.github.com/users/jeremyk-91/following{/other_user}j+ 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j- >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j/ 5https://api.github.com/users/jeremyk-91/subscriptionsj1 ,https://api.github.com/users/jeremyk-91/orgsj3 -https://api.github.com/users/jeremyk-91/reposj5 8https://api.github.com/users/jeremyk-91/events{/privacy}j7 7https://api.github.com/users/jeremyk-91/received_eventsj9 Userj; uparents]}(j (50e05491daed01d64ec4867ce2176b153629246bj ^https://api.github.com/repos/palantir/atlasdb/commits/50e05491daed01d64ec4867ce2176b153629246bj Shttps://github.com/palantir/atlasdb/commit/50e05491daed01d64ec4867ce2176b153629246buastats}(totalK	additionsK	deletionsKufiles]}(j (129e1d4bc54242f0695ec1422ff3d4ea5d9cac41filenameZatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactory.javastatusmodifiedjU KjV KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/1a6d2588bd535edf80e99f26701aa4c26c333180/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1a6d2588bd535edf80e99f26701aa4c26c333180/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.java?ref=1a6d2588bd535edf80e99f26701aa4c26c333180patchXZ  @@ -19,13 +19,28 @@
 import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.buggify.api.Buggify;
 import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.security.SecureRandom;
 import java.util.function.DoubleSupplier;
 
 public final class DefaultBuggifyFactory implements BuggifyFactory {
-    private static final SecureRandom SECURE_RANDOM = new SecureRandom();
+    private static final SafeLogger log = SafeLoggerFactory.get(DefaultBuggifyFactory.class);
+    private static final SecureRandom SECURE_RANDOM;
     public static final BuggifyFactory INSTANCE = new DefaultBuggifyFactory();
 
+    static {
+        SecureRandom randomInstance;
+        try {
+            // See https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html#securerandom-number-generation-algorithms
+            randomInstance = SecureRandom.getInstance("NativePRNG");
+        } catch (Exception e) {
+            log.warn("Failed to initialize fully native secure random instance, letting the Java runtime select for us", e);
+            randomInstance = new SecureRandom();
+        }
+        SECURE_RANDOM = randomInstance;
+    }
+
     private final DoubleSupplier doubleSupplier;
 
     @VisibleForTestinguau(1d664a5892626f486deb6ef73d4bccd33ffa5c87}(sha(1d664a5892626f486deb6ef73d4bccd33ffa5c87node_idEC_kwDOAjP5fdoAKDFkNjY0YTU4OTI2MjZmNDg2ZGViNmVmNzNkNGJjY2QzM2ZmYTVjODccommit}(author}(name
Louis Bembergemaillbemberg@palantir.comdate2023-05-05T15:32:42Zu	committer}(jr 
Louis Bembergjt lbemberg@palantir.comjv 2023-05-05T15:32:42Zumessageremove interpolationtree}(jj (9e70a74523297f8175c2df70d1467ef2e62eef4curl`https://api.github.com/repos/palantir/atlasdb/git/trees/9e70a74523297f8175c2df70d1467ef2e62eef4cuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1d664a5892626f486deb6ef73d4bccd33ffa5c87
comment_countK verification}(verifiedreasonno_user	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEWASyGscg/aE7qfKTryYcV6eKVuAFAmRVIZoACgkQryYcV6eK
VuB2qQf+K5bWd01e7gpraYW0zEjY7u9tVVXFrNeKKIjYBJXGMGa2p4/koHaNsx2u
3iyT5jaJEwBcZdnQrF/Fwpx5E1pWe7a0TVt7zrg4ArnHKTtTypdVWuO7cd0UZb6C
SZrplA78IrzXA1kWOGwf+lDXhAfg2YkDAU7MDipV0OFOI5+DC6Mmjx+Q0c5fVOVs
d56AuULv5z7Zelz8WifNw1X3CpmY6WmCFxyssNTkGGpwW8p37uJ+9qLgy9CMjWMg
YXAE/IMiMpIwOYOixnNWrrmcKK/2veuFTQSElIAvJEnBZJDgnZLI0llLj+RRbe09
2+3GfXTp0fuIlH+HG3tBSoBBU2UuHw==
=borf
-----END PGP SIGNATURE-----payloadtree 9e70a74523297f8175c2df70d1467ef2e62eef4c
parent 9fcbd0e5cd52c19c710d72f70f1236407377a24d
author Louis Bemberg <lbemberg@palantir.com> 1683300762 -0400
committer Louis Bemberg <lbemberg@palantir.com> 1683300762 -0400

remove interpolation
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/1d664a5892626f486deb6ef73d4bccd33ffa5c87html_urlShttps://github.com/palantir/atlasdb/commit/1d664a5892626f486deb6ef73d4bccd33ffa5c87comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1d664a5892626f486deb6ef73d4bccd33ffa5c87/commentsjp Njx Nparents]}(jj (9fcbd0e5cd52c19c710d72f70f1236407377a24dj ^https://api.github.com/repos/palantir/atlasdb/commits/9fcbd0e5cd52c19c710d72f70f1236407377a24dj Shttps://github.com/palantir/atlasdb/commit/9fcbd0e5cd52c19c710d72f70f1236407377a24duastats}(totalK	additionsK	deletionsKufiles]}(jj (bc4967ab2775696ff379dd4b88e49afcd8f92f87filenamekatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AdvisoryLockConditionSuppliers.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/1d664a5892626f486deb6ef73d4bccd33ffa5c87/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1d664a5892626f486deb6ef73d4bccd33ffa5c87/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.java?ref=1d664a5892626f486deb6ef73d4bccd33ffa5c87patchX  @@ -80,10 +80,7 @@ private static HeldLocksToken acquireLock(LockService lockService, LockRequest l
                     case BLOCK_INDEFINITELY:
                     case BLOCK_INDEFINITELY_THEN_RELEASE:
                         ++failureCount;
-                        log.warn(
-                                "Could not lock successfully. Attempt number {}",
-                                SafeArg.of("failureCount", failureCount),
-                                ex);
+                        log.warn("Could not lock successfully", SafeArg.of("failureCount", failureCount), ex);
                         if (failureCount >= NUM_RETRIES) {
                             log.warn("Failing after {} tries", SafeArg.of("failureCount", failureCount), ex);
                             throw ex;uau(a0667d492644057ed6cc1e3a55ed0d2924a8a27e}(sha(a0667d492644057ed6cc1e3a55ed0d2924a8a27enode_idEC_kwDOAjP5fdoAKGEwNjY3ZDQ5MjY0NDA1N2VkNmNjMWUzYTU1ZWQwZDI5MjRhOGEyN2Ucommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-29T14:39:43Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-06-29T14:39:43Zumessage Add reminder about serializationtree}(j (3a0c9fd62f05995b0b14b427d30ff6ce802de8d3url`https://api.github.com/repos/palantir/atlasdb/git/trees/3a0c9fd62f05995b0b14b427d30ff6ce802de8d3uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a0667d492644057ed6cc1e3a55ed0d2924a8a27e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSdl68ACgkQmF9s0kaF
Iw2VhggApeSLjCDftTfQ+K2556CPWojLAveEeL/buVKUedSNBv9PLuuk6XFrss17
BnJ513eUBs4Fv4KFtYwd30G0I7lfVcjKGsheZfEP1f8PBTngC4rocsTe92Xk4EqZ
MBWsPVlA4/TjE1cv/7FFvRSKCgV/+CjTdCVZzP9xqRUx7RPbW1+uqLEJslX7K5s9
7EUtmIpo/U/YW/W1IBv+UU/o83vLCwhCwdosTFANrSb7XEAfdAwxvjkUbi4dS3G4
2ksuZ6dQLwmIXkgpvmun0ClEAJ92BhCc4xquCuTndMjUxO6PVoXnL1zJnBduK/Vm
ueobFAdYAoty2Cb8uEPg2Yhi3laKUg==
=0yFD
-----END PGP SIGNATURE-----payloadtree 3a0c9fd62f05995b0b14b427d30ff6ce802de8d3
parent 3e3fe325fd591c3cf0616ddb53e508539f6fd824
author Tom Papke <tpapke@palantir.com> 1688049583 +0100
committer Tom Papke <tpapke@palantir.com> 1688049583 +0100

Add reminder about serialization
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/a0667d492644057ed6cc1e3a55ed0d2924a8a27ehtml_urlShttps://github.com/palantir/atlasdb/commit/a0667d492644057ed6cc1e3a55ed0d2924a8a27ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a0667d492644057ed6cc1e3a55ed0d2924a8a27e/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jboj MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(j (3e3fe325fd591c3cf0616ddb53e508539f6fd824j ^https://api.github.com/repos/palantir/atlasdb/commits/3e3fe325fd591c3cf0616ddb53e508539f6fd824j Shttps://github.com/palantir/atlasdb/commit/3e3fe325fd591c3cf0616ddb53e508539f6fd824uastats}(totalK	additionsK	deletionsKufiles]}(j (fec9a0153afa6cc2e8fc094f2a629e2bd5e3f786filenameOlock-api-objects/src/main/java/com/palantir/lock/watch/LockRequestMetadata.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/a0667d492644057ed6cc1e3a55ed0d2924a8a27e/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a0667d492644057ed6cc1e3a55ed0d2924a8a27e/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.java?ref=a0667d492644057ed6cc1e3a55ed0d2924a8a27epatchXs  @@ -22,7 +22,8 @@
 import org.immutables.value.Value;
 
 /**
- * Metadata that is attached to lock requests and to any {@link LockEvent} created as a result of that request.
+ * Metadata attached to a lock request and to any {@link LockEvent} created as a result of that request.
+ * Instances of this class should not be serialized as-is.
  */
 @Unsafe
 @Value.Immutableuau(f2f0426e8a070534b22383199b16d1f7bf845629}(sha(f2f0426e8a070534b22383199b16d1f7bf845629node_idEC_kwDOAjP5fdoAKGYyZjA0MjZlOGEwNzA1MzRiMjIzODMxOTliMTZkMWY3YmY4NDU2Mjkcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-05-02T10:14:32Zu	committer}(j1 GitHubj3 noreply@github.comj5 2023-05-02T10:14:32ZumessageXAdd and run ring workflow  (#6530)

Runs ring workflow by default in the workload servertree}(j) (713d72dc9a13ebbb27848643c15604c78ef2284curl`https://api.github.com/repos/palantir/atlasdb/git/trees/713d72dc9a13ebbb27848643c15604c78ef2284cujA bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f2f0426e8a070534b22383199b16d1f7bf845629
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkUOKICRBK7hj4Ov3rIwAAqPoIABgmxodqghCVIoKn/cApeaEx
1K/zMotE5FkHgiSL0GQ9wCUNptFSv2u0tNv7y6VgpimyWBFRD/W9wsFU/bsR6b7P
znC8+/NB9SDEely5Wro/qXQE1m/s5pF2owIBEAqJwRdbhVWgERkw9yA8N2WHkQKE
XZKR8jJNENrcoC3JFq+nz68nTJcr4DNc21/cg6TCxAI8cUb7COe+IkbuqN3r3iTh
eJxdCvKegrTSanzuiKOyMyASkX0+RUK+1WyEzwBKItWexsDn1ygNc1Gm991HYgsF
UghiONiFf9GDlGdaE1v5o45RoTjycCnIVV6ekgAxqYWqkEUQcHCLy2BzKbCdCwY=
=BSmH
-----END PGP SIGNATURE-----
payloadX+  tree 713d72dc9a13ebbb27848643c15604c78ef2284c
parent 7190b7e2a4094fbfedf7d3cf27dc486db49167e8
author Sam-Kramer <sam.c.kramer@gmail.com> 1683022472 +0100
committer GitHub <noreply@github.com> 1683022472 +0000

Add and run ring workflow  (#6530)

Runs ring workflow by default in the workload server
uujA ^https://api.github.com/repos/palantir/atlasdb/commits/f2f0426e8a070534b22383199b16d1f7bf845629html_urlShttps://github.com/palantir/atlasdb/commit/f2f0426e8a070534b22383199b16d1f7bf845629comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f2f0426e8a070534b22383199b16d1f7bf845629/commentsj/ }(login
Sam-KrameridJ^2_ j+ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jA 'https://api.github.com/users/Sam-KramerjO https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj7 }(jT web-flowjV J/j+ MDQ6VXNlcjE5ODY0NDQ3jX 4https://avatars.githubusercontent.com/u/19864447?v=4jZ h5jA %https://api.github.com/users/web-flowjO https://github.com/web-flowj] /https://api.github.com/users/web-flow/followersj_ <https://api.github.com/users/web-flow/following{/other_user}ja 5https://api.github.com/users/web-flow/gists{/gist_id}jc <https://api.github.com/users/web-flow/starred{/owner}{/repo}je 3https://api.github.com/users/web-flow/subscriptionsjg *https://api.github.com/users/web-flow/orgsji +https://api.github.com/users/web-flow/reposjk 6https://api.github.com/users/web-flow/events{/privacy}jm 5https://api.github.com/users/web-flow/received_eventsjo Userjq uparents]}(j) (7190b7e2a4094fbfedf7d3cf27dc486db49167e8jA ^https://api.github.com/repos/palantir/atlasdb/commits/7190b7e2a4094fbfedf7d3cf27dc486db49167e8jO Shttps://github.com/palantir/atlasdb/commit/7190b7e2a4094fbfedf7d3cf27dc486db49167e8uastats}(totalKl	additionsKS	deletionsKufiles](}(j) (9a3b7a7060c8f72d6a97bc2c347571b698b81c47filenamejatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStoreFactory.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.java?ref=f2f0426e8a070534b22383199b16d1f7bf845629patchX  @@ -22,6 +22,6 @@
 /**
  * Creates transaction stores of a certain type which are bounded to the provided tables/indexes.
  */
-public interface TransactionStoreFactory {
-    TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
+public interface TransactionStoreFactory<T extends TransactionStore> {
+    T create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
 }u}(j) (47b4109802a3529a585cdba06bb50cbe3fb2a098j katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowConfiguration.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.java?ref=f2f0426e8a070534b22383199b16d1f7bf845629j X  @@ -17,8 +17,19 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import org.immutables.value.Value;
 
 @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
 public interface WorkflowConfiguration {
     int iterationCount();
+
+    @Value.Default
+    default double rateLimit() {
+        return 100;
+    }
+
+    @Value.Default
+    default Integer maxThreadCount() {
+        return 100;
+    }
 }u}(j) (657030222c223cabc3af02a6cfa9a51829ab3112j latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedj K j Kj K(j https://github.com/palantir/atlasdb/blob/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://github.com/palantir/atlasdb/raw/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=f2f0426e8a070534b22383199b16d1f7bf845629j X  @@ -29,11 +29,14 @@
 import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
 import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
 import com.palantir.conjure.java.serialization.ObjectMappers;
@@ -95,12 +98,17 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 Refreshable.only(configuration.runtime().atlas()),
                 USER_AGENT,
                 metricsManager);
-        SingleRowTwoCellsWorkflowConfiguration workflowConfig =
+        SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig =
                 configuration.install().singleRowTwoCellsConfig();
+        RingWorkflowConfiguration ringWorkflowConfiguration =
+                configuration.install().ringConfig();
 
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
-                .run(createSingleRowTwoCellsWorkflowValidator(
-                        transactionStoreFactory, workflowConfig, environment.lifecycle()));
+                .run(
+                        createSingleRowTwoCellsWorkflowValidator(
+                                transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
+                        createRingWorkflowValidator(
+                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -111,12 +119,30 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
+    private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            RingWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = lifecycle
+                .executorService(RingWorkflows.class.getSimpleName())
+                .maxThreads(workflowConfig.maxThreadCount())
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(RingWorkflows.create(
+                transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)));
+    }
+
     private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             SingleRowTwoCellsWorkflowConfiguration workflowConfig,
             LifecycleEnvironment lifecycle) {
-        ExecutorService singleRowTwoCellsExecutorService = lifecycle
-                .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
+        ExecutorService executorService = lifecycle
+                .executorService(RingWorkflows.class.getSimpleName())
+                .maxThreads(workflowConfig.maxThreadCount())
                 .build();
         TransactionStore transactionStore = transactionStoreFactory.create(
                 Map.of(
@@ -125,9 +151,7 @@ private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator
                 Set.of());
         return WorkflowAndInvariants.builder()
                 .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
-                        transactionStore,
-                        workflowConfig,
-                        MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)))
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
                 .addInvariantReporters(new DurableWritesInvariantMetricReporter(
                         SingleRowTwoCellsWorkflows.class.getSimpleName(),
                         DurableWritesMetrics.of(taggedMetricRegistry)))u}(j) (899459cdb3b709b73bdaa6f88501e36e980580c8j atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://github.com/palantir/atlasdb/raw/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=f2f0426e8a070534b22383199b16d1f7bf845629j X  @@ -20,6 +20,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
 
 @JsonDeserialize(as = ImmutableWorkloadServerInstallConfiguration.class)
@@ -30,5 +31,7 @@ public interface WorkloadServerInstallConfiguration {
 
     SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig();
 
+    RingWorkflowConfiguration ringConfig();
+
     boolean exitAfterRunning();
 }u}(j) (b92811220a5a77616324333bfc9e02b6ac0ca989j Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=f2f0426e8a070534b22383199b16d1f7bf845629j X=  @@ -10,4 +10,10 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
   exitAfterRunning: false
\ No newline at end of fileu}(j) (d30bb12eccd163f3ff27a1f16336e27031b0e847j Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://github.com/palantir/atlasdb/raw/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=f2f0426e8a070534b22383199b16d1f7bf845629j X   @@ -45,4 +45,10 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
   exitAfterRunning: trueu}(j) (f0ef6a7b2a2ff03f260d5e5b1a833d0f4a509161j Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=f2f0426e8a070534b22383199b16d1f7bf845629j X<  @@ -10,4 +10,10 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
   exitAfterRunning: true
\ No newline at end of fileu}(j) (6c1f4a7a8436891c6ea5ad47054652ed82549811j matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj https://github.com/palantir/atlasdb/raw/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=f2f0426e8a070534b22383199b16d1f7bf845629j XW  @@ -39,7 +39,7 @@
 import one.util.streamex.EntryStream;
 import one.util.streamex.StreamEx;
 
-public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory {
+public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory<InteractiveTransactionStore> {
 
     private final TransactionManager transactionManager;
     private final Optional<Namespace> maybeNamespace;
@@ -50,7 +50,7 @@ public AtlasDbTransactionStoreFactory(TransactionManager transactionManager, Opt
     }
 
     @Override
-    public TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
+    public InteractiveTransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
         return AtlasDbTransactionStore.create(transactionManager, toAtlasTables(tables, indexes));
     }
 u}(j) (caadf187b4d5e22652f2a830ce77923c1b876143j xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=f2f0426e8a070534b22383199b16d1f7bf845629j X_  @@ -31,11 +31,6 @@ public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfigur
 
     TableConfiguration tableConfiguration();
 
-    @Value.Default
-    default double rateLimit() {
-        return 100;
-    }
-
     @Value.Lazy
     default RateLimiter transactionRateLimiter() {
         return RateLimiter.create(rateLimit());u}(j) (8db9245638b72b40f73f9ae3c427c4ccb2c69053j patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowConfiguration.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.java?ref=f2f0426e8a070534b22383199b16d1f7bf845629j X  @@ -20,14 +20,13 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.google.common.util.concurrent.RateLimiter;
-import com.palantir.atlasdb.workload.workflow.ImmutableSingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TableConfiguration;
 import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
 import org.immutables.value.Value;
 
 @Value.Immutable
-@JsonSerialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
-@JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonSerialize(as = ImmutableRingWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableRingWorkflowConfiguration.class)
 @JsonTypeName(RingWorkflowConfiguration.TYPE)
 public interface RingWorkflowConfiguration extends WorkflowConfiguration {
     String TYPE = "ring";
@@ -38,11 +37,6 @@ default Integer ringSize() {
         return 3;
     }
 
-    @Value.Default
-    default double rateLimit() {
-        return 100;
-    }
-
     @Value.Lazy
     default RateLimiter transactionRateLimiter() {
         return RateLimiter.create(rateLimit());u}(j) (b786a95bef1effb5bd44f53eed786d588b38a9b0j datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflows.javaj modifiedj K
j K j K
j https://github.com/palantir/atlasdb/blob/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj https://github.com/palantir/atlasdb/raw/f2f0426e8a070534b22383199b16d1f7bf845629/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.java?ref=f2f0426e8a070534b22383199b16d1f7bf845629j X  @@ -51,6 +51,19 @@ private RingWorkflows() {
     }
 
     public static Workflow create(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration ringWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        AtomicBoolean skipRunning = new AtomicBoolean(false);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
+                ringWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
             InteractiveTransactionStore store,
             RingWorkflowConfiguration ringWorkflowConfiguration,
             ListeningExecutorService executionExecutor,ueu(0e042c5db32fd526cc9e1506788bee2cda4f3a43}(sha(0e042c5db32fd526cc9e1506788bee2cda4f3a43node_idEC_kwDOAjP5fdoAKDBlMDQyYzVkYjMyZmQ1MjZjYzllMTUwNjc4OGJlZTJjZGE0ZjNhNDMcommit}(author}(name
Nimai Agarwalemail/47481810+nimai-agarwal@users.noreply.github.comdate2023-04-18T15:09:42Zu	committer}(j GitHubj noreply@github.comj 2023-04-18T15:09:42ZumessagePAdded fastForwardTimestamp endpoint to conjure TimeLockManagementService (#6532)tree}(j (041e383a7370dc1c047517e65883a1c32306a6bfurl`https://api.github.com/repos/palantir/atlasdb/git/trees/041e383a7370dc1c047517e65883a1c32306a6bfuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0e042c5db32fd526cc9e1506788bee2cda4f3a43
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkPrK2CRBK7hj4Ov3rIwAA3BsIAD3f1rULvAizZI7xUoaVe0wr
mchhU05eG8tL3ZFnEahRLOUwI2Ha10rHcul/T2psYZeVjCL/BMwdfBeVSqhN1an1
kjCfXI4rbgDnE5Oqsa93cjagg6LIHzZhdv9CmroIwxVmJiFxOPNBJftIUvYJMZna
xo25MMlck+b6+hxA1i3JRiE4QEkWwtEb0gJBxj/2vWbY40GR+AslsvR+yAjKjsvv
5+JtNCjfpzOlaqSZL8a2ZAOlIQM0KE2e+24zAS6XF4vVZXI8v3Unhq5PjQmIbUVP
eY9gYH7+/OLv9+eoWaNATL1loAppVZvgl8slUtS2e+5l9Q+CLZOXLmtN9Jx7ZgI=
=Squ+
-----END PGP SIGNATURE-----
payloadXA  tree 041e383a7370dc1c047517e65883a1c32306a6bf
parent e9fe74ce662c9ab679769729db342780a9cd125d
author Nimai Agarwal <47481810+nimai-agarwal@users.noreply.github.com> 1681830582 -0400
committer GitHub <noreply@github.com> 1681830582 +0000

Added fastForwardTimestamp endpoint to conjure TimeLockManagementService (#6532)

 uuj ^https://api.github.com/repos/palantir/atlasdb/commits/0e042c5db32fd526cc9e1506788bee2cda4f3a43html_urlShttps://github.com/palantir/atlasdb/commit/0e042c5db32fd526cc9e1506788bee2cda4f3a43comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0e042c5db32fd526cc9e1506788bee2cda4f3a43/commentsj }(login
nimai-agarwalidJ҃j MDQ6VXNlcjQ3NDgxODEw
avatar_url4https://avatars.githubusercontent.com/u/47481810?v=4gravatar_idh5j *https://api.github.com/users/nimai-agarwalj  https://github.com/nimai-agarwal
followers_url4https://api.github.com/users/nimai-agarwal/followers
following_urlAhttps://api.github.com/users/nimai-agarwal/following{/other_user}	gists_url:https://api.github.com/users/nimai-agarwal/gists{/gist_id}starred_urlAhttps://api.github.com/users/nimai-agarwal/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/nimai-agarwal/subscriptionsorganizations_url/https://api.github.com/users/nimai-agarwal/orgs	repos_url0https://api.github.com/users/nimai-agarwal/repos
events_url;https://api.github.com/users/nimai-agarwal/events{/privacy}received_events_url:https://api.github.com/users/nimai-agarwal/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j! h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj$ /https://api.github.com/users/web-flow/followersj& <https://api.github.com/users/web-flow/following{/other_user}j( 5https://api.github.com/users/web-flow/gists{/gist_id}j* <https://api.github.com/users/web-flow/starred{/owner}{/repo}j, 3https://api.github.com/users/web-flow/subscriptionsj. *https://api.github.com/users/web-flow/orgsj0 +https://api.github.com/users/web-flow/reposj2 6https://api.github.com/users/web-flow/events{/privacy}j4 5https://api.github.com/users/web-flow/received_eventsj6 Userj8 uparents]}(j (e9fe74ce662c9ab679769729db342780a9cd125dj ^https://api.github.com/repos/palantir/atlasdb/commits/e9fe74ce662c9ab679769729db342780a9cd125dj Shttps://github.com/palantir/atlasdb/commit/e9fe74ce662c9ab679769729db342780a9cd125duastats}(totalK$	additionsK$	deletionsK ufiles](}(j (1024e54ed07d4e2bd922e5dfe54d99940eafcda2filename9timelock-api/src/main/conjure/timelock-management-api.ymlstatusmodifiedjR KjS K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/0e042c5db32fd526cc9e1506788bee2cda4f3a43/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/0e042c5db32fd526cc9e1506788bee2cda4f3a43/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.yml?ref=0e042c5db32fd526cc9e1506788bee2cda4f3a43patchX  @@ -1,3 +1,9 @@
+types:
+  imports:
+    Long:
+      base-type: string
+      external:
+        java: java.lang.Long
 services:
   TimeLockManagementService:
     name: TimeLock Management Service
@@ -59,3 +65,20 @@ services:
           external intervention to start up the service again. The endpoint returns the (randomly generated) server id
           associated with server upon start up. A client can then make `getServerId` requests wherein change in
           server id would imply that the server was bounced.
+
+      fastForwardTimestamp:
+        http: POST /fastForward
+        args:
+          namespace:
+            type: string
+            safety: safe
+            param-type: query
+          currentTimestamp:
+            type: Long
+            param-type: query
+            docs: the largest timestamp issued until the fast-forward call
+        docs: |
+          Updates the timestamp service to the currentTimestamp to ensure that all fresh timestamps issued after
+          this request are greater than the current timestamp.
+          The caller of this is responsible for not using any of the fresh timestamps previously served to it,
+          and must call getFreshTimestamps() to ensure it is using timestamps after the fastforward point.u}(j (53c528056463748405e592612eb92e12b07a2de4jX dtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/TimeLockManagementResource.javajZ modifiedjR K
jS K j\ K
j] https://github.com/palantir/atlasdb/blob/0e042c5db32fd526cc9e1506788bee2cda4f3a43/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.javaj_ https://github.com/palantir/atlasdb/raw/0e042c5db32fd526cc9e1506788bee2cda4f3a43/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.javaja https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.java?ref=0e042c5db32fd526cc9e1506788bee2cda4f3a43jc X  @@ -137,6 +137,14 @@ public ListenableFuture<UUID> forceKillTimeLockServer(AuthHeader authHeader) {
         return Futures.immediateFuture(serviceLifecycleController.getServerId());
     }
 
+    @Override
+    public ListenableFuture<Void> fastForwardTimestamp(AuthHeader authHeader, String namespace, long currentTimestamp) {
+        return handleExceptions(() -> {
+            timelockNamespaces.get(namespace).getTimestampManagementService().fastForwardTimestamp(currentTimestamp);
+            return Futures.immediateFuture(null);
+        });
+    }
+
     private <T> ListenableFuture<T> handleExceptions(Supplier<ListenableFuture<T>> supplier) {
         return exceptionHandler.handleExceptions(supplier);
     }
@@ -192,6 +200,11 @@ public UUID forceKillTimeLockServer(AuthHeader authHeader) {
             return unwrap(resource.forceKillTimeLockServer(authHeader));
         }
 
+        @Override
+        public void fastForwardTimestamp(AuthHeader authHeader, String namespace, long currentTimestamp) {
+            unwrap(resource.fastForwardTimestamp(authHeader, namespace, currentTimestamp));
+        }
+
         private static <T> T unwrap(ListenableFuture<T> future) {
             return AtlasFutures.getUnchecked(future);
         }ueu(6bf2dfd5499de5b6e9984e6aa637108146974777}(sha(6bf2dfd5499de5b6e9984e6aa637108146974777node_idEC_kwDOAjP5fdoAKDZiZjJkZmQ1NDk5ZGU1YjZlOTk4NGU2YWE2MzcxMDgxNDY5NzQ3Nzccommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-28T17:38:42Zu	committer}(jw 
Ahmed Alouanejy aalouane@palantir.comj{ 2023-04-28T17:38:42Zumessage
back to fixedtree}(jo (838e79e8a1f0bc3c0e06ada58be4274f489360aeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/838e79e8a1f0bc3c0e06ada58be4274f489360aeuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6bf2dfd5499de5b6e9984e6aa637108146974777
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRMBKIACgkQPlMHVIT1
yhpfJQf/XgIUk0n3J+7hbHqFZvuNCfco3+DKMlJl5JQ2qyGXDYmfMoN9Gvb7ztom
Y9E1QdRcOYLAMJZjtJeU1OEandx5PvoIRiHYGNff9JRRzVr7gSkKg1OLsbKVtNWi
zdOuMT9ZGB9FrES6z8MSTQhI7IfGQ9XnFd0y/YqPUSg36gmwxCzV7XKgSJ0XHKGU
XakqBYMSNLTNKaMTiBa+hrEM3UdkRlMBr88gO7HJqWlLwfH/VsBK33v0w06EMBAF
q/mBz/BNZHPRXBA4pMjD626q8F10VkPhDY3iVTh7OTA5e8hfzLLOWHDEOGxOdlEX
K7PmSsonuGd6lHlOstdj8syC2TbKdQ==
=BjKd
-----END PGP SIGNATURE-----payloadtree 838e79e8a1f0bc3c0e06ada58be4274f489360ae
parent f7dfb739bc8e1b5bcdee611c76637a95b40da2c9
author Ahmed Alouane <aalouane@palantir.com> 1682703522 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682703522 +0100

back to fixed
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/6bf2dfd5499de5b6e9984e6aa637108146974777html_urlShttps://github.com/palantir/atlasdb/commit/6bf2dfd5499de5b6e9984e6aa637108146974777comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6bf2dfd5499de5b6e9984e6aa637108146974777/commentsju }(loginergo14idJjq MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj} }(j ergo14j Jjq MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jo (f7dfb739bc8e1b5bcdee611c76637a95b40da2c9j ^https://api.github.com/repos/palantir/atlasdb/commits/f7dfb739bc8e1b5bcdee611c76637a95b40da2c9j Shttps://github.com/palantir/atlasdb/commit/f7dfb739bc8e1b5bcdee611c76637a95b40da2c9uastats}(totalK	additionsK	deletionsKufiles]}(jo (1eeed38f3eba3c52e86c0442e608df5e6bbba6f4filename%scripts/circle-ci/run-circle-tests.shstatusmodifiedj Kj KchangesKblob_url{https://github.com/palantir/atlasdb/blob/6bf2dfd5499de5b6e9984e6aa637108146974777/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/6bf2dfd5499de5b6e9984e6aa637108146974777/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=6bf2dfd5499de5b6e9984e6aa637108146974777patchX  @@ -89,7 +89,7 @@ case $CIRCLE_NODE_INDEX in
     5) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_5[@]} ;;
     6) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_6[@]} ;;
     7) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_7[@]} ;;
-    8) if [[ "$CIRCLE_BRANCH" = "aatest23" || ! -z "$CIRCLE_TAG" ]]; then ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_8[@]}; else echo "Skipping"; fi ;;
+    8) if [[ "$CIRCLE_BRANCH" = "develop" || ! -z "$CIRCLE_TAG" ]]; then ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_8[@]}; else echo "Skipping"; fi ;;
     9) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_9[@]} ;;
     10) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_10[@]} ;;
     11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} ;;uau(f32918e92becb54b7f5a9f85c3f3102dc15c5c28}(sha(f32918e92becb54b7f5a9f85c3f3102dc15c5c28node_idEC_kwDOAjP5fdoAKGYzMjkxOGU5MmJlY2I1NGI3ZjVhOWY4NWMzZjMxMDJkYzE1YzVjMjgcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-08-10T14:08:51Zu	committer}(j GitHubj noreply@github.comj 2023-08-10T14:08:51Zumessage@create an abstract class for stoppable transaction tasks (#6704)tree}(j (f011a3eb60f8020a93e8f5dc9bd935db86cbc200url`https://api.github.com/repos/palantir/atlasdb/git/trees/f011a3eb60f8020a93e8f5dc9bd935db86cbc200uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f32918e92becb54b7f5a9f85c3f3102dc15c5c28
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk1O9zCRBK7hj4Ov3rIwAA+FQIADqatJpgi1UQx2sf5bsn9uGP
NQhf+4Nbz8ksUL77xOWa7UpKFfJ6PrF3RuPm7hL6z1hrhyOdS6WNiG6VNpgekrbx
a5aUxVxou1U5uD8OKcz+vl9IKh/WUrt8jfFmk1+ak3c75jjlYUNXobs/CbdmoeTD
JaQ7oHU945mYGa+Kmko3kuteEmHsZAqFmv2dSvZBUA3BO0d+gVEiKyJVaNVgiQif
OUl1HOTNei3IlXzVYeL8bxNVvp1/ViWjF5Y8jkMVd8ghkUb2RxR7RuFs8YAVymbp
gMD1+6ap9Wvnr+jxecCoKA/ij2PeMdswztLKaBBMC1ce349JQN4JGHdeqDbOiQo=
=zzKy
-----END PGP SIGNATURE-----
payloadX  tree f011a3eb60f8020a93e8f5dc9bd935db86cbc200
parent d9dc21a21e545eb9c86655062ed27cbc17174055
author Sam-Kramer <sam.c.kramer@gmail.com> 1691676531 +0100
committer GitHub <noreply@github.com> 1691676531 +0000

create an abstract class for stoppable transaction tasks (#6704)

 uuj ^https://api.github.com/repos/palantir/atlasdb/commits/f32918e92becb54b7f5a9f85c3f3102dc15c5c28html_urlShttps://github.com/palantir/atlasdb/commit/f32918e92becb54b7f5a9f85c3f3102dc15c5c28comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f32918e92becb54b7f5a9f85c3f3102dc15c5c28/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj	 https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j	 web-flowj	 J/j MDQ6VXNlcjE5ODY0NDQ3j	 4https://avatars.githubusercontent.com/u/19864447?v=4j	 h5j %https://api.github.com/users/web-flowj	 https://github.com/web-flowj	 /https://api.github.com/users/web-flow/followersj	 <https://api.github.com/users/web-flow/following{/other_user}j	 5https://api.github.com/users/web-flow/gists{/gist_id}j 	 <https://api.github.com/users/web-flow/starred{/owner}{/repo}j"	 3https://api.github.com/users/web-flow/subscriptionsj$	 *https://api.github.com/users/web-flow/orgsj&	 +https://api.github.com/users/web-flow/reposj(	 6https://api.github.com/users/web-flow/events{/privacy}j*	 5https://api.github.com/users/web-flow/received_eventsj,	 Userj.	 uparents]}(j (d9dc21a21e545eb9c86655062ed27cbc17174055j ^https://api.github.com/repos/palantir/atlasdb/commits/d9dc21a21e545eb9c86655062ed27cbc17174055j	 Shttps://github.com/palantir/atlasdb/commit/d9dc21a21e545eb9c86655062ed27cbc17174055uastats}(totalKr	additionsKI	deletionsK)ufiles](}(j (818c6d21db60ab2cc8e76725d48fa24dcec6401ffilenameoatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/StoppableKeyedTransactionTask.javastatusaddedjH	 K8jI	 K changesK8blob_urlhttps://github.com/palantir/atlasdb/blob/f32918e92becb54b7f5a9f85c3f3102dc15c5c28/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FStoppableKeyedTransactionTask.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f32918e92becb54b7f5a9f85c3f3102dc15c5c28/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FStoppableKeyedTransactionTask.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FStoppableKeyedTransactionTask.java?ref=f32918e92becb54b7f5a9f85c3f3102dc15c5c28patchX+  @@ -0,0 +1,56 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.function.Consumer;
+
+/**
+ * A keyed transaction task which will stop running if it encounters a failure. Implementing classes must record the
+ * failure themselves, and should not throw an exception.
+ */
+public abstract class StoppableKeyedTransactionTask<T extends TransactionStore, ViolationT>
+        implements KeyedTransactionTask<T> {
+
+    private final AtomicBoolean stopRunning;
+    private final Consumer<ViolationT> onFailure;
+
+    public StoppableKeyedTransactionTask(AtomicBoolean stopRunning, Consumer<ViolationT> onFailure) {
+        this.stopRunning = stopRunning;
+        this.onFailure = onFailure;
+    }
+
+    protected final void recordFailure(ViolationT violation) {
+        if (stopRunning.compareAndSet(false, true)) {
+            onFailure.accept(violation);
+        }
+    }
+
+    protected abstract Optional<WitnessedTransaction> run(T store, Integer index);
+
+    @Override
+    public final Optional<WitnessedTransaction> apply(T store, Integer index) {
+        if (stopRunning.get()) {
+            return Optional.empty();
+        }
+
+        return run(store, index);
+    }
+}u0     }(j (9dc92304e724131c1f50ede2faa14d9deb07cd1cjN	 katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflows.javajP	 modifiedjH	 KjI	 KjR	 K%jS	 https://github.com/palantir/atlasdb/blob/f32918e92becb54b7f5a9f85c3f3102dc15c5c28/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javajU	 https://github.com/palantir/atlasdb/raw/f32918e92becb54b7f5a9f85c3f3102dc15c5c28/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javajW	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.java?ref=f32918e92becb54b7f5a9f85c3f3102dc15c5c28jY	 X  @@ -26,6 +26,7 @@
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
+import com.palantir.atlasdb.workload.workflow.StoppableKeyedTransactionTask;
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -60,11 +61,7 @@ public static Workflow create(
             BankBalanceWorkflowConfiguration bankBalanceWorkflowConfiguration,
             ListeningExecutorService executionExecutor) {
         BankBalanceRunTask runTask = new BankBalanceRunTask(bankBalanceWorkflowConfiguration);
-        return DefaultWorkflow.create(
-                store,
-                (txnStore, _index) -> runTask.run(txnStore),
-                bankBalanceWorkflowConfiguration,
-                executionExecutor);
+        return DefaultWorkflow.create(store, runTask, bankBalanceWorkflowConfiguration, executionExecutor);
     }
 
     @VisibleForTesting
@@ -75,21 +72,14 @@ static Workflow create(
             AtomicBoolean skipRunning,
             Consumer<Map<Integer, Optional<Integer>>> onFailure) {
         BankBalanceRunTask runTask = new BankBalanceRunTask(skipRunning, bankBalanceWorkflowConfiguration, onFailure);
-        return DefaultWorkflow.create(
-                store,
-                (txnStore, _index) -> runTask.run(txnStore),
-                bankBalanceWorkflowConfiguration,
-                executionExecutor);
+        return DefaultWorkflow.create(store, runTask, bankBalanceWorkflowConfiguration, executionExecutor);
     }
 
-    private static class BankBalanceRunTask {
-
-        private final Consumer<Map<Integer, Optional<Integer>>> onFailure;
-        private final AtomicBoolean skipRunning;
-
+    private static final class BankBalanceRunTask
+            extends StoppableKeyedTransactionTask<InteractiveTransactionStore, Map<Integer, Optional<Integer>>> {
         private final BankBalanceWorkflowConfiguration workflowConfiguration;
 
-        public BankBalanceRunTask(BankBalanceWorkflowConfiguration workflowConfiguration) {
+        private BankBalanceRunTask(BankBalanceWorkflowConfiguration workflowConfiguration) {
             this(
                     new AtomicBoolean(),
                     workflowConfiguration,
@@ -98,19 +88,16 @@ public BankBalanceRunTask(BankBalanceWorkflowConfiguration workflowConfiguration
                             SafeArg.of("maybeBalances", maybeBalances)));
         }
 
-        public BankBalanceRunTask(
+        private BankBalanceRunTask(
                 AtomicBoolean skipRunning,
                 BankBalanceWorkflowConfiguration workflowConfiguration,
                 Consumer<Map<Integer, Optional<Integer>>> onFailure) {
-            this.skipRunning = skipRunning;
+            super(skipRunning, onFailure);
             this.workflowConfiguration = workflowConfiguration;
-            this.onFailure = onFailure;
         }
 
-        public Optional<WitnessedTransaction> run(InteractiveTransactionStore store) {
-            if (skipRunning.get()) {
-                return Optional.empty();
-            }
+        @Override
+        public Optional<WitnessedTransaction> run(InteractiveTransactionStore store, Integer _index) {
             workflowConfiguration.transactionRateLimiter().acquire();
             return store.readWrite(txn -> {
                 Map<Integer, Optional<Integer>> maybeBalances = getAccountBalances(txn);
@@ -119,9 +106,7 @@ public Optional<WitnessedTransaction> run(InteractiveTransactionStore store) {
                                 workflowConfiguration.numberOfAccounts(),
                                 workflowConfiguration.initialBalancePerAccount())
                         .ifPresentOrElse(balances -> performTransfers(txn, balances), () -> {
-                            if (skipRunning.compareAndSet(false, true)) {
-                                onFailure.accept(maybeBalances);
-                            }
+                            recordFailure(maybeBalances);
                         });
             });
         }u}(j (d58eb1f1b2b1b242a5f029c032c4ceb281e2c1a7jN	 datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflows.javajP	 modifiedjH	 KjI	 KjR	 KjS	 https://github.com/palantir/atlasdb/blob/f32918e92becb54b7f5a9f85c3f3102dc15c5c28/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javajU	 https://github.com/palantir/atlasdb/raw/f32918e92becb54b7f5a9f85c3f3102dc15c5c28/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javajW	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.java?ref=f32918e92becb54b7f5a9f85c3f3102dc15c5c28jY	 XR
  @@ -23,7 +23,7 @@
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
-import com.palantir.atlasdb.workload.workflow.KeyedTransactionTask;
+import com.palantir.atlasdb.workload.workflow.StoppableKeyedTransactionTask;
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
@@ -83,27 +83,20 @@ static Workflow create(
         return DefaultWorkflow.create(store, task, ringWorkflowConfiguration, executionExecutor);
     }
 
-    private static final class RingWorkflowTask implements KeyedTransactionTask<InteractiveTransactionStore> {
-
-        private final AtomicBoolean skipRunning;
-        private final Consumer<RingValidationException> onFailure;
+    private static final class RingWorkflowTask
+            extends StoppableKeyedTransactionTask<InteractiveTransactionStore, RingValidationException> {
         private final RingWorkflowConfiguration workflowConfiguration;
 
         public RingWorkflowTask(
                 AtomicBoolean skipRunning,
                 Consumer<RingValidationException> onFailure,
                 RingWorkflowConfiguration workflowConfiguration) {
-            this.skipRunning = skipRunning;
-            this.onFailure = onFailure;
+            super(skipRunning, onFailure);
             this.workflowConfiguration = workflowConfiguration;
         }
 
         @Override
-        public Optional<WitnessedTransaction> apply(InteractiveTransactionStore store, Integer integer) {
-            if (skipRunning.get()) {
-                return Optional.empty();
-            }
-
+        public Optional<WitnessedTransaction> run(InteractiveTransactionStore store, Integer integer) {
             workflowConfiguration.transactionRateLimiter().acquire();
             String table = workflowConfiguration.tableConfiguration().tableName();
             int ringSize = workflowConfiguration.ringSize();
@@ -116,9 +109,7 @@ public Optional<WitnessedTransaction> apply(InteractiveTransactionStore store, I
                             .asMap()
                             .forEach((rootNode, nextNode) -> txn.write(table, cell(rootNode), nextNode));
                 } catch (RingValidationException e) {
-                    if (skipRunning.compareAndSet(false, true)) {
-                        onFailure.accept(e);
-                    }
+                    recordFailure(e);
                 }
             });
         }ueu(7b4d855740aff578b31615bfb8464596afeba63a}(sha(7b4d855740aff578b31615bfb8464596afeba63anode_idEC_kwDOAjP5fdoAKDdiNGQ4NTU3NDBhZmY1NzhiMzE2MTViZmI4NDY0NTk2YWZlYmE2M2Ecommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-07-07T09:38:24Zu	committer}(ju	 
Ahmed Alouanejw	 aalouane@palantir.comjy	 2023-07-07T09:38:24ZumessageMerge upstreamtree}(jm	 (b7d9248fddc1197073b70acad6108e8a65acf8aburl`https://api.github.com/repos/palantir/atlasdb/git/trees/b7d9248fddc1197073b70acad6108e8a65acf8abuj	 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7b4d855740aff578b31615bfb8464596afeba63a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmSn3RQACgkQPlMHVIT1
yhpL1Qf9Hs3NowLwHE61Q+Uc9lQmLL0p48jhKEBsxllxZ4xIdfQieAmieebDL5U7
kEfIl9s/f8xI9d5GjeUBmIPlAKYokWaRjUm1B/S+RbJGhB+1zJ4tDx9o6jzrNkeI
UCH40ked9St/IQjiy2IiAQfsn8nYdC9hX7AIWN4jCpLY8i4rqrpK5wCXo/yqvPFx
eAI+FdKgG5nIazt/W0Q0dzAeMhQmxph+o9EuSUj5Zi55LdzIQyztbersfjlwN5dL
+TiveeVKHB8xwYDq/F9YiY1rzx5SVi9D8VbQLmgHhyR9iFQY8gsIm8Ho1pN3OVd/
Pr2V/TUXVH6FrHoanaB23lP6pdCaYw==
=+WRK
-----END PGP SIGNATURE-----payloadX  tree b7d9248fddc1197073b70acad6108e8a65acf8ab
parent cfe303a71f835673adbd85f6f393b94773c1c02f
parent 7b124537f11a895e26e3c176241b15a72deb65c1
author Ahmed Alouane <aalouane@palantir.com> 1688722704 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1688722704 +0100

Merge upstream
uuj	 ^https://api.github.com/repos/palantir/atlasdb/commits/7b4d855740aff578b31615bfb8464596afeba63ahtml_urlShttps://github.com/palantir/atlasdb/commit/7b4d855740aff578b31615bfb8464596afeba63acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7b4d855740aff578b31615bfb8464596afeba63a/commentsjs	 }(loginergo14idJjo	 MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j	 #https://api.github.com/users/ergo14j	 https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj{	 }(j	 ergo14j	 Jjo	 MDQ6VXNlcjMwOTAzNzM2j	 4https://avatars.githubusercontent.com/u/30903736?v=4j	 h5j	 #https://api.github.com/users/ergo14j	 https://github.com/ergo14j	 -https://api.github.com/users/ergo14/followersj	 :https://api.github.com/users/ergo14/following{/other_user}j	 3https://api.github.com/users/ergo14/gists{/gist_id}j	 :https://api.github.com/users/ergo14/starred{/owner}{/repo}j	 1https://api.github.com/users/ergo14/subscriptionsj	 (https://api.github.com/users/ergo14/orgsj	 )https://api.github.com/users/ergo14/reposj	 4https://api.github.com/users/ergo14/events{/privacy}j	 3https://api.github.com/users/ergo14/received_eventsj	 Userj	 uparents](}(jm	 (cfe303a71f835673adbd85f6f393b94773c1c02fj	 ^https://api.github.com/repos/palantir/atlasdb/commits/cfe303a71f835673adbd85f6f393b94773c1c02fj	 Shttps://github.com/palantir/atlasdb/commit/cfe303a71f835673adbd85f6f393b94773c1c02fu}(jm	 (7b124537f11a895e26e3c176241b15a72deb65c1j	 ^https://api.github.com/repos/palantir/atlasdb/commits/7b124537f11a895e26e3c176241b15a72deb65c1j	 Shttps://github.com/palantir/atlasdb/commit/7b124537f11a895e26e3c176241b15a72deb65c1uestats}(totalM.	additionsM{		deletionsMufiles](}(jm	 (7e1fc418d0ab8950f7d0a2c8a9ed46fe72c28ab9filenamePatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/KeyValueService.javastatusmodifiedj	 Kj	 K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.java?ref=7b4d855740aff578b31615bfb8464596afeba63apatchX  @@ -711,4 +711,11 @@ default boolean shouldTriggerCompactions() {
     default boolean isValid() {
         return true;
     }
+
+    @DoDelegate
+    default boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        // This is in general True, but we're setting to false to start rollout only for C* of stopping to check for
+        // immutable timestamp lock on non empty reads on thoroughly swept tables.
+        return false;
+    }
 }u}(jm	 (22dc29e0664eb2fea2e0669bb248c2333fbefdd4j	 atlasdb-cassandra-integration-tests/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceIntegrationTest.javaj	 modifiedj	 Kj	 K j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X=  @@ -709,6 +709,12 @@ public void testMultiCheckAndSetIndependentlyFails() {
         verifyMultiCheckAndSet(ImmutableMap.of(firstTestCell, val(0, 0), nextTestCell, val(0, 1)));
     }
 
+    @Test
+    public void cassandraHasStrictlyNonDecreasingSweep() {
+        assertThat(keyValueService.sweepsEntriesInStrictlyNonDecreasingFashion())
+                .isTrue();
+    }
+
     private void verifyMultiCheckAndSet(Map<Cell, byte[]> expectedValues) {
         Multimap<Cell, Long> timestamps = keyValueService.getAllTimestamps(TEST_TABLE, expectedValues.keySet(), 1L);
 u}(jm	 (d7d2d87671c66d0e3f85762da04755fb7955d5b1j	 iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj	 modifiedj	 Kj	 K j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -2033,6 +2033,11 @@ public ClusterAvailabilityStatus getClusterAvailabilityStatus() {
         return clusterStatus;
     }
 
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return true;
+    }
+
     private static boolean isClusterQuorumAvaialble(ClusterAvailabilityStatus clusterStatus) {
         return clusterStatus.equals(ClusterAvailabilityStatus.ALL_AVAILABLE)
                 || clusterStatus.equals(ClusterAvailabilityStatus.QUORUM_AVAILABLE);u}(jm	 (4e16bd6856b710e2bea5df31215dec94adb90e6bj	 batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaj	 modifiedj	 Kj	 Kj	 K#j	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X
  @@ -148,18 +148,17 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
                 hostToDatacentersThisRefresh.put(onlyHost, onlyEndpoint.getDatacenter());
             } else { // normal case, large cluster with many vnodes
                 for (TokenRange tokenRange : tokenRanges) {
-                    Map<CassandraServer, String> hostToDatacentersOnThisTokenRange = KeyedStream.of(
-                                    tokenRange.getEndpoint_details())
-                            .mapKeys(EndpointDetails::getHost)
-                            .mapKeys(this::getAddressForHostThrowUnchecked)
-                            .map(EndpointDetails::getDatacenter)
-                            .collectToMap();
-
-                    ImmutableSet<CassandraServer> hosts =
-                            ImmutableSet.copyOf(hostToDatacentersOnThisTokenRange.keySet());
-                    servers.addAll(hosts);
-                    hostToDatacentersThisRefresh.putAll(hostToDatacentersOnThisTokenRange);
+                    List<EndpointDetails> endpointDetails = tokenRange.getEndpoint_details();
+                    ImmutableSet.Builder<CassandraServer> hostsBuilder =
+                            ImmutableSet.builderWithExpectedSize(endpointDetails.size());
+                    for (EndpointDetails endpoint : endpointDetails) {
+                        CassandraServer cassandraServer = getAddressForHostThrowUnchecked(endpoint.getHost());
+                        hostToDatacentersThisRefresh.put(cassandraServer, endpoint.getDatacenter());
+                        hostsBuilder.add(cassandraServer);
+                        servers.add(cassandraServer);
+                    }
 
+                    ImmutableSet<CassandraServer> hosts = hostsBuilder.build();
                     LightweightOppToken startToken = LightweightOppToken.fromHex(tokenRange.getStart_token());
                     LightweightOppToken endToken = LightweightOppToken.fromHex(tokenRange.getEnd_token());
                     if (startToken.compareTo(endToken) <= 0) {
@@ -288,17 +287,15 @@ private CassandraServer getAddressForHostThrowUnchecked(String host) {
     CassandraServer getAddressForHost(String inputHost) throws UnknownHostException {
         Map<String, String> hostnamesByIp = hostnameByIpSupplier.get();
         String cassandraHostName = hostnamesByIp.getOrDefault(inputHost, inputHost);
-        return CassandraServer.of(cassandraHostName, getReachableProxies(cassandraHostName));
-    }
-
-    private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) throws UnknownHostException {
-        InetAddress[] resolvedHosts = InetAddress.getAllByName(inputHost);
+        InetAddress[] resolvedHosts = InetAddress.getAllByName(cassandraHostName);
         int knownPort = getKnownPort();
 
         // It is okay to have reachable proxies that do not have a hostname
-        return Stream.of(resolvedHosts)
-                .map(inetAddr -> new InetSocketAddress(inetAddr, knownPort))
-                .collect(ImmutableSet.toImmutableSet());
+        ImmutableSet.Builder<InetSocketAddress> proxies = ImmutableSet.builderWithExpectedSize(resolvedHosts.length);
+        for (InetAddress host : resolvedHosts) {
+            proxies.add(new InetSocketAddress(host, knownPort));
+        }
+        return CassandraServer.of(cassandraHostName, proxies.build());
     }
 
     private int getKnownPort() throws UnknownHostException {u}(jm	 (a0daffcaa0a4ea862e707fb50afd62871f197c8ej	 ]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/DualWriteKeyValueService.javaj	 modifiedj	 Kj	 K j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -318,4 +318,9 @@ public List<byte[]> getRowKeysInRange(TableReference tableRef, byte[] startRow,
     public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<Cell, Long> timestampByCell) {
         return delegate1.getAsync(tableRef, timestampByCell);
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate1.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(jm	 (1ab84302f51e4bad9eef3b306d5f224b087a44d4j	 \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/InMemoryKeyValueService.javaj	 modifiedj	 Kj	 K j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X-  @@ -735,6 +735,12 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
         return Futures.immediateFuture(get(tableRef, timestampByCell));
     }
 
+    // Marking this as true as it's only used for tests, so we can better replicate Cassandra behaviour.
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return true;
+    }
+
     /**
      * This takes out a reentrant read lock. It is only exclusive specifically with
      * {@link #multiCheckAndSet(MultiCheckAndSetRequest)}.u}(jm	 (d41572b88d0c8b10e1042d4d64b59e123b40c6c1j	 ]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/ProfilingKeyValueService.javaj	 modifiedj	 Kj	 K j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X|  @@ -554,4 +554,9 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
                         LoggingArgs.durationMillis(stopwatch)),
                 logCellResultSize(4L));
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(jm	 (aee4560b5007342d777bb076c6630351e4618aa1j	 [atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/TracingKeyValueService.javaj	 modifiedj	 Kj	 K j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -531,6 +531,11 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
         });
     }
 
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate().sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
+
     @MustBeClosed
     private static CloseableTracer startLocalTrace(@CompileTimeConstant final String operation) {
         TraceStatistic original = TraceStatistics.getCurrentAndClear();u}(jm	 (847dac9582377f857ea51d134c9d257b2a221cb0j	 Vatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javaj	 modifiedj	 K6j	 K
j	 K@j	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -16,9 +16,12 @@
 
 package com.palantir.atlasdb.table.description;
 
+import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.Optional;
 
 /**
@@ -28,28 +31,53 @@
  */
 public final class SweepStrategy {
 
+    private static final SafeLogger log = SafeLoggerFactory.get(SweepStrategy.class);
+
     public static final SweepStrategy CONSERVATIVE =
-            new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false);
-    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), true);
+            new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false, false);
+    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), false, true);
 
     private final Optional<SweeperStrategy> sweeperStrategy;
-    private final boolean mustCheckImmutableLockAfterReads;
+    private final boolean mustCheckImmutableLockIfAllCellsReadAndPresent;
+
+    // When we either read an empty value or perform reads like a range-scan, where we can't be certain of how many
+    // values we expect.
+    private final boolean mustCheckImmutableLockIfNonExhaustiveRead;
 
-    private SweepStrategy(Optional<SweeperStrategy> sweeperStrategy, boolean mustCheckImmutableLockAfterReads) {
+    private SweepStrategy(
+            Optional<SweeperStrategy> sweeperStrategy,
+            boolean mustCheckImmutableLockIfAllCellsReadAndPresent,
+            boolean mustCheckImmutableLockIfNonExhaustiveRead) {
         this.sweeperStrategy = sweeperStrategy;
-        this.mustCheckImmutableLockAfterReads = mustCheckImmutableLockAfterReads;
+        this.mustCheckImmutableLockIfAllCellsReadAndPresent = mustCheckImmutableLockIfAllCellsReadAndPresent;
+        this.mustCheckImmutableLockIfNonExhaustiveRead = mustCheckImmutableLockIfNonExhaustiveRead;
     }
 
     public Optional<SweeperStrategy> getSweeperStrategy() {
         return sweeperStrategy;
     }
 
-    public boolean mustCheckImmutableLockAfterReads() {
-        return mustCheckImmutableLockAfterReads;
+    public boolean mustCheckImmutableLock(boolean allPossibleCellsReandAndPresent) {
+        boolean mustCheckLock = allPossibleCellsReandAndPresent
+                ? mustCheckImmutableLockIfAllCellsReadAndPresent
+                : mustCheckImmutableLockIfNonExhaustiveRead;
+
+        if (log.isDebugEnabled() && !mustCheckLock && isConfiguredWithThoroughSweep()) {
+            log.debug("Can skip immutable timestamp lock on thoroughly swept table due to making exhaustive read");
+        }
+
+        return mustCheckLock;
+    }
+
+    private boolean isConfiguredWithThoroughSweep() {
+        return getSweeperStrategy().isPresent() && getSweeperStrategy().get().equals(SweeperStrategy.THOROUGH);
     }
 
-    public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy) {
-        return new SweepStrategy(sweeperBehaviour(strategy), mustCheckImmutableLockAfterReads(strategy));
+    public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
+        return new SweepStrategy(
+                sweeperBehaviour(strategy),
+                mustCheckImmutableLockIfAllCellsReadAndPresent(strategy, kvs),
+                mustCheckImmutableLockIfNonExhaustiveRead(strategy));
     }
 
     private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersistence.SweepStrategy strategy) {
@@ -65,7 +93,23 @@ private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersisten
         throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
     }
 
-    private static boolean mustCheckImmutableLockAfterReads(TableMetadataPersistence.SweepStrategy strategy) {
+    private static boolean mustCheckImmutableLockIfAllCellsReadAndPresent(
+            TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
+        if (!kvs.sweepsEntriesInStrictlyNonDecreasingFashion()) {
+            return mustCheckImmutableLockIfNonExhaustiveRead(strategy);
+        }
+
+        switch (strategy) {
+            case CONSERVATIVE:
+            case NOTHING:
+            case THOROUGH_MIGRATION:
+            case THOROUGH:
+                return false;
+        }
+        throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
+    }
+
+    private static boolean mustCheckImmutableLockIfNonExhaustiveRead(TableMetadataPersistence.SweepStrategy strategy) {
         switch (strategy) {
             case CONSERVATIVE:
             case NOTHING:u}(jm	 (71e95645f3ae1137fc44efc89c6e3432b42d85ffj	 Watlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ReadTransaction.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -24,14 +24,15 @@
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.logging.LoggingArgs;
-import com.palantir.atlasdb.table.description.SweepStrategy;
+import com.palantir.atlasdb.table.description.SweeperStrategy;
 import com.palantir.atlasdb.transaction.api.GetRangesQuery;
 import com.palantir.common.base.BatchingVisitable;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
+import java.util.Optional;
 import java.util.Set;
 import java.util.function.BiFunction;
 import java.util.stream.Stream;
@@ -136,11 +137,11 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
     }
 
     private void checkTableName(TableReference tableRef) {
-        SweepStrategy sweepStrategy = sweepStrategies.get(tableRef);
+        Optional<SweeperStrategy> sweepStrategy = sweepStrategies.get(tableRef).getSweeperStrategy();
         Preconditions.checkState(
-                !sweepStrategy.mustCheckImmutableLockAfterReads(),
-                "This table cannot be read from a read-only transaction, because its "
-                        + "sweep strategy is neither NOTHING nor CONSERVATIVE",
+                sweepStrategy.isEmpty() || sweepStrategy.get().equals(SweeperStrategy.CONSERVATIVE),
+                "This table cannot be read from a read-only transaction, because its sweep strategy is neither NOTHING"
+                        + " nor CONSERVATIVE",
                 LoggingArgs.tableRef(tableRef));
     }
 u}(jm	 (59d37859a318b1646ca6da51436b4720150f7940j	 ]atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/SweepStrategyManagers.javaj	 modifiedj	 K	j	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X;  @@ -21,7 +21,6 @@
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
-import com.palantir.atlasdb.table.description.Schema;
 import com.palantir.atlasdb.table.description.SweepStrategy;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.logsafe.Preconditions;
@@ -53,7 +52,7 @@ public static SweepStrategyManager create(KeyValueService kvs, CacheWarming cach
                     // On a cache miss, load metadata only for the relevant table. Helpful when many dynamic tables.
                     LoadingCache<TableReference, SweepStrategy> cache = Caffeine.newBuilder()
                             .expireAfterAccess(Duration.ofDays(1))
-                            .build(tableRef -> getSweepStrategy(kvs.getMetadataForTable(tableRef)));
+                            .build(tableRef -> getSweepStrategy(kvs.getMetadataForTable(tableRef), kvs));
 
                     // Possibly warm the cache.
                     cache.putAll(getSweepStrategiesForWarmingCache(kvs, cacheWarming));
@@ -74,42 +73,34 @@ public void invalidateCaches(Set<TableReference> tableRefs) {
         };
     }
 
-    public static SweepStrategyManager createFromSchema(Schema schema) {
-        return tableRef -> {
-            TableMetadata tableMeta = Preconditions.checkNotNull(
-                    schema.getAllTablesAndIndexMetadata().get(tableRef),
-                    "unknown table",
-                    SafeArg.of("tableRef", tableRef));
-            return SweepStrategy.from(tableMeta.getSweepStrategy());
-        };
-    }
-
     public static SweepStrategyManager fromMap(final Map<TableReference, SweepStrategy> map) {
         return tableRef ->
                 Preconditions.checkNotNull(map.get(tableRef), "unknown table", SafeArg.of("tableRef", tableRef));
     }
 
-    public static SweepStrategyManager completelyConservative() {
-        return tableRef -> SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE);
+    public static SweepStrategyManager completelyConservative(KeyValueService kvs) {
+        return tableRef -> SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE, kvs);
     }
 
     private static Map<TableReference, SweepStrategy> getSweepStrategiesForWarmingCache(
             KeyValueService kvs, CacheWarming cacheWarming) {
         switch (cacheWarming) {
             case FULL:
-                return Maps.transformValues(kvs.getMetadataForTables(), SweepStrategyManagers::getSweepStrategy);
+                return Maps.transformValues(
+                        kvs.getMetadataForTables(),
+                        tableMetadata -> SweepStrategyManagers.getSweepStrategy(tableMetadata, kvs));
             case NONE:
             default:
                 return Collections.emptyMap();
         }
     }
 
-    private static SweepStrategy getSweepStrategy(byte[] tableMeta) {
+    private static SweepStrategy getSweepStrategy(byte[] tableMeta, KeyValueService kvs) {
         if (tableMeta != null && tableMeta.length > 0) {
             return SweepStrategy.from(
-                    TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy());
+                    TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy(), kvs);
         } else {
-            return SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE);
+            return SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE, kvs);
         }
     }
 }u}(jm	 (0afb2f8d855ce6f274bf6d59e8fa8724ec38f7e8j	 Jatlasdb-client/src/main/java/com/palantir/atlasdb/util/AtlasDbMetrics.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FAtlasDbMetrics.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FAtlasDbMetrics.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Futil%2FAtlasDbMetrics.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -118,7 +118,7 @@ private static <T, U extends T> T instrument(
                         LoggerFactory.getLogger("performance." + name),
                         LoggingLevel.TRACE,
                         LoggingInvocationEventHandler.LOG_DURATIONS_GREATER_THAN_1_MICROSECOND)
-                .build();
+                .build(); // Ok
     }
 
     private static InstrumentationFilter instrumentTimedOnly() {u}(jm	 (7c4c67541d67c4aac64d40c0c8b2421caf7ea3d5j	 Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javaj	 modifiedj	 K	j	 K	j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -223,7 +223,7 @@ Function<TimelockService, TimeLockClient> defaultTimelockClientFactory() {
      * TransactionManager will stay uninitialized and continue to throw for all other purposes until the callback
      * returns at which point it will become initialized. If asynchronous initialization is disabled, the callback will
      * be run just before the TM is returned.
-     *
+     * <p>
      * Note that if the callback blocks forever, the TransactionManager will never become initialized, and calling its
      * close() method will block forever as well. If the callback init() fails, and its cleanup() method throws,
      * the TransactionManager will not become initialized and it will be closed.
@@ -402,10 +402,10 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
 
         KeyValueService keyValueService = initializeCloseable(
                 () -> {
-                    KeyValueService kvs = atlasFactory.getKeyValueService();
-                    kvs = ProfilingKeyValueService.create(kvs);
+                    KeyValueService kvs = atlasFactory.getKeyValueService(); // CassandraKeyValueServiceImpl
+                    kvs = ProfilingKeyValueService.create(kvs); // Profiling, we think ok
                     kvs = new SafeTableClearerKeyValueService(
-                            lockAndTimestampServices.timelock()::getImmutableTimestamp, kvs);
+                            lockAndTimestampServices.timelock()::getImmutableTimestamp, kvs); // Autodelegate, ok
 
                     // Even if sweep queue writes are enabled, unless targeted sweep is enabled we generally still want
                     // to
@@ -420,13 +420,13 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                                 () -> true);
                     }
 
-                    kvs = TracingKeyValueService.create(kvs);
+                    kvs = TracingKeyValueService.create(kvs); // ok
                     kvs = AtlasDbMetrics.instrumentTimed(
                             metricsManager.getRegistry(),
                             KeyValueService.class,
                             kvs,
-                            MetricRegistry.name(KeyValueService.class));
-                    return ValidatingQueryRewritingKeyValueService.create(kvs);
+                            MetricRegistry.name(KeyValueService.class)); // ok?
+                    return ValidatingQueryRewritingKeyValueService.create(kvs); // ok
                 },
                 closeables);
 
@@ -670,10 +670,10 @@ private static Callback<TransactionManager> createClearsTable() {
     /**
      * If we decide to move a service to use thorough sweep; we need to make sure that background sweep won't cause any
      * trouble by deleting large number of empty values at once - causing Cassandra OOMs.
-     *
+     * <p>
      * lockImmutableTsOnReadOnlyTransaction flag is used to decide on disabling background sweep, as this flag is used
      * as an intermediate step for migrating to thorough sweep.
-     *
+     * <p>
      * Separately, users may disable the background sweep process entirely in config, which we respect.
      */
     private boolean runBackgroundSweepProcess() {u}(jm	 (30239d5d4f11f579d2be533da44b54e474102a2dj	 Oatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/DbKvs.javaj	 modifiedj	 Kj	 K j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FDbKvs.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FDbKvs.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FDbKvs.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X5  @@ -1369,6 +1369,7 @@ private <T> T runReadWrite(TableReference tableRef, ReadWriteTask<T> runner) {
         }
     }
 
+    @SuppressWarnings("CheckReturnValue")
     private <T> void runWriteForceAutocommit(TableReference tableRef, Function<DbWriteTable, T> runner) {
         try (ConnectionSupplier conns = new ConnectionSupplier(connections)) {
             SqlConnection conn = conns.get();
@@ -1381,6 +1382,7 @@ private <T> void runWriteForceAutocommit(TableReference tableRef, Function<DbWri
             if (!autocommit) {
                 runWriteFreshConnection(conns, tableRef, runner);
             } else {
+                // The return value can be ignored because the operation does a non-conditional write.
                 runner.apply(dbTables.createWrite(tableRef, conns));
             }
         }u}(jm	 (5022c993a6c8701af08093ae47ccd0f26ec456eej	 Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraTimeLockTestSuite.javaj	 modifiedj	 Kj	 K
j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -17,22 +17,19 @@
 
 import com.google.common.collect.ImmutableList;
 import com.palantir.atlasdb.containers.CassandraEnvironment;
-import com.palantir.atlasdb.ete.coordination.CoordinationEteTest;
-import com.palantir.atlasdb.ete.coordination.MultipleSchemaVersionsCoordinationEteTest;
 import org.junit.ClassRule;
 import org.junit.rules.RuleChain;
 import org.junit.runner.RunWith;
 import org.junit.runners.Suite;
 
 @RunWith(Suite.class)
-@Suite.SuiteClasses({
-    TodoEteTest.class,
-    TargetedSweepEteTest.class,
-    CassandraTimestampsEteTest.class,
-    TimestampManagementEteTest.class,
-    CoordinationEteTest.class,
-    MultipleSchemaVersionsCoordinationEteTest.class,
-    LockWithTimelockEteTest.class
+@Suite.SuiteClasses({TodoEteTest.class
+    //    TargetedSweepEteTest.class,
+    //    CassandraTimestampsEteTest.class,
+    //    TimestampManagementEteTest.class,
+    //    CoordinationEteTest.class,
+    //    MultipleSchemaVersionsCoordinationEteTest.class,
+    //    LockWithTimelockEteTest.class
 })
 public class CassandraTimeLockTestSuite extends EteSetup {
     private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");u}(jm	 (07430a7ea8f348014166e1a21707d9a2d6fa0656j	 gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableRemappingKeyValueService.javaj	 modifiedj	 Kj	 K j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 XQ  @@ -482,4 +482,9 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
             throw new IllegalArgumentException(e);
         }
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(jm	 (5ef033a6ef29cb0e07d55d81f9e01236df5838d0j	 gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableSplittingKeyValueService.javaj	 modifiedj	 Kj	 K j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -413,4 +413,9 @@ public List<byte[]> getRowKeysInRange(TableReference tableRef, byte[] startRow,
     public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<Cell, Long> timestampByCell) {
         return getDelegate(tableRef).getAsync(tableRef, timestampByCell);
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegates.stream().allMatch(KeyValueService::sweepsEntriesInStrictlyNonDecreasingFashion);
+    }
 }u}(jm	 (f4fc16c9cd18f98e0b88191831c6acfff46d8418j	 Qatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweepTaskRunner.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -152,7 +152,7 @@ private SweepResults runInternal(
             return SweepResults.createEmptySweepResultWithNoMoreToSweep();
         }
         SweepStrategy sweepStrategy = SweepStrategy.from(
-                TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy());
+                TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy(), keyValueService);
         Optional<Sweeper> maybeSweeper = sweepStrategy.getSweeperStrategy().map(Sweeper::of);
         if (runType == RunType.WAS_CONSERVATIVE_NOW_THOROUGH
                 && sweepStrategy.getSweeperStrategy().equals(Optional.of(SweeperStrategy.CONSERVATIVE))) {u}(jm	 (8a130c89d1c136ccdceb2117f2543a8cad93b16cj	 \atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitioner.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -95,9 +95,11 @@ SweeperStrategy getStrategyForTable(TableReference tableRef) {
 
     private SweeperStrategy getStrategyFromKvs(TableReference tableRef) {
         try {
-            return SweepStrategy.from(TableMetadata.BYTES_HYDRATOR
-                            .hydrateFromBytes(kvs.getMetadataForTable(tableRef))
-                            .getSweepStrategy())
+            return SweepStrategy.from(
+                            TableMetadata.BYTES_HYDRATOR
+                                    .hydrateFromBytes(kvs.getMetadataForTable(tableRef))
+                                    .getSweepStrategy(),
+                            kvs)
                     .getSweeperStrategy()
                     .orElse(SweeperStrategy.NON_SWEEPABLE);
         } catch (Exception e) {u}(jm	 (a754465d028ae56a8b3829de4675ebee0e06762dj	 `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj	 modifiedj	 Kmj	 K3j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 XJ  @@ -210,6 +210,9 @@ public class SnapshotTransaction extends AbstractTransaction
     private static final int BATCH_SIZE_GET_FIRST_PAGE = 1000;
     private static final long TXN_LENGTH_THRESHOLD = Duration.ofMinutes(30).toMillis();
 
+    @VisibleForTesting
+    static final int MAX_POST_FILTERING_ITERATIONS = 200;
+
     @VisibleForTesting
     static final int MIN_BATCH_SIZE_FOR_DISTRIBUTED_LOAD = 100;
 
@@ -275,6 +278,10 @@ private enum State {
 
     protected volatile boolean hasReads;
 
+    // On thoroughly swept tables, we might require a immutable timestamp lock check if we have performed a
+    // non-exhaustive read.
+    protected volatile boolean hasPossiblyUnvalidatedReads;
+
     protected final TimestampCache timestampCache;
 
     protected final TransactionKnowledgeComponents knowledge;
@@ -338,6 +345,7 @@ private enum State {
         this.sweepQueue = sweepQueue;
         this.deleteExecutor = deleteExecutor;
         this.hasReads = false;
+        this.hasPossiblyUnvalidatedReads = false;
         this.transactionOutcomeMetrics = TransactionOutcomeMetrics.create(metricsManager);
         this.validateLocksOnReads = validateLocksOnReads;
         this.transactionConfig = transactionConfig;
@@ -443,7 +451,9 @@ private NavigableMap<byte[], RowResult<byte[]>> getRowsInternal(
                     SafeArg.of("resultSize", results.size()),
                     SafeArg.of("timeTakenMillis", getRowsMillis));
         }
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+
+        /* can't skip lock check as we don't know how many cells to expect for the column selection */
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return results;
     }
 
@@ -468,7 +478,8 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
         RowColumnRangeIterator rawResults = keyValueService.getRowsColumnRange(
                 tableRef, stableRows, columnRangeSelection, batchHint, getStartTimestamp());
         if (!rawResults.hasNext()) {
-            validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+            // we can't skip checks for range scans
+            validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         } // else the postFiltered iterator will check for each batch.
 
         BatchColumnRangeSelection batchColumnRangeSelection =
@@ -506,7 +517,8 @@ public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator
                 }));
 
         // validate requirements here as the first batch for each of the above iterators will not check
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+        // we can't skip checks on range scans
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return postFilteredResults;
     }
 
@@ -679,7 +691,7 @@ private Iterator<Map.Entry<Cell, byte[]>> filterDeletedValues(
     private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFiltered(
             TableReference tableRef, RowColumnRangeIterator iterator, int batchHint) {
         return Iterators.concat(Iterators.transform(Iterators.partition(iterator, batchHint), batch -> {
-            Map<Cell, Value> raw = validateBatch(tableRef, batch);
+            Map<Cell, Value> raw = validateBatch(tableRef, batch, false /* can't skip lock checks on range scans */);
             if (raw.isEmpty()) {
                 return Collections.emptyIterator();
             }
@@ -701,7 +713,10 @@ private ClosableIterator<Map.Entry<Cell, byte[]>> getRowColumnRangePostFiltered(
                 batchProvider,
                 rawIterator,
                 columnRangeSelection,
-                () -> validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp()),
+                () -> {
+                    // we can't skip lock checks on range scans
+                    validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
+                },
                 raw -> getWithPostFilteringSync(tableRef, raw, Value.GET_VALUE));
     }
 
@@ -711,7 +726,7 @@ private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSor
             int batchHint,
             Comparator<Cell> cellComparator) {
         return Iterators.concat(Iterators.transform(Iterators.partition(iterator, batchHint), batch -> {
-            Map<Cell, Value> raw = validateBatch(tableRef, batch);
+            Map<Cell, Value> raw = validateBatch(tableRef, batch, false /* can't skip lock check on range scans */);
             if (raw.isEmpty()) {
                 return Collections.emptyIterator();
             }
@@ -722,8 +737,9 @@ private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSor
         }));
     }
 
-    private Map<Cell, Value> validateBatch(TableReference tableRef, List<Map.Entry<Cell, Value>> batch) {
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+    private Map<Cell, Value> validateBatch(
+            TableReference tableRef, List<Map.Entry<Cell, Value>> batch, boolean allPossibleCellsReadAndPresent) {
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
         return ImmutableMap.copyOf(batch);
     }
 
@@ -833,7 +849,8 @@ public SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(
         Map<Cell, Value> rawResults =
                 new HashMap<>(keyValueService.getRows(tableRef, rows, ColumnSelection.all(), getStartTimestamp()));
 
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+        // can't skip lock check as we don't know how many cells to expect for the column selection
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return filterRowResults(tableRef, rawResults, ImmutableMap.builderWithExpectedSize(rawResults.size()));
     }
 
@@ -926,13 +943,12 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
             }
         }
 
-        // We don't need to read any cells that were written locally.
+        // We don't need to read any cells that were written locally. Making an immutable copy because otherwise adding
+        // values to the result map would prevent us from calculating the correct size for
+        // allPossibleCellsReadAndPresent, since Sets.difference gives us a live view.
+        Set<Cell> cellsWithNoLocalWrites = ImmutableSet.copyOf(Sets.difference(cells, result.keySet()));
         return Futures.transform(
-                getFromKeyValueService(
-                        tableRef,
-                        Sets.difference(cells, result.keySet()),
-                        asyncKeyValueService,
-                        asyncTransactionService),
+                getFromKeyValueService(tableRef, cellsWithNoLocalWrites, asyncKeyValueService, asyncTransactionService),
                 fromKeyValueService -> {
                     result.putAll(fromKeyValueService);
 
@@ -946,7 +962,11 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
                                 SafeArg.of("getOperation", operationName),
                                 SafeArg.of("durationMillis", getMillis));
                     }
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+
+                    boolean allPossibleCellsReadAndPresent =
+                            fromKeyValueService.size() == cellsWithNoLocalWrites.size();
+                    validatePreCommitRequirementsOnReadIfNecessary(
+                            tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
                     return removeEmptyColumns(result, tableRef);
                 },
                 MoreExecutors.directExecutor());
@@ -962,13 +982,15 @@ public Map<Cell, byte[]> getIgnoringLocalWrites(TableReference tableRef, Set<Cel
 
         ListenableFuture<Map<Cell, byte[]>> result =
                 getFromKeyValueService(tableRef, cells, immediateKeyValueService, immediateTransactionService);
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
 
         Map<Cell, byte[]> unfiltered = Futures.getUnchecked(result);
         Map<Cell, byte[]> filtered = Maps.filterValues(unfiltered, Predicates.not(Value::isTombstone));
 
         TraceStatistics.incEmptyValues(unfiltered.size() - filtered.size());
 
+        boolean allPossibleCellsReadAndPresent = unfiltered.size() == cells.size();
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
+
         return filtered;
     }
 
@@ -1021,7 +1043,8 @@ public Iterable<BatchingVisitable<RowResult<byte[]>>> getRanges(
                     Timer.Context timer = getTimer("processedRangeMillis").time();
                     Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> firstPages =
                             keyValueService.getFirstBatchForRanges(tableRef, input, getStartTimestamp());
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+                    // can't skip lock check for range scans
+                    validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
 
                     SortedMap<Cell, byte[]> postFiltered = postFilterPages(tableRef, firstPages.values());
 
@@ -1147,18 +1170,42 @@ protected <K extends Exception> void batchAcceptSizeHint(
         };
     }
 
-    private void validatePreCommitRequirementsOnReadIfNecessary(TableReference tableRef, long timestamp) {
-        if (isValidationNecessaryOnReads(tableRef)) {
+    private void validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(TableReference tableRef, long timestamp) {
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, timestamp, false);
+    }
+
+    /*
+    We don't have any guarantees that reads and commit will be executed in a single threaded manner, so we could in
+    theory return wrong results if we perform async reads while trying to commit. But our protocol doesn't aim to
+    support such case, and we're OK with having undefined behaviour in these occasions.
+
+    Example of such case:
+       - We're reading a thoroughly swept table with no configuration for immediate validation on reads.
+       - An async range scan is performed, but hasn't started executing yet.
+       - We start commit round on the main thread
+       - Commit doesn't check for immutable timestamp lock because
+           hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound is false
+       - We finish the range scan on the second thread, but validation is skipped due to the configuration and it sets
+           hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound to true, but that is never checked due to
+            the commit round having already happened.
+       - We then risk having returned inconsistent values in this transaction, since we could have lost the immutableT
+            lock, but never checked it and values could've been swept under us.
+    */
+    private void validatePreCommitRequirementsOnReadIfNecessary(
+            TableReference tableRef, long timestamp, boolean allPossibleCellsReadAndPresent) {
+        if (isValidationNecessaryOnReads(tableRef, allPossibleCellsReadAndPresent)) {
             throwIfPreCommitRequirementsNotMet(null, timestamp);
+        } else if (!allPossibleCellsReadAndPresent) {
+            hasPossiblyUnvalidatedReads = true;
         }
     }
 
-    private boolean isValidationNecessaryOnReads(TableReference tableRef) {
-        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef);
+    private boolean isValidationNecessaryOnReads(TableReference tableRef, boolean allPossibleCellsReadAndPresent) {
+        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef, allPossibleCellsReadAndPresent);
     }
 
-    private boolean requiresImmutableTimestampLocking(TableReference tableRef) {
-        return sweepStrategyManager.get(tableRef).mustCheckImmutableLockAfterReads()
+    private boolean requiresImmutableTimestampLocking(TableReference tableRef, boolean allPossibleCellsReadAndPresent) {
+        return sweepStrategyManager.get(tableRef).mustCheckImmutableLock(allPossibleCellsReadAndPresent)
                 || transactionConfig.get().lockImmutableTsOnReadOnlyTransactions();
     }
 
@@ -1307,11 +1354,13 @@ protected <T> ClosableIterator<RowResult<T>> postFilterIterator(
             @Override
             protected Iterator<RowResult<T>> computeNext() {
                 List<RowResult<Value>> batch = results.getBatch().batch();
-                validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
                 if (batch.isEmpty()) {
                     return endOfData();
                 }
                 SortedMap<Cell, T> postFilter = postFilterRows(tableRef, batch, transformer);
+
+                // can't skip lock checks for range scans
+                validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
                 results.markNumResultsNotDeleted(
                         Cells.getRows(postFilter.keySet()).size());
                 return Cells.createRowView(postFilter.entrySet());
@@ -1456,9 +1505,9 @@ private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilterin
 
         return Futures.transformAsync(
                 Futures.immediateFuture(rawResults),
-                remainingResultsToPostFilter -> getWithPostFilteringIterate(
+                resultsToPostFilter -> getWithPostFilteringIterate(
                         tableRef,
-                        remainingResultsToPostFilter,
+                        resultsToPostFilter,
                         resultsAccumulator,
                         transformer,
                         asyncKeyValueService,
@@ -1468,32 +1517,39 @@ private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilterin
 
     private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilteringIterate(
             TableReference tableReference,
-            Map<Cell, Value> remainingResultsToPostFilter,
+            Map<Cell, Value> resultsToPostFilter,
             Collection<Map.Entry<Cell, T>> resultsAccumulator,
             Function<Value, T> transformer,
             AsyncKeyValueService asyncKeyValueService,
             AsyncTransactionService asyncTransactionService) {
-        if (remainingResultsToPostFilter.isEmpty()) {
-            getCounter(AtlasDbMetricNames.SNAPSHOT_TRANSACTION_CELLS_RETURNED, tableReference)
-                    .inc(resultsAccumulator.size());
-            return Futures.immediateFuture(resultsAccumulator);
-        }
-
         return Futures.transformAsync(
-                getWithPostFilteringInternal(
-                        tableReference,
-                        remainingResultsToPostFilter,
-                        resultsAccumulator,
-                        transformer,
-                        asyncKeyValueService,
-                        asyncTransactionService),
-                remaining -> getWithPostFilteringIterate(
-                        tableReference,
-                        remaining,
-                        resultsAccumulator,
-                        transformer,
-                        asyncKeyValueService,
-                        asyncTransactionService),
+                Futures.immediateFuture(resultsToPostFilter),
+                results -> {
+                    int iterations = 0;
+                    Map<Cell, Value> remainingResultsToPostFilter = results;
+                    while (!remainingResultsToPostFilter.isEmpty()) {
+                        remainingResultsToPostFilter = AtlasFutures.getUnchecked(getWithPostFilteringInternal(
+                                tableReference,
+                                remainingResultsToPostFilter,
+                                resultsAccumulator,
+                                transformer,
+                                asyncKeyValueService,
+                                asyncTransactionService));
+                        Preconditions.checkState(
+                                ++iterations < MAX_POST_FILTERING_ITERATIONS,
+                                "Unable to filter cells to find correct result after "
+                                        + "reaching max iterations. This is likely due to aborted cells lying around,"
+                                        + " or in the very rare case, could be due to transactions which constantly "
+                                        + "conflict but never commit. These values will be cleaned up eventually, but"
+                                        + " if the issue persists, ensure that sweep is caught up.",
+                                SafeArg.of("table", tableReference),
+                                SafeArg.of("maxIterations", MAX_POST_FILTERING_ITERATIONS));
+                    }
+                    getCounter(AtlasDbMetricNames.SNAPSHOT_TRANSACTION_CELLS_RETURNED, tableReference)
+                            .inc(resultsAccumulator.size());
+
+                    return Futures.immediateFuture(resultsAccumulator);
+                },
                 MoreExecutors.directExecutor());
     }
 
@@ -1682,7 +1738,9 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
             return Futures.transform(
                     asyncKeyValueService.getAsync(tableRef, keysToReload),
                     nextRawResults -> {
-                        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+                        boolean allPossibleCellsReadAndPresent = nextRawResults.size() == keysToReload.size();
+                        validatePreCommitRequirementsOnReadIfNecessary(
+                                tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
                         return getRemainingResults(nextRawResults, keysAddedToResults);
                     },
                     MoreExecutors.directExecutor());
@@ -2603,8 +2661,8 @@ private boolean hasAnyInvolvedTables() {
     }
 
     private boolean validationNecessaryForInvolvedTablesOnCommit() {
-        boolean anyTableRequiresImmutableTimestampLocking =
-                involvedTables.stream().anyMatch(this::requiresImmutableTimestampLocking);
+        boolean anyTableRequiresImmutableTimestampLocking = involvedTables.stream()
+                .anyMatch(tableRef -> requiresImmutableTimestampLocking(tableRef, !hasPossiblyUnvalidatedReads));
         boolean needsToValidate = !validateLocksOnReads || !hasReads();
         return anyTableRequiresImmutableTimestampLocking && needsToValidate;
     }u:     }(jm	 (58455c9fcbd5e41aa2e34c82091e30cd04cd5a51j	 `atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitionerTest.javaj	 modifiedj	 Kj	 K j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 Xf  @@ -105,6 +105,7 @@ public void getStrategyQueriesKvsOnlyOnceForEachTable() {
         }
         verify(mockKvs, times(1)).getMetadataForTable(NOTHING);
         verify(mockKvs, times(1)).getMetadataForTable(CONSERVATIVE);
+        verify(mockKvs, times(2)).sweepsEntriesInStrictlyNonDecreasingFashion();
         verifyNoMoreInteractions(mockKvs);
     }
 u}(jm	 (f78ed397c1ab2442f099cc74dd518e30185dd324j	 !atlasdb-tests-shared/build.gradlej	 modifiedj	 Kj	 K j	 Kj	 uhttps://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-tests-shared%2Fbuild.gradlej	 thttps://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-tests-shared%2Fbuild.gradlej	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fbuild.gradle?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -50,6 +50,7 @@ dependencies {
   testImplementation 'com.google.protobuf:protobuf-java'
   testImplementation 'com.palantir.common:streams'
   testImplementation 'com.palantir.safe-logging:safe-logging'
+  testImplementation 'com.palantir.safe-logging:preconditions-assertj'
   testImplementation 'com.palantir.tracing:tracing-api'
   testImplementation 'com.palantir.tritium:tritium-registry'
   testImplementation 'commons-io:commons-io'u}(jm	 (4ecc8d0029caabad8e99518d16b13fcf35ba33ecj	 qatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractSerializableTransactionTest.javaj	 modifiedj	 K
j	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 XL  @@ -1079,17 +1079,19 @@ public void testNoMarkTableInvolvedSkipsLockChecksOnCommit() {
         t1.commit();
     }
 
-    @Test
-    public void testMarkTableInvolvedChecksLocksForExpiryOnCommitWhenRequired() {
-        // Test table is thorough, therefore we check immutable timestamp lock
-        assertThatThrownBy(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
-                .isExactlyInstanceOf(TransactionLockTimeoutException.class);
-    }
-
     @Test
     public void testMarkTableInvolvedDoesNoCheckLocksForExpiryOnCommitWhenNotRequired() {
         // Test table is not thorough, therefore no immutable timestamp lock checking
-        testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE);
+        assertThatCode(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE))
+                .doesNotThrowAnyException();
+
+        if (keyValueService.sweepsEntriesInStrictlyNonDecreasingFashion()) {
+            assertThatCode(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
+                    .doesNotThrowAnyException();
+        } else {
+            assertThatThrownBy(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
+                    .isExactlyInstanceOf(TransactionLockTimeoutException.class);
+        }
     }
 
     @Testu}(jm	 (ddec50c29546659d961c4897e7ecbcde3efe9efbj	 Latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/AtlasDbTestCase.javaj	 modifiedj	 Kj	 K j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X;  @@ -77,11 +77,14 @@ public class AtlasDbTestCase {
 
     protected TransactionKnowledgeComponents knowledge;
 
+    protected ExecutorService deleteExecutor;
+
     @Rule
     public InMemoryTimeLockRule inMemoryTimeLockRule = new InMemoryTimeLockRule(CLIENT);
 
     @Before
     public void setUp() throws Exception {
+        deleteExecutor = MoreExecutors.newDirectExecutorService();
         lockClient = LockClient.of(CLIENT);
         lockService = inMemoryTimeLockRule.getLockService();
         timelockService = inMemoryTimeLockRule.getLegacyTimelockService();u}(jm	 (864d8b372d38e6bbe575244e1b439a23398db117j	 Uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/TableMigratorTest.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -89,7 +89,7 @@ public void testMigrationToDifferentKvs() throws TableMappingNotFoundException {
 
         final InMemoryKeyValueService kvs2 = new InMemoryKeyValueService(false);
         final ConflictDetectionManager cdm2 = ConflictDetectionManagers.createWithNoConflictDetection();
-        final SweepStrategyManager ssm2 = SweepStrategyManagers.completelyConservative();
+        final SweepStrategyManager ssm2 = SweepStrategyManagers.completelyConservative(kvs2);
         final MetricsManager metricsManager = MetricsManagers.createForTests();
         final TestTransactionManagerImpl txManager2 = new TestTransactionManagerImpl(
                 metricsManager,
@@ -128,7 +128,7 @@ public void testMigrationToDifferentKvs() throws TableMappingNotFoundException {
         checkpointer.deleteCheckpoints();
 
         final ConflictDetectionManager verifyCdm = ConflictDetectionManagers.createWithNoConflictDetection();
-        final SweepStrategyManager verifySsm = SweepStrategyManagers.completelyConservative();
+        final SweepStrategyManager verifySsm = SweepStrategyManagers.completelyConservative(kvs2);
         final TestTransactionManagerImpl verifyTxManager = new TestTransactionManagerImpl(
                 metricsManager,
                 kvs2,u}(jm	 (6a539c73f46339e398e128a8c5ba8e32e8ea9869j	 eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj	 modifiedj	 Kpj	 Kj	 Ktj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X#  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
@@ -122,6 +123,7 @@
 import com.palantir.lock.v2.LockImmutableTimestampResponse;
 import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.TimelockService;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.math.BigInteger;
 import java.nio.ByteBuffer;
@@ -317,6 +319,8 @@ public void cleanup() {}
     static final TableReference TABLE_SWEPT_THOROUGH_MIGRATION =
             TableReference.createFromFullyQualifiedName("default.table5");
 
+    static final TableReference TABLE_NO_SWEEP = TableReference.createFromFullyQualifiedName("default.table6");
+
     private static final byte[] ROW_FOO = "foo".getBytes(StandardCharsets.UTF_8);
     private static final byte[] ROW_BAR = "bar".getBytes(StandardCharsets.UTF_8);
     private static final byte[] COL_A = "a".getBytes(StandardCharsets.UTF_8);
@@ -347,6 +351,9 @@ public void setUp() throws Exception {
                 TABLE_SWEPT_THOROUGH_MIGRATION,
                 getTableMetadataForSweepStrategy(SweepStrategy.THOROUGH_MIGRATION)
                         .persistToBytes());
+        keyValueService.createTable(
+                TABLE_NO_SWEEP,
+                getTableMetadataForSweepStrategy(SweepStrategy.NOTHING).persistToBytes());
     }
 
     @Override
@@ -361,7 +368,7 @@ protected TestTransactionManager constructTestTransactionManager() {
                 sweepStrategyManager,
                 timestampCache,
                 sweepQueue,
-                MoreExecutors.newDirectExecutorService(),
+                deleteExecutor,
                 transactionWrapper,
                 keyValueServiceWrapper,
                 knowledge);
@@ -1553,7 +1560,22 @@ public void commitDoesNotThrowIfAlreadySuccessfullyCommitted() {
     }
 
     @Test
-    public void validateLocksOnReadsIfThoroughlySwept() {
+    public void doNotValidateLocksOnNonEmptyReadsIfThoroughlySwept() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        assertThatCode(() -> transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL)))
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void validateLocksOnEmptyReadsIfThoroughlySwept() {
         long transactionTs = timelockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
         Transaction transaction =
@@ -1565,6 +1587,22 @@ public void validateLocksOnReadsIfThoroughlySwept() {
                 .isThrownBy(() -> transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL)));
     }
 
+    @Test
+    public void doNotValidateLocksOnCommitIfValidationFlagIsFalseAndOnlyReadNonEmptyValuesOnThoroughlySweptTable() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+
+        assertThatCode(transaction::commit).doesNotThrowAnyException();
+    }
+
     @Test
     public void validateLocksOnlyOnCommitIfValidationFlagIsFalse() {
         long transactionTs = timelockService.getFreshTimestamp();
@@ -1580,7 +1618,45 @@ public void validateLocksOnlyOnCommitIfValidationFlagIsFalse() {
     }
 
     @Test
-    public void checkImmutableTsLockOnceIfThoroughlySwept_WithValidationOnReads() {
+    public void validateLocksOnCommitIfEmptyReadsFollowedByNonEmptyReadsIfValidationFlagIsFalse() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        // First reading empty value
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL_2));
+        // Then reading non-empty value.
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+
+        // Make sure that lock is still validated in the end due to the initial empty read
+        assertThatExceptionOfType(TransactionLockTimeoutException.class).isThrownBy(transaction::commit);
+    }
+
+    @Test
+    public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithValidationOnReads() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        Transaction transaction = getSnapshotTransactionWith(
+                spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+        transaction.commit();
+        spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
+
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+    }
+
+    @Test
+    public void checkImmutableTsLockOnceIfEmptyReadOnThoroughlySwept_WithValidationOnReads() {
         TimelockService spiedTimeLockService = spy(timelockService);
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
@@ -1596,7 +1672,25 @@ public void checkImmutableTsLockOnceIfThoroughlySwept_WithValidationOnReads() {
     }
 
     @Test
-    public void checkImmutableTsLockOnceIfThoroughlySwept_WithoutValidationOnReads() {
+    public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithoutValidationOnReads() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        Transaction transaction = getSnapshotTransactionWith(
+                spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+        transaction.commit();
+        spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
+
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+    }
+
+    @Test
+    public void checkImmutableTsLockOnceIfEmptyReadOnThoroughlySwept_WithoutValidationOnReads() {
         TimelockService spiedTimeLockService = spy(timelockService);
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
@@ -2428,6 +2522,20 @@ public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigratio
         assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
     }
 
+    @Test
+    public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
+        for (int idx = 0; idx < SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS; idx++) {
+            putUncommittedAtFreshTimestamp(TABLE_NO_SWEEP, TEST_CELL);
+        }
+        assertThatLoggableExceptionThrownBy(
+                        () -> txManager.runTaskThrowOnConflict(txn -> txn.get(TABLE_NO_SWEEP, Set.of(TEST_CELL))))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageStartingWith("Unable to filter cells")
+                .hasExactlyArgs(
+                        SafeArg.of("table", TABLE_NO_SWEEP),
+                        SafeArg.of("maxIterations", SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS));
+    }
+
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,u}(jm	 (6fff522b93c2fac008381bf889fb8bd37ac6b462j	 matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelection.javaj	 modifiedj	 Kj	 K j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 Xm  @@ -60,6 +60,10 @@ default void check() {
                 SafeArg.of("endColumnExclusive", endColumnExclusive()));
     }
 
+    static ColumnRangeSelection all() {
+        return ImmutableColumnRangeSelection.builder().build();
+    }
+
     static ImmutableColumnRangeSelection.Builder builder() {
         return ImmutableColumnRangeSelection.builder();
     }u}(jm	 (813978dd1860b6fe6d1edf472c0e66a8bd3a02a9j	 oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javaj	 modifiedj	 Kj	 K j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 XI  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import java.util.List;
@@ -31,5 +32,7 @@ public interface InteractiveTransaction {
 
     void delete(String table, WorkloadCell workloadCell);
 
+    List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection);
+
     List<WitnessedTransactionAction> witness();
 }u}(jm	 (72bc11659accd74d0abb03df5bdecff95ddeceb9j	 xatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/SingleCellReadTransactionAction.javaj	 renamedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellReadTransactionAction.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellReadTransactionAction.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellReadTransactionAction.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 XU  @@ -17,24 +17,23 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedSingleCellReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import java.util.Optional;
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface ReadTransactionAction extends SingleCellTransactionAction {
-
-    default WitnessedReadTransactionAction witness(Optional<Integer> value) {
-        return ImmutableWitnessedReadTransactionAction.of(table(), cell(), value);
+public interface SingleCellReadTransactionAction extends SingleCellTransactionAction {
+    default WitnessedSingleCellReadTransactionAction witness(Optional<Integer> value) {
+        return ImmutableWitnessedSingleCellReadTransactionAction.of(table(), cell(), value);
     }
 
     @Override
     default <T> T accept(TransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-    static ReadTransactionAction of(String table, WorkloadCell workloadCell) {
-        return ImmutableReadTransactionAction.of(table, workloadCell);
+    static SingleCellReadTransactionAction of(String table, WorkloadCell workloadCell) {
+        return ImmutableSingleCellReadTransactionAction.of(table, workloadCell);
     }
 }previous_filenamenatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ReadTransactionAction.javau}(jm	 (0a91db8551cefb63678b7a8738390e5453d4310bj	 qatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionActionVisitor.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 XB  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction;
 
 public interface TransactionActionVisitor<T> {
-    T visit(ReadTransactionAction readTransactionAction);
+    T visit(SingleCellReadTransactionAction singleCellReadTransactionAction);
 
     T visit(WriteTransactionAction writeTransactionAction);
 u}(jm	 (78bcc16bdfdda15e4755fae24de94221f4434855j	 atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedRowColumnRangeReadTransactionAction.javaj	 addedj	 K+j	 K j	 K+j	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.javaj	 X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedRowColumnRangeReadTransactionAction.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X&  @@ -0,0 +1,43 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedRowColumnRangeReadTransactionAction extends InvalidWitnessedTransactionAction {
+    WitnessedRowColumnRangeReadTransactionAction witness();
+
+    List<ColumnValue> expectedColumnsAndValues();
+
+    @Value.Check
+    default void check() {
+        Preconditions.checkState(
+                !expectedColumnsAndValues().equals(witness().columnsAndValues()),
+                "If the witness and expected columns and values match, this should not be an invalid action",
+                SafeArg.of("witnessedColumnsAndValues", witness().columnsAndValues()),
+                SafeArg.of("expectedColumnsAndValues", expectedColumnsAndValues()));
+    }
+
+    static ImmutableInvalidWitnessedRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableInvalidWitnessedRowColumnRangeReadTransactionAction.builder();
+    }
+}u}(jm	 (6eceac9e4aec081bfc01707d271c1ea928848a27j	 atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedSingleCellReadTransactionAction.javaj	 renamedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellReadTransactionAction.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellReadTransactionAction.javaj	 X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellReadTransactionAction.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 Xw  @@ -21,8 +21,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedReadTransactionAction extends WitnessedSingleCellTransactionAction {
-
+public interface WitnessedSingleCellReadTransactionAction extends WitnessedSingleCellTransactionAction {
     @Override
     @Value.Parameter
     String table();
@@ -40,7 +39,7 @@ default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
         return visitor.visit(this);
     }
 
-    static WitnessedReadTransactionAction of(String table, WorkloadCell cell, Optional<Integer> value) {
-        return ImmutableWitnessedReadTransactionAction.of(table, cell, value);
+    static WitnessedSingleCellReadTransactionAction of(String table, WorkloadCell cell, Optional<Integer> value) {
+        return ImmutableWitnessedSingleCellReadTransactionAction.of(table, cell, value);
     }
 }j
 atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedReadTransactionAction.javau}(jm	 (f5757c803ef0b621c430879709896498f246314aj	 atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionActionVisitor.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 Xf  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
 public interface WitnessedTransactionActionVisitor<T> {
-    T visit(WitnessedReadTransactionAction readTransactionAction);
+    T visit(WitnessedSingleCellReadTransactionAction readTransactionAction);
 
     T visit(WitnessedWriteTransactionAction writeTransactionAction);
 u}(jm	 (b9204f7d18a8c7881c6b1c06fcaa87e0b81b0918j	 atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -53,7 +53,8 @@ public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
     @Test
     public void toFullyWitnessedCopiesArgumentsCorrectly() {
         WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
-        WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
+        WitnessedSingleCellReadTransactionAction readTransactionAction =
+                mock(WitnessedSingleCellReadTransactionAction.class);
         List<WitnessedSingleCellTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
         FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
                 .startTimestamp(START_TIMESTAMP)u}(jm	 (a4441b2312e16a573e137e02464713072ad6ad63j	 hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -16,14 +16,18 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.RangeQueryReader;
+import com.palantir.atlasdb.workload.transaction.SimpleRangeQueryReader;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -60,9 +64,11 @@ private static final class SerializableInvariantVisitor
             implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
 
         private final InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        private final RangeQueryReader rangeQueryReader = SimpleRangeQueryReader.create(inMemoryTransactionReplayer);
 
         @Override
-        public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedSingleCellReadTransactionAction readTransactionAction) {
             Optional<Integer> expectedValue = inMemoryTransactionReplayer
                     .getValues()
                     .get(TableAndWorkloadCell.of(readTransactionAction.table(), readTransactionAction.cell()))
@@ -94,7 +100,14 @@ public Optional<InvalidWitnessedTransactionAction> visit(
         @Override
         public Optional<InvalidWitnessedTransactionAction> visit(
                 WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
-            // TODO (jkong): Not implemented yet
+            List<ColumnValue> expectedReads =
+                    rangeQueryReader.readRange(rowColumnRangeReadTransactionAction.originalQuery());
+            if (!expectedReads.equals(rowColumnRangeReadTransactionAction.columnsAndValues())) {
+                return Optional.of(InvalidWitnessedRowColumnRangeReadTransactionAction.builder()
+                        .witness(rowColumnRangeReadTransactionAction)
+                        .expectedColumnsAndValues(expectedReads)
+                        .build());
+            }
             return Optional.empty();
         }
     }u}(jm	 (d99ecffee620b7f3dda7846137d0ec6beff5300ej	 katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X
  @@ -17,16 +17,20 @@
 package com.palantir.atlasdb.workload.invariant;
 
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.SimpleRangeQueryReader;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.Map;
+import java.util.List;
 import java.util.Optional;
 
 /**
@@ -54,7 +58,8 @@ final class SnapshotInvariantVisitor
     }
 
     @Override
-    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+    public Optional<InvalidWitnessedTransactionAction> visit(
+            WitnessedSingleCellReadTransactionAction readTransactionAction) {
         Optional<Integer> expected = fetchValueFromView(
                         readTransactionAction.table(), readTransactionAction.cell(), readView)
                 .value();
@@ -93,7 +98,14 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransact
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(
             WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
-        // TODO (jkong): Not implemented yet
+        List<ColumnValue> expectedReads = SimpleRangeQueryReader.createForSnapshot(readView)
+                .readRange(rowColumnRangeReadTransactionAction.originalQuery());
+        if (!expectedReads.equals(rowColumnRangeReadTransactionAction.columnsAndValues())) {
+            return Optional.of(InvalidWitnessedRowColumnRangeReadTransactionAction.builder()
+                    .witness(rowColumnRangeReadTransactionAction)
+                    .expectedColumnsAndValues(expectedReads)
+                    .build());
+        }
         return Optional.empty();
     }
 u}(jm	 (a8385843e3074e18ec9db56c0547213227584d48j	 latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj	 modifiedj	 K7j	 Kj	 K;j	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -17,25 +17,33 @@
 package com.palantir.atlasdb.workload.store;
 
 import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.keyvalue.api.BatchColumnRangeSelection;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.ArrayList;
+import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Optional;
 import java.util.Set;
 import java.util.function.BiFunction;
+import java.util.function.Function;
+import java.util.stream.Collectors;
 import javax.annotation.concurrent.NotThreadSafe;
+import one.util.streamex.EntryStream;
 
 @NotThreadSafe
 final class AtlasDbInteractiveTransaction implements InteractiveTransaction {
@@ -60,7 +68,8 @@ public Optional<Integer> read(String table, WorkloadCell workloadCell) {
                     Map<Cell, byte[]> values = transaction.get(tableReference, Set.of(atlasCell));
                     Optional<Integer> valueRead =
                             Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
-                    witnessedTransactionActions.add(WitnessedReadTransactionAction.of(table, workloadCell, valueRead));
+                    witnessedTransactionActions.add(
+                            WitnessedSingleCellReadTransactionAction.of(table, workloadCell, valueRead));
                     return valueRead;
                 },
                 table,
@@ -91,6 +100,38 @@ public void delete(String table, WorkloadCell workloadCell) {
                 workloadCell);
     }
 
+    @Override
+    public List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection) {
+        return run(
+                tableReference -> {
+                    // Having a non-configurable batch hint is a bit iffy, but suffices as this won't be used in
+                    // production.
+                    Map<byte[], Iterator<Entry<Cell, byte[]>>> iterators = transaction.getRowsColumnRangeIterator(
+                            tableReference,
+                            List.of(AtlasDbUtils.toAtlasKey(row)),
+                            BatchColumnRangeSelection.create(
+                                    AtlasDbUtils.toAtlasColumnRangeSelection(columnRangeSelection), 100));
+                    Preconditions.checkState(
+                            iterators.size() == 1,
+                            "Expected exactly one iterator to be returned",
+                            SafeArg.of("iteratorsReturned", iterators.size()));
+                    List<ColumnValue> columnsAndValues = EntryStream.of(iterators.get(AtlasDbUtils.toAtlasKey(row)))
+                            .mapKeys(Cell::getColumnName)
+                            .mapKeys(AtlasDbUtils::fromAtlasColumn)
+                            .mapValues(AtlasDbUtils::fromAtlasValue)
+                            .map(entry -> ColumnValue.of(entry.getKey(), entry.getValue()))
+                            .collect(Collectors.toList());
+                    witnessedTransactionActions.add(RowColumnRangeReadTransactionAction.builder()
+                            .table(table)
+                            .row(row)
+                            .columnRangeSelection(columnRangeSelection)
+                            .build()
+                            .witness(columnsAndValues));
+                    return columnsAndValues;
+                },
+                table);
+    }
+
     @Override
     public List<WitnessedTransactionAction> witness() {
         hasFinished = true;
@@ -106,10 +147,20 @@ private TableReference getTableReferenceOrThrow(String table) {
     }
 
     private <T> T run(BiFunction<TableReference, Cell, T> function, String table, WorkloadCell workloadCell) {
-        Preconditions.checkState(
-                !hasFinished, "Transaction has already been witnessed and can no longer perform any actions.");
+        checkTransactionHasNotFinished();
         Cell atlasCell = AtlasDbUtils.toAtlasCell(workloadCell);
         TableReference tableReference = getTableReferenceOrThrow(table);
         return function.apply(tableReference, atlasCell);
     }
+
+    private <T> T run(Function<TableReference, T> function, String table) {
+        checkTransactionHasNotFinished();
+        TableReference tableReference = getTableReferenceOrThrow(table);
+        return function.apply(tableReference);
+    }
+
+    private void checkTransactionHasNotFinished() {
+        Preconditions.checkState(
+                !hasFinished, "Transaction has already been witnessed and can no longer perform any actions.");
+    }
 }u}(jm	 (1800f3b86ab7dd6f58186797efd5280b70bd757dj	 fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj	 modifiedj	 Kj	 Kj	 K
j	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 XV  @@ -26,8 +26,8 @@
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
@@ -143,8 +143,8 @@ public AtlasDbTransactionActionVisitor(InteractiveTransaction transaction) {
         }
 
         @Override
-        public Void visit(ReadTransactionAction readTransactionAction) {
-            transaction.read(readTransactionAction.table(), readTransactionAction.cell());
+        public Void visit(SingleCellReadTransactionAction singleCellReadTransactionAction) {
+            transaction.read(singleCellReadTransactionAction.table(), singleCellReadTransactionAction.cell());
             return null;
         }
 
@@ -163,8 +163,11 @@ public Void visit(DeleteTransactionAction deleteTransactionAction) {
 
         @Override
         public Void visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
-            // TODO (jkong): Not implemented yet
-            throw new UnsupportedOperationException("Not implemented yet");
+            transaction.getRowColumnRange(
+                    rowColumnRangeReadTransactionAction.table(),
+                    rowColumnRangeReadTransactionAction.row(),
+                    rowColumnRangeReadTransactionAction.columnRangeSelection());
+            return null;
         }
     }
 u}(jm	 (fc90a1cdd07648f9656627da15fa0fe7c9929b48j	 patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 Xp  @@ -19,8 +19,8 @@
 import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.HashMap;
@@ -33,7 +33,7 @@ public final class InMemoryTransactionReplayer implements WitnessedTransactionAc
             StructureHolder.create(HashMap::empty);
 
     @Override
-    public Void visit(WitnessedReadTransactionAction _readTransactionAction) {
+    public Void visit(WitnessedSingleCellReadTransactionAction _readTransactionAction) {
         return null;
     }
 u}(jm	 (a8e93ad88b71640602cbfdc37f9d5086290fbe6dj	 eatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/RangeQueryReader.javaj	 addedj	 Kj	 K j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeQueryReader.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -0,0 +1,24 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import java.util.List;
+
+public interface RangeQueryReader {
+    List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction);
+}u}(jm	 (fa09be03657e9803b074bbd56a9b7fd8b045da62j	 katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReader.javaj	 addedj	 KQj	 K j	 KQj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -0,0 +1,81 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.invariant.ValueAndMaybeTimestamp;
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.Optional;
+import java.util.function.Supplier;
+
+public final class SimpleRangeQueryReader implements RangeQueryReader {
+    private static final SafeLogger log = SafeLoggerFactory.get(SimpleRangeQueryReader.class);
+
+    private static final int LARGE_HISTORY_LIMIT = 30_000;
+
+    private final Supplier<Map<TableAndWorkloadCell, Optional<Integer>>> rawValueSupplier;
+
+    @VisibleForTesting
+    SimpleRangeQueryReader(Supplier<Map<TableAndWorkloadCell, Optional<Integer>>> rawValueSupplier) {
+        this.rawValueSupplier = rawValueSupplier;
+    }
+
+    public static RangeQueryReader create(InMemoryTransactionReplayer replayer) {
+        return new SimpleRangeQueryReader(replayer::getValues);
+    }
+
+    public static RangeQueryReader createForSnapshot(
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> readView) {
+        return new SimpleRangeQueryReader(() -> readView.getSnapshot().mapValues(ValueAndMaybeTimestamp::value));
+    }
+
+    @Override
+    public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTransactionAction) {
+        Map<TableAndWorkloadCell, Optional<Integer>> allValues = rawValueSupplier.get();
+        if (allValues.size() > LARGE_HISTORY_LIMIT) {
+            log.error(
+                    "Attempted to do range queries in a simple way, even though the history is large ({} entries)! If"
+                        + " you're seeing this message, consider simplifying your workflow and/or switching to a more"
+                        + " efficient range query implementation.",
+                    SafeArg.of("size", allValues.size()));
+        }
+        return allValues
+                .filterKeys(tableAndWorkloadCell -> {
+                    if (!tableAndWorkloadCell.tableName().equals(readTransactionAction.table())) {
+                        return false;
+                    }
+                    if (tableAndWorkloadCell.cell().key() != readTransactionAction.row()) {
+                        return false;
+                    }
+                    return readTransactionAction
+                            .columnRangeSelection()
+                            .contains(tableAndWorkloadCell.cell().column());
+                })
+                .filterValues(Optional::isPresent)
+                .mapValues(Optional::get)
+                .map(entry -> ColumnValue.of(entry._1().cell().column(), entry._2()))
+                .sortBy(ColumnValue::column)
+                .toJavaList();
+    }
+}u}(jm	 (5c84ec2365c7267c98a6761c28c444790f8027bfj	 katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -17,17 +17,17 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 
 public enum WitnessToActionVisitor implements WitnessedTransactionActionVisitor<TransactionAction> {
     INSTANCE;
 
     @Override
-    public ReadTransactionAction visit(WitnessedReadTransactionAction readTransactionAction) {
-        return ImmutableReadTransactionAction.of(readTransactionAction.table(), readTransactionAction.cell());
+    public SingleCellReadTransactionAction visit(WitnessedSingleCellReadTransactionAction readTransactionAction) {
+        return ImmutableSingleCellReadTransactionAction.of(readTransactionAction.table(), readTransactionAction.cell());
     }
 
     @Overrideu}(jm	 (45188926753c546106aea8c33667dbc777075297j	 Zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/AtlasDbUtils.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -26,6 +26,7 @@
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
@@ -50,8 +51,20 @@ public static ConflictHandler toConflictHandler(IsolationLevel isolationLevel) {
         }
     }
 
+    public static byte[] toAtlasKey(int key) {
+        return Ints.toByteArray(key);
+    }
+
+    public static int fromAtlasColumn(byte[] bytes) {
+        return Ints.fromByteArray(bytes);
+    }
+
+    public static int fromAtlasValue(byte[] value) {
+        return Ints.fromByteArray(value);
+    }
+
     public static Cell toAtlasCell(WorkloadCell cell) {
-        return Cell.create(Ints.toByteArray(cell.key()), Ints.toByteArray(cell.column()));
+        return Cell.create(toAtlasKey(cell.key()), Ints.toByteArray(cell.column()));
     }
 
     public static byte[] tableMetadata(ConflictHandler conflictHandler) {
@@ -93,4 +106,17 @@ public static ConflictHandler toIndexConflictHandler(ConflictHandler baseTableCo
     public static byte[] indexMetadata(ConflictHandler baseTableConflictHandler) {
         return tableMetadata(toIndexConflictHandler(baseTableConflictHandler));
     }
+
+    public static com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection toAtlasColumnRangeSelection(
+            ColumnRangeSelection columnRangeSelection) {
+        return new com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection(
+                columnRangeSelection
+                        .startColumnInclusive()
+                        .map(AtlasDbUtils::toAtlasKey)
+                        .orElse(null),
+                columnRangeSelection
+                        .endColumnExclusive()
+                        .map(AtlasDbUtils::toAtlasKey)
+                        .orElse(null));
+    }
 }u}(jm	 (068772270bb2fa3e428fb2588a4fa5c879332417j	 matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowConfiguration.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -47,8 +47,18 @@ default Integer maxDeletes() {
     }
 
     @Value.Default
-    default Integer maxCells() {
-        return 10;
+    default Integer maxRowRangeScans() {
+        return 3;
+    }
+
+    @Value.Default
+    default Integer maxRows() {
+        return 5;
+    }
+
+    @Value.Default
+    default Integer maxColumns() {
+        return 5;
     }
 
     @Value.Lazyu}(jm	 (6d6f5fcc34e22304ca8c5dc2c2c635361ee8fb32j	 aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javaj	 modifiedj	 K)j	 Kj	 K0j	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -21,11 +21,14 @@
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ImmutableDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ImmutableReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableRowColumnRangeReadTransactionAction.Builder;
 import com.palantir.atlasdb.workload.transaction.ImmutableWriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -41,7 +44,6 @@
 
 public final class RandomWorkflows {
     private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
-    private static final Integer COLUMN = 0;
 
     private RandomWorkflows() {
         // static factory
@@ -78,17 +80,20 @@ public RandomWorkflowTask(RandomWorkflowConfiguration workflowConfiguration, Sec
         public Optional<WitnessedTransaction> run(TransactionStore store) {
             workflowConfiguration.transactionRateLimiter().acquire();
             List<TransactionAction> actions = Stream.of(
-                            generateReadActions(), generateWriteActions(), generateDeleteActions())
+                            generateReadActions(),
+                            generateWriteActions(),
+                            generateDeleteActions(),
+                            generateRowColumnRangeReadActions())
                     .flatMap(Collection::stream)
                     .collect(Collectors.toList());
             Collections.shuffle(actions, random);
             return store.readWrite(actions);
         }
 
-        private List<ReadTransactionAction> generateReadActions() {
+        private List<SingleCellReadTransactionAction> generateReadActions() {
             return IntStream.range(0, random.nextInt(workflowConfiguration.maxReads() + 1))
                     .boxed()
-                    .map(_index -> ImmutableReadTransactionAction.of(
+                    .map(_index -> SingleCellReadTransactionAction.of(
                             workflowConfiguration.tableConfiguration().tableName(), randomCell()))
                     .collect(Collectors.toList());
         }
@@ -111,8 +116,37 @@ private List<DeleteTransactionAction> generateDeleteActions() {
                     .collect(Collectors.toList());
         }
 
+        private List<RowColumnRangeReadTransactionAction> generateRowColumnRangeReadActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxRowRangeScans() + 1))
+                    .boxed()
+                    .map(_index -> {
+                        WorkloadCell startCell = randomCell();
+                        int endColumn = random.nextInt(workflowConfiguration.maxColumns());
+                        Builder builder = ImmutableRowColumnRangeReadTransactionAction.builder()
+                                .table(workflowConfiguration
+                                        .tableConfiguration()
+                                        .tableName())
+                                .row(startCell.key());
+                        if (startCell.column() < endColumn) {
+                            builder.columnRangeSelection(ColumnRangeSelection.builder()
+                                    .startColumnInclusive(startCell.column())
+                                    .endColumnExclusive(endColumn + 1)
+                                    .build());
+                        } else {
+                            builder.columnRangeSelection(ColumnRangeSelection.builder()
+                                    .startColumnInclusive(endColumn)
+                                    .endColumnExclusive(startCell.column() + 1)
+                                    .build());
+                        }
+                        return builder.build();
+                    })
+                    .collect(Collectors.toList());
+        }
+
         private WorkloadCell randomCell() {
-            return ImmutableWorkloadCell.of(random.nextInt(workflowConfiguration.maxCells()), COLUMN);
+            return ImmutableWorkloadCell.of(
+                    random.nextInt(workflowConfiguration.maxRows()),
+                    random.nextInt(workflowConfiguration.maxColumns()));
         }
     }
 }u     }(jm	 (1ddc1c9a4fbd8b3691b9a96fdf667e44919d96f7j	 latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 XI  @@ -24,7 +24,7 @@
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -106,6 +106,7 @@ private static List<TransactionAction> createCellUpdateActions(int taskIndex, St
 
     private static List<TransactionAction> createCellReadActions(String tableName) {
         return ImmutableList.of(
-                ReadTransactionAction.of(tableName, FIRST_CELL), ReadTransactionAction.of(tableName, SECOND_CELL));
+                SingleCellReadTransactionAction.of(tableName, FIRST_CELL),
+                SingleCellReadTransactionAction.of(tableName, SECOND_CELL));
     }
 }u}(jm	 (4a225b9a61bb820c7e3d66ad9815a6b22d3ea422j	 hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javaj	 modifiedj	 Kj	 K
j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X*  @@ -28,7 +28,7 @@
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.logsafe.SafeArg;
@@ -38,7 +38,6 @@
 import java.security.SecureRandom;
 import java.util.ArrayList;
 import java.util.List;
-import java.util.Objects;
 import java.util.Optional;
 import java.util.Set;
 import java.util.stream.Collectors;
@@ -129,22 +128,20 @@ private static List<CrossCellInconsistency> findInconsistencyInTransactionHistor
 
     private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActions(
             List<WitnessedTransactionAction> actions) {
-        Set<WitnessedReadTransactionAction> readTransactionActions = actions.stream()
-                .filter(WitnessedReadTransactionAction.class::isInstance)
-                .map(action -> (WitnessedReadTransactionAction) action)
+        Set<WitnessedSingleCellReadTransactionAction> readTransactionActions = actions.stream()
+                .filter(WitnessedSingleCellReadTransactionAction.class::isInstance)
+                .map(action -> (WitnessedSingleCellReadTransactionAction) action)
                 .collect(Collectors.toSet());
         if (readTransactionActions.size() == 0) {
             return Stream.empty();
         }
-        WitnessedReadTransactionAction summaryRowRead = readTransactionActions.stream()
+        WitnessedSingleCellReadTransactionAction summaryRowRead = readTransactionActions.stream()
                 .filter(action -> action.cell().key() == SUMMARY_ROW)
                 .findAny()
                 .orElseThrow(() -> new SafeIllegalStateException(
                         "Expected to find a read of the summary row", SafeArg.of("actions", actions)));
-        WitnessedReadTransactionAction normalRowRead = readTransactionActions.stream()
-                .filter(action -> Objects.equals(
-                                action.cell().key(), summaryRowRead.cell().column())
-                        && action.cell().column() == COLUMN)
+        WitnessedSingleCellReadTransactionAction normalRowRead = readTransactionActions.stream()
+                .filter(action -> action.cell().key() != SUMMARY_ROW)
                 .findAny()
                 .orElseThrow(() -> new SafeIllegalStateException(
                         "Expected to find a read of a corresponding normal row", SafeArg.of("actions", actions)));u}(jm	 (a96ccf466ea10c1243f05d1cda77fb840d495a65j	 katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflows.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X[
  @@ -18,9 +18,11 @@
 
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
@@ -45,7 +47,8 @@ public final class BankBalanceWorkflows {
     private static final SafeLogger log = SafeLoggerFactory.get(BankBalanceWorkflows.class);
     private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
 
-    private static final Integer COLUMN = 0;
+    @VisibleForTesting
+    static final Integer ROW = 42;
 
     private BankBalanceWorkflows() {
         // utility
@@ -121,16 +124,23 @@ private void performTransfers(InteractiveTransaction transaction, Map<Integer, I
         }
 
         private Map<Integer, Optional<Integer>> getAccountBalances(InteractiveTransaction transaction) {
+            Map<Integer, Integer> balancesInDatabase = transaction
+                    .getRowColumnRange(
+                            workflowConfiguration.tableConfiguration().tableName(),
+                            ROW,
+                            ColumnRangeSelection.builder()
+                                    .endColumnExclusive(workflowConfiguration.numberOfAccounts())
+                                    .build())
+                    .stream()
+                    .collect(Collectors.toMap(ColumnValue::column, ColumnValue::value));
             return IntStream.range(0, workflowConfiguration.numberOfAccounts())
                     .boxed()
                     .collect(Collectors.toMap(
-                            Function.identity(),
-                            index -> transaction.read(
-                                    workflowConfiguration.tableConfiguration().tableName(), getCellForAccount(index))));
+                            Function.identity(), index -> Optional.ofNullable(balancesInDatabase.get(index))));
         }
     }
 
     public static WorkloadCell getCellForAccount(int accountIndex) {
-        return ImmutableWorkloadCell.of(accountIndex, COLUMN);
+        return ImmutableWorkloadCell.of(ROW, accountIndex);
     }
 }u}(jm	 (ea20cb665c4ebb1bdfe3db63221eea1eda39a68fj	 latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X9  @@ -18,14 +18,18 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -111,18 +115,15 @@ public void catchesWriteSkew() {
                 .transactionStore(readableTransactionStore)
                 .build();
         SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
-        InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);
-
-        assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
         InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
-                Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
 
         assertThat(invalidWitnessedTransactionAction)
                 .isInstanceOfSatisfying(
                         InvalidWitnessedSingleCellTransactionAction.class,
                         invalidSingleCellWitnessedTransactionAction -> {
                             assertThat(invalidSingleCellWitnessedTransactionAction.action())
-                                    .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
+                                    .isInstanceOfSatisfying(WitnessedSingleCellReadTransactionAction.class, action -> {
                                         assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
                                         assertThat(action.value()).contains(15);
                                     });
@@ -155,4 +156,229 @@ public void handlesDeletes() {
         SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
         assertThat(invalidTransactions).isEmpty();
     }
+
+    @Test
+    public void readsEmptyRowRangeIfNoCellsInRange() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder()
+                                .startColumnInclusive(8888888)
+                                .build(),
+                        ImmutableList.of())
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void readsEmptyRowRangeIfNoCellsInRow() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(10, ColumnRangeSelection.builder().build(), ImmutableList.of())
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void readsRowRangeToExhaustion() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(15, 21)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void incorporatesLocalWritesIntoRowColumnRangeQueries() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .write(5, 20, 34)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(15, 21), ColumnValue.of(20, 34)))
+                .write(5, 10, 99)
+                .write(5, 13, 24)
+                .delete(5, 15)
+                .write(5, 18, 36)
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(
+                                ColumnValue.of(10, 99),
+                                ColumnValue.of(13, 24),
+                                ColumnValue.of(18, 36),
+                                ColumnValue.of(20, 34)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void identifiesUnexpectedMissingCellInRowColumnRangeRead() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 15, 21)
+                .write(5, 20, 34)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(20, 34)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
+                                action.expectedColumnsAndValues())
+                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(15, 21), ColumnValue.of(20, 34)));
+    }
+
+    @Test
+    public void identifiesUnexpectedAdditionalCellInRowColumnRangeRead() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 20, 34)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnValue.of(10, 15), ColumnValue.of(15, 24), ColumnValue.of(20, 34)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
+                                action.expectedColumnsAndValues())
+                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
+    }
+
+    @Test
+    public void identifiesIncorrectCellValuesInRowColumnRangeRead() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(5, 20, 34)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnValue.of(10, 8888888), ColumnValue.of(20, 34)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
+                                action.expectedColumnsAndValues())
+                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
+    }
+
+    @Test
+    public void identifiesIncorrectOrderingInRowColumnRangeRead() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 20, 34)
+                .write(5, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(ColumnValue.of(20, 34), ColumnValue.of(10, 15)))
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                getSingularFinalInvalidAction(invalidTransactions, transactions);
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(InvalidWitnessedRowColumnRangeReadTransactionAction.class, action -> assertThat(
+                                action.expectedColumnsAndValues())
+                        .containsExactly(ColumnValue.of(10, 15), ColumnValue.of(20, 34)));
+    }
+
+    private static InvalidWitnessedTransactionAction getSingularFinalInvalidAction(
+            List<InvalidWitnessedTransaction> invalidTransactions, List<WitnessedTransaction> transactions) {
+        InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);
+
+        assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
+        return Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
+    }
 }u}(jm	 (c51ae3380a67f519f6e9a882625f2a22fa5a1c9dj	 hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javaj	 modifiedj	 KRj	 K j	 KRj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -18,13 +18,19 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
 import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -167,4 +173,80 @@ public void properlyReplaysReadsAndWrites() {
         SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
         assertThat(invalidTransactions).isEmpty();
     }
+
+    @Test
+    public void rowColumnRangeScanNotExpectedToReadColumnsCommittingAfterOurStart() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .write(5, 20, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(15L)
+                .startTransaction(12L)
+                .write(5, 30, WorkloadTestHelpers.VALUE_ONE + WorkloadTestHelpers.VALUE_TWO)
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(
+                                ColumnValue.of(10, WorkloadTestHelpers.VALUE_ONE),
+                                ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE + WorkloadTestHelpers.VALUE_TWO)))
+                .endTransaction(21L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void rowColumnRangeScanFlagsColumnCommittingAfterOurStartAsViolating() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(5L)
+                .write(5, 20, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(15L)
+                .startTransaction(12L)
+                .write(5, 30, WorkloadTestHelpers.VALUE_ONE)
+                .rowColumnRangeRead(
+                        5,
+                        ColumnRangeSelection.builder().build(),
+                        ImmutableList.of(
+                                ColumnValue.of(20, WorkloadTestHelpers.VALUE_TWO),
+                                ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
+                .endTransaction(21L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidTransaction.transaction().startTimestamp()).isEqualTo(12L);
+        assertThat(invalidTransaction.transaction().commitTimestamp()).contains(21L);
+
+        InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(
+                        InvalidWitnessedRowColumnRangeReadTransactionAction.class, invalidRowColumnRangeRead -> {
+                            assertThat(invalidRowColumnRangeRead.witness())
+                                    .isEqualTo(WitnessedRowColumnRangeReadTransactionAction.builder()
+                                            .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                                    .table(WorkloadTestHelpers.TABLE_1)
+                                                    .row(5)
+                                                    .columnRangeSelection(ColumnRangeSelection.builder()
+                                                            .build())
+                                                    .build())
+                                            .columnsAndValues(ImmutableList.of(
+                                                    ColumnValue.of(20, WorkloadTestHelpers.VALUE_TWO),
+                                                    ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE)))
+                                            .build());
+                            assertThat(invalidRowColumnRangeRead.expectedColumnsAndValues())
+                                    .containsExactly(ColumnValue.of(30, WorkloadTestHelpers.VALUE_ONE));
+                        });
+    }
 }u}(jm	 (3f20f7a70176487ef403ba940f6d80d5be20f457j	 patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj	 modifiedj	 Kgj	 Kj	 Klj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X"  @@ -27,8 +27,11 @@
 
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
@@ -38,6 +41,8 @@
 import java.util.Optional;
 import java.util.Set;
 import java.util.function.Consumer;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -52,15 +57,15 @@ public void before() {
     }
 
     @Test
-    public void witnessRecordAllActions() {
+    public void witnessRecordsAllSingleCellActions() {
         assertThat(readWrite(transaction -> {
                     transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
                     transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
                     transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
                 }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
-                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
     }
 
@@ -72,9 +77,90 @@ public void readHandlesEmptyAndPresentValue() {
                     transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
                 }))
                 .containsExactly(
-                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
-                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+                        WitnessedSingleCellReadTransactionAction.of(
+                                TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+    }
+
+    @Test
+    public void witnessRecordsColumnRangeActions() {
+        assertThat(readWrite(transaction -> {
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+                }))
+                .containsExactly(
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
+                        WitnessedRowColumnRangeReadTransactionAction.builder()
+                                .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                        .table(TABLE_1)
+                                        .row(WORKLOAD_CELL_TWO.key())
+                                        .columnRangeSelection(ColumnRangeSelection.all())
+                                        .build())
+                                .addColumnsAndValues(ColumnValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
+                                .build());
+    }
+
+    @Test
+    public void emptyColumnRangeReadsAreRecorded() {
+        assertThat(readWrite(transaction -> {
+                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+                }))
+                .containsExactly(WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table(TABLE_1)
+                                .row(WORKLOAD_CELL_TWO.key())
+                                .columnRangeSelection(ColumnRangeSelection.all())
+                                .build())
+                        .build());
+    }
+
+    @Test
+    public void allRelevantCellsAreRecordedForFullColumnScan() {
+        int iterationCount = 1000;
+        assertThat(readWrite(transaction -> {
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(TABLE_1, 1, ColumnRangeSelection.all());
+                }))
+                .hasSize(iterationCount + 1)
+                .element(iterationCount)
+                .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
+                        .isInstanceOfSatisfying(
+                                WitnessedRowColumnRangeReadTransactionAction.class,
+                                witness -> assertThat(witness.columnsAndValues())
+                                        .isEqualTo(IntStream.range(0, iterationCount)
+                                                .mapToObj(column -> ColumnValue.of(column, VALUE_ONE))
+                                                .collect(Collectors.toList()))));
+    }
+
+    @Test
+    public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
+        int iterationCount = 1000;
+        int startInclusive = 313;
+        int endExclusive = 855;
+        assertThat(readWrite(transaction -> {
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(
+                            TABLE_1,
+                            1,
+                            ColumnRangeSelection.builder()
+                                    .startColumnInclusive(startInclusive)
+                                    .endColumnExclusive(endExclusive)
+                                    .build());
+                }))
+                .hasSize(iterationCount + 1)
+                .element(iterationCount)
+                .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
+                        .isInstanceOfSatisfying(
+                                WitnessedRowColumnRangeReadTransactionAction.class,
+                                witness -> assertThat(witness.columnsAndValues())
+                                        .isEqualTo(IntStream.range(startInclusive, endExclusive)
+                                                .mapToObj(column -> ColumnValue.of(column, VALUE_ONE))
+                                                .collect(Collectors.toList()))));
     }
 
     @Test
@@ -93,6 +179,12 @@ public void deleteThrowsWhenTableDoesNotExist() {
         assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
     }
 
+    @Test
+    public void getRowsColumnRangeThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction ->
+                transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.all()));
+    }
+
     @Test
     public void readThrowsWhenInteractiveTransactionAlreadyWitnessed() {
         assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
@@ -111,6 +203,12 @@ public void deleteThrowsWhenInteractiveTransactionAlreadyWitnessed() {
                 transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
     }
 
+    @Test
+    public void getRowColumnRangeThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(transaction ->
+                transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.all()));
+    }
+
     private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         return manager.runTaskWithRetry(atlasTransaction -> {
             AtlasDbInteractiveTransaction interactiveTransaction =u}(jm	 (adc5e60173b898a15d6ace9f917b6d3050fa0811j	 jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj	 modifiedj	 K
j	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -46,11 +46,11 @@
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore.CommitTimestampProvider;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -102,10 +102,10 @@ public void canWriteDataToStore() {
     public void witnessedTransactionMaintainsOrder() {
         List<WitnessedTransactionAction> actions = List.of(
                 WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, 100),
-                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, Optional.of(100)),
-                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_THREE, Optional.empty()),
+                WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, Optional.of(100)),
+                WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_THREE, Optional.empty()),
                 WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, 24),
-                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(24)));
+                WitnessedSingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(24)));
         Optional<WitnessedTransaction> maybeTransaction = store.readWrite(actions.stream()
                 .map(action -> action.accept(WitnessToActionVisitor.INSTANCE))
                 .collect(Collectors.toList()));
@@ -118,20 +118,21 @@ public void witnessedTransactionMaintainsOrder() {
     @Test
     public void readWriteHandlesAllTransactionTypes() {
         store.readWrite(List.of(WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE)));
-        assertThat(store.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+        assertThat(store.readWrite(List.of(SingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isPresent()
                 .map(WitnessedTransaction::actions)
                 .map(Iterables::getOnlyElement)
-                .map(WitnessedReadTransactionAction.class::cast)
-                .map(WitnessedReadTransactionAction::value)
+                .map(WitnessedSingleCellReadTransactionAction.class::cast)
+                .map(WitnessedSingleCellReadTransactionAction::value)
                 .contains(Optional.of(VALUE_ONE));
         store.readWrite(List.of(DeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
         assertThat(store.get(TABLE_1, WORKLOAD_CELL_ONE)).isEmpty();
     }
 
     @Test
     public void readWriteThrowsWhenTableDoesNotExist() {
-        assertThatThrownBy(() -> store.readWrite(List.of(ReadTransactionAction.of("chocolate", WORKLOAD_CELL_ONE))))
+        assertThatThrownBy(() ->
+                        store.readWrite(List.of(SingleCellReadTransactionAction.of("chocolate", WORKLOAD_CELL_ONE))))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Transaction action has unknown table.");
     }
@@ -144,14 +145,14 @@ public void readWriteReturnsEmptyWhenExceptionThrown() {
         when(transactionManager.runTaskWithRetry(any())).thenThrow(new RuntimeException());
         AtlasDbTransactionStore transactionStore = AtlasDbTransactionStore.create(
                 transactionManager, Map.of(TABLE_REFERENCE, AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
-        assertThat(transactionStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+        assertThat(transactionStore.readWrite(List.of(SingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isEmpty();
     }
 
     @Test
     public void readWriteHandlesReadOnlyTransaction() {
         Optional<WitnessedTransaction> witnessedTransaction =
-                store.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
+                store.readWrite(List.of(SingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
         assertThat(witnessedTransaction).isPresent();
         assertThat(witnessedTransaction.get().commitTimestamp()).isEmpty();
     }
@@ -164,7 +165,7 @@ public void abortedTransactionsReturnEmpty() {
         doReturn(abortedTransaction).when(onlyAbortsManager).runTaskWithConditionWithRetry(any(Supplier.class), any());
         AtlasDbTransactionStore onlyAbortsStore =
                 AtlasDbTransactionStore.create(onlyAbortsManager, TABLES_TO_ATLAS_METADATA);
-        assertThat(onlyAbortsStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+        assertThat(onlyAbortsStore.readWrite(List.of(SingleCellReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isEmpty();
     }
 u}(jm	 (58c33505b7876ab53b5f9bdd5f01bd2c64e92790j	 tatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayerTest.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -25,7 +25,7 @@
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
 import static org.assertj.core.api.Assertions.assertThat;
 
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -43,8 +43,8 @@ public final class InMemoryTransactionReplayerTest {
     @Test
     public void readActionsAreIgnored() {
         InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
-        inMemoryTransactionReplayer.visit(
-                ImmutableWitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+        inMemoryTransactionReplayer.visit(ImmutableWitnessedSingleCellReadTransactionAction.of(
+                TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
         assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
     }
 u}(jm	 (3a7aebde56bb23390c1e2c8534beaae39c6e3ab4j	 oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReaderTest.javaj	 addedj	 K^j	 K j	 K^j	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X@  @@ -0,0 +1,94 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.Optional;
+import org.junit.Test;
+
+public class SimpleRangeQueryReaderTest {
+    private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> valueMap =
+            StructureHolder.create(HashMap::empty);
+    private final SimpleRangeQueryReader reader = new SimpleRangeQueryReader(valueMap::getSnapshot);
+
+    @Test
+    public void doesNotReadCellsFromDifferentTable() {
+        valueMap.with(map -> map.put(
+                TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
+                Optional.of(WorkloadTestHelpers.VALUE_ONE)));
+        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_2)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                        .columnRangeSelection(ColumnRangeSelection.all())
+                        .build()))
+                .isEmpty();
+    }
+
+    @Test
+    public void doesNotReadCellsFromDifferentRow() {
+        valueMap.with(map -> map.put(
+                TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
+                Optional.of(WorkloadTestHelpers.VALUE_ONE)));
+        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
+                        .columnRangeSelection(ColumnRangeSelection.builder().build())
+                        .build()))
+                .isEmpty();
+    }
+
+    @Test
+    public void readsCellsFromRangeInOrder() {
+        for (int column = 0; column < 10; column++) {
+            int finalColumn = column;
+            valueMap.with(map -> map.put(
+                    TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, ImmutableWorkloadCell.of(1, finalColumn)),
+                    Optional.of(WorkloadTestHelpers.VALUE_ONE)));
+        }
+        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(1)
+                        .columnRangeSelection(ColumnRangeSelection.builder()
+                                .startColumnInclusive(2)
+                                .endColumnExclusive(4)
+                                .build())
+                        .build()))
+                .containsExactly(
+                        ColumnValue.of(2, WorkloadTestHelpers.VALUE_ONE),
+                        ColumnValue.of(3, WorkloadTestHelpers.VALUE_ONE));
+    }
+
+    @Test
+    public void doesNotReturnExplicitlyEmptyValues() {
+        valueMap.with(map -> map.put(
+                TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
+                Optional.empty()));
+        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                        .columnRangeSelection(ColumnRangeSelection.all())
+                        .build()))
+                .isEmpty();
+    }
+}u}(jm	 (971037703a3100aada580c79c798eac8ad8b3c98j	 oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitorTest.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 XI  @@ -21,7 +21,7 @@
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import java.util.Optional;
 import org.junit.Test;
@@ -34,9 +34,9 @@ public final class WitnessToActionVisitorTest {
 
     @Test
     public void convertsReadsCorrectly() {
-        WitnessedReadTransactionAction witnessedRead =
-                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL, Optional.of(VALUE));
-        ReadTransactionAction read = WitnessToActionVisitor.INSTANCE.visit(witnessedRead);
+        WitnessedSingleCellReadTransactionAction witnessedRead =
+                WitnessedSingleCellReadTransactionAction.of(TABLE, WORKLOAD_CELL, Optional.of(VALUE));
+        SingleCellReadTransactionAction read = WitnessToActionVisitor.INSTANCE.visit(witnessedRead);
         assertThat(read.table()).isEqualTo(witnessedRead.table());
         assertThat(read.cell()).isEqualTo(witnessedRead.cell());
     }u}(jm	 (d9fdc9b3f5f9c42e86d6718f2c773ea989bb8373j	 qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -16,10 +16,11 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -67,7 +68,8 @@ public WitnessedTransactionBuilder(long startTimestamp) {
         }
 
         public WitnessedTransactionBuilder read(Integer row, Integer column, Optional<Integer> valueRead) {
-            actions.add(WitnessedReadTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), valueRead));
+            actions.add(WitnessedSingleCellReadTransactionAction.of(
+                    table, ImmutableWorkloadCell.of(row, column), valueRead));
             return this;
         }
 
@@ -91,6 +93,17 @@ public WitnessedTransactionBuilder delete(Integer row, Integer column) {
             return this;
         }
 
+        public WitnessedTransactionBuilder rowColumnRangeRead(
+                Integer row, ColumnRangeSelection columnRangeSelection, List<ColumnValue> valuesRead) {
+            RowColumnRangeReadTransactionAction transactionAction = RowColumnRangeReadTransactionAction.builder()
+                    .table(table)
+                    .row(row)
+                    .columnRangeSelection(columnRangeSelection)
+                    .build();
+            actions.add(transactionAction.witness(valuesRead));
+            return this;
+        }
+
         public WitnessedTransactionsBuilder endTransaction() {
             Optional<Long> commitTimestamp =
                     needsCommitTimestamp ? Optional.of(timestampCounter.incrementAndGet()) : Optional.empty();u}(jm	 (486aadb53f82079807d09238cd241d1d0497c7fcj	 eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowsTest.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -30,7 +30,8 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -94,7 +95,8 @@ public void workflowRunsReadWritesDeletes() {
                 .flatMap(Collection::stream)
                 .collect(Collectors.toList());
         assertThat(actions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
-        assertThat(actions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedSingleCellReadTransactionAction.class::isInstance);
         assertThat(actions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedRowColumnRangeReadTransactionAction.class::isInstance);
     }
 }u}(jm	 (02cc3cea18cbb2337e3beb22a5f3250c9b157afdj	 xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -98,7 +98,7 @@ public void targetCellIsReadModifiedAndDeleted() {
                 .map(WitnessedTransaction::actions)
                 .flatMap(Collection::stream)
                 .collect(Collectors.toList());
-        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedSingleCellReadTransactionAction.class::isInstance);
         assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
         assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
     }
@@ -108,7 +108,8 @@ public void readTransactionsDontDoWrites() {
         WorkflowHistory workflowHistory = workflow.run();
 
         Set<WitnessedTransaction> witnessedTransactionsWithReads = workflowHistory.history().stream()
-                .filter(txn -> txn.actions().stream().anyMatch(WitnessedReadTransactionAction.class::isInstance))
+                .filter(txn ->
+                        txn.actions().stream().anyMatch(WitnessedSingleCellReadTransactionAction.class::isInstance))
                 .collect(Collectors.toSet());
 
         Set<WitnessedTransaction> witnessedTransactionsWithWritesOrDeletes = workflowHistory.history().stream()u     }(jm	 (4268ff21ba88dc967e7e3835d86ccbea101b35e2j	 matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowsTest.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X_  @@ -28,7 +28,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -96,7 +96,7 @@ public void targetCellIsReadModifiedAndDeleted() {
                 .map(WitnessedTransaction::actions)
                 .flatMap(Collection::stream)
                 .collect(Collectors.toList());
-        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedSingleCellReadTransactionAction.class::isInstance);
         assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
         assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
     }u}(jm	 (d82ebc82d525ca3f31eae702e98652e22d5b8db9j	 patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javaj	 modifiedj	 Kj	 Kj	 K,j	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -29,10 +29,10 @@
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.common.concurrent.PTExecutors;
@@ -69,40 +69,40 @@ public void shouldNotWriteToFirstCellOnOddIndices() {
     public void createsReadsThenMutationsThenReads() {
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(0, TABLE_NAME))
                 .containsExactly(
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
                         WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
                         DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(1, TABLE_NAME))
                 .containsExactly(
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
                         DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
                         WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, 1),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
     }
 
     @Test
     public void writesValueCorrespondingToTaskIndexInRelevantCell() {
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(31415926, TABLE_NAME))
                 .containsExactly(
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
                         WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 31415926),
                         DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
         assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(6021023, TABLE_NAME))
                 .containsExactly(
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
                         DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
                         WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, 6021023),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
-                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        SingleCellReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
     }
 
     @Test
@@ -121,15 +121,15 @@ public void workflowHistoryPreservesStoreAndCapturesWitnessedActions() {
                 .isInstanceOf(ReadOnlyTransactionStore.class);
         assertThat(Iterables.getOnlyElement(history.history()).actions())
                 .containsExactly(
-                        WitnessedReadTransactionAction.of(
+                        WitnessedSingleCellReadTransactionAction.of(
                                 TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.empty()),
-                        WitnessedReadTransactionAction.of(
+                        WitnessedSingleCellReadTransactionAction.of(
                                 TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
                         WitnessedDeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
-                        WitnessedReadTransactionAction.of(
+                        WitnessedSingleCellReadTransactionAction.of(
                                 TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.of(0)),
-                        WitnessedReadTransactionAction.of(
+                        WitnessedSingleCellReadTransactionAction.of(
                                 TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()));
     }
 }u}(jm	 (9b8703c2f14476d6da18077afd80bae7f16ec89bj	 latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -35,7 +35,7 @@
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableFullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -110,7 +110,7 @@ public void subsequentTransactionsWriteThenReadThenDelete() {
         for (int index = 1; index < ITERATION_COUNT; index++) {
             assertThat(witnessedTransactions.get(index).actions()).hasSize(7).satisfies(actions -> {
                 assertThat(actions.subList(0, 2)).allMatch(WitnessedWriteTransactionAction.class::isInstance);
-                assertThat(actions.subList(2, 5)).allMatch(WitnessedReadTransactionAction.class::isInstance);
+                assertThat(actions.subList(2, 5)).allMatch(WitnessedSingleCellReadTransactionAction.class::isInstance);
                 assertThat(actions.subList(5, 7)).allMatch(WitnessedDeleteTransactionAction.class::isInstance);
             });
         }
@@ -195,7 +195,7 @@ public void invariantReportsViolationsFromTransactionHistory() {
 
     @Test
     public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
-        WitnessedReadTransactionAction readWitness = WitnessedReadTransactionAction.of(
+        WitnessedSingleCellReadTransactionAction readWitness = WitnessedSingleCellReadTransactionAction.of(
                 TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
         WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
         assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
@@ -206,11 +206,8 @@ public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
 
     @Test
     public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCorrespondingPrimaryRow() {
-        List<WitnessedTransactionAction> actions = ImmutableList.of(
-                WitnessedReadTransactionAction.of(
-                        TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()),
-                WitnessedReadTransactionAction.of(
-                        TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
+        List<WitnessedTransactionAction> actions = ImmutableList.of(WitnessedSingleCellReadTransactionAction.of(
+                TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()));
         WorkflowHistory history = getWorkflowHistory(actions);
         assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
                 .isInstanceOf(SafeIllegalStateException.class)
@@ -276,11 +273,11 @@ private ImmutableWorkflowHistory getWorkflowHistory(List<WitnessedTransactionAct
     private static List<WitnessedTransactionAction> getReadWitnessesForSingleTransaction(
             int columnIndex, Optional<Integer> summaryValue, Optional<Integer> primaryValue) {
         return ImmutableList.of(
-                WitnessedReadTransactionAction.of(
+                WitnessedSingleCellReadTransactionAction.of(
                         TABLE_NAME,
                         ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, columnIndex),
                         summaryValue),
-                WitnessedReadTransactionAction.of(
+                WitnessedSingleCellReadTransactionAction.of(
                         TABLE_NAME,
                         ImmutableWorkloadCell.of(columnIndex, TransientRowsWorkflows.COLUMN),
                         primaryValue));
@@ -309,12 +306,13 @@ private static TableAndWorkloadCell getPrimaryCellForSummaryCell(TableAndWorkloa
 
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(
             WitnessedTransactionAction action) {
-        if (action instanceof WitnessedReadTransactionAction) {
-            WitnessedReadTransactionAction readAction = (WitnessedReadTransactionAction) action;
+        if (action instanceof WitnessedSingleCellReadTransactionAction) {
+            WitnessedSingleCellReadTransactionAction readAction = (WitnessedSingleCellReadTransactionAction) action;
             if (readAction.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
-                return WitnessedReadTransactionAction.of(readAction.table(), readAction.cell(), Optional.empty());
+                return WitnessedSingleCellReadTransactionAction.of(
+                        readAction.table(), readAction.cell(), Optional.empty());
             } else {
-                return WitnessedReadTransactionAction.of(
+                return WitnessedSingleCellReadTransactionAction.of(
                         readAction.table(), readAction.cell(), Optional.of(TransientRowsWorkflows.VALUE));
             }
         } else {u}(jm	 (331bb45680d8fb7ff466c586cda7199127809adfj	 oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowsTest.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X
  @@ -18,6 +18,7 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Iterables;
@@ -29,7 +30,9 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
@@ -38,7 +41,6 @@
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.List;
-import java.util.Optional;
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
@@ -84,12 +86,17 @@ public void bankWorkflowContainsInitialReadsForBalances() {
         List<WitnessedTransactionAction> actions =
                 Iterables.getOnlyElement(history.history()).actions();
 
-        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.numberOfAccounts())
-                .boxed()
-                .map(index -> WitnessedReadTransactionAction.of(
-                        TABLE_NAME, BankBalanceWorkflows.getCellForAccount(index), Optional.empty()))
-                .collect(Collectors.toList());
-        assertThat(actions).containsAll(initialReadActions);
+        assertThat(actions)
+                .contains(WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table(TABLE_NAME)
+                                .row(BankBalanceWorkflows.ROW)
+                                .columnRangeSelection(ColumnRangeSelection.builder()
+                                        .endColumnExclusive(CONFIGURATION.numberOfAccounts())
+                                        .build())
+                                .build())
+                        .columnsAndValues(ImmutableList.of())
+                        .build());
     }
 
     @Testu}(jm	 (d30b13993fc42a48a859cf8136f38e2dbf4a1347j	 hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowsTest.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
@@ -84,10 +84,10 @@ public void ringWorkflowContainsInitialReadsForRing() {
         List<WitnessedTransactionAction> actions =
                 Iterables.getOnlyElement(history.history()).actions();
 
-        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.ringSize())
+        List<WitnessedSingleCellReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.ringSize())
                 .boxed()
-                .map(index ->
-                        WitnessedReadTransactionAction.of(TABLE_NAME, RingWorkflows.cell(index), Optional.empty()))
+                .map(index -> WitnessedSingleCellReadTransactionAction.of(
+                        TABLE_NAME, RingWorkflows.cell(index), Optional.empty()))
                 .collect(Collectors.toList());
         assertThat(actions).containsAll(initialReadActions);
     }u}(jm	 (46b215e4664b4438f038bf048c14656f6fb089e1j	  changelog/0.878.0/pr-6630.v2.ymlj	 addedj	 Kj	 K j	 Kj	 vhttps://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/changelog%2F0.878.0%2Fpr-6630.v2.ymlj	 uhttps://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/changelog%2F0.878.0%2Fpr-6630.v2.ymlj	 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.878.0%2Fpr-6630.v2.yml?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Remove recursive loop when filtering out cells that are not applicable
+    to our transaction.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6630u}(jm	 (9914bf81d7b0081790e5b357d977f35947ad8b60j	  changelog/0.879.0/pr-6626.v2.ymlj	 addedj	 Kj	 K j	 Kj	 vhttps://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/changelog%2F0.879.0%2Fpr-6626.v2.ymlj	 uhttps://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/changelog%2F0.879.0%2Fpr-6626.v2.ymlj	 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.879.0%2Fpr-6626.v2.yml?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LockV1] Pass refreshable thread info configuration'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6626u}(jm	 (a17f90ec5d7c8dabd4b8d110ace6016af8cfad9cj	  changelog/0.880.0/pr-6641.v2.ymlj	 addedj	 Kj	 K j	 Kj	 vhttps://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/changelog%2F0.880.0%2Fpr-6641.v2.ymlj	 uhttps://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/changelog%2F0.880.0%2Fpr-6641.v2.ymlj	 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.880.0%2Fpr-6641.v2.yml?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize CassandraService#refreshTokenRangesAndGetServers
+  links:
+  - https://github.com/palantir/atlasdb/pull/6641u}(jm	 (7afdb03a2af8b0138cc1524e0d39e84990810e28j	  changelog/0.881.0/pr-6624.v2.ymlj	 addedj	 Kj	 K j	 Kj	 vhttps://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/changelog%2F0.881.0%2Fpr-6624.v2.ymlj	 uhttps://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/changelog%2F0.881.0%2Fpr-6624.v2.ymlj	 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.881.0%2Fpr-6624.v2.yml?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Stopped checking immutable timestamp lock on thoroughly swept tables
+    when reading an empty value.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6624u}(jm	 (3750fb7fc4996863b5345b1cb6cbf683dd8cfc1fj	  changelog/0.882.0/pr-6648.v2.ymlj	 addedj	 Kj	 K j	 Kj	 vhttps://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/changelog%2F0.882.0%2Fpr-6648.v2.ymlj	 uhttps://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/changelog%2F0.882.0%2Fpr-6648.v2.ymlj	 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.882.0%2Fpr-6648.v2.yml?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize CassandraService#getAddressForHost
+  links:
+  - https://github.com/palantir/atlasdb/pull/6648u}(jm	 (aa4df8d917755227eec390dd5e0d424aebabf4c7j	  changelog/0.882.0/pr-6649.v2.ymlj	 addedj	 Kj	 K j	 Kj	 vhttps://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/changelog%2F0.882.0%2Fpr-6649.v2.ymlj	 uhttps://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/changelog%2F0.882.0%2Fpr-6649.v2.ymlj	 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.882.0%2Fpr-6649.v2.yml?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: bump snappy-java to 1.1.10.1
+  links:
+  - https://github.com/palantir/atlasdb/pull/6649u}(jm	 (d7951f643174772a855f4d861eeddb8fc504150aj	  changelog/0.883.0/pr-6644.v2.ymlj	 addedj	 Kj	 K j	 Kj	 vhttps://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/changelog%2F0.883.0%2Fpr-6644.v2.ymlj	 uhttps://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/changelog%2F0.883.0%2Fpr-6644.v2.ymlj	 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6644.v2.yml?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Create LockRequestMetadata and ChangeMetadata
+  links:
+  - https://github.com/palantir/atlasdb/pull/6644u}(jm	 (f502755b47a5379d145593d6f6a21b6d0ff20be9j	  changelog/0.883.0/pr-6646.v2.ymlj	 addedj	 Kj	 K j	 Kj	 vhttps://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/changelog%2F0.883.0%2Fpr-6646.v2.ymlj	 uhttps://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/changelog%2F0.883.0%2Fpr-6646.v2.ymlj	 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6646.v2.yml?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add metadata to LockEvent'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6646u}(jm	 (59a104ba72569b4dfd00ae8626fea6e626f1cc19j	  changelog/0.883.0/pr-6647.v2.ymlj	 addedj	 Kj	 K j	 Kj	 vhttps://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/changelog%2F0.883.0%2Fpr-6647.v2.ymlj	 uhttps://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/changelog%2F0.883.0%2Fpr-6647.v2.ymlj	 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6647.v2.yml?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add LockMetadata to IdentifiedLockRequest'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6647u}(jm	 (bf394f216a79b7514789c9fbcff298de26735d54j	  changelog/0.888.0/pr-6651.v2.ymlj	 addedj	 Kj	 K j	 Kj	 vhttps://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/changelog%2F0.888.0%2Fpr-6651.v2.ymlj	 uhttps://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/changelog%2F0.888.0%2Fpr-6651.v2.ymlj	 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.888.0%2Fpr-6651.v2.yml?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Pass optional metadata through TimeLock'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6651u}(jm	 (689da2f7264afbb03bb06b6a430723bd1dcbbf4bj	 lock-api-objects/build.gradlej	 modifiedj	 Kj	 K j	 Kj	 qhttps://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/lock-api-objects%2Fbuild.gradlej	 phttps://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/lock-api-objects%2Fbuild.gradlej	 https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fbuild.gradle?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X_  @@ -16,6 +16,7 @@ dependencies {
     implementation 'com.google.errorprone:error_prone_annotations'
     implementation 'com.google.guava:guava'
     implementation project(':commons-annotations')
+    testImplementation project(path: ':lock-api')
 
     annotationProcessor 'org.immutables:value'
     compileOnly 'org.immutables:value::annotations'u}(jm	 (4305d649486aabcf97ca07976c286654204cf825j	 Jlock-api-objects/src/main/java/com/palantir/lock/watch/ChangeMetadata.javaj	 addedj	 Kj	 K j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -0,0 +1,137 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.palantir.lock.watch.ChangeMetadata.Created;
+import com.palantir.lock.watch.ChangeMetadata.Deleted;
+import com.palantir.lock.watch.ChangeMetadata.Unchanged;
+import com.palantir.lock.watch.ChangeMetadata.Updated;
+import org.immutables.value.Value;
+import org.immutables.value.Value.Immutable;
+
+/**
+ * The subtypes of this class can be used to document CRUD-like operations that were applied to a value.
+ * However, the READ case is not accounted for as no locks are taken out for reads.
+ * Every instance should be associated with a {@link com.palantir.lock.LockDescriptor}.
+ * It is up to the users of metadata to know the type of value it refers to
+ * and how to interpret the different subtypes.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
+@JsonSubTypes({
+    @JsonSubTypes.Type(value = Unchanged.class, name = Unchanged.TYPE),
+    @JsonSubTypes.Type(value = Updated.class, name = Updated.TYPE),
+    @JsonSubTypes.Type(value = Deleted.class, name = Deleted.TYPE),
+    @JsonSubTypes.Type(value = Created.class, name = Created.TYPE),
+})
+public interface ChangeMetadata {
+    <T> T accept(Visitor<T> visitor);
+
+    static Unchanged unchanged() {
+        return ImmutableUnchanged.builder().build();
+    }
+
+    static Updated updated(byte[] oldValue, byte[] newValue) {
+        return ImmutableUpdated.of(oldValue, newValue);
+    }
+
+    static Deleted deleted(byte[] oldValue) {
+        return ImmutableDeleted.of(oldValue);
+    }
+
+    static Created created(byte[] newValue) {
+        return ImmutableCreated.of(newValue);
+    }
+
+    interface Visitor<T> {
+        T visit(Unchanged unchanged);
+
+        T visit(Updated updated);
+
+        T visit(Deleted deleted);
+
+        T visit(Created created);
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableUnchanged.class)
+    @JsonDeserialize(as = ImmutableUnchanged.class)
+    @JsonTypeName(Unchanged.TYPE)
+    interface Unchanged extends ChangeMetadata {
+        String TYPE = "unchanged";
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableUpdated.class)
+    @JsonDeserialize(as = ImmutableUpdated.class)
+    @JsonTypeName(Updated.TYPE)
+    interface Updated extends ChangeMetadata {
+        String TYPE = "updated";
+
+        @Value.Parameter
+        byte[] oldValue();
+
+        @Value.Parameter
+        byte[] newValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableDeleted.class)
+    @JsonDeserialize(as = ImmutableDeleted.class)
+    @JsonTypeName(Deleted.TYPE)
+    interface Deleted extends ChangeMetadata {
+        String TYPE = "deleted";
+
+        @Value.Parameter
+        byte[] oldValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableCreated.class)
+    @JsonDeserialize(as = ImmutableCreated.class)
+    @JsonTypeName(Created.TYPE)
+    interface Created extends ChangeMetadata {
+        String TYPE = "created";
+
+        @Value.Parameter
+        byte[] newValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+}u}(jm	 (9ef6441b1ec7d185a6b25c242d1d64524dbaadc5j	 Elock-api-objects/src/main/java/com/palantir/lock/watch/LockEvent.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 Xa  @@ -16,12 +16,14 @@
 
 package com.palantir.lock.watch;
 
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonTypeName;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.logsafe.Unsafe;
+import java.util.Optional;
 import java.util.Set;
 import org.immutables.value.Value;
 
@@ -37,6 +39,9 @@ public abstract class LockEvent implements LockWatchEvent {
 
     public abstract LockToken lockToken();
 
+    @JsonIgnore
+    public abstract Optional<LockRequestMetadata> metadata();
+
     @Override
     public int size() {
         return lockDescriptors().size();
@@ -48,8 +53,15 @@ public <T> T accept(Visitor<T> visitor) {
     }
 
     public static LockWatchEvent.Builder builder(Set<LockDescriptor> lockDescriptors, LockToken lockToken) {
-        ImmutableLockEvent.Builder builder =
-                ImmutableLockEvent.builder().lockDescriptors(lockDescriptors).lockToken(lockToken);
+        return builder(lockDescriptors, lockToken, Optional.empty());
+    }
+
+    public static LockWatchEvent.Builder builder(
+            Set<LockDescriptor> lockDescriptors, LockToken lockToken, Optional<LockRequestMetadata> metadata) {
+        ImmutableLockEvent.Builder builder = ImmutableLockEvent.builder()
+                .lockDescriptors(lockDescriptors)
+                .lockToken(lockToken)
+                .metadata(metadata);
         return seq -> builder.sequence(seq).build();
     }
 }u}(jm	 (1168be10177125238fd8ae7829b9a0fadb1f752bj	 Olock-api-objects/src/main/java/com/palantir/lock/watch/LockRequestMetadata.javaj	 addedj	 K'j	 K j	 K'j	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -0,0 +1,39 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import com.palantir.lock.LockDescriptor;
+import com.palantir.logsafe.Unsafe;
+import java.util.Map;
+import org.immutables.value.Value;
+
+/**
+ * Metadata attached to a lock request and to any {@link LockEvent} created as a result of that request.
+ * Ideally, this class is not serialized as-is to JSON due to the repetition of {@link LockDescriptor} values
+ * in {@link LockRequestMetadata#lockDescriptorToChangeMetadata()} and the parent object.
+ */
+@Unsafe
+@Value.Immutable
+public interface LockRequestMetadata {
+
+    @Value.Parameter
+    Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata();
+
+    static LockRequestMetadata of(Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata) {
+        return ImmutableLockRequestMetadata.of(lockDescriptorToChangeMetadata);
+    }
+}u}(jm	 (8e3edb51b7ae6b3309b255039a0a6dd18134f32dj	 Jlock-api/src/main/java/com/palantir/lock/DebugThreadInfoConfiguration.javaj	 modifiedj	 Kj	 Kj	 K	j	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X&  @@ -16,18 +16,25 @@
 
 package com.palantir.lock;
 
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import org.immutables.value.Value;
 
+@JsonDeserialize(as = ImmutableDebugThreadInfoConfiguration.class)
+@JsonSerialize(as = ImmutableDebugThreadInfoConfiguration.class)
 @Value.Immutable
 public interface DebugThreadInfoConfiguration {
 
+    @JsonProperty("record-thread-info")
     @Value.Default
     default boolean recordThreadInfo() {
         return false;
     }
 
+    @JsonProperty("thread-info-snapshot-interval-millis")
     @Value.Default
     default long threadInfoSnapshotIntervalMillis() {
-        return 5000L;
+        return 300000L;
     }
 }u}(jm	 (24a4a395982dfe44421aaba5d136f4694950815fj	 ?lock-api/src/main/java/com/palantir/lock/LockServerConfigs.javaj	 modifiedj	 Kj	 K j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 XV  @@ -20,4 +20,7 @@ public final class LockServerConfigs {
     private LockServerConfigs() {}
 
     public static final LockServerOptions DEFAULT = LockServerOptions.builder().build();
+
+    public static final DebugThreadInfoConfiguration DEFAULT_THREAD_INFO_CONFIG =
+            ImmutableDebugThreadInfoConfiguration.builder().build();
 }u}(jm	 (6ad04228eeb384671486cf32446155659b4c354ej	 Jlock-api/src/main/java/com/palantir/lock/client/IdentifiedLockRequest.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -15,10 +15,12 @@
  */
 package com.palantir.lock.client;
 
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.Unsafe;
 import java.util.Optional;
 import java.util.Set;
@@ -43,15 +45,32 @@ public interface IdentifiedLockRequest {
     @Value.Parameter
     Optional<String> getClientDescription();
 
+    @Value.Parameter
+    @JsonIgnore
+    Optional<LockRequestMetadata> getMetadata();
+
     static IdentifiedLockRequest of(Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs) {
         return ImmutableIdentifiedLockRequest.of(
-                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.empty());
+                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.empty(), Optional.empty());
     }
 
     static IdentifiedLockRequest of(
             Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs, String clientDescription) {
         return ImmutableIdentifiedLockRequest.of(
-                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription));
+                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription), Optional.empty());
+    }
+
+    static IdentifiedLockRequest of(
+            Set<LockDescriptor> lockDescriptors,
+            long acquireTimeoutMs,
+            String clientDescription,
+            LockRequestMetadata metadata) {
+        return ImmutableIdentifiedLockRequest.of(
+                UUID.randomUUID(),
+                lockDescriptors,
+                acquireTimeoutMs,
+                Optional.of(clientDescription),
+                Optional.of(metadata));
     }
 
     static IdentifiedLockRequest from(LockRequest lockRequest) {u}(jm	 (9f55ad6d5a91523f5133238f9b39ba8002664e51j	 Nlock-api/src/test/java/com/palantir/lock/client/IdentifiedLockRequestTest.javaj	 modifiedj	 KIj	 Kj	 KTj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -19,24 +19,86 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
 import com.fasterxml.jackson.datatype.guava.GuavaModule;
 import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockRequestMetadata;
+import java.nio.charset.StandardCharsets;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.UUID;
 import org.junit.Test;
 
 public class IdentifiedLockRequestTest {
-    private static final String SERIALIZED_LOCK_REQUEST = "{"
-            + "\"requestId\":\"885afd9c-de62-44ff-a517-5db14b71bfaa\","
-            + "\"lockDescriptors\":[{\"bytes\":\"Zm9v\"}],"
-            + "\"acquireTimeoutMs\":123,"
-            + "\"clientDescription\":\"Thread: main\"}";
+    private static final String BASE = "src/test/resources/identified-lock-request-wire-format/";
+    private static final boolean REWRITE_JSON_BLOBS = false;
+    private static final IdentifiedLockRequest BASELINE_REQUEST = ImmutableIdentifiedLockRequest.builder()
+            .requestId(new UUID(1337, 42))
+            .lockDescriptors(ImmutableSet.of(StringLockDescriptor.of("lock1"), StringLockDescriptor.of("lock2")))
+            .acquireTimeoutMs(100)
+            .clientDescription("client: test, thread: test")
+            .build();
+    private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(ImmutableMap.of(
+            StringLockDescriptor.of("lock1"), ChangeMetadata.created("something".getBytes(StandardCharsets.UTF_8))));
+    private static final ObjectMapper MAPPER = new ObjectMapper()
+            .enable(SerializationFeature.INDENT_OUTPUT)
+            .registerModule(new Jdk8Module())
+            .registerModule(new GuavaModule());
 
-    private static final ObjectMapper mapper =
-            new ObjectMapper().registerModule(new Jdk8Module()).registerModule(new GuavaModule());
+    @Test
+    public void baselineRequestIsFullCompat() {
+        assertSerializedEquals(BASELINE_REQUEST, "baseline");
+        assertDeserializedEquals("baseline", BASELINE_REQUEST);
+    }
 
     @Test
-    public void ensureSerdeBackcompat() throws Exception {
-        IdentifiedLockRequest request = mapper.readValue(SERIALIZED_LOCK_REQUEST, IdentifiedLockRequest.class);
-        String deserialized = mapper.writeValueAsString(request);
-        assertThat(mapper.readTree(deserialized)).isEqualTo(mapper.readTree(SERIALIZED_LOCK_REQUEST));
+    public void baselineRequestWithMetadataIsBackCompat() {
+        assertSerializedEquals(
+                ImmutableIdentifiedLockRequest.copyOf(BASELINE_REQUEST).withMetadata(LOCK_REQUEST_METADATA),
+                "baseline");
+    }
+
+    private static void assertSerializedEquals(IdentifiedLockRequest request, String jsonFileName) {
+        try {
+            Path path = getJsonPath(jsonFileName);
+            if (REWRITE_JSON_BLOBS) {
+                MAPPER.writeValue(path.toFile(), request);
+            }
+            String serialized = serialize(request);
+            assertThat(MAPPER.readTree(serialized))
+                    .as("Serialization yields identical JSON representation")
+                    .isEqualTo(MAPPER.readTree(Files.readString(path)));
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static void assertDeserializedEquals(String jsonFileName, IdentifiedLockRequest request) {
+        assertThat(deserialize(jsonFileName)).isEqualTo(request);
+    }
+
+    private static String serialize(IdentifiedLockRequest request) {
+        try {
+            return MAPPER.writeValueAsString(request);
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static IdentifiedLockRequest deserialize(String jsonFileName) {
+        try {
+            return MAPPER.readValue(Files.readString(getJsonPath(jsonFileName)), IdentifiedLockRequest.class);
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static Path getJsonPath(String jsonFileName) {
+        return Paths.get(BASE + jsonFileName + ".json");
     }
 }u}(jm	 (88f329985fc4d91067bebcd353b56f20d58b75bej	 Mlock-api/src/test/resources/identified-lock-request-wire-format/baseline.jsonj	 addedj	 K
j	 K j	 K
j	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.jsonj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.jsonj	 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.json?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -0,0 +1,10 @@
+{
+  "requestId" : "00000000-0000-0539-0000-00000000002a",
+  "lockDescriptors" : [ {
+    "bytes" : "bG9jazE="
+  }, {
+    "bytes" : "bG9jazI="
+  } ],
+  "acquireTimeoutMs" : 100,
+  "clientDescription" : "client: test, thread: test"
+}
\ No newline at end of fileu}(jm	 (dfc342440e6b1fcac63ded5134e926da137e5418j	 lock-impl/build.gradlej	 modifiedj	 Kj	 K j	 Kj	 jhttps://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/lock-impl%2Fbuild.gradlej	 ihttps://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/lock-impl%2Fbuild.gradlej	 |https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fbuild.gradle?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -10,6 +10,7 @@ dependencies {
   implementation 'com.google.guava:guava'
   implementation 'com.palantir.common:streams'
   implementation 'com.palantir.nylon:nylon-threads'
+  implementation 'com.palantir.refreshable:refreshable'
   implementation 'com.palantir.safe-logging:preconditions'
   implementation 'com.palantir.safe-logging:safe-logging'
   implementation 'joda-time:joda-time'u}(jm	 (ccf79fc6208425b23884007b50ffc458e3a26bd5j	 Llock-impl/src/main/java/com/palantir/lock/impl/AdjustableBackgroundTask.javaj	 addedj	 Kej	 K j	 Kej	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -0,0 +1,101 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.io.Closeable;
+import java.time.Duration;
+import java.util.concurrent.RejectedExecutionException;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
+import java.util.function.Supplier;
+
+public final class AdjustableBackgroundTask implements Closeable {
+
+    /**
+     * A minimum duration between invocations if the task is not actually enabled.
+     * This is to prevent having a blocking thread in the background that does nothing.
+     */
+    @VisibleForTesting
+    static final Duration MINIMUM_INTERVAL_IF_NOT_RUNNING = Duration.ofSeconds(1);
+
+    private static final SafeLogger log = SafeLoggerFactory.get(AdjustableBackgroundTask.class);
+
+    private final ScheduledExecutorService scheduledExecutor;
+    private final Supplier<Boolean> shouldRunSupplier;
+    private final Supplier<Duration> intervalSupplier;
+    private final Runnable task;
+
+    public static AdjustableBackgroundTask create(
+            Supplier<Boolean> shouldRunSupplier, Supplier<Duration> delaySupplier, Runnable task) {
+        return new AdjustableBackgroundTask(
+                shouldRunSupplier, delaySupplier, task, PTExecutors.newSingleThreadScheduledExecutor());
+    }
+
+    @VisibleForTesting
+    AdjustableBackgroundTask(
+            Supplier<Boolean> shouldRunSupplier,
+            Supplier<Duration> intervalSupplier,
+            Runnable task,
+            ScheduledExecutorService scheduledExecutor) {
+        this.shouldRunSupplier = shouldRunSupplier;
+        this.intervalSupplier = intervalSupplier;
+        this.task = task;
+        this.scheduledExecutor = scheduledExecutor;
+        run();
+    }
+
+    private void run() {
+        boolean shouldRun = shouldRunSupplier.get();
+        if (shouldRun) {
+            try {
+                task.run();
+            } catch (Exception e) {
+                if (Thread.interrupted()) {
+                    log.error("Task was interrupted. Stopping background execution.", e);
+                    Thread.currentThread().interrupt();
+                    return;
+                }
+                log.error("Exception occurred during task", e);
+            } catch (Error e) {
+                log.error("Error occurred during task. Stopping background execution.", e);
+                return;
+            }
+        }
+        try {
+            long intervalMillis = intervalSupplier.get().toMillis();
+            scheduledExecutor.schedule(
+                    this::run,
+                    shouldRun ? intervalMillis : Math.max(MINIMUM_INTERVAL_IF_NOT_RUNNING.toMillis(), intervalMillis),
+                    TimeUnit.MILLISECONDS);
+        } catch (RejectedExecutionException e) {
+            log.warn(
+                    "Scheduler rejected execution",
+                    SafeArg.of("schedulerIsShutdown", scheduledExecutor.isShutdown()),
+                    e);
+        }
+    }
+
+    @Override
+    public void close() {
+        scheduledExecutor.shutdown();
+    }
+}u}(jm	 (d46677bd60efd12dee64f1090e49358ef304d8d9j	 Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj	 modifiedj	 Kj	 K
j	 K&j	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -80,6 +80,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.nylon.threads.ThreadNames;
+import com.palantir.refreshable.Refreshable;
 import com.palantir.util.JMXUtils;
 import com.palantir.util.Ownable;
 import java.math.BigInteger;
@@ -233,15 +234,21 @@ public static LockServiceImpl create() {
     public static LockServiceImpl create(LockServerOptions options) {
         com.palantir.logsafe.Preconditions.checkNotNull(options);
         ExecutorService newExecutor = PTExecutors.newCachedThreadPool(LockServiceImpl.class.getName());
-        return create(options, Ownable.owned(newExecutor));
+        return create(Refreshable.only(options), Ownable.owned(newExecutor));
     }
 
-    public static LockServiceImpl create(LockServerOptions options, ExecutorService injectedExecutor) {
+    public static LockServiceImpl create(Refreshable<LockServerOptions> options, ExecutorService injectedExecutor) {
         com.palantir.logsafe.Preconditions.checkNotNull(options);
+        com.palantir.logsafe.Preconditions.checkNotNull(options.current());
         return create(options, Ownable.notOwned(injectedExecutor));
     }
 
-    private static LockServiceImpl create(LockServerOptions options, Ownable<ExecutorService> executor) {
+    public static LockServiceImpl create(LockServerOptions options, ExecutorService injectedExecutor) {
+        com.palantir.logsafe.Preconditions.checkNotNull(options);
+        return create(Refreshable.only(options), Ownable.notOwned(injectedExecutor));
+    }
+
+    private static LockServiceImpl create(Refreshable<LockServerOptions> options, Ownable<ExecutorService> executor) {
         if (log.isTraceEnabled()) {
             log.trace("Creating LockService with options={}", SafeArg.of("options", options));
         }
@@ -252,18 +259,22 @@ private static LockServiceImpl create(LockServerOptions options, Ownable<Executo
         return lockService;
     }
 
-    private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable<ExecutorService> executor) {
+    /**
+     * Only {@link LockServerOptions#threadInfoConfiguration()} is actually reloadable
+     */
+    private LockServiceImpl(
+            Refreshable<LockServerOptions> options, Runnable callOnClose, Ownable<ExecutorService> executor) {
+        LockServerOptions currentOptions = options.current();
         this.lockReapRunner = new LockReapRunner(executor);
         this.callOnClose = callOnClose;
-        this.isStandaloneServer = options.isStandaloneServer();
-        this.maxAllowedLockTimeout = SimpleTimeDuration.of(options.getMaxAllowedLockTimeout());
-        this.maxAllowedClockDrift = SimpleTimeDuration.of(options.getMaxAllowedClockDrift());
-        this.maxNormalLockAge = SimpleTimeDuration.of(options.getMaxNormalLockAge());
-        this.stuckTransactionTimeout = SimpleTimeDuration.of(options.getStuckTransactionTimeout());
-        this.slowLogTriggerMillis = options.slowLogTriggerMillis();
-        this.threadInfoSnapshotManager =
-                new LockThreadInfoSnapshotManager(options.threadInfoConfiguration(), () -> heldLocksTokenMap);
-        threadInfoSnapshotManager.start();
+        this.isStandaloneServer = currentOptions.isStandaloneServer();
+        this.maxAllowedLockTimeout = SimpleTimeDuration.of(currentOptions.getMaxAllowedLockTimeout());
+        this.maxAllowedClockDrift = SimpleTimeDuration.of(currentOptions.getMaxAllowedClockDrift());
+        this.maxNormalLockAge = SimpleTimeDuration.of(currentOptions.getMaxNormalLockAge());
+        this.stuckTransactionTimeout = SimpleTimeDuration.of(currentOptions.getStuckTransactionTimeout());
+        this.slowLogTriggerMillis = currentOptions.slowLogTriggerMillis();
+        this.threadInfoSnapshotManager = new LockThreadInfoSnapshotManager(
+                options.map(LockServerOptions::threadInfoConfiguration), () -> heldLocksTokenMap);
     }
 
     private HeldLocksToken createHeldLocksToken(
@@ -1231,6 +1242,7 @@ private String safeLockStats() {
     public void close() {
         if (isShutDown.compareAndSet(false, true)) {
             lockReapRunner.close();
+            threadInfoSnapshotManager.close();
             blockingThreads.forEach(Thread::interrupt);
             callOnClose.run();
         }u}(jm	 (8fe141cc254985903635606c7c4d0fb75eae629bj	 Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javaj	 modifiedj	 Kj	 Kj	 K7j	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -18,58 +18,46 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableMap;
-import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.lock.DebugThreadInfoConfiguration;
 import com.palantir.lock.HeldLocksToken;
 import com.palantir.lock.LockClientAndThread;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.refreshable.Refreshable;
+import java.time.Duration;
 import java.util.HashMap;
 import java.util.Map;
 import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.ConcurrentMap;
-import java.util.concurrent.ScheduledExecutorService;
-import java.util.concurrent.TimeUnit;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 
 public class LockThreadInfoSnapshotManager implements AutoCloseable {
-    private DebugThreadInfoConfiguration threadInfoConfiguration;
+    private static final SafeLogger log = SafeLoggerFactory.get(LockThreadInfoSnapshotManager.class);
+    private final Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration;
 
-    private Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
+    private final Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
 
-    private volatile Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot;
+    private volatile Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot = ImmutableMap.of();
 
-    private ScheduledExecutorService scheduledExecutorService = PTExecutors.newSingleThreadScheduledExecutor();
+    private final AdjustableBackgroundTask backgroundTask;
 
     public LockThreadInfoSnapshotManager(
-            DebugThreadInfoConfiguration threadInfoConfiguration,
+            Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration,
             Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> mapSupplier) {
         this.threadInfoConfiguration = threadInfoConfiguration;
         this.tokenMapSupplier = mapSupplier;
-        this.lastKnownThreadInfoSnapshot = ImmutableMap.of();
-    }
-
-    public void start() {
-        scheduleRun();
-    }
-
-    private void run() {
-        takeSnapshot();
-
-        // schedule next snapshot so this can be enabled/disabled at runtime
-        scheduleRun();
-    }
-
-    private void scheduleRun() {
-        if (threadInfoConfiguration.recordThreadInfo()) {
-            scheduledExecutorService.schedule(
-                    this::run, threadInfoConfiguration.threadInfoSnapshotIntervalMillis(), TimeUnit.MILLISECONDS);
-        }
+        this.backgroundTask = AdjustableBackgroundTask.create(
+                threadInfoConfiguration.map(DebugThreadInfoConfiguration::recordThreadInfo),
+                threadInfoConfiguration.map(config -> Duration.ofMillis(config.threadInfoSnapshotIntervalMillis())),
+                this::takeSnapshot);
     }
 
     @VisibleForTesting
@@ -84,7 +72,9 @@ Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot() {
     public UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> getRestrictedSnapshotAsOptionalLogArg(
             Set<LockDescriptor> lockDescriptors) {
         String argName = "presumedClientThreadHoldersIfEnabled";
-        if (!threadInfoConfiguration.recordThreadInfo()) {
+        if (!threadInfoConfiguration.current().recordThreadInfo()) {
+            // Avoids keeping the value alive even though we are never returning it
+            lastKnownThreadInfoSnapshot = Map.of();
             return UnsafeArg.of(argName, Optional.empty());
         }
         Map<LockDescriptor, LockClientAndThread> latestSnapshot = lastKnownThreadInfoSnapshot;
@@ -108,10 +98,17 @@ void takeSnapshot() {
                 })
                 // Although a lock can be held by multiple clients/threads, we only remember one to save space
                 .collect(Collectors.toMap(Entry::getKey, Entry::getValue, (existing, replacement) -> existing));
+
+        log.info(
+                "Took thread info snapshot of {} locks. Next snapshot due in {}ms",
+                SafeArg.of("snapshotSize", lastKnownThreadInfoSnapshot.size()),
+                SafeArg.of(
+                        "snapshotIntervalMillis",
+                        threadInfoConfiguration.current().threadInfoSnapshotIntervalMillis()));
     }
 
     @Override
     public void close() {
-        scheduledExecutorService.shutdown();
+        backgroundTask.close();
     }
 }uQ     }(jm	 (97ae55956450814bf5146499495e54f469faa960j	 Plock-impl/src/test/java/com/palantir/lock/impl/AdjustableBackgroundTaskTest.javaj	 addedj	 Kj	 K j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -0,0 +1,142 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.refreshable.Refreshable;
+import com.palantir.refreshable.SettableRefreshable;
+import java.time.Duration;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.concurrent.atomic.AtomicLong;
+import org.jmock.lib.concurrent.DeterministicScheduler;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class AdjustableBackgroundTaskTest {
+    private static final Duration DEFAULT_INTERVAL = Duration.ofSeconds(10);
+    private final AtomicLong field = new AtomicLong(0);
+    private final AtomicBoolean shouldRun = new AtomicBoolean(false);
+    private final SettableRefreshable<Duration> interval = Refreshable.create(DEFAULT_INTERVAL);
+    private final DeterministicScheduler scheduledExecutor = new DeterministicScheduler();
+    private final AtomicLong numCallsToShouldRunSupplier = new AtomicLong(0);
+    private final AtomicLong numCallsToIntervalSupplier = new AtomicLong(0);
+    private final AdjustableBackgroundTask adjustableBackgroundTask = new AdjustableBackgroundTask(
+            () -> {
+                numCallsToShouldRunSupplier.incrementAndGet();
+                return shouldRun.get();
+            },
+            () -> {
+                numCallsToIntervalSupplier.incrementAndGet();
+                return interval.current();
+            },
+            field::incrementAndGet,
+            scheduledExecutor);
+
+    @BeforeClass
+    public static void testDelayShouldNotExceedMinimumDelay() {
+        // We have to ensure that our default interval is higher than MINIMUM_INTERVAL_IF_NOT_RUNNING
+        // so our tests are actually meaningful
+        assertThat(DEFAULT_INTERVAL).isGreaterThanOrEqualTo(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING);
+    }
+
+    @Test
+    public void doesNotRunTaskDuringConstruction() {
+        assertThat(field.get()).isEqualTo(0);
+    }
+
+    @Test
+    public void doesNotRunTaskByDefault() {
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(0);
+    }
+
+    @Test
+    public void canBeEnabledDisabledAndReEnabled() {
+        shouldRun.set(true);
+        tick(DEFAULT_INTERVAL);
+        long after = field.get();
+        assertThat(after).isEqualTo(1);
+
+        shouldRun.set(false);
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(after);
+
+        shouldRun.set(true);
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(after + 1);
+    }
+
+    @Test
+    public void canAdjustInterval() {
+        Duration newInterval = Duration.ofMinutes(1);
+        interval.update(newInterval);
+        shouldRun.set(true);
+        // initial run was scheduled at default interval
+        tick(DEFAULT_INTERVAL);
+        tick(Duration.ofMinutes(42 - 1));
+        assertThat(field.get()).isEqualTo(42);
+    }
+
+    @Test
+    public void canAdjustIntervalBelowMinimumDelayIfRunning() {
+        Duration newInterval = Duration.ofMillis(1);
+        interval.update(newInterval);
+        shouldRun.set(true);
+        // initial run was scheduled at default interval
+        tick(DEFAULT_INTERVAL);
+        tick(Duration.ofMillis(10 - 1));
+        assertThat(field.get()).isEqualTo(10);
+    }
+
+    @Test
+    public void runsSuppliersAtReducedIntervalIfNotRunning() {
+        Duration newInterval = Duration.ofMillis(1);
+        interval.update(newInterval);
+        Duration elapsedDuration = Duration.ofSeconds(10);
+        // initial run was scheduled at default interval, this will run suppliers once
+        tick(DEFAULT_INTERVAL);
+        tick(elapsedDuration);
+        assertThat(field.get()).isEqualTo(0);
+        // suppliers are also called once when running the constructor
+        assertThat(numCallsToShouldRunSupplier.get())
+                .as("Ensure the number of times we checked if we should run is at most the number of times"
+                        + " MINIMUM_INTERVAL_IF_NOT_RUNNING has elapsed")
+                .isLessThanOrEqualTo(
+                        elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
+        assertThat(numCallsToIntervalSupplier.get())
+                .as("Ensure the number of times we checked at what interval we should run is at most the number of"
+                        + " times MINIMUM_INTERVAL_IF_NOT_RUNNING has elapsed")
+                .isLessThanOrEqualTo(
+                        elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
+    }
+
+    @Test
+    public void suppliersAreCalledTogetherWithTask() {
+        shouldRun.set(true);
+        tick(Duration.ofSeconds(10 * DEFAULT_INTERVAL.toSeconds()));
+        assertThat(field.get()).isEqualTo(10);
+        // suppliers are also called once when running the constructor
+        assertThat(numCallsToShouldRunSupplier.get()).isEqualTo(11);
+        assertThat(numCallsToIntervalSupplier.get()).isEqualTo(11);
+    }
+
+    private void tick(Duration duration) {
+        scheduledExecutor.tick(duration.toMillis(), TimeUnit.MILLISECONDS);
+    }
+}u}(jm	 (0ff14400f99f0f97c0494b5db923ebce2e42263dj	 Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javaj	 modifiedj	 Kj	 K!j	 K0j	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -42,7 +42,7 @@
 import java.util.concurrent.TimeUnit;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
-import org.awaitility.Awaitility;
+import org.junit.After;
 import org.junit.Test;
 
 public class ThreadInfoLockServiceImplTest {
@@ -272,31 +272,6 @@ public void refreshDoesNotChangeSnapshot() throws InterruptedException {
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
     }
 
-    @Test
-    public void backgroundSnapshotRunnerWorks() throws InterruptedException {
-        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
-                .isStandaloneServer(false)
-                .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
-                        .recordThreadInfo(true)
-                        .threadInfoSnapshotIntervalMillis(50L)
-                        .build())
-                .build());
-        LockThreadInfoSnapshotManager backgroundSnapshotRunner = lockServiceWithBackgroundRunner.getSnapshotManager();
-
-        LockResponse response = lockServiceWithBackgroundRunner.lockWithFullLockResponse(
-                LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
-
-        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
-                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
-                .containsExactly(Map.entry(TEST_LOCK_1, ANONYMOUS_TEST_THREAD_1)));
-
-        lockServiceWithBackgroundRunner.unlock(response.getToken());
-
-        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
-                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
-                .doesNotContainKey(TEST_LOCK_1));
-    }
-
     @Test
     public void logArgIsUnsafeAndContainsEmptyOptionalIfNotRecordingThreadInfo() throws InterruptedException {
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
@@ -307,11 +282,10 @@ public void logArgIsUnsafeAndContainsEmptyOptionalIfNotRecordingThreadInfo() thr
 
     @Test
     public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() throws InterruptedException {
-        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
+        LockServiceImpl lockServiceWithRecordingEnabled = LockServiceImpl.create(LockServerOptions.builder()
                 .isStandaloneServer(false)
                 .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
                         .recordThreadInfo(true)
-                        .threadInfoSnapshotIntervalMillis(50L)
                         .build())
                 .build());
         LockRequest lockRequest2 = LockRequest.builder(
@@ -320,17 +294,25 @@ public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() t
                 .withCreatingThreadName(TEST_THREAD_2)
                 .build();
 
-        lockServiceWithBackgroundRunner.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
-        lockServiceWithBackgroundRunner.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+        lockServiceWithRecordingEnabled.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockServiceWithRecordingEnabled.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
 
-        Awaitility.waitAtMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(lockServiceWithBackgroundRunner
+        lockServiceWithRecordingEnabled.getSnapshotManager().takeSnapshot();
+
+        assertThat(lockServiceWithRecordingEnabled
                         .getSnapshotManager()
                         .getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
                 .isEqualTo(UnsafeArg.of(
                         "presumedClientThreadHoldersIfEnabled",
                         // Snapshot should be restricted to TEST_LOCK_1
-                        Optional.of(
-                                Map.of(TEST_LOCK_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1))))));
+                        Optional.of(Map.of(TEST_LOCK_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1)))));
+
+        lockServiceWithRecordingEnabled.close();
+    }
+
+    @After
+    public void tearDown() {
+        lockService.close();
     }
 
     private void forceSnapshot() {u}(jm	 (8c5d010b813c3904a027f75049590aef2a7eb16aj	 %scripts/circle-ci/run-circle-tests.shj	 modifiedj	 Kj	 K j	 Kj	 {https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/scripts%2Fcircle-ci%2Frun-circle-tests.shj	 zhttps://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/scripts%2Fcircle-ci%2Frun-circle-tests.shj	 https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 XW  @@ -77,6 +77,8 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 # External builds have a 16gb limit.
 if [ "$test_suite_index" -eq "14" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
+elif [ "$test_suite_index" -eq "4" ]; then
+    export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 elif [ "$test_suite_index" -eq "3" ]; then
     export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
     BASE_GRADLE_ARGS+=" --scan --parallel"u}(jm	 (2d3777830cee23df595f18bcd0f7378a07e49ebej	 etimelock-agent/src/main/java/com/palantir/timelock/config/RestrictedTimeLockRuntimeConfiguration.javaj	 modifiedj	 Kj	 K j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 Xb  @@ -16,6 +16,7 @@
 
 package com.palantir.timelock.config;
 
+import com.palantir.lock.DebugThreadInfoConfiguration;
 import java.util.Optional;
 
 public class RestrictedTimeLockRuntimeConfiguration extends TimeLockRuntimeConfiguration {
@@ -54,4 +55,9 @@ public TimeLockAdjudicationConfiguration adjudication() {
     public Optional<TsBoundPersisterRuntimeConfiguration> timestampBoundPersistence() {
         return runtime.timestampBoundPersistence();
     }
+
+    @Override
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return runtime.threadInfoConfiguration();
+    }
 }u}(jm	 (d8d2a7c36eb3321b137f488acb279decabb46ac6j	 [timelock-agent/src/main/java/com/palantir/timelock/config/TimeLockRuntimeConfiguration.javaj	 modifiedj	 Kj	 K j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -20,6 +20,8 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.google.common.base.Preconditions;
+import com.palantir.lock.DebugThreadInfoConfiguration;
+import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
 import com.palantir.logsafe.DoNotLog;
 import java.util.Optional;
 import org.immutables.value.Value;
@@ -78,6 +80,12 @@ public TimeLockAdjudicationConfiguration adjudication() {
     @JsonProperty("timestamp-bound-persistence")
     public abstract Optional<TsBoundPersisterRuntimeConfiguration> timestampBoundPersistence();
 
+    @JsonProperty("debug-thread-info-config")
+    @Value.Default
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    }
+
     @Value.Check
     public void check() {
         Preconditions.checkState(u}(jm	 (a168b555f03c27ec1cf6a6780262110e71867bedj	 Itimelock-agent/src/main/java/com/palantir/timelock/paxos/LockCreator.javaj	 modifiedj	 Kj	 Kj	 K
j	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 Xd  @@ -21,27 +21,28 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.impl.LockServiceImpl;
 import com.palantir.lock.impl.ThreadPooledLockService;
+import com.palantir.refreshable.Refreshable;
 import com.palantir.timelock.config.TimeLockRuntimeConfiguration;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Semaphore;
-import java.util.function.Supplier;
 
 public class LockCreator {
-    private final Supplier<TimeLockRuntimeConfiguration> runtime;
+    private final Refreshable<TimeLockRuntimeConfiguration> runtime;
     private final long blockingTimeoutMs;
     private final Semaphore sharedThreadPool;
     private final ExecutorService sharedExecutor = PTExecutors.newCachedThreadPool(LockServiceImpl.class.getName());
 
-    public LockCreator(Supplier<TimeLockRuntimeConfiguration> runtime, int threadPoolSize, long blockingTimeoutMs) {
+    public LockCreator(Refreshable<TimeLockRuntimeConfiguration> runtime, int threadPoolSize, long blockingTimeoutMs) {
         this.runtime = runtime;
         this.sharedThreadPool = new Semaphore(threadPoolSize);
         this.blockingTimeoutMs = blockingTimeoutMs;
     }
 
     public CloseableLockService createThreadPoolingLockService() {
-        LockServerOptions lockServerOptions = LockServerOptions.builder()
-                .slowLogTriggerMillis(runtime.get().slowLockLogTriggerMillis())
-                .build();
+        Refreshable<LockServerOptions> lockServerOptions = runtime.map(rt -> LockServerOptions.builder()
+                .slowLogTriggerMillis(rt.slowLockLogTriggerMillis())
+                .threadInfoConfiguration(rt.threadInfoConfiguration())
+                .build());
 
         LockServiceImpl rawLockService = LockServiceImpl.create(lockServerOptions, sharedExecutor);
         CloseableLockService lockService = BlockingTimeLimitedLockService.create(u}(jm	 (1f6e9d1cfd2b610c706b7a74bd68abe9b14e9b05j	 Wtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/AsyncTimelockServiceImpl.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimelockServiceImpl.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 XV  @@ -48,6 +48,7 @@
 import com.palantir.lock.v2.TimestampAndPartition;
 import com.palantir.lock.v2.WaitForLocksRequest;
 import com.palantir.lock.v2.WaitForLocksResponse;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchStateUpdate;
 import com.palantir.lock.watch.LockWatchVersion;
 import com.palantir.timestamp.ManagedTimestampService;
@@ -101,7 +102,10 @@ public long getImmutableTimestamp() {
     @Override
     public ListenableFuture<LockResponseV2> lock(IdentifiedLockRequest request) {
         AsyncResult<Leased<LockToken>> result = lockService.lock(
-                request.getRequestId(), request.getLockDescriptors(), TimeLimit.of(request.getAcquireTimeoutMs()));
+                request.getRequestId(),
+                request.getLockDescriptors(),
+                TimeLimit.of(request.getAcquireTimeoutMs()),
+                request.getMetadata());
         lockLog.registerRequest(request, result);
         SettableFuture<LockResponseV2> response = SettableFuture.create();
         result.onComplete(() -> {
@@ -274,8 +278,9 @@ public <T> ValueAndLockWatchStateUpdate<T> runTask(Optional<LockWatchVersion> la
     }
 
     @Override
-    public void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token) {
-        lockService.getLockWatchingService().registerLock(locksTakenOut, token);
+    public void registerLock(
+            Set<LockDescriptor> locksTakenOut, LockToken token, Optional<LockRequestMetadata> metadata) {
+        lockService.getLockWatchingService().registerLock(locksTakenOut, token, metadata);
     }
 
     @Overrideu}(jm	 (f944cc9641be648a44b7330a56b77121bbc8abf0j	 Ttimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/AsyncLockService.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockService.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -23,6 +23,7 @@
 import com.palantir.lock.v2.LeaderTime;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.v2.RefreshLockResponseV2;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.io.Closeable;
@@ -117,7 +118,16 @@ private void scheduleExpiredLockReaper() {
     }
 
     public AsyncResult<Leased<LockToken>> lock(UUID requestId, Set<LockDescriptor> lockDescriptors, TimeLimit timeout) {
-        return heldLocks.getExistingOrAcquire(requestId, () -> acquireLocks(requestId, lockDescriptors, timeout));
+        return lock(requestId, lockDescriptors, timeout, Optional.empty());
+    }
+
+    public AsyncResult<Leased<LockToken>> lock(
+            UUID requestId,
+            Set<LockDescriptor> lockDescriptors,
+            TimeLimit timeout,
+            Optional<LockRequestMetadata> metadata) {
+        return heldLocks.getExistingOrAcquire(
+                requestId, () -> acquireLocks(requestId, lockDescriptors, timeout, metadata));
     }
 
     public AsyncResult<Leased<LockToken>> lockImmutableTimestamp(UUID requestId, long timestamp) {
@@ -137,9 +147,12 @@ public Optional<Long> getImmutableTimestamp() {
     }
 
     private AsyncResult<HeldLocks> acquireLocks(
-            UUID requestId, Set<LockDescriptor> lockDescriptors, TimeLimit timeout) {
+            UUID requestId,
+            Set<LockDescriptor> lockDescriptors,
+            TimeLimit timeout,
+            Optional<LockRequestMetadata> metadata) {
         OrderedLocks orderedLocks = locks.getAll(lockDescriptors);
-        return lockAcquirer.acquireLocks(requestId, orderedLocks, timeout);
+        return lockAcquirer.acquireLocks(requestId, orderedLocks, timeout, metadata);
     }
 
     private AsyncResult<Void> awaitLocks(UUID requestId, Set<LockDescriptor> lockDescriptors, TimeLimit timeout) {u}(jm	 (3c957b003aa7c8f4101a6b55616b54707ad01da5j	 Mtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/HeldLocks.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocks.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocks.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocks.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -21,7 +21,9 @@
 import com.palantir.common.time.NanoTime;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.LockRequestMetadata;
 import java.util.Collection;
+import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.function.Supplier;
@@ -60,18 +62,28 @@ public static HeldLocks create(
             UUID requestId,
             LeaderClock leaderClock,
             LockWatchingService lockWatchingService) {
+        return create(lockLog, acquiredLocks, requestId, leaderClock, lockWatchingService, Optional.empty());
+    }
+
+    public static HeldLocks create(
+            LockLog lockLog,
+            Collection<AsyncLock> acquiredLocks,
+            UUID requestId,
+            LeaderClock leaderClock,
+            LockWatchingService lockWatchingService,
+            Optional<LockRequestMetadata> metadata) {
         HeldLocks locks = new HeldLocks(
                 lockLog,
                 acquiredLocks,
                 requestId,
                 new LeaseExpirationTimer(() -> leaderClock.time().currentTime()),
                 lockWatchingService);
-        locks.registerLock();
+        locks.registerLock(metadata);
         return locks;
     }
 
-    private void registerLock() {
-        lockWatchingService.registerLock(descriptors.get(), token);
+    private void registerLock(Optional<LockRequestMetadata> metadata) {
+        lockWatchingService.registerLock(descriptors.get(), token, metadata);
     }
 
     /**u}(jm	 (030591fe1a8a0d3b07402f1fac8d196fea900762j	 Ptimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/LockAcquirer.javaj	 modifiedj	 Kj	 Kj	 K	j	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FLockAcquirer.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FLockAcquirer.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FLockAcquirer.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X0  @@ -17,9 +17,11 @@
 
 import com.google.common.base.Throwables;
 import com.palantir.atlasdb.timelock.lock.watch.LockWatchingService;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.Optional;
 import java.util.UUID;
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.concurrent.TimeUnit;
@@ -46,9 +48,14 @@ public LockAcquirer(
     }
 
     public AsyncResult<HeldLocks> acquireLocks(UUID requestId, OrderedLocks locks, TimeLimit timeout) {
+        return acquireLocks(requestId, locks, timeout, Optional.empty());
+    }
+
+    public AsyncResult<HeldLocks> acquireLocks(
+            UUID requestId, OrderedLocks locks, TimeLimit timeout, Optional<LockRequestMetadata> metadata) {
         return new Acquisition(requestId, locks, timeout, lock -> lock.lock(requestId))
                 .execute()
-                .map(ignored -> HeldLocks.create(lockLog, locks.get(), requestId, leaderClock, lockWatcher));
+                .map(ignored -> HeldLocks.create(lockLog, locks.get(), requestId, leaderClock, lockWatcher, metadata));
     }
 
     public AsyncResult<Void> waitForLocks(UUID requestId, OrderedLocks locks, TimeLimit timeout) {u}(jm	 (e57475bea484a97604fa999cf8ab4593fb78af9bj	 Vtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLog.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLog.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLog.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLog.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X[  @@ -18,6 +18,7 @@
 
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchStateUpdate;
 import com.palantir.lock.watch.LockWatchVersion;
 import java.util.Optional;
@@ -29,7 +30,11 @@ public interface LockEventLog {
 
     <T> ValueAndLockWatchStateUpdate<T> runTask(Optional<LockWatchVersion> lastKnownVersion, Supplier<T> task);
 
-    void logLock(Set<LockDescriptor> locksTakenOut, LockToken lockToken);
+    default void logLock(Set<LockDescriptor> locksTakenOut, LockToken lockToken) {
+        logLock(locksTakenOut, lockToken, Optional.empty());
+    }
+
+    void logLock(Set<LockDescriptor> locksTakenOut, LockToken lockToken, Optional<LockRequestMetadata> metadata);
 
     void logUnlock(Set<LockDescriptor> locksUnlocked);
 u}(jm	 (29d09ec24e5cd6807891a4f9fff38d0d568a681ej	 Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockEventLogImpl.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockEventLogImpl.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -22,6 +22,7 @@
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchReferences.LockWatchReference;
 import com.palantir.lock.watch.LockWatchStateUpdate;
@@ -61,8 +62,9 @@ public synchronized <T> ValueAndLockWatchStateUpdate<T> runTask(
     }
 
     @Override
-    public synchronized void logLock(Set<LockDescriptor> locksTakenOut, LockToken lockToken) {
-        slidingWindow.add(LockEvent.builder(locksTakenOut, lockToken));
+    public synchronized void logLock(
+            Set<LockDescriptor> locksTakenOut, LockToken lockToken, Optional<LockRequestMetadata> metadata) {
+        slidingWindow.add(LockEvent.builder(locksTakenOut, lockToken, metadata));
     }
 
     @Overrideu}(jm	 (d34c1794b33ad9b9490743a42f40f6bfe58edd2fj	 ]timelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingService.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingService.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingService.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingService.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -19,6 +19,7 @@
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.client.LockWatchStarter;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchStateUpdate;
 import com.palantir.lock.watch.LockWatchVersion;
 import java.util.Optional;
@@ -30,7 +31,11 @@ public interface LockWatchingService extends LockWatchStarter {
 
     <T> ValueAndLockWatchStateUpdate<T> runTask(Optional<LockWatchVersion> lastKnownVersion, Supplier<T> task);
 
-    void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token);
+    default void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token) {
+        registerLock(locksTakenOut, token, Optional.empty());
+    }
+
+    void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token, Optional<LockRequestMetadata> metadata);
 
     void registerUnlock(Set<LockDescriptor> locksUnlocked);
 }u}(jm	 (acad0fe5e89078152845c5019485c1c88c7996c0j	 atimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javaj	 modifiedj	 K3j	 Kj	 K9j	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -22,9 +22,12 @@
 import com.google.common.collect.TreeRangeSet;
 import com.palantir.atlasdb.timelock.api.LockWatchRequest;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LeadershipId;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchReferences;
 import com.palantir.lock.watch.LockWatchReferences.LockWatchReference;
 import com.palantir.lock.watch.LockWatchStateUpdate;
@@ -34,12 +37,14 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.HashSet;
+import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.concurrent.locks.ReadWriteLock;
 import java.util.concurrent.locks.ReentrantReadWriteLock;
+import java.util.function.BiConsumer;
 import java.util.function.Consumer;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
@@ -104,8 +109,12 @@ public <T> ValueAndLockWatchStateUpdate<T> runTask(Optional<LockWatchVersion> la
     }
 
     @Override
-    public void registerLock(Set<LockDescriptor> locksTakenOut, LockToken token) {
-        runIfDescriptorsMatchLockWatches(locksTakenOut, filteredLocks -> lockEventLog.logLock(filteredLocks, token));
+    public void registerLock(
+            Set<LockDescriptor> locksTakenOut, LockToken token, Optional<LockRequestMetadata> metadata) {
+        runIfDescriptorsMatchLockWatchesWithMetadata(
+                locksTakenOut,
+                metadata,
+                (filteredLocks, filteredMetadata) -> lockEventLog.logLock(filteredLocks, token, filteredMetadata));
     }
 
     @Override
@@ -147,16 +156,52 @@ private void logLockWatchEvent(LockWatches newWatches) {
 
     private void runIfDescriptorsMatchLockWatches(
             Set<LockDescriptor> unfiltered, Consumer<Set<LockDescriptor>> consumer) {
+        runIfDescriptorsMatchLockWatchesWithMetadata(
+                unfiltered, Optional.empty(), (lockDescriptors, unused) -> consumer.accept(lockDescriptors));
+    }
+
+    private void runIfDescriptorsMatchLockWatchesWithMetadata(
+            Set<LockDescriptor> unfilteredLocks,
+            Optional<LockRequestMetadata> unfilteredMetadata,
+            BiConsumer<Set<LockDescriptor>, Optional<LockRequestMetadata>> biConsumer) {
         watchesLock.readLock().lock();
         try {
             RangeSet<LockDescriptor> ranges = watches.get().ranges();
-            Set<LockDescriptor> filtered =
-                    unfiltered.stream().filter(ranges::contains).collect(Collectors.toSet());
-            if (!filtered.isEmpty()) {
-                consumer.accept(filtered);
+            Set<LockDescriptor> filteredLocks =
+                    unfilteredLocks.stream().filter(ranges::contains).collect(Collectors.toSet());
+            if (filteredLocks.isEmpty()) {
+                return;
             }
+            // Filtering metadata after deciding if we should even proceed might save us some computation
+            biConsumer.accept(
+                    filteredLocks,
+                    filterMetadataBasedOnFilteredLocks(unfilteredLocks, filteredLocks, unfilteredMetadata));
         } finally {
             watchesLock.readLock().unlock();
         }
     }
+
+    // For an efficient encoding, we expect that metadata is never attached to a lock descriptor that is not contained
+    // in the original request, so filtering metadata based on the already filtered locks is sufficient and even
+    // enforces this invariant. It is also cheaper than calling RangeSet::contains.
+    // We assert that the invariant holds for non-production code to catch any attempts of violating that invariant
+    // early.
+    @SuppressWarnings("BadAssert")
+    private static Optional<LockRequestMetadata> filterMetadataBasedOnFilteredLocks(
+            Set<LockDescriptor> unfilteredLocks,
+            Set<LockDescriptor> filteredLocks,
+            Optional<LockRequestMetadata> unfilteredMetadata) {
+        return unfilteredMetadata
+                .map(LockRequestMetadata::lockDescriptorToChangeMetadata)
+                .map(unfilteredLockMetadata -> {
+                    Map<LockDescriptor, ChangeMetadata> filteredLockMetadata = KeyedStream.ofEntries(
+                                    unfilteredLockMetadata.entrySet().stream())
+                            .filterKeys(lockDescriptor -> {
+                                assert unfilteredLocks.contains(lockDescriptor) : "Unknown lock descriptor in metadata";
+                                return filteredLocks.contains(lockDescriptor);
+                            })
+                            .collectToMap();
+                    return LockRequestMetadata.of(filteredLockMetadata);
+                });
+    }
 }u}(jm	 (8e020b91d52d16688f90e3b5b814c087faf5f702j	 etimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImplTest.javaj	 modifiedj	 K j	 Kj	 K.j	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 Xd  @@ -33,11 +33,14 @@
 import com.palantir.atlasdb.timelock.lock.ExclusiveLock;
 import com.palantir.atlasdb.timelock.lock.HeldLocks;
 import com.palantir.atlasdb.timelock.lock.HeldLocksCollection;
+import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.AtlasCellLockDescriptor;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.ChangeMetadata;
 import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
 import com.palantir.lock.watch.LockWatchReferences.LockWatchReference;
@@ -69,6 +72,7 @@ public class LockWatchingServiceImplTest {
     private static final LockDescriptor ROW_DESCRIPTOR = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), ROW);
     private static final AsyncLock LOCK = new ExclusiveLock(ROW_DESCRIPTOR);
     private static final AsyncLock LOCK_2 = new ExclusiveLock(descriptorForOtherTable());
+    private static final ChangeMetadata DUMMY_METADATA = ChangeMetadata.unchanged();
 
     private final HeldLocksCollection locks = mock(HeldLocksCollection.class);
     private final LockWatchingService lockWatcher = new LockWatchingServiceImpl(LOG_ID, locks);
@@ -148,10 +152,11 @@ public void watchExactRowLockWatchLogsHeldLocksInRange() {
         lockWatcher.startWatching(request);
 
         Set<LockDescriptor> cellDescriptor = ImmutableSet.of(CELL_DESCRIPTOR);
-        lockWatcher.registerLock(cellDescriptor, TOKEN);
+        lockWatcher.registerLock(cellDescriptor, TOKEN, createMetadataForLocks(cellDescriptor));
 
         assertLoggedEvents(ImmutableList.of(
-                createdEvent(request.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)), lockEvent(cellDescriptor)));
+                createdEvent(request.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
+                lockEvent(cellDescriptor, createMetadataForLocks(cellDescriptor))));
     }
 
     @Test
@@ -232,10 +237,12 @@ public void exactCellWatchMatchesExactDescriptorOnly() {
         lockWatcher.startWatching(request);
 
         ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, cellSuffixDescriptor);
-        lockWatcher.registerLock(locks, TOKEN);
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
 
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(CELL_DESCRIPTOR);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
-                createdEvent(request.getReferences(), ImmutableSet.of()), lockEvent(ImmutableSet.of(CELL_DESCRIPTOR)));
+                createdEvent(request.getReferences(), ImmutableSet.of()),
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -246,11 +253,12 @@ public void exactRowWatchMatchesCellAndRowDescriptors() {
         lockWatcher.startWatching(rowRequest);
 
         ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR);
-        lockWatcher.registerLock(locks, TOKEN);
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
 
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(rowRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
-                lockEvent(ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR)));
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -263,11 +271,12 @@ public void rowPrefixWatchMatchesSuffixes() {
         lockWatcher.startWatching(prefixRequest);
 
         ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR, notPrefixDescriptor);
-        lockWatcher.registerLock(locks, TOKEN);
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
 
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(prefixRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
-                lockEvent(ImmutableSet.of(CELL_DESCRIPTOR, ROW_DESCRIPTOR)));
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -289,11 +298,13 @@ public void rowRangeWatchTest() {
 
         ImmutableSet<LockDescriptor> locks =
                 ImmutableSet.of(cellInRange, cellOutOfRange, rowInRange, rowInRange2, rowOutOfRange);
-        lockWatcher.registerLock(locks, TOKEN);
 
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
+
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(cellInRange, rowInRange, rowInRange2);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(rangeRequest.getReferences(), ImmutableSet.of()),
-                lockEvent(ImmutableSet.of(cellInRange, rowInRange, rowInRange2)));
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -308,11 +319,13 @@ public void entireTableWatchTest() {
 
         ImmutableSet<LockDescriptor> locks =
                 ImmutableSet.of(CELL_DESCRIPTOR, cellOutOfRange, rowInRange, rowOutOfRange);
-        lockWatcher.registerLock(locks, TOKEN);
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(locks));
 
+        ImmutableSet<LockDescriptor> expectedFilteredLocks =
+                ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR, rowInRange);
         List<LockWatchEvent> expectedEvents = ImmutableList.of(
                 createdEvent(tableRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
-                lockEvent(ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR, rowInRange)));
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(expectedFilteredLocks)));
         assertLoggedEvents(expectedEvents);
     }
 
@@ -333,8 +346,8 @@ private LockWatchEvent createdEvent(Set<LockWatchReference> references, Set<Lock
         return LockWatchCreatedEvent.builder(references, descriptors).build(sequenceCounter++);
     }
 
-    private LockWatchEvent lockEvent(Set<LockDescriptor> lockDescriptors) {
-        return LockEvent.builder(lockDescriptors, TOKEN).build(sequenceCounter++);
+    private LockWatchEvent lockEvent(Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {
+        return LockEvent.builder(lockDescriptors, TOKEN, metadata).build(sequenceCounter++);
     }
 
     private LockWatchEvent unlockEvent(Set<LockDescriptor> lockDescriptors) {
@@ -357,6 +370,11 @@ private static LockDescriptor descriptorForOtherTable() {
         return AtlasRowLockDescriptor.of(TABLE_2.getQualifiedName(), ROW);
     }
 
+    private static Optional<LockRequestMetadata> createMetadataForLocks(Set<LockDescriptor> lockDescriptors) {
+        return Optional.of(LockRequestMetadata.of(
+                KeyedStream.of(lockDescriptors).map(_unused -> DUMMY_METADATA).collectToMap()));
+    }
+
     private void assertLoggedEvents(List<LockWatchEvent> expectedEvents) {
         LockWatchStateUpdate update = lockWatcher.getWatchStateUpdate(Optional.of(LockWatchVersion.of(LOG_ID, -1L)));
         List<LockWatchEvent> events = UpdateVisitors.assertSuccess(update).events();u}(jm	 (fb460280ffa23175590cd51c5cd0ff56b8139991j	 ftimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataTest.javaj	 addedj	 Kj	 K j	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X2%  @@ -0,0 +1,195 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatException;
+
+import com.codahale.metrics.MetricRegistry;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.atlasdb.futures.AtlasFutures;
+import com.palantir.atlasdb.timelock.api.ConjureIdentifiedVersion;
+import com.palantir.atlasdb.timelock.api.ConjureStartTransactionsRequest;
+import com.palantir.atlasdb.timelock.api.ConjureStartTransactionsResponse;
+import com.palantir.atlasdb.timelock.api.LockWatchRequest;
+import com.palantir.atlasdb.timelock.lock.AsyncLockService;
+import com.palantir.atlasdb.timelock.lock.LockLog;
+import com.palantir.lock.AtlasRowLockDescriptor;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.client.IdentifiedLockRequest;
+import com.palantir.lock.client.ImmutableIdentifiedLockRequest;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
+import com.palantir.lock.watch.LockWatchCreatedEvent;
+import com.palantir.lock.watch.LockWatchEvent;
+import com.palantir.lock.watch.LockWatchReferences;
+import com.palantir.lock.watch.LockWatchStateUpdate;
+import com.palantir.lock.watch.LockWatchStateUpdate.Snapshot;
+import com.palantir.lock.watch.LockWatchStateUpdate.Success;
+import com.palantir.lock.watch.UnlockEvent;
+import com.palantir.timestamp.InMemoryTimestampService;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.UUID;
+import java.util.concurrent.ExecutionException;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.stream.Collectors;
+import org.jmock.lib.concurrent.DeterministicScheduler;
+import org.junit.Before;
+import org.junit.Test;
+
+public class AsyncTimeLockServiceMetadataTest {
+    private static final LockWatchEventVisitor LOCK_WATCH_EVENT_VISITOR = new LockWatchEventVisitor();
+    private static final LockWatchStateUpdateVisitor LOCK_WATCH_STATE_UPDATE_VISITOR =
+            new LockWatchStateUpdateVisitor();
+
+    private static final String WATCHED_TABLE_NAME = "watched-table";
+    private static final LockDescriptor WATCHED_LOCK =
+            AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, PtBytes.toBytes("lock1"));
+    private static final Map<LockDescriptor, ChangeMetadata> ALL_WATCHED_LOCKS_WITH_METADATA =
+            ImmutableMap.of(WATCHED_LOCK, ChangeMetadata.updated(PtBytes.toBytes("old"), PtBytes.toBytes("new")));
+    private static final String UNWATCHED_TABLE_NAME = "a-random-unwatched-table";
+    private static final LockDescriptor UNWATCHED_LOCK =
+            AtlasRowLockDescriptor.of(UNWATCHED_TABLE_NAME, PtBytes.toBytes("lock1"));
+    private static final IdentifiedLockRequest WATCHED_LOCK_REQUEST_WITH_METADATA =
+            standardRequestWithMetadata(ALL_WATCHED_LOCKS_WITH_METADATA);
+
+    private final LockLog lockLog = new LockLog(new MetricRegistry(), () -> 10000L);
+    private final ScheduledExecutorService scheduledExecutorService = new DeterministicScheduler();
+    private final AsyncLockService asyncLockService =
+            AsyncLockService.createDefault(lockLog, scheduledExecutorService, scheduledExecutorService);
+    private final AsyncTimelockServiceImpl timeLockService =
+            new AsyncTimelockServiceImpl(asyncLockService, new InMemoryTimestampService(), lockLog);
+    private final ConjureStartTransactionsRequest startTransactionsRequestWithInitialVersion =
+            ConjureStartTransactionsRequest.builder()
+                    .requestId(UUID.randomUUID())
+                    .lastKnownVersion(ConjureIdentifiedVersion.of(
+                            asyncLockService.leaderTime().id().id(), 0))
+                    .numTransactions(1)
+                    .requestorId(UUID.randomUUID())
+                    .build();
+
+    @Before
+    public void setup() {
+        timeLockService.startWatching(
+                LockWatchRequest.of(ImmutableSet.of(LockWatchReferences.entireTable(WATCHED_TABLE_NAME))));
+    }
+
+    @Test
+    public void absentMetadataIsPassedThrough() {
+        // this will create a lock request for 4 lock descriptors, but with absent metadata
+        IdentifiedLockRequest requestWithoutMetadata = ImmutableIdentifiedLockRequest.copyOf(
+                        standardRequestWithMetadata(ALL_WATCHED_LOCKS_WITH_METADATA))
+                .withMetadata(Optional.empty());
+        timeLockService.lock(requestWithoutMetadata);
+
+        assertThat(getAllLockEventsMetadata()).containsExactly(Optional.empty());
+    }
+
+    @Test
+    public void metadataIsPassedThroughForWatchedTable() {
+        timeLockService.lock(WATCHED_LOCK_REQUEST_WITH_METADATA);
+
+        assertThat(getAllLockEventsMetadata())
+                .containsExactly(Optional.of(LockRequestMetadata.of(ALL_WATCHED_LOCKS_WITH_METADATA)));
+    }
+
+    // This test is trivial for our current metadata constraints (metadata is only allowed for locks
+    // that are part of the original request), but we would also want this behavior if the constraints weren't there
+    @Test
+    public void noLockEventIsPublishedIfNothingIsWatched() {
+        IdentifiedLockRequest mixedRequest = standardRequestWithMetadata(ImmutableMap.of(
+                UNWATCHED_LOCK, ChangeMetadata.updated(PtBytes.toBytes("bla"), PtBytes.toBytes("blabla"))));
+        timeLockService.lock(mixedRequest);
+
+        assertThat(getAllLockEventsMetadata()).isEmpty();
+    }
+
+    // This test verifies that future developers are alerted when they break the metadata invariant by trying to pass
+    // metadata that is not attached to a lock descriptor that is part of the original request.
+    @Test
+    public void cannotPassDownMetadataForUnknownLockDescriptors() {
+        IdentifiedLockRequest goodRequest =
+                standardRequestWithMetadata(ImmutableMap.of(WATCHED_LOCK, ChangeMetadata.unchanged()));
+        IdentifiedLockRequest badRequest = ImmutableIdentifiedLockRequest.builder()
+                .from(goodRequest)
+                .metadata(LockRequestMetadata.of(
+                        ImmutableMap.of(StringLockDescriptor.of("some-random-lock"), ChangeMetadata.unchanged())))
+                .build();
+        assertThatException()
+                .isThrownBy(() -> timeLockService.lock(badRequest).get())
+                .isInstanceOf(ExecutionException.class)
+                .havingCause()
+                .isInstanceOf(AssertionError.class)
+                .withMessage("Unknown lock descriptor in metadata");
+    }
+
+    private List<Optional<LockRequestMetadata>> getAllLockEventsMetadata() {
+        return getAllLockWatchEvents().stream()
+                .map(event -> event.accept(LOCK_WATCH_EVENT_VISITOR))
+                .flatMap(Optional::stream)
+                .map(LockEvent::metadata)
+                .collect(Collectors.toList());
+    }
+
+    private List<LockWatchEvent> getAllLockWatchEvents() {
+        ListenableFuture<ConjureStartTransactionsResponse> responseFuture =
+                timeLockService.startTransactionsWithWatches(startTransactionsRequestWithInitialVersion);
+        return AtlasFutures.getUnchecked(responseFuture).getLockWatchUpdate().accept(LOCK_WATCH_STATE_UPDATE_VISITOR);
+    }
+
+    private static IdentifiedLockRequest standardRequestWithMetadata(Map<LockDescriptor, ChangeMetadata> metadata) {
+        return IdentifiedLockRequest.of(metadata.keySet(), 1000, "testClient", LockRequestMetadata.of(metadata));
+    }
+
+    private static final class LockWatchEventVisitor implements LockWatchEvent.Visitor<Optional<LockEvent>> {
+        @Override
+        public Optional<LockEvent> visit(LockEvent lockEvent) {
+            return Optional.of(lockEvent);
+        }
+
+        @Override
+        public Optional<LockEvent> visit(UnlockEvent unlockEvent) {
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<LockEvent> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
+            return Optional.empty();
+        }
+    }
+
+    private static final class LockWatchStateUpdateVisitor
+            implements LockWatchStateUpdate.Visitor<List<LockWatchEvent>> {
+        @Override
+        public List<LockWatchEvent> visit(Success success) {
+            return success.events();
+        }
+
+        @Override
+        public List<LockWatchEvent> visit(Snapshot snapshot) {
+            return ImmutableList.of();
+        }
+    }
+}u}(jm	 (4a70d424c5e4d208920397fec5510c40d956832bj	 Ztimelock-server/src/test/java/com/palantir/atlasdb/timelock/lock/AsyncLockServiceTest.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FAsyncLockServiceTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -73,6 +73,7 @@ public class AsyncLockServiceTest {
     @Before
     public void before() {
         when(acquirer.acquireLocks(any(), any(), any())).thenReturn(new AsyncResult<>());
+        when(acquirer.acquireLocks(any(), any(), any(), any())).thenReturn(new AsyncResult<>());
         when(acquirer.waitForLocks(any(), any(), any())).thenReturn(new AsyncResult<>());
         when(locks.getAll(any())).thenReturn(OrderedLocks.fromSingleLock(newLock()));
         when(immutableTimestampTracker.getImmutableTimestamp()).thenReturn(Optional.empty());
@@ -87,7 +88,7 @@ public void passesOrderedLocksToAcquirer() {
 
         lockService.lock(REQUEST_ID, descriptors, DEADLINE);
 
-        verify(acquirer).acquireLocks(REQUEST_ID, expected, DEADLINE);
+        verify(acquirer).acquireLocks(REQUEST_ID, expected, DEADLINE, Optional.empty());
     }
 
     @Test
@@ -107,7 +108,7 @@ public void doesNotAcquireDuplicateRequests() {
         lockService.lock(REQUEST_ID, descriptors, DEADLINE);
         lockService.lock(REQUEST_ID, descriptors, DEADLINE);
 
-        verify(acquirer, times(1)).acquireLocks(any(), any(), any());
+        verify(acquirer, times(1)).acquireLocks(any(), any(), any(), any());
         verifyNoMoreInteractions(acquirer);
     }
 
@@ -155,7 +156,7 @@ public void reaperDoesNotDieIfItEncountersAnException() {
     public void propagatesTimeoutExceptionIfRequestTimesOut() {
         AsyncResult<HeldLocks> timedOutResult = new AsyncResult<>();
         timedOutResult.timeout();
-        when(acquirer.acquireLocks(any(), any(), any())).thenReturn(timedOutResult);
+        when(acquirer.acquireLocks(any(), any(), any(), any())).thenReturn(timedOutResult);
 
         AsyncResult<?> result = lockService.lock(REQUEST_ID, descriptors(LOCK_A), DEADLINE);
 u}(jm	 (4b328d3f0757723e1c47adf5e7cc0a4f9aa41060j	 ]timelock-server/src/test/java/com/palantir/atlasdb/timelock/lock/HeldLocksCollectionTest.javaj	 modifiedj	 Kj	 Kj	 Kj	 https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocksCollectionTest.javaj	 https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocksCollectionTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FHeldLocksCollectionTest.java?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -32,6 +32,7 @@
 import com.palantir.lock.v2.Lease;
 import com.palantir.lock.v2.LockToken;
 import java.time.Duration;
+import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.atomic.AtomicLong;
@@ -188,7 +189,7 @@ public void lockWatchingServiceIsUpdatedAfterLockIsCreatedAndReaped() {
         AsyncResult<Leased<LockToken>> asyncResult = heldLocksCollection.getExistingOrAcquire(REQUEST_ID, () -> result);
         result.complete(heldLocksForId(REQUEST_ID));
         verify(lockWatcher)
-                .registerLock(ImmutableSet.of(LOCK_DESCRIPTOR), result.get().getToken());
+                .registerLock(ImmutableSet.of(LOCK_DESCRIPTOR), result.get().getToken(), Optional.empty());
 
         Lease lease = asyncResult.get().lease();
 
@@ -206,7 +207,7 @@ public void lockWatchingServiceIsUpdatedAfterLockIsCreatedAndUnlocked() {
         heldLocksCollection.getExistingOrAcquire(REQUEST_ID, () -> result);
         result.complete(heldLocksForId(REQUEST_ID));
         verify(lockWatcher)
-                .registerLock(ImmutableSet.of(LOCK_DESCRIPTOR), result.get().getToken());
+                .registerLock(ImmutableSet.of(LOCK_DESCRIPTOR), result.get().getToken(), Optional.empty());
 
         heldLocksCollection.unlock(ImmutableSet.of(LockToken.of(REQUEST_ID)));
         verify(lockWatcher).registerUnlock(ImmutableSet.of(LOCK_DESCRIPTOR));u}(jm	 (9f1fb8e536888de78071bd067b317dbf60414a85j	 
versions.lockj	 modifiedj	 Kj	 Kj	 Kj	 _https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/versions.lockj	 ^https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/versions.lockj	 qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 X  @@ -45,13 +45,13 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f2947442)
+com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f994935f)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
-com.google.guava:guava:31.1-jre (48 constraints: a337bcb3)
+com.google.guava:guava:32.1.1-jre (48 constraints: 03383c24)
 com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava (1 constraints: bd17c918)
-com.google.j2objc:j2objc-annotations:1.3 (1 constraints: b809eda0)
+com.google.j2objc:j2objc-annotations:2.8 (1 constraints: be09f5a0)
 com.google.protobuf:protobuf-java:3.21.9 (1 constraints: 4105453b)
 com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4 (1 constraints: 350f7769)
 com.googlecode.json-simple:json-simple:1.1 (1 constraints: 320f7469)
@@ -94,7 +94,7 @@ com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 cons
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
 com.palantir.docker.proxy:docker-proxy-rule-core:1.6.0 (2 constraints: 161ab906)
 com.palantir.docker.proxy:docker-proxy-rule-junit4:1.6.0 (1 constraints: 09050236)
-com.palantir.goethe:goethe:0.9.0 (1 constraints: 0b050636)
+com.palantir.goethe:goethe:0.11.0 (1 constraints: 3405263b)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
 com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
@@ -225,7 +225,7 @@ org.assertj:assertj-guava:3.24.2 (1 constraints: 3d05473b)
 org.awaitility:awaitility:4.2.0 (2 constraints: c71a893b)
 org.caffinitas.ohc:ohc-core:0.3.4 (1 constraints: 950f6988)
 org.checkerframework:checker-compat-qual:2.5.5 (2 constraints: 1f1d1717)
-org.checkerframework:checker-qual:3.32.0 (3 constraints: 6c2607e2)
+org.checkerframework:checker-qual:3.33.0 (3 constraints: 6f2678e2)
 org.clojure:clojure:1.8.0 (1 constraints: 0b050836)
 org.codehaus.groovy:groovy:2.5.14 (23 constraints: b55185ba)
 org.codehaus.groovy:groovy-cli-picocli:2.5.14 (5 constraints: d54e9017)
@@ -313,7 +313,7 @@ org.slf4j:slf4j-api:1.7.36 (44 constraints: 8180995b)
 org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
 org.wildfly.common:wildfly-common:1.6.0.Final (4 constraints: 3f390b3d)
 org.xerial:sqlite-jdbc:3.42.0.0 (1 constraints: 99054946)
-org.xerial.snappy:snappy-java:1.1.8 (2 constraints: 011529cb)
+org.xerial.snappy:snappy-java:1.1.10.1 (2 constraints: 891546f4)
 org.yaml:snakeyaml:1.33 (5 constraints: 0a4c5570)
 
 [Test dependencies]u      }(jm	 (d701bfa52ce6217e8aa4eee2d0b14afcd17bce6aj	 versions.propsj	 modifiedj	 Kj	 Kj	 Kj	 `https://github.com/palantir/atlasdb/blob/7b4d855740aff578b31615bfb8464596afeba63a/versions.propsj	 _https://github.com/palantir/atlasdb/raw/7b4d855740aff578b31615bfb8464596afeba63a/versions.propsj	 rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=7b4d855740aff578b31615bfb8464596afeba63aj	 Xy  @@ -17,7 +17,7 @@ com.google.dagger:* = 2.44.1
 com.google.devtools.ksp:symbol-processing-api = 1.5.21-1.0.0-beta07
 com.google.errorprone:* = 2.10.0 # upgrading to 2.11.0 is blocked by a google bug
 com.google.errorprone:error_prone_annotations = 2.10.0
-com.google.guava:guava = 31.1-jre
+com.google.guava:guava = 32.1.1-jre
 com.google.protobuf:* = 3.21.9
 com.googlecode.protobuf-java-format:* = 1.4
 com.lmax:disruptor = 3.4.2
@@ -30,7 +30,7 @@ com.palantir.conjure:conjure = 4.36.0
 com.palantir.dialogue:* = 3.78.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
-com.palantir.goethe:* = 0.9.0
+com.palantir.goethe:* = 0.11.0
 com.palantir.nylon:* = 0.3.0
 com.palantir.refreshable:refreshable = 2.2.0
 com.palantir.safe-logging:* = 3.2.0
@@ -78,7 +78,7 @@ org.reflections:reflections = 0.10.2
 org.rocksdb:rocksdbjni = 7.9.2
 org.slf4j:* = 1.7.36
 org.wildfly.common:wildfly-common = 1.6.0.Final
-org.xerial.snappy:snappy-java = 1.1.8
+org.xerial.snappy:snappy-java = 1.1.10.1
 org.xerial:sqlite-jdbc = 3.42.0.0
 org.yaml:snakeyaml = 1.33
 uk.org.lidalia:slf4j-test = 1.1.0ueu(40a42d3e506406027f6debf8bf240d81e00ef8d6}(sha(40a42d3e506406027f6debf8bf240d81e00ef8d6node_idEC_kwDOAjP5fdoAKDQwYTQyZDNlNTA2NDA2MDI3ZjZkZWJmOGJmMjQwZDgxZTAwZWY4ZDYcommit}(author}(name
Samuel Krameremailskramer@palantir.comdate2023-04-14T15:17:26Zu	committer}(j;
 
Samuel Kramerj=
 skramer@palantir.comj?
 2023-04-14T15:17:26Zumessage#Use debian images instead of alpinetree}(j3
 (1e75cbdd1635ce11c56e65d11e35d450806d8d8curl`https://api.github.com/repos/palantir/atlasdb/git/trees/1e75cbdd1635ce11c56e65d11e35d450806d8d8cujK
 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/40a42d3e506406027f6debf8bf240d81e00ef8d6
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujK
 ^https://api.github.com/repos/palantir/atlasdb/commits/40a42d3e506406027f6debf8bf240d81e00ef8d6html_urlShttps://github.com/palantir/atlasdb/commit/40a42d3e506406027f6debf8bf240d81e00ef8d6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/40a42d3e506406027f6debf8bf240d81e00ef8d6/commentsj9
 }(login
Sam-KrameridJ^2_ j5
 MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jK
 'https://api.github.com/users/Sam-KramerjW
 https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujA
 }(j\
 
Sam-Kramerj^
 J^2_ j5
 MDQ6VXNlcjYyMzg4MTQ=j`
 3https://avatars.githubusercontent.com/u/6238814?v=4jb
 h5jK
 'https://api.github.com/users/Sam-KramerjW
 https://github.com/Sam-Kramerje
 1https://api.github.com/users/Sam-Kramer/followersjg
 >https://api.github.com/users/Sam-Kramer/following{/other_user}ji
 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jk
 >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jm
 5https://api.github.com/users/Sam-Kramer/subscriptionsjo
 ,https://api.github.com/users/Sam-Kramer/orgsjq
 -https://api.github.com/users/Sam-Kramer/reposjs
 8https://api.github.com/users/Sam-Kramer/events{/privacy}ju
 7https://api.github.com/users/Sam-Kramer/received_eventsjw
 Userjy
 uparents]}(j3
 (4cf7532845968136b0ce456458e94fca49042c7djK
 ^https://api.github.com/repos/palantir/atlasdb/commits/4cf7532845968136b0ce456458e94fca49042c7djW
 Shttps://github.com/palantir/atlasdb/commit/4cf7532845968136b0ce456458e94fca49042c7duastats}(totalK		additionsK	deletionsKufiles](}(j3
 (121a175146bc6a56997ba38d7f713d850fb50e15filename/atlasdb-workload-server-distribution/Dockerfilestatusmodifiedj
 Kj
 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/40a42d3e506406027f6debf8bf240d81e00ef8d6/atlasdb-workload-server-distribution%2FDockerfileraw_urlhttps://github.com/palantir/atlasdb/raw/40a42d3e506406027f6debf8bf240d81e00ef8d6/atlasdb-workload-server-distribution%2FDockerfilecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2FDockerfile?ref=40a42d3e506406027f6debf8bf240d81e00ef8d6patchXU  @@ -1,11 +1,10 @@
-FROM amazoncorretto:11-alpine3.17-jdk
-
+FROM adoptopenjdk/openjdk11:jdk-11.0.11_9-debian
 MAINTAINER AtlasDB Team
 
 ENV DOCKERIZE_VERSION v0.2.0
 
 # Bash is useful for monitoring; curl is used by our healthchecks.
-RUN apk update && apk add bash curl procps wget \
+RUN apt-get update && apt-get -y install bash curl procps wget \
     && wget --no-check-certificate http://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
     && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
 u}(j3
 (be72c004493be08c4fc82ce80da6356af57c9035j
 'timelock-server-distribution/Dockerfilej
 modifiedj
 Kj
 Kj
 Kj
 {https://github.com/palantir/atlasdb/blob/40a42d3e506406027f6debf8bf240d81e00ef8d6/timelock-server-distribution%2FDockerfilej
 zhttps://github.com/palantir/atlasdb/raw/40a42d3e506406027f6debf8bf240d81e00ef8d6/timelock-server-distribution%2FDockerfilej
 https://api.github.com/repos/palantir/atlasdb/contents/timelock-server-distribution%2FDockerfile?ref=40a42d3e506406027f6debf8bf240d81e00ef8d6j
 X  @@ -1,8 +1,8 @@
-FROM adoptopenjdk/openjdk11:jre-11.0.9_11.1-alpine
+FROM adoptopenjdk/openjdk11:jdk-11.0.11_9-debian
 MAINTAINER AtlasDB Team
 
 # Bash is useful for monitoring; curl is used by our healthchecks.
-RUN apk update && apk add bash curl
+RUN apt-get update && apt-get -y install bash curl
 
 # Prefer ADD to COPY because it does the tar handling
 ADD timelock-server-*.tgz /ueu(1706eca35a3b85f5cb50de049ae43cb837bf9eaa}(sha(1706eca35a3b85f5cb50de049ae43cb837bf9eaanode_idEC_kwDOAjP5fdoAKDE3MDZlY2EzNWEzYjg1ZjVjYjUwZGUwNDlhZTQzY2I4MzdiZjllYWEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-28T15:43:35Zu	committer}(j
 
Sam Kramerj
 skramer@palantir.comj
 2023-05-02T10:50:40Zumessage[buggify] stashtree}(j
 (07174bb3880c599db2cc974e7801d9edf3cfe6c9url`https://api.github.com/repos/palantir/atlasdb/git/trees/07174bb3880c599db2cc974e7801d9edf3cfe6c9uj
 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1706eca35a3b85f5cb50de049ae43cb837bf9eaa
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRQ6wAACgkQmPPOpKR4
XS0ouwf/UYfa8uXcz3NWK/fYx0kLXEAynXrTzdoRNDrDkwtBtS/XJWUArRclrSW2
N4rBqGmRHODJWEQqIU7Eg8CFBmup0oeKF95lNo9jr61vCLyYBC7PeHDizN0Iu4sY
cq1f3k+SSHBhYWqB9zNNz8vO1JqM3O8jFfa8ZJ4kPnk+/AMIHFE9ctpAHR3C2JaW
sA/Ou40WnSgzIRuRHT6gIFRfEVzWiCzlCDR/Iry0MVU15nnezS+DXCaB2xlodrbr
X/XUfUFaPkSc539JeP4SZZBKZgF9ONT3eNrjSD1rL0NJsLBKznf/JBCyJx5zOEFK
pD0yZFqD9tD/UNmBZcNe5ruH2LC7TA==
=s/QF
-----END PGP SIGNATURE-----payloadtree 07174bb3880c599db2cc974e7801d9edf3cfe6c9
parent cc9bb4733ea5afc3e467218602986b3314468167
author Sam Kramer <skramer@palantir.com> 1682696615 +0100
committer Sam Kramer <skramer@palantir.com> 1683024640 +0100

[buggify] stash
uuj
 ^https://api.github.com/repos/palantir/atlasdb/commits/1706eca35a3b85f5cb50de049ae43cb837bf9eaahtml_urlShttps://github.com/palantir/atlasdb/commit/1706eca35a3b85f5cb50de049ae43cb837bf9eaacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1706eca35a3b85f5cb50de049ae43cb837bf9eaa/commentsj
 }(login
Sam-KrameridJ^2_ j
 MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j
 'https://api.github.com/users/Sam-Kramerj
 https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj
 }(j
 
Sam-Kramerj
 J^2_ j
 MDQ6VXNlcjYyMzg4MTQ=j
 3https://avatars.githubusercontent.com/u/6238814?v=4j
 h5j
 'https://api.github.com/users/Sam-Kramerj
 https://github.com/Sam-Kramerj
 1https://api.github.com/users/Sam-Kramer/followersj
 >https://api.github.com/users/Sam-Kramer/following{/other_user}j
 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j
 >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j
 5https://api.github.com/users/Sam-Kramer/subscriptionsj
 ,https://api.github.com/users/Sam-Kramer/orgsj
 -https://api.github.com/users/Sam-Kramer/reposj
 8https://api.github.com/users/Sam-Kramer/events{/privacy}j
 7https://api.github.com/users/Sam-Kramer/received_eventsj
 Userj
 uparents]}(j
 (cc9bb4733ea5afc3e467218602986b3314468167j
 ^https://api.github.com/repos/palantir/atlasdb/commits/cc9bb4733ea5afc3e467218602986b3314468167j
 Shttps://github.com/palantir/atlasdb/commit/cc9bb4733ea5afc3e467218602986b3314468167uastats}(totalM!	additionsM!	deletionsK ufiles](}(j
 (2562ed510ac883e75d479232ec3b63e0a93f4f07filenameatlasdb-buggify/build.gradlestatusaddedj K'j K changesK'blob_urlphttps://github.com/palantir/atlasdb/blob/1706eca35a3b85f5cb50de049ae43cb837bf9eaa/atlasdb-buggify%2Fbuild.gradleraw_urlohttps://github.com/palantir/atlasdb/raw/1706eca35a3b85f5cb50de049ae43cb837bf9eaa/atlasdb-buggify%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fbuild.gradle?ref=1706eca35a3b85f5cb50de049ae43cb837bf9eaapatchX#  @@ -0,0 +1,39 @@
+
+apply from: "../gradle/shared.gradle"
+
+dependencies {
+    implementation project(":atlasdb-commons")
+    implementation 'com.lmax:disruptor'
+    implementation 'com.palantir.safe-logging:safe-logging'
+    implementation 'com.palantir.tritium:tritium-registry'
+
+    implementation 'com.google.errorprone:error_prone_annotations'
+    implementation 'com.google.guava:guava'
+    implementation 'com.palantir.safe-logging:preconditions'
+    implementation 'com.palantir.tracing:tracing'
+    implementation 'io.dropwizard.metrics:metrics-core'
+    implementation 'org.slf4j:slf4j-api'
+    implementation project(':commons-executors')
+
+    testImplementation 'com.google.errorprone:error_prone_annotations'
+    testImplementation 'com.google.guava:guava'
+    testImplementation 'com.palantir.tracing:tracing'
+    testImplementation 'io.dropwizard.metrics:metrics-core'
+
+    annotationProcessor project(":atlasdb-processors")
+    compileOnly project(":atlasdb-processors")
+    annotationProcessor 'org.immutables:value'
+    compileOnly 'org.immutables:value::annotations'
+
+    testAnnotationProcessor 'org.immutables:value'
+    testCompileOnly 'org.immutables:value::annotations'
+
+    testImplementation 'junit:junit'
+    testImplementation 'org.assertj:assertj-core'
+    testImplementation 'org.awaitility:awaitility'
+    testImplementation('org.jmock:jmock') {
+      exclude group: 'org.hamcrest'
+    }
+    testImplementation 'org.mockito:mockito-core'
+    testImplementation 'com.palantir.tracing:tracing-test-utils'
+}u}(j
 (c40540098f2bcaed83d6659015e92bef317d8d34j Katlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/Buggify.javaj addedj K j K j K j https://github.com/palantir/atlasdb/blob/1706eca35a3b85f5cb50de049ae43cb837bf9eaa/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaj https://github.com/palantir/atlasdb/raw/1706eca35a3b85f5cb50de049ae43cb837bf9eaa/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaj! https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.java?ref=1706eca35a3b85f5cb50de049ae43cb837bf9eaaj# X>  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+import java.util.function.Function;
+
+public interface Buggify {
+    /**
+     * Run the provided runnable if probabilistically allowed.
+     * @param runnable the runnable to run
+     */
+    void run(Runnable runnable);
+
+    /**
+     * Potentially map the provided value to a different value.
+     */
+    <T> map(T initialValue, Function<T, T> mapFunction);
+}u}(j
 (c1d7d6b36bf5c2eef58a46e08c3012766d139198j Ratlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/BuggifyFactory.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/1706eca35a3b85f5cb50de049ae43cb837bf9eaa/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj https://github.com/palantir/atlasdb/raw/1706eca35a3b85f5cb50de049ae43cb837bf9eaa/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj! https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.java?ref=1706eca35a3b85f5cb50de049ae43cb837bf9eaaj# X  @@ -0,0 +1,29 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+public interface BuggifyFactory {
+    /**
+     * @return a Buggify instance that will be used to determine whether to inject bugs.
+     */
+    Buggify maybe(double probability);
+
+    /**
+     * @return a Buggify instance that will always run the provided runnable.
+     */
+    Buggify always();
+}u}(j
 (3c27c688a5d930f32ea4730c78f8cee5b767c667j Satlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggify.javaj addedj K#j K j K#j https://github.com/palantir/atlasdb/blob/1706eca35a3b85f5cb50de049ae43cb837bf9eaa/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javaj https://github.com/palantir/atlasdb/raw/1706eca35a3b85f5cb50de049ae43cb837bf9eaa/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javaj! https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.java?ref=1706eca35a3b85f5cb50de049ae43cb837bf9eaaj# X]  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+import java.util.function.Function;
+import java.util.function.Supplier;
+
+public enum DefaultBuggify implements Buggify {
+    INSTANCE;
+
+    @Override
+    public void run(Runnable runnable) {
+        runnable.run();
+    }
+
+    @Override
+    public <T> map(T initialValue, Function<T, T> mapFunction) {
+        return value.get();
+    }
+}u}(j
 (127401d56dacc85182271af337e6eb59a7186906j Zatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactory.javaj addedj K(j K j K(j https://github.com/palantir/atlasdb/blob/1706eca35a3b85f5cb50de049ae43cb837bf9eaa/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj https://github.com/palantir/atlasdb/raw/1706eca35a3b85f5cb50de049ae43cb837bf9eaa/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj! https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.java?ref=1706eca35a3b85f5cb50de049ae43cb837bf9eaaj# X9  @@ -0,0 +1,40 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import java.security.SecureRandom;
+
+public enum DefaultBuggifyFactory implements BuggifyFactory {
+    INSTANCE;
+
+    private static final SecureRandom SECURE_RANDOM = new SecureRandom();
+
+    @Override
+    public Buggify maybe(double probability) {
+        if (probability <= SECURE_RANDOM.nextDouble()) {
+            return NoOpBuggify.INSTANCE;
+        }
+        return DefaultBuggify.INSTANCE;
+    }
+
+    @Override
+    public Buggify always() {
+        return DefaultBuggify.INSTANCE;
+    }
+}u}(j
 (acf7830a438d909dfda6d5bec2e1928352880733j Patlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggify.javaj addedj K"j K j K"j https://github.com/palantir/atlasdb/blob/1706eca35a3b85f5cb50de049ae43cb837bf9eaa/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javaj https://github.com/palantir/atlasdb/raw/1706eca35a3b85f5cb50de049ae43cb837bf9eaa/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javaj! https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.java?ref=1706eca35a3b85f5cb50de049ae43cb837bf9eaaj# XH  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+import java.util.function.Function;
+
+public enum NoOpBuggify implements Buggify {
+    INSTANCE;
+
+    @Override
+    public void run(Runnable _runnable) {
+        // do nothing
+    }
+
+    @Override
+    public <T> map(T initialValue, Function<T, T> mapFunction) {
+        return mapFunction.apply(initialValue);
+    }
+}u}(j
 (2d1c476eaab4548b87387c93799a7891622495acj Watlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyTest.javaj addedj K'j K j K'j https://github.com/palantir/atlasdb/blob/1706eca35a3b85f5cb50de049ae43cb837bf9eaa/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj https://github.com/palantir/atlasdb/raw/1706eca35a3b85f5cb50de049ae43cb837bf9eaa/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj! https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.java?ref=1706eca35a3b85f5cb50de049ae43cb837bf9eaaj# X  @@ -0,0 +1,39 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.verify;
+
+import java.util.function.Supplier;
+import org.junit.Test;
+
+public class DefaultBuggifyTest {
+    @Test
+    public void runAlwaysExecutes() {
+        Runnable runnable = mock(Runnable.class);
+        DefaultBuggify.INSTANCE.run(runnable);
+        verify(runnable).run();
+    }
+
+    @Test
+    public void mapAlwaysCallsSupplier() {
+        Supplier<Object> value = mock(Supplier.class);
+        DefaultBuggify.INSTANCE.map(value);
+        verify(value).get();
+    }
+}u}(j
 (67a8ba301189647b46c5002c1bea03d03905cca1j Tatlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyTest.javaj addedj K(j K j K(j https://github.com/palantir/atlasdb/blob/1706eca35a3b85f5cb50de049ae43cb837bf9eaa/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj https://github.com/palantir/atlasdb/raw/1706eca35a3b85f5cb50de049ae43cb837bf9eaa/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj! https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.java?ref=1706eca35a3b85f5cb50de049ae43cb837bf9eaaj# X6  @@ -0,0 +1,40 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.never;
+import static org.mockito.Mockito.verify;
+
+import java.util.function.Supplier;
+import org.junit.Test;
+
+public class NoOpBuggifyTest {
+    @Test
+    public void runNeverExecutes() {
+        Runnable runnable = mock(Runnable.class);
+        NoOpBuggify.INSTANCE.run(runnable);
+        verify(runnable, never()).run();
+    }
+
+    @Test
+    public void mapNeverCallsSupplier() {
+        Supplier<Object> value = mock(Supplier.class);
+        NoOpBuggify.INSTANCE.map(value);
+        verify(value, never()).get();
+    }
+}u}(j
 (92b41a4f3220d1bdf849b4024cc98b1a38f996dej settings.gradlej modifiedj Kj K j Kj ahttps://github.com/palantir/atlasdb/blob/1706eca35a3b85f5cb50de049ae43cb837bf9eaa/settings.gradlej `https://github.com/palantir/atlasdb/raw/1706eca35a3b85f5cb50de049ae43cb837bf9eaa/settings.gradlej! shttps://api.github.com/repos/palantir/atlasdb/contents/settings.gradle?ref=1706eca35a3b85f5cb50de049ae43cb837bf9eaaj# @@ -6,6 +6,7 @@ rootProject.name = 'atlasdb'
 
 include ":atlasdb-api"
 include ":atlasdb-autobatch"
+include ":atlasdb-buggify"
 include ":atlasdb-cassandra"
 include ":atlasdb-cassandra-integration-tests"
 include ":atlasdb-cassandra-multinode-tests"ueu(be71af109201bb9c425e71182138358c0d27ebec}(sha(be71af109201bb9c425e71182138358c0d27ebecnode_idEC_kwDOAjP5fdoAKGJlNzFhZjEwOTIwMWJiOWM0MjVlNzExODIxMzgzNThjMGQyN2ViZWMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-18T17:05:47Zu	committer}(jo Jeremy Kongjq jkong@palantir.comjs 2023-04-18T17:05:47Zumessageasync fun timestree}(jg (1454278fb3fc63b9188b3e2b47394013e279a7f7url`https://api.github.com/repos/palantir/atlasdb/git/trees/1454278fb3fc63b9188b3e2b47394013e279a7f7uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/be71af109201bb9c425e71182138358c0d27ebec
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ+zesACgkQTLdFKain
zjwwAwf6A+9saJA4Z3TaXqYSeRE+E+szuuz6qRfRPl8sF6etWREOYOUPFAaX8Uxr
JmAdZuezNem9Uwbs/70yFUZtkE0WD/1J0KipmEuxptd57bo1edQmyhjXXW4MVtmy
nbvLxEuP0YLZ2LjwEeCJCj6gEYOrZQEKM0DxTs4DhIikOEu1w8KzxmAAfTr8ac20
RBftQ0WNP76gqDYbEmZsn7hdx6D/AIH6a41M/GP5bjmO8WYChuRS6lfF1HGMSeWJ
OPRIo9aySbxYKYni1k6+nXmctNPhew5ZPKgmiYXpvc7WXNDTZq6tccitd7qZRJfC
sUmOTQFanKGCZXoMwhMh+pGj4pccmA==
=QT8m
-----END PGP SIGNATURE-----payloadtree 1454278fb3fc63b9188b3e2b47394013e279a7f7
parent d45ef258fe0b363052210fe4cae72fd1f6dd245d
author Jeremy Kong <jkong@palantir.com> 1681837547 +0100
committer Jeremy Kong <jkong@palantir.com> 1681837547 +0100

async fun times
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/be71af109201bb9c425e71182138358c0d27ebechtml_urlShttps://github.com/palantir/atlasdb/commit/be71af109201bb9c425e71182138358c0d27ebeccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/be71af109201bb9c425e71182138358c0d27ebec/commentsjm }(login
jeremyk-91idJZ ji MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuju }(j 
jeremyk-91j JZ ji MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(jg (d45ef258fe0b363052210fe4cae72fd1f6dd245dj ^https://api.github.com/repos/palantir/atlasdb/commits/d45ef258fe0b363052210fe4cae72fd1f6dd245dj Shttps://github.com/palantir/atlasdb/commit/d45ef258fe0b363052210fe4cae72fd1f6dd245duastats}(totalK*	additionsK	deletionsK
ufiles]}(jg (6c378cdce013d06389f784d98ac952e21b8a05f5filenameuatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunnerTest.javastatusmodifiedj Kj K
changesK*blob_urlhttps://github.com/palantir/atlasdb/blob/be71af109201bb9c425e71182138358c0d27ebec/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/be71af109201bb9c425e71182138358c0d27ebec/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.java?ref=be71af109201bb9c425e71182138358c0d27ebecpatchX&  @@ -25,15 +25,19 @@
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
 
+import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowValidator;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Executors;
-import java.util.concurrent.Semaphore;
-import java.util.concurrent.TimeUnit;
+import java.util.concurrent.Future;
+import java.util.concurrent.atomic.AtomicBoolean;
 import org.junit.Before;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -86,31 +90,43 @@ public void runValidatesAllInvariantsIgnoringExceptions() {
 
     @Test
     public void runExecutesMultipleWorkflowsAndWaitsForAllToFinishBeforeInvokingInvariantReporter() {
-        Semaphore semaphore = new Semaphore(0);
+        CountDownLatch slowWorkflowCanMakeProgress = new CountDownLatch(1);
+        AtomicBoolean slowWorkflowIsDone = new AtomicBoolean(false);
+
         Workflow slowWorkflow = mock(Workflow.class);
         when(slowWorkflow.run()).thenAnswer(_input -> {
             try {
-                assertThat(semaphore.tryAcquire(5, TimeUnit.SECONDS))
-                        .as("No permits should have been released yet as the invariant reporter should have not ran")
-                        .isFalse();
+                slowWorkflowCanMakeProgress.await();
+                slowWorkflowIsDone.set(true);
+                return workflowHistory;
             } catch (InterruptedException e) {
+                Thread.currentThread().interrupt();
                 throw new RuntimeException(e);
             }
-            return workflowHistory;
         });
 
-        WorkflowValidator<Workflow> slowWorkflowValidator = WorkflowValidator.of(slowWorkflow, invariantReporterOne);
-
-        doAnswer(_input -> {
-                    semaphore.release();
+        doAnswer(_invocation -> {
+                    assertThat(slowWorkflowIsDone.get())
+                            .as("the invariant reporter ran, even though the slow workflow was not done yet")
+                            .isTrue();
                     return null;
                 })
                 .when(invariantReporterOne)
                 .report(any());
 
-        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(slowWorkflowValidator, workflowValidator);
+        ExecutorService backgroundExecutor = PTExecutors.newSingleThreadExecutor();
+        Future<Void> validation = backgroundExecutor.submit(() -> {
+            WorkflowValidator<Workflow> slowWorkflowValidator =
+                    WorkflowValidator.of(slowWorkflow, invariantReporterOne);
+            new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(slowWorkflowValidator, workflowValidator);
+            return null;
+        });
+
+        assertThat(validation).as("the slow workflow was not actually slow").isNotDone();
+
+        slowWorkflowCanMakeProgress.countDown();
+        Futures.getUnchecked(validation);
 
-        assertThat(semaphore.availablePermits()).isEqualTo(2);
         verify(workflow, times(1)).run();
         verify(slowWorkflow, times(1)).run();
         verify(invariantReporterOne, times(2)).report(any());uau(501dfaf5c241b8e502280943424e4b80c84a2c0f}(sha(501dfaf5c241b8e502280943424e4b80c84a2c0fnode_idEC_kwDOAjP5fdoAKDUwMWRmYWY1YzI0MWI4ZTUwMjI4MDk0MzQyNGU0YjgwYzg0YTJjMGYcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-05-24T15:28:18Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-05-24T15:28:18Zumessagebug on purpose: dont check for immutableT lock on thorough swept tables. we want to ship this to Antithesis and verify they can catch bugstree}(j (91937e8d9c50b7755407407730e7837dc1bd7ce6url`https://api.github.com/repos/palantir/atlasdb/git/trees/91937e8d9c50b7755407407730e7837dc1bd7ce6uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/501dfaf5c241b8e502280943424e4b80c84a2c0f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmRuLRIACgkQJd22kJ7J
GixK1Qf/XdTdwtcAZ/MJp52YxsGrZVf+WuFtvgG9oP9GQ/zYM4tdQk6mDvVrXlbp
CA3XqYPyySroqQHc9F+gnrXKLELX6P9kFfekQIco+dixBZ0zv4J/j4SxMk8M7C0M
Qy54ngSc4MqjIY+L0reSkGLWEovLtSMUHuLg1081REZy8aRKa2mZY31ELiTz6IW5
TBjfflylDLY3+S8LEP8TbM9tvmuiuLRXcLAgiVmMS93pFJYsn5cK7mA1BgDlKzOa
+0IGEyWJxxiY8r3tSiHGNuC1VMAdNLjIFw1bhXYGQduIoGW6Nq/pNAqf1tRY9U89
SBmrB3/G38GtowGMEE+KWSo1wuyMJQ==
=GXd+
-----END PGP SIGNATURE-----payloadXe  tree 91937e8d9c50b7755407407730e7837dc1bd7ce6
parent 8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813
author Lucas Meireles <meireles31@msn.com> 1684942098 +0100
committer Lucas Meireles <meireles31@msn.com> 1684942098 +0100

bug on purpose: dont check for immutableT lock on thorough swept tables. we want to ship this to Antithesis and verify they can catch bugs
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/501dfaf5c241b8e502280943424e4b80c84a2c0fhtml_urlShttps://github.com/palantir/atlasdb/commit/501dfaf5c241b8e502280943424e4b80c84a2c0fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/501dfaf5c241b8e502280943424e4b80c84a2c0f/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j	 LucasIMEj Jg j MDQ6VXNlcjY3ODczMTE=j
 3https://avatars.githubusercontent.com/u/6787311?v=4j h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj  6https://api.github.com/users/LucasIME/events{/privacy}j" 5https://api.github.com/users/LucasIME/received_eventsj$ Userj& uparents]}(j (8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813j ^https://api.github.com/repos/palantir/atlasdb/commits/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813j Shttps://github.com/palantir/atlasdb/commit/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813uastats}(totalK	additionsK	deletionsKufiles]}(j (8101526c362014461ab9b2cf6b15fc857e94e1abfilenameVatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javastatusmodifiedj@ KjA KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/501dfaf5c241b8e502280943424e4b80c84a2c0f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaraw_urlhttps://github.com/palantir/atlasdb/raw/501dfaf5c241b8e502280943424e4b80c84a2c0f/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=501dfaf5c241b8e502280943424e4b80c84a2c0fpatchX   @@ -30,7 +30,7 @@ public final class SweepStrategy {
 
     public static final SweepStrategy CONSERVATIVE =
             new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false);
-    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), true);
+    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), false);
 
     private final Optional<SweeperStrategy> sweeperStrategy;
     private final boolean mustCheckImmutableLockAfterReads;uau(7f5827e3c19d1c2e3b355ec55bd7603bfc494738}(sha(7f5827e3c19d1c2e3b355ec55bd7603bfc494738node_idEC_kwDOAjP5fdoAKDdmNTgyN2UzYzE5ZDFjMmUzYjM1NWVjNTViZDc2MDNiZmM0OTQ3Mzgcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-19T14:04:16Zu	committer}(j] 
Ahmed Alouanej_ aalouane@palantir.comja 2023-04-19T14:04:16ZumessageURevert "bump resource"

This reverts commit ee0736dad8ec7e14b3568f28ee65bdbf9af434ff.tree}(jU (041e383a7370dc1c047517e65883a1c32306a6bfurl`https://api.github.com/repos/palantir/atlasdb/git/trees/041e383a7370dc1c047517e65883a1c32306a6bfujm bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7f5827e3c19d1c2e3b355ec55bd7603bfc494738
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmQ/9OMACgkQPlMHVIT1
yhpC2gf/Sxy3vZ9LYKdwnR8CPq75N2+cNtVGLsiX4RUma+qMD/D1ElHBEt93Bkys
wDf44N8lwnUChF3kb3ChC6DV3hQMcXOdiwKqBB9Cx2YMfxZ3LsxSLvdzrfdAA3oF
YsigPWgGdKKwoejnWkqAKNEUIzINyfMDcydvUuCyUKbQ/IQt6zwKYXMkyV/QM+GL
kRSdfc7ojcdTjMmSl3HyhX6Y6fY3AVZGO+pf7kPT0jhZ8dndtGH8Hwb75ZI6f+9S
RjOdwQlvLwi+iLg49I86P8c6Iaa2Wrs3ZP68cpr4YN42cytB5jRwFcIBT3QTgBQu
D9dkI8oUAlj8tgBS5GxUe16EbGFJYw==
=k7E6
-----END PGP SIGNATURE-----payloadX4  tree 041e383a7370dc1c047517e65883a1c32306a6bf
parent ee0736dad8ec7e14b3568f28ee65bdbf9af434ff
author Ahmed Alouane <aalouane@palantir.com> 1681913056 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1681913056 +0100

Revert "bump resource"

This reverts commit ee0736dad8ec7e14b3568f28ee65bdbf9af434ff.
uujm ^https://api.github.com/repos/palantir/atlasdb/commits/7f5827e3c19d1c2e3b355ec55bd7603bfc494738html_urlShttps://github.com/palantir/atlasdb/commit/7f5827e3c19d1c2e3b355ec55bd7603bfc494738comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7f5827e3c19d1c2e3b355ec55bd7603bfc494738/commentsj[ }(loginergo14idJjW MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jm #https://api.github.com/users/ergo14j{ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujc }(j ergo14j JjW MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5jm #https://api.github.com/users/ergo14j{ https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jU (ee0736dad8ec7e14b3568f28ee65bdbf9af434ffjm ^https://api.github.com/repos/palantir/atlasdb/commits/ee0736dad8ec7e14b3568f28ee65bdbf9af434ffj{ Shttps://github.com/palantir/atlasdb/commit/ee0736dad8ec7e14b3568f28ee65bdbf9af434ffuastats}(totalK	additionsK	deletionsKufiles]}(jU (8860749f334e2fbd898a532814099762c3c557d7filename.circleci/config.ymlstatusmodifiedj Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/7f5827e3c19d1c2e3b355ec55bd7603bfc494738/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/7f5827e3c19d1c2e3b355ec55bd7603bfc494738/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=7f5827e3c19d1c2e3b355ec55bd7603bfc494738patchX  @@ -4,7 +4,7 @@ jobs:
   build:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: 2xlarge+
+    resource_class: xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
@@ -35,7 +35,7 @@ jobs:
     parallelism: 12
     machine:
       image: ubuntu-2004:202111-02
-    resource_class: 2xlarge
+    resource_class: xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       JAVA_HOME: /opt/java8uau(6a24bc913895b934cdd1c1dea42fe28dfefc6baa}(sha(6a24bc913895b934cdd1c1dea42fe28dfefc6baanode_idEC_kwDOAjP5fdoAKDZhMjRiYzkxMzg5NWI5MzRjZGQxYzFkZWE0MmZlMjhkZmVmYzZiYWEcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-06-22T12:37:31Zu	committer}(j 
svc-changelogj svc-changelog@palantir.comj 2023-06-22T12:37:31ZumessageAdd generated changelog entriestree}(j (47a57489289b03614b1cd8c06c611ef7ee33807durl`https://api.github.com/repos/palantir/atlasdb/git/trees/47a57489289b03614b1cd8c06c611ef7ee33807duj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6a24bc913895b934cdd1c1dea42fe28dfefc6baa
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSUQIsJEHYaJX37fAFQAAD7pwEAkaDGeQv2onfPGamFoP7oYBtH
QgELZBlExcv5qRUfhKABAOcGItRzDo9HjAz3N/eaXTQaqF9DztkV422thvi188om
=FfOa
-----END PGP SIGNATURE-----payloadX  tree 47a57489289b03614b1cd8c06c611ef7ee33807d
parent a856cd26916b061ee398ecbfdd2bf50d0fc8820c
author svc-changelog <svc-changelog@palantir.com> 1687437451 +0000
committer svc-changelog <svc-changelog@palantir.com> 1687437451 +0000

Add generated changelog entriesuuj ^https://api.github.com/repos/palantir/atlasdb/commits/6a24bc913895b934cdd1c1dea42fe28dfefc6baahtml_urlShttps://github.com/palantir/atlasdb/commit/6a24bc913895b934cdd1c1dea42fe28dfefc6baacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6a24bc913895b934cdd1c1dea42fe28dfefc6baa/commentsj }(login
svc-changelogidJ#j MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj }(j 
svc-changelogj J#j MDQ6VXNlcjg0MDc3NjAzj 4https://avatars.githubusercontent.com/u/84077603?v=4j h5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelogj  4https://api.github.com/users/svc-changelog/followersj Ahttps://api.github.com/users/svc-changelog/following{/other_user}j :https://api.github.com/users/svc-changelog/gists{/gist_id}j Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j 8https://api.github.com/users/svc-changelog/subscriptionsj
 /https://api.github.com/users/svc-changelog/orgsj 0https://api.github.com/users/svc-changelog/reposj ;https://api.github.com/users/svc-changelog/events{/privacy}j :https://api.github.com/users/svc-changelog/received_eventsj Userj uparents]}(j (a856cd26916b061ee398ecbfdd2bf50d0fc8820cj ^https://api.github.com/repos/palantir/atlasdb/commits/a856cd26916b061ee398ecbfdd2bf50d0fc8820cj Shttps://github.com/palantir/atlasdb/commit/a856cd26916b061ee398ecbfdd2bf50d0fc8820cuastats}(totalK	additionsK	deletionsK ufiles]}(j (52efbe2017a4ec93c5314b7ecfc1add497c89dd4filename$changelog/@unreleased/pr-6639.v2.ymlstatusaddedj. Kj/ K changesKblob_url|https://github.com/palantir/atlasdb/blob/6a24bc913895b934cdd1c1dea42fe28dfefc6baa/changelog%2F%40unreleased%2Fpr-6639.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/6a24bc913895b934cdd1c1dea42fe28dfefc6baa/changelog%2F%40unreleased%2Fpr-6639.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6639.v2.yml?ref=6a24bc913895b934cdd1c1dea42fe28dfefc6baapatch@@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: We now emit metrics with how often we're going exhaustive and non-exhaustive
+    KVS gets.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6639uau(d37428dcf5c3aaf1e839b30645d1d8822831efa8}(sha(d37428dcf5c3aaf1e839b30645d1d8822831efa8node_idEC_kwDOAjP5fdoAKGQzNzQyOGRjZjVjM2FhZjFlODM5YjMwNjQ1ZDFkODgyMjgzMWVmYTgcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-25T17:30:16Zu	committer}(jK Jeremy KongjM jkong@palantir.comjO 2023-04-25T17:30:16Zumessageloltree}(jC (fefb58df483e4b165918cb364318a8af217cda86url`https://api.github.com/repos/palantir/atlasdb/git/trees/fefb58df483e4b165918cb364318a8af217cda86uj[ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d37428dcf5c3aaf1e839b30645d1d8822831efa8
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRIDigACgkQTLdFKain
zjzojQf9Gs9YtwxY+U3Kw8e0RpbD9SQ3D8qRmK7imBXRuMGzVHmNLj2+yRMNJI2a
kNzCdXocE4UFIUmLD+ZxSs//kZBYBX5R72wiHs3BOTuqtkRUnrTrUy0NFfMJsqC+
Jy08AwuJICKCP2ZdeeHSa/KWYa2bFrt90XZ00HjGbohKZCommvoalfkuXANEsHlK
utgmmwgXnodl/KPRPaxt14H4t3iKUW3bdR1ToXisr3YWCdbD0xJDxUAIz5/UxfhK
/cCkdpIXWixo15k2MA/ZSi9MS++6XFnGlYeS4baUlRu5+W+ELmw8IhlJ4UZUMSTh
iCaoLvoNRxzg+faoP7957w/FtHhhDQ==
=rzxO
-----END PGP SIGNATURE-----payloadtree fefb58df483e4b165918cb364318a8af217cda86
parent cd59c6b361668ec69193d011aea4b2765cd427c3
author Jeremy Kong <jkong@palantir.com> 1682443816 +0100
committer Jeremy Kong <jkong@palantir.com> 1682443816 +0100

lol
uuj[ ^https://api.github.com/repos/palantir/atlasdb/commits/d37428dcf5c3aaf1e839b30645d1d8822831efa8html_urlShttps://github.com/palantir/atlasdb/commit/d37428dcf5c3aaf1e839b30645d1d8822831efa8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d37428dcf5c3aaf1e839b30645d1d8822831efa8/commentsjI }(login
jeremyk-91idJZ jE MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j[ 'https://api.github.com/users/jeremyk-91ji https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujQ }(jn 
jeremyk-91jp JZ jE MDQ6VXNlcjU5NTU1MTA=jr 3https://avatars.githubusercontent.com/u/5955510?v=4jt h5j[ 'https://api.github.com/users/jeremyk-91ji https://github.com/jeremyk-91jw 1https://api.github.com/users/jeremyk-91/followersjy >https://api.github.com/users/jeremyk-91/following{/other_user}j{ 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j} >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(jC (cd59c6b361668ec69193d011aea4b2765cd427c3j[ ^https://api.github.com/repos/palantir/atlasdb/commits/cd59c6b361668ec69193d011aea4b2765cd427c3ji Shttps://github.com/palantir/atlasdb/commit/cd59c6b361668ec69193d011aea4b2765cd427c3uastats}(totalK	additionsK	deletionsKufiles]}(jC (f59a4dbc4bf0ee051eb7c67806745bd0a2705c11filenamehatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIterator.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/d37428dcf5c3aaf1e839b30645d1d8822831efa8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d37428dcf5c3aaf1e839b30645d1d8822831efa8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.java?ref=d37428dcf5c3aaf1e839b30645d1d8822831efa8patchX  @@ -69,24 +69,21 @@ int getBestBatchSize() {
         if (numNotDeleted == 0) {
             // If everything we've seen has been deleted, we should be aggressive about getting more rows.
             batchSize = maxNewBatchSize;
-            if (log.isDebugEnabled()) {
-                log.debug(
-                        "Everything in a batch was deleted!",
-                        SafeArg.of("previousBatchSize", originalBatchSize),
-                        SafeArg.of("newBatchSize", batchSize),
-                        SafeArg.of("numReturned", numReturned));
-            }
+            log.info(
+                    "Recalculating the batch size!",
+                    SafeArg.of("previousBatchSize", originalBatchSize),
+                    SafeArg.of("newBatchSize", batchSize),
+                    SafeArg.of("numReturned", numReturned),
+                    SafeArg.of("numNotDeleted", numNotDeleted));
         } else {
             batchSize = Math.min(
                     (long) Math.ceil(originalBatchSize * (numReturned / (double) numNotDeleted)), maxNewBatchSize);
-            if (log.isDebugEnabled()) {
-                log.debug(
-                        "Recalculating the batch size!",
-                        SafeArg.of("previousBatchSize", originalBatchSize),
-                        SafeArg.of("newBatchSize", batchSize),
-                        SafeArg.of("numReturned", numReturned),
-                        SafeArg.of("numNotDeleted", numNotDeleted));
-            }
+            log.info(
+                    "Recalculating the batch size!",
+                    SafeArg.of("previousBatchSize", originalBatchSize),
+                    SafeArg.of("newBatchSize", batchSize),
+                    SafeArg.of("numReturned", numReturned),
+                    SafeArg.of("numNotDeleted", numNotDeleted));
         }
         return (int) Math.min(batchSize, AtlasDbPerformanceConstants.MAX_BATCH_SIZE);
     }uau(f28a1fb4318c3ec9c03d1ae1c48632d554a83626}(sha(f28a1fb4318c3ec9c03d1ae1c48632d554a83626node_idEC_kwDOAjP5fdoAKGYyOGExZmI0MzE4YzNlYzljMDNkMWFlMWM0ODYzMmQ1NTRhODM2MjYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-05T17:18:05Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-05-05T17:18:05Zumessagethe other sidetree}(j (9c90acb154229342f9af53e8e5f1dac9f72118b8url`https://api.github.com/repos/palantir/atlasdb/git/trees/9c90acb154229342f9af53e8e5f1dac9f72118b8uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f28a1fb4318c3ec9c03d1ae1c48632d554a83626
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRVOk0ACgkQTLdFKain
zjw0nQf9Fma+S9ytk1hMQSBgNr9AfRtErwF2FLn5DOhD6gqwWTV8E1mIAjzcutjk
HGq60y2qYCG551xyHHSLA2aW7F51kqYpUF/I3vTV6HA7xpcTvW7mU6UQxLEsK2z8
ReHn5VS6h0pz5oZbDlicQUV4ZQdDvYC3L5qhKZATp/nTq/lEYBkj4+/aW2A6x8zT
298w/qlDktXEpxkFnEwCFhIrqzOSAwz/yaVMVO3/BfoWDRufhJuui4Ta9iVlg0Cp
1nX+eER3S6bjIqg5aKcVf7SLpdS8MLxGBoXuiBzBDe7MuQKN3b2UmTEXAkOt0VSD
mBlUdlDqxZeUKJp/Gd8oQFLwvYFHkg==
=M2mY
-----END PGP SIGNATURE-----payloadtree 9c90acb154229342f9af53e8e5f1dac9f72118b8
parent a405a2743e47a95a394bf17cb6f54ce7dc44c9dc
author Jeremy Kong <jkong@palantir.com> 1683307085 +0100
committer Jeremy Kong <jkong@palantir.com> 1683307085 +0100

the other side
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/f28a1fb4318c3ec9c03d1ae1c48632d554a83626html_urlShttps://github.com/palantir/atlasdb/commit/f28a1fb4318c3ec9c03d1ae1c48632d554a83626comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f28a1fb4318c3ec9c03d1ae1c48632d554a83626/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj  Userj uparents]}(j (a405a2743e47a95a394bf17cb6f54ce7dc44c9dcj ^https://api.github.com/repos/palantir/atlasdb/commits/a405a2743e47a95a394bf17cb6f54ce7dc44c9dcj Shttps://github.com/palantir/atlasdb/commit/a405a2743e47a95a394bf17cb6f54ce7dc44c9dcuastats}(totalK	additionsK	deletionsK ufiles]}(j (7cd1c34cf31d800e3d13f665c2f83a2f2153b95efilename7lock-api/src/main/java/com/palantir/lock/LockState.javastatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/f28a1fb4318c3ec9c03d1ae1c48632d554a83626/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f28a1fb4318c3ec9c03d1ae1c48632d554a83626/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.java?ref=f28a1fb4318c3ec9c03d1ae1c48632d554a83626patchXD  @@ -16,6 +16,7 @@
 
 package com.palantir.lock;
 
+import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import java.util.List;
@@ -26,8 +27,10 @@
 @JsonSerialize(as = ImmutableLockState.class)
 @JsonDeserialize(as = ImmutableLockState.class)
 public interface LockState {
+    @JsonProperty("isWriteLocked")
     boolean isWriteLocked();
 
+    @JsonProperty("isFrozen")
     boolean isFrozen();
 
     List<LockClient> exactCurrentLockHolders();uau(6623c2c51cfd34c00abf86fc0ced687d2eaf4589}(sha(6623c2c51cfd34c00abf86fc0ced687d2eaf4589node_idEC_kwDOAjP5fdoAKDY2MjNjMmM1MWNmZDM0YzAwYWJmODZmYzBjZWQ2ODdkMmVhZjQ1ODkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T10:57:02Zu	committer}(j9 
Ahmed Alouanej; aalouane@palantir.comj= 2023-05-15T10:57:02Zumessagetrytree}(j1 (a34fe65ceb53d213246bf48965f3f9e661134f02url`https://api.github.com/repos/palantir/atlasdb/git/trees/a34fe65ceb53d213246bf48965f3f9e661134f02ujI bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6623c2c51cfd34c00abf86fc0ced687d2eaf4589
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiD/4ACgkQPlMHVIT1
yho7wwgAjtBwrQJLb98pVVK4XIuq9FYr43MQr0EWkbGADSu7+zuwDgWgd5nPduhO
r2mHfqQOtIEJzMv42W7Pmwoi2VYVddRjbZ+52mYIe4Em72Wf+tTZRtUvI59rcd2q
809VKDWeckqBB+1cKN6XDDZa9+4t7iOR1Uv8FVlIKVBPFBJtukf1efe7Tuz14YyT
JIa91fzmNMwZavqQO8wSExwxc9wNTyeqBnnexammicjDd7OaD7jp1LT48S58CHwW
1UVggdAWG4/xT3wV0R5kesu+t4fNG7xSg52igz8NPRMy+gGfjQq1CU8RtDAbk+Zu
nacY+JXf/Hk8vISDj336RapvU6BXow==
=8D4R
-----END PGP SIGNATURE-----payloadtree a34fe65ceb53d213246bf48965f3f9e661134f02
parent aa7e0b9ea37c14cdf63b62df9ec19d9661fa04b0
author Ahmed Alouane <aalouane@palantir.com> 1684148222 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684148222 +0100

try
uujI ^https://api.github.com/repos/palantir/atlasdb/commits/6623c2c51cfd34c00abf86fc0ced687d2eaf4589html_urlShttps://github.com/palantir/atlasdb/commit/6623c2c51cfd34c00abf86fc0ced687d2eaf4589comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6623c2c51cfd34c00abf86fc0ced687d2eaf4589/commentsj7 }(loginergo14idJj3 MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jI #https://api.github.com/users/ergo14jW https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj? }(j\ ergo14j^ Jj3 MDQ6VXNlcjMwOTAzNzM2j` 4https://avatars.githubusercontent.com/u/30903736?v=4jb h5jI #https://api.github.com/users/ergo14jW https://github.com/ergo14je -https://api.github.com/users/ergo14/followersjg :https://api.github.com/users/ergo14/following{/other_user}ji 3https://api.github.com/users/ergo14/gists{/gist_id}jk :https://api.github.com/users/ergo14/starred{/owner}{/repo}      jm 1https://api.github.com/users/ergo14/subscriptionsjo (https://api.github.com/users/ergo14/orgsjq )https://api.github.com/users/ergo14/reposjs 4https://api.github.com/users/ergo14/events{/privacy}ju 3https://api.github.com/users/ergo14/received_eventsjw Userjy uparents]}(j1 (aa7e0b9ea37c14cdf63b62df9ec19d9661fa04b0jI ^https://api.github.com/repos/palantir/atlasdb/commits/aa7e0b9ea37c14cdf63b62df9ec19d9661fa04b0jW Shttps://github.com/palantir/atlasdb/commit/aa7e0b9ea37c14cdf63b62df9ec19d9661fa04b0uastats}(totalK	additionsK	deletionsKufiles]}(j1 (99989ee7aea97be6bf82494d75cbc04fe79d09a7filename.circleci/config.ymlstatusmodifiedj Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/6623c2c51cfd34c00abf86fc0ced687d2eaf4589/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/6623c2c51cfd34c00abf86fc0ced687d2eaf4589/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=6623c2c51cfd34c00abf86fc0ced687d2eaf4589patchX-  @@ -31,7 +31,7 @@ jobs:
           root: .
           paths: [ . ]
 
-  test:
+  test-suite:
     parameters:
       suite:
         type: integer
@@ -99,6 +99,13 @@ jobs:
       - attach_workspace: { at: . }
       - run: ./gradlew --scan --profile --stacktrace --continue publishToMavenLocal
 
+  # placeholder no-op
+  test:
+    docker: [{ image: 'hub.docker.palantir.build/busybox:1.34.1' }]
+    resource_class: small
+    steps:
+      - run: {command: echo "No op"}
+
   deploy:
     docker:
       - image: cimg/openjdk:11.0.10-node
@@ -138,14 +145,19 @@ workflows:
           filters:
             tags:
               only: /.*/
-      - test:
+      - test-suite:
           requires: [build]
           matrix:
             parameters:
               suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
           filters:
             tags:
               only: /.*/
+      - test:
+          requires: [test-suite]
+          filters:
+            tags:
+              only: /.*/
       - trial-publish:
           requires: [build]
           filters:uau(82898a844ebf109ee0cc31c02886349247e62ba8}(sha(82898a844ebf109ee0cc31c02886349247e62ba8node_idEC_kwDOAjP5fdoAKDgyODk4YTg0NGViZjEwOWVlMGNjMzFjMDI4ODYzNDkyNDdlNjJiYTgcommit}(author}(nameMohammed Daudaliemailmdaudali@palantir.comdate2023-02-28T17:18:07Zu	committer}(j GitHubj noreply@github.comj 2023-02-28T17:18:07ZumessageX
  [PDS-336637, PDS-335142 and friends] Verify a new server list against a previously accepted topology, if one exists, by tracking the origin of new cass servers (#6458)

AtlasDB clients can now recover after receiving a dissenting response to a Cassandra Topology check.tree}(j (d00fa39812601c1461b49cb1a181c4fea93f175eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/d00fa39812601c1461b49cb1a181c4fea93f175euj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/82898a844ebf109ee0cc31c02886349247e62ba8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJj/jdPCRBK7hj4Ov3rIwAAw4EIAGnJO8OzhOu57uexpIBwXgoF
UfqJ71WgMnxLexVHtpzerBs7yVzdb2z1H1DaMJzoK30GDRB1lvQTiN4c0KlTGcff
A2tbUTRVBXFRbw5+95MBZ7VBnMW1TjHjB2pCJ8oFrMsPEHIxljQS6xakcNymoBRf
s6eP3j6i0JegERRPlIZEnvBT9YHklDDZI6Us5/rt7xxDT6W32rfhD7RJ0BhgyU77
Xkr6cHITL+ym4UEqj3sPEWuCwnBPc1hluRRcWxmBXzkIfbKAFF9Ma/KssSCeaaVb
1o5F93+Iq159NlqE+IZH5fKmTvp7ARLVyY0ZoWyKz+S6+FUyQqS0PsDgSq+M8+I=
=cnw/
-----END PGP SIGNATURE-----
payloadX  tree d00fa39812601c1461b49cb1a181c4fea93f175e
parent 4c44509aa6f6c9757f42402cf9a176c4a722cb49
author Mohammed Daudali <mdaudali@palantir.com> 1677604687 +0000
committer GitHub <noreply@github.com> 1677604687 +0000

[PDS-336637, PDS-335142 and friends] Verify a new server list against a previously accepted topology, if one exists, by tracking the origin of new cass servers (#6458)

AtlasDB clients can now recover after receiving a dissenting response to a Cassandra Topology check.
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/82898a844ebf109ee0cc31c02886349247e62ba8html_urlShttps://github.com/palantir/atlasdb/commit/82898a844ebf109ee0cc31c02886349247e62ba8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/82898a844ebf109ee0cc31c02886349247e62ba8/commentsj }(loginmdaudaliidJ j MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5j %https://api.github.com/users/mdaudalij https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j (4c44509aa6f6c9757f42402cf9a176c4a722cb49j ^https://api.github.com/repos/palantir/atlasdb/commits/4c44509aa6f6c9757f42402cf9a176c4a722cb49j Shttps://github.com/palantir/atlasdb/commit/4c44509aa6f6c9757f42402cf9a176c4a722cb49uastats}(totalM	additionsMz	deletionsK\ufiles](}(j (1fa864867f27a9845ae246ee67ceca75bed1e629filename.palantir/revapi.ymlstatusmodifiedj
 Kj K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/82898a844ebf109ee0cc31c02886349247e62ba8/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/82898a844ebf109ee0cc31c02886349247e62ba8/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=82898a844ebf109ee0cc31c02886349247e62ba8patchXx  @@ -69,3 +69,29 @@ acceptedBreaks:
         \ com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig, com.palantir.refreshable.Refreshable<com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig>,\
         \ com.palantir.atlasdb.keyvalue.cassandra.Blacklist, com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraClientPoolMetrics)"
       justification: "Removing unused ABR code"
+  "0.801.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter java.util.Set<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraTopologyValidator::getNewHostsWithInconsistentTopologiesAndRetry(===java.util.Set<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>===,\
+        \ java.util.Map<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer>,\
+        \ java.time.Duration, java.time.Duration)"
+      new: "parameter java.util.Set<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraTopologyValidator::getNewHostsWithInconsistentTopologiesAndRetry(===java.util.Map<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin>===, java.util.Map<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer>,\
+        \ java.time.Duration, java.time.Duration)"
+      justification: "Internal Cassandra KVS APIs"
+    - code: "java.method.returnTypeChanged"
+      old: "method com.google.common.collect.ImmutableSet<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>\
+        \ com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::getCurrentServerListFromConfig()"
+      new: "method com.google.common.collect.ImmutableMap<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin> com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::getCurrentServerListFromConfig()"
+      justification: "Internal Cassandra KVS APIs"
+    - code: "java.method.returnTypeChanged"
+      old: "method com.google.common.collect.ImmutableSet<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>\
+        \ com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::refreshTokenRangesAndGetServers()"
+      new: "method com.google.common.collect.ImmutableMap<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin> com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::refreshTokenRangesAndGetServers()"
+      justification: "Internal Cassandra KVS APIs"u}(j (45ab8df8c5897569a9513ef70c6303ec9283a96bj datlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javaj modifiedj
 Kj Kj Kj https://github.com/palantir/atlasdb/blob/82898a844ebf109ee0cc31c02886349247e62ba8/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaj https://github.com/palantir/atlasdb/raw/82898a844ebf109ee0cc31c02886349247e62ba8/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=82898a844ebf109ee0cc31c02886349247e62ba8j Xk  @@ -48,6 +48,7 @@
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.concurrent.ScheduledFuture;
 import java.util.concurrent.TimeUnit;
+import one.util.streamex.EntryStream;
 
 /**
  * Feature breakdown:
@@ -339,10 +340,12 @@ private synchronized void refreshPool() {
     }
 
     @VisibleForTesting
-    void setServersInPoolTo(ImmutableSet<CassandraServer> desiredServers) {
+    void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> desiredServers) {
         Set<CassandraServer> currentServers = getCachedServers();
-        SetView<CassandraServer> serversToAdd = Sets.difference(desiredServers, currentServers);
-        SetView<CassandraServer> absentServers = Sets.difference(currentServers, desiredServers);
+        Map<CassandraServer, CassandraServerOrigin> serversToAdd = EntryStream.of(desiredServers)
+                .removeKeys(currentServers::contains)
+                .toImmutableMap();
+        SetView<CassandraServer> absentServers = Sets.difference(currentServers, desiredServers.keySet());
 
         absentServers.forEach(cassandraServer -> {
             CassandraClientPoolingContainer container = cassandra.removePool(cassandraServer);
@@ -364,7 +367,7 @@ void setServersInPoolTo(ImmutableSet<CassandraServer> desiredServers) {
                     + " cluster topology, and the client cannot connect as there are no valid hosts. This state should"
                     + " be transient (<5 minutes), and if it is not, indicates that the user may have accidentally"
                     + " configured AltasDB to use two separate Cassandra clusters (i.e., user-led split brain).",
-                SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd)));
+                SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())));
 
         logRefreshedHosts(validatedServersToAdd, serversToShutdown, absentServers);
     }
@@ -380,13 +383,13 @@ void setServersInPoolTo(ImmutableSet<CassandraServer> desiredServers) {
     @VisibleForTesting
     Set<CassandraServer> validateNewHostsTopologiesAndMaybeAddToPool(
             Map<CassandraServer, CassandraClientPoolingContainer> currentContainers,
-            Set<CassandraServer> serversToAdd) {
+            Map<CassandraServer, CassandraServerOrigin> serversToAdd) {
         if (serversToAdd.isEmpty()) {
             return Set.of();
         }
-
+        Set<CassandraServer> serversToAddWithoutOrigin = serversToAdd.keySet();
         Map<CassandraServer, CassandraClientPoolingContainer> serversToAddContainers =
-                getContainerForNewServers(serversToAdd);
+                getContainerForNewServers(serversToAddWithoutOrigin);
 
         Preconditions.checkArgument(
                 Sets.intersection(currentContainers.keySet(), serversToAddContainers.keySet())
@@ -408,7 +411,8 @@ Set<CassandraServer> validateNewHostsTopologiesAndMaybeAddToPool(
                 cassandraTopologyValidator.getNewHostsWithInconsistentTopologiesAndRetry(
                         serversToAdd, allContainers, Duration.ofSeconds(5), Duration.ofMinutes(1));
 
-        Set<CassandraServer> validatedServersToAdd = Sets.difference(serversToAdd, newHostsWithDifferingTopology);
+        Set<CassandraServer> validatedServersToAdd =
+                Sets.difference(serversToAddWithoutOrigin, newHostsWithDifferingTopology);
         validatedServersToAdd.forEach(server -> cassandra.addPool(server, serversToAddContainers.get(server)));
         newHostsWithDifferingTopology.forEach(
                 server -> absentHostTracker.trackAbsentCassandraServer(server, serversToAddContainers.get(server)));u}(j (529a212f012bb0c4e5ee817aef0a48154babf697j batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraServerOrigin.javaj addedj
 K&j K j K&j https://github.com/palantir/atlasdb/blob/82898a844ebf109ee0cc31c02886349247e62ba8/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.javaj https://github.com/palantir/atlasdb/raw/82898a844ebf109ee0cc31c02886349247e62ba8/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.java?ref=82898a844ebf109ee0cc31c02886349247e62ba8j X  @@ -0,0 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import com.google.common.collect.ImmutableMap;
+import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
+import java.util.Set;
+import java.util.function.Function;
+import java.util.stream.Stream;
+
+public enum CassandraServerOrigin {
+    CONFIG,
+    LAST_KNOWN,
+    TOKEN_RANGE;
+
+    public static ImmutableMap<CassandraServer, CassandraServerOrigin> mapAllServersToOrigin(
+            Set<CassandraServer> servers, CassandraServerOrigin origin) {
+        return mapAllServersToOrigin(servers.stream(), origin);
+    }
+
+    public static ImmutableMap<CassandraServer, CassandraServerOrigin> mapAllServersToOrigin(
+            Stream<CassandraServer> servers, CassandraServerOrigin origin) {
+        return servers.collect(ImmutableMap.toImmutableMap(Function.identity(), _v -> origin));
+    }
+}u}(j (10dccf74f3186a2c4a4b523a206c95ccef82b213j gatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraTopologyValidator.javaj modifiedj
 K5j K!j KVj https://github.com/palantir/atlasdb/blob/82898a844ebf109ee0cc31c02886349247e62ba8/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.javaj https://github.com/palantir/atlasdb/raw/82898a844ebf109ee0cc31c02886349247e62ba8/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.java?ref=82898a844ebf109ee0cc31c02886349247e62ba8j X?)  @@ -98,7 +98,7 @@ public CassandraTopologyValidator(CassandraTopologyValidationMetrics metrics) {
      * the get_host_ids endpoint will never be returned here.
      */
     public Set<CassandraServer> getNewHostsWithInconsistentTopologiesAndRetry(
-            Set<CassandraServer> newlyAddedHosts,
+            Map<CassandraServer, CassandraServerOrigin> newlyAddedHosts,
             Map<CassandraServer, CassandraClientPoolingContainer> allHosts,
             Duration waitTimeBetweenCalls,
             Duration maxWaitTime) {
@@ -128,55 +128,75 @@ public Set<CassandraServer> getNewHostsWithInconsistentTopologiesAndRetry(
 
     @VisibleForTesting
     Set<CassandraServer> getNewHostsWithInconsistentTopologies(
-            Set<CassandraServer> newlyAddedHosts, Map<CassandraServer, CassandraClientPoolingContainer> allHosts) {
+            Map<CassandraServer, CassandraServerOrigin> newlyAddedHosts,
+            Map<CassandraServer, CassandraClientPoolingContainer> allHosts) {
 
+        Set<CassandraServer> newlyAddedHostsWithoutOrigin = newlyAddedHosts.keySet();
         if (newlyAddedHosts.isEmpty()) {
-            return newlyAddedHosts;
+            return newlyAddedHostsWithoutOrigin;
         }
 
         Preconditions.checkArgument(
-                allHosts.keySet().containsAll(newlyAddedHosts),
+                allHosts.keySet().containsAll(newlyAddedHostsWithoutOrigin),
                 "Newly added hosts must be a subset of all hosts, as otherwise we have no way to query them.",
-                SafeArg.of("newlyAddedHosts", CassandraLogHelper.collectionOfHosts(newlyAddedHosts)),
+                SafeArg.of("newlyAddedHosts", CassandraLogHelper.collectionOfHosts(newlyAddedHostsWithoutOrigin)),
                 SafeArg.of("allHosts", CassandraLogHelper.collectionOfHosts(allHosts.keySet())));
 
         Map<CassandraServer, HostIdResult> hostIdsByServerWithoutSoftFailures =
                 fetchHostIdsIgnoringSoftFailures(allHosts);
 
         Map<CassandraServer, HostIdResult> currentServersWithoutSoftFailures = EntryStream.of(
                         hostIdsByServerWithoutSoftFailures)
-                .removeKeys(newlyAddedHosts::contains)
+                .removeKeys(newlyAddedHosts::containsKey)
                 .toMap();
         Map<CassandraServer, HostIdResult> newServersWithoutSoftFailures = EntryStream.of(
                         hostIdsByServerWithoutSoftFailures)
-                .filterKeys(newlyAddedHosts::contains)
+                .filterKeys(newlyAddedHosts::containsKey)
                 .toMap();
 
         // This means currently we've no servers or no server without the get_host_ids endpoint.
         // Therefore, we need to come to a consensus on the new servers.
         if (currentServersWithoutSoftFailures.isEmpty()) {
-            Optional<ConsistentClusterTopology> maybeTopology = maybeGetConsistentClusterTopology(
-                            newServersWithoutSoftFailures)
-                    .agreedTopology();
-            maybeTopology.ifPresent(pastConsistentTopology::set);
-
-            return maybeTopology
-                    .<Set<CassandraServer>>map(topology ->
-                            Sets.difference(newServersWithoutSoftFailures.keySet(), topology.serversInConsensus()))
-                    .orElseGet(newServersWithoutSoftFailures::keySet);
+            ClusterTopologyResult topologyResultFromNewServers =
+                    maybeGetConsistentClusterTopology(newServersWithoutSoftFailures);
+            Map<CassandraServer, HostIdResult> newServersFromConfig = EntryStream.of(newServersWithoutSoftFailures)
+                    .filterKeys(server -> newlyAddedHosts.get(server) == CassandraServerOrigin.CONFIG)
+                    .toMap();
+            return getNewHostsWithInconsistentTopologiesFromTopologyResult(
+                    topologyResultFromNewServers,
+                    newServersWithoutSoftFailures,
+                    newServersFromConfig,
+                    newlyAddedHostsWithoutOrigin,
+                    allHosts.keySet());
         }
 
         // If a consensus can be reached from the current servers, filter all new servers which have the same set of
-        // host ids. Accept dissent as such, but permit
+        // host ids. Accept dissent as such, but permit new servers if they are in quorum _and_ match the previously
+        // accepted set of host IDs
         ClusterTopologyResult topologyFromCurrentServers =
                 maybeGetConsistentClusterTopology(currentServersWithoutSoftFailures);
-        switch (topologyFromCurrentServers.type()) {
+
+        return getNewHostsWithInconsistentTopologiesFromTopologyResult(
+                topologyFromCurrentServers,
+                newServersWithoutSoftFailures,
+                newServersWithoutSoftFailures,
+                newlyAddedHosts.keySet(),
+                allHosts.keySet());
+    }
+
+    private Set<CassandraServer> getNewHostsWithInconsistentTopologiesFromTopologyResult(
+            ClusterTopologyResult topologyResult,
+            Map<CassandraServer, HostIdResult> newServersWithoutSoftFailures,
+            Map<CassandraServer, HostIdResult> serversToConsiderWhenNoQuorumPresent,
+            Set<CassandraServer> newlyAddedHosts,
+            Set<CassandraServer> allHosts) {
+        switch (topologyResult.type()) {
             case CONSENSUS:
                 Preconditions.checkState(
-                        topologyFromCurrentServers.agreedTopology().isPresent(),
+                        topologyResult.agreedTopology().isPresent(),
                         "Expected to have a consistent topology for a CONSENSUS result, but did not.");
                 ConsistentClusterTopology topology =
-                        topologyFromCurrentServers.agreedTopology().get();
+                        topologyResult.agreedTopology().get();
                 pastConsistentTopology.set(topology);
                 return EntryStream.of(newServersWithoutSoftFailures)
                         .removeValues(result -> result.type() == HostIdResult.Type.SUCCESS
@@ -196,43 +216,43 @@ Set<CassandraServer> getNewHostsWithInconsistentTopologies(
                     return newServersWithoutSoftFailures.keySet();
                 }
                 Optional<ConsistentClusterTopology> maybeTopology = maybeGetConsistentClusterTopology(
-                                newServersWithoutSoftFailures)
+                                serversToConsiderWhenNoQuorumPresent)
                         .agreedTopology();
                 if (maybeTopology.isEmpty()) {
                     log.info(
-                            "No quorum was detected among old servers, and new servers were also not in"
-                                    + " agreement. Not adding new servers in this case.",
+                            "No quorum was detected in original set of servers, and the filtered set of servers were"
+                                    + " also not in agreement. Not adding new servers in this case.",
                             SafeArg.of("newServers", CassandraLogHelper.collectionOfHosts(newlyAddedHosts)),
-                            SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts.keySet())));
+                            SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts)));
                     return newServersWithoutSoftFailures.keySet();
                 }
                 ConsistentClusterTopology newNodesAgreedTopology = maybeTopology.get();
                 if (!newNodesAgreedTopology
                         .hostIds()
                         .equals(pastConsistentTopology.get().hostIds())) {
                     log.info(
-                            "No quorum was detected among old servers. While new servers could reach a consensus, this"
-                                + " differed from the last agreed value among the old servers. Not adding new servers"
-                                + " in this case.",
+                            "No quorum was detected among the original set of servers. While a filtered set of"
+                                    + " servers could reach a consensus, this differed from the last agreed value"
+                                    + " among the old servers. Not adding new servers in this case.",
                             SafeArg.of("pastConsistentTopology", pastConsistentTopology.get()),
                             SafeArg.of("newNodesAgreedTopology", newNodesAgreedTopology),
                             SafeArg.of("newServers", CassandraLogHelper.collectionOfHosts(newlyAddedHosts)),
-                            SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts.keySet())));
+                            SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts)));
                     return newServersWithoutSoftFailures.keySet();
                 }
                 log.info(
-                        "No quorum was detected among old servers. New servers reached a consensus that matched the"
-                            + " last agreed value among the old servers. Adding new servers that were in consensus.",
+                        "No quorum was detected among the original set of servers. A filtered set of servers reached"
+                                + " a consensus that matched the last agreed value among the old servers. Adding new"
+                                + " servers that were in consensus.",
                         SafeArg.of("pastConsistentTopology", pastConsistentTopology.get()),
                         SafeArg.of("newNodesAgreedTopology", newNodesAgreedTopology),
                         SafeArg.of("newServers", CassandraLogHelper.collectionOfHosts(newlyAddedHosts)),
-                        SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts.keySet())));
+                        SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts)));
                 return Sets.difference(
                         newServersWithoutSoftFailures.keySet(), newNodesAgreedTopology.serversInConsensus());
             default:
                 throw new SafeIllegalStateException(
-                        "Unexpected cluster topology result type",
-                        SafeArg.of("type", topologyFromCurrentServers.type()));
+                        "Unexpected cluster topology result type", SafeArg.of("type", topologyResult.type()));
         }
     }
 u}(j (598882b9fb28577aec86b5619095c1c581ec3a79j batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaj modifiedj
 Kj Kj K$j https://github.com/palantir/atlasdb/blob/82898a844ebf109ee0cc31c02886349247e62ba8/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj https://github.com/palantir/atlasdb/raw/82898a844ebf109ee0cc31c02886349247e62ba8/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=82898a844ebf109ee0cc31c02886349247e62ba8j Xx  @@ -36,6 +36,7 @@
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClient;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraLogHelper;
+import com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraUtils;
 import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
 import com.palantir.atlasdb.util.MetricsManager;
@@ -122,7 +123,7 @@ public CassandraService(
     @Override
     public void close() {}
 
-    public ImmutableSet<CassandraServer> refreshTokenRangesAndGetServers() {
+    public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAndGetServers() {
         // explicitly not using immutable builders to deduplicate nodes
         Set<CassandraServer> servers = new HashSet<>();
         Map<CassandraServer, String> hostToDatacentersThisRefresh = new HashMap<>();
@@ -173,7 +174,7 @@ public ImmutableSet<CassandraServer> refreshTokenRangesAndGetServers() {
             tokenMap = tokensInterner.intern(newTokenRing.build());
             hostToDatacenter = ImmutableMap.copyOf(hostToDatacentersThisRefresh);
             logHostToDatacenterMapping(hostToDatacenter);
-            return ImmutableSet.copyOf(servers);
+            return CassandraServerOrigin.mapAllServersToOrigin(servers, CassandraServerOrigin.TOKEN_RANGE);
         } catch (Exception e) {
             log.info(
                     "Couldn't grab new token ranges for token aware cassandra mapping. We will retry in {} seconds.",
@@ -182,24 +183,30 @@ public ImmutableSet<CassandraServer> refreshTokenRangesAndGetServers() {
 
             // Attempt to re-resolve addresses from the configuration; this is important owing to certain race
             // conditions where the entire pool becomes invalid between refreshes.
-            ImmutableSet<CassandraServer> resolvedConfigAddresses = getCurrentServerListFromConfig();
-
-            ImmutableSet<CassandraServer> lastKnownAddresses = tokenMap.asMapOfRanges().values().stream()
-                    .flatMap(Collection::stream)
-                    .collect(ImmutableSet.toImmutableSet());
-
-            return Sets.union(resolvedConfigAddresses, lastKnownAddresses).immutableCopy();
+            ImmutableMap<CassandraServer, CassandraServerOrigin> resolvedConfigAddresses =
+                    getCurrentServerListFromConfig();
+
+            ImmutableMap<CassandraServer, CassandraServerOrigin> lastKnownAddresses =
+                    CassandraServerOrigin.mapAllServersToOrigin(
+                            tokenMap.asMapOfRanges().values().stream().flatMap(Collection::stream),
+                            CassandraServerOrigin.LAST_KNOWN);
+
+            return ImmutableMap.<CassandraServer, CassandraServerOrigin>builder()
+                    .putAll(lastKnownAddresses)
+                    .putAll(resolvedConfigAddresses)
+                    .buildKeepingLast();
         }
     }
 
     /**
      * It is expected that config provides list of servers that are directly reachable and do not require special IP
      * resolution.
      * */
-    public ImmutableSet<CassandraServer> getCurrentServerListFromConfig() {
-        return getServersSocketAddressesFromConfig().stream()
-                .map(cassandraHost -> CassandraServer.of(cassandraHost.getHostString(), cassandraHost))
-                .collect(ImmutableSet.toImmutableSet());
+    public ImmutableMap<CassandraServer, CassandraServerOrigin> getCurrentServerListFromConfig() {
+        return CassandraServerOrigin.mapAllServersToOrigin(
+                getServersSocketAddressesFromConfig().stream()
+                        .map(cassandraHost -> CassandraServer.of(cassandraHost.getHostString(), cassandraHost)),
+                CassandraServerOrigin.CONFIG);
     }
 
     private ImmutableSet<InetSocketAddress> getServersSocketAddressesFromConfig() {
@@ -502,7 +509,8 @@ public CassandraClientPoolingContainer removePool(CassandraServer removedServerA
     }
 
     public void cacheInitialCassandraHosts() {
-        ImmutableSet<CassandraServer> thriftSocket = getCurrentServerListFromConfig();
+        ImmutableSet<CassandraServer> thriftSocket =
+                getCurrentServerListFromConfig().keySet();
 
         cassandraHosts = thriftSocket.stream()
                 .sorted(Comparator.comparing(CassandraServer::cassandraHostName))u}(j (81558f1f4edc8bff964c4e8ca571ba37e5f3d881j datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolTest.javaj modifiedj
 Kj Kj Kj https://github.com/palantir/atlasdb/blob/82898a844ebf109ee0cc31c02886349247e62ba8/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaj https://github.com/palantir/atlasdb/raw/82898a844ebf109ee0cc31c02886349247e62ba8/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.java?ref=82898a844ebf109ee0cc31c02886349247e62ba8j X
  @@ -448,14 +448,15 @@ public void throwsWhenTryingToAddServerPresentInCurrentServers() {
         setCassandraServersTo(CASS_SERVER_1, CASS_SERVER_2);
 
         CassandraClientPoolImpl pool = createClientPool();
-        Set<CassandraServer> serversToAdd = Set.of(CASS_SERVER_1);
+        ImmutableMap<CassandraServer, CassandraServerOrigin> serversToAdd =
+                ImmutableMap.of(CASS_SERVER_1, CassandraServerOrigin.TOKEN_RANGE);
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2);
         assertThatLoggableExceptionThrownBy(
                         () -> pool.validateNewHostsTopologiesAndMaybeAddToPool(poolServers, serversToAdd))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("The current pool of servers should not have any server(s) that are being added.")
                 .hasExactlyArgs(
-                        SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd)),
+                        SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())),
                         SafeArg.of("currentServers", CassandraLogHelper.collectionOfHosts(poolServers.keySet())));
     }
 
@@ -470,9 +471,9 @@ public void shutsDownHostsBeyondAbsenceTolerance() {
         CassandraClientPoolingContainer container1 = currentPoolSnapshot.get(CASS_SERVER_1);
         verifyNoInteractions(container1);
 
-        cassandraClientPool.setServersInPoolTo(ImmutableSet.of(CASS_SERVER_3));
+        cassandraClientPool.setServersInPoolTo(ImmutableMap.of(CASS_SERVER_3, CassandraServerOrigin.TOKEN_RANGE));
         // The refresh will mark absence of host1 beyond limit of tolerance
-        cassandraClientPool.setServersInPoolTo(ImmutableSet.of(CASS_SERVER_3));
+        cassandraClientPool.setServersInPoolTo(ImmutableMap.of(CASS_SERVER_3, CassandraServerOrigin.TOKEN_RANGE));
         assertThat(cassandraClientPool.getCurrentPools()).containsOnlyKeys(CASS_SERVER_3);
         verify(container1).shutdownPooling();
     }
@@ -487,7 +488,9 @@ private CassandraClientPoolingContainer getCassandraContainerFromInvocation(Invo
 
     private void setCassandraServersTo(CassandraServer... servers) {
         when(cassandra.refreshTokenRangesAndGetServers())
-                .thenReturn(Arrays.stream(servers).collect(ImmutableSet.toImmutableSet()));
+                .thenReturn(Arrays.stream(servers)
+                        .collect(ImmutableMap.toImmutableMap(
+                                Function.identity(), _v -> CassandraServerOrigin.TOKEN_RANGE)));
     }
 
     private CassandraClientPoolImpl createClientPool() {
@@ -665,9 +668,10 @@ private void setupThriftServers(Set<InetSocketAddress> servers) {
                 ImmutableDefaultConfig.builder().addAllThriftHosts(servers).build();
         when(runtimeConfig.servers()).thenReturn(config);
         when(cassandra.getCurrentServerListFromConfig())
-                .thenReturn(config.accept(CassandraServersConfigs.ThriftHostsExtractingVisitor.INSTANCE).stream()
-                        .map(CassandraServer::of)
-                        .collect(ImmutableSet.toImmutableSet()));
+                .thenReturn(CassandraServerOrigin.mapAllServersToOrigin(
+                        config.accept(CassandraServersConfigs.ThriftHostsExtractingVisitor.INSTANCE).stream()
+                                .map(CassandraServer::of),
+                        CassandraServerOrigin.CONFIG));
     }
 
     private void setupHostsWithConsistentTopology() {u}(j (31453f3bbd51a1ece47c7af0cac06bdc2495a69dj katlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraTopologyValidatorTest.javaj modifiedj
 Kj Kj Kj https://github.com/palantir/atlasdb/blob/82898a844ebf109ee0cc31c02886349247e62ba8/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.javaj https://github.com/palantir/atlasdb/raw/82898a844ebf109ee0cc31c02886349247e62ba8/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.java?ref=82898a844ebf109ee0cc31c02886349247e62ba8j X5b  @@ -81,7 +81,10 @@ public void retriesUntilNoNewHostsReturned() {
                         HostIdResult.success(Set.of(uuidIterator.next())),
                         HostIdResult.success(UUIDS)));
         assertThat(validator.getNewHostsWithInconsistentTopologiesAndRetry(
-                        allHosts.keySet(), allHosts, Duration.ofMillis(1), Duration.ofSeconds(20)))
+                        mapToTokenRangeOrigin(allHosts.keySet()),
+                        allHosts,
+                        Duration.ofMillis(1),
+                        Duration.ofSeconds(20)))
                 .isEmpty();
     }
 
@@ -93,7 +96,7 @@ public void retriesMarksFailureWhenNeverResolves() {
                 .values()
                 .forEach(container -> setHostIds(Set.of(container), HostIdResult.success(Set.of(uuidIterator.next()))));
         assertThat(validator.getNewHostsWithInconsistentTopologiesAndRetry(
-                        allHosts.keySet(), allHosts, Duration.ofMillis(1), Duration.ofMillis(1)))
+                        mapToTokenRangeOrigin(allHosts.keySet()), allHosts, Duration.ofMillis(1), Duration.ofMillis(1)))
                 .isNotEmpty();
         assertThat(metrics.validationFailures().getCount()).isEqualTo(1);
         assertThat(metrics.validationLatency().getCount()).isEqualTo(1);
@@ -104,7 +107,10 @@ public void retriesAndReturnsFailingHosts() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(NEW_HOSTS);
         doReturn(allHosts.keySet()).when(validator).getNewHostsWithInconsistentTopologies(any(), any());
         assertThat(validator.getNewHostsWithInconsistentTopologiesAndRetry(
-                        allHosts.keySet(), setupHosts(NEW_HOSTS), Duration.ofMillis(1), Duration.ofMillis(1)))
+                        mapToTokenRangeOrigin(allHosts.keySet()),
+                        setupHosts(NEW_HOSTS),
+                        Duration.ofMillis(1),
+                        Duration.ofMillis(1)))
                 .containsExactlyInAnyOrderElementsOf(allHosts.keySet());
     }
 
@@ -114,29 +120,32 @@ public void retriesAtLeastTwoTimes() {
         doReturn(allHosts.keySet()).when(validator).getNewHostsWithInconsistentTopologies(any(), any());
         when(validator.getNewHostsWithInconsistentTopologies(any(), any())).thenReturn(allHosts.keySet());
         assertThat(validator.getNewHostsWithInconsistentTopologiesAndRetry(
-                        allHosts.keySet(), setupHosts(NEW_HOSTS), Duration.ofMillis(1), Duration.ofMillis(1)))
+                        mapToTokenRangeOrigin(allHosts.keySet()),
+                        setupHosts(NEW_HOSTS),
+                        Duration.ofMillis(1),
+                        Duration.ofMillis(1)))
                 .isNotEmpty();
         verify(validator, atLeast(2)).getNewHostsWithInconsistentTopologies(any(), any());
     }
 
     @Test
     public void returnsEmptyWhenGivenNoServers() {
-        assertThat(validator.getNewHostsWithInconsistentTopologies(ImmutableSet.of(), ImmutableMap.of()))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(ImmutableMap.of(), ImmutableMap.of()))
                 .isEmpty();
     }
 
     @Test
     public void throwsWhenAllHostsDoesNotContainNewHosts() {
         assertThatThrownBy(() -> validator.getNewHostsWithInconsistentTopologies(
-                        ImmutableSet.of(createCassandraServer("foo")), ImmutableMap.of()))
+                        mapToTokenRangeOrigin(ImmutableSet.of(createCassandraServer("foo"))), ImmutableMap.of()))
                 .isInstanceOf(SafeIllegalArgumentException.class);
     }
 
     @Test
     public void returnsEmptyWhenOnlyNewServersAndAllHaveSameHostIds() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(NEW_HOSTS);
         setHostIds(allHosts.values(), DEFAULT_RESULT);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .isEmpty();
     }
 
@@ -149,7 +158,7 @@ public void returnsNewHostsWhenOnlyNewServersAndOneMismatch() {
         setHostIds(
                 filterContainers(allHosts, NEW_HOST_ONE::equals),
                 HostIdResult.success(ImmutableSet.of("uuid3", "uuid2")));
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .containsExactlyElementsOf(allHosts.keySet());
     }
 
@@ -163,7 +172,7 @@ public void returnsNewHostsWhenNewServersMismatchOldServers() {
         setHostIds(
                 filterContainers(allHosts, OLD_HOSTS::contains),
                 HostIdResult.success(ImmutableSet.of("uuid3", "uuid2")));
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newServers, allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(newServers), allHosts))
                 .containsExactlyElementsOf(newServers);
     }
 
@@ -175,15 +184,15 @@ public void validateNewlyAddedHostsReturnsOnlyMismatchingNewHosts() {
         setHostIds(filterContainers(allHosts, badHostFilter), HostIdResult.success(ImmutableSet.of("uuid3", "uuid2")));
         Set<CassandraServer> newServers = filterServers(allHosts, NEW_HOSTS::contains);
         Set<CassandraServer> badNewHosts = filterServers(allHosts, badHostFilter);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newServers, allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(newServers), allHosts))
                 .containsExactlyElementsOf(badNewHosts);
     }
 
     @Test
     public void validateNewlyAddedHostsAddsAllHostsIfNoHostHasEndpoint() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(NEW_HOSTS);
         setHostIds(allHosts.values(), HostIdResult.softFailure());
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .isEmpty();
     }
 
@@ -194,7 +203,7 @@ public void validateNewlyAddedHostsAddsAllHostsIfOneHostHasEndpoint() {
         setHostIds(
                 filterContainers(allHosts, server -> !hostWithEndpoint.contains(server)), HostIdResult.softFailure());
         setHostIds(filterContainers(allHosts, hostWithEndpoint::contains), DEFAULT_RESULT);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .isEmpty();
     }
 
@@ -206,7 +215,7 @@ public void validateNewlyAddedHostsAddsAllHostsIfEndpointExistingHostIdsMatch()
                 filterContainers(allHosts, server -> !hostsWithEndpoints.contains(server)), HostIdResult.softFailure());
         setHostIds(filterContainers(allHosts, hostsWithEndpoints::contains), DEFAULT_RESULT);
         assertThat(validator.getNewHostsWithInconsistentTopologies(
-                        filterServers(allHosts, NEW_HOSTS::contains), allHosts))
+                        mapToTokenRangeOrigin(filterServers(allHosts, NEW_HOSTS::contains)), allHosts))
                 .isEmpty();
     }
 
@@ -219,42 +228,44 @@ public void validateNewlyAddedHostsReturnsNewHostsUnlessEndpointExistAndDoesMatc
         setHostIds(filterContainers(allHosts, NEW_HOST_ONE::equals), HostIdResult.success(Set.of("uuid")));
         setHostIds(filterContainers(allHosts, OLD_HOST_ONE::equals), DEFAULT_RESULT);
         assertThat(validator.getNewHostsWithInconsistentTopologies(
-                        filterServers(allHosts, NEW_HOSTS::contains), allHosts))
+                        mapToTokenRangeOrigin(filterServers(allHosts, NEW_HOSTS::contains)), allHosts))
                 .containsExactlyElementsOf(filterServers(allHosts, NEW_HOST_ONE::equals));
     }
 
     @Test
-    public void validateNewlyAddedHostsNoNewHostsAddedIfOldHostsDoNotHaveQuorum() {
+    public void validateNewlyAddedHostsNoNewHostsAddedIfOldHostsDoNotHaveQuorumAndNoPreviousResultExists() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
         Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
         Set<String> hostsOffline = ImmutableSet.of(OLD_HOST_ONE, OLD_HOST_TWO);
         setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
         setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newCassandraServers, allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
                 .as("no new hosts added if old hosts do not have quorum")
                 .containsExactlyElementsOf(newCassandraServers);
     }
 
     @Test
     public void validateNewlyAddedHostsNewHostsAddedIfTheyAgreeWithOldHostsOnPreviousTopology() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
-        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts = EntryStream.of(allHosts)
-                .filterKeys(key -> OLD_HOSTS.contains(key.cassandraHostName()))
-                .toMap();
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
         Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
         Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
         Set<String> hostsOffline = ImmutableSet.of(OLD_HOST_ONE);
         setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
         setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
 
-        validator.getNewHostsWithInconsistentTopologies(oldCassandraServers, oldHosts);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newCassandraServers, allHosts))
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
                 .as("accepts quorum from new hosts if they have the same host IDs")
                 .isEmpty();
     }
 
     @Test
-    public void validateNewlyAddedHostsNewHostsNotAddedIfTheyDisagreeWithOldHostsOnPreviousTopology() {
+    public void
+            validateNewlyAddedHostsNewHostsNotAddedIfTheyDisagreeWithOldHostsOnPreviousTopologyAndCurrentServersExist() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
         Map<CassandraServer, CassandraClientPoolingContainer> oldHosts = EntryStream.of(allHosts)
                 .filterKeys(key -> OLD_HOSTS.contains(key.cassandraHostName()))
@@ -272,12 +283,165 @@ public void validateNewlyAddedHostsNewHostsNotAddedIfTheyDisagreeWithOldHostsOnP
                 filterContainers(oldHosts, Predicate.not(hostsOffline::contains)),
                 HostIdResult.success(DIFFERENT_UUIDS));
 
-        validator.getNewHostsWithInconsistentTopologies(oldCassandraServers, oldHosts);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newCassandraServers, allHosts))
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
                 .as("does not accept quorum from new hosts if they have different host IDs")
                 .containsExactlyElementsOf(newCassandraServers);
     }
 
+    @Test
+    public void returnsAllNewHostsIfNoConsensusOnNewHostsWhenNoQuorumAndCurrentServersExist() {
+        Iterator<String> uuidIterator = UUIDS.iterator();
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        filterContainers(allHosts, server -> !hostsOffline.contains(server))
+                .forEach(container ->
+                        setHostIds(ImmutableSet.of(container), HostIdResult.success(Set.of(uuidIterator.next()))));
+
+        // This is _not_ supposed to be the standard quorum calculation ((n / 2) + 1), but instead the amount of
+        // hosts that need to be offline to _prevent_ quorum
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
+                .as("rejects all servers when no quorum from all hosts and no quorum on new hosts")
+                .isEqualTo(newCassandraServers);
+    }
+
+    @Test
+    public void returnsAllNewHostsIfConsensusOnNewHostsDiffersFromPreviousWhenNoQuorumAndCurrentServersExist() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        setHostIds(
+                filterContainers(allHosts, server -> !hostsOffline.contains(server)),
+                HostIdResult.success(DIFFERENT_UUIDS));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
+                .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
+                .isEqualTo(newCassandraServers);
+    }
+
+    @Test
+    public void validateNewlyAddedHostsAddedIfAgreedWithOldHostsOnPreviousTopologyWhenNoQuorum() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
+                .as("accepts quorum from new hosts if they have the same host IDs as old topology")
+                .isEmpty();
+    }
+
+    @Test
+    public void validateNewlyAddedHostsAddedIfAgreedWithOldTopologyWhenNoQuorumAndNoCurrentServers() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> allCassandraServers = allHosts.keySet();
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        splitHostOriginBetweenLastKnownAndConfig(
+                                oldCassandraServers, Sets.difference(allCassandraServers, oldCassandraServers)),
+                        allHosts))
+                .as("accepts quorum from config hosts if they have the same host IDs as old topology when no current"
+                        + " servers")
+                .isEqualTo(oldCassandraServers);
+    }
+
+    @Test
+    public void returnsAllNewHostsIfNoConsensusOnConfigHostsWhenNoQuorumAndNoCurrentServers() {
+        Iterator<String> uuidIterator = UUIDS.iterator();
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> allCassandraServers = allHosts.keySet();
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        filterContainers(allHosts, server -> !hostsOffline.contains(server))
+                .forEach(container ->
+                        setHostIds(ImmutableSet.of(container), HostIdResult.success(Set.of(uuidIterator.next()))));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        splitHostOriginBetweenLastKnownAndConfig(
+                                oldCassandraServers, Sets.difference(allCassandraServers, oldCassandraServers)),
+                        allHosts))
+                .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
+                .isEqualTo(allCassandraServers);
+    }
+
+    @Test
+    public void returnsAllNewHostsIfConsensusOnConfigHostsDiffersFromPreviousWhenNoQuorumAndNoCurrentServers() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> allCassandraServers = allHosts.keySet();
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        setHostIds(
+                filterContainers(allHosts, server -> !hostsOffline.contains(server)),
+                HostIdResult.success(DIFFERENT_UUIDS));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        splitHostOriginBetweenLastKnownAndConfig(
+                                oldCassandraServers, Sets.difference(allCassandraServers, oldCassandraServers)),
+                        allHosts))
+                .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
+                .isEqualTo(allCassandraServers);
+    }
+
     @Test
     public void validateNewlyAddedHostsNoNewHostsAddedIfNewHostsDoNotHaveQuorumAndNoCurrentServers() {
         Set<String> hosts = ImmutableSet.<String>builder()
@@ -288,7 +452,7 @@ public void validateNewlyAddedHostsNoNewHostsAddedIfNewHostsDoNotHaveQuorumAndNo
         Set<String> hostsOffline = ImmutableSet.of(NEW_HOST_ONE, NEW_HOST_TWO);
         setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
         setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .containsExactlyElementsOf(allHosts.keySet());
     }
 
@@ -298,7 +462,7 @@ public void validateNewlyAddedHostsAddsAllNewHostsIfCurrentServersDoNotHaveEndpo
         setHostIds(filterContainers(allHosts, NEW_HOSTS::contains), HostIdResult.success(UUIDS));
         setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.softFailure());
         assertThat(validator.getNewHostsWithInconsistentTopologies(
-                        filterServers(allHosts, NEW_HOSTS::contains), allHosts))
+                        mapToTokenRangeOrigin(filterServers(allHosts, NEW_HOSTS::contains)), allHosts))
                 .isEmpty();
     }
 
@@ -338,12 +502,16 @@ public Set<CassandraClientPoolingContainer> filterContainers(
                 .toSet();
     }
 
-    public Set<CassandraServer> filterServers(
+    public Map<CassandraServer, CassandraClientPoolingContainer> filterServerToContainerMap(
             Map<CassandraServer, CassandraClientPoolingContainer> hosts, Predicate<String> filter) {
         return EntryStream.of(hosts)
                 .filterKeys(cassandraServer -> filter.test(cassandraServer.cassandraHostName()))
-                .keys()
-                .toSet();
+                .toMap();
+    }
+
+    public Set<CassandraServer> filterServers(
+            Map<CassandraServer, CassandraClientPoolingContainer> hosts, Predicate<String> filter) {
+        return filterServerToContainerMap(hosts, filter).keySet();
     }
 
     private static CassandraServer createCassandraServer(String hostname) {
@@ -367,4 +535,16 @@ private static Map<CassandraServer, CassandraClientPoolingContainer> setupHosts(
                 .mapToEntry(server -> mock(CassandraClientPoolingContainer.class))
                 .toMap();
     }
+
+    private static Map<CassandraServer, CassandraServerOrigin> splitHostOriginBetweenLastKnownAndConfig(
+            Set<CassandraServer> lastKnownHosts, Set<CassandraServer> configHosts) {
+        return ImmutableMap.<CassandraServer, CassandraServerOrigin>builder()
+                .putAll(CassandraServerOrigin.mapAllServersToOrigin(lastKnownHosts, CassandraServerOrigin.LAST_KNOWN))
+                .putAll(CassandraServerOrigin.mapAllServersToOrigin(configHosts, CassandraServerOrigin.CONFIG))
+                .buildOrThrow();
+    }
+
+    private static Map<CassandraServer, CassandraServerOrigin> mapToTokenRangeOrigin(Set<CassandraServer> servers) {
+        return CassandraServerOrigin.mapAllServersToOrigin(servers, CassandraServerOrigin.TOKEN_RANGE);
+    }
 }u}(j (2b7ebf3f2002680b8eeae307892324077aef87b8j $changelog/@unreleased/pr-6455.v2.ymlj addedj
 Kj K j Kj |https://github.com/palantir/atlasdb/blob/82898a844ebf109ee0cc31c02886349247e62ba8/changelog%2F%40unreleased%2Fpr-6455.v2.ymlj {https://github.com/palantir/atlasdb/raw/82898a844ebf109ee0cc31c02886349247e62ba8/changelog%2F%40unreleased%2Fpr-6455.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6455.v2.yml?ref=82898a844ebf109ee0cc31c02886349247e62ba8j @@ -0,0 +1,6 @@
+type: fix
+fix:
+  description: AtlasDB clients can now recover after receiving a dissenting response
+    to a Cassandra Topology check.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6455ueu(86d91aa59465ac0960f8f329fb2087653004b555}(sha(86d91aa59465ac0960f8f329fb2087653004b555node_idEC_kwDOAjP5fdoAKDg2ZDkxYWE1OTQ2NWFjMDk2MGY4ZjMyOWZiMjA4NzY1MzAwNGI1NTUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-15T15:38:09Zu	committer}(j_ Jeremy Kongja jkong@palantir.comjc 2023-06-15T15:38:09ZumessageMMerge remote-tracking branch 'origin/develop' into roomba/latest-baseline-osstree}(jW (be2fc2c6549ac7cccfa149c648fa6cd28b907be9url`https://api.github.com/repos/palantir/atlasdb/git/trees/be2fc2c6549ac7cccfa149c648fa6cd28b907be9ujo bhttps://api.github.com/repos/palantir/atlasdb/git/commits/86d91aa59465ac0960f8f329fb2087653004b555
comment_countK verification     }(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSLMGMACgkQTLdFKain
zjx8VAgAm5p/HczURZbooES9iZL3CgFboEOzmzPHhj5ymyXK2jnsS8X0j1X+lykq
vSSN7Pzrw5BZ8vi5uNU2AQd7pKqpfYR7ta+btzUFexrSldSVC5w574ZY6esdaZTv
cuuwgjmHDd7al20esIFlMFC1VrSxiJGCVTwRhV0Ik6myEHErzfjXdyPhEWr8oyGk
C5RpzzgZiWKu+Db2H5jhL9dmPnDc5C7PVDKR+1kk1zbh5Ex/VrTwBwenfVBQczLe
zIjTKsbuS4HtOWIu3tSUHE56Bs00HgDLaYejxkGSfUAhcPdNUV0zvaS696hDt0Tp
SjQiQnpjbwT//22Ba4qItPe9Xih+ug==
=aNiU
-----END PGP SIGNATURE-----payloadXR  tree be2fc2c6549ac7cccfa149c648fa6cd28b907be9
parent 5cc51e408d3cb52cc5c8560024625ff6bd934e31
parent f73d7daa353c1ebec707abfc1f6bf19a5a03066b
author Jeremy Kong <jkong@palantir.com> 1686843489 +0800
committer Jeremy Kong <jkong@palantir.com> 1686843489 +0800

Merge remote-tracking branch 'origin/develop' into roomba/latest-baseline-oss
uujo ^https://api.github.com/repos/palantir/atlasdb/commits/86d91aa59465ac0960f8f329fb2087653004b555html_urlShttps://github.com/palantir/atlasdb/commit/86d91aa59465ac0960f8f329fb2087653004b555comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/86d91aa59465ac0960f8f329fb2087653004b555/commentsj] }(login
jeremyk-91idJZ jY MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jo 'https://api.github.com/users/jeremyk-91j} https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuje }(j 
jeremyk-91j JZ jY MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5jo 'https://api.github.com/users/jeremyk-91j} https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents](}(jW (5cc51e408d3cb52cc5c8560024625ff6bd934e31jo ^https://api.github.com/repos/palantir/atlasdb/commits/5cc51e408d3cb52cc5c8560024625ff6bd934e31j} Shttps://github.com/palantir/atlasdb/commit/5cc51e408d3cb52cc5c8560024625ff6bd934e31u}(jW (f73d7daa353c1ebec707abfc1f6bf19a5a03066bjo ^https://api.github.com/repos/palantir/atlasdb/commits/f73d7daa353c1ebec707abfc1f6bf19a5a03066bj} Shttps://github.com/palantir/atlasdb/commit/f73d7daa353c1ebec707abfc1f6bf19a5a03066buestats}(totalM2	additionsMD*	deletionsMufiles](}(jW (869937b7996e6e9b9e16721bba28e199b9d1dd82filename,.baseline/checkstyle/custom-suppressions.xmlstatusmodifiedj K j KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/.baseline%2Fcheckstyle%2Fcustom-suppressions.xmlraw_urlhttps://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/.baseline%2Fcheckstyle%2Fcustom-suppressions.xmlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/.baseline%2Fcheckstyle%2Fcustom-suppressions.xml?ref=86d91aa59465ac0960f8f329fb2087653004b555patchXT  @@ -26,7 +26,6 @@
     <suppress files=".*" checks="RedundantModifier"/>
     <suppress files=".*" checks="SummaryJavadocCheck"/>
     <suppress files=".*" checks="VisibilityModifier"/>
-    <suppress files=".*" id="BanGuavaCaches"/>
 
     <!-- Certain AtlasDB projects are ignored. -->
     <suppress files="atlasdb-client/*" checks="."/>u}(jW (a31b7819db3f6f91597edd144957cf18b2f7a613j .circleci/config.ymlj modifiedj K.j K
j K;j hhttps://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/.circleci%2Fconfig.ymlj ghttps://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/.circleci%2Fconfig.ymlj zhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -1,10 +1,10 @@
-version: 2
+version: 2.1
 
 jobs:
   build:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: xlarge
+    resource_class: 2xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
@@ -17,7 +17,7 @@ jobs:
           key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
 
       - run: git tag -l | xargs git tag -d && git fetch -t # ensure all tags are fetched and up-to-date
-      - run: ./gradlew --profile --parallel --stacktrace classes testClasses
+      - run: ./gradlew --scan --profile --parallel --stacktrace classes testClasses
 
       - save_cache:
           key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
@@ -31,8 +31,10 @@ jobs:
           root: .
           paths: [ . ]
 
-  test:
-    parallelism: 12
+  test-suite:
+    parameters:
+      suite:
+        type: integer
     machine:
       image: ubuntu-2004:202111-02
     resource_class: xlarge
@@ -66,7 +68,7 @@ jobs:
               curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
               sudo ln -s /opt/java/zulu*/ /opt/java8
       - run:
-          command: ./scripts/circle-ci/run-circle-tests.sh
+          command: ./scripts/circle-ci/run-circle-tests.sh << parameters.suite >>
           no_output_timeout: 900
       - run: ./scripts/circle-ci/ensure-repo-clean.sh
       - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
@@ -78,11 +80,16 @@ jobs:
       - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
       - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
       - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - when:
+          # Persist to workspace for the compile/compileTest container to keep deploy fast.
+          condition:
+            equal: [ 13, << parameters.suite >> ]
+          steps:
+            - persist_to_workspace:
+                root: .
+                paths: [ . ]
       - store_artifacts:
           path: /home/circleci/artifacts
-      - persist_to_workspace:
-          root: .
-          paths: [ . ]
 
   trial-publish:
     docker:
@@ -95,7 +102,13 @@ jobs:
       CIRCLE_ARTIFACTS: /tmp/artifacts
     steps:
       - attach_workspace: { at: . }
-      - run: ./gradlew --profile --stacktrace --continue publishToMavenLocal
+      - run: ./gradlew --scan --profile --stacktrace --continue publishToMavenLocal
+
+  test:
+    docker: [ { image: 'busybox:1.34.1' } ]
+    resource_class: small
+    steps:
+      - run: {command: echo "Ran all required tests successfully"}
 
   deploy:
     docker:
@@ -118,7 +131,7 @@ jobs:
             # hack - notion of "owners" isn't supported in Circle 2
             if [ $CIRCLE_PROJECT_USERNAME = 'palantir' ] && [ -z $CIRCLE_PR_NUMBER ]; then
               git status
-              ./gradlew --profile --stacktrace --continue publish
+              ./gradlew --scan --profile --stacktrace --continue publish
             fi
       - run:
           command: |
@@ -130,15 +143,35 @@ jobs:
             fi
 
 workflows:
-  version: 2
   check:
     jobs:
       - build:
           filters:
             tags:
               only: /.*/
-      - test:
+      - test-suite:
           requires: [build]
+          matrix:
+            alias: test-no-tl
+            parameters:
+              # intentionally excluding 13 (TimeLock migration ETE test) from this collection
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14]
+          filters:
+            tags:
+              only: /.*/
+      - test-suite:
+          requires: [build]
+          matrix:
+            alias: test-tl
+            parameters:
+              suite: [13]
+          filters:
+            branches:
+              only: /(tlmete.*|develop)/
+            tags:
+              only: /.*/
+      - test:
+          requires: [test-tl, test-no-tl]
           filters:
             tags:
               only: /.*/u}(jW (e69de29bb2d1d6434b8b29ae775ad8c2e48c5391j .circleci/template.shj removedj K j K j K j ihttps://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/.circleci%2Ftemplate.shj hhttps://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/.circleci%2Ftemplate.shj {https://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Ftemplate.sh?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31u}(jW (2dbc24b32d3c1d36a5252a785ef380d28cefa391j 
.java-versionj modifiedj Kj Kj Kj _https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/.java-versionj ^https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/.java-versionj qhttps://api.github.com/repos/palantir/atlasdb/contents/.java-version?ref=86d91aa59465ac0960f8f329fb2087653004b555j @@ -1 +1 @@
-11
+11.0u}(jW (d712c836408b8b983fda0502a1815c19270ae9e1j .palantir/revapi.ymlj modifiedj Kj K j Kj hhttps://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/.palantir%2Frevapi.ymlj ghttps://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/.palantir%2Frevapi.ymlj zhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=86d91aa59465ac0960f8f329fb2087653004b555j X_  @@ -115,3 +115,9 @@ acceptedBreaks:
     - code: "java.class.removed"
       old: "interface com.palantir.atlasdb.transaction.api.expectations.ExpectationsAwareTransaction"
       justification: "moving out of API"
+  "0.824.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.removed"
+      old: "method java.util.concurrent.ExecutorService com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService::createThreadPoolWihtoutSpans(java.lang.String,\
+        \ int, int) @ com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl"
+      justification: "Protected method"u}(jW (d8f732c3615aaed89bbf22d2dd57bf2198b25723j .policy.ymlj modifiedj Kj Kj Kj ]https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/.policy.ymlj \https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/.policy.ymlj ohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=86d91aa59465ac0960f8f329fb2087653004b555j X(  @@ -20,21 +20,21 @@ approval_rules:
       allow_contributor: false
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: two admins have approved
     options:
       allow_contributor: true
     requires:
       count: 2
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: changelog only and contributor approval
     options:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       only_changed_files:
         paths:
@@ -45,7 +45,7 @@ approval_rules:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       has_author_in:
         users: [ "svc-excavator-bot" ]u}(jW (1b448a0fde07cfbc9657b00600f040335b3c7c84j atlasdb-api/build.gradlej modifiedj Kj Kj Kj lhttps://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-api%2Fbuild.gradlej khttps://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-api%2Fbuild.gradlej ~https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fbuild.gradle?ref=86d91aa59465ac0960f8f329fb2087653004b555j X   @@ -39,8 +39,9 @@ dependencies {
   testImplementation 'com.palantir.refreshable:refreshable'
   testImplementation 'io.dropwizard.metrics:metrics-core'
   testImplementation project(':lock-api-objects')
+    testImplementation project(path: ':flake-rule')
 
-  annotationProcessor 'org.immutables:value'
+    annotationProcessor 'org.immutables:value'
   compileOnly 'org.immutables:value::annotations'
   testCompileOnly 'org.immutables:value::annotations'
   annotationProcessor project(":atlasdb-processors")u}(jW (c2c86be9a9da93bcfb3eb43dd67f55ea0b9f9d51j Ratlasdb-api/src/test/java/com/palantir/atlasdb/keyvalue/api/CellReferenceTest.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellReferenceTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellReferenceTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellReferenceTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X~  @@ -21,19 +21,25 @@
 
 import com.google.common.math.IntMath;
 import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.flake.FlakeRetryingRule;
+import com.palantir.flake.ShouldRetry;
 import java.util.List;
 import java.util.Map;
 import java.util.concurrent.ThreadLocalRandom;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 import org.assertj.core.data.Percentage;
+import org.junit.Rule;
 import org.junit.Test;
 
 public class CellReferenceTest {
     private static final TableReference TABLE = createFromFullyQualifiedName("fixed.table");
     private static final byte[] ROW = PtBytes.toBytes("row");
     private static final byte[] COL = PtBytes.toBytes("col");
 
+    @Rule
+    public final FlakeRetryingRule retryingRule = new FlakeRetryingRule();
+
     @Test
     public void dynamicSequentialColumns() {
         int totalCount = 20_000;
@@ -44,6 +50,7 @@ public void dynamicSequentialColumns() {
         assertDistributionUniform(hashes, totalCount);
     }
 
+    @ShouldRetry
     @Test
     public void dynamicRandomColumns() {
         ThreadLocalRandom random = ThreadLocalRandom.current();u}(jW (c8f5ec6d41d45b1db43cb98d871dd8aaff4fbe06j atlasdb-buggify/build.gradlej addedj Kj K j Kj phttps://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fbuild.gradlej ohttps://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fbuild.gradle?ref=86d91aa59465ac0960f8f329fb2087653004b555j X`  @@ -0,0 +1,12 @@
+
+apply from: "../gradle/shared.gradle"
+
+dependencies {
+    implementation 'com.google.guava:guava'
+    testImplementation 'junit:junit'
+    testImplementation 'org.assertj:assertj-core'
+    testImplementation('org.jmock:jmock') {
+      exclude group: 'org.hamcrest'
+    }
+    testImplementation 'org.mockito:mockito-core'
+}u}(jW (7ed6f31d91209eb01a70cc1992699c7d6b7590bdj Tatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/AlwaysBuggifyFactory.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X.  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggify;
+
+public enum AlwaysBuggifyFactory implements BuggifyFactory {
+    INSTANCE;
+
+    @Override
+    public Buggify maybe(double _probability) {
+        return DefaultBuggify.INSTANCE;
+    }
+}u}(jW (b4b3fdb6c8a3dbc046c441a7d9341e93b8857c14j Katlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/Buggify.javaj addedj K'j K j K'j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X9  @@ -0,0 +1,39 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+/**
+ * Instances of this class could vary in implementation, such that they may perform no action {@link com.palantir.atlasdb.buggify.impl.NoOpBuggify} or
+ * always perform the action {@link com.palantir.atlasdb.buggify.impl.DefaultBuggify}. The idea here is that a
+ * downstream users of this class can easily swap out their {@link BuggifyFactory} to change the behavior of their
+ * class, without having to change the implementation of their class. This is useful for tests, as we can force the
+ * behavior of never running the provided runnable, or always running the provided runnable.
+ * <p>
+ * See https://apple.github.io/foundationdb/client-testing.html for more information.
+ */
+public interface Buggify {
+    /**
+     * Maybe runs the provided runnable, depending on the instance of the class.
+     */
+    void run(Runnable runnable);
+
+    /**
+     * Returns true if this instance of buggify would perform an action if {@link #run Run} would execute the
+     * provided runnable. This is useful if you wish to produce a boolean that will be skewed towards true or false.
+     */
+    boolean asBoolean();
+}u}(jW (0ed48b1c56bc0efc8ac5be656900e3c3a38c67faj Ratlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/BuggifyFactory.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j Xy  @@ -0,0 +1,24 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+public interface BuggifyFactory {
+    /**
+     * The probability of returning a buggify instance which performs actions.
+     */
+    Buggify maybe(double probability);
+}u}(jW (6f3353a1c06e3518031faa27f5e05286e635a2dbj eatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/NativeSamplingSecureRandomFactory.javaj addedj K!j K j K!j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FNativeSamplingSecureRandomFactory.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FNativeSamplingSecureRandomFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FNativeSamplingSecureRandomFactory.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+import java.security.SecureRandom;
+
+public interface NativeSamplingSecureRandomFactory {
+    /**
+     * Creates an instance of {@link SecureRandom} that, as far as is supported by the system, produces both seed and
+     * random numbers from an external source.
+     * <p>
+     * The motivation for this is for running tests in an environment (such as that provided by Antithesis) where
+     * system-provided randomness is deterministic, and can be dynamically controlled by the fuzzer to explore the
+     * state space of the system more efficiently. We thus want to ensure that the random number generator we use
+     * makes queries to the system-provided randomness source not just for seeding, but also on every generation
+     * of a random number.
+     */
+    SecureRandom create();
+}u}(jW (bf47a2abcceffe92e42715b2377315e57a40f763j Satlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggify.javaj addedj K!j K j K!j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+
+public enum DefaultBuggify implements Buggify {
+    INSTANCE;
+
+    @Override
+    public void run(Runnable runnable) {
+        runnable.run();
+    }
+
+    @Override
+    public boolean asBoolean() {
+        return true;
+    }
+}u}(jW (4ca0edd6554c8b49ac329f94f8407ea5328fca20j Zatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactory.javaj addedj K/j K j K/j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,47 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import java.security.SecureRandom;
+import java.util.function.DoubleSupplier;
+
+public final class DefaultBuggifyFactory implements BuggifyFactory {
+    private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+    public static final BuggifyFactory INSTANCE = new DefaultBuggifyFactory();
+
+    private final DoubleSupplier doubleSupplier;
+
+    @VisibleForTesting
+    DefaultBuggifyFactory(DoubleSupplier doubleSupplier) {
+        this.doubleSupplier = doubleSupplier;
+    }
+
+    private DefaultBuggifyFactory() {
+        this(SECURE_RANDOM::nextDouble);
+    }
+
+    @Override
+    public Buggify maybe(double probability) {
+        if (doubleSupplier.getAsDouble() < probability) {
+            return DefaultBuggify.INSTANCE;
+        }
+        return NoOpBuggify.INSTANCE;
+    }
+}u}(jW (1f3a1114799a4b99ced3a549da79307fe3e7b204j matlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultNativeSamplingSecureRandomFactory.javaj addedj K,j K j K,j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultNativeSamplingSecureRandomFactory.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultNativeSamplingSecureRandomFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultNativeSamplingSecureRandomFactory.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.NativeSamplingSecureRandomFactory;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.security.SecureRandom;
+
+public enum DefaultNativeSamplingSecureRandomFactory implements NativeSamplingSecureRandomFactory {
+    INSTANCE;
+
+    private static final SafeLogger log = SafeLoggerFactory.get(DefaultNativeSamplingSecureRandomFactory.class);
+
+    @Override
+    public SecureRandom create() {
+        try {
+            // The NativePRNG algorithm reads from /dev/random or /dev/urandom for generating both seed and random
+            // numbers, which satisfies the requirements of the interface (and both of these files are fuzzer-controlled
+            // in Antithesis). This string is a reserved identifier for the algorithm, following
+            // https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html#securerandom-number-generation-algorithms
+            return SecureRandom.getInstance("NativePRNG");
+        } catch (Exception e) {
+            log.warn(
+                    "Failed to initialize fully native secure random instance, letting the Java runtime select for us",
+                    e);
+            return new SecureRandom();
+        }
+    }
+}u}(jW (7ffdf499b3babaa3d0997abc88e28cb57de2aa01j Patlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggify.javaj addedj K!j K j K!j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+
+public enum NoOpBuggify implements Buggify {
+    INSTANCE;
+
+    @Override
+    public void run(Runnable _runnable) {
+        // do nothing
+    }
+
+    @Override
+    public boolean asBoolean() {
+        return false;
+    }
+}u}(jW (bf4172a8a7e4e4576cacc81f228d95963322a41dj Watlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyFactory.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,29 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+
+public enum NoOpBuggifyFactory implements BuggifyFactory {
+    INSTANCE;
+
+    @Override
+    public Buggify maybe(double _probability) {
+        return NoOpBuggify.INSTANCE;
+    }
+}u}(jW (a7db5aa15eb7d98f2bcc738671a8f30fdfb489adj ^atlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactoryTest.javaj addedj K+j K j K+j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X#  @@ -0,0 +1,43 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import org.junit.Test;
+
+public class DefaultBuggifyFactoryTest {
+    @Test
+    public void maybeReturnsDefaultWhenMaxProbability() {
+        assertThat(DefaultBuggifyFactory.INSTANCE.maybe(1.0)).isSameAs(DefaultBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsNoOpWhenNeverProbability() {
+        assertThat(DefaultBuggifyFactory.INSTANCE.maybe(0.0)).isSameAs(NoOpBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsNoOpWhenBelowOrEqualToProbability() {
+        assertThat(new DefaultBuggifyFactory(() -> 0.50).maybe(0.50)).isSameAs(NoOpBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsDefaultWhenAboveProbability() {
+        assertThat(new DefaultBuggifyFactory(() -> 0.49).maybe(0.50)).isSameAs(DefaultBuggify.INSTANCE);
+    }
+}u}(jW (28a8b18ae59b101e1489b1e086bbac7d63318767j Watlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyTest.javaj addedj K%j K j K%j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.verify;
+
+import org.junit.Test;
+
+public class DefaultBuggifyTest {
+    @Test
+    public void runAlwaysExecutes() {
+        Runnable runnable = mock(Runnable.class);
+        DefaultBuggify.INSTANCE.run(runnable);
+        verify(runnable).run();
+    }
+
+    @Test
+    public void asBooleanReturnsTrue() {
+        assertThat(DefaultBuggify.INSTANCE.asBoolean()).isTrue();
+    }
+}u}(jW (c6d5d05237311ecd06793772e3b673f5836c8896j Tatlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyTest.javaj addedj K&j K j K&j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.never;
+import static org.mockito.Mockito.verify;
+
+import org.junit.Test;
+
+public class NoOpBuggifyTest {
+    @Test
+    public void runNeverExecutes() {
+        Runnable runnable = mock(Runnable.class);
+        NoOpBuggify.INSTANCE.run(runnable);
+        verify(runnable, never()).run();
+    }
+
+    @Test
+    public void asBooleanReturnsFalse() {
+        assertThat(NoOpBuggify.INSTANCE.asBoolean()).isFalse();
+    }
+}u}(jW (8fce8e6875711ffb9f2690858b1cbe9871979bd5j 0atlasdb-cassandra-integration-tests/build.gradlej modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra-integration-tests%2Fbuild.gradlej https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra-integration-tests%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fbuild.gradle?ref=86d91aa59465ac0960f8f329fb2087653004b555j X#  @@ -56,6 +56,24 @@ test {
     exclude '**/CassandraKeyValueServiceSweepTaskRunnerIntegrationTest.class'
 }
 
+task testSubset1(type: Test) {
+    include '**/CassandraKeyValueServiceTableCreationIntegrationTest.class'
+    include '**/CassandraKeyValueServiceTableManipulationIntegrationTest.class'
+    include '**/CassandraKeyValueServiceTransactionIntegrationTest.class'
+    include '**/CassandraKvsAsyncFallbackMechanismsTests.class'
+    include '**/CassandraKvsSerializableTransactionTest.class'
+}
+
+task testSubset2(type: Test) {
+    include '**/*Test.class'
+    include '**/*Tests.class'
+    exclude '**/CassandraKeyValueServiceTableCreationIntegrationTest.class'
+    exclude '**/CassandraKeyValueServiceTableManipulationIntegrationTest.class'
+    exclude '**/CassandraKeyValueServiceTransactionIntegrationTest.class'
+    exclude '**/CassandraKvsAsyncFallbackMechanismsTests.class'
+    exclude '**/CassandraKvsSerializableTransactionTest.class'
+}
+
 tasks.withType(Test) {
     testLogging {
         // set options for log level LIFECYCLEu}(jW (4070f53a1fe32fff1205f946858d747ab540e48bj datlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j Xw  @@ -359,6 +359,7 @@ void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> des
 
         if (!(validatedServersToAdd.isEmpty() && absentServers.isEmpty())) { // if we made any changes
             cassandra.refreshTokenRangesAndGetServers();
+            metrics.recordPoolSize(getCurrentPools().size());
         }
 
         Preconditions.checkState(u}(jW (69f581236b5f107c22a46408a061b07dd50fd1bcj iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X2  @@ -108,8 +108,6 @@
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
-import com.palantir.tracing.Tracers;
-import com.palantir.tritium.metrics.MetricRegistries;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import com.palantir.util.Pair;
 import com.palantir.util.paging.AbstractPagingIterable;
@@ -485,10 +483,7 @@ private static Supplier<ExecutorService> instrumentedFixedThreadPoolSupplier(
             int numberOfThriftHosts = serversConfig.numberOfThriftHosts();
             int corePoolSize = poolSize * numberOfThriftHosts;
             int maxPoolSize = maxConnectionBurstSize * numberOfThriftHosts;
-            return Tracers.wrap(MetricRegistries.instrument(
-                    registry,
-                    createThreadPoolWihtoutSpans("Atlas Cassandra KVS", corePoolSize, maxPoolSize),
-                    "Atlas Cassandra KVS"));
+            return createThreadPoolWithoutSpans("Atlas Cassandra KVS", corePoolSize, maxPoolSize);
         };
     }
 u}(jW (90804433a22ec03af979e3c1e8590efd24af0579j `atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppToken.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -27,13 +27,16 @@
 import java.util.Arrays;
 
 public class LightweightOppToken implements Comparable<LightweightOppToken> {
-
     final byte[] bytes;
 
     public LightweightOppToken(byte[] bytes) {
         this.bytes = bytes;
     }
 
+    public static LightweightOppToken fromHex(String token) {
+        return new LightweightOppToken(Tokens.hexDecode(token));
+    }
+
     public static LightweightOppToken of(Cell cell) {
         return new LightweightOppToken(cell.getRowName());
     }u}(jW (b6e36b890415f2534eb284b773e57dbc27d4313bj Satlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/Tokens.javaj addedj K4j K j K4j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XP  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.io.BaseEncoding;
+import java.util.Locale;
+import java.util.function.IntPredicate;
+
+final class Tokens {
+
+    private static final BaseEncoding LOWER_CASE_HEX = BaseEncoding.base16().lowerCase();
+
+    static byte[] hexDecode(String token) {
+        // OPP tokens should be lowercase -- fast path assumes this; slow fallback converts to uppercase
+        return Tokens.isAllLowercaseOrDigits(token)
+                ? LOWER_CASE_HEX.decode(token)
+                : BaseEncoding.base16().decode(token.toUpperCase(Locale.ROOT));
+    }
+
+    @VisibleForTesting
+    static boolean isAllLowercaseOrDigits(String token) {
+        return allMatch(token, ch -> Character.isLowerCase(ch) || Character.isDigit(ch));
+    }
+
+    @VisibleForTesting
+    static boolean allMatch(String token, IntPredicate predicate) {
+        for (int i = 0; i < token.length(); i++) {
+            char ch = token.charAt(i);
+            if (!predicate.test(ch)) {
+                return false;
+            }
+        }
+        return true;
+    }
+
+    private Tokens() {}
+}u}(jW (4d583484e99e4cc63642e62a005732ba4ca0d5d9j latlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetrics.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X	  @@ -18,6 +18,7 @@
 import com.codahale.metrics.Counter;
 import com.codahale.metrics.Gauge;
 import com.codahale.metrics.Meter;
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableMap;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer;
@@ -26,10 +27,13 @@
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.Map;
+import java.util.concurrent.atomic.AtomicLong;
 import java.util.function.Consumer;
 import java.util.function.Supplier;
 
 public class CassandraClientPoolMetrics {
+
+    public static final String POOL_SIZE_METRIC_NAME = "pool-size";
     private final MetricsManager metricsManager;
     private final RequestMetrics aggregateRequestMetrics;
     private final Map<CassandraServer, RequestMetrics> metricsByHost = new HashMap<>();
@@ -39,12 +43,15 @@ public class CassandraClientPoolMetrics {
     // Not bundled in with request metrics, as we seek to not produce host-level metrics for economic reasons.
     private final Counter poolExhaustionCounter;
 
+    private final AtomicLong poolSize = new AtomicLong(0L);
+
     public CassandraClientPoolMetrics(MetricsManager metricsManager) {
         this.metricsManager = metricsManager;
         this.aggregateRequestMetrics = new RequestMetrics(metricsManager);
         this.poolExhaustionCounter =
                 metricsManager.registerOrGetCounter(CassandraClientPoolMetrics.class, "pool-exhaustion");
         this.outlierControllers = createOutlierControllers(metricsManager);
+        metricsManager.registerMetric(CassandraClientPoolMetrics.class, POOL_SIZE_METRIC_NAME, poolSize::get);
     }
 
     private static Map<CassandraClientPoolHostLevelMetric, DistributionOutlierController> createOutlierControllers(
@@ -93,6 +100,15 @@ public void recordPoolExhaustion() {
         poolExhaustionCounter.inc();
     }
 
+    public void recordPoolSize(long desiredPoolSize) {
+        poolSize.set(desiredPoolSize);
+    }
+
+    @VisibleForTesting
+    Long getPoolSize() {
+        return poolSize.get();
+    }
+
     @SuppressWarnings("unchecked") // Guaranteed to have the correct type
     public void registerPoolMetric(CassandraClientPoolHostLevelMetric metric, Gauge<Long> gauge, int poolNumber) {
         MetricPublicationFilter filter = outlierControllers.get(metric).registerAndCreateFilter(gauge);u}(jW (32b1efd1deac46330f4d5d125b203b6a950a167dj batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaj modifiedj Kj Kj K!j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -17,18 +17,17 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
-import com.google.common.collect.FluentIterable;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableRangeMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Interner;
 import com.google.common.collect.Interners;
 import com.google.common.collect.Iterables;
+import com.google.common.collect.Maps;
 import com.google.common.collect.Range;
 import com.google.common.collect.RangeMap;
 import com.google.common.collect.Sets;
-import com.google.common.io.BaseEncoding;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs.ThriftHostsExtractingVisitor;
@@ -62,13 +61,11 @@
 import java.util.Comparator;
 import java.util.HashMap;
 import java.util.HashSet;
-import java.util.Iterator;
 import java.util.List;
-import java.util.Locale;
 import java.util.Map;
-import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Optional;
+import java.util.PrimitiveIterator.OfInt;
 import java.util.Random;
 import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
@@ -77,6 +74,7 @@
 import java.util.function.Predicate;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import java.util.stream.Stream;
 import org.apache.cassandra.thrift.EndpointDetails;
 import org.apache.cassandra.thrift.TokenRange;
@@ -162,10 +160,8 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
                     servers.addAll(hosts);
                     hostToDatacentersThisRefresh.putAll(hostToDatacentersOnThisTokenRange);
 
-                    LightweightOppToken startToken = new LightweightOppToken(BaseEncoding.base16()
-                            .decode(tokenRange.getStart_token().toUpperCase(Locale.ROOT)));
-                    LightweightOppToken endToken = new LightweightOppToken(BaseEncoding.base16()
-                            .decode(tokenRange.getEnd_token().toUpperCase(Locale.ROOT)));
+                    LightweightOppToken startToken = LightweightOppToken.fromHex(tokenRange.getStart_token());
+                    LightweightOppToken endToken = LightweightOppToken.fromHex(tokenRange.getEnd_token());
                     if (startToken.compareTo(endToken) <= 0) {
                         newTokenRing.put(Range.openClosed(startToken, endToken), hosts);
                     } else {
@@ -306,16 +302,16 @@ private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) th
     }
 
     private int getKnownPort() throws UnknownHostException {
-        // explicitly not using streams due to allocation overhead
-        return onlyPort(FluentIterable.concat(
-                        FluentIterable.from(currentPools.keySet()).transform(CassandraServer::proxy),
-                        getServersSocketAddressesFromConfig())
-                .transform(InetSocketAddress::getPort));
+        // Avoid allocations and intermediate collection as this is on hot path
+        return only(Stream.concat(
+                        currentPools.keySet().stream().map(CassandraServer::proxy),
+                        getServersSocketAddressesFromConfig().stream())
+                .mapToInt(InetSocketAddress::getPort));
     }
 
     @VisibleForTesting
-    static int onlyPort(Iterable<? extends Integer> iterable) throws UnknownHostException {
-        Iterator<? extends Integer> iterator = iterable.iterator();
+    static int only(IntStream intStream) throws UnknownHostException {
+        OfInt iterator = intStream.iterator();
         if (!iterator.hasNext()) {
             throw new UnknownHostException("No single known port");
         }
@@ -420,9 +416,8 @@ Set<CassandraServer> maybeFilterLocalHosts(Set<CassandraServer> hosts) {
     @VisibleForTesting
     Optional<CassandraServer> getRandomHostByActiveConnections(Set<CassandraServer> desiredHosts) {
         Set<CassandraServer> localFilteredHosts = maybeFilterLocalHosts(desiredHosts);
-        ImmutableMap<CassandraServer, CassandraClientPoolingContainer> matchingPools = currentPools.entrySet().stream()
-                .filter(e -> localFilteredHosts.contains(e.getKey()))
-                .collect(ImmutableMap.toImmutableMap(Entry::getKey, Entry::getValue));
+        Map<CassandraServer, CassandraClientPoolingContainer> matchingPools =
+                ImmutableMap.copyOf(Maps.filterKeys(currentPools, localFilteredHosts::contains));
         if (matchingPools.isEmpty()) {
             return Optional.empty();
         }u}(jW (0018cc3f41f93c005b4fbadee9f0f569b180a38cj datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X&  @@ -35,6 +35,7 @@
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs;
 import com.palantir.atlasdb.cassandra.ImmutableDefaultConfig;
+import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraClientPoolMetrics;
 import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
 import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService;
 import com.palantir.atlasdb.util.MetricsManagers;
@@ -224,7 +225,7 @@ private void runTwoNoopsOnTwoHostsAndThrowFromSecondRunOnFirstHost(Exception exc
     }
 
     private CassandraServer getServerForIndex(int index) {
-        return CassandraServer.of(InetSocketAddress.createUnresolved(Integer.toString(index), index));
+        return CassandraServer.of(InetSocketAddress.createUnresolved(Integer.toString(index), 8000));
     }
 
     @Test
@@ -310,6 +311,7 @@ public void hostIsAutomaticallyRemovedOnStartup() {
 
         createClientPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1);
+        assertPoolSizeMetricIsEqualTo(1);
     }
 
     @Test
@@ -321,10 +323,12 @@ public void hostIsAutomaticallyRemovedOnRefresh() {
 
         createClientPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2, CASS_SERVER_3);
+        assertPoolSizeMetricIsEqualTo(3);
 
         setCassandraServersTo(CASS_SERVER_1, CASS_SERVER_2);
         refreshPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2);
+        assertPoolSizeMetricIsEqualTo(2);
     }
 
     @Test
@@ -495,7 +499,7 @@ private void setCassandraServersTo(CassandraServer... servers) {
 
     private CassandraClientPoolImpl createClientPool() {
         return CassandraClientPoolImpl.createImplForTest(
-                MetricsManagers.createForTests(),
+                MetricsManagers.of(metricRegistry, taggedMetricRegistry),
                 config,
                 refreshableRuntimeConfig,
                 CassandraClientPoolImpl.StartupChecks.DO_NOT_RUN,
@@ -687,4 +691,16 @@ private void setupHostsWithInconsistentTopology(CassandraServer... cassandraServ
     private void refreshPool() {
         deterministicExecutor.tick(POOL_REFRESH_INTERVAL_SECONDS, TimeUnit.SECONDS);
     }
+
+    private void assertPoolSizeMetricIsEqualTo(long expected) {
+        assertThat(taggedMetricRegistry
+                        .<Long>gauge(MetricName.builder()
+                                .safeName(MetricRegistry.name(
+                                        CassandraClientPoolMetrics.class,
+                                        CassandraClientPoolMetrics.POOL_SIZE_METRIC_NAME))
+                                .build())
+                        .get()
+                        .getValue())
+                .isEqualTo(expected);
+    }
 }u}(jW (502ae947a588e3d9dcebd649967cafd91a08374bj datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppTokenTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X4  @@ -0,0 +1,167 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.conjure.java.lib.Bytes;
+import java.nio.ByteBuffer;
+import java.util.Collection;
+import java.util.Locale;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+import org.junit.runners.Parameterized.Parameter;
+import org.junit.runners.Parameterized.Parameters;
+
+@RunWith(Parameterized.class)
+public class LightweightOppTokenTest {
+    @Parameter()
+    public String input;
+
+    @Parameters(name = "{index}: input=\"{0}\"")
+    public static Collection<Object[]> data() {
+        return TokensTest.generateTokens()
+                .flatMap(input -> Stream.of(input, input.toLowerCase(Locale.ROOT), input.toUpperCase(Locale.ROOT)))
+                .map(input -> new Object[] {input})
+                .collect(Collectors.toList());
+    }
+
+    @Test
+    public void inputsAreValidBase16Strings() {
+        assertThat(input).matches("^[0-9a-fA-F]*$");
+        assertThat(input.length() % 2)
+                .as("input must be even length to base16 decode")
+                .isEqualTo(0);
+        assertThat(CassandraHex.hexToBytes(input)).hasSize(input.length() / 2);
+    }
+
+    @Test
+    public void createFromHexEncodedStringRegardlessOfCase() {
+        LightweightOppToken token = LightweightOppToken.fromHex(input);
+        LightweightOppToken tokenFromLowerCase = LightweightOppToken.fromHex(input.toLowerCase(Locale.ROOT));
+        LightweightOppToken tokenFromUpperCase = LightweightOppToken.fromHex(input.toUpperCase(Locale.ROOT));
+        LightweightOppToken tokenFromBytes = new LightweightOppToken(CassandraHex.hexToBytes(input));
+
+        assertThat(token.bytes)
+                .hasSize(input.length() / 2)
+                .isEqualTo(tokenFromLowerCase.bytes)
+                .isEqualTo(tokenFromUpperCase.bytes)
+                .isEqualTo(tokenFromBytes.bytes);
+        assertThat(token)
+                .isNotNull()
+                .isEqualTo(tokenFromLowerCase)
+                .isEqualTo(tokenFromUpperCase)
+                .isEqualTo(tokenFromBytes)
+                .isEqualByComparingTo(tokenFromLowerCase)
+                .isEqualByComparingTo(tokenFromUpperCase)
+                .isEqualByComparingTo(tokenFromBytes);
+    }
+
+    @Test
+    public void fromHexCorrectlyDeserializesStrings() throws Exception {
+        LightweightOppToken token = LightweightOppToken.fromHex(input);
+        Bytes expectedBytes = Bytes.from(org.apache.commons.codec.binary.Hex.decodeHex(input));
+        assertThat(token.bytes).contains(expectedBytes.asNewByteArray());
+        assertThat(token.isEmpty()).isEqualTo(input.length() == 0);
+        ByteBuffer deserialized = token.deserialize();
+        assertThat(deserialized).isEqualTo(expectedBytes.asReadOnlyByteBuffer());
+        assertThat(deserialized.remaining()).isEqualTo(input.length() / 2);
+        assertThat(token.toString()).isEqualToIgnoringCase(input);
+    }
+
+    @Test
+    public void tokenMatchesCassandraImplementation() throws Exception {
+        // Test compatibility with Cassandra hex conversions from:
+        // https://github.com/palantir/cassandra/blob/palantir-cassandra-2.2.18/src/java/org/apache/cassandra/dht/ByteOrderedPartitioner.java#L74
+        Bytes expectedBytes = Bytes.from(org.apache.commons.codec.binary.Hex.decodeHex(input));
+        String hexFromCassandra = CassandraHex.bytesToHex(expectedBytes.asNewByteArray());
+        byte[] bytesFromCassandra = CassandraHex.hexToBytes(hexFromCassandra);
+        LightweightOppToken token = LightweightOppToken.fromHex(hexFromCassandra);
+        assertThat(Tokens.isAllLowercaseOrDigits(hexFromCassandra))
+                .as("Expect lowercase hex %s", hexFromCassandra)
+                .isTrue();
+        assertThat(token).isEqualTo(new LightweightOppToken(expectedBytes.asNewByteArray()));
+        assertThat(token.bytes).contains(bytesFromCassandra);
+    }
+
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one
+     * or more contributor license agreements.  See the NOTICE file
+     * distributed with this work for additional information
+     * regarding copyright ownership.  The ASF licenses this file
+     * to you under the Apache License, Version 2.0 (the
+     * "License"); you may not use this file except in compliance
+     * with the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+    // Imported from cassandra to test using their conversions
+    // https://github.com/palantir/cassandra/blob/palantir-cassandra-2.2.18/src/java/org/apache/cassandra/utils/Hex.java
+    static final class CassandraHex {
+        private static final byte[] charToByte = new byte[256];
+
+        // package protected for use by ByteBufferUtil. Do not modify this array !!
+        static final char[] byteToChar = new char[16];
+
+        static {
+            for (char c = 0; c < charToByte.length; ++c) {
+                if (c >= '0' && c <= '9') charToByte[c] = (byte) (c - '0');
+                else if (c >= 'A' && c <= 'F') charToByte[c] = (byte) (c - 'A' + 10);
+                else if (c >= 'a' && c <= 'f') charToByte[c] = (byte) (c - 'a' + 10);
+                else charToByte[c] = (byte) -1;
+            }
+
+            for (int i = 0; i < 16; ++i) {
+                byteToChar[i] = Integer.toHexString(i).charAt(0);
+            }
+        }
+
+        public static byte[] hexToBytes(String str) {
+            if (str.length() % 2 == 1)
+                throw new NumberFormatException("An hex string representing bytes must have an even length");
+
+            byte[] bytes = new byte[str.length() / 2];
+            for (int i = 0; i < bytes.length; i++) {
+                byte halfByte1 = charToByte[str.charAt(i * 2)];
+                byte halfByte2 = charToByte[str.charAt(i * 2 + 1)];
+                if (halfByte1 == -1 || halfByte2 == -1) throw new NumberFormatException("Non-hex characters in " + str);
+                bytes[i] = (byte) ((halfByte1 << 4) | halfByte2);
+            }
+            return bytes;
+        }
+
+        public static String bytesToHex(byte... bytes) {
+            char[] c = new char[bytes.length * 2];
+            for (int i = 0; i < bytes.length; i++) {
+                int bint = bytes[i];
+                c[i * 2] = byteToChar[(bint & 0xf0) >> 4];
+                c[1 + i * 2] = byteToChar[bint & 0x0f];
+            }
+
+            return new String(c);
+        }
+    }
+}u      }(jW (db57abd4b23910bc5e3468db860764b587878808j Watlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/TokensTest.javaj addedj Kjj K j Kjj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X8  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.io.BaseEncoding;
+import com.google.common.primitives.Longs;
+import java.util.Locale;
+import java.util.concurrent.ThreadLocalRandom;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+import org.junit.Test;
+
+public final class TokensTest {
+    @Test
+    public void decodeHex() {
+        generateTokens().forEach(input -> assertThat(Tokens.hexDecode(input))
+                .as("token '%s'", input)
+                .hasSize(input.length() / 2));
+    }
+
+    @Test
+    public void isAllLowercaseOrDigits() {
+        assertThat(Tokens.isAllLowercaseOrDigits("abcdef01234567890")).isTrue();
+        assertThat(Tokens.isAllLowercaseOrDigits("01234567890abcdef")).isTrue();
+        assertThat(Tokens.isAllLowercaseOrDigits("Abcdef01234567890")).isFalse();
+        assertThat(Tokens.isAllLowercaseOrDigits("01234567890ABCDEF")).isFalse();
+    }
+
+    @Test
+    public void allMatch() {
+        assertThat(Tokens.allMatch("01234567890", Character::isDigit)).isTrue();
+        assertThat(Tokens.allMatch("0123456789A", Character::isDigit)).isFalse();
+        assertThat(Tokens.allMatch("ABCEFGHIJKLMNOPQRSTUVWXYZ", Character::isUpperCase))
+                .isTrue();
+        assertThat(Tokens.allMatch("ABCEFGHIJKLMNOPQRSTUVWXYZ", Character::isLowerCase))
+                .isFalse();
+        assertThat(Tokens.allMatch("abcefghijklmnopqrstuvwxyz", Character::isLowerCase))
+                .isTrue();
+        assertThat(Tokens.allMatch("abcefghijklmnopqrstuvwxyz", Character::isUpperCase))
+                .isFalse();
+    }
+
+    static Stream<String> generateTokens() {
+        return Stream.concat(
+                        Stream.of(
+                                "",
+                                "0F",
+                                "decafbad",
+                                "0123456789ABCDEF",
+                                "0123456789abcdef",
+                                "0123456789Abcdef",
+                                "0123456789aBcdef",
+                                "0123456789abCdef",
+                                "0123456789abcDef",
+                                "0123456789abcdEf",
+                                "0123456789abcdeF",
+                                Long.toHexString(Long.MIN_VALUE),
+                                Long.toHexString(Long.MAX_VALUE)),
+                        Stream.concat(
+                                IntStream.range(0, 32).mapToObj(i -> {
+                                    byte[] bytes = new byte[i * 2];
+                                    ThreadLocalRandom.current().nextBytes(bytes);
+                                    return BaseEncoding.base16().encode(bytes);
+                                }),
+                                IntStream.range(0, 1_000).mapToObj(_i -> BaseEncoding.base16()
+                                        .encode(Longs.toByteArray(
+                                                ThreadLocalRandom.current().nextLong())))))
+                .flatMap(input -> Stream.of(
+                        input, input.toLowerCase(Locale.ROOT), input.toUpperCase(Locale.ROOT), shuffleCase(input)));
+    }
+
+    private static String shuffleCase(String input) {
+        if (input == null || input.isEmpty()) {
+            return input;
+        }
+        StringBuilder sb = new StringBuilder(input.length());
+        for (int i = 0; i < input.length(); i++) {
+            char ch = input.charAt(i);
+            if (Character.isAlphabetic(ch) && ThreadLocalRandom.current().nextBoolean()) {
+                if (Character.isLowerCase(ch)) {
+                    ch = Character.toUpperCase(ch);
+                } else {
+                    ch = Character.toLowerCase(ch);
+                }
+            }
+            sb.append(ch);
+        }
+        return sb.toString();
+    }
+}u}(jW (bc3e5261d087a84993ba8ae1e523c8b05fc4c179j patlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetricsTest.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -33,6 +33,8 @@ public class CassandraClientPoolMetricsTest {
     private final MetricsManager metricsManager =
             MetricsManagers.of(new MetricRegistry(), new DefaultTaggedMetricRegistry(), Refreshable.only(true));
 
+    private final CassandraClientPoolMetrics metrics = new CassandraClientPoolMetrics(metricsManager);
+
     @Test
     public void metricsAreProducedAndFiltered() {
         CassandraClientPoolMetrics metrics = new CassandraClientPoolMetrics(metricsManager);
@@ -57,6 +59,18 @@ public void metricsAreProducedAndFiltered() {
                 .containsKey(createMeanActiveTimeMillisMetric("mean"));
     }
 
+    @Test
+    public void recordPoolSizeSetsSizeToLastReportedValue() {
+        metrics.recordPoolSize(100);
+        assertThat(metrics.getPoolSize()).isEqualTo(100);
+        metrics.recordPoolSize(-13);
+        assertThat(metrics.getPoolSize()).isEqualTo(-13);
+        metrics.recordPoolSize(25);
+        assertThat(metrics.getPoolSize()).isEqualTo(25);
+        metrics.recordPoolSize(0);
+        assertThat(metrics.getPoolSize()).isEqualTo(0);
+    }
+
     private static MetricName createMeanActiveTimeMillisMetric(String pool) {
         return MetricName.builder()
                 .safeName(MetricRegistry.name(u}(jW (ea93d4225293149bfc275c742ea245b6b263274fj fatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraServiceTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -33,7 +33,6 @@
 import com.palantir.refreshable.Refreshable;
 import java.net.InetSocketAddress;
 import java.net.UnknownHostException;
-import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.ThreadLocalRandom;
@@ -272,12 +271,10 @@ public void getRandomHostByActiveConnectionsReturnsDesiredHost() {
 
     @Test
     public void ports() throws Exception {
-        assertThat(CassandraService.onlyPort(List.of(1, 1, 1))).isEqualTo(1);
-        assertThat(IntStream.generate(() -> 4224).boxed().limit(15).collect(Collectors.toList()))
-                .hasSize(15)
-                .satisfies(cluster ->
-                        assertThat(CassandraService.onlyPort(cluster)).isEqualTo(4224));
-        assertThatThrownBy(() -> CassandraService.onlyPort(List.of(1, 2, 1)))
+        assertThat(CassandraService.only(IntStream.of(1, 1, 1))).isEqualTo(1);
+        assertThat(CassandraService.only(IntStream.generate(() -> 4224).limit(15)))
+                .isEqualTo(4224);
+        assertThatThrownBy(() -> CassandraService.only(IntStream.of(1, 2, 1)))
                 .isInstanceOf(UnknownHostException.class)
                 .hasMessageContaining("No single known port");
     }u}(jW (5504ea3d7692e9bd5feb8a902db77c14b223e48fj atlasdb-cli/build.gradlej modifiedj Kj K j Kj lhttps://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cli%2Fbuild.gradlej khttps://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cli%2Fbuild.gradlej ~https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cli%2Fbuild.gradle?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -8,6 +8,7 @@ dependencies {
     api project(':atlasdb-client')
     api project(':atlasdb-config')
     api project(':timestamp-api')
+    testImplementation project(path: ':flake-rule')
 
     compileOnly 'com.google.dagger:dagger'
     implementation 'io.airlift:airline'u}(jW (697bebce05ea5400b3ed453d3cb76e4e2ffc631ej Tatlasdb-cli/src/test/java/com/palantir/atlasdb/cli/command/TestTimestampCommand.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -37,6 +37,8 @@
 import com.palantir.atlasdb.services.test.DaggerTestAtlasDbServices;
 import com.palantir.atlasdb.services.test.TestAtlasDbServices;
 import com.palantir.common.time.Clock;
+import com.palantir.flake.FlakeRetryingRule;
+import com.palantir.flake.ShouldRetry;
 import com.palantir.lock.LockClient;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;
@@ -60,6 +62,7 @@
 import org.junit.After;
 import org.junit.Before;
 import org.junit.BeforeClass;
+import org.junit.Rule;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
@@ -71,6 +74,9 @@ public class TestTimestampCommand {
     private static AtlasDbServicesFactory moduleFactory;
     private static List<String> cliArgs;
 
+    @Rule
+    public FlakeRetryingRule flakeRetryingRule = new FlakeRetryingRule();
+
     @BeforeClass
     public static void oneTimeSetup() throws Exception {
         lock = StringLockDescriptor.of("lock");
@@ -181,6 +187,7 @@ public void testWithFile() throws Exception {
         runAndVerifyCliForFile(inputFileString);
     }
 
+    @ShouldRetry
     @Test
     public void testWithFileWithDir() throws Exception {
         String inputFileString = "existing-dir/test.timestamp";u}(jW (605212243716ab96bbbde3a8b0fd9ec3aa421b48j \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/AbstractKeyValueService.javaj modifiedj K	j K
j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X^	  @@ -70,38 +70,37 @@ public AbstractKeyValueService(ExecutorService executor) {
     /**
      * Creates a fixed thread pool.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param corePoolSize size of the core pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createFixedThreadPool(String threadNamePrefix, int corePoolSize) {
-        return createThreadPool(threadNamePrefix, corePoolSize, corePoolSize);
+    protected static ExecutorService createFixedThreadPool(String name, int corePoolSize) {
+        return createThreadPool(name, corePoolSize, corePoolSize);
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPool(String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPool(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPool(String name, int _corePoolSize, int maxPoolSize) {
+        return PTExecutors.newFixedThreadPool(maxPoolSize, name);
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      * It does not create a span.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPoolWihtoutSpans(
-            String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPoolWithoutSpans(String name, int _corePoolSize, int maxPoolSize) {
+        return PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, name);
     }
 
     @Overrideu}(jW (8b6e6cafaf4bfeb159b9821f6b05b34ee3d1bd3bj \atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/CompactMetadataTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FCompactMetadataTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FCompactMetadataTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FCompactMetadataTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "VridlmiMEcMLIrwQyqcRHQ==";
+    static String __CLASS_HASH = "PSwZcMysyzWemW+V1hGphQ==";
 }u}(jW (a9253d217f7922c43a4719d7eba66ff928fd42c2j Zatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepIdToNameTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepIdToNameTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepIdToNameTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepIdToNameTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -731,6 +732,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -754,5 +756,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "XhY0sfHU7ygS3NHM1+HK7Q==";
+    static String __CLASS_HASH = "XRAvO+BpbFM1l4QIBkArjA==";
 }u}(jW (92e033f8a02b6af466530e87d3272b1a29f5b16bj Zatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepNameToIdTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepNameToIdTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepNameToIdTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepNameToIdTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -672,6 +673,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -695,5 +697,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "sJD6WdNMiuuJDNsMwkhsvA==";
+    static String __CLASS_HASH = "ZVl8vtH0bWDeCq5tKMA3Aw==";
 }u}(jW (466585bf6d5f35472abb07bf7c9340d1fec25923j Zatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepPriorityTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepPriorityTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepPriorityTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepPriorityTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -1228,6 +1229,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -1251,5 +1253,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "SYJq7EPSrqhI5ojA5DS3vQ==";
+    static String __CLASS_HASH = "rABMHBdCo+LhmxyLoeFFwQ==";
 }u}(jW (91aeab67a811c50ed99500a6dbab71f30426896bj _atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepShardProgressTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepShardProgressTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepShardProgressTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepShardProgressTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -684,6 +685,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -707,5 +709,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "vxDaJU4r7oWggNPDq0Qu6Q==";
+    static String __CLASS_HASH = "2Fj81SsG3WRpPjQ1kYDw3A==";
 }u}(jW (e1e792ef2a8d8d17d6dc1f0ebf62edaa5f434f46j [atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepableCellsTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableCellsTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableCellsTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableCellsTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -766,6 +767,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -789,5 +791,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "0G8vHXvwR/HGZ0ZrAaeqTQ==";
+    static String __CLASS_HASH = "hMikiCT1ysKqkzSOdiKujg==";
 }u}(jW (a0fed777bc3cae52361dd15d5e1f8d185ff33447j `atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepableTimestampsTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableTimestampsTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableTimestampsTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableTimestampsTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -763,6 +764,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -786,5 +788,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Jw99h/0z3T8JcRN8j6d17w==";
+    static String __CLASS_HASH = "66qq5d5do+PszHk7DehVPA==";
 }u}(jW (04e0abea5b6d71d399ce0be42bf5e788186bb907j Xatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/TableClearsTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FTableClearsTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FTableClearsTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FTableClearsTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "G5tVqtzNmeGOIdOf4QSySA==";
+    static String __CLASS_HASH = "Wm/9d03F9WHgPC5jjTUOaA==";
 }u}(jW (37f614609e9364110222b476f105aa43bbb7f628j batlasdb-client/src/main/java/com/palantir/atlasdb/table/description/ColumnMetadataDescription.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -22,11 +22,15 @@
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Set;
+import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 
 @Immutable
 public class ColumnMetadataDescription {
+    @Nullable
     final ImmutableSet<NamedColumnDescription> namedColumns;
+
+    @Nullable
     final DynamicColumnDescription dynamicColumn;
 
     public ColumnMetadataDescription() {
@@ -44,10 +48,12 @@ public ColumnMetadataDescription(DynamicColumnDescription dynamicColumn) {
         this.dynamicColumn = dynamicColumn;
     }
 
+    @Nullable
     public Set<NamedColumnDescription> getNamedColumns() {
         return namedColumns;
     }
 
+    @Nullable
     public DynamicColumnDescription getDynamicColumn() {
         return dynamicColumn;
     }u}(jW (8adb21b448fa2a5a257bb87fb7a4c6fc9e50e566j catlasdb-client/src/main/java/com/palantir/atlasdb/table/description/render/StreamStoreRenderer.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Frender%2FStreamStoreRenderer.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Frender%2FStreamStoreRenderer.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Frender%2FStreamStoreRenderer.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X
  @@ -362,7 +362,8 @@ private void putMetadataAndHashIndexTask() {
                     line("}");
                     line("putHashIndexTask(t, rowsToStoredMetadata);");
                     line();
-                    line("Map<", StreamMetadataRow, ", StreamMetadata> rowsToMetadata = new HashMap<>();");
+                    line("Map<", StreamMetadataRow, ", StreamMetadata> rowsToMetadata =");
+                    line("        Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());");
                     line("rowsToMetadata.putAll(rowsToStoredMetadata);");
                     line("rowsToMetadata.putAll(rowsToUnstoredMetadata);");
                     line("mdTable.putMetadata(rowsToMetadata);");
@@ -462,7 +463,10 @@ private void getMetadata() {
                             "Map<",
                             StreamMetadataRow,
                             ", StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));");
-                    line("Map<", StreamId, ", StreamMetadata> ret = new HashMap<>();");
+                    line(
+                            "Map<",
+                            StreamId,
+                            ", StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());");
                     line("for (Map.Entry<", StreamMetadataRow, ", StreamMetadata> e : metadatas.entrySet()) {");
                     {
                         line("ret.put(e.getKey().getId(), e.getValue());");
@@ -494,7 +498,7 @@ private void lookupStreamIdsByHash() {
                             ", ",
                             StreamHashAidxColumnValue,
                             "> m = idx.getRowsMultimap(rows);");
-                    line("Map<", StreamId, ", Sha256Hash> hashForStreams = new HashMap<>();");
+                    line("Map<", StreamId, ", Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());");
                     line("for (", StreamHashAidxRow, " r : m.keySet()) {");
                     {
                         line("for (", StreamHashAidxColumnValue, " v : m.get(r)) {");
@@ -535,7 +539,7 @@ private void lookupStreamIdsByHash() {
             private void getHashIndexRowsForHashes() {
                 line("private Set<", StreamHashAidxRow, "> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {");
                 {
-                    line("Set<", StreamHashAidxRow, "> rows = new HashSet<>();");
+                    line("Set<", StreamHashAidxRow, "> rows = Sets.newHashSetWithExpectedSize(hashes.size());");
                     line("for (Sha256Hash h : hashes) {");
                     {
                         line("rows.add(", StreamHashAidxRow, ".of(h));");u}(jW (3759f65a37646f6fbe6a02bde98fbb9e88c58ec5j Zatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CachingTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -15,8 +15,8 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSortedMap;
 import com.google.common.collect.Iterables;
@@ -63,7 +63,7 @@ public CachingTransaction(Transaction delegate) {
 
     public CachingTransaction(Transaction delegate, long maxCachedCells) {
         this.delegate = delegate;
-        cellCache = CacheBuilder.newBuilder()
+        cellCache = Caffeine.newBuilder()
                 .maximumSize(maxCachedCells)
                 .softValues()
                 .recordStats()u}(jW (ffcff3662b5f930a1b2f09879755c6fb0014cd88j `atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ConflictDetectionManager.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManager.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManager.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManager.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X$  @@ -15,9 +15,9 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.CacheLoader;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import java.util.Map;
@@ -39,7 +39,7 @@ public class ConflictDetectionManager {
      *  (This has always been the behavior of this class; I'm simply calling it out)
      */
     public ConflictDetectionManager(CacheLoader<TableReference, Optional<ConflictHandler>> loader) {
-        this.cache = CacheBuilder.newBuilder().maximumSize(100_000).build(loader);
+        this.cache = Caffeine.newBuilder().maximumSize(100_000).build(loader);
     }
 
     public void warmCacheWith(Map<TableReference, Optional<ConflictHandler>> preload) {
@@ -51,6 +51,6 @@ public Map<TableReference, Optional<ConflictHandler>> getCachedValues() {
     }
 
     public Optional<ConflictHandler> get(TableReference tableReference) {
-        return cache.getUnchecked(tableReference);
+        return cache.get(tableReference);
     }
 }u}(jW (11eda8300ddf8db89380d1fcb74052090f9cf9e9j aatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ConflictDetectionManagers.javaj modifiedj K
j Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManagers.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManagers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManagers.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X3
  @@ -15,10 +15,8 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
-import com.google.common.cache.CacheLoader;
 import com.google.common.collect.Maps;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.logging.LoggingArgs;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
@@ -32,12 +30,7 @@ public final class ConflictDetectionManagers {
     private ConflictDetectionManagers() {}
 
     public static ConflictDetectionManager createWithNoConflictDetection() {
-        return new ConflictDetectionManager(new CacheLoader<>() {
-            @Override
-            public Optional<ConflictHandler> load(TableReference tableReference) throws Exception {
-                return Optional.of(ConflictHandler.IGNORE_ALL);
-            }
-        });
+        return new ConflictDetectionManager(tableReference -> Optional.of(ConflictHandler.IGNORE_ALL));
     }
 
     /**
@@ -65,18 +58,15 @@ public static ConflictDetectionManager create(KeyValueService kvs) {
     }
 
     private static ConflictDetectionManager create(KeyValueService kvs, boolean warmCache) {
-        ConflictDetectionManager conflictDetectionManager = new ConflictDetectionManager(new CacheLoader<>() {
-            @Override
-            public Optional<ConflictHandler> load(TableReference tableReference) throws Exception {
-                byte[] metadata = kvs.getMetadataForTable(tableReference);
-                if (metadata.length == 0) {
-                    log.error(
-                            "Tried to make a transaction over a table that has no metadata: {}.",
-                            LoggingArgs.tableRef("tableReference", tableReference));
-                    return Optional.empty();
-                } else {
-                    return Optional.of(getConflictHandlerFromMetadata(metadata));
-                }
+        ConflictDetectionManager conflictDetectionManager = new ConflictDetectionManager(tableReference -> {
+            byte[] metadata = kvs.getMetadataForTable(tableReference);
+            if (metadata.length == 0) {
+                log.error(
+                        "Tried to make a transaction over a table that has no metadata: {}.",
+                        LoggingArgs.tableRef("tableReference", tableReference));
+                return Optional.empty();
+            } else {
+                return Optional.of(getConflictHandlerFromMetadata(metadata));
             }
         });
         if (warmCache) {u}(jW (02903d03f745dbe6781ac51c6ebebc98782ed544j datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/NoDuplicateWritesTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FNoDuplicateWritesTransaction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FNoDuplicateWritesTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FNoDuplicateWritesTransaction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -15,9 +15,8 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.io.BaseEncoding;
 import com.palantir.atlasdb.keyvalue.api.Cell;
@@ -31,7 +30,6 @@
 import java.util.HashMap;
 import java.util.Map;
 import java.util.Set;
-import java.util.concurrent.ExecutionException;
 
 /**
  * Disallows the same cell from being written twice with different values within
@@ -43,13 +41,8 @@ public class NoDuplicateWritesTransaction extends ForwardingTransaction {
 
     final Transaction delegate;
     final ImmutableSet<TableReference> noDoubleWritesTables;
-    final LoadingCache<TableReference, Map<Cell, byte[]>> writes = CacheBuilder.newBuilder()
-            .build(new CacheLoader<TableReference, Map<Cell, byte[]>>() {
-                @Override
-                public Map<Cell, byte[]> load(TableReference input) {
-                    return Collections.synchronizedMap(new HashMap<>());
-                }
-            });
+    final LoadingCache<TableReference, Map<Cell, byte[]>> writes =
+            Caffeine.newBuilder().build(input -> Collections.synchronizedMap(new HashMap<>()));
 
     public NoDuplicateWritesTransaction(Transaction delegate, Iterable<TableReference> noDoubleWritesTables) {
         this.delegate = delegate;
@@ -81,12 +74,7 @@ public void delete(TableReference tableRef, Set<Cell> keys) {
 
     private void validateWrites(TableReference tableRef, Map<Cell, byte[]> values) {
         if (noDoubleWritesTables.contains(tableRef)) {
-            Map<Cell, byte[]> table;
-            try {
-                table = writes.get(tableRef);
-            } catch (ExecutionException e) {
-                throw new RuntimeException(e.getCause());
-            }
+            Map<Cell, byte[]> table = writes.get(tableRef);
             for (Map.Entry<Cell, byte[]> value : values.entrySet()) {
                 byte[] newValue = value.getValue();
                 byte[] oldValue = table.get(value.getKey());u}(jW (5c2151332395c0abdd30bf0e9e81f9ea340e0275j latlasdb-client/src/test/java/com/palantir/atlasdb/table/description/generated/GenericRangeScanTestTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FGenericRangeScanTestTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FGenericRangeScanTestTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FGenericRangeScanTestTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -782,6 +783,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -805,5 +807,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "kqedl2mBeAbedzXlMy+Imw==";
+    static String __CLASS_HASH = "YkaZuzFs8LBGmT3/H/I5eg==";
 }u}(jW (3ca57c907f8e38fa47c80cd5637bb2936c356d75j eatlasdb-client/src/test/java/com/palantir/atlasdb/table/description/generated/RangeScanTestTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FRangeScanTestTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FRangeScanTestTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FRangeScanTestTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -720,6 +721,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -743,5 +745,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "T2bysa8OZ+/WjRrXnIqCPA==";
+    static String __CLASS_HASH = "1i+tNWsmUREmFNoXh6QUeg==";
 }u}(jW (fc7b8e44b9e02cbd50722b39931ad66604c4fc42j atlasdb-commons/build.gradlej modifiedj Kj K j Kj phttps://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fbuild.gradlej ohttps://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fbuild.gradle?ref=86d91aa59465ac0960f8f329fb2087653004b555j XY  @@ -16,6 +16,7 @@ dependencies {
     }
 
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
+    implementation 'com.github.ben-manes.caffeine:caffeine'
     implementation 'com.google.errorprone:error_prone_annotations'
     implementation 'com.google.guava:guava'
     implementation 'com.palantir.safe-logging:safe-logging'u}(jW (7d30fe4fd283df55958201d1f120806d5611aa18j ^atlasdb-commons/src/main/java/com/palantir/common/exception/TableMappingNotFoundException.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fexception%2FTableMappingNotFoundException.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fexception%2FTableMappingNotFoundException.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fexception%2FTableMappingNotFoundException.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -23,4 +23,8 @@ public TableMappingNotFoundException(String msg) {
     public TableMappingNotFoundException(Throwable cause) {
         super(cause);
     }
+
+    public TableMappingNotFoundException(String msg, Throwable cause) {
+        super(msg, cause);
+    }
 }u}(jW (e8b18dde40473e321f4bc1e4cfc195d6eef76a8bj Matlasdb-commons/src/main/java/com/palantir/util/MutuallyExclusiveSetLock.javaj modifiedj K
j Kj K$j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FMutuallyExclusiveSetLock.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FMutuallyExclusiveSetLock.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FMutuallyExclusiveSetLock.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -15,11 +15,9 @@
  */
 package com.palantir.util;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Sets;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.ArrayList;
@@ -54,17 +52,9 @@
  * @author carrino
  */
 public class MutuallyExclusiveSetLock<T> {
-    private final boolean fair;
     private final Comparator<? super T> comparator;
-    private final Set<Thread> threadSet = Sets.newSetFromMap(new ConcurrentHashMap<Thread, Boolean>());
-    private final LoadingCache<T, ReentrantLock> syncMap = CacheBuilder.newBuilder()
-            .weakValues()
-            .build(new CacheLoader<T, ReentrantLock>() {
-                @Override
-                public ReentrantLock load(T key) {
-                    return new ReentrantLock(fair);
-                }
-            });
+    private final Set<Thread> threadSet = ConcurrentHashMap.newKeySet();
+    private final LoadingCache<T, ReentrantLock> syncMap;
 
     /**
      * Constructs a new <code>MutuallyExclusiveSetLock</code>
@@ -102,12 +92,12 @@ public MutuallyExclusiveSetLock(boolean fair) {
      */
     @Deprecated
     public MutuallyExclusiveSetLock(boolean fair, Comparator<? super T> comparator) {
-        this.fair = fair;
         this.comparator = comparator;
+        this.syncMap = Caffeine.newBuilder().weakValues().build(key -> new ReentrantLock(fair));
     }
 
     public static <T extends Comparable<? super T>> MutuallyExclusiveSetLock<T> create(boolean fair) {
-        return new MutuallyExclusiveSetLock<T>(fair);
+        return new MutuallyExclusiveSetLock<>(fair);
     }
 
     /**
@@ -119,7 +109,7 @@ public static <T extends Comparable<? super T>> MutuallyExclusiveSetLock<T> crea
      * @param comparator a <code>java.util.Comparator</code> to use in determining lock order.
      */
     public static <T> MutuallyExclusiveSetLock<T> createWithComparator(boolean fair, Comparator<? super T> comparator) {
-        return new MutuallyExclusiveSetLock<T>(fair, comparator);
+        return new MutuallyExclusiveSetLock<>(fair, comparator);
     }
 
     /**
@@ -130,7 +120,7 @@ public static <T> MutuallyExclusiveSetLock<T> createWithComparator(boolean fair,
      */
     public boolean isLocked(Iterable<T> items) {
         for (T t : items) {
-            ReentrantLock lock = syncMap.getUnchecked(t);
+            ReentrantLock lock = syncMap.get(t);
             if (!lock.isHeldByCurrentThread()) {
                 return false;
             }
@@ -157,7 +147,7 @@ public LockState<T> lockOnObjects(Iterable<T> lockObjects) {
             lock.lock();
         }
         threadSet.add(Thread.currentThread());
-        return new LockState<T>(sortedLocks.values(), this);
+        return new LockState<>(sortedLocks.values(), this);
     }
 
     public LockState<T> lockOnObjectsInterruptibly(Iterable<T> lockObjects) throws InterruptedException {
@@ -170,7 +160,7 @@ public LockState<T> lockOnObjectsInterruptibly(Iterable<T> lockObjects) throws I
                 lock.lockInterruptibly();
                 toUnlock.add(lock);
             }
-            LockState<T> ret = new LockState<T>(sortedLocks.values(), this);
+            LockState<T> ret = new LockState<>(sortedLocks.values(), this);
             threadSet.add(Thread.currentThread());
             toUnlock.clear();
             return ret;
@@ -201,7 +191,7 @@ private ImmutableSet<T> validateLockInput(Iterable<T> lockObjects) {
         }
 
         // verify that the compareTo and equals are consistent in that we are always locking on all objects
-        SortedSet<T> treeSet = new TreeSet<T>(comparator);
+        SortedSet<T> treeSet = new TreeSet<>(comparator);
         treeSet.addAll(hashSet);
         if (treeSet.size() != hashSet.size()) {
             throw new SafeIllegalArgumentException("The number of elements using .equals and compareTo differ. "
@@ -242,9 +232,9 @@ public void unlock(LockState<T> lockState) {
     }
 
     private SortedMap<T, ReentrantLock> getSortedLocks(Collection<T> lockObjects) {
-        final TreeMap<T, ReentrantLock> sortedLocks = new TreeMap<T, ReentrantLock>(comparator);
+        final TreeMap<T, ReentrantLock> sortedLocks = new TreeMap<>(comparator);
         for (T t : lockObjects) {
-            sortedLocks.put(t, syncMap.getUnchecked(t));
+            sortedLocks.put(t, syncMap.get(t));
         }
         return sortedLocks;
     }u}(jW (e01f8f7d37ce43a9eb4672184fb9c3abd935633ej eatlasdb-commons/src/test/java/com/palantir/common/concurrent/CheckedRejectionExecutorServiceTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X#
  @@ -19,31 +19,38 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.doThrow;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.google.common.util.concurrent.Futures;
 import java.util.concurrent.Callable;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.RejectedExecutionException;
 import org.junit.Test;
+import org.mockito.MockMakers;
 
 public class CheckedRejectionExecutorServiceTest {
     private static final Runnable DO_NOTHING = () -> {};
     private static final Callable<Integer> RETURN_ONE = () -> 1;
-    private static final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION = new RejectedExecutionException();
+    private static final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION =
+            new RejectedExecutionException("test");
 
-    private final ExecutorService delegate = mock(ExecutorService.class);
+    private final ExecutorService delegate =
+            mock(ExecutorService.class, withSettings().mockMaker(MockMakers.SUBCLASS));
     private final CheckedRejectionExecutorService checkedRejectionExecutor =
             new CheckedRejectionExecutorService(delegate);
 
     @Test
     public void passesCallThroughExecute() throws CheckedRejectedExecutionException {
         checkedRejectionExecutor.execute(DO_NOTHING);
         verify(delegate, times(1)).execute(DO_NOTHING);
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
@@ -52,22 +59,27 @@ public void passesCallThroughSubmit() throws CheckedRejectedExecutionException {
         assertThat(Futures.getUnchecked(checkedRejectionExecutor.submit(RETURN_ONE)))
                 .isEqualTo(1);
         verify(delegate, times(1)).submit(RETURN_ONE);
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
     public void propagatesRejectionThroughExecute() {
-        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).execute(any());
+        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).execute(any(Runnable.class));
         assertThatThrownBy(() -> checkedRejectionExecutor.execute(DO_NOTHING))
                 .isInstanceOf(CheckedRejectedExecutionException.class)
                 .hasCause(REJECTED_EXECUTION_EXCEPTION);
+        verify(delegate).execute(eq(DO_NOTHING));
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
     @SuppressWarnings("unchecked") // Mocks
     public void propagatesRejectionThroughSubmit() {
-        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).submit(any(Callable.class));
+        when(delegate.submit(any(Callable.class))).thenThrow(REJECTED_EXECUTION_EXCEPTION);
         assertThatThrownBy(() -> checkedRejectionExecutor.submit(RETURN_ONE))
                 .isInstanceOf(CheckedRejectedExecutionException.class)
                 .hasCause(REJECTED_EXECUTION_EXCEPTION);
+        verify(delegate).submit(eq(RETURN_ONE));
+        verifyNoMoreInteractions(delegate);
     }
 }u}(jW (d0f9372cc1f1f0ca2951aae2549e2f3c289903e7j Xatlasdb-commons/src/test/java/com/palantir/common/concurrent/CoalescingSupplierTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -24,6 +24,7 @@
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
@@ -49,12 +50,14 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
+import org.mockito.MockMakers;
 
 @RunWith(Parameterized.class)
 public class CoalescingSupplierTest {
     private static final int DEFAULT_VALUE = 123;
 
-    private final Supplier<Integer> delegate = mock(Supplier.class);
+    private final Supplier<Integer> delegate =
+            mock(Supplier.class, withSettings().mockMaker(MockMakers.SUBCLASS));
     private final FreezableSupplier freezableDelegate = new FreezableSupplier(delegate);
     private final CoalescingSupplier<Integer> coalescing = new CoalescingSupplier<>(freezableDelegate);
 u}(jW (9146e63073d86fe3d770ab7103a6eb65623b8820j Watlasdb-commons/src/test/java/com/palantir/common/proxy/ExperimentRunningProxyTest.javaj modifiedj K	j Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X-  @@ -21,6 +21,7 @@
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import java.lang.reflect.Proxy;
 import java.time.Clock;
@@ -31,18 +32,21 @@
 import java.util.function.Supplier;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class ExperimentRunningProxyTest {
     private static final int EXPERIMENTAL_RESULT = 123;
     private static final int FALLBACK_RESULT = 1;
     private static final RuntimeException RUNTIME_EXCEPTION = new RuntimeException("foo");
 
-    private final IntSupplier experimentalIntSupplier = mock(IntSupplier.class);
-    private final Supplier<IntSupplier> experimentSupplier = mock(Supplier.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private final IntSupplier experimentalIntSupplier = mock(IntSupplier.class, mockSettings);
+    private final Supplier<IntSupplier> experimentSupplier = mock(Supplier.class, mockSettings);
     private final IntSupplier fallbackIntSupplier = () -> FALLBACK_RESULT;
-    private final BooleanSupplier useExperimental = mock(BooleanSupplier.class);
-    private final BooleanSupplier enableFallback = mock(BooleanSupplier.class);
-    private final Clock clock = mock(Clock.class);
+    private final BooleanSupplier useExperimental = mock(BooleanSupplier.class, mockSettings);
+    private final BooleanSupplier enableFallback = mock(BooleanSupplier.class, mockSettings);
+    private final Clock clock = mock(Clock.class, mockSettings);
     private final AtomicLong errorCounter = new AtomicLong();
 
     private final IntSupplier proxyInstance = intSupplierForProxy(new ExperimentRunningProxy<>(u}(jW (b0f2716a61e018a00bbe37c55b0a8985af943d96j Watlasdb-commons/src/test/java/com/palantir/common/proxy/PredicateSwitchedProxyTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X~  @@ -19,14 +19,18 @@
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.withSettings;
 
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.function.IntConsumer;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class PredicateSwitchedProxyTest {
-    private final IntConsumer decorated = mock(IntConsumer.class);
-    private final IntConsumer delegate = mock(IntConsumer.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private final IntConsumer decorated = mock(IntConsumer.class, mockSettings);
+    private final IntConsumer delegate = mock(IntConsumer.class, mockSettings);
 
     private final AtomicBoolean atomicBoolean = new AtomicBoolean(false);
 u}(jW (afb4f7f151215eb0eb16fab26719c6f0358957e5j `atlasdb-commons/src/test/java/com/palantir/common/proxy/ReplaceIfExceptionMatchingProxyTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.java/     j https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j Xl  @@ -29,16 +29,17 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.mockito.Mock;
+import org.mockito.MockMakers;
 import org.mockito.junit.MockitoJUnitRunner;
 
 // Mock is used as a convenient supplier, alternatives are rather verbose
 @SuppressWarnings("DirectInvocationOnMock")
 @RunWith(MockitoJUnitRunner.class)
 public class ReplaceIfExceptionMatchingProxyTest {
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private TestInterface delegate;
 
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private Supplier<TestInterface> supplier;
 
     interface TestInterface {u}(jW (d8fe3c284ed462a646f9db9df6e46865f71c8b7fj Oatlasdb-commons/src/test/java/com/palantir/util/CachedComposedSupplierTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -16,7 +16,9 @@
 package com.palantir.util;
 
 import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.concurrent.ExecutorService;
@@ -25,7 +27,7 @@
 import java.util.function.Supplier;
 import org.junit.Before;
 import org.junit.Test;
-import org.mockito.Mockito;
+import org.mockito.MockMakers;
 
 public class CachedComposedSupplierTest {
     private long counter;
@@ -37,7 +39,7 @@ public class CachedComposedSupplierTest {
     public void setup() {
         counter = 0;
         supplierCounter = 0;
-        mockVersionedSupplier = Mockito.mock(Supplier.class);
+        mockVersionedSupplier = mock(Supplier.class, withSettings().mockMaker(MockMakers.SUBCLASS));
         testSupplier = new CachedComposedSupplier<>(this::countingFunction, mockVersionedSupplier);
     }
 u}(jW (21ad962d9f363b09efeaba7f674e27e337cb763aj Katlasdb-commons/src/test/java/com/palantir/util/SafeShutdownRunnerTest.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -24,6 +24,7 @@
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import java.time.Duration;
@@ -32,14 +33,17 @@
 import java.util.stream.Stream;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class SafeShutdownRunnerTest {
     private static final RuntimeException EXCEPTION_1 = new RuntimeException("test");
     private static final RuntimeException EXCEPTION_2 = new RuntimeException("bleh");
 
-    private Runnable mockRunnable = mock(Runnable.class);
-    private Runnable throwingRunnable = mock(Runnable.class);
-    private Runnable blockingUninterruptibleRunnable = mock(Runnable.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private Runnable mockRunnable = mock(Runnable.class, mockSettings);
+    private Runnable throwingRunnable = mock(Runnable.class, mockSettings);
+    private Runnable blockingUninterruptibleRunnable = mock(Runnable.class, mockSettings);
 
     @Before
     public void setupMocks() {u}(jW (66bef959146e2dc5dd5452e6f9606c9e4120c4f4j Datlasdb-commons/src/test/java/com/palantir/util/TimedRunnerTest.javaj modifiedj K	j Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X	  @@ -23,19 +23,23 @@
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.util.TimedRunner.TaskContext;
 import java.time.Duration;
 import java.util.concurrent.Callable;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public final class TimedRunnerTest {
     private static final RuntimeException EXCEPTION_1 = new RuntimeException("test");
     private static final RuntimeException EXCEPTION_2 = new RuntimeException("bleh");
 
-    private Runnable noOpRunnable = mock(Runnable.class);
-    private Runnable throwingRunnable = mock(Runnable.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private Runnable noOpRunnable = mock(Runnable.class, mockSettings);
+    private Runnable throwingRunnable = mock(Runnable.class, mockSettings);
 
     @Before
     public void setupMocks() {
@@ -46,7 +50,7 @@ public void setupMocks() {
     public void runnerRunsOneTask() throws Exception {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
 
-        Callable<Integer> task = mock(Callable.class);
+        Callable<Integer> task = mock(Callable.class, mockSettings);
         when(task.call()).thenReturn(5);
         int result = runner.run(TaskContext.create(task, noOpRunnable));
 
@@ -58,7 +62,7 @@ public void runnerRunsOneTask() throws Exception {
     @Test
     public void exceptionsAreThrownWhenRunningSingleton() {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
-        Runnable failureHandler = mock(Runnable.class);
+        Runnable failureHandler = mock(Runnable.class, mockSettings);
 
         assertThatThrownBy(() -> runner.run(TaskContext.createRunnable(throwingRunnable, failureHandler)))
                 .isEqualTo(EXCEPTION_1);
@@ -68,7 +72,7 @@ public void exceptionsAreThrownWhenRunningSingleton() {
     @Test
     public void correctSuppressedExceptionsAreThrownIfFailureHandlerThrows() {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
-        Runnable failureHandler = mock(Runnable.class);
+        Runnable failureHandler = mock(Runnable.class, mockSettings);
         doThrow(EXCEPTION_2).when(failureHandler).run();
 
         assertThatThrownBy(() -> runner.run(TaskContext.createRunnable(throwingRunnable, failureHandler)))u}(jW (1f8d140f2fcd68b79edcbd2a6f52017316caa266j ^atlasdb-config/src/main/java/com/palantir/atlasdb/config/ShouldRunBackgroundSweepSupplier.javaj removedj K j K*j K*j https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.javaj https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j X  @@ -1,42 +0,0 @@
-/*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.config;
-
-import java.util.function.BooleanSupplier;
-import java.util.function.Supplier;
-
-/**
- * Synthesises provided install and runtime configurations, and uses this to decide whether the background sweeper
- * should run. Specifically:
- *
- * <ul>
- *     <li>if the background sweeper has been explicitly enabled or disabled, use that setting;</li>
- *     <li>otherwise disable background sweep</li>
- * </ul>
- */
-public class ShouldRunBackgroundSweepSupplier implements BooleanSupplier {
-    private final Supplier<SweepConfig> runtimeConfigSupplier;
-
-    public ShouldRunBackgroundSweepSupplier(Supplier<SweepConfig> runtimeConfig) {
-        this.runtimeConfigSupplier = runtimeConfig;
-    }
-
-    @Override
-    public boolean getAsBoolean() {
-        return runtimeConfigSupplier.get().enabled().orElse(false);
-    }
-}u}(jW (8e383ff5530f7a77f005d2ff7e7e17df90fef15bj Iatlasdb-config/src/main/java/com/palantir/atlasdb/config/SweepConfig.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -34,7 +34,10 @@ public abstract class SweepConfig {
      * If unspecified, AtlasDB will decide whether to run the background sweeper or not. This may depend on factors
      * elsewhere in configuration.
      */
-    public abstract Optional<Boolean> enabled();
+    @Value.Default
+    public boolean enabled() {
+        return false;
+    }
 
     // TODO handle live reload
     /**u}(jW (df57e9fd3c6376b49fd3c1adb77db41b476aeffej datlasdb-config/src/main/java/com/palantir/atlasdb/factory/DefaultLockAndTimestampServiceFactory.javaj modifiedj K6j Kj KIj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X$  @@ -96,6 +96,7 @@
 import java.util.Set;
 import java.util.concurrent.CompletableFuture;
 import java.util.function.Consumer;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import javax.ws.rs.ClientErrorException;
 
@@ -107,7 +108,7 @@ public final class DefaultLockAndTimestampServiceFactory implements LockAndTimes
     private final MetricsManager metricsManager;
     private final AtlasDbConfig config;
     private final Refreshable<AtlasDbRuntimeConfig> runtimeConfig;
-    private final Consumer<Object> env;
+    private final Consumer<Object> registrar;
     private final Supplier<LockService> lock;
     private final Supplier<ManagedTimestampService> time;
     private final TimestampStoreInvalidator invalidator;
@@ -118,11 +119,13 @@ public final class DefaultLockAndTimestampServiceFactory implements LockAndTimes
     private final Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders;
     private final Set<Schema> schemas;
 
+    private final Function<TimelockService, TimeLockClient> timelockClientFactory;
+
     public DefaultLockAndTimestampServiceFactory(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -132,10 +135,42 @@ public DefaultLockAndTimestampServiceFactory(
             Optional<TimeLockFeedbackBackgroundTask> timeLockFeedbackBackgroundTask,
             Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders,
             Set<Schema> schemas) {
+        this(
+                metricsManager,
+                config,
+                runtimeConfig,
+                registrar,
+                lock,
+                time,
+                invalidator,
+                userAgent,
+                lockDiagnosticComponents,
+                reloadingFactory,
+                timeLockFeedbackBackgroundTask,
+                timelockRequestBatcherProviders,
+                schemas,
+                TimeLockClient::createDefault);
+    }
+
+    public DefaultLockAndTimestampServiceFactory(
+            MetricsManager metricsManager,
+            AtlasDbConfig config,
+            Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
+            Consumer<Object> registrar,
+            Supplier<LockService> lock,
+            Supplier<ManagedTimestampService> time,
+            TimestampStoreInvalidator invalidator,
+            UserAgent userAgent,
+            Optional<LockDiagnosticComponents> lockDiagnosticComponents,
+            ReloadingFactory reloadingFactory,
+            Optional<TimeLockFeedbackBackgroundTask> timeLockFeedbackBackgroundTask,
+            Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders,
+            Set<Schema> schemas,
+            Function<TimelockService, TimeLockClient> timelockClientFactory) {
         this.metricsManager = metricsManager;
         this.config = config;
         this.runtimeConfig = runtimeConfig;
-        this.env = env;
+        this.registrar = registrar;
         this.lock = lock;
         this.time = time;
         this.invalidator = invalidator;
@@ -145,6 +180,7 @@ public DefaultLockAndTimestampServiceFactory(
         this.timeLockFeedbackBackgroundTask = timeLockFeedbackBackgroundTask;
         this.timelockRequestBatcherProviders = timelockRequestBatcherProviders;
         this.schemas = schemas;
+        this.timelockClientFactory = timelockClientFactory;
     }
 
     @Override
@@ -153,7 +189,7 @@ public LockAndTimestampServices createLockAndTimestampServices() {
                 metricsManager,
                 config,
                 runtimeConfig,
-                env,
+                registrar,
                 lock,
                 time,
                 invalidator,
@@ -166,9 +202,8 @@ public LockAndTimestampServices createLockAndTimestampServices() {
         return withMetrics(metricsManager, withRefreshingLockService(lockAndTimestampServices));
     }
 
-    private static LockAndTimestampServices withRefreshingLockService(
-            LockAndTimestampServices lockAndTimestampServices) {
-        TimeLockClient timeLockClient = TimeLockClient.createDefault(lockAndTimestampServices.timelock());
+    private LockAndTimestampServices withRefreshingLockService(LockAndTimestampServices lockAndTimestampServices) {
+        TimeLockClient timeLockClient = timelockClientFactory.apply(lockAndTimestampServices.timelock());
         ProfilingTimelockService profilingService = ProfilingTimelockService.create(timeLockClient);
         return ImmutableLockAndTimestampServices.builder()
                 .from(lockAndTimestampServices)
@@ -198,7 +233,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -211,7 +246,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
         AtlasDbRuntimeConfig initialRuntimeConfig = runtimeConfig.get();
         assertNoSpuriousTimeLockBlockInRuntimeConfig(config, initialRuntimeConfig);
         if (config.leader().isPresent()) {
-            return createRawLeaderServices(metricsManager, config.leader().get(), env, lock, time, userAgent);
+            return createRawLeaderServices(metricsManager, config.leader().get(), registrar, lock, time, userAgent);
         } else if (config.timestamp().isPresent() && config.lock().isPresent()) {
             return createRawRemoteServices(metricsManager, config, runtimeConfig, userAgent);
         } else if (TransactionManagers.isUsingTimeLock(config, initialRuntimeConfig)) {
@@ -227,7 +262,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
                     timelockRequestBatcherProviders,
                     knownSchemas);
         } else {
-            return createRawEmbeddedServices(metricsManager, env, lock, time);
+            return createRawEmbeddedServices(metricsManager, registrar, lock, time);
         }
     }
 
@@ -412,13 +447,13 @@ private static Supplier<InternalMultiClientConjureTimelockService> getMultiClien
     private static LockAndTimestampServices createRawLeaderServices(
             MetricsManager metricsManager,
             LeaderConfig leaderConfig,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             UserAgent userAgent) {
         // Create local services, that may or may not end up being registered in an Consumer<Object>.
         LocalPaxosServices localPaxosServices =
-                Leaders.createAndRegisterLocalServices(metricsManager, env, leaderConfig, userAgent);
+                Leaders.createAndRegisterLocalServices(metricsManager, registrar, leaderConfig, userAgent);
 
         LeadershipCoordinator leadershipCoordinator = localPaxosServices.leadershipCoordinator();
         LockService localLock =
@@ -432,9 +467,9 @@ private static LockAndTimestampServices createRawLeaderServices(
         TimestampService localTime = getTimestampFacade(managedTimestampProxy);
         TimestampManagementService localManagement = getTimestampManagementFacade(managedTimestampProxy);
 
-        env.accept(localLock);
-        env.accept(localTime);
-        env.accept(localManagement);
+        registrar.accept(localLock);
+        registrar.accept(localTime);
+        registrar.accept(localManagement);
 
         // Create remote services, that may end up calling our own local services.
         ImmutableServerListConfig serverListConfig = ImmutableServerListConfig.builder()
@@ -586,7 +621,7 @@ private static LockAndTimestampServices createRawRemoteServices(
 
     private static LockAndTimestampServices createRawEmbeddedServices(
             MetricsManager metricsManager,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> managedTimestampServiceSupplier) {
         LockService lockService =
@@ -599,9 +634,9 @@ private static LockAndTimestampServices createRawEmbeddedServices(
         TimestampManagementService timestampManagementService = ServiceCreator.instrumentService(
                 metricsManager.getRegistry(), managedTimestampService, TimestampManagementService.class);
 
-        env.accept(lockService);
-        env.accept(timeService);
-        env.accept(timestampManagementService);
+        registrar.accept(lockService);
+        registrar.accept(timeService);
+        registrar.accept(timestampManagementService);
 
         return ImmutableLockAndTimestampServices.builder()
                 .lock(lockService)u}(jW (92cee3c0379971de0a91702380e2b466da96ff6bj Fatlasdb-config/src/main/java/com/palantir/atlasdb/factory/Leaders.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -79,13 +79,13 @@ private Leaders() {
      * service.
      */
     public static LocalPaxosServices createAndRegisterLocalServices(
-            MetricsManager metricsManager, Consumer<Object> env, LeaderConfig config, UserAgent userAgent) {
+            MetricsManager metricsManager, Consumer<Object> registrar, LeaderConfig config, UserAgent userAgent) {
         LocalPaxosServices localPaxosServices = createInstrumentedLocalServices(metricsManager, config, userAgent);
 
-        env.accept(localPaxosServices.ourAcceptor());
-        env.accept(localPaxosServices.ourLearner());
-        env.accept(localPaxosServices.localPingableLeader());
-        env.accept(new NotCurrentLeaderExceptionMapper());
+        registrar.accept(localPaxosServices.ourAcceptor());
+        registrar.accept(localPaxosServices.ourLearner());
+        registrar.accept(localPaxosServices.localPingableLeader());
+        registrar.accept(new NotCurrentLeaderExceptionMapper());
         return localPaxosServices;
     }
 u}(jW (37473508e06c194b315e01d89ff08da1a5152705j Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javaj modifiedj Kj K$j K6j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XQ  @@ -40,7 +40,6 @@
 import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
 import com.palantir.atlasdb.config.ImmutableAtlasDbConfig;
 import com.palantir.atlasdb.config.ServerListConfig;
-import com.palantir.atlasdb.config.ShouldRunBackgroundSweepSupplier;
 import com.palantir.atlasdb.config.SweepConfig;
 import com.palantir.atlasdb.config.TimeLockClientConfig;
 import com.palantir.atlasdb.config.TimeLockRequestBatcherProviders;
@@ -79,7 +78,6 @@
 import com.palantir.atlasdb.sweep.SpecificTableSweeper;
 import com.palantir.atlasdb.sweep.SweepBatchConfig;
 import com.palantir.atlasdb.sweep.SweepTaskRunner;
-import com.palantir.atlasdb.sweep.SweeperServiceImpl;
 import com.palantir.atlasdb.sweep.metrics.LegacySweepMetrics;
 import com.palantir.atlasdb.sweep.queue.MultiTableSweepQueueWriter;
 import com.palantir.atlasdb.sweep.queue.TargetedSweeper;
@@ -131,6 +129,7 @@
 import com.palantir.lock.client.TimeLockClient;
 import com.palantir.lock.client.metrics.TimeLockFeedbackBackgroundTask;
 import com.palantir.lock.impl.LockServiceImpl;
+import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -200,6 +199,11 @@ boolean allSafeForLogging() {
         return false;
     }
 
+    @Value.Default
+    Function<TimelockService, TimeLockClient> defaultTimelockClientFactory() {
+        return TimeLockClient::createDefault;
+    }
+
     abstract Optional<LockAndTimestampServiceFactory> lockAndTimestampServiceFactory();
 
     abstract UserAgent userAgent();
@@ -387,7 +391,8 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                         reloadingFactory(),
                         timeLockFeedbackBackgroundTask,
                         timelockRequestBatcherProviders(),
-                        schemas()));
+                        schemas(),
+                        defaultTimelockClientFactory()));
         LockAndTimestampServices lockAndTimestampServices = factory.createLockAndTimestampServices();
         adapter.setTimestampService(lockAndTimestampServices.managedTimestampService());
 
@@ -534,7 +539,7 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
         transactionManager.registerClosingCallback(targetedSweep::close);
 
         initializeCloseable(
-                () -> initializeSweepEndpointAndBackgroundProcess(
+                () -> initializeSweepBackgroundProcess(
                         metricsManager,
                         config(),
                         runtime,
@@ -809,11 +814,11 @@ static boolean timeLockMigrationCompleteIfNeeded(LockAndTimestampServices lockAn
                 .orElse(true);
     }
 
-    private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess(
+    private static BackgroundSweeperImpl initializeSweepBackgroundProcess(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Supplier<AtlasDbRuntimeConfig> runtimeConfigSupplier,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             KeyValueService kvs,
             TransactionService transactionService,
             CleanupFollower follower,
@@ -835,21 +840,19 @@ private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess
                 metricsManager,
                 () -> getSweepBatchConfig(runtimeConfigSupplier.get().sweep()));
 
-        SpecificTableSweeper specificTableSweeper = initializeSweepEndpoint(
-                env,
-                kvs,
+        SpecificTableSweeper specificTableSweeper = SpecificTableSweeper.create(
                 transactionManager,
+                kvs,
                 sweepRunner,
+                SweepTableFactory.of(),
                 sweepPerfLogger,
                 sweepMetrics,
-                config.initializeAsync(),
-                sweepBatchConfigSource);
+                config.initializeAsync());
 
         BackgroundSweeperImpl backgroundSweeper = BackgroundSweeperImpl.create(
                 metricsManager,
                 sweepBatchConfigSource,
-                new ShouldRunBackgroundSweepSupplier(
-                        () -> runtimeConfigSupplier.get().sweep())::getAsBoolean,
+                () -> runtimeConfigSupplier.get().sweep().enabled(),
                 () -> runtimeConfigSupplier.get().sweep().sweepThreads(),
                 () -> runtimeConfigSupplier.get().sweep().pauseMillis(),
                 () -> runtimeConfigSupplier.get().sweep().sweepPriorityOverrides(),
@@ -864,27 +867,6 @@ private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess
         return backgroundSweeper;
     }
 
-    private static SpecificTableSweeper initializeSweepEndpoint(
-            Consumer<Object> env,
-            KeyValueService kvs,
-            TransactionManager transactionManager,
-            SweepTaskRunner sweepRunner,
-            BackgroundSweeperPerformanceLogger sweepPerfLogger,
-            LegacySweepMetrics sweepMetrics,
-            boolean initializeAsync,
-            AdjustableSweepBatchConfigSource sweepBatchConfigSource) {
-        SpecificTableSweeper specificTableSweeper = SpecificTableSweeper.create(
-                transactionManager,
-                kvs,
-                sweepRunner,
-                SweepTableFactory.of(),
-                sweepPerfLogger,
-                sweepMetrics,
-                initializeAsync);
-        env.accept(new SweeperServiceImpl(specificTableSweeper, sweepBatchConfigSource));
-        return specificTableSweeper;
-    }
-
     private static SweepBatchConfig getSweepBatchConfig(SweepConfig sweepConfig) {
         return ImmutableSweepBatchConfig.builder()
                 .maxCellTsPairsToExamine(sweepConfig.readLimit())
@@ -940,7 +922,7 @@ public static LockAndTimestampServices createLockAndTimestampServicesForCli(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfigSupplier,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -950,7 +932,7 @@ public static LockAndTimestampServices createLockAndTimestampServicesForCli(
                         metricsManager,
                         config,
                         runtimeConfigSupplier,
-                        env,
+                        registrar,
                         lock,
                         time,
                         invalidator,u}(jW (5d339f0ca1b1d528743d2246718cc8b977604ba6j Vatlasdb-config/src/test/java/com/palantir/atlasdb/config/AtlasDbRuntimeConfigTest.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -21,18 +21,6 @@
 import org.junit.Test;
 
 public class AtlasDbRuntimeConfigTest {
-    @Test
-    public void configDoesNotSpecifySweepByDefault() {
-        AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.defaultRuntimeConfig();
-        assertThat(config.sweep().enabled()).isEmpty();
-    }
-
-    @Test
-    public void configWithoutSweepHasSweepDisabled() {
-        AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.withSweepDisabled();
-        assertThat(config.sweep().enabled()).contains(false);
-    }
-
     @Test
     public void configWithoutSpecifyingStreamPersistenceConfigHasDefaultConfig() {
         AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.defaultRuntimeConfig();u}(jW (99709ed401e5f0d37ebfb9169ea783f5f6e19c95j batlasdb-config/src/test/java/com/palantir/atlasdb/config/ShouldRunBackgroundSweepSupplierTest.javaj removedj K j Kfj Kfj https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.javaj https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j X]  @@ -1,102 +0,0 @@
-/*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.config;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
-
-import com.palantir.atlasdb.sweep.queue.config.ImmutableTargetedSweepRuntimeConfig;
-import com.palantir.atlasdb.sweep.queue.config.TargetedSweepRuntimeConfig;
-import java.util.function.Supplier;
-import org.junit.Test;
-
-public class ShouldRunBackgroundSweepSupplierTest {
-
-    private static final TargetedSweepRuntimeConfig TARGETED_SWEEP_ENABLED =
-            ImmutableTargetedSweepRuntimeConfig.builder().enabled(true).build();
-    private static final TargetedSweepRuntimeConfig TARGETED_SWEEP_DISABLED =
-            ImmutableTargetedSweepRuntimeConfig.builder().enabled(false).build();
-
-    private static final SweepConfig BACKGROUND_SWEEP_ENABLED =
-            ImmutableSweepConfig.builder().enabled(true).build();
-    private static final SweepConfig BACKGROUND_SWEEP_UNSET = SweepConfig.defaultSweepConfig();
-    private static final SweepConfig BACKGROUND_SWEEP_DISABLED = SweepConfig.disabled();
-
-    @Test
-    public void disableBackgroundSweepIfBackgroundSweepExplicitlyDisabled() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_DISABLED))
-                .isFalse();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_DISABLED))
-                .isFalse();
-    }
-
-    @Test
-    public void enableBackgroundSweepIfBackgroundSweepExplicitlyEnabled() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_ENABLED))
-                .isTrue();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED))
-                .isTrue();
-    }
-
-    @Test
-    public void disableBackgroundSweepIfNotSet() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET))
-                .isFalse();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET))
-                .isFalse();
-    }
-
-    // Mock assignment known to be safe
-    // Direct mock invocation is safe here as we're using it as a convenient way to create a supplier
-    @SuppressWarnings({"unchecked", "DirectInvocationOnMock"})
-    @Test
-    public void liveReload() {
-        Supplier<AtlasDbRuntimeConfig> runtimeConfigSupplier = mock(Supplier.class);
-        when(runtimeConfigSupplier.get())
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET))
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET))
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED));
-
-        ShouldRunBackgroundSweepSupplier supplier = new ShouldRunBackgroundSweepSupplier(
-                () -> runtimeConfigSupplier.get().sweep());
-
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET")
-                .isFalse();
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET")
-                .isFalse();
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED")
-                .isTrue();
-    }
-
-    private static boolean runBackgroundSweep(TargetedSweepRuntimeConfig tsRuntime, SweepConfig bgSweepConfig) {
-        return new ShouldRunBackgroundSweepSupplier(
-                        () -> createRuntimeConfig(tsRuntime, bgSweepConfig).sweep())
-                .getAsBoolean();
-    }
-
-    private static AtlasDbRuntimeConfig createRuntimeConfig(
-            TargetedSweepRuntimeConfig targetedSweepRuntimeConfig, SweepConfig backgroundSweepConfig) {
-        return ImmutableAtlasDbRuntimeConfig.builder()
-                .targetedSweep(targetedSweepRuntimeConfig)
-                .sweep(backgroundSweepConfig)
-                .build();
-    }
-}u}(jW (7b553ba97fea29cc28f91d035e5cbe8060e8cae3j hatlasdb-config/src/test/java/com/palantir/atlasdb/config/TransactionManagersAsyncInitializationTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -45,7 +45,7 @@ public class TransactionManagersAsyncInitializationTest {
     private static final String USER_AGENT_VERSION = "3.1415926.5358979";
     private static final UserAgent USER_AGENT = UserAgent.of(UserAgent.Agent.of(USER_AGENT_NAME, USER_AGENT_VERSION));
 
-    private final Consumer<Object> environment = mock(Consumer.class);
+    private final Consumer<Object> registrar = mock(Consumer.class);
 
     @Test
     public void asyncInitializationEventuallySucceeds() {
@@ -59,7 +59,7 @@ public void asyncInitializationEventuallySucceeds() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema())
                 .build()
                 .serializable();
@@ -84,7 +84,7 @@ public void transactionManagersBuilderDoesNotThrowIfAsyncInitialisationFailsRepe
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema());
 
         assertThatCode(() -> build.build().serializable()).doesNotThrowAnyException();u}(jW (830982ceb08e4589ac04405c25af4ab7902e61faj )atlasdb-container-test-utils/build.gradlej modifiedj Kj K j Kj }https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-container-test-utils%2Fbuild.gradlej |https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-container-test-utils%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-container-test-utils%2Fbuild.gradle?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -7,6 +7,7 @@ dependencies {
     implementation project(':atlasdb-tests-shared')
     implementation project(":flake-rule")
 
+    implementation 'com.github.ben-manes.caffeine:caffeine'
     implementation 'com.google.guava:guava'
     implementation 'com.palantir.docker.compose:docker-compose-rule-core'
     implementation 'com.palantir.docker.compose:docker-compose-rule-junit4'u}(jW (67f1ebfdab7e84e38c746fafcd1c8d3c0d58bbeej Zatlasdb-container-test-utils/src/main/java/com/palantir/atlasdb/containers/Containers.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FContainers.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FContainers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FContainers.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X	  @@ -15,11 +15,10 @@
  */
 package com.palantir.atlasdb.containers;
 
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Throwables;
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
 import com.google.common.collect.Sets;
 import com.palantir.docker.compose.DockerComposeRule;
 import com.palantir.docker.compose.configuration.DockerComposeFiles;
@@ -56,7 +55,7 @@ public class Containers extends ExternalResource {
     private static final Set<Container> containersToStart = new HashSet<>();
     private static final Set<Container> containersStarted = new HashSet<>();
     private static final LoadingCache<String, String> dockerComposeFilesToTemporaryCopies =
-            CacheBuilder.newBuilder().build(CacheLoader.from(Containers::getDockerComposeFile));
+            Caffeine.newBuilder().build(Containers::getDockerComposeFile);
 
     private static volatile DockerComposeRule dockerComposeRule;
     private static volatile InterruptibleFileLogCollector currentLogCollector;
@@ -132,10 +131,11 @@ private void setupLogCollectorForLogDirectory() {
     }
 
     private void setupDockerComposeRule() throws InterruptedException, IOException {
-        Set<String> containerDockerComposeFiles = containersToStart.stream()
+        DockerComposeFiles files = DockerComposeFiles.from(containersToStart.stream()
                 .map(Container::getDockerComposeFile)
-                .map(dockerComposeFilesToTemporaryCopies::getUnchecked)
-                .collect(Collectors.toSet());
+                .map(dockerComposeFilesToTemporaryCopies::get)
+                .distinct()
+                .toArray(String[]::new));
 
         Map<String, String> environment = containersToStart.stream()
                 .flatMap(container -> container.getEnvironment().entrySet().stream())
@@ -145,7 +145,7 @@ private void setupDockerComposeRule() throws InterruptedException, IOException {
                 DockerMachine.localMachine().withEnvironment(environment).build();
 
         dockerComposeRule = DockerComposeRule.builder()
-                .files(DockerComposeFiles.from(containerDockerComposeFiles.toArray(new String[0])))
+                .files(files)
                 .projectName(PROJECT_NAME)
                 .machine(machine)
                 .logCollector(currentLogCollector)u}(jW (9c5d0752d26338a6bd7a12031a481f8b1013f2d0j \atlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/HikariCPConnectionManager.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -246,20 +246,21 @@ private void testDataSource(HikariDataSource dataSourcePool) throws SQLException
      * @throws SQLException if connection is invalid and cannot be used.
      */
     private void testConnection(Connection connection) throws SQLException {
-        if (connConfig.getTestQuery().isEmpty()) {
-            if (!connection.isValid(connConfig.getSocketTimeoutSeconds())) {
-                throw new SQLException(String.format("Connection %s is not valid", connection));
-            }
-        } else {
-            try (PreparedStatement stmt = connection.prepareStatement(connConfig.getTestQuery())) {
+        if (connConfig.getTestQuery().isPresent()) {
+            try (PreparedStatement stmt =
+                    connection.prepareStatement(connConfig.getTestQuery().get())) {
                 stmt.setFetchSize(1); // only need first row result
                 ResultSet rs = stmt.executeQuery();
                 if (!rs.next()) {
                     throw new SQLException(String.format(
                             "Connection %s could not be validated as it did not return any results for test query %s",
-                            connection, connConfig.getTestQuery()));
+                            connection, connConfig.getTestQuery().get()));
                 }
             }
+        } else {
+            if (!connection.isValid(connConfig.getSocketTimeoutSeconds())) {
+                throw new SQLException(String.format("Connection %s is not valid", connection));
+            }
         }
     }
 u}(jW (e1fd2afeb410162c7eb111eb2ed045144d3511afj Zatlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/ConnectionConfig.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -58,10 +58,7 @@ public MaskedValue getDbPassword() {
 
     public abstract String getDriverClass();
 
-    @Value.Default
-    public String getTestQuery() {
-        return "";
-    }
+    public abstract Optional<String> getTestQuery();
 
     @JsonIgnore
     @Value.Derived
@@ -185,8 +182,8 @@ public HikariConfig getHikariConfig() {
 
         initializeFailTimeoutMillis().ifPresent(config::setInitializationFailTimeout);
 
-        if (!getTestQuery().isEmpty()) {
-            config.setConnectionTestQuery(getTestQuery());
+        if (getTestQuery().isPresent()) {
+            config.setConnectionTestQuery(getTestQuery().get());
         }
 
         if (getSqlExceptionOverrideClass().isPresent()) {u}(jW (b93a15e152b0661235eae7311c65e340f0766e0aj atlasdb-dbkvs/build.gradlej modifiedj Kj K j Kj nhttps://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fbuild.gradlej mhttps://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fbuild.gradle?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -14,6 +14,7 @@ dependencies {
   implementation "com.palantir.nylon:nylon-threads"
   implementation 'com.fasterxml.jackson.core:jackson-annotations'
   implementation 'com.fasterxml.jackson.core:jackson-databind'
+  implementation 'com.github.ben-manes.caffeine:caffeine'
   implementation 'com.google.auto.service:auto-service-annotations'
   implementation 'com.google.errorprone:error_prone_annotations'
   implementation 'com.google.guava:guava'u}(jW (5ae1b103b3cc86213d6ae94812960a7d892efa6ej \atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/OracleTableNameUnmapper.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapper.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapper.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapper.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -15,8 +15,8 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs;
 
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -28,6 +28,7 @@
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.nexus.db.sql.AgnosticResultSet;
@@ -37,17 +38,16 @@
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
-import java.util.concurrent.ExecutionException;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 
 class OracleTableNameUnmapper {
     private static final SafeLogger log = SafeLoggerFactory.get(OracleTableNameUnmapper.class);
 
-    private Cache<String, String> unmappingCache;
+    private final Cache<String, String> unmappingCache;
 
     OracleTableNameUnmapper() {
-        unmappingCache = CacheBuilder.newBuilder().build();
+        unmappingCache = Caffeine.newBuilder().build();
     }
 
     @SuppressWarnings("checkstyle:NestedTryDepth")
@@ -56,22 +56,26 @@ public String getShortTableNameFromMappingTable(
             throws TableMappingNotFoundException {
         String fullTableName = tablePrefix + DbKvs.internalTableName(tableRef);
         try {
-            return unmappingCache.get(fullTableName, () -> {
+            return unmappingCache.get(fullTableName, tableNameKey -> {
                 SqlConnection conn = connectionSupplier.get();
                 AgnosticResultSet results = conn.selectResultSetUnregisteredQuery(
                         "SELECT short_table_name "
                                 + "FROM " + AtlasDbConstants.ORACLE_NAME_MAPPING_TABLE
                                 + " WHERE table_name = ?",
-                        fullTableName);
+                        tableNameKey);
                 if (results.size() == 0) {
-                    throw new TableMappingNotFoundException("The table " + fullTableName + " does not have a mapping."
-                            + "This might be because the table does not exist.");
+                    throw new SafeIllegalStateException(
+                            "The table does not have a mapping. This might be because the table does not exist.",
+                            UnsafeArg.of("tableName", tableNameKey));
                 }
 
                 return Iterables.getOnlyElement(results.rows()).getString("short_table_name");
             });
-        } catch (ExecutionException e) {
-            throw new TableMappingNotFoundException(e.getCause());
+        } catch (SafeIllegalStateException e) {
+            throw new TableMappingNotFoundException(
+                    "The table " + fullTableName
+                            + " does not have a mapping. This might be because the table does not exist.",
+                    e);
         }
     }
 u}(jW (2a91fe0d6e86187e3690c8655b64ea385b2f02faj Satlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/FullQuery.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j Xe  @@ -35,11 +35,6 @@ public Builder append(String query) {
             return this;
         }
 
-        public Builder append(long number) {
-            queryBuilder.append(number);
-            return this;
-        }
-
         public Builder append(String query, Object arg) {
             queryBuilder.append(query);
             argsBuilder.add(arg);u}(jW (dd961f490b5a264afcf9ab9af27ad5f4a20d2264j \atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/TableMetadataCache.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableMetadataCache.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableMetadataCache.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableMetadataCache.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X:  @@ -15,8 +15,8 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs.impl;
 
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import java.time.Duration;
@@ -25,7 +25,7 @@
 public class TableMetadataCache {
     private static final TableMetadata EMPTY = TableMetadata.allDefault();
 
-    private final Cache<TableReference, TableMetadata> cache = CacheBuilder.newBuilder()
+    private final Cache<TableReference, TableMetadata> cache = Caffeine.newBuilder()
             .maximumSize(10000)
             .expireAfterWrite(Duration.ofHours(1))
             .build();u}(jW (d3a8c60a800e959b3becd43b20e4445fbceefb30j batlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/TableValueStyleCacheImpl.javaj modifiedj Kj K
j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableValueStyleCacheImpl.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableValueStyleCacheImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableValueStyleCacheImpl.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j Xf
  @@ -15,47 +15,45 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs.impl;
 
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.google.common.base.Preconditions;
-import com.google.common.base.Throwables;
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.logging.LoggingArgs;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.nexus.db.sql.AgnosticResultSet;
 import com.palantir.nexus.db.sql.SqlConnection;
-import java.util.concurrent.ExecutionException;
 
 public final class TableValueStyleCacheImpl implements TableValueStyleCache {
     private static final SafeLogger log = SafeLoggerFactory.get(TableValueStyleCacheImpl.class);
 
     private final Cache<TableReference, TableValueStyle> valueStyleByTableRef =
-            CacheBuilder.newBuilder().build();
+            Caffeine.newBuilder().build();
 
     @Override
     public TableValueStyle getTableType(
             final ConnectionSupplier connectionSupplier, final TableReference tableRef, TableReference metadataTable) {
         try {
-            return valueStyleByTableRef.get(tableRef, () -> {
+            return valueStyleByTableRef.get(tableRef, tableRefKey -> {
                 SqlConnection conn = connectionSupplier.get();
                 AgnosticResultSet results = conn.selectResultSetUnregisteredQuery(
                         String.format(
                                 "SELECT table_size FROM %s WHERE table_name = ?", metadataTable.getQualifiedName()),
-                        tableRef.getQualifiedName());
+                        tableRefKey.getQualifiedName());
                 Preconditions.checkArgument(
-                        !results.rows().isEmpty(), "table %s not found", tableRef.getQualifiedName());
+                        !results.rows().isEmpty(), "table %s not found", tableRefKey.getQualifiedName());
 
                 return TableValueStyle.byId(
                         Iterables.getOnlyElement(results.rows()).getInteger("table_size"));
             });
-        } catch (ExecutionException e) {
+        } catch (RuntimeException e) {
             log.error(
                     "TableValueStyle for the table {} could not be retrieved.",
                     LoggingArgs.safeInternalTableName(tableRef.getQualifiedName()),
                     e);
-            throw Throwables.propagate(e);
+            throw e;
         }
     }
 u}(jW (ddbe99f94fd632341080a204b08994736d8ac8d1j gatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleCellTsPageLoader.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -195,8 +195,7 @@ private FullQuery getQuery(boolean singleRow) {
             appendRangePredicates(singleRow, queryBuilder);
             return queryBuilder
                     .append("  ORDER BY row_name, col_name, ts")
-                    .append(") WHERE rownum <= ")
-                    .append(sqlRowLimit)
+                    .append(") WHERE rownum <= ?", sqlRowLimit)
                     .append(" ORDER BY row_name, col_name, ts")
                     .build();
         }u}(jW (d3d0934580d2238766440f21f24a6cdcdb89c589j _atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTable.javaj modifiedj KGj Kj KOj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XW!  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Stopwatch;
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -30,6 +31,9 @@
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyle;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyleCache;
 import com.palantir.atlasdb.logging.LoggingArgs;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.NamedColumnDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.common.base.RunnableCheckedException;
 import com.palantir.common.base.Throwables;
@@ -47,6 +51,7 @@
 import com.palantir.util.VersionStrings;
 import java.sql.SQLException;
 import java.util.Locale;
+import java.util.Set;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.TimeUnit;
 import org.apache.commons.lang3.StringUtils;
@@ -90,10 +95,15 @@ public static OracleDdlTable create(
 
     @Override
     public void create(byte[] tableMetadata) {
-        boolean needsOverflow = needsOverflow(tableMetadata);
+        log.info("Attempting to create table {}.", LoggingArgs.tableRef(tableRef));
+        TableMetadata metadata = TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMetadata);
+        boolean needsOverflow = needsOverflow(metadata);
+        int compressionSetting = getOptimalIndexCompression(metadata);
 
         if (tableExists()) {
+            log.info("Table {} already exists.", LoggingArgs.tableRef(tableRef));
             if (needsOverflow) {
+                log.info("Table {} needs overflow.", LoggingArgs.tableRef(tableRef));
                 TableValueStyle existingStyle = valueStyleCache.getTableType(conns, tableRef, config.metadataTable());
                 if (existingStyle != TableValueStyle.OVERFLOW) {
                     throwForMissingOverflowTable();
@@ -103,7 +113,7 @@ public void create(byte[] tableMetadata) {
             return;
         }
 
-        String shortTableName = createTable(needsOverflow);
+        String shortTableName = createTable(needsOverflow, compressionSetting);
 
         if (needsOverflow && !overflowColumnExists(shortTableName)) {
             throwForMissingOverflowTable();
@@ -119,9 +129,20 @@ public void create(byte[] tableMetadata) {
     }
 
     private void maybeAlterTableToHaveOverflowColumn() {
+        log.info("Potentially altering table {} to have overflow column.", LoggingArgs.tableRef(tableRef));
         if (config.alterTablesOrMetadataToMatch().contains(tableRef)) {
+            log.info("Config contains table {}, checking if we can alter table.", LoggingArgs.tableRef(tableRef));
             try {
                 String shortTableName = oracleTableNameGetter.getInternalShortTableName(conns, tableRef);
+                log.info(
+                        "Table name: {}, Overflow table migrated status: {}, overflow table existence status: {}, "
+                                + "overflow "
+                                + "column exists status: {}",
+                        LoggingArgs.tableRef(tableRef),
+                        SafeArg.of("overflowTableHasMigrated", overflowTableHasMigrated()),
+                        SafeArg.of("overflowTableExists", overflowTableExists()),
+                        SafeArg.of("overflowColumnExists", overflowColumnExists(shortTableName)));
+
                 if (overflowTableHasMigrated() && overflowTableExists() && !overflowColumnExists(shortTableName)) {
                     alterTableToHaveOverflowColumn(shortTableName);
                 }
@@ -146,10 +167,51 @@ private boolean overflowTableHasMigrated() {
         return config.overflowMigrationState() == OverflowMigrationState.FINISHED;
     }
 
-    private boolean needsOverflow(byte[] tableMetadata) {
-        TableMetadata metadata = TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMetadata);
-        return (metadata != null)
-                && (metadata.getColumns().getMaxValueSize() > AtlasDbConstants.ORACLE_OVERFLOW_THRESHOLD);
+    private boolean needsOverflow(TableMetadata metadata) {
+        return metadata.getColumns().getMaxValueSize() > AtlasDbConstants.ORACLE_OVERFLOW_THRESHOLD;
+    }
+
+    /*
+     * Determine the optimal Index Organized Table compression setting.
+     * When enabling compression on an IOT, we can instruct Oracle to compress at most one
+     * fewer columns than the number of columns that make up the PK for the IOT (i.e. the IOT we create have a PK of
+     * {row, col, ts} so we can compress 0, 1 or 2 columns - nothing, row, or row & col. It wouldn't make sense to
+     * compress all three columns, because necessarily there can be multiple rows that share all three values.
+     *
+     * When compression is enabled in an IOT, the block header adds a table the captures the values of the
+     * compressed columns. The actual rows in the blocks then refer back to entries in the header table to capture
+     * their values for the compressed columns. This extra header table and the slot references for data rows consume
+     * space in the block, so misuse of compression results in extra storage being consumed.
+     *
+     * Compression only makes sense when we expect that the { row } or { row, col } values will be reused:
+     * - If the table's sweep strategy is CONSERVATIVE, then every { row, col } will have at least two rows,
+     *   the current value (which may have null val if the value is deleted) and a sentinel row with ts = -1. Clearly
+     *   compression of both { row, col } is valuable.
+     * - If the sweep strategy is not CONSERVATIVE,  there will be reuse of the { row } if there is more than one named
+     *   column, or the table uses dynamic columns, which would be generally be expected to have multiple row values. In
+     *   this case, compression 1 is appropriate so { row } only needs to be stored once.
+     * - Finally, if the sweep strategy is not CONSERVATIVE, there are no sentinels, and if there is only one named
+     *   column then there will be no rows that share { row } so compression should be disabled.
+     */
+    @VisibleForTesting
+    static int getOptimalIndexCompression(TableMetadata metadata) {
+        if (metadata.getSweepStrategy() == SweepStrategy.CONSERVATIVE) {
+            // the table's sweep strategy is CONSERVATIVE, then every { row, col } will have at least two rows
+            return 2;
+        }
+
+        ColumnMetadataDescription columns = metadata.getColumns();
+        // there will be reuse of the { row } if there is more than one named column
+        // or the table uses dynamic columns, which would be generally be expected to have multiple row values
+        if (columns.hasDynamicColumns()) {
+            return 1;
+        }
+        Set<NamedColumnDescription> namedColumns = columns.getNamedColumns();
+        if (namedColumns != null && namedColumns.size() > 1) {
+            return 1;
+        }
+
+        return 0;
     }
 
     private boolean overflowColumnExists(String shortTableName) {
@@ -185,7 +247,7 @@ private void throwForMissingOverflowTable() {
     /**
      * Creates the table for the given reference. If the schema is modified here, please also update it in {@link #alterTableToHaveOverflowColumn}.
      */
-    private String createTable(boolean needsOverflow) {
+    private String createTable(boolean needsOverflow, int compression) {
         String shortTableName = oracleTableNameGetter.generateShortTableName(conns, tableRef);
         executeIgnoringError(
                 "CREATE TABLE " + shortTableName + " ("
@@ -197,7 +259,8 @@ private String createTable(boolean needsOverflow) {
                         + "  CONSTRAINT " + PrimaryKeyConstraintNames.get(shortTableName)
                         + " PRIMARY KEY (row_name, col_name, ts) "
                         + ") "
-                        + "organization index compress "
+                        + "organization index "
+                        + (compression == 0 ? "" : "compress " + compression + " ")
                         // Since append only completely fill blocks - no benefit in leaving space for updates of rows
                         // PCTUSED N/A to Index Organized Tables
                         + "PCTFREE 0 "u      }(jW (570b443f767b2c7f891051709f1bd68ce081d75cj _atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleGetRange.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XF  @@ -316,8 +316,7 @@ private FullQuery getRangeQuery(ConnectionSupplier conns) {
                     .append(shortTableName)
                     .append(" v ON ")
                     .append("    sub.row_name = v.row_name and sub.col_name = v.col_name and sub.ts = v.ts")
-                    .append("  WHERE sub.rn <= ")
-                    .append(maxRowsPerPage)
+                    .append("  WHERE sub.rn <= ?", maxRowsPerPage)
                     .append("  ORDER BY sub.row_name ")
                     .append(direction)
                     .append(", sub.col_name ")u}(jW (08cd766747be7ea89f3186414b112d6fff840236j iatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleOverflowWriteTable.javaj modifiedj K,j Kj KJj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XQ  @@ -351,31 +351,41 @@ private void deleteOverflow(String overflowTable, List<Object[]> args) {
         String shortTableName = oraclePrefixedTableNames.get(tableRef, conns);
         conns.get()
                 .updateManyUnregisteredQuery(
-                        " /* DELETE_ONE_OVERFLOW (" + overflowTable + ") */ "
-                                + " DELETE /*+ INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */ "
-                                + "   FROM " + overflowTable + " m "
-                                + "  WHERE m.id IN (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName)
-                                + ") */ "
-                                + "                        i.overflow "
-                                + "                   FROM " + shortTableName + " i "
-                                + "                  WHERE i.row_name = ? "
-                                + "                    AND i.col_name = ? "
-                                + "                    AND i.ts = ? "
-                                + "                    AND i.overflow IS NOT NULL)",
+                        "/* DELETE_ONE_OVERFLOW (" + overflowTable + ") */"
+                                + " DELETE"
+                                + " /*+"
+                                + "   INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ")"
+                                + "   LEADING(i) USE_NL(i m)"
+                                + " */"
+                                + " FROM " + overflowTable + " m"
+                                + " WHERE m.id IN"
+                                + "   (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName) + ") */"
+                                + "     i.overflow"
+                                + "     FROM " + shortTableName + " i"
+                                + "     WHERE i.row_name = ?"
+                                + "       AND i.col_name = ?"
+                                + "       AND i.ts = ?"
+                                + "       AND i.overflow IS NOT NULL)",
                         args);
     }
 
     private void deleteOverflowRange(String overflowTable, String shortTableName, RangeRequest range) {
         StringBuilder query = new StringBuilder();
-        query.append(" /* DELETE_RANGE_OVERFLOW (").append(overflowTable).append(") */ ");
-        query.append(" DELETE /*+ INDEX(m pk_").append(overflowTable).append(") */ ");
-        query.append("   FROM ").append(overflowTable).append(" m ");
-        query.append(" WHERE m.id IN (");
+        query.append("/* DELETE_RANGE_OVERFLOW (")
+                .append(overflowTable)
+                .append(") */ DELETE /*+ INDEX(m ")
+                .append(PrimaryKeyConstraintNames.get(overflowTable))
+                .append(") LEADING(i) USE_NL(i m) */ FROM ")
+                .append(overflowTable)
+                .append(" m WHERE m.id IN (");
 
         // subquery for finding rows in the short table
-        query.append("SELECT /*+ INDEX(i pk_").append(shortTableName).append(") */ ");
-        query.append("       i.overflow ");
-        query.append("    FROM ").append(shortTableName).append(" i ");
+        query.append("SELECT /*+ INDEX(i ")
+                .append(PrimaryKeyConstraintNames.get(shortTableName))
+                .append(") */")
+                .append(" i.overflow FROM ")
+                .append(shortTableName)
+                .append(" i");
 
         // add where clauses
         WhereClauses whereClauses = WhereClauses.create("i", range, "i.overflow IS NOT NULL");
@@ -398,18 +408,22 @@ private void deleteAllTimestampsOverflow(String overflowTable, List<Object[]> ar
         String shortTableName = oraclePrefixedTableNames.get(tableRef, conns);
         conns.get()
                 .updateManyUnregisteredQuery(
-                        " /* DELETE_ALL_TS_OVERFLOW (" + overflowTable + ") */ "
-                                + " DELETE /*+ INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */ "
-                                + "   FROM " + overflowTable + " m "
-                                + "  WHERE m.id IN (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName)
-                                + ") */ "
-                                + "                        i.overflow "
-                                + "                   FROM " + shortTableName + " i "
-                                + "                  WHERE i.row_name = ? "
-                                + "                    AND i.col_name = ? "
-                                + "                    AND i.ts >= ? "
-                                + "                    AND i.ts <= ? "
-                                + "                    AND i.overflow IS NOT NULL)",
+                        " /* DELETE_ALL_TS_OVERFLOW (" + overflowTable + ") */"
+                                + " DELETE"
+                                + " /*+"
+                                + "   INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ")"
+                                + "   LEADING(i) USE_NL(i m)"
+                                + " */"
+                                + " FROM " + overflowTable + " m"
+                                + " WHERE m.id IN"
+                                + "   (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName) + ") */"
+                                + "     i.overflow"
+                                + "     FROM " + shortTableName + " i"
+                                + "     WHERE i.row_name = ?"
+                                + "       AND i.col_name = ?"
+                                + "       AND i.ts >= ?"
+                                + "       AND i.ts <= ?"
+                                + "       AND i.overflow IS NOT NULL)",
                         args);
     }
 u}(jW (68c4ca31f6171bb238d98d2e9cfa5f4ad9e2f919j catlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleQueryFactory.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XW	  @@ -312,8 +312,8 @@ public FullQuery getRangeQuery(RangeRequest range, long ts, int maxRows) {
                 + "     FROM " + tableName + " m "
                 + (bounds.isEmpty() ? "" : " WHERE  " + Joiner.on(" AND ").join(bounds))
                 + "     ORDER BY m.row_name " + (range.isReverse() ? "DESC" : "ASC")
-                + "   ) inner WHERE rownum <= " + maxRows;
-        return new FullQuery(query).withArgs(args);
+                + "   ) inner WHERE rownum <= ?";
+        return new FullQuery(query).withArgs(args).withArg(maxRows);
     }
 
     @Override
@@ -334,10 +334,10 @@ public FullQuery getRowsColumnRangeCountsQuery(
                 + " GROUP BY m.row_name";
         FullQuery fullQuery = new FullQuery(query).withArgs(rowsToOracleArray(rows), ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
         return fullQuery;
     }
@@ -355,14 +355,15 @@ protected FullQuery getRowsColumnRangeSubQuery(
                 + (columnRangeSelection.getStartCol().length > 0 ? " AND m.col_name >= ?" : "")
                 + (columnRangeSelection.getEndCol().length > 0 ? " AND m.col_name < ?" : "")
                 + " GROUP BY m.row_name, m.col_name"
-                + " ORDER BY m.row_name ASC, m.col_name ASC ) s WHERE rownum <= " + columnRangeSelection.getBatchHint();
+                + " ORDER BY m.row_name ASC, m.col_name ASC ) s WHERE rownum <= ?";
         FullQuery fullQuery = new FullQuery(query).withArg(row).withArg(ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
+        fullQuery.withArg(columnRangeSelection.getBatchHint());
         return fullQuery;
     }
 u}(jW (2f1bb8d487f43f4608acaf707e7e6788af473dbdj katlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresCellTsPageLoader.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XR  @@ -154,8 +154,7 @@ private FullQuery getFullQuery() {
                                 token.startRowInclusive(), token.startColInclusive(), token.startTsInclusive());
                 return queryBuilder
                         .append("      ORDER BY row_name, col_name, ts")
-                        .append("      LIMIT ")
-                        .append(sqlRowLimit)
+                        .append("      LIMIT ?", sqlRowLimit)
                         .append("    ) sub")
                         .append("    GROUP BY row_name, col_name")
                         .append("    ORDER BY row_name, col_name")
@@ -183,8 +182,7 @@ private FullQuery getFullQuery() {
                                 token.startRowInclusive(), token.startColInclusive(), token.startTsInclusive());
                 return queryBuilder
                         .append("  ORDER BY row_name, col_name, ts")
-                        .append("  LIMIT ")
-                        .append(sqlRowLimit)
+                        .append("  LIMIT ?", sqlRowLimit)
                         .build();
             }
         }u}(jW (00cafb31e5f67e282a7490f4d2f3b4c4034b0fb5j catlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresGetRange.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -288,8 +288,7 @@ private FullQuery getRangeQuery() {
                     .append(direction)
                     .append(", col_name ")
                     .append(direction)
-                    .append("    LIMIT ")
-                    .append(maxCellsPerPage)
+                    .append("    LIMIT ?", maxCellsPerPage)
                     .append("  ) i")
                     .append("  WHERE wrap.row_name = i.row_name")
                     .append("    AND wrap.col_name = i.col_name")u}(jW (09ea7a8a8689d417885286a94aaf8424dfa8b7faj gatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresQueryFactory.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -229,8 +229,8 @@ public FullQuery getRangeQuery(RangeRequest range, long ts, int maxRows) {
                 + " FROM " + prefixedTableName() + " m "
                 + (bounds.isEmpty() ? "" : " WHERE  " + Joiner.on(" AND ").join(bounds))
                 + " ORDER BY m.row_name " + (range.isReverse() ? "DESC" : "ASC")
-                + " LIMIT " + maxRows;
-        return new FullQuery(query).withArgs(args);
+                + " LIMIT ?";
+        return new FullQuery(query).withArgs(args).withArg(maxRows);
     }
 
     @Override
@@ -319,16 +319,17 @@ protected FullQuery getRowsColumnRangeSubQuery(
                 + (columnRangeSelection.getStartCol().length > 0 ? " AND m.col_name >= ?" : "")
                 + (columnRangeSelection.getEndCol().length > 0 ? " AND m.col_name < ?" : "")
                 + " GROUP BY m.row_name, m.col_name"
-                + " ORDER BY m.col_name ASC LIMIT " + columnRangeSelection.getBatchHint();
+                + " ORDER BY m.col_name ASC LIMIT ?";
         FullQuery fullQuery = new FullQuery(wrapQueryWithIncludeValue("GET_ROWS_COLUMN_RANGE", query, true))
                 .withArg(row)
                 .withArg(ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
+        fullQuery.withArg(columnRangeSelection.getBatchHint());
         return fullQuery;
     }
 u}(jW (ac33fad35d76f1ceb079128628c94f48a6bb5693j `atlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/OracleTableNameUnmapperTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -18,6 +18,7 @@
 import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
+import static org.assertj.core.api.InstanceOfAssertFactories.type;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.ArgumentMatchers.startsWith;
@@ -103,7 +104,16 @@ public void shouldThrowIfTableMappingDoesNotExist() {
         assertThatThrownBy(() -> oracleTableNameUnmapper.getShortTableNameFromMappingTable(
                         connectionSupplier, TEST_PREFIX, TABLE_REF))
                 .isInstanceOf(TableMappingNotFoundException.class)
-                .hasMessageContaining("The table a_test_namespace__ThisIsAVeryLongTableNameThatWillExceed");
+                .hasMessageContaining("The table a_test_namespace__ThisIsAVeryLongTableNameThatWillExceed")
+                .hasRootCauseInstanceOf(SafeIllegalStateException.class)
+                .rootCause()
+                .asInstanceOf(type(SafeIllegalStateException.class))
+                .extracting(SafeIllegalStateException::getArgs)
+                .satisfies(args -> assertThat(args)
+                        .hasSize(1)
+                        .first()
+                        .isEqualTo(
+                                UnsafeArg.of("tableName", "a_test_namespace__ThisIsAVeryLongTableNameThatWillExceed")));
     }
 
     @Testu}(jW (e22af5a95fd838f0ae5d4de23759495e249828a8j catlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTableTest.javaj modifiedj K7j K j K7j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X,  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle;
 
 import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
@@ -41,6 +42,11 @@
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.OverflowMigrationState;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyle;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyleCache;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.ColumnValueDescription;
+import com.palantir.atlasdb.table.description.NameComponentDescription;
+import com.palantir.atlasdb.table.description.NamedColumnDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.table.description.ValueType;
 import com.palantir.common.concurrent.PTExecutors;
@@ -50,6 +56,8 @@
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.nexus.db.sql.SqlConnection;
+import java.util.ArrayList;
+import java.util.List;
 import java.util.Locale;
 import java.util.Set;
 import java.util.concurrent.ExecutorService;
@@ -348,6 +356,53 @@ public void createDoesNotThrowWhenOverflowColumnAlreadyExistsAndAlterIsRan() thr
         verifyTableAltered();
     }
 
+    @Test
+    public void conservativeSweptTablesHaveIndexCompression2() {
+        for (int numColumns = 0; numColumns <= 2; numColumns++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.CONSERVATIVE);
+            for (int colName = 0; colName < numColumns; colName++) {
+                metadataBuilder.singleNamedColumn("c" + colName, "col" + colName, ValueType.STRING);
+            }
+            TableMetadata metadata = metadataBuilder.build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(2);
+        }
+    }
+
+    @Test
+    public void thoroughSweptTablesWithDynamicColsHaveIndexCompression1() {
+        TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+        TableMetadata metadata = metadataBuilder
+                .dynamicColumns(List.of(NameComponentDescription.of("c", ValueType.STRING)), ValueType.STRING)
+                .build();
+        assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(1);
+    }
+
+    @Test
+    public void thoroughSweptTablesWithMultipleNamedColsHaveIndexCompression1() {
+        for (int numColumns = 2; numColumns <= 3; numColumns++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+            List<NamedColumnDescription> columns = new ArrayList<>();
+            for (int colDesc = 1; colDesc <= numColumns; colDesc++) {
+                columns.add(new NamedColumnDescription(
+                        "c" + colDesc, "col" + colDesc, ColumnValueDescription.forType(ValueType.STRING)));
+            }
+            TableMetadata metadata = metadataBuilder
+                    .columns(new ColumnMetadataDescription(columns))
+                    .build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(1);
+        }
+    }
+
+    @Test
+    public void thoroughSweptTablesWithOneNamedColHaveIndexCompressionDisabled() {
+        TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+        TableMetadata metadata = metadataBuilder
+                .columns(new ColumnMetadataDescription(List.of(
+                        new NamedColumnDescription("c", "col", ColumnValueDescription.forType(ValueType.STRING)))))
+                .build();
+        assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(0);
+    }
+
     private void createTable() throws TableMappingNotFoundException {
         // Not all tests will call OracleDdlTable#createTable, which makes sense as this test "creates" it for them!
         lenient()u}(jW (406ea4c829a8af8841a2d625eb7be180b4deeb1bj aatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/LatestSnapshotTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FLatestSnapshotTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FLatestSnapshotTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FLatestSnapshotTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "1hXp6wqgn1sn1zvk2FNCsA==";
+    static String __CLASS_HASH = "IGBmCsqLmahL4VNCmymeTA==";
 }u}(jW (691b032f8500c1d98893ea25953a5a1da6159237j aatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/NamespacedTodoTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FNamespacedTodoTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FNamespacedTodoTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FNamespacedTodoTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "u45FW2313LWExLwSpn1QNQ==";
+    static String __CLASS_HASH = "hQ6/1zRsdc2LBKW0GTYdpw==";
 }u}(jW (8d929951097fa4dd1ed276565d0e054a197030c1j jatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamHashAidxTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamHashAidxTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamHashAidxTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamHashAidxTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "PCkKiTatC1CKEn6ZH3wovQ==";
+    static String __CLASS_HASH = "D9OdSrGepZI1dcZ5KV7B0g==";
 }u}(jW (c2166395fe0ce40fad624f15a49f97e8082edb87j eatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamIdxTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamIdxTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamIdxTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamIdxTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "D1MDUfpiS0iyGcBvr58Y8g==";
+    static String __CLASS_HASH = "Ql7tNJ0Z5v0pWFviP9dcuw==";
 }u}(jW (751427a20cec42114f38fb040766075b79fceb85j jatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamMetadataTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamMetadataTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamMetadataTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamMetadataTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "CYeYrtJK8/cz/1qm4lAQbw==";
+    static String __CLASS_HASH = "AgT8WHSuUvJzkk+inw4twg==";
 }u}(jW (d9eb5e622958eabbadfc64f623d7af4e2b8f6ab2j batlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamStore.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamStore.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamStore.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         SnapshotsStreamMetadataTable table = tables.getSnapshotsStreamMetadataTable(t);
         Map<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow, SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow r : m.keySet()) {
             for (SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> rows = new HashSet<>();
+        Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow.of(h));
         }u}(jW (50fe24ebd9570730219ff9c8cabd8b95ef133793j gatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamValueTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamValueTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamValueTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamValueTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "VELEHtyEvSAidzHk7HUynw==";
+    static String __CLASS_HASH = "9m/lRuE/UHMttmLTS1Q8iQ==";
 }u}(jW (0fc54eda7b5bdfc6e1df2d83a646c1c897f7545dj Watlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/TodoTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FTodoTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FTodoTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FTodoTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "a41wenQu3aKASLvmOEI8kQ==";
+    static String __CLASS_HASH = "1g5OdW5n4H7icFXg1gG2Xg==";
 }u}(jW (1d193b8827aecd4f6d245fb465dfbdc647f5e14aj +atlasdb-ete-tests/docker-compose.oracle.ymlj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlj ~https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.oracle.yml?ref=86d91aa59465ac0960f8f329fb2087653004b555j @@ -2,7 +2,7 @@ version: '2'
 
 services:
   oracle:
-    image: palantirtechnologies/oracle-atlasdb:19.18.0.0-se
+    image: palantirtechnologies/oracle-atlasdb:19.19.0.0-se
     ports:
       - "1521"
 u}(jW (c7df5ab0634529958ebd6f5e9833133b80d6f481j Yatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/AuditedDataTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FAuditedDataTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FAuditedDataTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FAuditedDataTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "HWEvAR+se/bt6noPrSI5eQ==";
+    static String __CLASS_HASH = "AkImLEM5fv/Ji8qCyRf5dw==";
 }u}(jW (691e7c2e8f8e94ee1c2d708ae8a7265a658fc2d7j `atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamHashAidxTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamHashAidxTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamHashAidxTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamHashAidxTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "6ODGPI1lqmv77xZs7geJPg==";
+    static String __CLASS_HASH = "4xCW34HnUp0WcB647QLiyQ==";
 }u}(jW (450188be061709cb7be5970d7510cb674fd90334j [atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamIdxTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamIdxTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamIdxTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamIdxTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -730,6 +731,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -753,5 +755,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Rdk+n2nUmS6yWZK9HAk9OA==";
+    static String __CLASS_HASH = "Cv4WRWZ3CKVWR5IhFRmgLg==";
 }u}(jW (02b71ddbab73ddfa1fb611fe7718aec48202c8f9j `atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamMetadataTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamMetadataTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamMetadataTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamMetadataTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -697,6 +698,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -720,5 +722,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "RPuWa9/Enf/G4yy7WraKvg==";
+    static String __CLASS_HASH = "AFwooxC06krTqFv58UfkcA==";
 }u}(jW (8c464c6e727d316151fe167fb7023408f8223c1bj Xatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamStore.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamStore.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamStore.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         DataStreamMetadataTable table = tables.getDataStreamMetadataTable(t);
         Map<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<DataStreamHashAidxTable.DataStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<DataStreamHashAidxTable.DataStreamHashAidxRow, DataStreamHashAidxTable.DataStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (DataStreamHashAidxTable.DataStreamHashAidxRow r : m.keySet()) {
             for (DataStreamHashAidxTable.DataStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<DataStreamHashAidxTable.DataStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<DataStreamHashAidxTable.DataStreamHashAidxRow> rows = new HashSet<>();
+        Set<DataStreamHashAidxTable.DataStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(DataStreamHashAidxTable.DataStreamHashAidxRow.of(h));
         }u}(jW (339121486a993326e0fab616ee41e6840e0bcdeaj ]atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamValueTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamValueTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamValueTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamValueTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -685,6 +686,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -708,5 +710,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "DS6SuJzRnFffdUrdtO6Guw==";
+    static String __CLASS_HASH = "hogeDv0tsmrHDkXuhcwteQ==";
 }u}(jW (9ddaa82ed535788ceb2af45646bddc9ef36ee8c1j iatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamHashAidxTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamHashAidxTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamHashAidxTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamHashAidxTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "SH1UPkfcLa9w8NXZtXW8SQ==";
+    static String __CLASS_HASH = "NOiRKvLXsadPhJ4N/aae6Q==";
 }u}(jW (64418a6885ea388ae8cacfebdee217037e578fbcj datlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamIdxTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamIdxTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamIdxTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamIdxTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "mpf2q7hm+MfMFLkXqKHb6Q==";
+    static String __CLASS_HASH = "lWy4z6m1ZmwcuY4d/ez8Rw==";
 }u}(jW (db9af2411ac58ba1397ec11aaec3110306b1b1f0j iatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamMetadataTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamMetadataTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamMetadataTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamMetadataTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Ce61mTEgHfgl6d16rBNwUA==";
+    static String __CLASS_HASH = "KLkPI2rjlr8itPxC4ZWJLg==";
 }u}(jW (dde1b9206472d7a2d64075fe39b94b5e132abc0dj aatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamStore.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamStore.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamStore.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         HotspottyDataStreamMetadataTable table = tables.getHotspottyDataStreamMetadataTable(t);
         Map<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow, HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow r : m.keySet()) {
             for (HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> rows = new HashSet<>();
+        Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow.of(h));
         }u}(jW (8883d5d8737eef19a3f25fd258d579ac8e1dbec9j fatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamValueTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamValueTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamValueTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamValueTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "qpxadEqMHw8NeLcCZ0b7oA==";
+    static String __CLASS_HASH = "9KSCRtbyVXFg2nb/7Wc8OA==";
 }u}(jW (88f8467b9c138fc4cb41ea3c961977dd5dd0f8e4j  atlasdb-impl-shared/build.gradlej modifiedj Kj K j Kj thttps://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fbuild.gradlej shttps://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fbuild.gradle?ref=86d91aa59465ac0960f8f329fb2087653004b555j X
  @@ -12,6 +12,7 @@ license {
   exclude '**/PutUnlessExistsTableMetrics.java'
   exclude '**/TargetedSweepProgressMetrics.java'
   exclude '**/TimestampCorrectnessMetrics.java'
+  exclude '**/ExpectationsMetrics.java'
   exclude '**/VerificationModeMetrics.java'
 }
 u}(jW (c343ae3edce2f8e4d5a1c928511f569ac571e2d1j Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/cleaner/CachingPuncherStore.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FCachingPuncherStore.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FCachingPuncherStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FCachingPuncherStore.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -15,9 +15,8 @@
  */
 package com.palantir.atlasdb.cleaner;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 
 /**
  * Wrap another PuncherStore, optimizing the #get() operation to operate on a local cache, only
@@ -31,14 +30,8 @@ public final class CachingPuncherStore implements PuncherStore {
     private static final int CACHE_SIZE = 64000;
 
     public static CachingPuncherStore create(final PuncherStore puncherStore, long granularityMillis) {
-        LoadingCache<Long, Long> timeMillisToTimestamp = CacheBuilder.newBuilder()
-                .maximumSize(CACHE_SIZE)
-                .build(new CacheLoader<Long, Long>() {
-                    @Override
-                    public Long load(Long timeMillis) throws Exception {
-                        return puncherStore.get(timeMillis);
-                    }
-                });
+        LoadingCache<Long, Long> timeMillisToTimestamp =
+                Caffeine.newBuilder().maximumSize(CACHE_SIZE).build(puncherStore::get);
         return new CachingPuncherStore(puncherStore, timeMillisToTimestamp, granularityMillis);
     }
 
@@ -66,7 +59,7 @@ public void put(long timestamp, long timeMillis) {
     @Override
     public Long get(Long timeMillis) {
         long approximateTimeMillis = timeMillis - (timeMillis % granularityMillis);
-        return timeMillisToTimestamp.getUnchecked(approximateTimeMillis);
+        return timeMillisToTimestamp.get(approximateTimeMillis);
     }
 
     @Overrideu     }(jW (c480df0088f6789eb9035ca913cc7cc57d932d70j _atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/watch/TimestampMapping.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -16,12 +16,17 @@
 
 package com.palantir.atlasdb.keyvalue.api.watch;
 
-import com.google.common.collect.MoreCollectors;
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.Collections2;
 import com.google.common.collect.Range;
 import com.palantir.lock.watch.LockWatchVersion;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Iterator;
 import java.util.LongSummaryStatistics;
 import java.util.Map;
+import java.util.Objects;
 import java.util.UUID;
 import org.immutables.value.Value;
 
@@ -44,10 +49,8 @@ default LockWatchVersion lastVersion() {
 
     @Value.Derived
     default UUID leader() {
-        return timestampMapping().values().stream()
-                .map(LockWatchVersion::id)
-                .distinct()
-                .collect(MoreCollectors.onlyElement());
+        // explicitly avoiding stream and distinct collection copy when all IDs should be identical
+        return identicalElement(Collections2.transform(timestampMapping().values(), LockWatchVersion::id));
     }
 
     @Value.Check
@@ -58,4 +61,20 @@ default void nonEmptyMapping() {
     static ImmutableTimestampMapping.Builder builder() {
         return ImmutableTimestampMapping.builder();
     }
+
+    @VisibleForTesting
+    static <T> T identicalElement(Iterable<? extends T> iterable) {
+        Iterator<? extends T> iterator = iterable.iterator();
+        T element = iterator.next();
+        while (iterator.hasNext()) {
+            T next = iterator.next();
+            if (!Objects.equals(element, next)) {
+                throw new SafeIllegalArgumentException(
+                        "Input contains multiple distinct elements",
+                        SafeArg.of("element", element),
+                        SafeArg.of("next", next));
+            }
+        }
+        return element;
+    }
 }u}(jW (8998869ed08a7e30d96c016b7470e3e524faa8c5j Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/BackgroundSweepThread.javaj modifiedj Kj K	j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XB  @@ -39,6 +39,8 @@
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.TimeUnit;
+import java.util.function.BooleanSupplier;
+import java.util.function.LongSupplier;
 import java.util.function.Supplier;
 
 public class BackgroundSweepThread implements Runnable {
@@ -49,8 +51,8 @@ public class BackgroundSweepThread implements Runnable {
     private final SweepOutcomeMetrics sweepOutcomeMetrics;
     private final SpecificTableSweeper specificTableSweeper;
     private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-    private final Supplier<Long> sweepPauseMillis;
-    private final Supplier<Boolean> isSweepEnabled;
+    private final LongSupplier sweepPauseMillis;
+    private final BooleanSupplier isSweepEnabled;
     private final Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig;
     private final NextTableToSweepProvider nextTableToSweepProvider;
     private final CountDownLatch shuttingDown;
@@ -64,8 +66,8 @@ public static BackgroundSweepThread createForTests(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper,
             MetricsManager metricsManager) {
@@ -86,8 +88,8 @@ public static BackgroundSweepThread createForTests(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper,
             SweepOutcomeMetrics sweepOutcomeMetrics,
@@ -190,7 +192,7 @@ private Duration getSleepDuration(Optional<SweepOutcome> maybeOutcome) {
         return maybeOutcome
                 .flatMap(outcome -> {
                     if (outcome == SweepOutcome.SUCCESS) {
-                        return Optional.of(Duration.ofMillis(sweepPauseMillis.get()));
+                        return Optional.of(Duration.ofMillis(sweepPauseMillis.getAsLong()));
                     } else if (outcome == SweepOutcome.NOTHING_TO_SWEEP) {
                         return Optional.of(getBackoffTimeWhenNothingToSweep());
                     } else {
@@ -202,7 +204,7 @@ private Duration getSleepDuration(Optional<SweepOutcome> maybeOutcome) {
 
     @VisibleForTesting
     Optional<SweepOutcome> checkConfigAndRunSweep(SingleLockService locks) throws InterruptedException {
-        if (isSweepEnabled.get()) {
+        if (isSweepEnabled.getAsBoolean()) {
             return Optional.of(grabLocksAndRun(locks));
         }
 
@@ -233,7 +235,7 @@ private SweepOutcome grabLocksAndRun(SingleLockService locks) throws Interrupted
     }
 
     private Duration getBackoffTimeWhenSweepHasNotRun() {
-        return Duration.ofMillis(sweepPauseMillis.get()).plusSeconds(1).multipliedBy(20); // 2 minutes by default
+        return Duration.ofMillis(sweepPauseMillis.getAsLong()).plusSeconds(1).multipliedBy(20); // 2 minutes by default
     }
 
     private Duration getBackoffTimeWhenNothingToSweep() {u}(jW (44bc31882603500ba427d3970ff3730e2b7b3a21j Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/BackgroundSweeperImpl.javaj modifiedj K
j K
j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -27,6 +27,9 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
+import java.util.function.BooleanSupplier;
+import java.util.function.IntSupplier;
+import java.util.function.LongSupplier;
 import java.util.function.Supplier;
 
 public final class BackgroundSweeperImpl implements BackgroundSweeper, AutoCloseable {
@@ -35,16 +38,16 @@ public final class BackgroundSweeperImpl implements BackgroundSweeper, AutoClose
     private static final long MAX_DAEMON_CLEAN_SHUTDOWN_TIME_MILLIS = 10_000;
 
     // Thread management
-    private final Supplier<Integer> sweepThreads;
+    private final IntSupplier sweepThreads;
     private Set<Thread> daemons;
     private final CountDownLatch shuttingDown = new CountDownLatch(1);
 
     // Shared between threads
     private final LockService lockService;
     private final NextTableToSweepProvider nextTableToSweepProvider;
     private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-    private final Supplier<Boolean> isSweepEnabled;
-    private final Supplier<Long> sweepPauseMillis;
+    private final BooleanSupplier isSweepEnabled;
+    private final LongSupplier sweepPauseMillis;
     private final Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig;
     private final SpecificTableSweeper specificTableSweeper;
     private final SweepOutcomeMetrics sweepOutcomeMetrics;
@@ -54,9 +57,9 @@ private BackgroundSweeperImpl(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Integer> sweepThreads,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            IntSupplier sweepThreads,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper) {
         this.sweepOutcomeMetrics = SweepOutcomeMetrics.registerLegacy(metricsManager);
@@ -73,9 +76,9 @@ private BackgroundSweeperImpl(
     public static BackgroundSweeperImpl create(
             MetricsManager metricsManager,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Integer> sweepThreads,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            IntSupplier sweepThreads,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper) {
         NextTableToSweepProvider nextTableToSweepProvider = NextTableToSweepProvider.create(
@@ -98,7 +101,7 @@ public static BackgroundSweeperImpl create(
     @Override
     public synchronized void runInBackground() {
         Preconditions.checkState(daemons == null);
-        int numThreads = sweepThreads.get();
+        int numThreads = sweepThreads.getAsInt();
         daemons = Sets.newHashSetWithExpectedSize(numThreads);
 
         for (int idx = 1; idx <= numThreads; idx++) {u}(jW (473d85d8410eb6afff14e536910bcdc893df9991j Oatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/CommitTsCache.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FCommitTsCache.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FCommitTsCache.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FCommitTsCache.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XK  @@ -25,7 +25,7 @@
 
 public final class CommitTsCache {
     private static final Long ONE_MILLION = 1_000_000L;
-    private LoadingCache<Long, Long> cache;
+    private final LoadingCache<Long, Long> cache;
 
     private CommitTsCache(TransactionService transactionService, long maxSize) {
         cache = Caffeine.newBuilder()u}(jW (02fd2f3ca2aca4164d40955a1e90f300421e02dcj Patlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweeperService.javaj removedj K j Kbj Kbj https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperService.javaj https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperService.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j X-  @@ -1,98 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import com.palantir.logsafe.Safe;
-import java.util.Optional;
-import javax.ws.rs.Consumes;
-import javax.ws.rs.POST;
-import javax.ws.rs.Path;
-import javax.ws.rs.Produces;
-import javax.ws.rs.QueryParam;
-import javax.ws.rs.core.MediaType;
-
-/**
- * Provides endpoints for sweeping a specific table.
- */
-@Path("/sweep")
-@Produces(MediaType.APPLICATION_JSON)
-@Consumes(MediaType.APPLICATION_JSON)
-public interface SweeperService {
-
-    default SweepTableResponse sweepTableFully(String tableName) {
-        return sweepTable(
-                tableName, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
-    }
-
-    default SweepTableResponse sweepTableFrom(String tableName, String startRow) {
-        return sweepTable(
-                tableName,
-                Optional.of(startRow),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-    }
-
-    /**
-     * Sweeps a particular table.
-     *
-     * @param tableName the table to sweep, in the format namespace.table_name (e.g. myapp.users)
-     * @param startRow (Optional) the row to start from, encoded as a hex string (e.g. 12345abcde)
-     * @param fullSweep (Optional; default true) whether to sweep the full table; if false just runs one batch
-     * @param maxCellTsPairsToExamine (Optional) see {@link SweepBatchConfig#maxCellTsPairsToExamine()}
-     * @param candidateBatchSize (Optional) see {@link SweepBatchConfig#candidateBatchSize()}
-     * @param deleteBatchSize (Optional) see {@link SweepBatchConfig#deleteBatchSize()}
-     */
-    @POST
-    @Path("sweep-table")
-    SweepTableResponse sweepTable(
-            @QueryParam("tablename") String tableName,
-            @QueryParam("startRow") Optional<String> startRow,
-            @Safe @QueryParam("fullSweep") Optional<Boolean> fullSweep,
-            @Safe @QueryParam("maxCellTsPairsToExamine") Optional<Integer> maxCellTsPairsToExamine,
-            @Safe @QueryParam("candidateBatchSize") Optional<Integer> candidateBatchSize,
-            @Safe @QueryParam("deleteBatchSize") Optional<Integer> deleteBatchSize);
-
-    /**
-     * Sweeps a table, but intentionally probabilistically skips a fraction of eligible entries to prevent issues that
-     * might arise from having too many consecutive deletes in the underlying KVS. This is expected to be safe to
-     * invoke at least twice without cleanup at the KVS level, but generally the expected usage is to run once, and
-     * then invoke {@link #sweepTable(String, Optional, Optional, Optional, Optional, Optional)} to clean any
-     * skipped values once KVS cleanup, such as compactions, is done.
-     *
-     * Implementation must respect the usual sweep guarantee: no (possibly in-flight) transaction may as a result of
-     * this operation read a version (or lack of one) of a cell different than it would have read if this operation had
-     * not run, and still succeed. In particular, this means that if any version of a cell is retained, then also the
-     * latest version prior to the sweep timestamp of the same cell must not be removed (even if it is a delete).
-     *
-     * @param tableName the table to sweep, in the format namespace.table_name (e.g. myapp.users)
-     * @param startRow (Optional) the row to start from, encoded as a hex string (e.g. 12345abcde)
-     * @param fullSweep (Optional; default true) whether to sweep the full table; if false just runs one batch
-     * @param maxCellTsPairsToExamine (Optional) see {@link SweepBatchConfig#maxCellTsPairsToExamine()}
-     * @param candidateBatchSize (Optional) see {@link SweepBatchConfig#candidateBatchSize()}
-     * @param deleteBatchSize (Optional) see {@link SweepBatchConfig#deleteBatchSize()}
-     */
-    @POST
-    @Path("sweep-previously-conservative-now-thorough-table")
-    SweepTableResponse sweepPreviouslyConservativeNowThoroughTable(
-            @QueryParam("tablename") String tableName,
-            @QueryParam("startRow") Optional<String> startRow,
-            @Safe @QueryParam("fullSweep") Optional<Boolean> fullSweep,
-            @Safe @QueryParam("maxCellTsPairsToExamine") Optional<Integer> maxCellTsPairsToExamine,
-            @Safe @QueryParam("candidateBatchSize") Optional<Integer> candidateBatchSize,
-            @Safe @QueryParam("deleteBatchSize") Optional<Integer> deleteBatchSize);
-}u}(jW (a043b1f465845d038463867d0cef3a602201da50j Tatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweeperServiceImpl.javaj removedj K j Kj Kj https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImpl.javaj https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImpl.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j X.  @@ -1,169 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.SweepResults;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
-import com.palantir.atlasdb.logging.LoggingArgs;
-import com.palantir.logsafe.Preconditions;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.UnsafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.Optional;
-
-public final class SweeperServiceImpl implements SweeperService {
-    private static final SafeLogger log = SafeLoggerFactory.get(SweeperServiceImpl.class);
-
-    private final SpecificTableSweeper specificTableSweeper;
-    private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-
-    public SweeperServiceImpl(
-            SpecificTableSweeper specificTableSweeper, AdjustableSweepBatchConfigSource sweepBatchConfigSource) {
-        this.specificTableSweeper = specificTableSweeper;
-        this.sweepBatchConfigSource = sweepBatchConfigSource;
-    }
-
-    @Override
-    public SweepTableResponse sweepTable(
-            String tableName,
-            Optional<String> startRow,
-            Optional<Boolean> fullSweep,
-            Optional<Integer> maxCellTsPairsToExamine,
-            Optional<Integer> candidateBatchSize,
-            Optional<Integer> deleteBatchSize) {
-        TableReference tableRef = getTableRef(tableName);
-        checkTableExists(tableName, tableRef);
-
-        byte[] decodedStartRow = startRow.map(PtBytes::decodeHexString).orElse(PtBytes.EMPTY_BYTE_ARRAY);
-        SweepBatchConfig config =
-                buildConfigWithOverrides(maxCellTsPairsToExamine, candidateBatchSize, deleteBatchSize);
-
-        return SweepTableResponse.from(
-                runSweep(fullSweep, tableRef, decodedStartRow, config, SweepTaskRunner.RunType.FULL));
-    }
-
-    @Override
-    public SweepTableResponse sweepPreviouslyConservativeNowThoroughTable(
-            String tableName,
-            Optional<String> startRow,
-            Optional<Boolean> fullSweep,
-            Optional<Integer> maxCellTsPairsToExamine,
-            Optional<Integer> candidateBatchSize,
-            Optional<Integer> deleteBatchSize) {
-        TableReference tableRef = getTableRef(tableName);
-        checkTableExists(tableName, tableRef);
-
-        byte[] decodedStartRow = startRow.map(PtBytes::decodeHexString).orElse(PtBytes.EMPTY_BYTE_ARRAY);
-        SweepBatchConfig config =
-                buildConfigWithOverrides(maxCellTsPairsToExamine, candidateBatchSize, deleteBatchSize);
-
-        return SweepTableResponse.from(runSweep(
-                fullSweep, tableRef, decodedStartRow, config, SweepTaskRunner.RunType.WAS_CONSERVATIVE_NOW_THOROUGH));
-    }
-
-    private SweepResults runSweep(
-            Optional<Boolean> fullSweep,
-            TableReference tableRef,
-            byte[] decodedStartRow,
-            SweepBatchConfig config,
-            SweepTaskRunner.RunType runType) {
-        if (!fullSweep.isPresent()) {
-            log.warn("fullSweep parameter was not specified, defaulting to true");
-        }
-
-        if (fullSweep.orElse(true)) {
-            log.info(
-                    "Running sweep of full table {}, "
-                            + "with maxCellTsPairsToExamine: {}, candidateBatchSize: {}, deleteBatchSize: {}, "
-                            + "starting from row {}",
-                    LoggingArgs.tableRef(tableRef),
-                    SafeArg.of("maxCellTsPairsToExamine", config.maxCellTsPairsToExamine()),
-                    SafeArg.of("candidateBatchSize", config.candidateBatchSize()),
-                    SafeArg.of("deleteBatchSize", config.deleteBatchSize()),
-                    UnsafeArg.of("decodedStartRow", decodedStartRow));
-            return runFullSweepWithoutSavingResults(tableRef, decodedStartRow, config, runType);
-        } else {
-            log.info(
-                    "Running sweep of a single batch on table {}, "
-                            + "with maxCellTsPairsToExamine: {}, candidateBatchSize: {}, deleteBatchSize: {}, "
-                            + "starting from row {}",
-                    LoggingArgs.tableRef(tableRef),
-                    SafeArg.of("maxCellTsPairsToExamine", config.maxCellTsPairsToExamine()),
-                    SafeArg.of("candidateBatchSize", config.candidateBatchSize()),
-                    SafeArg.of("deleteBatchSize", config.deleteBatchSize()),
-                    UnsafeArg.of("decodedStartRow", decodedStartRow));
-            return runOneBatchWithoutSavingResults(tableRef, decodedStartRow, config, runType);
-        }
-    }
-
-    private SweepBatchConfig buildConfigWithOverrides(
-            Optional<Integer> maxCellTsPairsToExamine,
-            Optional<Integer> candidateBatchSize,
-            Optional<Integer> deleteBatchSize) {
-        ImmutableSweepBatchConfig.Builder batchConfigBuilder =
-                ImmutableSweepBatchConfig.builder().from(sweepBatchConfigSource.getAdjustedSweepConfig());
-
-        maxCellTsPairsToExamine.ifPresent(batchConfigBuilder::maxCellTsPairsToExamine);
-        candidateBatchSize.ifPresent(batchConfigBuilder::candidateBatchSize);
-        deleteBatchSize.ifPresent(batchConfigBuilder::deleteBatchSize);
-
-        return batchConfigBuilder.build();
-    }
-
-    private TableReference getTableRef(String tableName) {
-        Preconditions.checkArgument(
-                TableReference.isFullyQualifiedName(tableName),
-                "Table name is not fully qualified",
-                LoggingArgs.safeInternalTableName(tableName));
-        return TableReference.createFromFullyQualifiedName(tableName);
-    }
-
-    private void checkTableExists(String tableName, TableReference tableRef) {
-        Preconditions.checkArgument(
-                specificTableSweeper.getKvs().getAllTableNames().contains(tableRef),
-                "Table requested to sweep does not exist",
-                LoggingArgs.safeInternalTableName(tableName));
-    }
-
-    private SweepResults runFullSweepWithoutSavingResults(
-            TableReference tableRef,
-            byte[] startRow,
-            SweepBatchConfig sweepBatchConfig,
-            SweepTaskRunner.RunType runType) {
-        SweepResults cumulativeResults = SweepResults.createEmptySweepResult(Optional.of(startRow));
-
-        while (cumulativeResults.getNextStartRow().isPresent()) {
-            SweepResults results = runOneBatchWithoutSavingResults(
-                    tableRef, cumulativeResults.getNextStartRow().get(), sweepBatchConfig, runType);
-
-            specificTableSweeper.updateTimeMetricsOneIteration(
-                    results.getTimeInMillis(), results.getTimeElapsedSinceStartedSweeping());
-            cumulativeResults = cumulativeResults.accumulateWith(results);
-        }
-
-        return cumulativeResults;
-    }
-
-    private SweepResults runOneBatchWithoutSavingResults(
-            TableReference tableRef,
-            byte[] startRow,
-            SweepBatchConfig sweepBatchConfig,
-            SweepTaskRunner.RunType runType) {
-        return specificTableSweeper.runOneIteration(tableRef, startRow, sweepBatchConfig, runType);
-    }
-}u}(jW (a5aa10990351e2183eaafa2292e37b9821a2373bj \atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitioner.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X.  @@ -15,10 +15,9 @@
  */
 package com.palantir.atlasdb.sweep.queue;
 
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.annotations.VisibleForTesting;
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.WriteReference;
@@ -41,13 +40,8 @@ public class WriteInfoPartitioner {
     private final KeyValueService kvs;
     private final Supplier<Integer> numShards;
 
-    private final LoadingCache<TableReference, SweeperStrategy> cache = CacheBuilder.newBuilder()
-            .build(new CacheLoader<>() {
-                @Override
-                public SweeperStrategy load(TableReference key) {
-                    return getStrategyFromKvs(key);
-                }
-            });
+    private final LoadingCache<TableReference, SweeperStrategy> cache =
+            Caffeine.newBuilder().build(this::getStrategyFromKvs);
 
     public WriteInfoPartitioner(KeyValueService kvs, Supplier<Integer> numShards) {
         this.kvs = kvs;
@@ -96,7 +90,7 @@ SweeperStrategy getStrategy(WriteInfo writeInfo) {
     }
 
     SweeperStrategy getStrategyForTable(TableReference tableRef) {
-        return cache.getUnchecked(tableRef);
+        return cache.get(tableRef);
     }
 
     private SweeperStrategy getStrategyFromKvs(TableReference tableRef) {u}(jW (873fe01fb2bcd122671ed8446a4741d208fbfa02j katlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AdvisoryLockConditionSuppliers.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -79,10 +79,13 @@ private static HeldLocksToken acquireLock(LockService lockService, LockRequest l
                     case BLOCK_UNTIL_TIMEOUT:
                     case BLOCK_INDEFINITELY:
                     case BLOCK_INDEFINITELY_THEN_RELEASE:
-                        log.warn("Could not lock successfully", ex);
                         ++failureCount;
+                        log.warn("Could not lock successfully", SafeArg.of("failureCount", failureCount), ex);
                         if (failureCount >= NUM_RETRIES) {
-                            log.warn("Failing after {} tries", SafeArg.of("failureCount", failureCount), ex);
+                            log.warn(
+                                    "Failing after exceeding maximum tries",
+                                    SafeArg.of("failureCount", failureCount),
+                                    ex);
                             throw ex;
                         }
                         break;u}(jW (3baaaaf51b7360fce9a867bd4f521f4017dceb26j `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj modifiedj K"j Kj K&j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -98,6 +98,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueServiceImpl;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
@@ -265,12 +266,14 @@ private enum State {
     protected final TableLevelMetricsController tableLevelMetricsController;
     protected final SuccessCallbackManager successCallbackManager = new SuccessCallbackManager();
     private final CommitTimestampLoader commitTimestampLoader;
+    private final ExpectationsMetrics expectationsDataCollectionMetrics;
 
     protected volatile boolean hasReads;
 
     protected final TimestampCache timestampCache;
 
     protected final TransactionKnowledgeComponents knowledge;
+
     protected final Closer closer = Closer.create();
 
     /**
@@ -345,6 +348,7 @@ private enum State {
                 timelockService,
                 immutableTimestamp,
                 knowledge);
+        this.expectationsDataCollectionMetrics = ExpectationsMetrics.of(metricsManager.getTaggedRegistry());
     }
 
     protected TransactionScopedCache getCache() {
@@ -1817,11 +1821,16 @@ private void ensureUncommitted() {
     }
 
     private void ensureStillRunning() {
-        if (!(state.get() == State.UNCOMMITTED || state.get() == State.COMMITTING)) {
+        if (!isStillRunning()) {
             throw new CommittedTransactionException();
         }
     }
 
+    private boolean isStillRunning() {
+        State stateNow = state.get();
+        return stateNow == State.UNCOMMITTED || stateNow == State.COMMITTING;
+    }
+
     /**
      * Returns true iff the transaction is known to have successfully committed.
      *
@@ -1950,8 +1959,9 @@ private void commitWrites(TransactionService transactionService) {
                 if (validationNecessaryForInvolvedTablesOnCommit()) {
                     throwIfImmutableTsOrCommitLocksExpired(null);
                 }
-                return;
             }
+            getTimer("nonWriteCommitTotalTimeSinceTxCreation")
+                    .update(Duration.of(transactionTimerContext.stop(), ChronoUnit.NANOS));
             return;
         }
 
@@ -2402,6 +2412,7 @@ protected LockToken acquireLocksForCommit() {
                                 lockDescriptors, currentTransactionConfig, stackTraceSnapshot))
                         .build());
         if (!lockResponse.wasSuccessful()) {
+            transactionOutcomeMetrics.markCommitLockAcquisitionFailed();
             log.error(
                     "Timed out waiting while acquiring commit locks. Timeout was {} ms. "
                             + "First ten required locks were {}.",
@@ -2596,9 +2607,28 @@ public TransactionReadInfo getReadInfo() {
         return keyValueService.getOverallReadInfo();
     }
 
-    // TODO(aalouane): implement and call this on transaction exit
     @Override
-    public void reportExpectationsCollectedData() {}
+    public void reportExpectationsCollectedData() {
+        if (isStillRunning()) {
+            log.error(
+                    "reportExpectationsCollectedData is called on an in-progress transaction",
+                    SafeArg.of("state", state.get()));
+            return;
+        }
+
+        reportExpectationsCollectedData(getAgeMillis(), getReadInfo(), expectationsDataCollectionMetrics);
+    }
+
+    @VisibleForTesting
+    static void reportExpectationsCollectedData(
+            long ageMillis, TransactionReadInfo readInfo, ExpectationsMetrics metrics) {
+        metrics.ageMillis().update(ageMillis);
+        metrics.bytesRead().update(readInfo.bytesRead());
+        metrics.kvsReads().update(readInfo.kvsCalls());
+
+        readInfo.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
+                .update(kvsCallReadInfo.bytesRead()));
+    }
 
     private long getStartTimestamp() {
         return startTimestamp.get();u}(jW (7a4b02962f2c8fcd57bfd60b8b4b157b2e6ed956j gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcome.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -62,5 +62,10 @@ public enum TransactionOutcome {
      * that started before our start timestamp and hasn't committed). This will be logged at most once for a given
      * transaction being rolled back, even if multiple transactions aim to rollback the same transaction.
      */
-    ROLLBACK_OTHER
+    ROLLBACK_OTHER,
+
+    /**
+     * The transaction failed to acquire commit locks at the beginning of the AtlasDB commit protocol.
+     */
+    COMMIT_LOCK_ACQUISITION_FAILED,
 }u}(jW (0cf6b112d9082ed759671aab0086b2bf32ccbedbj natlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetrics.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -85,6 +85,10 @@ public void markRollbackOtherTransaction() {
         getMeter(TransactionOutcome.ROLLBACK_OTHER).mark();
     }
 
+    public void markCommitLockAcquisitionFailed() {
+        getMeter(TransactionOutcome.COMMIT_LOCK_ACQUISITION_FAILED).mark();
+    }
+
     @VisibleForTesting
     Meter getMeter(TransactionOutcome outcome) {
         return getMeter(outcome, ImmutableMap.of());u}(jW (e696a4e851cc0de0f72f1af470c874f29b2e719bj 5atlasdb-impl-shared/src/main/metrics/expectations.ymlj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,19 @@
+options:
+  javaPackage: 'com.palantir.atlasdb.transaction.expectations'
+
+namespaces:
+  expectations:
+    docs: Data collection on transaction patterns
+    metrics:
+      bytesRead:
+        docs: Bytes read by a transaction through Atlas kvs read calls
+        type: histogram
+      kvsReads:
+        docs: Number of Atlas kvs read calls made by a transaction
+        type: histogram
+      ageMillis:
+        docs: Elapsed duration in milliseconds for a transaction
+        type: histogram
+      mostKvsBytesReadInSingleCall:
+        docs: Most bytes read by a transaction in one Atlas kvs read call
+        type: histogramu}(jW (2de6f288bf092213b4b2345a73a735695f0f3c27j catlasdb-impl-shared/src/test/java/com/palantir/atlasdb/keyvalue/api/watch/TimestampMappingTest.javaj addedj K\j K j K\j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X;  @@ -0,0 +1,92 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.api.watch;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.google.common.collect.Iterables;
+import com.palantir.lock.watch.LockWatchVersion;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import java.util.NoSuchElementException;
+import java.util.UUID;
+import org.junit.Test;
+
+public class TimestampMappingTest {
+    @Test
+    public void singleLeaderMappingIsValid() {
+        UUID id = UUID.randomUUID();
+        ImmutableTimestampMapping timestampMapping = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(id, 1))
+                .build();
+        assertThat(timestampMapping.leader()).isEqualTo(id);
+    }
+
+    @Test
+    public void singleDistinctLeaderMappingIsValid() {
+        UUID id = UUID.randomUUID();
+        ImmutableTimestampMapping timestampMapping = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(id, 1))
+                .putTimestampMapping(2L, LockWatchVersion.of(id, 1))
+                .build();
+        assertThat(timestampMapping.leader()).isEqualTo(id);
+    }
+
+    @Test
+    public void conflictingLeaderMappingIsInvalid() {
+        ImmutableTimestampMapping.Builder builder = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(UUID.randomUUID(), 1))
+                .putTimestampMapping(2L, LockWatchVersion.of(UUID.randomUUID(), 1));
+
+        assertThatThrownBy(builder::build)
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+    }
+
+    @Test
+    public void emptyMappingIsInvalid() {
+        assertThatThrownBy(() -> TimestampMapping.builder().build())
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("Invalid range");
+    }
+
+    @Test
+    public void onlyIdenticalElements() {
+        assertThat(TimestampMapping.identicalElement(List.of("test"))).isEqualTo("test");
+        assertThat(TimestampMapping.identicalElement(Iterables.limit(Iterables.cycle("test"), 1000)))
+                .isEqualTo("test");
+        assertThat(TimestampMapping.identicalElement(Iterables.limit(Iterables.cycle(42L), 1000)))
+                .isEqualTo(42L);
+    }
+
+    @Test
+    public void emptyDistinctElements() {
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of()))
+                .isInstanceOf(NoSuchElementException.class);
+    }
+
+    @Test
+    public void multipleDistinctElements() {
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of("a", "b", "a")))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of("a", "a", "b")))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+    }
+}u}(jW (dccc318b332ffaa971355af06b94dc51f14199e0j Xatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/SweeperServiceImplTest.javaj removedj K j Kj Kj https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplTest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j X`!  @@ -1,205 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.never;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoMoreInteractions;
-import static org.mockito.Mockito.when;
-
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.io.BaseEncoding;
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.SweepResults;
-import com.palantir.atlasdb.util.DropwizardClientRule;
-import com.palantir.atlasdb.util.TestJaxRsClientFactory;
-import com.palantir.conjure.java.api.errors.RemoteException;
-import com.palantir.conjure.java.server.jersey.ConjureJerseyFeature;
-import java.util.List;
-import java.util.Optional;
-import javax.ws.rs.core.Response;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Rule;
-import org.junit.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-
-public class SweeperServiceImplTest extends SweeperTestSetup {
-
-    private static final String VALID_START_ROW = "0102030A";
-    private static final String LOWERCASE_BUT_VALID_START_ROW = "abadcafe";
-    private static final String MIXED_CASE_START_ROW = "AaAaAaAaAa1111";
-    private static final String INVALID_START_ROW = "xyz";
-    SweeperService sweeperService;
-
-    private static final SweepResults RESULTS_NO_MORE_TO_SWEEP = SweepResults.createEmptySweepResultWithNoMoreToSweep();
-    private static final SweepResults RESULTS_MORE_TO_SWEEP = SweepResults.createEmptySweepResultWithMoreToSweep();
-
-    @Rule
-    public DropwizardClientRule dropwizardClientRule = new DropwizardClientRule(
-            new SweeperServiceImpl(getSpecificTableSweeperService(), sweepBatchConfigSource),
-            ConjureJerseyFeature.INSTANCE);
-
-    @Override
-    @Before
-    public void setup() {
-        super.setup();
-
-        sweeperService = TestJaxRsClientFactory.createJaxRsClientForTest(
-                SweeperService.class,
-                SweeperServiceImplTest.class,
-                dropwizardClientRule.baseUri().toString());
-
-        setupTaskRunner(RESULTS_NO_MORE_TO_SWEEP);
-        when(kvs.getAllTableNames()).thenReturn(ImmutableSet.of(TABLE_REF));
-    }
-
-    @After
-    public void after() {
-        verifyNoSweepResultsSaved();
-    }
-
-    @Test
-    public void sweepingNonFullyTableShouldNotBeSuccessful() {
-        assertThatExceptionOfType(RemoteException.class)
-                .isThrownBy(() -> sweeperService.sweepTableFully("non_fully_qualified_name"))
-                .matches(ex -> ex.getStatus() == Response.Status.BAD_REQUEST.getStatusCode());
-    }
-
-    @Test
-    public void sweepingNonExistingTableShouldNotBeSuccessful() {
-        assertThatExceptionOfType(RemoteException.class)
-                .isThrownBy(() -> sweeperService.sweepTableFully("ns.non_existing_table"))
-                .matches(ex -> ex.getStatus() == Response.Status.BAD_REQUEST.getStatusCode());
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithValidStartRowShouldBeSuccessful() {
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), VALID_START_ROW);
-    }
-
-    @Test
-    public void sweepTableFromStartRowShouldAcceptLowercaseBase16Encodings() {
-        when(kvs.getAllTableNames()).thenReturn(ImmutableSet.of(TABLE_REF));
-
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), LOWERCASE_BUT_VALID_START_ROW);
-    }
-
-    @Test
-    public void sweepTableFromStartRowShouldAcceptMixedCaseBase16Encodings() {
-        when(kvs.getAllTableNames()).thenReturn(ImmutableSet.of(TABLE_REF));
-
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), MIXED_CASE_START_ROW);
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithInValidStartRowShouldThrow() {
-        assertThatExceptionOfType(RemoteException.class)
-                .isThrownBy(() -> sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), INVALID_START_ROW))
-                .matches(ex -> ex.getStatus() == Response.Status.BAD_REQUEST.getStatusCode());
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithBatchConfigWithNullStartRowShouldBeSuccessful() {
-        sweeperService.sweepTable(
-                TABLE_REF.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.of(1000),
-                Optional.of(1000),
-                Optional.of(500));
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithBatchConfigWithExactlyOneNonNullBatchConfigShouldBeSuccessful() {
-        sweeperService.sweepTable(
-                TABLE_REF.getQualifiedName(),
-                Optional.of(encodeStartRow(new byte[] {1, 2, 3})),
-                Optional.empty(),
-                Optional.of(10),
-                Optional.empty(),
-                Optional.empty());
-    }
-
-    @Test
-    public void testWriteProgressAndPriorityNotUpdatedAfterSweepRunsSuccessfully_butMetricsAre() {
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), encodeStartRow(new byte[] {1, 2, 3}));
-        ArgumentCaptor<Long> sweepTime = ArgumentCaptor.forClass(Long.class);
-        ArgumentCaptor<Long> totalTimeElapsed = ArgumentCaptor.forClass(Long.class);
-
-        Mockito.verify(sweepMetrics, times(1)).updateSweepTime(sweepTime.capture(), totalTimeElapsed.capture());
-        verifyExpectedArgument(sweepTime.getValue(), totalTimeElapsed.getValue());
-    }
-
-    @Test
-    public void sweepsEntireTableByDefault() {
-        List<byte[]> startRows = ImmutableList.of(PtBytes.EMPTY_BYTE_ARRAY, new byte[] {0x10}, new byte[] {0x50});
-
-        for (int i = 0; i < startRows.size(); i++) {
-            byte[] currentRow = startRows.get(i);
-            Optional<byte[]> nextRow =
-                    (i + 1) == startRows.size() ? Optional.empty() : Optional.of(startRows.get(i + 1));
-
-            SweepResults results = SweepResults.createEmptySweepResult(nextRow);
-            when(sweepTaskRunner.run(any(), any(), eq(currentRow), any())).thenReturn(results);
-        }
-
-        sweeperService.sweepTableFully(TABLE_REF.getQualifiedName());
-
-        startRows.forEach(row -> verify(sweepTaskRunner).run(any(), any(), eq(row), any()));
-        verifyNoMoreInteractions(sweepTaskRunner);
-    }
-
-    @Test
-    public void runsOneIterationIfRequested() {
-        setupTaskRunner(RESULTS_MORE_TO_SWEEP);
-
-        sweeperService.sweepTable(
-                TABLE_REF.getQualifiedName(),
-                Optional.empty(),
-                Optional.of(false),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        verify(sweepTaskRunner, times(1)).run(any(), any(), any(), any());
-        verifyNoMoreInteractions(sweepTaskRunner);
-    }
-
-    private void verifyExpectedArgument(long sweepTime, long totalTimeElapsed) {
-        assertThat(RESULTS_NO_MORE_TO_SWEEP.getTimeInMillis()).isEqualTo(sweepTime);
-        assertThat(totalTimeElapsed)
-                .isBetween(
-                        RESULTS_NO_MORE_TO_SWEEP.getTimeElapsedSinceStartedSweeping() - 1000L,
-                        RESULTS_NO_MORE_TO_SWEEP.getTimeElapsedSinceStartedSweeping());
-    }
-
-    private String encodeStartRow(byte[] rowBytes) {
-        return BaseEncoding.base16().encode(rowBytes);
-    }
-
-    private void verifyNoSweepResultsSaved() {
-        verify(progressStore, never()).saveProgress(any());
-        verify(priorityStore, never()).update(any(), any(), any());
-    }
-}u}(jW (ed0c8b2b67fd881994a89c56448b471760eee7f3j `atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitionerTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -30,14 +30,14 @@
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.Iterables;
-import com.google.common.util.concurrent.UncheckedExecutionException;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.atlasdb.table.description.SweeperStrategy;
+import com.palantir.common.exception.PalantirRuntimeException;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
@@ -74,15 +74,16 @@ public void setup() {
     public void getStrategyThrowsForIllegalMetadata() {
         when(mockKvs.getMetadataForTable(any())).thenReturn(AtlasDbConstants.EMPTY_TABLE_METADATA);
         assertThatThrownBy(() -> partitioner.getStrategy(getWriteInfoWithFixedShard(getTableRef("a"), 0, numShards)))
-                .isInstanceOf(UncheckedExecutionException.class);
+                .isInstanceOf(PalantirRuntimeException.class)
+                .hasMessageContaining("Message missing required fields: rowName, columns, conflictHandler");
     }
 
     @Test
     public void getStrategyThrowsOnUncheckedException() {
         RuntimeException cause = new RuntimeException("cause");
         when(mockKvs.getMetadataForTable(any())).thenThrow(cause);
         assertThatThrownBy(() -> partitioner.getStrategy(getWriteInfoWithFixedShard(getTableRef("a"), 0, numShards)))
-                .isInstanceOf(UncheckedExecutionException.class)
+                .isInstanceOf(RuntimeException.class)
                 .hasCause(cause);
     }
 u}(jW (c8823c29da58eca2fbdcdf7fc98f8ab892c82d54j matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javaj addedj KSj K j KSj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X<
  @@ -0,0 +1,83 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class ExpectationsMetricsReportingTest {
+    // immutable in type declaration for better 'withX' ergonomics
+    private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
+            ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
+
+    private ExpectationsMetrics metrics;
+
+    @Before
+    public void setUp() {
+        metrics = ExpectationsMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
+    }
+
+    @Test
+    public void ageReported() {
+        long age = 129L;
+        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, metrics);
+        assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
+    }
+
+    @Test
+    public void bytesReadReported() {
+        long bytes = 1290L;
+        reportMetrics(BLANK_READ_INFO.withBytesRead(bytes));
+        assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
+    }
+
+    @Test
+    public void kvsCallsReported() {
+        long calls = 12L;
+        reportMetrics(BLANK_READ_INFO.withKvsCalls(calls));
+        assertThat(metrics.kvsReads().getSnapshot().getValues()).containsOnly(calls);
+    }
+
+    @Test
+    public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
+        reportMetrics(BLANK_READ_INFO);
+        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+                .isEmpty();
+    }
+
+    @Test
+    public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
+        long bytes = 193L;
+        reportMetrics(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+                .containsOnly(bytes);
+    }
+
+    private void reportMetrics(TransactionReadInfo readInfo) {
+        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, metrics);
+    }
+}u}(jW (cd21ecbc3c68e28c454d5bff8f68991164cec40bj tatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/TransactionConflictDetectionManagerTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConflictDetectionManagerTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConflictDetectionManagerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConflictDetectionManagerTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -21,7 +21,7 @@
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.Mockito.when;
 
-import com.google.common.cache.CacheLoader;
+import com.github.benmanes.caffeine.cache.CacheLoader;
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;u}(jW (9e9357f8de655d0e17ba1dd9b8acd708782624daj _atlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/KeyValueTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FKeyValueTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FKeyValueTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FKeyValueTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -720,6 +721,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -743,5 +745,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "hup2zbIPEU3UyNMOfe1YNw==";
+    static String __CLASS_HASH = "EvFEiQbULvhKQD1IWFw9Og==";
 }u}(jW (71133787b090b82a707e49603e186dfa7e9667bbj jatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamHashAidxTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamHashAidxTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamHashAidxTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamHashAidxTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "5cWqgzNsimsjOXwgH7qMXg==";
+    static String __CLASS_HASH = "JgFB0UN+4Pm4N3LOPvQBgQ==";
 }u      }(jW (12c3935195ed70fde95f3887274b533b88339351j eatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamIdxTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamIdxTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamIdxTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamIdxTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "MkCIg9TK7rahg1mYHQmGVQ==";
+    static String __CLASS_HASH = "bEOuPNCg8sYuyW4OuRhvww==";
 }u}(jW (89e24ea6242c9b9fb14e61ea5dcf01368dfc11ddj jatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamMetadataTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamMetadataTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamMetadataTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamMetadataTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "C96zzv/xJuD8fFjGUzSd4A==";
+    static String __CLASS_HASH = "lqzqHpNRg+/IVPQNyNYi8w==";
 }u}(jW (131662e5ecd75a9a845b1ada71a5f0caabb1015bj batlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamStore.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamStore.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamStore.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X$
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         ValueStreamMetadataTable table = tables.getValueStreamMetadataTable(t);
         Map<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<ValueStreamHashAidxTable.ValueStreamHashAidxRow, ValueStreamHashAidxTable.ValueStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (ValueStreamHashAidxTable.ValueStreamHashAidxRow r : m.keySet()) {
             for (ValueStreamHashAidxTable.ValueStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> rows = new HashSet<>();
+        Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(ValueStreamHashAidxTable.ValueStreamHashAidxRow.of(h));
         }u}(jW (8612b0a582e6b1950385aa6d1574bbac6e20ffa1j gatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamValueTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamValueTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamValueTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamValueTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "AWqOKaIXG5obDvezpY9QEQ==";
+    static String __CLASS_HASH = "uFwDglAaZjBu9w6E/JkGTA==";
 }u}(jW (026fff67eab8e84d14bad0730080cfefeff0ac7dj atlasdb-service/build.gradlej modifiedj Kj K j Kj phttps://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-service%2Fbuild.gradlej ohttps://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-service%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-service%2Fbuild.gradle?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -11,6 +11,7 @@ dependencies {
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'
     implementation 'com.fasterxml.jackson.core:jackson-databind'
+    implementation 'com.github.ben-manes.caffeine:caffeine'
     implementation 'com.google.guava:guava'
     implementation 'com.google.protobuf:protobuf-java'
     implementation 'com.palantir.safe-logging:preconditions'u}(jW (b79b4dafcc946cf96444ea06a15f80c43c917632j Oatlasdb-service/src/main/java/com/palantir/atlasdb/impl/AtlasDbServiceImpl.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FAtlasDbServiceImpl.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FAtlasDbServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FAtlasDbServiceImpl.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j Xh  @@ -15,8 +15,8 @@
  */
 package com.palantir.atlasdb.impl;
 
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Iterables;
@@ -66,7 +66,7 @@ public class AtlasDbServiceImpl implements AtlasDbService {
     private final KeyValueService kvs;
     private final TransactionManager txManager;
     private final Cache<TransactionToken, OpenTransaction> transactions =
-            CacheBuilder.newBuilder().expireAfterAccess(Duration.ofHours(12)).build();
+            Caffeine.newBuilder().expireAfterAccess(Duration.ofHours(12)).build();
     private final TableMetadataCache metadataCache;
 
     @Injectu}(jW (0ada116d7372c26c8a0931872702ce8748ea8d09j Oatlasdb-service/src/main/java/com/palantir/atlasdb/impl/TableMetadataCache.javaj modifiedj K	j K
j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FTableMetadataCache.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FTableMetadataCache.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FTableMetadataCache.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -15,9 +15,8 @@
  */
 package com.palantir.atlasdb.impl;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.table.description.TableMetadata;
@@ -31,24 +30,21 @@ public class TableMetadataCache {
 
     @Inject
     public TableMetadataCache(final KeyValueService kvs) {
-        this.cache = CacheBuilder.newBuilder()
+        this.cache = Caffeine.newBuilder()
                 .expireAfterAccess(Duration.ofMinutes(15))
-                .build(new CacheLoader<String, TableMetadata>() {
-                    @Override
-                    public TableMetadata load(String tableName) throws Exception {
-                        byte[] rawMetadata = kvs.getMetadataForTable(TableReference.createUnsafe(tableName));
-                        if (rawMetadata == null || rawMetadata.length == 0) {
-                            return EMPTY;
-                        }
-                        return TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(rawMetadata);
+                .build(tableName -> {
+                    byte[] rawMetadata = kvs.getMetadataForTable(TableReference.createUnsafe(tableName));
+                    if (rawMetadata == null || rawMetadata.length == 0) {
+                        return EMPTY;
                     }
+                    return TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(rawMetadata);
                 });
     }
 
     @CheckForNull
     @SuppressWarnings("ImmutablesReferenceEquality")
     public TableMetadata getMetadata(String tableName) {
-        TableMetadata ret = cache.getUnchecked(tableName);
+        TableMetadata ret = cache.get(tableName);
         if (ret == EMPTY) {
             return null;
         }u}(jW (633bf2503dddd056c1d63648ab4b3b33ddae8945j !atlasdb-tests-shared/build.gradlej modifiedj Kj K j Kj uhttps://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fbuild.gradlej thttps://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fbuild.gradle?ref=86d91aa59465ac0960f8f329fb2087653004b555j Xc  @@ -16,6 +16,7 @@ dependencies {
   implementation 'org.awaitility:awaitility'
 
   implementation 'com.fasterxml.jackson.core:jackson-core'
+  implementation 'com.github.ben-manes.caffeine:caffeine'
   implementation 'com.google.guava:guava'
   implementation 'com.palantir.common:streams'
   implementation 'com.palantir.conjure.java.api:service-config'u}(jW (d030dbed17299b5450443775cf43034372a1ca11j datlasdb-tests-shared/src/main/java/com/palantir/atlasdb/sweep/SweeperServiceImplIntegrationTest.javaj removedj K j Kj Kj https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplIntegrationTest.javaj https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplIntegrationTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplIntegrationTest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j X&  @@ -1,235 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.Cell;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.Value;
-import com.palantir.atlasdb.keyvalue.impl.InMemoryKeyValueService;
-import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
-import com.palantir.common.streams.KeyedStream;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.concurrent.ThreadLocalRandom;
-import java.util.stream.Collectors;
-import java.util.stream.IntStream;
-import org.junit.Before;
-import org.junit.Test;
-
-public class SweeperServiceImplIntegrationTest extends AbstractBackgroundSweeperIntegrationTest {
-    private SweeperService sweeperService;
-
-    @Before
-    @Override
-    public void setup() {
-        super.setup();
-        sweeperService = new SweeperServiceImpl(specificTableSweeper, sweepBatchConfigSource);
-    }
-
-    @Override
-    @Test
-    public void smokeTest() {
-        createTable(TABLE_1, SweepStrategy.CONSERVATIVE);
-        putManyCells(TABLE_1, 100, 110);
-        putManyCells(TABLE_1, 103, 113);
-        putManyCells(TABLE_1, 105, 115);
-        sweeperService.sweepTableFully(TABLE_1.getQualifiedName());
-        verifyTableSwept(TABLE_1, 75, true);
-    }
-
-    @Test
-    public void previouslyConservativeErasesMostExistingSentinelsInThoroughTable() {
-        skipCellVersion.setPeriod(Integer.MAX_VALUE);
-        createTable(TABLE_1, SweepStrategy.THOROUGH);
-
-        Map<Cell, byte[]> sentinelWrites = IntStream.range(0, 100)
-                .mapToObj(PtBytes::toBytes)
-                .map(bytes -> Cell.create(bytes, bytes))
-                .collect(Collectors.toMap(cell -> cell, _ignore -> PtBytes.EMPTY_BYTE_ARRAY));
-        kvs.put(TABLE_1, sentinelWrites, Value.INVALID_VALUE_TIMESTAMP);
-        Map<Cell, Long> readMap = KeyedStream.stream(sentinelWrites)
-                .map(_ignore -> Long.MAX_VALUE)
-                .collectToMap();
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(100);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(1);
-    }
-
-    @Test
-    public void previouslyConservativeRunsFullSweepIfTableIsStillConservativelySwept() {
-        createTable(TABLE_1, SweepStrategy.CONSERVATIVE);
-
-        Map<Cell, byte[]> writes = KeyedStream.of(IntStream.range(0, 100).boxed())
-                .mapKeys(PtBytes::toBytes)
-                .mapKeys(bytes -> Cell.create(bytes, bytes))
-                .map(PtBytes::toBytes)
-                .collectToMap();
-        kvs.put(TABLE_1, writes, 100L);
-        txService.putUnlessExists(100L, 101L);
-        kvs.put(TABLE_1, writes, 103L);
-        txService.putUnlessExists(103L, 104L);
-        Map<Cell, Long> readMap =
-                KeyedStream.stream(writes).map(_ignore -> 102L).collectToMap();
-
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(100);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        Map<Cell, Value> reads = kvs.get(TABLE_1, readMap);
-        // lower ts entries are swept, but we have sentinels
-        assertThat(reads.values().stream().map(Value::getTimestamp).collect(Collectors.toSet()))
-                .containsExactly(Value.INVALID_VALUE_TIMESTAMP);
-        assertThat(reads).hasSize(100);
-        Map<Cell, Long> readsAtMaxTs =
-                KeyedStream.stream(readMap).map(_ignore -> Long.MAX_VALUE).collectToMap();
-        Map<Cell, Value> maxTsReads = kvs.get(TABLE_1, readsAtMaxTs);
-        assertThat(maxTsReads.values().stream().map(Value::getTimestamp).collect(Collectors.toSet()))
-                .containsExactly(103L);
-        assertThat(maxTsReads).hasSize(100);
-    }
-
-    /**
-     * To help understand the test below, refer to the tables.
-     * Before sweep
-     * +----------+--------+-----------+
-     * | START_TS | VALUES | DELETIONS |
-     * +----------+--------+-----------+
-     * |      100 |    500 |       500 |
-     * |      103 |    500 |       500 |
-     * +----------+--------+-----------+
-     *
-     * After sweep
-     * +----------+--------+-----------+
-     * | START_TS | VALUES | DELETIONS |
-     * +----------+--------+-----------+
-     * |      100 |      6 |         5 |
-     * |      103 |    500 |     5 + 5 |
-     * +----------+--------+-----------+
-     */
-    @Test
-    public void previouslyConservativeRespectsSkipPeriodWhenSweepingNormally() {
-        skipCellVersion.setPeriod(9);
-        createTable(TABLE_1, SweepStrategy.THOROUGH);
-
-        Map<Cell, byte[]> writes = KeyedStream.of(IntStream.range(0, 1000).boxed())
-                .mapKeys(PtBytes::toBytes)
-                .mapKeys(bytes -> Cell.create(bytes, bytes))
-                .map(count -> count < 500 ? PtBytes.toBytes(count) : PtBytes.EMPTY_BYTE_ARRAY)
-                .collectToMap();
-        kvs.put(TABLE_1, writes, 100L);
-        txService.putUnlessExists(100L, 101L);
-        kvs.put(TABLE_1, writes, 103L);
-        txService.putUnlessExists(103L, 104L);
-
-        Map<Cell, Long> readMap =
-                KeyedStream.stream(writes).map(_ignore -> 102L).collectToMap();
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(1000);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        assertThat(kvs.get(TABLE_1, readMap))
-                .as("deletes all but 11 entries at lower timestamp ~ 1%")
-                .hasSize(11);
-        Map<Cell, Long> readsAtMaxTs =
-                KeyedStream.stream(readMap).map(_ignore -> Long.MAX_VALUE).collectToMap();
-        Map<Cell, Value> latestVisibleVersions = kvs.get(TABLE_1, readsAtMaxTs);
-        assertThat(latestVisibleVersions.values().stream()
-                        .map(Value::getTimestamp)
-                        .noneMatch(timestamp -> timestamp == 100L))
-                .as("none of the entries at lower ts are naked")
-                .isTrue();
-        assertThat(latestVisibleVersions)
-                .as("500 non-deletes, 5 deletes skipped normally, and 5 skipped to prevent revealing at lower ts")
-                .hasSize(510);
-    }
-
-    @Test
-    public void sweepPreviouslyConservativeNowThoroughTableFuzzTest() {
-        skipCellVersion.makeNonDeterministic();
-        createTable(TABLE_1, SweepStrategy.THOROUGH);
-
-        Set<Cell> cells = IntStream.range(0, 10_000)
-                .boxed()
-                .map(PtBytes::toBytes)
-                .map(bytes -> Cell.create(bytes, bytes))
-                .collect(Collectors.toSet());
-
-        for (int i = 0; i < 10; i++) {
-            Map<Cell, byte[]> writes = KeyedStream.of(cells)
-                    .map(cell ->
-                            ThreadLocalRandom.current().nextBoolean() ? cell.getRowName() : PtBytes.EMPTY_BYTE_ARRAY)
-                    .collectToMap();
-            kvs.put(TABLE_1, writes, 100L + 2L * i);
-            txService.putUnlessExists(100L + 2L * i, 101L + 2L * i);
-        }
-
-        Map<Cell, Long> readMap = KeyedStream.of(cells).map(_ignore -> 102L).collectToMap();
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(10_000);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        assertThat(kvs.get(TABLE_1, readMap).size())
-                .as("expected number of remaining entries is 1%, ~100")
-                .isBetween(50, 200);
-
-        Map<Cell, Long> readsAtMaxTs =
-                KeyedStream.of(cells).map(_ignore -> Long.MAX_VALUE).collectToMap();
-        Map<Cell, Value> latestVisibleVersions = kvs.get(TABLE_1, readsAtMaxTs);
-        assertThat(latestVisibleVersions.values().stream()
-                        .map(Value::getTimestamp)
-                        .allMatch(ts -> ts == 100 + 2 * 9))
-                .as("every visible cell still has the version at greatest timestamp")
-                .isTrue();
-        assertThat(latestVisibleVersions.size())
-                .as("expected number of cells that are fully deleted is ~45.22%, ~5500 remaining")
-                .isBetween(4500, 6500);
-    }
-
-    @Override
-    protected KeyValueService getKeyValueService() {
-        return new InMemoryKeyValueService(true);
-    }
-}u}(jW (495fe1f85525119f02ade86e97c44ed5de897764j katlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/TestConflictDetectionManagers.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTestConflictDetectionManagers.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTestConflictDetectionManagers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTestConflictDetectionManagers.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X#  @@ -16,7 +16,6 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.google.common.annotations.VisibleForTesting;
-import com.google.common.cache.CacheLoader;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import java.util.Map;
@@ -28,11 +27,7 @@ private TestConflictDetectionManagers() {}
     @VisibleForTesting
     static ConflictDetectionManager createWithStaticConflictDetection(
             Map<TableReference, Optional<ConflictHandler>> staticMap) {
-        return new ConflictDetectionManager(new CacheLoader<>() {
-            @Override
-            public Optional<ConflictHandler> load(TableReference tableReference) throws Exception {
-                return staticMap.getOrDefault(tableReference, Optional.of(ConflictHandler.RETRY_ON_WRITE_WRITE));
-            }
-        });
+        return new ConflictDetectionManager(tableReference ->
+                staticMap.getOrDefault(tableReference, Optional.of(ConflictHandler.RETRY_ON_WRITE_WRITE)));
     }
 }u}(jW (8732fe7b76fe6fc4d194ebc3c3c808c8ab2df91ej uatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetricsAssert.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -59,6 +59,11 @@ public TransactionOutcomeMetricsAssert hasRollbackOther(long count) {
         return this;
     }
 
+    public TransactionOutcomeMetricsAssert hasCommitLockAcquisitionFailures(long count) {
+        checkPresentAndCheckCount(TransactionOutcome.COMMIT_LOCK_ACQUISITION_FAILED, count);
+        return this;
+    }
+
     public TransactionOutcomeMetricsAssert hasLocksExpired(long count) {
         checkPresentAndCheckCount(TransactionOutcome.LOCKS_EXPIRED, count);
         return this;u}(jW (5cdcabaa8268eb540f0ccfc73d1fe1870eb88dadj Xatlasdb-tests-shared/src/main/java/com/palantir/timelock/paxos/InMemoryTimeLockRule.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimeLockRule.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimeLockRule.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimeLockRule.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -17,9 +17,9 @@
 package com.palantir.timelock.paxos;
 
 import com.palantir.atlasdb.keyvalue.api.watch.LockWatchManagerInternal;
-import com.palantir.atlasdb.timelock.AsyncTimelockResource;
 import com.palantir.atlasdb.timelock.AsyncTimelockService;
 import com.palantir.atlasdb.timelock.TimeLockServices;
+import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.lock.LockService;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.timestamp.ManagedTimestampService;
@@ -66,11 +66,6 @@ public LockService getLockService() {
         return services.getLockService();
     }
 
-    @Override
-    public AsyncTimelockResource getTimelockResource() {
-        return services.getTimelockResource();
-    }
-
     @Override
     public AsyncTimelockService getTimelockService() {
         return services.getTimelockService();
@@ -81,6 +76,11 @@ public TimestampManagementService getTimestampManagementService() {
         return services.getTimestampManagementService();
     }
 
+    @Override
+    public LockLog getLockLog() {
+        return services.getLockLog();
+    }
+
     public TimelockService getLegacyTimelockService() {
         return services.getLegacyTimelockService();
     }u}(jW (fd1072fee241e64f646b79a5c47f7f4c01826392j \atlasdb-tests-shared/src/main/java/com/palantir/timelock/paxos/InMemoryTimelockServices.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -21,11 +21,11 @@
 import com.palantir.atlasdb.http.RedirectRetryTargeter;
 import com.palantir.atlasdb.keyvalue.api.LockWatchCachingConfig;
 import com.palantir.atlasdb.keyvalue.api.watch.LockWatchManagerInternal;
-import com.palantir.atlasdb.timelock.AsyncTimelockResource;
 import com.palantir.atlasdb.timelock.AsyncTimelockService;
 import com.palantir.atlasdb.timelock.ConjureTimelockResource;
 import com.palantir.atlasdb.timelock.TimeLockServices;
 import com.palantir.atlasdb.timelock.api.ConjureTimelockService;
+import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.conjure.java.api.config.service.PartialServiceConfiguration;
@@ -205,11 +205,6 @@ public LockService getLockService() {
         return delegate.getLockService();
     }
 
-    @Override
-    public AsyncTimelockResource getTimelockResource() {
-        return delegate.getTimelockResource();
-    }
-
     @Override
     public AsyncTimelockService getTimelockService() {
         return delegate.getTimelockService();
@@ -220,6 +215,11 @@ public TimestampManagementService getTimestampManagementService() {
         return delegate.getTimestampManagementService();
     }
 
+    @Override
+    public LockLog getLockLog() {
+        return delegate.getLockLog();
+    }
+
     public ManagedTimestampService getManagedTimestampService() {
         return delegate.getTimelockService();
     }u}(jW (b477ac45a67d3461a2afb8a529c94e3055b5291cj \atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/factory/TransactionManagersTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -165,7 +165,7 @@ public class TransactionManagersTest {
     private AtlasDbConfig config;
     private AtlasDbRuntimeConfig mockAtlasDbRuntimeConfig;
 
-    private Consumer<Object> environment;
+    private Consumer<Object> registrar;
     private TimestampStoreInvalidator invalidator;
     private Consumer<Runnable> originalAsyncMethod;
 
@@ -208,7 +208,7 @@ public void setUp() {
         when(mockAtlasDbRuntimeConfig.timelockRuntime()).thenReturn(Optional.empty());
         when(mockAtlasDbRuntimeConfig.remotingClient()).thenReturn(RemotingClientConfigs.DEFAULT);
 
-        environment = mock(Consumer.class);
+        registrar = mock(Consumer.class);
 
         invalidator = mock(TimestampStoreInvalidator.class);
         when(invalidator.backupAndInvalidate()).thenReturn(EMBEDDED_BOUND);
@@ -236,7 +236,7 @@ public void cannotProvideRuntimeConfigTwice() {
                         .userAgent(USER_AGENT)
                         .globalMetricsRegistry(new MetricRegistry())
                         .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                        .registrar(environment)
+                        .registrar(registrar)
                         .runtimeConfig(Refreshable.only(Optional.empty()))
                         .runtimeConfigSupplier(Optional::empty)
                         .build())
@@ -351,7 +351,7 @@ public void setsGlobalDefaultLockTimeout() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build()
                 .serializable();
 
@@ -412,7 +412,7 @@ public void runsClosingCallbackOnShutdown() throws Exception {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build()
                 .serializable();
         manager.registerClosingCallback(callback);
@@ -432,7 +432,7 @@ public void keyValueServiceMetricsDoNotContainUserAgent() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build()
                 .serializable();
         assertThat(metrics.getNames().stream().anyMatch(metricName -> metricName.contains(USER_AGENT_NAME)))
@@ -453,7 +453,7 @@ public void overriddenServiceNameIsReturned() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .serviceIdentifierOverride("overriden")
                 .build();
 
@@ -473,7 +473,7 @@ public void serviceNameIsFetchedFromAtlasConfig() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build();
         assertThat(transactionManagers.serviceName()).isEqualTo("namespace");
     }
@@ -493,7 +493,7 @@ public void serviceNameIsFetchedFromKvsConfigWhenItIsNotPresentInAtlasConfig() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build();
 
         assertThat(transactionManagers.serviceName()).isEqualTo("namespace");
@@ -510,7 +510,7 @@ public void serviceNameFallsBackToDefaultWhenNamespaceIsNotPresent() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build();
 
         assertThat(transactionManagers.serviceName()).isEqualTo("UNKNOWN");
@@ -520,7 +520,7 @@ public void serviceNameFallsBackToDefaultWhenNamespaceIsNotPresent() {
     public void interruptingLocalLeaderElectionTerminates() throws IOException {
         Leaders.LocalPaxosServices localPaxosServices = Leaders.createAndRegisterLocalServices(
                 metricsManager,
-                environment,
+                registrar,
                 ImmutableLeaderConfig.builder()
                         .localServer("https://example")
                         .quorumSize(1)
@@ -593,7 +593,7 @@ private TransactionManagers withLockImmutableTsOnReadOnlyTransaction(boolean opt
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .lockImmutableTsOnReadOnlyTransactions(option)
                 .build();
     }
@@ -699,7 +699,7 @@ private KeyValueService initializeKeyValueServiceWithSweepSettings(boolean enabl
                 .userAgent(UserAgent.of(UserAgent.Agent.of("test", "0.0.0")))
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema())
                 .runtimeConfigSupplier(() -> Optional.of(atlasDbRuntimeConfig))
                 .build()
@@ -762,7 +762,7 @@ private void setUpForLocalServices() throws IOException {
                             .withBody(("\"" + localPingableLeader.getUUID() + "\"").getBytes(StandardCharsets.UTF_8))));
                     return null;
                 })
-                .when(environment)
+                .when(registrar)
                 .accept(isA(PingableLeader.class));
         setUpLeaderBlockInConfig();
     }
@@ -807,7 +807,7 @@ private LockAndTimestampServices getLockAndTimestampServices() {
                         metricsManager,
                         config,
                         Refreshable.only(mockAtlasDbRuntimeConfig),
-                        environment,
+                        registrar,
                         LockServiceImpl::create,
                         () -> ts,
                         invalidator,u}(jW (8154359d774907dc53f1db528c9656c41f00ad36j `atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/indexing/generated/DataTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FDataTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FDataTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FDataTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -3605,6 +3606,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -3628,5 +3630,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "rHjWG0+SGxcp7KyF4uN6Tg==";
+    static String __CLASS_HASH = "fgza/c8nH19LqrftPRIqiA==";
 }u}(jW (ee2a5122bea79238ecd27ad1e4ca1456a7f7b835j fatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/indexing/generated/TwoColumnsTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FTwoColumnsTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FTwoColumnsTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FTwoColumnsTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -2175,6 +2176,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -2198,5 +2200,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "ZLP1HeIjAhSt/NFAlfaFZw==";
+    static String __CLASS_HASH = "KStjuJG0LJnDxQ1sOAdxdg==";
 }u}(jW (c38a44055aef521e0c7a9078ac8e38e1f8f113f3j batlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/KeyValueTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FKeyValueTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FKeyValueTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FKeyValueTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "FVgUWmuxuVzpOrJIO/DXPQ==";
+    static String __CLASS_HASH = "4kr4uM+Pm0pXXBnI3Rwp/g==";
 }u}(jW (483655cb2596c5c21bca0cbf355078fc452c2f2dj xatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamHashAidxTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamHashAidxTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamHashAidxTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamHashAidxTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "8WWlkvBZIFpNHwUr7wJuXA==";
+    static String __CLASS_HASH = "QDCK4a9zv6EgLNkYkrAVPQ==";
 }u}(jW (69c2cc77ef0d597921e1c6bf0028a4c9b6da106ej satlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamIdxTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamIdxTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamIdxTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamIdxTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "fBsgiTVm3m2sJucODfXkrw==";
+    static String __CLASS_HASH = "ZrY7oPqs4lWL5Vm3ZAOfyQ==";
 }u}(jW (a48313725d6bbc0ecd9e5fd285aa2e10742f285dj xatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamMetadataTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamMetadataTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamMetadataTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamMetadataTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "YleWz4H842qjJBXcYvLobg==";
+    static String __CLASS_HASH = "k1qnaFkT6dVNCXg3oBI4WQ==";
 }u}(jW (b52156d27108b8235106d6448d277090b0bc34f1j patlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamStore.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamStore.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamStore.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XX  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         StreamTestMaxMemStreamMetadataTable table = tables.getStreamTestMaxMemStreamMetadataTable(t);
         Map<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow, StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow r : m.keySet()) {
             for (StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> rows = new HashSet<>();
+        Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow.of(h));
         }u}(jW (4cc09292a0c881814092e59571bf42259f56cab7j uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamValueTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamValueTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamValueTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamValueTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "1ctM+vcHEi56Rw7hX+plQg==";
+    static String __CLASS_HASH = "pYIryyxlhArJOo7k0Zv3dA==";
 }u}(jW (f825d53bfb0e6c5d7381ec01f8ecd07240bf379cj ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamHashAidxTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamHashAidxTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamHashAidxTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamHashAidxTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "A+NE35cfeEnY2MHhBM0Twg==";
+    static String __CLASS_HASH = "aO3hKAuHYd9vJquk5PiY1w==";
 }u}(jW (5502e70c87e613d70db75d4804d811626d434f02j matlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamIdxTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamIdxTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamIdxTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamIdxTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "eaBakAMUdj76AdcnIf29/Q==";
+    static String __CLASS_HASH = "hWTBrXR/SoJCr/v5CGBp5Q==";
 }u}(jW (ec5dd38ea6150d4b8d92e1084501290f8c0fef27j ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamMetadataTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamMetadataTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamMetadataTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamMetadataTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "gtouBjIyyNsb/b/qc9pCHA==";
+    static String __CLASS_HASH = "I4QsHKuDj4n21oCZPrbGRw==";
 }u}(jW (003e31d632e6a70db0661c723e695e8a07ef78a2j jatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamStore.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamStore.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamStore.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         StreamTestStreamMetadataTable table = tables.getStreamTestStreamMetadataTable(t);
         Map<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow, StreamTestStreamHashAidxTable.StreamTestStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow r : m.keySet()) {
             for (StreamTestStreamHashAidxTable.StreamTestStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> rows = new HashSet<>();
+        Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow.of(h));
         }u}(jW (67cbdf05b137660b3db269c6391c261c8816ea46j oatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamValueTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamValueTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamValueTable.java      j https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamValueTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Zjb+q9OtKHIGgdeO8BnLSw==";
+    static String __CLASS_HASH = "/Af3nGP1PVa3CpaveqZwGA==";
 }u}(jW (917b574b5d504d1cb1c8bf3fcffd2b3c22519a95j zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamHashAidxTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamHashAidxTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamHashAidxTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamHashAidxTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "X1hqbiqiEZbDU9agjHYzMA==";
+    static String __CLASS_HASH = "lE3nxoiGnxh9y5ILD8Ji1Q==";
 }u}(jW (303868d7e785a5c1384e703d5a65adf7a26b2a74j uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamIdxTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamIdxTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamIdxTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamIdxTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -730,6 +731,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -753,5 +755,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "U/6cxNEugWqjJJAs3M94Ew==";
+    static String __CLASS_HASH = "R1lO5ziYaN0Udjl/IakPew==";
 }u}(jW (71ec56a5ce54c4d000801a844aada1339c16a547j zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamMetadataTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamMetadataTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamMetadataTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamMetadataTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -697,6 +698,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -720,5 +722,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "nfCYOSFgRw9vgCfK8zepPQ==";
+    static String __CLASS_HASH = "ZnMVClEGG1k/Y9BfO/PktA==";
 }u}(jW (b239a11943f978187efeb70a40e27a8726a0f1dbj ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamStore.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamStore.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamStore.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         StreamTestWithHashStreamMetadataTable table = tables.getStreamTestWithHashStreamMetadataTable(t);
         Map<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow, StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow r : m.keySet()) {
             for (StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> rows = new HashSet<>();
+        Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow.of(h));
         }u}(jW (c74f7ec43a6341758a168abed0155c4295302fa9j watlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamValueTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamValueTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamValueTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamValueTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -684,6 +685,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -707,5 +709,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "gK5/dTiV0fnsYG3GkVekCA==";
+    static String __CLASS_HASH = "uywx4Vs+y/rXbP+WoU1Vqg==";
 }u}(jW (01c9c33be5490be859359377b6d7903a04344513j zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamHashAidxTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamHashAidxTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamHashAidxTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamHashAidxTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Ki6bqIt1Bc7VLmWbBOyz8w==";
+    static String __CLASS_HASH = "52McDDADyoK80XG2PM7xUQ==";
 }u}(jW (693352f35cd8833aee14743963d366a5727e2a75j uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamIdxTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamIdxTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamIdxTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamIdxTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -730,6 +731,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -753,5 +755,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "1iZU2XfKSsaB+roXMxh1gQ==";
+    static String __CLASS_HASH = "tH6ZP3FAS46/RMntNor6tw==";
 }u}(jW (0d40497726fdeeb4e593498fd2a0b43d8e75e666j zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamMetadataTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamMetadataTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamMetadataTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamMetadataTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -697,6 +698,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -720,5 +722,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "+eCmpk539lJx0Nvz/T4ltw==";
+    static String __CLASS_HASH = "j3IJu2gsDa9Zov5ZP9X4Mw==";
 }u}(jW (f2eb8a4207166b17b12c7605809b2b0c3d930ff2j ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamStore.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamStore.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamStore.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         TestHashComponentsStreamMetadataTable table = tables.getTestHashComponentsStreamMetadataTable(t);
         Map<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow, TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow r : m.keySet()) {
             for (TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> rows = new HashSet<>();
+        Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow.of(h));
         }u}(jW (e7ad00be1ac27e569b3ab9038b9fe44f48f231dbj watlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamValueTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamValueTable.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamValueTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamValueTable.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -685,6 +686,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -708,5 +710,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "lib/FOHtmiJ4apr21C/FRA==";
+    static String __CLASS_HASH = "iDMBVL6YNzaq38VRV2lB/g==";
 }u}(jW (18e3bf26bf01f5384536788e145f8e8f37200656j latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -237,7 +237,10 @@ public void registersMetrics() throws InterruptedException {
         TaggedMetricRegistry registry = snapshotTransactionManager.metricsManager.getTaggedRegistry();
         assertThat(registry.getMetrics().keySet().stream().map(MetricName::safeName))
                 .contains(SETUP_TASK_METRIC_NAME)
-                .contains(FINISH_TASK_METRIC_NAME);
+                .contains(FINISH_TASK_METRIC_NAME)
+                .contains("expectations.bytesRead")
+                .contains("expectations.kvsReads")
+                .contains("expectations.ageMillis");
         assertThat(registry.timer(MetricName.builder()
                                 .safeName(SETUP_TASK_METRIC_NAME)
                                 .build())u}(jW (c66fcac2f74aa5be8cdfd05aebf8029a49d9f883j eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -90,6 +90,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionConflictException;
 import com.palantir.atlasdb.transaction.api.TransactionFailedNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionFailedRetriableException;
+import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
@@ -118,6 +119,7 @@
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.TimeDuration;
 import com.palantir.lock.v2.LockImmutableTimestampResponse;
+import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.math.BigInteger;
@@ -322,6 +324,8 @@ public void cleanup() {}
     private static final Cell TEST_CELL = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("column1"));
     private static final Cell TEST_CELL_2 = Cell.create(PtBytes.toBytes("row2"), PtBytes.toBytes("column2"));
 
+    private static final byte[] TEST_VALUE = PtBytes.toBytes("value");
+
     @Override
     @Before
     public void setUp() throws Exception {
@@ -1484,6 +1488,23 @@ public void commitThrowsIfRolledBackAtCommitTime_expiredLocks() {
                 .hasLocksExpired(1);
     }
 
+    @Test
+    public void commitThrowsIfCommitLockAcquisitionFails() {
+        TimelockService timelockService = mock(TimelockService.class);
+        when(timelockService.lock(any(), any())).thenReturn(LockResponse.timedOut());
+        Transaction txn = getSnapshotTransactionWith(timelockService);
+
+        // We only request commit locks for transactions that write at least one value
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+
+        assertThatThrownBy(txn::commit)
+                .isInstanceOf(TransactionLockAcquisitionTimeoutException.class)
+                .hasMessage("Timed out while acquiring commit locks.");
+        TransactionOutcomeMetricsAssert.assertThat(transactionOutcomeMetrics)
+                .hasFailedCommits(1)
+                .hasCommitLockAcquisitionFailures(1);
+    }
+
     @Test
     public void commitThrowsIfRolledBackAtCommitTime_alreadyAborted() {
         final Cell cell = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("column1"));
@@ -2459,6 +2480,14 @@ private void setTransactionConfig(TransactionConfig config) {
         transactionConfig = config;
     }
 
+    private Transaction getSnapshotTransactionWith(TimelockService timelockService) {
+        ConjureStartTransactionsResponse conjureResponse = startTransactionWithWatches();
+        LockImmutableTimestampResponse lockImmutableTimestampResponse = conjureResponse.getImmutableTimestamp();
+        long transactionTs = conjureResponse.getTimestamps().start();
+        return getSnapshotTransactionWith(
+                timelockService, () -> transactionTs, lockImmutableTimestampResponse, unused -> {});
+    }
+
     private Transaction getSnapshotTransactionWith(
             TimelockService timelockService,
             Supplier<Long> startTs,u}(jW (b86c6ab4d0e299588d4d550dff55a4b053fb2870j satlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetricsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XL  @@ -72,6 +72,7 @@ public void canMarkVariousOutcomes() {
                 .put(4, transactionOutcomeMetrics::markPutUnlessExistsFailed)
                 .put(5, transactionOutcomeMetrics::markRollbackOtherTransaction)
                 .put(6, transactionOutcomeMetrics::markPreCommitCheckFailed)
+                .put(7, transactionOutcomeMetrics::markCommitLockAcquisitionFailed)
                 .buildOrThrow();
 
         tasks.entrySet().forEach(entry -> IntStream.range(0, entry.getKey())
@@ -83,7 +84,8 @@ public void canMarkVariousOutcomes() {
                 .hasLocksExpired(3)
                 .hasPutUnlessExistsFailures(4)
                 .hasRollbackOther(5)
-                .hasPreCommitCheckFailures(6);
+                .hasPreCommitCheckFailures(6)
+                .hasCommitLockAcquisitionFailures(7);
     }
 
     @Testu}(jW (9ce74a5cd2c6d02324dae753b39d4472d7e0fcadj -atlasdb-workload-server-antithesis/Dockerfilej modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-antithesis%2FDockerfilej https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-antithesis%2FDockerfilej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2FDockerfile?ref=86d91aa59465ac0960f8f329fb2087653004b555j @@ -1,4 +1,6 @@
 FROM scratch
 MAINTAINER AtlasDB Team
 
-ADD docker-compose.yml /
\ No newline at end of file
+ADD docker-compose.yml /
+ADD compact.sh /
+ADD flush.sh /
\ No newline at end of fileu}(jW (b284936b64cae7e6b461c14a3b7d116eadd96a23j /atlasdb-workload-server-antithesis/build.gradlej modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-antithesis%2Fbuild.gradlej https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-antithesis%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fbuild.gradle?ref=86d91aa59465ac0960f8f329fb2087653004b555j XL  @@ -7,5 +7,5 @@ def imageVersion = "${project.version.toString().replaceAll('\\+', '-')}"
 docker {
     name "palantirtechnologies/${project.name}:${imageVersion}"
     tags 'latest', 'snapshot'
-    files 'var/docker-compose.yml'
+    files 'var/docker-compose.yml', 'var/compact.sh', 'var/flush.sh'
 }
\ No newline at end of fileu}(jW (8fc45b8b9ddc37ded24af638207557f822511685j 1atlasdb-workload-server-antithesis/var/compact.shj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.sh?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,19 @@
+#!/bin/bash
+
+##
+# (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool compact'¡
\ No newline at end of fileu}(jW (b5c7b9efcec99e2e4e3b5ccc3eb2f13e725dca1aj 9atlasdb-workload-server-antithesis/var/docker-compose.ymlj modifiedj K)j K	j K2j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -2,7 +2,7 @@ version: '2'
 
 services:
   cassandra1:
-    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
     ports:
       - "9160"
       - "9042"
@@ -13,13 +13,14 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra1
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
 
   cassandra2:
-    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
     ports:
       - "9160"
       - "9042"
@@ -30,13 +31,14 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra2
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
 
   cassandra3:
-    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
     ports:
       - "9160"
       - "9042"
@@ -47,35 +49,65 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra3
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.4
 
-  timelock:
+  timelock1.palantir.pt:
     image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [ bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
     ports:
       - "8421"
       - "8422"
-    container_name: timelock
+    container_name: timelock1.palantir.pt
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.5
 
+  timelock2.palantir.pt:
+    image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [ bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
+    ports:
+      - "8421"
+      - "8422"
+    container_name: timelock2.palantir.pt
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.6
+
+  timelock3.palantir.pt:
+    image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
+    ports:
+      - "8421"
+      - "8422"
+    container_name: timelock3.palantir.pt
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.7
+
+
   workload-server:
     image: palantirtechnologies/atlasdb-workload-server-distribution:unspecified
-    command: [bash, -c, 'cp var/conf/workload-server.timelock.cassandra.yml var/conf/workload-server.yml 
-                         && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160 
+    command: [bash, -c, 'cp var/conf/workload-server.timelock.cassandra.yml var/conf/workload-server.yml
+                         && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160
                          && service/bin/init.sh console']
     container_name: workload-server
     depends_on:
       - cassandra1
       - cassandra2
       - cassandra3
-      - timelock
+      - timelock1.palantir.pt
+      - timelock2.palantir.pt
+      - timelock3.palantir.pt
     networks:
       antithesis-net:
-        ipv4_address: 10.20.20.6
+        ipv4_address: 10.20.20.8
 
 networks:
   antithesis-net:u}(jW (507c4267b553dffafece23d33ad88df6fd5f4bb2j /atlasdb-workload-server-antithesis/var/flush.shj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fflush.sh?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,19 @@
+#!/bin/bash
+
+##
+# (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool flush'
\ No newline at end of fileu}(jW (b7485353a77f6bf0cd6c937bff58416577e13b1dj (atlasdb-workload-server-api/build.gradlej modifiedj Kj K j Kj |https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fbuild.gradlej {https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fbuild.gradle?ref=86d91aa59465ac0960f8f329fb2087653004b555j @@ -13,4 +13,5 @@ dependencies {
     annotationProcessor 'org.immutables:value'
 
     testImplementation 'com.palantir.safe-logging:preconditions-assertj'
+    testImplementation 'org.mockito:mockito-core'
 }
\ No newline at end of fileu}(jW (d4fbc32c29d514c2d7a88a64e0fbc48b94b74465j matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/CrossCellInconsistency.javaj addedj K-j K j K-j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistency.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistency.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistency.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.Map;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+/**
+ * A set of cells that may individually be valid, but considered together may violate some property that is expected
+ * to hold across the group of cells.
+ */
+@Value.Immutable
+public interface CrossCellInconsistency {
+    Map<TableAndWorkloadCell, Optional<Integer>> inconsistentValues();
+
+    @Value.Check
+    default void consistsOfAtLeastTwoCells() {
+        Preconditions.checkArgument(
+                inconsistentValues().size() >= 2,
+                "A cross-cell inconsistency must consist of at least two cells",
+                SafeArg.of("values", inconsistentValues()));
+    }
+
+    static ImmutableCrossCellInconsistency.Builder builder() {
+        return ImmutableCrossCellInconsistency.builder();
+    }
+}u}(jW (29fc330cc18e86d9e89097012f497c48a1e6c4b9j fatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/MismatchedValue.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X&  @@ -24,10 +24,10 @@
 @Value.Immutable
 public interface MismatchedValue {
     @Value.Parameter
-    Optional<Integer> actual();
+    ValueAndMaybeTimestamp actual();
 
     @Value.Parameter
-    Optional<Integer> expected();
+    ValueAndMaybeTimestamp expected();
 
     @Value.Check
     default void actualAndExpectedAreNotEqualToEachOther() {
@@ -39,6 +39,10 @@ default void actualAndExpectedAreNotEqualToEachOther() {
     }
 
     static MismatchedValue of(Optional<Integer> actual, Optional<Integer> expected) {
+        return MismatchedValue.of(ValueAndMaybeTimestamp.of(actual), ValueAndMaybeTimestamp.of(expected));
+    }
+
+    static MismatchedValue of(ValueAndMaybeTimestamp actual, ValueAndMaybeTimestamp expected) {
         return ImmutableMismatchedValue.of(actual, expected);
     }
 }u}(jW (596cccc8bfe0813aaf92d90536ccec5e30931db3j katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/TransactionInvariant.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,22 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import java.util.List;
+
+public interface TransactionInvariant extends Invariant<List<InvalidWitnessedTransaction>> {}u}(jW (f4cdcb16e74fcf6db212f3bb382ada34382c7076j matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/ValueAndMaybeTimestamp.javaj addedj KEj K j KEj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X	  @@ -0,0 +1,69 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import java.util.Optional;
+import org.immutables.value.Value;
+
+/**
+ * Occasionally, storing just a value might not be enough context needed when validating an invariant.
+ *
+ * For example, to detect that the ABA problem has occurred (ABA problem (https://en.wikipedia.org/wiki/ABA_problem),
+ * values alone would not be sufficient. Storing the timestamp associated with the value, such as the start timestamp,
+ * would be able to catch these sort of cases.
+ */
+@Value.Immutable
+public interface ValueAndMaybeTimestamp {
+    ValueAndMaybeTimestamp EMPTY = of(Optional.empty(), Optional.empty());
+
+    /**
+     * Value, which when empty either indicates it does not exist, or has been deleted.
+     */
+    @Value.Parameter
+    Optional<Integer> value();
+
+    /**
+     * Optional timestamp associated with the value. When empty it means either it does not exist, or it is not needed
+     * for comparison.
+     */
+    @Value.Parameter
+    Optional<Long> timestamp();
+
+    static ValueAndMaybeTimestamp empty() {
+        return EMPTY;
+    }
+
+    static ValueAndMaybeTimestamp of(Integer value) {
+        return of(Optional.of(value));
+    }
+
+    static ValueAndMaybeTimestamp of(Optional<Integer> value) {
+        return of(value, Optional.empty());
+    }
+
+    static ValueAndMaybeTimestamp of(Optional<Integer> value, Long timestamp) {
+        return of(value, Optional.of(timestamp));
+    }
+
+    static ValueAndMaybeTimestamp of(Integer value, Long timestamp) {
+        return of(Optional.of(value), Optional.of(timestamp));
+    }
+
+    static ValueAndMaybeTimestamp of(Optional<Integer> value, Optional<Long> timestamp) {
+        return ImmutableValueAndMaybeTimestamp.of(value, timestamp);
+    }
+}u}(jW (e413798427db97d025ad85b9f49ea4d26c076e02j natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/resource/CassandraSidecarResource.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,29 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.resource;
+
+public interface CassandraSidecarResource {
+    /**
+     * Asynchronous method that flushes all keyspaces on a Cassandra host.
+     */
+    void flush(String host);
+
+    /**
+     * Asynchronous method that performs a major compaction for all keyspaces on Cassandra.
+     */
+    void compact(String host);
+}u}(jW (2725912f8e075ab25f996c376910f257d6850d7fj ^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ColumnValue.javaj addedj K j K j K j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ColumnValue {
+    @Value.Parameter
+    int column();
+
+    @Value.Parameter
+    int value();
+
+    static ColumnValue of(int column, int value) {
+        return ImmutableColumnValue.of(column, value);
+    }
+}u}(jW (d9abc2f2c00a1ff33edf1dbcaefbf672fcd91ad1j natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/InteractiveTransactionStore.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.Optional;
+import java.util.function.Consumer;
+
+public interface InteractiveTransactionStore extends TransactionStore {
+    /**
+     * Provides a convenient interface for interacting with a transaction, and having each action recorded.
+     * @param interactiveTransactionConsumer Consumer which performs gets/puts/deletes
+     * @return The witnessed transaction, if successfully committed.
+     */
+    Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer);
+}u}(jW (72396cbd183a5589ac7b3cf6593e07b9c5de2fd0j katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ReadableTransactionStore.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XY  @@ -28,4 +28,9 @@ public interface ReadableTransactionStore {
      * @return The value of the cell for a given table.
      */
     Optional<Integer> get(String table, WorkloadCell cell);
+
+    /**
+     * Checks whether the transaction with the provided startTimestamp has committed.
+     */
+    boolean isCommitted(long startTimestamp);
 }u}(jW (9a3b7a7060c8f72d6a97bc2c347571b698b81c47j jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStoreFactory.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -22,6 +22,6 @@
 /**
  * Creates transaction stores of a certain type which are bounded to the provided tables/indexes.
  */
-public interface TransactionStoreFactory {
-    TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
+public interface TransactionStoreFactory<T extends TransactionStore> {
+    T create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
 }u}(jW (8a9dd68a171bcb94d41b777979635f8a4cca5c99j matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelection.javaj addedj KBj K j KBj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j Xq	  @@ -0,0 +1,66 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.google.common.collect.Range;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ColumnRangeSelection {
+    Optional<Integer> startColumnInclusive();
+
+    Optional<Integer> endColumnExclusive();
+
+    default boolean contains(int column) {
+        return asGuavaRange().contains(column);
+    }
+
+    default Range<Integer> asGuavaRange() {
+        if (startColumnInclusive().isEmpty()) {
+            if (endColumnExclusive().isEmpty()) {
+                return Range.all();
+            } else {
+                return Range.lessThan(endColumnExclusive().get());
+            }
+        } else {
+            if (endColumnExclusive().isEmpty()) {
+                return Range.atLeast(startColumnInclusive().get());
+            } else {
+                return Range.closedOpen(
+                        startColumnInclusive().get(), endColumnExclusive().get());
+            }
+        }
+    }
+
+    @Value.Check
+    default void check() {
+        Preconditions.checkState(
+                startColumnInclusive().isEmpty()
+                        || endColumnExclusive().isEmpty()
+                        || startColumnInclusive().get() <= endColumnExclusive().get(),
+                "Start column must be less than or equal to end column",
+                SafeArg.of("startColumnInclusive", startColumnInclusive()),
+                SafeArg.of("endColumnExclusive", endColumnExclusive()));
+    }
+
+    static ImmutableColumnRangeSelection.Builder builder() {
+        return ImmutableColumnRangeSelection.builder();
+    }
+}u}(jW (bd06cc1312715a991167d81bd1ceb940ff719fc1j patlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/DeleteTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X{  @@ -22,7 +22,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface DeleteTransactionAction extends TransactionAction {
+public interface DeleteTransactionAction extends SingleCellTransactionAction {
 
     default WitnessedDeleteTransactionAction witness() {
         return ImmutableWitnessedDeleteTransactionAction.of(table(), cell());u}(jW (4f80972ed51d1ca703c845e6db8af278009a14f3j oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javaj addedj K#j K j K#j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import java.util.List;
+import java.util.Optional;
+
+/**
+ * Allows for convenient interaction with a transactional store.
+ */
+public interface InteractiveTransaction {
+    Optional<Integer> read(String table, WorkloadCell workloadCell);
+
+    void write(String table, WorkloadCell workloadCell, Integer value);
+
+    void delete(String table, WorkloadCell workloadCell);
+
+    List<WitnessedTransactionAction> witness();
+}u}(jW (e9ae2e08974eda0443281b98d5bc9d2fb9243eccj natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ReadTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -23,7 +23,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface ReadTransactionAction extends TransactionAction {
+public interface ReadTransactionAction extends SingleCellTransactionAction {
 
     default WitnessedReadTransactionAction witness(Optional<Integer> value) {
         return ImmutableWitnessedReadTransactionAction.of(table(), cell(), value);u      }(jW (38bd65bb4f96e9501721390809e74a159a2f3b13j |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowColumnRangeReadTransactionAction.javaj addedj K7j K j K7j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X	  @@ -0,0 +1,55 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import java.util.List;
+import org.immutables.value.Value;
+
+/**
+ * This transaction action models a column range read in AtlasDB ("getRowsColumnRange" in the AtlasDB API).
+ * <p>
+ * In the interest of implementation simplicity, two significant simplifications are made. Firstly, the action is
+ * presumed to act on a single row, though calls to getRowsColumnRange in practice can act on multiple rows in parallel.
+ * Secondly, values read from getRowsColumnRange are accessed through a live iterator, while for purposes of gathering
+ * a witness, we immediately drain the iterator and use the set of columns read as the witness to this action.
+ */
+@Value.Immutable
+public interface RowColumnRangeReadTransactionAction extends TransactionAction {
+    String table();
+
+    int row();
+
+    ColumnRangeSelection columnRangeSelection();
+
+    @Override
+    default <T> T accept(TransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    default WitnessedRowColumnRangeReadTransactionAction witness(List<ColumnValue> columnsAndValues) {
+        return WitnessedRowColumnRangeReadTransactionAction.builder()
+                .originalQuery(this)
+                .columnsAndValues(columnsAndValues)
+                .build();
+    }
+
+    static ImmutableRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableRowColumnRangeReadTransactionAction.builder();
+    }
+}u}(jW (47b25ab538c861987aa480e47c2bb08032e32fc0j tatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/SingleCellTransactionAction.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X>  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface SingleCellTransactionAction extends TransactionAction {
+    /** Table to apply transaction to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) to apply the action to. */
+    @Value.Parameter
+    WorkloadCell cell();
+}u}(jW (e6ee57fa3732a9a1984c98b088bfc9a577a7fbe8j jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionAction.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.WorkloadCell;
-import org.immutables.value.Value;
-
 public interface TransactionAction {
-
-    /** Table to apply transaction to. */
-    @Value.Parameter
-    String table();
-
-    /** Cell (Key, Column) to apply the action to. */
-    @Value.Parameter
-    WorkloadCell cell();
-
     <T> T accept(TransactionActionVisitor<T> visitor);
 }u}(jW (1625640516054c38d6886dbd91b10123cb0bb223j qatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionActionVisitor.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -22,4 +22,6 @@ public interface TransactionActionVisitor<T> {
     T visit(WriteTransactionAction writeTransactionAction);
 
     T visit(DeleteTransactionAction deleteTransactionAction);
+
+    T visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction);
 }u}(jW (7b9112fa4356eade1fb793e23ca54d962811ccfcj oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/WriteTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -22,7 +22,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WriteTransactionAction extends TransactionAction {
+public interface WriteTransactionAction extends SingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(jW (574a86c53458c2bbb5f43c19c269eb2ee52679c7j |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/FullyWitnessedTransaction.javaj addedj K"j K j K"j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we know for certain we've witnessed.
+ */
+@Value.Immutable
+public interface FullyWitnessedTransaction extends WitnessedTransaction {
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableFullyWitnessedTransaction.Builder builder() {
+        return ImmutableFullyWitnessedTransaction.builder();
+    }
+}u}(jW (2f66134a6e594e63bdba1ebec482177c03bd9220j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedSingleCellTransactionAction.javaj addedj K"j K j K"j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XP  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.invariant.MismatchedValue;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedSingleCellTransactionAction extends InvalidWitnessedTransactionAction {
+    @Value.Parameter
+    WitnessedSingleCellTransactionAction action();
+
+    @Value.Parameter
+    MismatchedValue mismatchedValue();
+
+    static InvalidWitnessedSingleCellTransactionAction of(
+            WitnessedSingleCellTransactionAction action, MismatchedValue mismatchedValue) {
+        return ImmutableInvalidWitnessedSingleCellTransactionAction.of(action, mismatchedValue);
+    }
+}u}(jW (f311e643064907dd8eeece7fe8fe0069efe51f4ej ~atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransaction.javaj addedj K"j K j K"j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedTransaction {
+    @Value.Parameter
+    WitnessedTransaction transaction();
+
+    @Value.Parameter
+    List<InvalidWitnessedTransactionAction> invalidActions();
+
+    static InvalidWitnessedTransaction of(
+            WitnessedTransaction witnessedTransaction, List<InvalidWitnessedTransactionAction> invalidActions) {
+        return ImmutableInvalidWitnessedTransaction.of(witnessedTransaction, invalidActions);
+    }
+}u}(jW (f2fc56cca46a09c2ef718c3b7cb6b8d4000c1d8fj atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X.  @@ -0,0 +1,21 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+public interface InvalidWitnessedTransactionAction {
+    // Marker interface
+}u}(jW (5a66280426c78d83ed7001fc4ee1aebb894f7578j |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransaction.javaj addedj K4j K j K4j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.logsafe.Preconditions;
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we witnessed, but are in a state which we are
+ * unsure if they have committed or not due to failures.
+ */
+@Value.Immutable
+public interface MaybeWitnessedTransaction extends WitnessedTransaction {
+    @Value.Check
+    default void check() {
+        Preconditions.checkArgument(
+                commitTimestamp().isPresent(),
+                "Given how the transaction protocol works, a transaction for which we haven't retrieved the commit "
+                        + "timestamp has not written anything of significance to the database");
+    }
+
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableMaybeWitnessedTransaction.Builder builder() {
+        return ImmutableMaybeWitnessedTransaction.builder();
+    }
+
+    default FullyWitnessedTransaction toFullyWitnessed() {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(startTimestamp())
+                .commitTimestamp(commitTimestamp())
+                .actions(actions())
+                .build();
+    }
+}u}(jW (664e279d4223b1f5897c5f45615e3cdbdaa71ac3j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedDeleteTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j Xo  @@ -20,7 +20,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedDeleteTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedDeleteTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {u}(jW (beff6229abcbdbf535af57c09c43ad7c92566201j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedReadTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X7  @@ -21,7 +21,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedReadTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedReadTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(jW (284f26075e3ae1ed8320bcbc8402749af631ccddj atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javaj addedj K;j K j K;j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X	  @@ -0,0 +1,59 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedTransactionAction {
+    RowColumnRangeReadTransactionAction originalQuery();
+
+    // This is a List rather than a Set or Map because the ordering in which the columns and values are returned is
+    // important (it must match the ordering specified by the contract of row column range reads).
+    List<ColumnValue> columnsAndValues();
+
+    @Override
+    default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    @Value.Check
+    default void check() {
+        Set<Integer> knownColumns = new HashSet<>();
+        Set<Integer> duplicateColumns = columnsAndValues().stream()
+                .map(ColumnValue::column)
+                .filter(column -> !knownColumns.add(column))
+                .collect(Collectors.toSet());
+        Preconditions.checkState(
+                duplicateColumns.isEmpty(),
+                "Duplicate columns in columnsAndValues",
+                SafeArg.of("duplicateColumns", duplicateColumns),
+                SafeArg.of("columnsAndValues", columnsAndValues()));
+    }
+
+    static ImmutableWitnessedRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableWitnessedRowColumnRangeReadTransactionAction.builder();
+    }
+}u}(jW (eed34c03b4bd04c09374ca41608cb74986cb40c0j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedSingleCellTransactionAction.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XW  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface WitnessedSingleCellTransactionAction extends WitnessedTransactionAction {
+    /** Table action was applied to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) the action applied to. */
+    @Value.Parameter
+    WorkloadCell cell();
+}u}(jW (525e82582d3affac4608bebfe366141f3088a716j watlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X
  @@ -18,9 +18,7 @@
 
 import java.util.List;
 import java.util.Optional;
-import org.immutables.value.Value;
 
-@Value.Immutable
 public interface WitnessedTransaction {
     /** Start timestamp of the transaction. */
     long startTimestamp();
@@ -30,4 +28,6 @@ public interface WitnessedTransaction {
 
     /** Provides an in-order list of actions that were performed during the transaction's execution. */
     List<WitnessedTransactionAction> actions();
+
+    <T> T accept(WitnessedTransactionVisitor<T> visitor);
 }u}(jW (3e350184f320b0cd81f7019819c5d83c6a9d8602j }atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionAction.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.store.WorkloadCell;
-import org.immutables.value.Value;
-
 public interface WitnessedTransactionAction {
-
-    /** Table action was applied to. */
-    @Value.Parameter
-    String table();
-
-    /** Cell (Key, Column) the action applied to. */
-    @Value.Parameter
-    WorkloadCell cell();
-
     <T> T accept(WitnessedTransactionActionVisitor<T> visitor);
 }u}(jW (ca4d65c16390f51cc645a365e26e4c1c79a67e15j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionActionVisitor.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X>  @@ -22,4 +22,6 @@ public interface WitnessedTransactionActionVisitor<T> {
     T visit(WitnessedWriteTransactionAction writeTransactionAction);
 
     T visit(WitnessedDeleteTransactionAction deleteTransactionAction);
+
+    T visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction);
 }u}(jW (33682bf649e7b87408367a7f23d4995c94c96d98j ~atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionVisitor.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,23 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+public interface WitnessedTransactionVisitor<T> {
+    T visit(FullyWitnessedTransaction witnessedTransaction);
+
+    T visit(MaybeWitnessedTransaction maybeWitnessedTransaction);
+}u}(jW (43687fd4d7dbdc3a1ac0ec26f2f38d0366613022j atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedWriteTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X(  @@ -20,7 +20,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WitnessedWriteTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedWriteTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(jW (0af0f463fb79115401361fa63b2a86fc5fbbe84fj jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/KeyedTransactionTask.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XD  @@ -30,4 +30,5 @@
  * an exception.
  */
 @FunctionalInterface
-public interface KeyedTransactionTask extends BiFunction<TransactionStore, Integer, Optional<WitnessedTransaction>> {}
+public interface KeyedTransactionTask<T extends TransactionStore>
+        extends BiFunction<T, Integer, Optional<WitnessedTransaction>> {}u}(jW (521eb86ec62e39c42dea4234b11b2f742d9a8e1dj katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowAndInvariants.javaj addedj K-j K j K-j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import java.util.Arrays;
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WorkflowAndInvariants<WorkflowTypeT extends Workflow> {
+    @Value.Parameter
+    WorkflowTypeT workflow();
+
+    @Value.Parameter
+    List<InvariantReporter<?>> invariantReporters();
+
+    static <WorkflowTypeT extends Workflow> WorkflowAndInvariants<WorkflowTypeT> of(
+            WorkflowTypeT workflow, List<InvariantReporter<?>> invariants) {
+        return ImmutableWorkflowAndInvariants.of(workflow, invariants);
+    }
+
+    static <WorkflowTypeT extends Workflow> WorkflowAndInvariants<WorkflowTypeT> of(
+            WorkflowTypeT workflow, InvariantReporter<?>... invariants) {
+        return ImmutableWorkflowAndInvariants.of(workflow, Arrays.asList(invariants));
+    }
+
+    static <WorkflowTypeT extends Workflow> ImmutableWorkflowAndInvariants.Builder<WorkflowTypeT> builder() {
+        return ImmutableWorkflowAndInvariants.builder();
+    }
+}u}(jW (47b4109802a3529a585cdba06bb50cbe3fb2a098j katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowConfiguration.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -17,8 +17,19 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import org.immutables.value.Value;
 
 @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
 public interface WorkflowConfiguration {
     int iterationCount();
+
+    @Value.Default
+    default double rateLimit() {
+        return 100;
+    }
+
+    @Value.Default
+    default Integer maxThreadCount() {
+        return 100;
+    }
 }u}(jW (ffbc895344923f90f2a9fbedaca2f32929339b6cj eatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowHistory.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -26,5 +26,10 @@ public interface WorkflowHistory {
     // We may want to query the KVS during verification.
     ReadableTransactionStore transactionStore();
 
+    /**
+     * TODO: This should only be a list of
+     * {@link com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction} rather than the general
+     * purpose type.
+     */
     List<WitnessedTransaction> history();
 }u}(jW (3b0f830372ef64835a492324722b2b2019546854j natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowHistoryValidator.javaj renamedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -18,13 +18,17 @@
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
 import java.util.List;
+import org.immutables.value.Value;
 
-/**
- * Run the provided workflow and execute the provided invariant reporters.
- *
- * The idea of this class is that long-term we will want to have multiple ways to run/execute workflows,
- * rather than biasing towards the present case (just once).
- */
-public interface WorkflowRunner<WorkflowTypeT extends Workflow> {
-    void run(WorkflowTypeT workflow, List<InvariantReporter<?>> invariantReporters);
+@Value.Immutable
+public interface WorkflowHistoryValidator {
+    @Value.Parameter
+    WorkflowHistory history();
+
+    @Value.Parameter
+    List<InvariantReporter<?>> invariants();
+
+    static WorkflowHistoryValidator of(WorkflowHistory history, List<InvariantReporter<?>> invariants) {
+        return ImmutableWorkflowHistoryValidator.of(history, invariants);
+    }
 }previous_filenamedatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowRunner.javau}(jW (7bda1b5a5ae5fcf4035a9bcb3a8979da682b9deaj matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowValidatorRunner.javaj addedj K#j K j K#j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X(  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * Run the provided workflow and validate that it is correct with the provided invariants.
+ */
+public interface WorkflowValidatorRunner<WorkflowTypeT extends Workflow> {
+    void run(List<WorkflowAndInvariants<WorkflowTypeT>> workflowAndInvariants);
+
+    default void run(WorkflowAndInvariants<WorkflowTypeT>... workflowAndInvariants) {
+        run(Arrays.asList(workflowAndInvariants));
+    }
+
+    default void run(WorkflowAndInvariants<WorkflowTypeT> workflowAndInvariants) {
+        run(List.of(workflowAndInvariants));
+    }
+}u}(jW (a7473ea1e605ae08dd6feec971f0cd30384c89e4j qatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/invariant/CrossCellInconsistencyTest.javaj addedj K;j K j K;j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistencyTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistencyTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistencyTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X
  @@ -0,0 +1,59 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Optional;
+import org.junit.Test;
+
+public class CrossCellInconsistencyTest {
+    // The constants in WorkloadTestHelper are not accessible from this package.
+    private static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_ONE =
+            TableAndWorkloadCell.of("foo", ImmutableWorkloadCell.of(1, 2));
+    private static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
+            TableAndWorkloadCell.of("foo", ImmutableWorkloadCell.of(3, 4));
+
+    @Test
+    public void cannotBeCreatedWithoutCells() {
+        assertThatThrownBy(() -> CrossCellInconsistency.builder().build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("A cross-cell inconsistency must consist of at least two cells");
+    }
+
+    @Test
+    public void cannotBeCreatedWithJustOneCell() {
+        assertThatThrownBy(() -> CrossCellInconsistency.builder()
+                        .putInconsistentValues(TABLE_WORKLOAD_CELL_ONE, Optional.of(3))
+                        .build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("A cross-cell inconsistency must consist of at least two cells");
+    }
+
+    @Test
+    public void canBeCreatedWithTwoCells() {
+        CrossCellInconsistency violation = CrossCellInconsistency.builder()
+                .putInconsistentValues(TABLE_WORKLOAD_CELL_ONE, Optional.of(3))
+                .putInconsistentValues(TABLE_WORKLOAD_CELL_TWO, Optional.empty())
+                .build();
+        assertThat(violation.inconsistentValues()).containsOnlyKeys(TABLE_WORKLOAD_CELL_ONE, TABLE_WORKLOAD_CELL_TWO);
+    }
+}u}(jW (636e11dbc52b78329590a8ee90644f9728e5fb69j jatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/invariant/MismatchedValueTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j Xz  @@ -21,13 +21,12 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 
 import com.palantir.logsafe.SafeArg;
-import java.util.Optional;
 import org.junit.Test;
 
 public final class MismatchedValueTest {
 
-    private static final Optional<Integer> VALUE_ONE = Optional.of(15);
-    private static final Optional<Integer> VALUE_TWO = Optional.of(25);
+    private static final ValueAndMaybeTimestamp VALUE_ONE = ValueAndMaybeTimestamp.of(25);
+    private static final ValueAndMaybeTimestamp VALUE_TWO = ValueAndMaybeTimestamp.of(15);
 
     @Test
     public void canConstructMismatchedValueFromTwoDifferentValues() {u}(jW (e023081417c4bca7cf9bb80aeeb71bd64bdf21a4j qatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelectionTest.javaj addedj Kbj K j Kbj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,98 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.Optional;
+import org.junit.Test;
+
+public class ColumnRangeSelectionTest {
+    @Test
+    public void cannotCreateRangeWithStartColumnGreaterThanEndColumn() {
+        assertThatLoggableExceptionThrownBy(() -> ColumnRangeSelection.builder()
+                        .startColumnInclusive(5)
+                        .endColumnExclusive(4)
+                        .build())
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Start column must be less than or equal to end column")
+                .hasExactlyArgs(
+                        SafeArg.of("startColumnInclusive", Optional.of(5)),
+                        SafeArg.of("endColumnExclusive", Optional.of(4)));
+    }
+
+    @Test
+    public void emptyRangeDoesNotContainAnyElements() {
+        ColumnRangeSelection emptyRange = ColumnRangeSelection.builder()
+                .startColumnInclusive(6)
+                .endColumnExclusive(6)
+                .build();
+        assertThat(emptyRange.contains(5)).isFalse();
+        assertThat(emptyRange.contains(6)).isFalse();
+        assertThat(emptyRange.contains(7)).isFalse();
+        assertThat(emptyRange.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(emptyRange.contains(Integer.MAX_VALUE)).isFalse();
+    }
+
+    @Test
+    public void singleElementRangeContainsJustItself() {
+        ColumnRangeSelection justSeven = ColumnRangeSelection.builder()
+                .startColumnInclusive(7)
+                .endColumnExclusive(8)
+                .build();
+        assertThat(justSeven.contains(6)).isFalse();
+        assertThat(justSeven.contains(7)).isTrue();
+        assertThat(justSeven.contains(8)).isFalse();
+        assertThat(justSeven.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(justSeven.contains(Integer.MAX_VALUE)).isFalse();
+    }
+
+    @Test
+    public void universalRangeContainsEverything() {
+        ColumnRangeSelection universal = ColumnRangeSelection.builder().build();
+        assertThat(universal.contains(10241024)).isTrue();
+        assertThat(universal.contains(-20482048)).isTrue();
+        assertThat(universal.contains(40924092)).isTrue();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isTrue();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isTrue();
+    }
+
+    @Test
+    public void lowerBoundedRangesContainCorrectElements() {
+        ColumnRangeSelection universal =
+                ColumnRangeSelection.builder().startColumnInclusive(5).build();
+        assertThat(universal.contains(4)).isFalse();
+        assertThat(universal.contains(5)).isTrue();
+        assertThat(universal.contains(6)).isTrue();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isTrue();
+    }
+
+    @Test
+    public void upperBoundedRangesContainCorrectElements() {
+        ColumnRangeSelection universal =
+                ColumnRangeSelection.builder().endColumnExclusive(5).build();
+        assertThat(universal.contains(4)).isTrue();
+        assertThat(universal.contains(5)).isFalse();
+        assertThat(universal.contains(6)).isFalse();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isTrue();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isFalse();
+    }
+}u}(jW (d8ae0172e04f5d987b18981c085af657a86bf0e4j atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javaj addedj KDj K j KDj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j Xf  @@ -0,0 +1,68 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+import static org.mockito.Mockito.mock;
+
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import org.junit.Test;
+
+public class MaybeWitnessedTransactionTest {
+
+    private static final Long START_TIMESTAMP = 100L;
+    private static final Long COMMIT_TIMESTAMP = 200L;
+
+    @Test
+    public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
+        assertThatLoggableExceptionThrownBy(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining(
+                        "Given how the transaction protocol works, a transaction for which we haven't retrieved the"
+                                + " commit timestamp");
+    }
+
+    @Test
+    public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
+        assertThatCode(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .commitTimestamp(COMMIT_TIMESTAMP)
+                        .build())
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void toFullyWitnessedCopiesArgumentsCorrectly() {
+        WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
+        WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
+        List<WitnessedSingleCellTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
+        FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
+                .startTimestamp(START_TIMESTAMP)
+                .commitTimestamp(COMMIT_TIMESTAMP)
+                .actions(actions)
+                .build()
+                .toFullyWitnessed();
+        assertThat(fullyWitnessedTransaction.startTimestamp()).isEqualTo(START_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.commitTimestamp()).contains(COMMIT_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.actions()).containsExactlyElementsOf(actions);
+    }
+}u}(jW (b2c905aecbadb5eff96bc5dbc26f890c72dbd00cj atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javaj addedj KGj K j KGj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X
  @@ -0,0 +1,71 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import org.junit.Test;
+
+public class WitnessedRowColumnRangeReadTransactionActionTest {
+    @Test
+    public void canCreateWitness() {
+        assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
+                        .build())
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void cannotCreateWitnessWithDuplicateColumns() {
+        List<ColumnValue> columnsAndValues = ImmutableList.of(
+                ColumnValue.of(1, 5),
+                ColumnValue.of(5, 1),
+                ColumnValue.of(1, 3),
+                ColumnValue.of(5, 8),
+                ColumnValue.of(9, 99));
+
+        assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .addAllColumnsAndValues(columnsAndValues)
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
+                        .build())
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Duplicate columns in columnsAndValues")
+                .hasExactlyArgs(
+                        SafeArg.of("duplicateColumns", ImmutableSet.of(1, 5)),
+                        SafeArg.of("columnsAndValues", columnsAndValues));
+    }
+}u}(jW (121a175146bc6a56997ba38d7f713d850fb50e15v     j /atlasdb-workload-server-distribution/Dockerfilej modifiedj K
j Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-distribution%2FDockerfilej https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-distribution%2FDockerfilej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2FDockerfile?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -1,10 +1,10 @@
-FROM adoptopenjdk/openjdk11:jre-11.0.9_11.1-alpine
+FROM adoptopenjdk/openjdk11:jdk-11.0.11_9-debian
 MAINTAINER AtlasDB Team
 
 ENV DOCKERIZE_VERSION v0.2.0
 
 # Bash is useful for monitoring; curl is used by our healthchecks.
-RUN apk update && apk add bash curl procps wget  \
+RUN apt-get update && apt-get -y install bash curl procps wget \
     && wget --no-check-certificate http://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
     && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
 
@@ -15,4 +15,12 @@ RUN mv /atlasdb-workload-server-* /atlasdb-workload-server
 
 WORKDIR /atlasdb-workload-server
 
+# Needed for Antithesis
+RUN curl -o /usr/bin/yq -kLf https://github.com/mikefarah/yq/releases/download/v4.33.2/yq_linux_amd64 && \
+    chmod +x /usr/bin/yq
+RUN yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-static.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-static.yml
+
 CMD ["service/bin/init.sh", "console"]u}(jW (dc41d93cfc62da8e575d2e4bb661c0faf17b9fe6j 1atlasdb-workload-server-distribution/build.gradlej modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-distribution%2Fbuild.gradlej https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-distribution%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -1,7 +1,7 @@
 apply plugin: 'com.palantir.sls-java-service-distribution'
 apply plugin: 'com.palantir.external-publish-dist'
-apply from: "../gradle/docker.gradle"
 apply from: "../gradle/shared.gradle"
+apply from: "../gradle/docker.gradle"
 apply from: "../gradle/non-client-dist.gradle"
 
 dependencies {
@@ -20,6 +20,7 @@ dependencies {
     implementation 'com.palantir.conjure.java.runtime:conjure-java-jersey-server'
     implementation 'com.google.guava:guava'
 
+    implementation project(':atlasdb-buggify')
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-cassandra')
     implementation project(':atlasdb-workload-server')u}(jW (37e59da7fde3c443b1071e9b0c484c2da4e9f50ej latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedj M
j Kj Mj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XzP  @@ -22,31 +22,58 @@
 import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.common.util.concurrent.Uninterruptibles;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
+import com.palantir.atlasdb.workload.background.BackgroundCassandraJob;
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
-import com.palantir.atlasdb.workload.invariant.DurableWritesMetricInvariantReporter;
+import com.palantir.atlasdb.workload.invariant.DurableWritesInvariantMetricReporter;
+import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
+import com.palantir.atlasdb.workload.resource.AntithesisCassandraSidecarResource;
+import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
-import com.palantir.atlasdb.workload.workflow.RunOnceWorkflowRunner;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflows;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
+import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflows;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflows;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
 import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.refreshable.Refreshable;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import io.dropwizard.Application;
 import io.dropwizard.jackson.DiscoverableSubtypeResolver;
+import io.dropwizard.lifecycle.setup.LifecycleEnvironment;
 import io.dropwizard.setup.Bootstrap;
 import io.dropwizard.setup.Environment;
+import java.time.Instant;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutorService;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
 
 public class WorkloadServerLauncher extends Application<WorkloadServerConfiguration> {
 
@@ -74,39 +101,75 @@ public void initialize(Bootstrap<WorkloadServerConfiguration> bootstrap) {
     public void run(WorkloadServerConfiguration configuration, Environment environment) {
         environment.getObjectMapper().registerModule(new Jdk8Module()).registerModule(new JavaTimeModule());
 
+        scheduleBackgroundJobs(environment);
+
         ExecutorService workflowRunnerExecutor =
                 environment.lifecycle().executorService("workflow-runner").build();
-
         workflowRunnerExecutor.execute(() -> runWorkflows(configuration, environment));
     }
 
+    private void scheduleBackgroundJobs(Environment environment) {
+        ScheduledExecutorService backgroundJobExecutor = environment
+                .lifecycle()
+                .scheduledExecutorService("background-job")
+                .build();
+        backgroundJobExecutor.scheduleAtFixedRate(
+                new BackgroundCassandraJob(
+                        List.of("cassandra1", "cassandra2", "cassandra3"),
+                        AntithesisCassandraSidecarResource.INSTANCE,
+                        DefaultBuggifyFactory.INSTANCE),
+                0,
+                10,
+                TimeUnit.SECONDS);
+    }
+
     private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {
-        ExecutorService singleRowTwoCellsExecutorService = environment
+        // This is a single threaded executor; this is intentional, so that we only run one workflow at a time.
+        ExecutorService antithesisWorkflowRunnerExecutorService = environment
                 .lifecycle()
                 .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
                 .build();
+
         MetricsManager metricsManager = MetricsManagers.of(environment.metrics(), taggedMetricRegistry);
         AtlasDbTransactionStoreFactory transactionStoreFactory = AtlasDbTransactionStoreFactory.createFromConfig(
                 configuration.install().atlas(),
                 Refreshable.only(configuration.runtime().atlas()),
                 USER_AGENT,
                 metricsManager);
-        SingleRowTwoCellsWorkflowConfiguration workflowConfig =
+        SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig =
                 configuration.install().singleRowTwoCellsConfig();
+        RingWorkflowConfiguration ringWorkflowConfiguration =
+                configuration.install().ringConfig();
+        TransientRowsWorkflowConfiguration transientRowsWorkflowConfiguration =
+                configuration.install().transientRowsConfig();
+        SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
+                configuration.install().singleBusyCellConfig();
+        SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadNoTouchWorkflowConfiguration =
+                configuration.install().singleBusyCellReadsNoTouchConfig();
+        BankBalanceWorkflowConfiguration bankBalanceConfig =
+                configuration.install().bankBalanceConfig();
+        RandomWorkflowConfiguration randomWorkflowConfig =
+                configuration.install().randomConfig();
+
+        waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
+
+        new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
+                .run(
+                        createSingleRowTwoCellsWorkflowValidator(
+                                transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
+                        createRingWorkflowValidator(
+                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()),
+                        createTransientRowsWorkflowValidator(
+                                transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellWorkflowValidator(
+                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellReadNoTouchWorkflowValidator(
+                                transactionStoreFactory,
+                                singleBusyCellReadNoTouchWorkflowConfiguration,
+                                environment.lifecycle()),
+                        createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
+                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
 
-        log.info("antithesis: start_faults");
-        RunOnceWorkflowRunner.INSTANCE.run(
-                SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
-                        transactionStoreFactory.create(
-                                Map.of(
-                                        workflowConfig.tableConfiguration().tableName(),
-                                        workflowConfig.tableConfiguration().isolationLevel()),
-                                Set.of()),
-                        workflowConfig,
-                        MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)),
-                List.of(new DurableWritesMetricInvariantReporter(
-                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
-                        DurableWritesMetrics.of(taggedMetricRegistry))));
         log.info("antithesis: terminate");
 
         workflowsRanLatch.countDown();
@@ -116,6 +179,182 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
+    private void waitForTransactionStoreFactoryToBeInitialized(AtlasDbTransactionStoreFactory factory) {
+        // TODO (jkong): This is awful, but sufficient for now.
+        Instant deadline = Instant.now().plusSeconds(TimeUnit.MINUTES.toSeconds(5));
+        while (Instant.now().isBefore(deadline)) {
+            if (factory.isInitialized()) {
+                log.info("AtlasDB transaction store factory initialized.");
+                return;
+            } else {
+                log.info(
+                        "AtlasDB transaction store factory not yet initialized. Waiting for five seconds; we won't"
+                                + " retry after {}.",
+                        SafeArg.of("deadline", deadline));
+                Uninterruptibles.sleepUninterruptibly(5, TimeUnit.SECONDS);
+            }
+        }
+        log.error("AtlasDB transaction store factory not initialized after five minutes, which suggests that there's"
+                + " likely to be some issue with starting up one of our service's dependencies.");
+        log.info("antithesis: terminate");
+        log.error("Workflow will now exit.");
+        System.exit(1);
+    }
+
+    private WorkflowAndInvariants<Workflow> createTransientRowsWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            TransientRowsWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService =
+                createExecutorService(workflowConfig, lifecycle, TransientRowsWorkflows.class);
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(TransientRowsWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        TransientRowsWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .addInvariantReporters(TransientRowsWorkflows.getSummaryLogInvariantReporter(workflowConfig))
+                .build();
+    }
+
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-read")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-write")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellReadNoTouchWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellReadNoTouchWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-read")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-write")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellReadNoTouchWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellReadNoTouchWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
+    private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            RingWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RingWorkflows.class);
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(RingWorkflows.create(
+                transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)));
+    }
+
+    private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleRowTwoCellsWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService =
+                createExecutorService(workflowConfig, lifecycle, SingleRowTwoCellsWorkflows.class);
+        TransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
+    private WorkflowAndInvariants<Workflow> createBankBalanceWorkflow(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            BankBalanceWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, BankBalanceWorkflows.class);
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(BankBalanceWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        BankBalanceWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+                .build();
+    }
+
+    private WorkflowAndInvariants<Workflow> createRandomWorkflow(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            RandomWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RandomWorkflows.class);
+        TransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(RandomWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        RandomWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
     @VisibleForTesting
     CountDownLatch workflowsRanLatch() {
         return workflowsRanLatch;
@@ -125,4 +364,13 @@ CountDownLatch workflowsRanLatch() {
     TaggedMetricRegistry getTaggedMetricRegistry() {
         return taggedMetricRegistry;
     }
+
+    private static <T> ExecutorService createExecutorService(
+            WorkflowConfiguration workflowConfig, LifecycleEnvironment lifecycle, Class<T> workflowFactoryClass) {
+        return lifecycle
+                .executorService(workflowFactoryClass.getSimpleName())
+                .minThreads(workflowConfig.maxThreadCount())
+                .maxThreads(workflowConfig.maxThreadCount())
+                .build();
+    }
 }u}(jW (388054e20c18c9c8d612db0e6d9ac1018b7f9b14j atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -19,7 +19,13 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
 
 @JsonDeserialize(as = ImmutableWorkloadServerInstallConfiguration.class)
@@ -30,5 +36,17 @@ public interface WorkloadServerInstallConfiguration {
 
     SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig();
 
+    RingWorkflowConfiguration ringConfig();
+
+    TransientRowsWorkflowConfiguration transientRowsConfig();
+
+    SingleBusyCellWorkflowConfiguration singleBusyCellConfig();
+
+    BankBalanceWorkflowConfiguration bankBalanceConfig();
+
+    RandomWorkflowConfiguration randomConfig();
+
+    SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadsNoTouchConfig();
+
     boolean exitAfterRunning();
 }u}(jW (da4b728986375bd8565c46e930098c1a684a145cj Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj modifiedj K'j Kj K(j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -9,5 +9,43 @@ install:
       tableName: two-cells-test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
-    type: singleRowTwoCells
+    type: single-row-two-cells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
+  transientRowsConfig:
+    tableConfiguration:
+      tableName: transient-rows-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: transient-rows
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
+  bankBalanceConfig:
+    tableConfiguration:
+      tableName: bank-balance-test
+      isolationLevel: SNAPSHOT
+    iterationCount: 100
+    type: bank-balance
+  randomConfig:
+    tableConfiguration:
+      tableName: random-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: false
\ No newline at end of fileu}(jW (50dbd20de7876d2a9cb53eef291722b8b19cd0b5j Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj modifiedj K,j Kj K.j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -10,13 +10,16 @@ runtime:
     timelockRuntime:
       serversList:
         servers:
-          - 'http://timelock:8421'
+          - 'https://timelock1.palantir.pt:8421'
+          - 'https://timelock2.palantir.pt:8421'
+          - 'https://timelock3.palantir.pt:8421'
         sslConfiguration:
           keyStorePath: "var/security/keyStore.jks"
           keyStorePassword: "keystore"
           trustStorePath: "var/security/trustStore.jks"
 install:
   atlas:
+    initializeAsync: true
     keyValueService:
       type: cassandra
       servers:
@@ -34,6 +37,7 @@ install:
         password: cassandra
       ssl: false
       replicationFactor: 3
+      gcGraceSeconds: 300
     targetedSweep:
       enableSweepQueueWrites: true
     namespace: workload_server
@@ -42,5 +46,43 @@ install:
       tableName: two_cells_test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
-    type: singleRowTwoCells
+    type: single-row-two-cells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
+  transientRowsConfig:
+    tableConfiguration:
+      tableName: transient_rows_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: transient-rows
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single_busy_cell_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
+  bankBalanceConfig:
+    tableConfiguration:
+      tableName: bank_balance_test
+      isolationLevel: SNAPSHOT
+    iterationCount: 100
+    type: bank-balance
+  randomConfig:
+    tableConfiguration:
+      tableName: random_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single_busy_cell_no_touch_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: trueu}(jW (7bd7f984a5ef15a2179c415620f48a0737332c43j Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj modifiedj K)j Kj K+j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -1,13 +1,52 @@
 runtime: {}
 install:
   atlas:
-    namespace: test
+    initializeAsync: true
     keyValueService:
       type: memory
+    namespace: test
   singleRowTwoCellsConfig:
     tableConfiguration:
       tableName: two-cells-test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
-    type: singleRowTwoCells
+    type: single-row-two-cells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
+  transientRowsConfig:
+    tableConfiguration:
+      tableName: transient-rows-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: transient-rows
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
+  bankBalanceConfig:
+    tableConfiguration:
+      tableName: bank-balance-test
+      isolationLevel: SNAPSHOT
+    iterationCount: 100
+    type: bank-balance
+  randomConfig:
+    tableConfiguration:
+      tableName: random-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: true
\ No newline at end of fileu}(jW (a1646b6ee093076187da250847d896517a6e93a1j $atlasdb-workload-server/build.gradlej modifiedj Kj K j Kj xhttps://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fbuild.gradlej whttps://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=86d91aa59465ac0960f8f329fb2087653004b555j X,  @@ -8,9 +8,12 @@ license {
 dependencies {
     implementation project(':atlasdb-workload-server-api')
     implementation project(':atlasdb-api')
+    implementation project(':atlasdb-buggify')
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-config')
     implementation project(':atlasdb-impl-shared')
+    implementation project(':lock-api')
+    implementation project(':lock-impl')
 
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'u}(jW (8b9834003c52ed4630cb687d233e97192635cc24j jatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/background/BackgroundCassandraJob.javaj addedj K,j K j K,j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.background;
+
+import com.google.common.collect.Iterators;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.workload.resource.CassandraSidecarResource;
+import java.util.Iterator;
+import java.util.List;
+
+public class BackgroundCassandraJob implements Runnable {
+
+    private final CassandraSidecarResource cassandraSidecarResource;
+    private final Iterator<String> cassandraHosts;
+
+    private final BuggifyFactory buggify;
+
+    public BackgroundCassandraJob(
+            List<String> cassandraHosts, CassandraSidecarResource cassandraSidecarResource, BuggifyFactory buggify) {
+        this.cassandraSidecarResource = cassandraSidecarResource;
+        this.cassandraHosts = Iterators.cycle(cassandraHosts);
+        this.buggify = buggify;
+    }
+
+    @Override
+    public void run() {
+        buggify.maybe(0.20).run(() -> cassandraSidecarResource.flush(cassandraHosts.next()));
+        buggify.maybe(0.20).run(() -> cassandraSidecarResource.compact(cassandraHosts.next()));
+    }
+}u}(jW (6692c7a0ab9dc06ee5a6b9df123917c46c3d2758j iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariant.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -16,10 +16,10 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
+import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.ValidationStore;
-import com.palantir.atlasdb.workload.transaction.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import io.vavr.Tuple;
 import java.util.Map;u}(jW (79aa8cfd57984c9bdea2aaf3249996fe3fa9f4d7j watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporter.javaj renamedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -24,15 +24,15 @@
 import java.util.Map;
 import java.util.function.Consumer;
 
-public final class DurableWritesMetricInvariantReporter
+public final class DurableWritesInvariantMetricReporter
         implements InvariantReporter<Map<TableAndWorkloadCell, MismatchedValue>> {
 
-    private static final SafeLogger log = SafeLoggerFactory.get(DurableWritesMetricInvariantReporter.class);
+    private static final SafeLogger log = SafeLoggerFactory.get(DurableWritesInvariantMetricReporter.class);
 
     private final String workflow;
     private final DurableWritesMetrics durableWritesMetrics;
 
-    public DurableWritesMetricInvariantReporter(String workflow, DurableWritesMetrics durableWritesMetrics) {
+    public DurableWritesInvariantMetricReporter(String workflow, DurableWritesMetrics durableWritesMetrics) {
         this.workflow = workflow;
         this.durableWritesMetrics = durableWritesMetrics;
     }jw watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporter.javau}(jW (7f8015ae9aa8e1cda19fbbfa7a571ed881b71b56j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj addedj Kej K j Kej https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X)  @@ -0,0 +1,101 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.List;
+import java.util.Optional;
+import java.util.function.Consumer;
+import one.util.streamex.StreamEx;
+
+public enum SerializableInvariant implements TransactionInvariant {
+    INSTANCE;
+
+    @Override
+    public void accept(
+            WorkflowHistory workflowHistory, Consumer<List<InvalidWitnessedTransaction>> invalidWitnessedTransactions) {
+        SerializableInvariantVisitor visitor = new SerializableInvariantVisitor();
+        List<InvalidWitnessedTransaction> transactions = StreamEx.of(workflowHistory.history())
+                .mapPartial(witnessedTransaction -> {
+                    List<InvalidWitnessedTransactionAction> invalidTransactions = StreamEx.of(
+                                    witnessedTransaction.actions())
+                            .mapPartial(action -> action.accept(visitor))
+                            .toList();
+
+                    if (invalidTransactions.isEmpty()) {
+                        return Optional.empty();
+                    }
+
+                    return Optional.of(InvalidWitnessedTransaction.of(witnessedTransaction, invalidTransactions));
+                })
+                .toList();
+        invalidWitnessedTransactions.accept(transactions);
+    }
+
+    private static final class SerializableInvariantVisitor
+            implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
+
+        private final InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+            Optional<Integer> expectedValue = inMemoryTransactionReplayer
+                    .getValues()
+                    .get(TableAndWorkloadCell.of(readTransactionAction.table(), readTransactionAction.cell()))
+                    .toJavaOptional()
+                    .orElseGet(Optional::empty);
+
+            if (!expectedValue.equals(readTransactionAction.value())) {
+                return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
+                        readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expectedValue)));
+            }
+
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedWriteTransactionAction writeTransactionAction) {
+            inMemoryTransactionReplayer.visit(writeTransactionAction);
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedDeleteTransactionAction deleteTransactionAction) {
+            inMemoryTransactionReplayer.visit(deleteTransactionAction);
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+            // TODO (jkong): Not implemented yet
+            return Optional.empty();
+        }
+    }
+}u}(jW (0f489a908a062dc89f3e2a38f2be28d193d61511j satlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporter.javaj addedj K-j K j K-j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X>  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.function.Consumer;
+
+public enum SerializableInvariantLogReporter implements InvariantReporter<List<InvalidWitnessedTransaction>> {
+    INSTANCE;
+    private static final SafeLogger log = SafeLoggerFactory.get(SerializableInvariantLogReporter.class);
+
+    @Override
+    public Invariant<List<InvalidWitnessedTransaction>> invariant() {
+        return SerializableInvariant.INSTANCE;
+    }
+
+    @Override
+    public Consumer<List<InvalidWitnessedTransaction>> consumer() {
+        return invalidWitnessedTransactions -> {
+            if (!invalidWitnessedTransactions.isEmpty()) {
+                log.error(
+                        "Detected transactions that violated our serializable isolation invariant {}",
+                        SafeArg.of("invalidWitnessedTransactions", invalidWitnessedTransactions));
+            }
+        };
+    }
+}u}(jW (875d7b415beab11ac8c7b5cb94591f3b3a874168j datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariant.javaj addedj KUj K j KUj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,85 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.function.Consumer;
+
+/**
+ * This invariant checks that the snapshot isolation property is maintained.
+ * <p>
+ * The way this check works, is by replaying all transactions sorted by their effective timestamp. Transactions are
+ * replayed to an immutable map, allowing us to track each table's state at any given time. These table views are
+ * persisted to a {@link java.util.NavigableMap} by the commit timestamp of each transaction, with the value being
+ * the version of the immutable map at that point-in-time.
+ * <p>
+ * Reads are validated by comparing values from the view of a table at the start timestamp (read view),
+ * and comparing to what we've witnessed. Local writes are replayed onto the read view to ensure we
+ * don't flag false-positives, but is not witnessed by other transactions.
+ * <p>
+ * Writes are validated by first checking that the value we're writing to hasn't changed between the read view and the
+ * latest view. This would indicate a write-write conflict miss, as we should've conflicted with this transaction.
+ * Otherwise, once the transaction is replayed on top of the latest view, we persist this new view at the
+ * commit timestamp.
+ */
+public enum SnapshotInvariant implements TransactionInvariant {
+    INSTANCE;
+
+    @Override
+    public void accept(
+            WorkflowHistory workflowHistory, Consumer<List<InvalidWitnessedTransaction>> invalidWitnessedTransactions) {
+        ImmutableList.Builder<InvalidWitnessedTransaction> invalidTransactionsBuilder = new ImmutableList.Builder<>();
+        VersionedTableView<TableAndWorkloadCell, ValueAndMaybeTimestamp> tableView = new VersionedTableView<>();
+        for (WitnessedTransaction witnessedTransaction : workflowHistory.history()) {
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestTableView =
+                    tableView.getLatestTableView();
+
+            SnapshotInvariantVisitor visitor = new SnapshotInvariantVisitor(
+                    witnessedTransaction.startTimestamp(),
+                    latestTableView,
+                    tableView.getView(witnessedTransaction.startTimestamp()));
+
+            ImmutableList.Builder<InvalidWitnessedTransactionAction> invalidTransactionActionsBuilder =
+                    new ImmutableList.Builder<>();
+            for (WitnessedTransactionAction action : witnessedTransaction.actions()) {
+                action.accept(visitor).ifPresent(invalidTransactionActionsBuilder::add);
+            }
+
+            List<InvalidWitnessedTransactionAction> invalidTransactionActions =
+                    invalidTransactionActionsBuilder.build();
+
+            witnessedTransaction
+                    .commitTimestamp()
+                    .ifPresent(commitTimestamp -> tableView.put(commitTimestamp, latestTableView.getSnapshot()));
+
+            if (!invalidTransactionActions.isEmpty()) {
+                invalidTransactionsBuilder.add(
+                        InvalidWitnessedTransaction.of(witnessedTransaction, invalidTransactionActions));
+            }
+        }
+        invalidWitnessedTransactions.accept(invalidTransactionsBuilder.build());
+    }
+}u}(jW (077c0294a2f984f9f97dca7c4b24ef6de5bc6f16j katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j Xm  @@ -0,0 +1,134 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.collection.Map;
+import java.util.Optional;
+
+/**
+ * Replays transactions and validates for conflicts on the latest and read view.
+ * <p>
+ * The latest view will be a view of the database at the commit timestamp, while the read view will be the view of
+ * the database at the start timestamp.
+ * <p>
+ * Objects created from this class should only be used within a scope of a single transaction.
+ */
+final class SnapshotInvariantVisitor
+        implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
+
+    private final Long startTimestamp;
+    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestView;
+    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> readView;
+
+    SnapshotInvariantVisitor(
+            Long startTimestamp,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestView,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> readView) {
+        this.startTimestamp = startTimestamp;
+        this.latestView = latestView;
+        this.readView = readView;
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+        Optional<Integer> expected = fetchValueFromView(
+                        readTransactionAction.table(), readTransactionAction.cell(), readView)
+                .value();
+        if (!expected.equals(readTransactionAction.value())) {
+            return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
+                    readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expected)));
+        }
+        return Optional.empty();
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
+        Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
+                        writeTransactionAction.table(), writeTransactionAction.cell())
+                .map(mismatchedValue ->
+                        InvalidWitnessedSingleCellTransactionAction.of(writeTransactionAction, mismatchedValue));
+
+        applyWrites(
+                writeTransactionAction.table(),
+                writeTransactionAction.cell(),
+                Optional.of(writeTransactionAction.value()));
+        return invalidAction;
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+        Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
+                        deleteTransactionAction.table(), deleteTransactionAction.cell())
+                .map(mismatchedValue ->
+                        InvalidWitnessedSingleCellTransactionAction.of(deleteTransactionAction, mismatchedValue));
+
+        applyWrites(deleteTransactionAction.table(), deleteTransactionAction.cell(), Optional.empty());
+        return invalidAction;
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(
+            WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        // TODO (jkong): Not implemented yet
+        return Optional.empty();
+    }
+
+    /**
+     * Applies writes to both our read and latest table view.
+     * Latest table view needs to be updated to apply our writes from our transaction,
+     * while the read view is updated to reflect local writes.
+     */
+    private void applyWrites(String tableName, WorkloadCell cell, Optional<Integer> value) {
+        readView.with(table ->
+                table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndMaybeTimestamp.of(value, startTimestamp)));
+        latestView.with(table ->
+                table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndMaybeTimestamp.of(value, startTimestamp)));
+    }
+
+    /**
+     * Checks that the value we are writing has not changed from our read view and the latest view. If it has,
+     * that means we have missed a write-write conflict, as it should have conflicted with this transaction.
+     */
+    private Optional<MismatchedValue> checkForWriteWriteConflicts(String table, WorkloadCell cell) {
+        ValueAndMaybeTimestamp previous = fetchValueFromView(table, cell, readView);
+        ValueAndMaybeTimestamp latest = fetchValueFromView(table, cell, latestView);
+
+        if (!previous.equals(latest)) {
+            return Optional.of(MismatchedValue.of(latest, previous));
+        }
+
+        return Optional.empty();
+    }
+
+    private static ValueAndMaybeTimestamp fetchValueFromView(
+            String tableName,
+            WorkloadCell workloadCell,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> view) {
+        TableAndWorkloadCell tableAndWorkloadCell = TableAndWorkloadCell.of(tableName, workloadCell);
+        return view.getSnapshot().get(tableAndWorkloadCell).toJavaOptional().orElseGet(ValueAndMaybeTimestamp::empty);
+    }
+}u}(jW (0729ad724e2b47dc1415a32180124d780320f58ej eatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/VersionedTableView.javaj addedj K6j K j K6j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XG	  @@ -0,0 +1,54 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.Optional;
+import java.util.TreeMap;
+import javax.annotation.concurrent.NotThreadSafe;
+
+@NotThreadSafe
+public final class VersionedTableView<K, V> {
+    private final java.util.NavigableMap<Long, Map<K, V>> tableViews = new TreeMap<>();
+
+    public void put(Long commitTimestamp, Map<K, V> tableView) {
+        tableViews.put(commitTimestamp, tableView);
+    }
+
+    public StructureHolder<Map<K, V>> getView(Long startTimestamp) {
+        Preconditions.checkArgument(
+                !tableViews.containsKey(startTimestamp),
+                "It is expected when obtaining a view "
+                        + "from the start timestamp, that it should not already exist or be present within the map. "
+                        + "As all keys in this map should be commit timestamps, and all timestamps are immutable.",
+                SafeArg.of("startTimestamp", startTimestamp),
+                SafeArg.of("tableViews", tableViews));
+        return StructureHolder.create(() -> Optional.ofNullable(tableViews.lowerEntry(startTimestamp))
+                .map(java.util.Map.Entry::getValue)
+                .orElseGet(HashMap::empty));
+    }
+
+    public StructureHolder<Map<K, V>> getLatestTableView() {
+        return StructureHolder.create(() -> Optional.ofNullable(tableViews.lastEntry())
+                .map(java.util.Map.Entry::getValue)
+                .orElseGet(HashMap::empty));
+    }
+}u      }(jW (afc5fd9e1645d1faf8b1f77f62a39f67390b4c87j tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/resource/AntithesisCassandraSidecarResource.javaj renamedj K
j Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X   @@ -14,29 +14,24 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.workload.workflow;
+package com.palantir.atlasdb.workload.resource;
 
-import com.palantir.atlasdb.workload.invariant.InvariantReporter;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.List;
 
-public enum RunOnceWorkflowRunner implements WorkflowRunner<Workflow> {
+public enum AntithesisCassandraSidecarResource implements CassandraSidecarResource {
     INSTANCE;
 
-    private static final SafeLogger log = SafeLoggerFactory.get(RunOnceWorkflowRunner.class);
+    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisCassandraSidecarResource.class);
 
     @Override
-    public void run(Workflow workflow, List<InvariantReporter<?>> invariants) {
-        WorkflowHistory workflowHistory = workflow.run();
-        invariants.forEach(reporter -> {
-            try {
-                reporter.report(workflowHistory);
-            } catch (RuntimeException e) {
-                log.error("Caught an exception when running and reporting an invariant.", e);
-            }
-        });
-        log.info("Dumping transaction log {}", SafeArg.of("transactionLog", workflowHistory.history()));
+    public void flush(String host) {
+        log.info("antithesis: flush {}", SafeArg.of("host", host));
+    }
+
+    @Override
+    public void compact(String host) {
+        log.info("antithesis: compact {}", SafeArg.of("host", host));
     }
 }jw gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RunOnceWorkflowRunner.javau}(jW (7746b1901d37ab005efb2fedddecc226a6be376dj qatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunner.javaj addedj KNj K j KNj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XL  @@ -0,0 +1,78 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.runner;
+
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistoryValidator;
+import com.palantir.atlasdb.workload.workflow.WorkflowValidatorRunner;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.concurrent.ExecutionException;
+import java.util.stream.Collectors;
+
+public final class AntithesisWorkflowValidatorRunner implements WorkflowValidatorRunner<Workflow> {
+    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisWorkflowValidatorRunner.class);
+    private final ListeningExecutorService listeningExecutorService;
+
+    public AntithesisWorkflowValidatorRunner(ListeningExecutorService listeningExecutorService) {
+        this.listeningExecutorService = listeningExecutorService;
+    }
+
+    @Override
+    public void run(List<WorkflowAndInvariants<Workflow>> workflowAndInvariants) {
+        try {
+            log.info("antithesis: start_faults");
+            List<WorkflowHistoryValidator> workflowHistoryValidators = Futures.allAsList(
+                            submitWorkflowValidators(workflowAndInvariants))
+                    .get();
+            log.info("antithesis: stop_faults");
+            workflowHistoryValidators.forEach(this::checkAndReportInvariantViolations);
+        } catch (InterruptedException e) {
+            Thread.currentThread().interrupt();
+            throw new RuntimeException(e);
+        } catch (ExecutionException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private void checkAndReportInvariantViolations(WorkflowHistoryValidator validator) {
+        validator.invariants().forEach(invariantReporter -> {
+            try {
+                invariantReporter.report(validator.history());
+            } catch (RuntimeException e) {
+                log.error("Caught an exception when running and reporting an invariant.", e);
+            }
+        });
+        log.info(
+                "Dumping transaction log {}",
+                SafeArg.of("transactionLog", validator.history().history()));
+    }
+
+    private List<ListenableFuture<WorkflowHistoryValidator>> submitWorkflowValidators(
+            List<WorkflowAndInvariants<Workflow>> workflowAndInvariants) {
+        return workflowAndInvariants.stream()
+                .map(workflowValidator -> listeningExecutorService.submit(() -> WorkflowHistoryValidator.of(
+                        workflowValidator.workflow().run(), workflowValidator.invariantReporters())))
+                .collect(Collectors.toList());
+    }
+}u}(jW (b8129f7ddecb9ee76388afabb2090692f9aa773ej latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj addedj Ksj K j Ksj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XT  @@ -0,0 +1,115 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.BiFunction;
+import javax.annotation.concurrent.NotThreadSafe;
+
+@NotThreadSafe
+final class AtlasDbInteractiveTransaction implements InteractiveTransaction {
+
+    private final Transaction transaction;
+
+    private final Map<String, TableReference> tables;
+
+    private final List<WitnessedTransactionAction> witnessedTransactionActions = new ArrayList<>();
+
+    private boolean hasFinished = false;
+
+    public AtlasDbInteractiveTransaction(Transaction transaction, Map<String, TableReference> tables) {
+        this.transaction = transaction;
+        this.tables = tables;
+    }
+
+    @Override
+    public Optional<Integer> read(String table, WorkloadCell workloadCell) {
+        return run(
+                (tableReference, atlasCell) -> {
+                    Map<Cell, byte[]> values = transaction.get(tableReference, Set.of(atlasCell));
+                    Optional<Integer> valueRead =
+                            Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
+                    witnessedTransactionActions.add(WitnessedReadTransactionAction.of(table, workloadCell, valueRead));
+                    return valueRead;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public void write(String table, WorkloadCell workloadCell, Integer value) {
+        run(
+                (tableReference, atlasCell) -> {
+                    transaction.put(tableReference, Map.of(atlasCell, Ints.toByteArray(value)));
+                    witnessedTransactionActions.add(WitnessedWriteTransactionAction.of(table, workloadCell, value));
+                    return null;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public void delete(String table, WorkloadCell workloadCell) {
+        run(
+                (tableReference, atlasCell) -> {
+                    transaction.delete(tableReference, Set.of(atlasCell));
+                    witnessedTransactionActions.add(WitnessedDeleteTransactionAction.of(table, workloadCell));
+                    return null;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public List<WitnessedTransactionAction> witness() {
+        hasFinished = true;
+        return witnessedTransactionActions;
+    }
+
+    private TableReference getTableReferenceOrThrow(String table) {
+        return Optional.ofNullable(tables.get(table))
+                .orElseThrow(() -> new SafeIllegalArgumentException(
+                        "Transaction action has unknown table.",
+                        SafeArg.of("tableName", table),
+                        SafeArg.of("availableTables", tables)));
+    }
+
+    private <T> T run(BiFunction<TableReference, Cell, T> function, String table, WorkloadCell workloadCell) {
+        Preconditions.checkState(
+                !hasFinished, "Transaction has already been witnessed and can no longer perform any actions.");
+        Cell atlasCell = AtlasDbUtils.toAtlasCell(workloadCell);
+        TableReference tableReference = getTableReferenceOrThrow(table);
+        return function.apply(tableReference, atlasCell);
+    }
+}u}(jW (12ac1ba77ac5173e6e93ae318bde8d17c872de28j fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj modifiedj Kij K?j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X1  @@ -16,35 +16,41 @@
 
 package com.palantir.atlasdb.workload.store;
 
-import com.google.common.primitives.Ints;
-import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.base.Suppliers;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.PreCommitCondition;
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.TransactionCommitFailedException;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
-import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
-import java.util.Set;
 import java.util.concurrent.atomic.AtomicReference;
+import java.util.function.Consumer;
 import java.util.function.Function;
-import java.util.stream.Collectors;
+import java.util.function.Supplier;
+import javax.annotation.concurrent.NotThreadSafe;
 import one.util.streamex.EntryStream;
 
-public final class AtlasDbTransactionStore implements TransactionStore {
+public final class AtlasDbTransactionStore implements InteractiveTransactionStore {
 
     private static final SafeLogger log = SafeLoggerFactory.get(AtlasDbTransactionStore.class);
     private final TransactionManager transactionManager;
@@ -58,94 +64,107 @@ private AtlasDbTransactionStore(TransactionManager transactionManager, Map<Strin
 
     @Override
     public Optional<Integer> get(String table, WorkloadCell cell) {
-        Cell atlasCell = AtlasDbUtils.toAtlasCell(cell);
-        TableReference tableReference = getTableReferenceOrThrow(table);
-        return transactionManager.runTaskWithRetry(task -> {
-            Map<Cell, byte[]> values = task.get(tableReference, Set.of(atlasCell));
-            return Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
-        });
+        return transactionManager.runTaskWithRetry(
+                transaction -> new AtlasDbInteractiveTransaction(transaction, tables).read(table, cell));
+    }
+
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return TransactionStatus.getCommitTimestamp(
+                        transactionManager.getTransactionService().getV2(startTimestamp))
+                .isPresent();
     }
 
     @Override
     public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
-        AtomicReference<Long> startTimestampReference = new AtomicReference<>();
+        return readWrite(txn -> {
+            AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
+            actions.forEach(action -> action.accept(visitor));
+        });
+    }
+
+    @Override
+    public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer) {
         AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
+        AtomicReference<Transaction> transactionReference = new AtomicReference<>();
+        Supplier<CommitTimestampProvider> commitTimestampProvider =
+                Suppliers.memoize(() -> new CommitTimestampProvider());
         try {
-            transactionManager.runTaskWithRetry(txn -> {
-                AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
-                startTimestampReference.set(txn.getTimestamp());
-                witnessedActionsReference.set(actions.stream()
-                        .sequential()
-                        .map(action -> action.accept(visitor))
-                        .collect(Collectors.toList()));
+            transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
+                transactionReference.set(txn);
+                AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
+                        new AtlasDbInteractiveTransaction(txn, tables);
+                interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
+                witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
                 return null;
             });
 
-            TransactionStatus status =
-                    transactionManager.getTransactionService().getV2(startTimestampReference.get());
+            Transaction transaction = transactionReference.get();
 
-            Optional<Long> commitTimestamp = TransactionStatus.getCommitTimestamp(status);
+            if (transaction.isAborted()) {
+                return Optional.empty();
+            }
 
-            return Optional.of(ImmutableWitnessedTransaction.builder()
-                    .startTimestamp(startTimestampReference.get())
-                    .commitTimestamp(commitTimestamp)
+            return Optional.of(FullyWitnessedTransaction.builder()
+                    .startTimestamp(transaction.getTimestamp())
+                    .commitTimestamp(commitTimestampProvider
+                            .get()
+                            .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
                     .actions(witnessedActionsReference.get())
                     .build());
         } catch (SafeIllegalArgumentException e) {
             throw e;
+        } catch (TransactionCommitFailedException e) {
+            Transaction transaction = transactionReference.get();
+            return Optional.of(MaybeWitnessedTransaction.builder()
+                    .startTimestamp(transaction.getTimestamp())
+                    .commitTimestamp(commitTimestampProvider
+                            .get()
+                            .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
+                    .actions(witnessedActionsReference.get())
+                    .build());
         } catch (Exception e) {
-            // TODO: Need to eventually handle PuE exceptions, as they could've succeeded in committing.
-            log.info("Failed to record transaction due to an exception", e);
+            Optional<Long> startTimestamp =
+                    Optional.ofNullable(transactionReference.get()).map(Transaction::getTimestamp);
+            log.info(
+                    "Failed to record transaction due to an exception for startTimestamp {}",
+                    SafeArg.of("startTimestamp", startTimestamp),
+                    e);
             return Optional.empty();
         }
     }
 
-    private TableReference getTableReferenceOrThrow(TransactionAction action) {
-        return getTableReferenceOrThrow(action.table());
-    }
-
-    private TableReference getTableReferenceOrThrow(String table) {
-        return Optional.ofNullable(tables.get(table))
-                .orElseThrow(() -> new SafeIllegalArgumentException(
-                        "Transaction action has unknown table.",
-                        SafeArg.of("readTransactionTableName", table),
-                        SafeArg.of("availableTables", tables)));
-    }
-
-    private class AtlasDbTransactionActionVisitor implements TransactionActionVisitor<WitnessedTransactionAction> {
+    private static class AtlasDbTransactionActionVisitor implements TransactionActionVisitor<Void> {
 
-        private final Transaction transaction;
+        private final InteractiveTransaction transaction;
 
-        public AtlasDbTransactionActionVisitor(Transaction transaction) {
+        public AtlasDbTransactionActionVisitor(InteractiveTransaction transaction) {
             this.transaction = transaction;
         }
 
         @Override
-        public WitnessedTransactionAction visit(ReadTransactionAction readTransactionAction) {
-            Cell cell = AtlasDbUtils.toAtlasCell(readTransactionAction.cell());
-            TableReference tableReference = getTableReferenceOrThrow(readTransactionAction);
-            Map<Cell, byte[]> cells =
-                    transaction.get(tableReference, Set.of(AtlasDbUtils.toAtlasCell(readTransactionAction.cell())));
-            Optional<Integer> value = Optional.ofNullable(cells.get(cell)).map(Ints::fromByteArray);
-            return readTransactionAction.witness(value);
+        public Void visit(ReadTransactionAction readTransactionAction) {
+            transaction.read(readTransactionAction.table(), readTransactionAction.cell());
+            return null;
+        }
+
+        @Override
+        public Void visit(WriteTransactionAction writeTransactionAction) {
+            transaction.write(
+                    writeTransactionAction.table(), writeTransactionAction.cell(), writeTransactionAction.value());
+            return null;
         }
 
         @Override
-        public WitnessedTransactionAction visit(WriteTransactionAction writeTransactionAction) {
-            TableReference tableReference = getTableReferenceOrThrow(writeTransactionAction);
-            transaction.put(
-                    tableReference,
-                    Map.of(
-                            AtlasDbUtils.toAtlasCell(writeTransactionAction.cell()),
-                            Ints.toByteArray(writeTransactionAction.value())));
-            return writeTransactionAction.witness();
+        public Void visit(DeleteTransactionAction deleteTransactionAction) {
+            transaction.delete(deleteTransactionAction.table(), deleteTransactionAction.cell());
+            return null;
         }
 
         @Override
-        public WitnessedTransactionAction visit(DeleteTransactionAction deleteTransactionAction) {
-            TableReference tableReference = getTableReferenceOrThrow(deleteTransactionAction);
-            transaction.delete(tableReference, Set.of(AtlasDbUtils.toAtlasCell(deleteTransactionAction.cell())));
-            return deleteTransactionAction.witness();
+        public Void visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+            // TODO (jkong): Not implemented yet
+            throw new UnsupportedOperationException("Not implemented yet");
         }
     }
 
@@ -158,4 +177,27 @@ public static AtlasDbTransactionStore create(
                 .toMap();
         return new AtlasDbTransactionStore(transactionManager, tableMapping);
     }
+
+    @VisibleForTesting
+    @NotThreadSafe
+    static final class CommitTimestampProvider implements PreCommitCondition {
+
+        private Optional<Long> maybeCommitOrStartTimestamp = Optional.empty();
+
+        @Override
+        public void throwIfConditionInvalid(long timestamp) {
+            maybeCommitOrStartTimestamp = Optional.of(timestamp);
+        }
+
+        public Optional<Long> getCommitTimestampOrThrowIfMaybeNotCommitted(long startTimestamp) {
+            long commitOrStartTimestamp = maybeCommitOrStartTimestamp.orElseThrow(() -> new SafeIllegalStateException(
+                    "Timestamp has not been set, which means the pre commit condition has never been executed,"
+                            + " thus the transaction never committed."));
+            if (startTimestamp == commitOrStartTimestamp) {
+                return Optional.empty();
+            }
+
+            return Optional.of(commitOrStartTimestamp);
+        }
+    }
 }u}(jW (d7dd783c1221e2a93fad625414ea628dac4c9695j matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javaj modifiedj K
j Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j Xr  @@ -28,6 +28,8 @@
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.conjure.java.api.config.service.UserAgent;
+import com.palantir.lock.client.TimeLockClient;
+import com.palantir.lock.client.UnreliableTimeLockService;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
@@ -39,7 +41,10 @@
 import one.util.streamex.EntryStream;
 import one.util.streamex.StreamEx;
 
-public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory {
+public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory<InteractiveTransactionStore> {
+
+    // Purposefully override the lock refresh interval to increase our chances of losing locks.
+    private static final int LOCK_REFRESH_INTERVAL_MS = 200;
 
     private final TransactionManager transactionManager;
     private final Optional<Namespace> maybeNamespace;
@@ -49,8 +54,12 @@ public AtlasDbTransactionStoreFactory(TransactionManager transactionManager, Opt
         this.maybeNamespace = maybeNamespace.map(Namespace::create);
     }
 
+    public boolean isInitialized() {
+        return transactionManager.isInitialized();
+    }
+
     @Override
-    public TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
+    public InteractiveTransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
         return AtlasDbTransactionStore.create(transactionManager, toAtlasTables(tables, indexes));
     }
 
@@ -138,6 +147,8 @@ public static AtlasDbTransactionStoreFactory createFromConfig(
                 .globalMetricsRegistry(metricsManager.getRegistry())
                 .globalTaggedMetricRegistry(metricsManager.getTaggedRegistry())
                 .runtimeConfigSupplier(atlasDbRuntimeConfig)
+                .defaultTimelockClientFactory(lockService -> TimeLockClient.createDefault(
+                        UnreliableTimeLockService.create(lockService), LOCK_REFRESH_INTERVAL_MS))
                 .build()
                 .serializable();
 u}(jW (f903482687bcb5e66793d816482b51d37342f3f8j fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/InMemoryValidationStore.javaj addedj K.j K j K.j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X2  @@ -0,0 +1,46 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.Optional;
+
+public final class InMemoryValidationStore implements ValidationStore {
+
+    private final Map<TableAndWorkloadCell, Optional<Integer>> values;
+
+    private InMemoryValidationStore(Map<TableAndWorkloadCell, Optional<Integer>> values) {
+        this.values = values;
+    }
+
+    public static InMemoryValidationStore create(List<WitnessedTransaction> history) {
+        InMemoryTransactionReplayer replayer = new InMemoryTransactionReplayer();
+        history.stream()
+                .map(WitnessedTransaction::actions)
+                .forEach(witnessedTransactionActions ->
+                        witnessedTransactionActions.forEach(action -> action.accept(replayer)));
+        return new InMemoryValidationStore(replayer.getValues());
+    }
+
+    @Override
+    public Map<TableAndWorkloadCell, Optional<Integer>> values() {
+        return values;
+    }
+}u}(jW (cb6dfce8a01b80d7f3c5368970de60190ce81ddcj gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/ReadOnlyTransactionStore.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XU  @@ -33,4 +33,9 @@ public ReadOnlyTransactionStore(ReadableTransactionStore delegate) {
     public Optional<Integer> get(String table, WorkloadCell cell) {
         return delegate.get(table, cell);
     }
+
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return delegate.isCommitted(startTimestamp);
+    }
 }u}(jW (53b40b5fe80de185e89ff3bfca0044e6f97e759dj patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj addedj KCj K j KCj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,67 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.Optional;
+
+public final class InMemoryTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
+
+    private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> values =
+            StructureHolder.create(HashMap::empty);
+
+    @Override
+    public Void visit(WitnessedReadTransactionAction _readTransactionAction) {
+        return null;
+    }
+
+    @Override
+    public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
+        TableAndWorkloadCell tableAndWorkloadCell =
+                TableAndWorkloadCell.of(writeTransactionAction.table(), writeTransactionAction.cell());
+        values.with(map -> map.put(tableAndWorkloadCell, Optional.of(writeTransactionAction.value())));
+        return null;
+    }
+
+    /**
+     * Deletes are explicitly tracked to enable invariants that rely on verifying that deleted values stay deleted.
+     */
+    @Override
+    public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+        TableAndWorkloadCell tableAndWorkloadCell =
+                TableAndWorkloadCell.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
+        values.with(map -> map.put(tableAndWorkloadCell, Optional.empty()));
+        return null;
+    }
+
+    @Override
+    public Void visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        return null;
+    }
+
+    public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
+        return values.getSnapshot();
+    }
+}u}(jW (301fd225038dc758fb5af7d2c0a7b9fd364ca74dj latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStore.javaj removedj K j KTj KTj https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javaj https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j X  @@ -1,84 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.transaction;
-
-import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
-import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
-import com.palantir.atlasdb.workload.store.ValidationStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
-import io.vavr.collection.HashMap;
-import io.vavr.collection.Map;
-import java.util.List;
-import java.util.Optional;
-
-public final class InMemoryValidationStore implements ValidationStore {
-
-    private final Map<TableAndWorkloadCell, Optional<Integer>> values;
-
-    private InMemoryValidationStore(Map<TableAndWorkloadCell, Optional<Integer>> values) {
-        this.values = values;
-    }
-
-    public static InMemoryValidationStore create(List<WitnessedTransaction> history) {
-        InMemoryTransactionReplayer replayer = new InMemoryTransactionReplayer();
-        history.stream()
-                .map(WitnessedTransaction::actions)
-                .forEach(witnessedTransactionActions ->
-                        witnessedTransactionActions.forEach(action -> action.accept(replayer)));
-        return new InMemoryValidationStore(replayer.getValues());
-    }
-
-    @Override
-    public Map<TableAndWorkloadCell, Optional<Integer>> values() {
-        return values;
-    }
-
-    private static final class InMemoryTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
-
-        private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> values =
-                StructureHolder.create(HashMap::empty);
-
-        @Override
-        public Void visit(WitnessedReadTransactionAction readTransactionAction) {
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
-            TableAndWorkloadCell tableAndWorkloadCell =
-                    TableAndWorkloadCell.of(writeTransactionAction.table(), writeTransactionAction.cell());
-            values.with(map -> map.put(tableAndWorkloadCell, Optional.of(writeTransactionAction.value())));
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
-            TableAndWorkloadCell tableAndWorkloadCell =
-                    TableAndWorkloadCell.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
-            values.with(map -> map.put(tableAndWorkloadCell, Optional.empty()));
-            return null;
-        }
-
-        public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
-            return values.getSnapshot();
-        }
-    }
-}u}(jW (32db22149cce31693c0af4b33f0f275d03565d29j katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -18,6 +18,7 @@
 
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 
@@ -39,4 +40,9 @@ public WriteTransactionAction visit(WitnessedWriteTransactionAction writeTransac
     public DeleteTransactionAction visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         return ImmutableDeleteTransactionAction.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
     }
+
+    @Override
+    public TransactionAction visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        return rowColumnRangeReadTransactionAction.originalQuery();
+    }
 }u}(jW (0ba18e00eabc917a1fd7025d0f9113112c9b8615j atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitor.javaj addedj K*j K j K*j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.Optional;
+
+public final class OnlyCommittedWitnessedTransactionVisitor
+        implements WitnessedTransactionVisitor<Optional<FullyWitnessedTransaction>> {
+
+    private final ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    public OnlyCommittedWitnessedTransactionVisitor(ReadOnlyTransactionStore readOnlyTransactionStore) {
+        this.readOnlyTransactionStore = readOnlyTransactionStore;
+    }
+
+    @Override
+    public Optional<FullyWitnessedTransaction> visit(FullyWitnessedTransaction witnessedTransaction) {
+        return Optional.of(witnessedTransaction);
+    }
+
+    @Override
+    public Optional<FullyWitnessedTransaction> visit(MaybeWitnessedTransaction maybeWitnessedTransaction) {
+        return readOnlyTransactionStore.isCommitted(maybeWitnessedTransaction.startTimestamp())
+                ? Optional.of(maybeWitnessedTransaction.toFullyWitnessed())
+                : Optional.empty();
+    }
+}u}(jW (c0b3881cb15e0ba7b72700e3a80768b2c77a4b32j tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactions.javaj addedj K-j K j K-j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.Comparator;
+import java.util.List;
+import one.util.streamex.StreamEx;
+
+public final class WitnessedTransactions {
+    private WitnessedTransactions() {
+        // utility
+    }
+
+    /**
+     * Sorts transactions by their effective timestamp and filters out transactions that are not fully committed.
+     */
+    public static List<FullyWitnessedTransaction> sortAndFilterTransactions(
+            ReadOnlyTransactionStore readOnlyTransactionStore, List<WitnessedTransaction> unorderedTransactions) {
+        OnlyCommittedWitnessedTransactionVisitor visitor =
+                new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
+        return StreamEx.of(unorderedTransactions)
+                .mapPartial(transaction -> transaction.accept(visitor))
+                .sorted(Comparator.comparingLong(WitnessedTransactions::effectiveTimestamp))
+                .toList();
+    }
+
+    private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
+        return witnessedTransaction.commitTimestamp().orElseGet(witnessedTransaction::startTimestamp);
+    }
+}u}(jW (c14cafe2cad0f011ce8b5b31617cf86e0d9736faj matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunner.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j Xz  @@ -30,18 +30,17 @@
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 
-public final class ConcurrentTransactionRunner {
-    private final TransactionStore transactionStore;
+public final class ConcurrentTransactionRunner<T extends TransactionStore> {
+    private final T transactionStore;
     private final ListeningExecutorService listeningExecutorService;
 
-    public ConcurrentTransactionRunner(
-            TransactionStore transactionStore, ListeningExecutorService listeningExecutorService) {
+    public ConcurrentTransactionRunner(T transactionStore, ListeningExecutorService listeningExecutorService) {
         this.transactionStore = transactionStore;
         this.listeningExecutorService = listeningExecutorService;
     }
 
     public Future<List<WitnessedTransaction>> runConcurrentTransactionTask(
-            KeyedTransactionTask transactionTask, int taskMultiplicity) {
+            KeyedTransactionTask<T> transactionTask, int taskMultiplicity) {
         Preconditions.checkArgument(
                 taskMultiplicity >= 0,
                 "Tasks must be run a non-negative number of times",u}(jW (f4ad0b8dddc43f5cd0380760c6cfdc9c58c273e1j aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javaj modifiedj K
j Kj K&j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -16,27 +16,25 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
-import java.util.Comparator;
 import java.util.List;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
-import java.util.stream.Collectors;
 
-public final class DefaultWorkflow implements Workflow {
-    private final ConcurrentTransactionRunner concurrentTransactionRunner;
-    private final KeyedTransactionTask transactionTask;
+public final class DefaultWorkflow<T extends TransactionStore> implements Workflow {
+    private final ConcurrentTransactionRunner<T> concurrentTransactionRunner;
+    private final KeyedTransactionTask<T> transactionTask;
     private final WorkflowConfiguration workflowConfiguration;
     private final ReadOnlyTransactionStore readOnlyTransactionStore;
 
     private DefaultWorkflow(
-            ConcurrentTransactionRunner concurrentTransactionRunner,
-            KeyedTransactionTask transactionTask,
+            ConcurrentTransactionRunner<T> concurrentTransactionRunner,
+            KeyedTransactionTask<T> transactionTask,
             WorkflowConfiguration workflowConfiguration,
             ReadOnlyTransactionStore readOnlyTransactionStore) {
         this.concurrentTransactionRunner = concurrentTransactionRunner;
@@ -45,13 +43,13 @@ private DefaultWorkflow(
         this.readOnlyTransactionStore = readOnlyTransactionStore;
     }
 
-    public static Workflow create(
-            TransactionStore store,
-            KeyedTransactionTask transactionTask,
+    public static <T extends TransactionStore> DefaultWorkflow<T> create(
+            T store,
+            KeyedTransactionTask<T> transactionTask,
             WorkflowConfiguration configuration,
             ListeningExecutorService executionExecutor) {
-        return new DefaultWorkflow(
-                new ConcurrentTransactionRunner(store, executionExecutor),
+        return new DefaultWorkflow<>(
+                new ConcurrentTransactionRunner<>(store, executionExecutor),
                 transactionTask,
                 configuration,
                 new ReadOnlyTransactionStore(store));
@@ -60,7 +58,8 @@ public static Workflow create(
     @Override
     public WorkflowHistory run() {
         return ImmutableWorkflowHistory.builder()
-                .history(sortByEffectiveTimestamp(runTransactionTask()))
+                .history(
+                        WitnessedTransactions.sortAndFilterTransactions(readOnlyTransactionStore, runTransactionTask()))
                 .transactionStore(readOnlyTransactionStore)
                 .build();
     }
@@ -78,15 +77,4 @@ private List<WitnessedTransaction> runTransactionTask() {
             throw new SafeRuntimeException("Error when running workflow task", e.getCause());
         }
     }
-
-    @VisibleForTesting
-    static List<WitnessedTransaction> sortByEffectiveTimestamp(List<WitnessedTransaction> unorderedTransactions) {
-        return unorderedTransactions.stream()
-                .sorted(Comparator.comparingLong(DefaultWorkflow::effectiveTimestamp))
-                .collect(Collectors.toList());
-    }
-
-    private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
-        return witnessedTransaction.commitTimestamp().orElseGet(witnessedTransaction::startTimestamp);
-    }
 }u}(jW (e0b5354ebacbf6077ea736f29765fb8d71159fcdj matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowConfiguration.javaj addedj K:j K j K:j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,58 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableRandomWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableRandomWorkflowConfiguration.class)
+@JsonTypeName(RandomWorkflowConfiguration.TYPE)
+public interface RandomWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "random";
+
+    TableConfiguration tableConfiguration();
+
+    @Value.Default
+    default Integer maxWrites() {
+        return 5;
+    }
+
+    @Value.Default
+    default Integer maxReads() {
+        return 5;
+    }
+
+    @Value.Default
+    default Integer maxDeletes() {
+        return 2;
+    }
+
+    @Value.Default
+    default Integer maxCells() {
+        return 10;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jW (a9726d8998a6fbf1c745d6616a2e4356d3889a34j aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javaj addedj Kvj K j Kvj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j Xw  @@ -0,0 +1,118 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.security.SecureRandom;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+import org.jetbrains.annotations.VisibleForTesting;
+
+public final class RandomWorkflows {
+    private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+    private static final Integer COLUMN = 0;
+
+    private RandomWorkflows() {
+        // static factory
+    }
+
+    public static Workflow create(
+            TransactionStore store,
+            RandomWorkflowConfiguration randomWorkflowConfig,
+            ListeningExecutorService executionExecutor) {
+        return create(store, randomWorkflowConfig, executionExecutor, RANDOM);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            TransactionStore store,
+            RandomWorkflowConfiguration randomWorkflowConfig,
+            ListeningExecutorService executionExecutor,
+            SecureRandom random) {
+        RandomWorkflowTask task = new RandomWorkflowTask(randomWorkflowConfig, random);
+        return DefaultWorkflow.create(
+                store, (txnStore, _index) -> task.run(txnStore), randomWorkflowConfig, executionExecutor);
+    }
+
+    private static final class RandomWorkflowTask {
+
+        private final RandomWorkflowConfiguration workflowConfiguration;
+        private final SecureRandom random;
+
+        public RandomWorkflowTask(RandomWorkflowConfiguration workflowConfiguration, SecureRandom random) {
+            this.workflowConfiguration = workflowConfiguration;
+            this.random = random;
+        }
+
+        public Optional<WitnessedTransaction> run(TransactionStore store) {
+            workflowConfiguration.transactionRateLimiter().acquire();
+            List<TransactionAction> actions = Stream.of(
+                            generateReadActions(), generateWriteActions(), generateDeleteActions())
+                    .flatMap(Collection::stream)
+                    .collect(Collectors.toList());
+            Collections.shuffle(actions, random);
+            return store.readWrite(actions);
+        }
+
+        private List<ReadTransactionAction> generateReadActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxReads() + 1))
+                    .boxed()
+                    .map(_index -> ImmutableReadTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(), randomCell()))
+                    .collect(Collectors.toList());
+        }
+
+        private List<WriteTransactionAction> generateWriteActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxWrites() + 1))
+                    .boxed()
+                    .map(_index -> ImmutableWriteTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(),
+                            randomCell(),
+                            random.nextInt(100_000)))
+                    .collect(Collectors.toList());
+        }
+
+        private List<DeleteTransactionAction> generateDeleteActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxDeletes() + 1))
+                    .boxed()
+                    .map(_index -> ImmutableDeleteTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(), randomCell()))
+                    .collect(Collectors.toList());
+        }
+
+        private WorkloadCell randomCell() {
+            return ImmutableWorkloadCell.of(random.nextInt(workflowConfiguration.maxCells()), COLUMN);
+        }
+    }
+}u}(jW (cfa7bb7b766851d22237ea49091b9cce6c50c789j atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowConfiguration.javaj addedj K j K j K j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.java     j https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j Xz  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellReadNoTouchWorkflowConfiguration.TYPE)
+public interface SingleBusyCellReadNoTouchWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell-reads-no-touch";
+
+    TableConfiguration tableConfiguration();
+}u}(jW (ae852affb871f77d186c4b71ecca052b5aeeed40j tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflows.javaj addedj Kjj K j Kjj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions. This workflow differs
+ * from the {@link SingleBusyCellWorkflows} in the way that its read transaction only does read and doesn't touch the
+ * cell with its current value or -1. This allows us to exercise the code path of read-write transaction that only do
+ * reads, which is necessary to catch bugs like sweep deleting entries under a transaction if it doesn't check for
+ * immutableTimestamp lock.
+ */
+public final class SingleBusyCellReadNoTouchWorkflows {
+    private SingleBusyCellReadNoTouchWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReads(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReads(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(
+                        txn -> txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL))))
+                .collect(Collectors.toList());
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
+    }
+}u}(jW (4ca9777a60bba46b458d814677435f4e29d93675j uatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowConfiguration.javaj addedj K j K j K j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X?  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellWorkflowConfiguration.TYPE)
+public interface SingleBusyCellWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell";
+
+    TableConfiguration tableConfiguration();
+}u}(jW (c82f3d3c2182e14e8f2d6630ac1cb719f0cd3c4cj iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflows.javaj addedj Kij K j Kij https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,105 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions.
+ */
+public final class SingleBusyCellWorkflows {
+    private SingleBusyCellWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReadsAndTouches(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReadsAndTouches(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(txn -> {
+                    Optional<Integer> value =
+                            txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL);
+                    txn.write(configuration.tableConfiguration().tableName(), BUSY_CELL, value.orElse(-1));
+                })))
+                .collect(Collectors.toList());
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
+    }
+}u}(jW (f101f419a9c4366406e60fd1ca898e4645dbf939j xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XE  @@ -27,15 +27,10 @@
 @JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
 @JsonTypeName(SingleRowTwoCellsWorkflowConfiguration.TYPE)
 public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfiguration {
-    String TYPE = "singleRowTwoCells";
+    String TYPE = "single-row-two-cells";
 
     TableConfiguration tableConfiguration();
 
-    @Value.Default
-    default double rateLimit() {
-        return 100;
-    }
-
     @Value.Lazy
     default RateLimiter transactionRateLimiter() {
         return RateLimiter.create(rateLimit());u}(jW (32ce774d4a8fd320c1af7af7c838de4f7f6065e3j latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javaj modifiedj K	j Kj K
j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -28,6 +28,9 @@
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
 import java.util.Optional;
 import java.util.stream.Collectors;
@@ -39,6 +42,7 @@
  * to delete the other.
  */
 public final class SingleRowTwoCellsWorkflows {
+    private static final SafeLogger log = SafeLoggerFactory.get(SingleRowTwoCellsWorkflows.class);
     private static final int SINGLE_ROW = 1;
     private static final int FIRST_COLUMN = 1;
     private static final int SECOND_COLUMN = 2;
@@ -70,7 +74,11 @@ private static Optional<WitnessedTransaction> run(
 
         List<TransactionAction> transactionActions = createTransactionActions(
                 taskIndex, workflowConfiguration.tableConfiguration().tableName());
-        return store.readWrite(transactionActions);
+        Optional<WitnessedTransaction> maybeTransaction = store.readWrite(transactionActions);
+        maybeTransaction.ifPresent(_transaction -> log.info(
+                "Transaction successfully committed for single row two cells workflow for task index {}.",
+                SafeArg.of("taskIndex", taskIndex)));
+        return maybeTransaction;
     }
 
     @VisibleForTestingu}(jW (be3aea7c363f3e52d9c0332e95d106f0c15597f5j tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowConfiguration.javaj addedj K j K j K j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowConfiguration.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X9  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableTransientRowsWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableTransientRowsWorkflowConfiguration.class)
+@JsonTypeName(TransientRowsWorkflowConfiguration.TYPE)
+public interface TransientRowsWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "transient-rows";
+
+    TableConfiguration tableConfiguration();
+}u}(jW (9002a5ed3382a35694d630c784b417cd15befa46j hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X]%  @@ -0,0 +1,187 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.invariant.CrossCellInconsistency;
+import com.palantir.atlasdb.workload.invariant.ImmutableInvariantReporter;
+import com.palantir.atlasdb.workload.invariant.Invariant;
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.security.SecureRandom;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.Set;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+public final class TransientRowsWorkflows {
+    private static final SafeLogger log = SafeLoggerFactory.get(TransientRowsWorkflows.class);
+
+    @VisibleForTesting
+    static final int SUMMARY_ROW = -1;
+
+    @VisibleForTesting
+    static final int COLUMN = 1;
+
+    @VisibleForTesting
+    static final int VALUE = 0;
+
+    private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+
+    private TransientRowsWorkflows() {}
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            TransientRowsWorkflowConfiguration workflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        return DefaultWorkflow.create(
+                store,
+                (txn, taskIndex) -> run(store, workflowConfiguration, taskIndex),
+                workflowConfiguration,
+                executionExecutor);
+    }
+
+    private static Optional<WitnessedTransaction> run(
+            InteractiveTransactionStore store, TransientRowsWorkflowConfiguration configuration, int taskIndex) {
+        return store.readWrite(txn -> {
+            String tableName = configuration.tableConfiguration().tableName();
+            txn.write(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex), VALUE);
+            txn.write(tableName, ImmutableWorkloadCell.of(taskIndex, COLUMN), VALUE);
+            if (taskIndex > 0) {
+                int indexToRead = SECURE_RANDOM.nextInt(taskIndex);
+                txn.read(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, indexToRead));
+                txn.read(tableName, ImmutableWorkloadCell.of(indexToRead, COLUMN));
+
+                if (txn.read(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN))
+                        .isPresent()) {
+                    txn.delete(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex - 1));
+                    txn.delete(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN));
+                }
+            }
+        });
+    }
+
+    public static InvariantReporter<List<CrossCellInconsistency>> getSummaryLogInvariantReporter(
+            TransientRowsWorkflowConfiguration configuration) {
+        return ImmutableInvariantReporter.<List<CrossCellInconsistency>>builder()
+                .invariant(createSummaryRowInvariant(configuration))
+                .consumer(violations -> {
+                    if (!violations.isEmpty()) {
+                        log.error(
+                                "Detected rows which did not agree with state in a summary index: {}",
+                                SafeArg.of("violations", violations));
+                    }
+                })
+                .build();
+    }
+
+    private static Invariant<List<CrossCellInconsistency>> createSummaryRowInvariant(
+            TransientRowsWorkflowConfiguration configuration) {
+        return (workflowHistory, notifier) -> {
+            List<CrossCellInconsistency> violations = new ArrayList<>();
+            ReadableTransactionStore store = workflowHistory.transactionStore();
+
+            violations.addAll(findInconsistencyInTransactionHistory(workflowHistory.history()));
+            violations.addAll(findInconsistencyInFinalIndexState(configuration, store));
+
+            notifier.accept(violations);
+        };
+    }
+
+    private static List<CrossCellInconsistency> findInconsistencyInTransactionHistory(
+            List<WitnessedTransaction> history) {
+        return history.stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(TransientRowsWorkflows::findInconsistencyInTransactionActions)
+                .collect(Collectors.toList());
+    }
+
+    private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActions(
+            List<WitnessedTransactionAction> actions) {
+        Set<WitnessedReadTransactionAction> readTransactionActions = actions.stream()
+                .filter(WitnessedReadTransactionAction.class::isInstance)
+                .map(action -> (WitnessedReadTransactionAction) action)
+                .collect(Collectors.toSet());
+        if (readTransactionActions.size() == 0) {
+            return Stream.empty();
+        }
+        WitnessedReadTransactionAction summaryRowRead = readTransactionActions.stream()
+                .filter(action -> action.cell().key() == SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of the summary row", SafeArg.of("actions", actions)));
+        WitnessedReadTransactionAction normalRowRead = readTransactionActions.stream()
+                .filter(action -> Objects.equals(
+                                action.cell().key(), summaryRowRead.cell().column())
+                        && action.cell().column() == COLUMN)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of a corresponding normal row", SafeArg.of("actions", actions)));
+        if (!summaryRowRead.value().equals(normalRowRead.value())) {
+            return Stream.of(CrossCellInconsistency.builder()
+                    .putInconsistentValues(
+                            TableAndWorkloadCell.of(summaryRowRead.table(), summaryRowRead.cell()),
+                            summaryRowRead.value())
+                    .putInconsistentValues(
+                            TableAndWorkloadCell.of(normalRowRead.table(), normalRowRead.cell()), normalRowRead.value())
+                    .build());
+        } else {
+            return Stream.empty();
+        }
+    }
+
+    private static List<CrossCellInconsistency> findInconsistencyInFinalIndexState(
+            TransientRowsWorkflowConfiguration configuration, ReadableTransactionStore store) {
+        List<CrossCellInconsistency> violations = new ArrayList<>();
+        String tableName = configuration.tableConfiguration().tableName();
+        Set<Integer> taskIndices =
+                IntStream.range(0, configuration.iterationCount()).boxed().collect(Collectors.toSet());
+        taskIndices.forEach(index -> checkSummaryConsistencyForIndex(violations, store, tableName, index));
+        return violations;
+    }
+
+    private static void checkSummaryConsistencyForIndex(
+            List<CrossCellInconsistency> violations, ReadableTransactionStore store, String tableName, Integer index) {
+        WorkloadCell primaryCell = ImmutableWorkloadCell.of(index, COLUMN);
+        Optional<Integer> valueFromPrimaryRow = store.get(tableName, primaryCell);
+        WorkloadCell summaryCell = ImmutableWorkloadCell.of(SUMMARY_ROW, index);
+        Optional<Integer> valueFromSummaryRow = store.get(tableName, summaryCell);
+        if (valueFromSummaryRow.isPresent() ^ valueFromPrimaryRow.isPresent()) {
+            violations.add(CrossCellInconsistency.builder()
+                    .putInconsistentValues(TableAndWorkloadCell.of(tableName, primaryCell), valueFromPrimaryRow)
+                    .putInconsistentValues(TableAndWorkloadCell.of(tableName, summaryCell), valueFromSummaryRow)
+                    .build());
+        }
+    }
+}u}(jW (4c009ebe4699e6665fa0c9590874f7ead9b2f33fj gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtils.javaj addedj K^j K j K^j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,94 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import com.google.common.collect.ImmutableMap;
+import java.security.SecureRandom;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Optional;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import one.util.streamex.EntryStream;
+
+public final class BankBalanceUtils {
+
+    private BankBalanceUtils() {}
+
+    /**
+     * Validates all the bank balances provided. If all are empty, we will generate a new set of bank balances. If
+     * any are missing, an empty optional is returned to indicate failure state. If balances do not total to the
+     * expected amount, an empty optional is returned.
+     *
+     * @return An empty optional when validation has failed for bank balances. Otherwise, the optional will contain
+     * the validated (or generated) balances.
+     */
+    public static Optional<Map<Integer, Integer>> validateOrGenerateBalances(
+            Map<Integer, Optional<Integer>> maybeBalances, Integer numberOfAccounts, Integer balancePerAccount) {
+        if (allValuesPresent(maybeBalances)) {
+            Integer total = numberOfAccounts * balancePerAccount;
+            Map<Integer, Integer> balances =
+                    EntryStream.of(maybeBalances).mapValues(Optional::get).toMap();
+            if (!sumOfBalancesMatchTotal(balances, total)) {
+                return Optional.empty();
+            }
+            return Optional.of(balances);
+        }
+
+        if (allValuesEmpty(maybeBalances)) {
+            return Optional.of(generateBalances(numberOfAccounts, balancePerAccount));
+        }
+
+        return Optional.empty();
+    }
+
+    public static Map<Integer, Integer> performTransfers(
+            Map<Integer, Integer> balances, int numberOfTransfers, int transferAmount, SecureRandom random) {
+        Map<Integer, Integer> newBalances = new HashMap<>(balances);
+        for (int idx = 0; idx < numberOfTransfers; idx++) {
+            int from = random.nextInt(newBalances.size());
+            int to = random.nextInt(newBalances.size());
+
+            if (newBalances.get(from) - transferAmount < 0) {
+                continue;
+            }
+
+            newBalances.compute(from, (k, v) -> v - transferAmount);
+            newBalances.compute(to, (k, v) -> v + transferAmount);
+        }
+        return ImmutableMap.copyOf(newBalances);
+    }
+
+    private static boolean sumOfBalancesMatchTotal(Map<Integer, Integer> balances, Integer totalBalance) {
+        return balances.values().stream().mapToInt(Integer::intValue).sum() == totalBalance;
+    }
+
+    private static boolean allValuesPresent(Map<Integer, Optional<Integer>> balances) {
+        return balances.values().stream().allMatch(Optional::isPresent);
+    }
+
+    private static boolean allValuesEmpty(Map<Integer, Optional<Integer>> balances) {
+        return balances.values().stream().allMatch(Optional::isEmpty);
+    }
+
+    private static Map<Integer, Integer> generateBalances(Integer numberOfAccounts, Integer balancePerAccount) {
+        return IntStream.range(0, numberOfAccounts)
+                .boxed()
+                .collect(Collectors.toMap(Function.identity(), index -> balancePerAccount));
+    }
+}u}(jW (dd8ae4bd5d9bdf4ebb6f459b4fc1771835066b3ej watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowConfiguration.javaj addedj K7j K j K7j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,55 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import com.palantir.atlasdb.workload.workflow.TableConfiguration;
+import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableBankBalanceWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableBankBalanceWorkflowConfiguration.class)
+@JsonTypeName(BankBalanceWorkflowConfiguration.TYPE)
+public interface BankBalanceWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "bank-balance";
+
+    TableConfiguration tableConfiguration();
+
+    @Value.Default
+    default Integer numberOfAccounts() {
+        return 10;
+    }
+
+    @Value.Default
+    default Integer initialBalancePerAccount() {
+        return 100;
+    }
+
+    @Value.Default
+    default Integer transferAmount() {
+        return 75;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jW (2394a7f410f2773d697a6ff47e5911c814eba351j katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflows.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,136 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.security.SecureRandom;
+import java.util.Map;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.jetbrains.annotations.VisibleForTesting;
+
+/**
+ * A workflow which performs a number of account balance transfers between accounts.
+ */
+public final class BankBalanceWorkflows {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(BankBalanceWorkflows.class);
+    private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+
+    private static final Integer COLUMN = 0;
+
+    private BankBalanceWorkflows() {
+        // utility
+    }
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            BankBalanceWorkflowConfiguration bankBalanceWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        BankBalanceRunTask runTask = new BankBalanceRunTask(bankBalanceWorkflowConfiguration);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> runTask.run(txnStore),
+                bankBalanceWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            InteractiveTransactionStore store,
+            BankBalanceWorkflowConfiguration bankBalanceWorkflowConfiguration,
+            ListeningExecutorService executionExecutor,
+            AtomicBoolean skipRunning) {
+        BankBalanceRunTask runTask = new BankBalanceRunTask(skipRunning, bankBalanceWorkflowConfiguration);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> runTask.run(txnStore),
+                bankBalanceWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    private static class BankBalanceRunTask {
+        private final AtomicBoolean skipRunning;
+
+        private final BankBalanceWorkflowConfiguration workflowConfiguration;
+
+        public BankBalanceRunTask(BankBalanceWorkflowConfiguration workflowConfiguration) {
+            this(new AtomicBoolean(), workflowConfiguration);
+        }
+
+        @VisibleForTesting
+        BankBalanceRunTask(AtomicBoolean skipRunning, BankBalanceWorkflowConfiguration workflowConfiguration) {
+            this.skipRunning = skipRunning;
+            this.workflowConfiguration = workflowConfiguration;
+        }
+
+        public Optional<WitnessedTransaction> run(InteractiveTransactionStore store) {
+            if (skipRunning.get()) {
+                return Optional.empty();
+            }
+            workflowConfiguration.transactionRateLimiter().acquire();
+            return store.readWrite(txn -> {
+                Map<Integer, Optional<Integer>> maybeBalances = getAccountBalances(txn);
+                BankBalanceUtils.validateOrGenerateBalances(
+                                maybeBalances,
+                                workflowConfiguration.numberOfAccounts(),
+                                workflowConfiguration.initialBalancePerAccount())
+                        .ifPresentOrElse(balances -> performTransfers(txn, balances), () -> {
+                            if (skipRunning.compareAndSet(false, true)) {
+                                log.error(
+                                        "Balance validation failed, indicating we have violated snapshot isolation.",
+                                        SafeArg.of("maybeBalances", maybeBalances));
+                            }
+                        });
+            });
+        }
+
+        private void performTransfers(InteractiveTransaction transaction, Map<Integer, Integer> balances) {
+            Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(
+                    balances, RANDOM.nextInt(balances.size()), workflowConfiguration.transferAmount(), RANDOM);
+            newBalances.forEach((account, balance) -> transaction.write(
+                    workflowConfiguration.tableConfiguration().tableName(), getCellForAccount(account), balance));
+        }
+
+        private Map<Integer, Optional<Integer>> getAccountBalances(InteractiveTransaction transaction) {
+            return IntStream.range(0, workflowConfiguration.numberOfAccounts())
+                    .boxed()
+                    .collect(Collectors.toMap(
+                            Function.identity(),
+                            index -> transaction.read(
+                                    workflowConfiguration.tableConfiguration().tableName(), getCellForAccount(index))));
+        }
+    }
+
+    public static WorkloadCell getCellForAccount(int accountIndex) {
+        return ImmutableWorkloadCell.of(accountIndex, COLUMN);
+    }
+}u}(jW (17025a595fb12bc4f0fc9cfc02f250dd06064c6aj `atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingGraph.javaj addedj K|j K j K|j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X%  @@ -0,0 +1,124 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.google.common.collect.Iterators;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.security.SecureRandom;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import one.util.streamex.EntryStream;
+
+public final class RingGraph {
+    private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+    private final Map<Integer, Integer> ring;
+
+    private RingGraph(Map<Integer, Integer> ring) {
+        this.ring = ring;
+    }
+
+    public static RingGraph from(Map<Integer, Integer> ring) throws RingValidationException {
+        validateGraphIsRing(ring);
+        return new RingGraph(ring);
+    }
+
+    public static RingGraph fromPartial(Map<Integer, Optional<Integer>> ring) throws RingValidationException {
+        if (isEmpty(ring)) {
+            return RingGraph.generateNewRing(ring.keySet());
+        }
+
+        Preconditions.checkArgument(
+                !anyEmpty(ring),
+                "Graph contains missing entries, thus cannot be made into a ring.",
+                SafeArg.of("ring", ring));
+
+        return from(EntryStream.of(ring).mapValues(Optional::get).toMap());
+    }
+
+    public static RingGraph create(int size) {
+        return generateNewRing(IntStream.range(0, size).boxed().collect(Collectors.toSet()));
+    }
+
+    /**
+     * Checks that the ring is correct by verifying:
+     * (1) There are no missing entries
+     * (2) There are no sub-cycles
+     * (3) The ring is connected
+     * <p>
+     * This is simply done by iterating over the length of the ring, and validating that we visited each node.
+     * To ensure that the ring is connected, we do not track our entry into the ring (i.e. the first node we visit),
+     * as we expect to have it be visited again as the last node.
+     */
+    public static void validateGraphIsRing(Map<Integer, Integer> ring) throws RingValidationException {
+        Integer initialNode = ring.keySet().iterator().next();
+        Set<Integer> remainingNodes = new HashSet<>(ring.keySet());
+        int maxIterations = ring.keySet().size();
+        Integer nextNode = ring.get(initialNode);
+        for (int iterations = 0; iterations < maxIterations; iterations++) {
+            // If we reference a node that does not exist in our ring, it means we are missing data
+            if (!ring.containsKey(nextNode)) {
+                RingValidationException.throwMissingEntries(ring);
+            }
+
+            // If the node already has been visited, it means we're in a cycle within our ring
+            if (!remainingNodes.remove(nextNode)) {
+                RingValidationException.throwEarlyCycle(ring);
+            }
+
+            nextNode = ring.get(nextNode);
+        }
+    }
+
+    public RingGraph generateNewRing() {
+        return generateNewRing(ring.keySet());
+    }
+
+    /**
+     * Returns a valid new ring with the same nodes but randomly generated edges.
+     */
+    private static RingGraph generateNewRing(Set<Integer> nodes) {
+        List<Integer> keys = new ArrayList<>(nodes);
+        Collections.shuffle(keys, SECURE_RANDOM);
+        Iterator<Integer> valuesIterator = Iterators.cycle(keys);
+        valuesIterator.next();
+        return new RingGraph(
+                keys.stream().collect(Collectors.toMap(Function.identity(), _node -> valuesIterator.next())));
+    }
+
+    public Map<Integer, Integer> asMap() {
+        return ring;
+    }
+
+    private static boolean isEmpty(Map<Integer, Optional<Integer>> ring) {
+        return ring.values().stream().allMatch(Optional::isEmpty);
+    }
+
+    private static boolean anyEmpty(Map<Integer, Optional<Integer>> ring) {
+        return ring.values().stream().anyMatch(Optional::isEmpty);
+    }
+}u}(jW (109ed2a6c2ef9753e6500d3ea6827a032511da81j natlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingValidationException.javaj addedj K?j K j K?j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,63 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.palantir.logsafe.Arg;
+import com.palantir.logsafe.Safe;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.SafeLoggable;
+import java.util.List;
+import java.util.Map;
+
+public final class RingValidationException extends IllegalArgumentException implements SafeLoggable {
+
+    private final Map<Integer, Integer> ring;
+    private final Type type;
+
+    private RingValidationException(Map<Integer, Integer> ring, Type type) {
+        this.ring = ring;
+        this.type = type;
+    }
+
+    @Override
+    public @Safe String getLogMessage() {
+        return "Detected an error in the graph when attempting to validate as a ring.";
+    }
+
+    @Override
+    public List<Arg<?>> getArgs() {
+        return List.of(SafeArg.of("ring", ring), SafeArg.of("type", type));
+    }
+
+    public static void throwEarlyCycle(Map<Integer, Integer> ring) throws RingValidationException {
+        throw new RingValidationException(ring, Type.EARLY_CYCLE);
+    }
+
+    public static void throwMissingEntries(Map<Integer, Integer> ring) throws RingValidationException {
+        throw new RingValidationException(ring, Type.MISSING_ENTRIES);
+    }
+
+    enum Type {
+        // Detected a cycle in our ring before visiting all nodes,
+        // indicating the integrity of our ring has been compromised.
+        EARLY_CYCLE,
+
+        // Detected a reference to a node that does not exist,
+        // indicating the integrity of our ring has been compromised.
+        MISSING_ENTRIES;
+    }
+}u}(jW (8db9245638b72b40f73f9ae3c427c4ccb2c69053j patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowConfiguration.javaj addedj K,j K j K,j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import com.palantir.atlasdb.workload.workflow.TableConfiguration;
+import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableRingWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableRingWorkflowConfiguration.class)
+@JsonTypeName(RingWorkflowConfiguration.TYPE)
+public interface RingWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "ring";
+
+    TableConfiguration tableConfiguration();
+
+    default Integer ringSize() {
+        return 3;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jW (b786a95bef1effb5bd44f53eed786d588b38a9b0j datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflows.javaj addedj Ktj K j Ktj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,116 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.Map;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+
+/**
+ * Runs a workflow which creates a representation of a ring using key-value pairs.
+ * The ring is validated and shuffled after every iteration. If the ring ever becomes invalid (cycles, missing data),
+ * this indicates that there is a bug in our underlying storage infrastructure, as snapshot isolation has been violated.
+ * Snapshot isolation would be violated here, as it indicates that we did not detect a write-write conflict,
+ * as every write will be of a correct ring.
+ */
+public final class RingWorkflows {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(RingWorkflows.class);
+
+    private static final int COLUMN = 0;
+
+    private RingWorkflows() {
+        // static factory
+    }
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration ringWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        AtomicBoolean skipRunning = new AtomicBoolean(false);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
+                ringWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration ringWorkflowConfiguration,
+            ListeningExecutorService executionExecutor,
+            AtomicBoolean skipRunning) {
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
+                ringWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    private static Optional<WitnessedTransaction> run(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration workflowConfiguration,
+            AtomicBoolean skipRunning) {
+        if (skipRunning.get()) {
+            return Optional.empty();
+        }
+
+        workflowConfiguration.transactionRateLimiter().acquire();
+        String table = workflowConfiguration.tableConfiguration().tableName();
+        Integer ringSize = workflowConfiguration.ringSize();
+        return store.readWrite(txn -> {
+            Map<Integer, Optional<Integer>> data = fetchData(table, ringSize, txn);
+            try {
+                RingGraph ringGraph = RingGraph.fromPartial(data);
+                ringGraph
+                        .generateNewRing()
+                        .asMap()
+                        .forEach((rootNode, nextNode) -> txn.write(table, cell(rootNode), nextNode));
+            } catch (IllegalArgumentException e) {
+                if (skipRunning.compareAndSet(false, true)) {
+                    log.error("Detected violation with our ring.", e);
+                }
+            }
+        });
+    }
+
+    private static Map<Integer, Optional<Integer>> fetchData(
+            String table, int ringSize, InteractiveTransaction transaction) {
+        return IntStream.range(0, ringSize)
+                .boxed()
+                .collect(Collectors.toMap(Function.identity(), index -> transaction.read(table, cell(index))));
+    }
+
+    @VisibleForTesting
+    static ImmutableWorkloadCell cell(Integer node) {
+        return ImmutableWorkloadCell.of(node, COLUMN);
+    }
+}u"      }(jW (c89f46a34f99a9fca258b76f8b9fdf692e350760j natlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/background/BackgroundCassandraJobTest.javaj addedj K2j K j K2j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,50 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.background;
+
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.verify;
+
+import com.palantir.atlasdb.buggify.AlwaysBuggifyFactory;
+import com.palantir.atlasdb.workload.resource.CassandraSidecarResource;
+import java.util.List;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class BackgroundCassandraJobTest {
+
+    private static final String HOST_ONE = "cassandra1";
+    private static final String HOST_TWO = "cassandra2";
+    private static final String HOST_THREE = "cassandra3";
+
+    private static final List<String> CASSANDRA_HOSTS = List.of(HOST_ONE, HOST_TWO, HOST_THREE);
+
+    @Mock
+    private CassandraSidecarResource cassandraSidecarResource;
+
+    @Test
+    public void runCanExecuteCompactFlushOnAllCassandraHosts() {
+        BackgroundCassandraJob backgroundCassandraJob =
+                new BackgroundCassandraJob(CASSANDRA_HOSTS, cassandraSidecarResource, AlwaysBuggifyFactory.INSTANCE);
+        CASSANDRA_HOSTS.forEach(_ignore -> backgroundCassandraJob.run());
+        CASSANDRA_HOSTS.forEach(host -> verify(cassandraSidecarResource).compact(eq(host)));
+        CASSANDRA_HOSTS.forEach(host -> verify(cassandraSidecarResource).flush(eq(host)));
+    }
+}u}(jW (3d12ec12a07e0b90193451a34a6dccfcfa6f8e76j {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporterTest.javaj renamedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j Xf  @@ -25,7 +25,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -37,15 +37,15 @@
 import java.util.Set;
 import org.junit.Test;
 
-public final class DurableWritesMetricInvariantReporterTest {
+public final class DurableWritesInvariantMetricReporterTest {
 
     private final TaggedMetricRegistry taggedMetricRegistry = new DefaultTaggedMetricRegistry();
     private final DurableWritesMetrics metrics = DurableWritesMetrics.of(taggedMetricRegistry);
 
     @Test
     public void runIncreasesMetricsIfViolationsFound() {
-        DurableWritesMetricInvariantReporter reporter =
-                new DurableWritesMetricInvariantReporter(WorkloadTestHelpers.WORKFLOW, metrics);
+        DurableWritesInvariantMetricReporter reporter =
+                new DurableWritesInvariantMetricReporter(WorkloadTestHelpers.WORKFLOW, metrics);
         AtlasDbTransactionStoreFactory factory = new AtlasDbTransactionStoreFactory(
                 TransactionManagers.createInMemory(Set.of()), Optional.of("keyspace"));
         TransactionStore store = factory.create(
@@ -60,7 +60,7 @@ public void runIncreasesMetricsIfViolationsFound() {
                         .build()));
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
                 .transactionStore(store)
-                .history(List.of(ImmutableWitnessedTransaction.builder()
+                .history(List.of(FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(jw {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesMetricInvariantReporterTest.javau}(jW (39cc7f77a28bd84fc271bbca23d8e9195abf6fd6j matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantTest.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X
  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -59,12 +59,12 @@ public void before() {
     public void cellsExpectedToBeDeletedAreFound() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)
@@ -86,12 +86,12 @@ public void cellsExpectedToBeDeletedAreFound() {
     public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)u}(jW (398677d5ff242f5cee92de9c2737a0843621c59dj watlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporterTest.javaj addedj K3j K j K3j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X;  @@ -0,0 +1,51 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import java.util.List;
+import org.junit.Test;
+
+public class SerializableInvariantLogReporterTest {
+    @Test
+    public void invariantIsSerializable() {
+        assertThat(SerializableInvariantLogReporter.INSTANCE.invariant()).isEqualTo(SerializableInvariant.INSTANCE);
+    }
+
+    @Test
+    public void consumerDoesNotThrowWhenAcceptingViolations() {
+        assertThatCode(() -> SerializableInvariantLogReporter.INSTANCE
+                        .consumer()
+                        .accept(List.of(InvalidWitnessedTransaction.of(
+                                FullyWitnessedTransaction.builder()
+                                        .startTimestamp(1)
+                                        .build(),
+                                List.of()))))
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void consumerDoesNotThrowWhenAcceptingNoViolations() {
+        assertThatCode(() ->
+                        SerializableInvariantLogReporter.INSTANCE.consumer().accept(List.of()))
+                .doesNotThrowAnyException();
+    }
+}u}(jW (0db0afc0570e8993b0ec99aac00c3f57657d6828j latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j Xy  @@ -0,0 +1,158 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class SerializableInvariantTest {
+
+    @Mock
+    private ReadableTransactionStore readableTransactionStore;
+
+    @Test
+    public void handlesLocalWrites() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .read(5, 10)
+                .write(5, 10, 15)
+                .read(5, 10, 15)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void noInvalidTransactionsWhenSerializable() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .write(23, 1, 20)
+                .write(7, 15, 14)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(23, 1, 20)
+                .read(7, 15, 14)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void catchesWriteSkew() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(6, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(6, 10, 15)
+                .write(5, 10, 0)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(6, 10, 15)
+                .write(6, 10, 0)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);
+
+        assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
+
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(
+                        InvalidWitnessedSingleCellTransactionAction.class,
+                        invalidSingleCellWitnessedTransactionAction -> {
+                            assertThat(invalidSingleCellWitnessedTransactionAction.action())
+                                    .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
+                                        assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
+                                        assertThat(action.value()).contains(15);
+                                    });
+                            assertThat(invalidSingleCellWitnessedTransactionAction.mismatchedValue())
+                                    .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+                        });
+    }
+
+    @Test
+    public void handlesDeletes() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(6, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .delete(5, 10)
+                .read(5, 10)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+}u}(jW (fb5813b8d5288d435a36c31b8acf757dd6e9083bj hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X!  @@ -0,0 +1,170 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class SnapshotInvariantTest {
+    @Mock
+    private ReadableTransactionStore readableTransactionStore;
+
+    @Test
+    public void catchesWriteWriteConflict() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidTransaction.transaction().startTimestamp()).isEqualTo(5L);
+        assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
+
+        InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(InvalidWitnessedSingleCellTransactionAction.class, invalidSingleCellAction -> {
+                    assertThat(invalidSingleCellAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+                    assertThat(invalidSingleCellAction.mismatchedValue())
+                            .isEqualTo(MismatchedValue.of(
+                                    ValueAndMaybeTimestamp.of(WorkloadTestHelpers.VALUE_ONE, 1L),
+                                    ValueAndMaybeTimestamp.empty()));
+                });
+    }
+
+    @Test
+    public void catchesAbaWriteWriteConflictForDeletes() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .delete(5, 10)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidTransaction.transaction().startTimestamp()).isEqualTo(5L);
+        assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
+
+        InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(InvalidWitnessedSingleCellTransactionAction.class, invalidSingleCellAction -> {
+                    assertThat(invalidSingleCellAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+                    assertThat(invalidSingleCellAction.mismatchedValue())
+                            .isEqualTo(MismatchedValue.of(
+                                    ValueAndMaybeTimestamp.of(Optional.empty(), 1L), ValueAndMaybeTimestamp.empty()));
+                });
+    }
+
+    @Test
+    public void doesNotCatchWriteSkew() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .read(5, 10)
+                .write(6, 10, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void doesNotCatchReadOnlyTransactionAnomaly() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(11L)
+                .read(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .startTransaction(12L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(13L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void properlyReplaysReadsAndWrites() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .read(5, 10)
+                .endTransaction(15L)
+                .startTransaction(16L)
+                .read(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(17L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+}u}(jW (536813aeb3973b4b9f9bd25d91bf425cf6efeb37j iatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/VersionedTableViewTest.javaj addedj KHj K j KHj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XU  @@ -0,0 +1,72 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.TreeMap;
+import org.junit.Test;
+
+public final class VersionedTableViewTest {
+    @Test
+    public void putStoresTable() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        tableView.put(1L, HashMap.of(10L, 20L));
+        assertThat(tableView.getLatestTableView().getSnapshot().toJavaMap())
+                .containsExactlyEntriesOf(java.util.Map.of(10L, 20L));
+    }
+
+    @Test
+    public void getLatestTableViewFetchesLargestVersion() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedLastView = HashMap.of(30L, 40L);
+        tableView.put(1L, HashMap.of(10L, 20L));
+        tableView.put(2L, HashMap.of(20L, 30L));
+        tableView.put(3L, HashMap.of(30L, 40L));
+        assertThat(tableView.getLatestTableView().getSnapshot()).isEqualTo(expectedLastView);
+    }
+
+    @Test
+    public void getViewFetchesViewBeforeTimestamp() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedView = HashMap.of(10L, 20L);
+        tableView.put(1L, expectedView);
+        tableView.put(3L, HashMap.of(20L, 30L));
+        assertThat(tableView.getView(2L).getSnapshot()).isEqualTo(expectedView);
+    }
+
+    @Test
+    public void getViewThrowsWhenFetchingViewForTimestampThatExists() {
+        Long timestamp = 1L;
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedView = HashMap.of(10L, 20L);
+        tableView.put(timestamp, expectedView);
+
+        TreeMap<Long, Map<Long, Long>> tableViews = new TreeMap<>();
+        tableViews.put(timestamp, tableView.getLatestTableView().getSnapshot());
+
+        assertThatLoggableExceptionThrownBy(() -> tableView.getView(1L).getSnapshot())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("It is expected when obtaining a view")
+                .hasExactlyArgs(SafeArg.of("startTimestamp", 1L), SafeArg.of("tableViews", tableViews));
+    }
+}u}(jW (6c7f1d05425e8759d68b71073e9525eaf8f11057j uatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunnerTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j Xb  @@ -0,0 +1,140 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.runner;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doAnswer;
+import static org.mockito.Mockito.doThrow;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.times;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
+
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.Future;
+import java.util.concurrent.atomic.AtomicBoolean;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class AntithesisWorkflowValidatorRunnerTest {
+
+    private static final ListeningExecutorService EXECUTOR_SERVICE =
+            MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(8));
+
+    @Mock
+    private Workflow workflow;
+
+    @Mock
+    private WorkflowHistory workflowHistory;
+
+    @Mock
+    private InvariantReporter<Void> invariantReporterOne;
+
+    @Mock
+    private InvariantReporter<Void> invariantReporterTwo;
+
+    private WorkflowAndInvariants<Workflow> workflowAndInvariants;
+
+    @Before
+    public void before() {
+        when(workflow.run()).thenReturn(workflowHistory);
+        workflowAndInvariants = WorkflowAndInvariants.of(workflow, invariantReporterOne, invariantReporterTwo);
+    }
+
+    @Test
+    public void runExecutesWorkflowAndInvokesInvariantReporters() {
+        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(workflowAndInvariants);
+        verify(workflow, times(1)).run();
+        verify(invariantReporterOne, times(1)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+
+    @Test
+    public void runValidatesAllInvariantsIgnoringExceptions() {
+        doThrow(new RuntimeException()).when(invariantReporterOne).report(any());
+        doThrow(new RuntimeException()).when(invariantReporterTwo).report(any());
+        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(workflowAndInvariants);
+        verify(workflow, times(1)).run();
+        verify(invariantReporterOne, times(1)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+
+    @Test
+    public void runExecutesMultipleWorkflowsAndWaitsForAllToFinishBeforeInvokingInvariantReporter() {
+        CountDownLatch slowWorkflowCanMakeProgress = new CountDownLatch(1);
+        AtomicBoolean slowWorkflowIsDone = new AtomicBoolean(false);
+
+        Workflow slowWorkflow = mock(Workflow.class);
+        when(slowWorkflow.run()).thenAnswer(_input -> {
+            try {
+                slowWorkflowCanMakeProgress.await();
+                slowWorkflowIsDone.set(true);
+                return workflowHistory;
+            } catch (InterruptedException e) {
+                Thread.currentThread().interrupt();
+                throw new RuntimeException(e);
+            }
+        });
+
+        doAnswer(_invocation -> {
+                    assertThat(slowWorkflowIsDone.get())
+                            .as("the invariant reporter ran, even though the slow workflow was not done yet")
+                            .isTrue();
+                    return null;
+                })
+                .when(invariantReporterOne)
+                .report(any());
+
+        ExecutorService backgroundExecutor = PTExecutors.newSingleThreadExecutor();
+        try {
+            Future<Void> validation = backgroundExecutor.submit(() -> {
+                WorkflowAndInvariants<Workflow> slowWorkflowAndInvariants =
+                        WorkflowAndInvariants.of(slowWorkflow, invariantReporterOne);
+                new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE)
+                        .run(slowWorkflowAndInvariants, workflowAndInvariants);
+                return null;
+            });
+
+            assertThat(validation).as("the slow workflow was not actually slow").isNotDone();
+
+            slowWorkflowCanMakeProgress.countDown();
+            Futures.getUnchecked(validation);
+        } finally {
+            backgroundExecutor.shutdown();
+        }
+
+        verify(workflow, times(1)).run();
+        verify(slowWorkflow, times(1)).run();
+        verify(invariantReporterOne, times(2)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+}u}(jW (f9527e173d1407deb811ea00448699afa0a4afd1j iatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/server/RunOnceWorkflowRunnerTest.javaj removedj K j K.j K.j https://github.com/palantir/atlasdb/blob/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.javaj https://github.com/palantir/atlasdb/raw/5cc51e408d3cb52cc5c8560024625ff6bd934e31/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.java?ref=5cc51e408d3cb52cc5c8560024625ff6bd934e31j X0  @@ -1,46 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.server;
-
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.when;
-
-import com.palantir.atlasdb.workload.invariant.InvariantReporter;
-import com.palantir.atlasdb.workload.workflow.RunOnceWorkflowRunner;
-import com.palantir.atlasdb.workload.workflow.Workflow;
-import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
-import java.util.List;
-import org.junit.Test;
-
-public class RunOnceWorkflowRunnerTest {
-    @Test
-    public void runExecutesWorkflowsAndInvokesInvariantReporter() {
-        Workflow exampleWorkflow = mock(Workflow.class);
-        WorkflowHistory workflowHistory = mock(WorkflowHistory.class);
-        when(exampleWorkflow.run()).thenReturn(workflowHistory);
-        InvariantReporter<Void> exampleInvariantReporterOne = mock(InvariantReporter.class);
-        InvariantReporter<Void> exampleInvariantReporterTwo = mock(InvariantReporter.class);
-        RunOnceWorkflowRunner.INSTANCE.run(
-                exampleWorkflow, List.of(exampleInvariantReporterOne, exampleInvariantReporterTwo));
-        verify(exampleWorkflow, times(1)).run();
-        verify(exampleInvariantReporterOne, times(1)).report(any());
-        verify(exampleInvariantReporterTwo, times(1)).report(any());
-    }
-}u}(jW (b5153a38953e7417f0f9867686cd369359e28c9ej patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X_  @@ -0,0 +1,145 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.NAMES_TO_REFERENCES_TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLES_TO_ATLAS_METADATA;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Consumer;
+import org.junit.Before;
+import org.junit.Test;
+
+public final class AtlasDbInteractiveTransactionTest {
+
+    private TransactionManager manager;
+
+    @Before
+    public void before() {
+        manager = TransactionManagers.createInMemory(Set.of());
+        manager.getKeyValueService().createTables(TABLES_TO_ATLAS_METADATA);
+    }
+
+    @Test
+    public void witnessRecordAllActions() {
+        assertThat(readWrite(transaction -> {
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
+                .containsExactly(
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void readHandlesEmptyAndPresentValue() {
+        assertThat(readWrite(transaction -> {
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
+                .containsExactly(
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+    }
+
+    @Test
+    public void readThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.read(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void writeThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(
+                transaction -> transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE));
+    }
+
+    @Test
+    public void deleteThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void readThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.read(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void writeThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE));
+    }
+
+    @Test
+    public void deleteThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        return manager.runTaskWithRetry(atlasTransaction -> {
+            AtlasDbInteractiveTransaction interactiveTransaction =
+                    new AtlasDbInteractiveTransaction(atlasTransaction, NAMES_TO_REFERENCES_TABLE_1);
+            transactionConsumer.accept(interactiveTransaction);
+            return interactiveTransaction.witness();
+        });
+    }
+
+    private void assertThatThrownWhenUnknownTableReferenced(
+            Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
+                    transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
+                    return null;
+                }))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Transaction action has unknown table.");
+    }
+
+    private void assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+            Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
+                    AtlasDbInteractiveTransaction transaction =
+                            new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
+                    transaction.witness();
+                    transactionConsumer.accept(transaction);
+                    return null;
+                }))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Transaction has already been witnessed and can no longer perform any actions.");
+    }
+}u}(jW (5ec56f77b39005e45c63e6495f68b817646fecc6j jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj modifiedj KUj Kj K\j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X^  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.workload.store;
 
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.INDEX_REFERENCE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLES_TO_ATLAS_METADATA;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1_INDEX_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
@@ -27,48 +28,57 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doAnswer;
+import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
 
 import com.google.common.collect.Iterables;
+import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
+import com.palantir.atlasdb.transaction.api.ConditionAwareTransactionTask;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.encoding.V1EncodingStrategy;
+import com.palantir.atlasdb.transaction.impl.TransactionConstants;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore.CommitTimestampProvider;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
+import java.util.function.Supplier;
 import java.util.stream.Collectors;
 import org.junit.Before;
 import org.junit.Test;
 
 public final class AtlasDbTransactionStoreTest {
 
+    private static final long START_TS = 1;
+    private static final long COMMIT_TS = 2;
+
     private TransactionManager manager;
 
     private AtlasDbTransactionStore store;
 
     @Before
     public void before() {
         manager = TransactionManagers.createInMemory(Set.of());
-        store = AtlasDbTransactionStore.create(
-                manager,
-                Map.of(
-                        TABLE_REFERENCE,
-                        AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
-                        INDEX_REFERENCE,
-                        AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE)));
+        store = AtlasDbTransactionStore.create(manager, TABLES_TO_ATLAS_METADATA);
     }
 
     @Test
@@ -145,4 +155,72 @@ public void readWriteHandlesReadOnlyTransaction() {
         assertThat(witnessedTransaction).isPresent();
         assertThat(witnessedTransaction.get().commitTimestamp()).isEmpty();
     }
+
+    @Test
+    public void abortedTransactionsReturnEmpty() {
+        TransactionManager onlyAbortsManager = spy(manager);
+        Transaction abortedTransaction = mock(Transaction.class);
+        when(abortedTransaction.isAborted()).thenReturn(true);
+        doReturn(abortedTransaction).when(onlyAbortsManager).runTaskWithConditionWithRetry(any(Supplier.class), any());
+        AtlasDbTransactionStore onlyAbortsStore =
+                AtlasDbTransactionStore.create(onlyAbortsManager, TABLES_TO_ATLAS_METADATA);
+        assertThat(onlyAbortsStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+                .isEmpty();
+    }
+
+    @Test
+    public void keyAlreadyExistExceptionResultsInMaybeWitnessedTransaction() {
+        WriteTransactionAction writeTransactionAction =
+                WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+        TransactionManager keyAlreadyExistsExceptionThrowingStore = spy(manager);
+        doAnswer(invocation -> {
+                    Supplier<CommitTimestampProvider> commitTimestampFetcher = invocation.getArgument(0);
+                    ConditionAwareTransactionTask<Void, CommitTimestampProvider, Exception> task =
+                            invocation.getArgument(1);
+                    return manager.runTaskWithConditionWithRetry(commitTimestampFetcher, (txn, condition) -> {
+                        manager.getKeyValueService()
+                                .putUnlessExists(
+                                        TransactionConstants.TRANSACTION_TABLE,
+                                        Map.of(
+                                                V1EncodingStrategy.INSTANCE.encodeStartTimestampAsCell(
+                                                        txn.getTimestamp()),
+                                                Ints.toByteArray(-1)));
+                        task.execute(txn, condition);
+                        return null;
+                    });
+                })
+                .when(keyAlreadyExistsExceptionThrowingStore)
+                .runTaskWithConditionWithRetry(any(Supplier.class), any());
+        AtlasDbTransactionStore onlyKeyAlreadyExistsThrowingStore =
+                AtlasDbTransactionStore.create(keyAlreadyExistsExceptionThrowingStore, TABLES_TO_ATLAS_METADATA);
+        assertThat(onlyKeyAlreadyExistsThrowingStore.readWrite(List.of(writeTransactionAction)))
+                .hasValueSatisfying(witnessedTransaction -> {
+                    assertThat(witnessedTransaction).isInstanceOf(MaybeWitnessedTransaction.class);
+                    assertThat(witnessedTransaction.actions()).containsExactly(writeTransactionAction.witness());
+                });
+    }
+
+    @Test
+    public void getCommitTimestampIsEmptyWhenMatchesStartTimestamp() {
+        CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();
+        commitTimestampProvider.throwIfConditionInvalid(START_TS);
+        assertThat(commitTimestampProvider.getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .isEmpty();
+    }
+
+    @Test
+    public void getCommitTimestampThrowsWhenNoTimestampSet() {
+        assertThatThrownBy(() -> new CommitTimestampProvider().getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining(
+                        "Timestamp has not been set, which means the pre commit condition has never been executed");
+    }
+
+    @Test
+    public void getCommitTimestampReturnsPresentWhenCommitAndStartTimestampMismatch() {
+        CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();
+        commitTimestampProvider.throwIfConditionInvalid(COMMIT_TS);
+        assertThat(commitTimestampProvider.getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .hasValue(COMMIT_TS);
+    }
 }u}(jW (eb63f7e70bff1527685e728d66979d4f8f1a1f60j tatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayerTest.javaj addedj KJj K j KJj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,74 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.Tuple2;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class InMemoryTransactionReplayerTest {
+
+    private static final WitnessedWriteTransactionAction WRITE_TRANSACTION_ACTION_1 =
+            ImmutableWitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+    private static final WitnessedWriteTransactionAction WRITE_TRANSACTION_ACTION_2 =
+            ImmutableWitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO);
+
+    @Test
+    public void readActionsAreIgnored() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        inMemoryTransactionReplayer.visit(
+                ImmutableWitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+        assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
+    }
+
+    @Test
+    public void writesAreRecorded() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_1);
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_2);
+        assertThat(inMemoryTransactionReplayer.getValues())
+                .containsExactlyInAnyOrder(
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)),
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_TWO, Optional.of(VALUE_TWO)));
+    }
+
+    @Test
+    public void deletesAreRecorded() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_1);
+        inMemoryTransactionReplayer.visit(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
+        inMemoryTransactionReplayer.visit(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO));
+        assertThat(inMemoryTransactionReplayer.getValues())
+                .containsExactlyInAnyOrder(
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_ONE, Optional.empty()),
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_TWO, Optional.empty()));
+    }
+}u}(jW (d2773b68972e300a262ebb1f8c2a24f280280cfd      j patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javaj modifiedj K	j Kj Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -25,8 +25,9 @@
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.store.ValidationStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import java.util.List;
@@ -39,12 +40,12 @@ public final class InMemoryValidationStoreTest {
     @Test
     public void writeActionsPersistValues() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
@@ -60,13 +61,13 @@ public void writeActionsPersistValues() {
     @Test
     public void deleteActionsPutsEmptyOptionalForCell() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
@@ -79,17 +80,17 @@ public void deleteActionsPutsEmptyOptionalForCell() {
     @Test
     public void writesDeletesAreProcessedInOrder() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(5)
                         .commitTimestamp(6)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_TWO))u}(jW (cad53b71091234e55f82b97b4b6e475eebb5559bj qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj addedj Kyj K j Kyj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,121 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.logsafe.Preconditions;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicLong;
+
+public final class WitnessedTransactionsBuilder {
+
+    private final List<WitnessedTransaction> witnessedTransactions = new ArrayList<>();
+
+    private final AtomicLong timestampCounter = new AtomicLong();
+    private final String table;
+
+    public WitnessedTransactionsBuilder(String table) {
+        this.table = table;
+    }
+
+    public WitnessedTransactionBuilder startTransaction(long startTimestamp) {
+        if (startTimestamp > timestampCounter.get()) {
+            timestampCounter.set(startTimestamp);
+        }
+        return new WitnessedTransactionBuilder(startTimestamp);
+    }
+
+    public WitnessedTransactionBuilder startTransaction() {
+        return new WitnessedTransactionBuilder(timestampCounter.incrementAndGet());
+    }
+
+    public List<WitnessedTransaction> build() {
+        return List.copyOf(witnessedTransactions);
+    }
+
+    public final class WitnessedTransactionBuilder {
+        private final List<WitnessedTransactionAction> actions = new ArrayList<>();
+
+        private boolean needsCommitTimestamp = false;
+
+        private final long startTimestamp;
+
+        public WitnessedTransactionBuilder(long startTimestamp) {
+            this.startTimestamp = startTimestamp;
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column, Optional<Integer> valueRead) {
+            actions.add(WitnessedReadTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), valueRead));
+            return this;
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column, Integer valueRead) {
+            return read(row, column, Optional.of(valueRead));
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column) {
+            return read(row, column, Optional.empty());
+        }
+
+        public WitnessedTransactionBuilder write(Integer row, Integer column, Integer value) {
+            actions.add(WitnessedWriteTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), value));
+            needsCommitTimestamp = true;
+            return this;
+        }
+
+        public WitnessedTransactionBuilder delete(Integer row, Integer column) {
+            actions.add(WitnessedDeleteTransactionAction.of(table, ImmutableWorkloadCell.of(row, column)));
+            needsCommitTimestamp = true;
+            return this;
+        }
+
+        public WitnessedTransactionsBuilder endTransaction() {
+            Optional<Long> commitTimestamp =
+                    needsCommitTimestamp ? Optional.of(timestampCounter.incrementAndGet()) : Optional.empty();
+            return endTransaction(commitTimestamp);
+        }
+
+        public WitnessedTransactionsBuilder endTransaction(Long commitTimestamp) {
+            return endTransaction(Optional.of(commitTimestamp));
+        }
+
+        public WitnessedTransactionsBuilder endTransaction(Optional<Long> commitTimestamp) {
+            if (needsCommitTimestamp) {
+                Preconditions.checkArgument(
+                        commitTimestamp.isPresent(),
+                        "Commit timestamp must be provided when the transaction has any writes or deletes.");
+                Preconditions.checkArgument(
+                        startTimestamp < commitTimestamp.get(),
+                        "Commit timestamp must be greater than the start timestamp.");
+            }
+            witnessedTransactions.add(FullyWitnessedTransaction.builder()
+                    .startTimestamp(startTimestamp)
+                    .actions(actions)
+                    .commitTimestamp(commitTimestamp)
+                    .build());
+            return WitnessedTransactionsBuilder.this;
+        }
+    }
+}u}(jW (bdf9a77b3f524e363e5144842e79d33e09bcbe78j hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X^  @@ -18,9 +18,13 @@
 
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.invariant.ValueAndMaybeTimestamp;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import java.util.Map;
 
 public final class WorkloadTestHelpers {
     public static final String TABLE_1 = "foo";
@@ -34,6 +38,16 @@ public final class WorkloadTestHelpers {
     public static final TableReference INDEX_REFERENCE =
             TableReference.create(TABLE_REFERENCE.getNamespace(), TABLE_1_INDEX_1);
 
+    public static final Map<String, TableReference> NAMES_TO_REFERENCES_TABLE_1 = Map.of(
+            TABLE_1, TABLE_REFERENCE,
+            TABLE_1_INDEX_1, INDEX_REFERENCE);
+
+    public static final Map<TableReference, byte[]> TABLES_TO_ATLAS_METADATA = Map.of(
+            TABLE_REFERENCE,
+            AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
+            INDEX_REFERENCE,
+            AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE_INDEX));
+
     public static final Namespace NAMESPACE = Namespace.create("workload");
     public static final WorkloadCell WORKLOAD_CELL_ONE = ImmutableWorkloadCell.of(50, 10);
     public static final WorkloadCell WORKLOAD_CELL_TWO = ImmutableWorkloadCell.of(1257, 521);
@@ -45,5 +59,9 @@ public final class WorkloadTestHelpers {
             TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_ONE);
     public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
             TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO);
+
+    public static final ValueAndMaybeTimestamp VALUE_ONE_AND_TIMESTAMP = ValueAndMaybeTimestamp.of(VALUE_ONE, 1L);
+
+    public static final ValueAndMaybeTimestamp VALUE_TWO_AND_TIMESTAMP = ValueAndMaybeTimestamp.of(VALUE_TWO, 1L);
     public static final String WORKFLOW = "example-workflow";
 }u}(jW (d495a71c18ca7b125092f092c371e0a4a455ad73j atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitorTest.javaj addedj KAj K j KAj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X
  @@ -0,0 +1,65 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyLong;
+import static org.mockito.Mockito.verifyNoInteractions;
+import static org.mockito.Mockito.when;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class OnlyCommittedWitnessedTransactionVisitorTest {
+
+    private static final FullyWitnessedTransaction READ_ONLY_WITNESSED_TRANSACTION =
+            FullyWitnessedTransaction.builder().startTimestamp(100L).build();
+
+    private static final MaybeWitnessedTransaction MAYBE_WITNESSED_TRANSACTION = MaybeWitnessedTransaction.builder()
+            .startTimestamp(100L)
+            .commitTimestamp(101L)
+            .build();
+
+    @Mock
+    private ReadOnlyTransactionStore transactionStore;
+
+    @Test
+    public void fullyCommittedTransactionsAreNeverChecked() {
+        assertThat(READ_ONLY_WITNESSED_TRANSACTION.accept(
+                        new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(READ_ONLY_WITNESSED_TRANSACTION);
+        verifyNoInteractions(transactionStore);
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsEmptyWhenNotCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(false);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .isEmpty();
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsFullyWitnessedWhenCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(true);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(MAYBE_WITNESSED_TRANSACTION.toFullyWitnessed());
+    }
+}u}(jW (c5349645dc81bf0c8bc33bc720961e281110a64fj xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionsTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,131 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.List;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class WitnessedTransactionsTest {
+    @Mock
+    private ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    @Test
+    public void returnsUnderlyingWitnessedTransactions() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(twoToEight)))
+                .containsExactly(twoToEight);
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(readOnlyAtFive)))
+                .containsExactly(readOnlyAtFive);
+    }
+
+    @Test
+    public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
+                .containsExactly(fourToSix, threeToSeven, twoToEight);
+    }
+
+    @Test
+    public void sortsReadOnlyTransactionsByStartTimestamp() {
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
+                .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
+    }
+
+    @Test
+    public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        ImmutableList.of(
+                                twoToEight,
+                                readOnlyAtNine,
+                                fourToSix,
+                                readOnlyAtFive,
+                                readOnlyAtThree,
+                                readOnlyAtSeven)))
+                .containsExactly(
+                        readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
+    }
+
+    @Test
+    public void filterRemovesUncommittedTransactions() {
+        MaybeWitnessedTransaction committedMaybeWitnessedTransaction =
+                createMaybeWitnessedTransactionWithoutActions(1, 3, true);
+        MaybeWitnessedTransaction notCommittedTransaction = createMaybeWitnessedTransactionWithoutActions(2, 8, false);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        List.of(
+                                committedMaybeWitnessedTransaction,
+                                notCommittedTransaction,
+                                readOnlyAtFive,
+                                fourToSix)))
+                .containsExactly(committedMaybeWitnessedTransaction.toFullyWitnessed(), readOnlyAtFive, fourToSix);
+    }
+
+    private MaybeWitnessedTransaction createMaybeWitnessedTransactionWithoutActions(
+            long start, long commit, boolean committed) {
+        when(readOnlyTransactionStore.isCommitted(eq(start))).thenReturn(committed);
+        return MaybeWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+
+    private static FullyWitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
+        return FullyWitnessedTransaction.builder().startTimestamp(start).build();
+    }
+
+    private static FullyWitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+}u}(jW (c661ec5533851b62afb963d1f472d967b8a67e83j qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunnerTest.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -33,7 +33,7 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.List;
@@ -49,11 +49,12 @@
 public class ConcurrentTransactionRunnerTest {
     private static final int DEFAULT_TASK_MULTIPLICITY = 100;
 
-    private final KeyedTransactionTask task = mock(KeyedTransactionTask.class);
+    private final KeyedTransactionTask<TransactionStore> task = mock(KeyedTransactionTask.class);
     private final TransactionStore store = mock(TransactionStore.class);
     private final DeterministicScheduler scheduler = new DeterministicScheduler();
     private final ListeningExecutorService executorService = MoreExecutors.listeningDecorator(scheduler);
-    private final ConcurrentTransactionRunner runner = new ConcurrentTransactionRunner(store, executorService);
+    private final ConcurrentTransactionRunner<TransactionStore> runner =
+            new ConcurrentTransactionRunner<>(store, executorService);
 
     @Before
     public void setupTask() {
@@ -125,7 +126,7 @@ public void storePassedThroughToIndividualTasks() {
     }
 
     private static WitnessedTransaction createWitnessedTransactionWithStartTimestamp(int startTimestamp) {
-        return ImmutableWitnessedTransaction.builder()
+        return FullyWitnessedTransaction.builder()
                 .startTimestamp(startTimestamp)
                 .build();
     }u}(jW (84316bacac0bff7ed7e0091b3a88e14381eec0f0j eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javaj modifiedj Kj KCj KGj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X5  @@ -16,91 +16,39 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.anyInt;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
-import com.google.common.collect.ImmutableList;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.concurrent.ScheduledExecutorService;
 import org.junit.Test;
 
 public class DefaultWorkflowTest {
     private final TransactionStore store = mock(TransactionStore.class);
 
-    private final KeyedTransactionTask transactionTask = mock(KeyedTransactionTask.class);
+    private final KeyedTransactionTask<TransactionStore> transactionTask = mock(KeyedTransactionTask.class);
 
     private final ScheduledExecutorService scheduler = PTExecutors.newSingleThreadScheduledExecutor();
     private final ListeningExecutorService executionExecutor = MoreExecutors.listeningDecorator(scheduler);
 
+    private final DefaultWorkflow<TransactionStore> workflow =
+            DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
+
     @Test
     public void handlesExceptionsInUnderlyingTasks() {
         RuntimeException transactionException = new RuntimeException("boo");
         when(transactionTask.apply(eq(store), anyInt())).thenThrow(transactionException);
-
-        Workflow workflow =
-                DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
         assertThatThrownBy(workflow::run)
                 .hasMessage("Error when running workflow task")
                 .hasCause(transactionException);
     }
 
-    @Test
-    public void returnsUnderlyingWitnessedTransactions() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight)))
-                .containsExactly(twoToEight);
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(readOnlyAtFive)))
-                .containsExactly(readOnlyAtFive);
-    }
-
-    @Test
-    public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
-        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
-
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
-                .containsExactly(fourToSix, threeToSeven, twoToEight);
-    }
-
-    @Test
-    public void sortsReadOnlyTransactionsByStartTimestamp() {
-        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        WitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
-
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(
-                        ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
-                .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
-    }
-
-    @Test
-    public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
-
-        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        WitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
-
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(
-                        twoToEight, readOnlyAtNine, fourToSix, readOnlyAtFive, readOnlyAtThree, readOnlyAtSeven)))
-                .containsExactly(
-                        readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
-    }
-
     private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
         return new WorkflowConfiguration() {
             @Override
@@ -109,15 +57,4 @@ public int iterationCount() {
             }
         };
     }
-
-    private static WitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
-        return ImmutableWitnessedTransaction.builder().startTimestamp(start).build();
-    }
-
-    private static WitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
-        return ImmutableWitnessedTransaction.builder()
-                .startTimestamp(start)
-                .commitTimestamp(commit)
-                .build();
-    }
 }u}(jW (aab6c8e21d5584a8291807921d8d032d4786559dj eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowsTest.javaj addedj Kdj K j Kdj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j Xh  @@ -0,0 +1,100 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.security.SecureRandom;
+import java.util.Collection;
+import java.util.List;
+import java.util.stream.Collectors;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class RandomWorkflowsTest {
+    private static final String TABLE_NAME = "random.random";
+    private static final RandomWorkflowConfiguration CONFIGURATION = ImmutableRandomWorkflowConfiguration.builder()
+            .tableConfiguration(ImmutableTableConfiguration.builder()
+                    .tableName(TABLE_NAME)
+                    .isolationLevel(IsolationLevel.SERIALIZABLE)
+                    .build())
+            .iterationCount(1)
+            .build();
+
+    private final TransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+
+    @Mock
+    private SecureRandom random;
+
+    private Workflow workflow;
+
+    @Before
+    public void before() {
+        this.workflow = RandomWorkflows.create(
+                memoryStore,
+                CONFIGURATION,
+                MoreExecutors.listeningDecorator(PTExecutors.newSingleThreadExecutor()),
+                random);
+    }
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore())
+                .as("should return a read only transaction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void workflowRunsReadWritesDeletes() {
+        when(random.nextInt(anyInt())).thenReturn(1);
+        WorkflowHistory history = workflow.run();
+        List<WitnessedTransactionAction> actions = history.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(actions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+}u}(jW (ce49e27d10355fb6f5b71d88a206899b12b7f25bj xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javaj addedj K}j K j K}j https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,125 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Sets;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Collection;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class SingleBusyCellReadNoTouchWorkflowsTest {
+    private static final String TABLE_NAME = "busy.readnotouch.cell";
+    private static final int ITERATION_COUNT = 1_000;
+    private static final SingleBusyCellReadNoTouchWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow workflow = SingleBusyCellReadNoTouchWorkflows.create(
+            transactionStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)),
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)));
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void transactionsDoNotConflictExcessively() {
+        WorkflowHistory workflowHistory = workflow.run();
+        assertThat(workflowHistory.history()).hasSizeBetween(ITERATION_COUNT / 2, ITERATION_COUNT);
+    }
+
+    @Test
+    public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).allSatisfy(action -> assertThat(action)
+                .isInstanceOfSatisfying(WitnessedSingleCellTransactionAction.class, singleCellAction -> {
+                    assertThat(singleCellAction.table()).isEqualTo(TABLE_NAME);
+                    assertThat(singleCellAction.cell()).isEqualTo(SingleBusyCellReadNoTouchWorkflows.BUSY_CELL);
+                }));
+    }
+
+    @Test
+    public void targetCellIsReadModifiedAndDeleted() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+
+    @Test
+    public void readTransactionsDontDoWrites() {
+        WorkflowHistory workflowHistory = workflow.run();
+
+        Set<WitnessedTransaction> witnessedTransactionsWithReads = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream().anyMatch(WitnessedReadTransactionAction.class::isInstance))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> witnessedTransactionsWithWritesOrDeletes = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream()
+                        .anyMatch(action -> action instanceof WitnessedWriteTransactionAction
+                                || action instanceof WitnessedDeleteTransactionAction))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> transactionsWithReadsAndWritesOrDeletes =
+                Sets.intersection(witnessedTransactionsWithReads, witnessedTransactionsWithWritesOrDeletes);
+
+        assertThat(transactionsWithReadsAndWritesOrDeletes).isEmpty();
+    }
+}u}(jW (241e8471f3f2d7c765f6ff9e98e1c055938e3a50j matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowsTest.javaj addedj Kgj K j Kgj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,103 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Collection;
+import java.util.List;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class SingleBusyCellWorkflowsTest {
+    private static final String TABLE_NAME = "busy.cell";
+    private static final int ITERATION_COUNT = 1_000;
+    private static final SingleBusyCellWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow workflow = SingleBusyCellWorkflows.create(
+            transactionStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)),
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)));
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void transactionsDoNotConflictExcessively() {
+        WorkflowHistory workflowHistory = workflow.run();
+        assertThat(workflowHistory.history()).hasSizeBetween(ITERATION_COUNT / 2, ITERATION_COUNT);
+    }
+
+    @Test
+    public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedSingleCellTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .map(WitnessedSingleCellTransactionAction.class::cast)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.table().equals(TABLE_NAME));
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.cell().equals(SingleBusyCellWorkflows.BUSY_CELL));
+    }
+
+    @Test
+    public void targetCellIsReadModifiedAndDeleted() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+}u}(jW (a982645e9685b7e2b328546bb927b2c415ad29bfj latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj addedj MWj K j MWj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j XI  @@ -0,0 +1,343 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.invariant.CrossCellInconsistency;
+import com.palantir.atlasdb.workload.invariant.Invariant;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableFullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicReference;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class TransientRowsWorkflowsTest {
+    private static final int ITERATION_COUNT = 5;
+    private static final String TABLE_NAME = "transient.rows";
+    private static final TransientRowsWorkflowConfiguration CONFIGURATION =
+            ImmutableTransientRowsWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow transientRowsWorkflow = TransientRowsWorkflows.create(
+            transactionStore, CONFIGURATION, MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)));
+    private final Invariant<List<CrossCellInconsistency>> invariant =
+            TransientRowsWorkflows.getSummaryLogInvariantReporter(CONFIGURATION).invariant();
+
+    @Test
+    public void transactionStoreIsReadOnly() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void eachTransactionIsWitnessed() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        List<WitnessedTransaction> witnessedTransactions = history.history();
+        assertThat(witnessedTransactions).hasSize(ITERATION_COUNT);
+    }
+
+    @Test
+    public void firstTransactionWritesTwoCells() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        List<WitnessedTransaction> witnessedTransactions = history.history();
+        assertThat(witnessedTransactions.get(0).actions())
+                .hasSize(2)
+                .containsExactlyInAnyOrder(
+                        WitnessedWriteTransactionAction.of(
+                                TABLE_NAME,
+                                ImmutableWorkloadCell.of(0, TransientRowsWorkflows.COLUMN),
+                                TransientRowsWorkflows.VALUE),
+                        WitnessedWriteTransactionAction.of(
+                                TABLE_NAME,
+                                ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 0),
+                                TransientRowsWorkflows.VALUE));
+    }
+
+    @Test
+    public void subsequentTransactionsWriteThenReadThenDelete() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        List<WitnessedTransaction> witnessedTransactions = history.history();
+        for (int index = 1; index < ITERATION_COUNT; index++) {
+            assertThat(witnessedTransactions.get(index).actions()).hasSize(7).satisfies(actions -> {
+                assertThat(actions.subList(0, 2)).allMatch(WitnessedWriteTransactionAction.class::isInstance);
+                assertThat(actions.subList(2, 5)).allMatch(WitnessedReadTransactionAction.class::isInstance);
+                assertThat(actions.subList(5, 7)).allMatch(WitnessedDeleteTransactionAction.class::isInstance);
+            });
+        }
+    }
+
+    @Test
+    public void invariantDoesNotReportViolationsUnderNormalOperation() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        invariant.accept(transientRowsWorkflow.run(), reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        WorkflowHistory history = transientRowsWorkflow.run();
+        transactionStore.readWrite(txn -> txn.delete(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 1, 1)));
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .containsExactly(CrossCellInconsistency.builder()
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(ITERATION_COUNT - 1, TransientRowsWorkflows.COLUMN)),
+                                Optional.empty())
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(
+                                                TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 1)),
+                                Optional.of(0))
+                        .build());
+    }
+
+    @Test
+    public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        WorkflowHistory history = transientRowsWorkflow.run();
+        transactionStore.readWrite(txn -> txn.write(
+                TABLE_NAME,
+                ImmutableWorkloadCell.of(ITERATION_COUNT - 2, TransientRowsWorkflows.COLUMN),
+                TransientRowsWorkflows.VALUE));
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .containsExactly(CrossCellInconsistency.builder()
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(ITERATION_COUNT - 2, TransientRowsWorkflows.COLUMN)),
+                                Optional.of(0))
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(
+                                                TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 2)),
+                                Optional.empty())
+                        .build());
+    }
+
+    @Test
+    public void invariantReportsViolationsFromTransactionHistory() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        WorkflowHistory history = transientRowsWorkflow.run();
+        WorkflowHistory falseHistory = ImmutableWorkflowHistory.builder()
+                .transactionStore(history.transactionStore())
+                .history(history.history().stream()
+                        .map(witnessedTransaction -> ImmutableFullyWitnessedTransaction.builder()
+                                .actions(witnessedTransaction.actions().stream()
+                                        .map(TransientRowsWorkflowsTest::rewriteReadHistoryAsAlwaysInconsistent)
+                                        .collect(Collectors.toList()))
+                                .startTimestamp(witnessedTransaction.startTimestamp())
+                                .commitTimestamp(witnessedTransaction.commitTimestamp())
+                                .build())
+                        .collect(Collectors.toList()))
+                .build();
+        invariant.accept(falseHistory, reference::set);
+
+        assertThat(reference.get())
+                .hasSize(ITERATION_COUNT - 1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
+        WitnessedReadTransactionAction readWitness = WitnessedReadTransactionAction.of(
+                TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of the summary row")
+                .hasExactlyArgs(SafeArg.of("actions", ImmutableList.of(readWitness)));
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCorrespondingPrimaryRow() {
+        List<WitnessedTransactionAction> actions = ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of a corresponding normal row")
+                .hasExactlyArgs(SafeArg.of("actions", actions));
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothEmpty() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions = getReadWitnessesForSingleTransaction(
+                2, Optional.of(TransientRowsWorkflows.VALUE), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsPresentAndPrimaryIsAbsent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.of(TransientRowsWorkflows.VALUE), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsAbsentAndPrimaryIsPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    private ImmutableWorkflowHistory getWorkflowHistory(List<WitnessedTransactionAction> actions) {
+        return ImmutableWorkflowHistory.builder()
+                .transactionStore(transactionStore)
+                .history(ImmutableList.of(ImmutableFullyWitnessedTransaction.builder()
+                        .addAllActions(actions)
+                        .startTimestamp(0L)
+                        .commitTimestamp(1L)
+                        .build()))
+                .build();
+    }
+
+    private static List<WitnessedTransactionAction> getReadWitnessesForSingleTransaction(
+            int columnIndex, Optional<Integer> summaryValue, Optional<Integer> primaryValue) {
+        return ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, columnIndex),
+                        summaryValue),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(columnIndex, TransientRowsWorkflows.COLUMN),
+                        primaryValue));
+    }
+
+    private static void inconsistencyInvolvesPairOfPrimaryAndSummaryCells(CrossCellInconsistency inconsistency) {
+        Map<TableAndWorkloadCell, Optional<Integer>> readValues = inconsistency.inconsistentValues();
+        TableAndWorkloadCell summaryCell = readValues.keySet().stream()
+                .filter(tableAndWorkloadCell -> tableAndWorkloadCell.cell().key() == TransientRowsWorkflows.SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of the summary row", SafeArg.of("readValues", readValues)));
+        TableAndWorkloadCell primaryCell = getPrimaryCellForSummaryCell(summaryCell);
+
+        assertThat(readValues.keySet()).containsExactlyInAnyOrder(summaryCell, primaryCell);
+        assertThat(readValues.values())
+                .containsExactlyInAnyOrder(Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+    }
+
+    // This workflow uses a single table, where the summary row's columns correspond to rows with primary values.
+    private static TableAndWorkloadCell getPrimaryCellForSummaryCell(TableAndWorkloadCell summaryCell) {
+        return TableAndWorkloadCell.of(
+                summaryCell.tableName(),
+                ImmutableWorkloadCell.of(summaryCell.cell().column(), TransientRowsWorkflows.COLUMN));
+    }
+
+    private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(
+            WitnessedTransactionAction action) {
+        if (action instanceof WitnessedReadTransactionAction) {
+            WitnessedReadTransactionAction readAction = (WitnessedReadTransactionAction) action;
+            if (readAction.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
+                return WitnessedReadTransactionAction.of(readAction.table(), readAction.cell(), Optional.empty());
+            } else {
+                return WitnessedReadTransactionAction.of(
+                        readAction.table(), readAction.cell(), Optional.of(TransientRowsWorkflows.VALUE));
+            }
+        } else {
+            return action;
+        }
+    }
+
+    private static final class OnceSettableAtomicReference<T> {
+        private final AtomicReference<T> delegate;
+
+        private OnceSettableAtomicReference() {
+            this.delegate = new AtomicReference<>();
+        }
+
+        private T get() {
+            return Preconditions.checkNotNull(delegate.get(), "Underlying atomic reference has not been set!");
+        }
+
+        private void set(T value) {
+            Preconditions.checkNotNull(value, "Expecting values set to a once-settable atomic reference to be nonnull");
+            if (!delegate.compareAndSet(null, value)) {
+                throw new SafeIllegalStateException("Value already set");
+            }
+        }
+    }
+}u      }(jW (fe0267e6f697a967a6133f2554009d8a0be04d4cj katlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtilsTest.javaj addedj KRj K j KRj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X
  @@ -0,0 +1,82 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.Mockito.when;
+
+import java.security.SecureRandom;
+import java.util.Map;
+import java.util.Optional;
+import one.util.streamex.EntryStream;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class BankBalanceUtilsTest {
+
+    private static final Map<Integer, Optional<Integer>> VALID_BALANCES = Map.of(0, Optional.of(1), 1, Optional.of(1));
+
+    @Mock
+    private SecureRandom random;
+
+    @Test
+    public void validateOrGenerateBalancesReturnsEmptyWhenOnlyOneAccountMissing() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(Map.of(0, Optional.of(1), 1, Optional.empty()), 2, 1))
+                .isEmpty();
+    }
+
+    @Test
+    public void validateOrGenerateBalancesGeneratesWhenAllEmpty() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(Map.of(0, Optional.empty(), 1, Optional.empty()), 2, 1))
+                .contains(Map.of(0, 1, 1, 1));
+    }
+
+    @Test
+    public void validateOrGenerateBalancesEmptyWhenSumOfBalancesDoNotMatchTotal() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(VALID_BALANCES, 2, 3))
+                .isEmpty();
+    }
+
+    @Test
+    public void validateOrGenerateBalancesReturnsBalancesWhenTotalsMatch() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(VALID_BALANCES, 2, 1))
+                .contains(
+                        EntryStream.of(VALID_BALANCES).mapValues(Optional::get).toMap());
+    }
+
+    @Test
+    public void performTransfersReturnsBalancesWithCorrectSum() {
+        when(random.nextInt(anyInt())).thenReturn(0, 1);
+        Map<Integer, Integer> balances = Map.of(0, 1, 1, 1);
+        Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(Map.of(0, 0, 1, 2));
+        assertThat(newBalances.values().stream().mapToInt(Integer::intValue).sum())
+                .isEqualTo(2);
+    }
+
+    @Test
+    public void performsTransfersOnlyIfValueWouldNotBeBelowZero() {
+        when(random.nextInt(anyInt())).thenReturn(0, 1);
+        Map<Integer, Integer> balances = Map.of(0, 0, 1, 2);
+        Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(balances);
+    }
+}u}(jW (fc68dc8666083ad7dff19f7cab2825390f18a38aj oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowsTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X  @@ -0,0 +1,129 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.atlasdb.workload.workflow.ImmutableTableConfiguration;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.Test;
+
+public final class BankBalanceWorkflowsTest {
+    private static final String TABLE_NAME = "bank.bank";
+    private static final BankBalanceWorkflowConfiguration CONFIGURATION =
+            ImmutableBankBalanceWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SNAPSHOT)
+                            .build())
+                    .iterationCount(1)
+                    .build();
+
+    private final AtomicBoolean skipRunning = new AtomicBoolean();
+
+    private final InteractiveTransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SNAPSHOT)));
+
+    private final Workflow workflow = BankBalanceWorkflows.create(
+            memoryStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)),
+            skipRunning);
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore())
+                .as("should return a read only transaction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void bankWorkflowContainsInitialReadsForBalances() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.numberOfAccounts())
+                .boxed()
+                .map(index -> WitnessedReadTransactionAction.of(
+                        TABLE_NAME, BankBalanceWorkflows.getCellForAccount(index), Optional.empty()))
+                .collect(Collectors.toList());
+        assertThat(actions).containsAll(initialReadActions);
+    }
+
+    @Test
+    public void bankWorkflowContainsInitialWritesForBalances() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WorkloadCell> actualWrittenCells = actions.stream()
+                .filter(WitnessedWriteTransactionAction.class::isInstance)
+                .map(WitnessedWriteTransactionAction.class::cast)
+                .map(WitnessedWriteTransactionAction::cell)
+                .collect(Collectors.toList());
+
+        List<WorkloadCell> expectedWrittenCells = IntStream.range(0, CONFIGURATION.numberOfAccounts())
+                .boxed()
+                .map(BankBalanceWorkflows::getCellForAccount)
+                .collect(Collectors.toList());
+
+        assertThat(actualWrittenCells).containsAll(expectedWrittenCells);
+    }
+
+    @Test
+    public void bankWorkflowSetsSkipRunningToTrueWhenInvalidBalanceSet() {
+        assertThat(skipRunning).isFalse();
+        memoryStore.readWrite(txn -> txn.write(TABLE_NAME, BankBalanceWorkflows.getCellForAccount(0), 1));
+        workflow.run();
+        assertThat(skipRunning).isTrue();
+    }
+
+    @Test
+    public void bankWorkflowDoesNotWitnessTransactionWhenSkipRunningSetToTrue() {
+        skipRunning.set(true);
+        assertThat(workflow.run().history()).isEmpty();
+    }
+}u}(jW (7ae440730798415742814c38fb59d0707273036ej datlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingGraphTest.javaj addedj Kjj K j Kjj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j Xf  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.google.common.collect.ImmutableMap;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Map;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class RingGraphTest {
+
+    private static final Map<Integer, Integer> VALID_RING = ImmutableMap.of(0, 2, 1, 0, 2, 1);
+
+    @Test
+    public void fromPartialGeneratesRandomRingWhenAllKeysEmpty() {
+        Map<Integer, Optional<Integer>> emptyEdges = ImmutableMap.of(1, Optional.empty(), 2, Optional.empty());
+        assertThatCode(() -> RingGraph.fromPartial(emptyEdges)).doesNotThrowAnyException();
+    }
+
+    @Test
+    public void fromPartialThrowsWhenSomeEntriesAreEmpty() {
+        Map<Integer, Optional<Integer>> partiallyEmptyRing = ImmutableMap.of(0, Optional.of(1), 1, Optional.empty());
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.fromPartial(partiallyEmptyRing))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Graph contains missing entries, thus cannot be made into a ring.")
+                .hasExactlyArgs(SafeArg.of("ring", partiallyEmptyRing));
+    }
+
+    @Test
+    public void fromThrowsMissingEntriesWhenNodeReferencedDoesNotExist() {
+        Map<Integer, Integer> missingNodesRing = ImmutableMap.of(0, 2, 1, 0);
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(missingNodesRing))
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.MISSING_ENTRIES),
+                        SafeArg.of("ring", missingNodesRing));
+    }
+
+    @Test
+    public void fromThrowsCycleExceptionWhenUnableToReachEveryNode() {
+        Map<Integer, Integer> incompleteRing = ImmutableMap.of(0, 1, 1, 1, 2, 0);
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(incompleteRing))
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.EARLY_CYCLE),
+                        SafeArg.of("ring", incompleteRing));
+    }
+
+    @Test
+    public void fromThrowsCycleExceptionWhenEntryNodeNotRevisited() {
+        Map<Integer, Integer> incompleteRing = ImmutableMap.of(0, 1, 1, 1);
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(incompleteRing))
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.EARLY_CYCLE),
+                        SafeArg.of("ring", incompleteRing));
+    }
+
+    @Test
+    public void generateNewRingCreatesDifferentRing() {
+        RingGraph ringGraph = RingGraph.create(8);
+        boolean uniqueAtLeastOnce = false;
+        for (int iteration = 0; iteration < 10; iteration++) {
+            if (!ringGraph.generateNewRing().asMap().equals(ringGraph.asMap())) {
+                uniqueAtLeastOnce = true;
+                break;
+            }
+        }
+        assertThat(uniqueAtLeastOnce)
+                .as("Check ring generation multiple times as we could randomly generate an identical ring")
+                .isTrue();
+    }
+
+    @Test
+    public void generateNewRingReturnsValidRing() {
+        RingGraph ring = RingGraph.create(8);
+        for (int count = 0; count < 1000; count++) {
+            assertThatCode(() -> RingGraph.from(ring.generateNewRing().asMap())).doesNotThrowAnyException();
+        }
+    }
+
+    @Test
+    public void asMapConvertsCorrectly() {
+        assertThat(RingGraph.from(VALID_RING).asMap()).containsExactlyInAnyOrderEntriesOf(VALID_RING);
+    }
+}u}(jW (b76eb98bf9ca3cc3502b229247cd0eb65cd5a3cej hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowsTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.java?ref=86d91aa59465ac0960f8f329fb2087653004b555j X"  @@ -0,0 +1,129 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.atlasdb.workload.workflow.ImmutableTableConfiguration;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.Test;
+
+public class RingWorkflowsTest {
+
+    private static final String TABLE_NAME = "ring.ring";
+    private static final RingWorkflowConfiguration CONFIGURATION = ImmutableRingWorkflowConfiguration.builder()
+            .tableConfiguration(ImmutableTableConfiguration.builder()
+                    .tableName(TABLE_NAME)
+                    .isolationLevel(IsolationLevel.SNAPSHOT)
+                    .build())
+            .iterationCount(1)
+            .build();
+
+    private final InteractiveTransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SNAPSHOT)));
+
+    private final AtomicBoolean skipRunning = new AtomicBoolean(false);
+
+    private final Workflow workflow = RingWorkflows.create(
+            memoryStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)),
+            skipRunning);
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore())
+                .as("should return a read only transaction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void ringWorkflowContainsInitialReadsForRing() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.ringSize())
+                .boxed()
+                .map(index ->
+                        WitnessedReadTransactionAction.of(TABLE_NAME, RingWorkflows.cell(index), Optional.empty()))
+                .collect(Collectors.toList());
+        assertThat(actions).containsAll(initialReadActions);
+    }
+
+    @Test
+    public void ringWorkflowContainsInitialWritesForRing() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WorkloadCell> actualWrittenCells = actions.stream()
+                .filter(WitnessedWriteTransactionAction.class::isInstance)
+                .map(WitnessedWriteTransactionAction.class::cast)
+                .map(WitnessedWriteTransactionAction::cell)
+                .collect(Collectors.toList());
+
+        List<WorkloadCell> expectedWrittenCells = IntStream.range(0, CONFIGURATION.ringSize())
+                .boxed()
+                .map(RingWorkflows::cell)
+                .collect(Collectors.toList());
+
+        assertThat(actualWrittenCells).containsAll(expectedWrittenCells);
+    }
+
+    @Test
+    public void ringWorkflowSetsSkipRunningToTrueWhenInvalidRingPresent() {
+        assertThat(skipRunning).isFalse();
+        memoryStore.readWrite(txn -> txn.write(TABLE_NAME, RingWorkflows.cell(0), 99));
+        workflow.run();
+        assertThat(skipRunning).isTrue();
+    }
+
+    @Test
+    public void ringWorkflowDoesNotWitnessTransactionWhenSkipRunningSetToTrue() {
+        skipRunning.set(true);
+        assertThat(workflow.run().history()).isEmpty();
+    }
+}u}(jW (f6f2730b90c6839be77978b20ed2eca31f8a984dj build.gradlej modifiedj Kj Kj Kj ^https://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/build.gradlej ]https://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/build.gradlej phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=86d91aa59465ac0960f8f329fb2087653004b555j XE  @@ -7,20 +7,20 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.0'
-        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.2.0'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.4'
+        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.3.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:5.0.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.38.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.39.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
-        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'
+        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
-        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'
+        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.3'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
         classpath 'gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1'
         classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'
@@ -113,8 +113,7 @@ allprojects {
                 'Slf4jLogsafeArgs',
                 'StaticAssignmentInConstructor',
                 'StrictUnusedVariable'
-        options.errorprone.error 'DefaultLocale',
-                'SafeLoggingPropagation'
+        options.errorprone.error 'SafeLoggingPropagation'
     }
 }
 u}(jW (dc8ccab7fb0c3ad8d14f7566ab89d660c8508c47j  changelog/0.835.0/pr-6498.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/changelog%2F0.835.0%2Fpr-6498.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/changelog%2F0.835.0%2Fpr-6498.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.835.0%2Fpr-6498.v2.yml?ref=86d91aa59465ac0960f8f329fb2087653004b555j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Choose optimal IOT compression based on table params
+  links:
+  - https://github.com/palantir/atlasdb/pull/6498u}(jW (fdaa0f14c0403bcf95c1cdd5c0f860c959c67c95j  changelog/0.835.0/pr-6508.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/changelog%2F0.835.0%2Fpr-6508.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/changelog%2F0.835.0%2Fpr-6508.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.835.0%2Fpr-6508.v2.yml?ref=86d91aa59465ac0960f8f329fb2087653004b555j @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: DB queries to Oracle/Postgres now use bind variables for rownum/limit
+    terms.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6508u}(jW (1d48df051a7627207eae8887272331c4921a8011j  changelog/0.836.0/pr-6516.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/changelog%2F0.836.0%2Fpr-6516.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/changelog%2F0.836.0%2Fpr-6516.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.836.0%2Fpr-6516.v2.yml?ref=86d91aa59465ac0960f8f329fb2087653004b555j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: AtlasDB no longer registers the `/sweep` endpoints.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6516u}(jW (7cd0781ff20be0bdee6ed7080da226fe65bc85c7j  changelog/0.837.0/pr-6527.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/changelog%2F0.837.0%2Fpr-6527.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/changelog%2F0.837.0%2Fpr-6527.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.837.0%2Fpr-6527.v2.yml?ref=86d91aa59465ac0960f8f329fb2087653004b555j @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Use debian images for workload-server and timelock-server for integration
+    tests
+  links:
+  - https://github.com/palantir/atlasdb/pull/6527u}(jW (f78ad2562cc65a8da82f8d8fc92f20368d1a9981j  changelog/0.838.0/pr-6518.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/86d91aa59465ac0960f8f329fb2087653004b555/changelog%2F0.838.0%2Fpr-6518.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/86d91aa59465ac0960f8f329fb2087653004b555/changelog%2F0.838.0%2Fpr-6518.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.838.0%2Fpr-6518.v2.yml?ref=86d91aa59465ac0960f8f329fb2087653004b555j X+  @@ -0,0 +1,7 @@
+type: improvement
+improvement:
+  description: We no longer use Jersey sub-resource locators for user-facing timestamp,
+    timestamp management and lock v1 endpoints (except for the asynchronous TimeLock
+    service).
+  links:
+  - https://github.com/palantir/atlasdb/pull/6518ueu(34f3fd3569190147d5237116eb3178f585b61771}(sha(34f3fd3569190147d5237116eb3178f585b61771node_idEC_kwDOAjP5fdoAKDM0ZjNmZDM1NjkxOTAxNDdkNTIzNzExNmViMzE3OGY1ODViNjE3NzEcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-06-26T03:45:04Zu	committer}(j6 David Schlosnaglej8 davids@palantir.comj: 2023-06-26T03:45:04ZumessageCell hashCode read/modify/writetree}(j. (024da8d6edf7071e8e2c3b0f1d943017cf095c4burl`https://api.github.com/repos/palantir/atlasdb/git/trees/024da8d6edf7071e8e2c3b0f1d943017cf095c4bujF bhttps://api.github.com/repos/palantir/atlasdb/git/commits/34f3fd3569190147d5237116eb3178f585b61771
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmSZCcAACgkQR9hsJ74Q
0l+i6Af+NwQxrQVh8onVsYZy8NHEev8wzq7DvKgyB7JqC798vdy3wjojJvpxvTbq
MY/C2Rc3RLQzs45D9oelW5Cw7i2a94Nwi4MYFgPo85ExAtNmHTQRg/rDPDwSZXn3
R3/KvX8tOjMehIeZQhO/8ruVoGOyu7IqAT3L7ZHMDpZZTES8D+QnjweHA7CMR8Pc
2ovfFL3qPjDW4faINAX2JmzikmX+DCqKUqk/9A7ltm22i9ijHcf6cZepSeFY56oL
G3ornZalyMhGm0mZddfJfq+qPeIrV11+8iAEE+dAiRuJkN8o98h7/aT7F2BZV+Df
m20Q1KFJjSBpf/hDj8DVaSivL575sg==
=dnkY
-----END PGP SIGNATURE-----payloadX  tree 024da8d6edf7071e8e2c3b0f1d943017cf095c4b
parent 56a599123896e0136f81a3c59a8a5a6b02b3d14d
author David Schlosnagle <davids@palantir.com> 1687751104 -0400
committer David Schlosnagle <davids@palantir.com> 1687751104 -0400

Cell hashCode read/modify/write
uujF ^https://api.github.com/repos/palantir/atlasdb/commits/34f3fd3569190147d5237116eb3178f585b61771html_urlShttps://github.com/palantir/atlasdb/commit/34f3fd3569190147d5237116eb3178f585b61771comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/34f3fd3569190147d5237116eb3178f585b61771/commentsj4 }(loginschlosnaidMBj0 MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jF %https://api.github.com/users/schlosnajT https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj< }(jY schlosnaj[ MBj0 MDQ6VXNlcjU0NTk0j] 1https://avatars.githubusercontent.com/u/54594?v=4j_ h5jF %https://api.github.com/users/schlosnajT https://github.com/schlosnajb /https://api.github.com/users/schlosna/followersjd <https://api.github.com/users/schlosna/following{/other_user}jf 5https://api.github.com/users/schlosna/gists{/gist_id}jh <https://api.github.com/users/schlosna/starred{/owner}{/repo}jj 3https://api.github.com/users/schlosna/subscriptionsjl *https://api.github.com/users/schlosna/orgsjn +https://api.github.com/users/schlosna/reposjp 6https://api.github.com/users/schlosna/events{/privacy}jr 5https://api.github.com/users/schlosna/received_eventsjt Userjv uparents]}(j. (56a599123896e0136f81a3c59a8a5a6b02b3d14djF ^https://api.github.com/repos/palantir/atlasdb/commits/56a599123896e0136f81a3c59a8a5a6b02b3d14djT Shttps://github.com/palantir/atlasdb/commit/56a599123896e0136f81a3c59a8a5a6b02b3d14duastats}(totalK	additionsK		deletionsKufiles](}(j. (64ceb8b5e885dd8fcf5ecc5cbb31964147a5e35dfilenameEatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/Cell.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/34f3fd3569190147d5237116eb3178f585b61771/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCell.javaraw_urlhttps://github.com/palantir/atlasdb/raw/34f3fd3569190147d5237116eb3178f585b61771/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCell.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCell.java?ref=34f3fd3569190147d5237116eb3178f585b61771patchX  @@ -137,6 +137,9 @@ public boolean equals(Object obj) {
             return false;
         }
         Cell other = (Cell) obj;
+        if (this.hashCode != 0 && other.hashCode != 0 && this.hashCode != other.hashCode) {
+            return false;
+        }
         return Arrays.equals(rowName, other.rowName) && Arrays.equals(columnName, other.columnName);
     }
 
@@ -147,15 +150,17 @@ public int hashCode() {
          * accessed via hash collections, but computation can be expensive, and
          * allow for benign data races.
          */
-        if (hashCode == 0) {
+        int hash = this.hashCode;
+        if (hash == 0) {
             /*
              * This hashCode() implementation has a rather unfortunate case where it is always 0 if the row name and
              * the column name match. We did not want to change it to keep backwards compatibility.
              * See {@link CellReference#goodHash()}
              */
-            hashCode = Arrays.hashCode(rowName) ^ Arrays.hashCode(columnName);
+            hash = Arrays.hashCode(rowName) ^ Arrays.hashCode(columnName);
+            this.hashCode = hash;
         }
-        return hashCode;
+        return hash;
     }
 
     @Overrideu}(j. (b258440488d99978b8ead154e3fe2ac76efcff9fj Fatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/Value.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/34f3fd3569190147d5237116eb3178f585b61771/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FValue.javaj https://github.com/palantir/atlasdb/raw/34f3fd3569190147d5237116eb3178f585b61771/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FValue.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FValue.java?ref=34f3fd3569190147d5237116eb3178f585b61771j X]  @@ -18,7 +18,6 @@
 import com.fasterxml.jackson.annotation.JsonCreator;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.google.common.base.Function;
-import com.google.common.base.MoreObjects;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.util.Measurable;
 import com.palantir.logsafe.Preconditions;
@@ -38,7 +37,7 @@ public final class Value implements Serializable, Measurable {
 
     @JsonCreator
     public static Value create(@JsonProperty("contents") byte[] contents, @JsonProperty("timestamp") long timestamp) {
-        return new Value(MoreObjects.firstNonNull(contents, PtBytes.EMPTY_BYTE_ARRAY), timestamp);
+        return new Value(Objects.requireNonNullElse(contents, PtBytes.EMPTY_BYTE_ARRAY), timestamp);
     }
 
     public static Value createWithCopyOfData(byte[] contents, long timestamp) {ueu(647b44abf9724111ca3d6e4e36be6c61ee82d1af}(sha(647b44abf9724111ca3d6e4e36be6c61ee82d1afnode_idEC_kwDOAjP5fdoAKDY0N2I0NGFiZjk3MjQxMTFjYTNkNmU0ZTM2YmU2YzYxZWU4MmQxYWYcommit}(author}(name	Tom Papkeemail+43675490+Toemmsche@users.noreply.github.comdate2023-06-29T15:38:16Zu	committer}(j GitHubj noreply@github.comj 2023-06-29T15:38:16Zumessagev[LWMeta] Create LockRequestMetadata and ChangeMetadata (#6644)

[LWMeta] Create LockRequestMetadata and ChangeMetadatatree}(j (3d79ffb583d36035fef8b9f346b0c179ab6fc912url`https://api.github.com/repos/palantir/atlasdb/git/trees/3d79ffb583d36035fef8b9f346b0c179ab6fc912uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/647b44abf9724111ca3d6e4e36be6c61ee82d1af
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJknaVoCRBK7hj4Ov3rIwAAXkoIAJ1+vIyuyluajnN/5p9rmPyt
jHSjgyrRyE05fXZ9k9YN23Y+F+aFPoLmK2oiAsNgGiJ2Q8Vo2yitJjdGrLguhoej
5IhinSeMj3zWl4c/hbcuoB5Os0QtD78t7fTwpsdL84OzDGxKDPS5FqZaqORw2KGz
qWLWleZj10j0H0Z6NUaKS/bfR/m3NX9ErIjAy2PxIj2Xfevg9DowxTOVa4a33C5Z
TnjvCAyjirXbS0voeAOtHhKtYfGvf3w7ADEjFyvBLeDKEj2V4yQDd4Oy63PyPyYR
05+WiTrvK7VSHsPiQsli9q8ZmcOkiEVfc+eJU69PcLk2NF4QUjek+tsUqgetydA=
=pM18
-----END PGP SIGNATURE-----
payloadX]  tree 3d79ffb583d36035fef8b9f346b0c179ab6fc912
parent 94244ba59e6dcc311a313293b7fc58f6420e7b9b
author Tom Papke <43675490+Toemmsche@users.noreply.github.com> 1688053096 +0200
committer GitHub <noreply@github.com> 1688053096 +0000

[LWMeta] Create LockRequestMetadata and ChangeMetadata (#6644)

[LWMeta] Create LockRequestMetadata and ChangeMetadata
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/647b44abf9724111ca3d6e4e36be6c61ee82d1afhtml_urlShttps://github.com/palantir/atlasdb/commit/647b44abf9724111ca3d6e4e36be6c61ee82d1afcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/647b44abf9724111ca3d6e4e36be6c61ee82d1af/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j (94244ba59e6dcc311a313293b7fc58f6420e7b9bj ^https://api.github.com/repos/palantir/atlasdb/commits/94244ba59e6dcc311a313293b7fc58f6420e7b9bj Shttps://github.com/palantir/atlasdb/commit/94244ba59e6dcc311a313293b7fc58f6420e7b9buastats}(totalK	additionsK	deletionsK ufiles](}(j (d7951f643174772a855f4d861eeddb8fc504150afilename$changelog/@unreleased/pr-6644.v2.ymlstatusaddedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/647b44abf9724111ca3d6e4e36be6c61ee82d1af/changelog%2F%40unreleased%2Fpr-6644.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/647b44abf9724111ca3d6e4e36be6c61ee82d1af/changelog%2F%40unreleased%2Fpr-6644.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6644.v2.yml?ref=647b44abf9724111ca3d6e4e36be6c61ee82d1afpatch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Create LockRequestMetadata and ChangeMetadata
+  links:
+  - https://github.com/palantir/atlasdb/pull/6644u}(j (4305d649486aabcf97ca07976c286654204cf825j Jlock-api-objects/src/main/java/com/palantir/lock/watch/ChangeMetadata.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/647b44abf9724111ca3d6e4e36be6c61ee82d1af/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javaj https://github.com/palantir/atlasdb/raw/647b44abf9724111ca3d6e4e36be6c61ee82d1af/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.java?ref=647b44abf9724111ca3d6e4e36be6c61ee82d1afj  X  @@ -0,0 +1,137 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.palantir.lock.watch.ChangeMetadata.Created;
+import com.palantir.lock.watch.ChangeMetadata.Deleted;
+import com.palantir.lock.watch.ChangeMetadata.Unchanged;
+import com.palantir.lock.watch.ChangeMetadata.Updated;
+import org.immutables.value.Value;
+import org.immutables.value.Value.Immutable;
+
+/**
+ * The subtypes of this class can be used to document CRUD-like operations that were applied to a value.
+ * However, the READ case is not accounted for as no locks are taken out for reads.
+ * Every instance should be associated with a {@link com.palantir.lock.LockDescriptor}.
+ * It is up to the users of metadata to know the type of value it refers to
+ * and how to interpret the different subtypes.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
+@JsonSubTypes({
+    @JsonSubTypes.Type(value = Unchanged.class, name = Unchanged.TYPE),
+    @JsonSubTypes.Type(value = Updated.class, name = Updated.TYPE),
+    @JsonSubTypes.Type(value = Deleted.class, name = Deleted.TYPE),
+    @JsonSubTypes.Type(value = Created.class, name = Created.TYPE),
+})
+public interface ChangeMetadata {
+    <T> T accept(Visitor<T> visitor);
+
+    static Unchanged unchanged() {
+        return ImmutableUnchanged.builder().build();
+    }
+
+    static Updated updated(byte[] oldValue, byte[] newValue) {
+        return ImmutableUpdated.of(oldValue, newValue);
+    }
+
+    static Deleted deleted(byte[] oldValue) {
+        return ImmutableDeleted.of(oldValue);
+    }
+
+    static Created created(byte[] newValue) {
+        return ImmutableCreated.of(newValue);
+    }
+
+    interface Visitor<T> {
+        T visit(Unchanged unchanged);
+
+        T visit(Updated updated);
+
+        T visit(Deleted deleted);
+
+        T visit(Created created);
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableUnchanged.class)
+    @JsonDeserialize(as = ImmutableUnchanged.class)
+    @JsonTypeName(Unchanged.TYPE)
+    interface Unchanged extends ChangeMetadata {
+        String TYPE = "unchanged";
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableUpdated.class)
+    @JsonDeserialize(as = ImmutableUpdated.class)
+    @JsonTypeName(Updated.TYPE)
+    interface Updated extends ChangeMetadata {
+        String TYPE = "updated";
+
+        @Value.Parameter
+        byte[] oldValue();
+
+        @Value.Parameter
+        byte[] newValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableDeleted.class)
+    @JsonDeserialize(as = ImmutableDeleted.class)
+    @JsonTypeName(Deleted.TYPE)
+    interface Deleted extends ChangeMetadata {
+        String TYPE = "deleted";
+
+        @Value.Parameter
+        byte[] oldValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableCreated.class)
+    @JsonDeserialize(as = ImmutableCreated.class)
+    @JsonTypeName(Created.TYPE)
+    interface Created extends ChangeMetadata {
+        String TYPE = "created";
+
+        @Value.Parameter
+        byte[] newValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+}u}(j (088111c134834bc6053181b1f6c0668aea7e1639j Olock-api-objects/src/main/java/com/palantir/lock/watch/LockRequestMetadata.javaj addedj K!j K j K!j https://github.com/palantir/atlasdb/blob/647b44abf9724111ca3d6e4e36be6c61ee82d1af/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj https://github.com/palantir/atlasdb/raw/647b44abf9724111ca3d6e4e36be6c61ee82d1af/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.java?ref=647b44abf9724111ca3d6e4e36be6c61ee82d1afj  X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import com.palantir.lock.LockDescriptor;
+import com.palantir.logsafe.Unsafe;
+import java.util.Map;
+import org.immutables.value.Value;
+
+/**
+ * Metadata attached to a lock request and to any {@link LockEvent} created as a result of that request.
+ * Ideally, this class is not serialized as-is to JSON due to the repetition of {@link LockDescriptor} values
+ * in {@link LockRequestMetadata#lockDescriptorToChangeMetadata()} and the parent object.
+ */
+@Unsafe
+@Value.Immutable
+public interface LockRequestMetadata {
+    Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata();
+}ueu(d5de69ef499472ae6cfca5d6ec172a9129e15231}(sha(d5de69ef499472ae6cfca5d6ec172a9129e15231node_idEC_kwDOAjP5fdoAKGQ1ZGU2OWVmNDk5NDcyYWU2Y2ZjYTVkNmVjMTcyYTkxMjllMTUyMzEcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-05-19T15:09:31Zu	committer}(j< svc-autoreleasej> -pd-foundry-infrastructure-notify@palantir.comj@ 2023-05-19T15:09:31ZumessageAutorelease 0.857.0

[skip ci]tree}(j4 (b7bb6c205b7c28716b813f2d5b5b661f9db96148url`https://api.github.com/repos/palantir/atlasdb/git/trees/b7bb6c205b7c28716b813f2d5b5b661f9db96148ujL bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d5de69ef499472ae6cfca5d6ec172a9129e15231
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRnkTEACgkQhbrR8ip7mDDMUQD/fjV/r02b4dgJlTdVVDttP/ek
CBfczHtC6EGvc+VEaxMBAMNj0dTIWryDw6g2FyqYBnWiUQA3QNquM3HyLL7/WfjL
=T+5b
-----END PGP SIGNATURE-----
payloadX0  tree b7bb6c205b7c28716b813f2d5b5b661f9db96148
parent 6d014a5f21edd6ca9a7de56b98f94e4875dfa077
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684508971 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684508971 +0000

Autorelease 0.857.0

[skip ci]uujL ^https://api.github.com/repos/palantir/atlasdb/commits/d5de69ef499472ae6cfca5d6ec172a9129e15231html_urlShttps://github.com/palantir/atlasdb/commit/d5de69ef499472ae6cfca5d6ec172a9129e15231comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d5de69ef499472ae6cfca5d6ec172a9129e15231/commentsj: }(loginsvc-autoreleaseidJ(j6 MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5jL ,https://api.github.com/users/svc-autoreleasejZ "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminujB }(j_ svc-autoreleaseja J(j6 MDQ6VXNlcjUxNzE4MzQ2jc 4https://avatars.githubusercontent.com/u/51718346?v=4je h5jL ,https://api.github.com/users/svc-autoreleasejZ "https://github.com/svc-autoreleasejh 6https://api.github.com/users/svc-autorelease/followersjj Chttps://api.github.com/users/svc-autorelease/following{/other_user}jl <https://api.github.com/users/svc-autorelease/gists{/gist_id}jn Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jp :https://api.github.com/users/svc-autorelease/subscriptionsjr 1https://api.github.com/users/svc-autorelease/orgsjt 2https://api.github.com/users/svc-autorelease/reposjv =https://api.github.com/users/svc-autorelease/events{/privacy}jx <https://api.github.com/users/svc-autorelease/received_eventsjz Userj| uparents]}(j4 (6d014a5f21edd6ca9a7de56b98f94e4875dfa077jL ^https://api.github.com/repos/palantir/atlasdb/commits/6d014a5f21edd6ca9a7de56b98f94e4875dfa077jZ Shttps://github.com/palantir/atlasdb/commit/6d014a5f21edd6ca9a7de56b98f94e4875dfa077uastats}(totalK 	additionsK 	deletionsK ufiles]}(j4 (91d691ab16f5b7a0ca12fc7a603e315687a4ed27filename changelog/0.857.0/pr-6564.v2.ymlstatusrenamedj K j K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/d5de69ef499472ae6cfca5d6ec172a9129e15231/changelog%2F0.857.0%2Fpr-6564.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/d5de69ef499472ae6cfca5d6ec172a9129e15231/changelog%2F0.857.0%2Fpr-6564.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.857.0%2Fpr-6564.v2.yml?ref=d5de69ef499472ae6cfca5d6ec172a9129e15231previous_filename$changelog/@unreleased/pr-6564.v2.ymluau(b06315ff7b94241e882ea8f765038986038efb18}(sha(b06315ff7b94241e882ea8f765038986038efb18node_idEC_kwDOAjP5fdoAKGIwNjMxNWZmN2I5NDI0MWU4ODJlYThmNzY1MDM4OTg2MDM4ZWZiMTgcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-14T10:06:04Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-06-14T10:06:04ZumessageRemove entrystreamtree}(j (74bcc02ffe025892082de514d173259eb20fe256url`https://api.github.com/repos/palantir/atlasdb/git/trees/74bcc02ffe025892082de514d173259eb20fe256uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b06315ff7b94241e882ea8f765038986038efb18
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSJkQwACgkQmF9s0kaF
Iw3QVwf9GK0XA7DjSdUdHj+dh6UFcssnNRUa8UbR4VxL9KNDGeS9G9dxFD0YOXuv
7HjMYIbb4XwiJo2em7G3Tm5xshFwaFA78qc/TY7Z3BnlI4BLo6F8NaAaqSF2Ofmp
39WVFd854x0+12CeIa6teVrFtkS+JovJfIGZgjsaj7GUiSIrDialv7i8n3uQcEIY
WSyj1JKXyfaVUGq742eotfoCre9pmdGhcau/bAf/FB5Gb+mmu2GzhbEjdIEzgtxI
ezVD3ZGgEjkfzuyzsMKISnqJu+ojxiJU21v7aCF3htnGnFm2e0hlMS6ckTNAJDne
ovr/JMxmWssfobHGuRERAz9y8BbiHg==
=tT74
-----END PGP SIGNATURE-----payloadtree 74bcc02ffe025892082de514d173259eb20fe256
parent b206658b6de1fa87ee097e4d076d7eb6697a7cb6
author Tom Papke <tpapke@palantir.com> 1686737164 +0100
committer Tom Papke <tpapke@palantir.com> 1686737164 +0100

Remove entrystream
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/b06315ff7b94241e882ea8f765038986038efb18html_urlShttps://github.com/palantir/atlasdb/commit/b06315ff7b94241e882ea8f765038986038efb18comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b06315ff7b94241e882ea8f765038986038efb18/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jboj MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(j (b206658b6de1fa87ee097e4d076d7eb6697a7cb6j ^https://api.github.com/repos/palantir/atlasdb/commits/b206658b6de1fa87ee097e4d076d7eb6697a7cb6j Shttps://github.com/palantir/atlasdb/commit/b206658b6de1fa87ee097e4d076d7eb6697a7cb6uastats}(totalK	additionsK	deletionsK
ufiles](}(j (34cefef0f32840760e1b45c880f7af92fa4d8e85filenameClock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javastatusmodifiedj
 Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b06315ff7b94241e882ea8f765038986038efb18/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b06315ff7b94241e882ea8f765038986038efb18/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=b06315ff7b94241e882ea8f765038986038efb18patchX  @@ -88,9 +88,11 @@
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.HashMap;
+import java.util.Iterator;
 import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.BlockingQueue;
@@ -107,7 +109,6 @@
 import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 import javax.annotation.concurrent.ThreadSafe;
-import one.util.streamex.EntryStream;
 import org.slf4j.helpers.MessageFormatter;
 
 /**
@@ -470,10 +471,16 @@ private void logNullResponse(LockClient client, LockRequest request, @Nullable H
 
     private void logLockAcquisitionFailure(Map<LockDescriptor, LockClient> failedLocks) {
         final String logMessage = "Current holders of the first {} of {} total failed locks were: {}";
-        List<String> lockDescriptions = EntryStream.of(failedLocks)
-                .limit(MAX_FAILED_LOCKS_TO_LOG)
-                .mapKeyValue((key, value) -> String.format("Lock: %s, Holder: %s", key, value))
-                .toList();
+
+        List<String> lockDescriptions = new ArrayList<>();
+        Iterator<Entry<LockDescriptor, LockClient>> entries =
+                failedLocks.entrySet().iterator();
+        for (int i = 0; i < MAX_FAILED_LOCKS_TO_LOG && entries.hasNext(); i++) {
+            Map.Entry<LockDescriptor, LockClient> entry = entries.next();
+            lockDescriptions.add(String.format(
+                    "Lock: %s, Holder: %s",
+                    entry.getKey().toString(), entry.getValue().toString()));
+        }
         requestLogger.trace(
                 logMessage,
                 SafeArg.of("numLocksLogged", Math.min(MAX_FAILED_LOCKS_TO_LOG, failedLocks.size())),u}(j (599384706d72a7d0869da28e968fae05f9fc46caj Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javaj modifiedj
 Kj Kj Kj https://github.com/palantir/atlasdb/blob/b06315ff7b94241e882ea8f765038986038efb18/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj https://github.com/palantir/atlasdb/raw/b06315ff7b94241e882ea8f765038986038efb18/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=b06315ff7b94241e882ea8f765038986038efb18j X  @@ -83,7 +83,7 @@ Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot() {
      */
     public UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> getRestrictedSnapshotAsOptionalLogArg(
             Set<LockDescriptor> lockDescriptors) {
-        final String argName = "presumedClientThreadHoldersIfEnabled";
+        String argName = "presumedClientThreadHoldersIfEnabled";
         if (!threadInfoConfiguration.recordThreadInfo()) {
             return UnsafeArg.of(argName, Optional.empty());
         }u}(j (aa47bbbffda9b68b9a93e2e31755530993156e4fj Glock-impl/src/test/java/com/palantir/lock/impl/LockServiceImplTest.javaj modifiedj
 Kj Kj Kj https://github.com/palantir/atlasdb/blob/b06315ff7b94241e882ea8f765038986038efb18/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/b06315ff7b94241e882ea8f765038986038efb18/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.java?ref=b06315ff7b94241e882ea8f765038986038efb18j X  @@ -55,7 +55,7 @@ public final class LockServiceImplTest {
     public static final long SLOW_LOG_TRIGGER_MILLIS = LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS + 10;
     private static final String TEST_LOCKID = "test_lockId";
     private static final LockDescriptor TEST_LOCK = StringLockDescriptor.of(TEST_LOCKID);
-    private static final UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> threadInfoSnapshotLogArg =
+    private static final UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> THREAD_INFO_SNAPSHOT_ARG =
             UnsafeArg.of("presumedClientThreadHoldersIfEnabled", Optional.empty());
     private static LockServiceImpl lockServiceWithSlowLogEnabled;
     private static LockServiceImpl lockServiceWithSlowLogDisabled;
@@ -115,7 +115,7 @@ public void slowLogShouldBeLoggedWhenLockResponseIsSlowButShouldNotBeLoggedAtDeb
                         lockDurationMillis,
                         TEST_LOCKID,
                         "unsuccessfully",
-                        threadInfoSnapshotLogArg));
+                        THREAD_INFO_SNAPSHOT_ARG));
     }
 
     @Test
@@ -132,7 +132,7 @@ public void debugLogShouldBeLoggedWhenLockResponseIsSlowButSlowLogIsDisabled() {
                         lockDurationMillis,
                         TEST_LOCKID,
                         "unsuccessfully",
-                        threadInfoSnapshotLogArg));
+                        THREAD_INFO_SNAPSHOT_ARG));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }
@@ -150,7 +150,7 @@ public void debugLogShouldBeLoggedIfLockResponseTimeIsBetweenDebugTriggerTimeAnd
                         lockDurationMillis,
                         TEST_LOCKID,
                         "unsuccessfully",
-                        threadInfoSnapshotLogArg));
+                        THREAD_INFO_SNAPSHOT_ARG));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }ueu(d0e1df69585786e972d8642a1f50a8f1d5814d8d}(sha(d0e1df69585786e972d8642a1f50a8f1d5814d8dnode_idEC_kwDOAjP5fdoAKGQwZTFkZjY5NTg1Nzg2ZTk3MmQ4NjQyYTFmNTBhOGYxZDU4MTRkOGQcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-05-16T13:09:38Zu	committer}(j: svc-autoreleasej< -pd-foundry-infrastructure-notify@palantir.comj> 2023-05-16T13:09:38ZumessageAutorelease 0.854.0

[skip ci]tree}(j2 (e6714debd12cb22bb795f23b7440123a432a70ecurl`https://api.github.com/repos/palantir/atlasdb/git/trees/e6714debd12cb22bb795f23b7440123a432a70ecujJ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d0e1df69585786e972d8642a1f50a8f1d5814d8d
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRjgJgACgkQhbrR8ip7mDDgGgD/aWI7NfjvU5IxhYUh0r/Zphrw
siWAMyU2r/xO0zsZ/3UA/i9pusq15HF5WD1ZUG11ordwhfkOBz5HJit5VbSMUnIQ
=t33r
-----END PGP SIGNATURE-----
payloadX0  tree e6714debd12cb22bb795f23b7440123a432a70ec
parent 8e578cdd1c7763800f7ad168945183ad65020fd1
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684242578 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684242578 +0000

Autorelease 0.854.0

[skip ci]uujJ ^https://api.github.com/repos/palantir/atlasdb/commits/d0e1df69585786e972d8642a1f50a8f1d5814d8dhtml_urlShttps://github.com/palantir/atlasdb/commit/d0e1df69585786e972d8642a1f50a8f1d5814d8dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d0e1df69585786e972d8642a1f50a8f1d5814d8d/commentsj8 }(loginsvc-autoreleaseidJ(j4 MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5jJ ,https://api.github.com/users/svc-autoreleasejX "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers      
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj@ }(j] svc-autoreleasej_ J(j4 MDQ6VXNlcjUxNzE4MzQ2ja 4https://avatars.githubusercontent.com/u/51718346?v=4jc h5jJ ,https://api.github.com/users/svc-autoreleasejX "https://github.com/svc-autoreleasejf 6https://api.github.com/users/svc-autorelease/followersjh Chttps://api.github.com/users/svc-autorelease/following{/other_user}jj <https://api.github.com/users/svc-autorelease/gists{/gist_id}jl Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jn :https://api.github.com/users/svc-autorelease/subscriptionsjp 1https://api.github.com/users/svc-autorelease/orgsjr 2https://api.github.com/users/svc-autorelease/reposjt =https://api.github.com/users/svc-autorelease/events{/privacy}jv <https://api.github.com/users/svc-autorelease/received_eventsjx Userjz uparents]}(j2 (8e578cdd1c7763800f7ad168945183ad65020fd1jJ ^https://api.github.com/repos/palantir/atlasdb/commits/8e578cdd1c7763800f7ad168945183ad65020fd1jX Shttps://github.com/palantir/atlasdb/commit/8e578cdd1c7763800f7ad168945183ad65020fd1uastats}(totalK 	additionsK 	deletionsK ufiles]}(j2 (c79102e643ab92d38512a931ed6f634fa8ad143ffilename changelog/0.854.0/pr-6568.v2.ymlstatusrenamedj K j K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/d0e1df69585786e972d8642a1f50a8f1d5814d8d/changelog%2F0.854.0%2Fpr-6568.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/d0e1df69585786e972d8642a1f50a8f1d5814d8d/changelog%2F0.854.0%2Fpr-6568.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.854.0%2Fpr-6568.v2.yml?ref=d0e1df69585786e972d8642a1f50a8f1d5814d8dprevious_filename$changelog/@unreleased/pr-6568.v2.ymluau(bf6890433442e3e1661fb64a5ec87a7ffee50c23}(sha(bf6890433442e3e1661fb64a5ec87a7ffee50c23node_idEC_kwDOAjP5fdoAKGJmNjg5MDQzMzQ0MmUzZTE2NjFmYjY0YTVlYzg3YTdmZmVlNTBjMjMcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-05-30T08:12:47Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-05-30T08:12:47ZumessageAutorelease 0.866.0

[skip ci]tree}(j (0f5c6ac9bff00d617975480406a8275f42e4219eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/0f5c6ac9bff00d617975480406a8275f42e4219euj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bf6890433442e3e1661fb64a5ec87a7ffee50c23
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmR1sAUACgkQhbrR8ip7mDD7hgD/ZuGD8VswonzvjbLn36T8jMHQ
8S3RUQ64F56cLbH5ShUBAJk91EW9lyKUIp3gOHteAt6M4dX29zjV/kE1+CRf/XiZ
=MckY
-----END PGP SIGNATURE-----
payloadX0  tree 0f5c6ac9bff00d617975480406a8275f42e4219e
parent 2c1b8fa4492f9ec9b36570b72d867bda3f88cedb
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1685434367 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1685434367 +0000

Autorelease 0.866.0

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/bf6890433442e3e1661fb64a5ec87a7ffee50c23html_urlShttps://github.com/palantir/atlasdb/commit/bf6890433442e3e1661fb64a5ec87a7ffee50c23comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bf6890433442e3e1661fb64a5ec87a7ffee50c23/commentsj }(loginsvc-autoreleaseidJ(j MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(j MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(j (2c1b8fa4492f9ec9b36570b72d867bda3f88cedbj ^https://api.github.com/repos/palantir/atlasdb/commits/2c1b8fa4492f9ec9b36570b72d867bda3f88cedbj Shttps://github.com/palantir/atlasdb/commit/2c1b8fa4492f9ec9b36570b72d867bda3f88cedbuastats}(totalK 	additionsK 	deletionsK ufiles]}(j (24da7696d056cef662a3a0936f5eaef73ca2f9f2filename changelog/0.866.0/pr-6581.v2.ymlstatusrenamedj K j K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/bf6890433442e3e1661fb64a5ec87a7ffee50c23/changelog%2F0.866.0%2Fpr-6581.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/bf6890433442e3e1661fb64a5ec87a7ffee50c23/changelog%2F0.866.0%2Fpr-6581.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.866.0%2Fpr-6581.v2.yml?ref=bf6890433442e3e1661fb64a5ec87a7ffee50c23previous_filename$changelog/@unreleased/pr-6581.v2.ymluau(c59f74d9034a87abc8743ecf69c8ff5e88058ed1}(sha(c59f74d9034a87abc8743ecf69c8ff5e88058ed1node_idEC_kwDOAjP5fdoAKGM1OWY3NGQ5MDM0YTg3YWJjODc0M2VjZjY5YzhmZjVlODgwNThlZDEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-16T21:58:04Zu	committer}(j( Jeremy Kongj* jkong@palantir.comj, 2023-05-16T21:58:04Zumessagecleaningtree}(j  (62f6acfd75cac8d4988b9a02158bfad14a3db9c3url`https://api.github.com/repos/palantir/atlasdb/git/trees/62f6acfd75cac8d4988b9a02158bfad14a3db9c3uj8 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c59f74d9034a87abc8743ecf69c8ff5e88058ed1
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRj/GwACgkQTLdFKain
zjyHrQf+LgPtg4oAPNeji+Xuga2srVTOkACGfTmPcE+FmGVRJKm/1kKEfg+DvEEI
NqhsBqm23brqZbpCoYlONKzkfn4nFkI1bdt8xnTAENih3wq0396J1YE8UhNcl4FW
5waUC9j5KaBJDX2p2wrgZ3KEaGudDK+YK2JzBhGnVVuZ6+38bOyh4p6M5h2aTfoW
f/114JnBcDddrUYZkPzpOV5icruKWL5qp9bT7T7B+tNT2WpCXCvl5MiGiPSNc7ue
uh5Ih/wZ690fRUaZ+if2WN4B+nrfzzwh/ac5yiMEavjO0S848wjDo1bxujS8X2Yr
lB6Lfcxn4qqGFBxBkJouB3v0i8rE4A==
=9a0M
-----END PGP SIGNATURE-----payloadtree 62f6acfd75cac8d4988b9a02158bfad14a3db9c3
parent d0e1df69585786e972d8642a1f50a8f1d5814d8d
author Jeremy Kong <jkong@palantir.com> 1684274284 +0100
committer Jeremy Kong <jkong@palantir.com> 1684274284 +0100

cleaning
uuj8 ^https://api.github.com/repos/palantir/atlasdb/commits/c59f74d9034a87abc8743ecf69c8ff5e88058ed1html_urlShttps://github.com/palantir/atlasdb/commit/c59f74d9034a87abc8743ecf69c8ff5e88058ed1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c59f74d9034a87abc8743ecf69c8ff5e88058ed1/commentsj& }(login
jeremyk-91idJZ j" MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j8 'https://api.github.com/users/jeremyk-91jF https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj. }(jK 
jeremyk-91jM JZ j" MDQ6VXNlcjU5NTU1MTA=jO 3https://avatars.githubusercontent.com/u/5955510?v=4jQ h5j8 'https://api.github.com/users/jeremyk-91jF https://github.com/jeremyk-91jT 1https://api.github.com/users/jeremyk-91/followersjV >https://api.github.com/users/jeremyk-91/following{/other_user}jX 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jZ >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j\ 5https://api.github.com/users/jeremyk-91/subscriptionsj^ ,https://api.github.com/users/jeremyk-91/orgsj` -https://api.github.com/users/jeremyk-91/reposjb 8https://api.github.com/users/jeremyk-91/events{/privacy}jd 7https://api.github.com/users/jeremyk-91/received_eventsjf Userjh uparents]}(j  (d0e1df69585786e972d8642a1f50a8f1d5814d8dj8 ^https://api.github.com/repos/palantir/atlasdb/commits/d0e1df69585786e972d8642a1f50a8f1d5814d8djF Shttps://github.com/palantir/atlasdb/commit/d0e1df69585786e972d8642a1f50a8f1d5814d8duastats}(totalK	additionsK>	deletionsKmufiles](}(j  (3339e7d66d56ab749b7f196a73e3b512bff32797filenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj K#j KchangesK$blob_urlhttps://github.com/palantir/atlasdb/blob/c59f74d9034a87abc8743ecf69c8ff5e88058ed1/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c59f74d9034a87abc8743ecf69c8ff5e88058ed1/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=c59f74d9034a87abc8743ecf69c8ff5e88058ed1patchX  @@ -31,6 +31,8 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
 import com.palantir.atlasdb.workload.workflow.Workflow;
@@ -102,13 +104,17 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().singleRowTwoCellsConfig();
         RingWorkflowConfiguration ringWorkflowConfiguration =
                 configuration.install().ringConfig();
+        SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
+                configuration.install().singleBusyCellConfig();
 
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
                 .run(
                         createSingleRowTwoCellsWorkflowValidator(
                                 transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
                         createRingWorkflowValidator(
-                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()));
+                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellWorkflowValidator(
+                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -119,6 +125,34 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-read")
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-write")
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
     private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             RingWorkflowConfiguration workflowConfig,u}(j  (e066585ffc82825e55fda21d1909dcc38bb9b518j atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/c59f74d9034a87abc8743ecf69c8ff5e88058ed1/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://github.com/palantir/atlasdb/raw/c59f74d9034a87abc8743ecf69c8ff5e88058ed1/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=c59f74d9034a87abc8743ecf69c8ff5e88058ed1j X  @@ -19,6 +19,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
@@ -33,5 +34,7 @@ public interface WorkloadServerInstallConfiguration {
 
     RingWorkflowConfiguration ringConfig();
 
+    SingleBusyCellWorkflowConfiguration singleBusyCellConfig();
+
     boolean exitAfterRunning();
 }u}(j  (d8121b0b815f2fb3134e788ecc38e1fba194cf2ej Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/c59f74d9034a87abc8743ecf69c8ff5e88058ed1/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/c59f74d9034a87abc8743ecf69c8ff5e88058ed1/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=c59f74d9034a87abc8743ecf69c8ff5e88058ed1j Xi  @@ -16,4 +16,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: ring
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
   exitAfterRunning: false
\ No newline at end of fileu}(j  (6cf182d6892424ba60d6899cdd9f14024074a62bj Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/c59f74d9034a87abc8743ecf69c8ff5e88058ed1/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://github.com/palantir/atlasdb/raw/c59f74d9034a87abc8743ecf69c8ff5e88058ed1/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=c59f74d9034a87abc8743ecf69c8ff5e88058ed1j XL  @@ -51,4 +51,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: ring
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
   exitAfterRunning: trueu}(j  (e7a39b321f9030a001b4fc428fdefbb6eaeb7280j Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/c59f74d9034a87abc8743ecf69c8ff5e88058ed1/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/c59f74d9034a87abc8743ecf69c8ff5e88058ed1/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=c59f74d9034a87abc8743ecf69c8ff5e88058ed1j Xh  @@ -16,4 +16,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: ring
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
   exitAfterRunning: true
\ No newline at end of fileu}(j  (f4ad0b8dddc43f5cd0380760c6cfdc9c58c273e1j aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/c59f74d9034a87abc8743ecf69c8ff5e88058ed1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj https://github.com/palantir/atlasdb/raw/c59f74d9034a87abc8743ecf69c8ff5e88058ed1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=c59f74d9034a87abc8743ecf69c8ff5e88058ed1j Xf
  @@ -16,19 +16,15 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.OnlyCommittedWitnessedTransactionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
-import java.util.Comparator;
 import java.util.List;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
-import one.util.streamex.StreamEx;
 
 public final class DefaultWorkflow<T extends TransactionStore> implements Workflow {
     private final ConcurrentTransactionRunner<T> concurrentTransactionRunner;
@@ -62,7 +58,8 @@ public static <T extends TransactionStore> DefaultWorkflow<T> create(
     @Override
     public WorkflowHistory run() {
         return ImmutableWorkflowHistory.builder()
-                .history(sortAndFilterTransactions(runTransactionTask()))
+                .history(
+                        WitnessedTransactions.sortAndFilterTransactions(readOnlyTransactionStore, runTransactionTask()))
                 .transactionStore(readOnlyTransactionStore)
                 .build();
     }
@@ -80,21 +77,4 @@ private List<WitnessedTransaction> runTransactionTask() {
             throw new SafeRuntimeException("Error when running workflow task", e.getCause());
         }
     }
-
-    /**
-     * Sorts transactions by their effective timestamp and filters out transactions that are not fully committed.
-     */
-    @VisibleForTesting
-    List<FullyWitnessedTransaction> sortAndFilterTransactions(List<WitnessedTransaction> unorderedTransactions) {
-        OnlyCommittedWitnessedTransactionVisitor visitor =
-                new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
-        return StreamEx.of(unorderedTransactions)
-                .mapPartial(transaction -> transaction.accept(visitor))
-                .sorted(Comparator.comparingLong(DefaultWorkflow::effectiveTimestamp))
-                .toList();
-    }
-
-    private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
-        return witnessedTransaction.commitTimestamp().orElseGet(witnessedTransaction::startTimestamp);
-    }
 }u}(j  (84316bacac0bff7ed7e0091b3a88e14381eec0f0j eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javaj modifiedj K j KUj KUj https://github.com/palantir/atlasdb/blob/c59f74d9034a87abc8743ecf69c8ff5e88058ed1/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj https://github.com/palantir/atlasdb/raw/c59f74d9034a87abc8743ecf69c8ff5e88058ed1/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=c59f74d9034a87abc8743ecf69c8ff5e88058ed1j X  @@ -16,21 +16,16 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.anyInt;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
-import com.google.common.collect.ImmutableList;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.common.concurrent.PTExecutors;
-import java.util.List;
 import java.util.concurrent.ScheduledExecutorService;
 import org.junit.Test;
 
@@ -54,66 +49,6 @@ public void handlesExceptionsInUnderlyingTasks() {
                 .hasCause(transactionException);
     }
 
-    @Test
-    public void returnsUnderlyingWitnessedTransactions() {
-        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-
-        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight)))
-                .containsExactly(twoToEight);
-        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(readOnlyAtFive)))
-                .containsExactly(readOnlyAtFive);
-    }
-
-    @Test
-    public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
-        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        FullyWitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
-        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
-
-        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
-                .containsExactly(fourToSix, threeToSeven, twoToEight);
-    }
-
-    @Test
-    public void sortsReadOnlyTransactionsByStartTimestamp() {
-        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        FullyWitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
-
-        assertThat(workflow.sortAndFilterTransactions(
-                        ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
-                .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
-    }
-
-    @Test
-    public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
-        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
-
-        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        FullyWitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
-
-        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(
-                        twoToEight, readOnlyAtNine, fourToSix, readOnlyAtFive, readOnlyAtThree, readOnlyAtSeven)))
-                .containsExactly(
-                        readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
-    }
-
-    @Test
-    public void filterRemovesUncommittedTransactions() {
-        MaybeWitnessedTransaction committedMaybeWitnessedTransaction =
-                createMaybeWitnessedTransactionWithoutActions(1, 3, true);
-        MaybeWitnessedTransaction notCommittedTransaction = createMaybeWitnessedTransactionWithoutActions(2, 8, false);
-        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
-        assertThat(workflow.sortAndFilterTransactions(List.of(
-                        committedMaybeWitnessedTransaction, notCommittedTransaction, readOnlyAtFive, fourToSix)))
-                .containsExactly(committedMaybeWitnessedTransaction.toFullyWitnessed(), readOnlyAtFive, fourToSix);
-    }
-
     private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
         return new WorkflowConfiguration() {
             @Override
@@ -122,24 +57,4 @@ public int iterationCount() {
             }
         };
     }
-
-    private MaybeWitnessedTransaction createMaybeWitnessedTransactionWithoutActions(
-            long start, long commit, boolean committed) {
-        when(store.isCommitted(eq(start))).thenReturn(committed);
-        return MaybeWitnessedTransaction.builder()
-                .startTimestamp(start)
-                .commitTimestamp(commit)
-                .build();
-    }
-
-    private static FullyWitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
-        return FullyWitnessedTransaction.builder().startTimestamp(start).build();
-    }
-
-    private static FullyWitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
-        return FullyWitnessedTransaction.builder()
-                .startTimestamp(start)
-                .commitTimestamp(commit)
-                .build();
-    }
 }ueu(15ea77fc74eaa2b27ec66c7520f7ddb5bf694601}(sha(15ea77fc74eaa2b27ec66c7520f7ddb5bf694601node_idEC_kwDOAjP5fdoAKDE1ZWE3N2ZjNzRlYWEyYjI3ZWM2NmM3NTIwZjdkZGI1YmY2OTQ2MDEcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-06T20:12:42Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-07-10T14:49:44ZumessageUse builder and copyWithtree}(j (b4f5b1f88ab78d6b2d59964d2c4b4e3b89b4f642url`https://api.github.com/repos/palantir/atlasdb/git/trees/b4f5b1f88ab78d6b2d59964d2c4b4e3b89b4f642uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/15ea77fc74eaa2b27ec66c7520f7ddb5bf694601
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSsGogACgkQmF9s0kaF
Iw0CFAf+Jgt8j9h7IXVvJFxDFSjNfwRWfLJA6xGjs2qKGfzebtJtxzKvguLKFzT5
lFlE/A9JAjDwCWGQ0UHKSB0/WvBmC8HcMX4NXoJNpftACq02+jZv98D7sEweHzpU
UP7wLBkzocVwO2OsBhip33Whk0GylTc4X7qEGYwm6QsjffQ+5scXNEte4G1nEhgq
u07qXulf3oYnt6V9VeJtdcUobtQSO4yy9T1c2dGFzW6l+Ui/waGbZSO1AAeaZUph
9mfvKSl82ZfIwrqdBo0p2muLCGkrBISt0ASMIBy58Zk2EnCzCkz//9x2F+ncmlDn
LXZeWzvJbfG4AF4ksO11SmymnAVK8w==
=SZpT
-----END PGP SIGNATURE-----payloadtree b4f5b1f88ab78d6b2d59964d2c4b4e3b89b4f642
parent 5e3b8235591a95ddb701908336c245fcb168344c
author Tom Papke <tpapke@palantir.com> 1688674362 +0100
committer Tom Papke <tpapke@palantir.com> 1689000584 +0100

Use builder and copyWith
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/15ea77fc74eaa2b27ec66c7520f7ddb5bf694601html_urlShttps://github.com/palantir/atlasdb/commit/15ea77fc74eaa2b27ec66c7520f7ddb5bf694601comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/15ea77fc74eaa2b27ec66c7520f7ddb5bf694601/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jboj MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j  4https://api.github.com/users/Toemmsche/subscriptionsj  +https://api.github.com/users/Toemmsche/orgsj  ,https://api.github.com/users/Toemmsche/reposj	  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj
  Userj  uparents]}(j (5e3b8235591a95ddb701908336c245fcb168344cj ^https://api.github.com/repos/palantir/atlasdb/commits/5e3b8235591a95ddb701908336c245fcb168344cj Shttps://github.com/palantir/atlasdb/commit/5e3b8235591a95ddb701908336c245fcb168344cuastats}(totalK	additionsK
	deletionsK
ufiles](}(j (feefd11fd86dbfc720ee018ae7beccc7b57b224afilenameGatlasdb-commons/src/main/java/com/palantir/util/IndexEncodingUtils.javastatusmodifiedj)  Kj*  KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/15ea77fc74eaa2b27ec66c7520f7ddb5bf694601/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javaraw_urlhttps://github.com/palantir/atlasdb/raw/15ea77fc74eaa2b27ec66c7520f7ddb5bf694601/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtils.java?ref=15ea77fc74eaa2b27ec66c7520f7ddb5bf694601patchX  @@ -79,7 +79,11 @@ public static <K extends DeterministicHashable, V, R> IndexEncodingResult<K, R>
             throw new SafeIllegalArgumentException(
                     "keyToValue contains keys that are not in the key list", UnsafeArg.of("unknownKeys", unknownKeys));
         }
-        return IndexEncodingResult.of(keyList, indexToValue, computeChecksum(checksumType, keyList));
+        return IndexEncodingResult.<K, R>builder()
+                .keyList(keyList)
+                .indexToValue(indexToValue)
+                .keyListChecksum(computeChecksum(checksumType, keyList))
+                .build();
     }
 
     /**
@@ -140,19 +144,14 @@ static <K extends DeterministicHashable> KeyListChecksum computeChecksum(
     @Value.Immutable
     @JsonIgnoreType
     public interface IndexEncodingResult<K extends DeterministicHashable, V> {
-
-        @Value.Parameter
         List<K> keyList();
 
-        @Value.Parameter
         Map<Integer, V> indexToValue();
 
-        @Value.Parameter
         KeyListChecksum keyListChecksum();
 
-        static <K extends DeterministicHashable, V> IndexEncodingResult<K, V> of(
-                List<K> keyList, Map<Integer, V> indexToValue, KeyListChecksum keyListChecksum) {
-            return ImmutableIndexEncodingResult.of(keyList, indexToValue, keyListChecksum);
+        static <K extends DeterministicHashable, V> ImmutableIndexEncodingResult.Builder<K, V> builder() {
+            return ImmutableIndexEncodingResult.builder();
         }
     }
 u}(j (b1f002a485cdf21f6e60837ee1a94c02bdbe1750j/  Katlasdb-commons/src/test/java/com/palantir/util/IndexEncodingUtilsTest.javaj1  modifiedj)  Kj*  Kj3  Kj4  https://github.com/palantir/atlasdb/blob/15ea77fc74eaa2b27ec66c7520f7ddb5bf694601/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaj6  https://github.com/palantir/atlasdb/raw/15ea77fc74eaa2b27ec66c7520f7ddb5bf694601/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.javaj8  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FIndexEncodingUtilsTest.java?ref=15ea77fc74eaa2b27ec66c7520f7ddb5bf694601j:  X  @@ -133,7 +133,7 @@ public void integrityCheckFailsForDifferentKeyList() {
         List<DH<String>> modifiedKeyList = new ArrayList<>(KEYS);
         Collections.swap(modifiedKeyList, 0, 1);
         IndexEncodingResult<DH<String>, Long> encodedWithModifiedKeyList =
-                IndexEncodingResult.of(modifiedKeyList, encoded.indexToValue(), encoded.keyListChecksum());
+                ImmutableIndexEncodingResult.copyOf(encoded).withKeyList(modifiedKeyList);
         KeyListChecksum actualChecksum = IndexEncodingUtils.computeChecksum(checksumType, modifiedKeyList);
         assertThatThrownBy(() -> IndexEncodingUtils.decode(encodedWithModifiedKeyList, Function.identity()))
                 .isInstanceOf(SafeIllegalArgumentException.class)
@@ -148,10 +148,8 @@ public void integrityCheckFailsForDifferentKeyList() {
     public void integrityCheckFailsForDifferentChecksum() {
         byte[] modifiedChecksum = encoded.keyListChecksum().value();
         modifiedChecksum[0]++;
-        IndexEncodingResult<DH<String>, Long> encodedWithModifiedChecksum = IndexEncodingResult.of(
-                encoded.keyList(),
-                encoded.indexToValue(),
-                KeyListChecksum.of(encoded.keyListChecksum().type(), modifiedChecksum));
+        IndexEncodingResult<DH<String>, Long> encodedWithModifiedChecksum = ImmutableIndexEncodingResult.copyOf(encoded)
+                .withKeyListChecksum(KeyListChecksum.of(checksumType, modifiedChecksum));
         assertThatThrownBy(() -> IndexEncodingUtils.decode(encodedWithModifiedChecksum, Function.identity()))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessage(SafeExceptions.renderMessage(ueu(78a4cc3b2bd34eb6307032d97c38045994d4cf85}(sha(78a4cc3b2bd34eb6307032d97c38045994d4cf85node_idEC_kwDOAjP5fdoAKDc4YTRjYzNiMmJkMzRlYjYzMDcwMzJkOTdjMzgwNDU5OTRkNGNmODUcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-08-08T17:13:26Zu	committer}(jN  	Tom PapkejP  tpapke@palantir.comjR  2023-08-08T17:13:26Zumessage Add test for changeMetadataCounttree}(jF  (0f8e0da859e6ed2a0ab176589eddeaa14da28eceurl`https://api.github.com/repos/palantir/atlasdb/git/trees/0f8e0da859e6ed2a0ab176589eddeaa14da28eceuj^  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/78a4cc3b2bd34eb6307032d97c38045994d4cf85
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTSd7YACgkQmF9s0kaF
Iw08LwgAie+qnM2eJLDboP7Ts9jqbV+63LtLSklhfIIa/17Ka2ElQWcmd3J5qSTU
kppIO0k4MZImPAUWqlb7MSiaPc5MiT+uOG2LK/6JUbQPKMsnRHS43YMq6F3gwM/6
9RUsHGZ1C/oZ8OX88OOY/u9nSERn4ygaMDbr3WxBTwSX8+XvmgoATNWf0L30nezF
zYfaepLzd0ndPTh6IClDZrGngNcsNj68dP/94mpulLAbCMKxg9kuDTwrGU7pU9f/
YQ8ilVfh4FCkKI4r97jI8vlWydXurf1qnwzxDzOTKKvn+GG9xo2Y/JCITbkNsFzV
/jID2S1PDAzmv3GsfDfNPFFXqkY4tQ==
=dyfs
-----END PGP SIGNATURE-----payloadtree 0f8e0da859e6ed2a0ab176589eddeaa14da28ece
parent 60c5b7ec4c21743b74e342b376739396886adc62
author Tom Papke <tpapke@palantir.com> 1691514806 +0100
committer Tom Papke <tpapke@palantir.com> 1691514806 +0100

Add test for changeMetadataCount
uuj^  ^https://api.github.com/repos/palantir/atlasdb/commits/78a4cc3b2bd34eb6307032d97c38045994d4cf85html_urlShttps://github.com/palantir/atlasdb/commit/78a4cc3b2bd34eb6307032d97c38045994d4cf85comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/78a4cc3b2bd34eb6307032d97c38045994d4cf85/commentsjL  }(login	ToemmscheidJbojH  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j^  &https://api.github.com/users/Toemmschejl  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujT  }(jq  	Toemmschejs  JbojH  MDQ6VXNlcjQzNjc1NDkwju  4https://avatars.githubusercontent.com/u/43675490?v=4jw  h5j^  &https://api.github.com/users/Toemmschejl  https://github.com/Toemmschejz  0https://api.github.com/users/Toemmsche/followersj|  =https://api.github.com/users/Toemmsche/following{/other_user}j~  6https://api.github.com/users/Toemmsche/gists{/gist_id}j  =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j  4https://api.github.com/users/Toemmsche/subscriptionsj  +https://api.github.com/users/Toemmsche/orgsj  ,https://api.github.com/users/Toemmsche/reposj  7https://api.github.com/users/Toemmsche/events{/privacy}j  6https://api.github.com/users/Toemmsche/received_eventsj  Userj  uparents]}(jF  (60c5b7ec4c21743b74e342b376739396886adc62j^  ^https://api.github.com/repos/palantir/atlasdb/commits/60c5b7ec4c21743b74e342b376739396886adc62jl  Shttps://github.com/palantir/atlasdb/commit/60c5b7ec4c21743b74e342b376739396886adc62uastats}(totalK	additionsK	deletionsK ufiles]}(jF  (d2554ce920ff002338221e64ca0b7bedb59df359filenameaatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/LocalWriteBufferTest.javastatusmodifiedj  Kj  K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/78a4cc3b2bd34eb6307032d97c38045994d4cf85/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/78a4cc3b2bd34eb6307032d97c38045994d4cf85/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.java?ref=78a4cc3b2bd34eb6307032d97c38045994d4cf85patchXL  @@ -253,6 +253,17 @@ public void valueByteCountIsMaintainedAcrossMultipleTables() {
                         + VALUE_2.length);
     }
 
+    @Test
+    public void changeMetadataCountIsCorrect() {
+        buffer.putLocalWritesAndMetadata(
+                TABLE,
+                ImmutableMap.of(CELL_1, VALUE_1, CELL_2, VALUE_2),
+                ImmutableMap.of(CELL_1, METADATA_1, CELL_2, METADATA_2));
+        buffer.putLocalWritesAndMetadata(TABLE_2, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of());
+
+        assertThat(buffer.changeMetadataCount()).isEqualTo(2);
+    }
+
     private void assertThatPutThrowsForAllMetadataDueToMissingWrite(
             Map<Cell, byte[]> values, Map<Cell, ChangeMetadata> metadata) {
         assertThatLoggableExceptionThrownBy(() -> buffer.putLocalWritesAndMetadata(TABLE, values, metadata))uau(12d352cadc4addec9f03398b5a96df0bb2ff969d}(sha(12d352cadc4addec9f03398b5a96df0bb2ff969dnode_idEC_kwDOAjP5fdoAKDEyZDM1MmNhZGM0YWRkZWM5ZjAzMzk4YjVhOTZkZjBiYjJmZjk2OWQcommit}(author}(name	Tom Papkeemail+43675490+Toemmsche@users.noreply.github.comdate2023-07-17T13:19:06Zu	committer}(j  svc-autoreleasej  -pd-foundry-infrastructure-notify@palantir.comj  2023-07-17T13:19:06Zumessage"Autorelease 0.895.0-rc1

[skip ci]tree}(j  (809d77ce1f41f996d199deed739f49cc3fce26c8url`https://api.github.com/repos/palantir/atlasdb/git/trees/809d77ce1f41f996d199deed739f49cc3fce26c8uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/12d352cadc4addec9f03398b5a96df0bb2ff969d
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmS1P8sACgkQhbrR8ip7mDB5FQD/ag+bCeJY1hkXKNSaeKbWEMw6
41SiJrg82+q1ncMG0HoBAIfyJOEiQSJOzH2WfnfI+L0UbaYw7BstsrDKlqFArxQx
=m/pW
-----END PGP SIGNATURE-----
payloadX,  tree 809d77ce1f41f996d199deed739f49cc3fce26c8
parent 19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5
author Tom Papke <43675490+Toemmsche@users.noreply.github.com> 1689599946 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1689599946 +0000

Autorelease 0.895.0-rc1

[skip ci]uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/12d352cadc4addec9f03398b5a96df0bb2ff969dhtml_urlShttps://github.com/palantir/atlasdb/commit/12d352cadc4addec9f03398b5a96df0bb2ff969dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/12d352cadc4addec9f03398b5a96df0bb2ff969d/commentsj  }(login	ToemmscheidJboj  MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j  &https://api.github.com/users/Toemmschej  https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj  }(j  svc-autoreleasej  J(j  MDQ6VXNlcjUxNzE4MzQ2j  4https://avatars.githubusercontent.com/u/51718346?v=4j  h5j  ,https://api.github.com/users/svc-autoreleasej  "https://github.com/svc-autoreleasej  6https://api.github.com/users/svc-autorelease/followersj  Chttps://api.github.com/users/svc-autorelease/following{/other_user}j  <https://api.github.com/users/svc-autorelease/gists{/gist_id}j  Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j  :https://api.github.com/users/svc-autorelease/subscriptionsj  1https://api.github.com/users/svc-autorelease/orgsj  2https://api.github.com/users/svc-autorelease/reposj  =https://api.github.com/users/svc-autorelease/events{/privacy}j! <https://api.github.com/users/svc-autorelease/received_eventsj! Userj! uparents]}(j  (19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5j  ^https://api.github.com/repos/palantir/atlasdb/commits/19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5j  Shttps://github.com/palantir/atlasdb/commit/19dfcdac4f8d1b45eb2758f2f7cf46e99e1606b5uastats}(totalK 	additionsK 	deletionsK ufiles]u(8e1dff718ba58d7d046ace2f52122169ef4bacbd}(sha(8e1dff718ba58d7d046ace2f52122169ef4bacbdnode_idEC_kwDOAjP5fdoAKDhlMWRmZjcxOGJhNThkN2QwNDZhY2UyZjUyMTIyMTY5ZWY0YmFjYmQcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-04-04T23:30:37Zu	committer}(j-! David Schlosnaglej/! davids@palantir.comj1! 2023-05-20T20:09:22Zumessage:Optimize TimestampMapping::leader to avoid stream overheadtree}(j%! (605547ebec6f8915f438ef1b270bb70935a55a1durl`https://api.github.com/repos/palantir/atlasdb/git/trees/605547ebec6f8915f438ef1b270bb70935a55a1duj=! bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8e1dff718ba58d7d046ace2f52122169ef4bacbd
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmRpKPMACgkQR9hsJ74Q
0l/1fQf/UQI2atR8pm8y3Y9fKKLTDs3ai4VuwehXQaN7bu4NQuACEQG3V3RlsDJo
KGDCBsnsKm4EAmCLX0XeyfAbSB3XZQb07OibpdynCgRt4T3K791dHLKVsLK11IUq
W/2yG9UA21MZADfgN+qk6O+2NyQL6Yc4jRqsUX/1BeBmWmHNgiG2W5/Z5DTxaVZ3
Wqbk+nf5nspQj10t9+ThIdgppd27DvTfpCWbOYepWptSc/sUAD632ijag9A1z6M2
gX5PzWnUpbIeN4Jnl+ldZHB4JoNyiprsGgjdy8pIHv6l0XvhFRT4T8r3OMxc18a2
ON/GOmSuj/A8uqUFzHDKZJU653jXnQ==
=BDOy
-----END PGP SIGNATURE-----payloadX  tree 605547ebec6f8915f438ef1b270bb70935a55a1d
parent e7df74ecf5fc82df65b0ffe8ebefe0752841f299
author David Schlosnagle <davids@palantir.com> 1680651037 -0400
committer David Schlosnagle <davids@palantir.com> 1684613362 -0400

Optimize TimestampMapping::leader to avoid stream overhead
uuj=! ^https://api.github.com/repos/palantir/atlasdb/commits/8e1dff718ba58d7d046ace2f52122169ef4bacbdhtml_urlShttps://github.com/palantir/atlasdb/commit/8e1dff718ba58d7d046ace2f52122169ef4bacbdcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8e1dff718ba58d7d046ace2f52122169ef4bacbd/commentsj+! }(loginschlosnaidMBj'! MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j=! %https://api.github.com/users/schlosnajK! https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj3! }(jP! schlosnajR! MBj'! MDQ6VXNlcjU0NTk0jT! 1https://avatars.githubusercontent.com/u/54594?v=4jV! h5j=! %https://api.github.com/users/schlosnajK! https://github.com/schlosnajY! /https://api.github.com/users/schlosna/followersj[! <https://api.github.com/users/schlosna/following{/other_user}j]! 5https://api.github.com/users/schlosna/gists{/gist_id}j_! <https://api.github.com/users/schlosna/starred{/owner}{/repo}ja! 3https://api.github.com/users/schlosna/subscriptionsjc! *https://api.github.com/users/schlosna/orgsje! +https://api.github.com/users/schlosna/reposjg! 6https://api.github.com/users/schlosna/events{/privacy}ji! 5https://api.github.com/users/schlosna/received_eventsjk! Userjm! uparents]}(j%! (e7df74ecf5fc82df65b0ffe8ebefe0752841f299j=! ^https://api.github.com/repos/palantir/atlasdb/commits/e7df74ecf5fc82df65b0ffe8ebefe0752841f299jK! Shttps://github.com/palantir/atlasdb/commit/e7df74ecf5fc82df65b0ffe8ebefe0752841f299uastats}(totalKy	additionsKt	deletionsKufiles](}(j%! (c480df0088f6789eb9035ca913cc7cc57d932d70filename_atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/watch/TimestampMapping.javastatusmodifiedj! Kj! KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/8e1dff718ba58d7d046ace2f52122169ef4bacbd/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.javaraw_urlhttps://github.com/palantir/atlasdb/raw/8e1dff718ba58d7d046ace2f52122169ef4bacbd/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.java?ref=8e1dff718ba58d7d046ace2f52122169ef4bacbdpatchX  @@ -16,12 +16,17 @@
 
 package com.palantir.atlasdb.keyvalue.api.watch;
 
-import com.google.common.collect.MoreCollectors;
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.Collections2;
 import com.google.common.collect.Range;
 import com.palantir.lock.watch.LockWatchVersion;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Iterator;
 import java.util.LongSummaryStatistics;
 import java.util.Map;
+import java.util.Objects;
 import java.util.UUID;
 import org.immutables.value.Value;
 
@@ -44,10 +49,8 @@ default LockWatchVersion lastVersion() {
 
     @Value.Derived
     default UUID leader() {
-        return timestampMapping().values().stream()
-                .map(LockWatchVersion::id)
-                .distinct()
-                .collect(MoreCollectors.onlyElement());
+        // explicitly avoiding stream and distinct collection copy when all IDs should be identical
+        return identicalElement(Collections2.transform(timestampMapping().values(), LockWatchVersion::id));
     }
 
     @Value.Check
@@ -58,4 +61,20 @@ default void nonEmptyMapping() {
     static ImmutableTimestampMapping.Builder builder() {
         return ImmutableTimestampMapping.builder();
     }
+
+    @VisibleForTesting
+    static <T> T identicalElement(Iterable<? extends T> iterable) {
+        Iterator<? extends T> iterator = iterable.iterator();
+        T element = iterator.next();
+        while (iterator.hasNext()) {
+            T next = iterator.next();
+            if (!Objects.equals(element, next)) {
+                throw new SafeIllegalArgumentException(
+                        "Input contains multiple distinct elements",
+                        SafeArg.of("element", element),
+                        SafeArg.of("next", next));
+            }
+        }
+        return element;
+    }
 }u}(j%! (2de6f288bf092213b4b2345a73a735695f0f3c27j! catlasdb-impl-shared/src/test/java/com/palantir/atlasdb/keyvalue/api/watch/TimestampMappingTest.javaj! addedj! K\j! K j! K\j! https://github.com/palantir/atlasdb/blob/8e1dff718ba58d7d046ace2f52122169ef4bacbd/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.javaj! https://github.com/palantir/atlasdb/raw/8e1dff718ba58d7d046ace2f52122169ef4bacbd/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.javaj! https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.java?ref=8e1dff718ba58d7d046ace2f52122169ef4bacbdj! X;  @@ -0,0 +1,92 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.api.watch;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.google.common.collect.Iterables;
+import com.palantir.lock.watch.LockWatchVersion;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import java.util.NoSuchElementException;
+import java.util.UUID;
+import org.junit.Test;
+
+public class TimestampMappingTest {
+    @Test
+    public void singleLeaderMappingIsValid() {
+        UUID id = UUID.randomUUID();
+        ImmutableTimestampMapping timestampMapping = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(id, 1))
+                .build();
+        assertThat(timestampMapping.leader()).isEqualTo(id);
+    }
+
+    @Test
+    public void singleDistinctLeaderMappingIsValid() {
+        UUID id = UUID.randomUUID();
+        ImmutableTimestampMapping timestampMapping = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(id, 1))
+                .putTimestampMapping(2L, LockWatchVersion.of(id, 1))
+                .build();
+        assertThat(timestampMapping.leader()).isEqualTo(id);
+    }
+
+    @Test
+    public void conflictingLeaderMappingIsInvalid() {
+        ImmutableTimestampMapping.Builder builder = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(UUID.randomUUID(), 1))
+                .putTimestampMapping(2L, LockWatchVersion.of(UUID.randomUUID(), 1));
+
+        assertThatThrownBy(builder::build)
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+    }
+
+    @Test
+    public void emptyMappingIsInvalid() {
+        assertThatThrownBy(() -> TimestampMapping.builder().build())
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("Invalid range");
+    }
+
+    @Test
+    public void onlyIdenticalElements() {
+        assertThat(TimestampMapping.identicalElement(List.of("test"))).isEqualTo("test");
+        assertThat(TimestampMapping.identicalElement(Iterables.limit(Iterables.cycle("test"), 1000)))
+                .isEqualTo("test");
+        assertThat(TimestampMapping.identicalElement(Iterables.limit(Iterables.cycle(42L), 1000)))
+                .isEqualTo(42L);
+    }
+
+    @Test
+    public void emptyDistinctElements() {
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of()))
+                .isInstanceOf(NoSuchElementException.class);
+    }
+
+    @Test
+    public void multipleDistinctElements() {
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of("a", "b", "a")))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of("a", "a", "b")))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+    }
+}ueu(f10f97fdc1b082842b4c60e07ed0b4aa4e929111}(sha(f10f97fdc1b082842b4c60e07ed0b4aa4e929111node_idEC_kwDOAjP5fdoAKGYxMGY5N2ZkYzFiMDgyODQyYjRjNjBlMDdlZDBiNGFhNGU5MjkxMTEcommit}(author}(nameMohammed Daudaliemailmdaudali@palantir.comdate2023-03-22T13:39:38Zu	committer}(j! Mohammed Daudalij! mdaudali@palantir.comj! 2023-03-22T13:39:38Zumessagebatch hint can be nullabletree}(j! (aeb33d999c9ce38e128d63ff527f7461acd2210eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/aeb33d999c9ce38e128d63ff527f7461acd2210euj! bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f10f97fdc1b082842b4c60e07ed0b4aa4e929111
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE85NpmxiQII63+jWv1DJ7K5YIya0FAmQbBRsACgkQ1DJ7K5YI
ya2cgQf/UNQHEykgjrqIkMrqjsfyewVHuqTnuseIXsG36zndiiLWZ87ktPR5pHmp
+EH5MfrHQyIcPVfDTFcH1dehWIJXc5Yc8zu7vIYeFY0RwSsMEonTyU6GGsB4EiKZ
p/zQIiuxihjGlHFKvxkchcNy+d8vuILeakPN+iJHrCWUSF+w/B2RiVb0ukxRO3Zr
P2WzsG8vde0z0OkRv36F3iTjcR72W0dckvA0KZFPaA39Y64DDAsSagZWlGfvjqB0
lRogP4J774dk0OEIeV1taDXIz8NdEbvX3isLsL9d3zk3AkM0T/gmjIispj34DPaM
kQlu76+j1PC7ncZqFysxQk4m4jJ/jA==
=z8ok
-----END PGP SIGNATURE-----payloadtree aeb33d999c9ce38e128d63ff527f7461acd2210e
parent 0cd12b5e875be6f1adc25da6049d811d4ef06710
author Mohammed Daudali <mdaudali@palantir.com> 1679492378 +0000
committer Mohammed Daudali <mdaudali@palantir.com> 1679492378 +0000

batch hint can be nullable
uuj! ^https://api.github.com/repos/palantir/atlasdb/commits/f10f97fdc1b082842b4c60e07ed0b4aa4e929111html_urlShttps://github.com/palantir/atlasdb/commit/f10f97fdc1b082842b4c60e07ed0b4aa4e929111comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f10f97fdc1b082842b4c60e07ed0b4aa4e929111/commentsj! }(loginmdaudaliidJ j! MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5j! %https://api.github.com/users/mdaudalij! https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminuj! }(j! mdaudalij! J j! MDQ6VXNlcjE4MTI3NjQ=j! 3https://avatars.githubusercontent.com/u/1812764?v=4j! h5j! %https://api.github.com/users/mdaudalij! https://github.com/mdaudalij! /https://api.github.com/users/mdaudali/followersj! <https://api.github.com/users/mdaudali/following{/other_user}j! 5https://api.github.com/users/mdaudali/gists{/gist_id}j! <https://api.github.com/users/mdaudali/starred{/owner}{/repo}j! 3https://api.github.com/users/mdaudali/subscriptionsj! *https://api.github.com/users/mdaudali/orgsj! +https://api.github.com/users/mdaudali/reposj! 6https://api.github.com/users/mdaudali/events{/privacy}j! 5https://api.github.com/users/mdaudali/received_eventsj! Userj! uparents]}(j! (0cd12b5e875be6f1adc25da6049d811d4ef06710j! ^https://api.github.com/repos/palantir/atlasdb/commits/0cd12b5e875be6f1adc25da6049d811d4ef06710j! Shttps://github.com/palantir/atlasdb/commit/0cd12b5e875be6f1adc25da6049d811d4ef06710uastats}(totalK	additionsK	deletionsKufiles]}(j! (54106dfa0477a8d02f1cf93167ddaa80b4701778filenameMatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/RangeRequest.javastatusmodifiedj" Kj" KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/f10f97fdc1b082842b4c60e07ed0b4aa4e929111/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRangeRequest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f10f97fdc1b082842b4c60e07ed0b4aa4e929111/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRangeRequest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRangeRequest.java?ref=f10f97fdc1b082842b4c60e07ed0b4aa4e929111patchX  @@ -352,7 +352,7 @@ public Builder retainColumns(ColumnSelection selection) {
          * this means the batch size will be whatever is passed as the batch size to
          * BatchingVisitable#batchAccept(int, com.palantir.common.base.AbortingVisitor)
          */
-        public Builder batchHint(Integer hint) {
+        public Builder batchHint(@Nullable Integer hint) {
             Preconditions.checkArgument(hint == null || hint > 0);
             batchHint = hint;
             return this;uau(c40b85ef3b12ad1e26d11b2ac3a798d25be1c12d}(sha(c40b85ef3b12ad1e26d11b2ac3a798d25be1c12dnode_idEC_kwDOAjP5fdoAKGM0MGI4NWVmM2IxMmFkMWUyNmQxMWIyYWMzYTc5OGQyNWJlMWMxMmQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-06T16:18:33Zu	committer}(j#" Jeremy Kongj%" jkong@palantir.comj'" 2023-06-06T16:18:33ZumessageMMerge branch 'jkong/antithesis-range-two-1' into jkong/antithesis-range-two-2tree}(j" (f0aa186b3847200294f2a67004938c0d2e6572f8url`https://api.github.com/repos/palantir/atlasdb/git/trees/f0aa186b3847200294f2a67004938c0d2e6572f8u     j3" bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c40b85ef3b12ad1e26d11b2ac3a798d25be1c12d
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR/XFsACgkQTLdFKain
zjxc4AgAhJxVKENOC1DQS1Z94xeO7FuFXaELYWvSrLPAo0CrF+95qKeG6x3+jdnW
JllGknwnXDZWXZsSWxA3nbiPCxlAtB6i1sjHqc5dUv+IhskCp9ft9prGedRLly4/
CSKDogp5+XlgaAm+ZwqulwovGGxHqxQo4zT5MtYzR2F4gyuFKB1uUId462XT4gnK
td14hFi18B/jQG+ixajuBSqyBQEzuJ+7n3El4AEfDLFK1hEVwsOlZnahyA3RhoNH
bJd1Bb+HJW2fT5DTglxDEDedEhlSzy4pt2/RVpOsPbQNC4mZX/cU2wEQMRgcISfF
N8iyey4hF9/h/iEBEgCgvQhjvyuWbw==
=CVLw
-----END PGP SIGNATURE-----payloadXR  tree f0aa186b3847200294f2a67004938c0d2e6572f8
parent 38e5906ccac8d7a4f69d855787d818cfb5baab9e
parent 8a763d36fa1de876f153aef9a0165342a8bbface
author Jeremy Kong <jkong@palantir.com> 1686068313 +0100
committer Jeremy Kong <jkong@palantir.com> 1686068313 +0100

Merge branch 'jkong/antithesis-range-two-1' into jkong/antithesis-range-two-2
uuj3" ^https://api.github.com/repos/palantir/atlasdb/commits/c40b85ef3b12ad1e26d11b2ac3a798d25be1c12dhtml_urlShttps://github.com/palantir/atlasdb/commit/c40b85ef3b12ad1e26d11b2ac3a798d25be1c12dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c40b85ef3b12ad1e26d11b2ac3a798d25be1c12d/commentsj!" }(login
jeremyk-91idJZ j" MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j3" 'https://api.github.com/users/jeremyk-91jA" https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj)" }(jF" 
jeremyk-91jH" JZ j" MDQ6VXNlcjU5NTU1MTA=jJ" 3https://avatars.githubusercontent.com/u/5955510?v=4jL" h5j3" 'https://api.github.com/users/jeremyk-91jA" https://github.com/jeremyk-91jO" 1https://api.github.com/users/jeremyk-91/followersjQ" >https://api.github.com/users/jeremyk-91/following{/other_user}jS" 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jU" >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jW" 5https://api.github.com/users/jeremyk-91/subscriptionsjY" ,https://api.github.com/users/jeremyk-91/orgsj[" -https://api.github.com/users/jeremyk-91/reposj]" 8https://api.github.com/users/jeremyk-91/events{/privacy}j_" 7https://api.github.com/users/jeremyk-91/received_eventsja" Userjc" uparents](}(j" (38e5906ccac8d7a4f69d855787d818cfb5baab9ej3" ^https://api.github.com/repos/palantir/atlasdb/commits/38e5906ccac8d7a4f69d855787d818cfb5baab9ejA" Shttps://github.com/palantir/atlasdb/commit/38e5906ccac8d7a4f69d855787d818cfb5baab9eu}(j" (8a763d36fa1de876f153aef9a0165342a8bbfacej3" ^https://api.github.com/repos/palantir/atlasdb/commits/8a763d36fa1de876f153aef9a0165342a8bbfacejA" Shttps://github.com/palantir/atlasdb/commit/8a763d36fa1de876f153aef9a0165342a8bbfaceuestats}(totalK 	additionsK 	deletionsK ufiles]u(b9a867ac9b4981ff75dcd5d8882089c3c7b1e0ee}(sha(b9a867ac9b4981ff75dcd5d8882089c3c7b1e0eenode_idEC_kwDOAjP5fdoAKGI5YTg2N2FjOWI0OTgxZmY3NWRjZDVkODg4MjA4OWMzYzdiMWUwZWUcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-04-27T16:43:24Zu	committer}(j" GitHubj" noreply@github.comj" 2023-04-27T16:43:24Zumessage-[CBT] Reorganize test job parallelism (#6548)tree}(j" (84f128f06622a6289b416a13079eb41d3844902eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/84f128f06622a6289b416a13079eb41d3844902euj" bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b9a867ac9b4981ff75dcd5d8882089c3c7b1e0ee
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkSqYsCRBK7hj4Ov3rIwAAZKMIAFPCZ8hwmGIoTJvBmwJdRYAN
CFfXOmsrVJWoW25H96pq/3jcj7RTQx3RWtYCgZgIgVcrpUys1KkMTuRYMcMeQenP
w5OkasOgvpcZBCmNmM//mr0AENz01wJMCUa2b0tH3JTU9Xc0i0THJjRUHs+nHdW/
otTGsjLCZke64e9Y7wx2MJiMVz+uxPEc72Zdvi2t2nC4Nf1D4WttKUcO2TS4t+Ij
4EoX6/+JXdJwudFCMe1aXmKznySbq1ZRtA8BO0TM9/m4uR2n7A4Yp9l0D6mHDyoM
OusTO/h3SIc2iRwEixDrXfr35Z6avJxlM4Gmt6HnUHsie7S0lBZjsU6/Rl57mg4=
=PzUQ
-----END PGP SIGNATURE-----
payloadX  tree 84f128f06622a6289b416a13079eb41d3844902e
parent 355775c5f173c0844ebe85791f507507062f10f8
author aalouane <30903736+ergo14@users.noreply.github.com> 1682613804 +0100
committer GitHub <noreply@github.com> 1682613804 +0000

[CBT] Reorganize test job parallelism (#6548)

 uuj" ^https://api.github.com/repos/palantir/atlasdb/commits/b9a867ac9b4981ff75dcd5d8882089c3c7b1e0eehtml_urlShttps://github.com/palantir/atlasdb/commit/b9a867ac9b4981ff75dcd5d8882089c3c7b1e0eecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b9a867ac9b4981ff75dcd5d8882089c3c7b1e0ee/commentsj" }(loginergo14idJj" MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j" #https://api.github.com/users/ergo14j" https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj" }(j" web-flowj" J/j" MDQ6VXNlcjE5ODY0NDQ3j" 4https://avatars.githubusercontent.com/u/19864447?v=4j" h5j" %https://api.github.com/users/web-flowj" https://github.com/web-flowj" /https://api.github.com/users/web-flow/followersj" <https://api.github.com/users/web-flow/following{/other_user}j" 5https://api.github.com/users/web-flow/gists{/gist_id}j" <https://api.github.com/users/web-flow/starred{/owner}{/repo}j" 3https://api.github.com/users/web-flow/subscriptionsj" *https://api.github.com/users/web-flow/orgsj" +https://api.github.com/users/web-flow/reposj" 6https://api.github.com/users/web-flow/events{/privacy}j" 5https://api.github.com/users/web-flow/received_eventsj" Userj" uparents]}(j" (355775c5f173c0844ebe85791f507507062f10f8j" ^https://api.github.com/repos/palantir/atlasdb/commits/355775c5f173c0844ebe85791f507507062f10f8j" Shttps://github.com/palantir/atlasdb/commit/355775c5f173c0844ebe85791f507507062f10f8uastats}(totalK.	additionsK'	deletionsKufiles](}(j" (4afe6cfa22e2263f723e942552446af1d1099428filename.circleci/config.ymlstatusmodifiedj" Kj" KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/b9a867ac9b4981ff75dcd5d8882089c3c7b1e0ee/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/b9a867ac9b4981ff75dcd5d8882089c3c7b1e0ee/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=b9a867ac9b4981ff75dcd5d8882089c3c7b1e0eepatch@@ -32,7 +32,7 @@ jobs:
           paths: [ . ]
 
   test:
-    parallelism: 12
+    parallelism: 14
     machine:
       image: ubuntu-2004:202111-02
     resource_class: xlargeu}(j" (8fce8e6875711ffb9f2690858b1cbe9871979bd5j" 0atlasdb-cassandra-integration-tests/build.gradlej" modifiedj" Kj" K j" Kj" https://github.com/palantir/atlasdb/blob/b9a867ac9b4981ff75dcd5d8882089c3c7b1e0ee/atlasdb-cassandra-integration-tests%2Fbuild.gradlej" https://github.com/palantir/atlasdb/raw/b9a867ac9b4981ff75dcd5d8882089c3c7b1e0ee/atlasdb-cassandra-integration-tests%2Fbuild.gradlej" https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fbuild.gradle?ref=b9a867ac9b4981ff75dcd5d8882089c3c7b1e0eej" X#  @@ -56,6 +56,24 @@ test {
     exclude '**/CassandraKeyValueServiceSweepTaskRunnerIntegrationTest.class'
 }
 
+task testSubset1(type: Test) {
+    include '**/CassandraKeyValueServiceTableCreationIntegrationTest.class'
+    include '**/CassandraKeyValueServiceTableManipulationIntegrationTest.class'
+    include '**/CassandraKeyValueServiceTransactionIntegrationTest.class'
+    include '**/CassandraKvsAsyncFallbackMechanismsTests.class'
+    include '**/CassandraKvsSerializableTransactionTest.class'
+}
+
+task testSubset2(type: Test) {
+    include '**/*Test.class'
+    include '**/*Tests.class'
+    exclude '**/CassandraKeyValueServiceTableCreationIntegrationTest.class'
+    exclude '**/CassandraKeyValueServiceTableManipulationIntegrationTest.class'
+    exclude '**/CassandraKeyValueServiceTransactionIntegrationTest.class'
+    exclude '**/CassandraKvsAsyncFallbackMechanismsTests.class'
+    exclude '**/CassandraKvsSerializableTransactionTest.class'
+}
+
 tasks.withType(Test) {
     testLogging {
         // set options for log level LIFECYCLEu}(j" (8c7080dd5d4974fb88000981969ccef6b2528af2j" $changelog/@unreleased/pr-6548.v2.ymlj" addedj" Kj" K j" Kj" |https://github.com/palantir/atlasdb/blob/b9a867ac9b4981ff75dcd5d8882089c3c7b1e0ee/changelog%2F%40unreleased%2Fpr-6548.v2.ymlj" {https://github.com/palantir/atlasdb/raw/b9a867ac9b4981ff75dcd5d8882089c3c7b1e0ee/changelog%2F%40unreleased%2Fpr-6548.v2.ymlj" https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6548.v2.yml?ref=b9a867ac9b4981ff75dcd5d8882089c3c7b1e0eej" @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[CBT] Reorganize test job parallelism'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6548u}(j" (0c1d3cb8bb00e7401e683ac5588b778df3c3be4fj" %scripts/circle-ci/run-circle-tests.shj" modifiedj" Kj" Kj" Kj" {https://github.com/palantir/atlasdb/blob/b9a867ac9b4981ff75dcd5d8882089c3c7b1e0ee/scripts%2Fcircle-ci%2Frun-circle-tests.shj" zhttps://github.com/palantir/atlasdb/raw/b9a867ac9b4981ff75dcd5d8882089c3c7b1e0ee/scripts%2Fcircle-ci%2Frun-circle-tests.shj" https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=b9a867ac9b4981ff75dcd5d8882089c3c7b1e0eej" X8  @@ -13,13 +13,13 @@ function checkDocsBuild {
      make html
 }
 
-CONTAINER_1=(':atlasdb-cassandra-integration-tests:check')
+CONTAINER_1=(':atlasdb-cassandra-integration-tests:testSubset1')
 
 CONTAINER_2=(':atlasdb-ete-tests:check')
 
 CONTAINER_3=(':atlasdb-dbkvs:check' ':atlasdb-cassandra:check' ':timelock-server:integTest')
 
-CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-impl-shared:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:dbkvsTest')
+CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:dbkvsTest')
 
 CONTAINER_5=(':lock-impl:check' ':atlasdb-dbkvs-tests:postgresTest' ':atlasdb-ete-test-utils:check' ':atlasdb-ete-tests:longTest')
 
@@ -33,10 +33,17 @@ CONTAINER_9=(':atlasdb-ete-tests:oracleTest')
 
 CONTAINER_10=('atlasdb-dbkvs-tests:oracleTest')
 
-CONTAINER_11=('compileJava' 'compileTestJava')
+CONTAINER_11=(':atlasdb-impl-shared:check' )
+
+CONTAINER_12=(':atlasdb-cassandra-integration-tests:testSubset2')
+
+CONTAINER_13=('compileJava' 'compileTestJava')
+
+# Excluded as it is split into two subsets
+EXCLUDED=(':atlasdb-cassandra-integration-tests:check')
 
 # Container 0 - runs tasks not found in the below containers
-CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}")
+CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}" "${CONTAINER_5[@]}" "${CONTAINER_6[@]}" "${CONTAINER_7[@]}" "${CONTAINER_8[@]}" "${CONTAINER_9[@]}" "${CONTAINER_10[@]}" "${CONTAINER_11[@]}" "${CONTAINER_12[@]}" "${EXCLUDED[@]}")
 
 for task in "${CONTAINER_0_EXCLUDE[@]}"
 do
@@ -64,7 +71,7 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
 # External builds have a 16gb limit.
-if [ "$CIRCLE_NODE_INDEX" -eq "11" ]; then
+if [ "$CIRCLE_NODE_INDEX" -eq "13" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
@@ -85,5 +92,7 @@ case $CIRCLE_NODE_INDEX in
     8) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_8[@]} ;;
     9) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_9[@]} ;;
     10) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_10[@]} ;;
-    11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
+    11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} ;;
+    12) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_12[@]} ;;
+    13) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_13[@]} --stacktrace -PenableErrorProne=true && checkDocsBuild ;;
 esacueu(83d382e98cbbd7f99ddaaa6dde453ff44a43b7e7}(sha(83d382e98cbbd7f99ddaaa6dde453ff44a43b7e7node_idEC_kwDOAjP5fdoAKDgzZDM4MmU5OGNiYmQ3Zjk5ZGRhYWE2ZGRlNDUzZmY0NGE0M2I3ZTccommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-08-14T16:10:12Zu	committer}(j# svc-excavator-botj # svc-excavator-bot@palantir.comj"# 2023-08-14T16:10:12ZumessageExcavator:  Format Java filestree}(j# (92cefd49607db55a71b848cb92579096c10dc831url`https://api.github.com/repos/palantir/atlasdb/git/trees/92cefd49607db55a71b848cb92579096c10dc831uj.# bhttps://api.github.com/repos/palantir/atlasdb/git/commits/83d382e98cbbd7f99ddaaa6dde453ff44a43b7e7
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmTaUeQJEMmvEkpISILgAABnxgEAw0dLkk6ziz6F8hFEI3lPnxks
9qxOJEm46uBfiJQZdZsBAI2w4jWaAnYec2FvWeagRGJd5Mvrnfn9bq9n31d+Vnqq
=THXO
-----END PGP SIGNATURE-----
payloadX  tree 92cefd49607db55a71b848cb92579096c10dc831
parent 4c56a0fe53d8323106ccb416245523463e5bcb79
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1692029412 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1692029412 +0000

Excavator:  Format Java filesuuj.# ^https://api.github.com/repos/palantir/atlasdb/commits/83d382e98cbbd7f99ddaaa6dde453ff44a43b7e7html_urlShttps://github.com/palantir/atlasdb/commit/83d382e98cbbd7f99ddaaa6dde453ff44a43b7e7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/83d382e98cbbd7f99ddaaa6dde453ff44a43b7e7/commentsj# }(loginsvc-excavator-botidJj# MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j.# .https://api.github.com/users/svc-excavator-botj<# $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj$# }(jA# svc-excavator-botjC# Jj# MDQ6VXNlcjMzMjY2MzY4jE# 4https://avatars.githubusercontent.com/u/33266368?v=4jG# h5j.# .https://api.github.com/users/svc-excavator-botj<# $https://github.com/svc-excavator-botjJ# 8https://api.github.com/users/svc-excavator-bot/followersjL# Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}jN# >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}jP# Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}jR# <https://api.github.com/users/svc-excavator-bot/subscriptionsjT# 3https://api.github.com/users/svc-excavator-bot/orgsjV# 4https://api.github.com/users/svc-excavator-bot/reposjX# ?https://api.github.com/users/svc-excavator-bot/events{/privacy}jZ# >https://api.github.com/users/svc-excavator-bot/received_eventsj\# Userj^# uparents]}(j# (4c56a0fe53d8323106ccb416245523463e5bcb79j.# ^https://api.github.com/repos/palantir/atlasdb/commits/4c56a0fe53d8323106ccb416245523463e5bcb79j<# Shttps://github.com/palantir/atlasdb/commit/4c56a0fe53d8323106ccb416245523463e5bcb79uastats}(totalK	additionsK	deletionsKufiles]}(j# (037ef39a3092161cfa98a70b59b4823ba704c0e8filenamebuild.gradlestatusmodifiedjx# Kjy# KchangesKblob_url^https://github.com/palantir/atlasdb/blob/83d382e98cbbd7f99ddaaa6dde453ff44a43b7e7/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/83d382e98cbbd7f99ddaaa6dde453ff44a43b7e7/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=83d382e98cbbd7f99ddaaa6dde453ff44a43b7e7patchXw  @@ -17,7 +17,7 @@ buildscript {
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.34.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.35.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.22.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
         classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.4'uau(865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419}(sha(865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419node_idEC_kwDOAjP5fdoAKDg2NWVjOGQyYmIwNjA3OWUxZWIyMmEyZWZiYjdhZjdlMGU2Y2Y0MTkcommit}(author}(nameJeremy Kongemailjeremykong@hotmail.comdate2023-04-13T21:23:54Zu	committer}(j# svc-autoreleasej# -pd-foundry-infrastructure-notify@palantir.comj# 2023-04-13T21:23:54Zumessage"Autorelease 0.833.0-rc3

[skip ci]tree}(j# (df1f28450b2d8c4d0e2d11449133cee2bf0f5319url`https://api.github.com/repos/palantir/atlasdb/git/trees/df1f28450b2d8c4d0e2d11449133cee2bf0f5319uj# bhttps://api.github.com/repos/palantir/atlasdb/git/commits/865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmQ4cusACgkQhbrR8ip7mDA3HAD/Wh/fkqBDnd/X55W5Nj3uYuxh
z2wNLkVSyAp8aURhfUoBALYC0vvDAobI2H5fFR7GmoUJ2oWOto8jFWODcXhGUE4H
=yJwn
-----END PGP SIGNATURE-----
payloadX  tree df1f28450b2d8c4d0e2d11449133cee2bf0f5319
parent ef49fadb5c74a3f6141025482d7ccd5cbe3aee58
author Jeremy Kong <jeremykong@hotmail.com> 1681421034 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1681421034 +0000

Autorelease 0.833.0-rc3

[skip ci]uuj# ^https://api.github.com/repos/palantir/atlasdb/commits/865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419html_urlShttps://github.com/palantir/atlasdb/commit/865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/865ec8d2bb06079e1eb22a2efbb7af7e0e6cf419/commentsj# }(login
jeremyk-91idJZ j# MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j# 'https://api.github.com/users/jeremyk-91j# https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj# }(j# svc-autoreleasej# J(j# MDQ6VXNlcjUxNzE4MzQ2j# 4https://avatars.githubusercontent.com/u/51718346?v=4j# h5j# ,https://api.github.com/users/svc-autoreleasej# "https://github.com/svc-autoreleasej# 6https://api.github.com/users/svc-autorelease/followersj# Chttps://api.github.com/users/svc-autorelease/following{/other_user}j# <https://api.github.com/users/svc-autorelease/gists{/gist_id}j# Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j# :https://api.github.com/users/svc-autorelease/subscriptionsj# 1https://api.github.com/users/svc-autorelease/orgsj# 2https://api.github.com/users/svc-autorelease/reposj# =https://api.github.com/users/svc-autorelease/events{/privacy}j# <https://api.github.com/users/svc-autorelease/received_eventsj# Userj# uparents]}(j# (ef49fadb5c74a3f6141025482d7ccd5cbe3aee58j# ^https://api.github.com/repos/palantir/atlasdb/commits/ef49fadb5c74a3f6141025482d7ccd5cbe3aee58j# Shttps://github.com/palantir/atlasdb/commit/ef49fadb5c74a3f6141025482d7ccd5cbe3aee58uastats}(totalK 	additionsK 	deletionsK ufiles]u(deee841088e4d44ed58d1613cb1f3d59d371b716}(sha(deee841088e4d44ed58d1613cb1f3d59d371b716node_idEC_kwDOAjP5fdoAKGRlZWU4NDEwODhlNGQ0NGVkNThkMTYxM2NiMWYzZDU5ZDM3MWI3MTYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-25T10:09:48Zu	committer}(j# 
Ahmed Alouanej# aalouane@palantir.comj$ 2023-04-25T10:09:48Zumessage	slim downtree}(j# (ecbaec2b08f68c83a852e27b81dad73c6f26c48furl`https://api.github.com/repos/palantir/atlasdb/git/trees/ecbaec2b08f68c83a852e27b81dad73c6f26c48fuj
$ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/deee841088e4d44ed58d1613cb1f3d59d371b716
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRHpuwACgkQPlMHVIT1
yhqmRAgArYqtMCoyDSauleOOP4kDYZAjjp/BEGTT7zDXZWx6CU0+154z3R1bqG+a
0ys/1u+El6BofQ/b2iFgomj6yh4TItzWavhUU2rFGRTmwjCo7f1mZxCH6gb9JY3v
7sn/Pfa4tqcE3n7grp30X7MdsBDqvuiIFjXdbaghyPDBcttAmeZ8+w3TpKzJH8io
SP8o/47NoVu0vrrid9NTbi4TILm22+W5oAQb2F8f9S9ezcN2OFrfLboUJbj7T9Q4
SyFTOZMT2NITcg8QLX5vyueDZPV40goHMfDkiqGjng4xZAioVkrSW9xZeGWQmsIY
uOolnfNWLRmUzC/4OWcTJHdK+X+68w==
=s6y2
-----END PGP SIGNATURE-----payloadtree ecbaec2b08f68c83a852e27b81dad73c6f26c48f
parent e98ea7f5640e5e30a9eb15174251b01a152b9901
author Ahmed Alouane <aalouane@palantir.com> 1682417388 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682417388 +0100

slim down
uuj
$ ^https://api.github.com/repos/palantir/atlasdb/commits/deee841088e4d44ed58d1613cb1f3d59d371b716html_urlShttps://github.com/palantir/atlasdb/commit/deee841088e4d44ed58d1613cb1f3d59d371b716comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/deee841088e4d44ed58d1613cb1f3d59d371b716/commentsj# }(loginergo14idJj# MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j
$ #https://api.github.com/users/ergo14j$ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj$ }(j $ ergo14j"$ Jj# MDQ6VXNlcjMwOTAzNzM2j$$ 4https://avatars.githubusercontent.com/u/30903736?v=4j&$ h5j
$ #https://api.github.com/users/ergo14j$ https://github.com/ergo14j)$ -https://api.github.com/users/ergo14/followersj+$ :https://api.github.com/users/ergo14/following{/other_user}j-$ 3https://api.github.com/users/ergo14/gists{/gist_id}j/$ :https://api.github.com/users/ergo14/starred{/owner}{/repo}j1$ 1https://api.github.com/users/ergo14/subscriptionsj3$ (https://api.github.com/users/ergo14/orgsj5$ )https://api.github.com/users/ergo14/reposj7$ 4https://api.github.com/users/ergo14/events{/privacy}j9$ 3https://api.github.com/users/ergo14/received_eventsj;$ Userj=$ uparents]}(j# (e98ea7f5640e5e30a9eb15174251b01a152b9901j
$ ^https://api.github.com/repos/palantir/atlasdb/commits/e98ea7f5640e5e30a9eb15174251b01a152b9901j$ Shttps://github.com/palantir/atlasdb/commit/e98ea7f5640e5e30a9eb15174251b01a152b9901uastats}(totalK	additionsK	deletionsKufiles](}(j# (697bebce05ea5400b3ed453d3cb76e4e2ffc631efilenameTatlasdb-cli/src/test/java/com/palantir/atlasdb/cli/command/TestTimestampCommand.javastatusmodifiedjW$ KjX$ K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/deee841088e4d44ed58d1613cb1f3d59d371b716/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.javaraw_urlhttps://github.com/palantir/atlasdb/raw/deee841088e4d44ed58d1613cb1f3d59d371b716/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.java?ref=deee841088e4d44ed58d1613cb1f3d59d371b716patchX  @@ -37,6 +37,7 @@
 import com.palantir.atlasdb.services.test.DaggerTestAtlasDbServices;
 import com.palantir.atlasdb.services.test.TestAtlasDbServices;
 import com.palantir.common.time.Clock;
+import com.palantir.flake.FlakeRetryingRule;
 import com.palantir.flake.ShouldRetry;
 import com.palantir.lock.LockClient;
 import com.palantir.lock.LockDescriptor;
@@ -61,6 +62,7 @@
 import org.junit.After;
 import org.junit.Before;
 import org.junit.BeforeClass;
+import org.junit.Rule;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
@@ -72,6 +74,9 @@ public class TestTimestampCommand {
     private static AtlasDbServicesFactory moduleFactory;
     private static List<String> cliArgs;
 
+    @Rule
+    public FlakeRetryingRule flakeRetryingRule = new FlakeRetryingRule();
+
     @BeforeClass
     public static void oneTimeSetup() throws Exception {
         lock = StringLockDescriptor.of("lock");u}(j# (76adb726fa7cb740b591032215e91fc1a95fe5bcj]$ ctimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchValueIntegrationTest.javaj_$ modifiedjW$ KjX$ Kja$ Kjb$ https://github.com/palantir/atlasdb/blob/deee841088e4d44ed58d1613cb1f3d59d371b716/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.javajd$ https://github.com/palantir/atlasdb/raw/deee841088e4d44ed58d1613cb1f3d59d371b716/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.javajf$ https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.java?ref=deee841088e4d44ed58d1613cb1f3d59d371b716jh$ X^  @@ -75,7 +75,7 @@
 import org.junit.rules.RuleChain;
 import org.junit.rules.TestRule;
 
-@ShouldRetry // Occasionally there are timeouts when talking to Timelock, which cause a bunch of tests to flake
+@ShouldRetry(numAttempts = 15) // Occasionally there are timeouts when talking to Timelock, which cause a bunch of tests to flake
 public final class LockWatchValueIntegrationTest {
     private static final byte[] DATA_1 = "foo".getBytes(StandardCharsets.UTF_8);
     private static final byte[] DATA_2 = "Caecilius est in horto".getBytes(StandardCharsets.UTF_8);
@@ -128,7 +128,6 @@ public void before() {
         LockWatchIntegrationTestUtilities.awaitTableWatched(txnManager, TABLE_REF);
     }
 
-    @ShouldRetry
     @Test
     public void readOnlyTransactionsDoNotUseCaching() {
         putValue();
@@ -143,7 +142,6 @@ public void readOnlyTransactionsDoNotUseCaching() {
         });
     }
 
-    @ShouldRetry
     @Test
     public void effectivelyReadOnlyTransactionsPublishValuesToCentralCache() {
         putValue();
@@ -172,7 +170,6 @@ public void effectivelyReadOnlyTransactionsPublishValuesToCentralCache() {
         assertThat(result).containsExactlyInAnyOrderEntriesOf(result2);
     }
 
-    @ShouldRetry
     @Test
     public void readWriteTransactionsPublishValuesToCentralCache() {
         putValue();
@@ -199,7 +196,6 @@ public void readWriteTransactionsPublishValuesToCentralCache() {
         assertThat(result).containsExactlyInAnyOrderEntriesOf(result2);
     }
 
-    @ShouldRetry
     @Test
     public void serializableTransactionsThrowOnCachedReadWriteConflicts() {
         putValue();
@@ -221,7 +217,6 @@ public void serializableTransactionsThrowOnCachedReadWriteConflicts() {
                 .hasMessageContaining("There was a read-write conflict on table");
     }
 
-    @ShouldRetry
     @Test
     public void serializableTransactionsDoNotThrowWhenOverwritingAPreviouslyCachedValue() {
         putValue();
@@ -235,7 +230,6 @@ public void serializableTransactionsDoNotThrowWhenOverwritingAPreviouslyCachedVa
                 .doesNotThrowAnyException();
     }
 
-    @ShouldRetry
     @Test
     public void serializableTransactionsReadViaTheCacheForConflictChecking() {
         putValue();
@@ -251,7 +245,6 @@ public void serializableTransactionsReadViaTheCacheForConflictChecking() {
         });
     }
 
-    @ShouldRetry
     @Test
     public void putsCauseInvalidationsInSubsequentTransactions() {
         putValue();
@@ -281,7 +274,6 @@ public void putsCauseInvalidationsInSubsequentTransactions() {
         });
     }
 
-    @ShouldRetry
     @Test
     public void leaderElectionFlushesCache() {
         putValue();
@@ -293,7 +285,6 @@ public void leaderElectionFlushesCache() {
         readValueAndAssertLoadedFromRemote();
     }
 
-    @ShouldRetry
     @Test
     public void leaderElectionDuringReadOnlyTransactionDoesNotCauseItToFail() {
         putValue();
@@ -330,7 +321,6 @@ public void leaderElectionDuringReadOnlyTransactionDoesNotCauseItToFail() {
         });
     }
 
-    @ShouldRetry
     @Test
     public void leaderElectionDuringWriteTransactionCausesTransactionToRetry() {
         putValue();
@@ -359,7 +349,6 @@ public void leaderElectionDuringWriteTransactionCausesTransactionToRetry() {
         });
     }
 
-    @ShouldRetry
     @Test
     public void failedValidationCausesNoOpCacheToBeUsed() {
         createTransactionManager(1.0);
@@ -383,7 +372,6 @@ public void failedValidationCausesNoOpCacheToBeUsed() {
         });
     }
 
-    @ShouldRetry
     @Test
     public void getRowsCachedValidatesCorrectly() {
         createTransactionManager(1.0);
@@ -432,7 +420,6 @@ public void getRowsCachedValidatesCorrectly() {
         assertThat(ByteArrayUtilities.areRowResultsEqual(remoteRead, cacheRead)).isTrue();
     }
 
-    @ShouldRetry
     @Test
     public void getRowsUsesCacheAsExpected() {
         txnManager.runTaskThrowOnConflict(txn -> {
@@ -481,7 +468,6 @@ public void getRowsUsesCacheAsExpected() {
         });
     }
 
-    @ShouldRetry
     @Test
     public void nearbyCommitsDoNotAffectResultsPresentInCache() {
         createTransactionManager(1.0);
@@ -512,7 +498,6 @@ public void nearbyCommitsDoNotAffectResultsPresentInCache() {
                 .doesNotThrowAnyException();
     }
 
-    @ShouldRetry
     @Test
     public void lateAbortingTransactionDoesNotFlushValuesToCentralCache() {
         txnManager.runTaskThrowOnConflict(txn -> {
@@ -560,7 +545,7 @@ public void lateAbortingTransactionDoesNotFlushValuesToCentralCache() {
     }
 
     @Test
-    @ShouldRetry(numAttempts = 15) // The test fails when trying to cache a value that is currently locked.
+    // The test fails when trying to cache a value that is currently locked.
     // The open question is whether this _should_ fail when there is a locked value being cached on top of, or if
     // there is a better way to handle this.
     public void valueStressTest() {ueu(249f2dbb05c8f805af4aeaded7a2c5c096126281}(sha(249f2dbb05c8f805af4aeaded7a2c5c096126281node_idEC_kwDOAjP5fdoAKDI0OWYyZGJiMDVjOGY4MDVhZjRhZWFkZWQ3YTJjNWMwOTYxMjYyODEcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-29T16:34:22Zu	committer}(j|$ 	Tom Papkej~$ tpapke@palantir.comj$ 2023-06-29T16:34:22ZumessageRemove old testtree}(jt$ (b04ac8528b82bab84ed3ce67534b3a56ac1272f8url`https://api.github.com/repos/palantir/atlasdb/git/trees/b04ac8528b82bab84ed3ce67534b3a56ac1272f8uj$ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/249f2dbb05c8f805af4aeaded7a2c5c096126281
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSdso4ACgkQmF9s0kaF
Iw0QLgf/UuR9v42NiRFqhEGlk3YRjXjhmnbMJmsIMbUItitu3+1iCn7ubtlEJVeJ
Wjw/EngAtRHl+Wf1CSwGt7/KD+sgpspiS7h9/th3N7zTiXNQqEGmTLp9VzOPtb9q
YWQBXbHK50UXtlBc+9Jh6Q8jKoyw78aEdyU4i4BGABLHWlrmXLyyh36JuKKCSO8q
7rBwp3GkIHyydBZ6YXvDYgJPBwkt9RsboDQqhw9cU78mttxv9376FmEeg0NZLm5q
h0GkrxCIuZb5PYLpnMXsQMBoJ8FfOLCyINdtgxDTQoCOrykEXYYn5pDv07TVrNoX
R09QwUi6nHtSSJVIGsvtKv3WpsvBsw==
=NlJX
-----END PGP SIGNATURE-----payloadtree b04ac8528b82bab84ed3ce67534b3a56ac1272f8
parent 537cf00ab5c7d8724f5f3468e33c1689b6506b37
author Tom Papke <tpapke@palantir.com> 1688056462 +0100
committer Tom Papke <tpapke@palantir.com> 1688056462 +0100

Remove old test
uuj$ ^https://api.github.com/repos/palantir/atlasdb/commits/249f2dbb05c8f805af4aeaded7a2c5c096126281html_urlShttps://github.com/palantir/atlasdb/commit/249f2dbb05c8f805af4aeaded7a2c5c096126281comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/249f2dbb05c8f805af4aeaded7a2c5c096126281/commentsjz$ }(login	ToemmscheidJbojv$ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j$ &https://api.github.com/users/Toemmschej$ https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj$ }(j$ 	Toemmschej$ Jbojv$ MDQ6VXNlcjQzNjc1NDkwj$ 4https://avatars.githubusercontent.com/u/43675490?v=4j$ h5j$ &https://api.github.com/users/Toemmschej$ https://github.com/Toemmschej$ 0https://api.github.com/users/Toemmsche/followersj$ =https://api.github.com/users/Toemmsche/following{/other_user}j$ 6https://api.github.com/users/Toemmsche/gists{/gist_id}j$ =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j$ 4https://api.github.com/users/Toemmsche/subscriptionsj$ +https://api.github.com/users/Toemmsche/orgsj$ ,https://api.github.com/users/Toemmsche/reposj$ 7https://api.github.com/users/Toemmsche/events{/privacy}j$ 6https://api.github.com/users/Toemmsche/received_eventsj$ Userj$ uparents]}(jt$ (537cf00ab5c7d8724f5f3468e33c1689b6506b37j$ ^https://api.github.com/repos/palantir/atlasdb/commits/537cf00ab5c7d8724f5f3468e33c1689b6506b37j$ Shttps://github.com/palantir/atlasdb/commit/537cf00ab5c7d8724f5f3468e33c1689b6506b37uastats}(totalK 	additionsK	deletionsKufiles]}(jt$ (0fea3d4be3c88480f17d3ce361f7cb58d0f3defefilenameNlock-api/src/test/java/com/palantir/lock/client/IdentifiedLockRequestTest.javastatusmodifiedj$ Kj$ KchangesK blob_urlhttps://github.com/palantir/atlasdb/blob/249f2dbb05c8f805af4aeaded7a2c5c096126281/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/249f2dbb05c8f805af4aeaded7a2c5c096126281/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.java?ref=249f2dbb05c8f805af4aeaded7a2c5c096126281patchX  @@ -45,11 +45,6 @@ public class IdentifiedLockRequestTest {
             .build();
     private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(ImmutableMap.of(
             StringLockDescriptor.of("lock1"), ChangeMetadata.created("something".getBytes(StandardCharsets.UTF_8))));
-    private static final String SERIALIZED_LOCK_REQUEST = "{"
-            + "\"requestId\":\"885afd9c-de62-44ff-a517-5db14b71bfaa\","
-            + "\"lockDescriptors\":[{\"bytes\":\"Zm9v\"}],"
-            + "\"acquireTimeoutMs\":123,"
-            + "\"clientDescription\":\"Thread: main\"}";
     private static final ObjectMapper mapper = new ObjectMapper()
             .enable(SerializationFeature.INDENT_OUTPUT)
             .registerModule(new Jdk8Module())
@@ -64,13 +59,6 @@ boolean isDev() {
         }
     }
 
-    @Test
-    public void ensureSerdeBackcompat() throws Exception {
-        IdentifiedLockRequest request = mapper.readValue(SERIALIZED_LOCK_REQUEST, IdentifiedLockRequest.class);
-        String deserialized = mapper.writeValueAsString(request);
-        assertThat(mapper.readTree(deserialized)).isEqualTo(mapper.readTree(SERIALIZED_LOCK_REQUEST));
-    }
-
     @Test
     public void baselineRequestIsFullCompat() {
         assertSerializedEquals(BASELINE_REQUEST, "baseline");
@@ -90,8 +78,8 @@ private void assertSerializedEquals(IdentifiedLockRequest request, String jsonFi
             if (MODE.isDev()) {
                 mapper.writeValue(path.toFile(), request);
             }
-            String deserialized = mapper.writeValueAsString(request);
-            assertThat(mapper.readTree(deserialized))
+            String serialized = serialize(request);
+            assertThat(mapper.readTree(serialized))
                     .as("Serialization yields identical JSON representation")
                     .isEqualTo(mapper.readTree(Files.readString(path)));
         } catch (Throwable t) {
@@ -100,10 +88,20 @@ private void assertSerializedEquals(IdentifiedLockRequest request, String jsonFi
     }
 
     private void assertDeserializedEquals(String jsonFileName, IdentifiedLockRequest request) {
+        assertThat(deserialize(jsonFileName)).isEqualTo(request);
+    }
+
+    private String serialize(IdentifiedLockRequest request) {
+        try {
+            return mapper.writeValueAsString(request);
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private IdentifiedLockRequest deserialize(String jsonFileName) {
         try {
-            assertThat(mapper.readValue(Files.readString(getJsonPath(jsonFileName)), IdentifiedLockRequest.class))
-                    .as("Deserialization yields equal Java representation")
-                    .isEqualTo(request);
+            return mapper.readValue(Files.readString(getJsonPath(jsonFileName)), IdentifiedLockRequest.class);
         } catch (Throwable t) {
             throw new RuntimeException(t);
         }uau(b162448980c8dcd4370c11a11e92f79762579b05}(sha(b162448980c8dcd4370c11a11e92f79762579b05node_idEC_kwDOAjP5fdoAKGIxNjI0NDg5ODBjOGRjZDQzNzBjMTFhMTFlOTJmNzk3NjI1NzliMDUcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-02-23T20:26:22Zu	committer}(j$ David Schlosnaglej$ davids@palantir.comj$ 2023-02-23T20:26:22ZumessageOMerge remote-tracking branch 'origin/develop' into roomba/versions-props-latesttree}(j$ (919d56a28c7d02ece84411224dda0a7691f92fbfurl`https://api.github.com/repos/palantir/atlasdb/git/trees/919d56a28c7d02ece84411224dda0a7691f92fbfuj% bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b162448980c8dcd4370c11a11e92f79762579b05
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmP3y/AACgkQR9hsJ74Q
0l+MswgAiaFaOW9XsIEi+4unqcCmig2+1uB+NwsWZy+Xn91y9xLPgCQN0XaYxa1R
Wo3INNBMF6VC5UjzDrmFeyn4TVxKz56IjxpeJRN/RqRIBhYcFKlgzT1GXJHw6VU6
z+srCekPChyQd6LDpo75wpMsJ6K+L4lku496H1QdgrleBXJzV5T6JULw3lp1UYJ9
tsIUX0jEjwBnCBjN3vDc2wyJs15VVMlRlDQ7WPcL4YbylSQWSZAWmdTe/XILWRxV
qFQLL61JuV+e96bt20hUK46yFCAtBL45zn1QTDMLNbCPu+0wr1ILt6MvdJby0mW9
nJsFhXmARQdOSPfy/uleYzAaHBdo9g==
=aPHA
-----END PGP SIGNATURE-----payloadXb  tree 919d56a28c7d02ece84411224dda0a7691f92fbf
parent 6968365ad100ec8b0dc5afe4340571fb4015a546
parent 5a1845eed26712cd2eeb8775b1d0a4dd30f35ead
author David Schlosnagle <davids@palantir.com> 1677183982 -0500
committer David Schlosnagle <davids@palantir.com> 1677183982 -0500

Merge remote-tracking branch 'origin/develop' into roomba/versions-props-latest
uuj% ^https://api.github.com/repos/palantir/atlasdb/commits/b162448980c8dcd4370c11a11e92f79762579b05html_urlShttps://github.com/palantir/atlasdb/commit/b162448980c8dcd4370c11a11e92f79762579b05comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b162448980c8dcd4370c11a11e92f79762579b05/commentsj$ }(loginschlosnaidMBj$ MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j% %https://api.github.com/users/schlosnaj% https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj$ }(j% schlosnaj% MBj$ MDQ6VXNlcjU0NTk0j% 1https://avatars.githubusercontent.com/u/54594?v=4j% h5j% %https://api.github.com/users/schlosnaj% https://github.com/schlosnaj% /https://api.github.com/users/schlosna/followersj!% <https://api.github.com/users/schlosna/following{/other_user}j#% 5https://api.github.com/users/schlosna/gists{/gist_id}j%% <https://api.github.com/users/schlosna/starred{/owner}{/repo}j'% 3https://api.github.com/users/schlosna/subscriptionsj)% *https://api.github.com/users/schlosna/orgsj+% +https://api.github.com/users/schlosna/reposj-% 6https://api.github.com/users/schlosna/events{/privacy}j/% 5https://api.github.com/users/schlosna/received_eventsj1% Userj3% uparents](}(j$ (6968365ad100ec8b0dc5afe4340571fb4015a546j% ^https://api.github.com/repos/palantir/atlasdb/commits/6968365ad100ec8b0dc5afe4340571fb4015a546j% Shttps://github.com/palantir/atlasdb/commit/6968365ad100ec8b0dc5afe4340571fb4015a546u}(j$ (5a1845eed26712cd2eeb8775b1d0a4dd30f35eadj% ^https://api.github.com/repos/palantir/atlasdb/commits/5a1845eed26712cd2eeb8775b1d0a4dd30f35eadj% Shttps://github.com/palantir/atlasdb/commit/5a1845eed26712cd2eeb8775b1d0a4dd30f35eaduestats}(totalM&	additionsM	deletionsM ufiles](}(j$ (6a5f83a6198ffc81c968382b5af0e42c79e634dffilename/.baseline/idea/intellij-java-palantir-style.xmlstatusmodifiedjQ% KjR% K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/.baseline%2Fidea%2Fintellij-java-palantir-style.xmlraw_urlhttps://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/.baseline%2Fidea%2Fintellij-java-palantir-style.xmlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/.baseline%2Fidea%2Fintellij-java-palantir-style.xml?ref=b162448980c8dcd4370c11a11e92f79762579b05patchX?  @@ -44,8 +44,10 @@
               <package name="" withSubpackages="true" static="false" />
             </value>
           </option>
+          <!-- Should be a superset of https://github.com/google/error-prone/blob/c481b3f9c2da112db36ccfcbf64e755261a127ab/core/src/main/java/com/google/errorprone/bugpatterns/BadImport.java#L63 -->
           <DO_NOT_IMPORT_INNER>
             <CLASS name="Builder" />
+            <CLASS name="BuilderFactory" />
             <CLASS name="Callback" />
             <CLASS name="Class" />
             <CLASS name="Entry" />
@@ -54,6 +56,7 @@
             <CLASS name="Type" />
             <CLASS name="Key" />
             <CLASS name="Id" />
+            <CLASS name="Identifier" />
             <CLASS name="Provider" />
           </DO_NOT_IMPORT_INNER>
         </GroovyCodeStyleSettings>u}(j$ (3d269f843cf67affd48f206b2e3ddfe0c789023ajW% .palantir/revapi.ymljY% modifiedjQ% K"jR% K j[% K"j\% hhttps://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/.palantir%2Frevapi.ymlj^% ghttps://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/.palantir%2Frevapi.ymlj`% zhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% Xk
  @@ -35,3 +35,37 @@ acceptedBreaks:
       new: "method org.apache.thrift.transport.TSocket com.palantir.atlasdb.keyvalue.cassandra.InstrumentedTSocket.Factory::create(java.lang.String,\
         \ int, int) throws org.apache.thrift.transport.TTransportException"
       justification: "required for libthrift upgrade"
+  "0.792.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.cassandra.backup.CassandraRepairHelper"
+      justification: "Unused backup restore code"
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.cassandra.backup.ClusterMetadataUtils"
+      justification: "Unused backup restore code"
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.cassandra.backup.CqlCluster"
+      justification: "Unused backup restore code"
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.cassandra.backup.ImmutableRangesForRepair"
+      justification: "Unused backup restore code"
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.cassandra.backup.RangesForRepair"
+      justification: "Unused backup restore code"
+    - code: "java.class.removed"
+      old: "interface com.palantir.atlasdb.backup.KvsRunner"
+      justification: "Unused backup restore code"
+    - code: "java.method.removed"
+      old: "method java.util.Set<com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken>\
+        \ com.palantir.atlasdb.cassandra.backup.CqlSession::retrieveRowKeysAtConsistencyAll(java.util.List<com.datastax.driver.core.Statement>)"
+      justification: "Unused backup restore code"
+  "0.795.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.removed"
+      old: "method com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken::getLowerExclusive(com.google.common.collect.Range<com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken>)"
+      justification: "Removing unused ABR code"
+    - code: "java.method.removed"
+      old: "method com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::createInitialized(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig, com.palantir.refreshable.Refreshable<com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig>,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.Blacklist, com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraClientPoolMetrics)"
+      justification: "Removing unused ABR code"u}(j$ (ef833a324cd55291b26e6a85fe96a0f12bbeff3bjW% atlasdb-backup/build.gradlejY% removedjQ% K jR% K!j[% K!j\% ohttps://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fbuild.gradlej^% nhttps://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fbuild.gradlej`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fbuild.gradle?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% XG  @@ -1,33 +0,0 @@
-apply from: "../gradle/shared.gradle"
-
-dependencies {
-    implementation 'com.datastax.cassandra:cassandra-driver-core'
-    implementation 'com.fasterxml.jackson.core:jackson-databind'
-    implementation 'com.google.guava:guava'
-    implementation 'com.palantir.common:streams'
-    implementation 'com.palantir.conjure.java.api:service-config'
-    implementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
-    implementation 'com.palantir.dialogue:dialogue-clients'
-    implementation 'com.palantir.refreshable:refreshable'
-    implementation 'com.palantir.safe-logging:safe-logging'
-    implementation 'com.palantir.tokens:auth-tokens'
-    implementation 'org.immutables:value'
-    implementation 'org.immutables:value::annotations'
-    implementation project(':atlasdb-api')
-    implementation project(':atlasdb-cassandra')
-    implementation project(':atlasdb-client')
-    implementation project(':atlasdb-config')
-    implementation project(':atlasdb-coordination-impl')
-    implementation project(':atlasdb-impl-shared')
-    implementation project(':commons-annotations')
-    implementation project(':commons-executors')
-    implementation project(':timelock-api:timelock-api-dialogue')
-    implementation project(':timelock-api:timelock-api-objects')
-    implementation project(':timestamp-impl')
-
-    testImplementation 'com.palantir.safe-logging:preconditions-assertj'
-    testImplementation 'org.mockito:mockito-core'
-    testImplementation 'commons-codec:commons-codec'
-
-    annotationProcessor 'org.immutables:value'
-}u}(j$ (f4a7d5b83b023a8dd0a88c61f13c9cb3c8ccf254jW% Patlasdb-backup/src/main/java/com/palantir/atlasdb/backup/AtlasBackupService.javajY% removedjQ% K jR% M=j[% M=j\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupService.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupService.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupService.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% XO?  @@ -1,317 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Sets;
-import com.google.common.util.concurrent.Futures;
-import com.google.common.util.concurrent.ListenableFuture;
-import com.google.common.util.concurrent.MoreExecutors;
-import com.palantir.atlasdb.backup.api.AtlasBackupClient;
-import com.palantir.atlasdb.backup.api.AtlasBackupClientBlocking;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompleteBackupRequest;
-import com.palantir.atlasdb.backup.api.CompleteBackupResponse;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.InProgressBackupToken;
-import com.palantir.atlasdb.backup.api.PrepareBackupRequest;
-import com.palantir.atlasdb.backup.api.PrepareBackupResponse;
-import com.palantir.atlasdb.backup.api.RefreshBackupRequest;
-import com.palantir.atlasdb.futures.AtlasFutures;
-import com.palantir.atlasdb.http.AtlasDbRemotingConstants;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.transaction.api.TransactionManager;
-import com.palantir.common.concurrent.NamedThreadFactory;
-import com.palantir.common.concurrent.PTExecutors;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.conjure.java.api.config.service.ServicesConfigBlock;
-import com.palantir.conjure.java.api.config.service.UserAgent;
-import com.palantir.dialogue.clients.DialogueClients;
-import com.palantir.dialogue.clients.DialogueClients.ReloadingFactory;
-import com.palantir.lock.client.LockRefresher;
-import com.palantir.lock.v2.LockLeaseRefresher;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import com.palantir.refreshable.Refreshable;
-import com.palantir.tokens.auth.AuthHeader;
-import java.io.Closeable;
-import java.nio.file.Path;
-import java.util.Map;
-import java.util.Objects;
-import java.util.Optional;
-import java.util.Set;
-import java.util.concurrent.ConcurrentHashMap;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.ScheduledExecutorService;
-import java.util.function.Function;
-import java.util.stream.Collectors;
-
-/**
- * Service for Atlas backup tasks.
- * While a single backup operation may encompass multiple namespaces, it is essential that each namespace in a given
- * request corresponds to the same TimeLock service, since we support a single AtlasBackupClient (this exists on
- * TimeLock rather than on the backup client side). If the set of AtlasServices in a given request contains
- * duplicated namespaces (e.g. {(123, namespace), (456, namespace)}), then a SafeIllegalArgumentException will be
- * thrown.
- */
-public final class AtlasBackupService implements Closeable {
-    private static final SafeLogger log = SafeLoggerFactory.get(AtlasBackupService.class);
-
-    private static final long REFRESH_INTERVAL_MILLIS = 5_000L;
-
-    private final AuthHeader authHeader;
-    private final AtlasBackupClient atlasBackupClient;
-    private final CoordinationServiceRecorder coordinationServiceRecorder;
-    private final BackupPersister backupPersister;
-    private final Map<AtlasService, InProgressBackupToken> inProgressBackups;
-    private final int completeBackupNumThreads;
-    private final LockRefresher<InProgressBackupToken> lockRefresher;
-    private final ScheduledExecutorService refreshExecutor;
-
-    private volatile boolean isClosed = false;
-
-    @VisibleForTesting
-    AtlasBackupService(
-            AuthHeader authHeader,
-            AtlasBackupClient atlasBackupClient,
-            CoordinationServiceRecorder coordinationServiceRecorder,
-            BackupPersister backupPersister,
-            LockRefresher<InProgressBackupToken> lockRefresher,
-            ScheduledExecutorService refreshExecutor,
-            int completeBackupNumThreads) {
-        this.authHeader = authHeader;
-        this.atlasBackupClient = atlasBackupClient;
-        this.coordinationServiceRecorder = coordinationServiceRecorder;
-        this.backupPersister = backupPersister;
-        this.lockRefresher = lockRefresher;
-        this.refreshExecutor = refreshExecutor;
-        this.inProgressBackups = new ConcurrentHashMap<>();
-        this.completeBackupNumThreads = completeBackupNumThreads;
-    }
-
-    public static AtlasBackupService create(
-            AuthHeader authHeader,
-            Refreshable<ServicesConfigBlock> servicesConfigBlock,
-            String serviceName,
-            Function<AtlasService, Path> backupFolderFactory,
-            Function<AtlasService, KeyValueService> keyValueServiceFactory,
-            int completeBackupNumThreads) {
-        ReloadingFactory reloadingFactory = DialogueClients.create(servicesConfigBlock)
-                .withUserAgent(UserAgent.of(AtlasDbRemotingConstants.ATLASDB_HTTP_CLIENT_AGENT));
-
-        AtlasBackupClient atlasBackupClient = new DialogueAdaptingAtlasBackupClient(
-                reloadingFactory.get(AtlasBackupClientBlocking.class, serviceName));
-
-        KvsRunner kvsRunner = KvsRunner.create(keyValueServiceFactory);
-        return createAtlasBackupService(
-                authHeader, atlasBackupClient, backupFolderFactory, kvsRunner, completeBackupNumThreads);
-    }
-
-    public static AtlasBackupService createForTests(
-            AuthHeader authHeader,
-            AtlasBackupClient atlasBackupClient,
-            TransactionManager transactionManager,
-            Function<AtlasService, Path> backupFolderFactory) {
-        return createAtlasBackupService(
-                authHeader, atlasBackupClient, backupFolderFactory, KvsRunner.create(transactionManager), 10);
-    }
-
-    private static AtlasBackupService createAtlasBackupService(
-            AuthHeader authHeader,
-            AtlasBackupClient atlasBackupClient,
-            Function<AtlasService, Path> backupFolderFactory,
-            KvsRunner kvsRunner,
-            int completeBackupNumThreads) {
-        BackupPersister backupPersister = new ExternalBackupPersister(backupFolderFactory);
-        CoordinationServiceRecorder coordinationServiceRecorder =
-                new CoordinationServiceRecorder(kvsRunner, backupPersister);
-        ScheduledExecutorService refreshExecutor =
-                PTExecutors.newSingleThreadScheduledExecutor(new NamedThreadFactory("backupLockRefresher", true));
-        LockRefresher<InProgressBackupToken> lockRefresher =
-                getLockRefresher(authHeader, atlasBackupClient, refreshExecutor);
-
-        return new AtlasBackupService(
-                authHeader,
-                atlasBackupClient,
-                coordinationServiceRecorder,
-                backupPersister,
-                lockRefresher,
-                refreshExecutor,
-                completeBackupNumThreads);
-    }
-
-    private static LockRefresher<InProgressBackupToken> getLockRefresher(
-            AuthHeader authHeader, AtlasBackupClient atlasBackupClient, ScheduledExecutorService refreshExecutor) {
-        LockLeaseRefresher<InProgressBackupToken> lockLeaseRefresher = tokens -> atlasBackupClient
-                .refreshBackup(authHeader, RefreshBackupRequest.of(tokens))
-                .getRefreshedTokens();
-        return new LockRefresher<>(refreshExecutor, lockLeaseRefresher, REFRESH_INTERVAL_MILLIS);
-    }
-
-    /**
-     * Cleans up the backup operation. This will release all immutable timestamp locks.
-     * Must be called after any failure; after calling this, completeBackup will fail for any namespace which
-     * has not yet reached that stage.
-     */
-    @Override
-    public void close() {
-        log.info(
-                "Cleaning up backup. This will remove all record of in-progress backups on this node.",
-                SafeArg.of("inProgressBackupCount", inProgressBackups.size()),
-                SafeArg.of("servicesWithInProgressBackups", ImmutableSet.copyOf(inProgressBackups.keySet())));
-        lockRefresher.unregisterLocks(ImmutableSet.copyOf(inProgressBackups.values()));
-        inProgressBackups.clear();
-        lockRefresher.close();
-
-        // Clean up the refreshing thread
-        if (!refreshExecutor.isShutdown()) {
-            refreshExecutor.shutdownNow();
-        }
-        isClosed = true;
-    }
-
-    public Set<AtlasService> prepareBackup(Set<AtlasService> atlasServices) {
-        throwIfClosed(atlasServices);
-
-        Set<AtlasService> inProgressAndProposedBackups = Sets.union(atlasServices, inProgressBackups.keySet());
-        AtlasServices.throwIfAtlasServicesCollide(inProgressAndProposedBackups);
-        Map<Namespace, AtlasService> namespaceToServices = KeyedStream.of(atlasServices)
-                .mapKeys(AtlasService::getNamespace)
-                .collectToMap();
-        PrepareBackupRequest request = PrepareBackupRequest.of(namespaceToServices.keySet());
-        PrepareBackupResponse response = atlasBackupClient.prepareBackup(authHeader, request);
-
-        Map<AtlasService, InProgressBackupToken> tokensPerService = KeyedStream.of(response.getSuccessful())
-                .mapKeys(token -> namespaceToServices.get(token.getNamespace()))
-                .collectToMap();
-        KeyedStream.stream(tokensPerService).forEach(this::storeBackupToken);
-        return tokensPerService.keySet();
-    }
-
-    private void storeBackupToken(AtlasService atlasService, InProgressBackupToken backupToken) {
-        inProgressBackups.put(atlasService, backupToken);
-        backupPersister.storeImmutableTimestamp(atlasService, backupToken);
-        lockRefresher.registerLocks(ImmutableSet.of(backupToken));
-    }
-
-    /**
-     * Completes backup for the given set of atlas services.
-     * This will store metadata about the completed backup via the BackupPersister.
-     * <p>
-     * In order to do this, we must unlock the immutable timestamp for each service. If {@link #prepareBackup(Set)}
-     * was not called, we will not have a record of the in-progress backup (and will not have been refreshing
-     * its lock anyway). Thus, we attempt to complete backup only for those atlas services where we have the in-progress
-     * backup stored.
-     *
-     * @return the atlas services whose backups were successfully completed
-     */
-    public Set<AtlasService> completeBackup(Set<AtlasService> atlasServices) {
-        throwIfClosed(atlasServices);
-
-        AtlasServices.throwIfAtlasServicesCollide(atlasServices);
-
-        Map<AtlasService, InProgressBackupToken> knownBackups = KeyedStream.of(atlasServices)
-                .map((Function<AtlasService, InProgressBackupToken>) inProgressBackups::remove)
-                .filter(Objects::nonNull)
-                .collectToMap();
-        Set<InProgressBackupToken> tokens = ImmutableSet.copyOf(knownBackups.values());
-
-        if (tokens.isEmpty()) {
-            log.error(
-                    "Complete backup called, but no in progress backups were found.",
-                    SafeArg.of("atlasServices", atlasServices));
-            return ImmutableSet.of();
-        }
-
-        lockRefresher.unregisterLocks(tokens);
-
-        Set<AtlasService> atlasServicesWithInProgressBackups = knownBackups.keySet();
-        if (tokens.size() < atlasServices.size()) {
-            Set<AtlasService> atlasServicesWithNoInProgressBackup =
-                    Sets.difference(atlasServices, atlasServicesWithInProgressBackups);
-            log.error(
-                    "In progress backups were not found for some atlasServices. We will not complete backup for these.",
-                    SafeArg.of("numAtlasServicesWithBackup", tokens.size()),
-                    SafeArg.of("numAtlasServicesWithoutBackup", atlasServicesWithNoInProgressBackup.size()),
-                    SafeArg.of("atlasServicesWithoutBackup", atlasServicesWithNoInProgressBackup),
-                    SafeArg.of("allRequestedAtlasServices", atlasServices));
-        }
-
-        Map<Namespace, AtlasService> namespaceToServices = KeyedStream.of(atlasServices)
-                .mapKeys(AtlasService::getNamespace)
-                .collectToMap();
-        CompleteBackupRequest request = CompleteBackupRequest.of(tokens);
-        CompleteBackupResponse response = atlasBackupClient.completeBackup(authHeader, request);
-
-        Map<AtlasService, CompletedBackup> successfulBackups = KeyedStream.of(response.getSuccessfulBackups())
-                .mapKeys(token -> namespaceToServices.get(token.getNamespace()))
-                .collectToMap();
-        Set<AtlasService> successfullyStoredBackups = storeCompletedBackups(successfulBackups);
-
-        if (successfullyStoredBackups.size() < atlasServicesWithInProgressBackups.size()) {
-            Set<AtlasService> failedAtlasServices =
-                    Sets.difference(atlasServicesWithInProgressBackups, successfullyStoredBackups);
-            log.error(
-                    "Backup did not complete successfully for all atlasServices. Check TimeLock logs to debug.",
-                    SafeArg.of("failedAtlasServices", failedAtlasServices),
-                    SafeArg.of("successfulAtlasServices", successfullyStoredBackups),
-                    SafeArg.of("atlasServicesWithoutBackup", atlasServicesWithInProgressBackups));
-        }
-
-        return successfulBackups.keySet();
-    }
-
-    private void throwIfClosed(Set<AtlasService> atlasServices) {
-        if (isClosed) {
-            throw new SafeIllegalStateException(
-                    "The AtlasBackupService is closed.", SafeArg.of("atlasServices", atlasServices));
-        }
-    }
-
-    private Set<AtlasService> storeCompletedBackups(Map<AtlasService, CompletedBackup> successfulBackups) {
-        ExecutorService executorService = PTExecutors.newFixedThreadPool(completeBackupNumThreads);
-        Map<AtlasService, ListenableFuture<Optional<Boolean>>> storedBackups = KeyedStream.stream(successfulBackups)
-                .map((atlasService, completeBackup) -> Futures.submit(
-                        () -> Optional.of(storeCompletedBackup(atlasService, completeBackup)), executorService))
-                .collectToMap();
-        ListenableFuture<Map<AtlasService, Boolean>> allStorageTasks =
-                AtlasFutures.allOptionalsAsMap(storedBackups, MoreExecutors.directExecutor());
-
-        // Waits for future to complete
-        Map<AtlasService, Boolean> storageTaskResults = AtlasFutures.getUnchecked(allStorageTasks);
-        executorService.shutdown();
-        return KeyedStream.stream(storageTaskResults)
-                .filter(Boolean::booleanValue)
-                .keys()
-                .collect(Collectors.toSet());
-    }
-
-    private Boolean storeCompletedBackup(AtlasService atlasService, CompletedBackup completedBackup) {
-        try {
-            coordinationServiceRecorder.storeFastForwardState(atlasService, completedBackup);
-            backupPersister.storeCompletedBackup(atlasService, completedBackup);
-            return true;
-        } catch (Exception ex) {
-            log.warn("Failed to store completed backup for AtlasService", SafeArg.of("atlasService", atlasService), ex);
-            return false;
-        }
-    }
-}ud:     }(j$ (a06a4a8c99059445d6acf8d223d050ea93a25fe6jW% Qatlasdb-backup/src/main/java/com/palantir/atlasdb/backup/AtlasRestoreService.javajY% removedjQ% K jR% MGj[% MGj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreService.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreService.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreService.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% XD  @@ -1,327 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.datastax.driver.core.policies.DefaultRetryPolicy;
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Sets;
-import com.palantir.atlasdb.backup.api.AtlasRestoreClient;
-import com.palantir.atlasdb.backup.api.AtlasRestoreClientBlocking;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompleteRestoreRequest;
-import com.palantir.atlasdb.backup.api.CompleteRestoreResponse;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
-import com.palantir.atlasdb.cassandra.backup.CassandraRepairHelper;
-import com.palantir.atlasdb.cassandra.backup.RangesForRepair;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.http.AtlasDbRemotingConstants;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.cassandra.async.client.creation.ClusterFactory.CassandraClusterConfig;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.SuccessfulDisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.UnsuccessfulDisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementService;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementServiceBlocking;
-import com.palantir.atlasdb.transaction.api.TransactionManager;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.conjure.java.api.config.service.ServicesConfigBlock;
-import com.palantir.conjure.java.api.config.service.UserAgent;
-import com.palantir.dialogue.clients.DialogueClients;
-import com.palantir.logsafe.Preconditions;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import com.palantir.refreshable.Refreshable;
-import com.palantir.timestamp.FullyBoundedTimestampRange;
-import com.palantir.tokens.auth.AuthHeader;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.function.BiConsumer;
-import java.util.function.Function;
-import java.util.stream.Collectors;
-
-/**
- *  Service for Atlas restore tasks.
- *
- *  As with backup, each namespace must use the same TimeLock service - see javadoc for {@link AtlasBackupService}.
- */
-public class AtlasRestoreService {
-    private static final SafeLogger log = SafeLoggerFactory.get(AtlasRestoreService.class);
-
-    private final AuthHeader authHeader;
-    private final AtlasRestoreClient atlasRestoreClient;
-    private final TimeLockManagementService timeLockManagementService;
-    private final BackupPersister backupPersister;
-    private final CassandraRepairHelper cassandraRepairHelper;
-
-    @VisibleForTesting
-    AtlasRestoreService(
-            AuthHeader authHeader,
-            AtlasRestoreClient atlasRestoreClient,
-            TimeLockManagementService timeLockManagementService,
-            BackupPersister backupPersister,
-            CassandraRepairHelper cassandraRepairHelper) {
-        this.authHeader = authHeader;
-        this.atlasRestoreClient = atlasRestoreClient;
-        this.timeLockManagementService = timeLockManagementService;
-        this.backupPersister = backupPersister;
-        this.cassandraRepairHelper = cassandraRepairHelper;
-    }
-
-    public static AtlasRestoreService create(
-            AuthHeader authHeader,
-            Refreshable<ServicesConfigBlock> servicesConfigBlock,
-            String serviceName,
-            BackupPersister backupPersister,
-            Function<AtlasService, CassandraClusterConfig> cassandraClusterConfigFactory,
-            Function<AtlasService, Refreshable<CassandraServersConfig>> refreshableCassandraServersConfigFactory,
-            Function<AtlasService, KeyValueService> keyValueServiceFactory) {
-        DialogueClients.ReloadingFactory reloadingFactory = DialogueClients.create(servicesConfigBlock)
-                .withUserAgent(UserAgent.of(AtlasDbRemotingConstants.ATLASDB_HTTP_CLIENT_AGENT));
-        AtlasRestoreClient atlasRestoreClient = new DialogueAdaptingAtlasRestoreClient(
-                reloadingFactory.get(AtlasRestoreClientBlocking.class, serviceName));
-        TimeLockManagementService timeLockManagementService = new DialogueAdaptingTimeLockManagementService(
-                reloadingFactory.get(TimeLockManagementServiceBlocking.class, serviceName));
-
-        CassandraRepairHelper cassandraRepairHelper = new CassandraRepairHelper(
-                KvsRunner.create(keyValueServiceFactory),
-                cassandraClusterConfigFactory,
-                refreshableCassandraServersConfigFactory);
-
-        return new AtlasRestoreService(
-                authHeader, atlasRestoreClient, timeLockManagementService, backupPersister, cassandraRepairHelper);
-    }
-
-    public static AtlasRestoreService createForTests(
-            AuthHeader authHeader,
-            AtlasRestoreClient atlasRestoreClient,
-            TimeLockManagementService timeLockManagementService,
-            BackupPersister backupPersister,
-            TransactionManager transactionManager,
-            Function<AtlasService, CassandraClusterConfig> cassandraClusterConfigFactory,
-            Function<AtlasService, Refreshable<CassandraServersConfig>> refreshableCassandraServersConfigFactory) {
-        CassandraRepairHelper cassandraRepairHelper = new CassandraRepairHelper(
-                KvsRunner.create(transactionManager),
-                cassandraClusterConfigFactory,
-                refreshableCassandraServersConfigFactory);
-
-        return new AtlasRestoreService(
-                authHeader, atlasRestoreClient, timeLockManagementService, backupPersister, cassandraRepairHelper);
-    }
-
-    /**
-     * Disables TimeLock on all nodes for the given atlasServices.
-     * This will fail if any atlasService is already disabled, unless it was disabled with the provided backupId.
-     * AtlasServices for which we don't have a recorded backup will be ignored.
-     *
-     * @param restoreRequests the requests to prepare.
-     * @param backupId a unique identifier for this request (uniquely identifies the backup to which we're restoring)
-     *
-     * @return the atlasServices successfully disabled.
-     */
-    public Set<AtlasService> prepareRestore(Set<RestoreRequest> restoreRequests, String backupId) {
-        validateRestoreRequests(restoreRequests);
-        Map<RestoreRequest, CompletedBackup> completedBackups = getCompletedBackups(restoreRequests);
-        Set<AtlasService> atlasServicesToRestore = getAtlasServicesToRestore(completedBackups);
-        Preconditions.checkArgument(
-                atlasServicesToRestore.size() == completedBackups.size(),
-                "Attempting to restore multiple atlasServices into the same atlasService! "
-                        + "This will cause severe data corruption.",
-                SafeArg.of("restoreRequests", restoreRequests));
-
-        Set<Namespace> namespacesToRestore =
-                atlasServicesToRestore.stream().map(AtlasService::getNamespace).collect(Collectors.toSet());
-        DisableNamespacesRequest request = DisableNamespacesRequest.of(namespacesToRestore, backupId);
-        DisableNamespacesResponse response = timeLockManagementService.disableTimelock(authHeader, request);
-        return response.accept(new DisableNamespacesResponse.Visitor<>() {
-            @Override
-            public Set<AtlasService> visitSuccessful(SuccessfulDisableNamespacesResponse value) {
-                return atlasServicesToRestore;
-            }
-
-            @Override
-            public Set<AtlasService> visitUnsuccessful(UnsuccessfulDisableNamespacesResponse value) {
-                log.error(
-                        "Failed to disable namespaces prior to restore",
-                        SafeArg.of("requests", restoreRequests),
-                        SafeArg.of("response", value));
-                return ImmutableSet.of();
-            }
-
-            @Override
-            public Set<AtlasService> visitUnknown(String unknownType) {
-                throw new SafeIllegalStateException(
-                        "Unknown DisableNamespacesResponse", SafeArg.of("unknownType", unknownType));
-            }
-        });
-    }
-
-    /**
-     *  Returns the set of namespaces for which we successfully repaired internal tables.
-     *  Only namespaces for which a known backup exists will be repaired.
-     *  Namespaces are repaired serially. If repairTable throws an exception, then this will propagate back to the
-     *  caller. In such cases, some namespaces may not have been repaired.
-     *
-     * @param restoreRequests the repair requests.
-     * @param repairTable supplied function which is expected to repair the given ranges.
-     *
-     * @return the set of namespaces for which we issued a repair command via the provided Consumer.
-     */
-    public Set<AtlasService> repairInternalTables(
-            Set<RestoreRequest> restoreRequests, BiConsumer<String, RangesForRepair> repairTable) {
-        validateRestoreRequests(restoreRequests);
-        Map<RestoreRequest, CompletedBackup> completedBackups = getCompletedBackups(restoreRequests);
-        Set<AtlasService> namespacesToRepair = getAtlasServicesToRestore(completedBackups);
-        repairTables(repairTable, completedBackups, namespacesToRepair);
-        return namespacesToRepair;
-    }
-
-    /**
-     * Completes the restore process for the requested atlasServices.
-     * This includes fast-forwarding the timestamp, and then re-enabling the TimeLock namespaces.
-     *
-     * @param restoreRequests the requests to complete.
-     * @param backupId the backup identifier, which must match the one given to {@link #prepareRestore(Set, String)}
-     * @return the set of atlasServices that were successfully fast-forwarded and re-enabled.
-     */
-    public Set<AtlasService> completeRestore(Set<RestoreRequest> restoreRequests, String backupId) {
-        validateRestoreRequests(restoreRequests);
-        Map<RestoreRequest, CompletedBackup> completedBackups = getCompletedBackups(restoreRequests);
-        Set<AtlasService> atlasServicesToRestore = getAtlasServicesToRestore(completedBackups);
-
-        if (completedBackups.isEmpty()) {
-            log.info(
-                    "Attempted to complete restore, but no completed backups were found",
-                    SafeArg.of("restoreRequests", restoreRequests));
-            return ImmutableSet.of();
-        } else if (completedBackups.size() < restoreRequests.size()) {
-            Set<AtlasService> atlasServicesWithBackup = completedBackups.keySet().stream()
-                    .map(RestoreRequest::oldAtlasService)
-                    .collect(Collectors.toSet());
-            Set<AtlasService> allOldAtlasServices = restoreRequests.stream()
-                    .map(RestoreRequest::oldAtlasService)
-                    .collect(Collectors.toSet());
-            Set<AtlasService> atlasServicesWithoutBackup =
-                    Sets.difference(allOldAtlasServices, atlasServicesWithBackup);
-            log.warn(
-                    "Completed backups were not found for some atlasServices",
-                    SafeArg.of("atlasServicesWithBackup", atlasServicesWithBackup),
-                    SafeArg.of("atlasServicesWithoutBackup", atlasServicesWithoutBackup));
-        }
-
-        // Fast forward timestamps
-        Map<Namespace, CompletedBackup> completeRequest = KeyedStream.stream(completedBackups)
-                .mapKeys(RestoreRequest::newAtlasService)
-                .mapKeys(AtlasService::getNamespace)
-                .collectToMap();
-        Map<Namespace, AtlasService> namespaceToServices = KeyedStream.of(atlasServicesToRestore)
-                .mapKeys(AtlasService::getNamespace)
-                .collectToMap();
-
-        CompleteRestoreResponse response =
-                atlasRestoreClient.completeRestore(authHeader, CompleteRestoreRequest.of(completeRequest));
-        Set<AtlasService> successfulAtlasServices = response.getSuccessfulNamespaces().stream()
-                .map(namespaceToServices::get)
-                .collect(Collectors.toSet());
-        Set<AtlasService> failedAtlasServices = Sets.difference(atlasServicesToRestore, successfulAtlasServices);
-        if (failedAtlasServices.isEmpty()) {
-            log.info(
-                    "Successfully completed restore for all atlasServices",
-                    SafeArg.of("atlasServices", successfulAtlasServices));
-        } else {
-            log.error(
-                    "Failed to fast-forward timestamp for some atlasServices. These will not be re-enabled.",
-                    SafeArg.of("failedAtlasServices", failedAtlasServices),
-                    SafeArg.of("fastForwardedAtlasServices", successfulAtlasServices));
-        }
-
-        // Re-enable timelock
-        timeLockManagementService.reenableTimelock(
-                authHeader, ReenableNamespacesRequest.of(response.getSuccessfulNamespaces(), backupId));
-
-        return successfulAtlasServices;
-    }
-
-    private void repairTables(
-            BiConsumer<String, RangesForRepair> repairTable,
-            Map<RestoreRequest, CompletedBackup> completedBackups,
-            Set<AtlasService> atlasServicesToRepair) {
-        // ConsistentCasTablesTask
-        atlasServicesToRepair.forEach(
-                atlasService -> cassandraRepairHelper.repairInternalTables(atlasService, repairTable));
-
-        // RepairTransactionsTablesTask
-        KeyedStream.stream(completedBackups)
-                .forEach((restoreRequest, completedBackup) ->
-                        repairTransactionsTables(restoreRequest, completedBackup, repairTable));
-    }
-
-    private void repairTransactionsTables(
-            RestoreRequest restoreRequest,
-            CompletedBackup completedBackup,
-            BiConsumer<String, RangesForRepair> repairTable) {
-        Map<FullyBoundedTimestampRange, Integer> coordinationMap =
-                getCoordinationMap(restoreRequest.oldAtlasService(), completedBackup);
-        List<TransactionsTableInteraction> transactionsTableInteractions =
-                TransactionsTableInteraction.getTransactionTableInteractions(
-                        coordinationMap, DefaultRetryPolicy.INSTANCE);
-        AtlasService atlasService = restoreRequest.newAtlasService();
-        cassandraRepairHelper.repairTransactionsTables(atlasService, transactionsTableInteractions, repairTable);
-        cassandraRepairHelper.cleanTransactionsTables(
-                atlasService, completedBackup.getBackupStartTimestamp(), transactionsTableInteractions);
-    }
-
-    private Map<FullyBoundedTimestampRange, Integer> getCoordinationMap(
-            AtlasService atlasService, CompletedBackup completedBackup) {
-        Optional<InternalSchemaMetadataState> schemaMetadataState = backupPersister.getSchemaMetadata(atlasService);
-
-        long fastForwardTs = completedBackup.getBackupEndTimestamp();
-        long immutableTs = completedBackup.getBackupStartTimestamp();
-
-        return CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                schemaMetadataState, fastForwardTs, immutableTs);
-    }
-
-    private Map<RestoreRequest, CompletedBackup> getCompletedBackups(Set<RestoreRequest> restoreRequests) {
-        return KeyedStream.of(restoreRequests)
-                .map(RestoreRequest::oldAtlasService)
-                .map(backupPersister::getCompletedBackup)
-                .flatMap(Optional::stream)
-                .collectToMap();
-    }
-
-    private Set<AtlasService> getAtlasServicesToRestore(Map<RestoreRequest, CompletedBackup> completedBackups) {
-        return completedBackups.keySet().stream()
-                .map(RestoreRequest::newAtlasService)
-                .collect(Collectors.toSet());
-    }
-
-    private static void validateRestoreRequests(Set<RestoreRequest> restoreRequests) {
-        Set<AtlasService> newAtlasServices =
-                restoreRequests.stream().map(RestoreRequest::newAtlasService).collect(Collectors.toSet());
-        AtlasServices.throwIfAtlasServicesCollide(newAtlasServices);
-    }
-}u}(j$ (eb3909b8c52376fc393687c9ac7cbe595ee1dbfcjW% Katlasdb-backup/src/main/java/com/palantir/atlasdb/backup/AtlasServices.javajY% removedjQ% K jR% K/j[% K/j\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasServices.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasServices.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasServices.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,47 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
-import java.util.Map;
-import java.util.Map.Entry;
-import java.util.Set;
-import java.util.stream.Collectors;
-
-public final class AtlasServices {
-    private AtlasServices() {
-        // util
-    }
-
-    public static void throwIfAtlasServicesCollide(Set<AtlasService> atlasServices) {
-        Map<Namespace, Long> namespacesByCount = atlasServices.stream()
-                .collect(Collectors.groupingBy(AtlasService::getNamespace, Collectors.counting()));
-        Set<Namespace> duplicatedNamespaces = namespacesByCount.entrySet().stream()
-                .filter(entryWithCount -> entryWithCount.getValue() > 1)
-                .map(Entry::getKey)
-                .collect(Collectors.toSet());
-        if (!duplicatedNamespaces.isEmpty()) {
-            throw new SafeIllegalArgumentException(
-                    "Duplicated namespaces found in request. The operation cannot safely proceed.",
-                    SafeArg.of("duplicatedNamespaces", duplicatedNamespaces),
-                    SafeArg.of("atlasServices", atlasServices));
-        }
-    }
-}u}(j$ (70c235a50d577fb688439055712f78733cb0af85jW% Matlasdb-backup/src/main/java/com/palantir/atlasdb/backup/BackupPersister.javajY% removedjQ% K jR% K%j[% K%j\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FBackupPersister.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FBackupPersister.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FBackupPersister.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,37 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.InProgressBackupToken;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import java.util.Optional;
-
-interface BackupPersister {
-    void storeSchemaMetadata(AtlasService service, InternalSchemaMetadataState internalSchemaMetadataState);
-
-    Optional<InternalSchemaMetadataState> getSchemaMetadata(AtlasService service);
-
-    void storeCompletedBackup(AtlasService atlasService, CompletedBackup completedBackup);
-
-    Optional<CompletedBackup> getCompletedBackup(AtlasService service);
-
-    void storeImmutableTimestamp(AtlasService atlasService, InProgressBackupToken inProgressBackupToken);
-
-    Optional<Long> getImmutableTimestamp(AtlasService service);
-}u}(j$ (e2ace5b691c38bbd57e4b611bf1730209933697ejW% Yatlasdb-backup/src/main/java/com/palantir/atlasdb/backup/CoordinationServiceRecorder.javajY% removedjQ% K jR% Kdj[% Kdj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceRecorder.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceRecorder.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceRecorder.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% Xb  @@ -1,100 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.google.common.collect.Iterables;
-import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.coordination.CoordinationService;
-import com.palantir.atlasdb.coordination.ValueAndBound;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadata;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import com.palantir.atlasdb.internalschema.persistence.CoordinationServices;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.impl.CheckAndSetResult;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.Optional;
-
-final class CoordinationServiceRecorder {
-    private static final SafeLogger log = SafeLoggerFactory.get(CoordinationServiceRecorder.class);
-
-    private final KvsRunner kvsRunner;
-    private final BackupPersister backupPersister;
-
-    CoordinationServiceRecorder(KvsRunner kvsRunner, BackupPersister backupPersister) {
-        this.kvsRunner = kvsRunner;
-        this.backupPersister = backupPersister;
-    }
-
-    public void storeFastForwardState(AtlasService atlasService, CompletedBackup completedBackup) {
-        Optional<InternalSchemaMetadataState> maybeMetadata =
-                fetchSchemaMetadata(atlasService, completedBackup.getBackupEndTimestamp());
-
-        maybeMetadata.ifPresentOrElse(
-                metadata -> backupPersister.storeSchemaMetadata(atlasService, metadata),
-                () -> logEmptyMetadata(atlasService));
-    }
-
-    private void logEmptyMetadata(AtlasService atlasService) {
-        log.info(
-                "No metadata stored in coordination service for atlas service.",
-                SafeArg.of("atlasService", atlasService));
-    }
-
-    private Optional<InternalSchemaMetadataState> fetchSchemaMetadata(AtlasService atlasService, long timestamp) {
-        return kvsRunner.run(atlasService, kvs -> getInternalSchemaMetadataState(kvs, timestamp));
-    }
-
-    private Optional<InternalSchemaMetadataState> getInternalSchemaMetadataState(KeyValueService kvs, long timestamp) {
-        if (!kvs.getAllTableNames().contains(AtlasDbConstants.COORDINATION_TABLE)) {
-            return Optional.empty();
-        }
-        CoordinationService<InternalSchemaMetadata> coordination =
-                CoordinationServices.createDefault(kvs, () -> timestamp, false);
-
-        return Optional.of(InternalSchemaMetadataState.of(getValidMetadata(coordination, timestamp)));
-    }
-
-    private ValueAndBound<InternalSchemaMetadata> getValidMetadata(
-            CoordinationService<InternalSchemaMetadata> coordination, long timestamp) {
-        return coordination
-                .getValueForTimestamp(timestamp)
-                .orElseGet(() -> extendValidityBound(coordination, timestamp));
-    }
-
-    // Keep trying to extend the validity bound until it succeeds. Transactions can't commit until _someone_ succeeds
-    // in doing this - so this is effectively guaranteed to terminate eventually.
-    private ValueAndBound<InternalSchemaMetadata> extendValidityBound(
-            CoordinationService<InternalSchemaMetadata> coordination, long timestamp) {
-        Optional<ValueAndBound<InternalSchemaMetadata>> maybeBound = Optional.empty();
-        while (maybeBound.isEmpty()) {
-            maybeBound = tryExtendValidityBound(coordination, timestamp);
-        }
-        return maybeBound.get();
-    }
-
-    private Optional<ValueAndBound<InternalSchemaMetadata>> tryExtendValidityBound(
-            CoordinationService<InternalSchemaMetadata> coordination, long timestamp) {
-        CheckAndSetResult<ValueAndBound<InternalSchemaMetadata>> casResult = coordination.tryTransformCurrentValue(
-                valueAndBound -> valueAndBound.value().orElseGet(InternalSchemaMetadata::defaultValue));
-        ValueAndBound<InternalSchemaMetadata> persisted = Iterables.getOnlyElement(casResult.existingValues());
-        return (persisted.bound() >= timestamp) ? Optional.of(persisted) : Optional.empty();
-    }
-}u}(j$ (1c44ea90ea1587abfa52806ffbf809f1019ef2b7jW% Zatlasdb-backup/src/main/java/com/palantir/atlasdb/backup/CoordinationServiceUtilities.javajY% removedjQ% K jR% KOj[% KOj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceUtilities.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceUtilities.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceUtilities.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,79 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.google.common.collect.ImmutableRangeMap;
-import com.google.common.collect.Range;
-import com.google.common.collect.RangeMap;
-import com.palantir.atlasdb.coordination.ValueAndBound;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadata;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import com.palantir.atlasdb.internalschema.TimestampPartitioningMap;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.timestamp.FullyBoundedTimestampRange;
-import java.util.Map;
-import java.util.Optional;
-
-@SuppressWarnings("UnstableApiUsage")
-public final class CoordinationServiceUtilities {
-    // before the coordination service all transactions were schema 1, i.e. in _transactions
-    private static final ImmutableRangeMap<Long, Integer> PRE_COORDINATION_TRANSACTIONS_MAP =
-            ImmutableRangeMap.of(Range.atLeast(TransactionConstants.LOWEST_POSSIBLE_START_TS), 1);
-
-    private CoordinationServiceUtilities() {}
-
-    public static Map<FullyBoundedTimestampRange, Integer> getCoordinationMapOnRestore(
-            Optional<InternalSchemaMetadataState> schemaMetadataState, long fastForwardTs, long immutableTs) {
-        RangeMap<Long, Integer> unbounded = convertInternalSchemaMetadataToRangeMap(schemaMetadataState);
-
-        RangeMap<Long, Integer> fastForwardBounded = addInclusiveUpperBoundToRangeMap(unbounded, fastForwardTs);
-
-        RangeMap<Long, Integer> bounded = addInclusiveLowerBoundToRangeMap(fastForwardBounded, immutableTs);
-
-        return KeyedStream.stream(bounded.asMapOfRanges())
-                .mapKeys(FullyBoundedTimestampRange::of)
-                .collectToMap();
-    }
-
-    private static RangeMap<Long, Integer> convertInternalSchemaMetadataToRangeMap(
-            Optional<InternalSchemaMetadataState> internalSchemaMetadata) {
-        return internalSchemaMetadata
-                .flatMap(InternalSchemaMetadataState::value)
-                .flatMap(CoordinationServiceUtilities::convertValueAndBoundToRangeMap)
-                .orElse(PRE_COORDINATION_TRANSACTIONS_MAP);
-    }
-
-    private static Optional<RangeMap<Long, Integer>> convertValueAndBoundToRangeMap(
-            ValueAndBound<InternalSchemaMetadata> valueAndBound) {
-        return valueAndBound
-                .value()
-                .map(InternalSchemaMetadata::timestampToTransactionsTableSchemaVersion)
-                .map(TimestampPartitioningMap::rangeMapView)
-                .map(rangeMap -> addInclusiveUpperBoundToRangeMap(rangeMap, valueAndBound.bound()));
-    }
-
-    private static RangeMap<Long, Integer> addInclusiveUpperBoundToRangeMap(
-            RangeMap<Long, Integer> rangeMap, long upperBound) {
-        return rangeMap.subRangeMap(Range.atMost(upperBound));
-    }
-
-    private static RangeMap<Long, Integer> addInclusiveLowerBoundToRangeMap(
-            RangeMap<Long, Integer> rangeMap, long lowerBound) {
-        return rangeMap.subRangeMap(Range.atLeast(lowerBound));
-    }
-}u}(j$ (d505f8b39f8a8a204fc645abc3111eeb72083e14jW% _atlasdb-backup/src/main/java/com/palantir/atlasdb/backup/DialogueAdaptingAtlasBackupClient.javajY% removedjQ% K jR% K2j[% K2j\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingAtlasBackupClient.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingAtlasBackupClient.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingAtlasBackupClient.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% Xc  @@ -1,50 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasBackupClient;
-import com.palantir.atlasdb.backup.api.AtlasBackupClientBlocking;
-import com.palantir.atlasdb.backup.api.CompleteBackupRequest;
-import com.palantir.atlasdb.backup.api.CompleteBackupResponse;
-import com.palantir.atlasdb.backup.api.PrepareBackupRequest;
-import com.palantir.atlasdb.backup.api.PrepareBackupResponse;
-import com.palantir.atlasdb.backup.api.RefreshBackupRequest;
-import com.palantir.atlasdb.backup.api.RefreshBackupResponse;
-import com.palantir.tokens.auth.AuthHeader;
-
-public class DialogueAdaptingAtlasBackupClient implements AtlasBackupClient {
-    private final AtlasBackupClientBlocking dialogueDelegate;
-
-    public DialogueAdaptingAtlasBackupClient(AtlasBackupClientBlocking dialogueDelegate) {
-        this.dialogueDelegate = dialogueDelegate;
-    }
-
-    @Override
-    public PrepareBackupResponse prepareBackup(AuthHeader authHeader, PrepareBackupRequest request) {
-        return dialogueDelegate.prepareBackup(authHeader, request);
-    }
-
-    @Override
-    public RefreshBackupResponse refreshBackup(AuthHeader authHeader, RefreshBackupRequest request) {
-        return dialogueDelegate.refreshBackup(authHeader, request);
-    }
-
-    @Override
-    public CompleteBackupResponse completeBackup(AuthHeader authHeader, CompleteBackupRequest request) {
-        return dialogueDelegate.completeBackup(authHeader, request);
-    }
-}u}(j$ (c763dda85df496e50c76a2efb4d66c79d82f079bjW% `atlasdb-backup/src/main/java/com/palantir/atlasdb/backup/DialogueAdaptingAtlasRestoreClient.javajY% removedjQ% K jR% K$j[% K$j\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingAtlasRestoreClient.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingAtlasRestoreClient.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingAtlasRestoreClient.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,36 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasRestoreClient;
-import com.palantir.atlasdb.backup.api.AtlasRestoreClientBlocking;
-import com.palantir.atlasdb.backup.api.CompleteRestoreRequest;
-import com.palantir.atlasdb.backup.api.CompleteRestoreResponse;
-import com.palantir.tokens.auth.AuthHeader;
-
-public class DialogueAdaptingAtlasRestoreClient implements AtlasRestoreClient {
-    private final AtlasRestoreClientBlocking dialogueDelegate;
-
-    public DialogueAdaptingAtlasRestoreClient(AtlasRestoreClientBlocking dialogueDelegate) {
-        this.dialogueDelegate = dialogueDelegate;
-    }
-
-    @Override
-    public CompleteRestoreResponse completeRestore(AuthHeader authHeader, CompleteRestoreRequest request) {
-        return dialogueDelegate.completeRestore(authHeader, request);
-    }
-}u}(j$ (1a88f71b0aaee1cb4ea8f1cc8c8dc745d8c7f318jW% Uatlasdb-backup/src/main/java/com/palantir/atlasdb/backup/ExternalBackupPersister.javajY% removedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FExternalBackupPersister.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FExternalBackupPersister.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FExternalBackupPersister.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,182 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.fasterxml.jackson.databind.PropertyNamingStrategies;
-import com.fasterxml.jackson.databind.exc.MismatchedInputException;
-import com.google.common.annotations.VisibleForTesting;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.InProgressBackupToken;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import com.palantir.conjure.java.serialization.ObjectMappers;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.io.File;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.util.Optional;
-import java.util.function.Function;
-
-public class ExternalBackupPersister implements BackupPersister {
-    private static final SafeLogger log = SafeLoggerFactory.get(ExternalBackupPersister.class);
-
-    private static final ObjectMapper OBJECT_MAPPER = ObjectMappers.newClientObjectMapper();
-    private static final ObjectMapper LEGACY_OBJECT_MAPPER =
-            OBJECT_MAPPER.copy().setPropertyNamingStrategy(PropertyNamingStrategies.KEBAB_CASE);
-
-    private static final String SCHEMA_METADATA_FILE_NAME = "internal_schema_metadata_state";
-    private static final String BACKUP_TIMESTAMP_FILE_NAME = "backup.timestamp";
-    private static final String IMMUTABLE_TIMESTAMP_FILE_NAME = "immutable.timestamp";
-    private static final String FAST_FORWARD_TIMESTAMP_FILE_NAME = "fast-forward.timestamp";
-
-    private final Function<AtlasService, Path> pathFactory;
-
-    public ExternalBackupPersister(Function<AtlasService, Path> pathFactory) {
-        this.pathFactory = pathFactory;
-    }
-
-    @Override
-    public void storeSchemaMetadata(AtlasService service, InternalSchemaMetadataState internalSchemaMetadataState) {
-        File schemaMetadataFile = getSchemaMetadataFile(service);
-        if (log.isDebugEnabled()) {
-            log.debug(
-                    "Storing schema metadata",
-                    SafeArg.of("service", service),
-                    SafeArg.of("file", schemaMetadataFile.getPath()));
-        }
-        writeToFile(service, schemaMetadataFile, internalSchemaMetadataState);
-    }
-
-    @Override
-    public Optional<InternalSchemaMetadataState> getSchemaMetadata(AtlasService atlasService) {
-        return loadFromFile(atlasService, getSchemaMetadataFile(atlasService), InternalSchemaMetadataState.class);
-    }
-
-    @Override
-    public void storeCompletedBackup(AtlasService atlasService, CompletedBackup completedBackup) {
-        if (log.isDebugEnabled()) {
-            log.debug("Storing completed backup", SafeArg.of("atlasService", atlasService));
-        }
-        writeToFile(atlasService, getImmutableTimestampFile(atlasService), completedBackup.getImmutableTimestamp());
-        writeToFile(atlasService, getBackupTimestampFile(atlasService), completedBackup.getBackupStartTimestamp());
-        writeToFile(atlasService, getFastForwardTimestampFile(atlasService), completedBackup.getBackupEndTimestamp());
-    }
-
-    @Override
-    public Optional<CompletedBackup> getCompletedBackup(AtlasService atlasService) {
-        Optional<Long> immutableTimestamp =
-                loadFromFile(atlasService, getImmutableTimestampFile(atlasService), Long.class);
-        Optional<Long> startTimestamp = loadFromFile(atlasService, getBackupTimestampFile(atlasService), Long.class);
-        Optional<Long> endTimestamp = loadFromFile(atlasService, getFastForwardTimestampFile(atlasService), Long.class);
-        if (immutableTimestamp.isEmpty() || startTimestamp.isEmpty() || endTimestamp.isEmpty()) {
-            return Optional.empty();
-        }
-
-        return Optional.of(CompletedBackup.builder()
-                .namespace(atlasService.getNamespace())
-                .immutableTimestamp(immutableTimestamp.get())
-                .backupStartTimestamp(startTimestamp.get())
-                .backupEndTimestamp(endTimestamp.get())
-                .build());
-    }
-
-    @Override
-    public void storeImmutableTimestamp(AtlasService atlasService, InProgressBackupToken inProgressBackupToken) {
-        writeToFile(
-                atlasService, getImmutableTimestampFile(atlasService), inProgressBackupToken.getImmutableTimestamp());
-    }
-
-    @Override
-    public Optional<Long> getImmutableTimestamp(AtlasService atlasService) {
-        return loadFromFile(atlasService, getImmutableTimestampFile(atlasService), Long.class);
-    }
-
-    private File getSchemaMetadataFile(AtlasService atlasService) {
-        return getFile(atlasService, SCHEMA_METADATA_FILE_NAME);
-    }
-
-    private File getImmutableTimestampFile(AtlasService atlasService) {
-        return getFile(atlasService, IMMUTABLE_TIMESTAMP_FILE_NAME);
-    }
-
-    private File getBackupTimestampFile(AtlasService atlasService) {
-        return getFile(atlasService, BACKUP_TIMESTAMP_FILE_NAME);
-    }
-
-    private File getFastForwardTimestampFile(AtlasService atlasService) {
-        return getFile(atlasService, FAST_FORWARD_TIMESTAMP_FILE_NAME);
-    }
-
-    private File getFile(AtlasService atlasService, String fileName) {
-        return new File(pathFactory.apply(atlasService).toFile(), fileName);
-    }
-
-    private void writeToFile(AtlasService atlasService, File file, Object data) {
-        try (OutputStream os = Files.newOutputStream(file.toPath())) {
-            os.write(OBJECT_MAPPER.writeValueAsBytes(data));
-            os.flush();
-        } catch (IOException e) {
-            log.error(
-                    "Failed to store file",
-                    SafeArg.of("fileName", file.getName()),
-                    SafeArg.of("atlasService", atlasService),
-                    e);
-            throw new RuntimeException(e);
-        }
-    }
-
-    @VisibleForTesting
-    <T> Optional<T> loadFromFile(AtlasService atlasService, File file, Class<T> clazz) {
-        if (!file.exists()) {
-            log.info(
-                    "Tried to load file, but it did not exist",
-                    SafeArg.of("fileName", file.getName()),
-                    SafeArg.of("namespace", atlasService.getNamespace()));
-            return Optional.empty();
-        }
-
-        try {
-            T state = tryLoadFromFile(file, clazz);
-            log.info(
-                    "Successfully loaded file",
-                    SafeArg.of("fileName", file.getName()),
-                    SafeArg.of("namespace", atlasService.getNamespace()));
-            return Optional.of(state);
-        } catch (IOException e) {
-            log.warn(
-                    "Failed to read file",
-                    SafeArg.of("fileName", file.getName()),
-                    SafeArg.of("atlasService", atlasService),
-                    e);
-            return Optional.empty();
-        }
-    }
-
-    private <T> T tryLoadFromFile(File file, Class<T> clazz) throws IOException {
-        try {
-            return OBJECT_MAPPER.readValue(file, clazz);
-        } catch (MismatchedInputException e) {
-            log.debug("Using old mapper format", e);
-            return LEGACY_OBJECT_MAPPER.readValue(file, clazz);
-        }
-    }
-}u}(j$ (aa1ee605926132d8d60ac4fded66264cd7e57708jW% Uatlasdb-backup/src/main/java/com/palantir/atlasdb/backup/InMemoryBackupPersister.javajY% removedjQ% K jR% KDj[% KDj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FInMemoryBackupPersister.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FInMemoryBackupPersister.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FInMemoryBackupPersister.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X
  @@ -1,68 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.InProgressBackupToken;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import java.util.Map;
-import java.util.Optional;
-import java.util.concurrent.ConcurrentHashMap;
-
-class InMemoryBackupPersister implements BackupPersister {
-    private final Map<AtlasService, Long> immutableTimestamps;
-    private final Map<AtlasService, InternalSchemaMetadataState> schemaMetadatas;
-    private final Map<AtlasService, CompletedBackup> completedBackups;
-
-    InMemoryBackupPersister() {
-        schemaMetadatas = new ConcurrentHashMap<>();
-        completedBackups = new ConcurrentHashMap<>();
-        immutableTimestamps = new ConcurrentHashMap<>();
-    }
-
-    @Override
-    public void storeSchemaMetadata(
-            AtlasService atlasService, InternalSchemaMetadataState internalSchemaMetadataState) {
-        schemaMetadatas.put(atlasService, internalSchemaMetadataState);
-    }
-
-    @Override
-    public Optional<InternalSchemaMetadataState> getSchemaMetadata(AtlasService atlasService) {
-        return Optional.ofNullable(schemaMetadatas.get(atlasService));
-    }
-
-    @Override
-    public void storeCompletedBackup(AtlasService atlasService, CompletedBackup completedBackup) {
-        completedBackups.put(atlasService, completedBackup);
-    }
-
-    @Override
-    public Optional<CompletedBackup> getCompletedBackup(AtlasService atlasService) {
-        return Optional.ofNullable(completedBackups.get(atlasService));
-    }
-
-    @Override
-    public void storeImmutableTimestamp(AtlasService atlasService, InProgressBackupToken inProgressBackupToken) {
-        immutableTimestamps.put(atlasService, inProgressBackupToken.getImmutableTimestamp());
-    }
-
-    @Override
-    public Optional<Long> getImmutableTimestamp(AtlasService atlasService) {
-        return Optional.ofNullable(immutableTimestamps.get(atlasService));
-    }
-}u}(j$ (2db81d2dfdba2dfe3ffb9bd4bf6cb0cbf074667bjW% Tatlasdb-backup/src/test/java/com/palantir/atlasdb/backup/AtlasBackupServiceTest.javajY% removedjQ% K jR% Mj[% Mj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupServiceTest.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupServiceTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupServiceTest.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X-  @@ -1,261 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatCode;
-import static org.mockito.ArgumentMatchers.argThat;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoInteractions;
-import static org.mockito.Mockito.when;
-
-import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.backup.api.AtlasBackupClient;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompleteBackupRequest;
-import com.palantir.atlasdb.backup.api.CompleteBackupResponse;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.InProgressBackupToken;
-import com.palantir.atlasdb.backup.api.PrepareBackupRequest;
-import com.palantir.atlasdb.backup.api.PrepareBackupResponse;
-import com.palantir.atlasdb.backup.api.ServiceId;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.lock.client.LockRefresher;
-import com.palantir.lock.v2.LockToken;
-import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import com.palantir.tokens.auth.AuthHeader;
-import java.util.Set;
-import java.util.UUID;
-import java.util.concurrent.ScheduledExecutorService;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.Mock;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@RunWith(MockitoJUnitRunner.class)
-public class AtlasBackupServiceTest {
-    private static final Namespace NAMESPACE = Namespace.of("foo");
-    private static final AtlasService ATLAS_SERVICE = AtlasService.of(ServiceId.of("a"), NAMESPACE);
-    private static final Namespace OTHER_NAMESPACE = Namespace.of("other");
-    private static final AtlasService OTHER_ATLAS_SERVICE = AtlasService.of(ServiceId.of("b"), OTHER_NAMESPACE);
-    private static final InProgressBackupToken IN_PROGRESS = inProgressBackupToken(NAMESPACE);
-
-    @Mock
-    private AuthHeader authHeader;
-
-    @Mock
-    private AtlasBackupClient atlasBackupClient;
-
-    @Mock
-    private CoordinationServiceRecorder coordinationServiceRecorder;
-
-    @Mock
-    private LockRefresher<InProgressBackupToken> lockRefresher;
-
-    @Mock
-    private ScheduledExecutorService executorService;
-
-    private AtlasBackupService atlasBackupService;
-    private BackupPersister backupPersister;
-
-    @Before
-    public void setup() {
-        backupPersister = new InMemoryBackupPersister();
-        atlasBackupService = new AtlasBackupService(
-                authHeader,
-                atlasBackupClient,
-                coordinationServiceRecorder,
-                backupPersister,
-                lockRefresher,
-                executorService,
-                10);
-    }
-
-    @Test
-    public void prepareBackupReturnsSuccessfulServices() {
-        when(atlasBackupClient.prepareBackup(
-                        authHeader, PrepareBackupRequest.of(ImmutableSet.of(NAMESPACE, OTHER_NAMESPACE))))
-                .thenReturn(PrepareBackupResponse.of(ImmutableSet.of(IN_PROGRESS)));
-
-        assertThat(atlasBackupService.prepareBackup(ImmutableSet.of(ATLAS_SERVICE, OTHER_ATLAS_SERVICE)))
-                .containsExactly(ATLAS_SERVICE);
-    }
-
-    @Test
-    public void prepareBackupRegistersLockForRefresh() {
-        Set<InProgressBackupToken> tokens = ImmutableSet.of(IN_PROGRESS);
-        when(atlasBackupClient.prepareBackup(
-                        authHeader, PrepareBackupRequest.of(ImmutableSet.of(NAMESPACE, OTHER_NAMESPACE))))
-                .thenReturn(PrepareBackupResponse.of(tokens));
-
-        atlasBackupService.prepareBackup(ImmutableSet.of(ATLAS_SERVICE, OTHER_ATLAS_SERVICE));
-        verify(lockRefresher).registerLocks(tokens);
-    }
-
-    @Test
-    public void prepareBackupThrowsIfNamespacesCollide() {
-        AtlasService collidingAtlasService = AtlasService.of(ServiceId.of("c"), ATLAS_SERVICE.getNamespace());
-        assertThatLoggableExceptionThrownBy(
-                        () -> atlasBackupService.prepareBackup(ImmutableSet.of(ATLAS_SERVICE, collidingAtlasService)))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageContaining("Duplicated namespaces");
-    }
-
-    @Test
-    public void prepareBackupThrowsIfNamespacesCollideWithExistingInProgressBackups() {
-        when(atlasBackupClient.prepareBackup(authHeader, PrepareBackupRequest.of(ImmutableSet.of(NAMESPACE))))
-                .thenReturn(PrepareBackupResponse.of(ImmutableSet.of(IN_PROGRESS)));
-        AtlasService collidingAtlasService = AtlasService.of(ServiceId.of("c"), ATLAS_SERVICE.getNamespace());
-        atlasBackupService.prepareBackup(ImmutableSet.of(ATLAS_SERVICE));
-        assertThatLoggableExceptionThrownBy(
-                        () -> atlasBackupService.prepareBackup(ImmutableSet.of(collidingAtlasService)))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageContaining("Duplicated namespaces");
-    }
-
-    @Test
-    public void prepareBackupThrowsAfterClose() {
-        atlasBackupService.close();
-
-        assertThatLoggableExceptionThrownBy(() -> atlasBackupService.prepareBackup(ImmutableSet.of(ATLAS_SERVICE)))
-                .isInstanceOf(SafeIllegalStateException.class)
-                .hasMessageContaining("closed");
-    }
-
-    @Test
-    public void completeBackupThrowsAfterClose() {
-        atlasBackupService.close();
-
-        assertThatLoggableExceptionThrownBy(() -> atlasBackupService.completeBackup(ImmutableSet.of(ATLAS_SERVICE)))
-                .isInstanceOf(SafeIllegalStateException.class)
-                .hasMessageContaining("closed");
-    }
-
-    @Test
-    public void canCloseTwice() {
-        atlasBackupService.close();
-
-        assertThatCode(() -> atlasBackupService.close()).doesNotThrowAnyException();
-    }
-
-    @Test
-    public void closeClosesLockRefresher() {
-        Set<InProgressBackupToken> tokens = ImmutableSet.of(IN_PROGRESS);
-        when(atlasBackupClient.prepareBackup(
-                        authHeader, PrepareBackupRequest.of(ImmutableSet.of(NAMESPACE, OTHER_NAMESPACE))))
-                .thenReturn(PrepareBackupResponse.of(tokens));
-
-        atlasBackupService.prepareBackup(ImmutableSet.of(ATLAS_SERVICE, OTHER_ATLAS_SERVICE));
-
-        atlasBackupService.close();
-        verify(lockRefresher).unregisterLocks(argThat(collection -> collection.contains(IN_PROGRESS)));
-        verify(lockRefresher).close();
-        verify(executorService).shutdownNow();
-    }
-
-    @Test
-    public void completeBackupThrowsIfNamespacesCollide() {
-        AtlasService collidingAtlasService = AtlasService.of(ServiceId.of("c"), ATLAS_SERVICE.getNamespace());
-        assertThatLoggableExceptionThrownBy(
-                        () -> atlasBackupService.completeBackup(ImmutableSet.of(ATLAS_SERVICE, collidingAtlasService)))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageContaining("Duplicated namespaces");
-    }
-
-    @Test
-    public void completeBackupDoesNotRunUnpreparedServices() {
-        assertThat(atlasBackupService.completeBackup(ImmutableSet.of(OTHER_ATLAS_SERVICE)))
-                .isEmpty();
-
-        verifyNoInteractions(atlasBackupClient);
-    }
-
-    @Test
-    public void completeBackupReturnsSuccessfulServices() {
-        InProgressBackupToken otherInProgress = inProgressBackupToken(OTHER_NAMESPACE);
-        Set<Namespace> namespaces = ImmutableSet.of(NAMESPACE, OTHER_NAMESPACE);
-
-        when(atlasBackupClient.prepareBackup(authHeader, PrepareBackupRequest.of(namespaces)))
-                .thenReturn(PrepareBackupResponse.of(ImmutableSet.of(IN_PROGRESS, otherInProgress)));
-
-        when(atlasBackupClient.completeBackup(
-                        authHeader, CompleteBackupRequest.of(ImmutableSet.of(IN_PROGRESS, otherInProgress))))
-                .thenReturn(CompleteBackupResponse.of(ImmutableSet.of(completedBackup())));
-
-        Set<AtlasService> services = ImmutableSet.of(ATLAS_SERVICE, OTHER_ATLAS_SERVICE);
-        atlasBackupService.prepareBackup(services);
-
-        assertThat(atlasBackupService.completeBackup(services)).containsExactly(ATLAS_SERVICE);
-    }
-
-    @Test
-    public void completeBackupUnregistersLocks() {
-        Set<AtlasService> oneService = ImmutableSet.of(ATLAS_SERVICE);
-        Set<Namespace> oneNamespace = ImmutableSet.of(NAMESPACE);
-        Set<InProgressBackupToken> tokens = ImmutableSet.of(IN_PROGRESS);
-        when(atlasBackupClient.prepareBackup(authHeader, PrepareBackupRequest.of(oneNamespace)))
-                .thenReturn(PrepareBackupResponse.of(tokens));
-
-        CompletedBackup completedBackup = completedBackup();
-        when(atlasBackupClient.completeBackup(authHeader, CompleteBackupRequest.of(tokens)))
-                .thenReturn(CompleteBackupResponse.of(ImmutableSet.of(completedBackup)));
-
-        atlasBackupService.prepareBackup(oneService);
-        atlasBackupService.completeBackup(oneService);
-
-        verify(lockRefresher).unregisterLocks(tokens);
-    }
-
-    @Test
-    public void completeBackupStoresBackupInfoAndMetadata() {
-        ImmutableSet<Namespace> oneNamespace = ImmutableSet.of(NAMESPACE);
-        ImmutableSet<AtlasService> oneService = ImmutableSet.of(ATLAS_SERVICE);
-        when(atlasBackupClient.prepareBackup(authHeader, PrepareBackupRequest.of(oneNamespace)))
-                .thenReturn(PrepareBackupResponse.of(ImmutableSet.of(IN_PROGRESS)));
-
-        CompletedBackup completedBackup = completedBackup();
-        when(atlasBackupClient.completeBackup(authHeader, CompleteBackupRequest.of(ImmutableSet.of(IN_PROGRESS))))
-                .thenReturn(CompleteBackupResponse.of(ImmutableSet.of(completedBackup)));
-
-        atlasBackupService.prepareBackup(oneService);
-        atlasBackupService.completeBackup(oneService);
-
-        verify(coordinationServiceRecorder).storeFastForwardState(ATLAS_SERVICE, completedBackup);
-        assertThat(backupPersister.getCompletedBackup(ATLAS_SERVICE)).contains(completedBackup);
-    }
-
-    private static CompletedBackup completedBackup() {
-        return CompletedBackup.builder()
-                .namespace(NAMESPACE)
-                .immutableTimestamp(1L)
-                .backupStartTimestamp(2L)
-                .backupEndTimestamp(3L)
-                .build();
-    }
-
-    private static InProgressBackupToken inProgressBackupToken(Namespace namespace) {
-        return InProgressBackupToken.builder()
-                .namespace(namespace)
-                .immutableTimestamp(1L)
-                .backupStartTimestamp(2L)
-                .lockToken(LockToken.of(UUID.randomUUID()))
-                .build();
-    }
-}u}(j$ (c5a7e3adef390a09599c167bd2f7451189f24cc4jW% Uatlasdb-backup/src/test/java/com/palantir/atlasdb/backup/AtlasRestoreServiceTest.javajY% removedjQ% K jR% M0j[% M0j\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreServiceTest.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreServiceTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreServiceTest.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% XL=  @@ -1,304 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.ArgumentMatchers.anyList;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoInteractions;
-import static org.mockito.Mockito.verifyNoMoreInteractions;
-import static org.mockito.Mockito.when;
-
-import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.backup.api.AtlasRestoreClient;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompleteRestoreRequest;
-import com.palantir.atlasdb.backup.api.CompleteRestoreResponse;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.ServiceId;
-import com.palantir.atlasdb.cassandra.backup.CassandraRepairHelper;
-import com.palantir.atlasdb.cassandra.backup.RangesForRepair;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.SuccessfulDisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.UnsuccessfulDisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementService;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
-import com.palantir.tokens.auth.AuthHeader;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.function.BiConsumer;
-import java.util.stream.Collectors;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.InOrder;
-import org.mockito.Mock;
-import org.mockito.Mockito;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@RunWith(MockitoJUnitRunner.class)
-public class AtlasRestoreServiceTest {
-    private static final Namespace WITH_BACKUP_NS = Namespace.of("with-backup");
-    private static final AtlasService WITH_BACKUP = AtlasService.of(ServiceId.of("a"), WITH_BACKUP_NS);
-    private static final Namespace NO_BACKUP_NS = Namespace.of("no-backup");
-    private static final AtlasService NO_BACKUP = AtlasService.of(ServiceId.of("b"), NO_BACKUP_NS);
-    private static final Namespace FAILING_NS = Namespace.of("failing");
-    private static final AtlasService FAILING_NAMESPACE = AtlasService.of(ServiceId.of("c"), FAILING_NS);
-    private static final long BACKUP_START_TIMESTAMP = 2L;
-    private static final String BACKUP_ID = "backup-19890526215242";
-
-    @Mock
-    private AuthHeader authHeader;
-
-    @Mock
-    private AtlasRestoreClient atlasRestoreClient;
-
-    @Mock
-    private TimeLockManagementService timeLockManagementService;
-
-    @Mock
-    private CassandraRepairHelper cassandraRepairHelper;
-
-    private AtlasRestoreService atlasRestoreService;
-    private InMemoryBackupPersister backupPersister;
-
-    @Before
-    public void setup() {
-        backupPersister = new InMemoryBackupPersister();
-        atlasRestoreService = new AtlasRestoreService(
-                authHeader, atlasRestoreClient, timeLockManagementService, backupPersister, cassandraRepairHelper);
-
-        storeCompletedBackup(WITH_BACKUP);
-        storeCompletedBackup(FAILING_NAMESPACE);
-    }
-
-    private void storeCompletedBackup(AtlasService atlasService) {
-        CompletedBackup completedBackup = CompletedBackup.builder()
-                .namespace(atlasService.getNamespace())
-                .immutableTimestamp(1L)
-                .backupStartTimestamp(BACKUP_START_TIMESTAMP)
-                .backupEndTimestamp(3L)
-                .build();
-        backupPersister.storeCompletedBackup(atlasService, completedBackup);
-    }
-
-    @Test
-    public void cannotRestoreTwiceToSameAtlasService() {
-        AtlasService severeData = AtlasService.of(ServiceId.of("a"), Namespace.of("severe-data"));
-        storeCompletedBackup(severeData);
-
-        AtlasService corruption = AtlasService.of(ServiceId.of("b"), Namespace.of("corruption"));
-        RestoreRequest firstRequest = RestoreRequest.builder()
-                .oldAtlasService(WITH_BACKUP)
-                .newAtlasService(corruption)
-                .build();
-        RestoreRequest secondRequest = RestoreRequest.builder()
-                .oldAtlasService(severeData)
-                .newAtlasService(corruption)
-                .build();
-        Set<RestoreRequest> requests = ImmutableSet.of(firstRequest, secondRequest);
-
-        assertThatThrownBy(() -> atlasRestoreService.prepareRestore(requests, BACKUP_ID))
-                .isInstanceOf(SafeIllegalArgumentException.class);
-    }
-
-    @Test
-    public void restoresToNewAtlasServiceCorrectly() {
-        RestoreRequest restoreRequest = RestoreRequest.builder()
-                .oldAtlasService(WITH_BACKUP)
-                .newAtlasService(NO_BACKUP)
-                .build();
-
-        // prepare
-        DisableNamespacesResponse successfulDisable =
-                DisableNamespacesResponse.successful(SuccessfulDisableNamespacesResponse.of(BACKUP_ID));
-        DisableNamespacesRequest request = DisableNamespacesRequest.of(ImmutableSet.of(NO_BACKUP_NS), BACKUP_ID);
-        when(timeLockManagementService.disableTimelock(authHeader, request)).thenReturn(successfulDisable);
-
-        Set<AtlasService> disabledAtlasServices =
-                atlasRestoreService.prepareRestore(ImmutableSet.of(restoreRequest), BACKUP_ID);
-        assertThat(disabledAtlasServices).containsExactly(NO_BACKUP);
-
-        // repair
-        BiConsumer<String, RangesForRepair> doNothingConsumer = (_unused1, _unused2) -> {};
-
-        Set<AtlasService> repairedAtlasServices =
-                atlasRestoreService.repairInternalTables(ImmutableSet.of(restoreRequest), doNothingConsumer);
-        assertThat(repairedAtlasServices).containsExactly(NO_BACKUP);
-
-        verify(cassandraRepairHelper).repairInternalTables(NO_BACKUP, doNothingConsumer);
-        verify(cassandraRepairHelper).repairTransactionsTables(eq(NO_BACKUP), anyList(), eq(doNothingConsumer));
-        verify(cassandraRepairHelper).cleanTransactionsTables(eq(NO_BACKUP), eq(BACKUP_START_TIMESTAMP), anyList());
-        verifyNoMoreInteractions(cassandraRepairHelper);
-
-        // complete
-        CompletedBackup completedBackup =
-                backupPersister.getCompletedBackup(WITH_BACKUP).orElseThrow();
-        CompleteRestoreRequest completeRestoreRequest =
-                CompleteRestoreRequest.of(ImmutableMap.of(NO_BACKUP_NS, completedBackup));
-        when(atlasRestoreClient.completeRestore(authHeader, completeRestoreRequest))
-                .thenReturn(CompleteRestoreResponse.of(ImmutableSet.of(NO_BACKUP_NS)));
-        ReenableNamespacesRequest reenableRequest =
-                ReenableNamespacesRequest.of(ImmutableSet.of(NO_BACKUP_NS), BACKUP_ID);
-
-        Set<AtlasService> completedAtlasServices =
-                atlasRestoreService.completeRestore(ImmutableSet.of(restoreRequest), BACKUP_ID);
-        assertThat(completedAtlasServices).containsExactly(NO_BACKUP);
-        verify(atlasRestoreClient).completeRestore(authHeader, completeRestoreRequest);
-        verify(timeLockManagementService).reenableTimelock(authHeader, reenableRequest);
-    }
-
-    @Test
-    public void prepareReturnsOnlyCompletedBackups() {
-        DisableNamespacesResponse successfulDisable =
-                DisableNamespacesResponse.successful(SuccessfulDisableNamespacesResponse.of(BACKUP_ID));
-        DisableNamespacesRequest request = DisableNamespacesRequest.of(ImmutableSet.of(WITH_BACKUP_NS), BACKUP_ID);
-        when(timeLockManagementService.disableTimelock(authHeader, request)).thenReturn(successfulDisable);
-
-        Set<AtlasService> disabledAtlasServices = atlasRestoreService.prepareRestore(
-                ImmutableSet.of(restoreRequest(WITH_BACKUP), restoreRequest(NO_BACKUP)), BACKUP_ID);
-        assertThat(disabledAtlasServices).containsExactly(WITH_BACKUP);
-    }
-
-    @Test
-    public void prepareRestoreFailsIfDisableFails() {
-        DisableNamespacesResponse failedDisable = DisableNamespacesResponse.unsuccessful(
-                UnsuccessfulDisableNamespacesResponse.of(ImmutableSet.of(WITH_BACKUP_NS), ImmutableSet.of()));
-        DisableNamespacesRequest request = DisableNamespacesRequest.of(ImmutableSet.of(WITH_BACKUP_NS), BACKUP_ID);
-        when(timeLockManagementService.disableTimelock(authHeader, request)).thenReturn(failedDisable);
-
-        Set<AtlasService> disabledAtlasServices = atlasRestoreService.prepareRestore(
-                ImmutableSet.of(restoreRequest(WITH_BACKUP), restoreRequest(NO_BACKUP)), BACKUP_ID);
-        assertThat(disabledAtlasServices).isEmpty();
-    }
-
-    @Test
-    public void prepareRestoreThrowsIfNamespacesCollide() {
-        AtlasService collidingAtlasService = AtlasService.of(ServiceId.of("c"), WITH_BACKUP.getNamespace());
-        Set<RestoreRequest> restoreRequests =
-                ImmutableSet.of(restoreRequest(WITH_BACKUP), restoreRequest(collidingAtlasService));
-        assertThatLoggableExceptionThrownBy(() -> atlasRestoreService.prepareRestore(restoreRequests, BACKUP_ID))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageContaining("Duplicated namespaces");
-    }
-
-    @Test
-    public void repairTablesThrowsIfNamespacesCollide() {
-        AtlasService collidingAtlasService = AtlasService.of(ServiceId.of("c"), WITH_BACKUP.getNamespace());
-        Set<RestoreRequest> restoreRequests =
-                ImmutableSet.of(restoreRequest(WITH_BACKUP), restoreRequest(collidingAtlasService));
-        assertThatLoggableExceptionThrownBy(
-                        () -> atlasRestoreService.repairInternalTables(restoreRequests, (_unused, _unused2) -> {}))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageContaining("Duplicated namespaces");
-    }
-
-    @Test
-    public void completeRestoreThrowsIfNamespacesCollide() {
-        AtlasService collidingAtlasService = AtlasService.of(ServiceId.of("c"), WITH_BACKUP.getNamespace());
-        Set<RestoreRequest> restoreRequests =
-                ImmutableSet.of(restoreRequest(WITH_BACKUP), restoreRequest(collidingAtlasService));
-        assertThatLoggableExceptionThrownBy(() -> atlasRestoreService.completeRestore(restoreRequests, BACKUP_ID))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageContaining("Duplicated namespaces");
-    }
-
-    @Test
-    public void repairsOnlyWhenBackupPresentAndDisableSuccessful() {
-        BiConsumer<String, RangesForRepair> doNothingConsumer = (_unused1, _unused2) -> {};
-
-        Set<AtlasService> repairedAtlasServices = atlasRestoreService.repairInternalTables(
-                ImmutableSet.of(restoreRequest(WITH_BACKUP), restoreRequest(NO_BACKUP)), doNothingConsumer);
-        assertThat(repairedAtlasServices).containsExactly(WITH_BACKUP);
-
-        verify(cassandraRepairHelper).repairInternalTables(WITH_BACKUP, doNothingConsumer);
-        verify(cassandraRepairHelper).repairTransactionsTables(eq(WITH_BACKUP), anyList(), eq(doNothingConsumer));
-        verify(cassandraRepairHelper).cleanTransactionsTables(eq(WITH_BACKUP), eq(BACKUP_START_TIMESTAMP), anyList());
-        verifyNoMoreInteractions(cassandraRepairHelper);
-    }
-
-    @Test
-    public void completesRestoreAfterFastForwardingTimestamp() {
-        Map<Namespace, CompletedBackup> completedBackups = ImmutableMap.of(
-                WITH_BACKUP_NS, backupPersister.getCompletedBackup(WITH_BACKUP).orElseThrow());
-
-        CompleteRestoreRequest completeRequest = CompleteRestoreRequest.of(completedBackups);
-        when(atlasRestoreClient.completeRestore(authHeader, completeRequest))
-                .thenReturn(CompleteRestoreResponse.of(ImmutableSet.of(WITH_BACKUP_NS)));
-
-        ReenableNamespacesRequest reenableRequest =
-                ReenableNamespacesRequest.of(ImmutableSet.of(WITH_BACKUP_NS), BACKUP_ID);
-
-        Set<AtlasService> successfulAtlasServices =
-                atlasRestoreService.completeRestore(ImmutableSet.of(restoreRequest(WITH_BACKUP)), BACKUP_ID);
-        assertThat(successfulAtlasServices).containsExactly(WITH_BACKUP);
-
-        InOrder inOrder = Mockito.inOrder(atlasRestoreClient, timeLockManagementService);
-        inOrder.verify(atlasRestoreClient).completeRestore(authHeader, completeRequest);
-        inOrder.verify(timeLockManagementService).reenableTimelock(authHeader, reenableRequest);
-    }
-
-    @Test
-    public void completeRestoreDoesNotRunNamespacesWithoutCompletedBackup() {
-        Set<AtlasService> atlasServices =
-                atlasRestoreService.completeRestore(ImmutableSet.of(restoreRequest(NO_BACKUP)), BACKUP_ID);
-
-        assertThat(atlasServices).isEmpty();
-        verifyNoInteractions(atlasRestoreClient);
-        verifyNoInteractions(timeLockManagementService);
-    }
-
-    @Test
-    public void completeRestoreReturnsSuccessfulNamespaces() {
-        Set<AtlasService> atlasServices = ImmutableSet.of(WITH_BACKUP, FAILING_NAMESPACE);
-        Map<Namespace, CompletedBackup> completedBackups = KeyedStream.of(atlasServices)
-                .map(backupPersister::getCompletedBackup)
-                .flatMap(Optional::stream)
-                .mapKeys(AtlasService::getNamespace)
-                .collectToMap();
-
-        CompleteRestoreRequest request = CompleteRestoreRequest.of(completedBackups);
-        when(atlasRestoreClient.completeRestore(authHeader, request))
-                .thenReturn(CompleteRestoreResponse.of(ImmutableSet.of(WITH_BACKUP_NS)));
-
-        ReenableNamespacesRequest reenableRequest =
-                ReenableNamespacesRequest.of(ImmutableSet.of(WITH_BACKUP_NS), BACKUP_ID);
-
-        Set<RestoreRequest> requests =
-                atlasServices.stream().map(this::restoreRequest).collect(Collectors.toSet());
-        Set<AtlasService> successfulAtlasServices = atlasRestoreService.completeRestore(requests, BACKUP_ID);
-        assertThat(successfulAtlasServices).containsExactly(WITH_BACKUP);
-        verify(atlasRestoreClient).completeRestore(authHeader, request);
-        verify(timeLockManagementService).reenableTimelock(authHeader, reenableRequest);
-    }
-
-    private RestoreRequest restoreRequest(AtlasService atlasService) {
-        return RestoreRequest.builder()
-                .oldAtlasService(atlasService)
-                .newAtlasService(atlasService)
-                .build();
-    }
-}u     }(j$ (9bbb36cca1b3a5a596180e5c3f49e2952cf6ded4jW% ^atlasdb-backup/src/test/java/com/palantir/atlasdb/backup/CoordinationServiceUtilitiesTest.javajY% removedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceUtilitiesTest.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceUtilitiesTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceUtilitiesTest.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X/  @@ -1,222 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.datastax.driver.core.policies.DefaultRetryPolicy;
-import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableRangeMap;
-import com.google.common.collect.Range;
-import com.google.common.collect.RangeMap;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions1TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions2TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.coordination.ValueAndBound;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadata;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import com.palantir.atlasdb.internalschema.TimestampPartitioningMap;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.timestamp.FullyBoundedTimestampRange;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import org.junit.Test;
-
-public final class CoordinationServiceUtilitiesTest {
-    private static final DefaultRetryPolicy POLICY = DefaultRetryPolicy.INSTANCE;
-
-    private static final long IMMUTABLE_TIMESTAMP = 100L;
-    private static final long FASTFORWARD_TIMESTAMP = 400L;
-
-    // During restores, we need to clean transactions tables in between two timestamps.
-    // It's possible that, in between _those_ timestamps, AtlasDB changed which transactions
-    // table to use. This is recorded in InternalSchemaMetadata.
-    //
-    // In this test, we simulate a switch from transactions1 to transactions2 at timestamp 10
-    // We should return the [5-10] range for transactions1, and the (10-15] range for transactions2.
-    @Test
-    public void correctlyBoundsTimestampsForRestore() {
-        long lowerBoundForRestore = 5L;
-        long maxTimestampForTransactions1 = 10L;
-        long upperBoundForRestore = 15L;
-
-        RangeMap<Long, Integer> rangeMap = ImmutableRangeMap.<Long, Integer>builder()
-                .put(Range.closed(1L, maxTimestampForTransactions1), 1)
-                .put(Range.greaterThan(maxTimestampForTransactions1), 2)
-                .build();
-        TimestampPartitioningMap<Integer> timestampsMap = TimestampPartitioningMap.of(rangeMap);
-        InternalSchemaMetadata metadata = InternalSchemaMetadata.builder()
-                .timestampToTransactionsTableSchemaVersion(timestampsMap)
-                .build();
-        ValueAndBound<InternalSchemaMetadata> value = ValueAndBound.of(metadata, 1000L);
-        InternalSchemaMetadataState state = InternalSchemaMetadataState.of(value);
-
-        Map<FullyBoundedTimestampRange, Integer> boundedMap = CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                Optional.of(state), upperBoundForRestore, lowerBoundForRestore);
-
-        Map<FullyBoundedTimestampRange, Integer> expected = ImmutableMap.of(
-                FullyBoundedTimestampRange.of(Range.closed(lowerBoundForRestore, maxTimestampForTransactions1)), 1,
-                FullyBoundedTimestampRange.of(Range.openClosed(maxTimestampForTransactions1, upperBoundForRestore)), 2);
-
-        assertThat(boundedMap).hasSize(2);
-        assertThat(boundedMap).containsExactlyInAnyOrderEntriesOf(expected);
-    }
-
-    @Test
-    public void noCoordServiceWithImmutableCreatesRangeImmutableToFfWithSchema1() {
-        List<TransactionsTableInteraction> txnInteractions =
-                TransactionsTableInteraction.getTransactionTableInteractions(
-                        CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                                Optional.empty(), FASTFORWARD_TIMESTAMP, IMMUTABLE_TIMESTAMP),
-                        POLICY);
-
-        assertThat(txnInteractions).hasSize(1);
-        assertThat(txnInteractions.get(0))
-                .isInstanceOf(Transactions1TableInteraction.class)
-                .extracting(TransactionsTableInteraction::getTimestampRange)
-                .isEqualTo(FullyBoundedTimestampRange.of(Range.closed(IMMUTABLE_TIMESTAMP, FASTFORWARD_TIMESTAMP)));
-    }
-
-    @Test
-    public void immutablePresentThenStartAtImmutable() {
-        Map<Range<Long>, Integer> rangesWithSchemas =
-                ImmutableMap.of(Range.atLeast(TransactionConstants.LOWEST_POSSIBLE_START_TS), 1);
-        final long coordServiceBound = FASTFORWARD_TIMESTAMP + 100L;
-        Optional<InternalSchemaMetadataState> coordService = createCoordService(rangesWithSchemas, coordServiceBound);
-
-        List<TransactionsTableInteraction> txnInteractions =
-                TransactionsTableInteraction.getTransactionTableInteractions(
-                        CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                                coordService, FASTFORWARD_TIMESTAMP, IMMUTABLE_TIMESTAMP),
-                        POLICY);
-
-        assertThat(txnInteractions).hasSize(1);
-        assertThat(txnInteractions.get(0))
-                .isInstanceOf(Transactions1TableInteraction.class)
-                .extracting(TransactionsTableInteraction::getTimestampRange)
-                .isEqualTo(FullyBoundedTimestampRange.of(Range.closed(IMMUTABLE_TIMESTAMP, FASTFORWARD_TIMESTAMP)));
-    }
-
-    @Test
-    public void coordServiceBoundLessThanFfStopsAtBound() {
-        Map<Range<Long>, Integer> rangesWithSchemas =
-                ImmutableMap.of(Range.atLeast(TransactionConstants.LOWEST_POSSIBLE_START_TS), 1);
-        final long coordServiceBound = FASTFORWARD_TIMESTAMP - 10L;
-        Optional<InternalSchemaMetadataState> coordService = createCoordService(rangesWithSchemas, coordServiceBound);
-
-        List<TransactionsTableInteraction> txnInteractions =
-                TransactionsTableInteraction.getTransactionTableInteractions(
-                        CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                                coordService, FASTFORWARD_TIMESTAMP, IMMUTABLE_TIMESTAMP),
-                        POLICY);
-
-        assertThat(txnInteractions).hasSize(1);
-        assertThat(txnInteractions.get(0))
-                .isInstanceOf(Transactions1TableInteraction.class)
-                .extracting(TransactionsTableInteraction::getTimestampRange)
-                .isEqualTo(FullyBoundedTimestampRange.of(Range.closed(IMMUTABLE_TIMESTAMP, coordServiceBound)));
-    }
-
-    @Test
-    public void coordServiceBoundGreaterThanFfStopsAtFf() {
-        Map<Range<Long>, Integer> rangesWithSchemas =
-                ImmutableMap.of(Range.atLeast(TransactionConstants.LOWEST_POSSIBLE_START_TS), 1);
-        final long coordServiceBound = FASTFORWARD_TIMESTAMP + 1000L;
-        Optional<InternalSchemaMetadataState> coordService = createCoordService(rangesWithSchemas, coordServiceBound);
-
-        List<TransactionsTableInteraction> txnInteractions =
-                TransactionsTableInteraction.getTransactionTableInteractions(
-                        CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                                coordService, FASTFORWARD_TIMESTAMP, IMMUTABLE_TIMESTAMP),
-                        POLICY);
-
-        assertThat(txnInteractions).hasSize(1);
-        assertThat(txnInteractions.get(0))
-                .isInstanceOf(Transactions1TableInteraction.class)
-                .extracting(TransactionsTableInteraction::getTimestampRange)
-                .isEqualTo(FullyBoundedTimestampRange.of(Range.closed(IMMUTABLE_TIMESTAMP, FASTFORWARD_TIMESTAMP)));
-    }
-
-    @Test
-    public void cleanMultipleRangesWithSchemasWithinBounds() {
-        final long migrateToTxns2 = IMMUTABLE_TIMESTAMP + FASTFORWARD_TIMESTAMP / 2;
-        Map<Range<Long>, Integer> rangesWithSchemas = ImmutableMap.of(
-                Range.closedOpen(TransactionConstants.LOWEST_POSSIBLE_START_TS, migrateToTxns2), 1,
-                Range.atLeast(migrateToTxns2), 2);
-        final long coordServiceBound = FASTFORWARD_TIMESTAMP + 1000L;
-        Optional<InternalSchemaMetadataState> coordService = createCoordService(rangesWithSchemas, coordServiceBound);
-
-        List<TransactionsTableInteraction> txnInteractions =
-                TransactionsTableInteraction.getTransactionTableInteractions(
-                        CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                                coordService, FASTFORWARD_TIMESTAMP, IMMUTABLE_TIMESTAMP),
-                        POLICY);
-
-        assertThat(txnInteractions).hasSize(2);
-        TransactionsTableInteraction txn1 = txnInteractions.stream()
-                .filter(txn -> txn instanceof Transactions1TableInteraction)
-                .findFirst()
-                .get();
-        TransactionsTableInteraction txn2 = txnInteractions.stream()
-                .filter(txn -> txn instanceof Transactions2TableInteraction)
-                .findFirst()
-                .get();
-        assertThat(txn1)
-                .extracting(TransactionsTableInteraction::getTimestampRange)
-                .isEqualTo(FullyBoundedTimestampRange.of(Range.closedOpen(IMMUTABLE_TIMESTAMP, migrateToTxns2)));
-        assertThat(txn2)
-                .extracting(TransactionsTableInteraction::getTimestampRange)
-                .isEqualTo(FullyBoundedTimestampRange.of(Range.closed(migrateToTxns2, FASTFORWARD_TIMESTAMP)));
-    }
-
-    @Test
-    public void skipRangesWithSchemasOutsideOfBounds() {
-        final long migrateToTxns2 = TransactionConstants.LOWEST_POSSIBLE_START_TS + IMMUTABLE_TIMESTAMP / 2;
-        Map<Range<Long>, Integer> rangesWithSchemas = ImmutableMap.of(
-                Range.closedOpen(TransactionConstants.LOWEST_POSSIBLE_START_TS, migrateToTxns2), 1,
-                Range.atLeast(migrateToTxns2), 2);
-        final long coordServiceBound = FASTFORWARD_TIMESTAMP + 1000L;
-        Optional<InternalSchemaMetadataState> coordService = createCoordService(rangesWithSchemas, coordServiceBound);
-
-        List<TransactionsTableInteraction> txnInteractions =
-                TransactionsTableInteraction.getTransactionTableInteractions(
-                        CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                                coordService, FASTFORWARD_TIMESTAMP, IMMUTABLE_TIMESTAMP),
-                        POLICY);
-
-        assertThat(txnInteractions).hasSize(1);
-        assertThat(txnInteractions.get(0))
-                .isInstanceOf(Transactions2TableInteraction.class)
-                .extracting(TransactionsTableInteraction::getTimestampRange)
-                .isEqualTo(FullyBoundedTimestampRange.of(Range.closed(IMMUTABLE_TIMESTAMP, FASTFORWARD_TIMESTAMP)));
-    }
-
-    private static Optional<InternalSchemaMetadataState> createCoordService(
-            Map<Range<Long>, Integer> rangesWithSchemas, long bound) {
-        ImmutableRangeMap.Builder<Long, Integer> rangeMapBuilder = ImmutableRangeMap.builder();
-        rangesWithSchemas.forEach(rangeMapBuilder::put);
-        RangeMap<Long, Integer> rangeMap = rangeMapBuilder.build();
-
-        InternalSchemaMetadata internalSchemaMetadata = InternalSchemaMetadata.builder()
-                .timestampToTransactionsTableSchemaVersion(TimestampPartitioningMap.of(rangeMap))
-                .build();
-
-        return Optional.of(
-                InternalSchemaMetadataState.of(Optional.of(ValueAndBound.of(internalSchemaMetadata, bound))));
-    }
-}u}(j$ (aab479b9713b64a03d045072bc027df436703fb5jW% Yatlasdb-backup/src/test/java/com/palantir/atlasdb/backup/ExternalBackupPersisterTest.javajY% removedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FExternalBackupPersisterTest.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FExternalBackupPersisterTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FExternalBackupPersisterTest.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,138 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.InProgressBackupToken;
-import com.palantir.atlasdb.backup.api.ServiceId;
-import com.palantir.atlasdb.coordination.ValueAndBound;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadata;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.lock.v2.LockToken;
-import java.io.ByteArrayInputStream;
-import java.io.File;
-import java.io.IOException;
-import java.nio.charset.StandardCharsets;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.StandardCopyOption;
-import java.util.UUID;
-import org.junit.Before;
-import org.junit.Rule;
-import org.junit.Test;
-import org.junit.rules.TemporaryFolder;
-
-public class ExternalBackupPersisterTest {
-    private static final Namespace NAMESPACE = Namespace.of("broken_namespace");
-    private static final AtlasService ATLAS_SERVICE = AtlasService.of(ServiceId.of("service"), NAMESPACE);
-
-    @Rule
-    public TemporaryFolder tempFolder = new TemporaryFolder();
-
-    private ExternalBackupPersister externalBackupPersister;
-
-    @Before
-    public void setUp() {
-        externalBackupPersister = new ExternalBackupPersister(this::getPath);
-    }
-
-    @Test
-    public void getSchemaMetadataWhenEmpty() {
-        assertThat(externalBackupPersister.getSchemaMetadata(ATLAS_SERVICE)).isEmpty();
-    }
-
-    @Test
-    public void putAndGetSchemaMetadata() {
-        InternalSchemaMetadata internalSchemaMetadata = InternalSchemaMetadata.defaultValue();
-        InternalSchemaMetadataState state =
-                InternalSchemaMetadataState.of(ValueAndBound.of(internalSchemaMetadata, 100L));
-        externalBackupPersister.storeSchemaMetadata(ATLAS_SERVICE, state);
-
-        assertThat(externalBackupPersister.getSchemaMetadata(ATLAS_SERVICE)).contains(state);
-    }
-
-    @Test
-    public void getImmutableTimestampWhenEmpty() {
-        assertThat(externalBackupPersister.getImmutableTimestamp(ATLAS_SERVICE)).isEmpty();
-    }
-
-    @Test
-    public void putAndGetImmutableTimestamp() {
-        long immutableTimestamp = 1337L;
-        InProgressBackupToken inProgressBackupToken = InProgressBackupToken.builder()
-                .namespace(NAMESPACE)
-                .immutableTimestamp(immutableTimestamp)
-                .backupStartTimestamp(3141L)
-                .lockToken(LockToken.of(UUID.randomUUID()))
-                .build();
-        externalBackupPersister.storeImmutableTimestamp(ATLAS_SERVICE, inProgressBackupToken);
-        assertThat(externalBackupPersister.getImmutableTimestamp(ATLAS_SERVICE)).contains(immutableTimestamp);
-    }
-
-    @Test
-    public void getCompletedBackupWhenEmpty() {
-        assertThat(externalBackupPersister.getCompletedBackup(ATLAS_SERVICE)).isEmpty();
-    }
-
-    @Test
-    public void putAndGetCompletedBackup() {
-        CompletedBackup completedBackup = CompletedBackup.builder()
-                .namespace(NAMESPACE)
-                .immutableTimestamp(1L)
-                .backupStartTimestamp(2L)
-                .backupEndTimestamp(3L)
-                .build();
-        externalBackupPersister.storeCompletedBackup(ATLAS_SERVICE, completedBackup);
-
-        assertThat(externalBackupPersister.getCompletedBackup(ATLAS_SERVICE)).contains(completedBackup);
-    }
-
-    @Test
-    public void testLegacyCasing() throws IOException {
-        String legacyState = "{\"value\":{\"value\":{\"timestampToTransactionsTableSchemaVersion\":{\"timestampMappings"
-            + "\":[{\"longRange\":{\"lower-endpoint\":1316020054,\"lower-bound-type\":\"CLOSED\"},\"value\":3},{\"longRange\":{\"lower-endpoint\":1,\"lower-bound-type\":\"CLOSED\",\"upper-endpoint\":1316020054,\"upper-bound-type\":\"OPEN\"},\"value\":1}]}},\"bound\":1318613869}}";
-        File tempFile = tempFolder.newFile();
-        Files.copy(
-                new ByteArrayInputStream(legacyState.getBytes(StandardCharsets.UTF_8)),
-                tempFile.toPath(),
-                StandardCopyOption.REPLACE_EXISTING);
-
-        InternalSchemaMetadataState parsed = externalBackupPersister
-                .loadFromFile(ATLAS_SERVICE, tempFile, InternalSchemaMetadataState.class)
-                .get();
-        assertThat(parsed).isNotNull();
-    }
-
-    private Path getPath(AtlasService atlasService) {
-        try {
-            return getOrCreateFolder(atlasService).toPath();
-        } catch (IOException ex) {
-            throw new RuntimeException(ex);
-        }
-    }
-
-    private File getOrCreateFolder(AtlasService atlasService) throws IOException {
-        File file = new File(tempFolder.getRoot(), atlasService.getNamespace().value());
-        return file.exists()
-                ? file
-                : tempFolder.newFolder(atlasService.getNamespace().value());
-    }
-}u}(j$ (ca6ee9cea8ec189a088d50559325d4e84ff8ad09jW% Ratlasdb-backup/src/test/resources/mockito-extensions/org.mockito.plugins.MockMakerjY% removedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Ftest%2Fresources%2Fmockito-extensions%2Forg.mockito.plugins.MockMakerj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-backup%2Fsrc%2Ftest%2Fresources%2Fmockito-extensions%2Forg.mockito.plugins.MockMakerj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Ftest%2Fresources%2Fmockito-extensions%2Forg.mockito.plugins.MockMaker?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% <@@ -1 +0,0 @@
-mock-maker-inline
\ No newline at end of fileu}(j$ (87ef9c26965f3fbebf2004d1a2b09b55580f6a3bjW% Qatlasdb-cassandra/src/main/java/com/palantir/atlasdb/backup/ClosingKvsRunner.javajY% removedjQ% K jR% K$j[% K$j\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FClosingKvsRunner.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FClosingKvsRunner.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FClosingKvsRunner.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,36 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import java.util.function.Function;
-
-final class ClosingKvsRunner implements KvsRunner {
-    private final Function<AtlasService, KeyValueService> keyValueServiceFactory;
-
-    ClosingKvsRunner(Function<AtlasService, KeyValueService> keyValueServiceFactory) {
-        this.keyValueServiceFactory = keyValueServiceFactory;
-    }
-
-    @Override
-    public <T> T run(AtlasService atlasService, Function<KeyValueService, T> function) {
-        try (KeyValueService kvs = keyValueServiceFactory.apply(atlasService)) {
-            return function.apply(kvs);
-        }
-    }
-}u}(j$ (885d551251d03ef385e1174e0842d306026bcd76jW% Jatlasdb-cassandra/src/main/java/com/palantir/atlasdb/backup/KvsRunner.javajY% removedjQ% K jR% K"j[% K"j\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FKvsRunner.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FKvsRunner.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FKvsRunner.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,34 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.transaction.api.TransactionManager;
-import java.util.function.Function;
-
-public interface KvsRunner {
-    <T> T run(AtlasService atlasService, Function<KeyValueService, T> function);
-
-    static KvsRunner create(Function<AtlasService, KeyValueService> kvsFactory) {
-        return new ClosingKvsRunner(kvsFactory);
-    }
-
-    static KvsRunner create(TransactionManager txnManager) {
-        return new NonClosingKvsRunner(txnManager);
-    }
-}u}(j$ (b4a95d23a94eec5e3c3e926cae077f89ed7257cdjW% Tatlasdb-cassandra/src/main/java/com/palantir/atlasdb/backup/NonClosingKvsRunner.javajY% removedjQ% K jR% K#j[% K#j\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FNonClosingKvsRunner.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FNonClosingKvsRunner.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FNonClosingKvsRunner.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X(  @@ -1,35 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.transaction.api.TransactionManager;
-import java.util.function.Function;
-
-final class NonClosingKvsRunner implements KvsRunner {
-    private final TransactionManager txnManager;
-
-    NonClosingKvsRunner(TransactionManager txnManager) {
-        this.txnManager = txnManager;
-    }
-
-    @Override
-    public <T> T run(AtlasService _atlasService, Function<KeyValueService, T> function) {
-        return function.apply(txnManager.getKeyValueService());
-    }
-}u}(j$ (e55a96f4c1411ecdb5d2470ca391d5190e22b738jW% `atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/CassandraRepairHelper.javajY% removedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCassandraRepairHelper.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCassandraRepairHelper.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCassandraRepairHelper.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X'#  @@ -1,181 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import com.github.benmanes.caffeine.cache.Caffeine;
-import com.github.benmanes.caffeine.cache.LoadingCache;
-import com.github.benmanes.caffeine.cache.RemovalCause;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.RangeSet;
-import com.google.common.collect.Sets;
-import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.backup.KvsRunner;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
-import com.palantir.atlasdb.cassandra.ReloadingCloseableContainer;
-import com.palantir.atlasdb.cassandra.ReloadingCloseableContainerImpl;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.keyvalue.cassandra.async.client.creation.ClusterFactory.CassandraClusterConfig;
-import com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService;
-import com.palantir.atlasdb.schema.TargetedSweepTables;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import com.palantir.refreshable.Refreshable;
-import java.net.InetSocketAddress;
-import java.time.Duration;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.function.BiConsumer;
-import java.util.function.Function;
-import java.util.stream.Stream;
-
-public class CassandraRepairHelper {
-    private static final SafeLogger log = SafeLoggerFactory.get(CassandraRepairHelper.class);
-
-    private static final Set<TableReference> TABLES_TO_REPAIR =
-            Sets.union(ImmutableSet.of(AtlasDbConstants.COORDINATION_TABLE), TargetedSweepTables.REPAIR_ON_RESTORE);
-
-    private final Function<AtlasService, CassandraClusterConfig> cassandraClusterConfigFactory;
-    private final Function<AtlasService, Refreshable<CassandraServersConfig>> refreshableCassandraServersConfigFactory;
-    private final LoadingCache<AtlasService, ReloadingCloseableContainer<CqlCluster>> cqlClusterContainers;
-    private final KvsRunner kvsRunner;
-
-    public CassandraRepairHelper(
-            KvsRunner kvsRunner,
-            Function<AtlasService, CassandraClusterConfig> cassandraClusterConfigFactory,
-            Function<AtlasService, Refreshable<CassandraServersConfig>> refreshableCassandraServersConfigFactory) {
-        this.kvsRunner = kvsRunner;
-        this.cassandraClusterConfigFactory = cassandraClusterConfigFactory;
-        this.refreshableCassandraServersConfigFactory = refreshableCassandraServersConfigFactory;
-
-        this.cqlClusterContainers = Caffeine.newBuilder()
-                .maximumSize(300)
-                .expireAfterAccess(Duration.ofMinutes(30L))
-                .removalListener(CassandraRepairHelper::onRemoval)
-                .build(this::getCqlClusterUncached);
-    }
-
-    private static void onRemoval(
-            AtlasService atlasService,
-            ReloadingCloseableContainer<CqlCluster> reloadingCloseableContainer,
-            RemovalCause _removalCause) {
-        try {
-            reloadingCloseableContainer.close();
-        } catch (Exception e) {
-            log.warn("Failed to close cql cluster container", SafeArg.of("atlasService", atlasService), e);
-        }
-    }
-
-    private ReloadingCloseableContainer<CqlCluster> getCqlClusterUncached(AtlasService atlasService) {
-        log.info("Creating CQL cluster for Atlas service", SafeArg.of("atlasService", atlasService));
-        CassandraClusterConfig cassandraClusterConfig = cassandraClusterConfigFactory.apply(atlasService);
-        Refreshable<CassandraServersConfig> cassandraServersConfigRefreshable =
-                refreshableCassandraServersConfigFactory.apply(atlasService);
-
-        return ReloadingCloseableContainerImpl.of(
-                cassandraServersConfigRefreshable,
-                cassandraServersConfig ->
-                        CqlCluster.create(cassandraClusterConfig, cassandraServersConfig, atlasService.getNamespace()));
-    }
-
-    public void repairInternalTables(AtlasService atlasService, BiConsumer<String, RangesForRepair> repairTable) {
-        kvsRunner.run(atlasService, kvs -> repairInternalTables(kvs, atlasService, repairTable));
-    }
-
-    public Void repairInternalTables(
-            KeyValueService kvs, AtlasService atlasService, BiConsumer<String, RangesForRepair> repairTable) {
-        CqlCluster cqlCluster = cqlClusterContainers.get(atlasService).get();
-        KeyedStream.of(getTableNamesToRepair(kvs))
-                .map(tableName -> getRangesToRepair(cqlCluster, atlasService, tableName))
-                .forEach(repairTable);
-        return null;
-    }
-
-    private static Stream<String> getTableNamesToRepair(KeyValueService kvs) {
-        return kvs.getAllTableNames().stream()
-                .filter(TABLES_TO_REPAIR::contains)
-                .map(TableReference::getTableName);
-    }
-
-    public void repairTransactionsTables(
-            AtlasService atlasService,
-            List<TransactionsTableInteraction> transactionsTableInteractions,
-            BiConsumer<String, RangesForRepair> repairTable) {
-        Map<String, RangesForRepair> tokenRangesForRepair =
-                getRangesForRepairByTable(atlasService, transactionsTableInteractions);
-
-        tokenRangesForRepair.forEach((table, ranges) -> {
-            log.info(
-                    "Repairing ranges for table",
-                    SafeArg.of("namespace", atlasService.getNamespace()),
-                    SafeArg.of("table", table));
-            repairTable.accept(table, ranges);
-        });
-    }
-
-    public void cleanTransactionsTables(
-            AtlasService atlasService,
-            long startTimestamp,
-            List<TransactionsTableInteraction> transactionsTableInteractions) {
-        cqlClusterContainers.get(atlasService).get().abortTransactions(startTimestamp, transactionsTableInteractions);
-    }
-
-    private Map<String, RangesForRepair> getRangesForRepairByTable(
-            AtlasService atlasService, List<TransactionsTableInteraction> transactionsTableInteractions) {
-        return KeyedStream.stream(getRawRangesForRepairByTable(atlasService, transactionsTableInteractions))
-                .map(RangesForRepair::of)
-                .collectToMap();
-    }
-
-    private Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> getRawRangesForRepairByTable(
-            AtlasService atlasService, List<TransactionsTableInteraction> transactionsTableInteractions) {
-        return cqlClusterContainers
-                .get(atlasService)
-                .get()
-                .getTransactionsTableRangesForRepair(transactionsTableInteractions);
-    }
-
-    // VisibleForTesting
-    public static RangesForRepair getRangesToRepair(
-            CqlCluster cqlCluster, AtlasService atlasService, String tableName) {
-        Map<InetSocketAddress, RangeSet<LightweightOppToken>> tokenRanges =
-                getTokenRangesToRepair(cqlCluster, atlasService, tableName);
-        return RangesForRepair.of(tokenRanges);
-    }
-
-    private static Map<InetSocketAddress, RangeSet<LightweightOppToken>> getTokenRangesToRepair(
-            CqlCluster cqlCluster, AtlasService atlasService, String tableName) {
-        String cassandraTableName = getCassandraTableName(atlasService.getNamespace(), tableName);
-        return cqlCluster.getTokenRanges(cassandraTableName);
-    }
-
-    private static String getCassandraTableName(Namespace namespace, String tableName) {
-        TableReference tableRef = TableReference.create(toKvNamespace(namespace), tableName);
-        return AbstractKeyValueService.internalTableName(tableRef);
-    }
-
-    private static com.palantir.atlasdb.keyvalue.api.Namespace toKvNamespace(Namespace namespace) {
-        return com.palantir.atlasdb.keyvalue.api.Namespace.create(namespace.get());
-    }
-}u}(j$ (10ac517540c4ccbec86921f43455bf0f5cc33699jW% _atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/ClusterMetadataUtils.javajY% removedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FClusterMetadataUtils.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FClusterMetadataUtils.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FClusterMetadataUtils.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X,  @@ -1,224 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import static com.google.common.collect.ImmutableRangeSet.toImmutableRangeSet;
-
-import com.datastax.driver.core.KeyspaceMetadata;
-import com.datastax.driver.core.TableMetadata;
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.ArrayListMultimap;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.MoreCollectors;
-import com.google.common.collect.Multimap;
-import com.google.common.collect.Range;
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.logging.LoggingArgs;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.logsafe.Preconditions;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import java.net.InetSocketAddress;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.SortedMap;
-import java.util.TreeMap;
-import java.util.function.Predicate;
-import java.util.stream.Collectors;
-import java.util.stream.Stream;
-
-public final class ClusterMetadataUtils {
-    private ClusterMetadataUtils() {
-        // util class
-    }
-
-    public static TableMetadata getTableMetadata(CqlMetadata metadata, Namespace namespace, String table) {
-        KeyspaceMetadata keyspaceMetadata = metadata.getKeyspaceMetadata(namespace);
-        Optional<TableMetadata> maybeTable = keyspaceMetadata.getTables().stream()
-                .filter(tableMetadata -> tableMetadata.getName().equals(table))
-                .collect(MoreCollectors.toOptional());
-        return maybeTable.orElseThrow(() -> new SafeIllegalArgumentException(
-                "Can't find table",
-                SafeArg.of("keyspace", namespace),
-                LoggingArgs.tableRef("table", TableReference.fromString(table))));
-    }
-
-    /**
-     * Returns a mapping of Node to token ranges its host contains, where every partition key in the specified
-     * list is present in the token ranges for each replica.
-     *
-     * <p>For example there is a cluster that has keyspace K with a simple replication strategy and replication factor
-     * 2, the ring of the cluster has a range of (0, 3], and there are 3 nodes A, B, and C, where:
-     *
-     * <ul>
-     *   <li>A has replicas for K for token ranges (1, 2] and (2, 3]
-     *   <li>B has replicas for K for token ranges (2, 3] and (0, 1]
-     *   <li>C has replicas for K for token ranges (0, 1] and (1, 2]
-     * </ul>
-     *
-     * <p>The value returned by calling getTokenMapping([A, B, C], metadata, K, [0.25, 0.5, 2.5]) would be: <br>
-     * { A : set[ range(2, 3] ], B : set[ range(0, 1],  range(2, 3]] }, C : set[ range(0, 1] ] }
-     *
-     * @param nodeSet The Cassandra nodes whose replicas to check
-     * @param metadata The Datastax driver metadata from the Cassandra cluster
-     * @param namespace The namespace containing the partition keys we want to map
-     * @param partitionKeyTokens The Cassandra tokens for the partition keys we want to map
-     * @return Mapping of Node to token ranges its host contains, where every partition key in the specified
-     * list is present in one of the token ranges on one host
-     */
-    @SuppressWarnings("ReverseDnsLookup")
-    public static Map<InetSocketAddress, RangeSet<LightweightOppToken>> getTokenMapping(
-            Collection<InetSocketAddress> nodeSet,
-            CqlMetadata metadata,
-            Namespace namespace,
-            Set<LightweightOppToken> partitionKeyTokens) {
-
-        Map<String, InetSocketAddress> nodeMetadataHostMap =
-                KeyedStream.of(nodeSet).mapKeys(InetSocketAddress::getHostName).collectToMap();
-        Map<InetSocketAddress, RangeSet<LightweightOppToken>> hostToTokenRangeMap =
-                getTokenMappingForPartitionKeys(metadata, namespace, partitionKeyTokens);
-
-        return KeyedStream.stream(hostToTokenRangeMap)
-                .mapKeys(host -> lookUpAddress(nodeMetadataHostMap, host))
-                .collectToMap();
-    }
-
-    @SuppressWarnings("ReverseDnsLookup")
-    private static InetSocketAddress lookUpAddress(
-            Map<String, InetSocketAddress> nodeMetadataHostMap, InetSocketAddress host) {
-        String hostname = host.getHostName();
-        Preconditions.checkArgument(
-                nodeMetadataHostMap.containsKey(hostname),
-                "Did not find corresponding Node to run repair",
-                SafeArg.of("hostname", hostname),
-                SafeArg.of("availableHosts", nodeMetadataHostMap.keySet()),
-                SafeArg.of("host", host));
-        return nodeMetadataHostMap.get(hostname);
-    }
-
-    private static Map<InetSocketAddress, RangeSet<LightweightOppToken>> getTokenMappingForPartitionKeys(
-            CqlMetadata metadata, Namespace namespace, Set<LightweightOppToken> partitionKeyTokens) {
-        Set<Range<LightweightOppToken>> tokenRanges = metadata.getTokenRanges();
-        SortedMap<LightweightOppToken, Range<LightweightOppToken>> tokenRangesByStart = KeyedStream.of(tokenRanges)
-                .mapKeys(LightweightOppToken::getLowerExclusive)
-                .collectTo(TreeMap::new);
-        Set<Range<LightweightOppToken>> ranges = getMinimalSetOfRangesForTokens(partitionKeyTokens, tokenRangesByStart);
-        Multimap<InetSocketAddress, Range<LightweightOppToken>> tokenMapping = ArrayListMultimap.create();
-        ranges.forEach(range -> {
-            List<InetSocketAddress> hosts = ImmutableList.copyOf(metadata.getReplicas(namespace, range));
-            if (hosts.isEmpty()) {
-                throw new SafeIllegalStateException(
-                        "Failed to find any replicas of token range for repair",
-                        SafeArg.of("tokenRange", range.toString()),
-                        SafeArg.of("keyspace", quotedNamespace(namespace)));
-            }
-            hosts.forEach(host -> tokenMapping.put(host, range));
-        });
-        return KeyedStream.stream(tokenMapping.asMap())
-                .map(Collection::stream)
-                .map(stream -> (RangeSet<LightweightOppToken>) stream.collect(toImmutableRangeSet()))
-                .collectToMap();
-    }
-
-    @VisibleForTesting
-    // Needs to be Set<Range<>> as we don't want to merge ranges yet
-    static Set<Range<LightweightOppToken>> getMinimalSetOfRangesForTokens(
-            Set<LightweightOppToken> partitionKeyTokens,
-            SortedMap<LightweightOppToken, Range<LightweightOppToken>> tokenRangesByStart) {
-        Map<LightweightOppToken, Range<LightweightOppToken>> tokenRangesByStartToken = new HashMap<>();
-        for (LightweightOppToken token : partitionKeyTokens) {
-            Range<LightweightOppToken> minimalTokenRange = findTokenRange(token, tokenRangesByStart);
-            tokenRangesByStartToken.merge(
-                    LightweightOppToken.getLowerExclusive(minimalTokenRange),
-                    minimalTokenRange,
-                    ClusterMetadataUtils::findLatestEndingRange);
-
-            if (!minimalTokenRange.hasLowerBound()) {
-                // handle wraparound
-                Optional<Range<LightweightOppToken>> wraparoundRange = tokenRangesByStart.values().stream()
-                        .filter(Predicate.not(Range::hasUpperBound))
-                        .findFirst();
-                wraparoundRange.ifPresent(range -> tokenRangesByStartToken.merge(
-                        LightweightOppToken.getLowerExclusive(range),
-                        range,
-                        ClusterMetadataUtils::findLatestEndingRange));
-            }
-        }
-        return ImmutableSet.copyOf(tokenRangesByStartToken.values());
-    }
-
-    private static Range<LightweightOppToken> findTokenRange(
-            LightweightOppToken token, SortedMap<LightweightOppToken, Range<LightweightOppToken>> tokenRangesByStart) {
-        if (tokenRangesByStart.headMap(token).isEmpty()) {
-            // Shouldn't happen, as tokenRangesByStart should include the whole token ring, including some range
-            // starting with minus infinity.
-            throw new SafeIllegalStateException(
-                    "Unable to find token range for token, as a full token ring was not supplied",
-                    SafeArg.of("token", token),
-                    SafeArg.of("tokenRangesByStart", tokenRangesByStart));
-        }
-
-        LightweightOppToken lowerBound = tokenRangesByStart.headMap(token).lastKey();
-        if (lowerBound.isEmpty()) {
-            return Range.atMost(token);
-        } else {
-            return Range.openClosed(lowerBound, token);
-        }
-    }
-
-    private static String quotedNamespace(Namespace namespace) {
-        return "\"" + namespace.value() + "\"";
-    }
-
-    // VisibleForTesting
-    public static Range<LightweightOppToken> findLatestEndingRange(
-            Range<LightweightOppToken> range1, Range<LightweightOppToken> range2) {
-        Preconditions.checkArgument(
-                LightweightOppToken.getLowerExclusive(range1).equals(LightweightOppToken.getLowerExclusive(range2)),
-                "Expects token ranges to have the same start token",
-                SafeArg.of("range1", range1),
-                SafeArg.of("range2", range2));
-
-        Set<Range<LightweightOppToken>> wrapAroundTokenRanges = Stream.of(range1, range2)
-                .filter(Predicate.not(Range::hasUpperBound))
-                .collect(Collectors.toSet());
-        // If any token ranges are wraparound ranges, the non-wraparound ranges cannot possibly be the longest range
-        if (wrapAroundTokenRanges.size() == 1) {
-            return wrapAroundTokenRanges.iterator().next();
-        }
-
-        if (range1.contains(range2.upperEndpoint())) {
-            return range1;
-        } else if (range2.contains(range1.upperEndpoint())) {
-            return range2;
-        } else {
-            throw new SafeIllegalArgumentException(
-                    "Cannot find max token range",
-                    SafeArg.of("tokenRange1", range1),
-                    SafeArg.of("tokenRange2", range2));
-        }
-    }
-}u}(j$ (ef671c609a69c3feb06a91c7236944f03dc5457fjW% Uatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/CqlCluster.javajY% removedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlCluster.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlCluster.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlCluster.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,127 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import com.datastax.driver.core.Cluster;
-import com.github.rholder.retry.RetryException;
-import com.github.rholder.retry.Retryer;
-import com.github.rholder.retry.StopStrategies;
-import com.github.rholder.retry.WaitStrategies;
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.keyvalue.cassandra.async.client.creation.ClusterFactory;
-import com.palantir.atlasdb.keyvalue.cassandra.async.client.creation.ClusterFactory.CassandraClusterConfig;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import com.palantir.logsafe.exceptions.SafeRuntimeException;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.io.Closeable;
-import java.io.IOException;
-import java.net.InetSocketAddress;
-import java.time.Duration;
-import java.util.List;
-import java.util.Map;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.TimeUnit;
-
-public final class CqlCluster implements Closeable {
-    private static final SafeLogger log = SafeLoggerFactory.get(CqlCluster.class);
-
-    private static final Duration RETRY_DURATION = Duration.ofMinutes(1L);
-    private static final int RETRY_COUNT = 5;
-
-    private final Cluster cluster;
-    private final CassandraServersConfig cassandraServersConfig;
-    private final Namespace namespace;
-    private final Retryer<CqlSession> cqlSessionRetryer;
-
-    // VisibleForTesting
-    public CqlCluster(Cluster cluster, CassandraServersConfig cassandraServersConfig, Namespace namespace) {
-        this(cluster, cassandraServersConfig, namespace, RETRY_DURATION);
-    }
-
-    // VisibleForTesting
-    public CqlCluster(
-            Cluster cluster,
-            CassandraServersConfig cassandraServersConfig,
-            Namespace namespace,
-            Duration retryDuration) {
-        this.cluster = cluster;
-        this.cassandraServersConfig = cassandraServersConfig;
-        this.namespace = namespace;
-        this.cqlSessionRetryer = new Retryer<>(
-                StopStrategies.stopAfterAttempt(RETRY_COUNT),
-                WaitStrategies.fixedWait(retryDuration.toMillis(), TimeUnit.MILLISECONDS),
-                attempt -> !attempt.hasResult());
-    }
-
-    public static CqlCluster create(
-            CassandraClusterConfig cassandraClusterConfig,
-            CassandraServersConfig cassandraServersConfig,
-            Namespace namespace) {
-        Cluster cluster =
-                new ClusterFactory(Cluster::builder).constructCluster(cassandraClusterConfig, cassandraServersConfig);
-        return new CqlCluster(cluster, cassandraServersConfig, namespace, RETRY_DURATION);
-    }
-
-    @Override
-    public void close() throws IOException {
-        log.info(
-                "Closing cql cluster container",
-                SafeArg.of("namespace", namespace),
-                new SafeRuntimeException("I exist to show you the stack trace"));
-        cluster.close();
-    }
-
-    public Map<InetSocketAddress, RangeSet<LightweightOppToken>> getTokenRanges(String tableName) {
-        try (CqlSession session = createSessionWithRetry()) {
-            return new TokenRangeFetcher(session, namespace, cassandraServersConfig).getTokenRange(tableName);
-        }
-    }
-
-    public Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> getTransactionsTableRangesForRepair(
-            List<TransactionsTableInteraction> transactionsTableInteractions) {
-        try (CqlSession session = createSessionWithRetry()) {
-            return new RepairRangeFetcher(session, namespace, cassandraServersConfig)
-                    .getTransactionTableRangesForRepair(transactionsTableInteractions);
-        }
-    }
-
-    public void abortTransactions(long timestamp, List<TransactionsTableInteraction> transactionsTableInteractions) {
-        try (CqlSession session = createSessionWithRetry()) {
-            new TransactionAborter(session, namespace).abortTransactions(timestamp, transactionsTableInteractions);
-        }
-    }
-
-    @VisibleForTesting
-    CqlSession createSessionWithRetry() {
-        try {
-            return cqlSessionRetryer.call(() -> new CqlSession(cluster.connect()));
-        } catch (ExecutionException e) {
-            throw new SafeIllegalStateException(
-                    "Failed to execute CqlSession connect", e, SafeArg.of("namespace", namespace));
-        } catch (RetryException e) {
-            throw new SafeIllegalStateException(
-                    "Failed to execute CqlSession connect even with retry", e, SafeArg.of("namespace", namespace));
-        }
-    }
-}u}(j$ (73b08f7b2b5a0f8455602448f16606158d60e1e4jW% Uatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/CqlSession.javajY% modifiedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlSession.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlSession.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlSession.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -16,18 +16,11 @@
 
 package com.palantir.atlasdb.cassandra.backup;
 
-import com.datastax.driver.core.ConsistencyLevel;
 import com.datastax.driver.core.PreparedStatement;
 import com.datastax.driver.core.ResultSet;
 import com.datastax.driver.core.Session;
 import com.datastax.driver.core.Statement;
-import com.palantir.atlasdb.keyvalue.cassandra.CassandraConstants;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
 import java.io.Closeable;
-import java.util.List;
-import java.util.Set;
-import java.util.stream.Collectors;
-import java.util.stream.StreamSupport;
 
 public class CqlSession implements Closeable {
     private final Session session;
@@ -45,15 +38,6 @@ public CqlMetadata getMetadata() {
         return new CqlMetadata(session.getCluster().getMetadata());
     }
 
-    public Set<LightweightOppToken> retrieveRowKeysAtConsistencyAll(List<Statement> selectStatements) {
-        return selectStatements.stream()
-                .map(statement -> statement.setConsistencyLevel(ConsistencyLevel.ALL))
-                .flatMap(select -> StreamSupport.stream(session.execute(select).spliterator(), false))
-                .map(row -> row.getToken(CassandraConstants.ROW))
-                .map(LightweightOppToken::serialize)
-                .collect(Collectors.toSet());
-    }
-
     public PreparedStatement prepare(Statement statement) {
         return session.prepare(statement.toString());
     }u}(j$ (933c52ba0e9a988bbc5050289baf465ee261d363jW% Zatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/RangesForRepair.javajY% removedjQ% K jR% K%j[% K%j\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRangesForRepair.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRangesForRepair.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRangesForRepair.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,37 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import java.net.InetSocketAddress;
-import java.util.Map;
-import org.immutables.value.Value;
-
-@Value.Immutable
-@SuppressWarnings("UnstableApiUsage")
-public abstract class RangesForRepair {
-    public abstract Map<InetSocketAddress, RangeSet<LightweightOppToken>> tokenMap();
-
-    public RangeSet<LightweightOppToken> get(InetSocketAddress address) {
-        return tokenMap().get(address);
-    }
-
-    public static RangesForRepair of(Map<InetSocketAddress, RangeSet<LightweightOppToken>> tokenMap) {
-        return ImmutableRangesForRepair.builder().tokenMap(tokenMap).build();
-    }
-}u}(j$ (37f1ac7913a2ee5b0148e690a9bc2b6a483f6f49jW% ]atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/RepairRangeFetcher.javajY% removedjQ% K jR% Kpj[% Kpj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRepairRangeFetcher.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRepairRangeFetcher.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRepairRangeFetcher.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X/  @@ -1,112 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import com.datastax.driver.core.Statement;
-import com.datastax.driver.core.TableMetadata;
-import com.google.common.collect.Multimap;
-import com.google.common.collect.Multimaps;
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import com.palantir.timestamp.FullyBoundedTimestampRange;
-import java.net.InetSocketAddress;
-import java.util.Collection;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.stream.Collectors;
-
-final class RepairRangeFetcher {
-    private static final SafeLogger log = SafeLoggerFactory.get(RepairRangeFetcher.class);
-
-    private final CqlSession cqlSession;
-    private final CqlMetadata cqlMetadata;
-    private final Namespace namespace;
-    private final CassandraServersConfig cassandraServersConfig;
-
-    public RepairRangeFetcher(
-            CqlSession cqlSession, Namespace namespace, CassandraServersConfig cassandraServersConfig) {
-        this.cqlSession = cqlSession;
-        this.cqlMetadata = cqlSession.getMetadata();
-        this.namespace = namespace;
-        this.cassandraServersConfig = cassandraServersConfig;
-    }
-
-    public Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> getTransactionTableRangesForRepair(
-            List<TransactionsTableInteraction> transactionsTableInteractions) {
-
-        Map<String, Set<LightweightOppToken>> partitionKeysByTable =
-                getPartitionTokensByTable(transactionsTableInteractions);
-
-        maybeLogTokenRanges(transactionsTableInteractions, partitionKeysByTable);
-
-        Set<InetSocketAddress> hosts = CassandraServersConfigs.getCqlHosts(cassandraServersConfig);
-        return KeyedStream.stream(partitionKeysByTable)
-                .map(ranges -> ClusterMetadataUtils.getTokenMapping(hosts, cqlMetadata, namespace, ranges))
-                .collectToMap();
-    }
-
-    private Map<String, Set<LightweightOppToken>> getPartitionTokensByTable(
-            List<TransactionsTableInteraction> transactionsTableInteractions) {
-        Multimap<String, TransactionsTableInteraction> interactionsByTable =
-                Multimaps.index(transactionsTableInteractions, TransactionsTableInteraction::getTransactionsTableName);
-        return KeyedStream.stream(interactionsByTable.asMap())
-                .map(this::getPartitionsTokenForSingleTransactionsTable)
-                .collectToMap();
-    }
-
-    private Set<LightweightOppToken> getPartitionsTokenForSingleTransactionsTable(
-            Collection<TransactionsTableInteraction> interactions) {
-        return interactions.stream()
-                .map(this::getPartitionTokensForTransactionsTable)
-                .flatMap(Collection::stream)
-                .collect(Collectors.toSet());
-    }
-
-    private Set<LightweightOppToken> getPartitionTokensForTransactionsTable(TransactionsTableInteraction interaction) {
-        TableMetadata transactionsTableMetadata =
-                ClusterMetadataUtils.getTableMetadata(cqlMetadata, namespace, interaction.getTransactionsTableName());
-        List<Statement> selectStatements =
-                interaction.createSelectStatementsForScanningFullTimestampRange(transactionsTableMetadata);
-        return cqlSession.retrieveRowKeysAtConsistencyAll(selectStatements);
-    }
-
-    private static void maybeLogTokenRanges(
-            List<TransactionsTableInteraction> transactionsTableInteractions,
-            Map<String, Set<LightweightOppToken>> partitionKeysByTable) {
-        if (log.isDebugEnabled()) {
-            Multimap<String, TransactionsTableInteraction> indexedInteractions = Multimaps.index(
-                    transactionsTableInteractions, TransactionsTableInteraction::getTransactionsTableName);
-            Multimap<String, FullyBoundedTimestampRange> loggableTableRanges =
-                    Multimaps.transformValues(indexedInteractions, TransactionsTableInteraction::getTimestampRange);
-            Map<String, Integer> numPartitionKeysByTable =
-                    KeyedStream.stream(partitionKeysByTable).map(Set::size).collectToMap();
-            log.debug(
-                    "Identified token ranges requiring repair in the following transactions tables",
-                    SafeArg.of("transactionsTablesWithRanges", loggableTableRanges),
-                    SafeArg.of("numPartitionKeysByTable", numPartitionKeysByTable));
-        }
-    }
-}ud     }(j$ (a28968b7128269ec0ba746fc30513d6c81f27c8ajW% \atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/TokenRangeFetcher.javajY% removedjQ% K jR% Koj[% Koj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTokenRangeFetcher.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTokenRangeFetcher.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTokenRangeFetcher.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X	  @@ -1,111 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import com.datastax.driver.core.ConsistencyLevel;
-import com.datastax.driver.core.KeyspaceMetadata;
-import com.datastax.driver.core.Statement;
-import com.datastax.driver.core.TableMetadata;
-import com.datastax.driver.core.querybuilder.QueryBuilder;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
-import com.palantir.atlasdb.keyvalue.cassandra.CassandraConstants;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.net.InetSocketAddress;
-import java.util.Map;
-import java.util.Set;
-import java.util.concurrent.TimeUnit;
-
-final class TokenRangeFetcher {
-    private static final SafeLogger log = SafeLoggerFactory.get(TokenRangeFetcher.class);
-
-    private static final int LONG_READ_TIMEOUT_MS = (int) TimeUnit.MINUTES.toMillis(2);
-    // reduce this from default because we run RepairTableTask across N keyspaces at the same time
-    private static final int SELECT_FETCH_SIZE = 1_000;
-
-    private final CqlSession cqlSession;
-    private final CqlMetadata cqlMetadata;
-    private final Namespace namespace;
-    private final CassandraServersConfig cassandraServersConfig;
-
-    public TokenRangeFetcher(
-            CqlSession cqlSession, Namespace namespace, CassandraServersConfig cassandraServersConfig) {
-        this.namespace = namespace;
-        this.cassandraServersConfig = cassandraServersConfig;
-        this.cqlSession = cqlSession;
-        this.cqlMetadata = cqlSession.getMetadata();
-    }
-
-    public Map<InetSocketAddress, RangeSet<LightweightOppToken>> getTokenRange(String tableName) {
-        KeyspaceMetadata keyspaceMetadata = cqlMetadata.getKeyspaceMetadata(namespace);
-        if (keyspaceMetadata == null) {
-            log.error(
-                    "Could not find metadata for a keyspace that is supposed to exist",
-                    SafeArg.of("keyspace", namespace));
-            return ImmutableMap.of();
-        }
-
-        TableMetadata tableMetadata = keyspaceMetadata.getTable(tableName);
-        if (tableMetadata == null) {
-            log.error(
-                    "Could not find metadata for table that is supposed to exist",
-                    SafeArg.of("keyspace", namespace),
-                    SafeArg.of("tableName", tableName));
-            return ImmutableMap.of();
-        }
-
-        Set<LightweightOppToken> partitionTokens = getPartitionTokens(tableMetadata);
-        Map<InetSocketAddress, RangeSet<LightweightOppToken>> tokenRangesByNode = ClusterMetadataUtils.getTokenMapping(
-                CassandraServersConfigs.getCqlHosts(cassandraServersConfig), cqlMetadata, namespace, partitionTokens);
-
-        if (!partitionTokens.isEmpty() && log.isDebugEnabled()) {
-            int numTokenRanges = tokenRangesByNode.values().stream()
-                    .mapToInt(ranges -> ranges.asRanges().size())
-                    .sum();
-
-            log.debug(
-                    "Identified token ranges requiring repair",
-                    SafeArg.of("keyspace", namespace),
-                    SafeArg.of("table", tableName),
-                    SafeArg.of("numPartitionKeys", partitionTokens.size()),
-                    SafeArg.of("numTokenRanges", numTokenRanges));
-        }
-
-        return tokenRangesByNode;
-    }
-
-    private Set<LightweightOppToken> getPartitionTokens(TableMetadata tableMetadata) {
-        return cqlSession.retrieveRowKeysAtConsistencyAll(ImmutableList.of(selectDistinctRowKeys(tableMetadata)));
-    }
-
-    private static Statement selectDistinctRowKeys(TableMetadata table) {
-        return QueryBuilder.select(CassandraConstants.ROW)
-                // only returns the column that we need instead of all of them, otherwise we get a timeout
-                .distinct()
-                .from(table)
-                .setConsistencyLevel(ConsistencyLevel.ALL)
-                .setFetchSize(SELECT_FETCH_SIZE)
-                .setReadTimeoutMillis(LONG_READ_TIMEOUT_MS);
-    }
-}u}(j$ (b6a927cdd7751156b605bc6e9520ce10f8bcce23jW% ]atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/TransactionAborter.javajY% removedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTransactionAborter.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTransactionAborter.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTransactionAborter.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X+  @@ -1,240 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import com.datastax.driver.core.ConsistencyLevel;
-import com.datastax.driver.core.PreparedStatement;
-import com.datastax.driver.core.ResultSet;
-import com.datastax.driver.core.Row;
-import com.datastax.driver.core.Statement;
-import com.datastax.driver.core.TableMetadata;
-import com.github.rholder.retry.RetryException;
-import com.github.rholder.retry.Retryer;
-import com.github.rholder.retry.StopStrategies;
-import com.github.rholder.retry.WaitStrategies;
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.Iterators;
-import com.google.common.collect.Streams;
-import com.palantir.atlasdb.atomic.AtomicValue;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionTableEntries;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionTableEntry;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.logsafe.Preconditions;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.List;
-import java.util.Optional;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.TimeUnit;
-import java.util.stream.Stream;
-
-final class TransactionAborter {
-    private static final SafeLogger log = SafeLoggerFactory.get(TransactionAborter.class);
-
-    private static final int RETRY_COUNT = 3;
-
-    private final CqlSession cqlSession;
-    private final Namespace namespace;
-    private final Retryer<Boolean> abortRetryer;
-
-    public TransactionAborter(CqlSession cqlSession, Namespace namespace) {
-        this.cqlSession = cqlSession;
-        this.namespace = namespace;
-
-        this.abortRetryer = new Retryer<>(
-                StopStrategies.stopAfterAttempt(RETRY_COUNT),
-                WaitStrategies.fixedWait(1L, TimeUnit.SECONDS),
-                attempt -> !attempt.hasResult() || !attempt.getResult());
-    }
-
-    public void abortTransactions(long timestamp, List<TransactionsTableInteraction> transactionsTableInteractions) {
-        CqlMetadata clusterMetadata = cqlSession.getMetadata();
-        transactionsTableInteractions.forEach(
-                txnInteraction -> abortTransactions(clusterMetadata, timestamp, txnInteraction));
-    }
-
-    private void abortTransactions(
-            CqlMetadata clusterMetadata, long timestamp, TransactionsTableInteraction txnInteraction) {
-        log.info(
-                "Aborting transactions after backup timestamp",
-                SafeArg.of("backupTimestamp", timestamp),
-                SafeArg.of("keyspace", namespace),
-                SafeArg.of("table", txnInteraction.getTransactionsTableName()));
-
-        TableMetadata transactionsTable = ClusterMetadataUtils.getTableMetadata(
-                clusterMetadata, namespace, txnInteraction.getTransactionsTableName());
-
-        PreparedStatement preparedAbortStatement = txnInteraction.prepareAbortStatement(transactionsTable, cqlSession);
-        PreparedStatement preparedCheckStatement = txnInteraction.prepareCheckStatement(transactionsTable, cqlSession);
-        Stream<TransactionTableEntry> keysToAbort =
-                getTransactionsToAbort(txnInteraction, transactionsTable, timestamp);
-        executeTransactionAborts(txnInteraction, preparedAbortStatement, preparedCheckStatement, keysToAbort);
-    }
-
-    @VisibleForTesting
-    Stream<TransactionTableEntry> getTransactionsToAbort(
-            TransactionsTableInteraction txnInteraction, TableMetadata transactionsTable, long timestamp) {
-        Stream<Row> rowResults =
-                txnInteraction.createSelectStatementsForScanningFullTimestampRange(transactionsTable).stream()
-                        .map(select -> cqlSession.execute(select).iterator())
-                        .flatMap(Streams::stream);
-
-        return KeyedStream.of(rowResults)
-                .map(txnInteraction::extractTimestamps)
-                .filter(entry -> isInRange(namespace, txnInteraction, entry, timestamp))
-                .values();
-    }
-
-    private static boolean isInRange(
-            Namespace namespace,
-            TransactionsTableInteraction txnInteraction,
-            TransactionTableEntry entry,
-            long timestamp) {
-        Optional<Long> maybeCommitTimestamp = getCommitTimestamp(entry);
-        if (maybeCommitTimestamp.isEmpty()) {
-            return false;
-        }
-
-        long startTimestamp = TransactionTableEntries.getStartTimestamp(entry);
-        long commitTimestamp = maybeCommitTimestamp.get();
-        boolean isInRange = txnInteraction.getTimestampRange().contains(startTimestamp);
-        if (commitTimestamp <= timestamp || !isInRange) {
-            return false;
-        }
-
-        log.debug(
-                "Found transaction to abort",
-                SafeArg.of("startTimestamp", startTimestamp),
-                SafeArg.of("commitTimestamp", commitTimestamp),
-                SafeArg.of("keyspace", namespace),
-                SafeArg.of("table", txnInteraction.getTransactionsTableName()));
-        return true;
-    }
-
-    @VisibleForTesting
-    void executeTransactionAborts(
-            TransactionsTableInteraction txnInteraction,
-            PreparedStatement preparedAbortStatement,
-            PreparedStatement preparedCheckStatement,
-            Stream<TransactionTableEntry> entries) {
-        entries.forEach(entry -> {
-            Statement abortStatement = txnInteraction.bindAbortStatement(preparedAbortStatement, entry);
-            Statement checkStatement = txnInteraction.bindCheckStatement(preparedCheckStatement, entry);
-            executeWithRetry(txnInteraction, abortStatement, checkStatement, entry);
-        });
-    }
-
-    private void executeWithRetry(
-            TransactionsTableInteraction txnInteraction,
-            Statement abortStatement,
-            Statement checkStatement,
-            TransactionTableEntry entry) {
-        long startTs = TransactionTableEntries.getStartTimestamp(entry);
-        long commitTs = getCommitTimestamp(entry).orElseThrow();
-
-        Preconditions.checkArgument(
-                abortStatement.getSerialConsistencyLevel() == ConsistencyLevel.SERIAL,
-                "Abort statement was not at expected consistency level",
-                SafeArg.of("consistencyLevel", abortStatement.getSerialConsistencyLevel()),
-                SafeArg.of("expectedConsistencyLevel", ConsistencyLevel.SERIAL));
-        Preconditions.checkArgument(
-                checkStatement.getSerialConsistencyLevel() == ConsistencyLevel.SERIAL,
-                "Check statement was not at expected consistency level",
-                SafeArg.of("consistencyLevel", checkStatement.getSerialConsistencyLevel()),
-                SafeArg.of("expectedConsistencyLevel", ConsistencyLevel.SERIAL));
-
-        try {
-            abortRetryer.call(
-                    () -> tryAbortTransactions(txnInteraction, abortStatement, checkStatement, startTs, commitTs));
-        } catch (ExecutionException e) {
-            throw new SafeIllegalStateException(
-                    "Failed to execute transaction abort",
-                    e,
-                    SafeArg.of("startTs", startTs),
-                    SafeArg.of("commitTs", commitTs),
-                    SafeArg.of("retryCount", RETRY_COUNT),
-                    SafeArg.of("keyspace", namespace));
-
-        } catch (RetryException e) {
-            throw new SafeIllegalStateException(
-                    "Unable to abort transactions even with retry",
-                    e,
-                    SafeArg.of("startTs", startTs),
-                    SafeArg.of("commitTs", commitTs),
-                    SafeArg.of("retryCount", RETRY_COUNT),
-                    SafeArg.of("keyspace", namespace));
-        }
-    }
-
-    private boolean tryAbortTransactions(
-            TransactionsTableInteraction txnInteraction,
-            Statement abortStatement,
-            Statement checkStatement,
-            long startTs,
-            long commitTs) {
-        log.info(
-                "Aborting transaction",
-                SafeArg.of("startTs", startTs),
-                SafeArg.of("commitTs", commitTs),
-                SafeArg.of("keyspace", namespace));
-        ResultSet abortResultSet = cqlSession.execute(abortStatement);
-        if (abortResultSet.wasApplied()) {
-            return true;
-        }
-
-        log.debug(
-                "Executing check statement",
-                SafeArg.of("startTs", startTs),
-                SafeArg.of("commitTs", commitTs),
-                SafeArg.of("keyspace", namespace));
-        ResultSet checkResultSet = cqlSession.execute(checkStatement);
-        Row result = Iterators.getOnlyElement(checkResultSet.all().iterator());
-
-        TransactionTableEntry transactionTableEntry = txnInteraction.extractTimestamps(result);
-        if (isAborted(transactionTableEntry)) {
-            return true;
-        }
-
-        log.warn(
-                "Retrying abort statement",
-                SafeArg.of("startTs", startTs),
-                SafeArg.of("commitTs", commitTs),
-                SafeArg.of("keyspace", namespace));
-        return false;
-    }
-
-    private static boolean isAborted(TransactionTableEntry transactionTableEntry) {
-        return TransactionTableEntries.caseOf(transactionTableEntry)
-                .explicitlyAborted(_startTs -> true)
-                .otherwise(() -> false);
-    }
-
-    private static Optional<Long> getCommitTimestamp(TransactionTableEntry entry) {
-        return TransactionTableEntries.getCommitTimestamp(entry).or(() -> getCommitValue(entry));
-    }
-
-    private static Optional<Long> getCommitValue(TransactionTableEntry entry) {
-        return TransactionTableEntries.getCommitValue(entry)
-                .map(AtomicValue::value)
-                .flatMap(TransactionStatuses::getCommitTimestamp);
-    }
-}u}(j$ (347834e520b6630a9fcfab41ec1f38b07872e94fjW% `atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppToken.javajY% modifiedjQ% K jR% K	j[% K	j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -45,15 +45,6 @@ public static LightweightOppToken serialize(Token token) {
         return new LightweightOppToken(bytes);
     }
 
-    public static LightweightOppToken getLowerExclusive(Range<LightweightOppToken> range) {
-        Preconditions.checkArgument(
-                !range.hasLowerBound() || range.lowerBoundType().equals(BoundType.OPEN),
-                "Token range lower bound should be open",
-                SafeArg.of("range", range));
-
-        return range.hasLowerBound() ? range.lowerEndpoint() : new LightweightOppToken(new byte[0]);
-    }
-
     public static LightweightOppToken getUpperInclusive(Range<LightweightOppToken> range) {
         Preconditions.checkArgument(
                 !range.hasUpperBound() || range.upperBoundType().equals(BoundType.CLOSED),u}(j$ (85eb7e2b7ccc724a3546f7e679c86613a0dfa69fjW% batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javajY% modifiedjQ% K jR% K
j[% K
j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% XL  @@ -117,19 +117,6 @@ public CassandraService(
         this.hostnameByIpSupplier = Suppliers.memoizeWithExpiration(hostnamesByIpSupplier::get, 1, TimeUnit.MINUTES);
     }
 
-    public static CassandraService createInitialized(
-            MetricsManager metricsManager,
-            CassandraKeyValueServiceConfig config,
-            Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig,
-            Blacklist blacklist,
-            CassandraClientPoolMetrics poolMetrics) {
-        CassandraService cassandraService =
-                new CassandraService(metricsManager, config, runtimeConfig, blacklist, poolMetrics);
-        cassandraService.cacheInitialCassandraHosts();
-        cassandraService.refreshTokenRangesAndGetServers();
-        return cassandraService;
-    }
-
     @Override
     public void close() {}
 u}(j$ (d1ab0bea195441a4d5d2dd7671b17f9e6980690ajW% Zatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/BackupTestUtils.javajY% modifiedjQ% K jR% K>j[% K>j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FBackupTestUtils.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FBackupTestUtils.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FBackupTestUtils.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% Xl  @@ -16,50 +16,18 @@
 
 package com.palantir.atlasdb.cassandra.backup;
 
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
-
-import com.datastax.driver.core.KeyspaceMetadata;
-import com.datastax.driver.core.TableMetadata;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Range;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs;
 import com.palantir.atlasdb.cassandra.ImmutableCqlCapableConfig;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.timelock.api.Namespace;
 import java.net.InetSocketAddress;
-import java.util.Arrays;
 import java.util.List;
 import java.util.stream.Collectors;
 import java.util.stream.Stream;
-import javax.xml.bind.DatatypeConverter;
 
 @SuppressWarnings("DnsLookup")
 public final class BackupTestUtils {
     public static final int TEST_THRIFT_PORT = 44;
     public static final int TEST_CQL_PORT = 45;
 
-    static final InetSocketAddress HOST_1 = new InetSocketAddress("cassandra-1", 9042);
-    static final InetSocketAddress HOST_2 = new InetSocketAddress("cassandra-2", 9042);
-    static final InetSocketAddress HOST_3 = new InetSocketAddress("cassandra-3", 9042);
-    static final ImmutableList<InetSocketAddress> HOSTS = ImmutableList.of(HOST_1, HOST_2, HOST_3);
-    static final Namespace NAMESPACE = Namespace.of("keyspace");
-
-    static final LightweightOppToken TOKEN_1 = BackupTestUtils.lightweightOppToken("1111");
-    static final LightweightOppToken TOKEN_2 = BackupTestUtils.lightweightOppToken("5555");
-    static final LightweightOppToken TOKEN_3 = BackupTestUtils.lightweightOppToken("9999");
-
-    static final Range<LightweightOppToken> RANGE_AT_MOST_1 = Range.atMost(TOKEN_1);
-    static final Range<LightweightOppToken> RANGE_1_TO_2 = Range.openClosed(TOKEN_1, TOKEN_2);
-    static final Range<LightweightOppToken> RANGE_2_TO_3 = Range.openClosed(TOKEN_2, TOKEN_3);
-    static final Range<LightweightOppToken> RANGE_GREATER_THAN_3 = Range.greaterThan(TOKEN_3);
-
-    static final CassandraServersConfigs.CqlCapableConfig CASSANDRA_SERVERS_CONFIG = ImmutableCqlCapableConfig.builder()
-            .addAllCqlHosts(HOSTS)
-            .addAllThriftHosts(HOSTS)
-            .build();
-
     private BackupTestUtils() {
         // utility
     }
@@ -73,36 +41,6 @@ public static CassandraServersConfigs.CqlCapableConfig cqlCapableConfig(String..
                 .build();
     }
 
-    static LightweightOppToken lightweightOppToken(String hexString) {
-        return new LightweightOppToken(DatatypeConverter.parseHexBinary(hexString));
-    }
-
-    static void mockTokenRanges(CqlSession cqlSession, CqlMetadata cqlMetadata) {
-        when(cqlMetadata.getTokenRanges())
-                .thenReturn(ImmutableSet.of(RANGE_AT_MOST_1, RANGE_1_TO_2, RANGE_2_TO_3, RANGE_GREATER_THAN_3));
-        when(cqlSession.getMetadata()).thenReturn(cqlMetadata);
-    }
-
-    static List<TableMetadata> mockTableMetadatas(KeyspaceMetadata keyspaceMetadata, String... tableNames) {
-        return Arrays.stream(tableNames)
-                .map(tableName -> mockTableMetadata(keyspaceMetadata, tableName))
-                .collect(Collectors.toList());
-    }
-
-    static KeyspaceMetadata mockKeyspaceMetadata(CqlMetadata cqlMetadata) {
-        KeyspaceMetadata keyspaceMetadata = mock(KeyspaceMetadata.class);
-        when(keyspaceMetadata.getName()).thenReturn(NAMESPACE.value());
-        when(cqlMetadata.getKeyspaceMetadata(NAMESPACE)).thenReturn(keyspaceMetadata);
-        return keyspaceMetadata;
-    }
-
-    private static TableMetadata mockTableMetadata(KeyspaceMetadata keyspaceMetadata, String tableName) {
-        TableMetadata tableMetadata = mock(TableMetadata.class);
-        when(tableMetadata.getKeyspace()).thenReturn(keyspaceMetadata);
-        when(tableMetadata.getName()).thenReturn(tableName);
-        return tableMetadata;
-    }
-
     private static List<InetSocketAddress> constructHosts(int port, String[] hosts) {
         return Stream.of(hosts)
                 .map(host -> InetSocketAddress.createUnresolved(host, port))u}(j$ (763b08ac1b83e32f47a732c9e8110d8d4e87cb42jW% catlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/ClusterMetadataUtilsTest.javajY% removedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FClusterMetadataUtilsTest.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FClusterMetadataUtilsTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FClusterMetadataUtilsTest.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% Xf"  @@ -1,176 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.Mockito.when;
-
-import com.datastax.driver.core.CassandraTokenRanges;
-import com.datastax.driver.core.Metadata;
-import com.datastax.driver.core.Token;
-import com.datastax.driver.core.TokenRange;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Range;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.common.streams.KeyedStream;
-import java.util.Set;
-import java.util.TreeMap;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.Mock;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@RunWith(MockitoJUnitRunner.class)
-public class ClusterMetadataUtilsTest {
-    private static final String TOKEN_1 = "1df388e2a10c81a4339ab9304497385b";
-    private static final String TOKEN_2 = "974ef05bdfaf14b88cbe12bce50e5023";
-    private static final String TOKEN_3 = "d9ce4afeafac5781fb101e8bef4703f8";
-    private static final TokenRange FIRST_RANGE = CassandraTokenRanges.create(TOKEN_1, TOKEN_2);
-    private static final TokenRange SECOND_RANGE = CassandraTokenRanges.create(TOKEN_2, TOKEN_3);
-    private static final TokenRange WRAPAROUND_RANGE = CassandraTokenRanges.create(TOKEN_3, TOKEN_1);
-    private static final Token SECOND_TOKEN = SECOND_RANGE.getStart();
-    private static final Token THIRD_TOKEN = WRAPAROUND_RANGE.getStart();
-
-    @Mock
-    private Metadata metadata;
-
-    private TreeMap<LightweightOppToken, Range<LightweightOppToken>> tokenRangesByStart;
-
-    @Before
-    public void setUp() {
-        when(metadata.getTokenRanges()).thenReturn(ImmutableSet.of(FIRST_RANGE, SECOND_RANGE, WRAPAROUND_RANGE));
-        CqlMetadata cqlMetadata = new CqlMetadata(metadata);
-
-        tokenRangesByStart = KeyedStream.of(cqlMetadata.getTokenRanges())
-                .mapKeys(LightweightOppToken::getLowerExclusive)
-                .collectTo(TreeMap::new);
-    }
-
-    @Test
-    public void testMinimalSetOfTokenRanges() {
-        LightweightOppToken partitionKeyToken = getToken("9000");
-        LightweightOppToken lastTokenBeforePartitionKey = tokenRangesByStart.lowerKey(partitionKeyToken);
-
-        Set<Range<LightweightOppToken>> tokenRanges = ClusterMetadataUtils.getMinimalSetOfRangesForTokens(
-                ImmutableSet.of(partitionKeyToken), tokenRangesByStart);
-        assertThat(tokenRanges).hasSize(1);
-        Range<LightweightOppToken> onlyRange = tokenRanges.iterator().next();
-        assertThat(onlyRange.lowerEndpoint()).isEqualTo(lastTokenBeforePartitionKey);
-        assertThat(onlyRange.upperEndpoint()).isEqualTo(partitionKeyToken);
-    }
-
-    @Test
-    public void testMinTokenIsStart() {
-        LightweightOppToken nestedEndKey = getToken("0001");
-        LightweightOppToken outerEndKey = getToken("0002");
-        Range<LightweightOppToken> nested = Range.atMost(nestedEndKey);
-        Range<LightweightOppToken> outer = Range.atMost(outerEndKey);
-        assertThat(ClusterMetadataUtils.findLatestEndingRange(nested, outer)).isEqualTo(outer);
-    }
-
-    @Test
-    public void testUnboundedRangeIsLatestEnding() {
-        LightweightOppToken duplicatedStartKey = getToken("0001");
-        LightweightOppToken normalEndKey = getToken("000101");
-        Range<LightweightOppToken> nested = Range.openClosed(duplicatedStartKey, normalEndKey);
-        Range<LightweightOppToken> outer = Range.greaterThan(duplicatedStartKey);
-        assertThat(ClusterMetadataUtils.findLatestEndingRange(nested, outer)).isEqualTo(outer);
-    }
-
-    @Test
-    public void testSmallTokenRangeDedupe() {
-        LightweightOppToken partitionKeyToken1 = getToken("9000");
-        LightweightOppToken partitionKeyToken2 = getToken("9001");
-        Set<Range<LightweightOppToken>> tokenRanges = ClusterMetadataUtils.getMinimalSetOfRangesForTokens(
-                ImmutableSet.of(partitionKeyToken1, partitionKeyToken2), tokenRangesByStart);
-        assertThat(tokenRanges).hasSize(1);
-        Range<LightweightOppToken> onlyRange = tokenRanges.iterator().next();
-        assertThat(onlyRange.lowerEndpoint()).isEqualTo(tokenRangesByStart.lowerKey(partitionKeyToken1));
-        assertThat(onlyRange.upperEndpoint()).isEqualTo(partitionKeyToken2);
-    }
-
-    @Test
-    public void testSmallTokenRangeBeforeFirstVnode() {
-        LightweightOppToken partitionKeyToken = getToken("0010");
-
-        Set<Range<LightweightOppToken>> tokenRanges = ClusterMetadataUtils.getMinimalSetOfRangesForTokens(
-                ImmutableSet.of(partitionKeyToken), tokenRangesByStart);
-        assertThat(tokenRanges).hasSize(2);
-        assertThat(tokenRanges)
-                .containsExactlyInAnyOrder(
-                        Range.atMost(partitionKeyToken), Range.greaterThan(LightweightOppToken.serialize(THIRD_TOKEN)));
-    }
-
-    @Test
-    public void testSmallTokenRangeOnVnode() {
-        LightweightOppToken firstEndToken = tokenRangesByStart.higherKey(tokenRangesByStart.firstKey());
-        LightweightOppToken secondEndToken = tokenRangesByStart.higherKey(firstEndToken);
-        Set<Range<LightweightOppToken>> tokenRanges = ClusterMetadataUtils.getMinimalSetOfRangesForTokens(
-                ImmutableSet.of(secondEndToken), tokenRangesByStart);
-        assertThat(tokenRanges).hasSize(1);
-        Range<LightweightOppToken> onlyRange = tokenRanges.iterator().next();
-        assertThat(onlyRange.lowerEndpoint()).isEqualTo(firstEndToken);
-        assertThat(onlyRange.upperEndpoint()).isEqualTo(secondEndToken);
-    }
-
-    @Test
-    public void testSmallTokenRangeInMiddle() {
-        LightweightOppToken token = getToken("c0ffee");
-        Set<Range<LightweightOppToken>> tokenRanges =
-                ClusterMetadataUtils.getMinimalSetOfRangesForTokens(ImmutableSet.of(token), tokenRangesByStart);
-        assertThat(tokenRanges).hasSize(1);
-        Range<LightweightOppToken> onlyRange = tokenRanges.iterator().next();
-        assertThat(onlyRange.lowerEndpoint()).isEqualTo(LightweightOppToken.serialize(SECOND_TOKEN));
-        assertThat(onlyRange.upperEndpoint()).isEqualTo(token);
-    }
-
-    @Test
-    public void testSmallTokenRangeAfterLastVnode() {
-        LightweightOppToken token = getToken("fefe");
-        Set<Range<LightweightOppToken>> tokenRanges =
-                ClusterMetadataUtils.getMinimalSetOfRangesForTokens(ImmutableSet.of(token), tokenRangesByStart);
-        assertThat(tokenRanges).hasSize(1);
-        Range<LightweightOppToken> onlyRange = tokenRanges.iterator().next();
-        assertThat(onlyRange.lowerEndpoint()).isEqualTo(LightweightOppToken.serialize(THIRD_TOKEN));
-        assertThat(onlyRange.upperEndpoint()).isEqualTo(token);
-    }
-
-    @Test
-    public void testRemoveNestedRanges() {
-        LightweightOppToken duplicatedStartKey = getToken("0001");
-        LightweightOppToken nestedEndKey = getToken("000101");
-        LightweightOppToken outerEndKey = getToken("000102");
-        Range<LightweightOppToken> nested = Range.openClosed(duplicatedStartKey, nestedEndKey);
-        Range<LightweightOppToken> outer = Range.openClosed(duplicatedStartKey, outerEndKey);
-        assertThat(ClusterMetadataUtils.findLatestEndingRange(nested, outer)).isEqualTo(outer);
-    }
-
-    @Test
-    public void testRemoveNestedWraparoundAndNonWrapRanges() {
-        LightweightOppToken duplicatedStartKey = getToken("ff");
-        LightweightOppToken nonWrapAround = getToken("ff01");
-        Range<LightweightOppToken> nonWrapAroundRange = Range.openClosed(duplicatedStartKey, nonWrapAround);
-        Range<LightweightOppToken> wrapAroundRange = Range.greaterThan(duplicatedStartKey);
-        assertThat(ClusterMetadataUtils.findLatestEndingRange(nonWrapAroundRange, wrapAroundRange))
-                .isEqualTo(wrapAroundRange);
-    }
-
-    private LightweightOppToken getToken(String hexBinary) {
-        return LightweightOppToken.serialize(CassandraTokenRanges.getToken(hexBinary));
-    }
-}u}(j$ (457cedbcc8cc28b66b15ca9f2b4a448b39a3716djW% Yatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/CqlClusterTest.javajY% removedjQ% K jR% K7j[% K7j\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlClusterTest.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlClusterTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlClusterTest.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,55 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import static org.assertj.core.api.Assertions.assertThatCode;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
-
-import com.datastax.driver.core.Cluster;
-import com.datastax.driver.core.Session;
-import com.datastax.driver.core.exceptions.NoHostAvailableException;
-import com.google.common.collect.ImmutableMap;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import java.time.Duration;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.Mock;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@RunWith(MockitoJUnitRunner.class)
-public class CqlClusterTest {
-    @Mock
-    private Cluster cluster;
-
-    @Test
-    public void retriesSessionFetching() {
-        Session session = mock(Session.class);
-
-        when(cluster.connect())
-                .thenThrow(new NoHostAvailableException(ImmutableMap.of()))
-                .thenReturn(session);
-
-        CqlCluster cqlCluster = new CqlCluster(
-                cluster,
-                BackupTestUtils.cqlCapableConfig("host1", "host2"),
-                Namespace.of("namespace"),
-                Duration.ofMillis(50L));
-
-        assertThatCode(cqlCluster::createSessionWithRetry).doesNotThrowAnyException();
-    }
-}u}(j$ (51b7bea153d98dfd850c7a9a0c00003bab51b79djW% aatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/RepairRangeFetcherTest.javajY% removedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRepairRangeFetcherTest.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRepairRangeFetcherTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRepairRangeFetcherTest.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X!  @@ -1,176 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.anyList;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.when;
-
-import com.datastax.driver.core.KeyspaceMetadata;
-import com.datastax.driver.core.TableMetadata;
-import com.datastax.driver.core.policies.DefaultRetryPolicy;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Range;
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions1TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions2TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions3TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.timestamp.FullyBoundedTimestampRange;
-import java.net.InetSocketAddress;
-import java.util.List;
-import java.util.Map;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.Mock;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@SuppressWarnings("UnstableApiUsage")
-@RunWith(MockitoJUnitRunner.class)
-public class RepairRangeFetcherTest {
-    static final LightweightOppToken OTHER_TOKEN = BackupTestUtils.lightweightOppToken("7777");
-    static final DefaultRetryPolicy POLICY = DefaultRetryPolicy.INSTANCE;
-    static final String TXN_1 = TransactionConstants.TRANSACTION_TABLE.getTableName();
-    static final String TXN_2 = TransactionConstants.TRANSACTIONS2_TABLE.getTableName();
-
-    @Mock
-    private CqlSession cqlSession;
-
-    @Mock
-    private CqlMetadata cqlMetadata;
-
-    private RepairRangeFetcher repairRangeFetcher;
-
-    @Before
-    public void setUp() {
-        KeyspaceMetadata keyspaceMetadata = BackupTestUtils.mockKeyspaceMetadata(cqlMetadata);
-        List<TableMetadata> tableMetadatas = BackupTestUtils.mockTableMetadatas(keyspaceMetadata, TXN_1, TXN_2);
-        when(keyspaceMetadata.getTables()).thenReturn(tableMetadatas);
-
-        BackupTestUtils.mockTokenRanges(cqlSession, cqlMetadata);
-
-        when(cqlSession.retrieveRowKeysAtConsistencyAll(anyList()))
-                .thenReturn(ImmutableSet.of(BackupTestUtils.TOKEN_1, OTHER_TOKEN));
-        when(cqlMetadata.getReplicas(eq(BackupTestUtils.NAMESPACE), any()))
-                .thenReturn(ImmutableSet.copyOf(BackupTestUtils.HOSTS));
-
-        repairRangeFetcher =
-                new RepairRangeFetcher(cqlSession, BackupTestUtils.NAMESPACE, BackupTestUtils.CASSANDRA_SERVERS_CONFIG);
-    }
-
-    @Test
-    public void testRepairOnlyTxn1() {
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions1TableInteraction(range(1L, 10_000_000L), POLICY));
-
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-        assertThat(rangesForRepair.keySet()).containsExactly(TXN_1);
-    }
-
-    @Test
-    public void testRepairOnlyTxn2() {
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions2TableInteraction(range(1L, 10_000_000L), POLICY));
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-        assertThat(rangesForRepair.keySet()).containsExactly(TXN_2);
-    }
-
-    @Test
-    public void testRepairTxn3() {
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions3TableInteraction(range(1L, 10_000_000L)));
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-
-        // Transactions3 is backed by Transactions2 under the hood, so this is the table that will be repaired.
-        assertThat(rangesForRepair.keySet()).containsExactly(TXN_2);
-    }
-
-    @Test
-    public void testRepairBothTxnTables() {
-        List<TransactionsTableInteraction> interactions = ImmutableList.of(
-                new Transactions1TableInteraction(range(1L, 5L), POLICY),
-                new Transactions2TableInteraction(range(6L, 10L), POLICY));
-
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-        assertThat(rangesForRepair.keySet()).containsExactlyInAnyOrder(TXN_1, TXN_2);
-    }
-
-    @Test
-    public void testRepairsEachTableOnceOnly() {
-        List<TransactionsTableInteraction> interactions = ImmutableList.of(
-                new Transactions1TableInteraction(range(1L, 5L), POLICY),
-                new Transactions2TableInteraction(range(6L, 10L), POLICY),
-                new Transactions1TableInteraction(range(11L, 15L), POLICY),
-                new Transactions2TableInteraction(range(16L, 20L), POLICY));
-
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-        assertThat(rangesForRepair.keySet()).containsExactlyInAnyOrder(TXN_1, TXN_2);
-    }
-
-    @Test
-    public void testRepairGivesCorrectTokenRanges() {
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions2TableInteraction(range(1L, 10_000_000L), POLICY));
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-
-        assertThat(rangesForRepair.get(TXN_2).get(BackupTestUtils.HOST_1).asRanges())
-                .containsExactlyInAnyOrder(
-                        Range.atMost(BackupTestUtils.TOKEN_1),
-                        Range.openClosed(BackupTestUtils.TOKEN_2, OTHER_TOKEN),
-                        Range.greaterThan(BackupTestUtils.TOKEN_3));
-    }
-
-    @Test
-    public void testRepairGivesAllReplicas() {
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions2TableInteraction(range(1L, 10_000_000L), POLICY));
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-
-        assertThat(rangesForRepair.get(TXN_2).keySet())
-                .containsExactlyInAnyOrder(BackupTestUtils.HOST_1, BackupTestUtils.HOST_2, BackupTestUtils.HOST_3);
-    }
-
-    @Test
-    public void testRepairGivesTwoReplicasForRF2() {
-        when(cqlMetadata.getReplicas(eq(BackupTestUtils.NAMESPACE), any()))
-                .thenReturn(ImmutableSet.of(BackupTestUtils.HOST_1, BackupTestUtils.HOST_2));
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions2TableInteraction(range(1L, 10_000_000L), POLICY));
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-
-        assertThat(rangesForRepair.get(TXN_2).keySet())
-                .containsExactlyInAnyOrder(BackupTestUtils.HOST_1, BackupTestUtils.HOST_2);
-    }
-
-    private static FullyBoundedTimestampRange range(long lower, long upper) {
-        return FullyBoundedTimestampRange.of(Range.closed(lower, upper));
-    }
-}u}(j$ (b84ca130f40836ecd3aa93ca383f785f1f62ce8ajW% `atlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/TokenRangeFetcherTest.javajY% removedjQ% K jR% Kgj[% Kgj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTokenRangeFetcherTest.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTokenRangeFetcherTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTokenRangeFetcherTest.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,103 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.anyList;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.when;
-
-import com.datastax.driver.core.KeyspaceMetadata;
-import com.datastax.driver.core.TableMetadata;
-import com.google.common.collect.ImmutableRangeSet;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Iterables;
-import com.google.common.collect.Range;
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import java.net.InetSocketAddress;
-import java.util.List;
-import java.util.Map;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.Mock;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@RunWith(MockitoJUnitRunner.class)
-@SuppressWarnings("UnstableApiUsage")
-public class TokenRangeFetcherTest {
-    private static final String TABLE_NAME = "table";
-
-    @Mock
-    private CqlSession cqlSession;
-
-    @Mock
-    private CqlMetadata cqlMetadata;
-
-    private TokenRangeFetcher tokenRangeFetcher;
-
-    @Before
-    public void setUp() {
-        KeyspaceMetadata keyspaceMetadata = BackupTestUtils.mockKeyspaceMetadata(cqlMetadata);
-        List<TableMetadata> tableMetadatas = BackupTestUtils.mockTableMetadatas(keyspaceMetadata, TABLE_NAME);
-        when(keyspaceMetadata.getTable(TABLE_NAME)).thenReturn(Iterables.getOnlyElement(tableMetadatas));
-
-        BackupTestUtils.mockTokenRanges(cqlSession, cqlMetadata);
-
-        when(cqlSession.retrieveRowKeysAtConsistencyAll(anyList()))
-                .thenReturn(ImmutableSet.of(BackupTestUtils.TOKEN_1, BackupTestUtils.TOKEN_2, BackupTestUtils.TOKEN_3));
-
-        tokenRangeFetcher =
-                new TokenRangeFetcher(cqlSession, BackupTestUtils.NAMESPACE, BackupTestUtils.CASSANDRA_SERVERS_CONFIG);
-    }
-
-    @Test
-    public void allNodesGetAllRangesWithThreeNodesAndRF3() {
-        when(cqlMetadata.getReplicas(eq(BackupTestUtils.NAMESPACE), any()))
-                .thenReturn(ImmutableSet.copyOf(BackupTestUtils.HOSTS));
-
-        Map<InetSocketAddress, RangeSet<LightweightOppToken>> tokenRange = tokenRangeFetcher.getTokenRange(TABLE_NAME);
-        assertThat(tokenRange.keySet())
-                .containsExactlyInAnyOrder(BackupTestUtils.HOST_1, BackupTestUtils.HOST_2, BackupTestUtils.HOST_3);
-        BackupTestUtils.HOSTS.forEach(
-                host -> assertThat(tokenRange.get(host)).isEqualTo(ImmutableRangeSet.of(Range.all())));
-    }
-
-    @Test
-    public void testGetTokenRangesWithRF2() {
-        when(cqlMetadata.getReplicas(BackupTestUtils.NAMESPACE, BackupTestUtils.RANGE_AT_MOST_1))
-                .thenReturn(ImmutableSet.of(BackupTestUtils.HOST_3, BackupTestUtils.HOST_1));
-        when(cqlMetadata.getReplicas(BackupTestUtils.NAMESPACE, BackupTestUtils.RANGE_GREATER_THAN_3))
-                .thenReturn(ImmutableSet.of(BackupTestUtils.HOST_3, BackupTestUtils.HOST_1));
-        when(cqlMetadata.getReplicas(BackupTestUtils.NAMESPACE, BackupTestUtils.RANGE_1_TO_2))
-                .thenReturn(ImmutableSet.of(BackupTestUtils.HOST_1, BackupTestUtils.HOST_2));
-        when(cqlMetadata.getReplicas(BackupTestUtils.NAMESPACE, BackupTestUtils.RANGE_2_TO_3))
-                .thenReturn(ImmutableSet.of(BackupTestUtils.HOST_2, BackupTestUtils.HOST_3));
-
-        Map<InetSocketAddress, RangeSet<LightweightOppToken>> tokenRange = tokenRangeFetcher.getTokenRange(TABLE_NAME);
-        assertThat(tokenRange.keySet())
-                .containsExactlyInAnyOrder(BackupTestUtils.HOST_1, BackupTestUtils.HOST_2, BackupTestUtils.HOST_3);
-        assertThat(tokenRange.get(BackupTestUtils.HOST_1).asRanges())
-                .containsExactly(Range.atMost(BackupTestUtils.TOKEN_2), Range.greaterThan(BackupTestUtils.TOKEN_3));
-        assertThat(tokenRange.get(BackupTestUtils.HOST_2).asRanges())
-                .containsExactly(Range.openClosed(BackupTestUtils.TOKEN_1, BackupTestUtils.TOKEN_3));
-        assertThat(tokenRange.get(BackupTestUtils.HOST_3).asRanges())
-                .containsExactly(Range.atMost(BackupTestUtils.TOKEN_1), Range.greaterThan(BackupTestUtils.TOKEN_2));
-    }
-}u}(j$ (6226f82e9f09a64da450666e8729b377a20f5b64jW% aatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/TransactionAborterTest.javajY% removedjQ% K jR% MVj[% MVj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTransactionAborterTest.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTransactionAborterTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTransactionAborterTest.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X@  @@ -1,342 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.doReturn;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoMoreInteractions;
-import static org.mockito.Mockito.when;
-
-import com.datastax.driver.core.ConsistencyLevel;
-import com.datastax.driver.core.KeyspaceMetadata;
-import com.datastax.driver.core.PreparedStatement;
-import com.datastax.driver.core.ResultSet;
-import com.datastax.driver.core.Row;
-import com.datastax.driver.core.Statement;
-import com.datastax.driver.core.TableMetadata;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.Range;
-import com.palantir.atlasdb.atomic.AtomicValue;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionTableEntries;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionTableEntry;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
-import com.palantir.timestamp.FullyBoundedTimestampRange;
-import java.util.List;
-import java.util.stream.Collectors;
-import java.util.stream.Stream;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.Mock;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@RunWith(MockitoJUnitRunner.class)
-public class TransactionAborterTest {
-    private static final long BACKUP_TIMESTAMP = 123;
-
-    private static final FullyBoundedTimestampRange TIMESTAMP_RANGE =
-            FullyBoundedTimestampRange.of(Range.closed(TransactionConstants.LOWEST_POSSIBLE_START_TS, 200L));
-
-    private static final String TXN_TABLE_NAME = "txn_table";
-    private static final Namespace NAMESPACE = Namespace.of("keyspace");
-
-    @Mock
-    private CqlSession cqlSession;
-
-    @Mock
-    private TransactionsTableInteraction transactionInteraction;
-
-    @Mock
-    private Statement selectStatement;
-
-    @Mock
-    private PreparedStatement preparedAbortStatement;
-
-    @Mock
-    private Statement abortStatement;
-
-    @Mock
-    private PreparedStatement preparedCheckStatement;
-
-    @Mock
-    private Statement checkStatement;
-
-    @Mock
-    private TableMetadata tableMetadata;
-
-    private TransactionAborter transactionAborter;
-
-    @Before
-    public void before() {
-        when(transactionInteraction.getTransactionsTableName()).thenReturn(TXN_TABLE_NAME);
-
-        when(abortStatement.getSerialConsistencyLevel()).thenReturn(ConsistencyLevel.SERIAL);
-        when(transactionInteraction.bindAbortStatement(eq(preparedAbortStatement), any()))
-                .thenReturn(abortStatement);
-
-        when(checkStatement.getSerialConsistencyLevel()).thenReturn(ConsistencyLevel.SERIAL);
-        when(transactionInteraction.bindCheckStatement(eq(preparedCheckStatement), any()))
-                .thenReturn(checkStatement);
-
-        when(tableMetadata.getName()).thenReturn(TXN_TABLE_NAME);
-        KeyspaceMetadata keyspaceMetadata = mock(KeyspaceMetadata.class);
-        when(keyspaceMetadata.getTables()).thenReturn(ImmutableList.of(tableMetadata));
-        CqlMetadata cqlMetadata = mock(CqlMetadata.class);
-        when(cqlMetadata.getKeyspaceMetadata(NAMESPACE)).thenReturn(keyspaceMetadata);
-        when(cqlSession.getMetadata()).thenReturn(cqlMetadata);
-
-        doReturn(ImmutableList.of(selectStatement))
-                .when(transactionInteraction)
-                .createSelectStatementsForScanningFullTimestampRange(any());
-        ResultSet selectResponse = createSelectResponse(ImmutableList.of());
-        when(cqlSession.execute(selectStatement)).thenReturn(selectResponse);
-
-        doReturn(mock(PreparedStatement.class)).when(transactionInteraction).prepareAbortStatement(any(), any());
-        doReturn(mock(PreparedStatement.class)).when(transactionInteraction).prepareCheckStatement(any(), any());
-
-        transactionAborter = new TransactionAborter(cqlSession, NAMESPACE);
-    }
-
-    @Test
-    public void willNotRunAbortWhenNothingToAbort() {
-        transactionAborter.abortTransactions(BACKUP_TIMESTAMP, List.of(transactionInteraction));
-
-        verify(cqlSession, times(1)).execute(selectStatement);
-        verify(cqlSession, times(1)).getMetadata();
-        verifyNoMoreInteractions(cqlSession);
-    }
-
-    @Test
-    public void willNotAbortTimestampsLowerThanBackupTimestamp() {
-        ImmutableList<TransactionTableEntry> rows = ImmutableList.of(
-                TransactionTableEntries.committedLegacy(10L, 20L),
-                TransactionTableEntries.committedTwoPhase(
-                        20L, AtomicValue.committed(TransactionStatusUtils.fromTimestamp(30L))),
-                TransactionTableEntries.committedLegacy(30L, BACKUP_TIMESTAMP - 1));
-        setupAbortTimestampTask(rows, TIMESTAMP_RANGE);
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isZero();
-    }
-
-    @Test
-    public void willNotAbortTimestampsOutsideRange() {
-        ImmutableList<TransactionTableEntry> rows = ImmutableList.of(
-                TransactionTableEntries.committedLegacy(BACKUP_TIMESTAMP + 10, BACKUP_TIMESTAMP + 12),
-                TransactionTableEntries.committedTwoPhase(
-                        BACKUP_TIMESTAMP + 12,
-                        AtomicValue.committed(TransactionStatusUtils.fromTimestamp(BACKUP_TIMESTAMP + 13))),
-                TransactionTableEntries.committedLegacy(BACKUP_TIMESTAMP + 14, BACKUP_TIMESTAMP + 15));
-        setupAbortTimestampTask(rows, FullyBoundedTimestampRange.of(Range.closed(BACKUP_TIMESTAMP + 16, 1000L)));
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isZero();
-    }
-
-    @Test
-    public void willNotAbortTimestampsAlreadyAborted() {
-        ImmutableList<TransactionTableEntry> rows =
-                ImmutableList.of(TransactionTableEntries.explicitlyAborted(BACKUP_TIMESTAMP + 1));
-        setupAbortTimestampTask(rows, TIMESTAMP_RANGE);
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isZero();
-    }
-
-    @Test
-    public void willAbortTimestampInRange() {
-        ImmutableList<TransactionTableEntry> rows = ImmutableList.of(
-                TransactionTableEntries.committedLegacy(BACKUP_TIMESTAMP + 1, BACKUP_TIMESTAMP + 2),
-                TransactionTableEntries.committedTwoPhase(
-                        BACKUP_TIMESTAMP + 3,
-                        AtomicValue.committed(TransactionStatusUtils.fromTimestamp(BACKUP_TIMESTAMP + 4))));
-        setupAbortTimestampTask(rows, FullyBoundedTimestampRange.of(Range.closed(25L, 1000L)));
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isEqualTo(2L);
-    }
-
-    @Test
-    public void willAbortTimestampsHigherThanBackupTimestamp() {
-        ImmutableList<TransactionTableEntry> rows = ImmutableList.of(
-                TransactionTableEntries.committedLegacy(BACKUP_TIMESTAMP + 1, BACKUP_TIMESTAMP + 2),
-                TransactionTableEntries.committedTwoPhase(
-                        BACKUP_TIMESTAMP + 3,
-                        AtomicValue.committed(TransactionStatusUtils.fromTimestamp(BACKUP_TIMESTAMP + 4))));
-        setupAbortTimestampTask(rows, TIMESTAMP_RANGE);
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isEqualTo(2L);
-    }
-
-    @Test
-    public void willAbortTimestampsThatStartBeforeButEndAfterBackupTimestamp() {
-        ImmutableList<TransactionTableEntry> rows = ImmutableList.of(
-                TransactionTableEntries.committedLegacy(BACKUP_TIMESTAMP - 2, BACKUP_TIMESTAMP + 1),
-                TransactionTableEntries.committedTwoPhase(
-                        BACKUP_TIMESTAMP - 1,
-                        AtomicValue.committed(TransactionStatusUtils.fromTimestamp(BACKUP_TIMESTAMP + 2))));
-        setupAbortTimestampTask(rows, TIMESTAMP_RANGE);
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isEqualTo(2L);
-    }
-
-    @Test
-    public void willAbortTimestampsThatStartAfterBackupTimestampAndEndOutsideRange() {
-        long endOfRange = TIMESTAMP_RANGE.inclusiveUpperBound();
-        ImmutableList<TransactionTableEntry> rows = ImmutableList.of(
-                TransactionTableEntries.committedLegacy(BACKUP_TIMESTAMP + 1, endOfRange + 1),
-                TransactionTableEntries.committedTwoPhase(
-                        BACKUP_TIMESTAMP + 2,
-                        AtomicValue.committed(TransactionStatusUtils.fromTimestamp(endOfRange + 2))));
-        setupAbortTimestampTask(rows, TIMESTAMP_RANGE);
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isEqualTo(2L);
-    }
-
-    @Test
-    public void willNotAbortTimestampsThatStartAfterRange() {
-        long endOfRange = TIMESTAMP_RANGE.inclusiveUpperBound();
-        ImmutableList<TransactionTableEntry> rows = ImmutableList.of(
-                TransactionTableEntries.committedLegacy(endOfRange + 1, endOfRange + 2),
-                TransactionTableEntries.committedTwoPhase(
-                        endOfRange + 3, AtomicValue.committed(TransactionStatusUtils.fromTimestamp(endOfRange + 4))));
-        setupAbortTimestampTask(rows, TIMESTAMP_RANGE);
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isEqualTo(0L);
-    }
-
-    @Test
-    public void executeWithRetryTriesSingleTimeIfAbortSucceeds() {
-        ResultSet abortResponse = createAbortResponse(true);
-        when(cqlSession.execute(abortStatement)).thenReturn(abortResponse);
-
-        Stream<TransactionTableEntry> entries = Stream.of(TransactionTableEntries.committedLegacy(100L, 101L));
-        transactionAborter.executeTransactionAborts(
-                transactionInteraction, preparedAbortStatement, preparedCheckStatement, entries);
-
-        verify(cqlSession).execute(abortStatement);
-    }
-
-    @Test
-    public void executeWithRetryChecksIfAbortWasNotAppliedAndRetriesIfNoMatch() {
-        ResultSet abortResponse1 = createAbortResponse(false);
-        ResultSet abortResponse2 = createAbortResponse(true);
-
-        when(cqlSession.execute(abortStatement)).thenReturn(abortResponse1).thenReturn(abortResponse2);
-
-        Row row = mock(Row.class);
-        ResultSet checkResponse = createSelectResponse(ImmutableList.of(row));
-        when(cqlSession.execute(checkStatement)).thenReturn(checkResponse);
-
-        Stream<TransactionTableEntry> entries = Stream.of(TransactionTableEntries.committedLegacy(100L, 101L));
-        transactionAborter.executeTransactionAborts(
-                transactionInteraction, preparedAbortStatement, preparedCheckStatement, entries);
-
-        verify(cqlSession, times(2)).execute(abortStatement);
-        verify(cqlSession).execute(checkStatement);
-    }
-
-    @Test
-    public void executeWithRetryChecksIfAbortWasNotAppliedAndDoesNotRetryIfEqualsAbortTimestamp() {
-        ResultSet abortResponse = createAbortResponse(false);
-        when(cqlSession.execute(abortStatement)).thenReturn(abortResponse);
-
-        Row row = mock(Row.class);
-        ResultSet checkResponse = createSelectResponse(ImmutableList.of(row));
-
-        TransactionTableEntry entry = TransactionTableEntries.explicitlyAborted(100L);
-        when(cqlSession.execute(checkStatement)).thenReturn(checkResponse);
-        when(transactionInteraction.extractTimestamps(row)).thenReturn(entry);
-
-        TransactionTableEntry notYetAborted = TransactionTableEntries.committedLegacy(100L, 101L);
-        Stream<TransactionTableEntry> entries = Stream.of(notYetAborted);
-        transactionAborter.executeTransactionAborts(
-                transactionInteraction, preparedAbortStatement, preparedCheckStatement, entries);
-
-        verify(cqlSession, times(1)).execute(abortStatement);
-        verify(cqlSession, times(1)).execute(checkStatement);
-    }
-
-    @Test
-    public void executeWithRetryChecksEventuallyFails() {
-        ResultSet abortResponse = createAbortResponse(false);
-        when(cqlSession.execute(abortStatement)).thenReturn(abortResponse);
-
-        Row row = mock(Row.class);
-        ResultSet checkResponse = createSelectResponse(ImmutableList.of(row));
-        when(cqlSession.execute(checkStatement)).thenReturn(checkResponse);
-
-        Stream<TransactionTableEntry> entries = Stream.of(TransactionTableEntries.committedLegacy(100L, 101L));
-
-        assertThatThrownBy(() -> transactionAborter.executeTransactionAborts(
-                        transactionInteraction, preparedAbortStatement, preparedCheckStatement, entries))
-                .isInstanceOf(IllegalStateException.class);
-
-        verify(cqlSession, times(3)).execute(abortStatement);
-        verify(cqlSession, times(3)).execute(checkStatement);
-    }
-
-    private void setupAbortTimestampTask(
-            ImmutableList<TransactionTableEntry> entries, FullyBoundedTimestampRange range) {
-        when(transactionInteraction.getTimestampRange()).thenReturn(range);
-        List<Row> rows = entries.stream()
-                .map(entry -> {
-                    Row row = mock(Row.class);
-                    when(transactionInteraction.extractTimestamps(row)).thenReturn(entry);
-                    return row;
-                })
-                .collect(Collectors.toList());
-        ResultSet selectResponse = createSelectResponse(rows);
-        when(transactionInteraction.createSelectStatementsForScanningFullTimestampRange(any()))
-                .thenReturn(ImmutableList.of(mock(Statement.class)));
-        when(cqlSession.execute(any(Statement.class))).thenReturn(selectResponse);
-    }
-
-    private static ResultSet createAbortResponse(boolean wasApplied) {
-        ResultSet response = mock(ResultSet.class);
-        when(response.wasApplied()).thenReturn(wasApplied);
-        return response;
-    }
-
-    private static ResultSet createSelectResponse(List<Row> transactions) {
-        ResultSet response = mock(ResultSet.class);
-        when(response.iterator()).thenReturn(transactions.iterator());
-        when(response.all()).thenReturn(transactions);
-        return response;
-    }
-}u     }(j$ (71ce22bd41d1b143a3a5f8a99cd5022f60d67d57jW% Qatlasdb-client/src/main/java/com/palantir/atlasdb/schema/TargetedSweepTables.javajY% modifiedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTargetedSweepTables.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTargetedSweepTables.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTargetedSweepTables.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -16,25 +16,8 @@
 
 package com.palantir.atlasdb.schema;
 
-import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.keyvalue.api.Namespace;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
-import com.palantir.atlasdb.schema.generated.TargetedSweepTableFactory;
 
 public class TargetedSweepTables {
     static final Namespace NAMESPACE = Namespace.create("sweep");
-
-    private static final TargetedSweepTableFactory TABLE_FACTORY = TargetedSweepTableFactory.of();
-
-    private static final TableReference SWEEP_PROGRESS_PER_SHARD_TABLE =
-            TABLE_FACTORY.getSweepShardProgressTable(null).getTableRef();
-    private static final TableReference SWEEP_ID_TO_NAME_TABLE =
-            TABLE_FACTORY.getSweepIdToNameTable(null).getTableRef();
-    private static final TableReference SWEEP_NAME_TO_ID_TABLE =
-            TABLE_FACTORY.getSweepNameToIdTable(null).getTableRef();
-    private static final TableReference TABLE_CLEARS_TABLE =
-            TABLE_FACTORY.getTableClearsTable(null).getTableRef();
-
-    public static final ImmutableSet<TableReference> REPAIR_ON_RESTORE = ImmutableSet.of(
-            SWEEP_PROGRESS_PER_SHARD_TABLE, SWEEP_ID_TO_NAME_TABLE, SWEEP_NAME_TO_ID_TABLE, TABLE_CLEARS_TABLE);
 }u}(j$ (c178ffcb42eb70e08392eae222ce570664767ec3jW% gatlasdb-config/src/main/java/com/palantir/atlasdb/backup/DialogueAdaptingTimeLockManagementService.javajY% removedjQ% K jR% KFj[% KFj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingTimeLockManagementService.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingTimeLockManagementService.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingTimeLockManagementService.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,70 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.timelock.api.DisableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementService;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementServiceBlocking;
-import com.palantir.tokens.auth.AuthHeader;
-import java.util.Set;
-import java.util.UUID;
-
-public class DialogueAdaptingTimeLockManagementService implements TimeLockManagementService {
-    private final TimeLockManagementServiceBlocking dialogueDelegate;
-
-    public DialogueAdaptingTimeLockManagementService(TimeLockManagementServiceBlocking dialogueDelegate) {
-        this.dialogueDelegate = dialogueDelegate;
-    }
-
-    @Override
-    public Set<String> getNamespaces(AuthHeader authHeader) {
-        return dialogueDelegate.getNamespaces(authHeader);
-    }
-
-    @Override
-    public void achieveConsensus(AuthHeader authHeader, Set<String> namespaces) {
-        dialogueDelegate.achieveConsensus(authHeader, namespaces);
-    }
-
-    @Override
-    public void invalidateResources(AuthHeader authHeader, Set<String> namespaces) {
-        dialogueDelegate.invalidateResources(authHeader, namespaces);
-    }
-
-    @Override
-    public DisableNamespacesResponse disableTimelock(AuthHeader authHeader, DisableNamespacesRequest request) {
-        return dialogueDelegate.disableTimelock(authHeader, request);
-    }
-
-    @Override
-    public ReenableNamespacesResponse reenableTimelock(AuthHeader authHeader, ReenableNamespacesRequest request) {
-        return dialogueDelegate.reenableTimelock(authHeader, request);
-    }
-
-    @Override
-    public UUID getServerLifecycleId(AuthHeader authHeader) {
-        return dialogueDelegate.getServerLifecycleId(authHeader);
-    }
-
-    @Override
-    public UUID forceKillTimeLockServer(AuthHeader authHeader) {
-        return dialogueDelegate.forceKillTimeLockServer(authHeader);
-    }
-}u}(j$ (64d654a533a64757ec6801d0c9bbd1a9a91616bbjW% Oatlasdb-config/src/main/java/com/palantir/atlasdb/config/ServerListConfigs.javajY% modifiedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FServerListConfigs.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FServerListConfigs.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FServerListConfigs.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -26,13 +26,6 @@ private ServerListConfigs() {
         // utilities
     }
 
-    public static Refreshable<ServerListConfig> getTimeLockServersFromAtlasDbConfig(
-            AtlasDbConfig config, Optional<AtlasDbRuntimeConfig> atlasDbRuntimeConfig) {
-        Refreshable<Optional<TimeLockRuntimeConfig>> timelockRuntimeConfig =
-                Refreshable.only(atlasDbRuntimeConfig.flatMap(AtlasDbRuntimeConfig::timelockRuntime));
-        return getServerListConfigSupplierForTimeLock(config, timelockRuntimeConfig);
-    }
-
     public static Refreshable<ServerListConfig> getTimeLockServersFromAtlasDbConfig(
             AtlasDbConfig config, Refreshable<AtlasDbRuntimeConfig> runtimeConfigSupplier) {
         Refreshable<Optional<TimeLockRuntimeConfig>> timelockRuntimeConfig =u}(j$ (5899f9c92768d98fda10a6e653ad38e7192e48e5jW% ]atlasdb-config/src/main/java/com/palantir/atlasdb/factory/AtlasDbDialogueServiceProvider.javajY% modifiedjQ% K jR% K	j[% K	j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAtlasDbDialogueServiceProvider.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAtlasDbDialogueServiceProvider.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAtlasDbDialogueServiceProvider.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.factory;
 
 import com.google.common.collect.ImmutableMap;
-import com.palantir.atlasdb.backup.DialogueAdaptingTimeLockManagementService;
 import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
 import com.palantir.atlasdb.config.ServerListConfig;
 import com.palantir.atlasdb.factory.timelock.ImmutableShortAndLongTimeoutServices;
@@ -36,8 +35,6 @@
 import com.palantir.atlasdb.timelock.api.ConjureTimelockService;
 import com.palantir.atlasdb.timelock.api.ConjureTimelockServiceBlocking;
 import com.palantir.atlasdb.timelock.api.MultiClientConjureTimelockServiceBlocking;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementService;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementServiceBlocking;
 import com.palantir.atlasdb.timelock.lock.watch.ConjureLockWatchingServiceBlocking;
 import com.palantir.atlasdb.util.AtlasDbMetrics;
 import com.palantir.conjure.java.api.config.service.UserAgent;
@@ -175,12 +172,6 @@ ConjureLockWatchingServiceBlocking getConjureLockWatchingService() {
                 wrapInProxy(ConjureLockWatchingServiceBlocking.class, blockingService));
     }
 
-    public TimeLockManagementService getTimeLockManagementService() {
-        TimeLockManagementServiceBlocking blockingService =
-                dialogueClientFactory.get(TimeLockManagementServiceBlocking.class, TIMELOCK_SHORT_TIMEOUT);
-        return new DialogueAdaptingTimeLockManagementService(blockingService);
-    }
-
     private <T> T createDialogueProxyWithShortTimeout(Class<T> type) {
         return createDialogueProxy(type, dialogueClientFactory.getChannel(TIMELOCK_SHORT_TIMEOUT));
     }u}(j$ (92430ad0397e159d2c1ea903cea20d5f337d208bjW% atlasdb-ete-tests/build.gradlejY% modifiedjQ% K jR% Kj[% Kj\% rhttps://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-ete-tests%2Fbuild.gradlej^% qhttps://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-ete-tests%2Fbuild.gradlej`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fbuild.gradle?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% Xo  @@ -28,7 +28,6 @@ dependencies {
     implementation 'org.awaitility:awaitility'
     implementation 'org.slf4j:slf4j-api'
     implementation project(':atlasdb-api')
-    implementation project(':atlasdb-backup')
     implementation project(':atlasdb-cassandra')
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-client-protobufs')u}(j$ (2b0de23b2e776b9208158e2ca4e7bceeea3a11b0jW% +atlasdb-ete-tests/docker-compose.oracle.ymljY% modifiedjQ% KjR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlj^% ~https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.oracle.yml?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% @@ -2,7 +2,7 @@ version: '2'
 
 services:
   oracle:
-    image: palantirtechnologies/oracle-atlasdb:19.12.0.0-se
+    image: palantirtechnologies/oracle-atlasdb:19.18.0.0-se
     ports:
       - "1521"
 u}(j$ (ec8d637e26567cdc25907c2058ef04bc64f0da6cjW% Jatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/AtlasDbEteServer.javajY% modifiedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbEteServer.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbEteServer.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbEteServer.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X,  @@ -21,48 +21,26 @@
 import com.google.common.base.Suppliers;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.backup.AtlasBackupResource;
-import com.palantir.atlasdb.backup.AtlasBackupService;
-import com.palantir.atlasdb.backup.AtlasRestoreResource;
-import com.palantir.atlasdb.backup.AtlasRestoreService;
-import com.palantir.atlasdb.backup.AuthHeaderValidator;
-import com.palantir.atlasdb.backup.DelegatingBackupTimeLockServiceView;
-import com.palantir.atlasdb.backup.ExternalBackupPersister;
-import com.palantir.atlasdb.backup.SimpleBackupAndRestoreResource;
-import com.palantir.atlasdb.backup.api.AtlasBackupClient;
-import com.palantir.atlasdb.backup.api.AtlasRestoreClient;
-import com.palantir.atlasdb.backup.api.AtlasService;
 import com.palantir.atlasdb.blob.BlobSchema;
-import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
-import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
 import com.palantir.atlasdb.cleaner.CleanupFollower;
 import com.palantir.atlasdb.cleaner.Follower;
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.config.AtlasDbRuntimeConfig;
-import com.palantir.atlasdb.config.ServerListConfig;
-import com.palantir.atlasdb.config.ServerListConfigs;
 import com.palantir.atlasdb.coordination.CoordinationService;
 import com.palantir.atlasdb.coordination.SimpleCoordinationResource;
-import com.palantir.atlasdb.factory.AtlasDbDialogueServiceProvider;
 import com.palantir.atlasdb.factory.TransactionManagers;
-import com.palantir.atlasdb.http.AtlasDbRemotingConstants;
 import com.palantir.atlasdb.http.NotInitializedExceptionMapper;
-import com.palantir.atlasdb.http.RedirectRetryTargeter;
 import com.palantir.atlasdb.internalschema.InternalSchemaMetadata;
 import com.palantir.atlasdb.internalschema.TransactionSchemaManager;
 import com.palantir.atlasdb.internalschema.persistence.CoordinationServices;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.cassandra.async.client.creation.ClusterFactory.CassandraClusterConfig;
 import com.palantir.atlasdb.lock.SimpleLockResource;
 import com.palantir.atlasdb.sweep.CellsSweeper;
 import com.palantir.atlasdb.sweep.SweepTaskRunner;
 import com.palantir.atlasdb.sweep.queue.SpecialTimestampsSupplier;
 import com.palantir.atlasdb.sweep.queue.TargetedSweepFollower;
 import com.palantir.atlasdb.sweep.queue.TargetedSweeper;
 import com.palantir.atlasdb.table.description.Schema;
-import com.palantir.atlasdb.timelock.BackupTimeLockServiceView;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementService;
 import com.palantir.atlasdb.timestamp.SimpleEteTimestampResource;
 import com.palantir.atlasdb.todo.SimpleTodoResource;
 import com.palantir.atlasdb.todo.TodoClient;
@@ -72,18 +50,11 @@
 import com.palantir.atlasdb.transaction.service.TransactionService;
 import com.palantir.atlasdb.transaction.service.TransactionServices;
 import com.palantir.atlasdb.util.MetricsManagers;
-import com.palantir.conjure.java.api.config.service.ServicesConfigBlock;
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.server.jersey.ConjureJerseyFeature;
-import com.palantir.dialogue.clients.DialogueClients;
-import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
-import com.palantir.refreshable.Refreshable;
-import com.palantir.timestamp.TimestampManagementService;
-import com.palantir.tokens.auth.AuthHeader;
-import com.palantir.tokens.auth.BearerToken;
 import com.palantir.tritium.metrics.registry.SharedTaggedMetricRegistries;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import io.dropwizard.Application;
@@ -92,14 +63,8 @@
 import io.dropwizard.jersey.optional.EmptyOptionalException;
 import io.dropwizard.setup.Bootstrap;
 import io.dropwizard.setup.Environment;
-import java.io.IOException;
-import java.net.URL;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.Paths;
 import java.util.Optional;
 import java.util.concurrent.TimeUnit;
-import java.util.function.Function;
 import java.util.function.LongSupplier;
 import java.util.function.Supplier;
 import javax.ws.rs.core.Response;
@@ -134,10 +99,6 @@ public void run(AtlasDbEteConfiguration config, final Environment environment) t
         Supplier<TargetedSweeper> sweeperSupplier = Suppliers.memoize(() -> initializeAndGet(sweeper, txManager));
         ensureTransactionSchemaVersionInstalled(config.getAtlasDbConfig(), config.getAtlasDbRuntimeConfig(), txManager);
 
-        if (shouldSetUpBackupAndRestoreResource(config)) {
-            createAndRegisterBackupAndRestoreResource(config, environment, txManager, taggedMetrics);
-        }
-
         environment
                 .jersey()
                 .register(new SimpleTodoResource(new TodoClient(txManager, sweepTaskRunner, sweeperSupplier)));
@@ -149,92 +110,6 @@ public void run(AtlasDbEteConfiguration config, final Environment environment) t
         environment.jersey().register(new EmptyOptionalTo204ExceptionMapper());
     }
 
-    private boolean shouldSetUpBackupAndRestoreResource(AtlasDbEteConfiguration config) {
-        boolean isCassandra = CassandraKeyValueServiceConfig.TYPE.equals(
-                config.getAtlasDbConfig().keyValueService().type());
-        boolean hasTimelock = config.getAtlasDbRuntimeConfig()
-                .flatMap(AtlasDbRuntimeConfig::timelockRuntime)
-                .isPresent();
-        return isCassandra && hasTimelock;
-    }
-
-    private void createAndRegisterBackupAndRestoreResource(
-            AtlasDbEteConfiguration config,
-            Environment environment,
-            TransactionManager txManager,
-            TaggedMetricRegistry taggedMetrics)
-            throws IOException {
-        AuthHeader authHeader = AuthHeader.of(BearerToken.valueOf("test-auth"));
-        URL localServer = new URL("https://localhost:1234");
-
-        Path backupFolder = Paths.get("/var/data/backup");
-        Files.createDirectories(backupFolder);
-        Function<AtlasService, Path> backupFolderFactory = _unused -> backupFolder;
-        ExternalBackupPersister externalBackupPersister = new ExternalBackupPersister(backupFolderFactory);
-
-        Function<String, BackupTimeLockServiceView> timelockServices =
-                _unused -> createBackupTimeLockServiceView(txManager);
-        AuthHeaderValidator authHeaderValidator =
-                new AuthHeaderValidator(() -> Optional.of(authHeader.getBearerToken()));
-        RedirectRetryTargeter redirectRetryTargeter =
-                RedirectRetryTargeter.create(localServer, ImmutableList.of(localServer));
-        AtlasBackupClient atlasBackupClient =
-                AtlasBackupResource.jersey(authHeaderValidator, redirectRetryTargeter, timelockServices);
-        AtlasRestoreClient atlasRestoreClient =
-                AtlasRestoreResource.jersey(authHeaderValidator, redirectRetryTargeter, timelockServices);
-        Refreshable<ServerListConfig> serverListConfig = getServerListConfigForTimeLock(config);
-        TimeLockManagementService timeLockManagementService =
-                getRemoteTimeLockManagementService(serverListConfig, taggedMetrics);
-
-        AtlasBackupService atlasBackupService =
-                AtlasBackupService.createForTests(authHeader, atlasBackupClient, txManager, backupFolderFactory);
-
-        Function<AtlasService, CassandraKeyValueServiceConfig> keyValueServiceConfigFactory = _unused ->
-                (CassandraKeyValueServiceConfig) config.getAtlasDbConfig().keyValueService();
-        Function<AtlasService, CassandraKeyValueServiceRuntimeConfig> runtimeConfigFactory =
-                _unused -> (CassandraKeyValueServiceRuntimeConfig) config.getAtlasDbRuntimeConfig()
-                        .flatMap(AtlasDbRuntimeConfig::keyValueService)
-                        .orElseThrow();
-
-        Function<AtlasService, CassandraClusterConfig> cassandraClusterConfigFactory =
-                atlasService -> CassandraClusterConfig.of(
-                        keyValueServiceConfigFactory.apply(atlasService), runtimeConfigFactory.apply(atlasService));
-
-        Function<AtlasService, Refreshable<CassandraServersConfig>> refreshableCassandraServersConfigFactory =
-                runtimeConfigFactory.andThen(runtimeConfig -> Refreshable.only(runtimeConfig.servers()));
-
-        AtlasRestoreService atlasRestoreService = AtlasRestoreService.createForTests(
-                authHeader,
-                atlasRestoreClient,
-                timeLockManagementService,
-                externalBackupPersister,
-                txManager,
-                cassandraClusterConfigFactory,
-                refreshableCassandraServersConfigFactory);
-
-        environment
-                .jersey()
-                .register(new SimpleBackupAndRestoreResource(
-                        atlasBackupService, atlasRestoreService, externalBackupPersister));
-    }
-
-    private Refreshable<ServerListConfig> getServerListConfigForTimeLock(AtlasDbEteConfiguration eteConfig) {
-        AtlasDbConfig config = eteConfig.getAtlasDbConfig();
-        Optional<AtlasDbRuntimeConfig> atlasDbRuntimeConfig = eteConfig.getAtlasDbRuntimeConfig();
-        return ServerListConfigs.getTimeLockServersFromAtlasDbConfig(config, atlasDbRuntimeConfig);
-    }
-
-    private TimeLockManagementService getRemoteTimeLockManagementService(
-            Refreshable<ServerListConfig> serverListConfig, TaggedMetricRegistry taggedMetrics) {
-        UserAgent userAgent = UserAgent.of(AtlasDbRemotingConstants.ATLASDB_HTTP_CLIENT_AGENT);
-        DialogueClients.ReloadingFactory reloadingFactory = DialogueClients.create(
-                        Refreshable.only(ServicesConfigBlock.builder().build()))
-                .withUserAgent(userAgent);
-        AtlasDbDialogueServiceProvider dialogueServiceProvider =
-                AtlasDbDialogueServiceProvider.create(serverListConfig, reloadingFactory, userAgent, taggedMetrics);
-        return dialogueServiceProvider.getTimeLockManagementService();
-    }
-
     private void ensureTransactionSchemaVersionInstalled(
             AtlasDbConfig config, Optional<AtlasDbRuntimeConfig> runtimeConfig, TransactionManager transactionManager) {
         if (runtimeConfig.isEmpty()
@@ -276,12 +151,6 @@ private TransactionManager tryToCreateTransactionManager(
         }
     }
 
-    private BackupTimeLockServiceView createBackupTimeLockServiceView(TransactionManager txManager) {
-        TimelockService timelockService = txManager.getTimelockService();
-        TimestampManagementService timestampManagementService = txManager.getTimestampManagementService();
-        return new DelegatingBackupTimeLockServiceView(timelockService, timestampManagementService);
-    }
-
     private SweepTaskRunner getSweepTaskRunner(TransactionManager transactionManager) {
         KeyValueService kvs = transactionManager.getKeyValueService();
         LongSupplier ts = transactionManager.getTimestampService()::getFreshTimestamp;u}(j$ (02b30e7cc3e9941ea1536ece59a811618af6d538jW% Yatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/backup/BackupAndRestoreResource.javajY% removedjQ% K jR% KDj[% KDj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FBackupAndRestoreResource.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FBackupAndRestoreResource.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FBackupAndRestoreResource.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% XO	  @@ -1,68 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.processors.AutoDelegate;
-import java.util.Optional;
-import java.util.Set;
-import javax.ws.rs.Consumes;
-import javax.ws.rs.POST;
-import javax.ws.rs.Path;
-import javax.ws.rs.Produces;
-import javax.ws.rs.core.MediaType;
-
-@AutoDelegate
-@Path("/backup")
-public interface BackupAndRestoreResource {
-    @POST
-    @Path("/prepare-backup")
-    @Produces(MediaType.APPLICATION_JSON)
-    @Consumes(MediaType.APPLICATION_JSON)
-    Set<AtlasService> prepareBackup(Set<AtlasService> atlasServices);
-
-    @POST
-    @Path("/complete-backup")
-    @Produces(MediaType.APPLICATION_JSON)
-    @Consumes(MediaType.APPLICATION_JSON)
-    Set<AtlasService> completeBackup(Set<AtlasService> atlasServices);
-
-    @POST
-    @Path("/prepare-restore")
-    @Produces(MediaType.APPLICATION_JSON)
-    @Consumes(MediaType.APPLICATION_JSON)
-    Set<AtlasService> prepareRestore(Set<RestoreRequestWithId> restoreRequestsWithId);
-
-    @POST
-    @Path("/complete-restore")
-    @Produces(MediaType.APPLICATION_JSON)
-    @Consumes(MediaType.APPLICATION_JSON)
-    Set<AtlasService> completeRestore(Set<RestoreRequestWithId> restoreRequestsWithId);
-
-    @POST
-    @Path("/immutable-ts")
-    @Produces(MediaType.APPLICATION_JSON)
-    @Consumes(MediaType.APPLICATION_JSON)
-    Optional<Long> getStoredImmutableTimestamp(AtlasService atlasService);
-
-    @POST
-    @Path("/ff-ts")
-    @Produces(MediaType.APPLICATION_JSON)
-    @Consumes(MediaType.APPLICATION_JSON)
-    Optional<CompletedBackup> getStoredBackup(AtlasService atlasService);
-}u}(j$ (78c71b9cf617120bf11c279b693005880d21d6cajW% Uatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/backup/RestoreRequestWithId.javajY% removedjQ% K jR% K%j[% K%j\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FRestoreRequestWithId.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FRestoreRequestWithId.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FRestoreRequestWithId.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% Xj  @@ -1,37 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import org.immutables.value.Value;
-
-@JsonSerialize(as = ImmutableRestoreRequestWithId.class)
-@JsonDeserialize(as = ImmutableRestoreRequestWithId.class)
-@Value.Immutable
-public interface RestoreRequestWithId {
-    RestoreRequest restoreRequest();
-
-    String backupId();
-
-    static RestoreRequestWithId of(RestoreRequest restoreRequest, String backupId) {
-        return ImmutableRestoreRequestWithId.builder()
-                .restoreRequest(restoreRequest)
-                .backupId(backupId)
-                .build();
-    }
-}u}(j$ (ba7224fb4b8cf4a7db5b1d33e34952dd96d1cb84jW% _atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/backup/SimpleBackupAndRestoreResource.javajY% removedjQ% K jR% KOj[% KOj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FSimpleBackupAndRestoreResource.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FSimpleBackupAndRestoreResource.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FSimpleBackupAndRestoreResource.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,79 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import java.util.Collection;
-import java.util.Optional;
-import java.util.Set;
-import java.util.stream.Collectors;
-
-public class SimpleBackupAndRestoreResource implements BackupAndRestoreResource {
-    private final AtlasBackupService atlasBackupService;
-    private final AtlasRestoreService atlasRestoreService;
-    private final ExternalBackupPersister externalBackupPersister;
-
-    public SimpleBackupAndRestoreResource(
-            AtlasBackupService atlasBackupService,
-            AtlasRestoreService atlasRestoreService,
-            ExternalBackupPersister externalBackupPersister) {
-        this.atlasBackupService = atlasBackupService;
-        this.atlasRestoreService = atlasRestoreService;
-        this.externalBackupPersister = externalBackupPersister;
-    }
-
-    @Override
-    public Set<AtlasService> prepareBackup(Set<AtlasService> atlasServices) {
-        return atlasBackupService.prepareBackup(atlasServices);
-    }
-
-    @Override
-    public Set<AtlasService> completeBackup(Set<AtlasService> atlasServices) {
-        return atlasBackupService.completeBackup(atlasServices);
-    }
-
-    @Override
-    public Set<AtlasService> prepareRestore(Set<RestoreRequestWithId> requests) {
-        // Would be more efficient to group by backup ID, but this is fine for ETE purposes
-        return requests.stream()
-                .map(request -> atlasRestoreService.prepareRestore(
-                        ImmutableSet.of(request.restoreRequest()), request.backupId()))
-                .flatMap(Collection::stream)
-                .collect(Collectors.toSet());
-    }
-
-    @Override
-    public Set<AtlasService> completeRestore(Set<RestoreRequestWithId> requests) {
-        return requests.stream()
-                .map(request -> atlasRestoreService.completeRestore(
-                        ImmutableSet.of(request.restoreRequest()), request.backupId()))
-                .flatMap(Collection::stream)
-                .collect(Collectors.toSet());
-    }
-
-    @Override
-    public Optional<Long> getStoredImmutableTimestamp(AtlasService atlasService) {
-        return externalBackupPersister.getImmutableTimestamp(atlasService);
-    }
-
-    @Override
-    public Optional<CompletedBackup> getStoredBackup(AtlasService atlasService) {
-        return externalBackupPersister.getCompletedBackup(atlasService);
-    }
-}u}(j$ (b6bf159dba35ed512d88704b640cfe0860e68873jW% Uatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/BackupAndRestoreEteTest.javajY% removedjQ% K jR% K}j[% K}j\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FBackupAndRestoreEteTest.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FBackupAndRestoreEteTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FBackupAndRestoreEteTest.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,125 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.ete;
-
-import static com.palantir.conjure.java.api.testing.Assertions.assertThatRemoteExceptionThrownBy;
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.backup.BackupAndRestoreResource;
-import com.palantir.atlasdb.backup.RestoreRequest;
-import com.palantir.atlasdb.backup.RestoreRequestWithId;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.ServiceId;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.timestamp.EteTimestampResource;
-import com.palantir.atlasdb.todo.ImmutableTodo;
-import com.palantir.atlasdb.todo.Todo;
-import com.palantir.atlasdb.todo.TodoResource;
-import com.palantir.conjure.java.api.errors.ErrorType;
-import java.time.Duration;
-import java.util.Optional;
-import java.util.Set;
-import java.util.stream.Collectors;
-import org.awaitility.Awaitility;
-import org.junit.Test;
-
-public class BackupAndRestoreEteTest {
-    private static final Todo TODO = ImmutableTodo.of("some stuff to do");
-    private static final Namespace NAMESPACE = Namespace.of("atlasete");
-    private static final AtlasService ATLAS_SERVICE = AtlasService.of(ServiceId.of("a"), NAMESPACE);
-    private static final Namespace NAMESPACE_2 = Namespace.of("atlasete-2");
-    private static final AtlasService ATLAS_SERVICE_2 = AtlasService.of(ServiceId.of("b"), NAMESPACE_2);
-    private static final ImmutableSet<AtlasService> ATLAS_SERVICES = ImmutableSet.of(ATLAS_SERVICE, ATLAS_SERVICE_2);
-    private static final String BACKUP_ID = "backupId";
-
-    private final TodoResource todoClient = EteSetup.createClientToSingleNode(TodoResource.class);
-    private final BackupAndRestoreResource backupResource =
-            EteSetup.createClientToSingleNode(BackupAndRestoreResource.class);
-    private final EteTimestampResource timestampClient = EteSetup.createClientToSingleNode(EteTimestampResource.class);
-
-    @Test
-    public void canPrepareBackup() {
-        addTodo();
-        assertThat(backupResource.getStoredImmutableTimestamp(ATLAS_SERVICE)).isEmpty();
-
-        Set<AtlasService> preparedAtlasServices = backupResource.prepareBackup(ATLAS_SERVICES);
-        assertThat(preparedAtlasServices).containsExactlyInAnyOrder(ATLAS_SERVICE, ATLAS_SERVICE_2);
-
-        // verify we persisted the immutable timestamp to disk
-        assertThat(backupResource.getStoredImmutableTimestamp(ATLAS_SERVICE)).isNotEmpty();
-    }
-
-    @Test
-    public void canCompletePreparedBackup() {
-        addTodo();
-        backupResource.prepareBackup(ATLAS_SERVICES);
-
-        Long immutableTimestamp =
-                backupResource.getStoredImmutableTimestamp(ATLAS_SERVICE).orElseThrow();
-
-        assertThat(backupResource.getStoredBackup(ATLAS_SERVICE)).isEmpty();
-
-        Set<AtlasService> completedAtlasServices = backupResource.completeBackup(ATLAS_SERVICES);
-        assertThat(completedAtlasServices).containsExactlyInAnyOrder(ATLAS_SERVICE, ATLAS_SERVICE_2);
-
-        Optional<CompletedBackup> storedBackup = backupResource.getStoredBackup(ATLAS_SERVICE);
-        assertThat(storedBackup).isNotEmpty();
-        assertThat(storedBackup.get().getImmutableTimestamp()).isEqualTo(immutableTimestamp);
-    }
-
-    @Test
-    public void canPrepareAndCompleteRestore() {
-        addTodo();
-        backupResource.prepareBackup(ATLAS_SERVICES);
-        backupResource.completeBackup(ATLAS_SERVICES);
-
-        assertThat(timestampClient.getFreshTimestamp()).isGreaterThan(0L);
-
-        Set<RestoreRequestWithId> restoreRequests =
-                ATLAS_SERVICES.stream().map(this::getRestoreRequest).collect(Collectors.toSet());
-        Set<AtlasService> preparedAtlasServices = backupResource.prepareRestore(restoreRequests);
-        assertThat(preparedAtlasServices).containsAll(ATLAS_SERVICES);
-
-        // verify TimeLock is disabled
-        assertThatRemoteExceptionThrownBy(timestampClient::getFreshTimestamp)
-                .isGeneratedFromErrorType(ErrorType.INTERNAL);
-
-        Set<AtlasService> completedAtlasServices = backupResource.completeRestore(restoreRequests);
-        assertThat(completedAtlasServices).containsAll(ATLAS_SERVICES);
-
-        // verify TimeLock is re-enabled
-        assertThat(timestampClient.getFreshTimestamp()).isGreaterThan(0L);
-    }
-
-    private RestoreRequestWithId getRestoreRequest(AtlasService atlasService) {
-        RestoreRequest restoreRequest = RestoreRequest.builder()
-                .oldAtlasService(atlasService)
-                .newAtlasService(atlasService)
-                .build();
-        return RestoreRequestWithId.of(restoreRequest, BACKUP_ID);
-    }
-
-    private void addTodo() {
-        Awaitility.await()
-                .atMost(Duration.ofSeconds(60L))
-                .ignoreExceptions()
-                .pollInterval(Duration.ofSeconds(1L))
-                .untilAsserted(() -> todoClient.addTodo(TODO));
-    }
-}u}(j$ (b4a93dc6e795f33c33b0390c7e0dc13add5eded6jW% Tatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraRepairEteTest.javajY% removedjQ% K jR% M)j[% M)j\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraRepairEteTest.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraRepairEteTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraRepairEteTest.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X<  @@ -1,297 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.ete;
-
-import static com.google.common.collect.ImmutableRangeSet.toImmutableRangeSet;
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.datastax.driver.core.Cluster;
-import com.datastax.driver.core.policies.DefaultRetryPolicy;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Range;
-import com.google.common.collect.RangeMap;
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.backup.KvsRunner;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.ServiceId;
-import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
-import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
-import com.palantir.atlasdb.cassandra.backup.CassandraRepairHelper;
-import com.palantir.atlasdb.cassandra.backup.CqlCluster;
-import com.palantir.atlasdb.cassandra.backup.CqlMetadata;
-import com.palantir.atlasdb.cassandra.backup.RangesForRepair;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions1TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions2TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions3TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.containers.ThreeNodeCassandraCluster;
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.Cell;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
-import com.palantir.atlasdb.keyvalue.cassandra.Blacklist;
-import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueService;
-import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.keyvalue.cassandra.async.client.creation.ClusterFactory;
-import com.palantir.atlasdb.keyvalue.cassandra.async.client.creation.ClusterFactory.CassandraClusterConfig;
-import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraClientPoolMetrics;
-import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
-import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.atlasdb.transaction.impl.TransactionTables;
-import com.palantir.atlasdb.util.MetricsManagers;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.refreshable.Refreshable;
-import com.palantir.timestamp.FullyBoundedTimestampRange;
-import java.net.InetSocketAddress;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.concurrent.atomic.AtomicInteger;
-import java.util.function.BiConsumer;
-import java.util.function.Function;
-import java.util.function.Predicate;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-public final class CassandraRepairEteTest {
-    private static final byte[] FIRST_COLUMN = PtBytes.toBytes("col1");
-    private static final Cell NONEMPTY_CELL = Cell.create(PtBytes.toBytes("nonempty"), FIRST_COLUMN);
-    private static final byte[] CONTENTS = PtBytes.toBytes("default_value");
-    private static final String NAMESPACE_NAME = "atlasdb";
-    private static final Namespace NAMESPACE = Namespace.of(NAMESPACE_NAME);
-    private static final AtlasService ATLAS_SERVICE = AtlasService.of(ServiceId.of("a"), NAMESPACE);
-    private static final String TABLE_1 = "table1";
-    private static final TableReference TABLE_REF =
-            TableReference.create(com.palantir.atlasdb.keyvalue.api.Namespace.create(NAMESPACE_NAME), TABLE_1);
-    private static final DefaultRetryPolicy POLICY = DefaultRetryPolicy.INSTANCE;
-
-    private CassandraRepairHelper cassandraRepairHelper;
-    private CassandraKeyValueService kvs;
-    private CassandraKeyValueServiceConfig config;
-    private Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig;
-    private Cluster cluster;
-    private CqlCluster cqlCluster;
-
-    @Before
-    public void setUp() {
-        int replicationFactor = 2;
-        config = ThreeNodeCassandraCluster.getKvsConfig();
-        runtimeConfig = ThreeNodeCassandraCluster.getRuntimeConfig(replicationFactor);
-        kvs = CassandraKeyValueServiceImpl.createForTesting(config, runtimeConfig);
-        TransactionTables.createTables(kvs);
-
-        kvs.createTable(TABLE_REF, AtlasDbConstants.GENERIC_TABLE_METADATA);
-        kvs.putUnlessExists(TABLE_REF, ImmutableMap.of(NONEMPTY_CELL, CONTENTS));
-
-        KvsRunner kvsRunner = KvsRunner.create(_unused -> kvs);
-        Function<AtlasService, CassandraKeyValueServiceConfig> configFactory = _unused -> config;
-        Function<AtlasService, Refreshable<CassandraKeyValueServiceRuntimeConfig>> runtimeConfigFactory =
-                _unused -> runtimeConfig;
-        Function<AtlasService, CassandraClusterConfig> cassandraClusterConfigFunction =
-                atlasService -> CassandraClusterConfig.of(
-                        configFactory.apply(atlasService),
-                        runtimeConfigFactory.apply(atlasService).get());
-        Function<AtlasService, Refreshable<CassandraServersConfig>> cassandraServersConfigFactory =
-                runtimeConfigFactory.andThen(
-                        runtimeConfig -> runtimeConfig.map(CassandraKeyValueServiceRuntimeConfig::servers));
-
-        cassandraRepairHelper =
-                new CassandraRepairHelper(kvsRunner, cassandraClusterConfigFunction, cassandraServersConfigFactory);
-        cluster = new ClusterFactory(Cluster::builder)
-                .constructCluster(
-                        cassandraClusterConfigFunction.apply(ATLAS_SERVICE),
-                        cassandraServersConfigFactory.apply(ATLAS_SERVICE).get());
-        cqlCluster = new CqlCluster(
-                cluster, cassandraServersConfigFactory.apply(ATLAS_SERVICE).get(), NAMESPACE);
-    }
-
-    @After
-    public void tearDown() {
-        kvs.dropTable(TABLE_REF);
-    }
-
-    @Test
-    public void testTokenRangeCoversFullRing() {
-        CqlMetadata cqlMetadata = new CqlMetadata(cluster.getMetadata());
-        Set<Range<LightweightOppToken>> tokenRanges = cqlMetadata.getTokenRanges();
-
-        // Turning this into a RangeSet should give the complete range (-inf, +inf)
-        RangeSet<LightweightOppToken> fullTokenRing = tokenRanges.stream().collect(toImmutableRangeSet());
-        assertThat(fullTokenRing.asRanges()).containsExactly(Range.all());
-    }
-
-    @Test
-    public void testRepairOnlyTxn1() {
-        List<String> tablesRepaired = new ArrayList<>();
-        BiConsumer<String, RangesForRepair> repairer = (table, _unused) -> tablesRepaired.add(table);
-
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions1TableInteraction(range(1L, 10_000_000L), POLICY));
-        cassandraRepairHelper.repairTransactionsTables(ATLAS_SERVICE, interactions, repairer);
-        assertThat(tablesRepaired).containsExactly(TransactionConstants.TRANSACTION_TABLE.getTableName());
-    }
-
-    @Test
-    public void testRepairOnlyTxn2() {
-        List<String> tablesRepaired = new ArrayList<>();
-        BiConsumer<String, RangesForRepair> repairer = (table, _unused) -> tablesRepaired.add(table);
-
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions2TableInteraction(range(1L, 10_000_000L), POLICY));
-        cassandraRepairHelper.repairTransactionsTables(ATLAS_SERVICE, interactions, repairer);
-        assertThat(tablesRepaired).containsExactly(TransactionConstants.TRANSACTIONS2_TABLE.getTableName());
-    }
-
-    @Test
-    public void testRepairTxn3() {
-        List<String> tablesRepaired = new ArrayList<>();
-        BiConsumer<String, RangesForRepair> repairer = (table, _unused) -> tablesRepaired.add(table);
-
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions3TableInteraction(range(1L, 10_000_000L)));
-        cassandraRepairHelper.repairTransactionsTables(ATLAS_SERVICE, interactions, repairer);
-
-        // Transactions3 is backed by Transactions2 under the hood, so this is the table that will be repaired.
-        assertThat(tablesRepaired).containsExactly(TransactionConstants.TRANSACTIONS2_TABLE.getTableName());
-    }
-
-    @Test
-    public void testRepairBothTxnTables() {
-        List<String> tablesRepaired = new ArrayList<>();
-        BiConsumer<String, RangesForRepair> repairer = (table, _unused) -> tablesRepaired.add(table);
-
-        List<TransactionsTableInteraction> interactions = ImmutableList.of(
-                new Transactions1TableInteraction(range(1L, 5L), POLICY),
-                new Transactions2TableInteraction(range(6L, 10L), POLICY));
-
-        cassandraRepairHelper.repairTransactionsTables(ATLAS_SERVICE, interactions, repairer);
-        assertThat(tablesRepaired)
-                .containsExactlyInAnyOrder(
-                        TransactionConstants.TRANSACTION_TABLE.getTableName(),
-                        TransactionConstants.TRANSACTIONS2_TABLE.getTableName());
-    }
-
-    @Test
-    public void testRepairsEachTableOnceOnly() {
-        List<String> tablesRepaired = new ArrayList<>();
-        AtomicInteger numRepairs = new AtomicInteger(0);
-        BiConsumer<String, RangesForRepair> repairer = (table, _unused) -> {
-            numRepairs.incrementAndGet();
-            tablesRepaired.add(table);
-        };
-
-        List<TransactionsTableInteraction> interactions = ImmutableList.of(
-                new Transactions1TableInteraction(range(1L, 5L), POLICY),
-                new Transactions2TableInteraction(range(6L, 10L), POLICY),
-                new Transactions1TableInteraction(range(11L, 15L), POLICY),
-                new Transactions2TableInteraction(range(16L, 20L), POLICY));
-
-        cassandraRepairHelper.repairTransactionsTables(ATLAS_SERVICE, interactions, repairer);
-        assertThat(tablesRepaired)
-                .containsExactlyInAnyOrder(
-                        TransactionConstants.TRANSACTION_TABLE.getTableName(),
-                        TransactionConstants.TRANSACTIONS2_TABLE.getTableName());
-        assertThat(numRepairs).hasValue(2);
-    }
-
-    @Test
-    public void shouldGetRangesForBothReplicas() {
-        RangesForRepair ranges = CassandraRepairHelper.getRangesToRepair(cqlCluster, ATLAS_SERVICE, TABLE_1);
-        assertThat(ranges.tokenMap()).hasSize(2);
-    }
-
-    @Test
-    public void tokenRangesToRepairShouldBeSubsetsOfTokenMap() {
-        Map<CassandraServer, Set<Range<LightweightOppToken>>> fullTokenMap = getFullTokenMap();
-        RangesForRepair rangesToRepair = CassandraRepairHelper.getRangesToRepair(cqlCluster, ATLAS_SERVICE, TABLE_1);
-
-        KeyedStream.stream(rangesToRepair.tokenMap())
-                .forEach((address, cqlRangesForHost) ->
-                        assertRangesToRepairAreSubsetsOfRangesFromTokenMap(fullTokenMap, address, cqlRangesForHost));
-    }
-
-    // The ranges in CQL should be a subset of the Thrift ranges, except that the CQL ranges are also snipped,
-    // such that if the thrift range is [5..9] but we don't have data after 7, then the CQL range will be [5..7]
-    @SuppressWarnings({"DnsLookup", "ReverseDnsLookup", "UnstableApiUsage"})
-    private void assertRangesToRepairAreSubsetsOfRangesFromTokenMap(
-            Map<CassandraServer, Set<Range<LightweightOppToken>>> fullTokenMap,
-            InetSocketAddress address,
-            RangeSet<LightweightOppToken> cqlRangesForHost) {
-        String hostName = address.getHostName();
-        CassandraServer cassandraServer =
-                CassandraServer.of(new InetSocketAddress(hostName, MultiCassandraUtils.CASSANDRA_THRIFT_PORT));
-        assertThat(fullTokenMap.get(cassandraServer)).isNotNull();
-        Set<Range<LightweightOppToken>> thriftRanges = fullTokenMap.get(cassandraServer);
-
-        cqlRangesForHost.asRanges().forEach(range -> assertThat(
-                        thriftRanges.stream().anyMatch(containsEntirely(range)))
-                .isTrue());
-    }
-
-    private Predicate<Range<LightweightOppToken>> containsEntirely(Range<LightweightOppToken> range) {
-        return thriftRange -> safeLowerBound(thriftRange).equals(safeLowerBound(range))
-                && (thriftRange.hasUpperBound()
-                        ? range.hasUpperBound() && thriftRange.upperEndpoint().compareTo(range.upperEndpoint()) >= 0
-                        : !range.hasUpperBound());
-    }
-
-    private Optional<LightweightOppToken> safeLowerBound(Range<LightweightOppToken> range) {
-        return range.hasLowerBound() ? Optional.of(range.lowerEndpoint()) : Optional.empty();
-    }
-
-    // This needs to be Set<Range>, not a RangeSet, because we don't want to merge the token ranges for these tests.
-    private Map<CassandraServer, Set<Range<LightweightOppToken>>> getFullTokenMap() {
-        CassandraService cassandraService = CassandraService.createInitialized(
-                MetricsManagers.createForTests(),
-                config,
-                runtimeConfig,
-                new Blacklist(
-                        config,
-                        runtimeConfig.map(CassandraKeyValueServiceRuntimeConfig::unresponsiveHostBackoffTimeSeconds)),
-                new CassandraClientPoolMetrics(MetricsManagers.createForTests()));
-        return invert(cassandraService.getTokenMap());
-    }
-
-    @SuppressWarnings("UnstableApiUsage")
-    private Map<CassandraServer, Set<Range<LightweightOppToken>>> invert(
-            RangeMap<LightweightOppToken, ImmutableSet<CassandraServer>> tokenMap) {
-        Map<CassandraServer, Set<Range<LightweightOppToken>>> invertedMap = new HashMap<>();
-        tokenMap.asMapOfRanges()
-                .forEach((range, addresses) -> addresses.forEach(address -> {
-                    Set<Range<LightweightOppToken>> existingRanges = invertedMap.getOrDefault(address, new HashSet<>());
-                    existingRanges.add(range);
-                    invertedMap.put(address, existingRanges);
-                }));
-
-        return invertedMap;
-    }
-
-    private static FullyBoundedTimestampRange range(long lower, long upper) {
-        return FullyBoundedTimestampRange.of(Range.closed(lower, upper));
-    }
-}u}(j$ (1859fc8d2d57dc2b3a048c08afb963f513a0ac9ajW% Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraTimeLockTestSuite.javajY% modifiedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -30,7 +30,6 @@
     TargetedSweepEteTest.class,
     CassandraTimestampsEteTest.class,
     TimestampManagementEteTest.class,
-    BackupAndRestoreEteTest.class,
     CoordinationEteTest.class,
     MultipleSchemaVersionsCoordinationEteTest.class,
     LockWithTimelockEteTest.classu}(j$ (109be1b7d642644c9591802edef6b6e873968824jW% Uatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/MultiCassandraTestSuite.javajY% modifiedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FMultiCassandraTestSuite.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FMultiCassandraTestSuite.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FMultiCassandraTestSuite.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% @@ -26,7 +26,6 @@
 
 @RunWith(Suite.class)
 @Suite.SuiteClasses({
-    CassandraRepairEteTest.class,
     TodoEteTest.class,
     ServiceExposureEteTest.class,
     MultiCassandraSingleNodeDownEteTest.class,u}(j$ (f73bbbac2af66443ccebcf6a3c7ed2da9b42b493jW% fatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/internalschema/InternalSchemaMetadataState.javajY% removedjQ% K jR% K,j[% K,j\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Finternalschema%2FInternalSchemaMetadataState.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Finternalschema%2FInternalSchemaMetadataState.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Finternalschema%2FInternalSchemaMetadataState.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,44 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.internalschema;
-
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.palantir.atlasdb.coordination.ValueAndBound;
-import java.util.Optional;
-import org.immutables.value.Value;
-
-@Value.Immutable
-@JsonSerialize(as = ImmutableInternalSchemaMetadataState.class)
-@JsonDeserialize(as = ImmutableInternalSchemaMetadataState.class)
-public abstract class InternalSchemaMetadataState {
-    public abstract Optional<ValueAndBound<InternalSchemaMetadata>> value();
-
-    @Override
-    public String toString() {
-        return value().toString();
-    }
-
-    public static InternalSchemaMetadataState of(Optional<ValueAndBound<InternalSchemaMetadata>> value) {
-        return value.map(InternalSchemaMetadataState::of)
-                .orElseGet(() -> ImmutableInternalSchemaMetadataState.builder().build());
-    }
-
-    public static InternalSchemaMetadataState of(ValueAndBound<InternalSchemaMetadata> value) {
-        return ImmutableInternalSchemaMetadataState.builder().value(value).build();
-    }
-}u}(j$ (c21d1aa3124d06afc5fdd1da967841c89f2e7319jW% ratlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/ShouldNotDeleteAndRollbackTransaction.javajY% removedjQ% K jR% Kyj[% Kyj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FShouldNotDeleteAndRollbackTransaction.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FShouldNotDeleteAndRollbackTransaction.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FShouldNotDeleteAndRollbackTransaction.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,121 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.transaction.impl;
-
-import com.palantir.atlasdb.cache.TimestampCache;
-import com.palantir.atlasdb.cleaner.NoOpCleaner;
-import com.palantir.atlasdb.debug.ConflictTracer;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.watch.NoOpLockWatchManager;
-import com.palantir.atlasdb.sweep.queue.MultiTableSweepQueueWriter;
-import com.palantir.atlasdb.transaction.TransactionConfig;
-import com.palantir.atlasdb.transaction.api.AtlasDbConstraintCheckingMode;
-import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
-import com.palantir.atlasdb.transaction.impl.metrics.SimpleTableLevelMetricsController;
-import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
-import com.palantir.atlasdb.transaction.service.TransactionService;
-import com.palantir.atlasdb.util.MetricsManager;
-import java.util.List;
-import java.util.Optional;
-import java.util.concurrent.AbstractExecutorService;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.TimeUnit;
-import java.util.function.Supplier;
-
-/**
- * This will read the values of all committed transactions.
- */
-public class ShouldNotDeleteAndRollbackTransaction extends SnapshotTransaction {
-
-    private static final ExecutorService IGNORING_EXECUTOR = new AbstractExecutorService() {
-        @Override
-        public void shutdown() {}
-
-        @Override
-        public List<Runnable> shutdownNow() {
-            return null;
-        }
-
-        @Override
-        public boolean isShutdown() {
-            return false;
-        }
-
-        @Override
-        public boolean isTerminated() {
-            return false;
-        }
-
-        @Override
-        public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException {
-            return false;
-        }
-
-        @Override
-        public void execute(Runnable command) {
-            // Should not be called
-        }
-    };
-
-    public ShouldNotDeleteAndRollbackTransaction(
-            MetricsManager metricsManager,
-            KeyValueService keyValueService,
-            TransactionService transactionService,
-            long startTimeStamp,
-            AtlasDbConstraintCheckingMode constraintCheckingMode,
-            TransactionReadSentinelBehavior readSentinelBehavior,
-            boolean allowHiddenTableAccess,
-            TimestampCache timestampCache,
-            ExecutorService getRangesExecutor,
-            int defaultGetRangesConcurrency,
-            Supplier<TransactionConfig> transactionConfig,
-            TransactionKnowledgeComponents knowledge) {
-        super(
-                metricsManager,
-                keyValueService,
-                null,
-                NoOpLockWatchManager.create(),
-                transactionService,
-                NoOpCleaner.INSTANCE,
-                () -> startTimeStamp,
-                ConflictDetectionManagers.createWithNoConflictDetection(),
-                SweepStrategyManagers.createDefault(keyValueService),
-                startTimeStamp,
-                Optional.empty(),
-                PreCommitConditions.NO_OP,
-                constraintCheckingMode,
-                null,
-                readSentinelBehavior,
-                allowHiddenTableAccess,
-                timestampCache,
-                getRangesExecutor,
-                defaultGetRangesConcurrency,
-                MultiTableSweepQueueWriter.NO_OP,
-                IGNORING_EXECUTOR,
-                true,
-                transactionConfig,
-                ConflictTracer.NO_OP,
-                new SimpleTableLevelMetricsController(metricsManager),
-                knowledge);
-    }
-
-    @Override
-    protected boolean shouldDeleteAndRollback() {
-        // We don't want to delete any data or roll back any transactions because we don't participate in the
-        // transaction protocol.  We just want to skip over anything we find that isn't committed
-        return false;
-    }
-}u'     }(j$ (087067afc54f5570d6011303390c0e0d4a2f8f68jW% gatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/SimpleCommitTimestampAtomicTableTest.javajY% modifiedjQ% KjR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FSimpleCommitTimestampAtomicTableTest.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FSimpleCommitTimestampAtomicTableTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FSimpleCommitTimestampAtomicTableTest.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X^  @@ -100,7 +100,7 @@ public void canPutAndGetAbortedTransactions() throws ExecutionException, Interru
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L)).get();
         assertThat(result).hasSize(1);
-        assertThat(result.get(1L)).isEqualTo(TransactionConstants.ABORTED);
+        assertThat(result).containsEntry(1L, TransactionConstants.ABORTED);
     }
 
     @Test
@@ -111,7 +111,7 @@ public void getsAllTimestamps() throws ExecutionException, InterruptedException
                 atomicTable.get(ImmutableList.of(1L, 3L)).get();
         assertThat(result).hasSize(2);
         assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(result.get(3L)).isEqualTo(TransactionConstants.IN_PROGRESS);
+        assertThat(result).containsEntry(3L, TransactionConstants.IN_PROGRESS);
     }
 
     @Test
@@ -125,7 +125,7 @@ public void doesNotThrowForDuplicateValues() throws ExecutionException, Interrup
 
         assertThat(result).hasSize(2);
         assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(result.get(3L)).isEqualTo(TransactionConstants.IN_PROGRESS);
+        assertThat(result).containsEntry(3L, TransactionConstants.IN_PROGRESS);
     }
 
     private AtomicTable<Long, TransactionStatus> createPueTable() {u}(j$ (7543817507eef5d3288ee900cb7a11a0764dfdbbjW% \atlasdb-tests-shared/src/main/java/com/palantir/timelock/paxos/InMemoryTimelockServices.javajY% modifiedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -57,7 +57,6 @@
 import com.palantir.timestamp.ManagedTimestampService;
 import com.palantir.timestamp.TimestampManagementService;
 import com.palantir.timestamp.TimestampService;
-import com.palantir.tokens.auth.BearerToken;
 import java.io.Closeable;
 import java.io.File;
 import java.io.IOException;
@@ -73,7 +72,6 @@ public final class InMemoryTimelockServices extends ExternalResource implements
     private static final String USER_AGENT_NAME = "user-agent";
     private static final String USER_AGENT_VERSION = "3.1415926.5358979";
     private static final UserAgent USER_AGENT = UserAgent.of(UserAgent.Agent.of(USER_AGENT_NAME, USER_AGENT_VERSION));
-    private static final BearerToken BEARER_TOKEN = BearerToken.valueOf("test-token");
     private static final int THREAD_POOL_SIZE = 128;
     private static final int BLOCKING_TIMEOUT_MS = 60 * 800; // 0.8 mins to ms
 
@@ -121,7 +119,6 @@ protected void before() throws IOException {
                 .cluster(PartialServiceConfiguration.of(List.of("local"), Optional.empty()))
                 .build();
         TimeLockRuntimeConfiguration runtime = ImmutableTimeLockRuntimeConfiguration.builder()
-                .permittedBackupToken(BEARER_TOKEN)
                 .clusterSnapshot(clusterConfig)
                 .build();
 u}(j$ (e9b3bf84422527fc3610b1c4f3a66cdf9ea2c8b8jW% eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javajY% modifiedjQ% KjR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -1388,7 +1388,7 @@ public void getRowsColumnRangeIteratorHandlesLocalWrites() {
                     .toMap();
         });
         assertThat(cells)
-                .isEqualTo(ImmutableMap.of(
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(
                         row1,
                         ImmutableList.of(firstRowFirstColumn, firstRowSecondColumn),
                         row2,u}(j$ (f7471da5da9517728e85ba32e558cfa3f9d781bejW% (atlasdb-workload-server-api/build.gradlejY% addedjQ% K
jR% K j[% K
j\% |https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fbuild.gradlej^% {https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fbuild.gradlej`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fbuild.gradle?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -0,0 +1,10 @@
+apply from: "../gradle/shared.gradle"
+
+dependencies {
+    implementation 'com.fasterxml.jackson.core:jackson-annotations'
+    implementation 'com.fasterxml.jackson.core:jackson-core'
+    implementation 'com.fasterxml.jackson.core:jackson-databind'
+    implementation 'com.google.guava:guava'
+    compileOnly 'org.immutables:value::annotations'
+    annotationProcessor 'org.immutables:value'
+}
\ No newline at end of fileu}(j$ (a61cb1451d85370ec0e3872f62c65d9aa9de5097jW% catlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStore.javajY% addedjQ% K.jR% K j[% K.j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% XA  @@ -0,0 +1,46 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.List;
+import java.util.Optional;
+
+/**
+ * A transactional store for the workload server to read/write from.
+ */
+public interface TransactionStore {
+    /**
+     * Perform a read for a given row and return a cell if it exists.
+     * Ideally this endpoint is only used for verification purposes, as it does not return a witnessed transaction.
+     *
+     * @param table Table to read from
+     * @param cell Cell to read from
+     * @return The value of the cell for a given table.
+     */
+    Optional<Integer> get(String table, WorkloadCell cell);
+
+    /**
+     * Performs a list of transaction actions in order, and returns the transaction executed if it committed
+     * successfully.
+     *
+     * @param actions List of transaction actions (read/write/delete) to be executed in order.
+     * @return The witnessed transaction, if successfully committed.
+     */
+    Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions);
+}u}(j$ (2fe787f4f3f865c6ba129185b77dde55ea84f540jW% _atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/WorkloadCell.javajY% addedjQ% K"jR% K j[% K"j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FWorkloadCell.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FWorkloadCell.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FWorkloadCell.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X.  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import org.immutables.value.Value;
+
+/**
+ * Cells generated by the workload service.
+ * Columns/values are expected to be random integers.
+ *
+ * Schema: Key[Integer], Column[Integer], Value[Integer].
+ */
+@Value.Immutable
+public interface WorkloadCell {
+    @Value.Parameter
+    Integer key();
+
+    @Value.Parameter
+    Integer column();
+}u}(j$ (3bd49661e70b87286ba38152d181bec2a3de5d80jW% patlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/DeleteTransactionAction.javajY% addedjQ% K'jR% K j[% K'j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -0,0 +1,39 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import org.immutables.value.Value;
+
+@Value.Immutable(builder = false)
+public interface DeleteTransactionAction extends TransactionAction {
+
+    default WitnessedDeleteTransactionAction witness() {
+        return ImmutableWitnessedDeleteTransactionAction.of(table(), cell());
+    }
+
+    @Override
+    default <T> T accept(TransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static DeleteTransactionAction of(String table, WorkloadCell cell) {
+        return ImmutableDeleteTransactionAction.of(table, cell);
+    }
+}u}(j$ (c0ff0611ee15ce841cb508124e35b5b83caf77d7jW% natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ReadTransactionAction.javajY% addedjQ% K(jR% K j[% K(j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% XD  @@ -0,0 +1,40 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable(builder = false)
+public interface ReadTransactionAction extends TransactionAction {
+
+    default WitnessedReadTransactionAction witness(Optional<Integer> value) {
+        return ImmutableWitnessedReadTransactionAction.of(table(), cell(), value);
+    }
+
+    @Override
+    default <T> T accept(TransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ReadTransactionAction of(String table, WorkloadCell workloadCell) {
+        return ImmutableReadTransactionAction.of(table, workloadCell);
+    }
+}u}(j$ (54d5d701f5aa99fcb88cceb476aa934dbf7c0727jW% jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionAction.javajY% addedjQ% K!jR% K j[% K!j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% XV  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface TransactionAction {
+
+    /** Table to apply transaction to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) to apply the action to. */
+    @Value.Parameter
+    WorkloadCell cell();
+
+    <T> T accept(TransactionActionVisitor<T> visitor);
+}u}(j$ (8328863a731368d08645d8ca56d825728ac5a5bejW% qatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionActionVisitor.javajY% renamedjQ% KjR% K	j[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X
  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2020 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,14 +14,12 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.timelock.management;
+package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.paxos.Client;
-import java.util.Set;
+public interface TransactionActionVisitor<T> {
+    T visit(ReadTransactionAction readTransactionAction);
 
-public class DatabaseNamespaceLoader implements PersistentNamespaceLoader {
-    @Override
-    public Set<Client> getAllPersistedNamespaces() {
-        throw new UnsupportedOperationException("Loading all namespaces from the database is not supported yet!");
-    }
+    T visit(WriteTransactionAction writeTransactionAction);
+
+    T visit(DeleteTransactionAction deleteTransactionAction);
 }previous_filenameatimelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/DatabaseNamespaceLoader.javau}(j$ (62d581dfef3d567aa32abc5da5108439f0b84808jW% oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/WriteTransactionAction.javajY% addedjQ% K9jR% K j[% K9j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% XV  @@ -0,0 +1,57 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WriteTransactionAction extends TransactionAction {
+
+    @Override
+    @Value.Parameter
+    String table();
+
+    @Override
+    @Value.Parameter
+    WorkloadCell cell();
+
+    /**
+     * Value for the given cell.
+     */
+    @Value.Parameter
+    Integer value();
+
+    @Override
+    default <T> T accept(TransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    default WitnessedWriteTransactionAction witness() {
+        return ImmutableWitnessedWriteTransactionAction.builder()
+                .table(table())
+                .cell(cell())
+                .value(value())
+                .build();
+    }
+
+    static WriteTransactionAction of(String table, WorkloadCell cell, Integer value) {
+        return ImmutableWriteTransactionAction.of(table, cell, value);
+    }
+}u}(j$ (e6c4dc4d9b3ad93755335cee582e67faeeaaa372jW% atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedDeleteTransactionAction.javajY% addedjQ% K!jR% K j[% K!j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+@Value.Immutable(builder = false)
+public interface WitnessedDeleteTransactionAction extends WitnessedTransactionAction {
+
+    @Override
+    default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static WitnessedDeleteTransactionAction of(String table, WorkloadCell cell) {
+        return ImmutableWitnessedDeleteTransactionAction.of(table, cell);
+    }
+}u}(j$ (b677db617ab276daaecfeeb894a56f50b5b1101cjW% atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedReadTransactionAction.javajY% addedjQ% K.jR% K j[% K.j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X   @@ -0,0 +1,46 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable(builder = false)
+public interface WitnessedReadTransactionAction extends WitnessedTransactionAction {
+
+    @Override
+    @Value.Parameter
+    String table();
+
+    @Override
+    @Value.Parameter
+    WorkloadCell cell();
+
+    /** Value of the cell from the row read. Empty if it does not exist. */
+    @Value.Parameter
+    Optional<Integer> value();
+
+    @Override
+    default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static WitnessedReadTransactionAction of(String table, WorkloadCell cell, Optional<Integer> value) {
+        return ImmutableWitnessedReadTransactionAction.of(table, cell, value);
+    }
+}u}(j$ (cb16a0feec741627dea6afb0830b53c8e2a7ada2jW% watlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransaction.javajY% renamedjQ% KjR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,24 +14,20 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.backup;
+package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.palantir.atlasdb.backup.api.AtlasService;
+import java.util.List;
+import java.util.Optional;
 import org.immutables.value.Value;
 
-@JsonDeserialize(as = ImmutableRestoreRequest.class)
-@JsonSerialize(as = ImmutableRestoreRequest.class)
 @Value.Immutable
-public interface RestoreRequest {
-    AtlasService oldAtlasService();
+public interface WitnessedTransaction {
+    /** Start timestamp of the transaction. */
+    long startTimestamp();
 
-    AtlasService newAtlasService();
+    /** Commit timestamp of the transaction. */
+    Optional<Long> commitTimestamp();
 
-    class Builder extends ImmutableRestoreRequest.Builder {}
-
-    static Builder builder() {
-        return new Builder();
-    }
+    /** Provides an in-order list of actions that were performed during the transaction's execution. */
+    List<WitnessedTransactionAction> actions();
 }jT' Latlasdb-backup/src/main/java/com/palantir/atlasdb/backup/RestoreRequest.javau}(j$ (3fba4c9b7f76d429f19c5a8b4ebb5fda5d158855jW% }atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionAction.javajY% addedjQ% K!jR% K j[% K!j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% Xo  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface WitnessedTransactionAction {
+
+    /** Table action was applied to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) the action applied to. */
+    @Value.Parameter
+    WorkloadCell cell();
+
+    <T> T accept(WitnessedTransactionActionVisitor<T> visitor);
+}u}(j$ (0e326dc182a7cde57ab200a3b5937c5f702700cejW% atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionActionVisitor.javajY% addedjQ% KjR% K j[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -0,0 +1,25 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+public interface WitnessedTransactionActionVisitor<T> {
+    T visit(WitnessedReadTransactionAction readTransactionAction);
+
+    T visit(WitnessedWriteTransactionAction writeTransactionAction);
+
+    T visit(WitnessedDeleteTransactionAction deleteTransactionAction);
+}u}(j$ (44dff33558850b4861ebbb4ab161e2dadfaf5816jW% atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedWriteTransactionAction.javajY% addedjQ% K/jR% K j[% K/j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -0,0 +1,47 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WitnessedWriteTransactionAction extends WitnessedTransactionAction {
+
+    @Override
+    @Value.Parameter
+    String table();
+
+    @Override
+    @Value.Parameter
+    WorkloadCell cell();
+
+    /**
+     * Value for the given cell.
+     */
+    @Value.Parameter
+    Integer value();
+
+    @Override
+    default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static WitnessedWriteTransactionAction of(String table, WorkloadCell cell, Integer value) {
+        return ImmutableWitnessedWriteTransactionAction.of(table, cell, value);
+    }
+}u}(j$ (d11da9dec5c912ee8fb5c9865c9d1c8c393ede58jW% $atlasdb-workload-server/build.gradlejY% addedjQ% KjR% K j[% Kj\% xhttps://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server%2Fbuild.gradlej^% whttps://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server%2Fbuild.gradlej`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -0,0 +1,20 @@
+apply from: "../gradle/shared.gradle"
+
+dependencies {
+    implementation project(':atlasdb-workload-server-api')
+    implementation project(':atlasdb-api')
+    implementation project(':atlasdb-client')
+    implementation project(':atlasdb-config')
+
+    implementation 'com.fasterxml.jackson.core:jackson-annotations'
+    implementation 'com.fasterxml.jackson.core:jackson-core'
+    implementation 'com.fasterxml.jackson.core:jackson-databind'
+    implementation 'com.palantir.safe-logging:preconditions'
+    implementation 'com.palantir.safe-logging:safe-logging'
+    implementation 'one.util:streamex'
+
+    testImplementation 'org.mockito:mockito-core'
+
+    annotationProcessor 'org.immutables:value'
+    compileOnly 'org.immutables:value::annotations'
+}u}(j$ (48cdccfbf9471342b8dd74811709c31e229ccaa4jW% fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javajY% addedjQ% KjR% K j[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -0,0 +1,162 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
+import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.atomic.AtomicReference;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import one.util.streamex.EntryStream;
+
+public final class AtlasDbTransactionStore implements TransactionStore {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(AtlasDbTransactionStore.class);
+    private final TransactionManager transactionManager;
+
+    private final Map<String, TableReference> tables;
+
+    private AtlasDbTransactionStore(TransactionManager transactionManager, Map<String, TableReference> tables) {
+        this.transactionManager = transactionManager;
+        this.tables = tables;
+    }
+
+    @Override
+    public Optional<Integer> get(String table, WorkloadCell cell) {
+        Cell atlasCell = AtlasDbUtils.toAtlasCell(cell);
+        TableReference tableReference = getTableReferenceOrThrow(table);
+        return transactionManager.runTaskWithRetry(task -> {
+            Map<Cell, byte[]> values = task.get(tableReference, Set.of(atlasCell));
+            return Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
+        });
+    }
+
+    @Override
+    public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
+        AtomicReference<Long> startTimestampReference = new AtomicReference<>();
+        AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
+        try {
+            transactionManager.runTaskWithRetry(txn -> {
+                AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
+                startTimestampReference.set(txn.getTimestamp());
+                witnessedActionsReference.set(actions.stream()
+                        .sequential()
+                        .map(action -> action.accept(visitor))
+                        .collect(Collectors.toList()));
+                return null;
+            });
+
+            TransactionStatus status =
+                    transactionManager.getTransactionService().getV2(startTimestampReference.get());
+
+            Optional<Long> commitTimestamp = TransactionStatuses.getCommitTimestamp(status);
+
+            return Optional.of(ImmutableWitnessedTransaction.builder()
+                    .startTimestamp(startTimestampReference.get())
+                    .commitTimestamp(commitTimestamp)
+                    .actions(witnessedActionsReference.get())
+                    .build());
+        } catch (SafeIllegalArgumentException e) {
+            throw e;
+        } catch (Exception e) {
+            // TODO: Need to eventually handle PuE exceptions, as they could've succeeded in committing.
+            log.info("Failed to record transaction due to an exception", e);
+            return Optional.empty();
+        }
+    }
+
+    private TableReference getTableReferenceOrThrow(TransactionAction action) {
+        return getTableReferenceOrThrow(action.table());
+    }
+
+    private TableReference getTableReferenceOrThrow(String table) {
+        return Optional.ofNullable(tables.get(table))
+                .orElseThrow(() -> new SafeIllegalArgumentException(
+                        "Transaction action has unknown table.",
+                        SafeArg.of("readTransactionTableName", table),
+                        SafeArg.of("availableTables", tables)));
+    }
+
+    private class AtlasDbTransactionActionVisitor implements TransactionActionVisitor<WitnessedTransactionAction> {
+
+        private final Transaction transaction;
+
+        public AtlasDbTransactionActionVisitor(Transaction transaction) {
+            this.transaction = transaction;
+        }
+
+        @Override
+        public WitnessedTransactionAction visit(ReadTransactionAction readTransactionAction) {
+            Cell cell = AtlasDbUtils.toAtlasCell(readTransactionAction.cell());
+            TableReference tableReference = getTableReferenceOrThrow(readTransactionAction);
+            Map<Cell, byte[]> cells =
+                    transaction.get(tableReference, Set.of(AtlasDbUtils.toAtlasCell(readTransactionAction.cell())));
+            Optional<Integer> value = Optional.ofNullable(cells.get(cell)).map(Ints::fromByteArray);
+            return readTransactionAction.witness(value);
+        }
+
+        @Override
+        public WitnessedTransactionAction visit(WriteTransactionAction writeTransactionAction) {
+            TableReference tableReference = getTableReferenceOrThrow(writeTransactionAction);
+            transaction.put(
+                    tableReference,
+                    Map.of(
+                            AtlasDbUtils.toAtlasCell(writeTransactionAction.cell()),
+                            Ints.toByteArray(writeTransactionAction.value())));
+            return writeTransactionAction.witness();
+        }
+
+        @Override
+        public WitnessedTransactionAction visit(DeleteTransactionAction deleteTransactionAction) {
+            TableReference tableReference = getTableReferenceOrThrow(deleteTransactionAction);
+            transaction.delete(tableReference, Set.of(AtlasDbUtils.toAtlasCell(deleteTransactionAction.cell())));
+            return deleteTransactionAction.witness();
+        }
+    }
+
+    public static AtlasDbTransactionStore create(
+            TransactionManager transactionManager, Map<TableReference, byte[]> tables) {
+        transactionManager.getKeyValueService().createTables(tables);
+        Map<String, TableReference> tableMapping = EntryStream.of(tables)
+                .keys()
+                .mapToEntry(TableReference::getTableName, Function.identity())
+                .toMap();
+        return new AtlasDbTransactionStore(transactionManager, tableMapping);
+    }
+}u}(j$ (ad8416d0743b9f5983f668d3db1ef9529527a504jW% katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javajY% addedjQ% K*jR% K j[% K*j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+
+public enum WitnessToActionVisitor implements WitnessedTransactionActionVisitor<TransactionAction> {
+    INSTANCE;
+
+    @Override
+    public ReadTransactionAction visit(WitnessedReadTransactionAction readTransactionAction) {
+        return ImmutableReadTransactionAction.of(readTransactionAction.table(), readTransactionAction.cell());
+    }
+
+    @Override
+    public WriteTransactionAction visit(WitnessedWriteTransactionAction writeTransactionAction) {
+        return ImmutableWriteTransactionAction.of(
+                writeTransactionAction.table(), writeTransactionAction.cell(), writeTransactionAction.value());
+    }
+
+    @Override
+    public DeleteTransactionAction visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+        return ImmutableDeleteTransactionAction.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
+    }
+}u}(j$ (94a22213ba88f027c48e45b3f86cb7ffa7df963fjW% Zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/AtlasDbUtils.javajY% addedjQ% KGjR% K j[% KGj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X
  @@ -0,0 +1,71 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.util;
+
+import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.AtlasDbConstants;
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.NameMetadataDescription;
+import com.palantir.atlasdb.table.description.TableMetadata;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+
+public final class AtlasDbUtils {
+
+    private AtlasDbUtils() {}
+
+    public static Cell toAtlasCell(WorkloadCell cell) {
+        return Cell.create(Ints.toByteArray(cell.key()), Ints.toByteArray(cell.column()));
+    }
+
+    public static byte[] tableMetadata(ConflictHandler conflictHandler) {
+        return new TableMetadata.Builder()
+                .rowMetadata(new NameMetadataDescription())
+                .columns(new ColumnMetadataDescription())
+                .conflictHandler(conflictHandler)
+                .cachePriority(TableMetadataPersistence.CachePriority.WARM)
+                .rangeScanAllowed(true)
+                .explicitCompressionBlockSizeKB(AtlasDbConstants.DEFAULT_TABLE_COMPRESSION_BLOCK_SIZE_KB)
+                .negativeLookups(true)
+                .sweepStrategy(TableMetadataPersistence.SweepStrategy.THOROUGH)
+                .appendHeavyAndReadLight(false)
+                .nameLogSafety(TableMetadataPersistence.LogSafety.SAFE)
+                .build()
+                .persistToBytes();
+    }
+
+    public static byte[] indexMetadata(ConflictHandler baseTableConflictHandler) {
+        ConflictHandler conflictHandler = baseTableConflictHandler.checkReadWriteConflicts()
+                ? ConflictHandler.SERIALIZABLE_INDEX
+                : ConflictHandler.IGNORE_ALL;
+        return new TableMetadata.Builder()
+                .rowMetadata(new NameMetadataDescription())
+                .columns(new ColumnMetadataDescription())
+                .conflictHandler(conflictHandler)
+                .cachePriority(TableMetadataPersistence.CachePriority.WARM)
+                .rangeScanAllowed(true)
+                .explicitCompressionBlockSizeKB(AtlasDbConstants.DEFAULT_TABLE_COMPRESSION_BLOCK_SIZE_KB)
+                .negativeLookups(true)
+                .sweepStrategy(TableMetadataPersistence.SweepStrategy.THOROUGH)
+                .appendHeavyAndReadLight(false)
+                .nameLogSafety(TableMetadataPersistence.LogSafety.SAFE)
+                .build()
+                .persistToBytes();
+    }
+}u}(j$ (bb806a10f2718e20c843e1fcc9e9e0bffbfd51f2jW% jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javajY% addedjQ% KjR% K j[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -0,0 +1,157 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.KeyValueService;
+import com.palantir.atlasdb.keyvalue.api.Namespace;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.junit.Before;
+import org.junit.Test;
+
+public final class AtlasDbTransactionStoreTest {
+
+    private static final String TABLE = "foo";
+    private static final String INDEX_TABLE = TABLE + "_index";
+    private static final TableReference TABLE_REFERENCE = TableReference.create(Namespace.DEFAULT_NAMESPACE, TABLE);
+    private static final TableReference INDEX_REFERENCE =
+            TableReference.create(TABLE_REFERENCE.getNamespace(), INDEX_TABLE);
+
+    private static final WorkloadCell WORKLOAD_CELL_ONE =
+            ImmutableWorkloadCell.builder().key(50).column(10).build();
+    private static final WorkloadCell WORKLOAD_CELL_TWO =
+            ImmutableWorkloadCell.builder().key(1257).column(521).build();
+    private static final WorkloadCell WORKLOAD_CELL_THREE =
+            ImmutableWorkloadCell.builder().key(567).column(405234).build();
+
+    private static final Integer VALUE_ONE = 100;
+
+    private TransactionManager manager;
+
+    private AtlasDbTransactionStore store;
+
+    @Before
+    public void before() {
+        manager = TransactionManagers.createInMemory(Set.of());
+        store = AtlasDbTransactionStore.create(
+                manager,
+                Map.of(
+                        TABLE_REFERENCE,
+                        AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
+                        INDEX_REFERENCE,
+                        AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE)));
+    }
+
+    @Test
+    public void createsTables() {
+        assertThat(manager.getKeyValueService().getAllTableNames()).contains(TABLE_REFERENCE, INDEX_REFERENCE);
+    }
+
+    @Test
+    public void canWriteDataToStore() {
+        Optional<WitnessedTransaction> witnessedTransactionPrimaryTable =
+                store.readWrite(List.of(WriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE)));
+        Optional<WitnessedTransaction> witnessedTransactionIndexTable =
+                store.readWrite(List.of(WriteTransactionAction.of(INDEX_TABLE, WORKLOAD_CELL_TWO, VALUE_ONE)));
+        assertThat(witnessedTransactionPrimaryTable).isPresent();
+        assertThat(witnessedTransactionIndexTable).isPresent();
+        assertThat(store.get(TABLE, WORKLOAD_CELL_ONE)).contains(VALUE_ONE);
+        assertThat(store.get(INDEX_TABLE, WORKLOAD_CELL_TWO)).contains(VALUE_ONE);
+    }
+
+    @Test
+    public void witnessedTransactionMaintainsOrder() {
+        List<WitnessedTransactionAction> actions = List.of(
+                WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, 100),
+                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, Optional.of(100)),
+                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL_THREE, Optional.empty()),
+                WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, 24),
+                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, Optional.of(24)));
+        Optional<WitnessedTransaction> maybeTransaction = store.readWrite(actions.stream()
+                .map(action -> action.accept(WitnessToActionVisitor.INSTANCE))
+                .collect(Collectors.toList()));
+        assertThat(maybeTransaction).isPresent().hasValueSatisfying(txn -> {
+            assertThat(txn.actions()).containsExactlyElementsOf(actions);
+            assertThat(txn.commitTimestamp()).isNotEmpty();
+        });
+    }
+
+    @Test
+    public void readWriteHandlesAllTransactionTypes() {
+        store.readWrite(List.of(WriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE)));
+        assertThat(store.readWrite(List.of(ReadTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))))
+                .isPresent()
+                .map(WitnessedTransaction::actions)
+                .map(Iterables::getOnlyElement)
+                .map(WitnessedReadTransactionAction.class::cast)
+                .map(WitnessedReadTransactionAction::value)
+                .contains(Optional.of(VALUE_ONE));
+        store.readWrite(List.of(DeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE)));
+        assertThat(store.get(TABLE, WORKLOAD_CELL_ONE)).isEmpty();
+    }
+
+    @Test
+    public void readWriteThrowsWhenTableDoesNotExist() {
+        assertThatThrownBy(() -> store.readWrite(List.of(ReadTransactionAction.of("chocolate", WORKLOAD_CELL_ONE))))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Transaction action has unknown table.");
+    }
+
+    @Test
+    public void readWriteReturnsEmptyWhenExceptionThrown() {
+        TransactionManager transactionManager = mock(TransactionManager.class);
+        KeyValueService keyValueService = mock(KeyValueService.class);
+        when(transactionManager.getKeyValueService()).thenReturn(keyValueService);
+        when(transactionManager.runTaskWithRetry(any())).thenThrow(new RuntimeException());
+        AtlasDbTransactionStore transactionStore = AtlasDbTransactionStore.create(
+                transactionManager, Map.of(TABLE_REFERENCE, AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
+        assertThat(transactionStore.readWrite(List.of(ReadTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))))
+                .isEmpty();
+    }
+
+    @Test
+    public void readWriteHandlesReadOnlyTransaction() {
+        Optional<WitnessedTransaction> witnessedTransaction =
+                store.readWrite(List.of(ReadTransactionAction.of(TABLE, WORKLOAD_CELL_ONE)));
+        assertThat(witnessedTransaction).isPresent();
+        assertThat(witnessedTransaction.get().commitTimestamp()).isEmpty();
+    }
+}u}(j$ (39182042109aa67130bcfe8f623f893918091d21jW% oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitorTest.javajY% addedjQ% K=jR% K j[% K=j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X)  @@ -0,0 +1,61 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class WitnessToActionVisitorTest {
+
+    private static final String TABLE = "table";
+    private static final WorkloadCell WORKLOAD_CELL = ImmutableWorkloadCell.of(523, 2999);
+    private static final Integer VALUE = 912;
+
+    @Test
+    public void convertsReadsCorrectly() {
+        WitnessedReadTransactionAction witnessedRead =
+                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL, Optional.of(VALUE));
+        ReadTransactionAction read = WitnessToActionVisitor.INSTANCE.visit(witnessedRead);
+        assertThat(read.table()).isEqualTo(witnessedRead.table());
+        assertThat(read.cell()).isEqualTo(witnessedRead.cell());
+    }
+
+    @Test
+    public void convertsWritesCorrectly() {
+        WitnessedWriteTransactionAction witnessedWrite =
+                WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL, VALUE);
+        WriteTransactionAction write = WitnessToActionVisitor.INSTANCE.visit(witnessedWrite);
+        assertThat(write.table()).isEqualTo(witnessedWrite.table());
+        assertThat(write.cell()).isEqualTo(witnessedWrite.cell());
+        assertThat(write.value()).isEqualTo(witnessedWrite.value());
+    }
+
+    @Test
+    public void convertsDeletesCorrectly() {
+        WitnessedDeleteTransactionAction witnessedDelete = WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL);
+        DeleteTransactionAction delete = WitnessToActionVisitor.INSTANCE.visit(witnessedDelete);
+        assertThat(delete.table()).isEqualTo(witnessedDelete.table());
+        assertThat(delete.cell()).isEqualTo(witnessedDelete.cell());
+    }
+}uQ     }(j$ (8db656dee9725257a41e9732733bb4a82b172515jW% ^atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/util/AtlasDbUtilsTest.javajY% addedjQ% K.jR% K j[% K.j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtilsTest.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtilsTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtilsTest.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X8	  @@ -0,0 +1,46 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.util;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.protobuf.InvalidProtocolBufferException;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import org.junit.Test;
+
+public class AtlasDbUtilsTest {
+    @Test
+    public void indexMetadataUsesTheCorrectConflictHandler() throws InvalidProtocolBufferException {
+        assertThat(TableMetadataPersistence.TableMetadata.parseFrom(
+                                AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE))
+                        .getConflictHandler())
+                .isEqualTo(TableMetadataPersistence.TableConflictHandler.SERIALIZABLE_INDEX);
+        assertThat(TableMetadataPersistence.TableMetadata.parseFrom(
+                                AtlasDbUtils.indexMetadata(ConflictHandler.RETRY_ON_WRITE_WRITE))
+                        .getConflictHandler())
+                .isEqualTo(TableMetadataPersistence.TableConflictHandler.IGNORE_ALL);
+        assertThat(TableMetadataPersistence.TableMetadata.parseFrom(
+                                AtlasDbUtils.indexMetadata(ConflictHandler.IGNORE_ALL))
+                        .getConflictHandler())
+                .isEqualTo(TableMetadataPersistence.TableConflictHandler.IGNORE_ALL);
+        assertThat(TableMetadataPersistence.TableMetadata.parseFrom(
+                                AtlasDbUtils.indexMetadata(ConflictHandler.RETRY_ON_VALUE_CHANGED))
+                        .getConflictHandler())
+                .isEqualTo(TableMetadataPersistence.TableConflictHandler.IGNORE_ALL);
+    }
+}u}(j$ (146dba7b78cc5da09a06a376fb8644bcf689aff4jW% build.gradlejY% modifiedjQ% KjR% Kj[% Kj\% ^https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/build.gradlej^% ]https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/build.gradlej`% phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% XQ  @@ -8,19 +8,19 @@ buildscript {
 
     dependencies {
         classpath 'com.netflix.nebula:gradle-info-plugin:12.0.0'
-        classpath 'com.netflix.nebula:nebula-publishing-plugin:19.0.0'
-        classpath 'com.palantir.baseline:gradle-baseline-java:4.183.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.31.0'
-        classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.11.0'
+        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.0.0'
+        classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.33.0'
+        classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.11.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:0.15.0'
-        classpath 'com.palantir.gradle.jdks:gradle-jdks:0.27.0'
-        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.4.0'
+        classpath 'com.palantir.gradle.jdks:gradle-jdks:0.31.0'
+        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.19.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
-        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.1'
+        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
         classpath 'gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1'
         classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'u}(j$ (6cff572d628bcb61b1d874b4166885cec4224f51jW%  changelog/0.793.0/pr-6413.v2.ymljY% renamedjQ% K jR% K j[% K j\% vhttps://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/changelog%2F0.793.0%2Fpr-6413.v2.ymlj^% uhttps://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/changelog%2F0.793.0%2Fpr-6413.v2.ymlj`% https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.793.0%2Fpr-6413.v2.yml?ref=b162448980c8dcd4370c11a11e92f79762579b05jT' $changelog/@unreleased/pr-6413.v2.ymlu}(j$ (c06ad9434777c600984bf588195fc2534131ea6djW%  changelog/0.793.0/pr-6421.v2.ymljY% renamedjQ% K jR% K j[% K j\% vhttps://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/changelog%2F0.793.0%2Fpr-6421.v2.ymlj^% uhttps://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/changelog%2F0.793.0%2Fpr-6421.v2.ymlj`% https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.793.0%2Fpr-6421.v2.yml?ref=b162448980c8dcd4370c11a11e92f79762579b05jT' $changelog/@unreleased/pr-6421.v2.ymlu}(j$ (1fbf9a7fbfe71871247d31adbbb8d059dfd6f564jW%  changelog/0.793.0/pr-6424.v2.ymljY% renamedjQ% K jR% K j[% K j\% vhttps://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/changelog%2F0.793.0%2Fpr-6424.v2.ymlj^% uhttps://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/changelog%2F0.793.0%2Fpr-6424.v2.ymlj`% https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.793.0%2Fpr-6424.v2.yml?ref=b162448980c8dcd4370c11a11e92f79762579b05jT' $changelog/@unreleased/pr-6424.v2.ymlu}(j$ (a4ab87ae5dfe5ea58b87630aa98798d3cc44b375jW%  changelog/0.794.0/pr-6414.v2.ymljY% addedjQ% KjR% K j[% Kj\% vhttps://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/changelog%2F0.794.0%2Fpr-6414.v2.ymlj^% uhttps://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/changelog%2F0.794.0%2Fpr-6414.v2.ymlj`% https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.794.0%2Fpr-6414.v2.yml?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: SQLString skips cache lookup when not caching unregistered queries
+  links:
+  - https://github.com/palantir/atlasdb/pull/6414u}(j$ (246bf2aaf017b41cf71470bbec554cdb02271aecjW%  changelog/0.794.0/pr-6434.v2.ymljY% addedjQ% KjR% K j[% Kj\% vhttps://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/changelog%2F0.794.0%2Fpr-6434.v2.ymlj^% uhttps://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/changelog%2F0.794.0%2Fpr-6434.v2.ymlj`% https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.794.0%2Fpr-6434.v2.yml?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Delete unused timelock APIs for backup/restore
+  links:
+  - https://github.com/palantir/atlasdb/pull/6434u}(j$ (ea1fa587c4768a0296351fd45b459c4a91e80107jW%  changelog/0.796.0/pr-6438.v2.ymljY% addedjQ% KjR% K j[% Kj\% vhttps://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/changelog%2F0.796.0%2Fpr-6438.v2.ymlj^% uhttps://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/changelog%2F0.796.0%2Fpr-6438.v2.ymlj`% https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.796.0%2Fpr-6438.v2.yml?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Delete unused DisabledNamespaces code
+  links:
+  - https://github.com/palantir/atlasdb/pull/6438u}(j$ (3d051b2a7a9769a65aff9ede057049b8d004da65jW% Acommons-db/src/main/java/com/palantir/nexus/db/sql/SQLString.javajY% modifiedjQ% K)jR% K,j[% KUj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/commons-db%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fsql%2FSQLString.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/commons-db%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fsql%2FSQLString.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/commons-db%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fsql%2FSQLString.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -40,7 +40,9 @@
 @SuppressWarnings({"WeakerAccess", "BadAssert"}) // performance sensitive asserts
 public class SQLString extends BasicSQLString {
     private static final Pattern ALL_WORD_CHARS_REGEX = Pattern.compile("^[a-zA-Z_0-9\\.\\-]*$"); // $NON-NLS-1$
-    private static final String UNREGISTERED_SQL_COMMENT = "/* UnregisteredSQLString */";
+    private static final String UNREGISTERED_SQL_STRING = "UnregisteredSQLString"; // $NON-NLS-1$
+    private static final String UNREGISTERED_SQL_COMMENT =
+            "/* " + UNREGISTERED_SQL_STRING + " */"; // $NON-NLS-1$  // $NON-NLS-2$
 
     /**
      * Callers changing the value of cachedUnregistered and
@@ -49,24 +51,18 @@ public class SQLString extends BasicSQLString {
      * to be in sync with each other.
      */
     private static final Object cacheLock = new Object();
-    // TODO (DCohen): Combine cachedKeyed and cachedUnregistered maps into one.
-    /**
-     * Rewritten unregistered queries.
-     * Key: String with all whitespace removed
-     * Value: the new SQLString to run instead.
-     */
-    @GuardedBy("cacheLock")
-    private static volatile ImmutableMap<String, FinalSQLString> cachedUnregistered = ImmutableMap.of();
+
     /**
      * Rewritten registered queries.
      */
     @GuardedBy("cacheLock")
     private static volatile ImmutableMap<String, FinalSQLString> cachedKeyed = ImmutableMap.of();
+
     /**
      * All registered queries.
      */
-    protected static final ConcurrentMap<String, FinalSQLString> registeredValues =
-            new ConcurrentHashMap<String, FinalSQLString>();
+    protected static final ConcurrentMap<String, FinalSQLString> registeredValues = new ConcurrentHashMap<>();
+
     /**
      * DB-specific registered queries.
      */
@@ -140,7 +136,7 @@ public static RegisteredSQLString registerQuery(String key, String sql, DBType d
         }
 
         SQLString sqlString = new SQLString(key, sql, dbType);
-        ConcurrentMap<DBType, FinalSQLString> newHash = new ConcurrentHashMap<DBType, FinalSQLString>();
+        ConcurrentMap<DBType, FinalSQLString> newHash = new ConcurrentHashMap<>();
 
         ConcurrentMap<DBType, FinalSQLString> dbTypeHash = registeredValuesOverride.putIfAbsent(key, newHash);
         if (null == dbTypeHash) {
@@ -207,7 +203,7 @@ public static boolean isValidKey(final String key) {
 
     /**
      * A Factory used by the SQL class to turn a string sql query into an SQLString object.
-     * This may just contain the sql given, or the given SQL may be overriden in the database and the object returned
+     * This may just contain the sql given, or the given SQL may be overridden in the database and the object returned
      * will reflect that new SQL from the DB.
      *
      * @param sql The string to be used in a query
@@ -216,12 +212,6 @@ public static boolean isValidKey(final String key) {
     @SuppressWarnings("GuardedByChecker")
     static FinalSQLString getUnregisteredQuery(String sql) {
         assert !isValidKey(sql) : "Unregistered Queries should not look like keys"; // $NON-NLS-1$
-        FinalSQLString cached = cachedUnregistered.get(canonicalizeStringAndRemoveWhitespaceEntirely(sql));
-        if (null != cached) {
-            callbackOnUse.noteUse((SQLString) cached.delegate);
-            return cached;
-        }
-
         return new FinalSQLString(new SQLString(sql));
     }
 
@@ -231,7 +221,7 @@ static FinalSQLString getUnregisteredQuery(String sql) {
      * @param sql The string to be used in a query
      */
     private SQLString(String sql) {
-        super(null, makeCommentString(null, null) + sql);
+        super(null, unregisteredSql(sql));
     }
 
     /**
@@ -242,27 +232,29 @@ private SQLString(String sql) {
      * @param dbType This is only used in making the SQL comment
      */
     protected SQLString(String key, String sql, DBType dbType) {
-        super(key, makeCommentString(key, dbType) + sql);
+        super(key, prependPrefix(key, dbType, sql));
     }
 
     /**
-     * Creates an appropriate comment string for the beginning of a SQL statement.
-     *
+     * Creates a SQL string prepended with a comment indicating the registration and DB type.
      * @param keyString Identifier for the SQL; will be null if the SQL is unregistered
      * @param dbType    The database type
+     * @param sql       The SQL to append
+     * @return string with comment prepended
      */
-    private static String makeCommentString(String keyString, DBType dbType) {
-        String registrationState;
-        if (keyString != null) {
-            registrationState = "SQLString Identifier: " + keyString; // $NON-NLS-1$
-        } else {
-            registrationState = "UnregisteredSQLString"; // $NON-NLS-1$
-        }
-        String dbTypeString = ""; // $NON-NLS-1$
-        if (dbType != null) {
-            dbTypeString = " dbType: " + dbType; // $NON-NLS-1$
+    @VisibleForTesting
+    static String prependPrefix(String keyString, DBType dbType, String sql) {
+        if (keyString == null && dbType == null) {
+            return unregisteredSql(sql);
         }
-        return "/* " + registrationState + dbTypeString + " */ "; // $NON-NLS-1$ //$NON-NLS-2$
+        return "/* " // $NON-NLS-1$
+                + (keyString == null ? UNREGISTERED_SQL_STRING : "SQLString Identifier: " + keyString) // $NON-NLS-1$
+                + (dbType == null ? "" : " dbType: " + dbType) // $NON-NLS-1$
+                + " */ " + sql; // $NON-NLS-1$
+    }
+
+    private static String unregisteredSql(String sql) {
+        return UNREGISTERED_SQL_COMMENT + ' ' + sql;
     }
 
     @VisibleForTesting
@@ -356,18 +348,18 @@ public String getQuery() {
     public static void registerQueryVariants(
             String baseKey, Map<Set<String>, String> map, String sqlFormat, DBType type, List<SqlClause> clauses) {
         Validate.noNullElements(clauses);
-        Set<Integer> indexes = new HashSet<Integer>();
+        Set<Integer> indexes = new HashSet<>();
         for (int i = 0; i < clauses.size(); i++) {
             indexes.add(i);
         }
 
         Set<Set<Integer>> variants = Sets.powerSet(indexes);
         for (Set<Integer> variantSet : variants) {
-            List<Integer> variant = new ArrayList<Integer>(variantSet);
+            List<Integer> variant = new ArrayList<>(variantSet);
             Collections.sort(variant);
             StringBuilder key = new StringBuilder(baseKey);
             StringBuilder whereClause = new StringBuilder();
-            Set<String> keySet = new HashSet<String>();
+            Set<String> keySet = new HashSet<>();
             for (int i : variant) {
                 SqlClause clause = clauses.get(i);
                 keySet.add(clause.getKey());
@@ -415,16 +407,21 @@ public static RegisteredSQLString getRegisteredQueryByKey(FinalSQLString key) {
         return new RegisteredSQLString(key.delegate);
     }
 
-    @SuppressWarnings("GuardedByChecker")
+    /**
+     * Returns an empty map.
+     * @deprecated No longer performs any work.
+     */
+    @Deprecated
     protected static ImmutableMap<String, FinalSQLString> getCachedUnregistered() {
-        return cachedUnregistered;
+        return ImmutableMap.of();
     }
 
-    protected static void setCachedUnregistered(ImmutableMap<String, FinalSQLString> cachedUnregistered) {
-        synchronized (cacheLock) {
-            SQLString.cachedUnregistered = cachedUnregistered;
-        }
-    }
+    /**
+     * No-op.
+     * @deprecated No longer performs any work.
+     */
+    @Deprecated
+    protected static void setCachedUnregistered(ImmutableMap<String, FinalSQLString> _cachedUnregistered) {}
 
     @SuppressWarnings("GuardedByChecker")
     protected static ImmutableMap<String, FinalSQLString> getCachedKeyed() {u}(j$ (22bc2adc925a47cb7540211535227b8423668852jW% Ecommons-db/src/test/java/com/palantir/nexus/db/sql/SQLStringTest.javajY% modifiedjQ% K0jR% K j[% K0j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/commons-db%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fsql%2FSQLStringTest.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/commons-db%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fsql%2FSQLStringTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/commons-db%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fsql%2FSQLStringTest.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -18,6 +18,7 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.google.common.collect.ImmutableList;
+import com.palantir.nexus.db.DBType;
 import java.util.List;
 import org.junit.Test;
 
@@ -69,4 +70,51 @@ public void testCanonicalizeBlanks() throws Exception {
         List<String> testBatch = ImmutableList.of("", " ", " ;; ; ");
         testBatch.forEach(sql -> assertThat(SQLString.canonicalizeString(sql)).isEmpty());
     }
+
+    @Test
+    public void testMakeCommentString() {
+        String sql = "SELECT 1 FROM dual";
+        assertThat(SQLString.prependPrefix(null, null, sql))
+                .isEqualTo("/* UnregisteredSQLString */ SELECT 1 FROM dual");
+        assertThat(SQLString.prependPrefix(null, DBType.POSTGRESQL, sql))
+                .isEqualTo("/* UnregisteredSQLString dbType: POSTGRESQL */ SELECT 1 FROM dual");
+        assertThat(SQLString.prependPrefix(null, DBType.ORACLE, sql))
+                .isEqualTo("/* UnregisteredSQLString dbType: ORACLE */ SELECT 1 FROM dual");
+        assertThat(SQLString.prependPrefix("test", DBType.POSTGRESQL, sql))
+                .isEqualTo("/* SQLString Identifier: test dbType: POSTGRESQL */ SELECT 1 FROM dual");
+        assertThat(SQLString.prependPrefix("test", DBType.ORACLE, sql))
+                .isEqualTo("/* SQLString Identifier: test dbType: ORACLE */ SELECT 1 FROM dual");
+    }
+
+    @Test
+    public void createUnregistered() {
+        String sql = "SELECT 1 FROM dual";
+        assertThat(SQLString.getUnregisteredQuery(sql)).isNotNull().satisfies(unregisteredQuery -> {
+            assertThat(unregisteredQuery.getKey()).isNull();
+            assertThat(unregisteredQuery.getQuery()).isEqualTo("/* UnregisteredSQLString */ SELECT 1 FROM dual");
+        });
+        assertThat(new SQLString(null, sql, null)).satisfies(sqlString -> {
+            assertThat(sqlString.getKey()).isNull();
+            assertThat(sqlString.getQuery()).isEqualTo("/* UnregisteredSQLString */ SELECT 1 FROM dual");
+        });
+        assertThat(new SQLString(null, sql, DBType.POSTGRESQL)).satisfies(sqlString -> {
+            assertThat(sqlString.getKey()).isNull();
+            assertThat(sqlString.getQuery())
+                    .isEqualTo("/* UnregisteredSQLString dbType: POSTGRESQL */ SELECT 1 FROM dual");
+        });
+    }
+
+    @Test
+    public void createRegistered() {
+        String sql = "SELECT 1 from dual";
+        assertThat(new SQLString("testKey", sql, null)).satisfies(sqlString -> {
+            assertThat(sqlString.getKey()).isEqualTo("testKey");
+            assertThat(sqlString.getQuery()).isEqualTo("/* SQLString Identifier: testKey */ SELECT 1 from dual");
+        });
+        assertThat(new SQLString("testKey", sql, DBType.POSTGRESQL)).satisfies(sqlString -> {
+            assertThat(sqlString.getKey()).isEqualTo("testKey");
+            assertThat(sqlString.getQuery())
+                    .isEqualTo("/* SQLString Identifier: testKey dbType: POSTGRESQL */ SELECT 1 from dual");
+        });
+    }
 }u}(j$ (76c65bc32824f40e853948c6d29256a05ace9dccjW% Sdocs/source/miscellaneous/doc/adr/0018-allow-for-value-caching-with-lock-watches.mdjY% addedjQ% KjR% K j[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/docs%2Fsource%2Fmiscellaneous%2Fdoc%2Fadr%2F0018-allow-for-value-caching-with-lock-watches.mdj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/docs%2Fsource%2Fmiscellaneous%2Fdoc%2Fadr%2F0018-allow-for-value-caching-with-lock-watches.mdj`% https://api.github.com/repos/palantir/atlasdb/contents/docs%2Fsource%2Fmiscellaneous%2Fdoc%2Fadr%2F0018-allow-for-value-caching-with-lock-watches.md?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X(  @@ -0,0 +1,193 @@
+18. Allow for value caching with Lock Watches
+*********************************************
+
+Date: 16/12/2022
+
+## Status
+
+Accepted
+
+## Context
+
+### Caching
+
+Caching values is a useful optimisation that systems can employ to reduce request latency, as instead of repeating the
+computation to load the value (which can require database reads, remote procedure calls and/or complex logic), a read 
+can be performed to return the result from memory.
+
+However, from a correctness perspective caching is only sound as far as we are able to *invalidate* values from our 
+cache that may no longer be accurate. This is in the general case difficult in a distributed system, since our cache
+needs to be resilient to writes performed by another service node.
+
+### Locking in AtlasDB
+
+Transactional writes in AtlasDB take out TimeLock locks before anything is persisted to the KVS, and unlock the locks 
+when the transaction completes -- either successfully, by committing; or unsuccessfully. The exact type of lock 
+guarding a cell in this way depends on the table’s conflict handler.  Unless a table has no conflict handling 
+(IGNORE_ALL), the locks taken out will be row level locks or cell level locks.
+
+As a consequence, if we can guarantee that no locks guarding a cell `C` were taken out since the last time the cell was
+read, we can use the cached value from the last read as no transaction could have written to `C` since then.
+
+The idea behind lock watches is to provide a TimeLock server API for specifying interesting locks to be monitored 
+(registering lock watches) and getting the information about the last time they were taken out (since this can be used
+to cache values).
+
+#### Construction of Lock Descriptors
+
+By the time a lock descriptor reaches TimeLock, it is generally a binary string. The way this is generated varies
+depending on whether the locks are row level or cell level.
+
+Row level lock descriptors are of the form `tableName || 0 || rowName` and cell level descriptors of the form 
+`tableName || 0 || rowName || 0 || columnName`, where the `||` operator denotes concatenation and `0` is a
+zero byte. Table names should not contain the zero byte, but there are no such restrictions on row names (e.g.
+these can have type `BLOB`), so while a row level lock descriptor is unique, a cell level descriptor is not. Also,
+given a lock descriptor it may not always be possible to determine what type of descriptor it is.
+For example, the lock descriptor `0x61006200630064` could be any of:
+
+- a row lock descriptor for row `b[null]c[null]d` for the table `a`,
+- a cell lock descriptor for row `b` and column `c[null]d` for the table `a`, and
+- a cell lock descriptor for row `b[null]c` and column `d` for the table `a`.
+
+## Decision
+
+### Criteria
+
+A good solution to this problem should demonstrate the following characteristics:
+
+- *Correctness*: Lock watches must accurately report all lock and unlock events for lock descriptors that are being
+  watched, under all circumstances.
+- *Minimal noise*: Lock watches may report lock and unlock events for lock descriptors that are not being watched, but
+  this should be kept to a minimum.
+- *Independence to wall-clock time*: AtlasDB operates under the assumption that wall-clock time is not to be relied on,
+  and this should not be changed by Lock Watches.
+- *No excessive performance overhead on critical path operations*: Lock refreshes, transaction starts or transaction 
+  commits should not exhibit large performance regressions. (We do not expect to encounter performance regressions on 
+  locks and unlocks, but we don't value that as much as these are generally not critical path operations.)
+
+### Implementation: TimeLock Server
+
+#### Registering Interest
+
+```yaml
+  ConjureLockWatchingService:
+    name: Lock Watching service
+    default-auth: header
+    package: com.palantir.atlasdb.timelock.lock.watch
+    base-path: /lw
+    endpoints:
+      startWatching:
+        http: POST /sw/{namespace}
+        args:
+          namespace:
+            type: string
+            safety: safe
+          request: LockWatchRequest
+```
+
+A `LockWatchRequest` wraps a set of `LockWatchReference`s, which indicate to TimeLock what kinds of locks this
+client wants to watch. Currently, only two types are supported: *full table* lock watches and *exact row match* lock
+watches; the former is generally exposed to users while the latter is currently not.
+
+We currently only expose full table lock watches to users because these are in many cases sufficient, and are also less
+prone to error; for various reasons, lock watches work effectively for cells that are not updated frequently, but are
+extremely sensitive to an accidental inclusion of a cell that is, and exposing a more complex and expressive API would
+allow users to shoot themselves in the foot easily: for example, if a user was to enable lock watches on a row prefix 
+`foo` without realising that a specific row with this prefix, say `food`, was actually updated very frequently, this
+would cause _all_ Lock Watch caching to become much less effective.
+
+#### Lock Event Log
+
+The TimeLock leader maintains a `LockEventLog` for each namespace on the server side. The purpose of this event log is
+to be able to answer user queries on what the state of the locks that are watched might be.
+
+```java
+@Value.Immutable
+public interface LockWatchVersion {
+  UUID id();
+  long version();
+}
+
+public interface LockEventLog {
+  LockWatchStateUpdate getLogDiff(Optional<LockWatchVersion> fromVersion);
+}
+```
+
+A `LockWatchStateUpdate` is a union type that is either a `Success` indicating events that happened since the last known
+version up to some fixed sequence number, or a `Snapshot` indicating the state of the world (as far as watched locks are
+concerned) and its sequence number.
+
+The implementation internally tracks a bit more state to facilitate updates, including:
+
+- a UUID which identifies this lock event log,
+- a ring buffer tracking the 1,000 most recent `LockEvent`s,
+- a long indicating what the sequence number of the next event should be, and
+- a reference to the `HeldLocksCollection`, mainly for taking snapshots.
+
+The UUID is generated on the creation of the event log, and is used to ensure that clients know that the state of the
+log needs to be completely invalidated after each leader election (in particular, even in the edge case where a node
+loses and regains leadership; since all lock state is cleared).
+
+As lock and unlock are called, TimeLock will evaluate the relevant lock descriptor against the set of registered lock 
+watches. If there is a match, timelock will enqueue a `LockEvent` indicating that a given descriptor was locked or 
+unlocked into the ring buffer before returning. This is done synchronously.
+
+User queries to `getLogDiff` must then consider the provided `fromVersion` argument: if this is 
+- absent, or 
+- from a different log, as determined by the UUID not matching, or
+- too far (more than 1,000 events) behind
+
+we use the `HeldLocksCollection` to give the user a snapshot of the world (that is, the version, the set of
+active lock watches, and the set of lock descriptors corresponding to locks that had already been taken out that are
+also matching the lock watches). Otherwise, the relevant part of the ring buffer is served to users.
+
+#### Creation Events
+
+We implement registration of a new lock watch as being another event in the log. Recall our definitions of correctness
+and minimal noise: it is costly to synchronise all matching lock and unlock requests when a lock watch is being
+created, and we don't make or need those guarantees. It suffices to first add the lock watch to the set of tracked lock
+watches (so that new lock/unlock requests evaluate themselves against it), then look at currently open locks and add
+lock/unlock events so clients are aware of the open locks, *then* add a LockWatchCreated event to the log.
+
+We haven't implemented deregistration, though this is conceptually simpler: the client needs to flush everything that it
+has cached, but that's about it.
+
+#### Starting Transactions
+
+TimeLock provides an API through which Atlas clients start transactions. The Atlas client will track the last version
+it knows about and provides this as part of the request body. That said, starting an AtlasDB transaction requires
+TimeLock to do multiple things, and we need to be careful about ordering. Starting a batch of transactions requires
+
+- Locking the immutable timestamp.
+- Getting fresh timestamps, which will be the start timestamp of the transactions.
+- Providing the correct `LockWatchStateUpdate` to the client, based on a `lastKnownVersion` they provide in the 
+  `StartTransactionRequest`.
+
+The update we return need not be entirely up to date, but we must ensure that information about all lock requests 
+completed before this request started has already been included in the log returned to the user. So we take out the
+start timestamps before looking at the lock log - there could be more events that occurred in the interim that we
+didn't see, but that's allowed. Consider that any lock event happening in parallel must relate to a transaction that
+has already started and run its transaction task, but by definition of the Atlas transaction protocol has not got its
+commit timestamp yet. Since we had already taken out our start timestamp, we know that our start timestamp must be less
+than the other transaction's commit timestamp, and so we cannot see their write so it doesn't matter to us.
+
+### Implementation: AtlasDB
+
+#### Requirements
+
+We need AtlasDB to track where we are in terms of events we know about (so our `lastKnownVersion`). We also
+need to ensure that transactions are able to read transactionally from the cache; in particular, if an older transaction
+runs for some time, and we have subsequent transactions which write and read a watched cell, the old transaction should
+not have to invalidate values it reads from that cell.
+
+AtlasDB also needs to expose schema configuration points to allow users to specify that they want caching on some of
+their tables, and based on that also needs to actually register the watches with TimeLock.
+
+#### Starting a Transaction
+TODO
+
+## Deployment and Testing
+TODO
+
+## Consequences
+TODOu}(j$ (943f0cbfa754578e88a3dae77fce6e3dea56edbfjW% !gradle/wrapper/gradle-wrapper.jarjY% modifiedjQ% K jR% K j[% K j\% whttps://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/gradle%2Fwrapper%2Fgradle-wrapper.jarj^% vhttps://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/gradle%2Fwrapper%2Fgradle-wrapper.jarj`% https://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fwrapper%2Fgradle-wrapper.jar?ref=b162448980c8dcd4370c11a11e92f79762579b05u}(j$ (f398c33c4b08dabb3f1275e57706c2de4effb50cjW% (gradle/wrapper/gradle-wrapper.propertiesjY% modifiedjQ% KjR% Kj[% Kj\% ~https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/gradle%2Fwrapper%2Fgradle-wrapper.propertiesj^% }https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/gradle%2Fwrapper%2Fgradle-wrapper.propertiesj`% https://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fwrapper%2Fgradle-wrapper.properties?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% XC  @@ -1,5 +1,6 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
+networkTimeout=10000
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/distsu}(j$ (65dcd68d65c82f2a5338fded4af852f9caf93b93jW% gradlewjY% modifiedjQ% KjR% Kj[% Kj\% Yhttps://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/gradlewj^% Xhttps://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/gradlewj`% khttps://api.github.com/repos/palantir/atlasdb/contents/gradlew?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X@  @@ -55,7 +55,7 @@
 #       Darwin, MinGW, and NonStop.
 #
 #   (3) This script is generated from the Groovy template
-#       https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+#       https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
 #       within the Gradle project.
 #
 #       You can find Gradle at https://github.com/gradle/gradle/.
@@ -80,10 +80,10 @@ do
     esac
 done
 
-APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
-
-APP_NAME="Gradle"
+# This is normally unused
+# shellcheck disable=SC2034
 APP_BASE_NAME=${0##*/}
+APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
 
 # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
 DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
@@ -143,12 +143,16 @@ fi
 if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
     case $MAX_FD in #(
       max*)
+        # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
+        # shellcheck disable=SC3045 
         MAX_FD=$( ulimit -H -n ) ||
             warn "Could not query maximum file descriptor limit"
     esac
     case $MAX_FD in  #(
       '' | soft) :;; #(
       *)
+        # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
+        # shellcheck disable=SC3045 
         ulimit -n "$MAX_FD" ||
             warn "Could not set maximum file descriptor limit to $MAX_FD"
     esacu}(j$ (6689b85beecde676054c39c2408085f41e6be6dcjW% gradlew.batjY% modifiedjQ% KjR% K j[% Kj\% ]https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/gradlew.batj^% \https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/gradlew.batj`% ohttps://api.github.com/repos/palantir/atlasdb/contents/gradlew.bat?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% @@ -26,6 +26,7 @@ if "%OS%"=="Windows_NT" setlocal
 
 set DIRNAME=%~dp0
 if "%DIRNAME%"=="" set DIRNAME=.
+@rem This is normally unused
 set APP_BASE_NAME=%~n0
 set APP_HOME=%DIRNAME%
 
u}(j$ (92c59ccaa1b381adf8c0b108e9e0df0100ef7adbjW% settings.gradlejY% modifiedjQ% KjR% Kj[% Kj\% ahttps://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/settings.gradlej^% `https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/settings.gradlej`% shttps://api.github.com/repos/palantir/atlasdb/contents/settings.gradle?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X)  @@ -1,7 +1,6 @@
 rootProject.name = 'atlasdb'
 include ":atlasdb-api"
 include ":atlasdb-autobatch"
-include ":atlasdb-backup"
 include ":atlasdb-cassandra"
 include ":atlasdb-cassandra-integration-tests"
 include ":atlasdb-cassandra-multinode-tests"
@@ -30,6 +29,8 @@ include ":atlasdb-processors-tests"
 include ":atlasdb-remoting-api"
 include ":atlasdb-service"
 include ":atlasdb-tests-shared"
+include ":atlasdb-workload-server"
+include ":atlasdb-workload-server-api"
 include ":commons-annotations"
 include ":commons-api"
 include ":commons-db"u}(j$ (872e595752d7295d73f065d96bc42406800e08a1jW% stimelock-agent/src/main/java/com/palantir/atlasdb/timelock/management/AllNodesDisabledNamespacesUpdaterFactory.javajY% removedjQ% K jR% K>j[% K>j\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FAllNodesDisabledNamespacesUpdaterFactory.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FAllNodesDisabledNamespacesUpdaterFactory.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FAllNodesDisabledNamespacesUpdaterFactory.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,62 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.timelock.management;
-
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableMap;
-import com.palantir.atlasdb.timelock.TimelockNamespaces;
-import com.palantir.atlasdb.timelock.api.DisabledNamespacesUpdaterService;
-import com.palantir.atlasdb.timelock.paxos.ImmutablePaxosRemoteClients;
-import com.palantir.atlasdb.timelock.paxos.PaxosRemoteClients;
-import com.palantir.atlasdb.timelock.paxos.PaxosResourcesFactory.TimelockPaxosInstallationContext;
-import com.palantir.atlasdb.timelock.paxos.WithDedicatedExecutor;
-import com.palantir.atlasdb.util.MetricsManager;
-import com.palantir.common.concurrent.CheckedRejectionExecutorService;
-import com.palantir.common.streams.KeyedStream;
-import java.util.List;
-import java.util.Map;
-import java.util.stream.Collectors;
-
-public final class AllNodesDisabledNamespacesUpdaterFactory {
-    private final TimelockPaxosInstallationContext install;
-    private final MetricsManager metricsManager;
-
-    public AllNodesDisabledNamespacesUpdaterFactory(
-            TimelockPaxosInstallationContext install, MetricsManager metricsManager) {
-        this.install = install;
-        this.metricsManager = metricsManager;
-    }
-
-    public AllNodesDisabledNamespacesUpdater create(TimelockNamespaces localNamespaces) {
-        PaxosRemoteClients remoteClients = ImmutablePaxosRemoteClients.of(install, metricsManager);
-
-        List<WithDedicatedExecutor<DisabledNamespacesUpdaterService>> remoteUpdaters = remoteClients.updaters();
-
-        Map<DisabledNamespacesUpdaterService, CheckedRejectionExecutorService> remoteExecutors =
-                ImmutableMap.<DisabledNamespacesUpdaterService, CheckedRejectionExecutorService>builder()
-                        .putAll(KeyedStream.of(remoteUpdaters)
-                                .mapKeys(WithDedicatedExecutor::service)
-                                .map(WithDedicatedExecutor::executor)
-                                .collectToMap())
-                        .buildOrThrow();
-
-        ImmutableList<DisabledNamespacesUpdaterService> remoteServices = ImmutableList.copyOf(
-                remoteUpdaters.stream().map(WithDedicatedExecutor::service).collect(Collectors.toList()));
-
-        return AllNodesDisabledNamespacesUpdater.create(remoteServices, remoteExecutors, localNamespaces);
-    }
-}u}(j$ (117bf7c2693bed894826f7bda48d14d5c5665dbdjW% Xtimelock-agent/src/main/java/com/palantir/atlasdb/timelock/paxos/PaxosRemoteClients.javajY% modifiedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosRemoteClients.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosRemoteClients.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosRemoteClients.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -19,7 +19,6 @@
 import com.google.common.collect.ImmutableMap;
 import com.google.common.net.HostAndPort;
 import com.palantir.atlasdb.AtlasDbMetricNames;
-import com.palantir.atlasdb.timelock.api.DisabledNamespacesUpdaterService;
 import com.palantir.atlasdb.util.AtlasDbMetrics;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.concurrent.CheckedRejectionExecutorService;
@@ -122,12 +121,6 @@ public List<WithDedicatedExecutor<BatchPaxosLearnerRpcClient>> batchLearner() {
         return createInstrumentedRemoteProxiesAndAssignDedicatedPaxosExecutors(BatchPaxosLearnerRpcClient.class, true);
     }
 
-    @Value.Derived
-    public List<WithDedicatedExecutor<DisabledNamespacesUpdaterService>> updaters() {
-        return createInstrumentedRemoteProxiesAndAssignDedicatedPaxosExecutors(
-                DisabledNamespacesUpdaterService.class, true);
-    }
-
     @Value.Derived
     public List<PingableLeader> nonBatchPingableLeaders() {
         return nonBatchPingableLeadersWithContext().stream()u}(j$ (b46e4667af81ab5bf1737624476504dbcb5c6a27jW% etimelock-agent/src/main/java/com/palantir/timelock/config/RestrictedTimeLockRuntimeConfiguration.javajY% modifiedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X{  @@ -16,7 +16,6 @@
 
 package com.palantir.timelock.config;
 
-import com.palantir.tokens.auth.BearerToken;
 import java.util.Optional;
 
 public class RestrictedTimeLockRuntimeConfiguration extends TimeLockRuntimeConfiguration {
@@ -31,11 +30,6 @@ public PaxosRuntimeConfiguration paxos() {
         return runtime.paxos();
     }
 
-    @Override
-    public Optional<BearerToken> permittedBackupToken() {
-        return runtime.permittedBackupToken();
-    }
-
     @Override
     public ClusterConfiguration clusterSnapshot() {
         throw new UnsupportedOperationException("Cannot access live-reloaded cluster configuration!");u}(j$ (d006c904d7ea30dbfab898c2a524109da975662cjW% [timelock-agent/src/main/java/com/palantir/timelock/config/TimeLockRuntimeConfiguration.javajY% modifiedjQ% KjR% Kj[% K	j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -21,7 +21,6 @@
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.google.common.base.Preconditions;
 import com.palantir.logsafe.DoNotLog;
-import com.palantir.tokens.auth.BearerToken;
 import java.util.Optional;
 import org.immutables.value.Value;
 
@@ -34,20 +33,14 @@
 @JsonDeserialize(as = ImmutableTimeLockRuntimeConfiguration.class)
 @JsonSerialize(as = ImmutableTimeLockRuntimeConfiguration.class)
 @Value.Immutable
-@JsonIgnoreProperties({"targeted-sweep-locks", "test-only-lock-watches"})
+@JsonIgnoreProperties({"targeted-sweep-locks", "test-only-lock-watches", "permitted-backup-token"})
 public abstract class TimeLockRuntimeConfiguration {
 
     @Value.Default
     public PaxosRuntimeConfiguration paxos() {
         return ImmutablePaxosRuntimeConfiguration.builder().build();
     }
 
-    /**
-     *  The token required by other services to use backup and restore-related endpoints.
-     */
-    @JsonProperty("permitted-backup-token")
-    public abstract Optional<BearerToken> permittedBackupToken();
-
     /**
      * As of now, TimeLock is not equipped to handle live-changes in the cluster configuration. For this reason,
      * TimeLock must be initialized with a snapshot of the clusterConfiguration which is not live-reloaded instead ofu}(j$ (346555c3c763a3f2474f458232ba4d2153e4ede5jW% Ktimelock-agent/src/main/java/com/palantir/timelock/paxos/TimeLockAgent.javajY% modifiedjQ% KjR% K1j[% K2j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X$  @@ -24,9 +24,6 @@
 import com.google.common.base.Suppliers;
 import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.backup.AtlasBackupResource;
-import com.palantir.atlasdb.backup.AtlasRestoreResource;
-import com.palantir.atlasdb.backup.AuthHeaderValidator;
 import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
 import com.palantir.atlasdb.config.ImmutableLeaderConfig;
 import com.palantir.atlasdb.config.ImmutableServerListConfig;
@@ -38,7 +35,6 @@
 import com.palantir.atlasdb.http.RedirectRetryTargeter;
 import com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.timelock.AsyncTimelockService;
-import com.palantir.atlasdb.timelock.BackupTimeLockServiceView;
 import com.palantir.atlasdb.timelock.ConjureLockWatchingResource;
 import com.palantir.atlasdb.timelock.ConjureTimelockResource;
 import com.palantir.atlasdb.timelock.TimeLockResource;
@@ -52,10 +48,6 @@
 import com.palantir.atlasdb.timelock.batch.MultiClientConjureTimelockResource;
 import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.atlasdb.timelock.lock.v1.ConjureLockV1Resource;
-import com.palantir.atlasdb.timelock.management.AllNodesDisabledNamespacesUpdater;
-import com.palantir.atlasdb.timelock.management.AllNodesDisabledNamespacesUpdaterFactory;
-import com.palantir.atlasdb.timelock.management.DisabledNamespaces;
-import com.palantir.atlasdb.timelock.management.DisabledNamespacesUpdaterResource;
 import com.palantir.atlasdb.timelock.management.PersistentNamespaceContexts;
 import com.palantir.atlasdb.timelock.management.ServiceLifecycleController;
 import com.palantir.atlasdb.timelock.management.TimeLockManagementResource;
@@ -100,7 +92,6 @@
 import com.palantir.timelock.store.PersistenceConfigStore;
 import com.palantir.timelock.store.SqliteBlobStore;
 import com.palantir.timestamp.ManagedTimestampService;
-import com.palantir.tokens.auth.BearerToken;
 import com.zaxxer.hikari.HikariDataSource;
 import java.net.URL;
 import java.nio.file.Path;
@@ -129,7 +120,6 @@ public class TimeLockAgent {
     private final TimeLockServicesCreator timelockCreator;
     private final NoSimultaneousServiceCheck noSimultaneousServiceCheck;
     private final PersistedSchemaVersion persistedSchemaVersion;
-    private final AllNodesDisabledNamespacesUpdaterFactory updaterFactory;
     private final HikariDataSource sqliteDataSource;
     private final FeedbackHandler feedbackHandler;
     private final LeaderElectionMetricAggregator leaderElectionAggregator;
@@ -183,9 +173,6 @@ public static TimeLockAgent create(
                 metricsManager,
                 Suppliers.compose(TimeLockRuntimeConfiguration::paxos, restrictedRuntime::get));
 
-        AllNodesDisabledNamespacesUpdaterFactory updaterFactory =
-                new AllNodesDisabledNamespacesUpdaterFactory(installationContext, metricsManager);
-
         TimeLockAgent agent = new TimeLockAgent(
                 metricsManager,
                 install,
@@ -196,7 +183,6 @@ public static TimeLockAgent create(
                 blockingTimeoutMs,
                 registrar,
                 paxosResources,
-                updaterFactory,
                 userAgent,
                 persistedSchemaVersion,
                 installationContext.sqliteDataSource(),
@@ -242,7 +228,6 @@ private TimeLockAgent(
             long blockingTimeoutMs,
             Consumer<Object> registrar,
             PaxosResources paxosResources,
-            AllNodesDisabledNamespacesUpdaterFactory updaterFactory,
             UserAgent userAgent,
             PersistedSchemaVersion persistedSchemaVersion,
             HikariDataSource sqliteDataSource,
@@ -254,7 +239,6 @@ private TimeLockAgent(
         this.undertowRegistrar = undertowRegistrar;
         this.registrar = registrar;
         this.paxosResources = paxosResources;
-        this.updaterFactory = updaterFactory;
         this.sqliteDataSource = sqliteDataSource;
         this.serviceStopper = serviceStopper;
         this.lockCreator = new LockCreator(runtime, threadPoolSize, blockingTimeoutMs);
@@ -338,8 +322,7 @@ private void createAndRegisterResources() {
         namespaces = new TimelockNamespaces(
                 metricsManager,
                 this::createInvalidatingTimeLockServices,
-                Suppliers.compose(TimeLockRuntimeConfiguration::maxNumberOfClients, runtime::get),
-                DisabledNamespaces.create(sqliteDataSource));
+                Suppliers.compose(TimeLockRuntimeConfiguration::maxNumberOfClients, runtime::get));
 
         registerManagementResource();
         // Finally, register the health check, and endpoints associated with the clients.
@@ -352,10 +335,7 @@ private void createAndRegisterResources() {
                 namespace -> namespaces.get(namespace).getLockService();
         Function<String, AsyncTimelockService> asyncTimelockServiceGetter =
                 namespace -> namespaces.get(namespace).getTimelockService();
-        Function<String, BackupTimeLockServiceView> backupTimeLockServiceViewGetter =
-                namespace -> namespaces.getForRestore(namespace);
 
-        AuthHeaderValidator authHeaderValidator = getAuthHeaderValidator();
         if (undertowRegistrar.isPresent()) {
             Consumer<UndertowService> presentUndertowRegistrar = undertowRegistrar.get();
             registerCorruptionHandlerWrappedService(
@@ -372,30 +352,13 @@ private void createAndRegisterResources() {
             registerCorruptionHandlerWrappedService(
                     presentUndertowRegistrar,
                     MultiClientConjureTimelockResource.undertow(redirectRetryTargeter, asyncTimelockServiceGetter));
-            registerCorruptionHandlerWrappedService(
-                    presentUndertowRegistrar,
-                    AtlasBackupResource.undertow(
-                            authHeaderValidator, redirectRetryTargeter, asyncTimelockServiceGetter));
-            registerCorruptionHandlerWrappedService(
-                    presentUndertowRegistrar,
-                    AtlasRestoreResource.undertow(
-                            authHeaderValidator, redirectRetryTargeter, backupTimeLockServiceViewGetter));
-            registerCorruptionHandlerWrappedService(
-                    presentUndertowRegistrar,
-                    DisabledNamespacesUpdaterResource.undertow(authHeaderValidator, redirectRetryTargeter, namespaces));
         } else {
             registrar.accept(ConjureTimelockResource.jersey(redirectRetryTargeter, asyncTimelockServiceGetter));
             registrar.accept(ConjureLockWatchingResource.jersey(redirectRetryTargeter, asyncTimelockServiceGetter));
             registrar.accept(ConjureLockV1Resource.jersey(redirectRetryTargeter, lockServiceGetter));
             registrar.accept(TimeLockPaxosHistoryProviderResource.jersey(corruptionComponents.localHistoryLoader()));
             registrar.accept(
                     MultiClientConjureTimelockResource.jersey(redirectRetryTargeter, asyncTimelockServiceGetter));
-            registrar.accept(
-                    AtlasBackupResource.jersey(authHeaderValidator, redirectRetryTargeter, asyncTimelockServiceGetter));
-            registrar.accept(AtlasRestoreResource.jersey(
-                    authHeaderValidator, redirectRetryTargeter, backupTimeLockServiceViewGetter));
-            registrar.accept(
-                    DisabledNamespacesUpdaterResource.jersey(authHeaderValidator, redirectRetryTargeter, namespaces));
         }
     }
 
@@ -432,35 +395,24 @@ private boolean isLeaderForClient(Client client) {
     private void registerManagementResource() {
         ServiceLifecycleController serviceLifecycleController =
                 new ServiceLifecycleController(serviceStopper, PTExecutors.newSingleThreadScheduledExecutor());
-        AllNodesDisabledNamespacesUpdater allNodesDisabledNamespacesUpdater = updaterFactory.create(namespaces);
 
         if (undertowRegistrar.isPresent()) {
             registerCorruptionHandlerWrappedService(
                     undertowRegistrar.get(),
                     TimeLockManagementResource.undertow(
                             timestampStorage.persistentNamespaceContext(),
                             namespaces,
-                            allNodesDisabledNamespacesUpdater,
-                            getAuthHeaderValidator(),
                             redirectRetryTargeter(),
                             serviceLifecycleController));
         } else {
             registrar.accept(TimeLockManagementResource.jersey(
                     timestampStorage.persistentNamespaceContext(),
                     namespaces,
-                    allNodesDisabledNamespacesUpdater,
-                    getAuthHeaderValidator(),
                     redirectRetryTargeter(),
                     serviceLifecycleController));
         }
     }
 
-    private AuthHeaderValidator getAuthHeaderValidator() {
-        Refreshable<Optional<BearerToken>> permittedBackupToken =
-                runtime.map(TimeLockRuntimeConfiguration::permittedBackupToken);
-        return new AuthHeaderValidator(permittedBackupToken);
-    }
-
     private void registerTimeLockCorruptionJerseyFilter() {
         if (!undertowRegistrar.isPresent()) {
             registrar.accept(new JerseyCorruptionFilter(corruptionComponents.timeLockCorruptionHealthCheck()));u}(j$ (17ad683c3b2f3fb674b39f1d6f6392b7a210e7d1jW% _timelock-agent/src/test/java/com/palantir/timelock/config/TimeLockRuntimeConfigurationTest.javajY% modifiedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfigurationTest.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfigurationTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfigurationTest.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% XC  @@ -20,7 +20,6 @@
 
 import com.google.common.collect.ImmutableList;
 import com.palantir.conjure.java.api.config.service.PartialServiceConfiguration;
-import com.palantir.tokens.auth.BearerToken;
 import java.util.Optional;
 import org.junit.Test;
 
@@ -34,12 +33,10 @@ public class TimeLockRuntimeConfigurationTest {
                     ImmutableList.of(SERVER_A, SERVER_B, "the-mane-event:3456"), Optional.empty()))
             .addKnownNewServers(SERVER_B)
             .build();
-    private static final BearerToken BEARER_TOKEN = BearerToken.valueOf("quit-horsing-around");
 
     @Test
     public void canCreateWithZeroClients() {
         ImmutableTimeLockRuntimeConfiguration.builder()
-                .permittedBackupToken(BEARER_TOKEN)
                 .clusterSnapshot(CLUSTER_CONFIG)
                 .build();
     }u}(j$ (03226a0e6be1d0cbb02399ec2c58a6cb05cd8052jW% .timelock-api/src/main/conjure/timelock-api.ymljY% modifiedjQ% K jR% K\j[% K\j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-api.ymlj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-api.ymlj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-api.yml?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -178,100 +178,8 @@ types:
       LeaderTimes:
         fields:
           leaderTimes: map<Namespace, LeaderTime>
-      # backup and restore
-      ServiceId:
-        package: com.palantir.atlasdb.backup.api
-        alias: string
-        safety: safe
-      AtlasService:
-        package: com.palantir.atlasdb.backup.api
-        fields:
-          serviceId: ServiceId
-          namespace: Namespace
-      InProgressBackupToken:
-        package: com.palantir.atlasdb.backup.api
-        fields:
-          namespace: Namespace
-          lockToken: LockToken
-          immutableTimestamp: Long
-          backupStartTimestamp: Long
-      CompletedBackup:
-        package: com.palantir.atlasdb.backup.api
-        fields:
-          namespace: Namespace
-          immutableTimestamp: Long
-          backupStartTimestamp: Long
-          backupEndTimestamp: Long
-      PrepareBackupRequest:
-        package: com.palantir.atlasdb.backup.api
-        fields:
-          namespaces: set<Namespace>
-      PrepareBackupResponse:
-        package: com.palantir.atlasdb.backup.api
-        fields:
-          successful: set<InProgressBackupToken>
-      RefreshBackupRequest:
-        package: com.palantir.atlasdb.backup.api
-        fields:
-          tokens: set<InProgressBackupToken>
-      RefreshBackupResponse:
-        package: com.palantir.atlasdb.backup.api
-        fields:
-          refreshedTokens: set<InProgressBackupToken>
-      CompleteBackupRequest:
-        package: com.palantir.atlasdb.backup.api
-        fields:
-          backupTokens: set<InProgressBackupToken>
-      CompleteBackupResponse:
-        package: com.palantir.atlasdb.backup.api
-        fields:
-          successfulBackups: set<CompletedBackup>
-      CompleteRestoreRequest:
-        package: com.palantir.atlasdb.backup.api
-        fields:
-          completedBackups:
-            type: map<Namespace, CompletedBackup>
-            docs: |
-              Mapping from the namespace being restored into, to the backup we're restoring.
-              Note that the namespace might not be the same as the namespace originally backed up.
-      CompleteRestoreResponse:
-        package: com.palantir.atlasdb.backup.api
-        fields:
-          successfulNamespaces: set<Namespace>
 
 services:
-  AtlasBackupClient:
-    name: Internal backup service
-    default-auth: header
-    package: com.palantir.atlasdb.backup.api
-    base-path: /backup
-    endpoints:
-      prepareBackup:
-        http: POST /prepare
-        args:
-          request: PrepareBackupRequest
-        returns: PrepareBackupResponse
-      refreshBackup:
-        http: POST /refresh
-        args:
-          request: RefreshBackupRequest
-        returns: RefreshBackupResponse
-      completeBackup:
-        http: POST /complete
-        args:
-          request: CompleteBackupRequest
-        returns: CompleteBackupResponse
-  AtlasRestoreClient:
-    name: Internal restore service
-    default-auth: header
-    package: com.palantir.atlasdb.backup.api
-    base-path: /restore
-    endpoints:
-      completeRestore:
-        http: POST /complete
-        args:
-          request: CompleteRestoreRequest
-        returns: CompleteRestoreResponse
   ConjureTimelockService:
     name: Timelock service
     default-auth: headeru}(j$ (cc89c9ca0f27115d803d72f612489c7824a9839djW% 9timelock-api/src/main/conjure/timelock-management-api.ymljY% modifiedjQ% K jR% K^j[% K^j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymlj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.ymlj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-management-api.yml?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X?  @@ -1,82 +1,4 @@
-types:
-  conjure-imports:
-    api: timelock-api.yml
-  imports:
-    SingleNodeUpdateResponse:
-      external:
-        java: com.palantir.atlasdb.timelock.api.SingleNodeUpdateResponse
-  definitions:
-    default-package: com.palantir.atlasdb.timelock.api
-    objects:
-      DisableNamespacesRequest:
-        fields:
-          namespaces: set<api.Namespace>
-          lockId:
-            type: string
-            safety: safe
-      SuccessfulDisableNamespacesResponse:
-        fields:
-          lockId:
-            type: string
-            safety: safe
-      UnsuccessfulDisableNamespacesResponse:
-        fields:
-          consistentlyDisabledNamespaces:
-            type: set<api.Namespace>
-            docs: Namespaces where we can assume another restore is in progress
-          partiallyDisabledNamespaces:
-            type: set<api.Namespace>
-            docs: |
-              Either another restore is in progress for this namespace (and we've hit a race condition), or
-              the namespace is stuck and needs to be manually fixed.
-      DisableNamespacesResponse:
-        union:
-          successful: SuccessfulDisableNamespacesResponse
-          unsuccessful: UnsuccessfulDisableNamespacesResponse
-      ReenableNamespacesRequest:
-        fields:
-          namespaces: set<api.Namespace>
-          lockId:
-            type: string
-            safety: safe
-      SuccessfulReenableNamespacesResponse:
-        alias: boolean
-        safety: safe
-      UnsuccessfulReenableNamespacesResponse:
-        fields:
-          consistentlyLockedNamespaces:
-            type: set<api.Namespace>
-            docs: We can assume another restore is in progress for this namespace (we lost our lock)
-          partiallyLockedNamespaces:
-            type: set<api.Namespace>
-            docs: |
-              Either another restore is in progress for this namespace (and we lost our lock), or
-              the namespace is stuck and needs to be manually fixed.
-      ReenableNamespacesResponse:
-        union:
-          successful: SuccessfulReenableNamespacesResponse
-          unsuccessful: UnsuccessfulReenableNamespacesResponse
-
 services:
-  DisabledNamespacesUpdaterService:
-    name: Internal updater service, for propagating disabled namespace updates across nodes.
-    default-auth: header
-    package: com.palantir.atlasdb.timelock.api
-    base-path: /dn
-    endpoints:
-      ping:
-        http: GET /ping
-        returns: boolean
-      disable:
-        http: POST /disable
-        args:
-          request: DisableNamespacesRequest
-        returns: SingleNodeUpdateResponse
-      reenable:
-        http: POST /reenable
-        args:
-          request: ReenableNamespacesRequest
-        returns: SingleNodeUpdateResponse
   TimeLockManagementService:
     name: TimeLock Management Service
     default-auth: header
@@ -114,22 +36,6 @@ services:
           nondeterministic which, if any, namespaces have been invalidated; some may even be invalidated only on a
           subset of nodes. This state can be cleared by re-enabling all namespaces.
 
-      disableTimelock:
-        http: POST /disable
-        args:
-          request: DisableNamespacesRequest
-        returns: DisableNamespacesResponse
-        docs: |
-          Disables the TimeLock server in a persistant way for the specified namespaces. This includes invalidating
-          all currently held locks, all lock watch state, as well as refusing to serve new requests.
-      reenableTimelock:
-        http: POST /reenable
-        args:
-          request: ReenableNamespacesRequest
-        returns: ReenableNamespacesResponse
-        docs: |
-          Allows the TimeLock server to once again serve requests for these namespaces.
-
       getServerLifecycleId:
         http: POST /getServerLifecycleId
         returns: uuidu     }(j$ (a1a307812c3e04f5c752d525eead8678cdca6a2bjW% Ptimelock-impl/src/main/java/com/palantir/atlasdb/backup/AtlasBackupResource.javajY% removedjQ% K jR% Mj[% Mj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupResource.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupResource.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupResource.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X3  @@ -1,264 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.util.concurrent.Futures;
-import com.google.common.util.concurrent.ListenableFuture;
-import com.google.common.util.concurrent.MoreExecutors;
-import com.palantir.atlasdb.backup.api.AtlasBackupClient;
-import com.palantir.atlasdb.backup.api.AtlasBackupClientEndpoints;
-import com.palantir.atlasdb.backup.api.CompleteBackupRequest;
-import com.palantir.atlasdb.backup.api.CompleteBackupResponse;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.InProgressBackupToken;
-import com.palantir.atlasdb.backup.api.PrepareBackupRequest;
-import com.palantir.atlasdb.backup.api.PrepareBackupResponse;
-import com.palantir.atlasdb.backup.api.RefreshBackupRequest;
-import com.palantir.atlasdb.backup.api.RefreshBackupResponse;
-import com.palantir.atlasdb.backup.api.UndertowAtlasBackupClient;
-import com.palantir.atlasdb.futures.AtlasFutures;
-import com.palantir.atlasdb.http.RedirectRetryTargeter;
-import com.palantir.atlasdb.timelock.BackupTimeLockServiceView;
-import com.palantir.atlasdb.timelock.ConjureResourceExceptionHandler;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.conjure.java.api.errors.ErrorType;
-import com.palantir.conjure.java.api.errors.ServiceException;
-import com.palantir.conjure.java.undertow.lib.UndertowService;
-import com.palantir.lock.v2.IdentifiedTimeLockRequest;
-import com.palantir.lock.v2.LockImmutableTimestampResponse;
-import com.palantir.lock.v2.LockToken;
-import com.palantir.lock.v2.RefreshLockResponseV2;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import com.palantir.tokens.auth.AuthHeader;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.function.Function;
-import java.util.function.Supplier;
-import java.util.stream.Collectors;
-
-public class AtlasBackupResource implements UndertowAtlasBackupClient {
-    private static final SafeLogger log = SafeLoggerFactory.get(AtlasBackupResource.class);
-
-    private final AuthHeaderValidator authHeaderValidator;
-    private final Function<String, ? extends BackupTimeLockServiceView> timelockServices;
-    private final ConjureResourceExceptionHandler exceptionHandler;
-
-    @VisibleForTesting
-    AtlasBackupResource(
-            AuthHeaderValidator authHeaderValidator,
-            RedirectRetryTargeter redirectRetryTargeter,
-            Function<String, ? extends BackupTimeLockServiceView> timelockServices) {
-        this.authHeaderValidator = authHeaderValidator;
-        this.exceptionHandler = new ConjureResourceExceptionHandler(redirectRetryTargeter);
-        this.timelockServices = timelockServices;
-    }
-
-    public static UndertowService undertow(
-            AuthHeaderValidator authHeaderValidator,
-            RedirectRetryTargeter redirectRetryTargeter,
-            Function<String, ? extends BackupTimeLockServiceView> timelockServices) {
-        return AtlasBackupClientEndpoints.of(
-                new AtlasBackupResource(authHeaderValidator, redirectRetryTargeter, timelockServices));
-    }
-
-    public static AtlasBackupClient jersey(
-            AuthHeaderValidator authHeaderValidator,
-            RedirectRetryTargeter redirectRetryTargeter,
-            Function<String, ? extends BackupTimeLockServiceView> timelockServices) {
-        return new JerseyAtlasBackupClientAdapter(
-                new AtlasBackupResource(authHeaderValidator, redirectRetryTargeter, timelockServices));
-    }
-
-    @Override
-    public ListenableFuture<PrepareBackupResponse> prepareBackup(AuthHeader authHeader, PrepareBackupRequest request) {
-        return handleExceptions(() -> Futures.immediateFuture(prepareBackupInternal(authHeader, request)));
-    }
-
-    private PrepareBackupResponse prepareBackupInternal(AuthHeader authHeader, PrepareBackupRequest request) {
-        if (!authHeaderValidator.suppliedHeaderMatchesConfig(authHeader)) {
-            log.error(
-                    "Attempted to prepare backup with an invalid auth header. "
-                            + "The provided token must match the configured permitted-backup-token.",
-                    SafeArg.of("request", request));
-            throw new ServiceException(ErrorType.PERMISSION_DENIED);
-        }
-
-        Set<InProgressBackupToken> preparedBackups =
-                request.getNamespaces().stream().map(this::prepareBackup).collect(Collectors.toSet());
-        return PrepareBackupResponse.of(preparedBackups);
-    }
-
-    private InProgressBackupToken prepareBackup(Namespace namespace) {
-        BackupTimeLockServiceView timelock = timelock(namespace);
-        LockImmutableTimestampResponse response = timelock.lockImmutableTimestamp(IdentifiedTimeLockRequest.create());
-        long timestamp = timelock.getFreshTimestamp();
-
-        return InProgressBackupToken.builder()
-                .namespace(namespace)
-                .lockToken(response.getLock())
-                .immutableTimestamp(response.getImmutableTimestamp())
-                .backupStartTimestamp(timestamp)
-                .build();
-    }
-
-    @Override
-    public ListenableFuture<RefreshBackupResponse> refreshBackup(AuthHeader authHeader, RefreshBackupRequest request) {
-        return handleExceptions(() -> refreshBackupInternal(authHeader, request));
-    }
-
-    private ListenableFuture<RefreshBackupResponse> refreshBackupInternal(
-            AuthHeader authHeader, RefreshBackupRequest request) {
-        if (!authHeaderValidator.suppliedHeaderMatchesConfig(authHeader)) {
-            log.error(
-                    "Attempted to complete backup with an invalid auth header. "
-                            + "The provided token must match the configured permitted-backup-token.",
-                    SafeArg.of("request", request));
-            throw new ServiceException(ErrorType.PERMISSION_DENIED);
-        }
-
-        Map<InProgressBackupToken, ListenableFuture<Optional<RefreshLockResponseV2>>> refreshResponsesPerToken =
-                request.getTokens().stream().collect(Collectors.toMap(token -> token, this::refreshBackupAsync));
-        ListenableFuture<Map<InProgressBackupToken, RefreshLockResponseV2>> collatedRefreshResponse =
-                AtlasFutures.allOptionalsAsMap(refreshResponsesPerToken, MoreExecutors.newDirectExecutorService());
-
-        return Futures.transform(collatedRefreshResponse, this::getRefreshedTokens, MoreExecutors.directExecutor());
-    }
-
-    private ListenableFuture<Optional<RefreshLockResponseV2>> refreshBackupAsync(InProgressBackupToken token) {
-        Namespace namespace = token.getNamespace();
-        return Futures.transform(
-                timelock(namespace).refreshLockLeases(ImmutableSet.of(token.getLockToken())),
-                Optional::of,
-                MoreExecutors.directExecutor());
-    }
-
-    private RefreshBackupResponse getRefreshedTokens(Map<InProgressBackupToken, RefreshLockResponseV2> responses) {
-        Set<InProgressBackupToken> refreshedBackupTokens = KeyedStream.stream(responses)
-                .filter(response -> !response.refreshedTokens().isEmpty())
-                .keys()
-                .collect(Collectors.toSet());
-        return RefreshBackupResponse.of(refreshedBackupTokens);
-    }
-
-    @Override
-    public ListenableFuture<CompleteBackupResponse> completeBackup(
-            AuthHeader authHeader, CompleteBackupRequest request) {
-        return handleExceptions(() -> completeBackupInternal(authHeader, request));
-    }
-
-    @SuppressWarnings("ConstantConditions")
-    private ListenableFuture<CompleteBackupResponse> completeBackupInternal(
-            AuthHeader authHeader, CompleteBackupRequest request) {
-        if (!authHeaderValidator.suppliedHeaderMatchesConfig(authHeader)) {
-            log.error(
-                    "Attempted to complete backup with an invalid auth header. "
-                            + "The provided token must match the configured permitted-backup-token.",
-                    SafeArg.of("request", request));
-            throw new ServiceException(ErrorType.PERMISSION_DENIED);
-        }
-
-        Map<InProgressBackupToken, ListenableFuture<Optional<CompletedBackup>>> completedBackupsPerToken =
-                request.getBackupTokens().stream().collect(Collectors.toMap(token -> token, this::completeBackupAsync));
-        ListenableFuture<Map<InProgressBackupToken, CompletedBackup>> collatedCompletedBackups =
-                AtlasFutures.allOptionalsAsMap(completedBackupsPerToken, MoreExecutors.newDirectExecutorService());
-
-        return Futures.transform(
-                collatedCompletedBackups,
-                map -> CompleteBackupResponse.of(ImmutableSet.copyOf(map.values())),
-                MoreExecutors.directExecutor());
-    }
-
-    @SuppressWarnings("ConstantConditions") // optional token is never null
-    private ListenableFuture<Optional<CompletedBackup>> completeBackupAsync(InProgressBackupToken backupToken) {
-        return Futures.transform(
-                maybeUnlock(backupToken),
-                maybeToken -> maybeToken.map(_successfulUnlock -> fetchFastForwardTimestamp(backupToken)),
-                MoreExecutors.directExecutor());
-    }
-
-    @SuppressWarnings("ConstantConditions") // Set of locks is never null
-    private ListenableFuture<Optional<LockToken>> maybeUnlock(InProgressBackupToken backupToken) {
-        return Futures.transform(
-                timelock(backupToken.getNamespace()).unlock(ImmutableSet.of(backupToken.getLockToken())),
-                singletonOrEmptySet -> getUnlockedTokenOrLogFailure(backupToken.getNamespace(), singletonOrEmptySet),
-                MoreExecutors.directExecutor());
-    }
-
-    private Optional<LockToken> getUnlockedTokenOrLogFailure(Namespace namespace, Set<LockToken> singletonOrEmptySet) {
-        if (singletonOrEmptySet.isEmpty()) {
-            log.error(
-                    "Failed to unlock namespace while completing backup. "
-                            + "We lost the immutable timestamp lock, possibly due to a Timelock restart or "
-                            + "leadership election. Please retry the backup.",
-                    SafeArg.of("namespace", namespace));
-        }
-
-        return singletonOrEmptySet.stream().findFirst();
-    }
-
-    private CompletedBackup fetchFastForwardTimestamp(InProgressBackupToken backupToken) {
-        Namespace namespace = backupToken.getNamespace();
-        long fastForwardTimestamp = timelock(namespace).getFreshTimestamp();
-        return CompletedBackup.builder()
-                .namespace(namespace)
-                .immutableTimestamp(backupToken.getImmutableTimestamp())
-                .backupStartTimestamp(backupToken.getBackupStartTimestamp())
-                .backupEndTimestamp(fastForwardTimestamp)
-                .build();
-    }
-
-    private BackupTimeLockServiceView timelock(Namespace namespace) {
-        return timelockServices.apply(namespace.get());
-    }
-
-    private <T> ListenableFuture<T> handleExceptions(Supplier<ListenableFuture<T>> supplier) {
-        return exceptionHandler.handleExceptions(supplier);
-    }
-
-    public static final class JerseyAtlasBackupClientAdapter implements AtlasBackupClient {
-        private final AtlasBackupResource resource;
-
-        public JerseyAtlasBackupClientAdapter(AtlasBackupResource resource) {
-            this.resource = resource;
-        }
-
-        @Override
-        public PrepareBackupResponse prepareBackup(AuthHeader authHeader, PrepareBackupRequest request) {
-            return unwrap(resource.prepareBackup(authHeader, request));
-        }
-
-        @Override
-        public RefreshBackupResponse refreshBackup(AuthHeader authHeader, RefreshBackupRequest request) {
-            return unwrap(resource.refreshBackup(authHeader, request));
-        }
-
-        @Override
-        public CompleteBackupResponse completeBackup(AuthHeader authHeader, CompleteBackupRequest request) {
-            return unwrap(resource.completeBackup(authHeader, request));
-        }
-
-        private static <T> T unwrap(ListenableFuture<T> future) {
-            return AtlasFutures.getUnchecked(future);
-        }
-    }
-}u}(j$ (631a092a64fe1b13feb0576e71e6b07c3804ad62jW% Qtimelock-impl/src/main/java/com/palantir/atlasdb/backup/AtlasRestoreResource.javajY% removedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreResource.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreResource.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreResource.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,137 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.util.concurrent.Futures;
-import com.google.common.util.concurrent.ListenableFuture;
-import com.google.common.util.concurrent.MoreExecutors;
-import com.palantir.atlasdb.backup.api.AtlasRestoreClient;
-import com.palantir.atlasdb.backup.api.AtlasRestoreClientEndpoints;
-import com.palantir.atlasdb.backup.api.CompleteRestoreRequest;
-import com.palantir.atlasdb.backup.api.CompleteRestoreResponse;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.UndertowAtlasRestoreClient;
-import com.palantir.atlasdb.futures.AtlasFutures;
-import com.palantir.atlasdb.http.RedirectRetryTargeter;
-import com.palantir.atlasdb.timelock.BackupTimeLockServiceView;
-import com.palantir.atlasdb.timelock.ConjureResourceExceptionHandler;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.conjure.java.api.errors.ErrorType;
-import com.palantir.conjure.java.api.errors.ServiceException;
-import com.palantir.conjure.java.undertow.lib.UndertowService;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import com.palantir.tokens.auth.AuthHeader;
-import java.util.Map;
-import java.util.Optional;
-import java.util.function.Function;
-import java.util.function.Supplier;
-
-public class AtlasRestoreResource implements UndertowAtlasRestoreClient {
-    private static final SafeLogger log = SafeLoggerFactory.get(AtlasRestoreResource.class);
-
-    private final Function<String, ? extends BackupTimeLockServiceView> timelockServices;
-    private final ConjureResourceExceptionHandler exceptionHandler;
-    private final AuthHeaderValidator authHeaderValidator;
-
-    @VisibleForTesting
-    AtlasRestoreResource(
-            AuthHeaderValidator authHeaderValidator,
-            RedirectRetryTargeter redirectRetryTargeter,
-            Function<String, ? extends BackupTimeLockServiceView> timelockServices) {
-        this.authHeaderValidator = authHeaderValidator;
-        this.exceptionHandler = new ConjureResourceExceptionHandler(redirectRetryTargeter);
-        this.timelockServices = timelockServices;
-    }
-
-    public static UndertowService undertow(
-            AuthHeaderValidator authHeaderValidator,
-            RedirectRetryTargeter redirectRetryTargeter,
-            Function<String, ? extends BackupTimeLockServiceView> timelockServices) {
-        return AtlasRestoreClientEndpoints.of(
-                new AtlasRestoreResource(authHeaderValidator, redirectRetryTargeter, timelockServices));
-    }
-
-    public static AtlasRestoreClient jersey(
-            AuthHeaderValidator authHeaderValidator,
-            RedirectRetryTargeter redirectRetryTargeter,
-            Function<String, ? extends BackupTimeLockServiceView> timelockServices) {
-        return new JerseyAtlasRestoreClientAdapter(
-                new AtlasRestoreResource(authHeaderValidator, redirectRetryTargeter, timelockServices));
-    }
-
-    @Override
-    public ListenableFuture<CompleteRestoreResponse> completeRestore(
-            AuthHeader authHeader, CompleteRestoreRequest request) {
-        return handleExceptions(() -> completeRestoreInternal(authHeader, request));
-    }
-
-    private ListenableFuture<CompleteRestoreResponse> completeRestoreInternal(
-            AuthHeader authHeader, CompleteRestoreRequest request) {
-        if (!authHeaderValidator.suppliedHeaderMatchesConfig(authHeader)) {
-            log.error(
-                    "Attempted to complete restore with an invalid auth header. "
-                            + "The provided token must match the configured permitted-backup-token.",
-                    SafeArg.of("request", request));
-            throw new ServiceException(ErrorType.PERMISSION_DENIED);
-        }
-
-        Map<Namespace, ListenableFuture<Optional<Namespace>>> inFlightRequests = KeyedStream.stream(
-                        request.getCompletedBackups())
-                .map(this::completeRestoreAsync)
-                .collectToMap();
-        ListenableFuture<Map<Namespace, Namespace>> completedRequests =
-                AtlasFutures.allOptionalsAsMap(inFlightRequests, MoreExecutors.newDirectExecutorService());
-
-        return Futures.transform(
-                completedRequests,
-                map -> CompleteRestoreResponse.of(ImmutableSet.copyOf(map.values())),
-                MoreExecutors.directExecutor());
-    }
-
-    private ListenableFuture<Optional<Namespace>> completeRestoreAsync(
-            Namespace namespace, CompletedBackup completedBackup) {
-        BackupTimeLockServiceView timelock = timelock(namespace);
-        timelock.fastForwardTimestamp(completedBackup.getBackupEndTimestamp());
-        return Futures.immediateFuture(Optional.of(namespace));
-    }
-
-    private BackupTimeLockServiceView timelock(Namespace namespace) {
-        return timelockServices.apply(namespace.get());
-    }
-
-    private <T> ListenableFuture<T> handleExceptions(Supplier<ListenableFuture<T>> supplier) {
-        return exceptionHandler.handleExceptions(supplier);
-    }
-
-    private static class JerseyAtlasRestoreClientAdapter implements AtlasRestoreClient {
-        private final AtlasRestoreResource resource;
-
-        public JerseyAtlasRestoreClientAdapter(AtlasRestoreResource resource) {
-            this.resource = resource;
-        }
-
-        @Override
-        public CompleteRestoreResponse completeRestore(AuthHeader authHeader, CompleteRestoreRequest request) {
-            return AtlasFutures.getUnchecked(resource.completeRestore(authHeader, request));
-        }
-    }
-}u}(j$ (c43d295ee70c7eadb6269cd774e8d7cba7bf3867jW% Ptimelock-impl/src/main/java/com/palantir/atlasdb/backup/AuthHeaderValidator.javajY% removedjQ% K jR% K%j[% K%j\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAuthHeaderValidator.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAuthHeaderValidator.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAuthHeaderValidator.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X`  @@ -1,37 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.tokens.auth.AuthHeader;
-import com.palantir.tokens.auth.BearerToken;
-import java.util.Optional;
-import java.util.function.Supplier;
-
-public final class AuthHeaderValidator {
-    private final Supplier<Optional<BearerToken>> permittedToken;
-
-    public AuthHeaderValidator(Supplier<Optional<BearerToken>> permittedToken) {
-        this.permittedToken = permittedToken;
-    }
-
-    public boolean suppliedHeaderMatchesConfig(AuthHeader suppliedAuthHeader) {
-        return permittedToken
-                .get()
-                .map(token -> token.equals(suppliedAuthHeader.getBearerToken()))
-                .orElse(false);
-    }
-}u}(j$ (aa0a0f3ae860213574e0446f0c964cb17e522452jW% `timelock-impl/src/main/java/com/palantir/atlasdb/backup/DelegatingBackupTimeLockServiceView.javajY% removedjQ% K jR% KCj[% KCj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDelegatingBackupTimeLockServiceView.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDelegatingBackupTimeLockServiceView.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDelegatingBackupTimeLockServiceView.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X
  @@ -1,67 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.google.common.util.concurrent.Futures;
-import com.google.common.util.concurrent.ListenableFuture;
-import com.palantir.atlasdb.timelock.BackupTimeLockServiceView;
-import com.palantir.lock.v2.IdentifiedTimeLockRequest;
-import com.palantir.lock.v2.LockImmutableTimestampResponse;
-import com.palantir.lock.v2.LockToken;
-import com.palantir.lock.v2.RefreshLockResponseV2;
-import com.palantir.lock.v2.TimelockService;
-import com.palantir.timestamp.TimestampManagementService;
-import java.util.Set;
-
-public class DelegatingBackupTimeLockServiceView implements BackupTimeLockServiceView {
-    private final TimelockService timelockService;
-    private final TimestampManagementService timestampManagementService;
-
-    public DelegatingBackupTimeLockServiceView(
-            TimelockService timelockService, TimestampManagementService timestampManagementService) {
-        this.timelockService = timelockService;
-        this.timestampManagementService = timestampManagementService;
-    }
-
-    @Override
-    public long getFreshTimestamp() {
-        return timelockService.getFreshTimestamp();
-    }
-
-    @Override
-    public void fastForwardTimestamp(long currentTimestamp) {
-        timestampManagementService.fastForwardTimestamp(currentTimestamp);
-    }
-
-    @Override
-    public LockImmutableTimestampResponse lockImmutableTimestamp(IdentifiedTimeLockRequest _request) {
-        return timelockService.lockImmutableTimestamp();
-    }
-
-    @Override
-    public ListenableFuture<RefreshLockResponseV2> refreshLockLeases(Set<LockToken> tokens) {
-        Set<LockToken> refreshedTokens = timelockService.refreshLockLeases(tokens);
-
-        // The leases from this response are not used in the backup/restore code path
-        return Futures.immediateFuture(RefreshLockResponseV2.of(refreshedTokens, null));
-    }
-
-    @Override
-    public ListenableFuture<Set<LockToken>> unlock(Set<LockToken> tokens) {
-        return Futures.immediateFuture(timelockService.unlock(tokens));
-    }
-}u}(j$ (f655ec722e4a315894eae6ff1fd913fe85105396jW% Xtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/BackupTimeLockServiceView.javajY% modifiedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FBackupTimeLockServiceView.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FBackupTimeLockServiceView.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FBackupTimeLockServiceView.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -25,10 +25,6 @@
 
 // View containing only the methods necessary for AtlasBackup/RestoreService functionality
 public interface BackupTimeLockServiceView {
-    long getFreshTimestamp();
-
-    void fastForwardTimestamp(long currentTimestamp);
-
     LockImmutableTimestampResponse lockImmutableTimestamp(IdentifiedTimeLockRequest request);
 
     ListenableFuture<RefreshLockResponseV2> refreshLockLeases(Set<LockToken> tokens);u}(j$ (ee305256060445d6a8f90b0f85b678eb90f73e34jW% Otimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimeLockResource.javajY% modifiedjQ% KjR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockResource.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockResource.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimeLockResource.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -55,6 +55,6 @@ public AsyncTimelockResource getTimelockService(@Safe @PathParam("namespace") St
 
     @Path("/timestamp-management")
     public TimestampManagementService getTimestampManagementService(@Safe @PathParam("namespace") String namespace) {
-        return namespaces.getIgnoringDisabled(namespace).getTimestampManagementService();
+        return namespaces.get(namespace).getTimestampManagementService();
     }
 }u}(j$ (5460967de87c8dd522e0bb1064263d66775be19ejW% Qtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimelockNamespaces.javajY% modifiedjQ% KjR% K8j[% K:j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimelockNamespaces.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimelockNamespaces.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimelockNamespaces.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% XY  @@ -20,11 +20,6 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.SingleNodeUpdateResponse;
-import com.palantir.atlasdb.timelock.management.DisabledNamespaces;
 import com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.logsafe.Preconditions;
@@ -33,7 +28,6 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.paxos.Client;
-import java.util.Map;
 import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ConcurrentMap;
@@ -61,34 +55,16 @@ public final class TimelockNamespaces {
     private final ConcurrentMap<String, TimeLockServices> services = new ConcurrentHashMap<>();
     private final Function<String, TimeLockServices> factory;
     private final Supplier<Integer> maxNumberOfClients;
-    private final DisabledNamespaces disabledNamespaces;
 
     public TimelockNamespaces(
-            MetricsManager metrics,
-            Function<String, TimeLockServices> factory,
-            Supplier<Integer> maxNumberOfClients,
-            DisabledNamespaces disabledNamespaces) {
+            MetricsManager metrics, Function<String, TimeLockServices> factory, Supplier<Integer> maxNumberOfClients) {
         this.factory = factory;
         this.maxNumberOfClients = maxNumberOfClients;
-        this.disabledNamespaces = disabledNamespaces;
         registerClientCapacityMetrics(metrics);
     }
 
     public TimeLockServices get(String namespace) {
-        TimeLockServices timeLockServices = services.computeIfAbsent(namespace, this::createNewClient);
-        Preconditions.checkArgument(
-                disabledNamespaces.isEnabled(Namespace.of(namespace)),
-                "Cannot create a client for namespace because the namespace has been explicitly disabled.",
-                SafeArg.of("namespace", namespace));
-        return timeLockServices;
-    }
-
-    public BackupTimeLockServiceView getForRestore(String namespace) {
-        return getIgnoringDisabled(namespace).getTimelockService();
-    }
-
-    public TimeLockServices getIgnoringDisabled(String namespace) {
-        return services.computeIfAbsent(namespace, ns -> createNewClient(ns, true));
+        return services.computeIfAbsent(namespace, this::createNewClient);
     }
 
     public Set<Client> getActiveClients() {
@@ -104,20 +80,12 @@ public int getMaxNumberOfClients() {
     }
 
     private TimeLockServices createNewClient(String namespace) {
-        return createNewClient(namespace, false);
-    }
-
-    private TimeLockServices createNewClient(String namespace, boolean ignoreDisabled) {
         Preconditions.checkArgument(
                 IS_VALID_NAME.test(namespace), "Invalid namespace", SafeArg.of("namespace", namespace));
         Preconditions.checkArgument(
                 !namespace.equals(PaxosTimeLockConstants.LEADER_ELECTION_NAMESPACE),
                 "The client name is reserved for the leader election service, and may not be used.",
                 SafeArg.of("clientName", PaxosTimeLockConstants.LEADER_ELECTION_NAMESPACE));
-        Preconditions.checkArgument(
-                ignoreDisabled || disabledNamespaces.isEnabled(Namespace.of(namespace)),
-                "Cannot create a client for namespace because the namespace has been explicitly disabled.",
-                SafeArg.of("namespace", namespace));
 
         if (getNumberOfActiveClients() >= getMaxNumberOfClients()) {
             log.error(
@@ -145,28 +113,6 @@ public void invalidateResourcesForClient(String namespace) {
         }
     }
 
-    public Map<Namespace, String> getNamespacesLockedWithDifferentLockId(
-            Set<Namespace> namespaces, String expectedLockId) {
-        return disabledNamespaces.getNamespacesLockedWithDifferentLockId(namespaces, expectedLockId);
-    }
-
-    public SingleNodeUpdateResponse disable(DisableNamespacesRequest request) {
-        SingleNodeUpdateResponse response = disabledNamespaces.disable(request);
-        if (response.isSuccessful()) {
-            request.getNamespaces().stream().map(Namespace::get).forEach(this::invalidateResourcesForClient);
-        } else {
-            log.info(
-                    "Not invalidating resources, as the request to disable namespaces was unsuccessful",
-                    SafeArg.of("response", response));
-        }
-
-        return response;
-    }
-
-    public SingleNodeUpdateResponse reEnable(ReenableNamespacesRequest request) {
-        return disabledNamespaces.reEnable(request);
-    }
-
     private void registerClientCapacityMetrics(MetricsManager metricsManager) {
         metricsManager.registerMetric(TimelockNamespaces.class, ACTIVE_CLIENTS, this::getNumberOfActiveClients);
         metricsManager.registerMetric(TimelockNamespaces.class, MAX_CLIENTS, this::getMaxNumberOfClients);u}(j$ (b9b5e3a5f0b2166358c69fac1ead1ae902c57040jW% ktimelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/AllNodesDisabledNamespacesUpdater.javajY% removedjQ% K jR% MIj[% MIj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FAllNodesDisabledNamespacesUpdater.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FAllNodesDisabledNamespacesUpdater.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FAllNodesDisabledNamespacesUpdater.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% XA  @@ -1,329 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.timelock.management;
-
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.Sets;
-import com.palantir.atlasdb.timelock.TimelockNamespaces;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.DisabledNamespacesUpdaterService;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.SingleNodeUpdateResponse;
-import com.palantir.atlasdb.timelock.api.SuccessfulDisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.SuccessfulReenableNamespacesResponse;
-import com.palantir.common.concurrent.CheckedRejectionExecutorService;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import com.palantir.paxos.BooleanPaxosResponse;
-import com.palantir.paxos.PaxosQuorumChecker;
-import com.palantir.paxos.PaxosResponse;
-import com.palantir.paxos.PaxosResponsesWithRemote;
-import com.palantir.tokens.auth.AuthHeader;
-import java.time.Duration;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.function.Function;
-import java.util.function.Supplier;
-import java.util.stream.Collectors;
-import org.immutables.value.Value;
-
-public class AllNodesDisabledNamespacesUpdater {
-    private static final SafeLogger log = SafeLoggerFactory.get(AllNodesDisabledNamespacesUpdater.class);
-
-    private final ImmutableList<DisabledNamespacesUpdaterService> remoteUpdaters;
-    private final Map<DisabledNamespacesUpdaterService, CheckedRejectionExecutorService> remoteExecutors;
-    private final TimelockNamespaces localUpdater;
-    private final int clusterSize;
-
-    @VisibleForTesting
-    AllNodesDisabledNamespacesUpdater(
-            ImmutableList<DisabledNamespacesUpdaterService> remoteUpdaters,
-            Map<DisabledNamespacesUpdaterService, CheckedRejectionExecutorService> remoteExecutors,
-            TimelockNamespaces localUpdater) {
-        this.remoteUpdaters = remoteUpdaters;
-        this.remoteExecutors = remoteExecutors;
-        this.localUpdater = localUpdater;
-        this.clusterSize = remoteUpdaters.size() + 1;
-    }
-
-    public static AllNodesDisabledNamespacesUpdater create(
-            ImmutableList<DisabledNamespacesUpdaterService> remoteUpdaters,
-            Map<DisabledNamespacesUpdaterService, CheckedRejectionExecutorService> remoteExecutors,
-            TimelockNamespaces localUpdater) {
-        return new AllNodesDisabledNamespacesUpdater(remoteUpdaters, remoteExecutors, localUpdater);
-    }
-
-    /**
-     *  Attempts to disable the given set of namespaces on all nodes.
-     *  First checks if all remote nodes are reachable - if so, it fails without attempting to disable on any node.
-     *  Then attempts to disable the namespaces on all nodes, using a unique lock ID. This ID is returned to the caller,
-     *  and must be supplied when re-enabling the namespaces.
-     *  If, for some nodes, some namespaces are already disabled, then we do not overwrite the lock ID.
-     *  In this case, we will attempt to roll back our operation, so that the set of disabled namespaces is left in
-     *  the state in which we found it.
-     *
-     *  If some namespace is disabled on all nodes with the same lock ID, this implies that another restore is already
-     *  running (or perhaps died).
-     *
-     *  If we fail to roll back for some node (e.g. it becomes unreachable), then we're left in an inconsistent state
-     *  which will need manual remediation.
-     */
-    public DisableNamespacesResponse disableOnAllNodes(AuthHeader authHeader, DisableNamespacesRequest request) {
-        if (anyNodeIsUnreachable(authHeader)) {
-            return DisableNamespaceResponses.unsuccessfulDueToPingFailure(request.getNamespaces());
-        }
-
-        Set<Namespace> namespaces = request.getNamespaces();
-        String lockId = request.getLockId();
-        AllNodesUpdateResponse responses = disableNamespacesOnAllNodes(authHeader, request);
-        if (updateWasSuccessfulOnAllNodes(responses.allResponses())) {
-            return DisableNamespacesResponse.successful(SuccessfulDisableNamespacesResponse.of(lockId));
-        }
-
-        Set<Namespace> consistentlyLockedNamespaces = getConsistentFailures(responses.allResponses());
-        Set<Namespace> partiallyLockedNamespaces = getPartialFailures(responses.allResponses());
-        Map<DisabledNamespacesUpdaterService, SingleNodeUpdateResponse> remoteResponses = responses.remoteResponses();
-        boolean updateFailedOnAllNodes = remoteResponses.size() == remoteUpdaters.size()
-                && remoteResponses.values().stream().noneMatch(SingleNodeUpdateResponse::isSuccessful);
-        if (updateFailedOnAllNodes) {
-            return DisableNamespaceResponses.unsuccessfulDueToLockedNamespaces(
-                    consistentlyLockedNamespaces, partiallyLockedNamespaces);
-        }
-
-        // If no namespaces were consistently disabled, we should roll back our request for those nodes where we
-        // successfully disabled, or those which we failed to reach.
-        List<DisabledNamespacesUpdaterService> successfulOrUnreachableNodes = remoteUpdaters.stream()
-                .filter(node -> !remoteResponses.containsKey(node)
-                        || remoteResponses.get(node).isSuccessful())
-                .collect(Collectors.toList());
-
-        boolean rollbackSuccess = attemptReEnableOnNodes(authHeader, namespaces, lockId, successfulOrUnreachableNodes);
-        if (rollbackSuccess) {
-            return DisableNamespaceResponses.unsuccessfulButRolledBack(namespaces, lockId);
-        }
-
-        return DisableNamespaceResponses.unsuccessfulAndRollBackFailed(partiallyLockedNamespaces, lockId);
-    }
-
-    /**
-     * Attempts to re-enable the provided namespaces on all nodes.
-     * If some namespaces are locked with a different lock ID, then these namespaces will remain disabled, however
-     * we will still re-enable those that were locked with the provided lock ID.
-     */
-    public ReenableNamespacesResponse reEnableOnAllNodes(AuthHeader authHeader, ReenableNamespacesRequest request) {
-        List<SingleNodeUpdateResponse> responses =
-                reEnableNamespacesOnAllNodes(authHeader, request).allResponses();
-        if (updateWasSuccessfulOnAllNodes(responses)) {
-            return ReenableNamespacesResponse.successful(SuccessfulReenableNamespacesResponse.of(true));
-        }
-
-        Set<Namespace> consistentlyLockedNamespaces = getConsistentFailures(responses);
-        Set<Namespace> partialFailures = getPartialFailures(responses);
-        if (!consistentlyLockedNamespaces.isEmpty()) {
-            return ReEnableNamespaceResponses.unsuccessfulDueToConsistentlyLockedNamespaces(
-                    consistentlyLockedNamespaces, partialFailures);
-        }
-
-        return ReEnableNamespaceResponses.unsuccessfulWithPartiallyLockedNamespaces(partialFailures);
-    }
-
-    // Ping
-    private boolean anyNodeIsUnreachable(AuthHeader authHeader) {
-        return !isSuccessfulOnAllRemoteNodes(service -> new BooleanPaxosResponse(service.ping(authHeader)));
-    }
-
-    private boolean isSuccessfulOnAllRemoteNodes(Function<DisabledNamespacesUpdaterService, PaxosResponse> request) {
-        Collection<PaxosResponse> remoteResponses =
-                executeOnAllRemoteNodes(request).responses().values();
-        return allRemoteNodesSucceeded(remoteResponses);
-    }
-
-    // Disable
-    private AllNodesUpdateResponse disableNamespacesOnAllNodes(
-            AuthHeader authHeader, DisableNamespacesRequest request) {
-        Function<DisabledNamespacesUpdaterService, SingleNodeUpdateResponse> update =
-                service -> service.disable(authHeader, request);
-        Supplier<SingleNodeUpdateResponse> localUpdate = () -> localUpdater.disable(request);
-
-        return attemptOnAllNodes(request.getNamespaces(), request.getLockId(), update, localUpdate, false);
-    }
-
-    // ReEnable
-    private boolean attemptReEnableOnNodes(
-            AuthHeader authHeader,
-            Set<Namespace> namespaces,
-            String lockId,
-            List<DisabledNamespacesUpdaterService> successfulNodes) {
-        ReenableNamespacesRequest request = ReenableNamespacesRequest.builder()
-                .namespaces(namespaces)
-                .lockId(lockId)
-                .build();
-        Collection<SingleNodeUpdateResponse> responses =
-                reEnableNamespacesOnRemoteNodes(authHeader, request, successfulNodes);
-        return responses.stream().filter(SingleNodeUpdateResponse::isSuccessful).count() == successfulNodes.size();
-    }
-
-    private AllNodesUpdateResponse reEnableNamespacesOnAllNodes(
-            AuthHeader authHeader, ReenableNamespacesRequest request) {
-        Set<Namespace> namespaces = request.getNamespaces();
-        String lockId = request.getLockId();
-        Function<DisabledNamespacesUpdaterService, SingleNodeUpdateResponse> update =
-                service -> service.reenable(authHeader, request);
-        Supplier<SingleNodeUpdateResponse> localUpdate = () -> localUpdater.reEnable(request);
-
-        return attemptOnAllNodes(namespaces, lockId, update, localUpdate, true);
-    }
-
-    private Collection<SingleNodeUpdateResponse> reEnableNamespacesOnRemoteNodes(
-            AuthHeader authHeader, ReenableNamespacesRequest request, List<DisabledNamespacesUpdaterService> nodes) {
-        Function<DisabledNamespacesUpdaterService, SingleNodeUpdateResponse> update =
-                node -> node.reenable(authHeader, request);
-
-        Map<DisabledNamespacesUpdaterService, CheckedRejectionExecutorService> correspondingExecutors =
-                KeyedStream.stream(remoteExecutors).filterKeys(nodes::contains).collectToMap();
-        PaxosResponsesWithRemote<DisabledNamespacesUpdaterService, SingleNodeUpdateResponse> responses =
-                PaxosQuorumChecker.collectAllResponses(
-                        ImmutableList.copyOf(nodes), update, correspondingExecutors, Duration.ofSeconds(5L), false);
-        return responses.responses().values();
-    }
-
-    // Update and analysis
-    private AllNodesUpdateResponse attemptOnAllNodes(
-            Set<Namespace> namespaces,
-            String lockId,
-            Function<DisabledNamespacesUpdaterService, SingleNodeUpdateResponse> update,
-            Supplier<SingleNodeUpdateResponse> localUpdate,
-            boolean alwaysAttemptOnLocalNode) {
-        Map<DisabledNamespacesUpdaterService, SingleNodeUpdateResponse> remoteResponses =
-                attemptOnAllRemoteNodes(update);
-        SingleNodeUpdateResponse localResponse = updateLocallyOrCheckState(
-                remoteResponses.values(), namespaces, lockId, localUpdate, alwaysAttemptOnLocalNode);
-        return AllNodesUpdateResponse.builder()
-                .remoteResponses(remoteResponses)
-                .localResponse(localResponse)
-                .build();
-    }
-
-    private SingleNodeUpdateResponse updateLocallyOrCheckState(
-            Collection<SingleNodeUpdateResponse> responses,
-            Set<Namespace> namespaces,
-            String lockId,
-            Supplier<SingleNodeUpdateResponse> localUpdate,
-            boolean alwaysAttemptOnLocalNode) {
-        if (alwaysAttemptOnLocalNode || allRemoteNodesSucceeded(responses)) {
-            return localUpdate.get();
-        } else {
-            Map<Namespace, String> incorrectlyLockedNamespaces =
-                    localUpdater.getNamespacesLockedWithDifferentLockId(namespaces, lockId);
-            return SingleNodeUpdateResponse.failed(incorrectlyLockedNamespaces);
-        }
-    }
-
-    private boolean allRemoteNodesSucceeded(Collection<? extends PaxosResponse> responses) {
-        return responses.stream().allMatch(PaxosResponse::isSuccessful) && responses.size() == remoteUpdaters.size();
-    }
-
-    private boolean updateWasSuccessfulOnAllNodes(List<SingleNodeUpdateResponse> responses) {
-        return updateWasSuccessfulOnAllNodes(responses, clusterSize);
-    }
-
-    private static boolean updateWasSuccessfulOnAllNodes(
-            List<SingleNodeUpdateResponse> responses, int expectedResponseCount) {
-        if (responses.size() < expectedResponseCount) {
-            log.error(
-                    "Failed to reach some node(s) during update",
-                    SafeArg.of("responseCount", responses.size()),
-                    SafeArg.of("expectedResponseCount", expectedResponseCount));
-            return false;
-        }
-
-        return responses.stream().allMatch(SingleNodeUpdateResponse::isSuccessful);
-    }
-
-    private static Set<Namespace> getConsistentFailures(List<SingleNodeUpdateResponse> responses) {
-        return getConsistentFailures(getNamespacesByFailureCount(responses), responses.size());
-    }
-
-    private static Set<Namespace> getConsistentFailures(
-            Map<Namespace, ModifiableUpdateFailureRecord> failedNamespaces, int responseCount) {
-        return KeyedStream.stream(failedNamespaces)
-                .filter(val -> val.isConsistent(responseCount))
-                .keys()
-                .collect(Collectors.toSet());
-    }
-
-    private static Set<Namespace> getPartialFailures(List<SingleNodeUpdateResponse> responses) {
-        Map<Namespace, ModifiableUpdateFailureRecord> namespacesByFailureCount = getNamespacesByFailureCount(responses);
-        Set<Namespace> consistentFailures = getConsistentFailures(namespacesByFailureCount, responses.size());
-        return Sets.difference(namespacesByFailureCount.keySet(), consistentFailures);
-    }
-
-    private static Map<Namespace, ModifiableUpdateFailureRecord> getNamespacesByFailureCount(
-            List<SingleNodeUpdateResponse> responses) {
-        Map<Namespace, ModifiableUpdateFailureRecord> failuresByNamespace = new HashMap<>();
-        for (SingleNodeUpdateResponse response : responses) {
-            KeyedStream.stream(response.lockedNamespaces()).forEach((namespace, lockId) -> {
-                failuresByNamespace.merge(namespace, UpdateFailureRecord.of(lockId), UpdateFailureRecord::merge);
-            });
-        }
-        return failuresByNamespace;
-    }
-
-    // Execution
-    private Map<DisabledNamespacesUpdaterService, SingleNodeUpdateResponse> attemptOnAllRemoteNodes(
-            Function<DisabledNamespacesUpdaterService, SingleNodeUpdateResponse> request) {
-        return executeOnAllRemoteNodes(request).responses();
-    }
-
-    private <T extends PaxosResponse>
-            PaxosResponsesWithRemote<DisabledNamespacesUpdaterService, T> executeOnAllRemoteNodes(
-                    Function<DisabledNamespacesUpdaterService, T> request) {
-
-        return PaxosQuorumChecker.collectAllResponses(
-                remoteUpdaters, request, remoteExecutors, Duration.ofSeconds(5L), false);
-    }
-
-    @Value.Immutable
-    interface AllNodesUpdateResponse {
-        Map<DisabledNamespacesUpdaterService, SingleNodeUpdateResponse> remoteResponses();
-
-        SingleNodeUpdateResponse localResponse();
-
-        default List<SingleNodeUpdateResponse> allResponses() {
-            List<SingleNodeUpdateResponse> responses =
-                    new ArrayList<>(remoteResponses().values());
-            responses.add(localResponse());
-            return responses;
-        }
-
-        class Builder extends ImmutableAllNodesUpdateResponse.Builder {}
-
-        static Builder builder() {
-            return new Builder();
-        }
-    }
-}u}(j$ (670e5828d35309b437470579cd830b5305a11a9ajW% ctimelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/DisableNamespaceResponses.javajY% removedjQ% K jR% KLj[% KLj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FDisableNamespaceResponses.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FDisableNamespaceResponses.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FDisableNamespaceResponses.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X}  @@ -1,76 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.timelock.management;
-
-import com.palantir.atlasdb.timelock.api.DisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.timelock.api.UnsuccessfulDisableNamespacesResponse;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.Set;
-
-final class DisableNamespaceResponses {
-    private static final SafeLogger log = SafeLoggerFactory.get(DisableNamespaceResponses.class);
-
-    private DisableNamespaceResponses() {
-        // utility
-    }
-
-    static DisableNamespacesResponse unsuccessfulDueToPingFailure(Set<Namespace> namespaces) {
-        log.error(
-                "Failed to reach all remote nodes. Not disabling any namespaces", SafeArg.of("namespaces", namespaces));
-        return DisableNamespacesResponse.unsuccessful(
-                UnsuccessfulDisableNamespacesResponse.builder().build());
-    }
-
-    static DisableNamespacesResponse unsuccessfulDueToLockedNamespaces(
-            Set<Namespace> consistentlyDisabledNamespaces, Set<Namespace> partiallyDisabledNamespaces) {
-        log.error(
-                "Failed to disable all namespaces, because some namespaces were disabled. This implies"
-                        + " that this namespace is already being restored. If that is the case, please either wait for"
-                        + " that restore to complete, or kick off a restore without that namespace",
-                SafeArg.of("consistentlyDisabledNamespaces", consistentlyDisabledNamespaces),
-                SafeArg.of("partiallyDisabledNamespaces", partiallyDisabledNamespaces));
-        return DisableNamespacesResponse.unsuccessful(UnsuccessfulDisableNamespacesResponse.builder()
-                .consistentlyDisabledNamespaces(consistentlyDisabledNamespaces)
-                .partiallyDisabledNamespaces(partiallyDisabledNamespaces)
-                .build());
-    }
-
-    static DisableNamespacesResponse unsuccessfulButRolledBack(
-            Set<Namespace> partiallyDisabledNamespaces, String lockId) {
-        log.error(
-                "Failed to disable all namespaces. However, we successfully rolled back our changes.",
-                SafeArg.of("partiallyDisabledNamespaces", partiallyDisabledNamespaces),
-                SafeArg.of("lockId", lockId));
-        return DisableNamespacesResponse.unsuccessful(UnsuccessfulDisableNamespacesResponse.builder()
-                .partiallyDisabledNamespaces(partiallyDisabledNamespaces)
-                .build());
-    }
-
-    static DisableNamespacesResponse unsuccessfulAndRollBackFailed(Set<Namespace> namespaces, String lockId) {
-        log.error(
-                "Failed to disable all namespaces, and we may have failed to roll back some namespaces."
-                        + " These may need to be force-re-enabled in order to return Timelock to a consistent state.",
-                SafeArg.of("namespaces", namespaces),
-                SafeArg.of("lockId", lockId));
-        return DisableNamespacesResponse.unsuccessful(UnsuccessfulDisableNamespacesResponse.builder()
-                .partiallyDisabledNamespaces(namespaces)
-                .build());
-    }
-}u}(j$ (8d7322a48b2b2d676ec6fac4fe57f6b38a739f8bjW% \timelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/DisabledNamespaces.javajY% removedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FDisabledNamespaces.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FDisabledNamespaces.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FDisabledNamespaces.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X!  @@ -1,195 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.timelock.management;
-
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.Sets;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.SingleNodeUpdateResponse;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.function.Function;
-import java.util.stream.Collectors;
-import javax.sql.DataSource;
-import org.jdbi.v3.core.Jdbi;
-import org.jdbi.v3.sqlobject.SqlObjectPlugin;
-import org.jdbi.v3.sqlobject.customizer.Bind;
-import org.jdbi.v3.sqlobject.statement.SqlBatch;
-import org.jdbi.v3.sqlobject.statement.SqlQuery;
-import org.jdbi.v3.sqlobject.statement.SqlUpdate;
-import org.jdbi.v3.sqlobject.transaction.Transaction;
-
-@SuppressWarnings("FinalClass") // mocked in tests
-public class DisabledNamespaces {
-    private static final SafeLogger log = SafeLoggerFactory.get(DisabledNamespaces.class);
-
-    private final Jdbi jdbi;
-
-    private Set<Namespace> disabledNamespaces;
-
-    private DisabledNamespaces(Jdbi jdbi) {
-        this.jdbi = jdbi;
-    }
-
-    public static DisabledNamespaces create(DataSource dataSource) {
-        Jdbi jdbi = Jdbi.create(dataSource).installPlugin(new SqlObjectPlugin());
-        DisabledNamespaces disabledNamespaces = new DisabledNamespaces(jdbi);
-        disabledNamespaces.initialize();
-        return disabledNamespaces;
-    }
-
-    private void initialize() {
-        execute(Queries::createTable);
-        disabledNamespaces = disabledNamespaces();
-    }
-
-    public boolean isDisabled(Namespace namespace) {
-        return disabledNamespaces.contains(namespace);
-    }
-
-    public boolean isEnabled(Namespace namespace) {
-        return !isDisabled(namespace);
-    }
-
-    @VisibleForTesting
-    Set<Namespace> disabledNamespaces() {
-        return execute(Queries::getAllStates).stream()
-                .map(Namespace::of)
-                .collect(Collectors.toCollection(Sets::newConcurrentHashSet));
-    }
-
-    public Map<Namespace, String> getNamespacesLockedWithDifferentLockId(
-            Set<Namespace> namespaces, String expectedLockId) {
-        return execute(dao -> dao.getNamespacesWithLockConflict(namespaces, expectedLockId));
-    }
-
-    public synchronized SingleNodeUpdateResponse disable(DisableNamespacesRequest request) {
-        Set<Namespace> namespaces = request.getNamespaces();
-        String lockId = request.getLockId();
-        SingleNodeUpdateResponse response = execute(dao -> dao.disableAll(namespaces, lockId));
-        if (response.isSuccessful()) {
-            disabledNamespaces.addAll(namespaces);
-            log.info("Successfully disabled namespaces", SafeArg.of("namespaces", namespaces));
-        } else {
-            log.error(
-                    "Failed to disable namespaces, as some were already disabled",
-                    SafeArg.of("namespaces", namespaces),
-                    SafeArg.of("lockId", lockId),
-                    SafeArg.of("lockedNamespace", response.lockedNamespaces()));
-        }
-        return response;
-    }
-
-    public synchronized SingleNodeUpdateResponse reEnable(ReenableNamespacesRequest request) {
-        String lockId = request.getLockId();
-        SingleNodeUpdateResponse response = execute(dao -> dao.reEnableAll(request.getNamespaces(), lockId));
-        if (response.isSuccessful()) {
-            disabledNamespaces.removeAll(request.getNamespaces());
-        } else {
-            Map<Namespace, String> conflictingNamespaces = response.lockedNamespaces();
-            Set<Namespace> namespacesWithExpectedLock =
-                    Sets.difference(request.getNamespaces(), conflictingNamespaces.keySet());
-            disabledNamespaces.removeAll(namespacesWithExpectedLock);
-            log.error(
-                    "Failed to re-enable all namespaces, as some were disabled with a different lock ID.",
-                    SafeArg.of("reEnabledNamespaces", namespacesWithExpectedLock),
-                    SafeArg.of("expectedLockId", lockId),
-                    SafeArg.of("conflictingNamespaces", conflictingNamespaces));
-        }
-        return response;
-    }
-
-    private <T> T execute(Function<Queries, T> call) {
-        return jdbi.withExtension(Queries.class, call::apply);
-    }
-
-    public interface Queries {
-        @SqlUpdate("CREATE TABLE IF NOT EXISTS disabled (namespace TEXT PRIMARY KEY, lockId UUID)")
-        boolean createTable();
-
-        @Transaction
-        default Map<Namespace, String> getNamespacesWithLockConflict(Set<Namespace> namespaces, String expectedLockId) {
-            return getLockedNamespaces(namespaces)
-                    .filter(lockIdForNamespace -> !lockIdForNamespace.equals(expectedLockId))
-                    .collectToMap();
-        }
-
-        @Transaction
-        default SingleNodeUpdateResponse disableAll(Set<Namespace> namespaces, String lockId) {
-            Map<Namespace, String> conflictingNamespaces = getNamespacesWithLockConflict(namespaces, lockId);
-
-            if (!conflictingNamespaces.isEmpty()) {
-                return SingleNodeUpdateResponse.failed(conflictingNamespaces);
-            }
-
-            Set<String> namespaceNames = namespaces.stream().map(Namespace::get).collect(Collectors.toSet());
-            disable(namespaceNames, lockId);
-            return SingleNodeUpdateResponse.successful();
-        }
-
-        @Transaction
-        default SingleNodeUpdateResponse reEnableAll(Set<Namespace> namespaces, String lockId) {
-            Map<Namespace, String> namespacesWithLockConflict = getNamespacesWithLockConflict(namespaces, lockId);
-
-            if (!namespacesWithLockConflict.isEmpty()) {
-                // Unlock the namespaces we can
-                Set<Namespace> namespacesWithExpectedLock =
-                        Sets.difference(namespaces, namespacesWithLockConflict.keySet());
-                unlockNamespaces(namespacesWithExpectedLock);
-
-                return SingleNodeUpdateResponse.failed(namespacesWithLockConflict);
-            }
-
-            unlockNamespaces(namespaces);
-            return SingleNodeUpdateResponse.successful();
-        }
-
-        private void unlockNamespaces(Set<Namespace> namespaces) {
-            namespaces.stream().map(Namespace::get).forEach(this::delete);
-        }
-
-        private KeyedStream<Namespace, String> getLockedNamespaces(Set<Namespace> namespaces) {
-            return KeyedStream.of(namespaces)
-                    .map(Namespace::get)
-                    .map(this::getLockId)
-                    .flatMap(Optional::stream);
-        }
-
-        // Can ignore conflicts, provided we called getNamespacesWithLockConflict prior to insertion.
-        @SqlBatch("INSERT INTO disabled (namespace, lockId) VALUES (?, ?) ON CONFLICT DO NOTHING")
-        void disable(@Bind("namespace") Set<String> namespaces, @Bind("lockId") String lockId);
-
-        @SqlQuery("SELECT lockId FROM disabled WHERE namespace = ?")
-        Optional<String> getLockId(String namespace);
-
-        @SqlQuery("SELECT namespace FROM disabled WHERE namespace = ?")
-        Optional<String> getState(String namespace);
-
-        @SqlQuery("SELECT namespace FROM disabled")
-        Set<String> getAllStates();
-
-        @SqlUpdate("DELETE FROM disabled WHERE namespace = ?")
-        boolean delete(String namespace);
-    }
-}u     }(j$ (a5e9ed8888a4dbbd43fd7ffcf24692a95720f825jW% ktimelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/DisabledNamespacesUpdaterResource.javajY% removedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FDisabledNamespacesUpdaterResource.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FDisabledNamespacesUpdaterResource.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FDisabledNamespacesUpdaterResource.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X{  @@ -1,133 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.timelock.management;
-
-import com.google.common.util.concurrent.Futures;
-import com.google.common.util.concurrent.ListenableFuture;
-import com.palantir.atlasdb.backup.AuthHeaderValidator;
-import com.palantir.atlasdb.futures.AtlasFutures;
-import com.palantir.atlasdb.http.RedirectRetryTargeter;
-import com.palantir.atlasdb.timelock.ConjureResourceExceptionHandler;
-import com.palantir.atlasdb.timelock.TimelockNamespaces;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.DisabledNamespacesUpdaterService;
-import com.palantir.atlasdb.timelock.api.DisabledNamespacesUpdaterServiceEndpoints;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.SingleNodeUpdateResponse;
-import com.palantir.atlasdb.timelock.api.UndertowDisabledNamespacesUpdaterService;
-import com.palantir.conjure.java.api.errors.ErrorType;
-import com.palantir.conjure.java.api.errors.ServiceException;
-import com.palantir.conjure.java.undertow.lib.UndertowService;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import com.palantir.tokens.auth.AuthHeader;
-import java.util.function.Supplier;
-
-public final class DisabledNamespacesUpdaterResource implements UndertowDisabledNamespacesUpdaterService {
-    private static final SafeLogger log = SafeLoggerFactory.get(DisabledNamespacesUpdaterResource.class);
-
-    private final AuthHeaderValidator authHeaderValidator;
-    private final ConjureResourceExceptionHandler exceptionHandler;
-    private final TimelockNamespaces timelockNamespaces;
-
-    private DisabledNamespacesUpdaterResource(
-            AuthHeaderValidator authHeaderValidator,
-            RedirectRetryTargeter redirectRetryTargeter,
-            TimelockNamespaces timelockNamespaces) {
-        this.authHeaderValidator = authHeaderValidator;
-        this.exceptionHandler = new ConjureResourceExceptionHandler(redirectRetryTargeter);
-        this.timelockNamespaces = timelockNamespaces;
-    }
-
-    public static UndertowService undertow(
-            AuthHeaderValidator authHeaderValidator,
-            RedirectRetryTargeter redirectRetryTargeter,
-            TimelockNamespaces timelockNamespaces) {
-        return DisabledNamespacesUpdaterServiceEndpoints.of(
-                new DisabledNamespacesUpdaterResource(authHeaderValidator, redirectRetryTargeter, timelockNamespaces));
-    }
-
-    public static DisabledNamespacesUpdaterService jersey(
-            AuthHeaderValidator authHeaderValidator,
-            RedirectRetryTargeter redirectRetryTargeter,
-            TimelockNamespaces timelockNamespaces) {
-        return new JerseyAdapter(
-                new DisabledNamespacesUpdaterResource(authHeaderValidator, redirectRetryTargeter, timelockNamespaces));
-    }
-
-    @Override
-    public ListenableFuture<Boolean> ping(AuthHeader _authHeader) {
-        return Futures.immediateFuture(true);
-    }
-
-    @Override
-    public ListenableFuture<SingleNodeUpdateResponse> disable(AuthHeader authHeader, DisableNamespacesRequest request) {
-        if (!authHeaderValidator.suppliedHeaderMatchesConfig(authHeader)) {
-            log.error(
-                    "Attempted to disable TimeLock with an invalid auth header. "
-                            + "The provided token must match the configured permitted-backup-token.",
-                    SafeArg.of("request", request));
-            throw new ServiceException(ErrorType.PERMISSION_DENIED);
-        }
-        return handleExceptions(() -> Futures.immediateFuture(timelockNamespaces.disable(request)));
-    }
-
-    @Override
-    public ListenableFuture<SingleNodeUpdateResponse> reenable(
-            AuthHeader authHeader, ReenableNamespacesRequest request) {
-        if (!authHeaderValidator.suppliedHeaderMatchesConfig(authHeader)) {
-            log.error(
-                    "Attempted to re-enable TimeLock with an invalid auth header. "
-                            + "The provided token must match the configured permitted-backup-token.",
-                    SafeArg.of("request", request));
-            throw new ServiceException(ErrorType.PERMISSION_DENIED);
-        }
-        return handleExceptions(() -> Futures.immediateFuture(timelockNamespaces.reEnable(request)));
-    }
-
-    private <T> ListenableFuture<T> handleExceptions(Supplier<ListenableFuture<T>> supplier) {
-        return exceptionHandler.handleExceptions(supplier);
-    }
-
-    public static final class JerseyAdapter implements DisabledNamespacesUpdaterService {
-        private final DisabledNamespacesUpdaterResource resource;
-
-        public JerseyAdapter(DisabledNamespacesUpdaterResource resource) {
-            this.resource = resource;
-        }
-
-        @Override
-        public boolean ping(AuthHeader authHeader) {
-            return unwrap(resource.ping(authHeader));
-        }
-
-        @Override
-        public SingleNodeUpdateResponse disable(AuthHeader authHeader, DisableNamespacesRequest request) {
-            return unwrap(resource.disable(authHeader, request));
-        }
-
-        @Override
-        public SingleNodeUpdateResponse reenable(AuthHeader authHeader, ReenableNamespacesRequest request) {
-            return unwrap(resource.reenable(authHeader, request));
-        }
-
-        private static <T> T unwrap(ListenableFuture<T> future) {
-            return AtlasFutures.getUnchecked(future);
-        }
-    }
-}u}(j$ (1ca27286ce7836b22145d2080fce5d60eca1db7ejW% dtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/ReEnableNamespaceResponses.javajY% removedjQ% K jR% K<j[% K<j\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FReEnableNamespaceResponses.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FReEnableNamespaceResponses.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FReEnableNamespaceResponses.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,60 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.timelock.management;
-
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.UnsuccessfulReenableNamespacesResponse;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.Set;
-
-final class ReEnableNamespaceResponses {
-    private static final SafeLogger log = SafeLoggerFactory.get(ReEnableNamespaceResponses.class);
-
-    private ReEnableNamespaceResponses() {
-        // utility class
-    }
-
-    static ReenableNamespacesResponse unsuccessfulDueToConsistentlyLockedNamespaces(
-            Set<Namespace> consistentlyLockedNamespaces, Set<Namespace> partialFailures) {
-        log.error(
-                "Failed to re-enable all namespaces, because some namespace was consistently disabled "
-                        + "with the wrong lock ID. This implies that this namespace being restored by another"
-                        + " process. If that is the case, please either wait for that restore to complete, "
-                        + " or kick off a restore without that namespace",
-                SafeArg.of("consistentlyLockedNamespaces", consistentlyLockedNamespaces),
-                SafeArg.of("partiallyLockedNamespaces", partialFailures));
-        return ReenableNamespacesResponse.unsuccessful(UnsuccessfulReenableNamespacesResponse.builder()
-                .consistentlyLockedNamespaces(consistentlyLockedNamespaces)
-                .partiallyLockedNamespaces(partialFailures)
-                .build());
-    }
-
-    static ReenableNamespacesResponse unsuccessfulWithPartiallyLockedNamespaces(
-            Set<Namespace> partiallyLockedNamespaces) {
-        log.error(
-                "Failed to re-enable all namespaces, because some namespace was disabled "
-                        + "with the wrong lock ID on some, but not all, nodes. "
-                        + "Manual action may be required to unblock these namespaces.",
-                SafeArg.of("lockedNamespaces", partiallyLockedNamespaces));
-        return ReenableNamespacesResponse.unsuccessful(UnsuccessfulReenableNamespacesResponse.builder()
-                .partiallyLockedNamespaces(partiallyLockedNamespaces)
-                .build());
-    }
-}u}(j$ (ce651f337c981026dc32b482fa9ccfb4d439e218jW% dtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/TimeLockManagementResource.javajY% modifiedjQ% KjR% KPj[% KRj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResource.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% Xe!  @@ -19,24 +19,16 @@
 import com.google.common.collect.ImmutableSet;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
-import com.palantir.atlasdb.backup.AuthHeaderValidator;
 import com.palantir.atlasdb.futures.AtlasFutures;
 import com.palantir.atlasdb.http.RedirectRetryTargeter;
 import com.palantir.atlasdb.keyvalue.api.TimestampSeries;
 import com.palantir.atlasdb.timelock.ConjureResourceExceptionHandler;
 import com.palantir.atlasdb.timelock.TimelockNamespaces;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesResponse;
 import com.palantir.atlasdb.timelock.api.management.TimeLockManagementService;
 import com.palantir.atlasdb.timelock.api.management.TimeLockManagementServiceEndpoints;
 import com.palantir.atlasdb.timelock.api.management.UndertowTimeLockManagementService;
 import com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants;
-import com.palantir.conjure.java.api.errors.ErrorType;
-import com.palantir.conjure.java.api.errors.ServiceException;
 import com.palantir.conjure.java.undertow.lib.UndertowService;
-import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.paxos.Client;
@@ -50,73 +42,49 @@ public final class TimeLockManagementResource implements UndertowTimeLockManagem
     private static final SafeLogger log = SafeLoggerFactory.get(TimeLockManagementResource.class);
 
     private final Set<PersistentNamespaceLoader> namespaceLoaders;
-    private final AllNodesDisabledNamespacesUpdater allNodesDisabledNamespacesUpdater;
     private final TimelockNamespaces timelockNamespaces;
-    private final AuthHeaderValidator authHeaderValidator;
     private final ConjureResourceExceptionHandler exceptionHandler;
     private final ServiceLifecycleController serviceLifecycleController;
 
     private TimeLockManagementResource(
             Set<PersistentNamespaceLoader> namespaceLoaders,
-            AllNodesDisabledNamespacesUpdater allNodesDisabledNamespacesUpdater,
             TimelockNamespaces timelockNamespaces,
-            AuthHeaderValidator authHeaderValidator,
             RedirectRetryTargeter redirectRetryTargeter,
             ServiceLifecycleController serviceLifecycleController) {
         this.namespaceLoaders = namespaceLoaders;
-        this.allNodesDisabledNamespacesUpdater = allNodesDisabledNamespacesUpdater;
         this.timelockNamespaces = timelockNamespaces;
-        this.authHeaderValidator = authHeaderValidator;
         this.exceptionHandler = new ConjureResourceExceptionHandler(redirectRetryTargeter);
         this.serviceLifecycleController = serviceLifecycleController;
     }
 
     public static TimeLockManagementResource create(
             PersistentNamespaceContext persistentNamespaceContext,
             TimelockNamespaces timelockNamespaces,
-            AllNodesDisabledNamespacesUpdater allNodesDisabledNamespacesUpdater,
-            AuthHeaderValidator authHeaderValidator,
             RedirectRetryTargeter redirectRetryTargeter,
             ServiceLifecycleController serviceLifecycleController) {
         return new TimeLockManagementResource(
                 createNamespaceLoaders(persistentNamespaceContext),
-                allNodesDisabledNamespacesUpdater,
                 timelockNamespaces,
-                authHeaderValidator,
                 redirectRetryTargeter,
                 serviceLifecycleController);
     }
 
     public static UndertowService undertow(
             PersistentNamespaceContext persistentNamespaceContext,
             TimelockNamespaces timelockNamespaces,
-            AllNodesDisabledNamespacesUpdater allNodesDisabledNamespacesUpdater,
-            AuthHeaderValidator authHeaderValidator,
             RedirectRetryTargeter redirectRetryTargeter,
             ServiceLifecycleController serviceLifecycleController) {
         return TimeLockManagementServiceEndpoints.of(TimeLockManagementResource.create(
-                persistentNamespaceContext,
-                timelockNamespaces,
-                allNodesDisabledNamespacesUpdater,
-                authHeaderValidator,
-                redirectRetryTargeter,
-                serviceLifecycleController));
+                persistentNamespaceContext, timelockNamespaces, redirectRetryTargeter, serviceLifecycleController));
     }
 
     public static TimeLockManagementService jersey(
             PersistentNamespaceContext persistentNamespaceContext,
             TimelockNamespaces timelockNamespaces,
-            AllNodesDisabledNamespacesUpdater allNodesDisabledNamespacesUpdater,
-            AuthHeaderValidator authHeaderValidator,
             RedirectRetryTargeter redirectRetryTargeter,
             ServiceLifecycleController serviceLifecycleController) {
         return new JerseyAdapter(TimeLockManagementResource.create(
-                persistentNamespaceContext,
-                timelockNamespaces,
-                allNodesDisabledNamespacesUpdater,
-                authHeaderValidator,
-                redirectRetryTargeter,
-                serviceLifecycleController));
+                persistentNamespaceContext, timelockNamespaces, redirectRetryTargeter, serviceLifecycleController));
     }
 
     @Override
@@ -148,42 +116,6 @@ public ListenableFuture<Void> invalidateResources(AuthHeader authHeader, Set<Str
         });
     }
 
-    @Override
-    public ListenableFuture<DisableNamespacesResponse> disableTimelock(
-            AuthHeader authHeader, DisableNamespacesRequest request) {
-        if (!authHeaderValidator.suppliedHeaderMatchesConfig(authHeader)) {
-            log.error(
-                    "Attempted to disable TimeLock with an invalid auth header. "
-                            + "The provided token must match the configured permitted-backup-token.",
-                    SafeArg.of("namespaces", request.getNamespaces()));
-            throw new ServiceException(ErrorType.PERMISSION_DENIED);
-        }
-        return handleExceptions(() -> disableInternal(authHeader, request));
-    }
-
-    private ListenableFuture<DisableNamespacesResponse> disableInternal(
-            AuthHeader authHeader, DisableNamespacesRequest request) {
-        return Futures.immediateFuture(allNodesDisabledNamespacesUpdater.disableOnAllNodes(authHeader, request));
-    }
-
-    @Override
-    public ListenableFuture<ReenableNamespacesResponse> reenableTimelock(
-            AuthHeader authHeader, ReenableNamespacesRequest request) {
-        if (!authHeaderValidator.suppliedHeaderMatchesConfig(authHeader)) {
-            log.error(
-                    "Attempted to re-enable TimeLock with an invalid auth header. "
-                            + "The provided token must match the configured permitted-backup-token.",
-                    SafeArg.of("request", request));
-            throw new ServiceException(ErrorType.PERMISSION_DENIED);
-        }
-        return handleExceptions(() -> reenableInternal(authHeader, request));
-    }
-
-    public ListenableFuture<ReenableNamespacesResponse> reenableInternal(
-            AuthHeader authHeader, ReenableNamespacesRequest request) {
-        return Futures.immediateFuture(allNodesDisabledNamespacesUpdater.reEnableOnAllNodes(authHeader, request));
-    }
-
     @Override
     public ListenableFuture<UUID> getServerLifecycleId(AuthHeader authHeader) {
         return Futures.immediateFuture(serviceLifecycleController.getServerId());
@@ -236,16 +168,6 @@ public void invalidateResources(AuthHeader authHeader, Set<String> namespaces) {
             unwrap(resource.invalidateResources(authHeader, namespaces));
         }
 
-        @Override
-        public DisableNamespacesResponse disableTimelock(AuthHeader authHeader, DisableNamespacesRequest request) {
-            return unwrap(resource.disableTimelock(authHeader, request));
-        }
-
-        @Override
-        public ReenableNamespacesResponse reenableTimelock(AuthHeader authHeader, ReenableNamespacesRequest request) {
-            return unwrap(resource.reenableTimelock(authHeader, request));
-        }
-
         @Override
         public UUID getServerLifecycleId(AuthHeader authHeader) {
             return unwrap(resource.getServerLifecycleId(authHeader));u}(j$ (a039742264169bbbe18d6e11d275eef7ba15699ejW% ]timelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/UpdateFailureRecord.javajY% removedjQ% K jR% K+j[% K+j\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FUpdateFailureRecord.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FUpdateFailureRecord.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FUpdateFailureRecord.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X   @@ -1,43 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.timelock.management;
-
-import java.util.Set;
-import org.immutables.value.Value;
-
-@Value.Modifiable
-interface UpdateFailureRecord {
-    int failureCount();
-
-    Set<String> lockIds();
-
-    static ModifiableUpdateFailureRecord of(String lockId) {
-        return ModifiableUpdateFailureRecord.create().setFailureCount(1).addLockIds(lockId);
-    }
-
-    static ModifiableUpdateFailureRecord merge(
-            ModifiableUpdateFailureRecord existingRecord, ModifiableUpdateFailureRecord newRecord) {
-        return existingRecord
-                .setFailureCount(existingRecord.failureCount() + newRecord.failureCount())
-                .addAllLockIds(newRecord.lockIds());
-    }
-
-    @Value.Derived
-    default boolean isConsistent(int expectedResponseCount) {
-        return failureCount() == expectedResponseCount && lockIds().size() == 1;
-    }
-}u}(j$ (c829f2580b6ba6873f1c704884dcbb0713312b1fjW% Ttimelock-impl/src/test/java/com/palantir/atlasdb/backup/AtlasBackupResourceTest.javajY% removedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupResourceTest.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupResourceTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupResourceTest.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X,  @@ -1,242 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import static com.palantir.conjure.java.api.testing.Assertions.assertThatServiceExceptionThrownBy;
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.when;
-
-import com.google.common.collect.ImmutableSet;
-import com.google.common.util.concurrent.Futures;
-import com.palantir.atlasdb.backup.api.CompleteBackupRequest;
-import com.palantir.atlasdb.backup.api.CompleteBackupResponse;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.InProgressBackupToken;
-import com.palantir.atlasdb.backup.api.PrepareBackupRequest;
-import com.palantir.atlasdb.backup.api.PrepareBackupResponse;
-import com.palantir.atlasdb.backup.api.RefreshBackupRequest;
-import com.palantir.atlasdb.backup.api.RefreshBackupResponse;
-import com.palantir.atlasdb.futures.AtlasFutures;
-import com.palantir.atlasdb.http.RedirectRetryTargeter;
-import com.palantir.atlasdb.timelock.AsyncTimelockService;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.util.TimelockTestUtils;
-import com.palantir.conjure.java.api.errors.ErrorType;
-import com.palantir.lock.v2.Lease;
-import com.palantir.lock.v2.LockImmutableTimestampResponse;
-import com.palantir.lock.v2.LockToken;
-import com.palantir.lock.v2.RefreshLockResponseV2;
-import com.palantir.tokens.auth.AuthHeader;
-import com.palantir.tokens.auth.BearerToken;
-import java.net.URL;
-import java.util.List;
-import java.util.Set;
-import java.util.UUID;
-import org.junit.Before;
-import org.junit.Test;
-
-public class AtlasBackupResourceTest {
-    private static final int REMOTE_PORT = 4321;
-    private static final URL LOCAL = TimelockTestUtils.url("https://localhost:1234");
-    private static final URL REMOTE = TimelockTestUtils.url("https://localhost:" + REMOTE_PORT);
-    private static final RedirectRetryTargeter TARGETER = RedirectRetryTargeter.create(LOCAL, List.of(LOCAL, REMOTE));
-
-    private static final BearerToken BEARER_TOKEN = BearerToken.valueOf("bear");
-    private static final AuthHeader AUTH_HEADER = AuthHeader.of(BEARER_TOKEN);
-    private static final AuthHeader WRONG_AUTH_HEADER = AuthHeader.of(BearerToken.valueOf("imposter"));
-    private static final Namespace NAMESPACE = Namespace.of("test");
-    private static final Namespace OTHER_NAMESPACE = Namespace.of("other");
-    private static final PrepareBackupRequest PREPARE_BACKUP_REQUEST =
-            PrepareBackupRequest.of(ImmutableSet.of(NAMESPACE));
-    private static final long IMMUTABLE_TIMESTAMP = 1L;
-    private static final long BACKUP_START_TIMESTAMP = 2L;
-    private static final long BACKUP_END_TIMESTAMP = 3L;
-    private static final CompleteBackupResponse EMPTY_COMPLETE_BACKUP_RESPONSE =
-            CompleteBackupResponse.of(ImmutableSet.of());
-
-    private final AuthHeaderValidator authHeaderValidator = mock(AuthHeaderValidator.class);
-
-    private final AsyncTimelockService mockTimelock = mock(AsyncTimelockService.class);
-    private final AsyncTimelockService otherTimelock = mock(AsyncTimelockService.class);
-
-    private final AtlasBackupResource atlasBackupService = new AtlasBackupResource(
-            authHeaderValidator, TARGETER, str -> str.equals("test") ? mockTimelock : otherTimelock);
-
-    @Before
-    public void setUp() {
-        when(authHeaderValidator.suppliedHeaderMatchesConfig(AUTH_HEADER)).thenReturn(true);
-        when(authHeaderValidator.suppliedHeaderMatchesConfig(WRONG_AUTH_HEADER)).thenReturn(false);
-    }
-
-    @Test
-    public void prepareBackupThrowsIfAuthHeaderIsWrong() {
-        assertThatServiceExceptionThrownBy(() -> AtlasFutures.getUnchecked(
-                        atlasBackupService.prepareBackup(WRONG_AUTH_HEADER, PREPARE_BACKUP_REQUEST)))
-                .hasType(ErrorType.PERMISSION_DENIED);
-    }
-
-    @Test
-    public void refreshBackupThrowsIfAuthHeaderIsWrong() {
-        assertThatServiceExceptionThrownBy(() -> AtlasFutures.getUnchecked(
-                        atlasBackupService.refreshBackup(WRONG_AUTH_HEADER, refreshBackupRequest(validBackupToken()))))
-                .hasType(ErrorType.PERMISSION_DENIED);
-    }
-
-    @Test
-    public void completeBackupThrowsIfAuthHeaderIsWrong() {
-        assertThatServiceExceptionThrownBy(() -> AtlasFutures.getUnchecked(atlasBackupService.completeBackup(
-                        WRONG_AUTH_HEADER, completeBackupRequest(validBackupToken()))))
-                .hasType(ErrorType.PERMISSION_DENIED);
-    }
-
-    @Test
-    public void preparesBackupSuccessfully() {
-        LockToken lockToken = lockToken();
-        when(mockTimelock.lockImmutableTimestamp(any()))
-                .thenReturn(LockImmutableTimestampResponse.of(IMMUTABLE_TIMESTAMP, lockToken));
-        when(mockTimelock.getFreshTimestamp()).thenReturn(BACKUP_START_TIMESTAMP);
-
-        InProgressBackupToken expectedBackupToken = inProgressBackupToken(lockToken);
-
-        assertThat(AtlasFutures.getUnchecked(atlasBackupService.prepareBackup(AUTH_HEADER, PREPARE_BACKUP_REQUEST)))
-                .isEqualTo(prepareBackupResponseWith(expectedBackupToken));
-        verify(authHeaderValidator).suppliedHeaderMatchesConfig(AUTH_HEADER);
-    }
-
-    @Test
-    public void refreshesBackupSuccessfully() {
-        InProgressBackupToken inProgressBackupToken = validBackupToken();
-
-        Set<LockToken> lockTokens = ImmutableSet.of(inProgressBackupToken.getLockToken());
-        when(mockTimelock.refreshLockLeases(lockTokens))
-                .thenReturn(Futures.immediateFuture(RefreshLockResponseV2.of(lockTokens, mock(Lease.class))));
-
-        assertThat(AtlasFutures.getUnchecked(
-                        atlasBackupService.refreshBackup(AUTH_HEADER, refreshBackupRequest(inProgressBackupToken))))
-                .isEqualTo(refreshBackupResponseWith(inProgressBackupToken));
-
-        verify(authHeaderValidator).suppliedHeaderMatchesConfig(AUTH_HEADER);
-    }
-
-    @Test
-    public void completeBackupContainsNamespaceWhenLockIsHeld() {
-        when(mockTimelock.getFreshTimestamp()).thenReturn(BACKUP_END_TIMESTAMP);
-
-        InProgressBackupToken backupToken = validBackupToken();
-        CompletedBackup expected = completedBackup(backupToken);
-
-        assertThat(AtlasFutures.getUnchecked(
-                        atlasBackupService.completeBackup(AUTH_HEADER, completeBackupRequest(backupToken))))
-                .isEqualTo(completeBackupResponseWith(expected));
-        verify(authHeaderValidator).suppliedHeaderMatchesConfig(AUTH_HEADER);
-    }
-
-    @Test
-    public void completeBackupDoesNotContainNamespaceWhenLockIsLost() {
-        InProgressBackupToken backupToken = invalidBackupToken();
-
-        assertThat(AtlasFutures.getUnchecked(
-                        atlasBackupService.completeBackup(AUTH_HEADER, completeBackupRequest(backupToken))))
-                .isEqualTo(EMPTY_COMPLETE_BACKUP_RESPONSE);
-    }
-
-    @Test
-    public void completeBackupFiltersOutUnsuccessfulNamespaces() {
-        when(mockTimelock.getFreshTimestamp()).thenReturn(BACKUP_END_TIMESTAMP);
-
-        InProgressBackupToken validToken = validBackupToken();
-        InProgressBackupToken invalidToken = invalidBackupToken(OTHER_NAMESPACE, otherTimelock);
-        CompletedBackup expected = completedBackup(validToken);
-
-        assertThat(AtlasFutures.getUnchecked(atlasBackupService.completeBackup(
-                        AUTH_HEADER, completeBackupRequest(validToken, invalidToken))))
-                .isEqualTo(completeBackupResponseWith(expected));
-    }
-
-    private InProgressBackupToken validBackupToken() {
-        LockToken lockToken = lockToken();
-        InProgressBackupToken backupToken = inProgressBackupToken(lockToken);
-
-        Set<LockToken> singleLockToken = ImmutableSet.of(lockToken);
-        when(mockTimelock.unlock(singleLockToken)).thenReturn(Futures.immediateFuture(singleLockToken));
-
-        return backupToken;
-    }
-
-    private InProgressBackupToken invalidBackupToken() {
-        return invalidBackupToken(NAMESPACE, mockTimelock);
-    }
-
-    private static InProgressBackupToken invalidBackupToken(Namespace namespace, AsyncTimelockService timelock) {
-        LockToken lockToken = lockToken();
-        InProgressBackupToken backupToken = inProgressBackupToken(namespace, lockToken);
-
-        when(timelock.unlock(ImmutableSet.of(lockToken))).thenReturn(Futures.immediateFuture(ImmutableSet.of()));
-
-        return backupToken;
-    }
-
-    private static PrepareBackupResponse prepareBackupResponseWith(InProgressBackupToken expected) {
-        return PrepareBackupResponse.of(ImmutableSet.of(expected));
-    }
-
-    private static RefreshBackupRequest refreshBackupRequest(InProgressBackupToken... backupTokens) {
-        return RefreshBackupRequest.of(ImmutableSet.copyOf(backupTokens));
-    }
-
-    private RefreshBackupResponse refreshBackupResponseWith(InProgressBackupToken expected) {
-        return RefreshBackupResponse.of(ImmutableSet.of(expected));
-    }
-
-    private static CompleteBackupRequest completeBackupRequest(InProgressBackupToken... backupTokens) {
-        return CompleteBackupRequest.of(ImmutableSet.copyOf(backupTokens));
-    }
-
-    private static CompleteBackupResponse completeBackupResponseWith(CompletedBackup expected) {
-        return CompleteBackupResponse.of(ImmutableSet.of(expected));
-    }
-
-    private static InProgressBackupToken inProgressBackupToken(LockToken lockToken) {
-        return inProgressBackupToken(NAMESPACE, lockToken);
-    }
-
-    private static InProgressBackupToken inProgressBackupToken(Namespace namespace, LockToken lockToken) {
-        return InProgressBackupToken.builder()
-                .namespace(namespace)
-                .lockToken(lockToken)
-                .immutableTimestamp(IMMUTABLE_TIMESTAMP)
-                .backupStartTimestamp(BACKUP_START_TIMESTAMP)
-                .build();
-    }
-
-    private static LockToken lockToken() {
-        UUID requestId = UUID.randomUUID();
-        return LockToken.of(requestId);
-    }
-
-    private static CompletedBackup completedBackup(InProgressBackupToken backupToken) {
-        return CompletedBackup.builder()
-                .namespace(backupToken.getNamespace())
-                .immutableTimestamp(backupToken.getImmutableTimestamp())
-                .backupStartTimestamp(backupToken.getBackupStartTimestamp())
-                .backupEndTimestamp(BACKUP_END_TIMESTAMP)
-                .build();
-    }
-}u}(j$ (801dcebdae70b481f65782fc2b8bbc6bb19f38c2jW% Utimelock-impl/src/test/java/com/palantir/atlasdb/backup/AtlasRestoreResourceTest.javajY% removedjQ% K jR% Klj[% Klj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreResourceTest.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreResourceTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreResourceTest.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,108 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import static com.palantir.conjure.java.api.testing.Assertions.assertThatServiceExceptionThrownBy;
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.AdditionalMatchers.not;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.when;
-
-import com.google.common.collect.ImmutableMap;
-import com.palantir.atlasdb.backup.api.CompleteRestoreRequest;
-import com.palantir.atlasdb.backup.api.CompleteRestoreResponse;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.futures.AtlasFutures;
-import com.palantir.atlasdb.http.RedirectRetryTargeter;
-import com.palantir.atlasdb.timelock.AsyncTimelockService;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.util.TimelockTestUtils;
-import com.palantir.conjure.java.api.errors.ErrorType;
-import com.palantir.tokens.auth.AuthHeader;
-import com.palantir.tokens.auth.BearerToken;
-import java.net.URL;
-import java.util.List;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.Mock;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@RunWith(MockitoJUnitRunner.class)
-public class AtlasRestoreResourceTest {
-    private static final int REMOTE_PORT = 4321;
-    private static final URL LOCAL = TimelockTestUtils.url("https://localhost:1234");
-    private static final URL REMOTE = TimelockTestUtils.url("https://localhost:" + REMOTE_PORT);
-    private static final RedirectRetryTargeter TARGETER = RedirectRetryTargeter.create(LOCAL, List.of(LOCAL, REMOTE));
-
-    private static final BearerToken BEARER_TOKEN = BearerToken.valueOf("bear");
-    private static final AuthHeader AUTH_HEADER = AuthHeader.of(BEARER_TOKEN);
-    private static final Namespace NAMESPACE = Namespace.of("test");
-    private static final long FAST_FORWARD_TIMESTAMP = 9000L;
-
-    @Mock
-    private AsyncTimelockService mockTimelock;
-
-    @Mock
-    private AsyncTimelockService otherTimelock;
-
-    @Mock
-    private AuthHeaderValidator authHeaderValidator;
-
-    private AtlasRestoreResource atlasRestoreResource;
-
-    @Before
-    public void setUp() {
-        when(authHeaderValidator.suppliedHeaderMatchesConfig(AUTH_HEADER)).thenReturn(true);
-        when(authHeaderValidator.suppliedHeaderMatchesConfig(not(eq(AUTH_HEADER))))
-                .thenReturn(false);
-
-        atlasRestoreResource = new AtlasRestoreResource(
-                authHeaderValidator, TARGETER, str -> str.equals("test") ? mockTimelock : otherTimelock);
-    }
-
-    @Test
-    public void throwsIfWrongAuthHeaderIsProvided() {
-        CompletedBackup completedBackup = completedBackup();
-        AuthHeader wrongHeader = AuthHeader.of(BearerToken.valueOf("imposter"));
-        CompleteRestoreRequest request = CompleteRestoreRequest.of(ImmutableMap.of(NAMESPACE, completedBackup));
-        assertThatServiceExceptionThrownBy(
-                        () -> AtlasFutures.getUnchecked(atlasRestoreResource.completeRestore(wrongHeader, request)))
-                .hasType(ErrorType.PERMISSION_DENIED);
-    }
-
-    @Test
-    public void completesRestoreSuccessfully() {
-        Namespace newNamespace = Namespace.of("newNamespace");
-        CompletedBackup completedBackup = completedBackup();
-        CompleteRestoreResponse response = AtlasFutures.getUnchecked(atlasRestoreResource.completeRestore(
-                AUTH_HEADER, CompleteRestoreRequest.of(ImmutableMap.of(newNamespace, completedBackup))));
-
-        assertThat(response.getSuccessfulNamespaces()).containsExactly(newNamespace);
-        verify(otherTimelock).fastForwardTimestamp(completedBackup.getBackupEndTimestamp());
-    }
-
-    private static CompletedBackup completedBackup() {
-        return CompletedBackup.builder()
-                .namespace(NAMESPACE)
-                .immutableTimestamp(1000L)
-                .backupStartTimestamp(1337L)
-                .backupEndTimestamp(FAST_FORWARD_TIMESTAMP)
-                .build();
-    }
-}u}(j$ (c0a96440d4de41ab01314fddd32e5b2fe2525100jW% Ttimelock-impl/src/test/java/com/palantir/atlasdb/backup/AuthHeaderValidatorTest.javajY% removedjQ% K jR% K2j[% K2j\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAuthHeaderValidatorTest.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAuthHeaderValidatorTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAuthHeaderValidatorTest.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% Xv  @@ -1,50 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import static com.palantir.logsafe.testing.Assertions.assertThat;
-
-import com.palantir.tokens.auth.AuthHeader;
-import com.palantir.tokens.auth.BearerToken;
-import java.util.Optional;
-import org.junit.Test;
-
-public class AuthHeaderValidatorTest {
-    private static final BearerToken BEARER_TOKEN = BearerToken.valueOf("bear");
-    private static final BearerToken WRONG_TOKEN = BearerToken.valueOf("tiger");
-
-    private final AuthHeaderValidator authHeaderValidator = new AuthHeaderValidator(() -> Optional.of(BEARER_TOKEN));
-
-    @Test
-    public void succeedsWithMatchingHeader() {
-        assertThat(authHeaderValidator.suppliedHeaderMatchesConfig(AuthHeader.of(BEARER_TOKEN)))
-                .isTrue();
-    }
-
-    @Test
-    public void failsWithWrongHeader() {
-        assertThat(authHeaderValidator.suppliedHeaderMatchesConfig(AuthHeader.of(WRONG_TOKEN)))
-                .isFalse();
-    }
-
-    @Test
-    public void failsIfSupplierYieldsEmpty() {
-        AuthHeaderValidator emptyValidator = new AuthHeaderValidator(Optional::empty);
-        assertThat(emptyValidator.suppliedHeaderMatchesConfig(AuthHeader.of(BEARER_TOKEN)))
-                .isFalse();
-    }
-}u}(j$ (c6aa6ba00ac03ecc2eae49df8bc4eafa495ed9a5jW% Utimelock-impl/src/test/java/com/palantir/atlasdb/timelock/TimelockNamespacesTest.javajY% modifiedjQ% KjR% K:j[% K;j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimelockNamespacesTest.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimelockNamespacesTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimelockNamespacesTest.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X]  @@ -21,7 +21,6 @@
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.verifyNoMoreInteractions;
@@ -30,17 +29,9 @@
 import com.codahale.metrics.Gauge;
 import com.codahale.metrics.Metric;
 import com.codahale.metrics.MetricRegistry;
-import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.timelock.api.SingleNodeUpdateResponse;
-import com.palantir.atlasdb.timelock.management.DisabledNamespaces;
 import com.palantir.atlasdb.util.MetricsManager;
-import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import com.palantir.tritium.metrics.registry.MetricName;
-import java.util.Map;
 import java.util.UUID;
 import java.util.function.Function;
 import java.util.function.Supplier;
@@ -66,21 +57,16 @@ public class TimelockNamespacesTest {
     @Mock
     private Supplier<Integer> maxNumberOfClientsSupplier;
 
-    @Mock
-    private DisabledNamespaces disabledNamespaces;
-
     private final MetricsManager metricsManager =
             new MetricsManager(new MetricRegistry(), new DefaultTaggedMetricRegistry(), unused -> false);
     private TimelockNamespaces namespaces;
 
     @Before
     public void before() {
-        namespaces =
-                new TimelockNamespaces(metricsManager, serviceFactory, maxNumberOfClientsSupplier, disabledNamespaces);
+        namespaces = new TimelockNamespaces(metricsManager, serviceFactory, maxNumberOfClientsSupplier);
         when(serviceFactory.apply(any())).thenReturn(mock(TimeLockServices.class));
         when(serviceFactory.apply(CLIENT_A)).thenReturn(servicesA);
         when(serviceFactory.apply(CLIENT_B)).thenReturn(servicesB);
-        when(disabledNamespaces.isEnabled(any())).thenReturn(true);
 
         when(maxNumberOfClientsSupplier.get()).thenReturn(DEFAULT_MAX_NUMBER_OF_CLIENTS);
     }
@@ -99,23 +85,6 @@ public void servicesAreOnlyCreatedOncePerClient() {
         verify(serviceFactory, times(1)).apply(any());
     }
 
-    @Test
-    public void cannotCreateServiceForDisabledNamespace() {
-        when(disabledNamespaces.isEnabled(Namespace.of(CLIENT_A))).thenReturn(false);
-
-        assertThatThrownBy(() -> namespaces.get(CLIENT_A)).isInstanceOf(SafeIllegalArgumentException.class);
-    }
-
-    @Test
-    public void canGetIgnoringDisabledWithoutFillingCache() {
-        when(disabledNamespaces.isEnabled(Namespace.of(CLIENT_A))).thenReturn(false);
-
-        TimeLockServices servicesIgnoringDisabled = namespaces.getIgnoringDisabled(CLIENT_A);
-        assertThat(servicesIgnoringDisabled).isEqualTo(servicesA);
-
-        assertThatThrownBy(() -> namespaces.get(CLIENT_A)).isInstanceOf(SafeIllegalArgumentException.class);
-    }
-
     @Test
     public void doesNotCreateNewClientsAfterMaximumNumberHasBeenReached() {
         createMaximumNumberOfClients();
@@ -213,32 +182,6 @@ public void handlesInvalidationOfNonexistentClients() {
                 .doesNotThrowAnyException();
     }
 
-    @Test
-    public void disableInvalidatesServices() {
-        String client = uniqueClient();
-        TimeLockServices services = namespaces.get(client);
-
-        String lockId = "lockId";
-        when(disabledNamespaces.disable(any())).thenReturn(SingleNodeUpdateResponse.successful());
-
-        namespaces.disable(DisableNamespacesRequest.of(ImmutableSet.of(Namespace.of(client)), lockId));
-        verify(services).close();
-    }
-
-    @Test
-    public void disableDoesNotInvalidateServicesOnFailure() {
-        String client = uniqueClient();
-        TimeLockServices services = namespaces.get(client);
-
-        ImmutableSet<Namespace> namespacesToDisable = ImmutableSet.of(Namespace.of(client));
-        String lockId = "lockId";
-        Map<Namespace, String> lockedNamespace = ImmutableMap.of(Namespace.of(client), lockId);
-        when(disabledNamespaces.disable(any())).thenReturn(SingleNodeUpdateResponse.failed(lockedNamespace));
-
-        namespaces.disable(DisableNamespacesRequest.of(namespacesToDisable, lockId));
-        verify(services, never()).close();
-    }
-
     private void createMaximumNumberOfClients() {
         for (int i = 0; i < DEFAULT_MAX_NUMBER_OF_CLIENTS; i++) {
             namespaces.get(uniqueClient());u}(j$ (1a209712a45ea923c4e9b0206f934ad35e5ee1d0jW% otimelock-impl/src/test/java/com/palantir/atlasdb/timelock/management/AllNodesDisabledNamespacesUpdaterTest.javajY% removedjQ% K jR% Mj[% Mj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FAllNodesDisabledNamespacesUpdaterTest.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FAllNodesDisabledNamespacesUpdaterTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FAllNodesDisabledNamespacesUpdaterTest.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% XQ  @@ -1,408 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.timelock.management;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.Mockito.never;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoMoreInteractions;
-import static org.mockito.Mockito.when;
-
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.timelock.TimelockNamespaces;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.DisabledNamespacesUpdaterService;
-import com.palantir.atlasdb.timelock.api.ImmutableSingleNodeUpdateResponse;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.SingleNodeUpdateResponse;
-import com.palantir.atlasdb.timelock.api.SuccessfulDisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.SuccessfulReenableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.UnsuccessfulDisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.UnsuccessfulReenableNamespacesResponse;
-import com.palantir.common.concurrent.CheckedRejectionExecutorService;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.logsafe.exceptions.SafeRuntimeException;
-import com.palantir.tokens.auth.AuthHeader;
-import com.palantir.tokens.auth.BearerToken;
-import java.util.Map;
-import java.util.Set;
-import java.util.UUID;
-import java.util.concurrent.Executors;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.Mock;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@RunWith(MockitoJUnitRunner.class)
-public final class AllNodesDisabledNamespacesUpdaterTest {
-    private static final BearerToken BEARER_TOKEN = BearerToken.valueOf("bear");
-    private static final AuthHeader AUTH_HEADER = AuthHeader.of(BEARER_TOKEN);
-    private static final Namespace NAMESPACE = Namespace.of("namespace");
-    private static final Namespace OTHER_NAMESPACE = Namespace.of("other-namespace");
-    private static final ImmutableSet<Namespace> BOTH_NAMESPACES = ImmutableSet.of(NAMESPACE, OTHER_NAMESPACE);
-    private static final String LOCK_ID = new UUID(13, 37).toString();
-
-    private static final SingleNodeUpdateResponse SUCCESSFUL_SINGLE_NODE_UPDATE = SingleNodeUpdateResponse.successful();
-
-    private static final DisableNamespacesResponse DISABLE_FAILED_SUCCESSFULLY = DisableNamespacesResponse.unsuccessful(
-            UnsuccessfulDisableNamespacesResponse.builder().build());
-    private static final ReenableNamespacesResponse REENABLED_SUCCESSFULLY =
-            ReenableNamespacesResponse.successful(SuccessfulReenableNamespacesResponse.of(true));
-
-    @Mock
-    private TimelockNamespaces localUpdater;
-
-    @Mock
-    private DisabledNamespacesUpdaterService remote1;
-
-    @Mock
-    private DisabledNamespacesUpdaterService remote2;
-
-    private AllNodesDisabledNamespacesUpdater updater;
-
-    @Before
-    public void setUp() {
-        when(remote1.ping(AUTH_HEADER)).thenReturn(true);
-        when(remote2.ping(AUTH_HEADER)).thenReturn(true);
-
-        ImmutableList<DisabledNamespacesUpdaterService> remotes = ImmutableList.of(remote1, remote2);
-        Map<DisabledNamespacesUpdaterService, CheckedRejectionExecutorService> executors = ImmutableMap.of(
-                remote1, new CheckedRejectionExecutorService(Executors.newSingleThreadExecutor()),
-                remote2, new CheckedRejectionExecutorService(Executors.newSingleThreadExecutor()));
-
-        when(remote1.reenable(any(), any())).thenReturn(SUCCESSFUL_SINGLE_NODE_UPDATE);
-        when(remote2.reenable(any(), any())).thenReturn(SUCCESSFUL_SINGLE_NODE_UPDATE);
-        when(localUpdater.reEnable(any())).thenReturn(SUCCESSFUL_SINGLE_NODE_UPDATE);
-
-        updater = new AllNodesDisabledNamespacesUpdater(remotes, executors, localUpdater);
-    }
-
-    @Test
-    public void canDisableSingleNamespace() {
-        when(remote1.disable(any(), any())).thenReturn(SUCCESSFUL_SINGLE_NODE_UPDATE);
-        when(remote2.disable(any(), any())).thenReturn(SUCCESSFUL_SINGLE_NODE_UPDATE);
-        when(localUpdater.disable(any(DisableNamespacesRequest.class))).thenReturn(SUCCESSFUL_SINGLE_NODE_UPDATE);
-
-        DisableNamespacesResponse response =
-                updater.disableOnAllNodes(AUTH_HEADER, disableNamespacesRequest(ImmutableSet.of(NAMESPACE)));
-
-        assertThat(response).isEqualTo(successfulDisableResponse());
-    }
-
-    @Test
-    public void doesNotDisableIfPingFailsOnOneNode() {
-        when(remote2.ping(any())).thenThrow(new SafeRuntimeException("unreachable"));
-
-        DisableNamespacesResponse response =
-                updater.disableOnAllNodes(AUTH_HEADER, disableNamespacesRequest(ImmutableSet.of(NAMESPACE)));
-
-        assertThat(response).isEqualTo(DISABLE_FAILED_SUCCESSFULLY);
-        verify(remote1, never()).disable(any(), any());
-        verify(remote2, never()).disable(any(), any());
-        verify(localUpdater, never()).disable(any());
-    }
-
-    // Case A: start with no disabled namespaces; disable fails on some node; we should re-enable all
-    @Test
-    public void rollsBackDisabledNamespacesAfterPartialFailure() {
-        Set<Namespace> failedNamespaces = ImmutableSet.of(OTHER_NAMESPACE);
-        when(remote1.disable(any(), any())).thenReturn(SUCCESSFUL_SINGLE_NODE_UPDATE);
-        when(remote2.disable(any(), any())).thenReturn(singleNodeUpdateFailure(failedNamespaces));
-
-        when(remote1.reenable(any(), any())).thenReturn(SUCCESSFUL_SINGLE_NODE_UPDATE);
-
-        when(localUpdater.getNamespacesLockedWithDifferentLockId(any(), any())).thenReturn(ImmutableMap.of());
-
-        DisableNamespacesResponse response =
-                updater.disableOnAllNodes(AUTH_HEADER, disableNamespacesRequest(BOTH_NAMESPACES));
-
-        ReenableNamespacesRequest rollbackRequest = ReenableNamespacesRequest.of(BOTH_NAMESPACES, LOCK_ID);
-        verify(remote1).reenable(AUTH_HEADER, rollbackRequest);
-        verify(remote2, never()).reenable(AUTH_HEADER, rollbackRequest);
-        verify(localUpdater, never()).disable(any());
-
-        assertThat(response).isEqualTo(partiallyDisabled(BOTH_NAMESPACES));
-    }
-
-    @Test
-    public void rollsBackIfLocalUpdateFails() {
-        when(remote1.disable(any(), any())).thenReturn(SUCCESSFUL_SINGLE_NODE_UPDATE);
-        when(remote2.disable(any(), any())).thenReturn(SUCCESSFUL_SINGLE_NODE_UPDATE);
-
-        Set<Namespace> failedNamespaces = ImmutableSet.of(OTHER_NAMESPACE);
-        when(localUpdater.disable(DisableNamespacesRequest.of(BOTH_NAMESPACES, LOCK_ID)))
-                .thenReturn(singleNodeUpdateFailure(failedNamespaces));
-
-        DisableNamespacesResponse response =
-                updater.disableOnAllNodes(AUTH_HEADER, disableNamespacesRequest(BOTH_NAMESPACES));
-
-        assertThat(response).isEqualTo(partiallyDisabled(BOTH_NAMESPACES));
-        ReenableNamespacesRequest rollbackRequest = ReenableNamespacesRequest.of(BOTH_NAMESPACES, LOCK_ID);
-        verify(remote1).reenable(AUTH_HEADER, rollbackRequest);
-        verify(remote2).reenable(AUTH_HEADER, rollbackRequest);
-
-        // local update failed, so no need to roll back
-        verify(localUpdater, never()).reEnable(any());
-    }
-
-    // Case B: One namespace already disabled on all nodes => should not disable any namespace on any node
-    //   Note that if B and C are combined, we also don't need to roll back. Some namespaces would be
-    //   in an inconsistent state, but because one namespace is disabled on all nodes, we did not
-    //   successfully disable any namespaces ourselves, and we therefore have nothing to roll back.
-    @Test
-    public void doesNotDisableIfSomeNamespaceAlreadyDisabled() {
-        Set<Namespace> disabledNamespaces = ImmutableSet.of(OTHER_NAMESPACE);
-        SingleNodeUpdateResponse unsuccessfulResponse = singleNodeUpdateFailure(disabledNamespaces);
-
-        when(remote1.disable(any(), any())).thenReturn(unsuccessfulResponse);
-        when(remote2.disable(any(), any())).thenReturn(unsuccessfulResponse);
-        when(localUpdater.getNamespacesLockedWithDifferentLockId(any(), any()))
-                .thenReturn(unsuccessfulResponse.lockedNamespaces());
-
-        DisableNamespacesResponse response =
-                updater.disableOnAllNodes(AUTH_HEADER, disableNamespacesRequest(BOTH_NAMESPACES));
-
-        assertThat(response).isEqualTo(consistentlyDisabled(disabledNamespaces));
-
-        // Should not disable locally
-        verify(localUpdater, never()).disable(any());
-
-        // No re-enable should take place
-        verify(remote1, never()).reenable(any(), any());
-        verify(remote2, never()).reenable(any(), any());
-        verify(localUpdater, never()).reEnable(any());
-    }
-
-    // Case C: If we start with an inconsistent state, we roll back our request
-    @Test
-    public void rollsBackDisableIfInconsistentStateIsFound() {
-        Set<Namespace> disabledNamespaces = ImmutableSet.of(OTHER_NAMESPACE);
-        SingleNodeUpdateResponse unsuccessfulResponse = singleNodeUpdateFailure(disabledNamespaces);
-
-        when(remote1.disable(any(), any())).thenReturn(unsuccessfulResponse);
-        when(remote2.disable(any(), any())).thenReturn(SUCCESSFUL_SINGLE_NODE_UPDATE);
-
-        when(remote2.reenable(any(), any())).thenReturn(SUCCESSFUL_SINGLE_NODE_UPDATE);
-
-        when(localUpdater.getNamespacesLockedWithDifferentLockId(any(), any())).thenReturn(ImmutableMap.of());
-
-        DisableNamespacesResponse response = updater.disableOnAllNodes(
-                AUTH_HEADER, disableNamespacesRequest(ImmutableSet.of(NAMESPACE, OTHER_NAMESPACE)));
-
-        ReenableNamespacesRequest rollbackRequest = ReenableNamespacesRequest.of(BOTH_NAMESPACES, LOCK_ID);
-        verify(remote1, never()).reenable(any(), any());
-        verify(remote2).reenable(AUTH_HEADER, rollbackRequest);
-        verify(localUpdater, never()).reEnable(any());
-        assertThat(response).isEqualTo(partiallyDisabled(BOTH_NAMESPACES));
-    }
-
-    @Test
-    public void disableDoesNotReportConsistentStateWhenNamespacesAreLockedWithDifferentIds() {
-        Set<Namespace> namespaces = ImmutableSet.of(NAMESPACE);
-        String otherLockId = "otherLockId";
-        String yetAnotherLockId = "yetAnotherLockId";
-
-        SingleNodeUpdateResponse lockedWithOtherLock = ImmutableSingleNodeUpdateResponse.builder()
-                .isSuccessful(false)
-                .putLockedNamespaces(NAMESPACE, otherLockId)
-                .build();
-        SingleNodeUpdateResponse lockedWithYetAnotherLock = ImmutableSingleNodeUpdateResponse.builder()
-                .isSuccessful(false)
-                .putLockedNamespaces(NAMESPACE, yetAnotherLockId)
-                .build();
-
-        when(remote1.disable(any(), any())).thenReturn(lockedWithOtherLock);
-        when(remote2.disable(any(), any())).thenReturn(SingleNodeUpdateResponse.successful());
-        when(remote2.reenable(any(), any())).thenReturn(SingleNodeUpdateResponse.successful());
-        when(localUpdater.getNamespacesLockedWithDifferentLockId(any(), any()))
-                .thenReturn(lockedWithYetAnotherLock.lockedNamespaces());
-
-        DisableNamespacesResponse response =
-                updater.disableOnAllNodes(AUTH_HEADER, disableNamespacesRequest(namespaces));
-        verify(remote1, never()).reenable(any(), any());
-        verify(remote2).reenable(any(), any());
-        assertThat(response).isEqualTo(partiallyDisabled(namespaces));
-    }
-
-    @Test
-    public void reEnableDoesNotReportConsistentStateWhenNamespacesAreLockedWithDifferentIds() {
-        Set<Namespace> namespaces = ImmutableSet.of(NAMESPACE);
-        String otherLockId = "otherLockId";
-        String yetAnotherLockId = "yetAnotherLockId";
-
-        SingleNodeUpdateResponse lockedWithOtherLock = ImmutableSingleNodeUpdateResponse.builder()
-                .isSuccessful(false)
-                .putLockedNamespaces(NAMESPACE, otherLockId)
-                .build();
-        SingleNodeUpdateResponse lockedWithYetAnotherLock = ImmutableSingleNodeUpdateResponse.builder()
-                .isSuccessful(false)
-                .putLockedNamespaces(NAMESPACE, yetAnotherLockId)
-                .build();
-
-        when(remote1.reenable(any(), any())).thenReturn(lockedWithOtherLock);
-        when(remote2.reenable(any(), any())).thenReturn(SingleNodeUpdateResponse.successful());
-        when(localUpdater.reEnable(any())).thenReturn(lockedWithYetAnotherLock);
-
-        ReenableNamespacesResponse reenableResponse =
-                updater.reEnableOnAllNodes(AUTH_HEADER, ReenableNamespacesRequest.of(namespaces, LOCK_ID));
-        assertThat(reenableResponse).isEqualTo(partiallyLocked(namespaces));
-        verify(remote1, never()).disable(any(), any());
-        verify(remote2, never()).disable(any(), any());
-    }
-
-    @Test
-    public void reportsRollbackFailures() {
-        Set<Namespace> failedNamespaces = ImmutableSet.of(OTHER_NAMESPACE);
-
-        when(remote1.disable(any(), any())).thenReturn(SUCCESSFUL_SINGLE_NODE_UPDATE);
-        when(remote2.disable(any(), any())).thenReturn(singleNodeUpdateFailure(failedNamespaces));
-
-        when(localUpdater.getNamespacesLockedWithDifferentLockId(any(), any())).thenReturn(ImmutableMap.of());
-
-        when(remote1.reenable(any(), any())).thenReturn(singleNodeUpdateFailure(failedNamespaces));
-
-        DisableNamespacesResponse response =
-                updater.disableOnAllNodes(AUTH_HEADER, disableNamespacesRequest(BOTH_NAMESPACES));
-
-        verify(remote1).reenable(any(), any());
-        verify(remote2, never()).reenable(any(), any());
-        verify(localUpdater).getNamespacesLockedWithDifferentLockId(any(), any());
-        verifyNoMoreInteractions(localUpdater);
-        assertThat(response).isEqualTo(partiallyDisabled(failedNamespaces));
-    }
-
-    @Test
-    public void handlesNodesBecomingUnreachableDuringDisable() {
-        when(remote1.disable(any(), any())).thenReturn(SUCCESSFUL_SINGLE_NODE_UPDATE);
-        when(remote1.reenable(any(), any())).thenReturn(SUCCESSFUL_SINGLE_NODE_UPDATE);
-        when(remote2.disable(any(), any())).thenThrow(new SafeRuntimeException("unreachable"));
-        when(remote2.reenable(any(), any())).thenThrow(new SafeRuntimeException("unreachable"));
-
-        when(localUpdater.getNamespacesLockedWithDifferentLockId(any(), any())).thenReturn(ImmutableMap.of());
-
-        DisableNamespacesResponse response =
-                updater.disableOnAllNodes(AUTH_HEADER, disableNamespacesRequest(BOTH_NAMESPACES));
-
-        // We don't know if the request succeeded or failed on remote2, so we should try our best to roll back
-        verify(remote2).reenable(any(), any());
-
-        verify(remote1).reenable(any(), any());
-
-        // No known bad namespaces
-        assertThat(response).isEqualTo(DISABLE_FAILED_SUCCESSFULLY);
-    }
-
-    @Test
-    public void handlesNodesBecomingUnreachableDuringReEnable() {
-        when(remote1.reenable(any(), any())).thenReturn(SUCCESSFUL_SINGLE_NODE_UPDATE);
-        when(remote2.reenable(any(), any())).thenThrow(new SafeRuntimeException("unreachable"));
-        when(localUpdater.reEnable(any())).thenReturn(SUCCESSFUL_SINGLE_NODE_UPDATE);
-
-        ReenableNamespacesRequest request = ReenableNamespacesRequest.of(BOTH_NAMESPACES, LOCK_ID);
-        ReenableNamespacesResponse response = updater.reEnableOnAllNodes(AUTH_HEADER, request);
-
-        assertThat(response).isEqualTo(partiallyLocked(ImmutableSet.of()));
-    }
-
-    @Test
-    public void canReEnableSingleNamespace() {
-        ReenableNamespacesRequest request = ReenableNamespacesRequest.of(ImmutableSet.of(NAMESPACE), LOCK_ID);
-        when(remote1.reenable(AUTH_HEADER, request)).thenReturn(SUCCESSFUL_SINGLE_NODE_UPDATE);
-        when(remote2.reenable(AUTH_HEADER, request)).thenReturn(SUCCESSFUL_SINGLE_NODE_UPDATE);
-        when(localUpdater.reEnable(request)).thenReturn(SUCCESSFUL_SINGLE_NODE_UPDATE);
-
-        ReenableNamespacesResponse response = updater.reEnableOnAllNodes(AUTH_HEADER, request);
-        assertThat(response).isEqualTo(REENABLED_SUCCESSFULLY);
-    }
-
-    // Case A: Start with one disabled namespace, re-enable fails on some node, we should re-disable
-    @Test
-    public void reEnableCanPartiallyFail() {
-        ImmutableSet<Namespace> oneNamespace = ImmutableSet.of(NAMESPACE);
-        ReenableNamespacesRequest request = ReenableNamespacesRequest.of(oneNamespace, LOCK_ID);
-
-        when(remote1.reenable(AUTH_HEADER, request)).thenReturn(SingleNodeUpdateResponse.successful());
-        when(remote2.reenable(AUTH_HEADER, request)).thenReturn(singleNodeUpdateFailure(oneNamespace));
-        when(localUpdater.reEnable(request)).thenReturn(SingleNodeUpdateResponse.successful());
-
-        ReenableNamespacesResponse response = updater.reEnableOnAllNodes(AUTH_HEADER, request);
-        assertThat(response).isEqualTo(partiallyLocked(oneNamespace));
-        // verify we still unlocked locally
-        verify(localUpdater).reEnable(request);
-    }
-
-    // Case B: re-enable with wrong lock -> don't re-enable anywhere
-    @Test
-    public void doesNotReEnableIfSomeNamespaceDisabledWithOtherLock() {
-        Set<Namespace> disabledNamespaces = ImmutableSet.of(OTHER_NAMESPACE);
-        SingleNodeUpdateResponse unsuccessfulResponse = singleNodeUpdateFailure(disabledNamespaces);
-
-        when(remote1.reenable(any(), any())).thenReturn(unsuccessfulResponse);
-        when(remote2.reenable(any(), any())).thenReturn(unsuccessfulResponse);
-        when(localUpdater.reEnable(any())).thenReturn(unsuccessfulResponse);
-
-        ReenableNamespacesResponse response =
-                updater.reEnableOnAllNodes(AUTH_HEADER, ReenableNamespacesRequest.of(BOTH_NAMESPACES, LOCK_ID));
-
-        assertThat(response).isEqualTo(consistentlyLocked(disabledNamespaces));
-    }
-
-    private static DisableNamespacesRequest disableNamespacesRequest(Set<Namespace> namespaces) {
-        return DisableNamespacesRequest.of(namespaces, LOCK_ID);
-    }
-
-    private static DisableNamespacesResponse successfulDisableResponse() {
-        return DisableNamespacesResponse.successful(SuccessfulDisableNamespacesResponse.of(LOCK_ID));
-    }
-
-    private static DisableNamespacesResponse consistentlyDisabled(Set<Namespace> consistentlyDisabled) {
-        return DisableNamespacesResponse.unsuccessful(UnsuccessfulDisableNamespacesResponse.builder()
-                .consistentlyDisabledNamespaces(consistentlyDisabled)
-                .build());
-    }
-
-    private static SingleNodeUpdateResponse singleNodeUpdateFailure(Set<Namespace> lockedNamespaces) {
-        Map<Namespace, String> locked =
-                KeyedStream.of(lockedNamespaces).map(_unused -> LOCK_ID).collectToMap();
-        return SingleNodeUpdateResponse.failed(locked);
-    }
-
-    private static DisableNamespacesResponse partiallyDisabled(Set<Namespace> partiallyDisabled) {
-        return DisableNamespacesResponse.unsuccessful(UnsuccessfulDisableNamespacesResponse.builder()
-                .partiallyDisabledNamespaces(partiallyDisabled)
-                .build());
-    }
-
-    private static ReenableNamespacesResponse consistentlyLocked(Set<Namespace> consistentlyLocked) {
-        return ReenableNamespacesResponse.unsuccessful(UnsuccessfulReenableNamespacesResponse.builder()
-                .consistentlyLockedNamespaces(consistentlyLocked)
-                .build());
-    }
-
-    private static ReenableNamespacesResponse partiallyLocked(Set<Namespace> partiallyLocked) {
-        return ReenableNamespacesResponse.unsuccessful(UnsuccessfulReenableNamespacesResponse.builder()
-                .partiallyLockedNamespaces(partiallyLocked)
-                .build());
-    }
-}u      }(j$ (3736a3b1a48dc1bff2b7f6b647983c9ee2704e63jW% `timelock-impl/src/test/java/com/palantir/atlasdb/timelock/management/DisabledNamespacesTest.javajY% removedjQ% K jR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FDisabledNamespacesTest.javaj^% https://github.com/palantir/atlasdb/raw/6968365ad100ec8b0dc5afe4340571fb4015a546/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FDisabledNamespacesTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FDisabledNamespacesTest.java?ref=6968365ad100ec8b0dc5afe4340571fb4015a546jb% X  @@ -1,181 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.timelock.management;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.SingleNodeUpdateResponse;
-import com.palantir.paxos.SqliteConnections;
-import java.util.UUID;
-import javax.sql.DataSource;
-import org.junit.Before;
-import org.junit.Rule;
-import org.junit.Test;
-import org.junit.rules.TemporaryFolder;
-
-public class DisabledNamespacesTest {
-    private static final String LOCK_ID = new UUID(13, 52).toString();
-    private static final String OTHER_LOCK_ID = new UUID(123, 45).toString();
-
-    @Rule
-    public TemporaryFolder tempFolder = new TemporaryFolder();
-
-    private static final Namespace FIRST = Namespace.of("fst");
-    private static final Namespace SECOND = Namespace.of("snd");
-
-    private DisabledNamespaces disabledNamespaces;
-
-    @Before
-    public void setup() {
-        DataSource dataSource = SqliteConnections.getDefaultConfiguredPooledDataSource(
-                tempFolder.getRoot().toPath());
-        disabledNamespaces = DisabledNamespaces.create(dataSource);
-    }
-
-    @Test
-    public void notDisabledByDefault() {
-        assertThat(disabledNamespaces.isDisabled(FIRST)).isFalse();
-        assertThat(disabledNamespaces.isDisabled(SECOND)).isFalse();
-        assertThat(disabledNamespaces.disabledNamespaces()).isEmpty();
-    }
-
-    @Test
-    public void canDisableSingleNamespace() {
-        disabledNamespaces.disable(disableNamespacesRequest(FIRST));
-
-        assertThat(disabledNamespaces.isDisabled(FIRST)).isTrue();
-        assertThat(disabledNamespaces.isDisabled(SECOND)).isFalse();
-        assertThat(disabledNamespaces.disabledNamespaces()).containsExactly(FIRST);
-    }
-
-    @Test
-    public void canDisableMultipleNamespaces() {
-        disabledNamespaces.disable(disableNamespacesRequest(FIRST));
-        disabledNamespaces.disable(disableNamespacesRequest(SECOND));
-
-        assertThat(disabledNamespaces.isDisabled(FIRST)).isTrue();
-        assertThat(disabledNamespaces.isDisabled(SECOND)).isTrue();
-        assertThat(disabledNamespaces.disabledNamespaces()).containsExactlyInAnyOrder(FIRST, SECOND);
-    }
-
-    @Test
-    public void disableFailsIfAlreadyDisabledWithDifferentId() {
-        SingleNodeUpdateResponse firstResponse = disabledNamespaces.disable(disableNamespacesRequest(FIRST));
-        assertThat(firstResponse).isEqualTo(successfulResponse());
-
-        SingleNodeUpdateResponse secondResponse =
-                disabledNamespaces.disable(DisableNamespacesRequest.of(ImmutableSet.of(FIRST), "otherLockId"));
-        assertThat(secondResponse).isEqualTo(unsuccessfulResponse());
-    }
-
-    @Test
-    public void disableSucceedsIfAlreadyDisabledWithTheSameId() {
-        SingleNodeUpdateResponse firstResponse = disabledNamespaces.disable(disableNamespacesRequest(FIRST));
-        assertThat(firstResponse).isEqualTo(successfulResponse());
-
-        SingleNodeUpdateResponse secondResponse = disabledNamespaces.disable(disableNamespacesRequest(FIRST));
-        assertThat(secondResponse).isEqualTo(successfulResponse());
-    }
-
-    @Test
-    public void disableFailsIfPartiallyDisabledWithOtherLockId() {
-        String otherLockId = "otherLockId";
-        SingleNodeUpdateResponse firstResponse =
-                disabledNamespaces.disable(DisableNamespacesRequest.of(ImmutableSet.of(FIRST), otherLockId));
-
-        assertThat(firstResponse).isEqualTo(successfulResponse());
-
-        SingleNodeUpdateResponse secondResponse = disabledNamespaces.disable(disableNamespacesRequest(SECOND, FIRST));
-
-        assertThat(disabledNamespaces.isDisabled(SECOND)).isFalse();
-        assertThat(secondResponse).isEqualTo(unsuccessfulResponse(otherLockId));
-
-        SingleNodeUpdateResponse thirdResponse = disabledNamespaces.disable(disableNamespacesRequest(FIRST, SECOND));
-
-        assertThat(disabledNamespaces.isDisabled(SECOND)).isFalse();
-        assertThat(thirdResponse).isEqualTo(unsuccessfulResponse(otherLockId));
-    }
-
-    @Test
-    public void enableFailsIfDisabledWithWrongLock() {
-        disabledNamespaces.disable(disableNamespacesRequest(FIRST));
-        DisableNamespacesRequest wrongLockId = DisableNamespacesRequest.of(ImmutableSet.of(SECOND), OTHER_LOCK_ID);
-        disabledNamespaces.disable(wrongLockId);
-
-        SingleNodeUpdateResponse response =
-                disabledNamespaces.reEnable(ReenableNamespacesRequest.of(ImmutableSet.of(FIRST, SECOND), LOCK_ID));
-
-        assertThat(response).isEqualTo(SingleNodeUpdateResponse.failed(ImmutableMap.of(SECOND, OTHER_LOCK_ID)));
-
-        // non-conflicting namespaces should still be re-enabled
-        assertThat(disabledNamespaces.isDisabled(FIRST)).isFalse();
-        assertThat(disabledNamespaces.isDisabled(SECOND)).isTrue();
-    }
-
-    @Test
-    public void canReEnableNamespaces() {
-        disabledNamespaces.disable(disableNamespacesRequest(FIRST));
-        disabledNamespaces.disable(disableNamespacesRequest(SECOND));
-        disabledNamespaces.reEnable(reEnableNamespacesRequest(FIRST));
-
-        assertThat(disabledNamespaces.isDisabled(FIRST)).isFalse();
-        assertThat(disabledNamespaces.isDisabled(SECOND)).isTrue();
-        assertThat(disabledNamespaces.disabledNamespaces()).containsExactly(SECOND);
-
-        disabledNamespaces.reEnable(reEnableNamespacesRequest(SECOND));
-        assertThat(disabledNamespaces.isDisabled(SECOND)).isFalse();
-        assertThat(disabledNamespaces.disabledNamespaces()).isEmpty();
-    }
-
-    @Test
-    public void disablingAndReEnablingAreIdempotent() {
-        disabledNamespaces.disable(disableNamespacesRequest(FIRST));
-        disabledNamespaces.disable(disableNamespacesRequest(FIRST));
-        disabledNamespaces.disable(disableNamespacesRequest(FIRST));
-
-        assertThat(disabledNamespaces.isDisabled(FIRST)).isTrue();
-
-        disabledNamespaces.reEnable(reEnableNamespacesRequest(FIRST));
-        disabledNamespaces.reEnable(reEnableNamespacesRequest(FIRST));
-        assertThat(disabledNamespaces.isDisabled(FIRST)).isFalse();
-    }
-
-    private DisableNamespacesRequest disableNamespacesRequest(Namespace... namespaces) {
-        return DisableNamespacesRequest.of(ImmutableSet.copyOf(namespaces), LOCK_ID);
-    }
-
-    private ReenableNamespacesRequest reEnableNamespacesRequest(Namespace... namespaces) {
-        return ReenableNamespacesRequest.of(ImmutableSet.copyOf(namespaces), LOCK_ID);
-    }
-
-    private SingleNodeUpdateResponse successfulResponse() {
-        return SingleNodeUpdateResponse.successful();
-    }
-
-    private SingleNodeUpdateResponse unsuccessfulResponse() {
-        return unsuccessfulResponse(LOCK_ID);
-    }
-
-    private SingleNodeUpdateResponse unsuccessfulResponse(String lockId) {
-        return SingleNodeUpdateResponse.failed(ImmutableMap.of(FIRST, lockId));
-    }
-}u}(j$ (bcfe4c879cd9d8838eb1af585f374c688e9af44bjW% htimelock-impl/src/test/java/com/palantir/atlasdb/timelock/management/TimeLockManagementResourceTest.javajY% modifiedjQ% KjR% K>j[% K?j\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResourceTest.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResourceTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fmanagement%2FTimeLockManagementResourceTest.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -16,36 +16,23 @@
 
 package com.palantir.atlasdb.timelock.management;
 
-import static com.palantir.conjure.java.api.testing.Assertions.assertThatServiceExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoInteractions;
-import static org.mockito.Mockito.when;
 
 import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.backup.AuthHeaderValidator;
-import com.palantir.atlasdb.futures.AtlasFutures;
 import com.palantir.atlasdb.http.RedirectRetryTargeter;
 import com.palantir.atlasdb.timelock.TimeLockServices;
 import com.palantir.atlasdb.timelock.TimelockNamespaces;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesRequest;
 import com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.common.concurrent.PTExecutors;
-import com.palantir.conjure.java.api.errors.ErrorType;
 import com.palantir.paxos.SqliteConnections;
 import com.palantir.tokens.auth.AuthHeader;
 import com.palantir.tokens.auth.BearerToken;
 import java.net.MalformedURLException;
 import java.net.URL;
 import java.nio.file.Path;
 import java.util.Set;
-import java.util.UUID;
 import java.util.concurrent.ExecutionException;
 import java.util.function.Function;
 import java.util.function.Supplier;
@@ -61,21 +48,8 @@
 public class TimeLockManagementResourceTest {
     private static final String NAMESPACE_1 = "namespace_1";
     private static final String NAMESPACE_2 = "namespace_2";
-    private static final ImmutableSet<Namespace> NAMESPACES =
-            ImmutableSet.of(Namespace.of(NAMESPACE_1), Namespace.of(NAMESPACE_2));
-    private static final String LOCK_ID = UUID.randomUUID().toString();
-    private static final DisableNamespacesRequest DISABLE_NAMESPACES_REQUEST =
-            DisableNamespacesRequest.of(NAMESPACES, LOCK_ID);
     private static final BearerToken BEARER_TOKEN = BearerToken.valueOf("bear");
-    private static final BearerToken WRONG_BEARER_TOKEN = BearerToken.valueOf("tiger");
     private static final AuthHeader AUTH_HEADER = AuthHeader.of(BEARER_TOKEN);
-    private static final AuthHeader WRONG_AUTH_HEADER = AuthHeader.of(WRONG_BEARER_TOKEN);
-
-    @Mock
-    private AuthHeaderValidator authHeaderValidator;
-
-    @Mock
-    private AllNodesDisabledNamespacesUpdater allNodesDisabledNamespacesUpdater;
 
     @Mock
     private Function<String, TimeLockServices> serviceFactory;
@@ -101,54 +75,19 @@ public void setup() throws MalformedURLException {
         PersistentNamespaceContext persistentNamespaceContext = PersistentNamespaceContexts.timestampBoundPaxos(
                 rootFolderPath, SqliteConnections.getDefaultConfiguredPooledDataSource(rootFolderPath));
 
-        DisabledNamespaces disabledNamespaces = mock(DisabledNamespaces.class);
         TimelockNamespaces namespaces =
-                new TimelockNamespaces(metricsManager, serviceFactory, maxNumberOfClientsSupplier, disabledNamespaces);
+                new TimelockNamespaces(metricsManager, serviceFactory, maxNumberOfClientsSupplier);
 
-        when(authHeaderValidator.suppliedHeaderMatchesConfig(AUTH_HEADER)).thenReturn(true);
-        when(authHeaderValidator.suppliedHeaderMatchesConfig(WRONG_AUTH_HEADER)).thenReturn(false);
         timeLockManagementResource = TimeLockManagementResource.create(
                 persistentNamespaceContext,
                 namespaces,
-                allNodesDisabledNamespacesUpdater,
-                authHeaderValidator,
                 redirectRetryTargeter,
                 new ServiceLifecycleController(serviceStopper, PTExecutors.newSingleThreadScheduledExecutor()));
 
         createDirectoryForLeaderForEachClientUseCase(NAMESPACE_1);
         createDirectoryInRootDataDirectory(NAMESPACE_2);
     }
 
-    @Test
-    public void disableTimeLockThrowsIfAuthHeaderIsWrong() {
-        assertThatServiceExceptionThrownBy(() -> AtlasFutures.getUnchecked(
-                        timeLockManagementResource.disableTimelock(WRONG_AUTH_HEADER, DISABLE_NAMESPACES_REQUEST)))
-                .hasType(ErrorType.PERMISSION_DENIED);
-        verifyNoInteractions(allNodesDisabledNamespacesUpdater);
-    }
-
-    @Test
-    public void disableTimeLockCallsUpdater() {
-        timeLockManagementResource.disableTimelock(AUTH_HEADER, DISABLE_NAMESPACES_REQUEST);
-        verify(allNodesDisabledNamespacesUpdater).disableOnAllNodes(AUTH_HEADER, DISABLE_NAMESPACES_REQUEST);
-    }
-
-    @Test
-    public void reEnableTimeLockThrowsIfAuthHeaderIsWrong() {
-        ReenableNamespacesRequest request = ReenableNamespacesRequest.of(NAMESPACES, LOCK_ID);
-        assertThatServiceExceptionThrownBy(() -> AtlasFutures.getUnchecked(
-                        timeLockManagementResource.reenableTimelock(WRONG_AUTH_HEADER, request)))
-                .hasType(ErrorType.PERMISSION_DENIED);
-        verifyNoInteractions(allNodesDisabledNamespacesUpdater);
-    }
-
-    @Test
-    public void reEnableTimeLockCallsUpdater() {
-        ReenableNamespacesRequest request = ReenableNamespacesRequest.of(NAMESPACES, LOCK_ID);
-        timeLockManagementResource.reenableTimelock(AUTH_HEADER, request);
-        verify(allNodesDisabledNamespacesUpdater).reEnableOnAllNodes(AUTH_HEADER, request);
-    }
-
     @Test
     public void doesNotLoadLeaderPaxosAsNamespace() throws ExecutionException, InterruptedException {
         Set<String> namespaces =u}(j$ (634ec237068bdb5e4eca5f39b69d47ee4da52c92jW% ctimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchValueIntegrationTest.javajY% modifiedjQ% KjR% Kj[% Kj\% https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.javaj^% https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.javaj`% https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchValueIntegrationTest.java?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -43,6 +43,8 @@
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.transaction.api.TransactionSerializableConflictException;
 import com.palantir.atlasdb.util.ByteArrayUtilities;
+import com.palantir.flake.FlakeRetryingRule;
+import com.palantir.flake.ShouldRetry;
 import com.palantir.lock.AtlasCellLockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.watch.LockEvent;
@@ -71,7 +73,9 @@
 import org.junit.ClassRule;
 import org.junit.Test;
 import org.junit.rules.RuleChain;
+import org.junit.rules.TestRule;
 
+@ShouldRetry // Occasionally there are timeouts when talking to Timelock, which cause a bunch of tests to flake
 public final class LockWatchValueIntegrationTest {
     private static final byte[] DATA_1 = "foo".getBytes(StandardCharsets.UTF_8);
     private static final byte[] DATA_2 = "Caecilius est in horto".getBytes(StandardCharsets.UTF_8);
@@ -110,8 +114,11 @@ public final class LockWatchValueIntegrationTest {
     private static final byte[] COL_3 = PtBytes.toBytes("columns");
     private static final ImmutableList<byte[]> COLS = ImmutableList.of(COL_1, COL_2, COL_3);
 
-    @ClassRule
-    public static final RuleChain ruleChain = CLUSTER.getRuleChain();
+    public static final TestRule flakeRetryingRule = new FlakeRetryingRule();
+
+    @ClassRule // Ordered such that we retry _after_ resetting any temporary state
+    public static final RuleChain ruleChain =
+            RuleChain.outerRule(flakeRetryingRule).around(CLUSTER.getRuleChain());
 
     private TransactionManager txnManager;
 
@@ -538,6 +545,9 @@ public void lateAbortingTransactionDoesNotFlushValuesToCentralCache() {
     }
 
     @Test
+    @ShouldRetry // The test fails when trying to cache a value that is currently locked.
+    // The open question is whether this _should_ fail when there is a locked value being cached on top of, or if
+    // there is a better way to handle this.
     public void valueStressTest() {
         createTransactionManager(1.0);
         int numThreads = 200;u}(j$ (a340830ce8d0fc147ae3f6744f1a6b05c716aa22jW% 
versions.lockjY% modifiedjQ% KjR% Kj[% K"j\% _https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/versions.lockj^% ^https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/versions.lockj`% qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% Xp
  @@ -8,23 +8,23 @@ com.boundary:high-scale-lib:1.0.6 (2 constraints: 9d14d4a0)
 com.clearspring.analytics:stream:2.5.2 (1 constraints: 970f7788)
 com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
-com.fasterxml.jackson.core:jackson-annotations:2.14.1 (24 constraints: be81d7a7)
-com.fasterxml.jackson.core:jackson-core:2.14.1 (22 constraints: acb5d245)
-com.fasterxml.jackson.core:jackson-databind:2.14.1 (37 constraints: f8b9d0e5)
-com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.1 (2 constraints: e1338f00)
-com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.1 (1 constraints: 7f1c9ca4)
-com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.1 (4 constraints: 2144822a)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.1 (4 constraints: 333fd1af)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.1 (3 constraints: 6b30165e)
-com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.1 (2 constraints: 322bf5af)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.1 (3 constraints: 6b30165e)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.14.1 (2 constraints: d92e4169)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.1 (1 constraints: 411979bb)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.1 (2 constraints: 251d9309)
-com.fasterxml.jackson.module:jackson-module-afterburner:2.14.1 (1 constraints: 9b1c97a6)
-com.fasterxml.jackson.module:jackson-module-blackbird:2.14.1 (1 constraints: b40e625e)
-com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.1 (2 constraints: d92e4169)
-com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.1 (1 constraints: b40e625e)
+com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c381aaba)
+com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bab50372)
+com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 05ba0f33)
+com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e233de00)
+com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7f1c9ca4)
+com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2 (4 constraints: 2244332b)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 343f74b0)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6c308f5e)
+com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 322bf5af)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6c308f5e)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.14.2 (2 constraints: db2e8469)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 411979bb)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.2 (2 constraints: 251d9309)
+com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9b1c97a6)
+com.fasterxml.jackson.module:jackson-module-blackbird:2.14.2 (1 constraints: b40e625e)
+com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.2 (2 constraints: db2e8469)
+com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2 (1 constraints: b40e625e)
 com.github.ben-manes.caffeine:caffeine:3.1.2 (13 constraints: 12ce69f8)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)u}(j$ (cdae1ff403f7e11081effe4932c8d9aa79627fd8jW% versions.propsjY% modifiedjQ% KjR% Kj[% Kj\% `https://github.com/palantir/atlasdb/blob/b162448980c8dcd4370c11a11e92f79762579b05/versions.propsj^% _https://github.com/palantir/atlasdb/raw/b162448980c8dcd4370c11a11e92f79762579b05/versions.propsj`% rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=b162448980c8dcd4370c11a11e92f79762579b05jb% X  @@ -1,7 +1,7 @@
 com.boundary:high-scale-lib = 1.0.6
 com.ea.agentloader:ea-agent-loader = 1.0.3
-com.fasterxml.jackson.*:* = 2.14.1
-com.fasterxml.jackson.core:jackson-databind = 2.14.1
+com.fasterxml.jackson.*:* = 2.14.2
+com.fasterxml.jackson.core:jackson-databind = 2.14.2
 com.github.ben-manes.caffeine:caffeine = 3.1.2
 com.github.peterwippermann.junit4:parameterized-suite = 1.1.0
 com.github.rholder:guava-retrying = 2.0.0ueu(4a00adc18ee71aa582dc6f726268c1e54b0e43fa}(sha(4a00adc18ee71aa582dc6f726268c1e54b0e43fanode_idEC_kwDOAjP5fdoAKDRhMDBhZGMxOGVlNzFhYTU4MmRjNmY3MjYyNjhjMWU1NGIwZTQzZmEcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-07-21T14:12:03Zu	committer}(jH) svc-autoreleasejJ) -pd-foundry-infrastructure-notify@palantir.comjL) 2023-07-21T14:12:03ZumessageAutorelease 0.900.0

[skip ci]tree}(j@) (d74355dc1cc54da080d649a107e82c18539d7288url`https://api.github.com/repos/palantir/atlasdb/git/trees/d74355dc1cc54da080d649a107e82c18539d7288ujX) bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4a00adc18ee71aa582dc6f726268c1e54b0e43fa
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmS6kjkACgkQhbrR8ip7mDBLLgD/e/czqVaF0OhHinyAD+Wr52O0
OqnRdVcY/IwI/H9s6W8BAOyQLmSLXareLDHWBcMfyu7bBko/khV8+VWU6FbRtOnA
=L7Pt
-----END PGP SIGNATURE-----
payloadX0  tree d74355dc1cc54da080d649a107e82c18539d7288
parent 0995b739130e9348c9ed6dbc56b28407ccad2417
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1689948723 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1689948723 +0000

Autorelease 0.900.0

[skip ci]uujX) ^https://api.github.com/repos/palantir/atlasdb/commits/4a00adc18ee71aa582dc6f726268c1e54b0e43fahtml_urlShttps://github.com/palantir/atlasdb/commit/4a00adc18ee71aa582dc6f726268c1e54b0e43facomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4a00adc18ee71aa582dc6f726268c1e54b0e43fa/commentsjF) }(loginsvc-autoreleaseidJ(jB) MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5jX) ,https://api.github.com/users/svc-autoreleasejf) "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminujN) }(jk) svc-autoreleasejm) J(jB) MDQ6VXNlcjUxNzE4MzQ2jo) 4https://avatars.githubusercontent.com/u/51718346?v=4jq) h5jX) ,https://api.github.com/users/svc-autoreleasejf) "https://github.com/svc-autoreleasejt) 6https://api.github.com/users/svc-autorelease/followersjv) Chttps://api.github.com/users/svc-autorelease/following{/other_user}jx) <https://api.github.com/users/svc-autorelease/gists{/gist_id}jz) Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j|) :https://api.github.com/users/svc-autorelease/subscriptionsj~) 1https://api.github.com/users/svc-autorelease/orgsj) 2https://api.github.com/users/svc-autorelease/reposj) =https://api.github.com/users/svc-autorelease/events{/privacy}j) <https://api.github.com/users/svc-autorelease/received_eventsj) Userj) uparents]}(j@) (0995b739130e9348c9ed6dbc56b28407ccad2417jX) ^https://api.github.com/repos/palantir/atlasdb/commits/0995b739130e9348c9ed6dbc56b28407ccad2417jf) Shttps://github.com/palantir/atlasdb/commit/0995b739130e9348c9ed6dbc56b28407ccad2417uastats}(totalK 	additionsK 	deletionsK ufiles]}(j@) (95dbc0937d276331c37eb26d73abac99d86081a9filename changelog/0.900.0/pr-6665.v2.ymlstatusrenamedj) K j) K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/4a00adc18ee71aa582dc6f726268c1e54b0e43fa/changelog%2F0.900.0%2Fpr-6665.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/4a00adc18ee71aa582dc6f726268c1e54b0e43fa/changelog%2F0.900.0%2Fpr-6665.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.900.0%2Fpr-6665.v2.yml?ref=4a00adc18ee71aa582dc6f726268c1e54b0e43faprevious_filename$changelog/@unreleased/pr-6665.v2.ymluau(c0ab932779c9b04beb4ae75289591def95e27f45}(sha(c0ab932779c9b04beb4ae75289591def95e27f45node_idEC_kwDOAjP5fdoAKGMwYWI5MzI3NzljOWIwNGJlYjRhZTc1Mjg5NTkxZGVmOTVlMjdmNDUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-24T16:01:58Zu	committer}(j) 
Sam Kramerj) skramer@palantir.comj) 2023-04-24T16:01:58Zumessagecatching locally, non-idealtree}(j) (ee6bdbf7f2d00ded17c88bf23077bd4f4de438f2url`https://api.github.com/repos/palantir/atlasdb/git/trees/ee6bdbf7f2d00ded17c88bf23077bd4f4de438f2uj) bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c0ab932779c9b04beb4ae75289591def95e27f45
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRGp/YACgkQmPPOpKR4
XS3Z1ggAvPhL80LmwCoFXif7MVh7H/cLgQFJRb7xs4hoTad4KLXkYYV29UUgwIqz
7zO9KTVS1wYkd9zjZdZzOQK7tm8oz4HneaoGvL8x3sDgL5ghc4K1kCRC2PD8BuWR
JBQqWgX4+c5a7TCkdlf/3doTL7DoBoW6sKv1eIkdBAh01fvM1W6H+JPebgqvhmtv
0IvxX5/Lffo17BPvWWlCVDpg8QILISL4Gts62ZgoQChASIr50XkBvy5D5adfozAt
CzWOqXo6JWCCF8jtimUcIQv5vHiFTBrlL7Z0hBpLuiaweyILOi+TLe5STzMbM0dF
QD8Ex+jDPLeVHw3h75U2Gy5o9KkqaA==
=HdBI
-----END PGP SIGNATURE-----payloadtree ee6bdbf7f2d00ded17c88bf23077bd4f4de438f2
parent 9063fff1fc53f3f75d57067d676e206293240a34
author Sam Kramer <skramer@palantir.com> 1682352118 +0100
committer Sam Kramer <skramer@palantir.com> 1682352118 +0100

catching locally, non-ideal
uuj) ^https://api.github.com/repos/palantir/atlasdb/commits/c0ab932779c9b04beb4ae75289591def95e27f45html_urlShttps://github.com/palantir/atlasdb/commit/c0ab932779c9b04beb4ae75289591def95e27f45comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c0ab932779c9b04beb4ae75289591def95e27f45/commentsj) }(login
Sam-KrameridJ^2_ j) MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j) 'https://api.github.com/users/Sam-Kramerj) https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj) }(j) 
Sam-Kramerj) J^2_ j) MDQ6VXNlcjYyMzg4MTQ=j) 3https://avatars.githubusercontent.com/u/6238814?v=4j) h5j) 'https://api.github.com/users/Sam-Kramerj) https://github.com/Sam-Kramerj) 1https://api.github.com/users/Sam-Kramer/followersj) >https://api.github.com/users/Sam-Kramer/following{/other_user}j) 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j) >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j) 5https://api.github.com/users/Sam-Kramer/subscriptionsj) ,https://api.github.com/users/Sam-Kramer/orgsj) -https://api.github.com/users/Sam-Kramer/reposj) 8https://api.github.com/users/Sam-Kramer/events{/privacy}j) 7https://api.github.com/users/Sam-Kramer/received_eventsj) Userj) uparents]}(j) (9063fff1fc53f3f75d57067d676e206293240a34j) ^https://api.github.com/repos/palantir/atlasdb/commits/9063fff1fc53f3f75d57067d676e206293240a34j) Shttps://github.com/palantir/atlasdb/commit/9063fff1fc53f3f75d57067d676e206293240a34uastats}(totalK	additionsK	deletionsKufiles]}(j) (385e6e1369cb99eb74042534a2b3877d160c2262filenamexatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javastatusmodifiedj* Kj* KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/c0ab932779c9b04beb4ae75289591def95e27f45/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c0ab932779c9b04beb4ae75289591def95e27f45/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=c0ab932779c9b04beb4ae75289591def95e27f45patch@@ -33,7 +33,7 @@ public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfigur
 
     @Value.Default
     default double rateLimit() {
-        return 100;
+        return 5;
     }
 
     @Value.Lazyuau(51ee44c2c6c7491354803b4007dd3f5591a85dfa}(sha(51ee44c2c6c7491354803b4007dd3f5591a85dfanode_idEC_kwDOAjP5fdoAKDUxZWU0NGMyYzZjNzQ5MTM1NDgwM2I0MDA3ZGQzZjU1OTFhODVkZmEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-06T16:56:44Zu	committer}(j6* 
Sam Kramerj8* skramer@palantir.comj:* 2023-03-06T16:57:07Zumessage&Test cases when we expect an exceptiontree}(j.* (b5cfdb76e1609bb2cb232bd296faa11366c3bd25url`https://api.github.com/repos/palantir/atlasdb/git/trees/b5cfdb76e1609bb2cb232bd296faa11366c3bd25ujF* bhttps://api.github.com/repos/palantir/atlasdb/git/commits/51ee44c2c6c7491354803b4007dd3f5591a85dfa
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQGG2MACgkQmPPOpKR4
XS3l4Qf+PaMvNO7JX+2v7DoUwPuNLwbMLCM6RWm85TVvQNk0csZoAJmpVAVtdTfU
Ezj4uwl/XM6MZzJGi7+gZ9gbia8JSlIWuiHhHaTDIsqQZivHDMpWyI+QSHn7LyoV
ZHnHbWipAwfm6d/l9dz7ufUa0j91SRFHkCs5RYHSckQHgQa2rP6RJ9FjbcwOa4aQ
73was5l6V2C/KlW54AO2b8xngZMoAZf0ovq+3JZqti0qJBms5EFi++6HDMxIgEKv
DX34LZgZ7MJbadg9yY5rG46ZtuABwMg0Jc657BZLUUenjmZ3ZwqC8It3vZSjg2ai
f8q+EqUV857GgYqe106bAbNmMoTFlg==
=91fJ
-----END PGP SIGNATURE-----payloadtree b5cfdb76e1609bb2cb232bd296faa11366c3bd25
parent f5a3ce63058cd44a5d2f7e148967fd4b2a843612
author Sam Kramer <skramer@palantir.com> 1678121804 +0000
committer Sam Kramer <skramer@palantir.com> 1678121827 +0000

Test cases when we expect an exception
uujF* ^https://api.github.com/repos/palantir/atlasdb/commits/51ee44c2c6c7491354803b4007dd3f5591a85dfahtml_urlShttps://github.com/palantir/atlasdb/commit/51ee44c2c6c7491354803b4007dd3f5591a85dfacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/51ee44c2c6c7491354803b4007dd3f5591a85dfa/commentsj4* }(login
Sam-KrameridJ^2_ j0* MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jF* 'https://api.github.com/users/Sam-KramerjT* https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj<* }(jY* 
Sam-Kramerj[* J^2_ j0* MDQ6VXNlcjYyMzg4MTQ=j]* 3https://avatars.githubusercontent.com/u/6238814?v=4j_* h5jF* 'https://api.github.com/users/Sam-KramerjT* https://github.com/Sam-Kramerjb* 1https://api.github.com/users/Sam-Kramer/followersjd* >https://api.github.com/users/Sam-Kramer/following{/other_user}jf* 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jh* >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jj* 5https://api.github.com/users/Sam-Kramer/subscriptionsjl* ,https://api.github.com/users/Sam-Kramer/orgsjn* -https://api.github.com/users/Sam-Kramer/reposjp* 8https://api.github.com/users/Sam-Kramer/events{/privacy}jr* 7https://api.github.com/users/Sam-Kramer/received_eventsjt* Userjv* uparents]}(j.* (f5a3ce63058cd44a5d2f7e148967fd4b2a843612jF* ^https://api.github.com/repos/palantir/atlasdb/commits/f5a3ce63058cd44a5d2f7e148967fd4b2a843612jT* Shttps://github.com/palantir/atlasdb/commit/f5a3ce63058cd44a5d2f7e148967fd4b2a843612uastats}(totalKD	additionsK9	deletionsKufiles](}(j.* (b70bf5854430dec9377668f74f59bda73b30f449filenamedatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javastatusmodifiedj* Kj* KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/51ee44c2c6c7491354803b4007dd3f5591a85dfa/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/51ee44c2c6c7491354803b4007dd3f5591a85dfa/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=51ee44c2c6c7491354803b4007dd3f5591a85dfapatchX  @@ -357,12 +357,12 @@ void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> des
         Preconditions.checkState(
                 !(currentPoolWithoutAbsentServers.isEmpty() && validatedServersToAdd.isEmpty()),
                 "No servers were successfully added to the pool. This means we could not come to a consensus on"
-                    + " cluster topology, or no hosts were provided. We will fallback to using our previous Cassandra"
-                    + " hosts, if any exist. This state should be transient (<5 minutes), and if it is not, indicates"
-                    + " that the user may have accidentally configured AltasDB to use two separate Cassandra clusters"
-                    + " (i.e., user-led split brain).",
+                        + " cluster topology, or no servers were provided. We will fallback to using our previous"
+                        + " Cassandra servers, if any exist. This state should be transient (<5 minutes), and if it is"
+                        + " not, indicates that the user may have accidentally configured AltasDB to use two separate"
+                        + " Cassandra clusters (i.e., user-led split brain).",
                 SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())),
-                SafeArg.of("previousCassandraHosts", CassandraLogHelper.collectionOfHosts(currentServers)));
+                SafeArg.of("previousCassandraServers", CassandraLogHelper.collectionOfHosts(currentServers)));
 
         absentServers.forEach(cassandraServer -> {
             CassandraClientPoolingContainer container = cassandra.removePool(cassandraServer);u}(j.* (1045f7fedc32858ef0e05a37693018e76a33e455j* datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolTest.javaj* modifiedj* K4j* Kj* K:j* https://github.com/palantir/atlasdb/blob/51ee44c2c6c7491354803b4007dd3f5591a85dfa/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaj* https://github.com/palantir/atlasdb/raw/51ee44c2c6c7491354803b4007dd3f5591a85dfa/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaj* https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.java?ref=51ee44c2c6c7491354803b4007dd3f5591a85dfaj* X  @@ -17,6 +17,7 @@
 
 import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatNoException;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.doAnswer;
@@ -66,6 +67,7 @@
 import java.util.function.Function;
 import java.util.stream.Collectors;
 import org.apache.cassandra.thrift.InvalidRequestException;
+import org.assertj.core.api.ThrowableAssert.ThrowingCallable;
 import org.jmock.lib.concurrent.DeterministicScheduler;
 import org.junit.Before;
 import org.junit.Test;
@@ -401,18 +403,48 @@ public void hostsWithDifferingTopologiesTrackedAsAbsentHost() {
         assertThat(absentHostTracker.returnPool(CASS_SERVER_2)).isPresent();
     }
 
+    @Test
+    public void doesNotThrowWhenPoolDoesNotChange() {
+        when(config.autoRefreshNodes()).thenReturn(true);
+        setCassandraServersTo(CASS_SERVER_1, CASS_SERVER_2, CASS_SERVER_3);
+        CassandraClientPoolImpl pool = createClientPool();
+        assertThatNoException()
+                .isThrownBy(() -> pool.setServersInPoolTo(ImmutableMap.of(
+                        CASS_SERVER_1,
+                        CassandraServerOrigin.CONFIG,
+                        CASS_SERVER_2,
+                        CassandraServerOrigin.CONFIG,
+                        CASS_SERVER_3,
+                        CassandraServerOrigin.CONFIG)));
+    }
+
     @Test
     public void throwsWhenNoServersInPoolAndServersAddedPresentButAreInvalid() {
         setupHostsWithInconsistentTopology(CASS_SERVER_1);
         setupThriftServers(ImmutableSet.of(CASS_SERVER_1.proxy()));
         when(config.autoRefreshNodes()).thenReturn(true);
         setCassandraServersTo(CASS_SERVER_1);
-        assertThatLoggableExceptionThrownBy(this::createClientPool)
-                .isInstanceOf(SafeIllegalStateException.class)
-                .hasMessageContaining("No servers were successfully added to the pool.")
-                .hasExactlyArgs(
-                        SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(Set.of(CASS_SERVER_1))),
-                        SafeArg.of("previousCassandraHosts", CassandraLogHelper.collectionOfHosts(Set.of())));
+        assertNoServersInPoolExceptionThrown(this::createClientPool, Set.of(CASS_SERVER_1), Set.of());
+    }
+
+    @Test
+    public void throwsWhenNoServersInPoolAndNoServersAdded() {
+        when(config.autoRefreshNodes()).thenReturn(true);
+        setCassandraServersTo();
+        assertNoServersInPoolExceptionThrown(this::createClientPool, Set.of(), Set.of());
+    }
+
+    @Test
+    public void throwsWhenPoolWouldHaveNoServersAndPreviousHostsExists() {
+        when(config.autoRefreshNodes()).thenReturn(true);
+        setCassandraServersTo(CASS_SERVER_1, CASS_SERVER_2);
+        CassandraClientPoolImpl pool = createClientPool();
+        setupHostsWithInconsistentTopology(CASS_SERVER_3);
+        assertNoServersInPoolExceptionThrown(
+                () -> pool.setServersInPoolTo(ImmutableMap.of(CASS_SERVER_3, CassandraServerOrigin.CONFIG)),
+                Set.of(CASS_SERVER_3),
+                Set.of(CASS_SERVER_1, CASS_SERVER_2));
+        assertThat(pool.getCurrentPools().keySet()).containsExactlyInAnyOrder(CASS_SERVER_1, CASS_SERVER_2);
     }
 
     @Test
@@ -714,4 +746,18 @@ private void setupHostsWithInconsistentTopology(CassandraServer... cassandraServ
     private void refreshPool() {
         deterministicExecutor.tick(POOL_REFRESH_INTERVAL_SECONDS, TimeUnit.SECONDS);
     }
+
+    private static void assertNoServersInPoolExceptionThrown(
+            ThrowingCallable throwingCallable,
+            Set<CassandraServer> serversToAdd,
+            Set<CassandraServer> previousCassandraServers) {
+        assertThatLoggableExceptionThrownBy(throwingCallable)
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("No servers were successfully added to the pool.")
+                .hasExactlyArgs(
+                        SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd)),
+                        SafeArg.of(
+                                "previousCassandraServers",
+                                CassandraLogHelper.collectionOfHosts(previousCassandraServers)));
+    }
 }ueu(328e1a9e07b6f06b4017818bf58fe85dea473d01}(sha(328e1a9e07b6f06b4017818bf58fe85dea473d01node_idEC_kwDOAjP5fdoAKDMyOGUxYTllMDdiNmYwNmI0MDE3ODE4YmY1OGZlODVkZWE0NzNkMDEcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-12T12:36:00Zu	committer}(j* 	Tom Papkej* tpapke@palantir.comj* 2023-07-13T15:53:03Zumessageuse enum for visitortree}(j* (e68ac11f9ddae4dcc492bcc1ac7121eed4b7edf2url`https://api.github.com/repos/palantir/atlasdb/git/trees/e68ac11f9ddae4dcc492bcc1ac7121eed4b7edf2uj* bhttps://api.github.com/repos/palantir/atlasdb/git/commits/328e1a9e07b6f06b4017818bf58fe85dea473d01
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSwHd8ACgkQmF9s0kaF
Iw2angf9Frrlz+yjTjMrk9vuG0ETxoVJMrP4ZBfCK8JSXVqRZ9WpGJygf/JnOHNU
laHEWH9+KOpZB5y/k//qo5I6C57vvUSEj7+KGOdCSMZWHGOC8d4KFlL+4dLGapd8
vp9XCLDY5sKVj4Km1QG5qrcBApNHsfYBngDfl0vjXXwCdsgr0Kw2IUb4RThq7eZb
N8VCEdubMK2RNN0o1NqhpsWVb96aahzV3a/p+wKY5KJzSEoMIn8gKpt9LyLwY/u8
WjQk64jrx3pmGb2XX3bHb0CtZb2R8iMj3lAwe5bqF7vQjOuxJKgzzayDqq9bWAZ2
KK2BfE114D3C6arA/osTUFvC4gCFgg==
=mM6n
-----END PGP SIGNATURE-----payloadtree e68ac11f9ddae4dcc492bcc1ac7121eed4b7edf2
parent 590140ae5da7270f7c79f1deefdb5cb55589d566
author Tom Papke <tpapke@palantir.com> 1689165360 +0100
committer Tom Papke <tpapke@palantir.com> 1689263583 +0100

use enum for visitor
uuj* ^https://api.github.com/repos/palantir/atlasdb/commits/328e1a9e07b6f06b4017818bf58fe85dea473d01html_urlShttps://github.com/palantir/atlasdb/commit/328e1a9e07b6f06b4017818bf58fe85dea473d01comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/328e1a9e07b6f06b4017818bf58fe85dea473d01/commentsj* }(login	ToemmscheidJboj* MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j* &https://api.github.com/users/Toemmschej* https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj* }(j* 	Toemmschej* Jboj* MDQ6VXNlcjQzNjc1NDkwj* 4https://avatars.githubusercontent.com/u/43675490?v=4j* h5j* &https://api.github.com/users/Toemmschej* https://github.com/Toemmschej* 0https://api.github.com/users/Toemmsche/followersj* =https://api.github.com/users/Toemmsche/following{/other_user}j* 6https://api.github.com/users/Toemmsche/gists{/gist_id}j* =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j* 4https://api.github.com/users/Toemmsche/subscriptionsj* +https://api.github.com/users/Toemmsche/orgsj* ,https://api.github.com/users/Toemmsche/reposj* 7https://api.github.com/users/Toemmsche/events{/privacy}j* 6https://api.github.com/users/Toemmsche/received_eventsj* Userj* uparents]}(j* (590140ae5da7270f7c79f1deefdb5cb55589d566j* ^https://api.github.com/repos/palantir/atlasdb/commits/590140ae5da7270f7c79f1deefdb5cb55589d566j* Shttps://github.com/palantir/atlasdb/commit/590140ae5da7270f7c79f1deefdb5cb55589d566uastats}(totalK	additionsK	deletionsKufiles]}(j* (15264463d051884bdaed57931b81becc7a3a36a3filenameftimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataTest.javastatusmodifiedj+ Kj+ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/328e1a9e07b6f06b4017818bf58fe85dea473d01/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/328e1a9e07b6f06b4017818bf58fe85dea473d01/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.java?ref=328e1a9e07b6f06b4017818bf58fe85dea473d01patchX  @@ -152,9 +152,8 @@ private static IdentifiedLockRequest standardRequestWithMetadata(Map<LockDescrip
         return IdentifiedLockRequest.of(metadata.keySet(), 1000, "testClient", LockRequestMetadata.of(metadata));
     }
 
-    private static final class AssertSuccessVisitor
-            implements LockWatchStateUpdate.Visitor<LockWatchStateUpdate.Success> {
-        static final AssertSuccessVisitor INSTANCE = new AssertSuccessVisitor();
+    private enum AssertSuccessVisitor implements LockWatchStateUpdate.Visitor<LockWatchStateUpdate.Success> {
+        INSTANCE;
 
         @Override
         public LockWatchStateUpdate.Success visit(LockWatchStateUpdate.Success success) {uau(e3ab6692dea36a76bc1016eb8a5bee15b5162bb3}(sha(e3ab6692dea36a76bc1016eb8a5bee15b5162bb3node_idEC_kwDOAjP5fdoAKGUzYWI2NjkyZGVhMzZhNzZiYzEwMTZlYjhhNWJlZTE1YjUxNjJiYjMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-07-18T10:00:26Zu	committer}(j,+ 
Sam Kramerj.+ skramer@palantir.comj0+ 2023-07-18T10:00:26Zumessagelast nittree}(j$+ (3a0a7a30a0ddcc3ddb0f88929d9a0d08258c8160url`https://api.github.com/repos/palantir/atlasdb/git/trees/3a0a7a30a0ddcc3ddb0f88929d9a0d08258c8160uj<+ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e3ab6692dea36a76bc1016eb8a5bee15b5162bb3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmS2YroACgkQmPPOpKR4
XS1B8wf9HlH40dNgQChp/inrRcejCl77h7fAICk6za3DFGX9sf1MZJuZRTqUnEge
wt34yLLkjseL9DP066v2Lkqg/kBZSM9kl4ePcyIlSieVQYq36Z9OykDLU489T3v+
D4ftxYp3x/nmoTbham0ijZphjiJVKRBm5zWvWZYO0ZaG+V77MlRSctM429A0RwkT
h1Kxw3gTH4E/TEBehppRLUPiPdiH3QL9umdxkgUdGTkRFTE6n8PprKdb5qTnbMWe
2dWmtVSl9LShQwCBiVkFEhsp12vUHIYcM9eYW8FyjVupsDVNBhLtsMQK1N/O9fCD
bXBuS8pWmd+vOeV2yIpuOvwygiHHRQ==
=Fo9q
-----END PGP SIGNATURE-----payloadtree 3a0a7a30a0ddcc3ddb0f88929d9a0d08258c8160
parent 07e7213c22e8a2f74e4cc21e9e473114ce475feb
author Sam Kramer <skramer@palantir.com> 1689674426 +0100
committer Sam Kramer <skramer@palantir.com> 1689674426 +0100

last nit
uuj<+ ^https://api.github.com/repos/palantir/atlasdb/commits/e3ab6692dea36a76bc1016eb8a5bee15b5162bb3html_urlShttps://github.com/palantir/atlasdb/commit/e3ab6692dea36a76bc1016eb8a5bee15b5162bb3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e3ab6692dea36a76bc1016eb8a5bee15b5162bb3/commentsj*+ }(login
Sam-KrameridJ^2_ j&+ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j<+ 'https://api.github.com/users/Sam-KramerjJ+ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj2+ }(jO+ 
Sam-KramerjQ+ J^2_ j&+ MDQ6VXNlcjYyMzg4MTQ=jS+ 3https://avatars.githubusercontent.com/u/6238814?v=4jU+ h5j<+ 'https://api.github.com/users/Sam-KramerjJ+ https://github.com/Sam-KramerjX+ 1https://api.github.com/users/Sam-Kramer/followersjZ+ >https://api.github.com/users/Sam-Kramer/following{/other_user}j\+ 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j^+ >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j`+ 5https://api.github.com/users/Sam-Kramer/subscriptionsjb+ ,https://api.github.com/users/Sam-Kramer/orgsjd+ -https://api.github.com/users/Sam-Kramer/reposjf+ 8https://api.github.com/users/Sam-Kramer/events{/privacy}jh+ 7https://api.github.com/users/Sam-Kramer/received_eventsjj+ Userjl+ uparents]}(j$+ (07e7213c22e8a2f74e4cc21e9e473114ce475febj<+ ^https://api.github.com/repos/palantir/atlasdb/commits/07e7213c22e8a2f74e4cc21e9e473114ce475febjJ+ Shttps://github.com/palantir/atlasdb/commit/07e7213c22e8a2f74e4cc21e9e473114ce475febuastats}(totalK	additionsK	deletionsKufiles]}(j$+ (d52315581c77162d527303298aa7da37af522cabfilenamefatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServices.javastatusmodifiedj+ Kj+ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e3ab6692dea36a76bc1016eb8a5bee15b5162bb3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e3ab6692dea36a76bc1016eb8a5bee15b5162bb3/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.java?ref=e3ab6692dea36a76bc1016eb8a5bee15b5162bb3patchX;  @@ -88,7 +88,7 @@ static void waitForSchemaVersions(
      *         Avoid performing schema mutations if our availability requirements are not met. This is to prevent a
      *         split-brain situation in respect to the schema. While this _should_ be a safe state to be in, there is
      *         little-to-no risk to availability for waiting for consensus and availability. If the specified
-     *         availability requirements are not met, then it is very likely Cassandra is an outage anyways, which
+     *         availability requirements are not met, then it is very likely Cassandra is in an outage anyways, which
      *         means it is ok for a service to not start up. There is of course a check-then-act race condition, but
      *         Cassandra is able to eventually recover.
      *     </li>uau(7fad85589e498107a6122415592c02942871c88c}(sha(7fad85589e498107a6122415592c02942871c88cnode_idEC_kwDOAjP5fdoAKDdmYWQ4NTU4OWU0OTgxMDdhNjEyMjQxNTU5MmMwMjk0Mjg3MWM4OGMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2022-09-23T14:18:20Zu	committer}(j+ 
Sam Kramerj+ skramer@palantir.comj+ 2023-02-23T17:26:09Zumessage$Replace javax servlet to 4.x jakartatree}(j+ (b63edf442945412a210b5f58efbf924adc1ff284url`https://api.github.com/repos/palantir/atlasdb/git/trees/b63edf442945412a210b5f58efbf924adc1ff284uj+ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7fad85589e498107a6122415592c02942871c88c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmP3obEACgkQmPPOpKR4
XS1lCwgAlDDJk3wpbx7ZjF1tiRm+3goF5Pi3Vlj96r6DzXkMZ66fYmg2JPRegbWW
jKpMATAz99BbAVBgD33qV+NMd5NRzUL0JZ6dj6GFNXqnrcHn6p81jG+QJ/lg6gQs
G47s9Zl5h2EQ/2rY0OZaGEo0si/ZwOoplngp5FQ4h0/iKAvdvoDNe1XcpdNl3ein
5Y6UW0BBw1bI+3Ok2cIo0ScS9sBL9DJjTng59TlFlBMF5Tvb1apMHcGNnTmD+5/x
u1EfDWxvKz3EdQojOURMcQ1tkjYnL8MzouWIvp9/jleT/n9vxXrq9kfa3j90OCbP
F93rG4vvPx+5edA4iUvusGL6dJ56cA==
=VFNI
-----END PGP SIGNATURE-----payloadtree b63edf442945412a210b5f58efbf924adc1ff284
parent 5e4db228e238b3ece2f247c662c2e95a52fefe09
author Sam Kramer <skramer@palantir.com> 1663942700 +0100
committer Sam Kramer <skramer@palantir.com> 1677173169 +0000

Replace javax servlet to 4.x jakarta
uuj+ ^https://api.github.com/repos/palantir/atlasdb/commits/7fad85589e498107a6122415592c02942871c88chtml_urlShttps://github.com/palantir/atlasdb/commit/7fad85589e498107a6122415592c02942871c88ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7fad85589e498107a6122415592c02942871c88c/commentsj+ }(login
Sam-KrameridJ^2_ j+ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j+ 'https://api.github.com/users/Sam-Kramerj+ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj+ }(j+ 
Sam-Kramerj+ J^2_ j+ MDQ6VXNlcjYyMzg4MTQ=j+ 3https://avatars.githubusercontent.com/u/6238814?v=4j+ h5j+ 'https://api.github.com/users/Sam-Kramerj+ https://github.com/Sam-Kramerj+ 1https://api.github.com/users/Sam-Kramer/followersj+ >https://api.github.com/users/Sam-Kramer/following{/other_user}j+ 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j+ >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j+ 5https://api.github.com/users/Sam-Kramer/subscriptionsj+ ,https://api.github.com/users/Sam-Kramer/orgsj+ -https://api.github.com/users/Sam-Kramer/reposj+ 8https://api.github.com/users/Sam-Kramer/events{/privacy}j+ 7https://api.github.com/users/Sam-Kramer/received_eventsj+ Userj+ uparents]}(j+ (5e4db228e238b3ece2f247c662c2e95a52fefe09j+ ^https://api.github.com/repos/palantir/atlasdb/commits/5e4db228e238b3ece2f247c662c2e95a52fefe09j+ Shttps://github.com/palantir/atlasdb/commit/5e4db228e238b3ece2f247c662c2e95a52fefe09uastats}(totalK	additionsK	deletionsKufiles]}(j+ (146dba7b78cc5da09a06a376fb8644bcf689aff4filenamebuild.gradlestatusmodifiedj+ Kj+ KchangesKblob_url^https://github.com/palantir/atlasdb/blob/7fad85589e498107a6122415592c02942871c88c/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/7fad85589e498107a6122415592c02942871c88c/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=7fad85589e498107a6122415592c02942871c88cpatchX  @@ -85,7 +85,7 @@ allprojects {
             it.substitute it.module('javax.annotation:javax.annotation-api') with it.module('jakarta.annotation:jakarta.annotation-api:1.3.5')
             it.substitute it.module('javax.validation:validation-api') with it.module('jakarta.validation:jakarta.validation-api:2.0.2')
             it.substitute it.module('javax.ws.rs:javax.ws.rs-api') with it.module('jakarta.ws.rs:jakarta.ws.rs-api:2.1.6')
-            it.substitute it.module('javax.servlet:javax.servlet-api') with it.module('jakarta.servlet:jakarta.servlet-api:5.0.0')
+            it.substitute it.module('javax.servlet:javax.servlet-api') with it.module('jakarta.servlet:jakarta.servlet-api:4.0.4')
 
             it.substitute it.module('javax.inject:javax.inject') with it.module('jakarta.inject:jakarta.inject-api:1.0.5')
             it.substitute it.module('org.glassfish.hk2.external:javax.inject') with it.module('jakarta.inject:jakarta.inject-api:1.0.5')uau(e84b2f0840a35fd3bc1412befc64ec0b2575642c}(sha(e84b2f0840a35fd3bc1412befc64ec0b2575642cnode_idEC_kwDOAjP5fdoAKGU4NGIyZjA4NDBhMzVmZDNiYzE0MTJiZWZjNjRlYzBiMjU3NTY0MmMcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-08-08T15:15:49Zu	committer}(j, 
svc-changelogj, svc-changelog@palantir.comj, 2023-08-08T15:15:49ZumessageAdd generated changelog entriestree}(j, (a040d7afd3b5859e0bb1e4ac9acf5c12482884a1url`https://api.github.com/repos/palantir/atlasdb/git/trees/a040d7afd3b5859e0bb1e4ac9acf5c12482884a1uj*, bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e84b2f0840a35fd3bc1412befc64ec0b2575642c
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmTSXCUJEHYaJX37fAFQAAAiRQD/QXMnTN2Fun4pEKXTuEBUqZD3
awk3vbjkXH8t5sHyS2wBALh/yW1P+/9x64VNP/551ginbehe9stXt5FOkBZ6DFuj
=egfh
-----END PGP SIGNATURE-----payloadX  tree a040d7afd3b5859e0bb1e4ac9acf5c12482884a1
parent a2d1b11eb883e5f78837c2916d1d0faefa152f10
author svc-changelog <svc-changelog@palantir.com> 1691507749 +0000
committer svc-changelog <svc-changelog@palantir.com> 1691507749 +0000

Add generated changelog entriesuuj*, ^https://api.github.com/repos/palantir/atlasdb/commits/e84b2f0840a35fd3bc1412befc64ec0b2575642chtml_urlShttps://github.com/palantir/atlasdb/commit/e84b2f0840a35fd3bc1412befc64ec0b2575642ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e84b2f0840a35fd3bc1412befc64ec0b2575642c/commentsj, }(login
svc-changelogidJ#j, MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j*, *https://api.github.com/users/svc-changelogj8,  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj , }(j=, 
svc-changelogj?, J#j, MDQ6VXNlcjg0MDc3NjAzjA, 4https://avatars.githubusercontent.com/u/84077603?v=4jC, h5j*, *https://api.github.com/users/svc-changelogj8,  https://github.com/svc-changelogjF, 4https://api.github.com/users/svc-changelog/followersjH, Ahttps://api.github.com/users/svc-changelog/following{/other_user}jJ, :https://api.github.com/users/svc-changelog/gists{/gist_id}jL, Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jN, 8https://api.github.com/users/svc-changelog/subscriptionsjP, /https://api.github.com/users/svc-changelog/orgsjR, 0https://api.github.com/users/svc-changelog/reposjT, ;https://api.github.com/users/svc-changelog/events{/privacy}jV, :https://api.github.com/users/svc-changelog/received_eventsjX, UserjZ, uparents]}(j, (a2d1b11eb883e5f78837c2916d1d0faefa152f10j*, ^https://api.github.com/repos/palantir/atlasdb/commits/a2d1b11eb883e5f78837c2916d1d0faefa152f10j8, Shttps://github.com/palantir/atlasdb/commit/a2d1b11eb883e5f78837c2916d1d0faefa152f10uastats}(totalK	additionsK	deletionsK ufiles]}(j, (a75847dcb7447b3c30f6fd1931f06e349bffcdfdfilename$changelog/@unreleased/pr-6693.v2.ymlstatusaddedjt, Kju, K changesKblob_url|https://github.com/palantir/atlasdb/blob/e84b2f0840a35fd3bc1412befc64ec0b2575642c/changelog%2F%40unreleased%2Fpr-6693.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/e84b2f0840a35fd3bc1412befc64ec0b2575642c/changelog%2F%40unreleased%2Fpr-6693.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6693.v2.yml?ref=e84b2f0840a35fd3bc1412befc64ec0b2575642cpatch@@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: Fixes bug where timelock would contend with itself.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6693uau(b156a0bfd18be40107a5798da81846e5e2ade26b}(sha(b156a0bfd18be40107a5798da81846e5e2ade26bnode_idEC_kwDOAjP5fdoAKGIxNTZhMGJmZDE4YmU0MDEwN2E1Nzk4ZGE4MTg0NmU1ZTJhZGUyNmIcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-06T09:42:06Zu	committer}(j, Lucas Meirelesj, meireles31@msn.comj, 2023-07-06T09:42:06Zumessagelog when skipping immutable Ttree}(j, (6e4a157d145791065cb6bdad04ced45013b18db8url`https://api.github.com/repos/palantir/atlasdb/git/trees/6e4a157d145791065cb6bdad04ced45013b18db8u     j, bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b156a0bfd18be40107a5798da81846e5e2ade26b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSmjG4ACgkQJd22kJ7J
Giyfegf/VJXWfQywRXK83HiGzv3d+ldQVrxvdXck5VAE4T8ahg3IKmY19UTjAYGZ
Sczfy4zB5e24fqgxx9GagwbvAgnPmQxohRpNyUdUXnZDgryWei+7wtefDhZTg+cs
g1xlkpWk0xNUfSE1+u9SK5lKNEvu0PDz4q+zSNdn33CtIiYKaAoh2i+T3xhazwGn
9JoL9GePm6i56ObE3NhqKefEGU8pFuwA05DQNPK9lqgWz0Ogg3mUkwa0DUzyNbxE
O3hg2KVi312dcXDl3X99kRxwPynWMyFepSCAnvLoO8FyPIOsu7G7ESih49nR1B/b
nzX5r+rMCSwpKVFvqiB+9VJU877EWw==
=ILQu
-----END PGP SIGNATURE-----payloadtree 6e4a157d145791065cb6bdad04ced45013b18db8
parent 9988301a91b9c55408f2b0c9b544a7c70730fd95
author Lucas Meireles <meireles31@msn.com> 1688636526 +0100
committer Lucas Meireles <meireles31@msn.com> 1688636526 +0100

log when skipping immutable T
uuj, ^https://api.github.com/repos/palantir/atlasdb/commits/b156a0bfd18be40107a5798da81846e5e2ade26bhtml_urlShttps://github.com/palantir/atlasdb/commit/b156a0bfd18be40107a5798da81846e5e2ade26bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b156a0bfd18be40107a5798da81846e5e2ade26b/commentsj, }(loginLucasIMEidJg j, MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j, %https://api.github.com/users/LucasIMEj, https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj, }(j, LucasIMEj, Jg j, MDQ6VXNlcjY3ODczMTE=j, 3https://avatars.githubusercontent.com/u/6787311?v=4j, h5j, %https://api.github.com/users/LucasIMEj, https://github.com/LucasIMEj, /https://api.github.com/users/LucasIME/followersj, <https://api.github.com/users/LucasIME/following{/other_user}j, 5https://api.github.com/users/LucasIME/gists{/gist_id}j, <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j, 3https://api.github.com/users/LucasIME/subscriptionsj, *https://api.github.com/users/LucasIME/orgsj, +https://api.github.com/users/LucasIME/reposj, 6https://api.github.com/users/LucasIME/events{/privacy}j, 5https://api.github.com/users/LucasIME/received_eventsj, Userj, uparents]}(j, (9988301a91b9c55408f2b0c9b544a7c70730fd95j, ^https://api.github.com/repos/palantir/atlasdb/commits/9988301a91b9c55408f2b0c9b544a7c70730fd95j, Shttps://github.com/palantir/atlasdb/commit/9988301a91b9c55408f2b0c9b544a7c70730fd95uastats}(totalK	additionsK	deletionsKufiles]}(j, (2d485f141adc26f01ac7ac7b5691203d89dd4117filenameVatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javastatusmodifiedj, Kj, KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b156a0bfd18be40107a5798da81846e5e2ade26b/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b156a0bfd18be40107a5798da81846e5e2ade26b/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=b156a0bfd18be40107a5798da81846e5e2ade26bpatchX  @@ -20,6 +20,8 @@
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.Optional;
 
 /**
@@ -29,6 +31,8 @@
  */
 public final class SweepStrategy {
 
+    private static final SafeLogger log = SafeLoggerFactory.get(SweepStrategy.class);
+
     public static final SweepStrategy CONSERVATIVE =
             new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false, false);
     public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), false, true);
@@ -54,9 +58,19 @@ public Optional<SweeperStrategy> getSweeperStrategy() {
     }
 
     public boolean mustCheckImmutableLock(boolean allPossibleCellsReandAndPresent) {
-        return allPossibleCellsReandAndPresent
+        boolean mustCheckLock = allPossibleCellsReandAndPresent
                 ? mustCheckImmutableLockIfAllCellsReadAndPresent
                 : mustCheckImmutableLockIfNonExhaustiveRead;
+
+        if (!mustCheckLock && isConfiguredWithThoroughSweep()) {
+            log.debug("Can skip immutable timestamp lock on thoroughly swept table due to making exhaustive read");
+        }
+
+        return mustCheckLock;
+    }
+
+    private boolean isConfiguredWithThoroughSweep() {
+        return getSweeperStrategy().isPresent() && getSweeperStrategy().get().equals(SweeperStrategy.THOROUGH);
     }
 
     public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {uau(8f48808e43a4e6eebba01424763ab8044bdd439e}(sha(8f48808e43a4e6eebba01424763ab8044bdd439enode_idEC_kwDOAjP5fdoAKDhmNDg4MDhlNDNhNGU2ZWViYmEwMTQyNDc2M2FiODA0NGJkZDQzOWUcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-05-24T08:40:34Zu	committer}(j- svc-autoreleasej
- -pd-foundry-infrastructure-notify@palantir.comj- 2023-05-24T08:40:34ZumessageAutorelease 0.863.0

[skip ci]tree}(j - (de24629dfb54ce2355c3c3048a3056804c6ab944url`https://api.github.com/repos/palantir/atlasdb/git/trees/de24629dfb54ce2355c3c3048a3056804c6ab944uj- bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8f48808e43a4e6eebba01424763ab8044bdd439e
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRtzYoACgkQhbrR8ip7mDDXBwD/RoLqYSpWwQV6POCMBnKtWDq2
mNj7QP4jsflDnhthxyoBAPhwMqKsj6MhM1GpVzuluFPQanf4WyitV1KRULybprFJ
=T/tj
-----END PGP SIGNATURE-----
payloadX0  tree de24629dfb54ce2355c3c3048a3056804c6ab944
parent e1f42cf971b890c5bbb5dfd1abf80d2678ac1b99
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684917634 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684917634 +0000

Autorelease 0.863.0

[skip ci]uuj- ^https://api.github.com/repos/palantir/atlasdb/commits/8f48808e43a4e6eebba01424763ab8044bdd439ehtml_urlShttps://github.com/palantir/atlasdb/commit/8f48808e43a4e6eebba01424763ab8044bdd439ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8f48808e43a4e6eebba01424763ab8044bdd439e/commentsj- }(loginsvc-autoreleaseidJ(j- MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j- ,https://api.github.com/users/svc-autoreleasej&- "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj- }(j+- svc-autoreleasej-- J(j- MDQ6VXNlcjUxNzE4MzQ2j/- 4https://avatars.githubusercontent.com/u/51718346?v=4j1- h5j- ,https://api.github.com/users/svc-autoreleasej&- "https://github.com/svc-autoreleasej4- 6https://api.github.com/users/svc-autorelease/followersj6- Chttps://api.github.com/users/svc-autorelease/following{/other_user}j8- <https://api.github.com/users/svc-autorelease/gists{/gist_id}j:- Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j<- :https://api.github.com/users/svc-autorelease/subscriptionsj>- 1https://api.github.com/users/svc-autorelease/orgsj@- 2https://api.github.com/users/svc-autorelease/reposjB- =https://api.github.com/users/svc-autorelease/events{/privacy}jD- <https://api.github.com/users/svc-autorelease/received_eventsjF- UserjH- uparents]}(j - (e1f42cf971b890c5bbb5dfd1abf80d2678ac1b99j- ^https://api.github.com/repos/palantir/atlasdb/commits/e1f42cf971b890c5bbb5dfd1abf80d2678ac1b99j&- Shttps://github.com/palantir/atlasdb/commit/e1f42cf971b890c5bbb5dfd1abf80d2678ac1b99uastats}(totalK 	additionsK 	deletionsK ufiles](}(j - (accf41e869d53eedaf4f54d948e2b5260617a8cbfilename changelog/0.863.0/pr-6468.v2.ymlstatusrenamedjb- K jc- K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/8f48808e43a4e6eebba01424763ab8044bdd439e/changelog%2F0.863.0%2Fpr-6468.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/8f48808e43a4e6eebba01424763ab8044bdd439e/changelog%2F0.863.0%2Fpr-6468.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.863.0%2Fpr-6468.v2.yml?ref=8f48808e43a4e6eebba01424763ab8044bdd439eprevious_filename$changelog/@unreleased/pr-6468.v2.ymlu}(j - (be28e0890da21d6d8b36c3d7f6d13422933da314jh-  changelog/0.863.0/pr-6584.v2.ymljj- renamedjb- K jc- K jl- K jm- vhttps://github.com/palantir/atlasdb/blob/8f48808e43a4e6eebba01424763ab8044bdd439e/changelog%2F0.863.0%2Fpr-6584.v2.ymljo- uhttps://github.com/palantir/atlasdb/raw/8f48808e43a4e6eebba01424763ab8044bdd439e/changelog%2F0.863.0%2Fpr-6584.v2.ymljq- https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.863.0%2Fpr-6584.v2.yml?ref=8f48808e43a4e6eebba01424763ab8044bdd439ejs- $changelog/@unreleased/pr-6584.v2.ymlueu(c312e4cac3c4c9d2233bcc79db4ebd74d9f8590b}(sha(c312e4cac3c4c9d2233bcc79db4ebd74d9f8590bnode_idEC_kwDOAjP5fdoAKGMzMTJlNGNhYzNjNGM5ZDIyMzNiY2M3OWRiNGViZDc0ZDlmODU5MGIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-07T18:28:45Zu	committer}(j- Jeremy Kongj- jkong@palantir.comj- 2023-06-07T18:28:45ZumessageCR feedbacktree}(j- (9e816120ffdc8be2428f6269fa03e34bbad1985curl`https://api.github.com/repos/palantir/atlasdb/git/trees/9e816120ffdc8be2428f6269fa03e34bbad1985cuj- bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c312e4cac3c4c9d2233bcc79db4ebd74d9f8590b
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSAzF4ACgkQTLdFKain
zjzngQgAqOvkmyEQNZFdQoFRbWhpyyhkE0wsme2A7p67Ox93R5BNjfwZZeNP24fv
PLzW8dwCLdy1uunvJB9ZDpvk5W30mjoMi1eWtsPMeN7fO19ouPDSTKj6PU/aIhNo
/ZoI65L4jjDEjYImSkOrWV0463m8JgMskaKSEwbNQH/7EZI/oGR0q+bR1beVZS18
HEXpAPIWU3iN5iKikpths8/gpD4zWXI57eCqI+GE0FpUnVq3StqO+s/2EG+JjIk/
zUMJ0LCyP+uixX8gCgcq57wwBaZtvIw1vDi6Q/ZgVHyWddCOSkJrqagHX7GTG+P3
smLa0B3V1L1p+RRqdl/4q2xpEBzSPg==
=gha2
-----END PGP SIGNATURE-----payloadtree 9e816120ffdc8be2428f6269fa03e34bbad1985c
parent 989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4
author Jeremy Kong <jkong@palantir.com> 1686162525 +0100
committer Jeremy Kong <jkong@palantir.com> 1686162525 +0100

CR feedback
uuj- ^https://api.github.com/repos/palantir/atlasdb/commits/c312e4cac3c4c9d2233bcc79db4ebd74d9f8590bhtml_urlShttps://github.com/palantir/atlasdb/commit/c312e4cac3c4c9d2233bcc79db4ebd74d9f8590bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c312e4cac3c4c9d2233bcc79db4ebd74d9f8590b/commentsj- }(login
jeremyk-91idJZ j- MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j- 'https://api.github.com/users/jeremyk-91j- https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj- }(j- 
jeremyk-91j- JZ j- MDQ6VXNlcjU5NTU1MTA=j- 3https://avatars.githubusercontent.com/u/5955510?v=4j- h5j- 'https://api.github.com/users/jeremyk-91j- https://github.com/jeremyk-91j- 1https://api.github.com/users/jeremyk-91/followersj- >https://api.github.com/users/jeremyk-91/following{/other_user}j- 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j- >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j- 5https://api.github.com/users/jeremyk-91/subscriptionsj- ,https://api.github.com/users/jeremyk-91/orgsj- -https://api.github.com/users/jeremyk-91/reposj- 8https://api.github.com/users/jeremyk-91/events{/privacy}j- 7https://api.github.com/users/jeremyk-91/received_eventsj- Userj- uparents]}(j- (989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4j- ^https://api.github.com/repos/palantir/atlasdb/commits/989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4j- Shttps://github.com/palantir/atlasdb/commit/989cbc84043fb6aa9a3d691c8dabac8d4fb7fda4uastats}(totalK	additionsK		deletionsKufiles](}(j- (f2fc56cca46a09c2ef718c3b7cb6b8d4000c1d8ffilenameatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javastatusmodifiedj- Kj- KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/c312e4cac3c4c9d2233bcc79db4ebd74d9f8590b/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c312e4cac3c4c9d2233bcc79db4ebd74d9f8590b/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=c312e4cac3c4c9d2233bcc79db4ebd74d9f8590bpatch@@ -16,4 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-public interface InvalidWitnessedTransactionAction {}
+public interface InvalidWitnessedTransactionAction {
+    // Marker interface
+}u}(j- (b5914f0b7159e8d17b39ba90a77430d29fa1dca7j- atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javaj- modifiedj- Kj- Kj- Kj- https://github.com/palantir/atlasdb/blob/c312e4cac3c4c9d2233bcc79db4ebd74d9f8590b/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj- https://github.com/palantir/atlasdb/raw/c312e4cac3c4c9d2233bcc79db4ebd74d9f8590b/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj- https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=c312e4cac3c4c9d2233bcc79db4ebd74d9f8590bj- Xw  @@ -33,8 +33,8 @@ public class MaybeWitnessedTransactionTest {
     @Test
     public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
         assertThatLoggableExceptionThrownBy(() -> MaybeWitnessedTransaction.builder()
-                        .startTimestamp(START_TIMESTAMP)
-                        .build())
+                .startTimestamp(START_TIMESTAMP)
+                .build())
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining(
                         "Given how the transaction protocol works, a transaction for which we haven't retrieved the"
@@ -44,17 +44,17 @@ public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
     @Test
     public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
         assertThatCode(() -> MaybeWitnessedTransaction.builder()
-                        .startTimestamp(START_TIMESTAMP)
-                        .commitTimestamp(COMMIT_TIMESTAMP)
-                        .build())
+                .startTimestamp(START_TIMESTAMP)
+                .commitTimestamp(COMMIT_TIMESTAMP)
+                .build())
                 .doesNotThrowAnyException();
     }
 
     @Test
     public void toFullyWitnessedCopiesArgumentsCorrectly() {
         WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
         WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
-        List<WitnessedSingleCellTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
+        List<WitnessedTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
         FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
                 .startTimestamp(START_TIMESTAMP)
                 .commitTimestamp(COMMIT_TIMESTAMP)ueu(728d80eb5a7370ce9bdb230d49a27f5a771b0431}(sha(728d80eb5a7370ce9bdb230d49a27f5a771b0431node_idEC_kwDOAjP5fdoAKDcyOGQ4MGViNWE3MzcwY2U5YmRiMjMwZDQ5YTI3ZjVhNzcxYjA0MzEcommit}(author}(nameCVdV-auemail)69226052+CVdV-au@users.noreply.github.comdate2023-04-13T10:46:21Zu	committer}(j. GitHubj. noreply@github.comj
. 2023-04-13T10:46:21ZumessageX  Choose optimal IOT compression based on table params (#6498)

Determine the optimal Index Organized Table compression setting.

When enabling compression on an IOT, we can instruct Oracle to compress at most one fewer columns than the number of columns that make up the PK for the IOT (i.e. the IOT we create have a PK of {row, col, ts} so we can compress 0, 1 or 2 columns - nothing, row, or row & col. It wouldn't make sense to compress all three columns, because necessarily there can be multiple rows that share all three values.

When compression is enabled in an IOT, the block header adds a table the captures the values of the compressed columns. The actual rows in the blocks then refer back to entries in the header table to capture their values for the compressed columns. This extra header table and the slot references for data rows consume space in the block, so misuse of compression results in extra storage being consumed.

Compression only makes sense when we expect that the { row } or { row, col } values will be reused:

 - If the table's sweep strategy is CONSERVATIVE, then every { row, col } will have at least two rows, the current value (which may have null val if the value is deleted) and a sentinel row with ts = -1. Clearly compression of both { row, col } is valuable.

 - If the sweep strategy is not CONSERVATIVE,  there will be reuse of the { row } if there is more than one named column, or the table uses dynamic columns, which would be generally be expected to have multiple row values. In this case, compression 1 is appropriate so { row } only needs to be store once.

 - Finally, if the sweep strategy is not CONSERVATIVE, there are no sentinels, and if there is only one named column then there will be no rows that share { row } so compression should be disabled.tree}(j- (efcbc47c84d21a6b67ad6d32d57944a399998bbfurl`https://api.github.com/repos/palantir/atlasdb/git/trees/efcbc47c84d21a6b67ad6d32d57944a399998bbfuj. bhttps://api.github.com/repos/palantir/atlasdb/git/commits/728d80eb5a7370ce9bdb230d49a27f5a771b0431
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkN919CRBK7hj4Ov3rIwAAzzkIAD4H3BKEnFB+D4OPirfuX1Su
lX5YLaWGNcMJi/oG4SHGPOU0iC0vuBpeLvfrgkaJq5iccdq2GVwZvXL3eni65sWh
rLD68HHbh6uBtzT3tV1oaDqc5YUcz29JRejz8dX/CMvXVxaoZtxJu0j8p/4DxvSP
95Iw7vf7Mi0F4+xVcXJI0uHmjyZEFtZ1Mo4harIMDvloh4uZwf+/z6lL21dpje3B
4/tuqT0vyqyOpjo2GwlyRGMocmsp6Wp0Kjt3E8OGpXX6LpCq3jtQrhPhAPRUmDt4
TqHVVsKZMGfeU7vTymi/pQJR3gWRSFkALiVT+i7sG6Rl784gNlF5+K0h2lcSkiY=
=y+tI
-----END PGP SIGNATURE-----
payloadX  tree efcbc47c84d21a6b67ad6d32d57944a399998bbf
parent 435e29d47d0f563fbf567705e16123ddf8754b17
author CVdV-au <69226052+CVdV-au@users.noreply.github.com> 1681382781 +1000
committer GitHub <noreply@github.com> 1681382781 +0000

Choose optimal IOT compression based on table params (#6498)

Determine the optimal Index Organized Table compression setting.

When enabling compression on an IOT, we can instruct Oracle to compress at most one fewer columns than the number of columns that make up the PK for the IOT (i.e. the IOT we create have a PK of {row, col, ts} so we can compress 0, 1 or 2 columns - nothing, row, or row & col. It wouldn't make sense to compress all three columns, because necessarily there can be multiple rows that share all three values.

When compression is enabled in an IOT, the block header adds a table the captures the values of the compressed columns. The actual rows in the blocks then refer back to entries in the header table to capture their values for the compressed columns. This extra header table and the slot references for data rows consume space in the block, so misuse of compression results in extra storage being consumed.

Compression only makes sense when we expect that the { row } or { row, col } values will be reused:

 - If the table's sweep strategy is CONSERVATIVE, then every { row, col } will have at least two rows, the current value (which may have null val if the value is deleted) and a sentinel row with ts = -1. Clearly compression of both { row, col } is valuable.

 - If the sweep strategy is not CONSERVATIVE,  there will be reuse of the { row } if there is more than one named column, or the table uses dynamic columns, which would be generally be expected to have multiple row values. In this case, compression 1 is appropriate so { row } only needs to be store once.

 - Finally, if the sweep strategy is not CONSERVATIVE, there are no sentinels, and if there is only one named column then there will be no rows that share { row } so compression should be disabled.
uuj. ^https://api.github.com/repos/palantir/atlasdb/commits/728d80eb5a7370ce9bdb230d49a27f5a771b0431html_urlShttps://github.com/palantir/atlasdb/commit/728d80eb5a7370ce9bdb230d49a27f5a771b0431comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/728d80eb5a7370ce9bdb230d49a27f5a771b0431/commentsj. }(loginCVdV-auidJDN j . MDQ6VXNlcjY5MjI2MDUy
avatar_url4https://avatars.githubusercontent.com/u/69226052?v=4gravatar_idh5j. $https://api.github.com/users/CVdV-auj$. https://github.com/CVdV-au
followers_url.https://api.github.com/users/CVdV-au/followers
following_url;https://api.github.com/users/CVdV-au/following{/other_user}	gists_url4https://api.github.com/users/CVdV-au/gists{/gist_id}starred_url;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/CVdV-au/subscriptionsorganizations_url)https://api.github.com/users/CVdV-au/orgs	repos_url*https://api.github.com/users/CVdV-au/repos
events_url5https://api.github.com/users/CVdV-au/events{/privacy}received_events_url4https://api.github.com/users/CVdV-au/received_eventstypeUser
site_adminuj. }(j). web-flowj+. J/j . MDQ6VXNlcjE5ODY0NDQ3j-. 4https://avatars.githubusercontent.com/u/19864447?v=4j/. h5j. %https://api.github.com/users/web-flowj$. https://github.com/web-flowj2. /https://api.github.com/users/web-flow/followersj4. <https://api.github.com/users/web-flow/following{/other_user}j6. 5https://api.github.com/users/web-flow/gists{/gist_id}j8. <https://api.github.com/users/web-flow/starred{/owner}{/repo}j:. 3https://api.github.com/users/web-flow/subscriptionsj<. *https://api.github.com/users/web-flow/orgsj>. +https://api.github.com/users/web-flow/reposj@. 6https://api.github.com/users/web-flow/events{/privacy}jB. 5https://api.github.com/users/web-flow/received_eventsjD. UserjF. uparents]}(j- (435e29d47d0f563fbf567705e16123ddf8754b17j. ^https://api.github.com/repos/palantir/atlasdb/commits/435e29d47d0f563fbf567705e16123ddf8754b17j$. Shttps://github.com/palantir/atlasdb/commit/435e29d47d0f563fbf567705e16123ddf8754b17uastats}(totalK	additionsK{	deletionsKufiles](}(j- (37f614609e9364110222b476f105aa43bbb7f628filenamebatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/ColumnMetadataDescription.javastatusmodifiedj`. Kja. K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/728d80eb5a7370ce9bdb230d49a27f5a771b0431/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.javaraw_urlhttps://github.com/palantir/atlasdb/raw/728d80eb5a7370ce9bdb230d49a27f5a771b0431/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.java?ref=728d80eb5a7370ce9bdb230d49a27f5a771b0431patchX  @@ -22,11 +22,15 @@
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Set;
+import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 
 @Immutable
 public class ColumnMetadataDescription {
+    @Nullable
     final ImmutableSet<NamedColumnDescription> namedColumns;
+
+    @Nullable
     final DynamicColumnDescription dynamicColumn;
 
     public ColumnMetadataDescription() {
@@ -44,10 +48,12 @@ public ColumnMetadataDescription(DynamicColumnDescription dynamicColumn) {
         this.dynamicColumn = dynamicColumn;
     }
 
+    @Nullable
     public Set<NamedColumnDescription> getNamedColumns() {
         return namedColumns;
     }
 
+    @Nullable
     public DynamicColumnDescription getDynamicColumn() {
         return dynamicColumn;
     }u}(j- (16016bac4fb642bd9934fcbdc2a95307afc7979ajf. _atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTable.javajh. modifiedj`. K9ja. Kjj. KAjk. https://github.com/palantir/atlasdb/blob/728d80eb5a7370ce9bdb230d49a27f5a771b0431/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javajm. https://github.com/palantir/atlasdb/raw/728d80eb5a7370ce9bdb230d49a27f5a771b0431/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javajo. https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.java?ref=728d80eb5a7370ce9bdb230d49a27f5a771b0431jq. X"  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Stopwatch;
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -30,6 +31,9 @@
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyle;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyleCache;
 import com.palantir.atlasdb.logging.LoggingArgs;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.NamedColumnDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.common.base.RunnableCheckedException;
 import com.palantir.common.base.Throwables;
@@ -47,6 +51,7 @@
 import com.palantir.util.VersionStrings;
 import java.sql.SQLException;
 import java.util.Locale;
+import java.util.Set;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.TimeUnit;
 import org.apache.commons.lang3.StringUtils;
@@ -90,7 +95,9 @@ public static OracleDdlTable create(
 
     @Override
     public void create(byte[] tableMetadata) {
-        boolean needsOverflow = needsOverflow(tableMetadata);
+        TableMetadata metadata = TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMetadata);
+        boolean needsOverflow = needsOverflow(metadata);
+        int compressionSetting = getOptimalIndexCompression(metadata);
 
         if (tableExists()) {
             if (needsOverflow) {
@@ -103,7 +110,7 @@ public void create(byte[] tableMetadata) {
             return;
         }
 
-        String shortTableName = createTable(needsOverflow);
+        String shortTableName = createTable(needsOverflow, compressionSetting);
 
         if (needsOverflow && !overflowColumnExists(shortTableName)) {
             throwForMissingOverflowTable();
@@ -146,10 +153,51 @@ private boolean overflowTableHasMigrated() {
         return config.overflowMigrationState() == OverflowMigrationState.FINISHED;
     }
 
-    private boolean needsOverflow(byte[] tableMetadata) {
-        TableMetadata metadata = TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMetadata);
-        return (metadata != null)
-                && (metadata.getColumns().getMaxValueSize() > AtlasDbConstants.ORACLE_OVERFLOW_THRESHOLD);
+    private boolean needsOverflow(TableMetadata metadata) {
+        return metadata.getColumns().getMaxValueSize() > AtlasDbConstants.ORACLE_OVERFLOW_THRESHOLD;
+    }
+
+    /*
+     * Determine the optimal Index Organized Table compression setting.
+     * When enabling compression on an IOT, we can instruct Oracle to compress at most one
+     * fewer columns than the number of columns that make up the PK for the IOT (i.e. the IOT we create have a PK of
+     * {row, col, ts} so we can compress 0, 1 or 2 columns - nothing, row, or row & col. It wouldn't make sense to
+     * compress all three columns, because necessarily there can be multiple rows that share all three values.
+     *
+     * When compression is enabled in an IOT, the block header adds a table the captures the values of the
+     * compressed columns. The actual rows in the blocks then refer back to entries in the header table to capture
+     * their values for the compressed columns. This extra header table and the slot references for data rows consume
+     * space in the block, so misuse of compression results in extra storage being consumed.
+     *
+     * Compression only makes sense when we expect that the { row } or { row, col } values will be reused:
+     * - If the table's sweep strategy is CONSERVATIVE, then every { row, col } will have at least two rows,
+     *   the current value (which may have null val if the value is deleted) and a sentinel row with ts = -1. Clearly
+     *   compression of both { row, col } is valuable.
+     * - If the sweep strategy is not CONSERVATIVE,  there will be reuse of the { row } if there is more than one named
+     *   column, or the table uses dynamic columns, which would be generally be expected to have multiple row values. In
+     *   this case, compression 1 is appropriate so { row } only needs to be stored once.
+     * - Finally, if the sweep strategy is not CONSERVATIVE, there are no sentinels, and if there is only one named
+     *   column then there will be no rows that share { row } so compression should be disabled.
+     */
+    @VisibleForTesting
+    static int getOptimalIndexCompression(TableMetadata metadata) {
+        if (metadata.getSweepStrategy() == SweepStrategy.CONSERVATIVE) {
+            // the table's sweep strategy is CONSERVATIVE, then every { row, col } will have at least two rows
+            return 2;
+        }
+
+        ColumnMetadataDescription columns = metadata.getColumns();
+        // there will be reuse of the { row } if there is more than one named column
+        // or the table uses dynamic columns, which would be generally be expected to have multiple row values
+        if (columns.hasDynamicColumns()) {
+            return 1;
+        }
+        Set<NamedColumnDescription> namedColumns = columns.getNamedColumns();
+        if (namedColumns != null && namedColumns.size() > 1) {
+            return 1;
+        }
+
+        return 0;
     }
 
     private boolean overflowColumnExists(String shortTableName) {
@@ -185,7 +233,7 @@ private void throwForMissingOverflowTable() {
     /**
      * Creates the table for the given reference. If the schema is modified here, please also update it in {@link #alterTableToHaveOverflowColumn}.
      */
-    private String createTable(boolean needsOverflow) {
+    private String createTable(boolean needsOverflow, int compression) {
         String shortTableName = oracleTableNameGetter.generateShortTableName(conns, tableRef);
         executeIgnoringError(
                 "CREATE TABLE " + shortTableName + " ("
@@ -197,7 +245,8 @@ private String createTable(boolean needsOverflow) {
                         + "  CONSTRAINT " + PrimaryKeyConstraintNames.get(shortTableName)
                         + " PRIMARY KEY (row_name, col_name, ts) "
                         + ") "
-                        + "organization index compress "
+                        + "organization index "
+                        + (compression == 0 ? "" : "compress " + compression + " ")
                         // Since append only completely fill blocks - no benefit in leaving space for updates of rows
                         // PCTUSED N/A to Index Organized Tables
                         + "PCTFREE 0 "u}(j- (e22af5a95fd838f0ae5d4de23759495e249828a8jf. catlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTableTest.javajh. modifiedj`. K7ja. K jj. K7jk. https://github.com/palantir/atlasdb/blob/728d80eb5a7370ce9bdb230d49a27f5a771b0431/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javajm. https://github.com/palantir/atlasdb/raw/728d80eb5a7370ce9bdb230d49a27f5a771b0431/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javajo. https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.java?ref=728d80eb5a7370ce9bdb230d49a27f5a771b0431jq. X,  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle;
 
 import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
@@ -41,6 +42,11 @@
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.OverflowMigrationState;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyle;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyleCache;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.ColumnValueDescription;
+import com.palantir.atlasdb.table.description.NameComponentDescription;
+import com.palantir.atlasdb.table.description.NamedColumnDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.table.description.ValueType;
 import com.palantir.common.concurrent.PTExecutors;
@@ -50,6 +56,8 @@
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.nexus.db.sql.SqlConnection;
+import java.util.ArrayList;
+import java.util.List;
 import java.util.Locale;
 import java.util.Set;
 import java.util.concurrent.ExecutorService;
@@ -348,6 +356,53 @@ public void createDoesNotThrowWhenOverflowColumnAlreadyExistsAndAlterIsRan() thr
         verifyTableAltered();
     }
 
+    @Test
+    public void conservativeSweptTablesHaveIndexCompression2() {
+        for (int numColumns = 0; numColumns <= 2; numColumns++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.CONSERVATIVE);
+            for (int colName = 0; colName < numColumns; colName++) {
+                metadataBuilder.singleNamedColumn("c" + colName, "col" + colName, ValueType.STRING);
+            }
+            TableMetadata metadata = metadataBuilder.build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(2);
+        }
+    }
+
+    @Test
+    public void thoroughSweptTablesWithDynamicColsHaveIndexCompression1() {
+        TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+        TableMetadata metadata = metadataBuilder
+                .dynamicColumns(List.of(NameComponentDescription.of("c", ValueType.STRING)), ValueType.STRING)
+                .build();
+        assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(1);
+    }
+
+    @Test
+    public void thoroughSweptTablesWithMultipleNamedColsHaveIndexCompression1() {
+        for (int numColumns = 2; numColumns <= 3; numColumns++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+            List<NamedColumnDescription> columns = new ArrayList<>();
+            for (int colDesc = 1; colDesc <= numColumns; colDesc++) {
+                columns.add(new NamedColumnDescription(
+                        "c" + colDesc, "col" + colDesc, ColumnValueDescription.forType(ValueType.STRING)));
+            }
+            TableMetadata metadata = metadataBuilder
+                    .columns(new ColumnMetadataDescription(columns))
+                    .build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(1);
+        }
+    }
+
+    @Test
+    public void thoroughSweptTablesWithOneNamedColHaveIndexCompressionDisabled() {
+        TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+        TableMetadata metadata = metadataBuilder
+                .columns(new ColumnMetadataDescription(List.of(
+                        new NamedColumnDescription("c", "col", ColumnValueDescription.forType(ValueType.STRING)))))
+                .build();
+        assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(0);
+    }
+
     private void createTable() throws TableMappingNotFoundException {
         // Not all tests will call OracleDdlTable#createTable, which makes sense as this test "creates" it for them!
         lenient()u}(j- (dc8ccab7fb0c3ad8d14f7566ab89d660c8508c47jf. $changelog/@unreleased/pr-6498.v2.ymljh. addedj`. Kja. K jj. Kjk. |https://github.com/palantir/atlasdb/blob/728d80eb5a7370ce9bdb230d49a27f5a771b0431/changelog%2F%40unreleased%2Fpr-6498.v2.ymljm. {https://github.com/palantir/atlasdb/raw/728d80eb5a7370ce9bdb230d49a27f5a771b0431/changelog%2F%40unreleased%2Fpr-6498.v2.ymljo. https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6498.v2.yml?ref=728d80eb5a7370ce9bdb230d49a27f5a771b0431jq. @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Choose optimal IOT compression based on table params
+  links:
+  - https://github.com/palantir/atlasdb/pull/6498ueu(292b9c6054e624cdc0fa5d12dd577025587df4c3}(sha(292b9c6054e624cdc0fa5d12dd577025587df4c3node_idEC_kwDOAjP5fdoAKDI5MmI5YzYwNTRlNjI0Y2RjMGZhNWQxMmRkNTc3MDI1NTg3ZGY0YzMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-06T15:01:49Zu	committer}(j. 
Sam Kramerj. skramer@palantir.comj. 2023-04-06T15:01:49Zumessageclean uptree}(j. (b778d88cbde022550090d448430d4948452ef6cburl`https://api.github.com/repos/palantir/atlasdb/git/trees/b778d88cbde022550090d448430d4948452ef6cbuj. bhttps://api.github.com/repos/palantir/atlasdb/git/commits/292b9c6054e624cdc0fa5d12dd577025587df4c3
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQu3t0ACgkQmPPOpKR4
XS1LXggApQ5pP/q3cYyor9YQbQmvf9x+IPWph9XTnge7sXN9X/7XXCM3CUUKm26G
WFcUDtjvFmkRZBUfJJenb+axNsy3sM6rqLfW5gOyhqKG0mHsK1HIwK86iYPkh+If
0g/ccwe+VHwiIhI3oUqgD35OoOwx/+0y3FR/VZaX406oGFHLup1gGx5lVMIvOCVA
icBdjS+aECEcLq/ZkKtoJoy3bho656VPnFsxCJju57D2WyvZ87Xwre9rKnCl30MB
qx43yVMu/VNtC8EEfgjvd1y3TKjstMffS2ZUhE8YrhLZaMAbMWkH/5d8r9yBZk4h
8SXVZLos4bUjfivToIrcTQR9AhZ4cg==
=10gc
-----END PGP SIGNATURE-----payloadtree b778d88cbde022550090d448430d4948452ef6cb
parent c47bde42e601594684f73e194e68cd20884ad510
author Sam Kramer <skramer@palantir.com> 1680793309 +0100
committer Sam Kramer <skramer@palantir.com> 1680793309 +0100

clean up
uuj. ^https://api.github.com/repos/palantir/atlasdb/commits/292b9c6054e624cdc0fa5d12dd577025587df4c3html_urlShttps://github.com/palantir/atlasdb/commit/292b9c6054e624cdc0fa5d12dd577025587df4c3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/292b9c6054e624cdc0fa5d12dd577025587df4c3/commentsj. }(login
Sam-KrameridJ^2_ j. MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j. 'https://api.github.com/users/Sam-Kramerj. https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj. }(j. 
Sam-Kramerj. J^2_ j. MDQ6VXNlcjYyMzg4MTQ=j. 3https://avatars.githubusercontent.com/u/6238814?v=4j. h5j. 'https://api.github.com/users/Sam-Kramerj. https://github.com/Sam-Kramerj. 1https://api.github.com/users/Sam-Kramer/followersj. >https://api.github.com/users/Sam-Kramer/following{/other_user}j. 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j. >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j. 5https://api.github.com/users/Sam-Kramer/subscriptionsj. ,https://api.github.com/users/Sam-Kramer/orgsj. -https://api.github.com/users/Sam-Kramer/reposj. 8https://api.github.com/users/Sam-Kramer/events{/privacy}j. 7https://api.github.com/users/Sam-Kramer/received_eventsj. Userj. uparents]}(j. (c47bde42e601594684f73e194e68cd20884ad510j. ^https://api.github.com/repos/palantir/atlasdb/commits/c47bde42e601594684f73e194e68cd20884ad510j. Shttps://github.com/palantir/atlasdb/commit/c47bde42e601594684f73e194e68cd20884ad510uastats}(totalK	additionsK	deletionsKufiles]}(j. (c55d1d862a932c01521fd1fbf3812e8a3a91dd9bfilenamefatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javastatusmodifiedj. Kj. KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/292b9c6054e624cdc0fa5d12dd577025587df4c3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/292b9c6054e624cdc0fa5d12dd577025587df4c3/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=292b9c6054e624cdc0fa5d12dd577025587df4c3patchX9  @@ -73,15 +73,13 @@ public Optional<Integer> get(String table, WorkloadCell cell) {
 
     @Override
     public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
-        AtomicReference<Long> startTimestampReference = new AtomicReference<>();
         AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
         Supplier<CommitTimestampProvider> commitTimestampProvider =
                 Suppliers.memoize(() -> new CommitTimestampProvider());
         try {
             Transaction transaction =
                     transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
                         AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
-                        startTimestampReference.set(txn.getTimestamp());
                         witnessedActionsReference.set(actions.stream()
                                 .sequential()
                                 .map(action -> action.accept(visitor))
@@ -94,10 +92,10 @@ public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions)
             }
 
             return Optional.of(ImmutableWitnessedTransaction.builder()
-                    .startTimestamp(startTimestampReference.get())
+                    .startTimestamp(transaction.getTimestamp())
                     .commitTimestamp(commitTimestampProvider
                             .get()
-                            .getCommitTimestampOrThrowIfMaybeNotCommitted(startTimestampReference.get()))
+                            .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
                     .actions(witnessedActionsReference.get())
                     .build());
         } catch (SafeIllegalArgumentException e) {uau(546ad23c6bf5c59aa89b212d123ad9444568cb8d}(sha(546ad23c6bf5c59aa89b212d123ad9444568cb8dnode_idEC_kwDOAjP5fdoAKDU0NmFkMjNjNmJmNWM1OWFhODliMjEyZDEyM2FkOTQ0NDU2OGNiOGQcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-15T12:25:41Zu	committer}(j/ Lucas Meirelesj/ meireles31@msn.comj/ 2023-06-15T12:25:41Zumessage(invert param that SweepStrategy receivestree}(j/ (d156a33a8cecc69286f710d7208a08b8a2dbc8adurl`https://api.github.com/repos/palantir/atlasdb/git/trees/d156a33a8cecc69286f710d7208a08b8a2dbc8aduj/ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/546ad23c6bf5c59aa89b212d123ad9444568cb8d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSLA0UACgkQJd22kJ7J
GizU3wf8CKWDHD+wzzPSbSfqyr3CnW09w/Rpm7OS33oikL3khfE7goufqfjIoLDP
sKt8+9zu4fxJNgjHSSxCdF56pt3gO/6lGnu80MJ2X7KQuUmsw889eIjWQq2F4m8J
4U6rUGm92d9doONaZXy3Qr0oL6ogLdL5iaQKwNgTgM4KE3Mlefh8NzZ7iRr6q2G4
fxlZuh/5hpqboCrcuJwGZUkDx9HXiH3Zjn0LlxQvovcoHcBN9yurcu+tI/je7Qx3
EHqFMcS77n2pRe7WdOcFEO4UggojG4o70yKp6/iQ5Wa8PRTMRnjL/Qf33nslRo/V
ZZd/iz4u0JOzgFZ+UwUIkV02lfJ8Lg==
=xGZF
-----END PGP SIGNATURE-----payloadX  tree d156a33a8cecc69286f710d7208a08b8a2dbc8ad
parent 2a517f8aa89af8d806bc3c4d3916dab9926339f7
author Lucas Meireles <meireles31@msn.com> 1686831941 +0100
committer Lucas Meireles <meireles31@msn.com> 1686831941 +0100

invert param that SweepStrategy receives
uuj/ ^https://api.github.com/repos/palantir/atlasdb/commits/546ad23c6bf5c59aa89b212d123ad9444568cb8dhtml_urlShttps://github.com/palantir/atlasdb/commit/546ad23c6bf5c59aa89b212d123ad9444568cb8dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/546ad23c6bf5c59aa89b212d123ad9444568cb8d/commentsj
/ }(loginLucasIMEidJg j/ MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j/ %https://api.github.com/users/LucasIMEj*/ https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj/ }(j// LucasIMEj1/ Jg j/ MDQ6VXNlcjY3ODczMTE=j3/ 3https://avatars.githubusercontent.com/u/6787311?v=4j5/ h5j/ %https://api.github.com/users/LucasIMEj*/ https://github.com/LucasIMEj8/ /https://api.github.com/users/LucasIME/followersj:/ <https://api.github.com/users/LucasIME/following{/other_user}j</ 5https://api.github.com/users/LucasIME/gists{/gist_id}j>/ <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j@/ 3https://api.github.com/users/LucasIME/subscriptionsjB/ *https://api.github.com/users/LucasIME/orgsjD/ +https://api.github.com/users/LucasIME/reposjF/ 6https://api.github.com/users/LucasIME/events{/privacy}jH/ 5https://api.github.com/users/LucasIME/received_eventsjJ/ UserjL/ uparents]}(j/ (2a517f8aa89af8d806bc3c4d3916dab9926339f7j/ ^https://api.github.com/repos/palantir/atlasdb/commits/2a517f8aa89af8d806bc3c4d3916dab9926339f7j*/ Shttps://github.com/palantir/atlasdb/commit/2a517f8aa89af8d806bc3c4d3916dab9926339f7uastats}(totalK
	additionsK	deletionsKufiles](}(j/ (b82ea2021d7b8c940c8022014fce72119c616377filenameVatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javastatusmodifiedjf/ Kjg/ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/546ad23c6bf5c59aa89b212d123ad9444568cb8d/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaraw_urlhttps://github.com/palantir/atlasdb/raw/546ad23c6bf5c59aa89b212d123ad9444568cb8d/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=546ad23c6bf5c59aa89b212d123ad9444568cb8dpatchX  @@ -49,10 +49,10 @@ public Optional<SweeperStrategy> getSweeperStrategy() {
         return sweeperStrategy;
     }
 
-    public boolean mustCheckImmutableLock(boolean hasReadEmptyCells) {
-        return hasReadEmptyCells
-                ? mustCheckImmutableLockIfEmptyCellWasPossiblyRead
-                : mustCheckImmutableLockIfAllCellsReadAndPresent;
+    public boolean mustCheckImmutableLock(boolean allPossibleCellsReandAndPresent) {
+        return allPossibleCellsReandAndPresent
+                ? mustCheckImmutableLockIfAllCellsReadAndPresent
+                : mustCheckImmutableLockIfEmptyCellWasPossiblyRead;
     }
 
     public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy) {u}(j/ (98600c08c5ec05d0a7e26d968ed233e9f0162241jl/ Watlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ReadTransaction.javajn/ modifiedjf/ Kjg/ Kjp/ Kjq/ https://github.com/palantir/atlasdb/blob/546ad23c6bf5c59aa89b212d123ad9444568cb8d/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javajs/ https://github.com/palantir/atlasdb/raw/546ad23c6bf5c59aa89b212d123ad9444568cb8d/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaju/ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.java?ref=546ad23c6bf5c59aa89b212d123ad9444568cb8djw/ X  @@ -138,7 +138,7 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
     private void checkTableName(TableReference tableRef) {
         SweepStrategy sweepStrategy = sweepStrategies.get(tableRef);
         Preconditions.checkState(
-                !sweepStrategy.mustCheckImmutableLock(true /* no read was actually done, but we don't want to use
+                !sweepStrategy.mustCheckImmutableLock(false /* no read was actually done, but we don't want to use
                 ReadTransaction on thoroughly swept tables */),
                 "This table cannot be read from a read-only transaction, because its "
                         + "sweep strategy is neither NOTHING nor CONSERVATIVE",ueu(ce70f3be4eeb4be78935f8bfe8cf719bda37b094}(sha(ce70f3be4eeb4be78935f8bfe8cf719bda37b094node_idEC_kwDOAjP5fdoAKGNlNzBmM2JlNGVlYjRiZTc4OTM1ZjhiZmU4Y2Y3MTliZGEzN2IwOTQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-17T13:23:43Zu	committer}(j/ 
Sam Kramerj/ skramer@palantir.comj/ 2023-08-17T13:23:43Zumessagebliptree}(j/ (b7a2b7100452a795a34f725cf20f605660acd0c8url`https://api.github.com/repos/palantir/atlasdb/git/trees/b7a2b7100452a795a34f725cf20f605660acd0c8uj/ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ce70f3be4eeb4be78935f8bfe8cf719bda37b094
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTeH18ACgkQmPPOpKR4
XS3YWAf/Y/RkLi/r0f9nAdgqb3BeMRXpqZluhfgZlMujoaVXfmxOsGISr8u7A46s
/jvhxy2fBY5u5xgdcpG1s5mil+sO6zDnDpKS4yUjhamOqlAvesADLcK6pn5Kn4lq
jgkKHVYByFMXV77+6eUU5UdMsjiF/Kjst/IzKGjrk/YtJv/ZjvxhWy0kYOh8HuLw
gykelAEtbdziQkp2eoORT9DAb6ofb9XDMYcMTkaysWSHjvXEEKDLR56cxMP10l8/
D9NJPoB9rQeUZ/6l5FhHi+MRJzm5PTX60Vgl8XwUCPpFR0EhtXneC94cZkaIKgSG
gwz5Ke4KcKBa2bX5U3f/EDT9XLRkOA==
=AqqR
-----END PGP SIGNATURE-----payloadtree b7a2b7100452a795a34f725cf20f605660acd0c8
parent 5cce8c0421126a532bd68aee855eaba3b25515dc
author Sam Kramer <skramer@palantir.com> 1692278623 +0100
committer Sam Kramer <skramer@palantir.com> 1692278623 +0100

blip
uuj/ ^https://api.github.com/repos/palantir/atlasdb/commits/ce70f3be4eeb4be78935f8bfe8cf719bda37b094html_urlShttps://github.com/palantir/atlasdb/commit/ce70f3be4eeb4be78935f8bfe8cf719bda37b094comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ce70f3be4eeb4be78935f8bfe8cf719bda37b094/commentsj/ }(login
Sam-KrameridJ^2_ j/ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j/ 'https://api.github.com/users/Sam-Kramerj/ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj/ }(j/ 
Sam-Kramerj/ J^2_ j/ MDQ6VXNlcjYyMzg4MTQ=j/ 3https://avatars.githubusercontent.com/u/6238814?v=4j/ h5j/ 'https://api.github.com/users/Sam-Kramerj/ https://github.com/Sam-Kramerj/ 1https://api.github.com/users/Sam-Kramer/followersj/ >https://api.github.com/users/Sam-Kramer/following{/other_user}j/ 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j/ >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j/ 5https://api.github.com/users/Sam-Kramer/subscriptionsj/ ,https://api.github.com/users/Sam-Kramer/orgsj/ -https://api.github.com/users/Sam-Kramer/reposj/ 8https://api.github.com/users/Sam-Kramer/events{/privacy}j/ 7https://api.github.com/users/Sam-Kramer/received_eventsj/ Userj/ uparents]}(j/ (5cce8c0421126a532bd68aee855eaba3b25515dcj/ ^https://api.github.com/repos/palantir/atlasdb/commits/5cce8c0421126a532bd68aee855eaba3b25515dcj/ Shttps://github.com/palantir/atlasdb/commit/5cce8c0421126a532bd68aee855eaba3b25515dcuastats}(totalK	additionsK	deletionsKufiles]}(j/ (5e16d5f58662cb3f7a4f6d4773676bb96e12028dfilename]timelock-impl/src/main/java/com/palantir/atlasdb/timelock/paxos/PaxosTimestampBoundStore.javastatusmodifiedj/ Kj/ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ce70f3be4eeb4be78935f8bfe8cf719bda37b094/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ce70f3be4eeb4be78935f8bfe8cf719bda37b094/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.java?ref=ce70f3be4eeb4be78935f8bfe8cf719bda37b094patchX6  @@ -224,7 +224,7 @@ private Optional<SequenceAndBound> getLearnedState(long seq) {
      */
     @Override
     public synchronized void storeUpperLimit(long limit) throws MultipleRunningTimestampServiceError {
-        Preconditions.checkState(hasLostLeadership, "Cannot store upper limit as leadership has been lost.");
+        Preconditions.checkState(!hasLostLeadership, "Cannot store upper limit as leadership has been lost.");
         long newSeq = PaxosAcceptor.NO_LOG_ENTRY + 1;
         if (agreedState != null) {
             Preconditions.checkArgument(uau(1f03ac899ef84bcddc5827b1f85835ff90ca3c24}(sha(1f03ac899ef84bcddc5827b1f85835ff90ca3c24node_idEC_kwDOAjP5fdoAKDFmMDNhYzg5OWVmODRiY2RkYzU4MjdiMWY4NTgzNWZmOTBjYTNjMjQcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-03-13T18:56:14Zu	committer}(j0 
svc-changelogj0 svc-changelog@palantir.comj0 2023-03-13T18:56:14ZumessageAdd generated changelog entriestree}(j/ (d82f467db5224175fa1a941105c41a21b15523e5url`https://api.github.com/repos/palantir/atlasdb/git/trees/d82f467db5224175fa1a941105c41a21b15523e5uj0 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1f03ac899ef84bcddc5827b1f85835ff90ca3c24
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQPcc4JEHYaJX37fAFQAAAR9wD7Bdifg8hUZPhFH09lhPqmsMMS
3S9K8TcE2Cjz89QMQT4BAJ6QX+vzC6AWz3xwcA2+/6wYodjNt7xkMeichtVUg39P
=gN5i
-----END PGP SIGNATURE-----payloadX  tree d82f467db5224175fa1a941105c41a21b15523e5
parent 7f1620cfb6bdbf12c133c40a0a81cc3da669a925
author svc-changelog <svc-changelog@palantir.com> 1678733774 +0000
committer svc-changelog <svc-changelog@palantir.com> 1678733774 +0000

Add generated changelog entriesuuj0 ^https://api.github.com/repos/palantir/atlasdb/commits/1f03ac899ef84bcddc5827b1f85835ff90ca3c24html_urlShttps://github.com/palantir/atlasdb/commit/1f03ac899ef84bcddc5827b1f85835ff90ca3c24comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1f03ac899ef84bcddc5827b1f85835ff90ca3c24/commentsj 0 }(login
svc-changelogidJ#j/ MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j0 *https://api.github.com/users/svc-changelogj 0  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj0 }(j%0 
svc-changelogj'0 J#j/ MDQ6VXNlcjg0MDc3NjAzj)0 4https://avatars.githubusercontent.com/u/84077603?v=4j+0 h5j0 *https://api.github.com/users/svc-changelogj 0  https://github.com/svc-changelogj.0 4https://api.github.com/users/svc-changelog/followersj00 Ahttps://api.github.com/users/svc-changelog/following{/other_user}j20 :https://api.github.com/users/svc-changelog/gists{/gist_id}j40 Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j60 8https://api.github.com/users/svc-changelog/subscriptionsj80 /https://api.github.com/users/svc-changelog/orgsj:0 0https://api.github.com/users/svc-changelog/reposj<0 ;https://api.github.com/users/svc-changelog/events{/privacy}j>0 :https://api.github.com/users/svc-changelog/received_eventsj@0 UserjB0 uparents]}(j/ (7f1620cfb6bdbf12c133c40a0a81cc3da669a925j0 ^https://api.github.com/repos/palantir/atlasdb/commits/7f1620cfb6bdbf12c133c40a0a81cc3da669a925j 0 Shttps://github.com/palantir/atlasdb/commit/7f1620cfb6bdbf12c133c40a0a81cc3da669a925uastats}(totalK	additionsK	deletionsK ufiles]}(j/ (a3d39bdf44843834f5865d2896af4ae58473f11afilename$changelog/@unreleased/pr-6473.v2.ymlstatusaddedj\0 Kj]0 K changesKblob_url|https://github.com/palantir/atlasdb/blob/1f03ac899ef84bcddc5827b1f85835ff90ca3c24/changelog%2F%40unreleased%2Fpr-6473.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/1f03ac899ef84bcddc5827b1f85835ff90ca3c24/changelog%2F%40unreleased%2Fpr-6473.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6473.v2.yml?ref=1f03ac899ef84bcddc5827b1f85835ff90ca3c24patchX   @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: When no Cassandra hosts are available, AtlasDB throws `AtlasDbDependencyException`
+    instead of `SafeIllegalArgumentException`.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6473uau(32ed9251cd01bb5e16851040c1387832846cb395}(sha(32ed9251cd01bb5e16851040c1387832846cb395node_idEC_kwDOAjP5fdoAKDMyZWQ5MjUxY2QwMWJiNWUxNjg1MTA0MGMxMzg3ODMyODQ2Y2IzOTUcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-03T17:00:26Zu	committer}(jy0 Jeremy Kongj{0 jkong@palantir.comj}0 2023-07-03T17:00:26ZumessageOMerge remote-tracking branch 'origin/develop' into jkong/antithesis-range-two-7tree}(jq0 (466d1e1b6d7cbb5ac75761d61d8f50e5c4443d97url`https://api.github.com/repos/palantir/atlasdb/git/trees/466d1e1b6d7cbb5ac75761d61d8f50e5c4443d97uj0 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/32ed9251cd01bb5e16851040c1387832846cb395
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSi/qwACgkQTLdFKain
zjyqcAgAvfHHqcAhz82HACGXDHxnLnvQZsmnjhcABlzHIBLfUKHx+5xB7KZm+xys
UoWWqk9a7vK0irO2POzdxjIhVsHYgUFdHalm6a/Qkj+jrQolpu3TaGLYUfPzAHta
ad6whhTuyx08g5ikdA9XZ3U/z8rvNlSld/XrSvVoS59D02FYr4zyDtolRtAkPWRi
wzTL9tJpdHL+X85+0BAoCjRzZ55ArgR4qyvruSudrAAGWpyENVdwzBbT/FBaV/WM
u3M1ZznLVAZRFoYV0JtM5smuHSFeSCaOzJeubut0ypmvFaWhrPKDsNJ3IAI27PMu
HdCeyxRGc49e0Uof4Y11dNz/qNv8ag==
=4geT
-----END PGP SIGNATURE-----     payloadXT  tree 466d1e1b6d7cbb5ac75761d61d8f50e5c4443d97
parent 72b003f4750fac0d6ed4a124514bf82ba47b3918
parent b1dfe8f8f9cb59884c44e3f626c518fe884d9708
author Jeremy Kong <jkong@palantir.com> 1688403626 +0100
committer Jeremy Kong <jkong@palantir.com> 1688403626 +0100

Merge remote-tracking branch 'origin/develop' into jkong/antithesis-range-two-7
uuj0 ^https://api.github.com/repos/palantir/atlasdb/commits/32ed9251cd01bb5e16851040c1387832846cb395html_urlShttps://github.com/palantir/atlasdb/commit/32ed9251cd01bb5e16851040c1387832846cb395comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/32ed9251cd01bb5e16851040c1387832846cb395/commentsjw0 }(login
jeremyk-91idJZ js0 MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j0 'https://api.github.com/users/jeremyk-91j0 https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj0 }(j0 
jeremyk-91j0 JZ js0 MDQ6VXNlcjU5NTU1MTA=j0 3https://avatars.githubusercontent.com/u/5955510?v=4j0 h5j0 'https://api.github.com/users/jeremyk-91j0 https://github.com/jeremyk-91j0 1https://api.github.com/users/jeremyk-91/followersj0 >https://api.github.com/users/jeremyk-91/following{/other_user}j0 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j0 >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j0 5https://api.github.com/users/jeremyk-91/subscriptionsj0 ,https://api.github.com/users/jeremyk-91/orgsj0 -https://api.github.com/users/jeremyk-91/reposj0 8https://api.github.com/users/jeremyk-91/events{/privacy}j0 7https://api.github.com/users/jeremyk-91/received_eventsj0 Userj0 uparents](}(jq0 (72b003f4750fac0d6ed4a124514bf82ba47b3918j0 ^https://api.github.com/repos/palantir/atlasdb/commits/72b003f4750fac0d6ed4a124514bf82ba47b3918j0 Shttps://github.com/palantir/atlasdb/commit/72b003f4750fac0d6ed4a124514bf82ba47b3918u}(jq0 (b1dfe8f8f9cb59884c44e3f626c518fe884d9708j0 ^https://api.github.com/repos/palantir/atlasdb/commits/b1dfe8f8f9cb59884c44e3f626c518fe884d9708j0 Shttps://github.com/palantir/atlasdb/commit/b1dfe8f8f9cb59884c44e3f626c518fe884d9708uestats}(totalM
	additionsMd		deletionsM>ufiles](}(jq0 (7e1fc418d0ab8950f7d0a2c8a9ed46fe72c28ab9filenamePatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/KeyValueService.javastatusmodifiedj0 Kj0 K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.java?ref=32ed9251cd01bb5e16851040c1387832846cb395patchX  @@ -711,4 +711,11 @@ default boolean shouldTriggerCompactions() {
     default boolean isValid() {
         return true;
     }
+
+    @DoDelegate
+    default boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        // This is in general True, but we're setting to false to start rollout only for C* of stopping to check for
+        // immutable timestamp lock on non empty reads on thoroughly swept tables.
+        return false;
+    }
 }u}(jq0 (783bc3b5467ffef2ad1e64d4a8aefd0da4ee44ddj0 jatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/TransactionCommitLockInfo.javaj0 addedj0 K%j0 K j0 K%j0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2Fexpectations%2FTransactionCommitLockInfo.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 Xg  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api.expectations;
+
+import org.immutables.value.Value;
+
+/**
+ * Data about the amount of commit locks requested by a transaction.
+ */
+@Value.Immutable
+public interface TransactionCommitLockInfo {
+
+    /**
+     * The number of cell-level locks requested as part of the commit protocol (excluding any user-defined locking).
+     */
+    long cellCommitLocksRequested();
+
+    /**
+     * The number of row-level locks requested as part of the commit protocol (excluding any user-defined locking).
+     * For write transactions, this includes the single row lock that is requested for the transaction table itself.
+     */
+    long rowCommitLocksRequested();
+}u}(jq0 (22dc29e0664eb2fea2e0669bb248c2333fbefdd4j0 atlasdb-cassandra-integration-tests/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceIntegrationTest.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceIntegrationTest.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X=  @@ -709,6 +709,12 @@ public void testMultiCheckAndSetIndependentlyFails() {
         verifyMultiCheckAndSet(ImmutableMap.of(firstTestCell, val(0, 0), nextTestCell, val(0, 1)));
     }
 
+    @Test
+    public void cassandraHasStrictlyNonDecreasingSweep() {
+        assertThat(keyValueService.sweepsEntriesInStrictlyNonDecreasingFashion())
+                .isTrue();
+    }
+
     private void verifyMultiCheckAndSet(Map<Cell, byte[]> expectedValues) {
         Multimap<Cell, Long> timestamps = keyValueService.getAllTimestamps(TEST_TABLE, expectedValues.keySet(), 1L);
 u}(jq0 (d7d2d87671c66d0e3f85762da04755fb7955d5b1j0 iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -2033,6 +2033,11 @@ public ClusterAvailabilityStatus getClusterAvailabilityStatus() {
         return clusterStatus;
     }
 
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return true;
+    }
+
     private static boolean isClusterQuorumAvaialble(ClusterAvailabilityStatus clusterStatus) {
         return clusterStatus.equals(ClusterAvailabilityStatus.ALL_AVAILABLE)
                 || clusterStatus.equals(ClusterAvailabilityStatus.QUORUM_AVAILABLE);u}(jq0 (4e16bd6856b710e2bea5df31215dec94adb90e6bj0 batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaj0 modifiedj0 Kj0 Kj0 K#j0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X
  @@ -148,18 +148,17 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
                 hostToDatacentersThisRefresh.put(onlyHost, onlyEndpoint.getDatacenter());
             } else { // normal case, large cluster with many vnodes
                 for (TokenRange tokenRange : tokenRanges) {
-                    Map<CassandraServer, String> hostToDatacentersOnThisTokenRange = KeyedStream.of(
-                                    tokenRange.getEndpoint_details())
-                            .mapKeys(EndpointDetails::getHost)
-                            .mapKeys(this::getAddressForHostThrowUnchecked)
-                            .map(EndpointDetails::getDatacenter)
-                            .collectToMap();
-
-                    ImmutableSet<CassandraServer> hosts =
-                            ImmutableSet.copyOf(hostToDatacentersOnThisTokenRange.keySet());
-                    servers.addAll(hosts);
-                    hostToDatacentersThisRefresh.putAll(hostToDatacentersOnThisTokenRange);
+                    List<EndpointDetails> endpointDetails = tokenRange.getEndpoint_details();
+                    ImmutableSet.Builder<CassandraServer> hostsBuilder =
+                            ImmutableSet.builderWithExpectedSize(endpointDetails.size());
+                    for (EndpointDetails endpoint : endpointDetails) {
+                        CassandraServer cassandraServer = getAddressForHostThrowUnchecked(endpoint.getHost());
+                        hostToDatacentersThisRefresh.put(cassandraServer, endpoint.getDatacenter());
+                        hostsBuilder.add(cassandraServer);
+                        servers.add(cassandraServer);
+                    }
 
+                    ImmutableSet<CassandraServer> hosts = hostsBuilder.build();
                     LightweightOppToken startToken = LightweightOppToken.fromHex(tokenRange.getStart_token());
                     LightweightOppToken endToken = LightweightOppToken.fromHex(tokenRange.getEnd_token());
                     if (startToken.compareTo(endToken) <= 0) {
@@ -288,17 +287,15 @@ private CassandraServer getAddressForHostThrowUnchecked(String host) {
     CassandraServer getAddressForHost(String inputHost) throws UnknownHostException {
         Map<String, String> hostnamesByIp = hostnameByIpSupplier.get();
         String cassandraHostName = hostnamesByIp.getOrDefault(inputHost, inputHost);
-        return CassandraServer.of(cassandraHostName, getReachableProxies(cassandraHostName));
-    }
-
-    private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) throws UnknownHostException {
-        InetAddress[] resolvedHosts = InetAddress.getAllByName(inputHost);
+        InetAddress[] resolvedHosts = InetAddress.getAllByName(cassandraHostName);
         int knownPort = getKnownPort();
 
         // It is okay to have reachable proxies that do not have a hostname
-        return Stream.of(resolvedHosts)
-                .map(inetAddr -> new InetSocketAddress(inetAddr, knownPort))
-                .collect(ImmutableSet.toImmutableSet());
+        ImmutableSet.Builder<InetSocketAddress> proxies = ImmutableSet.builderWithExpectedSize(resolvedHosts.length);
+        for (InetAddress host : resolvedHosts) {
+            proxies.add(new InetSocketAddress(host, knownPort));
+        }
+        return CassandraServer.of(cassandraHostName, proxies.build());
     }
 
     private int getKnownPort() throws UnknownHostException {u}(jq0 (502ae947a588e3d9dcebd649967cafd91a08374bj0 datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppTokenTest.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -46,9 +46,9 @@ public static Collection<Object[]> data() {
     @Test
     public void inputsAreValidBase16Strings() {
         assertThat(input).matches("^[0-9a-fA-F]*$");
-        assertThat(input.length() % 2 == 0)
+        assertThat(input.length() % 2)
                 .as("input must be even length to base16 decode")
-                .isTrue();
+                .isEqualTo(0);
         assertThat(CassandraHex.hexToBytes(input)).hasSize(input.length() / 2);
     }
 u}(jq0 (a0daffcaa0a4ea862e707fb50afd62871f197c8ej0 ]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/DualWriteKeyValueService.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FDualWriteKeyValueService.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -318,4 +318,9 @@ public List<byte[]> getRowKeysInRange(TableReference tableRef, byte[] startRow,
     public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<Cell, Long> timestampByCell) {
         return delegate1.getAsync(tableRef, timestampByCell);
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate1.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(jq0 (1ab84302f51e4bad9eef3b306d5f224b087a44d4j0 \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/InMemoryKeyValueService.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X-  @@ -735,6 +735,12 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
         return Futures.immediateFuture(get(tableRef, timestampByCell));
     }
 
+    // Marking this as true as it's only used for tests, so we can better replicate Cassandra behaviour.
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return true;
+    }
+
     /**
      * This takes out a reentrant read lock. It is only exclusive specifically with
      * {@link #multiCheckAndSet(MultiCheckAndSetRequest)}.u}(jq0 (d41572b88d0c8b10e1042d4d64b59e123b40c6c1j0 ]atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/ProfilingKeyValueService.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FProfilingKeyValueService.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X|  @@ -554,4 +554,9 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
                         LoggingArgs.durationMillis(stopwatch)),
                 logCellResultSize(4L));
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(jq0 (aee4560b5007342d777bb076c6630351e4618aa1j0 [atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/TracingKeyValueService.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -531,6 +531,11 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
         });
     }
 
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate().sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
+
     @MustBeClosed
     private static CloseableTracer startLocalTrace(@CompileTimeConstant final String operation) {
         TraceStatistic original = TraceStatistics.getCurrentAndClear();u}(jq0 (b901787debfe08e9dc92324e1ecea39bb182ade1j0 Vatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javaj0 modifiedj0 K(j0 K
j0 K2j0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 Xq  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.table.description;
 
+import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
@@ -29,27 +30,40 @@
 public final class SweepStrategy {
 
     public static final SweepStrategy CONSERVATIVE =
-            new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false);
-    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), true);
+            new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false, false);
+    public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), false, true);
 
     private final Optional<SweeperStrategy> sweeperStrategy;
-    private final boolean mustCheckImmutableLockAfterReads;
+    private final boolean mustCheckImmutableLockIfAllCellsReadAndPresent;
 
-    private SweepStrategy(Optional<SweeperStrategy> sweeperStrategy, boolean mustCheckImmutableLockAfterReads) {
+    // When we either read an empty value or perform reads like a range-scan, where we can't be certain of how many
+    // values we expect.
+    private final boolean mustCheckImmutableLockIfNonExhaustiveRead;
+
+    private SweepStrategy(
+            Optional<SweeperStrategy> sweeperStrategy,
+            boolean mustCheckImmutableLockIfAllCellsReadAndPresent,
+            boolean mustCheckImmutableLockIfNonExhaustiveRead) {
         this.sweeperStrategy = sweeperStrategy;
-        this.mustCheckImmutableLockAfterReads = mustCheckImmutableLockAfterReads;
+        this.mustCheckImmutableLockIfAllCellsReadAndPresent = mustCheckImmutableLockIfAllCellsReadAndPresent;
+        this.mustCheckImmutableLockIfNonExhaustiveRead = mustCheckImmutableLockIfNonExhaustiveRead;
     }
 
     public Optional<SweeperStrategy> getSweeperStrategy() {
         return sweeperStrategy;
     }
 
-    public boolean mustCheckImmutableLockAfterReads() {
-        return mustCheckImmutableLockAfterReads;
+    public boolean mustCheckImmutableLock(boolean allPossibleCellsReandAndPresent) {
+        return allPossibleCellsReandAndPresent
+                ? mustCheckImmutableLockIfAllCellsReadAndPresent
+                : mustCheckImmutableLockIfNonExhaustiveRead;
     }
 
-    public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy) {
-        return new SweepStrategy(sweeperBehaviour(strategy), mustCheckImmutableLockAfterReads(strategy));
+    public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
+        return new SweepStrategy(
+                sweeperBehaviour(strategy),
+                mustCheckImmutableLockIfAllCellsReadAndPresent(strategy, kvs),
+                mustCheckImmutableLockIfNonExhaustiveRead(strategy));
     }
 
     private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersistence.SweepStrategy strategy) {
@@ -65,7 +79,23 @@ private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersisten
         throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
     }
 
-    private static boolean mustCheckImmutableLockAfterReads(TableMetadataPersistence.SweepStrategy strategy) {
+    private static boolean mustCheckImmutableLockIfAllCellsReadAndPresent(
+            TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
+        if (!kvs.sweepsEntriesInStrictlyNonDecreasingFashion()) {
+            return mustCheckImmutableLockIfNonExhaustiveRead(strategy);
+        }
+
+        switch (strategy) {
+            case CONSERVATIVE:
+            case NOTHING:
+            case THOROUGH_MIGRATION:
+            case THOROUGH:
+                return false;
+        }
+        throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
+    }
+
+    private static boolean mustCheckImmutableLockIfNonExhaustiveRead(TableMetadataPersistence.SweepStrategy strategy) {
         switch (strategy) {
             case CONSERVATIVE:
             case NOTHING:u}(jq0 (a609938800595c6a4ed1b28154a58151f7d04af3j0 datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ExpectationsAwareTransaction.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 /**
@@ -32,6 +33,11 @@ public interface ExpectationsAwareTransaction extends Transaction {
      */
     TransactionReadInfo getReadInfo();
 
+    /**
+     * Returns transaction commit lock information.
+     */
+    TransactionCommitLockInfo getCommitLockInfo();
+
     /**
      * Update TEX data collection metrics for (post-mortem) transactions.
      * Expected usage is that this method is called once after the transaction has been committed or aborted.u}(jq0 (6795ea4a937624401807d2b3742ab596ad23984bj0 natlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingExpectationsAwareTransaction.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.transaction.impl;
 
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 public abstract class ForwardingExpectationsAwareTransaction extends ForwardingTransaction
@@ -34,6 +35,11 @@ public TransactionReadInfo getReadInfo() {
         return delegate().getReadInfo();
     }
 
+    @Override
+    public TransactionCommitLockInfo getCommitLockInfo() {
+        return delegate().getCommitLockInfo();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         delegate().reportExpectationsCollectedData();u}(jq0 (71e95645f3ae1137fc44efc89c6e3432b42d85ffj0 Watlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ReadTransaction.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -24,14 +24,15 @@
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.logging.LoggingArgs;
-import com.palantir.atlasdb.table.description.SweepStrategy;
+import com.palantir.atlasdb.table.description.SweeperStrategy;
 import com.palantir.atlasdb.transaction.api.GetRangesQuery;
 import com.palantir.common.base.BatchingVisitable;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
+import java.util.Optional;
 import java.util.Set;
 import java.util.function.BiFunction;
 import java.util.stream.Stream;
@@ -136,11 +137,11 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
     }
 
     private void checkTableName(TableReference tableRef) {
-        SweepStrategy sweepStrategy = sweepStrategies.get(tableRef);
+        Optional<SweeperStrategy> sweepStrategy = sweepStrategies.get(tableRef).getSweeperStrategy();
         Preconditions.checkState(
-                !sweepStrategy.mustCheckImmutableLockAfterReads(),
-                "This table cannot be read from a read-only transaction, because its "
-                        + "sweep strategy is neither NOTHING nor CONSERVATIVE",
+                sweepStrategy.isEmpty() || sweepStrategy.get().equals(SweeperStrategy.CONSERVATIVE),
+                "This table cannot be read from a read-only transaction, because its sweep strategy is neither NOTHING"
+                        + " nor CONSERVATIVE",
                 LoggingArgs.tableRef(tableRef));
     }
 u}(jq0 (59d37859a318b1646ca6da51436b4720150f7940j0 ]atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/SweepStrategyManagers.javaj0 modifiedj0 K	j0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X;  @@ -21,7 +21,6 @@
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
-import com.palantir.atlasdb.table.description.Schema;
 import com.palantir.atlasdb.table.description.SweepStrategy;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.logsafe.Preconditions;
@@ -53,7 +52,7 @@ public static SweepStrategyManager create(KeyValueService kvs, CacheWarming cach
                     // On a cache miss, load metadata only for the relevant table. Helpful when many dynamic tables.
                     LoadingCache<TableReference, SweepStrategy> cache = Caffeine.newBuilder()
                             .expireAfterAccess(Duration.ofDays(1))
-                            .build(tableRef -> getSweepStrategy(kvs.getMetadataForTable(tableRef)));
+                            .build(tableRef -> getSweepStrategy(kvs.getMetadataForTable(tableRef), kvs));
 
                     // Possibly warm the cache.
                     cache.putAll(getSweepStrategiesForWarmingCache(kvs, cacheWarming));
@@ -74,42 +73,34 @@ public void invalidateCaches(Set<TableReference> tableRefs) {
         };
     }
 
-    public static SweepStrategyManager createFromSchema(Schema schema) {
-        return tableRef -> {
-            TableMetadata tableMeta = Preconditions.checkNotNull(
-                    schema.getAllTablesAndIndexMetadata().get(tableRef),
-                    "unknown table",
-                    SafeArg.of("tableRef", tableRef));
-            return SweepStrategy.from(tableMeta.getSweepStrategy());
-        };
-    }
-
     public static SweepStrategyManager fromMap(final Map<TableReference, SweepStrategy> map) {
         return tableRef ->
                 Preconditions.checkNotNull(map.get(tableRef), "unknown table", SafeArg.of("tableRef", tableRef));
     }
 
-    public static SweepStrategyManager completelyConservative() {
-        return tableRef -> SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE);
+    public static SweepStrategyManager completelyConservative(KeyValueService kvs) {
+        return tableRef -> SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE, kvs);
     }
 
     private static Map<TableReference, SweepStrategy> getSweepStrategiesForWarmingCache(
             KeyValueService kvs, CacheWarming cacheWarming) {
         switch (cacheWarming) {
             case FULL:
-                return Maps.transformValues(kvs.getMetadataForTables(), SweepStrategyManagers::getSweepStrategy);
+                return Maps.transformValues(
+                        kvs.getMetadataForTables(),
+                        tableMetadata -> SweepStrategyManagers.getSweepStrategy(tableMetadata, kvs));
             case NONE:
             default:
                 return Collections.emptyMap();
         }
     }
 
-    private static SweepStrategy getSweepStrategy(byte[] tableMeta) {
+    private static SweepStrategy getSweepStrategy(byte[] tableMeta, KeyValueService kvs) {
         if (tableMeta != null && tableMeta.length > 0) {
             return SweepStrategy.from(
-                    TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy());
+                    TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy(), kvs);
         } else {
-            return SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE);
+            return SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE, kvs);
         }
     }
 }u}(jq0 (07430a7ea8f348014166e1a21707d9a2d6fa0656j0 gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableRemappingKeyValueService.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableRemappingKeyValueService.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 XQ  @@ -482,4 +482,9 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
             throw new IllegalArgumentException(e);
         }
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate.sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
 }u}(jq0 (5ef033a6ef29cb0e07d55d81f9e01236df5838d0j0 gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/impl/TableSplittingKeyValueService.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTableSplittingKeyValueService.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -413,4 +413,9 @@ public List<byte[]> getRowKeysInRange(TableReference tableRef, byte[] startRow,
     public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<Cell, Long> timestampByCell) {
         return getDelegate(tableRef).getAsync(tableRef, timestampByCell);
     }
+
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegates.stream().allMatch(KeyValueService::sweepsEntriesInStrictlyNonDecreasingFashion);
+    }
 }u}(jq0 (f4fc16c9cd18f98e0b88191831c6acfff46d8418j0 Qatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweepTaskRunner.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -152,7 +152,7 @@ private SweepResults runInternal(
             return SweepResults.createEmptySweepResultWithNoMoreToSweep();
         }
         SweepStrategy sweepStrategy = SweepStrategy.from(
-                TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy());
+                TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy(), keyValueService);
         Optional<Sweeper> maybeSweeper = sweepStrategy.getSweeperStrategy().map(Sweeper::of);
         if (runType == RunType.WAS_CONSERVATIVE_NOW_THOROUGH
                 && sweepStrategy.getSweeperStrategy().equals(Optional.of(SweeperStrategy.CONSERVATIVE))) {u}(jq0 (8a130c89d1c136ccdceb2117f2543a8cad93b16cj0 \atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitioner.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -95,9 +95,11 @@ SweeperStrategy getStrategyForTable(TableReference tableRef) {
 
     private SweeperStrategy getStrategyFromKvs(TableReference tableRef) {
         try {
-            return SweepStrategy.from(TableMetadata.BYTES_HYDRATOR
-                            .hydrateFromBytes(kvs.getMetadataForTable(tableRef))
-                            .getSweepStrategy())
+            return SweepStrategy.from(
+                            TableMetadata.BYTES_HYDRATOR
+                                    .hydrateFromBytes(kvs.getMetadataForTable(tableRef))
+                                    .getSweepStrategy(),
+                            kvs)
                     .getSweeperStrategy()
                     .orElse(SweeperStrategy.NON_SWEEPABLE);
         } catch (Exception e) {u}(jq0 (a754465d028ae56a8b3829de4675ebee0e06762dj0 `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj0 modifiedj0 Kj0 K6j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X]  @@ -97,6 +97,8 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
@@ -156,6 +158,7 @@
 import java.util.List;
 import java.util.Map;
 import java.util.NavigableMap;
+import java.util.NavigableSet;
 import java.util.NoSuchElementException;
 import java.util.Objects;
 import java.util.Optional;
@@ -207,6 +210,9 @@ public class SnapshotTransaction extends AbstractTransaction
     private static final int BATCH_SIZE_GET_FIRST_PAGE = 1000;
     private static final long TXN_LENGTH_THRESHOLD = Duration.ofMinutes(30).toMillis();
 
+    @VisibleForTesting
+    static final int MAX_POST_FILTERING_ITERATIONS = 200;
+
     @VisibleForTesting
     static final int MIN_BATCH_SIZE_FOR_DISTRIBUTED_LOAD = 100;
 
@@ -267,9 +273,15 @@ private enum State {
     protected final SuccessCallbackManager successCallbackManager = new SuccessCallbackManager();
     private final CommitTimestampLoader commitTimestampLoader;
     private final ExpectationsMetrics expectationsDataCollectionMetrics;
+    private volatile long cellCommitLocksRequested = 0L;
+    private volatile long rowCommitLocksRequested = 0L;
 
     protected volatile boolean hasReads;
 
+    // On thoroughly swept tables, we might require a immutable timestamp lock check if we have performed a
+    // non-exhaustive read.
+    protected volatile boolean hasPossiblyUnvalidatedReads;
+
     protected final TimestampCache timestampCache;
 
     protected final TransactionKnowledgeComponents knowledge;
@@ -333,6 +345,7 @@ private enum State {
         this.sweepQueue = sweepQueue;
         this.deleteExecutor = deleteExecutor;
         this.hasReads = false;
+        this.hasPossiblyUnvalidatedReads = false;
         this.transactionOutcomeMetrics = TransactionOutcomeMetrics.create(metricsManager);
         this.validateLocksOnReads = validateLocksOnReads;
         this.transactionConfig = transactionConfig;
@@ -438,7 +451,9 @@ private NavigableMap<byte[], RowResult<byte[]>> getRowsInternal(
                     SafeArg.of("resultSize", results.size()),
                     SafeArg.of("timeTakenMillis", getRowsMillis));
         }
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+
+        /* can't skip lock check as we don't know how many cells to expect for the column selection */
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return results;
     }
 
@@ -463,7 +478,8 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
         RowColumnRangeIterator rawResults = keyValueService.getRowsColumnRange(
                 tableRef, stableRows, columnRangeSelection, batchHint, getStartTimestamp());
         if (!rawResults.hasNext()) {
-            validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+            // we can't skip checks for range scans
+            validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         } // else the postFiltered iterator will check for each batch.
 
         BatchColumnRangeSelection batchColumnRangeSelection =
@@ -501,7 +517,8 @@ public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator
                 }));
 
         // validate requirements here as the first batch for each of the above iterators will not check
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+        // we can't skip checks on range scans
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return postFilteredResults;
     }
 
@@ -674,7 +691,7 @@ private Iterator<Map.Entry<Cell, byte[]>> filterDeletedValues(
     private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFiltered(
             TableReference tableRef, RowColumnRangeIterator iterator, int batchHint) {
         return Iterators.concat(Iterators.transform(Iterators.partition(iterator, batchHint), batch -> {
-            Map<Cell, Value> raw = validateBatch(tableRef, batch);
+            Map<Cell, Value> raw = validateBatch(tableRef, batch, false /* can't skip lock checks on range scans */);
             if (raw.isEmpty()) {
                 return Collections.emptyIterator();
             }
@@ -696,7 +713,10 @@ private ClosableIterator<Map.Entry<Cell, byte[]>> getRowColumnRangePostFiltered(
                 batchProvider,
                 rawIterator,
                 columnRangeSelection,
-                () -> validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp()),
+                () -> {
+                    // we can't skip lock checks on range scans
+                    validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
+                },
                 raw -> getWithPostFilteringSync(tableRef, raw, Value.GET_VALUE));
     }
 
@@ -706,7 +726,7 @@ private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSor
             int batchHint,
             Comparator<Cell> cellComparator) {
         return Iterators.concat(Iterators.transform(Iterators.partition(iterator, batchHint), batch -> {
-            Map<Cell, Value> raw = validateBatch(tableRef, batch);
+            Map<Cell, Value> raw = validateBatch(tableRef, batch, false /* can't skip lock check on range scans */);
             if (raw.isEmpty()) {
                 return Collections.emptyIterator();
             }
@@ -717,8 +737,9 @@ private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSor
         }));
     }
 
-    private Map<Cell, Value> validateBatch(TableReference tableRef, List<Map.Entry<Cell, Value>> batch) {
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+    private Map<Cell, Value> validateBatch(
+            TableReference tableRef, List<Map.Entry<Cell, Value>> batch, boolean allPossibleCellsReadAndPresent) {
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
         return ImmutableMap.copyOf(batch);
     }
 
@@ -828,7 +849,8 @@ public SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(
         Map<Cell, Value> rawResults =
                 new HashMap<>(keyValueService.getRows(tableRef, rows, ColumnSelection.all(), getStartTimestamp()));
 
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+        // can't skip lock check as we don't know how many cells to expect for the column selection
+        validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
         return filterRowResults(tableRef, rawResults, ImmutableMap.builderWithExpectedSize(rawResults.size()));
     }
 
@@ -921,13 +943,12 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
             }
         }
 
-        // We don't need to read any cells that were written locally.
+        // We don't need to read any cells that were written locally. Making an immutable copy because otherwise adding
+        // values to the result map would prevent us from calculating the correct size for
+        // allPossibleCellsReadAndPresent, since Sets.difference gives us a live view.
+        Set<Cell> cellsWithNoLocalWrites = ImmutableSet.copyOf(Sets.difference(cells, result.keySet()));
         return Futures.transform(
-                getFromKeyValueService(
-                        tableRef,
-                        Sets.difference(cells, result.keySet()),
-                        asyncKeyValueService,
-                        asyncTransactionService),
+                getFromKeyValueService(tableRef, cellsWithNoLocalWrites, asyncKeyValueService, asyncTransactionService),
                 fromKeyValueService -> {
                     result.putAll(fromKeyValueService);
 
@@ -941,7 +962,11 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
                                 SafeArg.of("getOperation", operationName),
                                 SafeArg.of("durationMillis", getMillis));
                     }
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+
+                    boolean allPossibleCellsReadAndPresent =
+                            fromKeyValueService.size() == cellsWithNoLocalWrites.size();
+                    validatePreCommitRequirementsOnReadIfNecessary(
+                            tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
                     return removeEmptyColumns(result, tableRef);
                 },
                 MoreExecutors.directExecutor());
@@ -957,13 +982,15 @@ public Map<Cell, byte[]> getIgnoringLocalWrites(TableReference tableRef, Set<Cel
 
         ListenableFuture<Map<Cell, byte[]>> result =
                 getFromKeyValueService(tableRef, cells, immediateKeyValueService, immediateTransactionService);
-        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
 
         Map<Cell, byte[]> unfiltered = Futures.getUnchecked(result);
         Map<Cell, byte[]> filtered = Maps.filterValues(unfiltered, Predicates.not(Value::isTombstone));
 
         TraceStatistics.incEmptyValues(unfiltered.size() - filtered.size());
 
+        boolean allPossibleCellsReadAndPresent = unfiltered.size() == cells.size();
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
+
         return filtered;
     }
 
@@ -1016,7 +1043,8 @@ public Iterable<BatchingVisitable<RowResult<byte[]>>> getRanges(
                     Timer.Context timer = getTimer("processedRangeMillis").time();
                     Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> firstPages =
                             keyValueService.getFirstBatchForRanges(tableRef, input, getStartTimestamp());
-                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+                    // can't skip lock check for range scans
+                    validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
 
                     SortedMap<Cell, byte[]> postFiltered = postFilterPages(tableRef, firstPages.values());
 
@@ -1142,18 +1170,42 @@ protected <K extends Exception> void batchAcceptSizeHint(
         };
     }
 
-    private void validatePreCommitRequirementsOnReadIfNecessary(TableReference tableRef, long timestamp) {
-        if (isValidationNecessaryOnReads(tableRef)) {
+    private void validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(TableReference tableRef, long timestamp) {
+        validatePreCommitRequirementsOnReadIfNecessary(tableRef, timestamp, false);
+    }
+
+    /*
+    We don't have any guarantees that reads and commit will be executed in a single threaded manner, so we could in
+    theory return wrong results if we perform async reads while trying to commit. But our protocol doesn't aim to
+    support such case, and we're OK with having undefined behaviour in these occasions.
+
+    Example of such case:
+       - We're reading a thoroughly swept table with no configuration for immediate validation on reads.
+       - An async range scan is performed, but hasn't started executing yet.
+       - We start commit round on the main thread
+       - Commit doesn't check for immutable timestamp lock because
+           hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound is false
+       - We finish the range scan on the second thread, but validation is skipped due to the configuration and it sets
+           hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound to true, but that is never checked due to
+            the commit round having already happened.
+       - We then risk having returned inconsistent values in this transaction, since we could have lost the immutableT
+            lock, but never checked it and values could've been swept under us.
+    */
+    private void validatePreCommitRequirementsOnReadIfNecessary(
+            TableReference tableRef, long timestamp, boolean allPossibleCellsReadAndPresent) {
+        if (isValidationNecessaryOnReads(tableRef, allPossibleCellsReadAndPresent)) {
             throwIfPreCommitRequirementsNotMet(null, timestamp);
+        } else if (!allPossibleCellsReadAndPresent) {
+            hasPossiblyUnvalidatedReads = true;
         }
     }
 
-    private boolean isValidationNecessaryOnReads(TableReference tableRef) {
-        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef);
+    private boolean isValidationNecessaryOnReads(TableReference tableRef, boolean allPossibleCellsReadAndPresent) {
+        return validateLocksOnReads && requiresImmutableTimestampLocking(tableRef, allPossibleCellsReadAndPresent);
     }
 
-    private boolean requiresImmutableTimestampLocking(TableReference tableRef) {
-        return sweepStrategyManager.get(tableRef).mustCheckImmutableLockAfterReads()
+    private boolean requiresImmutableTimestampLocking(TableReference tableRef, boolean allPossibleCellsReadAndPresent) {
+        return sweepStrategyManager.get(tableRef).mustCheckImmutableLock(allPossibleCellsReadAndPresent)
                 || transactionConfig.get().lockImmutableTsOnReadOnlyTransactions();
     }
 
@@ -1302,11 +1354,13 @@ protected <T> ClosableIterator<RowResult<T>> postFilterIterator(
             @Override
             protected Iterator<RowResult<T>> computeNext() {
                 List<RowResult<Value>> batch = results.getBatch().batch();
-                validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
                 if (batch.isEmpty()) {
                     return endOfData();
                 }
                 SortedMap<Cell, T> postFilter = postFilterRows(tableRef, batch, transformer);
+
+                // can't skip lock checks for range scans
+                validatePreCommitRequirementsOnNonExhaustiveReadIfNecessary(tableRef, getStartTimestamp());
                 results.markNumResultsNotDeleted(
                         Cells.getRows(postFilter.keySet()).size());
                 return Cells.createRowView(postFilter.entrySet());
@@ -1451,9 +1505,9 @@ private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilterin
 
         return Futures.transformAsync(
                 Futures.immediateFuture(rawResults),
-                remainingResultsToPostFilter -> getWithPostFilteringIterate(
+                resultsToPostFilter -> getWithPostFilteringIterate(
                         tableRef,
-                        remainingResultsToPostFilter,
+                        resultsToPostFilter,
                         resultsAccumulator,
                         transformer,
                         asyncKeyValueService,
@@ -1463,32 +1517,39 @@ private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilterin
 
     private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilteringIterate(
             TableReference tableReference,
-            Map<Cell, Value> remainingResultsToPostFilter,
+            Map<Cell, Value> resultsToPostFilter,
             Collection<Map.Entry<Cell, T>> resultsAccumulator,
             Function<Value, T> transformer,
             AsyncKeyValueService asyncKeyValueService,
             AsyncTransactionService asyncTransactionService) {
-        if (remainingResultsToPostFilter.isEmpty()) {
-            getCounter(AtlasDbMetricNames.SNAPSHOT_TRANSACTION_CELLS_RETURNED, tableReference)
-                    .inc(resultsAccumulator.size());
-            return Futures.immediateFuture(resultsAccumulator);
-        }
-
         return Futures.transformAsync(
-                getWithPostFilteringInternal(
-                        tableReference,
-                        remainingResultsToPostFilter,
-                        resultsAccumulator,
-                        transformer,
-                        asyncKeyValueService,
-                        asyncTransactionService),
-                remaining -> getWithPostFilteringIterate(
-                        tableReference,
-                        remaining,
-                        resultsAccumulator,
-                        transformer,
-                        asyncKeyValueService,
-                        asyncTransactionService),
+                Futures.immediateFuture(resultsToPostFilter),
+                results -> {
+                    int iterations = 0;
+                    Map<Cell, Value> remainingResultsToPostFilter = results;
+                    while (!remainingResultsToPostFilter.isEmpty()) {
+                        remainingResultsToPostFilter = AtlasFutures.getUnchecked(getWithPostFilteringInternal(
+                                tableReference,
+                                remainingResultsToPostFilter,
+                                resultsAccumulator,
+                                transformer,
+                                asyncKeyValueService,
+                                asyncTransactionService));
+                        Preconditions.checkState(
+                                ++iterations < MAX_POST_FILTERING_ITERATIONS,
+                                "Unable to filter cells to find correct result after "
+                                        + "reaching max iterations. This is likely due to aborted cells lying around,"
+                                        + " or in the very rare case, could be due to transactions which constantly "
+                                        + "conflict but never commit. These values will be cleaned up eventually, but"
+                                        + " if the issue persists, ensure that sweep is caught up.",
+                                SafeArg.of("table", tableReference),
+                                SafeArg.of("maxIterations", MAX_POST_FILTERING_ITERATIONS));
+                    }
+                    getCounter(AtlasDbMetricNames.SNAPSHOT_TRANSACTION_CELLS_RETURNED, tableReference)
+                            .inc(resultsAccumulator.size());
+
+                    return Futures.immediateFuture(resultsAccumulator);
+                },
                 MoreExecutors.directExecutor());
     }
 
@@ -1677,7 +1738,9 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
             return Futures.transform(
                     asyncKeyValueService.getAsync(tableRef, keysToReload),
                     nextRawResults -> {
-                        validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
+                        boolean allPossibleCellsReadAndPresent = nextRawResults.size() == keysToReload.size();
+                        validatePreCommitRequirementsOnReadIfNecessary(
+                                tableRef, getStartTimestamp(), allPossibleCellsReadAndPresent);
                         return getRemainingResults(nextRawResults, keysAddedToResults);
                     },
                     MoreExecutors.directExecutor());
@@ -2448,20 +2511,25 @@ private void logCommitLockTenureExceeded(
 
     protected Set<LockDescriptor> getLocksForWrites() {
         Set<LockDescriptor> result = new HashSet<>();
+        long cellLockCount = 0L;
+        long rowLockCount = 0L;
         for (TableReference tableRef : writesByTable.keySet()) {
             ConflictHandler conflictHandler = getConflictHandlerForTable(tableRef);
             if (conflictHandler.lockCellsForConflicts()) {
-                for (Cell cell : getLocalWrites(tableRef).keySet()) {
+                NavigableSet<Cell> cellsToLock = getLocalWrites(tableRef).keySet();
+                for (Cell cell : cellsToLock) {
                     result.add(AtlasCellLockDescriptor.of(
                             tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName()));
                 }
+                cellLockCount = cellsToLock.size();
             }
 
             if (conflictHandler.lockRowsForConflicts()) {
                 Cell lastCell = null;
                 for (Cell cell : getLocalWrites(tableRef).keySet()) {
                     if (lastCell == null || !Arrays.equals(lastCell.getRowName(), cell.getRowName())) {
                         result.add(AtlasRowLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName()));
+                        rowLockCount++;
                     }
                     lastCell = cell;
                 }
@@ -2470,6 +2538,8 @@ protected Set<LockDescriptor> getLocksForWrites() {
         result.add(AtlasRowLockDescriptor.of(
                 TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
                 TransactionConstants.getValueForTimestamp(getStartTimestamp())));
+        cellCommitLocksRequested = cellLockCount;
+        rowCommitLocksRequested = rowLockCount + 1;
         return result;
     }
 
@@ -2591,8 +2661,8 @@ private boolean hasAnyInvolvedTables() {
     }
 
     private boolean validationNecessaryForInvolvedTablesOnCommit() {
-        boolean anyTableRequiresImmutableTimestampLocking =
-                involvedTables.stream().anyMatch(this::requiresImmutableTimestampLocking);
+        boolean anyTableRequiresImmutableTimestampLocking = involvedTables.stream()
+                .anyMatch(tableRef -> requiresImmutableTimestampLocking(tableRef, !hasPossiblyUnvalidatedReads));
         boolean needsToValidate = !validateLocksOnReads || !hasReads();
         return anyTableRequiresImmutableTimestampLocking && needsToValidate;
     }
@@ -2607,6 +2677,14 @@ public TransactionReadInfo getReadInfo() {
         return keyValueService.getOverallReadInfo();
     }
 
+    @Override
+    public TransactionCommitLockInfo getCommitLockInfo() {
+        return ImmutableTransactionCommitLockInfo.builder()
+                .cellCommitLocksRequested(cellCommitLocksRequested)
+                .rowCommitLocksRequested(rowCommitLocksRequested)
+                .build();
+    }
+
     @Override
     public void reportExpectationsCollectedData() {
         if (isStillRunning()) {
@@ -2616,18 +2694,25 @@ public void reportExpectationsCollectedData() {
             return;
         }
 
-        reportExpectationsCollectedData(getAgeMillis(), getReadInfo(), expectationsDataCollectionMetrics);
+        reportExpectationsCollectedData(
+                getAgeMillis(), getReadInfo(), getCommitLockInfo(), expectationsDataCollectionMetrics);
     }
 
     @VisibleForTesting
     static void reportExpectationsCollectedData(
-            long ageMillis, TransactionReadInfo readInfo, ExpectationsMetrics metrics) {
+            long ageMillis,
+            TransactionReadInfo readInfo,
+            TransactionCommitLockInfo commitLockInfo,
+            ExpectationsMetrics metrics) {
         metrics.ageMillis().update(ageMillis);
         metrics.bytesRead().update(readInfo.bytesRead());
         metrics.kvsReads().update(readInfo.kvsCalls());
 
         readInfo.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
                 .update(kvsCallReadInfo.bytesRead()));
+
+        metrics.cellCommitLocksRequested().update(commitLockInfo.cellCommitLocksRequested());
+        metrics.rowCommitLocksRequested().update(commitLockInfo.rowCommitLocksRequested());
     }
 
     private long getStartTimestamp() {u     }(jq0 (89147dc77a01612d3af8f3130ea758e4445537c7j0 5atlasdb-impl-shared/src/main/metrics/expectations.ymlj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymlj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -17,3 +17,9 @@ namespaces:
       mostKvsBytesReadInSingleCall:
         docs: Most bytes read by a transaction in one Atlas kvs read call
         type: histogram
+      cellCommitLocksRequested:
+        docs: Number of cell-level commit locks requested as part of the commit protocol
+        type: histogram
+      rowCommitLocksRequested:
+        docs: Number of row-level commit locks requested as part of the commit protocol
+        type: histogramu}(jq0 (58455c9fcbd5e41aa2e34c82091e30cd04cd5a51j0 `atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitionerTest.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 Xf  @@ -105,6 +105,7 @@ public void getStrategyQueriesKvsOnlyOnceForEachTable() {
         }
         verify(mockKvs, times(1)).getMetadataForTable(NOTHING);
         verify(mockKvs, times(1)).getMetadataForTable(CONSERVATIVE);
+        verify(mockKvs, times(2)).sweepsEntriesInStrictlyNonDecreasingFashion();
         verifyNoMoreInteractions(mockKvs);
     }
 u}(jq0 (283b84abcfb6697b50fee5fa0db0dbc2d58dfab8j0 matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javaj0 modifiedj0 K&j0 Kj0 K2j0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 XI  @@ -18,7 +18,9 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.codahale.metrics.Histogram;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
@@ -34,6 +36,12 @@ public final class ExpectationsMetricsReportingTest {
     private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
             ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
 
+    private static final ImmutableTransactionCommitLockInfo BLANK_COMMIT_LOCK_INFO =
+            ImmutableTransactionCommitLockInfo.builder()
+                    .cellCommitLocksRequested(0L)
+                    .rowCommitLocksRequested(0L)
+                    .build();
+
     private ExpectationsMetrics metrics;
 
     @Before
@@ -44,40 +52,58 @@ public void setUp() {
     @Test
     public void ageReported() {
         long age = 129L;
-        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, metrics);
-        assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
+        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, BLANK_COMMIT_LOCK_INFO, metrics);
+        assertHistogramHasSingleValue(metrics.ageMillis(), age);
     }
 
     @Test
     public void bytesReadReported() {
         long bytes = 1290L;
-        reportMetrics(BLANK_READ_INFO.withBytesRead(bytes));
-        assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
+        reportMetricsWithReadInfo(BLANK_READ_INFO.withBytesRead(bytes));
+        assertHistogramHasSingleValue(metrics.bytesRead(), bytes);
     }
 
     @Test
     public void kvsCallsReported() {
         long calls = 12L;
-        reportMetrics(BLANK_READ_INFO.withKvsCalls(calls));
-        assertThat(metrics.kvsReads().getSnapshot().getValues()).containsOnly(calls);
+        reportMetricsWithReadInfo(BLANK_READ_INFO.withKvsCalls(calls));
+        assertHistogramHasSingleValue(metrics.kvsReads(), calls);
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
-        reportMetrics(BLANK_READ_INFO);
+        reportMetricsWithReadInfo(BLANK_READ_INFO);
         assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
                 .isEmpty();
     }
 
     @Test
     public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
         long bytes = 193L;
-        reportMetrics(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
-        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
-                .containsOnly(bytes);
+        reportMetricsWithReadInfo(
+                BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        assertHistogramHasSingleValue(metrics.mostKvsBytesReadInSingleCall(), bytes);
+    }
+
+    @Test
+    public void commitLocksRequestsReported() {
+        SnapshotTransaction.reportExpectationsCollectedData(
+                0L,
+                BLANK_READ_INFO,
+                ImmutableTransactionCommitLockInfo.builder()
+                        .cellCommitLocksRequested(1)
+                        .rowCommitLocksRequested(2)
+                        .build(),
+                metrics);
+        assertHistogramHasSingleValue(metrics.cellCommitLocksRequested(), 1);
+        assertHistogramHasSingleValue(metrics.rowCommitLocksRequested(), 2);
+    }
+
+    private void reportMetricsWithReadInfo(TransactionReadInfo readInfo) {
+        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, BLANK_COMMIT_LOCK_INFO, metrics);
     }
 
-    private void reportMetrics(TransactionReadInfo readInfo) {
-        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, metrics);
+    private void assertHistogramHasSingleValue(Histogram histogram, long expected) {
+        assertThat(histogram.getSnapshot().getValues()).containsOnly(expected);
     }
 }u}(jq0 (f78ed397c1ab2442f099cc74dd518e30185dd324j0 !atlasdb-tests-shared/build.gradlej0 modifiedj0 Kj0 K j0 Kj0 uhttps://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-tests-shared%2Fbuild.gradlej0 thttps://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-tests-shared%2Fbuild.gradlej0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fbuild.gradle?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -50,6 +50,7 @@ dependencies {
   testImplementation 'com.google.protobuf:protobuf-java'
   testImplementation 'com.palantir.common:streams'
   testImplementation 'com.palantir.safe-logging:safe-logging'
+  testImplementation 'com.palantir.safe-logging:preconditions-assertj'
   testImplementation 'com.palantir.tracing:tracing-api'
   testImplementation 'com.palantir.tritium:tritium-registry'
   testImplementation 'commons-io:commons-io'u}(jq0 (4ecc8d0029caabad8e99518d16b13fcf35ba33ecj0 qatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractSerializableTransactionTest.javaj0 modifiedj0 K
j0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 XL  @@ -1079,17 +1079,19 @@ public void testNoMarkTableInvolvedSkipsLockChecksOnCommit() {
         t1.commit();
     }
 
-    @Test
-    public void testMarkTableInvolvedChecksLocksForExpiryOnCommitWhenRequired() {
-        // Test table is thorough, therefore we check immutable timestamp lock
-        assertThatThrownBy(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
-                .isExactlyInstanceOf(TransactionLockTimeoutException.class);
-    }
-
     @Test
     public void testMarkTableInvolvedDoesNoCheckLocksForExpiryOnCommitWhenNotRequired() {
         // Test table is not thorough, therefore no immutable timestamp lock checking
-        testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE);
+        assertThatCode(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE))
+                .doesNotThrowAnyException();
+
+        if (keyValueService.sweepsEntriesInStrictlyNonDecreasingFashion()) {
+            assertThatCode(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
+                    .doesNotThrowAnyException();
+        } else {
+            assertThatThrownBy(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
+                    .isExactlyInstanceOf(TransactionLockTimeoutException.class);
+        }
     }
 
     @Testu}(jq0 (ddec50c29546659d961c4897e7ecbcde3efe9efbj0 Latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/AtlasDbTestCase.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X;  @@ -77,11 +77,14 @@ public class AtlasDbTestCase {
 
     protected TransactionKnowledgeComponents knowledge;
 
+    protected ExecutorService deleteExecutor;
+
     @Rule
     public InMemoryTimeLockRule inMemoryTimeLockRule = new InMemoryTimeLockRule(CLIENT);
 
     @Before
     public void setUp() throws Exception {
+        deleteExecutor = MoreExecutors.newDirectExecutorService();
         lockClient = LockClient.of(CLIENT);
         lockService = inMemoryTimeLockRule.getLockService();
         timelockService = inMemoryTimeLockRule.getLegacyTimelockService();u}(jq0 (864d8b372d38e6bbe575244e1b439a23398db117j0 Uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/TableMigratorTest.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -89,7 +89,7 @@ public void testMigrationToDifferentKvs() throws TableMappingNotFoundException {
 
         final InMemoryKeyValueService kvs2 = new InMemoryKeyValueService(false);
         final ConflictDetectionManager cdm2 = ConflictDetectionManagers.createWithNoConflictDetection();
-        final SweepStrategyManager ssm2 = SweepStrategyManagers.completelyConservative();
+        final SweepStrategyManager ssm2 = SweepStrategyManagers.completelyConservative(kvs2);
         final MetricsManager metricsManager = MetricsManagers.createForTests();
         final TestTransactionManagerImpl txManager2 = new TestTransactionManagerImpl(
                 metricsManager,
@@ -128,7 +128,7 @@ public void testMigrationToDifferentKvs() throws TableMappingNotFoundException {
         checkpointer.deleteCheckpoints();
 
         final ConflictDetectionManager verifyCdm = ConflictDetectionManagers.createWithNoConflictDetection();
-        final SweepStrategyManager verifySsm = SweepStrategyManagers.completelyConservative();
+        final SweepStrategyManager verifySsm = SweepStrategyManagers.completelyConservative(kvs2);
         final TestTransactionManagerImpl verifyTxManager = new TestTransactionManagerImpl(
                 metricsManager,
                 kvs2,u}(jq0 (25c1bb6a752a65ce98d2dc58adc485085adacef9j0 latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -240,7 +240,9 @@ public void registersMetrics() throws InterruptedException {
                 .contains(FINISH_TASK_METRIC_NAME)
                 .contains("expectations.bytesRead")
                 .contains("expectations.kvsReads")
-                .contains("expectations.ageMillis");
+                .contains("expectations.ageMillis")
+                .contains("expectations.cellCommitLocksRequested")
+                .contains("expectations.rowCommitLocksRequested");
         assertThat(registry.timer(MetricName.builder()
                                 .safeName(SETUP_TASK_METRIC_NAME)
                                 .build())u}(jq0 (6a539c73f46339e398e128a8c5ba8e32e8ea9869j0 eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X0  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
@@ -94,6 +95,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.impl.metrics.DefaultMetricsFilterEvaluationContext;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.ToplistDeltaFilteringTableLevelMetricsController;
@@ -121,6 +123,7 @@
 import com.palantir.lock.v2.LockImmutableTimestampResponse;
 import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.TimelockService;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.math.BigInteger;
 import java.nio.ByteBuffer;
@@ -316,6 +319,8 @@ public void cleanup() {}
     static final TableReference TABLE_SWEPT_THOROUGH_MIGRATION =
             TableReference.createFromFullyQualifiedName("default.table5");
 
+    static final TableReference TABLE_NO_SWEEP = TableReference.createFromFullyQualifiedName("default.table6");
+
     private static final byte[] ROW_FOO = "foo".getBytes(StandardCharsets.UTF_8);
     private static final byte[] ROW_BAR = "bar".getBytes(StandardCharsets.UTF_8);
     private static final byte[] COL_A = "a".getBytes(StandardCharsets.UTF_8);
@@ -346,6 +351,9 @@ public void setUp() throws Exception {
                 TABLE_SWEPT_THOROUGH_MIGRATION,
                 getTableMetadataForSweepStrategy(SweepStrategy.THOROUGH_MIGRATION)
                         .persistToBytes());
+        keyValueService.createTable(
+                TABLE_NO_SWEEP,
+                getTableMetadataForSweepStrategy(SweepStrategy.NOTHING).persistToBytes());
     }
 
     @Override
@@ -360,7 +368,7 @@ protected TestTransactionManager constructTestTransactionManager() {
                 sweepStrategyManager,
                 timestampCache,
                 sweepQueue,
-                MoreExecutors.newDirectExecutorService(),
+                deleteExecutor,
                 transactionWrapper,
                 keyValueServiceWrapper,
                 knowledge);
@@ -1552,7 +1560,22 @@ public void commitDoesNotThrowIfAlreadySuccessfullyCommitted() {
     }
 
     @Test
-    public void validateLocksOnReadsIfThoroughlySwept() {
+    public void doNotValidateLocksOnNonEmptyReadsIfThoroughlySwept() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        assertThatCode(() -> transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL)))
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void validateLocksOnEmptyReadsIfThoroughlySwept() {
         long transactionTs = timelockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
         Transaction transaction =
@@ -1564,6 +1587,22 @@ public void validateLocksOnReadsIfThoroughlySwept() {
                 .isThrownBy(() -> transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL)));
     }
 
+    @Test
+    public void doNotValidateLocksOnCommitIfValidationFlagIsFalseAndOnlyReadNonEmptyValuesOnThoroughlySweptTable() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+
+        assertThatCode(transaction::commit).doesNotThrowAnyException();
+    }
+
     @Test
     public void validateLocksOnlyOnCommitIfValidationFlagIsFalse() {
         long transactionTs = timelockService.getFreshTimestamp();
@@ -1579,7 +1618,45 @@ public void validateLocksOnlyOnCommitIfValidationFlagIsFalse() {
     }
 
     @Test
-    public void checkImmutableTsLockOnceIfThoroughlySwept_WithValidationOnReads() {
+    public void validateLocksOnCommitIfEmptyReadsFollowedByNonEmptyReadsIfValidationFlagIsFalse() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        long transactionTs = timelockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = timelockService.lockImmutableTimestamp();
+        Transaction transaction =
+                getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        timelockService.unlock(ImmutableSet.of(res.getLock()));
+
+        // First reading empty value
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL_2));
+        // Then reading non-empty value.
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+
+        // Make sure that lock is still validated in the end due to the initial empty read
+        assertThatExceptionOfType(TransactionLockTimeoutException.class).isThrownBy(transaction::commit);
+    }
+
+    @Test
+    public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithValidationOnReads() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        Transaction transaction = getSnapshotTransactionWith(
+                spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+        transaction.commit();
+        spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
+
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+    }
+
+    @Test
+    public void checkImmutableTsLockOnceIfEmptyReadOnThoroughlySwept_WithValidationOnReads() {
         TimelockService spiedTimeLockService = spy(timelockService);
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
@@ -1595,7 +1672,25 @@ public void checkImmutableTsLockOnceIfThoroughlySwept_WithValidationOnReads() {
     }
 
     @Test
-    public void checkImmutableTsLockOnceIfThoroughlySwept_WithoutValidationOnReads() {
+    public void doesNotCheckImmutableTsLockIfNonEmptyReadOnThoroughlySwept_WithoutValidationOnReads() {
+        putCellsInTable(List.of(TEST_CELL), TABLE_SWEPT_THOROUGH);
+
+        TimelockService spiedTimeLockService = spy(timelockService);
+        long transactionTs = spiedTimeLockService.getFreshTimestamp();
+        LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
+
+        Transaction transaction = getSnapshotTransactionWith(
+                spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
+
+        transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
+        transaction.commit();
+        spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
+
+        verify(spiedTimeLockService, never()).refreshLockLeases(ImmutableSet.of(res.getLock()));
+    }
+
+    @Test
+    public void checkImmutableTsLockOnceIfEmptyReadOnThoroughlySwept_WithoutValidationOnReads() {
         TimelockService spiedTimeLockService = spy(timelockService);
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
@@ -2371,6 +2466,76 @@ public void testConstraintsViolated() {
                         eq(AtlasDbConstraintCheckingMode.FULL_CONSTRAINT_CHECKING_THROWS_EXCEPTIONS));
     }
 
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializableCell() {
+        // Will request commit locks for cells, but not rows
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_CELL);
+
+        // We can only get the commit info from a snapshot transaction
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        // For write transactions, we always lock an additional row in the transaction table
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(0 + 1);
+    }
+
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializable() {
+        // Will request commit locks for rows, but not cells
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL_2, TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(0);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(2 + 1);
+    }
+
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigration_sameRow() {
+        // Will request commit locks for cells and rows
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE_LOCK_LEVEL_MIGRATION);
+
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.put(
+                TABLE,
+                ImmutableMap.of(Cell.create(PtBytes.toBytes("same_row"), PtBytes.toBytes("column1")), TEST_VALUE));
+        txn.put(
+                TABLE,
+                ImmutableMap.of(
+                        Cell.create(
+                                PtBytes.toBytes("same_row"),
+                                // Writing to the same row, but different column/cell
+                                PtBytes.toBytes("column2")),
+                        TEST_VALUE));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(2);
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
+    }
+
+    @Test
+    public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
+        for (int idx = 0; idx < SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS; idx++) {
+            putUncommittedAtFreshTimestamp(TABLE_NO_SWEEP, TEST_CELL);
+        }
+        assertThatLoggableExceptionThrownBy(
+                        () -> txManager.runTaskThrowOnConflict(txn -> txn.get(TABLE_NO_SWEEP, Set.of(TEST_CELL))))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageStartingWith("Unable to filter cells")
+                .hasExactlyArgs(
+                        SafeArg.of("table", TABLE_NO_SWEEP),
+                        SafeArg.of("maxIterations", SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS));
+    }
+
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,u}(jq0 (b5c7b9efcec99e2e4e3b5ccc3eb2f13e725dca1aj0 9atlasdb-workload-server-antithesis/var/docker-compose.ymlj0 modifiedj0 K j0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X8  @@ -15,8 +15,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra1
-    volumes:
-      - /opt/config/volumes/cassandra1:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
@@ -35,8 +33,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra2
-    volumes:
-      - /opt/config/volumes/cassandra2:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
@@ -55,8 +51,6 @@ services:
       - LOCAL_JMX=no
       - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra3
-    volumes:
-      - /opt/config/volumes/cassandra3:/var/lib/cassandra
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.4u}(jq0 (6fff522b93c2fac008381bf889fb8bd37ac6b462j0 matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelection.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 Xm  @@ -60,6 +60,10 @@ default void check() {
                 SafeArg.of("endColumnExclusive", endColumnExclusive()));
     }
 
+    static ColumnRangeSelection all() {
+        return ImmutableColumnRangeSelection.builder().build();
+    }
+
     static ImmutableColumnRangeSelection.Builder builder() {
         return ImmutableColumnRangeSelection.builder();
     }u}(jq0 (813978dd1860b6fe6d1edf472c0e66a8bd3a02a9j0 oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -32,7 +32,7 @@ public interface InteractiveTransaction {
 
     void delete(String table, WorkloadCell workloadCell);
 
-    List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection);
+    List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection);
 
     List<WitnessedTransactionAction> witness();
 }u}(jq0 (f2fc56cca46a09c2ef718c3b7cb6b8d4000c1d8fj0 atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 @@ -16,4 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-public interface InvalidWitnessedTransactionAction {}
+public interface InvalidWitnessedTransactionAction {
+    // Marker interface
+}u}(jq0 (284f26075e3ae1ed8320bcbc8402749af631ccddj0 atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javaj0 X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X5  @@ -23,12 +23,15 @@
 import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
+import java.util.stream.Collectors;
 import org.immutables.value.Value;
 
 @Value.Immutable
 public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedTransactionAction {
     RowColumnRangeReadTransactionAction originalQuery();
 
+    // This is a List rather than a Set or Map because the ordering in which the columns and values are returned is
+    // important (it must match the ordering specified by the contract of row column range reads).
     List<ColumnValue> columnsAndValues();
 
     @Override
@@ -39,14 +42,15 @@ default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
     @Value.Check
     default void check() {
         Set<Integer> knownColumns = new HashSet<>();
-        for (ColumnValue columnValue : columnsAndValues()) {
-            Preconditions.checkState(
-                    !knownColumns.contains(columnValue.column()),
-                    "Duplicate column in columnsAndValues",
-                    SafeArg.of("duplicatedColumn", columnValue.column()),
-                    SafeArg.of("columnsAndValues", columnsAndValues()));
-            knownColumns.add(columnValue.column());
-        }
+        Set<Integer> duplicateColumns = columnsAndValues().stream()
+                .map(ColumnValue::column)
+                .filter(column -> !knownColumns.add(column))
+                .collect(Collectors.toSet());
+        Preconditions.checkState(
+                duplicateColumns.isEmpty(),
+                "Duplicate columns in columnsAndValues",
+                SafeArg.of("duplicateColumns", duplicateColumns),
+                SafeArg.of("columnsAndValues", columnsAndValues()));
     }
 
     static ImmutableWitnessedRowColumnRangeReadTransactionAction.Builder builder() {u}(jq0 (b2c905aecbadb5eff96bc5dbc26f890c72dbd00cj0 atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javaj0 modifiedj0 K
j0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javaj0 X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X	  @@ -20,11 +20,13 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 
 import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
 import org.junit.Test;
 
 public class WitnessedRowColumnRangeReadTransactionActionTest {
@@ -44,8 +46,15 @@ public void canCreateWitness() {
 
     @Test
     public void cannotCreateWitnessWithDuplicateColumns() {
+        List<ColumnValue> columnsAndValues = ImmutableList.of(
+                ColumnValue.of(1, 5),
+                ColumnValue.of(5, 1),
+                ColumnValue.of(1, 3),
+                ColumnValue.of(5, 8),
+                ColumnValue.of(9, 99));
+
         assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
-                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))
+                        .addAllColumnsAndValues(columnsAndValues)
                         .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                 .table("foo")
                                 .row(1)
@@ -54,11 +63,9 @@ public void cannotCreateWitnessWithDuplicateColumns() {
                                 .build())
                         .build())
                 .isInstanceOf(SafeIllegalStateException.class)
-                .hasMessageContaining("Duplicate column in columnsAndValues")
+                .hasMessageContaining("Duplicate columns in columnsAndValues")
                 .hasExactlyArgs(
-                        SafeArg.of("duplicatedColumn", 1),
-                        SafeArg.of(
-                                "columnsAndValues",
-                                ImmutableList.of(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(1, 3))));
+                        SafeArg.of("duplicateColumns", ImmutableSet.of(1, 5)),
+                        SafeArg.of("columnsAndValues", columnsAndValues));
     }
 }u}(jq0 (37e59da7fde3c443b1071e9b0c484c2da4e9f50ej0 latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj0 modifiedj0 K'j0 K j0 K'j0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 Xk  @@ -37,6 +37,8 @@
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
@@ -142,6 +144,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().transientRowsConfig();
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
+        SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadNoTouchWorkflowConfiguration =
+                configuration.install().singleBusyCellReadsNoTouchConfig();
         BankBalanceWorkflowConfiguration bankBalanceConfig =
                 configuration.install().bankBalanceConfig();
         RandomWorkflowConfiguration randomWorkflowConfig =
@@ -159,6 +163,10 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
                         createSingleBusyCellWorkflowValidator(
                                 transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellReadNoTouchWorkflowValidator(
+                                transactionStoreFactory,
+                                singleBusyCellReadNoTouchWorkflowConfiguration,
+                                environment.lifecycle()),
                         createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
                         createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
 
@@ -244,6 +252,37 @@ private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
                 SerializableInvariantLogReporter.INSTANCE);
     }
 
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellReadNoTouchWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellReadNoTouchWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-read")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-write")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellReadNoTouchWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellReadNoTouchWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
     private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             RingWorkflowConfiguration workflowConfig,u}(jq0 (388054e20c18c9c8d612db0e6d9ac1018b7f9b14j0 atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X)  @@ -20,6 +20,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
@@ -45,5 +46,7 @@ public interface WorkloadServerInstallConfiguration {
 
     RandomWorkflowConfiguration randomConfig();
 
+    SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadsNoTouchConfig();
+
     boolean exitAfterRunning();
 }u}(jq0 (da4b728986375bd8565c46e930098c1a684a145cj0 Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -41,4 +41,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: false
\ No newline at end of fileu}(jq0 (50dbd20de7876d2a9cb53eef291722b8b19cd0b5j0 Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 Xr  @@ -78,4 +78,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single_busy_cell_no_touch_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: trueu}(jq0 (7bd7f984a5ef15a2179c415620f48a0737332c43j0 Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -42,4 +42,11 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: true
\ No newline at end of fileu}(jq0 (bad62fdfc0f4e5f5e54e27631b446f28ca159cc1j0 latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj0 modifiedj0 Kj0 K
j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 Xr  @@ -26,7 +26,6 @@
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
@@ -101,7 +100,7 @@ public void delete(String table, WorkloadCell workloadCell) {
     }
 
     @Override
-    public List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection) {
+    public List<ColumnValue> getRowColumnRange(String table, int row, ColumnRangeSelection columnRangeSelection) {
         return run(
                 tableReference -> {
                     // Having a non-configurable batch hint is a bit iffy, but suffices as this won't be used in
@@ -111,20 +110,22 @@ public List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRang
                             List.of(AtlasDbUtils.toAtlasKey(row)),
                             BatchColumnRangeSelection.create(
                                     AtlasDbUtils.toAtlasColumnRangeSelection(columnRangeSelection), 100));
+                    Preconditions.checkState(
+                            iterators.size() == 1,
+                            "Expected exactly one iterator to be returned",
+                            SafeArg.of("iteratorsReturned", iterators.size()));
                     List<ColumnValue> columnsAndValues = EntryStream.of(iterators.get(AtlasDbUtils.toAtlasKey(row)))
                             .mapKeys(Cell::getColumnName)
                             .mapKeys(AtlasDbUtils::fromAtlasColumn)
                             .mapValues(AtlasDbUtils::fromAtlasValue)
                             .map(entry -> ColumnValue.of(entry.getKey(), entry.getValue()))
                             .collect(Collectors.toList());
-                    witnessedTransactionActions.add(WitnessedRowColumnRangeReadTransactionAction.builder()
-                            .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                                    .table(table)
-                                    .row(row)
-                                    .columnRangeSelection(columnRangeSelection)
-                                    .build())
-                            .columnsAndValues(columnsAndValues)
-                            .build());
+                    witnessedTransactionActions.add(RowColumnRangeReadTransactionAction.builder()
+                            .table(table)
+                            .row(row)
+                            .columnRangeSelection(columnRangeSelection)
+                            .build()
+                            .witness(columnsAndValues));
                     return columnsAndValues;
                 },
                 table);u}(jq0 (fa09be03657e9803b074bbd56a9b7fd8b045da62j0 katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReader.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReader.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -22,7 +22,6 @@
 import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import io.vavr.collection.Map;
@@ -74,11 +73,8 @@ public List<ColumnValue> readRange(RowColumnRangeReadTransactionAction readTrans
                             .contains(tableAndWorkloadCell.cell().column());
                 })
                 .filterValues(Optional::isPresent)
-                .map(entry -> ColumnValue.of(
-                        entry._1().cell().column(),
-                        entry._2()
-                                .orElseThrow(() -> new SafeRuntimeException(
-                                        "Empty values should already have been filtered out!"))))
+                .mapValues(Optional::get)
+                .map(entry -> ColumnValue.of(entry._1().cell().column(), entry._2()))
                 .sortBy(ColumnValue::column)
                 .toJavaList();
     }u}(jq0 (cfa7bb7b766851d22237ea49091b9cce6c50c789j0 atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowConfiguration.javaj0 addedj0 K j0 K j0 K j0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 Xz  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellReadNoTouchWorkflowConfiguration.TYPE)
+public interface SingleBusyCellReadNoTouchWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell-reads-no-touch";
+
+    TableConfiguration tableConfiguration();
+}u}(jq0 (ae852affb871f77d186c4b71ecca052b5aeeed40j0 tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflows.javaj0 addedj0 Kjj0 K j0 Kjj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions. This workflow differs
+ * from the {@link SingleBusyCellWorkflows} in the way that its read transaction only does read and doesn't touch the
+ * cell with its current value or -1. This allows us to exercise the code path of read-write transaction that only do
+ * reads, which is necessary to catch bugs like sweep deleting entries under a transaction if it doesn't check for
+ * immutableTimestamp lock.
+ */
+public final class SingleBusyCellReadNoTouchWorkflows {
+    private SingleBusyCellReadNoTouchWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReads(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReads(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(
+                        txn -> txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL))))
+                .collect(Collectors.toList());
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
+    }
+}u     }(jq0 (9002a5ed3382a35694d630c784b417cd15befa46j0 hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 XA  @@ -38,6 +38,7 @@
 import java.security.SecureRandom;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Objects;
 import java.util.Optional;
 import java.util.Set;
 import java.util.stream.Collectors;
@@ -141,10 +142,12 @@ private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActi
                 .orElseThrow(() -> new SafeIllegalStateException(
                         "Expected to find a read of the summary row", SafeArg.of("actions", actions)));
         WitnessedReadTransactionAction normalRowRead = readTransactionActions.stream()
-                .filter(action -> action.cell().key() != SUMMARY_ROW)
+                .filter(action -> Objects.equals(
+                                action.cell().key(), summaryRowRead.cell().column())
+                        && action.cell().column() == COLUMN)
                 .findAny()
                 .orElseThrow(() -> new SafeIllegalStateException(
-                        "Expected to find a read of a normal row", SafeArg.of("actions", actions)));
+                        "Expected to find a read of a corresponding normal row", SafeArg.of("actions", actions)));
         if (!summaryRowRead.value().equals(normalRowRead.value())) {
             return Stream.of(CrossCellInconsistency.builder()
                     .putInconsistentValues(u}(jq0 (461cdd058f7b1d94f60003aa74ed1f6caed5e9b0j0 patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj0 modifiedj0 K	j0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -86,19 +86,15 @@ public void readHandlesEmptyAndPresentValue() {
     public void witnessRecordsColumnRangeActions() {
         assertThat(readWrite(transaction -> {
                     transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            WORKLOAD_CELL_TWO.key(),
-                            ColumnRangeSelection.builder().build());
+                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
                 }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedRowColumnRangeReadTransactionAction.builder()
                                 .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                         .table(TABLE_1)
                                         .row(WORKLOAD_CELL_TWO.key())
-                                        .columnRangeSelection(
-                                                ColumnRangeSelection.builder().build())
+                                        .columnRangeSelection(ColumnRangeSelection.all())
                                         .build())
                                 .addColumnsAndValues(ColumnValue.of(WORKLOAD_CELL_TWO.column(), VALUE_ONE))
                                 .build());
@@ -107,17 +103,13 @@ public void witnessRecordsColumnRangeActions() {
     @Test
     public void emptyColumnRangeReadsAreRecorded() {
         assertThat(readWrite(transaction -> {
-                    transaction.getRowColumnRange(
-                            TABLE_1,
-                            WORKLOAD_CELL_TWO.key(),
-                            ColumnRangeSelection.builder().build());
+                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
                 }))
                 .containsExactly(WitnessedRowColumnRangeReadTransactionAction.builder()
                         .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                 .table(TABLE_1)
                                 .row(WORKLOAD_CELL_TWO.key())
-                                .columnRangeSelection(
-                                        ColumnRangeSelection.builder().build())
+                                .columnRangeSelection(ColumnRangeSelection.all())
                                 .build())
                         .build());
     }
@@ -129,8 +121,7 @@ public void allRelevantCellsAreRecordedForFullColumnScan() {
                     IntStream.range(0, iterationCount)
                             .forEach(column ->
                                     transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-                    transaction.getRowColumnRange(
-                            TABLE_1, 1, ColumnRangeSelection.builder().build());
+                    transaction.getRowColumnRange(TABLE_1, 1, ColumnRangeSelection.all());
                 }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
@@ -189,8 +180,8 @@ public void deleteThrowsWhenTableDoesNotExist() {
 
     @Test
     public void getRowsColumnRangeThrowsWhenTableDoesNotExist() {
-        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.getRowColumnRange(
-                TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.builder().build()));
+        assertThatThrownWhenUnknownTableReferenced(transaction ->
+                transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.all()));
     }
 
     @Test
@@ -213,8 +204,8 @@ public void deleteThrowsWhenInteractiveTransactionAlreadyWitnessed() {
 
     @Test
     public void getRowColumnRangeThrowsWhenInteractiveTransactionAlreadyWitnessed() {
-        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(transaction -> transaction.getRowColumnRange(
-                TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.builder().build()));
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(transaction ->
+                transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_ONE.key(), ColumnRangeSelection.all()));
     }
 
     private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {u}(jq0 (3a7aebde56bb23390c1e2c8534beaae39c6e3ab4j0 oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReaderTest.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 XU  @@ -40,7 +40,7 @@ public void doesNotReadCellsFromDifferentTable() {
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
                         .table(WorkloadTestHelpers.TABLE_2)
                         .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
-                        .columnRangeSelection(ColumnRangeSelection.builder().build())
+                        .columnRangeSelection(ColumnRangeSelection.all())
                         .build()))
                 .isEmpty();
     }
@@ -78,4 +78,17 @@ public void readsCellsFromRangeInOrder() {
                         ColumnValue.of(2, WorkloadTestHelpers.VALUE_ONE),
                         ColumnValue.of(3, WorkloadTestHelpers.VALUE_ONE));
     }
+
+    @Test
+    public void doesNotReturnExplicitlyEmptyValues() {
+        valueMap.with(map -> map.put(
+                TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
+                Optional.empty()));
+        assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                        .columnRangeSelection(ColumnRangeSelection.all())
+                        .build()))
+                .isEmpty();
+    }
 }u}(jq0 (9a0127534a3d94444fd74526c1be680a9eff55a3j0 qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj0 modifiedj0 Kj0 K	j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -21,7 +21,6 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -95,14 +94,12 @@ public WitnessedTransactionBuilder delete(Integer row, Integer column) {
 
         public WitnessedTransactionBuilder rowColumnRangeRead(
                 Integer row, ColumnRangeSelection columnRangeSelection, List<ColumnValue> valuesRead) {
-            actions.add(WitnessedRowColumnRangeReadTransactionAction.builder()
-                    .originalQuery(RowColumnRangeReadTransactionAction.builder()
-                            .table(table)
-                            .row(row)
-                            .columnRangeSelection(columnRangeSelection)
-                            .build())
-                    .columnsAndValues(valuesRead)
-                    .build());
+            RowColumnRangeReadTransactionAction transactionAction = RowColumnRangeReadTransactionAction.builder()
+                    .table(table)
+                    .row(row)
+                    .columnRangeSelection(columnRangeSelection)
+                    .build();
+            actions.add(transactionAction.witness(valuesRead));
             return this;
         }
 u}(jq0 (ce49e27d10355fb6f5b71d88a206899b12b7f25bj0 xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javaj0 addedj0 K}j0 K j0 K}j0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -0,0 +1,125 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Sets;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Collection;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class SingleBusyCellReadNoTouchWorkflowsTest {
+    private static final String TABLE_NAME = "busy.readnotouch.cell";
+    private static final int ITERATION_COUNT = 1_000;
+    private static final SingleBusyCellReadNoTouchWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow workflow = SingleBusyCellReadNoTouchWorkflows.create(
+            transactionStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)),
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)));
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void transactionsDoNotConflictExcessively() {
+        WorkflowHistory workflowHistory = workflow.run();
+        assertThat(workflowHistory.history()).hasSizeBetween(ITERATION_COUNT / 2, ITERATION_COUNT);
+    }
+
+    @Test
+    public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).allSatisfy(action -> assertThat(action)
+                .isInstanceOfSatisfying(WitnessedSingleCellTransactionAction.class, singleCellAction -> {
+                    assertThat(singleCellAction.table()).isEqualTo(TABLE_NAME);
+                    assertThat(singleCellAction.cell()).isEqualTo(SingleBusyCellReadNoTouchWorkflows.BUSY_CELL);
+                }));
+    }
+
+    @Test
+    public void targetCellIsReadModifiedAndDeleted() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+
+    @Test
+    public void readTransactionsDontDoWrites() {
+        WorkflowHistory workflowHistory = workflow.run();
+
+        Set<WitnessedTransaction> witnessedTransactionsWithReads = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream().anyMatch(WitnessedReadTransactionAction.class::isInstance))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> witnessedTransactionsWithWritesOrDeletes = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream()
+                        .anyMatch(action -> action instanceof WitnessedWriteTransactionAction
+                                || action instanceof WitnessedDeleteTransactionAction))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> transactionsWithReadsAndWritesOrDeletes =
+                Sets.intersection(witnessedTransactionsWithReads, witnessedTransactionsWithWritesOrDeletes);
+
+        assertThat(transactionsWithReadsAndWritesOrDeletes).isEmpty();
+    }
+}u}(jq0 (a982645e9685b7e2b328546bb927b2c415ad29bfj0 latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj0 modifiedj0 K|j0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X&  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.google.common.collect.ImmutableList;
@@ -41,8 +42,10 @@
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.stream.Collectors;
@@ -127,7 +130,7 @@ public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
         transactionStore.readWrite(txn -> txn.delete(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 1, 1)));
         invariant.accept(history, reference::set);
         assertThat(reference.get())
-                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                .containsExactly(CrossCellInconsistency.builder()
                         .putInconsistentValues(
                                 TableAndWorkloadCell.of(
                                         TABLE_NAME,
@@ -139,7 +142,7 @@ public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
                                         ImmutableWorkloadCell.of(
                                                 TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 1)),
                                 Optional.of(0))
-                        .build()));
+                        .build());
     }
 
     @Test
@@ -152,7 +155,7 @@ public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
                 TransientRowsWorkflows.VALUE));
         invariant.accept(history, reference::set);
         assertThat(reference.get())
-                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                .containsExactly(CrossCellInconsistency.builder()
                         .putInconsistentValues(
                                 TableAndWorkloadCell.of(
                                         TABLE_NAME,
@@ -164,7 +167,7 @@ public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
                                         ImmutableWorkloadCell.of(
                                                 TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 2)),
                                 Optional.empty())
-                        .build()));
+                        .build());
     }
 
     @Test
@@ -185,7 +188,123 @@ public void invariantReportsViolationsFromTransactionHistory() {
                 .build();
         invariant.accept(falseHistory, reference::set);
 
-        assertThat(reference.get()).hasSize(ITERATION_COUNT - 1);
+        assertThat(reference.get())
+                .hasSize(ITERATION_COUNT - 1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
+        WitnessedReadTransactionAction readWitness = WitnessedReadTransactionAction.of(
+                TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of the summary row")
+                .hasExactlyArgs(SafeArg.of("actions", ImmutableList.of(readWitness)));
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCorrespondingPrimaryRow() {
+        List<WitnessedTransactionAction> actions = ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of a corresponding normal row")
+                .hasExactlyArgs(SafeArg.of("actions", actions));
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothEmpty() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions = getReadWitnessesForSingleTransaction(
+                2, Optional.of(TransientRowsWorkflows.VALUE), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsPresentAndPrimaryIsAbsent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.of(TransientRowsWorkflows.VALUE), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsAbsentAndPrimaryIsPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    private ImmutableWorkflowHistory getWorkflowHistory(List<WitnessedTransactionAction> actions) {
+        return ImmutableWorkflowHistory.builder()
+                .transactionStore(transactionStore)
+                .history(ImmutableList.of(ImmutableFullyWitnessedTransaction.builder()
+                        .addAllActions(actions)
+                        .startTimestamp(0L)
+                        .commitTimestamp(1L)
+                        .build()))
+                .build();
+    }
+
+    private static List<WitnessedTransactionAction> getReadWitnessesForSingleTransaction(
+            int columnIndex, Optional<Integer> summaryValue, Optional<Integer> primaryValue) {
+        return ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, columnIndex),
+                        summaryValue),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(columnIndex, TransientRowsWorkflows.COLUMN),
+                        primaryValue));
+    }
+
+    private static void inconsistencyInvolvesPairOfPrimaryAndSummaryCells(CrossCellInconsistency inconsistency) {
+        Map<TableAndWorkloadCell, Optional<Integer>> readValues = inconsistency.inconsistentValues();
+        TableAndWorkloadCell summaryCell = readValues.keySet().stream()
+                .filter(tableAndWorkloadCell -> tableAndWorkloadCell.cell().key() == TransientRowsWorkflows.SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of the summary row", SafeArg.of("readValues", readValues)));
+        TableAndWorkloadCell primaryCell = getPrimaryCellForSummaryCell(summaryCell);
+
+        assertThat(readValues.keySet()).containsExactlyInAnyOrder(summaryCell, primaryCell);
+        assertThat(readValues.values())
+                .containsExactlyInAnyOrder(Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+    }
+
+    // This workflow uses a single table, where the summary row's columns correspond to rows with primary values.
+    private static TableAndWorkloadCell getPrimaryCellForSummaryCell(TableAndWorkloadCell summaryCell) {
+        return TableAndWorkloadCell.of(
+                summaryCell.tableName(),
+                ImmutableWorkloadCell.of(summaryCell.cell().column(), TransientRowsWorkflows.COLUMN));
     }
 
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(u}(jq0 (fe0267e6f697a967a6133f2554009d8a0be04d4cj0 katlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtilsTest.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -67,7 +67,7 @@ public void performTransfersReturnsBalancesWithCorrectSum() {
         when(random.nextInt(anyInt())).thenReturn(0, 1);
         Map<Integer, Integer> balances = Map.of(0, 1, 1, 1);
         Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
-        assertThat(newBalances).isEqualTo(Map.of(0, 0, 1, 2));
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(Map.of(0, 0, 1, 2));
         assertThat(newBalances.values().stream().mapToInt(Integer::intValue).sum())
                 .isEqualTo(2);
     }
@@ -77,6 +77,6 @@ public void performsTransfersOnlyIfValueWouldNotBeBelowZero() {
         when(random.nextInt(anyInt())).thenReturn(0, 1);
         Map<Integer, Integer> balances = Map.of(0, 0, 1, 2);
         Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
-        assertThat(newBalances).isEqualTo(balances);
+        assertThat(newBalances).containsExactlyInAnyOrderEntriesOf(balances);
     }
 }u}(jq0 (7ae440730798415742814c38fb59d0707273036ej0 datlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingGraphTest.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X=  @@ -101,6 +101,6 @@ public void generateNewRingReturnsValidRing() {
 
     @Test
     public void asMapConvertsCorrectly() {
-        assertThat(RingGraph.from(VALID_RING).asMap()).isEqualTo(VALID_RING);
+        assertThat(RingGraph.from(VALID_RING).asMap()).containsExactlyInAnyOrderEntriesOf(VALID_RING);
     }
 }u}(jq0 (022221727d6f2d598a0016a225e75264c9780625j0 build.gradlej0 modifiedj0 Kj0 Kj0 K
j0 ^https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/build.gradlej0 ]https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/build.gradlej0 phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -7,20 +7,20 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.0'
-        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.2.0'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.4'
+        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.3.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.38.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.39.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
-        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
+        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.8.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
-        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'
+        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.3'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
         classpath 'gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1'
         classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'
@@ -113,8 +113,7 @@ allprojects {
                 'Slf4jLogsafeArgs',
                 'StaticAssignmentInConstructor',
                 'StrictUnusedVariable'
-        options.errorprone.error 'DefaultLocale',
-                'SafeLoggingPropagation'
+        options.errorprone.error 'SafeLoggingPropagation'
     }
 }
 u}(jq0 (351dc558cfb12f3027ca880f55c00742ee516cbdj0  changelog/0.870.0/pr-6613.v2.ymlj0 addedj0 Kj0 K j0 Kj0 vhttps://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.870.0%2Fpr-6613.v2.ymlj0 uhttps://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.870.0%2Fpr-6613.v2.ymlj0 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.870.0%2Fpr-6613.v2.yml?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: There now exists an Antithesis workflow that exercises read-write transactions
+    that only do reads.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6613u}(jq0 (ffd47f177c27dd39d87fb4cd84339ad7d1911c1cj0  changelog/0.874.0/pr-6625.v2.ymlj0 addedj0 Kj0 K j0 Kj0 vhttps://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.874.0%2Fpr-6625.v2.ymlj0 uhttps://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.874.0%2Fpr-6625.v2.ymlj0 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.874.0%2Fpr-6625.v2.yml?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LockV1] Add async thread info snapshotting (disabled by default)'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6625u}(jq0 (a6c9d3dd239346b5de33d708683efcea7ca6e0d1j0  changelog/0.875.0/pr-6623.v2.ymlj0 addedj0 Kj0 K j0 Kj0 vhttps://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.875.0%2Fpr-6623.v2.ymlj0 uhttps://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.875.0%2Fpr-6623.v2.ymlj0 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.875.0%2Fpr-6623.v2.yml?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Log lock holder thread info on timeout, slow lock acquisition and contention
+  links:
+  - https://github.com/palantir/atlasdb/pull/6623u}(jq0 (34c425f71f242ce114bab888f8034960c6b716e7j0  changelog/0.877.0/pr-6602.v2.ymlj0 addedj0 Kj0 K j0 Kj0 vhttps://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.877.0%2Fpr-6602.v2.ymlj0 uhttps://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.877.0%2Fpr-6602.v2.ymlj0 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.877.0%2Fpr-6602.v2.yml?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Add metrics for number of requested cell/row-level commit locks
+  links:
+  - https://github.com/palantir/atlasdb/pull/6602u}(jq0 (46b215e4664b4438f038bf048c14656f6fb089e1j0  changelog/0.878.0/pr-6630.v2.ymlj0 addedj0 Kj0 K j0 Kj0 vhttps://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.878.0%2Fpr-6630.v2.ymlj0 uhttps://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.878.0%2Fpr-6630.v2.ymlj0 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.878.0%2Fpr-6630.v2.yml?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Remove recursive loop when filtering out cells that are not applicable
+    to our transaction.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6630u}(jq0 (9914bf81d7b0081790e5b357d977f35947ad8b60j0  changelog/0.879.0/pr-6626.v2.ymlj0 addedj0 Kj0 K j0 Kj0 vhttps://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.879.0%2Fpr-6626.v2.ymlj0 uhttps://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.879.0%2Fpr-6626.v2.ymlj0 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.879.0%2Fpr-6626.v2.yml?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LockV1] Pass refreshable thread info configuration'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6626u}(jq0 (a17f90ec5d7c8dabd4b8d110ace6016af8cfad9cj0  changelog/0.880.0/pr-6641.v2.ymlj0 addedj0 Kj0 K j0 Kj0 vhttps://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.880.0%2Fpr-6641.v2.ymlj0 uhttps://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.880.0%2Fpr-6641.v2.ymlj0 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.880.0%2Fpr-6641.v2.yml?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize CassandraService#refreshTokenRangesAndGetServers
+  links:
+  - https://github.com/palantir/atlasdb/pull/6641u}(jq0 (7afdb03a2af8b0138cc1524e0d39e84990810e28j0  changelog/0.881.0/pr-6624.v2.ymlj0 addedj0 Kj0 K j0 Kj0 vhttps://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.881.0%2Fpr-6624.v2.ymlj0 uhttps://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.881.0%2Fpr-6624.v2.ymlj0 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.881.0%2Fpr-6624.v2.yml?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Stopped checking immutable timestamp lock on thoroughly swept tables
+    when reading an empty value.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6624u}(jq0 (3750fb7fc4996863b5345b1cb6cbf683dd8cfc1fj0  changelog/0.882.0/pr-6648.v2.ymlj0 addedj0 Kj0 K j0 Kj0 vhttps://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.882.0%2Fpr-6648.v2.ymlj0 uhttps://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.882.0%2Fpr-6648.v2.ymlj0 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.882.0%2Fpr-6648.v2.yml?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize CassandraService#getAddressForHost
+  links:
+  - https://github.com/palantir/atlasdb/pull/6648u}(jq0 (aa4df8d917755227eec390dd5e0d424aebabf4c7j0  changelog/0.882.0/pr-6649.v2.ymlj0 addedj0 Kj0 K j0 Kj0 vhttps://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.882.0%2Fpr-6649.v2.ymlj0 uhttps://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.882.0%2Fpr-6649.v2.ymlj0 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.882.0%2Fpr-6649.v2.yml?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: bump snappy-java to 1.1.10.1
+  links:
+  - https://github.com/palantir/atlasdb/pull/6649u}(jq0 (d7951f643174772a855f4d861eeddb8fc504150aj0  changelog/0.883.0/pr-6644.v2.ymlj0 addedj0 Kj0 K j0 Kj0 vhttps://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.883.0%2Fpr-6644.v2.ymlj0 uhttps://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.883.0%2Fpr-6644.v2.ymlj0 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6644.v2.yml?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Create LockRequestMetadata and ChangeMetadata
+  links:
+  - https://github.com/palantir/atlasdb/pull/6644u}(jq0 (f502755b47a5379d145593d6f6a21b6d0ff20be9j0  changelog/0.883.0/pr-6646.v2.ymlj0 addedj0 Kj0 K j0 Kj0 vhttps://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.883.0%2Fpr-6646.v2.ymlj0 uhttps://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.883.0%2Fpr-6646.v2.ymlj0 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6646.v2.yml?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add metadata to LockEvent'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6646u}(jq0 (59a104ba72569b4dfd00ae8626fea6e626f1cc19j0  changelog/0.883.0/pr-6647.v2.ymlj0 addedj0 Kj0 K j0 Kj0 vhttps://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.883.0%2Fpr-6647.v2.ymlj0 uhttps://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/changelog%2F0.883.0%2Fpr-6647.v2.ymlj0 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.883.0%2Fpr-6647.v2.yml?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LWMeta] Add LockMetadata to IdentifiedLockRequest'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6647u}(jq0 (689da2f7264afbb03bb06b6a430723bd1dcbbf4bj0 lock-api-objects/build.gradlej0 modifiedj0 Kj0 K j0 Kj0 qhttps://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/lock-api-objects%2Fbuild.gradlej0 phttps://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/lock-api-objects%2Fbuild.gradlej0 https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fbuild.gradle?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X_  @@ -16,6 +16,7 @@ dependencies {
     implementation 'com.google.errorprone:error_prone_annotations'
     implementation 'com.google.guava:guava'
     implementation project(':commons-annotations')
+    testImplementation project(path: ':lock-api')
 
     annotationProcessor 'org.immutables:value'
     compileOnly 'org.immutables:value::annotations'u}(jq0 (933965abbab2686a96a62a6ac504123076081ec8j0 Ilock-api-objects/src/main/java/com/palantir/lock/LockClientAndThread.javaj0 addedj0 K$j0 K j0 K$j0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface LockClientAndThread {
+    LockClientAndThread UNKNOWN = LockClientAndThread.of(LockClient.ANONYMOUS, "unknown-thread");
+
+    LockClient client();
+
+    String thread();
+
+    static ImmutableLockClientAndThread.Builder builder() {
+        return ImmutableLockClientAndThread.builder();
+    }
+
+    static LockClientAndThread of(LockClient client, String requestingThread) {
+        return builder().client(client).thread(requestingThread).build();
+    }
+}u}(jq0 (4305d649486aabcf97ca07976c286654204cf825j0 Jlock-api-objects/src/main/java/com/palantir/lock/watch/ChangeMetadata.javaj0 addedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FChangeMetadata.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -0,0 +1,137 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.palantir.lock.watch.ChangeMetadata.Created;
+import com.palantir.lock.watch.ChangeMetadata.Deleted;
+import com.palantir.lock.watch.ChangeMetadata.Unchanged;
+import com.palantir.lock.watch.ChangeMetadata.Updated;
+import org.immutables.value.Value;
+import org.immutables.value.Value.Immutable;
+
+/**
+ * The subtypes of this class can be used to document CRUD-like operations that were applied to a value.
+ * However, the READ case is not accounted for as no locks are taken out for reads.
+ * Every instance should be associated with a {@link com.palantir.lock.LockDescriptor}.
+ * It is up to the users of metadata to know the type of value it refers to
+ * and how to interpret the different subtypes.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
+@JsonSubTypes({
+    @JsonSubTypes.Type(value = Unchanged.class, name = Unchanged.TYPE),
+    @JsonSubTypes.Type(value = Updated.class, name = Updated.TYPE),
+    @JsonSubTypes.Type(value = Deleted.class, name = Deleted.TYPE),
+    @JsonSubTypes.Type(value = Created.class, name = Created.TYPE),
+})
+public interface ChangeMetadata {
+    <T> T accept(Visitor<T> visitor);
+
+    static Unchanged unchanged() {
+        return ImmutableUnchanged.builder().build();
+    }
+
+    static Updated updated(byte[] oldValue, byte[] newValue) {
+        return ImmutableUpdated.of(oldValue, newValue);
+    }
+
+    static Deleted deleted(byte[] oldValue) {
+        return ImmutableDeleted.of(oldValue);
+    }
+
+    static Created created(byte[] newValue) {
+        return ImmutableCreated.of(newValue);
+    }
+
+    interface Visitor<T> {
+        T visit(Unchanged unchanged);
+
+        T visit(Updated updated);
+
+        T visit(Deleted deleted);
+
+        T visit(Created created);
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableUnchanged.class)
+    @JsonDeserialize(as = ImmutableUnchanged.class)
+    @JsonTypeName(Unchanged.TYPE)
+    interface Unchanged extends ChangeMetadata {
+        String TYPE = "unchanged";
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableUpdated.class)
+    @JsonDeserialize(as = ImmutableUpdated.class)
+    @JsonTypeName(Updated.TYPE)
+    interface Updated extends ChangeMetadata {
+        String TYPE = "updated";
+
+        @Value.Parameter
+        byte[] oldValue();
+
+        @Value.Parameter
+        byte[] newValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableDeleted.class)
+    @JsonDeserialize(as = ImmutableDeleted.class)
+    @JsonTypeName(Deleted.TYPE)
+    interface Deleted extends ChangeMetadata {
+        String TYPE = "deleted";
+
+        @Value.Parameter
+        byte[] oldValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+
+    @Immutable
+    @JsonSerialize(as = ImmutableCreated.class)
+    @JsonDeserialize(as = ImmutableCreated.class)
+    @JsonTypeName(Created.TYPE)
+    interface Created extends ChangeMetadata {
+        String TYPE = "created";
+
+        @Value.Parameter
+        byte[] newValue();
+
+        @Override
+        default <T> T accept(Visitor<T> visitor) {
+            return visitor.visit(this);
+        }
+    }
+}u}(jq0 (9ef6441b1ec7d185a6b25c242d1d64524dbaadc5j0 Elock-api-objects/src/main/java/com/palantir/lock/watch/LockEvent.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEvent.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 Xa  @@ -16,12 +16,14 @@
 
 package com.palantir.lock.watch;
 
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonTypeName;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.logsafe.Unsafe;
+import java.util.Optional;
 import java.util.Set;
 import org.immutables.value.Value;
 
@@ -37,6 +39,9 @@ public abstract class LockEvent implements LockWatchEvent {
 
     public abstract LockToken lockToken();
 
+    @JsonIgnore
+    public abstract Optional<LockRequestMetadata> metadata();
+
     @Override
     public int size() {
         return lockDescriptors().size();
@@ -48,8 +53,15 @@ public <T> T accept(Visitor<T> visitor) {
     }
 
     public static LockWatchEvent.Builder builder(Set<LockDescriptor> lockDescriptors, LockToken lockToken) {
-        ImmutableLockEvent.Builder builder =
-                ImmutableLockEvent.builder().lockDescriptors(lockDescriptors).lockToken(lockToken);
+        return builder(lockDescriptors, lockToken, Optional.empty());
+    }
+
+    public static LockWatchEvent.Builder builder(
+            Set<LockDescriptor> lockDescriptors, LockToken lockToken, Optional<LockRequestMetadata> metadata) {
+        ImmutableLockEvent.Builder builder = ImmutableLockEvent.builder()
+                .lockDescriptors(lockDescriptors)
+                .lockToken(lockToken)
+                .metadata(metadata);
         return seq -> builder.sequence(seq).build();
     }
 }u}(jq0 (baa29a11aad2762f424acb1d510175b8849ecba2j0 Olock-api-objects/src/main/java/com/palantir/lock/watch/LockRequestMetadata.javaj0 addedj0 K'j0 K j0 K'j0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockRequestMetadata.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X0  @@ -0,0 +1,39 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.watch;
+
+import com.palantir.lock.LockDescriptor;
+import com.palantir.logsafe.Unsafe;
+import java.util.Map;
+import org.immutables.value.Value;
+
+/**
+ * Metadata attached to a lock request and to any {@link LockEvent} created as a result of that request.
+ * Ideally, this class is not serialized as-is to JSON due to the repetition of {@link LockDescriptor} values
+ * in {@link LockRequestMetadata#lockDescriptorToChangeMetadata()} and the parent object.
+ */
+@Unsafe
+@Value.Immutable
+public interface LockRequestMetadata {
+    Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata();
+
+    static LockRequestMetadata of(Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata) {
+        return ImmutableLockRequestMetadata.builder()
+                .lockDescriptorToChangeMetadata(lockDescriptorToChangeMetadata)
+                .build();
+    }
+}u}(jq0 (8e3edb51b7ae6b3309b255039a0a6dd18134f32dj0 Jlock-api/src/main/java/com/palantir/lock/DebugThreadInfoConfiguration.javaj0 addedj0 K(j0 K j0 K(j0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -0,0 +1,40 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@JsonDeserialize(as = ImmutableDebugThreadInfoConfiguration.class)
+@JsonSerialize(as = ImmutableDebugThreadInfoConfiguration.class)
+@Value.Immutable
+public interface DebugThreadInfoConfiguration {
+
+    @JsonProperty("record-thread-info")
+    @Value.Default
+    default boolean recordThreadInfo() {
+        return false;
+    }
+
+    @JsonProperty("thread-info-snapshot-interval-millis")
+    @Value.Default
+    default long threadInfoSnapshotIntervalMillis() {
+        return 300000L;
+    }
+}u}(jq0 (24a4a395982dfe44421aaba5d136f4694950815fj0 ?lock-api/src/main/java/com/palantir/lock/LockServerConfigs.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 XV  @@ -20,4 +20,7 @@ public final class LockServerConfigs {
     private LockServerConfigs() {}
 
     public static final LockServerOptions DEFAULT = LockServerOptions.builder().build();
+
+    public static final DebugThreadInfoConfiguration DEFAULT_THREAD_INFO_CONFIG =
+            ImmutableDebugThreadInfoConfiguration.builder().build();
 }u}(jq0 (da50ee7393b93c8d71153140ffe86ba6c40366fcj0 ?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -16,6 +16,7 @@
 package com.palantir.lock;
 
 import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.google.common.base.MoreObjects;
@@ -126,6 +127,15 @@ public long slowLogTriggerMillis() {
         return 10000L;
     }
 
+    /**
+     * Runtime configuration relating to thread info recording (which lock is held by which client-thread).
+     */
+    @JsonIgnore
+    @Value.Default
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    }
+
     @Override
     public boolean equals(@Nullable Object obj) {
         if (this == obj) {
@@ -142,7 +152,8 @@ && getRandomBitCount() == other.getRandomBitCount()
                 && Objects.equals(getMaxAllowedClockDrift(), other.getMaxAllowedClockDrift())
                 && Objects.equals(getMaxAllowedBlockingDuration(), other.getMaxAllowedBlockingDuration())
                 && Objects.equals(getMaxNormalLockAge(), other.getMaxNormalLockAge())
-                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout());
+                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout())
+                && Objects.equals(threadInfoConfiguration(), other.threadInfoConfiguration());
     }
 
     @Override
@@ -155,7 +166,8 @@ public int hashCode() {
                 getMaxNormalLockAge(),
                 getRandomBitCount(),
                 getStuckTransactionTimeout(),
-                slowLogTriggerMillis());
+                slowLogTriggerMillis(),
+                threadInfoConfiguration());
     }
 
     @Override
@@ -169,6 +181,7 @@ public String toString() {
                 .add("randomBitCount", getRandomBitCount())
                 .add("stuckTransactionTimeout", getStuckTransactionTimeout())
                 .add("slowLogTriggerMillis", slowLogTriggerMillis())
+                .add("threadInfoConfiguration", threadInfoConfiguration())
                 .toString();
     }
 u}(jq0 (6ad04228eeb384671486cf32446155659b4c354ej0 Jlock-api/src/main/java/com/palantir/lock/client/IdentifiedLockRequest.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -15,10 +15,12 @@
  */
 package com.palantir.lock.client;
 
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.Unsafe;
 import java.util.Optional;
 import java.util.Set;
@@ -43,15 +45,32 @@ public interface IdentifiedLockRequest {
     @Value.Parameter
     Optional<String> getClientDescription();
 
+    @Value.Parameter
+    @JsonIgnore
+    Optional<LockRequestMetadata> getMetadata();
+
     static IdentifiedLockRequest of(Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs) {
         return ImmutableIdentifiedLockRequest.of(
-                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.empty());
+                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.empty(), Optional.empty());
     }
 
     static IdentifiedLockRequest of(
             Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs, String clientDescription) {
         return ImmutableIdentifiedLockRequest.of(
-                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription));
+                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription), Optional.empty());
+    }
+
+    static IdentifiedLockRequest of(
+            Set<LockDescriptor> lockDescriptors,
+            long acquireTimeoutMs,
+            String clientDescription,
+            LockRequestMetadata metadata) {
+        return ImmutableIdentifiedLockRequest.of(
+                UUID.randomUUID(),
+                lockDescriptors,
+                acquireTimeoutMs,
+                Optional.of(clientDescription),
+                Optional.of(metadata));
     }
 
     static IdentifiedLockRequest from(LockRequest lockRequest) {u     }(jq0 (9f55ad6d5a91523f5133238f9b39ba8002664e51j0 Nlock-api/src/test/java/com/palantir/lock/client/IdentifiedLockRequestTest.javaj0 modifiedj0 KIj0 Kj0 KTj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -19,24 +19,86 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
 import com.fasterxml.jackson.datatype.guava.GuavaModule;
 import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockRequestMetadata;
+import java.nio.charset.StandardCharsets;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.UUID;
 import org.junit.Test;
 
 public class IdentifiedLockRequestTest {
-    private static final String SERIALIZED_LOCK_REQUEST = "{"
-            + "\"requestId\":\"885afd9c-de62-44ff-a517-5db14b71bfaa\","
-            + "\"lockDescriptors\":[{\"bytes\":\"Zm9v\"}],"
-            + "\"acquireTimeoutMs\":123,"
-            + "\"clientDescription\":\"Thread: main\"}";
+    private static final String BASE = "src/test/resources/identified-lock-request-wire-format/";
+    private static final boolean REWRITE_JSON_BLOBS = false;
+    private static final IdentifiedLockRequest BASELINE_REQUEST = ImmutableIdentifiedLockRequest.builder()
+            .requestId(new UUID(1337, 42))
+            .lockDescriptors(ImmutableSet.of(StringLockDescriptor.of("lock1"), StringLockDescriptor.of("lock2")))
+            .acquireTimeoutMs(100)
+            .clientDescription("client: test, thread: test")
+            .build();
+    private static final LockRequestMetadata LOCK_REQUEST_METADATA = LockRequestMetadata.of(ImmutableMap.of(
+            StringLockDescriptor.of("lock1"), ChangeMetadata.created("something".getBytes(StandardCharsets.UTF_8))));
+    private static final ObjectMapper MAPPER = new ObjectMapper()
+            .enable(SerializationFeature.INDENT_OUTPUT)
+            .registerModule(new Jdk8Module())
+            .registerModule(new GuavaModule());
 
-    private static final ObjectMapper mapper =
-            new ObjectMapper().registerModule(new Jdk8Module()).registerModule(new GuavaModule());
+    @Test
+    public void baselineRequestIsFullCompat() {
+        assertSerializedEquals(BASELINE_REQUEST, "baseline");
+        assertDeserializedEquals("baseline", BASELINE_REQUEST);
+    }
 
     @Test
-    public void ensureSerdeBackcompat() throws Exception {
-        IdentifiedLockRequest request = mapper.readValue(SERIALIZED_LOCK_REQUEST, IdentifiedLockRequest.class);
-        String deserialized = mapper.writeValueAsString(request);
-        assertThat(mapper.readTree(deserialized)).isEqualTo(mapper.readTree(SERIALIZED_LOCK_REQUEST));
+    public void baselineRequestWithMetadataIsBackCompat() {
+        assertSerializedEquals(
+                ImmutableIdentifiedLockRequest.copyOf(BASELINE_REQUEST).withMetadata(LOCK_REQUEST_METADATA),
+                "baseline");
+    }
+
+    private static void assertSerializedEquals(IdentifiedLockRequest request, String jsonFileName) {
+        try {
+            Path path = getJsonPath(jsonFileName);
+            if (REWRITE_JSON_BLOBS) {
+                MAPPER.writeValue(path.toFile(), request);
+            }
+            String serialized = serialize(request);
+            assertThat(MAPPER.readTree(serialized))
+                    .as("Serialization yields identical JSON representation")
+                    .isEqualTo(MAPPER.readTree(Files.readString(path)));
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static void assertDeserializedEquals(String jsonFileName, IdentifiedLockRequest request) {
+        assertThat(deserialize(jsonFileName)).isEqualTo(request);
+    }
+
+    private static String serialize(IdentifiedLockRequest request) {
+        try {
+            return MAPPER.writeValueAsString(request);
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static IdentifiedLockRequest deserialize(String jsonFileName) {
+        try {
+            return MAPPER.readValue(Files.readString(getJsonPath(jsonFileName)), IdentifiedLockRequest.class);
+        } catch (Throwable t) {
+            throw new RuntimeException(t);
+        }
+    }
+
+    private static Path getJsonPath(String jsonFileName) {
+        return Paths.get(BASE + jsonFileName + ".json");
     }
 }u}(jq0 (88f329985fc4d91067bebcd353b56f20d58b75bej0 Mlock-api/src/test/resources/identified-lock-request-wire-format/baseline.jsonj0 addedj0 K
j0 K j0 K
j0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.jsonj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.jsonj0 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Fidentified-lock-request-wire-format%2Fbaseline.json?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -0,0 +1,10 @@
+{
+  "requestId" : "00000000-0000-0539-0000-00000000002a",
+  "lockDescriptors" : [ {
+    "bytes" : "bG9jazE="
+  }, {
+    "bytes" : "bG9jazI="
+  } ],
+  "acquireTimeoutMs" : 100,
+  "clientDescription" : "client: test, thread: test"
+}
\ No newline at end of fileu}(jq0 (dfc342440e6b1fcac63ded5134e926da137e5418j0 lock-impl/build.gradlej0 modifiedj0 Kj0 K j0 Kj0 jhttps://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/lock-impl%2Fbuild.gradlej0 ihttps://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/lock-impl%2Fbuild.gradlej0 |https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fbuild.gradle?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -10,6 +10,7 @@ dependencies {
   implementation 'com.google.guava:guava'
   implementation 'com.palantir.common:streams'
   implementation 'com.palantir.nylon:nylon-threads'
+  implementation 'com.palantir.refreshable:refreshable'
   implementation 'com.palantir.safe-logging:preconditions'
   implementation 'com.palantir.safe-logging:safe-logging'
   implementation 'joda-time:joda-time'
@@ -22,6 +23,7 @@ dependencies {
   implementation project(':lock-api-objects')
   implementation project(':timestamp-api')
 
+  testImplementation 'org.awaitility:awaitility'
   testImplementation 'com.fasterxml.jackson.core:jackson-databind'
   testImplementation 'com.google.guava:guava'
   testImplementation 'com.palantir.safe-logging:preconditions'u}(jq0 (ccf79fc6208425b23884007b50ffc458e3a26bd5j0 Llock-impl/src/main/java/com/palantir/lock/impl/AdjustableBackgroundTask.javaj0 addedj0 Kej0 K j0 Kej0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -0,0 +1,101 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.io.Closeable;
+import java.time.Duration;
+import java.util.concurrent.RejectedExecutionException;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
+import java.util.function.Supplier;
+
+public final class AdjustableBackgroundTask implements Closeable {
+
+    /**
+     * A minimum duration between invocations if the task is not actually enabled.
+     * This is to prevent having a blocking thread in the background that does nothing.
+     */
+    @VisibleForTesting
+    static final Duration MINIMUM_INTERVAL_IF_NOT_RUNNING = Duration.ofSeconds(1);
+
+    private static final SafeLogger log = SafeLoggerFactory.get(AdjustableBackgroundTask.class);
+
+    private final ScheduledExecutorService scheduledExecutor;
+    private final Supplier<Boolean> shouldRunSupplier;
+    private final Supplier<Duration> intervalSupplier;
+    private final Runnable task;
+
+    public static AdjustableBackgroundTask create(
+            Supplier<Boolean> shouldRunSupplier, Supplier<Duration> delaySupplier, Runnable task) {
+        return new AdjustableBackgroundTask(
+                shouldRunSupplier, delaySupplier, task, PTExecutors.newSingleThreadScheduledExecutor());
+    }
+
+    @VisibleForTesting
+    AdjustableBackgroundTask(
+            Supplier<Boolean> shouldRunSupplier,
+            Supplier<Duration> intervalSupplier,
+            Runnable task,
+            ScheduledExecutorService scheduledExecutor) {
+        this.shouldRunSupplier = shouldRunSupplier;
+        this.intervalSupplier = intervalSupplier;
+        this.task = task;
+        this.scheduledExecutor = scheduledExecutor;
+        run();
+    }
+
+    private void run() {
+        boolean shouldRun = shouldRunSupplier.get();
+        if (shouldRun) {
+            try {
+                task.run();
+            } catch (Exception e) {
+                if (Thread.interrupted()) {
+                    log.error("Task was interrupted. Stopping background execution.", e);
+                    Thread.currentThread().interrupt();
+                    return;
+                }
+                log.error("Exception occurred during task", e);
+            } catch (Error e) {
+                log.error("Error occurred during task. Stopping background execution.", e);
+                return;
+            }
+        }
+        try {
+            long intervalMillis = intervalSupplier.get().toMillis();
+            scheduledExecutor.schedule(
+                    this::run,
+                    shouldRun ? intervalMillis : Math.max(MINIMUM_INTERVAL_IF_NOT_RUNNING.toMillis(), intervalMillis),
+                    TimeUnit.MILLISECONDS);
+        } catch (RejectedExecutionException e) {
+            log.warn(
+                    "Scheduler rejected execution",
+                    SafeArg.of("schedulerIsShutdown", scheduledExecutor.isShutdown()),
+                    e);
+        }
+    }
+
+    @Override
+    public void close() {
+        scheduledExecutor.shutdown();
+    }
+}u}(jq0 (d46677bd60efd12dee64f1090e49358ef304d8d9j0 Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj0 modifiedj0 K.j0 Kj0 K>j0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X$  @@ -80,6 +80,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.nylon.threads.ThreadNames;
+import com.palantir.refreshable.Refreshable;
 import com.palantir.util.JMXUtils;
 import com.palantir.util.Ownable;
 import java.math.BigInteger;
@@ -92,6 +93,7 @@
 import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.BlockingQueue;
@@ -104,6 +106,7 @@
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicInteger;
 import java.util.function.Supplier;
+import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 import javax.annotation.concurrent.ThreadSafe;
@@ -183,6 +186,9 @@ public String toString() {
     private final SimpleTimeDuration stuckTransactionTimeout;
     private final AtomicBoolean isShutDown = new AtomicBoolean(false);
 
+    /** Configurable background task that periodically collects snapshots about the current lock state */
+    private final LockThreadInfoSnapshotManager threadInfoSnapshotManager;
+
     private final LockClientIndices clientIndices = new LockClientIndices();
 
     /** The backing client-aware read write lock for each lock descriptor. */
@@ -228,15 +234,21 @@ public static LockServiceImpl create() {
     public static LockServiceImpl create(LockServerOptions options) {
         com.palantir.logsafe.Preconditions.checkNotNull(options);
         ExecutorService newExecutor = PTExecutors.newCachedThreadPool(LockServiceImpl.class.getName());
-        return create(options, Ownable.owned(newExecutor));
+        return create(Refreshable.only(options), Ownable.owned(newExecutor));
     }
 
-    public static LockServiceImpl create(LockServerOptions options, ExecutorService injectedExecutor) {
+    public static LockServiceImpl create(Refreshable<LockServerOptions> options, ExecutorService injectedExecutor) {
         com.palantir.logsafe.Preconditions.checkNotNull(options);
+        com.palantir.logsafe.Preconditions.checkNotNull(options.current());
         return create(options, Ownable.notOwned(injectedExecutor));
     }
 
-    private static LockServiceImpl create(LockServerOptions options, Ownable<ExecutorService> executor) {
+    public static LockServiceImpl create(LockServerOptions options, ExecutorService injectedExecutor) {
+        com.palantir.logsafe.Preconditions.checkNotNull(options);
+        return create(Refreshable.only(options), Ownable.notOwned(injectedExecutor));
+    }
+
+    private static LockServiceImpl create(Refreshable<LockServerOptions> options, Ownable<ExecutorService> executor) {
         if (log.isTraceEnabled()) {
             log.trace("Creating LockService with options={}", SafeArg.of("options", options));
         }
@@ -247,15 +259,22 @@ private static LockServiceImpl create(LockServerOptions options, Ownable<Executo
         return lockService;
     }
 
-    private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable<ExecutorService> executor) {
+    /**
+     * Only {@link LockServerOptions#threadInfoConfiguration()} is actually reloadable
+     */
+    private LockServiceImpl(
+            Refreshable<LockServerOptions> options, Runnable callOnClose, Ownable<ExecutorService> executor) {
+        LockServerOptions currentOptions = options.current();
         this.lockReapRunner = new LockReapRunner(executor);
         this.callOnClose = callOnClose;
-        this.isStandaloneServer = options.isStandaloneServer();
-        this.maxAllowedLockTimeout = SimpleTimeDuration.of(options.getMaxAllowedLockTimeout());
-        this.maxAllowedClockDrift = SimpleTimeDuration.of(options.getMaxAllowedClockDrift());
-        this.maxNormalLockAge = SimpleTimeDuration.of(options.getMaxNormalLockAge());
-        this.stuckTransactionTimeout = SimpleTimeDuration.of(options.getStuckTransactionTimeout());
-        this.slowLogTriggerMillis = options.slowLogTriggerMillis();
+        this.isStandaloneServer = currentOptions.isStandaloneServer();
+        this.maxAllowedLockTimeout = SimpleTimeDuration.of(currentOptions.getMaxAllowedLockTimeout());
+        this.maxAllowedClockDrift = SimpleTimeDuration.of(currentOptions.getMaxAllowedClockDrift());
+        this.maxNormalLockAge = SimpleTimeDuration.of(currentOptions.getMaxNormalLockAge());
+        this.stuckTransactionTimeout = SimpleTimeDuration.of(currentOptions.getStuckTransactionTimeout());
+        this.slowLogTriggerMillis = currentOptions.slowLogTriggerMillis();
+        this.threadInfoSnapshotManager = new LockThreadInfoSnapshotManager(
+                options.map(LockServerOptions::threadInfoConfiguration), () -> heldLocksTokenMap);
     }
 
     private HeldLocksToken createHeldLocksToken(
@@ -465,7 +484,7 @@ private void logLockAcquisitionFailure(Map<LockDescriptor, LockClient> failedLoc
         final String logMessage = "Current holders of the first {} of {} total failed locks were: {}";
 
         List<String> lockDescriptions = new ArrayList<>();
-        Iterator<Map.Entry<LockDescriptor, LockClient>> entries =
+        Iterator<Entry<LockDescriptor, LockClient>> entries =
                 failedLocks.entrySet().iterator();
         for (int i = 0; i < MAX_FAILED_LOCKS_TO_LOG && entries.hasNext(); i++) {
             Map.Entry<LockDescriptor, LockClient> entry = entries.next();
@@ -477,7 +496,10 @@ private void logLockAcquisitionFailure(Map<LockDescriptor, LockClient> failedLoc
                 logMessage,
                 SafeArg.of("numLocksLogged", Math.min(MAX_FAILED_LOCKS_TO_LOG, failedLocks.size())),
                 SafeArg.of("numLocksFailed", failedLocks.size()),
-                UnsafeArg.of("lockDescriptions", lockDescriptions));
+                UnsafeArg.of("lockDescriptions", lockDescriptions),
+                threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(failedLocks.keySet().stream()
+                        .limit(MAX_FAILED_LOCKS_TO_LOG)
+                        .collect(Collectors.toSet())));
     }
 
     private boolean isBlocking(BlockingMode blockingMode) {
@@ -523,7 +545,7 @@ private void tryLocks(
                 LockClient currentHolder = tryLock(lock.get(client, entry.getValue()), blockingMode, deadline);
                 if (log.isDebugEnabled() || isSlowLogEnabled()) {
                     long responseTimeMillis = System.currentTimeMillis() - startTime;
-                    logSlowLockAcquisition(entry.getKey().toString(), currentHolder, responseTimeMillis);
+                    logSlowLockAcquisition(entry.getKey(), currentHolder, responseTimeMillis);
                 }
                 if (currentHolder == null) {
                     locks.put(lock, entry.getValue());
@@ -542,22 +564,25 @@ private void tryLocks(
     }
 
     @VisibleForTesting
-    void logSlowLockAcquisition(String lockId, LockClient currentHolder, long durationMillis) {
+    void logSlowLockAcquisition(LockDescriptor lockDescriptor, LockClient currentHolder, long durationMillis) {
         final String slowLockLogMessage = "Blocked for {} ms to acquire lock {} {}.";
+        final String lockId = lockDescriptor.getLockIdAsString();
 
         // Note: The construction of params is pushed into the branches, as it may be expensive.
         if (isSlowLogEnabled() && durationMillis >= slowLogTriggerMillis) {
             SlowLockLogger.logger.warn(
                     slowLockLogMessage,
                     SafeArg.of("durationMillis", durationMillis),
                     UnsafeArg.of("lockId", lockId),
-                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"));
+                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"),
+                    threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(Set.of(lockDescriptor)));
         } else if (log.isDebugEnabled() && durationMillis > DEBUG_SLOW_LOG_TRIGGER_MILLIS) {
             log.debug(
                     slowLockLogMessage,
                     SafeArg.of("durationMillis", durationMillis),
                     UnsafeArg.of("lockId", lockId),
-                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"));
+                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"),
+                    threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(Set.of(lockDescriptor)));
         }
     }
 
@@ -1217,6 +1242,7 @@ private String safeLockStats() {
     public void close() {
         if (isShutDown.compareAndSet(false, true)) {
             lockReapRunner.close();
+            threadInfoSnapshotManager.close();
             blockingThreads.forEach(Thread::interrupt);
             callOnClose.run();
         }
@@ -1227,6 +1253,10 @@ public long currentTimeMillis() {
         return System.currentTimeMillis();
     }
 
+    public LockThreadInfoSnapshotManager getSnapshotManager() {
+        return threadInfoSnapshotManager;
+    }
+
     private static String updateThreadName(LockRequest request) {
         String currentThreadName = Thread.currentThread().getName();
         tryRenameThread(u}(jq0 (8fe141cc254985903635606c7c4d0fb75eae629bj0 Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javaj0 addedj0 Krj0 K j0 Krj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -0,0 +1,114 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableMap;
+import com.palantir.lock.DebugThreadInfoConfiguration;
+import com.palantir.lock.HeldLocksToken;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.refreshable.Refreshable;
+import java.time.Duration;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.ConcurrentMap;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+
+public class LockThreadInfoSnapshotManager implements AutoCloseable {
+    private static final SafeLogger log = SafeLoggerFactory.get(LockThreadInfoSnapshotManager.class);
+    private final Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration;
+
+    private final Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
+
+    private volatile Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot = ImmutableMap.of();
+
+    private final AdjustableBackgroundTask backgroundTask;
+
+    public LockThreadInfoSnapshotManager(
+            Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration,
+            Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> mapSupplier) {
+        this.threadInfoConfiguration = threadInfoConfiguration;
+        this.tokenMapSupplier = mapSupplier;
+        this.backgroundTask = AdjustableBackgroundTask.create(
+                threadInfoConfiguration.map(DebugThreadInfoConfiguration::recordThreadInfo),
+                threadInfoConfiguration.map(config -> Duration.ofMillis(config.threadInfoSnapshotIntervalMillis())),
+                this::takeSnapshot);
+    }
+
+    @VisibleForTesting
+    Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot() {
+        return lastKnownThreadInfoSnapshot;
+    }
+
+    /**
+     * Returns a consistent snapshot of thread information restricted to the given lock descriptors wrapped in an
+     * unsafe logging argument.
+     */
+    public UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> getRestrictedSnapshotAsOptionalLogArg(
+            Set<LockDescriptor> lockDescriptors) {
+        String argName = "presumedClientThreadHoldersIfEnabled";
+        if (!threadInfoConfiguration.current().recordThreadInfo()) {
+            // Avoids keeping the value alive even though we are never returning it
+            lastKnownThreadInfoSnapshot = Map.of();
+            return UnsafeArg.of(argName, Optional.empty());
+        }
+        Map<LockDescriptor, LockClientAndThread> latestSnapshot = lastKnownThreadInfoSnapshot;
+        Map<LockDescriptor, LockClientAndThread> restrictedSnapshot = new HashMap<>();
+        for (LockDescriptor lock : lockDescriptors) {
+            restrictedSnapshot.put(lock, latestSnapshot.get(lock));
+        }
+        return UnsafeArg.of(argName, Optional.of(restrictedSnapshot));
+    }
+
+    @VisibleForTesting
+    void takeSnapshot() {
+        lastKnownThreadInfoSnapshot = tokenMapSupplier.get().keySet().stream()
+                .flatMap(token -> {
+                    LockClientAndThread clientThread = LockClientAndThread.of(
+                            Objects.requireNonNullElse(token.getClient(), LockClientAndThread.UNKNOWN.client()),
+                            Objects.requireNonNullElse(
+                                    token.getRequestingThread(), LockClientAndThread.UNKNOWN.thread()));
+                    return token.getLockDescriptors().stream()
+                            .map(lockDescriptor -> Map.entry(lockDescriptor, clientThread));
+                })
+                // Although a lock can be held by multiple clients/threads, we only remember one to save space
+                .collect(Collectors.toMap(Entry::getKey, Entry::getValue, (existing, replacement) -> existing));
+
+        log.info(
+                "Took thread info snapshot of {} locks. Next snapshot due in {}ms",
+                SafeArg.of("snapshotSize", lastKnownThreadInfoSnapshot.size()),
+                SafeArg.of(
+                        "snapshotIntervalMillis",
+                        threadInfoConfiguration.current().threadInfoSnapshotIntervalMillis()));
+    }
+
+    @Override
+    public void close() {
+        backgroundTask.close();
+    }
+}u}(jq0 (97ae55956450814bf5146499495e54f469faa960j0 Plock-impl/src/test/java/com/palantir/lock/impl/AdjustableBackgroundTaskTest.javaj0 addedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -0,0 +1,142 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.refreshable.Refreshable;
+import com.palantir.refreshable.SettableRefreshable;
+import java.time.Duration;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.concurrent.atomic.AtomicLong;
+import org.jmock.lib.concurrent.DeterministicScheduler;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class AdjustableBackgroundTaskTest {
+    private static final Duration DEFAULT_INTERVAL = Duration.ofSeconds(10);
+    private final AtomicLong field = new AtomicLong(0);
+    private final AtomicBoolean shouldRun = new AtomicBoolean(false);
+    private final SettableRefreshable<Duration> interval = Refreshable.create(DEFAULT_INTERVAL);
+    private final DeterministicScheduler scheduledExecutor = new DeterministicScheduler();
+    private final AtomicLong numCallsToShouldRunSupplier = new AtomicLong(0);
+    private final AtomicLong numCallsToIntervalSupplier = new AtomicLong(0);
+    private final AdjustableBackgroundTask adjustableBackgroundTask = new AdjustableBackgroundTask(
+            () -> {
+                numCallsToShouldRunSupplier.incrementAndGet();
+                return shouldRun.get();
+            },
+            () -> {
+                numCallsToIntervalSupplier.incrementAndGet();
+                return interval.current();
+            },
+            field::incrementAndGet,
+            scheduledExecutor);
+
+    @BeforeClass
+    public static void testDelayShouldNotExceedMinimumDelay() {
+        // We have to ensure that our default interval is higher than MINIMUM_INTERVAL_IF_NOT_RUNNING
+        // so our tests are actually meaningful
+        assertThat(DEFAULT_INTERVAL).isGreaterThanOrEqualTo(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING);
+    }
+
+    @Test
+    public void doesNotRunTaskDuringConstruction() {
+        assertThat(field.get()).isEqualTo(0);
+    }
+
+    @Test
+    public void doesNotRunTaskByDefault() {
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(0);
+    }
+
+    @Test
+    public void canBeEnabledDisabledAndReEnabled() {
+        shouldRun.set(true);
+        tick(DEFAULT_INTERVAL);
+        long after = field.get();
+        assertThat(after).isEqualTo(1);
+
+        shouldRun.set(false);
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(after);
+
+        shouldRun.set(true);
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(after + 1);
+    }
+
+    @Test
+    public void canAdjustInterval() {
+        Duration newInterval = Duration.ofMinutes(1);
+        interval.update(newInterval);
+        shouldRun.set(true);
+        // initial run was scheduled at default interval
+        tick(DEFAULT_INTERVAL);
+        tick(Duration.ofMinutes(42 - 1));
+        assertThat(field.get()).isEqualTo(42);
+    }
+
+    @Test
+    public void canAdjustIntervalBelowMinimumDelayIfRunning() {
+        Duration newInterval = Duration.ofMillis(1);
+        interval.update(newInterval);
+        shouldRun.set(true);
+        // initial run was scheduled at default interval
+        tick(DEFAULT_INTERVAL);
+        tick(Duration.ofMillis(10 - 1));
+        assertThat(field.get()).isEqualTo(10);
+    }
+
+    @Test
+    public void runsSuppliersAtReducedIntervalIfNotRunning() {
+        Duration newInterval = Duration.ofMillis(1);
+        interval.update(newInterval);
+        Duration elapsedDuration = Duration.ofSeconds(10);
+        // initial run was scheduled at default interval, this will run suppliers once
+        tick(DEFAULT_INTERVAL);
+        tick(elapsedDuration);
+        assertThat(field.get()).isEqualTo(0);
+        // suppliers are also called once when running the constructor
+        assertThat(numCallsToShouldRunSupplier.get())
+                .as("Ensure the number of times we checked if we should run is at most the number of times"
+                        + " MINIMUM_INTERVAL_IF_NOT_RUNNING has elapsed")
+                .isLessThanOrEqualTo(
+                        elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
+        assertThat(numCallsToIntervalSupplier.get())
+                .as("Ensure the number of times we checked at what interval we should run is at most the number of"
+                        + " times MINIMUM_INTERVAL_IF_NOT_RUNNING has elapsed")
+                .isLessThanOrEqualTo(
+                        elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
+    }
+
+    @Test
+    public void suppliersAreCalledTogetherWithTask() {
+        shouldRun.set(true);
+        tick(Duration.ofSeconds(10 * DEFAULT_INTERVAL.toSeconds()));
+        assertThat(field.get()).isEqualTo(10);
+        // suppliers are also called once when running the constructor
+        assertThat(numCallsToShouldRunSupplier.get()).isEqualTo(11);
+        assertThat(numCallsToIntervalSupplier.get()).isEqualTo(11);
+    }
+
+    private void tick(Duration duration) {
+        scheduledExecutor.tick(duration.toMillis(), TimeUnit.MILLISECONDS);
+    }
+}u}(jq0 (aa47bbbffda9b68b9a93e2e31755530993156e4fj0 Glock-impl/src/test/java/com/palantir/lock/impl/LockServiceImplTest.javaj0 modifiedj0 Kj0 Kj0 K%j0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X!  @@ -22,16 +22,21 @@
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.lock.LockClient;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRefreshToken;
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.StringLockDescriptor;
 import com.palantir.lock.client.LockRefreshingLockService;
+import com.palantir.logsafe.UnsafeArg;
 import java.io.IOException;
 import java.util.HashSet;
 import java.util.List;
+import java.util.Map;
+import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.TimeUnit;
@@ -49,6 +54,9 @@
 public final class LockServiceImplTest {
     public static final long SLOW_LOG_TRIGGER_MILLIS = LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS + 10;
     private static final String TEST_LOCKID = "test_lockId";
+    private static final LockDescriptor TEST_LOCK = StringLockDescriptor.of(TEST_LOCKID);
+    private static final UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> THREAD_INFO_SNAPSHOT_ARG =
+            UnsafeArg.of("presumedClientThreadHoldersIfEnabled", Optional.empty());
     private static LockServiceImpl lockServiceWithSlowLogEnabled;
     private static LockServiceImpl lockServiceWithSlowLogDisabled;
 
@@ -94,48 +102,63 @@ public void slowLogShouldNotBeEnabledIfSlowLogTriggerMillisIsSetToZero() {
     @Test
     public void slowLogShouldBeLoggedWhenLockResponseIsSlowButShouldNotBeLoggedAtDebug() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS + 5;
-        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertThat(testLockServiceImplLogger.getLoggingEvents()).isEmpty();
 
         assertThat(testSlowLogger.getLoggingEvents()).hasSize(1);
         assertContainsMatchingLoggingEvent(
                 testSlowLogger.getLoggingEvents(),
-                warn("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                warn(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
     }
 
     @Test
     public void debugLogShouldBeLoggedWhenLockResponseIsSlowButSlowLogIsDisabled() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS + 5;
-        lockServiceWithSlowLogDisabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogDisabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertThat(testLockServiceImplLogger.getLoggingEvents()).hasSize(1);
         assertContainsMatchingLoggingEvent(
                 testLockServiceImplLogger.getLoggingEvents(),
-                debug("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                debug(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }
 
     @Test
     public void debugLogShouldBeLoggedIfLockResponseTimeIsBetweenDebugTriggerTimeAndSlowLogTriggerMillis() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS - 5;
-        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertContainsMatchingLoggingEvent(
                 testLockServiceImplLogger.getLoggingEvents(),
-                debug("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                debug(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        THREAD_INFO_SNAPSHOT_ARG));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }
 
     @Test
     public void debugOrSlowLogShouldNotBeLoggedWhenLockResponseIsNotSlow() {
         lockServiceWithSlowLogEnabled.logSlowLockAcquisition(
-                TEST_LOCKID, LockClient.ANONYMOUS, LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS - 5);
+                TEST_LOCK, LockClient.ANONYMOUS, LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS - 5);
         assertThat(testLockServiceImplLogger.getLoggingEvents()).isEmpty();
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }u}(jq0 (0ff14400f99f0f97c0494b5db923ebce2e42263dj0 Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javaj0 addedj0 MHj0 K j0 MHj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 XP:  @@ -0,0 +1,328 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableSortedMap;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.common.streams.KeyedStream;
+import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
+import com.palantir.lock.LockClient;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.LockMode;
+import com.palantir.lock.LockRequest;
+import com.palantir.lock.LockResponse;
+import com.palantir.lock.LockServerOptions;
+import com.palantir.lock.SimpleTimeDuration;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.logsafe.UnsafeArg;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Future;
+import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.After;
+import org.junit.Test;
+
+public class ThreadInfoLockServiceImplTest {
+    private static final LockDescriptor TEST_LOCK_1 = StringLockDescriptor.of("lock-1");
+    private static final LockDescriptor TEST_LOCK_2 = StringLockDescriptor.of("lock-2");
+    private static final LockDescriptor TEST_LOCK_3 = StringLockDescriptor.of("lock-3");
+
+    private static final String TEST_THREAD_1 = "thread-1";
+    private static final String TEST_THREAD_2 = "thread-2";
+    private static final String TEST_THREAD_3 = "thread-3";
+
+    private static final LockRequest LOCK_1_THREAD_1_WRITE_REQUEST = LockRequest.builder(
+                    ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+            .withCreatingThreadName(TEST_THREAD_1)
+            .build();
+
+    private static final LockClientAndThread ANONYMOUS_TEST_THREAD_1 =
+            LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1);
+
+    private final ExecutorService executor =
+            PTExecutors.newCachedThreadPool(ThreadInfoLockServiceImplTest.class.getName());
+
+    // Disable background snapshotting, invoke explicitly instead
+    private final LockServiceImpl lockService = LockServiceImpl.create(LockServerOptions.builder()
+            .isStandaloneServer(false)
+            .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                    .recordThreadInfo(false)
+                    .build())
+            .build());
+
+    @Test
+    public void initialThreadInfoIsEmpty() {
+        forceSnapshot();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+    }
+
+    @Test
+    public void recordsThreadInfoForLock() throws InterruptedException {
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+    }
+
+    @Test
+    public void recordsThreadInfoForUnlock() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+
+        lockService.unlock(response.getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+    }
+
+    @Test
+    public void recordsThreadInfoForMultipleLocks() throws InterruptedException {
+        int numThreads = 10;
+        int numLocksPerThread = 10;
+
+        List<String> threadNames =
+                IntStream.range(0, numThreads).mapToObj(i -> "test-thread-" + i).collect(Collectors.toList());
+
+        Map<String, Set<LockDescriptor>> locksPerThread = KeyedStream.of(threadNames)
+                .map(threadName -> IntStream.range(0, numLocksPerThread)
+                        .mapToObj(i -> StringLockDescriptor.of("test-lock-" + i + "-from-thread-" + threadName))
+                        .collect(Collectors.toSet()))
+                .collectToMap();
+
+        for (Map.Entry<String, Set<LockDescriptor>> entry : locksPerThread.entrySet()) {
+            LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.copyOf(
+                            entry.getValue().stream().collect(Collectors.toMap(lock -> lock, lock -> LockMode.WRITE))))
+                    .withCreatingThreadName(entry.getKey())
+                    .build();
+            lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest);
+        }
+
+        forceSnapshot();
+
+        locksPerThread.forEach((threadName, lockDescriptors) ->
+                lockDescriptors.forEach(lock -> assertThat(getLatestThreadInfoForLock(lock))
+                        .contains(LockClientAndThread.of(LockClient.ANONYMOUS, threadName))));
+    }
+
+    @Test
+    public void recordsThreadInfoForSharedLock() throws InterruptedException {
+        LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+        LockRequest lockRequest2 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .doNotBlock()
+                .lockAsManyAsPossible()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        LockResponse lockResponse = lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest1);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1).get())
+                .isIn(ANONYMOUS_TEST_THREAD_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+
+        lockService.unlock(lockResponse.getToken());
+
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+    }
+
+    @Test
+    public void doesNotRecordDroppedLocksWithLockAllOrNone() throws InterruptedException {
+        // T2 cannot get lock 1 -> grouping behavior LOCK_ALL_OR_NONE will release lock 2, even though it could have
+        // been locked
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
+                .doNotBlock()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+    }
+
+    @Test
+    public void recordsUnlockAndFreezeForNonAnonymousClient() throws InterruptedException {
+        LockClient client = LockClient.of("non-anonymous-client");
+
+        LockResponse response = lockService.lockWithFullLockResponse(client, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(LockClientAndThread.of(client, TEST_THREAD_1));
+
+        lockService.unlockAndFreeze(response.getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+    }
+
+    @Test
+    public void recordsCorrectStateAfterMultipleOperations() throws Exception {
+        CountDownLatch latch = new CountDownLatch(1);
+
+        // T1 locks 1 exclusively and locks 2 in shared mode
+        LockResponse response1 = lockService.lockWithFullLockResponse(
+                LockClient.ANONYMOUS,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_1)
+                        .build());
+
+        // T2 shouldn't get 1, but locks 3 in exclusive mode,
+        LockResponse response2 = lockService.lockWithFullLockResponse(
+                LockClient.ANONYMOUS,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_3, LockMode.WRITE))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_2)
+                        .build());
+
+        Future<LockResponse> response3 = executor.submit(() -> {
+
+            // T3 will wait at most 5 seconds to lock 1 in exclusive mode and lock 2 in shared mode
+            LockResponse response = lockService.lockWithFullLockResponse(
+                    LockClient.ANONYMOUS,
+                    LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                            .blockForAtMost(SimpleTimeDuration.of(5, TimeUnit.SECONDS))
+                            .lockAsManyAsPossible()
+                            .withCreatingThreadName(TEST_THREAD_3)
+                            .build());
+            latch.countDown();
+            return response;
+        });
+        lockService.unlock(response1.getToken());
+        latch.await();
+
+        forceSnapshot();
+
+        // T1 should hold nothing, T2 holds 3 in exclusive mode, T3 holds 1 in exclusive and 2 in shared mode
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+
+        lockService.unlock(response2.getToken());
+        forceSnapshot();
+
+        // Only T3 should hold locks
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
+                .contains(LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+
+        lockService.unlock(response3.get().getToken());
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isEmpty();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isEmpty();
+    }
+
+    @Test
+    public void refreshDoesNotChangeSnapshot() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+
+        lockService.refreshTokens(List.of(response.getToken()));
+        forceSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
+    }
+
+    @Test
+    public void logArgIsUnsafeAndContainsEmptyOptionalIfNotRecordingThreadInfo() throws InterruptedException {
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+        assertThat(lockService.getSnapshotManager().getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
+                .isEqualTo(UnsafeArg.of("presumedClientThreadHoldersIfEnabled", Optional.empty()));
+    }
+
+    @Test
+    public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() throws InterruptedException {
+        LockServiceImpl lockServiceWithRecordingEnabled = LockServiceImpl.create(LockServerOptions.builder()
+                .isStandaloneServer(false)
+                .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                        .recordThreadInfo(true)
+                        .build())
+                .build());
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
+                .doNotBlock()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockServiceWithRecordingEnabled.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockServiceWithRecordingEnabled.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+
+        lockServiceWithRecordingEnabled.getSnapshotManager().takeSnapshot();
+
+        assertThat(lockServiceWithRecordingEnabled
+                        .getSnapshotManager()
+                        .getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
+                .isEqualTo(UnsafeArg.of(
+                        "presumedClientThreadHoldersIfEnabled",
+                        // Snapshot should be restricted to TEST_LOCK_1
+                        Optional.of(Map.of(TEST_LOCK_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1)))));
+
+        lockServiceWithRecordingEnabled.close();
+    }
+
+    @After
+    public void tearDown() {
+        lockService.close();
+    }
+
+    private void forceSnapshot() {
+        lockService.getSnapshotManager().takeSnapshot();
+    }
+
+    private Optional<LockClientAndThread> getLatestThreadInfoForLock(LockDescriptor lock) {
+        return Optional.ofNullable(lockService
+                .getSnapshotManager()
+                .getLastKnownThreadInfoSnapshot()
+                .get(lock));
+    }
+}u}(jq0 (8c5d010b813c3904a027f75049590aef2a7eb16aj0 %scripts/circle-ci/run-circle-tests.shj0 modifiedj0 Kj0 Kj0 Kj0 {https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/scripts%2Fcircle-ci%2Frun-circle-tests.shj0 zhttps://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/scripts%2Fcircle-ci%2Frun-circle-tests.shj0 https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -2,7 +2,7 @@
 
 set -x
 
-BASE_GRADLE_ARGS="--profile"
+BASE_GRADLE_ARGS="--scan --profile --continue"
 
 function checkDocsBuild {
      pyenv install 3.5.4
@@ -77,12 +77,14 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 # External builds have a 16gb limit.
 if [ "$test_suite_index" -eq "14" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
+elif [ "$test_suite_index" -eq "4" ]; then
+    export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 elif [ "$test_suite_index" -eq "3" ]; then
     export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
     BASE_GRADLE_ARGS+=" --scan --parallel"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
-    BASE_GRADLE_ARGS+=" --scan --parallel"
+    BASE_GRADLE_ARGS+=" --parallel"
 fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64mu}(jq0 (2d3777830cee23df595f18bcd0f7378a07e49ebej0 etimelock-agent/src/main/java/com/palantir/timelock/config/RestrictedTimeLockRuntimeConfiguration.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 Xb  @@ -16,6 +16,7 @@
 
 package com.palantir.timelock.config;
 
+import com.palantir.lock.DebugThreadInfoConfiguration;
 import java.util.Optional;
 
 public class RestrictedTimeLockRuntimeConfiguration extends TimeLockRuntimeConfiguration {
@@ -54,4 +55,9 @@ public TimeLockAdjudicationConfiguration adjudication() {
     public Optional<TsBoundPersisterRuntimeConfiguration> timestampBoundPersistence() {
         return runtime.timestampBoundPersistence();
     }
+
+    @Override
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return runtime.threadInfoConfiguration();
+    }
 }u}(jq0 (d8d2a7c36eb3321b137f488acb279decabb46ac6j0 [timelock-agent/src/main/java/com/palantir/timelock/config/TimeLockRuntimeConfiguration.javaj0 modifiedj0 Kj0 K j0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -20,6 +20,8 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.google.common.base.Preconditions;
+import com.palantir.lock.DebugThreadInfoConfiguration;
+import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
 import com.palantir.logsafe.DoNotLog;
 import java.util.Optional;
 import org.immutables.value.Value;
@@ -78,6 +80,12 @@ public TimeLockAdjudicationConfiguration adjudication() {
     @JsonProperty("timestamp-bound-persistence")
     public abstract Optional<TsBoundPersisterRuntimeConfiguration> timestampBoundPersistence();
 
+    @JsonProperty("debug-thread-info-config")
+    @Value.Default
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    }
+
     @Value.Check
     public void check() {
         Preconditions.checkState(u}(jq0 (a168b555f03c27ec1cf6a6780262110e71867bedj0 Itimelock-agent/src/main/java/com/palantir/timelock/paxos/LockCreator.javaj0 modifiedj0 K	j0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -21,30 +21,32 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.impl.LockServiceImpl;
 import com.palantir.lock.impl.ThreadPooledLockService;
+import com.palantir.refreshable.Refreshable;
 import com.palantir.timelock.config.TimeLockRuntimeConfiguration;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Semaphore;
-import java.util.function.Supplier;
 
 public class LockCreator {
-    private final Supplier<TimeLockRuntimeConfiguration> runtime;
+    private final Refreshable<TimeLockRuntimeConfiguration> runtime;
     private final long blockingTimeoutMs;
     private final Semaphore sharedThreadPool;
     private final ExecutorService sharedExecutor = PTExecutors.newCachedThreadPool(LockServiceImpl.class.getName());
 
-    public LockCreator(Supplier<TimeLockRuntimeConfiguration> runtime, int threadPoolSize, long blockingTimeoutMs) {
+    public LockCreator(Refreshable<TimeLockRuntimeConfiguration> runtime, int threadPoolSize, long blockingTimeoutMs) {
         this.runtime = runtime;
         this.sharedThreadPool = new Semaphore(threadPoolSize);
         this.blockingTimeoutMs = blockingTimeoutMs;
     }
 
     public CloseableLockService createThreadPoolingLockService() {
-        LockServerOptions lockServerOptions = LockServerOptions.builder()
-                .slowLogTriggerMillis(runtime.get().slowLockLogTriggerMillis())
-                .build();
+        Refreshable<LockServerOptions> lockServerOptions = runtime.map(rt -> LockServerOptions.builder()
+                .slowLogTriggerMillis(rt.slowLockLogTriggerMillis())
+                .threadInfoConfiguration(rt.threadInfoConfiguration())
+                .build());
 
         LockServiceImpl rawLockService = LockServiceImpl.create(lockServerOptions, sharedExecutor);
-        CloseableLockService lockService = BlockingTimeLimitedLockService.create(rawLockService, blockingTimeoutMs);
+        CloseableLockService lockService = BlockingTimeLimitedLockService.create(
+                rawLockService, blockingTimeoutMs, rawLockService.getSnapshotManager());
 
         return new ThreadPooledLockService(lockService, -1, sharedThreadPool);
     }u}(jq0 (cba6348015c254aa9ba5c6b6a2f959d6673f27dcj0 btimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockService.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X/
  @@ -32,6 +32,7 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.LockState;
 import com.palantir.lock.SimpleHeldLocksToken;
+import com.palantir.lock.impl.LockThreadInfoSnapshotManager;
 import com.palantir.lock.remoting.BlockingTimeoutException;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
@@ -44,31 +45,45 @@
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.TimeoutException;
+import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import javax.ws.rs.PathParam;
 import org.immutables.value.Value;
 
 public class BlockingTimeLimitedLockService implements CloseableLockService {
     private static final SafeLogger log = SafeLoggerFactory.get(BlockingTimeLimitedLockService.class);
 
+    private static final int MAX_THREADINFO_TO_LOG = 20;
+
     private final CloseableLockService delegate;
     private final TimeLimiter timeLimiter;
     private final long blockingTimeLimitMillis;
 
+    private final LockThreadInfoSnapshotManager threadInfoSnapshotManager;
+
     @VisibleForTesting
     BlockingTimeLimitedLockService(
-            CloseableLockService delegate, TimeLimiter timeLimiter, long blockingTimeLimitMillis) {
+            CloseableLockService delegate,
+            TimeLimiter timeLimiter,
+            long blockingTimeLimitMillis,
+            LockThreadInfoSnapshotManager threadInfoSnapshotManager) {
         this.delegate = delegate;
         this.timeLimiter = timeLimiter;
         this.blockingTimeLimitMillis = blockingTimeLimitMillis;
+        this.threadInfoSnapshotManager = threadInfoSnapshotManager;
     }
 
     public static BlockingTimeLimitedLockService create(
-            CloseableLockService lockService, long blockingTimeLimitMillis) {
+            CloseableLockService lockService,
+            long blockingTimeLimitMillis,
+            LockThreadInfoSnapshotManager threadInfoSnapshotManager) {
         // TODO (jkong): Inject the executor to allow application lifecycle managed executors.
         // Currently maintaining existing behaviour.
         return new BlockingTimeLimitedLockService(
-                lockService, SimpleTimeLimiter.create(PTExecutors.newCachedThreadPool()), blockingTimeLimitMillis);
+                lockService,
+                SimpleTimeLimiter.create(PTExecutors.newCachedThreadPool()),
+                blockingTimeLimitMillis,
+                threadInfoSnapshotManager);
     }
 
     @Nullable
@@ -234,7 +249,11 @@ private BlockingTimeoutException logAndHandleTimeout(LockRequestSpecification sp
                 SafeArg.of("timeoutDurationMillis", blockingTimeLimitMillis),
                 SafeArg.of("method", specification.method()),
                 SafeArg.of("client", specification.client()),
-                UnsafeArg.of("lockRequest", specification.lockRequest()));
+                UnsafeArg.of("lockRequest", specification.lockRequest()),
+                threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(
+                        specification.lockRequest().getLockDescriptors().stream()
+                                .limit(MAX_THREADINFO_TO_LOG)
+                                .collect(Collectors.toSet())));
 
         String errorMessage = String.format(
                 logMessage.replace("{}", "%s"),u      }(jq0 (ba84282c91e1c85c2d25288ffc78e1895ce61edej0 ftimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockServiceTest.javaj0 modifiedj0 Kj0 Kj0 Kj0 https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.javaj0 https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.javaj0 https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.java?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X:  @@ -33,6 +33,7 @@
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.impl.LockThreadInfoSnapshotManager;
 import com.palantir.lock.remoting.BlockingTimeoutException;
 import java.io.IOException;
 import java.util.concurrent.ExecutionException;
@@ -57,6 +58,8 @@ public class BlockingTimeLimitedLockServiceTest {
 
     private final CloseableLockService delegate = mock(CloseableLockService.class);
 
+    private final LockThreadInfoSnapshotManager snapshotManager = mock(LockThreadInfoSnapshotManager.class);
+
     private final BlockingTimeLimitedLockService acceptingService = createService(acceptingLimiter);
     private final BlockingTimeLimitedLockService timingOutService = createService(timingOutLimiter);
     private final BlockingTimeLimitedLockService interruptingService = createService(interruptingLimiter);
@@ -130,6 +133,6 @@ private void verifyCurrentTimeMillisDelegates(BlockingTimeLimitedLockService ser
     }
 
     private BlockingTimeLimitedLockService createService(TimeLimiter limiter) {
-        return new BlockingTimeLimitedLockService(delegate, limiter, BLOCKING_TIME_LIMIT_MILLIS);
+        return new BlockingTimeLimitedLockService(delegate, limiter, BLOCKING_TIME_LIMIT_MILLIS, snapshotManager);
     }
 }u}(jq0 (d3392a1c1b4cebd374d23f72a1c5cd73c77b3bc2j0 
versions.lockj0 modifiedj0 K%j0 K%j0 KJj0 _https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/versions.lockj0 ^https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/versions.lockj0 qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X*+  @@ -10,22 +10,22 @@ com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
 com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c38132bb)
 com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bbb5dd72)
-com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 03bafb2e)
-com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e133df00)
-com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7e1c9da4)
+com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 06bad036)
+com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e233e000)
+com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7f1c9ea4)
 com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2 (4 constraints: 2244332b)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 333f21b0)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6b30665e)
-com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 312bccaf)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6b30665e)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 343f76b0)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6c30915e)
+com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 322bf7af)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6c30915e)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 40197abb)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 41197bbb)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.2 (2 constraints: 251d9309)
-com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9a1c98a6)
+com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9b1c99a6)
 com.fasterxml.jackson.module:jackson-module-blackbird:2.14.2 (1 constraints: b40e625e)
 com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.2 (2 constraints: db2e8469)
 com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 24cec010)
+com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 2dce2620)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -45,7 +45,7 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (23 constraints: a3788bf6)
+com.google.errorprone:error_prone_annotations:2.10.0 (24 constraints: f2947442)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
@@ -67,28 +67,28 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:6.77.0 (5 constraints: ad546073)
-com.palantir.conjure.java:conjure-undertow-annotations:6.77.0 (1 constraints: 4605743b)
-com.palantir.conjure.java:conjure-undertow-lib:6.77.0 (2 constraints: 8d1cfdb0)
+com.palantir.conjure.java:conjure-lib:7.5.0 (5 constraints: cd530c72)
+com.palantir.conjure.java:conjure-undertow-annotations:7.5.0 (1 constraints: 0e051d36)
+com.palantir.conjure.java:conjure-undertow-lib:7.5.0 (2 constraints: 1d1c4081)
 com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 3d696e70)
 com.palantir.conjure.java.api:service-config:2.34.0 (5 constraints: 724d79ca)
 com.palantir.conjure.java.api:ssl-config:2.34.0 (3 constraints: e22a0da5)
-com.palantir.conjure.java.runtime:client-config:7.40.0 (6 constraints: a46bdb28)
-com.palantir.conjure.java.runtime:conjure-java-annotations:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.40.0 (2 constraints: c521007b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.40.0 (6 constraints: 306e1085)
-com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.40.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.40.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.40.0 (1 constraints: c1187e9e)
-com.palantir.conjure.java.runtime:keystores:7.40.0 (3 constraints: 162a3e5f)
-com.palantir.conjure.java.runtime:refresh-utils:7.40.0 (2 constraints: 051e6045)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.77.0 (2 constraints: 7f29c101)
-com.palantir.dialogue:dialogue-blocking-channels:3.77.0 (2 constraints: e12335b4)
-com.palantir.dialogue:dialogue-clients:3.77.0 (1 constraints: 4305623b)
-com.palantir.dialogue:dialogue-core:3.77.0 (3 constraints: 833de5e1)
-com.palantir.dialogue:dialogue-futures:3.77.0 (3 constraints: da3348c0)
-com.palantir.dialogue:dialogue-serde:3.77.0 (3 constraints: c12e6ba4)
-com.palantir.dialogue:dialogue-target:3.77.0 (7 constraints: 9e760764)
+com.palantir.conjure.java.runtime:client-config:7.45.0 (6 constraints: bd6b2133)
+com.palantir.conjure.java.runtime:conjure-java-annotations:7.45.0 (1 constraints: c6188d9e)
+com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.45.0 (2 constraints: ca210f7b)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.45.0 (6 constraints: 3f6ee88e)
+com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.45.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.45.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.45.0 (1 constraints: c6188d9e)
+com.palantir.conjure.java.runtime:keystores:7.45.0 (3 constraints: 202a4c60)
+com.palantir.conjure.java.runtime:refresh-utils:7.45.0 (2 constraints: 0a1e6f45)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.78.0 (2 constraints: 83295d02)
+com.palantir.dialogue:dialogue-blocking-channels:3.78.0 (2 constraints: e32369b4)
+com.palantir.dialogue:dialogue-clients:3.78.0 (1 constraints: 4405653b)
+com.palantir.dialogue:dialogue-core:3.78.0 (3 constraints: 883d62e3)
+com.palantir.dialogue:dialogue-futures:3.78.0 (3 constraints: dd33dac0)
+com.palantir.dialogue:dialogue-serde:3.78.0 (3 constraints: c62e7fa5)
+com.palantir.dialogue:dialogue-target:3.78.0 (7 constraints: a7763c6a)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -98,7 +98,7 @@ com.palantir.goethe:goethe:0.9.0 (1 constraints: 0b050636)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
 com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
-com.palantir.safe-logging:logger:3.2.0 (23 constraints: 4e88492a)
+com.palantir.safe-logging:logger:3.2.0 (24 constraints: 98a4d6fa)
 com.palantir.safe-logging:logger-slf4j:3.2.0 (1 constraints: 000e5942)
 com.palantir.safe-logging:logger-spi:3.2.0 (2 constraints: 0f1e997a)
 com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: f7178aeb)
@@ -108,14 +108,14 @@ com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
 com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 485c7290)
 com.palantir.tracing:tracing:6.17.0 (8 constraints: f97d045e)
 com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 1745b4f5)
-com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 441994bb)
+com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 46199abb)
 com.palantir.tritium:tritium-api:0.64.0 (6 constraints: 5052c7ce)
 com.palantir.tritium:tritium-caffeine:0.64.0 (1 constraints: 3c05433b)
 com.palantir.tritium:tritium-core:0.64.0 (5 constraints: 5d43281d)
 com.palantir.tritium:tritium-lib:0.64.0 (1 constraints: 3c05433b)
-com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f16b49d8)
+com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: f96b65dd)
 com.palantir.tritium:tritium-proxy:0.64.0 (1 constraints: 820e8359)
-com.palantir.tritium:tritium-registry:0.64.0 (12 constraints: f6d27f35)
+com.palantir.tritium:tritium-registry:0.64.0 (13 constraints: 88ef0d92)
 com.palantir.tritium:tritium-slf4j:0.64.0 (2 constraints: bd138370)
 com.palantir.tritium:tritium-time:0.64.0 (1 constraints: 820e8359)
 com.palantir.tritium:tritium-tracing:0.64.0 (1 constraints: 820e8359)
@@ -186,7 +186,7 @@ io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf
 io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
-io.undertow:undertow-core:2.2.24.Final (2 constraints: 361dd006)
+io.undertow:undertow-core:2.2.25.Final (2 constraints: 331dfa06)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
@@ -195,7 +195,7 @@ jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 26793e31)
 jakarta.inject:jakarta.inject-api:1.0.5 (13 constraints: decbc9f9)
 jakarta.servlet:jakarta.servlet-api:4.0.4 (10 constraints: 7b9def70)
 jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
-jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (18 constraints: 5a38d98d)
+jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (17 constraints: 6f283f6d)
 jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.5 (6 constraints: 845987f4)
@@ -313,7 +313,7 @@ org.slf4j:slf4j-api:1.7.36 (44 constraints: 8180995b)
 org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
 org.wildfly.common:wildfly-common:1.6.0.Final (4 constraints: 3f390b3d)
 org.xerial:sqlite-jdbc:3.42.0.0 (1 constraints: 99054946)
-org.xerial.snappy:snappy-java:1.1.8 (2 constraints: 011529cb)
+org.xerial.snappy:snappy-java:1.1.10.1 (2 constraints: 891546f4)
 org.yaml:snakeyaml:1.33 (5 constraints: 0a4c5570)
 
 [Test dependencies]u}(jq0 (04244236509f194bcfe0d83350f2346909da1318j0 versions.propsj0 modifiedj0 Kj0 Kj0 K
j0 `https://github.com/palantir/atlasdb/blob/32ed9251cd01bb5e16851040c1387832846cb395/versions.propsj0 _https://github.com/palantir/atlasdb/raw/32ed9251cd01bb5e16851040c1387832846cb395/versions.propsj0 rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=32ed9251cd01bb5e16851040c1387832846cb395j0 X  @@ -25,9 +25,9 @@ com.palantir.common:streams = 2.1.0
 com.palantir.config.crypto:* = 5.1.0
 com.palantir.conjure.java.api:* = 2.29.0
 com.palantir.conjure.java.runtime:* = 7.39.0
-com.palantir.conjure.java:* = 6.77.0
-com.palantir.conjure:conjure = 4.35.0
-com.palantir.dialogue:* = 3.77.0
+com.palantir.conjure.java:* = 7.5.0
+com.palantir.conjure:conjure = 4.36.0
+com.palantir.dialogue:* = 3.78.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
 com.palantir.goethe:* = 0.9.0
@@ -46,7 +46,7 @@ commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
 io.netty:* = 4.1.90.Final
-io.undertow:* = 2.2.24.Final
+io.undertow:* = 2.2.25.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2
@@ -78,7 +78,7 @@ org.reflections:reflections = 0.10.2
 org.rocksdb:rocksdbjni = 7.9.2
 org.slf4j:* = 1.7.36
 org.wildfly.common:wildfly-common = 1.6.0.Final
-org.xerial.snappy:snappy-java = 1.1.8
+org.xerial.snappy:snappy-java = 1.1.10.1
 org.xerial:sqlite-jdbc = 3.42.0.0
 org.yaml:snakeyaml = 1.33
 uk.org.lidalia:slf4j-test = 1.1.0ueu(93e21c80431d269d5e6ea469a36c4604208d2a82}(sha(93e21c80431d269d5e6ea469a36c4604208d2a82node_idEC_kwDOAjP5fdoAKDkzZTIxYzgwNDMxZDI2OWQ1ZTZlYTQ2OWEzNmM0NjA0MjA4ZDJhODIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-28T10:24:40Zu	committer}(j3 GitHubj3 noreply@github.comj3 2023-02-28T10:24:40Zumessagev[Workload Service] Execution Primitives for Workflows (#6452)

They still don't but there exist primitives to do this!tree}(j3 (2949585a1c6676b39bc7e46ac887ad558fd59865url`https://api.github.com/repos/palantir/atlasdb/git/trees/2949585a1c6676b39bc7e46ac887ad558fd59865uj3 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/93e21c80431d269d5e6ea469a36c4604208d2a82
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJj/dZoCRBK7hj4Ov3rIwAADH0IAFbIGJD1/IbYmbWIuT0R+Fes
G3ZkevGs8Z0e3+Iis5Ayrkyn1Db58PPjHF1igrO/xH/6e5hz11lXXiIkP1DLpjsj
W9acQrEeOG0kw13SwshJFbSgiXoGStnGr4YyBnn46kig56d0Xaip9rXN12Qd/7fU
LX+hWJl5tqpJUEJLD6TXSlaSNnEunhG2fX7SATzG2gz+l49TEG9iNCMqccYzGKjc
9L945FiXSIqc8iTcH7rv/uo9eHL4if6u4Apb8ySayrOeAIj2FI47Qr2ctRjTqiLz
HExi//BOynvOtl/fqeiJA6COFgarY1PFIVyL//Udth2sxU31/Bu/HRDgr+Zz3U8=
=SU+Q
-----END PGP SIGNATURE-----
payloadXF  tree 2949585a1c6676b39bc7e46ac887ad558fd59865
parent f6b8cb8618de006048040488816850120d42c5c6
author Jeremy Kong <jkong@palantir.com> 1677579880 +0000
committer GitHub <noreply@github.com> 1677579880 +0000

[Workload Service] Execution Primitives for Workflows (#6452)

They still don't but there exist primitives to do this!
uuj3 ^https://api.github.com/repos/palantir/atlasdb/commits/93e21c80431d269d5e6ea469a36c4604208d2a82html_urlShttps://github.com/palantir/atlasdb/commit/93e21c80431d269d5e6ea469a36c4604208d2a82comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/93e21c80431d269d5e6ea469a36c4604208d2a82/commentsj3 }(login
jeremyk-91idJZ j3 MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j3 'https://api.github.com/users/jeremyk-91j3 https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj3 }(j3 web-flowj3 J/j3 MDQ6VXNlcjE5ODY0NDQ3j3 4https://avatars.githubusercontent.com/u/19864447?v=4j3 h5j3 %https://api.github.com/users/web-flowj3 https://github.com/web-flowj3 /https://api.github.com/users/web-flow/followersj3 <https://api.github.com/users/web-flow/following{/other_user}j3 5https://api.github.com/users/web-flow/gists{/gist_id}j3 <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 4 3https://api.github.com/users/web-flow/subscriptionsj4 *https://api.github.com/users/web-flow/orgsj4 +https://api.github.com/users/web-flow/reposj4 6https://api.github.com/users/web-flow/events{/privacy}j4 5https://api.github.com/users/web-flow/received_eventsj
4 Userj4 uparents]}(j3 (f6b8cb8618de006048040488816850120d42c5c6j3 ^https://api.github.com/repos/palantir/atlasdb/commits/f6b8cb8618de006048040488816850120d42c5c6j3 Shttps://github.com/palantir/atlasdb/commit/f6b8cb8618de006048040488816850120d42c5c6uastats}(totalMW	additionsML	deletionsKufiles](}(j3 (2b118bc4f5e7a126d5f1b92ff8080413aeb9ff17filenamekatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ReadableTransactionStore.javastatusaddedj&4 Kj'4 K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.java?ref=93e21c80431d269d5e6ea469a36c4604208d2a82patchX  @@ -0,0 +1,31 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import java.util.Optional;
+
+public interface ReadableTransactionStore {
+    /**
+     * Perform a read for a given row and return a cell if it exists.
+     * Ideally this endpoint is only used for verification purposes, as it does not return a witnessed transaction.
+     *
+     * @param table Table to read from
+     * @param cell Cell to read from
+     * @return The value of the cell for a given table.
+     */
+    Optional<Integer> get(String table, WorkloadCell cell);
+}u}(j3 (8d96b166fe052e818ea2430f7bd5ae5fbe29f426j,4 catlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStore.javaj.4 modifiedj&4 Kj'4 Kj04 Kj14 https://github.com/palantir/atlasdb/blob/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.javaj34 https://github.com/palantir/atlasdb/raw/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.javaj54 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.java?ref=93e21c80431d269d5e6ea469a36c4604208d2a82j74 X  @@ -24,17 +24,7 @@
 /**
  * A transactional store for the workload server to read/write from.
  */
-public interface TransactionStore {
-    /**
-     * Perform a read for a given row and return a cell if it exists.
-     * Ideally this endpoint is only used for verification purposes, as it does not return a witnessed transaction.
-     *
-     * @param table Table to read from
-     * @param cell Cell to read from
-     * @return The value of the cell for a given table.
-     */
-    Optional<Integer> get(String table, WorkloadCell cell);
-
+public interface TransactionStore extends ReadableTransactionStore {
     /**
      * Performs a list of transaction actions in order, and returns the transaction executed if it committed
      * successfully.u}(j3 (9891f60d67299ccc96e2e1505697622b429cd956j,4 jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/KeyedTransactionTask.javaj.4 addedj&4 K!j'4 K j04 K!j14 https://github.com/palantir/atlasdb/blob/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.javaj34 https://github.com/palantir/atlasdb/raw/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.javaj54 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.java?ref=93e21c80431d269d5e6ea469a36c4604208d2a82j74 X)  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.Optional;
+import java.util.function.BiFunction;
+
+/**
+ * A task that performs some operations on a {@link TransactionStore}, possibly using the index of the task
+ * as an input, and returns an {@link Optional} of {@link WitnessedTransaction}. Here, "index" refers to an integer
+ * between 0 and the {@link WorkflowConfiguration#iterationCount()} - each copy of the task will receive a different
+ * integer.
+ * If the transaction does not succeed, then the task should return an {@link Optional#empty()}. It should not throw
+ * an exception.
+ */
+@FunctionalInterface
+public interface KeyedTransactionTask extends BiFunction<TransactionStore, Integer, Optional<WitnessedTransaction>> {}u}(j3 (65d3983ff664082fe5b4995c46765f9b36f47deej,4 ^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/Workflow.javaj.4 addedj&4 Kj'4 K j04 Kj14 https://github.com/palantir/atlasdb/blob/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.javaj34 https://github.com/palantir/atlasdb/raw/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.javaj54 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.java?ref=93e21c80431d269d5e6ea469a36c4604208d2a82j74 X  @@ -0,0 +1,27 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+public interface Workflow {
+    /**
+     * Runs desired workflow until completion. Returns {@link WorkflowHistory}, that corresponds to transactions that
+     * were known to be completed.
+     * This list is sorted by ascending "timeline timestamp", which is taken to be the commit timestamp in the case
+     * of read-write transactions, and the start timestamp in the case of read-only transactions.
+     */
+    WorkflowHistory run();
+}u}(j3 (576b587f50efa088836f48de86bb7caa98f2d929j,4 katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowConfiguration.javaj.4 addedj&4 Kj'4 K j04 Kj14 https://github.com/palantir/atlasdb/blob/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj34 https://github.com/palantir/atlasdb/raw/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj54 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.java?ref=93e21c80431d269d5e6ea469a36c4604208d2a82j74 X"  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WorkflowConfiguration {
+    int iterationCount();
+
+    /**
+     * Executor used to execute workload threads (i.e., transactions).
+     */
+    ListeningExecutorService executionExecutor();
+}u}(j3 (30ac5586e83dd518c4cf358a80d611ecbc03a6fbj,4 eatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowHistory.javaj.4 addedj&4 Kj'4 K j04 Kj14 https://github.com/palantir/atlasdb/blob/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javaj34 https://github.com/palantir/atlasdb/raw/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javaj54 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.java?ref=93e21c80431d269d5e6ea469a36c4604208d2a82j74 Xw  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WorkflowHistory {
+    // We may want to query the KVS during verification.
+    ReadableTransactionStore transactionStore();
+
+    List<WitnessedTransaction> history();
+}u}(j3 (3231dd49081481f21492c9af3e913f97038df98aj,4 $atlasdb-workload-server/build.gradlej.4 modifiedj&4 Kj'4 K j04 Kj14 xhttps://github.com/palantir/atlasdb/blob/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server%2Fbuild.gradlej34 whttps://github.com/palantir/atlasdb/raw/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server%2Fbuild.gradlej54 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=93e21c80431d269d5e6ea469a36c4604208d2a82j74 X  @@ -13,7 +13,11 @@ dependencies {
     implementation 'com.palantir.safe-logging:safe-logging'
     implementation 'one.util:streamex'
 
+    testImplementation project(':commons-executors')
     testImplementation 'org.mockito:mockito-core'
+    testImplementation('org.jmock:jmock') {
+        exclude group: 'org.hamcrest'
+    }
 
     annotationProcessor 'org.immutables:value'
     compileOnly 'org.immutables:value::annotations'u}(j3 (b4d783dbb2dd31f37be8e3b44482b52a6583de01j,4 gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/ReadOnlyTransactionStore.javaj.4 addedj&4 K$j'4 K j04 K$j14 https://github.com/palantir/atlasdb/blob/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javaj34 https://github.com/palantir/atlasdb/raw/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javaj54 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.java?ref=93e21c80431d269d5e6ea469a36c4604208d2a82j74 X  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import java.util.Optional;
+
+/**
+ * Facade around {@link ReadableTransactionStore}, to prevent users from casting to retrieve an underlying store that
+ * may implement more functionality.
+ */
+public final class ReadOnlyTransactionStore implements ReadableTransactionStore {
+    private final ReadableTransactionStore delegate;
+
+    public ReadOnlyTransactionStore(ReadableTransactionStore delegate) {
+        this.delegate = delegate;
+    }
+
+    @Override
+    public Optional<Integer> get(String table, WorkloadCell cell) {
+        return delegate.get(table, cell);
+    }
+}u}(j3 (b204272a176a774b133f28a9d6c4aef2b38af775j,4 matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunner.javaj.4 addedj&4 K:j'4 K j04 K:j14 https://github.com/palantir/atlasdb/blob/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javaj34 https://github.com/palantir/atlasdb/raw/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javaj54 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.java?ref=93e21c80431d269d5e6ea469a36c4604208d2a82j74 X
  @@ -0,0 +1,58 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.Future;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+
+public final class ConcurrentTransactionRunner {
+    private final TransactionStore transactionStore;
+    private final ListeningExecutorService listeningExecutorService;
+
+    public ConcurrentTransactionRunner(
+            TransactionStore transactionStore, ListeningExecutorService listeningExecutorService) {
+        this.transactionStore = transactionStore;
+        this.listeningExecutorService = listeningExecutorService;
+    }
+
+    public Future<List<WitnessedTransaction>> runConcurrentTransactionTask(
+            KeyedTransactionTask transactionTask, int taskMultiplicity) {
+        Preconditions.checkArgument(
+                taskMultiplicity >= 0,
+                "Tasks must be run a non-negative number of times",
+                SafeArg.of("providedTaskMultiplicity", taskMultiplicity));
+        List<ListenableFuture<Optional<WitnessedTransaction>>> taskFutures = IntStream.range(0, taskMultiplicity)
+                .mapToObj(
+                        index -> listeningExecutorService.submit(() -> transactionTask.apply(transactionStore, index)))
+                .collect(Collectors.toList());
+        return Futures.transform(
+                Futures.allAsList(taskFutures),
+                outcome -> outcome.stream().flatMap(Optional::stream).collect(Collectors.toList()),
+                MoreExecutors.directExecutor());
+    }
+}u}(j3 (66ec2c1b9a5bc5b64bf7d82f62f0c606e28450f2j,4 aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javaj.4 addedj&4 KXj'4 K j04 KXj14 https://github.com/palantir/atlasdb/blob/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj34 https://github.com/palantir/atlasdb/raw/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj54 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=93e21c80431d269d5e6ea469a36c4604208d2a82j74 Xr  @@ -0,0 +1,88 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.logsafe.exceptions.SafeRuntimeException;
+import java.util.Comparator;
+import java.util.List;
+import java.util.concurrent.ExecutionException;
+import java.util.concurrent.Future;
+import java.util.stream.Collectors;
+
+public final class DefaultWorkflow implements Workflow {
+    private final ConcurrentTransactionRunner concurrentTransactionRunner;
+    private final KeyedTransactionTask transactionTask;
+    private final WorkflowConfiguration workflowConfiguration;
+    private final ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    private DefaultWorkflow(
+            ConcurrentTransactionRunner concurrentTransactionRunner,
+            KeyedTransactionTask transactionTask,
+            WorkflowConfiguration workflowConfiguration,
+            ReadOnlyTransactionStore readOnlyTransactionStore) {
+        this.concurrentTransactionRunner = concurrentTransactionRunner;
+        this.transactionTask = transactionTask;
+        this.workflowConfiguration = workflowConfiguration;
+        this.readOnlyTransactionStore = readOnlyTransactionStore;
+    }
+
+    public static Workflow create(
+            TransactionStore store, KeyedTransactionTask transactionTask, WorkflowConfiguration configuration) {
+        return new DefaultWorkflow(
+                new ConcurrentTransactionRunner(store, configuration.executionExecutor()),
+                transactionTask,
+                configuration,
+                new ReadOnlyTransactionStore(store));
+    }
+
+    @Override
+    public WorkflowHistory run() {
+        return ImmutableWorkflowHistory.builder()
+                .history(sortByEffectiveTimestamp(runTransactionTask()))
+                .transactionStore(readOnlyTransactionStore)
+                .build();
+    }
+
+    private List<WitnessedTransaction> runTransactionTask() {
+        Future<List<WitnessedTransaction>> transactionsFuture =
+                concurrentTransactionRunner.runConcurrentTransactionTask(
+                        transactionTask, workflowConfiguration.iterationCount());
+        try {
+            return transactionsFuture.get();
+        } catch (InterruptedException e) {
+            Thread.currentThread().interrupt();
+            throw new SafeRuntimeException(e);
+        } catch (ExecutionException e) {
+            throw new SafeRuntimeException("Error when running workflow task", e.getCause());
+        }
+    }
+
+    @VisibleForTesting
+    static List<WitnessedTransaction> sortByEffectiveTimestamp(List<WitnessedTransaction> unorderedTransactions) {
+        return unorderedTransactions.stream()
+                .sorted(Comparator.comparingLong(DefaultWorkflow::effectiveTimestamp))
+                .collect(Collectors.toList());
+    }
+
+    private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
+        return witnessedTransaction.commitTimestamp().orElseGet(witnessedTransaction::startTimestamp);
+    }
+}u}(j3 (cee8db449033a3a13c0b2fe1f413db0e41bcf1c1j,4 qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunnerTest.javaj.4 addedj&4 Kj'4 K j04 Kj14 https://github.com/palantir/atlasdb/blob/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj34 https://github.com/palantir/atlasdb/raw/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj54 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.java?ref=93e21c80431d269d5e6ea469a36c4604208d2a82j74 X8  @@ -0,0 +1,132 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.times;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.verifyNoInteractions;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.Future;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.jmock.lib.concurrent.DeterministicScheduler;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ConcurrentTransactionRunnerTest {
+    private static final int DEFAULT_TASK_MULTIPLICITY = 100;
+
+    private final KeyedTransactionTask task = mock(KeyedTransactionTask.class);
+    private final TransactionStore store = mock(TransactionStore.class);
+    private final DeterministicScheduler scheduler = new DeterministicScheduler();
+    private final ListeningExecutorService executorService = MoreExecutors.listeningDecorator(scheduler);
+    private final ConcurrentTransactionRunner runner = new ConcurrentTransactionRunner(store, executorService);
+
+    @Before
+    public void setupTask() {
+        when(task.apply(any(), anyInt()))
+                .thenAnswer(invocation ->
+                        Optional.of(createWitnessedTransactionWithStartTimestamp(invocation.getArgument(1))));
+    }
+
+    @Test
+    public void throwsIfRunningTaskNegativeNumberOfTimes() {
+        assertThatThrownBy(() -> runner.runConcurrentTransactionTask(task, -1))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Tasks must be run a non-negative number of times");
+        verifyNoInteractions(task);
+    }
+
+    @Test
+    public void runsTaskAndAggregatesResults() {
+        Future<List<WitnessedTransaction>> witnessedTransactionsFuture =
+                runner.runConcurrentTransactionTask(task, DEFAULT_TASK_MULTIPLICITY);
+        assertThat(witnessedTransactionsFuture).isNotDone();
+        scheduler.runUntilIdle();
+        assertThat(witnessedTransactionsFuture).isDone();
+        List<WitnessedTransaction> witnessedTransactions = Futures.getUnchecked(witnessedTransactionsFuture);
+        assertThat(witnessedTransactions)
+                .containsExactlyElementsOf(IntStream.range(0, DEFAULT_TASK_MULTIPLICITY)
+                        .mapToObj(ConcurrentTransactionRunnerTest::createWitnessedTransactionWithStartTimestamp)
+                        .collect(Collectors.toList()));
+    }
+
+    @Test
+    public void resultFiltersOutTransactionsThatCouldNotBeWitnessed() {
+        Set<Integer> failingTasks = ImmutableSet.of(3, 7, 11, 27, 41);
+        failingTasks.forEach(
+                failingTask -> when(task.apply(any(), eq(failingTask))).thenReturn(Optional.empty()));
+
+        Future<List<WitnessedTransaction>> witnessedTransactionsFuture =
+                runner.runConcurrentTransactionTask(task, DEFAULT_TASK_MULTIPLICITY);
+        scheduler.runUntilIdle();
+        List<WitnessedTransaction> witnessedTransactions = Futures.getUnchecked(witnessedTransactionsFuture);
+        assertThat(witnessedTransactions)
+                .containsExactlyInAnyOrderElementsOf(IntStream.range(0, DEFAULT_TASK_MULTIPLICITY)
+                        .filter(index -> !failingTasks.contains(index))
+                        .mapToObj(ConcurrentTransactionRunnerTest::createWitnessedTransactionWithStartTimestamp)
+                        .collect(Collectors.toList()));
+    }
+
+    @Test
+    public void aggregatedResultWaitsForIndividuallySlowTransactions() {
+        Future<List<WitnessedTransaction>> witnessedTransactionsFuture =
+                runner.runConcurrentTransactionTask(task, DEFAULT_TASK_MULTIPLICITY);
+        for (int iteration = 0; iteration < DEFAULT_TASK_MULTIPLICITY; iteration++) {
+            assertThat(witnessedTransactionsFuture).isNotDone();
+            scheduler.runNextPendingCommand();
+        }
+        assertThat(witnessedTransactionsFuture).isDone();
+    }
+
+    @Test
+    public void storePassedThroughToIndividualTasks() {
+        when(task.apply(any(), anyInt())).thenAnswer(invocation -> {
+            TransactionStore transactionStore = invocation.getArgument(0);
+            transactionStore.readWrite(ImmutableList.of());
+            return Optional.of(createWitnessedTransactionWithStartTimestamp(invocation.getArgument(1)));
+        });
+        runner.runConcurrentTransactionTask(task, DEFAULT_TASK_MULTIPLICITY);
+        scheduler.runUntilIdle();
+        verify(store, times(DEFAULT_TASK_MULTIPLICITY)).readWrite(ImmutableList.of());
+    }
+
+    private static WitnessedTransaction createWitnessedTransactionWithStartTimestamp(int startTimestamp) {
+        return ImmutableWitnessedTransaction.builder()
+                .startTimestamp(startTimestamp)
+                .build();
+    }
+}u}(j3 (b1d358eeb4d730c38e271a30bf8342dde1c07049j,4 eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javaj.4 addedj&4 Kvj'4 K j04 Kvj14 https://github.com/palantir/atlasdb/blob/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj34 https://github.com/palantir/atlasdb/raw/93e21c80431d269d5e6ea469a36c4604208d2a82/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj54 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=93e21c80431d269d5e6ea469a36c4604208d2a82j74 X  @@ -0,0 +1,118 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.concurrent.ScheduledExecutorService;
+import org.junit.Test;
+
+public class DefaultWorkflowTest {
+    private final TransactionStore store = mock(TransactionStore.class);
+
+    private final KeyedTransactionTask transactionTask = mock(KeyedTransactionTask.class);
+
+    private final ScheduledExecutorService scheduler = PTExecutors.newSingleThreadScheduledExecutor();
+
+    @Test
+    public void handlesExceptionsInUnderlyingTasks() {
+        RuntimeException transactionException = new RuntimeException("boo");
+        when(transactionTask.apply(eq(store), anyInt())).thenThrow(transactionException);
+
+        Workflow workflow = DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2));
+        assertThatThrownBy(workflow::run)
+                .hasMessage("Error when running workflow task")
+                .hasCause(transactionException);
+    }
+
+    @Test
+    public void returnsUnderlyingWitnessedTransactions() {
+        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+
+        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight)))
+                .containsExactly(twoToEight);
+        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(readOnlyAtFive)))
+                .containsExactly(readOnlyAtFive);
+    }
+
+    @Test
+    public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
+        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        WitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
+        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
+                .containsExactly(fourToSix, threeToSeven, twoToEight);
+    }
+
+    @Test
+    public void sortsReadOnlyTransactionsByStartTimestamp() {
+        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        WitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
+
+        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(
+                        ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
+                .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
+    }
+
+    @Test
+    public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
+        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        WitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
+
+        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(
+                        twoToEight, readOnlyAtNine, fourToSix, readOnlyAtFive, readOnlyAtThree, readOnlyAtSeven)))
+                .containsExactly(
+                        readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
+    }
+
+    private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
+        return ImmutableWorkflowConfiguration.builder()
+                .iterationCount(iterationCount)
+                .executionExecutor(MoreExecutors.listeningDecorator(scheduler))
+                .build();
+    }
+
+    private static WitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
+        return ImmutableWitnessedTransaction.builder().startTimestamp(start).build();
+    }
+
+    private static WitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
+        return ImmutableWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+}ueu(bc246025a297d452861f2a39a0653d5943e7760e}(sha(bc246025a297d452861f2a39a0653d5943e7760enode_idEC_kwDOAjP5fdoAKGJjMjQ2MDI1YTI5N2Q0NTI4NjFmMmEzOWEwNjUzZDU5NDNlNzc2MGUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-21T01:20:27Zu	committer}(j4 
Ahmed Alouanej4 aalouane@palantir.comj4 2023-04-21T01:20:27Zumessagewhat about nowtree}(j4 (dcef4e5d0ab62955d09725414e5164851828eccburl`https://api.github.com/repos/palantir/atlasdb/git/trees/dcef4e5d0ab62955d09725414e5164851828eccbuj4 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bc246025a297d452861f2a39a0653d5943e7760e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRB5NwACgkQPlMHVIT1
yhq1rQf/Y8SokGEx/T4PG5r9iPsV98sPOztCJPrR/Yc8IOZQuE1Vaae9sNWkmv6W
gnGdBcR8IWSXo34deFEiLcJMm1d5ezFn/CKIhxHL32/KrNVMsIA8hMtaC4SOv7ib
7s12i71me9u8ljh7MQgRIvjFbIdKyj3DbAgStjPvSPvnx6/Mgk7Gw5OzKYwlR+Rh
CB+ft5RT7pxIgLoUkt5G5CTNQrMFPe7yyKc8tFRVV2NQzHLnyc+UjqQkrlkKRb53
03H6/CBgYupjk+zYo/2Lqwq3RRUjoNq4XCHlSWkXUbimg5dyTBYooTC2Jly3IfcI
Br87c/o+joTBJpgEc3+9ojjVeeJg1w==
=HdUs
-----END PGP SIGNATURE-----payloadtree dcef4e5d0ab62955d09725414e5164851828eccb
parent dabf13a2202e4676abf327f8efe03c56facb08b4
author Ahmed Alouane <aalouane@palantir.com> 1682040027 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682040027 +0100

what about now
uuj4 ^https://api.github.com/repos/palantir/atlasdb/commits/bc246025a297d452861f2a39a0653d5943e7760ehtml_urlShttps://github.com/palantir/atlasdb/commit/bc246025a297d452861f2a39a0653d5943e7760ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bc246025a297d452861f2a39a0653d5943e7760e/commentsj4 }(loginergo14idJj4 MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j4 #https://api.github.com/users/ergo14j4 https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj4 }(j4 ergo14j4 Jj4 MDQ6VXNlcjMwOTAzNzM2j4 4https://avatars.githubusercontent.com/u/30903736?v=4j4 h5j4 #https://api.github.com/users/ergo14j4 https://github.com/ergo14j4 -https://api.github.com/users/ergo14/followersj4 :https://api.github.com/users/ergo14/following{/other_user}j4 3https://api.github.com/users/ergo14/gists{/gist_id}j4 :https://api.github.com/users/ergo14/starred{/owner}{/repo}j4 1https://api.github.com/users/ergo14/subscriptionsj4 (https://api.github.com/users/ergo14/orgsj4 )https://api.github.com/users/ergo14/reposj4 4https://api.github.com/users/ergo14/events{/privacy}j4 3https://api.github.com/users/ergo14/received_eventsj4 Userj4 uparents]}(j4 (dabf13a2202e4676abf327f8efe03c56facb08b4j4 ^https://api.github.com/repos/palantir/atlasdb/commits/dabf13a2202e4676abf327f8efe03c56facb08b4j4 Shttps://github.com/palantir/atlasdb/commit/dabf13a2202e4676abf327f8efe03c56facb08b4uastats}(totalK	additionsK	deletionsKufiles](}(j4 (ebf22475764f0bcc1615d4718573f8bbdb7880d6filename0atlasdb-cassandra-integration-tests/build.gradlestatusmodifiedj4 K j4 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/bc246025a297d452861f2a39a0653d5943e7760e/atlasdb-cassandra-integration-tests%2Fbuild.gradleraw_urlhttps://github.com/palantir/atlasdb/raw/bc246025a297d452861f2a39a0653d5943e7760e/atlasdb-cassandra-integration-tests%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fbuild.gradle?ref=bc246025a297d452861f2a39a0653d5943e7760epatch@@ -53,7 +53,6 @@ task memorySensitiveTest(type: Test) {
 }
 
 test {
-    failFast = true
     exclude '**/CassandraKeyValueServiceSweepTaskRunnerIntegrationTest.class'
 }
 u}(j4 (92430ad0397e159d2c1ea903cea20d5f337d208bj4 atlasdb-ete-tests/build.gradlej4 modifiedj4 K j4 Kj4 Kj 5 rhttps://github.com/palantir/atlasdb/blob/bc246025a297d452861f2a39a0653d5943e7760e/atlasdb-ete-tests%2Fbuild.gradlej5 qhttps://github.com/palantir/atlasdb/raw/bc246025a297d452861f2a39a0653d5943e7760e/atlasdb-ete-tests%2Fbuild.gradlej5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fbuild.gradle?ref=bc246025a297d452861f2a39a0653d5943e7760ej5 X  @@ -107,7 +107,6 @@ task longTest(type: Test) {
 }
 
 task timeLockTest(type: Test) {
-    failFast = true
     dependsOn prepareForEteTests, ':timelock-server-distribution:dockerTag'
     include '**/*TimeLock*.class'
     exclude '**/*TimeLockMigration*.class'u}(j4 (daa3ec06791920880b9fdc44d6a5958475931086j4 %scripts/circle-ci/run-circle-tests.shj4 modifiedj4 Kj4 Kj4 Kj 5 {https://github.com/palantir/atlasdb/blob/bc246025a297d452861f2a39a0653d5943e7760e/scripts%2Fcircle-ci%2Frun-circle-tests.shj5 zhttps://github.com/palantir/atlasdb/raw/bc246025a297d452861f2a39a0653d5943e7760e/scripts%2Fcircle-ci%2Frun-circle-tests.shj5 https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=bc246025a297d452861f2a39a0653d5943e7760ej5 @@ -2,7 +2,7 @@
 
 set -x
 
-BASE_GRADLE_ARGS="--profile --continue"
+BASE_GRADLE_ARGS="--profile"
 
 function checkDocsBuild {
      pyenv install 3.5.4ueu(5a4ca0aaef824c9a392c132670d99c2d33677931}(sha(5a4ca0aaef824c9a392c132670d99c2d33677931node_idEC_kwDOAjP5fdoAKDVhNGNhMGFhZWY4MjRjOWEzOTJjMTMyNjcwZDk5YzJkMzM2Nzc5MzEcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-07-21T18:57:19Zu	committer}(j"5 GitHubj$5 noreply@github.comj&5 2023-07-21T18:57:19ZumessageOptimize sweep write partitioning (#6676)

Optimize sweep write partitioning

Reduce allocations when processing large volumes of writes in sweep by avoiding intermediate collections and performing single passes on partitioning.tree}(j5 (11842d21f499919666e2d253cedf35b7cebd8cd7url`https://api.github.com/repos/palantir/atlasdb/git/trees/11842d21f499919666e2d253cedf35b7cebd8cd7uj25 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5a4ca0aaef824c9a392c132670d99c2d33677931
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkutUPCRBK7hj4Ov3rIwAADBkIAGLBsBc/Qg+KBAzrmSkUKi9+
KVKaqiQQ8uRkJGJnwktj02nkwsutapZKP7aGn8B6sCazSG6iZlmmNlWt0TFjNOVw
x3B5aerkT2yQBaymWmNAyNHU2Zaj0e1QiL2aa+uIiupSwAx5bPnLF6d12WY6UM0R
Ypu7oMdyK92ErhzYa5rkJsURt9UTsvJFCH8eK8vaz+whnbwDGHwx3uDd+3uMFGrq
vkMmtkTVn5mi1EKbQmLKJfNb/jdNIk3Wz2fpiqS+I99FLnmBBrNf59s+KXV7rwsY
DE173RYOxppF/68xhZ7DTur5Srt09J91v+uyL23VKAGxIFhtKAID0ipD665N398=
=JWcE
-----END PGP SIGNATURE-----
payloadX  tree 11842d21f499919666e2d253cedf35b7cebd8cd7
parent ccdd47a65e2c88b87fcd6464a5fec27f710f1146
author David Schlosnagle <davids@palantir.com> 1689965839 -0400
committer GitHub <noreply@github.com> 1689965839 +0000

Optimize sweep write partitioning (#6676)

Optimize sweep write partitioning

Reduce allocations when processing large volumes of writes in sweep by avoiding intermediate collections and performing single passes on partitioning.
uuj25 ^https://api.github.com/repos/palantir/atlasdb/commits/5a4ca0aaef824c9a392c132670d99c2d33677931html_urlShttps://github.com/palantir/atlasdb/commit/5a4ca0aaef824c9a392c132670d99c2d33677931comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5a4ca0aaef824c9a392c132670d99c2d33677931/commentsj 5 }(loginschlosnaidMBj5 MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j25 %https://api.github.com/users/schlosnaj@5 https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers     
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj(5 }(jE5 web-flowjG5 J/j5 MDQ6VXNlcjE5ODY0NDQ3jI5 4https://avatars.githubusercontent.com/u/19864447?v=4jK5 h5j25 %https://api.github.com/users/web-flowj@5 https://github.com/web-flowjN5 /https://api.github.com/users/web-flow/followersjP5 <https://api.github.com/users/web-flow/following{/other_user}jR5 5https://api.github.com/users/web-flow/gists{/gist_id}jT5 <https://api.github.com/users/web-flow/starred{/owner}{/repo}jV5 3https://api.github.com/users/web-flow/subscriptionsjX5 *https://api.github.com/users/web-flow/orgsjZ5 +https://api.github.com/users/web-flow/reposj\5 6https://api.github.com/users/web-flow/events{/privacy}j^5 5https://api.github.com/users/web-flow/received_eventsj`5 Userjb5 uparents]}(j5 (ccdd47a65e2c88b87fcd6464a5fec27f710f1146j25 ^https://api.github.com/repos/palantir/atlasdb/commits/ccdd47a65e2c88b87fcd6464a5fec27f710f1146j@5 Shttps://github.com/palantir/atlasdb/commit/ccdd47a65e2c88b87fcd6464a5fec27f710f1146uastats}(totalKc	additionsKB	deletionsK!ufiles](}(j5 (2f8a21800d40cf1133b80f1dfeb5d0fe9712c6e4filenameUatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/PartitionInfo.javastatusmodifiedj|5 Kj}5 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5a4ca0aaef824c9a392c132670d99c2d33677931/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FPartitionInfo.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5a4ca0aaef824c9a392c132670d99c2d33677931/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FPartitionInfo.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FPartitionInfo.java?ref=5a4ca0aaef824c9a392c132670d99c2d33677931patchX0  @@ -20,14 +20,13 @@
 
 @Value.Immutable
 public interface PartitionInfo {
+    @Value.Parameter
     ShardAndStrategy shardAndStrategy();
 
+    @Value.Parameter
     long timestamp();
 
     static PartitionInfo of(int shard, SweeperStrategy strategy, long timestamp) {
-        return ImmutablePartitionInfo.builder()
-                .shardAndStrategy(ShardAndStrategy.of(shard, strategy))
-                .timestamp(timestamp)
-                .build();
+        return ImmutablePartitionInfo.of(ShardAndStrategy.of(shard, strategy), timestamp);
     }
 }u}(j5 (20af9fe9cf3ce8a1c398fa50ae5885df278e98d9j5 Xatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/ShardAndStrategy.javaj5 modifiedj|5 Kj}5 Kj5 Kj5 https://github.com/palantir/atlasdb/blob/5a4ca0aaef824c9a392c132670d99c2d33677931/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FShardAndStrategy.javaj5 https://github.com/palantir/atlasdb/raw/5a4ca0aaef824c9a392c132670d99c2d33677931/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FShardAndStrategy.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FShardAndStrategy.java?ref=5a4ca0aaef824c9a392c132670d99c2d33677931j5 XU  @@ -22,8 +22,10 @@
 
 @Value.Immutable
 public abstract class ShardAndStrategy {
+    @Value.Parameter
     public abstract int shard();
 
+    @Value.Parameter
     public abstract SweeperStrategy strategy();
 
     public String toText() {
@@ -51,18 +53,15 @@ public boolean isThorough() {
     }
 
     public static ShardAndStrategy of(int shard, SweeperStrategy sweepStrategy) {
-        return ImmutableShardAndStrategy.builder()
-                .shard(shard)
-                .strategy(sweepStrategy)
-                .build();
+        return ImmutableShardAndStrategy.of(shard, sweepStrategy);
     }
 
     public static ShardAndStrategy conservative(int shard) {
-        return ShardAndStrategy.of(shard, SweeperStrategy.CONSERVATIVE);
+        return ImmutableShardAndStrategy.of(shard, SweeperStrategy.CONSERVATIVE);
     }
 
     public static ShardAndStrategy thorough(int shard) {
-        return ShardAndStrategy.of(shard, SweeperStrategy.THOROUGH);
+        return ImmutableShardAndStrategy.of(shard, SweeperStrategy.THOROUGH);
     }
 
     public static ShardAndStrategy nonSweepable() {u}(j5 (914d867ae841df30303a097c21539e62c7f411aej5 Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/SweepQueueTable.javaj5 modifiedj|5 Kj}5 K j5 Kj5 https://github.com/palantir/atlasdb/blob/5a4ca0aaef824c9a392c132670d99c2d33677931/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepQueueTable.javaj5 https://github.com/palantir/atlasdb/raw/5a4ca0aaef824c9a392c132670d99c2d33677931/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepQueueTable.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepQueueTable.java?ref=5a4ca0aaef824c9a392c132670d99c2d33677931j5 X{  @@ -55,6 +55,10 @@ public void enqueue(List<WriteInfo> allWrites) {
     }
 
     private void enqueueFiltered(Map<PartitionInfo, List<WriteInfo>> partitionedWrites) {
+        if (partitionedWrites.isEmpty()) {
+            return;
+        }
+
         Map<Cell, byte[]> referencesToDedicatedCells = new HashMap<>();
         Map<Cell, byte[]> cellsToWrite = new HashMap<>();
 u}(j5 (ac0a8f06091a11835443cd19abb4a3d348a5f781j5 \atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitioner.javaj5 modifiedj|5 K.j}5 Kj5 KEj5 https://github.com/palantir/atlasdb/blob/5a4ca0aaef824c9a392c132670d99c2d33677931/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj5 https://github.com/palantir/atlasdb/raw/5a4ca0aaef824c9a392c132670d99c2d33677931/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj5 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.java?ref=5a4ca0aaef824c9a392c132670d99c2d33677931j5 X  @@ -28,9 +28,12 @@
 import com.palantir.common.base.Throwables;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
-import java.util.Set;
+import java.util.Optional;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 
@@ -54,39 +57,59 @@ public WriteInfoPartitioner(KeyValueService kvs, Supplier<Integer> numShards) {
      * writes according to shard and strategy.
      */
     public Map<PartitionInfo, List<WriteInfo>> filterAndPartition(List<WriteInfo> writes) {
-        return writes.stream().collect(Collectors.groupingBy(WriteInfo::timestamp)).values().stream()
-                .map(this::filterAndPartitionForSingleTimestamp)
-                .map(Map::entrySet)
-                .flatMap(Set::stream)
-                .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
+        if (writes.isEmpty()) {
+            return Map.of();
+        }
+
+        Collection<List<WriteInfo>> partitionedWrites = writes.stream()
+                .collect(Collectors.groupingBy(WriteInfo::timestamp))
+                .values();
+
+        Map<PartitionInfo, List<WriteInfo>> writesPartitionedByTimestamp = new HashMap<>();
+        for (List<WriteInfo> writeInfos : partitionedWrites) {
+            filterAndPartitionForSingleTimestamp(writeInfos)
+                    .forEach((partition, writeInfo) -> writesPartitionedByTimestamp
+                            .computeIfAbsent(partition, _k -> new ArrayList<>())
+                            .addAll(writeInfo));
+        }
+        return writesPartitionedByTimestamp;
     }
 
     private Map<PartitionInfo, List<WriteInfo>> filterAndPartitionForSingleTimestamp(List<WriteInfo> writes) {
-        if (writes.stream().allMatch(writeInfo -> getStrategy(writeInfo) == SweeperStrategy.NON_SWEEPABLE)) {
-            long startTs = writes.stream().findFirst().get().timestamp();
-            return SweepQueueUtils.partitioningForNonSweepable(startTs);
+        if (writes.isEmpty()) {
+            return Map.of();
         }
-        return partitionWritesByShardStrategyTimestamp(writes);
-    }
 
-    private Map<PartitionInfo, List<WriteInfo>> partitionWritesByShardStrategyTimestamp(List<WriteInfo> writes) {
         int shards = numShards.get();
-        return writes.stream()
-                .filter(writeInfo -> getStrategy(writeInfo) != SweeperStrategy.NON_SWEEPABLE)
-                .collect(Collectors.groupingBy(write -> getPartitionInfo(write, shards), Collectors.toList()));
-    }
 
-    private PartitionInfo getPartitionInfo(WriteInfo write, int shards) {
-        return PartitionInfo.of(write.toShard(shards), getStrategy(write), write.timestamp());
+        // Note that we do a single pass over writes to determine their sweep strategy, and only add sweepable write to
+        // sweepablePartitionedWrites map, so when it is empty we consider all writes for that timestamp non-sweepable.
+        Map<PartitionInfo, List<WriteInfo>> sweepablePartitionedWrites = new HashMap<>();
+        for (WriteInfo writeInfo : writes) {
+            SweeperStrategy strategy = getStrategy(writeInfo);
+            if (strategy != SweeperStrategy.NON_SWEEPABLE) {
+                PartitionInfo partition = PartitionInfo.of(writeInfo.toShard(shards), strategy, writeInfo.timestamp());
+                sweepablePartitionedWrites
+                        .computeIfAbsent(partition, _k -> new ArrayList<>())
+                        .add(writeInfo);
+            }
+        }
+
+        if (sweepablePartitionedWrites.isEmpty()) {
+            // All writes for this partition are non-sweepable
+            long startTs = writes.stream().findFirst().orElseThrow().timestamp();
+            return SweepQueueUtils.partitioningForNonSweepable(startTs);
+        }
+        return sweepablePartitionedWrites;
     }
 
     @VisibleForTesting
     SweeperStrategy getStrategy(WriteInfo writeInfo) {
-        return writeInfo
-                .writeRef()
-                .map(WriteReference::tableRef)
-                .map(this::getStrategyForTable)
-                .orElse(SweeperStrategy.NON_SWEEPABLE);
+        Optional<WriteReference> writeReference = writeInfo.writeRef();
+        if (writeReference.isPresent()) {
+            return getStrategyForTable(writeReference.get().tableRef());
+        }
+        return SweeperStrategy.NON_SWEEPABLE;
     }
 
     SweeperStrategy getStrategyForTable(TableReference tableRef) {u}(j5 (529fa046cce7dd2027f9b419812813bb3a2540a8j5 $changelog/@unreleased/pr-6676.v2.ymlj5 addedj|5 Kj}5 K j5 Kj5 |https://github.com/palantir/atlasdb/blob/5a4ca0aaef824c9a392c132670d99c2d33677931/changelog%2F%40unreleased%2Fpr-6676.v2.ymlj5 {https://github.com/palantir/atlasdb/raw/5a4ca0aaef824c9a392c132670d99c2d33677931/changelog%2F%40unreleased%2Fpr-6676.v2.ymlj5 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6676.v2.yml?ref=5a4ca0aaef824c9a392c132670d99c2d33677931j5 XE  @@ -0,0 +1,8 @@
+type: improvement
+improvement:
+  description: |-
+    Optimize sweep write partitioning
+
+    Reduce allocations when processing large volumes of writes in sweep by avoiding intermediate collections and performing single passes on partitioning.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6676ueu(5834e0d171c6c6708ff3ffe3cbc9ec40ff81afe6}(sha(5834e0d171c6c6708ff3ffe3cbc9ec40ff81afe6node_idEC_kwDOAjP5fdoAKDU4MzRlMGQxNzFjNmM2NzA4ZmYzZmZlM2NiYzllYzQwZmY4MWFmZTYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-23T00:58:52Zu	committer}(j5 Jeremy Kongj5 jkong@palantir.comj5 2023-02-23T00:58:52Zumessagebootree}(j5 (8499d5129da8f8fa6b9f79680da27bbfae5f6cb1url`https://api.github.com/repos/palantir/atlasdb/git/trees/8499d5129da8f8fa6b9f79680da27bbfae5f6cb1uj5 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5834e0d171c6c6708ff3ffe3cbc9ec40ff81afe6
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmP2ukwACgkQTLdFKain
zjzzJggApe3PaqsQb6a6gshU369kWCL4Fn9e26B0SsMTaGVJDXoEzcs8QkfOriXo
Iv9IykGZnFYsAX9sndQuoSF4BlDHK1He0qbuXoJEu69zpkuv11okMzFQLe5pgXRh
5ITCsPCH5B+CR/UHuvW5Kfam692NSAA4K1lK9HBo+fp+2s0s9Kj5qWHbOY3xuFtL
ad8cW9Su4mone+WGmIqdaQqZiu8ur19O+sjcH5BVPBT3fiqDpgolDHz+k2aU5BNt
LNbmuKHUHqMJB0fpjbAh6QrDHeCy68Nugit/Ig6Om9GgXtNqBiXwdS/9XhaG7bjI
+JwqonFle10JqzZmg65DgleXyyFVqg==
=Hkbs
-----END PGP SIGNATURE-----payloadtree 8499d5129da8f8fa6b9f79680da27bbfae5f6cb1
parent eb34ad7fc022ab45a6646401cb4c082403f9ea1a
author Jeremy Kong <jkong@palantir.com> 1677113932 +0000
committer Jeremy Kong <jkong@palantir.com> 1677113932 +0000

boo
uuj5 ^https://api.github.com/repos/palantir/atlasdb/commits/5834e0d171c6c6708ff3ffe3cbc9ec40ff81afe6html_urlShttps://github.com/palantir/atlasdb/commit/5834e0d171c6c6708ff3ffe3cbc9ec40ff81afe6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5834e0d171c6c6708ff3ffe3cbc9ec40ff81afe6/commentsj5 }(login
jeremyk-91idJZ j5 MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j5 'https://api.github.com/users/jeremyk-91j5 https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj5 }(j5 
jeremyk-91j5 JZ j5 MDQ6VXNlcjU5NTU1MTA=j5 3https://avatars.githubusercontent.com/u/5955510?v=4j5 h5j5 'https://api.github.com/users/jeremyk-91j5 https://github.com/jeremyk-91j5 1https://api.github.com/users/jeremyk-91/followersj5 >https://api.github.com/users/jeremyk-91/following{/other_user}j5 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j5 >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j5 5https://api.github.com/users/jeremyk-91/subscriptionsj5 ,https://api.github.com/users/jeremyk-91/orgsj5 -https://api.github.com/users/jeremyk-91/reposj5 8https://api.github.com/users/jeremyk-91/events{/privacy}j5 7https://api.github.com/users/jeremyk-91/received_eventsj5 Userj5 uparents]}(j5 (eb34ad7fc022ab45a6646401cb4c082403f9ea1aj5 ^https://api.github.com/repos/palantir/atlasdb/commits/eb34ad7fc022ab45a6646401cb4c082403f9ea1aj5 Shttps://github.com/palantir/atlasdb/commit/eb34ad7fc022ab45a6646401cb4c082403f9ea1auastats}(totalK	additionsK	deletionsKufiles]}(j5 (cc646fd0cce314773da208356c85a7c4a9b98cb5filenamepatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javastatusmodifiedj6 Kj6 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5834e0d171c6c6708ff3ffe3cbc9ec40ff81afe6/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5834e0d171c6c6708ff3ffe3cbc9ec40ff81afe6/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=5834e0d171c6c6708ff3ffe3cbc9ec40ff81afe6patchX  @@ -137,7 +137,7 @@ private static void validateFinalTableState(WorkflowHistory workflowHistory) {
                 .isBetween(0, ITERATION_COUNT);
     }
 
-    private static class ReadValidationVisitor implements WitnessedTransactionActionVisitor<Void> {
+    private static final class ReadValidationVisitor implements WitnessedTransactionActionVisitor<Void> {
         private final WitnessedReadTransactionAction readWitness;
 
         private ReadValidationVisitor(WitnessedReadTransactionAction readWitness) {uau(4d8103a42eb121d301b518817ac4adb6be469268}(sha(4d8103a42eb121d301b518817ac4adb6be469268node_idEC_kwDOAjP5fdoAKDRkODEwM2E0MmViMTIxZDMwMWI1MTg4MTdhYzRhZGI2YmU0NjkyNjgcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-29T09:17:02Zu	committer}(j06 Lucas Meirelesj26 meireles31@msn.comj46 2023-07-29T09:17:02Zumessage
isOk finaltree}(j(6 (e8670250ff74b3acd8cbd2246a5c4d8ee179a483url`https://api.github.com/repos/palantir/atlasdb/git/trees/e8670250ff74b3acd8cbd2246a5c4d8ee179a483uj@6 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4d8103a42eb121d301b518817ac4adb6be469268
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmTE2Q4ACgkQJd22kJ7J
GizUcgf+Ns/E7HshtBu/ug/n4W0OIkHe6KWCuR9GK6yc4NocwxGi9XC/KDlu8FYQ
349IW9PtgbnBxNd6yOsoM+IR6+qhPD8IicnA3Iq+nHsjM+iYIhxH6LUVUJNErB9C
9KsEEMKtn8pPT+c4a71z7E+xYviInFxsSCOMIvHtCeVhXrJ09oX2QjWUuF56Yvt6
R2FDpRafGVvu8DIJAa1i4YFGIeuvxUIf3gtLdlB2zkJ56O8Nnt6dUAHguR0E5Hf+
+G+5rRqf6mXTVnaqMBWP9dvTWnYixhTK0wmgJAZFEoae2BTWmlmIuXV3XjII2IAa
p0AjPhXjed1nVZyjPGM9sgjIEbASfw==
=rOB7
-----END PGP SIGNATURE-----payloadtree e8670250ff74b3acd8cbd2246a5c4d8ee179a483
parent f274e07ff46f1eb2ecd79c56cf4fcc07462ec498
author Lucas Meireles <meireles31@msn.com> 1690622222 +0100
committer Lucas Meireles <meireles31@msn.com> 1690622222 +0100

isOk final
uuj@6 ^https://api.github.com/repos/palantir/atlasdb/commits/4d8103a42eb121d301b518817ac4adb6be469268html_urlShttps://github.com/palantir/atlasdb/commit/4d8103a42eb121d301b518817ac4adb6be469268comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4d8103a42eb121d301b518817ac4adb6be469268/commentsj.6 }(loginLucasIMEidJg j*6 MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j@6 %https://api.github.com/users/LucasIMEjN6 https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj66 }(jS6 LucasIMEjU6 Jg j*6 MDQ6VXNlcjY3ODczMTE=jW6 3https://avatars.githubusercontent.com/u/6787311?v=4jY6 h5j@6 %https://api.github.com/users/LucasIMEjN6 https://github.com/LucasIMEj\6 /https://api.github.com/users/LucasIME/followersj^6 <https://api.github.com/users/LucasIME/following{/other_user}j`6 5https://api.github.com/users/LucasIME/gists{/gist_id}jb6 <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jd6 3https://api.github.com/users/LucasIME/subscriptionsjf6 *https://api.github.com/users/LucasIME/orgsjh6 +https://api.github.com/users/LucasIME/reposjj6 6https://api.github.com/users/LucasIME/events{/privacy}jl6 5https://api.github.com/users/LucasIME/received_eventsjn6 Userjp6 uparents]}(j(6 (f274e07ff46f1eb2ecd79c56cf4fcc07462ec498j@6 ^https://api.github.com/repos/palantir/atlasdb/commits/f274e07ff46f1eb2ecd79c56cf4fcc07462ec498jN6 Shttps://github.com/palantir/atlasdb/commit/f274e07ff46f1eb2ecd79c56cf4fcc07462ec498uastats}(totalK	additionsK	deletionsKufiles]}(j(6 (20f0d7699d959cb5a052f03f07b777e2f50ea858filenameBatlasdb-commons/src/main/java/com/palantir/util/result/Result.javastatusmodifiedj6 Kj6 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/4d8103a42eb121d301b518817ac4adb6be469268/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FResult.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4d8103a42eb121d301b518817ac4adb6be469268/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FResult.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FResult.java?ref=4d8103a42eb121d301b518817ac4adb6be469268patchX  @@ -46,11 +46,11 @@ public E getError() {
         }
     }
 
-    public boolean isOk() {
+    public final boolean isOk() {
         return this instanceof Ok;
     }
 
-    public boolean isErr() {
+    public final boolean isErr() {
         return this instanceof Err;
     }
 uau(8d4ed4c4938648e08afa5fad3ab4db568baff191}(sha(8d4ed4c4938648e08afa5fad3ab4db568baff191node_idEC_kwDOAjP5fdoAKDhkNGVkNGM0OTM4NjQ4ZTA4YWZhNWZhZDNhYjRkYjU2OGJhZmYxOTEcommit}(author}(nameJeremy Kongemailjeremykong@hotmail.comdate2023-04-12T13:44:02Zu	committer}(j6 svc-autoreleasej6 -pd-foundry-infrastructure-notify@palantir.comj6 2023-04-12T13:44:02Zumessage"Autorelease 0.833.0-rc2

[skip ci]tree}(j6 (152b39cfa567cb01c3b930e8a329edae23ac3159url`https://api.github.com/repos/palantir/atlasdb/git/trees/152b39cfa567cb01c3b930e8a329edae23ac3159uj6 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8d4ed4c4938648e08afa5fad3ab4db568baff191
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQ2taMACgkQhbrR8ip7mDDwkQEA2qwGseOBpm+gfkYEDhf+AHw5
wwI87EKk2TH55Pv8m1IBAIiFGtanpucdcw77YEmTS9i7D2M3JTug0Ujxv+0ko+Mz
=4wMb
-----END PGP SIGNATURE-----
payloadX  tree 152b39cfa567cb01c3b930e8a329edae23ac3159
parent 466836feacce4fe660e2fe0cde210ee47a3a4680
author Jeremy Kong <jeremykong@hotmail.com> 1681307042 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1681307042 +0000

Autorelease 0.833.0-rc2

[skip ci]uuj6 ^https://api.github.com/repos/palantir/atlasdb/commits/8d4ed4c4938648e08afa5fad3ab4db568baff191html_urlShttps://github.com/palantir/atlasdb/commit/8d4ed4c4938648e08afa5fad3ab4db568baff191comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8d4ed4c4938648e08afa5fad3ab4db568baff191/commentsj6 }(login
jeremyk-91idJZ j6 MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j6 'https://api.github.com/users/jeremyk-91j6 https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj6 }(j6 svc-autoreleasej6 J(j6 MDQ6VXNlcjUxNzE4MzQ2j6 4https://avatars.githubusercontent.com/u/51718346?v=4j6 h5j6 ,https://api.github.com/users/svc-autoreleasej6 "https://github.com/svc-autoreleasej6 6https://api.github.com/users/svc-autorelease/followersj6 Chttps://api.github.com/users/svc-autorelease/following{/other_user}j6 <https://api.github.com/users/svc-autorelease/gists{/gist_id}j6 Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j6 :https://api.github.com/users/svc-autorelease/subscriptionsj6 1https://api.github.com/users/svc-autorelease/orgsj6 2https://api.github.com/users/svc-autorelease/reposj6 =https://api.github.com/users/svc-autorelease/events{/privacy}j6 <https://api.github.com/users/svc-autorelease/received_eventsj6 Userj6 uparents]}(j6 (466836feacce4fe660e2fe0cde210ee47a3a4680j6 ^https://api.github.com/repos/palantir/atlasdb/commits/466836feacce4fe660e2fe0cde210ee47a3a4680j6 Shttps://github.com/palantir/atlasdb/commit/466836feacce4fe660e2fe0cde210ee47a3a4680uastats}(totalK 	additionsK 	deletionsK ufiles]u(62fa67c07b004a341d13ee8ca6b628aa88801acf}(sha(62fa67c07b004a341d13ee8ca6b628aa88801acfnode_idEC_kwDOAjP5fdoAKDYyZmE2N2MwN2IwMDRhMzQxZDEzZWU4Y2E2YjYyOGFhODg4MDFhY2Ycommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-05-15T14:42:02Zu	committer}(j7 
svc-changelogj7 svc-changelog@palantir.comj7 2023-05-15T14:42:02ZumessageAdd generated changelog entriestree}(j7 (6d35621d849c98dca82c45963da696d20213359eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/6d35621d849c98dca82c45963da696d20213359euj7 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/62fa67c07b004a341d13ee8ca6b628aa88801acf
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmRiRLoJEHYaJX37fAFQAABJrwEAkg78oJjlMh/jzNqS4P9cORMP
WorclGZF0tXXJ5u4zM8A/0+2iEE7l0Io5iO3njJMGxBKfmISa5odOGXE4IFsa9HN
=S79M
-----END PGP SIGNATURE-----payloadX  tree 6d35621d849c98dca82c45963da696d20213359e
parent 02fb003df2a3205b04d4a35ee723c998220e6486
author svc-changelog <svc-changelog@palantir.com> 1684161722 +0000
committer svc-changelog <svc-changelog@palantir.com> 1684161722 +0000

Add generated changelog entriesuuj7 ^https://api.github.com/repos/palantir/atlasdb/commits/62fa67c07b004a341d13ee8ca6b628aa88801acfhtml_urlShttps://github.com/palantir/atlasdb/commit/62fa67c07b004a341d13ee8ca6b628aa88801acfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/62fa67c07b004a341d13ee8ca6b628aa88801acf/commentsj
7 }(login
svc-changelogidJ#j	7 MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j7 *https://api.github.com/users/svc-changelogj-7  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj7 }(j27 
svc-changelogj47 J#j	7 MDQ6VXNlcjg0MDc3NjAzj67 4https://avatars.githubusercontent.com/u/84077603?v=4j87 h5j7 *https://api.github.com/users/svc-changelogj-7  https://github.com/svc-changelogj;7 4https://api.github.com/users/svc-changelog/followersj=7 Ahttps://api.github.com/users/svc-changelog/following{/other_user}j?7 :https://api.github.com/users/svc-changelog/gists{/gist_id}jA7 Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jC7 8https://api.github.com/users/svc-changelog/subscriptionsjE7 /https://api.github.com/users/svc-changelog/orgsjG7 0https://api.github.com/users/svc-changelog/reposjI7 ;https://api.github.com/users/svc-changelog/events{/privacy}jK7 :https://api.github.com/users/svc-changelog/received_eventsjM7 UserjO7 uparents]}(j7 (02fb003df2a3205b04d4a35ee723c998220e6486j7 ^https://api.github.com/repos/palantir/atlasdb/commits/02fb003df2a3205b04d4a35ee723c998220e6486j-7 Shttps://github.com/palantir/atlasdb/commit/02fb003df2a3205b04d4a35ee723c998220e6486uastats}(totalK	additionsK	deletionsK ufiles]}(j7 (c79102e643ab92d38512a931ed6f634fa8ad143ffilename$changelog/@unreleased/pr-6568.v2.ymlstatusaddedji7 Kjj7 K changesKblob_url|https://github.com/palantir/atlasdb/blob/62fa67c07b004a341d13ee8ca6b628aa88801acf/changelog%2F%40unreleased%2Fpr-6568.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/62fa67c07b004a341d13ee8ca6b628aa88801acf/changelog%2F%40unreleased%2Fpr-6568.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6568.v2.yml?ref=62fa67c07b004a341d13ee8ca6b628aa88801acfpatch@@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: Revert "[CBT] Split test into multiple workflows (#6555)"
+  links:
+  - https://github.com/palantir/atlasdb/pull/6568uau(22bcd4b6ce6d785ef3d1b5da2b9a38f0086c581f}(sha(22bcd4b6ce6d785ef3d1b5da2b9a38f0086c581fnode_idEC_kwDOAjP5fdoAKDIyYmNkNGI2Y2U2ZDc4NWVmM2QxYjVkYTJiOWEzOGYwMDg2YzU4MWYcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-07-14T13:44:34Zu	committer}(j7 svc-autoreleasej7 -pd-foundry-infrastructure-notify@palantir.comj7 2023-07-14T13:44:34ZumessageAutorelease 0.895.0

[skip ci]tree}(j~7 (7dc7692422ef58be951bebce162bead74f80ad12url`https://api.github.com/repos/palantir/atlasdb/git/trees/7dc7692422ef58be951bebce162bead74f80ad12uj7 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/22bcd4b6ce6d785ef3d1b5da2b9a38f0086c581f
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmSxUUkACgkQhbrR8ip7mDDXtwEA0Cwb7PcEbSGkpaU/PUgUxDde
uiRDMMiSUMFygI04G9ABAKhGld+R2YEFH6+Cq2BTkAMMkfdf27r7jdXF+0hcng3o
=49xx
-----END PGP SIGNATURE-----
payloadX0  tree 7dc7692422ef58be951bebce162bead74f80ad12
parent 63ae4d4b50ff7ced1876fe3e8ff446cd96f0f6a9
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1689342274 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1689342274 +0000

Autorelease 0.895.0

[skip ci]uuj7 ^https://api.github.com/repos/palantir/atlasdb/commits/22bcd4b6ce6d785ef3d1b5da2b9a38f0086c581fhtml_urlShttps://github.com/palantir/atlasdb/commit/22bcd4b6ce6d785ef3d1b5da2b9a38f0086c581fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/22bcd4b6ce6d785ef3d1b5da2b9a38f0086c581f/commentsj7 }(loginsvc-autoreleaseidJ(j7 MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j7 ,https://api.github.com/users/svc-autoreleasej7 "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj7 }(j7 svc-autoreleasej7 J(j7 MDQ6VXNlcjUxNzE4MzQ2j7 4https://avatars.githubusercontent.com/u/51718346?v=4j7 h5j7 ,https://api.github.com/users/svc-autoreleasej7 "https://github.com/svc-autoreleasej7 6https://api.github.com/users/svc-autorelease/followersj7 Chttps://api.github.com/users/svc-autorelease/following{/other_user}j7 <https://api.github.com/users/svc-autorelease/gists{/gist_id}j7 Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j7 :https://api.github.com/users/svc-autorelease/subscriptionsj7 1https://api.github.com/users/svc-autorelease/orgsj7 2https://api.github.com/users/svc-autorelease/reposj7 =https://api.github.com/users/svc-autorelease/events{/privacy}j7 <https://api.github.com/users/svc-autorelease/received_eventsj7 Userj7 uparents]}(j~7 (63ae4d4b50ff7ced1876fe3e8ff446cd96f0f6a9j7 ^https://api.github.com/repos/palantir/atlasdb/commits/63ae4d4b50ff7ced1876fe3e8ff446cd96f0f6a9j7 Shttps://github.com/palantir/atlasdb/commit/63ae4d4b50ff7ced1876fe3e8ff446cd96f0f6a9uastats}(totalK 	additionsK 	deletionsK ufiles](}(j~7 (33a2a2d54d648f18cdab6d3f0ba9dad15dbe0a2ffilename changelog/0.895.0/pr-6642.v2.ymlstatusrenamedj7 K j7 K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/22bcd4b6ce6d785ef3d1b5da2b9a38f0086c581f/changelog%2F0.895.0%2Fpr-6642.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/22bcd4b6ce6d785ef3d1b5da2b9a38f0086c581f/changelog%2F0.895.0%2Fpr-6642.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.895.0%2Fpr-6642.v2.yml?ref=22bcd4b6ce6d785ef3d1b5da2b9a38f0086c581fprevious_filename$changelog/@unreleased/pr-6642.v2.ymlu}(j~7 (ff9f08f8e6f43315a79a74fdf43e11f2070b6d9fj7  changelog/0.895.0/pr-6666.v2.ymlj7 renamedj7 K j7 K j7 K j7 vhttps://github.com/palantir/atlasdb/blob/22bcd4b6ce6d785ef3d1b5da2b9a38f0086c581f/changelog%2F0.895.0%2Fpr-6666.v2.ymlj7 uhttps://github.com/palantir/atlasdb/raw/22bcd4b6ce6d785ef3d1b5da2b9a38f0086c581f/changelog%2F0.895.0%2Fpr-6666.v2.ymlj7 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.895.0%2Fpr-6666.v2.yml?ref=22bcd4b6ce6d785ef3d1b5da2b9a38f0086c581fj7 $changelog/@unreleased/pr-6666.v2.ymlueu(2e50d9b77833ff873946f59cc5c1426f5a6dec50}(sha(2e50d9b77833ff873946f59cc5c1426f5a6dec50node_idEC_kwDOAjP5fdoAKDJlNTBkOWI3NzgzM2ZmODczOTQ2ZjU5Y2M1YzE0MjZmNWE2ZGVjNTAcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-05T11:02:44Zu	committer}(j8 Jeremy Kongj8 jkong@palantir.comj	8 2023-06-05T11:02:44Zumessagerange query managertree}(j7 (61c0474391d74956e56e7d64dfb7356c09e4c527url`https://api.github.com/repos/palantir/atlasdb/git/trees/61c0474391d74956e56e7d64dfb7356c09e4c527uj8 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2e50d9b77833ff873946f59cc5c1426f5a6dec50
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR9wNUACgkQTLdFKain
zjzGYAgAhLCp4z+6SxKYOgZirNELiaLLHKSslJjD8Xr9bXE73/0HKPcRKOF418qb
m+D2Uj8o3JX/pwFfZmutyR7aBFuBp3nqaBuVyAW/Jy9alflrvDn/ABKKySiXxdA8
92hhJuWrA1PDe5QBPfz44ZAaajTAqe3TDKfxh2mYeKecOQWldLLu2CgfHsDICjjj
YcQVxCFUiFJW7QjwV4lFcx8nT12k1DqWNuu4Ro3314Bc6kl7sDhlJJ63OE/AaOJr
I/lhfzM1i3efuEB0EwPwF7eK7qLiOQNPdJnXwBOVTc4Zr2RWJMwMm+cl3H16wquU
NHlBWmNh1iThPJUazbtNEJxCmbyfnQ==
=MOWp
-----END PGP SIGNATURE-----payloadtree 61c0474391d74956e56e7d64dfb7356c09e4c527
parent df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3c
author Jeremy Kong <jkong@palantir.com> 1685962964 +0100
committer Jeremy Kong <jkong@palantir.com> 1685962964 +0100

range query manager
uuj8 ^https://api.github.com/repos/palantir/atlasdb/commits/2e50d9b77833ff873946f59cc5c1426f5a6dec50html_urlShttps://github.com/palantir/atlasdb/commit/2e50d9b77833ff873946f59cc5c1426f5a6dec50comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2e50d9b77833ff873946f59cc5c1426f5a6dec50/commentsj8 }(login
jeremyk-91idJZ j7 MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j8 'https://api.github.com/users/jeremyk-91j#8 https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj8 }(j(8 
jeremyk-91j*8 JZ j7 MDQ6VXNlcjU5NTU1MTA=j,8 3https://avatars.githubusercontent.com/u/5955510?v=4j.8 h5j8 'https://api.github.com/users/jeremyk-91j#8 https://github.com/jeremyk-91j18 1https://api.github.com/users/jeremyk-91/followersj38 >https://api.github.com/users/jeremyk-91/following{/other_user}j58 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j78 >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j98 5https://api.github.com/users/jeremyk-91/subscriptionsj;8 ,https://api.github.com/users/jeremyk-91/orgsj=8 -https://api.github.com/users/jeremyk-91/reposj?8 8https://api.github.com/users/jeremyk-91/events{/privacy}jA8 7https://api.github.com/users/jeremyk-91/received_eventsjC8 UserjE8 uparents]}(j7 (df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cj8 ^https://api.github.com/repos/palantir/atlasdb/commits/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cj#8 Shttps://github.com/palantir/atlasdb/commit/df3d78d1e0a9b9ed1662dd0ce2a961c9495d2b3cuastats}(totalM	additionsM	deletionsKufiles](}(j7 (1603ecb379ba907ce9f1870dfbadb5850cff2de2filenameoatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/WorkloadColumnRangeSelection.javastatusmodifiedj_8 Kj`8 K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/2e50d9b77833ff873946f59cc5c1426f5a6dec50/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FWorkloadColumnRangeSelection.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2e50d9b77833ff873946f59cc5c1426f5a6dec50/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FWorkloadColumnRangeSelection.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FWorkloadColumnRangeSelection.java?ref=2e50d9b77833ff873946f59cc5c1426f5a6dec50patchX  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.store;
 
+import com.google.common.collect.Range;
 import java.util.Optional;
 import org.immutables.value.Value;
 
@@ -24,4 +25,29 @@ public interface WorkloadColumnRangeSelection {
     Optional<Integer> startColumnInclusive();
 
     Optional<Integer> endColumnExclusive();
+
+    default boolean contains(int column) {
+        return asGuavaRange().contains(column);
+    }
+
+    default Range<Integer> asGuavaRange() {
+        if (startColumnInclusive().isEmpty()) {
+            if (endColumnExclusive().isEmpty()) {
+                return Range.all();
+            } else {
+                return Range.lessThan(endColumnExclusive().get());
+            }
+        } else {
+            if (endColumnExclusive().isEmpty()) {
+                return Range.atLeast(startColumnInclusive().get());
+            } else {
+                return Range.closedOpen(
+                        startColumnInclusive().get(), endColumnExclusive().get());
+            }
+        }
+    }
+
+    static ImmutableWorkloadColumnRangeSelection.Builder builder() {
+        return ImmutableWorkloadColumnRangeSelection.builder();
+    }
 }u}(j7 (6384b9d61b50040369584e3bb2015f8c7170b2b1je8 $atlasdb-workload-server/build.gradlejg8 modifiedj_8 Kj`8 K ji8 Kjj8 xhttps://github.com/palantir/atlasdb/blob/2e50d9b77833ff873946f59cc5c1426f5a6dec50/atlasdb-workload-server%2Fbuild.gradlejl8 whttps://github.com/palantir/atlasdb/raw/2e50d9b77833ff873946f59cc5c1426f5a6dec50/atlasdb-workload-server%2Fbuild.gradlejn8 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=2e50d9b77833ff873946f59cc5c1426f5a6dec50jp8 X	  @@ -30,6 +30,7 @@ dependencies {
     testImplementation('org.jmock:jmock') {
         exclude group: 'org.hamcrest'
     }
+    testImplementation 'io.vavr:vavr'
 
     annotationProcessor 'org.immutables:value'
     compileOnly 'org.immutables:value::annotations'u}(j7 (6c75c2dab016a2d263bd6be26f53704263ac9cb7je8 matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/RowColumnRangeQueryManager.javajg8 addedj_8 Kj`8 K ji8 Kjj8 https://github.com/palantir/atlasdb/blob/2e50d9b77833ff873946f59cc5c1426f5a6dec50/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FRowColumnRangeQueryManager.javajl8 https://github.com/palantir/atlasdb/raw/2e50d9b77833ff873946f59cc5c1426f5a6dec50/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FRowColumnRangeQueryManager.javajn8 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FRowColumnRangeQueryManager.java?ref=2e50d9b77833ff873946f59cc5c1426f5a6dec50jp8 X   @@ -0,0 +1,172 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeIteratorCreationTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeReadTransactionAction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import io.vavr.Tuple2;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.HashMultimap;
+import io.vavr.collection.HashSet;
+import io.vavr.collection.Map;
+import io.vavr.collection.Multimap;
+import io.vavr.collection.Set;
+import io.vavr.collection.Traversable;
+import io.vavr.control.Option;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.UUID;
+import javax.annotation.concurrent.NotThreadSafe;
+import org.immutables.value.Value;
+
+/**
+ * The lifecycle of a row column range query looks as follows:
+ * <ol>
+ *     <li>The range query is <b>created</b>.</li>
+ *     <li>One or more cells are <b>read</b> from the range query</li>
+ *     <li>The iterator returned has been <b>exhausted</b>; all cells in the range have been read, OR</li>
+ *     <li>The iterator is <b>invalidated</b> because of a concurrent modification; we do not make guarantees in
+ *     this case.</li>
+ * </ol>
+ * While the AtlasDB and Workload Server APIs support getRowsColumnRange with multiple rows, we consider the validation
+ * of each of these rows separately.
+ * <p>
+ * This implementation does NOT scale in the number of active range queries (one could improve asymptotic performance
+ * by using an interval or segment tree for the row-level backing storage). It is intended to be used for workflow
+ * verification only.
+ */
+@NotThreadSafe
+public final class RowColumnRangeQueryManager {
+    private final StructureHolder<Map<String, SingleTableLiveQueries>> queriesByTable;
+
+    @VisibleForTesting
+    RowColumnRangeQueryManager(StructureHolder<Map<String, SingleTableLiveQueries>> queriesByTable) {
+        this.queriesByTable = queriesByTable;
+    }
+
+    public static RowColumnRangeQueryManager create() {
+        return new RowColumnRangeQueryManager(StructureHolder.create(HashMap::empty));
+    }
+
+    public void invalidateOverlappingQueries(WitnessedWriteTransactionAction witnessedWriteTransactionAction) {
+        invalidateOverlappingQueries(witnessedWriteTransactionAction.table(), witnessedWriteTransactionAction.cell());
+    }
+
+    public void invalidateOverlappingQueries(WitnessedDeleteTransactionAction witnessedDeleteTransactionAction) {
+        invalidateOverlappingQueries(witnessedDeleteTransactionAction.table(), witnessedDeleteTransactionAction.cell());
+    }
+
+    private void invalidateOverlappingQueries(String table, WorkloadCell cell) {
+        Map<String, SingleTableLiveQueries> snapshot = queriesByTable.getSnapshot();
+        if (!snapshot.containsKey(table)) {
+            return;
+        }
+        SingleTableLiveQueries liveQueries = snapshot.get(table)
+                .getOrElseThrow(() -> new SafeIllegalStateException(
+                        "The table not being present should be handled above", SafeArg.of("table", table)));
+        liveQueries.invalidateOverlappingQueries(cell);
+    }
+
+    public void trackQueryCreation(WitnessedRowsColumnRangeIteratorCreationTransactionAction witness) {
+        queriesByTable.with(map -> {
+            Tuple2<SingleTableLiveQueries, ? extends Map<String, SingleTableLiveQueries>> queriesAndPossiblyUpdatedMap =
+                    map.computeIfAbsent(
+                            witness.originalAction().table(),
+                            unused -> new SingleTableLiveQueries(StructureHolder.create(
+                                    () -> HashMultimap.withSeq().empty())));
+            queriesAndPossiblyUpdatedMap._1().trackQueryCreation(witness);
+            return queriesAndPossiblyUpdatedMap._2();
+        });
+    }
+
+    /**
+     * Returns the live query state corresponding to a given read transaction action, or optional if we no longer
+     * are holding any validation for that read transaction action to be reasonable.
+     */
+    public Optional<RowColumnRangeQueryState> getLiveQueryState(
+            WitnessedRowsColumnRangeReadTransactionAction readTransactionAction) {
+        return queriesByTable
+                .getSnapshot()
+                .get(readTransactionAction.table())
+                .flatMap(liveQueries -> liveQueries.getLiveQueryState(readTransactionAction))
+                .toJavaOptional();
+    }
+
+    @VisibleForTesting
+    static final class SingleTableLiveQueries {
+        private final StructureHolder<Multimap<Integer, RowColumnRangeQueryState>> queriesByRow;
+
+        private SingleTableLiveQueries(StructureHolder<Multimap<Integer, RowColumnRangeQueryState>> queriesByRow) {
+            this.queriesByRow = queriesByRow;
+        }
+
+        public void invalidateOverlappingQueries(WorkloadCell cell) {
+            queriesByRow.with(map -> {
+                Option<Traversable<RowColumnRangeQueryState>> maybeRowColumnRangeQueryStates = map.get(cell.key());
+                if (maybeRowColumnRangeQueryStates.isDefined()) {
+                    Set<RowColumnRangeQueryState> invalidatedQueries =
+                            HashSet.ofAll(maybeRowColumnRangeQueryStates.get().filter(queryState -> queryState
+                                    .workloadColumnRangeSelection()
+                                    .contains(cell.column())));
+                    return map.filter((row, queryState) ->
+                            !Objects.equals(row, cell.key()) || !invalidatedQueries.contains(queryState));
+                } else {
+                    // Do nothing: there are no live queries in this row.
+                    return map;
+                }
+            });
+        }
+
+        public void trackQueryCreation(WitnessedRowsColumnRangeIteratorCreationTransactionAction witness) {
+            queriesByRow.with(map -> map.put(
+                    witness.specificRow(),
+                    ImmutableRowColumnRangeQueryState.builder()
+                            .iteratorId(witness.iteratorIdentifier())
+                            .workloadColumnRangeSelection(
+                                    witness.originalAction().batchColumnRangeSelection())
+                            .build()));
+        }
+
+        public Option<RowColumnRangeQueryState> getLiveQueryState(
+                WitnessedRowsColumnRangeReadTransactionAction readTransactionAction) {
+            return queriesByRow
+                    .getSnapshot()
+                    .get(readTransactionAction.specificRow())
+                    .flatMap(queryStates -> queryStates.find(queryState ->
+                            Objects.equals(queryState.iteratorId(), readTransactionAction.iteratorIdentifier())));
+        }
+    }
+
+    @Value.Immutable
+    interface RowColumnRangeQueryState {
+        UUID iteratorId();
+
+        WorkloadColumnRangeSelection workloadColumnRangeSelection();
+
+        // State used to check reads
+
+        Optional<WorkloadCell> lastReadCell();
+    }
+}u}(j7 (667a0f686943552b1dbebdf917ffa7ba970a9d9bje8 hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javajg8 modifiedj_8 Kj`8 Kji8 K
jj8 https://github.com/palantir/atlasdb/blob/2e50d9b77833ff873946f59cc5c1426f5a6dec50/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajl8 https://github.com/palantir/atlasdb/raw/2e50d9b77833ff873946f59cc5c1426f5a6dec50/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajn8 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=2e50d9b77833ff873946f59cc5c1426f5a6dec50jp8 XX	  @@ -63,6 +63,7 @@ private static final class SerializableInvariantVisitor
             implements WitnessedTransactionActionVisitor<List<InvalidWitnessedTransactionAction>> {
 
         private final InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        private final RowColumnRangeQueryManager rowColumnRangeQueryManager = RowColumnRangeQueryManager.create();
 
         @Override
         public List<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
@@ -83,28 +84,30 @@ public List<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAct
         @Override
         public List<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
             inMemoryTransactionReplayer.visit(writeTransactionAction);
+            rowColumnRangeQueryManager.invalidateOverlappingQueries(writeTransactionAction);
             return ImmutableList.of();
         }
 
         @Override
         public List<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
             inMemoryTransactionReplayer.visit(deleteTransactionAction);
+            rowColumnRangeQueryManager.invalidateOverlappingQueries(deleteTransactionAction);
             return ImmutableList.of();
         }
 
         @Override
         public List<InvalidWitnessedTransactionAction> visit(
-                WitnessedRowsColumnRangeReadTransactionAction rowsColumnRangeReadTransactionAction) {
-            // TODO (jkong): Not implemented yet
+                WitnessedRowsColumnRangeIteratorCreationTransactionAction
+                        rowsColumnRangeIteratorCreationTransactionAction) {
+            rowColumnRangeQueryManager.trackQueryCreation(rowsColumnRangeIteratorCreationTransactionAction);
             return ImmutableList.of();
         }
 
         @Override
         public List<InvalidWitnessedTransactionAction> visit(
-                WitnessedRowsColumnRangeIteratorCreationTransactionAction
-                        rowsColumnRangeIteratorCreationTransactionAction) {
+                WitnessedRowsColumnRangeReadTransactionAction rowsColumnRangeReadTransactionAction) {
             // TODO (jkong): Not implemented yet
-            return null;
+            return ImmutableList.of();
         }
     }
 }u}(j7 (7cd1865b37645a14d4da38b25fb7fc83986af93eje8 patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/RowColumnRangeReadIterationContext.javajg8 modifiedj_8 Kj`8 Kji8 K	jj8 https://github.com/palantir/atlasdb/blob/2e50d9b77833ff873946f59cc5c1426f5a6dec50/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FRowColumnRangeReadIterationContext.javajl8 https://github.com/palantir/atlasdb/raw/2e50d9b77833ff873946f59cc5c1426f5a6dec50/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FRowColumnRangeReadIterationContext.javajn8 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FRowColumnRangeReadIterationContext.java?ref=2e50d9b77833ff873946f59cc5c1426f5a6dec50jp8 X  @@ -16,13 +16,20 @@
 
 package com.palantir.atlasdb.workload.util;
 
+import java.util.UUID;
 import org.immutables.value.Value;
 
 @Value.Immutable
 public interface RowColumnRangeReadIterationContext extends RangeIterationContext {
+    @Override
+    @Value.Default
+    default UUID iteratorIdentifier() {
+        return UuidGenerator.randomUUID();
+    }
+
     int specificRow();
 
     static ImmutableRowColumnRangeReadIterationContext.Builder builder() {
-        return ImmutableRowColumnRangeReadIterationContext.builder().iteratorIdentifier(UuidGenerator.randomUUID());
+        return ImmutableRowColumnRangeReadIterationContext.builder();
     }
 }u}(j7 (e52c765b7d9c10e73237e6642530f36c79db360aje8 qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/RowColumnRangeQueryManagerTest.javajg8 addedj_8 Kj`8 K ji8 Kjj8 https://github.com/palantir/atlasdb/blob/2e50d9b77833ff873946f59cc5c1426f5a6dec50/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FRowColumnRangeQueryManagerTest.javajl8 https://github.com/palantir/atlasdb/raw/2e50d9b77833ff873946f59cc5c1426f5a6dec50/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FRowColumnRangeQueryManagerTest.javajn8 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FRowColumnRangeQueryManagerTest.java?ref=2e50d9b77833ff873946f59cc5c1426f5a6dec50jp8 X6  @@ -0,0 +1,247 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.invariant.RowColumnRangeQueryManager.RowColumnRangeQueryState;
+import com.palantir.atlasdb.workload.invariant.RowColumnRangeQueryManager.SingleTableLiveQueries;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowsColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeIteratorCreationTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.range.WitnessedRowsColumnRangeReadTransactionAction;
+import com.palantir.logsafe.exceptions.SafeRuntimeException;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.Optional;
+import java.util.UUID;
+import org.junit.Test;
+
+public class RowColumnRangeQueryManagerTest {
+    private static final int ROW_1 = 5;
+    private static final int ROW_2 = 8;
+    private static final int START_COLUMN_1 = 10;
+    private static final int START_COLUMN_2 = 30;
+    private static final RowsColumnRangeReadTransactionAction READ_TRANSACTION_ACTION_1 =
+            RowsColumnRangeReadTransactionAction.builder()
+                    .addRows(ROW_1)
+                    .table(WorkloadTestHelpers.TABLE_1)
+                    .batchColumnRangeSelection(WorkloadColumnRangeSelection.builder()
+                            .startColumnInclusive(START_COLUMN_1)
+                            .endColumnExclusive(50)
+                            .build())
+                    .build();
+    private static final RowsColumnRangeReadTransactionAction READ_TRANSACTION_ACTION_2 =
+            RowsColumnRangeReadTransactionAction.builder()
+                    .addRows(ROW_1, ROW_2)
+                    .table(WorkloadTestHelpers.TABLE_1)
+                    .batchColumnRangeSelection(WorkloadColumnRangeSelection.builder()
+                            .startColumnInclusive(START_COLUMN_2)
+                            .endColumnExclusive(70)
+                            .build())
+                    .build();
+
+    private static final UUID UUID_1 = UUID.randomUUID();
+    private static final UUID UUID_2 = UUID.randomUUID();
+    private static final UUID UUID_3 = UUID.randomUUID();
+
+    private static final WitnessedRowsColumnRangeIteratorCreationTransactionAction
+            WITNESSED_CREATION_TRANSACTION_ACTION_1 =
+                    WitnessedRowsColumnRangeIteratorCreationTransactionAction.builder()
+                            .specificRow(ROW_1)
+                            .iteratorIdentifier(UUID_1)
+                            .originalAction(READ_TRANSACTION_ACTION_1)
+                            .build();
+    private static final WitnessedRowsColumnRangeIteratorCreationTransactionAction
+            WITNESSED_CREATION_TRANSACTION_ACTION_2 =
+                    WitnessedRowsColumnRangeIteratorCreationTransactionAction.builder()
+                            .specificRow(ROW_1)
+                            .iteratorIdentifier(UUID_2)
+                            .originalAction(READ_TRANSACTION_ACTION_2)
+                            .build();
+    private static final WitnessedRowsColumnRangeIteratorCreationTransactionAction
+            WITNESSED_CREATION_TRANSACTION_ACTION_3 =
+                    WitnessedRowsColumnRangeIteratorCreationTransactionAction.builder()
+                            .specificRow(ROW_2)
+                            .iteratorIdentifier(UUID_3)
+                            .originalAction(READ_TRANSACTION_ACTION_2)
+                            .build();
+
+    private static final RowColumnRangeQueryState ROW_COLUMN_RANGE_QUERY_STATE_1 =
+            ImmutableRowColumnRangeQueryState.builder()
+                    .iteratorId(UUID_1)
+                    .workloadColumnRangeSelection(READ_TRANSACTION_ACTION_1.batchColumnRangeSelection())
+                    .lastReadCell(Optional.empty())
+                    .build();
+    private static final RowColumnRangeQueryState ROW_COLUMN_RANGE_QUERY_STATE_2 =
+            ImmutableRowColumnRangeQueryState.builder()
+                    .iteratorId(UUID_2)
+                    .workloadColumnRangeSelection(READ_TRANSACTION_ACTION_2.batchColumnRangeSelection())
+                    .lastReadCell(Optional.empty())
+                    .build();
+    private static final RowColumnRangeQueryState ROW_COLUMN_RANGE_QUERY_STATE_3 =
+            ImmutableRowColumnRangeQueryState.builder()
+                    .iteratorId(UUID_3)
+                    .workloadColumnRangeSelection(READ_TRANSACTION_ACTION_2.batchColumnRangeSelection())
+                    .lastReadCell(Optional.empty())
+                    .build();
+
+    private final StructureHolder<Map<String, SingleTableLiveQueries>> queriesByTable =
+            StructureHolder.create(HashMap::empty);
+    private final RowColumnRangeQueryManager queryManager = new RowColumnRangeQueryManager(queriesByTable);
+
+    @Test
+    public void tracksSingleQueryCreation() {
+        queryManager.trackQueryCreation(WITNESSED_CREATION_TRANSACTION_ACTION_1);
+        assertThat(queryManager.getLiveQueryState(
+                        getWitnessedRowsColumnRangeReadTransactionAction(UUID_1, ROW_1, START_COLUMN_1)))
+                .contains(ROW_COLUMN_RANGE_QUERY_STATE_1);
+        assertThat(queryManager.getLiveQueryState(
+                        getWitnessedRowsColumnRangeReadTransactionAction(UUID_1, ROW_1 + 1, START_COLUMN_1)))
+                .as("rows and IDs must be matched")
+                .isEmpty();
+    }
+
+    @Test
+    public void tracksMultipleQueryCreationAndAssociatesCorrectMatchingState() {
+        queryManager.trackQueryCreation(WITNESSED_CREATION_TRANSACTION_ACTION_1);
+        queryManager.trackQueryCreation(WITNESSED_CREATION_TRANSACTION_ACTION_2);
+        queryManager.trackQueryCreation(WITNESSED_CREATION_TRANSACTION_ACTION_3);
+        assertThat(queryManager.getLiveQueryState(
+                        getWitnessedRowsColumnRangeReadTransactionAction(UUID_1, ROW_1, START_COLUMN_1)))
+                .contains(ROW_COLUMN_RANGE_QUERY_STATE_1);
+        assertThat(queryManager.getLiveQueryState(
+                        getWitnessedRowsColumnRangeReadTransactionAction(UUID_2, ROW_1, START_COLUMN_2)))
+                .contains(ROW_COLUMN_RANGE_QUERY_STATE_2);
+        assertThat(queryManager.getLiveQueryState(
+                        getWitnessedRowsColumnRangeReadTransactionAction(UUID_3, ROW_2, START_COLUMN_2)))
+                .contains(ROW_COLUMN_RANGE_QUERY_STATE_3);
+    }
+
+    @Test
+    public void invalidatesQueriesAffectedByWrites() {
+        queryManager.trackQueryCreation(WITNESSED_CREATION_TRANSACTION_ACTION_1);
+        queryManager.invalidateOverlappingQueries(WitnessedWriteTransactionAction.of(
+                WorkloadTestHelpers.TABLE_1,
+                ImmutableWorkloadCell.of(ROW_1, START_COLUMN_1),
+                WorkloadTestHelpers.VALUE_ONE));
+        assertThat(queryManager.getLiveQueryState(
+                        getWitnessedRowsColumnRangeReadTransactionAction(UUID_1, ROW_1, START_COLUMN_1)))
+                .as("a write was performed to a row covered by the row column range scan, so it should be invalidated")
+                .isEmpty();
+    }
+
+    @Test
+    public void doesNotInvalidateQueryWhenWriteWasMadeToADifferentTable() {
+        queryManager.trackQueryCreation(WITNESSED_CREATION_TRANSACTION_ACTION_1);
+        queryManager.invalidateOverlappingQueries(WitnessedWriteTransactionAction.of(
+                WorkloadTestHelpers.TABLE_2,
+                ImmutableWorkloadCell.of(ROW_1, START_COLUMN_1),
+                WorkloadTestHelpers.VALUE_ONE));
+        assertThat(queryManager.getLiveQueryState(
+                        getWitnessedRowsColumnRangeReadTransactionAction(UUID_1, ROW_1, START_COLUMN_1)))
+                .as("a write was performed to a row in table 2, so an iterator on table 1 is still valid")
+                .contains(ROW_COLUMN_RANGE_QUERY_STATE_1);
+    }
+
+    @Test
+    public void doesNotInvalidateQueryWhenWriteWasMadeToADifferentRow() {
+        queryManager.trackQueryCreation(WITNESSED_CREATION_TRANSACTION_ACTION_1);
+        queryManager.invalidateOverlappingQueries(WitnessedWriteTransactionAction.of(
+                WorkloadTestHelpers.TABLE_1,
+                ImmutableWorkloadCell.of(ROW_1 + 1, START_COLUMN_1),
+                WorkloadTestHelpers.VALUE_ONE));
+        assertThat(queryManager.getLiveQueryState(
+                        getWitnessedRowsColumnRangeReadTransactionAction(UUID_1, ROW_1, START_COLUMN_1)))
+                .as("a write was performed to a different row, so the iterator is still valid")
+                .contains(ROW_COLUMN_RANGE_QUERY_STATE_1);
+    }
+
+    @Test
+    public void doesNotInvalidateQueryWhenWriteWasMadeToAColumnNotInRange() {
+        queryManager.trackQueryCreation(WITNESSED_CREATION_TRANSACTION_ACTION_1);
+        queryManager.invalidateOverlappingQueries(WitnessedWriteTransactionAction.of(
+                WorkloadTestHelpers.TABLE_1, ImmutableWorkloadCell.of(ROW_1, START_COLUMN_1 - 1), 25));
+        assertThat(queryManager.getLiveQueryState(
+                        getWitnessedRowsColumnRangeReadTransactionAction(UUID_1, ROW_1, START_COLUMN_1)))
+                .as("a write was performed before the start of the query range, so the iterator is still valid")
+                .contains(ROW_COLUMN_RANGE_QUERY_STATE_1);
+
+        queryManager.invalidateOverlappingQueries(WitnessedWriteTransactionAction.of(
+                WorkloadTestHelpers.TABLE_1,
+                ImmutableWorkloadCell.of(
+                        5,
+                        READ_TRANSACTION_ACTION_1
+                                .batchColumnRangeSelection()
+                                .endColumnExclusive()
+                                .orElseThrow(() -> new SafeRuntimeException(
+                                        "Expected test query to have a start column, but it did not"))),
+                25));
+        assertThat(queryManager.getLiveQueryState(
+                        getWitnessedRowsColumnRangeReadTransactionAction(UUID_1, ROW_1, START_COLUMN_1)))
+                .as("a write was performed at the exclusive end of the query range, so the iterator is still valid")
+                .contains(ROW_COLUMN_RANGE_QUERY_STATE_1);
+    }
+
+    @Test
+    public void invalidatesAllOverlappingQueries() {
+        assertThat(READ_TRANSACTION_ACTION_2
+                        .batchColumnRangeSelection()
+                        .startColumnInclusive()
+                        .orElseThrow(() ->
+                                new SafeRuntimeException("Expected query to have a start column, but it did not")))
+                .as("This test requires that the second query's range overlaps the first query's range")
+                .isLessThan(READ_TRANSACTION_ACTION_1
+                        .batchColumnRangeSelection()
+                        .endColumnExclusive()
+                        .orElseThrow(() ->
+                                new SafeRuntimeException("Expected query to have an end column, but it did not")));
+
+        queryManager.trackQueryCreation(WITNESSED_CREATION_TRANSACTION_ACTION_1);
+        queryManager.trackQueryCreation(WITNESSED_CREATION_TRANSACTION_ACTION_2);
+        queryManager.trackQueryCreation(WITNESSED_CREATION_TRANSACTION_ACTION_3);
+
+        queryManager.invalidateOverlappingQueries(WitnessedWriteTransactionAction.of(
+                WorkloadTestHelpers.TABLE_1, ImmutableWorkloadCell.of(ROW_1, START_COLUMN_2), 25));
+
+        assertThat(queryManager.getLiveQueryState(
+                        getWitnessedRowsColumnRangeReadTransactionAction(UUID_1, ROW_1, START_COLUMN_1)))
+                .isEmpty();
+        assertThat(queryManager.getLiveQueryState(
+                        getWitnessedRowsColumnRangeReadTransactionAction(UUID_2, ROW_1, START_COLUMN_2)))
+                .isEmpty();
+        assertThat(queryManager.getLiveQueryState(
+                        getWitnessedRowsColumnRangeReadTransactionAction(UUID_3, ROW_2, START_COLUMN_2)))
+                .as("the write does not relate to row 2, so this iterator is still valid")
+                .contains(ROW_COLUMN_RANGE_QUERY_STATE_3);
+    }
+
+    private static WitnessedRowsColumnRangeReadTransactionAction getWitnessedRowsColumnRangeReadTransactionAction(
+            UUID iteratorIdentifier, int row, int column) {
+        return WitnessedRowsColumnRangeReadTransactionAction.builder()
+                .iteratorIdentifier(iteratorIdentifier)
+                .specificRow(row)
+                .table(WorkloadTestHelpers.TABLE_1)
+                .cell(ImmutableWorkloadCell.of(row, column))
+                .value(20031023)
+                .build();
+    }
+}ueu      (6c38c9955d96b2ea5eadabfac54229acf4246929}(sha(6c38c9955d96b2ea5eadabfac54229acf4246929node_idEC_kwDOAjP5fdoAKDZjMzhjOTk1NWQ5NmIyZWE1ZWFkYWJmYWM1NDIyOWFjZjQyNDY5Mjkcommit}(author}(name
Louis Bembergemail.62842976+louisbemberg@users.noreply.github.comdate2023-05-10T21:55:26Zu	committer}(j8 GitHubj8 noreply@github.comj8 2023-05-10T21:55:26ZumessagetImprove unsuccessful lock logging (#6551)

Display as safe arg the failureCount in the "Could not lock successfully"tree}(j8 (9a38dda4493e7a2b27b1dd364497c931b3baa50curl`https://api.github.com/repos/palantir/atlasdb/git/trees/9a38dda4493e7a2b27b1dd364497c931b3baa50cuj8 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6c38c9955d96b2ea5eadabfac54229acf4246929
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkXBLOCRBK7hj4Ov3rIwAARSYIAJtp7lJ6Yvp9zyebV86NRYEA
7L63rujmpQtKR4O+K5XbXSUcbafC9ULfpI/C67/sJBC589+h3+TyRJqqck8J39jN
4NuUVXsQH1Y+s0a/5TiykjgrLQq+fDEZvQE9zoHr+W+4qDdY54Wau933c3OXMxJZ
5N4ztGXRH0pffrlfWX/lql85sX0MBIKGchJNGVlw43K/98lQ77zW2eoKvKGA2n/r
F9BrBknmBsiTzKBYS3/ATmLaeG1pEWIYtzTvB2ee35vCl16q6+ZcJhrKI0WWPSpR
msuNe+x8LtzrhvTnpt70u4ZR5iupyqjYtl3jHG9rfdvnzldyuT5+kbobghCFPh8=
=SguN
-----END PGP SIGNATURE-----
payloadXb  tree 9a38dda4493e7a2b27b1dd364497c931b3baa50c
parent e5d54893a7237fa248f1ecf50ea55a8c95ee3a79
author Louis Bemberg <62842976+louisbemberg@users.noreply.github.com> 1683755726 -0400
committer GitHub <noreply@github.com> 1683755726 +0000

Improve unsuccessful lock logging (#6551)

Display as safe arg the failureCount in the "Could not lock successfully"
uuj8 ^https://api.github.com/repos/palantir/atlasdb/commits/6c38c9955d96b2ea5eadabfac54229acf4246929html_urlShttps://github.com/palantir/atlasdb/commit/6c38c9955d96b2ea5eadabfac54229acf4246929comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6c38c9955d96b2ea5eadabfac54229acf4246929/commentsj8 }(loginlouisbembergidJ`j8 MDQ6VXNlcjYyODQyOTc2
avatar_url4https://avatars.githubusercontent.com/u/62842976?v=4gravatar_idh5j8 )https://api.github.com/users/louisbembergj8 https://github.com/louisbemberg
followers_url3https://api.github.com/users/louisbemberg/followers
following_url@https://api.github.com/users/louisbemberg/following{/other_user}	gists_url9https://api.github.com/users/louisbemberg/gists{/gist_id}starred_url@https://api.github.com/users/louisbemberg/starred{/owner}{/repo}subscriptions_url7https://api.github.com/users/louisbemberg/subscriptionsorganizations_url.https://api.github.com/users/louisbemberg/orgs	repos_url/https://api.github.com/users/louisbemberg/repos
events_url:https://api.github.com/users/louisbemberg/events{/privacy}received_events_url9https://api.github.com/users/louisbemberg/received_eventstypeUser
site_adminuj8 }(j8 web-flowj8 J/j8 MDQ6VXNlcjE5ODY0NDQ3j8 4https://avatars.githubusercontent.com/u/19864447?v=4j8 h5j8 %https://api.github.com/users/web-flowj8 https://github.com/web-flowj8 /https://api.github.com/users/web-flow/followersj8 <https://api.github.com/users/web-flow/following{/other_user}j8 5https://api.github.com/users/web-flow/gists{/gist_id}j8 <https://api.github.com/users/web-flow/starred{/owner}{/repo}j8 3https://api.github.com/users/web-flow/subscriptionsj8 *https://api.github.com/users/web-flow/orgsj8 +https://api.github.com/users/web-flow/reposj8 6https://api.github.com/users/web-flow/events{/privacy}j8 5https://api.github.com/users/web-flow/received_eventsj8 Userj8 uparents]}(j8 (e5d54893a7237fa248f1ecf50ea55a8c95ee3a79j8 ^https://api.github.com/repos/palantir/atlasdb/commits/e5d54893a7237fa248f1ecf50ea55a8c95ee3a79j8 Shttps://github.com/palantir/atlasdb/commit/e5d54893a7237fa248f1ecf50ea55a8c95ee3a79uastats}(totalK	additionsK
	deletionsKufiles](}(j8 (873fe01fb2bcd122671ed8446a4741d208fbfa02filenamekatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AdvisoryLockConditionSuppliers.javastatusmodifiedj8 Kj8 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/6c38c9955d96b2ea5eadabfac54229acf4246929/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6c38c9955d96b2ea5eadabfac54229acf4246929/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.java?ref=6c38c9955d96b2ea5eadabfac54229acf4246929patchX  @@ -79,10 +79,13 @@ private static HeldLocksToken acquireLock(LockService lockService, LockRequest l
                     case BLOCK_UNTIL_TIMEOUT:
                     case BLOCK_INDEFINITELY:
                     case BLOCK_INDEFINITELY_THEN_RELEASE:
-                        log.warn("Could not lock successfully", ex);
                         ++failureCount;
+                        log.warn("Could not lock successfully", SafeArg.of("failureCount", failureCount), ex);
                         if (failureCount >= NUM_RETRIES) {
-                            log.warn("Failing after {} tries", SafeArg.of("failureCount", failureCount), ex);
+                            log.warn(
+                                    "Failing after exceeding maximum tries",
+                                    SafeArg.of("failureCount", failureCount),
+                                    ex);
                             throw ex;
                         }
                         break;u}(j8 (23134b9e8533848c590920b5b3a3ff99b19db234j9 $changelog/@unreleased/pr-6551.v2.ymlj9 addedj8 Kj8 K j9 Kj	9 |https://github.com/palantir/atlasdb/blob/6c38c9955d96b2ea5eadabfac54229acf4246929/changelog%2F%40unreleased%2Fpr-6551.v2.ymlj9 {https://github.com/palantir/atlasdb/raw/6c38c9955d96b2ea5eadabfac54229acf4246929/changelog%2F%40unreleased%2Fpr-6551.v2.ymlj
9 https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6551.v2.yml?ref=6c38c9955d96b2ea5eadabfac54229acf4246929j9 @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Display as safe arg the failureCount in the "Could not lock successfully"
+  links:
+  - https://github.com/palantir/atlasdb/pull/6551ueu(a8380ed34012df2cbad95df2d0902e7ad1ebfea9}(sha(a8380ed34012df2cbad95df2d0902e7ad1ebfea9node_idEC_kwDOAjP5fdoAKGE4MzgwZWQzNDAxMmRmMmNiYWQ5NWRmMmQwOTAyZTdhZDFlYmZlYTkcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-19T17:05:43Zu	committer}(j#9 	Tom Papkej%9 tpapke@palantir.comj'9 2023-07-19T17:05:43Zumessagefixtree}(j9 (6744b06bd6dc979975cacd12f36c7f98db0adddeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/6744b06bd6dc979975cacd12f36c7f98db0adddeuj39 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a8380ed34012df2cbad95df2d0902e7ad1ebfea9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmS4F+cACgkQmF9s0kaF
Iw2W/Qf+MwzGZqYUI/h24qnp71b70ANsUNhdCWjuQl3kEOZ7bRF9/U5CUoXaGypU
ZIJb2hlDRvnFyOH4GHAbaeKwToQkMIh7Hajg5S3h3TKlWD9+3I5Au/SANDP6fehy
flMHvPW9DUjF7lEm/N4tglcf0glVL349nVGgomFfgkG75qQlbuQD2Buq8Wi/6LIz
ujiT+0mo3FR8HQeU0/WqVpprEuTgflRvMqLiPazoZsdNJJYt9jvyQAq9KQ4TDdMZ
1+A2RXWPFRMmlZMl508JqXh2vGix258Z3DZXKBV+NvBrbY0HXsow9ji9oUj0F03c
JjKMvRbXoR0xXDOD0UQuemCoKVMILg==
=O6EV
-----END PGP SIGNATURE-----payloadtree 6744b06bd6dc979975cacd12f36c7f98db0addde
parent 7702273fe256abc4ccc69a3b1b2badbde57a9870
author Tom Papke <tpapke@palantir.com> 1689786343 +0100
committer Tom Papke <tpapke@palantir.com> 1689786343 +0100

fix
uuj39 ^https://api.github.com/repos/palantir/atlasdb/commits/a8380ed34012df2cbad95df2d0902e7ad1ebfea9html_urlShttps://github.com/palantir/atlasdb/commit/a8380ed34012df2cbad95df2d0902e7ad1ebfea9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a8380ed34012df2cbad95df2d0902e7ad1ebfea9/commentsj!9 }(login	ToemmscheidJboj9 MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j39 &https://api.github.com/users/ToemmschejA9 https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj)9 }(jF9 	ToemmschejH9 Jboj9 MDQ6VXNlcjQzNjc1NDkwjJ9 4https://avatars.githubusercontent.com/u/43675490?v=4jL9 h5j39 &https://api.github.com/users/ToemmschejA9 https://github.com/ToemmschejO9 0https://api.github.com/users/Toemmsche/followersjQ9 =https://api.github.com/users/Toemmsche/following{/other_user}jS9 6https://api.github.com/users/Toemmsche/gists{/gist_id}jU9 =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jW9 4https://api.github.com/users/Toemmsche/subscriptionsjY9 +https://api.github.com/users/Toemmsche/orgsj[9 ,https://api.github.com/users/Toemmsche/reposj]9 7https://api.github.com/users/Toemmsche/events{/privacy}j_9 6https://api.github.com/users/Toemmsche/received_eventsja9 Userjc9 uparents]}(j9 (7702273fe256abc4ccc69a3b1b2badbde57a9870j39 ^https://api.github.com/repos/palantir/atlasdb/commits/7702273fe256abc4ccc69a3b1b2badbde57a9870jA9 Shttps://github.com/palantir/atlasdb/commit/7702273fe256abc4ccc69a3b1b2badbde57a9870uastats}(totalK	additionsK	deletionsKufiles]}(j9 (08876923395e82027205da60a8814a680cbfd019filenameatimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javastatusmodifiedj}9 Kj~9 KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/a8380ed34012df2cbad95df2d0902e7ad1ebfea9/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a8380ed34012df2cbad95df2d0902e7ad1ebfea9/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=a8380ed34012df2cbad95df2d0902e7ad1ebfea9patchX  @@ -201,7 +201,7 @@ private static Optional<LockRequestMetadata> filterMetadataBasedOnFilteredLocks(
                                 return filteredLocks.contains(lockDescriptor);
                             })
                             .collectToMap();
-                    if (filteredLocks.isEmpty()) {
+                    if (filteredLockMetadata.isEmpty()) {
                         return Optional.empty();
                     }
                     return Optional.of(LockRequestMetadata.of(filteredLockMetadata));uau(dc13552feb7f94875cb125fb6a354b1182bc0cc1}(sha(dc13552feb7f94875cb125fb6a354b1182bc0cc1node_idEC_kwDOAjP5fdoAKGRjMTM1NTJmZWI3Zjk0ODc1Y2IxMjVmYjZhMzU0YjExODJiYzBjYzEcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-12T16:54:16Zu	committer}(j9 Lucas Meirelesj9 meireles31@msn.comj9 2023-06-12T16:54:16Zumessageslightly better nametree}(j9 (e8038731027fa2ba11fe87595ce34cb5801be133url`https://api.github.com/repos/palantir/atlasdb/git/trees/e8038731027fa2ba11fe87595ce34cb5801be133uj9 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/dc13552feb7f94875cb125fb6a354b1182bc0cc1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSHTbkACgkQJd22kJ7J
GixfrAf/TjzcPYz0rIeEjSVWzkjUUJclkvs7tk7IyRibrXinmV2+r9CIoi/f1PUW
Pb5O/VVRZ3vgeZ8QpjjlxH7/HG3LBPjp8x/wnWiwJFKPhipg9gf4PBDFIpSnaU2h
ln0l4KG5/xRO20f3t1Fdor3spBAeuGzovy3qH1DrtWR//DONw7BKRytw19nWURYN
0zcClkJIoB0xyrMh4jH0wiIxlGUO5YqscUYpfzZeK+kWV5DlXg3xARvn2M5/iXmM
j/Dofc/5zgMh+FCRjKIz3aG+yj04jAdAbLMFxXIuwwX+gKQcc3RXK61uvhy8q7MI
eLihlkjJfUeb33mLVusoEJwR6oceog==
=EfuN
-----END PGP SIGNATURE-----payloadtree e8038731027fa2ba11fe87595ce34cb5801be133
parent 9411cf91dfd2de3a78a86481eb27a413f5fed73f
author Lucas Meireles <meireles31@msn.com> 1686588856 +0100
committer Lucas Meireles <meireles31@msn.com> 1686588856 +0100

slightly better name
uuj9 ^https://api.github.com/repos/palantir/atlasdb/commits/dc13552feb7f94875cb125fb6a354b1182bc0cc1html_urlShttps://github.com/palantir/atlasdb/commit/dc13552feb7f94875cb125fb6a354b1182bc0cc1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/dc13552feb7f94875cb125fb6a354b1182bc0cc1/commentsj9 }(loginLucasIMEidJg j9 MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j9 %https://api.github.com/users/LucasIMEj9 https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj9 }(j9 LucasIMEj9 Jg j9 MDQ6VXNlcjY3ODczMTE=j9 3https://avatars.githubusercontent.com/u/6787311?v=4j9 h5j9 %https://api.github.com/users/LucasIMEj9 https://github.com/LucasIMEj9 /https://api.github.com/users/LucasIME/followersj9 <https://api.github.com/users/LucasIME/following{/other_user}j9 5https://api.github.com/users/LucasIME/gists{/gist_id}j9 <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j9 3https://api.github.com/users/LucasIME/subscriptionsj9 *https://api.github.com/users/LucasIME/orgsj9 +https://api.github.com/users/LucasIME/reposj9 6https://api.github.com/users/LucasIME/events{/privacy}j9 5https://api.github.com/users/LucasIME/received_eventsj9 Userj9 uparents]}(j9 (9411cf91dfd2de3a78a86481eb27a413f5fed73fj9 ^https://api.github.com/repos/palantir/atlasdb/commits/9411cf91dfd2de3a78a86481eb27a413f5fed73fj9 Shttps://github.com/palantir/atlasdb/commit/9411cf91dfd2de3a78a86481eb27a413f5fed73fuastats}(totalK	additionsK
	deletionsK
ufiles]}(j9 (29a59370cdce2b2a2469d2dd44fa89007bdfd8eefilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj9 K
j9 K
changesKblob_urlhttps://github.com/palantir/atlasdb/blob/dc13552feb7f94875cb125fb6a354b1182bc0cc1/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/dc13552feb7f94875cb125fb6a354b1182bc0cc1/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=dc13552feb7f94875cb125fb6a354b1182bc0cc1patchX  @@ -269,7 +269,7 @@ private enum State {
     private final ExpectationsMetrics expectationsDataCollectionMetrics;
 
     protected volatile boolean hasReads;
-    protected volatile boolean hasReadsThatRequireImmutableTimestampValidationAtCommit;
+    protected volatile boolean hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound;
 
     protected final TimestampCache timestampCache;
 
@@ -334,7 +334,7 @@ private enum State {
         this.sweepQueue = sweepQueue;
         this.deleteExecutor = deleteExecutor;
         this.hasReads = false;
-        this.hasReadsThatRequireImmutableTimestampValidationAtCommit = false;
+        this.hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = false;
         this.transactionOutcomeMetrics = TransactionOutcomeMetrics.create(metricsManager);
         this.validateLocksOnReads = validateLocksOnReads;
         this.transactionConfig = transactionConfig;
@@ -441,7 +441,7 @@ private NavigableMap<byte[], RowResult<byte[]>> getRowsInternal(
                     SafeArg.of("timeTakenMillis", getRowsMillis));
         }
 
-        hasReadsThatRequireImmutableTimestampValidationAtCommit = true;
+        hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
         validatePreCommitRequirementsOnReadIfNecessary(
                 tableRef,
                 getStartTimestamp(),
@@ -470,7 +470,7 @@ public Iterator<Map.Entry<Cell, byte[]>> getRowsColumnRange(
         RowColumnRangeIterator rawResults = keyValueService.getRowsColumnRange(
                 tableRef, stableRows, columnRangeSelection, batchHint, getStartTimestamp());
         if (!rawResults.hasNext()) {
-            hasReadsThatRequireImmutableTimestampValidationAtCommit = true;
+            hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
             validatePreCommitRequirementsOnReadIfNecessary(
                     tableRef, getStartTimestamp(), true /* we can't skip checks for range scans*/);
         } // else the postFiltered iterator will check for each batch.
@@ -509,7 +509,7 @@ public Map<byte[], Iterator<Map.Entry<Cell, byte[]>>> getRowsColumnRangeIterator
                     return scopeToTransaction(entryIterator);
                 }));
 
-        hasReadsThatRequireImmutableTimestampValidationAtCommit = true;
+        hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
         // validate requirements here as the first batch for each of the above iterators will not check
         validatePreCommitRequirementsOnReadIfNecessary(
                 tableRef, getStartTimestamp(), true /* we can't skip checks on range scans */);
@@ -708,7 +708,7 @@ private ClosableIterator<Map.Entry<Cell, byte[]>> getRowColumnRangePostFiltered(
                 rawIterator,
                 columnRangeSelection,
                 () -> {
-                    hasReadsThatRequireImmutableTimestampValidationAtCommit = true;
+                    hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
                     validatePreCommitRequirementsOnReadIfNecessary(
                             tableRef, getStartTimestamp(), true /* we can't skip lock checks on range scans */);
                 },
@@ -844,7 +844,7 @@ public SortedMap<byte[], RowResult<byte[]>> getRowsIgnoringLocalWrites(
         Map<Cell, Value> rawResults =
                 new HashMap<>(keyValueService.getRows(tableRef, rows, ColumnSelection.all(), getStartTimestamp()));
 
-        hasReadsThatRequireImmutableTimestampValidationAtCommit = true;
+        hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
         validatePreCommitRequirementsOnReadIfNecessary(
                 tableRef,
                 getStartTimestamp(),
@@ -960,7 +960,7 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
                     }
                     boolean hasReadEmptyCells = fromKeyValueService.size() < cellsWithNoLocalWrites.size();
                     if (hasReadEmptyCells) {
-                        hasReadsThatRequireImmutableTimestampValidationAtCommit = true;
+                        hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
                     }
                     validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), hasReadEmptyCells);
                     return removeEmptyColumns(result, tableRef);
@@ -985,7 +985,7 @@ public Map<Cell, byte[]> getIgnoringLocalWrites(TableReference tableRef, Set<Cel
         TraceStatistics.incEmptyValues(unfiltered.size() - filtered.size());
         boolean hasReadEmptyCells = unfiltered.size() < cells.size();
         if (hasReadEmptyCells) {
-            hasReadsThatRequireImmutableTimestampValidationAtCommit = true;
+            hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
         }
         validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp(), hasReadEmptyCells);
 
@@ -1041,7 +1041,7 @@ public Iterable<BatchingVisitable<RowResult<byte[]>>> getRanges(
                     Timer.Context timer = getTimer("processedRangeMillis").time();
                     Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>> firstPages =
                             keyValueService.getFirstBatchForRanges(tableRef, input, getStartTimestamp());
-                    hasReadsThatRequireImmutableTimestampValidationAtCommit = true;
+                    hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
                     validatePreCommitRequirementsOnReadIfNecessary(
                             tableRef, getStartTimestamp(), true /* can't skip lock check for range scans */);
 
@@ -1335,7 +1335,7 @@ protected Iterator<RowResult<T>> computeNext() {
                 }
                 SortedMap<Cell, T> postFilter = postFilterRows(tableRef, batch, transformer);
 
-                hasReadsThatRequireImmutableTimestampValidationAtCommit = true;
+                hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
                 validatePreCommitRequirementsOnReadIfNecessary(
                         tableRef, getStartTimestamp(), true /* can't skip lock checks for range scans */);
                 results.markNumResultsNotDeleted(
@@ -1710,7 +1710,7 @@ private <T> ListenableFuture<Map<Cell, Value>> collectCellsToPostFilter(
                     nextRawResults -> {
                         boolean hasReadEmptyCells = nextRawResults.size() < keysToReload.size();
                         if (hasReadEmptyCells) {
-                            hasReadsThatRequireImmutableTimestampValidationAtCommit = true;
+                            hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound = true;
                         }
                         validatePreCommitRequirementsOnReadIfNecessary(
                                 tableRef, getStartTimestamp(), hasReadEmptyCells);
@@ -2629,7 +2629,7 @@ private boolean hasAnyInvolvedTables() {
     private boolean validationNecessaryForInvolvedTablesOnCommit() {
         boolean anyTableRequiresImmutableTimestampLocking = involvedTables.stream()
                 .anyMatch(tableRef -> requiresImmutableTimestampLocking(
-                        tableRef, hasReadsThatRequireImmutableTimestampValidationAtCommit));
+                        tableRef, hasReadsThatRequireImmutableTimestampLockValidationAtCommitRound));
         boolean needsToValidate = !validateLocksOnReads || !hasReads();
         return anyTableRequiresImmutableTimestampLocking && needsToValidate;
     }uau(f6039b6289cea7e9b149cb637de75da4384d3672}(sha(f6039b6289cea7e9b149cb637de75da4384d3672node_idEC_kwDOAjP5fdoAKGY2MDM5YjYyODljZWE3ZTliMTQ5Y2I2MzdkZTc1ZGE0Mzg0ZDM2NzIcommit}(author}(name
Samuel Krameremailskramer@palantir.comdate2023-03-23T14:44:28Zu	committer}(j: 
Samuel Kramerj: skramer@palantir.comj: 2023-03-23T22:09:48Zumessage!add docker compose for antithesistree}(j	: (f8887f45823ab9ad6006fd0ca27f99148947682curl`https://api.github.com/repos/palantir/atlasdb/git/trees/f8887f45823ab9ad6006fd0ca27f99148947682cuj!: bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f6039b6289cea7e9b149cb637de75da4384d3672
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj!: ^https://api.github.com/repos/palantir/atlasdb/commits/f6039b6289cea7e9b149cb637de75da4384d3672html_urlShttps://github.com/palantir/atlasdb/commit/f6039b6289cea7e9b149cb637de75da4384d3672comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f6039b6289cea7e9b149cb637de75da4384d3672/commentsj: }(login
Sam-KrameridJ^2_ j: MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j!: 'https://api.github.com/users/Sam-Kramerj-: https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj: }(j2: 
Sam-Kramerj4: J^2_ j: MDQ6VXNlcjYyMzg4MTQ=j6: 3https://avatars.githubusercontent.com/u/6238814?v=4j8: h5j!: 'https://api.github.com/users/Sam-Kramerj-: https://github.com/Sam-Kramerj;: 1https://api.github.com/users/Sam-Kramer/followersj=: >https://api.github.com/users/Sam-Kramer/following{/other_user}j?: 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jA: >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jC: 5https://api.github.com/users/Sam-Kramer/subscriptionsjE: ,https://api.github.com/users/Sam-Kramer/orgsjG: -https://api.github.com/users/Sam-Kramer/reposjI: 8https://api.github.com/users/Sam-Kramer/events{/privacy}jK: 7https://api.github.com/users/Sam-Kramer/received_eventsjM: UserjO: uparents]}(j	: (50419c145d9169ff9e70a17a1da56a33a420b9a9j!: ^https://api.github.com/repos/palantir/atlasdb/commits/50419c145d9169ff9e70a17a1da56a33a420b9a9j-: Shttps://github.com/palantir/atlasdb/commit/50419c145d9169ff9e70a17a1da56a33a420b9a9uastats}(totalK	additionsK	deletionsKufiles](}(j	: (163e53aeebc976f6e537570156472b46bec84d46filenameatlasdb-ete-tests/build.gradlestatusmodifiedji: Kjj: KchangesKblob_urlrhttps://github.com/palantir/atlasdb/blob/f6039b6289cea7e9b149cb637de75da4384d3672/atlasdb-ete-tests%2Fbuild.gradleraw_urlqhttps://github.com/palantir/atlasdb/raw/f6039b6289cea7e9b149cb637de75da4384d3672/atlasdb-ete-tests%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fbuild.gradle?ref=f6039b6289cea7e9b149cb637de75da4384d3672patch@@ -1,4 +1,4 @@
-apply from: "../gradle/shared.gradle"
+vaapply from: "../gradle/shared.gradle"
 apply from: "../gradle/tests.gradle"
 apply from: "../gradle/non-client-dist.gradle"
 u}(j	: (671326e1cd73c65a3f8964ddc722ba78dcce8e92jo: -atlasdb-workload-server-antithesis/Dockerfilejq: addedji: Kjj: K js: Kjt: https://github.com/palantir/atlasdb/blob/f6039b6289cea7e9b149cb637de75da4384d3672/atlasdb-workload-server-antithesis%2FDockerfilejv: https://github.com/palantir/atlasdb/raw/f6039b6289cea7e9b149cb637de75da4384d3672/atlasdb-workload-server-antithesis%2FDockerfilejx: https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2FDockerfile?ref=f6039b6289cea7e9b149cb637de75da4384d3672jz: @@ -0,0 +1,4 @@
+FROM adoptopenjdk/openjdk11:jre-11.0.9_11.1-alpine
+MAINTAINER AtlasDB Team
+
+ADD docker-compose.yml /
\ No newline at end of fileu}(j	: (3fe03f84c4a9ef10137f13d2f0bfe773525ba2b7jo: /atlasdb-workload-server-antithesis/build.gradlejq: addedji: Kjj: K js: Kjt: https://github.com/palantir/atlasdb/blob/f6039b6289cea7e9b149cb637de75da4384d3672/atlasdb-workload-server-antithesis%2Fbuild.gradlejv: https://github.com/palantir/atlasdb/raw/f6039b6289cea7e9b149cb637de75da4384d3672/atlasdb-workload-server-antithesis%2Fbuild.gradlejx: https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fbuild.gradle?ref=f6039b6289cea7e9b149cb637de75da4384d3672jz: X  @@ -0,0 +1,11 @@
+apply plugin: 'com.palantir.docker'
+apply from: "../gradle/shared.gradle"
+apply from: "../gradle/non-client-dist.gradle"
+
+def imageVersion = "${project.version.toString().replaceAll('\\+', '-')}"
+
+docker {
+    name "palantirtechnologies/${project.name}:${imageVersion}"
+    tags 'latest', 'snapshot'
+    files 'var/docker-compose.yml'
+}
\ No newline at end of fileu}(j	: (e4904ae68a0c9de71b050c68ff60ae1373f774a0jo: /atlasdb-workload-server-distribution/Dockerfilejq: modifiedji: Kjj: K js: Kjt: https://github.com/palantir/atlasdb/blob/f6039b6289cea7e9b149cb637de75da4384d3672/atlasdb-workload-server-distribution%2FDockerfilejv: https://github.com/palantir/atlasdb/raw/f6039b6289cea7e9b149cb637de75da4384d3672/atlasdb-workload-server-distribution%2FDockerfilejx: https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2FDockerfile?ref=f6039b6289cea7e9b149cb637de75da4384d3672jz: Xw  @@ -4,6 +4,13 @@ MAINTAINER AtlasDB Team
 # Bash and curl are convenient for monitoring and debugging
 RUN apk update && apk add bash curl
 
+ENV DOCKERIZE_VERSION v0.2.0
+
+# Bash is useful for monitoring; curl is used by our healthchecks.
+RUN apk update && apk add bash curl procps wget  \
+    && wget --no-check-certificate http://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
+    && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
+
 # Prefer ADD to COPY because it does the tar handling
 ADD atlasdb-workload-server-*.tgz /
 u}(j	: (5616bee3da8936550821b72ae5eabb0a2f3f7f9fjo: 1atlasdb-workload-server-distribution/build.gradlejq: modifiedji: Kjj: Kjs: Kjt: https://github.com/palantir/atlasdb/blob/f6039b6289cea7e9b149cb637de75da4384d3672/atlasdb-workload-server-distribution%2Fbuild.gradlejv: https://github.com/palantir/atlasdb/raw/f6039b6289cea7e9b149cb637de75da4384d3672/atlasdb-workload-server-distribution%2Fbuild.gradlejx: https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=f6039b6289cea7e9b149cb637de75da4384d3672jz: X  @@ -19,8 +19,7 @@ dependencies {
     implementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
     implementation 'com.palantir.conjure.java.runtime:conjure-java-jersey-server'
     implementation 'com.google.guava:guava'
-
-
+    
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-cassandra')
     implementation project(':atlasdb-workload-server')u}(j	: (30ae8194254f4d9e5df10537828fed52ef8a5635jo: settings.gradlejq: modifiedji: Kjj: K js: Kjt: ahttps://github.com/palantir/atlasdb/blob/f6039b6289cea7e9b149cb637de75da4384d3672/settings.gradlejv: `https://github.com/palantir/atlasdb/raw/f6039b6289cea7e9b149cb637de75da4384d3672/settings.gradlejx: shttps://api.github.com/repos/palantir/atlasdb/contents/settings.gradle?ref=f6039b6289cea7e9b149cb637de75da4384d3672jz: X,  @@ -32,6 +32,7 @@ include ":atlasdb-tests-shared"
 include ":atlasdb-workload-server"
 include ":atlasdb-workload-server-api"
 include ":atlasdb-workload-server-distribution"
+include ":atlasdb-workload-server-antithesis"
 include ":commons-annotations"
 include ":commons-api"
 include ":commons-db"ueu(89336fa97190f7458f586878a4eca74524a46553}(sha(89336fa97190f7458f586878a4eca74524a46553node_idEC_kwDOAjP5fdoAKDg5MzM2ZmE5NzE5MGY3NDU4ZjU4Njg3OGE0ZWNhNzQ1MjRhNDY1NTMcommit}(author}(nameChris Van de Veldeemailcvandevelde@palantir.comdate2023-05-23T08:59:54Zu	committer}(j: Chris Van de Veldej: cvandevelde@palantir.comj: 2023-05-23T08:59:54ZumessageLEADING(i) USE_NL(i m)tree}(j: (ee981fe349705fd2b8ededbcc1ee323a49e4ed62url`https://api.github.com/repos/palantir/atlasdb/git/trees/ee981fe349705fd2b8ededbcc1ee323a49e4ed62uj: bhttps://api.github.com/repos/palantir/atlasdb/git/commits/89336fa97190f7458f586878a4eca74524a46553
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEfsytHu2QbUsz5QamhCdbnbxuCwoFAmRsgJ0ACgkQhCdbnbxu
CwpYzQf9Gda4165rTzLa/rHTQByFmdkE/IgjHC196lSRjYY33h68E0EmqV7sJzFN
tvxEb5giYZz5dwXSyBhI9wiQkvXG+S39UfT8jeSyl6Y4yKPQsKc0ns2ytqkbOLW2
VYnkE3KH3tejzzHrc6xtEmURqlj/VkLwDdv5UCpWXpyetktnmZ235u6stdPIQrda
osOPWekl6DmEWHqKcsKBVteKG6ynlPoV3ug2rJPZ0LdEKw/h1l6LmSVpUKSRcWPp
NwBUuaPZGVfGH66tnWoC66X25hZjTDOj43xOTW0eA75nkt+ts/8YRcz+Uz73rIIh
iYeHIYgPnS66K94oTxJWZbDrl50DPQ==
=bWQp
-----END PGP SIGNATURE-----payloadX  tree ee981fe349705fd2b8ededbcc1ee323a49e4ed62
parent 02208b25084200e80d9504f487d7d8f9512e3aa0
author Chris Van de Velde <cvandevelde@palantir.com> 1684832394 +1000
committer Chris Van de Velde <cvandevelde@palantir.com> 1684832394 +1000

LEADING(i) USE_NL(i m)
uuj: ^https://api.github.com/repos/palantir/atlasdb/commits/89336fa97190f7458f586878a4eca74524a46553html_urlShttps://github.com/palantir/atlasdb/commit/89336fa97190f7458f586878a4eca74524a46553comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/89336fa97190f7458f586878a4eca74524a46553/commentsj: }(loginCVdV-auidJDN j: MDQ6VXNlcjY5MjI2MDUy
avatar_url4https://avatars.githubusercontent.com/u/69226052?v=4gravatar_idh5j: $https://api.github.com/users/CVdV-auj: https://github.com/CVdV-au
followers_url.https://api.github.com/users/CVdV-au/followers
following_url;https://api.github.com/users/CVdV-au/following{/other_user}	gists_url4https://api.github.com/users/CVdV-au/gists{/gist_id}starred_url;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/CVdV-au/subscriptionsorganizations_url)https://api.github.com/users/CVdV-au/orgs	repos_url*https://api.github.com/users/CVdV-au/repos
events_url5https://api.github.com/users/CVdV-au/events{/privacy}received_events_url4https://api.github.com/users/CVdV-au/received_eventstypeUser
site_adminuj: }(j: CVdV-auj: JDN j: MDQ6VXNlcjY5MjI2MDUyj: 4https://avatars.githubusercontent.com/u/69226052?v=4j: h5j: $https://api.github.com/users/CVdV-auj: https://github.com/CVdV-auj: .https://api.github.com/users/CVdV-au/followersj: ;https://api.github.com/users/CVdV-au/following{/other_user}j: 4https://api.github.com/users/CVdV-au/gists{/gist_id}j: ;https://api.github.com/users/CVdV-au/starred{/owner}{/repo}j: 2https://api.github.com/users/CVdV-au/subscriptionsj: )https://api.github.com/users/CVdV-au/orgsj: *https://api.github.com/users/CVdV-au/reposj: 5https://api.github.com/users/CVdV-au/events{/privacy}j: 4https://api.github.com/users/CVdV-au/received_eventsj: Userj: uparents]}(j: (02208b25084200e80d9504f487d7d8f9512e3aa0j: ^https://api.github.com/repos/palantir/atlasdb/commits/02208b25084200e80d9504f487d7d8f9512e3aa0j: Shttps://github.com/palantir/atlasdb/commit/02208b25084200e80d9504f487d7d8f9512e3aa0uastats}(totalKM	additionsK,	deletionsK!ufiles]}(j: (884530e548fae200f9bded5575f9af3f84c9e5fafilenameiatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleOverflowWriteTable.javastatusmodifiedj; K,j	; K!changesKMblob_urlhttps://github.com/palantir/atlasdb/blob/89336fa97190f7458f586878a4eca74524a46553/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javaraw_urlhttps://github.com/palantir/atlasdb/raw/89336fa97190f7458f586878a4eca74524a46553/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.java?ref=89336fa97190f7458f586878a4eca74524a46553patchX  @@ -351,33 +351,41 @@ private void deleteOverflow(String overflowTable, List<Object[]> args) {
         String shortTableName = oraclePrefixedTableNames.get(tableRef, conns);
         conns.get()
                 .updateManyUnregisteredQuery(
-                        " /* DELETE_ONE_OVERFLOW (" + overflowTable + ") */ "
-                                + " DELETE /*+ INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") "
-                                + "            NO_INDEX_FFS(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */ "
-                                + "  FROM " + overflowTable + " m "
-                                + "  WHERE m.id IN (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName)
-                                + ") */ "
-                                + "                        i.overflow "
-                                + "                   FROM " + shortTableName + " i "
-                                + "                  WHERE i.row_name = ? "
-                                + "                    AND i.col_name = ? "
-                                + "                    AND i.ts = ? "
-                                + "                    AND i.overflow IS NOT NULL)",
+                        "/* DELETE_ONE_OVERFLOW (" + overflowTable + ") */"
+                                + " DELETE"
+                                + " /*+"
+                                + "   INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ")"
+                                + "   LEADING(i) USE_NL(i m)"
+                                + " */"
+                                + " FROM " + overflowTable + " m"
+                                + " WHERE m.id IN"
+                                + "   (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName) + ") */"
+                                + "     i.overflow"
+                                + "     FROM " + shortTableName + " i"
+                                + "     WHERE i.row_name = ?"
+                                + "       AND i.col_name = ?"
+                                + "       AND i.ts = ?"
+                                + "       AND i.overflow IS NOT NULL)",
                         args);
     }
 
     private void deleteOverflowRange(String overflowTable, String shortTableName, RangeRequest range) {
         StringBuilder query = new StringBuilder();
-        query.append(" /* DELETE_RANGE_OVERFLOW (").append(overflowTable).append(") */ ");
-        query.append(" DELETE /*+ INDEX(m pk_").append(overflowTable).append(") ");
-        query.append("            NO_INDEX_FFS(m pk_").append(overflowTable).append(") */ ");
-        query.append(" FROM ").append(overflowTable).append(" m ");
-        query.append(" WHERE m.id IN (");
+        query.append("/* DELETE_RANGE_OVERFLOW (")
+                .append(overflowTable)
+                .append(") */ DELETE /*+ INDEX(m ")
+                .append(PrimaryKeyConstraintNames.get(overflowTable))
+                .append(") LEADING(i) USE_NL(i m) */ FROM ")
+                .append(overflowTable)
+                .append(" m WHERE m.id IN (");
 
         // subquery for finding rows in the short table
-        query.append("SELECT /*+ INDEX(i pk_").append(shortTableName).append(") */ ");
-        query.append("       i.overflow ");
-        query.append("    FROM ").append(shortTableName).append(" i ");
+        query.append("SELECT /*+ INDEX(i ")
+                .append(PrimaryKeyConstraintNames.get(shortTableName))
+                .append(") */")
+                .append(" i.overflow FROM ")
+                .append(shortTableName)
+                .append(" i");
 
         // add where clauses
         WhereClauses whereClauses = WhereClauses.create("i", range, "i.overflow IS NOT NULL");
@@ -400,19 +408,22 @@ private void deleteAllTimestampsOverflow(String overflowTable, List<Object[]> ar
         String shortTableName = oraclePrefixedTableNames.get(tableRef, conns);
         conns.get()
                 .updateManyUnregisteredQuery(
-                        " /* DELETE_ALL_TS_OVERFLOW (" + overflowTable + ") */ "
-                                + " DELETE /*+ INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ")"
-                                + "            NO_INDEX_FFS(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */"
-                                + " FROM " + overflowTable + " m "
-                                + " WHERE m.id IN (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName)
-                                + "   ) */ "
-                                + "                        i.overflow "
-                                + "                   FROM " + shortTableName + " i "
-                                + "                  WHERE i.row_name = ? "
-                                + "                    AND i.col_name = ? "
-                                + "                    AND i.ts >= ? "
-                                + "                    AND i.ts <= ? "
-                                + "                    AND i.overflow IS NOT NULL)",
+                        " /* DELETE_ONE_OVERFLOW (" + overflowTable + ") */"
+                                + " DELETE"
+                                + " /*+"
+                                + "   INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ")"
+                                + "   LEADING(i) USE_NL(i m)"
+                                + " */"
+                                + " FROM " + overflowTable + " m"
+                                + " WHERE m.id IN"
+                                + "   (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName) + ") */"
+                                + "     i.overflow"
+                                + "     FROM " + shortTableName + " i"
+                                + "     WHERE i.row_name = ?"
+                                + "       AND i.col_name = ?"
+                                + "       AND i.ts >= ?"
+                                + "       AND i.ts <= ?"
+                                + "       AND i.overflow IS NOT NULL)",
                         args);
     }
 uau(7c47f1eabca0c847dc6e959273f77448981d788c}(sha(7c47f1eabca0c847dc6e959273f77448981d788cnode_idEC_kwDOAjP5fdoAKDdjNDdmMWVhYmNhMGM4NDdkYzZlOTU5MjczZjc3NDQ4OTgxZDc4OGMcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-05-05T15:35:20Zu	committer}(j%; David Schlosnaglej'; davids@palantir.comj); 2023-05-05T15:50:12Zumessage9Avoid Stream overhead in getRandomHostByActiveConnectionstree}(j; (ff4c9a444382dad2a0e0beae7be4f385b4bab7c9url`https://api.github.com/repos/palantir/atlasdb/git/trees/ff4c9a444382dad2a0e0beae7be4f385b4bab7c9uj5; bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7c47f1eabca0c847dc6e959273f77448981d788c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmRVJbYACgkQR9hsJ74Q
0l9PFAgAvzjfh5S7IFq6QQ7h0pfh4CM4x9TObjGLTsDx426gk0/JvxdSWGx7aszD
SimflGKBrSA7bZvFk75uRKGpTgLZReMqoQpnAOV/WdVbiTMx9VQOiNpQq9r6Lt2x
P1/lXwIMbW9pLSOMjoj/p2ft0wWzqoXKZrUOYSx4kMjJ4RPQePUYwDZhTSDgoBT8
gYjP3f6rB8TTTrfECNWugPgOYLkSQ0zOF4dO7JmvSfGkDERD2spdA/Lhcp2GcNmv
a+o3qS14pIHmWXapu3JmQh8chYXXZ5oYuwEioQ7SfQPxYbaV/gZmjFBshiS6Nq6P
vYKWdc00/7r6S6UrQt0ak0XfmV5Jlw==
=B6zD
-----END PGP SIGNATURE-----payloadX  tree ff4c9a444382dad2a0e0beae7be4f385b4bab7c9
parent 89301daada3aa480a1d2baae560213a3292c52b9
author David Schlosnagle <davids@palantir.com> 1683300920 -0400
committer David Schlosnagle <davids@palantir.com> 1683301812 -0400

Avoid Stream overhead in getRandomHostByActiveConnections
uuj5; ^https://api.github.com/repos/palantir/atlasdb/commits/7c47f1eabca0c847dc6e959273f77448981d788chtml_urlShttps://github.com/palantir/atlasdb/commit/7c47f1eabca0c847dc6e959273f77448981d788ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7c47f1eabca0c847dc6e959273f77448981d788c/commentsj#; }(loginschlosnaidMBj; MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j5; %https://api.github.com/users/schlosnajC; https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj+; }(jH; schlosnajJ; MBj; MDQ6VXNlcjU0NTk0jL; 1https://avatars.githubusercontent.com/u/54594?v=4jN; h5j5; %https://api.github.com/users/schlosnajC; https://github.com/schlosnajQ; /https://api.github.com/users/schlosna/followersjS; <https://api.github.com/users/schlosna/following{/other_user}jU; 5https://api.github.com/users/schlosna/gists{/gist_id}jW; <https://api.github.com/users/schlosna/starred{/owner}{/repo}jY; 3https://api.github.com/users/schlosna/subscriptionsj[; *https://api.github.com/users/schlosna/orgsj]; +https://api.github.com/users/schlosna/reposj_; 6https://api.github.com/users/schlosna/events{/privacy}ja; 5https://api.github.com/users/schlosna/received_eventsjc; Userje; uparents]}(j; (89301daada3aa480a1d2baae560213a3292c52b9j5; ^https://api.github.com/repos/palantir/atlasdb/commits/89301daada3aa480a1d2baae560213a3292c52b9jC; Shttps://github.com/palantir/atlasdb/commit/89301daada3aa480a1d2baae560213a3292c52b9uastats}(totalK	additionsK	deletionsKufiles]}(j; (c348d63899c5ce543e1e98d15067d45720cbc9d5filenamebatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javastatusmodifiedj; Kj; KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7c47f1eabca0c847dc6e959273f77448981d788c/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7c47f1eabca0c847dc6e959273f77448981d788c/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=7c47f1eabca0c847dc6e959273f77448981d788cpatchXZ  @@ -25,6 +25,7 @@
 import com.google.common.collect.Interner;
 import com.google.common.collect.Interners;
 import com.google.common.collect.Iterables;
+import com.google.common.collect.Maps;
 import com.google.common.collect.Range;
 import com.google.common.collect.RangeMap;
 import com.google.common.collect.Sets;
@@ -66,7 +67,6 @@
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
-import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Optional;
 import java.util.Random;
@@ -420,9 +420,8 @@ Set<CassandraServer> maybeFilterLocalHosts(Set<CassandraServer> hosts) {
     @VisibleForTesting
     Optional<CassandraServer> getRandomHostByActiveConnections(Set<CassandraServer> desiredHosts) {
         Set<CassandraServer> localFilteredHosts = maybeFilterLocalHosts(desiredHosts);
-        ImmutableMap<CassandraServer, CassandraClientPoolingContainer> matchingPools = currentPools.entrySet().stream()
-                .filter(e -> localFilteredHosts.contains(e.getKey()))
-                .collect(ImmutableMap.toImmutableMap(Entry::getKey, Entry::getValue));
+        Map<CassandraServer, CassandraClientPoolingContainer> matchingPools =
+                ImmutableMap.copyOf(Maps.filterKeys(currentPools, localFilteredHosts::contains));
         if (matchingPools.isEmpty()) {
             return Optional.empty();
         }uau(66f9c42d3239fe7aa6c287599d12830c8d4902f8}(sha(66f9c42d3239fe7aa6c287599d12830c8d4902f8node_idEC_kwDOAjP5fdoAKDY2ZjljNDJkMzIzOWZlN2FhNmMyODc1OTlkMTI4MzBjOGQ0OTAyZjgcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-03-16T12:24:13Zu	committer}(j; 
svc-changelogj; svc-changelog@palantir.comj; 2023-03-16T12:24:13ZumessageAdd generated changelog entriestree}(j; (73005ee38bc54c1ccf8f3eb9dd79420d14bfbca1url`https://api.github.com/repos/palantir/atlasdb/git/trees/73005ee38bc54c1ccf8f3eb9dd79420d14bfbca1uj; bhttps://api.github.com/repos/palantir/atlasdb/git/commits/66f9c42d3239fe7aa6c287599d12830c8d4902f8
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQTCm0JEHYaJX37fAFQAACqnAEAoaKKCtdBZ3o29bIXhkd111iQ
CdHe/M7RG8inTtc4yoABAImYa240qO4UYhxfYZTn/Kel6Fx7D+lS0VMT8NOBEM5Z
=f+DH
-----END PGP SIGNATURE-----payloadX  tree 73005ee38bc54c1ccf8f3eb9dd79420d14bfbca1
parent 02c1afb542c40dd4d2f7659c226893ca0af7e2a8
author svc-changelog <svc-changelog@palantir.com> 1678969453 +0000
committer svc-changelog <svc-changelog@palantir.com> 1678969453 +0000

Add generated changelog entriesuuj; ^https://api.github.com/repos/palantir/atlasdb/commits/66f9c42d3239fe7aa6c287599d12830c8d4902f8html_urlShttps://github.com/palantir/atlasdb/commit/66f9c42d3239fe7aa6c287599d12830c8d4902f8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/66f9c42d3239fe7aa6c287599d12830c8d4902f8/commentsj; }(login
svc-changelogidJ#j; MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j; *https://api.github.com/users/svc-changelogj;  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj; }(j; 
svc-changelogj; J#j; MDQ6VXNlcjg0MDc3NjAzj; 4https://avatars.githubusercontent.com/u/84077603?v=4j; h5j; *https://api.github.com/users/svc-changelogj;  https://github.com/svc-changelogj; 4https://api.github.com/users/svc-changelog/followersj; Ahttps://api.github.com/users/svc-changelog/following{/other_user}j; :https://api.github.com/users/svc-changelog/gists{/gist_id}j; Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j; 8https://api.github.com/users/svc-changelog/subscriptionsj; /https://api.github.com/users/svc-changelog/orgsj; 0https://api.github.com/users/svc-changelog/reposj; ;https://api.github.com/users/svc-changelog/events{/privacy}j; :https://api.github.com/users/svc-changelog/received_eventsj; Userj; uparents]}(j; (02c1afb542c40dd4d2f7659c226893ca0af7e2a8j; ^https://api.github.com/repos/palantir/atlasdb/commits/02c1afb542c40dd4d2f7659c226893ca0af7e2a8j; Shttps://github.com/palantir/atlasdb/commit/02c1afb542c40dd4d2f7659c226893ca0af7e2a8uastats}(totalK	additionsK	deletionsK ufiles]}(j; (146eafaef341f53b563527d249d44fac28f8c6d9filename$changelog/@unreleased/pr-6471.v2.ymlstatusaddedj; Kj; K changesKblob_url|https://github.com/palantir/atlasdb/blob/66f9c42d3239fe7aa6c287599d12830c8d4902f8/changelog%2F%40unreleased%2Fpr-6471.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/66f9c42d3239fe7aa6c287599d12830c8d4902f8/changelog%2F%40unreleased%2Fpr-6471.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6471.v2.yml?ref=66f9c42d3239fe7aa6c287599d12830c8d4902f8patch@@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Adds interfaces to the workload server which makes integration with
+    dropwizard or other server frameworks.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6471uau(7fd4508f576abb32432ea6c3b320e48f07cfd5d4}(sha(7fd4508f576abb32432ea6c3b320e48f07cfd5d4node_idEC_kwDOAjP5fdoAKDdmZDQ1MDhmNTc2YWJiMzI0MzJlYTZjM2IzMjBlNDhmMDdjZmQ1ZDQcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-06T09:57:50Zu	committer}(j< Lucas Meirelesj< meireles31@msn.comj< 2023-07-06T09:57:50Zumessage;check if debug enabled before checking remaining conditionstree}(j< (12e8971f3cf0f9324cc0d7b5fc079d153edaa53furl`https://api.github.com/repos/palantir/atlasdb/git/trees/12e8971f3cf0f9324cc0d7b5fc079d153edaa53fuj#< bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7fd4508f576abb32432ea6c3b320e48f07cfd5d4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSmkB4ACgkQJd22kJ7J
Giw92wgArRNcE3fGfsGkSwo5TdX9P0rFWLVE128DHs74kHTfRRz+uf78VXVTsL0c
doQqytLB00B8n9qjftXPG0DNabZckaaChPKGI0eJWIdFLr7+NPDbmZmoduE3G7hY
gQ136QGIwsHnrb/QmX/ozEdUY0jOgYSWKRG0tiy/zB64I0JNNNkLYbSunJCEIQKF
M/Rvzik7XT3oPdcz99wJonKpM6w2M1elCduPjRhhwZoZ8aS8W4Zg27LDsT+YPmhe
3IhK9aU2TFidPB2xSY/S+b8131gxArJRuuWvyaqr+NiO/NhJs2SJFY6FK/AobtKP
vk+EneT6P4SWDeXNehJSoMoodoUD2g==
=GA3x
-----END PGP SIGNATURE-----payloadX  tree 12e8971f3cf0f9324cc0d7b5fc079d153edaa53f
parent b156a0bfd18be40107a5798da81846e5e2ade26b
author Lucas Meireles <meireles31@msn.com> 1688637470 +0100
committer Lucas Meireles <meireles31@msn.com> 1688637470 +0100

check if debug enabled before checking remaining conditions
uuj#< ^https://api.github.com/repos/palantir/atlasdb/commits/7fd4508f576abb32432ea6c3b320e48f07cfd5d4html_urlShttps://github.com/palantir/atlasdb/commit/7fd4508f576abb32432ea6c3b320e48f07cfd5d4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7fd4508f576abb32432ea6c3b320e48f07cfd5d4/commentsj< }(loginLucasIMEidJg j
< MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j#< %https://api.github.com/users/LucasIMEj1< https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj< }(j6< LucasIMEj8< Jg j
< MDQ6VXNlcjY3ODczMTE=j:< 3https://avatars.githubusercontent.com/u/6787311?v=4j<< h5j#< %https://api.github.com/users/LucasIMEj1< https://github.com/LucasIMEj?< /https://api.github.com/users/LucasIME/followersjA< <https://api.github.com/users/LucasIME/following{/other_user}jC< 5https://api.github.com/users/LucasIME/gists{/gist_id}jE< <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jG< 3https://api.github.com/users/LucasIME/subscriptionsjI< *https://api.github.com/users/LucasIME/orgsjK< +https://api.github.com/users/LucasIME/reposjM< 6https://api.github.com/users/LucasIME/events{/privacy}jO< 5https://api.github.com/users/LucasIME/received_eventsjQ< UserjS< uparents]}(j< (b156a0bfd18be40107a5798da81846e5e2ade26bj#< ^https://api.github.com/repos/palantir/atlasdb/commits/b156a0bfd18be40107a5798da81846e5e2ade26bj1< Shttps://github.com/palantir/atlasdb/commit/b156a0bfd18be40107a5798da81846e5e2ade26buastats}(totalK	additionsK	deletionsKufiles]}(j< (847dac9582377f857ea51d134c9d257b2a221cb0filenameVatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javastatusmodifiedjm< Kjn< KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7fd4508f576abb32432ea6c3b320e48f07cfd5d4/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7fd4508f576abb32432ea6c3b320e48f07cfd5d4/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=7fd4508f576abb32432ea6c3b320e48f07cfd5d4patchX  @@ -62,7 +62,7 @@ public boolean mustCheckImmutableLock(boolean allPossibleCellsReandAndPresent) {
                 ? mustCheckImmutableLockIfAllCellsReadAndPresent
                 : mustCheckImmutableLockIfNonExhaustiveRead;
 
-        if (!mustCheckLock && isConfiguredWithThoroughSweep()) {
+        if (log.isDebugEnabled() && !mustCheckLock && isConfiguredWithThoroughSweep()) {
             log.debug("Can skip immutable timestamp lock on thoroughly swept table due to making exhaustive read");
         }
 uau(72b90320ff2e955e3770f288b7d1c6b30c53b4fb}(sha(72b90320ff2e955e3770f288b7d1c6b30c53b4fbnode_idEC_kwDOAjP5fdoAKDcyYjkwMzIwZmYyZTk1NWUzNzcwZjI4OGI3ZDFjNmIzMGM1M2I0ZmIcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-03-06T22:30:49Zu	committer}(j< svc-excavator-botj< svc-excavator-bot@palantir.comj< 2023-03-06T22:30:49ZumessageExcavator:  Prefer AssertJtree}(j< (69a18652d9c7ea632d7c0bab6fe63e49b0e1e69eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/69a18652d9c7ea632d7c0bab6fe63e49b0e1e69euj< bhttps://api.github.com/repos/palantir/atlasdb/git/commits/72b90320ff2e955e3770f288b7d1c6b30c53b4fb
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQGaZkJEMmvEkpISILgAAChtQEA0jMPJZvkEeKsNWyaY6fQqzPI
hr4cDX4DhJI4aBf/eoAA/2BudH8GfV4vbJ0bXJIZsaFnF2uf6kj8wO/wmfEpPvDK
=wBPo
-----END PGP SIGNATURE-----
payloadX  tree 69a18652d9c7ea632d7c0bab6fe63e49b0e1e69e
parent 188f73b744c3616b1597253b6187c0914b6c3854
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1678141849 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1678141849 +0000

Excavator:  Prefer AssertJuuj< ^https://api.github.com/repos/palantir/atlasdb/commits/72b90320ff2e955e3770f288b7d1c6b30c53b4fbhtml_urlShttps://github.com/palantir/atlasdb/commit/72b90320ff2e955e3770f288b7d1c6b30c53b4fbcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/72b90320ff2e955e3770f288b7d1c6b30c53b4fb/commentsj< }(loginsvc-excavator-botidJj< MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j< .https://api.github.com/users/svc-excavator-botj< $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj< }(j< svc-excavator-botj< Jj< MDQ6VXNlcjMzMjY2MzY4j< 4https://avatars.githubusercontent.com/u/33266368?v=4j< h5j< .https://api.github.com/users/svc-excavator-botj< $https://github.com/svc-excavator-botj< 8https://api.github.com/users/svc-excavator-bot/followersj< Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}j< >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}j< Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}j< <https://api.github.com/users/svc-excavator-bot/subscriptionsj< 3https://api.github.com/users/svc-excavator-bot/orgsj< 4https://api.github.com/users/svc-excavator-bot/reposj< ?https://api.github.com/users/svc-excavator-bot/events{/privacy}j< >https://api.github.com/users/svc-excavator-bot/received_eventsj< Userj< uparents]}(j< (188f73b744c3616b1597253b6187c0914b6c3854j< ^https://api.github.com/repos/palantir/atlasdb/commits/188f73b744c3616b1597253b6187c0914b6c3854j< Shttps://github.com/palantir/atlasdb/commit/188f73b744c3616b1597253b6187c0914b6c3854uastats}(totalK	additionsK	deletionsKufiles](}(j< (fd1baf9d0e10493f64c7a840d18bcc68fb558484filenamejatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTableTest.javastatusmodifiedj< Kj< KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/72b90320ff2e955e3770f288b7d1c6b30c53b4fb/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/72b90320ff2e955e3770f288b7d1c6b30c53b4fb/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableTest.java?ref=72b90320ff2e955e3770f288b7d1c6b30c53b4fbpatchX  @@ -138,10 +138,10 @@ public void canPutAndGetMultiple() throws ExecutionException, InterruptedExcepti
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 3L, 5L, 7L)).get();
         assertThat(result).hasSize(4);
-        assertThat(result.get(1L)).isEqualTo(TransactionStatus.committed(2L));
-        assertThat(result.get(3L)).isEqualTo(TransactionStatus.committed(4L));
-        assertThat(result.get(5L)).isEqualTo(TransactionStatus.inProgress());
-        assertThat(result.get(7L)).isEqualTo(TransactionStatus.committed(8L));
+        assertThat(result).containsEntry(1L, TransactionStatus.committed(2L));
+        assertThat(result).containsEntry(3L, TransactionStatus.committed(4L));
+        assertThat(result).containsEntry(5L, TransactionStatus.inProgress());
+        assertThat(result).containsEntry(7L, TransactionStatus.committed(8L));
     }
 
     @Testu}(j< (c30e4209d1461e906aba38866e6b65b2812e4303j< gatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/SimpleCommitTimestampAtomicTableTest.javaj< modifiedj< Kj< Kj< Kj< https://github.com/palantir/atlasdb/blob/72b90320ff2e955e3770f288b7d1c6b30c53b4fb/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FSimpleCommitTimestampAtomicTableTest.java     j< https://github.com/palantir/atlasdb/raw/72b90320ff2e955e3770f288b7d1c6b30c53b4fb/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FSimpleCommitTimestampAtomicTableTest.javaj< https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FSimpleCommitTimestampAtomicTableTest.java?ref=72b90320ff2e955e3770f288b7d1c6b30c53b4fbj< X  @@ -85,9 +85,9 @@ public void canPutAndGetMultiple() throws ExecutionException, InterruptedExcepti
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 3L, 5L, 7L)).get();
         assertThat(result).hasSize(4);
-        assertThat(result.get(1L)).isEqualTo(TransactionStatus.committed(2L));
-        assertThat(result.get(3L)).isEqualTo(TransactionStatus.committed(4L));
-        assertThat(result.get(7L)).isEqualTo(TransactionStatus.committed(8L));
+        assertThat(result).containsEntry(1L, TransactionStatus.committed(2L));
+        assertThat(result).containsEntry(3L, TransactionStatus.committed(4L));
+        assertThat(result).containsEntry(7L, TransactionStatus.committed(8L));
     }
 
     @Testueu(793ad61985e31b39d573651694ca7d48603c4ae7}(sha(793ad61985e31b39d573651694ca7d48603c4ae7node_idEC_kwDOAjP5fdoAKDc5M2FkNjE5ODVlMzFiMzlkNTczNjUxNjk0Y2E3ZDQ4NjAzYzRhZTccommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-19T12:34:52Zu	committer}(j	= 	Tom Papkej= tpapke@palantir.comj
= 2023-08-10T08:41:13Zumessage$Aggregate metadata for commit updatetree}(j= (1537bc295b209c2a5e6db65542c8ea2e614a5b7burl`https://api.github.com/repos/palantir/atlasdb/git/trees/1537bc295b209c2a5e6db65542c8ea2e614a5b7buj= bhttps://api.github.com/repos/palantir/atlasdb/git/commits/793ad61985e31b39d573651694ca7d48603c4ae7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTUoqkACgkQmF9s0kaF
Iw1PWAf+PY26MYeWER+UX8S2nRVd4j/UwuIVJrWLXMD9LPh6+iPrOCrG49XW++1b
GkkDDWqNi917+982cF47bbLmMxbvmOTKBhrSOKd785BVH3UAWG0LyLuUFebW9K7E
UDZCIKQ7naGydi6b5Ocoydkvp2+rGkVFcXVJqz0dqnEc7Vtvl2K69IBvfmcMsNSB
mFRrg48Pye+WHX6r1tq6TrnMKxg/f+YBNYc4wLdpIGrVh7jSEszpTMke7wA05A4p
tQfqPZDVu46aUEgN6Fz0+YPvpz/hWnPoflUsPswM3MuDtwY+uFk1HSIJMV4faNpK
yd8OhQHSVVGA5pVRPiESsj0mwiIZDw==
=WgvP
-----END PGP SIGNATURE-----payloadtree 1537bc295b209c2a5e6db65542c8ea2e614a5b7b
parent 99e2c16fb38f05280b1081eaa6e15da4fca051e9
author Tom Papke <tpapke@palantir.com> 1689770092 +0100
committer Tom Papke <tpapke@palantir.com> 1691656873 +0100

Aggregate metadata for commit update
uuj= ^https://api.github.com/repos/palantir/atlasdb/commits/793ad61985e31b39d573651694ca7d48603c4ae7html_urlShttps://github.com/palantir/atlasdb/commit/793ad61985e31b39d573651694ca7d48603c4ae7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/793ad61985e31b39d573651694ca7d48603c4ae7/commentsj= }(login	ToemmscheidJboj= MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j= &https://api.github.com/users/Toemmschej'= https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj= }(j,= 	Toemmschej.= Jboj= MDQ6VXNlcjQzNjc1NDkwj0= 4https://avatars.githubusercontent.com/u/43675490?v=4j2= h5j= &https://api.github.com/users/Toemmschej'= https://github.com/Toemmschej5= 0https://api.github.com/users/Toemmsche/followersj7= =https://api.github.com/users/Toemmsche/following{/other_user}j9= 6https://api.github.com/users/Toemmsche/gists{/gist_id}j;= =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j== 4https://api.github.com/users/Toemmsche/subscriptionsj?= +https://api.github.com/users/Toemmsche/orgsjA= ,https://api.github.com/users/Toemmsche/reposjC= 7https://api.github.com/users/Toemmsche/events{/privacy}jE= 6https://api.github.com/users/Toemmsche/received_eventsjG= UserjI= uparents]}(j= (99e2c16fb38f05280b1081eaa6e15da4fca051e9j= ^https://api.github.com/repos/palantir/atlasdb/commits/99e2c16fb38f05280b1081eaa6e15da4fca051e9j'= Shttps://github.com/palantir/atlasdb/commit/99e2c16fb38f05280b1081eaa6e15da4fca051e9uastats}(totalM:	additionsM*	deletionsKufiles](}(j= (f5a68a0eb3a5fd6af9e8f7b6098debba1f3499e9filename^atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/watch/ClientLogEvents.javastatusmodifiedjc= KPjd= KchangesK[blob_urlhttps://github.com/palantir/atlasdb/blob/793ad61985e31b39d573651694ca7d48603c4ae7/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FClientLogEvents.javaraw_urlhttps://github.com/palantir/atlasdb/raw/793ad61985e31b39d573651694ca7d48603c4ae7/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FClientLogEvents.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FClientLogEvents.java?ref=793ad61985e31b39d573651694ca7d48603c4ae7patchX  @@ -16,13 +16,17 @@
 
 package com.palantir.atlasdb.keyvalue.api.watch;
 
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Range;
+import com.google.common.collect.Sets;
 import com.palantir.atlasdb.keyvalue.api.watch.TimestampStateStore.CommitInfo;
 import com.palantir.atlasdb.transaction.api.TransactionLockWatchFailedException;
+import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.client.LeasedLockToken;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.ChangeMetadata;
 import com.palantir.lock.watch.CommitUpdate;
 import com.palantir.lock.watch.ImmutableTransactionsLockWatchUpdate;
 import com.palantir.lock.watch.LockEvent;
@@ -34,9 +38,12 @@
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
+import java.util.stream.Collectors;
 import org.immutables.value.Value;
 
 /**
@@ -94,10 +101,53 @@ default CommitUpdate toCommitUpdate(
         verifyReturnedEventsEnclosesTransactionVersions(startVersion.version() + 1, endVersion.version());
 
         LockEventVisitor eventVisitor = new LockEventVisitor(commitInfo.map(CommitInfo::commitLockToken));
-        Set<LockDescriptor> locksTakenOut = events().events().stream()
+
+        Set<LockDescriptor> locksFromLockWatchCreatedEvents = events().events().stream()
+                .flatMap(event -> event.accept(LockWatchCreatedEventVisitor.INSTANCE).stream())
+                .collect(Collectors.toUnmodifiableSet());
+        List<LockEvent> lockEvents = events().events().stream()
                 .flatMap(event -> event.accept(eventVisitor).stream())
-                .collect(ImmutableSet.toImmutableSet());
-        return CommitUpdate.invalidateSome(locksTakenOut);
+                .collect(Collectors.toUnmodifiableList());
+        Set<LockDescriptor> locksFromLockEvents = lockEvents.stream()
+                .map(LockEvent::lockDescriptors)
+                .flatMap(Set::stream)
+                .collect(Collectors.toUnmodifiableSet());
+
+        /*
+         * Metadata aggregation semantics for a lock descriptor L:
+         * - If L appears in a LockWatchCreatedEvent, L will be excluded from the aggregation result.
+         * - Otherwise, if there is a lock event that contains L, but L does not have metadata associated in this lock
+         *   event, L is also excluded from the aggregation result.
+         * - Otherwise, the metadata objects associated with L are listed in the order of the lock events they appear
+         *   in.
+         */
+        Map<LockDescriptor, ImmutableList.Builder<ChangeMetadata>> locksWithAggregatedMetadataBuilder = KeyedStream.of(
+                        Sets.difference(locksFromLockEvents, locksFromLockWatchCreatedEvents).stream())
+                .map(_unused -> new ImmutableList.Builder<ChangeMetadata>())
+                .collectToMap();
+        for (LockEvent lockEvent : lockEvents) {
+            for (LockDescriptor lock : lockEvent.lockDescriptors()) {
+                if (!locksWithAggregatedMetadataBuilder.containsKey(lock)) {
+                    continue;
+                }
+                Optional<ChangeMetadata> changeMetadata = lockEvent
+                        .metadata()
+                        .map(metadata ->
+                                metadata.lockDescriptorToChangeMetadata().get(lock));
+                if (lockEvent.metadata().isEmpty() || changeMetadata.isEmpty()) {
+                    locksWithAggregatedMetadataBuilder.remove(lock);
+                } else {
+                    locksWithAggregatedMetadataBuilder.get(lock).add(changeMetadata.get());
+                }
+            }
+        }
+
+        Set<LockDescriptor> locksTakenOut = Sets.union(locksFromLockEvents, locksFromLockWatchCreatedEvents);
+        Map<LockDescriptor, List<ChangeMetadata>> locksWithAggregatedMetadata = KeyedStream.ofEntries(
+                        locksWithAggregatedMetadataBuilder.entrySet().stream())
+                .<List<ChangeMetadata>>map(ImmutableList.Builder::build)
+                .collectToMap();
+        return CommitUpdate.invalidateSome(locksTakenOut, locksWithAggregatedMetadata);
     }
 
     default void verifyReturnedEventsEnclosesTransactionVersions(long lowerBound, long upperBound) {
@@ -121,7 +171,26 @@ static ImmutableClientLogEvents.Builder builder() {
         return ImmutableClientLogEvents.builder();
     }
 
-    final class LockEventVisitor implements LockWatchEvent.Visitor<Set<LockDescriptor>> {
+    enum LockWatchCreatedEventVisitor implements LockWatchEvent.Visitor<Set<LockDescriptor>> {
+        INSTANCE;
+
+        @Override
+        public Set<LockDescriptor> visit(LockEvent lockEvent) {
+            return ImmutableSet.of();
+        }
+
+        @Override
+        public Set<LockDescriptor> visit(UnlockEvent unlockEvent) {
+            return ImmutableSet.of();
+        }
+
+        @Override
+        public Set<LockDescriptor> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
+            return lockWatchCreatedEvent.lockDescriptors();
+        }
+    }
+
+    final class LockEventVisitor implements LockWatchEvent.Visitor<Optional<LockEvent>> {
         private final Optional<UUID> commitRequestId;
 
         private LockEventVisitor(Optional<LockToken> commitLocksToken) {
@@ -132,24 +201,24 @@ private LockEventVisitor(Optional<LockToken> commitLocksToken) {
         }
 
         @Override
-        public Set<LockDescriptor> visit(LockEvent lockEvent) {
+        public Optional<LockEvent> visit(LockEvent lockEvent) {
             if (commitRequestId
                     .filter(requestId -> requestId.equals(lockEvent.lockToken().getRequestId()))
                     .isPresent()) {
-                return ImmutableSet.of();
+                return Optional.empty();
             } else {
-                return lockEvent.lockDescriptors();
+                return Optional.of(lockEvent);
             }
         }
 
         @Override
-        public Set<LockDescriptor> visit(UnlockEvent unlockEvent) {
-            return ImmutableSet.of();
+        public Optional<LockEvent> visit(UnlockEvent unlockEvent) {
+            return Optional.empty();
         }
 
         @Override
-        public Set<LockDescriptor> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
-            return lockWatchCreatedEvent.lockDescriptors();
+        public Optional<LockEvent> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
+            return Optional.empty();
         }
     }
 }u}(j= (fda4cf55ad34d2dbb793bf3906c9c6155cd19ee0ji= batlasdb-impl-shared/src/test/java/com/palantir/atlasdb/keyvalue/api/watch/ClientLogEventsTest.javajk= modifiedjc= Kjd= Kjm= Kjn= https://github.com/palantir/atlasdb/blob/793ad61985e31b39d573651694ca7d48603c4ae7/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FClientLogEventsTest.javajp= https://github.com/palantir/atlasdb/raw/793ad61985e31b39d573651694ca7d48603c4ae7/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FClientLogEventsTest.javajr= https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FClientLogEventsTest.java?ref=793ad61985e31b39d573651694ca7d48603c4ae7jt= X/  @@ -21,15 +21,22 @@
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.timelock.api.ConjureLockToken;
 import com.palantir.atlasdb.transaction.api.TransactionLockWatchFailedException;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.StringLockDescriptor;
 import com.palantir.lock.client.LeasedLockToken;
 import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.watch.ChangeMetadata;
 import com.palantir.lock.watch.CommitUpdate;
+import com.palantir.lock.watch.ImmutableLockWatchCreatedEvent;
+import com.palantir.lock.watch.ImmutableUnlockEvent;
 import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
 import com.palantir.lock.watch.LockWatchReferences;
@@ -38,9 +45,13 @@
 import com.palantir.lock.watch.TransactionsLockWatchUpdate;
 import com.palantir.lock.watch.UnlockEvent;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import org.junit.Test;
 
 public final class ClientLogEventsTest {
@@ -58,6 +69,8 @@ public final class ClientLogEventsTest {
     private static final long TIMESTAMP_3 = 99L;
     private static final LockWatchVersion VERSION_0 = LockWatchVersion.of(LEADER, 0L);
     private static final LockWatchVersion VERSION_1 = LockWatchVersion.of(LEADER, SEQUENCE_1);
+    private static final LockWatchVersion VERSION_2 = LockWatchVersion.of(LEADER, SEQUENCE_2);
+    private static final LockWatchVersion VERSION_3 = LockWatchVersion.of(LEADER, SEQUENCE_3);
     private static final LockWatchVersion VERSION_4 = LockWatchVersion.of(LEADER, SEQUENCE_4);
 
     private static final LockDescriptor DESCRIPTOR_1 = StringLockDescriptor.of("lwelt-one");
@@ -66,15 +79,26 @@ public final class ClientLogEventsTest {
 
     private static final LockWatchReference REFERENCE_1 = LockWatchReferences.entireTable("table.one");
 
+    private static final ChangeMetadata CHANGE_METADATA_A = ChangeMetadata.created(PtBytes.toBytes("aaa"));
+    private static final ChangeMetadata CHANGE_METADATA_B = ChangeMetadata.deleted(PtBytes.toBytes("bbb"));
+    private static final ChangeMetadata CHANGE_METADATA_C =
+            ChangeMetadata.updated(PtBytes.toBytes("cc"), PtBytes.toBytes("ccc"));
+    private static final LockRequestMetadata METADATA_1 =
+            LockRequestMetadata.of(ImmutableMap.of(DESCRIPTOR_1, CHANGE_METADATA_A));
+    private static final LockRequestMetadata METADATA_2 =
+            LockRequestMetadata.of(ImmutableMap.of(DESCRIPTOR_1, CHANGE_METADATA_B));
+
     private static final LockWatchEvent LOCK_WATCH_EVENT_VERSION_1 = LockWatchCreatedEvent.builder(
                     ImmutableSet.of(REFERENCE_1), ImmutableSet.of(DESCRIPTOR_3))
             .build(SEQUENCE_1);
-    private static final LockWatchEvent LOCK_DESCRIPTOR_2_VERSION_2 =
-            LockEvent.builder(ImmutableSet.of(DESCRIPTOR_2), LOCK_TOKEN_1).build(SEQUENCE_2);
+    private static final LockWatchEvent LOCK_DESCRIPTOR_2_VERSION_2 = LockEvent.builder(
+                    ImmutableSet.of(DESCRIPTOR_2), LOCK_TOKEN_1, Optional.of(METADATA_1))
+            .build(SEQUENCE_2);
     private static final LockWatchEvent UNLOCK_DESCRIPTOR_2_VERSION_3 =
             UnlockEvent.builder(ImmutableSet.of(DESCRIPTOR_1)).build(SEQUENCE_3);
-    private static final LockWatchEvent LOCK_DESCRIPTOR_1_VERSION_4 =
-            LockEvent.builder(ImmutableSet.of(DESCRIPTOR_1), LOCK_TOKEN_2).build(SEQUENCE_4);
+    private static final LockWatchEvent LOCK_DESCRIPTOR_1_VERSION_4 = LockEvent.builder(
+                    ImmutableSet.of(DESCRIPTOR_1), LOCK_TOKEN_2, Optional.of(METADATA_2))
+            .build(SEQUENCE_4);
 
     private static final LockWatchEvents EVENTS_2_TO_4 = LockWatchEvents.builder()
             .addEvents(LOCK_DESCRIPTOR_2_VERSION_2, UNLOCK_DESCRIPTOR_2_VERSION_3, LOCK_DESCRIPTOR_1_VERSION_4)
@@ -242,6 +266,88 @@ public void toCommitUpdateAlsoIncludesDescriptorsFromWatchEvents() {
         assertThat(lockDescriptors).containsExactlyInAnyOrder(DESCRIPTOR_1, DESCRIPTOR_2, DESCRIPTOR_3);
     }
 
+    @Test
+    public void toCommitUpdateIncludesNoAggregatedMetadataForLockDescriptorIfMetadataNotAlwaysPresent() {
+        ClientLogEvents clientLogEvents = createClientLogEventsForLockDescriptorsAndMetadata(ImmutableList.of(
+                LocksAndMetadata.of(
+                        ImmutableSet.of(DESCRIPTOR_1, DESCRIPTOR_2),
+                        Optional.of(LockRequestMetadata.of(
+                                ImmutableMap.of(DESCRIPTOR_1, CHANGE_METADATA_A, DESCRIPTOR_2, CHANGE_METADATA_B)))),
+                LocksAndMetadata.of(
+                        ImmutableSet.of(DESCRIPTOR_2), Optional.of(LockRequestMetadata.of(ImmutableMap.of()))),
+                LocksAndMetadata.of(ImmutableSet.of(DESCRIPTOR_1), Optional.empty())));
+
+        CommitUpdate commitUpdate = clientLogEvents.toCommitUpdate(VERSION_0, VERSION_2, Optional.empty());
+
+        Map<LockDescriptor, List<ChangeMetadata>> aggregatedMetadata = extractAggregatedMetadata(commitUpdate);
+        assertThat(aggregatedMetadata).isEmpty();
+    }
+
+    @Test
+    public void toCommitUpdateAggregatesMetadataForLockDescriptorIfMetadataAlwaysPresent() {
+        ClientLogEvents clientLogEvents = createClientLogEventsForLockDescriptorsAndMetadata(ImmutableList.of(
+                LocksAndMetadata.of(
+                        ImmutableSet.of(DESCRIPTOR_1, DESCRIPTOR_2),
+                        Optional.of(LockRequestMetadata.of(
+                                ImmutableMap.of(DESCRIPTOR_1, CHANGE_METADATA_A, DESCRIPTOR_2, CHANGE_METADATA_C)))),
+                LocksAndMetadata.of(
+                        ImmutableSet.of(DESCRIPTOR_2),
+                        Optional.of(LockRequestMetadata.of(ImmutableMap.of(DESCRIPTOR_2, CHANGE_METADATA_B)))),
+                LocksAndMetadata.of(
+                        ImmutableSet.of(DESCRIPTOR_3),
+                        Optional.of(LockRequestMetadata.of(ImmutableMap.of(DESCRIPTOR_3, CHANGE_METADATA_C)))),
+                LocksAndMetadata.of(
+                        ImmutableSet.of(DESCRIPTOR_2, DESCRIPTOR_3, DESCRIPTOR_1),
+                        Optional.of(LockRequestMetadata.of(ImmutableMap.of(
+                                DESCRIPTOR_1,
+                                CHANGE_METADATA_C,
+                                DESCRIPTOR_2,
+                                CHANGE_METADATA_A,
+                                DESCRIPTOR_3,
+                                CHANGE_METADATA_B))))));
+
+        CommitUpdate commitUpdate = clientLogEvents.toCommitUpdate(VERSION_0, VERSION_3, Optional.empty());
+
+        Map<LockDescriptor, List<ChangeMetadata>> aggregatedMetadata = extractAggregatedMetadata(commitUpdate);
+        assertThat(aggregatedMetadata)
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(
+                        DESCRIPTOR_1, ImmutableList.of(CHANGE_METADATA_A, CHANGE_METADATA_C),
+                        DESCRIPTOR_2, ImmutableList.of(CHANGE_METADATA_C, CHANGE_METADATA_B, CHANGE_METADATA_A),
+                        DESCRIPTOR_3, ImmutableList.of(CHANGE_METADATA_C, CHANGE_METADATA_B)));
+    }
+
+    @Test
+    public void toCommitUpdateIncludesNoAggregatedMetadataForLockDescriptorThatAppearInALockWatchCreatedEvent() {
+        ClientLogEvents clientLogEvents = createClientLogEventsForLockDescriptorsAndMetadata(ImmutableList.of(
+                LocksAndMetadata.of(
+                        ImmutableSet.of(DESCRIPTOR_1, DESCRIPTOR_2),
+                        Optional.of(LockRequestMetadata.of(
+                                ImmutableMap.of(DESCRIPTOR_1, CHANGE_METADATA_A, DESCRIPTOR_2, CHANGE_METADATA_B)))),
+                LocksAndMetadata.of(
+                        ImmutableSet.of(DESCRIPTOR_1),
+                        Optional.of(LockRequestMetadata.of(ImmutableMap.of(DESCRIPTOR_1, CHANGE_METADATA_C))))));
+        LockWatchEvents extendedEvents = LockWatchEvents.builder()
+                .from(clientLogEvents.events())
+                .addEvents(
+                        ImmutableLockWatchCreatedEvent.builder()
+                                .addLockDescriptors(DESCRIPTOR_2)
+                                .sequence(2)
+                                .build(),
+                        ImmutableUnlockEvent.builder()
+                                .addLockDescriptors(DESCRIPTOR_1, DESCRIPTOR_3)
+                                .sequence(3)
+                                .build())
+                .build();
+
+        CommitUpdate commitUpdate = ImmutableClientLogEvents.copyOf(clientLogEvents)
+                .withEvents(extendedEvents)
+                .toCommitUpdate(VERSION_0, VERSION_3, Optional.empty());
+
+        Map<LockDescriptor, List<ChangeMetadata>> aggregatedMetadata = extractAggregatedMetadata(commitUpdate);
+        assertThat(aggregatedMetadata)
+                .isEqualTo(ImmutableMap.of(DESCRIPTOR_1, ImmutableList.of(CHANGE_METADATA_A, CHANGE_METADATA_C)));
+    }
+
     private static Set<LockDescriptor> extractLockDescriptors(CommitUpdate commitUpdate) {
         return commitUpdate.accept(new CommitUpdate.Visitor<>() {
             @Override
@@ -270,6 +376,10 @@ public Boolean invalidateSome(Set<LockDescriptor> invalidatedLocks) {
         });
     }
 
+    private static Map<LockDescriptor, List<ChangeMetadata>> extractAggregatedMetadata(CommitUpdate commitUpdate) {
+        return commitUpdate.accept(CommitUpdateMetadataVisitor.INSTANCE);
+    }
+
     private static TimestampMapping createTimestampMappingWithSequences(long lowerSequence, long upperSequence) {
         // Create a timestamp mapping with timestamps at the extremes, as well as one in the middle to confirm that it
         // does not influence the checks here
@@ -279,4 +389,41 @@ private static TimestampMapping createTimestampMappingWithSequences(long lowerSe
                 .putTimestampMapping(TIMESTAMP_3, LockWatchVersion.of(LEADER, upperSequence))
                 .build();
     }
+
+    private static ClientLogEvents createClientLogEventsForLockDescriptorsAndMetadata(
+            List<LocksAndMetadata> locksAndMetadata) {
+        return ClientLogEvents.builder()
+                .clearCache(false)
+                .events(LockWatchEvents.builder()
+                        .events(IntStream.range(0, locksAndMetadata.size())
+                                .mapToObj(i -> LockEvent.builder(
+                                                locksAndMetadata.get(i).lockDescriptors(),
+                                                LOCK_TOKEN_1,
+                                                locksAndMetadata.get(i).metadata())
+                                        .build(i))
+                                .collect(Collectors.toUnmodifiableList()))
+                        .build())
+                .build();
+    }
+
+    private enum CommitUpdateMetadataVisitor
+            implements CommitUpdate.Visitor<Map<LockDescriptor, List<ChangeMetadata>>> {
+        INSTANCE;
+
+        @Override
+        public Map<LockDescriptor, List<ChangeMetadata>> invalidateAll() {
+            throw new SafeIllegalStateException("commit update was invalidate all");
+        }
+
+        @Override
+        public Map<LockDescriptor, List<ChangeMetadata>> invalidateSome(Set<LockDescriptor> invalidatedLocks) {
+            throw new SafeIllegalStateException("invalidate some without metadata");
+        }
+
+        @Override
+        public Map<LockDescriptor, List<ChangeMetadata>> invalidateSome(
+                Set<LockDescriptor> invalidatedLocks, Map<LockDescriptor, List<ChangeMetadata>> aggregatedMetadata) {
+            return aggregatedMetadata;
+        }
+    }
 }u}(j= (e9a1195eff115d3907199a688fe4056a2c176a5cji= Hlock-api-objects/src/main/java/com/palantir/lock/watch/CommitUpdate.javajk= modifiedjc= Kjd= Kjm= Kjn= https://github.com/palantir/atlasdb/blob/793ad61985e31b39d573651694ca7d48603c4ae7/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FCommitUpdate.javajp= https://github.com/palantir/atlasdb/raw/793ad61985e31b39d573651694ca7d48603c4ae7/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FCommitUpdate.javajr= https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FCommitUpdate.java?ref=793ad61985e31b39d573651694ca7d48603c4ae7jt= X  @@ -25,6 +25,8 @@
 import com.palantir.lock.watch.CommitUpdate.InvalidateAll;
 import com.palantir.lock.watch.CommitUpdate.InvalidateSome;
 import com.palantir.logsafe.Unsafe;
+import java.util.List;
+import java.util.Map;
 import java.util.Set;
 import org.immutables.value.Value;
 
@@ -45,6 +47,15 @@ static CommitUpdate invalidateSome(Set<LockDescriptor> descriptors) {
         return ImmutableInvalidateSome.builder().invalidatedLocks(descriptors).build();
     }
 
+    @Unsafe
+    static CommitUpdate invalidateSome(
+            Set<LockDescriptor> descriptors, Map<LockDescriptor, List<ChangeMetadata>> aggregatedMetadata) {
+        return ImmutableInvalidateSome.builder()
+                .invalidatedLocks(descriptors)
+                .aggregatedMetadata(aggregatedMetadata)
+                .build();
+    }
+
     @Value.Immutable
     @JsonSerialize(as = ImmutableInvalidateAll.class)
     @JsonDeserialize(as = ImmutableInvalidateAll.class)
@@ -68,15 +79,23 @@ interface InvalidateSome extends CommitUpdate {
 
         Set<LockDescriptor> invalidatedLocks();
 
+        // See ClientLogEvents for metadata aggregation semantics
+        Map<LockDescriptor, List<ChangeMetadata>> aggregatedMetadata();
+
         @Override
         default <T> T accept(Visitor<T> visitor) {
-            return visitor.invalidateSome(invalidatedLocks());
+            return visitor.invalidateSome(invalidatedLocks(), aggregatedMetadata());
         }
     }
 
     interface Visitor<T> {
         T invalidateAll();
 
         T invalidateSome(Set<LockDescriptor> invalidatedLocks);
+
+        default T invalidateSome(
+                Set<LockDescriptor> invalidatedLocks, Map<LockDescriptor, List<ChangeMetadata>> aggregatedMetadata) {
+            return invalidateSome(invalidatedLocks);
+        }
     }
 }u}(j= (97495b584e83cd75bc926e1e811fa47c3d0c866eji= ctimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchEventIntegrationTest.javajk= modifiedjc= K/jd= K jm= K/jn= https://github.com/palantir/atlasdb/blob/793ad61985e31b39d573651694ca7d48603c4ae7/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javajp= https://github.com/palantir/atlasdb/raw/793ad61985e31b39d573651694ca7d48603c4ae7/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javajr= https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.java?ref=793ad61985e31b39d573651694ca7d48603c4ae7jt= X  @@ -391,6 +391,28 @@ public void metadataFilteredAccordingToWatches() {
                         );
     }
 
+    @Test
+    public void commitUpdateContainsAggregatedMetadata() {
+        CommitUpdateExtractingCondition condition = new CommitUpdateExtractingCondition();
+
+        txnManager.runTaskWithConditionThrowOnConflict(condition, (outerTxn, _unused1) -> {
+            condition.initialiseWithStartTimestamp(outerTxn.getTimestamp());
+            outerTxn.put(TABLE_REF, ImmutableMap.of(CELL_1, DATA_1));
+            performWriteMetadataTransactionLockingAndUnlockingCells(
+                    TABLE_REF, ImmutableMap.of(CELL_2, ValueAndChangeMetadata.of(DATA_2, CREATE_CHANGE_METADATA)));
+            performWriteMetadataTransactionLockingAndUnlockingCells(
+                    TABLE_REF, ImmutableMap.of(CELL_2, ValueAndChangeMetadata.of(DATA_3, DELETE_CHANGE_METADATA)));
+            return null;
+        });
+
+        CommitUpdate commitUpdate = condition.getCommitStageResult();
+
+        assertThat(extractAggregatedMetadataFromUpdate(commitUpdate))
+                .containsExactly(Map.entry(
+                        getDescriptor(TABLE_REF, CELL_2),
+                        ImmutableList.of(CREATE_CHANGE_METADATA, DELETE_CHANGE_METADATA)));
+    }
+
     private Runnable performWriteTransactionThatBlocksAfterLockingCells() {
         CountDownLatch endOfTest = new CountDownLatch(1);
         CountDownLatch inCommitBlock = new CountDownLatch(1);
@@ -555,6 +577,10 @@ public Set<LockDescriptor> invalidateSome(Set<LockDescriptor> invalidatedLocks)
         }));
     }
 
+    private Map<LockDescriptor, List<ChangeMetadata>> extractAggregatedMetadataFromUpdate(CommitUpdate commitUpdate) {
+        return commitUpdate.accept(CommitUpdateMetadataVisitor.INSTANCE);
+    }
+
     private static final class LockEventVisitor implements LockWatchEvent.Visitor<Set<LockDescriptor>> {
         static final LockEventVisitor INSTANCE = new LockEventVisitor();
 
@@ -622,4 +648,25 @@ public CommitUpdateExtractingCondition() {
             });
         }
     }
+
+    private enum CommitUpdateMetadataVisitor
+            implements CommitUpdate.Visitor<Map<LockDescriptor, List<ChangeMetadata>>> {
+        INSTANCE;
+
+        @Override
+        public Map<LockDescriptor, List<ChangeMetadata>> invalidateAll() {
+            throw new SafeIllegalStateException("Should not be visiting invalidateAll update");
+        }
+
+        @Override
+        public Map<LockDescriptor, List<ChangeMetadata>> invalidateSome(Set<LockDescriptor> invalidatedLocks) {
+            throw new SafeIllegalStateException("Should not be visiting invalidateSome update without metadata");
+        }
+
+        @Override
+        public Map<LockDescriptor, List<ChangeMetadata>> invalidateSome(
+                Set<LockDescriptor> invalidatedLocks, Map<LockDescriptor, List<ChangeMetadata>> aggregatedMetadata) {
+            return aggregatedMetadata;
+        }
+    }
 }ueu(3052930a3efde7d797a02ae26a35663b7bec5c8f}(sha(3052930a3efde7d797a02ae26a35663b7bec5c8fnode_idEC_kwDOAjP5fdoAKDMwNTI5MzBhM2VmZGU3ZDc5N2EwMmFlMjZhMzU2NjNiN2JlYzVjOGYcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-08-17T13:07:45Zu	committer}(j= David Schlosnaglej= davids@palantir.comj= 2023-08-17T13:07:45Zumessagesls-versions 1.5.0tree}(j= (593aae8268003359f86d97a915230880d25f3f02url`https://api.github.com/repos/palantir/atlasdb/git/trees/593aae8268003359f86d97a915230880d25f3f02uj= bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3052930a3efde7d797a02ae26a35663b7bec5c8f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmTeG6EACgkQR9hsJ74Q
0l+vhgf/WX0Hr28Wye8nVmBoOe+zJQV+Bc+3SmgBfHMnw8c83Mr0eeEJpoQ2v/uz
ozKaLelG+W3eLVT1xoojEYew+zNdXEky+DpECc3xExocbyg/alvPPrjuKFe4cwFF
E8V8S381fzvgxQHD4AgWJw00J53cojsZbxyP5ufuEMN86F+BqY512MsXtS+V7t4f
NqILwDMUCES6xyLwTT+zfMBNuE5qNmSoXeNzcuqAWKEjo1TyvEQ91ar7MHyteA7e
553/C/68GoWnjFl56+9asHnHs3GOlu+gplLDuOAr8Uh98iNZOcwOJPQmBGpaeyS6
pLPakhsH3RgDfFSdCELrRVuvrsjOtQ==
=vSaM
-----END PGP SIGNATURE-----payloadtree 593aae8268003359f86d97a915230880d25f3f02
parent 6a3c97dc4b7d892b941b13ee16a423c2a7d28bcf
author David Schlosnagle <davids@palantir.com> 1692277665 -0400
committer David Schlosnagle <davids@palantir.com> 1692277665 -0400

sls-versions 1.5.0
uuj= ^https://api.github.com/repos/palantir/atlasdb/commits/3052930a3efde7d797a02ae26a35663b7bec5c8fhtml_urlShttps://github.com/palantir/atlasdb/commit/3052930a3efde7d797a02ae26a35663b7bec5c8fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3052930a3efde7d797a02ae26a35663b7bec5c8f/commentsj= }(loginschlosnaidMBj= MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j= %https://api.github.com/users/schlosnaj= https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj= }(j= schlosnaj= MBj= MDQ6VXNlcjU0NTk0j= 1https://avatars.githubusercontent.com/u/54594?v=4j= h5j= %https://api.github.com/users/schlosnaj= https://github.com/schlosnaj= /https://api.github.com/users/schlosna/followersj= <https://api.github.com/users/schlosna/following{/other_user}j= 5https://api.github.com/users/schlosna/gists{/gist_id}j= <https://api.github.com/users/schlosna/starred{/owner}{/repo}j= 3https://api.github.com/users/schlosna/subscriptionsj= *https://api.github.com/users/schlosna/orgsj= +https://api.github.com/users/schlosna/reposj= 6https://api.github.com/users/schlosna/events{/privacy}j= 5https://api.github.com/users/schlosna/received_eventsj= Userj= uparents]}(j= (6a3c97dc4b7d892b941b13ee16a423c2a7d28bcfj= ^https://api.github.com/repos/palantir/atlasdb/commits/6a3c97dc4b7d892b941b13ee16a423c2a7d28bcfj= Shttps://github.com/palantir/atlasdb/commit/6a3c97dc4b7d892b941b13ee16a423c2a7d28bcfuastats}(totalK	additionsK	deletionsKufiles](}(j= (3027b959ef79a9cd5ac870e56956e9628140a9f2filename
versions.lockstatusmodifiedj= Kj= KchangesK
blob_url_https://github.com/palantir/atlasdb/blob/3052930a3efde7d797a02ae26a35663b7bec5c8f/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/3052930a3efde7d797a02ae26a35663b7bec5c8f/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=3052930a3efde7d797a02ae26a35663b7bec5c8fpatchX  @@ -8,7 +8,7 @@ com.boundary:high-scale-lib:1.0.6 (2 constraints: 9d14d4a0)
 com.clearspring.analytics:stream:2.5.2 (1 constraints: 970f7788)
 com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
-com.fasterxml.jackson.core:jackson-annotations:2.15.2 (24 constraints: c9813ad0)
+com.fasterxml.jackson.core:jackson-annotations:2.15.2 (24 constraints: cc81b4d7)
 com.fasterxml.jackson.core:jackson-core:2.15.2 (22 constraints: c8b5b89d)
 com.fasterxml.jackson.core:jackson-databind:2.15.2 (37 constraints: 59b96839)
 com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.15.2 (2 constraints: e4333401)
@@ -98,13 +98,13 @@ com.palantir.goethe:goethe:0.11.0 (1 constraints: 3405263b)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
 com.palantir.ri:resource-identifier:2.6.0 (3 constraints: aa2f1337)
-com.palantir.safe-logging:logger:3.6.0 (24 constraints: e7a411a9)
+com.palantir.safe-logging:logger:3.6.0 (24 constraints: b2a4be2e)
 com.palantir.safe-logging:logger-slf4j:3.6.0 (1 constraints: 040e6542)
 com.palantir.safe-logging:logger-spi:3.6.0 (2 constraints: 171e6d7b)
-com.palantir.safe-logging:preconditions:3.6.0 (31 constraints: 58180fea)
-com.palantir.safe-logging:safe-logging:3.6.0 (28 constraints: 33d34d15)
+com.palantir.safe-logging:preconditions:3.6.0 (31 constraints: 23187b09)
+com.palantir.safe-logging:safe-logging:3.6.0 (28 constraints: fed23374)
 com.palantir.safethreadlocalrandom:safe-thread-local-random:0.1.0 (3 constraints: 933225f9)
-com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
+com.palantir.sls.versions:sls-versions:1.5.0 (1 constraints: 0805ff35)
 com.palantir.tokens:auth-tokens:3.18.0 (5 constraints: 4d5c8992)
 com.palantir.tracing:tracing:6.18.0 (8 constraints: 037e0e66)
 com.palantir.tracing:tracing-api:6.18.0 (5 constraints: 1e45f7f8)u}(j= (8c99998ee0897258ae90afbb597f8cbd7d328c79j= versions.propsj= modifiedj= Kj= Kj= Kj= `https://github.com/palantir/atlasdb/blob/3052930a3efde7d797a02ae26a35663b7bec5c8f/versions.propsj= _https://github.com/palantir/atlasdb/raw/3052930a3efde7d797a02ae26a35663b7bec5c8f/versions.propsj> rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=3052930a3efde7d797a02ae26a35663b7bec5c8fj> XM  @@ -34,7 +34,7 @@ com.palantir.goethe:* = 0.11.0
 com.palantir.nylon:* = 0.3.0
 com.palantir.refreshable:refreshable = 2.2.0
 com.palantir.safe-logging:* = 3.6.0
-com.palantir.sls.versions:* = 1.4.0
+com.palantir.sls.versions:* = 1.5.0
 com.palantir.tracing:* = 6.18.0
 com.palantir.tritium:* = 0.72.0
 com.squareup:javapoet = 1.13.0ueu(1306124dfd8b28b6a5dba1a5a72e40f5336f1b95}(sha(1306124dfd8b28b6a5dba1a5a72e40f5336f1b95node_idEC_kwDOAjP5fdoAKDEzMDYxMjRkZmQ4YjI4YjZhNWRiYTFhNWE3MmU0MGY1MzM2ZjFiOTUcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-05-24T15:54:46Zu	committer}(j> Lucas Meirelesj> meireles31@msn.comj> 2023-05-24T15:54:46Zumessage(remove test that prevents broken versiontree}(j> (f5ba7e81001c1f9a8cfb4ec5e31822e220d8db4aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/f5ba7e81001c1f9a8cfb4ec5e31822e220d8db4auj'> bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1306124dfd8b28b6a5dba1a5a72e40f5336f1b95
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmRuM0YACgkQJd22kJ7J
Giy48Af8DX9uKim/Y+nuyq7OSstAlCZpRuAfox6MBNUxLV8yyvxtahTGdcTvmQ0h
0DcAk9luf2xWOzcZnfanvwHpLYSGJPhS6iodTkBzzwO6UdA/FPxM35iktPdcQZEU
mgbmyteplxvCjyXtU/JovVGQ6gVNcpm5Z76Zawz1rcnBgxydsToEEf6AEKO7SOW4
9zieWVGDL14oDzd4fp0TQNP/B5ZMd0dWx3w8ZrqG3HcmVIPV/jHELR2tberUbnat
jTBpd+dSaQ4gm339ry4K+gcGHYmc5Lc8Zv6+qiRhLez+JaMLosCuEnr2kZq+ZfWi
t/+i29Jxvl/k6QOhRP9PSlYzR7chew==
=8Mwq
-----END PGP SIGNATURE-----payloadX  tree f5ba7e81001c1f9a8cfb4ec5e31822e220d8db4a
parent 501dfaf5c241b8e502280943424e4b80c84a2c0f
author Lucas Meireles <meireles31@msn.com> 1684943686 +0100
committer Lucas Meireles <meireles31@msn.com> 1684943686 +0100

remove test that prevents broken version
uuj'> ^https://api.github.com/repos/palantir/atlasdb/commits/1306124dfd8b28b6a5dba1a5a72e40f5336f1b95html_urlShttps://github.com/palantir/atlasdb/commit/1306124dfd8b28b6a5dba1a5a72e40f5336f1b95comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1306124dfd8b28b6a5dba1a5a72e40f5336f1b95/commentsj> }(loginLucasIMEidJg j> MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j'> %https://api.github.com/users/LucasIMEj5> https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj> }(j:> LucasIMEj<> Jg j> MDQ6VXNlcjY3ODczMTE=j>> 3https://avatars.githubusercontent.com/u/6787311?v=4j@> h5j'> %https://api.github.com/users/LucasIMEj5> https://github.com/LucasIMEjC> /https://api.github.com/users/LucasIME/followersjE> <https://api.github.com/users/LucasIME/following{/other_user}jG> 5https://api.github.com/users/LucasIME/gists{/gist_id}jI> <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jK> 3https://api.github.com/users/LucasIME/subscriptionsjM> *https://api.github.com/users/LucasIME/orgsjO> +https://api.github.com/users/LucasIME/reposjQ> 6https://api.github.com/users/LucasIME/events{/privacy}jS> 5https://api.github.com/users/LucasIME/received_eventsjU> UserjW> uparents]}(j> (501dfaf5c241b8e502280943424e4b80c84a2c0fj'> ^https://api.github.com/repos/palantir/atlasdb/commits/501dfaf5c241b8e502280943424e4b80c84a2c0fj5> Shttps://github.com/palantir/atlasdb/commit/501dfaf5c241b8e502280943424e4b80c84a2c0fuastats}(totalK9	additionsK 	deletionsK9ufiles]}(j> (80e4fe2fd6b1b610db9599c237b00cc58a2a1400filename]atlasdb-client/src/test/java/com/palantir/atlasdb/transaction/impl/ReadTransactionShould.javastatusmodifiedjq> K jr> K9changesK9blob_urlhttps://github.com/palantir/atlasdb/blob/1306124dfd8b28b6a5dba1a5a72e40f5336f1b95/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransactionShould.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1306124dfd8b28b6a5dba1a5a72e40f5336f1b95/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransactionShould.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransactionShould.java?ref=1306124dfd8b28b6a5dba1a5a72e40f5336f1b95patchX
  @@ -25,16 +25,11 @@
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.keyvalue.api.BatchColumnRangeSelection;
 import com.palantir.atlasdb.keyvalue.api.Cell;
-import com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection;
 import com.palantir.atlasdb.keyvalue.api.ColumnSelection;
 import com.palantir.atlasdb.keyvalue.api.RangeRequest;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.table.description.SweepStrategy;
-import com.palantir.common.base.Throwables;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
 import java.nio.charset.StandardCharsets;
 import java.util.Map;
@@ -98,58 +93,6 @@ public void allowGetsOnConservativeTables() {
     }
 
     @Test
-    public void notAllowSimpleGetsOnThoroughTables() {
-        Method[] declaredMethods = ReadTransaction.class.getDeclaredMethods();
-
-        for (Method method : declaredMethods) {
-            // Ignore methods that are either not simple gets or are overloaded
-            if (simpleGets.containsKey(method.getName()) && hasExpectedParameterCount(method)) {
-                checkThrowsAndNoInteraction(
-                        () -> {
-                            try {
-                                method.invoke(readTransaction, simpleGets.get(method.getName()));
-                            } catch (InvocationTargetException e) {
-                                Throwables.throwIfInstance(e.getCause(), IllegalStateException.class);
-                            } catch (IllegalAccessException e) {
-                                Throwables.throwUncheckedException(e);
-                            }
-                        },
-                        SafeIllegalStateException.class,
-                        "cannot be read");
-            }
-        }
-    }
-
-    @Test
-    public void notAllowBatchColumnRangeGets() {
-        checkThrowsAndNoInteraction(
-                () -> readTransaction.getRowsColumnRange(
-                        DUMMY_THOROUGH_TABLE,
-                        ImmutableList.of(EMPTY_BYTES),
-                        BatchColumnRangeSelection.create(EMPTY_BYTES, EMPTY_BYTES, 1)),
-                SafeIllegalStateException.class,
-                "cannot be read");
-        checkThrowsAndNoInteraction(
-                () -> readTransaction.getRowsColumnRangeIterator(
-                        DUMMY_THOROUGH_TABLE,
-                        ImmutableList.of(EMPTY_BYTES),
-                        BatchColumnRangeSelection.create(EMPTY_BYTES, EMPTY_BYTES, 1)),
-                SafeIllegalStateException.class,
-                "cannot be read");
-    }
-
-    @Test
-    public void notAllowColumnRangeGets() {
-        checkThrowsAndNoInteraction(
-                () -> readTransaction.getRowsColumnRange(
-                        DUMMY_THOROUGH_TABLE,
-                        ImmutableList.of(EMPTY_BYTES),
-                        new ColumnRangeSelection(EMPTY_BYTES, EMPTY_BYTES),
-                        1),
-                SafeIllegalStateException.class,
-                "cannot be read");
-    }
-
     private void checkThrowsAndNoInteraction(
             Runnable thrower, Class<? extends Exception> exception, String errorMessage) {
         try {uau(6a2161d8e2f40f201e50ff95805bbb7256784036}(sha(6a2161d8e2f40f201e50ff95805bbb7256784036node_idEC_kwDOAjP5fdoAKDZhMjE2MWQ4ZTJmNDBmMjAxZTUwZmY5NTgwNWJiYjcyNTY3ODQwMzYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-17T12:36:19Zu	committer}(j> 
Ahmed Alouanej> aalouane@palantir.comj> 2023-05-17T12:36:19Zumessage6g heap for container 3tree}(j> (7f907296d52d98a7c3e9d08e65b2b9a4759c4cc8url`https://api.github.com/repos/palantir/atlasdb/git/trees/7f907296d52d98a7c3e9d08e65b2b9a4759c4cc8uj> bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6a2161d8e2f40f201e50ff95805bbb7256784036
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRkykMACgkQPlMHVIT1
yhp+Awf/REz2lU8RY2+kY0kLdLwu5iS1o8bwC9WL2fltVqkz4i1aDTjTCFh74aaV
wkPZsO8ml9KRyQqIkpsN4RXePTfrn4nB+CUV3FtNx25wxh/uFsO8Z/c7RoavqzJg
f9DJa0/XnOdQF4TfEUIu/7WYdcMDQhOmgBKhMiwdRAE53u3EdkPOThZ1IRtwHcK3
+WWTYOlRBp4Cv87d6WqYCK0ECLi0iRQ8GhPqZJ17XzX0h/Do7ag3GRiAa1dgMF8d
JV89eYTvNs5FWfcjkm53uQWPcB8xPrF0qavxdncToHn6n53eHBXcCZtGI/gBVeUN
8GYBctPXhheQr7AqDk0JVu4demhdKA==
=qg6g
-----END PGP SIGNATURE-----payloadtree 7f907296d52d98a7c3e9d08e65b2b9a4759c4cc8
parent 7eec290e7b01aee4e34d37706e0ce598bba3f6ab
author Ahmed Alouane <aalouane@palantir.com> 1684326979 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684326979 +0100

6g heap for container 3
uuj> ^https://api.github.com/repos/palantir/atlasdb/commits/6a2161d8e2f40f201e50ff95805bbb7256784036html_urlShttps://github.com/palantir/atlasdb/commit/6a2161d8e2f40f201e50ff95805bbb7256784036comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6a2161d8e2f40f201e50ff95805bbb7256784036/commentsj> }(loginergo14idJj> MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j> #https://api.github.com/users/ergo14j> https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj> }(j> ergo14j> Jj> MDQ6VXNlcjMwOTAzNzM2j> 4https://avatars.githubusercontent.com/u/30903736?v=4j> h5j> #https://api.github.com/users/ergo14j> https://github.com/ergo14j> -https://api.github.com/users/ergo14/followersj> :https://api.github.com/users/ergo14/following{/other_user}j> 3https://api.github.com/users/ergo14/gists{/gist_id}j> :https://api.github.com/users/ergo14/starred{/owner}{/repo}j> 1https://api.github.com/users/ergo14/subscriptionsj> (https://api.github.com/users/ergo14/orgsj> )https://api.github.com/users/ergo14/reposj> 4https://api.github.com/users/ergo14/events{/privacy}j> 3https://api.github.com/users/ergo14/received_eventsj> Userj> uparents]}(j> (7eec290e7b01aee4e34d37706e0ce598bba3f6abj> ^https://api.github.com/repos/palantir/atlasdb/commits/7eec290e7b01aee4e34d37706e0ce598bba3f6abj> Shttps://github.com/palantir/atlasdb/commit/7eec290e7b01aee4e34d37706e0ce598bba3f6abuastats}(totalK	additionsK	deletionsK ufiles]}(j> (85be78dd5d5e754520260140f1baf0668e4fcceafilename%scripts/circle-ci/run-circle-tests.shstatusmodifiedj> Kj> K changesKblob_url{https://github.com/palantir/atlasdb/blob/6a2161d8e2f40f201e50ff95805bbb7256784036/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/6a2161d8e2f40f201e50ff95805bbb7256784036/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=6a2161d8e2f40f201e50ff95805bbb7256784036patchX  @@ -75,6 +75,9 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 # External builds have a 16gb limit.
 if [ "$test_suite_index" -eq "13" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
+elif ["$test_suite_index" -eq "3"]; then
+    export _JAVA_OPTIONS="-Xmx6g ${JAVA_GC_LOGGING_OPTIONS}"
+    BASE_GRADLE_ARGS+=" --scan --parallel"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
     BASE_GRADLE_ARGS+=" --scan --parallel"uau(6791ce3d305385405cdda718d4f971afe431da14}(sha(6791ce3d305385405cdda718d4f971afe431da14node_idEC_kwDOAjP5fdoAKDY3OTFjZTNkMzA1Mzg1NDA1Y2RkYTcxOGQ0Zjk3MWFmZTQzMWRhMTQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-28T11:43:05Zu	committer}(j? Jeremy Kongj? jkong@palantir.comj	? 2023-02-28T11:43:05ZumessageUMerge remote-tracking branch 'origin/develop' into jkong/workload-service-row-storiestree}(j> (afd3144d96a8c305cc4c1837c2c7a99ae46cd225url`https://api.github.com/repos/palantir/atlasdb/git/trees/afd3144d96a8c305cc4c1837c2c7a99ae46cd225uj? bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6791ce3d305385405cdda718d4f971afe431da14
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmP96MsACgkQTLdFKain
zjxYtwf/cGJA2Tx+IhKTmY1fUutIf1/OqlF9JNwLN623VqRhcxdpjw79OYHonUXa
gpK7Ody8co4UEAqL2gmxpW7qVCaAi7vy1gRjw4lDAV+gQJ1sU783qpszCyPdkour
vCEWIRkMdcwO4plg+HtTMW+ngDnSohVJUq0Nm46xqoZT9lLyXwoUZop3qIhALTvG
NYpi1SrP6FGZtuF6fkzhR5ixev6tbz/Hr7kfiaqZiPjVOgmk7elP0ExNcYNYaSET
NtpCPeq/RHx26zT09NFdLxJzY19gQofSFRdVU4qGYcUGIq3yRaVIEL8x2kBoBxlc
bca4IqJocAmaxMZVa8eHWTF9O8lwsg==
=q6Ez
-----END PGP SIGNATURE-----payloadXZ  tree afd3144d96a8c305cc4c1837c2c7a99ae46cd225
parent ecc5734827ae80326bf312620acf83f92f766d15
parent 93e21c80431d269d5e6ea469a36c4604208d2a82
author Jeremy Kong <jkong@palantir.com> 1677584585 +0000
committer Jeremy Kong <jkong@palantir.com> 1677584585 +0000

Merge remote-tracking branch 'origin/develop' into jkong/workload-service-row-stories
uuj? ^https://api.github.com/repos/palantir/atlasdb/commits/6791ce3d305385405cdda718d4f971afe431da14html_urlShttps://github.com/palantir/atlasdb/commit/6791ce3d305385405cdda718d4f971afe431da14comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6791ce3d305385405cdda718d4f971afe431da14/commentsj? }(login
jeremyk-91idJZ j> MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j? 'https://api.github.com/users/jeremyk-91j#? https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj? }(j(? 
jeremyk-91j*? JZ j> MDQ6VXNlcjU5NTU1MTA=j,? 3https://avatars.githubusercontent.com/u/5955510?v=4j.? h5j? 'https://api.github.com/users/jeremyk-91j#? https://github.com/jeremyk-91j1? 1https://api.github.com/users/jeremyk-91/followersj3? >https://api.github.com/users/jeremyk-91/following{/other_user}j5? 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j7? >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j9? 5https://api.github.com/users/jeremyk-91/subscriptionsj;? ,https://api.github.com/users/jeremyk-91/orgsj=? -https://api.github.com/users/jeremyk-91/reposj?? 8https://api.github.com/users/jeremyk-91/events{/privacy}jA? 7https://api.github.com/users/jeremyk-91/received_eventsjC? UserjE? uparents](}(j> (ecc5734827ae80326bf312620acf83f92f766d15j? ^https://api.github.com/repos/palantir/atlasdb/commits/ecc5734827ae80326bf312620acf83f92f766d15j#? Shttps://github.com/palantir/atlasdb/commit/ecc5734827ae80326bf312620acf83f92f766d15u}(j> (93e21c80431d269d5e6ea469a36c4604208d2a82j? ^https://api.github.com/repos/palantir/atlasdb/commits/93e21c80431d269d5e6ea469a36c4604208d2a82j#? Shttps://github.com/palantir/atlasdb/commit/93e21c80431d269d5e6ea469a36c4604208d2a82uestats}(totalK	additionsKw	deletionsKufiles](}(j> (4228354f0b61970c1539f87ae8231ea1ab2d8c73filenamebatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javastatusmodifiedjc? Kjd? KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/6791ce3d305385405cdda718d4f971afe431da14/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6791ce3d305385405cdda718d4f971afe431da14/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=6791ce3d305385405cdda718d4f971afe431da14patchX^  @@ -17,6 +17,7 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
+import com.google.common.collect.FluentIterable;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableRangeMap;
@@ -56,6 +57,7 @@
 import java.util.Comparator;
 import java.util.HashMap;
 import java.util.HashSet;
+import java.util.Iterator;
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
@@ -293,17 +295,26 @@ private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) th
     }
 
     private int getKnownPort() throws UnknownHostException {
-        Set<Integer> allKnownPorts = Stream.concat(
-                        currentPools.keySet().stream().map(CassandraServer::proxy),
-                        getServersSocketAddressesFromConfig().stream())
-                .map(InetSocketAddress::getPort)
-                .collect(Collectors.toSet());
+        // explicitly not using streams due to allocation overhead
+        return onlyPort(FluentIterable.concat(
+                        FluentIterable.from(currentPools.keySet()).transform(CassandraServer::proxy),
+                        getServersSocketAddressesFromConfig())
+                .transform(InetSocketAddress::getPort));
+    }
 
-        if (allKnownPorts.size() == 1) { // if everyone is on one port, try and use that
-            return Iterables.getOnlyElement(allKnownPorts);
-        } else {
+    @VisibleForTesting
+    static int onlyPort(Iterable<? extends Integer> iterable) throws UnknownHostException {
+        Iterator<? extends Integer> iterator = iterable.iterator();
+        if (!iterator.hasNext()) {
             throw new UnknownHostException("No single known port");
         }
+        int port = iterator.next();
+        while (iterator.hasNext()) {
+            if (port != iterator.next()) {
+                throw new UnknownHostException("No single known port");
+            }
+        }
+        return port;
     }
 
     private ImmutableSet<CassandraServer> getHostsFor(byte[] key) {u}(j> (263551e0d877ee028f36c8295ff2ae5fd69a9f79ji? fatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraServiceTest.javajk? modifiedjc? K
jd? K jm? K
jn? https://github.com/palantir/atlasdb/blob/6791ce3d305385405cdda718d4f971afe431da14/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javajp? https://github.com/palantir/atlasdb/raw/6791ce3d305385405cdda718d4f971afe431da14/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javajr? https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.java?ref=6791ce3d305385405cdda718d4f971afe431da14jt? X  @@ -33,6 +33,7 @@
 import com.palantir.refreshable.Refreshable;
 import java.net.InetSocketAddress;
 import java.net.UnknownHostException;
+import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.ThreadLocalRandom;
@@ -269,6 +270,18 @@ public void getRandomHostByActiveConnectionsReturnsDesiredHost() {
         }
     }
 
+    @Test
+    public void ports() throws Exception {
+        assertThat(CassandraService.onlyPort(List.of(1, 1, 1))).isEqualTo(1);
+        assertThat(IntStream.generate(() -> 4224).boxed().limit(15).collect(Collectors.toList()))
+                .hasSize(15)
+                .satisfies(cluster ->
+                        assertThat(CassandraService.onlyPort(cluster)).isEqualTo(4224));
+        assertThatThrownBy(() -> CassandraService.onlyPort(List.of(1, 2, 1)))
+                .isInstanceOf(UnknownHostException.class)
+                .hasMessageContaining("No single known port");
+    }
+
     private Set<CassandraServer> getRecommendedHostsFromAThousandTrials(
             CassandraService cassandra, Set<CassandraServer> hosts) {
         return IntStream.range(0, 1_000)u}(j> (739c4fc897f1565734993e27a768c77c15e97138ji? Qatlasdb-commons/src/main/java/com/palantir/exception/NotInitializedException.javajk? modifiedjc? Kjd? Kjm? K$jn? https://github.com/palantir/atlasdb/blob/6791ce3d305385405cdda718d4f971afe431da14/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javajp? https://github.com/palantir/atlasdb/raw/6791ce3d305385405cdda718d4f971afe431da14/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javajr? https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.java?ref=6791ce3d305385405cdda718d4f971afe431da14jt? X  @@ -16,18 +16,40 @@
 package com.palantir.exception;
 
 import com.palantir.common.exception.AtlasDbDependencyException;
+import com.palantir.logsafe.Arg;
+import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.SafeLoggable;
+import java.util.List;
 
-public class NotInitializedException extends AtlasDbDependencyException {
-    public NotInitializedException(String objectNotInitialized) {
-        super(exceptionMessage(objectNotInitialized));
+public class NotInitializedException extends AtlasDbDependencyException implements SafeLoggable {
+
+    private static final String EXCEPTION_MESSAGE =
+            "The object is not yet initialized, and as a result, all calls to it will fail. Interactions with this"
+                    + " object should not take place until after initialization has completed. For example, if your"
+                    + " service that handles REST requests relies on this object, it should not service REST requests"
+                    + " until initialization has completed, as otherwise all calls are guaranteed to fail. It is"
+                    + " expected that initialization of some object types do take some time.";
+    private final String objectNotInitialized;
+
+    public NotInitializedException(@Safe String objectNotInitialized) {
+        super(EXCEPTION_MESSAGE);
+        this.objectNotInitialized = objectNotInitialized;
+    }
+
+    public NotInitializedException(@Safe String objectNotInitialized, Throwable throwable) {
+        super(EXCEPTION_MESSAGE, throwable);
+        this.objectNotInitialized = objectNotInitialized;
     }
 
-    public NotInitializedException(String objectNotInitialized, Throwable throwable) {
-        super(exceptionMessage(objectNotInitialized), throwable);
+    @Override
+    @Safe
+    public String getLogMessage() {
+        return EXCEPTION_MESSAGE;
     }
 
-    private static String exceptionMessage(String objectNotInitialized) {
-        return String.format("The %s is not initialized yet", SafeArg.of("objectName", objectNotInitialized));
+    @Override
+    public List<Arg<?>> getArgs() {
+        return List.of(SafeArg.of("objectName", objectNotInitialized));
     }
 }u}(j> (dfa91458329ff1875fb4ec6215218af5871f6e1fji? Uatlasdb-commons/src/test/java/com/palantir/exception/NotInitializedExceptionTest.javajk? addedjc? Kjd? K jm? Kjn? https://github.com/palantir/atlasdb/blob/6791ce3d305385405cdda718d4f971afe431da14/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedExceptionTest.javajp? https://github.com/palantir/atlasdb/raw/6791ce3d305385405cdda718d4f971afe431da14/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedExceptionTest.javajr? https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedExceptionTest.java?ref=6791ce3d305385405cdda718d4f971afe431da14jt? X  @@ -0,0 +1,31 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.exception;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import org.junit.Test;
+
+public final class NotInitializedExceptionTest {
+    @Test
+    public void getArgsHasObjectNameAsSafe() {
+        String objectName = "foo";
+        NotInitializedException exception = new NotInitializedException(objectName);
+        assertThat(exception.getArgs()).containsExactly(SafeArg.of("objectName", objectName));
+    }
+}u      }(j> (d472c8f932207eb4899afe98ed0ccfe92e678cfdji? [atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/TargetedSweeperTest.javajk? modifiedjc? Kjd? Kjm? Kjn? https://github.com/palantir/atlasdb/blob/6791ce3d305385405cdda718d4f971afe431da14/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FTargetedSweeperTest.javajp? https://github.com/palantir/atlasdb/raw/6791ce3d305385405cdda718d4f971afe431da14/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FTargetedSweeperTest.javajr? https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FTargetedSweeperTest.java?ref=6791ce3d305385405cdda718d4f971afe431da14jt? X  @@ -27,6 +27,7 @@
 import static com.palantir.atlasdb.sweep.queue.SweepQueueUtils.tsPartitionFine;
 import static com.palantir.atlasdb.table.description.SweeperStrategy.CONSERVATIVE;
 import static com.palantir.atlasdb.table.description.SweeperStrategy.THOROUGH;
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
@@ -81,6 +82,7 @@
 import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.v2.TimelockService;
+import com.palantir.logsafe.SafeArg;
 import java.time.Duration;
 import java.util.ArrayList;
 import java.util.List;
@@ -228,13 +230,15 @@ public void increaseInShardsReflectedOnLastSweptTimestamp() {
 
     @Test
     public void callingEnqueueAndSweepOnUninitializedSweeperThrows() {
+        SafeArg<String> objectNameSafeArg = SafeArg.of("objectName", "Targeted Sweeper");
         TargetedSweeper uninitializedSweeper = TargetedSweeper.createUninitializedForTest(() -> 1);
-        assertThatThrownBy(() -> uninitializedSweeper.enqueue(ImmutableList.of()))
+        assertThatLoggableExceptionThrownBy(() -> uninitializedSweeper.enqueue(ImmutableList.of()))
                 .isInstanceOf(NotInitializedException.class)
-                .hasMessageContaining("Targeted Sweeper");
-        assertThatThrownBy(() -> uninitializedSweeper.sweepNextBatch(ShardAndStrategy.conservative(0), 1L))
+                .hasExactlyArgs(objectNameSafeArg);
+        assertThatLoggableExceptionThrownBy(
+                        () -> uninitializedSweeper.sweepNextBatch(ShardAndStrategy.conservative(0), 1L))
                 .isInstanceOf(NotInitializedException.class)
-                .hasMessageContaining("Targeted Sweeper");
+                .hasExactlyArgs(objectNameSafeArg);
     }
 
     @Testu}(j> (8e080ab39272adb9262b248c9333fdaf0d71e2ebji? build.gradlejk? modifiedjc? Kjd? Kjm? Kjn? ^https://github.com/palantir/atlasdb/blob/6791ce3d305385405cdda718d4f971afe431da14/build.gradlejp? ]https://github.com/palantir/atlasdb/raw/6791ce3d305385405cdda718d4f971afe431da14/build.gradlejr? phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=6791ce3d305385405cdda718d4f971afe431da14jt? XY  @@ -7,14 +7,14 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.0.0'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.0.1'
         classpath 'com.netflix.nebula:nebula-publishing-plugin:20.0.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.33.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.34.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.11.0'
-        classpath 'com.palantir.gradle.gitversion:gradle-git-version:0.15.0'
+        classpath 'com.palantir.gradle.gitversion:gradle-git-version:1.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.31.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'u}(j> (13dfd77db0f46236b04de3278feb263f5f8427caji?  changelog/0.803.0/pr-6450.v2.ymljk? addedjc? Kjd? K jm? Kjn? vhttps://github.com/palantir/atlasdb/blob/6791ce3d305385405cdda718d4f971afe431da14/changelog%2F0.803.0%2Fpr-6450.v2.ymljp? uhttps://github.com/palantir/atlasdb/raw/6791ce3d305385405cdda718d4f971afe431da14/changelog%2F0.803.0%2Fpr-6450.v2.ymljr? https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.803.0%2Fpr-6450.v2.yml?ref=6791ce3d305385405cdda718d4f971afe431da14jt? @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Improved NotInitializedException exception message
+  links:
+  - https://github.com/palantir/atlasdb/pull/6450u}(j> (d93664ff214c9077aa41febf718e69648167c087ji?  changelog/0.804.0/pr-6451.v2.ymljk? addedjc? K	jd? K jm? K	jn? vhttps://github.com/palantir/atlasdb/blob/6791ce3d305385405cdda718d4f971afe431da14/changelog%2F0.804.0%2Fpr-6451.v2.ymljp? uhttps://github.com/palantir/atlasdb/raw/6791ce3d305385405cdda718d4f971afe431da14/changelog%2F0.804.0%2Fpr-6451.v2.ymljr? https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.804.0%2Fpr-6451.v2.yml?ref=6791ce3d305385405cdda718d4f971afe431da14jt? X  @@ -0,0 +1,9 @@
+type: improvement
+improvement:
+  description: |-
+    While reviewing JFR from some high volume AtlasDB client services (think mountains), I noticed they spend a significant amount of time verifying that the Cassandra ports are the same in
+    `com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService.getKnownPort():300`.
+
+    We can optimize this for the happy path where the port is known and consistent for a ~10x improvement.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6451u}(j> (551155a0e558a91829f7167ce7426447df29a0e0ji? 
versions.lockjk? modifiedjc? Kjd? Kjm? Kjn? _https://github.com/palantir/atlasdb/blob/6791ce3d305385405cdda718d4f971afe431da14/versions.lockjp? ^https://github.com/palantir/atlasdb/raw/6791ce3d305385405cdda718d4f971afe431da14/versions.lockjr? qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=6791ce3d305385405cdda718d4f971afe431da14jt? X  @@ -190,11 +190,11 @@ io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)
 jakarta.activation:jakarta.activation-api:1.2.2 (3 constraints: 4e3741b6)
-jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 2c797c38)
+jakarta.annotation:jakarta.annotation-api:1.3.5 (8 constraints: 29799834)
 jakarta.inject:jakarta.inject-api:1.0.5 (13 constraints: decbc9f9)
 jakarta.servlet:jakarta.servlet-api:4.0.4 (10 constraints: 7b9def70)
 jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
-jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (18 constraints: fe4212ce)
+jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (19 constraints: 0348c6c3)
 jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.1 (6 constraints: 8059c3f0)ueu(2bf70bb4ec0daecd75eb3255d01e41afb2b1c547}(sha(2bf70bb4ec0daecd75eb3255d01e41afb2b1c547node_idEC_kwDOAjP5fdoAKDJiZjcwYmI0ZWMwZGFlY2Q3NWViMzI1NWQwMWU0MWFmYjJiMWM1NDccommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-28T13:03:35Zu	committer}(j? 
Sam Kramerj? skramer@palantir.comj? 2023-04-28T13:03:35Zumessage
buggify ideastree}(j? (b299b26255892df076297e8feceee2d243ec8f13url`https://api.github.com/repos/palantir/atlasdb/git/trees/b299b26255892df076297e8feceee2d243ec8f13uj? bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2bf70bb4ec0daecd75eb3255d01e41afb2b1c547
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRLxCcACgkQmPPOpKR4
XS1CBQf/d5XX2jHaNVF6qihf1H/uD2P3rYBCYtUDjTjMREP1m303VDADvga+UVN+
PFK0uq+IKTdTE9poz58ETAl0OMFBdtEAy7WglOMP/1teLY5ctbGzUb1TAM3rM/AL
7tzdLomO+DQolga9t91NFtt/NvIgWCZ7QsFYy8Oy6HpA5/5duk97Ph30CYInAtMx
3imlFamddWREDwssFGej1ZT2oKCOMikUHTuCx3SpU9m5kae/XbD3caUThIi/GWQZ
N+WOgRSLkkMh+ZqqfON+6522H6XwbMlkUnLwroJxLOCGcRAc0CtrObZCKc0+GoZa
gvxCcTG1ECHUgCyxFpykFJvKJC8uVQ==
=rn68
-----END PGP SIGNATURE-----payloadtree b299b26255892df076297e8feceee2d243ec8f13
parent 43adb2ed2ed640a3862ee0527e4d5f8ba090356a
author Sam Kramer <skramer@palantir.com> 1682687015 +0100
committer Sam Kramer <skramer@palantir.com> 1682687015 +0100

buggify ideas
uuj? ^https://api.github.com/repos/palantir/atlasdb/commits/2bf70bb4ec0daecd75eb3255d01e41afb2b1c547html_urlShttps://github.com/palantir/atlasdb/commit/2bf70bb4ec0daecd75eb3255d01e41afb2b1c547comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2bf70bb4ec0daecd75eb3255d01e41afb2b1c547/commentsj? }(login
Sam-KrameridJ^2_ j? MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j? 'https://api.github.com/users/Sam-Kramerj? https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj? }(j? 
Sam-Kramerj? J^2_ j? MDQ6VXNlcjYyMzg4MTQ=j? 3https://avatars.githubusercontent.com/u/6238814?v=4j? h5j? 'https://api.github.com/users/Sam-Kramerj? https://github.com/Sam-Kramerj? 1https://api.github.com/users/Sam-Kramer/followersj? >https://api.github.com/users/Sam-Kramer/following{/other_user}j? 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j? >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j? 5https://api.github.com/users/Sam-Kramer/subscriptionsj? ,https://api.github.com/users/Sam-Kramer/orgsj? -https://api.github.com/users/Sam-Kramer/reposj? 8https://api.github.com/users/Sam-Kramer/events{/privacy}j? 7https://api.github.com/users/Sam-Kramer/received_eventsj? Userj @ uparents]}(j? (43adb2ed2ed640a3862ee0527e4d5f8ba090356aj? ^https://api.github.com/repos/palantir/atlasdb/commits/43adb2ed2ed640a3862ee0527e4d5f8ba090356aj? Shttps://github.com/palantir/atlasdb/commit/43adb2ed2ed640a3862ee0527e4d5f8ba090356auastats}(totalKD	additionsKA	deletionsKufiles](}(j? (7abfd601b8091ed4c7fff744c249e98e84724b1afilename<lock-api/src/main/java/com/palantir/lock/client/Buggify.javastatusaddedj@ Kj@ K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/2bf70bb4ec0daecd75eb3255d01e41afb2b1c547/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FBuggify.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2bf70bb4ec0daecd75eb3255d01e41afb2b1c547/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FBuggify.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FBuggify.java?ref=2bf70bb4ec0daecd75eb3255d01e41afb2b1c547patchXQ  @@ -0,0 +1,25 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.client;
+
+import java.util.function.Supplier;
+
+public interface Buggify {
+    void run(Runnable runnable);
+
+    <T> T map(Supplier<T> consumer);
+}u}(j? (fe04953bc0e9c0a550b7e78742562e6741e114e8j @ Clock-api/src/main/java/com/palantir/lock/client/BuggifyFactory.javaj"@ addedj@ Kj@ K j$@ Kj%@ https://github.com/palantir/atlasdb/blob/2bf70bb4ec0daecd75eb3255d01e41afb2b1c547/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FBuggifyFactory.javaj'@ https://github.com/palantir/atlasdb/raw/2bf70bb4ec0daecd75eb3255d01e41afb2b1c547/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FBuggifyFactory.javaj)@ https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FBuggifyFactory.java?ref=2bf70bb4ec0daecd75eb3255d01e41afb2b1c547j+@ XT  @@ -0,0 +1,25 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.client;
+
+public interface BuggifyFactory {
+    Buggify maybe(double probability);
+
+    default Buggify always() {
+        return maybe(1.0);
+    }
+}u}(j? (60ed569d134b304394f8242f4bc374ad246cac32j @ Block-api/src/main/java/com/palantir/lock/client/LockRefresher.javaj"@ modifiedj@ Kj@ Kj$@ Kj%@ https://github.com/palantir/atlasdb/blob/2bf70bb4ec0daecd75eb3255d01e41afb2b1c547/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FLockRefresher.javaj'@ https://github.com/palantir/atlasdb/raw/2bf70bb4ec0daecd75eb3255d01e41afb2b1c547/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FLockRefresher.javaj)@ https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FLockRefresher.java?ref=2bf70bb4ec0daecd75eb3255d01e41afb2b1c547j+@ X
  @@ -29,11 +29,13 @@
 import java.util.Collection;
 import java.util.HashSet;
 import java.util.Map;
+import java.util.Random;
 import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.concurrent.ScheduledFuture;
 import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
 import org.immutables.value.Value;
 
 public class LockRefresher<T> implements AutoCloseable {
@@ -47,20 +49,27 @@ public class LockRefresher<T> implements AutoCloseable {
 
     private ScheduledFuture<?> task;
 
+    private BuggifyFactory buggify;
+
     public LockRefresher(
-            ScheduledExecutorService executor, LockLeaseRefresher<T> lockLeaseRefresher, long refreshIntervalMillis) {
-        this(executor, lockLeaseRefresher, refreshIntervalMillis, Clock.systemUTC());
+            ScheduledExecutorService executor,
+            LockLeaseRefresher<T> lockLeaseRefresher,
+            long refreshIntervalMillis,
+            BuggifyFactory buggifyFactory) {
+        this(executor, lockLeaseRefresher, refreshIntervalMillis, Clock.systemUTC(), buggifyFactory);
     }
 
     @VisibleForTesting
     LockRefresher(
             ScheduledExecutorService executor,
             LockLeaseRefresher<T> lockLeaseRefresher,
             long refreshIntervalMillis,
-            Clock clock) {
+            Clock clock,
+            BuggifyFactory buggifyFactory) {
         this.executor = executor;
         this.lockLeaseRefresher = lockLeaseRefresher;
         this.clock = clock;
+        this.buggify = buggifyFactory;
 
         scheduleRefresh(refreshIntervalMillis);
     }
@@ -87,6 +96,7 @@ private void refreshLocks() {
                         SafeArg.of("successfullyRefreshed", successfullyRefreshedTokens.size()),
                         SafeArg.of("numLockTokens", refreshFailures.size()));
             }
+            buggify.maybe(0.50).run(() -> unregisterLocks(toRefresh));
         } catch (Throwable error) {
             log.warn("Error while refreshing locks. Trying again on next iteration", error);
         }
@@ -124,6 +134,8 @@ public void registerLocks(Collection<T> tokens) {
     }
 
     public void registerLocks(Collection<T> tokens, ClientLockingOptions lockingOptions) {
+        tokens = buggify.maybe(0.10)
+                .map(() -> tokens.stream().filter(Random::nextBoolean).collect(Collectors.toCollection()));
         tokens.forEach(token -> tokensToClientContext.put(
                 token,
                 ImmutableClientLockingContext.builder()ueu(5a07e2462e19aee5b13cc1d65dd3c6871747c97d}(sha(5a07e2462e19aee5b13cc1d65dd3c6871747c97dnode_idEC_kwDOAjP5fdoAKDVhMDdlMjQ2MmUxOWFlZTViMTNjYzFkNjVkZDNjNjg3MTc0N2M5N2Qcommit}(author}(nameMohammed Daudaliemailmdaudali@palantir.comdate2023-03-22T14:06:10Zu	committer}(jG@ GitHubjI@ noreply@github.comjK@ 2023-03-22T14:06:10Zumessage=Batch hint is now marked as nullable for RangeRequest (#6478)tree}(j?@ (aeb33d999c9ce38e128d63ff527f7461acd2210eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/aeb33d999c9ce38e128d63ff527f7461acd2210eujW@ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5a07e2462e19aee5b13cc1d65dd3c6871747c97d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkGwtSCRBK7hj4Ov3rIwAAwEkIAHf8iaHCJR3ibcUHRn9UtUpp
T3gQZgC8L32hghVtMoGO70u/awvTreMjrT29rW0ASi77E3ns4c6+mqk6ydt5n1lO
HCMAsdrsVt3o0tJhnyoKcRNSdfGhQdGYf7hkGWFC8AcWwW8xIoRAWlWf8T0L+jNf
cRwF7n3OqZLm1GgCI4MUeWcFZqXN3f069ZYOsp1t+wD3UTBSs+pGvGju7p89KlyC
BlLwl0Tl/pCmfn2321fIJJB9MVf8p/zPSXFbatehJSk+qMhcPajXbq2QRgZ6AJls
csNbxYPbC/3L86+HaYALkAwEK7hIDug85lE36Th/ldzEj2ZoKw9lvwKxOw3ZWAU=
=JFZp
-----END PGP SIGNATURE-----
payloadX  tree aeb33d999c9ce38e128d63ff527f7461acd2210e
parent 0cd12b5e875be6f1adc25da6049d811d4ef06710
author Mohammed Daudali <mdaudali@palantir.com> 1679493970 +0000
committer GitHub <noreply@github.com> 1679493970 +0000

Batch hint is now marked as nullable for RangeRequest (#6478)

 uujW@ ^https://api.github.com/repos/palantir/atlasdb/commits/5a07e2462e19aee5b13cc1d65dd3c6871747c97dhtml_urlShttps://github.com/palantir/atlasdb/commit/5a07e2462e19aee5b13cc1d65dd3c6871747c97dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5a07e2462e19aee5b13cc1d65dd3c6871747c97d/commentsjE@ }(loginmdaudaliidJ jA@ MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5jW@ %https://api.github.com/users/mdaudalije@ https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminujM@ }(jj@ web-flowjl@ J/jA@ MDQ6VXNlcjE5ODY0NDQ3jn@ 4https://avatars.githubusercontent.com/u/19864447?v=4jp@ h5jW@ %https://api.github.com/users/web-flowje@ https://github.com/web-flowjs@ /https://api.github.com/users/web-flow/followersju@ <https://api.github.com/users/web-flow/following{/other_user}jw@ 5https://api.github.com/users/web-flow/gists{/gist_id}jy@ <https://api.github.com/users/web-flow/starred{/owner}{/repo}j{@ 3https://api.github.com/users/web-flow/subscriptionsj}@ *https://api.github.com/users/web-flow/orgsj@ +https://api.github.com/users/web-flow/reposj@ 6https://api.github.com/users/web-flow/events{/privacy}j@ 5https://api.github.com/users/web-flow/received_eventsj@ Userj@ uparents]}(j?@ (0cd12b5e875be6f1adc25da6049d811d4ef06710jW@ ^https://api.github.com/repos/palantir/atlasdb/commits/0cd12b5e875be6f1adc25da6049d811d4ef06710je@ Shttps://github.com/palantir/atlasdb/commit/0cd12b5e875be6f1adc25da6049d811d4ef06710uastats}(totalK	additionsK	deletionsKufiles]}(j?@ (54106dfa0477a8d02f1cf93167ddaa80b4701778filenameMatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/RangeRequest.javastatusmodifiedj@ Kj@ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5a07e2462e19aee5b13cc1d65dd3c6871747c97d/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRangeRequest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5a07e2462e19aee5b13cc1d65dd3c6871747c97d/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRangeRequest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRangeRequest.java?ref=5a07e2462e19aee5b13cc1d65dd3c6871747c97dpatchX  @@ -352,7 +352,7 @@ public Builder retainColumns(ColumnSelection selection) {
          * this means the batch size will be whatever is passed as the batch size to
          * BatchingVisitable#batchAccept(int, com.palantir.common.base.AbortingVisitor)
          */
-        public Builder batchHint(Integer hint) {
+        public Builder batchHint(@Nullable Integer hint) {
             Preconditions.checkArgument(hint == null || hint > 0);
             batchHint = hint;
             return this;uau(f62f068385e972cf4264d923b31a90868542a739}(sha(f62f068385e972cf4264d923b31a90868542a739node_idEC_kwDOAjP5fdoAKGY2MmYwNjgzODVlOTcyY2Y0MjY0ZDkyM2IzMWE5MDg2ODU0MmE3Mzkcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-11T08:36:17Zu	committer}(j@ Jeremy Kongj@ jkong@palantir.comj@ 2023-04-11T08:36:17Zumessageslice and dicetree}(j@ (f88b0d091d0e74a603e070b76fbb6db17331deecurl`https://api.github.com/repos/palantir/atlasdb/git/trees/f88b0d091d0e74a603e070b76fbb6db17331deecuj@ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f62f068385e972cf4264d923b31a90868542a739
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQ1HAEACgkQTLdFKain
zjyKqQf+Jm7/HduMqWzaSLvplMNwyJk2hJbtRrDaAbcjS0GL9s69CBPWDdTYVpPL
4cmWqzJVHq1T1AUdMSWiQ5IOZMrjMM88Cc9vaojAvlFpraURvAk4/JwHVhZfj7w5
d7blcMCrhBu13tIU1H785Ri35DyOiWQkI90Fx7t9wVJkMeG/HZ9ZEZz+UZSYccPU
8k3SDvP3jpUIrtwQZKuRtZTKOk6Q6S7P7nv21THLE/GAsZyy/Rkhv3PdftIhsfWm
aokD3TuGw+QYhylBcrqJo6y87tqIBhSPH13h+lNkREPIXT9oUu6PP8sRuzJjLNwe
/gCcbm3RI0f7LIAvqfve2zfe/HyzhA==
=3LXr
-----END PGP SIGNATURE-----payloadtree f88b0d091d0e74a603e070b76fbb6db17331deec
parent 51fb6b826446ff4f1a2776fae823df611f407fce
author Jeremy Kong <jkong@palantir.com> 1681202177 +0800
committer Jeremy Kong <jkong@palantir.com> 1681202177 +0800

slice and dice
uuj@ ^https://api.github.com/repos/palantir/atlasdb/commits/f62f068385e972cf4264d923b31a90868542a739html_urlShttps://github.com/palantir/atlasdb/commit/f62f068385e972cf4264d923b31a90868542a739comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f62f068385e972cf4264d923b31a90868542a739/commentsj@ }(login
jeremyk-91idJZ j@ MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j@ 'https://api.github.com/users/jeremyk-91j@ https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj@ }(j@ 
jeremyk-91j@ JZ j@ MDQ6VXNlcjU5NTU1MTA=j@ 3https://avatars.githubusercontent.com/u/5955510?v=4j@ h5j@ 'https://api.github.com/users/jeremyk-91j@ https://github.com/jeremyk-91j@ 1https://api.github.com/users/jeremyk-91/followersj@ >https://api.github.com/users/jeremyk-91/following{/other_user}j@ 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j@ >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j@ 5https://api.github.com/users/jeremyk-91/subscriptionsj@ ,https://api.github.com/users/jeremyk-91/orgsj@ -https://api.github.com/users/jeremyk-91/reposj@ 8https://api.github.com/users/jeremyk-91/events{/privacy}j@ 7https://api.github.com/users/jeremyk-91/received_eventsj@ Userj@ uparents]}(j@ (51fb6b826446ff4f1a2776fae823df611f407fcej@ ^https://api.github.com/repos/palantir/atlasdb/commits/51fb6b826446ff4f1a2776fae823df611f407fcej@ Shttps://github.com/palantir/atlasdb/commit/51fb6b826446ff4f1a2776fae823df611f407fceuastats}(totalM	additionsMO	deletionsKfufiles](}(j@ (887229db22e056f005fba2f8dddddc5b9bc75155filenameYtimelock-agent/src/main/java/com/palantir/timelock/paxos/NonConjureTimelockResources.javastatusaddedjA K7jA K changesK7blob_urlhttps://github.com/palantir/atlasdb/blob/f62f068385e972cf4264d923b31a90868542a739/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FNonConjureTimelockResources.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f62f068385e972cf4264d923b31a90868542a739/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FNonConjureTimelockResources.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FNonConjureTimelockResources.java?ref=f62f068385e972cf4264d923b31a90868542a739patchX	  @@ -0,0 +1,55 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.timelock.paxos;
+
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.http.RedirectRetryTargeter;
+import com.palantir.atlasdb.timelock.LockV1Resource;
+import com.palantir.atlasdb.timelock.LockV1ResourceEndpoints;
+import com.palantir.atlasdb.timelock.TimelockNamespaces;
+import com.palantir.atlasdb.timelock.TimestampManagementResource;
+import com.palantir.atlasdb.timelock.TimestampManagementResourceEndpoints;
+import com.palantir.atlasdb.timelock.TimestampResource;
+import com.palantir.atlasdb.timelock.TimestampResourceEndpoints;
+import com.palantir.conjure.java.undertow.lib.UndertowService;
+import java.util.Set;
+import java.util.stream.Collectors;
+
+public final class NonConjureTimelockResources {
+    private NonConjureTimelockResources() {
+        // utility
+    }
+
+    public static Set<UndertowService> createUndertowServices(
+            TimelockNamespaces namespaces, RedirectRetryTargeter redirectRetryTargeter) {
+        Set<UndertowService> rawServices = ImmutableSet.of(
+                LockV1ResourceEndpoints.of(new LockV1Resource(namespaces)),
+                TimestampResourceEndpoints.of(new TimestampResource(namespaces)),
+                TimestampManagementResourceEndpoints.of(new TimestampManagementResource(namespaces)));
+
+        return rawServices.stream()
+                .map(service -> new TimelockUndertowExceptionWrapper(service, redirectRetryTargeter))
+                .collect(Collectors.toSet());
+    }
+
+    public static Set<Object> createJerseyResources(TimelockNamespaces namespaces) {
+        return ImmutableSet.of(
+                new LockV1Resource(namespaces),
+                new TimestampResource(namespaces),
+                new TimestampManagementResource(namespaces));
+    }
+}u}(j@ (b9d020717295503233d25d847ea2e0509fab6a22jA Ktimelock-agent/src/main/java/com/palantir/timelock/paxos/TimeLockAgent.javaj A modifiedjA KjA K
j"A K
j#A https://github.com/palantir/atlasdb/blob/f62f068385e972cf4264d923b31a90868542a739/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javaj%A https://github.com/palantir/atlasdb/raw/f62f068385e972cf4264d923b31a90868542a739/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.javaj'A https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimeLockAgent.java?ref=f62f068385e972cf4264d923b31a90868542a739j)A Xu
  @@ -37,8 +37,6 @@
 import com.palantir.atlasdb.timelock.AsyncTimelockService;
 import com.palantir.atlasdb.timelock.ConjureLockWatchingResource;
 import com.palantir.atlasdb.timelock.ConjureTimelockResource;
-import com.palantir.atlasdb.timelock.LegacyAggregatedTimelockResource;
-import com.palantir.atlasdb.timelock.LegacyAggregatedTimelockResourceEndpoints;
 import com.palantir.atlasdb.timelock.TimeLockResource;
 import com.palantir.atlasdb.timelock.TimeLockServices;
 import com.palantir.atlasdb.timelock.TimelockNamespaces;
@@ -337,8 +335,6 @@ private void createAndRegisterResources() {
         Function<String, AsyncTimelockService> asyncTimelockServiceGetter =
                 namespace -> namespaces.get(namespace).getTimelockService();
 
-        LegacyAggregatedTimelockResource aggregatedTimelockResource = new LegacyAggregatedTimelockResource(namespaces);
-
         if (undertowRegistrar.isPresent()) {
             Consumer<UndertowService> presentUndertowRegistrar = undertowRegistrar.get();
             registerCorruptionHandlerWrappedService(
@@ -355,19 +351,16 @@ private void createAndRegisterResources() {
             registerCorruptionHandlerWrappedService(
                     presentUndertowRegistrar,
                     MultiClientConjureTimelockResource.undertow(redirectRetryTargeter, asyncTimelockServiceGetter));
-            registerCorruptionHandlerWrappedService(
-                    presentUndertowRegistrar,
-                    new TimelockUndertowExceptionWrapper(
-                            LegacyAggregatedTimelockResourceEndpoints.of(aggregatedTimelockResource),
-                            redirectRetryTargeter));
+            NonConjureTimelockResources.createUndertowServices(namespaces, redirectRetryTargeter)
+                    .forEach(service -> registerCorruptionHandlerWrappedService(presentUndertowRegistrar, service));
         } else {
             registrar.accept(ConjureTimelockResource.jersey(redirectRetryTargeter, asyncTimelockServiceGetter));
             registrar.accept(ConjureLockWatchingResource.jersey(redirectRetryTargeter, asyncTimelockServiceGetter));
             registrar.accept(ConjureLockV1Resource.jersey(redirectRetryTargeter, lockServiceGetter));
             registrar.accept(TimeLockPaxosHistoryProviderResource.jersey(corruptionComponents.localHistoryLoader()));
             registrar.accept(
                     MultiClientConjureTimelockResource.jersey(redirectRetryTargeter, asyncTimelockServiceGetter));
-            registrar.accept(aggregatedTimelockResource);
+            NonConjureTimelockResources.createJerseyResources(namespaces).forEach(registrar);
         }
     }
 u}(j@ (b009e2a44272a2626ff3806af6ca13135f806a86jA ^timelock-agent/src/main/java/com/palantir/timelock/paxos/TimelockUndertowExceptionWrapper.javaj A modifiedjA KjA K j"A Kj#A https://github.com/palantir/atlasdb/blob/f62f068385e972cf4264d923b31a90868542a739/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimelockUndertowExceptionWrapper.javaj%A https://github.com/palantir/atlasdb/raw/f62f068385e972cf4264d923b31a90868542a739/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimelockUndertowExceptionWrapper.javaj'A https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FTimelockUndertowExceptionWrapper.java?ref=f62f068385e972cf4264d923b31a90868542a739j)A X  @@ -38,6 +38,11 @@
 import java.util.List;
 import java.util.function.Function;
 
+/**
+ * For endpoints that pre-date the introduction of conjure, we need to be able to handle legacy requests in a
+ * consistent way without breaking API, hence the existence of this class. Resources and services with endpoints
+ * predating the introduction of conjure should be wrapped in this wrapper.
+ */
 final class TimelockUndertowExceptionWrapper implements UndertowService {
 
     private final UndertowService delegate;u}(j@ (2a033df56bf36f26a0b72eee4829cabe63f8f8acjA Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/LegacyAsyncTimeLockResource.javaj A addedjA KvjA K j"A Kvj#A https://github.com/palantir/atlasdb/blob/f62f068385e972cf4264d923b31a90868542a739/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAsyncTimeLockResource.javaj%A https://github.com/palantir/atlasdb/raw/f62f068385e972cf4264d923b31a90868542a739/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAsyncTimeLockResource.javaj'A https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAsyncTimeLockResource.java?ref=f62f068385e972cf4264d923b31a90868542a739j)A X  @@ -0,0 +1,118 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock;
+
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.timelock.api.ConjureStartTransactionsRequest;
+import com.palantir.conjure.java.undertow.annotations.Handle;
+import com.palantir.conjure.java.undertow.annotations.HttpMethod;
+import com.palantir.lock.v2.IdentifiedTimeLockRequest;
+import com.palantir.lock.v2.ImmutableStartTransactionResponseV4;
+import com.palantir.lock.v2.LockImmutableTimestampResponse;
+import com.palantir.lock.v2.StartAtlasDbTransactionResponse;
+import com.palantir.lock.v2.StartAtlasDbTransactionResponseV3;
+import com.palantir.lock.v2.StartIdentifiedAtlasDbTransactionRequest;
+import com.palantir.lock.v2.StartIdentifiedAtlasDbTransactionResponse;
+import com.palantir.lock.v2.StartTransactionRequestV4;
+import com.palantir.lock.v2.StartTransactionResponseV4;
+import com.palantir.logsafe.Safe;
+import com.palantir.timestamp.TimestampRange;
+
+/**
+ * This class exists as a simple migration of the asynchronous Jersey resources in {@link TimeLockResource}.
+ *
+ * New endpoints should not be added here; instead, they should be defined in Conjure.
+ * Namespaces should respect the regular expression (?!(tl|lw)/)[a-zA-Z0-9_-]+. Requests will still be mapped here, but
+ * we do not guarantee we will service them.
+ */
+public final class LegacyAsyncTimeLockResource {
+    private final TimelockNamespaces namespaces;
+
+    public LegacyAsyncTimeLockResource(TimelockNamespaces namespaces) {
+        this.namespaces = namespaces;
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/fresh-timestamp")
+    public ListenableFuture<Long> getFreshTimestamp(@Safe @Handle.PathParam String namespace) {
+        return Futures.transform(
+                getTimelockService(namespace).getFreshTimestampsAsync(1),
+                TimestampRange::getLowerBound,
+                MoreExecutors.directExecutor());
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/fresh-timestamps")
+    public ListenableFuture<TimestampRange> getFreshTimestamps(
+            @Safe @Handle.PathParam String namespace,
+            @Safe @Handle.QueryParam(value = "number") int numTimestampsRequested) {
+        return getTimelockService(namespace).getFreshTimestampsAsync(numTimestampsRequested);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/lock-immutable-timestamp")
+    public LockImmutableTimestampResponse lockImmutableTimestamp(
+            @Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedTimeLockRequest request) {
+        return getTimelockService(namespace).lockImmutableTimestamp(request);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-atlasdb-transaction")
+    public StartAtlasDbTransactionResponse deprecatedStartTransactionV1(
+            @Safe @Handle.PathParam String namespace, @Handle.Body IdentifiedTimeLockRequest request) {
+        return getTimelockService(namespace).deprecatedStartTransaction(request);
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-identified-atlasdb-transaction")
+    public StartIdentifiedAtlasDbTransactionResponse deprecatedStartTransactionV2(
+            @Safe @Handle.PathParam String namespace, @Handle.Body StartIdentifiedAtlasDbTransactionRequest request) {
+        return getTimelockService(namespace).startTransaction(request).toStartTransactionResponse();
+    }
+
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-atlasdb-transaction-v3")
+    public StartAtlasDbTransactionResponseV3 deprecatedStartTransactionV3(
+            @Safe @Handle.PathParam String namespace, @Handle.Body StartIdentifiedAtlasDbTransactionRequest request) {
+        return getTimelockService(namespace).startTransaction(request);
+    }
+
+    /**
+     * Returns a {@link StartTransactionResponseV4} which has a single immutable ts, and a range of timestamps to
+     * be used as start timestamps.
+     *
+     * It is guaranteed to have at least one usable timestamp matching the partition criteria in the returned timestamp
+     * range, but there is no other guarantee given. (It can be less than number of requested timestamps)
+     */
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timelock/start-atlasdb-transaction-v4")
+    public ListenableFuture<StartTransactionResponseV4> startTransactions(
+            @Safe @Handle.PathParam String namespace, @Handle.Body StartTransactionRequestV4 request) {
+        ConjureStartTransactionsRequest conjureRequest = ConjureStartTransactionsRequest.builder()
+                .requestId(request.requestId())
+                .requestorId(request.requestorId())
+                .numTransactions(request.numTransactions())
+                .build();
+        return Futures.transform(
+                getTimelockService(namespace).startTransactionsWithWatches(conjureRequest),
+                newResponse -> ImmutableStartTransactionResponseV4.builder()
+                        .timestamps(newResponse.getTimestamps())
+                        .immutableTimestamp(newResponse.getImmutableTimestamp())
+                        .lease(newResponse.getLease())
+                        .build(),
+                MoreExecutors.directExecutor());
+    }
+
+    private AsyncTimelockService getTimelockService(String namespace) {
+        return namespaces.get(namespace).getTimelockService();
+    }
+}u}(j@ (23d2547f9cec95597b465e1267d52e02de4fceedjA Mtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/LockV1Resource.javaj A renamedjA KjA K\j"A K^j#A https://github.com/palantir/atlasdb/blob/f62f068385e972cf4264d923b31a90868542a739/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.javaj%A https://github.com/palantir/atlasdb/raw/f62f068385e972cf4264d923b31a90868542a739/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.javaj'A https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.java?ref=f62f068385e972cf4264d923b31a90868542a739j)A X  @@ -21,11 +21,6 @@
 import com.palantir.common.annotation.NonIdempotent;
 import com.palantir.conjure.java.undertow.annotations.Handle;
 import com.palantir.conjure.java.undertow.annotations.HttpMethod;
-import com.palantir.conjure.java.undertow.annotations.SerializerFactory;
-import com.palantir.conjure.java.undertow.lib.Endpoint;
-import com.palantir.conjure.java.undertow.lib.Serializer;
-import com.palantir.conjure.java.undertow.lib.TypeMarker;
-import com.palantir.conjure.java.undertow.lib.UndertowRuntime;
 import com.palantir.lock.HeldLocksGrant;
 import com.palantir.lock.HeldLocksToken;
 import com.palantir.lock.LockClient;
@@ -36,67 +31,25 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.LockState;
 import com.palantir.lock.SimpleHeldLocksToken;
-import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.Safe;
-import com.palantir.timestamp.TimestampRange;
-import io.undertow.server.HttpServerExchange;
-import io.undertow.util.Headers;
-import java.io.IOException;
 import java.math.BigInteger;
-import java.nio.charset.StandardCharsets;
 import java.util.Set;
-import javax.annotation.CheckReturnValue;
 import javax.annotation.Nullable;
-import javax.annotation.meta.When;
 import javax.ws.rs.Consumes;
-import javax.ws.rs.DefaultValue;
-import javax.ws.rs.GET;
 import javax.ws.rs.POST;
 import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
 import javax.ws.rs.Produces;
-import javax.ws.rs.QueryParam;
 import javax.ws.rs.core.MediaType;
 
-/**
- * This class exists as a simple migration of the synchronous Jersey resources in {@link TimeLockResource}.
- * Notice that {@link AsyncTimelockResource} is excluded; the handling of that class is somewhat more complex.
- *
- * New endpoints should not be added here; instead, they should be defined in Conjure.
- * Namespaces should respect the regular expression (?!(tl|lw)/)[a-zA-Z0-9_-]+. Requests will still be mapped here, but
- * we do not guarantee we will service them.
- */
 @Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}")
-public final class LegacyAggregatedTimelockResource {
-    private static final long SENTINEL_TIMESTAMP = Long.MIN_VALUE;
-    private static final String SENTINEL_TIMESTAMP_STRING =
-            SENTINEL_TIMESTAMP + ""; // can't use valueOf/toString because we need a compile time constant!
-
+public class LockV1Resource {
     private final TimelockNamespaces namespaces;
 
-    public LegacyAggregatedTimelockResource(TimelockNamespaces namespaces) {
+    public LockV1Resource(TimelockNamespaces namespaces) {
         this.namespaces = namespaces;
     }
 
-    // Legacy timestamp
-    @POST // This has to be POST because we can't allow caching.
-    @Path("/timestamp/fresh-timestamp")
-    @Produces(MediaType.APPLICATION_JSON)
-    @Handle(method = HttpMethod.POST, path = "/{namespace}/timestamp/fresh-timestamp")
-    public long getFreshTimestamp(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
-        return namespaces.get(namespace).getTimestampService().getFreshTimestamp();
-    }
-
-    @POST // This has to be POST because we can't allow caching.
-    @Path("/timestamp/fresh-timestamps")
-    @Produces(MediaType.APPLICATION_JSON)
-    @Handle(method = HttpMethod.POST, path = "/{namespace}/timestamp/fresh-timestamps")
-    public TimestampRange getFreshTimestamps(
-            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
-            @QueryParam("number") @Handle.QueryParam(value = "number") int numTimestampsRequested) {
-        return namespaces.get(namespace).getTimestampService().getFreshTimestamps(numTimestampsRequested);
-    }
-
     // Lock v1
     @POST
     @Path("/lock/lock-with-full-response/{client}")
@@ -440,47 +393,4 @@ public LockState getLockState(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockDescriptor lock) {
         return namespaces.get(namespace).getLockService().getLockState(lock);
     }
-
-    // Timestamp management
-    @POST
-    @Path("timestamp-management/fast-forward")
-    @Produces(MediaType.APPLICATION_JSON)
-    @Handle(method = HttpMethod.POST, path = "/{namespace}/timestamp-management/fast-forward")
-    public void fastForwardTimestamp(
-            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
-            @Safe
-                    @QueryParam("currentTimestamp")
-                    @DefaultValue(SENTINEL_TIMESTAMP_STRING)
-                    @Handle.QueryParam(value = "currentTimestamp")
-                    Long currentTimestamp) {
-        long timestampToUse = currentTimestamp == null ? SENTINEL_TIMESTAMP : currentTimestamp;
-        namespaces.get(namespace).getTimestampManagementService().fastForwardTimestamp(timestampToUse);
-    }
-
-    @GET
-    @Path("timestamp-management/ping")
-    @Produces(MediaType.TEXT_PLAIN)
-    @CheckReturnValue(when = When.NEVER)
-    @Handle(
-            method = HttpMethod.POST,
-            path = "/{namespace}/timestamp-management/fast-forward",
-            produces = TextPlainSerializer.class)
-    public String ping(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
-        return namespaces.get(namespace).getTimestampManagementService().ping();
-    }
-
-    enum TextPlainSerializer implements SerializerFactory<String> {
-        INSTANCE;
-
-        @Override
-        public <T extends String> Serializer<T> serializer(
-                TypeMarker<T> type, UndertowRuntime runtime, Endpoint endpoint) {
-            return this::serialize;
-        }
-
-        private void serialize(String value, HttpServerExchange exchange) throws IOException {
-            exchange.getResponseHeaders().put(Headers.CONTENT_TYPE, MediaType.TEXT_PLAIN);
-            exchange.getOutputStream().write(value.getBytes(StandardCharsets.UTF_8));
-        }
-    }
 }previous_filename_timelock-impl/src/main/java/com/palantir/atlasdb/timelock/LegacyAggregatedTimelockResource.javau}(j@ (81c1a8948d585a5a155ebc9835254bd4ae386090jA Ztimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimestampManagementResource.javaj A addedjA K`jA K j"A K`j#A https://github.com/palantir/atlasdb/blob/f62f068385e972cf4264d923b31a90868542a739/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampManagementResource.javaj%A https://github.com/palantir/atlasdb/raw/f62f068385e972cf4264d923b31a90868542a739/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampManagementResource.javaj'A https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampManagementResource.java?ref=f62f068385e972cf4264d923b31a90868542a739j)A X  @@ -0,0 +1,96 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock;
+
+import com.palantir.conjure.java.undertow.annotations.Handle;
+import com.palantir.conjure.java.undertow.annotations.HttpMethod;
+import com.palantir.conjure.java.undertow.annotations.SerializerFactory;
+import com.palantir.conjure.java.undertow.lib.Endpoint;
+import com.palantir.conjure.java.undertow.lib.Serializer;
+import com.palantir.conjure.java.undertow.lib.TypeMarker;
+import com.palantir.conjure.java.undertow.lib.UndertowRuntime;
+import com.palantir.logsafe.Safe;
+import io.undertow.server.HttpServerExchange;
+import io.undertow.util.Headers;
+import java.io.IOException;
+import java.nio.charset.StandardCharsets;
+import javax.annotation.CheckReturnValue;
+import javax.annotation.meta.When;
+import javax.ws.rs.DefaultValue;
+import javax.ws.rs.GET;
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+import javax.ws.rs.PathParam;
+import javax.ws.rs.Produces;
+import javax.ws.rs.QueryParam;
+import javax.ws.rs.core.MediaType;
+
+@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}")
+public class TimestampManagementResource {
+    private static final long SENTINEL_TIMESTAMP = Long.MIN_VALUE;
+    private static final String SENTINEL_TIMESTAMP_STRING =
+            SENTINEL_TIMESTAMP + ""; // can't use valueOf/toString because we need a compile time constant!
+
+    private final TimelockNamespaces namespaces;
+
+    public TimestampManagementResource(TimelockNamespaces namespaces) {
+        this.namespaces = namespaces;
+    }
+
+    // Timestamp management
+    @POST
+    @Path("timestamp-management/fast-forward")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timestamp-management/fast-forward")
+    public void fastForwardTimestamp(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Safe
+                    @QueryParam("currentTimestamp")
+                    @DefaultValue(SENTINEL_TIMESTAMP_STRING)
+                    @Handle.QueryParam(value = "currentTimestamp")
+                    Long currentTimestamp) {
+        long timestampToUse = currentTimestamp == null ? SENTINEL_TIMESTAMP : currentTimestamp;
+        namespaces.get(namespace).getTimestampManagementService().fastForwardTimestamp(timestampToUse);
+    }
+
+    @GET
+    @Path("timestamp-management/ping")
+    @Produces(MediaType.TEXT_PLAIN)
+    @CheckReturnValue(when = When.NEVER)
+    @Handle(
+            method = HttpMethod.POST,
+            path = "/{namespace}/timestamp-management/fast-forward",
+            produces = TextPlainSerializer.class)
+    public String ping(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        return namespaces.get(namespace).getTimestampManagementService().ping();
+    }
+
+    enum TextPlainSerializer implements SerializerFactory<String> {
+        INSTANCE;
+
+        @Override
+        public <T extends String> Serializer<T> serializer(
+                TypeMarker<T> type, UndertowRuntime runtime, Endpoint endpoint) {
+            return this::serialize;
+        }
+
+        private void serialize(String value, HttpServerExchange exchange) throws IOException {
+            exchange.getResponseHeaders().put(Headers.CONTENT_TYPE, MediaType.TEXT_PLAIN);
+            exchange.getOutputStream().write(value.getBytes(StandardCharsets.UTF_8));
+        }
+    }
+}u}(j@ (6482409fbbf5335a4095754d5e885aad5796a65cjA Ptimelock-impl/src/main/java/com/palantir/atlasdb/timelock/TimestampResource.javaj A addedjA K8jA K j"A K8j#A https://github.com/palantir/atlasdb/blob/f62f068385e972cf4264d923b31a90868542a739/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampResource.javaj%A https://github.com/palantir/atlasdb/raw/f62f068385e972cf4264d923b31a90868542a739/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampResource.javaj'A https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FTimestampResource.java?ref=f62f068385e972cf4264d923b31a90868542a739j)A Xu	  @@ -0,0 +1,56 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock;
+
+import com.palantir.conjure.java.undertow.annotations.Handle;
+import com.palantir.conjure.java.undertow.annotations.HttpMethod;
+import com.palantir.logsafe.Safe;
+import com.palantir.timestamp.TimestampRange;
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+import javax.ws.rs.PathParam;
+import javax.ws.rs.Produces;
+import javax.ws.rs.QueryParam;
+import javax.ws.rs.core.MediaType;
+
+@Path("/{namespace: (?!(tl|lw)/)[a-zA-Z0-9_-]+}")
+public final class TimestampResource {
+    private final TimelockNamespaces namespaces;
+
+    public TimestampResource(TimelockNamespaces timelockNamespaces) {
+        this.namespaces = timelockNamespaces;
+    }
+
+    // Legacy timestamp
+    @POST // This has to be POST because we can't allow caching.
+    @Path("/timestamp/fresh-timestamp")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timestamp/fresh-timestamp")
+    public long getFreshTimestamp(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        return namespaces.get(namespace).getTimestampService().getFreshTimestamp();
+    }
+
+    @POST // This has to be POST because we can't allow caching.
+    @Path("/timestamp/fresh-timestamps")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timestamp/fresh-timestamps")
+    public TimestampRange getFreshTimestamps(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @QueryParam("number") @Handle.QueryParam(value = "number") int numTimestampsRequested) {
+        return namespaces.get(namespace).getTimestampService().getFreshTimestamps(numTimestampsRequested);
+    }
+}ueu(0b1fd5b611a502e343acf2144c0e384c0ca64b3b}(sha(0b1fd5b611a502e343acf2144c0e384c0ca64b3bnode_idEC_kwDOAjP5fdoAKDBiMWZkNWI2MTFhNTAyZTM0M2FjZjIxNDRjMGUzODRjMGNhNjRiM2Icommit}(author}(name	Tom Papkeemail+43675490+Toemmsche@users.noreply.github.comdate2023-08-08T16:43:10Zu	committer}(jgA GitHubjiA noreply@github.comjkA 2023-08-08T16:43:10Zumessagen[LWMeta] Pass Metadata through SnapshotTransaction (#6671)

[LWMeta] Pass Metadata through SnapshotTransactiontree}(j_A (85ee257e2997bd345f68fea7c3aab5cc2266bce5url`https://api.github.com/repos/palantir/atlasdb/git/trees/85ee257e2997bd345f68fea7c3aab5cc2266bce5ujwA bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0b1fd5b611a502e343acf2144c0e384c0ca64b3b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk0nCeCRBK7hj4Ov3rIwAAo/8IAFNLoDYU0IS3s4fC1P3PKnX+
+B00uXyoi/1LGO6yPdtl5lpXrcxFBn1dPHH3N3yUkDPD7ZMZGgiOP8dsMV10f968
bpAwzh9B4snI3dnV0VtrtzIeVXLdGt0+e1C/kUwP9nFSFpB49Ilc9nKdPu69kRoa
5tAcnCjprb70PzYPeQY2iGLfRGLfy1rxiMU0rN7RWUszVUpv851JpV7m/7rbcLhN
KWG6S/4JfdF38P/m5GkSXYcq07ypiuZi/mCan8LYilsRqVYgI+zdPO3wyhqHwBhQ
C9dobnlvrdAlL0+vdeboRbWO0O31arC/VrTRZRMBEVnH7C7/0HXkqcxFrGMOOSU=
=UfOv
-----END PGP SIGNATURE-----
payloadXU  tree 85ee257e2997bd345f68fea7c3aab5cc2266bce5
parent 008a3d2275fbfb862f4c2d9c81bfb0059fc8f02c
author Tom Papke <43675490+Toemmsche@users.noreply.github.com> 1691512990 +0200
committer GitHub <noreply@github.com> 1691512990 +0000

[LWMeta] Pass Metadata through SnapshotTransaction (#6671)

[LWMeta] Pass Metadata through SnapshotTransaction
uujwA ^https://api.github.com/repos/palantir/atlasdb/commits/0b1fd5b611a502e343acf2144c0e384c0ca64b3bhtml_urlShttps://github.com/palantir/atlasdb/commit/0b1fd5b611a502e343acf2144c0e384c0ca64b3bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/commentsjeA }(login	ToemmscheidJbojaA MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jwA &https://api.github.com/users/ToemmschejA https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujmA }(jA web-flowjA J/jaA MDQ6VXNlcjE5ODY0NDQ3jA 4https://avatars.githubusercontent.com/u/19864447?v=4jA h5jwA %https://api.github.com/users/web-flowjA https://github.com/web-flowjA /https://api.github.com/users/web-flow/followersjA <https://api.github.com/users/web-flow/following{/other_user}jA 5https://api.github.com/users/web-flow/gists{/gist_id}jA <https://api.github.com/users/web-flow/starred{/owner}{/repo}jA 3https://api.github.com/users/web-flow/subscriptionsjA *https://api.github.com/users/web-flow/orgsjA +https://api.github.com/users/web-flow/reposjA 6https://api.github.com/users/web-flow/events{/privacy}jA 5https://api.github.com/users/web-flow/received_eventsjA UserjA uparents]}(j_A (008a3d2275fbfb862f4c2d9c81bfb0059fc8f02cjwA ^https://api.github.com/repos/palantir/atlasdb/commits/008a3d2275fbfb862f4c2d9c81bfb0059fc8f02cjA Shttps://github.com/palantir/atlasdb/commit/008a3d2275fbfb862f4c2d9c81bfb0059fc8f02cuastats}(totalM	additionsM	deletionsKjufiles](}(j_A (edf0b5a09f10a8057630b672c29e3fed904aa718filename.palantir/revapi.ymlstatusmodifiedjA K
jA K changesK
blob_urlhhttps://github.com/palantir/atlasdb/blob/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=0b1fd5b611a502e343acf2144c0e384c0ca64b3bpatchX  @@ -183,3 +183,13 @@ acceptedBreaks:
         \ com.palantir.atlasdb.spi.KeyValueServiceConfig, com.palantir.refreshable.Refreshable<java.util.Optional<com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig>>,\
         \ java.util.Optional<java.lang.String>, java.util.function.LongSupplier, boolean)"
       justification: "will only be a compile break at worst for users and consumers"
+  "0.908.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.method.addedToInterface"
+      new: "method void com.palantir.atlasdb.transaction.api.Transaction::deleteWithMetadata(com.palantir.atlasdb.keyvalue.api.TableReference,\
+        \ java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell, com.palantir.lock.watch.ChangeMetadata>)"
+      justification: "Adding new metadata interface methods"
+    - code: "java.method.addedToInterface"
+      new: "method void com.palantir.atlasdb.transaction.api.Transaction::putWithMetadata(com.palantir.atlasdb.keyvalue.api.TableReference,\
+        \ java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell, com.palantir.atlasdb.transaction.api.ValueAndChangeMetadata>)"
+      justification: "Adding new metadata interface methods"u}(j_A (b0456a0885cea14c59a8992c6bfc4a60d3d3984ajA Oatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/Transaction.javajA modifiedjA KjA K jA KjA https://github.com/palantir/atlasdb/blob/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javajA https://github.com/palantir/atlasdb/raw/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.java?ref=0b1fd5b611a502e343acf2144c0e384c0ca64b3bjA X  @@ -27,6 +27,7 @@
 import com.palantir.atlasdb.transaction.service.TransactionService;
 import com.palantir.common.annotation.Idempotent;
 import com.palantir.common.base.BatchingVisitable;
+import com.palantir.lock.watch.ChangeMetadata;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
@@ -271,6 +272,18 @@ Stream<BatchingVisitable<RowResult<byte[]>>> getRangesLazy(
     @Idempotent
     void put(TableReference tableRef, Map<Cell, byte[]> values);
 
+    /**
+     * Behaves like {@link Transaction#put}, but additionally stores {@link ChangeMetadata} for cells. This metadata is
+     * forwarded to TimeLock when acquiring locks at the beginning of the commit protocol.
+     * If two cells in the same row have metadata and the {@link ConflictHandler} for the table acquires row locks,
+     * {@link Transaction#commit} will fail.
+     *
+     * @param tableRef the table into which to put the values and metadata
+     * @param valuesAndMetadata the metadata-enriched values to append to the table
+     */
+    @Idempotent
+    void putWithMetadata(TableReference tableRef, Map<Cell, ValueAndChangeMetadata> valuesAndMetadata);
+
     /**
      * Deletes values from the key-value store.
      * @param tableRef the table from which to delete the values
@@ -279,6 +292,19 @@ Stream<BatchingVisitable<RowResult<byte[]>>> getRangesLazy(
     @Idempotent
     void delete(TableReference tableRef, Set<Cell> keys);
 
+    /**
+     * Behaves like {@link Transaction#delete}, but additionally stores {@link ChangeMetadata} for the deleted cells.
+     * This metadata is forwarded to TimeLock when acquiring locks at the beginning of the commit protocol.
+     * If two cells in the same row have metadata and the {@link ConflictHandler} for the table acquires row locks,
+     * {@link Transaction#commit} will fail.
+     *
+     * @param tableRef the table from which to delete the values and for which to store metadata
+     * @param keysWithMetadata the cells to delete associated with the metadata that should be stored for
+     * them
+     */
+    @Idempotent
+    void deleteWithMetadata(TableReference tableRef, Map<Cell, ChangeMetadata> keysWithMetadata);
+
     @Idempotent
     TransactionType getTransactionType();
 u}(j_A (464af1055852879038fb8cf7fd5a03bc060b19c8jA Zatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/ValueAndChangeMetadata.javajA addedjA K!jA K jA K!jA https://github.com/palantir/atlasdb/blob/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FValueAndChangeMetadata.javaQ     jA https://github.com/palantir/atlasdb/raw/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FValueAndChangeMetadata.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FValueAndChangeMetadata.java?ref=0b1fd5b611a502e343acf2144c0e384c0ca64b3bjA Xc  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.api;
+
+import com.palantir.lock.watch.ChangeMetadata;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ValueAndChangeMetadata {
+    @Value.Parameter
+    byte[] value();
+
+    @Value.Parameter
+    ChangeMetadata metadata();
+
+    static ValueAndChangeMetadata of(byte[] value, ChangeMetadata metadata) {
+        return ImmutableValueAndChangeMetadata.of(value, metadata);
+    }
+}u}(j_A (9a36d4185ea773abb59b7f03c16e6aad2eb6b564jA ]atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingTransaction.javajA modifiedjA KjA K jA KjA https://github.com/palantir/atlasdb/blob/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.javajA https://github.com/palantir/atlasdb/raw/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.java?ref=0b1fd5b611a502e343acf2144c0e384c0ca64b3bjA X  @@ -29,8 +29,10 @@
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionFailedException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.ValueAndChangeMetadata;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 import com.palantir.common.base.BatchingVisitable;
+import com.palantir.lock.watch.ChangeMetadata;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
@@ -127,11 +129,21 @@ public void put(TableReference tableRef, Map<Cell, byte[]> values) {
         delegate().put(tableRef, values);
     }
 
+    @Override
+    public void putWithMetadata(TableReference tableRef, Map<Cell, ValueAndChangeMetadata> valuesAndMetadata) {
+        delegate().putWithMetadata(tableRef, valuesAndMetadata);
+    }
+
     @Override
     public void delete(TableReference tableRef, Set<Cell> keys) {
         delegate().delete(tableRef, keys);
     }
 
+    @Override
+    public void deleteWithMetadata(TableReference tableRef, Map<Cell, ChangeMetadata> keys) {
+        delegate().deleteWithMetadata(tableRef, keys);
+    }
+
     @Override
     public void abort() {
         delegate().abort();u}(j_A (694b68e4bb415727d5342000d35da381b4fa47bbjA _atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/watch/LocksAndMetadata.javajA addedjA K(jA K jA K(jA https://github.com/palantir/atlasdb/blob/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FLocksAndMetadata.javajA https://github.com/palantir/atlasdb/raw/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FLocksAndMetadata.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FLocksAndMetadata.java?ref=0b1fd5b611a502e343acf2144c0e384c0ca64b3bjA X  @@ -0,0 +1,40 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.api.watch;
+
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.watch.LockRequestMetadata;
+import com.palantir.logsafe.Unsafe;
+import java.util.Optional;
+import java.util.Set;
+import org.immutables.value.Value;
+
+@Unsafe
+@Value.Immutable
+public interface LocksAndMetadata {
+    LocksAndMetadata EMPTY = LocksAndMetadata.of(Set.of(), Optional.empty());
+
+    @Value.Parameter
+    Set<LockDescriptor> lockDescriptors();
+
+    @Value.Parameter
+    Optional<LockRequestMetadata> metadata();
+
+    static LocksAndMetadata of(Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {
+        return ImmutableLocksAndMetadata.of(lockDescriptors, metadata);
+    }
+}u}(j_A (a197605a5a01db4d3be14b4a17059f1a9b765d34jA ]atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/LocalWriteBuffer.javajA addedjA KjA K jA KjA https://github.com/palantir/atlasdb/blob/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBuffer.javajA https://github.com/palantir/atlasdb/raw/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBuffer.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBuffer.java?ref=0b1fd5b611a502e343acf2144c0e384c0ca64b3bjA Xw  @@ -0,0 +1,129 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import com.google.common.base.MoreObjects;
+import com.google.common.collect.Sets;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.keyvalue.impl.Cells;
+import com.palantir.atlasdb.logging.LoggingArgs;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Set;
+import java.util.concurrent.ConcurrentHashMap;
+import java.util.concurrent.ConcurrentMap;
+import java.util.concurrent.ConcurrentNavigableMap;
+import java.util.concurrent.ConcurrentSkipListMap;
+import java.util.concurrent.atomic.AtomicLong;
+
+class LocalWriteBuffer {
+    private static final SafeLogger log = SafeLoggerFactory.get(LocalWriteBuffer.class);
+
+    private final ConcurrentMap<TableReference, ConcurrentNavigableMap<Cell, byte[]>> writesByTable =
+            new ConcurrentHashMap<>();
+    private final ConcurrentMap<TableReference, Map<Cell, ChangeMetadata>> metadataByTable = new ConcurrentHashMap<>();
+    private final ConcurrentMap<TableReference, Object> locksByTable = new ConcurrentHashMap<>();
+    private final AtomicLong byteCount = new AtomicLong();
+
+    public void putLocalWritesAndMetadata(
+            TableReference tableRef, Map<Cell, byte[]> values, Map<Cell, ChangeMetadata> metadata) {
+        ConcurrentMap<Cell, byte[]> writes = getLocalWritesForTable(tableRef);
+        Map<Cell, ChangeMetadata> metadataForWrites = getChangeMetadataForTableInternal(tableRef);
+        int numMetadataWritten = 0;
+        synchronized (getLockForTable(tableRef)) {
+            for (Map.Entry<Cell, byte[]> e : values.entrySet()) {
+                byte[] val = MoreObjects.firstNonNull(e.getValue(), PtBytes.EMPTY_BYTE_ARRAY);
+                Cell cell = e.getKey();
+                byte[] oldVal = writes.put(cell, val);
+                // If we are not writing metadata for a value, we have to remove any previously stored metadata since
+                // it may not be valid for the new value.
+                if (metadata.containsKey(cell)) {
+                    metadataForWrites.put(cell, metadata.get(cell));
+                    numMetadataWritten++;
+                } else {
+                    metadataForWrites.remove(cell);
+                }
+                long toAdd = val.length + Cells.getApproxSizeOfCell(cell);
+                long toSubtract = oldVal != null ? oldVal.length + Cells.getApproxSizeOfCell(cell) : 0;
+                long newByteCount = byteCount.addAndGet(toAdd - toSubtract);
+                if (newByteCount >= TransactionConstants.WARN_LEVEL_FOR_QUEUED_BYTES
+                        && newByteCount - toAdd < TransactionConstants.WARN_LEVEL_FOR_QUEUED_BYTES) {
+                    log.warn(
+                            "A single transaction has put quite a few bytes: {}. "
+                                    + "Enable debug logging for more information",
+                            SafeArg.of("numBytes", newByteCount));
+                    if (log.isDebugEnabled()) {
+                        log.debug(
+                                "This exception and stack trace are provided for debugging purposes.",
+                                new RuntimeException());
+                    }
+                }
+            }
+        }
+        if (numMetadataWritten != metadata.size()) {
+            Set<Cell> cellsWithOnlyMetadata = Sets.difference(metadata.keySet(), values.keySet());
+            throw new SafeIllegalStateException(
+                    "Every metadata we put must be associated with a write",
+                    LoggingArgs.tableRef(tableRef),
+                    UnsafeArg.of("cellsWithOnlyMetadata", cellsWithOnlyMetadata));
+        }
+    }
+
+    /**
+     * Returns all local writes that have been buffered.
+     */
+    public ConcurrentMap<TableReference, ConcurrentNavigableMap<Cell, byte[]>> getLocalWrites() {
+        return writesByTable;
+    }
+
+    /**
+     * Returns the local writes for cells of the given table.
+     */
+    public ConcurrentNavigableMap<Cell, byte[]> getLocalWritesForTable(TableReference tableRef) {
+        return writesByTable.computeIfAbsent(tableRef, unused -> new ConcurrentSkipListMap<>());
+    }
+
+    /**
+     * Returns an unmodifiable view of the change metadata for cells of the given table.
+     */
+    public Map<Cell, ChangeMetadata> getChangeMetadataForTable(TableReference tableRef) {
+        return Collections.unmodifiableMap(getChangeMetadataForTableInternal(tableRef));
+    }
+
+    private Map<Cell, ChangeMetadata> getChangeMetadataForTableInternal(TableReference tableRef) {
+        // No need for concurrency control on the cell level since it is only written to with a lock and
+        // read during commit, which is guaranteed to be single-threaded and exclusive with writing.
+        return metadataByTable.computeIfAbsent(tableRef, unused -> new HashMap<>());
+    }
+
+    public long getByteCount() {
+        return byteCount.get();
+    }
+
+    private Object getLockForTable(TableReference tableRef) {
+        return locksByTable.computeIfAbsent(tableRef, _unused -> new Object());
+    }
+}u}(j_A (1452c8a1e61c20f23a54d0f970f6e0c6adb07e01jA datlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.javajA modifiedjA KjA KjA K%jA https://github.com/palantir/atlasdb/blob/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javajA https://github.com/palantir/atlasdb/raw/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.java?ref=0b1fd5b611a502e343acf2144c0e384c0ca64b3bjA X  @@ -575,15 +575,15 @@ private void verifyColumns(
                 // We want to filter out all our reads to just the set that matches our column selection.
                 originalReads = Maps.filterKeys(originalReads, input -> columns.contains(input.getColumnName()));
 
-                if (writesByTable.get(table) != null) {
+                if (localWriteBuffer.getLocalWrites().get(table) != null) {
                     // We don't want to verify any reads that we wrote to cause
                     // we will just read our own values.
                     // NB: We filter our write set out here because our normal SI
                     // checking handles this case to ensure the value hasn't changed.
                     originalReads = Maps.filterKeys(
                             originalReads,
-                            Predicates.not(
-                                    Predicates.in(writesByTable.get(table).keySet())));
+                            Predicates.not(Predicates.in(
+                                    localWriteBuffer.getLocalWrites().get(table).keySet())));
                 }
 
                 if (currentRow == null && originalReads.isEmpty()) {
@@ -595,15 +595,15 @@ private void verifyColumns(
                 }
 
                 Map<Cell, byte[]> currentCells = Maps2.fromEntries(currentRow.getCells());
-                if (writesByTable.get(table) != null) {
+                if (localWriteBuffer.getLocalWrites().get(table) != null) {
                     // We don't want to verify any reads that we wrote to cause
                     // we will just read our own values.
                     // NB: We filter our write set out here because our normal SI
                     // checking handles this case to ensure the value hasn't changed.
                     currentCells = Maps.filterKeys(
                             currentCells,
-                            Predicates.not(
-                                    Predicates.in(writesByTable.get(table).keySet())));
+                            Predicates.not(Predicates.in(
+                                    localWriteBuffer.getLocalWrites().get(table).keySet())));
                 }
                 if (!ByteArrayUtilities.areMapsEqual(originalReads, currentCells)) {
                     handleTransactionConflict(table);
@@ -621,12 +621,15 @@ private void verifyCells(Transaction readOnlyTransaction) {
             for (Iterable<Cell> batch : Iterables.partition(cells, BATCH_SIZE)) {
                 // We don't want to verify any reads that we wrote to cause we will just read our own values.
                 // NB: If the value has changed between read and write, our normal SI checking handles this case
-                Iterable<Cell> batchWithoutWrites = writesByTable.get(table) != null
-                        ? Iterables.filter(
-                                batch,
-                                Predicates.not(
-                                        Predicates.in(writesByTable.get(table).keySet())))
-                        : batch;
+                Iterable<Cell> batchWithoutWrites =
+                        localWriteBuffer.getLocalWrites().get(table) != null
+                                ? Iterables.filter(
+                                        batch,
+                                        Predicates.not(Predicates.in(localWriteBuffer
+                                                .getLocalWrites()
+                                                .get(table)
+                                                .keySet())))
+                                : batch;
                 ImmutableSet<Cell> batchWithoutWritesSet = ImmutableSet.copyOf(batchWithoutWrites);
                 Map<Cell, byte[]> currentBatch = readOnlyTransaction.get(table, batchWithoutWritesSet);
                 ImmutableMap<Cell, byte[]> originalReads = Maps.toMap(
@@ -656,7 +659,8 @@ private void verifyRanges(Transaction readOnlyTransaction) {
                             .build();
                 }
 
-                ConcurrentNavigableMap<Cell, byte[]> writes = writesByTable.get(table);
+                ConcurrentNavigableMap<Cell, byte[]> writes =
+                        localWriteBuffer.getLocalWrites().get(table);
                 BatchingVisitableView<RowResult<byte[]>> bv =
                         BatchingVisitableView.of(readOnlyTransaction.getRange(table, range));
                 NavigableMap<Cell, ByteBuffer> readsInRange =
@@ -684,7 +688,8 @@ private NavigableMap<Cell, byte[]> getReadsInColumnRangeSkippingWrites(
             Cell endCell = Cells.createSmallestCellForRow(RangeRequests.nextLexicographicName(row));
             reads = reads.headMap(endCell, false);
         }
-        ConcurrentNavigableMap<Cell, byte[]> writes = writesByTable.get(table);
+        ConcurrentNavigableMap<Cell, byte[]> writes =
+                localWriteBuffer.getLocalWrites().get(table);
         if (writes != null) {
             reads = Maps.filterKeys(reads, Predicates.not(Predicates.in(writes.keySet())));
         }
@@ -809,7 +814,7 @@ private static boolean allEntriesRead(byte[] greatestColumnSoFar) {
 
     private List<Map.Entry<Cell, ByteBuffer>> filterWritesFromCells(
             Iterable<Map.Entry<Cell, byte[]>> cells, TableReference table) {
-        return filterWritesFromCells(cells, writesByTable.get(table));
+        return filterWritesFromCells(cells, localWriteBuffer.getLocalWrites().get(table));
     }
 
     private static List<Map.Entry<Cell, ByteBuffer>> filterWritesFromCells(
@@ -842,7 +847,7 @@ private NavigableMap<Cell, byte[]> getReadsInRange(TableReference table, RangeRe
         if (range.getEndExclusive().length != 0) {
             reads = reads.headMap(Cells.createSmallestCellForRow(range.getEndExclusive()), false);
         }
-        Map<Cell, byte[]> writes = writesByTable.get(table);
+        Map<Cell, byte[]> writes = localWriteBuffer.getLocalWrites().get(table);
         if (writes != null) {
             reads = Maps.filterKeys(reads, Predicates.not(Predicates.in(writes.keySet())));
         }u}(j_A (af1646a03fdc092457f641a230ecb3296a63d5b5jA `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javajA modifiedjA KjA KKjA KjA https://github.com/palantir/atlasdb/blob/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajA https://github.com/palantir/atlasdb/raw/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=0b1fd5b611a502e343acf2144c0e384c0ca64b3bjA X~\  @@ -22,7 +22,6 @@
 import com.codahale.metrics.Timer;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Functions;
-import com.google.common.base.MoreObjects;
 import com.google.common.base.Predicate;
 import com.google.common.base.Predicates;
 import com.google.common.collect.AbstractIterator;
@@ -72,6 +71,7 @@
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCache;
 import com.palantir.atlasdb.keyvalue.api.watch.LockWatchManagerInternal;
+import com.palantir.atlasdb.keyvalue.api.watch.LocksAndMetadata;
 import com.palantir.atlasdb.keyvalue.impl.Cells;
 import com.palantir.atlasdb.keyvalue.impl.KeyValueServices;
 import com.palantir.atlasdb.keyvalue.impl.LocalRowColumnRangeIterator;
@@ -97,6 +97,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.ValueAndChangeMetadata;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
@@ -131,6 +132,8 @@
 import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.v2.TimelockService;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
@@ -158,7 +161,6 @@
 import java.util.List;
 import java.util.Map;
 import java.util.NavigableMap;
-import java.util.NavigableSet;
 import java.util.NoSuchElementException;
 import java.util.Objects;
 import java.util.Optional;
@@ -169,7 +171,6 @@
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ConcurrentMap;
 import java.util.concurrent.ConcurrentNavigableMap;
-import java.util.concurrent.ConcurrentSkipListMap;
 import java.util.concurrent.CopyOnWriteArrayList;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.RejectedExecutionException;
@@ -251,10 +252,9 @@ private enum State {
     private final PreCommitCondition preCommitCondition;
     protected final long timeCreated = System.currentTimeMillis();
 
-    protected final ConcurrentMap<TableReference, ConcurrentNavigableMap<Cell, byte[]>> writesByTable =
-            new ConcurrentHashMap<>();
+    protected final LocalWriteBuffer localWriteBuffer = new LocalWriteBuffer();
+
     protected final TransactionConflictDetectionManager conflictDetectionManager;
-    private final AtomicLong byteCount = new AtomicLong();
 
     private final AtlasDbConstraintCheckingMode constraintCheckingMode;
 
@@ -437,7 +437,7 @@ private NavigableMap<byte[], RowResult<byte[]>> getRowsInternal(
         ImmutableSortedMap.Builder<Cell, byte[]> result = ImmutableSortedMap.naturalOrder();
         Map<Cell, Value> rawResults =
                 new HashMap<>(keyValueService.getRows(tableRef, rows, columnSelection, getStartTimestamp()));
-        NavigableMap<Cell, byte[]> writes = writesByTable.get(tableRef);
+        NavigableMap<Cell, byte[]> writes = localWriteBuffer.getLocalWrites().get(tableRef);
         if (writes != null && !writes.isEmpty()) {
             for (byte[] row : rows) {
                 extractLocalWritesForRow(result, writes, row, columnSelection);
@@ -939,7 +939,7 @@ private ListenableFuture<Map<Cell, byte[]>> getInternal(
         hasReads = true;
 
         Map<Cell, byte[]> result = new HashMap<>();
-        Map<Cell, byte[]> writes = writesByTable.get(tableRef);
+        Map<Cell, byte[]> writes = localWriteBuffer.getLocalWrites().get(tableRef);
         if (writes != null && !writes.isEmpty()) {
             for (Cell cell : cells) {
                 byte[] value = writes.get(cell);
@@ -1378,10 +1378,6 @@ protected Iterator<RowResult<T>> computeNext() {
         return ClosableIterators.wrap(rows, results);
     }
 
-    private ConcurrentNavigableMap<Cell, byte[]> getLocalWrites(TableReference tableRef) {
-        return writesByTable.computeIfAbsent(tableRef, unused -> new ConcurrentSkipListMap<>());
-    }
-
     /**
      * This includes deleted writes as zero length byte arrays, be sure to strip them out.
      *
@@ -1390,7 +1386,7 @@ private ConcurrentNavigableMap<Cell, byte[]> getLocalWrites(TableReference table
      */
     private SortedMap<Cell, byte[]> getLocalWritesForRange(
             TableReference tableRef, byte[] startRow, byte[] endRow, SortedSet<byte[]> selectedColumns) {
-        SortedMap<Cell, byte[]> writes = getLocalWrites(tableRef);
+        SortedMap<Cell, byte[]> writes = localWriteBuffer.getLocalWritesForTable(tableRef);
         if (startRow.length != 0) {
             writes = writes.tailMap(Cells.createSmallestCellForRow(startRow));
         }
@@ -1405,7 +1401,7 @@ private SortedMap<Cell, byte[]> getLocalWritesForRange(
 
     private SortedMap<Cell, byte[]> getLocalWritesForColumnRange(
             TableReference tableRef, BatchColumnRangeSelection columnRangeSelection, byte[] row) {
-        SortedMap<Cell, byte[]> writes = getLocalWrites(tableRef);
+        SortedMap<Cell, byte[]> writes = localWriteBuffer.getLocalWritesForTable(tableRef);
         Cell startCell;
         if (columnRangeSelection.getStartCol().length != 0) {
             startCell = Cell.create(row, columnRangeSelection.getStartCol());
@@ -1772,18 +1768,42 @@ protected boolean shouldDeleteAndRollback() {
 
     @Override
     public final void delete(TableReference tableRef, Set<Cell> cells) {
+        deleteWithMetadataInternal(tableRef, cells, ImmutableMap.of());
+    }
+
+    @Override
+    public void deleteWithMetadata(TableReference tableRef, Map<Cell, ChangeMetadata> cellsWithMetadata) {
+        deleteWithMetadataInternal(tableRef, cellsWithMetadata.keySet(), cellsWithMetadata);
+    }
+
+    private void deleteWithMetadataInternal(
+            TableReference tableRef, Set<Cell> cells, Map<Cell, ChangeMetadata> metadata) {
         getCache().delete(tableRef, cells);
-        putInternal(tableRef, Cells.constantValueMap(cells, PtBytes.EMPTY_BYTE_ARRAY));
+        writeToLocalBuffer(tableRef, Cells.constantValueMap(cells, PtBytes.EMPTY_BYTE_ARRAY), metadata);
     }
 
     @Override
     public void put(TableReference tableRef, Map<Cell, byte[]> values) {
+        putWithMetadataInternal(tableRef, values, ImmutableMap.of());
+    }
+
+    @Override
+    public void putWithMetadata(TableReference tableRef, Map<Cell, ValueAndChangeMetadata> valuesAndMetadata) {
+        putWithMetadataInternal(
+                tableRef,
+                Maps.transformValues(valuesAndMetadata, ValueAndChangeMetadata::value),
+                Maps.transformValues(valuesAndMetadata, ValueAndChangeMetadata::metadata));
+    }
+
+    private void putWithMetadataInternal(
+            TableReference tableRef, Map<Cell, byte[]> values, Map<Cell, ChangeMetadata> metadata) {
         ensureNoEmptyValues(values);
         getCache().write(tableRef, values);
-        putInternal(tableRef, values);
+        writeToLocalBuffer(tableRef, values, metadata);
     }
 
-    public void putInternal(TableReference tableRef, Map<Cell, byte[]> values) {
+    private void writeToLocalBuffer(
+            TableReference tableRef, Map<Cell, byte[]> values, Map<Cell, ChangeMetadata> metadata) {
         Preconditions.checkArgument(!AtlasDbConstants.HIDDEN_TABLES.contains(tableRef));
         markTableAsInvolvedInThisTransaction(tableRef);
 
@@ -1796,9 +1816,7 @@ public void putInternal(TableReference tableRef, Map<Cell, byte[]> values) {
             // We need to check the status after incrementing writers to ensure that we fail if we are committing.
             ensureUncommitted();
 
-            ConcurrentNavigableMap<Cell, byte[]> writes = getLocalWrites(tableRef);
-
-            putWritesAndLogIfTooLarge(values, writes);
+            localWriteBuffer.putLocalWritesAndMetadata(tableRef, values, metadata);
         } finally {
             numWriters.decrementAndGet();
         }
@@ -1813,29 +1831,6 @@ private void ensureNoEmptyValues(Map<Cell, byte[]> values) {
         }
     }
 
-    private void putWritesAndLogIfTooLarge(Map<Cell, byte[]> values, SortedMap<Cell, byte[]> writes) {
-        for (Map.Entry<Cell, byte[]> e : values.entrySet()) {
-            byte[] val = MoreObjects.firstNonNull(e.getValue(), PtBytes.EMPTY_BYTE_ARRAY);
-            Cell cell = e.getKey();
-            if (writes.put(cell, val) == null) {
-                long toAdd = val.length + Cells.getApproxSizeOfCell(cell);
-                long newVal = byteCount.addAndGet(toAdd);
-                if (newVal >= TransactionConstants.WARN_LEVEL_FOR_QUEUED_BYTES
-                        && newVal - toAdd < TransactionConstants.WARN_LEVEL_FOR_QUEUED_BYTES) {
-                    log.warn(
-                            "A single transaction has put quite a few bytes: {}. "
-                                    + "Enable debug logging for more information",
-                            SafeArg.of("numBytes", newVal));
-                    if (log.isDebugEnabled()) {
-                        log.debug(
-                                "This exception and stack trace are provided for debugging purposes.",
-                                new RuntimeException());
-                    }
-                }
-            }
-        }
-    }
-
     @Override
     public void abort() {
         if (state.get() == State.ABORTED) {
@@ -1992,14 +1987,14 @@ public void commitWithoutCallbacks(TransactionService transactionService) {
     }
 
     private void checkConstraints() {
-        if (writesByTable.isEmpty()) {
+        if (localWriteBuffer.getLocalWrites().isEmpty()) {
             // avoid work in cases where constraints do not apply (e.g. read only transactions)
             return;
         }
 
         List<String> violations = new ArrayList<>();
         for (Map.Entry<TableReference, ConstraintCheckable> entry : constraintsByTableName.entrySet()) {
-            Map<Cell, byte[]> writes = writesByTable.get(entry.getKey());
+            Map<Cell, byte[]> writes = localWriteBuffer.getLocalWrites().get(entry.getKey());
             if (writes != null && !writes.isEmpty()) {
                 List<String> failures = entry.getValue().findConstraintFailures(writes, this, constraintCheckingMode);
                 if (!failures.isEmpty()) {
@@ -2055,7 +2050,9 @@ private void commitWrites(TransactionService transactionService) {
 
                 // Write to the targeted sweep queue. We must do this before writing to the key value service -
                 // otherwise we may have hanging values that targeted sweep won't know about.
-                timedAndTraced("writingToSweepQueue", () -> sweepQueue.enqueue(writesByTable, getStartTimestamp()));
+                timedAndTraced(
+                        "writingToSweepQueue",
+                        () -> sweepQueue.enqueue(localWriteBuffer.getLocalWrites(), getStartTimestamp()));
 
                 // Introduced for txn4 - Prevents sweep from making progress beyond immutableTs before entries were
                 // put into the sweep queue. This ensures that sweep must process writes to the sweep queue done by
@@ -2064,7 +2061,9 @@ private void commitWrites(TransactionService transactionService) {
 
                 // Write to the key value service. We must do this before getting the commit timestamp - otherwise
                 // we risk another transaction starting at a timestamp after our commit timestamp not seeing our writes.
-                timedAndTraced("commitWrite", () -> keyValueService.multiPut(writesByTable, getStartTimestamp()));
+                timedAndTraced(
+                        "commitWrite",
+                        () -> keyValueService.multiPut(localWriteBuffer.getLocalWrites(), getStartTimestamp()));
 
                 // Now that all writes are done, get the commit timestamp
                 // We must do this before we check that our locks are still valid to ensure that other transactions that
@@ -2108,7 +2107,7 @@ private void commitWrites(TransactionService transactionService) {
                 long microsSinceCreation = TimeUnit.MILLISECONDS.toMicros(System.currentTimeMillis() - timeCreated);
                 getTimer("commitTotalTimeSinceTxCreation").update(Duration.of(microsSinceCreation, ChronoUnit.MICROS));
                 getHistogram(AtlasDbMetricNames.SNAPSHOT_TRANSACTION_BYTES_WRITTEN)
-                        .update(byteCount.get());
+                        .update(localWriteBuffer.getByteCount());
             } finally {
                 // Not timed because tryUnlock() is an asynchronous operation.
                 traced("postCommitUnlock", () -> timelockService.tryUnlock(ImmutableSet.of(commitLocksToken)));
@@ -2140,8 +2139,9 @@ protected void throwIfReadWriteConflictForSerializable(long commitTimestamp) {
     }
 
     private boolean hasWrites() {
-        return !writesByTable.isEmpty()
-                && writesByTable.values().stream().anyMatch(writesForTable -> !writesForTable.isEmpty());
+        return !localWriteBuffer.getLocalWrites().isEmpty()
+                && localWriteBuffer.getLocalWrites().values().stream()
+                        .anyMatch(writesForTable -> !writesForTable.isEmpty());
     }
 
     protected boolean hasReads() {
@@ -2214,7 +2214,8 @@ private Set<LockToken> refreshCommitAndImmutableTsLocks(@Nullable LockToken comm
      */
     protected void throwIfConflictOnCommit(LockToken commitLocksToken, TransactionService transactionService)
             throws TransactionConflictException {
-        for (Map.Entry<TableReference, ConcurrentNavigableMap<Cell, byte[]>> write : writesByTable.entrySet()) {
+        for (Map.Entry<TableReference, ConcurrentNavigableMap<Cell, byte[]>> write :
+                localWriteBuffer.getLocalWrites().entrySet()) {
             ConflictHandler conflictHandler = getConflictHandlerForTable(write.getKey());
             throwIfWriteAlreadyCommitted(
                     write.getKey(), write.getValue(), conflictHandler, commitLocksToken, transactionService);
@@ -2476,12 +2477,13 @@ private boolean rollbackOtherTransaction(long startTs, TransactionService transa
      * This method should acquire any locks needed to do proper concurrency control at commit time.
      */
     protected LockToken acquireLocksForCommit() {
-        Set<LockDescriptor> lockDescriptors = getLocksForWrites();
+        LocksAndMetadata locksAndMetadata = getLocksAndMetadataForWrites();
+        Set<LockDescriptor> lockDescriptors = locksAndMetadata.lockDescriptors();
         TransactionConfig currentTransactionConfig = transactionConfig.get();
 
         // TODO(fdesouza): Revert this once PDS-95791 is resolved.
         long lockAcquireTimeoutMillis = currentTransactionConfig.getLockAcquireTimeoutMillis();
-        LockRequest request = LockRequest.of(lockDescriptors, lockAcquireTimeoutMillis);
+        LockRequest request = LockRequest.of(lockDescriptors, lockAcquireTimeoutMillis, locksAndMetadata.metadata());
 
         RuntimeException stackTraceSnapshot = new SafeRuntimeException("I exist to show you the stack trace");
         LockResponse lockResponse = timelockService.lock(
@@ -2527,38 +2529,100 @@ private void logCommitLockTenureExceeded(
                 stackTraceSnapshot);
     }
 
-    protected Set<LockDescriptor> getLocksForWrites() {
-        Set<LockDescriptor> result = new HashSet<>();
+    protected LocksAndMetadata getLocksAndMetadataForWrites() {
+        ImmutableSet.Builder<LockDescriptor> lockDescriptorSetBuilder = ImmutableSet.builder();
+        ImmutableMap.Builder<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadataBuilder =
+                ImmutableMap.builder();
         long cellLockCount = 0L;
         long rowLockCount = 0L;
-        for (TableReference tableRef : writesByTable.keySet()) {
+        for (TableReference tableRef : localWriteBuffer.getLocalWrites().keySet()) {
             ConflictHandler conflictHandler = getConflictHandlerForTable(tableRef);
             if (conflictHandler.lockCellsForConflicts()) {
-                NavigableSet<Cell> cellsToLock = getLocalWrites(tableRef).keySet();
-                for (Cell cell : cellsToLock) {
-                    result.add(AtlasCellLockDescriptor.of(
-                            tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName()));
-                }
-                cellLockCount += cellsToLock.size();
+                cellLockCount +=
+                        collectCellLocks(lockDescriptorSetBuilder, lockDescriptorToChangeMetadataBuilder, tableRef);
             }
-
             if (conflictHandler.lockRowsForConflicts()) {
-                Cell lastCell = null;
-                for (Cell cell : getLocalWrites(tableRef).keySet()) {
-                    if (lastCell == null || !Arrays.equals(lastCell.getRowName(), cell.getRowName())) {
-                        result.add(AtlasRowLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName()));
-                        rowLockCount++;
-                    }
-                    lastCell = cell;
-                }
+                rowLockCount +=
+                        collectRowLocks(lockDescriptorSetBuilder, lockDescriptorToChangeMetadataBuilder, tableRef);
             }
         }
-        result.add(AtlasRowLockDescriptor.of(
+        lockDescriptorSetBuilder.add(AtlasRowLockDescriptor.of(
                 TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
                 TransactionConstants.getValueForTimestamp(getStartTimestamp())));
         cellCommitLocksRequested = cellLockCount;
         rowCommitLocksRequested = rowLockCount + 1;
-        return result;
+        Map<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadata =
+                lockDescriptorToChangeMetadataBuilder.buildOrThrow();
+        return LocksAndMetadata.of(
+                lockDescriptorSetBuilder.build(),
+                // For now, lock request metadata only consists of change metadata. If it is absent, we can save
+                // computation by not doing an index encoding
+                lockDescriptorToChangeMetadata.isEmpty()
+                        ? Optional.empty()
+                        : Optional.of(LockRequestMetadata.of(lockDescriptorToChangeMetadata)));
+    }
+
+    /**
+     * Returns the number of lock descriptors that were added.
+     */
+    private Long collectCellLocks(
+            ImmutableSet.Builder<LockDescriptor> lockDescriptorSetBuilder,
+            ImmutableMap.Builder<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadataBuilder,
+            TableReference tableRef) {
+        long lockCount = 0;
+        Map<Cell, ChangeMetadata> changeMetadataForWrites = localWriteBuffer.getChangeMetadataForTable(tableRef);
+        for (Cell cell : localWriteBuffer.getLocalWritesForTable(tableRef).keySet()) {
+            LockDescriptor lockDescriptor =
+                    AtlasCellLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName());
+            lockDescriptorSetBuilder.add(lockDescriptor);
+            lockCount++;
+            if (changeMetadataForWrites.containsKey(cell)) {
+                lockDescriptorToChangeMetadataBuilder.put(lockDescriptor, changeMetadataForWrites.get(cell));
+            }
+        }
+        return lockCount;
+    }
+
+    /**
+     * Returns the number of lock descriptors that were added.
+     */
+    private Long collectRowLocks(
+            ImmutableSet.Builder<LockDescriptor> lockDescriptorSetBuilder,
+            ImmutableMap.Builder<LockDescriptor, ChangeMetadata> lockDescriptorToChangeMetadataBuilder,
+            TableReference tableRef) {
+        long lockCount = 0;
+        Map<Cell, ChangeMetadata> changeMetadataForWrites = localWriteBuffer.getChangeMetadataForTable(tableRef);
+        Optional<byte[]> lastRow = Optional.empty();
+        Optional<byte[]> lastRowWithMetadata = Optional.empty();
+        Optional<LockDescriptor> currentRowDescriptor = Optional.empty();
+        for (Cell cell : localWriteBuffer.getLocalWritesForTable(tableRef).keySet()) {
+            if (lastRow.isEmpty() || !isSameRow(lastRow.get(), cell.getRowName())) {
+                // We are looking at the first cell of a new row
+                LockDescriptor rowLock = AtlasRowLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName());
+                lockDescriptorSetBuilder.add(rowLock);
+                currentRowDescriptor = Optional.of(rowLock);
+                lastRow = Optional.of(cell.getRowName());
+                lockCount++;
+            }
+            if (changeMetadataForWrites.containsKey(cell)) {
+                if (lastRowWithMetadata.isPresent() && isSameRow(lastRowWithMetadata.get(), cell.getRowName())) {
+                    throw new SafeIllegalStateException(
+                            "Two different cells in the same row have metadata and we create locks on row level.",
+                            LoggingArgs.tableRef(tableRef),
+                            UnsafeArg.of("rowName", cell.getRowName()),
+                            UnsafeArg.of("newMetadata", changeMetadataForWrites.get(cell)));
+                }
+                // At this point, currentRowDescriptor will always contain the row of the current cell
+                lockDescriptorToChangeMetadataBuilder.put(
+                        currentRowDescriptor.orElseThrow(), changeMetadataForWrites.get(cell));
+                lastRowWithMetadata = Optional.of(cell.getRowName());
+            }
+        }
+        return lockCount;
+    }
+
+    private boolean isSameRow(byte[] rowA, byte[] rowB) {
+        return rowA != null && rowB != null && Arrays.equals(rowA, rowB);
     }
 
     ///////////////////////////////////////////////////////////////////////////
@@ -2753,7 +2817,8 @@ private Multimap<Cell, TableReference> getCellsToScrubByCell(State expectedState
         Multimap<Cell, TableReference> cellToTableName = HashMultimap.create();
         State actualState = state.get();
         if (expectedState == actualState) {
-            for (Map.Entry<TableReference, ConcurrentNavigableMap<Cell, byte[]>> entry : writesByTable.entrySet()) {
+            for (Map.Entry<TableReference, ConcurrentNavigableMap<Cell, byte[]>> entry :
+                    localWriteBuffer.getLocalWrites().entrySet()) {
                 TableReference table = entry.getKey();
                 Set<Cell> cells = entry.getValue().keySet();
                 for (Cell c : cells) {
@@ -2770,7 +2835,8 @@ private Multimap<TableReference, Cell> getCellsToScrubByTable(State expectedStat
         Multimap<TableReference, Cell> tableRefToCells = HashMultimap.create();
         State actualState = state.get();
         if (expectedState == actualState) {
-            for (Map.Entry<TableReference, ConcurrentNavigableMap<Cell, byte[]>> entry : writesByTable.entrySet()) {
+            for (Map.Entry<TableReference, ConcurrentNavigableMap<Cell, byte[]>> entry :
+                    localWriteBuffer.getLocalWrites().entrySet()) {
                 TableReference table = entry.getKey();
                 Set<Cell> cells = entry.getValue().keySet();
                 tableRefToCells.putAll(table, cells);u}(j_A (f716b298867762533c9c8156112d10ec5d19f7b3jA aatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/LocalWriteBufferTest.javajA addedjA MjA K jA MjA https://github.com/palantir/atlasdb/blob/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.javajA https://github.com/palantir/atlasdb/raw/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.java?ref=0b1fd5b611a502e343acf2144c0e384c0ca64b3bjA X5  @@ -0,0 +1,263 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.keyvalue.api.Namespace;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.keyvalue.impl.Cells;
+import com.palantir.atlasdb.logging.LoggingArgs;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.Random;
+import java.util.concurrent.Callable;
+import java.util.concurrent.ConcurrentSkipListMap;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutionException;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.TimeoutException;
+import java.util.concurrent.atomic.AtomicReference;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class LocalWriteBufferTest {
+    private static final TableReference TABLE = TableReference.create(Namespace.DEFAULT_NAMESPACE, "test-table");
+    private static final TableReference TABLE_2 = TableReference.create(Namespace.DEFAULT_NAMESPACE, "test-table2");
+    private static final Cell CELL_1 = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("col1"));
+    private static final Cell CELL_2 = Cell.create(PtBytes.toBytes("row2"), PtBytes.toBytes("col2"));
+    private static final byte[] VALUE_1 = PtBytes.toBytes(1L);
+    private static final byte[] VALUE_2 = PtBytes.toBytes(2L);
+    private static final ChangeMetadata METADATA_1 = ChangeMetadata.deleted(PtBytes.toBytes(1L));
+    private static final ChangeMetadata METADATA_2 = ChangeMetadata.created(PtBytes.toBytes(2L));
+
+    private static final ExecutorService DIRECT_EXECUTOR = MoreExecutors.newDirectExecutorService();
+
+    private final LocalWriteBuffer buffer = new LocalWriteBuffer();
+
+    @Test
+    public void canPutValueWithoutMetadata() {
+        buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of());
+
+        assertThat(buffer.getLocalWritesForTable(TABLE))
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(CELL_1, VALUE_1));
+        assertThat(buffer.getChangeMetadataForTable(TABLE)).isEmpty();
+    }
+
+    @Test
+    public void canPutValueWithMetadata() {
+        buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of(CELL_1, METADATA_1));
+
+        assertThat(buffer.getLocalWritesForTable(TABLE))
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(CELL_1, VALUE_1));
+        assertThat(buffer.getChangeMetadataForTable(TABLE))
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(CELL_1, METADATA_1));
+    }
+
+    @Test
+    public void canPutMetadataForSubsetOfWrites() {
+        buffer.putLocalWritesAndMetadata(
+                TABLE, ImmutableMap.of(CELL_1, VALUE_1, CELL_2, VALUE_2), ImmutableMap.of(CELL_1, METADATA_1));
+
+        assertThat(buffer.getLocalWritesForTable(TABLE))
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(CELL_1, VALUE_1, CELL_2, VALUE_2));
+        assertThat(buffer.getChangeMetadataForTable(TABLE))
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(CELL_1, METADATA_1));
+    }
+
+    @Test
+    public void canOverwriteValueAndMetadata() {
+        buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of(CELL_1, METADATA_1));
+        buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_2), ImmutableMap.of(CELL_1, METADATA_2));
+
+        assertThat(buffer.getLocalWritesForTable(TABLE))
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(CELL_1, VALUE_2));
+        assertThat(buffer.getChangeMetadataForTable(TABLE))
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(CELL_1, METADATA_2));
+    }
+
+    @Test
+    public void writingWithoutMetadataRemovesMetadata() {
+        buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of(CELL_1, METADATA_1));
+        buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_2), ImmutableMap.of());
+
+        assertThat(buffer.getLocalWritesForTable(TABLE))
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(CELL_1, VALUE_2));
+        assertThat(buffer.getChangeMetadataForTable(TABLE)).isEmpty();
+    }
+
+    @Test
+    public void canStoreValuesAndMetadataForMultipleCellsAndTables() {
+        buffer.putLocalWritesAndMetadata(
+                TABLE,
+                ImmutableMap.of(CELL_1, VALUE_1, CELL_2, VALUE_2),
+                ImmutableMap.of(CELL_1, METADATA_1, CELL_2, METADATA_2));
+        buffer.putLocalWritesAndMetadata(
+                TABLE_2,
+                ImmutableMap.of(CELL_1, VALUE_1, CELL_2, VALUE_2),
+                ImmutableMap.of(CELL_1, METADATA_1, CELL_2, METADATA_2));
+
+        assertThat(buffer.getLocalWritesForTable(TABLE))
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(CELL_1, VALUE_1, CELL_2, VALUE_2));
+        assertThat(buffer.getLocalWritesForTable(TABLE_2))
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(CELL_1, VALUE_1, CELL_2, VALUE_2));
+        assertThat(buffer.getChangeMetadataForTable(TABLE))
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(CELL_1, METADATA_1, CELL_2, METADATA_2));
+        assertThat(buffer.getChangeMetadataForTable(TABLE_2))
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(CELL_1, METADATA_1, CELL_2, METADATA_2));
+    }
+
+    @Test
+    public void cannotPutMetadataWithoutAnyWrite() {
+        assertThatPutThrowsForAllMetadataDueToMissingWrite(ImmutableMap.of(), ImmutableMap.of(CELL_1, METADATA_1));
+    }
+
+    @Test
+    public void cannotPutMetadataWithoutAssociatedWrite() {
+        assertThatPutThrowsForAllMetadataDueToMissingWrite(
+                ImmutableMap.of(CELL_2, VALUE_2), ImmutableMap.of(CELL_1, METADATA_1));
+    }
+
+    /**
+     * This test would fail for a previous synchronization model for {@link LocalWriteBuffer#putLocalWritesAndMetadata},
+     * where we used {@link ConcurrentSkipListMap#compute} in the following way:
+     *
+     * <pre> {@code
+     *  writes.compute(cell, (k, oldVal) -> {
+     *                 if (hasMetadata) {
+     *                     metadataForWrites.put(cell, metadata.get(cell));
+     *                 } else {
+     *                     metadataForWrites.remove(cell);
+     *                 }
+     *                 return val;
+     *             });
+     * }</pre>
+     * <p>
+     * {@link ConcurrentSkipListMap#compute} uses {@link AtomicReference#compareAndSet} to test whether another thread
+     * has set the value in the meantime. It uses the old value for the key read before calling
+     * {@link ConcurrentSkipListMap#compute} to decide whether it should retry, including re-computation of the value.
+     * <p>
+     * Let Cell C hold value A and no metadata and the following sequence involving two threads occurs:
+     * <pre> {@code
+     * |                   T1                   |                    T2                   |
+     * |:--------------------------------------:|:---------------------------------------:|
+     * | read A as old value                    |                                         |
+     * | putMetadata(C, X)                      |                                         |
+     * |                                        | read A as old value                     |
+     * |                                        | putMetadata(C, Y)                       |
+     * |                                        | compareAndSet(expected: A, newValue: A) |
+     * | compareAndSet(expected:A, newValue: B) |                                         |
+     * }</pre>
+     * Because T2 did not modify the value of C, the {@link AtomicReference#compareAndSet} in T1 succeeds.
+     * At the end of this sequence, C has value B and metadata Y, which violates the atomicity guarantee.
+     */
+    @Test
+    public void writingValueAndMetadataIsAtomicWhenOverwritingWithSameValue()
+            throws InterruptedException, ExecutionException, TimeoutException {
+        int numIterations = 1000;
+        long randomSeed = System.currentTimeMillis();
+        Random random = new Random(randomSeed);
+
+        for (int i = 0; i < numIterations; i++) {
+            buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of());
+
+            CountDownLatch latch = new CountDownLatch(2);
+            Callable<Void> task1 = () -> {
+                latch.countDown();
+                buffer.putLocalWritesAndMetadata(
+                        TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of(CELL_1, METADATA_1));
+                return null;
+            };
+            Callable<Void> task2 = () -> {
+                latch.countDown();
+                buffer.putLocalWritesAndMetadata(
+                        TABLE, ImmutableMap.of(CELL_1, VALUE_2), ImmutableMap.of(CELL_1, METADATA_2));
+                return null;
+            };
+
+            ListeningExecutorService concurrentExecutor =
+                    MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(2));
+
+            List<ListenableFuture<Void>> futures = (random.nextBoolean()
+                            ? ImmutableList.of(task1, task2)
+                            : ImmutableList.of(task2, task1))
+                    .stream().map(concurrentExecutor::submit).collect(Collectors.toUnmodifiableList());
+            Futures.whenAllSucceed(futures).call(() -> null, DIRECT_EXECUTOR).get(20, TimeUnit.SECONDS);
+
+            byte[] currentValue = buffer.getLocalWritesForTable(TABLE).get(CELL_1);
+            ChangeMetadata currentMetadata =
+                    buffer.getChangeMetadataForTable(TABLE).get(CELL_1);
+            assertThat((Arrays.equals(currentValue, VALUE_1) && currentMetadata.equals(METADATA_1))
+                            || (Arrays.equals(currentValue, VALUE_2) && currentMetadata.equals(METADATA_2)))
+                    .as("Atomicity guarantee violated on iteration %d with seed %d", i, randomSeed)
+                    .isTrue();
+        }
+    }
+
+    @Test
+    public void valueByteCountIsUpdatedCorrectlyWhenOverWritingValue() {
+        buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of());
+        assertThat(buffer.getByteCount()).isEqualTo(Cells.getApproxSizeOfCell(CELL_1) + VALUE_1.length);
+
+        byte[] otherValue = PtBytes.toBytes("some long string");
+        buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, otherValue), ImmutableMap.of());
+        assertThat(buffer.getByteCount()).isEqualTo(Cells.getApproxSizeOfCell(CELL_1) + otherValue.length);
+    }
+
+    @Test
+    public void valueByteCountIsUpdatedCorrectlyWhenDeletingValue() {
+        buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of());
+        buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, new byte[0]), ImmutableMap.of());
+
+        assertThat(buffer.getByteCount()).isEqualTo(Cells.getApproxSizeOfCell(CELL_1));
+    }
+
+    @Test
+    public void valueByteCountIsMaintainedAcrossMultipleTables() {
+        buffer.putLocalWritesAndMetadata(TABLE, ImmutableMap.of(CELL_1, VALUE_1), ImmutableMap.of());
+        buffer.putLocalWritesAndMetadata(TABLE_2, ImmutableMap.of(CELL_2, VALUE_2), ImmutableMap.of());
+
+        assertThat(buffer.getByteCount())
+                .isEqualTo(Cells.getApproxSizeOfCell(CELL_1)
+                        + VALUE_1.length
+                        + Cells.getApproxSizeOfCell(CELL_2)
+                        + VALUE_2.length);
+    }
+
+    private void assertThatPutThrowsForAllMetadataDueToMissingWrite(
+            Map<Cell, byte[]> values, Map<Cell, ChangeMetadata> metadata) {
+        assertThatLoggableExceptionThrownBy(() -> buffer.putLocalWritesAndMetadata(TABLE, values, metadata))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasLogMessage("Every metadata we put must be associated with a write")
+                .hasExactlyArgs(LoggingArgs.tableRef(TABLE), UnsafeArg.of("cellsWithOnlyMetadata", metadata.keySet()));
+    }
+}u}(j_A (f5ddbc59e05947ad6a1ba4a881ba71c902dd4b73jA datlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/CachingTransactionTest.javajA modifiedjA K'jA K jA K'jA https://github.com/palantir/atlasdb/blob/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransactionTest.javajA https://github.com/palantir/atlasdb/raw/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransactionTest.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransactionTest.java?ref=0b1fd5b611a502e343acf2144c0e384c0ca64b3bjA X  @@ -16,6 +16,8 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.verify;
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
@@ -29,6 +31,8 @@
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.ValueAndChangeMetadata;
+import com.palantir.lock.watch.ChangeMetadata;
 import java.nio.charset.StandardCharsets;
 import java.util.Arrays;
 import java.util.Collection;
@@ -49,6 +53,11 @@ public class CachingTransactionTest {
     private static final byte[] ROW_BYTES = "row".getBytes(StandardCharsets.UTF_8);
     private static final byte[] COL_BYTES = "col".getBytes(StandardCharsets.UTF_8);
     private static final byte[] VALUE_BYTES = "value".getBytes(StandardCharsets.UTF_8);
+    private static final Cell CELL_1 = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("col1"));
+    private static final Cell CELL_2 = Cell.create(PtBytes.toBytes("row2"), PtBytes.toBytes("col2"));
+    private static final ChangeMetadata CHANGE_METADATA_1 = ChangeMetadata.unchanged();
+    private static final ChangeMetadata CHANGE_METADATA_2 = ChangeMetadata.created(PtBytes.toBytes("new"));
+
     private static final String SYNC = "sync";
     private static final String ASYNC = "async";
 
@@ -163,6 +172,36 @@ public void testGetEmptyCell() {
         testGetCellResults(cell, emptyCellValueMap);
     }
 
+    @Test
+    public void metadataIsForwardedForPutWithMetadata() {
+        Transaction txn = mock(Transaction.class);
+        CachingTransaction cachingTransaction = new CachingTransaction(txn);
+        cachingTransaction.putWithMetadata(
+                table,
+                ImmutableMap.of(
+                        CELL_1,
+                        ValueAndChangeMetadata.of(VALUE_BYTES, CHANGE_METADATA_1),
+                        CELL_2,
+                        ValueAndChangeMetadata.of(VALUE_BYTES, CHANGE_METADATA_2)));
+        verify(txn)
+                .putWithMetadata(
+                        table,
+                        ImmutableMap.of(
+                                CELL_1,
+                                ValueAndChangeMetadata.of(VALUE_BYTES, CHANGE_METADATA_1),
+                                CELL_2,
+                                ValueAndChangeMetadata.of(VALUE_BYTES, CHANGE_METADATA_2)));
+    }
+
+    @Test
+    public void metadataIsForwardedForDeleteWithMetadata() {
+        Transaction txn = mock(Transaction.class);
+        CachingTransaction cachingTransaction = new CachingTransaction(txn);
+        cachingTransaction.deleteWithMetadata(
+                table, ImmutableMap.of(CELL_1, CHANGE_METADATA_1, CELL_2, CHANGE_METADATA_2));
+        verify(txn).deleteWithMetadata(table, ImmutableMap.of(CELL_1, CHANGE_METADATA_1, CELL_2, CHANGE_METADATA_2));
+    }
+
     private void testGetCellResults(Cell cell, Map<Cell, byte[]> cellValueMap) {
         final Set<Cell> cellSet = ImmutableSet.of(cell);
         mockery.checking(expectationsMapping.get(name).apply(cellSet, cellValueMap));u}(j_A (0c583a22f04dd524fd19cfadc30f843a1fdc8f69jA eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javajA modifiedjA M<jA KjA MAjA https://github.com/palantir/atlasdb/blob/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajA https://github.com/palantir/atlasdb/raw/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajA https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=0b1fd5b611a502e343acf2144c0e384c0ca64b3bjA XW  @@ -23,6 +23,7 @@
 import static org.assertj.core.api.Assertions.fail;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyLong;
+import static org.mockito.ArgumentMatchers.argThat;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.doThrow;
@@ -64,13 +65,16 @@
 import com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection;
 import com.palantir.atlasdb.keyvalue.api.ColumnSelection;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
+import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.RangeRequest;
 import com.palantir.atlasdb.keyvalue.api.RangeRequests;
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.Value;
+import com.palantir.atlasdb.keyvalue.api.watch.LocksAndMetadata;
 import com.palantir.atlasdb.keyvalue.api.watch.NoOpLockWatchManager;
 import com.palantir.atlasdb.keyvalue.impl.ForwardingKeyValueService;
+import com.palantir.atlasdb.logging.LoggingArgs;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
 import com.palantir.atlasdb.ptobject.EncodingUtils;
 import com.palantir.atlasdb.sweep.queue.MultiTableSweepQueueWriter;
@@ -95,6 +99,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.ValueAndChangeMetadata;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.impl.metrics.DefaultMetricsFilterEvaluationContext;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
@@ -110,6 +115,7 @@
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.common.proxy.MultiDelegateProxy;
 import com.palantir.common.streams.KeyedStream;
+import com.palantir.lock.AtlasCellLockDescriptor;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.HeldLocksToken;
 import com.palantir.lock.LockClient;
@@ -123,7 +129,10 @@
 import com.palantir.lock.v2.LockImmutableTimestampResponse;
 import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.TimelockService;
+import com.palantir.lock.watch.ChangeMetadata;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.math.BigInteger;
 import java.nio.ByteBuffer;
@@ -134,6 +143,8 @@
 import java.util.Collection;
 import java.util.Collections;
 import java.util.Comparator;
+import java.util.HashMap;
+import java.util.HashSet;
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
@@ -331,6 +342,11 @@ public void cleanup() {}
 
     private static final byte[] TEST_VALUE = PtBytes.toBytes("value");
 
+    private static final ChangeMetadata UPDATE_CHANGE_METADATA =
+            ChangeMetadata.updated(PtBytes.toBytes("abc"), PtBytes.toBytes("def"));
+    private static final ChangeMetadata DELETE_CHANGE_METADATA = ChangeMetadata.deleted(PtBytes.toBytes("old"));
+    private static final ChangeMetadata UNCHANGED_CHANGE_METADATA = ChangeMetadata.unchanged();
+
     @Override
     @Before
     public void setUp() throws Exception {
@@ -1500,7 +1516,7 @@ public void commitThrowsIfRolledBackAtCommitTime_expiredLocks() {
     public void commitThrowsIfCommitLockAcquisitionFails() {
         TimelockService timelockService = mock(TimelockService.class);
         when(timelockService.lock(any(), any())).thenReturn(LockResponse.timedOut());
-        Transaction txn = getSnapshotTransactionWith(timelockService);
+        Transaction txn = getSnapshotTransactionWith(timelockService, ImmutableMap.of());
 
         // We only request commit locks for transactions that write at least one value
         txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
@@ -2551,6 +2567,203 @@ public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
                         SafeArg.of("maxIterations", SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS));
     }
 
+    @Test
+    public void metadataIsTransferredToCellLocksForPutWithMetadata() {
+        TimelockService timelockService = spy(txManager.getTimelockService());
+        // Only locks cells
+        Transaction txn = getSnapshotTransactionWith(
+                timelockService,
+                ImmutableMap.of(TABLE, ConflictHandler.SERIALIZABLE_CELL, TABLE2, ConflictHandler.SERIALIZABLE_CELL));
+
+        txn.putWithMetadata(
+                TABLE,
+                ImmutableMap.of(
+                        TEST_CELL,
+                        ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA),
+                        TEST_CELL_2,
+                        ValueAndChangeMetadata.of(TEST_VALUE, DELETE_CHANGE_METADATA)));
+        txn.putWithMetadata(
+                TABLE2, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, UNCHANGED_CHANGE_METADATA)));
+
+        LockDescriptor cellLock =
+                AtlasCellLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL.getRowName(), TEST_CELL.getColumnName());
+        LockDescriptor cellLock2 = AtlasCellLockDescriptor.of(
+                TABLE.getQualifiedName(), TEST_CELL_2.getRowName(), TEST_CELL_2.getColumnName());
+        LockDescriptor cellLock3 = AtlasCellLockDescriptor.of(
+                TABLE2.getQualifiedName(), TEST_CELL.getRowName(), TEST_CELL.getColumnName());
+        verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
+                txn,
+                timelockService,
+                LocksAndMetadata.of(
+                        ImmutableSet.of(cellLock, cellLock2, cellLock3),
+                        Optional.of(LockRequestMetadata.of(ImmutableMap.of(
+                                cellLock,
+                                UPDATE_CHANGE_METADATA,
+                                cellLock2,
+                                DELETE_CHANGE_METADATA,
+                                cellLock3,
+                                UNCHANGED_CHANGE_METADATA)))));
+    }
+
+    @Test
+    public void metadataIsTransferredToCellLocksForDeleteWithMetadata() {
+        TimelockService timelockService = spy(txManager.getTimelockService());
+        // Only locks cells
+        Transaction txn = getSnapshotTransactionWith(
+                timelockService,
+                ImmutableMap.of(TABLE, ConflictHandler.SERIALIZABLE_CELL, TABLE2, ConflictHandler.SERIALIZABLE_CELL));
+
+        txn.deleteWithMetadata(
+                TABLE, ImmutableMap.of(TEST_CELL, UPDATE_CHANGE_METADATA, TEST_CELL_2, DELETE_CHANGE_METADATA));
+        txn.deleteWithMetadata(TABLE2, ImmutableMap.of(TEST_CELL, UNCHANGED_CHANGE_METADATA));
+
+        LockDescriptor cellLock =
+                AtlasCellLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL.getRowName(), TEST_CELL.getColumnName());
+        LockDescriptor cellLock2 = AtlasCellLockDescriptor.of(
+                TABLE.getQualifiedName(), TEST_CELL_2.getRowName(), TEST_CELL_2.getColumnName());
+        LockDescriptor cellLock3 = AtlasCellLockDescriptor.of(
+                TABLE2.getQualifiedName(), TEST_CELL.getRowName(), TEST_CELL.getColumnName());
+        verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
+                txn,
+                timelockService,
+                LocksAndMetadata.of(
+                        ImmutableSet.of(cellLock, cellLock2, cellLock3),
+                        Optional.of(LockRequestMetadata.of(ImmutableMap.of(
+                                cellLock,
+                                UPDATE_CHANGE_METADATA,
+                                cellLock2,
+                                DELETE_CHANGE_METADATA,
+                                cellLock3,
+                                UNCHANGED_CHANGE_METADATA)))));
+    }
+
+    @Test
+    public void metadataIsTransferredToRowLocks() {
+        TimelockService timelockService = spy(txManager.getTimelockService());
+        // Only locks rows
+        Transaction txn = getSnapshotTransactionWith(
+                timelockService,
+                ImmutableMap.of(TABLE, ConflictHandler.SERIALIZABLE, TABLE2, ConflictHandler.SERIALIZABLE));
+
+        txn.put(TABLE, ImmutableMap.of(Cell.create(ROW_FOO, COL_A), TEST_VALUE));
+        txn.putWithMetadata(
+                TABLE,
+                ImmutableMap.of(
+                        Cell.create(ROW_FOO, COL_B), ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA),
+                        Cell.create(ROW_BAR, COL_A), ValueAndChangeMetadata.of(TEST_VALUE, DELETE_CHANGE_METADATA)));
+        txn.putWithMetadata(
+                TABLE2, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, UNCHANGED_CHANGE_METADATA)));
+
+        LockDescriptor rowLock = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), ROW_FOO);
+        LockDescriptor rowLock2 = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), ROW_BAR);
+        LockDescriptor rowLock3 = AtlasRowLockDescriptor.of(TABLE2.getQualifiedName(), TEST_CELL.getRowName());
+        verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
+                txn,
+                timelockService,
+                LocksAndMetadata.of(
+                        ImmutableSet.of(rowLock, rowLock2, rowLock3),
+                        Optional.of(LockRequestMetadata.of(ImmutableMap.of(
+                                rowLock,
+                                UPDATE_CHANGE_METADATA,
+                                rowLock2,
+                                DELETE_CHANGE_METADATA,
+                                rowLock3,
+                                UNCHANGED_CHANGE_METADATA)))));
+    }
+
+    @Test
+    public void metadataCanBeTransferredToCellAndRowLocksSimultaneously() {
+        TimelockService timelockService = spy(txManager.getTimelockService());
+        // locks both rows and cells
+        Transaction txn = getSnapshotTransactionWith(
+                timelockService, ImmutableMap.of(TABLE, ConflictHandler.SERIALIZABLE_LOCK_LEVEL_MIGRATION));
+
+        txn.putWithMetadata(
+                TABLE, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA)));
+
+        LockDescriptor rowLock = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL.getRowName());
+        LockDescriptor cellLock =
+                AtlasCellLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL.getRowName(), TEST_CELL.getColumnName());
+        verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
+                txn,
+                timelockService,
+                LocksAndMetadata.of(
+                        ImmutableSet.of(rowLock, cellLock),
+                        Optional.of(LockRequestMetadata.of(
+                                ImmutableMap.of(rowLock, UPDATE_CHANGE_METADATA, cellLock, UPDATE_CHANGE_METADATA)))));
+    }
+
+    @Test
+    public void noMetadataResultsInEmptyOptional() {
+        TimelockService timelockService = spy(txManager.getTimelockService());
+        Transaction txn =
+                getSnapshotTransactionWith(timelockService, ImmutableMap.of(TABLE, ConflictHandler.SERIALIZABLE));
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+        verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
+                txn,
+                timelockService,
+                LocksAndMetadata.of(
+                        ImmutableSet.of(AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), TEST_CELL.getRowName())),
+                        Optional.empty()));
+    }
+
+    @Test
+    public void lockCollectionWithoutMetadataIsCorrectForRandomWrites() {
+        long randomSeed = System.currentTimeMillis();
+        int numberOfRowsPerTable = 10;
+        int numberOfCellsPerRow = 10;
+        int maxWritesPerCell = 200;
+
+        Random random = new Random(randomSeed);
+        Map<TableReference, ConflictHandler> tableToConflictHandler = getTablesForAllConflictHandlers();
+        List<TableReference> tables = ImmutableList.copyOf(tableToConflictHandler.keySet());
+        TimelockService timelockService = spy(txManager.getTimelockService());
+        List<Cell> cells = generateCells(numberOfRowsPerTable, numberOfCellsPerRow);
+
+        Transaction txn = getSnapshotTransactionWith(timelockService, tableToConflictHandler);
+        Map<TableReference, Set<Cell>> cellsWithWrites = new HashMap<>();
+        for (int i = 0; i < maxWritesPerCell; i++) {
+            TableReference table = tables.get(random.nextInt(tables.size()));
+            Cell cell = cells.get(random.nextInt(cells.size()));
+            if (random.nextBoolean()) {
+                txn.put(table, ImmutableMap.of(cell, TEST_VALUE));
+            } else {
+                txn.delete(table, ImmutableSet.of(cell));
+            }
+            cellsWithWrites.computeIfAbsent(table, _unused -> new HashSet<>()).add(cell);
+        }
+
+        verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
+                txn,
+                timelockService,
+                LocksAndMetadata.of(getExpectedLocks(tableToConflictHandler, cellsWithWrites), Optional.empty()),
+                "Expect locks to be passed to TimeLock. Random seed: " + randomSeed);
+    }
+
+    @Test
+    public void commitFailsIfMultipleCellsInSameRowHaveMetadataAndUsingRowLocks() {
+        overrideConflictHandlerForTable(TABLE, ConflictHandler.SERIALIZABLE);
+        Cell cell1 = Cell.create(ROW_BAR, COL_A);
+        Cell cell2 = Cell.create(ROW_BAR, COL_B);
+        Transaction txn = txManager.createNewTransaction();
+
+        txn.putWithMetadata(
+                TABLE,
+                ImmutableMap.of(
+                        cell1,
+                        ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA),
+                        cell2,
+                        ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA)));
+
+        assertThatLoggableExceptionThrownBy(txn::commit)
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasLogMessage("Two different cells in the same row have metadata and we create locks on row level.")
+                .hasExactlyArgs(
+                        LoggingArgs.tableRef(TABLE),
+                        UnsafeArg.of("rowName", cell1.getRowName()),
+                        UnsafeArg.of("newMetadata", UPDATE_CHANGE_METADATA));
+    }
+
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,
@@ -2660,12 +2873,18 @@ private void setTransactionConfig(TransactionConfig config) {
         transactionConfig = config;
     }
 
-    private Transaction getSnapshotTransactionWith(TimelockService timelockService) {
+    private Transaction getSnapshotTransactionWith(
+            TimelockService timelockService, Map<TableReference, ConflictHandler> tableConflictHandlers) {
         ConjureStartTransactionsResponse conjureResponse = startTransactionWithWatches();
         LockImmutableTimestampResponse lockImmutableTimestampResponse = conjureResponse.getImmutableTimestamp();
         long transactionTs = conjureResponse.getTimestamps().start();
         return getSnapshotTransactionWith(
-                timelockService, () -> transactionTs, lockImmutableTimestampResponse, unused -> {});
+                timelockService,
+                () -> transactionTs,
+                lockImmutableTimestampResponse,
+                unused -> {},
+                true,
+                tableConflictHandlers);
     }
 
     private Transaction getSnapshotTransactionWith(
@@ -2683,7 +2902,25 @@ private Transaction getSnapshotTransactionWith(
             LockImmutableTimestampResponse lockImmutableTimestampResponse,
             PreCommitCondition preCommitCondition,
             boolean validateLocksOnReads) {
+        return getSnapshotTransactionWith(
+                timelockService,
+                startTs,
+                lockImmutableTimestampResponse,
+                preCommitCondition,
+                validateLocksOnReads,
+                ImmutableMap.of(TABLE, ConflictHandler.RETRY_ON_WRITE_WRITE));
+    }
+
+    private Transaction getSnapshotTransactionWith(
+            TimelockService timelockService,
+            Supplier<Long> startTs,
+            LockImmutableTimestampResponse lockImmutableTimestampResponse,
+            PreCommitCondition preCommitCondition,
+            boolean validateLocksOnReads,
+            Map<TableReference, ConflictHandler> tableConflictHandlers) {
         PathTypeTracker pathTypeTracker = PathTypeTrackers.constructSynchronousTracker();
+        Map<TableReference, Optional<ConflictHandler>> optTableConflictHandlers =
+                Maps.transformValues(tableConflictHandlers, Optional::of);
         SnapshotTransaction transaction = new SnapshotTransaction(
                 metricsManager,
                 keyValueServiceWrapper.apply(keyValueService, pathTypeTracker),
@@ -2692,8 +2929,7 @@ private Transaction getSnapshotTransactionWith(
                 transactionService,
                 NoOpCleaner.INSTANCE,
                 startTs,
-                TestConflictDetectionManagers.createWithStaticConflictDetection(
-                        ImmutableMap.of(TABLE, Optional.of(ConflictHandler.RETRY_ON_WRITE_WRITE))),
+                TestConflictDetectionManagers.createWithStaticConflictDetection(optTableConflictHandlers),
                 SweepStrategyManagers.createDefault(keyValueService),
                 lockImmutableTimestampResponse.getImmutableTimestamp(),
                 Optional.of(lockImmutableTimestampResponse.getLock()),
@@ -2808,6 +3044,81 @@ public void cleanup() {
         };
     }
 
+    private static void verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
+            Transaction txn, TimelockService spiedTimelockService, LocksAndMetadata locksAndMetadata) {
+        verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
+                txn, spiedTimelockService, locksAndMetadata, "Expect locks and metadata to be passed to TimeLock");
+    }
+
+    private static void verifyLockWasCalledWithLocksAndMetadataWhenCommitting(
+            Transaction txn,
+            TimelockService spiedTimelockService,
+            LocksAndMetadata locksAndMetadata,
+            String assertionMessage) {
+        txn.commit();
+
+        verify(spiedTimelockService)
+                .lock(
+                        argThat(lockRequest -> {
+                            // We always acquire a lock on the transaction table
+                            Set<LockDescriptor> locksWithTransactionTableLock = new ImmutableSet.Builder<
+                                            LockDescriptor>()
+                                    .addAll(locksAndMetadata.lockDescriptors())
+                                    .add(AtlasRowLockDescriptor.of(
+                                            TransactionConstants.TRANSACTION_TABLE.getQualifiedName(),
+                                            TransactionConstants.getValueForTimestamp(txn.getTimestamp())))
+                                    .build();
+                            assertThat(lockRequest.getLockDescriptors())
+                                    .as(assertionMessage)
+                                    .containsExactlyInAnyOrderElementsOf(locksWithTransactionTableLock);
+                            assertThat(lockRequest.getMetadata())
+                                    .as(assertionMessage)
+                                    .isEqualTo(locksAndMetadata.metadata());
+                            return true;
+                        }),
+                        any());
+    }
+
+    private Map<TableReference, ConflictHandler> getTablesForAllConflictHandlers() {
+        int numberOfTables = ConflictHandler.values().length;
+        Namespace namespace = Namespace.create("all_conflict_handlers");
+        return KeyedStream.of(IntStream.range(0, numberOfTables).boxed())
+                .mapKeys(i -> {
+                    TableReference tableReference = TableReference.create(
+                            namespace, String.format("table_%d_%s", i, ConflictHandler.values()[i].name()));
+                    keyValueService.createTable(tableReference, AtlasDbConstants.GENERIC_TABLE_METADATA);
+                    return tableReference;
+                })
+                .map(i -> ConflictHandler.values()[i])
+                .collectToMap();
+    }
+
+    private static Set<LockDescriptor> getExpectedLocks(
+            Map<TableReference, ConflictHandler> tableToConflictHandler,
+            Map<TableReference, Set<Cell>> cellsWithWrites) {
+        ImmutableSet.Builder<LockDescriptor> locksBuilder = ImmutableSet.builder();
+        cellsWithWrites.forEach((table, writes) -> {
+            ConflictHandler conflictHandler = tableToConflictHandler.get(table);
+            writes.forEach(cell -> {
+                if (conflictHandler.lockCellsForConflicts()) {
+                    locksBuilder.add(AtlasCellLockDescriptor.of(
+                            table.getQualifiedName(), cell.getRowName(), cell.getColumnName()));
+                }
+                if (conflictHandler.lockRowsForConflicts()) {
+                    locksBuilder.add(AtlasRowLockDescriptor.of(table.getQualifiedName(), cell.getRowName()));
+                }
+            });
+        });
+        return locksBuilder.build();
+    }
+
+    private static List<Cell> generateCells(int numberOfRowsPerTable, int numberOfCellsPerRow) {
+        return IntStream.range(0, numberOfRowsPerTable * numberOfCellsPerRow)
+                .mapToObj(i ->
+                        Cell.create(PtBytes.toBytes("row" + (i % numberOfCellsPerRow)), PtBytes.toBytes("column" + i)))
+                .collect(Collectors.toUnmodifiableList());
+    }
+
     private static class VerifyingKeyValueServiceDelegate extends ForwardingKeyValueService {
         private final KeyValueService delegate;
         private final PathTypeTracker pathTypeTracker;uz#     }(j_A (85b88858e24587f4a6856741976dc6e584bbe990jA $changelog/@unreleased/pr-6671.v2.ymljA addedjA KjA K jA KjA |https://github.com/palantir/atlasdb/blob/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/changelog%2F%40unreleased%2Fpr-6671.v2.ymljA {https://github.com/palantir/atlasdb/raw/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/changelog%2F%40unreleased%2Fpr-6671.v2.ymljA https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6671.v2.yml?ref=0b1fd5b611a502e343acf2144c0e384c0ca64b3bjA @@ -0,0 +1,6 @@
+type: feature
+feature:
+  description: Transactions now support putting/deleting values with metadata to be
+    associated with their respective commit lock requests
+  links:
+  - https://github.com/palantir/atlasdb/pull/6671u}(j_A (538dd31e4fa210d87d49316ec18c2a461b43b63ajA Dlock-api-objects/src/main/java/com/palantir/lock/v2/LockRequest.javajA modifiedjA KjA K jA KjA https://github.com/palantir/atlasdb/blob/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fv2%2FLockRequest.javajA https://github.com/palantir/atlasdb/raw/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fv2%2FLockRequest.javajA https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fv2%2FLockRequest.java?ref=0b1fd5b611a502e343acf2144c0e384c0ca64b3bjA Xg  @@ -52,6 +52,11 @@ static LockRequest of(Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs
                 lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription), Optional.empty());
     }
 
+    static LockRequest of(
+            Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs, Optional<LockRequestMetadata> metadata) {
+        return ImmutableLockRequest.of(lockDescriptors, acquireTimeoutMs, Optional.empty(), metadata);
+    }
+
     @Value.Check
     default void check() {
         Preconditions.checkState(getAcquireTimeoutMs() >= 0, "Acquire timeout cannot be negative.");u}(j_A (21372416854789fd12c26281ae620a7c4bae5920jA ctimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchEventIntegrationTest.javajA modifiedjA KjA K
jA KjA https://github.com/palantir/atlasdb/blob/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javajA https://github.com/palantir/atlasdb/raw/0b1fd5b611a502e343acf2144c0e384c0ca64b3b/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javajA https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.java?ref=0b1fd5b611a502e343acf2144c0e384c0ca64b3bjA XN)  @@ -37,6 +37,8 @@
 import com.palantir.atlasdb.transaction.api.TransactionFailedRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.api.TransactionTask;
+import com.palantir.atlasdb.transaction.api.ValueAndChangeMetadata;
 import com.palantir.atlasdb.transaction.impl.PreCommitConditions;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.lock.AtlasCellLockDescriptor;
@@ -79,6 +81,10 @@ public final class LockWatchEventIntegrationTest {
     private static final byte[] DATA_2 = "as".getBytes(StandardCharsets.UTF_8);
     private static final byte[] DATA_3 = "usual".getBytes(StandardCharsets.UTF_8);
     private static final byte[] DATA_4 = "I see".getBytes(StandardCharsets.UTF_8);
+    private static final ChangeMetadata CREATE_CHANGE_METADATA = ChangeMetadata.created(DATA_1);
+    private static final ChangeMetadata DELETE_CHANGE_METADATA = ChangeMetadata.deleted(DATA_2);
+    private static final ChangeMetadata UNCHANGED_CHANGE_METADATA = ChangeMetadata.unchanged();
+    private static final ChangeMetadata UPDATE_CHANGE_METADATA = ChangeMetadata.updated(DATA_3, DATA_4);
     private static final Cell CELL_1 =
             Cell.create("never".getBytes(StandardCharsets.UTF_8), "gonna".getBytes(StandardCharsets.UTF_8));
     private static final Cell CELL_2 =
@@ -229,7 +235,8 @@ public void eventsGeneratedForRowLevelLockWatches() {
         LockWatchVersion currentVersion = getCurrentVersion();
 
         Cell cell = Cell.create(ROW, "down".getBytes(StandardCharsets.UTF_8));
-        performWriteTransactionLockingAndUnlockingCells(TABLE_2_REF, ImmutableMap.of(cell, DATA_1));
+        performWriteMetadataTransactionLockingAndUnlockingCells(
+                TABLE_2_REF, ImmutableMap.of(cell, ValueAndChangeMetadata.of(DATA_1, CREATE_CHANGE_METADATA)));
 
         OpenTransaction thirdTxn = startSingleTransaction();
 
@@ -241,6 +248,9 @@ public void eventsGeneratedForRowLevelLockWatches() {
                 .containsExactlyInAnyOrderElementsOf(getDescriptors(TABLE_2_REF, cell));
         assertThat(getAllDescriptorsFromLockWatchEvent(update.events(), WatchEventVisitor.INSTANCE))
                 .isEmpty();
+        assertThat(LockWatchIntegrationTestUtilities.extractMetadata(update.events()))
+                .containsExactly(Optional.of(LockRequestMetadata.of(
+                        ImmutableMap.of(getDescriptor(TABLE_2_REF, cell), CREATE_CHANGE_METADATA))));
     }
 
     @Test
@@ -277,15 +287,110 @@ public void nonEmptyMetadataIsVisibleToTransactionForWatchedTable() {
         LockDescriptor lock4 =
                 AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_4.getRowName(), CELL_4.getColumnName());
         LockRequestMetadata metadata = LockRequestMetadata.of(ImmutableMap.of(
-                lock1, ChangeMetadata.created(DATA_1),
-                lock2, ChangeMetadata.deleted(DATA_2),
-                lock3, ChangeMetadata.unchanged(),
-                lock4, ChangeMetadata.updated(DATA_3, DATA_4)));
+                lock1, CREATE_CHANGE_METADATA,
+                lock2, DELETE_CHANGE_METADATA,
+                lock3, UNCHANGED_CHANGE_METADATA,
+                lock4, UPDATE_CHANGE_METADATA));
         LockRequest requestWithMetadata =
                 createTestLockRequest(ImmutableSet.of(lock1, lock2, lock3, lock4), Optional.of(metadata));
         assertThat(lockAndGetEventMetadataFromLockWatchLog(requestWithMetadata)).contains(metadata);
     }
 
+    @Test
+    public void transactionUpdateIncludesMetadataFromPutWithMetadata() {
+        LockWatchVersion currentVersion = getCurrentVersion();
+
+        performWriteMetadataTransactionLockingAndUnlockingCells(
+                TABLE_REF,
+                ImmutableMap.of(
+                        CELL_1,
+                        ValueAndChangeMetadata.of(DATA_1, CREATE_CHANGE_METADATA),
+                        CELL_2,
+                        ValueAndChangeMetadata.of(DATA_2, DELETE_CHANGE_METADATA),
+                        CELL_3,
+                        ValueAndChangeMetadata.of(DATA_3, UNCHANGED_CHANGE_METADATA),
+                        CELL_4,
+                        ValueAndChangeMetadata.of(DATA_4, UPDATE_CHANGE_METADATA)));
+        performWriteTransactionLockingAndUnlockingCells(TABLE_REF, ImmutableMap.of(CELL_1, DATA_1));
+
+        OpenTransaction thirdTxn = startSingleTransaction();
+        TransactionsLockWatchUpdate update = getUpdateForTransactions(Optional.of(currentVersion), thirdTxn);
+
+        assertThat(LockWatchIntegrationTestUtilities.extractMetadata(update.events()))
+                .containsExactly(
+                        // From the first txn
+                        Optional.of(LockRequestMetadata.of(ImmutableMap.of(
+                                getDescriptor(TABLE_REF, CELL_1),
+                                CREATE_CHANGE_METADATA,
+                                getDescriptor(TABLE_REF, CELL_2),
+                                DELETE_CHANGE_METADATA,
+                                getDescriptor(TABLE_REF, CELL_3),
+                                UNCHANGED_CHANGE_METADATA,
+                                getDescriptor(TABLE_REF, CELL_4),
+                                UPDATE_CHANGE_METADATA))),
+                        // From the second txn
+                        Optional.empty());
+    }
+
+    @Test
+    public void transactionUpdateIncludesMetadataFromDeleteWithMetadata() {
+        LockWatchVersion currentVersion = getCurrentVersion();
+
+        performTransactionTaskLockingAndUnlockingCells(txn -> {
+            txn.deleteWithMetadata(TABLE_REF, ImmutableMap.of(CELL_1, CREATE_CHANGE_METADATA));
+            return null;
+        });
+        performTransactionTaskLockingAndUnlockingCells(txn -> {
+            txn.delete(TABLE_REF, ImmutableSet.of(CELL_2));
+            return null;
+        });
+
+        OpenTransaction secondTxn = startSingleTransaction();
+        TransactionsLockWatchUpdate update = getUpdateForTransactions(Optional.of(currentVersion), secondTxn);
+
+        assertThat(LockWatchIntegrationTestUtilities.extractMetadata(update.events()))
+                .containsExactly(
+                        // From the first txn
+                        Optional.of(LockRequestMetadata.of(
+                                ImmutableMap.of(getDescriptor(TABLE_REF, CELL_1), CREATE_CHANGE_METADATA))),
+                        // From the second txn
+                        Optional.empty());
+    }
+
+    @Test
+    public void metadataFilteredAccordingToWatches() {
+        LockWatchVersion currentVersion = getCurrentVersion();
+
+        performTransactionTaskLockingAndUnlockingCells(txn -> {
+            txn.putWithMetadata(
+                    TABLE_REF, ImmutableMap.of(CELL_1, ValueAndChangeMetadata.of(DATA_1, CREATE_CHANGE_METADATA)));
+            txn.putWithMetadata(
+                    TABLE_2_REF, ImmutableMap.of(CELL_2, ValueAndChangeMetadata.of(DATA_2, DELETE_CHANGE_METADATA)));
+            return null;
+        });
+        performTransactionTaskLockingAndUnlockingCells(txn -> {
+            txn.put(TABLE_REF, ImmutableMap.of(CELL_1, DATA_1));
+            txn.putWithMetadata(
+                    TABLE_2_REF, ImmutableMap.of(CELL_2, ValueAndChangeMetadata.of(DATA_2, DELETE_CHANGE_METADATA)));
+            return null;
+        });
+        performWriteMetadataTransactionLockingAndUnlockingCells(
+                TABLE_2_REF, ImmutableMap.of(CELL_3, ValueAndChangeMetadata.of(DATA_3, UNCHANGED_CHANGE_METADATA)));
+
+        OpenTransaction fourthTxn = startSingleTransaction();
+        TransactionsLockWatchUpdate update = getUpdateForTransactions(Optional.of(currentVersion), fourthTxn);
+
+        assertThat(LockWatchIntegrationTestUtilities.extractMetadata(update.events()))
+                .containsExactly(
+                        // From the first txn
+                        Optional.of(LockRequestMetadata.of(
+                                ImmutableMap.of(getDescriptor(TABLE_REF, CELL_1), CREATE_CHANGE_METADATA))),
+                        // From the second txn
+                        Optional.empty()
+                        // No lock event for the third txn since no locks were watched
+                        );
+    }
+
     private Runnable performWriteTransactionThatBlocksAfterLockingCells() {
         CountDownLatch endOfTest = new CountDownLatch(1);
         CountDownLatch inCommitBlock = new CountDownLatch(1);
@@ -339,10 +444,26 @@ private void performWriteTransactionLockingAndUnlockingCells(Map<Cell, byte[]> v
     }
 
     private void performWriteTransactionLockingAndUnlockingCells(TableReference tableRef, Map<Cell, byte[]> values) {
-        txnManager.runTaskThrowOnConflict(txn -> {
+        performTransactionTaskLockingAndUnlockingCells(txn -> {
             txn.put(tableRef, values);
             return null;
         });
+    }
+
+    private void performWriteMetadataTransactionLockingAndUnlockingCells(
+            TableReference tableRef, Map<Cell, ValueAndChangeMetadata> valuesWithMetadata) {
+        performTransactionTaskLockingAndUnlockingCells(txn -> {
+            txn.putWithMetadata(tableRef, valuesWithMetadata);
+            return null;
+        });
+    }
+
+    private <T> void performTransactionTaskLockingAndUnlockingCells(TransactionTask<T, ?> task) {
+        try {
+            txnManager.runTaskThrowOnConflict(task);
+        } catch (Exception e) {
+            throw new RuntimeException(e);
+        }
         LockWatchIntegrationTestUtilities.awaitAllUnlocked(txnManager);
     }
 
@@ -388,10 +509,11 @@ private Set<LockDescriptor> getDescriptors(Cell... cells) {
     }
 
     private Set<LockDescriptor> getDescriptors(TableReference tableRef, Cell... cells) {
-        return Stream.of(cells)
-                .map(cell -> AtlasCellLockDescriptor.of(
-                        tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName()))
-                .collect(Collectors.toSet());
+        return Stream.of(cells).map(cell -> getDescriptor(tableRef, cell)).collect(Collectors.toSet());
+    }
+
+    private LockDescriptor getDescriptor(TableReference tableRef, Cell cell) {
+        return AtlasCellLockDescriptor.of(tableRef.getQualifiedName(), cell.getRowName(), cell.getColumnName());
     }
 
     private Optional<LockRequestMetadata> lockAndGetEventMetadataFromLockWatchLog(LockRequest lockRequest) {ueu(b729af7e82192634a68a83f8625e2cf73341a3a3}(sha(b729af7e82192634a68a83f8625e2cf73341a3a3node_idEC_kwDOAjP5fdoAKGI3MjlhZjdlODIxOTI2MzRhNjhhODNmODYyNWUyY2Y3MzM0MWEzYTMcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-09T13:53:28Zu	committer}(jFB Jeremy KongjHB jkong@palantir.comjJB 2023-05-09T13:53:28ZumessagepMerge branch 'jkong/write-more-and-care-less' of github.com:palantir/atlasdb into jkong/write-more-and-care-lesstree}(j>B (21dab0e56b1446dd5f8373ec9948152a22316bffurl`https://api.github.com/repos/palantir/atlasdb/git/trees/21dab0e56b1446dd5f8373ec9948152a22316bffujVB bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b729af7e82192634a68a83f8625e2cf73341a3a3
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRaUFoACgkQTLdFKain
zjyWjAf+JXV9R7GicV8wx99xVusSOZgREnTSTVLRLaIzymoNHBA/gn18WGDtM+bP
a4HdzaIIeiwLlbV+/lQ1ro+mSYtlqYZHPsLF92ZtQJvVaIgzQg2UVtiAN8YGFshG
bgMfo+LdznSgldDZzifFeEAknHh2BqV6p55+BCewMFiYHHS9HMpLHbrTHB5dHAbV
ZtGZ8UsQoT0VSYUVkjjO1zbD3+ob2zNoiqxRYul4Novvmba41Q4GNpMEoP+QevsX
cLUGRt+ak0QpdPGtjfs99yDhIZD5sjDfwTmTKnIj1cq4jZkAtEDPHm7upSIhh8eR
0rE77UfS13jASNhDfZaFobSYBhTGjA==
=zurN
-----END PGP SIGNATURE-----payloadXu  tree 21dab0e56b1446dd5f8373ec9948152a22316bff
parent 5da504936c65406a3dae3395e15fac5097586848
parent 80d4bd900e20d43656c45050bdd2b576586e2061
author Jeremy Kong <jkong@palantir.com> 1683640408 +0100
committer Jeremy Kong <jkong@palantir.com> 1683640408 +0100

Merge branch 'jkong/write-more-and-care-less' of github.com:palantir/atlasdb into jkong/write-more-and-care-less
uujVB ^https://api.github.com/repos/palantir/atlasdb/commits/b729af7e82192634a68a83f8625e2cf73341a3a3html_urlShttps://github.com/palantir/atlasdb/commit/b729af7e82192634a68a83f8625e2cf73341a3a3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b729af7e82192634a68a83f8625e2cf73341a3a3/commentsjDB }(login
jeremyk-91idJZ j@B MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jVB 'https://api.github.com/users/jeremyk-91jdB https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujLB }(jiB 
jeremyk-91jkB JZ j@B MDQ6VXNlcjU5NTU1MTA=jmB 3https://avatars.githubusercontent.com/u/5955510?v=4joB h5jVB 'https://api.github.com/users/jeremyk-91jdB https://github.com/jeremyk-91jrB 1https://api.github.com/users/jeremyk-91/followersjtB >https://api.github.com/users/jeremyk-91/following{/other_user}jvB 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jxB >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jzB 5https://api.github.com/users/jeremyk-91/subscriptionsj|B ,https://api.github.com/users/jeremyk-91/orgsj~B -https://api.github.com/users/jeremyk-91/reposjB 8https://api.github.com/users/jeremyk-91/events{/privacy}jB 7https://api.github.com/users/jeremyk-91/received_eventsjB UserjB uparents](}(j>B (5da504936c65406a3dae3395e15fac5097586848jVB ^https://api.github.com/repos/palantir/atlasdb/commits/5da504936c65406a3dae3395e15fac5097586848jdB Shttps://github.com/palantir/atlasdb/commit/5da504936c65406a3dae3395e15fac5097586848u}(j>B (80d4bd900e20d43656c45050bdd2b576586e2061jVB ^https://api.github.com/repos/palantir/atlasdb/commits/80d4bd900e20d43656c45050bdd2b576586e2061jdB Shttps://github.com/palantir/atlasdb/commit/80d4bd900e20d43656c45050bdd2b576586e2061uestats}(totalK	additionsK	deletionsK ufiles]}(j>B (217d9399bdb068283f3ed607c705739151adc8eafilename$changelog/@unreleased/pr-6563.v2.ymlstatusaddedjB KjB K changesKblob_url|https://github.com/palantir/atlasdb/blob/b729af7e82192634a68a83f8625e2cf73341a3a3/changelog%2F%40unreleased%2Fpr-6563.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/b729af7e82192634a68a83f8625e2cf73341a3a3/changelog%2F%40unreleased%2Fpr-6563.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6563.v2.yml?ref=b729af7e82192634a68a83f8625e2cf73341a3a3patch@@ -0,0 +1,6 @@
+type: fix
+fix:
+  description: Fixed a serialization issue for users of `LockServerOptions` and `LockState`
+    endpoints in the legacy lock service.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6563uau(b0f9cf5178df6a7dbe45155cf2cdf9c210d87f35}(sha(b0f9cf5178df6a7dbe45155cf2cdf9c210d87f35node_idEC_kwDOAjP5fdoAKGIwZjljZjUxNzhkZjZhN2RiZTQ1MTU1Y2YyY2RmOWMyMTBkODdmMzUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-24T01:17:05Zu	committer}(jB 
Ahmed AlouanejB aalouane@palantir.comjB 2023-04-24T01:17:05Zumessagehellooootree}(jB (a5ca021ec0e7419e3cb9efbbf923d23c959fae56url`https://api.github.com/repos/palantir/atlasdb/git/trees/a5ca021ec0e7419e3cb9efbbf923d23c959fae56ujB bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b0f9cf5178df6a7dbe45155cf2cdf9c210d87f35
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRF2JEACgkQPlMHVIT1
yhqHxAf/aHmiOd+Hpi2WEN6w2CofJSWi6xUWukEFRsmb0Y8wT7KTX0KM1CNCxPxF
o1fOiwrLx6cz0jeprGF9tQ8ASxTD2Gs146Ez6n36rK2gZVytscyhDiEaUNOOD7oi
s9HWH2BJiXoIayHNj5ikP4AyQffA8wGGAEKP7WNKIxJXKC4UFmGBSSu3xsdWWH6T
HsY0pBcuXZcbPgiIWO3UoXt6bDfLns02w+AYXD+v4aurDOZb+JHU12Z4bswBPk8M
/+QfHGdwzPKNMc9Ga1/krY32ujldTSev3UgneoWbJGqbzxKpQkgupkQ/Bjc6Z0yi
pAXZwhUlR1MXsyrj3cB7KZYPKvTYJA==
=y6qX
-----END PGP SIGNATURE-----payloadtree a5ca021ec0e7419e3cb9efbbf923d23c959fae56
parent bf38fea55a139efbd8b273fcac796d5e624094d6
author Ahmed Alouane <aalouane@palantir.com> 1682299025 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682299025 +0100

helloooo
uujB ^https://api.github.com/repos/palantir/atlasdb/commits/b0f9cf5178df6a7dbe45155cf2cdf9c210d87f35html_urlShttps://github.com/palantir/atlasdb/commit/b0f9cf5178df6a7dbe45155cf2cdf9c210d87f35comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b0f9cf5178df6a7dbe45155cf2cdf9c210d87f35/commentsjB }(loginergo14idJjB MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jB #https://api.github.com/users/ergo14jB https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujB }(jB ergo14jB JjB MDQ6VXNlcjMwOTAzNzM2jB 4https://avatars.githubusercontent.com/u/30903736?v=4jB h5jB #https://api.github.com/users/ergo14jB https://github.com/ergo14jB -https://api.github.com/users/ergo14/followersjB :https://api.github.com/users/ergo14/following{/other_user}jB 3https://api.github.com/users/ergo14/gists{/gist_id}jB :https://api.github.com/users/ergo14/starred{/owner}{/repo}jB 1https://api.github.com/users/ergo14/subscriptionsjB (https://api.github.com/users/ergo14/orgsjB )https://api.github.com/users/ergo14/reposjB 4https://api.github.com/users/ergo14/events{/privacy}jB 3https://api.github.com/users/ergo14/received_eventsjB UserjC uparents]}(jB (bf38fea55a139efbd8b273fcac796d5e624094d6jB ^https://api.github.com/repos/palantir/atlasdb/commits/bf38fea55a139efbd8b273fcac796d5e624094d6jB Shttps://github.com/palantir/atlasdb/commit/bf38fea55a139efbd8b273fcac796d5e624094d6uastats}(totalK	additionsK	deletionsKufiles](}(jB (5f6eea4274dfba4b11649b980f741ef090a168fbfilename.circleci/config.ymlstatusmodifiedjC KjC K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/b0f9cf5178df6a7dbe45155cf2cdf9c210d87f35/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/b0f9cf5178df6a7dbe45155cf2cdf9c210d87f35/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=b0f9cf5178df6a7dbe45155cf2cdf9c210d87f35patch@@ -83,6 +83,10 @@ jobs:
       - persist_to_workspace:
           root: .
           paths: [ . ]
+      - run:
+          name: Fail fast
+          when: on_fail
+          command: ./scripts/circle-ci/abort.sh
 
 
   trial-publish:u}(jB (2c0159986aba6f2d13f458486b1cff2099061c76j!C scripts/circle-ci/abort.shj#C modifiedjC KjC Kj%C Kj&C phttps://github.com/palantir/atlasdb/blob/b0f9cf5178df6a7dbe45155cf2cdf9c210d87f35/scripts%2Fcircle-ci%2Fabort.shj(C ohttps://github.com/palantir/atlasdb/raw/b0f9cf5178df6a7dbe45155cf2cdf9c210d87f35/scripts%2Fcircle-ci%2Fabort.shj*C https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fabort.sh?ref=b0f9cf5178df6a7dbe45155cf2cdf9c210d87f35j,C @@ -16,5 +16,5 @@
 
 for i in $(seq 1 $(expr $CIRCLE_NODE_TOTAL - 1));
 do
-  if [ $i -ne $CIRCLE_NODE_INDEX ]; then ssh node$i 'echo "HELLO"'; fi
+  if [ $i -ne $CIRCLE_NODE_INDEX ]; then ssh node$i 'circleci-agent step halt'; fi
 doneueu(fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2}(sha(fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2node_idEC_kwDOAjP5fdoAKGZjMGZiYmZmYWIxZGJjNDg0Y2M3NmM2ZjZkOTU2YzVmZDFlMWI1ZjIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-17T10:21:51Zu	committer}(j@C 
Sam KramerjBC skramer@palantir.comjDC 2023-05-17T10:21:51Zumessageaddress commentstree}(j8C (9dbb0e8e861fb08c44d48de3b754ec982aa16d6aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/9dbb0e8e861fb08c44d48de3b754ec982aa16d6aujPC bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRkqsAACgkQmPPOpKR4
XS3iewf+Nq+pPMfYjQGAX7adNLlgoRMOKlDu7jf9e5aSERY0c45LCf3Av3iW74M3
LulLXdWOT6bJYFu8QDa91mWqQ093c6ReTpCiBgFMcMSnMzQElFGEKywEWi+23gb6
83CI1OFRZzDM7jjH1Y02hnpYwt7hcb/454syDrPjEq6IvyMfJuvyV7Yhcisxc5kM
gWoYqsldJR7FCE7+D+Ntitgv/UsiAoBUR1Xb896uK6u2HjgE1kNWgDYAVIramp1A
UNfaYzauYEoJmX3zBsE/SKYBeeg2gJqP2paDovxdyqyVLsgAfUE+jkcYQ/sAi0+F
S1gTEASNWAWZXC+UjQdBQDnnAtuddQ==
=Hykw
-----END PGP SIGNATURE-----payloadtree 9dbb0e8e861fb08c44d48de3b754ec982aa16d6a
parent 561eb7e1a63ced54f776e363796b6ed6f3ea61d8
author Sam Kramer <skramer@palantir.com> 1684318911 +0100
committer Sam Kramer <skramer@palantir.com> 1684318911 +0100

address comments
uujPC ^https://api.github.com/repos/palantir/atlasdb/commits/fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2html_urlShttps://github.com/palantir/atlasdb/commit/fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2/commentsj>C }(login
Sam-KrameridJ^2_ j:C MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jPC 'https://api.github.com/users/Sam-Kramerj^C https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujFC }(jcC 
Sam-KramerjeC J^2_ j:C MDQ6VXNlcjYyMzg4MTQ=jgC 3https://avatars.githubusercontent.com/u/6238814?v=4jiC h5jPC 'https://api.github.com/users/Sam-Kramerj^C https://github.com/Sam-KramerjlC 1https://api.github.com/users/Sam-Kramer/followersjnC >https://api.github.com/users/Sam-Kramer/following{/other_user}jpC 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jrC >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jtC 5https://api.github.com/users/Sam-Kramer/subscriptionsjvC ,https://api.github.com/users/Sam-Kramer/orgsjxC -https://api.github.com/users/Sam-Kramer/reposjzC 8https://api.github.com/users/Sam-Kramer/events{/privacy}j|C 7https://api.github.com/users/Sam-Kramer/received_eventsj~C UserjC uparents]}(j8C (561eb7e1a63ced54f776e363796b6ed6f3ea61d8jPC ^https://api.github.com/repos/palantir/atlasdb/commits/561eb7e1a63ced54f776e363796b6ed6f3ea61d8j^C Shttps://github.com/palantir/atlasdb/commit/561eb7e1a63ced54f776e363796b6ed6f3ea61d8uastats}(totalKU	additionsK7	deletionsKufiles](}(j8C (7ed6f31d91209eb01a70cc1992699c7d6b7590bdfilenameTatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/AlwaysBuggifyFactory.javastatusaddedjC KjC K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.java?ref=fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2patchX.  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggify;
+
+public enum AlwaysBuggifyFactory implements BuggifyFactory {
+    INSTANCE;
+
+    @Override
+    public Buggify maybe(double _probability) {
+        return DefaultBuggify.INSTANCE;
+    }
+}u}(j8C (8fc45b8b9ddc37ded24af638207557f822511685jC 1atlasdb-workload-server-antithesis/var/compact.shjC modifiedjC KjC KjC KjC https://github.com/palantir/atlasdb/blob/fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shjC https://github.com/palantir/atlasdb/raw/fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shjC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.sh?ref=fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2jC Xs  @@ -1,3 +1,5 @@
+#!/bin/bash
+
 ##
 # (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
 #
@@ -14,5 +16,4 @@
 # limitations under the License.
 #
 
-#!/bin/bash
-podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool compact'
\ No newline at end of file
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool compact'¡
\ No newline at end of fileu}(j8C (507c4267b553dffafece23d33ad88df6fd5f4bb2jC /atlasdb-workload-server-antithesis/var/flush.shjC modifiedjC KjC KjC KjC https://github.com/palantir/atlasdb/blob/fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shjC https://github.com/palantir/atlasdb/raw/fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shjC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fflush.sh?ref=fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2jC X  @@ -1,3 +1,5 @@
+#!/bin/bash
+
 ##
 # (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
 #
@@ -14,5 +16,4 @@
 # limitations under the License.
 #
 
-#!/bin/bash
 podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool flush'
\ No newline at end of fileu}(j8C (e413798427db97d025ad85b9f49ea4d26c076e02jC natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/resource/CassandraSidecarResource.javajC renamedjC KjC KjC KjC https://github.com/palantir/atlasdb/blob/fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.javajC https://github.com/palantir/atlasdb/raw/fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.java?ref=fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2jC X"  @@ -16,14 +16,14 @@
 
 package com.palantir.atlasdb.workload.resource;
 
-public interface CassandraResource {
+public interface CassandraSidecarResource {
     /**
-     * Flushes all keyspaces on a Cassandra host.
+     * Asynchronous method that flushes all keyspaces on a Cassandra host.
      */
     void flush(String host);
 
     /**
-     * Performs a major compaction for all keyspaces on Cassandra.
+     * Asynchronous method that performs a major compaction for all keyspaces on Cassandra.
      */
     void compact(String host);
 }previous_filenamegatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/resource/CassandraResource.javau}(j8C (5a8e028a7ed3dacc1868e82c6ed9dcdedee248e9jC latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javajC modifiedjC KjC KjC KjC https://github.com/palantir/atlasdb/blob/fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajC https://github.com/palantir/atlasdb/raw/fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2jC Xo  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
 import com.palantir.atlasdb.workload.invariant.DurableWritesInvariantMetricReporter;
 import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
-import com.palantir.atlasdb.workload.resource.AntithesisCassandraResource;
+import com.palantir.atlasdb.workload.resource.AntithesisCassandraSidecarResource;
 import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
@@ -102,7 +102,7 @@ private void scheduleBackgroundJobs(Environment environment) {
         backgroundJobExecutor.scheduleAtFixedRate(
                 new BackgroundCassandraJob(
                         List.of("cassandra1", "cassandra2", "cassandra3"),
-                        AntithesisCassandraResource.INSTANCE,
+                        AntithesisCassandraSidecarResource.INSTANCE,
                         DefaultBuggifyFactory.INSTANCE),
                 0,
                 10,u}(j8C (8b9834003c52ed4630cb687d233e97192635cc24jC jatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/background/BackgroundCassandraJob.javajC modifiedjC KjC KjC KjC https://github.com/palantir/atlasdb/blob/fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.javajC https://github.com/palantir/atlasdb/raw/fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.java?ref=fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2jC X  @@ -18,27 +18,27 @@
 
 import com.google.common.collect.Iterators;
 import com.palantir.atlasdb.buggify.api.BuggifyFactory;
-import com.palantir.atlasdb.workload.resource.CassandraResource;
+import com.palantir.atlasdb.workload.resource.CassandraSidecarResource;
 import java.util.Iterator;
 import java.util.List;
 
 public class BackgroundCassandraJob implements Runnable {
 
-    private final CassandraResource cassandraResource;
+    private final CassandraSidecarResource cassandraSidecarResource;
     private final Iterator<String> cassandraHosts;
 
     private final BuggifyFactory buggify;
 
     public BackgroundCassandraJob(
-            List<String> cassandraHosts, CassandraResource cassandraResource, BuggifyFactory buggify) {
-        this.cassandraResource = cassandraResource;
+            List<String> cassandraHosts, CassandraSidecarResource cassandraSidecarResource, BuggifyFactory buggify) {
+        this.cassandraSidecarResource = cassandraSidecarResource;
         this.cassandraHosts = Iterators.cycle(cassandraHosts);
         this.buggify = buggify;
     }
 
     @Override
     public void run() {
-        buggify.maybe(0.20).run(() -> cassandraResource.flush(cassandraHosts.next()));
-        buggify.maybe(0.20).run(() -> cassandraResource.compact(cassandraHosts.next()));
+        buggify.maybe(0.20).run(() -> cassandraSidecarResource.flush(cassandraHosts.next()));
+        buggify.maybe(0.20).run(() -> cassandraSidecarResource.compact(cassandraHosts.next()));
     }
 }u}(j8C (afc5fd9e1645d1faf8b1f77f62a39f67390b4c87jC tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/resource/AntithesisCassandraSidecarResource.javajC renamedjC KjC KjC KjC https://github.com/palantir/atlasdb/blob/fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.javajC https://github.com/palantir/atlasdb/raw/fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.java?ref=fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2jC X3  @@ -20,10 +20,10 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 
-public enum AntithesisCassandraResource implements CassandraResource {
+public enum AntithesisCassandraSidecarResource implements CassandraSidecarResource {
     INSTANCE;
 
-    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisCassandraResource.class);
+    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisCassandraSidecarResource.class);
 
     @Override
     public void flush(String host) {jC matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/resource/AntithesisCassandraResource.javau}(j8C (c89f46a34f99a9fca258b76f8b9fdf692e350760jC natlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/background/BackgroundCassandraJobTest.javajC modifiedjC KjC KjC KjC https://github.com/palantir/atlasdb/blob/fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.javajC https://github.com/palantir/atlasdb/raw/fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.javajC https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.java?ref=fc0fbbffab1dbc484cc76c6f6d956c5fd1e1b5f2jC XE  @@ -16,14 +16,11 @@
 
 package com.palantir.atlasdb.workload.background;
 
-import static org.mockito.ArgumentMatchers.anyDouble;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.when;
 
-import com.palantir.atlasdb.buggify.api.BuggifyFactory;
-import com.palantir.atlasdb.buggify.impl.DefaultBuggify;
-import com.palantir.atlasdb.workload.resource.CassandraResource;
+import com.palantir.atlasdb.buggify.AlwaysBuggifyFactory;
+import com.palantir.atlasdb.workload.resource.CassandraSidecarResource;
 import java.util.List;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -37,21 +34,17 @@ public final class BackgroundCassandraJobTest {
     private static final String HOST_TWO = "cassandra2";
     private static final String HOST_THREE = "cassandra3";
 
-    private static final List<String> CASSANDRA_HOSTS = List.of("cassandra1", "cassandra2", "cassandra3");
+    private static final List<String> CASSANDRA_HOSTS = List.of(HOST_ONE, HOST_TWO, HOST_THREE);
 
     @Mock
-    private CassandraResource cassandraResource;
-
-    @Mock
-    private BuggifyFactory buggifyFactory;
+    private CassandraSidecarResource cassandraSidecarResource;
 
     @Test
     public void runCanExecuteCompactFlushOnAllCassandraHosts() {
-        when(buggifyFactory.maybe(anyDouble())).thenReturn(DefaultBuggify.INSTANCE);
         BackgroundCassandraJob backgroundCassandraJob =
-                new BackgroundCassandraJob(CASSANDRA_HOSTS, cassandraResource, buggifyFactory);
+                new BackgroundCassandraJob(CASSANDRA_HOSTS, cassandraSidecarResource, AlwaysBuggifyFactory.INSTANCE);
         CASSANDRA_HOSTS.forEach(_ignore -> backgroundCassandraJob.run());
-        CASSANDRA_HOSTS.forEach(host -> verify(cassandraResource).compact(eq(host)));
-        CASSANDRA_HOSTS.forEach(host -> verify(cassandraResource).flush(eq(host)));
+        CASSANDRA_HOSTS.forEach(host -> verify(cassandraSidecarResource).compact(eq(host)));
+        CASSANDRA_HOSTS.forEach(host -> verify(cassandraSidecarResource).flush(eq(host)));
     }
 }ueu(f9af88a826053e49e7f8eb3728ea5a76adb3443e}(sha(f9af88a826053e49e7f8eb3728ea5a76adb3443enode_idEC_kwDOAjP5fdoAKGY5YWY4OGE4MjYwNTNlNDllN2Y4ZWIzNzI4ZWE1YTc2YWRiMzQ0M2Ucommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-13T22:46:30Zu	committer}(jC 	Tom PapkejC tpapke@palantir.comjC 2023-06-13T22:46:30ZumessageAddress review commentstree}(jC (ceb14193cdf3d29397fd037956554e6646baa478url`https://api.github.com/repos/palantir/atlasdb/git/trees/ceb14193cdf3d29397fd037956554e6646baa478ujD bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f9af88a826053e49e7f8eb3728ea5a76adb3443e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSI8cYACgkQmF9s0kaF
Iw0dvQf+Le5j2hHocC811VQWaNOzMBp9eQWpVn1c8fylsVp13bEVbC5eUX6f/nBR
PdpmGEnStTPo5KE6urBOf1EuOeKOyNqBr3VCa2I91RfhyVGYBjWQSrmfPe74NT4s
M7hm5/jMTdcrMmD7+ujqNO5S2s2X+F02Kp6jXHQFc/PH8ugSpc4hM1+MLkwzMmZb
S+qXcTS+hGyaRFdlNFEmvuw8sKk6tqeUeOriqz2/OXS67T7ZziyqJN55+uc0xi5/
sCfQXuFXg7mw74E+oUIM/AMg9jhxjyO6BLHzQjPc493wVFwNjYgplVnNgtop3ZBe
KbYpL35rXU9ONq/bxgiPtFMrxqs0IQ==
=LZtn
-----END PGP SIGNATURE-----payloadtree ceb14193cdf3d29397fd037956554e6646baa478
parent 7bace87a6c8ddbb16c554be9c6ae3f22416afc60
author Tom Papke <tpapke@palantir.com> 1686696390 +0100
committer Tom Papke <tpapke@palantir.com> 1686696390 +0100

Address review comments
uujD ^https://api.github.com/repos/palantir/atlasdb/commits/f9af88a826053e49e7f8eb3728ea5a76adb3443ehtml_urlShttps://github.com/palantir/atlasdb/commit/f9af88a826053e49e7f8eb3728ea5a76adb3443ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f9af88a826053e49e7f8eb3728ea5a76adb3443e/commentsjC }(login	ToemmscheidJbojC MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jD &https://api.github.com/users/ToemmschejD https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujC }(jD 	ToemmschejD JbojC MDQ6VXNlcjQzNjc1NDkwjD 4https://avatars.githubusercontent.com/u/43675490?v=4jD h5jD &https://api.github.com/users/ToemmschejD https://github.com/ToemmschejD 0https://api.github.com/users/Toemmsche/followersj D =https://api.github.com/users/Toemmsche/following{/other_user}j"D 6https://api.github.com/users/Toemmsche/gists{/gist_id}j$D =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j&D 4https://api.github.com/users/Toemmsche/subscriptionsj(D +https://api.github.com/users/Toemmsche/orgsj*D ,https://api.github.com/users/Toemmsche/reposj,D 7https://api.github.com/users/Toemmsche/events{/privacy}j.D 6https://api.github.com/users/Toemmsche/received_eventsj0D Userj2D uparents]}(jC (7bace87a6c8ddbb16c554be9c6ae3f22416afc60jD ^https://api.github.com/repos/palantir/atlasdb/commits/7bace87a6c8ddbb16c554be9c6ae3f22416afc60jD Shttps://github.com/palantir/atlasdb/commit/7bace87a6c8ddbb16c554be9c6ae3f22416afc60uastats}(totalM	additionsKY	deletionsKufiles](}(jC (03c4cb74ac8d49f27d2d7127a23b9f2c9f98d32cfilenameClock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javastatusmodifiedjLD KjMD KchangesK6blob_urlhttps://github.com/palantir/atlasdb/blob/f9af88a826053e49e7f8eb3728ea5a76adb3443e/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f9af88a826053e49e7f8eb3728ea5a76adb3443e/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=f9af88a826053e49e7f8eb3728ea5a76adb3443epatchXk  @@ -72,7 +72,6 @@
 import com.palantir.lock.StringLockDescriptor;
 import com.palantir.lock.TimeDuration;
 import com.palantir.lock.logger.LockServiceStateLogger;
-import com.palantir.logsafe.Arg;
 import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
@@ -108,6 +107,7 @@
 import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 import javax.annotation.concurrent.ThreadSafe;
+import one.util.streamex.EntryStream;
 import org.slf4j.helpers.MessageFormatter;
 
 /**
@@ -468,25 +468,20 @@ private void logNullResponse(LockClient client, LockRequest request, @Nullable H
                 token == null ? UnsafeArg.of("lockToken", "null") : UnsafeArg.of("lockToken", token));
     }
 
-    @VisibleForTesting
-    void logLockAcquisitionFailure(Map<LockDescriptor, LockClient> failedLocks) {
+    private void logLockAcquisitionFailure(Map<LockDescriptor, LockClient> failedLocks) {
         final String logMessage = "Current holders of the first {} of {} total failed locks were: {}";
-
-        List<String> lockDescriptions = failedLocks.entrySet().stream()
+        List<String> lockDescriptions = EntryStream.of(failedLocks)
                 .limit(MAX_FAILED_LOCKS_TO_LOG)
-                .map(entry -> String.format("Lock: %s, Holder: %s", entry.getKey(), entry.getValue()))
-                .collect(Collectors.toList());
-
-        List<Arg<?>> logArgs = new ArrayList<>();
-        logArgs.add(SafeArg.of("numLocksLogged", Math.min(MAX_FAILED_LOCKS_TO_LOG, failedLocks.size())));
-        logArgs.add(SafeArg.of("numLocksFailed", failedLocks.size()));
-        logArgs.add(UnsafeArg.of("lockDescriptions", lockDescriptions));
-
-        if (threadInfoSnapshotManager.isRecordingThreadInfo()) {
-            logArgs.add(threadInfoSnapshotManager.getRestrictedSnapshotAsLogArg(
-                    failedLocks.keySet().stream().limit(MAX_FAILED_LOCKS_TO_LOG).collect(Collectors.toSet())));
-        }
-        requestLogger.trace(logMessage, logArgs);
+                .mapKeyValue((key, value) -> String.format("Lock: %s, Holder: %s", key, value))
+                .toList();
+        requestLogger.trace(
+                logMessage,
+                SafeArg.of("numLocksLogged", Math.min(MAX_FAILED_LOCKS_TO_LOG, failedLocks.size())),
+                SafeArg.of("numLocksFailed", failedLocks.size()),
+                UnsafeArg.of("lockDescriptions", lockDescriptions),
+                threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(failedLocks.keySet().stream()
+                        .limit(MAX_FAILED_LOCKS_TO_LOG)
+                        .collect(Collectors.toSet())));
     }
 
     private boolean isBlocking(BlockingMode blockingMode) {
@@ -555,18 +550,21 @@ void logSlowLockAcquisition(LockDescriptor lockDescriptor, LockClient currentHol
         final String slowLockLogMessage = "Blocked for {} ms to acquire lock {} {}.";
         final String lockId = lockDescriptor.getLockIdAsString();
 
-        List<Arg<?>> logArgs = new ArrayList<Arg<?>>();
-        logArgs.add(SafeArg.of("durationMillis", durationMillis));
-        logArgs.add(UnsafeArg.of("lockId", lockId));
-        logArgs.add(SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"));
-
-        if (threadInfoSnapshotManager.isRecordingThreadInfo()) {
-            logArgs.add(threadInfoSnapshotManager.getRestrictedSnapshotAsLogArg(Set.of(lockDescriptor)));
-        }
+        // Note: The construction of params is pushed into the branches, as it may be expensive.
         if (isSlowLogEnabled() && durationMillis >= slowLogTriggerMillis) {
-            SlowLockLogger.logger.warn(slowLockLogMessage, logArgs);
+            SlowLockLogger.logger.warn(
+                    slowLockLogMessage,
+                    SafeArg.of("durationMillis", durationMillis),
+                    UnsafeArg.of("lockId", lockId),
+                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"),
+                    threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(Set.of(lockDescriptor)));
         } else if (log.isDebugEnabled() && durationMillis > DEBUG_SLOW_LOG_TRIGGER_MILLIS) {
-            log.debug(slowLockLogMessage, logArgs);
+            log.debug(
+                    slowLockLogMessage,
+                    SafeArg.of("durationMillis", durationMillis),
+                    UnsafeArg.of("lockId", lockId),
+                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"),
+                    threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(Set.of(lockDescriptor)));
         }
     }
 u}(jC (c669523c301627fbc50de139afb82bf3cf6a0fb1jRD Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javajTD modifiedjLD KjMD KjVD K	jWD https://github.com/palantir/atlasdb/blob/f9af88a826053e49e7f8eb3728ea5a76adb3443e/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javajYD https://github.com/palantir/atlasdb/raw/f9af88a826053e49e7f8eb3728ea5a76adb3443e/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj[D https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=f9af88a826053e49e7f8eb3728ea5a76adb3443ej]D X  @@ -29,6 +29,7 @@
 import java.util.Map;
 import java.util.Map.Entry;
 import java.util.Objects;
+import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.ConcurrentMap;
 import java.util.concurrent.ScheduledExecutorService;
@@ -80,14 +81,18 @@ Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot() {
      * Returns a consistent snapshot of thread information restricted to the given lock descriptors wrapped in an
      * unsafe logging argument.
      */
-    public UnsafeArg<Map<LockDescriptor, LockClientAndThread>> getRestrictedSnapshotAsLogArg(
+    public UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> getRestrictedSnapshotAsOptionalLogArg(
             Set<LockDescriptor> lockDescriptors) {
+        final String argName = "presumedClientThreadHoldersIfEnabled";
+        if (!isRecordingThreadInfo()) {
+            return UnsafeArg.of(argName, Optional.empty());
+        }
         Map<LockDescriptor, LockClientAndThread> latestSnapshot = lastKnownThreadInfoSnapshot;
         Map<LockDescriptor, LockClientAndThread> restrictedSnapshot = new HashMap<>();
         for (LockDescriptor lock : lockDescriptors) {
             restrictedSnapshot.put(lock, latestSnapshot.get(lock));
         }
-        return UnsafeArg.of("presumedClientThreadHolders", restrictedSnapshot);
+        return UnsafeArg.of(argName, Optional.of(restrictedSnapshot));
     }
 
     public boolean isRecordingThreadInfo() {u}(jC (d49ca278255ff8ffde5f0edb190cda858fb3f8edjRD Glock-impl/src/test/java/com/palantir/lock/impl/LockServiceImplTest.javajTD modifiedjLD KjMD KjVD KjWD https://github.com/palantir/atlasdb/blob/f9af88a826053e49e7f8eb3728ea5a76adb3443e/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javajYD https://github.com/palantir/atlasdb/raw/f9af88a826053e49e7f8eb3728ea5a76adb3443e/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj[D https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.java?ref=f9af88a826053e49e7f8eb3728ea5a76adb3443ej]D X"  @@ -22,6 +22,7 @@
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.lock.LockClient;
+import com.palantir.lock.LockClientAndThread;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRefreshToken;
@@ -30,9 +31,12 @@
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.StringLockDescriptor;
 import com.palantir.lock.client.LockRefreshingLockService;
+import com.palantir.logsafe.UnsafeArg;
 import java.io.IOException;
 import java.util.HashSet;
 import java.util.List;
+import java.util.Map;
+import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
 import java.util.concurrent.TimeUnit;
@@ -49,7 +53,10 @@
 
 public final class LockServiceImplTest {
     public static final long SLOW_LOG_TRIGGER_MILLIS = LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS + 10;
-    private static final LockDescriptor TEST_LOCK = StringLockDescriptor.of("test_lockId");
+    private static final String TEST_LOCKID = "test-lockId";
+    private static final LockDescriptor TEST_LOCK = StringLockDescriptor.of(TEST_LOCKID);
+    private static final UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> threadInfoSnapshotLogArg =
+            UnsafeArg.of("presumedClientThreadHoldersIfEnabled", Optional.empty());
     private static LockServiceImpl lockServiceWithSlowLogEnabled;
     private static LockServiceImpl lockServiceWithSlowLogDisabled;
 
@@ -106,8 +113,9 @@ public void slowLogShouldBeLoggedWhenLockResponseIsSlowButShouldNotBeLoggedAtDeb
                 warn(
                         "Blocked for {} ms to acquire lock {} {}.",
                         lockDurationMillis,
-                        TEST_LOCK.getLockIdAsString(),
-                        "unsuccessfully"));
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        threadInfoSnapshotLogArg));
     }
 
     @Test
@@ -122,8 +130,9 @@ public void debugLogShouldBeLoggedWhenLockResponseIsSlowButSlowLogIsDisabled() {
                 debug(
                         "Blocked for {} ms to acquire lock {} {}.",
                         lockDurationMillis,
-                        TEST_LOCK.getLockIdAsString(),
-                        "unsuccessfully"));
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        threadInfoSnapshotLogArg));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }
@@ -139,8 +148,9 @@ public void debugLogShouldBeLoggedIfLockResponseTimeIsBetweenDebugTriggerTimeAnd
                 debug(
                         "Blocked for {} ms to acquire lock {} {}.",
                         lockDurationMillis,
-                        TEST_LOCK.getLockIdAsString(),
-                        "unsuccessfully"));
+                        TEST_LOCKID,
+                        "unsuccessfully",
+                        threadInfoSnapshotLogArg));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }u}(jC (876e0935ffb1d6ef9211e61db5ee41a480101375jRD Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javajTD modifiedjLD KjMD K jVD KjWD https://github.com/palantir/atlasdb/blob/f9af88a826053e49e7f8eb3728ea5a76adb3443e/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javajYD https://github.com/palantir/atlasdb/raw/f9af88a826053e49e7f8eb3728ea5a76adb3443e/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj[D https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=f9af88a826053e49e7f8eb3728ea5a76adb3443ej]D Xc  @@ -30,6 +30,7 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.StringLockDescriptor;
+import com.palantir.logsafe.UnsafeArg;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
@@ -297,6 +298,17 @@ public void backgroundSnapshotRunnerWorks() throws InterruptedException {
                         .doesNotContainKey(TEST_LOCK_1));
     }
 
+    @Test
+    public void logArgIsUnsafeAndContainsRestrictedSnapshot() throws InterruptedException {
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        forceSnapshot();
+
+        assertThat(lockService.getSnapshotManager().getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
+                .isEqualTo(UnsafeArg.of(
+                        "presumedClientThreadHoldersIfEnabled",
+                        Optional.of(Map.of(TEST_LOCK_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1)))));
+    }
+
     private void forceSnapshot() {
         this.lockService.getSnapshotManager().takeSnapshot();
     }u}(jC (90056ed19a561b7ae03927d83dde3c66fd19bc41jRD btimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockService.javajTD modifiedjLD KjMD KjVD K#jWD https://github.com/palantir/atlasdb/blob/f9af88a826053e49e7f8eb3728ea5a76adb3443e/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javajYD https://github.com/palantir/atlasdb/raw/f9af88a826053e49e7f8eb3728ea5a76adb3443e/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj[D https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.java?ref=f9af88a826053e49e7f8eb3728ea5a76adb3443ej]D XN  @@ -34,15 +34,12 @@
 import com.palantir.lock.SimpleHeldLocksToken;
 import com.palantir.lock.impl.LockThreadInfoSnapshotManager;
 import com.palantir.lock.remoting.BlockingTimeoutException;
-import com.palantir.logsafe.Arg;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.io.IOException;
 import java.math.BigInteger;
-import java.util.ArrayList;
-import java.util.List;
 import java.util.Set;
 import java.util.concurrent.Callable;
 import java.util.concurrent.ExecutionException;
@@ -246,26 +243,24 @@ private static void logInterrupted(LockRequestSpecification specification, Inter
     }
 
     private BlockingTimeoutException logAndHandleTimeout(LockRequestSpecification specification) {
-        final String logMessage = "Lock service timed out after {} milliseconds when servicing {} for client \"{}\"";
-
-        List<Arg<?>> logArgs = new ArrayList<>();
-        logArgs.add(SafeArg.of("timeoutDurationMillis", blockingTimeLimitMillis));
-        logArgs.add(SafeArg.of("method", specification.method()));
-        logArgs.add(SafeArg.of("client", specification.client()));
-
-        if (threadInfoSnapshotManager.isRecordingThreadInfo()) {
-            Set<LockDescriptor> locksToLog = specification.lockRequest().getLockDescriptors().stream()
-                    .limit(MAX_THREADINFO_TO_LOG)
-                    .collect(Collectors.toSet());
-            logArgs.add(threadInfoSnapshotManager.getRestrictedSnapshotAsLogArg(locksToLog));
-        }
-        logArgs.add(UnsafeArg.of("lockRequest", specification.lockRequest()));
-        log.info(logMessage, logArgs);
+        final String logMessage =
+                "Lock service timed out after {} milliseconds" + " when servicing {} for client \"{}\"";
+        log.info(
+                logMessage,
+                SafeArg.of("timeoutDurationMillis", blockingTimeLimitMillis),
+                SafeArg.of("method", specification.method()),
+                SafeArg.of("client", specification.client()),
+                UnsafeArg.of("lockRequest", specification.lockRequest()),
+                threadInfoSnapshotManager.getRestrictedSnapshotAsOptionalLogArg(
+                        specification.lockRequest().getLockDescriptors().stream()
+                                .limit(MAX_THREADINFO_TO_LOG)
+                                .collect(Collectors.toSet())));
 
         String errorMessage = String.format(
                 logMessage.replace("{}", "%s"),
-                // Arg.toString() just stringifies the contained value
-                logArgs.toArray());
+                blockingTimeLimitMillis,
+                specification.method(),
+                specification.client());
         return new BlockingTimeoutException(errorMessage);
     }
 u}(jC (ba84282c91e1c85c2d25288ffc78e1895ce61edejRD ftimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockServiceTest.javajTD modifiedjLD KjMD KsjVD KjWD https://github.com/palantir/atlasdb/blob/f9af88a826053e49e7f8eb3728ea5a76adb3443e/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.javajYD https://github.com/palantir/atlasdb/raw/f9af88a826053e49e7f8eb3728ea5a76adb3443e/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.javaj[D https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.java?ref=f9af88a826053e49e7f8eb3728ea5a76adb3443ej]D X
*  @@ -19,54 +19,35 @@
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyLong;
-import static org.mockito.ArgumentMatchers.argThat;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
-import static uk.org.lidalia.slf4jtest.LoggingEvent.info;
 
 import com.google.common.collect.ImmutableSortedMap;
 import com.google.common.util.concurrent.FakeTimeLimiter;
 import com.google.common.util.concurrent.TimeLimiter;
 import com.google.common.util.concurrent.UncheckedExecutionException;
 import com.palantir.lock.CloseableLockService;
 import com.palantir.lock.LockClient;
-import com.palantir.lock.LockClientAndThread;
-import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.StringLockDescriptor;
 import com.palantir.lock.impl.LockThreadInfoSnapshotManager;
 import com.palantir.lock.remoting.BlockingTimeoutException;
-import com.palantir.logsafe.UnsafeArg;
 import java.io.IOException;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.SortedMap;
-import java.util.TreeMap;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.TimeoutException;
-import java.util.stream.Collectors;
 import org.junit.Before;
 import org.junit.Test;
-import uk.org.lidalia.slf4jext.Level;
-import uk.org.lidalia.slf4jtest.LoggingEvent;
-import uk.org.lidalia.slf4jtest.TestLogger;
-import uk.org.lidalia.slf4jtest.TestLoggerFactory;
 
 @SuppressWarnings("DoNotMock") // we are just using mocks as proxies that always throw
 public class BlockingTimeLimitedLockServiceTest {
     private static final long BLOCKING_TIME_LIMIT_MILLIS = 10L;
     private static final long TEST_CURRENT_TIME_MILLIS = 42L;
     private static final String CLIENT = "client";
-    private static final String TEST_THREAD = "test-thread";
-
-    private static final LockDescriptor TEST_LOCK = StringLockDescriptor.of("lockId");
     private static final LockRequest LOCK_REQUEST = LockRequest.builder(
-                    ImmutableSortedMap.of(TEST_LOCK, LockMode.WRITE))
-            .withCreatingThreadName(TEST_THREAD)
+                    ImmutableSortedMap.of(StringLockDescriptor.of("lockId"), LockMode.WRITE))
             .build();
 
     private final TimeLimiter acceptingLimiter = new FakeTimeLimiter();
@@ -77,27 +58,13 @@ public class BlockingTimeLimitedLockServiceTest {
 
     private final CloseableLockService delegate = mock(CloseableLockService.class);
 
-    private final LockThreadInfoSnapshotManager recordingThreadInfoSnapshotManager =
-            mock(LockThreadInfoSnapshotManager.class);
-    private final LockThreadInfoSnapshotManager nonRecordingThreadInfoSnapshotManager =
-            mock(LockThreadInfoSnapshotManager.class);
-
-    private final BlockingTimeLimitedLockService acceptingService =
-            createService(acceptingLimiter, nonRecordingThreadInfoSnapshotManager);
-    private final BlockingTimeLimitedLockService timingOutAndNonRecordingService =
-            createService(timingOutLimiter, nonRecordingThreadInfoSnapshotManager);
-    private final BlockingTimeLimitedLockService interruptingService =
-            createService(interruptingLimiter, nonRecordingThreadInfoSnapshotManager);
-    private final BlockingTimeLimitedLockService uncheckedThrowingService =
-            createService(uncheckedThrowingLimiter, nonRecordingThreadInfoSnapshotManager);
-    private final BlockingTimeLimitedLockService checkedThrowingService =
-            createService(checkedThrowingLimiter, nonRecordingThreadInfoSnapshotManager);
-    private final BlockingTimeLimitedLockService timingOutAndRecordingService =
-            createService(timingOutLimiter, recordingThreadInfoSnapshotManager);
-
-    private static final String TIMEOUT_LOG_MESSAGE =
-            "Lock service timed out after {} milliseconds when servicing {}" + " for client \"{}\"";
-    private TestLogger testLogger;
+    private final LockThreadInfoSnapshotManager snapshotManager = mock(LockThreadInfoSnapshotManager.class);
+
+    private final BlockingTimeLimitedLockService acceptingService = createService(acceptingLimiter);
+    private final BlockingTimeLimitedLockService timingOutService = createService(timingOutLimiter);
+    private final BlockingTimeLimitedLockService interruptingService = createService(interruptingLimiter);
+    private final BlockingTimeLimitedLockService uncheckedThrowingService = createService(uncheckedThrowingLimiter);
+    private final BlockingTimeLimitedLockService checkedThrowingService = createService(checkedThrowingLimiter);
 
     @Before
     public void setUp() throws Exception {
@@ -107,10 +74,6 @@ public void setUp() throws Exception {
                 .thenThrow(new UncheckedExecutionException(new IllegalStateException()));
         when(checkedThrowingLimiter.callWithTimeout(any(), anyLong(), any()))
                 .thenThrow(new ExecutionException(new Exception()));
-        when(recordingThreadInfoSnapshotManager.isRecordingThreadInfo()).thenReturn(true);
-        when(nonRecordingThreadInfoSnapshotManager.isRecordingThreadInfo()).thenReturn(false);
-        testLogger = TestLoggerFactory.getTestLogger(BlockingTimeLimitedLockService.class);
-        testLogger.setEnabledLevelsForAllThreads(Level.INFO);
     }
 
     @Test
@@ -126,7 +89,7 @@ public void delegatesUninterruptibleOperations() {
 
     @Test
     public void timeoutDoesNotApplyToUninterruptibleOperations() {
-        verifyCurrentTimeMillisDelegates(timingOutAndNonRecordingService);
+        verifyCurrentTimeMillisDelegates(timingOutService);
     }
 
     @Test
@@ -136,7 +99,7 @@ public void interruptDoesNotApplyToUninterruptibleOperations() {
 
     @Test
     public void throwsBlockingTimeoutExceptionIfInterruptibleOperationTimesOut() {
-        assertThatThrownBy(() -> timingOutAndNonRecordingService.lock(CLIENT, LOCK_REQUEST))
+        assertThatThrownBy(() -> timingOutService.lock(CLIENT, LOCK_REQUEST))
                 .isInstanceOf(BlockingTimeoutException.class);
     }
 
@@ -155,87 +118,21 @@ public void rethrowsExceptionOccurringFromInterruptibleOperation() {
                 .hasCauseExactlyInstanceOf(Exception.class);
     }
 
-    @Test
-    public void timeoutLogDoesNotIncludeThreadInfoIfNotRecording() {
-        assertThatThrownBy(() -> timingOutAndNonRecordingService.lock(CLIENT, LOCK_REQUEST))
-                .isInstanceOf(BlockingTimeoutException.class);
-        assertContainsMatchingLoggingEvent(
-                testLogger.getLoggingEvents(),
-                info(TIMEOUT_LOG_MESSAGE, BLOCKING_TIME_LIMIT_MILLIS, "lock", CLIENT, LOCK_REQUEST));
-    }
-
-    @Test
-    public void timeoutLogIncludesLastAcquiringThreadIfRecordingThreadInfo() {
-        LockClientAndThread expectedClientThread = LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD);
-        LockDescriptor testLock2 = StringLockDescriptor.of("test-lock-2");
-        LockRequest lockRequest = LockRequest.builder(
-                        ImmutableSortedMap.of(TEST_LOCK, LockMode.WRITE, testLock2, LockMode.WRITE))
-                .withCreatingThreadName(TEST_THREAD)
-                .build();
-
-        Map<LockDescriptor, LockClientAndThread> expected =
-                Map.of(TEST_LOCK, expectedClientThread, testLock2, expectedClientThread);
-        when(recordingThreadInfoSnapshotManager.getRestrictedSnapshotAsLogArg(Set.of(TEST_LOCK, testLock2)))
-                .thenReturn(UnsafeArg.of("presumedClientThreadHolders", expected));
-
-        assertThatThrownBy(() -> timingOutAndRecordingService.lock(CLIENT, lockRequest))
-                .isInstanceOf(BlockingTimeoutException.class);
-        assertContainsMatchingLoggingEvent(
-                testLogger.getLoggingEvents(),
-                info(TIMEOUT_LOG_MESSAGE, BLOCKING_TIME_LIMIT_MILLIS, "lock", CLIENT, expected, lockRequest));
-    }
-
-    @Test
-    public void timeoutLogIncludesAtMostNLocksIfRecordingThreadInfo() {
-        SortedMap<LockDescriptor, LockMode> locks = new TreeMap<>();
-
-        for (int i = 0; i < 2 * BlockingTimeLimitedLockService.MAX_THREADINFO_TO_LOG + 1; i++) {
-            LockDescriptor lock = StringLockDescriptor.of("thread-lock-" + i);
-            locks.put(lock, LockMode.WRITE);
-        }
-
-        LockRequest lockRequest = LockRequest.builder(locks).build();
-
-        assertThatThrownBy(() -> timingOutAndRecordingService.lock(CLIENT, lockRequest))
-                .isInstanceOf(BlockingTimeoutException.class);
-
-        verify(recordingThreadInfoSnapshotManager).getRestrictedSnapshotAsLogArg(argThat(x -> {
-            assertThat(x).hasSize(BlockingTimeLimitedLockService.MAX_THREADINFO_TO_LOG);
-            return true;
-        }));
-    }
-
     @Test
     public void closesDelegate() throws IOException {
         acceptingService.close();
 
         verify(delegate).close();
     }
 
-    private static void assertContainsMatchingLoggingEvent(List<LoggingEvent> actuals, LoggingEvent expected) {
-        List<String> expectedParamStrings = extractArgumentsAsStringList(expected);
-        assertThat(actuals.stream()
-                        .filter(event -> event.getLevel() == expected.getLevel()
-                                && event.getMessage().equals(expected.getMessage())
-                                && expectedParamStrings.equals(extractArgumentsAsStringList(event)))
-                        .collect(Collectors.toSet()))
-                .hasSize(1);
-    }
-
-    private static List<String> extractArgumentsAsStringList(LoggingEvent event) {
-        return event.getArguments().stream().map(Object::toString).collect(Collectors.toList());
-    }
-
     private void verifyCurrentTimeMillisDelegates(BlockingTimeLimitedLockService service) {
         when(delegate.currentTimeMillis()).thenReturn(TEST_CURRENT_TIME_MILLIS);
 
         assertThat(service.currentTimeMillis()).isEqualTo(TEST_CURRENT_TIME_MILLIS);
         verify(delegate, times(1)).currentTimeMillis();
     }
 
-    private BlockingTimeLimitedLockService createService(
-            TimeLimiter limiter, LockThreadInfoSnapshotManager lockThreadInfoSnapshotManager) {
-        return new BlockingTimeLimitedLockService(
-                delegate, limiter, BLOCKING_TIME_LIMIT_MILLIS, lockThreadInfoSnapshotManager);
+    private BlockingTimeLimitedLockService createService(TimeLimiter limiter) {
+        return new BlockingTimeLimitedLockService(delegate, limiter, BLOCKING_TIME_LIMIT_MILLIS, snapshotManager);
     }
 }ueu/      (29251242d74bc7c29d603bfb7862ab028125de7b}(sha(29251242d74bc7c29d603bfb7862ab028125de7bnode_idEC_kwDOAjP5fdoAKDI5MjUxMjQyZDc0YmM3YzI5ZDYwM2JmYjc4NjJhYjAyODEyNWRlN2Icommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-08-08T19:52:31Zu	committer}(jD 
svc-changelogjD svc-changelog@palantir.comjD 2023-08-08T19:52:31ZumessageAdd generated changelog entriestree}(jD (4116140ffebbbae5bee6105939d90f4d9ff8bc57url`https://api.github.com/repos/palantir/atlasdb/git/trees/4116140ffebbbae5bee6105939d90f4d9ff8bc57ujD bhttps://api.github.com/repos/palantir/atlasdb/git/commits/29251242d74bc7c29d603bfb7862ab028125de7b
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmTSnP8JEHYaJX37fAFQAAALRgEA6/2C8tBwrD01LUbwAXya9ZbF
Vdpm3gutnkhUOKqvb/kA/3jxxsXGObWuSW7tg+Ld6YBK7hgCWDU+kS9Ml/tyAEA/
=K48W
-----END PGP SIGNATURE-----payloadX  tree 4116140ffebbbae5bee6105939d90f4d9ff8bc57
parent 94314992cc28236525ccd36e02bd47e3b9069d96
author svc-changelog <svc-changelog@palantir.com> 1691524351 +0000
committer svc-changelog <svc-changelog@palantir.com> 1691524351 +0000

Add generated changelog entriesuujD ^https://api.github.com/repos/palantir/atlasdb/commits/29251242d74bc7c29d603bfb7862ab028125de7bhtml_urlShttps://github.com/palantir/atlasdb/commit/29251242d74bc7c29d603bfb7862ab028125de7bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/29251242d74bc7c29d603bfb7862ab028125de7b/commentsjD }(login
svc-changelogidJ#jD MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jD *https://api.github.com/users/svc-changelogjD  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujD }(jD 
svc-changelogjD J#jD MDQ6VXNlcjg0MDc3NjAzjD 4https://avatars.githubusercontent.com/u/84077603?v=4jD h5jD *https://api.github.com/users/svc-changelogjD  https://github.com/svc-changelogjD 4https://api.github.com/users/svc-changelog/followersjD Ahttps://api.github.com/users/svc-changelog/following{/other_user}jD :https://api.github.com/users/svc-changelog/gists{/gist_id}jD Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jD 8https://api.github.com/users/svc-changelog/subscriptionsjD /https://api.github.com/users/svc-changelog/orgsjD 0https://api.github.com/users/svc-changelog/reposjD ;https://api.github.com/users/svc-changelog/events{/privacy}jD :https://api.github.com/users/svc-changelog/received_eventsjD UserjD uparents]}(jD (94314992cc28236525ccd36e02bd47e3b9069d96jD ^https://api.github.com/repos/palantir/atlasdb/commits/94314992cc28236525ccd36e02bd47e3b9069d96jD Shttps://github.com/palantir/atlasdb/commit/94314992cc28236525ccd36e02bd47e3b9069d96uastats}(totalK	additionsK	deletionsK ufiles]}(jD (ae5b6dc095d5c6cd4217b7bcf63b7026ec96c159filename$changelog/@unreleased/pr-6698.v2.ymlstatusaddedjD KjD K changesKblob_url|https://github.com/palantir/atlasdb/blob/29251242d74bc7c29d603bfb7862ab028125de7b/changelog%2F%40unreleased%2Fpr-6698.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/29251242d74bc7c29d603bfb7862ab028125de7b/changelog%2F%40unreleased%2Fpr-6698.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6698.v2.yml?ref=29251242d74bc7c29d603bfb7862ab028125de7bpatch@@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: fix TransactionManagers ABI break
+  links:
+  - https://github.com/palantir/atlasdb/pull/6698uau(59aa43586270cc5d2bf05450e1e0c7c404d43867}(sha(59aa43586270cc5d2bf05450e1e0c7c404d43867node_idEC_kwDOAjP5fdoAKDU5YWE0MzU4NjI3MGNjNWQyYmYwNTQ1MGUxZTBjN2M0MDRkNDM4Njccommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-07-18T10:01:39Zu	committer}(jE 
svc-changelogj
E svc-changelog@palantir.comjE 2023-07-18T10:01:39ZumessageAdd generated changelog entriestree}(j E (392399fd586ee76bce8ec15d859a5ac2f3e08eaaurl`https://api.github.com/repos/palantir/atlasdb/git/trees/392399fd586ee76bce8ec15d859a5ac2f3e08eaaujE bhttps://api.github.com/repos/palantir/atlasdb/git/commits/59aa43586270cc5d2bf05450e1e0c7c404d43867
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmS2YwMJEHYaJX37fAFQAAC3nwEA3LrdYWV49k77N7fBuQXfrrWx
AQ6yxD44x1bVmI2N4LIBAKR5NBi50pGJeIA8ydxMXerTCzwWnwD1mh3dfVMcfrqs
=brsY
-----END PGP SIGNATURE-----payloadX  tree 392399fd586ee76bce8ec15d859a5ac2f3e08eaa
parent e3ab6692dea36a76bc1016eb8a5bee15b5162bb3
author svc-changelog <svc-changelog@palantir.com> 1689674499 +0000
committer svc-changelog <svc-changelog@palantir.com> 1689674499 +0000

Add generated changelog entriesuujE ^https://api.github.com/repos/palantir/atlasdb/commits/59aa43586270cc5d2bf05450e1e0c7c404d43867html_urlShttps://github.com/palantir/atlasdb/commit/59aa43586270cc5d2bf05450e1e0c7c404d43867comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/59aa43586270cc5d2bf05450e1e0c7c404d43867/commentsjE }(login
svc-changelogidJ#jE MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jE *https://api.github.com/users/svc-changelogj&E  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminujE }(j+E 
svc-changelogj-E J#jE MDQ6VXNlcjg0MDc3NjAzj/E 4https://avatars.githubusercontent.com/u/84077603?v=4j1E h5jE *https://api.github.com/users/svc-changelogj&E  https://github.com/svc-changelogj4E 4https://api.github.com/users/svc-changelog/followersj6E Ahttps://api.github.com/users/svc-changelog/following{/other_user}j8E :https://api.github.com/users/svc-changelog/gists{/gist_id}j:E Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j<E 8https://api.github.com/users/svc-changelog/subscriptionsj>E /https://api.github.com/users/svc-changelog/orgsj@E 0https://api.github.com/users/svc-changelog/reposjBE ;https://api.github.com/users/svc-changelog/events{/privacy}jDE :https://api.github.com/users/svc-changelog/received_eventsjFE UserjHE uparents]}(j E (e3ab6692dea36a76bc1016eb8a5bee15b5162bb3jE ^https://api.github.com/repos/palantir/atlasdb/commits/e3ab6692dea36a76bc1016eb8a5bee15b5162bb3j&E Shttps://github.com/palantir/atlasdb/commit/e3ab6692dea36a76bc1016eb8a5bee15b5162bb3uastats}(totalK	additionsK	deletionsK ufiles]}(j E (240913fc734894a98c05e8c292aa78369a4ece97filename$changelog/@unreleased/pr-6667.v2.ymlstatusaddedjbE KjcE K changesKblob_url|https://github.com/palantir/atlasdb/blob/59aa43586270cc5d2bf05450e1e0c7c404d43867/changelog%2F%40unreleased%2Fpr-6667.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/59aa43586270cc5d2bf05450e1e0c7c404d43867/changelog%2F%40unreleased%2Fpr-6667.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6667.v2.yml?ref=59aa43586270cc5d2bf05450e1e0c7c404d43867patchX  @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Do not wait for a quorum of nodes to be available for Cassandra's schema
+    version on start up unless when performing DDL operations.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6667uau(c22a9122dc1ce1542da8713f8f69613baf873522}(sha(c22a9122dc1ce1542da8713f8f69613baf873522node_idEC_kwDOAjP5fdoAKGMyMmE5MTIyZGMxY2UxNTQyZGE4NzEzZjhmNjk2MTNiYWY4NzM1MjIcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-06-22T15:42:57Zu	committer}(jE GitHubjE noreply@github.comjE 2023-06-22T15:42:57ZumessageX   Remove potential case for large recursion in read path (#6630)

* Remove infinite recursion

* Less invasive change

* Add unit test

* better test

* add comment in test

* truncate table we written to previously as it will never be swept, and renable executor

* remove wonky test

* NEVER mock executor service unless you want OOMs

* work smarter not harder

* give me more heap

* Add generated changelog entries

---------

Co-authored-by: svc-changelog <svc-changelog@palantir.com>tree}(jwE (2a325ba158a621db4d04826c0e66abed37dd07d7url`https://api.github.com/repos/palantir/atlasdb/git/trees/2a325ba158a621db4d04826c0e66abed37dd07d7ujE bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c22a9122dc1ce1542da8713f8f69613baf873522
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJklGwBCRBK7hj4Ov3rIwAA1tMIABUTrjLOX5xp5yj5CtjIwKwv
pj1fxtZ9JA7mOc6/KxBaVSw/2dlMnwZpsaFvr0qXf5j+rQOqUcghBc4Y+2HgJEJ4
u7cAHOpO18+9NRBhd+YHjyjCYzZq14mTAnrmgEWeRoT9ch/N8kGbKUpdEmHazFr3
AduFyFgwTzbMEDzDeG1bO7pZ+8itaXCCs7a9cytD8gbBXCWg10YktFaoq+8HXECp
7DBShTDE+BnFaoBLQCmNaBBgp+lV6yb29rJSpWPqjueEWQLMTwqimwSAgKCkxs5S
rOhh9rwypd7QIe2syCjvfAhc4bV1a+Bf/vrRcN/bFoafC21alnwoJAXDVjQwFV4=
=DELE
-----END PGP SIGNATURE-----
payloadX  tree 2a325ba158a621db4d04826c0e66abed37dd07d7
parent 4042f72d514d46a48a5326a7c240b54e8eb11149
author Sam-Kramer <sam.c.kramer@gmail.com> 1687448577 +0100
committer GitHub <noreply@github.com> 1687448577 +0100

Remove potential case for large recursion in read path (#6630)

* Remove infinite recursion

* Less invasive change

* Add unit test

* better test

* add comment in test

* truncate table we written to previously as it will never be swept, and renable executor

* remove wonky test

* NEVER mock executor service unless you want OOMs

* work smarter not harder

* give me more heap

* Add generated changelog entries

---------

Co-authored-by: svc-changelog <svc-changelog@palantir.com>uujE ^https://api.github.com/repos/palantir/atlasdb/commits/c22a9122dc1ce1542da8713f8f69613baf873522html_urlShttps://github.com/palantir/atlasdb/commit/c22a9122dc1ce1542da8713f8f69613baf873522comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c22a9122dc1ce1542da8713f8f69613baf873522/commentsj}E }(login
Sam-KrameridJ^2_ jyE MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jE 'https://api.github.com/users/Sam-KramerjE https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujE }(jE web-flowjE J/jyE MDQ6VXNlcjE5ODY0NDQ3jE 4https://avatars.githubusercontent.com/u/19864447?v=4jE h5jE %https://api.github.com/users/web-flowjE https://github.com/web-flowjE /https://api.github.com/users/web-flow/followersjE <https://api.github.com/users/web-flow/following{/other_user}jE 5https://api.github.com/users/web-flow/gists{/gist_id}jE <https://api.github.com/users/web-flow/starred{/owner}{/repo}jE 3https://api.github.com/users/web-flow/subscriptionsjE *https://api.github.com/users/web-flow/orgsjE +https://api.github.com/users/web-flow/reposjE 6https://api.github.com/users/web-flow/events{/privacy}jE 5https://api.github.com/users/web-flow/received_eventsjE UserjE uparents]}(jwE (4042f72d514d46a48a5326a7c240b54e8eb11149jE ^https://api.github.com/repos/palantir/atlasdb/commits/4042f72d514d46a48a5326a7c240b54e8eb11149jE Shttps://github.com/palantir/atlasdb/commit/4042f72d514d46a48a5326a7c240b54e8eb11149uastats}(totalK[	additionsKC	deletionsKufiles](}(jwE (4db07012d981499aa3d9ff132af786f890afa848filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedjE K!jE KchangesK8blob_urlhttps://github.com/palantir/atlasdb/blob/c22a9122dc1ce1542da8713f8f69613baf873522/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c22a9122dc1ce1542da8713f8f69613baf873522/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=c22a9122dc1ce1542da8713f8f69613baf873522patchX  @@ -210,6 +210,9 @@ public class SnapshotTransaction extends AbstractTransaction
     private static final int BATCH_SIZE_GET_FIRST_PAGE = 1000;
     private static final long TXN_LENGTH_THRESHOLD = Duration.ofMinutes(30).toMillis();
 
+    @VisibleForTesting
+    static final int MAX_POST_FILTERING_ITERATIONS = 200;
+
     @VisibleForTesting
     static final int MIN_BATCH_SIZE_FOR_DISTRIBUTED_LOAD = 100;
 
@@ -1456,9 +1459,9 @@ private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilterin
 
         return Futures.transformAsync(
                 Futures.immediateFuture(rawResults),
-                remainingResultsToPostFilter -> getWithPostFilteringIterate(
+                resultsToPostFilter -> getWithPostFilteringIterate(
                         tableRef,
-                        remainingResultsToPostFilter,
+                        resultsToPostFilter,
                         resultsAccumulator,
                         transformer,
                         asyncKeyValueService,
@@ -1468,32 +1471,39 @@ private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilterin
 
     private <T> ListenableFuture<Collection<Map.Entry<Cell, T>>> getWithPostFilteringIterate(
             TableReference tableReference,
-            Map<Cell, Value> remainingResultsToPostFilter,
+            Map<Cell, Value> resultsToPostFilter,
             Collection<Map.Entry<Cell, T>> resultsAccumulator,
             Function<Value, T> transformer,
             AsyncKeyValueService asyncKeyValueService,
             AsyncTransactionService asyncTransactionService) {
-        if (remainingResultsToPostFilter.isEmpty()) {
-            getCounter(AtlasDbMetricNames.SNAPSHOT_TRANSACTION_CELLS_RETURNED, tableReference)
-                    .inc(resultsAccumulator.size());
-            return Futures.immediateFuture(resultsAccumulator);
-        }
-
         return Futures.transformAsync(
-                getWithPostFilteringInternal(
-                        tableReference,
-                        remainingResultsToPostFilter,
-                        resultsAccumulator,
-                        transformer,
-                        asyncKeyValueService,
-                        asyncTransactionService),
-                remaining -> getWithPostFilteringIterate(
-                        tableReference,
-                        remaining,
-                        resultsAccumulator,
-                        transformer,
-                        asyncKeyValueService,
-                        asyncTransactionService),
+                Futures.immediateFuture(resultsToPostFilter),
+                results -> {
+                    int iterations = 0;
+                    Map<Cell, Value> remainingResultsToPostFilter = results;
+                    while (!remainingResultsToPostFilter.isEmpty()) {
+                        remainingResultsToPostFilter = AtlasFutures.getUnchecked(getWithPostFilteringInternal(
+                                tableReference,
+                                remainingResultsToPostFilter,
+                                resultsAccumulator,
+                                transformer,
+                                asyncKeyValueService,
+                                asyncTransactionService));
+                        Preconditions.checkState(
+                                ++iterations < MAX_POST_FILTERING_ITERATIONS,
+                                "Unable to filter cells to find correct result after "
+                                        + "reaching max iterations. This is likely due to aborted cells lying around,"
+                                        + " or in the very rare case, could be due to transactions which constantly "
+                                        + "conflict but never commit. These values will be cleaned up eventually, but"
+                                        + " if the issue persists, ensure that sweep is caught up.",
+                                SafeArg.of("table", tableReference),
+                                SafeArg.of("maxIterations", MAX_POST_FILTERING_ITERATIONS));
+                    }
+                    getCounter(AtlasDbMetricNames.SNAPSHOT_TRANSACTION_CELLS_RETURNED, tableReference)
+                            .inc(resultsAccumulator.size());
+
+                    return Futures.immediateFuture(resultsAccumulator);
+                },
                 MoreExecutors.directExecutor());
     }
 u}(jwE (f78ed397c1ab2442f099cc74dd518e30185dd324jE !atlasdb-tests-shared/build.gradlejE modifiedjE KjE K jE KjE uhttps://github.com/palantir/atlasdb/blob/c22a9122dc1ce1542da8713f8f69613baf873522/atlasdb-tests-shared%2Fbuild.gradlejE thttps://github.com/palantir/atlasdb/raw/c22a9122dc1ce1542da8713f8f69613baf873522/atlasdb-tests-shared%2Fbuild.gradlejE https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fbuild.gradle?ref=c22a9122dc1ce1542da8713f8f69613baf873522jE X  @@ -50,6 +50,7 @@ dependencies {
   testImplementation 'com.google.protobuf:protobuf-java'
   testImplementation 'com.palantir.common:streams'
   testImplementation 'com.palantir.safe-logging:safe-logging'
+  testImplementation 'com.palantir.safe-logging:preconditions-assertj'
   testImplementation 'com.palantir.tracing:tracing-api'
   testImplementation 'com.palantir.tritium:tritium-registry'
   testImplementation 'commons-io:commons-io'u}(jwE (ddec50c29546659d961c4897e7ecbcde3efe9efbjE Latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/AtlasDbTestCase.javajE modifiedjE KjE K jE KjE https://github.com/palantir/atlasdb/blob/c22a9122dc1ce1542da8713f8f69613baf873522/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javajE https://github.com/palantir/atlasdb/raw/c22a9122dc1ce1542da8713f8f69613baf873522/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.javajE https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbTestCase.java?ref=c22a9122dc1ce1542da8713f8f69613baf873522jE X;  @@ -77,11 +77,14 @@ public class AtlasDbTestCase {
 
     protected TransactionKnowledgeComponents knowledge;
 
+    protected ExecutorService deleteExecutor;
+
     @Rule
     public InMemoryTimeLockRule inMemoryTimeLockRule = new InMemoryTimeLockRule(CLIENT);
 
     @Before
     public void setUp() throws Exception {
+        deleteExecutor = MoreExecutors.newDirectExecutorService();
         lockClient = LockClient.of(CLIENT);
         lockService = inMemoryTimeLockRule.getLockService();
         timelockService = inMemoryTimeLockRule.getLegacyTimelockService();u}(jwE (257f163a5235cf4821789061d14aed27f4d101b9jE eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javajE modifiedjE KjE KjE KjE https://github.com/palantir/atlasdb/blob/c22a9122dc1ce1542da8713f8f69613baf873522/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajE https://github.com/palantir/atlasdb/raw/c22a9122dc1ce1542da8713f8f69613baf873522/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajE https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=c22a9122dc1ce1542da8713f8f69613baf873522jE X1  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
@@ -122,6 +123,7 @@
 import com.palantir.lock.v2.LockImmutableTimestampResponse;
 import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.TimelockService;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.math.BigInteger;
 import java.nio.ByteBuffer;
@@ -317,6 +319,8 @@ public void cleanup() {}
     static final TableReference TABLE_SWEPT_THOROUGH_MIGRATION =
             TableReference.createFromFullyQualifiedName("default.table5");
 
+    static final TableReference TABLE_NO_SWEEP = TableReference.createFromFullyQualifiedName("default.table6");
+
     private static final byte[] ROW_FOO = "foo".getBytes(StandardCharsets.UTF_8);
     private static final byte[] ROW_BAR = "bar".getBytes(StandardCharsets.UTF_8);
     private static final byte[] COL_A = "a".getBytes(StandardCharsets.UTF_8);
@@ -347,6 +351,9 @@ public void setUp() throws Exception {
                 TABLE_SWEPT_THOROUGH_MIGRATION,
                 getTableMetadataForSweepStrategy(SweepStrategy.THOROUGH_MIGRATION)
                         .persistToBytes());
+        keyValueService.createTable(
+                TABLE_NO_SWEEP,
+                getTableMetadataForSweepStrategy(SweepStrategy.NOTHING).persistToBytes());
     }
 
     @Override
@@ -361,7 +368,7 @@ protected TestTransactionManager constructTestTransactionManager() {
                 sweepStrategyManager,
                 timestampCache,
                 sweepQueue,
-                MoreExecutors.newDirectExecutorService(),
+                deleteExecutor,
                 transactionWrapper,
                 keyValueServiceWrapper,
                 knowledge);
@@ -2428,6 +2435,20 @@ public void setsRequestedCommitLocksCountCorrectly_serializableLockLevelMigratio
         assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(1 + 1);
     }
 
+    @Test
+    public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
+        for (int idx = 0; idx < SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS; idx++) {
+            putUncommittedAtFreshTimestamp(TABLE_NO_SWEEP, TEST_CELL);
+        }
+        assertThatLoggableExceptionThrownBy(
+                        () -> txManager.runTaskThrowOnConflict(txn -> txn.get(TABLE_NO_SWEEP, Set.of(TEST_CELL))))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageStartingWith("Unable to filter cells")
+                .hasExactlyArgs(
+                        SafeArg.of("table", TABLE_NO_SWEEP),
+                        SafeArg.of("maxIterations", SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS));
+    }
+
     private void verifyPrefetchValidations(
             List<byte[]> rows,
             List<Cell> cells,u}(jwE (46b215e4664b4438f038bf048c14656f6fb089e1jE $changelog/@unreleased/pr-6630.v2.ymljE addedjE KjE K jE KjE |https://github.com/palantir/atlasdb/blob/c22a9122dc1ce1542da8713f8f69613baf873522/changelog%2F%40unreleased%2Fpr-6630.v2.ymljE {https://github.com/palantir/atlasdb/raw/c22a9122dc1ce1542da8713f8f69613baf873522/changelog%2F%40unreleased%2Fpr-6630.v2.ymljE https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6630.v2.yml?ref=c22a9122dc1ce1542da8713f8f69613baf873522jE @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Remove recursive loop when filtering out cells that are not applicable
+    to our transaction.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6630u}(jwE (8c5d010b813c3904a027f75049590aef2a7eb16ajE %scripts/circle-ci/run-circle-tests.shjE modifiedjE KjE K jE KjE {https://github.com/palantir/atlasdb/blob/c22a9122dc1ce1542da8713f8f69613baf873522/scripts%2Fcircle-ci%2Frun-circle-tests.shjE zhttps://github.com/palantir/atlasdb/raw/c22a9122dc1ce1542da8713f8f69613baf873522/scripts%2Fcircle-ci%2Frun-circle-tests.shjE https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=c22a9122dc1ce1542da8713f8f69613baf873522jE XW  @@ -77,6 +77,8 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 # External builds have a 16gb limit.
 if [ "$test_suite_index" -eq "14" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
+elif [ "$test_suite_index" -eq "4" ]; then
+    export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 elif [ "$test_suite_index" -eq "3" ]; then
     export _JAVA_OPTIONS="-Xms8g -Xmx8g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
     BASE_GRADLE_ARGS+=" --scan --parallel"ueu(d401692960c388c5b5c43b56e337a64ff540fd50}(sha(d401692960c388c5b5c43b56e337a64ff540fd50node_idEC_kwDOAjP5fdoAKGQ0MDE2OTI5NjBjMzg4YzViNWM0M2I1NmUzMzdhNjRmZjU0MGZkNTAcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2022-12-18T17:07:45Zu	committer}(jF David Schlosnaglej F davids@palantir.comj"F 2023-05-20T16:53:04Zumessagefinal fieldtree}(jF (51efef58833eadc534463026b58e276d11c7bf36url`https://api.github.com/repos/palantir/atlasdb/git/trees/51efef58833eadc534463026b58e276d11c7bf36uj.F bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d401692960c388c5b5c43b56e337a64ff540fd50
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmRo+vAACgkQR9hsJ74Q
0l8zyQgAoxSyQ7yhuzST1PTd6nDto8GZKSBGavpNs9Ks4mjCkevZuXtQJrlEqczP
8KywD9x2+NRXpEZFlwCrKIuIFdXT7raBmz5BdUY66V1L+4BVGqyuiGIuYpP93QxS
VQe6tcRksMJz+j3ctDAk9XXPht4GvBDzyb/PAWh2tgvtFu5VyxBKeM/DbCz3nrBU
Z+Eki/oJ6alRkpb917JkPGQ2pqbLAemVHmAUUc55cciTYUvMTg6cOB1Vmu052l0u
ycvr9apapeadvzbxtK97ukx590SNURzkF9uiOhj8L+kPq66mPLfU4Yy//DEaWgvs
UDl6g459rELPRWecQMiGUerKe0dSPA==
=LATh
-----END PGP SIGNATURE-----payloadtree 51efef58833eadc534463026b58e276d11c7bf36
parent 9658c3484a7f6cc9662a4110f904e36d5a6948db
author David Schlosnagle <davids@palantir.com> 1671383265 -0500
committer David Schlosnagle <davids@palantir.com> 1684601584 -0400

final field
uuj.F ^https://api.github.com/repos/palantir/atlasdb/commits/d401692960c388c5b5c43b56e337a64ff540fd50html_urlShttps://github.com/palantir/atlasdb/commit/d401692960c388c5b5c43b56e337a64ff540fd50comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d401692960c388c5b5c43b56e337a64ff540fd50/commentsjF }(loginschlosnaidMBjF MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j.F %https://api.github.com/users/schlosnaj<F https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj$F }(jAF schlosnajCF MBjF MDQ6VXNlcjU0NTk0jEF 1https://avatars.githubusercontent.com/u/54594?v=4jGF h5j.F %https://api.github.com/users/schlosnaj<F https://github.com/schlosnajJF /https://api.github.com/users/schlosna/followersjLF <https://api.github.com/users/schlosna/following{/other_user}jNF 5https://api.github.com/users/schlosna/gists{/gist_id}jPF <https://api.github.com/users/schlosna/starred{/owner}{/repo}jRF 3https://api.github.com/users/schlosna/subscriptionsjTF *https://api.github.com/users/schlosna/orgsjVF +https://api.github.com/users/schlosna/reposjXF 6https://api.github.com/users/schlosna/events{/privacy}jZF 5https://api.github.com/users/schlosna/received_eventsj\F Userj^F uparents]}(jF (9658c3484a7f6cc9662a4110f904e36d5a6948dbj.F ^https://api.github.com/repos/palantir/atlasdb/commits/9658c3484a7f6cc9662a4110f904e36d5a6948dbj<F Shttps://github.com/palantir/atlasdb/commit/9658c3484a7f6cc9662a4110f904e36d5a6948dbuastats}(totalK	additionsK	deletionsKufiles]}(jF (473d85d8410eb6afff14e536910bcdc893df9991filenameOatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/CommitTsCache.javastatusmodifiedjxF KjyF KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/d401692960c388c5b5c43b56e337a64ff540fd50/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FCommitTsCache.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d401692960c388c5b5c43b56e337a64ff540fd50/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FCommitTsCache.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FCommitTsCache.java?ref=d401692960c388c5b5c43b56e337a64ff540fd50patchXK  @@ -25,7 +25,7 @@
 
 public final class CommitTsCache {
     private static final Long ONE_MILLION = 1_000_000L;
-    private LoadingCache<Long, Long> cache;
+    private final LoadingCache<Long, Long> cache;
 
     private CommitTsCache(TransactionService transactionService, long maxSize) {
         cache = Caffeine.newBuilder()uau(81c62a69f33bbea116e4a7c5eda88a999cd696ca}(sha(81c62a69f33bbea116e4a7c5eda88a999cd696canode_idEC_kwDOAjP5fdoAKDgxYzYyYTY5ZjMzYmJlYTExNmU0YTdjNWVkYTg4YTk5OWNkNjk2Y2Ecommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-18T10:52:48Zu	committer}(jF 
Sam KramerjF skramer@palantir.comjF 2023-04-18T10:52:48Zumessagemake things prettiertree}(jF (627cf71864fe28c923cbeb740b4bbc2e62d42d73url`https://api.github.com/repos/palantir/atlasdb/git/trees/627cf71864fe28c923cbeb740b4bbc2e62d42d73ujF bhttps://api.github.com/repos/palantir/atlasdb/git/commits/81c62a69f33bbea116e4a7c5eda88a999cd696ca
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ+doAACgkQmPPOpKR4
XS0/dwf8CJx+p4qireWL/qrYCveZPHV13SgdBqbSdmuH1QfDBXHnJxF1m2ubOdiO
86J2tJ6xAobJMCRv7j8z4mWk0BL16Y1OsgG6Iggdgje+NyDwr7eC+xMjaMmQqAQF
2iDq4ca7NFtZ8iKk3BWupOGjLx+JOUe/ACZvl1cl4rT84q4BWO36adDmjXsuK6+3
YZVaXkel4kpXTK20OndKllMJ4oQ1KYa8P/QAkuyVcEzKYatbccacPjDVv5EpyLZX
yqu162/Tf/dwPvUi5KEjGuDLpez/VJiOGFGISwKsfkglILJbe1ChiL51/QBvZcur
8hZ+VgHq7JzcSXic0Z7pDsU92vQ/uA==
=fQFI
-----END PGP SIGNATURE-----payloadtree 627cf71864fe28c923cbeb740b4bbc2e62d42d73
parent 7113edf204356f494a787ab259575b5ba9132076
author Sam Kramer <skramer@palantir.com> 1681815168 +0100
committer Sam Kramer <skramer@palantir.com> 1681815168 +0100

make things prettier
uujF ^https://api.github.com/repos/palantir/atlasdb/commits/81c62a69f33bbea116e4a7c5eda88a999cd696cahtml_urlShttps://github.com/palantir/atlasdb/commit/81c62a69f33bbea116e4a7c5eda88a999cd696cacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/81c62a69f33bbea116e4a7c5eda88a999cd696ca/commentsjF }(login
Sam-KrameridJ^2_ jF MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jF 'https://api.github.com/users/Sam-KramerjF https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujF }(jF 
Sam-KramerjF J^2_ jF MDQ6VXNlcjYyMzg4MTQ=jF 3https://avatars.githubusercontent.com/u/6238814?v=4jF h5jF 'https://api.github.com/users/Sam-KramerjF https://github.com/Sam-KramerjF 1https://api.github.com/users/Sam-Kramer/followersjF >https://api.github.com/users/Sam-Kramer/following{/other_user}jF 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jF >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jF 5https://api.github.com/users/Sam-Kramer/subscriptionsjF ,https://api.github.com/users/Sam-Kramer/orgsjF -https://api.github.com/users/Sam-Kramer/reposjF 8https://api.github.com/users/Sam-Kramer/events{/privacy}jF 7https://api.github.com/users/Sam-Kramer/received_eventsjF UserjF uparents]}(jF (7113edf204356f494a787ab259575b5ba9132076jF ^https://api.github.com/repos/palantir/atlasdb/commits/7113edf204356f494a787ab259575b5ba9132076jF Shttps://github.com/palantir/atlasdb/commit/7113edf204356f494a787ab259575b5ba9132076uastats}(totalK	additionsK	deletionsK	ufiles](}(jF (b7485353a77f6bf0cd6c937bff58416577e13b1dfilename(atlasdb-workload-server-api/build.gradlestatusmodifiedjF KjF K changesKblob_url|https://github.com/palantir/atlasdb/blob/81c62a69f33bbea116e4a7c5eda88a999cd696ca/atlasdb-workload-server-api%2Fbuild.gradleraw_url{https://github.com/palantir/atlasdb/raw/81c62a69f33bbea116e4a7c5eda88a999cd696ca/atlasdb-workload-server-api%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fbuild.gradle?ref=81c62a69f33bbea116e4a7c5eda88a999cd696capatch@@ -13,4 +13,5 @@ dependencies {
     annotationProcessor 'org.immutables:value'
 
     testImplementation 'com.palantir.safe-logging:preconditions-assertj'
+    testImplementation 'org.mockito:mockito-core'
 }
\ No newline at end of fileu}(jF (085f2c79321435dcc1771512bd58672a77aff8eajF |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransaction.javajF modifiedjF KjF K jF KjF https://github.com/palantir/atlasdb/blob/81c62a69f33bbea116e4a7c5eda88a999cd696ca/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javajF https://github.com/palantir/atlasdb/raw/81c62a69f33bbea116e4a7c5eda88a999cd696ca/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.java?ref=81c62a69f33bbea116e4a7c5eda88a999cd696caj G X  @@ -41,4 +41,12 @@ default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
     static ImmutableMaybeWitnessedTransaction.Builder builder() {
         return ImmutableMaybeWitnessedTransaction.builder();
     }
+
+    default FullyWitnessedTransaction toFullyWitnessed() {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(startTimestamp())
+                .commitTimestamp(commitTimestamp())
+                .actions(actions())
+                .build();
+    }
 }u}(jF (43763dc1df1edd6a0501f594df2422166842cd84jF atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javajF addedjF KAjF K jF KAjF https://github.com/palantir/atlasdb/blob/81c62a69f33bbea116e4a7c5eda88a999cd696ca/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javajF https://github.com/palantir/atlasdb/raw/81c62a69f33bbea116e4a7c5eda88a999cd696ca/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=81c62a69f33bbea116e4a7c5eda88a999cd696caj G X  @@ -0,0 +1,65 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+import static org.mockito.Mockito.mock;
+
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import org.junit.Test;
+
+public class MaybeWitnessedTransactionTest {
+
+    private static final Long START_TIMESTAMP = 100L;
+    private static final Long COMMIT_TIMESTAMP = 200L;
+
+    @Test
+    public void throwsWhenCommitTimestampIsNotPresent() {
+        assertThatLoggableExceptionThrownBy(() ->
+                        MaybeWitnessedTransaction.builder().startTimestamp(100L).build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Commit timestamp must be present in a potentially witnessed transaction");
+    }
+
+    @Test
+    public void doesNotThrowWhenCommitTimestampPresent() {
+        assertThatCode(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .commitTimestamp(COMMIT_TIMESTAMP)
+                        .build())
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void toFullyWitnessedCopiesArgumentsCorrectly() {
+        WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
+        WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
+        List<WitnessedTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
+        FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
+                .startTimestamp(START_TIMESTAMP)
+                .commitTimestamp(COMMIT_TIMESTAMP)
+                .actions(actions)
+                .build()
+                .toFullyWitnessed();
+        assertThat(fullyWitnessedTransaction.startTimestamp()).isEqualTo(START_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.commitTimestamp()).contains(COMMIT_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.actions()).containsExactlyElementsOf(actions);
+    }
+}u}(jF (82957f1826b8c30949eae50ec0e1eeb25a949ffajF atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitor.javajF renamedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/81c62a69f33bbea116e4a7c5eda88a999cd696ca/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javajF https://github.com/palantir/atlasdb/raw/81c62a69f33bbea116e4a7c5eda88a999cd696ca/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.java?ref=81c62a69f33bbea116e4a7c5eda88a999cd696caj G X  @@ -14,21 +14,17 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.workload.workflow;
+package com.palantir.atlasdb.workload.transaction.witnessed;
 
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionVisitor;
 import java.util.Optional;
 
-public final class DefaultWitnessedTransactionVisitor
+public final class OnlyCommittedWitnessedTransactionVisitor
         implements WitnessedTransactionVisitor<Optional<WitnessedTransaction>> {
 
     private final ReadOnlyTransactionStore readOnlyTransactionStore;
 
-    public DefaultWitnessedTransactionVisitor(ReadOnlyTransactionStore readOnlyTransactionStore) {
+    public OnlyCommittedWitnessedTransactionVisitor(ReadOnlyTransactionStore readOnlyTransactionStore) {
         this.readOnlyTransactionStore = readOnlyTransactionStore;
     }
 
@@ -40,7 +36,7 @@ public Optional<WitnessedTransaction> visit(FullyWitnessedTransaction witnessedT
     @Override
     public Optional<WitnessedTransaction> visit(MaybeWitnessedTransaction maybeWitnessedTransaction) {
         return readOnlyTransactionStore.isCommitted(maybeWitnessedTransaction.startTimestamp())
-                ? Optional.of(maybeWitnessedTransaction)
+                ? Optional.of(maybeWitnessedTransaction.toFullyWitnessed())
                 : Optional.empty();
     }
 }previous_filenametatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWitnessedTransactionVisitor.javau}(jF (47fb792c903d1c81fd59b9222e2ccce1d5de6b12jF aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javajF modifiedjF KjF KjF KjF https://github.com/palantir/atlasdb/blob/81c62a69f33bbea116e4a7c5eda88a999cd696ca/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajF https://github.com/palantir/atlasdb/raw/81c62a69f33bbea116e4a7c5eda88a999cd696ca/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=81c62a69f33bbea116e4a7c5eda88a999cd696caj G X  @@ -20,6 +20,7 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.OnlyCommittedWitnessedTransactionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import java.util.Comparator;
@@ -84,7 +85,8 @@ private List<WitnessedTransaction> runTransactionTask() {
      */
     @VisibleForTesting
     List<WitnessedTransaction> sortAndFilterTransactions(List<WitnessedTransaction> unorderedTransactions) {
-        DefaultWitnessedTransactionVisitor visitor = new DefaultWitnessedTransactionVisitor(readOnlyTransactionStore);
+        OnlyCommittedWitnessedTransactionVisitor visitor =
+                new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
         return StreamEx.of(unorderedTransactions)
                 .mapPartial(transaction -> transaction.accept(visitor))
                 .sorted(Comparator.comparingLong(DefaultWorkflow::effectiveTimestamp))u}(jF (c56abb3226a9ce90f2d653377b711f97f86d6f5fjF atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitorTest.javajF addedjF K@jF K jF K@jF https://github.com/palantir/atlasdb/blob/81c62a69f33bbea116e4a7c5eda88a999cd696ca/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javajF https://github.com/palantir/atlasdb/raw/81c62a69f33bbea116e4a7c5eda88a999cd696ca/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javajF X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.java?ref=81c62a69f33bbea116e4a7c5eda88a999cd696caj G X
  @@ -0,0 +1,64 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyLong;
+import static org.mockito.Mockito.when;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class OnlyCommittedWitnessedTransactionVisitorTest {
+
+    private static final FullyWitnessedTransaction READ_ONLY_WITNESSED_TRANSACTION =
+            FullyWitnessedTransaction.builder().startTimestamp(100L).build();
+
+    private static final MaybeWitnessedTransaction MAYBE_WITNESSED_TRANSACTION = MaybeWitnessedTransaction.builder()
+            .startTimestamp(100L)
+            .commitTimestamp(100L)
+            .build();
+
+    @Mock
+    private ReadOnlyTransactionStore transactionStore;
+
+    @Test
+    public void fullyCommittedTransactionsAreNeverChecked() {
+        when(transactionStore.isCommitted(anyLong())).thenThrow(new RuntimeException());
+        assertThat(READ_ONLY_WITNESSED_TRANSACTION.accept(
+                        new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(READ_ONLY_WITNESSED_TRANSACTION);
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsEmptyWhenNotCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(false);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .isEmpty();
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsWhenCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(true);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(MAYBE_WITNESSED_TRANSACTION.toFullyWitnessed());
+    }
+}ueu(f4fb5e1383b7fa0a444f54f9883b98a5a8e55494}(sha(f4fb5e1383b7fa0a444f54f9883b98a5a8e55494node_idEC_kwDOAjP5fdoAKGY0ZmI1ZTEzODNiN2ZhMGE0NDRmNTRmOTg4M2I5OGE1YThlNTU0OTQcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-07-24T15:00:17Zu	committer}(j6G svc-autoreleasej8G -pd-foundry-infrastructure-notify@palantir.comj:G 2023-07-24T15:00:17ZumessageAutorelease 0.902.0

[skip ci]tree}(j.G (62f5de82025943042d4b6c8c85f731bb7c753412url`https://api.github.com/repos/palantir/atlasdb/git/trees/62f5de82025943042d4b6c8c85f731bb7c753412ujFG bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f4fb5e1383b7fa0a444f54f9883b98a5a8e55494
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmS+kgYACgkQhbrR8ip7mDBiMAD/b/A3JiV+1UFwAHddLZFj926V
A2I7Jars7XEbTZ8gXqIA/RbalnTy+QQ29xxjKP1NHIe9uiMFWv7LDdzXW4wwPdHF
=DSIO
-----END PGP SIGNATURE-----
payloadX0  tree 62f5de82025943042d4b6c8c85f731bb7c753412
parent 01e15d4e137d34495e6f00820689da84865d263e
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1690210817 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1690210817 +0000

Autorelease 0.902.0

[skip ci]uujFG ^https://api.github.com/repos/palantir/atlasdb/commits/f4fb5e1383b7fa0a444f54f9883b98a5a8e55494html_urlShttps://github.com/palantir/atlasdb/commit/f4fb5e1383b7fa0a444f54f9883b98a5a8e55494comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f4fb5e1383b7fa0a444f54f9883b98a5a8e55494/commentsj4G }(loginsvc-autoreleaseidJ(j0G MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5jFG ,https://api.github.com/users/svc-autoreleasejTG "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj<G }(jYG svc-autoreleasej[G J(j0G MDQ6VXNlcjUxNzE4MzQ2j]G 4https://avatars.githubusercontent.com/u/51718346?v=4j_G h5jFG ,https://api.github.com/users/svc-autoreleasejTG "https://github.com/svc-autoreleasejbG 6https://api.github.com/users/svc-autorelease/followersjdG Chttps://api.github.com/users/svc-autorelease/following{/other_user}jfG <https://api.github.com/users/svc-autorelease/gists{/gist_id}jhG Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jjG :https://api.github.com/users/svc-autorelease/subscriptionsjlG 1https://api.github.com/users/svc-autorelease/orgsjnG 2https://api.github.com/users/svc-autorelease/reposjpG =https://api.github.com/users/svc-autorelease/events{/privacy}jrG <https://api.github.com/users/svc-autorelease/received_eventsjtG UserjvG uparents]}(j.G (01e15d4e137d34495e6f00820689da84865d263ejFG ^https://api.github.com/repos/palantir/atlasdb/commits/01e15d4e137d34495e6f00820689da84865d263ejTG Shttps://github.com/palantir/atlasdb/commit/01e15d4e137d34495e6f00820689da84865d263euastats}(totalK 	additionsK 	deletionsK ufiles]}(j.G (fee58d12969ff103787c5364360b6099175e95ebfilename changelog/0.902.0/pr-6678.v2.ymlstatusrenamedjG K jG K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/f4fb5e1383b7fa0a444f54f9883b98a5a8e55494/changelog%2F0.902.0%2Fpr-6678.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/f4fb5e1383b7fa0a444f54f9883b98a5a8e55494/changelog%2F0.902.0%2Fpr-6678.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.902.0%2Fpr-6678.v2.yml?ref=f4fb5e1383b7fa0a444f54f9883b98a5a8e55494previous_filename$changelog/@unreleased/pr-6678.v2.ymluau(0ff89edc257a9bea60c56ec84af51905c8eabea7}(sha(0ff89edc257a9bea60c56ec84af51905c8eabea7node_idEC_kwDOAjP5fdoAKDBmZjg5ZWRjMjU3YTliZWE2MGM1NmVjODRhZjUxOTA1YzhlYWJlYTccommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T15:51:47Zu	committer}(jG 
Ahmed AlouanejG aalouane@palantir.comjG 2023-05-15T15:51:47Zumessageruntree}(jG (7a7e93e03c1d6889afecc647e5d389aeeb92a4e5url`https://api.github.com/repos/palantir/atlasdb/git/trees/7a7e93e03c1d6889afecc647e5d389aeeb92a4e5ujG bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0ff89edc257a9bea60c56ec84af51905c8eabea7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiVRQACgkQPlMHVIT1
yhopPQgAhfMs0FUVv1isBwD/xZSidLsIBHq/SPtGL+0jVHPc+dSmZj7GKtDfvEtP
xNBTP4OPSOby5zMLJgSH1e8tKg5qK71vp+GksnBAQd5OWkLNCgq0JhV+Zlgomro+
W2q8IEDVx9KEMxZjYd52xC3Tn0fk6uiXbITT/GWdPeZvcX9H1Kt+FTTlYV0AKYCP
nueeDg8BkGmtRzKmPdvkoNYsnvpqvv/g84dsc6g313IYIbSUQ0wLXp4yCYU6L/yj
idMQVW4YVcl+4yEiUUXaHkowAVg0RWR3BVaRvr3/9meDuSmOJ4zUQqYfEJY04HJu
k4Vrg2SJ5RYWKs6YevH7a/QyGp6vxQ==
=YtCW
-----END PGP SIGNATURE-----payloadtree 7a7e93e03c1d6889afecc647e5d389aeeb92a4e5
parent 9832b147b793579477ca7c67a684391431722e28
author Ahmed Alouane <aalouane@palantir.com> 1684165907 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684165907 +0100

run
uujG ^https://api.github.com/repos/palantir/atlasdb/commits/0ff89edc257a9bea60c56ec84af51905c8eabea7html_urlShttps://github.com/palantir/atlasdb/commit/0ff89edc257a9bea60c56ec84af51905c8eabea7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0ff89edc257a9bea60c56ec84af51905c8eabea7/commentsjG }(loginergo14idJjG MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jG #https://api.github.com/users/ergo14jG https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujG }(jG ergo14jG JjG MDQ6VXNlcjMwOTAzNzM2jG 4https://avatars.githubusercontent.com/u/30903736?v=4jG h5jG #https://api.github.com/users/ergo14jG https://github.com/ergo14jG -https://api.github.com/users/ergo14/followersjG :https://api.github.com/users/ergo14/following{/other_user}jG 3https://api.github.com/users/ergo14/gists{/gist_id}jG :https://api.github.com/users/ergo14/starred{/owner}{/repo}jG 1https://api.github.com/users/ergo14/subscriptionsjG (https://api.github.com/users/ergo14/orgsjG )https://api.github.com/users/ergo14/reposjG 4https://api.github.com/users/ergo14/events{/privacy}jG 3https://api.github.com/users/ergo14/received_eventsjG UserjG uparents]}(jG (9832b147b793579477ca7c67a684391431722e28jG ^https://api.github.com/repos/palantir/atlasdb/commits/9832b147b793579477ca7c67a684391431722e28jG Shttps://github.com/palantir/atlasdb/commit/9832b147b793579477ca7c67a684391431722e28uastats}(totalK	additionsK	deletionsKufiles]}(jG (1ee57a4acd83ea2de1ccbd3965d20927dd01768efilename.circleci/config.ymlstatusmodifiedjH KjH KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/0ff89edc257a9bea60c56ec84af51905c8eabea7/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/0ff89edc257a9bea60c56ec84af51905c8eabea7/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=0ff89edc257a9bea60c56ec84af51905c8eabea7patchX  @@ -123,7 +123,7 @@ jobs:
             # hack - notion of "owners" isn't supported in Circle 2
             if [ $CIRCLE_PROJECT_USERNAME = 'palantir' ] && [ -z $CIRCLE_PR_NUMBER ]; then
               git status
-              ./gradlew --scan --profile --stacktrace --continue publish
+              ./gradlew --scan --continue publish
             fi
       - run:
           command: |uau(a09d8128a2b8dcd394c3194f2f573a06180a9bbb}(sha(a09d8128a2b8dcd394c3194f2f573a06180a9bbbnode_idEC_kwDOAjP5fdoAKGEwOWQ4MTI4YTJiOGRjZDM5NGMzMTk0ZjJmNTczYTA2MTgwYTliYmIcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-04-27T20:19:58Zu	committer}(j$H 
svc-changelogj&H svc-changelog@palantir.comj(H 2023-04-27T20:19:58ZumessageAdd generated changelog entriestree}(jH (c4e5e1e52a7d82e6fb5378d3ad7660847e218595url`https://api.github.com/repos/palantir/atlasdb/git/trees/c4e5e1e52a7d82e6fb5378d3ad7660847e218595uj4H bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a09d8128a2b8dcd394c3194f2f573a06180a9bbb
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmRK2O4JEHYaJX37fAFQAAAcWwEArABN8nLFnqIDTp4Le8tnM8Xs
aMqXjS4XCIdjeOPRrgwA/jhOrARiIhUmgwnIt5nOqZ347HBgiWyjadfctUE8ZsXZ
=tmAM
-----END PGP SIGNATURE-----payloadX  tree c4e5e1e52a7d82e6fb5378d3ad7660847e218595
parent 057f133ed21fc0078b824d45ce0da6d1646b69b8
author svc-changelog <svc-changelog@palantir.com> 1682626798 +0000
committer svc-changelog <svc-changelog@palantir.com> 1682626798 +0000

Add generated changelog entriesuuj4H ^https://api.github.com/repos/palantir/atlasdb/commits/a09d8128a2b8dcd394c3194f2f573a06180a9bbbhtml_urlShttps://github.com/palantir/atlasdb/commit/a09d8128a2b8dcd394c3194f2f573a06180a9bbbcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a09d8128a2b8dcd394c3194f2f573a06180a9bbb/commentsj"H }(login
svc-changelogidJ#jH MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j4H *https://api.github.com/users/svc-changelogjBH  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj*H }(jGH 
svc-changelogjIH J#jH MDQ6VXNlcjg0MDc3NjAzjKH 4https://avatars.githubusercontent.com/u/84077603?v=4jMH h5j4H *https://api.github.com/users/svc-changelogjBH  https://github.com/svc-changelogjPH 4https://api.github.com/users/svc-changelog/followersjRH Ahttps://api.github.com/users/svc-changelog/following{/other_user}jTH :https://api.github.com/users/svc-changelog/gists{/gist_id}jVH Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jXH 8https://api.github.com/users/svc-changelog/subscriptionsjZH /https://api.github.com/users/svc-changelog/orgsj\H 0https://api.github.com/users/svc-changelog/reposj^H ;https://api.github.com/users/svc-changelog/events{/privacy}j`H :https://api.github.com/users/svc-changelog/received_eventsjbH UserjdH uparents]}(jH (057f133ed21fc0078b824d45ce0da6d1646b69b8j4H ^https://api.github.com/repos/palantir/atlasdb/commits/057f133ed21fc0078b824d45ce0da6d1646b69b8jBH Shttps://github.com/palantir/atlasdb/commit/057f133ed21fc0078b824d45ce0da6d1646b69b8uastats}(totalK	additionsK	deletionsK ufiles]}(jH (23134b9e8533848c590920b5b3a3ff99b19db234filename$changelog/@unreleased/pr-6551.v2.ymlstatusaddedj~H KjH K changesKblob_url|https://github.com/palantir/atlasdb/blob/a09d8128a2b8dcd394c3194f2f573a06180a9bbb/changelog%2F%40unreleased%2Fpr-6551.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/a09d8128a2b8dcd394c3194f2f573a06180a9bbb/changelog%2F%40unreleased%2Fpr-6551.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6551.v2.yml?ref=a09d8128a2b8dcd394c3194f2f573a06180a9bbbpatch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Display as safe arg the failureCount in the "Could not lock successfully"
+  links:
+  - https://github.com/palantir/atlasdb/pull/6551uau(899d6f697e47528c580c9f890d80f3b9d6f9db90}(sha(899d6f697e47528c580c9f890d80f3b9d6f9db90node_idEC_kwDOAjP5fdoAKDg5OWQ2ZjY5N2U0NzUyOGM1ODBjOWY4OTBkODBmM2I5ZDZmOWRiOTAcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-15T19:12:22Zu	committer}(jH Jeremy KongjH jkong@palantir.comjH 2023-06-15T19:12:22Zumessage
suspicioustree}(jH (93be97b4b936a262c789c01d12ea5a12e0c78b1durl`https://api.github.com/repos/palantir/atlasdb/git/trees/93be97b4b936a262c789c01d12ea5a12e0c78b1dujH bhttps://api.github.com/repos/palantir/atlasdb/git/commits/899d6f697e47528c580c9f890d80f3b9d6f9db90
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSLYpcACgkQTLdFKain
zjzbTggAkm5oCufjifA8fLun4cQsUOz3zrpoaRCgRXZFVtVO46FOzJQ0ZsS60EYH
4gIppjRxQDPMstUonxcIUd5itLUBCu1yRS6lYyhP/QjQAzDs/cPe5ffi4Wg/HL90
iBZOHYZ869OqQUYVaBeFoDHIlZgLJIKLjwqde6uirf4i8QF9m1IGycRmvl4DYVKk
Ql23I3U3mic5xZKzK6iLwiCkQXZL+69S+XHkyBOkUYB4gm91LOqIdycKYy3tHiT/
RhakxSdjwkUQbzxp0qfyLg98xpwUSSDpInrE6AMlw7ga0iL+RM6fP3MpKBLJC8FP
8g7IHMOMkzO16fSwYduzx7j6/2rAeQ==
=P/7x
-----END PGP SIGNATURE-----      payloadtree 93be97b4b936a262c789c01d12ea5a12e0c78b1d
parent 0fd7eb2ee28662c5cba00f8d21a79d6bc9e25916
author Jeremy Kong <jkong@palantir.com> 1686856342 +0800
committer Jeremy Kong <jkong@palantir.com> 1686856342 +0800

suspicious
uujH ^https://api.github.com/repos/palantir/atlasdb/commits/899d6f697e47528c580c9f890d80f3b9d6f9db90html_urlShttps://github.com/palantir/atlasdb/commit/899d6f697e47528c580c9f890d80f3b9d6f9db90comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/899d6f697e47528c580c9f890d80f3b9d6f9db90/commentsjH }(login
jeremyk-91idJZ jH MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jH 'https://api.github.com/users/jeremyk-91jH https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujH }(jH 
jeremyk-91jH JZ jH MDQ6VXNlcjU5NTU1MTA=jH 3https://avatars.githubusercontent.com/u/5955510?v=4jH h5jH 'https://api.github.com/users/jeremyk-91jH https://github.com/jeremyk-91jH 1https://api.github.com/users/jeremyk-91/followersjH >https://api.github.com/users/jeremyk-91/following{/other_user}jH 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jH >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jH 5https://api.github.com/users/jeremyk-91/subscriptionsjH ,https://api.github.com/users/jeremyk-91/orgsjH -https://api.github.com/users/jeremyk-91/reposjH 8https://api.github.com/users/jeremyk-91/events{/privacy}jH 7https://api.github.com/users/jeremyk-91/received_eventsjH UserjH uparents]}(jH (0fd7eb2ee28662c5cba00f8d21a79d6bc9e25916jH ^https://api.github.com/repos/palantir/atlasdb/commits/0fd7eb2ee28662c5cba00f8d21a79d6bc9e25916jH Shttps://github.com/palantir/atlasdb/commit/0fd7eb2ee28662c5cba00f8d21a79d6bc9e25916uastats}(totalK
	additionsK	deletionsKufiles]}(jH (243d67319c838c836494fcf35a05649556ee7a66filenamelatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javastatusmodifiedjH KjH KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/899d6f697e47528c580c9f890d80f3b9d6f9db90/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/899d6f697e47528c580c9f890d80f3b9d6f9db90/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=899d6f697e47528c580c9f890d80f3b9d6f9db90patchXT  @@ -86,7 +86,7 @@ private static Optional<WitnessedTransaction> run(
             Map<Integer, Integer> tableState =
                     values.stream().collect(Collectors.toMap(ColumnValue::column, ColumnValue::value));
             if (tableState.size() != 1) {
-                log.error("Wrong number of values found in table state {}", SafeArg.of("tableState", tableState));
+                log.error("Detected transactions that violated our serializable isolation invariant {}", SafeArg.of("tableState", tableState));
             }
 
             if (tableState.containsKey(FIRST_COLUMN)) {
@@ -123,11 +123,11 @@ static boolean shouldWriteToFirstCell(int taskIndex) {
     private static List<TransactionAction> createCellUpdateActions(int taskIndex, String tableName) {
         return shouldWriteToFirstCell(taskIndex)
                 ? ImmutableList.of(
-                        WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
-                        DeleteTransactionAction.of(tableName, SECOND_CELL))
+                WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
+                DeleteTransactionAction.of(tableName, SECOND_CELL))
                 : ImmutableList.of(
-                        DeleteTransactionAction.of(tableName, FIRST_CELL),
-                        WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
+                DeleteTransactionAction.of(tableName, FIRST_CELL),
+                WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
     }
 
     private static List<TransactionAction> createCellReadActions(String tableName) {uau(db330d5402a4d813ef1443fb30fc346b40ccd863}(sha(db330d5402a4d813ef1443fb30fc346b40ccd863node_idEC_kwDOAjP5fdoAKGRiMzMwZDU0MDJhNGQ4MTNlZjE0NDNmYjMwZmMzNDZiNDBjY2Q4NjMcommit}(author}(nameLucas Sousa Meirelesemailmeireles31@msn.comdate2023-07-06T12:24:29Zu	committer}(jI GitHubjI noreply@github.comjI 2023-07-06T12:24:29ZumessagelLog when considering skipping immutable timestamp lock for exhaustive read on thoroughly swept table (#6657)tree}(j
I (8635b47cb10b3d4066ce56dc83a142d1bdd5dbbeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/8635b47cb10b3d4066ce56dc83a142d1bdd5dbbeuj"I bhttps://api.github.com/repos/palantir/atlasdb/git/commits/db330d5402a4d813ef1443fb30fc346b40ccd863
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkprJ9CRBK7hj4Ov3rIwAAEzIIAHMXCBXkrEe66l4SOv2clfxX
kknQU4ZlRbTkNRlXjgkT5/Zr/Ax29UlmBCRvJsouQ9/kdK9BBDsBVWLJ/wLss2h6
wVl8cmcgP3tqLFRoxeP1NxjcldKNY+RoBg2V0YPsex+84msTJ4cz6xd6vGeXzetO
seAIthVQEO2AqC9WBBx1vqdl9XCZbObpUUHOFXyhBrbWjZXNgi/8cLQXxNM2NKb4
VW5emcD43UIwx3X875ZuM1oQFQO8NRsmtM7zNymeTjuyeaqXRY7pM1fOoJnb9VdJ
xGQ4b8dxFWViVb+p0Evo0lp96zsX7ofwCY6Ko56QPZ+bqLKVYVHgfCZ7AKVmubo=
=gZv0
-----END PGP SIGNATURE-----
payloadXG  tree 8635b47cb10b3d4066ce56dc83a142d1bdd5dbbe
parent ce5995e9c0f0098e6cff531d1e687c682e7052f3
author Lucas Sousa Meireles <meireles31@msn.com> 1688646269 +0100
committer GitHub <noreply@github.com> 1688646269 +0000

Log when considering skipping immutable timestamp lock for exhaustive read on thoroughly swept table (#6657)

 uuj"I ^https://api.github.com/repos/palantir/atlasdb/commits/db330d5402a4d813ef1443fb30fc346b40ccd863html_urlShttps://github.com/palantir/atlasdb/commit/db330d5402a4d813ef1443fb30fc346b40ccd863comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/db330d5402a4d813ef1443fb30fc346b40ccd863/commentsjI }(loginLucasIMEidJg jI MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j"I %https://api.github.com/users/LucasIMEj0I https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujI }(j5I web-flowj7I J/jI MDQ6VXNlcjE5ODY0NDQ3j9I 4https://avatars.githubusercontent.com/u/19864447?v=4j;I h5j"I %https://api.github.com/users/web-flowj0I https://github.com/web-flowj>I /https://api.github.com/users/web-flow/followersj@I <https://api.github.com/users/web-flow/following{/other_user}jBI 5https://api.github.com/users/web-flow/gists{/gist_id}jDI <https://api.github.com/users/web-flow/starred{/owner}{/repo}jFI 3https://api.github.com/users/web-flow/subscriptionsjHI *https://api.github.com/users/web-flow/orgsjJI +https://api.github.com/users/web-flow/reposjLI 6https://api.github.com/users/web-flow/events{/privacy}jNI 5https://api.github.com/users/web-flow/received_eventsjPI UserjRI uparents]}(j
I (ce5995e9c0f0098e6cff531d1e687c682e7052f3j"I ^https://api.github.com/repos/palantir/atlasdb/commits/ce5995e9c0f0098e6cff531d1e687c682e7052f3j0I Shttps://github.com/palantir/atlasdb/commit/ce5995e9c0f0098e6cff531d1e687c682e7052f3uastats}(totalK	additionsK	deletionsKufiles]}(j
I (847dac9582377f857ea51d134c9d257b2a221cb0filenameVatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javastatusmodifiedjlI KjmI KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/db330d5402a4d813ef1443fb30fc346b40ccd863/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javaraw_urlhttps://github.com/palantir/atlasdb/raw/db330d5402a4d813ef1443fb30fc346b40ccd863/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=db330d5402a4d813ef1443fb30fc346b40ccd863patchX  @@ -20,6 +20,8 @@
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.Optional;
 
 /**
@@ -29,6 +31,8 @@
  */
 public final class SweepStrategy {
 
+    private static final SafeLogger log = SafeLoggerFactory.get(SweepStrategy.class);
+
     public static final SweepStrategy CONSERVATIVE =
             new SweepStrategy(Optional.of(SweeperStrategy.CONSERVATIVE), false, false);
     public static final SweepStrategy THOROUGH = new SweepStrategy(Optional.of(SweeperStrategy.THOROUGH), false, true);
@@ -54,9 +58,19 @@ public Optional<SweeperStrategy> getSweeperStrategy() {
     }
 
     public boolean mustCheckImmutableLock(boolean allPossibleCellsReandAndPresent) {
-        return allPossibleCellsReandAndPresent
+        boolean mustCheckLock = allPossibleCellsReandAndPresent
                 ? mustCheckImmutableLockIfAllCellsReadAndPresent
                 : mustCheckImmutableLockIfNonExhaustiveRead;
+
+        if (log.isDebugEnabled() && !mustCheckLock && isConfiguredWithThoroughSweep()) {
+            log.debug("Can skip immutable timestamp lock on thoroughly swept table due to making exhaustive read");
+        }
+
+        return mustCheckLock;
+    }
+
+    private boolean isConfiguredWithThoroughSweep() {
+        return getSweeperStrategy().isPresent() && getSweeperStrategy().get().equals(SweeperStrategy.THOROUGH);
     }
 
     public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {uau(9b0016f5bcb9d39086579802e596376b8285236d}(sha(9b0016f5bcb9d39086579802e596376b8285236dnode_idEC_kwDOAjP5fdoAKDliMDAxNmY1YmNiOWQzOTA4NjU3OTgwMmU1OTYzNzZiODI4NTIzNmQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-03T15:05:07Zu	committer}(jI Jeremy KongjI jkong@palantir.comjI 2023-07-03T15:05:07Zumessagespotless applytree}(jI (cb106cec1be6b2c5cf5dbd9670f1ba02ce966fa2url`https://api.github.com/repos/palantir/atlasdb/git/trees/cb106cec1be6b2c5cf5dbd9670f1ba02ce966fa2ujI bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9b0016f5bcb9d39086579802e596376b8285236d
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSi46MACgkQTLdFKain
zjxUQgf/co8cpT6a+AZPW03yMTrPvSQWyJK8CtKniiCzUuHRm1gMlVCzS6ZO1sv7
NciIBvn32qoPndnr+Pn7+onot5l7MdQ5faAeZb4lObfawtPJh7vfSU8jRtPbpewf
m8mUvCHhwNeSSSxTE2hZLr8BZFkrpgYGgGvkSkK10u2afHJwU1PL01V3C9fGKiQV
DdyJSisnc8bEy8bHTdKP5/9o1rPl+OdpMRuI9Etxa5ls6r1iZ4FebPFSRclWm5bU
z/+Tm/uLuc9ecs3O3WwmLxWGI0L1qZ0AYCeM9On3zE6vax+ibdNkD86DO4zKpkmc
nTDRknP1FgEzrk+LE6kF2fbouYWQSg==
=uvnP
-----END PGP SIGNATURE-----payloadtree cb106cec1be6b2c5cf5dbd9670f1ba02ce966fa2
parent 3ba9f37035dab2d33ff59619a23f2114a307e3f3
author Jeremy Kong <jkong@palantir.com> 1688396707 +0100
committer Jeremy Kong <jkong@palantir.com> 1688396707 +0100

spotless apply
uujI ^https://api.github.com/repos/palantir/atlasdb/commits/9b0016f5bcb9d39086579802e596376b8285236dhtml_urlShttps://github.com/palantir/atlasdb/commit/9b0016f5bcb9d39086579802e596376b8285236dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9b0016f5bcb9d39086579802e596376b8285236d/commentsjI }(login
jeremyk-91idJZ jI MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jI 'https://api.github.com/users/jeremyk-91jI https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujI }(jI 
jeremyk-91jI JZ jI MDQ6VXNlcjU5NTU1MTA=jI 3https://avatars.githubusercontent.com/u/5955510?v=4jI h5jI 'https://api.github.com/users/jeremyk-91jI https://github.com/jeremyk-91jI 1https://api.github.com/users/jeremyk-91/followersjI >https://api.github.com/users/jeremyk-91/following{/other_user}jI 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jI >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jI 5https://api.github.com/users/jeremyk-91/subscriptionsjI ,https://api.github.com/users/jeremyk-91/orgsjI -https://api.github.com/users/jeremyk-91/reposjI 8https://api.github.com/users/jeremyk-91/events{/privacy}jI 7https://api.github.com/users/jeremyk-91/received_eventsjI UserjI uparents]}(jI (3ba9f37035dab2d33ff59619a23f2114a307e3f3jI ^https://api.github.com/repos/palantir/atlasdb/commits/3ba9f37035dab2d33ff59619a23f2114a307e3f3jI Shttps://github.com/palantir/atlasdb/commit/3ba9f37035dab2d33ff59619a23f2114a307e3f3uastats}(totalKs	additionsK9	deletionsK:ufiles](}(jI (bad62fdfc0f4e5f5e54e27631b446f28ca159cc1filenamelatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javastatusmodifiedjI K jI KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9b0016f5bcb9d39086579802e596376b8285236d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9b0016f5bcb9d39086579802e596376b8285236d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=9b0016f5bcb9d39086579802e596376b8285236dpatchXz  @@ -26,7 +26,6 @@
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;u}(jI (461cdd058f7b1d94f60003aa74ed1f6caed5e9b0jI patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javajI modifiedjI K&jI K&jI KLjI https://github.com/palantir/atlasdb/blob/9b0016f5bcb9d39086579802e596376b8285236d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajI https://github.com/palantir/atlasdb/raw/9b0016f5bcb9d39086579802e596376b8285236d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=9b0016f5bcb9d39086579802e596376b8285236djI X+  @@ -59,10 +59,10 @@ public void before() {
     @Test
     public void witnessRecordsAllSingleCellActions() {
         assertThat(readWrite(transaction -> {
-            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-            transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
-        }))
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
@@ -72,10 +72,10 @@ public void witnessRecordsAllSingleCellActions() {
     @Test
     public void readHandlesEmptyAndPresentValue() {
         assertThat(readWrite(transaction -> {
-            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-            transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
-            transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
-        }))
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
                 .containsExactly(
                         WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
@@ -85,9 +85,9 @@ public void readHandlesEmptyAndPresentValue() {
     @Test
     public void witnessRecordsColumnRangeActions() {
         assertThat(readWrite(transaction -> {
-            transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
-            transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
-        }))
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+                }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
                         WitnessedRowColumnRangeReadTransactionAction.builder()
@@ -103,8 +103,8 @@ public void witnessRecordsColumnRangeActions() {
     @Test
     public void emptyColumnRangeReadsAreRecorded() {
         assertThat(readWrite(transaction -> {
-            transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
-        }))
+                    transaction.getRowColumnRange(TABLE_1, WORKLOAD_CELL_TWO.key(), ColumnRangeSelection.all());
+                }))
                 .containsExactly(WitnessedRowColumnRangeReadTransactionAction.builder()
                         .originalQuery(RowColumnRangeReadTransactionAction.builder()
                                 .table(TABLE_1)
@@ -118,11 +118,11 @@ public void emptyColumnRangeReadsAreRecorded() {
     public void allRelevantCellsAreRecordedForFullColumnScan() {
         int iterationCount = 1000;
         assertThat(readWrite(transaction -> {
-            IntStream.range(0, iterationCount)
-                    .forEach(column ->
-                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-            transaction.getRowColumnRange(TABLE_1, 1, ColumnRangeSelection.all());
-        }))
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(TABLE_1, 1, ColumnRangeSelection.all());
+                }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
@@ -140,17 +140,17 @@ public void allRelevantCellsAreRecordedForSpecificRangeSubquery() {
         int startInclusive = 313;
         int endExclusive = 855;
         assertThat(readWrite(transaction -> {
-            IntStream.range(0, iterationCount)
-                    .forEach(column ->
-                            transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
-            transaction.getRowColumnRange(
-                    TABLE_1,
-                    1,
-                    ColumnRangeSelection.builder()
-                            .startColumnInclusive(startInclusive)
-                            .endColumnExclusive(endExclusive)
-                            .build());
-        }))
+                    IntStream.range(0, iterationCount)
+                            .forEach(column ->
+                                    transaction.write(TABLE_1, ImmutableWorkloadCell.of(1, column), VALUE_ONE));
+                    transaction.getRowColumnRange(
+                            TABLE_1,
+                            1,
+                            ColumnRangeSelection.builder()
+                                    .startColumnInclusive(startInclusive)
+                                    .endColumnExclusive(endExclusive)
+                                    .build());
+                }))
                 .hasSize(iterationCount + 1)
                 .element(iterationCount)
                 .satisfies(rowColumnRangeReadAction -> assertThat(rowColumnRangeReadAction)
@@ -220,22 +220,22 @@ private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTr
     private void assertThatThrownWhenUnknownTableReferenced(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-            transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
-            return null;
-        }))
+                    transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
+                    return null;
+                }))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("Transaction action has unknown table.");
     }
 
     private void assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
             Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
         assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
-            AtlasDbInteractiveTransaction transaction =
-                    new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
-            transaction.witness();
-            transactionConsumer.accept(transaction);
-            return null;
-        }))
+                    AtlasDbInteractiveTransaction transaction =
+                            new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
+                    transaction.witness();
+                    transactionConsumer.accept(transaction);
+                    return null;
+                }))
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasMessageContaining("Transaction has already been witnessed and can no longer perform any actions.");
     }u}(jI (3a7aebde56bb23390c1e2c8534beaae39c6e3ab4jI oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/SimpleRangeQueryReaderTest.javajI modifiedjI KjI KjI K&jI https://github.com/palantir/atlasdb/blob/9b0016f5bcb9d39086579802e596376b8285236d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javajI https://github.com/palantir/atlasdb/raw/9b0016f5bcb9d39086579802e596376b8285236d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.javajI https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSimpleRangeQueryReaderTest.java?ref=9b0016f5bcb9d39086579802e596376b8285236djI X
  @@ -38,10 +38,10 @@ public void doesNotReadCellsFromDifferentTable() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                .table(WorkloadTestHelpers.TABLE_2)
-                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
-                .columnRangeSelection(ColumnRangeSelection.all())
-                .build()))
+                        .table(WorkloadTestHelpers.TABLE_2)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                        .columnRangeSelection(ColumnRangeSelection.all())
+                        .build()))
                 .isEmpty();
     }
 
@@ -51,10 +51,10 @@ public void doesNotReadCellsFromDifferentRow() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                .table(WorkloadTestHelpers.TABLE_1)
-                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
-                .columnRangeSelection(ColumnRangeSelection.builder().build())
-                .build()))
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key() + 1)
+                        .columnRangeSelection(ColumnRangeSelection.builder().build())
+                        .build()))
                 .isEmpty();
     }
 
@@ -67,13 +67,13 @@ public void readsCellsFromRangeInOrder() {
                     Optional.of(WorkloadTestHelpers.VALUE_ONE)));
         }
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                .table(WorkloadTestHelpers.TABLE_1)
-                .row(1)
-                .columnRangeSelection(ColumnRangeSelection.builder()
-                        .startColumnInclusive(2)
-                        .endColumnExclusive(4)
-                        .build())
-                .build()))
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(1)
+                        .columnRangeSelection(ColumnRangeSelection.builder()
+                                .startColumnInclusive(2)
+                                .endColumnExclusive(4)
+                                .build())
+                        .build()))
                 .containsExactly(
                         ColumnValue.of(2, WorkloadTestHelpers.VALUE_ONE),
                         ColumnValue.of(3, WorkloadTestHelpers.VALUE_ONE));
@@ -85,10 +85,10 @@ public void doesNotReturnExplicitlyEmptyValues() {
                 TableAndWorkloadCell.of(WorkloadTestHelpers.TABLE_1, WorkloadTestHelpers.WORKLOAD_CELL_ONE),
                 Optional.empty()));
         assertThat(reader.readRange(RowColumnRangeReadTransactionAction.builder()
-                .table(WorkloadTestHelpers.TABLE_1)
-                .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
-                .columnRangeSelection(ColumnRangeSelection.all())
-                .build()))
+                        .table(WorkloadTestHelpers.TABLE_1)
+                        .row(WorkloadTestHelpers.WORKLOAD_CELL_ONE.key())
+                        .columnRangeSelection(ColumnRangeSelection.all())
+                        .build()))
                 .isEmpty();
     }
 }ueu(82c974208a8c9b802173e8cfe1ee01a349c12e2c}(sha(82c974208a8c9b802173e8cfe1ee01a349c12e2cnode_idEC_kwDOAjP5fdoAKDgyYzk3NDIwOGE4YzliODAyMTczZThjZmUxZWUwMWEzNDljMTJlMmMcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-03-13T12:13:19Zu	committer}(jJ svc-autoreleasejJ -pd-foundry-infrastructure-notify@palantir.comjJ 2023-03-13T12:13:19ZumessageAutorelease 0.812.0

[skip ci]tree}(jJ (34c2840977fc70e3b82567eb28e645bece438e6eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/34c2840977fc70e3b82567eb28e645bece438e6euj J bhttps://api.github.com/repos/palantir/atlasdb/git/commits/82c974208a8c9b802173e8cfe1ee01a349c12e2c
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQPE2MACgkQhbrR8ip7mDBCDgEAhh6O0i4n7MrAtlUK+rZD3h4C
yTGUKK0przDNLFoIj5ABANIwU5M8DAGBCiLmia+IVkPkUydLBQRQRyTX4zKkjr+c
=thEG
-----END PGP SIGNATURE-----
payloadX0  tree 34c2840977fc70e3b82567eb28e645bece438e6e
parent 0699b955fa1f085e06dd1be0d43ba4476a752aad
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1678709599 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1678709599 +0000

Autorelease 0.812.0

[skip ci]uuj J ^https://api.github.com/repos/palantir/atlasdb/commits/82c974208a8c9b802173e8cfe1ee01a349c12e2chtml_urlShttps://github.com/palantir/atlasdb/commit/82c974208a8c9b802173e8cfe1ee01a349c12e2ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/82c974208a8c9b802173e8cfe1ee01a349c12e2c/commentsjJ }(loginsvc-autoreleaseidJ(j
J MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j J ,https://api.github.com/users/svc-autoreleasej.J "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminujJ }(j3J svc-autoreleasej5J J(j
J MDQ6VXNlcjUxNzE4MzQ2j7J 4https://avatars.githubusercontent.com/u/51718346?v=4j9J h5j J ,https://api.github.com/users/svc-autoreleasej.J "https://github.com/svc-autoreleasej<J 6https://api.github.com/users/svc-autorelease/followersj>J Chttps://api.github.com/users/svc-autorelease/following{/other_user}j@J <https://api.github.com/users/svc-autorelease/gists{/gist_id}jBJ Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jDJ :https://api.github.com/users/svc-autorelease/subscriptionsjFJ 1https://api.github.com/users/svc-autorelease/orgsjHJ 2https://api.github.com/users/svc-autorelease/reposjJJ =https://api.github.com/users/svc-autorelease/events{/privacy}jLJ <https://api.github.com/users/svc-autorelease/received_eventsjNJ UserjPJ uparents]}(jJ (0699b955fa1f085e06dd1be0d43ba4476a752aadj J ^https://api.github.com/repos/palantir/atlasdb/commits/0699b955fa1f085e06dd1be0d43ba4476a752aadj.J Shttps://github.com/palantir/atlasdb/commit/0699b955fa1f085e06dd1be0d43ba4476a752aaduastats}(totalK 	additionsK 	deletionsK ufiles]}(jJ (5b0f02dce8a3b1ce70a2ebe8001043a75759ffeafilename changelog/0.812.0/pr-6467.v2.ymlstatusrenamedjjJ K jkJ K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/82c974208a8c9b802173e8cfe1ee01a349c12e2c/changelog%2F0.812.0%2Fpr-6467.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/82c974208a8c9b802173e8cfe1ee01a349c12e2c/changelog%2F0.812.0%2Fpr-6467.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.812.0%2Fpr-6467.v2.yml?ref=82c974208a8c9b802173e8cfe1ee01a349c12e2cprevious_filename$changelog/@unreleased/pr-6467.v2.ymluau(724bac50f91a55c8254b11d683a5142491ef980a}(sha(724bac50f91a55c8254b11d683a5142491ef980anode_idEC_kwDOAjP5fdoAKDcyNGJhYzUwZjkxYTU1YzgyNTRiMTFkNjgzYTUxNDI0OTFlZjk4MGEcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-22T16:33:37Zu	committer}(jJ 	Tom PapkejJ tpapke@palantir.comjJ 2023-06-22T16:33:37ZumessageFMake LockServerOptions refreshable, but use current configs for valuestree}(jJ (cb387f9de1658c635922308cc568d99904a91ca2url`https://api.github.com/repos/palantir/atlasdb/git/trees/cb387f9de1658c635922308cc568d99904a91ca2ujJ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/724bac50f91a55c8254b11d683a5142491ef980a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSUd+EACgkQmF9s0kaF
Iw1DYggAoXdroeYgxgtOPe3JX0CKFET1NXtEeQ2XMDhJBpZvUbKh9FznWWcpL9XY
5vwYCByrvm6Eksi4Qpnj+UFRZ40EEyqRJ5JHQm5fNQNw3fWvBXYxLQBC4sc5E/67
YISKGyqfi2+zd22O+OkO1FpjVCFvgJcXjudatAd7pw7IxGX287ISe1vYUvZbJSqY
3YRyAc5gFdTW+VI00vSJ5JrrgTAznF9ji2q9FhVoaKy/VUXBJsv9QV/p26xbfMRr
24iIvAQ+G6NOXZN/ePw3CTQN+ZLIpH+AeusSBsDdu4Clv/2+rRT3gVp0cY4oERFA
7NxoFsVaTjcY5Bn8QICvaRUcta876Q==
=3bin
-----END PGP SIGNATURE-----payloadX  tree cb387f9de1658c635922308cc568d99904a91ca2
parent 968d015713ba1cfb39b461ef4af24a0a05675d94
author Tom Papke <tpapke@palantir.com> 1687451617 +0100
committer Tom Papke <tpapke@palantir.com> 1687451617 +0100

Make LockServerOptions refreshable, but use current configs for values
uujJ ^https://api.github.com/repos/palantir/atlasdb/commits/724bac50f91a55c8254b11d683a5142491ef980ahtml_urlShttps://github.com/palantir/atlasdb/commit/724bac50f91a55c8254b11d683a5142491ef980acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/724bac50f91a55c8254b11d683a5142491ef980a/commentsjJ }(login	ToemmscheidJbojJ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jJ &https://api.github.com/users/ToemmschejJ https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujJ }(jJ 	ToemmschejJ JbojJ MDQ6VXNlcjQzNjc1NDkwjJ 4https://avatars.githubusercontent.com/u/43675490?v=4jJ h5jJ &https://api.github.com/users/ToemmschejJ https://github.com/ToemmschejJ 0https://api.github.com/users/Toemmsche/followersjJ =https://api.github.com/users/Toemmsche/following{/other_user}jJ 6https://api.github.com/users/Toemmsche/gists{/gist_id}jJ =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jJ 4https://api.github.com/users/Toemmsche/subscriptionsjJ +https://api.github.com/users/Toemmsche/orgsjJ ,https://api.github.com/users/Toemmsche/reposjJ 7https://api.github.com/users/Toemmsche/events{/privacy}jJ 6https://api.github.com/users/Toemmsche/received_eventsjJ UserjJ uparents]}(jJ (968d015713ba1cfb39b461ef4af24a0a05675d94jJ ^https://api.github.com/repos/palantir/atlasdb/commits/968d015713ba1cfb39b461ef4af24a0a05675d94jJ Shttps://github.com/palantir/atlasdb/commit/968d015713ba1cfb39b461ef4af24a0a05675d94uastats}(totalK{	additionsK=	deletionsK>ufiles](}(jJ (da50ee7393b93c8d71153140ffe86ba6c40366fcfilename?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javastatusmodifiedjJ KjJ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/724bac50f91a55c8254b11d683a5142491ef980a/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaraw_urlhttps://github.com/palantir/atlasdb/raw/724bac50f91a55c8254b11d683a5142491ef980a/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=724bac50f91a55c8254b11d683a5142491ef980apatchX  @@ -16,6 +16,7 @@
 package com.palantir.lock;
 
 import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.google.common.base.MoreObjects;
@@ -126,6 +127,15 @@ public long slowLogTriggerMillis() {
         return 10000L;
     }
 
+    /**
+     * Runtime configuration relating to thread info recording (which lock is held by which client-thread).
+     */
+    @JsonIgnore
+    @Value.Default
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    }
+
     @Override
     public boolean equals(@Nullable Object obj) {
         if (this == obj) {
@@ -142,7 +152,8 @@ && getRandomBitCount() == other.getRandomBitCount()
                 && Objects.equals(getMaxAllowedClockDrift(), other.getMaxAllowedClockDrift())
                 && Objects.equals(getMaxAllowedBlockingDuration(), other.getMaxAllowedBlockingDuration())
                 && Objects.equals(getMaxNormalLockAge(), other.getMaxNormalLockAge())
-                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout());
+                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout())
+                && Objects.equals(threadInfoConfiguration(), other.threadInfoConfiguration());
     }
 
     @Override
@@ -155,7 +166,8 @@ public int hashCode() {
                 getMaxNormalLockAge(),
                 getRandomBitCount(),
                 getStuckTransactionTimeout(),
-                slowLogTriggerMillis());
+                slowLogTriggerMillis(),
+                threadInfoConfiguration());
     }
 
     @Override
@@ -169,6 +181,7 @@ public String toString() {
                 .add("randomBitCount", getRandomBitCount())
                 .add("stuckTransactionTimeout", getStuckTransactionTimeout())
                 .add("slowLogTriggerMillis", slowLogTriggerMillis())
+                .add("threadInfoConfiguration", threadInfoConfiguration())
                 .toString();
     }
 u}(jJ (68aaf116e33ba3574768c2329e303c1858527137jJ Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javajJ modifiedjJ KjJ K!jJ K6jJ https://github.com/palantir/atlasdb/blob/724bac50f91a55c8254b11d683a5142491ef980a/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javajJ https://github.com/palantir/atlasdb/raw/724bac50f91a55c8254b11d683a5142491ef980a/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javajJ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=724bac50f91a55c8254b11d683a5142491ef980ajJ Xu  @@ -45,7 +45,6 @@
 import com.palantir.lock.BlockingMode;
 import com.palantir.lock.CloseableLockService;
 import com.palantir.lock.CloseableRemoteLockService;
-import com.palantir.lock.DebugThreadInfoConfiguration;
 import com.palantir.lock.ExpiringToken;
 import com.palantir.lock.HeldLocksGrant;
 import com.palantir.lock.HeldLocksToken;
@@ -235,58 +234,47 @@ public static LockServiceImpl create() {
     public static LockServiceImpl create(LockServerOptions options) {
         com.palantir.logsafe.Preconditions.checkNotNull(options);
         ExecutorService newExecutor = PTExecutors.newCachedThreadPool(LockServiceImpl.class.getName());
-        return create(
-                options, Ownable.owned(newExecutor), Refreshable.only(LockServerConfigs.DEFAULT_THREAD_INFO_CONFIG));
+        return create(Refreshable.only(options), Ownable.owned(newExecutor));
     }
 
-    public static LockServiceImpl create(LockServerOptions options, ExecutorService injectedExecutor) {
+    public static LockServiceImpl create(Refreshable<LockServerOptions> options, ExecutorService injectedExecutor) {
         com.palantir.logsafe.Preconditions.checkNotNull(options);
-        return create(
-                options,
-                Ownable.notOwned(injectedExecutor),
-                Refreshable.only(LockServerConfigs.DEFAULT_THREAD_INFO_CONFIG));
+        com.palantir.logsafe.Preconditions.checkNotNull(options.current());
+        return create(options, Ownable.notOwned(injectedExecutor));
     }
 
-    public static LockServiceImpl create(
-            LockServerOptions options,
-            ExecutorService injectedExecutor,
-            Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration) {
+    public static LockServiceImpl create(LockServerOptions options, ExecutorService injectedExecutor) {
         com.palantir.logsafe.Preconditions.checkNotNull(options);
-        return create(options, Ownable.notOwned(injectedExecutor), threadInfoConfiguration);
+        return create(Refreshable.only(options), Ownable.notOwned(injectedExecutor));
     }
 
-    private static LockServiceImpl create(
-            LockServerOptions options,
-            Ownable<ExecutorService> executor,
-            Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration) {
+    private static LockServiceImpl create(Refreshable<LockServerOptions> options, Ownable<ExecutorService> executor) {
         if (log.isTraceEnabled()) {
             log.trace("Creating LockService with options={}", SafeArg.of("options", options));
         }
         final String jmxBeanRegistrationName = "com.palantir.lock:type=LockServer_" + instanceCount.getAndIncrement();
         LockServiceImpl lockService = new LockServiceImpl(
-                options,
-                () -> JMXUtils.unregisterMBeanCatchAndLogExceptions(jmxBeanRegistrationName),
-                executor,
-                threadInfoConfiguration);
+                options, () -> JMXUtils.unregisterMBeanCatchAndLogExceptions(jmxBeanRegistrationName), executor);
         JMXUtils.registerMBeanCatchAndLogExceptions(lockService, jmxBeanRegistrationName);
         return lockService;
     }
 
+    /**
+     * Only {@link LockServerOptions#threadInfoConfiguration()} is actually reloadable
+     */
     private LockServiceImpl(
-            LockServerOptions options,
-            Runnable callOnClose,
-            Ownable<ExecutorService> executor,
-            Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration) {
+            Refreshable<LockServerOptions> options, Runnable callOnClose, Ownable<ExecutorService> executor) {
+        LockServerOptions currentOptions = options.current();
         this.lockReapRunner = new LockReapRunner(executor);
         this.callOnClose = callOnClose;
-        this.isStandaloneServer = options.isStandaloneServer();
-        this.maxAllowedLockTimeout = SimpleTimeDuration.of(options.getMaxAllowedLockTimeout());
-        this.maxAllowedClockDrift = SimpleTimeDuration.of(options.getMaxAllowedClockDrift());
-        this.maxNormalLockAge = SimpleTimeDuration.of(options.getMaxNormalLockAge());
-        this.stuckTransactionTimeout = SimpleTimeDuration.of(options.getStuckTransactionTimeout());
-        this.slowLogTriggerMillis = options.slowLogTriggerMillis();
-        this.threadInfoSnapshotManager =
-                new LockThreadInfoSnapshotManager(threadInfoConfiguration, () -> heldLocksTokenMap);
+        this.isStandaloneServer = currentOptions.isStandaloneServer();
+        this.maxAllowedLockTimeout = SimpleTimeDuration.of(currentOptions.getMaxAllowedLockTimeout());
+        this.maxAllowedClockDrift = SimpleTimeDuration.of(currentOptions.getMaxAllowedClockDrift());
+        this.maxNormalLockAge = SimpleTimeDuration.of(currentOptions.getMaxNormalLockAge());
+        this.stuckTransactionTimeout = SimpleTimeDuration.of(currentOptions.getStuckTransactionTimeout());
+        this.slowLogTriggerMillis = currentOptions.slowLogTriggerMillis();
+        this.threadInfoSnapshotManager = new LockThreadInfoSnapshotManager(
+                options.map(LockServerOptions::threadInfoConfiguration), () -> heldLocksTokenMap);
         threadInfoSnapshotManager.start();
     }
 u}(jJ (b1e117580fb1d70f875172e243c60a53aedf3528jJ Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javajJ modifiedjJ KjJ KjJ K*jJ https://github.com/palantir/atlasdb/blob/724bac50f91a55c8254b11d683a5142491ef980a/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javajJ https://github.com/palantir/atlasdb/raw/724bac50f91a55c8254b11d683a5142491ef980a/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javajJ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=724bac50f91a55c8254b11d683a5142491ef980ajJ Xc  @@ -49,10 +49,6 @@
 import org.junit.Test;
 
 public class ThreadInfoLockServiceImplTest {
-
-    private static final ExecutorService LOCK_SERVICE_IMPL_EXECUTOR =
-            PTExecutors.newCachedThreadPool(LockServiceImpl.class.getName());
-
     private static final LockDescriptor TEST_LOCK_1 = StringLockDescriptor.of("lock-1");
     private static final LockDescriptor TEST_LOCK_2 = StringLockDescriptor.of("lock-2");
     private static final LockDescriptor TEST_LOCK_3 = StringLockDescriptor.of("lock-3");
@@ -73,12 +69,12 @@ public class ThreadInfoLockServiceImplTest {
             PTExecutors.newCachedThreadPool(ThreadInfoLockServiceImplTest.class.getName());
 
     // Disable background snapshotting, invoke explicitly instead
-    private final LockServiceImpl lockService = LockServiceImpl.create(
-            LockServerOptions.builder().isStandaloneServer(false).build(),
-            LOCK_SERVICE_IMPL_EXECUTOR,
-            Refreshable.only(ImmutableDebugThreadInfoConfiguration.builder()
+    private final LockServiceImpl lockService = LockServiceImpl.create(LockServerOptions.builder()
+            .isStandaloneServer(false)
+            .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
                     .recordThreadInfo(false)
-                    .build()));
+                    .build())
+            .build());
 
     @Test
     public void initialThreadInfoIsEmpty() {
@@ -281,13 +277,13 @@ public void refreshDoesNotChangeSnapshot() throws InterruptedException {
 
     @Test
     public void backgroundSnapshotRunnerWorks() throws InterruptedException {
-        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(
-                LockServerOptions.builder().isStandaloneServer(false).build(),
-                LOCK_SERVICE_IMPL_EXECUTOR,
-                Refreshable.only(ImmutableDebugThreadInfoConfiguration.builder()
+        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
+                .isStandaloneServer(false)
+                .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
                         .recordThreadInfo(true)
                         .threadInfoSnapshotIntervalMillis(50L)
-                        .build()));
+                        .build())
+                .build());
         LockThreadInfoSnapshotManager backgroundSnapshotRunner = lockServiceWithBackgroundRunner.getSnapshotManager();
 
         LockResponse response = lockServiceWithBackgroundRunner.lockWithFullLockResponse(
@@ -314,13 +310,13 @@ public void logArgIsUnsafeAndContainsEmptyOptionalIfNotRecordingThreadInfo() thr
 
     @Test
     public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() throws InterruptedException {
-        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(
-                LockServerOptions.builder().isStandaloneServer(false).build(),
-                LOCK_SERVICE_IMPL_EXECUTOR,
-                Refreshable.only(ImmutableDebugThreadInfoConfiguration.builder()
+        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
+                .isStandaloneServer(false)
+                .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
                         .recordThreadInfo(true)
                         .threadInfoSnapshotIntervalMillis(50L)
-                        .build()));
+                        .build())
+                .build());
         LockRequest lockRequest2 = LockRequest.builder(
                         ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
                 .doNotBlock()
@@ -348,9 +344,11 @@ public void willRestartWhenConfigIsUpdated() throws InterruptedException {
                         .threadInfoSnapshotIntervalMillis(50L)
                         .build());
         LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(
-                LockServerOptions.builder().isStandaloneServer(false).build(),
-                LOCK_SERVICE_IMPL_EXECUTOR,
-                refreshableThreadInfoConfiguration);
+                refreshableThreadInfoConfiguration.map(threadInfoConfig -> LockServerOptions.builder()
+                        .isStandaloneServer(false)
+                        .threadInfoConfiguration(threadInfoConfig)
+                        .build()),
+                executor);
         LockThreadInfoSnapshotManager backgroundSnapshotRunner = lockServiceWithBackgroundRunner.getSnapshotManager();
 
         LockResponse lockResponse = lockServiceWithBackgroundRunner.lockWithFullLockResponse(u}(jJ (a168b555f03c27ec1cf6a6780262110e71867bedjJ Itimelock-agent/src/main/java/com/palantir/timelock/paxos/LockCreator.javajJ modifiedjJ KjJ KjJ K
jJ https://github.com/palantir/atlasdb/blob/724bac50f91a55c8254b11d683a5142491ef980a/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javajJ https://github.com/palantir/atlasdb/raw/724bac50f91a55c8254b11d683a5142491ef980a/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javajJ https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.java?ref=724bac50f91a55c8254b11d683a5142491ef980ajJ XM  @@ -39,12 +39,12 @@ public LockCreator(Refreshable<TimeLockRuntimeConfiguration> runtime, int thread
     }
 
     public CloseableLockService createThreadPoolingLockService() {
-        LockServerOptions lockServerOptions = LockServerOptions.builder()
-                .slowLogTriggerMillis(runtime.get().slowLockLogTriggerMillis())
-                .build();
+        Refreshable<LockServerOptions> lockServerOptions = runtime.map(rt -> LockServerOptions.builder()
+                .slowLogTriggerMillis(rt.slowLockLogTriggerMillis())
+                .threadInfoConfiguration(rt.threadInfoConfiguration())
+                .build());
 
-        LockServiceImpl rawLockService = LockServiceImpl.create(
-                lockServerOptions, sharedExecutor, runtime.map(TimeLockRuntimeConfiguration::threadInfoConfiguration));
+        LockServiceImpl rawLockService = LockServiceImpl.create(lockServerOptions, sharedExecutor);
         CloseableLockService lockService = BlockingTimeLimitedLockService.create(
                 rawLockService, blockingTimeoutMs, rawLockService.getSnapshotManager());
 ueu(58f258ff9cf4f515f566c1a7484a2a35df4b333c}(sha(58f258ff9cf4f515f566c1a7484a2a35df4b333cnode_idEC_kwDOAjP5fdoAKDU4ZjI1OGZmOWNmNGY1MTVmNTY2YzFhNzQ4NGEyYTM1ZGY0YjMzM2Mcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-15T23:43:49Zu	committer}(jK svc-autoreleasejK -pd-foundry-infrastructure-notify@palantir.comjK 2023-05-15T23:43:49Zumessage#Autorelease 0.854.0-rc16

[skip ci]tree}(jK (bea7c72f62c435938a630e020c1d60a07a01edc1url`https://api.github.com/repos/palantir/atlasdb/git/trees/bea7c72f62c435938a630e020c1d60a07a01edc1uj&K bhttps://api.github.com/repos/palantir/atlasdb/git/commits/58f258ff9cf4f515f566c1a7484a2a35df4b333c
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRiw7YACgkQhbrR8ip7mDBQtQD/RufxrL4O4ufnnfn9GrE72MZH
Lf4iwj7yRJoQK1gBrPwBANileANPzRIGbbSgqFZNOLC0HNyfDPmLX0A+cPdsTtFV
=+Dhx
-----END PGP SIGNATURE-----
payloadX)  tree bea7c72f62c435938a630e020c1d60a07a01edc1
parent 9ce0a7c20d102a5dde895970471fa6f8708ff5e6
author aalouane <30903736+ergo14@users.noreply.github.com> 1684194229 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684194229 +0000

Autorelease 0.854.0-rc16

[skip ci]uuj&K ^https://api.github.com/repos/palantir/atlasdb/commits/58f258ff9cf4f515f566c1a7484a2a35df4b333chtml_urlShttps://github.com/palantir/atlasdb/commit/58f258ff9cf4f515f566c1a7484a2a35df4b333ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/58f258ff9cf4f515f566c1a7484a2a35df4b333c/commentsjK }(loginergo14idJjK MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j&K #https://api.github.com/users/ergo14j4K https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujK }(j9K svc-autoreleasej;K J(jK MDQ6VXNlcjUxNzE4MzQ2j=K 4https://avatars.githubusercontent.com/u/51718346?v=4j?K h5j&K ,https://api.github.com/users/svc-autoreleasej4K "https://github.com/svc-autoreleasejBK 6https://api.github.com/users/svc-autorelease/followersjDK Chttps://api.github.com/users/svc-autorelease/following{/other_user}jFK <https://api.github.com/users/svc-autorelease/gists{/gist_id}jHK Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jJK :https://api.github.com/users/svc-autorelease/subscriptionsjLK 1https://api.github.com/users/svc-autorelease/orgsjNK 2https://api.github.com/users/svc-autorelease/reposjPK =https://api.github.com/users/svc-autorelease/events{/privacy}jRK <https://api.github.com/users/svc-autorelease/received_eventsjTK UserjVK uparents]}(jK (9ce0a7c20d102a5dde895970471fa6f8708ff5e6j&K ^https://api.github.com/repos/palantir/atlasdb/commits/9ce0a7c20d102a5dde895970471fa6f8708ff5e6j4K Shttps://github.com/palantir/atlasdb/commit/9ce0a7c20d102a5dde895970471fa6f8708ff5e6uastats}(totalK 	additionsK 	deletionsK ufiles]u(a4bd187afb5bdf124ae935b93c4fa9fb570c6ede}(sha(a4bd187afb5bdf124ae935b93c4fa9fb570c6edenode_idEC_kwDOAjP5fdoAKGE0YmQxODdhZmI1YmRmMTI0YWU5MzViOTNjNGZhOWZiNTcwYzZlZGUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-16T12:54:17Zu	committer}(j~K 
Ahmed AlouanejK aalouane@palantir.comjK 2023-05-16T12:54:17Zumessageone last onetree}(jvK (7503efe2cf8d4848e343c0a5c51421000dfa7fe9url`https://api.github.com/repos/palantir/atlasdb/git/trees/7503efe2cf8d4848e343c0a5c51421000dfa7fe9ujK bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a4bd187afb5bdf124ae935b93c4fa9fb570c6ede
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRjfPkACgkQPlMHVIT1
yhoKSQgAgMt0rw2Lk3zbHA7opGtdkpd93rLOovZVDjZJl6bgpr3+ULsGfME3EQ1n
SpyjKZ4T1OKAq15KD05xKY2CaoMVRsuk1RDWClqevGwCl9lSjPQUW3Fzgm9MmUX7
MaRU/sC+jqVoiuzf5plZMQ5qYWuENYgcBIckE6IqvQQa4G66mcfnC+sbjQ/1OA34
7ijJjyVeSGY6v1nO7L6de32SsHo2Kfq0BfAU3Cc0R8RMceR00hHAr4j5N3vFj7l6
ki3fgcsrPM52X1roESB+2b5/M1QwZXhSlQ+qibQaYBEMQ9MoD0bsbIXdjzSK+pRs
l8HU2cA2ui6hHAzQ04pDjG6K/aE0ZA==
=iqum
-----END PGP SIGNATURE-----payloadtree 7503efe2cf8d4848e343c0a5c51421000dfa7fe9
parent 97b9b925f1bd7be4f93e0fe53cdfc49b4fa63b6e
author Ahmed Alouane <aalouane@palantir.com> 1684241657 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684241657 +0100

one last one
uujK ^https://api.github.com/repos/palantir/atlasdb/commits/a4bd187afb5bdf124ae935b93c4fa9fb570c6edehtml_urlShttps://github.com/palantir/atlasdb/commit/a4bd187afb5bdf124ae935b93c4fa9fb570c6edecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a4bd187afb5bdf124ae935b93c4fa9fb570c6ede/commentsj|K }(loginergo14idJjxK MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jK #https://api.github.com/users/ergo14jK https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujK }(jK ergo14jK JjxK MDQ6VXNlcjMwOTAzNzM2jK 4https://avatars.githubusercontent.com/u/30903736?v=4jK h5jK #https://api.github.com/users/ergo14jK https://github.com/ergo14jK -https://api.github.com/users/ergo14/followersjK :https://api.github.com/users/ergo14/following{/other_user}jK 3https://api.github.com/users/ergo14/gists{/gist_id}jK :https://api.github.com/users/ergo14/starred{/owner}{/repo}jK 1https://api.github.com/users/ergo14/subscriptionsjK (https://api.github.com/users/ergo14/orgsjK )https://api.github.com/users/ergo14/reposjK 4https://api.github.com/users/ergo14/events{/privacy}jK 3https://api.github.com/users/ergo14/received_eventsjK UserjK uparents]}(jvK (97b9b925f1bd7be4f93e0fe53cdfc49b4fa63b6ejK ^https://api.github.com/repos/palantir/atlasdb/commits/97b9b925f1bd7be4f93e0fe53cdfc49b4fa63b6ejK Shttps://github.com/palantir/atlasdb/commit/97b9b925f1bd7be4f93e0fe53cdfc49b4fa63b6euastats}(totalK	additionsK 	deletionsKufiles]}(jvK (64ab9c109f935a10bd10391567ac566ad4d72245filename.circleci/config.ymlstatusmodifiedjK K jK KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/a4bd187afb5bdf124ae935b93c4fa9fb570c6ede/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/a4bd187afb5bdf124ae935b93c4fa9fb570c6ede/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=a4bd187afb5bdf124ae935b93c4fa9fb570c6edepatchX  @@ -120,10 +120,6 @@ jobs:
       CIRCLE_ARTIFACTS: /tmp/artifacts
     steps:
       - attach_workspace: { at: . }
-      - restore_cache:
-          key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
-      - restore_cache:
-          key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
       - add_ssh_keys:
           fingerprints:
             - "b6:ba:27:37:84:8f:eb:b0:ee:0b:7c:c1:fc:18:32:5f"uau(ac7a8cd4b35ecbe034b47f6876d8fa9c0d3ba79a}(sha(ac7a8cd4b35ecbe034b47f6876d8fa9c0d3ba79anode_idEC_kwDOAjP5fdoAKGFjN2E4Y2Q0YjM1ZWNiZTAzNGI0N2Y2ODc2ZDhmYTljMGQzYmE3OWEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-05T13:43:09Zu	committer}(jK Jeremy KongjK jkong@palantir.comjK 2023-05-05T13:43:09Zumessagestoptree}(jK (4db37cc9f9b30b287fdcab16707f4a6c628272f6url`https://api.github.com/repos/palantir/atlasdb/git/trees/4db37cc9f9b30b287fdcab16707f4a6c628272f6ujL bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ac7a8cd4b35ecbe034b47f6876d8fa9c0d3ba79a
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRVB+0ACgkQTLdFKain
zjyDhwgAwr2xK6JN8VWmO9gRHDQ7GtkaNYKE/y9eV2Jv2HM0YczQ18z+gX9hFrF/
9bLZ8JCClKZ3TANfuglel+xHFNczcrcl4C6pvsooizUJWwKFa4PUIV3Pk/Kqvnbh
7USdEDfxIR8oC1H99lWKKA1htZYAX5tDrZGlNBiRpRU5wHcyDBFdpaOwDxsMJHIn
+GEbch+mlj+AFqLmWhKvekmHRi66nPpQQV9gbdtaDlfy+ZvR7Pp61mU3Co482Xny
hMXN9gB21jm1lxQlFf7Abr/lhEYjNQMRj1r4tmL9bVG2YMHV7J8Z4/ewmfRYQVP1
hlaHS1ZU4zvOSl5OHq3BnZLeKPGTNg==
=Zsrv
-----END PGP SIGNATURE-----payloadtree 4db37cc9f9b30b287fdcab16707f4a6c628272f6
parent 89301daada3aa480a1d2baae560213a3292c52b9
author Jeremy Kong <jkong@palantir.com> 1683294189 +0100
committer Jeremy Kong <jkong@palantir.com> 1683294189 +0100

stop
uujL ^https://api.github.com/repos/palantir/atlasdb/commits/ac7a8cd4b35ecbe034b47f6876d8fa9c0d3ba79ahtml_urlShttps://github.com/palantir/atlasdb/commit/ac7a8cd4b35ecbe034b47f6876d8fa9c0d3ba79acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ac7a8cd4b35ecbe034b47f6876d8fa9c0d3ba79a/commentsjK }(login
jeremyk-91idJZ jK MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jL 'https://api.github.com/users/jeremyk-91jL https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujK }(jL 
jeremyk-91jL JZ jK MDQ6VXNlcjU5NTU1MTA=      jL 3https://avatars.githubusercontent.com/u/5955510?v=4jL h5jL 'https://api.github.com/users/jeremyk-91jL https://github.com/jeremyk-91j!L 1https://api.github.com/users/jeremyk-91/followersj#L >https://api.github.com/users/jeremyk-91/following{/other_user}j%L 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j'L >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j)L 5https://api.github.com/users/jeremyk-91/subscriptionsj+L ,https://api.github.com/users/jeremyk-91/orgsj-L -https://api.github.com/users/jeremyk-91/reposj/L 8https://api.github.com/users/jeremyk-91/events{/privacy}j1L 7https://api.github.com/users/jeremyk-91/received_eventsj3L Userj5L uparents]}(jK (89301daada3aa480a1d2baae560213a3292c52b9jL ^https://api.github.com/repos/palantir/atlasdb/commits/89301daada3aa480a1d2baae560213a3292c52b9jL Shttps://github.com/palantir/atlasdb/commit/89301daada3aa480a1d2baae560213a3292c52b9uastats}(totalK	additionsK	deletionsKufiles]}(jK (b4a432c001eb22c0c61a5f097095445093255512filename?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javastatusmodifiedjOL KjPL KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ac7a8cd4b35ecbe034b47f6876d8fa9c0d3ba79a/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ac7a8cd4b35ecbe034b47f6876d8fa9c0d3ba79a/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=ac7a8cd4b35ecbe034b47f6876d8fa9c0d3ba79apatchX  @@ -48,6 +48,7 @@ public class LockServerOptions implements Serializable {
      * client accessing it.
      */
     @Value.Default
+    @JsonProperty("isStandaloneServer")
     public boolean isStandaloneServer() {
         return true;
     }
@@ -183,7 +184,8 @@ public static Builder builder() {
         return new Builder();
     }
 
-    public static final class Builder extends ImmutableLockServerOptions.Builder {}
+    public static final class Builder extends ImmutableLockServerOptions.Builder {
+    }
 
     static class SerializationProxy implements Serializable {
         private static final long serialVersionUID = 4043798817916565364L;uau(a95c8c2cf2d30c63d07539610429a3935e4a03b4}(sha(a95c8c2cf2d30c63d07539610429a3935e4a03b4node_idEC_kwDOAjP5fdoAKGE5NWM4YzJjZjJkMzBjNjNkMDc1Mzk2MTA0MjlhMzkzNWU0YTAzYjQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-14T13:29:32Zu	committer}(jlL 
Sam KramerjnL skramer@palantir.comjpL 2023-04-14T13:29:32Zumessageadd additional tests + clean uptree}(jdL (1080a0144e6af723dbb25257da299f877a9117baurl`https://api.github.com/repos/palantir/atlasdb/git/trees/1080a0144e6af723dbb25257da299f877a9117bauj|L bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a95c8c2cf2d30c63d07539610429a3935e4a03b4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ5VTwACgkQmPPOpKR4
XS3V+gf9GQacHRZuw64GpYO0wcRHYr4q2gNXRyVKQ835Hwvjd9hc8ToxaheH1P75
INdxvADnQqgs2AMeGdAHZJD7qPN9A8x4MH9DHuBzyeXNy//ZEUAqRQ3qO7iVi262
eK5Zz2OLsQBV6nRwzTwecySu97arWAF+szzbsn6NmIcfKopB6UGygTfSC701tBDq
9Q7SII2ntHJdV0CyxYvH7oEY/EKI2UmMfUy5ZLNEGij4PH/IRZ/dptudgldYa2HG
K1DVKCmcRmTYhfiy0DJ981vQnGC1xTfyKf94LcHc8Zp+MWIHopB2JuX+1trIL7VU
wbmLeHZZ/9EfuJt9QTU0a3jI0VJMKQ==
=NXLU
-----END PGP SIGNATURE-----payloadtree 1080a0144e6af723dbb25257da299f877a9117ba
parent 5a1865e6187212a51d00b15863fde363264e499a
author Sam Kramer <skramer@palantir.com> 1681478972 +0100
committer Sam Kramer <skramer@palantir.com> 1681478972 +0100

add additional tests + clean up
uuj|L ^https://api.github.com/repos/palantir/atlasdb/commits/a95c8c2cf2d30c63d07539610429a3935e4a03b4html_urlShttps://github.com/palantir/atlasdb/commit/a95c8c2cf2d30c63d07539610429a3935e4a03b4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a95c8c2cf2d30c63d07539610429a3935e4a03b4/commentsjjL }(login
Sam-KrameridJ^2_ jfL MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j|L 'https://api.github.com/users/Sam-KramerjL https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujrL }(jL 
Sam-KramerjL J^2_ jfL MDQ6VXNlcjYyMzg4MTQ=jL 3https://avatars.githubusercontent.com/u/6238814?v=4jL h5j|L 'https://api.github.com/users/Sam-KramerjL https://github.com/Sam-KramerjL 1https://api.github.com/users/Sam-Kramer/followersjL >https://api.github.com/users/Sam-Kramer/following{/other_user}jL 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jL >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jL 5https://api.github.com/users/Sam-Kramer/subscriptionsjL ,https://api.github.com/users/Sam-Kramer/orgsjL -https://api.github.com/users/Sam-Kramer/reposjL 8https://api.github.com/users/Sam-Kramer/events{/privacy}jL 7https://api.github.com/users/Sam-Kramer/received_eventsjL UserjL uparents]}(jdL (5a1865e6187212a51d00b15863fde363264e499aj|L ^https://api.github.com/repos/palantir/atlasdb/commits/5a1865e6187212a51d00b15863fde363264e499ajL Shttps://github.com/palantir/atlasdb/commit/5a1865e6187212a51d00b15863fde363264e499auastats}(totalK2	additionsK"	deletionsKufiles](}(jdL (1450ece0cbe8e1f8a09d90a74433c4b72181fcbdfilename`atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingGraph.javastatusmodifiedjL KjL KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/a95c8c2cf2d30c63d07539610429a3935e4a03b4/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a95c8c2cf2d30c63d07539610429a3935e4a03b4/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.java?ref=a95c8c2cf2d30c63d07539610429a3935e4a03b4patchXK  @@ -102,9 +102,8 @@ private static RingGraph generateNewRing(Set<Integer> nodes) {
         Collections.shuffle(keys);
         Iterator<Integer> valuesIterator = Iterators.cycle(keys);
         valuesIterator.next();
-        return new RingGraph(keys.stream()
-                .sequential()
-                .collect(Collectors.toMap(Function.identity(), _node -> valuesIterator.next())));
+        return new RingGraph(
+                keys.stream().collect(Collectors.toMap(Function.identity(), _node -> valuesIterator.next())));
     }
 
     public Map<Integer, Integer> asMap() {u}(jdL (7e62e75fc5695d084b1a2d7793eaf1b05fef0bd9jL datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflows.javajL modifiedjL KjL KjL K
jL https://github.com/palantir/atlasdb/blob/a95c8c2cf2d30c63d07539610429a3935e4a03b4/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javajL https://github.com/palantir/atlasdb/raw/a95c8c2cf2d30c63d07539610429a3935e4a03b4/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javajL https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.java?ref=a95c8c2cf2d30c63d07539610429a3935e4a03b4jL X  @@ -53,10 +53,11 @@ private RingWorkflows() {
     public static Workflow create(
             InteractiveTransactionStore store,
             RingWorkflowConfiguration ringWorkflowConfiguration,
-            ListeningExecutorService executionExecutor) {
+            ListeningExecutorService executionExecutor,
+            AtomicBoolean skipRunning) {
         return DefaultWorkflow.create(
                 store,
-                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, new AtomicBoolean(false)),
+                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
                 ringWorkflowConfiguration,
                 executionExecutor);
     }
@@ -81,8 +82,9 @@ private static Optional<WitnessedTransaction> run(
                         .asMap()
                         .forEach((rootNode, nextNode) -> txn.write(table, cell(rootNode), nextNode));
             } catch (IllegalArgumentException e) {
-                skipRunning.set(true);
-                log.error("Detected violation with our ring.", e);
+                if (skipRunning.compareAndSet(false, true)) {
+                    log.error("Detected violation with our ring.", e);
+                }
             }
         });
     }u}(jdL (18eaa0108581e393f5256513d55ca731d95a17dejL hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowsTest.javajL modifiedjL KjL K	jL K#jL https://github.com/palantir/atlasdb/blob/a95c8c2cf2d30c63d07539610429a3935e4a03b4/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javajL https://github.com/palantir/atlasdb/raw/a95c8c2cf2d30c63d07539610429a3935e4a03b4/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javajL https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.java?ref=a95c8c2cf2d30c63d07539610429a3935e4a03b4jL X  @@ -34,10 +34,12 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.atlasdb.workload.workflow.ImmutableTableConfiguration;
+import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.List;
 import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 import org.junit.Test;
@@ -59,21 +61,25 @@ public class RingWorkflowsTest {
                     TableReference.createWithEmptyNamespace(TABLE_NAME),
                     AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
 
+    private final AtomicBoolean skipRunning = new AtomicBoolean(false);
+
+    private final Workflow workflow = RingWorkflows.create(
+            memoryStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)),
+            skipRunning);
+
     @Test
     public void workflowHistoryTransactionStoreShouldBeReadOnly() {
-        WorkflowHistory history = RingWorkflows.create(
-                        memoryStore, CONFIGURATION, MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)))
-                .run();
+        WorkflowHistory history = workflow.run();
         assertThat(history.transactionStore())
                 .as("should return a read only tranasction store")
                 .isInstanceOf(ReadOnlyTransactionStore.class);
     }
 
     @Test
     public void ringWorkflowContainsInitialReadsForRing() {
-        WorkflowHistory history = RingWorkflows.create(
-                        memoryStore, CONFIGURATION, MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)))
-                .run();
+        WorkflowHistory history = workflow.run();
 
         List<WitnessedTransactionAction> actions =
                 Iterables.getOnlyElement(history.history()).actions();
@@ -88,9 +94,7 @@ public void ringWorkflowContainsInitialReadsForRing() {
 
     @Test
     public void ringWorkflowContainsInitialWritesForRing() {
-        WorkflowHistory history = RingWorkflows.create(
-                        memoryStore, CONFIGURATION, MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)))
-                .run();
+        WorkflowHistory history = workflow.run();
 
         List<WitnessedTransactionAction> actions =
                 Iterables.getOnlyElement(history.history()).actions();
@@ -108,4 +112,17 @@ public void ringWorkflowContainsInitialWritesForRing() {
 
         assertThat(actualWrittenCells).containsAll(expectedWrittenCells);
     }
+
+    @Test
+    public void ringWorkflowSetsSkipRunningToTrueWhenInvalidRingPresent() {
+        memoryStore.readWrite(txn -> txn.write(TABLE_NAME, RingWorkflows.cell(0), 99));
+        workflow.run();
+        assertThat(skipRunning).isTrue();
+    }
+
+    @Test
+    public void ringWorkflowDoesNotWitnessTransactionWhenSkipRunningSetToTrue() {
+        skipRunning.set(true);
+        assertThat(workflow.run().history()).isEmpty();
+    }
 }ueu(f251b1b52d36a14f81512930b9200b695d77602b}(sha(f251b1b52d36a14f81512930b9200b695d77602bnode_idEC_kwDOAjP5fdoAKGYyNTFiMWI1MmQzNmExNGY4MTUxMjkzMGI5MjAwYjY5NWQ3NzYwMmIcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-15T23:34:23Zu	committer}(jL svc-autoreleasejL -pd-foundry-infrastructure-notify@palantir.comjL 2023-05-15T23:34:23Zumessage#Autorelease 0.854.0-rc14

[skip ci]tree}(jL (7798105d8a030b29d8973acfbb90d62ffad4930furl`https://api.github.com/repos/palantir/atlasdb/git/trees/7798105d8a030b29d8973acfbb90d62ffad4930fujM bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f251b1b52d36a14f81512930b9200b695d77602b
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRiwYAACgkQhbrR8ip7mDDnYgEAu+6Ek3p1SPbeL7enD0jkadaX
JrDiWOuxzJFdl1oo9noA/2wcRUCvF480a0Lij35EHhaIwlx3K50hmncd3KwRIewl
=84jv
-----END PGP SIGNATURE-----
payloadX)  tree 7798105d8a030b29d8973acfbb90d62ffad4930f
parent 0167f497681b5b85665494d98d1df82115da30b2
author aalouane <30903736+ergo14@users.noreply.github.com> 1684193663 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1684193663 +0000

Autorelease 0.854.0-rc14

[skip ci]uujM ^https://api.github.com/repos/palantir/atlasdb/commits/f251b1b52d36a14f81512930b9200b695d77602bhtml_urlShttps://github.com/palantir/atlasdb/commit/f251b1b52d36a14f81512930b9200b695d77602bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f251b1b52d36a14f81512930b9200b695d77602b/commentsjL }(loginergo14idJjL MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jM #https://api.github.com/users/ergo14jM https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujL }(jM svc-autoreleasejM J(jL MDQ6VXNlcjUxNzE4MzQ2jM 4https://avatars.githubusercontent.com/u/51718346?v=4jM h5jM ,https://api.github.com/users/svc-autoreleasejM "https://github.com/svc-autoreleasejM 6https://api.github.com/users/svc-autorelease/followersj!M Chttps://api.github.com/users/svc-autorelease/following{/other_user}j#M <https://api.github.com/users/svc-autorelease/gists{/gist_id}j%M Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j'M :https://api.github.com/users/svc-autorelease/subscriptionsj)M 1https://api.github.com/users/svc-autorelease/orgsj+M 2https://api.github.com/users/svc-autorelease/reposj-M =https://api.github.com/users/svc-autorelease/events{/privacy}j/M <https://api.github.com/users/svc-autorelease/received_eventsj1M Userj3M uparents]}(jL (0167f497681b5b85665494d98d1df82115da30b2jM ^https://api.github.com/repos/palantir/atlasdb/commits/0167f497681b5b85665494d98d1df82115da30b2jM Shttps://github.com/palantir/atlasdb/commit/0167f497681b5b85665494d98d1df82115da30b2uastats}(totalK 	additionsK 	deletionsK ufiles]u(d8ba2e317e25e958b7eb5c9a0c7a279378d73125}(sha(d8ba2e317e25e958b7eb5c9a0c7a279378d73125node_idEC_kwDOAjP5fdoAKGQ4YmEyZTMxN2UyNWU5NThiN2ViNWM5YTBjN2EyNzkzNzhkNzMxMjUcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-08-15T18:53:21Zu	committer}(j[M David Schlosnaglej]M davids@palantir.comj_M 2023-08-17T13:06:29Zumessagenetty 4.1.96.Finaltree}(jSM (0661fe340e66d9fc69ed8f5cdecf2cdfb0780291url`https://api.github.com/repos/palantir/atlasdb/git/trees/0661fe340e66d9fc69ed8f5cdecf2cdfb0780291ujkM bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d8ba2e317e25e958b7eb5c9a0c7a279378d73125
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmTeG1UACgkQR9hsJ74Q
0l+OSwf/dianEc8Lb2Yd0GRJj+9rhPaROr4Vk6tm0GK55lAxSQJA/PJkIiDZ5zkr
byHQHDVgsIpvNH073ugcmzOpkrzAH/bXsxYOSx42XmQN8G4JDJudVx8DCmjs7nKn
X+3oZkfQKWJ4JexrrjMuvTKJa4rmefp6yTaDpShuBpt+fJsL8b8naaQukNJHl9S3
rWqiSzP0wbcE6GBKjWsiR2LFbffcEDFwsXHQo+qS1er6kIOuUK22Ah066PljybMa
44gRA5rbM0rR704QCpsg6bXxOdwaQiVAwdZDEAUUi8wGHfBuYpwp8Fg26PTYpXMG
Z9S+2Dv4zA8F2wdABLgBu0D0lz33Kw==
=G4wo
-----END PGP SIGNATURE-----payloadtree 0661fe340e66d9fc69ed8f5cdecf2cdfb0780291
parent 784ffa617f6227260b669526581c3c0c1364f5d2
author David Schlosnagle <davids@palantir.com> 1692125601 -0400
committer David Schlosnagle <davids@palantir.com> 1692277589 -0400

netty 4.1.96.Final
uujkM ^https://api.github.com/repos/palantir/atlasdb/commits/d8ba2e317e25e958b7eb5c9a0c7a279378d73125html_urlShttps://github.com/palantir/atlasdb/commit/d8ba2e317e25e958b7eb5c9a0c7a279378d73125comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d8ba2e317e25e958b7eb5c9a0c7a279378d73125/commentsjYM }(loginschlosnaidMBjUM MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jkM %https://api.github.com/users/schlosnajyM https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujaM }(j~M schlosnajM MBjUM MDQ6VXNlcjU0NTk0jM 1https://avatars.githubusercontent.com/u/54594?v=4jM h5jkM %https://api.github.com/users/schlosnajyM https://github.com/schlosnajM /https://api.github.com/users/schlosna/followersjM <https://api.github.com/users/schlosna/following{/other_user}jM 5https://api.github.com/users/schlosna/gists{/gist_id}jM <https://api.github.com/users/schlosna/starred{/owner}{/repo}jM 3https://api.github.com/users/schlosna/subscriptionsjM *https://api.github.com/users/schlosna/orgsjM +https://api.github.com/users/schlosna/reposjM 6https://api.github.com/users/schlosna/events{/privacy}jM 5https://api.github.com/users/schlosna/received_eventsjM UserjM uparents]}(jSM (784ffa617f6227260b669526581c3c0c1364f5d2jkM ^https://api.github.com/repos/palantir/atlasdb/commits/784ffa617f6227260b669526581c3c0c1364f5d2jyM Shttps://github.com/palantir/atlasdb/commit/784ffa617f6227260b669526581c3c0c1364f5d2uastats}(totalK@	additionsK 	deletionsK ufiles](}(jSM (b6f399fb10c249e1ba44fc871ba39b28614e4244filename
versions.lockstatusmodifiedjM KjM KchangesK>blob_url_https://github.com/palantir/atlasdb/blob/d8ba2e317e25e958b7eb5c9a0c7a279378d73125/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/d8ba2e317e25e958b7eb5c9a0c7a279378d73125/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=d8ba2e317e25e958b7eb5c9a0c7a279378d73125patchX  @@ -155,37 +155,37 @@ io.dropwizard.metrics:metrics-jvm:4.2.12 (3 constraints: 1b2ec84e)
 io.dropwizard.metrics:metrics-logback:4.2.12 (1 constraints: b10e925e)
 io.dropwizard.metrics:metrics-servlets:4.2.12 (1 constraints: 730daf2c)
 io.leangen.geantyref:geantyref:1.3.13 (1 constraints: bb08bd94)
-io.netty:netty-all:4.1.90.Final (1 constraints: e21188fd)
-io.netty:netty-buffer:4.1.90.Final (14 constraints: 1fd940ae)
-io.netty:netty-codec:4.1.90.Final (7 constraints: 405eed3b)
-io.netty:netty-codec-dns:4.1.90.Final (2 constraints: a219b703)
-io.netty:netty-codec-haproxy:4.1.90.Final (1 constraints: fc0a07cf)
-io.netty:netty-codec-http:4.1.90.Final (2 constraints: 0b1ae71e)
-io.netty:netty-codec-http2:4.1.90.Final (1 constraints: fc0a07cf)
-io.netty:netty-codec-memcache:4.1.90.Final (1 constraints: fc0a07cf)
-io.netty:netty-codec-mqtt:4.1.90.Final (1 constraints: fc0a07cf)
-io.netty:netty-codec-redis:4.1.90.Final (1 constraints: fc0a07cf)
-io.netty:netty-codec-smtp:4.1.90.Final (1 constraints: fc0a07cf)
-io.netty:netty-codec-socks:4.1.90.Final (2 constraints: 0b1ae71e)
-io.netty:netty-codec-stomp:4.1.90.Final (1 constraints: fc0a07cf)
-io.netty:netty-codec-xml:4.1.90.Final (1 constraints: fc0a07cf)
-io.netty:netty-common:4.1.90.Final (17 constraints: 9f060892)
-io.netty:netty-handler:4.1.90.Final (5 constraints: b2435f26)
-io.netty:netty-handler-proxy:4.1.90.Final (2 constraints: 53120c2a)
-io.netty:netty-handler-ssl-ocsp:4.1.90.Final (1 constraints: fc0a07cf)
-io.netty:netty-resolver:4.1.90.Final (4 constraints: f133a9f6)
-io.netty:netty-resolver-dns:4.1.90.Final (2 constraints: fd1e17b0)
-io.netty:netty-resolver-dns-classes-macos:4.1.90.Final (2 constraints: 961eac8e)
-io.netty:netty-resolver-dns-native-macos:4.1.90.Final (1 constraints: fc0a07cf)
-io.netty:netty-transport:4.1.90.Final (14 constraints: c7d2039e)
-io.netty:netty-transport-classes-epoll:4.1.90.Final (2 constraints: a81d0734)
-io.netty:netty-transport-classes-kqueue:4.1.90.Final (2 constraints: 1c1ea555)
-io.netty:netty-transport-native-epoll:4.1.90.Final (1 constraints: fc0a07cf)
-io.netty:netty-transport-native-kqueue:4.1.90.Final (1 constraints: fc0a07cf)
-io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf9)
-io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
-io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
-io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
+io.netty:netty-all:4.1.96.Final (1 constraints: e21188fd)
+io.netty:netty-buffer:4.1.96.Final (14 constraints: 73d9731a)
+io.netty:netty-codec:4.1.96.Final (7 constraints: 6a5ea751)
+io.netty:netty-codec-dns:4.1.96.Final (2 constraints: ae190d05)
+io.netty:netty-codec-haproxy:4.1.96.Final (1 constraints: 020b31cf)
+io.netty:netty-codec-http:4.1.96.Final (2 constraints: 171a4320)
+io.netty:netty-codec-http2:4.1.96.Final (1 constraints: 020b31cf)
+io.netty:netty-codec-memcache:4.1.96.Final (1 constraints: 020b31cf)
+io.netty:netty-codec-mqtt:4.1.96.Final (1 constraints: 020b31cf)
+io.netty:netty-codec-redis:4.1.96.Final (1 constraints: 020b31cf)
+io.netty:netty-codec-smtp:4.1.96.Final (1 constraints: 020b31cf)
+io.netty:netty-codec-socks:4.1.96.Final (2 constraints: 171a4320)
+io.netty:netty-codec-stomp:4.1.96.Final (1 constraints: 020b31cf)
+io.netty:netty-codec-xml:4.1.96.Final (1 constraints: 020b31cf)
+io.netty:netty-common:4.1.96.Final (17 constraints: 05071332)
+io.netty:netty-handler:4.1.96.Final (5 constraints: ca432d2e)
+io.netty:netty-handler-proxy:4.1.96.Final (2 constraints: 5f122c2b)
+io.netty:netty-handler-ssl-ocsp:4.1.96.Final (1 constraints: 020b31cf)
+io.netty:netty-resolver:4.1.96.Final (4 constraints: 093409fd)
+io.netty:netty-resolver-dns:4.1.96.Final (2 constraints: 091fc1b1)
+io.netty:netty-resolver-dns-classes-macos:4.1.96.Final (2 constraints: a21e5090)
+io.netty:netty-resolver-dns-native-macos:4.1.96.Final (1 constraints: 020b31cf)
+io.netty:netty-transport:4.1.96.Final (14 constraints: 1bd32a0a)
+io.netty:netty-transport-classes-epoll:4.1.96.Final (2 constraints: b41d9935)
+io.netty:netty-transport-classes-kqueue:4.1.96.Final (2 constraints: 281e3d57)
+io.netty:netty-transport-native-epoll:4.1.96.Final (1 constraints: 020b31cf)
+io.netty:netty-transport-native-kqueue:4.1.96.Final (1 constraints: 020b31cf)
+io.netty:netty-transport-native-unix-common:4.1.96.Final (7 constraints: 2d787315)
+io.netty:netty-transport-rxtx:4.1.96.Final (1 constraints: 020b31cf)
+io.netty:netty-transport-sctp:4.1.96.Final (1 constraints: 020b31cf)
+io.netty:netty-transport-udt:4.1.96.Final (1 constraints: 020b31cf)
 io.undertow:undertow-core:2.2.24.Final (2 constraints: 321db506)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)u}(jSM (c1c24f24c45bed94bef4e379038b61cc68853ac5jM versions.propsjM modifiedjM KjM KjM KjM `https://github.com/palantir/atlasdb/blob/d8ba2e317e25e958b7eb5c9a0c7a279378d73125/versions.propsjM _https://github.com/palantir/atlasdb/raw/d8ba2e317e25e958b7eb5c9a0c7a279378d73125/versions.propsjM rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=d8ba2e317e25e958b7eb5c9a0c7a279378d73125jM X  @@ -45,7 +45,7 @@ commons-dbutils:* = 1.8.0
 commons-io:* = 2.13.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
-io.netty:* = 4.1.90.Final
+io.netty:* = 4.1.96.Final
 io.undertow:* = 2.2.24.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3ueu(b66c188b79060d2b1551740cf56ae3ecfe2f09af}(sha(b66c188b79060d2b1551740cf56ae3ecfe2f09afnode_idEC_kwDOAjP5fdoAKGI2NmMxODhiNzkwNjBkMmIxNTUxNzQwY2Y1NmFlM2VjZmUyZjA5YWYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-26T02:51:09Zu	committer}(jM Jeremy KongjM jkong@palantir.comjM 2023-06-26T02:51:09Zumessagereally buggifytree}(jM (e853a12f6cfd03f1516a802c98b1a22162d1c1b4url`https://api.github.com/repos/palantir/atlasdb/git/trees/e853a12f6cfd03f1516a802c98b1a22162d1c1b4ujM bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b66c188b79060d2b1551740cf56ae3ecfe2f09af
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSY/R0ACgkQTLdFKain
zjxRuwgA0xoaPuzGontx/v8HdkJISfkmBzLV4sfk6whDcYzXbjq7Ol7h7GBgQorC
Idgu7SvryXOuJozAzGkEre9VUnqA7scI4fHKSTnIvAL/yhKENugGtXesBlOjHfiB
34uoFmS4FMKPxusRXKRfwHJn9jzGp0893EC9wCiVWRx7azYoSGE23R7p0NRF1b1J
Qk4Najx1Y/O9r3I3kWtQiGo/Q97Tpv5hOv+m4SfvEpOm/4Yt1VPSy44YwDpz2ggv
BRvupzwMybw70oG6m8fMol0JrXAqwQ31LWB/yZNjNbarT9YVNtVI+shST5K+JiyU
2rNuwlBjQ15c2iyna0xrL4qM2vYxSQ==
=GrKY
-----END PGP SIGNATURE-----payloadtree e853a12f6cfd03f1516a802c98b1a22162d1c1b4
parent 1b79eb8cb4e8c177cadabfa174a7364a8adaaf2d
author Jeremy Kong <jkong@palantir.com> 1687747869 +0800
committer Jeremy Kong <jkong@palantir.com> 1687747869 +0800

really buggify
uujM ^https://api.github.com/repos/palantir/atlasdb/commits/b66c188b79060d2b1551740cf56ae3ecfe2f09afhtml_urlShttps://github.com/palantir/atlasdb/commit/b66c188b79060d2b1551740cf56ae3ecfe2f09afcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b66c188b79060d2b1551740cf56ae3ecfe2f09af/commentsjM }(login
jeremyk-91idJZ jM MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jM 'https://api.github.com/users/jeremyk-91jM https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujM }(jM 
jeremyk-91jM JZ jM MDQ6VXNlcjU5NTU1MTA=jN 3https://avatars.githubusercontent.com/u/5955510?v=4jN h5jM 'https://api.github.com/users/jeremyk-91jM https://github.com/jeremyk-91jN 1https://api.github.com/users/jeremyk-91/followersjN >https://api.github.com/users/jeremyk-91/following{/other_user}j
N 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jN >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jN 5https://api.github.com/users/jeremyk-91/subscriptionsjN ,https://api.github.com/users/jeremyk-91/orgsjN -https://api.github.com/users/jeremyk-91/reposjN 8https://api.github.com/users/jeremyk-91/events{/privacy}jN 7https://api.github.com/users/jeremyk-91/received_eventsjN UserjN uparents]}(jM (1b79eb8cb4e8c177cadabfa174a7364a8adaaf2djM ^https://api.github.com/repos/palantir/atlasdb/commits/1b79eb8cb4e8c177cadabfa174a7364a8adaaf2djM Shttps://github.com/palantir/atlasdb/commit/1b79eb8cb4e8c177cadabfa174a7364a8adaaf2duastats}(totalK	additionsK	deletionsKufiles](}(jM (aa09a5630607d4efb3bc048dde81a80c773328bbfilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj4N K
j5N KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b66c188b79060d2b1551740cf56ae3ecfe2f09af/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b66c188b79060d2b1551740cf56ae3ecfe2f09af/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=b66c188b79060d2b1551740cf56ae3ecfe2f09afpatchXn
  @@ -696,12 +696,14 @@ private ClosableIterator<Map.Entry<Cell, byte[]>> getRowColumnRangePostFiltered(
                 batchProvider,
                 rawIterator,
                 columnRangeSelection,
-                () -> {
-                    // Hello. I am bug.
-                },
+                SnapshotTransaction::cogitate,
                 raw -> getWithPostFilteringSync(tableRef, raw, Value.GET_VALUE));
     }
 
+    private static void cogitate() {
+        // Hello. I am bug.
+    }
+
     private Iterator<Map.Entry<Cell, Value>> getRowColumnRangePostFilteredWithoutSorting(
             TableReference tableRef,
             Iterator<Map.Entry<Cell, Value>> iterator,
@@ -778,7 +780,7 @@ protected Map.Entry<byte[], RowColumnRangeIterator> computeNext() {
                     protected Map.Entry<Cell, Value> computeNext() {
                         if (!peekableRawResults.hasNext()
                                 || !Arrays.equals(
-                                peekableRawResults.peek().getKey().getRowName(), nextRowName)) {
+                                        peekableRawResults.peek().getKey().getRowName(), nextRowName)) {
                             return endOfData();
                         }
                         return peekableRawResults.next();
@@ -1175,7 +1177,7 @@ private List<Map.Entry<Cell, byte[]>> getPostFilteredWithLocalWrites(
                 postFiltered.entrySet(),
                 Predicates.compose(Predicates.in(prePostFilterCells.keySet()), MapEntries.getKeyFunction()));
         Collection<Map.Entry<Cell, byte[]>> localWritesInRange = getLocalWritesForRange(
-                tableRef, rangeRequest.getStartInclusive(), endRowExclusive, rangeRequest.getColumnNames())
+                        tableRef, rangeRequest.getStartInclusive(), endRowExclusive, rangeRequest.getColumnNames())
                 .entrySet();
         return mergeInLocalWrites(
                 tableRef, postFilteredCells.iterator(), localWritesInRange.iterator(), rangeRequest.isReverse());
@@ -1212,9 +1214,9 @@ private <K extends Exception> boolean getBatchingVisitableFromIterator(
             int preFilterBatchSize)
             throws K {
         try (ClosableIterator<RowResult<byte[]>> postFilterIterator =
-                     postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
+                postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
             Iterator<RowResult<byte[]>> localWritesInRange = Cells.createRowView(getLocalWritesForRange(
-                    tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
+                            tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
                     .entrySet());
             Iterator<RowResult<byte[]>> mergeIterators =
                     mergeInLocalWritesRows(postFilterIterator, localWritesInRange, range.isReverse(), tableRef);
@@ -2067,7 +2069,7 @@ private void timedAndTraced(String timerName, Runnable runnable) {
 
     private <T> T timedAndTraced(String timerName, Supplier<T> supplier) {
         try (Timer.Context timer = getTimer(timerName).time();
-             CloseableTracer tracer = CloseableTracer.startSpan(timerName)) {
+                CloseableTracer tracer = CloseableTracer.startSpan(timerName)) {
             return supplier.get();
         }
     }u}(jM (24aa3100b9bd91efe7ffe228e4e7ea9f24aceb56j:N latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj<N modifiedj4N Kj5N Kj>N Kj?N https://github.com/palantir/atlasdb/blob/b66c188b79060d2b1551740cf56ae3ecfe2f09af/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javajAN https://github.com/palantir/atlasdb/raw/b66c188b79060d2b1551740cf56ae3ecfe2f09af/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javajCN https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=b66c188b79060d2b1551740cf56ae3ecfe2f09afjEN X  @@ -45,9 +45,7 @@
 import java.util.concurrent.TimeUnit;
 import java.util.function.BiFunction;
 import java.util.function.Function;
-import java.util.stream.Collectors;
 import javax.annotation.concurrent.NotThreadSafe;
-import one.util.streamex.EntryStream;
 
 @NotThreadSafe
 final class AtlasDbInteractiveTransaction implements InteractiveTransaction {
@@ -122,7 +120,8 @@ public List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRang
                         columnsAndValues.add(ColumnValue.of(
                                 AtlasDbUtils.fromAtlasColumn(entry.getKey().getColumnName()),
                                 AtlasDbUtils.fromAtlasValue(entry.getValue())));
-                        DefaultBuggifyFactory.INSTANCE.maybe(0.5)
+                        DefaultBuggifyFactory.INSTANCE
+                                .maybe(0.5)
                                 .run(() -> Uninterruptibles.sleepUninterruptibly(3, TimeUnit.SECONDS));
                     }
 u}(jM (726bb7f9f1a61f2da69e1712483c0a1dbbba22e4j:N *scripts/circle-ci/publish-to-antithesis.shj<N modifiedj4N Kj5N Kj>N Kj?N https://github.com/palantir/atlasdb/blob/b66c188b79060d2b1551740cf56ae3ecfe2f09af/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shjAN https://github.com/palantir/atlasdb/raw/b66c188b79060d2b1551740cf56ae3ecfe2f09af/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shjCN https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=b66c188b79060d2b1551740cf56ae3ecfe2f09afjEN X=  @@ -41,5 +41,7 @@ docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${1}
 
 if [[ "$1" = "config-check" ]]; then
   echo "Triggering simulation on Antithesis via the config-check webhook."
-  curl -v -u "palantir:${ANTITHESIS_WEBHOOK_PASSWORD}" -X POST https://palantir.antithesis.com/api/v1/launch_experiment/palantir__delta__baseline
+  curl -v -u "palantir:${ANTITHESIS_WEBHOOK_PASSWORD}" -X POST https://palantir.antithesis.com/api/v1/launch_experiment/palantir__charlie__baseline
+  curl -v -u "palantir:${ANTITHESIS_WEBHOOK_PASSWORD}" -X POST https://palantir.antithesis.com/api/v1/launch_experiment/palantir__bravo__baseline
+  curl -v -u "palantir:${ANTITHESIS_WEBHOOK_PASSWORD}" -X POST https://palantir.antithesis.com/api/v1/launch_experiment/palantir__bravo__minimal
 fi
\ No newline at end of fileueu(810fe203706d93ed7bfc94147d7eb1fecc7ac494}(sha(810fe203706d93ed7bfc94147d7eb1fecc7ac494node_idEC_kwDOAjP5fdoAKDgxMGZlMjAzNzA2ZDkzZWQ3YmZjOTQxNDdkN2ViMWZlY2M3YWM0OTQcommit}(author}(nameJoan Jimenezemailjjimenez@palantir.comdate2023-03-31T12:35:24Zu	committer}(jaN Joan JimenezjcN jjimenez@palantir.comjeN 2023-03-31T12:35:24Zumessage
bump postgrestree}(jYN (a6503572fcc96b1d57d866bb815c926123787d2furl`https://api.github.com/repos/palantir/atlasdb/git/trees/a6503572fcc96b1d57d866bb815c926123787d2fujqN bhttps://api.github.com/repos/palantir/atlasdb/git/commits/810fe203706d93ed7bfc94147d7eb1fecc7ac494
comment_countK verification}(verifiedreasonno_user	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEqRb/hGzCYzhNL2ICsciB0G+oge8FAmQm04wACgkQsciB0G+o
ge+QqAf+LqNAqiAUqHhrIvUVv2PFOZNv/E7kJdDQmUHK6O5C7dwl5FE6308tXXD6
emV5ctwn45WOjAnuJBK0HlY3Ivg+zGpVCrwTit9tQ23t6s8n4pmhQ+gZWdnsfBoU
SHun/kFyRJm1Rri+QJH0JRXWxA0i/q2wUWjN9b+f9tz29x69khHoCswicL3FJB0D
aA7eFevDvUsMp2Z2gnxhq3trnbwAvsgmHL9lhrrtzR0c3sb0M8z/Xxxmo9+wjSqo
bQFqtLrD+GvfWRi/xlLcGWPUmLYDUNC6BXp8bbZ8xcqg7XakU6nzlbJ/FfYZgEYW
lTHJvtv84+X4d/9mu0kks6XS1/5qhQ==
=cSYP
-----END PGP SIGNATURE-----payloadtree a6503572fcc96b1d57d866bb815c926123787d2f
parent 7cc5501bd242badcf433815b00b31d3574efa99c
author Joan Jimenez <jjimenez@palantir.com> 1680266124 +0200
committer Joan Jimenez <jjimenez@palantir.com> 1680266124 +0200

bump postgres
uujqN ^https://api.github.com/repos/palantir/atlasdb/commits/810fe203706d93ed7bfc94147d7eb1fecc7ac494html_urlShttps://github.com/palantir/atlasdb/commit/810fe203706d93ed7bfc94147d7eb1fecc7ac494comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/810fe203706d93ed7bfc94147d7eb1fecc7ac494/commentsj_N NjgN Nparents]}(jYN (7cc5501bd242badcf433815b00b31d3574efa99cjqN ^https://api.github.com/repos/palantir/atlasdb/commits/7cc5501bd242badcf433815b00b31d3574efa99cjN Shttps://github.com/palantir/atlasdb/commit/7cc5501bd242badcf433815b00b31d3574efa99cuastats}(totalK	additionsK	deletionsKufiles](}(jYN (525fdb350bc2f8468190f9bf23e6e9e078f1e0ddfilename
versions.lockstatusmodifiedjN KjN KchangesKblob_url_https://github.com/palantir/atlasdb/blob/810fe203706d93ed7bfc94147d7eb1fecc7ac494/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/810fe203706d93ed7bfc94147d7eb1fecc7ac494/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=810fe203706d93ed7bfc94147d7eb1fecc7ac494patchX  @@ -302,7 +302,7 @@ org.ow2.asm:asm-analysis:5.0.3 (1 constraints: ee09d4b2)
 org.ow2.asm:asm-commons:5.0.3 (1 constraints: ee09d4b2)
 org.ow2.asm:asm-tree:5.0.3 (4 constraints: d8272223)
 org.ow2.asm:asm-util:5.0.3 (1 constraints: ee09d4b2)
-org.postgresql:postgresql:42.4.1 (1 constraints: 3d05503b)
+org.postgresql:postgresql:42.4.3 (1 constraints: 3f05523b)
 org.reflections:reflections:0.10.2 (1 constraints: 3505253b)
 org.rocksdb:rocksdbjni:7.7.3 (1 constraints: 13052636)
 org.slf4j:jcl-over-slf4j:1.7.36 (3 constraints: 492febed)u}(jYN (29db6add2c347830a5429215a06b16b4c54fe914jN versions.propsjN modifiedjN KjN KjN KjN `https://github.com/palantir/atlasdb/blob/810fe203706d93ed7bfc94147d7eb1fecc7ac494/versions.propsjN _https://github.com/palantir/atlasdb/raw/810fe203706d93ed7bfc94147d7eb1fecc7ac494/versions.propsjN rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=810fe203706d93ed7bfc94147d7eb1fecc7ac494jN XU  @@ -96,7 +96,7 @@ ch.qos.logback:* = 1.2.11
 com.datastax.cassandra:cassandra-driver-core = 3.8.0
 com.oracle.database.jdbc:ojdbc11 = 21.5.0.0
 com.palantir.cassandra:* = 2.2.18-1.108.0
-org.postgresql:postgresql = 42.4.1
+org.postgresql:postgresql = 42.4.3
 
 # transitive dep with API breaks in 0.14.0
 org.apache.thrift:libthrift = 0.17.0ueu(a3df087c4d1197da01ae9c56061c6e983b5180da}(sha(a3df087c4d1197da01ae9c56061c6e983b5180danode_idEC_kwDOAjP5fdoAKGEzZGYwODdjNGQxMTk3ZGEwMWFlOWM1NjA2MWM2ZTk4M2I1MTgwZGEcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-20T14:52:03Zu	committer}(jN 
Ahmed AlouanejN aalouane@palantir.comjN 2023-04-20T14:52:03Zumessage2xlargetree}(jN (eaf3f5a2fcb82456bd252c0e8487424019083955url`https://api.github.com/repos/palantir/atlasdb/git/trees/eaf3f5a2fcb82456bd252c0e8487424019083955ujN bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a3df087c4d1197da01ae9c56061c6e983b5180da
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRBUZMACgkQPlMHVIT1
yhoZGQf/WwaGhcAWN8OyUa1XsNf16bqw8GYd69+4S2auHOHNgVj7rLmD4kKnakm6
ajV2BsufkFtDjGIc12/saUQF29bMqRppgxn886te6eKACCeqbw278uHTCt9nkoeX
3mUVySH4rlTFbGUK6mvMiNgSbPaHV1hzplEdQ4wna6ksb1z/K5DaTfxUV0hbBU4A
hixwTt/Rbu5yAOfa4hkU4WKf5T9T14OjbY27ITrn4Qx7AXwHHIXlzzZ4i44G5Bi4
/OubY1rmfyUBgwGdHfUhAJ4yG/X++O5bw32GJCnD2Q055GRR5ITAU1glb11razGH
VL5fMKju0+9csJl8/DS76pMVkOI6UA==
=W8aC
-----END PGP SIGNATURE-----payloadtree eaf3f5a2fcb82456bd252c0e8487424019083955
parent 6e3a30e696ee75b5216d90ee061aabfc533cabb5
author Ahmed Alouane <aalouane@palantir.com> 1682002323 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682002323 +0100

2xlarge
uujN ^https://api.github.com/repos/palantir/atlasdb/commits/a3df087c4d1197da01ae9c56061c6e983b5180dahtml_urlShttps://github.com/palantir/atlasdb/commit/a3df087c4d1197da01ae9c56061c6e983b5180dacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a3df087c4d1197da01ae9c56061c6e983b5180da/commentsjN }(loginergo14idJjN MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jN #https://api.github.com/users/ergo14jN https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujN }(jN ergo14jN JjN MDQ6VXNlcjMwOTAzNzM2jN 4https://avatars.githubusercontent.com/u/30903736?v=4jN h5jN #https://api.github.com/users/ergo14jN https://github.com/ergo14jN -https://api.github.com/users/ergo14/followersjN :https://api.github.com/users/ergo14/following{/other_user}jN 3https://api.github.com/users/ergo14/gists{/gist_id}jN :https://api.github.com/users/ergo14/starred{/owner}{/repo}jN 1https://api.github.com/users/ergo14/subscriptionsjN (https://api.github.com/users/ergo14/orgsjN )https://api.github.com/users/ergo14/reposjN 4https://api.github.com/users/ergo14/events{/privacy}jN 3https://api.github.com/users/ergo14/received_eventsjN UserjN uparents]}(jN (6e3a30e696ee75b5216d90ee061aabfc533cabb5jN ^https://api.github.com/repos/palantir/atlasdb/commits/6e3a30e696ee75b5216d90ee061aabfc533cabb5jN Shttps://github.com/palantir/atlasdb/commit/6e3a30e696ee75b5216d90ee061aabfc533cabb5uastats}(totalK	additionsK	deletionsKufiles]}(jN (d2b3c3b68679a697a69d34da94a33bd15fd0e53afilename.circleci/config.ymlstatusmodifiedjO KjO KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/a3df087c4d1197da01ae9c56061c6e983b5180da/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/a3df087c4d1197da01ae9c56061c6e983b5180da/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=a3df087c4d1197da01ae9c56061c6e983b5180dapatchX}  @@ -4,7 +4,7 @@ jobs:
   build:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: xlarge
+    resource_class: 2xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"uau(afbbedbbe5961cc1af6f6e4e99ff6821eee4b70f}(sha(afbbedbbe5961cc1af6f6e4e99ff6821eee4b70fnode_idEC_kwDOAjP5fdoAKGFmYmJlZGJiZTU5NjFjYzFhZjZmNmU0ZTk5ZmY2ODIxZWVlNGI3MGYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-27T14:26:31Zu	committer}(j(O 
Sam Kramerj*O skramer@palantir.comj,O 2023-06-27T14:26:46ZumessageEven smallertree}(j O (51bceacc0b636367056f005f23abc05b9c49142curl`https://api.github.com/repos/palantir/atlasdb/git/trees/51bceacc0b636367056f005f23abc05b9c49142cuj8O bhttps://api.github.com/repos/palantir/atlasdb/git/commits/afbbedbbe5961cc1af6f6e4e99ff6821eee4b70f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSa8aYACgkQmPPOpKR4
XS0O2wgAgAbt2VfDXTO9ovkHiY35iHwmM6Jf3AtMEoU1uAWKgM/ZTVjkDagikgA4
8wJ/XXZluUKUEWPW/qqhMWVWUA8kcOcYmaxmvgBC8JBJ9ukCAUlRNNBNTzIEjvFr
vGxs9xD7CCm4Vt4N35D4W9FbBnExLCVsYEVQWP3RQBy4GYfOuSNG4aGT7r7iMMDf
ye3D0Qx2YNCKpHLNKO1Njn9uQo5bir+asofEk1F6CigeN5H0Awslzj0P9UAhJmEp
UxnH/+ghhjJaJIBg4mkceVG70uiNOrWG6XZxwRyCTn4voyBbCimqoB0wZ3jb9Tiy
+WqfiECSrXP/cfWeXvn1jD8QxdaJLQ==
=kdSJ
-----END PGP SIGNATURE-----payloadtree 51bceacc0b636367056f005f23abc05b9c49142c
parent 2d5566aaf2e4f58da7ae556899c3888be6fc948e
author Sam Kramer <skramer@palantir.com> 1687875991 +0100
committer Sam Kramer <skramer@palantir.com> 1687876006 +0100

Even smaller
uuj8O ^https://api.github.com/repos/palantir/atlasdb/commits/afbbedbbe5961cc1af6f6e4e99ff6821eee4b70fhtml_urlShttps://github.com/palantir/atlasdb/commit/afbbedbbe5961cc1af6f6e4e99ff6821eee4b70fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/afbbedbbe5961cc1af6f6e4e99ff6821eee4b70f/commentsj&O }(login
Sam-KrameridJ^2_ j"O MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j8O 'https://api.github.com/users/Sam-KramerjFO https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj.O }(jKO 
Sam-KramerjMO J^2_ j"O MDQ6VXNlcjYyMzg4MTQ=jOO 3https://avatars.githubusercontent.com/u/6238814?v=4jQO h5j8O 'https://api.github.com/users/Sam-KramerjFO https://github.com/Sam-KramerjTO 1https://api.github.com/users/Sam-Kramer/followersjVO >https://api.github.com/users/Sam-Kramer/following{/other_user}jXO 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jZO >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j\O 5https://api.github.com/users/Sam-Kramer/subscriptionsj^O ,https://api.github.com/users/Sam-Kramer/orgsj`O -https://api.github.com/users/Sam-Kramer/reposjbO 8https://api.github.com/users/Sam-Kramer/events{/privacy}jdO 7https://api.github.com/users/Sam-Kramer/received_eventsjfO UserjhO uparents]}(j O (2d5566aaf2e4f58da7ae556899c3888be6fc948ej8O ^https://api.github.com/repos/palantir/atlasdb/commits/2d5566aaf2e4f58da7ae556899c3888be6fc948ejFO Shttps://github.com/palantir/atlasdb/commit/2d5566aaf2e4f58da7ae556899c3888be6fc948euastats}(totalK	additionsK	deletionsKufiles]}(j O (2bd5e37bcacd2f7043fd088f3efc8b2888b3d9a6filenamehatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/BatchSizeIncreasingIterator.javastatusmodifiedjO KjO KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/afbbedbbe5961cc1af6f6e4e99ff6821eee4b70f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javaraw_urlhttps://github.com/palantir/atlasdb/raw/afbbedbbe5961cc1af6f6e4e99ff6821eee4b70f/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FBatchSizeIncreasingIterator.java?ref=afbbedbbe5961cc1af6f6e4e99ff6821eee4b70fpatchX  @@ -30,7 +30,7 @@
 
 public class BatchSizeIncreasingIterator<T> implements Closeable {
     private static final SafeLogger log = SafeLoggerFactory.get(BatchSizeIncreasingIterator.class);
-    private static final int MAX_BATCH_SIZE = 1000;
+    private static final int MAX_BATCH_SIZE = 10;
 
     private final int originalBatchSize;
     private final BatchProvider<T> batchProvider;uau(c7100836fe4d519d2e44e89f709787c791452fe0}(sha(c7100836fe4d519d2e44e89f709787c791452fe0node_idEC_kwDOAjP5fdoAKGM3MTAwODM2ZmU0ZDUxOWQyZTQ0ZTg5ZjcwOTc4N2M3OTE0NTJmZTAcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-08-16T13:32:56Zu	committer}(jO David SchlosnaglejO davids@palantir.comjO 2023-08-16T13:32:56Zumessage!Fix GuardedByChecker in SQLStringtree}(jO (bcb93b7a372871ffb60db7694f7c5fd1651664e5url`https://api.github.com/repos/palantir/atlasdb/git/trees/bcb93b7a372871ffb60db7694f7c5fd1651664e5ujO bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c7100836fe4d519d2e44e89f709787c791452fe0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmTc0AgACgkQR9hsJ74Q
0l8IAggAjMo1scohQx1UTZdtZZvCusA4/9zEyJtJcPqACW19HBjio8LGE+rYzCC5
RWHcXmi8fOLsYBP4ev09WmtRQXUJVosa6xNX+9QRakiyxphdAWIJ7PDEgg5a35jv
O9xMj/8dyy73dDyMlw/KDpI659wQ0V+9Y4vaG1Bo8GXMeVoAaAcpVQTWkGu1bc6q
vHqfjs2UmG8D/4CrE8i9UxJ9FNyRQBERnCw9luHeEUJFSxFs9m7qB4wfRu/Iba7f
N4UHQr0shDYX0un1OmBZXhlsgSdFZGVaHmz6npKF+VLnEIpUDgRjMTJDdPgGC1Ss
oVm5UDPsqOl7drTnuGfbVMy4Hh75RQ==
=L4xG
-----END PGP SIGNATURE-----payloadX  tree bcb93b7a372871ffb60db7694f7c5fd1651664e5
parent 6cd1200704cf2dc6eb809129d7041f04706b568d
author David Schlosnagle <davids@palantir.com> 1692192776 -0400
committer David Schlosnagle <davids@palantir.com> 1692192776 -0400

Fix GuardedByChecker in SQLString
uujO ^https://api.github.com/repos/palantir/atlasdb/commits/c7100836fe4d519d2e44e89f709787c791452fe0html_urlShttps://github.com/palantir/atlasdb/commit/c7100836fe4d519d2e44e89f709787c791452fe0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c7100836fe4d519d2e44e89f709787c791452fe0/commentsjO }(loginschlosnaidMBjO MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jO %https://api.github.com/users/schlosnajO https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujO }(jO schlosnajO MBjO MDQ6VXNlcjU0NTk0jO 1https://avatars.githubusercontent.com/u/54594?v=4jO h5jO %https://api.github.com/users/schlosnajO https://github.com/schlosnajO /https://api.github.com/users/schlosna/followersjO <https://api.github.com/users/schlosna/following{/other_user}jO 5https://api.github.com/users/schlosna/gists{/gist_id}jO <https://api.github.com/users/schlosna/starred{/owner}{/repo}jO 3https://api.github.com/users/schlosna/subscriptionsjO *https://api.github.com/users/schlosna/orgsjO +https://api.github.com/users/schlosna/reposjO 6https://api.github.com/users/schlosna/events{/privacy}jO 5https://api.github.com/users/schlosna/received_eventsjO UserjO uparents]}(jO (6cd1200704cf2dc6eb809129d7041f04706b568djO ^https://api.github.com/repos/palantir/atlasdb/commits/6cd1200704cf2dc6eb809129d7041f04706b568djO Shttps://github.com/palantir/atlasdb/commit/6cd1200704cf2dc6eb809129d7041f04706b568duastats}(totalK	additionsK	deletionsKufiles]}(jO (5fc664820873e7e0ea5de63cd02a1d9927a25512filenameAcommons-db/src/main/java/com/palantir/nexus/db/sql/SQLString.javastatusmodifiedjO KjO KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/c7100836fe4d519d2e44e89f709787c791452fe0/commons-db%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fsql%2FSQLString.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c7100836fe4d519d2e44e89f709787c791452fe0/commons-db%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fsql%2FSQLString.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/commons-db%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fsql%2FSQLString.java?ref=c7100836fe4d519d2e44e89f709787c791452fe0patchX  @@ -165,13 +165,15 @@ public static boolean isQueryRegistered(String key) {
      * @param dbType Look for queries registered with this override first
      * @return a SQLString object representing the stored query
      */
-    @SuppressWarnings("GuardedByChecker")
     static FinalSQLString getByKey(final String key, DBType dbType) {
         assert isValidKey(key) : "Keys only consist of word characters"; // $NON-NLS-1$
         assert registeredValues.containsKey(key) || registeredValuesOverride.containsKey(key)
                 : "Couldn't find SQLString key: " + key + ", dbtype " + dbType; // $NON-NLS-1$ //$NON-NLS-2$
 
-        FinalSQLString cached = cachedKeyed.get(key);
+        FinalSQLString cached;
+        synchronized (cacheLock) {
+            cached = cachedKeyed.get(key);
+        }
         if (null != cached) {
             callbackOnUse.noteUse((SQLString) cached.delegate);
             return cached;
@@ -209,7 +211,6 @@ public static boolean isValidKey(final String key) {
      * @param sql The string to be used in a query
      * @return a SQLString object representing the given SQL
      */
-    @SuppressWarnings("GuardedByChecker")
     static FinalSQLString getUnregisteredQuery(String sql) {
         assert !isValidKey(sql) : "Unregistered Queries should not look like keys"; // $NON-NLS-1$
         return new FinalSQLString(new SQLString(sql));
@@ -423,9 +424,10 @@ protected static ImmutableMap<String, FinalSQLString> getCachedUnregistered() {
     @Deprecated
     protected static void setCachedUnregistered(ImmutableMap<String, FinalSQLString> _cachedUnregistered) {}
 
-    @SuppressWarnings("GuardedByChecker")
     protected static ImmutableMap<String, FinalSQLString> getCachedKeyed() {
-        return cachedKeyed;
+        synchronized (cacheLock) {
+            return cachedKeyed;
+        }
     }
 
     protected static void setCachedKeyed(ImmutableMap<String, FinalSQLString> cachedKeyed) {uau(f612f574bb865b66a1fab8973cc7231ab0c220be}(sha(f612f574bb865b66a1fab8973cc7231ab0c220benode_idEC_kwDOAjP5fdoAKGY2MTJmNTc0YmI4NjViNjZhMWZhYjg5NzNjYzcyMzFhYjBjMjIwYmUcommit}(author}(name
Louis Bembergemail.62842976+louisbemberg@users.noreply.github.comdate2023-06-29T15:15:56Zu	committer}(jP GitHubjP noreply@github.comjP 2023-06-29T15:15:56ZumessageBBump snappy-java to 1.1.10.1 (#6649)

bump snappy-java to 1.1.10.1tree}(jP (60bda767f12f597b4c1bf76d68b0b7b552fdfa2aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/60bda767f12f597b4c1bf76d68b0b7b552fdfa2auj&P bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f612f574bb865b66a1fab8973cc7231ab0c220be
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJknaAsCRBK7hj4Ov3rIwAAXbwIAHW/rD8Gz/aw8WpqF2wGpl90
8DxA6RESGv+EPI4ApuXC6Z8HssdOkstV78M0msVssyiOJtqWOSFoZ7DKcGlLHuHb
5bm4JaL8/Eh/6HZAo5AhxSWlda6bipi7vGm9YpTkrMSAb64VzcTIowAnbb6RMDUL
uVsxOYHa29nCcRtH37MshYo/HhL4XuMGajGTe0jaIWAIxcRcKUFrsnYHWOxniJTQ
jDAYp8eskWX7o91ODltOobaGH6gLZHT3NOQqmS6POiVj16gzD4WSzt94wLbYrOz0
H6Xx5iD5RQosp4Ya+kl9GLHBFaxr2gJWsTBOztuhsJ9Q6hsO2ovvdPjDgzNeAts=
=ieIE
-----END PGP SIGNATURE-----
payloadX0  tree 60bda767f12f597b4c1bf76d68b0b7b552fdfa2a
parent b67eb26ee9d8964b7565a92186d37e5512ea124f
author Louis Bemberg <62842976+louisbemberg@users.noreply.github.com> 1688051756 -0400
committer GitHub <noreply@github.com> 1688051756 +0000

Bump snappy-java to 1.1.10.1 (#6649)

bump snappy-java to 1.1.10.1
uuj&P ^https://api.github.com/repos/palantir/atlasdb/commits/f612f574bb865b66a1fab8973cc7231ab0c220behtml_urlShttps://github.com/palantir/atlasdb/commit/f612f574bb865b66a1fab8973cc7231ab0c220becomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f612f574bb865b66a1fab8973cc7231ab0c220be/commentsjP }(loginlouisbembergidJ`jP MDQ6VXNlcjYyODQyOTc2
avatar_url4https://avatars.githubusercontent.com/u/62842976?v=4gravatar_idh5j&P )https://api.github.com/users/louisbembergj4P https://github.com/louisbemberg
followers_url3https://api.github.com/users/louisbemberg/followers
following_url@https://api.github.com/users/louisbemberg/following{/other_user}	gists_url9https://api.github.com/users/louisbemberg/gists{/gist_id}starred_url@https://api.github.com/users/louisbemberg/starred{/owner}{/repo}subscriptions_url7https://api.github.com/users/louisbemberg/subscriptionsorganizations_url.https://api.github.com/users/louisbemberg/orgs	repos_url/https://api.github.com/users/louisbemberg/repos
events_url:https://api.github.com/users/louisbemberg/events{/privacy}received_events_url9https://api.github.com/users/louisbemberg/received_eventstypeUser
site_adminujP }(j9P web-flowj;P J/jP MDQ6VXNlcjE5ODY0NDQ3j=P 4https://avatars.githubusercontent.com/u/19864447?v=4j?P h5j&P %https://api.github.com/users/web-flowj4P https://github.com/web-flowjBP /https://api.github.com/users/web-flow/followersjDP <https://api.github.com/users/web-flow/following{/other_user}jFP 5https://api.github.com/users/web-flow/gists{/gist_id}jHP <https://api.github.com/users/web-flow/starred{/owner}{/repo}jJP 3https://api.github.com/users/web-flow/subscriptionsjLP *https://api.github.com/users/web-flow/orgsjNP +https://api.github.com/users/web-flow/reposjPP 6https://api.github.com/users/web-flow/events{/privacy}jRP 5https://api.github.com/users/web-flow/received_eventsjTP UserjVP uparents]}(jP (b67eb26ee9d8964b7565a92186d37e5512ea124fj&P ^https://api.github.com/repos/palantir/atlasdb/commits/b67eb26ee9d8964b7565a92186d37e5512ea124fj4P Shttps://github.com/palantir/atlasdb/commit/b67eb26ee9d8964b7565a92186d37e5512ea124fuastats}(totalK		additionsK	deletionsKufiles](}(jP (aa4df8d917755227eec390dd5e0d424aebabf4c7filename$changelog/@unreleased/pr-6649.v2.ymlstatusaddedjpP KjqP K changesKblob_url|https://github.com/palantir/atlasdb/blob/f612f574bb865b66a1fab8973cc7231ab0c220be/changelog%2F%40unreleased%2Fpr-6649.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/f612f574bb865b66a1fab8973cc7231ab0c220be/changelog%2F%40unreleased%2Fpr-6649.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6649.v2.yml?ref=f612f574bb865b66a1fab8973cc7231ab0c220bepatch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: bump snappy-java to 1.1.10.1
+  links:
+  - https://github.com/palantir/atlasdb/pull/6649u}(jP (d3392a1c1b4cebd374d23f72a1c5cd73c77b3bc2jvP 
versions.lockjxP modifiedjpP KjqP KjzP Kj{P _https://github.com/palantir/atlasdb/blob/f612f574bb865b66a1fab8973cc7231ab0c220be/versions.lockj}P ^https://github.com/palantir/atlasdb/raw/f612f574bb865b66a1fab8973cc7231ab0c220be/versions.lockjP qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=f612f574bb865b66a1fab8973cc7231ab0c220bejP X  @@ -313,7 +313,7 @@ org.slf4j:slf4j-api:1.7.36 (44 constraints: 8180995b)
 org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
 org.wildfly.common:wildfly-common:1.6.0.Final (4 constraints: 3f390b3d)
 org.xerial:sqlite-jdbc:3.42.0.0 (1 constraints: 99054946)
-org.xerial.snappy:snappy-java:1.1.8 (2 constraints: 011529cb)
+org.xerial.snappy:snappy-java:1.1.10.1 (2 constraints: 891546f4)
 org.yaml:snakeyaml:1.33 (5 constraints: 0a4c5570)
 
 [Test dependencies]u}(jP (04244236509f194bcfe0d83350f2346909da1318jvP versions.propsjxP modifiedjpP KjqP KjzP Kj{P `https://github.com/palantir/atlasdb/blob/f612f574bb865b66a1fab8973cc7231ab0c220be/versions.propsj}P _https://github.com/palantir/atlasdb/raw/f612f574bb865b66a1fab8973cc7231ab0c220be/versions.propsjP rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=f612f574bb865b66a1fab8973cc7231ab0c220bejP XO  @@ -78,7 +78,7 @@ org.reflections:reflections = 0.10.2
 org.rocksdb:rocksdbjni = 7.9.2
 org.slf4j:* = 1.7.36
 org.wildfly.common:wildfly-common = 1.6.0.Final
-org.xerial.snappy:snappy-java = 1.1.8
+org.xerial.snappy:snappy-java = 1.1.10.1
 org.xerial:sqlite-jdbc = 3.42.0.0
 org.yaml:snakeyaml = 1.33
 uk.org.lidalia:slf4j-test = 1.1.0ueu!     (a2ef728bbf6192f5b8f9f9bd16f69671aa9c4283}(sha(a2ef728bbf6192f5b8f9f9bd16f69671aa9c4283node_idEC_kwDOAjP5fdoAKGEyZWY3MjhiYmY2MTkyZjViOGY5ZjliZDE2ZjY5NjcxYWE5YzQyODMcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-04-28T11:51:33Zu	committer}(jP GitHubjP noreply@github.comjP 2023-04-28T11:51:33ZumessagevProper tag publishing for antithesis (#6552)

No longer publish docker images with the tag `unspecified` to Antithesistree}(jP (0e8c9bdd9b99c3334fb2bc75f8f66c1fc9239287url`https://api.github.com/repos/palantir/atlasdb/git/trees/0e8c9bdd9b99c3334fb2bc75f8f66c1fc9239287ujP bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a2ef728bbf6192f5b8f9f9bd16f69671aa9c4283
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkS7NFCRBK7hj4Ov3rIwAABrwIAE9buGGz/9xp/QM1cJy4kjx6
woGiEVB6Vs01dMJwNM2EvIdZE5euxTfaqlBFVZVpfrMRgZhhY7NzNwXkVZRDdOhT
1i5xAglTgJTQu8T8wgaFg8b2k2/5lgeC9wCp/MsNBxSWbkYnTWJi7vuXxPYLTBgL
L4nrDeCugXJb/hanGrgtUzmWJAOIhv0xr9bj+N6sTmASgXB4HWxPMdeixZHWtC67
6aRInb+nlSpHCkKAs6/b/h5DWENam7ytesGqwHyfOOaF9CGI4rrLSmXyKe2GO4Hm
rbhZTnonGqLKZMjuSxMkHVnXbgEDI+YtKAmDMhHlz2RfUVZU9XlDtiSWR/ToxhI=
=DN+H
-----END PGP SIGNATURE-----
payloadXI  tree 0e8c9bdd9b99c3334fb2bc75f8f66c1fc9239287
parent 43adb2ed2ed640a3862ee0527e4d5f8ba090356a
author Sam-Kramer <sam.c.kramer@gmail.com> 1682682693 +0100
committer GitHub <noreply@github.com> 1682682693 +0000

Proper tag publishing for antithesis (#6552)

No longer publish docker images with the tag `unspecified` to Antithesis
uujP ^https://api.github.com/repos/palantir/atlasdb/commits/a2ef728bbf6192f5b8f9f9bd16f69671aa9c4283html_urlShttps://github.com/palantir/atlasdb/commit/a2ef728bbf6192f5b8f9f9bd16f69671aa9c4283comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a2ef728bbf6192f5b8f9f9bd16f69671aa9c4283/commentsjP }(login
Sam-KrameridJ^2_ jP MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jP 'https://api.github.com/users/Sam-KramerjP https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujP }(jP web-flowjP J/jP MDQ6VXNlcjE5ODY0NDQ3jP 4https://avatars.githubusercontent.com/u/19864447?v=4jP h5jP %https://api.github.com/users/web-flowjP https://github.com/web-flowjP /https://api.github.com/users/web-flow/followersjP <https://api.github.com/users/web-flow/following{/other_user}jP 5https://api.github.com/users/web-flow/gists{/gist_id}jP <https://api.github.com/users/web-flow/starred{/owner}{/repo}jP 3https://api.github.com/users/web-flow/subscriptionsjP *https://api.github.com/users/web-flow/orgsjP +https://api.github.com/users/web-flow/reposjP 6https://api.github.com/users/web-flow/events{/privacy}jP 5https://api.github.com/users/web-flow/received_eventsjP UserjP uparents]}(jP (43adb2ed2ed640a3862ee0527e4d5f8ba090356ajP ^https://api.github.com/repos/palantir/atlasdb/commits/43adb2ed2ed640a3862ee0527e4d5f8ba090356ajP Shttps://github.com/palantir/atlasdb/commit/43adb2ed2ed640a3862ee0527e4d5f8ba090356auastats}(totalK	additionsK		deletionsKufiles]}(jP (eaeb2c0f0e5d188b45c25cd7a8276be5f686ca0dfilename*scripts/circle-ci/publish-to-antithesis.shstatusmodifiedjP K	jP KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/a2ef728bbf6192f5b8f9f9bd16f69671aa9c4283/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shraw_urlhttps://github.com/palantir/atlasdb/raw/a2ef728bbf6192f5b8f9f9bd16f69671aa9c4283/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=a2ef728bbf6192f5b8f9f9bd16f69671aa9c4283patchXs  @@ -12,18 +12,19 @@ fi
 
 printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://${ANTITHESIS_REPO_URL} --password-stdin
 
-./gradlew --scan docker
+./gradlew --scan dockerTag
+
+VERSION=$(./gradlew -q printVersion)
 
 docker pull palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
 docker tag palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra ${ANTITHESIS_REPO_URL}/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
 docker push ${ANTITHESIS_REPO_URL}/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
 
-docker tag palantirtechnologies/timelock-server-distribution:unspecified ${ANTITHESIS_REPO_URL}/timelock-server-distribution:unspecified
-docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:unspecified
+docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${VERSION}
+docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${VERSION}
 
-docker tag palantirtechnologies/atlasdb-workload-server-distribution:unspecified ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:unspecified
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:unspecified
+docker tag palantirtechnologies/atlasdb-workload-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${VERSION}
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-distribution:${VERSION}
 
-LATEST_ANTITHESIS_TAG=$(docker image ls palantirtechnologies/atlasdb-workload-server-antithesis --format "{{.Tag}}")
-docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}
-docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${LATEST_ANTITHESIS_TAG}
+docker tag palantirtechnologies/atlasdb-workload-server-antithesis:${VERSION} ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${VERSION}
+docker push ${ANTITHESIS_REPO_URL}/atlasdb-workload-server-antithesis:${VERSION}
\ No newline at end of fileuau(670b42dd2f227d2765b722a4bfed778215e49f6b}(sha(670b42dd2f227d2765b722a4bfed778215e49f6bnode_idEC_kwDOAjP5fdoAKDY3MGI0MmRkMmYyMjdkMjc2NWI3MjJhNGJmZWQ3NzgyMTVlNDlmNmIcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-03-23T19:21:08Zu	committer}(jQ GitHubjQ noreply@github.comjQ 2023-03-23T19:21:08ZumessageF[TEX] Wrap KVS service reads and track bytes read (no metrics) (#6475)tree}(jQ (303383c102f078bf5827e6e847749503f3193c83url`https://api.github.com/repos/palantir/atlasdb/git/trees/303383c102f078bf5827e6e847749503f3193c83uj$Q bhttps://api.github.com/repos/palantir/atlasdb/git/commits/670b42dd2f227d2765b722a4bfed778215e49f6b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkHKakCRBK7hj4Ov3rIwAAei8IADORTDvpLDLxE1wqaVbr2gMs
1lDXMY5B0R7MqqovLVDP9peDa8LJnmntarBkMr0VH7hlND6R8vmZFcC2kWDzyW3z
/xAu3v+gax2qSs51r5wbTMjWvog7Vy2OHh64HS7YNxOW9lKbO58ABgZZwsoVorGi
gu1gqh7jkVTX2RcNUHVzxkerWkoNgTBZxnN7RPlsiPDReWibIklTLnwtqsxNy+nK
GxIzscucMxshNWE8Iy4ByfvZJm13BJCqHuF12AlTrhRcF/6t/D0p0eh/MGurNzgf
i1bHs1CajTKy35lFeNl2377orryRURJGL99HNwMOYcekiVFQzj+eDYF+43ugZ5Q=
=fqoc
-----END PGP SIGNATURE-----
payloadX+  tree 303383c102f078bf5827e6e847749503f3193c83
parent cb936c63ffebe84004949506c9079c22805c484d
author aalouane <30903736+ergo14@users.noreply.github.com> 1679599268 +0000
committer GitHub <noreply@github.com> 1679599268 +0000

[TEX] Wrap KVS service reads and track bytes read (no metrics) (#6475)

 uuj$Q ^https://api.github.com/repos/palantir/atlasdb/commits/670b42dd2f227d2765b722a4bfed778215e49f6bhtml_urlShttps://github.com/palantir/atlasdb/commit/670b42dd2f227d2765b722a4bfed778215e49f6bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/670b42dd2f227d2765b722a4bfed778215e49f6b/commentsjQ }(loginergo14idJjQ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j$Q #https://api.github.com/users/ergo14j2Q https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujQ }(j7Q web-flowj9Q J/jQ MDQ6VXNlcjE5ODY0NDQ3j;Q 4https://avatars.githubusercontent.com/u/19864447?v=4j=Q h5j$Q %https://api.github.com/users/web-flowj2Q https://github.com/web-flowj@Q /https://api.github.com/users/web-flow/followersjBQ <https://api.github.com/users/web-flow/following{/other_user}jDQ 5https://api.github.com/users/web-flow/gists{/gist_id}jFQ <https://api.github.com/users/web-flow/starred{/owner}{/repo}jHQ 3https://api.github.com/users/web-flow/subscriptionsjJQ *https://api.github.com/users/web-flow/orgsjLQ +https://api.github.com/users/web-flow/reposjNQ 6https://api.github.com/users/web-flow/events{/privacy}jPQ 5https://api.github.com/users/web-flow/received_eventsjRQ UserjTQ uparents]}(jQ (cb936c63ffebe84004949506c9079c22805c484dj$Q ^https://api.github.com/repos/palantir/atlasdb/commits/cb936c63ffebe84004949506c9079c22805c484dj2Q Shttps://github.com/palantir/atlasdb/commit/cb936c63ffebe84004949506c9079c22805c484duastats}(totalKX	additionsKN	deletionsK
ufiles](}(jQ (b2cafdc6a87f54c1f818962d2801a2edd0ae1f12filename.palantir/revapi.ymlstatusmodifiedjnQ KjoQ K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/670b42dd2f227d2765b722a4bfed778215e49f6b/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/670b42dd2f227d2765b722a4bfed778215e49f6b/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=670b42dd2f227d2765b722a4bfed778215e49f6bpatchX  @@ -110,3 +110,8 @@ acceptedBreaks:
     - code: "java.method.removed"
       old: "method boolean com.palantir.atlasdb.transaction.service.TransactionStatus::equals(java.lang.Object)"
       justification: "Internal methods"
+  "0.815.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.class.removed"
+      old: "interface com.palantir.atlasdb.transaction.api.expectations.ExpectationsAwareTransaction"
+      justification: "moving out of API"u}(jQ (17e6e0aeb1b64c151980df0c777b470289e11f67jtQ batlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractTransactionManager.javajvQ modifiedjnQ KjoQ K jxQ KjyQ https://github.com/palantir/atlasdb/blob/670b42dd2f227d2765b722a4bfed778215e49f6b/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionManager.javaj{Q https://github.com/palantir/atlasdb/raw/670b42dd2f227d2765b722a4bfed778215e49f6b/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionManager.javaj}Q https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionManager.java?ref=670b42dd2f227d2765b722a4bfed778215e49f6bjQ X&  @@ -81,6 +81,7 @@ protected final <T, E extends Exception> T runTaskThrowOnConflictWithCallback(
             }
         } finally {
             callback.run();
+            txn.reportExpectationsCollectedData();
             txn.runSuccessCallbacksIfDefinitivelyCommitted();
         }
     }u}(jQ (312e2352c1ff098b40a0bde4a89d1d06d92a2267jtQ `atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CallbackAwareTransaction.javajvQ modifiedjnQ KjoQ KjxQ KjyQ https://github.com/palantir/atlasdb/blob/670b42dd2f227d2765b722a4bfed778215e49f6b/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCallbackAwareTransaction.javaj{Q https://github.com/palantir/atlasdb/raw/670b42dd2f227d2765b722a4bfed778215e49f6b/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCallbackAwareTransaction.javaj}Q https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCallbackAwareTransaction.java?ref=670b42dd2f227d2765b722a4bfed778215e49f6bjQ X,  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.PreCommitCondition;
-import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionFailedException;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 
@@ -26,7 +25,7 @@
  * are run. This can be used to e.g run {@link PreCommitCondition#cleanup()} <i>before</i> the onSuccess callbacks
  * are run.
  */
-public interface CallbackAwareTransaction extends Transaction {
+public interface CallbackAwareTransaction extends ExpectationsAwareTransaction {
     void commitWithoutCallbacks() throws TransactionFailedException;
 
     void commitWithoutCallbacks(TransactionService transactionService) throws TransactionFailedException;u}(jQ (7e87069870a53942641d65bb9f40d143a983e452jtQ datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ExpectationsAwareTransaction.javajvQ renamedjnQ KjoQ KjxQ KjyQ https://github.com/palantir/atlasdb/blob/670b42dd2f227d2765b722a4bfed778215e49f6b/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj{Q https://github.com/palantir/atlasdb/raw/670b42dd2f227d2765b722a4bfed778215e49f6b/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj}Q https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.java?ref=670b42dd2f227d2765b722a4bfed778215e49f6bjQ XU  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,15 +14,15 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.transaction.api.expectations;
+package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 /**
  * Implementors of this interface provide methods useful for tracking transactional expectations and whether
  * they were breached as well as relevant metrics and alerts. Transactional expectations represent transaction-level
  * limits and rules for proper usage of AtlasDB transactions (e.g. reading too much data overall).
- * Todo(aalouane): move this out of API once part 4 is merged
  */
 public interface ExpectationsAwareTransaction extends Transaction {
     long getAgeMillis();previous_filenamematlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/ExpectationsAwareTransaction.javau}(jQ (71c4c8f8ff1bba49188c7bece8ec3b1fdebf6e66jtQ jatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingCallbackAwareTransaction.javajvQ modifiedjnQ KjoQ KjxQ KjyQ https://github.com/palantir/atlasdb/blob/670b42dd2f227d2765b722a4bfed778215e49f6b/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingCallbackAwareTransaction.javaj{Q https://github.com/palantir/atlasdb/raw/670b42dd2f227d2765b722a4bfed778215e49f6b/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingCallbackAwareTransaction.javaj}Q https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingCallbackAwareTransaction.java?ref=670b42dd2f227d2765b722a4bfed778215e49f6bjQ X  @@ -19,7 +19,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionFailedException;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 
-public abstract class ForwardingCallbackAwareTransaction extends ForwardingTransaction
+public abstract class ForwardingCallbackAwareTransaction extends ForwardingExpectationsAwareTransaction
         implements CallbackAwareTransaction {
 
     @Overrideu}(jQ (b0f9e2b48803d8c98708f77f72b9c6d498e1be5ajtQ natlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingExpectationsAwareTransaction.javajvQ addedjnQ K)joQ K jxQ K)jyQ https://github.com/palantir/atlasdb/blob/670b42dd2f227d2765b722a4bfed778215e49f6b/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj{Q https://github.com/palantir/atlasdb/raw/670b42dd2f227d2765b722a4bfed778215e49f6b/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj}Q https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.java?ref=670b42dd2f227d2765b722a4bfed778215e49f6bjQ X[  @@ -0,0 +1,41 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+
+public abstract class ForwardingExpectationsAwareTransaction extends ForwardingTransaction
+        implements ExpectationsAwareTransaction {
+
+    @Override
+    public abstract ExpectationsAwareTransaction delegate();
+
+    @Override
+    public long getAgeMillis() {
+        return delegate().getAgeMillis();
+    }
+
+    @Override
+    public TransactionReadInfo getReadInfo() {
+        return delegate().getReadInfo();
+    }
+
+    @Override
+    public void reportExpectationsCollectedData() {
+        delegate().reportExpectationsCollectedData();
+    }
+}u}(jQ (4d13603f168edbd66a401b0f573473fe144b24a4jtQ `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javajvQ modifiedjnQ KjoQ KjxQ KjyQ https://github.com/palantir/atlasdb/blob/670b42dd2f227d2765b722a4bfed778215e49f6b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj{Q https://github.com/palantir/atlasdb/raw/670b42dd2f227d2765b722a4bfed778215e49f6b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj}Q https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=670b42dd2f227d2765b722a4bfed778215e49f6bjQ X
  @@ -97,6 +97,9 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
+import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueServiceImpl;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.TransactionOutcomeMetrics;
 import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
@@ -219,7 +222,7 @@ private enum State {
 
     protected final TimelockService timelockService;
     protected final LockWatchManagerInternal lockWatchManager;
-    final KeyValueService keyValueService;
+    final TrackingKeyValueService keyValueService;
     final AsyncKeyValueService immediateKeyValueService;
     final TransactionService defaultTransactionService;
     private final AsyncTransactionService immediateTransactionService;
@@ -277,7 +280,7 @@ private enum State {
      */
     /* package */ SnapshotTransaction(
             MetricsManager metricsManager,
-            KeyValueService keyValueService,
+            KeyValueService delegateKeyValueService,
             TimelockService timelockService,
             LockWatchManagerInternal lockWatchManager,
             TransactionService transactionService,
@@ -306,7 +309,7 @@ private enum State {
         this.lockWatchManager = lockWatchManager;
         this.conflictTracer = conflictTracer;
         this.transactionTimerContext = getTimer("transactionMillis").time();
-        this.keyValueService = keyValueService;
+        this.keyValueService = new TrackingKeyValueServiceImpl(delegateKeyValueService);
         this.immediateKeyValueService = KeyValueServices.synchronousAsAsyncKeyValueService(keyValueService);
         this.timelockService = timelockService;
         this.defaultTransactionService = transactionService;
@@ -2583,6 +2586,20 @@ private boolean validationNecessaryForInvolvedTablesOnCommit() {
         return anyTableRequiresImmutableTimestampLocking && needsToValidate;
     }
 
+    @Override
+    public long getAgeMillis() {
+        return System.currentTimeMillis() - timeCreated;
+    }
+
+    @Override
+    public TransactionReadInfo getReadInfo() {
+        return keyValueService.getOverallReadInfo();
+    }
+
+    // TODO(aalouane): implement and call this on transaction exit
+    @Override
+    public void reportExpectationsCollectedData() {}
+
     private long getStartTimestamp() {
         return startTimestamp.get();
     }u}(jQ (0936c8842d9f7738cbd5017afd9659293095521djtQ gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManager.javajvQ modifiedjnQ KjoQ KjxQ KjyQ https://github.com/palantir/atlasdb/blob/670b42dd2f227d2765b722a4bfed778215e49f6b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManager.javaj{Q https://github.com/palantir/atlasdb/raw/670b42dd2f227d2765b722a4bfed778215e49f6b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManager.javaj}Q https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManager.java?ref=670b42dd2f227d2765b722a4bfed778215e49f6bjQ X  @@ -246,7 +246,7 @@ private OpenTransactionImpl(CallbackAwareTransaction delegate, LockToken immutab
         }
 
         @Override
-        public Transaction delegate() {
+        public CallbackAwareTransaction delegate() {
             return delegate;
         }
 u}(jQ (7a46efe502264df936f40615fb54393461e5d277jtQ $changelog/@unreleased/pr-6475.v2.ymljvQ addedjnQ KjoQ K jxQ KjyQ |https://github.com/palantir/atlasdb/blob/670b42dd2f227d2765b722a4bfed778215e49f6b/changelog%2F%40unreleased%2Fpr-6475.v2.ymlj{Q {https://github.com/palantir/atlasdb/raw/670b42dd2f227d2765b722a4bfed778215e49f6b/changelog%2F%40unreleased%2Fpr-6475.v2.ymlj}Q https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6475.v2.yml?ref=670b42dd2f227d2765b722a4bfed778215e49f6bjQ @@ -0,0 +1,5 @@
+type: feature
+feature:
+  description: '[TEX] Wrap KVS service reads and track bytes read (no metrics)'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6475ueu(5642f8546b30ea610fb0f695cefbd7f54b744186}(sha(5642f8546b30ea610fb0f695cefbd7f54b744186node_idEC_kwDOAjP5fdoAKDU2NDJmODU0NmIzMGVhNjEwZmIwZjY5NWNlZmJkN2Y1NGI3NDQxODYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-05T11:46:59Zu	committer}(jQ 
Ahmed AlouanejQ aalouane@palantir.comjQ 2023-05-05T11:46:59ZumessagestandaloneServertree}(jQ (5bac0ea737dc049e40984e7d38547489cf1f018durl`https://api.github.com/repos/palantir/atlasdb/git/trees/5bac0ea737dc049e40984e7d38547489cf1f018dujQ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5642f8546b30ea610fb0f695cefbd7f54b744186
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRU7LMACgkQPlMHVIT1
yhowYwgAjibBouX4FIFGPTSfak4TCgeCEMwxRdmG8GRdY7DWrI+sK3ma+yJ6OLo1
+JjEYT8YcvljGCCOCufwTFhOWTdUEcXQTcu23KIRFA1nju6WAj4t8ebzfy6nlDYE
oEcnDqIBfB2uo6fQ0H8jfz9AwIT72C2EAH0re2W6StRayFkxfW+tahMKGaXMu6km
ZQ50cWFKGYG9ViZs8VDgz4km1MLT6Z+EWGkFQ3r5ZrLYg7eUouTmDgbsczzkuEo8
wL24kC77zBQSkI03Fmx13w7r1UCvMg4O+irjHGZE4C50K4LOZVxrZarlDyXCt7Pm
zeiF5BSWMzcAkWWVPRqp3zns7I14Ag==
=vwn4
-----END PGP SIGNATURE-----payloadtree 5bac0ea737dc049e40984e7d38547489cf1f018d
parent 9be0bcb6fc58d444e57bd4c235981735b0c0ecb0
author Ahmed Alouane <aalouane@palantir.com> 1683287219 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1683287219 +0100

standaloneServer
uujQ ^https://api.github.com/repos/palantir/atlasdb/commits/5642f8546b30ea610fb0f695cefbd7f54b744186html_urlShttps://github.com/palantir/atlasdb/commit/5642f8546b30ea610fb0f695cefbd7f54b744186comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5642f8546b30ea610fb0f695cefbd7f54b744186/commentsjQ }(loginergo14idJjQ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jQ #https://api.github.com/users/ergo14jQ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujQ }(jQ ergo14jQ JjQ MDQ6VXNlcjMwOTAzNzM2jQ 4https://avatars.githubusercontent.com/u/30903736?v=4jQ h5jQ #https://api.github.com/users/ergo14jQ https://github.com/ergo14jQ -https://api.github.com/users/ergo14/followersjQ :https://api.github.com/users/ergo14/following{/other_user}jQ 3https://api.github.com/users/ergo14/gists{/gist_id}jQ :https://api.github.com/users/ergo14/starred{/owner}{/repo}jR 1https://api.github.com/users/ergo14/subscriptionsjR (https://api.github.com/users/ergo14/orgsjR )https://api.github.com/users/ergo14/reposjR 4https://api.github.com/users/ergo14/events{/privacy}j	R 3https://api.github.com/users/ergo14/received_eventsjR Userj
R uparents]}(jQ (9be0bcb6fc58d444e57bd4c235981735b0c0ecb0jQ ^https://api.github.com/repos/palantir/atlasdb/commits/9be0bcb6fc58d444e57bd4c235981735b0c0ecb0jQ Shttps://github.com/palantir/atlasdb/commit/9be0bcb6fc58d444e57bd4c235981735b0c0ecb0uastats}(totalK	additionsK	deletionsK ufiles]}(jQ (50a187edab80e2c7c9be0499b960265387ad914dfilename?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javastatusmodifiedj'R Kj(R K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/5642f8546b30ea610fb0f695cefbd7f54b744186/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaraw_urlhttps://github.com/palantir/atlasdb/raw/5642f8546b30ea610fb0f695cefbd7f54b744186/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=5642f8546b30ea610fb0f695cefbd7f54b744186patchX  @@ -188,7 +188,9 @@ public static final class Builder extends ImmutableLockServerOptions.Builder {}
     static class SerializationProxy implements Serializable {
         private static final long serialVersionUID = 4043798817916565364L;
 
+        @JsonProperty("isStandaloneServer")
         private final boolean isStandaloneServer;
+
         private final SimpleTimeDuration maxAllowedLockTimeout;
         private final SimpleTimeDuration maxAllowedClockDrift;
         private final SimpleTimeDuration maxAllowedBlockingDuration;uau(0129536831f9513b0e404a193354dea8742b2908}(sha(0129536831f9513b0e404a193354dea8742b2908node_idEC_kwDOAjP5fdoAKDAxMjk1MzY4MzFmOTUxM2IwZTQwNGExOTMzNTRkZWE4NzQyYjI5MDgcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-02-28T17:21:51Zu	committer}(jDR 
Sam KramerjFR skramer@palantir.comjHR 2023-02-28T17:21:51Zumessage*Add durables write invariant, plus testingtree}(j<R (3d005775d5377577ec39d8603275eb5aa75f8ab8url`https://api.github.com/repos/palantir/atlasdb/git/trees/3d005775d5377577ec39d8603275eb5aa75f8ab8ujTR bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0129536831f9513b0e404a193354dea8742b2908
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmP+OC8ACgkQmPPOpKR4
XS3VCAf5AfTRbf6eHDAYYJ9EURij4cKV3Rsb5Ps536DWSwyfyxkc51CD9nHHS3XY
/hy5xuAvCM6f6LzMOhZgg2doFuIX+8ytioMPVU1SDPX8AQRjN2OKXBIiR+KSuFum
Qe9gNXm2pGlaXSaJzqB0u1+NbeLvzCq0ifT2FsG5ATVp51c+//TAoQDG0XNut0TG
o2mtKiGNRuWVQn9+Y0kq/MgwCu+wL8AYP/5QGw0ThPWAWtLq28bHVG7wTGa9Pgjf
MoXXCIYTesVZqh9i8fRCoTEBeOTDk1eezf+VP040ySuXnLNoNi+Mq02LJrvpL9XK
h6E4xhyv8lmo1qTvEcKhB4biDSbtNg==
=GyTe
-----END PGP SIGNATURE-----payloadX  tree 3d005775d5377577ec39d8603275eb5aa75f8ab8
parent 8eee1633f1ce95ea3b755c4b4de83850093511ef
author Sam Kramer <skramer@palantir.com> 1677604911 +0000
committer Sam Kramer <skramer@palantir.com> 1677604911 +0000

Add durables write invariant, plus testing
uujTR ^https://api.github.com/repos/palantir/atlasdb/commits/0129536831f9513b0e404a193354dea8742b2908html_urlShttps://github.com/palantir/atlasdb/commit/0129536831f9513b0e404a193354dea8742b2908comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0129536831f9513b0e404a193354dea8742b2908/commentsjBR }(login
Sam-KrameridJ^2_ j>R MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jTR 'https://api.github.com/users/Sam-KramerjbR https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujJR }(jgR 
Sam-KramerjiR J^2_ j>R MDQ6VXNlcjYyMzg4MTQ=jkR 3https://avatars.githubusercontent.com/u/6238814?v=4jmR h5jTR 'https://api.github.com/users/Sam-KramerjbR https://github.com/Sam-KramerjpR 1https://api.github.com/users/Sam-Kramer/followersjrR >https://api.github.com/users/Sam-Kramer/following{/other_user}jtR 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jvR >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jxR 5https://api.github.com/users/Sam-Kramer/subscriptionsjzR ,https://api.github.com/users/Sam-Kramer/orgsj|R -https://api.github.com/users/Sam-Kramer/reposj~R 8https://api.github.com/users/Sam-Kramer/events{/privacy}jR 7https://api.github.com/users/Sam-Kramer/received_eventsjR UserjR uparents]}(j<R (8eee1633f1ce95ea3b755c4b4de83850093511efjTR ^https://api.github.com/repos/palantir/atlasdb/commits/8eee1633f1ce95ea3b755c4b4de83850093511efjbR Shttps://github.com/palantir/atlasdb/commit/8eee1633f1ce95ea3b755c4b4de83850093511efuastats}(totalMj	additionsM
	deletionsK`ufiles](}(j<R (dcf450daf6f49386b2e58b95d8209834b231b201filename`atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/Invariant.javastatusrenamedjR KjR KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/0129536831f9513b0e404a193354dea8742b2908/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariant.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0129536831f9513b0e404a193354dea8742b2908/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariant.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariant.java?ref=0129536831f9513b0e404a193354dea8742b2908patch@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.workload;
+package com.palantir.atlasdb.workload.invariant;
 
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import java.util.function.Consumer;previous_filenameVatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/Invariant.javau}(j<R (b0541b72d9257dd5318bec94d998d9fba06b54a3jR fatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/MismatchedValue.javajR addedjR K!jR K jR K!jR https://github.com/palantir/atlasdb/blob/0129536831f9513b0e404a193354dea8742b2908/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javajR https://github.com/palantir/atlasdb/raw/0129536831f9513b0e404a193354dea8742b2908/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javajR https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.java?ref=0129536831f9513b0e404a193354dea8742b2908jR X\  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface MismatchedValue {
+    @Value.Parameter
+    Optional<Integer> actual();
+
+    @Value.Parameter
+    Optional<Integer> expected();
+
+    static MismatchedValue of(Optional<Integer> actual, Optional<Integer> expected) {
+        return ImmutableMismatchedValue.of(actual, expected);
+    }
+}u}(j<R (df28350d592f1315036e7f40a33e9edf629c4e69jR datlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TableWorkloadCell.javajR addedjR K!jR K jR K!jR https://github.com/palantir/atlasdb/blob/0129536831f9513b0e404a193354dea8742b2908/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTableWorkloadCell.javajR https://github.com/palantir/atlasdb/raw/0129536831f9513b0e404a193354dea8742b2908/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTableWorkloadCell.javajR https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTableWorkloadCell.java?ref=0129536831f9513b0e404a193354dea8742b2908jR X1  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface TableWorkloadCell {
+
+    @Value.Parameter
+    String tableName();
+
+    @Value.Parameter
+    WorkloadCell cell();
+
+    static TableWorkloadCell of(String tableName, WorkloadCell workloadCell) {
+        return ImmutableTableWorkloadCell.of(tableName, workloadCell);
+    }
+}u}(j<R (0366a408f1d4aa0a28995fb15e4dbd80e3ff743ejR batlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ValidationStore.javajR addedjR KjR K jR KjR https://github.com/palantir/atlasdb/blob/0129536831f9513b0e404a193354dea8742b2908/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.javajR https://github.com/palantir/atlasdb/raw/0129536831f9513b0e404a193354dea8742b2908/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.javajR https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.java?ref=0129536831f9513b0e404a193354dea8742b2908jR X  @@ -0,0 +1,26 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import java.util.Map;
+import java.util.Set;
+
+public interface ValidationStore {
+    Map<TableWorkloadCell, Integer> values();
+
+    Set<TableWorkloadCell> deletedCells();
+}u}(j<R (ee61422efdfa10a5acd67cfddec8f9195a6c4026jR iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariant.javajR modifiedjR K9jR K_jR KjR https://github.com/palantir/atlasdb/blob/0129536831f9513b0e404a193354dea8742b2908/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javajR https://github.com/palantir/atlasdb/raw/0129536831f9513b0e404a193354dea8742b2908/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javajR https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.java?ref=0129536831f9513b0e404a193354dea8742b2908jR X"  @@ -16,120 +16,82 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
-import com.google.common.collect.HashBasedTable;
-import com.google.common.collect.HashMultimap;
-import com.google.common.collect.SetMultimap;
-import com.google.common.collect.Table;
-import com.palantir.atlasdb.workload.Invariant;
-import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
-import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.store.TableWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
-import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.Collections;
 import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
-import javax.annotation.concurrent.NotThreadSafe;
+import java.util.function.Consumer;
+import one.util.streamex.EntryStream;
+import one.util.streamex.StreamEx;
 
 public class DurableWritesInvariant implements Invariant {
 
-    private static final SafeLogger log = SafeLoggerFactory.get(AtlasDbTransactionStore.class);
+    private static final SafeLogger log = SafeLoggerFactory.get(DurableWritesInvariant.class);
 
-    @Override
-    public void accept(WorkflowHistory workflowHistory) {
-        InMemoryKvsTransactionReplayer replayer = new InMemoryKvsTransactionReplayer();
-        workflowHistory.history().stream()
-                .map(WitnessedTransaction::actions)
-                .forEach(witnessedTransactionActions ->
-                        witnessedTransactionActions.forEach(action -> action.accept(replayer)));
-        replayer.getTables().forEach(tableName -> {
-            checkCellsExist(tableName, replayer.getValues(tableName), workflowHistory.transactionStore());
-            checkCellsAreDeleted(tableName, replayer.getDeletedCells(tableName), workflowHistory.transactionStore());
-        });
-    }
-
-    private static void checkCellsExist(
-            String tableName, Map<WorkloadCell, Integer> expectedCells, ReadableTransactionStore store) {
-        expectedCells.forEach((cell, value) -> {
-            Optional<Integer> actualValue = store.get(tableName, cell);
-            boolean equalValues = actualValue.map(value::equals).orElse(false);
-            if (!equalValues) {
-                log.error(
-                        "InMemoryKvs does not match external KVS.",
-                        SafeArg.of("table", tableName),
-                        SafeArg.of("cell", cell),
-                        SafeArg.of("expectedValue", value),
-                        SafeArg.of("actualValue", actualValue));
-            }
-        });
-    }
+    private final Consumer<Map<TableWorkloadCell, MismatchedValue>> mismatchingCellsConsumer;
+    private final Consumer<Map<TableWorkloadCell, Integer>> undeletedCellsConsumer;
 
-    private static void checkCellsAreDeleted(
-            String tableName, Set<WorkloadCell> cells, ReadableTransactionStore store) {
-        cells.forEach(deletedCell -> store.get(tableName, deletedCell)
-                .ifPresent(value -> log.error(
+    public DurableWritesInvariant() {
+        this(
+                mismatchingValues -> mismatchingValues.forEach((cell, mismatchedValue) -> log.error(
+                        "In-memory state does not match external transactional store.",
+                        SafeArg.of("table", cell.tableName()),
+                        SafeArg.of("cell", cell.cell()),
+                        SafeArg.of("mismatchedValue", mismatchedValue))),
+                undeletedCells -> undeletedCells.forEach((cell, value) -> log.error(
                         "Cell existed when it is expected to be deleted.",
-                        SafeArg.of("tableName", tableName),
-                        SafeArg.of("cell", deletedCell),
+                        SafeArg.of("tableName", cell.tableName()),
+                        SafeArg.of("cell", cell.cell()),
                         SafeArg.of("value", value))));
     }
 
-    @NotThreadSafe
-    private static class InMemoryKvsTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
-
-        private final Table<String, WorkloadCell, Integer> kvs = HashBasedTable.create();
-        private final SetMultimap<String, WorkloadCell> deletedCells = HashMultimap.create();
-        private boolean hasFinished = false;
-
-        @Override
-        public Void visit(WitnessedReadTransactionAction readTransactionAction) {
-            checkMutable();
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
-            checkMutable();
-            kvs.put(writeTransactionAction.table(), writeTransactionAction.cell(), writeTransactionAction.value());
-            deletedCells.remove(writeTransactionAction.table(), writeTransactionAction.cell());
-            return null;
-        }
-
-        @Override
-        public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
-            checkMutable();
-            kvs.remove(deleteTransactionAction.table(), deleteTransactionAction.cell());
-            deletedCells.put(deleteTransactionAction.table(), deleteTransactionAction.cell());
-            return null;
-        }
-
-        private void checkMutable() {
-            Preconditions.checkState(
-                    !hasFinished, "Cannot replay transaction, as we've already calculated our view of the KVS.");
-        }
+    @VisibleForTesting
+    DurableWritesInvariant(
+            Consumer<Map<TableWorkloadCell, MismatchedValue>> mismatchingCellsConsumer,
+            Consumer<Map<TableWorkloadCell, Integer>> undeletedCellsConsumer) {
+        this.mismatchingCellsConsumer = mismatchingCellsConsumer;
+        this.undeletedCellsConsumer = undeletedCellsConsumer;
+    }
 
-        private Set<String> getTables() {
-            hasFinished = true;
-            return Collections.unmodifiableSet(kvs.rowKeySet());
-        }
+    @Override
+    public void accept(WorkflowHistory workflowHistory) {
+        InMemoryValidationStore expectedState = InMemoryValidationStore.create(workflowHistory.history());
+        mismatchingCellsConsumer.accept(
+                findCellsThatDoNotMatch(expectedState.values(), workflowHistory.transactionStore()));
+        undeletedCellsConsumer.accept(
+                findCellsThatAreNotDeleted(expectedState.deletedCells(), workflowHistory.transactionStore()));
+    }
 
-        private Map<WorkloadCell, Integer> getValues(String tableName) {
-            hasFinished = true;
-            return Collections.unmodifiableMap(kvs.row(tableName));
-        }
+    @VisibleForTesting
+    Map<TableWorkloadCell, MismatchedValue> findCellsThatDoNotMatch(
+            Map<TableWorkloadCell, Integer> expectedCells, ReadableTransactionStore storeToValidate) {
+        return EntryStream.of(expectedCells)
+                .mapToValue((writtenCell, expectedValue) -> {
+                    Optional<Integer> actualValue = storeToValidate.get(writtenCell.tableName(), writtenCell.cell());
+                    if (!actualValue.map(expectedValue::equals).orElse(false)) {
+                        return Optional.of(MismatchedValue.of(actualValue, Optional.of(expectedValue)));
+                    }
+                    return Optional.<MismatchedValue>empty();
+                })
+                .removeValues(Optional::isEmpty)
+                .mapValues(Optional::get)
+                .toMap();
+    }
 
-        private Set<WorkloadCell> getDeletedCells(String tableName) {
-            hasFinished = true;
-            return Collections.unmodifiableSet(deletedCells.get(tableName));
-        }
+    @VisibleForTesting
+    Map<TableWorkloadCell, Integer> findCellsThatAreNotDeleted(
+            Set<TableWorkloadCell> cells, ReadableTransactionStore storeToValidate) {
+        return StreamEx.of(cells)
+                .mapToEntry(cell -> storeToValidate.get(cell.tableName(), cell.cell()))
+                .removeValues(Optional::isEmpty)
+                .mapValues(Optional::get)
+                .toMap();
     }
 }u}(j<R (8548c511d773d15f97f13fd959b6a106dfdbf332jR latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStore.javajR addedjR KejR K jR KejR https://github.com/palantir/atlasdb/blob/0129536831f9513b0e404a193354dea8742b2908/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javajR https://github.com/palantir/atlasdb/raw/0129536831f9513b0e404a193354dea8742b2908/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javajR https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.java?ref=0129536831f9513b0e404a193354dea8742b2908jR XD  @@ -0,0 +1,101 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.TableWorkloadCell;
+import com.palantir.atlasdb.workload.store.ValidationStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import javax.annotation.concurrent.NotThreadSafe;
+
+public final class InMemoryValidationStore implements ValidationStore {
+
+    private final Map<TableWorkloadCell, Integer> values;
+
+    private final Set<TableWorkloadCell> deletedCells;
+
+    private InMemoryValidationStore(Map<TableWorkloadCell, Integer> values, Set<TableWorkloadCell> deletedCells) {
+        this.deletedCells = Collections.unmodifiableSet(deletedCells);
+        this.values = Collections.unmodifiableMap(values);
+    }
+
+    public static InMemoryValidationStore create(List<WitnessedTransaction> history) {
+        InMemoryTransactionReplayer replayer = new InMemoryTransactionReplayer();
+        history.stream()
+                .map(WitnessedTransaction::actions)
+                .forEach(witnessedTransactionActions ->
+                        witnessedTransactionActions.forEach(action -> action.accept(replayer)));
+        return new InMemoryValidationStore(replayer.getValues(), replayer.getDeletedCells());
+    }
+
+    @Override
+    public Map<TableWorkloadCell, Integer> values() {
+        return values;
+    }
+
+    @Override
+    public Set<TableWorkloadCell> deletedCells() {
+        return deletedCells;
+    }
+
+    @NotThreadSafe
+    private static final class InMemoryTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
+
+        private final Map<TableWorkloadCell, Integer> values = new HashMap<>();
+        private final Set<TableWorkloadCell> deletedCells = new HashSet<>();
+
+        @Override
+        public Void visit(WitnessedReadTransactionAction readTransactionAction) {
+            return null;
+        }
+
+        @Override
+        public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
+            TableWorkloadCell tableWorkloadCell =
+                    TableWorkloadCell.of(writeTransactionAction.table(), writeTransactionAction.cell());
+            values.put(tableWorkloadCell, writeTransactionAction.value());
+            deletedCells.remove(tableWorkloadCell);
+            return null;
+        }
+
+        @Override
+        public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+            TableWorkloadCell tableWorkloadCell =
+                    TableWorkloadCell.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
+            values.remove(tableWorkloadCell);
+            deletedCells.add(tableWorkloadCell);
+            return null;
+        }
+
+        public Map<TableWorkloadCell, Integer> getValues() {
+            return values;
+        }
+
+        public Set<TableWorkloadCell> getDeletedCells() {
+            return deletedCells;
+        }
+    }
+}u}(j<R (af645b4b9ec4b33c43ea5448ec64037cb7c09325jR matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantTest.javajR addedjR K{jR K jR K{jR https://github.com/palantir/atlasdb/blob/0129536831f9513b0e404a193354dea8742b2908/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javajR https://github.com/palantir/atlasdb/raw/0129536831f9513b0e404a193354dea8742b2908/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javajR https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.java?ref=0129536831f9513b0e404a193354dea8742b2908jR X  @@ -0,0 +1,123 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.Namespace;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TableWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.atomic.AtomicReference;
+import org.junit.Before;
+import org.junit.Test;
+
+public final class DurableWritesInvariantTest {
+
+    private static final String TABLE = "foo";
+    private static final TableReference TABLE_REFERENCE = TableReference.create(Namespace.DEFAULT_NAMESPACE, TABLE);
+
+    private static final WorkloadCell WORKLOAD_CELL_1 = ImmutableWorkloadCell.of(1, 2);
+    private static final WorkloadCell WORKLOAD_CELL_2 = ImmutableWorkloadCell.of(3, 4);
+    private static final Integer VALUE_ONE = 5;
+    private static final Integer VALUE_TWO = 3;
+
+    private TransactionManager manager;
+    private AtlasDbTransactionStore store;
+
+    @Before
+    public void before() {
+        manager = TransactionManagers.createInMemory(Set.of());
+        store = AtlasDbTransactionStore.create(
+                manager, Map.of(TABLE_REFERENCE, AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
+    }
+
+    @Test
+    public void undeletedCellsAreFoundAndDeletedAreIgnored() {
+        AtomicReference<Map<TableWorkloadCell, Integer>> undeletedCells = new AtomicReference<>();
+
+        DurableWritesInvariant durableWritesInvariant = new DurableWritesInvariant(_ignore -> {}, undeletedCells::set);
+        List<WitnessedTransaction> witnessedTransactions = List.of(
+                ImmutableWitnessedTransaction.builder()
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_1))
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .build(),
+                ImmutableWitnessedTransaction.builder()
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_2))
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .build());
+        WorkflowHistory history = ImmutableWorkflowHistory.builder()
+                .history(witnessedTransactions)
+                .transactionStore(store)
+                .build();
+
+        store.readWrite(List.of(WriteTransactionAction.of(TABLE, WORKLOAD_CELL_2, VALUE_ONE)));
+        durableWritesInvariant.accept(history);
+        assertThat(undeletedCells.get())
+                .containsExactlyEntriesOf(Map.of(TableWorkloadCell.of(TABLE, WORKLOAD_CELL_2), VALUE_ONE));
+    }
+
+    @Test
+    public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
+        AtomicReference<Map<TableWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
+        DurableWritesInvariant durableWritesInvariant =
+                new DurableWritesInvariant(mismatchingCells::set, _ignore -> {});
+        List<WitnessedTransaction> witnessedTransactions = List.of(
+                ImmutableWitnessedTransaction.builder()
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_1, VALUE_ONE))
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .build(),
+                ImmutableWitnessedTransaction.builder()
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_2, VALUE_TWO))
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .build());
+        WorkflowHistory history = ImmutableWorkflowHistory.builder()
+                .history(witnessedTransactions)
+                .transactionStore(store)
+                .build();
+
+        store.readWrite(List.of(
+                WriteTransactionAction.of(TABLE, WORKLOAD_CELL_1, VALUE_ONE),
+                WriteTransactionAction.of(TABLE, WORKLOAD_CELL_2, VALUE_ONE)));
+        durableWritesInvariant.accept(history);
+        assertThat(mismatchingCells.get())
+                .containsExactlyEntriesOf(Map.of(
+                        TableWorkloadCell.of(TABLE, WORKLOAD_CELL_2),
+                        MismatchedValue.of(Optional.of(VALUE_ONE), Optional.of(VALUE_TWO))));
+    }
+}u}(j<R (2593b13faacfd1e78eb0fa9d25e2dc40e994fcd4jR patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javajR addedjR KqjR K jR KqjR https://github.com/palantir/atlasdb/blob/0129536831f9513b0e404a193354dea8742b2908/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javajR https://github.com/palantir/atlasdb/raw/0129536831f9513b0e404a193354dea8742b2908/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javajR https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=0129536831f9513b0e404a193354dea8742b2908jR X(  @@ -0,0 +1,113 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_2;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_2;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import java.util.List;
+import java.util.Map;
+import org.junit.Test;
+
+public final class InMemoryValidationStoreTest {
+
+    @Test
+    public void writeActionsAreHandled() {
+        InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
+                ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_1, VALUE_ONE))
+                        .build(),
+                ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_2, VALUE_TWO))
+                        .build()));
+        assertThat(store.values())
+                .containsExactlyInAnyOrderEntriesOf(
+                        Map.of(TABLE_WORKLOAD_CELL_1, VALUE_ONE, TABLE_WORKLOAD_CELL_2, VALUE_TWO));
+        assertThat(store.deletedCells()).isEmpty();
+    }
+
+    @Test
+    public void deletesAreHandled() {
+        InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
+                ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_1, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_2, VALUE_ONE))
+                        .build(),
+                ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_1))
+                        .build()));
+        assertThat(store.values()).containsExactlyEntriesOf(Map.of(TABLE_WORKLOAD_CELL_2, VALUE_ONE));
+        assertThat(store.deletedCells()).containsExactlyInAnyOrder(TABLE_WORKLOAD_CELL_1);
+    }
+
+    @Test
+    public void writesDeletesAreHandledInOrder() {
+        InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
+                ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_1, VALUE_ONE))
+                        .build(),
+                ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_1))
+                        .build(),
+                ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(5)
+                        .commitTimestamp(6)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_1, VALUE_TWO))
+                        .build()));
+        assertThat(store.values()).containsExactlyEntriesOf(Map.of(TABLE_WORKLOAD_CELL_1, VALUE_TWO));
+        assertThat(store.deletedCells()).isEmpty();
+    }
+
+    @Test
+    public void valuesCannotBeModified() {
+        InMemoryValidationStore store = InMemoryValidationStore.create(List.of());
+        assertThatThrownBy(() -> store.values().remove(new Object())).isInstanceOf(UnsupportedOperationException.class);
+        assertThatThrownBy(() -> store.values().put(TABLE_WORKLOAD_CELL_1, 10))
+                .isInstanceOf(UnsupportedOperationException.class);
+    }
+
+    @Test
+    public void deletedCellsCannotBeModified() {
+        InMemoryValidationStore store = InMemoryValidationStore.create(List.of());
+        assertThatThrownBy(() -> store.deletedCells().remove(new Object()))
+                .isInstanceOf(UnsupportedOperationException.class);
+        assertThatThrownBy(() -> store.deletedCells().add(TABLE_WORKLOAD_CELL_1))
+                .isInstanceOf(UnsupportedOperationException.class);
+    }
+}u/     }(j<R (a0588478786aa76176842b6c3583225977d89867jR hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javajR addedjR K#jR K jR K#jR https://github.com/palantir/atlasdb/blob/0129536831f9513b0e404a193354dea8742b2908/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javajR https://github.com/palantir/atlasdb/raw/0129536831f9513b0e404a193354dea8742b2908/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javajR https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=0129536831f9513b0e404a193354dea8742b2908jR X  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.keyvalue.api.Namespace;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TableWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+
+public final class WorkloadTestHelpers {
+    public static final String TABLE = "foo";
+    public static final TableReference TABLE_REFERENCE = TableReference.create(Namespace.DEFAULT_NAMESPACE, TABLE);
+
+    public static final WorkloadCell WORKLOAD_CELL_1 = ImmutableWorkloadCell.of(1, 2);
+    public static final WorkloadCell WORKLOAD_CELL_2 = ImmutableWorkloadCell.of(3, 4);
+    public static final Integer VALUE_ONE = 5;
+    public static final Integer VALUE_TWO = 3;
+    public static final TableWorkloadCell TABLE_WORKLOAD_CELL_1 = TableWorkloadCell.of(TABLE, WORKLOAD_CELL_1);
+    public static final TableWorkloadCell TABLE_WORKLOAD_CELL_2 = TableWorkloadCell.of(TABLE, WORKLOAD_CELL_2);
+}ueu(43c37cccec9dc898631f37d2c0e3aeb13f0706d8}(sha(43c37cccec9dc898631f37d2c0e3aeb13f0706d8node_idEC_kwDOAjP5fdoAKDQzYzM3Y2NjZWM5ZGM4OTg2MzFmMzdkMmMwZTNhZWIxM2YwNzA2ZDgcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-01T14:33:38Zu	committer}(jR Lucas MeirelesjR meireles31@msn.comjS 2023-06-01T14:33:38ZumessageBMerge branch 'develop' into lmeireles/broken-lock-check-on-purposetree}(jR (a23ffefaf6501a369e3355e7f9a81aa5ff0bc12eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/a23ffefaf6501a369e3355e7f9a81aa5ff0bc12euj
S bhttps://api.github.com/repos/palantir/atlasdb/git/commits/43c37cccec9dc898631f37d2c0e3aeb13f0706d8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmR4rEQACgkQJd22kJ7J
Giz2Ogf8CuSX+sj+T8pvPW+R5mZdWYnQ1PNvofXnDbl7CImnst+fIvFOHsnvExZ1
Ig7FW7ZpR+6UfAl0/D1P3B+XQPoe+dLJ4cWEE4oWMteum9WM8v/T2NkNWq32pMUO
JJdzZxCcerQnxzeQxlrnn+Y8Q84NarUytbj/4ynUonrYcNMZTzTBDjvAYcRFgoyH
AFF0Wd55jmvJn9SFNSZ8LHFsp5SBNEXOoOsbC9gocet/R+oHHgs9edi0KZwsl4Hq
2gvrm83B0bjnpLQJiP1PvIR9TW94xKa2zDDwjGexvu3k5QM5TMbeUhiPyPoiF1Cu
i6sUA7ds4V8JGORzOZPBWT2jAoVlkg==
=gkjm
-----END PGP SIGNATURE-----payloadXM  tree a23ffefaf6501a369e3355e7f9a81aa5ff0bc12e
parent fc16d6600b046dd77d6d7b90ba9d64a2e74d5f05
parent 6a15660757df219caa1b89da233e201f3405c621
author Lucas Meireles <meireles31@msn.com> 1685630018 +0100
committer Lucas Meireles <meireles31@msn.com> 1685630018 +0100

Merge branch 'develop' into lmeireles/broken-lock-check-on-purpose
uuj
S ^https://api.github.com/repos/palantir/atlasdb/commits/43c37cccec9dc898631f37d2c0e3aeb13f0706d8html_urlShttps://github.com/palantir/atlasdb/commit/43c37cccec9dc898631f37d2c0e3aeb13f0706d8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/commentsjR }(loginLucasIMEidJg jR MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j
S %https://api.github.com/users/LucasIMEjS https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujS }(j S LucasIMEj"S Jg jR MDQ6VXNlcjY3ODczMTE=j$S 3https://avatars.githubusercontent.com/u/6787311?v=4j&S h5j
S %https://api.github.com/users/LucasIMEjS https://github.com/LucasIMEj)S /https://api.github.com/users/LucasIME/followersj+S <https://api.github.com/users/LucasIME/following{/other_user}j-S 5https://api.github.com/users/LucasIME/gists{/gist_id}j/S <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j1S 3https://api.github.com/users/LucasIME/subscriptionsj3S *https://api.github.com/users/LucasIME/orgsj5S +https://api.github.com/users/LucasIME/reposj7S 6https://api.github.com/users/LucasIME/events{/privacy}j9S 5https://api.github.com/users/LucasIME/received_eventsj;S Userj=S uparents](}(jR (fc16d6600b046dd77d6d7b90ba9d64a2e74d5f05j
S ^https://api.github.com/repos/palantir/atlasdb/commits/fc16d6600b046dd77d6d7b90ba9d64a2e74d5f05jS Shttps://github.com/palantir/atlasdb/commit/fc16d6600b046dd77d6d7b90ba9d64a2e74d5f05u}(jR (6a15660757df219caa1b89da233e201f3405c621j
S ^https://api.github.com/repos/palantir/atlasdb/commits/6a15660757df219caa1b89da233e201f3405c621jS Shttps://github.com/palantir/atlasdb/commit/6a15660757df219caa1b89da233e201f3405c621uestats}(totalMS	additionsMQ	deletionsKufiles](}(jR (3baaaaf51b7360fce9a867bd4f521f4017dceb26filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj[S Kj\S K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=43c37cccec9dc898631f37d2c0e3aeb13f0706d8patchX  @@ -2412,6 +2412,7 @@ protected LockToken acquireLocksForCommit() {
                                 lockDescriptors, currentTransactionConfig, stackTraceSnapshot))
                         .build());
         if (!lockResponse.wasSuccessful()) {
+            transactionOutcomeMetrics.markCommitLockAcquisitionFailed();
             log.error(
                     "Timed out waiting while acquiring commit locks. Timeout was {} ms. "
                             + "First ten required locks were {}.",u}(jR (7a4b02962f2c8fcd57bfd60b8b4b157b2e6ed956jaS gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcome.javajcS modifiedj[S Kj\S KjeS KjfS https://github.com/palantir/atlasdb/blob/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.javajhS https://github.com/palantir/atlasdb/raw/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.javajjS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.java?ref=43c37cccec9dc898631f37d2c0e3aeb13f0706d8jlS X  @@ -62,5 +62,10 @@ public enum TransactionOutcome {
      * that started before our start timestamp and hasn't committed). This will be logged at most once for a given
      * transaction being rolled back, even if multiple transactions aim to rollback the same transaction.
      */
-    ROLLBACK_OTHER
+    ROLLBACK_OTHER,
+
+    /**
+     * The transaction failed to acquire commit locks at the beginning of the AtlasDB commit protocol.
+     */
+    COMMIT_LOCK_ACQUISITION_FAILED,
 }u}(jR (0cf6b112d9082ed759671aab0086b2bf32ccbedbjaS natlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetrics.javajcS modifiedj[S Kj\S K jeS KjfS https://github.com/palantir/atlasdb/blob/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.javajhS https://github.com/palantir/atlasdb/raw/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.javajjS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.java?ref=43c37cccec9dc898631f37d2c0e3aeb13f0706d8jlS X  @@ -85,6 +85,10 @@ public void markRollbackOtherTransaction() {
         getMeter(TransactionOutcome.ROLLBACK_OTHER).mark();
     }
 
+    public void markCommitLockAcquisitionFailed() {
+        getMeter(TransactionOutcome.COMMIT_LOCK_ACQUISITION_FAILED).mark();
+    }
+
     @VisibleForTesting
     Meter getMeter(TransactionOutcome outcome) {
         return getMeter(outcome, ImmutableMap.of());u}(jR (8732fe7b76fe6fc4d194ebc3c3c808c8ab2df91ejaS uatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetricsAssert.javajcS modifiedj[S Kj\S K jeS KjfS https://github.com/palantir/atlasdb/blob/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.javajhS https://github.com/palantir/atlasdb/raw/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.javajjS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.java?ref=43c37cccec9dc898631f37d2c0e3aeb13f0706d8jlS X  @@ -59,6 +59,11 @@ public TransactionOutcomeMetricsAssert hasRollbackOther(long count) {
         return this;
     }
 
+    public TransactionOutcomeMetricsAssert hasCommitLockAcquisitionFailures(long count) {
+        checkPresentAndCheckCount(TransactionOutcome.COMMIT_LOCK_ACQUISITION_FAILED, count);
+        return this;
+    }
+
     public TransactionOutcomeMetricsAssert hasLocksExpired(long count) {
         checkPresentAndCheckCount(TransactionOutcome.LOCKS_EXPIRED, count);
         return this;u}(jR (c66fcac2f74aa5be8cdfd05aebf8029a49d9f883jaS eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javajcS modifiedj[S Kj\S K jeS KjfS https://github.com/palantir/atlasdb/blob/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajhS https://github.com/palantir/atlasdb/raw/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajjS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=43c37cccec9dc898631f37d2c0e3aeb13f0706d8jlS X  @@ -90,6 +90,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionConflictException;
 import com.palantir.atlasdb.transaction.api.TransactionFailedNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionFailedRetriableException;
+import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
@@ -118,6 +119,7 @@
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.TimeDuration;
 import com.palantir.lock.v2.LockImmutableTimestampResponse;
+import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.math.BigInteger;
@@ -322,6 +324,8 @@ public void cleanup() {}
     private static final Cell TEST_CELL = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("column1"));
     private static final Cell TEST_CELL_2 = Cell.create(PtBytes.toBytes("row2"), PtBytes.toBytes("column2"));
 
+    private static final byte[] TEST_VALUE = PtBytes.toBytes("value");
+
     @Override
     @Before
     public void setUp() throws Exception {
@@ -1484,6 +1488,23 @@ public void commitThrowsIfRolledBackAtCommitTime_expiredLocks() {
                 .hasLocksExpired(1);
     }
 
+    @Test
+    public void commitThrowsIfCommitLockAcquisitionFails() {
+        TimelockService timelockService = mock(TimelockService.class);
+        when(timelockService.lock(any(), any())).thenReturn(LockResponse.timedOut());
+        Transaction txn = getSnapshotTransactionWith(timelockService);
+
+        // We only request commit locks for transactions that write at least one value
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+
+        assertThatThrownBy(txn::commit)
+                .isInstanceOf(TransactionLockAcquisitionTimeoutException.class)
+                .hasMessage("Timed out while acquiring commit locks.");
+        TransactionOutcomeMetricsAssert.assertThat(transactionOutcomeMetrics)
+                .hasFailedCommits(1)
+                .hasCommitLockAcquisitionFailures(1);
+    }
+
     @Test
     public void commitThrowsIfRolledBackAtCommitTime_alreadyAborted() {
         final Cell cell = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("column1"));
@@ -2459,6 +2480,14 @@ private void setTransactionConfig(TransactionConfig config) {
         transactionConfig = config;
     }
 
+    private Transaction getSnapshotTransactionWith(TimelockService timelockService) {
+        ConjureStartTransactionsResponse conjureResponse = startTransactionWithWatches();
+        LockImmutableTimestampResponse lockImmutableTimestampResponse = conjureResponse.getImmutableTimestamp();
+        long transactionTs = conjureResponse.getTimestamps().start();
+        return getSnapshotTransactionWith(
+                timelockService, () -> transactionTs, lockImmutableTimestampResponse, unused -> {});
+    }
+
     private Transaction getSnapshotTransactionWith(
             TimelockService timelockService,
             Supplier<Long> startTs,u}(jR (b86c6ab4d0e299588d4d550dff55a4b053fb2870jaS satlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetricsTest.javajcS modifiedj[S Kj\S KjeS KjfS https://github.com/palantir/atlasdb/blob/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.javajhS https://github.com/palantir/atlasdb/raw/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.javajjS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.java?ref=43c37cccec9dc898631f37d2c0e3aeb13f0706d8jlS XL  @@ -72,6 +72,7 @@ public void canMarkVariousOutcomes() {
                 .put(4, transactionOutcomeMetrics::markPutUnlessExistsFailed)
                 .put(5, transactionOutcomeMetrics::markRollbackOtherTransaction)
                 .put(6, transactionOutcomeMetrics::markPreCommitCheckFailed)
+                .put(7, transactionOutcomeMetrics::markCommitLockAcquisitionFailed)
                 .buildOrThrow();
 
         tasks.entrySet().forEach(entry -> IntStream.range(0, entry.getKey())
@@ -83,7 +84,8 @@ public void canMarkVariousOutcomes() {
                 .hasLocksExpired(3)
                 .hasPutUnlessExistsFailures(4)
                 .hasRollbackOther(5)
-                .hasPreCommitCheckFailures(6);
+                .hasPreCommitCheckFailures(6)
+                .hasCommitLockAcquisitionFailures(7);
     }
 
     @Testu}(jR (0d37143b06df3364ee189ad91c60389c0b8cbe27jaS latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javajcS modifiedj[S Kj\S K jeS KjfS https://github.com/palantir/atlasdb/blob/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajhS https://github.com/palantir/atlasdb/raw/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajjS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=43c37cccec9dc898631f37d2c0e3aeb13f0706d8jlS X  @@ -48,6 +48,8 @@
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
 import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflows;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;
@@ -144,6 +146,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().transientRowsConfig();
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
+        BankBalanceWorkflowConfiguration bankBalanceConfig =
+                configuration.install().bankBalanceConfig();
         RandomWorkflowConfiguration randomWorkflowConfig =
                 configuration.install().randomConfig();
 
@@ -163,6 +167,7 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
                         createSingleBusyCellWorkflowValidator(
                                 transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
+                        createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
                         createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
 
         log.info("antithesis: terminate");
@@ -313,6 +318,24 @@ private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator
                 .build();
     }
 
+    private WorkflowAndInvariants<Workflow> createBankBalanceWorkflow(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            BankBalanceWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, BankBalanceWorkflows.class);
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(BankBalanceWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        BankBalanceWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+                .build();
+    }
+
     private WorkflowAndInvariants<Workflow> createRandomWorkflow(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             RandomWorkflowConfiguration workflowConfig,u}(jR (2d9c0d984d2b4436a434d5c8bfcd891756d98008jaS atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javajcS modifiedj[S Kj\S K jeS KjfS https://github.com/palantir/atlasdb/blob/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javajhS https://github.com/palantir/atlasdb/raw/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javajjS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=43c37cccec9dc898631f37d2c0e3aeb13f0706d8jlS X0  @@ -24,6 +24,7 @@
 import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
 
@@ -41,6 +42,8 @@ public interface WorkloadServerInstallConfiguration {
 
     SingleBusyCellWorkflowConfiguration singleBusyCellConfig();
 
+    BankBalanceWorkflowConfiguration bankBalanceConfig();
+
     RandomWorkflowConfiguration randomConfig();
 
     SingleBusyCellReadsNoTouchWorkflowConfiguration singleBusyCellReadsNoTouchConfig();u}(jR (da4b728986375bd8565c46e930098c1a684a145cjaS Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymljcS modifiedj[S Kj\S K jeS KjfS https://github.com/palantir/atlasdb/blob/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymljhS https://github.com/palantir/atlasdb/raw/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymljjS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=43c37cccec9dc898631f37d2c0e3aeb13f0706d8jlS XS  @@ -29,6 +29,12 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  bankBalanceConfig:
+    tableConfiguration:
+      tableName: bank-balance-test
+      isolationLevel: SNAPSHOT
+    iterationCount: 100
+    type: bank-balance
   randomConfig:
     tableConfiguration:
       tableName: random-testu}(jR (50dbd20de7876d2a9cb53eef291722b8b19cd0b5jaS Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymljcS modifiedj[S Kj\S K jeS KjfS https://github.com/palantir/atlasdb/blob/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljhS https://github.com/palantir/atlasdb/raw/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljjS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=43c37cccec9dc898631f37d2c0e3aeb13f0706d8jlS XS  @@ -66,6 +66,12 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  bankBalanceConfig:
+    tableConfiguration:
+      tableName: bank_balance_test
+      isolationLevel: SNAPSHOT
+    iterationCount: 100
+    type: bank-balance
   randomConfig:
     tableConfiguration:
       tableName: random_testu}(jR (7bd7f984a5ef15a2179c415620f48a0737332c43jaS Aatlasdb-workload-server-distribution/var/conf/workload-server.ymljcS modifiedj[S Kj\S K jeS KjfS https://github.com/palantir/atlasdb/blob/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljhS https://github.com/palantir/atlasdb/raw/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljjS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=43c37cccec9dc898631f37d2c0e3aeb13f0706d8jlS XS  @@ -30,6 +30,12 @@ install:
     iterationCount: 100
     type: single-busy-cell
     maxThreadCount: 2
+  bankBalanceConfig:
+    tableConfiguration:
+      tableName: bank-balance-test
+      isolationLevel: SNAPSHOT
+    iterationCount: 100
+    type: bank-balance
   randomConfig:
     tableConfiguration:
       tableName: random-testu}(jR (4c009ebe4699e6665fa0c9590874f7ead9b2f33fjaS gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtils.javajcS addedj[S K^j\S K jeS K^jfS https://github.com/palantir/atlasdb/blob/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.javajhS https://github.com/palantir/atlasdb/raw/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.javajjS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.java?ref=43c37cccec9dc898631f37d2c0e3aeb13f0706d8jlS X  @@ -0,0 +1,94 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import com.google.common.collect.ImmutableMap;
+import java.security.SecureRandom;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Optional;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import one.util.streamex.EntryStream;
+
+public final class BankBalanceUtils {
+
+    private BankBalanceUtils() {}
+
+    /**
+     * Validates all the bank balances provided. If all are empty, we will generate a new set of bank balances. If
+     * any are missing, an empty optional is returned to indicate failure state. If balances do not total to the
+     * expected amount, an empty optional is returned.
+     *
+     * @return An empty optional when validation has failed for bank balances. Otherwise, the optional will contain
+     * the validated (or generated) balances.
+     */
+    public static Optional<Map<Integer, Integer>> validateOrGenerateBalances(
+            Map<Integer, Optional<Integer>> maybeBalances, Integer numberOfAccounts, Integer balancePerAccount) {
+        if (allValuesPresent(maybeBalances)) {
+            Integer total = numberOfAccounts * balancePerAccount;
+            Map<Integer, Integer> balances =
+                    EntryStream.of(maybeBalances).mapValues(Optional::get).toMap();
+            if (!sumOfBalancesMatchTotal(balances, total)) {
+                return Optional.empty();
+            }
+            return Optional.of(balances);
+        }
+
+        if (allValuesEmpty(maybeBalances)) {
+            return Optional.of(generateBalances(numberOfAccounts, balancePerAccount));
+        }
+
+        return Optional.empty();
+    }
+
+    public static Map<Integer, Integer> performTransfers(
+            Map<Integer, Integer> balances, int numberOfTransfers, int transferAmount, SecureRandom random) {
+        Map<Integer, Integer> newBalances = new HashMap<>(balances);
+        for (int idx = 0; idx < numberOfTransfers; idx++) {
+            int from = random.nextInt(newBalances.size());
+            int to = random.nextInt(newBalances.size());
+
+            if (newBalances.get(from) - transferAmount < 0) {
+                continue;
+            }
+
+            newBalances.compute(from, (k, v) -> v - transferAmount);
+            newBalances.compute(to, (k, v) -> v + transferAmount);
+        }
+        return ImmutableMap.copyOf(newBalances);
+    }
+
+    private static boolean sumOfBalancesMatchTotal(Map<Integer, Integer> balances, Integer totalBalance) {
+        return balances.values().stream().mapToInt(Integer::intValue).sum() == totalBalance;
+    }
+
+    private static boolean allValuesPresent(Map<Integer, Optional<Integer>> balances) {
+        return balances.values().stream().allMatch(Optional::isPresent);
+    }
+
+    private static boolean allValuesEmpty(Map<Integer, Optional<Integer>> balances) {
+        return balances.values().stream().allMatch(Optional::isEmpty);
+    }
+
+    private static Map<Integer, Integer> generateBalances(Integer numberOfAccounts, Integer balancePerAccount) {
+        return IntStream.range(0, numberOfAccounts)
+                .boxed()
+                .collect(Collectors.toMap(Function.identity(), index -> balancePerAccount));
+    }
+}u}(jR (dd8ae4bd5d9bdf4ebb6f459b4fc1771835066b3ejaS watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowConfiguration.javajcS addedj[S K7j\S K jeS K7jfS https://github.com/palantir/atlasdb/blob/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.javajhS https://github.com/palantir/atlasdb/raw/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.javajjS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.java?ref=43c37cccec9dc898631f37d2c0e3aeb13f0706d8jlS X  @@ -0,0 +1,55 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import com.palantir.atlasdb.workload.workflow.TableConfiguration;
+import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableBankBalanceWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableBankBalanceWorkflowConfiguration.class)
+@JsonTypeName(BankBalanceWorkflowConfiguration.TYPE)
+public interface BankBalanceWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "bank-balance";
+
+    TableConfiguration tableConfiguration();
+
+    @Value.Default
+    default Integer numberOfAccounts() {
+        return 10;
+    }
+
+    @Value.Default
+    default Integer initialBalancePerAccount() {
+        return 100;
+    }
+
+    @Value.Default
+    default Integer transferAmount() {
+        return 75;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jR (2394a7f410f2773d697a6ff47e5911c814eba351jaS katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflows.javajcS addedj[S Kj\S K jeS KjfS https://github.com/palantir/atlasdb/blob/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javajhS https://github.com/palantir/atlasdb/raw/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javajjS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.java?ref=43c37cccec9dc898631f37d2c0e3aeb13f0706d8jlS X  @@ -0,0 +1,136 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.security.SecureRandom;
+import java.util.Map;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.jetbrains.annotations.VisibleForTesting;
+
+/**
+ * A workflow which performs a number of account balance transfers between accounts.
+ */
+public final class BankBalanceWorkflows {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(BankBalanceWorkflows.class);
+    private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+
+    private static final Integer COLUMN = 0;
+
+    private BankBalanceWorkflows() {
+        // utility
+    }
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            BankBalanceWorkflowConfiguration bankBalanceWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        BankBalanceRunTask runTask = new BankBalanceRunTask(bankBalanceWorkflowConfiguration);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> runTask.run(txnStore),
+                bankBalanceWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            InteractiveTransactionStore store,
+            BankBalanceWorkflowConfiguration bankBalanceWorkflowConfiguration,
+            ListeningExecutorService executionExecutor,
+            AtomicBoolean skipRunning) {
+        BankBalanceRunTask runTask = new BankBalanceRunTask(skipRunning, bankBalanceWorkflowConfiguration);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> runTask.run(txnStore),
+                bankBalanceWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    private static class BankBalanceRunTask {
+        private final AtomicBoolean skipRunning;
+
+        private final BankBalanceWorkflowConfiguration workflowConfiguration;
+
+        public BankBalanceRunTask(BankBalanceWorkflowConfiguration workflowConfiguration) {
+            this(new AtomicBoolean(), workflowConfiguration);
+        }
+
+        @VisibleForTesting
+        BankBalanceRunTask(AtomicBoolean skipRunning, BankBalanceWorkflowConfiguration workflowConfiguration) {
+            this.skipRunning = skipRunning;
+            this.workflowConfiguration = workflowConfiguration;
+        }
+
+        public Optional<WitnessedTransaction> run(InteractiveTransactionStore store) {
+            if (skipRunning.get()) {
+                return Optional.empty();
+            }
+            workflowConfiguration.transactionRateLimiter().acquire();
+            return store.readWrite(txn -> {
+                Map<Integer, Optional<Integer>> maybeBalances = getAccountBalances(txn);
+                BankBalanceUtils.validateOrGenerateBalances(
+                                maybeBalances,
+                                workflowConfiguration.numberOfAccounts(),
+                                workflowConfiguration.initialBalancePerAccount())
+                        .ifPresentOrElse(balances -> performTransfers(txn, balances), () -> {
+                            if (skipRunning.compareAndSet(false, true)) {
+                                log.error(
+                                        "Balance validation failed, indicating we have violated snapshot isolation.",
+                                        SafeArg.of("maybeBalances", maybeBalances));
+                            }
+                        });
+            });
+        }
+
+        private void performTransfers(InteractiveTransaction transaction, Map<Integer, Integer> balances) {
+            Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(
+                    balances, RANDOM.nextInt(balances.size()), workflowConfiguration.transferAmount(), RANDOM);
+            newBalances.forEach((account, balance) -> transaction.write(
+                    workflowConfiguration.tableConfiguration().tableName(), getCellForAccount(account), balance));
+        }
+
+        private Map<Integer, Optional<Integer>> getAccountBalances(InteractiveTransaction transaction) {
+            return IntStream.range(0, workflowConfiguration.numberOfAccounts())
+                    .boxed()
+                    .collect(Collectors.toMap(
+                            Function.identity(),
+                            index -> transaction.read(
+                                    workflowConfiguration.tableConfiguration().tableName(), getCellForAccount(index))));
+        }
+    }
+
+    public static WorkloadCell getCellForAccount(int accountIndex) {
+        return ImmutableWorkloadCell.of(accountIndex, COLUMN);
+    }
+}u}(jR (be670ac429d852d3616d81f322aac96b14c7e53cjaS katlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtilsTest.javajcS addedj[S KRj\S K jeS KRjfS https://github.com/palantir/atlasdb/blob/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javajhS https://github.com/palantir/atlasdb/raw/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javajjS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.java?ref=43c37cccec9dc898631f37d2c0e3aeb13f0706d8jlS X  @@ -0,0 +1,82 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.Mockito.when;
+
+import java.security.SecureRandom;
+import java.util.Map;
+import java.util.Optional;
+import one.util.streamex.EntryStream;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class BankBalanceUtilsTest {
+
+    private static final Map<Integer, Optional<Integer>> VALID_BALANCES = Map.of(0, Optional.of(1), 1, Optional.of(1));
+
+    @Mock
+    private SecureRandom random;
+
+    @Test
+    public void validateOrGenerateBalancesReturnsEmptyWhenOnlyOneAccountMissing() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(Map.of(0, Optional.of(1), 1, Optional.empty()), 2, 1))
+                .isEmpty();
+    }
+
+    @Test
+    public void validateOrGenerateBalancesGeneratesWhenAllEmpty() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(Map.of(0, Optional.empty(), 1, Optional.empty()), 2, 1))
+                .contains(Map.of(0, 1, 1, 1));
+    }
+
+    @Test
+    public void validateOrGenerateBalancesEmptyWhenSumOfBalancesDoNotMatchTotal() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(VALID_BALANCES, 2, 3))
+                .isEmpty();
+    }
+
+    @Test
+    public void validateOrGenerateBalancesReturnsBalancesWhenTotalsMatch() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(VALID_BALANCES, 2, 1))
+                .contains(
+                        EntryStream.of(VALID_BALANCES).mapValues(Optional::get).toMap());
+    }
+
+    @Test
+    public void performTransfersReturnsBalancesWithCorrectSum() {
+        when(random.nextInt(anyInt())).thenReturn(0, 1);
+        Map<Integer, Integer> balances = Map.of(0, 1, 1, 1);
+        Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
+        assertThat(newBalances).isEqualTo(Map.of(0, 0, 1, 2));
+        assertThat(newBalances.values().stream().mapToInt(Integer::intValue).sum())
+                .isEqualTo(2);
+    }
+
+    @Test
+    public void performsTransfersOnlyIfValueWouldNotBeBelowZero() {
+        when(random.nextInt(anyInt())).thenReturn(0, 1);
+        Map<Integer, Integer> balances = Map.of(0, 0, 1, 2);
+        Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
+        assertThat(newBalances).isEqualTo(balances);
+    }
+}u}(jR (fc68dc8666083ad7dff19f7cab2825390f18a38ajaS oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowsTest.javajcS addedj[S Kj\S K jeS KjfS https://github.com/palantir/atlasdb/blob/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javajhS https://github.com/palantir/atlasdb/raw/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javajjS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.java?ref=43c37cccec9dc898631f37d2c0e3aeb13f0706d8jlS X  @@ -0,0 +1,129 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.atlasdb.workload.workflow.ImmutableTableConfiguration;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.Test;
+
+public final class BankBalanceWorkflowsTest {
+    private static final String TABLE_NAME = "bank.bank";
+    private static final BankBalanceWorkflowConfiguration CONFIGURATION =
+            ImmutableBankBalanceWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SNAPSHOT)
+                            .build())
+                    .iterationCount(1)
+                    .build();
+
+    private final AtomicBoolean skipRunning = new AtomicBoolean();
+
+    private final InteractiveTransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SNAPSHOT)));
+
+    private final Workflow workflow = BankBalanceWorkflows.create(
+            memoryStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)),
+            skipRunning);
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore())
+                .as("should return a read only transaction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void bankWorkflowContainsInitialReadsForBalances() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.numberOfAccounts())
+                .boxed()
+                .map(index -> WitnessedReadTransactionAction.of(
+                        TABLE_NAME, BankBalanceWorkflows.getCellForAccount(index), Optional.empty()))
+                .collect(Collectors.toList());
+        assertThat(actions).containsAll(initialReadActions);
+    }
+
+    @Test
+    public void bankWorkflowContainsInitialWritesForBalances() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WorkloadCell> actualWrittenCells = actions.stream()
+                .filter(WitnessedWriteTransactionAction.class::isInstance)
+                .map(WitnessedWriteTransactionAction.class::cast)
+                .map(WitnessedWriteTransactionAction::cell)
+                .collect(Collectors.toList());
+
+        List<WorkloadCell> expectedWrittenCells = IntStream.range(0, CONFIGURATION.numberOfAccounts())
+                .boxed()
+                .map(BankBalanceWorkflows::getCellForAccount)
+                .collect(Collectors.toList());
+
+        assertThat(actualWrittenCells).containsAll(expectedWrittenCells);
+    }
+
+    @Test
+    public void bankWorkflowSetsSkipRunningToTrueWhenInvalidBalanceSet() {
+        assertThat(skipRunning).isFalse();
+        memoryStore.readWrite(txn -> txn.write(TABLE_NAME, BankBalanceWorkflows.getCellForAccount(0), 1));
+        workflow.run();
+        assertThat(skipRunning).isTrue();
+    }
+
+    @Test
+    public void bankWorkflowDoesNotWitnessTransactionWhenSkipRunningSetToTrue() {
+        skipRunning.set(true);
+        assertThat(workflow.run().history()).isEmpty();
+    }
+}u}(jR (088ecb3494e3094a7ce37361e9ec8cf8f2816acajaS $changelog/@unreleased/pr-6598.v2.ymljcS addedj[S Kj\S K jeS KjfS |https://github.com/palantir/atlasdb/blob/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/changelog%2F%40unreleased%2Fpr-6598.v2.ymljhS {https://github.com/palantir/atlasdb/raw/43c37cccec9dc898631f37d2c0e3aeb13f0706d8/changelog%2F%40unreleased%2Fpr-6598.v2.ymljjS https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6598.v2.yml?ref=43c37cccec9dc898631f37d2c0e3aeb13f0706d8jlS @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Add metric for number of commit lock acquisition failures
+  links:
+  - https://github.com/palantir/atlasdb/pull/6598ueu(e4e28977c0f6884e60d246bbf5b03b80b44bf874}(sha(e4e28977c0f6884e60d246bbf5b03b80b44bf874node_idEC_kwDOAjP5fdoAKGU0ZTI4OTc3YzBmNjg4NGU2MGQyNDZiYmY1YjAzYjgwYjQ0YmY4NzQcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-08-08T15:41:45Zu	committer}(jS GitHubjS noreply@github.comjS 2023-08-08T15:41:45ZumessageiFix paxos contention in timestamp boundstore (#6693)

Fixes bug where timelock would contend with itself.tree}(jS (cd8196865c02f0619089f8b8dbbd4bd7576f200furl`https://api.github.com/repos/palantir/atlasdb/git/trees/cd8196865c02f0619089f8b8dbbd4bd7576f200fujT bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e4e28977c0f6884e60d246bbf5b03b80b44bf874
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk0mI5CRBK7hj4Ov3rIwAAv+sIAIr/X4RQ9lyZuNDU0isyf4i7
VT2NyJUPa/f5hxiqEWl61jnhACPcbAzGulw/5iXapCKbFzPvAQb0EXFJ67Pldrz1
qGJFEJ2j3moh6h57hEZyZeQnnXQUb6MnPCU6TVEk3j7emu4g9/Ra0zs+fei4FdgL
edMvvVep8Q5R5nCtlf2ksVkNmrTV/gs9YlmjqB4dhYH5xpckKq/KcrgGg9kk3oK1
NSS6/easKSPM3XW+nXoUmpe4jLAGq08qSqhbDw76lkXhZVJjU3ZjwSAa0JpdvDA1
vmEdwCLKdMa8xcYh5mbcQISPllq6ZP83v3n8Kk7sk+avjAmF1kg+nNZwo6DrPDs=
=0Akd
-----END PGP SIGNATURE-----
payloadX<  tree cd8196865c02f0619089f8b8dbbd4bd7576f200f
parent 833ff54c1b94e180cff7bab0ba79f1f0e98e15c4
author Sam-Kramer <sam.c.kramer@gmail.com> 1691509305 +0100
committer GitHub <noreply@github.com> 1691509305 +0000

Fix paxos contention in timestamp boundstore (#6693)

Fixes bug where timelock would contend with itself.
uujT ^https://api.github.com/repos/palantir/atlasdb/commits/e4e28977c0f6884e60d246bbf5b03b80b44bf874html_urlShttps://github.com/palantir/atlasdb/commit/e4e28977c0f6884e60d246bbf5b03b80b44bf874comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e4e28977c0f6884e60d246bbf5b03b80b44bf874/commentsjS }(login
Sam-KrameridJ^2_ jS MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jT 'https://api.github.com/users/Sam-KramerjT https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujS }(jT web-flowjT J/jS MDQ6VXNlcjE5ODY0NDQ3jT 4https://avatars.githubusercontent.com/u/19864447?v=4j!T h5jT %https://api.github.com/users/web-flowjT https://github.com/web-flowj$T /https://api.github.com/users/web-flow/followersj&T <https://api.github.com/users/web-flow/following{/other_user}j(T 5https://api.github.com/users/web-flow/gists{/gist_id}j*T <https://api.github.com/users/web-flow/starred{/owner}{/repo}j,T 3https://api.github.com/users/web-flow/subscriptionsj.T *https://api.github.com/users/web-flow/orgsj0T +https://api.github.com/users/web-flow/reposj2T 6https://api.github.com/users/web-flow/events{/privacy}j4T 5https://api.github.com/users/web-flow/received_eventsj6T Userj8T uparents]}(jS (833ff54c1b94e180cff7bab0ba79f1f0e98e15c4jT ^https://api.github.com/repos/palantir/atlasdb/commits/833ff54c1b94e180cff7bab0ba79f1f0e98e15c4jT Shttps://github.com/palantir/atlasdb/commit/833ff54c1b94e180cff7bab0ba79f1f0e98e15c4uastats}(totalKތ	additionsK	deletionsK#ufiles](}(jS (123aeadcc931cb100fbdbb692230e20ca78eb63bfilenameUatlasdb-commons/src/main/java/com/palantir/leader/MaybeNotCurrentLeaderException.javastatusaddedjRT K8jST K changesK8blob_urlhttps://github.com/palantir/atlasdb/blob/e4e28977c0f6884e60d246bbf5b03b80b44bf874/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2FMaybeNotCurrentLeaderException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e4e28977c0f6884e60d246bbf5b03b80b44bf874/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2FMaybeNotCurrentLeaderException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2FMaybeNotCurrentLeaderException.java?ref=e4e28977c0f6884e60d246bbf5b03b80b44bf874patchX  @@ -0,0 +1,56 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.leader;
+
+import com.google.common.collect.ImmutableList;
+import com.google.errorprone.annotations.CompileTimeConstant;
+import com.palantir.logsafe.Arg;
+import com.palantir.logsafe.Safe;
+import com.palantir.logsafe.SafeLoggable;
+import java.util.List;
+
+/**
+ * Some operations may fail due to contention, which means we may have lost leadership.
+ * In these cases, we should then validate that we have lost leadership, before taking any action.
+ */
+public final class MaybeNotCurrentLeaderException extends NotCurrentLeaderException implements SafeLoggable {
+
+    private final String message;
+    private final ImmutableList<Arg<?>> args;
+
+    public MaybeNotCurrentLeaderException(@CompileTimeConstant String message, List<Arg<?>> args) {
+        super(message);
+        this.message = message;
+        this.args = ImmutableList.copyOf(args);
+    }
+
+    public MaybeNotCurrentLeaderException(@CompileTimeConstant String message, Arg<?>... args) {
+        super(message);
+        this.message = message;
+        this.args = ImmutableList.copyOf(args);
+    }
+
+    @Override
+    public @Safe String getLogMessage() {
+        return message;
+    }
+
+    @Override
+    public List<Arg<?>> getArgs() {
+        return args;
+    }
+}u}(jS (a75847dcb7447b3c30f6fd1931f06e349bffcdfdjXT $changelog/@unreleased/pr-6693.v2.ymljZT addedjRT KjST K j\T Kj]T |https://github.com/palantir/atlasdb/blob/e4e28977c0f6884e60d246bbf5b03b80b44bf874/changelog%2F%40unreleased%2Fpr-6693.v2.ymlj_T {https://github.com/palantir/atlasdb/raw/e4e28977c0f6884e60d246bbf5b03b80b44bf874/changelog%2F%40unreleased%2Fpr-6693.v2.ymljaT https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6693.v2.yml?ref=e4e28977c0f6884e60d246bbf5b03b80b44bf874jcT @@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: Fixes bug where timelock would contend with itself.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6693u}(jS (b3df56daf11bd48e5b2ae019538be1aa83a9bd13jXT Yleader-election-impl/src/main/java/com/palantir/leader/proxy/AwaitingLeadershipProxy.javajZT modifiedjRT K*jST K
j\T K7j]T https://github.com/palantir/atlasdb/blob/e4e28977c0f6884e60d246bbf5b03b80b44bf874/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.javaj_T https://github.com/palantir/atlasdb/raw/e4e28977c0f6884e60d246bbf5b03b80b44bf874/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.javajaT https://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.java?ref=e4e28977c0f6884e60d246bbf5b03b80b44bf874jcT X  @@ -28,7 +28,7 @@
 import com.palantir.common.remoting.ServiceNotAvailableException;
 import com.palantir.leader.LeaderElectionService.LeadershipToken;
 import com.palantir.leader.LeaderElectionService.StillLeadingStatus;
-import com.palantir.leader.NotCurrentLeaderException;
+import com.palantir.leader.MaybeNotCurrentLeaderException;
 import com.palantir.leader.proxy.LeadershipStateManager.LeadershipState;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
@@ -41,6 +41,7 @@
 import java.lang.reflect.Method;
 import java.lang.reflect.Proxy;
 import java.time.Duration;
+import java.util.concurrent.ExecutionException;
 import java.util.function.Supplier;
 
 @SuppressWarnings("ProxyNonConstantType")
@@ -107,9 +108,7 @@ protected Object handleInvocation(Object proxy, Method method, Object[] args) th
         ListenableFuture<T> delegateFuture = Futures.transformAsync(
                 leadingFuture,
                 leading -> {
-                    // treat a repeated NO_QUORUM as NOT_LEADING; likely we've been cut off from the other nodes
-                    // and should assume we're not the leader
-                    if (leading == StillLeadingStatus.NOT_LEADING || leading == StillLeadingStatus.NO_QUORUM) {
+                    if (isNotLeading(leading)) {
                         return Futures.submitAsync(
                                 () -> {
                                     leadershipStateManager.handleNotLeading(leadershipToken, null /* cause */);
@@ -159,18 +158,48 @@ protected Object handleInvocation(Object proxy, Method method, Object[] args) th
 
     private RuntimeException handleDelegateThrewException(
             LeadershipToken leadershipToken, InvocationTargetException exception) throws Exception {
-        if (exception.getCause() instanceof ServiceNotAvailableException
-                || exception.getCause() instanceof NotCurrentLeaderException) {
-            leadershipStateManager.handleNotLeading(leadershipToken, exception.getCause());
+        Throwable cause = exception.getCause();
+
+        if (cause instanceof ServiceNotAvailableException) {
+            handlePossibleLeadershipChangeException(leadershipToken, (ServiceNotAvailableException) cause);
         }
+
         // Prevent blocked lock requests from receiving a non-retryable 500 on interrupts
         // in case of a leader election.
-        if (exception.getCause() instanceof InterruptedException
-                && !leadershipCoordinator.isStillCurrentToken(leadershipToken)) {
-            throw leadershipCoordinator.notCurrentLeaderException(
-                    "received an interrupt due to leader election.", exception.getCause());
+        if (cause instanceof InterruptedException) {
+            if (!leadershipCoordinator.isStillCurrentToken(leadershipToken)) {
+                throw leadershipCoordinator.notCurrentLeaderException(
+                        "received an interrupt due to leader election.", exception.getCause());
+            }
+            Thread.currentThread().interrupt();
+        }
+        Throwables.propagateIfPossible(cause, Exception.class);
+        throw new RuntimeException(cause);
+    }
+
+    /**
+     * Check and see if the provided {@link ServiceNotAvailableException} is a {@link MaybeNotCurrentLeaderException}.
+     * If it is, check and see if we are still leading, as we may still be, but contending with ourselves. Otherwise,
+     * assume we are not, and invalidate our leadership state.
+     */
+    private void handlePossibleLeadershipChangeException(
+            LeadershipToken leadershipToken, ServiceNotAvailableException exception)
+            throws ExecutionException, InterruptedException {
+        boolean notLeading = true;
+
+        if (exception instanceof MaybeNotCurrentLeaderException) {
+            notLeading = isNotLeading(
+                    leadershipCoordinator.isStillLeading(leadershipToken).get());
+        }
+
+        if (notLeading) {
+            leadershipStateManager.handleNotLeading(leadershipToken, exception);
         }
-        Throwables.propagateIfPossible(exception.getCause(), Exception.class);
-        throw new RuntimeException(exception.getCause());
+    }
+
+    private static boolean isNotLeading(StillLeadingStatus leading) {
+        // treat a repeated NO_QUORUM as NOT_LEADING; likely we've been cut off from the other nodes
+        // and should assume we're not the leader
+        return leading == StillLeadingStatus.NOT_LEADING || leading == StillLeadingStatus.NO_QUORUM;
     }
 }uQ      }(jS (2171496a4c71f4c88747fe6fb9a31a6ab4763d0djXT ]leader-election-impl/src/test/java/com/palantir/leader/proxy/AwaitingLeadershipProxyTest.javajZT modifiedjRT K6jST Kj\T K:j]T https://github.com/palantir/atlasdb/blob/e4e28977c0f6884e60d246bbf5b03b80b44bf874/leader-election-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxyTest.javaj_T https://github.com/palantir/atlasdb/raw/e4e28977c0f6884e60d246bbf5b03b80b44bf874/leader-election-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxyTest.javajaT https://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxyTest.java?ref=e4e28977c0f6884e60d246bbf5b03b80b44bf874jcT X@  @@ -19,9 +19,11 @@
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.atLeast;
+import static org.mockito.Mockito.doThrow;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.timeout;
+import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
 
@@ -33,6 +35,7 @@
 import com.palantir.leader.LeaderElectionService;
 import com.palantir.leader.LeaderElectionService.LeadershipToken;
 import com.palantir.leader.LeaderElectionService.StillLeadingStatus;
+import com.palantir.leader.MaybeNotCurrentLeaderException;
 import com.palantir.leader.NotCurrentLeaderException;
 import com.palantir.leader.PaxosLeadershipToken;
 import com.palantir.tracing.RenderTracingRule;
@@ -264,6 +267,55 @@ public void shouldClearDelegateUponLosingLeadership() throws Exception {
         verify(mock).close();
     }
 
+    @Test
+    public void whenMaybeNotCurrentLeaderAndLeadershipNotLostShouldNotClearDelegate() throws Exception {
+        MyCloseable mockA = mock(MyCloseable.class);
+        // Cannot spy lambdas
+        Supplier<MyCloseable> delegateSupplier = mock(Supplier.class);
+        when(delegateSupplier.get()).thenReturn(mockA);
+        LeadershipCoordinator leadershipCoordinator = LeadershipCoordinator.create(leaderElectionService);
+        MyCloseable proxyA =
+                AwaitingLeadershipProxy.newProxyInstance(MyCloseable.class, delegateSupplier, leadershipCoordinator);
+
+        waitForLeadershipToBeGained();
+
+        doThrow(new MaybeNotCurrentLeaderException(TEST_MESSAGE)).when(mockA).val();
+
+        assertThatThrownBy(proxyA::val)
+                .isInstanceOf(MaybeNotCurrentLeaderException.class)
+                .hasMessage(TEST_MESSAGE);
+        verify(mockA, times(0)).close();
+        verify(delegateSupplier, times(1)).get();
+    }
+
+    @Test
+    public void whenMaybeNotCurrentLeaderAndLeadershipLostShouldClearDelegate() throws Exception {
+        MyCloseable mockA = mock(MyCloseable.class);
+        LeadershipCoordinator leadershipCoordinator = LeadershipCoordinator.create(leaderElectionService);
+        MyCloseable proxyA =
+                AwaitingLeadershipProxy.newProxyInstance(MyCloseable.class, () -> mockA, leadershipCoordinator);
+
+        MyCloseable proxyB = AwaitingLeadershipProxy.newProxyInstance(
+                MyCloseable.class, () -> mock(MyCloseable.class), leadershipCoordinator);
+
+        waitForLeadershipToBeGained();
+
+        proxyA.val();
+        proxyB.val();
+
+        doThrow(new MaybeNotCurrentLeaderException("foo")).when(mockA).val();
+
+        loseLeadership(() -> {
+            proxyB.val();
+            return null;
+        });
+
+        assertThatThrownBy(proxyA::val)
+                .isInstanceOf(NotCurrentLeaderException.class)
+                .hasMessage("method invoked on a non-leader");
+        verify(mockA).close();
+    }
+
     @Test
     public void shouldClearDelegateIfLeadershipLossIsRealizedByAnotherProxy() throws Exception {
         MyCloseable mockA = mock(MyCloseable.class);
@@ -274,8 +326,7 @@ public void shouldClearDelegateIfLeadershipLossIsRealizedByAnotherProxy() throws
         MyCloseable proxyB = AwaitingLeadershipProxy.newProxyInstance(
                 MyCloseable.class, () -> mock(MyCloseable.class), leadershipCoordinator);
 
-        // Wait to gain leadership
-        Uninterruptibles.sleepUninterruptibly(Duration.ofMillis(100L));
+        waitForLeadershipToBeGained();
 
         proxyA.val();
         proxyB.val();
@@ -315,8 +366,7 @@ public void shouldClearDelegateIfLeadershipTokenIsRefreshedByAnotherProxy() thro
         MyCloseable proxyB = AwaitingLeadershipProxy.newProxyInstance(
                 MyCloseable.class, () -> mock(MyCloseable.class), leadershipCoordinator);
 
-        // Wait to gain leadership
-        Uninterruptibles.sleepUninterruptibly(Duration.ofMillis(100L));
+        waitForLeadershipToBeGained();
 
         proxyA.val();
         proxyB.val();u}(jS (11cd39cba652299ef3cff89075a816608206a2a3jXT ]timelock-impl/src/main/java/com/palantir/atlasdb/timelock/paxos/PaxosTimestampBoundStore.javajZT modifiedjRT KjST Kj\T K%j]T https://github.com/palantir/atlasdb/blob/e4e28977c0f6884e60d246bbf5b03b80b44bf874/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javaj_T https://github.com/palantir/atlasdb/raw/e4e28977c0f6884e60d246bbf5b03b80b44bf874/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javajaT https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.java?ref=e4e28977c0f6884e60d246bbf5b03b80b44bf874jcT Xs  @@ -21,7 +21,9 @@
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.timelock.paxos.PaxosQuorumCheckingCoalescingFunction.PaxosContainer;
 import com.palantir.common.remoting.ServiceNotAvailableException;
+import com.palantir.leader.MaybeNotCurrentLeaderException;
 import com.palantir.leader.NotCurrentLeaderException;
+import com.palantir.logsafe.Arg;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -48,6 +50,11 @@
 public class PaxosTimestampBoundStore implements TimestampBoundStore {
     private static final SafeLogger log = SafeLoggerFactory.get(PaxosTimestampBoundStore.class);
 
+    private static final String TOO_SMALL_LIMIT_INCREASE_MESSAGE =
+            "It appears we updated the timestamp limit to {}, which was less than our target {}."
+                    + " This suggests we have another timestamp service running; possibly because we"
+                    + " lost and regained leadership. For safety, we are now stopping this service.";
+
     private final PaxosProposer proposer;
     private final PaxosLearner knowledge;
 
@@ -246,15 +253,9 @@ public synchronized void storeUpperLimit(long limit) throws MultipleRunningTimes
                     // This is dangerous; proposing at the next sequence number is unsafe, as timestamp services
                     // generally assume they have the ALLOCATION_BUFFER_SIZE timestamps up to this.
                     // TODO (jkong): Devise a method that better preserves availability of the cluster.
-                    log.warn(
-                            "It appears we updated the timestamp limit to {}, which was less than our target {}."
-                                    + " This suggests we have another timestamp service running; possibly because we"
-                                    + " lost and regained leadership. For safety, we are now stopping this service.",
-                            SafeArg.of("newLimit", newLimit),
-                            SafeArg.of("target", limit));
-                    throw new NotCurrentLeaderException(String.format(
-                            "We updated the timestamp limit to %s, which was less than our target %s.",
-                            newLimit, limit));
+                    List<Arg<?>> args = List.of(SafeArg.of("newLimit", newLimit), SafeArg.of("target", limit));
+                    log.warn(TOO_SMALL_LIMIT_INCREASE_MESSAGE, args);
+                    throw new MaybeNotCurrentLeaderException(TOO_SMALL_LIMIT_INCREASE_MESSAGE, args);
                 }
                 return;
             } catch (PaxosRoundFailureException e) {
@@ -273,14 +274,18 @@ public synchronized void storeUpperLimit(long limit) throws MultipleRunningTimes
      */
     private void checkAgreedBoundIsOurs(long limit, long newSeq, PaxosValue value) throws NotCurrentLeaderException {
         if (!proposer.getUuid().equals(value.getLeaderUUID())) {
-            String errorMsg = String.format(
-                    "Timestamp limit changed from under us for sequence '%s' (proposer with UUID '%s' changed"
-                            + " it, our UUID is '%s'). This suggests that we have lost leadership, and another timelock"
+            throw new MaybeNotCurrentLeaderException(
+                    "Timestamp limit changed from under us for sequence '{}' (proposer with UUID '{}' changed"
+                            + " it, our UUID is '{}'). This suggests that we have lost leadership, and another timelock"
                             + " server has gained leadership and updated the timestamp bound."
-                            + " The offending bound was '%s'; we tried to propose"
-                            + " a bound of '%s'. (The offending Paxos value was '%s'.)",
-                    newSeq, value.getLeaderUUID(), proposer.getUuid(), PtBytes.toLong(value.getData()), limit, value);
-            throw new NotCurrentLeaderException(errorMsg);
+                            + " The offending bound was '{}'; we tried to propose"
+                            + " a bound of '{}'. (The offending Paxos value was '{}'.)",
+                    SafeArg.of("newSeq", newSeq),
+                    SafeArg.of("leaderUuid", value.getLeaderUUID()),
+                    SafeArg.of("ourUuid", proposer.getUuid()),
+                    SafeArg.of("newLimit", PtBytes.toLong(value.getData())),
+                    SafeArg.of("target", limit),
+                    SafeArg.of("value", value));
         }
         DebugLogger.logger.info(
                 "Trying to store limit '{}' for sequence '{}' yielded consensus on the value '{}'.",u}(jS (e10b0f23b968bd36b320ca2cad302b91efca83e2jXT atimelock-impl/src/test/java/com/palantir/atlasdb/timelock/paxos/PaxosTimestampBoundStoreTest.javajZT modifiedjRT K	jST Kj\T Kj]T https://github.com/palantir/atlasdb/blob/e4e28977c0f6884e60d246bbf5b03b80b44bf874/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.javaj_T https://github.com/palantir/atlasdb/raw/e4e28977c0f6884e60d246bbf5b03b80b44bf874/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.javajaT https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStoreTest.java?ref=e4e28977c0f6884e60d246bbf5b03b80b44bf874jcT X  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.timelock.paxos;
 
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static java.util.stream.Collectors.toList;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
@@ -32,8 +33,9 @@
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.common.remoting.ServiceNotAvailableException;
 import com.palantir.common.streams.KeyedStream;
-import com.palantir.leader.NotCurrentLeaderException;
+import com.palantir.leader.MaybeNotCurrentLeaderException;
 import com.palantir.leader.proxy.ToggleableExceptionProxy;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.paxos.Client;
 import com.palantir.paxos.PaxosAcceptor;
 import com.palantir.paxos.PaxosAcceptorNetworkClient;
@@ -244,7 +246,12 @@ public void retriesProposeUntilSuccessful() throws Exception {
     public void throwsIfBoundUnexpectedlyChangedUnderUs() {
         PaxosTimestampBoundStore additionalStore = createPaxosTimestampBoundStore(1);
         additionalStore.storeUpperLimit(TIMESTAMP_1);
-        assertThatThrownBy(() -> store.storeUpperLimit(TIMESTAMP_2)).isInstanceOf(NotCurrentLeaderException.class);
+        assertThatLoggableExceptionThrownBy(() -> store.storeUpperLimit(TIMESTAMP_2))
+                .isInstanceOf(MaybeNotCurrentLeaderException.class)
+                .hasMessageContaining("Timestamp limit changed from under us for sequence")
+                .args()
+                // We don't know the leader ids in advance, so we can't assert on them.
+                .contains(SafeArg.of("newSeq", PaxosAcceptor.NO_LOG_ENTRY + 1), SafeArg.of("target", TIMESTAMP_2));
     }
 
     @Testueu(b3c3db5d06a9201e25ffece4092b5bdf15d86035}(sha(b3c3db5d06a9201e25ffece4092b5bdf15d86035node_idEC_kwDOAjP5fdoAKGIzYzNkYjVkMDZhOTIwMWUyNWZmZWNlNDA5MmI1YmRmMTVkODYwMzUcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-05-31T10:15:03Zu	committer}(jT Lucas MeirelesjT meireles31@msn.comjT 2023-05-31T10:15:03Zumessagedon't reuse tabletree}(jT (7b7b157ae4b0ea9d6bfd3bbf1c1725a59f6d76f3url`https://api.github.com/repos/palantir/atlasdb/git/trees/7b7b157ae4b0ea9d6bfd3bbf1c1725a59f6d76f3ujT bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b3c3db5d06a9201e25ffece4092b5bdf15d86035
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmR3HicACgkQJd22kJ7J
Giz92Af9Gl19gRMrdWuIfk8GYAdj/UQx8LoYN64nkMHM89fBMmXLzwRtJqAehpjD
9aa+1otnly2XDwIwFqvcbHTtSxAEG4FUquG++109N7bPRVBBHJ7IXkZvLZcwREdO
16XTQ8FTyYOGVgQc625+EPPb4PsCiTq0RWv2Yvbm+a+zBgCa+UbckKek7lcOgJdj
43U4ruf8ZR3dpVMi7UwN6nW3VURGyKPWxlIpjsDJv3jpiIrkygQmEJ801A+t4nvi
nqfvX99paNi9FKrKR4rdqCj5ppDHrGSzv1dMu6G+fwC2HqbtYv24yo7PFQmL40iy
BblaRjGWA7OZPkxKiJoFk8FFQmTd6g==
=5mZA
-----END PGP SIGNATURE-----payloadtree 7b7b157ae4b0ea9d6bfd3bbf1c1725a59f6d76f3
parent 103c91300748570c787234e4311fc1d1eec1d4b2
author Lucas Meireles <meireles31@msn.com> 1685528103 +0100
committer Lucas Meireles <meireles31@msn.com> 1685528103 +0100

don't reuse table
uujT ^https://api.github.com/repos/palantir/atlasdb/commits/b3c3db5d06a9201e25ffece4092b5bdf15d86035html_urlShttps://github.com/palantir/atlasdb/commit/b3c3db5d06a9201e25ffece4092b5bdf15d86035comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b3c3db5d06a9201e25ffece4092b5bdf15d86035/commentsjT }(loginLucasIMEidJg jT MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jT %https://api.github.com/users/LucasIMEjT https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujT }(jT LucasIMEjT Jg jT MDQ6VXNlcjY3ODczMTE=jT 3https://avatars.githubusercontent.com/u/6787311?v=4jT h5jT %https://api.github.com/users/LucasIMEjT https://github.com/LucasIMEjT /https://api.github.com/users/LucasIME/followersjT <https://api.github.com/users/LucasIME/following{/other_user}jT 5https://api.github.com/users/LucasIME/gists{/gist_id}jT <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jT 3https://api.github.com/users/LucasIME/subscriptionsjT *https://api.github.com/users/LucasIME/orgsjT +https://api.github.com/users/LucasIME/reposjT 6https://api.github.com/users/LucasIME/events{/privacy}jT 5https://api.github.com/users/LucasIME/received_eventsjT UserjT uparents]}(jT (103c91300748570c787234e4311fc1d1eec1d4b2jT ^https://api.github.com/repos/palantir/atlasdb/commits/103c91300748570c787234e4311fc1d1eec1d4b2jT Shttps://github.com/palantir/atlasdb/commit/103c91300748570c787234e4311fc1d1eec1d4b2uastats}(totalK	additionsK	deletionsKufiles](}(jT (3079bf4e594eb347d2cc24981db8fcd1ebcebc92filenameKatlasdb-workload-server-distribution/src/test/resources/workload-server.ymlstatusmodifiedjT KjT KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/b3c3db5d06a9201e25ffece4092b5bdf15d86035/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/b3c3db5d06a9201e25ffece4092b5bdf15d86035/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=b3c3db5d06a9201e25ffece4092b5bdf15d86035patchX0  @@ -31,7 +31,7 @@ install:
     maxThreadCount: 2
   singleBusyCellReadsNoTouchConfig:
     tableConfiguration:
-      tableName: single-busy-cell-test
+      tableName: single-busy-cell-no-touch-test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: single-busy-cell-reads-no-touchu}(jT (501978040135c4410d41d9942626bcccd6a4763fjT Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymljT modifiedjT KjT KjT KjT https://github.com/palantir/atlasdb/blob/b3c3db5d06a9201e25ffece4092b5bdf15d86035/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljT https://github.com/palantir/atlasdb/raw/b3c3db5d06a9201e25ffece4092b5bdf15d86035/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj U https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=b3c3db5d06a9201e25ffece4092b5bdf15d86035jU X0  @@ -68,7 +68,7 @@ install:
     maxThreadCount: 2
   singleBusyCellReadsNoTouchConfig:
     tableConfiguration:
-      tableName: single-busy-cell-test
+      tableName: single_busy_cell_no_touch_test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: single-busy-cell-reads-no-touchu}(jT (bc809b9d413f8e9eefad29dfac9476a79d0e9120jT Aatlasdb-workload-server-distribution/var/conf/workload-server.ymljT modifiedjT KjT KjT KjT https://github.com/palantir/atlasdb/blob/b3c3db5d06a9201e25ffece4092b5bdf15d86035/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljT https://github.com/palantir/atlasdb/raw/b3c3db5d06a9201e25ffece4092b5bdf15d86035/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj U https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=b3c3db5d06a9201e25ffece4092b5bdf15d86035jU X0  @@ -32,7 +32,7 @@ install:
     maxThreadCount: 2
   singleBusyCellReadsNoTouchConfig:
     tableConfiguration:
-      tableName: single-busy-cell-test
+      tableName: single-busy-cell-no-touch-test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: single-busy-cell-reads-no-touchueu(8115f769a90ace25caba7dd838cd38323f359e59}(sha(8115f769a90ace25caba7dd838cd38323f359e59node_idEC_kwDOAjP5fdoAKDgxMTVmNzY5YTkwYWNlMjVjYWJhN2RkODM4Y2QzODMyM2YzNTllNTkcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-07-21T04:08:18Zu	committer}(jU David Schlosnaglej U davids@palantir.comj"U 2023-07-21T04:08:30Zumessage$Simplify getStartTimestampsForValuestree}(jU (201bd7359575ef6cd7c34e096a0010ed0f126973url`https://api.github.com/repos/palantir/atlasdb/git/trees/201bd7359575ef6cd7c34e096a0010ed0f126973uj.U bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8115f769a90ace25caba7dd838cd38323f359e59
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmS6BL8ACgkQR9hsJ74Q
0l8ALAf/cSCqN6rQWy4rTYqiqLEMlme0vgo4hJ20gYlfV9AEDOqBQq20AdMsp0Sg
QPqeIvMSFSU9MkADk5UomPeHoZU/R5z3664flufRJZei7s7DfKJDXLWe+NsOkbtk
EZcr00FNWfUWm7wNp54BG+RuHPjW76twKEnVe2iJv1aWyvfe1qHu0yLwNIxeHgYB
6TF9dMOUUnNVmNDTCZQijaSwIeE1JmFoITXSYDUZwE94foZLA6xJjIgHL7Np2/t/
LbnrGEh78eHCO3sXtEXnGA0COQ0POsKD7R8v8napzlSLB63KGOte0OSj29IyMJnx
2A0nR9VfGJjd8fOQp0MrEfY2S4DnLQ==
=jkNn
-----END PGP SIGNATURE-----payloadX  tree 201bd7359575ef6cd7c34e096a0010ed0f126973
parent e862db9d49d773cf500c634774dc80f980f571a0
author David Schlosnagle <davids@palantir.com> 1689912498 -0400
committer David Schlosnagle <davids@palantir.com> 1689912510 -0400

Simplify getStartTimestampsForValues
uuj.U ^https://api.github.com/repos/palantir/atlasdb/commits/8115f769a90ace25caba7dd838cd38323f359e59html_urlShttps://github.com/palantir/atlasdb/commit/8115f769a90ace25caba7dd838cd38323f359e59comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8115f769a90ace25caba7dd838cd38323f359e59/commentsjU }(loginschlosnaidMBjU MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j.U %https://api.github.com/users/schlosnaj<U https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj$U }(jAU schlosnajCU MBjU MDQ6VXNlcjU0NTk0jEU 1https://avatars.githubusercontent.com/u/54594?v=4jGU h5j.U %https://api.github.com/users/schlosnaj<U https://github.com/schlosnajJU /https://api.github.com/users/schlosna/followersjLU <https://api.github.com/users/schlosna/following{/other_user}jNU 5https://api.github.com/users/schlosna/gists{/gist_id}jPU <https://api.github.com/users/schlosna/starred{/owner}{/repo}jRU 3https://api.github.com/users/schlosna/subscriptionsjTU *https://api.github.com/users/schlosna/orgsjVU +https://api.github.com/users/schlosna/reposjXU 6https://api.github.com/users/schlosna/events{/privacy}jZU 5https://api.github.com/users/schlosna/received_eventsj\U Userj^U uparents]}(jU (e862db9d49d773cf500c634774dc80f980f571a0j.U ^https://api.github.com/repos/palantir/atlasdb/commits/e862db9d49d773cf500c634774dc80f980f571a0j<U Shttps://github.com/palantir/atlasdb/commit/e862db9d49d773cf500c634774dc80f980f571a0uastats}(totalK	additionsK	deletionsKufiles]}(jU (999b09d1124446cca5075fe20f78f7b373c0bcd5filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedjxU KjyU KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/8115f769a90ace25caba7dd838cd38323f359e59/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/8115f769a90ace25caba7dd838cd38323f359e59/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=8115f769a90ace25caba7dd838cd38323f359e59patchX  @@ -192,7 +192,6 @@
 import org.eclipse.collections.api.map.primitive.LongLongMap;
 import org.eclipse.collections.api.set.primitive.ImmutableLongSet;
 import org.eclipse.collections.api.set.primitive.LongSet;
-import org.eclipse.collections.api.set.primitive.MutableLongSet;
 
 /**
  * This implements snapshot isolation for transactions.
@@ -2567,11 +2566,7 @@ protected Set<LockDescriptor> getLocksForWrites() {
     ///////////////////////////////////////////////////////////////////////////
 
     private LongSet getStartTimestampsForValues(Iterable<Value> values) {
-        MutableLongSet results = LongSets.mutable.empty();
-        for (Value v : values) {
-            results.add(v.getTimestamp());
-        }
-        return results.toImmutable();
+        return LongSets.immutable.withAll(Streams.stream(values).mapToLong(Value::getTimestamp));
     }
 
     private LongLongMap getCommitTimestampsSync(uau(7ed084becd1ddbeac656793e932f0b37bdc59d0c}(sha(7ed084becd1ddbeac656793e932f0b37bdc59d0cnode_idEC_kwDOAjP5fdoAKDdlZDA4NGJlY2QxZGRiZWFjNjU2NzkzZTkzMmYwYjM3YmRjNTlkMGMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-20T09:05:22Zu	committer}(jU 
Sam KramerjU skramer@palantir.comjU 2023-06-20T09:05:22Zumessageadd comment in testtree}(jU (8b00e2a8677481ac0d78ae4f7c9c45bb6ae26613url`https://api.github.com/repos/palantir/atlasdb/git/trees/8b00e2a8677481ac0d78ae4f7c9c45bb6ae26613ujU bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7ed084becd1ddbeac656793e932f0b37bdc59d0c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSRa9IACgkQmPPOpKR4
XS2XFwf/ZDGwGyIwDALsWl4FLyIu7n3xKtb8sebEf5KkEo+fyQJsdS0gn646sUV4
IpbbgeN2IM1oHe5HKQJQbwBBN+i9srzy6tdlc3+FvnS/2G/l8gwGwY/rDkYjsOzu
tyVJlmbkT55/K1JBh2ulBfzmgqk2TkzjbKUts98PjsHYyqeUvOa8yh6NOoacGATo
6W+lE2NoxtBM4bcpYw7MYrYvz/opQ18xsbWzNoKTD4Lgub60Oh7voUJcZePOFRkh
gG6tX9K1bgHVABuMDDx5luT3/YPYyqA9TdG/oohrAnmlsTNXSXhpIp5AO2U3VnAa
toWMxsodt2QtzpHHT0pNfpKpJSCZEg==
=aMNE
-----END PGP SIGNATURE-----payloadtree 8b00e2a8677481ac0d78ae4f7c9c45bb6ae26613
parent 8b7ba98b2674834abc9e0646cd80176c7008e9bc
author Sam Kramer <skramer@palantir.com> 1687251922 +0100
committer Sam Kramer <skramer@palantir.com> 1687251922 +0100

add comment in test
uujU ^https://api.github.com/repos/palantir/atlasdb/commits/7ed084becd1ddbeac656793e932f0b37bdc59d0chtml_urlShttps://github.com/palantir/atlasdb/commit/7ed084becd1ddbeac656793e932f0b37bdc59d0ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7ed084becd1ddbeac656793e932f0b37bdc59d0c/commentsjU }(login
Sam-KrameridJ^2_ jU MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jU 'https://api.github.com/users/Sam-KramerjU https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujU }(jU 
Sam-KramerjU J^2_ jU MDQ6VXNlcjYyMzg4MTQ=jU 3https://avatars.githubusercontent.com/u/6238814?v=4jU h5jU 'https://api.github.com/users/Sam-KramerjU https://github.com/Sam-KramerjU 1https://api.github.com/users/Sam-Kramer/followersjU >https://api.github.com/users/Sam-Kramer/following{/other_user}jU 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jU >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jU 5https://api.github.com/users/Sam-Kramer/subscriptionsjU ,https://api.github.com/users/Sam-Kramer/orgsjU -https://api.github.com/users/Sam-Kramer/reposjU 8https://api.github.com/users/Sam-Kramer/events{/privacy}jU 7https://api.github.com/users/Sam-Kramer/received_eventsjU UserjU uparents]}(jU (8b7ba98b2674834abc9e0646cd80176c7008e9bcjU ^https://api.github.com/repos/palantir/atlasdb/commits/8b7ba98b2674834abc9e0646cd80176c7008e9bcjU Shttps://github.com/palantir/atlasdb/commit/8b7ba98b2674834abc9e0646cd80176c7008e9bcuastats}(totalK	additionsK	deletionsK ufiles]}(jU (25e3be6e12010824fbabfb22be7a27dd2579c9c7filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedjU KjU K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/7ed084becd1ddbeac656793e932f0b37bdc59d0c/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7ed084becd1ddbeac656793e932f0b37bdc59d0c/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=7ed084becd1ddbeac656793e932f0b37bdc59d0cpatchXq  @@ -2448,6 +2448,7 @@ public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
                     return null;
                 });
             } catch (TransactionFailedRetriableException _t) {
+                // Expected, as we want to create a large row with only aborted values.
             }
         }
         assertThatLoggableExceptionThrownBy(uau(b2633be0299e6092d66c13038584ceed3df89c62}(sha(b2633be0299e6092d66c13038584ceed3df89c62node_idEC_kwDOAjP5fdoAKGIyNjMzYmUwMjk5ZTYwOTJkNjZjMTMwMzg1ODRjZWVkM2RmODljNjIcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-12T08:11:07Zu	committer}(jV 	Tom PapkejV tpapke@palantir.comjV 2023-06-14T13:02:40Zumessage#Pass refreshable thread info configtree}(jV (3dfb7c0ef8884f0215cd67248af73099c0d2fd7burl`https://api.github.com/repos/palantir/atlasdb/git/trees/3dfb7c0ef8884f0215cd67248af73099c0d2fd7bujV bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b2633be0299e6092d66c13038584ceed3df89c62
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSJunAACgkQmF9s0kaF
Iw1IMAgAisq6zG9c2taILl9cPdPRUeb+pWaDx90iRHKutTDVyJkh60CTa10EKf35
y5psnclSQj1peoI521QxDAe6YpY/XS8K1lJwy3pC2N6kvvUORQZOFpKzkVGFqMzM
11KoonH6CAtibZabGL9qcj6ZHnMyU/wk8I/dSw3Q3iU1VCl8q/k5YN8glhCGvMu+
9FVrEDa/UcJOk0MbTAWCSNrKC2iMNt0r8Obgy+55Rf0IKrTglI3ceGzyDpmQB0S3
MClzn24cD3mQsaEUiUhcYj1cBSCKFDHRDtbaf0+CvJk8h62gdQsSThVPh4F8VN+n
htE32APidxPE1My0vevpIskL80dcyw==
=guIa
-----END PGP SIGNATURE-----payloadtree 3dfb7c0ef8884f0215cd67248af73099c0d2fd7b
parent b4f5ea7955bd88083f488244a5895d0b48319268
author Tom Papke <tpapke@palantir.com> 1686557467 +0100
committer Tom Papke <tpapke@palantir.com> 1686747760 +0100

Pass refreshable thread info config
uujV ^https://api.github.com/repos/palantir/atlasdb/commits/b2633be0299e6092d66c13038584ceed3df89c62html_urlShttps://github.com/palantir/atlasdb/commit/b2633be0299e6092d66c13038584ceed3df89c62comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b2633be0299e6092d66c13038584ceed3df89c62/commentsj
V }(login	ToemmscheidJbojV MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jV &https://api.github.com/users/Toemmschej*V https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujV }(j/V 	Toemmschej1V JbojV MDQ6VXNlcjQzNjc1NDkwj3V 4https://avatars.githubusercontent.com/u/43675490?v=4j5V h5jV &https://api.github.com/users/Toemmschej*V https://github.com/Toemmschej8V 0https://api.github.com/users/Toemmsche/followersj:V =https://api.github.com/users/Toemmsche/following{/other_user}j<V 6https://api.github.com/users/Toemmsche/gists{/gist_id}j>V =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j@V 4https://api.github.com/users/Toemmsche/subscriptionsjBV +https://api.github.com/users/Toemmsche/orgsjDV ,https://api.github.com/users/Toemmsche/reposjFV 7https://api.github.com/users/Toemmsche/events{/privacy}jHV 6https://api.github.com/users/Toemmsche/received_eventsjJV UserjLV uparents]}(jV (b4f5ea7955bd88083f488244a5895d0b48319268jV ^https://api.github.com/repos/palantir/atlasdb/commits/b4f5ea7955bd88083f488244a5895d0b48319268j*V Shttps://github.com/palantir/atlasdb/commit/b4f5ea7955bd88083f488244a5895d0b48319268uastats}(totalK	additionsK~	deletionsKufiles](}(jV (f9555efe86633c5d49ea58b677936f1fc19684b1filenameJlock-api/src/main/java/com/palantir/lock/DebugThreadInfoConfiguration.javastatusmodifiedjfV KjgV K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/b2633be0299e6092d66c13038584ceed3df89c62/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaraw_urlhttps://github.com/palantir/atlasdb/raw/b2633be0299e6092d66c13038584ceed3df89c62/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.java?ref=b2633be0299e6092d66c13038584ceed3df89c62patchX  @@ -16,16 +16,23 @@
 
 package com.palantir.lock;
 
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import org.immutables.value.Value;
 
+@JsonDeserialize(as = ImmutableDebugThreadInfoConfiguration.class)
+@JsonSerialize(as = ImmutableDebugThreadInfoConfiguration.class)
 @Value.Immutable
 public interface DebugThreadInfoConfiguration {
 
+    @JsonProperty("record-thread-info")
     @Value.Default
     default boolean recordThreadInfo() {
         return false;
     }
 
+    @JsonProperty("thread-info-snapshot-interval-millis")
     @Value.Default
     default long threadInfoSnapshotIntervalMillis() {
         return 5000L;u}(jV (f4e180015a73e78898f57b09e9269c010d702f6fjlV ?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javajnV modifiedjfV KjgV KjpV K	jqV https://github.com/palantir/atlasdb/blob/b2633be0299e6092d66c13038584ceed3df89c62/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javajsV https://github.com/palantir/atlasdb/raw/b2633be0299e6092d66c13038584ceed3df89c62/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javajuV https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=b2633be0299e6092d66c13038584ceed3df89c62jwV X  @@ -20,6 +20,7 @@
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.google.common.base.MoreObjects;
+import com.palantir.refreshable.Refreshable;
 import java.io.InvalidObjectException;
 import java.io.ObjectInputStream;
 import java.io.Serializable;
@@ -132,8 +133,8 @@ public long slowLogTriggerMillis() {
      */
     @JsonIgnore
     @Value.Default
-    public DebugThreadInfoConfiguration threadInfoConfiguration() {
-        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    public Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration() {
+        return Refreshable.only(ImmutableDebugThreadInfoConfiguration.builder().build());
     }
 
     @Override
@@ -153,7 +154,9 @@ && getRandomBitCount() == other.getRandomBitCount()
                 && Objects.equals(getMaxAllowedBlockingDuration(), other.getMaxAllowedBlockingDuration())
                 && Objects.equals(getMaxNormalLockAge(), other.getMaxNormalLockAge())
                 && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout())
-                && Objects.equals(threadInfoConfiguration(), other.threadInfoConfiguration());
+                && Objects.equals(
+                        threadInfoConfiguration().current(),
+                        other.threadInfoConfiguration().current());
     }
 
     @Overrideu}(jV (dfc342440e6b1fcac63ded5134e926da137e5418jlV lock-impl/build.gradlejnV modifiedjfV KjgV K jpV KjqV jhttps://github.com/palantir/atlasdb/blob/b2633be0299e6092d66c13038584ceed3df89c62/lock-impl%2Fbuild.gradlejsV ihttps://github.com/palantir/atlasdb/raw/b2633be0299e6092d66c13038584ceed3df89c62/lock-impl%2Fbuild.gradlejuV |https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fbuild.gradle?ref=b2633be0299e6092d66c13038584ceed3df89c62jwV X  @@ -10,6 +10,7 @@ dependencies {
   implementation 'com.google.guava:guava'
   implementation 'com.palantir.common:streams'
   implementation 'com.palantir.nylon:nylon-threads'
+  implementation 'com.palantir.refreshable:refreshable'
   implementation 'com.palantir.safe-logging:preconditions'
   implementation 'com.palantir.safe-logging:safe-logging'
   implementation 'joda-time:joda-time'u}(jV (c9a2393eeebc1023101b7bdc6e4312ddaf9d2ca1jlV Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javajnV modifiedjfV K"jgV KjpV K*jqV https://github.com/palantir/atlasdb/blob/b2633be0299e6092d66c13038584ceed3df89c62/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javajsV https://github.com/palantir/atlasdb/raw/b2633be0299e6092d66c13038584ceed3df89c62/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javajuV https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=b2633be0299e6092d66c13038584ceed3df89c62jwV X  @@ -25,6 +25,8 @@
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
 import com.palantir.logsafe.UnsafeArg;
+import com.palantir.refreshable.Disposable;
+import com.palantir.refreshable.Refreshable;
 import java.util.HashMap;
 import java.util.Map;
 import java.util.Map.Entry;
@@ -38,24 +40,34 @@
 import java.util.stream.Collectors;
 
 public class LockThreadInfoSnapshotManager implements AutoCloseable {
-    private DebugThreadInfoConfiguration threadInfoConfiguration;
+    private Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration;
 
     private Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
 
-    private volatile Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot;
+    private volatile Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot = ImmutableMap.of();
 
     private ScheduledExecutorService scheduledExecutorService = PTExecutors.newSingleThreadScheduledExecutor();
 
+    private Disposable disposable;
+
+    private boolean isScheduled = false;
+
     public LockThreadInfoSnapshotManager(
-            DebugThreadInfoConfiguration threadInfoConfiguration,
+            Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration,
             Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> mapSupplier) {
         this.threadInfoConfiguration = threadInfoConfiguration;
         this.tokenMapSupplier = mapSupplier;
-        this.lastKnownThreadInfoSnapshot = ImmutableMap.of();
     }
 
     public void start() {
         scheduleRun();
+        disposable = threadInfoConfiguration.subscribe(newThreadInfoConfiguration -> {
+            synchronized (this) {
+                if (!isScheduled) {
+                    scheduleRun();
+                }
+            }
+        });
     }
 
     private void run() {
@@ -65,10 +77,22 @@ private void run() {
         scheduleRun();
     }
 
-    private void scheduleRun() {
-        if (threadInfoConfiguration.recordThreadInfo()) {
+    @VisibleForTesting
+    synchronized boolean isScheduled() {
+        return isScheduled;
+    }
+
+    private synchronized void scheduleRun() {
+        if (threadInfoConfiguration.current().recordThreadInfo()) {
+            if (!isScheduled) {
+                isScheduled = true;
+            }
             scheduledExecutorService.schedule(
-                    this::run, threadInfoConfiguration.threadInfoSnapshotIntervalMillis(), TimeUnit.MILLISECONDS);
+                    this::run,
+                    threadInfoConfiguration.current().threadInfoSnapshotIntervalMillis(),
+                    TimeUnit.MILLISECONDS);
+        } else {
+            isScheduled = false;
         }
     }
 
@@ -84,7 +108,7 @@ Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot() {
     public UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> getRestrictedSnapshotAsOptionalLogArg(
             Set<LockDescriptor> lockDescriptors) {
         String argName = "presumedClientThreadHoldersIfEnabled";
-        if (!threadInfoConfiguration.recordThreadInfo()) {
+        if (!threadInfoConfiguration.current().recordThreadInfo()) {
             return UnsafeArg.of(argName, Optional.empty());
         }
         Map<LockDescriptor, LockClientAndThread> latestSnapshot = lastKnownThreadInfoSnapshot;
@@ -113,5 +137,7 @@ void takeSnapshot() {
     @Override
     public void close() {
         scheduledExecutorService.shutdown();
+        isScheduled = true;
+        disposable.dispose();
     }
 }u}(jV (36019ecc799255ae2165195d82a95680d58963bdjlV Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javajnV modifiedjfV K<jgV KjpV KBjqV https://github.com/palantir/atlasdb/blob/b2633be0299e6092d66c13038584ceed3df89c62/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javajsV https://github.com/palantir/atlasdb/raw/b2633be0299e6092d66c13038584ceed3df89c62/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javajuV https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=b2633be0299e6092d66c13038584ceed3df89c62jwV X  @@ -21,6 +21,7 @@
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.common.streams.KeyedStream;
+import com.palantir.lock.DebugThreadInfoConfiguration;
 import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
 import com.palantir.lock.LockClient;
 import com.palantir.lock.LockClientAndThread;
@@ -32,6 +33,8 @@
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.StringLockDescriptor;
 import com.palantir.logsafe.UnsafeArg;
+import com.palantir.refreshable.Refreshable;
+import com.palantir.refreshable.SettableRefreshable;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
@@ -68,9 +71,9 @@ public class ThreadInfoLockServiceImplTest {
     // Disable background snapshotting, invoke explicitly instead
     private final LockServiceImpl lockService = LockServiceImpl.create(LockServerOptions.builder()
             .isStandaloneServer(false)
-            .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+            .threadInfoConfiguration(Refreshable.only(ImmutableDebugThreadInfoConfiguration.builder()
                     .recordThreadInfo(false)
-                    .build())
+                    .build()))
             .build());
 
     @Test
@@ -276,10 +279,10 @@ public void refreshDoesNotChangeSnapshot() throws InterruptedException {
     public void backgroundSnapshotRunnerWorks() throws InterruptedException {
         LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
                 .isStandaloneServer(false)
-                .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                .threadInfoConfiguration(Refreshable.only(ImmutableDebugThreadInfoConfiguration.builder()
                         .recordThreadInfo(true)
                         .threadInfoSnapshotIntervalMillis(50L)
-                        .build())
+                        .build()))
                 .build());
         LockThreadInfoSnapshotManager backgroundSnapshotRunner = lockServiceWithBackgroundRunner.getSnapshotManager();
 
@@ -309,10 +312,10 @@ public void logArgIsUnsafeAndContainsEmptyOptionalIfNotRecordingThreadInfo() thr
     public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() throws InterruptedException {
         LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
                 .isStandaloneServer(false)
-                .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                .threadInfoConfiguration(Refreshable.only(ImmutableDebugThreadInfoConfiguration.builder()
                         .recordThreadInfo(true)
                         .threadInfoSnapshotIntervalMillis(50L)
-                        .build())
+                        .build()))
                 .build());
         LockRequest lockRequest2 = LockRequest.builder(
                         ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
@@ -333,6 +336,57 @@ public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() t
                                 Map.of(TEST_LOCK_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1))))));
     }
 
+    @Test
+    public void willRestartWhenConfigIsUpdated() throws InterruptedException {
+        SettableRefreshable<DebugThreadInfoConfiguration> refreshableThreadInfoConfiguration =
+                Refreshable.create(ImmutableDebugThreadInfoConfiguration.builder()
+                        .recordThreadInfo(true)
+                        .threadInfoSnapshotIntervalMillis(50L)
+                        .build());
+        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
+                .isStandaloneServer(false)
+                .threadInfoConfiguration(refreshableThreadInfoConfiguration)
+                .build());
+        LockThreadInfoSnapshotManager backgroundSnapshotRunner = lockServiceWithBackgroundRunner.getSnapshotManager();
+
+        LockResponse lockResponse = lockServiceWithBackgroundRunner.lockWithFullLockResponse(
+                LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+
+        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
+                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
+                .containsExactly(Map.entry(TEST_LOCK_1, ANONYMOUS_TEST_THREAD_1)));
+
+        // turn off background task
+        refreshableThreadInfoConfiguration.update(ImmutableDebugThreadInfoConfiguration.builder()
+                .recordThreadInfo(false)
+                .threadInfoSnapshotIntervalMillis(50L)
+                .build());
+
+        Awaitility.await()
+                .until(() ->
+                        !lockServiceWithBackgroundRunner.getSnapshotManager().isScheduled());
+
+        lockServiceWithBackgroundRunner.unlock(lockResponse.getToken());
+
+        // If background task was still running, it would take a snapshot in the meanwhile
+        Awaitility.await().atLeast(200, TimeUnit.MILLISECONDS);
+
+        // But we expect it to do nothing
+        assertThat(lockServiceWithBackgroundRunner.getSnapshotManager().getLastKnownThreadInfoSnapshot())
+                .containsExactly(Map.entry(TEST_LOCK_1, ANONYMOUS_TEST_THREAD_1));
+
+        // turn background task back on
+        refreshableThreadInfoConfiguration.update(ImmutableDebugThreadInfoConfiguration.builder()
+                .recordThreadInfo(true)
+                .threadInfoSnapshotIntervalMillis(50L)
+                .build());
+
+        // Now the unlock should be reflected in the snapshot
+        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
+                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
+                .doesNotContainKey(TEST_LOCK_1));
+    }
+
     private void forceSnapshot() {
         lockService.getSnapshotManager().takeSnapshot();
     }u}(jV (2d3777830cee23df595f18bcd0f7378a07e49ebejlV etimelock-agent/src/main/java/com/palantir/timelock/config/RestrictedTimeLockRuntimeConfiguration.javajnV modifiedjfV KjgV K jpV KjqV https://github.com/palantir/atlasdb/blob/b2633be0299e6092d66c13038584ceed3df89c62/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.javajsV https://github.com/palantir/atlasdb/raw/b2633be0299e6092d66c13038584ceed3df89c62/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.javajuV https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.java?ref=b2633be0299e6092d66c13038584ceed3df89c62jwV Xb  @@ -16,6 +16,7 @@
 
 package com.palantir.timelock.config;
 
+import com.palantir.lock.DebugThreadInfoConfiguration;
 import java.util.Optional;
 
 public class RestrictedTimeLockRuntimeConfiguration extends TimeLockRuntimeConfiguration {
@@ -54,4 +55,9 @@ public TimeLockAdjudicationConfiguration adjudication() {
     public Optional<TsBoundPersisterRuntimeConfiguration> timestampBoundPersistence() {
         return runtime.timestampBoundPersistence();
     }
+
+    @Override
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return runtime.threadInfoConfiguration();
+    }
 }u}(jV (d8d2a7c36eb3321b137f488acb279decabb46ac6jlV [timelock-agent/src/main/java/com/palantir/timelock/config/TimeLockRuntimeConfiguration.javajnV modifiedjfV KjgV K jpV KjqV https://github.com/palantir/atlasdb/blob/b2633be0299e6092d66c13038584ceed3df89c62/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.javajsV https://github.com/palantir/atlasdb/raw/b2633be0299e6092d66c13038584ceed3df89c62/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.javajuV https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.java?ref=b2633be0299e6092d66c13038584ceed3df89c62jwV X  @@ -20,6 +20,8 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.google.common.base.Preconditions;
+import com.palantir.lock.DebugThreadInfoConfiguration;
+import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
 import com.palantir.logsafe.DoNotLog;
 import java.util.Optional;
 import org.immutables.value.Value;
@@ -78,6 +80,12 @@ public TimeLockAdjudicationConfiguration adjudication() {
     @JsonProperty("timestamp-bound-persistence")
     public abstract Optional<TsBoundPersisterRuntimeConfiguration> timestampBoundPersistence();
 
+    @JsonProperty("debug-thread-info-config")
+    @Value.Default
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    }
+
     @Value.Check
     public void check() {
         Preconditions.checkState(u}(jV (77513894dea19941dd1dc0eed90fca3f7d17263bjlV Itimelock-agent/src/main/java/com/palantir/timelock/paxos/LockCreator.javajnV modifiedjfV KjgV KjpV KjqV https://github.com/palantir/atlasdb/blob/b2633be0299e6092d66c13038584ceed3df89c62/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javajsV https://github.com/palantir/atlasdb/raw/b2633be0299e6092d66c13038584ceed3df89c62/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javajuV https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.java?ref=b2633be0299e6092d66c13038584ceed3df89c62jwV X  @@ -21,18 +21,18 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.impl.LockServiceImpl;
 import com.palantir.lock.impl.ThreadPooledLockService;
+import com.palantir.refreshable.Refreshable;
 import com.palantir.timelock.config.TimeLockRuntimeConfiguration;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Semaphore;
-import java.util.function.Supplier;
 
 public class LockCreator {
-    private final Supplier<TimeLockRuntimeConfiguration> runtime;
+    private final Refreshable<TimeLockRuntimeConfiguration> runtime;
     private final long blockingTimeoutMs;
     private final Semaphore sharedThreadPool;
     private final ExecutorService sharedExecutor = PTExecutors.newCachedThreadPool(LockServiceImpl.class.getName());
 
-    public LockCreator(Supplier<TimeLockRuntimeConfiguration> runtime, int threadPoolSize, long blockingTimeoutMs) {
+    public LockCreator(Refreshable<TimeLockRuntimeConfiguration> runtime, int threadPoolSize, long blockingTimeoutMs) {
         this.runtime = runtime;
         this.sharedThreadPool = new Semaphore(threadPoolSize);
         this.blockingTimeoutMs = blockingTimeoutMs;
@@ -41,6 +41,7 @@ public LockCreator(Supplier<TimeLockRuntimeConfiguration> runtime, int threadPoo
     public CloseableLockService createThreadPoolingLockService() {
         LockServerOptions lockServerOptions = LockServerOptions.builder()
                 .slowLogTriggerMillis(runtime.get().slowLockLogTriggerMillis())
+                .threadInfoConfiguration(runtime.map(TimeLockRuntimeConfiguration::threadInfoConfiguration))
                 .build();
 
         LockServiceImpl rawLockService = LockServiceImpl.create(lockServerOptions, sharedExecutor);ueu(e37c6c9b28d80f74d4f46d3242318044bc4d4a08}(sha(e37c6c9b28d80f74d4f46d3242318044bc4d4a08node_idEC_kwDOAjP5fdoAKGUzN2M2YzliMjhkODBmNzRkNGY0NmQzMjQyMzE4MDQ0YmM0ZDRhMDgcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-04-11T15:11:18Zu	committer}(jV Patrick KoenigjV pkoenig10@gmail.comjV 2023-04-13T18:45:03ZumessageMake test query optionaltree}(jV (7a720ebca735634687df531ae373b292f627910curl`https://api.github.com/repos/palantir/atlasdb/git/trees/7a720ebca735634687df531ae373b292f627910cujV bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e37c6c9b28d80f74d4f46d3242318044bc4d4a08
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAAhcAAAAHc3NoLXJzYQAAAAMBAAEAAAIBAOLBVI00yZaP7395xCyqzy
aD/kgGj5GS8qP2f4Q0hM5gFbEYaTLwKvZTgcFMKJEw/3tOlCyuFoQChwrZ+YjoX3ZcTdIs
QnoGeYlwKUGY4x3QXLvrURZtGaXWggfEc+UKHT3mnGXM9FpX9CSdpTopg7KhxDlx3/Jv90
zimWImFPxKFUSZrhVGqD8qAQibPTFDs+JhK0cqllhsvm0PR9PilTde++NKLCQUNrRJi2+f
BjLBjJMJshRwXkkM6J8hDvyjiLJz4Bg9hq+5QLnO1fYaetU7aP4bsCs6ix5pyD4WO6cr6T
SMCtJThNdHvOVuOaCCHBOQrdVGjbMH9lmW5FL5oMsTZ86p24rZOFD9ly44mMJWYGk6F81y
japNgWorhR0tSZMSZPVlisGQQsRnsqQidrVPe3IR4MTUsKx39CAutxgk6N+BseeByXKw+H
aBKmd75u/FU7IoxEbXX7EuDq2TCtUmujYXiY7SY4T0DQDjNpHq+vrEUsKyi5mbRTdNahvt
eFWJU5UIwO7Ao+HdsqfUjGN6zw2HSkiHEG3iOj5OY+byI/ykoYGMQ40w6w7shCt7XDbUXa
/kGqIyicthBGQ7Y4/TtquH5Ag2UPSlN9C0Rt/ZBolkTfoLz4wCtTMzd7hdixs5yuocVTn7
njhSYSXRyRbbVcF/q56x1NAAsVOe9epxAAAAA2dpdAAAAAAAAAAGc2hhNTEyAAACFAAAAA
xyc2Etc2hhMi01MTIAAAIAoKjrsEqUf8itsFVwQTGvKWAo7MBXRjX1AL3NvDDE82tMznTQ
vpErTVPVlsb4AjUX6TMRPFip7m/x4xqZMsA/boeWvhAOz9aVSPGxqwPvwmtKcpt8IbWFEU
SNW4ebs+6bSzayOhXHL5loqKeCesrdRkbOENRsMz/3MpWah2FqXrBXkxuBEIGVtZrvUiaw
ZzDCoQ1XtRMXo3q6PBQgIsZEOPw5tjhlSV+reuoqDltIQNzBjfgusyjaKSRGzYdt5kHe1B
9Y+vCu0w0XcwPgz3kx70DgXEfRZvadyJ8T87cGvXgKZJs7T+XV0L+sw/o8obRDSeb/Ss3/
v2wqulZ4PnY0tjfaiDRWLXY86v3DNmUBVBpIGSBTftCuqCdZTCNYInBTcrPw6QbYJMVrEN
QAlW0+qOSlgPsjg2ZlZJpbxnR+phOQOACcVf4bRP68DZKEP3j8HVxRYsW9E0emugimYpXP
S6Yaq+mqSTO5gv4hjNnM2hfe7aM0PRK8Y59ISuOf+tA3Skn+srj3AmMYU+jYEKCx16opXg
HyTwKdQG98YXAvjtjJc+6DHgdhD/it9OqYu5hMjK7mSDkTt9voX+MwwONaPvvuD92Xed7N
EANq2lBRJkodPUGqv3ES8lKT0M0EsP4fLQXETTS5RJq3HvV7gSRqG8p6Qmfm9+iLjC/fmN
CVorI=
-----END SSH SIGNATURE-----payloadtree 7a720ebca735634687df531ae373b292f627910c
parent 6e081f04521863ae0874fd2ba63760f3ef0f0d68
author Patrick Koenig <pkoenig10@gmail.com> 1681225878 -0700
committer Patrick Koenig <pkoenig10@gmail.com> 1681411503 -0700

Make test query optional
uujV ^https://api.github.com/repos/palantir/atlasdb/commits/e37c6c9b28d80f74d4f46d3242318044bc4d4a08html_urlShttps://github.com/palantir/atlasdb/commit/e37c6c9b28d80f74d4f46d3242318044bc4d4a08comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e37c6c9b28d80f74d4f46d3242318044bc4d4a08/commentsjV }(login	pkoenig10idJLvP jV MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5jV &https://api.github.com/users/pkoenig10jV https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminujV }(jV 	pkoenig10jV JLvP jV MDQ6VXNlcjUyNzMxNjQ=jV 3https://avatars.githubusercontent.com/u/5273164?v=4jV h5jV &https://api.github.com/users/pkoenig10jV https://github.com/pkoenig10jV 0https://api.github.com/users/pkoenig10/followersjV =https://api.github.com/users/pkoenig10/following{/other_user}jV 6https://api.github.com/users/pkoenig10/gists{/gist_id}jV =https://api.github.com/users/pkoenig10/starred{/owner}{/repo}jV 4https://api.github.com/users/pkoenig10/subscriptionsjV +https://api.github.com/users/pkoenig10/orgsjV ,https://api.github.com/users/pkoenig10/reposjV 7https://api.github.com/users/pkoenig10/events{/privacy}jV 6https://api.github.com/users/pkoenig10/received_eventsjV UserjV uparents]}(jV (6e081f04521863ae0874fd2ba63760f3ef0f0d68jV ^https://api.github.com/repos/palantir/atlasdb/commits/6e081f04521863ae0874fd2ba63760f3ef0f0d68jV Shttps://github.com/palantir/atlasdb/commit/6e081f04521863ae0874fd2ba63760f3ef0f0d68uastats}(totalK	additionsK	deletionsK
ufiles](}(jV (9c5d0752d26338a6bd7a12031a481f8b1013f2d0filename\atlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/HikariCPConnectionManager.javastatusmodifiedjW KjW KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/e37c6c9b28d80f74d4f46d3242318044bc4d4a08/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e37c6c9b28d80f74d4f46d3242318044bc4d4a08/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.java?ref=e37c6c9b28d80f74d4f46d3242318044bc4d4a08patchX  @@ -246,20 +246,21 @@ private void testDataSource(HikariDataSource dataSourcePool) throws SQLException
      * @throws SQLException if connection is invalid and cannot be used.
      */
     private void testConnection(Connection connection) throws SQLException {
-        if (connConfig.getTestQuery().isEmpty()) {
-            if (!connection.isValid(connConfig.getSocketTimeoutSeconds())) {
-                throw new SQLException(String.format("Connection %s is not valid", connection));
-            }
-        } else {
-            try (PreparedStatement stmt = connection.prepareStatement(connConfig.getTestQuery())) {
+        if (connConfig.getTestQuery().isPresent()) {
+            try (PreparedStatement stmt =
+                    connection.prepareStatement(connConfig.getTestQuery().get())) {
                 stmt.setFetchSize(1); // only need first row result
                 ResultSet rs = stmt.executeQuery();
                 if (!rs.next()) {
                     throw new SQLException(String.format(
                             "Connection %s could not be validated as it did not return any results for test query %s",
-                            connection, connConfig.getTestQuery()));
+                            connection, connConfig.getTestQuery().get()));
                 }
             }
+        } else {
+            if (!connection.isValid(connConfig.getSocketTimeoutSeconds())) {
+                throw new SQLException(String.format("Connection %s is not valid", connection));
+            }
         }
     }
 u}(jV (e1fd2afeb410162c7eb111eb2ed045144d3511afjW Zatlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/ConnectionConfig.javajW modifiedjW KjW KjW K	j W https://github.com/palantir/atlasdb/blob/e37c6c9b28d80f74d4f46d3242318044bc4d4a08/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javaj"W https://github.com/palantir/atlasdb/raw/e37c6c9b28d80f74d4f46d3242318044bc4d4a08/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javaj$W https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.java?ref=e37c6c9b28d80f74d4f46d3242318044bc4d4a08j&W X  @@ -58,10 +58,7 @@ public MaskedValue getDbPassword() {
 
     public abstract String getDriverClass();
 
-    @Value.Default
-    public String getTestQuery() {
-        return "";
-    }
+    public abstract Optional<String> getTestQuery();
 
     @JsonIgnore
     @Value.Derived
@@ -185,8 +182,8 @@ public HikariConfig getHikariConfig() {
 
         initializeFailTimeoutMillis().ifPresent(config::setInitializationFailTimeout);
 
-        if (!getTestQuery().isEmpty()) {
-            config.setConnectionTestQuery(getTestQuery());
+        if (getTestQuery().isPresent()) {
+            config.setConnectionTestQuery(getTestQuery().get());
         }
 
         if (getSqlExceptionOverrideClass().isPresent()) {ueu(56ad677f3e044e62c34c711eb4f22ddf7e0d22fd}(sha(56ad677f3e044e62c34c711eb4f22ddf7e0d22fdnode_idEC_kwDOAjP5fdoAKDU2YWQ2NzdmM2UwNDRlNjJjMzRjNzExZWI0ZjIyZGRmN2UwZDIyZmQcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-04-10T14:54:55Zu	committer}(j:W 
svc-changelogj<W svc-changelog@palantir.comj>W 2023-04-10T14:54:55ZumessageAdd generated changelog entriestree}(j2W (09ae5cb7ec04c52baf3a550b757cfb28e257fbafurl`https://api.github.com/repos/palantir/atlasdb/git/trees/09ae5cb7ec04c52baf3a550b757cfb28e257fbafujJW bhttps://api.github.com/repos/palantir/atlasdb/git/commits/56ad677f3e044e62c34c711eb4f22ddf7e0d22fd/     
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQ0Iz8JEHYaJX37fAFQAADe/AD/bE+S88Qkf2b1G321LDe0TWWu
pYKr+f2n8A9T3hLPEXkA/2W48DboXS333rh0ZLl0sWTQu+gij+mM+Vju7xo35fl9
=UzMx
-----END PGP SIGNATURE-----payloadX  tree 09ae5cb7ec04c52baf3a550b757cfb28e257fbaf
parent 4e52cea56e8f5ae0820d0e217cf3a28866fb8238
author svc-changelog <svc-changelog@palantir.com> 1681138495 +0000
committer svc-changelog <svc-changelog@palantir.com> 1681138495 +0000

Add generated changelog entriesuujJW ^https://api.github.com/repos/palantir/atlasdb/commits/56ad677f3e044e62c34c711eb4f22ddf7e0d22fdhtml_urlShttps://github.com/palantir/atlasdb/commit/56ad677f3e044e62c34c711eb4f22ddf7e0d22fdcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/56ad677f3e044e62c34c711eb4f22ddf7e0d22fd/commentsj8W }(login
svc-changelogidJ#j4W MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5jJW *https://api.github.com/users/svc-changelogjXW  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj@W }(j]W 
svc-changelogj_W J#j4W MDQ6VXNlcjg0MDc3NjAzjaW 4https://avatars.githubusercontent.com/u/84077603?v=4jcW h5jJW *https://api.github.com/users/svc-changelogjXW  https://github.com/svc-changelogjfW 4https://api.github.com/users/svc-changelog/followersjhW Ahttps://api.github.com/users/svc-changelog/following{/other_user}jjW :https://api.github.com/users/svc-changelog/gists{/gist_id}jlW Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}jnW 8https://api.github.com/users/svc-changelog/subscriptionsjpW /https://api.github.com/users/svc-changelog/orgsjrW 0https://api.github.com/users/svc-changelog/reposjtW ;https://api.github.com/users/svc-changelog/events{/privacy}jvW :https://api.github.com/users/svc-changelog/received_eventsjxW UserjzW uparents]}(j2W (4e52cea56e8f5ae0820d0e217cf3a28866fb8238jJW ^https://api.github.com/repos/palantir/atlasdb/commits/4e52cea56e8f5ae0820d0e217cf3a28866fb8238jXW Shttps://github.com/palantir/atlasdb/commit/4e52cea56e8f5ae0820d0e217cf3a28866fb8238uastats}(totalK	additionsK	deletionsK ufiles]}(j2W (1d48df051a7627207eae8887272331c4921a8011filename$changelog/@unreleased/pr-6516.v2.ymlstatusaddedjW KjW K changesKblob_url|https://github.com/palantir/atlasdb/blob/56ad677f3e044e62c34c711eb4f22ddf7e0d22fd/changelog%2F%40unreleased%2Fpr-6516.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/56ad677f3e044e62c34c711eb4f22ddf7e0d22fd/changelog%2F%40unreleased%2Fpr-6516.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6516.v2.yml?ref=56ad677f3e044e62c34c711eb4f22ddf7e0d22fdpatch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: AtlasDB no longer registers the `/sweep` endpoints.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6516uau(89fc239e31bedc497eb3a1ea9965eff92e60e2d1}(sha(89fc239e31bedc497eb3a1ea9965eff92e60e2d1node_idEC_kwDOAjP5fdoAKDg5ZmMyMzllMzFiZWRjNDk3ZWIzYTFlYTk5NjVlZmY5MmU2MGUyZDEcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-05-24T08:54:42Zu	committer}(jW GitHubjW noreply@github.comjW 2023-05-24T08:54:42ZumessagePrint index for single row two cell workflow for successful transactions (#6588)

Print index for single row two cell workflow for successful transactionstree}(jW (440df763e5457a8f1ecf124a6a301e24ba216067url`https://api.github.com/repos/palantir/atlasdb/git/trees/440df763e5457a8f1ecf124a6a301e24ba216067ujW bhttps://api.github.com/repos/palantir/atlasdb/git/commits/89fc239e31bedc497eb3a1ea9965eff92e60e2d1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkbdDSCRBK7hj4Ov3rIwAASewIAJEIJDuRKDV74Xa8k6X1qVI0
SuvXOuYZ1itBelhLjRXYaP0QXnBArGfYe+dkICT2TmdJA0zk7AW5ZlcyGcV5pioX
bvgN5lVWkwrGsG62a+7r5rSpGk6HzCHc9haeAIQ8n16Ro5F2vST8wVSJy9TJLzKk
nK1XHE2hkKp6ldBF9e5HUaVVioRm06gvrcqsarkWtIvZcx8G2H9Zzx1DZ0aAEYI1
Uf9/fnwLH8sK8QkF2xFBb96v12j3G8bLWkviB3Pv+mJhElTO3LOjLTt6PZz9uo8p
eqXTXY1Q/emm+TJxkVCBxCTDqLBMXafL30cUKdGLP96RPhsJb81+RyIfQShXKEg=
=VVbg
-----END PGP SIGNATURE-----
payloadXm  tree 440df763e5457a8f1ecf124a6a301e24ba216067
parent c875c6e7feac79459475d9471c71e13115af1f35
author Sam-Kramer <sam.c.kramer@gmail.com> 1684918482 +0100
committer GitHub <noreply@github.com> 1684918482 +0000

Print index for single row two cell workflow for successful transactions (#6588)

Print index for single row two cell workflow for successful transactions
uujW ^https://api.github.com/repos/palantir/atlasdb/commits/89fc239e31bedc497eb3a1ea9965eff92e60e2d1html_urlShttps://github.com/palantir/atlasdb/commit/89fc239e31bedc497eb3a1ea9965eff92e60e2d1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/89fc239e31bedc497eb3a1ea9965eff92e60e2d1/commentsjW }(login
Sam-KrameridJ^2_ jW MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jW 'https://api.github.com/users/Sam-KramerjW https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujW }(jW web-flowjW J/jW MDQ6VXNlcjE5ODY0NDQ3jW 4https://avatars.githubusercontent.com/u/19864447?v=4jW h5jW %https://api.github.com/users/web-flowjW https://github.com/web-flowjW /https://api.github.com/users/web-flow/followersjW <https://api.github.com/users/web-flow/following{/other_user}jW 5https://api.github.com/users/web-flow/gists{/gist_id}jW <https://api.github.com/users/web-flow/starred{/owner}{/repo}jW 3https://api.github.com/users/web-flow/subscriptionsjW *https://api.github.com/users/web-flow/orgsjW +https://api.github.com/users/web-flow/reposjW 6https://api.github.com/users/web-flow/events{/privacy}jW 5https://api.github.com/users/web-flow/received_eventsjW UserjW uparents]}(jW (c875c6e7feac79459475d9471c71e13115af1f35jW ^https://api.github.com/repos/palantir/atlasdb/commits/c875c6e7feac79459475d9471c71e13115af1f35jW Shttps://github.com/palantir/atlasdb/commit/c875c6e7feac79459475d9471c71e13115af1f35uastats}(totalK
	additionsK		deletionsKufiles]}(jW (32ce774d4a8fd320c1af7af7c838de4f7f6065e3filenamelatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javastatusmodifiedjX K	jX KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/89fc239e31bedc497eb3a1ea9965eff92e60e2d1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/89fc239e31bedc497eb3a1ea9965eff92e60e2d1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=89fc239e31bedc497eb3a1ea9965eff92e60e2d1patchX  @@ -28,6 +28,9 @@
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
 import java.util.Optional;
 import java.util.stream.Collectors;
@@ -39,6 +42,7 @@
  * to delete the other.
  */
 public final class SingleRowTwoCellsWorkflows {
+    private static final SafeLogger log = SafeLoggerFactory.get(SingleRowTwoCellsWorkflows.class);
     private static final int SINGLE_ROW = 1;
     private static final int FIRST_COLUMN = 1;
     private static final int SECOND_COLUMN = 2;
@@ -70,7 +74,11 @@ private static Optional<WitnessedTransaction> run(
 
         List<TransactionAction> transactionActions = createTransactionActions(
                 taskIndex, workflowConfiguration.tableConfiguration().tableName());
-        return store.readWrite(transactionActions);
+        Optional<WitnessedTransaction> maybeTransaction = store.readWrite(transactionActions);
+        maybeTransaction.ifPresent(_transaction -> log.info(
+                "Transaction successfully committed for single row two cells workflow for task index {}.",
+                SafeArg.of("taskIndex", taskIndex)));
+        return maybeTransaction;
     }
 
     @VisibleForTestinguau(6ec5ae38e83329b831d9a5eca96b790ed052ac7a}(sha(6ec5ae38e83329b831d9a5eca96b790ed052ac7anode_idEC_kwDOAjP5fdoAKDZlYzVhZTM4ZTgzMzI5YjgzMWQ5YTVlY2E5NmI3OTBlZDA1MmFjN2Ecommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-13T14:17:13Zu	committer}(j(X 
Sam Kramerj*X skramer@palantir.comj,X 2023-04-13T14:17:13Zumessageaddress commentstree}(j X (c42eb7ca1603a6aa0cf74a6a4db32fdce54fe5deurl`https://api.github.com/repos/palantir/atlasdb/git/trees/c42eb7ca1603a6aa0cf74a6a4db32fdce54fe5deuj8X bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6ec5ae38e83329b831d9a5eca96b790ed052ac7a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ4DukACgkQmPPOpKR4
XS172wf/XDtnC25fLac+Ui/Jns2VK5I1ZkkoZ9liZcBkYWghGVHh8r6cQiHqej/m
pHxzZPTeEHFPGl8T7fIfgw3VASzYGcn+7+4kdPw7djXVRj4yD+voCw0ozoAsfJVQ
UBQ07GKRjFkNtRTCyQ33eNpw2RaXWe+vNgZB0odLkda6IvkI1OMOcjFKo+IZNw6N
ct1qubso71QdGvYGYqTnyVi2g5TJH9jI5DP4CxQarir9CpJ3KsjcdbX8oTl7UZQs
GGeHhmCWXOdbk27k/uX8euOPrUOdov5ln4IBlVdE+/UWll1g0yiQbIQ1LaHW96KI
xg0SZIUEEyTYtYODfVVocKWFB0GCFQ==
=zxAq
-----END PGP SIGNATURE-----payloadtree c42eb7ca1603a6aa0cf74a6a4db32fdce54fe5de
parent 917643bf256eb5be972c391aaf8502a993fa7c5e
author Sam Kramer <skramer@palantir.com> 1681395433 +0100
committer Sam Kramer <skramer@palantir.com> 1681395433 +0100

address comments
uuj8X ^https://api.github.com/repos/palantir/atlasdb/commits/6ec5ae38e83329b831d9a5eca96b790ed052ac7ahtml_urlShttps://github.com/palantir/atlasdb/commit/6ec5ae38e83329b831d9a5eca96b790ed052ac7acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6ec5ae38e83329b831d9a5eca96b790ed052ac7a/commentsj&X }(login
Sam-KrameridJ^2_ j"X MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j8X 'https://api.github.com/users/Sam-KramerjFX https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj.X }(jKX 
Sam-KramerjMX J^2_ j"X MDQ6VXNlcjYyMzg4MTQ=jOX 3https://avatars.githubusercontent.com/u/6238814?v=4jQX h5j8X 'https://api.github.com/users/Sam-KramerjFX https://github.com/Sam-KramerjTX 1https://api.github.com/users/Sam-Kramer/followersjVX >https://api.github.com/users/Sam-Kramer/following{/other_user}jXX 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jZX >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j\X 5https://api.github.com/users/Sam-Kramer/subscriptionsj^X ,https://api.github.com/users/Sam-Kramer/orgsj`X -https://api.github.com/users/Sam-Kramer/reposjbX 8https://api.github.com/users/Sam-Kramer/events{/privacy}jdX 7https://api.github.com/users/Sam-Kramer/received_eventsjfX UserjhX uparents]}(j X (917643bf256eb5be972c391aaf8502a993fa7c5ej8X ^https://api.github.com/repos/palantir/atlasdb/commits/917643bf256eb5be972c391aaf8502a993fa7c5ejFX Shttps://github.com/palantir/atlasdb/commit/917643bf256eb5be972c391aaf8502a993fa7c5euastats}(totalKM	additionsK2	deletionsKufiles](}(j X (c6c57e6a8de2b5781bc3377bb37255bb7b0465a7filenamehatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javastatusmodifiedjX K jX KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/6ec5ae38e83329b831d9a5eca96b790ed052ac7a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6ec5ae38e83329b831d9a5eca96b790ed052ac7a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=6ec5ae38e83329b831d9a5eca96b790ed052ac7apatchX  @@ -38,11 +38,9 @@ public void accept(
             WorkflowHistory workflowHistory, Consumer<List<InvalidWitnessedTransaction>> invalidWitnessedTransactions) {
         SerializableInvariantVisitor visitor = new SerializableInvariantVisitor();
         List<InvalidWitnessedTransaction> transactions = StreamEx.of(workflowHistory.history())
-                .sequential()
                 .mapPartial(witnessedTransaction -> {
                     List<InvalidWitnessedTransactionAction> invalidTransactions = StreamEx.of(
                                     witnessedTransaction.actions())
-                            .sequential()
                             .mapPartial(action -> action.accept(visitor))
                             .toList();
 u}(j X (90b36432d0c4959d6f029a213c9b14ce813a43a8jX latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javajX modifiedjX KjX KjX K1jX https://github.com/palantir/atlasdb/blob/6ec5ae38e83329b831d9a5eca96b790ed052ac7a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajX https://github.com/palantir/atlasdb/raw/6ec5ae38e83329b831d9a5eca96b790ed052ac7a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=6ec5ae38e83329b831d9a5eca96b790ed052ac7ajX X  @@ -19,16 +19,18 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.ArrayList;
 import java.util.List;
 import java.util.Optional;
-import java.util.concurrent.atomic.AtomicReference;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.mockito.Mock;
@@ -42,7 +44,7 @@ public final class SerializableInvariantTest {
 
     @Test
     public void handlesLocalWrites() {
-        AtomicReference<List<InvalidWitnessedTransaction>> invalidTransactions = new AtomicReference<>();
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
         List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
                 .startTransaction()
                 .read(5, 10)
@@ -54,13 +56,13 @@ public void handlesLocalWrites() {
                 .history(transactions)
                 .transactionStore(readableTransactionStore)
                 .build();
-        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::set);
-        assertThat(invalidTransactions.get()).isEmpty();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
     }
 
     @Test
     public void noInvalidTransactionsWhenSerializable() {
-        AtomicReference<List<InvalidWitnessedTransaction>> invalidTransactions = new AtomicReference<>();
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
         List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
                 .startTransaction()
                 .write(5, 10, 15)
@@ -80,13 +82,13 @@ public void noInvalidTransactionsWhenSerializable() {
                 .history(transactions)
                 .transactionStore(readableTransactionStore)
                 .build();
-        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::set);
-        assertThat(invalidTransactions.get()).isEmpty();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
     }
 
     @Test
     public void catchesWriteSkew() {
-        AtomicReference<List<InvalidWitnessedTransaction>> invalidTransactions = new AtomicReference<>();
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
         List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
                 .startTransaction()
                 .write(5, 10, 15)
@@ -107,22 +109,25 @@ public void catchesWriteSkew() {
                 .history(transactions)
                 .transactionStore(readableTransactionStore)
                 .build();
-        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::set);
-        assertThat(invalidTransactions).hasValueSatisfying(invalidWitnessedTransactions -> {
-            InvalidWitnessedTransaction invalidWitnessedTransaction =
-                    Iterables.getOnlyElement(invalidWitnessedTransactions);
-            assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);
 
-            InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
-                    Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
-            assertThat(invalidWitnessedTransactionAction.mismatchedValue())
-                    .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
-        });
+        assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
+
+        assertThat(invalidWitnessedTransactionAction.action())
+                .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
+                    assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
+                    assertThat(action.value()).contains(15);
+                });
+        assertThat(invalidWitnessedTransactionAction.mismatchedValue())
+                .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
     }
 
     @Test
     public void handlesDeletes() {
-        AtomicReference<List<InvalidWitnessedTransaction>> invalidTransactions = new AtomicReference<>();
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
         List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
                 .startTransaction()
                 .write(5, 10, 15)
@@ -141,9 +146,7 @@ public void handlesDeletes() {
                 .history(transactions)
                 .transactionStore(readableTransactionStore)
                 .build();
-        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::set);
-        assertThat(invalidTransactions)
-                .hasValueSatisfying(invalidWitnessedTransactions ->
-                        assertThat(invalidWitnessedTransactions).isEmpty());
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
     }
 }u}(j X (7b1fab2f64a88a2f2feeed744728c00b88416708jX qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javajX modifiedjX KjX KjX KjX https://github.com/palantir/atlasdb/blob/6ec5ae38e83329b831d9a5eca96b790ed052ac7a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajX https://github.com/palantir/atlasdb/raw/6ec5ae38e83329b831d9a5eca96b790ed052ac7a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajX https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=6ec5ae38e83329b831d9a5eca96b790ed052ac7ajX X^
  @@ -23,6 +23,7 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.logsafe.Preconditions;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Optional;
@@ -40,7 +41,7 @@ public WitnessedTransactionsBuilder(String table) {
     }
 
     public WitnessedTransactionBuilder startTransaction() {
-        return new WitnessedTransactionBuilder();
+        return new WitnessedTransactionBuilder(timestampCounter.incrementAndGet());
     }
 
     public List<WitnessedTransaction> build() {
@@ -52,6 +53,12 @@ public final class WitnessedTransactionBuilder {
 
         private boolean needsCommitTimestamp = false;
 
+        private final long startTimestamp;
+
+        public WitnessedTransactionBuilder(long startTimestamp) {
+            this.startTimestamp = startTimestamp;
+        }
+
         public WitnessedTransactionBuilder read(Integer row, Integer column, Optional<Integer> valueRead) {
             actions.add(WitnessedReadTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), valueRead));
             return this;
@@ -78,9 +85,24 @@ public WitnessedTransactionBuilder delete(Integer row, Integer column) {
         }
 
         public WitnessedTransactionsBuilder endTransaction() {
-            long startTimestamp = timestampCounter.incrementAndGet();
             Optional<Long> commitTimestamp =
                     needsCommitTimestamp ? Optional.of(timestampCounter.incrementAndGet()) : Optional.empty();
+            return endTransaction(commitTimestamp);
+        }
+
+        public WitnessedTransactionsBuilder endTransaction(Long commitTimestamp) {
+            return endTransaction(Optional.of(commitTimestamp));
+        }
+
+        public WitnessedTransactionsBuilder endTransaction(Optional<Long> commitTimestamp) {
+            if (needsCommitTimestamp) {
+                Preconditions.checkArgument(
+                        commitTimestamp.isPresent(),
+                        "Commit timestamp must be provided when the transaction has any writes or deletes.");
+                Preconditions.checkArgument(
+                        startTimestamp < commitTimestamp.get(),
+                        "Commit timestamp must be greater than the start timestamp.");
+            }
             witnessedTransactions.add(ImmutableWitnessedTransaction.builder()
                     .startTimestamp(startTimestamp)
                     .actions(actions)ueu(1f06bbcb1a86e0c853b03c6e9153e4684be99fcb}(sha(1f06bbcb1a86e0c853b03c6e9153e4684be99fcbnode_idEC_kwDOAjP5fdoAKDFmMDZiYmNiMWE4NmUwYzg1M2IwM2M2ZTkxNTNlNDY4NGJlOTlmY2Icommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-18T17:14:00Zu	committer}(jX Jeremy KongjX jkong@palantir.comjX 2023-05-18T17:14:00Zumessagefixtree}(jX (69d249bf9d412c0967e00d898bf455b5cbab4c63url`https://api.github.com/repos/palantir/atlasdb/git/trees/69d249bf9d412c0967e00d898bf455b5cbab4c63ujX bhttps://api.github.com/repos/palantir/atlasdb/git/commits/1f06bbcb1a86e0c853b03c6e9153e4684be99fcb
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRmXNgACgkQTLdFKain
zjyZBgf9He/qBXhwDLTtJPgjN8Y3//VC0jXiWHRbYwBdRkyWcCt3ToK8BgJvimq4
GUQQS8OQpa3Qg9PKBUHjuFy6C14o28LB3U6BiSOqxuo7UajxOCXbygi1pTgnwdU8
G45Prwe4fd2LOkVWLM9rSpztI+rxEsYYYoTzC5LXSXPv3i7PRd5BJmjgTFR3c64C
SsZH2ZbPiqhh/7aUj6y70KYNFLECtG/zHp5ZBI99E37WA1giP8J4s/9DcabRI+g8
RzlbluiWJUBLg88FlSWTbTtc/MmZaHEkXoNZCyrzQzTWVbAhOxx53MsYJlu7RFs3
kRJga/RUk7AZEmStv5LCLprKmYDk4g==
=uLRA
-----END PGP SIGNATURE-----payloadtree 69d249bf9d412c0967e00d898bf455b5cbab4c63
parent 7cf685d00a4d1d1398790c038c454f1b45760363
author Jeremy Kong <jkong@palantir.com> 1684430040 +0100
committer Jeremy Kong <jkong@palantir.com> 1684430040 +0100

fix
uujX ^https://api.github.com/repos/palantir/atlasdb/commits/1f06bbcb1a86e0c853b03c6e9153e4684be99fcbhtml_urlShttps://github.com/palantir/atlasdb/commit/1f06bbcb1a86e0c853b03c6e9153e4684be99fcbcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/1f06bbcb1a86e0c853b03c6e9153e4684be99fcb/commentsjX }(login
jeremyk-91idJZ jX MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jX 'https://api.github.com/users/jeremyk-91jX https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujX }(jX 
jeremyk-91jX JZ jX MDQ6VXNlcjU5NTU1MTA=jX 3https://avatars.githubusercontent.com/u/5955510?v=4jX h5jX 'https://api.github.com/users/jeremyk-91jX https://github.com/jeremyk-91jX 1https://api.github.com/users/jeremyk-91/followersjX >https://api.github.com/users/jeremyk-91/following{/other_user}jX 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jX >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jX 5https://api.github.com/users/jeremyk-91/subscriptionsjX ,https://api.github.com/users/jeremyk-91/orgsjX -https://api.github.com/users/jeremyk-91/reposjX 8https://api.github.com/users/jeremyk-91/events{/privacy}jX 7https://api.github.com/users/jeremyk-91/received_eventsjX UserjX uparents]}(jX (7cf685d00a4d1d1398790c038c454f1b45760363jX ^https://api.github.com/repos/palantir/atlasdb/commits/7cf685d00a4d1d1398790c038c454f1b45760363jX Shttps://github.com/palantir/atlasdb/commit/7cf685d00a4d1d1398790c038c454f1b45760363uastats}(totalK		additionsK	deletionsKufiles]}(jX (d5434992fb7c95c96d37c66643bc536ed0d1630cfilenamelatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javastatusmodifiedj	Y Kj
Y KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/1f06bbcb1a86e0c853b03c6e9153e4684be99fcb/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/1f06bbcb1a86e0c853b03c6e9153e4684be99fcb/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=1f06bbcb1a86e0c853b03c6e9153e4684be99fcbpatchX  @@ -172,10 +172,9 @@ public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
                         .build()));
     }
 
-    @SuppressWarnings("unchecked") // Mocking of a known type
     @Test
     public void invariantReportsViolationsFromTransactionHistory() {
-        Consumer<List<CrossCellInconsistency>> violationConsumer = mock(Consumer.class);
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
         WorkflowHistory history = transientRowsWorkflow.run();
         WorkflowHistory falseHistory = ImmutableWorkflowHistory.builder()
                 .transactionStore(history.transactionStore())
@@ -189,12 +188,10 @@ public void invariantReportsViolationsFromTransactionHistory() {
                                 .build())
                         .collect(Collectors.toList()))
                 .build();
-        invariant.accept(falseHistory, violationConsumer);
+        invariant.accept(falseHistory, reference::set);
 
         ArgumentCaptor<List<CrossCellInconsistency>> captor = ArgumentCaptor.forClass(List.class);
-        verify(violationConsumer).accept(captor.capture());
-        assertThat(captor.getValue()).hasSize(ITERATION_COUNT - 1);
-        verifyNoMoreInteractions(violationConsumer);
+        assertThat(reference.get()).hasSize(ITERATION_COUNT - 1);
     }
 
     private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(uau(aee6977a98eb0a89ccef675b6f2f842dcde23a8c}(sha(aee6977a98eb0a89ccef675b6f2f842dcde23a8cnode_idEC_kwDOAjP5fdoAKGFlZTY5NzdhOThlYjBhODljY2VmNjc1YjZmMmY4NDJkY2RlMjNhOGMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-03T16:00:54Zu	committer}(j&Y 
Sam Kramerj(Y skramer@palantir.comj*Y 2023-08-03T16:00:54Zumessage?Throw MaybeNotCurrentLeaderException from timestamp bound storetree}(jY (28e9a7dd9a50a75a1d6a287d063565e96c109171url`https://api.github.com/repos/palantir/atlasdb/git/trees/28e9a7dd9a50a75a1d6a287d063565e96c109171uj6Y bhttps://api.github.com/repos/palantir/atlasdb/git/commits/aee6977a98eb0a89ccef675b6f2f842dcde23a8c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTLzzcACgkQmPPOpKR4
XS0Luwf+PghbmG/hhflpyk9bIQ7VuzcEFlq5uzOuMGY8LnqFnUSU+aY7heIlslg5
2/gWyGy8ftLvsO7R45B3ZKfkSJ3sA2xrwGnGdKCJCTtNOJPGVyKF380U2qTmuT9i
eMddjDKHMuARAkZodtUAC8RMJRv/O+JJSUixoCjqrEbnn2rAJ+lW5g6lquyrkt0+
RCoJOKBw/a4zByGDWtMbrBo8N1imRmjwLWLLu4fxJunhZ7CwMXlMcOtRjnOww5d2
yzxUHcEMEsPOAQg+/YaiuCZRB+AvRzfi16uMq8ECcYnr+I2vdg83kBSLglrSCFJP
Lckchf62KgXBAi8oE9eD92w9m4fUUw==
=BIB0
-----END PGP SIGNATURE-----payloadX  tree 28e9a7dd9a50a75a1d6a287d063565e96c109171
parent a2df32a5c8430028d68c99e5a6a54294375ed779
author Sam Kramer <skramer@palantir.com> 1691078454 +0100
committer Sam Kramer <skramer@palantir.com> 1691078454 +0100

Throw MaybeNotCurrentLeaderException from timestamp bound store
uuj6Y ^https://api.github.com/repos/palantir/atlasdb/commits/aee6977a98eb0a89ccef675b6f2f842dcde23a8chtml_urlShttps://github.com/palantir/atlasdb/commit/aee6977a98eb0a89ccef675b6f2f842dcde23a8ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/aee6977a98eb0a89ccef675b6f2f842dcde23a8c/commentsj$Y }(login
Sam-KrameridJ^2_ j Y MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j6Y 'https://api.github.com/users/Sam-KramerjDY https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj,Y }(jIY 
Sam-KramerjKY J^2_ j Y MDQ6VXNlcjYyMzg4MTQ=jMY 3https://avatars.githubusercontent.com/u/6238814?v=4jOY h5j6Y 'https://api.github.com/users/Sam-KramerjDY https://github.com/Sam-KramerjRY 1https://api.github.com/users/Sam-Kramer/followersjTY >https://api.github.com/users/Sam-Kramer/following{/other_user}jVY 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jXY >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jZY 5https://api.github.com/users/Sam-Kramer/subscriptionsj\Y ,https://api.github.com/users/Sam-Kramer/orgsj^Y -https://api.github.com/users/Sam-Kramer/reposj`Y 8https://api.github.com/users/Sam-Kramer/events{/privacy}jbY 7https://api.github.com/users/Sam-Kramer/received_eventsjdY UserjfY uparents]}(jY (a2df32a5c8430028d68c99e5a6a54294375ed779j6Y ^https://api.github.com/repos/palantir/atlasdb/commits/a2df32a5c8430028d68c99e5a6a54294375ed779jDY Shttps://github.com/palantir/atlasdb/commit/a2df32a5c8430028d68c99e5a6a54294375ed779uastats}(totalK5	additionsK+	deletionsK
ufiles](}(jY (896a73b183c418c177379add83ebc6d02234f1dffilenameUatlasdb-commons/src/main/java/com/palantir/leader/MaybeNotCurrentLeaderException.javastatusaddedjY KjY K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/aee6977a98eb0a89ccef675b6f2f842dcde23a8c/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2FMaybeNotCurrentLeaderException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/aee6977a98eb0a89ccef675b6f2f842dcde23a8c/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2FMaybeNotCurrentLeaderException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2FMaybeNotCurrentLeaderException.java?ref=aee6977a98eb0a89ccef675b6f2f842dcde23a8cpatchXm  @@ -0,0 +1,23 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.leader;
+
+public class MaybeNotCurrentLeaderException extends NotCurrentLeaderException {
+    public MaybeNotCurrentLeaderException(String message) {
+        super(message);
+    }
+}u}(jY (bee4bc6193dc72654deac4e496e136087c2f0467jY Yleader-election-impl/src/main/java/com/palantir/leader/proxy/AwaitingLeadershipProxy.javajY modifiedjY KjY KjY KjY https://github.com/palantir/atlasdb/blob/aee6977a98eb0a89ccef675b6f2f842dcde23a8c/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.javajY https://github.com/palantir/atlasdb/raw/aee6977a98eb0a89ccef675b6f2f842dcde23a8c/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.javajY https://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.java?ref=aee6977a98eb0a89ccef675b6f2f842dcde23a8cjY XP	  @@ -28,7 +28,7 @@
 import com.palantir.common.remoting.ServiceNotAvailableException;
 import com.palantir.leader.LeaderElectionService.LeadershipToken;
 import com.palantir.leader.LeaderElectionService.StillLeadingStatus;
-import com.palantir.leader.NotCurrentLeaderException;
+import com.palantir.leader.MaybeNotCurrentLeaderException;
 import com.palantir.leader.proxy.LeadershipStateManager.LeadershipState;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
@@ -159,18 +159,27 @@ protected Object handleInvocation(Object proxy, Method method, Object[] args) th
 
     private RuntimeException handleDelegateThrewException(
             LeadershipToken leadershipToken, InvocationTargetException exception) throws Exception {
-        if (exception.getCause() instanceof ServiceNotAvailableException
-                || exception.getCause() instanceof NotCurrentLeaderException) {
-            leadershipStateManager.handleNotLeading(leadershipToken, exception.getCause());
+
+        Throwable cause = exception.getCause();
+
+        if (cause instanceof ServiceNotAvailableException) {
+            boolean stillLeading = false;
+            if (cause instanceof MaybeNotCurrentLeaderException) {
+                stillLeading =
+                        leadershipCoordinator.isStillLeading(leadershipToken).get() == StillLeadingStatus.LEADING;
+            }
+
+            if (!stillLeading) {
+                leadershipStateManager.handleNotLeading(leadershipToken, exception.getCause());
+            }
         }
         // Prevent blocked lock requests from receiving a non-retryable 500 on interrupts
         // in case of a leader election.
-        if (exception.getCause() instanceof InterruptedException
-                && !leadershipCoordinator.isStillCurrentToken(leadershipToken)) {
+        if (cause instanceof InterruptedException && !leadershipCoordinator.isStillCurrentToken(leadershipToken)) {
             throw leadershipCoordinator.notCurrentLeaderException(
                     "received an interrupt due to leader election.", exception.getCause());
         }
-        Throwables.propagateIfPossible(exception.getCause(), Exception.class);
-        throw new RuntimeException(exception.getCause());
+        Throwables.propagateIfPossible(cause, Exception.class);
+        throw new RuntimeException(cause);
     }
 }u}(jY (3262e393274019bfe1fd0ad2c6587cee187d2775jY ]timelock-impl/src/main/java/com/palantir/atlasdb/timelock/paxos/PaxosTimestampBoundStore.javajY modifiedjY KjY KjY KjY https://github.com/palantir/atlasdb/blob/aee6977a98eb0a89ccef675b6f2f842dcde23a8c/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javajY https://github.com/palantir/atlasdb/raw/aee6977a98eb0a89ccef675b6f2f842dcde23a8c/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.javajY https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FPaxosTimestampBoundStore.java?ref=aee6977a98eb0a89ccef675b6f2f842dcde23a8cjY X  @@ -21,6 +21,7 @@
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.timelock.paxos.PaxosQuorumCheckingCoalescingFunction.PaxosContainer;
 import com.palantir.common.remoting.ServiceNotAvailableException;
+import com.palantir.leader.MaybeNotCurrentLeaderException;
 import com.palantir.leader.NotCurrentLeaderException;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
@@ -252,7 +253,7 @@ public synchronized void storeUpperLimit(long limit) throws MultipleRunningTimes
                                     + " lost and regained leadership. For safety, we are now stopping this service.",
                             SafeArg.of("newLimit", newLimit),
                             SafeArg.of("target", limit));
-                    throw new NotCurrentLeaderException(String.format(
+                    throw new MaybeNotCurrentLeaderException(String.format(
                             "We updated the timestamp limit to %s, which was less than our target %s.",
                             newLimit, limit));
                 }
@@ -280,7 +281,7 @@ private void checkAgreedBoundIsOurs(long limit, long newSeq, PaxosValue value) t
                             + " The offending bound was '%s'; we tried to propose"
                             + " a bound of '%s'. (The offending Paxos value was '%s'.)",
                     newSeq, value.getLeaderUUID(), proposer.getUuid(), PtBytes.toLong(value.getData()), limit, value);
-            throw new NotCurrentLeaderException(errorMsg);
+            throw new MaybeNotCurrentLeaderException(errorMsg);
         }
         DebugLogger.logger.info(
                 "Trying to store limit '{}' for sequence '{}' yielded consensus on the value '{}'.",ueu(0b83aa8fefbaca1862147c56563a9ea6cd0293e4}(sha(0b83aa8fefbaca1862147c56563a9ea6cd0293e4node_idEC_kwDOAjP5fdoAKDBiODNhYThmZWZiYWNhMTg2MjE0N2M1NjU2M2E5ZWE2Y2QwMjkzZTQcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-12T08:08:41Zu	committer}(jY 	Tom PapkejY tpapke@palantir.comjY 2023-06-13T14:19:38Zumessage:Implement async thread info snapshotting in separate classtree}(jY (89cbf237a3a6746c314eb27091db83d7794dd384url`https://api.github.com/repos/palantir/atlasdb/git/trees/89cbf237a3a6746c314eb27091db83d7794dd384ujY bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0b83aa8fefbaca1862147c56563a9ea6cd0293e4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSIevsACgkQmF9s0kaF
Iw3YZQgAkCarGkLJWGMlDwQyeFWELCbEJhKu7hXi1uKSuD5uhw0khSUcoa9gypos
2QPCpYwzeGpuOfoRFBaWArJaNzDYcYnFh/nqdF4/p4cnS3ExEK+JQnl7PsNb8slz
FYnND6OBfRq03sS4eTzkOMZN6X0+ObCYETWMAEFMqyCXedBI9hysgBxNF4HGv4Ar
FCMXTRnSYjzVnV8Bo1hbe59OULdGjinVIRFLldU/KAvWl3+OXgjVY0INwIMBpB2D
0SvVb0dSVA7u5JPeZgo3ZxJuWBjhkIsZAJtT2d2vl/B9xGKzuqMKaHRlDz+Sfgsk
WaJNDjW9JPVxGetwpOPLQ8rku+hduQ==
=S2L7
-----END PGP SIGNATURE-----payloadX
  tree 89cbf237a3a6746c314eb27091db83d7794dd384
parent 8d65a011e35cfff9bbdb38ad706cc252b977467b
author Tom Papke <tpapke@palantir.com> 1686557321 +0100
committer Tom Papke <tpapke@palantir.com> 1686665978 +0100

Implement async thread info snapshotting in separate class
uujY ^https://api.github.com/repos/palantir/atlasdb/commits/0b83aa8fefbaca1862147c56563a9ea6cd0293e4html_urlShttps://github.com/palantir/atlasdb/commit/0b83aa8fefbaca1862147c56563a9ea6cd0293e4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0b83aa8fefbaca1862147c56563a9ea6cd0293e4/commentsjY }(login	ToemmscheidJbojY MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jY &https://api.github.com/users/ToemmschejY https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujY }(jY 	ToemmschejY JbojY MDQ6VXNlcjQzNjc1NDkwjY 4https://avatars.githubusercontent.com/u/43675490?v=4jY h5jY &https://api.github.com/users/ToemmschejY https://github.com/ToemmschejY 0https://api.github.com/users/Toemmsche/followersjY =https://api.github.com/users/Toemmsche/following{/other_user}jY 6https://api.github.com/users/Toemmsche/gists{/gist_id}jY =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jY 4https://api.github.com/users/Toemmsche/subscriptionsjY +https://api.github.com/users/Toemmsche/orgsjY ,https://api.github.com/users/Toemmsche/reposjY 7https://api.github.com/users/Toemmsche/events{/privacy}jY 6https://api.github.com/users/Toemmsche/received_eventsjY UserjY uparents]}(jY (8d65a011e35cfff9bbdb38ad706cc252b977467bjY ^https://api.github.com/repos/palantir/atlasdb/commits/8d65a011e35cfff9bbdb38ad706cc252b977467bjY Shttps://github.com/palantir/atlasdb/commit/8d65a011e35cfff9bbdb38ad706cc252b977467buastats}(totalM	additionsM	deletionsKufiles](}(jY (6c392f61aa1cd6e6fd81a381b4280c856c608fecfilenameKlock-api-objects/src/main/java/com/palantir/lock/ThreadAwareLockClient.javastatusaddedjZ K$jZ K changesK$blob_urlhttps://github.com/palantir/atlasdb/blob/0b83aa8fefbaca1862147c56563a9ea6cd0293e4/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareLockClient.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0b83aa8fefbaca1862147c56563a9ea6cd0293e4/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareLockClient.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareLockClient.java?ref=0b83aa8fefbaca1862147c56563a9ea6cd0293e4patchX  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ThreadAwareLockClient {
+    ThreadAwareLockClient UNKNOWN = ThreadAwareLockClient.of(LockClient.ANONYMOUS, "unknown-thread");
+
+    LockClient client();
+
+    String thread();
+
+    static ImmutableThreadAwareLockClient.Builder builder() {
+        return ImmutableThreadAwareLockClient.builder();
+    }
+
+    static ThreadAwareLockClient of(LockClient client, String requestingThread) {
+        return builder().client(client).thread(requestingThread).build();
+    }
+}u}(jY (c0732dd117e0d492f18b686086a002759beb1281j
Z Jlock-api/src/main/java/com/palantir/lock/DebugThreadInfoConfiguration.javajZ addedjZ K!jZ K jZ K!jZ https://github.com/palantir/atlasdb/blob/0b83aa8fefbaca1862147c56563a9ea6cd0293e4/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javajZ https://github.com/palantir/atlasdb/raw/0b83aa8fefbaca1862147c56563a9ea6cd0293e4/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javajZ https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.java?ref=0b83aa8fefbaca1862147c56563a9ea6cd0293e4jZ X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface DebugThreadInfoConfiguration {
+
+    @Value.Default
+    default boolean recordThreadInfo() {
+        return false;
+    }
+
+    @Value.Default
+    default long threadInfoSnapshotIntervalMillis() {
+        return 5000L;
+    }
+}u}(jY (da50ee7393b93c8d71153140ffe86ba6c40366fcj
Z ?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javajZ modifiedjZ KjZ KjZ KjZ https://github.com/palantir/atlasdb/blob/0b83aa8fefbaca1862147c56563a9ea6cd0293e4/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javajZ https://github.com/palantir/atlasdb/raw/0b83aa8fefbaca1862147c56563a9ea6cd0293e4/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javajZ https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=0b83aa8fefbaca1862147c56563a9ea6cd0293e4jZ X  @@ -16,6 +16,7 @@
 package com.palantir.lock;
 
 import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.google.common.base.MoreObjects;
@@ -126,6 +127,15 @@ public long slowLogTriggerMillis() {
         return 10000L;
     }
 
+    /**
+     * Runtime configuration relating to thread info recording (which lock is held by which client-thread).
+     */
+    @JsonIgnore
+    @Value.Default
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    }
+
     @Override
     public boolean equals(@Nullable Object obj) {
         if (this == obj) {
@@ -142,7 +152,8 @@ && getRandomBitCount() == other.getRandomBitCount()
                 && Objects.equals(getMaxAllowedClockDrift(), other.getMaxAllowedClockDrift())
                 && Objects.equals(getMaxAllowedBlockingDuration(), other.getMaxAllowedBlockingDuration())
                 && Objects.equals(getMaxNormalLockAge(), other.getMaxNormalLockAge())
-                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout());
+                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout())
+                && Objects.equals(threadInfoConfiguration(), other.threadInfoConfiguration());
     }
 
     @Override
@@ -155,7 +166,8 @@ public int hashCode() {
                 getMaxNormalLockAge(),
                 getRandomBitCount(),
                 getStuckTransactionTimeout(),
-                slowLogTriggerMillis());
+                slowLogTriggerMillis(),
+                threadInfoConfiguration());
     }
 
     @Override
@@ -169,6 +181,7 @@ public String toString() {
                 .add("randomBitCount", getRandomBitCount())
                 .add("stuckTransactionTimeout", getStuckTransactionTimeout())
                 .add("slowLogTriggerMillis", slowLogTriggerMillis())
+                .add("threadInfoConfiguration", threadInfoConfiguration())
                 .toString();
     }
 u}(jY (f2e0ff8dc56fe70ff168b67af2e9c7b1720aef6bj
Z Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javajZ modifiedjZ K	jZ K jZ K	jZ https://github.com/palantir/atlasdb/blob/0b83aa8fefbaca1862147c56563a9ea6cd0293e4/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javajZ https://github.com/palantir/atlasdb/raw/0b83aa8fefbaca1862147c56563a9ea6cd0293e4/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javajZ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=0b83aa8fefbaca1862147c56563a9ea6cd0293e4jZ X  @@ -45,6 +45,7 @@
 import com.palantir.lock.BlockingMode;
 import com.palantir.lock.CloseableLockService;
 import com.palantir.lock.CloseableRemoteLockService;
+import com.palantir.lock.DebugThreadInfoConfiguration;
 import com.palantir.lock.ExpiringToken;
 import com.palantir.lock.HeldLocksGrant;
 import com.palantir.lock.HeldLocksToken;
@@ -183,6 +184,8 @@ public String toString() {
     private final SimpleTimeDuration stuckTransactionTimeout;
     private final AtomicBoolean isShutDown = new AtomicBoolean(false);
 
+    private final DebugThreadInfoConfiguration threadInfoConfiguration;
+
     private final LockClientIndices clientIndices = new LockClientIndices();
 
     /** The backing client-aware read write lock for each lock descriptor. */
@@ -256,6 +259,7 @@ private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable
         this.maxNormalLockAge = SimpleTimeDuration.of(options.getMaxNormalLockAge());
         this.stuckTransactionTimeout = SimpleTimeDuration.of(options.getStuckTransactionTimeout());
         this.slowLogTriggerMillis = options.slowLogTriggerMillis();
+        this.threadInfoConfiguration = options.threadInfoConfiguration();
     }
 
     private HeldLocksToken createHeldLocksToken(
@@ -1227,6 +1231,11 @@ public long currentTimeMillis() {
         return System.currentTimeMillis();
     }
 
+    /** Warning: Depending on the configuration, this will start up an asynchronous background task */
+    public LockThreadInfoSnapshotManager createSnapshotManager() {
+        return new LockThreadInfoSnapshotManager(this.threadInfoConfiguration, () -> this.heldLocksTokenMap);
+    }
+
     private static String updateThreadName(LockRequest request) {
         String currentThreadName = Thread.currentThread().getName();
         tryRenameThread(u}(jY (e2e2b9e882e296c92a680d8b502ff85051fbdb5aj
Z Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javajZ addedjZ K^jZ K jZ K^jZ https://github.com/palantir/atlasdb/blob/0b83aa8fefbaca1862147c56563a9ea6cd0293e4/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javajZ https://github.com/palantir/atlasdb/raw/0b83aa8fefbaca1862147c56563a9ea6cd0293e4/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javajZ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=0b83aa8fefbaca1862147c56563a9ea6cd0293e4jZ X  @@ -0,0 +1,94 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.base.Strings;
+import com.google.common.collect.ImmutableMap;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.lock.DebugThreadInfoConfiguration;
+import com.palantir.lock.HeldLocksToken;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.ThreadAwareLockClient;
+import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.concurrent.ConcurrentMap;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+
+public class LockThreadInfoSnapshotManager {
+
+    private DebugThreadInfoConfiguration threadInfoConfiguration;
+
+    private Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
+
+    private Map<LockDescriptor, ThreadAwareLockClient> lastKnownThreadInfoSnapshot;
+
+    private ScheduledExecutorService scheduledExecutorService = PTExecutors.newSingleThreadScheduledExecutor();
+
+    public LockThreadInfoSnapshotManager(
+            DebugThreadInfoConfiguration threadInfoConfiguration,
+            Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> mapSupplier) {
+        this.threadInfoConfiguration = threadInfoConfiguration;
+        this.tokenMapSupplier = mapSupplier;
+        this.lastKnownThreadInfoSnapshot = ImmutableMap.of();
+
+        scheduleSnapshotting();
+    }
+
+    private void scheduleSnapshotting() {
+        if (threadInfoConfiguration.recordThreadInfo()) {
+            scheduledExecutorService.schedule(
+                    this::takeSnapshot,
+                    threadInfoConfiguration.threadInfoSnapshotIntervalMillis(),
+                    TimeUnit.MILLISECONDS);
+        }
+    }
+
+    /**
+     * Returns a consistent snapshot of tread information restricted to the given lock descriptors
+     */
+    public Map<LockDescriptor, ThreadAwareLockClient> getLastKnownThreadInfoSnapshot(
+            Set<LockDescriptor> lockDescriptors) {
+        final Map<LockDescriptor, ThreadAwareLockClient> currentSnapshot = this.lastKnownThreadInfoSnapshot;
+        return lockDescriptors.stream()
+                .filter(currentSnapshot::containsKey)
+                .collect(Collectors.toMap(lock -> lock, currentSnapshot::get));
+    }
+
+    @VisibleForTesting
+    void takeSnapshot() {
+        this.lastKnownThreadInfoSnapshot = tokenMapSupplier.get().keySet().stream()
+                .flatMap(token -> {
+                    ThreadAwareLockClient threadAwareLockClient =
+                            token.getClient() == null || Strings.isNullOrEmpty(token.getRequestingThread())
+                                    ? ThreadAwareLockClient.UNKNOWN
+                                    : ThreadAwareLockClient.of(token.getClient(), token.getRequestingThread());
+                    return token.getLockDescriptors().stream()
+                            .map(lockDescriptor -> Map.entry(lockDescriptor, threadAwareLockClient));
+                })
+                // Although a lock can be held by multiple clients/threads, we only remember one to save space
+                .collect(Collectors.toMap(Entry::getKey, Entry::getValue, (existing, replacement) -> existing));
+
+        // schedule next snapshot so this can be enabled/disabled at runtime
+        scheduleSnapshotting();
+    }
+}u}(jY (c238f193c1572dc7b66a07d87ea9a8acbfc8f3c7j
Z Rlock-impl/src/test/java/com/palantir/lock/impl/ThreadAwareLockServiceImplTest.javajZ addedjZ M;jZ K jZ M;jZ https://github.com/palantir/atlasdb/blob/0b83aa8fefbaca1862147c56563a9ea6cd0293e4/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.javajZ https://github.com/palantir/atlasdb/raw/0b83aa8fefbaca1862147c56563a9ea6cd0293e4/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.javajZ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.java?ref=0b83aa8fefbaca1862147c56563a9ea6cd0293e4jZ Xw9  @@ -0,0 +1,315 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableSortedMap;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
+import com.palantir.lock.LockClient;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.LockMode;
+import com.palantir.lock.LockRequest;
+import com.palantir.lock.LockResponse;
+import com.palantir.lock.LockServerOptions;
+import com.palantir.lock.SimpleTimeDuration;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.ThreadAwareLockClient;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.concurrent.CyclicBarrier;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Future;
+import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.Test;
+
+public class ThreadAwareLockServiceImplTest {
+
+    // Disable background snapshotting, invoke explicitly instead
+    private final LockServiceImpl lockService = LockServiceImpl.create(LockServerOptions.builder()
+            .isStandaloneServer(false)
+            .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                    .recordThreadInfo(false)
+                    .build())
+            .build());
+
+    private final LockThreadInfoSnapshotManager snapshotRunner = lockService.createSnapshotManager();
+
+    private final ExecutorService executor =
+            PTExecutors.newCachedThreadPool(ThreadAwareLockServiceImplTest.class.getName());
+
+    private static final LockDescriptor TEST_LOCK_1 = StringLockDescriptor.of("lock-1");
+    private static final LockDescriptor TEST_LOCK_2 = StringLockDescriptor.of("lock-2");
+    private static final LockDescriptor TEST_LOCK_3 = StringLockDescriptor.of("lock-3");
+
+    private static final String TEST_THREAD_1 = "thread-1";
+    private static final String TEST_THREAD_2 = "thread-2";
+    private static final String TEST_THREAD_3 = "thread-3";
+
+    private static final LockRequest LOCK_1_THREAD_1_WRITE_REQUEST = LockRequest.builder(
+                    ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+            .withCreatingThreadName(TEST_THREAD_1)
+            .build();
+
+    @Test
+    public void initialThreadInfoIsEmpty() {
+        snapshotRunner.takeSnapshot();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isNull();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isNull();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isNull();
+    }
+
+    @Test
+    public void recordsThreadInfo_singleLock() throws InterruptedException {
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        snapshotRunner.takeSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1));
+    }
+
+    @Test
+    public void recordsThreadInfo_multipleUniqueLocks_fromDifferentThreads() throws InterruptedException {
+        final int numThreads = 10;
+        final int numLocksPerThread = 10;
+
+        List<String> threadNames =
+                IntStream.range(0, numThreads).mapToObj(i -> "test-thread-" + i).collect(Collectors.toList());
+        Map<String, List<LockDescriptor>> locksPerThread = new HashMap<>();
+        for (String threadName : threadNames) {
+            List<LockDescriptor> locks = IntStream.range(0, numLocksPerThread)
+                    .mapToObj(i -> StringLockDescriptor.of("test-lock-" + i + "-from-thread-" + threadName))
+                    .collect(Collectors.toList());
+            locksPerThread.put(threadName, locks);
+        }
+
+        for (String threadName : threadNames) {
+            LockRequest lockRequest = LockRequest.builder(
+                            ImmutableSortedMap.copyOf(locksPerThread.get(threadName).stream()
+                                    .collect(Collectors.toMap(lock -> lock, lock -> LockMode.WRITE))))
+                    .withCreatingThreadName(threadName)
+                    .build();
+            lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest);
+        }
+
+        snapshotRunner.takeSnapshot();
+
+        Map<LockDescriptor, ThreadAwareLockClient> expected = locksPerThread.keySet().stream()
+                .flatMap(threadName -> locksPerThread.get(threadName).stream()
+                        .map(lock -> Map.entry(lock, ThreadAwareLockClient.of(LockClient.ANONYMOUS, threadName))))
+                .collect(Collectors.toMap(Entry::getKey, Entry::getValue));
+
+        expected.forEach((lock, clientThread) -> {
+            assertThat(getLatestThreadInfoForLock(lock)).isEqualTo(clientThread);
+        });
+    }
+
+    @Test
+    public void recordsThreadInfo_sharedLock_fromDifferentThreads() throws InterruptedException {
+        LockRequest lockRequest1 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+        LockRequest lockRequest2 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .doNotBlock()
+                .lockAsManyAsPossible()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest1);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+        snapshotRunner.takeSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .isIn(
+                        ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1),
+                        ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+    }
+
+    @Test
+    public void doesNotRecordDroppedLocksWithLockAllOrNone() throws InterruptedException {
+        // T2 cannot get lock 1 -> grouping behavior LOCK_ALL_OR_NONE will release lock 2, even though it could have
+        // been locked
+        LockRequest lockRequest2 = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
+                .doNotBlock()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+        snapshotRunner.takeSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1));
+    }
+
+    @Test
+    public void doesNotRecordFailedLocks() throws InterruptedException {
+        LockRequest lockRequest2 = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE))
+                .doNotBlock()
+                .lockAsManyAsPossible()
+                .withCreatingThreadName(TEST_THREAD_2)
+                .build();
+
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+        snapshotRunner.takeSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1));
+    }
+
+    @Test
+    public void recordsUnlockWriteLock() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+
+        lockService.unlock(response.getToken());
+        snapshotRunner.takeSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isNull();
+    }
+
+    @Test
+    public void recordsUnlockAndFreezeForNonAnonymousClient() throws InterruptedException {
+        LockResponse response = lockService.lockWithFullLockResponse(
+                LockClient.of("non-anonymous-client"), LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockService.unlockAndFreeze(response.getToken());
+        snapshotRunner.takeSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isNull();
+    }
+
+    @Test
+    public void recordsCorrectStateAfterMultipleOperations() throws Exception {
+        final CyclicBarrier barrier = new CyclicBarrier(2);
+
+        // T1 locks 1 exclusively and locks 2 in shared mode
+        LockResponse response1 = lockService.lockWithFullLockResponse(
+                LockClient.ANONYMOUS,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_1)
+                        .build());
+
+        // T2 shouldn't get 1, but locks 3 in exclusive mode,
+        LockResponse response2 = lockService.lockWithFullLockResponse(
+                LockClient.ANONYMOUS,
+                LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_3, LockMode.WRITE))
+                        .doNotBlock()
+                        .lockAsManyAsPossible()
+                        .withCreatingThreadName(TEST_THREAD_2)
+                        .build());
+
+        Future<LockResponse> response3 = executor.submit(() -> {
+
+            // T3 will wait at most 5 seconds to lock 1 in exclusive mode and lock 2 in shared mode
+            LockResponse response = lockService.lockWithFullLockResponse(
+                    LockClient.ANONYMOUS,
+                    LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.WRITE, TEST_LOCK_2, LockMode.READ))
+                            .blockForAtMost(SimpleTimeDuration.of(5, TimeUnit.SECONDS))
+                            .lockAsManyAsPossible()
+                            .withCreatingThreadName(TEST_THREAD_3)
+                            .build());
+            barrier.await();
+            return response;
+        });
+        lockService.unlock(response1.getToken());
+        barrier.await();
+        snapshotRunner.takeSnapshot();
+
+        // T1 should hold nothing, T2 holds 3 in exclusive mode, T3 holds 1 in exclusive and 2 in shared mode
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
+                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3))
+                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_2));
+
+        lockService.unlock(response2.getToken());
+        snapshotRunner.takeSnapshot();
+
+        // Only T3 should hold locks
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2))
+                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_3));
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isNull();
+
+        lockService.unlock(response3.get().getToken());
+        snapshotRunner.takeSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).isNull();
+        // Lock 2 is a shared lock
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_2)).isNull();
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_3)).isNull();
+    }
+
+    @Test
+    public void refreshDoesNotChangeSnapshot() throws InterruptedException {
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockService.refreshTokens(List.of(response.getToken()));
+        snapshotRunner.takeSnapshot();
+
+        assertThat(getLatestThreadInfoForLock(TEST_LOCK_1))
+                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1));
+    }
+
+    @Test(timeout = 500L)
+    public void backgroundSnapshotRunnerWorks() throws InterruptedException {
+        final LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
+                .isStandaloneServer(false)
+                .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                        .recordThreadInfo(true)
+                        .threadInfoSnapshotIntervalMillis(10L)
+                        .build())
+                .build());
+        LockThreadInfoSnapshotManager backgroundSnapshotRunner =
+                lockServiceWithBackgroundRunner.createSnapshotManager();
+
+        LockResponse response = lockServiceWithBackgroundRunner.lockWithFullLockResponse(
+                LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+
+        Thread.sleep(50L);
+
+        assertThat(backgroundSnapshotRunner
+                        .getLastKnownThreadInfoSnapshot(Set.of(TEST_LOCK_1))
+                        .get(TEST_LOCK_1))
+                .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1));
+
+        lockServiceWithBackgroundRunner.unlock(response.getToken());
+
+        Thread.sleep(50L);
+
+        assertThat(backgroundSnapshotRunner
+                        .getLastKnownThreadInfoSnapshot(Set.of(TEST_LOCK_1))
+                        .get(TEST_LOCK_1))
+                .isNull();
+    }
+
+    private ThreadAwareLockClient getLatestThreadInfoForLock(LockDescriptor lock) {
+        return snapshotRunner.getLastKnownThreadInfoSnapshot(Set.of(lock)).get(lock);
+    }
+}ueu      (d3a8c124a10bca6e864ae107a05c7f21931a4c2a}(sha(d3a8c124a10bca6e864ae107a05c7f21931a4c2anode_idEC_kwDOAjP5fdoAKGQzYThjMTI0YTEwYmNhNmU4NjRhZTEwN2EwNWM3ZjIxOTMxYTRjMmEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-22T10:05:34Zu	committer}(jLZ 
Sam KramerjNZ skramer@palantir.comjPZ 2023-05-22T10:05:34Zumessage3Fix workload config for C* which does not support -tree}(jDZ (5da8691931a043faac1d23e731bc3c28c261f6f0url`https://api.github.com/repos/palantir/atlasdb/git/trees/5da8691931a043faac1d23e731bc3c28c261f6f0uj\Z bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d3a8c124a10bca6e864ae107a05c7f21931a4c2a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRrPm4ACgkQmPPOpKR4
XS3IgwgAuQhJk1Zx6Y2Z6ceT+wQtZv0WZR7MVPBrYP9ddKeWQ6FQsUyLz9Y/ldMq
zNZ6lWZ+ysO5lumSQX5Vti6cGFnM4rYyidUxu+S3iT4zUt1qu9lwrPaDoqfuGUou
grYUXikIbEiWJU7kDZKyyl8jeLHTOMrtbfgt6X92O30AuJaernKDYCd5M4nyAPfk
OzZ+UTPr7fdixU7XkZjKUQlAeOKXRNaXfUV29VFVpkfmroE6eumeniwpFwJFA+Hx
0ZvKH7X+FFoyLwC9OeW1ssYdciOhaCIRzIo9jfwXfgupZeBSDG2X9tmyfRpJIYkf
BDyfT3qKbSbctmkj9L5LZAYPn5VB8Q==
=/CsT
-----END PGP SIGNATURE-----payloadX
  tree 5da8691931a043faac1d23e731bc3c28c261f6f0
parent 2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30
author Sam Kramer <skramer@palantir.com> 1684749934 +0100
committer Sam Kramer <skramer@palantir.com> 1684749934 +0100

Fix workload config for C* which does not support -
uuj\Z ^https://api.github.com/repos/palantir/atlasdb/commits/d3a8c124a10bca6e864ae107a05c7f21931a4c2ahtml_urlShttps://github.com/palantir/atlasdb/commit/d3a8c124a10bca6e864ae107a05c7f21931a4c2acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d3a8c124a10bca6e864ae107a05c7f21931a4c2a/commentsjJZ }(login
Sam-KrameridJ^2_ jFZ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j\Z 'https://api.github.com/users/Sam-KramerjjZ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujRZ }(joZ 
Sam-KramerjqZ J^2_ jFZ MDQ6VXNlcjYyMzg4MTQ=jsZ 3https://avatars.githubusercontent.com/u/6238814?v=4juZ h5j\Z 'https://api.github.com/users/Sam-KramerjjZ https://github.com/Sam-KramerjxZ 1https://api.github.com/users/Sam-Kramer/followersjzZ >https://api.github.com/users/Sam-Kramer/following{/other_user}j|Z 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j~Z >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jZ 5https://api.github.com/users/Sam-Kramer/subscriptionsjZ ,https://api.github.com/users/Sam-Kramer/orgsjZ -https://api.github.com/users/Sam-Kramer/reposjZ 8https://api.github.com/users/Sam-Kramer/events{/privacy}jZ 7https://api.github.com/users/Sam-Kramer/received_eventsjZ UserjZ uparents]}(jDZ (2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30j\Z ^https://api.github.com/repos/palantir/atlasdb/commits/2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30jjZ Shttps://github.com/palantir/atlasdb/commit/2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30uastats}(totalK	additionsK	deletionsKufiles]}(jDZ (89db39a1b291717821550b78aad247e99ebcaefffilenameTatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlstatusmodifiedjZ KjZ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/d3a8c124a10bca6e864ae107a05c7f21931a4c2a/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/d3a8c124a10bca6e864ae107a05c7f21931a4c2a/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=d3a8c124a10bca6e864ae107a05c7f21931a4c2apatchX  @@ -53,7 +53,7 @@ install:
     type: ring
   singleBusyCellConfig:
     tableConfiguration:
-      tableName: single-busy-cell-test
+      tableName: single_busy_cell_test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: single-busy-celluau(94a5aca1c69153c5c40b19fd1ac73df4a3ceae58}(sha(94a5aca1c69153c5c40b19fd1ac73df4a3ceae58node_idEC_kwDOAjP5fdoAKDk0YTVhY2ExYzY5MTUzYzVjNDBiMTlmZDFhYzczZGY0YTNjZWFlNTgcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-07-12T13:11:50Zu	committer}(jZ GitHubjZ noreply@github.comjZ 2023-07-12T13:11:50ZumessagehUpdate antithesis to use latest cassandra image (#6662)

Update antithesis to use latest cassandra imagetree}(jZ (28ed198960aafe1ad0af4f53862bca53015afb84url`https://api.github.com/repos/palantir/atlasdb/git/trees/28ed198960aafe1ad0af4f53862bca53015afb84ujZ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/94a5aca1c69153c5c40b19fd1ac73df4a3ceae58
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkrqaWCRBK7hj4Ov3rIwAAFTMIAK2Hx5/b8r2ANkhB0JfjQx6r
ewtMcn2kJYBYQaPI2kOB/1qIkvsyaHa0Hghlb49Z6M23+4zBmFlwehHtcePBLfx0
PT0CxSlvcI09h/+fZ/iuPA7SPdG+60d/Nmsdc67ZlgFQJf3cpWYrSL9A1ZumV5VG
MEpPtoaXmJziAyWj5TVBQC84ADtqIdV3ZIMzHnLN2xgc92BYP7XOFHa26YUXpQZR
twd46W9tSvHqQZ1aMKfG09oGBs5y2pw0nfCneneyHGl/aR+j027/MJf9iq+SR6Ig
mDxRvz5/v4vWyJkIw99PmCd3MPQZy6tKqaLXvmpp5lpF1emaNezLH4Ep68ZUtMM=
=CtOW
-----END PGP SIGNATURE-----
payloadX;  tree 28ed198960aafe1ad0af4f53862bca53015afb84
parent 8074a9d364d1680530a98df0d6ee5be147a647dc
author Sam-Kramer <sam.c.kramer@gmail.com> 1689167510 +0100
committer GitHub <noreply@github.com> 1689167510 +0000

Update antithesis to use latest cassandra image (#6662)

Update antithesis to use latest cassandra image
uujZ ^https://api.github.com/repos/palantir/atlasdb/commits/94a5aca1c69153c5c40b19fd1ac73df4a3ceae58html_urlShttps://github.com/palantir/atlasdb/commit/94a5aca1c69153c5c40b19fd1ac73df4a3ceae58comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/94a5aca1c69153c5c40b19fd1ac73df4a3ceae58/commentsjZ }(login
Sam-KrameridJ^2_ jZ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jZ 'https://api.github.com/users/Sam-KramerjZ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujZ }(jZ web-flowjZ J/jZ MDQ6VXNlcjE5ODY0NDQ3jZ 4https://avatars.githubusercontent.com/u/19864447?v=4jZ h5jZ %https://api.github.com/users/web-flowjZ https://github.com/web-flowjZ /https://api.github.com/users/web-flow/followersjZ <https://api.github.com/users/web-flow/following{/other_user}jZ 5https://api.github.com/users/web-flow/gists{/gist_id}jZ <https://api.github.com/users/web-flow/starred{/owner}{/repo}jZ 3https://api.github.com/users/web-flow/subscriptionsjZ *https://api.github.com/users/web-flow/orgsjZ +https://api.github.com/users/web-flow/reposjZ 6https://api.github.com/users/web-flow/events{/privacy}jZ 5https://api.github.com/users/web-flow/received_eventsj[ Userj[ uparents]}(jZ (8074a9d364d1680530a98df0d6ee5be147a647dcjZ ^https://api.github.com/repos/palantir/atlasdb/commits/8074a9d364d1680530a98df0d6ee5be147a647dcjZ Shttps://github.com/palantir/atlasdb/commit/8074a9d364d1680530a98df0d6ee5be147a647dcuastats}(totalK	additionsK	deletionsKufiles](}(jZ (d76af03da7c4bad04f1910eb26d354bd1ad9a05dfilename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedj[ Kj[ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/94a5aca1c69153c5c40b19fd1ac73df4a3ceae58/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/94a5aca1c69153c5c40b19fd1ac73df4a3ceae58/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=94a5aca1c69153c5c40b19fd1ac73df4a3ceae58patchX  @@ -2,7 +2,7 @@ version: '2'
 
 services:
   cassandra1:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
+    image: palantirtechnologies/cassandra:2.2.18-1.116.0
     ports:
       - "9160"
       - "9042"
@@ -20,7 +20,7 @@ services:
         ipv4_address: 10.20.20.2
 
   cassandra2:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
+    image: palantirtechnologies/cassandra:2.2.18-1.116.0
     ports:
       - "9160"
       - "9042"
@@ -38,7 +38,7 @@ services:
         ipv4_address: 10.20.20.3
 
   cassandra3:
-    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
+    image: palantirtechnologies/cassandra:2.2.18-1.116.0
     ports:
       - "9160"
       - "9042"u}(jZ (5915e901d5335a9783ac11cb0206c0e610ac23bcj#[ *scripts/circle-ci/publish-to-antithesis.shj%[ modifiedj[ Kj[ Kj'[ Kj([ https://github.com/palantir/atlasdb/blob/94a5aca1c69153c5c40b19fd1ac73df4a3ceae58/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj*[ https://github.com/palantir/atlasdb/raw/94a5aca1c69153c5c40b19fd1ac73df4a3ceae58/scripts%2Fcircle-ci%2Fpublish-to-antithesis.shj,[ https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Fpublish-to-antithesis.sh?ref=94a5aca1c69153c5c40b19fd1ac73df4a3ceae58j.[ X*  @@ -26,9 +26,9 @@ printenv ANTITHESIS_LOGIN_JSON | base64 -d | docker login -u _json_key https://$
 
 VERSION=$(./gradlew -q printVersion)
 
-docker pull palantirtechnologies/cassandra:2.2.18-1.112.0-rc8
-docker tag palantirtechnologies/cassandra:2.2.18-1.112.0-rc8 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc8
-docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.112.0-rc8
+docker pull palantirtechnologies/cassandra:2.2.18-1.116.0
+docker tag palantirtechnologies/cassandra:2.2.18-1.116.0 ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.116.0
+docker push ${ANTITHESIS_REPO_URL}/cassandra:2.2.18-1.116.0
 
 docker tag palantirtechnologies/timelock-server-distribution:${VERSION} ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}
 docker push ${ANTITHESIS_REPO_URL}/timelock-server-distribution:${1}ueu(6a59d90736361e4fb45e13537d26afef77238c6e}(sha(6a59d90736361e4fb45e13537d26afef77238c6enode_idEC_kwDOAjP5fdoAKDZhNTlkOTA3MzYzNjFlNGZiNDVlMTM1MzdkMjZhZmVmNzcyMzhjNmUcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-07-25T20:59:43Zu	committer}(jB[ Tom PetraccajD[ tpetracca@palantir.comjF[ 2023-07-25T20:59:43Zumessagedo lesstree}(j:[ (3873ac584c3bcb014bb6c9d9834f643400843e76url`https://api.github.com/repos/palantir/atlasdb/git/trees/3873ac584c3bcb014bb6c9d9834f643400843e76ujR[ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6a59d90736361e4fb45e13537d26afef77238c6e
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujR[ ^https://api.github.com/repos/palantir/atlasdb/commits/6a59d90736361e4fb45e13537d26afef77238c6ehtml_urlShttps://github.com/palantir/atlasdb/commit/6a59d90736361e4fb45e13537d26afef77238c6ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6a59d90736361e4fb45e13537d26afef77238c6e/commentsj@[ }(login	tpetraccaidJ& j<[ MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5jR[ &https://api.github.com/users/tpetraccaj^[ https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminujH[ }(jc[ 	tpetraccaje[ J& j<[ MDQ6VXNlcjI1NTQzMjg=jg[ 3https://avatars.githubusercontent.com/u/2554328?v=4ji[ h5jR[ &https://api.github.com/users/tpetraccaj^[ https://github.com/tpetraccajl[ 0https://api.github.com/users/tpetracca/followersjn[ =https://api.github.com/users/tpetracca/following{/other_user}jp[ 6https://api.github.com/users/tpetracca/gists{/gist_id}jr[ =https://api.github.com/users/tpetracca/starred{/owner}{/repo}jt[ 4https://api.github.com/users/tpetracca/subscriptionsjv[ +https://api.github.com/users/tpetracca/orgsjx[ ,https://api.github.com/users/tpetracca/reposjz[ 7https://api.github.com/users/tpetracca/events{/privacy}j|[ 6https://api.github.com/users/tpetracca/received_eventsj~[ Userj[ uparents]}(j:[ (110fad4282a1e788fce010009bcc4b1059da2e97jR[ ^https://api.github.com/repos/palantir/atlasdb/commits/110fad4282a1e788fce010009bcc4b1059da2e97j^[ Shttps://github.com/palantir/atlasdb/commit/110fad4282a1e788fce010009bcc4b1059da2e97uastats}(totalK	additionsK	deletionsK ufiles]}(j:[ (a8cfbaa5a5f1258576044a4504dc65f4df1a2221filenameatlasdb-ete-tests/build.gradlestatusmodifiedj[ Kj[ K changesKblob_urlrhttps://github.com/palantir/atlasdb/blob/6a59d90736361e4fb45e13537d26afef77238c6e/atlasdb-ete-tests%2Fbuild.gradleraw_urlqhttps://github.com/palantir/atlasdb/raw/6a59d90736361e4fb45e13537d26afef77238c6e/atlasdb-ete-tests%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fbuild.gradle?ref=6a59d90736361e4fb45e13537d26afef77238c6epatchXO  @@ -139,6 +139,17 @@ test {
     // not sure why that is
     dependsOn prepareForEteTests, singleClientWithEmbeddedAndThreeNodeCassandraTest, singleClientWithEmbeddedAndPostgresTest
 
+    // 1-off ETE tests
+    exclude '**/*TimeLock*.class'
+    exclude '**/*TimeLockMigration*.class' // Technically covered by previous line, but explicitly avoiding in case of refactor
+    exclude '**/*EteTest.class'
+
+    // test suites with their own test tasks
+    exclude '**/SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.class'
+    exclude '**/SingleClientWithEmbeddedAndPostgresTestSuite.class'
+    exclude '**/SingleClientWithEmbeddedAndOracleTestSuite.class'
+
+    /*
     filter {
         // include standalone and suite tests
         // includeTestsMatching 'com.palantir.atlasdb.ete.standalone.*'
@@ -154,6 +165,7 @@ test {
         excludeTestsMatching 'com.palantir.atlasdb.ete.suites.MultiClientWithPostgresTimelockAndPostgresTestSuite'
         // excludeTestsMatching 'com.palantir.atlasdb.ete.suites.MultiClientWithTimelockAndCassandraTestSuite'
     }
+    */
 }
 
 distribution {uau(80534dc1874df207b75eadddd2c9cdaa68ea8ec3}(sha(80534dc1874df207b75eadddd2c9cdaa68ea8ec3node_idEC_kwDOAjP5fdoAKDgwNTM0ZGMxODc0ZGYyMDdiNzVlYWRkZGQyYzljZGFhNjhlYThlYzMcommit}(author}(name
Samuel Krameremailskramer@palantir.comdate2023-04-26T17:02:26Zu	committer}(j[ 
Samuel Kramerj[ skramer@palantir.comj[ 2023-04-26T17:02:26Zumessagethree timelockstree}(j[ (b927b1e942cda91194f2fe6b2e762737bd7dbceeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/b927b1e942cda91194f2fe6b2e762737bd7dbceeuj[ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/80534dc1874df207b75eadddd2c9cdaa68ea8ec3
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj[ ^https://api.github.com/repos/palantir/atlasdb/commits/80534dc1874df207b75eadddd2c9cdaa68ea8ec3html_urlShttps://github.com/palantir/atlasdb/commit/80534dc1874df207b75eadddd2c9cdaa68ea8ec3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/80534dc1874df207b75eadddd2c9cdaa68ea8ec3/commentsj[ }(login
Sam-KrameridJ^2_ j[ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j[ 'https://api.github.com/users/Sam-Kramerj[ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj[ }(j[ 
Sam-Kramerj[ J^2_ j[ MDQ6VXNlcjYyMzg4MTQ=j[ 3https://avatars.githubusercontent.com/u/6238814?v=4j[ h5j[ 'https://api.github.com/users/Sam-Kramerj[ https://github.com/Sam-Kramerj[ 1https://api.github.com/users/Sam-Kramer/followersj[ >https://api.github.com/users/Sam-Kramer/following{/other_user}j[ 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j[ >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j[ 5https://api.github.com/users/Sam-Kramer/subscriptionsj[ ,https://api.github.com/users/Sam-Kramer/orgsj[ -https://api.github.com/users/Sam-Kramer/reposj[ 8https://api.github.com/users/Sam-Kramer/events{/privacy}j[ 7https://api.github.com/users/Sam-Kramer/received_eventsj[ Userj[ uparents]}(j[ (0e042c5db32fd526cc9e1506788bee2cda4f3a43j[ ^https://api.github.com/repos/palantir/atlasdb/commits/0e042c5db32fd526cc9e1506788bee2cda4f3a43j[ Shttps://github.com/palantir/atlasdb/commit/0e042c5db32fd526cc9e1506788bee2cda4f3a43uastats}(totalK-	additionsK&	deletionsKufiles](}(j[ (348ab9498e34371d3ebb51cdb40a63a7df14a211filename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedj\ K#j\ KchangesK)blob_urlhttps://github.com/palantir/atlasdb/blob/80534dc1874df207b75eadddd2c9cdaa68ea8ec3/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/80534dc1874df207b75eadddd2c9cdaa68ea8ec3/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=80534dc1874df207b75eadddd2c9cdaa68ea8ec3patchXF	  @@ -52,30 +52,59 @@ services:
       antithesis-net:
         ipv4_address: 10.20.20.4
 
-  timelock:
+  timelock1.palantir.pt:
     image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [ bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
     ports:
       - "8421"
       - "8422"
-    container_name: timelock
+    container_name: timelock1.palantir.pt
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.5
 
+  timelock2.palantir.pt:
+    image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [ bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
+    ports:
+      - "8421"
+      - "8422"
+    container_name: timelock2.palantir.pt
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.6
+
+  timelock3.palantir.pt:
+    image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
+    ports:
+      - "8421"
+      - "8422"
+    container_name: timelock3.palantir.pt
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.7
+
+
   workload-server:
     image: palantirtechnologies/atlasdb-workload-server-distribution:unspecified
-    command: [bash, -c, 'cp var/conf/workload-server.timelock.cassandra.yml var/conf/workload-server.yml 
-                         && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160 
+    command: [bash, -c, 'cp var/conf/workload-server.timelock.cassandra.yml var/conf/workload-server.yml
+                         && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160
                          && service/bin/init.sh console']
     container_name: workload-server
     depends_on:
       - cassandra1
       - cassandra2
       - cassandra3
-      - timelock
+      - timelock1.palantir.pt
+      - timelock2.palantir.pt
+      - timelock3.palantir.pt
     networks:
       antithesis-net:
-        ipv4_address: 10.20.20.6
+        ipv4_address: 10.20.20.8
 
 networks:
   antithesis-net:u}(j[ (e9233d647ddfb89bc234f3cf5711b40fbb6255c2j\ Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj\ modifiedj\ Kj\ Kj\ Kj\ https://github.com/palantir/atlasdb/blob/80534dc1874df207b75eadddd2c9cdaa68ea8ec3/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj\ https://github.com/palantir/atlasdb/raw/80534dc1874df207b75eadddd2c9cdaa68ea8ec3/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj\ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=80534dc1874df207b75eadddd2c9cdaa68ea8ec3j \ X  @@ -10,7 +10,9 @@ runtime:
     timelockRuntime:
       serversList:
         servers:
-          - 'http://timelock:8421'
+          - 'https://timelock1.palantir.pt:8421'
+          - 'https://timelock2.palantir.pt:8421'
+          - 'https://timelock3.palantir.pt:8421'
         sslConfiguration:
           keyStorePath: "var/security/keyStore.jks"
           keyStorePassword: "keystore"ueu(60cfe5f80bc98e6633662a39720a7e56a4f391bb}(sha(60cfe5f80bc98e6633662a39720a7e56a4f391bbnode_idEC_kwDOAjP5fdoAKDYwY2ZlNWY4MGJjOThlNjYzMzY2MmEzOTcyMGE3ZTU2YTRmMzkxYmIcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-16T18:58:43Zu	committer}(j4\ GitHubj6\ noreply@github.comj8\ 2023-05-16T18:58:43Zumessage0[CBT] Split test into multiple workflows (#6569)tree}(j,\ (438e5f0f1fccf9cc5ed27057cdde200ae6045f3eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/438e5f0f1fccf9cc5ed27057cdde200ae6045f3eujD\ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/60cfe5f80bc98e6633662a39720a7e56a4f391bb
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkY9JjCRBK7hj4Ov3rIwAALVsIADwV1XobKkYVTkHm8zvjEL5u
dwb+V/qW2BVks9bK6/DhI3/kHxLjrEl4pwlIb2rx78l57QciVqhZsT8UqpFtnfvS
PvnsNYfY5xTF0hAxZgz4ksndV815mj/uMUkaaCCTkEFRe58ZJ7xeIqacqLactNpD
5yNSiI2AtPuTN9aus3h2ITUwZFiLKOBykRLIKpXYAzChMO0lNf2DJH2P3BmJziHi
FeC5cdwg4LzwShgYtO6nIZh65I/m7Af4QouIFaMFNUhHoDjnzXcFOUjAaTlHKmr+
695S/MnifQlj9fLZF9WrA8IGgFoNCzG+iYcCWmRt2PeCNMtoAMaKfUV6aj7PXkA=
=Ovrc
-----END PGP SIGNATURE-----
payloadX  tree 438e5f0f1fccf9cc5ed27057cdde200ae6045f3e
parent d0e1df69585786e972d8642a1f50a8f1d5814d8d
author aalouane <30903736+ergo14@users.noreply.github.com> 1684263523 +0100
committer GitHub <noreply@github.com> 1684263523 +0000

[CBT] Split test into multiple workflows (#6569)

 uujD\ ^https://api.github.com/repos/palantir/atlasdb/commits/60cfe5f80bc98e6633662a39720a7e56a4f391bbhtml_urlShttps://github.com/palantir/atlasdb/commit/60cfe5f80bc98e6633662a39720a7e56a4f391bbcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/60cfe5f80bc98e6633662a39720a7e56a4f391bb/commentsj2\ }(loginergo14idJj.\ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jD\ #https://api.github.com/users/ergo14jR\ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj:\ }(jW\ web-flowjY\ J/j.\ MDQ6VXNlcjE5ODY0NDQ3j[\ 4https://avatars.githubusercontent.com/u/19864447?v=4j]\ h5jD\ %https://api.github.com/users/web-flowjR\ https://github.com/web-flowj`\ /https://api.github.com/users/web-flow/followersjb\ <https://api.github.com/users/web-flow/following{/other_user}jd\ 5https://api.github.com/users/web-flow/gists{/gist_id}jf\ <https://api.github.com/users/web-flow/starred{/owner}{/repo}jh\ 3https://api.github.com/users/web-flow/subscriptionsjj\ *https://api.github.com/users/web-flow/orgsjl\ +https://api.github.com/users/web-flow/reposjn\ 6https://api.github.com/users/web-flow/events{/privacy}jp\ 5https://api.github.com/users/web-flow/received_eventsjr\ Userjt\ uparents]}(j,\ (d0e1df69585786e972d8642a1f50a8f1d5814d8djD\ ^https://api.github.com/repos/palantir/atlasdb/commits/d0e1df69585786e972d8642a1f50a8f1d5814d8djR\ Shttps://github.com/palantir/atlasdb/commit/d0e1df69585786e972d8642a1f50a8f1d5814d8duastats}(totalKI	additionsK9	deletionsKufiles](}(j,\ (97d4354e82ad28af333625140441ffe7750a2b0dfilename.circleci/config.ymlstatusmodifiedj\ K*j\ K	changesK3blob_urlhhttps://github.com/palantir/atlasdb/blob/60cfe5f80bc98e6633662a39720a7e56a4f391bb/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/60cfe5f80bc98e6633662a39720a7e56a4f391bb/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=60cfe5f80bc98e6633662a39720a7e56a4f391bbpatchX  @@ -1,4 +1,4 @@
-version: 2
+version: 2.1
 
 jobs:
   build:
@@ -31,8 +31,10 @@ jobs:
           root: .
           paths: [ . ]
 
-  test:
-    parallelism: 14
+  test-suite:
+    parameters:
+      suite:
+        type: integer
     machine:
       image: ubuntu-2004:202111-02
     resource_class: xlarge
@@ -66,7 +68,7 @@ jobs:
               curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
               sudo ln -s /opt/java/zulu*/ /opt/java8
       - run:
-          command: ./scripts/circle-ci/run-circle-tests.sh
+          command: ./scripts/circle-ci/run-circle-tests.sh << parameters.suite >>
           no_output_timeout: 900
       - run: ./scripts/circle-ci/ensure-repo-clean.sh
       - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
@@ -78,11 +80,16 @@ jobs:
       - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
       - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
       - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - when:
+          # Persist to workspace for the compile/compileTest container to keep deploy fast.
+          condition:
+            equal: [ 13, << parameters.suite >> ]
+          steps:
+            - persist_to_workspace:
+                root: .
+                paths: [ . ]
       - store_artifacts:
           path: /home/circleci/artifacts
-      - persist_to_workspace:
-          root: .
-          paths: [ . ]
 
   trial-publish:
     docker:
@@ -97,6 +104,12 @@ jobs:
       - attach_workspace: { at: . }
       - run: ./gradlew --scan --profile --stacktrace --continue publishToMavenLocal
 
+  test:
+    docker: [ { image: 'busybox:1.34.1' } ]
+    resource_class: small
+    steps:
+      - run: {command: echo "Ran all required tests successfully"}
+
   deploy:
     docker:
       - image: cimg/openjdk:11.0.10-node
@@ -130,15 +143,35 @@ jobs:
             fi
 
 workflows:
-  version: 2
   check:
     jobs:
       - build:
           filters:
             tags:
               only: /.*/
-      - test:
+      - test-suite:
           requires: [build]
+          matrix:
+            alias: test-no-tl
+            parameters:
+              # intentionally excluding 12 (TimeLock migration ETE test) from this collection
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13]
+          filters:
+            tags:
+              only: /.*/
+      - test-suite:
+          requires: [build]
+          matrix:
+            alias: test-tl
+            parameters:
+              suite: [12]
+          filters:
+            branches:
+              only: /(tlmete.*|develop)/
+            tags:
+              only: /.*/
+      - test:
+          requires: [test-tl, test-no-tl]
           filters:
             tags:
               only: /.*/u}(j,\ (8dec3b76640ffbcc9b9795bc2408b874d1f25be9j\ $changelog/@unreleased/pr-6569.v2.ymlj\ addedj\ Kj\ K j\ Kj\ |https://github.com/palantir/atlasdb/blob/60cfe5f80bc98e6633662a39720a7e56a4f391bb/changelog%2F%40unreleased%2Fpr-6569.v2.ymlj\ {https://github.com/palantir/atlasdb/raw/60cfe5f80bc98e6633662a39720a7e56a4f391bb/changelog%2F%40unreleased%2Fpr-6569.v2.ymlj\ https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6569.v2.yml?ref=60cfe5f80bc98e6633662a39720a7e56a4f391bbj\ @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[CBT] Split test into multiple workflows'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6569u}(j,\ (2caa47ac951f1248b2272f5652f42a85e858f016j\ gradle/shared.gradlej\ modifiedj\ Kj\ K j\ Kj\ hhttps://github.com/palantir/atlasdb/blob/60cfe5f80bc98e6633662a39720a7e56a4f391bb/gradle%2Fshared.gradlej\ ghttps://github.com/palantir/atlasdb/raw/60cfe5f80bc98e6633662a39720a7e56a4f391bb/gradle%2Fshared.gradlej\ zhttps://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fshared.gradle?ref=60cfe5f80bc98e6633662a39720a7e56a4f391bbj\ @@ -88,6 +88,7 @@ afterEvaluate {
 
 tasks.withType(Test) {
     enableAssertions = true
+    failFast = true
 }
 
 ext.atlasdb_shaded = 'com.palantir.atlasdb.shaded.'u}(j,\ (bba9d63fbbe8164d0cd4c0489e523982076a1ba1j\ %scripts/circle-ci/run-circle-tests.shj\ modifiedj\ K	j\ Kj\ Kj\ {https://github.com/palantir/atlasdb/blob/60cfe5f80bc98e6633662a39720a7e56a4f391bb/scripts%2Fcircle-ci%2Frun-circle-tests.shj\ zhttps://github.com/palantir/atlasdb/raw/60cfe5f80bc98e6633662a39720a7e56a4f391bb/scripts%2Fcircle-ci%2Frun-circle-tests.shj\ https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=60cfe5f80bc98e6633662a39720a7e56a4f391bbj\ X|	  @@ -2,7 +2,7 @@
 
 set -x
 
-BASE_GRADLE_ARGS="--profile --continue"
+BASE_GRADLE_ARGS="--profile"
 
 function checkDocsBuild {
      pyenv install 3.5.4
@@ -27,15 +27,15 @@ CONTAINER_6=(':timelock-server:suiteTest')
 
 CONTAINER_7=(':timelock-server:stressTest')
 
-CONTAINER_8=(':atlasdb-ete-tests:timeLockMigrationTest')
+CONTAINER_8=(':atlasdb-cassandra-integration-tests:testSubset2')
 
 CONTAINER_9=(':atlasdb-ete-tests:oracleTest')
 
 CONTAINER_10=('atlasdb-dbkvs-tests:oracleTest')
 
 CONTAINER_11=(':atlasdb-impl-shared:check' )
 
-CONTAINER_12=(':atlasdb-cassandra-integration-tests:testSubset2')
+CONTAINER_12=(':atlasdb-ete-tests:timeLockMigrationTest')
 
 CONTAINER_13=('compileJava' 'compileTestJava')
 
@@ -50,16 +50,18 @@ do
     CONTAINER_0_EXCLUDE_ARGS="$CONTAINER_0_EXCLUDE_ARGS -x $task"
 done
 
+test_suite_index=$1
+
 # Short circuit the build if it's docs only
 if ./scripts/circle-ci/check-only-docs-changes.sh; then
-    if [ $CIRCLE_NODE_INDEX -eq 0 ]; then
+    if [ "$test_suite_index" -eq 0 ]; then
         checkDocsBuild
         exit $?
     fi
     exit 0
 fi
 
-if [ $CIRCLE_NODE_INDEX -eq 9 ] || [ $CIRCLE_NODE_INDEX -eq 10 ]; then
+if [ "$test_suite_index" -eq 9 ] || [ "$test_suite_index" -eq 10 ]; then
     printenv DOCKERHUB_PASSWORD | docker login --username "$DOCKERHUB_USERNAME" --password-stdin
     # The oracle container is very large and takes a long time to pull.
     # If this image is not pulled here, the circle build usually times out.
@@ -71,7 +73,7 @@ JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:class+unload=off"
 JAVA_GC_LOGGING_OPTIONS="${JAVA_GC_LOGGING_OPTIONS} -Xlog:gc:build-%t-%p.gc.log"
 
 # External builds have a 16gb limit.
-if [ "$CIRCLE_NODE_INDEX" -eq "13" ]; then
+if [ "$test_suite_index" -eq "13" ]; then
     export _JAVA_OPTIONS="-Xms2g -Xmx4g -XX:ActiveProcessorCount=8 ${JAVA_GC_LOGGING_OPTIONS}"
 else
     export _JAVA_OPTIONS="-Xmx4g ${JAVA_GC_LOGGING_OPTIONS}"
@@ -80,7 +82,7 @@ fi
 export CASSANDRA_MAX_HEAP_SIZE=512m
 export CASSANDRA_HEAP_NEWSIZE=64m
 
-case $CIRCLE_NODE_INDEX in
+case "$test_suite_index" in
     0) ./gradlew $BASE_GRADLE_ARGS check $CONTAINER_0_EXCLUDE_ARGS -x :atlasdb-jepsen-tests:check;;
     1) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_1[@]} ;;
     2) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_2[@]} -x :atlasdb-ete-tests:longTest -x atlasdb-ete-tests:dbkvsTest -x :atlasdb-ete-tests:timeLockMigrationTest ;;ueu(a2d1b11eb883e5f78837c2916d1d0faefa152f10}(sha(a2d1b11eb883e5f78837c2916d1d0faefa152f10node_idEC_kwDOAjP5fdoAKGEyZDFiMTFlYjg4M2U1Zjc4ODM3YzI5MTZkMWQwZmFlZmExNTJmMTAcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-08T14:28:03Zu	committer}(j\ 
Sam Kramerj\ skramer@palantir.comj\ 2023-08-08T14:28:03ZumessageBIf interrupted and still leader, set current thread to interruptedtree}(j\ (e3751913ff297ff6d57c3c53120ae5d2f740581burl`https://api.github.com/repos/palantir/atlasdb/git/trees/e3751913ff297ff6d57c3c53120ae5d2f740581buj\ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a2d1b11eb883e5f78837c2916d1d0faefa152f10
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTSUPMACgkQmPPOpKR4
XS1q3gf9Exebc1s/1UjAH1+xZWtzM03MyNZztwlnz3gJzxTImdhNFXHOIBhjSmF5
6YCehsriCiSFpAbrKsHH4gmY7VaMdSeA6bmXMpbI+JJWRjAORe91gh6Qz/jc4/+q
JQE1LQbPXbAAvGWMKiYkDjI3s9iFWXJIMfVmoPYQC3nApiIW/xdl8yRuSv/OqXeR
QBc9eTDGhhPf7t/KWJc6R+SRPuG6sOIgd0izwrN4AAfQaslemXup1vyH7sWJxZ2k
Vo3mSIGNxPMkgozPqI04PLK4NPGtmbVoGoh+ZHSktzuoAUen+p4lOD+KsLH4c0T4
w2lOX83/kzOvLqbZDOAzH3cggAyTEA==
=bUKk
-----END PGP SIGNATURE-----payloadX  tree e3751913ff297ff6d57c3c53120ae5d2f740581b
parent f5b49cc946a08a6f4c43b58b3e1cf220a3afb73b
author Sam Kramer <skramer@palantir.com> 1691504883 +0100
committer Sam Kramer <skramer@palantir.com> 1691504883 +0100

If interrupted and still leader, set current thread to interrupted
uuj\ ^https://api.github.com/repos/palantir/atlasdb/commits/a2d1b11eb883e5f78837c2916d1d0faefa152f10html_urlShttps://github.com/palantir/atlasdb/commit/a2d1b11eb883e5f78837c2916d1d0faefa152f10comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a2d1b11eb883e5f78837c2916d1d0faefa152f10/commentsj\ }(login
Sam-KrameridJ^2_ j\ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j\ 'https://api.github.com/users/Sam-Kramerj\ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj\ }(j\ 
Sam-Kramerj\ J^2_ j\ MDQ6VXNlcjYyMzg4MTQ=j\ 3https://avatars.githubusercontent.com/u/6238814?v=4j\ h5j\ 'https://api.github.com/users/Sam-Kramerj\ https://github.com/Sam-Kramerj\ 1https://api.github.com/users/Sam-Kramer/followersj\ >https://api.github.com/users/Sam-Kramer/following{/other_user}j\ 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j\ >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j\ 5https://api.github.com/users/Sam-Kramer/subscriptionsj\ ,https://api.github.com/users/Sam-Kramer/orgsj\ -https://api.github.com/users/Sam-Kramer/reposj\ 8https://api.github.com/users/Sam-Kramer/events{/privacy}j\ 7https://api.github.com/users/Sam-Kramer/received_eventsj] Userj] uparents]}(j\ (f5b49cc946a08a6f4c43b58b3e1cf220a3afb73bj\ ^https://api.github.com/repos/palantir/atlasdb/commits/f5b49cc946a08a6f4c43b58b3e1cf220a3afb73bj\ Shttps://github.com/palantir/atlasdb/commit/f5b49cc946a08a6f4c43b58b3e1cf220a3afb73buastats}(totalK		additionsK	deletionsKufiles]}(j\ (b3df56daf11bd48e5b2ae019538be1aa83a9bd13filenameYleader-election-impl/src/main/java/com/palantir/leader/proxy/AwaitingLeadershipProxy.javastatusmodifiedj] Kj] KchangesK	blob_urlhttps://github.com/palantir/atlasdb/blob/a2d1b11eb883e5f78837c2916d1d0faefa152f10/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a2d1b11eb883e5f78837c2916d1d0faefa152f10/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fleader%2Fproxy%2FAwaitingLeadershipProxy.java?ref=a2d1b11eb883e5f78837c2916d1d0faefa152f10patchX  @@ -166,9 +166,12 @@ private RuntimeException handleDelegateThrewException(
 
         // Prevent blocked lock requests from receiving a non-retryable 500 on interrupts
         // in case of a leader election.
-        if (cause instanceof InterruptedException && !leadershipCoordinator.isStillCurrentToken(leadershipToken)) {
-            throw leadershipCoordinator.notCurrentLeaderException(
-                    "received an interrupt due to leader election.", exception.getCause());
+        if (cause instanceof InterruptedException) {
+            if (!leadershipCoordinator.isStillCurrentToken(leadershipToken)) {
+                throw leadershipCoordinator.notCurrentLeaderException(
+                        "received an interrupt due to leader election.", exception.getCause());
+            }
+            Thread.currentThread().interrupt();
         }
         Throwables.propagateIfPossible(cause, Exception.class);
         throw new RuntimeException(cause);uau(833ff54c1b94e180cff7bab0ba79f1f0e98e15c4}(sha(833ff54c1b94e180cff7bab0ba79f1f0e98e15c4node_idEC_kwDOAjP5fdoAKDgzM2ZmNTRjMWI5NGUxODBjZmY3YmFiMGJhNzlmMWYwZTk4ZTE1YzQcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-08-08T15:13:41Zu	committer}(j:] GitHubj<] noreply@github.comj>] 2023-08-08T15:13:41Zumessage6[Antithesis] Part 12: too much experimentation (#6681)tree}(j2] (bc50b1693ae1126154bfc3fc7d5311a3d49d2fe7url`https://api.github.com/repos/palantir/atlasdb/git/trees/bc50b1693ae1126154bfc3fc7d5311a3d49d2fe7ujJ] bhttps://api.github.com/repos/palantir/atlasdb/git/commits/833ff54c1b94e180cff7bab0ba79f1f0e98e15c4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk0lulCRBK7hj4Ov3rIwAALy8IACrBaKvo/hp9HAfSsodpYp+p
66ItNKj2riy4QavCCt209rtFxnZxcwbbCj2RSoGSWmRadmpE4mqEFK5fQ09j4JdJ
Ue4+2j+dnEDZxwPP0NndhhRVhrXFbhWu35Jm0b8keBKSvPylIslbQI9pOPqb1TxI
BlZxPJ7RYneW+Ofjgekejki9uLp4X3rM8SGlWxc79JO6Rh2uM1DCA66hq1swUw3A
MiBfP0Dd5Wm5qzo9/JFvb5zDJIU9zUIB2SOgYMVY0/X/YcBITzUfFPqSO5BNDL00
EiIo3Ie9tyQYXfvt3DchhSm9I2nPtrFKeHIXgNPTDmyRtxwX2qhV38XFl5v7lCc=
=EKfn
-----END PGP SIGNATURE-----
payloadX  tree bc50b1693ae1126154bfc3fc7d5311a3d49d2fe7
parent e856c6795f27c92a4f037fcfc7bed83c0283d0a2
author Jeremy Kong <jkong@palantir.com> 1691507621 +0100
committer GitHub <noreply@github.com> 1691507621 +0000

[Antithesis] Part 12: too much experimentation (#6681)

 uujJ] ^https://api.github.com/repos/palantir/atlasdb/commits/833ff54c1b94e180cff7bab0ba79f1f0e98e15c4html_urlShttps://github.com/palantir/atlasdb/commit/833ff54c1b94e180cff7bab0ba79f1f0e98e15c4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/833ff54c1b94e180cff7bab0ba79f1f0e98e15c4/commentsj8] }(login
jeremyk-91idJZ j4] MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jJ] 'https://api.github.com/users/jeremyk-91jX] https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj@] }(j]] web-flowj_] J/j4] MDQ6VXNlcjE5ODY0NDQ3ja] 4https://avatars.githubusercontent.com/u/19864447?v=4jc] h5jJ] %https://api.github.com/users/web-flowjX] https://github.com/web-flowjf] /https://api.github.com/users/web-flow/followersjh] <https://api.github.com/users/web-flow/following{/other_user}jj] 5https://api.github.com/users/web-flow/gists{/gist_id}jl] <https://api.github.com/users/web-flow/starred{/owner}{/repo}jn] 3https://api.github.com/users/web-flow/subscriptionsjp] *https://api.github.com/users/web-flow/orgsjr] +https://api.github.com/users/web-flow/reposjt] 6https://api.github.com/users/web-flow/events{/privacy}jv] 5https://api.github.com/users/web-flow/received_eventsjx] Userjz] uparents]}(j2] (e856c6795f27c92a4f037fcfc7bed83c0283d0a2jJ] ^https://api.github.com/repos/palantir/atlasdb/commits/e856c6795f27c92a4f037fcfc7bed83c0283d0a2jX] Shttps://github.com/palantir/atlasdb/commit/e856c6795f27c92a4f037fcfc7bed83c0283d0a2uastats}(totalK	additionsK	deletionsKufiles]}(j2] (741d86edca2642b5cf185c58712013b2828a6ec3filenameqatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/suites/MultiClientWithTimelockAndCassandraTestSuite.javastatusmodifiedj] Kj] KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/833ff54c1b94e180cff7bab0ba79f1f0e98e15c4/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithTimelockAndCassandraTestSuite.javaraw_urlhttps://github.com/palantir/atlasdb/raw/833ff54c1b94e180cff7bab0ba79f1f0e98e15c4/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithTimelockAndCassandraTestSuite.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2Fsuites%2FMultiClientWithTimelockAndCassandraTestSuite.java?ref=833ff54c1b94e180cff7bab0ba79f1f0e98e15c4patchX  @@ -16,6 +16,12 @@
 package com.palantir.atlasdb.ete.suites;
 
 import com.palantir.atlasdb.containers.CassandraEnvironment;
+import com.palantir.atlasdb.ete.suiteclasses.CassandraTimestampsEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.CoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.LockWithTimelockEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.MultipleSchemaVersionsCoordinationEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TargetedSweepEteTest;
+import com.palantir.atlasdb.ete.suiteclasses.TimestampManagementEteTest;
 import com.palantir.atlasdb.ete.suiteclasses.TodoEteTest;
 import com.palantir.atlasdb.ete.utilities.EteSetup;
 import org.junit.ClassRule;
@@ -24,13 +30,14 @@
 import org.junit.runners.Suite;
 
 @RunWith(Suite.class)
-@Suite.SuiteClasses({TodoEteTest.class
-    //    TargetedSweepEteTest.class,
-    //    CassandraTimestampsEteTest.class,
-    //    TimestampManagementEteTest.class,
-    //    CoordinationEteTest.class,
-    //    MultipleSchemaVersionsCoordinationEteTest.class,
-    //    LockWithTimelockEteTest.class
+@Suite.SuiteClasses({
+    TodoEteTest.class,
+    TargetedSweepEteTest.class,
+    CassandraTimestampsEteTest.class,
+    TimestampManagementEteTest.class,
+    CoordinationEteTest.class,
+    MultipleSchemaVersionsCoordinationEteTest.class,
+    LockWithTimelockEteTest.class
 })
 public class MultiClientWithTimelockAndCassandraTestSuite extends EteSetup {
     @ClassRuleuau(acdd8b440cf16a635a7163ab8e533e4576073ab9}(sha(acdd8b440cf16a635a7163ab8e533e4576073ab9node_idEC_kwDOAjP5fdoAKGFjZGQ4YjQ0MGNmMTZhNjM1YTcxNjNhYjhlNTMzZTQ1NzYwNzNhYjkcommit}(author}(nameAlex Landauemailalandau@cs.stanford.edudate2023-06-05T18:40:10Zu	committer}(j] GitHubj] noreply@github.comj] 2023-06-05T18:40:10Zumessage3Upgrade sqlite-jdbc from 3.36.0 to 3.42.0.0 (#6600)tree}(j] (0f05b125b1839dce7bd00779ea5cd6c812e5aebdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/0f05b125b1839dce7bd00779ea5cd6c812e5aebduj] bhttps://api.github.com/repos/palantir/atlasdb/git/commits/acdd8b440cf16a635a7163ab8e533e4576073ab9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkfiwKCRBK7hj4Ov3rIwAAchQIAHvsUkvnWUbmU1igjC9VVN/o
OOBo4Sh8jtG113oQUuGyhap78yzMYcLr+8HUIPxFB/9iFfqUu6CJlvd8iehG2tVO
XdZ5rSDz1gEWedZozIoC6yoz3djr+9An6nylODyCdy0OzGvfqWFtWS8naGCf94mL
3QsZkospG5faf1RoDPcVZrhCUBGsUDyFzU4nbxZARBBLc5uHJTfohTtx0foadxP5
otkNpsEjndsnAcEEjPS8IKCZWz4MN7SuXc7WT1RGrRzaJOw7EPVoZJH1gTvGE8g/
M9iJMOdVfAcF9AAQmdwzcm7+8MqVNCZDLCxZnzBJ3LOUwNO0OwoeSAGRDhxSBSc=
=NZ4w
-----END PGP SIGNATURE-----
payloadX
  tree 0f05b125b1839dce7bd00779ea5cd6c812e5aebd
parent 33865f731778e813c41aa03b24eae93de88fdc59
author Alex Landau <alandau@cs.stanford.edu> 1685990410 -0700
committer GitHub <noreply@github.com> 1685990410 +0000

Upgrade sqlite-jdbc from 3.36.0 to 3.42.0.0 (#6600)

 uuj] ^https://api.github.com/repos/palantir/atlasdb/commits/acdd8b440cf16a635a7163ab8e533e4576073ab9html_urlShttps://github.com/palantir/atlasdb/commit/acdd8b440cf16a635a7163ab8e533e4576073ab9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/acdd8b440cf16a635a7163ab8e533e4576073ab9/commentsj] }(login
AlexLandauidJ{W j] MDQ6VXNlcjU3MzMzNDY=
avatar_url3https://avatars.githubusercontent.com/u/5733346?v=4gravatar_idh5j] 'https://api.github.com/users/AlexLandauj] https://github.com/AlexLandau
followers_url1https://api.github.com/users/AlexLandau/followers
following_url>https://api.github.com/users/AlexLandau/following{/other_user}	gists_url7https://api.github.com/users/AlexLandau/gists{/gist_id}starred_url>https://api.github.com/users/AlexLandau/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/AlexLandau/subscriptionsorganizations_url,https://api.github.com/users/AlexLandau/orgs	repos_url-https://api.github.com/users/AlexLandau/repos
events_url8https://api.github.com/users/AlexLandau/events{/privacy}received_events_url7https://api.github.com/users/AlexLandau/received_eventstypeUser
site_adminuj] }(j] web-flowj] J/j] MDQ6VXNlcjE5ODY0NDQ3j] 4https://avatars.githubusercontent.com/u/19864447?v=4j] h5j] %https://api.github.com/users/web-flowj] https://github.com/web-flowj] /https://api.github.com/users/web-flow/followersj] <https://api.github.com/users/web-flow/following{/other_user}j] 5https://api.github.com/users/web-flow/gists{/gist_id}j] <https://api.github.com/users/web-flow/starred{/owner}{/repo}j] 3https://api.github.com/users/web-flow/subscriptionsj] *https://api.github.com/users/web-flow/orgsj] +https://api.github.com/users/web-flow/reposj] 6https://api.github.com/users/web-flow/events{/privacy}j] 5https://api.github.com/users/web-flow/received_eventsj] Userj] uparents]}(j] (33865f731778e813c41aa03b24eae93de88fdc59j] ^https://api.github.com/repos/palantir/atlasdb/commits/33865f731778e813c41aa03b24eae93de88fdc59j] Shttps://github.com/palantir/atlasdb/commit/33865f731778e813c41aa03b24eae93de88fdc59uastats}(totalK	additionsK	deletionsKufiles](}(j] (2ca2d06a87f80d36d91dc297b011ed76b75b7af2filename
versions.lockstatusmodifiedj^ Kj^ KchangesKblob_url_https://github.com/palantir/atlasdb/blob/acdd8b440cf16a635a7163ab8e533e4576073ab9/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/acdd8b440cf16a635a7163ab8e533e4576073ab9/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=acdd8b440cf16a635a7163ab8e533e4576073ab9patchX  @@ -312,7 +312,7 @@ org.slf4j:log4j-over-slf4j:1.7.36 (3 constraints: 492febed)
 org.slf4j:slf4j-api:1.7.36 (44 constraints: 8180995b)
 org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
 org.wildfly.common:wildfly-common:1.6.0.Final (4 constraints: 3f390b3d)
-org.xerial:sqlite-jdbc:3.36.0 (1 constraints: 3e054f3b)
+org.xerial:sqlite-jdbc:3.42.0.0 (1 constraints: 99054946)
 org.xerial.snappy:snappy-java:1.1.8 (2 constraints: 011529cb)
 org.yaml:snakeyaml:1.33 (5 constraints: 0a4c5570)
 u}(j] (46803d60bac01d23eb7310c59fc295cb01df7f2bj^ versions.propsj^ modifiedj^ Kj^ Kj^ Kj^ `https://github.com/palantir/atlasdb/blob/acdd8b440cf16a635a7163ab8e533e4576073ab9/versions.propsj^ _https://github.com/palantir/atlasdb/raw/acdd8b440cf16a635a7163ab8e533e4576073ab9/versions.propsj^ rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=acdd8b440cf16a635a7163ab8e533e4576073ab9j^ X"  @@ -79,7 +79,7 @@ org.rocksdb:rocksdbjni = 7.9.2
 org.slf4j:* = 1.7.36
 org.wildfly.common:wildfly-common = 1.6.0.Final
 org.xerial.snappy:snappy-java = 1.1.8
-org.xerial:sqlite-jdbc = 3.36.0
+org.xerial:sqlite-jdbc = 3.42.0.0
 org.yaml:snakeyaml = 1.33
 uk.org.lidalia:slf4j-test = 1.1.0
 ueu(98e0d627d236ba7d3dc11580076413fde2c88681}(sha(98e0d627d236ba7d3dc11580076413fde2c88681node_idEC_kwDOAjP5fdoAKDk4ZTBkNjI3ZDIzNmJhN2QzZGMxMTU4MDA3NjQxM2ZkZTJjODg2ODEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-03T09:45:52Zu	committer}(j0^ 
Sam Kramerj2^ skramer@palantir.comj4^ 2023-05-03T09:45:52Zumessageclarify commenttree}(j(^ (541f232595eaf2d706874f7d3e4571ee164cb546url`https://api.github.com/repos/palantir/atlasdb/git/trees/541f232595eaf2d706874f7d3e4571ee164cb546uj@^ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/98e0d627d236ba7d3dc11580076413fde2c88681
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRSLVAACgkQmPPOpKR4
XS07lAf8CEnbLA/o+7Wv0NQ9htt2DOiJsAGph6caqNojaVw/iw/Lmvy1ioCFmMtC
oBSq6WArrMPCV5I6/DBpC7JRjIGPfepkxnyG8Anzz22deDpVSJk33Jaskz2hC0WA
elkhuzE8RA8MZPj1hg3hEZIBXT507E9sk3nHla418qSKclpMoBvNrIMhpq6TwVV8
del9/jXj3cSBz86FGXVKTLi/fJaiaPuyMJ1CHhmWP/BwBgfHhaVNeLX++8ZymxW8
WXs26flLwRIcfaT2Dw8Qu06ODt8okBeHpzuEmdkHC5ZbDpi0w6uxwSMgrW7xD/1x
KYIjdBKoU8AE8+9MYA8S3iTx6Qabag==
=qc4E
-----END PGP SIGNATURE-----payloadtree 541f232595eaf2d706874f7d3e4571ee164cb546
parent e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806
author Sam Kramer <skramer@palantir.com> 1683107152 +0100
committer Sam Kramer <skramer@palantir.com> 1683107152 +0100

clarify comment
uuj@^ ^https://api.github.com/repos/palantir/atlasdb/commits/98e0d627d236ba7d3dc11580076413fde2c88681html_urlShttps://github.com/palantir/atlasdb/commit/98e0d627d236ba7d3dc11580076413fde2c88681comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/98e0d627d236ba7d3dc11580076413fde2c88681/commentsj.^ }(login
Sam-KrameridJ^2_ j*^ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j@^ 'https://api.github.com/users/Sam-KramerjN^ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj6^ }(jS^ 
Sam-KramerjU^ J^2_ j*^ MDQ6VXNlcjYyMzg4MTQ=jW^ 3https://avatars.githubusercontent.com/u/6238814?v=4jY^ h5j@^ 'https://api.github.com/users/Sam-KramerjN^ https://github.com/Sam-Kramerj\^ 1https://api.github.com/users/Sam-Kramer/followersj^^ >https://api.github.com/users/Sam-Kramer/following{/other_user}j`^ 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jb^ >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jd^ 5https://api.github.com/users/Sam-Kramer/subscriptionsjf^ ,https://api.github.com/users/Sam-Kramer/orgsjh^ -https://api.github.com/users/Sam-Kramer/reposjj^ 8https://api.github.com/users/Sam-Kramer/events{/privacy}jl^ 7https://api.github.com/users/Sam-Kramer/received_eventsjn^ Userjp^ uparents]}(j(^ (e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806j@^ ^https://api.github.com/repos/palantir/atlasdb/commits/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806jN^ Shttps://github.com/palantir/atlasdb/commit/e956aeb0310dfe6b30eeac7c2b18ac8f9e82b806uastats}(totalK	additionsK	deletionsKufiles]}(j(^ (7a7e96879c9d029ece4e0cb9922a515234507665filenameKatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/Buggify.javastatusmodifiedj^ Kj^ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/98e0d627d236ba7d3dc11580076413fde2c88681/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaraw_urlhttps://github.com/palantir/atlasdb/raw/98e0d627d236ba7d3dc11580076413fde2c88681/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.java?ref=98e0d627d236ba7d3dc11580076413fde2c88681patchX  @@ -31,10 +31,7 @@ public interface Buggify {
 
     /**
      * Returns true if this instance of buggify would perform an action if {@link #run Run} would execute the
-     * provided runnable. This is useful if you
-     * wish to
-     * produce
-     * a boolean that will be skewed towards true or false (i.e. not 50%).
+     * provided runnable. This is useful if you wish to produce a boolean that will be skewed towards true or false.
      */
     boolean asBoolean();
 }uau(3b6123f32166d2b353f32f0fe540a012f51fbcaf}(sha(3b6123f32166d2b353f32f0fe540a012f51fbcafnode_idEC_kwDOAjP5fdoAKDNiNjEyM2YzMjE2NmQyYjM1M2YzMmYwZmU1NDBhMDEyZjUxZmJjYWYcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-05-18T16:43:06Zu	committer}(j^ 
svc-changelogj^ svc-changelog@palantir.comj^ 2023-05-18T16:43:06ZumessageAdd generated changelog entriestree}(j^ (eb873dbc23077209cf3b3afa305fbfb1d35fa89eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/eb873dbc23077209cf3b3afa305fbfb1d35fa89euj^ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3b6123f32166d2b353f32f0fe540a012f51fbcaf
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmRmVZoJEHYaJX37fAFQAABTrwD/QkGA5dXsWdD6wNJdqOe6IHSD
Y9jgFAHGZoQ8/qR5ZzAA/RX4NfJPQ9dRjismzWzEHi5eiZv3m7jfkczlMFxt96AO
=5m75
-----END PGP SIGNATURE-----payloadX  tree eb873dbc23077209cf3b3afa305fbfb1d35fa89e
parent 27da2621b362ed817117f1d8fb6c70da7fe9fe93
author svc-changelog <svc-changelog@palantir.com> 1684428186 +0000
committer svc-changelog <svc-changelog@palantir.com> 1684428186 +0000

Add generated changelog entriesuuj^ ^https://api.github.com/repos/palantir/atlasdb/commits/3b6123f32166d2b353f32f0fe540a012f51fbcafhtml_urlShttps://github.com/palantir/atlasdb/commit/3b6123f32166d2b353f32f0fe540a012f51fbcafcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3b6123f32166d2b353f32f0fe540a012f51fbcaf/commentsj^ }(login
svc-changelogidJ#j^ MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j^ *https://api.github.com/users/svc-changelogj^  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj^ }(j^ 
svc-changelogj^ J#j^ MDQ6VXNlcjg0MDc3NjAzj^ 4https://avatars.githubusercontent.com/u/84077603?v=4j^ h5j^ *https://api.github.com/users/svc-changelogj^  https://github.com/svc-changelogj^ 4https://api.github.com/users/svc-changelog/followersj^ Ahttps://api.github.com/users/svc-changelog/following{/other_user}j^ :https://api.github.com/users/svc-changelog/gists{/gist_id}j^ Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j^ 8https://api.github.com/users/svc-changelog/subscriptionsj^ /https://api.github.com/users/svc-changelog/orgsj^ 0https://api.github.com/users/svc-changelog/reposj^ ;https://api.github.com/users/svc-changelog/events{/privacy}j^ :https://api.github.com/users/svc-changelog/received_eventsj^ Userj^ uparents]}(j^ (27da2621b362ed817117f1d8fb6c70da7fe9fe93j^ ^https://api.github.com/repos/palantir/atlasdb/commits/27da2621b362ed817117f1d8fb6c70da7fe9fe93j^ Shttps://github.com/palantir/atlasdb/commit/27da2621b362ed817117f1d8fb6c70da7fe9fe93uastats}(totalK	additionsK	deletionsK ufiles]}(j^ (cc8b41318d17db1f892fc5ec26f90d1af877c1b2filename$changelog/@unreleased/pr-6571.v2.ymlstatusaddedj_ Kj_ K changesKblob_url|https://github.com/palantir/atlasdb/blob/3b6123f32166d2b353f32f0fe540a012f51fbcaf/changelog%2F%40unreleased%2Fpr-6571.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/3b6123f32166d2b353f32f0fe540a012f51fbcaf/changelog%2F%40unreleased%2Fpr-6571.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6571.v2.yml?ref=3b6123f32166d2b353f32f0fe540a012f51fbcafpatch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Generate StreamStore implementations with presized maps/sets
+  links:
+  - https://github.com/palantir/atlasdb/pull/6571uau(d25115cccad1cc4f0bf08d089d946eba166e892d}(sha(d25115cccad1cc4f0bf08d089d946eba166e892dnode_idEC_kwDOAjP5fdoAKGQyNTExNWNjY2FkMWNjNGYwYmYwOGQwODlkOTQ2ZWJhMTY2ZTg5MmQcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-04-04T13:15:31Zu	committer}(j_ GitHubj _ noreply@github.comj"_ 2023-04-04T13:15:31Zumessagedump transaction log by default for workload server (#6503)

Dump entire transaction log in the workload server after every execution.tree}(j_ (9f41d9e4cff773cc6431dcf40cfbc6116b302beburl`https://api.github.com/repos/palantir/atlasdb/git/trees/9f41d9e4cff773cc6431dcf40cfbc6116b302bebuj._ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d25115cccad1cc4f0bf08d089d946eba166e892d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkLCLzCRBK7hj4Ov3rIwAAzvIIAGTrDD8JMwAUOmEVJFELvsU/
CDOCMEGKQWwObg7t2lt7hA7R+qimur6GN6wyTtw3aBdOqd7zDt/Ov1U2c3q5M4RQ
2BpVdtm0IJjIW9OOi6qIepnkBcxM8orbU7Ed3bi2u0BAsJJjalsGYC52X7L4yyNX
qbk+O+3hk/9lY5Cdf5D2xtfuOkQlz/85ZktFQrHIx/gMLyJqLfQ1t/7PXP+xYXbY
L8XzHrNLTeJQcn7HODGEILLpO6leBmltx+eC18bbJWuMNCqEWnV3OQwMKtgv59Hy
P9zt+eGGkQG3+l6Cb5bWcOx4NlL8cS+YS6jrwCIlao6QUoJnSRNWrSpE07wSDOA=
=5HMg
-----END PGP SIGNATURE-----
payloadXY  tree 9f41d9e4cff773cc6431dcf40cfbc6116b302beb
parent c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263
author Sam-Kramer <sam.c.kramer@gmail.com> 1680614131 +0100
committer GitHub <noreply@github.com> 1680614131 +0000

dump transaction log by default for workload server (#6503)

Dump entire transaction log in the workload server after every execution.
uuj._ ^https://api.github.com/repos/palantir/atlasdb/commits/d25115cccad1cc4f0bf08d089d946eba166e892dhtml_urlShttps://github.com/palantir/atlasdb/commit/d25115cccad1cc4f0bf08d089d946eba166e892dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d25115cccad1cc4f0bf08d089d946eba166e892d/commentsj_ }(login
Sam-KrameridJ^2_ j_ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j._ 'https://api.github.com/users/Sam-Kramerj<_ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj$_ }(jA_ web-flowjC_ J/j_ MDQ6VXNlcjE5ODY0NDQ3jE_ 4https://avatars.githubusercontent.com/u/19864447?v=4jG_ 6      h5j._ %https://api.github.com/users/web-flowj<_ https://github.com/web-flowjJ_ /https://api.github.com/users/web-flow/followersjL_ <https://api.github.com/users/web-flow/following{/other_user}jN_ 5https://api.github.com/users/web-flow/gists{/gist_id}jP_ <https://api.github.com/users/web-flow/starred{/owner}{/repo}jR_ 3https://api.github.com/users/web-flow/subscriptionsjT_ *https://api.github.com/users/web-flow/orgsjV_ +https://api.github.com/users/web-flow/reposjX_ 6https://api.github.com/users/web-flow/events{/privacy}jZ_ 5https://api.github.com/users/web-flow/received_eventsj\_ Userj^_ uparents]}(j_ (c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263j._ ^https://api.github.com/repos/palantir/atlasdb/commits/c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263j<_ Shttps://github.com/palantir/atlasdb/commit/c7b274fdb5ad2b86c86cce4e5fa6a83c9ee76263uastats}(totalK	additionsK	deletionsK ufiles](}(j_ (b4ee017980d3bf2f40b872865df3d113ba69f56bfilenamegatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RunOnceWorkflowRunner.javastatusmodifiedjx_ Kjy_ K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/d25115cccad1cc4f0bf08d089d946eba166e892d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRunOnceWorkflowRunner.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d25115cccad1cc4f0bf08d089d946eba166e892d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRunOnceWorkflowRunner.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRunOnceWorkflowRunner.java?ref=d25115cccad1cc4f0bf08d089d946eba166e892dpatchXy  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
@@ -36,5 +37,6 @@ public void run(Workflow workflow, List<InvariantReporter<?>> invariants) {
                 log.error("Caught an exception when running and reporting an invariant.", e);
             }
         });
+        log.info("Dumping transaction log {}", SafeArg.of("transactionLog", workflowHistory.history()));
     }
 }u}(j_ (f9527e173d1407deb811ea00448699afa0a4afd1j~_ iatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/server/RunOnceWorkflowRunnerTest.javaj_ modifiedjx_ Kjy_ K j_ Kj_ https://github.com/palantir/atlasdb/blob/d25115cccad1cc4f0bf08d089d946eba166e892d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.javaj_ https://github.com/palantir/atlasdb/raw/d25115cccad1cc4f0bf08d089d946eba166e892d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.javaj_ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fserver%2FRunOnceWorkflowRunnerTest.java?ref=d25115cccad1cc4f0bf08d089d946eba166e892dj_ X  @@ -20,17 +20,21 @@
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
 import com.palantir.atlasdb.workload.workflow.RunOnceWorkflowRunner;
 import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import java.util.List;
 import org.junit.Test;
 
 public class RunOnceWorkflowRunnerTest {
     @Test
     public void runExecutesWorkflowsAndInvokesInvariantReporter() {
         Workflow exampleWorkflow = mock(Workflow.class);
+        WorkflowHistory workflowHistory = mock(WorkflowHistory.class);
+        when(exampleWorkflow.run()).thenReturn(workflowHistory);
         InvariantReporter<Void> exampleInvariantReporterOne = mock(InvariantReporter.class);
         InvariantReporter<Void> exampleInvariantReporterTwo = mock(InvariantReporter.class);
         RunOnceWorkflowRunner.INSTANCE.run(ueu(cbdf756cd2d80b5e718c6df81574db2d09efcb78}(sha(cbdf756cd2d80b5e718c6df81574db2d09efcb78node_idEC_kwDOAjP5fdoAKGNiZGY3NTZjZDJkODBiNWU3MThjNmRmODE1NzRkYjJkMDllZmNiNzgcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-06-14T03:43:20Zu	committer}(j_ svc-excavator-botj_ svc-excavator-bot@palantir.comj_ 2023-06-14T03:43:20Zumessage,Excavator:  Upgrade buildscript dependenciestree}(j_ (79725b995447a74cfd599d08262640d220f00962url`https://api.github.com/repos/palantir/atlasdb/git/trees/79725b995447a74cfd599d08262640d220f00962uj_ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cbdf756cd2d80b5e718c6df81574db2d09efcb78
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmSJN1gJEMmvEkpISILgAABkQwEAx2xgj9Z9xxm48RBD+PIGBQCV
kON+si9Z/Ji+JjVJDsYBAKSCZJ7mjYU3A2s5nJQ/Z64FfQ+qeZW8Z9RgqDFvMHO3
=9lAU
-----END PGP SIGNATURE-----
payloadX$  tree 79725b995447a74cfd599d08262640d220f00962
parent 8d65a011e35cfff9bbdb38ad706cc252b977467b
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1686714200 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1686714200 +0000

Excavator:  Upgrade buildscript dependenciesuuj_ ^https://api.github.com/repos/palantir/atlasdb/commits/cbdf756cd2d80b5e718c6df81574db2d09efcb78html_urlShttps://github.com/palantir/atlasdb/commit/cbdf756cd2d80b5e718c6df81574db2d09efcb78comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cbdf756cd2d80b5e718c6df81574db2d09efcb78/commentsj_ }(loginsvc-excavator-botidJj_ MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j_ .https://api.github.com/users/svc-excavator-botj_ $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj_ }(j_ svc-excavator-botj_ Jj_ MDQ6VXNlcjMzMjY2MzY4j_ 4https://avatars.githubusercontent.com/u/33266368?v=4j_ h5j_ .https://api.github.com/users/svc-excavator-botj_ $https://github.com/svc-excavator-botj_ 8https://api.github.com/users/svc-excavator-bot/followersj_ Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}j_ >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}j_ Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}j_ <https://api.github.com/users/svc-excavator-bot/subscriptionsj_ 3https://api.github.com/users/svc-excavator-bot/orgsj_ 4https://api.github.com/users/svc-excavator-bot/reposj_ ?https://api.github.com/users/svc-excavator-bot/events{/privacy}j_ >https://api.github.com/users/svc-excavator-bot/received_eventsj_ Userj_ uparents]}(j_ (8d65a011e35cfff9bbdb38ad706cc252b977467bj_ ^https://api.github.com/repos/palantir/atlasdb/commits/8d65a011e35cfff9bbdb38ad706cc252b977467bj_ Shttps://github.com/palantir/atlasdb/commit/8d65a011e35cfff9bbdb38ad706cc252b977467buastats}(totalK	additionsK	deletionsKufiles]}(j_ (3f63668e44dfa8c4d83a25f3dfa75c1477da857efilenamebuild.gradlestatusmodifiedj_ Kj_ KchangesKblob_url^https://github.com/palantir/atlasdb/blob/cbdf756cd2d80b5e718c6df81574db2d09efcb78/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/cbdf756cd2d80b5e718c6df81574db2d09efcb78/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=cbdf756cd2d80b5e718c6df81574db2d09efcb78patchX  @@ -7,10 +7,10 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.0'
-        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.2.0'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.4'
+        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.3.0'
         classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.38.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.39.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
@@ -20,7 +20,7 @@ buildscript {
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
-        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'
+        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.3'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
         classpath 'gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1'
         classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'uau(a95172b3fa4548d7776eacfa8bc116e8ac47bee1}(sha(a95172b3fa4548d7776eacfa8bc116e8ac47bee1node_idEC_kwDOAjP5fdoAKGE5NTE3MmIzZmE0NTQ4ZDc3NzZlYWNmYThiYzExNmU4YWM0N2JlZTEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-07T19:12:06Zu	committer}(j` Jeremy Kongj` jkong@palantir.comj` 2023-06-07T19:12:06Zumessageoktree}(j` (f0425d49e450d43edd30f51b31feacb4287ec49burl`https://api.github.com/repos/palantir/atlasdb/git/trees/f0425d49e450d43edd30f51b31feacb4287ec49buj$` bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a95172b3fa4548d7776eacfa8bc116e8ac47bee1
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSA1oYACgkQTLdFKain
zjzMCgf/ffr18n+j7f9SGncUnSAQGYKGsPwW8ddxts5q1hM0WVZyyfT4pAzKoRug
m12DsXKFWCVFSZlSuDC+/hkvUpLkAD4sdHqSUTyM8lg+b6gCaxNL6Irdfh2nuEqq
4uyHiIn04y9CTvkJaf61xVqL/sbSpQmAx36Ayown20t+rcA7rhGN2ELE665dWvId
gfkg6BDvAGto8MKomW2dhVy+dR3h3YJ4YHN6zNta5ogQOqAWBQrjfhR4FNhxvkOU
6ljLZ1yU4RGK6v5noGpIz0hg/1g2Slv3Bxamzd98O2vuxlgrh66q+FqNe4SagLIh
I2SIdu/kV42UyiI6SgvZyBsc5bJsjA==
=kCZy
-----END PGP SIGNATURE-----payloadtree f0425d49e450d43edd30f51b31feacb4287ec49b
parent 075bc511bd1d5460118ec0f8a1896314492b80c3
author Jeremy Kong <jkong@palantir.com> 1686165126 +0100
committer Jeremy Kong <jkong@palantir.com> 1686165126 +0100

ok
uuj$` ^https://api.github.com/repos/palantir/atlasdb/commits/a95172b3fa4548d7776eacfa8bc116e8ac47bee1html_urlShttps://github.com/palantir/atlasdb/commit/a95172b3fa4548d7776eacfa8bc116e8ac47bee1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a95172b3fa4548d7776eacfa8bc116e8ac47bee1/commentsj` }(login
jeremyk-91idJZ j` MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j$` 'https://api.github.com/users/jeremyk-91j2` https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj` }(j7` 
jeremyk-91j9` JZ j` MDQ6VXNlcjU5NTU1MTA=j;` 3https://avatars.githubusercontent.com/u/5955510?v=4j=` h5j$` 'https://api.github.com/users/jeremyk-91j2` https://github.com/jeremyk-91j@` 1https://api.github.com/users/jeremyk-91/followersjB` >https://api.github.com/users/jeremyk-91/following{/other_user}jD` 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jF` >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jH` 5https://api.github.com/users/jeremyk-91/subscriptionsjJ` ,https://api.github.com/users/jeremyk-91/orgsjL` -https://api.github.com/users/jeremyk-91/reposjN` 8https://api.github.com/users/jeremyk-91/events{/privacy}jP` 7https://api.github.com/users/jeremyk-91/received_eventsjR` UserjT` uparents]}(j` (075bc511bd1d5460118ec0f8a1896314492b80c3j$` ^https://api.github.com/repos/palantir/atlasdb/commits/075bc511bd1d5460118ec0f8a1896314492b80c3j2` Shttps://github.com/palantir/atlasdb/commit/075bc511bd1d5460118ec0f8a1896314492b80c3uastats}(totalM-	additionsK	deletionsKBufiles](}(j` (315bfe3772c300d654ed462189ec3514f4d8d509filenamematlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelection.javastatusmodifiedjn` K'jo` K$changesKKblob_urlhttps://github.com/palantir/atlasdb/blob/a95172b3fa4548d7776eacfa8bc116e8ac47bee1/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a95172b3fa4548d7776eacfa8bc116e8ac47bee1/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.java?ref=a95172b3fa4548d7776eacfa8bc116e8ac47bee1patchX  @@ -16,51 +16,54 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.google.common.collect.Range;
-import com.palantir.logsafe.Preconditions;
-import com.palantir.logsafe.SafeArg;
 import java.util.Optional;
-import org.immutables.value.Value;
 
-@Value.Immutable
-public interface ColumnRangeSelection {
-    Optional<Integer> startColumnInclusive();
+public final class ColumnRangeSelection {
+    private final RangeSlice rangeSlice;
 
-    Optional<Integer> endColumnExclusive();
+    public ColumnRangeSelection(RangeSlice rangeSlice) {
+        this.rangeSlice = rangeSlice;
+    }
 
-    default boolean contains(int column) {
-        return asGuavaRange().contains(column);
+    public Optional<Integer> startColumnInclusive() {
+        return rangeSlice.startInclusive();
     }
 
-    default Range<Integer> asGuavaRange() {
-        if (startColumnInclusive().isEmpty()) {
-            if (endColumnExclusive().isEmpty()) {
-                return Range.all();
-            } else {
-                return Range.lessThan(endColumnExclusive().get());
-            }
-        } else {
-            if (endColumnExclusive().isEmpty()) {
-                return Range.atLeast(startColumnInclusive().get());
-            } else {
-                return Range.closedOpen(
-                        startColumnInclusive().get(), endColumnExclusive().get());
-            }
-        }
+    public Optional<Integer> endColumnExclusive() {
+        return rangeSlice.endExclusive();
+    }
+
+    public boolean contains(int column) {
+        return rangeSlice.contains(column);
     }
 
-    @Value.Check
-    default void check() {
-        Preconditions.checkState(
-                startColumnInclusive().isEmpty()
-                        || endColumnExclusive().isEmpty()
-                        || startColumnInclusive().get() <= endColumnExclusive().get(),
-                "Start column must be less than or equal to end column",
-                SafeArg.of("startColumnInclusive", startColumnInclusive()),
-                SafeArg.of("endColumnExclusive", endColumnExclusive()));
+    public static ColumnRangeSelection.Builder builder() {
+        return new Builder();
     }
 
-    static ImmutableColumnRangeSelection.Builder builder() {
-        return ImmutableColumnRangeSelection.builder();
+    public static final class Builder {
+        private Optional<Integer> startColumnInclusive = Optional.empty();
+        private Optional<Integer> endColumnExclusive = Optional.empty();
+
+        private Builder() {
+            // Use the static factory method
+        }
+
+        public Builder startColumnInclusive(int startColumnInclusive) {
+            this.startColumnInclusive = Optional.of(startColumnInclusive);
+            return this;
+        }
+
+        public Builder endColumnExclusive(int endColumnExclusive) {
+            this.endColumnExclusive = Optional.of(endColumnExclusive);
+            return this;
+        }
+
+        public ColumnRangeSelection build() {
+            return new ColumnRangeSelection(ImmutableRangeSlice.builder()
+                    .startInclusive(startColumnInclusive)
+                    .endExclusive(endColumnExclusive)
+                    .build());
+        }
     }
 }u}(j` (92c45d98aabce7b72a71789054f1a4c89158a2d5jt` catlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RangeSlice.javajv` addedjn` KBjo` K jx` KBjy` https://github.com/palantir/atlasdb/blob/a95172b3fa4548d7776eacfa8bc116e8ac47bee1/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeSlice.javaj{` https://github.com/palantir/atlasdb/raw/a95172b3fa4548d7776eacfa8bc116e8ac47bee1/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeSlice.javaj}` https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeSlice.java?ref=a95172b3fa4548d7776eacfa8bc116e8ac47bee1j` X  @@ -0,0 +1,66 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.google.common.collect.Range;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface RangeSlice {
+    Optional<Integer> startInclusive();
+
+    Optional<Integer> endExclusive();
+
+    default boolean contains(int column) {
+        return asGuavaRange().contains(column);
+    }
+
+    default Range<Integer> asGuavaRange() {
+        if (startInclusive().isEmpty()) {
+            if (endExclusive().isEmpty()) {
+                return Range.all();
+            } else {
+                return Range.lessThan(endExclusive().get());
+            }
+        } else {
+            if (endExclusive().isEmpty()) {
+                return Range.atLeast(startInclusive().get());
+            } else {
+                return Range.closedOpen(
+                        startInclusive().get(), endExclusive().get());
+            }
+        }
+    }
+
+    @Value.Check
+    default void check() {
+        Preconditions.checkState(
+                startInclusive().isEmpty()
+                        || endExclusive().isEmpty()
+                        || startInclusive().get() <= endExclusive().get(),
+                "Start must be less than or equal to end",
+                SafeArg.of("startInclusive", startInclusive()),
+                SafeArg.of("endExclusive", endExclusive()));
+    }
+
+    static ImmutableRangeSlice.Builder builder() {
+        return ImmutableRangeSlice.builder();
+    }
+}u}(j` (99380b95cc0d6cfa0dcaf24b9bef7148cfdf4626jt` vatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowRangeReadTransactionAction.javajv` addedjn` K-jo` K jx` K-jy` https://github.com/palantir/atlasdb/blob/a95172b3fa4548d7776eacfa8bc116e8ac47bee1/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowRangeReadTransactionAction.javaj{` https://github.com/palantir/atlasdb/raw/a95172b3fa4548d7776eacfa8bc116e8ac47bee1/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowRangeReadTransactionAction.javaj}` https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowRangeReadTransactionAction.java?ref=a95172b3fa4548d7776eacfa8bc116e8ac47bee1j` X0  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import java.util.Optional;
+import java.util.SortedSet;
+import org.immutables.value.Value;
+
+/**
+ * This transaction action models a row range scan in AtlasDB ("getRange" in the AtlasDB API).
+ * <p>
+ * In the interest of implementation simplicity, one significant simplification is made: values read from getRanges
+ * are accessed in batches through a live iterator, while for purposes of gathering a witness, we immediately drain the
+ * iterator and use the set of cells read as the witness to this action.
+ */
+@Value.Immutable
+public interface RowRangeReadTransactionAction extends TransactionAction {
+    String table();
+
+    RangeSlice rowsToRead();
+
+    SortedSet<Integer> columns();
+
+    boolean reverse();
+
+
+    @Override
+    default <T> T accept(TransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+}u}(j` (54a631bb264a84e5f30a2b2fecafee0cd81235bcjt` qatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionActionVisitor.javajv` modifiedjn` Kjo` K jx` Kjy` https://github.com/palantir/atlasdb/blob/a95172b3fa4548d7776eacfa8bc116e8ac47bee1/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj{` https://github.com/palantir/atlasdb/raw/a95172b3fa4548d7776eacfa8bc116e8ac47bee1/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj}` https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.java?ref=a95172b3fa4548d7776eacfa8bc116e8ac47bee1j` X(  @@ -24,4 +24,6 @@ public interface TransactionActionVisitor<T> {
     T visit(DeleteTransactionAction deleteTransactionAction);
 
     T visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction);
+
+    T visit(RowRangeReadTransactionAction rowRangeReadTransactionAction);
 }u}(j` (a69c80778210f3d1c469d9f277a1f7448598c1b3jt` atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowRangeReadTransactionAction.javajv` addedjn` K&jo` K jx` K&jy` https://github.com/palantir/atlasdb/blob/a95172b3fa4548d7776eacfa8bc116e8ac47bee1/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowRangeReadTransactionAction.javaj{` https://github.com/palantir/atlasdb/raw/a95172b3fa4548d7776eacfa8bc116e8ac47bee1/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowRangeReadTransactionAction.javaj}` X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowRangeReadTransactionAction.java?ref=a95172b3fa4548d7776eacfa8bc116e8ac47bee1j` X  @@ -0,0 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.google.common.collect.Multimap;
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.RowRangeReadTransactionAction;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WitnessedRowRangeReadTransactionAction extends WitnessedTransactionAction {
+    RowRangeReadTransactionAction originalQuery();
+
+    Multimap<Integer, ColumnValue> result();
+
+    @Override
+    default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+//    static ImmutableWitnessedRowReadTransactionAction.Builder builder() {
+//        return ImmutableWitnessedRowReadTransactionAction.builder();
+//    }
+}u}(j` (848ac387e679ac8c6bb91d5350e4035c984c2cd1jt` atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionActionVisitor.javajv` modifiedjn` Kjo` K jx` Kjy` https://github.com/palantir/atlasdb/blob/a95172b3fa4548d7776eacfa8bc116e8ac47bee1/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj{` https://github.com/palantir/atlasdb/raw/a95172b3fa4548d7776eacfa8bc116e8ac47bee1/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj}` https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.java?ref=a95172b3fa4548d7776eacfa8bc116e8ac47bee1j` XG  @@ -24,4 +24,6 @@ public interface WitnessedTransactionActionVisitor<T> {
     T visit(WitnessedDeleteTransactionAction deleteTransactionAction);
 
     T visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction);
+
+    T visit(WitnessedRowRangeReadTransactionAction rowReadTransactionAction);
 }u}(j` (7388f1087346ab4c45d45019a5a98500d0e01b9bjt` gatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/RangeSliceTest.javajv` renamedjn` Kjo` Kjx` K:jy` https://github.com/palantir/atlasdb/blob/a95172b3fa4548d7776eacfa8bc116e8ac47bee1/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeSliceTest.javaj{` https://github.com/palantir/atlasdb/raw/a95172b3fa4548d7776eacfa8bc116e8ac47bee1/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeSliceTest.javaj}` https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRangeSliceTest.java?ref=a95172b3fa4548d7776eacfa8bc116e8ac47bee1j` X  @@ -24,25 +24,25 @@
 import java.util.Optional;
 import org.junit.Test;
 
-public class ColumnRangeSelectionTest {
+public class RangeSliceTest {
     @Test
     public void cannotCreateRangeWithStartColumnGreaterThanEndColumn() {
-        assertThatLoggableExceptionThrownBy(() -> ColumnRangeSelection.builder()
-                        .startColumnInclusive(5)
-                        .endColumnExclusive(4)
-                        .build())
+        assertThatLoggableExceptionThrownBy(() -> RangeSlice.builder()
+                .startInclusive(5)
+                .endExclusive(4)
+                .build())
                 .isInstanceOf(SafeIllegalStateException.class)
-                .hasMessageContaining("Start column must be less than or equal to end column")
+                .hasMessageContaining("Start must be less than or equal to end")
                 .hasExactlyArgs(
-                        SafeArg.of("startColumnInclusive", Optional.of(5)),
-                        SafeArg.of("endColumnExclusive", Optional.of(4)));
+                        SafeArg.of("startInclusive", Optional.of(5)),
+                        SafeArg.of("endExclusive", Optional.of(4)));
     }
 
     @Test
     public void emptyRangeDoesNotContainAnyElements() {
-        ColumnRangeSelection emptyRange = ColumnRangeSelection.builder()
-                .startColumnInclusive(6)
-                .endColumnExclusive(6)
+        RangeSlice emptyRange = RangeSlice.builder()
+                .startInclusive(6)
+                .endExclusive(6)
                 .build();
         assertThat(emptyRange.contains(5)).isFalse();
         assertThat(emptyRange.contains(6)).isFalse();
@@ -53,9 +53,9 @@ public void emptyRangeDoesNotContainAnyElements() {
 
     @Test
     public void singleElementRangeContainsJustItself() {
-        ColumnRangeSelection justSeven = ColumnRangeSelection.builder()
-                .startColumnInclusive(7)
-                .endColumnExclusive(8)
+        RangeSlice justSeven = RangeSlice.builder()
+                .startInclusive(7)
+                .endExclusive(8)
                 .build();
         assertThat(justSeven.contains(6)).isFalse();
         assertThat(justSeven.contains(7)).isTrue();
@@ -66,7 +66,7 @@ public void singleElementRangeContainsJustItself() {
 
     @Test
     public void universalRangeContainsEverything() {
-        ColumnRangeSelection universal = ColumnRangeSelection.builder().build();
+        RangeSlice universal = RangeSlice.builder().build();
         assertThat(universal.contains(10241024)).isTrue();
         assertThat(universal.contains(-20482048)).isTrue();
         assertThat(universal.contains(40924092)).isTrue();
@@ -76,23 +76,23 @@ public void universalRangeContainsEverything() {
 
     @Test
     public void lowerBoundedRangesContainCorrectElements() {
-        ColumnRangeSelection universal =
-                ColumnRangeSelection.builder().startColumnInclusive(5).build();
-        assertThat(universal.contains(4)).isFalse();
-        assertThat(universal.contains(5)).isTrue();
-        assertThat(universal.contains(6)).isTrue();
-        assertThat(universal.contains(Integer.MIN_VALUE)).isFalse();
-        assertThat(universal.contains(Integer.MAX_VALUE)).isTrue();
+        RangeSlice fiveOrGreater =
+                RangeSlice.builder().startInclusive(5).build();
+        assertThat(fiveOrGreater.contains(4)).isFalse();
+        assertThat(fiveOrGreater.contains(5)).isTrue();
+        assertThat(fiveOrGreater.contains(6)).isTrue();
+        assertThat(fiveOrGreater.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(fiveOrGreater.contains(Integer.MAX_VALUE)).isTrue();
     }
 
     @Test
     public void upperBoundedRangesContainCorrectElements() {
-        ColumnRangeSelection universal =
-                ColumnRangeSelection.builder().endColumnExclusive(5).build();
-        assertThat(universal.contains(4)).isTrue();
-        assertThat(universal.contains(5)).isFalse();
-        assertThat(universal.contains(6)).isFalse();
-        assertThat(universal.contains(Integer.MIN_VALUE)).isTrue();
-        assertThat(universal.contains(Integer.MAX_VALUE)).isFalse();
+        RangeSlice lessThanFive =
+                RangeSlice.builder().endExclusive(5).build();
+        assertThat(lessThanFive.contains(4)).isTrue();
+        assertThat(lessThanFive.contains(5)).isFalse();
+        assertThat(lessThanFive.contains(6)).isFalse();
+        assertThat(lessThanFive.contains(Integer.MIN_VALUE)).isTrue();
+        assertThat(lessThanFive.contains(Integer.MAX_VALUE)).isFalse();
     }
 }previous_filenameqatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelectionTest.javau}(j` (017e9c46a46f87b9053acd0d9f5562031523bbadjt` fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javajv` modifiedjn` Kjo` K jx` Kjy` https://github.com/palantir/atlasdb/blob/a95172b3fa4548d7776eacfa8bc116e8ac47bee1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj{` https://github.com/palantir/atlasdb/raw/a95172b3fa4548d7776eacfa8bc116e8ac47bee1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj}` https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=a95172b3fa4548d7776eacfa8bc116e8ac47bee1j` X  @@ -27,6 +27,7 @@
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.RowRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.SingleCellReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
@@ -169,6 +170,12 @@ public Void visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransact
                     rowColumnRangeReadTransactionAction.columnRangeSelection());
             return null;
         }
+
+        @Override
+        public Void visit(RowRangeReadTransactionAction rowRangeReadTransactionAction) {
+            // TODO (jkong): Not implemented yet!
+            return null;
+        }
     }
 
     public static AtlasDbTransactionStore create(u}(j` (646f420b4938a9e3f0c7748b19869d6cd24c5866jt` katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javajv` modifiedjn` Kjo` Kjx` Kjy` https://github.com/palantir/atlasdb/blob/a95172b3fa4548d7776eacfa8bc116e8ac47bee1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj{` https://github.com/palantir/atlasdb/raw/a95172b3fa4548d7776eacfa8bc116e8ac47bee1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj}` https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=a95172b3fa4548d7776eacfa8bc116e8ac47bee1j` X  @@ -19,6 +19,7 @@
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 
@@ -42,7 +43,12 @@ public DeleteTransactionAction visit(WitnessedDeleteTransactionAction deleteTran
     }
 
     @Override
-    public TransactionAction visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+    public RowColumnRangeReadTransactionAction visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
         return rowColumnRangeReadTransactionAction.originalQuery();
     }
+
+    @Override
+    public RowRangeReadTransactionAction visit(WitnessedRowRangeReadTransactionAction rowReadTransactionAction) {
+        return rowReadTransactionAction.originalQuery();
+    }
 }ueu(f1de1b619c5f44e4597bdc5e56595c4823058c1f}(sha(f1de1b619c5f44e4597bdc5e56595c4823058c1fnode_idEC_kwDOAjP5fdoAKGYxZGUxYjYxOWM1ZjQ0ZTQ1OTdiZGM1ZTU2NTk1YzQ4MjMwNThjMWYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-08-10T10:13:15Zu	committer}(j` 
Sam Kramerj` skramer@palantir.comj` 2023-08-10T10:13:15Zumessagebank balance refactortree}(j` (941d64817eee9648cacdb011c521a03ceb3f5d7burl`https://api.github.com/repos/palantir/atlasdb/git/trees/941d64817eee9648cacdb011c521a03ceb3f5d7buj` bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f1de1b619c5f44e4597bdc5e56595c4823058c1f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmTUuDsACgkQmPPOpKR4
XS3xjAgAnGPd0p7zAqAQ9++RG+i/K/dItY8iGpHcAlVd1kT8US20ZHnQC8l4BWb5
zQNFL8n+fh3R5lZ0U/okpPDueSAbOEmluPrubrfa1Bq7UZKO2LySxcY1iBnKM/Kd
GKJ4Z+GtVTXu+KYfzaKdqqjZMkKX/PNv+Ul/MFnk8A73fABpu6SOhfnyPZvjH+u9
rW0oMSGtLCIUplAusB0aYfj3Q0d4ytO6u8IGZJf6dvlEQNeJts86Yc/a+fPZdH5n
X2HyPhuCKFpTxbJqDwAP5yRT+WoiMncZNDyjlWXvVFOLLt9ih5PRrV87vMJ6V30t
nkibILYNLL2rDQr1QVXD0RLjmgty9Q==
=u0/y
-----END PGP SIGNATURE-----payloadtree 941d64817eee9648cacdb011c521a03ceb3f5d7b
parent 99e2c16fb38f05280b1081eaa6e15da4fca051e9
author Sam Kramer <skramer@palantir.com> 1691662395 +0100
committer Sam Kramer <skramer@palantir.com> 1691662395 +0100

bank balance refactor
uuj` ^https://api.github.com/repos/palantir/atlasdb/commits/f1de1b619c5f44e4597bdc5e56595c4823058c1fhtml_urlShttps://github.com/palantir/atlasdb/commit/f1de1b619c5f44e4597bdc5e56595c4823058c1fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f1de1b619c5f44e4597bdc5e56595c4823058c1f/commentsj` }(login
Sam-KrameridJ^2_ j` MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j` 'https://api.github.com/users/Sam-Kramerj` https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj` }(j` 
Sam-Kramerj` J^2_ j` MDQ6VXNlcjYyMzg4MTQ=j` 3https://avatars.githubusercontent.com/u/6238814?v=4j` h5j` 'https://api.github.com/users/Sam-Kramerj` https://github.com/Sam-Kramerj` 1https://api.github.com/users/Sam-Kramer/followersj` >https://api.github.com/users/Sam-Kramer/following{/other_user}j` 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j` >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}ja 5https://api.github.com/users/Sam-Kramer/subscriptionsja ,https://api.github.com/users/Sam-Kramer/orgsja -https://api.github.com/users/Sam-Kramer/reposja 8https://api.github.com/users/Sam-Kramer/events{/privacy}j	a 7https://api.github.com/users/Sam-Kramer/received_eventsja Userj
a uparents]}(j` (99e2c16fb38f05280b1081eaa6e15da4fca051e9j` ^https://api.github.com/repos/palantir/atlasdb/commits/99e2c16fb38f05280b1081eaa6e15da4fca051e9j` Shttps://github.com/palantir/atlasdb/commit/99e2c16fb38f05280b1081eaa6e15da4fca051e9uastats}(totalK1	additionsK(	deletionsK	ufiles](}(j` (84eff5488159adcea344444577e027aa5667506cfilenamekatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflows.javastatusmodifiedj'a Kj(a KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/f1de1b619c5f44e4597bdc5e56595c4823058c1f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f1de1b619c5f44e4597bdc5e56595c4823058c1f/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.java?ref=f1de1b619c5f44e4597bdc5e56595c4823058c1fpatchXh  @@ -34,6 +34,7 @@
 import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.function.Consumer;
 import java.util.function.Function;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
@@ -71,8 +72,9 @@ static Workflow create(
             InteractiveTransactionStore store,
             BankBalanceWorkflowConfiguration bankBalanceWorkflowConfiguration,
             ListeningExecutorService executionExecutor,
-            AtomicBoolean skipRunning) {
-        BankBalanceRunTask runTask = new BankBalanceRunTask(skipRunning, bankBalanceWorkflowConfiguration);
+            AtomicBoolean skipRunning,
+            Consumer<Map<Integer, Optional<Integer>>> onFailure) {
+        BankBalanceRunTask runTask = new BankBalanceRunTask(skipRunning, bankBalanceWorkflowConfiguration, onFailure);
         return DefaultWorkflow.create(
                 store,
                 (txnStore, _index) -> runTask.run(txnStore),
@@ -81,18 +83,28 @@ static Workflow create(
     }
 
     private static class BankBalanceRunTask {
+
+        private final Consumer<Map<Integer, Optional<Integer>>> onFailure;
         private final AtomicBoolean skipRunning;
 
         private final BankBalanceWorkflowConfiguration workflowConfiguration;
 
         public BankBalanceRunTask(BankBalanceWorkflowConfiguration workflowConfiguration) {
-            this(new AtomicBoolean(), workflowConfiguration);
+            this(
+                    new AtomicBoolean(),
+                    workflowConfiguration,
+                    maybeBalances -> log.error(
+                            "Balance validation failed, indicating we have violated snapshot isolation.",
+                            SafeArg.of("maybeBalances", maybeBalances)));
         }
 
-        @VisibleForTesting
-        BankBalanceRunTask(AtomicBoolean skipRunning, BankBalanceWorkflowConfiguration workflowConfiguration) {
+        public BankBalanceRunTask(
+                AtomicBoolean skipRunning,
+                BankBalanceWorkflowConfiguration workflowConfiguration,
+                Consumer<Map<Integer, Optional<Integer>>> onFailure) {
             this.skipRunning = skipRunning;
             this.workflowConfiguration = workflowConfiguration;
+            this.onFailure = onFailure;
         }
 
         public Optional<WitnessedTransaction> run(InteractiveTransactionStore store) {
@@ -108,9 +120,7 @@ public Optional<WitnessedTransaction> run(InteractiveTransactionStore store) {
                                 workflowConfiguration.initialBalancePerAccount())
                         .ifPresentOrElse(balances -> performTransfers(txn, balances), () -> {
                             if (skipRunning.compareAndSet(false, true)) {
-                                log.error(
-                                        "Balance validation failed, indicating we have violated snapshot isolation.",
-                                        SafeArg.of("maybeBalances", maybeBalances));
+                                onFailure.accept(maybeBalances);
                             }
                         });
             });u}(j` (aed05e8ec29ada628511286cf95ca466f815480cj-a oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowsTest.javaj/a modifiedj'a Kj(a Kj1a Kj2a https://github.com/palantir/atlasdb/blob/f1de1b619c5f44e4597bdc5e56595c4823058c1f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javaj4a https://github.com/palantir/atlasdb/raw/f1de1b619c5f44e4597bdc5e56595c4823058c1f/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javaj6a https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.java?ref=f1de1b619c5f44e4597bdc5e56595c4823058c1fj8a X  @@ -41,9 +41,14 @@
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.List;
+import java.util.Map;
+import java.util.Optional;
 import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.concurrent.atomic.AtomicReference;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
+import one.util.streamex.EntryStream;
+import one.util.streamex.IntStreamEx;
 import org.junit.Test;
 
 public final class BankBalanceWorkflowsTest {
@@ -59,6 +64,8 @@ public final class BankBalanceWorkflowsTest {
 
     private final AtomicBoolean skipRunning = new AtomicBoolean();
 
+    private final AtomicReference<Map<Integer, Optional<Integer>>> invalidBalances = new AtomicReference<>();
+
     private final InteractiveTransactionStore memoryStore = AtlasDbTransactionStore.create(
             TransactionManagers.createInMemory(ImmutableSet.of()),
             ImmutableMap.of(
@@ -69,7 +76,8 @@ public final class BankBalanceWorkflowsTest {
             memoryStore,
             CONFIGURATION,
             MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)),
-            skipRunning);
+            skipRunning,
+            invalidBalances::set);
 
     @Test
     public void workflowHistoryTransactionStoreShouldBeReadOnly() {
@@ -133,4 +141,17 @@ public void bankWorkflowDoesNotWitnessTransactionWhenSkipRunningSetToTrue() {
         skipRunning.set(true);
         assertThat(workflow.run().history()).isEmpty();
     }
+
+    @Test
+    public void bankWorkflowCallsConsumerWhenInvalidBalanceSet() {
+        assertThat(invalidBalances.get()).isNull();
+        memoryStore.readWrite(txn -> txn.write(TABLE_NAME, BankBalanceWorkflows.getCellForAccount(0), 1));
+        workflow.run();
+        Map<Integer, Optional<Integer>> balances = EntryStream.of(Map.of(0, Optional.of(1)))
+                .append(IntStreamEx.range(1, CONFIGURATION.numberOfAccounts())
+                        .boxed()
+                        .collect(Collectors.toMap(i -> i, _i -> Optional.empty())))
+                .toMap();
+        assertThat(invalidBalances).hasValue(balances);
+    }
 }ueu(0edc27e36ef97604aff37e9d6258969ddc4465c8}(sha(0edc27e36ef97604aff37e9d6258969ddc4465c8node_idEC_kwDOAjP5fdoAKDBlZGMyN2UzNmVmOTc2MDRhZmYzN2U5ZDYyNTg5NjlkZGM0NDY1Yzgcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-04-28T20:52:31Zu	committer}(jLa svc-autoreleasejNa -pd-foundry-infrastructure-notify@palantir.comjPa 2023-04-28T20:52:31Zumessage"Autorelease 0.845.0-rc3

[skip ci]tree}(jDa (838e79e8a1f0bc3c0e06ada58be4274f489360aeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/838e79e8a1f0bc3c0e06ada58be4274f489360aeuj\a bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0edc27e36ef97604aff37e9d6258969ddc4465c8
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRMMhAACgkQhbrR8ip7mDBYvAD/UGpVwmZFZdHa6aihsKMKdCPM
7Ks3pkuIjoFxHOJd8LEA/jZZKUDD8ji2kvyqqOLv2krbNbJAnFNxcw1VG/JvsJxZ
=h2aa
-----END PGP SIGNATURE-----
payloadX(  tree 838e79e8a1f0bc3c0e06ada58be4274f489360ae
parent 039681ae84124b9469b403dab4b6533b8219c25a
author aalouane <30903736+ergo14@users.noreply.github.com> 1682715151 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1682715151 +0000

Autorelease 0.845.0-rc3

[skip ci]uuj\a ^https://api.github.com/repos/palantir/atlasdb/commits/0edc27e36ef97604aff37e9d6258969ddc4465c8html_urlShttps://github.com/palantir/atlasdb/commit/0edc27e36ef97604aff37e9d6258969ddc4465c8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0edc27e36ef97604aff37e9d6258969ddc4465c8/commentsjJa }(loginergo14idJjFa MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j\a #https://api.github.com/users/ergo14jja https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujRa }(joa svc-autoreleasejqa J(jFa MDQ6VXNlcjUxNzE4MzQ2jsa 4https://avatars.githubusercontent.com/u/51718346?v=4jua h5j\a ,https://api.github.com/users/svc-autoreleasejja "https://github.com/svc-autoreleasejxa 6https://api.github.com/users/svc-autorelease/followersjza Chttps://api.github.com/users/svc-autorelease/following{/other_user}j|a <https://api.github.com/users/svc-autorelease/gists{/gist_id}j~a Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}ja :https://api.github.com/users/svc-autorelease/subscriptionsja 1https://api.github.com/users/svc-autorelease/orgsja 2https://api.github.com/users/svc-autorelease/reposja =https://api.github.com/users/svc-autorelease/events{/privacy}ja <https://api.github.com/users/svc-autorelease/received_eventsja Userja uparents]}(jDa (039681ae84124b9469b403dab4b6533b8219c25aj\a ^https://api.github.com/repos/palantir/atlasdb/commits/039681ae84124b9469b403dab4b6533b8219c25ajja Shttps://github.com/palantir/atlasdb/commit/039681ae84124b9469b403dab4b6533b8219c25auastats}(totalK 	additionsK 	deletionsK ufiles]u(9bc8d9d9214b4d9ba19ae58767d4bf1bd790ef91}(sha(9bc8d9d9214b4d9ba19ae58767d4bf1bd790ef91node_idEC_kwDOAjP5fdoAKDliYzhkOWQ5MjE0YjRkOWJhMTlhZTU4NzY3ZDRiZjFiZDc5MGVmOTEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-15T18:51:54Zu	committer}(ja Jeremy Kongja jkong@palantir.comja 2023-06-15T18:51:54Zumessagebootree}(ja (9246e95e85a60bddab5f73c95162fd616310d3feurl`https://api.github.com/repos/palantir/atlasdb/git/trees/9246e95e85a60bddab5f73c95162fd616310d3feuja bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9bc8d9d9214b4d9ba19ae58767d4bf1bd790ef91
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSLXcsACgkQTLdFKain
zjwxUAf/czlFYnafB6/hRCWGe88v6xLsk3cV0g8d3oX9ev+PscIkxf1S9k6II1iQ
JfYCMbBih4T9GGGKyqxUHVr6xO9GPRcvvjXEIAiWtwOhDEzWVTtl4nw9k9BKDSH7
1c3FEqKy24ovXAj3aPzmXQtneK7YDipp85HgksEK+ypxVJEIDvPUOEFm3FJs20Y3
4QE1urdVQGOgPIl1KZ9Xy6HyjlfWW8yXJYANtsDp3TbkXiTM0MJ8YxuMfhX+vGYY
gbTzlK/iRcYdKUC51GWwG7qsMD1WYjTDxzLbzMam4qYxoyNdI06AdielGDua7Frs
8Wwc2IkFeae2O9bSLJL3y77KnSdowQ==
=8mY4
-----END PGP SIGNATURE-----payloadtree 9246e95e85a60bddab5f73c95162fd616310d3fe
parent e445384a79ff4def130999ef73af7f9cdffbd3a1
author Jeremy Kong <jkong@palantir.com> 1686855114 +0800
committer Jeremy Kong <jkong@palantir.com> 1686855114 +0800

boo
uuja ^https://api.github.com/repos/palantir/atlasdb/commits/9bc8d9d9214b4d9ba19ae58767d4bf1bd790ef91html_urlShttps://github.com/palantir/atlasdb/commit/9bc8d9d9214b4d9ba19ae58767d4bf1bd790ef91comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9bc8d9d9214b4d9ba19ae58767d4bf1bd790ef91/commentsja }(login
jeremyk-91idJZ ja MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5ja 'https://api.github.com/users/jeremyk-91ja https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuja }(ja 
jeremyk-91ja JZ ja MDQ6VXNlcjU5NTU1MTA=ja 3https://avatars.githubusercontent.com/u/5955510?v=4ja h5ja 'https://api.github.com/users/jeremyk-91ja https://github.com/jeremyk-91ja 1https://api.github.com/users/jeremyk-91/followersja >https://api.github.com/users/jeremyk-91/following{/other_user}ja 7https://api.github.com/users/jeremyk-91/gists{/gist_id}ja >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}ja 5https://api.github.com/users/jeremyk-91/subscriptionsja ,https://api.github.com/users/jeremyk-91/orgsja -https://api.github.com/users/jeremyk-91/reposja 8https://api.github.com/users/jeremyk-91/events{/privacy}ja 7https://api.github.com/users/jeremyk-91/received_eventsja Userja uparents]}(ja (e445384a79ff4def130999ef73af7f9cdffbd3a1ja ^https://api.github.com/repos/palantir/atlasdb/commits/e445384a79ff4def130999ef73af7f9cdffbd3a1ja Shttps://github.com/palantir/atlasdb/commit/e445384a79ff4def130999ef73af7f9cdffbd3a1uastats}(totalK	additionsK	deletionsKufiles]}(ja (c5df12d369297fc2dc0dbb58d51a44ebbbe7b23dfilenamelatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javastatusmodifiedjb Kjb KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9bc8d9d9214b4d9ba19ae58767d4bf1bd790ef91/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9bc8d9d9214b4d9ba19ae58767d4bf1bd790ef91/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=9bc8d9d9214b4d9ba19ae58767d4bf1bd790ef91patchX  @@ -76,7 +76,7 @@ public static Workflow createSingleRowTwoCell(
     private static Optional<WitnessedTransaction> run(
             InteractiveTransactionStore store, int taskIndex, SingleRowTwoCellsWorkflowConfiguration workflowConfiguration) {
         workflowConfiguration.transactionRateLimiter().acquire();
-        store.readWrite(txn -> {
+        Optional<WitnessedTransaction> maybeTransaction = store.readWrite(txn -> {
             List<ColumnValue> values = txn.getRowColumnRange(
                     workflowConfiguration.tableConfiguration().tableName(),
                     SINGLE_ROW,
@@ -97,9 +97,9 @@ private static Optional<WitnessedTransaction> run(
             }
         });
 
-        List<TransactionAction> transactionActions = createTransactionActions(
-                taskIndex, workflowConfiguration.tableConfiguration().tableName());
-        Optional<WitnessedTransaction> maybeTransaction = store.readWrite(transactionActions);
+//        List<TransactionAction> transactionActions = createTransactionActions(
+//                taskIndex, workflowConfiguration.tableConfiguration().tableName());
+//        Optional<WitnessedTransaction> maybeTransaction = store.readWrite(transactionActions);
         maybeTransaction.ifPresent(_transaction -> log.info(
                 "Transaction successfully committed for single row two cells workflow for task index {}.",
                 SafeArg.of("taskIndex", taskIndex)));uau(4f493c03f69a4a442ad74fbd39db045c8ff6ebbb}(sha(4f493c03f69a4a442ad74fbd39db045c8ff6ebbbnode_idEC_kwDOAjP5fdoAKDRmNDkzYzAzZjY5YTRhNDQyYWQ3NGZiZDM5ZGIwNDVjOGZmNmViYmIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-06-20T13:42:12Zu	committer}(j+b 
Sam Kramerj-b skramer@palantir.comj/b 2023-06-20T13:42:12ZumessageWtruncate table we written to previously as it will never be swept, and renable executortree}(j#b (fc0756f0b5c303545c27480d833754250f11e9f7url`https://api.github.com/repos/palantir/atlasdb/git/trees/fc0756f0b5c303545c27480d833754250f11e9f7uj;b bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4f493c03f69a4a442ad74fbd39db045c8ff6ebbb
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmSRrLQACgkQmPPOpKR4
XS1Cawf/Q3I/09yU8InC08FoAN0bHU4WbRItVFSG5aV5R080ap0FaO9yis3B1xaH
l/YwAOoEQDXIOEa6UUG6GjSi/F5NJhiUwpWVfwnGHAoPHyZOnLnuCg0QfIChhIWy
xE1W9wgpCZoBHRsFLC8n3SCpnVn2LSZToZLzNYgMxkM+sU0Pdc/qOxxxAs/TiYWp
xA653Dr/U1KwXoXpVfom9+FwlIHKa4u6IQThcq741ZnpcoD6dplwaaMZbe9HWIZ6
3Ugvd96K9EFgqxWd1yt6bs44xqQHUeEyrx7DufSNiYulS/srvuUVH2YTP72Au1/U
9RZNIZdCd44uvKCWnr8D67ohPO4YFw==
=ytkd
-----END PGP SIGNATURE-----payloadX.  tree fc0756f0b5c303545c27480d833754250f11e9f7
parent 7ed084becd1ddbeac656793e932f0b37bdc59d0c
author Sam Kramer <skramer@palantir.com> 1687268532 +0100
committer Sam Kramer <skramer@palantir.com> 1687268532 +0100

truncate table we written to previously as it will never be swept, and renable executor
uuj;b ^https://api.github.com/repos/palantir/atlasdb/commits/4f493c03f69a4a442ad74fbd39db045c8ff6ebbbhtml_urlShttps://github.com/palantir/atlasdb/commit/4f493c03f69a4a442ad74fbd39db045c8ff6ebbbcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4f493c03f69a4a442ad74fbd39db045c8ff6ebbb/commentsj)b }(login
Sam-KrameridJ^2_ j%b MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j;b 'https://api.github.com/users/Sam-KramerjIb https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj1b }(jNb 
Sam-KramerjPb J^2_ j%b MDQ6VXNlcjYyMzg4MTQ=jRb 3https://avatars.githubusercontent.com/u/6238814?v=4jTb h5j;b 'https://api.github.com/users/Sam-KramerjIb https://github.com/Sam-KramerjWb 1https://api.github.com/users/Sam-Kramer/followersjYb >https://api.github.com/users/Sam-Kramer/following{/other_user}j[b 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j]b >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j_b 5https://api.github.com/users/Sam-Kramer/subscriptionsjab ,https://api.github.com/users/Sam-Kramer/orgsjcb -https://api.github.com/users/Sam-Kramer/reposjeb 8https://api.github.com/users/Sam-Kramer/events{/privacy}jgb 7https://api.github.com/users/Sam-Kramer/received_eventsjib Userjkb uparents]}(j#b (7ed084becd1ddbeac656793e932f0b37bdc59d0cj;b ^https://api.github.com/repos/palantir/atlasdb/commits/7ed084becd1ddbeac656793e932f0b37bdc59d0cjIb Shttps://github.com/palantir/atlasdb/commit/7ed084becd1ddbeac656793e932f0b37bdc59d0cuastats}(totalK	additionsK	deletionsK ufiles]}(j#b (1eee1a840b8cb947434e5b06729f64af1d38e2eefilenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedjb Kjb K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/4f493c03f69a4a442ad74fbd39db045c8ff6ebbb/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4f493c03f69a4a442ad74fbd39db045c8ff6ebbb/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=4f493c03f69a4a442ad74fbd39db045c8ff6ebbbpatchXE  @@ -24,6 +24,7 @@
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyLong;
 import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.doCallRealMethod;
 import static org.mockito.Mockito.doNothing;
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.doThrow;
@@ -2458,6 +2459,8 @@ public void exceptionThrownWhenTooManyPostFilterIterationsOccur() {
                 .hasExactlyArgs(
                         SafeArg.of("table", TABLE_NO_SWEEP),
                         SafeArg.of("maxIterations", SnapshotTransaction.MAX_POST_FILTERING_ITERATIONS));
+        doCallRealMethod().when(deleteExecutor).execute(any());
+        txManager.getKeyValueService().truncateTable(TABLE_NO_SWEEP);
     }
 
     private void verifyPrefetchValidations(uau(771242504b20b7c6e8b6be8f11e2c600877d08a5}(sha(771242504b20b7c6e8b6be8f11e2c600877d08a5node_idEC_kwDOAjP5fdoAKDc3MTI0MjUwNGIyMGI3YzZlOGI2YmU4ZjExZTJjNjAwODc3ZDA4YTUcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-25T15:19:00Zu	committer}(jb 
Sam Kramerjb skramer@palantir.comjb 2023-04-25T15:19:00Zumessage300 iterationstree}(jb (fd2855add9640c653ad91a00d36d043fa687ce49url`https://api.github.com/repos/palantir/atlasdb/git/trees/fd2855add9640c653ad91a00d36d043fa687ce49u     jb bhttps://api.github.com/repos/palantir/atlasdb/git/commits/771242504b20b7c6e8b6be8f11e2c600877d08a5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRH72QACgkQmPPOpKR4
XS2vEQf/RvsSdC4EMSJL36si9junZkMOdQMr+rmqOFm0pS1BPB+bnY0eXh4NzS6g
d5/mOvHAEAkdft5oNknJK4PKiE0QjSGEw0SDNUr90RKW3cctG83+MWWe4XtayqrB
tE8k33GHYf8BY+mA5nfN0ihto0UJ6eHdufv6J4taweZ/xa//0SSTckaZ/ERrdQie
dKtPnQx+hvzsGz/eI52IIj8b/JyDDnX0Uo1AzKIz9Z15cfLBrd7oCGllwtCMlXw/
PIDZgF3ctRR58dG7uYsIwpQG9eCgiDEvZNinBIKfHmDbwlsSmB91q8pC0lVU1xJ9
YhX8QTHsaZRm2FFfCyxpJjkQO3kBTg==
=JMD8
-----END PGP SIGNATURE-----payloadtree fd2855add9640c653ad91a00d36d043fa687ce49
parent 46b454c6913c3dec736f45e11bea6589632dd60b
author Sam Kramer <skramer@palantir.com> 1682435940 +0100
committer Sam Kramer <skramer@palantir.com> 1682435940 +0100

300 iterations
uujb ^https://api.github.com/repos/palantir/atlasdb/commits/771242504b20b7c6e8b6be8f11e2c600877d08a5html_urlShttps://github.com/palantir/atlasdb/commit/771242504b20b7c6e8b6be8f11e2c600877d08a5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/771242504b20b7c6e8b6be8f11e2c600877d08a5/commentsjb }(login
Sam-KrameridJ^2_ jb MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jb 'https://api.github.com/users/Sam-Kramerjb https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujb }(jb 
Sam-Kramerjb J^2_ jb MDQ6VXNlcjYyMzg4MTQ=jb 3https://avatars.githubusercontent.com/u/6238814?v=4jb h5jb 'https://api.github.com/users/Sam-Kramerjb https://github.com/Sam-Kramerjb 1https://api.github.com/users/Sam-Kramer/followersjb >https://api.github.com/users/Sam-Kramer/following{/other_user}jb 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jb >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jb 5https://api.github.com/users/Sam-Kramer/subscriptionsjb ,https://api.github.com/users/Sam-Kramer/orgsjb -https://api.github.com/users/Sam-Kramer/reposjb 8https://api.github.com/users/Sam-Kramer/events{/privacy}jb 7https://api.github.com/users/Sam-Kramer/received_eventsjb Userjb uparents]}(jb (46b454c6913c3dec736f45e11bea6589632dd60bjb ^https://api.github.com/repos/palantir/atlasdb/commits/46b454c6913c3dec736f45e11bea6589632dd60bjb Shttps://github.com/palantir/atlasdb/commit/46b454c6913c3dec736f45e11bea6589632dd60buastats}(totalK	additionsK	deletionsKufiles]}(jb (4df3ff3fa34c644512b35ed4ec78c11adb656e28filenamegatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/BouncingValueWorkflow.javastatusmodifiedjb Kjb KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/771242504b20b7c6e8b6be8f11e2c600877d08a5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FBouncingValueWorkflow.javaraw_urlhttps://github.com/palantir/atlasdb/raw/771242504b20b7c6e8b6be8f11e2c600877d08a5/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FBouncingValueWorkflow.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FBouncingValueWorkflow.java?ref=771242504b20b7c6e8b6be8f11e2c600877d08a5patchX  @@ -52,7 +52,7 @@ public WorkflowHistory run() {
                         MoreExecutors.listeningDecorator(Executors.newSingleThreadExecutor());
                 ListeningExecutorService writeExecutor =
                         MoreExecutors.listeningDecorator(Executors.newSingleThreadExecutor());
-                List<ListenableFuture<Optional<WitnessedTransaction>>> reads = IntStream.range(0, 1_000)
+                List<ListenableFuture<Optional<WitnessedTransaction>>> reads = IntStream.range(0, 200)
                         .mapToObj(idx -> readExecutor.submit(() -> {
                             return store.readWrite(txn -> {
                                 Optional<Integer> value = txn.read(TEST_TABLE, BUSY_CELL);
@@ -62,7 +62,7 @@ public WorkflowHistory run() {
                         .collect(Collectors.toList());
 
                 List<ListenableFuture<Optional<WitnessedTransaction>>> writes = new ArrayList<>();
-                for (int i = 0; i < 500; i++) {
+                for (int i = 0; i < 100; i++) {
                     int stableI = i;
                     writes.add(writeExecutor.submit(
                             () -> store.readWrite(List.of(WriteTransactionAction.of(TEST_TABLE, BUSY_CELL, stableI)))));uau(a95ab96a8ee49841854355b55aa4381d99f522e2}(sha(a95ab96a8ee49841854355b55aa4381d99f522e2node_idEC_kwDOAjP5fdoAKGE5NWFiOTZhOGVlNDk4NDE4NTQzNTViNTVhYTQzODFkOTlmNTIyZTIcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-03-03T23:13:00Zu	committer}(jc svc-excavator-botjc svc-excavator-bot@palantir.comjc 2023-03-03T23:13:00Zumessage8Excavator:  Upgrade gradle wrapper to the latest versiontree}(jc (691e4985a42fb12c612d68caa87d1772b426fd1eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/691e4985a42fb12c612d68caa87d1772b426fd1euj)c bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a95ab96a8ee49841854355b55aa4381d99f522e2
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmQCfvwJEMmvEkpISILgAAAAvwD9EodDhnIlcPAo3Vym0GlcbcQR
Pv8zlqBcd8WgjqyjK8cBAM1VI2BMRTvH/tuHpyGIDEynMZ6xT/aQBcJHFaHtfTUp
=e92G
-----END PGP SIGNATURE-----
payloadX0  tree 691e4985a42fb12c612d68caa87d1772b426fd1e
parent 6f0f7c5849e31c772989b9565d870a5ba17cd721
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1677885180 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1677885180 +0000

Excavator:  Upgrade gradle wrapper to the latest versionuuj)c ^https://api.github.com/repos/palantir/atlasdb/commits/a95ab96a8ee49841854355b55aa4381d99f522e2html_urlShttps://github.com/palantir/atlasdb/commit/a95ab96a8ee49841854355b55aa4381d99f522e2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a95ab96a8ee49841854355b55aa4381d99f522e2/commentsjc }(loginsvc-excavator-botidJjc MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j)c .https://api.github.com/users/svc-excavator-botj7c $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminujc }(j<c svc-excavator-botj>c Jjc MDQ6VXNlcjMzMjY2MzY4j@c 4https://avatars.githubusercontent.com/u/33266368?v=4jBc h5j)c .https://api.github.com/users/svc-excavator-botj7c $https://github.com/svc-excavator-botjEc 8https://api.github.com/users/svc-excavator-bot/followersjGc Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}jIc >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}jKc Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}jMc <https://api.github.com/users/svc-excavator-bot/subscriptionsjOc 3https://api.github.com/users/svc-excavator-bot/orgsjQc 4https://api.github.com/users/svc-excavator-bot/reposjSc ?https://api.github.com/users/svc-excavator-bot/events{/privacy}jUc >https://api.github.com/users/svc-excavator-bot/received_eventsjWc UserjYc uparents]}(jc (6f0f7c5849e31c772989b9565d870a5ba17cd721j)c ^https://api.github.com/repos/palantir/atlasdb/commits/6f0f7c5849e31c772989b9565d870a5ba17cd721j7c Shttps://github.com/palantir/atlasdb/commit/6f0f7c5849e31c772989b9565d870a5ba17cd721uastats}(totalK	additionsK	deletionsKufiles]}(jc (508322917bdcd5b42c43cf8ce0d1f9269226a405filename(gradle/wrapper/gradle-wrapper.propertiesstatusmodifiedjsc Kjtc KchangesKblob_url~https://github.com/palantir/atlasdb/blob/a95ab96a8ee49841854355b55aa4381d99f522e2/gradle%2Fwrapper%2Fgradle-wrapper.propertiesraw_url}https://github.com/palantir/atlasdb/raw/a95ab96a8ee49841854355b55aa4381d99f522e2/gradle%2Fwrapper%2Fgradle-wrapper.propertiescontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fwrapper%2Fgradle-wrapper.properties?ref=a95ab96a8ee49841854355b55aa4381d99f522e2patchXC  @@ -1,6 +1,6 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
 networkTimeout=10000
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/distsuau(5a51edccd20c644dbc5d51247f87e63ed6135ce5}(sha(5a51edccd20c644dbc5d51247f87e63ed6135ce5node_idEC_kwDOAjP5fdoAKDVhNTFlZGNjZDIwYzY0NGRiYzVkNTEyNDdmODdlNjNlZDYxMzVjZTUcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-05-05T11:49:14Zu	committer}(jc svc-autoreleasejc -pd-foundry-infrastructure-notify@palantir.comjc 2023-05-05T11:49:14Zumessage"Autorelease 0.845.0-rc6

[skip ci]tree}(jc (5bac0ea737dc049e40984e7d38547489cf1f018durl`https://api.github.com/repos/palantir/atlasdb/git/trees/5bac0ea737dc049e40984e7d38547489cf1f018dujc bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5a51edccd20c644dbc5d51247f87e63ed6135ce5
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRU7TsACgkQhbrR8ip7mDBkhQEA9NLzEeSp9U+PzsuDIbxJQeoL
iDQ90Whl53KBTIKKe+oA/AoKLhtmlBkWRtb/oMj1OBbsjvCcdaA2ujfCydhshxZJ
=kr3L
-----END PGP SIGNATURE-----
payloadX(  tree 5bac0ea737dc049e40984e7d38547489cf1f018d
parent 5642f8546b30ea610fb0f695cefbd7f54b744186
author aalouane <30903736+ergo14@users.noreply.github.com> 1683287354 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1683287354 +0000

Autorelease 0.845.0-rc6

[skip ci]uujc ^https://api.github.com/repos/palantir/atlasdb/commits/5a51edccd20c644dbc5d51247f87e63ed6135ce5html_urlShttps://github.com/palantir/atlasdb/commit/5a51edccd20c644dbc5d51247f87e63ed6135ce5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5a51edccd20c644dbc5d51247f87e63ed6135ce5/commentsjc }(loginergo14idJjc MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jc #https://api.github.com/users/ergo14jc https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujc }(jc svc-autoreleasejc J(jc MDQ6VXNlcjUxNzE4MzQ2jc 4https://avatars.githubusercontent.com/u/51718346?v=4jc h5jc ,https://api.github.com/users/svc-autoreleasejc "https://github.com/svc-autoreleasejc 6https://api.github.com/users/svc-autorelease/followersjc Chttps://api.github.com/users/svc-autorelease/following{/other_user}jc <https://api.github.com/users/svc-autorelease/gists{/gist_id}jc Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jc :https://api.github.com/users/svc-autorelease/subscriptionsjc 1https://api.github.com/users/svc-autorelease/orgsjc 2https://api.github.com/users/svc-autorelease/reposjc =https://api.github.com/users/svc-autorelease/events{/privacy}jc <https://api.github.com/users/svc-autorelease/received_eventsjc Userjc uparents]}(jc (5642f8546b30ea610fb0f695cefbd7f54b744186jc ^https://api.github.com/repos/palantir/atlasdb/commits/5642f8546b30ea610fb0f695cefbd7f54b744186jc Shttps://github.com/palantir/atlasdb/commit/5642f8546b30ea610fb0f695cefbd7f54b744186uastats}(totalK 	additionsK 	deletionsK ufiles]u(f9026ae02d646dbdf8c75ea55658e02b02d9c2be}(sha(f9026ae02d646dbdf8c75ea55658e02b02d9c2benode_idEC_kwDOAjP5fdoAKGY5MDI2YWUwMmQ2NDZkYmRmOGM3NWVhNTU2NThlMDJiMDJkOWMyYmUcommit}(author}(nameMohammed Daudaliemailmdaudali@palantir.comdate2023-06-14T10:27:58Zu	committer}(jc GitHubjc noreply@github.comjc 2023-06-14T10:27:58Zumessage(Merge branch 'develop' into as/test-scantree}(jc (5b4908fe81d1ea4e7c2f783a83cde030b1465051url`https://api.github.com/repos/palantir/atlasdb/git/trees/5b4908fe81d1ea4e7c2f783a83cde030b1465051ujd bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f9026ae02d646dbdf8c75ea55658e02b02d9c2be
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkiZYuCRBK7hj4Ov3rIwAA0eEIAB/wW5Pm3HQByQ/mxCVnfWWi
oNFEsvheUKjQYDRzoUYQzH79naSW7Jw+lwXC0KmXBBvodVLTXyzdfobZRqKsbh9f
0d/QDuL1vU8I1S++zVmO4ZcUh2uMqLR5hZTsvJYhXlUFBgOvvY9VoDU64TQPfkbD
yO+NIhKwAJkSACeVF5eVMKSg9/GhYKZMjoyBs64ihoQeU+nRCV2ILQxSM/BZEKqg
Fm2NwHvJBkbzJhJAHV3Y5/vKwWzMr4b/V3tvLCDHZDC9BJHTVUejAZYsxIC2F910
eGMCoYNw0rHpswVeBAuQwCA44psXk4Maqaf9Vk0eK6BYjxSaqx48usdpcY7Iv2o=
=UkWx
-----END PGP SIGNATURE-----
payloadX/  tree 5b4908fe81d1ea4e7c2f783a83cde030b1465051
parent 79d853def7736f22e64f5a2ff4c88f458214b8ec
parent 20e92777b54ac5a285338bfac7caf6c222fab994
author Mohammed Daudali <mdaudali@palantir.com> 1686738478 +0100
committer GitHub <noreply@github.com> 1686738478 +0100

Merge branch 'develop' into as/test-scanuujd ^https://api.github.com/repos/palantir/atlasdb/commits/f9026ae02d646dbdf8c75ea55658e02b02d9c2behtml_urlShttps://github.com/palantir/atlasdb/commit/f9026ae02d646dbdf8c75ea55658e02b02d9c2becomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/commentsjc }(loginmdaudaliidJ jc MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5jd %https://api.github.com/users/mdaudalijd https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminujc }(jd web-flowjd J/jc MDQ6VXNlcjE5ODY0NDQ3jd 4https://avatars.githubusercontent.com/u/19864447?v=4j!d h5jd %https://api.github.com/users/web-flowjd https://github.com/web-flowj$d /https://api.github.com/users/web-flow/followersj&d <https://api.github.com/users/web-flow/following{/other_user}j(d 5https://api.github.com/users/web-flow/gists{/gist_id}j*d <https://api.github.com/users/web-flow/starred{/owner}{/repo}j,d 3https://api.github.com/users/web-flow/subscriptionsj.d *https://api.github.com/users/web-flow/orgsj0d +https://api.github.com/users/web-flow/reposj2d 6https://api.github.com/users/web-flow/events{/privacy}j4d 5https://api.github.com/users/web-flow/received_eventsj6d Userj8d uparents](}(jc (79d853def7736f22e64f5a2ff4c88f458214b8ecjd ^https://api.github.com/repos/palantir/atlasdb/commits/79d853def7736f22e64f5a2ff4c88f458214b8ecjd Shttps://github.com/palantir/atlasdb/commit/79d853def7736f22e64f5a2ff4c88f458214b8ecu}(jc (20e92777b54ac5a285338bfac7caf6c222fab994jd ^https://api.github.com/repos/palantir/atlasdb/commits/20e92777b54ac5a285338bfac7caf6c222fab994jd Shttps://github.com/palantir/atlasdb/commit/20e92777b54ac5a285338bfac7caf6c222fab994uestats}(totalM~!	additionsM	deletionsMfufiles](}(jc (869937b7996e6e9b9e16721bba28e199b9d1dd82filename,.baseline/checkstyle/custom-suppressions.xmlstatusmodifiedjVd K jWd KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/.baseline%2Fcheckstyle%2Fcustom-suppressions.xmlraw_urlhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/.baseline%2Fcheckstyle%2Fcustom-suppressions.xmlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/.baseline%2Fcheckstyle%2Fcustom-suppressions.xml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bepatchXT  @@ -26,7 +26,6 @@
     <suppress files=".*" checks="RedundantModifier"/>
     <suppress files=".*" checks="SummaryJavadocCheck"/>
     <suppress files=".*" checks="VisibilityModifier"/>
-    <suppress files=".*" id="BanGuavaCaches"/>
 
     <!-- Certain AtlasDB projects are ignored. -->
     <suppress files="atlasdb-client/*" checks="."/>u}(jc (a31b7819db3f6f91597edd144957cf18b2f7a613j\d .circleci/config.ymlj^d modifiedjVd K+jWd K
j`d K5jad hhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/.circleci%2Fconfig.ymljcd ghttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/.circleci%2Fconfig.ymljed zhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -1,10 +1,10 @@
-version: 2
+version: 2.1
 
 jobs:
   build:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: xlarge
+    resource_class: 2xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
@@ -31,8 +31,10 @@ jobs:
           root: .
           paths: [ . ]
 
-  test:
-    parallelism: 12
+  test-suite:
+    parameters:
+      suite:
+        type: integer
     machine:
       image: ubuntu-2004:202111-02
     resource_class: xlarge
@@ -66,7 +68,7 @@ jobs:
               curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
               sudo ln -s /opt/java/zulu*/ /opt/java8
       - run:
-          command: ./scripts/circle-ci/run-circle-tests.sh
+          command: ./scripts/circle-ci/run-circle-tests.sh << parameters.suite >>
           no_output_timeout: 900
       - run: ./scripts/circle-ci/ensure-repo-clean.sh
       - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
@@ -78,11 +80,16 @@ jobs:
       - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
       - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
       - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - when:
+          # Persist to workspace for the compile/compileTest container to keep deploy fast.
+          condition:
+            equal: [ 13, << parameters.suite >> ]
+          steps:
+            - persist_to_workspace:
+                root: .
+                paths: [ . ]
       - store_artifacts:
           path: /home/circleci/artifacts
-      - persist_to_workspace:
-          root: .
-          paths: [ . ]
 
   trial-publish:
     docker:
@@ -97,6 +104,12 @@ jobs:
       - attach_workspace: { at: . }
       - run: ./gradlew --scan --profile --stacktrace --continue publishToMavenLocal
 
+  test:
+    docker: [ { image: 'busybox:1.34.1' } ]
+    resource_class: small
+    steps:
+      - run: {command: echo "Ran all required tests successfully"}
+
   deploy:
     docker:
       - image: cimg/openjdk:11.0.10-node
@@ -130,15 +143,35 @@ jobs:
             fi
 
 workflows:
-  version: 2
   check:
     jobs:
       - build:
           filters:
             tags:
               only: /.*/
-      - test:
+      - test-suite:
           requires: [build]
+          matrix:
+            alias: test-no-tl
+            parameters:
+              # intentionally excluding 13 (TimeLock migration ETE test) from this collection
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14]
+          filters:
+            tags:
+              only: /.*/
+      - test-suite:
+          requires: [build]
+          matrix:
+            alias: test-tl
+            parameters:
+              suite: [13]
+          filters:
+            branches:
+              only: /(tlmete.*|develop)/
+            tags:
+              only: /.*/
+      - test:
+          requires: [test-tl, test-no-tl]
           filters:
             tags:
               only: /.*/u}(jc (2dbc24b32d3c1d36a5252a785ef380d28cefa391j\d 
.java-versionj^d modifiedjVd KjWd Kj`d Kjad _https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/.java-versionjcd ^https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/.java-versionjed qhttps://api.github.com/repos/palantir/atlasdb/contents/.java-version?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -1 +1 @@
-11
+11.0u}(jc (d712c836408b8b983fda0502a1815c19270ae9e1j\d .palantir/revapi.ymlj^d modifiedjVd KjWd K j`d Kjad hhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/.palantir%2Frevapi.ymljcd ghttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/.palantir%2Frevapi.ymljed zhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X_  @@ -115,3 +115,9 @@ acceptedBreaks:
     - code: "java.class.removed"
       old: "interface com.palantir.atlasdb.transaction.api.expectations.ExpectationsAwareTransaction"
       justification: "moving out of API"
+  "0.824.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.removed"
+      old: "method java.util.concurrent.ExecutorService com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService::createThreadPoolWihtoutSpans(java.lang.String,\
+        \ int, int) @ com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl"
+      justification: "Protected method"u}(jc (d8f732c3615aaed89bbf22d2dd57bf2198b25723j\d .policy.ymlj^d modifiedjVd KjWd Kj`d Kjad ]https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/.policy.ymljcd \https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/.policy.ymljed ohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X(  @@ -20,21 +20,21 @@ approval_rules:
       allow_contributor: false
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: two admins have approved
     options:
       allow_contributor: true
     requires:
       count: 2
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: changelog only and contributor approval
     options:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       only_changed_files:
         paths:
@@ -45,7 +45,7 @@ approval_rules:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       has_author_in:
         users: [ "svc-excavator-bot" ]u}(jc (1b448a0fde07cfbc9657b00600f040335b3c7c84j\d atlasdb-api/build.gradlej^d modifiedjVd KjWd Kj`d Kjad lhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-api%2Fbuild.gradlejcd khttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-api%2Fbuild.gradlejed ~https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fbuild.gradle?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X   @@ -39,8 +39,9 @@ dependencies {
   testImplementation 'com.palantir.refreshable:refreshable'
   testImplementation 'io.dropwizard.metrics:metrics-core'
   testImplementation project(':lock-api-objects')
+    testImplementation project(path: ':flake-rule')
 
-  annotationProcessor 'org.immutables:value'
+    annotationProcessor 'org.immutables:value'
   compileOnly 'org.immutables:value::annotations'
   testCompileOnly 'org.immutables:value::annotations'
   annotationProcessor project(":atlasdb-processors")u}(jc (c2c86be9a9da93bcfb3eb43dd67f55ea0b9f9d51j\d Ratlasdb-api/src/test/java/com/palantir/atlasdb/keyvalue/api/CellReferenceTest.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellReferenceTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellReferenceTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellReferenceTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X~  @@ -21,19 +21,25 @@
 
 import com.google.common.math.IntMath;
 import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.flake.FlakeRetryingRule;
+import com.palantir.flake.ShouldRetry;
 import java.util.List;
 import java.util.Map;
 import java.util.concurrent.ThreadLocalRandom;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 import org.assertj.core.data.Percentage;
+import org.junit.Rule;
 import org.junit.Test;
 
 public class CellReferenceTest {
     private static final TableReference TABLE = createFromFullyQualifiedName("fixed.table");
     private static final byte[] ROW = PtBytes.toBytes("row");
     private static final byte[] COL = PtBytes.toBytes("col");
 
+    @Rule
+    public final FlakeRetryingRule retryingRule = new FlakeRetryingRule();
+
     @Test
     public void dynamicSequentialColumns() {
         int totalCount = 20_000;
@@ -44,6 +50,7 @@ public void dynamicSequentialColumns() {
         assertDistributionUniform(hashes, totalCount);
     }
 
+    @ShouldRetry
     @Test
     public void dynamicRandomColumns() {
         ThreadLocalRandom random = ThreadLocalRandom.current();u}(jc (c8f5ec6d41d45b1db43cb98d871dd8aaff4fbe06j\d atlasdb-buggify/build.gradlej^d addedjVd KjWd K j`d Kjad phttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fbuild.gradlejcd ohttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fbuild.gradlejed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fbuild.gradle?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X`  @@ -0,0 +1,12 @@
+
+apply from: "../gradle/shared.gradle"
+
+dependencies {
+    implementation 'com.google.guava:guava'
+    testImplementation 'junit:junit'
+    testImplementation 'org.assertj:assertj-core'
+    testImplementation('org.jmock:jmock') {
+      exclude group: 'org.hamcrest'
+    }
+    testImplementation 'org.mockito:mockito-core'
+}u}(jc (7ed6f31d91209eb01a70cc1992699c7d6b7590bdj\d Tatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/AlwaysBuggifyFactory.javaj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X.  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggify;
+
+public enum AlwaysBuggifyFactory implements BuggifyFactory {
+    INSTANCE;
+
+    @Override
+    public Buggify maybe(double _probability) {
+        return DefaultBuggify.INSTANCE;
+    }
+}u}(jc (b4b3fdb6c8a3dbc046c441a7d9341e93b8857c14j\d Katlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/Buggify.javaj^d addedjVd K'jWd K j`d K'jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X9  @@ -0,0 +1,39 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+/**
+ * Instances of this class could vary in implementation, such that they may perform no action {@link com.palantir.atlasdb.buggify.impl.NoOpBuggify} or
+ * always perform the action {@link com.palantir.atlasdb.buggify.impl.DefaultBuggify}. The idea here is that a
+ * downstream users of this class can easily swap out their {@link BuggifyFactory} to change the behavior of their
+ * class, without having to change the implementation of their class. This is useful for tests, as we can force the
+ * behavior of never running the provided runnable, or always running the provided runnable.
+ * <p>
+ * See https://apple.github.io/foundationdb/client-testing.html for more information.
+ */
+public interface Buggify {
+    /**
+     * Maybe runs the provided runnable, depending on the instance of the class.
+     */
+    void run(Runnable runnable);
+
+    /**
+     * Returns true if this instance of buggify would perform an action if {@link #run Run} would execute the
+     * provided runnable. This is useful if you wish to produce a boolean that will be skewed towards true or false.
+     */
+    boolean asBoolean();
+}u}(jc (0ed48b1c56bc0efc8ac5be656900e3c3a38c67faj\d Ratlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/BuggifyFactory.javaj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xy  @@ -0,0 +1,24 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+public interface BuggifyFactory {
+    /**
+     * The probability of returning a buggify instance which performs actions.
+     */
+    Buggify maybe(double probability);
+}u}(jc (6f3353a1c06e3518031faa27f5e05286e635a2dbj\d eatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/NativeSamplingSecureRandomFactory.javaj^d addedjVd K!jWd K j`d K!jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FNativeSamplingSecureRandomFactory.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FNativeSamplingSecureRandomFactory.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FNativeSamplingSecureRandomFactory.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+import java.security.SecureRandom;
+
+public interface NativeSamplingSecureRandomFactory {
+    /**
+     * Creates an instance of {@link SecureRandom} that, as far as is supported by the system, produces both seed and
+     * random numbers from an external source.
+     * <p>
+     * The motivation for this is for running tests in an environment (such as that provided by Antithesis) where
+     * system-provided randomness is deterministic, and can be dynamically controlled by the fuzzer to explore the
+     * state space of the system more efficiently. We thus want to ensure that the random number generator we use
+     * makes queries to the system-provided randomness source not just for seeding, but also on every generation
+     * of a random number.
+     */
+    SecureRandom create();
+}u}(jc (bf47a2abcceffe92e42715b2377315e57a40f763j\d Satlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggify.javaj^d addedjVd K!jWd K j`d K!jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+
+public enum DefaultBuggify implements Buggify {
+    INSTANCE;
+
+    @Override
+    public void run(Runnable runnable) {
+        runnable.run();
+    }
+
+    @Override
+    public boolean asBoolean() {
+        return true;
+    }
+}u}(jc (4ca0edd6554c8b49ac329f94f8407ea5328fca20j\d Zatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactory.javaj^d addedjVd K/jWd K j`d K/jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,47 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import java.security.SecureRandom;
+import java.util.function.DoubleSupplier;
+
+public final class DefaultBuggifyFactory implements BuggifyFactory {
+    private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+    public static final BuggifyFactory INSTANCE = new DefaultBuggifyFactory();
+
+    private final DoubleSupplier doubleSupplier;
+
+    @VisibleForTesting
+    DefaultBuggifyFactory(DoubleSupplier doubleSupplier) {
+        this.doubleSupplier = doubleSupplier;
+    }
+
+    private DefaultBuggifyFactory() {
+        this(SECURE_RANDOM::nextDouble);
+    }
+
+    @Override
+    public Buggify maybe(double probability) {
+        if (doubleSupplier.getAsDouble() < probability) {
+            return DefaultBuggify.INSTANCE;
+        }
+        return NoOpBuggify.INSTANCE;
+    }
+}u}(jc (1f3a1114799a4b99ced3a549da79307fe3e7b204j\d matlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultNativeSamplingSecureRandomFactory.javaj^d addedjVd K,jWd K j`d K,jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultNativeSamplingSecureRandomFactory.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultNativeSamplingSecureRandomFactory.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultNativeSamplingSecureRandomFactory.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.NativeSamplingSecureRandomFactory;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.security.SecureRandom;
+
+public enum DefaultNativeSamplingSecureRandomFactory implements NativeSamplingSecureRandomFactory {
+    INSTANCE;
+
+    private static final SafeLogger log = SafeLoggerFactory.get(DefaultNativeSamplingSecureRandomFactory.class);
+
+    @Override
+    public SecureRandom create() {
+        try {
+            // The NativePRNG algorithm reads from /dev/random or /dev/urandom for generating both seed and random
+            // numbers, which satisfies the requirements of the interface (and both of these files are fuzzer-controlled
+            // in Antithesis). This string is a reserved identifier for the algorithm, following
+            // https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html#securerandom-number-generation-algorithms
+            return SecureRandom.getInstance("NativePRNG");
+        } catch (Exception e) {
+            log.warn(
+                    "Failed to initialize fully native secure random instance, letting the Java runtime select for us",
+                    e);
+            return new SecureRandom();
+        }
+    }
+}u}(jc (7ffdf499b3babaa3d0997abc88e28cb57de2aa01j\d Patlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggify.javaj^d addedjVd K!jWd K j`d K!jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+
+public enum NoOpBuggify implements Buggify {
+    INSTANCE;
+
+    @Override
+    public void run(Runnable _runnable) {
+        // do nothing
+    }
+
+    @Override
+    public boolean asBoolean() {
+        return false;
+    }
+}u}(jc (bf4172a8a7e4e4576cacc81f228d95963322a41dj\d Watlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyFactory.javaj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,29 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+
+public enum NoOpBuggifyFactory implements BuggifyFactory {
+    INSTANCE;
+
+    @Override
+    public Buggify maybe(double _probability) {
+        return NoOpBuggify.INSTANCE;
+    }
+}u}(jc (a7db5aa15eb7d98f2bcc738671a8f30fdfb489adj\d ^atlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactoryTest.javaj^d addedjVd K+jWd K j`d K+jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X#  @@ -0,0 +1,43 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import org.junit.Test;
+
+public class DefaultBuggifyFactoryTest {
+    @Test
+    public void maybeReturnsDefaultWhenMaxProbability() {
+        assertThat(DefaultBuggifyFactory.INSTANCE.maybe(1.0)).isSameAs(DefaultBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsNoOpWhenNeverProbability() {
+        assertThat(DefaultBuggifyFactory.INSTANCE.maybe(0.0)).isSameAs(NoOpBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsNoOpWhenBelowOrEqualToProbability() {
+        assertThat(new DefaultBuggifyFactory(() -> 0.50).maybe(0.50)).isSameAs(NoOpBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsDefaultWhenAboveProbability() {
+        assertThat(new DefaultBuggifyFactory(() -> 0.49).maybe(0.50)).isSameAs(DefaultBuggify.INSTANCE);
+    }
+}u}(jc (28a8b18ae59b101e1489b1e086bbac7d63318767j\d Watlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyTest.javaj^d addedjVd K%jWd K j`d K%jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.verify;
+
+import org.junit.Test;
+
+public class DefaultBuggifyTest {
+    @Test
+    public void runAlwaysExecutes() {
+        Runnable runnable = mock(Runnable.class);
+        DefaultBuggify.INSTANCE.run(runnable);
+        verify(runnable).run();
+    }
+
+    @Test
+    public void asBooleanReturnsTrue() {
+        assertThat(DefaultBuggify.INSTANCE.asBoolean()).isTrue();
+    }
+}u}(jc (c6d5d05237311ecd06793772e3b673f5836c8896j\d Tatlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyTest.javaj^d addedjVd K&jWd K j`d K&jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.never;
+import static org.mockito.Mockito.verify;
+
+import org.junit.Test;
+
+public class NoOpBuggifyTest {
+    @Test
+    public void runNeverExecutes() {
+        Runnable runnable = mock(Runnable.class);
+        NoOpBuggify.INSTANCE.run(runnable);
+        verify(runnable, never()).run();
+    }
+
+    @Test
+    public void asBooleanReturnsFalse() {
+        assertThat(NoOpBuggify.INSTANCE.asBoolean()).isFalse();
+    }
+}u}(jc (8fce8e6875711ffb9f2690858b1cbe9871979bd5j\d 0atlasdb-cassandra-integration-tests/build.gradlej^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra-integration-tests%2Fbuild.gradlejcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra-integration-tests%2Fbuild.gradlejed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fbuild.gradle?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X#  @@ -56,6 +56,24 @@ test {
     exclude '**/CassandraKeyValueServiceSweepTaskRunnerIntegrationTest.class'
 }
 
+task testSubset1(type: Test) {
+    include '**/CassandraKeyValueServiceTableCreationIntegrationTest.class'
+    include '**/CassandraKeyValueServiceTableManipulationIntegrationTest.class'
+    include '**/CassandraKeyValueServiceTransactionIntegrationTest.class'
+    include '**/CassandraKvsAsyncFallbackMechanismsTests.class'
+    include '**/CassandraKvsSerializableTransactionTest.class'
+}
+
+task testSubset2(type: Test) {
+    include '**/*Test.class'
+    include '**/*Tests.class'
+    exclude '**/CassandraKeyValueServiceTableCreationIntegrationTest.class'
+    exclude '**/CassandraKeyValueServiceTableManipulationIntegrationTest.class'
+    exclude '**/CassandraKeyValueServiceTransactionIntegrationTest.class'
+    exclude '**/CassandraKvsAsyncFallbackMechanismsTests.class'
+    exclude '**/CassandraKvsSerializableTransactionTest.class'
+}
+
 tasks.withType(Test) {
     testLogging {
         // set options for log level LIFECYCLEu}(jc (4070f53a1fe32fff1205f946858d747ab540e48bj\d datlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xw  @@ -359,6 +359,7 @@ void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> des
 
         if (!(validatedServersToAdd.isEmpty() && absentServers.isEmpty())) { // if we made any changes
             cassandra.refreshTokenRangesAndGetServers();
+            metrics.recordPoolSize(getCurrentPools().size());
         }
 
         Preconditions.checkState(u}(jc (69f581236b5f107c22a46408a061b07dd50fd1bcj\d iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X2  @@ -108,8 +108,6 @@
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
-import com.palantir.tracing.Tracers;
-import com.palantir.tritium.metrics.MetricRegistries;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import com.palantir.util.Pair;
 import com.palantir.util.paging.AbstractPagingIterable;
@@ -485,10 +483,7 @@ private static Supplier<ExecutorService> instrumentedFixedThreadPoolSupplier(
             int numberOfThriftHosts = serversConfig.numberOfThriftHosts();
             int corePoolSize = poolSize * numberOfThriftHosts;
             int maxPoolSize = maxConnectionBurstSize * numberOfThriftHosts;
-            return Tracers.wrap(MetricRegistries.instrument(
-                    registry,
-                    createThreadPoolWihtoutSpans("Atlas Cassandra KVS", corePoolSize, maxPoolSize),
-                    "Atlas Cassandra KVS"));
+            return createThreadPoolWithoutSpans("Atlas Cassandra KVS", corePoolSize, maxPoolSize);
         };
     }
 u}(jc (90804433a22ec03af979e3c1e8590efd24af0579j\d `atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppToken.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -27,13 +27,16 @@
 import java.util.Arrays;
 
 public class LightweightOppToken implements Comparable<LightweightOppToken> {
-
     final byte[] bytes;
 
     public LightweightOppToken(byte[] bytes) {
         this.bytes = bytes;
     }
 
+    public static LightweightOppToken fromHex(String token) {
+        return new LightweightOppToken(Tokens.hexDecode(token));
+    }
+
     public static LightweightOppToken of(Cell cell) {
         return new LightweightOppToken(cell.getRowName());
     }u}(jc (b6e36b890415f2534eb284b773e57dbc27d4313bj\d Satlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/Tokens.javaj^d addedjVd K4jWd K j`d K4jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokens.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd XP  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.io.BaseEncoding;
+import java.util.Locale;
+import java.util.function.IntPredicate;
+
+final class Tokens {
+
+    private static final BaseEncoding LOWER_CASE_HEX = BaseEncoding.base16().lowerCase();
+
+    static byte[] hexDecode(String token) {
+        // OPP tokens should be lowercase -- fast path assumes this; slow fallback converts to uppercase
+        return Tokens.isAllLowercaseOrDigits(token)
+                ? LOWER_CASE_HEX.decode(token)
+                : BaseEncoding.base16().decode(token.toUpperCase(Locale.ROOT));
+    }
+
+    @VisibleForTesting
+    static boolean isAllLowercaseOrDigits(String token) {
+        return allMatch(token, ch -> Character.isLowerCase(ch) || Character.isDigit(ch));
+    }
+
+    @VisibleForTesting
+    static boolean allMatch(String token, IntPredicate predicate) {
+        for (int i = 0; i < token.length(); i++) {
+            char ch = token.charAt(i);
+            if (!predicate.test(ch)) {
+                return false;
+            }
+        }
+        return true;
+    }
+
+    private Tokens() {}
+}u}(jc (4d583484e99e4cc63642e62a005732ba4ca0d5d9j\d latlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetrics.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetrics.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X	  @@ -18,6 +18,7 @@
 import com.codahale.metrics.Counter;
 import com.codahale.metrics.Gauge;
 import com.codahale.metrics.Meter;
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableMap;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer;
@@ -26,10 +27,13 @@
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.Map;
+import java.util.concurrent.atomic.AtomicLong;
 import java.util.function.Consumer;
 import java.util.function.Supplier;
 
 public class CassandraClientPoolMetrics {
+
+    public static final String POOL_SIZE_METRIC_NAME = "pool-size";
     private final MetricsManager metricsManager;
     private final RequestMetrics aggregateRequestMetrics;
     private final Map<CassandraServer, RequestMetrics> metricsByHost = new HashMap<>();
@@ -39,12 +43,15 @@ public class CassandraClientPoolMetrics {
     // Not bundled in with request metrics, as we seek to not produce host-level metrics for economic reasons.
     private final Counter poolExhaustionCounter;
 
+    private final AtomicLong poolSize = new AtomicLong(0L);
+
     public CassandraClientPoolMetrics(MetricsManager metricsManager) {
         this.metricsManager = metricsManager;
         this.aggregateRequestMetrics = new RequestMetrics(metricsManager);
         this.poolExhaustionCounter =
                 metricsManager.registerOrGetCounter(CassandraClientPoolMetrics.class, "pool-exhaustion");
         this.outlierControllers = createOutlierControllers(metricsManager);
+        metricsManager.registerMetric(CassandraClientPoolMetrics.class, POOL_SIZE_METRIC_NAME, poolSize::get);
     }
 
     private static Map<CassandraClientPoolHostLevelMetric, DistributionOutlierController> createOutlierControllers(
@@ -93,6 +100,15 @@ public void recordPoolExhaustion() {
         poolExhaustionCounter.inc();
     }
 
+    public void recordPoolSize(long desiredPoolSize) {
+        poolSize.set(desiredPoolSize);
+    }
+
+    @VisibleForTesting
+    Long getPoolSize() {
+        return poolSize.get();
+    }
+
     @SuppressWarnings("unchecked") // Guaranteed to have the correct type
     public void registerPoolMetric(CassandraClientPoolHostLevelMetric metric, Gauge<Long> gauge, int poolNumber) {
         MetricPublicationFilter filter = outlierControllers.get(metric).registerAndCreateFilter(gauge);uq      }(jc (32b1efd1deac46330f4d5d125b203b6a950a167dj\d batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaj^d modifiedjVd KjWd Kj`d K!jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -17,18 +17,17 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
-import com.google.common.collect.FluentIterable;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableRangeMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Interner;
 import com.google.common.collect.Interners;
 import com.google.common.collect.Iterables;
+import com.google.common.collect.Maps;
 import com.google.common.collect.Range;
 import com.google.common.collect.RangeMap;
 import com.google.common.collect.Sets;
-import com.google.common.io.BaseEncoding;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs.ThriftHostsExtractingVisitor;
@@ -62,13 +61,11 @@
 import java.util.Comparator;
 import java.util.HashMap;
 import java.util.HashSet;
-import java.util.Iterator;
 import java.util.List;
-import java.util.Locale;
 import java.util.Map;
-import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Optional;
+import java.util.PrimitiveIterator.OfInt;
 import java.util.Random;
 import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
@@ -77,6 +74,7 @@
 import java.util.function.Predicate;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import java.util.stream.Stream;
 import org.apache.cassandra.thrift.EndpointDetails;
 import org.apache.cassandra.thrift.TokenRange;
@@ -162,10 +160,8 @@ public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAn
                     servers.addAll(hosts);
                     hostToDatacentersThisRefresh.putAll(hostToDatacentersOnThisTokenRange);
 
-                    LightweightOppToken startToken = new LightweightOppToken(BaseEncoding.base16()
-                            .decode(tokenRange.getStart_token().toUpperCase(Locale.ROOT)));
-                    LightweightOppToken endToken = new LightweightOppToken(BaseEncoding.base16()
-                            .decode(tokenRange.getEnd_token().toUpperCase(Locale.ROOT)));
+                    LightweightOppToken startToken = LightweightOppToken.fromHex(tokenRange.getStart_token());
+                    LightweightOppToken endToken = LightweightOppToken.fromHex(tokenRange.getEnd_token());
                     if (startToken.compareTo(endToken) <= 0) {
                         newTokenRing.put(Range.openClosed(startToken, endToken), hosts);
                     } else {
@@ -306,16 +302,16 @@ private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) th
     }
 
     private int getKnownPort() throws UnknownHostException {
-        // explicitly not using streams due to allocation overhead
-        return onlyPort(FluentIterable.concat(
-                        FluentIterable.from(currentPools.keySet()).transform(CassandraServer::proxy),
-                        getServersSocketAddressesFromConfig())
-                .transform(InetSocketAddress::getPort));
+        // Avoid allocations and intermediate collection as this is on hot path
+        return only(Stream.concat(
+                        currentPools.keySet().stream().map(CassandraServer::proxy),
+                        getServersSocketAddressesFromConfig().stream())
+                .mapToInt(InetSocketAddress::getPort));
     }
 
     @VisibleForTesting
-    static int onlyPort(Iterable<? extends Integer> iterable) throws UnknownHostException {
-        Iterator<? extends Integer> iterator = iterable.iterator();
+    static int only(IntStream intStream) throws UnknownHostException {
+        OfInt iterator = intStream.iterator();
         if (!iterator.hasNext()) {
             throw new UnknownHostException("No single known port");
         }
@@ -420,9 +416,8 @@ Set<CassandraServer> maybeFilterLocalHosts(Set<CassandraServer> hosts) {
     @VisibleForTesting
     Optional<CassandraServer> getRandomHostByActiveConnections(Set<CassandraServer> desiredHosts) {
         Set<CassandraServer> localFilteredHosts = maybeFilterLocalHosts(desiredHosts);
-        ImmutableMap<CassandraServer, CassandraClientPoolingContainer> matchingPools = currentPools.entrySet().stream()
-                .filter(e -> localFilteredHosts.contains(e.getKey()))
-                .collect(ImmutableMap.toImmutableMap(Entry::getKey, Entry::getValue));
+        Map<CassandraServer, CassandraClientPoolingContainer> matchingPools =
+                ImmutableMap.copyOf(Maps.filterKeys(currentPools, localFilteredHosts::contains));
         if (matchingPools.isEmpty()) {
             return Optional.empty();
         }u}(jc (0018cc3f41f93c005b4fbadee9f0f569b180a38cj\d datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolTest.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X&  @@ -35,6 +35,7 @@
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs;
 import com.palantir.atlasdb.cassandra.ImmutableDefaultConfig;
+import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraClientPoolMetrics;
 import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
 import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService;
 import com.palantir.atlasdb.util.MetricsManagers;
@@ -224,7 +225,7 @@ private void runTwoNoopsOnTwoHostsAndThrowFromSecondRunOnFirstHost(Exception exc
     }
 
     private CassandraServer getServerForIndex(int index) {
-        return CassandraServer.of(InetSocketAddress.createUnresolved(Integer.toString(index), index));
+        return CassandraServer.of(InetSocketAddress.createUnresolved(Integer.toString(index), 8000));
     }
 
     @Test
@@ -310,6 +311,7 @@ public void hostIsAutomaticallyRemovedOnStartup() {
 
         createClientPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1);
+        assertPoolSizeMetricIsEqualTo(1);
     }
 
     @Test
@@ -321,10 +323,12 @@ public void hostIsAutomaticallyRemovedOnRefresh() {
 
         createClientPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2, CASS_SERVER_3);
+        assertPoolSizeMetricIsEqualTo(3);
 
         setCassandraServersTo(CASS_SERVER_1, CASS_SERVER_2);
         refreshPool();
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2);
+        assertPoolSizeMetricIsEqualTo(2);
     }
 
     @Test
@@ -495,7 +499,7 @@ private void setCassandraServersTo(CassandraServer... servers) {
 
     private CassandraClientPoolImpl createClientPool() {
         return CassandraClientPoolImpl.createImplForTest(
-                MetricsManagers.createForTests(),
+                MetricsManagers.of(metricRegistry, taggedMetricRegistry),
                 config,
                 refreshableRuntimeConfig,
                 CassandraClientPoolImpl.StartupChecks.DO_NOT_RUN,
@@ -687,4 +691,16 @@ private void setupHostsWithInconsistentTopology(CassandraServer... cassandraServ
     private void refreshPool() {
         deterministicExecutor.tick(POOL_REFRESH_INTERVAL_SECONDS, TimeUnit.SECONDS);
     }
+
+    private void assertPoolSizeMetricIsEqualTo(long expected) {
+        assertThat(taggedMetricRegistry
+                        .<Long>gauge(MetricName.builder()
+                                .safeName(MetricRegistry.name(
+                                        CassandraClientPoolMetrics.class,
+                                        CassandraClientPoolMetrics.POOL_SIZE_METRIC_NAME))
+                                .build())
+                        .get()
+                        .getValue())
+                .isEqualTo(expected);
+    }
 }u}(jc (3753c37f1661486b791e667b00225ee922b75441j\d datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppTokenTest.javaj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppTokenTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X5  @@ -0,0 +1,167 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.conjure.java.lib.Bytes;
+import java.nio.ByteBuffer;
+import java.util.Collection;
+import java.util.Locale;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+import org.junit.runners.Parameterized.Parameter;
+import org.junit.runners.Parameterized.Parameters;
+
+@RunWith(Parameterized.class)
+public class LightweightOppTokenTest {
+    @Parameter()
+    public String input;
+
+    @Parameters(name = "{index}: input=\"{0}\"")
+    public static Collection<Object[]> data() {
+        return TokensTest.generateTokens()
+                .flatMap(input -> Stream.of(input, input.toLowerCase(Locale.ROOT), input.toUpperCase(Locale.ROOT)))
+                .map(input -> new Object[] {input})
+                .collect(Collectors.toList());
+    }
+
+    @Test
+    public void inputsAreValidBase16Strings() {
+        assertThat(input).matches("^[0-9a-fA-F]*$");
+        assertThat(input.length() % 2 == 0)
+                .as("input must be even length to base16 decode")
+                .isTrue();
+        assertThat(CassandraHex.hexToBytes(input)).hasSize(input.length() / 2);
+    }
+
+    @Test
+    public void createFromHexEncodedStringRegardlessOfCase() {
+        LightweightOppToken token = LightweightOppToken.fromHex(input);
+        LightweightOppToken tokenFromLowerCase = LightweightOppToken.fromHex(input.toLowerCase(Locale.ROOT));
+        LightweightOppToken tokenFromUpperCase = LightweightOppToken.fromHex(input.toUpperCase(Locale.ROOT));
+        LightweightOppToken tokenFromBytes = new LightweightOppToken(CassandraHex.hexToBytes(input));
+
+        assertThat(token.bytes)
+                .hasSize(input.length() / 2)
+                .isEqualTo(tokenFromLowerCase.bytes)
+                .isEqualTo(tokenFromUpperCase.bytes)
+                .isEqualTo(tokenFromBytes.bytes);
+        assertThat(token)
+                .isNotNull()
+                .isEqualTo(tokenFromLowerCase)
+                .isEqualTo(tokenFromUpperCase)
+                .isEqualTo(tokenFromBytes)
+                .isEqualByComparingTo(tokenFromLowerCase)
+                .isEqualByComparingTo(tokenFromUpperCase)
+                .isEqualByComparingTo(tokenFromBytes);
+    }
+
+    @Test
+    public void fromHexCorrectlyDeserializesStrings() throws Exception {
+        LightweightOppToken token = LightweightOppToken.fromHex(input);
+        Bytes expectedBytes = Bytes.from(org.apache.commons.codec.binary.Hex.decodeHex(input));
+        assertThat(token.bytes).contains(expectedBytes.asNewByteArray());
+        assertThat(token.isEmpty()).isEqualTo(input.length() == 0);
+        ByteBuffer deserialized = token.deserialize();
+        assertThat(deserialized).isEqualTo(expectedBytes.asReadOnlyByteBuffer());
+        assertThat(deserialized.remaining()).isEqualTo(input.length() / 2);
+        assertThat(token.toString()).isEqualToIgnoringCase(input);
+    }
+
+    @Test
+    public void tokenMatchesCassandraImplementation() throws Exception {
+        // Test compatibility with Cassandra hex conversions from:
+        // https://github.com/palantir/cassandra/blob/palantir-cassandra-2.2.18/src/java/org/apache/cassandra/dht/ByteOrderedPartitioner.java#L74
+        Bytes expectedBytes = Bytes.from(org.apache.commons.codec.binary.Hex.decodeHex(input));
+        String hexFromCassandra = CassandraHex.bytesToHex(expectedBytes.asNewByteArray());
+        byte[] bytesFromCassandra = CassandraHex.hexToBytes(hexFromCassandra);
+        LightweightOppToken token = LightweightOppToken.fromHex(hexFromCassandra);
+        assertThat(Tokens.isAllLowercaseOrDigits(hexFromCassandra))
+                .as("Expect lowercase hex %s", hexFromCassandra)
+                .isTrue();
+        assertThat(token).isEqualTo(new LightweightOppToken(expectedBytes.asNewByteArray()));
+        assertThat(token.bytes).contains(bytesFromCassandra);
+    }
+
+    /*
+     * Licensed to the Apache Software Foundation (ASF) under one
+     * or more contributor license agreements.  See the NOTICE file
+     * distributed with this work for additional information
+     * regarding copyright ownership.  The ASF licenses this file
+     * to you under the Apache License, Version 2.0 (the
+     * "License"); you may not use this file except in compliance
+     * with the License.  You may obtain a copy of the License at
+     *
+     *     http://www.apache.org/licenses/LICENSE-2.0
+     *
+     * Unless required by applicable law or agreed to in writing, software
+     * distributed under the License is distributed on an "AS IS" BASIS,
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     * See the License for the specific language governing permissions and
+     * limitations under the License.
+     */
+    // Imported from cassandra to test using their conversions
+    // https://github.com/palantir/cassandra/blob/palantir-cassandra-2.2.18/src/java/org/apache/cassandra/utils/Hex.java
+    static final class CassandraHex {
+        private static final byte[] charToByte = new byte[256];
+
+        // package protected for use by ByteBufferUtil. Do not modify this array !!
+        static final char[] byteToChar = new char[16];
+
+        static {
+            for (char c = 0; c < charToByte.length; ++c) {
+                if (c >= '0' && c <= '9') charToByte[c] = (byte) (c - '0');
+                else if (c >= 'A' && c <= 'F') charToByte[c] = (byte) (c - 'A' + 10);
+                else if (c >= 'a' && c <= 'f') charToByte[c] = (byte) (c - 'a' + 10);
+                else charToByte[c] = (byte) -1;
+            }
+
+            for (int i = 0; i < 16; ++i) {
+                byteToChar[i] = Integer.toHexString(i).charAt(0);
+            }
+        }
+
+        public static byte[] hexToBytes(String str) {
+            if (str.length() % 2 == 1)
+                throw new NumberFormatException("An hex string representing bytes must have an even length");
+
+            byte[] bytes = new byte[str.length() / 2];
+            for (int i = 0; i < bytes.length; i++) {
+                byte halfByte1 = charToByte[str.charAt(i * 2)];
+                byte halfByte2 = charToByte[str.charAt(i * 2 + 1)];
+                if (halfByte1 == -1 || halfByte2 == -1) throw new NumberFormatException("Non-hex characters in " + str);
+                bytes[i] = (byte) ((halfByte1 << 4) | halfByte2);
+            }
+            return bytes;
+        }
+
+        public static String bytesToHex(byte... bytes) {
+            char[] c = new char[bytes.length * 2];
+            for (int i = 0; i < bytes.length; i++) {
+                int bint = bytes[i];
+                c[i * 2] = byteToChar[(bint & 0xf0) >> 4];
+                c[1 + i * 2] = byteToChar[bint & 0x0f];
+            }
+
+            return new String(c);
+        }
+    }
+}u}(jc (db57abd4b23910bc5e3468db860764b587878808j\d Watlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/TokensTest.javaj^d addedjVd KjjWd K j`d Kjjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FTokensTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X8  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.io.BaseEncoding;
+import com.google.common.primitives.Longs;
+import java.util.Locale;
+import java.util.concurrent.ThreadLocalRandom;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+import org.junit.Test;
+
+public final class TokensTest {
+    @Test
+    public void decodeHex() {
+        generateTokens().forEach(input -> assertThat(Tokens.hexDecode(input))
+                .as("token '%s'", input)
+                .hasSize(input.length() / 2));
+    }
+
+    @Test
+    public void isAllLowercaseOrDigits() {
+        assertThat(Tokens.isAllLowercaseOrDigits("abcdef01234567890")).isTrue();
+        assertThat(Tokens.isAllLowercaseOrDigits("01234567890abcdef")).isTrue();
+        assertThat(Tokens.isAllLowercaseOrDigits("Abcdef01234567890")).isFalse();
+        assertThat(Tokens.isAllLowercaseOrDigits("01234567890ABCDEF")).isFalse();
+    }
+
+    @Test
+    public void allMatch() {
+        assertThat(Tokens.allMatch("01234567890", Character::isDigit)).isTrue();
+        assertThat(Tokens.allMatch("0123456789A", Character::isDigit)).isFalse();
+        assertThat(Tokens.allMatch("ABCEFGHIJKLMNOPQRSTUVWXYZ", Character::isUpperCase))
+                .isTrue();
+        assertThat(Tokens.allMatch("ABCEFGHIJKLMNOPQRSTUVWXYZ", Character::isLowerCase))
+                .isFalse();
+        assertThat(Tokens.allMatch("abcefghijklmnopqrstuvwxyz", Character::isLowerCase))
+                .isTrue();
+        assertThat(Tokens.allMatch("abcefghijklmnopqrstuvwxyz", Character::isUpperCase))
+                .isFalse();
+    }
+
+    static Stream<String> generateTokens() {
+        return Stream.concat(
+                        Stream.of(
+                                "",
+                                "0F",
+                                "decafbad",
+                                "0123456789ABCDEF",
+                                "0123456789abcdef",
+                                "0123456789Abcdef",
+                                "0123456789aBcdef",
+                                "0123456789abCdef",
+                                "0123456789abcDef",
+                                "0123456789abcdEf",
+                                "0123456789abcdeF",
+                                Long.toHexString(Long.MIN_VALUE),
+                                Long.toHexString(Long.MAX_VALUE)),
+                        Stream.concat(
+                                IntStream.range(0, 32).mapToObj(i -> {
+                                    byte[] bytes = new byte[i * 2];
+                                    ThreadLocalRandom.current().nextBytes(bytes);
+                                    return BaseEncoding.base16().encode(bytes);
+                                }),
+                                IntStream.range(0, 1_000).mapToObj(_i -> BaseEncoding.base16()
+                                        .encode(Longs.toByteArray(
+                                                ThreadLocalRandom.current().nextLong())))))
+                .flatMap(input -> Stream.of(
+                        input, input.toLowerCase(Locale.ROOT), input.toUpperCase(Locale.ROOT), shuffleCase(input)));
+    }
+
+    private static String shuffleCase(String input) {
+        if (input == null || input.isEmpty()) {
+            return input;
+        }
+        StringBuilder sb = new StringBuilder(input.length());
+        for (int i = 0; i < input.length(); i++) {
+            char ch = input.charAt(i);
+            if (Character.isAlphabetic(ch) && ThreadLocalRandom.current().nextBoolean()) {
+                if (Character.isLowerCase(ch)) {
+                    ch = Character.toUpperCase(ch);
+                } else {
+                    ch = Character.toLowerCase(ch);
+                }
+            }
+            sb.append(ch);
+        }
+        return sb.toString();
+    }
+}u}(jc (bc3e5261d087a84993ba8ae1e523c8b05fc4c179j\d patlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetricsTest.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -33,6 +33,8 @@ public class CassandraClientPoolMetricsTest {
     private final MetricsManager metricsManager =
             MetricsManagers.of(new MetricRegistry(), new DefaultTaggedMetricRegistry(), Refreshable.only(true));
 
+    private final CassandraClientPoolMetrics metrics = new CassandraClientPoolMetrics(metricsManager);
+
     @Test
     public void metricsAreProducedAndFiltered() {
         CassandraClientPoolMetrics metrics = new CassandraClientPoolMetrics(metricsManager);
@@ -57,6 +59,18 @@ public void metricsAreProducedAndFiltered() {
                 .containsKey(createMeanActiveTimeMillisMetric("mean"));
     }
 
+    @Test
+    public void recordPoolSizeSetsSizeToLastReportedValue() {
+        metrics.recordPoolSize(100);
+        assertThat(metrics.getPoolSize()).isEqualTo(100);
+        metrics.recordPoolSize(-13);
+        assertThat(metrics.getPoolSize()).isEqualTo(-13);
+        metrics.recordPoolSize(25);
+        assertThat(metrics.getPoolSize()).isEqualTo(25);
+        metrics.recordPoolSize(0);
+        assertThat(metrics.getPoolSize()).isEqualTo(0);
+    }
+
     private static MetricName createMeanActiveTimeMillisMetric(String pool) {
         return MetricName.builder()
                 .safeName(MetricRegistry.name(u}(jc (ea93d4225293149bfc275c742ea245b6b263274fj\d fatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraServiceTest.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -33,7 +33,6 @@
 import com.palantir.refreshable.Refreshable;
 import java.net.InetSocketAddress;
 import java.net.UnknownHostException;
-import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.ThreadLocalRandom;
@@ -272,12 +271,10 @@ public void getRandomHostByActiveConnectionsReturnsDesiredHost() {
 
     @Test
     public void ports() throws Exception {
-        assertThat(CassandraService.onlyPort(List.of(1, 1, 1))).isEqualTo(1);
-        assertThat(IntStream.generate(() -> 4224).boxed().limit(15).collect(Collectors.toList()))
-                .hasSize(15)
-                .satisfies(cluster ->
-                        assertThat(CassandraService.onlyPort(cluster)).isEqualTo(4224));
-        assertThatThrownBy(() -> CassandraService.onlyPort(List.of(1, 2, 1)))
+        assertThat(CassandraService.only(IntStream.of(1, 1, 1))).isEqualTo(1);
+        assertThat(CassandraService.only(IntStream.generate(() -> 4224).limit(15)))
+                .isEqualTo(4224);
+        assertThatThrownBy(() -> CassandraService.only(IntStream.of(1, 2, 1)))
                 .isInstanceOf(UnknownHostException.class)
                 .hasMessageContaining("No single known port");
     }u}(jc (5504ea3d7692e9bd5feb8a902db77c14b223e48fj\d atlasdb-cli/build.gradlej^d modifiedjVd KjWd K j`d Kjad lhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cli%2Fbuild.gradlejcd khttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cli%2Fbuild.gradlejed ~https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cli%2Fbuild.gradle?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -8,6 +8,7 @@ dependencies {
     api project(':atlasdb-client')
     api project(':atlasdb-config')
     api project(':timestamp-api')
+    testImplementation project(path: ':flake-rule')
 
     compileOnly 'com.google.dagger:dagger'
     implementation 'io.airlift:airline'u}(jc (697bebce05ea5400b3ed453d3cb76e4e2ffc631ej\d Tatlasdb-cli/src/test/java/com/palantir/atlasdb/cli/command/TestTimestampCommand.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -37,6 +37,8 @@
 import com.palantir.atlasdb.services.test.DaggerTestAtlasDbServices;
 import com.palantir.atlasdb.services.test.TestAtlasDbServices;
 import com.palantir.common.time.Clock;
+import com.palantir.flake.FlakeRetryingRule;
+import com.palantir.flake.ShouldRetry;
 import com.palantir.lock.LockClient;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;
@@ -60,6 +62,7 @@
 import org.junit.After;
 import org.junit.Before;
 import org.junit.BeforeClass;
+import org.junit.Rule;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
@@ -71,6 +74,9 @@ public class TestTimestampCommand {
     private static AtlasDbServicesFactory moduleFactory;
     private static List<String> cliArgs;
 
+    @Rule
+    public FlakeRetryingRule flakeRetryingRule = new FlakeRetryingRule();
+
     @BeforeClass
     public static void oneTimeSetup() throws Exception {
         lock = StringLockDescriptor.of("lock");
@@ -181,6 +187,7 @@ public void testWithFile() throws Exception {
         runAndVerifyCliForFile(inputFileString);
     }
 
+    @ShouldRetry
     @Test
     public void testWithFileWithDir() throws Exception {
         String inputFileString = "existing-dir/test.timestamp";u}(jc (605212243716ab96bbbde3a8b0fd9ec3aa421b48j\d \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/AbstractKeyValueService.javaj^d modifiedjVd K	jWd K
j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X^	  @@ -70,38 +70,37 @@ public AbstractKeyValueService(ExecutorService executor) {
     /**
      * Creates a fixed thread pool.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param corePoolSize size of the core pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createFixedThreadPool(String threadNamePrefix, int corePoolSize) {
-        return createThreadPool(threadNamePrefix, corePoolSize, corePoolSize);
+    protected static ExecutorService createFixedThreadPool(String name, int corePoolSize) {
+        return createThreadPool(name, corePoolSize, corePoolSize);
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPool(String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPool(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPool(String name, int _corePoolSize, int maxPoolSize) {
+        return PTExecutors.newFixedThreadPool(maxPoolSize, name);
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      * It does not create a span.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPoolWihtoutSpans(
-            String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPoolWithoutSpans(String name, int _corePoolSize, int maxPoolSize) {
+        return PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, name);
     }
 
     @Overrideu}(jc (8b6e6cafaf4bfeb159b9821f6b05b34ee3d1bd3bj\d \atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/CompactMetadataTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FCompactMetadataTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FCompactMetadataTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FCompactMetadataTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "VridlmiMEcMLIrwQyqcRHQ==";
+    static String __CLASS_HASH = "PSwZcMysyzWemW+V1hGphQ==";
 }u}(jc (a9253d217f7922c43a4719d7eba66ff928fd42c2j\d Zatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepIdToNameTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepIdToNameTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepIdToNameTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepIdToNameTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -731,6 +732,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -754,5 +756,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "XhY0sfHU7ygS3NHM1+HK7Q==";
+    static String __CLASS_HASH = "XRAvO+BpbFM1l4QIBkArjA==";
 }u}(jc (92e033f8a02b6af466530e87d3272b1a29f5b16bj\d Zatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepNameToIdTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepNameToIdTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepNameToIdTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepNameToIdTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -672,6 +673,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -695,5 +697,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "sJD6WdNMiuuJDNsMwkhsvA==";
+    static String __CLASS_HASH = "ZVl8vtH0bWDeCq5tKMA3Aw==";
 }u}(jc (466585bf6d5f35472abb07bf7c9340d1fec25923j\d Zatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepPriorityTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepPriorityTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepPriorityTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepPriorityTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -1228,6 +1229,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -1251,5 +1253,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "SYJq7EPSrqhI5ojA5DS3vQ==";
+    static String __CLASS_HASH = "rABMHBdCo+LhmxyLoeFFwQ==";
 }u}(jc (91aeab67a811c50ed99500a6dbab71f30426896bj\d _atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepShardProgressTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepShardProgressTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepShardProgressTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepShardProgressTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -684,6 +685,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -707,5 +709,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "vxDaJU4r7oWggNPDq0Qu6Q==";
+    static String __CLASS_HASH = "2Fj81SsG3WRpPjQ1kYDw3A==";
 }u}(jc (e1e792ef2a8d8d17d6dc1f0ebf62edaa5f434f46j\d [atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepableCellsTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableCellsTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableCellsTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableCellsTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -766,6 +767,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -789,5 +791,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "0G8vHXvwR/HGZ0ZrAaeqTQ==";
+    static String __CLASS_HASH = "hMikiCT1ysKqkzSOdiKujg==";
 }u}(jc (a0fed777bc3cae52361dd15d5e1f8d185ff33447j\d `atlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/SweepableTimestampsTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableTimestampsTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableTimestampsTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FSweepableTimestampsTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -763,6 +764,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -786,5 +788,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Jw99h/0z3T8JcRN8j6d17w==";
+    static String __CLASS_HASH = "66qq5d5do+PszHk7DehVPA==";
 }u}(jc (04e0abea5b6d71d399ce0be42bf5e788186bb907j\d Xatlasdb-client/src/main/java/com/palantir/atlasdb/schema/generated/TableClearsTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FTableClearsTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FTableClearsTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fgenerated%2FTableClearsTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "G5tVqtzNmeGOIdOf4QSySA==";
+    static String __CLASS_HASH = "Wm/9d03F9WHgPC5jjTUOaA==";
 }u}(jc (8adb21b448fa2a5a257bb87fb7a4c6fc9e50e566j\d catlasdb-client/src/main/java/com/palantir/atlasdb/table/description/render/StreamStoreRenderer.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Frender%2FStreamStoreRenderer.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Frender%2FStreamStoreRenderer.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Frender%2FStreamStoreRenderer.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X
  @@ -362,7 +362,8 @@ private void putMetadataAndHashIndexTask() {
                     line("}");
                     line("putHashIndexTask(t, rowsToStoredMetadata);");
                     line();
-                    line("Map<", StreamMetadataRow, ", StreamMetadata> rowsToMetadata = new HashMap<>();");
+                    line("Map<", StreamMetadataRow, ", StreamMetadata> rowsToMetadata =");
+                    line("        Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());");
                     line("rowsToMetadata.putAll(rowsToStoredMetadata);");
                     line("rowsToMetadata.putAll(rowsToUnstoredMetadata);");
                     line("mdTable.putMetadata(rowsToMetadata);");
@@ -462,7 +463,10 @@ private void getMetadata() {
                             "Map<",
                             StreamMetadataRow,
                             ", StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));");
-                    line("Map<", StreamId, ", StreamMetadata> ret = new HashMap<>();");
+                    line(
+                            "Map<",
+                            StreamId,
+                            ", StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());");
                     line("for (Map.Entry<", StreamMetadataRow, ", StreamMetadata> e : metadatas.entrySet()) {");
                     {
                         line("ret.put(e.getKey().getId(), e.getValue());");
@@ -494,7 +498,7 @@ private void lookupStreamIdsByHash() {
                             ", ",
                             StreamHashAidxColumnValue,
                             "> m = idx.getRowsMultimap(rows);");
-                    line("Map<", StreamId, ", Sha256Hash> hashForStreams = new HashMap<>();");
+                    line("Map<", StreamId, ", Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());");
                     line("for (", StreamHashAidxRow, " r : m.keySet()) {");
                     {
                         line("for (", StreamHashAidxColumnValue, " v : m.get(r)) {");
@@ -535,7 +539,7 @@ private void lookupStreamIdsByHash() {
             private void getHashIndexRowsForHashes() {
                 line("private Set<", StreamHashAidxRow, "> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {");
                 {
-                    line("Set<", StreamHashAidxRow, "> rows = new HashSet<>();");
+                    line("Set<", StreamHashAidxRow, "> rows = Sets.newHashSetWithExpectedSize(hashes.size());");
                     line("for (Sha256Hash h : hashes) {");
                     {
                         line("rows.add(", StreamHashAidxRow, ".of(h));");u}(jc (3759f65a37646f6fbe6a02bde98fbb9e88c58ec5j\d Zatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CachingTransaction.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -15,8 +15,8 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSortedMap;
 import com.google.common.collect.Iterables;
@@ -63,7 +63,7 @@ public CachingTransaction(Transaction delegate) {
 
     public CachingTransaction(Transaction delegate, long maxCachedCells) {
         this.delegate = delegate;
-        cellCache = CacheBuilder.newBuilder()
+        cellCache = Caffeine.newBuilder()
                 .maximumSize(maxCachedCells)
                 .softValues()
                 .recordStats()u}(jc (ffcff3662b5f930a1b2f09879755c6fb0014cd88j\d `atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ConflictDetectionManager.javaj^d modifiedjVd KjWd Kj`d K
jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManager.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManager.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManager.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X$  @@ -15,9 +15,9 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.CacheLoader;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import java.util.Map;
@@ -39,7 +39,7 @@ public class ConflictDetectionManager {
      *  (This has always been the behavior of this class; I'm simply calling it out)
      */
     public ConflictDetectionManager(CacheLoader<TableReference, Optional<ConflictHandler>> loader) {
-        this.cache = CacheBuilder.newBuilder().maximumSize(100_000).build(loader);
+        this.cache = Caffeine.newBuilder().maximumSize(100_000).build(loader);
     }
 
     public void warmCacheWith(Map<TableReference, Optional<ConflictHandler>> preload) {
@@ -51,6 +51,6 @@ public Map<TableReference, Optional<ConflictHandler>> getCachedValues() {
     }
 
     public Optional<ConflictHandler> get(TableReference tableReference) {
-        return cache.getUnchecked(tableReference);
+        return cache.get(tableReference);
     }
 }u}(jc (11eda8300ddf8db89380d1fcb74052090f9cf9e9j\d aatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ConflictDetectionManagers.javaj^d modifiedjVd K
jWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManagers.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManagers.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManagers.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X3
  @@ -15,10 +15,8 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
-import com.google.common.cache.CacheLoader;
 import com.google.common.collect.Maps;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.logging.LoggingArgs;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
@@ -32,12 +30,7 @@ public final class ConflictDetectionManagers {
     private ConflictDetectionManagers() {}
 
     public static ConflictDetectionManager createWithNoConflictDetection() {
-        return new ConflictDetectionManager(new CacheLoader<>() {
-            @Override
-            public Optional<ConflictHandler> load(TableReference tableReference) throws Exception {
-                return Optional.of(ConflictHandler.IGNORE_ALL);
-            }
-        });
+        return new ConflictDetectionManager(tableReference -> Optional.of(ConflictHandler.IGNORE_ALL));
     }
 
     /**
@@ -65,18 +58,15 @@ public static ConflictDetectionManager create(KeyValueService kvs) {
     }
 
     private static ConflictDetectionManager create(KeyValueService kvs, boolean warmCache) {
-        ConflictDetectionManager conflictDetectionManager = new ConflictDetectionManager(new CacheLoader<>() {
-            @Override
-            public Optional<ConflictHandler> load(TableReference tableReference) throws Exception {
-                byte[] metadata = kvs.getMetadataForTable(tableReference);
-                if (metadata.length == 0) {
-                    log.error(
-                            "Tried to make a transaction over a table that has no metadata: {}.",
-                            LoggingArgs.tableRef("tableReference", tableReference));
-                    return Optional.empty();
-                } else {
-                    return Optional.of(getConflictHandlerFromMetadata(metadata));
-                }
+        ConflictDetectionManager conflictDetectionManager = new ConflictDetectionManager(tableReference -> {
+            byte[] metadata = kvs.getMetadataForTable(tableReference);
+            if (metadata.length == 0) {
+                log.error(
+                        "Tried to make a transaction over a table that has no metadata: {}.",
+                        LoggingArgs.tableRef("tableReference", tableReference));
+                return Optional.empty();
+            } else {
+                return Optional.of(getConflictHandlerFromMetadata(metadata));
             }
         });
         if (warmCache) {u}(jc (02903d03f745dbe6781ac51c6ebebc98782ed544j\d datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/NoDuplicateWritesTransaction.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FNoDuplicateWritesTransaction.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FNoDuplicateWritesTransaction.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FNoDuplicateWritesTransaction.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -15,9 +15,8 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.io.BaseEncoding;
 import com.palantir.atlasdb.keyvalue.api.Cell;
@@ -31,7 +30,6 @@
 import java.util.HashMap;
 import java.util.Map;
 import java.util.Set;
-import java.util.concurrent.ExecutionException;
 
 /**
  * Disallows the same cell from being written twice with different values within
@@ -43,13 +41,8 @@ public class NoDuplicateWritesTransaction extends ForwardingTransaction {
 
     final Transaction delegate;
     final ImmutableSet<TableReference> noDoubleWritesTables;
-    final LoadingCache<TableReference, Map<Cell, byte[]>> writes = CacheBuilder.newBuilder()
-            .build(new CacheLoader<TableReference, Map<Cell, byte[]>>() {
-                @Override
-                public Map<Cell, byte[]> load(TableReference input) {
-                    return Collections.synchronizedMap(new HashMap<>());
-                }
-            });
+    final LoadingCache<TableReference, Map<Cell, byte[]>> writes =
+            Caffeine.newBuilder().build(input -> Collections.synchronizedMap(new HashMap<>()));
 
     public NoDuplicateWritesTransaction(Transaction delegate, Iterable<TableReference> noDoubleWritesTables) {
         this.delegate = delegate;
@@ -81,12 +74,7 @@ public void delete(TableReference tableRef, Set<Cell> keys) {
 
     private void validateWrites(TableReference tableRef, Map<Cell, byte[]> values) {
         if (noDoubleWritesTables.contains(tableRef)) {
-            Map<Cell, byte[]> table;
-            try {
-                table = writes.get(tableRef);
-            } catch (ExecutionException e) {
-                throw new RuntimeException(e.getCause());
-            }
+            Map<Cell, byte[]> table = writes.get(tableRef);
             for (Map.Entry<Cell, byte[]> value : values.entrySet()) {
                 byte[] newValue = value.getValue();
                 byte[] oldValue = table.get(value.getKey());u}(jc (5c2151332395c0abdd30bf0e9e81f9ea340e0275j\d latlasdb-client/src/test/java/com/palantir/atlasdb/table/description/generated/GenericRangeScanTestTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FGenericRangeScanTestTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FGenericRangeScanTestTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FGenericRangeScanTestTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -782,6 +783,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -805,5 +807,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "kqedl2mBeAbedzXlMy+Imw==";
+    static String __CLASS_HASH = "YkaZuzFs8LBGmT3/H/I5eg==";
 }u}(jc (3ca57c907f8e38fa47c80cd5637bb2936c356d75j\d eatlasdb-client/src/test/java/com/palantir/atlasdb/table/description/generated/RangeScanTestTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FRangeScanTestTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FRangeScanTestTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2Fgenerated%2FRangeScanTestTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -720,6 +721,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -743,5 +745,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "T2bysa8OZ+/WjRrXnIqCPA==";
+    static String __CLASS_HASH = "1i+tNWsmUREmFNoXh6QUeg==";
 }u}(jc (fc7b8e44b9e02cbd50722b39931ad66604c4fc42j\d atlasdb-commons/build.gradlej^d modifiedjVd KjWd K j`d Kjad phttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fbuild.gradlejcd ohttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fbuild.gradlejed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fbuild.gradle?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd XY  @@ -16,6 +16,7 @@ dependencies {
     }
 
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
+    implementation 'com.github.ben-manes.caffeine:caffeine'
     implementation 'com.google.errorprone:error_prone_annotations'
     implementation 'com.google.guava:guava'
     implementation 'com.palantir.safe-logging:safe-logging'u}(jc (7d30fe4fd283df55958201d1f120806d5611aa18j\d ^atlasdb-commons/src/main/java/com/palantir/common/exception/TableMappingNotFoundException.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fexception%2FTableMappingNotFoundException.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fexception%2FTableMappingNotFoundException.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fexception%2FTableMappingNotFoundException.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -23,4 +23,8 @@ public TableMappingNotFoundException(String msg) {
     public TableMappingNotFoundException(Throwable cause) {
         super(cause);
     }
+
+    public TableMappingNotFoundException(String msg, Throwable cause) {
+        super(msg, cause);
+    }
 }u      }(jc (e8b18dde40473e321f4bc1e4cfc195d6eef76a8bj\d Matlasdb-commons/src/main/java/com/palantir/util/MutuallyExclusiveSetLock.javaj^d modifiedjVd K
jWd Kj`d K$jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FMutuallyExclusiveSetLock.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FMutuallyExclusiveSetLock.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FMutuallyExclusiveSetLock.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -15,11 +15,9 @@
  */
 package com.palantir.util;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Sets;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.ArrayList;
@@ -54,17 +52,9 @@
  * @author carrino
  */
 public class MutuallyExclusiveSetLock<T> {
-    private final boolean fair;
     private final Comparator<? super T> comparator;
-    private final Set<Thread> threadSet = Sets.newSetFromMap(new ConcurrentHashMap<Thread, Boolean>());
-    private final LoadingCache<T, ReentrantLock> syncMap = CacheBuilder.newBuilder()
-            .weakValues()
-            .build(new CacheLoader<T, ReentrantLock>() {
-                @Override
-                public ReentrantLock load(T key) {
-                    return new ReentrantLock(fair);
-                }
-            });
+    private final Set<Thread> threadSet = ConcurrentHashMap.newKeySet();
+    private final LoadingCache<T, ReentrantLock> syncMap;
 
     /**
      * Constructs a new <code>MutuallyExclusiveSetLock</code>
@@ -102,12 +92,12 @@ public MutuallyExclusiveSetLock(boolean fair) {
      */
     @Deprecated
     public MutuallyExclusiveSetLock(boolean fair, Comparator<? super T> comparator) {
-        this.fair = fair;
         this.comparator = comparator;
+        this.syncMap = Caffeine.newBuilder().weakValues().build(key -> new ReentrantLock(fair));
     }
 
     public static <T extends Comparable<? super T>> MutuallyExclusiveSetLock<T> create(boolean fair) {
-        return new MutuallyExclusiveSetLock<T>(fair);
+        return new MutuallyExclusiveSetLock<>(fair);
     }
 
     /**
@@ -119,7 +109,7 @@ public static <T extends Comparable<? super T>> MutuallyExclusiveSetLock<T> crea
      * @param comparator a <code>java.util.Comparator</code> to use in determining lock order.
      */
     public static <T> MutuallyExclusiveSetLock<T> createWithComparator(boolean fair, Comparator<? super T> comparator) {
-        return new MutuallyExclusiveSetLock<T>(fair, comparator);
+        return new MutuallyExclusiveSetLock<>(fair, comparator);
     }
 
     /**
@@ -130,7 +120,7 @@ public static <T> MutuallyExclusiveSetLock<T> createWithComparator(boolean fair,
      */
     public boolean isLocked(Iterable<T> items) {
         for (T t : items) {
-            ReentrantLock lock = syncMap.getUnchecked(t);
+            ReentrantLock lock = syncMap.get(t);
             if (!lock.isHeldByCurrentThread()) {
                 return false;
             }
@@ -157,7 +147,7 @@ public LockState<T> lockOnObjects(Iterable<T> lockObjects) {
             lock.lock();
         }
         threadSet.add(Thread.currentThread());
-        return new LockState<T>(sortedLocks.values(), this);
+        return new LockState<>(sortedLocks.values(), this);
     }
 
     public LockState<T> lockOnObjectsInterruptibly(Iterable<T> lockObjects) throws InterruptedException {
@@ -170,7 +160,7 @@ public LockState<T> lockOnObjectsInterruptibly(Iterable<T> lockObjects) throws I
                 lock.lockInterruptibly();
                 toUnlock.add(lock);
             }
-            LockState<T> ret = new LockState<T>(sortedLocks.values(), this);
+            LockState<T> ret = new LockState<>(sortedLocks.values(), this);
             threadSet.add(Thread.currentThread());
             toUnlock.clear();
             return ret;
@@ -201,7 +191,7 @@ private ImmutableSet<T> validateLockInput(Iterable<T> lockObjects) {
         }
 
         // verify that the compareTo and equals are consistent in that we are always locking on all objects
-        SortedSet<T> treeSet = new TreeSet<T>(comparator);
+        SortedSet<T> treeSet = new TreeSet<>(comparator);
         treeSet.addAll(hashSet);
         if (treeSet.size() != hashSet.size()) {
             throw new SafeIllegalArgumentException("The number of elements using .equals and compareTo differ. "
@@ -242,9 +232,9 @@ public void unlock(LockState<T> lockState) {
     }
 
     private SortedMap<T, ReentrantLock> getSortedLocks(Collection<T> lockObjects) {
-        final TreeMap<T, ReentrantLock> sortedLocks = new TreeMap<T, ReentrantLock>(comparator);
+        final TreeMap<T, ReentrantLock> sortedLocks = new TreeMap<>(comparator);
         for (T t : lockObjects) {
-            sortedLocks.put(t, syncMap.getUnchecked(t));
+            sortedLocks.put(t, syncMap.get(t));
         }
         return sortedLocks;
     }u}(jc (e01f8f7d37ce43a9eb4672184fb9c3abd935633ej\d eatlasdb-commons/src/test/java/com/palantir/common/concurrent/CheckedRejectionExecutorServiceTest.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X#
  @@ -19,31 +19,38 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.doThrow;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.google.common.util.concurrent.Futures;
 import java.util.concurrent.Callable;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.RejectedExecutionException;
 import org.junit.Test;
+import org.mockito.MockMakers;
 
 public class CheckedRejectionExecutorServiceTest {
     private static final Runnable DO_NOTHING = () -> {};
     private static final Callable<Integer> RETURN_ONE = () -> 1;
-    private static final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION = new RejectedExecutionException();
+    private static final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION =
+            new RejectedExecutionException("test");
 
-    private final ExecutorService delegate = mock(ExecutorService.class);
+    private final ExecutorService delegate =
+            mock(ExecutorService.class, withSettings().mockMaker(MockMakers.SUBCLASS));
     private final CheckedRejectionExecutorService checkedRejectionExecutor =
             new CheckedRejectionExecutorService(delegate);
 
     @Test
     public void passesCallThroughExecute() throws CheckedRejectedExecutionException {
         checkedRejectionExecutor.execute(DO_NOTHING);
         verify(delegate, times(1)).execute(DO_NOTHING);
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
@@ -52,22 +59,27 @@ public void passesCallThroughSubmit() throws CheckedRejectedExecutionException {
         assertThat(Futures.getUnchecked(checkedRejectionExecutor.submit(RETURN_ONE)))
                 .isEqualTo(1);
         verify(delegate, times(1)).submit(RETURN_ONE);
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
     public void propagatesRejectionThroughExecute() {
-        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).execute(any());
+        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).execute(any(Runnable.class));
         assertThatThrownBy(() -> checkedRejectionExecutor.execute(DO_NOTHING))
                 .isInstanceOf(CheckedRejectedExecutionException.class)
                 .hasCause(REJECTED_EXECUTION_EXCEPTION);
+        verify(delegate).execute(eq(DO_NOTHING));
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
     @SuppressWarnings("unchecked") // Mocks
     public void propagatesRejectionThroughSubmit() {
-        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).submit(any(Callable.class));
+        when(delegate.submit(any(Callable.class))).thenThrow(REJECTED_EXECUTION_EXCEPTION);
         assertThatThrownBy(() -> checkedRejectionExecutor.submit(RETURN_ONE))
                 .isInstanceOf(CheckedRejectedExecutionException.class)
                 .hasCause(REJECTED_EXECUTION_EXCEPTION);
+        verify(delegate).submit(eq(RETURN_ONE));
+        verifyNoMoreInteractions(delegate);
     }
 }u}(jc (d0f9372cc1f1f0ca2951aae2549e2f3c289903e7j\d Xatlasdb-commons/src/test/java/com/palantir/common/concurrent/CoalescingSupplierTest.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -24,6 +24,7 @@
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
@@ -49,12 +50,14 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
+import org.mockito.MockMakers;
 
 @RunWith(Parameterized.class)
 public class CoalescingSupplierTest {
     private static final int DEFAULT_VALUE = 123;
 
-    private final Supplier<Integer> delegate = mock(Supplier.class);
+    private final Supplier<Integer> delegate =
+            mock(Supplier.class, withSettings().mockMaker(MockMakers.SUBCLASS));
     private final FreezableSupplier freezableDelegate = new FreezableSupplier(delegate);
     private final CoalescingSupplier<Integer> coalescing = new CoalescingSupplier<>(freezableDelegate);
 u}(jc (9146e63073d86fe3d770ab7103a6eb65623b8820j\d Watlasdb-commons/src/test/java/com/palantir/common/proxy/ExperimentRunningProxyTest.javaj^d modifiedjVd K	jWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X-  @@ -21,6 +21,7 @@
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import java.lang.reflect.Proxy;
 import java.time.Clock;
@@ -31,18 +32,21 @@
 import java.util.function.Supplier;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class ExperimentRunningProxyTest {
     private static final int EXPERIMENTAL_RESULT = 123;
     private static final int FALLBACK_RESULT = 1;
     private static final RuntimeException RUNTIME_EXCEPTION = new RuntimeException("foo");
 
-    private final IntSupplier experimentalIntSupplier = mock(IntSupplier.class);
-    private final Supplier<IntSupplier> experimentSupplier = mock(Supplier.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private final IntSupplier experimentalIntSupplier = mock(IntSupplier.class, mockSettings);
+    private final Supplier<IntSupplier> experimentSupplier = mock(Supplier.class, mockSettings);
     private final IntSupplier fallbackIntSupplier = () -> FALLBACK_RESULT;
-    private final BooleanSupplier useExperimental = mock(BooleanSupplier.class);
-    private final BooleanSupplier enableFallback = mock(BooleanSupplier.class);
-    private final Clock clock = mock(Clock.class);
+    private final BooleanSupplier useExperimental = mock(BooleanSupplier.class, mockSettings);
+    private final BooleanSupplier enableFallback = mock(BooleanSupplier.class, mockSettings);
+    private final Clock clock = mock(Clock.class, mockSettings);
     private final AtomicLong errorCounter = new AtomicLong();
 
     private final IntSupplier proxyInstance = intSupplierForProxy(new ExperimentRunningProxy<>(u}(jc (b0f2716a61e018a00bbe37c55b0a8985af943d96j\d Watlasdb-commons/src/test/java/com/palantir/common/proxy/PredicateSwitchedProxyTest.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X~  @@ -19,14 +19,18 @@
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.withSettings;
 
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.function.IntConsumer;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class PredicateSwitchedProxyTest {
-    private final IntConsumer decorated = mock(IntConsumer.class);
-    private final IntConsumer delegate = mock(IntConsumer.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private final IntConsumer decorated = mock(IntConsumer.class, mockSettings);
+    private final IntConsumer delegate = mock(IntConsumer.class, mockSettings);
 
     private final AtomicBoolean atomicBoolean = new AtomicBoolean(false);
 u}(jc (afb4f7f151215eb0eb16fab26719c6f0358957e5j\d `atlasdb-commons/src/test/java/com/palantir/common/proxy/ReplaceIfExceptionMatchingProxyTest.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xl  @@ -29,16 +29,17 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.mockito.Mock;
+import org.mockito.MockMakers;
 import org.mockito.junit.MockitoJUnitRunner;
 
 // Mock is used as a convenient supplier, alternatives are rather verbose
 @SuppressWarnings("DirectInvocationOnMock")
 @RunWith(MockitoJUnitRunner.class)
 public class ReplaceIfExceptionMatchingProxyTest {
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private TestInterface delegate;
 
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private Supplier<TestInterface> supplier;
 
     interface TestInterface {u}(jc (d8fe3c284ed462a646f9db9df6e46865f71c8b7fj\d Oatlasdb-commons/src/test/java/com/palantir/util/CachedComposedSupplierTest.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -16,7 +16,9 @@
 package com.palantir.util;
 
 import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.concurrent.ExecutorService;
@@ -25,7 +27,7 @@
 import java.util.function.Supplier;
 import org.junit.Before;
 import org.junit.Test;
-import org.mockito.Mockito;
+import org.mockito.MockMakers;
 
 public class CachedComposedSupplierTest {
     private long counter;
@@ -37,7 +39,7 @@ public class CachedComposedSupplierTest {
     public void setup() {
         counter = 0;
         supplierCounter = 0;
-        mockVersionedSupplier = Mockito.mock(Supplier.class);
+        mockVersionedSupplier = mock(Supplier.class, withSettings().mockMaker(MockMakers.SUBCLASS));
         testSupplier = new CachedComposedSupplier<>(this::countingFunction, mockVersionedSupplier);
     }
 u}(jc (21ad962d9f363b09efeaba7f674e27e337cb763aj\d Katlasdb-commons/src/test/java/com/palantir/util/SafeShutdownRunnerTest.javaj^d modifiedjVd KjWd Kj`d K
jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -24,6 +24,7 @@
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import java.time.Duration;
@@ -32,14 +33,17 @@
 import java.util.stream.Stream;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class SafeShutdownRunnerTest {
     private static final RuntimeException EXCEPTION_1 = new RuntimeException("test");
     private static final RuntimeException EXCEPTION_2 = new RuntimeException("bleh");
 
-    private Runnable mockRunnable = mock(Runnable.class);
-    private Runnable throwingRunnable = mock(Runnable.class);
-    private Runnable blockingUninterruptibleRunnable = mock(Runnable.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private Runnable mockRunnable = mock(Runnable.class, mockSettings);
+    private Runnable throwingRunnable = mock(Runnable.class, mockSettings);
+    private Runnable blockingUninterruptibleRunnable = mock(Runnable.class, mockSettings);
 
     @Before
     public void setupMocks() {u}(jc (66bef959146e2dc5dd5452e6f9606c9e4120c4f4j\d Datlasdb-commons/src/test/java/com/palantir/util/TimedRunnerTest.javaj^d modifiedjVd K	jWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X	  @@ -23,19 +23,23 @@
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.util.TimedRunner.TaskContext;
 import java.time.Duration;
 import java.util.concurrent.Callable;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public final class TimedRunnerTest {
     private static final RuntimeException EXCEPTION_1 = new RuntimeException("test");
     private static final RuntimeException EXCEPTION_2 = new RuntimeException("bleh");
 
-    private Runnable noOpRunnable = mock(Runnable.class);
-    private Runnable throwingRunnable = mock(Runnable.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private Runnable noOpRunnable = mock(Runnable.class, mockSettings);
+    private Runnable throwingRunnable = mock(Runnable.class, mockSettings);
 
     @Before
     public void setupMocks() {
@@ -46,7 +50,7 @@ public void setupMocks() {
     public void runnerRunsOneTask() throws Exception {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
 
-        Callable<Integer> task = mock(Callable.class);
+        Callable<Integer> task = mock(Callable.class, mockSettings);
         when(task.call()).thenReturn(5);
         int result = runner.run(TaskContext.create(task, noOpRunnable));
 
@@ -58,7 +62,7 @@ public void runnerRunsOneTask() throws Exception {
     @Test
     public void exceptionsAreThrownWhenRunningSingleton() {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
-        Runnable failureHandler = mock(Runnable.class);
+        Runnable failureHandler = mock(Runnable.class, mockSettings);
 
         assertThatThrownBy(() -> runner.run(TaskContext.createRunnable(throwingRunnable, failureHandler)))
                 .isEqualTo(EXCEPTION_1);
@@ -68,7 +72,7 @@ public void exceptionsAreThrownWhenRunningSingleton() {
     @Test
     public void correctSuppressedExceptionsAreThrownIfFailureHandlerThrows() {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
-        Runnable failureHandler = mock(Runnable.class);
+        Runnable failureHandler = mock(Runnable.class, mockSettings);
         doThrow(EXCEPTION_2).when(failureHandler).run();
 
         assertThatThrownBy(() -> runner.run(TaskContext.createRunnable(throwingRunnable, failureHandler)))u}(jc (df57e9fd3c6376b49fd3c1adb77db41b476aeffej\d datlasdb-config/src/main/java/com/palantir/atlasdb/factory/DefaultLockAndTimestampServiceFactory.javaj^d modifiedjVd K&jWd Kj`d K)jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X4  @@ -96,6 +96,7 @@
 import java.util.Set;
 import java.util.concurrent.CompletableFuture;
 import java.util.function.Consumer;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import javax.ws.rs.ClientErrorException;
 
@@ -118,6 +119,8 @@ public final class DefaultLockAndTimestampServiceFactory implements LockAndTimes
     private final Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders;
     private final Set<Schema> schemas;
 
+    private final Function<TimelockService, TimeLockClient> timelockClientFactory;
+
     public DefaultLockAndTimestampServiceFactory(
             MetricsManager metricsManager,
             AtlasDbConfig config,
@@ -132,6 +135,38 @@ public DefaultLockAndTimestampServiceFactory(
             Optional<TimeLockFeedbackBackgroundTask> timeLockFeedbackBackgroundTask,
             Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders,
             Set<Schema> schemas) {
+        this(
+                metricsManager,
+                config,
+                runtimeConfig,
+                registrar,
+                lock,
+                time,
+                invalidator,
+                userAgent,
+                lockDiagnosticComponents,
+                reloadingFactory,
+                timeLockFeedbackBackgroundTask,
+                timelockRequestBatcherProviders,
+                schemas,
+                TimeLockClient::createDefault);
+    }
+
+    public DefaultLockAndTimestampServiceFactory(
+            MetricsManager metricsManager,
+            AtlasDbConfig config,
+            Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
+            Consumer<Object> registrar,
+            Supplier<LockService> lock,
+            Supplier<ManagedTimestampService> time,
+            TimestampStoreInvalidator invalidator,
+            UserAgent userAgent,
+            Optional<LockDiagnosticComponents> lockDiagnosticComponents,
+            ReloadingFactory reloadingFactory,
+            Optional<TimeLockFeedbackBackgroundTask> timeLockFeedbackBackgroundTask,
+            Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders,
+            Set<Schema> schemas,
+            Function<TimelockService, TimeLockClient> timelockClientFactory) {
         this.metricsManager = metricsManager;
         this.config = config;
         this.runtimeConfig = runtimeConfig;
@@ -145,6 +180,7 @@ public DefaultLockAndTimestampServiceFactory(
         this.timeLockFeedbackBackgroundTask = timeLockFeedbackBackgroundTask;
         this.timelockRequestBatcherProviders = timelockRequestBatcherProviders;
         this.schemas = schemas;
+        this.timelockClientFactory = timelockClientFactory;
     }
 
     @Override
@@ -166,9 +202,8 @@ public LockAndTimestampServices createLockAndTimestampServices() {
         return withMetrics(metricsManager, withRefreshingLockService(lockAndTimestampServices));
     }
 
-    private static LockAndTimestampServices withRefreshingLockService(
-            LockAndTimestampServices lockAndTimestampServices) {
-        TimeLockClient timeLockClient = TimeLockClient.createDefault(lockAndTimestampServices.timelock());
+    private LockAndTimestampServices withRefreshingLockService(LockAndTimestampServices lockAndTimestampServices) {
+        TimeLockClient timeLockClient = timelockClientFactory.apply(lockAndTimestampServices.timelock());
         ProfilingTimelockService profilingService = ProfilingTimelockService.create(timeLockClient);
         return ImmutableLockAndTimestampServices.builder()
                 .from(lockAndTimestampServices)u}(jc (37473508e06c194b315e01d89ff08da1a5152705j\d Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javaj^d modifiedjVd KjWd Kj`d K	jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X+  @@ -129,6 +129,7 @@
 import com.palantir.lock.client.TimeLockClient;
 import com.palantir.lock.client.metrics.TimeLockFeedbackBackgroundTask;
 import com.palantir.lock.impl.LockServiceImpl;
+import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -198,6 +199,11 @@ boolean allSafeForLogging() {
         return false;
     }
 
+    @Value.Default
+    Function<TimelockService, TimeLockClient> defaultTimelockClientFactory() {
+        return TimeLockClient::createDefault;
+    }
+
     abstract Optional<LockAndTimestampServiceFactory> lockAndTimestampServiceFactory();
 
     abstract UserAgent userAgent();
@@ -385,7 +391,8 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                         reloadingFactory(),
                         timeLockFeedbackBackgroundTask,
                         timelockRequestBatcherProviders(),
-                        schemas()));
+                        schemas(),
+                        defaultTimelockClientFactory()));
         LockAndTimestampServices lockAndTimestampServices = factory.createLockAndTimestampServices();
         adapter.setTimestampService(lockAndTimestampServices.managedTimestampService());
 u}(jc (830982ceb08e4589ac04405c25af4ab7902e61faj\d )atlasdb-container-test-utils/build.gradlej^d modifiedjVd KjWd K j`d Kjad }https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-container-test-utils%2Fbuild.gradlejcd |https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-container-test-utils%2Fbuild.gradlejed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-container-test-utils%2Fbuild.gradle?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -7,6 +7,7 @@ dependencies {
     implementation project(':atlasdb-tests-shared')
     implementation project(":flake-rule")
 
+    implementation 'com.github.ben-manes.caffeine:caffeine'
     implementation 'com.google.guava:guava'
     implementation 'com.palantir.docker.compose:docker-compose-rule-core'
     implementation 'com.palantir.docker.compose:docker-compose-rule-junit4'u}(jc (67f1ebfdab7e84e38c746fafcd1c8d3c0d58bbeej\d Zatlasdb-container-test-utils/src/main/java/com/palantir/atlasdb/containers/Containers.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FContainers.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FContainers.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FContainers.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X	  @@ -15,11 +15,10 @@
  */
 package com.palantir.atlasdb.containers;
 
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Throwables;
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
 import com.google.common.collect.Sets;
 import com.palantir.docker.compose.DockerComposeRule;
 import com.palantir.docker.compose.configuration.DockerComposeFiles;
@@ -56,7 +55,7 @@ public class Containers extends ExternalResource {
     private static final Set<Container> containersToStart = new HashSet<>();
     private static final Set<Container> containersStarted = new HashSet<>();
     private static final LoadingCache<String, String> dockerComposeFilesToTemporaryCopies =
-            CacheBuilder.newBuilder().build(CacheLoader.from(Containers::getDockerComposeFile));
+            Caffeine.newBuilder().build(Containers::getDockerComposeFile);
 
     private static volatile DockerComposeRule dockerComposeRule;
     private static volatile InterruptibleFileLogCollector currentLogCollector;
@@ -132,10 +131,11 @@ private void setupLogCollectorForLogDirectory() {
     }
 
     private void setupDockerComposeRule() throws InterruptedException, IOException {
-        Set<String> containerDockerComposeFiles = containersToStart.stream()
+        DockerComposeFiles files = DockerComposeFiles.from(containersToStart.stream()
                 .map(Container::getDockerComposeFile)
-                .map(dockerComposeFilesToTemporaryCopies::getUnchecked)
-                .collect(Collectors.toSet());
+                .map(dockerComposeFilesToTemporaryCopies::get)
+                .distinct()
+                .toArray(String[]::new));
 
         Map<String, String> environment = containersToStart.stream()
                 .flatMap(container -> container.getEnvironment().entrySet().stream())
@@ -145,7 +145,7 @@ private void setupDockerComposeRule() throws InterruptedException, IOException {
                 DockerMachine.localMachine().withEnvironment(environment).build();
 
         dockerComposeRule = DockerComposeRule.builder()
-                .files(DockerComposeFiles.from(containerDockerComposeFiles.toArray(new String[0])))
+                .files(files)
                 .projectName(PROJECT_NAME)
                 .machine(machine)
                 .logCollector(currentLogCollector)u}(jc (b93a15e152b0661235eae7311c65e340f0766e0aj\d atlasdb-dbkvs/build.gradlej^d modifiedjVd KjWd K j`d Kjad nhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-dbkvs%2Fbuild.gradlejcd mhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-dbkvs%2Fbuild.gradlejed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fbuild.gradle?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -14,6 +14,7 @@ dependencies {
   implementation "com.palantir.nylon:nylon-threads"
   implementation 'com.fasterxml.jackson.core:jackson-annotations'
   implementation 'com.fasterxml.jackson.core:jackson-databind'
+  implementation 'com.github.ben-manes.caffeine:caffeine'
   implementation 'com.google.auto.service:auto-service-annotations'
   implementation 'com.google.errorprone:error_prone_annotations'
   implementation 'com.google.guava:guava'u}(jc (5ae1b103b3cc86213d6ae94812960a7d892efa6ej\d \atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/OracleTableNameUnmapper.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapper.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapper.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapper.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -15,8 +15,8 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs;
 
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -28,6 +28,7 @@
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.nexus.db.sql.AgnosticResultSet;
@@ -37,17 +38,16 @@
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
-import java.util.concurrent.ExecutionException;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 
 class OracleTableNameUnmapper {
     private static final SafeLogger log = SafeLoggerFactory.get(OracleTableNameUnmapper.class);
 
-    private Cache<String, String> unmappingCache;
+    private final Cache<String, String> unmappingCache;
 
     OracleTableNameUnmapper() {
-        unmappingCache = CacheBuilder.newBuilder().build();
+        unmappingCache = Caffeine.newBuilder().build();
     }
 
     @SuppressWarnings("checkstyle:NestedTryDepth")
@@ -56,22 +56,26 @@ public String getShortTableNameFromMappingTable(
             throws TableMappingNotFoundException {
         String fullTableName = tablePrefix + DbKvs.internalTableName(tableRef);
         try {
-            return unmappingCache.get(fullTableName, () -> {
+            return unmappingCache.get(fullTableName, tableNameKey -> {
                 SqlConnection conn = connectionSupplier.get();
                 AgnosticResultSet results = conn.selectResultSetUnregisteredQuery(
                         "SELECT short_table_name "
                                 + "FROM " + AtlasDbConstants.ORACLE_NAME_MAPPING_TABLE
                                 + " WHERE table_name = ?",
-                        fullTableName);
+                        tableNameKey);
                 if (results.size() == 0) {
-                    throw new TableMappingNotFoundException("The table " + fullTableName + " does not have a mapping."
-                            + "This might be because the table does not exist.");
+                    throw new SafeIllegalStateException(
+                            "The table does not have a mapping. This might be because the table does not exist.",
+                            UnsafeArg.of("tableName", tableNameKey));
                 }
 
                 return Iterables.getOnlyElement(results.rows()).getString("short_table_name");
             });
-        } catch (ExecutionException e) {
-            throw new TableMappingNotFoundException(e.getCause());
+        } catch (SafeIllegalStateException e) {
+            throw new TableMappingNotFoundException(
+                    "The table " + fullTableName
+                            + " does not have a mapping. This might be because the table does not exist.",
+                    e);
         }
     }
 u}(jc (dd961f490b5a264afcf9ab9af27ad5f4a20d2264j\d \atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/TableMetadataCache.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableMetadataCache.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableMetadataCache.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableMetadataCache.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X:  @@ -15,8 +15,8 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs.impl;
 
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import java.time.Duration;
@@ -25,7 +25,7 @@
 public class TableMetadataCache {
     private static final TableMetadata EMPTY = TableMetadata.allDefault();
 
-    private final Cache<TableReference, TableMetadata> cache = CacheBuilder.newBuilder()
+    private final Cache<TableReference, TableMetadata> cache = Caffeine.newBuilder()
             .maximumSize(10000)
             .expireAfterWrite(Duration.ofHours(1))
             .build();u}(jc (d3a8c60a800e959b3becd43b20e4445fbceefb30j\d batlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/TableValueStyleCacheImpl.javaj^d modifiedjVd KjWd K
j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableValueStyleCacheImpl.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableValueStyleCacheImpl.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableValueStyleCacheImpl.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xf
  @@ -15,47 +15,45 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs.impl;
 
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.google.common.base.Preconditions;
-import com.google.common.base.Throwables;
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.logging.LoggingArgs;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.nexus.db.sql.AgnosticResultSet;
 import com.palantir.nexus.db.sql.SqlConnection;
-import java.util.concurrent.ExecutionException;
 
 public final class TableValueStyleCacheImpl implements TableValueStyleCache {
     private static final SafeLogger log = SafeLoggerFactory.get(TableValueStyleCacheImpl.class);
 
     private final Cache<TableReference, TableValueStyle> valueStyleByTableRef =
-            CacheBuilder.newBuilder().build();
+            Caffeine.newBuilder().build();
 
     @Override
     public TableValueStyle getTableType(
             final ConnectionSupplier connectionSupplier, final TableReference tableRef, TableReference metadataTable) {
         try {
-            return valueStyleByTableRef.get(tableRef, () -> {
+            return valueStyleByTableRef.get(tableRef, tableRefKey -> {
                 SqlConnection conn = connectionSupplier.get();
                 AgnosticResultSet results = conn.selectResultSetUnregisteredQuery(
                         String.format(
                                 "SELECT table_size FROM %s WHERE table_name = ?", metadataTable.getQualifiedName()),
-                        tableRef.getQualifiedName());
+                        tableRefKey.getQualifiedName());
                 Preconditions.checkArgument(
-                        !results.rows().isEmpty(), "table %s not found", tableRef.getQualifiedName());
+                        !results.rows().isEmpty(), "table %s not found", tableRefKey.getQualifiedName());
 
                 return TableValueStyle.byId(
                         Iterables.getOnlyElement(results.rows()).getInteger("table_size"));
             });
-        } catch (ExecutionException e) {
+        } catch (RuntimeException e) {
             log.error(
                     "TableValueStyle for the table {} could not be retrieved.",
                     LoggingArgs.safeInternalTableName(tableRef.getQualifiedName()),
                     e);
-            throw Throwables.propagate(e);
+            throw e;
         }
     }
 u}(jc (d3d0934580d2238766440f21f24a6cdcdb89c589j\d _atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTable.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -95,12 +95,15 @@ public static OracleDdlTable create(
 
     @Override
     public void create(byte[] tableMetadata) {
+        log.info("Attempting to create table {}.", LoggingArgs.tableRef(tableRef));
         TableMetadata metadata = TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMetadata);
         boolean needsOverflow = needsOverflow(metadata);
         int compressionSetting = getOptimalIndexCompression(metadata);
 
         if (tableExists()) {
+            log.info("Table {} already exists.", LoggingArgs.tableRef(tableRef));
             if (needsOverflow) {
+                log.info("Table {} needs overflow.", LoggingArgs.tableRef(tableRef));
                 TableValueStyle existingStyle = valueStyleCache.getTableType(conns, tableRef, config.metadataTable());
                 if (existingStyle != TableValueStyle.OVERFLOW) {
                     throwForMissingOverflowTable();
@@ -126,9 +129,20 @@ public void create(byte[] tableMetadata) {
     }
 
     private void maybeAlterTableToHaveOverflowColumn() {
+        log.info("Potentially altering table {} to have overflow column.", LoggingArgs.tableRef(tableRef));
         if (config.alterTablesOrMetadataToMatch().contains(tableRef)) {
+            log.info("Config contains table {}, checking if we can alter table.", LoggingArgs.tableRef(tableRef));
             try {
                 String shortTableName = oracleTableNameGetter.getInternalShortTableName(conns, tableRef);
+                log.info(
+                        "Table name: {}, Overflow table migrated status: {}, overflow table existence status: {}, "
+                                + "overflow "
+                                + "column exists status: {}",
+                        LoggingArgs.tableRef(tableRef),
+                        SafeArg.of("overflowTableHasMigrated", overflowTableHasMigrated()),
+                        SafeArg.of("overflowTableExists", overflowTableExists()),
+                        SafeArg.of("overflowColumnExists", overflowColumnExists(shortTableName)));
+
                 if (overflowTableHasMigrated() && overflowTableExists() && !overflowColumnExists(shortTableName)) {
                     alterTableToHaveOverflowColumn(shortTableName);
                 }u}(jc (08cd766747be7ea89f3186414b112d6fff840236j\d iatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleOverflowWriteTable.javaj^d modifiedjVd K,jWd Kj`d KJjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleOverflowWriteTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd XQ  @@ -351,31 +351,41 @@ private void deleteOverflow(String overflowTable, List<Object[]> args) {
         String shortTableName = oraclePrefixedTableNames.get(tableRef, conns);
         conns.get()
                 .updateManyUnregisteredQuery(
-                        " /* DELETE_ONE_OVERFLOW (" + overflowTable + ") */ "
-                                + " DELETE /*+ INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */ "
-                                + "   FROM " + overflowTable + " m "
-                                + "  WHERE m.id IN (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName)
-                                + ") */ "
-                                + "                        i.overflow "
-                                + "                   FROM " + shortTableName + " i "
-                                + "                  WHERE i.row_name = ? "
-                                + "                    AND i.col_name = ? "
-                                + "                    AND i.ts = ? "
-                                + "                    AND i.overflow IS NOT NULL)",
+                        "/* DELETE_ONE_OVERFLOW (" + overflowTable + ") */"
+                                + " DELETE"
+                                + " /*+"
+                                + "   INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ")"
+                                + "   LEADING(i) USE_NL(i m)"
+                                + " */"
+                                + " FROM " + overflowTable + " m"
+                                + " WHERE m.id IN"
+                                + "   (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName) + ") */"
+                                + "     i.overflow"
+                                + "     FROM " + shortTableName + " i"
+                                + "     WHERE i.row_name = ?"
+                                + "       AND i.col_name = ?"
+                                + "       AND i.ts = ?"
+                                + "       AND i.overflow IS NOT NULL)",
                         args);
     }
 
     private void deleteOverflowRange(String overflowTable, String shortTableName, RangeRequest range) {
         StringBuilder query = new StringBuilder();
-        query.append(" /* DELETE_RANGE_OVERFLOW (").append(overflowTable).append(") */ ");
-        query.append(" DELETE /*+ INDEX(m pk_").append(overflowTable).append(") */ ");
-        query.append("   FROM ").append(overflowTable).append(" m ");
-        query.append(" WHERE m.id IN (");
+        query.append("/* DELETE_RANGE_OVERFLOW (")
+                .append(overflowTable)
+                .append(") */ DELETE /*+ INDEX(m ")
+                .append(PrimaryKeyConstraintNames.get(overflowTable))
+                .append(") LEADING(i) USE_NL(i m) */ FROM ")
+                .append(overflowTable)
+                .append(" m WHERE m.id IN (");
 
         // subquery for finding rows in the short table
-        query.append("SELECT /*+ INDEX(i pk_").append(shortTableName).append(") */ ");
-        query.append("       i.overflow ");
-        query.append("    FROM ").append(shortTableName).append(" i ");
+        query.append("SELECT /*+ INDEX(i ")
+                .append(PrimaryKeyConstraintNames.get(shortTableName))
+                .append(") */")
+                .append(" i.overflow FROM ")
+                .append(shortTableName)
+                .append(" i");
 
         // add where clauses
         WhereClauses whereClauses = WhereClauses.create("i", range, "i.overflow IS NOT NULL");
@@ -398,18 +408,22 @@ private void deleteAllTimestampsOverflow(String overflowTable, List<Object[]> ar
         String shortTableName = oraclePrefixedTableNames.get(tableRef, conns);
         conns.get()
                 .updateManyUnregisteredQuery(
-                        " /* DELETE_ALL_TS_OVERFLOW (" + overflowTable + ") */ "
-                                + " DELETE /*+ INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ") */ "
-                                + "   FROM " + overflowTable + " m "
-                                + "  WHERE m.id IN (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName)
-                                + ") */ "
-                                + "                        i.overflow "
-                                + "                   FROM " + shortTableName + " i "
-                                + "                  WHERE i.row_name = ? "
-                                + "                    AND i.col_name = ? "
-                                + "                    AND i.ts >= ? "
-                                + "                    AND i.ts <= ? "
-                                + "                    AND i.overflow IS NOT NULL)",
+                        " /* DELETE_ALL_TS_OVERFLOW (" + overflowTable + ") */"
+                                + " DELETE"
+                                + " /*+"
+                                + "   INDEX(m " + PrimaryKeyConstraintNames.get(overflowTable) + ")"
+                                + "   LEADING(i) USE_NL(i m)"
+                                + " */"
+                                + " FROM " + overflowTable + " m"
+                                + " WHERE m.id IN"
+                                + "   (SELECT /*+ INDEX(i " + PrimaryKeyConstraintNames.get(shortTableName) + ") */"
+                                + "     i.overflow"
+                                + "     FROM " + shortTableName + " i"
+                                + "     WHERE i.row_name = ?"
+                                + "       AND i.col_name = ?"
+                                + "       AND i.ts >= ?"
+                                + "       AND i.ts <= ?"
+                                + "       AND i.overflow IS NOT NULL)",
                         args);
     }
 u}(jc (ac33fad35d76f1ceb079128628c94f48a6bb5693j\d `atlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/OracleTableNameUnmapperTest.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -18,6 +18,7 @@
 import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
+import static org.assertj.core.api.InstanceOfAssertFactories.type;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.ArgumentMatchers.startsWith;
@@ -103,7 +104,16 @@ public void shouldThrowIfTableMappingDoesNotExist() {
         assertThatThrownBy(() -> oracleTableNameUnmapper.getShortTableNameFromMappingTable(
                         connectionSupplier, TEST_PREFIX, TABLE_REF))
                 .isInstanceOf(TableMappingNotFoundException.class)
-                .hasMessageContaining("The table a_test_namespace__ThisIsAVeryLongTableNameThatWillExceed");
+                .hasMessageContaining("The table a_test_namespace__ThisIsAVeryLongTableNameThatWillExceed")
+                .hasRootCauseInstanceOf(SafeIllegalStateException.class)
+                .rootCause()
+                .asInstanceOf(type(SafeIllegalStateException.class))
+                .extracting(SafeIllegalStateException::getArgs)
+                .satisfies(args -> assertThat(args)
+                        .hasSize(1)
+                        .first()
+                        .isEqualTo(
+                                UnsafeArg.of("tableName", "a_test_namespace__ThisIsAVeryLongTableNameThatWillExceed")));
     }
 
     @Testu}(jc (406ea4c829a8af8841a2d625eb7be180b4deeb1bj\d aatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/LatestSnapshotTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FLatestSnapshotTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FLatestSnapshotTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FLatestSnapshotTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "1hXp6wqgn1sn1zvk2FNCsA==";
+    static String __CLASS_HASH = "IGBmCsqLmahL4VNCmymeTA==";
 }u}(jc (691b032f8500c1d98893ea25953a5a1da6159237j\d aatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/NamespacedTodoTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FNamespacedTodoTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FNamespacedTodoTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FNamespacedTodoTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "u45FW2313LWExLwSpn1QNQ==";
+    static String __CLASS_HASH = "hQ6/1zRsdc2LBKW0GTYdpw==";
 }u}(jc (8d929951097fa4dd1ed276565d0e054a197030c1j\d jatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamHashAidxTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamHashAidxTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamHashAidxTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamHashAidxTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "PCkKiTatC1CKEn6ZH3wovQ==";
+    static String __CLASS_HASH = "D9OdSrGepZI1dcZ5KV7B0g==";
 }u}(jc (c2166395fe0ce40fad624f15a49f97e8082edb87j\d eatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamIdxTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamIdxTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamIdxTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamIdxTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "D1MDUfpiS0iyGcBvr58Y8g==";
+    static String __CLASS_HASH = "Ql7tNJ0Z5v0pWFviP9dcuw==";
 }u}(jc (751427a20cec42114f38fb040766075b79fceb85j\d jatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamMetadataTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamMetadataTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamMetadataTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamMetadataTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "CYeYrtJK8/cz/1qm4lAQbw==";
+    static String __CLASS_HASH = "AgT8WHSuUvJzkk+inw4twg==";
 }u     }(jc (d9eb5e622958eabbadfc64f623d7af4e2b8f6ab2j\d batlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamStore.javaj^d modifiedjVd KjWd Kj`d K	jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamStore.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamStore.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamStore.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         SnapshotsStreamMetadataTable table = tables.getSnapshotsStreamMetadataTable(t);
         Map<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<SnapshotsStreamMetadataTable.SnapshotsStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow, SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow r : m.keySet()) {
             for (SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> rows = new HashSet<>();
+        Set<SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(SnapshotsStreamHashAidxTable.SnapshotsStreamHashAidxRow.of(h));
         }u}(jc (50fe24ebd9570730219ff9c8cabd8b95ef133793j\d gatlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamValueTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamValueTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamValueTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FSnapshotsStreamValueTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "VELEHtyEvSAidzHk7HUynw==";
+    static String __CLASS_HASH = "9m/lRuE/UHMttmLTS1Q8iQ==";
 }u}(jc (0fc54eda7b5bdfc6e1df2d83a646c1c897f7545dj\d Watlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/TodoTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FTodoTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FTodoTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftodo%2Fgenerated%2FTodoTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "a41wenQu3aKASLvmOEI8kQ==";
+    static String __CLASS_HASH = "1g5OdW5n4H7icFXg1gG2Xg==";
 }u}(jc (1d193b8827aecd4f6d245fb465dfbdc647f5e14aj\d +atlasdb-ete-tests/docker-compose.oracle.ymlj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fdocker-compose.oracle.ymljcd ~https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fdocker-compose.oracle.ymljed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.oracle.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -2,7 +2,7 @@ version: '2'
 
 services:
   oracle:
-    image: palantirtechnologies/oracle-atlasdb:19.18.0.0-se
+    image: palantirtechnologies/oracle-atlasdb:19.19.0.0-se
     ports:
       - "1521"
 u}(jc (c7df5ab0634529958ebd6f5e9833133b80d6f481j\d Yatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/AuditedDataTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FAuditedDataTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FAuditedDataTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FAuditedDataTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "HWEvAR+se/bt6noPrSI5eQ==";
+    static String __CLASS_HASH = "AkImLEM5fv/Ji8qCyRf5dw==";
 }u}(jc (691e7c2e8f8e94ee1c2d708ae8a7265a658fc2d7j\d `atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamHashAidxTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamHashAidxTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamHashAidxTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamHashAidxTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "6ODGPI1lqmv77xZs7geJPg==";
+    static String __CLASS_HASH = "4xCW34HnUp0WcB647QLiyQ==";
 }u}(jc (450188be061709cb7be5970d7510cb674fd90334j\d [atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamIdxTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamIdxTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamIdxTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamIdxTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -730,6 +731,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -753,5 +755,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Rdk+n2nUmS6yWZK9HAk9OA==";
+    static String __CLASS_HASH = "Cv4WRWZ3CKVWR5IhFRmgLg==";
 }u}(jc (02b71ddbab73ddfa1fb611fe7718aec48202c8f9j\d `atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamMetadataTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamMetadataTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamMetadataTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamMetadataTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -697,6 +698,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -720,5 +722,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "RPuWa9/Enf/G4yy7WraKvg==";
+    static String __CLASS_HASH = "AFwooxC06krTqFv58UfkcA==";
 }u}(jc (8c464c6e727d316151fe167fb7023408f8223c1bj\d Xatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamStore.javaj^d modifiedjVd KjWd Kj`d K	jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamStore.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamStore.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamStore.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         DataStreamMetadataTable table = tables.getDataStreamMetadataTable(t);
         Map<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<DataStreamMetadataTable.DataStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<DataStreamHashAidxTable.DataStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<DataStreamHashAidxTable.DataStreamHashAidxRow, DataStreamHashAidxTable.DataStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (DataStreamHashAidxTable.DataStreamHashAidxRow r : m.keySet()) {
             for (DataStreamHashAidxTable.DataStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<DataStreamHashAidxTable.DataStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<DataStreamHashAidxTable.DataStreamHashAidxRow> rows = new HashSet<>();
+        Set<DataStreamHashAidxTable.DataStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(DataStreamHashAidxTable.DataStreamHashAidxRow.of(h));
         }u}(jc (339121486a993326e0fab616ee41e6840e0bcdeaj\d ]atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/DataStreamValueTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamValueTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamValueTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FDataStreamValueTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -685,6 +686,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -708,5 +710,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "DS6SuJzRnFffdUrdtO6Guw==";
+    static String __CLASS_HASH = "hogeDv0tsmrHDkXuhcwteQ==";
 }u}(jc (9ddaa82ed535788ceb2af45646bddc9ef36ee8c1j\d iatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamHashAidxTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamHashAidxTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamHashAidxTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamHashAidxTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "SH1UPkfcLa9w8NXZtXW8SQ==";
+    static String __CLASS_HASH = "NOiRKvLXsadPhJ4N/aae6Q==";
 }u}(jc (64418a6885ea388ae8cacfebdee217037e578fbcj\d datlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamIdxTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamIdxTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamIdxTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamIdxTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "mpf2q7hm+MfMFLkXqKHb6Q==";
+    static String __CLASS_HASH = "lWy4z6m1ZmwcuY4d/ez8Rw==";
 }u}(jc (db9af2411ac58ba1397ec11aaec3110306b1b1f0j\d iatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamMetadataTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamMetadataTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamMetadataTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamMetadataTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Ce61mTEgHfgl6d16rBNwUA==";
+    static String __CLASS_HASH = "KLkPI2rjlr8itPxC4ZWJLg==";
 }u}(jc (dde1b9206472d7a2d64075fe39b94b5e132abc0dj\d aatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamStore.javaj^d modifiedjVd KjWd Kj`d K	jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamStore.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamStore.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamStore.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         HotspottyDataStreamMetadataTable table = tables.getHotspottyDataStreamMetadataTable(t);
         Map<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<HotspottyDataStreamMetadataTable.HotspottyDataStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow, HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow r : m.keySet()) {
             for (HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> rows = new HashSet<>();
+        Set<HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(HotspottyDataStreamHashAidxTable.HotspottyDataStreamHashAidxRow.of(h));
         }u}(jc (8883d5d8737eef19a3f25fd258d579ac8e1dbec9j\d fatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/blob/generated/HotspottyDataStreamValueTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamValueTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamValueTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fblob%2Fgenerated%2FHotspottyDataStreamValueTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -18,6 +18,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "qpxadEqMHw8NeLcCZ0b7oA==";
+    static String __CLASS_HASH = "9KSCRtbyVXFg2nb/7Wc8OA==";
 }u}(jc (88f8467b9c138fc4cb41ea3c961977dd5dd0f8e4j\d  atlasdb-impl-shared/build.gradlej^d modifiedjVd KjWd K j`d Kjad thttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fbuild.gradlejcd shttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fbuild.gradlejed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fbuild.gradle?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X
  @@ -12,6 +12,7 @@ license {
   exclude '**/PutUnlessExistsTableMetrics.java'
   exclude '**/TargetedSweepProgressMetrics.java'
   exclude '**/TimestampCorrectnessMetrics.java'
+  exclude '**/ExpectationsMetrics.java'
   exclude '**/VerificationModeMetrics.java'
 }
 u}(jc (c343ae3edce2f8e4d5a1c928511f569ac571e2d1j\d Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/cleaner/CachingPuncherStore.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FCachingPuncherStore.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FCachingPuncherStore.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FCachingPuncherStore.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -15,9 +15,8 @@
  */
 package com.palantir.atlasdb.cleaner;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 
 /**
  * Wrap another PuncherStore, optimizing the #get() operation to operate on a local cache, only
@@ -31,14 +30,8 @@ public final class CachingPuncherStore implements PuncherStore {
     private static final int CACHE_SIZE = 64000;
 
     public static CachingPuncherStore create(final PuncherStore puncherStore, long granularityMillis) {
-        LoadingCache<Long, Long> timeMillisToTimestamp = CacheBuilder.newBuilder()
-                .maximumSize(CACHE_SIZE)
-                .build(new CacheLoader<Long, Long>() {
-                    @Override
-                    public Long load(Long timeMillis) throws Exception {
-                        return puncherStore.get(timeMillis);
-                    }
-                });
+        LoadingCache<Long, Long> timeMillisToTimestamp =
+                Caffeine.newBuilder().maximumSize(CACHE_SIZE).build(puncherStore::get);
         return new CachingPuncherStore(puncherStore, timeMillisToTimestamp, granularityMillis);
     }
 
@@ -66,7 +59,7 @@ public void put(long timestamp, long timeMillis) {
     @Override
     public Long get(Long timeMillis) {
         long approximateTimeMillis = timeMillis - (timeMillis % granularityMillis);
-        return timeMillisToTimestamp.getUnchecked(approximateTimeMillis);
+        return timeMillisToTimestamp.get(approximateTimeMillis);
     }
 
     @Overrideu}(jc (c480df0088f6789eb9035ca913cc7cc57d932d70j\d _atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/watch/TimestampMapping.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -16,12 +16,17 @@
 
 package com.palantir.atlasdb.keyvalue.api.watch;
 
-import com.google.common.collect.MoreCollectors;
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.Collections2;
 import com.google.common.collect.Range;
 import com.palantir.lock.watch.LockWatchVersion;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Iterator;
 import java.util.LongSummaryStatistics;
 import java.util.Map;
+import java.util.Objects;
 import java.util.UUID;
 import org.immutables.value.Value;
 
@@ -44,10 +49,8 @@ default LockWatchVersion lastVersion() {
 
     @Value.Derived
     default UUID leader() {
-        return timestampMapping().values().stream()
-                .map(LockWatchVersion::id)
-                .distinct()
-                .collect(MoreCollectors.onlyElement());
+        // explicitly avoiding stream and distinct collection copy when all IDs should be identical
+        return identicalElement(Collections2.transform(timestampMapping().values(), LockWatchVersion::id));
     }
 
     @Value.Check
@@ -58,4 +61,20 @@ default void nonEmptyMapping() {
     static ImmutableTimestampMapping.Builder builder() {
         return ImmutableTimestampMapping.builder();
     }
+
+    @VisibleForTesting
+    static <T> T identicalElement(Iterable<? extends T> iterable) {
+        Iterator<? extends T> iterator = iterable.iterator();
+        T element = iterator.next();
+        while (iterator.hasNext()) {
+            T next = iterator.next();
+            if (!Objects.equals(element, next)) {
+                throw new SafeIllegalArgumentException(
+                        "Input contains multiple distinct elements",
+                        SafeArg.of("element", element),
+                        SafeArg.of("next", next));
+            }
+        }
+        return element;
+    }
 }u}(jc (473d85d8410eb6afff14e536910bcdc893df9991j\d Oatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/CommitTsCache.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FCommitTsCache.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FCommitTsCache.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FCommitTsCache.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd XK  @@ -25,7 +25,7 @@
 
 public final class CommitTsCache {
     private static final Long ONE_MILLION = 1_000_000L;
-    private LoadingCache<Long, Long> cache;
+    private final LoadingCache<Long, Long> cache;
 
     private CommitTsCache(TransactionService transactionService, long maxSize) {
         cache = Caffeine.newBuilder()u}(jc (a5aa10990351e2183eaafa2292e37b9821a2373bj\d \atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitioner.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X.  @@ -15,10 +15,9 @@
  */
 package com.palantir.atlasdb.sweep.queue;
 
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.annotations.VisibleForTesting;
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.WriteReference;
@@ -41,13 +40,8 @@ public class WriteInfoPartitioner {
     private final KeyValueService kvs;
     private final Supplier<Integer> numShards;
 
-    private final LoadingCache<TableReference, SweeperStrategy> cache = CacheBuilder.newBuilder()
-            .build(new CacheLoader<>() {
-                @Override
-                public SweeperStrategy load(TableReference key) {
-                    return getStrategyFromKvs(key);
-                }
-            });
+    private final LoadingCache<TableReference, SweeperStrategy> cache =
+            Caffeine.newBuilder().build(this::getStrategyFromKvs);
 
     public WriteInfoPartitioner(KeyValueService kvs, Supplier<Integer> numShards) {
         this.kvs = kvs;
@@ -96,7 +90,7 @@ SweeperStrategy getStrategy(WriteInfo writeInfo) {
     }
 
     SweeperStrategy getStrategyForTable(TableReference tableRef) {
-        return cache.getUnchecked(tableRef);
+        return cache.get(tableRef);
     }
 
     private SweeperStrategy getStrategyFromKvs(TableReference tableRef) {u}(jc (873fe01fb2bcd122671ed8446a4741d208fbfa02j\d katlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AdvisoryLockConditionSuppliers.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -79,10 +79,13 @@ private static HeldLocksToken acquireLock(LockService lockService, LockRequest l
                     case BLOCK_UNTIL_TIMEOUT:
                     case BLOCK_INDEFINITELY:
                     case BLOCK_INDEFINITELY_THEN_RELEASE:
-                        log.warn("Could not lock successfully", ex);
                         ++failureCount;
+                        log.warn("Could not lock successfully", SafeArg.of("failureCount", failureCount), ex);
                         if (failureCount >= NUM_RETRIES) {
-                            log.warn("Failing after {} tries", SafeArg.of("failureCount", failureCount), ex);
+                            log.warn(
+                                    "Failing after exceeding maximum tries",
+                                    SafeArg.of("failureCount", failureCount),
+                                    ex);
                             throw ex;
                         }
                         break;u}(jc (3baaaaf51b7360fce9a867bd4f521f4017dceb26j\d `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj^d modifiedjVd K"jWd Kj`d K&jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -98,6 +98,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
 import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueServiceImpl;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
@@ -265,12 +266,14 @@ private enum State {
     protected final TableLevelMetricsController tableLevelMetricsController;
     protected final SuccessCallbackManager successCallbackManager = new SuccessCallbackManager();
     private final CommitTimestampLoader commitTimestampLoader;
+    private final ExpectationsMetrics expectationsDataCollectionMetrics;
 
     protected volatile boolean hasReads;
 
     protected final TimestampCache timestampCache;
 
     protected final TransactionKnowledgeComponents knowledge;
+
     protected final Closer closer = Closer.create();
 
     /**
@@ -345,6 +348,7 @@ private enum State {
                 timelockService,
                 immutableTimestamp,
                 knowledge);
+        this.expectationsDataCollectionMetrics = ExpectationsMetrics.of(metricsManager.getTaggedRegistry());
     }
 
     protected TransactionScopedCache getCache() {
@@ -1817,11 +1821,16 @@ private void ensureUncommitted() {
     }
 
     private void ensureStillRunning() {
-        if (!(state.get() == State.UNCOMMITTED || state.get() == State.COMMITTING)) {
+        if (!isStillRunning()) {
             throw new CommittedTransactionException();
         }
     }
 
+    private boolean isStillRunning() {
+        State stateNow = state.get();
+        return stateNow == State.UNCOMMITTED || stateNow == State.COMMITTING;
+    }
+
     /**
      * Returns true iff the transaction is known to have successfully committed.
      *
@@ -1950,8 +1959,9 @@ private void commitWrites(TransactionService transactionService) {
                 if (validationNecessaryForInvolvedTablesOnCommit()) {
                     throwIfImmutableTsOrCommitLocksExpired(null);
                 }
-                return;
             }
+            getTimer("nonWriteCommitTotalTimeSinceTxCreation")
+                    .update(Duration.of(transactionTimerContext.stop(), ChronoUnit.NANOS));
             return;
         }
 
@@ -2402,6 +2412,7 @@ protected LockToken acquireLocksForCommit() {
                                 lockDescriptors, currentTransactionConfig, stackTraceSnapshot))
                         .build());
         if (!lockResponse.wasSuccessful()) {
+            transactionOutcomeMetrics.markCommitLockAcquisitionFailed();
             log.error(
                     "Timed out waiting while acquiring commit locks. Timeout was {} ms. "
                             + "First ten required locks were {}.",
@@ -2596,9 +2607,28 @@ public TransactionReadInfo getReadInfo() {
         return keyValueService.getOverallReadInfo();
     }
 
-    // TODO(aalouane): implement and call this on transaction exit
     @Override
-    public void reportExpectationsCollectedData() {}
+    public void reportExpectationsCollectedData() {
+        if (isStillRunning()) {
+            log.error(
+                    "reportExpectationsCollectedData is called on an in-progress transaction",
+                    SafeArg.of("state", state.get()));
+            return;
+        }
+
+        reportExpectationsCollectedData(getAgeMillis(), getReadInfo(), expectationsDataCollectionMetrics);
+    }
+
+    @VisibleForTesting
+    static void reportExpectationsCollectedData(
+            long ageMillis, TransactionReadInfo readInfo, ExpectationsMetrics metrics) {
+        metrics.ageMillis().update(ageMillis);
+        metrics.bytesRead().update(readInfo.bytesRead());
+        metrics.kvsReads().update(readInfo.kvsCalls());
+
+        readInfo.maximumBytesKvsCallInfo().ifPresent(kvsCallReadInfo -> metrics.mostKvsBytesReadInSingleCall()
+                .update(kvsCallReadInfo.bytesRead()));
+    }
 
     private long getStartTimestamp() {
         return startTimestamp.get();u}(jc (7a4b02962f2c8fcd57bfd60b8b4b157b2e6ed956j\d gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcome.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -62,5 +62,10 @@ public enum TransactionOutcome {
      * that started before our start timestamp and hasn't committed). This will be logged at most once for a given
      * transaction being rolled back, even if multiple transactions aim to rollback the same transaction.
      */
-    ROLLBACK_OTHER
+    ROLLBACK_OTHER,
+
+    /**
+     * The transaction failed to acquire commit locks at the beginning of the AtlasDB commit protocol.
+     */
+    COMMIT_LOCK_ACQUISITION_FAILED,
 }u}(jc (0cf6b112d9082ed759671aab0086b2bf32ccbedbj\d natlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetrics.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -85,6 +85,10 @@ public void markRollbackOtherTransaction() {
         getMeter(TransactionOutcome.ROLLBACK_OTHER).mark();
     }
 
+    public void markCommitLockAcquisitionFailed() {
+        getMeter(TransactionOutcome.COMMIT_LOCK_ACQUISITION_FAILED).mark();
+    }
+
     @VisibleForTesting
     Meter getMeter(TransactionOutcome outcome) {
         return getMeter(outcome, ImmutableMap.of());u}(jc (e696a4e851cc0de0f72f1af470c874f29b2e719bj\d 5atlasdb-impl-shared/src/main/metrics/expectations.ymlj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymljcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.ymljed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fmetrics%2Fexpectations.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,19 @@
+options:
+  javaPackage: 'com.palantir.atlasdb.transaction.expectations'
+
+namespaces:
+  expectations:
+    docs: Data collection on transaction patterns
+    metrics:
+      bytesRead:
+        docs: Bytes read by a transaction through Atlas kvs read calls
+        type: histogram
+      kvsReads:
+        docs: Number of Atlas kvs read calls made by a transaction
+        type: histogram
+      ageMillis:
+        docs: Elapsed duration in milliseconds for a transaction
+        type: histogram
+      mostKvsBytesReadInSingleCall:
+        docs: Most bytes read by a transaction in one Atlas kvs read call
+        type: histogramu}(jc (2de6f288bf092213b4b2345a73a735695f0f3c27j\d catlasdb-impl-shared/src/test/java/com/palantir/atlasdb/keyvalue/api/watch/TimestampMappingTest.javaj^d addedjVd K\jWd K j`d K\jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X;  @@ -0,0 +1,92 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.api.watch;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.google.common.collect.Iterables;
+import com.palantir.lock.watch.LockWatchVersion;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import java.util.NoSuchElementException;
+import java.util.UUID;
+import org.junit.Test;
+
+public class TimestampMappingTest {
+    @Test
+    public void singleLeaderMappingIsValid() {
+        UUID id = UUID.randomUUID();
+        ImmutableTimestampMapping timestampMapping = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(id, 1))
+                .build();
+        assertThat(timestampMapping.leader()).isEqualTo(id);
+    }
+
+    @Test
+    public void singleDistinctLeaderMappingIsValid() {
+        UUID id = UUID.randomUUID();
+        ImmutableTimestampMapping timestampMapping = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(id, 1))
+                .putTimestampMapping(2L, LockWatchVersion.of(id, 1))
+                .build();
+        assertThat(timestampMapping.leader()).isEqualTo(id);
+    }
+
+    @Test
+    public void conflictingLeaderMappingIsInvalid() {
+        ImmutableTimestampMapping.Builder builder = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(UUID.randomUUID(), 1))
+                .putTimestampMapping(2L, LockWatchVersion.of(UUID.randomUUID(), 1));
+
+        assertThatThrownBy(builder::build)
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+    }
+
+    @Test
+    public void emptyMappingIsInvalid() {
+        assertThatThrownBy(() -> TimestampMapping.builder().build())
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("Invalid range");
+    }
+
+    @Test
+    public void onlyIdenticalElements() {
+        assertThat(TimestampMapping.identicalElement(List.of("test"))).isEqualTo("test");
+        assertThat(TimestampMapping.identicalElement(Iterables.limit(Iterables.cycle("test"), 1000)))
+                .isEqualTo("test");
+        assertThat(TimestampMapping.identicalElement(Iterables.limit(Iterables.cycle(42L), 1000)))
+                .isEqualTo(42L);
+    }
+
+    @Test
+    public void emptyDistinctElements() {
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of()))
+                .isInstanceOf(NoSuchElementException.class);
+    }
+
+    @Test
+    public void multipleDistinctElements() {
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of("a", "b", "a")))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of("a", "a", "b")))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+    }
+}u}(jc (ed0c8b2b67fd881994a89c56448b471760eee7f3j\d `atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitionerTest.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -30,14 +30,14 @@
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.Iterables;
-import com.google.common.util.concurrent.UncheckedExecutionException;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.atlasdb.table.description.SweeperStrategy;
+import com.palantir.common.exception.PalantirRuntimeException;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
@@ -74,15 +74,16 @@ public void setup() {
     public void getStrategyThrowsForIllegalMetadata() {
         when(mockKvs.getMetadataForTable(any())).thenReturn(AtlasDbConstants.EMPTY_TABLE_METADATA);
         assertThatThrownBy(() -> partitioner.getStrategy(getWriteInfoWithFixedShard(getTableRef("a"), 0, numShards)))
-                .isInstanceOf(UncheckedExecutionException.class);
+                .isInstanceOf(PalantirRuntimeException.class)
+                .hasMessageContaining("Message missing required fields: rowName, columns, conflictHandler");
     }
 
     @Test
     public void getStrategyThrowsOnUncheckedException() {
         RuntimeException cause = new RuntimeException("cause");
         when(mockKvs.getMetadataForTable(any())).thenThrow(cause);
         assertThatThrownBy(() -> partitioner.getStrategy(getWriteInfoWithFixedShard(getTableRef("a"), 0, numShards)))
-                .isInstanceOf(UncheckedExecutionException.class)
+                .isInstanceOf(RuntimeException.class)
                 .hasCause(cause);
     }
 u}(jc (c8823c29da58eca2fbdcdf7fc98f8ab892c82d54j\d matlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/ExpectationsMetricsReportingTest.javaj^d addedjVd KSjWd K j`d KSjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsMetricsReportingTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X<
  @@ -0,0 +1,83 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableKvsCallReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionReadInfo;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.expectations.ExpectationsMetrics;
+import com.palantir.atlasdb.util.MetricsManagers;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class ExpectationsMetricsReportingTest {
+    // immutable in type declaration for better 'withX' ergonomics
+    private static final ImmutableTransactionReadInfo BLANK_READ_INFO =
+            ImmutableTransactionReadInfo.builder().bytesRead(0).kvsCalls(0).build();
+
+    private ExpectationsMetrics metrics;
+
+    @Before
+    public void setUp() {
+        metrics = ExpectationsMetrics.of(MetricsManagers.createForTests().getTaggedRegistry());
+    }
+
+    @Test
+    public void ageReported() {
+        long age = 129L;
+        SnapshotTransaction.reportExpectationsCollectedData(age, BLANK_READ_INFO, metrics);
+        assertThat(metrics.ageMillis().getSnapshot().getValues()).containsOnly(age);
+    }
+
+    @Test
+    public void bytesReadReported() {
+        long bytes = 1290L;
+        reportMetrics(BLANK_READ_INFO.withBytesRead(bytes));
+        assertThat(metrics.bytesRead().getSnapshot().getValues()).containsOnly(bytes);
+    }
+
+    @Test
+    public void kvsCallsReported() {
+        long calls = 12L;
+        reportMetrics(BLANK_READ_INFO.withKvsCalls(calls));
+        assertThat(metrics.kvsReads().getSnapshot().getValues()).containsOnly(calls);
+    }
+
+    @Test
+    public void mostKvsBytesReadInSingleCallNotReportedOnReadInfoWithEmptyMaximumBytesKvsCallOnFinishedTransaction() {
+        reportMetrics(BLANK_READ_INFO);
+        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+                .isEmpty();
+    }
+
+    @Test
+    public void mostKvsBytesReadInSingleCallReportedOnReadInfoWithPresentMaximumBytesKvsCallOnFinishedTransaction() {
+        long bytes = 193L;
+        reportMetrics(BLANK_READ_INFO.withMaximumBytesKvsCallInfo(ImmutableKvsCallReadInfo.of("dummy", bytes)));
+        assertThat(metrics.mostKvsBytesReadInSingleCall().getSnapshot().getValues())
+                .containsOnly(bytes);
+    }
+
+    private void reportMetrics(TransactionReadInfo readInfo) {
+        SnapshotTransaction.reportExpectationsCollectedData(0L, readInfo, metrics);
+    }
+}u}(jc (cd21ecbc3c68e28c454d5bff8f68991164cec40bj\d tatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/TransactionConflictDetectionManagerTest.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConflictDetectionManagerTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConflictDetectionManagerTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConflictDetectionManagerTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -21,7 +21,7 @@
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.Mockito.when;
 
-import com.google.common.cache.CacheLoader;
+import com.github.benmanes.caffeine.cache.CacheLoader;
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;u}(jc (9e9357f8de655d0e17ba1dd9b8acd708782624daj\d _atlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/KeyValueTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FKeyValueTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FKeyValueTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FKeyValueTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -720,6 +721,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -743,5 +745,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "hup2zbIPEU3UyNMOfe1YNw==";
+    static String __CLASS_HASH = "EvFEiQbULvhKQD1IWFw9Og==";
 }u}(jc (71133787b090b82a707e49603e186dfa7e9667bbj\d jatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamHashAidxTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamHashAidxTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamHashAidxTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamHashAidxTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "5cWqgzNsimsjOXwgH7qMXg==";
+    static String __CLASS_HASH = "JgFB0UN+4Pm4N3LOPvQBgQ==";
 }u/      }(jc (12c3935195ed70fde95f3887274b533b88339351j\d eatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamIdxTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamIdxTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamIdxTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamIdxTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "MkCIg9TK7rahg1mYHQmGVQ==";
+    static String __CLASS_HASH = "bEOuPNCg8sYuyW4OuRhvww==";
 }u}(jc (89e24ea6242c9b9fb14e61ea5dcf01368dfc11ddj\d jatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamMetadataTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamMetadataTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamMetadataTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamMetadataTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "C96zzv/xJuD8fFjGUzSd4A==";
+    static String __CLASS_HASH = "lqzqHpNRg+/IVPQNyNYi8w==";
 }u}(jc (131662e5ecd75a9a845b1ada71a5f0caabb1015bj\d batlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamStore.javaj^d modifiedjVd KjWd Kj`d K	jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamStore.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamStore.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamStore.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X$
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         ValueStreamMetadataTable table = tables.getValueStreamMetadataTable(t);
         Map<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<ValueStreamMetadataTable.ValueStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<ValueStreamHashAidxTable.ValueStreamHashAidxRow, ValueStreamHashAidxTable.ValueStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (ValueStreamHashAidxTable.ValueStreamHashAidxRow r : m.keySet()) {
             for (ValueStreamHashAidxTable.ValueStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> rows = new HashSet<>();
+        Set<ValueStreamHashAidxTable.ValueStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(ValueStreamHashAidxTable.ValueStreamHashAidxRow.of(h));
         }u}(jc (8612b0a582e6b1950385aa6d1574bbac6e20ffa1j\d gatlasdb-perf/src/main/java/com/palantir/atlasdb/performance/schema/generated/ValueStreamValueTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamValueTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamValueTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-perf%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fperformance%2Fschema%2Fgenerated%2FValueStreamValueTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "AWqOKaIXG5obDvezpY9QEQ==";
+    static String __CLASS_HASH = "uFwDglAaZjBu9w6E/JkGTA==";
 }u}(jc (026fff67eab8e84d14bad0730080cfefeff0ac7dj\d atlasdb-service/build.gradlej^d modifiedjVd KjWd K j`d Kjad phttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-service%2Fbuild.gradlejcd ohttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-service%2Fbuild.gradlejed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-service%2Fbuild.gradle?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -11,6 +11,7 @@ dependencies {
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'
     implementation 'com.fasterxml.jackson.core:jackson-databind'
+    implementation 'com.github.ben-manes.caffeine:caffeine'
     implementation 'com.google.guava:guava'
     implementation 'com.google.protobuf:protobuf-java'
     implementation 'com.palantir.safe-logging:preconditions'u}(jc (b79b4dafcc946cf96444ea06a15f80c43c917632j\d Oatlasdb-service/src/main/java/com/palantir/atlasdb/impl/AtlasDbServiceImpl.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FAtlasDbServiceImpl.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FAtlasDbServiceImpl.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FAtlasDbServiceImpl.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xh  @@ -15,8 +15,8 @@
  */
 package com.palantir.atlasdb.impl;
 
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Iterables;
@@ -66,7 +66,7 @@ public class AtlasDbServiceImpl implements AtlasDbService {
     private final KeyValueService kvs;
     private final TransactionManager txManager;
     private final Cache<TransactionToken, OpenTransaction> transactions =
-            CacheBuilder.newBuilder().expireAfterAccess(Duration.ofHours(12)).build();
+            Caffeine.newBuilder().expireAfterAccess(Duration.ofHours(12)).build();
     private final TableMetadataCache metadataCache;
 
     @Injectu}(jc (0ada116d7372c26c8a0931872702ce8748ea8d09j\d Oatlasdb-service/src/main/java/com/palantir/atlasdb/impl/TableMetadataCache.javaj^d modifiedjVd K	jWd K
j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FTableMetadataCache.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FTableMetadataCache.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FTableMetadataCache.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -15,9 +15,8 @@
  */
 package com.palantir.atlasdb.impl;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.table.description.TableMetadata;
@@ -31,24 +30,21 @@ public class TableMetadataCache {
 
     @Inject
     public TableMetadataCache(final KeyValueService kvs) {
-        this.cache = CacheBuilder.newBuilder()
+        this.cache = Caffeine.newBuilder()
                 .expireAfterAccess(Duration.ofMinutes(15))
-                .build(new CacheLoader<String, TableMetadata>() {
-                    @Override
-                    public TableMetadata load(String tableName) throws Exception {
-                        byte[] rawMetadata = kvs.getMetadataForTable(TableReference.createUnsafe(tableName));
-                        if (rawMetadata == null || rawMetadata.length == 0) {
-                            return EMPTY;
-                        }
-                        return TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(rawMetadata);
+                .build(tableName -> {
+                    byte[] rawMetadata = kvs.getMetadataForTable(TableReference.createUnsafe(tableName));
+                    if (rawMetadata == null || rawMetadata.length == 0) {
+                        return EMPTY;
                     }
+                    return TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(rawMetadata);
                 });
     }
 
     @CheckForNull
     @SuppressWarnings("ImmutablesReferenceEquality")
     public TableMetadata getMetadata(String tableName) {
-        TableMetadata ret = cache.getUnchecked(tableName);
+        TableMetadata ret = cache.get(tableName);
         if (ret == EMPTY) {
             return null;
         }u}(jc (633bf2503dddd056c1d63648ab4b3b33ddae8945j\d !atlasdb-tests-shared/build.gradlej^d modifiedjVd KjWd K j`d Kjad uhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fbuild.gradlejcd thttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fbuild.gradlejed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fbuild.gradle?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xc  @@ -16,6 +16,7 @@ dependencies {
   implementation 'org.awaitility:awaitility'
 
   implementation 'com.fasterxml.jackson.core:jackson-core'
+  implementation 'com.github.ben-manes.caffeine:caffeine'
   implementation 'com.google.guava:guava'
   implementation 'com.palantir.common:streams'
   implementation 'com.palantir.conjure.java.api:service-config'u}(jc (495fe1f85525119f02ade86e97c44ed5de897764j\d katlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/TestConflictDetectionManagers.javaj^d modifiedjVd KjWd Kj`d K	jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTestConflictDetectionManagers.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTestConflictDetectionManagers.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTestConflictDetectionManagers.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X#  @@ -16,7 +16,6 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.google.common.annotations.VisibleForTesting;
-import com.google.common.cache.CacheLoader;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import java.util.Map;
@@ -28,11 +27,7 @@ private TestConflictDetectionManagers() {}
     @VisibleForTesting
     static ConflictDetectionManager createWithStaticConflictDetection(
             Map<TableReference, Optional<ConflictHandler>> staticMap) {
-        return new ConflictDetectionManager(new CacheLoader<>() {
-            @Override
-            public Optional<ConflictHandler> load(TableReference tableReference) throws Exception {
-                return staticMap.getOrDefault(tableReference, Optional.of(ConflictHandler.RETRY_ON_WRITE_WRITE));
-            }
-        });
+        return new ConflictDetectionManager(tableReference ->
+                staticMap.getOrDefault(tableReference, Optional.of(ConflictHandler.RETRY_ON_WRITE_WRITE)));
     }
 }u}(jc (8732fe7b76fe6fc4d194ebc3c3c808c8ab2df91ej\d uatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetricsAssert.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -59,6 +59,11 @@ public TransactionOutcomeMetricsAssert hasRollbackOther(long count) {
         return this;
     }
 
+    public TransactionOutcomeMetricsAssert hasCommitLockAcquisitionFailures(long count) {
+        checkPresentAndCheckCount(TransactionOutcome.COMMIT_LOCK_ACQUISITION_FAILED, count);
+        return this;
+    }
+
     public TransactionOutcomeMetricsAssert hasLocksExpired(long count) {
         checkPresentAndCheckCount(TransactionOutcome.LOCKS_EXPIRED, count);
         return this;u}(jc (8154359d774907dc53f1db528c9656c41f00ad36j\d `atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/indexing/generated/DataTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FDataTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FDataTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FDataTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -3605,6 +3606,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -3628,5 +3630,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "rHjWG0+SGxcp7KyF4uN6Tg==";
+    static String __CLASS_HASH = "fgza/c8nH19LqrftPRIqiA==";
 }u}(jc (ee2a5122bea79238ecd27ad1e4ca1456a7f7b835j\d fatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/indexing/generated/TwoColumnsTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FTwoColumnsTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FTwoColumnsTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Findexing%2Fgenerated%2FTwoColumnsTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -2175,6 +2176,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -2198,5 +2200,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "ZLP1HeIjAhSt/NFAlfaFZw==";
+    static String __CLASS_HASH = "KStjuJG0LJnDxQ1sOAdxdg==";
 }u}(jc (c38a44055aef521e0c7a9078ac8e38e1f8f113f3j\d batlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/KeyValueTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FKeyValueTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FKeyValueTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FKeyValueTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -658,6 +659,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -681,5 +683,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "FVgUWmuxuVzpOrJIO/DXPQ==";
+    static String __CLASS_HASH = "4kr4uM+Pm0pXXBnI3Rwp/g==";
 }u}(jc (483655cb2596c5c21bca0cbf355078fc452c2f2dj\d xatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamHashAidxTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamHashAidxTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamHashAidxTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamHashAidxTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "8WWlkvBZIFpNHwUr7wJuXA==";
+    static String __CLASS_HASH = "QDCK4a9zv6EgLNkYkrAVPQ==";
 }u}(jc (69c2cc77ef0d597921e1c6bf0028a4c9b6da106ej\d satlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamIdxTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamIdxTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamIdxTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamIdxTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "fBsgiTVm3m2sJucODfXkrw==";
+    static String __CLASS_HASH = "ZrY7oPqs4lWL5Vm3ZAOfyQ==";
 }u}(jc (a48313725d6bbc0ecd9e5fd285aa2e10742f285dj\d xatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamMetadataTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamMetadataTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamMetadataTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamMetadataTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "YleWz4H842qjJBXcYvLobg==";
+    static String __CLASS_HASH = "k1qnaFkT6dVNCXg3oBI4WQ==";
 }u}(jc (b52156d27108b8235106d6448d277090b0bc34f1j\d patlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamStore.javaj^d modifiedjVd KjWd Kj`d K	jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamStore.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamStore.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamStore.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd XX  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         StreamTestMaxMemStreamMetadataTable table = tables.getStreamTestMaxMemStreamMetadataTable(t);
         Map<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<StreamTestMaxMemStreamMetadataTable.StreamTestMaxMemStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow, StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow r : m.keySet()) {
             for (StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> rows = new HashSet<>();
+        Set<StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(StreamTestMaxMemStreamHashAidxTable.StreamTestMaxMemStreamHashAidxRow.of(h));
         }u}(jc (4cc09292a0c881814092e59571bf42259f56cab7j\d uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestMaxMemStreamValueTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamValueTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamValueTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestMaxMemStreamValueTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "1ctM+vcHEi56Rw7hX+plQg==";
+    static String __CLASS_HASH = "pYIryyxlhArJOo7k0Zv3dA==";
 }u}(jc (f825d53bfb0e6c5d7381ec01f8ecd07240bf379cj\d ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamHashAidxTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamHashAidxTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamHashAidxTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamHashAidxTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "A+NE35cfeEnY2MHhBM0Twg==";
+    static String __CLASS_HASH = "aO3hKAuHYd9vJquk5PiY1w==";
 }u}(jc (5502e70c87e613d70db75d4804d811626d434f02j\d matlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamIdxTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamIdxTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamIdxTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamIdxTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "eaBakAMUdj76AdcnIf29/Q==";
+    static String __CLASS_HASH = "hWTBrXR/SoJCr/v5CGBp5Q==";
 }u}(jc (ec5dd38ea6150d4b8d92e1084501290f8c0fef27j\d ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamMetadataTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamMetadataTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamMetadataTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamMetadataTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "gtouBjIyyNsb/b/qc9pCHA==";
+    static String __CLASS_HASH = "I4QsHKuDj4n21oCZPrbGRw==";
 }u}(jc (003e31d632e6a70db0661c723e695e8a07ef78a2j\d jatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamStore.javaj^d modifiedjVd KjWd Kj`d K	jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamStore.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamStore.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamStore.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         StreamTestStreamMetadataTable table = tables.getStreamTestStreamMetadataTable(t);
         Map<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<StreamTestStreamMetadataTable.StreamTestStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow, StreamTestStreamHashAidxTable.StreamTestStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow r : m.keySet()) {
             for (StreamTestStreamHashAidxTable.StreamTestStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> rows = new HashSet<>();
+        Set<StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(StreamTestStreamHashAidxTable.StreamTestStreamHashAidxRow.of(h));
         }u}(jc (67cbdf05b137660b3db269c6391c261c8816ea46j\d oatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestStreamValueTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamValueTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamValueTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestStreamValueTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Zjb+q9OtKHIGgdeO8BnLSw==";
+    static String __CLASS_HASH = "/Af3nGP1PVa3CpaveqZwGA==";
 }u}(jc (917b574b5d504d1cb1c8bf3fcffd2b3c22519a95j\d zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamHashAidxTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamHashAidxTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamHashAidxTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamHashAidxTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "X1hqbiqiEZbDU9agjHYzMA==";
+    static String __CLASS_HASH = "lE3nxoiGnxh9y5ILD8Ji1Q==";
 }u}(jc (303868d7e785a5c1384e703d5a65adf7a26b2a74j\d uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamIdxTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamIdxTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamIdxTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamIdxTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -730,6 +731,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -753,5 +755,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "U/6cxNEugWqjJJAs3M94Ew==";
+    static String __CLASS_HASH = "R1lO5ziYaN0Udjl/IakPew==";
 }u}(jc (71ec56a5ce54c4d000801a844aada1339c16a547j\d zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamMetadataTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamMetadataTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamMetadataTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamMetadataTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -697,6 +698,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -720,5 +722,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "nfCYOSFgRw9vgCfK8zepPQ==";
+    static String __CLASS_HASH = "ZnMVClEGG1k/Y9BfO/PktA==";
 }u}(jc (b239a11943f978187efeb70a40e27a8726a0f1dbj\d ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamStore.javaj^d modifiedjVd KjWd Kj`d K	jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamStore.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamStore.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamStore.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         StreamTestWithHashStreamMetadataTable table = tables.getStreamTestWithHashStreamMetadataTable(t);
         Map<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<StreamTestWithHashStreamMetadataTable.StreamTestWithHashStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow, StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow r : m.keySet()) {
             for (StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> rows = new HashSet<>();
+        Set<StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(StreamTestWithHashStreamHashAidxTable.StreamTestWithHashStreamHashAidxRow.of(h));
         }u}(jc (c74f7ec43a6341758a168abed0155c4295302fa9j\d watlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/StreamTestWithHashStreamValueTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamValueTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamValueTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FStreamTestWithHashStreamValueTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -684,6 +685,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -707,5 +709,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "gK5/dTiV0fnsYG3GkVekCA==";
+    static String __CLASS_HASH = "uywx4Vs+y/rXbP+WoU1Vqg==";
 }u}(jc (01c9c33be5490be859359377b6d7903a04344513j\d zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamHashAidxTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamHashAidxTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamHashAidxTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamHashAidxTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "Ki6bqIt1Bc7VLmWbBOyz8w==";
+    static String __CLASS_HASH = "52McDDADyoK80XG2PM7xUQ==";
 }u}(jc (693352f35cd8833aee14743963d366a5727e2a75j\d uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamIdxTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamIdxTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamIdxTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamIdxTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -730,6 +731,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -753,5 +755,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "1iZU2XfKSsaB+roXMxh1gQ==";
+    static String __CLASS_HASH = "tH6ZP3FAS46/RMntNor6tw==";
 }u}(jc (0d40497726fdeeb4e593498fd2a0b43d8e75e666j\d zatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamMetadataTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamMetadataTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamMetadataTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamMetadataTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -697,6 +698,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -720,5 +722,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "+eCmpk539lJx0Nvz/T4ltw==";
+    static String __CLASS_HASH = "j3IJu2gsDa9Zov5ZP9X4Mw==";
 }u}(jc (f2eb8a4207166b17b12c7605809b2b0c3d930ff2j\d ratlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamStore.javaj^d modifiedjVd KjWd Kj`d K	jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamStore.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamStore.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamStore.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         TestHashComponentsStreamMetadataTable table = tables.getTestHashComponentsStreamMetadataTable(t);
         Map<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow, TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow r : m.keySet()) {
             for (TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> rows = new HashSet<>();
+        Set<TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(TestHashComponentsStreamHashAidxTable.TestHashComponentsStreamHashAidxRow.of(h));
         }u}(jc (e7ad00be1ac27e569b3ab9038b9fe44f48f231dbj\d watlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/generated/TestHashComponentsStreamValueTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamValueTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamValueTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2Fstream%2Fgenerated%2FTestHashComponentsStreamValueTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -685,6 +686,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -708,5 +710,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "lib/FOHtmiJ4apr21C/FRA==";
+    static String __CLASS_HASH = "iDMBVL6YNzaq38VRV2lB/g==";
 }u}(jc (18e3bf26bf01f5384536788e145f8e8f37200656j\d latlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManagerTest.javaX      j^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManagerTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -237,7 +237,10 @@ public void registersMetrics() throws InterruptedException {
         TaggedMetricRegistry registry = snapshotTransactionManager.metricsManager.getTaggedRegistry();
         assertThat(registry.getMetrics().keySet().stream().map(MetricName::safeName))
                 .contains(SETUP_TASK_METRIC_NAME)
-                .contains(FINISH_TASK_METRIC_NAME);
+                .contains(FINISH_TASK_METRIC_NAME)
+                .contains("expectations.bytesRead")
+                .contains("expectations.kvsReads")
+                .contains("expectations.ageMillis");
         assertThat(registry.timer(MetricName.builder()
                                 .safeName(SETUP_TASK_METRIC_NAME)
                                 .build())u}(jc (c66fcac2f74aa5be8cdfd05aebf8029a49d9f883j\d eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -90,6 +90,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionConflictException;
 import com.palantir.atlasdb.transaction.api.TransactionFailedNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionFailedRetriableException;
+import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
@@ -118,6 +119,7 @@
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.TimeDuration;
 import com.palantir.lock.v2.LockImmutableTimestampResponse;
+import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.math.BigInteger;
@@ -322,6 +324,8 @@ public void cleanup() {}
     private static final Cell TEST_CELL = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("column1"));
     private static final Cell TEST_CELL_2 = Cell.create(PtBytes.toBytes("row2"), PtBytes.toBytes("column2"));
 
+    private static final byte[] TEST_VALUE = PtBytes.toBytes("value");
+
     @Override
     @Before
     public void setUp() throws Exception {
@@ -1484,6 +1488,23 @@ public void commitThrowsIfRolledBackAtCommitTime_expiredLocks() {
                 .hasLocksExpired(1);
     }
 
+    @Test
+    public void commitThrowsIfCommitLockAcquisitionFails() {
+        TimelockService timelockService = mock(TimelockService.class);
+        when(timelockService.lock(any(), any())).thenReturn(LockResponse.timedOut());
+        Transaction txn = getSnapshotTransactionWith(timelockService);
+
+        // We only request commit locks for transactions that write at least one value
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
+
+        assertThatThrownBy(txn::commit)
+                .isInstanceOf(TransactionLockAcquisitionTimeoutException.class)
+                .hasMessage("Timed out while acquiring commit locks.");
+        TransactionOutcomeMetricsAssert.assertThat(transactionOutcomeMetrics)
+                .hasFailedCommits(1)
+                .hasCommitLockAcquisitionFailures(1);
+    }
+
     @Test
     public void commitThrowsIfRolledBackAtCommitTime_alreadyAborted() {
         final Cell cell = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("column1"));
@@ -2459,6 +2480,14 @@ private void setTransactionConfig(TransactionConfig config) {
         transactionConfig = config;
     }
 
+    private Transaction getSnapshotTransactionWith(TimelockService timelockService) {
+        ConjureStartTransactionsResponse conjureResponse = startTransactionWithWatches();
+        LockImmutableTimestampResponse lockImmutableTimestampResponse = conjureResponse.getImmutableTimestamp();
+        long transactionTs = conjureResponse.getTimestamps().start();
+        return getSnapshotTransactionWith(
+                timelockService, () -> transactionTs, lockImmutableTimestampResponse, unused -> {});
+    }
+
     private Transaction getSnapshotTransactionWith(
             TimelockService timelockService,
             Supplier<Long> startTs,u}(jc (b86c6ab4d0e299588d4d550dff55a4b053fb2870j\d satlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetricsTest.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd XL  @@ -72,6 +72,7 @@ public void canMarkVariousOutcomes() {
                 .put(4, transactionOutcomeMetrics::markPutUnlessExistsFailed)
                 .put(5, transactionOutcomeMetrics::markRollbackOtherTransaction)
                 .put(6, transactionOutcomeMetrics::markPreCommitCheckFailed)
+                .put(7, transactionOutcomeMetrics::markCommitLockAcquisitionFailed)
                 .buildOrThrow();
 
         tasks.entrySet().forEach(entry -> IntStream.range(0, entry.getKey())
@@ -83,7 +84,8 @@ public void canMarkVariousOutcomes() {
                 .hasLocksExpired(3)
                 .hasPutUnlessExistsFailures(4)
                 .hasRollbackOther(5)
-                .hasPreCommitCheckFailures(6);
+                .hasPreCommitCheckFailures(6)
+                .hasCommitLockAcquisitionFailures(7);
     }
 
     @Testu}(jc (9ce74a5cd2c6d02324dae753b39d4472d7e0fcadj\d -atlasdb-workload-server-antithesis/Dockerfilej^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-antithesis%2FDockerfilejcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-antithesis%2FDockerfilejed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2FDockerfile?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -1,4 +1,6 @@
 FROM scratch
 MAINTAINER AtlasDB Team
 
-ADD docker-compose.yml /
\ No newline at end of file
+ADD docker-compose.yml /
+ADD compact.sh /
+ADD flush.sh /
\ No newline at end of fileu}(jc (b284936b64cae7e6b461c14a3b7d116eadd96a23j\d /atlasdb-workload-server-antithesis/build.gradlej^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-antithesis%2Fbuild.gradlejcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-antithesis%2Fbuild.gradlejed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fbuild.gradle?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd XL  @@ -7,5 +7,5 @@ def imageVersion = "${project.version.toString().replaceAll('\\+', '-')}"
 docker {
     name "palantirtechnologies/${project.name}:${imageVersion}"
     tags 'latest', 'snapshot'
-    files 'var/docker-compose.yml'
+    files 'var/docker-compose.yml', 'var/compact.sh', 'var/flush.sh'
 }
\ No newline at end of fileu}(jc (8fc45b8b9ddc37ded24af638207557f822511685j\d 1atlasdb-workload-server-antithesis/var/compact.shj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shjcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shjed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.sh?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,19 @@
+#!/bin/bash
+
+##
+# (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool compact'¡
\ No newline at end of fileu}(jc (b5c7b9efcec99e2e4e3b5ccc3eb2f13e725dca1aj\d 9atlasdb-workload-server-antithesis/var/docker-compose.ymlj^d modifiedjVd K)jWd K	j`d K2jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymljcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymljed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -2,7 +2,7 @@ version: '2'
 
 services:
   cassandra1:
-    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
     ports:
       - "9160"
       - "9042"
@@ -13,13 +13,14 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra1
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
 
   cassandra2:
-    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
     ports:
       - "9160"
       - "9042"
@@ -30,13 +31,14 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra2
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
 
   cassandra3:
-    image: palantirtechnologies/docker-cassandra-atlasdb:atlasdb-testing-palantir-cassandra
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
     ports:
       - "9160"
       - "9042"
@@ -47,35 +49,65 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
     container_name: cassandra3
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.4
 
-  timelock:
+  timelock1.palantir.pt:
     image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [ bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
     ports:
       - "8421"
       - "8422"
-    container_name: timelock
+    container_name: timelock1.palantir.pt
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.5
 
+  timelock2.palantir.pt:
+    image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [ bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
+    ports:
+      - "8421"
+      - "8422"
+    container_name: timelock2.palantir.pt
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.6
+
+  timelock3.palantir.pt:
+    image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
+    ports:
+      - "8421"
+      - "8422"
+    container_name: timelock3.palantir.pt
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.7
+
+
   workload-server:
     image: palantirtechnologies/atlasdb-workload-server-distribution:unspecified
-    command: [bash, -c, 'cp var/conf/workload-server.timelock.cassandra.yml var/conf/workload-server.yml 
-                         && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160 
+    command: [bash, -c, 'cp var/conf/workload-server.timelock.cassandra.yml var/conf/workload-server.yml
+                         && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160
                          && service/bin/init.sh console']
     container_name: workload-server
     depends_on:
       - cassandra1
       - cassandra2
       - cassandra3
-      - timelock
+      - timelock1.palantir.pt
+      - timelock2.palantir.pt
+      - timelock3.palantir.pt
     networks:
       antithesis-net:
-        ipv4_address: 10.20.20.6
+        ipv4_address: 10.20.20.8
 
 networks:
   antithesis-net:u}(jc (507c4267b553dffafece23d33ad88df6fd5f4bb2j\d /atlasdb-workload-server-antithesis/var/flush.shj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shjcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shjed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fflush.sh?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,19 @@
+#!/bin/bash
+
+##
+# (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool flush'
\ No newline at end of fileu}(jc (b7485353a77f6bf0cd6c937bff58416577e13b1dj\d (atlasdb-workload-server-api/build.gradlej^d modifiedjVd KjWd K j`d Kjad |https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fbuild.gradlejcd {https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fbuild.gradlejed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fbuild.gradle?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -13,4 +13,5 @@ dependencies {
     annotationProcessor 'org.immutables:value'
 
     testImplementation 'com.palantir.safe-logging:preconditions-assertj'
+    testImplementation 'org.mockito:mockito-core'
 }
\ No newline at end of fileu}(jc (d4fbc32c29d514c2d7a88a64e0fbc48b94b74465j\d matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/CrossCellInconsistency.javaj^d addedjVd K-jWd K j`d K-jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistency.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistency.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistency.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.Map;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+/**
+ * A set of cells that may individually be valid, but considered together may violate some property that is expected
+ * to hold across the group of cells.
+ */
+@Value.Immutable
+public interface CrossCellInconsistency {
+    Map<TableAndWorkloadCell, Optional<Integer>> inconsistentValues();
+
+    @Value.Check
+    default void consistsOfAtLeastTwoCells() {
+        Preconditions.checkArgument(
+                inconsistentValues().size() >= 2,
+                "A cross-cell inconsistency must consist of at least two cells",
+                SafeArg.of("values", inconsistentValues()));
+    }
+
+    static ImmutableCrossCellInconsistency.Builder builder() {
+        return ImmutableCrossCellInconsistency.builder();
+    }
+}u}(jc (29fc330cc18e86d9e89097012f497c48a1e6c4b9j\d fatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/MismatchedValue.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X&  @@ -24,10 +24,10 @@
 @Value.Immutable
 public interface MismatchedValue {
     @Value.Parameter
-    Optional<Integer> actual();
+    ValueAndMaybeTimestamp actual();
 
     @Value.Parameter
-    Optional<Integer> expected();
+    ValueAndMaybeTimestamp expected();
 
     @Value.Check
     default void actualAndExpectedAreNotEqualToEachOther() {
@@ -39,6 +39,10 @@ default void actualAndExpectedAreNotEqualToEachOther() {
     }
 
     static MismatchedValue of(Optional<Integer> actual, Optional<Integer> expected) {
+        return MismatchedValue.of(ValueAndMaybeTimestamp.of(actual), ValueAndMaybeTimestamp.of(expected));
+    }
+
+    static MismatchedValue of(ValueAndMaybeTimestamp actual, ValueAndMaybeTimestamp expected) {
         return ImmutableMismatchedValue.of(actual, expected);
     }
 }u}(jc (596cccc8bfe0813aaf92d90536ccec5e30931db3j\d katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/TransactionInvariant.javaj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTransactionInvariant.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,22 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import java.util.List;
+
+public interface TransactionInvariant extends Invariant<List<InvalidWitnessedTransaction>> {}u}(jc (f4cdcb16e74fcf6db212f3bb382ada34382c7076j\d matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/ValueAndMaybeTimestamp.javaj^d addedjVd KEjWd K j`d KEjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FValueAndMaybeTimestamp.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X	  @@ -0,0 +1,69 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import java.util.Optional;
+import org.immutables.value.Value;
+
+/**
+ * Occasionally, storing just a value might not be enough context needed when validating an invariant.
+ *
+ * For example, to detect that the ABA problem has occurred (ABA problem (https://en.wikipedia.org/wiki/ABA_problem),
+ * values alone would not be sufficient. Storing the timestamp associated with the value, such as the start timestamp,
+ * would be able to catch these sort of cases.
+ */
+@Value.Immutable
+public interface ValueAndMaybeTimestamp {
+    ValueAndMaybeTimestamp EMPTY = of(Optional.empty(), Optional.empty());
+
+    /**
+     * Value, which when empty either indicates it does not exist, or has been deleted.
+     */
+    @Value.Parameter
+    Optional<Integer> value();
+
+    /**
+     * Optional timestamp associated with the value. When empty it means either it does not exist, or it is not needed
+     * for comparison.
+     */
+    @Value.Parameter
+    Optional<Long> timestamp();
+
+    static ValueAndMaybeTimestamp empty() {
+        return EMPTY;
+    }
+
+    static ValueAndMaybeTimestamp of(Integer value) {
+        return of(Optional.of(value));
+    }
+
+    static ValueAndMaybeTimestamp of(Optional<Integer> value) {
+        return of(value, Optional.empty());
+    }
+
+    static ValueAndMaybeTimestamp of(Optional<Integer> value, Long timestamp) {
+        return of(value, Optional.of(timestamp));
+    }
+
+    static ValueAndMaybeTimestamp of(Integer value, Long timestamp) {
+        return of(Optional.of(value), Optional.of(timestamp));
+    }
+
+    static ValueAndMaybeTimestamp of(Optional<Integer> value, Optional<Long> timestamp) {
+        return ImmutableValueAndMaybeTimestamp.of(value, timestamp);
+    }
+}u}(jc (e413798427db97d025ad85b9f49ea4d26c076e02j\d natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/resource/CassandraSidecarResource.javaj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,29 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.resource;
+
+public interface CassandraSidecarResource {
+    /**
+     * Asynchronous method that flushes all keyspaces on a Cassandra host.
+     */
+    void flush(String host);
+
+    /**
+     * Asynchronous method that performs a major compaction for all keyspaces on Cassandra.
+     */
+    void compact(String host);
+}u}(jc (2725912f8e075ab25f996c376910f257d6850d7fj\d ^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ColumnValue.javaj^d addedjVd K jWd K j`d K jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FColumnValue.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ColumnValue {
+    @Value.Parameter
+    int column();
+
+    @Value.Parameter
+    int value();
+
+    static ColumnValue of(int column, int value) {
+        return ImmutableColumnValue.of(column, value);
+    }
+}u}(jc (72396cbd183a5589ac7b3cf6593e07b9c5de2fd0j\d katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ReadableTransactionStore.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd XY  @@ -28,4 +28,9 @@ public interface ReadableTransactionStore {
      * @return The value of the cell for a given table.
      */
     Optional<Integer> get(String table, WorkloadCell cell);
+
+    /**
+     * Checks whether the transaction with the provided startTimestamp has committed.
+     */
+    boolean isCommitted(long startTimestamp);
 }u}(jc (9a3b7a7060c8f72d6a97bc2c347571b698b81c47j\d jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStoreFactory.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -22,6 +22,6 @@
 /**
  * Creates transaction stores of a certain type which are bounded to the provided tables/indexes.
  */
-public interface TransactionStoreFactory {
-    TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
+public interface TransactionStoreFactory<T extends TransactionStore> {
+    T create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
 }u}(jc (8a9dd68a171bcb94d41b777979635f8a4cca5c99j\d matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelection.javaj^d addedjVd KBjWd K j`d KBjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelection.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xq	  @@ -0,0 +1,66 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.google.common.collect.Range;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface ColumnRangeSelection {
+    Optional<Integer> startColumnInclusive();
+
+    Optional<Integer> endColumnExclusive();
+
+    default boolean contains(int column) {
+        return asGuavaRange().contains(column);
+    }
+
+    default Range<Integer> asGuavaRange() {
+        if (startColumnInclusive().isEmpty()) {
+            if (endColumnExclusive().isEmpty()) {
+                return Range.all();
+            } else {
+                return Range.lessThan(endColumnExclusive().get());
+            }
+        } else {
+            if (endColumnExclusive().isEmpty()) {
+                return Range.atLeast(startColumnInclusive().get());
+            } else {
+                return Range.closedOpen(
+                        startColumnInclusive().get(), endColumnExclusive().get());
+            }
+        }
+    }
+
+    @Value.Check
+    default void check() {
+        Preconditions.checkState(
+                startColumnInclusive().isEmpty()
+                        || endColumnExclusive().isEmpty()
+                        || startColumnInclusive().get() <= endColumnExclusive().get(),
+                "Start column must be less than or equal to end column",
+                SafeArg.of("startColumnInclusive", startColumnInclusive()),
+                SafeArg.of("endColumnExclusive", endColumnExclusive()));
+    }
+
+    static ImmutableColumnRangeSelection.Builder builder() {
+        return ImmutableColumnRangeSelection.builder();
+    }
+}u}(jc (bd06cc1312715a991167d81bd1ceb940ff719fc1j\d patlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/DeleteTransactionAction.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X{  @@ -22,7 +22,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface DeleteTransactionAction extends TransactionAction {
+public interface DeleteTransactionAction extends SingleCellTransactionAction {
 
     default WitnessedDeleteTransactionAction witness() {
         return ImmutableWitnessedDeleteTransactionAction.of(table(), cell());u}(jc (e9ae2e08974eda0443281b98d5bc9d2fb9243eccj\d natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ReadTransactionAction.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -23,7 +23,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface ReadTransactionAction extends TransactionAction {
+public interface ReadTransactionAction extends SingleCellTransactionAction {
 
     default WitnessedReadTransactionAction witness(Optional<Integer> value) {
         return ImmutableWitnessedReadTransactionAction.of(table(), cell(), value);u}(jc (38bd65bb4f96e9501721390809e74a159a2f3b13j\d |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowColumnRangeReadTransactionAction.javaj^d addedjVd K7jWd K j`d K7jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowColumnRangeReadTransactionAction.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X	  @@ -0,0 +1,55 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import java.util.List;
+import org.immutables.value.Value;
+
+/**
+ * This transaction action models a column range read in AtlasDB ("getRowsColumnRange" in the AtlasDB API).
+ * <p>
+ * In the interest of implementation simplicity, two significant simplifications are made. Firstly, the action is
+ * presumed to act on a single row, though calls to getRowsColumnRange in practice can act on multiple rows in parallel.
+ * Secondly, values read from getRowsColumnRange are accessed through a live iterator, while for purposes of gathering
+ * a witness, we immediately drain the iterator and use the set of columns read as the witness to this action.
+ */
+@Value.Immutable
+public interface RowColumnRangeReadTransactionAction extends TransactionAction {
+    String table();
+
+    int row();
+
+    ColumnRangeSelection columnRangeSelection();
+
+    @Override
+    default <T> T accept(TransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    default WitnessedRowColumnRangeReadTransactionAction witness(List<ColumnValue> columnsAndValues) {
+        return WitnessedRowColumnRangeReadTransactionAction.builder()
+                .originalQuery(this)
+                .columnsAndValues(columnsAndValues)
+                .build();
+    }
+
+    static ImmutableRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableRowColumnRangeReadTransactionAction.builder();
+    }
+}u}(jc (47b25ab538c861987aa480e47c2bb08032e32fc0j\d tatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/SingleCellTransactionAction.javaj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FSingleCellTransactionAction.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X>  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface SingleCellTransactionAction extends TransactionAction {
+    /** Table to apply transaction to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) to apply the action to. */
+    @Value.Parameter
+    WorkloadCell cell();
+}u}(jc (e6ee57fa3732a9a1984c98b088bfc9a577a7fbe8j\d jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionAction.javaj^d modifiedjVd K jWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction;
 
-import com.palantir.atlasdb.workload.store.WorkloadCell;
-import org.immutables.value.Value;
-
 public interface TransactionAction {
-
-    /** Table to apply transaction to. */
-    @Value.Parameter
-    String table();
-
-    /** Cell (Key, Column) to apply the action to. */
-    @Value.Parameter
-    WorkloadCell cell();
-
     <T> T accept(TransactionActionVisitor<T> visitor);
 }u}(jc (1625640516054c38d6886dbd91b10123cb0bb223j\d qatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionActionVisitor.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -22,4 +22,6 @@ public interface TransactionActionVisitor<T> {
     T visit(WriteTransactionAction writeTransactionAction);
 
     T visit(DeleteTransactionAction deleteTransactionAction);
+
+    T visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction);
 }u}(jc (7b9112fa4356eade1fb793e23ca54d962811ccfcj\d oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/WriteTransactionAction.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -22,7 +22,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WriteTransactionAction extends TransactionAction {
+public interface WriteTransactionAction extends SingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(jc (574a86c53458c2bbb5f43c19c269eb2ee52679c7j\d |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/FullyWitnessedTransaction.javaj^d addedjVd K"jWd K j`d K"jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we know for certain we've witnessed.
+ */
+@Value.Immutable
+public interface FullyWitnessedTransaction extends WitnessedTransaction {
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableFullyWitnessedTransaction.Builder builder() {
+        return ImmutableFullyWitnessedTransaction.builder();
+    }
+}u}(jc (2f66134a6e594e63bdba1ebec482177c03bd9220j\d atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedSingleCellTransactionAction.javaj^d addedjVd K"jWd K j`d K"jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.javajed X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedSingleCellTransactionAction.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd XP  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.invariant.MismatchedValue;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedSingleCellTransactionAction extends InvalidWitnessedTransactionAction {
+    @Value.Parameter
+    WitnessedSingleCellTransactionAction action();
+
+    @Value.Parameter
+    MismatchedValue mismatchedValue();
+
+    static InvalidWitnessedSingleCellTransactionAction of(
+            WitnessedSingleCellTransactionAction action, MismatchedValue mismatchedValue) {
+        return ImmutableInvalidWitnessedSingleCellTransactionAction.of(action, mismatchedValue);
+    }
+}u}(jc (f2fc56cca46a09c2ef718c3b7cb6b8d4000c1d8fj\d atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javaj^d modifiedjVd KjWd K
j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xw  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.invariant.MismatchedValue;
-import org.immutables.value.Value;
-
-@Value.Immutable
 public interface InvalidWitnessedTransactionAction {
-    @Value.Parameter
-    WitnessedTransactionAction action();
-
-    @Value.Parameter
-    MismatchedValue mismatchedValue();
-
-    static InvalidWitnessedTransactionAction of(WitnessedTransactionAction action, MismatchedValue mismatchedValue) {
-        return ImmutableInvalidWitnessedTransactionAction.of(action, mismatchedValue);
-    }
+    // Marker interface
 }u}(jc (5a66280426c78d83ed7001fc4ee1aebb894f7578j\d |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransaction.javaj^d addedjVd K4jWd K j`d K4jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.logsafe.Preconditions;
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we witnessed, but are in a state which we are
+ * unsure if they have committed or not due to failures.
+ */
+@Value.Immutable
+public interface MaybeWitnessedTransaction extends WitnessedTransaction {
+    @Value.Check
+    default void check() {
+        Preconditions.checkArgument(
+                commitTimestamp().isPresent(),
+                "Given how the transaction protocol works, a transaction for which we haven't retrieved the commit "
+                        + "timestamp has not written anything of significance to the database");
+    }
+
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableMaybeWitnessedTransaction.Builder builder() {
+        return ImmutableMaybeWitnessedTransaction.builder();
+    }
+
+    default FullyWitnessedTransaction toFullyWitnessed() {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(startTimestamp())
+                .commitTimestamp(commitTimestamp())
+                .actions(actions())
+                .build();
+    }
+}u}(jc (664e279d4223b1f5897c5f45615e3cdbdaa71ac3j\d atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedDeleteTransactionAction.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xo  @@ -20,7 +20,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedDeleteTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedDeleteTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {u}(jc (beff6229abcbdbf535af57c09c43ad7c92566201j\d atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedReadTransactionAction.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X7  @@ -21,7 +21,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable(builder = false)
-public interface WitnessedReadTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedReadTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(jc (284f26075e3ae1ed8320bcbc8402749af631ccddj\d atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionAction.javaj^d addedjVd K;jWd K j`d K;jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.javajed X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionAction.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X	  @@ -0,0 +1,59 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WitnessedRowColumnRangeReadTransactionAction extends WitnessedTransactionAction {
+    RowColumnRangeReadTransactionAction originalQuery();
+
+    // This is a List rather than a Set or Map because the ordering in which the columns and values are returned is
+    // important (it must match the ordering specified by the contract of row column range reads).
+    List<ColumnValue> columnsAndValues();
+
+    @Override
+    default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    @Value.Check
+    default void check() {
+        Set<Integer> knownColumns = new HashSet<>();
+        Set<Integer> duplicateColumns = columnsAndValues().stream()
+                .map(ColumnValue::column)
+                .filter(column -> !knownColumns.add(column))
+                .collect(Collectors.toSet());
+        Preconditions.checkState(
+                duplicateColumns.isEmpty(),
+                "Duplicate columns in columnsAndValues",
+                SafeArg.of("duplicateColumns", duplicateColumns),
+                SafeArg.of("columnsAndValues", columnsAndValues()));
+    }
+
+    static ImmutableWitnessedRowColumnRangeReadTransactionAction.Builder builder() {
+        return ImmutableWitnessedRowColumnRangeReadTransactionAction.builder();
+    }
+}u}(jc (eed34c03b4bd04c09374ca41608cb74986cb40c0j\d atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedSingleCellTransactionAction.javaj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedSingleCellTransactionAction.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd XW  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface WitnessedSingleCellTransactionAction extends WitnessedTransactionAction {
+    /** Table action was applied to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) the action applied to. */
+    @Value.Parameter
+    WorkloadCell cell();
+}u}(jc (525e82582d3affac4608bebfe366141f3088a716j\d watlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransaction.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2be     jgd X
  @@ -18,9 +18,7 @@
 
 import java.util.List;
 import java.util.Optional;
-import org.immutables.value.Value;
 
-@Value.Immutable
 public interface WitnessedTransaction {
     /** Start timestamp of the transaction. */
     long startTimestamp();
@@ -30,4 +28,6 @@ public interface WitnessedTransaction {
 
     /** Provides an in-order list of actions that were performed during the transaction's execution. */
     List<WitnessedTransactionAction> actions();
+
+    <T> T accept(WitnessedTransactionVisitor<T> visitor);
 }u}(jc (3e350184f320b0cd81f7019819c5d83c6a9d8602j\d }atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionAction.javaj^d modifiedjVd K jWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -16,18 +16,6 @@
 
 package com.palantir.atlasdb.workload.transaction.witnessed;
 
-import com.palantir.atlasdb.workload.store.WorkloadCell;
-import org.immutables.value.Value;
-
 public interface WitnessedTransactionAction {
-
-    /** Table action was applied to. */
-    @Value.Parameter
-    String table();
-
-    /** Cell (Key, Column) the action applied to. */
-    @Value.Parameter
-    WorkloadCell cell();
-
     <T> T accept(WitnessedTransactionActionVisitor<T> visitor);
 }u}(jc (ca4d65c16390f51cc645a365e26e4c1c79a67e15j\d atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionActionVisitor.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X>  @@ -22,4 +22,6 @@ public interface WitnessedTransactionActionVisitor<T> {
     T visit(WitnessedWriteTransactionAction writeTransactionAction);
 
     T visit(WitnessedDeleteTransactionAction deleteTransactionAction);
+
+    T visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction);
 }u}(jc (33682bf649e7b87408367a7f23d4995c94c96d98j\d ~atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionVisitor.javaj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,23 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+public interface WitnessedTransactionVisitor<T> {
+    T visit(FullyWitnessedTransaction witnessedTransaction);
+
+    T visit(MaybeWitnessedTransaction maybeWitnessedTransaction);
+}u}(jc (43687fd4d7dbdc3a1ac0ec26f2f38d0366613022j\d atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedWriteTransactionAction.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X(  @@ -20,7 +20,7 @@
 import org.immutables.value.Value;
 
 @Value.Immutable
-public interface WitnessedWriteTransactionAction extends WitnessedTransactionAction {
+public interface WitnessedWriteTransactionAction extends WitnessedSingleCellTransactionAction {
 
     @Override
     @Value.Parameteru}(jc (521eb86ec62e39c42dea4234b11b2f742d9a8e1dj\d katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowAndInvariants.javaj^d addedjVd K-jWd K j`d K-jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import java.util.Arrays;
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WorkflowAndInvariants<WorkflowTypeT extends Workflow> {
+    @Value.Parameter
+    WorkflowTypeT workflow();
+
+    @Value.Parameter
+    List<InvariantReporter<?>> invariantReporters();
+
+    static <WorkflowTypeT extends Workflow> WorkflowAndInvariants<WorkflowTypeT> of(
+            WorkflowTypeT workflow, List<InvariantReporter<?>> invariants) {
+        return ImmutableWorkflowAndInvariants.of(workflow, invariants);
+    }
+
+    static <WorkflowTypeT extends Workflow> WorkflowAndInvariants<WorkflowTypeT> of(
+            WorkflowTypeT workflow, InvariantReporter<?>... invariants) {
+        return ImmutableWorkflowAndInvariants.of(workflow, Arrays.asList(invariants));
+    }
+
+    static <WorkflowTypeT extends Workflow> ImmutableWorkflowAndInvariants.Builder<WorkflowTypeT> builder() {
+        return ImmutableWorkflowAndInvariants.builder();
+    }
+}u}(jc (47b4109802a3529a585cdba06bb50cbe3fb2a098j\d katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowConfiguration.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -17,8 +17,19 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import org.immutables.value.Value;
 
 @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
 public interface WorkflowConfiguration {
     int iterationCount();
+
+    @Value.Default
+    default double rateLimit() {
+        return 100;
+    }
+
+    @Value.Default
+    default Integer maxThreadCount() {
+        return 100;
+    }
 }u}(jc (ffbc895344923f90f2a9fbedaca2f32929339b6cj\d eatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowHistory.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -26,5 +26,10 @@ public interface WorkflowHistory {
     // We may want to query the KVS during verification.
     ReadableTransactionStore transactionStore();
 
+    /**
+     * TODO: This should only be a list of
+     * {@link com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction} rather than the general
+     * purpose type.
+     */
     List<WitnessedTransaction> history();
 }u}(jc (3b0f830372ef64835a492324722b2b2019546854j\d natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowHistoryValidator.javaj^d renamedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -18,13 +18,17 @@
 
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
 import java.util.List;
+import org.immutables.value.Value;
 
-/**
- * Run the provided workflow and execute the provided invariant reporters.
- *
- * The idea of this class is that long-term we will want to have multiple ways to run/execute workflows,
- * rather than biasing towards the present case (just once).
- */
-public interface WorkflowRunner<WorkflowTypeT extends Workflow> {
-    void run(WorkflowTypeT workflow, List<InvariantReporter<?>> invariantReporters);
+@Value.Immutable
+public interface WorkflowHistoryValidator {
+    @Value.Parameter
+    WorkflowHistory history();
+
+    @Value.Parameter
+    List<InvariantReporter<?>> invariants();
+
+    static WorkflowHistoryValidator of(WorkflowHistory history, List<InvariantReporter<?>> invariants) {
+        return ImmutableWorkflowHistoryValidator.of(history, invariants);
+    }
 }previous_filenamedatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowRunner.javau}(jc (7bda1b5a5ae5fcf4035a9bcb3a8979da682b9deaj\d matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowValidatorRunner.javaj^d addedjVd K#jWd K j`d K#jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X(  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * Run the provided workflow and validate that it is correct with the provided invariants.
+ */
+public interface WorkflowValidatorRunner<WorkflowTypeT extends Workflow> {
+    void run(List<WorkflowAndInvariants<WorkflowTypeT>> workflowAndInvariants);
+
+    default void run(WorkflowAndInvariants<WorkflowTypeT>... workflowAndInvariants) {
+        run(Arrays.asList(workflowAndInvariants));
+    }
+
+    default void run(WorkflowAndInvariants<WorkflowTypeT> workflowAndInvariants) {
+        run(List.of(workflowAndInvariants));
+    }
+}u}(jc (a7473ea1e605ae08dd6feec971f0cd30384c89e4j\d qatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/invariant/CrossCellInconsistencyTest.javaj^d addedjVd K;jWd K j`d K;jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistencyTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistencyTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistencyTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X
  @@ -0,0 +1,59 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Optional;
+import org.junit.Test;
+
+public class CrossCellInconsistencyTest {
+    // The constants in WorkloadTestHelper are not accessible from this package.
+    private static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_ONE =
+            TableAndWorkloadCell.of("foo", ImmutableWorkloadCell.of(1, 2));
+    private static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
+            TableAndWorkloadCell.of("foo", ImmutableWorkloadCell.of(3, 4));
+
+    @Test
+    public void cannotBeCreatedWithoutCells() {
+        assertThatThrownBy(() -> CrossCellInconsistency.builder().build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("A cross-cell inconsistency must consist of at least two cells");
+    }
+
+    @Test
+    public void cannotBeCreatedWithJustOneCell() {
+        assertThatThrownBy(() -> CrossCellInconsistency.builder()
+                        .putInconsistentValues(TABLE_WORKLOAD_CELL_ONE, Optional.of(3))
+                        .build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("A cross-cell inconsistency must consist of at least two cells");
+    }
+
+    @Test
+    public void canBeCreatedWithTwoCells() {
+        CrossCellInconsistency violation = CrossCellInconsistency.builder()
+                .putInconsistentValues(TABLE_WORKLOAD_CELL_ONE, Optional.of(3))
+                .putInconsistentValues(TABLE_WORKLOAD_CELL_TWO, Optional.empty())
+                .build();
+        assertThat(violation.inconsistentValues()).containsOnlyKeys(TABLE_WORKLOAD_CELL_ONE, TABLE_WORKLOAD_CELL_TWO);
+    }
+}u}(jc (636e11dbc52b78329590a8ee90644f9728e5fb69j\d jatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/invariant/MismatchedValueTest.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xz  @@ -21,13 +21,12 @@
 import static org.assertj.core.api.Assertions.assertThatCode;
 
 import com.palantir.logsafe.SafeArg;
-import java.util.Optional;
 import org.junit.Test;
 
 public final class MismatchedValueTest {
 
-    private static final Optional<Integer> VALUE_ONE = Optional.of(15);
-    private static final Optional<Integer> VALUE_TWO = Optional.of(25);
+    private static final ValueAndMaybeTimestamp VALUE_ONE = ValueAndMaybeTimestamp.of(25);
+    private static final ValueAndMaybeTimestamp VALUE_TWO = ValueAndMaybeTimestamp.of(15);
 
     @Test
     public void canConstructMismatchedValueFromTwoDifferentValues() {u}(jc (e023081417c4bca7cf9bb80aeeb71bd64bdf21a4j\d qatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/ColumnRangeSelectionTest.javaj^d addedjVd KbjWd K j`d Kbjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FColumnRangeSelectionTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,98 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.Optional;
+import org.junit.Test;
+
+public class ColumnRangeSelectionTest {
+    @Test
+    public void cannotCreateRangeWithStartColumnGreaterThanEndColumn() {
+        assertThatLoggableExceptionThrownBy(() -> ColumnRangeSelection.builder()
+                        .startColumnInclusive(5)
+                        .endColumnExclusive(4)
+                        .build())
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Start column must be less than or equal to end column")
+                .hasExactlyArgs(
+                        SafeArg.of("startColumnInclusive", Optional.of(5)),
+                        SafeArg.of("endColumnExclusive", Optional.of(4)));
+    }
+
+    @Test
+    public void emptyRangeDoesNotContainAnyElements() {
+        ColumnRangeSelection emptyRange = ColumnRangeSelection.builder()
+                .startColumnInclusive(6)
+                .endColumnExclusive(6)
+                .build();
+        assertThat(emptyRange.contains(5)).isFalse();
+        assertThat(emptyRange.contains(6)).isFalse();
+        assertThat(emptyRange.contains(7)).isFalse();
+        assertThat(emptyRange.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(emptyRange.contains(Integer.MAX_VALUE)).isFalse();
+    }
+
+    @Test
+    public void singleElementRangeContainsJustItself() {
+        ColumnRangeSelection justSeven = ColumnRangeSelection.builder()
+                .startColumnInclusive(7)
+                .endColumnExclusive(8)
+                .build();
+        assertThat(justSeven.contains(6)).isFalse();
+        assertThat(justSeven.contains(7)).isTrue();
+        assertThat(justSeven.contains(8)).isFalse();
+        assertThat(justSeven.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(justSeven.contains(Integer.MAX_VALUE)).isFalse();
+    }
+
+    @Test
+    public void universalRangeContainsEverything() {
+        ColumnRangeSelection universal = ColumnRangeSelection.builder().build();
+        assertThat(universal.contains(10241024)).isTrue();
+        assertThat(universal.contains(-20482048)).isTrue();
+        assertThat(universal.contains(40924092)).isTrue();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isTrue();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isTrue();
+    }
+
+    @Test
+    public void lowerBoundedRangesContainCorrectElements() {
+        ColumnRangeSelection universal =
+                ColumnRangeSelection.builder().startColumnInclusive(5).build();
+        assertThat(universal.contains(4)).isFalse();
+        assertThat(universal.contains(5)).isTrue();
+        assertThat(universal.contains(6)).isTrue();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isFalse();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isTrue();
+    }
+
+    @Test
+    public void upperBoundedRangesContainCorrectElements() {
+        ColumnRangeSelection universal =
+                ColumnRangeSelection.builder().endColumnExclusive(5).build();
+        assertThat(universal.contains(4)).isTrue();
+        assertThat(universal.contains(5)).isFalse();
+        assertThat(universal.contains(6)).isFalse();
+        assertThat(universal.contains(Integer.MIN_VALUE)).isTrue();
+        assertThat(universal.contains(Integer.MAX_VALUE)).isFalse();
+    }
+}u}(jc (d8ae0172e04f5d987b18981c085af657a86bf0e4j\d atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javaj^d addedjVd KDjWd K j`d KDjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xf  @@ -0,0 +1,68 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+import static org.mockito.Mockito.mock;
+
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import org.junit.Test;
+
+public class MaybeWitnessedTransactionTest {
+
+    private static final Long START_TIMESTAMP = 100L;
+    private static final Long COMMIT_TIMESTAMP = 200L;
+
+    @Test
+    public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
+        assertThatLoggableExceptionThrownBy(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining(
+                        "Given how the transaction protocol works, a transaction for which we haven't retrieved the"
+                                + " commit timestamp");
+    }
+
+    @Test
+    public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
+        assertThatCode(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .commitTimestamp(COMMIT_TIMESTAMP)
+                        .build())
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void toFullyWitnessedCopiesArgumentsCorrectly() {
+        WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
+        WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
+        List<WitnessedSingleCellTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
+        FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
+                .startTimestamp(START_TIMESTAMP)
+                .commitTimestamp(COMMIT_TIMESTAMP)
+                .actions(actions)
+                .build()
+                .toFullyWitnessed();
+        assertThat(fullyWitnessedTransaction.startTimestamp()).isEqualTo(START_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.commitTimestamp()).contains(COMMIT_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.actions()).containsExactlyElementsOf(actions);
+    }
+}u}(jc (b2c905aecbadb5eff96bc5dbc26f890c72dbd00cj\d atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedRowColumnRangeReadTransactionActionTest.javaj^d addedjVd KGjWd K j`d KGjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.javajed X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedRowColumnRangeReadTransactionActionTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X
  @@ -0,0 +1,71 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.workload.store.ColumnValue;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import org.junit.Test;
+
+public class WitnessedRowColumnRangeReadTransactionActionTest {
+    @Test
+    public void canCreateWitness() {
+        assertThatCode(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .addColumnsAndValues(ColumnValue.of(1, 5), ColumnValue.of(5, 1), ColumnValue.of(3, 3))
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
+                        .build())
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void cannotCreateWitnessWithDuplicateColumns() {
+        List<ColumnValue> columnsAndValues = ImmutableList.of(
+                ColumnValue.of(1, 5),
+                ColumnValue.of(5, 1),
+                ColumnValue.of(1, 3),
+                ColumnValue.of(5, 8),
+                ColumnValue.of(9, 99));
+
+        assertThatLoggableExceptionThrownBy(() -> WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .addAllColumnsAndValues(columnsAndValues)
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table("foo")
+                                .row(1)
+                                .columnRangeSelection(
+                                        ColumnRangeSelection.builder().build())
+                                .build())
+                        .build())
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Duplicate columns in columnsAndValues")
+                .hasExactlyArgs(
+                        SafeArg.of("duplicateColumns", ImmutableSet.of(1, 5)),
+                        SafeArg.of("columnsAndValues", columnsAndValues));
+    }
+}u}(jc (dc41d93cfc62da8e575d2e4bb661c0faf17b9fe6j\d 1atlasdb-workload-server-distribution/build.gradlej^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-distribution%2Fbuild.gradlejcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-distribution%2Fbuild.gradlejed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -1,7 +1,7 @@
 apply plugin: 'com.palantir.sls-java-service-distribution'
 apply plugin: 'com.palantir.external-publish-dist'
-apply from: "../gradle/docker.gradle"
 apply from: "../gradle/shared.gradle"
+apply from: "../gradle/docker.gradle"
 apply from: "../gradle/non-client-dist.gradle"
 
 dependencies {
@@ -20,6 +20,7 @@ dependencies {
     implementation 'com.palantir.conjure.java.runtime:conjure-java-jersey-server'
     implementation 'com.google.guava:guava'
 
+    implementation project(':atlasdb-buggify')
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-cassandra')
     implementation project(':atlasdb-workload-server')u}(jc (37e59da7fde3c443b1071e9b0c484c2da4e9f50ej\d latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj^d modifiedjVd MjWd Kj`d Mjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd XP  @@ -22,32 +22,58 @@
 import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.common.util.concurrent.Uninterruptibles;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
+import com.palantir.atlasdb.workload.background.BackgroundCassandraJob;
 import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
 import com.palantir.atlasdb.workload.invariant.DurableWritesInvariantMetricReporter;
 import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
-import com.palantir.atlasdb.workload.runner.AntithesisWorkflowRunner;
+import com.palantir.atlasdb.workload.resource.AntithesisCassandraSidecarResource;
+import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflows;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
+import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflows;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflows;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
 import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.refreshable.Refreshable;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import io.dropwizard.Application;
 import io.dropwizard.jackson.DiscoverableSubtypeResolver;
+import io.dropwizard.lifecycle.setup.LifecycleEnvironment;
 import io.dropwizard.setup.Bootstrap;
 import io.dropwizard.setup.Environment;
+import java.time.Instant;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutorService;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
 
 public class WorkloadServerLauncher extends Application<WorkloadServerConfiguration> {
 
@@ -75,41 +101,75 @@ public void initialize(Bootstrap<WorkloadServerConfiguration> bootstrap) {
     public void run(WorkloadServerConfiguration configuration, Environment environment) {
         environment.getObjectMapper().registerModule(new Jdk8Module()).registerModule(new JavaTimeModule());
 
+        scheduleBackgroundJobs(environment);
+
         ExecutorService workflowRunnerExecutor =
                 environment.lifecycle().executorService("workflow-runner").build();
-
         workflowRunnerExecutor.execute(() -> runWorkflows(configuration, environment));
     }
 
+    private void scheduleBackgroundJobs(Environment environment) {
+        ScheduledExecutorService backgroundJobExecutor = environment
+                .lifecycle()
+                .scheduledExecutorService("background-job")
+                .build();
+        backgroundJobExecutor.scheduleAtFixedRate(
+                new BackgroundCassandraJob(
+                        List.of("cassandra1", "cassandra2", "cassandra3"),
+                        AntithesisCassandraSidecarResource.INSTANCE,
+                        DefaultBuggifyFactory.INSTANCE),
+                0,
+                10,
+                TimeUnit.SECONDS);
+    }
+
     private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {
-        ExecutorService singleRowTwoCellsExecutorService = environment
+        // This is a single threaded executor; this is intentional, so that we only run one workflow at a time.
+        ExecutorService antithesisWorkflowRunnerExecutorService = environment
                 .lifecycle()
                 .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
                 .build();
+
         MetricsManager metricsManager = MetricsManagers.of(environment.metrics(), taggedMetricRegistry);
         AtlasDbTransactionStoreFactory transactionStoreFactory = AtlasDbTransactionStoreFactory.createFromConfig(
                 configuration.install().atlas(),
                 Refreshable.only(configuration.runtime().atlas()),
                 USER_AGENT,
                 metricsManager);
-        SingleRowTwoCellsWorkflowConfiguration workflowConfig =
+        SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig =
                 configuration.install().singleRowTwoCellsConfig();
+        RingWorkflowConfiguration ringWorkflowConfiguration =
+                configuration.install().ringConfig();
+        TransientRowsWorkflowConfiguration transientRowsWorkflowConfiguration =
+                configuration.install().transientRowsConfig();
+        SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
+                configuration.install().singleBusyCellConfig();
+        SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadNoTouchWorkflowConfiguration =
+                configuration.install().singleBusyCellReadsNoTouchConfig();
+        BankBalanceWorkflowConfiguration bankBalanceConfig =
+                configuration.install().bankBalanceConfig();
+        RandomWorkflowConfiguration randomWorkflowConfig =
+                configuration.install().randomConfig();
+
+        waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
+
+        new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
+                .run(
+                        createSingleRowTwoCellsWorkflowValidator(
+                                transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
+                        createRingWorkflowValidator(
+                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()),
+                        createTransientRowsWorkflowValidator(
+                                transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellWorkflowValidator(
+                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellReadNoTouchWorkflowValidator(
+                                transactionStoreFactory,
+                                singleBusyCellReadNoTouchWorkflowConfiguration,
+                                environment.lifecycle()),
+                        createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
+                        createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
 
-        log.info("antithesis: start_faults");
-        AntithesisWorkflowRunner.INSTANCE.run(
-                SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
-                        transactionStoreFactory.create(
-                                Map.of(
-                                        workflowConfig.tableConfiguration().tableName(),
-                                        workflowConfig.tableConfiguration().isolationLevel()),
-                                Set.of()),
-                        workflowConfig,
-                        MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)),
-                List.of(
-                        new DurableWritesInvariantMetricReporter(
-                                SingleRowTwoCellsWorkflows.class.getSimpleName(),
-                                DurableWritesMetrics.of(taggedMetricRegistry)),
-                        SerializableInvariantLogReporter.INSTANCE));
         log.info("antithesis: terminate");
 
         workflowsRanLatch.countDown();
@@ -119,6 +179,182 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
+    private void waitForTransactionStoreFactoryToBeInitialized(AtlasDbTransactionStoreFactory factory) {
+        // TODO (jkong): This is awful, but sufficient for now.
+        Instant deadline = Instant.now().plusSeconds(TimeUnit.MINUTES.toSeconds(5));
+        while (Instant.now().isBefore(deadline)) {
+            if (factory.isInitialized()) {
+                log.info("AtlasDB transaction store factory initialized.");
+                return;
+            } else {
+                log.info(
+                        "AtlasDB transaction store factory not yet initialized. Waiting for five seconds; we won't"
+                                + " retry after {}.",
+                        SafeArg.of("deadline", deadline));
+                Uninterruptibles.sleepUninterruptibly(5, TimeUnit.SECONDS);
+            }
+        }
+        log.error("AtlasDB transaction store factory not initialized after five minutes, which suggests that there's"
+                + " likely to be some issue with starting up one of our service's dependencies.");
+        log.info("antithesis: terminate");
+        log.error("Workflow will now exit.");
+        System.exit(1);
+    }
+
+    private WorkflowAndInvariants<Workflow> createTransientRowsWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            TransientRowsWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService =
+                createExecutorService(workflowConfig, lifecycle, TransientRowsWorkflows.class);
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(TransientRowsWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        TransientRowsWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .addInvariantReporters(TransientRowsWorkflows.getSummaryLogInvariantReporter(workflowConfig))
+                .build();
+    }
+
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-read")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-write")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellReadNoTouchWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellReadNoTouchWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-read")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellReadNoTouchWorkflowConfiguration.class.getSimpleName() + "-write")
+                .minThreads(workflowConfig.maxThreadCount() / 2)
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellReadNoTouchWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellReadNoTouchWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
+    private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            RingWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RingWorkflows.class);
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(RingWorkflows.create(
+                transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)));
+    }
+
+    private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleRowTwoCellsWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService =
+                createExecutorService(workflowConfig, lifecycle, SingleRowTwoCellsWorkflows.class);
+        TransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
+    private WorkflowAndInvariants<Workflow> createBankBalanceWorkflow(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            BankBalanceWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, BankBalanceWorkflows.class);
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(BankBalanceWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        BankBalanceWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+                .build();
+    }
+
+    private WorkflowAndInvariants<Workflow> createRandomWorkflow(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            RandomWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RandomWorkflows.class);
+        TransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(RandomWorkflows.create(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        RandomWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
     @VisibleForTesting
     CountDownLatch workflowsRanLatch() {
         return workflowsRanLatch;
@@ -128,4 +364,13 @@ CountDownLatch workflowsRanLatch() {
     TaggedMetricRegistry getTaggedMetricRegistry() {
         return taggedMetricRegistry;
     }
+
+    private static <T> ExecutorService createExecutorService(
+            WorkflowConfiguration workflowConfig, LifecycleEnvironment lifecycle, Class<T> workflowFactoryClass) {
+        return lifecycle
+                .executorService(workflowFactoryClass.getSimpleName())
+                .minThreads(workflowConfig.maxThreadCount())
+                .maxThreads(workflowConfig.maxThreadCount())
+                .build();
+    }
 }u}(jc (388054e20c18c9c8d612db0e6d9ac1018b7f9b14j\d atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,7 +19,13 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellReadNoTouchWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.TransientRowsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.bank.BankBalanceWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
 
 @JsonDeserialize(as = ImmutableWorkloadServerInstallConfiguration.class)
@@ -30,5 +36,17 @@ public interface WorkloadServerInstallConfiguration {
 
     SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig();
 
+    RingWorkflowConfiguration ringConfig();
+
+    TransientRowsWorkflowConfiguration transientRowsConfig();
+
+    SingleBusyCellWorkflowConfiguration singleBusyCellConfig();
+
+    BankBalanceWorkflowConfiguration bankBalanceConfig();
+
+    RandomWorkflowConfiguration randomConfig();
+
+    SingleBusyCellReadNoTouchWorkflowConfiguration singleBusyCellReadsNoTouchConfig();
+
     boolean exitAfterRunning();
 }u}(jc (da4b728986375bd8565c46e930098c1a684a145cj\d Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj^d modifiedjVd K'jWd Kj`d K(jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymljcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymljed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -9,5 +9,43 @@ install:
       tableName: two-cells-test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
-    type: singleRowTwoCells
+    type: single-row-two-cells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
+  transientRowsConfig:
+    tableConfiguration:
+      tableName: transient-rows-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: transient-rows
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
+  bankBalanceConfig:
+    tableConfiguration:
+      tableName: bank-balance-test
+      isolationLevel: SNAPSHOT
+    iterationCount: 100
+    type: bank-balance
+  randomConfig:
+    tableConfiguration:
+      tableName: random-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: false
\ No newline at end of fileu}(jc (50dbd20de7876d2a9cb53eef291722b8b19cd0b5j\d Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj^d modifiedjVd K,jWd Kj`d K.jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymljed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -10,13 +10,16 @@ runtime:
     timelockRuntime:
       serversList:
         servers:
-          - 'http://timelock:8421'
+          - 'https://timelock1.palantir.pt:8421'
+          - 'https://timelock2.palantir.pt:8421'
+          - 'https://timelock3.palantir.pt:8421'
         sslConfiguration:
           keyStorePath: "var/security/keyStore.jks"
           keyStorePassword: "keystore"
           trustStorePath: "var/security/trustStore.jks"
 install:
   atlas:
+    initializeAsync: true
     keyValueService:
       type: cassandra
       servers:
@@ -34,6 +37,7 @@ install:
         password: cassandra
       ssl: false
       replicationFactor: 3
+      gcGraceSeconds: 300
     targetedSweep:
       enableSweepQueueWrites: true
     namespace: workload_server
@@ -42,5 +46,43 @@ install:
       tableName: two_cells_test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
-    type: singleRowTwoCells
+    type: single-row-two-cells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
+  transientRowsConfig:
+    tableConfiguration:
+      tableName: transient_rows_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: transient-rows
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single_busy_cell_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
+  bankBalanceConfig:
+    tableConfiguration:
+      tableName: bank_balance_test
+      isolationLevel: SNAPSHOT
+    iterationCount: 100
+    type: bank-balance
+  randomConfig:
+    tableConfiguration:
+      tableName: random_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single_busy_cell_no_touch_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: trueu}(jc (7bd7f984a5ef15a2179c415620f48a0737332c43j\d Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj^d modifiedjVd K)jWd Kj`d K+jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymljed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -1,13 +1,52 @@
 runtime: {}
 install:
   atlas:
-    namespace: test
+    initializeAsync: true
     keyValueService:
       type: memory
+    namespace: test
   singleRowTwoCellsConfig:
     tableConfiguration:
       tableName: two-cells-test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
-    type: singleRowTwoCells
+    type: single-row-two-cells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
+  transientRowsConfig:
+    tableConfiguration:
+      tableName: transient-rows-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: transient-rows
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
+  bankBalanceConfig:
+    tableConfiguration:
+      tableName: bank-balance-test
+      isolationLevel: SNAPSHOT
+    iterationCount: 100
+    type: bank-balance
+  randomConfig:
+    tableConfiguration:
+      tableName: random-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: random
+  singleBusyCellReadsNoTouchConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-no-touch-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell-reads-no-touch
+    maxThreadCount: 2
   exitAfterRunning: true
\ No newline at end of fileu     }(jc (a1646b6ee093076187da250847d896517a6e93a1j\d $atlasdb-workload-server/build.gradlej^d modifiedjVd KjWd K j`d Kjad xhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fbuild.gradlejcd whttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fbuild.gradlejed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X,  @@ -8,9 +8,12 @@ license {
 dependencies {
     implementation project(':atlasdb-workload-server-api')
     implementation project(':atlasdb-api')
+    implementation project(':atlasdb-buggify')
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-config')
     implementation project(':atlasdb-impl-shared')
+    implementation project(':lock-api')
+    implementation project(':lock-impl')
 
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'u}(jc (8b9834003c52ed4630cb687d233e97192635cc24j\d jatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/background/BackgroundCassandraJob.javaj^d addedjVd K,jWd K j`d K,jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.background;
+
+import com.google.common.collect.Iterators;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.workload.resource.CassandraSidecarResource;
+import java.util.Iterator;
+import java.util.List;
+
+public class BackgroundCassandraJob implements Runnable {
+
+    private final CassandraSidecarResource cassandraSidecarResource;
+    private final Iterator<String> cassandraHosts;
+
+    private final BuggifyFactory buggify;
+
+    public BackgroundCassandraJob(
+            List<String> cassandraHosts, CassandraSidecarResource cassandraSidecarResource, BuggifyFactory buggify) {
+        this.cassandraSidecarResource = cassandraSidecarResource;
+        this.cassandraHosts = Iterators.cycle(cassandraHosts);
+        this.buggify = buggify;
+    }
+
+    @Override
+    public void run() {
+        buggify.maybe(0.20).run(() -> cassandraSidecarResource.flush(cassandraHosts.next()));
+        buggify.maybe(0.20).run(() -> cassandraSidecarResource.compact(cassandraHosts.next()));
+    }
+}u}(jc (7f8015ae9aa8e1cda19fbbfa7a571ed881b71b56j\d hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaj^d modifiedjVd KjWd Kj`d K
jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -18,10 +18,12 @@
 
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -30,7 +32,7 @@
 import java.util.function.Consumer;
 import one.util.streamex.StreamEx;
 
-public enum SerializableInvariant implements Invariant<List<InvalidWitnessedTransaction>> {
+public enum SerializableInvariant implements TransactionInvariant {
     INSTANCE;
 
     @Override
@@ -68,7 +70,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactio
                     .orElseGet(Optional::empty);
 
             if (!expectedValue.equals(readTransactionAction.value())) {
-                return Optional.of(InvalidWitnessedTransactionAction.of(
+                return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
                         readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expectedValue)));
             }
 
@@ -88,5 +90,12 @@ public Optional<InvalidWitnessedTransactionAction> visit(
             inMemoryTransactionReplayer.visit(deleteTransactionAction);
             return Optional.empty();
         }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+            // TODO (jkong): Not implemented yet
+            return Optional.empty();
+        }
     }
 }u}(jc (875d7b415beab11ac8c7b5cb94591f3b3a874168j\d datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariant.javaj^d addedjVd KUjWd K j`d KUjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariant.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,85 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.function.Consumer;
+
+/**
+ * This invariant checks that the snapshot isolation property is maintained.
+ * <p>
+ * The way this check works, is by replaying all transactions sorted by their effective timestamp. Transactions are
+ * replayed to an immutable map, allowing us to track each table's state at any given time. These table views are
+ * persisted to a {@link java.util.NavigableMap} by the commit timestamp of each transaction, with the value being
+ * the version of the immutable map at that point-in-time.
+ * <p>
+ * Reads are validated by comparing values from the view of a table at the start timestamp (read view),
+ * and comparing to what we've witnessed. Local writes are replayed onto the read view to ensure we
+ * don't flag false-positives, but is not witnessed by other transactions.
+ * <p>
+ * Writes are validated by first checking that the value we're writing to hasn't changed between the read view and the
+ * latest view. This would indicate a write-write conflict miss, as we should've conflicted with this transaction.
+ * Otherwise, once the transaction is replayed on top of the latest view, we persist this new view at the
+ * commit timestamp.
+ */
+public enum SnapshotInvariant implements TransactionInvariant {
+    INSTANCE;
+
+    @Override
+    public void accept(
+            WorkflowHistory workflowHistory, Consumer<List<InvalidWitnessedTransaction>> invalidWitnessedTransactions) {
+        ImmutableList.Builder<InvalidWitnessedTransaction> invalidTransactionsBuilder = new ImmutableList.Builder<>();
+        VersionedTableView<TableAndWorkloadCell, ValueAndMaybeTimestamp> tableView = new VersionedTableView<>();
+        for (WitnessedTransaction witnessedTransaction : workflowHistory.history()) {
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestTableView =
+                    tableView.getLatestTableView();
+
+            SnapshotInvariantVisitor visitor = new SnapshotInvariantVisitor(
+                    witnessedTransaction.startTimestamp(),
+                    latestTableView,
+                    tableView.getView(witnessedTransaction.startTimestamp()));
+
+            ImmutableList.Builder<InvalidWitnessedTransactionAction> invalidTransactionActionsBuilder =
+                    new ImmutableList.Builder<>();
+            for (WitnessedTransactionAction action : witnessedTransaction.actions()) {
+                action.accept(visitor).ifPresent(invalidTransactionActionsBuilder::add);
+            }
+
+            List<InvalidWitnessedTransactionAction> invalidTransactionActions =
+                    invalidTransactionActionsBuilder.build();
+
+            witnessedTransaction
+                    .commitTimestamp()
+                    .ifPresent(commitTimestamp -> tableView.put(commitTimestamp, latestTableView.getSnapshot()));
+
+            if (!invalidTransactionActions.isEmpty()) {
+                invalidTransactionsBuilder.add(
+                        InvalidWitnessedTransaction.of(witnessedTransaction, invalidTransactionActions));
+            }
+        }
+        invalidWitnessedTransactions.accept(invalidTransactionsBuilder.build());
+    }
+}u}(jc (077c0294a2f984f9f97dca7c4b24ef6de5bc6f16j\d katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantVisitor.javaj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantVisitor.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xm  @@ -0,0 +1,134 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.collection.Map;
+import java.util.Optional;
+
+/**
+ * Replays transactions and validates for conflicts on the latest and read view.
+ * <p>
+ * The latest view will be a view of the database at the commit timestamp, while the read view will be the view of
+ * the database at the start timestamp.
+ * <p>
+ * Objects created from this class should only be used within a scope of a single transaction.
+ */
+final class SnapshotInvariantVisitor
+        implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
+
+    private final Long startTimestamp;
+    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestView;
+    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> readView;
+
+    SnapshotInvariantVisitor(
+            Long startTimestamp,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> latestView,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> readView) {
+        this.startTimestamp = startTimestamp;
+        this.latestView = latestView;
+        this.readView = readView;
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+        Optional<Integer> expected = fetchValueFromView(
+                        readTransactionAction.table(), readTransactionAction.cell(), readView)
+                .value();
+        if (!expected.equals(readTransactionAction.value())) {
+            return Optional.of(InvalidWitnessedSingleCellTransactionAction.of(
+                    readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expected)));
+        }
+        return Optional.empty();
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
+        Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
+                        writeTransactionAction.table(), writeTransactionAction.cell())
+                .map(mismatchedValue ->
+                        InvalidWitnessedSingleCellTransactionAction.of(writeTransactionAction, mismatchedValue));
+
+        applyWrites(
+                writeTransactionAction.table(),
+                writeTransactionAction.cell(),
+                Optional.of(writeTransactionAction.value()));
+        return invalidAction;
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+        Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
+                        deleteTransactionAction.table(), deleteTransactionAction.cell())
+                .map(mismatchedValue ->
+                        InvalidWitnessedSingleCellTransactionAction.of(deleteTransactionAction, mismatchedValue));
+
+        applyWrites(deleteTransactionAction.table(), deleteTransactionAction.cell(), Optional.empty());
+        return invalidAction;
+    }
+
+    @Override
+    public Optional<InvalidWitnessedTransactionAction> visit(
+            WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        // TODO (jkong): Not implemented yet
+        return Optional.empty();
+    }
+
+    /**
+     * Applies writes to both our read and latest table view.
+     * Latest table view needs to be updated to apply our writes from our transaction,
+     * while the read view is updated to reflect local writes.
+     */
+    private void applyWrites(String tableName, WorkloadCell cell, Optional<Integer> value) {
+        readView.with(table ->
+                table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndMaybeTimestamp.of(value, startTimestamp)));
+        latestView.with(table ->
+                table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndMaybeTimestamp.of(value, startTimestamp)));
+    }
+
+    /**
+     * Checks that the value we are writing has not changed from our read view and the latest view. If it has,
+     * that means we have missed a write-write conflict, as it should have conflicted with this transaction.
+     */
+    private Optional<MismatchedValue> checkForWriteWriteConflicts(String table, WorkloadCell cell) {
+        ValueAndMaybeTimestamp previous = fetchValueFromView(table, cell, readView);
+        ValueAndMaybeTimestamp latest = fetchValueFromView(table, cell, latestView);
+
+        if (!previous.equals(latest)) {
+            return Optional.of(MismatchedValue.of(latest, previous));
+        }
+
+        return Optional.empty();
+    }
+
+    private static ValueAndMaybeTimestamp fetchValueFromView(
+            String tableName,
+            WorkloadCell workloadCell,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndMaybeTimestamp>> view) {
+        TableAndWorkloadCell tableAndWorkloadCell = TableAndWorkloadCell.of(tableName, workloadCell);
+        return view.getSnapshot().get(tableAndWorkloadCell).toJavaOptional().orElseGet(ValueAndMaybeTimestamp::empty);
+    }
+}u}(jc (0729ad724e2b47dc1415a32180124d780320f58ej\d eatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/VersionedTableView.javaj^d addedjVd K6jWd K j`d K6jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableView.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd XG	  @@ -0,0 +1,54 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.Optional;
+import java.util.TreeMap;
+import javax.annotation.concurrent.NotThreadSafe;
+
+@NotThreadSafe
+public final class VersionedTableView<K, V> {
+    private final java.util.NavigableMap<Long, Map<K, V>> tableViews = new TreeMap<>();
+
+    public void put(Long commitTimestamp, Map<K, V> tableView) {
+        tableViews.put(commitTimestamp, tableView);
+    }
+
+    public StructureHolder<Map<K, V>> getView(Long startTimestamp) {
+        Preconditions.checkArgument(
+                !tableViews.containsKey(startTimestamp),
+                "It is expected when obtaining a view "
+                        + "from the start timestamp, that it should not already exist or be present within the map. "
+                        + "As all keys in this map should be commit timestamps, and all timestamps are immutable.",
+                SafeArg.of("startTimestamp", startTimestamp),
+                SafeArg.of("tableViews", tableViews));
+        return StructureHolder.create(() -> Optional.ofNullable(tableViews.lowerEntry(startTimestamp))
+                .map(java.util.Map.Entry::getValue)
+                .orElseGet(HashMap::empty));
+    }
+
+    public StructureHolder<Map<K, V>> getLatestTableView() {
+        return StructureHolder.create(() -> Optional.ofNullable(tableViews.lastEntry())
+                .map(java.util.Map.Entry::getValue)
+                .orElseGet(HashMap::empty));
+    }
+}u}(jc (afc5fd9e1645d1faf8b1f77f62a39f67390b4c87j\d tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/resource/AntithesisCassandraSidecarResource.javaj^d addedjVd K%jWd K j`d K%jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X>  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.resource;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+
+public enum AntithesisCassandraSidecarResource implements CassandraSidecarResource {
+    INSTANCE;
+
+    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisCassandraSidecarResource.class);
+
+    @Override
+    public void flush(String host) {
+        log.info("antithesis: flush {}", SafeArg.of("host", host));
+    }
+
+    @Override
+    public void compact(String host) {
+        log.info("antithesis: compact {}", SafeArg.of("host", host));
+    }
+}u}(jc (47c1c58dc5ec09e6991e1b15ffa1c7e7c13a1b46j\d hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowRunner.javaj^d removedjVd K jWd K.j`d K.jad https://github.com/palantir/atlasdb/blob/79d853def7736f22e64f5a2ff4c88f458214b8ec/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.javajcd https://github.com/palantir/atlasdb/raw/79d853def7736f22e64f5a2ff4c88f458214b8ec/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunner.java?ref=79d853def7736f22e64f5a2ff4c88f458214b8ecjgd X  @@ -1,46 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.runner;
-
-import com.palantir.atlasdb.workload.invariant.InvariantReporter;
-import com.palantir.atlasdb.workload.workflow.Workflow;
-import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
-import com.palantir.atlasdb.workload.workflow.WorkflowRunner;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.List;
-
-public enum AntithesisWorkflowRunner implements WorkflowRunner<Workflow> {
-    INSTANCE;
-
-    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisWorkflowRunner.class);
-
-    @Override
-    public void run(Workflow workflow, List<InvariantReporter<?>> invariants) {
-        WorkflowHistory workflowHistory = workflow.run();
-        log.info("antithesis: stop_faults");
-        invariants.forEach(reporter -> {
-            try {
-                reporter.report(workflowHistory);
-            } catch (RuntimeException e) {
-                log.error("Caught an exception when running and reporting an invariant.", e);
-            }
-        });
-        log.info("Dumping transaction log {}", SafeArg.of("transactionLog", workflowHistory.history()));
-    }
-}u}(jc (7746b1901d37ab005efb2fedddecc226a6be376dj\d qatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunner.javaj^d addedjVd KNjWd K j`d KNjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd XL  @@ -0,0 +1,78 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.runner;
+
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistoryValidator;
+import com.palantir.atlasdb.workload.workflow.WorkflowValidatorRunner;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.concurrent.ExecutionException;
+import java.util.stream.Collectors;
+
+public final class AntithesisWorkflowValidatorRunner implements WorkflowValidatorRunner<Workflow> {
+    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisWorkflowValidatorRunner.class);
+    private final ListeningExecutorService listeningExecutorService;
+
+    public AntithesisWorkflowValidatorRunner(ListeningExecutorService listeningExecutorService) {
+        this.listeningExecutorService = listeningExecutorService;
+    }
+
+    @Override
+    public void run(List<WorkflowAndInvariants<Workflow>> workflowAndInvariants) {
+        try {
+            log.info("antithesis: start_faults");
+            List<WorkflowHistoryValidator> workflowHistoryValidators = Futures.allAsList(
+                            submitWorkflowValidators(workflowAndInvariants))
+                    .get();
+            log.info("antithesis: stop_faults");
+            workflowHistoryValidators.forEach(this::checkAndReportInvariantViolations);
+        } catch (InterruptedException e) {
+            Thread.currentThread().interrupt();
+            throw new RuntimeException(e);
+        } catch (ExecutionException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private void checkAndReportInvariantViolations(WorkflowHistoryValidator validator) {
+        validator.invariants().forEach(invariantReporter -> {
+            try {
+                invariantReporter.report(validator.history());
+            } catch (RuntimeException e) {
+                log.error("Caught an exception when running and reporting an invariant.", e);
+            }
+        });
+        log.info(
+                "Dumping transaction log {}",
+                SafeArg.of("transactionLog", validator.history().history()));
+    }
+
+    private List<ListenableFuture<WorkflowHistoryValidator>> submitWorkflowValidators(
+            List<WorkflowAndInvariants<Workflow>> workflowAndInvariants) {
+        return workflowAndInvariants.stream()
+                .map(workflowValidator -> listeningExecutorService.submit(() -> WorkflowHistoryValidator.of(
+                        workflowValidator.workflow().run(), workflowValidator.invariantReporters())))
+                .collect(Collectors.toList());
+    }
+}u}(jc (12ac1ba77ac5173e6e93ae318bde8d17c872de28j\d fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj^d modifiedjVd K.jWd Kj`d K:jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -21,16 +21,21 @@
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.PreCommitCondition;
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.TransactionCommitFailedException;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -63,6 +68,13 @@ public Optional<Integer> get(String table, WorkloadCell cell) {
                 transaction -> new AtlasDbInteractiveTransaction(transaction, tables).read(table, cell));
     }
 
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return TransactionStatus.getCommitTimestamp(
+                        transactionManager.getTransactionService().getV2(startTimestamp))
+                .isPresent();
+    }
+
     @Override
     public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
         return readWrite(txn -> {
@@ -74,23 +86,26 @@ public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions)
     @Override
     public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer) {
         AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
+        AtomicReference<Transaction> transactionReference = new AtomicReference<>();
         Supplier<CommitTimestampProvider> commitTimestampProvider =
                 Suppliers.memoize(() -> new CommitTimestampProvider());
         try {
-            Transaction transaction =
-                    transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
-                        AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
-                                new AtlasDbInteractiveTransaction(txn, tables);
-                        interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
-                        witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
-                        return txn;
-                    });
+            transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
+                transactionReference.set(txn);
+                AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
+                        new AtlasDbInteractiveTransaction(txn, tables);
+                interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
+                witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
+                return null;
+            });
+
+            Transaction transaction = transactionReference.get();
 
             if (transaction.isAborted()) {
                 return Optional.empty();
             }
 
-            return Optional.of(ImmutableWitnessedTransaction.builder()
+            return Optional.of(FullyWitnessedTransaction.builder()
                     .startTimestamp(transaction.getTimestamp())
                     .commitTimestamp(commitTimestampProvider
                             .get()
@@ -99,9 +114,22 @@ public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction>
                     .build());
         } catch (SafeIllegalArgumentException e) {
             throw e;
+        } catch (TransactionCommitFailedException e) {
+            Transaction transaction = transactionReference.get();
+            return Optional.of(MaybeWitnessedTransaction.builder()
+                    .startTimestamp(transaction.getTimestamp())
+                    .commitTimestamp(commitTimestampProvider
+                            .get()
+                            .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
+                    .actions(witnessedActionsReference.get())
+                    .build());
         } catch (Exception e) {
-            // TODO: Need to eventually handle PuE exceptions, as they could've succeeded in committing.
-            log.info("Failed to record transaction due to an exception", e);
+            Optional<Long> startTimestamp =
+                    Optional.ofNullable(transactionReference.get()).map(Transaction::getTimestamp);
+            log.info(
+                    "Failed to record transaction due to an exception for startTimestamp {}",
+                    SafeArg.of("startTimestamp", startTimestamp),
+                    e);
             return Optional.empty();
         }
     }
@@ -132,6 +160,12 @@ public Void visit(DeleteTransactionAction deleteTransactionAction) {
             transaction.delete(deleteTransactionAction.table(), deleteTransactionAction.cell());
             return null;
         }
+
+        @Override
+        public Void visit(RowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+            // TODO (jkong): Not implemented yet
+            throw new UnsupportedOperationException("Not implemented yet");
+        }
     }
 
     public static AtlasDbTransactionStore create(u}(jc (d7dd783c1221e2a93fad625414ea628dac4c9695j\d matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javaj^d modifiedjVd K
jWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xr  @@ -28,6 +28,8 @@
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.conjure.java.api.config.service.UserAgent;
+import com.palantir.lock.client.TimeLockClient;
+import com.palantir.lock.client.UnreliableTimeLockService;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
@@ -39,7 +41,10 @@
 import one.util.streamex.EntryStream;
 import one.util.streamex.StreamEx;
 
-public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory {
+public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory<InteractiveTransactionStore> {
+
+    // Purposefully override the lock refresh interval to increase our chances of losing locks.
+    private static final int LOCK_REFRESH_INTERVAL_MS = 200;
 
     private final TransactionManager transactionManager;
     private final Optional<Namespace> maybeNamespace;
@@ -49,8 +54,12 @@ public AtlasDbTransactionStoreFactory(TransactionManager transactionManager, Opt
         this.maybeNamespace = maybeNamespace.map(Namespace::create);
     }
 
+    public boolean isInitialized() {
+        return transactionManager.isInitialized();
+    }
+
     @Override
-    public TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
+    public InteractiveTransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
         return AtlasDbTransactionStore.create(transactionManager, toAtlasTables(tables, indexes));
     }
 
@@ -138,6 +147,8 @@ public static AtlasDbTransactionStoreFactory createFromConfig(
                 .globalMetricsRegistry(metricsManager.getRegistry())
                 .globalTaggedMetricRegistry(metricsManager.getTaggedRegistry())
                 .runtimeConfigSupplier(atlasDbRuntimeConfig)
+                .defaultTimelockClientFactory(lockService -> TimeLockClient.createDefault(
+                        UnreliableTimeLockService.create(lockService), LOCK_REFRESH_INTERVAL_MS))
                 .build()
                 .serializable();
 u}(jc (cb6dfce8a01b80d7f3c5368970de60190ce81ddcj\d gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/ReadOnlyTransactionStore.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd XU  @@ -33,4 +33,9 @@ public ReadOnlyTransactionStore(ReadableTransactionStore delegate) {
     public Optional<Integer> get(String table, WorkloadCell cell) {
         return delegate.get(table, cell);
     }
+
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return delegate.isCommitted(startTimestamp);
+    }
 }u}(jc (53b40b5fe80de185e89ff3bfca0044e6f97e759dj\d patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -20,6 +20,7 @@
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import io.vavr.collection.HashMap;
@@ -55,6 +56,11 @@ public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         return null;
     }
 
+    @Override
+    public Void visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        return null;
+    }
+
     public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
         return values.getSnapshot();
     }u}(jc (32db22149cce31693c0af4b33f0f275d03565d29j\d katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -18,6 +18,7 @@
 
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 
@@ -39,4 +40,9 @@ public WriteTransactionAction visit(WitnessedWriteTransactionAction writeTransac
     public DeleteTransactionAction visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         return ImmutableDeleteTransactionAction.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
     }
+
+    @Override
+    public TransactionAction visit(WitnessedRowColumnRangeReadTransactionAction rowColumnRangeReadTransactionAction) {
+        return rowColumnRangeReadTransactionAction.originalQuery();
+    }
 }u}(jc (0ba18e00eabc917a1fd7025d0f9113112c9b8615j\d atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitor.javaj^d addedjVd K*jWd K j`d K*jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.Optional;
+
+public final class OnlyCommittedWitnessedTransactionVisitor
+        implements WitnessedTransactionVisitor<Optional<FullyWitnessedTransaction>> {
+
+    private final ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    public OnlyCommittedWitnessedTransactionVisitor(ReadOnlyTransactionStore readOnlyTransactionStore) {
+        this.readOnlyTransactionStore = readOnlyTransactionStore;
+    }
+
+    @Override
+    public Optional<FullyWitnessedTransaction> visit(FullyWitnessedTransaction witnessedTransaction) {
+        return Optional.of(witnessedTransaction);
+    }
+
+    @Override
+    public Optional<FullyWitnessedTransaction> visit(MaybeWitnessedTransaction maybeWitnessedTransaction) {
+        return readOnlyTransactionStore.isCommitted(maybeWitnessedTransaction.startTimestamp())
+                ? Optional.of(maybeWitnessedTransaction.toFullyWitnessed())
+                : Optional.empty();
+    }
+}u}(jc (c0b3881cb15e0ba7b72700e3a80768b2c77a4b32j\d tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactions.javaj^d addedjVd K-jWd K j`d K-jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.Comparator;
+import java.util.List;
+import one.util.streamex.StreamEx;
+
+public final class WitnessedTransactions {
+    private WitnessedTransactions() {
+        // utility
+    }
+
+    /**
+     * Sorts transactions by their effective timestamp and filters out transactions that are not fully committed.
+     */
+    public static List<FullyWitnessedTransaction> sortAndFilterTransactions(
+            ReadOnlyTransactionStore readOnlyTransactionStore, List<WitnessedTransaction> unorderedTransactions) {
+        OnlyCommittedWitnessedTransactionVisitor visitor =
+                new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
+        return StreamEx.of(unorderedTransactions)
+                .mapPartial(transaction -> transaction.accept(visitor))
+                .sorted(Comparator.comparingLong(WitnessedTransactions::effectiveTimestamp))
+                .toList();
+    }
+
+    private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
+        return witnessedTransaction.commitTimestamp().orElseGet(witnessedTransaction::startTimestamp);
+    }
+}u}(jc (f4ad0b8dddc43f5cd0380760c6cfdc9c58c273e1j\d aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X	  @@ -16,17 +16,15 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
-import java.util.Comparator;
 import java.util.List;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
-import java.util.stream.Collectors;
 
 public final class DefaultWorkflow<T extends TransactionStore> implements Workflow {
     private final ConcurrentTransactionRunner<T> concurrentTransactionRunner;
@@ -45,7 +43,7 @@ private DefaultWorkflow(
         this.readOnlyTransactionStore = readOnlyTransactionStore;
     }
 
-    public static <T extends TransactionStore> Workflow create(
+    public static <T extends TransactionStore> DefaultWorkflow<T> create(
             T store,
             KeyedTransactionTask<T> transactionTask,
             WorkflowConfiguration configuration,
@@ -60,7 +58,8 @@ public static <T extends TransactionStore> Workflow create(
     @Override
     public WorkflowHistory run() {
         return ImmutableWorkflowHistory.builder()
-                .history(sortByEffectiveTimestamp(runTransactionTask()))
+                .history(
+                        WitnessedTransactions.sortAndFilterTransactions(readOnlyTransactionStore, runTransactionTask()))
                 .transactionStore(readOnlyTransactionStore)
                 .build();
     }
@@ -78,15 +77,4 @@ private List<WitnessedTransaction> runTransactionTask() {
             throw new SafeRuntimeException("Error when running workflow task", e.getCause());
         }
     }
-
-    @VisibleForTesting
-    static List<WitnessedTransaction> sortByEffectiveTimestamp(List<WitnessedTransaction> unorderedTransactions) {
-        return unorderedTransactions.stream()
-                .sorted(Comparator.comparingLong(DefaultWorkflow::effectiveTimestamp))
-                .collect(Collectors.toList());
-    }
-
-    private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
-        return witnessedTransaction.commitTimestamp().orElseGet(witnessedTransaction::startTimestamp);
-    }
 }u}(jc (e0b5354ebacbf6077ea736f29765fb8d71159fcdj\d matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowConfiguration.javaj^d addedjVd K:jWd K j`d K:jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,58 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableRandomWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableRandomWorkflowConfiguration.class)
+@JsonTypeName(RandomWorkflowConfiguration.TYPE)
+public interface RandomWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "random";
+
+    TableConfiguration tableConfiguration();
+
+    @Value.Default
+    default Integer maxWrites() {
+        return 5;
+    }
+
+    @Value.Default
+    default Integer maxReads() {
+        return 5;
+    }
+
+    @Value.Default
+    default Integer maxDeletes() {
+        return 2;
+    }
+
+    @Value.Default
+    default Integer maxCells() {
+        return 10;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jc (a9726d8998a6fbf1c745d6616a2e4356d3889a34j\d aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javaj^d addedjVd KvjWd K j`d Kvjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xw  @@ -0,0 +1,118 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.security.SecureRandom;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+import org.jetbrains.annotations.VisibleForTesting;
+
+public final class RandomWorkflows {
+    private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+    private static final Integer COLUMN = 0;
+
+    private RandomWorkflows() {
+        // static factory
+    }
+
+    public static Workflow create(
+            TransactionStore store,
+            RandomWorkflowConfiguration randomWorkflowConfig,
+            ListeningExecutorService executionExecutor) {
+        return create(store, randomWorkflowConfig, executionExecutor, RANDOM);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            TransactionStore store,
+            RandomWorkflowConfiguration randomWorkflowConfig,
+            ListeningExecutorService executionExecutor,
+            SecureRandom random) {
+        RandomWorkflowTask task = new RandomWorkflowTask(randomWorkflowConfig, random);
+        return DefaultWorkflow.create(
+                store, (txnStore, _index) -> task.run(txnStore), randomWorkflowConfig, executionExecutor);
+    }
+
+    private static final class RandomWorkflowTask {
+
+        private final RandomWorkflowConfiguration workflowConfiguration;
+        private final SecureRandom random;
+
+        public RandomWorkflowTask(RandomWorkflowConfiguration workflowConfiguration, SecureRandom random) {
+            this.workflowConfiguration = workflowConfiguration;
+            this.random = random;
+        }
+
+        public Optional<WitnessedTransaction> run(TransactionStore store) {
+            workflowConfiguration.transactionRateLimiter().acquire();
+            List<TransactionAction> actions = Stream.of(
+                            generateReadActions(), generateWriteActions(), generateDeleteActions())
+                    .flatMap(Collection::stream)
+                    .collect(Collectors.toList());
+            Collections.shuffle(actions, random);
+            return store.readWrite(actions);
+        }
+
+        private List<ReadTransactionAction> generateReadActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxReads() + 1))
+                    .boxed()
+                    .map(_index -> ImmutableReadTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(), randomCell()))
+                    .collect(Collectors.toList());
+        }
+
+        private List<WriteTransactionAction> generateWriteActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxWrites() + 1))
+                    .boxed()
+                    .map(_index -> ImmutableWriteTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(),
+                            randomCell(),
+                            random.nextInt(100_000)))
+                    .collect(Collectors.toList());
+        }
+
+        private List<DeleteTransactionAction> generateDeleteActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxDeletes() + 1))
+                    .boxed()
+                    .map(_index -> ImmutableDeleteTransactionAction.of(
+                            workflowConfiguration.tableConfiguration().tableName(), randomCell()))
+                    .collect(Collectors.toList());
+        }
+
+        private WorkloadCell randomCell() {
+            return ImmutableWorkloadCell.of(random.nextInt(workflowConfiguration.maxCells()), COLUMN);
+        }
+    }
+}u&     }(jc (cfa7bb7b766851d22237ea49091b9cce6c50c789j\d atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowConfiguration.javaj^d addedjVd K jWd K j`d K jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowConfiguration.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xz  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellReadNoTouchWorkflowConfiguration.TYPE)
+public interface SingleBusyCellReadNoTouchWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell-reads-no-touch";
+
+    TableConfiguration tableConfiguration();
+}u}(jc (ae852affb871f77d186c4b71ecca052b5aeeed40j\d tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflows.javaj^d addedjVd KjjWd K j`d Kjjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflows.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions. This workflow differs
+ * from the {@link SingleBusyCellWorkflows} in the way that its read transaction only does read and doesn't touch the
+ * cell with its current value or -1. This allows us to exercise the code path of read-write transaction that only do
+ * reads, which is necessary to catch bugs like sweep deleting entries under a transaction if it doesn't check for
+ * immutableTimestamp lock.
+ */
+public final class SingleBusyCellReadNoTouchWorkflows {
+    private SingleBusyCellReadNoTouchWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReads(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReads(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(
+                        txn -> txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL))))
+                .collect(Collectors.toList());
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellReadNoTouchWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
+    }
+}u}(jc (4ca9777a60bba46b458d814677435f4e29d93675j\d uatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowConfiguration.javaj^d addedjVd K jWd K j`d K jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X?  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellWorkflowConfiguration.TYPE)
+public interface SingleBusyCellWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell";
+
+    TableConfiguration tableConfiguration();
+}u}(jc (c82f3d3c2182e14e8f2d6630ac1cb719f0cd3c4cj\d iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflows.javaj^d addedjVd KijWd K j`d Kijad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,105 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions.
+ */
+public final class SingleBusyCellWorkflows {
+    private SingleBusyCellWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReadsAndTouches(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReadsAndTouches(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(txn -> {
+                    Optional<Integer> value =
+                            txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL);
+                    txn.write(configuration.tableConfiguration().tableName(), BUSY_CELL, value.orElse(-1));
+                })))
+                .collect(Collectors.toList());
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
+    }
+}u}(jc (f101f419a9c4366406e60fd1ca898e4645dbf939j\d xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd XE  @@ -27,15 +27,10 @@
 @JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
 @JsonTypeName(SingleRowTwoCellsWorkflowConfiguration.TYPE)
 public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfiguration {
-    String TYPE = "singleRowTwoCells";
+    String TYPE = "single-row-two-cells";
 
     TableConfiguration tableConfiguration();
 
-    @Value.Default
-    default double rateLimit() {
-        return 100;
-    }
-
     @Value.Lazy
     default RateLimiter transactionRateLimiter() {
         return RateLimiter.create(rateLimit());u}(jc (32ce774d4a8fd320c1af7af7c838de4f7f6065e3j\d latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javaj^d modifiedjVd K	jWd Kj`d K
jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -28,6 +28,9 @@
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
 import java.util.Optional;
 import java.util.stream.Collectors;
@@ -39,6 +42,7 @@
  * to delete the other.
  */
 public final class SingleRowTwoCellsWorkflows {
+    private static final SafeLogger log = SafeLoggerFactory.get(SingleRowTwoCellsWorkflows.class);
     private static final int SINGLE_ROW = 1;
     private static final int FIRST_COLUMN = 1;
     private static final int SECOND_COLUMN = 2;
@@ -70,7 +74,11 @@ private static Optional<WitnessedTransaction> run(
 
         List<TransactionAction> transactionActions = createTransactionActions(
                 taskIndex, workflowConfiguration.tableConfiguration().tableName());
-        return store.readWrite(transactionActions);
+        Optional<WitnessedTransaction> maybeTransaction = store.readWrite(transactionActions);
+        maybeTransaction.ifPresent(_transaction -> log.info(
+                "Transaction successfully committed for single row two cells workflow for task index {}.",
+                SafeArg.of("taskIndex", taskIndex)));
+        return maybeTransaction;
     }
 
     @VisibleForTestingu}(jc (be3aea7c363f3e52d9c0332e95d106f0c15597f5j\d tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowConfiguration.javaj^d addedjVd K jWd K j`d K jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowConfiguration.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowConfiguration.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowConfiguration.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X9  @@ -0,0 +1,32 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableTransientRowsWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableTransientRowsWorkflowConfiguration.class)
+@JsonTypeName(TransientRowsWorkflowConfiguration.TYPE)
+public interface TransientRowsWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "transient-rows";
+
+    TableConfiguration tableConfiguration();
+}u}(jc (9002a5ed3382a35694d630c784b417cd15befa46j\d hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javaj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X]%  @@ -0,0 +1,187 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.invariant.CrossCellInconsistency;
+import com.palantir.atlasdb.workload.invariant.ImmutableInvariantReporter;
+import com.palantir.atlasdb.workload.invariant.Invariant;
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.security.SecureRandom;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.Set;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+public final class TransientRowsWorkflows {
+    private static final SafeLogger log = SafeLoggerFactory.get(TransientRowsWorkflows.class);
+
+    @VisibleForTesting
+    static final int SUMMARY_ROW = -1;
+
+    @VisibleForTesting
+    static final int COLUMN = 1;
+
+    @VisibleForTesting
+    static final int VALUE = 0;
+
+    private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+
+    private TransientRowsWorkflows() {}
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            TransientRowsWorkflowConfiguration workflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        return DefaultWorkflow.create(
+                store,
+                (txn, taskIndex) -> run(store, workflowConfiguration, taskIndex),
+                workflowConfiguration,
+                executionExecutor);
+    }
+
+    private static Optional<WitnessedTransaction> run(
+            InteractiveTransactionStore store, TransientRowsWorkflowConfiguration configuration, int taskIndex) {
+        return store.readWrite(txn -> {
+            String tableName = configuration.tableConfiguration().tableName();
+            txn.write(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex), VALUE);
+            txn.write(tableName, ImmutableWorkloadCell.of(taskIndex, COLUMN), VALUE);
+            if (taskIndex > 0) {
+                int indexToRead = SECURE_RANDOM.nextInt(taskIndex);
+                txn.read(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, indexToRead));
+                txn.read(tableName, ImmutableWorkloadCell.of(indexToRead, COLUMN));
+
+                if (txn.read(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN))
+                        .isPresent()) {
+                    txn.delete(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex - 1));
+                    txn.delete(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN));
+                }
+            }
+        });
+    }
+
+    public static InvariantReporter<List<CrossCellInconsistency>> getSummaryLogInvariantReporter(
+            TransientRowsWorkflowConfiguration configuration) {
+        return ImmutableInvariantReporter.<List<CrossCellInconsistency>>builder()
+                .invariant(createSummaryRowInvariant(configuration))
+                .consumer(violations -> {
+                    if (!violations.isEmpty()) {
+                        log.error(
+                                "Detected rows which did not agree with state in a summary index: {}",
+                                SafeArg.of("violations", violations));
+                    }
+                })
+                .build();
+    }
+
+    private static Invariant<List<CrossCellInconsistency>> createSummaryRowInvariant(
+            TransientRowsWorkflowConfiguration configuration) {
+        return (workflowHistory, notifier) -> {
+            List<CrossCellInconsistency> violations = new ArrayList<>();
+            ReadableTransactionStore store = workflowHistory.transactionStore();
+
+            violations.addAll(findInconsistencyInTransactionHistory(workflowHistory.history()));
+            violations.addAll(findInconsistencyInFinalIndexState(configuration, store));
+
+            notifier.accept(violations);
+        };
+    }
+
+    private static List<CrossCellInconsistency> findInconsistencyInTransactionHistory(
+            List<WitnessedTransaction> history) {
+        return history.stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(TransientRowsWorkflows::findInconsistencyInTransactionActions)
+                .collect(Collectors.toList());
+    }
+
+    private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActions(
+            List<WitnessedTransactionAction> actions) {
+        Set<WitnessedReadTransactionAction> readTransactionActions = actions.stream()
+                .filter(WitnessedReadTransactionAction.class::isInstance)
+                .map(action -> (WitnessedReadTransactionAction) action)
+                .collect(Collectors.toSet());
+        if (readTransactionActions.size() == 0) {
+            return Stream.empty();
+        }
+        WitnessedReadTransactionAction summaryRowRead = readTransactionActions.stream()
+                .filter(action -> action.cell().key() == SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of the summary row", SafeArg.of("actions", actions)));
+        WitnessedReadTransactionAction normalRowRead = readTransactionActions.stream()
+                .filter(action -> Objects.equals(
+                                action.cell().key(), summaryRowRead.cell().column())
+                        && action.cell().column() == COLUMN)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of a corresponding normal row", SafeArg.of("actions", actions)));
+        if (!summaryRowRead.value().equals(normalRowRead.value())) {
+            return Stream.of(CrossCellInconsistency.builder()
+                    .putInconsistentValues(
+                            TableAndWorkloadCell.of(summaryRowRead.table(), summaryRowRead.cell()),
+                            summaryRowRead.value())
+                    .putInconsistentValues(
+                            TableAndWorkloadCell.of(normalRowRead.table(), normalRowRead.cell()), normalRowRead.value())
+                    .build());
+        } else {
+            return Stream.empty();
+        }
+    }
+
+    private static List<CrossCellInconsistency> findInconsistencyInFinalIndexState(
+            TransientRowsWorkflowConfiguration configuration, ReadableTransactionStore store) {
+        List<CrossCellInconsistency> violations = new ArrayList<>();
+        String tableName = configuration.tableConfiguration().tableName();
+        Set<Integer> taskIndices =
+                IntStream.range(0, configuration.iterationCount()).boxed().collect(Collectors.toSet());
+        taskIndices.forEach(index -> checkSummaryConsistencyForIndex(violations, store, tableName, index));
+        return violations;
+    }
+
+    private static void checkSummaryConsistencyForIndex(
+            List<CrossCellInconsistency> violations, ReadableTransactionStore store, String tableName, Integer index) {
+        WorkloadCell primaryCell = ImmutableWorkloadCell.of(index, COLUMN);
+        Optional<Integer> valueFromPrimaryRow = store.get(tableName, primaryCell);
+        WorkloadCell summaryCell = ImmutableWorkloadCell.of(SUMMARY_ROW, index);
+        Optional<Integer> valueFromSummaryRow = store.get(tableName, summaryCell);
+        if (valueFromSummaryRow.isPresent() ^ valueFromPrimaryRow.isPresent()) {
+            violations.add(CrossCellInconsistency.builder()
+                    .putInconsistentValues(TableAndWorkloadCell.of(tableName, primaryCell), valueFromPrimaryRow)
+                    .putInconsistentValues(TableAndWorkloadCell.of(tableName, summaryCell), valueFromSummaryRow)
+                    .build());
+        }
+    }
+}u}(jc (4c009ebe4699e6665fa0c9590874f7ead9b2f33fj\d gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtils.javaj^d addedjVd K^jWd K j`d K^jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,94 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import com.google.common.collect.ImmutableMap;
+import java.security.SecureRandom;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Optional;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import one.util.streamex.EntryStream;
+
+public final class BankBalanceUtils {
+
+    private BankBalanceUtils() {}
+
+    /**
+     * Validates all the bank balances provided. If all are empty, we will generate a new set of bank balances. If
+     * any are missing, an empty optional is returned to indicate failure state. If balances do not total to the
+     * expected amount, an empty optional is returned.
+     *
+     * @return An empty optional when validation has failed for bank balances. Otherwise, the optional will contain
+     * the validated (or generated) balances.
+     */
+    public static Optional<Map<Integer, Integer>> validateOrGenerateBalances(
+            Map<Integer, Optional<Integer>> maybeBalances, Integer numberOfAccounts, Integer balancePerAccount) {
+        if (allValuesPresent(maybeBalances)) {
+            Integer total = numberOfAccounts * balancePerAccount;
+            Map<Integer, Integer> balances =
+                    EntryStream.of(maybeBalances).mapValues(Optional::get).toMap();
+            if (!sumOfBalancesMatchTotal(balances, total)) {
+                return Optional.empty();
+            }
+            return Optional.of(balances);
+        }
+
+        if (allValuesEmpty(maybeBalances)) {
+            return Optional.of(generateBalances(numberOfAccounts, balancePerAccount));
+        }
+
+        return Optional.empty();
+    }
+
+    public static Map<Integer, Integer> performTransfers(
+            Map<Integer, Integer> balances, int numberOfTransfers, int transferAmount, SecureRandom random) {
+        Map<Integer, Integer> newBalances = new HashMap<>(balances);
+        for (int idx = 0; idx < numberOfTransfers; idx++) {
+            int from = random.nextInt(newBalances.size());
+            int to = random.nextInt(newBalances.size());
+
+            if (newBalances.get(from) - transferAmount < 0) {
+                continue;
+            }
+
+            newBalances.compute(from, (k, v) -> v - transferAmount);
+            newBalances.compute(to, (k, v) -> v + transferAmount);
+        }
+        return ImmutableMap.copyOf(newBalances);
+    }
+
+    private static boolean sumOfBalancesMatchTotal(Map<Integer, Integer> balances, Integer totalBalance) {
+        return balances.values().stream().mapToInt(Integer::intValue).sum() == totalBalance;
+    }
+
+    private static boolean allValuesPresent(Map<Integer, Optional<Integer>> balances) {
+        return balances.values().stream().allMatch(Optional::isPresent);
+    }
+
+    private static boolean allValuesEmpty(Map<Integer, Optional<Integer>> balances) {
+        return balances.values().stream().allMatch(Optional::isEmpty);
+    }
+
+    private static Map<Integer, Integer> generateBalances(Integer numberOfAccounts, Integer balancePerAccount) {
+        return IntStream.range(0, numberOfAccounts)
+                .boxed()
+                .collect(Collectors.toMap(Function.identity(), index -> balancePerAccount));
+    }
+}u}(jc (dd8ae4bd5d9bdf4ebb6f459b4fc1771835066b3ej\d watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowConfiguration.javaj^d addedjVd K7jWd K j`d K7jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,55 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import com.palantir.atlasdb.workload.workflow.TableConfiguration;
+import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableBankBalanceWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableBankBalanceWorkflowConfiguration.class)
+@JsonTypeName(BankBalanceWorkflowConfiguration.TYPE)
+public interface BankBalanceWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "bank-balance";
+
+    TableConfiguration tableConfiguration();
+
+    @Value.Default
+    default Integer numberOfAccounts() {
+        return 10;
+    }
+
+    @Value.Default
+    default Integer initialBalancePerAccount() {
+        return 100;
+    }
+
+    @Value.Default
+    default Integer transferAmount() {
+        return 75;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jc (2394a7f410f2773d697a6ff47e5911c814eba351j\d katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflows.javaj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,136 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.security.SecureRandom;
+import java.util.Map;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.jetbrains.annotations.VisibleForTesting;
+
+/**
+ * A workflow which performs a number of account balance transfers between accounts.
+ */
+public final class BankBalanceWorkflows {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(BankBalanceWorkflows.class);
+    private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+
+    private static final Integer COLUMN = 0;
+
+    private BankBalanceWorkflows() {
+        // utility
+    }
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            BankBalanceWorkflowConfiguration bankBalanceWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        BankBalanceRunTask runTask = new BankBalanceRunTask(bankBalanceWorkflowConfiguration);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> runTask.run(txnStore),
+                bankBalanceWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            InteractiveTransactionStore store,
+            BankBalanceWorkflowConfiguration bankBalanceWorkflowConfiguration,
+            ListeningExecutorService executionExecutor,
+            AtomicBoolean skipRunning) {
+        BankBalanceRunTask runTask = new BankBalanceRunTask(skipRunning, bankBalanceWorkflowConfiguration);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> runTask.run(txnStore),
+                bankBalanceWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    private static class BankBalanceRunTask {
+        private final AtomicBoolean skipRunning;
+
+        private final BankBalanceWorkflowConfiguration workflowConfiguration;
+
+        public BankBalanceRunTask(BankBalanceWorkflowConfiguration workflowConfiguration) {
+            this(new AtomicBoolean(), workflowConfiguration);
+        }
+
+        @VisibleForTesting
+        BankBalanceRunTask(AtomicBoolean skipRunning, BankBalanceWorkflowConfiguration workflowConfiguration) {
+            this.skipRunning = skipRunning;
+            this.workflowConfiguration = workflowConfiguration;
+        }
+
+        public Optional<WitnessedTransaction> run(InteractiveTransactionStore store) {
+            if (skipRunning.get()) {
+                return Optional.empty();
+            }
+            workflowConfiguration.transactionRateLimiter().acquire();
+            return store.readWrite(txn -> {
+                Map<Integer, Optional<Integer>> maybeBalances = getAccountBalances(txn);
+                BankBalanceUtils.validateOrGenerateBalances(
+                                maybeBalances,
+                                workflowConfiguration.numberOfAccounts(),
+                                workflowConfiguration.initialBalancePerAccount())
+                        .ifPresentOrElse(balances -> performTransfers(txn, balances), () -> {
+                            if (skipRunning.compareAndSet(false, true)) {
+                                log.error(
+                                        "Balance validation failed, indicating we have violated snapshot isolation.",
+                                        SafeArg.of("maybeBalances", maybeBalances));
+                            }
+                        });
+            });
+        }
+
+        private void performTransfers(InteractiveTransaction transaction, Map<Integer, Integer> balances) {
+            Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(
+                    balances, RANDOM.nextInt(balances.size()), workflowConfiguration.transferAmount(), RANDOM);
+            newBalances.forEach((account, balance) -> transaction.write(
+                    workflowConfiguration.tableConfiguration().tableName(), getCellForAccount(account), balance));
+        }
+
+        private Map<Integer, Optional<Integer>> getAccountBalances(InteractiveTransaction transaction) {
+            return IntStream.range(0, workflowConfiguration.numberOfAccounts())
+                    .boxed()
+                    .collect(Collectors.toMap(
+                            Function.identity(),
+                            index -> transaction.read(
+                                    workflowConfiguration.tableConfiguration().tableName(), getCellForAccount(index))));
+        }
+    }
+
+    public static WorkloadCell getCellForAccount(int accountIndex) {
+        return ImmutableWorkloadCell.of(accountIndex, COLUMN);
+    }
+}u}(jc (17025a595fb12bc4f0fc9cfc02f250dd06064c6aj\d `atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingGraph.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd XJ  @@ -17,8 +17,10 @@
 package com.palantir.atlasdb.workload.workflow.ring;
 
 import com.google.common.collect.Iterators;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
+import java.security.SecureRandom;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.HashSet;
@@ -33,6 +35,7 @@
 import one.util.streamex.EntryStream;
 
 public final class RingGraph {
+    private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
     private final Map<Integer, Integer> ring;
 
     private RingGraph(Map<Integer, Integer> ring) {
@@ -66,7 +69,7 @@ public static RingGraph create(int size) {
      * (1) There are no missing entries
      * (2) There are no sub-cycles
      * (3) The ring is connected
-     *
+     * <p>
      * This is simply done by iterating over the length of the ring, and validating that we visited each node.
      * To ensure that the ring is connected, we do not track our entry into the ring (i.e. the first node we visit),
      * as we expect to have it be visited again as the last node.
@@ -100,7 +103,7 @@ public RingGraph generateNewRing() {
      */
     private static RingGraph generateNewRing(Set<Integer> nodes) {
         List<Integer> keys = new ArrayList<>(nodes);
-        Collections.shuffle(keys);
+        Collections.shuffle(keys, SECURE_RANDOM);
         Iterator<Integer> valuesIterator = Iterators.cycle(keys);
         valuesIterator.next();
         return new RingGraph(u}(jc (8db9245638b72b40f73f9ae3c427c4ccb2c69053j\d patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowConfiguration.javaj^d modifiedjVd KjWd Kj`d K
jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -20,14 +20,13 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.google.common.util.concurrent.RateLimiter;
-import com.palantir.atlasdb.workload.workflow.ImmutableSingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TableConfiguration;
 import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
 import org.immutables.value.Value;
 
 @Value.Immutable
-@JsonSerialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
-@JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonSerialize(as = ImmutableRingWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableRingWorkflowConfiguration.class)
 @JsonTypeName(RingWorkflowConfiguration.TYPE)
 public interface RingWorkflowConfiguration extends WorkflowConfiguration {
     String TYPE = "ring";
@@ -38,11 +37,6 @@ default Integer ringSize() {
         return 3;
     }
 
-    @Value.Default
-    default double rateLimit() {
-        return 100;
-    }
-
     @Value.Lazy
     default RateLimiter transactionRateLimiter() {
         return RateLimiter.create(rateLimit());u}(jc (b786a95bef1effb5bd44f53eed786d588b38a9b0j\d datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflows.javaj^d modifiedjVd K
jWd K j`d K
jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -51,6 +51,19 @@ private RingWorkflows() {
     }
 
     public static Workflow create(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration ringWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        AtomicBoolean skipRunning = new AtomicBoolean(false);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
+                ringWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
             InteractiveTransactionStore store,
             RingWorkflowConfiguration ringWorkflowConfiguration,
             ListeningExecutorService executionExecutor,u}(jc (c89f46a34f99a9fca258b76f8b9fdf692e350760j\d natlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/background/BackgroundCassandraJobTest.javaj^d addedjVd K2jWd K j`d K2jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,50 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.background;
+
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.verify;
+
+import com.palantir.atlasdb.buggify.AlwaysBuggifyFactory;
+import com.palantir.atlasdb.workload.resource.CassandraSidecarResource;
+import java.util.List;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class BackgroundCassandraJobTest {
+
+    private static final String HOST_ONE = "cassandra1";
+    private static final String HOST_TWO = "cassandra2";
+    private static final String HOST_THREE = "cassandra3";
+
+    private static final List<String> CASSANDRA_HOSTS = List.of(HOST_ONE, HOST_TWO, HOST_THREE);
+
+    @Mock
+    private CassandraSidecarResource cassandraSidecarResource;
+
+    @Test
+    public void runCanExecuteCompactFlushOnAllCassandraHosts() {
+        BackgroundCassandraJob backgroundCassandraJob =
+                new BackgroundCassandraJob(CASSANDRA_HOSTS, cassandraSidecarResource, AlwaysBuggifyFactory.INSTANCE);
+        CASSANDRA_HOSTS.forEach(_ignore -> backgroundCassandraJob.run());
+        CASSANDRA_HOSTS.forEach(host -> verify(cassandraSidecarResource).compact(eq(host)));
+        CASSANDRA_HOSTS.forEach(host -> verify(cassandraSidecarResource).flush(eq(host)));
+    }
+}u}(jc (3d12ec12a07e0b90193451a34a6dccfcfa6f8e76j\d {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporterTest.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -25,7 +25,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -60,7 +60,7 @@ public void runIncreasesMetricsIfViolationsFound() {
                         .build()));
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
                 .transactionStore(store)
-                .history(List.of(ImmutableWitnessedTransaction.builder()
+                .history(List.of(FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(u}(jc (39cc7f77a28bd84fc271bbca23d8e9195abf6fd6j\d matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantTest.javaj^d modifiedjVd KjWd Kj`d K
jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X
  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -59,12 +59,12 @@ public void before() {
     public void cellsExpectedToBeDeletedAreFound() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)
@@ -86,12 +86,12 @@ public void cellsExpectedToBeDeletedAreFound() {
     public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)u}(jc (398677d5ff242f5cee92de9c2737a0843621c59dj\d watlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporterTest.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,7 +19,7 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import java.util.List;
 import org.junit.Test;
@@ -35,7 +35,7 @@ public void consumerDoesNotThrowWhenAcceptingViolations() {
         assertThatCode(() -> SerializableInvariantLogReporter.INSTANCE
                         .consumer()
                         .accept(List.of(InvalidWitnessedTransaction.of(
-                                ImmutableWitnessedTransaction.builder()
+                                FullyWitnessedTransaction.builder()
                                         .startTimestamp(1)
                                         .build(),
                                 List.of()))))u      }(jc (0db0afc0570e8993b0ec99aac00c3f57657d6828j\d latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaj^d modifiedjVd K
jWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -22,6 +22,7 @@
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
@@ -116,13 +117,18 @@ public void catchesWriteSkew() {
         InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
                 Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
 
-        assertThat(invalidWitnessedTransactionAction.action())
-                .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
-                    assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
-                    assertThat(action.value()).contains(15);
-                });
-        assertThat(invalidWitnessedTransactionAction.mismatchedValue())
-                .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+        assertThat(invalidWitnessedTransactionAction)
+                .isInstanceOfSatisfying(
+                        InvalidWitnessedSingleCellTransactionAction.class,
+                        invalidSingleCellWitnessedTransactionAction -> {
+                            assertThat(invalidSingleCellWitnessedTransactionAction.action())
+                                    .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
+                                        assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
+                                        assertThat(action.value()).contains(15);
+                                    });
+                            assertThat(invalidSingleCellWitnessedTransactionAction.mismatchedValue())
+                                    .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+                        });
     }
 
     @Testu}(jc (fb5813b8d5288d435a36c31b8acf757dd6e9083bj\d hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SnapshotInvariantTest.javaj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotInvariantTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X!  @@ -0,0 +1,170 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class SnapshotInvariantTest {
+    @Mock
+    private ReadableTransactionStore readableTransactionStore;
+
+    @Test
+    public void catchesWriteWriteConflict() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidTransaction.transaction().startTimestamp()).isEqualTo(5L);
+        assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
+
+        InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(InvalidWitnessedSingleCellTransactionAction.class, invalidSingleCellAction -> {
+                    assertThat(invalidSingleCellAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+                    assertThat(invalidSingleCellAction.mismatchedValue())
+                            .isEqualTo(MismatchedValue.of(
+                                    ValueAndMaybeTimestamp.of(WorkloadTestHelpers.VALUE_ONE, 1L),
+                                    ValueAndMaybeTimestamp.empty()));
+                });
+    }
+
+    @Test
+    public void catchesAbaWriteWriteConflictForDeletes() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .delete(5, 10)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+
+        InvalidWitnessedTransaction invalidTransaction = Iterables.getOnlyElement(invalidTransactions);
+        assertThat(invalidTransaction.transaction().startTimestamp()).isEqualTo(5L);
+        assertThat(invalidTransaction.transaction().commitTimestamp()).contains(20L);
+
+        InvalidWitnessedTransactionAction invalidAction = Iterables.getOnlyElement(invalidTransaction.invalidActions());
+        assertThat(invalidAction)
+                .isInstanceOfSatisfying(InvalidWitnessedSingleCellTransactionAction.class, invalidSingleCellAction -> {
+                    assertThat(invalidSingleCellAction.action().table()).isEqualTo(WorkloadTestHelpers.TABLE_1);
+                    assertThat(invalidSingleCellAction.mismatchedValue())
+                            .isEqualTo(MismatchedValue.of(
+                                    ValueAndMaybeTimestamp.of(Optional.empty(), 1L), ValueAndMaybeTimestamp.empty()));
+                });
+    }
+
+    @Test
+    public void doesNotCatchWriteSkew() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .read(5, 10)
+                .write(6, 10, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(20L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void doesNotCatchReadOnlyTransactionAnomaly() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(11L)
+                .read(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(20L)
+                .startTransaction(12L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_TWO)
+                .endTransaction(13L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void properlyReplaysReadsAndWrites() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder(WorkloadTestHelpers.TABLE_1)
+                .startTransaction(1L)
+                .write(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(10L)
+                .startTransaction(5L)
+                .read(5, 10)
+                .endTransaction(15L)
+                .startTransaction(16L)
+                .read(5, 10, WorkloadTestHelpers.VALUE_ONE)
+                .endTransaction(17L)
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SnapshotInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+}u}(jc (536813aeb3973b4b9f9bd25d91bf425cf6efeb37j\d iatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/VersionedTableViewTest.javaj^d addedjVd KHjWd K j`d KHjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FVersionedTableViewTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd XU  @@ -0,0 +1,72 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.TreeMap;
+import org.junit.Test;
+
+public final class VersionedTableViewTest {
+    @Test
+    public void putStoresTable() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        tableView.put(1L, HashMap.of(10L, 20L));
+        assertThat(tableView.getLatestTableView().getSnapshot().toJavaMap())
+                .containsExactlyEntriesOf(java.util.Map.of(10L, 20L));
+    }
+
+    @Test
+    public void getLatestTableViewFetchesLargestVersion() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedLastView = HashMap.of(30L, 40L);
+        tableView.put(1L, HashMap.of(10L, 20L));
+        tableView.put(2L, HashMap.of(20L, 30L));
+        tableView.put(3L, HashMap.of(30L, 40L));
+        assertThat(tableView.getLatestTableView().getSnapshot()).isEqualTo(expectedLastView);
+    }
+
+    @Test
+    public void getViewFetchesViewBeforeTimestamp() {
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedView = HashMap.of(10L, 20L);
+        tableView.put(1L, expectedView);
+        tableView.put(3L, HashMap.of(20L, 30L));
+        assertThat(tableView.getView(2L).getSnapshot()).isEqualTo(expectedView);
+    }
+
+    @Test
+    public void getViewThrowsWhenFetchingViewForTimestampThatExists() {
+        Long timestamp = 1L;
+        VersionedTableView<Long, Long> tableView = new VersionedTableView<>();
+        Map<Long, Long> expectedView = HashMap.of(10L, 20L);
+        tableView.put(timestamp, expectedView);
+
+        TreeMap<Long, Map<Long, Long>> tableViews = new TreeMap<>();
+        tableViews.put(timestamp, tableView.getLatestTableView().getSnapshot());
+
+        assertThatLoggableExceptionThrownBy(() -> tableView.getView(1L).getSnapshot())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("It is expected when obtaining a view")
+                .hasExactlyArgs(SafeArg.of("startTimestamp", 1L), SafeArg.of("tableViews", tableViews));
+    }
+}u}(jc (7a5e8dd4c01ddc761284d5c5bdc9c0345ddd2826j\d latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowRunnerTest.javaj^d removedjVd K jWd K-j`d K-jad https://github.com/palantir/atlasdb/blob/79d853def7736f22e64f5a2ff4c88f458214b8ec/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.javajcd https://github.com/palantir/atlasdb/raw/79d853def7736f22e64f5a2ff4c88f458214b8ec/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowRunnerTest.java?ref=79d853def7736f22e64f5a2ff4c88f458214b8ecjgd X  @@ -1,45 +0,0 @@
-/*
- * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.workload.runner;
-
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.when;
-
-import com.palantir.atlasdb.workload.invariant.InvariantReporter;
-import com.palantir.atlasdb.workload.workflow.Workflow;
-import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
-import java.util.List;
-import org.junit.Test;
-
-public class AntithesisWorkflowRunnerTest {
-    @Test
-    public void runExecutesWorkflowsAndInvokesInvariantReporter() {
-        Workflow exampleWorkflow = mock(Workflow.class);
-        WorkflowHistory workflowHistory = mock(WorkflowHistory.class);
-        when(exampleWorkflow.run()).thenReturn(workflowHistory);
-        InvariantReporter<Void> exampleInvariantReporterOne = mock(InvariantReporter.class);
-        InvariantReporter<Void> exampleInvariantReporterTwo = mock(InvariantReporter.class);
-        AntithesisWorkflowRunner.INSTANCE.run(
-                exampleWorkflow, List.of(exampleInvariantReporterOne, exampleInvariantReporterTwo));
-        verify(exampleWorkflow, times(1)).run();
-        verify(exampleInvariantReporterOne, times(1)).report(any());
-        verify(exampleInvariantReporterTwo, times(1)).report(any());
-    }
-}u}(jc (6c7f1d05425e8759d68b71073e9525eaf8f11057j\d uatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunnerTest.javaj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xb  @@ -0,0 +1,140 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.runner;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doAnswer;
+import static org.mockito.Mockito.doThrow;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.times;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
+
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.Future;
+import java.util.concurrent.atomic.AtomicBoolean;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class AntithesisWorkflowValidatorRunnerTest {
+
+    private static final ListeningExecutorService EXECUTOR_SERVICE =
+            MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(8));
+
+    @Mock
+    private Workflow workflow;
+
+    @Mock
+    private WorkflowHistory workflowHistory;
+
+    @Mock
+    private InvariantReporter<Void> invariantReporterOne;
+
+    @Mock
+    private InvariantReporter<Void> invariantReporterTwo;
+
+    private WorkflowAndInvariants<Workflow> workflowAndInvariants;
+
+    @Before
+    public void before() {
+        when(workflow.run()).thenReturn(workflowHistory);
+        workflowAndInvariants = WorkflowAndInvariants.of(workflow, invariantReporterOne, invariantReporterTwo);
+    }
+
+    @Test
+    public void runExecutesWorkflowAndInvokesInvariantReporters() {
+        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(workflowAndInvariants);
+        verify(workflow, times(1)).run();
+        verify(invariantReporterOne, times(1)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+
+    @Test
+    public void runValidatesAllInvariantsIgnoringExceptions() {
+        doThrow(new RuntimeException()).when(invariantReporterOne).report(any());
+        doThrow(new RuntimeException()).when(invariantReporterTwo).report(any());
+        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(workflowAndInvariants);
+        verify(workflow, times(1)).run();
+        verify(invariantReporterOne, times(1)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+
+    @Test
+    public void runExecutesMultipleWorkflowsAndWaitsForAllToFinishBeforeInvokingInvariantReporter() {
+        CountDownLatch slowWorkflowCanMakeProgress = new CountDownLatch(1);
+        AtomicBoolean slowWorkflowIsDone = new AtomicBoolean(false);
+
+        Workflow slowWorkflow = mock(Workflow.class);
+        when(slowWorkflow.run()).thenAnswer(_input -> {
+            try {
+                slowWorkflowCanMakeProgress.await();
+                slowWorkflowIsDone.set(true);
+                return workflowHistory;
+            } catch (InterruptedException e) {
+                Thread.currentThread().interrupt();
+                throw new RuntimeException(e);
+            }
+        });
+
+        doAnswer(_invocation -> {
+                    assertThat(slowWorkflowIsDone.get())
+                            .as("the invariant reporter ran, even though the slow workflow was not done yet")
+                            .isTrue();
+                    return null;
+                })
+                .when(invariantReporterOne)
+                .report(any());
+
+        ExecutorService backgroundExecutor = PTExecutors.newSingleThreadExecutor();
+        try {
+            Future<Void> validation = backgroundExecutor.submit(() -> {
+                WorkflowAndInvariants<Workflow> slowWorkflowAndInvariants =
+                        WorkflowAndInvariants.of(slowWorkflow, invariantReporterOne);
+                new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE)
+                        .run(slowWorkflowAndInvariants, workflowAndInvariants);
+                return null;
+            });
+
+            assertThat(validation).as("the slow workflow was not actually slow").isNotDone();
+
+            slowWorkflowCanMakeProgress.countDown();
+            Futures.getUnchecked(validation);
+        } finally {
+            backgroundExecutor.shutdown();
+        }
+
+        verify(workflow, times(1)).run();
+        verify(slowWorkflow, times(1)).run();
+        verify(invariantReporterOne, times(2)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+}u}(jc (5ec56f77b39005e45c63e6495f68b817646fecc6j\d jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj^d modifiedjVd K&jWd K j`d K&jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -28,22 +28,28 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doAnswer;
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
 
 import com.google.common.collect.Iterables;
+import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
+import com.palantir.atlasdb.transaction.api.ConditionAwareTransactionTask;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.encoding.V1EncodingStrategy;
+import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore.CommitTimestampProvider;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -162,6 +168,38 @@ public void abortedTransactionsReturnEmpty() {
                 .isEmpty();
     }
 
+    @Test
+    public void keyAlreadyExistExceptionResultsInMaybeWitnessedTransaction() {
+        WriteTransactionAction writeTransactionAction =
+                WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+        TransactionManager keyAlreadyExistsExceptionThrowingStore = spy(manager);
+        doAnswer(invocation -> {
+                    Supplier<CommitTimestampProvider> commitTimestampFetcher = invocation.getArgument(0);
+                    ConditionAwareTransactionTask<Void, CommitTimestampProvider, Exception> task =
+                            invocation.getArgument(1);
+                    return manager.runTaskWithConditionWithRetry(commitTimestampFetcher, (txn, condition) -> {
+                        manager.getKeyValueService()
+                                .putUnlessExists(
+                                        TransactionConstants.TRANSACTION_TABLE,
+                                        Map.of(
+                                                V1EncodingStrategy.INSTANCE.encodeStartTimestampAsCell(
+                                                        txn.getTimestamp()),
+                                                Ints.toByteArray(-1)));
+                        task.execute(txn, condition);
+                        return null;
+                    });
+                })
+                .when(keyAlreadyExistsExceptionThrowingStore)
+                .runTaskWithConditionWithRetry(any(Supplier.class), any());
+        AtlasDbTransactionStore onlyKeyAlreadyExistsThrowingStore =
+                AtlasDbTransactionStore.create(keyAlreadyExistsExceptionThrowingStore, TABLES_TO_ATLAS_METADATA);
+        assertThat(onlyKeyAlreadyExistsThrowingStore.readWrite(List.of(writeTransactionAction)))
+                .hasValueSatisfying(witnessedTransaction -> {
+                    assertThat(witnessedTransaction).isInstanceOf(MaybeWitnessedTransaction.class);
+                    assertThat(witnessedTransaction.actions()).containsExactly(writeTransactionAction.witness());
+                });
+    }
+
     @Test
     public void getCommitTimestampIsEmptyWhenMatchesStartTimestamp() {
         CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();u}(jc (d2773b68972e300a262ebb1f8c2a24f280280cfdj\d patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -27,7 +27,7 @@
 
 import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.store.ValidationStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import java.util.List;
@@ -40,12 +40,12 @@ public final class InMemoryValidationStoreTest {
     @Test
     public void writeActionsPersistValues() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
@@ -61,13 +61,13 @@ public void writeActionsPersistValues() {
     @Test
     public void deleteActionsPutsEmptyOptionalForCell() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
@@ -80,17 +80,17 @@ public void deleteActionsPutsEmptyOptionalForCell() {
     @Test
     public void writesDeletesAreProcessedInOrder() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(5)
                         .commitTimestamp(6)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_TWO))u}(jc (cad53b71091234e55f82b97b4b6e475eebb5559bj\d qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj^d modifiedjVd K	jWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -40,6 +40,13 @@ public WitnessedTransactionsBuilder(String table) {
         this.table = table;
     }
 
+    public WitnessedTransactionBuilder startTransaction(long startTimestamp) {
+        if (startTimestamp > timestampCounter.get()) {
+            timestampCounter.set(startTimestamp);
+        }
+        return new WitnessedTransactionBuilder(startTimestamp);
+    }
+
     public WitnessedTransactionBuilder startTransaction() {
         return new WitnessedTransactionBuilder(timestampCounter.incrementAndGet());
     }
@@ -103,7 +110,7 @@ public WitnessedTransactionsBuilder endTransaction(Optional<Long> commitTimestam
                         startTimestamp < commitTimestamp.get(),
                         "Commit timestamp must be greater than the start timestamp.");
             }
-            witnessedTransactions.add(ImmutableWitnessedTransaction.builder()
+            witnessedTransactions.add(FullyWitnessedTransaction.builder()
                     .startTimestamp(startTimestamp)
                     .actions(actions)
                     .commitTimestamp(commitTimestamp)u}(jc (bdf9a77b3f524e363e5144842e79d33e09bcbe78j\d hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.invariant.ValueAndMaybeTimestamp;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
@@ -58,5 +59,9 @@ public final class WorkloadTestHelpers {
             TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_ONE);
     public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
             TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO);
+
+    public static final ValueAndMaybeTimestamp VALUE_ONE_AND_TIMESTAMP = ValueAndMaybeTimestamp.of(VALUE_ONE, 1L);
+
+    public static final ValueAndMaybeTimestamp VALUE_TWO_AND_TIMESTAMP = ValueAndMaybeTimestamp.of(VALUE_TWO, 1L);
     public static final String WORKFLOW = "example-workflow";
 }u}(jc (d495a71c18ca7b125092f092c371e0a4a455ad73j\d atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitorTest.javaj^d addedjVd KAjWd K j`d KAjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javajed X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X
  @@ -0,0 +1,65 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyLong;
+import static org.mockito.Mockito.verifyNoInteractions;
+import static org.mockito.Mockito.when;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class OnlyCommittedWitnessedTransactionVisitorTest {
+
+    private static final FullyWitnessedTransaction READ_ONLY_WITNESSED_TRANSACTION =
+            FullyWitnessedTransaction.builder().startTimestamp(100L).build();
+
+    private static final MaybeWitnessedTransaction MAYBE_WITNESSED_TRANSACTION = MaybeWitnessedTransaction.builder()
+            .startTimestamp(100L)
+            .commitTimestamp(101L)
+            .build();
+
+    @Mock
+    private ReadOnlyTransactionStore transactionStore;
+
+    @Test
+    public void fullyCommittedTransactionsAreNeverChecked() {
+        assertThat(READ_ONLY_WITNESSED_TRANSACTION.accept(
+                        new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(READ_ONLY_WITNESSED_TRANSACTION);
+        verifyNoInteractions(transactionStore);
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsEmptyWhenNotCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(false);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .isEmpty();
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsFullyWitnessedWhenCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(true);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(MAYBE_WITNESSED_TRANSACTION.toFullyWitnessed());
+    }
+}u}(jc (c5349645dc81bf0c8bc33bc720961e281110a64fj\d xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionsTest.javaj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,131 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.List;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class WitnessedTransactionsTest {
+    @Mock
+    private ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    @Test
+    public void returnsUnderlyingWitnessedTransactions() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(twoToEight)))
+                .containsExactly(twoToEight);
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(readOnlyAtFive)))
+                .containsExactly(readOnlyAtFive);
+    }
+
+    @Test
+    public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
+                .containsExactly(fourToSix, threeToSeven, twoToEight);
+    }
+
+    @Test
+    public void sortsReadOnlyTransactionsByStartTimestamp() {
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
+                .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
+    }
+
+    @Test
+    public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        ImmutableList.of(
+                                twoToEight,
+                                readOnlyAtNine,
+                                fourToSix,
+                                readOnlyAtFive,
+                                readOnlyAtThree,
+                                readOnlyAtSeven)))
+                .containsExactly(
+                        readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
+    }
+
+    @Test
+    public void filterRemovesUncommittedTransactions() {
+        MaybeWitnessedTransaction committedMaybeWitnessedTransaction =
+                createMaybeWitnessedTransactionWithoutActions(1, 3, true);
+        MaybeWitnessedTransaction notCommittedTransaction = createMaybeWitnessedTransactionWithoutActions(2, 8, false);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        List.of(
+                                committedMaybeWitnessedTransaction,
+                                notCommittedTransaction,
+                                readOnlyAtFive,
+                                fourToSix)))
+                .containsExactly(committedMaybeWitnessedTransaction.toFullyWitnessed(), readOnlyAtFive, fourToSix);
+    }
+
+    private MaybeWitnessedTransaction createMaybeWitnessedTransactionWithoutActions(
+            long start, long commit, boolean committed) {
+        when(readOnlyTransactionStore.isCommitted(eq(start))).thenReturn(committed);
+        return MaybeWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+
+    private static FullyWitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
+        return FullyWitnessedTransaction.builder().startTimestamp(start).build();
+    }
+
+    private static FullyWitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+}u}(jc (c661ec5533851b62afb963d1f472d967b8a67e83j\d qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunnerTest.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -33,7 +33,7 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.List;
@@ -126,7 +126,7 @@ public void storePassedThroughToIndividualTasks() {
     }
 
     private static WitnessedTransaction createWitnessedTransactionWithStartTimestamp(int startTimestamp) {
-        return ImmutableWitnessedTransaction.builder()
+        return FullyWitnessedTransaction.builder()
                 .startTimestamp(startTimestamp)
                 .build();
     }u}(jc (84316bacac0bff7ed7e0091b3a88e14381eec0f0j\d eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javaj^d modifiedjVd KjWd KBj`d KEjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X.  @@ -16,19 +16,15 @@
 
 package com.palantir.atlasdb.workload.workflow;
 
-import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.anyInt;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
-import com.google.common.collect.ImmutableList;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.concurrent.ScheduledExecutorService;
 import org.junit.Test;
@@ -41,66 +37,18 @@ public class DefaultWorkflowTest {
     private final ScheduledExecutorService scheduler = PTExecutors.newSingleThreadScheduledExecutor();
     private final ListeningExecutorService executionExecutor = MoreExecutors.listeningDecorator(scheduler);
 
+    private final DefaultWorkflow<TransactionStore> workflow =
+            DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
+
     @Test
     public void handlesExceptionsInUnderlyingTasks() {
         RuntimeException transactionException = new RuntimeException("boo");
         when(transactionTask.apply(eq(store), anyInt())).thenThrow(transactionException);
-
-        Workflow workflow =
-                DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
         assertThatThrownBy(workflow::run)
                 .hasMessage("Error when running workflow task")
                 .hasCause(transactionException);
     }
 
-    @Test
-    public void returnsUnderlyingWitnessedTransactions() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight)))
-                .containsExactly(twoToEight);
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(readOnlyAtFive)))
-                .containsExactly(readOnlyAtFive);
-    }
-
-    @Test
-    public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
-        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
-
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
-                .containsExactly(fourToSix, threeToSeven, twoToEight);
-    }
-
-    @Test
-    public void sortsReadOnlyTransactionsByStartTimestamp() {
-        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        WitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
-
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(
-                        ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
-                .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
-    }
-
-    @Test
-    public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
-
-        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        WitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
-
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(
-                        twoToEight, readOnlyAtNine, fourToSix, readOnlyAtFive, readOnlyAtThree, readOnlyAtSeven)))
-                .containsExactly(
-                        readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
-    }
-
     private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
         return new WorkflowConfiguration() {
             @Override
@@ -109,15 +57,4 @@ public int iterationCount() {
             }
         };
     }
-
-    private static WitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
-        return ImmutableWitnessedTransaction.builder().startTimestamp(start).build();
-    }
-
-    private static WitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
-        return ImmutableWitnessedTransaction.builder()
-                .startTimestamp(start)
-                .commitTimestamp(commit)
-                .build();
-    }
 }u}(jc (aab6c8e21d5584a8291807921d8d032d4786559dj\d eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowsTest.javaj^d addedjVd KdjWd K j`d Kdjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xh  @@ -0,0 +1,100 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.security.SecureRandom;
+import java.util.Collection;
+import java.util.List;
+import java.util.stream.Collectors;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class RandomWorkflowsTest {
+    private static final String TABLE_NAME = "random.random";
+    private static final RandomWorkflowConfiguration CONFIGURATION = ImmutableRandomWorkflowConfiguration.builder()
+            .tableConfiguration(ImmutableTableConfiguration.builder()
+                    .tableName(TABLE_NAME)
+                    .isolationLevel(IsolationLevel.SERIALIZABLE)
+                    .build())
+            .iterationCount(1)
+            .build();
+
+    private final TransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+
+    @Mock
+    private SecureRandom random;
+
+    private Workflow workflow;
+
+    @Before
+    public void before() {
+        this.workflow = RandomWorkflows.create(
+                memoryStore,
+                CONFIGURATION,
+                MoreExecutors.listeningDecorator(PTExecutors.newSingleThreadExecutor()),
+                random);
+    }
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore())
+                .as("should return a read only transaction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void workflowRunsReadWritesDeletes() {
+        when(random.nextInt(anyInt())).thenReturn(1);
+        WorkflowHistory history = workflow.run();
+        List<WitnessedTransactionAction> actions = history.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(actions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+}u}(jc (ce49e27d10355fb6f5b71d88a206899b12b7f25bj\d xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellReadNoTouchWorkflowsTest.javaj^d addedjVd K}jWd K j`d K}jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellReadNoTouchWorkflowsTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2beG     jgd X  @@ -0,0 +1,125 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Sets;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Collection;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class SingleBusyCellReadNoTouchWorkflowsTest {
+    private static final String TABLE_NAME = "busy.readnotouch.cell";
+    private static final int ITERATION_COUNT = 1_000;
+    private static final SingleBusyCellReadNoTouchWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellReadNoTouchWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow workflow = SingleBusyCellReadNoTouchWorkflows.create(
+            transactionStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)),
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)));
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void transactionsDoNotConflictExcessively() {
+        WorkflowHistory workflowHistory = workflow.run();
+        assertThat(workflowHistory.history()).hasSizeBetween(ITERATION_COUNT / 2, ITERATION_COUNT);
+    }
+
+    @Test
+    public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).allSatisfy(action -> assertThat(action)
+                .isInstanceOfSatisfying(WitnessedSingleCellTransactionAction.class, singleCellAction -> {
+                    assertThat(singleCellAction.table()).isEqualTo(TABLE_NAME);
+                    assertThat(singleCellAction.cell()).isEqualTo(SingleBusyCellReadNoTouchWorkflows.BUSY_CELL);
+                }));
+    }
+
+    @Test
+    public void targetCellIsReadModifiedAndDeleted() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+
+    @Test
+    public void readTransactionsDontDoWrites() {
+        WorkflowHistory workflowHistory = workflow.run();
+
+        Set<WitnessedTransaction> witnessedTransactionsWithReads = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream().anyMatch(WitnessedReadTransactionAction.class::isInstance))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> witnessedTransactionsWithWritesOrDeletes = workflowHistory.history().stream()
+                .filter(txn -> txn.actions().stream()
+                        .anyMatch(action -> action instanceof WitnessedWriteTransactionAction
+                                || action instanceof WitnessedDeleteTransactionAction))
+                .collect(Collectors.toSet());
+
+        Set<WitnessedTransaction> transactionsWithReadsAndWritesOrDeletes =
+                Sets.intersection(witnessedTransactionsWithReads, witnessedTransactionsWithWritesOrDeletes);
+
+        assertThat(transactionsWithReadsAndWritesOrDeletes).isEmpty();
+    }
+}u}(jc (241e8471f3f2d7c765f6ff9e98e1c055938e3a50j\d matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowsTest.javaj^d addedjVd KgjWd K j`d Kgjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,103 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedSingleCellTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Collection;
+import java.util.List;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class SingleBusyCellWorkflowsTest {
+    private static final String TABLE_NAME = "busy.cell";
+    private static final int ITERATION_COUNT = 1_000;
+    private static final SingleBusyCellWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow workflow = SingleBusyCellWorkflows.create(
+            transactionStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)),
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)));
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void transactionsDoNotConflictExcessively() {
+        WorkflowHistory workflowHistory = workflow.run();
+        assertThat(workflowHistory.history()).hasSizeBetween(ITERATION_COUNT / 2, ITERATION_COUNT);
+    }
+
+    @Test
+    public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedSingleCellTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .map(WitnessedSingleCellTransactionAction.class::cast)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.table().equals(TABLE_NAME));
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.cell().equals(SingleBusyCellWorkflows.BUSY_CELL));
+    }
+
+    @Test
+    public void targetCellIsReadModifiedAndDeleted() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+}u}(jc (67649f06c0f6d4e2b55d3a069e6c8885508b4385j\d latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflowsTest.javaj^d addedjVd MWjWd K j`d MWjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflowsTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd XI  @@ -0,0 +1,343 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.invariant.CrossCellInconsistency;
+import com.palantir.atlasdb.workload.invariant.Invariant;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableFullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicReference;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class TransientRowsWorkflowsTest {
+    private static final int ITERATION_COUNT = 5;
+    private static final String TABLE_NAME = "transient.rows";
+    private static final TransientRowsWorkflowConfiguration CONFIGURATION =
+            ImmutableTransientRowsWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow transientRowsWorkflow = TransientRowsWorkflows.create(
+            transactionStore, CONFIGURATION, MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)));
+    private final Invariant<List<CrossCellInconsistency>> invariant =
+            TransientRowsWorkflows.getSummaryLogInvariantReporter(CONFIGURATION).invariant();
+
+    @Test
+    public void transactionStoreIsReadOnly() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void eachTransactionIsWitnessed() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        List<WitnessedTransaction> witnessedTransactions = history.history();
+        assertThat(witnessedTransactions).hasSize(ITERATION_COUNT);
+    }
+
+    @Test
+    public void firstTransactionWritesTwoCells() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        List<WitnessedTransaction> witnessedTransactions = history.history();
+        assertThat(witnessedTransactions.get(0).actions())
+                .hasSize(2)
+                .containsExactlyInAnyOrder(
+                        WitnessedWriteTransactionAction.of(
+                                TABLE_NAME,
+                                ImmutableWorkloadCell.of(0, TransientRowsWorkflows.COLUMN),
+                                TransientRowsWorkflows.VALUE),
+                        WitnessedWriteTransactionAction.of(
+                                TABLE_NAME,
+                                ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 0),
+                                TransientRowsWorkflows.VALUE));
+    }
+
+    @Test
+    public void subsequentTransactionsWriteThenReadThenDelete() {
+        WorkflowHistory history = transientRowsWorkflow.run();
+        List<WitnessedTransaction> witnessedTransactions = history.history();
+        for (int index = 1; index < ITERATION_COUNT; index++) {
+            assertThat(witnessedTransactions.get(index).actions()).hasSize(7).satisfies(actions -> {
+                assertThat(actions.subList(0, 2)).allMatch(WitnessedWriteTransactionAction.class::isInstance);
+                assertThat(actions.subList(2, 5)).allMatch(WitnessedReadTransactionAction.class::isInstance);
+                assertThat(actions.subList(5, 7)).allMatch(WitnessedDeleteTransactionAction.class::isInstance);
+            });
+        }
+    }
+
+    @Test
+    public void invariantDoesNotReportViolationsUnderNormalOperation() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        invariant.accept(transientRowsWorkflow.run(), reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantReportsViolationsFromFinalStateWhenCellsAreMissing() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        WorkflowHistory history = transientRowsWorkflow.run();
+        transactionStore.readWrite(txn -> txn.delete(TABLE_NAME, ImmutableWorkloadCell.of(ITERATION_COUNT - 1, 1)));
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(ITERATION_COUNT - 1, TransientRowsWorkflows.COLUMN)),
+                                Optional.empty())
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(
+                                                TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 1)),
+                                Optional.of(0))
+                        .build()));
+    }
+
+    @Test
+    public void invariantReportsViolationsFromFinalStateWhenExtraCellsArePresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        WorkflowHistory history = transientRowsWorkflow.run();
+        transactionStore.readWrite(txn -> txn.write(
+                TABLE_NAME,
+                ImmutableWorkloadCell.of(ITERATION_COUNT - 2, TransientRowsWorkflows.COLUMN),
+                TransientRowsWorkflows.VALUE));
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .isEqualTo(ImmutableList.of(CrossCellInconsistency.builder()
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(ITERATION_COUNT - 2, TransientRowsWorkflows.COLUMN)),
+                                Optional.of(0))
+                        .putInconsistentValues(
+                                TableAndWorkloadCell.of(
+                                        TABLE_NAME,
+                                        ImmutableWorkloadCell.of(
+                                                TransientRowsWorkflows.SUMMARY_ROW, ITERATION_COUNT - 2)),
+                                Optional.empty())
+                        .build()));
+    }
+
+    @Test
+    public void invariantReportsViolationsFromTransactionHistory() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        WorkflowHistory history = transientRowsWorkflow.run();
+        WorkflowHistory falseHistory = ImmutableWorkflowHistory.builder()
+                .transactionStore(history.transactionStore())
+                .history(history.history().stream()
+                        .map(witnessedTransaction -> ImmutableFullyWitnessedTransaction.builder()
+                                .actions(witnessedTransaction.actions().stream()
+                                        .map(TransientRowsWorkflowsTest::rewriteReadHistoryAsAlwaysInconsistent)
+                                        .collect(Collectors.toList()))
+                                .startTimestamp(witnessedTransaction.startTimestamp())
+                                .commitTimestamp(witnessedTransaction.commitTimestamp())
+                                .build())
+                        .collect(Collectors.toList()))
+                .build();
+        invariant.accept(falseHistory, reference::set);
+
+        assertThat(reference.get())
+                .hasSize(ITERATION_COUNT - 1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsFailingToReadTheSummaryRow() {
+        WitnessedReadTransactionAction readWitness = WitnessedReadTransactionAction.of(
+                TABLE_NAME, ImmutableWorkloadCell.of(5, TransientRowsWorkflows.COLUMN), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(ImmutableList.of(readWitness));
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of the summary row")
+                .hasExactlyArgs(SafeArg.of("actions", ImmutableList.of(readWitness)));
+    }
+
+    @Test
+    public void invariantThrowsOnTransactionsReadingTheSummaryButFailingToReadTheCorrespondingPrimaryRow() {
+        List<WitnessedTransactionAction> actions = ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, 3), Optional.empty()),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME, ImmutableWorkloadCell.of(2, TransientRowsWorkflows.COLUMN), Optional.empty()));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        assertThatLoggableExceptionThrownBy(() -> invariant.accept(history, inconsistencies -> {}))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Expected to find a read of a corresponding normal row")
+                .hasExactlyArgs(SafeArg.of("actions", actions));
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothEmpty() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsNoViolationIfCorrespondingCellsBothPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions = getReadWitnessesForSingleTransaction(
+                2, Optional.of(TransientRowsWorkflows.VALUE), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get()).isEmpty();
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsPresentAndPrimaryIsAbsent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.of(TransientRowsWorkflows.VALUE), Optional.empty());
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    @Test
+    public void invariantRecordsViolationsIfSummaryIsAbsentAndPrimaryIsPresent() {
+        OnceSettableAtomicReference<List<CrossCellInconsistency>> reference = new OnceSettableAtomicReference<>();
+        List<WitnessedTransactionAction> actions =
+                getReadWitnessesForSingleTransaction(2, Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+        WorkflowHistory history = getWorkflowHistory(actions);
+        invariant.accept(history, reference::set);
+        assertThat(reference.get())
+                .hasSize(1)
+                .allSatisfy(TransientRowsWorkflowsTest::inconsistencyInvolvesPairOfPrimaryAndSummaryCells);
+    }
+
+    private ImmutableWorkflowHistory getWorkflowHistory(List<WitnessedTransactionAction> actions) {
+        return ImmutableWorkflowHistory.builder()
+                .transactionStore(transactionStore)
+                .history(ImmutableList.of(ImmutableFullyWitnessedTransaction.builder()
+                        .addAllActions(actions)
+                        .startTimestamp(0L)
+                        .commitTimestamp(1L)
+                        .build()))
+                .build();
+    }
+
+    private static List<WitnessedTransactionAction> getReadWitnessesForSingleTransaction(
+            int columnIndex, Optional<Integer> summaryValue, Optional<Integer> primaryValue) {
+        return ImmutableList.of(
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(TransientRowsWorkflows.SUMMARY_ROW, columnIndex),
+                        summaryValue),
+                WitnessedReadTransactionAction.of(
+                        TABLE_NAME,
+                        ImmutableWorkloadCell.of(columnIndex, TransientRowsWorkflows.COLUMN),
+                        primaryValue));
+    }
+
+    private static void inconsistencyInvolvesPairOfPrimaryAndSummaryCells(CrossCellInconsistency inconsistency) {
+        Map<TableAndWorkloadCell, Optional<Integer>> readValues = inconsistency.inconsistentValues();
+        TableAndWorkloadCell summaryCell = readValues.keySet().stream()
+                .filter(tableAndWorkloadCell -> tableAndWorkloadCell.cell().key() == TransientRowsWorkflows.SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of the summary row", SafeArg.of("readValues", readValues)));
+        TableAndWorkloadCell primaryCell = getPrimaryCellForSummaryCell(summaryCell);
+
+        assertThat(readValues.keySet()).containsExactlyInAnyOrder(summaryCell, primaryCell);
+        assertThat(readValues.values())
+                .containsExactlyInAnyOrder(Optional.empty(), Optional.of(TransientRowsWorkflows.VALUE));
+    }
+
+    // This workflow uses a single table, where the summary row's columns correspond to rows with primary values.
+    private static TableAndWorkloadCell getPrimaryCellForSummaryCell(TableAndWorkloadCell summaryCell) {
+        return TableAndWorkloadCell.of(
+                summaryCell.tableName(),
+                ImmutableWorkloadCell.of(summaryCell.cell().column(), TransientRowsWorkflows.COLUMN));
+    }
+
+    private static WitnessedTransactionAction rewriteReadHistoryAsAlwaysInconsistent(
+            WitnessedTransactionAction action) {
+        if (action instanceof WitnessedReadTransactionAction) {
+            WitnessedReadTransactionAction readAction = (WitnessedReadTransactionAction) action;
+            if (readAction.cell().key() == TransientRowsWorkflows.SUMMARY_ROW) {
+                return WitnessedReadTransactionAction.of(readAction.table(), readAction.cell(), Optional.empty());
+            } else {
+                return WitnessedReadTransactionAction.of(
+                        readAction.table(), readAction.cell(), Optional.of(TransientRowsWorkflows.VALUE));
+            }
+        } else {
+            return action;
+        }
+    }
+
+    private static final class OnceSettableAtomicReference<T> {
+        private final AtomicReference<T> delegate;
+
+        private OnceSettableAtomicReference() {
+            this.delegate = new AtomicReference<>();
+        }
+
+        private T get() {
+            return Preconditions.checkNotNull(delegate.get(), "Underlying atomic reference has not been set!");
+        }
+
+        private void set(T value) {
+            Preconditions.checkNotNull(value, "Expecting values set to a once-settable atomic reference to be nonnull");
+            if (!delegate.compareAndSet(null, value)) {
+                throw new SafeIllegalStateException("Value already set");
+            }
+        }
+    }
+}u}(jc (be670ac429d852d3616d81f322aac96b14c7e53cj\d katlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtilsTest.javaj^d addedjVd KRjWd K j`d KRjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,82 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.Mockito.when;
+
+import java.security.SecureRandom;
+import java.util.Map;
+import java.util.Optional;
+import one.util.streamex.EntryStream;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class BankBalanceUtilsTest {
+
+    private static final Map<Integer, Optional<Integer>> VALID_BALANCES = Map.of(0, Optional.of(1), 1, Optional.of(1));
+
+    @Mock
+    private SecureRandom random;
+
+    @Test
+    public void validateOrGenerateBalancesReturnsEmptyWhenOnlyOneAccountMissing() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(Map.of(0, Optional.of(1), 1, Optional.empty()), 2, 1))
+                .isEmpty();
+    }
+
+    @Test
+    public void validateOrGenerateBalancesGeneratesWhenAllEmpty() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(Map.of(0, Optional.empty(), 1, Optional.empty()), 2, 1))
+                .contains(Map.of(0, 1, 1, 1));
+    }
+
+    @Test
+    public void validateOrGenerateBalancesEmptyWhenSumOfBalancesDoNotMatchTotal() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(VALID_BALANCES, 2, 3))
+                .isEmpty();
+    }
+
+    @Test
+    public void validateOrGenerateBalancesReturnsBalancesWhenTotalsMatch() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(VALID_BALANCES, 2, 1))
+                .contains(
+                        EntryStream.of(VALID_BALANCES).mapValues(Optional::get).toMap());
+    }
+
+    @Test
+    public void performTransfersReturnsBalancesWithCorrectSum() {
+        when(random.nextInt(anyInt())).thenReturn(0, 1);
+        Map<Integer, Integer> balances = Map.of(0, 1, 1, 1);
+        Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
+        assertThat(newBalances).isEqualTo(Map.of(0, 0, 1, 2));
+        assertThat(newBalances.values().stream().mapToInt(Integer::intValue).sum())
+                .isEqualTo(2);
+    }
+
+    @Test
+    public void performsTransfersOnlyIfValueWouldNotBeBelowZero() {
+        when(random.nextInt(anyInt())).thenReturn(0, 1);
+        Map<Integer, Integer> balances = Map.of(0, 0, 1, 2);
+        Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
+        assertThat(newBalances).isEqualTo(balances);
+    }
+}u}(jc (fc68dc8666083ad7dff19f7cab2825390f18a38aj\d oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowsTest.javaj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,129 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.atlasdb.workload.workflow.ImmutableTableConfiguration;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.Test;
+
+public final class BankBalanceWorkflowsTest {
+    private static final String TABLE_NAME = "bank.bank";
+    private static final BankBalanceWorkflowConfiguration CONFIGURATION =
+            ImmutableBankBalanceWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SNAPSHOT)
+                            .build())
+                    .iterationCount(1)
+                    .build();
+
+    private final AtomicBoolean skipRunning = new AtomicBoolean();
+
+    private final InteractiveTransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SNAPSHOT)));
+
+    private final Workflow workflow = BankBalanceWorkflows.create(
+            memoryStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)),
+            skipRunning);
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore())
+                .as("should return a read only transaction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void bankWorkflowContainsInitialReadsForBalances() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.numberOfAccounts())
+                .boxed()
+                .map(index -> WitnessedReadTransactionAction.of(
+                        TABLE_NAME, BankBalanceWorkflows.getCellForAccount(index), Optional.empty()))
+                .collect(Collectors.toList());
+        assertThat(actions).containsAll(initialReadActions);
+    }
+
+    @Test
+    public void bankWorkflowContainsInitialWritesForBalances() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WorkloadCell> actualWrittenCells = actions.stream()
+                .filter(WitnessedWriteTransactionAction.class::isInstance)
+                .map(WitnessedWriteTransactionAction.class::cast)
+                .map(WitnessedWriteTransactionAction::cell)
+                .collect(Collectors.toList());
+
+        List<WorkloadCell> expectedWrittenCells = IntStream.range(0, CONFIGURATION.numberOfAccounts())
+                .boxed()
+                .map(BankBalanceWorkflows::getCellForAccount)
+                .collect(Collectors.toList());
+
+        assertThat(actualWrittenCells).containsAll(expectedWrittenCells);
+    }
+
+    @Test
+    public void bankWorkflowSetsSkipRunningToTrueWhenInvalidBalanceSet() {
+        assertThat(skipRunning).isFalse();
+        memoryStore.readWrite(txn -> txn.write(TABLE_NAME, BankBalanceWorkflows.getCellForAccount(0), 1));
+        workflow.run();
+        assertThat(skipRunning).isTrue();
+    }
+
+    @Test
+    public void bankWorkflowDoesNotWitnessTransactionWhenSkipRunningSetToTrue() {
+        skipRunning.set(true);
+        assertThat(workflow.run().history()).isEmpty();
+    }
+}u}(jc (0a67965f248dc6c77872217a9f2d26da88537b99j\d build.gradlej^d modifiedjVd KjWd Kj`d Kjad ^https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/build.gradlejcd ]https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/build.gradlejed phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xw  @@ -17,7 +17,7 @@ buildscript {
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.32.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
         classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'u}(jc (9bdb41d8ffed33be231b3497c550f32137ae4e87j\d  changelog/0.843.0/pr-6540.v2.ymlj^d addedjVd KjWd K j`d Kjad vhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.843.0%2Fpr-6540.v2.ymljcd uhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.843.0%2Fpr-6540.v2.ymljed https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.843.0%2Fpr-6540.v2.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[CBT] Run build with 2xlarge'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6540u}(jc (7704c4f40f9407a6ec34cfd4976c31f5757d7911j\d  changelog/0.844.0/pr-6541.v2.ymlj^d addedjVd KjWd K j`d Kjad vhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.844.0%2Fpr-6541.v2.ymljcd uhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.844.0%2Fpr-6541.v2.ymljed https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.844.0%2Fpr-6541.v2.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[CBT] Retry flaky tests'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6541u}(jc (8c7080dd5d4974fb88000981969ccef6b2528af2j\d  changelog/0.844.0/pr-6548.v2.ymlj^d addedjVd KjWd K j`d Kjad vhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.844.0%2Fpr-6548.v2.ymljcd uhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.844.0%2Fpr-6548.v2.ymljed https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.844.0%2Fpr-6548.v2.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[CBT] Reorganize test job parallelism'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6548u}(jc (b4f0f9cfa1631ef560d32a317b1d9e42a3cac71fj\d  changelog/0.849.0/pr-6562.v2.ymlj^d addedjVd KjWd K j`d Kjad vhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.849.0%2Fpr-6562.v2.ymljcd uhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.849.0%2Fpr-6562.v2.ymljed https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.849.0%2Fpr-6562.v2.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Avoid boxing for Cassandra known port checks
+  links:
+  - https://github.com/palantir/atlasdb/pull/6562u}(jc (217d9399bdb068283f3ed607c705739151adc8eaj\d  changelog/0.850.0/pr-6563.v2.ymlj^d addedjVd KjWd K j`d Kjad vhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.850.0%2Fpr-6563.v2.ymljcd uhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.850.0%2Fpr-6563.v2.ymljed https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.850.0%2Fpr-6563.v2.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -0,0 +1,6 @@
+type: fix
+fix:
+  description: Fixed a serialization issue for users of `LockServerOptions` and `LockState`
+    endpoints in the legacy lock service.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6563u}(jc (23134b9e8533848c590920b5b3a3ff99b19db234j\d  changelog/0.851.0/pr-6551.v2.ymlj^d addedjVd KjWd K j`d Kjad vhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.851.0%2Fpr-6551.v2.ymljcd uhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.851.0%2Fpr-6551.v2.ymljed https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.851.0%2Fpr-6551.v2.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Display as safe arg the failureCount in the "Could not lock successfully"
+  links:
+  - https://github.com/palantir/atlasdb/pull/6551u}(jc (c79102e643ab92d38512a931ed6f634fa8ad143fj\d  changelog/0.854.0/pr-6568.v2.ymlj^d addedjVd KjWd K j`d Kjad vhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.854.0%2Fpr-6568.v2.ymljcd uhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.854.0%2Fpr-6568.v2.ymljed https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.854.0%2Fpr-6568.v2.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: Revert "[CBT] Split test into multiple workflows (#6555)"
+  links:
+  - https://github.com/palantir/atlasdb/pull/6568u}(jc (8dec3b76640ffbcc9b9795bc2408b874d1f25be9j\d  changelog/0.855.0/pr-6569.v2.ymlj^d addedjVd KjWd K j`d Kjad vhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.855.0%2Fpr-6569.v2.ymljcd uhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.855.0%2Fpr-6569.v2.ymljed https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.855.0%2Fpr-6569.v2.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[CBT] Split test into multiple workflows'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6569u}(jc (91d691ab16f5b7a0ca12fc7a603e315687a4ed27j\d  changelog/0.857.0/pr-6564.v2.ymlj^d addedjVd KjWd K j`d Kjad vhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.857.0%2Fpr-6564.v2.ymljcd uhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.857.0%2Fpr-6564.v2.ymljed https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.857.0%2Fpr-6564.v2.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Avoid Stream overhead in getRandomHostByActiveConnections
+  links:
+  - https://github.com/palantir/atlasdb/pull/6564u}(jc (cc8b41318d17db1f892fc5ec26f90d1af877c1b2j\d  changelog/0.859.0/pr-6571.v2.ymlj^d addedjVd KjWd K j`d Kjad vhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.859.0%2Fpr-6571.v2.ymljcd uhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.859.0%2Fpr-6571.v2.ymljed https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.859.0%2Fpr-6571.v2.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Generate StreamStore implementations with presized maps/sets
+  links:
+  - https://github.com/palantir/atlasdb/pull/6571u}(jc (aceed5bc2b1874600ed6c3412972b87ad8b63a51j\d  changelog/0.860.0/pr-6410.v2.ymlj^d addedjVd KjWd K j`d Kjad vhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.860.0%2Fpr-6410.v2.ymljcd uhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.860.0%2Fpr-6410.v2.ymljed https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.860.0%2Fpr-6410.v2.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Use Caffeine instead of Guava caches
+  links:
+  - https://github.com/palantir/atlasdb/pull/6410u}(jc (16fb8eee169fd963709ea4a7cfbd511308736f08j\d  changelog/0.862.0/pr-6506.v2.ymlj^d addedjVd KjWd K j`d Kjad vhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.862.0%2Fpr-6506.v2.ymljcd uhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.862.0%2Fpr-6506.v2.ymljed https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.862.0%2Fpr-6506.v2.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize TimestampMapping::leader to avoid stream overhead
+  links:
+  - https://github.com/palantir/atlasdb/pull/6506u}(jc (76e1a7993fd1a88f86737b4d470e05d637bc0990j\d  changelog/0.862.0/pr-6554.v2.ymlj^d addedjVd KjWd K j`d Kjad vhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.862.0%2Fpr-6554.v2.ymljcd uhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.862.0%2Fpr-6554.v2.ymljed https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.862.0%2Fpr-6554.v2.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Adds metric for tracking the size of the cassandra client pool
+  links:
+  - https://github.com/palantir/atlasdb/pull/6554u}(jc (accf41e869d53eedaf4f54d948e2b5260617a8cbj\d  changelog/0.863.0/pr-6468.v2.ymlj^d addedjVd KjWd K j`d Kjad vhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.863.0%2Fpr-6468.v2.ymljcd uhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.863.0%2Fpr-6468.v2.ymljed https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.863.0%2Fpr-6468.v2.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Avoid string case conversion when parsing token ring
+  links:
+  - https://github.com/palantir/atlasdb/pull/6468
+u}(jc (be28e0890da21d6d8b36c3d7f6d13422933da314j\d  changelog/0.863.0/pr-6584.v2.ymlj^d addedjVd KjWd K j`d Kjad vhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.863.0%2Fpr-6584.v2.ymljcd uhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.863.0%2Fpr-6584.v2.ymljed https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.863.0%2Fpr-6584.v2.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[CBT] Split up container 3 and add more max heap to timelock integTest'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6584u}(jc (b92e0f6636b00a68d6b900daa1da10ff5cbb9a1ej\d  changelog/0.865.0/pr-6595.v2.ymlj^d addedjVd KjWd K j`d Kjad vhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.865.0%2Fpr-6595.v2.ymljcd uhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.865.0%2Fpr-6595.v2.ymljed https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.865.0%2Fpr-6595.v2.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -0,0 +1,5 @@
+type: feature
+feature:
+  description: '[TEX] Report transaction level metrics'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6595u}(jc (24da7696d056cef662a3a0936f5eaef73ca2f9f2j\d  changelog/0.866.0/pr-6581.v2.ymlj^d addedjVd KjWd K j`d Kjad vhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.866.0%2Fpr-6581.v2.ymljcd uhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.866.0%2Fpr-6581.v2.ymljed https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.866.0%2Fpr-6581.v2.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Add leading/nested loop hints on Oracle delete overflow related SQL
+    to improve perf
+  links:
+  - https://github.com/palantir/atlasdb/pull/6581u}(jc (088ecb3494e3094a7ce37361e9ec8cf8f2816acaj\d  changelog/0.868.0/pr-6598.v2.ymlj^d addedjVd KjWd K j`d Kjad vhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.868.0%2Fpr-6598.v2.ymljcd uhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.868.0%2Fpr-6598.v2.ymljed https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.868.0%2Fpr-6598.v2.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Add metric for number of commit lock acquisition failures
+  links:
+  - https://github.com/palantir/atlasdb/pull/6598u}(jc (351dc558cfb12f3027ca880f55c00742ee516cbdj\d  changelog/0.870.0/pr-6613.v2.ymlj^d addedjVd KjWd K j`d Kjad vhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.870.0%2Fpr-6613.v2.ymljcd uhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.870.0%2Fpr-6613.v2.ymljed https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.870.0%2Fpr-6613.v2.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: There now exists an Antithesis workflow that exercises read-write transactions
+    that only do reads.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6613u}(jc (ffd47f177c27dd39d87fb4cd84339ad7d1911c1cj\d  changelog/0.874.0/pr-6625.v2.ymlj^d addedjVd KjWd K j`d Kjad vhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.874.0%2Fpr-6625.v2.ymljcd uhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/changelog%2F0.874.0%2Fpr-6625.v2.ymljed https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.874.0%2Fpr-6625.v2.yml?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LockV1] Add async thread info snapshotting (disabled by default)'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6625u}(jc (708a23de65fd9745cd8136bb140888a0ea0fa2c0j\d commons-db/build.gradlej^d modifiedjVd KjWd K j`d Kjad khttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/commons-db%2Fbuild.gradlejcd jhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/commons-db%2Fbuild.gradlejed }https://api.github.com/repos/palantir/atlasdb/contents/commons-db%2Fbuild.gradle?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd XO  @@ -17,6 +17,7 @@ dependencies {
   implementation 'com.zaxxer:HikariCP'
   implementation 'joda-time:joda-time'
 
+  implementation 'com.github.ben-manes.caffeine:caffeine'
   implementation 'com.google.guava:guava'
   implementation 'com.palantir.safe-logging:preconditions'
   implementation 'com.palantir.safe-logging:safe-logging'u}(jc (92790ade1c26cd57450221409fceba6e35172b2bj\d Ncommons-db/src/main/java/com/palantir/nexus/db/pool/RetriableTransactions.javaj^d modifiedjVd KjWd K7j`d KKjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/commons-db%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FRetriableTransactions.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/commons-db%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FRetriableTransactions.javajed https://api.github.com/repos/palantir/atlasdb/contents/commons-db%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FRetriableTransactions.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X   @@ -15,12 +15,12 @@
  */
 package com.palantir.nexus.db.pool;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.sql.Connection;
@@ -81,15 +81,15 @@ private TransactionResult(TransactionStatus status, @Nullable T resultValue, Opt
         }
 
         public static <T> TransactionResult<T> success(T resultValue) {
-            return new TransactionResult<T>(TransactionStatus.SUCCESSFUL, resultValue, Optional.<Throwable>empty());
+            return new TransactionResult<>(TransactionStatus.SUCCESSFUL, resultValue, Optional.empty());
         }
 
         public static <T> TransactionResult<T> failure(Throwable error) {
-            return new TransactionResult<T>(TransactionStatus.FAILED, null /* result value */, Optional.of(error));
+            return new TransactionResult<>(TransactionStatus.FAILED, null /* result value */, Optional.of(error));
         }
 
         public static <T> TransactionResult<T> unknown(Throwable error) {
-            return new TransactionResult<T>(TransactionStatus.UNKNOWN, null /* result value */, Optional.of(error));
+            return new TransactionResult<>(TransactionStatus.UNKNOWN, null /* result value */, Optional.of(error));
         }
 
         public TransactionStatus getStatus() {
@@ -130,7 +130,7 @@ public static <T> TransactionResult<T> run(final ConnectionManager cm, final Ret
         }
 
         class LexicalHelper {
-            long startTimeMs = System.currentTimeMillis();
+            final long startTimeMs = System.currentTimeMillis();
             boolean pending = false;
             UUID id = null;
             T result = null;
@@ -205,8 +205,7 @@ public TransactionResult<T> run() {
             private void attemptTx() throws SQLException {
                 boolean ret = false;
                 try {
-                    Connection c = cm.getConnection();
-                    try {
+                    try (Connection c = cm.getConnection()) {
                         // Crash anywhere in here means no commit attempted and we stay in non-pending
                         c.setAutoCommit(false);
                         T newResult = tx.run(c);
@@ -224,10 +223,6 @@ private void attemptTx() throws SQLException {
 
                         cleanTxLog(c, id);
                         c.commit();
-
-                        return;
-                    } finally {
-                        c.close();
                     }
                 } catch (SQLException e) {
                     if (ret) {
@@ -241,15 +236,12 @@ private void attemptTx() throws SQLException {
             private boolean attemptVerify() throws SQLException {
                 boolean ret = false;
                 try {
-                    Connection c = cm.getConnection();
-                    try {
+                    try (Connection c = cm.getConnection()) {
                         ret = checkTxLog(c, id);
                         if (ret) {
                             cleanTxLog(c, id);
                         }
                         return ret;
-                    } finally {
-                        c.close();
                     }
                 } catch (SQLException e) {
                     if (ret) {
@@ -273,22 +265,16 @@ private void squelch(SQLException e) {
         return new LexicalHelper().run();
     }
 
-    private static final LoadingCache<ConnectionManager, AtomicBoolean> createdTxTables = CacheBuilder.newBuilder()
-            .weakKeys()
-            .build(new CacheLoader<ConnectionManager, AtomicBoolean>() {
-                @Override
-                public AtomicBoolean load(ConnectionManager cm) {
-                    return new AtomicBoolean(false);
-                }
-            });
+    private static final LoadingCache<ConnectionManager, AtomicBoolean> createdTxTables =
+            Caffeine.newBuilder().weakKeys().build(cm -> new AtomicBoolean(false));
 
     private static void createTxTable(ConnectionManager cm) throws SQLException {
-        AtomicBoolean createdTxTable = createdTxTables.getUnchecked(cm);
+        AtomicBoolean createdTxTable = createdTxTables.get(cm);
         if (createdTxTable.get()) {
             return;
         }
 
-        String varcharType = null;
+        String varcharType;
         switch (cm.getDbType()) {
             case ORACLE:
                 varcharType = "VARCHAR2";
@@ -300,23 +286,17 @@ private static void createTxTable(ConnectionManager cm) throws SQLException {
                 break;
 
             default:
-                throw new IllegalStateException();
-        }
-        if (varcharType == null) {
-            throw new IllegalStateException();
+                throw new SafeIllegalStateException("Unknown DB type", SafeArg.of("dbType", cm.getDbType()));
         }
 
         // I'd love to CREATE TABLE ... IF NOT EXISTS but Ye Olde Postgres (TM)
         // does not like it so we do something ugly.
         try {
-            Connection c = cm.getConnection();
-            try {
+            try (Connection c = cm.getConnection()) {
                 // Attempt to add to the table, but don't actually commit it.
                 c.setAutoCommit(false);
                 addTxLog(c, UUID.randomUUID());
                 c.rollback();
-            } finally {
-                c.close();
             }
             // Great, that worked, fallthrough to below but don't commit.
         } catch (SQLException e) {
@@ -327,13 +307,10 @@ private static void createTxTable(ConnectionManager cm) throws SQLException {
                     "To check whether the table exists we tried to use it. This caused an exception indicating that it"
                             + " did not exist. The exception was: ",
                     e);
-            Connection c = cm.getConnection();
-            try {
+            try (Connection c = cm.getConnection()) {
                 c.createStatement()
                         .execute("CREATE TABLE " + TABLE_NAME + " (id " + varcharType
                                 + "(36) PRIMARY KEY, created TIMESTAMP DEFAULT CURRENT_TIMESTAMP)");
-            } finally {
-                c.close();
             }
             // Good enough, fallthrough to below.
         }
@@ -343,37 +320,25 @@ private static void createTxTable(ConnectionManager cm) throws SQLException {
     }
 
     private static void addTxLog(Connection c, UUID id) throws SQLException {
-        PreparedStatement ps = c.prepareStatement("INSERT INTO " + TABLE_NAME + " (id) VALUES (?)");
-        try {
+        try (PreparedStatement ps = c.prepareStatement("INSERT INTO " + TABLE_NAME + " (id) VALUES (?)")) {
             ps.setString(1, id.toString());
             ps.executeUpdate();
-        } finally {
-            ps.close();
         }
     }
 
     private static boolean checkTxLog(Connection c, UUID id) throws SQLException {
-        PreparedStatement ps = c.prepareStatement("SELECT 1 FROM " + TABLE_NAME + " WHERE id = ?");
-        try {
+        try (PreparedStatement ps = c.prepareStatement("SELECT 1 FROM " + TABLE_NAME + " WHERE id = ?")) {
             ps.setString(1, id.toString());
-            ResultSet rs = ps.executeQuery();
-            try {
+            try (ResultSet rs = ps.executeQuery()) {
                 return rs.next();
-            } finally {
-                rs.close();
             }
-        } finally {
-            ps.close();
         }
     }
 
     private static void cleanTxLog(Connection c, UUID id) throws SQLException {
-        PreparedStatement ps = c.prepareStatement("DELETE FROM " + TABLE_NAME + " WHERE id = ?");
-        try {
+        try (PreparedStatement ps = c.prepareStatement("DELETE FROM " + TABLE_NAME + " WHERE id = ?")) {
             ps.setString(1, id.toString());
             ps.executeUpdate();
-        } finally {
-            ps.close();
         }
     }
 u     }(jc (be35f6935babe6fd6f3078a75090f80835e5f244j\d Ocommons-executors/src/main/java/com/palantir/common/concurrent/PTExecutors.javaj^d modifiedjVd KjWd K	j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutors.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutors.javajed https://api.github.com/repos/palantir/atlasdb/contents/commons-executors%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FPTExecutors.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -295,10 +295,12 @@ public static ThreadPoolExecutor newFixedThreadPool(int numThreads, ThreadFactor
      * @throws IllegalArgumentException if <tt>numThreads &lt;= 0</tt>
      */
     public static ExecutorService newFixedThreadPool(int numThreads, String name) {
-        return MetricRegistries.instrument(
-                SharedTaggedMetricRegistries.getSingleton(),
-                PTExecutors.wrap(name, getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())),
-                name);
+        return MetricRegistries.executor()
+                .registry(SharedTaggedMetricRegistries.getSingleton())
+                .name(name)
+                .executor(PTExecutors.wrap(
+                        name, getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())))
+                .build();
     }
 
     /**
@@ -316,11 +318,12 @@ public static ExecutorService newFixedThreadPool(int numThreads, String name) {
      * @throws IllegalArgumentException if <tt>numThreads &lt;= 0</tt>
      */
     public static ExecutorService newFixedThreadPoolWithoutSpan(int numThreads, String name) {
-        return MetricRegistries.instrument(
-                SharedTaggedMetricRegistries.getSingleton(),
-                PTExecutors.wrapWithoutSpan(
-                        getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())),
-                name);
+        return MetricRegistries.executor()
+                .registry(SharedTaggedMetricRegistries.getSingleton())
+                .name(name)
+                .executor(PTExecutors.wrapWithoutSpan(
+                        getViewExecutor(name, numThreads, Integer.MAX_VALUE, SHARED_EXECUTOR.get())))
+                .build();
     }
 
     public static ExecutorService getViewExecutor(u}(jc (c2fb36880db07b47881646a3cd81e9f271638446j\d vexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserPhotosStreamHashAidxTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamHashAidxTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamHashAidxTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamHashAidxTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "iZ+WrjLjlfsRJ+4PXOxllA==";
+    static String __CLASS_HASH = "vICtXgN//uNG/gj7cFWrOQ==";
 }u}(jc (e49d24081d562e00a550119b818f297048d50661j\d qexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserPhotosStreamIdxTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamIdxTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamIdxTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamIdxTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -716,6 +717,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -739,5 +741,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "/5EqpAIHVfvrgAAL314Q6g==";
+    static String __CLASS_HASH = "evlQwEFn9nzK+VsNjgPIJA==";
 }u}(jc (08b73ce8b3b9ac1429d38284f07d08d8596984cej\d vexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserPhotosStreamMetadataTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamMetadataTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamMetadataTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamMetadataTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -683,6 +684,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -706,5 +708,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "tIyb2ulllUpil2D9Zl4zpA==";
+    static String __CLASS_HASH = "7ViZjlUfW+7BKGwGDvuIww==";
 }u}(jc (72052cf73ef5aa5b32eb5b5b1f6d58c0b9122513j\d nexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserPhotosStreamStore.javaj^d modifiedjVd KjWd Kj`d K	jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamStore.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamStore.javajed https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamStore.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X
  @@ -168,7 +168,8 @@ protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetada
         }
         putHashIndexTask(t, rowsToStoredMetadata);
 
-        Map<UserPhotosStreamMetadataTable.UserPhotosStreamMetadataRow, StreamMetadata> rowsToMetadata = new HashMap<>();
+        Map<UserPhotosStreamMetadataTable.UserPhotosStreamMetadataRow, StreamMetadata> rowsToMetadata =
+                Maps.newHashMapWithExpectedSize(streamIdsToMetadata.size());
         rowsToMetadata.putAll(rowsToStoredMetadata);
         rowsToMetadata.putAll(rowsToUnstoredMetadata);
         mdTable.putMetadata(rowsToMetadata);
@@ -219,7 +220,7 @@ protected Map<Long, StreamMetadata> getMetadata(Transaction t, Set<Long> streamI
         }
         UserPhotosStreamMetadataTable table = tables.getUserPhotosStreamMetadataTable(t);
         Map<UserPhotosStreamMetadataTable.UserPhotosStreamMetadataRow, StreamMetadata> metadatas = table.getMetadatas(getMetadataRowsForIds(streamIds));
-        Map<Long, StreamMetadata> ret = new HashMap<>();
+        Map<Long, StreamMetadata> ret = Maps.newHashMapWithExpectedSize(metadatas.size());
         for (Map.Entry<UserPhotosStreamMetadataTable.UserPhotosStreamMetadataRow, StreamMetadata> e : metadatas.entrySet()) {
             ret.put(e.getKey().getId(), e.getValue());
         }
@@ -235,7 +236,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
         Set<UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow> rows = getHashIndexRowsForHashes(hashes);
 
         Multimap<UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow, UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxColumnValue> m = idx.getRowsMultimap(rows);
-        Map<Long, Sha256Hash> hashForStreams = new HashMap<>();
+        Map<Long, Sha256Hash> hashForStreams = Maps.newHashMapWithExpectedSize(m.size());
         for (UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow r : m.keySet()) {
             for (UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxColumnValue v : m.get(r)) {
                 Long streamId = v.getColumnName().getStreamId();
@@ -261,7 +262,7 @@ public Map<Sha256Hash, Long> lookupStreamIdsByHash(Transaction t, final Set<Sha2
     }
 
     private Set<UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow> getHashIndexRowsForHashes(final Set<Sha256Hash> hashes) {
-        Set<UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow> rows = new HashSet<>();
+        Set<UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow> rows = Sets.newHashSetWithExpectedSize(hashes.size());
         for (Sha256Hash h : hashes) {
             rows.add(UserPhotosStreamHashAidxTable.UserPhotosStreamHashAidxRow.of(h));
         }u}(jc (83cd7d93a31541131e10d013afd149bb96a8ba96j\d sexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserPhotosStreamValueTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamValueTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamValueTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserPhotosStreamValueTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -670,6 +671,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -693,5 +695,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "gyLvhEYvzXXshQvSEEOq3Q==";
+    static String __CLASS_HASH = "vnCpFwiY6zZC+s1UYLuLCw==";
 }u}(jc (0966bf8d91605107a3f820775bb4e4e284a9efb1j\d iexamples/profile-client/src/main/java/com/palantir/example/profile/schema/generated/UserProfileTable.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserProfileTable.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserProfileTable.javajed https://api.github.com/repos/palantir/atlasdb/contents/examples%2Fprofile-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexample%2Fprofile%2Fschema%2Fgenerated%2FUserProfileTable.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Stream;
 
+import javax.annotation.Nullable;
 import javax.annotation.processing.Generated;
 
 import com.google.common.base.Function;
@@ -3317,6 +3318,7 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link Multimaps}
      * {@link NamedColumnValue}
      * {@link Namespace}
+     * {@link Nullable}
      * {@link Objects}
      * {@link Optional}
      * {@link Persistable}
@@ -3340,5 +3342,5 @@ public List<String> findConstraintFailuresNoRead(Map<Cell, byte[]> writes,
      * {@link UnsignedBytes}
      * {@link ValueType}
      */
-    static String __CLASS_HASH = "3Edl1drru2bGGW0fAmHL/g==";
+    static String __CLASS_HASH = "FUR78HF+b7t9uXpBh7oYCQ==";
 }u}(jc (85652670ee979a2233211267d7b5fb3f877648baj\d gradle/docker.gradlej^d modifiedjVd KjWd K j`d Kjad hhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/gradle%2Fdocker.gradlejcd ghttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/gradle%2Fdocker.gradlejed zhttps://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fdocker.gradle?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X
  @@ -5,6 +5,7 @@ def imageVersion = "${project.version.toString().replaceAll('\\+', '-')}"
 docker {
     name "palantirtechnologies/${project.name}:${imageVersion}"
     tags 'latest', 'snapshot'
+    labels(['version': imageVersion])
     files distTar.outputs
 }
 u}(jc (2caa47ac951f1248b2272f5652f42a85e858f016j\d gradle/shared.gradlej^d modifiedjVd KjWd K j`d Kjad hhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/gradle%2Fshared.gradlejcd ghttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/gradle%2Fshared.gradlejed zhttps://api.github.com/repos/palantir/atlasdb/contents/gradle%2Fshared.gradle?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd @@ -88,6 +88,7 @@ afterEvaluate {
 
 tasks.withType(Test) {
     enableAssertions = true
+    failFast = true
 }
 
 ext.atlasdb_shaded = 'com.palantir.atlasdb.shaded.'u}(jc (ca651f0763ebdabbad8b6ad4375c30af9d4dc3a6j\d ]leader-election-impl/src/main/java/com/palantir/paxos/CoalescingPaxosLatestRoundVerifier.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FCoalescingPaxosLatestRoundVerifier.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FCoalescingPaxosLatestRoundVerifier.javajed https://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FCoalescingPaxosLatestRoundVerifier.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X!  @@ -15,9 +15,8 @@
  */
 package com.palantir.paxos;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.palantir.common.concurrent.CoalescingSupplier;
 
@@ -27,29 +26,23 @@
  */
 public class CoalescingPaxosLatestRoundVerifier implements PaxosLatestRoundVerifier {
 
-    private final PaxosLatestRoundVerifier delegate;
     // we only care about keeping the verifier for the latest round; the cache is just here to handle concurrency
     // around creating a new verifier for a newly requested round
-    private final LoadingCache<Long, CoalescingSupplier<PaxosQuorumStatus>> verifiersByRound = CacheBuilder.newBuilder()
-            .maximumSize(1)
-            .build(new CacheLoader<Long, CoalescingSupplier<PaxosQuorumStatus>>() {
-                @Override
-                public CoalescingSupplier<PaxosQuorumStatus> load(Long key) throws Exception {
-                    return new CoalescingSupplier<>(() -> delegate.isLatestRound(key));
-                }
-            });
+    private final LoadingCache<Long, CoalescingSupplier<PaxosQuorumStatus>> verifiersByRound;
 
     public CoalescingPaxosLatestRoundVerifier(PaxosLatestRoundVerifier delegate) {
-        this.delegate = delegate;
+        this.verifiersByRound = Caffeine.newBuilder()
+                .maximumSize(1)
+                .build(key -> new CoalescingSupplier<>(() -> delegate.isLatestRound(key)));
     }
 
     @Override
     public ListenableFuture<PaxosQuorumStatus> isLatestRoundAsync(long round) {
-        return verifiersByRound.getUnchecked(round).getAsync();
+        return verifiersByRound.get(round).getAsync();
     }
 
     @Override
     public PaxosQuorumStatus isLatestRound(long round) {
-        return verifiersByRound.getUnchecked(round).get();
+        return verifiersByRound.get(round).get();
     }
 }u}(jc (933965abbab2686a96a62a6ac504123076081ec8j\d Ilock-api-objects/src/main/java/com/palantir/lock/LockClientAndThread.javaj^d addedjVd K$jWd K j`d K$jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.javajed https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockClientAndThread.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface LockClientAndThread {
+    LockClientAndThread UNKNOWN = LockClientAndThread.of(LockClient.ANONYMOUS, "unknown-thread");
+
+    LockClient client();
+
+    String thread();
+
+    static ImmutableLockClientAndThread.Builder builder() {
+        return ImmutableLockClientAndThread.builder();
+    }
+
+    static LockClientAndThread of(LockClient client, String requestingThread) {
+        return builder().client(client).thread(requestingThread).build();
+    }
+}u}(jc (c201a75037718ee45a6d24add55ec4992f91ef88j\d lock-api/build.gradlej^d modifiedjVd KjWd K j`d Kjad ihttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-api%2Fbuild.gradlejcd hhttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-api%2Fbuild.gradlejed {https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fbuild.gradle?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -19,6 +19,7 @@ dependencies {
 
     implementation project(":atlasdb-autobatch")
     implementation project(":atlasdb-commons")
+    implementation project(":atlasdb-buggify")
     implementation 'jakarta.ws.rs:jakarta.ws.rs-api'
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-databind'
@@ -45,6 +46,7 @@ dependencies {
     testImplementation 'com.palantir.common:streams'
     testImplementation 'io.dropwizard.metrics:metrics-core'
     testImplementation 'org.slf4j:slf4j-api'
+    testImplementation project(':lock-api-objects')
     testImplementation project(':lock-conjure-api:lock-conjure-api-objects')
     testImplementation project(':timelock-api:timelock-api-objects')
 u}(jc (c0732dd117e0d492f18b686086a002759beb1281j\d Jlock-api/src/main/java/com/palantir/lock/DebugThreadInfoConfiguration.javaj^d addedjVd K!jWd K j`d K!jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javajed https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface DebugThreadInfoConfiguration {
+
+    @Value.Default
+    default boolean recordThreadInfo() {
+        return false;
+    }
+
+    @Value.Default
+    default long threadInfoSnapshotIntervalMillis() {
+        return 5000L;
+    }
+}u}(jc (da50ee7393b93c8d71153140ffe86ba6c40366fcj\d ?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javajed https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X	  @@ -16,6 +16,7 @@
 package com.palantir.lock;
 
 import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.google.common.base.MoreObjects;
@@ -48,6 +49,7 @@ public class LockServerOptions implements Serializable {
      * client accessing it.
      */
     @Value.Default
+    @JsonProperty("isStandaloneServer")
     public boolean isStandaloneServer() {
         return true;
     }
@@ -125,6 +127,15 @@ public long slowLogTriggerMillis() {
         return 10000L;
     }
 
+    /**
+     * Runtime configuration relating to thread info recording (which lock is held by which client-thread).
+     */
+    @JsonIgnore
+    @Value.Default
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    }
+
     @Override
     public boolean equals(@Nullable Object obj) {
         if (this == obj) {
@@ -141,7 +152,8 @@ && getRandomBitCount() == other.getRandomBitCount()
                 && Objects.equals(getMaxAllowedClockDrift(), other.getMaxAllowedClockDrift())
                 && Objects.equals(getMaxAllowedBlockingDuration(), other.getMaxAllowedBlockingDuration())
                 && Objects.equals(getMaxNormalLockAge(), other.getMaxNormalLockAge())
-                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout());
+                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout())
+                && Objects.equals(threadInfoConfiguration(), other.threadInfoConfiguration());
     }
 
     @Override
@@ -154,7 +166,8 @@ public int hashCode() {
                 getMaxNormalLockAge(),
                 getRandomBitCount(),
                 getStuckTransactionTimeout(),
-                slowLogTriggerMillis());
+                slowLogTriggerMillis(),
+                threadInfoConfiguration());
     }
 
     @Override
@@ -168,6 +181,7 @@ public String toString() {
                 .add("randomBitCount", getRandomBitCount())
                 .add("stuckTransactionTimeout", getStuckTransactionTimeout())
                 .add("slowLogTriggerMillis", slowLogTriggerMillis())
+                .add("threadInfoConfiguration", threadInfoConfiguration())
                 .toString();
     }
 u}(jc (7cd1c34cf31d800e3d13f665c2f83a2f2153b95ej\d 7lock-api/src/main/java/com/palantir/lock/LockState.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.javajed https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd XD  @@ -16,6 +16,7 @@
 
 package com.palantir.lock;
 
+import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import java.util.List;
@@ -26,8 +27,10 @@
 @JsonSerialize(as = ImmutableLockState.class)
 @JsonDeserialize(as = ImmutableLockState.class)
 public interface LockState {
+    @JsonProperty("isWriteLocked")
     boolean isWriteLocked();
 
+    @JsonProperty("isFrozen")
     boolean isFrozen();
 
     List<LockClient> exactCurrentLockHolders();u}(jc (fd5b31c1b0e6208a7f9308a03fa062d1b4247527j\d Clock-api/src/main/java/com/palantir/lock/client/TimeLockClient.javaj^d modifiedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.javajed https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd XZ  @@ -62,6 +62,17 @@ public static TimeLockClient createDefault(TimelockService timelockService) {
                 timelockService, timestampService, createLockRefresher(timelockService), asyncUnlocker);
     }
 
+    public static TimeLockClient createDefault(TimelockService timelockService, long lockRefreshIntervalMillis) {
+        AsyncTimeLockUnlocker asyncUnlocker = AsyncTimeLockUnlocker.create(timelockService);
+        RequestBatchingTimestampService timestampService =
+                RequestBatchingTimestampService.create(new TimelockServiceErrorDecorator(timelockService));
+        return new TimeLockClient(
+                timelockService,
+                timestampService,
+                createLockRefresher(timelockService, lockRefreshIntervalMillis),
+                asyncUnlocker);
+    }
+
     public static TimeLockClient withSynchronousUnlocker(TimelockService timelockService) {
         CloseableTimestampService timestampService = new TimelockServiceErrorDecorator(timelockService);
         return new TimeLockClient(
@@ -206,6 +217,12 @@ private static LockRefresher<LockToken> createLockRefresher(TimelockService time
         return new LockRefresher<>(refreshExecutor, lockTokenRefresher, REFRESH_INTERVAL_MILLIS);
     }
 
+    private static LockRefresher<LockToken> createLockRefresher(
+            TimelockService timelockService, long lockRefreshIntervalMillis) {
+        LockLeaseRefresher<LockToken> lockTokenRefresher = timelockService::refreshLockLeases;
+        return new LockRefresher<>(refreshExecutor, lockTokenRefresher, lockRefreshIntervalMillis);
+    }
+
     private static ScheduledExecutorService createSingleThreadScheduledExecutor(String operation) {
         return PTExecutors.newSingleThreadScheduledExecutor(
                 new NamedThreadFactory(TimeLockClient.class.getSimpleName() + "-" + operation, true));u}(jc (f5eafd4efa22db15cffb486b29e1a8e16e9cfbc4j\d Nlock-api/src/main/java/com/palantir/lock/client/UnreliableTimeLockService.javaj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javajed https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xn  @@ -0,0 +1,147 @@
+/*
+ * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.palantir.lock.client;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.Sets;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
+import com.palantir.lock.v2.ClientLockingOptions;
+import com.palantir.lock.v2.LockImmutableTimestampResponse;
+import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.v2.LockResponse;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.v2.StartIdentifiedAtlasDbTransactionResponse;
+import com.palantir.lock.v2.TimelockService;
+import com.palantir.lock.v2.WaitForLocksRequest;
+import com.palantir.lock.v2.WaitForLocksResponse;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.timestamp.TimestampRange;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+
+/**
+ * A version of timelock service that has a chance to randomly lose locks during refresh or immediately after
+ * acquiring. This is useful for testing the behavior of clients when locks are lost.
+ */
+public final class UnreliableTimeLockService implements TimelockService {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(UnreliableTimeLockService.class);
+
+    private final TimelockService delegate;
+    private final BuggifyFactory buggify;
+
+    public static UnreliableTimeLockService create(TimelockService timelockService) {
+        return new UnreliableTimeLockService(timelockService, DefaultBuggifyFactory.INSTANCE);
+    }
+
+    @VisibleForTesting
+    UnreliableTimeLockService(TimelockService delegate, BuggifyFactory buggifyFactory) {
+        this.delegate = delegate;
+        this.buggify = buggifyFactory;
+    }
+
+    @Override
+    public boolean isInitialized() {
+        return delegate.isInitialized();
+    }
+
+    @Override
+    public long getFreshTimestamp() {
+        return delegate.getFreshTimestamp();
+    }
+
+    @Override
+    public long getCommitTimestamp(long startTs, LockToken commitLocksToken) {
+        return delegate.getCommitTimestamp(startTs, commitLocksToken);
+    }
+
+    @Override
+    public TimestampRange getFreshTimestamps(int numTimestampsRequested) {
+        return delegate.getFreshTimestamps(numTimestampsRequested);
+    }
+
+    @Override
+    public LockImmutableTimestampResponse lockImmutableTimestamp() {
+        return delegate.lockImmutableTimestamp();
+    }
+
+    @Override
+    public List<StartIdentifiedAtlasDbTransactionResponse> startIdentifiedAtlasDbTransactionBatch(int count) {
+        return delegate.startIdentifiedAtlasDbTransactionBatch(count);
+    }
+
+    @Override
+    public long getImmutableTimestamp() {
+        return delegate.getImmutableTimestamp();
+    }
+
+    @Override
+    public LockResponse lock(LockRequest request) {
+        LockResponse response = delegate.lock(request);
+        buggify.maybe(0.05).run(() -> {
+            log.info("BUGGIFY: Unlocking lock token {} after acquiring", SafeArg.of("token", response.getToken()));
+            delegate.unlock(Set.of(response.getToken()));
+        });
+        return response;
+    }
+
+    @Override
+    public LockResponse lock(LockRequest lockRequest, ClientLockingOptions options) {
+        LockResponse response = delegate.lock(lockRequest, options);
+        buggify.maybe(0.05).run(() -> {
+            log.info("BUGGIFY: Unlocking lock token {} after acquiring", SafeArg.of("token", response.getToken()));
+            delegate.unlock(Set.of(response.getToken()));
+        });
+        return response;
+    }
+
+    @Override
+    public WaitForLocksResponse waitForLocks(WaitForLocksRequest request) {
+        return delegate.waitForLocks(request);
+    }
+
+    @Override
+    public Set<LockToken> refreshLockLeases(Set<LockToken> tokens) {
+        Set<LockToken> tokensToRefresh = tokens.stream()
+                .filter(_token -> !buggify.maybe(0.01).asBoolean())
+                .collect(Collectors.toSet());
+        Set<LockToken> tokensToUnlock = Sets.difference(tokens, tokensToRefresh);
+        if (!tokensToUnlock.isEmpty()) {
+            log.info("BUGGIFY: Unlocking tokens on refresh: {}", SafeArg.of("tokens", tokensToUnlock));
+            delegate.unlock(tokensToUnlock);
+        }
+        return delegate.refreshLockLeases(tokensToRefresh);
+    }
+
+    @Override
+    public Set<LockToken> unlock(Set<LockToken> tokens) {
+        return delegate.unlock(tokens);
+    }
+
+    @Override
+    public void tryUnlock(Set<LockToken> tokens) {
+        delegate.tryUnlock(tokens);
+    }
+
+    @Override
+    public long currentTimeMillis() {
+        return delegate.currentTimeMillis();
+    }
+}u}(jc (1926ba4ded622aa9fbfde697ed803a0543ddf1b5j\d Clock-api/src/test/java/com/palantir/lock/LockServerOptionsTest.javaj^d addedjVd KSjWd K j`d KSjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xh  @@ -0,0 +1,83 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.lock.v2.IdentifiedTimeLockRequest;
+import java.io.File;
+import java.io.IOException;
+import java.util.concurrent.TimeUnit;
+import org.junit.Test;
+
+public class LockServerOptionsTest {
+    private static final File LOCK_SERVER_OPTIONS_JSON = new File(IdentifiedTimeLockRequest.class
+            .getResource("/lock-server-options.json")
+            .getPath());
+    private static final LockServerOptions NON_STANDALONE_OPTIONS =
+            LockServerOptions.builder().isStandaloneServer(false).build();
+
+    private final ObjectMapper serverMapper = ObjectMappers.newServerObjectMapper();
+    private final ObjectMapper clientMapper = ObjectMappers.newClientObjectMapper();
+
+    @Test
+    public void serializationContainsIsStandaloneServerExplicitly() throws Exception {
+        assertThat(serverMapper.writeValueAsString(NON_STANDALONE_OPTIONS))
+                .isNotEmpty()
+                .contains("\"isStandaloneServer\":false");
+        assertThat(serverMapper.writeValueAsString(LockServerOptions.builder().build()))
+                .isNotEmpty()
+                .contains("\"isStandaloneServer\":true");
+    }
+
+    @Test
+    public void serializationIsInverseOfDeserialization() throws JsonProcessingException {
+        assertSerializationIsInverseOfDeserialization(NON_STANDALONE_OPTIONS);
+        assertSerializationIsInverseOfDeserialization(
+                LockServerOptions.builder().build());
+    }
+
+    @Test
+    @SuppressWarnings("deprecation") // These are actual fields users might set that we still support...
+    public void existingOptionsCanBeDeserialized() throws IOException {
+        LockServerOptions lockServerOptions = LockServerOptions.builder()
+                .maxAllowedLockTimeout(SimpleTimeDuration.of(1, TimeUnit.MILLISECONDS))
+                .maxAllowedClockDrift(SimpleTimeDuration.of(2, TimeUnit.SECONDS))
+                .maxAllowedBlockingDuration(SimpleTimeDuration.of(3, TimeUnit.MINUTES))
+                .maxNormalLockAge(SimpleTimeDuration.of(4, TimeUnit.HOURS))
+                .randomBitCount(32)
+                .stuckTransactionTimeout(SimpleTimeDuration.of(5, TimeUnit.DAYS))
+                .slowLogTriggerMillis(12345)
+                .isStandaloneServer(false)
+                .build();
+
+        assertThat(clientMapper.readValue(LOCK_SERVER_OPTIONS_JSON, LockServerOptions.class))
+                .isEqualTo(lockServerOptions);
+        assertThat(serverMapper.readValue(LOCK_SERVER_OPTIONS_JSON, LockServerOptions.class))
+                .isEqualTo(lockServerOptions);
+    }
+
+    private void assertSerializationIsInverseOfDeserialization(LockServerOptions options)
+            throws JsonProcessingException {
+        String json = serverMapper.writeValueAsString(options);
+        assertThat(clientMapper.readValue(json, LockServerOptions.class)).isEqualTo(options);
+        assertThat(serverMapper.readValue(json, LockServerOptions.class)).isEqualTo(options);
+    }
+}u}(jc (fcb51a9d2957bb45c95e4bf848d1dd2da8eb2547j\d Qlock-api/src/test/java/com/palantir/lock/client/UnreliableTimelockClientTest.javaj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimelockClientTest.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimelockClientTest.javajed https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimelockClientTest.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xd  @@ -0,0 +1,179 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.client;
+
+import static org.mockito.ArgumentMatchers.anyDouble;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
+
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggify;
+import com.palantir.atlasdb.buggify.impl.NoOpBuggify;
+import com.palantir.atlasdb.buggify.impl.NoOpBuggifyFactory;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.v2.ClientLockingOptions;
+import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.v2.LockResponse;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.v2.WaitForLocksRequest;
+import java.util.LinkedHashSet;
+import java.util.List;
+import java.util.Set;
+import java.util.UUID;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class UnreliableTimelockClientTest {
+
+    private static final LockToken LOCK_TOKEN = LockToken.of(UUID.fromString("00000000-0000-0000-0000-000000000000"));
+
+    private static final LockToken LOCK_TOKEN_2 = LockToken.of(UUID.fromString("00000000-0000-0000-0000-000000000001"));
+    private static final LockDescriptor LOCK_DESCRIPTOR = StringLockDescriptor.of("foo");
+    private static final LockRequest LOCK_REQUEST = LockRequest.of(Set.of(LOCK_DESCRIPTOR), 1);
+
+    @Mock
+    private TimeLockClient timeLockClient;
+
+    private UnreliableTimeLockService unreliableTimeLockService;
+
+    @Before
+    public void before() {
+        unreliableTimeLockService = new UnreliableTimeLockService(timeLockClient, NoOpBuggifyFactory.INSTANCE);
+    }
+
+    @Test
+    public void verifyIsInitializedCallsDelegate() {
+        unreliableTimeLockService.isInitialized();
+        verify(timeLockClient).isInitialized();
+    }
+
+    @Test
+    public void verifyGetFreshTimestampCallsDelegate() {
+        unreliableTimeLockService.getFreshTimestamp();
+        verify(timeLockClient).getFreshTimestamp();
+    }
+
+    @Test
+    public void verifyGetCommitTimestampsCallsDelegate() {
+        unreliableTimeLockService.getCommitTimestamp(1, LOCK_TOKEN);
+        verify(timeLockClient).getCommitTimestamp(1, LOCK_TOKEN);
+    }
+
+    @Test
+    public void verifyGetFreshTimestampsCallsDelegate() {
+        unreliableTimeLockService.getFreshTimestamps(1);
+        verify(timeLockClient).getFreshTimestamps(1);
+    }
+
+    @Test
+    public void verifyLockImmutableTimestampCallsDelegate() {
+        unreliableTimeLockService.lockImmutableTimestamp();
+        verify(timeLockClient).lockImmutableTimestamp();
+    }
+
+    @Test
+    public void verifyStartIdentifiedAtlasDbTransactionCallsDelegate() {
+        unreliableTimeLockService.startIdentifiedAtlasDbTransactionBatch(1);
+        verify(timeLockClient).startIdentifiedAtlasDbTransactionBatch(1);
+    }
+
+    @Test
+    public void verifyGetImmutableTimestampCallsDelegate() {
+        unreliableTimeLockService.getImmutableTimestamp();
+        verify(timeLockClient).getImmutableTimestamp();
+    }
+
+    @Test
+    public void verifyLockCallsDelegate() {
+        unreliableTimeLockService.lock(LOCK_REQUEST);
+        verify(timeLockClient).lock(LOCK_REQUEST);
+    }
+
+    @Test
+    public void lockMayUnlockImmediately() {
+        when(timeLockClient.lock(LOCK_REQUEST)).thenReturn(LockResponse.successful(LOCK_TOKEN));
+        new UnreliableTimeLockService(timeLockClient, createAlwaysBuggyFactory()).lock(LOCK_REQUEST);
+        verify(timeLockClient).unlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void lockWithOptionMayUnlockImmediately() {
+        ClientLockingOptions lockingOptions = ClientLockingOptions.getDefault();
+        when(timeLockClient.lock(LOCK_REQUEST, lockingOptions)).thenReturn(LockResponse.successful(LOCK_TOKEN));
+        new UnreliableTimeLockService(timeLockClient, createAlwaysBuggyFactory()).lock(LOCK_REQUEST, lockingOptions);
+        verify(timeLockClient).unlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyLockWithOptionsCallsDelegate() {
+        unreliableTimeLockService.lock(LOCK_REQUEST, ClientLockingOptions.getDefault());
+        verify(timeLockClient).lock(LOCK_REQUEST, ClientLockingOptions.getDefault());
+    }
+
+    @Test
+    public void verifyWaitForLocksCallsDelegate() {
+        WaitForLocksRequest waitForLocksRequest = WaitForLocksRequest.of(Set.of(LOCK_DESCRIPTOR), 1);
+        unreliableTimeLockService.waitForLocks(waitForLocksRequest);
+        verify(timeLockClient).waitForLocks(waitForLocksRequest);
+    }
+
+    @Test
+    public void refreshLockLeasesMaybeUnlocksLocks() {
+        BuggifyFactory factory = mock(BuggifyFactory.class);
+        when(factory.maybe(anyDouble())).thenReturn(DefaultBuggify.INSTANCE, NoOpBuggify.INSTANCE);
+        new UnreliableTimeLockService(timeLockClient, factory)
+                .refreshLockLeases(new LinkedHashSet<>(List.of(LOCK_TOKEN, LOCK_TOKEN_2)));
+        verify(timeLockClient).refreshLockLeases(Set.of(LOCK_TOKEN_2));
+        verify(timeLockClient).unlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyRefreshLockLeasesCallsDelegate() {
+        unreliableTimeLockService.refreshLockLeases(Set.of(LOCK_TOKEN));
+        verify(timeLockClient).refreshLockLeases(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyUnlockCallsDelegate() {
+        unreliableTimeLockService.unlock(Set.of(LOCK_TOKEN));
+        verify(timeLockClient).unlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyTryUnlockCallsDelegate() {
+        unreliableTimeLockService.tryUnlock(Set.of(LOCK_TOKEN));
+        verify(timeLockClient).tryUnlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyCurrentTimeMillisCallsDelegate() {
+        unreliableTimeLockService.currentTimeMillis();
+        verify(timeLockClient).currentTimeMillis();
+    }
+
+    private static BuggifyFactory createAlwaysBuggyFactory() {
+        BuggifyFactory factory = mock(BuggifyFactory.class);
+        when(factory.maybe(anyDouble())).thenReturn(DefaultBuggify.INSTANCE);
+        return factory;
+    }
+}u}(jc (efe8f1aaad6365f7c6d18f7a187cf695d298d214j\d 4lock-api/src/test/resources/lock-server-options.jsonj^d addedjVd KjWd K j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.jsonjcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.jsonjed https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.json?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xa  @@ -0,0 +1 @@
+{"maxAllowedLockTimeout":{"time":1,"unit":"MILLISECONDS"},"maxAllowedClockDrift":{"time":2,"unit":"SECONDS"},"maxAllowedBlockingDuration":{"time":3,"unit":"MINUTES"},"maxNormalLockAge":{"time":4,"unit":"HOURS"},"randomBitCount":32,"stuckTransactionTimeout":{"time":5,"unit":"DAYS"},"slowLogTriggerMillis":12345,"isStandaloneServer":false}u}(jc (11798108f5011933229198de0ecd0a9b6b828e68j\d lock-impl/build.gradlej^d modifiedjVd KjWd K j`d Kjad jhttps://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-impl%2Fbuild.gradlejcd ihttps://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-impl%2Fbuild.gradlejed |https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fbuild.gradle?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X  @@ -5,6 +5,7 @@ dependencies {
 
   implementation 'com.fasterxml.jackson.core:jackson-annotations'
   implementation 'com.fasterxml.jackson.core:jackson-databind'
+  implementation 'com.github.ben-manes.caffeine:caffeine'
   implementation 'com.google.errorprone:error_prone_annotations'
   implementation 'com.google.guava:guava'
   implementation 'com.palantir.common:streams'
@@ -21,6 +22,7 @@ dependencies {
   implementation project(':lock-api-objects')
   implementation project(':timestamp-api')
 
+  testImplementation 'org.awaitility:awaitility'
   testImplementation 'com.fasterxml.jackson.core:jackson-databind'
   testImplementation 'com.google.guava:guava'
   testImplementation 'com.palantir.safe-logging:preconditions'u}(jc (de1728573711fd52c74bd9c4b9da5dac1b845b1aj\d Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj^d modifiedjVd KjWd Kj`d K#jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javajed https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd Xx  @@ -21,12 +21,11 @@
 import static com.palantir.lock.LockGroupBehavior.LOCK_ALL_OR_NONE;
 import static com.palantir.lock.LockGroupBehavior.LOCK_AS_MANY_AS_POSSIBLE;
 
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.MoreObjects;
 import com.google.common.base.Preconditions;
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
 import com.google.common.collect.Collections2;
 import com.google.common.collect.HashMultimap;
 import com.google.common.collect.ImmutableList;
@@ -98,7 +97,6 @@
 import java.util.concurrent.BlockingQueue;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ConcurrentMap;
-import java.util.concurrent.ExecutionException;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Future;
 import java.util.concurrent.PriorityBlockingQueue;
@@ -185,17 +183,14 @@ public String toString() {
     private final SimpleTimeDuration stuckTransactionTimeout;
     private final AtomicBoolean isShutDown = new AtomicBoolean(false);
 
+    /** Configurable background task that periodically collects snapshots about the current lock state */
+    private final LockThreadInfoSnapshotManager threadInfoSnapshotManager;
+
     private final LockClientIndices clientIndices = new LockClientIndices();
 
     /** The backing client-aware read write lock for each lock descriptor. */
-    private final LoadingCache<LockDescriptor, ClientAwareReadWriteLock> descriptorToLockMap = CacheBuilder.newBuilder()
-            .weakValues()
-            .build(new CacheLoader<LockDescriptor, ClientAwareReadWriteLock>() {
-                @Override
-                public ClientAwareReadWriteLock load(LockDescriptor from) {
-                    return new LockServerLock(from, clientIndices);
-                }
-            });
+    private final LoadingCache<LockDescriptor, ClientAwareReadWriteLock> descriptorToLockMap =
+            Caffeine.newBuilder().weakValues().build(from -> new LockServerLock(from, clientIndices));
 
     /** The locks (and canonical token) associated with each HeldLocksToken. */
     private final ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>> heldLocksTokenMap = new MapMaker().makeMap();
@@ -264,6 +259,9 @@ private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable
         this.maxNormalLockAge = SimpleTimeDuration.of(options.getMaxNormalLockAge());
         this.stuckTransactionTimeout = SimpleTimeDuration.of(options.getStuckTransactionTimeout());
         this.slowLogTriggerMillis = options.slowLogTriggerMillis();
+        this.threadInfoSnapshotManager =
+                new LockThreadInfoSnapshotManager(options.threadInfoConfiguration(), () -> heldLocksTokenMap);
+        threadInfoSnapshotManager.start();
     }
 
     private HeldLocksToken createHeldLocksToken(
@@ -521,12 +519,7 @@ private void tryLocks(
                     continue;
                 }
 
-                ClientAwareReadWriteLock lock;
-                try {
-                    lock = descriptorToLockMap.get(entry.getKey());
-                } catch (ExecutionException e) {
-                    throw new RuntimeException(e.getCause());
-                }
+                ClientAwareReadWriteLock lock = descriptorToLockMap.get(entry.getKey());
                 if (locks.containsKey(lock)) {
                     // This is the 2nd time we are calling tryLocks and we already locked this one.
                     continue;
@@ -1201,7 +1194,7 @@ private String safeLockStats() {
                 + maxAllowedClockDrift
                 + "\n"
                 + "descriptorToLockMap.size = "
-                + descriptorToLockMap.size()
+                + descriptorToLockMap.estimatedSize()
                 + "\n"
                 + "outstandingLockRequestMultimap.size = "
                 + outstandingLockRequestMultimap.size()
@@ -1240,6 +1233,10 @@ public long currentTimeMillis() {
         return System.currentTimeMillis();
     }
 
+    public LockThreadInfoSnapshotManager getSnapshotManager() {
+        return threadInfoSnapshotManager;
+    }
+
     private static String updateThreadName(LockRequest request) {
         String currentThreadName = Thread.currentThread().getName();
         tryRenameThread(u}(jc (809fbe7445ab02562941cd3e5c4b33ac4978e3f5j\d Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javaj^d addedjVd K_jWd K j`d K_jad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javajed https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X[  @@ -0,0 +1,95 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableMap;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.lock.DebugThreadInfoConfiguration;
+import com.palantir.lock.HeldLocksToken;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Objects;
+import java.util.concurrent.ConcurrentMap;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+
+public class LockThreadInfoSnapshotManager implements AutoCloseable {
+    private DebugThreadInfoConfiguration threadInfoConfiguration;
+
+    private Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
+
+    private volatile Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot;
+
+    private ScheduledExecutorService scheduledExecutorService = PTExecutors.newSingleThreadScheduledExecutor();
+
+    public LockThreadInfoSnapshotManager(
+            DebugThreadInfoConfiguration threadInfoConfiguration,
+            Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> mapSupplier) {
+        this.threadInfoConfiguration = threadInfoConfiguration;
+        this.tokenMapSupplier = mapSupplier;
+        this.lastKnownThreadInfoSnapshot = ImmutableMap.of();
+    }
+
+    public void start() {
+        scheduleRun();
+    }
+
+    private void run() {
+        takeSnapshot();
+
+        // schedule next snapshot so this can be enabled/disabled at runtime
+        scheduleRun();
+    }
+
+    private void scheduleRun() {
+        if (threadInfoConfiguration.recordThreadInfo()) {
+            scheduledExecutorService.schedule(
+                    this::run, threadInfoConfiguration.threadInfoSnapshotIntervalMillis(), TimeUnit.MILLISECONDS);
+        }
+    }
+
+    @VisibleForTesting
+    Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot() {
+        return lastKnownThreadInfoSnapshot;
+    }
+
+    @VisibleForTesting
+    void takeSnapshot() {
+        lastKnownThreadInfoSnapshot = tokenMapSupplier.get().keySet().stream()
+                .flatMap(token -> {
+                    LockClientAndThread clientThread = LockClientAndThread.of(
+                            Objects.requireNonNullElse(token.getClient(), LockClientAndThread.UNKNOWN.client()),
+                            Objects.requireNonNullElse(
+                                    token.getRequestingThread(), LockClientAndThread.UNKNOWN.thread()));
+                    return token.getLockDescriptors().stream()
+                            .map(lockDescriptor -> Map.entry(lockDescriptor, clientThread));
+                })
+                // Although a lock can be held by multiple clients/threads, we only remember one to save space
+                .collect(Collectors.toMap(Entry::getKey, Entry::getValue, (existing, replacement) -> existing));
+    }
+
+    @Override
+    public void close() {
+        scheduledExecutorService.shutdown();
+    }
+}u}(jc (9fe9d43261f7a9aee7f98c3febb6dfc81ee82d3cj\d Llock-impl/src/main/java/com/palantir/lock/logger/LockServiceStateLogger.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLogger.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLogger.javajed https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLogger.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X.  @@ -16,6 +16,7 @@
 package com.palantir.lock.logger;
 
 import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.ImmutableSetMultimap;
 import com.google.common.collect.Multimap;
 import com.google.common.collect.Multimaps;
 import com.google.common.collect.SetMultimap;
@@ -66,7 +67,7 @@ public LockServiceStateLogger(
     public LogState logLocks() {
         List<SimpleLockRequestsWithSameDescriptor> generatedOutstandingRequests =
                 generateOutstandingLocks(outstandingLockRequests);
-        Map<ObfuscatedLockDescriptor, SimpleTokenInfo> generatedHeldLocks = generateHeldLocks(heldLocks);
+        Multimap<ObfuscatedLockDescriptor, SimpleTokenInfo> generatedHeldLocks = generateHeldLocks(heldLocks);
         Map<ObfuscatedLockDescriptor, String> generatedSyncState = generateSyncState(descriptorToLockMap);
         Map<ClientId, List<SanitizedLockRequestProgress>> synthesizedRequestState =
                 synthesizeRequestState(outstandingLockRequests, descriptorToLockMap);
@@ -130,14 +131,14 @@ private List<SimpleLockRequestsWithSameDescriptor> generateOutstandingLocks(
                 .collect(Collectors.toList());
     }
 
-    private Map<ObfuscatedLockDescriptor, SimpleTokenInfo> generateHeldLocks(
+    private Multimap<ObfuscatedLockDescriptor, SimpleTokenInfo> generateHeldLocks(
             ConcurrentMap<HeldLocksToken, LockServiceImpl.HeldLocks<HeldLocksToken>> heldLocksTokenMap) {
         return heldLocksTokenMap.values().stream()
                 .flatMap(locks -> locks.getRealToken().getLocks().stream()
                         .map(lock -> Map.entry(
                                 this.lockDescriptorMapper.getDescriptorMapping(lock.getLockDescriptor()),
                                 SimpleTokenInfo.of(locks.getRealToken(), lock.getLockMode()))))
-                .collect(Collectors.toMap(Entry::getKey, Entry::getValue));
+                .collect(ImmutableSetMultimap.toImmutableSetMultimap(Entry::getKey, Entry::getValue));
     }
 
     private Map<ObfuscatedLockDescriptor, String> generateSyncState(u}(jc (a5db35d08e52dedc10c9a0db02572d3b809a9531j\d Jlock-impl/src/main/java/com/palantir/lock/logger/LockServiceTestUtils.javaj^d modifiedjVd KjWd K	j`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceTestUtils.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceTestUtils.javajed https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceTestUtils.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X)  @@ -24,15 +24,13 @@
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.StringLockDescriptor;
 import java.math.BigInteger;
-import java.util.Arrays;
-import java.util.List;
+import java.util.Map;
 
 public class LockServiceTestUtils {
 
     public static HeldLocksToken getFakeHeldLocksToken(
-            String clientName, String requestingThread, BigInteger tokenId, String... descriptors) {
-        ImmutableSortedMap<LockDescriptor, LockMode> lockDescriptorLockMode =
-                getLockDescriptorLockMode(Arrays.asList(descriptors));
+            String clientName, String requestingThread, BigInteger tokenId, Map<String, LockMode> descriptors) {
+        ImmutableSortedMap<LockDescriptor, LockMode> lockDescriptorLockMode = getLockDescriptorLockMode(descriptors);
 
         return new HeldLocksToken(
                 tokenId,
@@ -45,11 +43,12 @@ public static HeldLocksToken getFakeHeldLocksToken(
                 requestingThread);
     }
 
-    public static ImmutableSortedMap<LockDescriptor, LockMode> getLockDescriptorLockMode(List<String> descriptors) {
+    public static ImmutableSortedMap<LockDescriptor, LockMode> getLockDescriptorLockMode(
+            Map<String, LockMode> descriptors) {
         ImmutableSortedMap.Builder<LockDescriptor, LockMode> builder = ImmutableSortedMap.naturalOrder();
-        for (String descriptor : descriptors) {
-            LockDescriptor descriptor1 = StringLockDescriptor.of(descriptor);
-            builder.put(descriptor1, LockMode.WRITE);
+        for (Map.Entry<String, LockMode> descriptorAndMode : descriptors.entrySet()) {
+            LockDescriptor descriptor1 = StringLockDescriptor.of(descriptorAndMode.getKey());
+            builder.put(descriptor1, descriptorAndMode.getValue());
         }
         return builder.buildOrThrow();
     }uU      }(jc (296c1bf1d09ef2afae13517b51f18c423208a9e6j\d >lock-impl/src/main/java/com/palantir/lock/logger/LogState.javaj^d modifiedjVd KjWd Kj`d Kjad https://github.com/palantir/atlasdb/blob/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLogState.javajcd https://github.com/palantir/atlasdb/raw/f9026ae02d646dbdf8c75ea55658e02b02d9c2be/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLogState.javajed https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLogState.java?ref=f9026ae02d646dbdf8c75ea55658e02b02d9c2bejgd X1  @@ -16,6 +16,7 @@
 
 package com.palantir.lock.logger;
 
+import com.google.common.collect.Multimap;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.SafeArg;
@@ -33,7 +34,7 @@ public interface LogState {
     List<SimpleLockRequestsWithSameDescriptor> getOutstandingRequests();
 
     @Safe
-    Map<ObfuscatedLockDescriptor, SimpleTokenInfo> getHeldLocks();
+    Multimap<ObfuscatedLockDescriptor, SimpleTokenInfo> getHeldLocks();
 
     @Safe
     Map<ObfuscatedLockDescriptor, String> getSyncState();ueu(8ca89822556aafab46c6fedea6afc3e8461f5d1f}(sha(8ca89822556aafab46c6fedea6afc3e8461f5d1fnode_idEC_kwDOAjP5fdoAKDhjYTg5ODIyNTU2YWFmYWI0NmM2ZmVkZWE2YWZjM2U4NDYxZjVkMWYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T16:05:59Zu	committer}(jm 
Ahmed Alouanejm aalouane@palantir.comjm 2023-05-15T16:05:59ZumessageJMerge branch 'tlmetexxxxx' of github.com:palantir/atlasdb into tlmetexxxxxtree}(jm (54477e92c73677b82bb985a9edd9fc7e2ab4cc73url`https://api.github.com/repos/palantir/atlasdb/git/trees/54477e92c73677b82bb985a9edd9fc7e2ab4cc73ujm bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8ca89822556aafab46c6fedea6afc3e8461f5d1f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiWGoACgkQPlMHVIT1
yhrZqggAqibPPF8GB2dBvpH1yKng2wnvkFk/B1liW/inHp+Le1z9ZQX+zUyqow5E
U89dOAXc9FbRDbUAvPRMcq1Slf5UDW8DHvdOT1X6lx4gQvqrNe05X8IHnSMTdHQO
CDFMQeu/6/hkcAyHka3Hnahbqos05Mpmse23RCKFtBrqiA5n8G/CfY15PN1MmBOK
cU7Aebus8nAcLJI3mocwCtknZ/AqJr7xVLEqbUqZ3DA7vOPwjMvTNG5TvjNgitcY
fVh1Yq3jTRLuo+zPMACDdYa7XfWApY0+DL0YlL6dYcOcatDOXQ+LVO26BpbzPj4V
jAVz7ZmqQflZT2AZ5DzCCo3pC5O86w==
=vMPn
-----END PGP SIGNATURE-----payloadXY  tree 54477e92c73677b82bb985a9edd9fc7e2ab4cc73
parent 49f5016eb75bd377bdb33719271ba2696b576bd6
parent af1ee0f2db905cb1fa8456a59cd228af6db0956c
author Ahmed Alouane <aalouane@palantir.com> 1684166759 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684166759 +0100

Merge branch 'tlmetexxxxx' of github.com:palantir/atlasdb into tlmetexxxxx
uujm ^https://api.github.com/repos/palantir/atlasdb/commits/8ca89822556aafab46c6fedea6afc3e8461f5d1fhtml_urlShttps://github.com/palantir/atlasdb/commit/8ca89822556aafab46c6fedea6afc3e8461f5d1fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8ca89822556aafab46c6fedea6afc3e8461f5d1f/commentsjm }(loginergo14idJjm MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jm #https://api.github.com/users/ergo14jm https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujm }(jm ergo14jm Jjm MDQ6VXNlcjMwOTAzNzM2jm 4https://avatars.githubusercontent.com/u/30903736?v=4jm h5jm #https://api.github.com/users/ergo14jm https://github.com/ergo14jm -https://api.github.com/users/ergo14/followersjm :https://api.github.com/users/ergo14/following{/other_user}jm 3https://api.github.com/users/ergo14/gists{/gist_id}jm :https://api.github.com/users/ergo14/starred{/owner}{/repo}jn 1https://api.github.com/users/ergo14/subscriptionsjn (https://api.github.com/users/ergo14/orgsjn )https://api.github.com/users/ergo14/reposjn 4https://api.github.com/users/ergo14/events{/privacy}j	n 3https://api.github.com/users/ergo14/received_eventsjn Userj
n uparents](}(jm (49f5016eb75bd377bdb33719271ba2696b576bd6jm ^https://api.github.com/repos/palantir/atlasdb/commits/49f5016eb75bd377bdb33719271ba2696b576bd6jm Shttps://github.com/palantir/atlasdb/commit/49f5016eb75bd377bdb33719271ba2696b576bd6u}(jm (af1ee0f2db905cb1fa8456a59cd228af6db0956cjm ^https://api.github.com/repos/palantir/atlasdb/commits/af1ee0f2db905cb1fa8456a59cd228af6db0956cjm Shttps://github.com/palantir/atlasdb/commit/af1ee0f2db905cb1fa8456a59cd228af6db0956cuestats}(totalK 	additionsK 	deletionsK ufiles]u(7f8f1fd7639fecbcf3bac49f4697743fd5336068}(sha(7f8f1fd7639fecbcf3bac49f4697743fd5336068node_idEC_kwDOAjP5fdoAKDdmOGYxZmQ3NjM5ZmVjYmNmM2JhYzQ5ZjQ2OTc3NDNmZDUzMzYwNjgcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-03T16:33:01Zu	committer}(j9n GitHubj;n noreply@github.comj=n 2023-07-03T16:33:01ZumessageX  [Antithesis | Range Queries] Part 5: Random Shuffle Workflow (#6609)

* Refactor TransactionActions to have explicitly named single cell variants

* broken tests

* Row column range read APIs

* Actually support row column range reads

* patchy patch

* add one more test

* change typing

* The Eagle has Landed

* More testing

* update random workflow

* CR notes

* Spotlesstree}(j1n (79c36dc79396b57758ef0e66afd69a86ff0857b0url`https://api.github.com/repos/palantir/atlasdb/git/trees/79c36dc79396b57758ef0e66afd69a86ff0857b0ujIn bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7f8f1fd7639fecbcf3bac49f4697743fd5336068
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkovg9CRBK7hj4Ov3rIwAAEVkIAEWgMftq7mCZGI/JfZO3DaHD
gvfmm7AFowXo90vANVrIu23J3l8UrDyNzOWCDRDWVV7Kaas6mjRA9vHw2eTas99s
2z7JG8orPcv795bxlF8hHldMGwUIpam/PhaWO1NhaqvgLYnII4rhrEHeSsiwXmo/
2fHvtvqeFPStTnsYJkp6mjXfqPHmKJPgroVDurSXnjYdL1BRb1nDMvNYidFR0Zrn
+BvL+KMdlF5NY7LDHq1FF9I5MOmQKDMGa84Itlgm2a/1NoRsspPHCojsDJkQNYUG
EO/gqOucqgf60XVndH0yo2E1bri2rTtA3/X8G5k6K3+AUjOaYSTznP12XSJlRiE=
=GXEI
-----END PGP SIGNATURE-----
payloadX_  tree 79c36dc79396b57758ef0e66afd69a86ff0857b0
parent 63c4728f270b522a9363d04b31e83b2eb02d5f24
author Jeremy Kong <jkong@palantir.com> 1688401981 +0100
committer GitHub <noreply@github.com> 1688401981 +0100

[Antithesis | Range Queries] Part 5: Random Shuffle Workflow (#6609)

* Refactor TransactionActions to have explicitly named single cell variants

* broken tests

* Row column range read APIs

* Actually support row column range reads

* patchy patch

* add one more test

* change typing

* The Eagle has Landed

* More testing

* update random workflow

* CR notes

* SpotlessuujIn ^https://api.github.com/repos/palantir/atlasdb/commits/7f8f1fd7639fecbcf3bac49f4697743fd5336068html_urlShttps://github.com/palantir/atlasdb/commit/7f8f1fd7639fecbcf3bac49f4697743fd5336068comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7f8f1fd7639fecbcf3bac49f4697743fd5336068/commentsj7n }(login
jeremyk-91idJZ j3n MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jIn 'https://api.github.com/users/jeremyk-91jWn https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj?n }(j\n web-flowj^n J/j3n MDQ6VXNlcjE5ODY0NDQ3j`n 4https://avatars.githubusercontent.com/u/19864447?v=4jbn h5jIn %https://api.github.com/users/web-flowjWn https://github.com/web-flowjen /https://api.github.com/users/web-flow/followersjgn <https://api.github.com/users/web-flow/following{/other_user}jin 5https://api.github.com/users/web-flow/gists{/gist_id}jkn <https://api.github.com/users/web-flow/starred{/owner}{/repo}jmn 3https://api.github.com/users/web-flow/subscriptionsjon *https://api.github.com/users/web-flow/orgsjqn +https://api.github.com/users/web-flow/reposjsn 6https://api.github.com/users/web-flow/events{/privacy}jun 5https://api.github.com/users/web-flow/received_eventsjwn Userjyn uparents]}(j1n (63c4728f270b522a9363d04b31e83b2eb02d5f24jIn ^https://api.github.com/repos/palantir/atlasdb/commits/63c4728f270b522a9363d04b31e83b2eb02d5f24jWn Shttps://github.com/palantir/atlasdb/commit/63c4728f270b522a9363d04b31e83b2eb02d5f24uastats}(totalK9	additionsK4	deletionsKufiles](}(j1n (068772270bb2fa3e428fb2588a4fa5c879332417filenamematlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowConfiguration.javastatusmodifiedjn Kjn KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7f8f1fd7639fecbcf3bac49f4697743fd5336068/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7f8f1fd7639fecbcf3bac49f4697743fd5336068/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowConfiguration.java?ref=7f8f1fd7639fecbcf3bac49f4697743fd5336068patchX  @@ -47,8 +47,18 @@ default Integer maxDeletes() {
     }
 
     @Value.Default
-    default Integer maxCells() {
-        return 10;
+    default Integer maxRowRangeScans() {
+        return 3;
+    }
+
+    @Value.Default
+    default Integer maxRows() {
+        return 5;
+    }
+
+    @Value.Default
+    default Integer maxColumns() {
+        return 5;
     }
 
     @Value.Lazyu}(j1n (a5a4c6d7a22b620c4d006ce608b308c51b65e81cjn aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/RandomWorkflows.javajn modifiedjn K&jn Kjn K)jn https://github.com/palantir/atlasdb/blob/7f8f1fd7639fecbcf3bac49f4697743fd5336068/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javajn https://github.com/palantir/atlasdb/raw/7f8f1fd7639fecbcf3bac49f4697743fd5336068/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflows.java?ref=7f8f1fd7639fecbcf3bac49f4697743fd5336068jn X  @@ -21,11 +21,15 @@
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ImmutableDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ImmutableReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableRowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ImmutableRowColumnRangeReadTransactionAction.Builder;
 import com.palantir.atlasdb.workload.transaction.ImmutableWriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -41,7 +45,6 @@
 
 public final class RandomWorkflows {
     private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
-    private static final Integer COLUMN = 0;
 
     private RandomWorkflows() {
         // static factory
@@ -78,7 +81,10 @@ public RandomWorkflowTask(RandomWorkflowConfiguration workflowConfiguration, Sec
         public Optional<WitnessedTransaction> run(TransactionStore store) {
             workflowConfiguration.transactionRateLimiter().acquire();
             List<TransactionAction> actions = Stream.of(
-                            generateReadActions(), generateWriteActions(), generateDeleteActions())
+                            generateReadActions(),
+                            generateWriteActions(),
+                            generateDeleteActions(),
+                            generateRowColumnRangeReadActions())
                     .flatMap(Collection::stream)
                     .collect(Collectors.toList());
             Collections.shuffle(actions, random);
@@ -111,8 +117,37 @@ private List<DeleteTransactionAction> generateDeleteActions() {
                     .collect(Collectors.toList());
         }
 
+        private List<RowColumnRangeReadTransactionAction> generateRowColumnRangeReadActions() {
+            return IntStream.range(0, random.nextInt(workflowConfiguration.maxRowRangeScans() + 1))
+                    .boxed()
+                    .map(_index -> {
+                        WorkloadCell startCell = randomCell();
+                        int endColumn = random.nextInt(workflowConfiguration.maxColumns());
+                        Builder builder = ImmutableRowColumnRangeReadTransactionAction.builder()
+                                .table(workflowConfiguration
+                                        .tableConfiguration()
+                                        .tableName())
+                                .row(startCell.key());
+                        if (startCell.column() < endColumn) {
+                            builder.columnRangeSelection(ColumnRangeSelection.builder()
+                                    .startColumnInclusive(startCell.column())
+                                    .endColumnExclusive(endColumn + 1)
+                                    .build());
+                        } else {
+                            builder.columnRangeSelection(ColumnRangeSelection.builder()
+                                    .startColumnInclusive(endColumn)
+                                    .endColumnExclusive(startCell.column() + 1)
+                                    .build());
+                        }
+                        return builder.build();
+                    })
+                    .collect(Collectors.toList());
+        }
+
         private WorkloadCell randomCell() {
-            return ImmutableWorkloadCell.of(random.nextInt(workflowConfiguration.maxCells()), COLUMN);
+            return ImmutableWorkloadCell.of(
+                    random.nextInt(workflowConfiguration.maxRows()),
+                    random.nextInt(workflowConfiguration.maxColumns()));
         }
     }
 }u}(j1n (ed4a933003145485da5b9b26d582f7dd57f2ceafjn eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/RandomWorkflowsTest.javajn modifiedjn Kjn K jn Kjn https://github.com/palantir/atlasdb/blob/7f8f1fd7639fecbcf3bac49f4697743fd5336068/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javajn https://github.com/palantir/atlasdb/raw/7f8f1fd7639fecbcf3bac49f4697743fd5336068/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.javajn https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FRandomWorkflowsTest.java?ref=7f8f1fd7639fecbcf3bac49f4697743fd5336068jn X9  @@ -31,6 +31,7 @@
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -96,5 +97,6 @@ public void workflowRunsReadWritesDeletes() {
         assertThat(actions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
         assertThat(actions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
         assertThat(actions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+        assertThat(actions).anyMatch(WitnessedRowColumnRangeReadTransactionAction.class::isInstance);
     }
 }ueu(bfe7051211ad42fc0f3f59928e8602f422bf630b}(sha(bfe7051211ad42fc0f3f59928e8602f422bf630bnode_idEC_kwDOAjP5fdoAKGJmZTcwNTEyMTFhZDQyZmMwZjNmNTk5MjhlODYwMmY0MjJiZjYzMGIcommit}(author}(name	Tom Papkeemail+43675490+Toemmsche@users.noreply.github.comdate2023-07-19T17:26:53Zu	committer}(jn GitHubjn noreply@github.comjn 2023-07-19T17:26:53ZumessageR[LWMeta] TimeLock API changes (#6660)

[LWMeta] Add metadata to ConjureLockRequesttree}(jn (19e59f1eeb2bfd203cb923ef2beca944407dbfaaurl`https://api.github.com/repos/palantir/atlasdb/git/trees/19e59f1eeb2bfd203cb923ef2beca944407dbfaaujn bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bfe7051211ad42fc0f3f59928e8602f422bf630b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkuBzdCRBK7hj4Ov3rIwAAZUoIAHDsaLIR8LbeTw5uSk1ZTANm
J2uv3cRWtkzMp8Nb67MYUTd92WzVD4YjEdeUHCmQqgeUiHVf5bz6ygDh6O9QM1JC
JJCVbeHUdtpzVY3VjFzTUis/Tnkvi00AW17TcYdhFiGMUv1uoWgGWvk8NhAb35do
/FKFnkigLB+ZIR0BBmpu7y1GZqCGicuUWaEDtpC3rdI8MH/cPi2ILIj8uZUpj9EQ
11k2l5VL7IvoosN63Ob5OmlThJ3SAof+GEDhBJF3+szSGS2E4Ktsep9YaqoesenK
x3cGfkKRmJITTZCERhUs5JZBYCrwJ6E7oJW7vBp9fM2xSbZ1xM/ZEMzmz4TznDY=
=Ju8r
-----END PGP SIGNATURE-----
payloadX9  tree 19e59f1eeb2bfd203cb923ef2beca944407dbfaa
parent 46f8ba918722e9153e09b4c9385812631f685207
author Tom Papke <43675490+Toemmsche@users.noreply.github.com> 1689787613 +0100
committer GitHub <noreply@github.com> 1689787613 +0000

[LWMeta] TimeLock API changes (#6660)

[LWMeta] Add metadata to ConjureLockRequest
uujn ^https://api.github.com/repos/palantir/atlasdb/commits/bfe7051211ad42fc0f3f59928e8602f422bf630bhtml_urlShttps://github.com/palantir/atlasdb/commit/bfe7051211ad42fc0f3f59928e8602f422bf630bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bfe7051211ad42fc0f3f59928e8602f422bf630b/commentsjn }(login	ToemmscheidJbojn MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jn &https://api.github.com/users/Toemmschejn https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujn }(jn web-flowjn J/jn MDQ6VXNlcjE5ODY0NDQ3jn 4https://avatars.githubusercontent.com/u/19864447?v=4jn h5jn %https://api.github.com/users/web-flowjn https://github.com/web-flowjn /https://api.github.com/users/web-flow/followersjn <https://api.github.com/users/web-flow/following{/other_user}jn 5https://api.github.com/users/web-flow/gists{/gist_id}jn <https://api.github.com/users/web-flow/starred{/owner}{/repo}jn 3https://api.github.com/users/web-flow/subscriptionsjn *https://api.github.com/users/web-flow/orgsjn +https://api.github.com/users/web-flow/reposjn 6https://api.github.com/users/web-flow/events{/privacy}jn 5https://api.github.com/users/web-flow/received_eventsjn Userj o uparents]}(jn (46f8ba918722e9153e09b4c9385812631f685207jn ^https://api.github.com/repos/palantir/atlasdb/commits/46f8ba918722e9153e09b4c9385812631f685207jn Shttps://github.com/palantir/atlasdb/commit/46f8ba918722e9153e09b4c9385812631f685207uastats}(totalM	additionsM	deletionsK9ufiles](}(jn (7f90d96f996595cc4084c6ca9063c5df68e00be7filenamefatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/debug/LockDiagnosticConjureTimelockService.javastatusmodifiedjo Kjo KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/bfe7051211ad42fc0f3f59928e8602f422bf630b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FLockDiagnosticConjureTimelockService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/bfe7051211ad42fc0f3f59928e8602f422bf630b/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FLockDiagnosticConjureTimelockService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fdebug%2FLockDiagnosticConjureTimelockService.java?ref=bfe7051211ad42fc0f3f59928e8602f422bf630bpatchX  @@ -16,10 +16,12 @@
 
 package com.palantir.atlasdb.debug;
 
+import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.timelock.api.ConjureGetFreshTimestampsRequest;
 import com.palantir.atlasdb.timelock.api.ConjureGetFreshTimestampsRequestV2;
 import com.palantir.atlasdb.timelock.api.ConjureGetFreshTimestampsResponse;
 import com.palantir.atlasdb.timelock.api.ConjureGetFreshTimestampsResponseV2;
+import com.palantir.atlasdb.timelock.api.ConjureLockDescriptor;
 import com.palantir.atlasdb.timelock.api.ConjureLockRequest;
 import com.palantir.atlasdb.timelock.api.ConjureLockResponse;
 import com.palantir.atlasdb.timelock.api.ConjureRefreshLocksRequest;
@@ -42,6 +44,7 @@
 import com.palantir.lock.v2.LeaderTime;
 import com.palantir.tokens.auth.AuthHeader;
 import java.util.Optional;
+import java.util.Set;
 
 /**
  * TODO(fdesouza): Remove this once PDS-95791 is resolved.
@@ -97,24 +100,26 @@ public LeaderTime leaderTime(AuthHeader authHeader, String namespace) {
 
     @Override
     public ConjureLockResponse lock(AuthHeader authHeader, String namespace, ConjureLockRequest request) {
+        Set<ConjureLockDescriptor> lockDescriptors = ImmutableSet.copyOf(request.getLockDescriptors());
         request.getClientDescription()
                 .flatMap(LockDiagnosticConjureTimelockService::tryParseStartTimestamp)
-                .ifPresent(startTimestamp -> lockDiagnosticCollector.collect(
-                        startTimestamp, request.getRequestId(), request.getLockDescriptors()));
+                .ifPresent(startTimestamp ->
+                        lockDiagnosticCollector.collect(startTimestamp, request.getRequestId(), lockDescriptors));
         ConjureLockResponse response = conjureDelegate.lock(authHeader, namespace, request);
-        localLockTracker.logLockResponse(request.getLockDescriptors(), response);
+        localLockTracker.logLockResponse(lockDescriptors, response);
         return response;
     }
 
     @Override
     public ConjureWaitForLocksResponse waitForLocks(
             AuthHeader authHeader, String namespace, ConjureLockRequest request) {
+        Set<ConjureLockDescriptor> lockDescriptors = ImmutableSet.copyOf(request.getLockDescriptors());
         request.getClientDescription()
                 .flatMap(LockDiagnosticConjureTimelockService::tryParseStartTimestamp)
-                .ifPresent(startTimestamp -> lockDiagnosticCollector.collect(
-                        startTimestamp, request.getRequestId(), request.getLockDescriptors()));
+                .ifPresent(startTimestamp ->
+                        lockDiagnosticCollector.collect(startTimestamp, request.getRequestId(), lockDescriptors));
         ConjureWaitForLocksResponse response = conjureDelegate.waitForLocks(authHeader, namespace, request);
-        localLockTracker.logWaitForLocksResponse(request.getLockDescriptors(), response);
+        localLockTracker.logWaitForLocksResponse(lockDescriptors, response);
         return response;
     }
 u}(jn (5f02ea670ebe579e2fc7dbfcda201cb6c125b07ej o $changelog/@unreleased/pr-6660.v2.ymlj"o addedjo Kjo K j$o Kj%o |https://github.com/palantir/atlasdb/blob/bfe7051211ad42fc0f3f59928e8602f422bf630b/changelog%2F%40unreleased%2Fpr-6660.v2.ymlj'o {https://github.com/palantir/atlasdb/raw/bfe7051211ad42fc0f3f59928e8602f422bf630b/changelog%2F%40unreleased%2Fpr-6660.v2.ymlj)o https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6660.v2.yml?ref=bfe7051211ad42fc0f3f59928e8602f422bf630bj+o @@ -0,0 +1,5 @@
+type: feature
+feature:
+  description: '[LWMeta] Add metadata to ConjureLockRequest'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6660u}(jn (37dda23eb949c186568d3c32bafd886eb2861e4dj o Dlock-api-objects/src/main/java/com/palantir/lock/v2/LockRequest.javaj"o modifiedjo Kjo Kj$o K	j%o https://github.com/palantir/atlasdb/blob/bfe7051211ad42fc0f3f59928e8602f422bf630b/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fv2%2FLockRequest.javaj'o https://github.com/palantir/atlasdb/raw/bfe7051211ad42fc0f3f59928e8602f422bf630b/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fv2%2FLockRequest.javaj)o https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fv2%2FLockRequest.java?ref=bfe7051211ad42fc0f3f59928e8602f422bf630bj+o X  @@ -18,6 +18,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.Unsafe;
 import java.util.Optional;
@@ -39,12 +40,16 @@ public interface LockRequest {
     @Value.Parameter
     Optional<String> getClientDescription();
 
+    @Value.Parameter
+    Optional<LockRequestMetadata> getMetadata();
+
     static LockRequest of(Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs) {
-        return ImmutableLockRequest.of(lockDescriptors, acquireTimeoutMs, Optional.empty());
+        return ImmutableLockRequest.of(lockDescriptors, acquireTimeoutMs, Optional.empty(), Optional.empty());
     }
 
     static LockRequest of(Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs, String clientDescription) {
-        return ImmutableLockRequest.of(lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription));
+        return ImmutableLockRequest.of(
+                lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription), Optional.empty());
     }
 
     @Value.Checku}(jn (e82dfb8fb3ac704571c72a868213133c36e5489bj o Ilock-api-objects/src/test/java/com/palantir/lock/watch/LockEventTest.javaj"o modifiedjo Kjo Kj$o Kj%o https://github.com/palantir/atlasdb/blob/bfe7051211ad42fc0f3f59928e8602f422bf630b/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javaj'o https://github.com/palantir/atlasdb/raw/bfe7051211ad42fc0f3f59928e8602f422bf630b/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.javaj)o https://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FLockEventTest.java?ref=bfe7051211ad42fc0f3f59928e8602f422bf630bj+o Xl  @@ -206,7 +206,7 @@ private static <T> void assertDeserializedEquals(String jsonFileName, T object,
     }
 
     private static Path getJsonPath(String jsonFileName) {
-        return Paths.get(BASE + jsonFileName + ".json");
+        return Paths.get(BASE, jsonFileName + ".json");
     }
 
     // This is a copy of the LockEvent class before metadata was addedu}(jn (fdd60c0b734cecbf10734e0fbd30536bb6a5dec9j o Hlock-api/src/main/java/com/palantir/lock/client/ConjureLockRequests.javaj"o modifiedjo Kjo Kj$o Kj%o https://github.com/palantir/atlasdb/blob/bfe7051211ad42fc0f3f59928e8602f422bf630b/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequests.javaj'o https://github.com/palantir/atlasdb/raw/bfe7051211ad42fc0f3f59928e8602f422bf630b/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequests.javaj)o https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FConjureLockRequests.java?ref=bfe7051211ad42fc0f3f59928e8602f422bf630bj+o XJ
  @@ -16,6 +16,7 @@
 
 package com.palantir.lock.client;
 
+import com.google.common.collect.ImmutableList;
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.timelock.api.ConjureIdentifiedVersion;
 import com.palantir.atlasdb.timelock.api.ConjureLockDescriptor;
@@ -27,7 +28,10 @@
 import com.palantir.lock.v2.LockRequest;
 import com.palantir.lock.v2.WaitForLocksRequest;
 import com.palantir.lock.v2.WaitForLocksResponse;
+import com.palantir.lock.watch.ConjureLockRequestMetadataUtils;
+import com.palantir.lock.watch.ConjureLockRequestMetadataUtils.ConjureMetadataConversionResult;
 import com.palantir.lock.watch.LockWatchVersion;
+import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.UUID;
@@ -37,11 +41,18 @@ public final class ConjureLockRequests {
     private ConjureLockRequests() {}
 
     public static ConjureLockRequest toConjure(LockRequest request) {
+        Optional<ConjureMetadataConversionResult> optConversionResult = request.getMetadata()
+                .map(metadata ->
+                        ConjureLockRequestMetadataUtils.toConjureIndexEncoded(request.getLockDescriptors(), metadata));
+        List<LockDescriptor> orderedLocks = optConversionResult
+                .map(ConjureMetadataConversionResult::lockList)
+                .orElseGet(() -> ImmutableList.copyOf(request.getLockDescriptors()));
         return ConjureLockRequest.builder()
-                .lockDescriptors(toConjure(request.getLockDescriptors()))
+                .lockDescriptors(toConjure(orderedLocks))
                 .clientDescription(request.getClientDescription())
                 .requestId(UUID.randomUUID())
                 .acquireTimeoutMs(Ints.checkedCast(request.getAcquireTimeoutMs()))
+                .metadata(optConversionResult.map(ConjureMetadataConversionResult::conjureMetadata))
                 .build();
     }
 
@@ -62,6 +73,14 @@ private static Set<ConjureLockDescriptor> toConjure(Set<LockDescriptor> lockDesc
                 .collect(Collectors.toSet());
     }
 
+    private static List<ConjureLockDescriptor> toConjure(List<LockDescriptor> lockDescriptors) {
+        return lockDescriptors.stream()
+                .map(LockDescriptor::getBytes)
+                .map(Bytes::from)
+                .map(ConjureLockDescriptor::of)
+                .collect(Collectors.toList());
+    }
+
     public static Optional<ConjureIdentifiedVersion> toConjure(Optional<LockWatchVersion> maybeVersion) {
         return maybeVersion.map(identifiedVersion -> ConjureIdentifiedVersion.builder()
                 .id(identifiedVersion.id())u}(jn (96fe402e4d52617d8c36e2a0ce2d98c6c893ef57j o Nlock-api/src/test/java/com/palantir/lock/client/IdentifiedLockRequestTest.javaj"o modifiedjo Kjo Kj$o Kj%o https://github.com/palantir/atlasdb/blob/bfe7051211ad42fc0f3f59928e8602f422bf630b/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj'o https://github.com/palantir/atlasdb/raw/bfe7051211ad42fc0f3f59928e8602f422bf630b/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.javaj)o https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequestTest.java?ref=bfe7051211ad42fc0f3f59928e8602f422bf630bj+o X  @@ -99,6 +99,6 @@ private static IdentifiedLockRequest deserialize(String jsonFileName) {
     }
 
     private static Path getJsonPath(String jsonFileName) {
-        return Paths.get(BASE + jsonFileName + ".json");
+        return Paths.get(BASE, jsonFileName + ".json");
     }
 }u}(jn (efa35782df23f11a2b560a1360460927c3a64c83j o timelock-api/build.gradlej"o modifiedjo Kjo K j$o Kj%o mhttps://github.com/palantir/atlasdb/blob/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-api%2Fbuild.gradlej'o lhttps://github.com/palantir/atlasdb/raw/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-api%2Fbuild.gradlej)o https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fbuild.gradle?ref=bfe7051211ad42fc0f3f59928e8602f422bf630bj+o X[  @@ -7,6 +7,11 @@ dependencies {
     compileOnly 'com.fasterxml.jackson.core:jackson-databind'
     compileOnly 'org.immutables:value::annotations'
     annotationProcessor 'org.immutables:value'
+
+    testImplementation project(':atlasdb-api')
+    testImplementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
+    testImplementation 'junit:junit'
+    testImplementation 'org.assertj:assertj-core'
 }
 
 subprojects {
@@ -28,3 +33,9 @@ subprojects {
     }
     tasks.licenseMain.enabled = false
 }
+
+conjure {
+    java {
+        excludeEmptyOptionals = true
+    }
+}u}(jn (fde4513aa3ded3e8c3dd435abae8afd3aadb7511j o .timelock-api/src/main/conjure/timelock-api.ymlj"o modifiedjo Kjo Kj$o Kj%o https://github.com/palantir/atlasdb/blob/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-api.ymlj'o https://github.com/palantir/atlasdb/raw/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-api.ymlj)o https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Fmain%2Fconjure%2Ftimelock-api.yml?ref=bfe7051211ad42fc0f3f59928e8602f422bf630bj+o X  @@ -139,13 +139,14 @@ types:
           requestId:
             type: uuid
             safety: safe
-          lockDescriptors: set<ConjureLockDescriptor>
+          lockDescriptors: list<ConjureLockDescriptor>
           acquireTimeoutMs:
             type: integer
             safety: safe
           clientDescription:
             type: optional<string>
             safety: unsafe
+          metadata: optional<ConjureLockRequestMetadata>
       ConjureLockToken:
         fields:
           requestId:u}(jn (00bacead92b2565926c6a60644ee7001dcabc21bj o Xtimelock-api/src/test/java/com/palantir/atlasdb/timelock/api/ConjureLockRequestTest.javaj"o addedjo Kjo K j$o Kj%o https://github.com/palantir/atlasdb/blob/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FConjureLockRequestTest.javaj'o https://github.com/palantir/atlasdb/raw/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FConjureLockRequestTest.javaj)o https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FConjureLockRequestTest.java?ref=bfe7051211ad42fc0f3f59928e8602f422bf630bj+o X  @@ -0,0 +1,157 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock.api;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.conjure.java.lib.Bytes;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.UUID;
+import org.junit.Test;
+
+public class ConjureLockRequestTest {
+    private static final String BASE = "src/test/resources/conjure-lock-request-wire-format/";
+    private static final String LEGACY_CONJURE_LOCK_REQUEST_FILE = "legacy";
+    private static final String WITH_METADATA_FILE = "with-metadata";
+    private static final boolean REWRITE_JSON_BLOBS = false;
+
+    private static final ConjureLockDescriptor LOCK_1 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("abc")));
+    private static final ConjureLockDescriptor LOCK_2 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("def")));
+    private static final ConjureLockDescriptor LOCK_3 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("ghi")));
+    private static final ConjureLockDescriptor LOCK_4 = ConjureLockDescriptor.of(Bytes.from(PtBytes.toBytes("jkl")));
+    private static final UUID REQUEST_ID = new UUID(1337, 42);
+    private static final int ACQUIRE_TIMEOUT_MS = 100;
+    private static final String CLIENT_DESCRIPTION = "client: test, thread: test";
+    private static final LegacyConjureLockRequest LEGACY_CONJURE_LOCK_REQUEST = LegacyConjureLockRequest.builder()
+            .requestId(REQUEST_ID)
+            .lockDescriptors(ImmutableSet.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4))
+            .acquireTimeoutMs(ACQUIRE_TIMEOUT_MS)
+            .clientDescription(CLIENT_DESCRIPTION)
+            .build();
+    private static final ConjureLockRequest DEFAULT_CONJURE_LOCK_REQUEST = ConjureLockRequest.builder()
+            .requestId(REQUEST_ID)
+            .lockDescriptors(ImmutableList.of(LOCK_1, LOCK_2, LOCK_3, LOCK_4))
+            .acquireTimeoutMs(ACQUIRE_TIMEOUT_MS)
+            .clientDescription(CLIENT_DESCRIPTION)
+            .build();
+
+    private static final byte[] BYTES_OLD = PtBytes.toBytes("old");
+    private static final byte[] BYTES_NEW = PtBytes.toBytes("new");
+    private static final byte[] BYTES_DELETED = PtBytes.toBytes("deleted");
+    private static final byte[] BYTES_CREATED = PtBytes.toBytes("created");
+    // The checksum on this does not have to be correct since the integrity check is performed by the server and not
+    // by Conjure itself
+    private static final ConjureLockRequestMetadata CONJURE_LOCK_REQUEST_METADATA = ConjureLockRequestMetadata.of(
+            ImmutableMap.of(
+                    0,
+                    ConjureChangeMetadata.unchanged(ConjureUnchangedChangeMetadata.of()),
+                    1,
+                    ConjureChangeMetadata.updated(
+                            ConjureUpdatedChangeMetadata.of(Bytes.from(BYTES_OLD), Bytes.from(BYTES_NEW))),
+                    2,
+                    ConjureChangeMetadata.deleted(ConjureDeletedChangeMetadata.of(Bytes.from(BYTES_DELETED))),
+                    3,
+                    ConjureChangeMetadata.created(ConjureCreatedChangeMetadata.of(Bytes.from(BYTES_CREATED)))),
+            ConjureLockDescriptorListChecksum.of(0, Bytes.from(PtBytes.toBytes("test-checksum-value"))));
+
+    // AtlasDB (Client) serializes and TimeLock (Server) deserializes ConjureLockRequest objects.
+    // These are the respective mappers used internally by Conjure.
+    private static final ObjectMapper SERIALIZATION_MAPPER =
+            ObjectMappers.newClientObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
+    private static final ObjectMapper DESERIALIZATION_MAPPER =
+            ObjectMappers.newServerObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
+    // This mapper is used to ensure that two JSONs are equal excluding indentation
+    private static final ObjectMapper VERIFYING_MAPPER = new ObjectMapper();
+
+    @Test
+    public void oldConjureLockRequestSerializesDeserializes() {
+        assertSerializedEquals(LEGACY_CONJURE_LOCK_REQUEST, LEGACY_CONJURE_LOCK_REQUEST_FILE);
+        assertDeserializedEquals(
+                LEGACY_CONJURE_LOCK_REQUEST_FILE, LEGACY_CONJURE_LOCK_REQUEST, LegacyConjureLockRequest.class);
+    }
+
+    @Test
+    public void absentMetadataSerializesDeserializes() {
+        // Because we use the Conjure configuration "excludeEmptyOptionals = true", we omit fields with empty optionals
+        // during serialization instead of setting them to null.
+        assertSerializedEquals(DEFAULT_CONJURE_LOCK_REQUEST, LEGACY_CONJURE_LOCK_REQUEST_FILE);
+        assertDeserializedEquals(
+                LEGACY_CONJURE_LOCK_REQUEST_FILE, DEFAULT_CONJURE_LOCK_REQUEST, ConjureLockRequest.class);
+    }
+
+    @Test
+    public void presentMetadataSerializesDeserializes() {
+        ConjureLockRequest requestWithMetadata = ConjureLockRequest.builder()
+                .from(DEFAULT_CONJURE_LOCK_REQUEST)
+                .metadata(CONJURE_LOCK_REQUEST_METADATA)
+                .build();
+        assertSerializedEquals(requestWithMetadata, WITH_METADATA_FILE);
+        assertDeserializedEquals(WITH_METADATA_FILE, requestWithMetadata, ConjureLockRequest.class);
+    }
+
+    @Test
+    public void newServerCanHandleMissingMetadata() {
+        assertDeserializedEquals(
+                LEGACY_CONJURE_LOCK_REQUEST_FILE, DEFAULT_CONJURE_LOCK_REQUEST, ConjureLockRequest.class);
+    }
+
+    @Test
+    public void oldServerCanHandlePresentMetadata() {
+        // Because we use the Conjure configuration "strictObjects = false", our Conjure objects actually ignore
+        // unknown properties, even on the server side.
+        assertDeserializedEquals(WITH_METADATA_FILE, LEGACY_CONJURE_LOCK_REQUEST, LegacyConjureLockRequest.class);
+    }
+
+    private static <T> void assertSerializedEquals(T object, String jsonFileName) {
+        try {
+            Path path = getJsonPath(jsonFileName);
+            if (REWRITE_JSON_BLOBS) {
+                SERIALIZATION_MAPPER.writeValue(path.toFile(), object);
+            }
+            String serialized = SERIALIZATION_MAPPER.writeValueAsString(object);
+            assertThat(VERIFYING_MAPPER.readTree(serialized))
+                    .as("Serialization yields semantically identical JSON representation")
+                    .isEqualTo(VERIFYING_MAPPER.readTree(Files.readString(path)));
+        } catch (IOException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private static <T> void assertDeserializedEquals(String jsonFileName, T object, Class<T> clazz) {
+        try {
+            assertThat(DESERIALIZATION_MAPPER.readValue(Files.readString(getJsonPath(jsonFileName)), clazz))
+                    .as("Deserialization yields identical object")
+                    .isEqualTo(object);
+        } catch (IOException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private static Path getJsonPath(String jsonFileName) {
+        return Paths.get(BASE, jsonFileName + ".json");
+    }
+}u}(jn (4b6b7e1a40067dbc572e6bd05e38e2b7a38abef2j o Ztimelock-api/src/test/java/com/palantir/atlasdb/timelock/api/LegacyConjureLockRequest.javaj"o addedjo M
jo K j$o M
j%o https://github.com/palantir/atlasdb/blob/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FLegacyConjureLockRequest.javaj'o https://github.com/palantir/atlasdb/raw/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FLegacyConjureLockRequest.javaj)o https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fapi%2FLegacyConjureLockRequest.java?ref=bfe7051211ad42fc0f3f59928e8602f422bf630bj+o Xk(  @@ -0,0 +1,266 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.timelock.api;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonSetter;
+import com.fasterxml.jackson.annotation.Nulls;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.palantir.conjure.java.lib.internal.ConjureCollections;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.Safe;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.Unsafe;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.LinkedHashSet;
+import java.util.List;
+import java.util.Optional;
+import java.util.Set;
+import java.util.UUID;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+import javax.annotation.processing.Generated;
+
+// Copy of Conjure-generated file and prefixed with "Legcacy" to avoid conflicts
+@Unsafe
+@JsonDeserialize(builder = LegacyConjureLockRequest.Builder.class)
+@Generated("com.palantir.conjure.java.types.BeanGenerator")
+public final class LegacyConjureLockRequest {
+    private final UUID requestId;
+
+    private final Set<ConjureLockDescriptor> lockDescriptors;
+
+    private final int acquireTimeoutMs;
+
+    private final Optional<String> clientDescription;
+
+    private int memoizedHashCode;
+
+    private LegacyConjureLockRequest(
+            UUID requestId,
+            Set<ConjureLockDescriptor> lockDescriptors,
+            int acquireTimeoutMs,
+            Optional<String> clientDescription) {
+        validateFields(requestId, lockDescriptors, clientDescription);
+        this.requestId = requestId;
+        this.lockDescriptors = Collections.unmodifiableSet(lockDescriptors);
+        this.acquireTimeoutMs = acquireTimeoutMs;
+        this.clientDescription = clientDescription;
+    }
+
+    @JsonProperty("requestId")
+    @Safe
+    public UUID getRequestId() {
+        return this.requestId;
+    }
+
+    @JsonProperty("lockDescriptors")
+    public Set<ConjureLockDescriptor> getLockDescriptors() {
+        return this.lockDescriptors;
+    }
+
+    @JsonProperty("acquireTimeoutMs")
+    @Safe
+    public int getAcquireTimeoutMs() {
+        return this.acquireTimeoutMs;
+    }
+
+    @JsonProperty("clientDescription")
+    @Unsafe
+    public Optional<String> getClientDescription() {
+        return this.clientDescription;
+    }
+
+    @Override
+    public boolean equals(@Nullable Object other) {
+        return this == other
+                || (other instanceof LegacyConjureLockRequest && equalTo((LegacyConjureLockRequest) other));
+    }
+
+    private boolean equalTo(LegacyConjureLockRequest other) {
+        if (this.memoizedHashCode != 0
+                && other.memoizedHashCode != 0
+                && this.memoizedHashCode != other.memoizedHashCode) {
+            return false;
+        }
+        return this.requestId.equals(other.requestId)
+                && this.lockDescriptors.equals(other.lockDescriptors)
+                && this.acquireTimeoutMs == other.acquireTimeoutMs
+                && this.clientDescription.equals(other.clientDescription);
+    }
+
+    @Override
+    public int hashCode() {
+        int result = memoizedHashCode;
+        if (result == 0) {
+            int hash = 1;
+            hash = 31 * hash + this.requestId.hashCode();
+            hash = 31 * hash + this.lockDescriptors.hashCode();
+            hash = 31 * hash + this.acquireTimeoutMs;
+            hash = 31 * hash + this.clientDescription.hashCode();
+            result = hash;
+            memoizedHashCode = result;
+        }
+        return result;
+    }
+
+    @Override
+    @Unsafe
+    public String toString() {
+        return "OldConjureLockRequest{requestId: " + requestId + ", lockDescriptors: " + lockDescriptors
+                + ", acquireTimeoutMs: " + acquireTimeoutMs + ", clientDescription: " + clientDescription + '}';
+    }
+
+    private static void validateFields(
+            UUID requestId, Set<ConjureLockDescriptor> lockDescriptors, Optional<String> clientDescription) {
+        List<String> missingFields = null;
+        missingFields = addFieldIfMissing(missingFields, requestId, "requestId");
+        missingFields = addFieldIfMissing(missingFields, lockDescriptors, "lockDescriptors");
+        missingFields = addFieldIfMissing(missingFields, clientDescription, "clientDescription");
+        if (missingFields != null) {
+            throw new SafeIllegalArgumentException(
+                    "Some required fields have not been set", SafeArg.of("missingFields", missingFields));
+        }
+    }
+
+    private static List<String> addFieldIfMissing(List<String> prev, Object fieldValue, String fieldName) {
+        List<String> missingFields = prev;
+        if (fieldValue == null) {
+            if (missingFields == null) {
+                missingFields = new ArrayList<>(3);
+            }
+            missingFields.add(fieldName);
+        }
+        return missingFields;
+    }
+
+    public static Builder builder() {
+        return new Builder();
+    }
+
+    @Generated("com.palantir.conjure.java.types.BeanBuilderGenerator")
+    @JsonIgnoreProperties(ignoreUnknown = true)
+    public static final class Builder {
+        boolean _buildInvoked;
+
+        private @Safe UUID requestId;
+
+        private Set<ConjureLockDescriptor> lockDescriptors = new LinkedHashSet<>();
+
+        private @Safe int acquireTimeoutMs;
+
+        private Optional<@Unsafe String> clientDescription = Optional.empty();
+
+        private boolean _acquireTimeoutMsInitialized = false;
+
+        private Builder() {}
+
+        public Builder from(LegacyConjureLockRequest other) {
+            checkNotBuilt();
+            requestId(other.getRequestId());
+            lockDescriptors(other.getLockDescriptors());
+            acquireTimeoutMs(other.getAcquireTimeoutMs());
+            clientDescription(other.getClientDescription());
+            return this;
+        }
+
+        @JsonSetter("requestId")
+        public Builder requestId(@Nonnull @Safe UUID requestId) {
+            checkNotBuilt();
+            this.requestId = Preconditions.checkNotNull(requestId, "requestId cannot be null");
+            return this;
+        }
+
+        @JsonSetter(value = "lockDescriptors", nulls = Nulls.SKIP)
+        public Builder lockDescriptors(@Nonnull Iterable<ConjureLockDescriptor> lockDescriptors) {
+            checkNotBuilt();
+            this.lockDescriptors = ConjureCollections.newLinkedHashSet(
+                    Preconditions.checkNotNull(lockDescriptors, "lockDescriptors cannot be null"));
+            return this;
+        }
+
+        public Builder addAllLockDescriptors(@Nonnull Iterable<ConjureLockDescriptor> lockDescriptors) {
+            checkNotBuilt();
+            ConjureCollections.addAll(
+                    this.lockDescriptors,
+                    Preconditions.checkNotNull(lockDescriptors, "lockDescriptors cannot be null"));
+            return this;
+        }
+
+        public Builder lockDescriptors(ConjureLockDescriptor lockDescriptors) {
+            checkNotBuilt();
+            this.lockDescriptors.add(lockDescriptors);
+            return this;
+        }
+
+        @JsonSetter("acquireTimeoutMs")
+        public Builder acquireTimeoutMs(@Safe int acquireTimeoutMs) {
+            checkNotBuilt();
+            this.acquireTimeoutMs = acquireTimeoutMs;
+            this._acquireTimeoutMsInitialized = true;
+            return this;
+        }
+
+        @JsonSetter(value = "clientDescription", nulls = Nulls.SKIP)
+        public Builder clientDescription(@Nonnull Optional<@Unsafe String> clientDescription) {
+            checkNotBuilt();
+            this.clientDescription = Preconditions.checkNotNull(clientDescription, "clientDescription cannot be null");
+            return this;
+        }
+
+        public Builder clientDescription(@Nonnull @Unsafe String clientDescription) {
+            checkNotBuilt();
+            this.clientDescription =
+                    Optional.of(Preconditions.checkNotNull(clientDescription, "clientDescription cannot be null"));
+            return this;
+        }
+
+        private void validatePrimitiveFieldsHaveBeenInitialized() {
+            List<String> missingFields = null;
+            missingFields = addFieldIfMissing(missingFields, _acquireTimeoutMsInitialized, "acquireTimeoutMs");
+            if (missingFields != null) {
+                throw new SafeIllegalArgumentException(
+                        "Some required fields have not been set", SafeArg.of("missingFields", missingFields));
+            }
+        }
+
+        private static List<String> addFieldIfMissing(List<String> prev, boolean initialized, String fieldName) {
+            List<String> missingFields = prev;
+            if (!initialized) {
+                if (missingFields == null) {
+                    missingFields = new ArrayList<>(1);
+                }
+                missingFields.add(fieldName);
+            }
+            return missingFields;
+        }
+
+        public LegacyConjureLockRequest build() {
+            checkNotBuilt();
+            this._buildInvoked = true;
+            validatePrimitiveFieldsHaveBeenInitialized();
+            return new LegacyConjureLockRequest(requestId, lockDescriptors, acquireTimeoutMs, clientDescription);
+        }
+
+        private void checkNotBuilt() {
+            Preconditions.checkState(!_buildInvoked, "Build has already been called");
+        }
+    }
+}u}(jn (e1b7813afcfedd61b6686b1bab138e5f151ea739j o Ltimelock-api/src/test/resources/conjure-lock-request-wire-format/legacy.jsonj"o addedjo Kjo K j$o Kj%o https://github.com/palantir/atlasdb/blob/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Flegacy.jsonj'o https://github.com/palantir/atlasdb/raw/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Flegacy.jsonj)o https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Flegacy.json?ref=bfe7051211ad42fc0f3f59928e8602f422bf630bj+o @@ -0,0 +1,6 @@
+{
+  "requestId" : "00000000-0000-0539-0000-00000000002a",
+  "lockDescriptors" : [ "YWJj", "ZGVm", "Z2hp", "amts" ],
+  "acquireTimeoutMs" : 100,
+  "clientDescription" : "client: test, thread: test"
+}
\ No newline at end of fileu}(jn (56e0e9f551398a56e8c56e758c6eab6f6d5a6072j o Stimelock-api/src/test/resources/conjure-lock-request-wire-format/with-metadata.jsonj"o addedjo K%jo K j$o K%j%o https://github.com/palantir/atlasdb/blob/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fwith-metadata.jsonj'o https://github.com/palantir/atlasdb/raw/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fwith-metadata.jsonj)o https://api.github.com/repos/palantir/atlasdb/contents/timelock-api%2Fsrc%2Ftest%2Fresources%2Fconjure-lock-request-wire-format%2Fwith-metadata.json?ref=bfe7051211ad42fc0f3f59928e8602f422bf630bj+o X  @@ -0,0 +1,37 @@
+{
+  "requestId" : "00000000-0000-0539-0000-00000000002a",
+  "lockDescriptors" : [ "YWJj", "ZGVm", "Z2hp", "amts" ],
+  "acquireTimeoutMs" : 100,
+  "clientDescription" : "client: test, thread: test",
+  "metadata" : {
+    "indexToChangeMetadata" : {
+      "0" : {
+        "type" : "unchanged",
+        "unchanged" : { }
+      },
+      "1" : {
+        "type" : "updated",
+        "updated" : {
+          "oldValue" : "b2xk",
+          "newValue" : "bmV3"
+        }
+      },
+      "2" : {
+        "type" : "deleted",
+        "deleted" : {
+          "oldValue" : "ZGVsZXRlZA=="
+        }
+      },
+      "3" : {
+        "type" : "created",
+        "created" : {
+          "newValue" : "Y3JlYXRlZA=="
+        }
+      }
+    },
+    "lockListChecksum" : {
+      "typeId" : 0,
+      "value" : "dGVzdC1jaGVja3N1bS12YWx1ZQ=="
+    }
+  }
+}
\ No newline at end of fileu}(jn (b8c7fe17976b2dba7ec9f678d87a104b61a8622dj o Vtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/ConjureTimelockResource.javaj"o modifiedjo Kjo Kj$o Kj%o https://github.com/palantir/atlasdb/blob/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FConjureTimelockResource.javaj'o https://github.com/palantir/atlasdb/raw/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FConjureTimelockResource.javaj)o https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FConjureTimelockResource.java?ref=bfe7051211ad42fc0f3f59928e8602f422bf630bj+o X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.timelock;
 
 import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Sets;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
@@ -68,9 +69,13 @@
 import com.palantir.lock.v2.RefreshLockResponseV2;
 import com.palantir.lock.v2.WaitForLocksRequest;
 import com.palantir.lock.v2.WaitForLocksResponse;
+import com.palantir.lock.watch.ConjureLockRequestMetadataUtils;
+import com.palantir.lock.watch.ConjureLockRequestMetadataUtils.ConjureMetadataConversionResult;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchVersion;
 import com.palantir.timestamp.TimestampRange;
 import com.palantir.tokens.auth.AuthHeader;
+import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.function.Function;
@@ -145,11 +150,19 @@ public ListenableFuture<LeaderTime> leaderTime(AuthHeader authHeader, String nam
     public ListenableFuture<ConjureLockResponse> lock(
             AuthHeader authHeader, String namespace, ConjureLockRequest request) {
         return handleExceptions(() -> {
+            List<LockDescriptor> lockDescriptors = fromConjureLockDescriptors(request.getLockDescriptors());
+            Optional<LockRequestMetadata> metadata = request.getMetadata()
+                    .map(conjureMetadata -> ConjureLockRequestMetadataUtils.fromConjureIndexEncoded(
+                            ConjureMetadataConversionResult.builder()
+                                    .conjureMetadata(conjureMetadata)
+                                    .lockList(lockDescriptors)
+                                    .build()));
             IdentifiedLockRequest lockRequest = ImmutableIdentifiedLockRequest.builder()
-                    .lockDescriptors(fromConjureLockDescriptors(request.getLockDescriptors()))
+                    .lockDescriptors(lockDescriptors)
                     .clientDescription(request.getClientDescription())
                     .requestId(request.getRequestId())
                     .acquireTimeoutMs(request.getAcquireTimeoutMs())
+                    .metadata(metadata)
                     .build();
             ListenableFuture<LockResponseV2> tokenFuture =
                     forNamespace(namespace).lock(lockRequest);
@@ -182,12 +195,13 @@ public ListenableFuture<ConjureWaitForLocksResponse> waitForLocks(
         });
     }
 
-    private static Set<LockDescriptor> fromConjureLockDescriptors(Set<ConjureLockDescriptor> lockDescriptors) {
-        Set<LockDescriptor> descriptors = Sets.newHashSetWithExpectedSize(lockDescriptors.size());
+    private static List<LockDescriptor> fromConjureLockDescriptors(List<ConjureLockDescriptor> lockDescriptors) {
+        ImmutableList.Builder<LockDescriptor> descriptors =
+                ImmutableList.builderWithExpectedSize(lockDescriptors.size());
         for (ConjureLockDescriptor descriptor : lockDescriptors) {
             descriptors.add(ByteArrayLockDescriptor.of(descriptor.get().asNewByteArray()));
         }
-        return descriptors;
+        return descriptors.build();
     }
 
     @Overrideu}(jn (08876923395e82027205da60a8814a680cbfd019j o atimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImpl.javaj"o modifiedjo Kjo Kj$o Kj%o https://github.com/palantir/atlasdb/blob/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj'o https://github.com/palantir/atlasdb/raw/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.javaj)o https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImpl.java?ref=bfe7051211ad42fc0f3f59928e8602f422bf630bj+o X  @@ -193,15 +193,18 @@ private static Optional<LockRequestMetadata> filterMetadataBasedOnFilteredLocks(
             Optional<LockRequestMetadata> unfilteredMetadata) {
         return unfilteredMetadata
                 .map(LockRequestMetadata::lockDescriptorToChangeMetadata)
-                .map(unfilteredLockMetadata -> {
+                .flatMap(unfilteredLockMetadata -> {
                     Map<LockDescriptor, ChangeMetadata> filteredLockMetadata = KeyedStream.ofEntries(
                                     unfilteredLockMetadata.entrySet().stream())
                             .filterKeys(lockDescriptor -> {
                                 assert unfilteredLocks.contains(lockDescriptor) : "Unknown lock descriptor in metadata";
                                 return filteredLocks.contains(lockDescriptor);
                             })
                             .collectToMap();
-                    return LockRequestMetadata.of(filteredLockMetadata);
+                    if (filteredLockMetadata.isEmpty()) {
+                        return Optional.empty();
+                    }
+                    return Optional.of(LockRequestMetadata.of(filteredLockMetadata));
                 });
     }
 }u}(jn (2b250b7d920d2bfcc7d3ce072eaed3742cfb4a00j o etimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/watch/LockWatchingServiceImplTest.java@	     j"o modifiedjo K'jo K j$o K'j%o https://github.com/palantir/atlasdb/blob/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaj'o https://github.com/palantir/atlasdb/raw/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.javaj)o https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2Fwatch%2FLockWatchingServiceImplTest.java?ref=bfe7051211ad42fc0f3f59928e8602f422bf630bj+o Xk	  @@ -342,6 +342,45 @@ public void unlockWithoutLockTest() {
         assertLoggedEvents(expectedEvents);
     }
 
+    @Test
+    public void sparseMetadataIsFiltered() {
+        LockDescriptor cellOutOfRange = AtlasCellLockDescriptor.of(TABLE_2.getQualifiedName(), ROW, ROW);
+        LockDescriptor rowInRange = AtlasRowLockDescriptor.of(TABLE.getQualifiedName(), ROW);
+        LockDescriptor rowOutOfRange = AtlasRowLockDescriptor.of(TABLE_2.getQualifiedName(), ROW);
+
+        LockWatchRequest tableRequest = tableRequest();
+        lockWatcher.startWatching(tableRequest);
+
+        ImmutableSet<LockDescriptor> locks =
+                ImmutableSet.of(CELL_DESCRIPTOR, cellOutOfRange, rowInRange, rowOutOfRange);
+        lockWatcher.registerLock(
+                locks, TOKEN, createMetadataForLocks(ImmutableSet.of(CELL_DESCRIPTOR, cellOutOfRange)));
+
+        ImmutableSet<LockDescriptor> expectedFilteredLocks =
+                ImmutableSet.of(ROW_DESCRIPTOR, CELL_DESCRIPTOR, rowInRange);
+        List<LockWatchEvent> expectedEvents = ImmutableList.of(
+                createdEvent(tableRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
+                lockEvent(expectedFilteredLocks, createMetadataForLocks(ImmutableSet.of(CELL_DESCRIPTOR))));
+        assertLoggedEvents(expectedEvents);
+    }
+
+    @Test
+    public void metadataIsRemovedIfMapEmptyAfterFiltering() {
+        LockDescriptor rowOutOfRange = AtlasRowLockDescriptor.of(TABLE_2.getQualifiedName(), ROW);
+
+        LockWatchRequest tableRequest = tableRequest();
+        lockWatcher.startWatching(tableRequest);
+
+        ImmutableSet<LockDescriptor> locks = ImmutableSet.of(CELL_DESCRIPTOR, rowOutOfRange);
+        lockWatcher.registerLock(locks, TOKEN, createMetadataForLocks(ImmutableSet.of(rowOutOfRange)));
+
+        ImmutableSet<LockDescriptor> expectedFilteredLocks = ImmutableSet.of(CELL_DESCRIPTOR);
+        List<LockWatchEvent> expectedEvents = ImmutableList.of(
+                createdEvent(tableRequest.getReferences(), ImmutableSet.of(ROW_DESCRIPTOR)),
+                lockEvent(expectedFilteredLocks, Optional.empty()));
+        assertLoggedEvents(expectedEvents);
+    }
+
     private LockWatchEvent createdEvent(Set<LockWatchReference> references, Set<LockDescriptor> descriptors) {
         return LockWatchCreatedEvent.builder(references, descriptors).build(sequenceCounter++);
     }u}(jn (15264463d051884bdaed57931b81becc7a3a36a3j o ftimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/AsyncTimeLockServiceMetadataTest.javaj"o modifiedjo Kjo K'j$o K3j%o https://github.com/palantir/atlasdb/blob/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj'o https://github.com/palantir/atlasdb/raw/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.javaj)o https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FAsyncTimeLockServiceMetadataTest.java?ref=bfe7051211ad42fc0f3f59928e8602f422bf630bj+o Xi  @@ -18,9 +18,9 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatException;
+import static org.assertj.core.api.Assertions.fail;
 
 import com.codahale.metrics.MetricRegistry;
-import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.util.concurrent.ListenableFuture;
@@ -38,32 +38,22 @@
 import com.palantir.lock.client.IdentifiedLockRequest;
 import com.palantir.lock.client.ImmutableIdentifiedLockRequest;
 import com.palantir.lock.watch.ChangeMetadata;
-import com.palantir.lock.watch.LockEvent;
 import com.palantir.lock.watch.LockRequestMetadata;
-import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
 import com.palantir.lock.watch.LockWatchReferences;
 import com.palantir.lock.watch.LockWatchStateUpdate;
-import com.palantir.lock.watch.LockWatchStateUpdate.Snapshot;
-import com.palantir.lock.watch.LockWatchStateUpdate.Success;
-import com.palantir.lock.watch.UnlockEvent;
 import com.palantir.timestamp.InMemoryTimestampService;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
 import java.util.UUID;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.ScheduledExecutorService;
-import java.util.stream.Collectors;
 import org.jmock.lib.concurrent.DeterministicScheduler;
 import org.junit.Before;
 import org.junit.Test;
 
 public class AsyncTimeLockServiceMetadataTest {
-    private static final LockWatchEventVisitor LOCK_WATCH_EVENT_VISITOR = new LockWatchEventVisitor();
-    private static final LockWatchStateUpdateVisitor LOCK_WATCH_STATE_UPDATE_VISITOR =
-            new LockWatchStateUpdateVisitor();
-
     private static final String WATCHED_TABLE_NAME = "watched-table";
     private static final LockDescriptor WATCHED_LOCK =
             AtlasRowLockDescriptor.of(WATCHED_TABLE_NAME, PtBytes.toBytes("lock1"));
@@ -146,50 +136,33 @@ public void cannotPassDownMetadataForUnknownLockDescriptors() {
     }
 
     private List<Optional<LockRequestMetadata>> getAllLockEventsMetadata() {
-        return getAllLockWatchEvents().stream()
-                .map(event -> event.accept(LOCK_WATCH_EVENT_VISITOR))
-                .flatMap(Optional::stream)
-                .map(LockEvent::metadata)
-                .collect(Collectors.toList());
+        return LockWatchIntegrationTestUtilities.extractMetadata(getAllLockWatchEvents());
     }
 
     private List<LockWatchEvent> getAllLockWatchEvents() {
         ListenableFuture<ConjureStartTransactionsResponse> responseFuture =
                 timeLockService.startTransactionsWithWatches(startTransactionsRequestWithInitialVersion);
-        return AtlasFutures.getUnchecked(responseFuture).getLockWatchUpdate().accept(LOCK_WATCH_STATE_UPDATE_VISITOR);
+        return AtlasFutures.getUnchecked(responseFuture)
+                .getLockWatchUpdate()
+                .accept(AssertSuccessVisitor.INSTANCE)
+                .events();
     }
 
     private static IdentifiedLockRequest standardRequestWithMetadata(Map<LockDescriptor, ChangeMetadata> metadata) {
         return IdentifiedLockRequest.of(metadata.keySet(), 1000, "testClient", LockRequestMetadata.of(metadata));
     }
 
-    private static final class LockWatchEventVisitor implements LockWatchEvent.Visitor<Optional<LockEvent>> {
-        @Override
-        public Optional<LockEvent> visit(LockEvent lockEvent) {
-            return Optional.of(lockEvent);
-        }
-
-        @Override
-        public Optional<LockEvent> visit(UnlockEvent unlockEvent) {
-            return Optional.empty();
-        }
-
-        @Override
-        public Optional<LockEvent> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
-            return Optional.empty();
-        }
-    }
+    private enum AssertSuccessVisitor implements LockWatchStateUpdate.Visitor<LockWatchStateUpdate.Success> {
+        INSTANCE;
 
-    private static final class LockWatchStateUpdateVisitor
-            implements LockWatchStateUpdate.Visitor<List<LockWatchEvent>> {
         @Override
-        public List<LockWatchEvent> visit(Success success) {
-            return success.events();
+        public LockWatchStateUpdate.Success visit(LockWatchStateUpdate.Success success) {
+            return success;
         }
 
         @Override
-        public List<LockWatchEvent> visit(Snapshot snapshot) {
-            return ImmutableList.of();
+        public LockWatchStateUpdate.Success visit(LockWatchStateUpdate.Snapshot snapshot) {
+            return fail("Unexpected snapshot");
         }
     }
 }u}(jn (3dfb5b7f1909e36d9a30ffc83f18e7231000c611j o ctimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchEventIntegrationTest.javaj"o modifiedjo K<jo K j$o K<j%o https://github.com/palantir/atlasdb/blob/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javaj'o https://github.com/palantir/atlasdb/raw/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.javaj)o https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchEventIntegrationTest.java?ref=bfe7051211ad42fc0f3f59928e8602f422bf630bj+o XM  @@ -40,9 +40,15 @@
 import com.palantir.atlasdb.transaction.impl.PreCommitConditions;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.lock.AtlasCellLockDescriptor;
+import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.v2.ImmutableLockRequest;
+import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.v2.LockResponse;
+import com.palantir.lock.watch.ChangeMetadata;
 import com.palantir.lock.watch.CommitUpdate;
 import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
 import com.palantir.lock.watch.LockWatchReferences;
@@ -54,6 +60,7 @@
 import com.palantir.timelock.config.PaxosInstallConfiguration;
 import java.nio.charset.StandardCharsets;
 import java.util.Collection;
+import java.util.List;
 import java.util.Map;
 import java.util.Optional;
 import java.util.Set;
@@ -251,6 +258,34 @@ public void leaderElectionDuringTransactionCausesTransactionToFailRetriably() {
                 .doesNotThrowAnyException();
     }
 
+    @Test
+    public void absentMetadataIsVisibleToTransaction() {
+        LockRequest requestWithoutMetadata = createTestLockRequest(
+                ImmutableSet.of(AtlasRowLockDescriptor.of(TABLE_REF.getQualifiedName(), ROW)), Optional.empty());
+        assertThat(lockAndGetEventMetadataFromLockWatchLog(requestWithoutMetadata))
+                .isEmpty();
+    }
+
+    @Test
+    public void nonEmptyMetadataIsVisibleToTransactionForWatchedTable() {
+        LockDescriptor lock1 =
+                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_1.getRowName(), CELL_1.getColumnName());
+        LockDescriptor lock2 =
+                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_2.getRowName(), CELL_2.getColumnName());
+        LockDescriptor lock3 =
+                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_3.getRowName(), CELL_3.getColumnName());
+        LockDescriptor lock4 =
+                AtlasCellLockDescriptor.of(TABLE_REF.getQualifiedName(), CELL_4.getRowName(), CELL_4.getColumnName());
+        LockRequestMetadata metadata = LockRequestMetadata.of(ImmutableMap.of(
+                lock1, ChangeMetadata.created(DATA_1),
+                lock2, ChangeMetadata.deleted(DATA_2),
+                lock3, ChangeMetadata.unchanged(),
+                lock4, ChangeMetadata.updated(DATA_3, DATA_4)));
+        LockRequest requestWithMetadata =
+                createTestLockRequest(ImmutableSet.of(lock1, lock2, lock3, lock4), Optional.of(metadata));
+        assertThat(lockAndGetEventMetadataFromLockWatchLog(requestWithMetadata)).contains(metadata);
+    }
+
     private Runnable performWriteTransactionThatBlocksAfterLockingCells() {
         CountDownLatch endOfTest = new CountDownLatch(1);
         CountDownLatch inCommitBlock = new CountDownLatch(1);
@@ -359,6 +394,31 @@ private Set<LockDescriptor> getDescriptors(TableReference tableRef, Cell... cell
                 .collect(Collectors.toSet());
     }
 
+    private Optional<LockRequestMetadata> lockAndGetEventMetadataFromLockWatchLog(LockRequest lockRequest) {
+        LockWatchVersion currentVersion = getCurrentVersion();
+        LockResponse response = txnManager.getTimelockService().lock(lockRequest);
+        // We need to clean up the lock, otherwise it will be held forever (the TimeLock cluster is static)!
+        txnManager.getTimelockService().unlock(ImmutableSet.of(response.getToken()));
+        OpenTransaction newTxn = startSingleTransaction();
+        List<LockWatchEvent> lockWatchEvents =
+                getUpdateForTransactions(Optional.of(currentVersion), newTxn).events();
+        newTxn.abort();
+        List<Optional<LockRequestMetadata>> metadataList =
+                LockWatchIntegrationTestUtilities.extractMetadata(lockWatchEvents);
+        assertThat(metadataList).hasSize(1);
+        return metadataList.get(0);
+    }
+
+    private LockRequest createTestLockRequest(
+            Set<LockDescriptor> lockDescriptors, Optional<LockRequestMetadata> metadata) {
+        return ImmutableLockRequest.builder()
+                .lockDescriptors(lockDescriptors)
+                .clientDescription("test-client")
+                .acquireTimeoutMs(100)
+                .metadata(metadata)
+                .build();
+    }
+
     private Set<LockDescriptor> extractDescriptorsFromUpdate(CommitUpdate commitUpdate) {
         return filterDescriptors(commitUpdate.accept(new CommitUpdate.Visitor<>() {
             @Overrideu}(jn (a6850ec52c43c8d5ddc73b6a2c24f75bf3d70e64j o gtimelock-server/src/integTest/java/com/palantir/atlasdb/timelock/LockWatchIntegrationTestUtilities.javaj"o modifiedjo Kjo K j$o Kj%o https://github.com/palantir/atlasdb/blob/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchIntegrationTestUtilities.javaj'o https://github.com/palantir/atlasdb/raw/bfe7051211ad42fc0f3f59928e8602f422bf630b/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchIntegrationTestUtilities.javaj)o https://api.github.com/repos/palantir/atlasdb/contents/timelock-server%2Fsrc%2FintegTest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockWatchIntegrationTestUtilities.java?ref=bfe7051211ad42fc0f3f59928e8602f422bf630bj+o XD	  @@ -31,6 +31,7 @@
 import com.palantir.atlasdb.transaction.api.PreCommitCondition;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.lock.watch.LockEvent;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.lock.watch.LockWatchCreatedEvent;
 import com.palantir.lock.watch.LockWatchEvent;
 import com.palantir.lock.watch.LockWatchReferences;
@@ -43,6 +44,7 @@
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.function.BiFunction;
 import java.util.function.Predicate;
+import java.util.stream.Collectors;
 import org.awaitility.Awaitility;
 
 public final class LockWatchIntegrationTestUtilities {
@@ -105,6 +107,14 @@ public static LockWatchManagerInternal extractInternalLockWatchManager(Transacti
         return (LockWatchManagerInternal) txnManager.getLockWatchManager();
     }
 
+    public static List<Optional<LockRequestMetadata>> extractMetadata(List<LockWatchEvent> lockWatchEvents) {
+        return lockWatchEvents.stream()
+                .map(event -> event.accept(LockEventVisitor.INSTANCE))
+                .flatMap(Optional::stream)
+                .map(LockEvent::metadata)
+                .collect(Collectors.toList());
+    }
+
     public static TransactionManager createTransactionManager(
             double validationProbability, TestableTimelockCluster timelockCluster, String namespace) {
         return TimeLockTestUtils.createTransactionManager(
@@ -190,6 +200,25 @@ public Boolean visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
         }
     }
 
+    private enum LockEventVisitor implements LockWatchEvent.Visitor<Optional<LockEvent>> {
+        INSTANCE;
+
+        @Override
+        public Optional<LockEvent> visit(LockEvent lockEvent) {
+            return Optional.of(lockEvent);
+        }
+
+        @Override
+        public Optional<LockEvent> visit(UnlockEvent unlockEvent) {
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<LockEvent> visit(LockWatchCreatedEvent lockWatchCreatedEvent) {
+            return Optional.empty();
+        }
+    }
+
     /**
      * {@link PreCommitCondition} is actually run several times throughout a transaction - namely, before any read
      * if this is configured. When run at these times, the start timestamp is passed in. However, when the conditionueu(159b7e73db3bfc173f0e6e856e436965b6ae22df}(sha(159b7e73db3bfc173f0e6e856e436965b6ae22dfnode_idEC_kwDOAjP5fdoAKDE1OWI3ZTczZGIzYmZjMTczZjBlNmU4NTZlNDM2OTY1YjZhZTIyZGYcommit}(author}(namesvc-excavator-botemailsvc-excavator-bot@palantir.comdate2023-01-31T21:54:44Zu	committer}(jo svc-excavator-botjo svc-excavator-bot@palantir.comjo 2023-01-31T21:54:44Zumessage Excavator:  Upgrade dependenciestree}(jo (a54d49bb98892181358a6c97507db525935cd657url`https://api.github.com/repos/palantir/atlasdb/git/trees/a54d49bb98892181358a6c97507db525935cd657ujo bhttps://api.github.com/repos/palantir/atlasdb/git/commits/159b7e73db3bfc173f0e6e856e436965b6ae22df
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmPZjiQJEMmvEkpISILgAAAyhQEAo9pbkxhQMJ872IT/W1GxeT+O
vZKdPA+U0jDQf0gtDzMBANqEvkEhea7PVa2eEyRVdNtUt3C4zba5I1awip6QeEbG
=V003
-----END PGP SIGNATURE-----
payloadX  tree a54d49bb98892181358a6c97507db525935cd657
parent 9e49ae8233cdf73f0f42e2b9466cc4ae34b6e923
author svc-excavator-bot <svc-excavator-bot@palantir.com> 1675202084 +0000
committer svc-excavator-bot <svc-excavator-bot@palantir.com> 1675202084 +0000

Excavator:  Upgrade dependenciesuujo ^https://api.github.com/repos/palantir/atlasdb/commits/159b7e73db3bfc173f0e6e856e436965b6ae22dfhtml_urlShttps://github.com/palantir/atlasdb/commit/159b7e73db3bfc173f0e6e856e436965b6ae22dfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/159b7e73db3bfc173f0e6e856e436965b6ae22df/commentsjo }(loginsvc-excavator-botidJjo MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5jo .https://api.github.com/users/svc-excavator-botjo $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminujo }(jo svc-excavator-botjo Jjo MDQ6VXNlcjMzMjY2MzY4jo 4https://avatars.githubusercontent.com/u/33266368?v=4jo h5jo .https://api.github.com/users/svc-excavator-botjo $https://github.com/svc-excavator-botjo 8https://api.github.com/users/svc-excavator-bot/followersjo Ehttps://api.github.com/users/svc-excavator-bot/following{/other_user}jo >https://api.github.com/users/svc-excavator-bot/gists{/gist_id}jo Ehttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}jo <https://api.github.com/users/svc-excavator-bot/subscriptionsjo 3https://api.github.com/users/svc-excavator-bot/orgsjo 4https://api.github.com/users/svc-excavator-bot/reposjo ?https://api.github.com/users/svc-excavator-bot/events{/privacy}jo >https://api.github.com/users/svc-excavator-bot/received_eventsjo Userjo uparents]}(jo (9e49ae8233cdf73f0f42e2b9466cc4ae34b6e923jo ^https://api.github.com/repos/palantir/atlasdb/commits/9e49ae8233cdf73f0f42e2b9466cc4ae34b6e923jo Shttps://github.com/palantir/atlasdb/commit/9e49ae8233cdf73f0f42e2b9466cc4ae34b6e923uastats}(totalK	additionsK^	deletionsK]ufiles](}(jo (8c9bd4d4b2ea0e973f3b50b498c6406430a76269filename
versions.lockstatusmodifiedjp KPjp KOchangesKblob_url_https://github.com/palantir/atlasdb/blob/159b7e73db3bfc173f0e6e856e436965b6ae22df/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/159b7e73db3bfc173f0e6e856e436965b6ae22df/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=159b7e73db3bfc173f0e6e856e436965b6ae22dfpatchXO  @@ -8,9 +8,9 @@ com.boundary:high-scale-lib:1.0.6 (2 constraints: 9d14d4a0)
 com.clearspring.analytics:stream:2.5.2 (1 constraints: 970f7788)
 com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
-com.fasterxml.jackson.core:jackson-annotations:2.14.1 (24 constraints: bd81fea4)
-com.fasterxml.jackson.core:jackson-core:2.14.1 (22 constraints: abb5f844)
-com.fasterxml.jackson.core:jackson-databind:2.14.1 (37 constraints: 5bbad438)
+com.fasterxml.jackson.core:jackson-annotations:2.14.1 (24 constraints: be81d7a7)
+com.fasterxml.jackson.core:jackson-core:2.14.1 (22 constraints: acb5d245)
+com.fasterxml.jackson.core:jackson-databind:2.14.1 (37 constraints: f8b9d0e5)
 com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.1 (2 constraints: e1338f00)
 com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.1 (1 constraints: 7f1c9ca4)
 com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.1 (4 constraints: 2144822a)
@@ -25,7 +25,7 @@ com.fasterxml.jackson.module:jackson-module-afterburner:2.14.1 (1 constraints: 9
 com.fasterxml.jackson.module:jackson-module-blackbird:2.14.1 (1 constraints: b40e625e)
 com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.1 (2 constraints: d92e4169)
 com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.1 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.1 (13 constraints: 0dce07f2)
+com.github.ben-manes.caffeine:caffeine:3.1.2 (13 constraints: 12ce69f8)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -40,19 +40,19 @@ com.google.auto.service:auto-service:1.0.1 (1 constraints: 0405f135)
 com.google.auto.service:auto-service-annotations:1.0.1 (2 constraints: 3f146483)
 com.google.code.findbugs:findbugs-annotations:3.0.1 (1 constraints: 0605fb35)
 com.google.code.findbugs:jsr305:3.0.2 (43 constraints: 478dbcdc)
-com.google.dagger:dagger:2.44.1 (4 constraints: 2a2ffe82)
-com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
-com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
-com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
+com.google.dagger:dagger:2.44.2 (4 constraints: 2e2ff783)
+com.google.dagger:dagger-compiler:2.44.2 (1 constraints: 3e05493b)
+com.google.dagger:dagger-producers:2.44.2 (2 constraints: f41a1792)
+com.google.dagger:dagger-spi:2.44.2 (1 constraints: 820e375d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (23 constraints: 8f781fe2)
+com.google.errorprone:error_prone_annotations:2.10.0 (23 constraints: c376e8ec)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
 com.google.guava:guava:31.1-jre (48 constraints: ad379dcf)
 com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava (1 constraints: bd17c918)
 com.google.j2objc:j2objc-annotations:1.3 (1 constraints: b809eda0)
-com.google.protobuf:protobuf-java:3.21.9 (1 constraints: 4105453b)
+com.google.protobuf:protobuf-java:3.21.12 (1 constraints: 6b05a840)
 com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4 (1 constraints: 350f7769)
 com.googlecode.json-simple:json-simple:1.1 (1 constraints: 320f7469)
 com.googlecode.protobuf-java-format:protobuf-java-format:1.4 (1 constraints: a9041e2c)
@@ -67,12 +67,12 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:6.66.0 (5 constraints: a554a26e)
-com.palantir.conjure.java:conjure-undertow-annotations:6.66.0 (1 constraints: 44056d3b)
-com.palantir.conjure.java:conjure-undertow-lib:6.66.0 (2 constraints: 891c6fb0)
-com.palantir.conjure.java.api:errors:2.29.0 (6 constraints: 5169d179)
-com.palantir.conjure.java.api:service-config:2.29.0 (5 constraints: 824d29cf)
-com.palantir.conjure.java.api:ssl-config:2.29.0 (3 constraints: ea2af7a5)
+com.palantir.conjure.java:conjure-lib:6.68.0 (5 constraints: ab549471)
+com.palantir.conjure.java:conjure-undertow-annotations:6.68.0 (1 constraints: 44056d3b)
+com.palantir.conjure.java:conjure-undertow-lib:6.68.0 (2 constraints: 8b1c75b0)
+com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 45695472)
+com.palantir.conjure.java.api:service-config:2.34.0 (5 constraints: 724d95c9)
+com.palantir.conjure.java.api:ssl-config:2.34.0 (3 constraints: e22a61a3)
 com.palantir.conjure.java.runtime:client-config:7.39.0 (6 constraints: cc6b4639)
 com.palantir.conjure.java.runtime:conjure-java-annotations:7.39.0 (1 constraints: c918959e)
 com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.39.0 (2 constraints: cd21177b)
@@ -82,13 +82,13 @@ com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.39.0 (1 constrain
 com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.39.0 (1 constraints: c918959e)
 com.palantir.conjure.java.runtime:keystores:7.39.0 (3 constraints: 262aec60)
 com.palantir.conjure.java.runtime:refresh-utils:7.39.0 (2 constraints: 0d1e7745)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.71.0 (2 constraints: 7c294702)
-com.palantir.dialogue:dialogue-blocking-channels:3.71.0 (2 constraints: d523fdb2)
-com.palantir.dialogue:dialogue-clients:3.71.0 (1 constraints: 3d05503b)
-com.palantir.dialogue:dialogue-core:3.71.0 (3 constraints: 7a3de7e1)
-com.palantir.dialogue:dialogue-futures:3.71.0 (3 constraints: c833dcbc)
-com.palantir.dialogue:dialogue-serde:3.71.0 (3 constraints: b82e21a2)
-com.palantir.dialogue:dialogue-target:3.71.0 (7 constraints: 7d76f253)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.74.0 (2 constraints: 7f295002)
+com.palantir.dialogue:dialogue-blocking-channels:3.74.0 (2 constraints: db2399b3)
+com.palantir.dialogue:dialogue-clients:3.74.0 (1 constraints: 4005593b)
+com.palantir.dialogue:dialogue-core:3.74.0 (3 constraints: 803d89e2)
+com.palantir.dialogue:dialogue-futures:3.74.0 (3 constraints: d13392be)
+com.palantir.dialogue:dialogue-serde:3.74.0 (3 constraints: be2e92a3)
+com.palantir.dialogue:dialogue-target:3.74.0 (7 constraints: 8f767f5d)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -98,27 +98,27 @@ com.palantir.goethe:goethe:0.9.0 (1 constraints: 0b050636)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
 com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
-com.palantir.safe-logging:logger:3.2.0 (23 constraints: 74886d78)
+com.palantir.safe-logging:logger:3.2.0 (23 constraints: 7a884b7e)
 com.palantir.safe-logging:logger-slf4j:3.2.0 (1 constraints: 000e5942)
 com.palantir.safe-logging:logger-spi:3.2.0 (2 constraints: 0f1e997a)
-com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: 191828aa)
-com.palantir.safe-logging:safe-logging:3.2.0 (28 constraints: 34d3cb53)
+com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: 24189fc1)
+com.palantir.safe-logging:safe-logging:3.2.0 (28 constraints: 3dd34360)
 com.palantir.safethreadlocalrandom:safe-thread-local-random:0.1.0 (3 constraints: 933225f9)
 com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
 com.palantir.tokens:auth-tokens:3.16.0 (5 constraints: 445c018f)
 com.palantir.tracing:tracing:6.15.0 (8 constraints: eb7d2456)
 com.palantir.tracing:tracing-api:6.15.0 (5 constraints: 0f459cf3)
 com.palantir.tracing:tracing-jersey:6.15.0 (1 constraints: 441994bb)
-com.palantir.tritium:tritium-api:0.57.0 (6 constraints: 5c5223d4)
-com.palantir.tritium:tritium-caffeine:0.57.0 (1 constraints: 3e05483b)
-com.palantir.tritium:tritium-core:0.57.0 (5 constraints: 6743c520)
-com.palantir.tritium:tritium-lib:0.57.0 (1 constraints: 3e05483b)
-com.palantir.tritium:tritium-metrics:0.57.0 (7 constraints: 076c30e5)
-com.palantir.tritium:tritium-proxy:0.57.0 (1 constraints: 840e8859)
-com.palantir.tritium:tritium-registry:0.57.0 (12 constraints: 21d37368)
-com.palantir.tritium:tritium-slf4j:0.57.0 (2 constraints: c113e170)
-com.palantir.tritium:tritium-time:0.57.0 (1 constraints: 840e8859)
-com.palantir.tritium:tritium-tracing:0.57.0 (1 constraints: 840e8859)
+com.palantir.tritium:tritium-api:0.61.0 (6 constraints: 3e52b4c6)
+com.palantir.tritium:tritium-caffeine:0.61.0 (1 constraints: 39053a3b)
+com.palantir.tritium:tritium-core:0.61.0 (5 constraints: 4e43b517)
+com.palantir.tritium:tritium-lib:0.61.0 (1 constraints: 39053a3b)
+com.palantir.tritium:tritium-metrics:0.61.0 (7 constraints: e06b1ccf)
+com.palantir.tritium:tritium-proxy:0.61.0 (1 constraints: 7f0e7a59)
+com.palantir.tritium:tritium-registry:0.61.0 (12 constraints: efd2ee3e)
+com.palantir.tritium:tritium-slf4j:0.61.0 (2 constraints: b713f36f)
+com.palantir.tritium:tritium-time:0.61.0 (1 constraints: 7f0e7a59)
+com.palantir.tritium:tritium-tracing:0.61.0 (1 constraints: 7f0e7a59)
 com.squareup:javapoet:1.13.0 (4 constraints: 102cc1ed)
 com.squareup:kotlinpoet:1.11.0 (1 constraints: 6a0c7f0d)
 com.thinkaurelius.thrift:thrift-server:0.3.7 (1 constraints: 980f6c88)
@@ -155,36 +155,37 @@ io.dropwizard.metrics:metrics-jvm:4.2.12 (3 constraints: 1b2ec84e)
 io.dropwizard.metrics:metrics-logback:4.2.12 (1 constraints: b10e925e)
 io.dropwizard.metrics:metrics-servlets:4.2.12 (1 constraints: 730daf2c)
 io.leangen.geantyref:geantyref:1.3.13 (1 constraints: bb08bd94)
-io.netty:netty-all:4.1.85.Final (1 constraints: e21188fd)
-io.netty:netty-buffer:4.1.85.Final (14 constraints: 57d94af6)
-io.netty:netty-codec:4.1.85.Final (7 constraints: 5c5e624a)
-io.netty:netty-codec-dns:4.1.85.Final (2 constraints: aa199904)
-io.netty:netty-codec-haproxy:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-http:4.1.85.Final (2 constraints: 131acd1f)
-io.netty:netty-codec-http2:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-memcache:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-mqtt:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-redis:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-smtp:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-socks:4.1.85.Final (2 constraints: 131acd1f)
-io.netty:netty-codec-stomp:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-codec-xml:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-common:4.1.85.Final (17 constraints: e3069ffc)
-io.netty:netty-handler:4.1.85.Final (4 constraints: 673c7bac)
-io.netty:netty-handler-proxy:4.1.85.Final (2 constraints: 5b12ca2a)
-io.netty:netty-resolver:4.1.85.Final (4 constraints: 0134e5fa)
-io.netty:netty-resolver-dns:4.1.85.Final (2 constraints: 051f31b1)
-io.netty:netty-resolver-dns-classes-macos:4.1.85.Final (2 constraints: 9e1ec28f)
-io.netty:netty-resolver-dns-native-macos:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-transport:4.1.85.Final (14 constraints: ffd205e6)
-io.netty:netty-transport-classes-epoll:4.1.85.Final (2 constraints: b01d1135)
-io.netty:netty-transport-classes-kqueue:4.1.85.Final (2 constraints: 241eb356)
-io.netty:netty-transport-native-epoll:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-transport-native-kqueue:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-transport-native-unix-common:4.1.85.Final (7 constraints: 1f78440c)
-io.netty:netty-transport-rxtx:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-transport-sctp:4.1.85.Final (1 constraints: 000b22cf)
-io.netty:netty-transport-udt:4.1.85.Final (1 constraints: 000b22cf)
+io.netty:netty-all:4.1.87.Final (1 constraints: e21188fd)
+io.netty:netty-buffer:4.1.87.Final (14 constraints: 73d9651a)
+io.netty:netty-codec:4.1.87.Final (7 constraints: 6a5ea051)
+io.netty:netty-codec-dns:4.1.87.Final (2 constraints: ae190b05)
+io.netty:netty-codec-haproxy:4.1.87.Final (1 constraints: 020b30cf)
+io.netty:netty-codec-http:4.1.87.Final (2 constraints: 171a4120)
+io.netty:netty-codec-http2:4.1.87.Final (1 constraints: 020b30cf)
+io.netty:netty-codec-memcache:4.1.87.Final (1 constraints: 020b30cf)
+io.netty:netty-codec-mqtt:4.1.87.Final (1 constraints: 020b30cf)
+io.netty:netty-codec-redis:4.1.87.Final (1 constraints: 020b30cf)
+io.netty:netty-codec-smtp:4.1.87.Final (1 constraints: 020b30cf)
+io.netty:netty-codec-socks:4.1.87.Final (2 constraints: 171a4120)
+io.netty:netty-codec-stomp:4.1.87.Final (1 constraints: 020b30cf)
+io.netty:netty-codec-xml:4.1.87.Final (1 constraints: 020b30cf)
+io.netty:netty-common:4.1.87.Final (17 constraints: 05070232)
+io.netty:netty-handler:4.1.87.Final (4 constraints: 6d3ca3ad)
+io.netty:netty-handler-proxy:4.1.87.Final (2 constraints: 5f122a2b)
+io.netty:netty-handler-ssl-ocsp:4.1.87.Final (1 constraints: 020b30cf)
+io.netty:netty-resolver:4.1.87.Final (4 constraints: 093405fd)
+io.netty:netty-resolver-dns:4.1.87.Final (2 constraints: 091fbfb1)
+io.netty:netty-resolver-dns-classes-macos:4.1.87.Final (2 constraints: a21e4e90)
+io.netty:netty-resolver-dns-native-macos:4.1.87.Final (1 constraints: 020b30cf)
+io.netty:netty-transport:4.1.87.Final (14 constraints: 1bd31c0a)
+io.netty:netty-transport-classes-epoll:4.1.87.Final (2 constraints: b41d9735)
+io.netty:netty-transport-classes-kqueue:4.1.87.Final (2 constraints: 281e3b57)
+io.netty:netty-transport-native-epoll:4.1.87.Final (1 constraints: 020b30cf)
+io.netty:netty-transport-native-kqueue:4.1.87.Final (1 constraints: 020b30cf)
+io.netty:netty-transport-native-unix-common:4.1.87.Final (7 constraints: 2d786c15)
+io.netty:netty-transport-rxtx:4.1.87.Final (1 constraints: 020b30cf)
+io.netty:netty-transport-sctp:4.1.87.Final (1 constraints: 020b30cf)
+io.netty:netty-transport-udt:4.1.87.Final (1 constraints: 020b30cf)
 io.undertow:undertow-core:2.2.22.Final (2 constraints: 341d4606)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
@@ -197,10 +198,10 @@ jakarta.validation:jakarta.validation-api:2.0.2 (16 constraints: b3ee38f8)
 jakarta.ws.rs:jakarta.ws.rs-api:2.1.6 (18 constraints: fe4212ce)
 jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
-joda-time:joda-time:2.12.1 (6 constraints: 8059c3f0)
+joda-time:joda-time:2.12.2 (6 constraints: 8159b4f1)
 junit:junit:4.13.2 (8 constraints: 5a9c5baf)
-net.bytebuddy:byte-buddy:1.12.18 (3 constraints: a325ded3)
-net.bytebuddy:byte-buddy-agent:1.12.16 (1 constraints: 750baee9)
+net.bytebuddy:byte-buddy:1.12.22 (3 constraints: 9d25c3d2)
+net.bytebuddy:byte-buddy-agent:1.12.22 (1 constraints: 720bace9)
 net.java.dev.jna:jna:4.1.0 (2 constraints: 6e1bbbad)
 net.jpountz.lz4:lz4:1.3.0 (2 constraints: 971453a0)
 net.ltgt.gradle.incap:incap:0.2 (1 constraints: ea0d3b32)
@@ -215,16 +216,16 @@ org.apache.commons:commons-lang3:3.12.0 (8 constraints: 5873a6cf)
 org.apache.commons:commons-math3:3.2 (2 constraints: 90196ff8)
 org.apache.commons:commons-pool2:2.11.1 (1 constraints: 3705333b)
 org.apache.commons:commons-text:1.9 (1 constraints: b5102f9b)
-org.apache.httpcomponents.client5:httpclient5:5.2 (2 constraints: 1718ec73)
+org.apache.httpcomponents.client5:httpclient5:5.2.1 (2 constraints: d518b1c3)
 org.apache.httpcomponents.core5:httpcore5:5.2 (3 constraints: 40388deb)
 org.apache.httpcomponents.core5:httpcore5-h2:5.2 (1 constraints: dd12c315)
 org.apache.thrift:libthrift:0.17.0 (4 constraints: 00372854)
-org.assertj:assertj-core:3.23.1 (4 constraints: 9d36e469)
+org.assertj:assertj-core:3.24.2 (4 constraints: 9f36046b)
 org.assertj:assertj-guava:3.4.0 (1 constraints: 09050636)
 org.awaitility:awaitility:4.2.0 (2 constraints: c71a893b)
 org.caffinitas.ohc:ohc-core:0.3.4 (1 constraints: 950f6988)
 org.checkerframework:checker-compat-qual:2.5.5 (2 constraints: 1f1d1717)
-org.checkerframework:checker-qual:3.22.0 (3 constraints: 6b26c1e1)
+org.checkerframework:checker-qual:3.27.0 (3 constraints: 70261ae3)
 org.clojure:clojure:1.8.0 (1 constraints: 0b050836)
 org.codehaus.groovy:groovy:2.5.14 (23 constraints: b55185ba)
 org.codehaus.groovy:groovy-cli-picocli:2.5.14 (5 constraints: d54e9017)
@@ -274,7 +275,7 @@ org.hamcrest:hamcrest-core:2.1 (2 constraints: 88126e10)
 org.hdrhistogram:HdrHistogram:2.1.12 (1 constraints: 3e103aa2)
 org.hibernate:hibernate-validator:4.3.0.Final (2 constraints: ee248003)
 org.hibernate.validator:hibernate-validator:6.2.4.Final (4 constraints: 9a4748ce)
-org.immutables:value:2.8.8 (1 constraints: 060bd5af)
+org.immutables:value:2.9.3 (1 constraints: 020b9baf)
 org.javassist:javassist:3.29.1-GA (3 constraints: b52d27ad)
 org.jboss.logging:jboss-logging:3.4.1.Final (5 constraints: 39550e65)
 org.jboss.marshalling:jboss-marshalling:2.1.1.Final (1 constraints: 1e07ab5a)
@@ -283,7 +284,7 @@ org.jboss.xnio:xnio-api:3.8.7.Final (2 constraints: 771a3146)
 org.jboss.xnio:xnio-nio:3.8.7.Final (1 constraints: c80dcb30)
 org.jdbi:jdbi3-core:3.30.0 (2 constraints: 0e10d5bf)
 org.jdbi:jdbi3-sqlobject:3.30.0 (1 constraints: 38053d3b)
-org.jetbrains:annotations:23.0.0 (3 constraints: 45257f15)
+org.jetbrains:annotations:23.0.0 (4 constraints: 0c35f637)
 org.jetbrains.kotlin:kotlin-reflect:1.6.10 (1 constraints: 360b7dd6)
 org.jetbrains.kotlin:kotlin-stdlib:1.7.0 (7 constraints: 07713968)
 org.jetbrains.kotlin:kotlin-stdlib-common:1.7.0 (1 constraints: 110f8b6b)
@@ -292,9 +293,9 @@ org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.0 (3 constraints: c125b5a3)
 org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.5.0 (1 constraints: 4b0ea44e)
 org.jvnet:animal-sniffer-annotation:1.0 (1 constraints: f20b95eb)
 org.mindrot:jbcrypt:0.4 (2 constraints: 4714f171)
-org.mockito:mockito-core:4.8.1 (2 constraints: 2e1643fd)
+org.mockito:mockito-core:5.1.1 (2 constraints: 51165a12)
 org.mpierce.metrics.reservoir:hdrhistogram-metrics-reservoir:1.1.3 (1 constraints: 0d10f991)
-org.objenesis:objenesis:3.2 (2 constraints: c61411ab)
+org.objenesis:objenesis:3.3 (2 constraints: c71412ab)
 org.openjdk.jmh:jmh-core:1.36 (2 constraints: f51525d9)
 org.openjdk.jmh:jmh-generator-annprocess:1.36 (1 constraints: de04fb30)
 org.ow2.asm:asm:7.1 (4 constraints: d71f9495)
@@ -304,7 +305,7 @@ org.ow2.asm:asm-tree:5.0.3 (4 constraints: d8272223)
 org.ow2.asm:asm-util:5.0.3 (1 constraints: ee09d4b2)
 org.postgresql:postgresql:42.4.1 (1 constraints: 3d05503b)
 org.reflections:reflections:0.10.2 (1 constraints: 3505253b)
-org.rocksdb:rocksdbjni:7.7.3 (1 constraints: 13052636)
+org.rocksdb:rocksdbjni:7.9.2 (1 constraints: 14052b36)
 org.slf4j:jcl-over-slf4j:1.7.36 (3 constraints: 492febed)
 org.slf4j:jul-to-slf4j:1.7.36 (1 constraints: b90e9c5e)
 org.slf4j:log4j-over-slf4j:1.7.36 (3 constraints: 492febed)
@@ -323,7 +324,7 @@ com.github.peterwippermann.junit4:parameterized-suite:1.1.0 (1 constraints: 0405
 com.github.stefanbirkner:system-rules:1.19.0 (1 constraints: 3d05443b)
 com.github.tomakehurst:wiremock-standalone:2.27.2 (1 constraints: 3f054a3b)
 com.google.code.findbugs:annotations:3.0.1 (1 constraints: 9e0aafc3)
-com.palantir.conjure.java.api:test-utils:2.29.0 (1 constraints: 3f054e3b)
+com.palantir.conjure.java.api:test-utils:2.34.0 (1 constraints: 3b05433b)
 com.palantir.safe-logging:preconditions-assertj:3.2.0 (1 constraints: 07050036)
 com.palantir.tracing:tracing-test-utils:6.15.0 (1 constraints: 3e05563b)
 com.spotify.dataenum:dataenum:1.4.1 (1 constraints: e9105ac1)
@@ -351,7 +352,7 @@ org.codehaus.groovy:groovy-sql:2.5.14 (1 constraints: b00d2137)
 org.codehaus.groovy:groovy-test:2.5.14 (2 constraints: ed12fb43)
 org.codehaus.groovy:groovy-test-junit5:2.5.14 (1 constraints: b00d2137)
 org.codehaus.groovy:groovy-testng:2.5.14 (1 constraints: b00d2137)
-org.freemarker:freemarker:2.3.31 (1 constraints: 3b053c3b)
+org.freemarker:freemarker:2.3.32 (1 constraints: 3c053d3b)
 org.glassfish.grizzly:connection-pool:2.4.4 (1 constraints: 1418374b)
 org.glassfish.grizzly:grizzly-framework:2.4.4 (3 constraints: bc31e6d7)
 org.glassfish.grizzly:grizzly-http:2.4.4 (1 constraints: e11123e3)u}(jo (c239432ac57edf78fb1bad5e5ba3388396690deejp versions.propsj!p modifiedjp Kjp Kj#p Kj$p `https://github.com/palantir/atlasdb/blob/159b7e73db3bfc173f0e6e856e436965b6ae22df/versions.propsj&p _https://github.com/palantir/atlasdb/raw/159b7e73db3bfc173f0e6e856e436965b6ae22df/versions.propsj(p rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=159b7e73db3bfc173f0e6e856e436965b6ae22dfj*p X
  @@ -2,7 +2,7 @@ com.boundary:high-scale-lib = 1.0.6
 com.ea.agentloader:ea-agent-loader = 1.0.3
 com.fasterxml.jackson.*:* = 2.14.1
 com.fasterxml.jackson.core:jackson-databind = 2.14.1
-com.github.ben-manes.caffeine:caffeine = 3.1.1
+com.github.ben-manes.caffeine:caffeine = 3.1.2
 com.github.peterwippermann.junit4:parameterized-suite = 1.1.0
 com.github.rholder:guava-retrying = 2.0.0
 com.github.stefanbirkner:system-rules = 1.19.0
@@ -12,22 +12,22 @@ com.google.auto.service:auto-service-annotations = 1.0
 com.google.auto:auto-common = 1.2.1
 com.google.code.findbugs:findbugs-annotations = 3.0.1
 com.google.code.findbugs:jsr305 = 3.0.2
-com.google.dagger:* = 2.44.1
+com.google.dagger:* = 2.44.2
 # Ksp version is temporary, can be removed once Maven calms down.
 com.google.devtools.ksp:symbol-processing-api = 1.5.21-1.0.0-beta07
 com.google.errorprone:* = 2.10.0 # upgrading to 2.11.0 is blocked by a google bug
 com.google.errorprone:error_prone_annotations = 2.10.0
 com.google.guava:* = 31.1-jre
-com.google.protobuf:* = 3.21.9
+com.google.protobuf:* = 3.21.12
 com.googlecode.protobuf-java-format:* = 1.4
 com.lmax:disruptor = 3.4.2
 com.palantir.common:streams = 2.1.0
 com.palantir.config.crypto:* = 5.1.0
-com.palantir.conjure.java.api:* = 2.29.0
+com.palantir.conjure.java.api:* = 2.34.0
 com.palantir.conjure.java.runtime:* = 7.39.0
 com.palantir.conjure.java:* = 6.66.0
 com.palantir.conjure:conjure = 4.35.0
-com.palantir.dialogue:* = 3.71.0
+com.palantir.dialogue:* = 3.74.0
 com.palantir.docker.compose:docker-compose-rule* = 1.8.0
 com.palantir.docker.proxy:docker-proxy-rule* = 1.6.0
 com.palantir.goethe:* = 0.9.0
@@ -36,7 +36,7 @@ com.palantir.refreshable:refreshable = 2.2.0
 com.palantir.safe-logging:* = 3.2.0
 com.palantir.sls.versions:* = 1.4.0
 com.palantir.tracing:* = 6.15.0
-com.palantir.tritium:* = 0.57.0
+com.palantir.tritium:* = 0.61.0
 com.squareup:javapoet = 1.13.0
 com.zaxxer:HikariCP = 5.0.1
 commons-cli:* = 1.5.0
@@ -45,38 +45,38 @@ commons-dbutils:* = 1.7
 commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
-io.netty:* = 4.1.85.Final
+io.netty:* = 4.1.87.Final
 io.undertow:* = 2.2.22.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2
-joda-time:joda-time = 2.12.1
+joda-time:joda-time = 2.12.2
 junit:junit = 4.13.2
 net.jcip:jcip-annotations = 1.0
 net.jpountz.lz4:lz4 = 1.3.0
 one.util:streamex = 0.8.1
 org.apache.commons:commons-lang3 = 3.12.0
 org.apache.commons:commons-pool2 = 2.11.1
-org.apache.httpcomponents.client5:httpclient5 = 5.2
-org.assertj:assertj-* = 3.23.1
+org.apache.httpcomponents.client5:httpclient5 = 5.2.1
+org.assertj:assertj-* = 3.24.2
 org.assertj:assertj-guava = 3.4.0
 org.awaitility:awaitility = 4.2.0
 org.clojure:clojure = 1.8.0
 org.derive4j:* = 1.1.1
 org.eclipse.collections:* = 11.1.0
-org.freemarker:freemarker = 2.3.31
+org.freemarker:freemarker = 2.3.32
 org.glassfish.jersey.core:jersey-common = 2.34
 org.gmock:* = 0.8.3
-org.immutables:* = 2.8.8
+org.immutables:* = 2.9.3
 org.jboss.marshalling:jboss-marshalling = 2.1.1.Final
 org.jboss.threads:jboss-threads = 3.5.0.Final
 org.jdbi:* = 3.30.0
 org.jmock:jmock* = 2.12.0
 org.mindrot:jbcrypt = 0.4
-org.mockito:mockito-* = 4.8.1
+org.mockito:mockito-* = 5.1.1
 org.openjdk.jmh:* = 1.36
 org.reflections:reflections = 0.10.2
-org.rocksdb:rocksdbjni = 7.7.3
+org.rocksdb:rocksdbjni = 7.9.2
 org.slf4j:* = 1.7.36
 org.wildfly.common:wildfly-common = 1.6.0.Final
 org.xerial.snappy:snappy-java = 1.1.8ueu(b9af82990511554a63f165ec27643198848db6b1}(sha(b9af82990511554a63f165ec27643198848db6b1node_idEC_kwDOAjP5fdoAKGI5YWY4Mjk5MDUxMTU1NGE2M2YxNjVlYzI3NjQzMTk4ODQ4ZGI2YjEcommit}(author}(nameJeremy Kongemailjeremykong@hotmail.comdate2023-03-21T20:09:54Zu	committer}(j>p svc-autoreleasej@p -pd-foundry-infrastructure-notify@palantir.comjBp 2023-03-21T20:09:54Zumessage"Autorelease 0.818.0-rc1

[skip ci]tree}(j6p (78d53e9410b39a3d5eaa51027c4e1c98cce019e2url`https://api.github.com/repos/palantir/atlasdb/git/trees/78d53e9410b39a3d5eaa51027c4e1c98cce019e2ujNp bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b9af82990511554a63f165ec27643198848db6b1
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQaDxMACgkQhbrR8ip7mDBTJgEApzFRG9wJ8mf+5TGb7XBOSfOt
w4T4K8d62G8dEqNnp3sA/iFFdsD+lG3nRpoKKr34by+dNk2LVy9FG51kO8Gl6df2
=qRuR
-----END PGP SIGNATURE-----
payloadX  tree 78d53e9410b39a3d5eaa51027c4e1c98cce019e2
parent 6e38c8ea72f414ed9cfbc6f983bf24f1c62e9123
author Jeremy Kong <jeremykong@hotmail.com> 1679429394 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1679429394 +0000

Autorelease 0.818.0-rc1

[skip ci]uujNp ^https://api.github.com/repos/palantir/atlasdb/commits/b9af82990511554a63f165ec27643198848db6b1html_urlShttps://github.com/palantir/atlasdb/commit/b9af82990511554a63f165ec27643198848db6b1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b9af82990511554a63f165ec27643198848db6b1/commentsj<p }(login
jeremyk-91idJZ j8p MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jNp 'https://api.github.com/users/jeremyk-91j\p https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujDp }(jap svc-autoreleasejcp J(j8p MDQ6VXNlcjUxNzE4MzQ2jep 4https://avatars.githubusercontent.com/u/51718346?v=4jgp h5jNp ,https://api.github.com/users/svc-autoreleasej\p "https://github.com/svc-autoreleasejjp 6https://api.github.com/users/svc-autorelease/followersjlp Chttps://api.github.com/users/svc-autorelease/following{/other_user}jnp <https://api.github.com/users/svc-autorelease/gists{/gist_id}jpp Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jrp :https://api.github.com/users/svc-autorelease/subscriptionsjtp 1https://api.github.com/users/svc-autorelease/orgsjvp 2https://api.github.com/users/svc-autorelease/reposjxp =https://api.github.com/users/svc-autorelease/events{/privacy}jzp <https://api.github.com/users/svc-autorelease/received_eventsj|p Userj~p uparents]}(j6p (6e38c8ea72f414ed9cfbc6f983bf24f1c62e9123jNp ^https://api.github.com/repos/palantir/atlasdb/commits/6e38c8ea72f414ed9cfbc6f983bf24f1c62e9123j\p Shttps://github.com/palantir/atlasdb/commit/6e38c8ea72f414ed9cfbc6f983bf24f1c62e9123uastats}(totalK 	additionsK 	deletionsK ufiles]u(b1d2944fd1c9432160882009a24a5a305a60f4bc}(sha(b1d2944fd1c9432160882009a24a5a305a60f4bcnode_idEC_kwDOAjP5fdoAKGIxZDI5NDRmZDFjOTQzMjE2MDg4MjAwOWEyNGE1YTMwNWE2MGY0YmMcommit}(author}(name	Tom Papkeemail+43675490+Toemmsche@users.noreply.github.comdate2023-06-27T14:53:22Zu	committer}(jp GitHubjp noreply@github.comjp 2023-06-27T14:53:22Zumessagep[LockV1] Pass refreshable thread info configuration (#6626)

[LockV1] Pass refreshable thread info configurationtree}(jp (79e5b5f159f45187d46c03911475d8b7a2cda1a3url`https://api.github.com/repos/palantir/atlasdb/git/trees/79e5b5f159f45187d46c03911475d8b7a2cda1a3ujp bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b1d2944fd1c9432160882009a24a5a305a60f4bc
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkmvfiCRBK7hj4Ov3rIwAAQBsIAAMKVZCqmW+MBlutSilvknRV
0jV+Yp46Eer1fo/chc7C1tt0HaKtkcXWiNl4CeqlFJSoAQ30Nxut9XQwZT41sIJp
S7K5aRmDWA6HPt5+eE7wY43xQ5ArmiW6BMUJ2v78hgD3TLaGgbV0jI9BjWIIEGGJ
p0E43QIzEwAeakcRm2L2yti/qbjXFlGmOr6EKRMo5V2l+RqIa2j8fZNkdJwdSqyk
8jm1TbcNrXvGz6hjSoY1iJhDNQjqmCBluuzKKhgsRWThn82/0xg/9GQ/caKxIUL6
wtCAHadQ56IarsVCjpUOZ8fE1us9IuowUlJcdNQAEfxNgchm+d2zT01FS3Dmuwo=
=/8dl
-----END PGP SIGNATURE-----
payloadXW  tree 79e5b5f159f45187d46c03911475d8b7a2cda1a3
parent 613e115d909748315adbea905ad912518b569b38
author Tom Papke <43675490+Toemmsche@users.noreply.github.com> 1687877602 +0200
committer GitHub <noreply@github.com> 1687877602 +0000

[LockV1] Pass refreshable thread info configuration (#6626)

[LockV1] Pass refreshable thread info configuration
uujp ^https://api.github.com/repos/palantir/atlasdb/commits/b1d2944fd1c9432160882009a24a5a305a60f4bchtml_urlShttps://github.com/palantir/atlasdb/commit/b1d2944fd1c9432160882009a24a5a305a60f4bccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b1d2944fd1c9432160882009a24a5a305a60f4bc/commentsjp }(login	ToemmscheidJbojp MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jp &https://api.github.com/users/Toemmschejp https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujp }(jp web-flowjp J/jp MDQ6VXNlcjE5ODY0NDQ3jp 4https://avatars.githubusercontent.com/u/19864447?v=4jp h5jp %https://api.github.com/users/web-flowjp https://github.com/web-flowjp /https://api.github.com/users/web-flow/followersjp <https://api.github.com/users/web-flow/following{/other_user}jp 5https://api.github.com/users/web-flow/gists{/gist_id}jp <https://api.github.com/users/web-flow/starred{/owner}{/repo}jp 3https://api.github.com/users/web-flow/subscriptionsjp *https://api.github.com/users/web-flow/orgsjp +https://api.github.com/users/web-flow/reposjp 6https://api.github.com/users/web-flow/events{/privacy}jp 5https://api.github.com/users/web-flow/received_eventsjp Userjp uparents]}(jp (613e115d909748315adbea905ad912518b569b38jp ^https://api.github.com/repos/palantir/atlasdb/commits/613e115d909748315adbea905ad912518b569b38jp Shttps://github.com/palantir/atlasdb/commit/613e115d909748315adbea905ad912518b569b38uastats}(totalM	additionsM[	deletionsKRufiles](}(jp (9914bf81d7b0081790e5b357d977f35947ad8b60filename$changelog/@unreleased/pr-6626.v2.ymlstatusaddedj q Kjq K changesKblob_url|https://github.com/palantir/atlasdb/blob/b1d2944fd1c9432160882009a24a5a305a60f4bc/changelog%2F%40unreleased%2Fpr-6626.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/b1d2944fd1c9432160882009a24a5a305a60f4bc/changelog%2F%40unreleased%2Fpr-6626.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6626.v2.yml?ref=b1d2944fd1c9432160882009a24a5a305a60f4bcpatch@@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[LockV1] Pass refreshable thread info configuration'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6626u}(jp (8e3edb51b7ae6b3309b255039a0a6dd18134f32djq Jlock-api/src/main/java/com/palantir/lock/DebugThreadInfoConfiguration.javajq modifiedj q Kjq Kj
q K	jq https://github.com/palantir/atlasdb/blob/b1d2944fd1c9432160882009a24a5a305a60f4bc/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaj
q https://github.com/palantir/atlasdb/raw/b1d2944fd1c9432160882009a24a5a305a60f4bc/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javajq https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.java?ref=b1d2944fd1c9432160882009a24a5a305a60f4bcjq X&  @@ -16,18 +16,25 @@
 
 package com.palantir.lock;
 
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import org.immutables.value.Value;
 
+@JsonDeserialize(as = ImmutableDebugThreadInfoConfiguration.class)
+@JsonSerialize(as = ImmutableDebugThreadInfoConfiguration.class)
 @Value.Immutable
 public interface DebugThreadInfoConfiguration {
 
+    @JsonProperty("record-thread-info")
     @Value.Default
     default boolean recordThreadInfo() {
         return false;
     }
 
+    @JsonProperty("thread-info-snapshot-interval-millis")
     @Value.Default
     default long threadInfoSnapshotIntervalMillis() {
-        return 5000L;
+        return 300000L;
     }
 }u}(jp (24a4a395982dfe44421aaba5d136f4694950815fjq ?lock-api/src/main/java/com/palantir/lock/LockServerConfigs.javajq modifiedj q Kjq K j
q Kjq https://github.com/palantir/atlasdb/blob/b1d2944fd1c9432160882009a24a5a305a60f4bc/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.javaj
q https://github.com/palantir/atlasdb/raw/b1d2944fd1c9432160882009a24a5a305a60f4bc/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.javajq https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.java?ref=b1d2944fd1c9432160882009a24a5a305a60f4bcjq XV  @@ -20,4 +20,7 @@ public final class LockServerConfigs {
     private LockServerConfigs() {}
 
     public static final LockServerOptions DEFAULT = LockServerOptions.builder().build();
+
+    public static final DebugThreadInfoConfiguration DEFAULT_THREAD_INFO_CONFIG =
+            ImmutableDebugThreadInfoConfiguration.builder().build();
 }u}(jp (dfc342440e6b1fcac63ded5134e926da137e5418jq lock-impl/build.gradlejq modifiedj q Kjq K j
q Kjq jhttps://github.com/palantir/atlasdb/blob/b1d2944fd1c9432160882009a24a5a305a60f4bc/lock-impl%2Fbuild.gradlej
q ihttps://github.com/palantir/atlasdb/raw/b1d2944fd1c9432160882009a24a5a305a60f4bc/lock-impl%2Fbuild.gradlejq |https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fbuild.gradle?ref=b1d2944fd1c9432160882009a24a5a305a60f4bcjq X  @@ -10,6 +10,7 @@ dependencies {
   implementation 'com.google.guava:guava'
   implementation 'com.palantir.common:streams'
   implementation 'com.palantir.nylon:nylon-threads'
+  implementation 'com.palantir.refreshable:refreshable'
   implementation 'com.palantir.safe-logging:preconditions'
   implementation 'com.palantir.safe-logging:safe-logging'
   implementation 'joda-time:joda-time'u}(jp (ccf79fc6208425b23884007b50ffc458e3a26bd5jq Llock-impl/src/main/java/com/palantir/lock/impl/AdjustableBackgroundTask.javajq addedj q Kejq K j
q Kejq https://github.com/palantir/atlasdb/blob/b1d2944fd1c9432160882009a24a5a305a60f4bc/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javaj
q https://github.com/palantir/atlasdb/raw/b1d2944fd1c9432160882009a24a5a305a60f4bc/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.javajq https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTask.java?ref=b1d2944fd1c9432160882009a24a5a305a60f4bcjq X  @@ -0,0 +1,101 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.io.Closeable;
+import java.time.Duration;
+import java.util.concurrent.RejectedExecutionException;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
+import java.util.function.Supplier;
+
+public final class AdjustableBackgroundTask implements Closeable {
+
+    /**
+     * A minimum duration between invocations if the task is not actually enabled.
+     * This is to prevent having a blocking thread in the background that does nothing.
+     */
+    @VisibleForTesting
+    static final Duration MINIMUM_INTERVAL_IF_NOT_RUNNING = Duration.ofSeconds(1);
+
+    private static final SafeLogger log = SafeLoggerFactory.get(AdjustableBackgroundTask.class);
+
+    private final ScheduledExecutorService scheduledExecutor;
+    private final Supplier<Boolean> shouldRunSupplier;
+    private final Supplier<Duration> intervalSupplier;
+    private final Runnable task;
+
+    public static AdjustableBackgroundTask create(
+            Supplier<Boolean> shouldRunSupplier, Supplier<Duration> delaySupplier, Runnable task) {
+        return new AdjustableBackgroundTask(
+                shouldRunSupplier, delaySupplier, task, PTExecutors.newSingleThreadScheduledExecutor());
+    }
+
+    @VisibleForTesting
+    AdjustableBackgroundTask(
+            Supplier<Boolean> shouldRunSupplier,
+            Supplier<Duration> intervalSupplier,
+            Runnable task,
+            ScheduledExecutorService scheduledExecutor) {
+        this.shouldRunSupplier = shouldRunSupplier;
+        this.intervalSupplier = intervalSupplier;
+        this.task = task;
+        this.scheduledExecutor = scheduledExecutor;
+        run();
+    }
+
+    private void run() {
+        boolean shouldRun = shouldRunSupplier.get();
+        if (shouldRun) {
+            try {
+                task.run();
+            } catch (Exception e) {
+                if (Thread.interrupted()) {
+                    log.error("Task was interrupted. Stopping background execution.", e);
+                    Thread.currentThread().interrupt();
+                    return;
+                }
+                log.error("Exception occurred during task", e);
+            } catch (Error e) {
+                log.error("Error occurred during task. Stopping background execution.", e);
+                return;
+            }
+        }
+        try {
+            long intervalMillis = intervalSupplier.get().toMillis();
+            scheduledExecutor.schedule(
+                    this::run,
+                    shouldRun ? intervalMillis : Math.max(MINIMUM_INTERVAL_IF_NOT_RUNNING.toMillis(), intervalMillis),
+                    TimeUnit.MILLISECONDS);
+        } catch (RejectedExecutionException e) {
+            log.warn(
+                    "Scheduler rejected execution",
+                    SafeArg.of("schedulerIsShutdown", scheduledExecutor.isShutdown()),
+                    e);
+        }
+    }
+
+    @Override
+    public void close() {
+        scheduledExecutor.shutdown();
+    }
+}u}(jp (d46677bd60efd12dee64f1090e49358ef304d8d9jq Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javajq modifiedj q Kjq K
j
q K&jq https://github.com/palantir/atlasdb/blob/b1d2944fd1c9432160882009a24a5a305a60f4bc/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj
q https://github.com/palantir/atlasdb/raw/b1d2944fd1c9432160882009a24a5a305a60f4bc/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javajq https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=b1d2944fd1c9432160882009a24a5a305a60f4bcjq X  @@ -80,6 +80,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.nylon.threads.ThreadNames;
+import com.palantir.refreshable.Refreshable;
 import com.palantir.util.JMXUtils;
 import com.palantir.util.Ownable;
 import java.math.BigInteger;
@@ -233,15 +234,21 @@ public static LockServiceImpl create() {
     public static LockServiceImpl create(LockServerOptions options) {
         com.palantir.logsafe.Preconditions.checkNotNull(options);
         ExecutorService newExecutor = PTExecutors.newCachedThreadPool(LockServiceImpl.class.getName());
-        return create(options, Ownable.owned(newExecutor));
+        return create(Refreshable.only(options), Ownable.owned(newExecutor));
     }
 
-    public static LockServiceImpl create(LockServerOptions options, ExecutorService injectedExecutor) {
+    public static LockServiceImpl create(Refreshable<LockServerOptions> options, ExecutorService injectedExecutor) {
         com.palantir.logsafe.Preconditions.checkNotNull(options);
+        com.palantir.logsafe.Preconditions.checkNotNull(options.current());
         return create(options, Ownable.notOwned(injectedExecutor));
     }
 
-    private static LockServiceImpl create(LockServerOptions options, Ownable<ExecutorService> executor) {
+    public static LockServiceImpl create(LockServerOptions options, ExecutorService injectedExecutor) {
+        com.palantir.logsafe.Preconditions.checkNotNull(options);
+        return create(Refreshable.only(options), Ownable.notOwned(injectedExecutor));
+    }
+
+    private static LockServiceImpl create(Refreshable<LockServerOptions> options, Ownable<ExecutorService> executor) {
         if (log.isTraceEnabled()) {
             log.trace("Creating LockService with options={}", SafeArg.of("options", options));
         }
@@ -252,18 +259,22 @@ private static LockServiceImpl create(LockServerOptions options, Ownable<Executo
         return lockService;
     }
 
-    private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable<ExecutorService> executor) {
+    /**
+     * Only {@link LockServerOptions#threadInfoConfiguration()} is actually reloadable
+     */
+    private LockServiceImpl(
+            Refreshable<LockServerOptions> options, Runnable callOnClose, Ownable<ExecutorService> executor) {
+        LockServerOptions currentOptions = options.current();
         this.lockReapRunner = new LockReapRunner(executor);
         this.callOnClose = callOnClose;
-        this.isStandaloneServer = options.isStandaloneServer();
-        this.maxAllowedLockTimeout = SimpleTimeDuration.of(options.getMaxAllowedLockTimeout());
-        this.maxAllowedClockDrift = SimpleTimeDuration.of(options.getMaxAllowedClockDrift());
-        this.maxNormalLockAge = SimpleTimeDuration.of(options.getMaxNormalLockAge());
-        this.stuckTransactionTimeout = SimpleTimeDuration.of(options.getStuckTransactionTimeout());
-        this.slowLogTriggerMillis = options.slowLogTriggerMillis();
-        this.threadInfoSnapshotManager =
-                new LockThreadInfoSnapshotManager(options.threadInfoConfiguration(), () -> heldLocksTokenMap);
-        threadInfoSnapshotManager.start();
+        this.isStandaloneServer = currentOptions.isStandaloneServer();
+        this.maxAllowedLockTimeout = SimpleTimeDuration.of(currentOptions.getMaxAllowedLockTimeout());
+        this.maxAllowedClockDrift = SimpleTimeDuration.of(currentOptions.getMaxAllowedClockDrift());
+        this.maxNormalLockAge = SimpleTimeDuration.of(currentOptions.getMaxNormalLockAge());
+        this.stuckTransactionTimeout = SimpleTimeDuration.of(currentOptions.getStuckTransactionTimeout());
+        this.slowLogTriggerMillis = currentOptions.slowLogTriggerMillis();
+        this.threadInfoSnapshotManager = new LockThreadInfoSnapshotManager(
+                options.map(LockServerOptions::threadInfoConfiguration), () -> heldLocksTokenMap);
     }
 
     private HeldLocksToken createHeldLocksToken(
@@ -1231,6 +1242,7 @@ private String safeLockStats() {
     public void close() {
         if (isShutDown.compareAndSet(false, true)) {
             lockReapRunner.close();
+            threadInfoSnapshotManager.close();
             blockingThreads.forEach(Thread::interrupt);
             callOnClose.run();
         }u      }(jp (8fe141cc254985903635606c7c4d0fb75eae629bjq Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javajq modifiedj q Kjq Kj
q K7jq https://github.com/palantir/atlasdb/blob/b1d2944fd1c9432160882009a24a5a305a60f4bc/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj
q https://github.com/palantir/atlasdb/raw/b1d2944fd1c9432160882009a24a5a305a60f4bc/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javajq https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=b1d2944fd1c9432160882009a24a5a305a60f4bcjq X  @@ -18,58 +18,46 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableMap;
-import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.lock.DebugThreadInfoConfiguration;
 import com.palantir.lock.HeldLocksToken;
 import com.palantir.lock.LockClientAndThread;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.refreshable.Refreshable;
+import java.time.Duration;
 import java.util.HashMap;
 import java.util.Map;
 import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.ConcurrentMap;
-import java.util.concurrent.ScheduledExecutorService;
-import java.util.concurrent.TimeUnit;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 
 public class LockThreadInfoSnapshotManager implements AutoCloseable {
-    private DebugThreadInfoConfiguration threadInfoConfiguration;
+    private static final SafeLogger log = SafeLoggerFactory.get(LockThreadInfoSnapshotManager.class);
+    private final Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration;
 
-    private Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
+    private final Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
 
-    private volatile Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot;
+    private volatile Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot = ImmutableMap.of();
 
-    private ScheduledExecutorService scheduledExecutorService = PTExecutors.newSingleThreadScheduledExecutor();
+    private final AdjustableBackgroundTask backgroundTask;
 
     public LockThreadInfoSnapshotManager(
-            DebugThreadInfoConfiguration threadInfoConfiguration,
+            Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration,
             Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> mapSupplier) {
         this.threadInfoConfiguration = threadInfoConfiguration;
         this.tokenMapSupplier = mapSupplier;
-        this.lastKnownThreadInfoSnapshot = ImmutableMap.of();
-    }
-
-    public void start() {
-        scheduleRun();
-    }
-
-    private void run() {
-        takeSnapshot();
-
-        // schedule next snapshot so this can be enabled/disabled at runtime
-        scheduleRun();
-    }
-
-    private void scheduleRun() {
-        if (threadInfoConfiguration.recordThreadInfo()) {
-            scheduledExecutorService.schedule(
-                    this::run, threadInfoConfiguration.threadInfoSnapshotIntervalMillis(), TimeUnit.MILLISECONDS);
-        }
+        this.backgroundTask = AdjustableBackgroundTask.create(
+                threadInfoConfiguration.map(DebugThreadInfoConfiguration::recordThreadInfo),
+                threadInfoConfiguration.map(config -> Duration.ofMillis(config.threadInfoSnapshotIntervalMillis())),
+                this::takeSnapshot);
     }
 
     @VisibleForTesting
@@ -84,7 +72,9 @@ Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot() {
     public UnsafeArg<Optional<Map<LockDescriptor, LockClientAndThread>>> getRestrictedSnapshotAsOptionalLogArg(
             Set<LockDescriptor> lockDescriptors) {
         String argName = "presumedClientThreadHoldersIfEnabled";
-        if (!threadInfoConfiguration.recordThreadInfo()) {
+        if (!threadInfoConfiguration.current().recordThreadInfo()) {
+            // Avoids keeping the value alive even though we are never returning it
+            lastKnownThreadInfoSnapshot = Map.of();
             return UnsafeArg.of(argName, Optional.empty());
         }
         Map<LockDescriptor, LockClientAndThread> latestSnapshot = lastKnownThreadInfoSnapshot;
@@ -108,10 +98,17 @@ void takeSnapshot() {
                 })
                 // Although a lock can be held by multiple clients/threads, we only remember one to save space
                 .collect(Collectors.toMap(Entry::getKey, Entry::getValue, (existing, replacement) -> existing));
+
+        log.info(
+                "Took thread info snapshot of {} locks. Next snapshot due in {}ms",
+                SafeArg.of("snapshotSize", lastKnownThreadInfoSnapshot.size()),
+                SafeArg.of(
+                        "snapshotIntervalMillis",
+                        threadInfoConfiguration.current().threadInfoSnapshotIntervalMillis()));
     }
 
     @Override
     public void close() {
-        scheduledExecutorService.shutdown();
+        backgroundTask.close();
     }
 }u}(jp (97ae55956450814bf5146499495e54f469faa960jq Plock-impl/src/test/java/com/palantir/lock/impl/AdjustableBackgroundTaskTest.javajq addedj q Kjq K j
q Kjq https://github.com/palantir/atlasdb/blob/b1d2944fd1c9432160882009a24a5a305a60f4bc/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javaj
q https://github.com/palantir/atlasdb/raw/b1d2944fd1c9432160882009a24a5a305a60f4bc/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.javajq https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FAdjustableBackgroundTaskTest.java?ref=b1d2944fd1c9432160882009a24a5a305a60f4bcjq X  @@ -0,0 +1,142 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.refreshable.Refreshable;
+import com.palantir.refreshable.SettableRefreshable;
+import java.time.Duration;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.concurrent.atomic.AtomicLong;
+import org.jmock.lib.concurrent.DeterministicScheduler;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class AdjustableBackgroundTaskTest {
+    private static final Duration DEFAULT_INTERVAL = Duration.ofSeconds(10);
+    private final AtomicLong field = new AtomicLong(0);
+    private final AtomicBoolean shouldRun = new AtomicBoolean(false);
+    private final SettableRefreshable<Duration> interval = Refreshable.create(DEFAULT_INTERVAL);
+    private final DeterministicScheduler scheduledExecutor = new DeterministicScheduler();
+    private final AtomicLong numCallsToShouldRunSupplier = new AtomicLong(0);
+    private final AtomicLong numCallsToIntervalSupplier = new AtomicLong(0);
+    private final AdjustableBackgroundTask adjustableBackgroundTask = new AdjustableBackgroundTask(
+            () -> {
+                numCallsToShouldRunSupplier.incrementAndGet();
+                return shouldRun.get();
+            },
+            () -> {
+                numCallsToIntervalSupplier.incrementAndGet();
+                return interval.current();
+            },
+            field::incrementAndGet,
+            scheduledExecutor);
+
+    @BeforeClass
+    public static void testDelayShouldNotExceedMinimumDelay() {
+        // We have to ensure that our default interval is higher than MINIMUM_INTERVAL_IF_NOT_RUNNING
+        // so our tests are actually meaningful
+        assertThat(DEFAULT_INTERVAL).isGreaterThanOrEqualTo(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING);
+    }
+
+    @Test
+    public void doesNotRunTaskDuringConstruction() {
+        assertThat(field.get()).isEqualTo(0);
+    }
+
+    @Test
+    public void doesNotRunTaskByDefault() {
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(0);
+    }
+
+    @Test
+    public void canBeEnabledDisabledAndReEnabled() {
+        shouldRun.set(true);
+        tick(DEFAULT_INTERVAL);
+        long after = field.get();
+        assertThat(after).isEqualTo(1);
+
+        shouldRun.set(false);
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(after);
+
+        shouldRun.set(true);
+        tick(DEFAULT_INTERVAL);
+        assertThat(field.get()).isEqualTo(after + 1);
+    }
+
+    @Test
+    public void canAdjustInterval() {
+        Duration newInterval = Duration.ofMinutes(1);
+        interval.update(newInterval);
+        shouldRun.set(true);
+        // initial run was scheduled at default interval
+        tick(DEFAULT_INTERVAL);
+        tick(Duration.ofMinutes(42 - 1));
+        assertThat(field.get()).isEqualTo(42);
+    }
+
+    @Test
+    public void canAdjustIntervalBelowMinimumDelayIfRunning() {
+        Duration newInterval = Duration.ofMillis(1);
+        interval.update(newInterval);
+        shouldRun.set(true);
+        // initial run was scheduled at default interval
+        tick(DEFAULT_INTERVAL);
+        tick(Duration.ofMillis(10 - 1));
+        assertThat(field.get()).isEqualTo(10);
+    }
+
+    @Test
+    public void runsSuppliersAtReducedIntervalIfNotRunning() {
+        Duration newInterval = Duration.ofMillis(1);
+        interval.update(newInterval);
+        Duration elapsedDuration = Duration.ofSeconds(10);
+        // initial run was scheduled at default interval, this will run suppliers once
+        tick(DEFAULT_INTERVAL);
+        tick(elapsedDuration);
+        assertThat(field.get()).isEqualTo(0);
+        // suppliers are also called once when running the constructor
+        assertThat(numCallsToShouldRunSupplier.get())
+                .as("Ensure the number of times we checked if we should run is at most the number of times"
+                        + " MINIMUM_INTERVAL_IF_NOT_RUNNING has elapsed")
+                .isLessThanOrEqualTo(
+                        elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
+        assertThat(numCallsToIntervalSupplier.get())
+                .as("Ensure the number of times we checked at what interval we should run is at most the number of"
+                        + " times MINIMUM_INTERVAL_IF_NOT_RUNNING has elapsed")
+                .isLessThanOrEqualTo(
+                        elapsedDuration.dividedBy(AdjustableBackgroundTask.MINIMUM_INTERVAL_IF_NOT_RUNNING) + 2);
+    }
+
+    @Test
+    public void suppliersAreCalledTogetherWithTask() {
+        shouldRun.set(true);
+        tick(Duration.ofSeconds(10 * DEFAULT_INTERVAL.toSeconds()));
+        assertThat(field.get()).isEqualTo(10);
+        // suppliers are also called once when running the constructor
+        assertThat(numCallsToShouldRunSupplier.get()).isEqualTo(11);
+        assertThat(numCallsToIntervalSupplier.get()).isEqualTo(11);
+    }
+
+    private void tick(Duration duration) {
+        scheduledExecutor.tick(duration.toMillis(), TimeUnit.MILLISECONDS);
+    }
+}u}(jp (0ff14400f99f0f97c0494b5db923ebce2e42263djq Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javajq modifiedj q Kjq K!j
q K0jq https://github.com/palantir/atlasdb/blob/b1d2944fd1c9432160882009a24a5a305a60f4bc/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj
q https://github.com/palantir/atlasdb/raw/b1d2944fd1c9432160882009a24a5a305a60f4bc/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javajq https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=b1d2944fd1c9432160882009a24a5a305a60f4bcjq X  @@ -42,7 +42,7 @@
 import java.util.concurrent.TimeUnit;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
-import org.awaitility.Awaitility;
+import org.junit.After;
 import org.junit.Test;
 
 public class ThreadInfoLockServiceImplTest {
@@ -272,31 +272,6 @@ public void refreshDoesNotChangeSnapshot() throws InterruptedException {
         assertThat(getLatestThreadInfoForLock(TEST_LOCK_1)).contains(ANONYMOUS_TEST_THREAD_1);
     }
 
-    @Test
-    public void backgroundSnapshotRunnerWorks() throws InterruptedException {
-        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
-                .isStandaloneServer(false)
-                .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
-                        .recordThreadInfo(true)
-                        .threadInfoSnapshotIntervalMillis(50L)
-                        .build())
-                .build());
-        LockThreadInfoSnapshotManager backgroundSnapshotRunner = lockServiceWithBackgroundRunner.getSnapshotManager();
-
-        LockResponse response = lockServiceWithBackgroundRunner.lockWithFullLockResponse(
-                LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
-
-        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
-                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
-                .containsExactly(Map.entry(TEST_LOCK_1, ANONYMOUS_TEST_THREAD_1)));
-
-        lockServiceWithBackgroundRunner.unlock(response.getToken());
-
-        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
-                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
-                .doesNotContainKey(TEST_LOCK_1));
-    }
-
     @Test
     public void logArgIsUnsafeAndContainsEmptyOptionalIfNotRecordingThreadInfo() throws InterruptedException {
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
@@ -307,11 +282,10 @@ public void logArgIsUnsafeAndContainsEmptyOptionalIfNotRecordingThreadInfo() thr
 
     @Test
     public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() throws InterruptedException {
-        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
+        LockServiceImpl lockServiceWithRecordingEnabled = LockServiceImpl.create(LockServerOptions.builder()
                 .isStandaloneServer(false)
                 .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
                         .recordThreadInfo(true)
-                        .threadInfoSnapshotIntervalMillis(50L)
                         .build())
                 .build());
         LockRequest lockRequest2 = LockRequest.builder(
@@ -320,17 +294,25 @@ public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() t
                 .withCreatingThreadName(TEST_THREAD_2)
                 .build();
 
-        lockServiceWithBackgroundRunner.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
-        lockServiceWithBackgroundRunner.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
+        lockServiceWithRecordingEnabled.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+        lockServiceWithRecordingEnabled.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
 
-        Awaitility.waitAtMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(lockServiceWithBackgroundRunner
+        lockServiceWithRecordingEnabled.getSnapshotManager().takeSnapshot();
+
+        assertThat(lockServiceWithRecordingEnabled
                         .getSnapshotManager()
                         .getRestrictedSnapshotAsOptionalLogArg(Set.of(TEST_LOCK_1)))
                 .isEqualTo(UnsafeArg.of(
                         "presumedClientThreadHoldersIfEnabled",
                         // Snapshot should be restricted to TEST_LOCK_1
-                        Optional.of(
-                                Map.of(TEST_LOCK_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1))))));
+                        Optional.of(Map.of(TEST_LOCK_1, LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD_1)))));
+
+        lockServiceWithRecordingEnabled.close();
+    }
+
+    @After
+    public void tearDown() {
+        lockService.close();
     }
 
     private void forceSnapshot() {u}(jp (2d3777830cee23df595f18bcd0f7378a07e49ebejq etimelock-agent/src/main/java/com/palantir/timelock/config/RestrictedTimeLockRuntimeConfiguration.javajq modifiedj q Kjq K j
q Kjq https://github.com/palantir/atlasdb/blob/b1d2944fd1c9432160882009a24a5a305a60f4bc/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.javaj
q https://github.com/palantir/atlasdb/raw/b1d2944fd1c9432160882009a24a5a305a60f4bc/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.javajq https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FRestrictedTimeLockRuntimeConfiguration.java?ref=b1d2944fd1c9432160882009a24a5a305a60f4bcjq Xb  @@ -16,6 +16,7 @@
 
 package com.palantir.timelock.config;
 
+import com.palantir.lock.DebugThreadInfoConfiguration;
 import java.util.Optional;
 
 public class RestrictedTimeLockRuntimeConfiguration extends TimeLockRuntimeConfiguration {
@@ -54,4 +55,9 @@ public TimeLockAdjudicationConfiguration adjudication() {
     public Optional<TsBoundPersisterRuntimeConfiguration> timestampBoundPersistence() {
         return runtime.timestampBoundPersistence();
     }
+
+    @Override
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return runtime.threadInfoConfiguration();
+    }
 }u}(jp (d8d2a7c36eb3321b137f488acb279decabb46ac6jq [timelock-agent/src/main/java/com/palantir/timelock/config/TimeLockRuntimeConfiguration.javajq modifiedj q Kjq K j
q Kjq https://github.com/palantir/atlasdb/blob/b1d2944fd1c9432160882009a24a5a305a60f4bc/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.javaj
q https://github.com/palantir/atlasdb/raw/b1d2944fd1c9432160882009a24a5a305a60f4bc/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.javajq https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fconfig%2FTimeLockRuntimeConfiguration.java?ref=b1d2944fd1c9432160882009a24a5a305a60f4bcjq X  @@ -20,6 +20,8 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.google.common.base.Preconditions;
+import com.palantir.lock.DebugThreadInfoConfiguration;
+import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
 import com.palantir.logsafe.DoNotLog;
 import java.util.Optional;
 import org.immutables.value.Value;
@@ -78,6 +80,12 @@ public TimeLockAdjudicationConfiguration adjudication() {
     @JsonProperty("timestamp-bound-persistence")
     public abstract Optional<TsBoundPersisterRuntimeConfiguration> timestampBoundPersistence();
 
+    @JsonProperty("debug-thread-info-config")
+    @Value.Default
+    public DebugThreadInfoConfiguration threadInfoConfiguration() {
+        return ImmutableDebugThreadInfoConfiguration.builder().build();
+    }
+
     @Value.Check
     public void check() {
         Preconditions.checkState(u}(jp (a168b555f03c27ec1cf6a6780262110e71867bedjq Itimelock-agent/src/main/java/com/palantir/timelock/paxos/LockCreator.javajq modifiedj q Kjq Kj
q K
jq https://github.com/palantir/atlasdb/blob/b1d2944fd1c9432160882009a24a5a305a60f4bc/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj
q https://github.com/palantir/atlasdb/raw/b1d2944fd1c9432160882009a24a5a305a60f4bc/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javajq https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.java?ref=b1d2944fd1c9432160882009a24a5a305a60f4bcjq Xd  @@ -21,27 +21,28 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.impl.LockServiceImpl;
 import com.palantir.lock.impl.ThreadPooledLockService;
+import com.palantir.refreshable.Refreshable;
 import com.palantir.timelock.config.TimeLockRuntimeConfiguration;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Semaphore;
-import java.util.function.Supplier;
 
 public class LockCreator {
-    private final Supplier<TimeLockRuntimeConfiguration> runtime;
+    private final Refreshable<TimeLockRuntimeConfiguration> runtime;
     private final long blockingTimeoutMs;
     private final Semaphore sharedThreadPool;
     private final ExecutorService sharedExecutor = PTExecutors.newCachedThreadPool(LockServiceImpl.class.getName());
 
-    public LockCreator(Supplier<TimeLockRuntimeConfiguration> runtime, int threadPoolSize, long blockingTimeoutMs) {
+    public LockCreator(Refreshable<TimeLockRuntimeConfiguration> runtime, int threadPoolSize, long blockingTimeoutMs) {
         this.runtime = runtime;
         this.sharedThreadPool = new Semaphore(threadPoolSize);
         this.blockingTimeoutMs = blockingTimeoutMs;
     }
 
     public CloseableLockService createThreadPoolingLockService() {
-        LockServerOptions lockServerOptions = LockServerOptions.builder()
-                .slowLogTriggerMillis(runtime.get().slowLockLogTriggerMillis())
-                .build();
+        Refreshable<LockServerOptions> lockServerOptions = runtime.map(rt -> LockServerOptions.builder()
+                .slowLogTriggerMillis(rt.slowLockLogTriggerMillis())
+                .threadInfoConfiguration(rt.threadInfoConfiguration())
+                .build());
 
         LockServiceImpl rawLockService = LockServiceImpl.create(lockServerOptions, sharedExecutor);
         CloseableLockService lockService = BlockingTimeLimitedLockService.create(ueu(cd59c6b361668ec69193d011aea4b2765cd427c3}(sha(cd59c6b361668ec69193d011aea4b2765cd427c3node_idEC_kwDOAjP5fdoAKGNkNTljNmIzNjE2NjhlYzY5MTkzZDAxMWFlYTRiMjc2NWNkNDI3YzMcommit}(author}(nameJeremy Kongemailjeremykong@hotmail.comdate2023-04-25T17:27:29Zu	committer}(juq svc-autoreleasejwq -pd-foundry-infrastructure-notify@palantir.comjyq 2023-04-25T17:27:29Zumessage"Autorelease 0.842.0-rc1

[skip ci]tree}(jmq (ac9b7b9ab1413668ec9dd42658de6b42ce249178url`https://api.github.com/repos/palantir/atlasdb/git/trees/ac9b7b9ab1413668ec9dd42658de6b42ce249178ujq bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cd59c6b361668ec69193d011aea4b2765cd427c3
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRIDYIACgkQhbrR8ip7mDCFowD9GXQxUkssZU1qHRdPRm+vuVvF
W9cYrG5dcuuuimtQI0oA/RiEuUXej+0vOLlda0T/0jHRvDRcxdcT/ssTCqg2cu4m
=QnJ5
-----END PGP SIGNATURE-----
payloadX  tree ac9b7b9ab1413668ec9dd42658de6b42ce249178
parent bc3f88cd61fc1a598956c54e7c777c748bcdc0b9
author Jeremy Kong <jeremykong@hotmail.com> 1682443649 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1682443649 +0000

Autorelease 0.842.0-rc1

[skip ci]uujq ^https://api.github.com/repos/palantir/atlasdb/commits/cd59c6b361668ec69193d011aea4b2765cd427c3html_urlShttps://github.com/palantir/atlasdb/commit/cd59c6b361668ec69193d011aea4b2765cd427c3comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cd59c6b361668ec69193d011aea4b2765cd427c3/commentsjsq }(login
jeremyk-91idJZ joq MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jq 'https://api.github.com/users/jeremyk-91jq https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj{q }(jq svc-autoreleasejq J(joq MDQ6VXNlcjUxNzE4MzQ2jq 4https://avatars.githubusercontent.com/u/51718346?v=4jq h5jq ,https://api.github.com/users/svc-autoreleasejq "https://github.com/svc-autoreleasejq 6https://api.github.com/users/svc-autorelease/followersjq Chttps://api.github.com/users/svc-autorelease/following{/other_user}jq <https://api.github.com/users/svc-autorelease/gists{/gist_id}jq Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jq :https://api.github.com/users/svc-autorelease/subscriptionsjq 1https://api.github.com/users/svc-autorelease/orgsjq 2https://api.github.com/users/svc-autorelease/reposjq =https://api.github.com/users/svc-autorelease/events{/privacy}jq <https://api.github.com/users/svc-autorelease/received_eventsjq Userjq uparents]}(jmq (bc3f88cd61fc1a598956c54e7c777c748bcdc0b9jq ^https://api.github.com/repos/palantir/atlasdb/commits/bc3f88cd61fc1a598956c54e7c777c748bcdc0b9jq Shttps://github.com/palantir/atlasdb/commit/bc3f88cd61fc1a598956c54e7c777c748bcdc0b9uastats}(totalK 	additionsK 	deletionsK ufiles]u(92e1caaeefdda1337bea7cf7e4175ef06038bfba}(sha(92e1caaeefdda1337bea7cf7e4175ef06038bfbanode_idEC_kwDOAjP5fdoAKDkyZTFjYWFlZWZkZGExMzM3YmVhN2NmN2U0MTc1ZWYwNjAzOGJmYmEcommit}(author}(nameMohammed Daudaliemailmdaudali786@gmail.comdate2023-04-05T16:02:26Zu	committer}(jq svc-autoreleasejq -pd-foundry-infrastructure-notify@palantir.comjq 2023-04-05T16:02:26ZumessageAutorelease 0.780.1

[skip ci]tree}(jq (94bc0c7b166878c023038f384a5680cfe2f66471url`https://api.github.com/repos/palantir/atlasdb/git/trees/94bc0c7b166878c023038f384a5680cfe2f66471ujq bhttps://api.github.com/repos/palantir/atlasdb/git/commits/92e1caaeefdda1337bea7cf7e4175ef06038bfba
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQtm5gACgkQhbrR8ip7mDDZ2gEA1r6MHBIMJnDr3vZZoCOs/mi2
Y+B84/JKhNVMJWWK91wA/imWHMeJllZucAq0f3CxetlSqVMrlAxsngztn7LIKS2J
=Wt8K
-----END PGP SIGNATURE-----
payloadX  tree 94bc0c7b166878c023038f384a5680cfe2f66471
parent c73f259185c058edf9e8b450e7b531a15b3de526
author Mohammed Daudali <mdaudali786@gmail.com> 1680710546 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1680710546 +0000

Autorelease 0.780.1

[skip ci]uujq ^https://api.github.com/repos/palantir/atlasdb/commits/92e1caaeefdda1337bea7cf7e4175ef06038bfbahtml_urlShttps://github.com/palantir/atlasdb/commit/92e1caaeefdda1337bea7cf7e4175ef06038bfbacomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/92e1caaeefdda1337bea7cf7e4175ef06038bfba/commentsjq }(loginmdaudaliidJ jq MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5jq %https://api.github.com/users/mdaudalijq https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminujq }(j r svc-autoreleasejr J(jq MDQ6VXNlcjUxNzE4MzQ2jr 4https://avatars.githubusercontent.com/u/51718346?v=4jr h5jq ,https://api.github.com/users/svc-autoreleasejq "https://github.com/svc-autoreleasej	r 6https://api.github.com/users/svc-autorelease/followersjr Chttps://api.github.com/users/svc-autorelease/following{/other_user}j
r <https://api.github.com/users/svc-autorelease/gists{/gist_id}jr Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}jr :https://api.github.com/users/svc-autorelease/subscriptionsjr 1https://api.github.com/users/svc-autorelease/orgsjr 2https://api.github.com/users/svc-autorelease/reposjr =https://api.github.com/users/svc-autorelease/events{/privacy}jr <https://api.github.com/users/svc-autorelease/received_eventsjr Userjr uparents]}(jq (c73f259185c058edf9e8b450e7b531a15b3de526jq ^https://api.github.com/repos/palantir/atlasdb/commits/c73f259185c058edf9e8b450e7b531a15b3de526jq Shttps://github.com/palantir/atlasdb/commit/c73f259185c058edf9e8b450e7b531a15b3de526uastats}(totalK 	additionsK 	deletionsK ufiles]u(4a396c4bd0a5f78151951735b47d420d8ac482e1}(sha(4a396c4bd0a5f78151951735b47d420d8ac482e1node_idEC_kwDOAjP5fdoAKDRhMzk2YzRiZDBhNWY3ODE1MTk1MTczNWI0N2Q0MjBkOGFjNDgyZTEcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-13T09:44:50Zu	committer}(jEr 	Tom PapkejGr tpapke@palantir.comjIr 2023-06-13T09:44:50Zumessage Properly set UNKNOWN lock holdertree}(j=r (bacb11afc8ef5d4d29b0463f782008add5562619url`https://api.github.com/repos/palantir/atlasdb/git/trees/bacb11afc8ef5d4d29b0463f782008add5562619ujUr bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4a396c4bd0a5f78151951735b47d420d8ac482e1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSIOpIACgkQmF9s0kaF
Iw2eUwgAptHWwMuhkqFtI3XRPDrE1mCJ/6v1LJMPDR4bEL30WgeIMStmUrR+DEc5
YyOypC/FaY4eKX3//nLt+e64Rv9g5lX9R1lvcs/tuWwhwKWh5H82Zc1AWqeyar2H
jWjCN9HHy6c5JHHwl+YYbFU8C4D3fae9hi8pqi8Z51uXzTy66oeL0UqjcEZYivPT
9MMN529xrGc6pQMXtb5XOkhPqkUEnW6ZvBxHDI9NqW9q3BlFNulNcDxxrHvvOuxX
2vOWVbDkX/Qeus/lieQ05kPOTY+chKAMj5GiII6o1QrBz0cOQ+AjoVuscj7OgR00
+W3DEPBwEU9qEQ4LS+Gsf+rr+Z6bFg==
=ILyE
-----END PGP SIGNATURE-----payloadtree bacb11afc8ef5d4d29b0463f782008add5562619
parent 9890d0f689b9f016270927b870e362d1cdbbbdb9
author Tom Papke <tpapke@palantir.com> 1686649490 +0100
committer Tom Papke <tpapke@palantir.com> 1686649490 +0100

Properly set UNKNOWN lock holder
uujUr ^https://api.github.com/repos/palantir/atlasdb/commits/4a396c4bd0a5f78151951735b47d420d8ac482e1html_urlShttps://github.com/palantir/atlasdb/commit/4a396c4bd0a5f78151951735b47d420d8ac482e1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4a396c4bd0a5f78151951735b47d420d8ac482e1/commentsjCr }(login	ToemmscheidJboj?r MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jUr &https://api.github.com/users/Toemmschejcr https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujKr }(jhr 	Toemmschejjr Jboj?r MDQ6VXNlcjQzNjc1NDkwjlr 4https://avatars.githubusercontent.com/u/43675490?v=4jnr h5jUr &https://api.github.com/users/Toemmschejcr https://github.com/Toemmschejqr 0https://api.github.com/users/Toemmsche/followersjsr =https://api.github.com/users/Toemmsche/following{/other_user}jur 6https://api.github.com/users/Toemmsche/gists{/gist_id}jwr =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jyr 4https://api.github.com/users/Toemmsche/subscriptionsj{r +https://api.github.com/users/Toemmsche/orgsj}r ,https://api.github.com/users/Toemmsche/reposjr 7https://api.github.com/users/Toemmsche/events{/privacy}jr 6https://api.github.com/users/Toemmsche/received_eventsjr Userjr uparents]}(j=r (9890d0f689b9f016270927b870e362d1cdbbbdb9jUr ^https://api.github.com/repos/palantir/atlasdb/commits/9890d0f689b9f016270927b870e362d1cdbbbdb9jcr Shttps://github.com/palantir/atlasdb/commit/9890d0f689b9f016270927b870e362d1cdbbbdb9uastats}(totalKt	additionsKI	deletionsK+ufiles](}(j=r (c25b9ee1ee0de9b56654d092490f47f1de76de21filenameKlock-api-objects/src/main/java/com/palantir/lock/ThreadAwareLockClient.javastatusmodifiedjr Kjr K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/4a396c4bd0a5f78151951735b47d420d8ac482e1/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareLockClient.javaraw_urlhttps://github.com/palantir/atlasdb/raw/4a396c4bd0a5f78151951735b47d420d8ac482e1/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareLockClient.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api-objects%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareLockClient.java?ref=4a396c4bd0a5f78151951735b47d420d8ac482e1patch@@ -22,6 +22,8 @@
 @Value.Immutable
 public interface ThreadAwareLockClient {
 
+    ThreadAwareLockClient UNKNOWN = ThreadAwareLockClient.of(LockClient.ANONYMOUS, "unknown-thread");
+
     @Nullable
     LockClient client();
 u}(j=r (fde610acb6129574a8dfe3f09b44e30bb2abe0cfjr Mlock-api/src/main/java/com/palantir/lock/ThreadAwareCloseableLockService.javajr modifiedjr Kjr Kjr Kjr https://github.com/palantir/atlasdb/blob/4a396c4bd0a5f78151951735b47d420d8ac482e1/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareCloseableLockService.javajr https://github.com/palantir/atlasdb/raw/4a396c4bd0a5f78151951735b47d420d8ac482e1/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareCloseableLockService.javajr https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FThreadAwareCloseableLockService.java?ref=4a396c4bd0a5f78151951735b47d420d8ac482e1jr X  @@ -19,10 +19,11 @@
 public interface ThreadAwareCloseableLockService extends CloseableLockService {
 
     /**
-     * This is a debugging-only method providing best-effort information about which client-thread last successfully
-     * acquired a lock. This does not guarantee that the lock is still held by that thread as unlock operations are
-     * not recorded.
-     * Returns null if we have not recorded a thread acquisition for this lock yet.
+     * This is a debugging-only method providing a good-effort guess about which client-thread currently
+     * holds a given lock. This information may not reflect the actual state of the world.
+     * Returns null if we have not recorded a mapping for this lock.
+     * Returns {@link ThreadAwareLockClient#UNKNOWN} if we do not know if this lock is being held or who the current
+     * holder thread is.
      */
-    ThreadAwareLockClient getLastAcquiringThread(LockDescriptor lock);
+    ThreadAwareLockClient getHoldingThread(LockDescriptor lock);
 }u}(j=r (a185230f716987f28c62c5c91fcc198bdeef9798jr Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javajr modifiedjr Kjr K
jr K"jr https://github.com/palantir/atlasdb/blob/4a396c4bd0a5f78151951735b47d420d8ac482e1/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javajr https://github.com/palantir/atlasdb/raw/4a396c4bd0a5f78151951735b47d420d8ac482e1/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javajr https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=4a396c4bd0a5f78151951735b47d420d8ac482e1jr Xf  @@ -194,9 +194,9 @@ public String toString() {
     private final DebugThreadInfoConfiguration threadInfoConfiguration;
 
     /**
-     * Mapping of locks to the client thread that last acquired it successfully.
+     * Mapping of locks to the client thread that last held it.
      */
-    private final Cache<LockDescriptor, ThreadAwareLockClient> lastAcquiringThread;
+    private final Cache<LockDescriptor, ThreadAwareLockClient> lastHoldingThread;
 
     private final AtomicBoolean isShutDown = new AtomicBoolean(false);
 
@@ -276,7 +276,7 @@ private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable
 
         // thread info collection is off by default
         this.threadInfoConfiguration = options.threadInfoConfiguration();
-        this.lastAcquiringThread = Caffeine.newBuilder()
+        this.lastHoldingThread = Caffeine.newBuilder()
                 .executor(executor.resource())
                 .maximumSize(DebugThreadInfoConfiguration.MAX_THREAD_INFO_SIZE)
                 .expireAfterWrite(DebugThreadInfoConfiguration.THREAD_INFO_WRITE_EXPIRATION)
@@ -310,7 +310,7 @@ private HeldLocksToken createHeldLocksToken(
                 }
                 if (threadInfoConfiguration.recordThreadInfo()) {
                     ThreadAwareLockClient lockHolderThread = ThreadAwareLockClient.of(client, requestThread);
-                    lockDescriptorMap.getKeys().forEach(lock -> lastAcquiringThread.put(lock, lockHolderThread));
+                    lockDescriptorMap.getKeys().forEach(lock -> lastHoldingThread.put(lock, lockHolderThread));
                 }
                 return token;
             }
@@ -337,7 +337,7 @@ private HeldLocksGrant createHeldLocksGrant(
                 if (threadInfoConfiguration.recordThreadInfo()) {
                     ThreadAwareLockClient lockHolderThread =
                             ThreadAwareLockClient.of(INTERNAL_LOCK_GRANT_CLIENT, "N/A");
-                    lockDescriptorMap.getKeys().forEach(lock -> lastAcquiringThread.put(lock, lockHolderThread));
+                    lockDescriptorMap.getKeys().forEach(lock -> lastHoldingThread.put(lock, lockHolderThread));
                 }
                 return grant;
             }
@@ -678,7 +678,7 @@ public boolean unlockAndFreeze(HeldLocksToken token) {
         }
         if (threadInfoConfiguration.recordThreadInfo()) {
             // unlockAndFreeze will succeed
-            invalidateThreadInfoForHeldLocks(heldLocks.realToken);
+            updateThreadInfoForUnlock(heldLocks);
         }
         for (ClientAwareReadWriteLock lock : heldLocks.locks.getKeys()) {
             lock.get(client, LockMode.WRITE).unlockAndFreeze();
@@ -700,7 +700,7 @@ private <T extends ExpiringToken> boolean unlockInternal(T token, ConcurrentMap<
         }
         if (threadInfoConfiguration.recordThreadInfo()) {
             // we can assume that unlock will succeed at this point
-            invalidateThreadInfoForHeldLocks(heldLocks.realToken);
+            updateThreadInfoForUnlock(heldLocks);
         }
 
         long heldDuration = System.currentTimeMillis() - token.getCreationDateMs();
@@ -1269,15 +1269,23 @@ public long currentTimeMillis() {
         return System.currentTimeMillis();
     }
 
-    private void invalidateThreadInfoForHeldLocks(ExpiringToken token) {
-        for (LockDescriptor lock : token.getLockDescriptors()) {
-            lastAcquiringThread.invalidate(lock);
-        }
+    private <T extends ExpiringToken> void updateThreadInfoForUnlock(HeldLocks<T> heldLocks) {
+        boolean isAnonymous = heldLocks.getRealToken().getClient().isAnonymous();
+        heldLocks.locks.entries().forEach(entry -> {
+            LockMode lockmode = entry.getValue();
+            LockDescriptor lockDescriptor = entry.getKey().getDescriptor();
+
+            if (isAnonymous && lockmode.equals(LockMode.WRITE)) {
+                lastHoldingThread.invalidate(lockDescriptor);
+            } else {
+                lastHoldingThread.put(lockDescriptor, ThreadAwareLockClient.UNKNOWN);
+            }
+        });
     }
 
     @Override
-    public ThreadAwareLockClient getLastAcquiringThread(LockDescriptor lock) {
-        return lastAcquiringThread.getIfPresent(lock);
+    public ThreadAwareLockClient getHoldingThread(LockDescriptor lock) {
+        return lastHoldingThread.getIfPresent(lock);
     }
 
     private static String updateThreadName(LockRequest request) {u}(j=r (2a6badbced65348674ea52f943309f42c1edefb0jr Rlock-impl/src/test/java/com/palantir/lock/impl/ThreadAwareLockServiceImplTest.javajr modifiedjr K,jr Kjr KEjr https://github.com/palantir/atlasdb/blob/4a396c4bd0a5f78151951735b47d420d8ac482e1/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.javajr https://github.com/palantir/atlasdb/raw/4a396c4bd0a5f78151951735b47d420d8ac482e1/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.javajr https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadAwareLockServiceImplTest.java?ref=4a396c4bd0a5f78151951735b47d420d8ac482e1jr X#  @@ -70,16 +70,16 @@ public class ThreadAwareLockServiceImplTest {
 
     @Test
     public void initialThreadInfoIsEmpty() {
-        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1)).isNull();
-        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_2)).isNull();
-        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_3)).isNull();
+        assertThat(lockService.getHoldingThread(TEST_LOCK_1)).isNull();
+        assertThat(lockService.getHoldingThread(TEST_LOCK_2)).isNull();
+        assertThat(lockService.getHoldingThread(TEST_LOCK_3)).isNull();
     }
 
     @Test
     public void recordsThreadInfo_singleLock() throws InterruptedException {
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
 
-        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
+        assertThat(lockService.getHoldingThread(TEST_LOCK_1))
                 .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1));
     }
 
@@ -90,7 +90,7 @@ public void doesNotRecordThreadInfoByDefault() throws InterruptedException {
 
         defaultLockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
 
-        assertThat(defaultLockService.getLastAcquiringThread(TEST_LOCK_1)).isNull();
+        assertThat(defaultLockService.getHoldingThread(TEST_LOCK_1)).isNull();
     }
 
     @Test
@@ -123,7 +123,7 @@ public void recordsThreadInfo_multipleUniqueLocks_fromDifferentThreads() throws
                 .collect(Collectors.toMap(Entry::getKey, Entry::getValue));
 
         expected.forEach((lock, clientThread) -> {
-            assertThat(lockService.getLastAcquiringThread(lock)).isEqualTo(clientThread);
+            assertThat(lockService.getHoldingThread(lock)).isEqualTo(clientThread);
         });
     }
 
@@ -141,7 +141,7 @@ public void recordsThreadInfo_sharedLock_fromDifferentThreads() throws Interrupt
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest1);
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
 
-        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
+        assertThat(lockService.getHoldingThread(TEST_LOCK_1))
                 .isIn(
                         ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1),
                         ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_2));
@@ -160,7 +160,7 @@ public void doesNotRecordDroppedLocksWithLockAllOrNone() throws InterruptedExcep
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
 
-        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
+        assertThat(lockService.getHoldingThread(TEST_LOCK_1))
                 .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1));
     }
 
@@ -175,17 +175,34 @@ public void doesNotRecordFailedLocks() throws InterruptedException {
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
         lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest2);
 
-        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
+        assertThat(lockService.getHoldingThread(TEST_LOCK_1))
                 .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1));
     }
 
     @Test
-    public void recordsUnlock() throws InterruptedException {
+    public void recordsUnlockWriteLock() throws InterruptedException {
         LockResponse response =
                 lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
+
+        lockService.unlock(response.getToken());
+
+        assertThat(lockService.getHoldingThread(TEST_LOCK_1)).isNull();
+    }
+
+    @Test
+    public void recordsUnlockReadLock() throws InterruptedException {
+        LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ))
+                .doNotBlock()
+                .lockAsManyAsPossible()
+                .withCreatingThreadName(TEST_THREAD_1)
+                .build();
+        LockResponse response =
+                lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, lockRequest);
         lockService.unlock(response.getToken());
 
-        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1)).isNull();
+        // WE know that the lock is not being held at the moment
+        // But since it is a shared lock our implementation does not know and is self-aware about that fact
+        assertThat(lockService.getHoldingThread(TEST_LOCK_1)).isEqualTo(ThreadAwareLockClient.UNKNOWN);
     }
 
     @Test
@@ -194,7 +211,9 @@ public void recordsUnlockAndFreezeForNonAnonymousClient() throws InterruptedExce
                 LockClient.of("non-anonymous-client"), LOCK_1_THREAD_1_WRITE_REQUEST);
         lockService.unlockAndFreeze(response.getToken());
 
-        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1)).isNull();
+        // since it's a non-anonymous client, we cannot be certain about the current holder since
+        // the client could have multiple write locks
+        assertThat(lockService.getHoldingThread(TEST_LOCK_1)).isEqualTo(ThreadAwareLockClient.UNKNOWN);
     }
 
     @Test
@@ -236,28 +255,28 @@ public void recordsCorrectStateAfterMultipleOperations() throws Exception {
         barrier.await();
 
         // T1 should hold nothing, T2 holds 3 in exclusive mode, T3 holds 1 in exclusive and 2 in shared mode
-        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
+        assertThat(lockService.getHoldingThread(TEST_LOCK_1))
                 .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_3));
-        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_2))
+        assertThat(lockService.getHoldingThread(TEST_LOCK_2))
                 .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_3));
-        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_3))
+        assertThat(lockService.getHoldingThread(TEST_LOCK_3))
                 .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_2));
 
         lockService.unlock(response2.getToken());
 
         // Only T3 should hold locks
-        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
+        assertThat(lockService.getHoldingThread(TEST_LOCK_1))
                 .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_3));
-        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_2))
+        assertThat(lockService.getHoldingThread(TEST_LOCK_2))
                 .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_3));
-        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_3)).isNull();
+        assertThat(lockService.getHoldingThread(TEST_LOCK_3)).isNull();
 
         lockService.unlock(response3.get().getToken());
 
-        // No more locks should be held
-        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1)).isNull();
-        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_2)).isNull();
-        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_3)).isNull();
+        assertThat(lockService.getHoldingThread(TEST_LOCK_1)).isNull();
+        // Lock 2 is a shared lock
+        assertThat(lockService.getHoldingThread(TEST_LOCK_2)).isEqualTo(ThreadAwareLockClient.UNKNOWN);
+        assertThat(lockService.getHoldingThread(TEST_LOCK_3)).isNull();
     }
 
     @Test
@@ -266,7 +285,7 @@ public void recordsConvertToGrant() throws InterruptedException {
                 lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
         lockService.convertToGrant(response.getToken());
 
-        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
+        assertThat(lockService.getHoldingThread(TEST_LOCK_1))
                 .isEqualTo(ThreadAwareLockClient.of(LockClient.INTERNAL_LOCK_GRANT_CLIENT, "N/A"));
     }
 
@@ -277,7 +296,7 @@ public void recordsUseGrant() throws InterruptedException {
         HeldLocksGrant grant = lockService.convertToGrant(response.getToken());
         lockService.useGrant(LockClient.ANONYMOUS, grant);
 
-        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
+        assertThat(lockService.getHoldingThread(TEST_LOCK_1))
                 .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, "Converted from Grant, Missing Thread Name"));
     }
 
@@ -286,7 +305,7 @@ public void refreshDoesNotChangeLastAcquiringThread() throws InterruptedExceptio
         LockResponse response =
                 lockService.lockWithFullLockResponse(LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
         lockService.refreshTokens(List.of(response.getToken()));
-        assertThat(lockService.getLastAcquiringThread(TEST_LOCK_1))
+        assertThat(lockService.getHoldingThread(TEST_LOCK_1))
                 .isEqualTo(ThreadAwareLockClient.of(LockClient.ANONYMOUS, TEST_THREAD_1));
     }
 }ueu(72b003f4750fac0d6ed4a124514bf82ba47b3918}(sha(72b003f4750fac0d6ed4a124514bf82ba47b3918node_idEC_kwDOAjP5fdoAKDcyYjAwM2Y0NzUwZmFjMGQ2ZWQ0YTEyNDUxNGJmODJiYTQ3YjM5MTgcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-06T21:25:04Zu	committer}(jr Jeremy Kongjr jkong@palantir.comjr 2023-06-06T21:25:04ZumessageBank balance stufftree}(jr (ac3485a03188af19dff53153f1182b88047fd993url`https://api.github.com/repos/palantir/atlasdb/git/trees/ac3485a03188af19dff53153f1182b88047fd993ujr bhttps://api.github.com/repos/palantir/atlasdb/git/commits/72b003f4750fac0d6ed4a124514bf82ba47b3918
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmR/pDAACgkQTLdFKain
zjwfpAgAtzMRx11EHsOkyPeXqJs+WyWS0nBjABYq6pozATP95RItytfKv0jSsHP4
rbGdP50I7vZmfAUMz+8Y7B1785SE4Tm419E1lAe3i3cEVCXXC415AUbxgnFxzLk8
2F1C/AZoJhp446c1eTP4cFh/U1y/N4M3ss/LQMRhWSs7SxdeLSijLT5yWbihwDnP
HWemw28DBHtlGSCdUl2fqfz85qfS6hgvhKO7SOwt6REBEF2gOQpTMOSobiCJVbBq
DpIsjE7gFNW4x02qqWHfAR+0zffxT/+E4ky3ePD/3EsrhVHnTN8bF/Vz56ORfRBc
RKCVeU7Xe6OCLqBzdsDZBbleGoXO3w==
=Cg0g
-----END PGP SIGNATURE-----payloadtree ac3485a03188af19dff53153f1182b88047fd993
parent 09046a3f8f4b7a6afc1b71d37d82743366eda06d
author Jeremy Kong <jkong@palantir.com> 1686086704 +0100
committer Jeremy Kong <jkong@palantir.com> 1686086704 +0100

Bank balance stuff
uujr ^https://api.github.com/repos/palantir/atlasdb/commits/72b003f4750fac0d6ed4a124514bf82ba47b3918html_urlShttps://github.com/palantir/atlasdb/commit/72b003f4750fac0d6ed4a124514bf82ba47b3918comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/72b003f4750fac0d6ed4a124514bf82ba47b3918/commentsjr }(login
jeremyk-91idJZ jr MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jr 'https://api.github.com/users/jeremyk-91jr https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujr }(jr 
jeremyk-91jr JZ jr MDQ6VXNlcjU5NTU1MTA=jr 3https://avatars.githubusercontent.com/u/5955510?v=4jr h5jr 'https://api.github.com/users/jeremyk-91jr https://github.com/jeremyk-91j s 1https://api.github.com/users/jeremyk-91/followersjs >https://api.github.com/users/jeremyk-91/following{/other_user}js 7https://api.github.com/users/jeremyk-91/gists{/gist_id}js >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}js 5https://api.github.com/users/jeremyk-91/subscriptionsj
s ,https://api.github.com/users/jeremyk-91/orgsjs -https://api.github.com/users/jeremyk-91/reposjs 8https://api.github.com/users/jeremyk-91/events{/privacy}js 7https://api.github.com/users/jeremyk-91/received_eventsjs Userjs uparents]}(jr (09046a3f8f4b7a6afc1b71d37d82743366eda06djr ^https://api.github.com/repos/palantir/atlasdb/commits/09046a3f8f4b7a6afc1b71d37d82743366eda06djr Shttps://github.com/palantir/atlasdb/commit/09046a3f8f4b7a6afc1b71d37d82743366eda06duastats}(totalK+	additionsK	deletionsK
ufiles](}(jr (a96ccf466ea10c1243f05d1cda77fb840d495a65filenamekatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflows.javastatusmodifiedj.s Kj/s KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/72b003f4750fac0d6ed4a124514bf82ba47b3918/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaraw_urlhttps://github.com/palantir/atlasdb/raw/72b003f4750fac0d6ed4a124514bf82ba47b3918/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.java?ref=72b003f4750fac0d6ed4a124514bf82ba47b3918patchX[
  @@ -18,9 +18,11 @@
 
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
@@ -45,7 +47,8 @@ public final class BankBalanceWorkflows {
     private static final SafeLogger log = SafeLoggerFactory.get(BankBalanceWorkflows.class);
     private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
 
-    private static final Integer COLUMN = 0;
+    @VisibleForTesting
+    static final Integer ROW = 42;
 
     private BankBalanceWorkflows() {
         // utility
@@ -121,16 +124,23 @@ private void performTransfers(InteractiveTransaction transaction, Map<Integer, I
         }
 
         private Map<Integer, Optional<Integer>> getAccountBalances(InteractiveTransaction transaction) {
+            Map<Integer, Integer> balancesInDatabase = transaction
+                    .getRowColumnRange(
+                            workflowConfiguration.tableConfiguration().tableName(),
+                            ROW,
+                            ColumnRangeSelection.builder()
+                                    .endColumnExclusive(workflowConfiguration.numberOfAccounts())
+                                    .build())
+                    .stream()
+                    .collect(Collectors.toMap(ColumnValue::column, ColumnValue::value));
             return IntStream.range(0, workflowConfiguration.numberOfAccounts())
                     .boxed()
                     .collect(Collectors.toMap(
-                            Function.identity(),
-                            index -> transaction.read(
-                                    workflowConfiguration.tableConfiguration().tableName(), getCellForAccount(index))));
+                            Function.identity(), index -> Optional.ofNullable(balancesInDatabase.get(index))));
         }
     }
 
     public static WorkloadCell getCellForAccount(int accountIndex) {
-        return ImmutableWorkloadCell.of(accountIndex, COLUMN);
+        return ImmutableWorkloadCell.of(ROW, accountIndex);
     }
 }u}(jr (331bb45680d8fb7ff466c586cda7199127809adfj4s oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowsTest.javaj6s modifiedj.s Kj/s Kj8s Kj9s https://github.com/palantir/atlasdb/blob/72b003f4750fac0d6ed4a124514bf82ba47b3918/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javaj;s https://github.com/palantir/atlasdb/raw/72b003f4750fac0d6ed4a124514bf82ba47b3918/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javaj=s https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.java?ref=72b003f4750fac0d6ed4a124514bf82ba47b3918j?s X
  @@ -18,6 +18,7 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Iterables;
@@ -29,7 +30,9 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
+import com.palantir.atlasdb.workload.transaction.RowColumnRangeReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedRowColumnRangeReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
@@ -38,7 +41,6 @@
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.List;
-import java.util.Optional;
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
@@ -84,12 +86,17 @@ public void bankWorkflowContainsInitialReadsForBalances() {
         List<WitnessedTransactionAction> actions =
                 Iterables.getOnlyElement(history.history()).actions();
 
-        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.numberOfAccounts())
-                .boxed()
-                .map(index -> WitnessedReadTransactionAction.of(
-                        TABLE_NAME, BankBalanceWorkflows.getCellForAccount(index), Optional.empty()))
-                .collect(Collectors.toList());
-        assertThat(actions).containsAll(initialReadActions);
+        assertThat(actions)
+                .contains(WitnessedRowColumnRangeReadTransactionAction.builder()
+                        .originalQuery(RowColumnRangeReadTransactionAction.builder()
+                                .table(TABLE_NAME)
+                                .row(BankBalanceWorkflows.ROW)
+                                .columnRangeSelection(ColumnRangeSelection.builder()
+                                        .endColumnExclusive(CONFIGURATION.numberOfAccounts())
+                                        .build())
+                                .build())
+                        .columnsAndValues(ImmutableList.of())
+                        .build());
     }
 
     @Testueu(867ec9a3169734d49b23f0d0825671d7266b44b7}(sha(867ec9a3169734d49b23f0d0825671d7266b44b7node_idEC_kwDOAjP5fdoAKDg2N2VjOWEzMTY5NzM0ZDQ5YjIzZjBkMDgyNTY3MWQ3MjY2YjQ0Yjccommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-01T22:32:27Zu	committer}(jSs 
Ahmed AlouanejUs aalouane@palantir.comjWs 2023-05-01T22:32:27Zumessageno op 2tree}(jKs (3d7ed6504bfdd9774b5868f03f613ae5225cee3furl`https://api.github.com/repos/palantir/atlasdb/git/trees/3d7ed6504bfdd9774b5868f03f613ae5225cee3fujcs bhttps://api.github.com/repos/palantir/atlasdb/git/commits/867ec9a3169734d49b23f0d0825671d7266b44b7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRQPfsACgkQPlMHVIT1
yhqURQgAmBtr1rGPs1ljRHsNKinj46giGTpnxp7rj8XFLu6a4s9FTcl5NAuJrr+9
8DwavB6rVrUB1Mogt/JJWwbO/VOhgmixpkuBsGD9ewZWsaD4176denqprPIQlRF+
7ps4mbeHg3i/W4S81XqcQH5YJ6NlsO8GkCEVo6v/YO2Nls//EeB43HqEKpxRjscw
3xG41Jpff2OEaakCvXMk5cLAW86NnF3D4l3xa5OftDAtlQN7BqZiJM1A23OqKwXF
xjqQGAaY7IKrjxbu+AnUr4svf38xRRHvpWK0ptj/Ps7mlXeuyXAXKB481UOtEq0S
eUDkrQEGsM8N9bxsuQv0k2s5v+39QA==
=fmyM
-----END PGP SIGNATURE-----payloadtree 3d7ed6504bfdd9774b5868f03f613ae5225cee3f
parent 919d571f0de7222781745198478d0286c515df3b
author Ahmed Alouane <aalouane@palantir.com> 1682980347 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682980347 +0100

no op 2
uujcs ^https://api.github.com/repos/palantir/atlasdb/commits/867ec9a3169734d49b23f0d0825671d7266b44b7html_urlShttps://github.com/palantir/atlasdb/commit/867ec9a3169734d49b23f0d0825671d7266b44b7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/867ec9a3169734d49b23f0d0825671d7266b44b7/commentsjQs }(loginergo14idJjMs MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jcs #https://api.github.com/users/ergo14jqs https://github.com/ergo14<     
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujYs }(jvs ergo14jxs JjMs MDQ6VXNlcjMwOTAzNzM2jzs 4https://avatars.githubusercontent.com/u/30903736?v=4j|s h5jcs #https://api.github.com/users/ergo14jqs https://github.com/ergo14js -https://api.github.com/users/ergo14/followersjs :https://api.github.com/users/ergo14/following{/other_user}js 3https://api.github.com/users/ergo14/gists{/gist_id}js :https://api.github.com/users/ergo14/starred{/owner}{/repo}js 1https://api.github.com/users/ergo14/subscriptionsjs (https://api.github.com/users/ergo14/orgsjs )https://api.github.com/users/ergo14/reposjs 4https://api.github.com/users/ergo14/events{/privacy}js 3https://api.github.com/users/ergo14/received_eventsjs Userjs uparents]}(jKs (919d571f0de7222781745198478d0286c515df3bjcs ^https://api.github.com/repos/palantir/atlasdb/commits/919d571f0de7222781745198478d0286c515df3bjqs Shttps://github.com/palantir/atlasdb/commit/919d571f0de7222781745198478d0286c515df3buastats}(totalK	additionsK	deletionsK ufiles]}(jKs (a6769d69f680891c237b17cb599cfe7363977e1bfilenamebuild.gradlestatusmodifiedjs Kjs K changesKblob_url^https://github.com/palantir/atlasdb/blob/867ec9a3169734d49b23f0d0825671d7266b44b7/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/867ec9a3169734d49b23f0d0825671d7266b44b7/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=867ec9a3169734d49b23f0d0825671d7266b44b7patch@@ -1,5 +1,9 @@
 import org.gradle.plugins.ide.idea.model.IdeaModel
 
+
+
+
+
 buildscript {
     repositories {
         mavenCentral() { metadataSources { mavenPom(); ignoreGradleMetadataRedirection() } }uau(e6e60e5916ecd3e4f549a14ee71fe79dd8361a93}(sha(e6e60e5916ecd3e4f549a14ee71fe79dd8361a93node_idEC_kwDOAjP5fdoAKGU2ZTYwZTU5MTZlY2QzZTRmNTQ5YTE0ZWU3MWZlNzlkZDgzNjFhOTMcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-29T00:26:49Zu	committer}(js 
Ahmed Alouanejs aalouane@palantir.comjs 2023-04-29T00:26:49Zumessageexltree}(js (9d17827d8a8f23ab0fff476deb131354164283caurl`https://api.github.com/repos/palantir/atlasdb/git/trees/9d17827d8a8f23ab0fff476deb131354164283caujs bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e6e60e5916ecd3e4f549a14ee71fe79dd8361a93
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRMZEkACgkQPlMHVIT1
yhqzsQgAtoDfdxoBB4I9YRyn3Hl/EmliN3Z4yAPNzPibZguFGqNsWV9dLQl6/Ppq
/vlfYjg5/5Xkxl3VjkMf5YPOi2uLV/vMvxBrtvVppRyuoDTuEnVD4/ekrS+DRoWD
iGJk948zAx/9uCWeW6u+sB5zY3FV23Z08Xv20QOKElhxk7k815wUbOJGHA+59Ush
iHpvSUoB8m624Gg9KW6ADGocBNz+D0uCqn3SNL9RGASxte8du7Pv/Ye/II2/s1OQ
qbpOUoqxSWltbiNPhwV7+Wk5tcqxoORCcAwVGkU48wzyVTeATg/o1khmdQ5sCLBn
HlIq11UZ8hhjIp+FFuCiMflYTufp/g==
=cYdF
-----END PGP SIGNATURE-----payloadtree 9d17827d8a8f23ab0fff476deb131354164283ca
parent 38bdd18d49c76e8b904b429f62614b2394ca21f4
author Ahmed Alouane <aalouane@palantir.com> 1682728009 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682728009 +0100

exl
uujs ^https://api.github.com/repos/palantir/atlasdb/commits/e6e60e5916ecd3e4f549a14ee71fe79dd8361a93html_urlShttps://github.com/palantir/atlasdb/commit/e6e60e5916ecd3e4f549a14ee71fe79dd8361a93comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e6e60e5916ecd3e4f549a14ee71fe79dd8361a93/commentsjs }(loginergo14idJjs MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5js #https://api.github.com/users/ergo14js https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujs }(js ergo14js Jjs MDQ6VXNlcjMwOTAzNzM2js 4https://avatars.githubusercontent.com/u/30903736?v=4js h5js #https://api.github.com/users/ergo14js https://github.com/ergo14js -https://api.github.com/users/ergo14/followersjs :https://api.github.com/users/ergo14/following{/other_user}js 3https://api.github.com/users/ergo14/gists{/gist_id}js :https://api.github.com/users/ergo14/starred{/owner}{/repo}js 1https://api.github.com/users/ergo14/subscriptionsj t (https://api.github.com/users/ergo14/orgsjt )https://api.github.com/users/ergo14/reposjt 4https://api.github.com/users/ergo14/events{/privacy}jt 3https://api.github.com/users/ergo14/received_eventsjt Userj
t uparents]}(js (38bdd18d49c76e8b904b429f62614b2394ca21f4js ^https://api.github.com/repos/palantir/atlasdb/commits/38bdd18d49c76e8b904b429f62614b2394ca21f4js Shttps://github.com/palantir/atlasdb/commit/38bdd18d49c76e8b904b429f62614b2394ca21f4uastats}(totalK	additionsK 	deletionsKufiles]}(js (0d62b551540837061774b9218d50d021b331eed5filenamebuild.gradlestatusmodifiedj$t K j%t KchangesKblob_url^https://github.com/palantir/atlasdb/blob/e6e60e5916ecd3e4f549a14ee71fe79dd8361a93/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/e6e60e5916ecd3e4f549a14ee71fe79dd8361a93/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=e6e60e5916ecd3e4f549a14ee71fe79dd8361a93patch@@ -6,13 +6,6 @@ import org.gradle.plugins.ide.idea.model.IdeaModel
 
 
 
-
-
-
-
-
-
-
 buildscript {
     repositories {
         mavenCentral() { metadataSources { mavenPom(); ignoreGradleMetadataRedirection() } }uau(b37500f7c840d1dbc25072777aeb9a5fc0c30639}(sha(b37500f7c840d1dbc25072777aeb9a5fc0c30639node_idEC_kwDOAjP5fdoAKGIzNzUwMGY3Yzg0MGQxZGJjMjUwNzI3NzdhZWI5YTVmYzBjMzA2Mzkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T14:24:16Zu	committer}(jAt 
Ahmed AlouanejCt aalouane@palantir.comjEt 2023-05-15T14:24:16Zumessageconfettitree}(j9t (d2f7a5ff202e9c8be14ac83d785cce0cc99c6455url`https://api.github.com/repos/palantir/atlasdb/git/trees/d2f7a5ff202e9c8be14ac83d785cce0cc99c6455ujQt bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b37500f7c840d1dbc25072777aeb9a5fc0c30639
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiQJAACgkQPlMHVIT1
yho1Rwf+IIEyjJbEoqVTb6w439tcLaXjQRpB0WAwAI+QGdmg4CYRHDT5fkMV2ci7
Y9FQG2eUTUprAljKxgYOwin/Pm2oJHNTWq18LJoNfL4WHSNXU6oa5lZE/2lshBqm
bWHNf1PzL+/PJlShq3Q1ToiZ71Rg/Ke5FWMp6QIEK2Sf05e+x/sIBFSkKWeEOIEV
Om1pF7eYciFkW+PML0l2y7avrHV6pzMCcM+5Lwj/6FYQj/lztbZaOgGPogxujQ9o
14JkS7JoxHi6Kd4y21WZyvSrYpiXjA2pFdghQfvELtuITvMi0bLYM3OYU7dViJ6+
lnIFibkfnWJYq+xmNGbp3uhoQd0KDA==
=DpJD
-----END PGP SIGNATURE-----payloadtree d2f7a5ff202e9c8be14ac83d785cce0cc99c6455
parent 727522017abec6d0036f5249bbfaadf80bbec255
author Ahmed Alouane <aalouane@palantir.com> 1684160656 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684160656 +0100

confetti
uujQt ^https://api.github.com/repos/palantir/atlasdb/commits/b37500f7c840d1dbc25072777aeb9a5fc0c30639html_urlShttps://github.com/palantir/atlasdb/commit/b37500f7c840d1dbc25072777aeb9a5fc0c30639comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b37500f7c840d1dbc25072777aeb9a5fc0c30639/commentsj?t }(loginergo14idJj;t MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jQt #https://api.github.com/users/ergo14j_t https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujGt }(jdt ergo14jft Jj;t MDQ6VXNlcjMwOTAzNzM2jht 4https://avatars.githubusercontent.com/u/30903736?v=4jjt h5jQt #https://api.github.com/users/ergo14j_t https://github.com/ergo14jmt -https://api.github.com/users/ergo14/followersjot :https://api.github.com/users/ergo14/following{/other_user}jqt 3https://api.github.com/users/ergo14/gists{/gist_id}jst :https://api.github.com/users/ergo14/starred{/owner}{/repo}jut 1https://api.github.com/users/ergo14/subscriptionsjwt (https://api.github.com/users/ergo14/orgsjyt )https://api.github.com/users/ergo14/reposj{t 4https://api.github.com/users/ergo14/events{/privacy}j}t 3https://api.github.com/users/ergo14/received_eventsjt Userjt uparents]}(j9t (727522017abec6d0036f5249bbfaadf80bbec255jQt ^https://api.github.com/repos/palantir/atlasdb/commits/727522017abec6d0036f5249bbfaadf80bbec255j_t Shttps://github.com/palantir/atlasdb/commit/727522017abec6d0036f5249bbfaadf80bbec255uastats}(totalK	additionsK	deletionsKufiles]}(j9t (0a107dae993c35b419c1736f76241e832c522489filename.circleci/config.ymlstatusmodifiedjt Kjt KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/b37500f7c840d1dbc25072777aeb9a5fc0c30639/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/b37500f7c840d1dbc25072777aeb9a5fc0c30639/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=b37500f7c840d1dbc25072777aeb9a5fc0c30639patchX  @@ -115,7 +115,8 @@ jobs:
       CIRCLE_TEST_REPORTS: /tmp/test-reports
       CIRCLE_ARTIFACTS: /tmp/artifacts
     steps:
-      - attach_workspace: { at: . }
+      - checkout
+      - run: git tag -l | xargs git tag -d && git fetch -t # ensure all tags are fetched and up-to-date
       - add_ssh_keys:
           fingerprints:
             - "b6:ba:27:37:84:8f:eb:b0:ee:0b:7c:c1:fc:18:32:5f"uau(8f84c8e871dab93807b30578351ec19a2ad9f24a}(sha(8f84c8e871dab93807b30578351ec19a2ad9f24anode_idEC_kwDOAjP5fdoAKDhmODRjOGU4NzFkYWI5MzgwN2IzMDU3ODM1MWVjMTlhMmFkOWYyNGEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-19T15:26:14Zu	committer}(jt GitHubjt noreply@github.comjt 2023-05-19T15:26:14Zumessage&Merge branch 'develop' into ds/temurintree}(jt (4df70dff1f497af569e87bd02257f184ff76b29furl`https://api.github.com/repos/palantir/atlasdb/git/trees/4df70dff1f497af569e87bd02257f184ff76b29fujt bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8f84c8e871dab93807b30578351ec19a2ad9f24a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkZ5UWCRBK7hj4Ov3rIwAABjAIAALisK7yqMNFH07srg5b7ude
ikk9LcEu7rt1hm3Gin1FabD9Ko1QlHCfDNr0w5zWSvqVkzip4z0xIrX16TF4qPDI
mcLhPpIfowpopttizzhsF7tViGJpjos894oPvKvxuK5/blAazxMUuQMd0cHq2mWt
/ooUUS1ttDWQIFTBBV3sS36PS8zn2TyBT+4VRhLLG+xmAl1AjGk85SzthqwHYWZU
tcINoNL6nd8WBztH7bmyXI5M3ushYRJv2cDkSYuHccnFcW+jKdfL3RpGdE6HEopv
L9/3bA81ZoavA9HK2hQIsy0Ch3fzZJl7u5cwyrZXl77dhRXGc5N3eBijHFKCuvE=
=13Fu
-----END PGP SIGNATURE-----
payloadX%  tree 4df70dff1f497af569e87bd02257f184ff76b29f
parent 38be8dd461bbf29eb0de222b7f9c713914596c7e
parent 633429c6d335467092783f920bb5b1221c99b1d7
author Jeremy Kong <jkong@palantir.com> 1684509974 +0100
committer GitHub <noreply@github.com> 1684509974 +0100

Merge branch 'develop' into ds/temurinuujt ^https://api.github.com/repos/palantir/atlasdb/commits/8f84c8e871dab93807b30578351ec19a2ad9f24ahtml_urlShttps://github.com/palantir/atlasdb/commit/8f84c8e871dab93807b30578351ec19a2ad9f24acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8f84c8e871dab93807b30578351ec19a2ad9f24a/commentsjt }(login
jeremyk-91idJZ jt MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jt 'https://api.github.com/users/jeremyk-91jt https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujt }(jt web-flowjt J/jt MDQ6VXNlcjE5ODY0NDQ3jt 4https://avatars.githubusercontent.com/u/19864447?v=4jt h5jt %https://api.github.com/users/web-flowjt https://github.com/web-flowjt /https://api.github.com/users/web-flow/followersjt <https://api.github.com/users/web-flow/following{/other_user}jt 5https://api.github.com/users/web-flow/gists{/gist_id}jt <https://api.github.com/users/web-flow/starred{/owner}{/repo}jt 3https://api.github.com/users/web-flow/subscriptionsjt *https://api.github.com/users/web-flow/orgsjt +https://api.github.com/users/web-flow/reposjt 6https://api.github.com/users/web-flow/events{/privacy}jt 5https://api.github.com/users/web-flow/received_eventsjt Userjt uparents](}(jt (38be8dd461bbf29eb0de222b7f9c713914596c7ejt ^https://api.github.com/repos/palantir/atlasdb/commits/38be8dd461bbf29eb0de222b7f9c713914596c7ejt Shttps://github.com/palantir/atlasdb/commit/38be8dd461bbf29eb0de222b7f9c713914596c7eu}(jt (633429c6d335467092783f920bb5b1221c99b1d7jt ^https://api.github.com/repos/palantir/atlasdb/commits/633429c6d335467092783f920bb5b1221c99b1d7jt Shttps://github.com/palantir/atlasdb/commit/633429c6d335467092783f920bb5b1221c99b1d7uestats}(totalMR	additionsM+	deletionsM'ufiles](}(jt (6a5f83a6198ffc81c968382b5af0e42c79e634dffilename/.baseline/idea/intellij-java-palantir-style.xmlstatusmodifiedju Kju K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/.baseline%2Fidea%2Fintellij-java-palantir-style.xmlraw_urlhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/.baseline%2Fidea%2Fintellij-java-palantir-style.xmlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/.baseline%2Fidea%2Fintellij-java-palantir-style.xml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24apatchX?  @@ -44,8 +44,10 @@
               <package name="" withSubpackages="true" static="false" />
             </value>
           </option>
+          <!-- Should be a superset of https://github.com/google/error-prone/blob/c481b3f9c2da112db36ccfcbf64e755261a127ab/core/src/main/java/com/google/errorprone/bugpatterns/BadImport.java#L63 -->
           <DO_NOT_IMPORT_INNER>
             <CLASS name="Builder" />
+            <CLASS name="BuilderFactory" />
             <CLASS name="Callback" />
             <CLASS name="Class" />
             <CLASS name="Entry" />
@@ -54,6 +56,7 @@
             <CLASS name="Type" />
             <CLASS name="Key" />
             <CLASS name="Id" />
+            <CLASS name="Identifier" />
             <CLASS name="Provider" />
           </DO_NOT_IMPORT_INNER>
         </GroovyCodeStyleSettings>u}(jt (97d4354e82ad28af333625140441ffe7750a2b0dju .circleci/config.ymlju modifiedju K.ju K
j u K;j!u hhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/.circleci%2Fconfig.ymlj#u ghttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/.circleci%2Fconfig.ymlj%u zhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -1,10 +1,10 @@
-version: 2
+version: 2.1
 
 jobs:
   build:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: xlarge
+    resource_class: 2xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
@@ -17,7 +17,7 @@ jobs:
           key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
 
       - run: git tag -l | xargs git tag -d && git fetch -t # ensure all tags are fetched and up-to-date
-      - run: ./gradlew --profile --parallel --stacktrace classes testClasses
+      - run: ./gradlew --scan --profile --parallel --stacktrace classes testClasses
 
       - save_cache:
           key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
@@ -31,8 +31,10 @@ jobs:
           root: .
           paths: [ . ]
 
-  test:
-    parallelism: 12
+  test-suite:
+    parameters:
+      suite:
+        type: integer
     machine:
       image: ubuntu-2004:202111-02
     resource_class: xlarge
@@ -66,7 +68,7 @@ jobs:
               curl https://cdn.azul.com/zulu/bin/zulu11.43.21-ca-jdk11.0.9-linux_x64.tar.gz | tar -xzf - -C /opt/java
               sudo ln -s /opt/java/zulu*/ /opt/java8
       - run:
-          command: ./scripts/circle-ci/run-circle-tests.sh
+          command: ./scripts/circle-ci/run-circle-tests.sh << parameters.suite >>
           no_output_timeout: 900
       - run: ./scripts/circle-ci/ensure-repo-clean.sh
       - run: mkdir -p $CIRCLE_TEST_REPORTS/junit/ && mkdir -p $CIRCLE_ARTIFACTS/checkstyle && mkdir -p $CIRCLE_ARTIFACTS/findbugs
@@ -78,11 +80,16 @@ jobs:
       - run: if [ -d docs/build/html ]; then cp -r docs/build/html $CIRCLE_ARTIFACTS/docs; fi
       - run: mkdir -p $CIRCLE_ARTIFACTS/heapdumps
       - run: find . -type f -name "*.hprof" -o -name "*.gc.log" -exec cp {} $CIRCLE_ARTIFACTS/heapdumps \;
+      - when:
+          # Persist to workspace for the compile/compileTest container to keep deploy fast.
+          condition:
+            equal: [ 13, << parameters.suite >> ]
+          steps:
+            - persist_to_workspace:
+                root: .
+                paths: [ . ]
       - store_artifacts:
           path: /home/circleci/artifacts
-      - persist_to_workspace:
-          root: .
-          paths: [ . ]
 
   trial-publish:
     docker:
@@ -95,7 +102,13 @@ jobs:
       CIRCLE_ARTIFACTS: /tmp/artifacts
     steps:
       - attach_workspace: { at: . }
-      - run: ./gradlew --profile --stacktrace --continue publishToMavenLocal
+      - run: ./gradlew --scan --profile --stacktrace --continue publishToMavenLocal
+
+  test:
+    docker: [ { image: 'busybox:1.34.1' } ]
+    resource_class: small
+    steps:
+      - run: {command: echo "Ran all required tests successfully"}
 
   deploy:
     docker:
@@ -118,7 +131,7 @@ jobs:
             # hack - notion of "owners" isn't supported in Circle 2
             if [ $CIRCLE_PROJECT_USERNAME = 'palantir' ] && [ -z $CIRCLE_PR_NUMBER ]; then
               git status
-              ./gradlew --profile --stacktrace --continue publish
+              ./gradlew --scan --profile --stacktrace --continue publish
             fi
       - run:
           command: |
@@ -130,15 +143,35 @@ jobs:
             fi
 
 workflows:
-  version: 2
   check:
     jobs:
       - build:
           filters:
             tags:
               only: /.*/
-      - test:
+      - test-suite:
           requires: [build]
+          matrix:
+            alias: test-no-tl
+            parameters:
+              # intentionally excluding 12 (TimeLock migration ETE test) from this collection
+              suite: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13]
+          filters:
+            tags:
+              only: /.*/
+      - test-suite:
+          requires: [build]
+          matrix:
+            alias: test-tl
+            parameters:
+              suite: [12]
+          filters:
+            branches:
+              only: /(tlmete.*|develop)/
+            tags:
+              only: /.*/
+      - test:
+          requires: [test-tl, test-no-tl]
           filters:
             tags:
               only: /.*/u}(jt (e69de29bb2d1d6434b8b29ae775ad8c2e48c5391ju .circleci/template.shju removedju K ju K j u K j!u ihttps://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/.circleci%2Ftemplate.shj#u hhttps://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/.circleci%2Ftemplate.shj%u {https://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Ftemplate.sh?ref=38be8dd461bbf29eb0de222b7f9c713914596c7eu}(jt (d712c836408b8b983fda0502a1815c19270ae9e1ju .palantir/revapi.ymlju modifiedju KVju K j u KVj!u hhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/.palantir%2Frevapi.ymlj#u ghttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/.palantir%2Frevapi.ymlj%u zhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -35,3 +35,89 @@ acceptedBreaks:
       new: "method org.apache.thrift.transport.TSocket com.palantir.atlasdb.keyvalue.cassandra.InstrumentedTSocket.Factory::create(java.lang.String,\
         \ int, int) throws org.apache.thrift.transport.TTransportException"
       justification: "required for libthrift upgrade"
+  "0.792.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.cassandra.backup.CassandraRepairHelper"
+      justification: "Unused backup restore code"
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.cassandra.backup.ClusterMetadataUtils"
+      justification: "Unused backup restore code"
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.cassandra.backup.CqlCluster"
+      justification: "Unused backup restore code"
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.cassandra.backup.ImmutableRangesForRepair"
+      justification: "Unused backup restore code"
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.cassandra.backup.RangesForRepair"
+      justification: "Unused backup restore code"
+    - code: "java.class.removed"
+      old: "interface com.palantir.atlasdb.backup.KvsRunner"
+      justification: "Unused backup restore code"
+    - code: "java.method.removed"
+      old: "method java.util.Set<com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken>\
+        \ com.palantir.atlasdb.cassandra.backup.CqlSession::retrieveRowKeysAtConsistencyAll(java.util.List<com.datastax.driver.core.Statement>)"
+      justification: "Unused backup restore code"
+  "0.795.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.removed"
+      old: "method com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken::getLowerExclusive(com.google.common.collect.Range<com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken>)"
+      justification: "Removing unused ABR code"
+    - code: "java.method.removed"
+      old: "method com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::createInitialized(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig, com.palantir.refreshable.Refreshable<com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig>,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.Blacklist, com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraClientPoolMetrics)"
+      justification: "Removing unused ABR code"
+  "0.801.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter java.util.Set<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraTopologyValidator::getNewHostsWithInconsistentTopologiesAndRetry(===java.util.Set<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>===,\
+        \ java.util.Map<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer>,\
+        \ java.time.Duration, java.time.Duration)"
+      new: "parameter java.util.Set<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraTopologyValidator::getNewHostsWithInconsistentTopologiesAndRetry(===java.util.Map<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin>===, java.util.Map<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer>,\
+        \ java.time.Duration, java.time.Duration)"
+      justification: "Internal Cassandra KVS APIs"
+    - code: "java.method.returnTypeChanged"
+      old: "method com.google.common.collect.ImmutableSet<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>\
+        \ com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::getCurrentServerListFromConfig()"
+      new: "method com.google.common.collect.ImmutableMap<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin> com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::getCurrentServerListFromConfig()"
+      justification: "Internal Cassandra KVS APIs"
+    - code: "java.method.returnTypeChanged"
+      old: "method com.google.common.collect.ImmutableSet<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>\
+        \ com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::refreshTokenRangesAndGetServers()"
+      new: "method com.google.common.collect.ImmutableMap<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin> com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::refreshTokenRangesAndGetServers()"
+      justification: "Internal Cassandra KVS APIs"
+  "0.808.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.transaction.service.TransactionStatuses"
+      justification: "Internal methods"
+    - code: "java.class.removed"
+      old: "interface com.palantir.atlasdb.transaction.service.TransactionStatus.Cases<R\
+        \ extends java.lang.Object>"
+      justification: "Internal methods"
+    - code: "java.method.removed"
+      old: "method <R> R com.palantir.atlasdb.transaction.service.TransactionStatus::match(com.palantir.atlasdb.transaction.service.TransactionStatus.Cases<R>)"
+      justification: "Internal methods"
+    - code: "java.method.removed"
+      old: "method boolean com.palantir.atlasdb.transaction.service.TransactionStatus::equals(java.lang.Object)"
+      justification: "Internal methods"
+  "0.815.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.class.removed"
+      old: "interface com.palantir.atlasdb.transaction.api.expectations.ExpectationsAwareTransaction"
+      justification: "moving out of API"
+  "0.824.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.removed"
+      old: "method java.util.concurrent.ExecutorService com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService::createThreadPoolWihtoutSpans(java.lang.String,\
+        \ int, int) @ com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl"
+      justification: "Protected method"u}(jt (d8f732c3615aaed89bbf22d2dd57bf2198b25723ju .policy.ymlju modifiedju Kju Kj u K	j!u ]https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/.policy.ymlj#u \https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/.policy.ymlj%u ohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XS  @@ -20,21 +20,21 @@ approval_rules:
       allow_contributor: false
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: two admins have approved
     options:
       allow_contributor: true
     requires:
       count: 2
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: changelog only and contributor approval
     options:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       only_changed_files:
         paths:
@@ -45,7 +45,7 @@ approval_rules:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       has_author_in:
         users: [ "svc-excavator-bot" ]
@@ -81,6 +81,7 @@ approval_rules:
           - "^versions.lock$"
           - "^internal/generated/.*"
           - "^internal/generated_src/.*"
+          - "^gradle-baseline-java/src/main/resources/checkstyle.version$"
       has_valid_signatures_by_keys:
         key_ids: ["C9AF124A484882E0"]
 u}(jt (1b448a0fde07cfbc9657b00600f040335b3c7c84ju atlasdb-api/build.gradleju modifiedju Kju Kj u Kj!u lhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-api%2Fbuild.gradlej#u khttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-api%2Fbuild.gradlej%u ~https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fbuild.gradle?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X   @@ -39,8 +39,9 @@ dependencies {
   testImplementation 'com.palantir.refreshable:refreshable'
   testImplementation 'io.dropwizard.metrics:metrics-core'
   testImplementation project(':lock-api-objects')
+    testImplementation project(path: ':flake-rule')
 
-  annotationProcessor 'org.immutables:value'
+    annotationProcessor 'org.immutables:value'
   compileOnly 'org.immutables:value::annotations'
   testCompileOnly 'org.immutables:value::annotations'
   annotationProcessor project(":atlasdb-processors")u}(jt (0080c3f7113ff49f387d0c758020e1ca01ce5e35ju Zatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/BatchColumnRangeSelection.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FBatchColumnRangeSelection.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FBatchColumnRangeSelection.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FBatchColumnRangeSelection.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X|  @@ -22,6 +22,7 @@
 import com.palantir.atlasdb.encoding.PtBytes;
 import java.io.Serializable;
 import java.util.regex.Pattern;
+import org.checkerframework.checker.nullness.qual.Nullable;
 
 public final class BatchColumnRangeSelection implements Serializable {
     private static final long serialVersionUID = 1L;
@@ -40,8 +41,8 @@ public static BatchColumnRangeSelection create(ColumnRangeSelection columnRangeS
 
     @JsonCreator
     public static BatchColumnRangeSelection create(
-            @JsonProperty("startCol") byte[] startCol,
-            @JsonProperty("endCol") byte[] endCol,
+            @JsonProperty("startCol") byte @Nullable [] startCol,
+            @JsonProperty("endCol") byte @Nullable [] endCol,
             @JsonProperty("batchHint") int batchHint) {
         return new BatchColumnRangeSelection(new ColumnRangeSelection(startCol, endCol), batchHint);
     }u}(jt (19e81f650612c73f16c316beabd226ea34ac6293ju Uatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/ColumnRangeSelection.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FColumnRangeSelection.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FColumnRangeSelection.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FColumnRangeSelection.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -26,6 +26,7 @@
 import java.util.Arrays;
 import java.util.Objects;
 import java.util.regex.Pattern;
+import org.checkerframework.checker.nullness.qual.Nullable;
 
 public class ColumnRangeSelection implements Serializable {
     private static final long serialVersionUID = 1L;
@@ -36,7 +37,8 @@ public class ColumnRangeSelection implements Serializable {
     private final byte[] endCol;
 
     @JsonCreator
-    public ColumnRangeSelection(@JsonProperty("startCol") byte[] startCol, @JsonProperty("endCol") byte[] endCol) {
+    public ColumnRangeSelection(
+            @JsonProperty("startCol") byte @Nullable [] startCol, @JsonProperty("endCol") byte @Nullable [] endCol) {
         this.startCol = Objects.requireNonNullElse(startCol, PtBytes.EMPTY_BYTE_ARRAY);
         this.endCol = Objects.requireNonNullElse(endCol, PtBytes.EMPTY_BYTE_ARRAY);
         if (!isValidRange(this.startCol, this.endCol)) {u}(jt (54106dfa0477a8d02f1cf93167ddaa80b4701778ju Matlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/RangeRequest.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRangeRequest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRangeRequest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRangeRequest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -352,7 +352,7 @@ public Builder retainColumns(ColumnSelection selection) {
          * this means the batch size will be whatever is passed as the batch size to
          * BatchingVisitable#batchAccept(int, com.palantir.common.base.AbortingVisitor)
          */
-        public Builder batchHint(Integer hint) {
+        public Builder batchHint(@Nullable Integer hint) {
             Preconditions.checkArgument(hint == null || hint > 0);
             batchHint = hint;
             return this;u}(jt (3119f655157ee521b742eccfb81bf4fbbda595d2ju [atlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/RetryLimitReachedException.javaju modifiedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRetryLimitReachedException.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRetryLimitReachedException.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRetryLimitReachedException.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X   @@ -25,6 +25,7 @@
 import java.util.List;
 
 public class RetryLimitReachedException extends AtlasDbDependencyException implements SafeLoggable {
+
     private static final String MESSAGE = "Request was retried and failed each time for the request.";
 
     private final int numRetries;u}(jt (198777a0d5f59dbca9c418c827b918a2ff4645c8ju Yatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/service/TransactionStatus.javaju modifiedju K.ju K"j u KPj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionStatus.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionStatus.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionStatus.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X]  @@ -16,42 +16,54 @@
 
 package com.palantir.atlasdb.transaction.service;
 
-import org.derive4j.Data;
-
-/**
- * Status of a transaction can be one of the following -
- * 1. IN_PROGRESS, if that the transaction with this start timestamp has started but has not committed yet,
- * 2. COMMITTED (with a commit timestamp), if the transaction with this start timestamp has been committed,
- * 3. ABORTED, if the transaction with this start timestamp has been aborted,
- * 4. UNKNOWN, if the transactions table does not have information about the start timestamp. (This may,
- *    for example, be because the transaction is known to have concluded and the transactions table has been swept).
- * */
-@Data
+import com.palantir.common.annotations.ImmutablesStyles.PackageVisibleImmutablesStyle;
+import java.util.Optional;
+import org.immutables.value.Value;
+
 public interface TransactionStatus {
-    interface Cases<R> {
-        /**
-         * For transactions on schema version >= 4, an inProgress state has been introduced. The state will be set in
-         * the transactions table against the start timestamp. The state will be written before writing to the kvs.
-         *
-         * Previously, absence of any state for a transaction would indicate that it is in progress.
-         * */
-        R inProgress();
-
-        R committed(long commitTimestamp);
-
-        R aborted();
-
-        /**
-         * From transaction schema version 4, we have added the ability to truncate the transactions table i.e. it
-         * would be possible that the transactions table is not the source of truth for state of a transaction.
-         *
-         * Note that this state is not expected for transaction schema versions < 4.
-         * */
-        R unknown();
+
+    static TransactionStatus inProgress() {
+        return ImmutableInProgress.of();
+    }
+
+    static TransactionStatus aborted() {
+        return ImmutableAborted.of();
+    }
+
+    static TransactionStatus committed(long commitTimestamp) {
+        return ImmutableCommitted.of(commitTimestamp);
+    }
+
+    static TransactionStatus unknown() {
+        return ImmutableUnknown.of();
+    }
+
+    static Optional<Long> getCommitTimestamp(TransactionStatus status) {
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return Optional.of(committed.commitTimestamp());
+        } else {
+            return Optional.empty();
+        }
     }
 
-    <R> R match(Cases<R> cases);
+    @Value.Immutable(singleton = true)
+    @PackageVisibleImmutablesStyle
+    interface InProgress extends TransactionStatus {}
+
+    @Value.Immutable(singleton = true)
+    @PackageVisibleImmutablesStyle
+    interface Aborted extends TransactionStatus {}
+
+    @Value.Immutable(builder = false)
+    @PackageVisibleImmutablesStyle
+    interface Committed extends TransactionStatus {
+
+        @Value.Parameter
+        long commitTimestamp();
+    }
 
-    @Override
-    boolean equals(Object other);
+    @Value.Immutable(singleton = true)
+    @PackageVisibleImmutablesStyle
+    interface Unknown extends TransactionStatus {}
 }u}(jt (c2c86be9a9da93bcfb3eb43dd67f55ea0b9f9d51ju Ratlasdb-api/src/test/java/com/palantir/atlasdb/keyvalue/api/CellReferenceTest.javaju modifiedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellReferenceTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellReferenceTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FCellReferenceTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X~  @@ -21,19 +21,25 @@
 
 import com.google.common.math.IntMath;
 import com.palantir.atlasdb.encoding.PtBytes;
+import com.palantir.flake.FlakeRetryingRule;
+import com.palantir.flake.ShouldRetry;
 import java.util.List;
 import java.util.Map;
 import java.util.concurrent.ThreadLocalRandom;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 import org.assertj.core.data.Percentage;
+import org.junit.Rule;
 import org.junit.Test;
 
 public class CellReferenceTest {
     private static final TableReference TABLE = createFromFullyQualifiedName("fixed.table");
     private static final byte[] ROW = PtBytes.toBytes("row");
     private static final byte[] COL = PtBytes.toBytes("col");
 
+    @Rule
+    public final FlakeRetryingRule retryingRule = new FlakeRetryingRule();
+
     @Test
     public void dynamicSequentialColumns() {
         int totalCount = 20_000;
@@ -44,6 +50,7 @@ public void dynamicSequentialColumns() {
         assertDistributionUniform(hashes, totalCount);
     }
 
+    @ShouldRetry
     @Test
     public void dynamicRandomColumns() {
         ThreadLocalRandom random = ThreadLocalRandom.current();u}(jt (ef833a324cd55291b26e6a85fe96a0f12bbeff3bju atlasdb-backup/build.gradleju removedju K ju K!j u K!j!u ohttps://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fbuild.gradlej#u nhttps://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fbuild.gradlej%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fbuild.gradle?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u XG  @@ -1,33 +0,0 @@
-apply from: "../gradle/shared.gradle"
-
-dependencies {
-    implementation 'com.datastax.cassandra:cassandra-driver-core'
-    implementation 'com.fasterxml.jackson.core:jackson-databind'
-    implementation 'com.google.guava:guava'
-    implementation 'com.palantir.common:streams'
-    implementation 'com.palantir.conjure.java.api:service-config'
-    implementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
-    implementation 'com.palantir.dialogue:dialogue-clients'
-    implementation 'com.palantir.refreshable:refreshable'
-    implementation 'com.palantir.safe-logging:safe-logging'
-    implementation 'com.palantir.tokens:auth-tokens'
-    implementation 'org.immutables:value'
-    implementation 'org.immutables:value::annotations'
-    implementation project(':atlasdb-api')
-    implementation project(':atlasdb-cassandra')
-    implementation project(':atlasdb-client')
-    implementation project(':atlasdb-config')
-    implementation project(':atlasdb-coordination-impl')
-    implementation project(':atlasdb-impl-shared')
-    implementation project(':commons-annotations')
-    implementation project(':commons-executors')
-    implementation project(':timelock-api:timelock-api-dialogue')
-    implementation project(':timelock-api:timelock-api-objects')
-    implementation project(':timestamp-impl')
-
-    testImplementation 'com.palantir.safe-logging:preconditions-assertj'
-    testImplementation 'org.mockito:mockito-core'
-    testImplementation 'commons-codec:commons-codec'
-
-    annotationProcessor 'org.immutables:value'
-}u}(jt (f4a7d5b83b023a8dd0a88c61f13c9cb3c8ccf254ju Patlasdb-backup/src/main/java/com/palantir/atlasdb/backup/AtlasBackupService.javaju removedju K ju M=j u M=j!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupService.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupService.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupService.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u XO?  @@ -1,317 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Sets;
-import com.google.common.util.concurrent.Futures;
-import com.google.common.util.concurrent.ListenableFuture;
-import com.google.common.util.concurrent.MoreExecutors;
-import com.palantir.atlasdb.backup.api.AtlasBackupClient;
-import com.palantir.atlasdb.backup.api.AtlasBackupClientBlocking;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompleteBackupRequest;
-import com.palantir.atlasdb.backup.api.CompleteBackupResponse;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.InProgressBackupToken;
-import com.palantir.atlasdb.backup.api.PrepareBackupRequest;
-import com.palantir.atlasdb.backup.api.PrepareBackupResponse;
-import com.palantir.atlasdb.backup.api.RefreshBackupRequest;
-import com.palantir.atlasdb.futures.AtlasFutures;
-import com.palantir.atlasdb.http.AtlasDbRemotingConstants;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.transaction.api.TransactionManager;
-import com.palantir.common.concurrent.NamedThreadFactory;
-import com.palantir.common.concurrent.PTExecutors;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.conjure.java.api.config.service.ServicesConfigBlock;
-import com.palantir.conjure.java.api.config.service.UserAgent;
-import com.palantir.dialogue.clients.DialogueClients;
-import com.palantir.dialogue.clients.DialogueClients.ReloadingFactory;
-import com.palantir.lock.client.LockRefresher;
-import com.palantir.lock.v2.LockLeaseRefresher;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import com.palantir.refreshable.Refreshable;
-import com.palantir.tokens.auth.AuthHeader;
-import java.io.Closeable;
-import java.nio.file.Path;
-import java.util.Map;
-import java.util.Objects;
-import java.util.Optional;
-import java.util.Set;
-import java.util.concurrent.ConcurrentHashMap;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.ScheduledExecutorService;
-import java.util.function.Function;
-import java.util.stream.Collectors;
-
-/**
- * Service for Atlas backup tasks.
- * While a single backup operation may encompass multiple namespaces, it is essential that each namespace in a given
- * request corresponds to the same TimeLock service, since we support a single AtlasBackupClient (this exists on
- * TimeLock rather than on the backup client side). If the set of AtlasServices in a given request contains
- * duplicated namespaces (e.g. {(123, namespace), (456, namespace)}), then a SafeIllegalArgumentException will be
- * thrown.
- */
-public final class AtlasBackupService implements Closeable {
-    private static final SafeLogger log = SafeLoggerFactory.get(AtlasBackupService.class);
-
-    private static final long REFRESH_INTERVAL_MILLIS = 5_000L;
-
-    private final AuthHeader authHeader;
-    private final AtlasBackupClient atlasBackupClient;
-    private final CoordinationServiceRecorder coordinationServiceRecorder;
-    private final BackupPersister backupPersister;
-    private final Map<AtlasService, InProgressBackupToken> inProgressBackups;
-    private final int completeBackupNumThreads;
-    private final LockRefresher<InProgressBackupToken> lockRefresher;
-    private final ScheduledExecutorService refreshExecutor;
-
-    private volatile boolean isClosed = false;
-
-    @VisibleForTesting
-    AtlasBackupService(
-            AuthHeader authHeader,
-            AtlasBackupClient atlasBackupClient,
-            CoordinationServiceRecorder coordinationServiceRecorder,
-            BackupPersister backupPersister,
-            LockRefresher<InProgressBackupToken> lockRefresher,
-            ScheduledExecutorService refreshExecutor,
-            int completeBackupNumThreads) {
-        this.authHeader = authHeader;
-        this.atlasBackupClient = atlasBackupClient;
-        this.coordinationServiceRecorder = coordinationServiceRecorder;
-        this.backupPersister = backupPersister;
-        this.lockRefresher = lockRefresher;
-        this.refreshExecutor = refreshExecutor;
-        this.inProgressBackups = new ConcurrentHashMap<>();
-        this.completeBackupNumThreads = completeBackupNumThreads;
-    }
-
-    public static AtlasBackupService create(
-            AuthHeader authHeader,
-            Refreshable<ServicesConfigBlock> servicesConfigBlock,
-            String serviceName,
-            Function<AtlasService, Path> backupFolderFactory,
-            Function<AtlasService, KeyValueService> keyValueServiceFactory,
-            int completeBackupNumThreads) {
-        ReloadingFactory reloadingFactory = DialogueClients.create(servicesConfigBlock)
-                .withUserAgent(UserAgent.of(AtlasDbRemotingConstants.ATLASDB_HTTP_CLIENT_AGENT));
-
-        AtlasBackupClient atlasBackupClient = new DialogueAdaptingAtlasBackupClient(
-                reloadingFactory.get(AtlasBackupClientBlocking.class, serviceName));
-
-        KvsRunner kvsRunner = KvsRunner.create(keyValueServiceFactory);
-        return createAtlasBackupService(
-                authHeader, atlasBackupClient, backupFolderFactory, kvsRunner, completeBackupNumThreads);
-    }
-
-    public static AtlasBackupService createForTests(
-            AuthHeader authHeader,
-            AtlasBackupClient atlasBackupClient,
-            TransactionManager transactionManager,
-            Function<AtlasService, Path> backupFolderFactory) {
-        return createAtlasBackupService(
-                authHeader, atlasBackupClient, backupFolderFactory, KvsRunner.create(transactionManager), 10);
-    }
-
-    private static AtlasBackupService createAtlasBackupService(
-            AuthHeader authHeader,
-            AtlasBackupClient atlasBackupClient,
-            Function<AtlasService, Path> backupFolderFactory,
-            KvsRunner kvsRunner,
-            int completeBackupNumThreads) {
-        BackupPersister backupPersister = new ExternalBackupPersister(backupFolderFactory);
-        CoordinationServiceRecorder coordinationServiceRecorder =
-                new CoordinationServiceRecorder(kvsRunner, backupPersister);
-        ScheduledExecutorService refreshExecutor =
-                PTExecutors.newSingleThreadScheduledExecutor(new NamedThreadFactory("backupLockRefresher", true));
-        LockRefresher<InProgressBackupToken> lockRefresher =
-                getLockRefresher(authHeader, atlasBackupClient, refreshExecutor);
-
-        return new AtlasBackupService(
-                authHeader,
-                atlasBackupClient,
-                coordinationServiceRecorder,
-                backupPersister,
-                lockRefresher,
-                refreshExecutor,
-                completeBackupNumThreads);
-    }
-
-    private static LockRefresher<InProgressBackupToken> getLockRefresher(
-            AuthHeader authHeader, AtlasBackupClient atlasBackupClient, ScheduledExecutorService refreshExecutor) {
-        LockLeaseRefresher<InProgressBackupToken> lockLeaseRefresher = tokens -> atlasBackupClient
-                .refreshBackup(authHeader, RefreshBackupRequest.of(tokens))
-                .getRefreshedTokens();
-        return new LockRefresher<>(refreshExecutor, lockLeaseRefresher, REFRESH_INTERVAL_MILLIS);
-    }
-
-    /**
-     * Cleans up the backup operation. This will release all immutable timestamp locks.
-     * Must be called after any failure; after calling this, completeBackup will fail for any namespace which
-     * has not yet reached that stage.
-     */
-    @Override
-    public void close() {
-        log.info(
-                "Cleaning up backup. This will remove all record of in-progress backups on this node.",
-                SafeArg.of("inProgressBackupCount", inProgressBackups.size()),
-                SafeArg.of("servicesWithInProgressBackups", ImmutableSet.copyOf(inProgressBackups.keySet())));
-        lockRefresher.unregisterLocks(ImmutableSet.copyOf(inProgressBackups.values()));
-        inProgressBackups.clear();
-        lockRefresher.close();
-
-        // Clean up the refreshing thread
-        if (!refreshExecutor.isShutdown()) {
-            refreshExecutor.shutdownNow();
-        }
-        isClosed = true;
-    }
-
-    public Set<AtlasService> prepareBackup(Set<AtlasService> atlasServices) {
-        throwIfClosed(atlasServices);
-
-        Set<AtlasService> inProgressAndProposedBackups = Sets.union(atlasServices, inProgressBackups.keySet());
-        AtlasServices.throwIfAtlasServicesCollide(inProgressAndProposedBackups);
-        Map<Namespace, AtlasService> namespaceToServices = KeyedStream.of(atlasServices)
-                .mapKeys(AtlasService::getNamespace)
-                .collectToMap();
-        PrepareBackupRequest request = PrepareBackupRequest.of(namespaceToServices.keySet());
-        PrepareBackupResponse response = atlasBackupClient.prepareBackup(authHeader, request);
-
-        Map<AtlasService, InProgressBackupToken> tokensPerService = KeyedStream.of(response.getSuccessful())
-                .mapKeys(token -> namespaceToServices.get(token.getNamespace()))
-                .collectToMap();
-        KeyedStream.stream(tokensPerService).forEach(this::storeBackupToken);
-        return tokensPerService.keySet();
-    }
-
-    private void storeBackupToken(AtlasService atlasService, InProgressBackupToken backupToken) {
-        inProgressBackups.put(atlasService, backupToken);
-        backupPersister.storeImmutableTimestamp(atlasService, backupToken);
-        lockRefresher.registerLocks(ImmutableSet.of(backupToken));
-    }
-
-    /**
-     * Completes backup for the given set of atlas services.
-     * This will store metadata about the completed backup via the BackupPersister.
-     * <p>
-     * In order to do this, we must unlock the immutable timestamp for each service. If {@link #prepareBackup(Set)}
-     * was not called, we will not have a record of the in-progress backup (and will not have been refreshing
-     * its lock anyway). Thus, we attempt to complete backup only for those atlas services where we have the in-progress
-     * backup stored.
-     *
-     * @return the atlas services whose backups were successfully completed
-     */
-    public Set<AtlasService> completeBackup(Set<AtlasService> atlasServices) {
-        throwIfClosed(atlasServices);
-
-        AtlasServices.throwIfAtlasServicesCollide(atlasServices);
-
-        Map<AtlasService, InProgressBackupToken> knownBackups = KeyedStream.of(atlasServices)
-                .map((Function<AtlasService, InProgressBackupToken>) inProgressBackups::remove)
-                .filter(Objects::nonNull)
-                .collectToMap();
-        Set<InProgressBackupToken> tokens = ImmutableSet.copyOf(knownBackups.values());
-
-        if (tokens.isEmpty()) {
-            log.error(
-                    "Complete backup called, but no in progress backups were found.",
-                    SafeArg.of("atlasServices", atlasServices));
-            return ImmutableSet.of();
-        }
-
-        lockRefresher.unregisterLocks(tokens);
-
-        Set<AtlasService> atlasServicesWithInProgressBackups = knownBackups.keySet();
-        if (tokens.size() < atlasServices.size()) {
-            Set<AtlasService> atlasServicesWithNoInProgressBackup =
-                    Sets.difference(atlasServices, atlasServicesWithInProgressBackups);
-            log.error(
-                    "In progress backups were not found for some atlasServices. We will not complete backup for these.",
-                    SafeArg.of("numAtlasServicesWithBackup", tokens.size()),
-                    SafeArg.of("numAtlasServicesWithoutBackup", atlasServicesWithNoInProgressBackup.size()),
-                    SafeArg.of("atlasServicesWithoutBackup", atlasServicesWithNoInProgressBackup),
-                    SafeArg.of("allRequestedAtlasServices", atlasServices));
-        }
-
-        Map<Namespace, AtlasService> namespaceToServices = KeyedStream.of(atlasServices)
-                .mapKeys(AtlasService::getNamespace)
-                .collectToMap();
-        CompleteBackupRequest request = CompleteBackupRequest.of(tokens);
-        CompleteBackupResponse response = atlasBackupClient.completeBackup(authHeader, request);
-
-        Map<AtlasService, CompletedBackup> successfulBackups = KeyedStream.of(response.getSuccessfulBackups())
-                .mapKeys(token -> namespaceToServices.get(token.getNamespace()))
-                .collectToMap();
-        Set<AtlasService> successfullyStoredBackups = storeCompletedBackups(successfulBackups);
-
-        if (successfullyStoredBackups.size() < atlasServicesWithInProgressBackups.size()) {
-            Set<AtlasService> failedAtlasServices =
-                    Sets.difference(atlasServicesWithInProgressBackups, successfullyStoredBackups);
-            log.error(
-                    "Backup did not complete successfully for all atlasServices. Check TimeLock logs to debug.",
-                    SafeArg.of("failedAtlasServices", failedAtlasServices),
-                    SafeArg.of("successfulAtlasServices", successfullyStoredBackups),
-                    SafeArg.of("atlasServicesWithoutBackup", atlasServicesWithInProgressBackups));
-        }
-
-        return successfulBackups.keySet();
-    }
-
-    private void throwIfClosed(Set<AtlasService> atlasServices) {
-        if (isClosed) {
-            throw new SafeIllegalStateException(
-                    "The AtlasBackupService is closed.", SafeArg.of("atlasServices", atlasServices));
-        }
-    }
-
-    private Set<AtlasService> storeCompletedBackups(Map<AtlasService, CompletedBackup> successfulBackups) {
-        ExecutorService executorService = PTExecutors.newFixedThreadPool(completeBackupNumThreads);
-        Map<AtlasService, ListenableFuture<Optional<Boolean>>> storedBackups = KeyedStream.stream(successfulBackups)
-                .map((atlasService, completeBackup) -> Futures.submit(
-                        () -> Optional.of(storeCompletedBackup(atlasService, completeBackup)), executorService))
-                .collectToMap();
-        ListenableFuture<Map<AtlasService, Boolean>> allStorageTasks =
-                AtlasFutures.allOptionalsAsMap(storedBackups, MoreExecutors.directExecutor());
-
-        // Waits for future to complete
-        Map<AtlasService, Boolean> storageTaskResults = AtlasFutures.getUnchecked(allStorageTasks);
-        executorService.shutdown();
-        return KeyedStream.stream(storageTaskResults)
-                .filter(Boolean::booleanValue)
-                .keys()
-                .collect(Collectors.toSet());
-    }
-
-    private Boolean storeCompletedBackup(AtlasService atlasService, CompletedBackup completedBackup) {
-        try {
-            coordinationServiceRecorder.storeFastForwardState(atlasService, completedBackup);
-            backupPersister.storeCompletedBackup(atlasService, completedBackup);
-            return true;
-        } catch (Exception ex) {
-            log.warn("Failed to store completed backup for AtlasService", SafeArg.of("atlasService", atlasService), ex);
-            return false;
-        }
-    }
-}u}(jt (a06a4a8c99059445d6acf8d223d050ea93a25fe6ju Qatlasdb-backup/src/main/java/com/palantir/atlasdb/backup/AtlasRestoreService.javaju removedju K ju MGj u MGj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreService.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreService.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreService.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u XD  @@ -1,327 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.datastax.driver.core.policies.DefaultRetryPolicy;
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Sets;
-import com.palantir.atlasdb.backup.api.AtlasRestoreClient;
-import com.palantir.atlasdb.backup.api.AtlasRestoreClientBlocking;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompleteRestoreRequest;
-import com.palantir.atlasdb.backup.api.CompleteRestoreResponse;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
-import com.palantir.atlasdb.cassandra.backup.CassandraRepairHelper;
-import com.palantir.atlasdb.cassandra.backup.RangesForRepair;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.http.AtlasDbRemotingConstants;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.cassandra.async.client.creation.ClusterFactory.CassandraClusterConfig;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.SuccessfulDisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.UnsuccessfulDisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementService;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementServiceBlocking;
-import com.palantir.atlasdb.transaction.api.TransactionManager;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.conjure.java.api.config.service.ServicesConfigBlock;
-import com.palantir.conjure.java.api.config.service.UserAgent;
-import com.palantir.dialogue.clients.DialogueClients;
-import com.palantir.logsafe.Preconditions;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import com.palantir.refreshable.Refreshable;
-import com.palantir.timestamp.FullyBoundedTimestampRange;
-import com.palantir.tokens.auth.AuthHeader;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.function.BiConsumer;
-import java.util.function.Function;
-import java.util.stream.Collectors;
-
-/**
- *  Service for Atlas restore tasks.
- *
- *  As with backup, each namespace must use the same TimeLock service - see javadoc for {@link AtlasBackupService}.
- */
-public class AtlasRestoreService {
-    private static final SafeLogger log = SafeLoggerFactory.get(AtlasRestoreService.class);
-
-    private final AuthHeader authHeader;
-    private final AtlasRestoreClient atlasRestoreClient;
-    private final TimeLockManagementService timeLockManagementService;
-    private final BackupPersister backupPersister;
-    private final CassandraRepairHelper cassandraRepairHelper;
-
-    @VisibleForTesting
-    AtlasRestoreService(
-            AuthHeader authHeader,
-            AtlasRestoreClient atlasRestoreClient,
-            TimeLockManagementService timeLockManagementService,
-            BackupPersister backupPersister,
-            CassandraRepairHelper cassandraRepairHelper) {
-        this.authHeader = authHeader;
-        this.atlasRestoreClient = atlasRestoreClient;
-        this.timeLockManagementService = timeLockManagementService;
-        this.backupPersister = backupPersister;
-        this.cassandraRepairHelper = cassandraRepairHelper;
-    }
-
-    public static AtlasRestoreService create(
-            AuthHeader authHeader,
-            Refreshable<ServicesConfigBlock> servicesConfigBlock,
-            String serviceName,
-            BackupPersister backupPersister,
-            Function<AtlasService, CassandraClusterConfig> cassandraClusterConfigFactory,
-            Function<AtlasService, Refreshable<CassandraServersConfig>> refreshableCassandraServersConfigFactory,
-            Function<AtlasService, KeyValueService> keyValueServiceFactory) {
-        DialogueClients.ReloadingFactory reloadingFactory = DialogueClients.create(servicesConfigBlock)
-                .withUserAgent(UserAgent.of(AtlasDbRemotingConstants.ATLASDB_HTTP_CLIENT_AGENT));
-        AtlasRestoreClient atlasRestoreClient = new DialogueAdaptingAtlasRestoreClient(
-                reloadingFactory.get(AtlasRestoreClientBlocking.class, serviceName));
-        TimeLockManagementService timeLockManagementService = new DialogueAdaptingTimeLockManagementService(
-                reloadingFactory.get(TimeLockManagementServiceBlocking.class, serviceName));
-
-        CassandraRepairHelper cassandraRepairHelper = new CassandraRepairHelper(
-                KvsRunner.create(keyValueServiceFactory),
-                cassandraClusterConfigFactory,
-                refreshableCassandraServersConfigFactory);
-
-        return new AtlasRestoreService(
-                authHeader, atlasRestoreClient, timeLockManagementService, backupPersister, cassandraRepairHelper);
-    }
-
-    public static AtlasRestoreService createForTests(
-            AuthHeader authHeader,
-            AtlasRestoreClient atlasRestoreClient,
-            TimeLockManagementService timeLockManagementService,
-            BackupPersister backupPersister,
-            TransactionManager transactionManager,
-            Function<AtlasService, CassandraClusterConfig> cassandraClusterConfigFactory,
-            Function<AtlasService, Refreshable<CassandraServersConfig>> refreshableCassandraServersConfigFactory) {
-        CassandraRepairHelper cassandraRepairHelper = new CassandraRepairHelper(
-                KvsRunner.create(transactionManager),
-                cassandraClusterConfigFactory,
-                refreshableCassandraServersConfigFactory);
-
-        return new AtlasRestoreService(
-                authHeader, atlasRestoreClient, timeLockManagementService, backupPersister, cassandraRepairHelper);
-    }
-
-    /**
-     * Disables TimeLock on all nodes for the given atlasServices.
-     * This will fail if any atlasService is already disabled, unless it was disabled with the provided backupId.
-     * AtlasServices for which we don't have a recorded backup will be ignored.
-     *
-     * @param restoreRequests the requests to prepare.
-     * @param backupId a unique identifier for this request (uniquely identifies the backup to which we're restoring)
-     *
-     * @return the atlasServices successfully disabled.
-     */
-    public Set<AtlasService> prepareRestore(Set<RestoreRequest> restoreRequests, String backupId) {
-        validateRestoreRequests(restoreRequests);
-        Map<RestoreRequest, CompletedBackup> completedBackups = getCompletedBackups(restoreRequests);
-        Set<AtlasService> atlasServicesToRestore = getAtlasServicesToRestore(completedBackups);
-        Preconditions.checkArgument(
-                atlasServicesToRestore.size() == completedBackups.size(),
-                "Attempting to restore multiple atlasServices into the same atlasService! "
-                        + "This will cause severe data corruption.",
-                SafeArg.of("restoreRequests", restoreRequests));
-
-        Set<Namespace> namespacesToRestore =
-                atlasServicesToRestore.stream().map(AtlasService::getNamespace).collect(Collectors.toSet());
-        DisableNamespacesRequest request = DisableNamespacesRequest.of(namespacesToRestore, backupId);
-        DisableNamespacesResponse response = timeLockManagementService.disableTimelock(authHeader, request);
-        return response.accept(new DisableNamespacesResponse.Visitor<>() {
-            @Override
-            public Set<AtlasService> visitSuccessful(SuccessfulDisableNamespacesResponse value) {
-                return atlasServicesToRestore;
-            }
-
-            @Override
-            public Set<AtlasService> visitUnsuccessful(UnsuccessfulDisableNamespacesResponse value) {
-                log.error(
-                        "Failed to disable namespaces prior to restore",
-                        SafeArg.of("requests", restoreRequests),
-                        SafeArg.of("response", value));
-                return ImmutableSet.of();
-            }
-
-            @Override
-            public Set<AtlasService> visitUnknown(String unknownType) {
-                throw new SafeIllegalStateException(
-                        "Unknown DisableNamespacesResponse", SafeArg.of("unknownType", unknownType));
-            }
-        });
-    }
-
-    /**
-     *  Returns the set of namespaces for which we successfully repaired internal tables.
-     *  Only namespaces for which a known backup exists will be repaired.
-     *  Namespaces are repaired serially. If repairTable throws an exception, then this will propagate back to the
-     *  caller. In such cases, some namespaces may not have been repaired.
-     *
-     * @param restoreRequests the repair requests.
-     * @param repairTable supplied function which is expected to repair the given ranges.
-     *
-     * @return the set of namespaces for which we issued a repair command via the provided Consumer.
-     */
-    public Set<AtlasService> repairInternalTables(
-            Set<RestoreRequest> restoreRequests, BiConsumer<String, RangesForRepair> repairTable) {
-        validateRestoreRequests(restoreRequests);
-        Map<RestoreRequest, CompletedBackup> completedBackups = getCompletedBackups(restoreRequests);
-        Set<AtlasService> namespacesToRepair = getAtlasServicesToRestore(completedBackups);
-        repairTables(repairTable, completedBackups, namespacesToRepair);
-        return namespacesToRepair;
-    }
-
-    /**
-     * Completes the restore process for the requested atlasServices.
-     * This includes fast-forwarding the timestamp, and then re-enabling the TimeLock namespaces.
-     *
-     * @param restoreRequests the requests to complete.
-     * @param backupId the backup identifier, which must match the one given to {@link #prepareRestore(Set, String)}
-     * @return the set of atlasServices that were successfully fast-forwarded and re-enabled.
-     */
-    public Set<AtlasService> completeRestore(Set<RestoreRequest> restoreRequests, String backupId) {
-        validateRestoreRequests(restoreRequests);
-        Map<RestoreRequest, CompletedBackup> completedBackups = getCompletedBackups(restoreRequests);
-        Set<AtlasService> atlasServicesToRestore = getAtlasServicesToRestore(completedBackups);
-
-        if (completedBackups.isEmpty()) {
-            log.info(
-                    "Attempted to complete restore, but no completed backups were found",
-                    SafeArg.of("restoreRequests", restoreRequests));
-            return ImmutableSet.of();
-        } else if (completedBackups.size() < restoreRequests.size()) {
-            Set<AtlasService> atlasServicesWithBackup = completedBackups.keySet().stream()
-                    .map(RestoreRequest::oldAtlasService)
-                    .collect(Collectors.toSet());
-            Set<AtlasService> allOldAtlasServices = restoreRequests.stream()
-                    .map(RestoreRequest::oldAtlasService)
-                    .collect(Collectors.toSet());
-            Set<AtlasService> atlasServicesWithoutBackup =
-                    Sets.difference(allOldAtlasServices, atlasServicesWithBackup);
-            log.warn(
-                    "Completed backups were not found for some atlasServices",
-                    SafeArg.of("atlasServicesWithBackup", atlasServicesWithBackup),
-                    SafeArg.of("atlasServicesWithoutBackup", atlasServicesWithoutBackup));
-        }
-
-        // Fast forward timestamps
-        Map<Namespace, CompletedBackup> completeRequest = KeyedStream.stream(completedBackups)
-                .mapKeys(RestoreRequest::newAtlasService)
-                .mapKeys(AtlasService::getNamespace)
-                .collectToMap();
-        Map<Namespace, AtlasService> namespaceToServices = KeyedStream.of(atlasServicesToRestore)
-                .mapKeys(AtlasService::getNamespace)
-                .collectToMap();
-
-        CompleteRestoreResponse response =
-                atlasRestoreClient.completeRestore(authHeader, CompleteRestoreRequest.of(completeRequest));
-        Set<AtlasService> successfulAtlasServices = response.getSuccessfulNamespaces().stream()
-                .map(namespaceToServices::get)
-                .collect(Collectors.toSet());
-        Set<AtlasService> failedAtlasServices = Sets.difference(atlasServicesToRestore, successfulAtlasServices);
-        if (failedAtlasServices.isEmpty()) {
-            log.info(
-                    "Successfully completed restore for all atlasServices",
-                    SafeArg.of("atlasServices", successfulAtlasServices));
-        } else {
-            log.error(
-                    "Failed to fast-forward timestamp for some atlasServices. These will not be re-enabled.",
-                    SafeArg.of("failedAtlasServices", failedAtlasServices),
-                    SafeArg.of("fastForwardedAtlasServices", successfulAtlasServices));
-        }
-
-        // Re-enable timelock
-        timeLockManagementService.reenableTimelock(
-                authHeader, ReenableNamespacesRequest.of(response.getSuccessfulNamespaces(), backupId));
-
-        return successfulAtlasServices;
-    }
-
-    private void repairTables(
-            BiConsumer<String, RangesForRepair> repairTable,
-            Map<RestoreRequest, CompletedBackup> completedBackups,
-            Set<AtlasService> atlasServicesToRepair) {
-        // ConsistentCasTablesTask
-        atlasServicesToRepair.forEach(
-                atlasService -> cassandraRepairHelper.repairInternalTables(atlasService, repairTable));
-
-        // RepairTransactionsTablesTask
-        KeyedStream.stream(completedBackups)
-                .forEach((restoreRequest, completedBackup) ->
-                        repairTransactionsTables(restoreRequest, completedBackup, repairTable));
-    }
-
-    private void repairTransactionsTables(
-            RestoreRequest restoreRequest,
-            CompletedBackup completedBackup,
-            BiConsumer<String, RangesForRepair> repairTable) {
-        Map<FullyBoundedTimestampRange, Integer> coordinationMap =
-                getCoordinationMap(restoreRequest.oldAtlasService(), completedBackup);
-        List<TransactionsTableInteraction> transactionsTableInteractions =
-                TransactionsTableInteraction.getTransactionTableInteractions(
-                        coordinationMap, DefaultRetryPolicy.INSTANCE);
-        AtlasService atlasService = restoreRequest.newAtlasService();
-        cassandraRepairHelper.repairTransactionsTables(atlasService, transactionsTableInteractions, repairTable);
-        cassandraRepairHelper.cleanTransactionsTables(
-                atlasService, completedBackup.getBackupStartTimestamp(), transactionsTableInteractions);
-    }
-
-    private Map<FullyBoundedTimestampRange, Integer> getCoordinationMap(
-            AtlasService atlasService, CompletedBackup completedBackup) {
-        Optional<InternalSchemaMetadataState> schemaMetadataState = backupPersister.getSchemaMetadata(atlasService);
-
-        long fastForwardTs = completedBackup.getBackupEndTimestamp();
-        long immutableTs = completedBackup.getBackupStartTimestamp();
-
-        return CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                schemaMetadataState, fastForwardTs, immutableTs);
-    }
-
-    private Map<RestoreRequest, CompletedBackup> getCompletedBackups(Set<RestoreRequest> restoreRequests) {
-        return KeyedStream.of(restoreRequests)
-                .map(RestoreRequest::oldAtlasService)
-                .map(backupPersister::getCompletedBackup)
-                .flatMap(Optional::stream)
-                .collectToMap();
-    }
-
-    private Set<AtlasService> getAtlasServicesToRestore(Map<RestoreRequest, CompletedBackup> completedBackups) {
-        return completedBackups.keySet().stream()
-                .map(RestoreRequest::newAtlasService)
-                .collect(Collectors.toSet());
-    }
-
-    private static void validateRestoreRequests(Set<RestoreRequest> restoreRequests) {
-        Set<AtlasService> newAtlasServices =
-                restoreRequests.stream().map(RestoreRequest::newAtlasService).collect(Collectors.toSet());
-        AtlasServices.throwIfAtlasServicesCollide(newAtlasServices);
-    }
-}u%     }(jt (eb3909b8c52376fc393687c9ac7cbe595ee1dbfcju Katlasdb-backup/src/main/java/com/palantir/atlasdb/backup/AtlasServices.javaju removedju K ju K/j u K/j!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasServices.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasServices.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasServices.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X  @@ -1,47 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
-import java.util.Map;
-import java.util.Map.Entry;
-import java.util.Set;
-import java.util.stream.Collectors;
-
-public final class AtlasServices {
-    private AtlasServices() {
-        // util
-    }
-
-    public static void throwIfAtlasServicesCollide(Set<AtlasService> atlasServices) {
-        Map<Namespace, Long> namespacesByCount = atlasServices.stream()
-                .collect(Collectors.groupingBy(AtlasService::getNamespace, Collectors.counting()));
-        Set<Namespace> duplicatedNamespaces = namespacesByCount.entrySet().stream()
-                .filter(entryWithCount -> entryWithCount.getValue() > 1)
-                .map(Entry::getKey)
-                .collect(Collectors.toSet());
-        if (!duplicatedNamespaces.isEmpty()) {
-            throw new SafeIllegalArgumentException(
-                    "Duplicated namespaces found in request. The operation cannot safely proceed.",
-                    SafeArg.of("duplicatedNamespaces", duplicatedNamespaces),
-                    SafeArg.of("atlasServices", atlasServices));
-        }
-    }
-}u}(jt (70c235a50d577fb688439055712f78733cb0af85ju Matlasdb-backup/src/main/java/com/palantir/atlasdb/backup/BackupPersister.javaju removedju K ju K%j u K%j!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FBackupPersister.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FBackupPersister.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FBackupPersister.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X  @@ -1,37 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.InProgressBackupToken;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import java.util.Optional;
-
-interface BackupPersister {
-    void storeSchemaMetadata(AtlasService service, InternalSchemaMetadataState internalSchemaMetadataState);
-
-    Optional<InternalSchemaMetadataState> getSchemaMetadata(AtlasService service);
-
-    void storeCompletedBackup(AtlasService atlasService, CompletedBackup completedBackup);
-
-    Optional<CompletedBackup> getCompletedBackup(AtlasService service);
-
-    void storeImmutableTimestamp(AtlasService atlasService, InProgressBackupToken inProgressBackupToken);
-
-    Optional<Long> getImmutableTimestamp(AtlasService service);
-}u}(jt (e2ace5b691c38bbd57e4b611bf1730209933697eju Yatlasdb-backup/src/main/java/com/palantir/atlasdb/backup/CoordinationServiceRecorder.javaju removedju K ju Kdj u Kdj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceRecorder.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceRecorder.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceRecorder.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u Xb  @@ -1,100 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.google.common.collect.Iterables;
-import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.coordination.CoordinationService;
-import com.palantir.atlasdb.coordination.ValueAndBound;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadata;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import com.palantir.atlasdb.internalschema.persistence.CoordinationServices;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.impl.CheckAndSetResult;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.Optional;
-
-final class CoordinationServiceRecorder {
-    private static final SafeLogger log = SafeLoggerFactory.get(CoordinationServiceRecorder.class);
-
-    private final KvsRunner kvsRunner;
-    private final BackupPersister backupPersister;
-
-    CoordinationServiceRecorder(KvsRunner kvsRunner, BackupPersister backupPersister) {
-        this.kvsRunner = kvsRunner;
-        this.backupPersister = backupPersister;
-    }
-
-    public void storeFastForwardState(AtlasService atlasService, CompletedBackup completedBackup) {
-        Optional<InternalSchemaMetadataState> maybeMetadata =
-                fetchSchemaMetadata(atlasService, completedBackup.getBackupEndTimestamp());
-
-        maybeMetadata.ifPresentOrElse(
-                metadata -> backupPersister.storeSchemaMetadata(atlasService, metadata),
-                () -> logEmptyMetadata(atlasService));
-    }
-
-    private void logEmptyMetadata(AtlasService atlasService) {
-        log.info(
-                "No metadata stored in coordination service for atlas service.",
-                SafeArg.of("atlasService", atlasService));
-    }
-
-    private Optional<InternalSchemaMetadataState> fetchSchemaMetadata(AtlasService atlasService, long timestamp) {
-        return kvsRunner.run(atlasService, kvs -> getInternalSchemaMetadataState(kvs, timestamp));
-    }
-
-    private Optional<InternalSchemaMetadataState> getInternalSchemaMetadataState(KeyValueService kvs, long timestamp) {
-        if (!kvs.getAllTableNames().contains(AtlasDbConstants.COORDINATION_TABLE)) {
-            return Optional.empty();
-        }
-        CoordinationService<InternalSchemaMetadata> coordination =
-                CoordinationServices.createDefault(kvs, () -> timestamp, false);
-
-        return Optional.of(InternalSchemaMetadataState.of(getValidMetadata(coordination, timestamp)));
-    }
-
-    private ValueAndBound<InternalSchemaMetadata> getValidMetadata(
-            CoordinationService<InternalSchemaMetadata> coordination, long timestamp) {
-        return coordination
-                .getValueForTimestamp(timestamp)
-                .orElseGet(() -> extendValidityBound(coordination, timestamp));
-    }
-
-    // Keep trying to extend the validity bound until it succeeds. Transactions can't commit until _someone_ succeeds
-    // in doing this - so this is effectively guaranteed to terminate eventually.
-    private ValueAndBound<InternalSchemaMetadata> extendValidityBound(
-            CoordinationService<InternalSchemaMetadata> coordination, long timestamp) {
-        Optional<ValueAndBound<InternalSchemaMetadata>> maybeBound = Optional.empty();
-        while (maybeBound.isEmpty()) {
-            maybeBound = tryExtendValidityBound(coordination, timestamp);
-        }
-        return maybeBound.get();
-    }
-
-    private Optional<ValueAndBound<InternalSchemaMetadata>> tryExtendValidityBound(
-            CoordinationService<InternalSchemaMetadata> coordination, long timestamp) {
-        CheckAndSetResult<ValueAndBound<InternalSchemaMetadata>> casResult = coordination.tryTransformCurrentValue(
-                valueAndBound -> valueAndBound.value().orElseGet(InternalSchemaMetadata::defaultValue));
-        ValueAndBound<InternalSchemaMetadata> persisted = Iterables.getOnlyElement(casResult.existingValues());
-        return (persisted.bound() >= timestamp) ? Optional.of(persisted) : Optional.empty();
-    }
-}u}(jt (1c44ea90ea1587abfa52806ffbf809f1019ef2b7ju Zatlasdb-backup/src/main/java/com/palantir/atlasdb/backup/CoordinationServiceUtilities.javaju removedju K ju KOj u KOj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceUtilities.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceUtilities.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceUtilities.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X  @@ -1,79 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.google.common.collect.ImmutableRangeMap;
-import com.google.common.collect.Range;
-import com.google.common.collect.RangeMap;
-import com.palantir.atlasdb.coordination.ValueAndBound;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadata;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import com.palantir.atlasdb.internalschema.TimestampPartitioningMap;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.timestamp.FullyBoundedTimestampRange;
-import java.util.Map;
-import java.util.Optional;
-
-@SuppressWarnings("UnstableApiUsage")
-public final class CoordinationServiceUtilities {
-    // before the coordination service all transactions were schema 1, i.e. in _transactions
-    private static final ImmutableRangeMap<Long, Integer> PRE_COORDINATION_TRANSACTIONS_MAP =
-            ImmutableRangeMap.of(Range.atLeast(TransactionConstants.LOWEST_POSSIBLE_START_TS), 1);
-
-    private CoordinationServiceUtilities() {}
-
-    public static Map<FullyBoundedTimestampRange, Integer> getCoordinationMapOnRestore(
-            Optional<InternalSchemaMetadataState> schemaMetadataState, long fastForwardTs, long immutableTs) {
-        RangeMap<Long, Integer> unbounded = convertInternalSchemaMetadataToRangeMap(schemaMetadataState);
-
-        RangeMap<Long, Integer> fastForwardBounded = addInclusiveUpperBoundToRangeMap(unbounded, fastForwardTs);
-
-        RangeMap<Long, Integer> bounded = addInclusiveLowerBoundToRangeMap(fastForwardBounded, immutableTs);
-
-        return KeyedStream.stream(bounded.asMapOfRanges())
-                .mapKeys(FullyBoundedTimestampRange::of)
-                .collectToMap();
-    }
-
-    private static RangeMap<Long, Integer> convertInternalSchemaMetadataToRangeMap(
-            Optional<InternalSchemaMetadataState> internalSchemaMetadata) {
-        return internalSchemaMetadata
-                .flatMap(InternalSchemaMetadataState::value)
-                .flatMap(CoordinationServiceUtilities::convertValueAndBoundToRangeMap)
-                .orElse(PRE_COORDINATION_TRANSACTIONS_MAP);
-    }
-
-    private static Optional<RangeMap<Long, Integer>> convertValueAndBoundToRangeMap(
-            ValueAndBound<InternalSchemaMetadata> valueAndBound) {
-        return valueAndBound
-                .value()
-                .map(InternalSchemaMetadata::timestampToTransactionsTableSchemaVersion)
-                .map(TimestampPartitioningMap::rangeMapView)
-                .map(rangeMap -> addInclusiveUpperBoundToRangeMap(rangeMap, valueAndBound.bound()));
-    }
-
-    private static RangeMap<Long, Integer> addInclusiveUpperBoundToRangeMap(
-            RangeMap<Long, Integer> rangeMap, long upperBound) {
-        return rangeMap.subRangeMap(Range.atMost(upperBound));
-    }
-
-    private static RangeMap<Long, Integer> addInclusiveLowerBoundToRangeMap(
-            RangeMap<Long, Integer> rangeMap, long lowerBound) {
-        return rangeMap.subRangeMap(Range.atLeast(lowerBound));
-    }
-}u}(jt (d505f8b39f8a8a204fc645abc3111eeb72083e14ju _atlasdb-backup/src/main/java/com/palantir/atlasdb/backup/DialogueAdaptingAtlasBackupClient.javaju removedju K ju K2j u K2j!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingAtlasBackupClient.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingAtlasBackupClient.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingAtlasBackupClient.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u Xc  @@ -1,50 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasBackupClient;
-import com.palantir.atlasdb.backup.api.AtlasBackupClientBlocking;
-import com.palantir.atlasdb.backup.api.CompleteBackupRequest;
-import com.palantir.atlasdb.backup.api.CompleteBackupResponse;
-import com.palantir.atlasdb.backup.api.PrepareBackupRequest;
-import com.palantir.atlasdb.backup.api.PrepareBackupResponse;
-import com.palantir.atlasdb.backup.api.RefreshBackupRequest;
-import com.palantir.atlasdb.backup.api.RefreshBackupResponse;
-import com.palantir.tokens.auth.AuthHeader;
-
-public class DialogueAdaptingAtlasBackupClient implements AtlasBackupClient {
-    private final AtlasBackupClientBlocking dialogueDelegate;
-
-    public DialogueAdaptingAtlasBackupClient(AtlasBackupClientBlocking dialogueDelegate) {
-        this.dialogueDelegate = dialogueDelegate;
-    }
-
-    @Override
-    public PrepareBackupResponse prepareBackup(AuthHeader authHeader, PrepareBackupRequest request) {
-        return dialogueDelegate.prepareBackup(authHeader, request);
-    }
-
-    @Override
-    public RefreshBackupResponse refreshBackup(AuthHeader authHeader, RefreshBackupRequest request) {
-        return dialogueDelegate.refreshBackup(authHeader, request);
-    }
-
-    @Override
-    public CompleteBackupResponse completeBackup(AuthHeader authHeader, CompleteBackupRequest request) {
-        return dialogueDelegate.completeBackup(authHeader, request);
-    }
-}u}(jt (c763dda85df496e50c76a2efb4d66c79d82f079bju `atlasdb-backup/src/main/java/com/palantir/atlasdb/backup/DialogueAdaptingAtlasRestoreClient.javaju removedju K ju K$j u K$j!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingAtlasRestoreClient.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingAtlasRestoreClient.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingAtlasRestoreClient.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X  @@ -1,36 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasRestoreClient;
-import com.palantir.atlasdb.backup.api.AtlasRestoreClientBlocking;
-import com.palantir.atlasdb.backup.api.CompleteRestoreRequest;
-import com.palantir.atlasdb.backup.api.CompleteRestoreResponse;
-import com.palantir.tokens.auth.AuthHeader;
-
-public class DialogueAdaptingAtlasRestoreClient implements AtlasRestoreClient {
-    private final AtlasRestoreClientBlocking dialogueDelegate;
-
-    public DialogueAdaptingAtlasRestoreClient(AtlasRestoreClientBlocking dialogueDelegate) {
-        this.dialogueDelegate = dialogueDelegate;
-    }
-
-    @Override
-    public CompleteRestoreResponse completeRestore(AuthHeader authHeader, CompleteRestoreRequest request) {
-        return dialogueDelegate.completeRestore(authHeader, request);
-    }
-}u}(jt (1a88f71b0aaee1cb4ea8f1cc8c8dc745d8c7f318ju Uatlasdb-backup/src/main/java/com/palantir/atlasdb/backup/ExternalBackupPersister.javaju removedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FExternalBackupPersister.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FExternalBackupPersister.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FExternalBackupPersister.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X  @@ -1,182 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.fasterxml.jackson.databind.PropertyNamingStrategies;
-import com.fasterxml.jackson.databind.exc.MismatchedInputException;
-import com.google.common.annotations.VisibleForTesting;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.InProgressBackupToken;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import com.palantir.conjure.java.serialization.ObjectMappers;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.io.File;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.util.Optional;
-import java.util.function.Function;
-
-public class ExternalBackupPersister implements BackupPersister {
-    private static final SafeLogger log = SafeLoggerFactory.get(ExternalBackupPersister.class);
-
-    private static final ObjectMapper OBJECT_MAPPER = ObjectMappers.newClientObjectMapper();
-    private static final ObjectMapper LEGACY_OBJECT_MAPPER =
-            OBJECT_MAPPER.copy().setPropertyNamingStrategy(PropertyNamingStrategies.KEBAB_CASE);
-
-    private static final String SCHEMA_METADATA_FILE_NAME = "internal_schema_metadata_state";
-    private static final String BACKUP_TIMESTAMP_FILE_NAME = "backup.timestamp";
-    private static final String IMMUTABLE_TIMESTAMP_FILE_NAME = "immutable.timestamp";
-    private static final String FAST_FORWARD_TIMESTAMP_FILE_NAME = "fast-forward.timestamp";
-
-    private final Function<AtlasService, Path> pathFactory;
-
-    public ExternalBackupPersister(Function<AtlasService, Path> pathFactory) {
-        this.pathFactory = pathFactory;
-    }
-
-    @Override
-    public void storeSchemaMetadata(AtlasService service, InternalSchemaMetadataState internalSchemaMetadataState) {
-        File schemaMetadataFile = getSchemaMetadataFile(service);
-        if (log.isDebugEnabled()) {
-            log.debug(
-                    "Storing schema metadata",
-                    SafeArg.of("service", service),
-                    SafeArg.of("file", schemaMetadataFile.getPath()));
-        }
-        writeToFile(service, schemaMetadataFile, internalSchemaMetadataState);
-    }
-
-    @Override
-    public Optional<InternalSchemaMetadataState> getSchemaMetadata(AtlasService atlasService) {
-        return loadFromFile(atlasService, getSchemaMetadataFile(atlasService), InternalSchemaMetadataState.class);
-    }
-
-    @Override
-    public void storeCompletedBackup(AtlasService atlasService, CompletedBackup completedBackup) {
-        if (log.isDebugEnabled()) {
-            log.debug("Storing completed backup", SafeArg.of("atlasService", atlasService));
-        }
-        writeToFile(atlasService, getImmutableTimestampFile(atlasService), completedBackup.getImmutableTimestamp());
-        writeToFile(atlasService, getBackupTimestampFile(atlasService), completedBackup.getBackupStartTimestamp());
-        writeToFile(atlasService, getFastForwardTimestampFile(atlasService), completedBackup.getBackupEndTimestamp());
-    }
-
-    @Override
-    public Optional<CompletedBackup> getCompletedBackup(AtlasService atlasService) {
-        Optional<Long> immutableTimestamp =
-                loadFromFile(atlasService, getImmutableTimestampFile(atlasService), Long.class);
-        Optional<Long> startTimestamp = loadFromFile(atlasService, getBackupTimestampFile(atlasService), Long.class);
-        Optional<Long> endTimestamp = loadFromFile(atlasService, getFastForwardTimestampFile(atlasService), Long.class);
-        if (immutableTimestamp.isEmpty() || startTimestamp.isEmpty() || endTimestamp.isEmpty()) {
-            return Optional.empty();
-        }
-
-        return Optional.of(CompletedBackup.builder()
-                .namespace(atlasService.getNamespace())
-                .immutableTimestamp(immutableTimestamp.get())
-                .backupStartTimestamp(startTimestamp.get())
-                .backupEndTimestamp(endTimestamp.get())
-                .build());
-    }
-
-    @Override
-    public void storeImmutableTimestamp(AtlasService atlasService, InProgressBackupToken inProgressBackupToken) {
-        writeToFile(
-                atlasService, getImmutableTimestampFile(atlasService), inProgressBackupToken.getImmutableTimestamp());
-    }
-
-    @Override
-    public Optional<Long> getImmutableTimestamp(AtlasService atlasService) {
-        return loadFromFile(atlasService, getImmutableTimestampFile(atlasService), Long.class);
-    }
-
-    private File getSchemaMetadataFile(AtlasService atlasService) {
-        return getFile(atlasService, SCHEMA_METADATA_FILE_NAME);
-    }
-
-    private File getImmutableTimestampFile(AtlasService atlasService) {
-        return getFile(atlasService, IMMUTABLE_TIMESTAMP_FILE_NAME);
-    }
-
-    private File getBackupTimestampFile(AtlasService atlasService) {
-        return getFile(atlasService, BACKUP_TIMESTAMP_FILE_NAME);
-    }
-
-    private File getFastForwardTimestampFile(AtlasService atlasService) {
-        return getFile(atlasService, FAST_FORWARD_TIMESTAMP_FILE_NAME);
-    }
-
-    private File getFile(AtlasService atlasService, String fileName) {
-        return new File(pathFactory.apply(atlasService).toFile(), fileName);
-    }
-
-    private void writeToFile(AtlasService atlasService, File file, Object data) {
-        try (OutputStream os = Files.newOutputStream(file.toPath())) {
-            os.write(OBJECT_MAPPER.writeValueAsBytes(data));
-            os.flush();
-        } catch (IOException e) {
-            log.error(
-                    "Failed to store file",
-                    SafeArg.of("fileName", file.getName()),
-                    SafeArg.of("atlasService", atlasService),
-                    e);
-            throw new RuntimeException(e);
-        }
-    }
-
-    @VisibleForTesting
-    <T> Optional<T> loadFromFile(AtlasService atlasService, File file, Class<T> clazz) {
-        if (!file.exists()) {
-            log.info(
-                    "Tried to load file, but it did not exist",
-                    SafeArg.of("fileName", file.getName()),
-                    SafeArg.of("namespace", atlasService.getNamespace()));
-            return Optional.empty();
-        }
-
-        try {
-            T state = tryLoadFromFile(file, clazz);
-            log.info(
-                    "Successfully loaded file",
-                    SafeArg.of("fileName", file.getName()),
-                    SafeArg.of("namespace", atlasService.getNamespace()));
-            return Optional.of(state);
-        } catch (IOException e) {
-            log.warn(
-                    "Failed to read file",
-                    SafeArg.of("fileName", file.getName()),
-                    SafeArg.of("atlasService", atlasService),
-                    e);
-            return Optional.empty();
-        }
-    }
-
-    private <T> T tryLoadFromFile(File file, Class<T> clazz) throws IOException {
-        try {
-            return OBJECT_MAPPER.readValue(file, clazz);
-        } catch (MismatchedInputException e) {
-            log.debug("Using old mapper format", e);
-            return LEGACY_OBJECT_MAPPER.readValue(file, clazz);
-        }
-    }
-}u}(jt (aa1ee605926132d8d60ac4fded66264cd7e57708ju Uatlasdb-backup/src/main/java/com/palantir/atlasdb/backup/InMemoryBackupPersister.javaju removedju K ju KDj u KDj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FInMemoryBackupPersister.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FInMemoryBackupPersister.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FInMemoryBackupPersister.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X
  @@ -1,68 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.InProgressBackupToken;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import java.util.Map;
-import java.util.Optional;
-import java.util.concurrent.ConcurrentHashMap;
-
-class InMemoryBackupPersister implements BackupPersister {
-    private final Map<AtlasService, Long> immutableTimestamps;
-    private final Map<AtlasService, InternalSchemaMetadataState> schemaMetadatas;
-    private final Map<AtlasService, CompletedBackup> completedBackups;
-
-    InMemoryBackupPersister() {
-        schemaMetadatas = new ConcurrentHashMap<>();
-        completedBackups = new ConcurrentHashMap<>();
-        immutableTimestamps = new ConcurrentHashMap<>();
-    }
-
-    @Override
-    public void storeSchemaMetadata(
-            AtlasService atlasService, InternalSchemaMetadataState internalSchemaMetadataState) {
-        schemaMetadatas.put(atlasService, internalSchemaMetadataState);
-    }
-
-    @Override
-    public Optional<InternalSchemaMetadataState> getSchemaMetadata(AtlasService atlasService) {
-        return Optional.ofNullable(schemaMetadatas.get(atlasService));
-    }
-
-    @Override
-    public void storeCompletedBackup(AtlasService atlasService, CompletedBackup completedBackup) {
-        completedBackups.put(atlasService, completedBackup);
-    }
-
-    @Override
-    public Optional<CompletedBackup> getCompletedBackup(AtlasService atlasService) {
-        return Optional.ofNullable(completedBackups.get(atlasService));
-    }
-
-    @Override
-    public void storeImmutableTimestamp(AtlasService atlasService, InProgressBackupToken inProgressBackupToken) {
-        immutableTimestamps.put(atlasService, inProgressBackupToken.getImmutableTimestamp());
-    }
-
-    @Override
-    public Optional<Long> getImmutableTimestamp(AtlasService atlasService) {
-        return Optional.ofNullable(immutableTimestamps.get(atlasService));
-    }
-}u}(jt (2db81d2dfdba2dfe3ffb9bd4bf6cb0cbf074667bju Tatlasdb-backup/src/test/java/com/palantir/atlasdb/backup/AtlasBackupServiceTest.javaju removedju K ju Mj u Mj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupServiceTest.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupServiceTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasBackupServiceTest.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X-  @@ -1,261 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatCode;
-import static org.mockito.ArgumentMatchers.argThat;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoInteractions;
-import static org.mockito.Mockito.when;
-
-import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.backup.api.AtlasBackupClient;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompleteBackupRequest;
-import com.palantir.atlasdb.backup.api.CompleteBackupResponse;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.InProgressBackupToken;
-import com.palantir.atlasdb.backup.api.PrepareBackupRequest;
-import com.palantir.atlasdb.backup.api.PrepareBackupResponse;
-import com.palantir.atlasdb.backup.api.ServiceId;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.lock.client.LockRefresher;
-import com.palantir.lock.v2.LockToken;
-import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import com.palantir.tokens.auth.AuthHeader;
-import java.util.Set;
-import java.util.UUID;
-import java.util.concurrent.ScheduledExecutorService;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.Mock;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@RunWith(MockitoJUnitRunner.class)
-public class AtlasBackupServiceTest {
-    private static final Namespace NAMESPACE = Namespace.of("foo");
-    private static final AtlasService ATLAS_SERVICE = AtlasService.of(ServiceId.of("a"), NAMESPACE);
-    private static final Namespace OTHER_NAMESPACE = Namespace.of("other");
-    private static final AtlasService OTHER_ATLAS_SERVICE = AtlasService.of(ServiceId.of("b"), OTHER_NAMESPACE);
-    private static final InProgressBackupToken IN_PROGRESS = inProgressBackupToken(NAMESPACE);
-
-    @Mock
-    private AuthHeader authHeader;
-
-    @Mock
-    private AtlasBackupClient atlasBackupClient;
-
-    @Mock
-    private CoordinationServiceRecorder coordinationServiceRecorder;
-
-    @Mock
-    private LockRefresher<InProgressBackupToken> lockRefresher;
-
-    @Mock
-    private ScheduledExecutorService executorService;
-
-    private AtlasBackupService atlasBackupService;
-    private BackupPersister backupPersister;
-
-    @Before
-    public void setup() {
-        backupPersister = new InMemoryBackupPersister();
-        atlasBackupService = new AtlasBackupService(
-                authHeader,
-                atlasBackupClient,
-                coordinationServiceRecorder,
-                backupPersister,
-                lockRefresher,
-                executorService,
-                10);
-    }
-
-    @Test
-    public void prepareBackupReturnsSuccessfulServices() {
-        when(atlasBackupClient.prepareBackup(
-                        authHeader, PrepareBackupRequest.of(ImmutableSet.of(NAMESPACE, OTHER_NAMESPACE))))
-                .thenReturn(PrepareBackupResponse.of(ImmutableSet.of(IN_PROGRESS)));
-
-        assertThat(atlasBackupService.prepareBackup(ImmutableSet.of(ATLAS_SERVICE, OTHER_ATLAS_SERVICE)))
-                .containsExactly(ATLAS_SERVICE);
-    }
-
-    @Test
-    public void prepareBackupRegistersLockForRefresh() {
-        Set<InProgressBackupToken> tokens = ImmutableSet.of(IN_PROGRESS);
-        when(atlasBackupClient.prepareBackup(
-                        authHeader, PrepareBackupRequest.of(ImmutableSet.of(NAMESPACE, OTHER_NAMESPACE))))
-                .thenReturn(PrepareBackupResponse.of(tokens));
-
-        atlasBackupService.prepareBackup(ImmutableSet.of(ATLAS_SERVICE, OTHER_ATLAS_SERVICE));
-        verify(lockRefresher).registerLocks(tokens);
-    }
-
-    @Test
-    public void prepareBackupThrowsIfNamespacesCollide() {
-        AtlasService collidingAtlasService = AtlasService.of(ServiceId.of("c"), ATLAS_SERVICE.getNamespace());
-        assertThatLoggableExceptionThrownBy(
-                        () -> atlasBackupService.prepareBackup(ImmutableSet.of(ATLAS_SERVICE, collidingAtlasService)))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageContaining("Duplicated namespaces");
-    }
-
-    @Test
-    public void prepareBackupThrowsIfNamespacesCollideWithExistingInProgressBackups() {
-        when(atlasBackupClient.prepareBackup(authHeader, PrepareBackupRequest.of(ImmutableSet.of(NAMESPACE))))
-                .thenReturn(PrepareBackupResponse.of(ImmutableSet.of(IN_PROGRESS)));
-        AtlasService collidingAtlasService = AtlasService.of(ServiceId.of("c"), ATLAS_SERVICE.getNamespace());
-        atlasBackupService.prepareBackup(ImmutableSet.of(ATLAS_SERVICE));
-        assertThatLoggableExceptionThrownBy(
-                        () -> atlasBackupService.prepareBackup(ImmutableSet.of(collidingAtlasService)))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageContaining("Duplicated namespaces");
-    }
-
-    @Test
-    public void prepareBackupThrowsAfterClose() {
-        atlasBackupService.close();
-
-        assertThatLoggableExceptionThrownBy(() -> atlasBackupService.prepareBackup(ImmutableSet.of(ATLAS_SERVICE)))
-                .isInstanceOf(SafeIllegalStateException.class)
-                .hasMessageContaining("closed");
-    }
-
-    @Test
-    public void completeBackupThrowsAfterClose() {
-        atlasBackupService.close();
-
-        assertThatLoggableExceptionThrownBy(() -> atlasBackupService.completeBackup(ImmutableSet.of(ATLAS_SERVICE)))
-                .isInstanceOf(SafeIllegalStateException.class)
-                .hasMessageContaining("closed");
-    }
-
-    @Test
-    public void canCloseTwice() {
-        atlasBackupService.close();
-
-        assertThatCode(() -> atlasBackupService.close()).doesNotThrowAnyException();
-    }
-
-    @Test
-    public void closeClosesLockRefresher() {
-        Set<InProgressBackupToken> tokens = ImmutableSet.of(IN_PROGRESS);
-        when(atlasBackupClient.prepareBackup(
-                        authHeader, PrepareBackupRequest.of(ImmutableSet.of(NAMESPACE, OTHER_NAMESPACE))))
-                .thenReturn(PrepareBackupResponse.of(tokens));
-
-        atlasBackupService.prepareBackup(ImmutableSet.of(ATLAS_SERVICE, OTHER_ATLAS_SERVICE));
-
-        atlasBackupService.close();
-        verify(lockRefresher).unregisterLocks(argThat(collection -> collection.contains(IN_PROGRESS)));
-        verify(lockRefresher).close();
-        verify(executorService).shutdownNow();
-    }
-
-    @Test
-    public void completeBackupThrowsIfNamespacesCollide() {
-        AtlasService collidingAtlasService = AtlasService.of(ServiceId.of("c"), ATLAS_SERVICE.getNamespace());
-        assertThatLoggableExceptionThrownBy(
-                        () -> atlasBackupService.completeBackup(ImmutableSet.of(ATLAS_SERVICE, collidingAtlasService)))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageContaining("Duplicated namespaces");
-    }
-
-    @Test
-    public void completeBackupDoesNotRunUnpreparedServices() {
-        assertThat(atlasBackupService.completeBackup(ImmutableSet.of(OTHER_ATLAS_SERVICE)))
-                .isEmpty();
-
-        verifyNoInteractions(atlasBackupClient);
-    }
-
-    @Test
-    public void completeBackupReturnsSuccessfulServices() {
-        InProgressBackupToken otherInProgress = inProgressBackupToken(OTHER_NAMESPACE);
-        Set<Namespace> namespaces = ImmutableSet.of(NAMESPACE, OTHER_NAMESPACE);
-
-        when(atlasBackupClient.prepareBackup(authHeader, PrepareBackupRequest.of(namespaces)))
-                .thenReturn(PrepareBackupResponse.of(ImmutableSet.of(IN_PROGRESS, otherInProgress)));
-
-        when(atlasBackupClient.completeBackup(
-                        authHeader, CompleteBackupRequest.of(ImmutableSet.of(IN_PROGRESS, otherInProgress))))
-                .thenReturn(CompleteBackupResponse.of(ImmutableSet.of(completedBackup())));
-
-        Set<AtlasService> services = ImmutableSet.of(ATLAS_SERVICE, OTHER_ATLAS_SERVICE);
-        atlasBackupService.prepareBackup(services);
-
-        assertThat(atlasBackupService.completeBackup(services)).containsExactly(ATLAS_SERVICE);
-    }
-
-    @Test
-    public void completeBackupUnregistersLocks() {
-        Set<AtlasService> oneService = ImmutableSet.of(ATLAS_SERVICE);
-        Set<Namespace> oneNamespace = ImmutableSet.of(NAMESPACE);
-        Set<InProgressBackupToken> tokens = ImmutableSet.of(IN_PROGRESS);
-        when(atlasBackupClient.prepareBackup(authHeader, PrepareBackupRequest.of(oneNamespace)))
-                .thenReturn(PrepareBackupResponse.of(tokens));
-
-        CompletedBackup completedBackup = completedBackup();
-        when(atlasBackupClient.completeBackup(authHeader, CompleteBackupRequest.of(tokens)))
-                .thenReturn(CompleteBackupResponse.of(ImmutableSet.of(completedBackup)));
-
-        atlasBackupService.prepareBackup(oneService);
-        atlasBackupService.completeBackup(oneService);
-
-        verify(lockRefresher).unregisterLocks(tokens);
-    }
-
-    @Test
-    public void completeBackupStoresBackupInfoAndMetadata() {
-        ImmutableSet<Namespace> oneNamespace = ImmutableSet.of(NAMESPACE);
-        ImmutableSet<AtlasService> oneService = ImmutableSet.of(ATLAS_SERVICE);
-        when(atlasBackupClient.prepareBackup(authHeader, PrepareBackupRequest.of(oneNamespace)))
-                .thenReturn(PrepareBackupResponse.of(ImmutableSet.of(IN_PROGRESS)));
-
-        CompletedBackup completedBackup = completedBackup();
-        when(atlasBackupClient.completeBackup(authHeader, CompleteBackupRequest.of(ImmutableSet.of(IN_PROGRESS))))
-                .thenReturn(CompleteBackupResponse.of(ImmutableSet.of(completedBackup)));
-
-        atlasBackupService.prepareBackup(oneService);
-        atlasBackupService.completeBackup(oneService);
-
-        verify(coordinationServiceRecorder).storeFastForwardState(ATLAS_SERVICE, completedBackup);
-        assertThat(backupPersister.getCompletedBackup(ATLAS_SERVICE)).contains(completedBackup);
-    }
-
-    private static CompletedBackup completedBackup() {
-        return CompletedBackup.builder()
-                .namespace(NAMESPACE)
-                .immutableTimestamp(1L)
-                .backupStartTimestamp(2L)
-                .backupEndTimestamp(3L)
-                .build();
-    }
-
-    private static InProgressBackupToken inProgressBackupToken(Namespace namespace) {
-        return InProgressBackupToken.builder()
-                .namespace(namespace)
-                .immutableTimestamp(1L)
-                .backupStartTimestamp(2L)
-                .lockToken(LockToken.of(UUID.randomUUID()))
-                .build();
-    }
-}u}(jt (c5a7e3adef390a09599c167bd2f7451189f24cc4ju Uatlasdb-backup/src/test/java/com/palantir/atlasdb/backup/AtlasRestoreServiceTest.javaju removedju K ju M0j u M0j!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreServiceTest.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreServiceTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FAtlasRestoreServiceTest.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u XL=  @@ -1,304 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.ArgumentMatchers.anyList;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoInteractions;
-import static org.mockito.Mockito.verifyNoMoreInteractions;
-import static org.mockito.Mockito.when;
-
-import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.backup.api.AtlasRestoreClient;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompleteRestoreRequest;
-import com.palantir.atlasdb.backup.api.CompleteRestoreResponse;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.ServiceId;
-import com.palantir.atlasdb.cassandra.backup.CassandraRepairHelper;
-import com.palantir.atlasdb.cassandra.backup.RangesForRepair;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.SuccessfulDisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.UnsuccessfulDisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementService;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
-import com.palantir.tokens.auth.AuthHeader;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.function.BiConsumer;
-import java.util.stream.Collectors;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.InOrder;
-import org.mockito.Mock;
-import org.mockito.Mockito;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@RunWith(MockitoJUnitRunner.class)
-public class AtlasRestoreServiceTest {
-    private static final Namespace WITH_BACKUP_NS = Namespace.of("with-backup");
-    private static final AtlasService WITH_BACKUP = AtlasService.of(ServiceId.of("a"), WITH_BACKUP_NS);
-    private static final Namespace NO_BACKUP_NS = Namespace.of("no-backup");
-    private static final AtlasService NO_BACKUP = AtlasService.of(ServiceId.of("b"), NO_BACKUP_NS);
-    private static final Namespace FAILING_NS = Namespace.of("failing");
-    private static final AtlasService FAILING_NAMESPACE = AtlasService.of(ServiceId.of("c"), FAILING_NS);
-    private static final long BACKUP_START_TIMESTAMP = 2L;
-    private static final String BACKUP_ID = "backup-19890526215242";
-
-    @Mock
-    private AuthHeader authHeader;
-
-    @Mock
-    private AtlasRestoreClient atlasRestoreClient;
-
-    @Mock
-    private TimeLockManagementService timeLockManagementService;
-
-    @Mock
-    private CassandraRepairHelper cassandraRepairHelper;
-
-    private AtlasRestoreService atlasRestoreService;
-    private InMemoryBackupPersister backupPersister;
-
-    @Before
-    public void setup() {
-        backupPersister = new InMemoryBackupPersister();
-        atlasRestoreService = new AtlasRestoreService(
-                authHeader, atlasRestoreClient, timeLockManagementService, backupPersister, cassandraRepairHelper);
-
-        storeCompletedBackup(WITH_BACKUP);
-        storeCompletedBackup(FAILING_NAMESPACE);
-    }
-
-    private void storeCompletedBackup(AtlasService atlasService) {
-        CompletedBackup completedBackup = CompletedBackup.builder()
-                .namespace(atlasService.getNamespace())
-                .immutableTimestamp(1L)
-                .backupStartTimestamp(BACKUP_START_TIMESTAMP)
-                .backupEndTimestamp(3L)
-                .build();
-        backupPersister.storeCompletedBackup(atlasService, completedBackup);
-    }
-
-    @Test
-    public void cannotRestoreTwiceToSameAtlasService() {
-        AtlasService severeData = AtlasService.of(ServiceId.of("a"), Namespace.of("severe-data"));
-        storeCompletedBackup(severeData);
-
-        AtlasService corruption = AtlasService.of(ServiceId.of("b"), Namespace.of("corruption"));
-        RestoreRequest firstRequest = RestoreRequest.builder()
-                .oldAtlasService(WITH_BACKUP)
-                .newAtlasService(corruption)
-                .build();
-        RestoreRequest secondRequest = RestoreRequest.builder()
-                .oldAtlasService(severeData)
-                .newAtlasService(corruption)
-                .build();
-        Set<RestoreRequest> requests = ImmutableSet.of(firstRequest, secondRequest);
-
-        assertThatThrownBy(() -> atlasRestoreService.prepareRestore(requests, BACKUP_ID))
-                .isInstanceOf(SafeIllegalArgumentException.class);
-    }
-
-    @Test
-    public void restoresToNewAtlasServiceCorrectly() {
-        RestoreRequest restoreRequest = RestoreRequest.builder()
-                .oldAtlasService(WITH_BACKUP)
-                .newAtlasService(NO_BACKUP)
-                .build();
-
-        // prepare
-        DisableNamespacesResponse successfulDisable =
-                DisableNamespacesResponse.successful(SuccessfulDisableNamespacesResponse.of(BACKUP_ID));
-        DisableNamespacesRequest request = DisableNamespacesRequest.of(ImmutableSet.of(NO_BACKUP_NS), BACKUP_ID);
-        when(timeLockManagementService.disableTimelock(authHeader, request)).thenReturn(successfulDisable);
-
-        Set<AtlasService> disabledAtlasServices =
-                atlasRestoreService.prepareRestore(ImmutableSet.of(restoreRequest), BACKUP_ID);
-        assertThat(disabledAtlasServices).containsExactly(NO_BACKUP);
-
-        // repair
-        BiConsumer<String, RangesForRepair> doNothingConsumer = (_unused1, _unused2) -> {};
-
-        Set<AtlasService> repairedAtlasServices =
-                atlasRestoreService.repairInternalTables(ImmutableSet.of(restoreRequest), doNothingConsumer);
-        assertThat(repairedAtlasServices).containsExactly(NO_BACKUP);
-
-        verify(cassandraRepairHelper).repairInternalTables(NO_BACKUP, doNothingConsumer);
-        verify(cassandraRepairHelper).repairTransactionsTables(eq(NO_BACKUP), anyList(), eq(doNothingConsumer));
-        verify(cassandraRepairHelper).cleanTransactionsTables(eq(NO_BACKUP), eq(BACKUP_START_TIMESTAMP), anyList());
-        verifyNoMoreInteractions(cassandraRepairHelper);
-
-        // complete
-        CompletedBackup completedBackup =
-                backupPersister.getCompletedBackup(WITH_BACKUP).orElseThrow();
-        CompleteRestoreRequest completeRestoreRequest =
-                CompleteRestoreRequest.of(ImmutableMap.of(NO_BACKUP_NS, completedBackup));
-        when(atlasRestoreClient.completeRestore(authHeader, completeRestoreRequest))
-                .thenReturn(CompleteRestoreResponse.of(ImmutableSet.of(NO_BACKUP_NS)));
-        ReenableNamespacesRequest reenableRequest =
-                ReenableNamespacesRequest.of(ImmutableSet.of(NO_BACKUP_NS), BACKUP_ID);
-
-        Set<AtlasService> completedAtlasServices =
-                atlasRestoreService.completeRestore(ImmutableSet.of(restoreRequest), BACKUP_ID);
-        assertThat(completedAtlasServices).containsExactly(NO_BACKUP);
-        verify(atlasRestoreClient).completeRestore(authHeader, completeRestoreRequest);
-        verify(timeLockManagementService).reenableTimelock(authHeader, reenableRequest);
-    }
-
-    @Test
-    public void prepareReturnsOnlyCompletedBackups() {
-        DisableNamespacesResponse successfulDisable =
-                DisableNamespacesResponse.successful(SuccessfulDisableNamespacesResponse.of(BACKUP_ID));
-        DisableNamespacesRequest request = DisableNamespacesRequest.of(ImmutableSet.of(WITH_BACKUP_NS), BACKUP_ID);
-        when(timeLockManagementService.disableTimelock(authHeader, request)).thenReturn(successfulDisable);
-
-        Set<AtlasService> disabledAtlasServices = atlasRestoreService.prepareRestore(
-                ImmutableSet.of(restoreRequest(WITH_BACKUP), restoreRequest(NO_BACKUP)), BACKUP_ID);
-        assertThat(disabledAtlasServices).containsExactly(WITH_BACKUP);
-    }
-
-    @Test
-    public void prepareRestoreFailsIfDisableFails() {
-        DisableNamespacesResponse failedDisable = DisableNamespacesResponse.unsuccessful(
-                UnsuccessfulDisableNamespacesResponse.of(ImmutableSet.of(WITH_BACKUP_NS), ImmutableSet.of()));
-        DisableNamespacesRequest request = DisableNamespacesRequest.of(ImmutableSet.of(WITH_BACKUP_NS), BACKUP_ID);
-        when(timeLockManagementService.disableTimelock(authHeader, request)).thenReturn(failedDisable);
-
-        Set<AtlasService> disabledAtlasServices = atlasRestoreService.prepareRestore(
-                ImmutableSet.of(restoreRequest(WITH_BACKUP), restoreRequest(NO_BACKUP)), BACKUP_ID);
-        assertThat(disabledAtlasServices).isEmpty();
-    }
-
-    @Test
-    public void prepareRestoreThrowsIfNamespacesCollide() {
-        AtlasService collidingAtlasService = AtlasService.of(ServiceId.of("c"), WITH_BACKUP.getNamespace());
-        Set<RestoreRequest> restoreRequests =
-                ImmutableSet.of(restoreRequest(WITH_BACKUP), restoreRequest(collidingAtlasService));
-        assertThatLoggableExceptionThrownBy(() -> atlasRestoreService.prepareRestore(restoreRequests, BACKUP_ID))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageContaining("Duplicated namespaces");
-    }
-
-    @Test
-    public void repairTablesThrowsIfNamespacesCollide() {
-        AtlasService collidingAtlasService = AtlasService.of(ServiceId.of("c"), WITH_BACKUP.getNamespace());
-        Set<RestoreRequest> restoreRequests =
-                ImmutableSet.of(restoreRequest(WITH_BACKUP), restoreRequest(collidingAtlasService));
-        assertThatLoggableExceptionThrownBy(
-                        () -> atlasRestoreService.repairInternalTables(restoreRequests, (_unused, _unused2) -> {}))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageContaining("Duplicated namespaces");
-    }
-
-    @Test
-    public void completeRestoreThrowsIfNamespacesCollide() {
-        AtlasService collidingAtlasService = AtlasService.of(ServiceId.of("c"), WITH_BACKUP.getNamespace());
-        Set<RestoreRequest> restoreRequests =
-                ImmutableSet.of(restoreRequest(WITH_BACKUP), restoreRequest(collidingAtlasService));
-        assertThatLoggableExceptionThrownBy(() -> atlasRestoreService.completeRestore(restoreRequests, BACKUP_ID))
-                .isInstanceOf(SafeIllegalArgumentException.class)
-                .hasMessageContaining("Duplicated namespaces");
-    }
-
-    @Test
-    public void repairsOnlyWhenBackupPresentAndDisableSuccessful() {
-        BiConsumer<String, RangesForRepair> doNothingConsumer = (_unused1, _unused2) -> {};
-
-        Set<AtlasService> repairedAtlasServices = atlasRestoreService.repairInternalTables(
-                ImmutableSet.of(restoreRequest(WITH_BACKUP), restoreRequest(NO_BACKUP)), doNothingConsumer);
-        assertThat(repairedAtlasServices).containsExactly(WITH_BACKUP);
-
-        verify(cassandraRepairHelper).repairInternalTables(WITH_BACKUP, doNothingConsumer);
-        verify(cassandraRepairHelper).repairTransactionsTables(eq(WITH_BACKUP), anyList(), eq(doNothingConsumer));
-        verify(cassandraRepairHelper).cleanTransactionsTables(eq(WITH_BACKUP), eq(BACKUP_START_TIMESTAMP), anyList());
-        verifyNoMoreInteractions(cassandraRepairHelper);
-    }
-
-    @Test
-    public void completesRestoreAfterFastForwardingTimestamp() {
-        Map<Namespace, CompletedBackup> completedBackups = ImmutableMap.of(
-                WITH_BACKUP_NS, backupPersister.getCompletedBackup(WITH_BACKUP).orElseThrow());
-
-        CompleteRestoreRequest completeRequest = CompleteRestoreRequest.of(completedBackups);
-        when(atlasRestoreClient.completeRestore(authHeader, completeRequest))
-                .thenReturn(CompleteRestoreResponse.of(ImmutableSet.of(WITH_BACKUP_NS)));
-
-        ReenableNamespacesRequest reenableRequest =
-                ReenableNamespacesRequest.of(ImmutableSet.of(WITH_BACKUP_NS), BACKUP_ID);
-
-        Set<AtlasService> successfulAtlasServices =
-                atlasRestoreService.completeRestore(ImmutableSet.of(restoreRequest(WITH_BACKUP)), BACKUP_ID);
-        assertThat(successfulAtlasServices).containsExactly(WITH_BACKUP);
-
-        InOrder inOrder = Mockito.inOrder(atlasRestoreClient, timeLockManagementService);
-        inOrder.verify(atlasRestoreClient).completeRestore(authHeader, completeRequest);
-        inOrder.verify(timeLockManagementService).reenableTimelock(authHeader, reenableRequest);
-    }
-
-    @Test
-    public void completeRestoreDoesNotRunNamespacesWithoutCompletedBackup() {
-        Set<AtlasService> atlasServices =
-                atlasRestoreService.completeRestore(ImmutableSet.of(restoreRequest(NO_BACKUP)), BACKUP_ID);
-
-        assertThat(atlasServices).isEmpty();
-        verifyNoInteractions(atlasRestoreClient);
-        verifyNoInteractions(timeLockManagementService);
-    }
-
-    @Test
-    public void completeRestoreReturnsSuccessfulNamespaces() {
-        Set<AtlasService> atlasServices = ImmutableSet.of(WITH_BACKUP, FAILING_NAMESPACE);
-        Map<Namespace, CompletedBackup> completedBackups = KeyedStream.of(atlasServices)
-                .map(backupPersister::getCompletedBackup)
-                .flatMap(Optional::stream)
-                .mapKeys(AtlasService::getNamespace)
-                .collectToMap();
-
-        CompleteRestoreRequest request = CompleteRestoreRequest.of(completedBackups);
-        when(atlasRestoreClient.completeRestore(authHeader, request))
-                .thenReturn(CompleteRestoreResponse.of(ImmutableSet.of(WITH_BACKUP_NS)));
-
-        ReenableNamespacesRequest reenableRequest =
-                ReenableNamespacesRequest.of(ImmutableSet.of(WITH_BACKUP_NS), BACKUP_ID);
-
-        Set<RestoreRequest> requests =
-                atlasServices.stream().map(this::restoreRequest).collect(Collectors.toSet());
-        Set<AtlasService> successfulAtlasServices = atlasRestoreService.completeRestore(requests, BACKUP_ID);
-        assertThat(successfulAtlasServices).containsExactly(WITH_BACKUP);
-        verify(atlasRestoreClient).completeRestore(authHeader, request);
-        verify(timeLockManagementService).reenableTimelock(authHeader, reenableRequest);
-    }
-
-    private RestoreRequest restoreRequest(AtlasService atlasService) {
-        return RestoreRequest.builder()
-                .oldAtlasService(atlasService)
-                .newAtlasService(atlasService)
-                .build();
-    }
-}u}(jt (9bbb36cca1b3a5a596180e5c3f49e2952cf6ded4ju ^atlasdb-backup/src/test/java/com/palantir/atlasdb/backup/CoordinationServiceUtilitiesTest.javaju removedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceUtilitiesTest.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceUtilitiesTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FCoordinationServiceUtilitiesTest.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X/  @@ -1,222 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.datastax.driver.core.policies.DefaultRetryPolicy;
-import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableRangeMap;
-import com.google.common.collect.Range;
-import com.google.common.collect.RangeMap;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions1TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions2TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.coordination.ValueAndBound;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadata;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import com.palantir.atlasdb.internalschema.TimestampPartitioningMap;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.timestamp.FullyBoundedTimestampRange;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import org.junit.Test;
-
-public final class CoordinationServiceUtilitiesTest {
-    private static final DefaultRetryPolicy POLICY = DefaultRetryPolicy.INSTANCE;
-
-    private static final long IMMUTABLE_TIMESTAMP = 100L;
-    private static final long FASTFORWARD_TIMESTAMP = 400L;
-
-    // During restores, we need to clean transactions tables in between two timestamps.
-    // It's possible that, in between _those_ timestamps, AtlasDB changed which transactions
-    // table to use. This is recorded in InternalSchemaMetadata.
-    //
-    // In this test, we simulate a switch from transactions1 to transactions2 at timestamp 10
-    // We should return the [5-10] range for transactions1, and the (10-15] range for transactions2.
-    @Test
-    public void correctlyBoundsTimestampsForRestore() {
-        long lowerBoundForRestore = 5L;
-        long maxTimestampForTransactions1 = 10L;
-        long upperBoundForRestore = 15L;
-
-        RangeMap<Long, Integer> rangeMap = ImmutableRangeMap.<Long, Integer>builder()
-                .put(Range.closed(1L, maxTimestampForTransactions1), 1)
-                .put(Range.greaterThan(maxTimestampForTransactions1), 2)
-                .build();
-        TimestampPartitioningMap<Integer> timestampsMap = TimestampPartitioningMap.of(rangeMap);
-        InternalSchemaMetadata metadata = InternalSchemaMetadata.builder()
-                .timestampToTransactionsTableSchemaVersion(timestampsMap)
-                .build();
-        ValueAndBound<InternalSchemaMetadata> value = ValueAndBound.of(metadata, 1000L);
-        InternalSchemaMetadataState state = InternalSchemaMetadataState.of(value);
-
-        Map<FullyBoundedTimestampRange, Integer> boundedMap = CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                Optional.of(state), upperBoundForRestore, lowerBoundForRestore);
-
-        Map<FullyBoundedTimestampRange, Integer> expected = ImmutableMap.of(
-                FullyBoundedTimestampRange.of(Range.closed(lowerBoundForRestore, maxTimestampForTransactions1)), 1,
-                FullyBoundedTimestampRange.of(Range.openClosed(maxTimestampForTransactions1, upperBoundForRestore)), 2);
-
-        assertThat(boundedMap).hasSize(2);
-        assertThat(boundedMap).containsExactlyInAnyOrderEntriesOf(expected);
-    }
-
-    @Test
-    public void noCoordServiceWithImmutableCreatesRangeImmutableToFfWithSchema1() {
-        List<TransactionsTableInteraction> txnInteractions =
-                TransactionsTableInteraction.getTransactionTableInteractions(
-                        CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                                Optional.empty(), FASTFORWARD_TIMESTAMP, IMMUTABLE_TIMESTAMP),
-                        POLICY);
-
-        assertThat(txnInteractions).hasSize(1);
-        assertThat(txnInteractions.get(0))
-                .isInstanceOf(Transactions1TableInteraction.class)
-                .extracting(TransactionsTableInteraction::getTimestampRange)
-                .isEqualTo(FullyBoundedTimestampRange.of(Range.closed(IMMUTABLE_TIMESTAMP, FASTFORWARD_TIMESTAMP)));
-    }
-
-    @Test
-    public void immutablePresentThenStartAtImmutable() {
-        Map<Range<Long>, Integer> rangesWithSchemas =
-                ImmutableMap.of(Range.atLeast(TransactionConstants.LOWEST_POSSIBLE_START_TS), 1);
-        final long coordServiceBound = FASTFORWARD_TIMESTAMP + 100L;
-        Optional<InternalSchemaMetadataState> coordService = createCoordService(rangesWithSchemas, coordServiceBound);
-
-        List<TransactionsTableInteraction> txnInteractions =
-                TransactionsTableInteraction.getTransactionTableInteractions(
-                        CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                                coordService, FASTFORWARD_TIMESTAMP, IMMUTABLE_TIMESTAMP),
-                        POLICY);
-
-        assertThat(txnInteractions).hasSize(1);
-        assertThat(txnInteractions.get(0))
-                .isInstanceOf(Transactions1TableInteraction.class)
-                .extracting(TransactionsTableInteraction::getTimestampRange)
-                .isEqualTo(FullyBoundedTimestampRange.of(Range.closed(IMMUTABLE_TIMESTAMP, FASTFORWARD_TIMESTAMP)));
-    }
-
-    @Test
-    public void coordServiceBoundLessThanFfStopsAtBound() {
-        Map<Range<Long>, Integer> rangesWithSchemas =
-                ImmutableMap.of(Range.atLeast(TransactionConstants.LOWEST_POSSIBLE_START_TS), 1);
-        final long coordServiceBound = FASTFORWARD_TIMESTAMP - 10L;
-        Optional<InternalSchemaMetadataState> coordService = createCoordService(rangesWithSchemas, coordServiceBound);
-
-        List<TransactionsTableInteraction> txnInteractions =
-                TransactionsTableInteraction.getTransactionTableInteractions(
-                        CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                                coordService, FASTFORWARD_TIMESTAMP, IMMUTABLE_TIMESTAMP),
-                        POLICY);
-
-        assertThat(txnInteractions).hasSize(1);
-        assertThat(txnInteractions.get(0))
-                .isInstanceOf(Transactions1TableInteraction.class)
-                .extracting(TransactionsTableInteraction::getTimestampRange)
-                .isEqualTo(FullyBoundedTimestampRange.of(Range.closed(IMMUTABLE_TIMESTAMP, coordServiceBound)));
-    }
-
-    @Test
-    public void coordServiceBoundGreaterThanFfStopsAtFf() {
-        Map<Range<Long>, Integer> rangesWithSchemas =
-                ImmutableMap.of(Range.atLeast(TransactionConstants.LOWEST_POSSIBLE_START_TS), 1);
-        final long coordServiceBound = FASTFORWARD_TIMESTAMP + 1000L;
-        Optional<InternalSchemaMetadataState> coordService = createCoordService(rangesWithSchemas, coordServiceBound);
-
-        List<TransactionsTableInteraction> txnInteractions =
-                TransactionsTableInteraction.getTransactionTableInteractions(
-                        CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                                coordService, FASTFORWARD_TIMESTAMP, IMMUTABLE_TIMESTAMP),
-                        POLICY);
-
-        assertThat(txnInteractions).hasSize(1);
-        assertThat(txnInteractions.get(0))
-                .isInstanceOf(Transactions1TableInteraction.class)
-                .extracting(TransactionsTableInteraction::getTimestampRange)
-                .isEqualTo(FullyBoundedTimestampRange.of(Range.closed(IMMUTABLE_TIMESTAMP, FASTFORWARD_TIMESTAMP)));
-    }
-
-    @Test
-    public void cleanMultipleRangesWithSchemasWithinBounds() {
-        final long migrateToTxns2 = IMMUTABLE_TIMESTAMP + FASTFORWARD_TIMESTAMP / 2;
-        Map<Range<Long>, Integer> rangesWithSchemas = ImmutableMap.of(
-                Range.closedOpen(TransactionConstants.LOWEST_POSSIBLE_START_TS, migrateToTxns2), 1,
-                Range.atLeast(migrateToTxns2), 2);
-        final long coordServiceBound = FASTFORWARD_TIMESTAMP + 1000L;
-        Optional<InternalSchemaMetadataState> coordService = createCoordService(rangesWithSchemas, coordServiceBound);
-
-        List<TransactionsTableInteraction> txnInteractions =
-                TransactionsTableInteraction.getTransactionTableInteractions(
-                        CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                                coordService, FASTFORWARD_TIMESTAMP, IMMUTABLE_TIMESTAMP),
-                        POLICY);
-
-        assertThat(txnInteractions).hasSize(2);
-        TransactionsTableInteraction txn1 = txnInteractions.stream()
-                .filter(txn -> txn instanceof Transactions1TableInteraction)
-                .findFirst()
-                .get();
-        TransactionsTableInteraction txn2 = txnInteractions.stream()
-                .filter(txn -> txn instanceof Transactions2TableInteraction)
-                .findFirst()
-                .get();
-        assertThat(txn1)
-                .extracting(TransactionsTableInteraction::getTimestampRange)
-                .isEqualTo(FullyBoundedTimestampRange.of(Range.closedOpen(IMMUTABLE_TIMESTAMP, migrateToTxns2)));
-        assertThat(txn2)
-                .extracting(TransactionsTableInteraction::getTimestampRange)
-                .isEqualTo(FullyBoundedTimestampRange.of(Range.closed(migrateToTxns2, FASTFORWARD_TIMESTAMP)));
-    }
-
-    @Test
-    public void skipRangesWithSchemasOutsideOfBounds() {
-        final long migrateToTxns2 = TransactionConstants.LOWEST_POSSIBLE_START_TS + IMMUTABLE_TIMESTAMP / 2;
-        Map<Range<Long>, Integer> rangesWithSchemas = ImmutableMap.of(
-                Range.closedOpen(TransactionConstants.LOWEST_POSSIBLE_START_TS, migrateToTxns2), 1,
-                Range.atLeast(migrateToTxns2), 2);
-        final long coordServiceBound = FASTFORWARD_TIMESTAMP + 1000L;
-        Optional<InternalSchemaMetadataState> coordService = createCoordService(rangesWithSchemas, coordServiceBound);
-
-        List<TransactionsTableInteraction> txnInteractions =
-                TransactionsTableInteraction.getTransactionTableInteractions(
-                        CoordinationServiceUtilities.getCoordinationMapOnRestore(
-                                coordService, FASTFORWARD_TIMESTAMP, IMMUTABLE_TIMESTAMP),
-                        POLICY);
-
-        assertThat(txnInteractions).hasSize(1);
-        assertThat(txnInteractions.get(0))
-                .isInstanceOf(Transactions2TableInteraction.class)
-                .extracting(TransactionsTableInteraction::getTimestampRange)
-                .isEqualTo(FullyBoundedTimestampRange.of(Range.closed(IMMUTABLE_TIMESTAMP, FASTFORWARD_TIMESTAMP)));
-    }
-
-    private static Optional<InternalSchemaMetadataState> createCoordService(
-            Map<Range<Long>, Integer> rangesWithSchemas, long bound) {
-        ImmutableRangeMap.Builder<Long, Integer> rangeMapBuilder = ImmutableRangeMap.builder();
-        rangesWithSchemas.forEach(rangeMapBuilder::put);
-        RangeMap<Long, Integer> rangeMap = rangeMapBuilder.build();
-
-        InternalSchemaMetadata internalSchemaMetadata = InternalSchemaMetadata.builder()
-                .timestampToTransactionsTableSchemaVersion(TimestampPartitioningMap.of(rangeMap))
-                .build();
-
-        return Optional.of(
-                InternalSchemaMetadataState.of(Optional.of(ValueAndBound.of(internalSchemaMetadata, bound))));
-    }
-}u	     }(jt (aab479b9713b64a03d045072bc027df436703fb5ju Yatlasdb-backup/src/test/java/com/palantir/atlasdb/backup/ExternalBackupPersisterTest.javaju removedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FExternalBackupPersisterTest.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FExternalBackupPersisterTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FExternalBackupPersisterTest.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X  @@ -1,138 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.InProgressBackupToken;
-import com.palantir.atlasdb.backup.api.ServiceId;
-import com.palantir.atlasdb.coordination.ValueAndBound;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadata;
-import com.palantir.atlasdb.internalschema.InternalSchemaMetadataState;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.lock.v2.LockToken;
-import java.io.ByteArrayInputStream;
-import java.io.File;
-import java.io.IOException;
-import java.nio.charset.StandardCharsets;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.StandardCopyOption;
-import java.util.UUID;
-import org.junit.Before;
-import org.junit.Rule;
-import org.junit.Test;
-import org.junit.rules.TemporaryFolder;
-
-public class ExternalBackupPersisterTest {
-    private static final Namespace NAMESPACE = Namespace.of("broken_namespace");
-    private static final AtlasService ATLAS_SERVICE = AtlasService.of(ServiceId.of("service"), NAMESPACE);
-
-    @Rule
-    public TemporaryFolder tempFolder = new TemporaryFolder();
-
-    private ExternalBackupPersister externalBackupPersister;
-
-    @Before
-    public void setUp() {
-        externalBackupPersister = new ExternalBackupPersister(this::getPath);
-    }
-
-    @Test
-    public void getSchemaMetadataWhenEmpty() {
-        assertThat(externalBackupPersister.getSchemaMetadata(ATLAS_SERVICE)).isEmpty();
-    }
-
-    @Test
-    public void putAndGetSchemaMetadata() {
-        InternalSchemaMetadata internalSchemaMetadata = InternalSchemaMetadata.defaultValue();
-        InternalSchemaMetadataState state =
-                InternalSchemaMetadataState.of(ValueAndBound.of(internalSchemaMetadata, 100L));
-        externalBackupPersister.storeSchemaMetadata(ATLAS_SERVICE, state);
-
-        assertThat(externalBackupPersister.getSchemaMetadata(ATLAS_SERVICE)).contains(state);
-    }
-
-    @Test
-    public void getImmutableTimestampWhenEmpty() {
-        assertThat(externalBackupPersister.getImmutableTimestamp(ATLAS_SERVICE)).isEmpty();
-    }
-
-    @Test
-    public void putAndGetImmutableTimestamp() {
-        long immutableTimestamp = 1337L;
-        InProgressBackupToken inProgressBackupToken = InProgressBackupToken.builder()
-                .namespace(NAMESPACE)
-                .immutableTimestamp(immutableTimestamp)
-                .backupStartTimestamp(3141L)
-                .lockToken(LockToken.of(UUID.randomUUID()))
-                .build();
-        externalBackupPersister.storeImmutableTimestamp(ATLAS_SERVICE, inProgressBackupToken);
-        assertThat(externalBackupPersister.getImmutableTimestamp(ATLAS_SERVICE)).contains(immutableTimestamp);
-    }
-
-    @Test
-    public void getCompletedBackupWhenEmpty() {
-        assertThat(externalBackupPersister.getCompletedBackup(ATLAS_SERVICE)).isEmpty();
-    }
-
-    @Test
-    public void putAndGetCompletedBackup() {
-        CompletedBackup completedBackup = CompletedBackup.builder()
-                .namespace(NAMESPACE)
-                .immutableTimestamp(1L)
-                .backupStartTimestamp(2L)
-                .backupEndTimestamp(3L)
-                .build();
-        externalBackupPersister.storeCompletedBackup(ATLAS_SERVICE, completedBackup);
-
-        assertThat(externalBackupPersister.getCompletedBackup(ATLAS_SERVICE)).contains(completedBackup);
-    }
-
-    @Test
-    public void testLegacyCasing() throws IOException {
-        String legacyState = "{\"value\":{\"value\":{\"timestampToTransactionsTableSchemaVersion\":{\"timestampMappings"
-            + "\":[{\"longRange\":{\"lower-endpoint\":1316020054,\"lower-bound-type\":\"CLOSED\"},\"value\":3},{\"longRange\":{\"lower-endpoint\":1,\"lower-bound-type\":\"CLOSED\",\"upper-endpoint\":1316020054,\"upper-bound-type\":\"OPEN\"},\"value\":1}]}},\"bound\":1318613869}}";
-        File tempFile = tempFolder.newFile();
-        Files.copy(
-                new ByteArrayInputStream(legacyState.getBytes(StandardCharsets.UTF_8)),
-                tempFile.toPath(),
-                StandardCopyOption.REPLACE_EXISTING);
-
-        InternalSchemaMetadataState parsed = externalBackupPersister
-                .loadFromFile(ATLAS_SERVICE, tempFile, InternalSchemaMetadataState.class)
-                .get();
-        assertThat(parsed).isNotNull();
-    }
-
-    private Path getPath(AtlasService atlasService) {
-        try {
-            return getOrCreateFolder(atlasService).toPath();
-        } catch (IOException ex) {
-            throw new RuntimeException(ex);
-        }
-    }
-
-    private File getOrCreateFolder(AtlasService atlasService) throws IOException {
-        File file = new File(tempFolder.getRoot(), atlasService.getNamespace().value());
-        return file.exists()
-                ? file
-                : tempFolder.newFolder(atlasService.getNamespace().value());
-    }
-}u}(jt (ca6ee9cea8ec189a088d50559325d4e84ff8ad09ju Ratlasdb-backup/src/test/resources/mockito-extensions/org.mockito.plugins.MockMakerju removedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Ftest%2Fresources%2Fmockito-extensions%2Forg.mockito.plugins.MockMakerj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-backup%2Fsrc%2Ftest%2Fresources%2Fmockito-extensions%2Forg.mockito.plugins.MockMakerj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-backup%2Fsrc%2Ftest%2Fresources%2Fmockito-extensions%2Forg.mockito.plugins.MockMaker?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u <@@ -1 +0,0 @@
-mock-maker-inline
\ No newline at end of fileu}(jt (c8f5ec6d41d45b1db43cb98d871dd8aaff4fbe06ju atlasdb-buggify/build.gradleju addedju Kju K j u Kj!u phttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fbuild.gradlej#u ohttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fbuild.gradlej%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fbuild.gradle?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X`  @@ -0,0 +1,12 @@
+
+apply from: "../gradle/shared.gradle"
+
+dependencies {
+    implementation 'com.google.guava:guava'
+    testImplementation 'junit:junit'
+    testImplementation 'org.assertj:assertj-core'
+    testImplementation('org.jmock:jmock') {
+      exclude group: 'org.hamcrest'
+    }
+    testImplementation 'org.mockito:mockito-core'
+}u}(jt (7ed6f31d91209eb01a70cc1992699c7d6b7590bdju Tatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/AlwaysBuggifyFactory.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2FAlwaysBuggifyFactory.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X.  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggify;
+
+public enum AlwaysBuggifyFactory implements BuggifyFactory {
+    INSTANCE;
+
+    @Override
+    public Buggify maybe(double _probability) {
+        return DefaultBuggify.INSTANCE;
+    }
+}u}(jt (b4b3fdb6c8a3dbc046c441a7d9341e93b8857c14ju Katlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/Buggify.javaju addedju K'ju K j u K'j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X9  @@ -0,0 +1,39 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+/**
+ * Instances of this class could vary in implementation, such that they may perform no action {@link com.palantir.atlasdb.buggify.impl.NoOpBuggify} or
+ * always perform the action {@link com.palantir.atlasdb.buggify.impl.DefaultBuggify}. The idea here is that a
+ * downstream users of this class can easily swap out their {@link BuggifyFactory} to change the behavior of their
+ * class, without having to change the implementation of their class. This is useful for tests, as we can force the
+ * behavior of never running the provided runnable, or always running the provided runnable.
+ * <p>
+ * See https://apple.github.io/foundationdb/client-testing.html for more information.
+ */
+public interface Buggify {
+    /**
+     * Maybe runs the provided runnable, depending on the instance of the class.
+     */
+    void run(Runnable runnable);
+
+    /**
+     * Returns true if this instance of buggify would perform an action if {@link #run Run} would execute the
+     * provided runnable. This is useful if you wish to produce a boolean that will be skewed towards true or false.
+     */
+    boolean asBoolean();
+}u}(jt (0ed48b1c56bc0efc8ac5be656900e3c3a38c67faju Ratlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/BuggifyFactory.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u Xy  @@ -0,0 +1,24 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+public interface BuggifyFactory {
+    /**
+     * The probability of returning a buggify instance which performs actions.
+     */
+    Buggify maybe(double probability);
+}u}(jt (6f3353a1c06e3518031faa27f5e05286e635a2dbju eatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/NativeSamplingSecureRandomFactory.javaju addedju K!ju K j u K!j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FNativeSamplingSecureRandomFactory.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FNativeSamplingSecureRandomFactory.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FNativeSamplingSecureRandomFactory.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+import java.security.SecureRandom;
+
+public interface NativeSamplingSecureRandomFactory {
+    /**
+     * Creates an instance of {@link SecureRandom} that, as far as is supported by the system, produces both seed and
+     * random numbers from an external source.
+     * <p>
+     * The motivation for this is for running tests in an environment (such as that provided by Antithesis) where
+     * system-provided randomness is deterministic, and can be dynamically controlled by the fuzzer to explore the
+     * state space of the system more efficiently. We thus want to ensure that the random number generator we use
+     * makes queries to the system-provided randomness source not just for seeding, but also on every generation
+     * of a random number.
+     */
+    SecureRandom create();
+}u}(jt (bf47a2abcceffe92e42715b2377315e57a40f763ju Satlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggify.javaju addedju K!ju K j u K!j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+
+public enum DefaultBuggify implements Buggify {
+    INSTANCE;
+
+    @Override
+    public void run(Runnable runnable) {
+        runnable.run();
+    }
+
+    @Override
+    public boolean asBoolean() {
+        return true;
+    }
+}u}(jt (4ca0edd6554c8b49ac329f94f8407ea5328fca20ju Zatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactory.javaju addedju K/ju K j u K/j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,47 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import java.security.SecureRandom;
+import java.util.function.DoubleSupplier;
+
+public final class DefaultBuggifyFactory implements BuggifyFactory {
+    private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+    public static final BuggifyFactory INSTANCE = new DefaultBuggifyFactory();
+
+    private final DoubleSupplier doubleSupplier;
+
+    @VisibleForTesting
+    DefaultBuggifyFactory(DoubleSupplier doubleSupplier) {
+        this.doubleSupplier = doubleSupplier;
+    }
+
+    private DefaultBuggifyFactory() {
+        this(SECURE_RANDOM::nextDouble);
+    }
+
+    @Override
+    public Buggify maybe(double probability) {
+        if (doubleSupplier.getAsDouble() < probability) {
+            return DefaultBuggify.INSTANCE;
+        }
+        return NoOpBuggify.INSTANCE;
+    }
+}u}(jt (1f3a1114799a4b99ced3a549da79307fe3e7b204ju matlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultNativeSamplingSecureRandomFactory.javaju addedju K,ju K j u K,j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultNativeSamplingSecureRandomFactory.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultNativeSamplingSecureRandomFactory.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultNativeSamplingSecureRandomFactory.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.NativeSamplingSecureRandomFactory;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.security.SecureRandom;
+
+public enum DefaultNativeSamplingSecureRandomFactory implements NativeSamplingSecureRandomFactory {
+    INSTANCE;
+
+    private static final SafeLogger log = SafeLoggerFactory.get(DefaultNativeSamplingSecureRandomFactory.class);
+
+    @Override
+    public SecureRandom create() {
+        try {
+            // The NativePRNG algorithm reads from /dev/random or /dev/urandom for generating both seed and random
+            // numbers, which satisfies the requirements of the interface (and both of these files are fuzzer-controlled
+            // in Antithesis). This string is a reserved identifier for the algorithm, following
+            // https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html#securerandom-number-generation-algorithms
+            return SecureRandom.getInstance("NativePRNG");
+        } catch (Exception e) {
+            log.warn(
+                    "Failed to initialize fully native secure random instance, letting the Java runtime select for us",
+                    e);
+            return new SecureRandom();
+        }
+    }
+}u}(jt (7ffdf499b3babaa3d0997abc88e28cb57de2aa01ju Patlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggify.javaju addedju K!ju K j u K!j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+
+public enum NoOpBuggify implements Buggify {
+    INSTANCE;
+
+    @Override
+    public void run(Runnable _runnable) {
+        // do nothing
+    }
+
+    @Override
+    public boolean asBoolean() {
+        return false;
+    }
+}u}(jt (bf4172a8a7e4e4576cacc81f228d95963322a41dju Watlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyFactory.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,29 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+
+public enum NoOpBuggifyFactory implements BuggifyFactory {
+    INSTANCE;
+
+    @Override
+    public Buggify maybe(double _probability) {
+        return NoOpBuggify.INSTANCE;
+    }
+}u}(jt (a7db5aa15eb7d98f2bcc738671a8f30fdfb489adju ^atlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactoryTest.javaju addedju K+ju K j u K+j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X#  @@ -0,0 +1,43 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import org.junit.Test;
+
+public class DefaultBuggifyFactoryTest {
+    @Test
+    public void maybeReturnsDefaultWhenMaxProbability() {
+        assertThat(DefaultBuggifyFactory.INSTANCE.maybe(1.0)).isSameAs(DefaultBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsNoOpWhenNeverProbability() {
+        assertThat(DefaultBuggifyFactory.INSTANCE.maybe(0.0)).isSameAs(NoOpBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsNoOpWhenBelowOrEqualToProbability() {
+        assertThat(new DefaultBuggifyFactory(() -> 0.50).maybe(0.50)).isSameAs(NoOpBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsDefaultWhenAboveProbability() {
+        assertThat(new DefaultBuggifyFactory(() -> 0.49).maybe(0.50)).isSameAs(DefaultBuggify.INSTANCE);
+    }
+}u}(jt (28a8b18ae59b101e1489b1e086bbac7d63318767ju Watlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyTest.javaju addedju K%ju K j u K%j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.verify;
+
+import org.junit.Test;
+
+public class DefaultBuggifyTest {
+    @Test
+    public void runAlwaysExecutes() {
+        Runnable runnable = mock(Runnable.class);
+        DefaultBuggify.INSTANCE.run(runnable);
+        verify(runnable).run();
+    }
+
+    @Test
+    public void asBooleanReturnsTrue() {
+        assertThat(DefaultBuggify.INSTANCE.asBoolean()).isTrue();
+    }
+}u}(jt (c6d5d05237311ecd06793772e3b673f5836c8896ju Tatlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyTest.javaju addedju K&ju K j u K&j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.never;
+import static org.mockito.Mockito.verify;
+
+import org.junit.Test;
+
+public class NoOpBuggifyTest {
+    @Test
+    public void runNeverExecutes() {
+        Runnable runnable = mock(Runnable.class);
+        NoOpBuggify.INSTANCE.run(runnable);
+        verify(runnable, never()).run();
+    }
+
+    @Test
+    public void asBooleanReturnsFalse() {
+        assertThat(NoOpBuggify.INSTANCE.asBoolean()).isFalse();
+    }
+}u}(jt (8fce8e6875711ffb9f2690858b1cbe9871979bd5ju 0atlasdb-cassandra-integration-tests/build.gradleju modifiedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra-integration-tests%2Fbuild.gradlej#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra-integration-tests%2Fbuild.gradlej%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fbuild.gradle?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X#  @@ -56,6 +56,24 @@ test {
     exclude '**/CassandraKeyValueServiceSweepTaskRunnerIntegrationTest.class'
 }
 
+task testSubset1(type: Test) {
+    include '**/CassandraKeyValueServiceTableCreationIntegrationTest.class'
+    include '**/CassandraKeyValueServiceTableManipulationIntegrationTest.class'
+    include '**/CassandraKeyValueServiceTransactionIntegrationTest.class'
+    include '**/CassandraKvsAsyncFallbackMechanismsTests.class'
+    include '**/CassandraKvsSerializableTransactionTest.class'
+}
+
+task testSubset2(type: Test) {
+    include '**/*Test.class'
+    include '**/*Tests.class'
+    exclude '**/CassandraKeyValueServiceTableCreationIntegrationTest.class'
+    exclude '**/CassandraKeyValueServiceTableManipulationIntegrationTest.class'
+    exclude '**/CassandraKeyValueServiceTransactionIntegrationTest.class'
+    exclude '**/CassandraKvsAsyncFallbackMechanismsTests.class'
+    exclude '**/CassandraKvsSerializableTransactionTest.class'
+}
+
 tasks.withType(Test) {
     testLogging {
         // set options for log level LIFECYCLEu}(jt (617049a9e7ba3c0f72ea61d2d980892baf478d89ju zatlasdb-cassandra-integration-tests/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraBackedPueTableTest.javaju modifiedju Kju K
j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraBackedPueTableTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraBackedPueTableTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraBackedPueTableTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -35,13 +35,12 @@
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
-import java.util.Optional;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.ExecutorService;
 import java.util.stream.Collectors;
@@ -93,16 +92,12 @@ public void getDoesNotLeakExceptionsInRaceConditions() throws ExecutionException
             }
             Futures.allAsList(reads).get().forEach(singleResult -> {
                 for (long ts : singlePartition) {
-                    assertCommitTimestampAbsentOrEqualToStartTimestamp(singleResult, ts);
+                    TransactionStatus status = singleResult.get(ts);
+                    if (status instanceof Committed) {
+                        assertThat(status).isEqualTo(TransactionStatus.committed(ts));
+                    }
                 }
             });
         }
     }
-
-    private static void assertCommitTimestampAbsentOrEqualToStartTimestamp(
-            Map<Long, TransactionStatus> result, long ts) {
-        Optional.ofNullable(result.get(ts))
-                .flatMap(TransactionStatuses::getCommitTimestamp)
-                .ifPresent(commitTs -> assertThat(ts).isEqualTo(commitTs));
-    }
 }u}(jt (87ef9c26965f3fbebf2004d1a2b09b55580f6a3bju Qatlasdb-cassandra/src/main/java/com/palantir/atlasdb/backup/ClosingKvsRunner.javaju removedju K ju K$j u K$j!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FClosingKvsRunner.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FClosingKvsRunner.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FClosingKvsRunner.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X  @@ -1,36 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import java.util.function.Function;
-
-final class ClosingKvsRunner implements KvsRunner {
-    private final Function<AtlasService, KeyValueService> keyValueServiceFactory;
-
-    ClosingKvsRunner(Function<AtlasService, KeyValueService> keyValueServiceFactory) {
-        this.keyValueServiceFactory = keyValueServiceFactory;
-    }
-
-    @Override
-    public <T> T run(AtlasService atlasService, Function<KeyValueService, T> function) {
-        try (KeyValueService kvs = keyValueServiceFactory.apply(atlasService)) {
-            return function.apply(kvs);
-        }
-    }
-}u}(jt (885d551251d03ef385e1174e0842d306026bcd76ju Jatlasdb-cassandra/src/main/java/com/palantir/atlasdb/backup/KvsRunner.javaju removedju K ju K"j u K"j!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FKvsRunner.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FKvsRunner.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FKvsRunner.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X  @@ -1,34 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.transaction.api.TransactionManager;
-import java.util.function.Function;
-
-public interface KvsRunner {
-    <T> T run(AtlasService atlasService, Function<KeyValueService, T> function);
-
-    static KvsRunner create(Function<AtlasService, KeyValueService> kvsFactory) {
-        return new ClosingKvsRunner(kvsFactory);
-    }
-
-    static KvsRunner create(TransactionManager txnManager) {
-        return new NonClosingKvsRunner(txnManager);
-    }
-}u}(jt (b4a95d23a94eec5e3c3e926cae077f89ed7257cdju Tatlasdb-cassandra/src/main/java/com/palantir/atlasdb/backup/NonClosingKvsRunner.javaju removedju K ju K#j u K#j!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FNonClosingKvsRunner.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FNonClosingKvsRunner.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FNonClosingKvsRunner.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X(  @@ -1,35 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.transaction.api.TransactionManager;
-import java.util.function.Function;
-
-final class NonClosingKvsRunner implements KvsRunner {
-    private final TransactionManager txnManager;
-
-    NonClosingKvsRunner(TransactionManager txnManager) {
-        this.txnManager = txnManager;
-    }
-
-    @Override
-    public <T> T run(AtlasService _atlasService, Function<KeyValueService, T> function) {
-        return function.apply(txnManager.getKeyValueService());
-    }
-}u}(jt (e55a96f4c1411ecdb5d2470ca391d5190e22b738ju `atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/CassandraRepairHelper.javaju removedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCassandraRepairHelper.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCassandraRepairHelper.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCassandraRepairHelper.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X'#  @@ -1,181 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import com.github.benmanes.caffeine.cache.Caffeine;
-import com.github.benmanes.caffeine.cache.LoadingCache;
-import com.github.benmanes.caffeine.cache.RemovalCause;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.RangeSet;
-import com.google.common.collect.Sets;
-import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.backup.KvsRunner;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
-import com.palantir.atlasdb.cassandra.ReloadingCloseableContainer;
-import com.palantir.atlasdb.cassandra.ReloadingCloseableContainerImpl;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.keyvalue.cassandra.async.client.creation.ClusterFactory.CassandraClusterConfig;
-import com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService;
-import com.palantir.atlasdb.schema.TargetedSweepTables;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import com.palantir.refreshable.Refreshable;
-import java.net.InetSocketAddress;
-import java.time.Duration;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.function.BiConsumer;
-import java.util.function.Function;
-import java.util.stream.Stream;
-
-public class CassandraRepairHelper {
-    private static final SafeLogger log = SafeLoggerFactory.get(CassandraRepairHelper.class);
-
-    private static final Set<TableReference> TABLES_TO_REPAIR =
-            Sets.union(ImmutableSet.of(AtlasDbConstants.COORDINATION_TABLE), TargetedSweepTables.REPAIR_ON_RESTORE);
-
-    private final Function<AtlasService, CassandraClusterConfig> cassandraClusterConfigFactory;
-    private final Function<AtlasService, Refreshable<CassandraServersConfig>> refreshableCassandraServersConfigFactory;
-    private final LoadingCache<AtlasService, ReloadingCloseableContainer<CqlCluster>> cqlClusterContainers;
-    private final KvsRunner kvsRunner;
-
-    public CassandraRepairHelper(
-            KvsRunner kvsRunner,
-            Function<AtlasService, CassandraClusterConfig> cassandraClusterConfigFactory,
-            Function<AtlasService, Refreshable<CassandraServersConfig>> refreshableCassandraServersConfigFactory) {
-        this.kvsRunner = kvsRunner;
-        this.cassandraClusterConfigFactory = cassandraClusterConfigFactory;
-        this.refreshableCassandraServersConfigFactory = refreshableCassandraServersConfigFactory;
-
-        this.cqlClusterContainers = Caffeine.newBuilder()
-                .maximumSize(300)
-                .expireAfterAccess(Duration.ofMinutes(30L))
-                .removalListener(CassandraRepairHelper::onRemoval)
-                .build(this::getCqlClusterUncached);
-    }
-
-    private static void onRemoval(
-            AtlasService atlasService,
-            ReloadingCloseableContainer<CqlCluster> reloadingCloseableContainer,
-            RemovalCause _removalCause) {
-        try {
-            reloadingCloseableContainer.close();
-        } catch (Exception e) {
-            log.warn("Failed to close cql cluster container", SafeArg.of("atlasService", atlasService), e);
-        }
-    }
-
-    private ReloadingCloseableContainer<CqlCluster> getCqlClusterUncached(AtlasService atlasService) {
-        log.info("Creating CQL cluster for Atlas service", SafeArg.of("atlasService", atlasService));
-        CassandraClusterConfig cassandraClusterConfig = cassandraClusterConfigFactory.apply(atlasService);
-        Refreshable<CassandraServersConfig> cassandraServersConfigRefreshable =
-                refreshableCassandraServersConfigFactory.apply(atlasService);
-
-        return ReloadingCloseableContainerImpl.of(
-                cassandraServersConfigRefreshable,
-                cassandraServersConfig ->
-                        CqlCluster.create(cassandraClusterConfig, cassandraServersConfig, atlasService.getNamespace()));
-    }
-
-    public void repairInternalTables(AtlasService atlasService, BiConsumer<String, RangesForRepair> repairTable) {
-        kvsRunner.run(atlasService, kvs -> repairInternalTables(kvs, atlasService, repairTable));
-    }
-
-    public Void repairInternalTables(
-            KeyValueService kvs, AtlasService atlasService, BiConsumer<String, RangesForRepair> repairTable) {
-        CqlCluster cqlCluster = cqlClusterContainers.get(atlasService).get();
-        KeyedStream.of(getTableNamesToRepair(kvs))
-                .map(tableName -> getRangesToRepair(cqlCluster, atlasService, tableName))
-                .forEach(repairTable);
-        return null;
-    }
-
-    private static Stream<String> getTableNamesToRepair(KeyValueService kvs) {
-        return kvs.getAllTableNames().stream()
-                .filter(TABLES_TO_REPAIR::contains)
-                .map(TableReference::getTableName);
-    }
-
-    public void repairTransactionsTables(
-            AtlasService atlasService,
-            List<TransactionsTableInteraction> transactionsTableInteractions,
-            BiConsumer<String, RangesForRepair> repairTable) {
-        Map<String, RangesForRepair> tokenRangesForRepair =
-                getRangesForRepairByTable(atlasService, transactionsTableInteractions);
-
-        tokenRangesForRepair.forEach((table, ranges) -> {
-            log.info(
-                    "Repairing ranges for table",
-                    SafeArg.of("namespace", atlasService.getNamespace()),
-                    SafeArg.of("table", table));
-            repairTable.accept(table, ranges);
-        });
-    }
-
-    public void cleanTransactionsTables(
-            AtlasService atlasService,
-            long startTimestamp,
-            List<TransactionsTableInteraction> transactionsTableInteractions) {
-        cqlClusterContainers.get(atlasService).get().abortTransactions(startTimestamp, transactionsTableInteractions);
-    }
-
-    private Map<String, RangesForRepair> getRangesForRepairByTable(
-            AtlasService atlasService, List<TransactionsTableInteraction> transactionsTableInteractions) {
-        return KeyedStream.stream(getRawRangesForRepairByTable(atlasService, transactionsTableInteractions))
-                .map(RangesForRepair::of)
-                .collectToMap();
-    }
-
-    private Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> getRawRangesForRepairByTable(
-            AtlasService atlasService, List<TransactionsTableInteraction> transactionsTableInteractions) {
-        return cqlClusterContainers
-                .get(atlasService)
-                .get()
-                .getTransactionsTableRangesForRepair(transactionsTableInteractions);
-    }
-
-    // VisibleForTesting
-    public static RangesForRepair getRangesToRepair(
-            CqlCluster cqlCluster, AtlasService atlasService, String tableName) {
-        Map<InetSocketAddress, RangeSet<LightweightOppToken>> tokenRanges =
-                getTokenRangesToRepair(cqlCluster, atlasService, tableName);
-        return RangesForRepair.of(tokenRanges);
-    }
-
-    private static Map<InetSocketAddress, RangeSet<LightweightOppToken>> getTokenRangesToRepair(
-            CqlCluster cqlCluster, AtlasService atlasService, String tableName) {
-        String cassandraTableName = getCassandraTableName(atlasService.getNamespace(), tableName);
-        return cqlCluster.getTokenRanges(cassandraTableName);
-    }
-
-    private static String getCassandraTableName(Namespace namespace, String tableName) {
-        TableReference tableRef = TableReference.create(toKvNamespace(namespace), tableName);
-        return AbstractKeyValueService.internalTableName(tableRef);
-    }
-
-    private static com.palantir.atlasdb.keyvalue.api.Namespace toKvNamespace(Namespace namespace) {
-        return com.palantir.atlasdb.keyvalue.api.Namespace.create(namespace.get());
-    }
-}u}(jt (10ac517540c4ccbec86921f43455bf0f5cc33699ju _atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/ClusterMetadataUtils.javaju removedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FClusterMetadataUtils.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FClusterMetadataUtils.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FClusterMetadataUtils.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X,  @@ -1,224 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import static com.google.common.collect.ImmutableRangeSet.toImmutableRangeSet;
-
-import com.datastax.driver.core.KeyspaceMetadata;
-import com.datastax.driver.core.TableMetadata;
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.ArrayListMultimap;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.MoreCollectors;
-import com.google.common.collect.Multimap;
-import com.google.common.collect.Range;
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.logging.LoggingArgs;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.logsafe.Preconditions;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import java.net.InetSocketAddress;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.SortedMap;
-import java.util.TreeMap;
-import java.util.function.Predicate;
-import java.util.stream.Collectors;
-import java.util.stream.Stream;
-
-public final class ClusterMetadataUtils {
-    private ClusterMetadataUtils() {
-        // util class
-    }
-
-    public static TableMetadata getTableMetadata(CqlMetadata metadata, Namespace namespace, String table) {
-        KeyspaceMetadata keyspaceMetadata = metadata.getKeyspaceMetadata(namespace);
-        Optional<TableMetadata> maybeTable = keyspaceMetadata.getTables().stream()
-                .filter(tableMetadata -> tableMetadata.getName().equals(table))
-                .collect(MoreCollectors.toOptional());
-        return maybeTable.orElseThrow(() -> new SafeIllegalArgumentException(
-                "Can't find table",
-                SafeArg.of("keyspace", namespace),
-                LoggingArgs.tableRef("table", TableReference.fromString(table))));
-    }
-
-    /**
-     * Returns a mapping of Node to token ranges its host contains, where every partition key in the specified
-     * list is present in the token ranges for each replica.
-     *
-     * <p>For example there is a cluster that has keyspace K with a simple replication strategy and replication factor
-     * 2, the ring of the cluster has a range of (0, 3], and there are 3 nodes A, B, and C, where:
-     *
-     * <ul>
-     *   <li>A has replicas for K for token ranges (1, 2] and (2, 3]
-     *   <li>B has replicas for K for token ranges (2, 3] and (0, 1]
-     *   <li>C has replicas for K for token ranges (0, 1] and (1, 2]
-     * </ul>
-     *
-     * <p>The value returned by calling getTokenMapping([A, B, C], metadata, K, [0.25, 0.5, 2.5]) would be: <br>
-     * { A : set[ range(2, 3] ], B : set[ range(0, 1],  range(2, 3]] }, C : set[ range(0, 1] ] }
-     *
-     * @param nodeSet The Cassandra nodes whose replicas to check
-     * @param metadata The Datastax driver metadata from the Cassandra cluster
-     * @param namespace The namespace containing the partition keys we want to map
-     * @param partitionKeyTokens The Cassandra tokens for the partition keys we want to map
-     * @return Mapping of Node to token ranges its host contains, where every partition key in the specified
-     * list is present in one of the token ranges on one host
-     */
-    @SuppressWarnings("ReverseDnsLookup")
-    public static Map<InetSocketAddress, RangeSet<LightweightOppToken>> getTokenMapping(
-            Collection<InetSocketAddress> nodeSet,
-            CqlMetadata metadata,
-            Namespace namespace,
-            Set<LightweightOppToken> partitionKeyTokens) {
-
-        Map<String, InetSocketAddress> nodeMetadataHostMap =
-                KeyedStream.of(nodeSet).mapKeys(InetSocketAddress::getHostName).collectToMap();
-        Map<InetSocketAddress, RangeSet<LightweightOppToken>> hostToTokenRangeMap =
-                getTokenMappingForPartitionKeys(metadata, namespace, partitionKeyTokens);
-
-        return KeyedStream.stream(hostToTokenRangeMap)
-                .mapKeys(host -> lookUpAddress(nodeMetadataHostMap, host))
-                .collectToMap();
-    }
-
-    @SuppressWarnings("ReverseDnsLookup")
-    private static InetSocketAddress lookUpAddress(
-            Map<String, InetSocketAddress> nodeMetadataHostMap, InetSocketAddress host) {
-        String hostname = host.getHostName();
-        Preconditions.checkArgument(
-                nodeMetadataHostMap.containsKey(hostname),
-                "Did not find corresponding Node to run repair",
-                SafeArg.of("hostname", hostname),
-                SafeArg.of("availableHosts", nodeMetadataHostMap.keySet()),
-                SafeArg.of("host", host));
-        return nodeMetadataHostMap.get(hostname);
-    }
-
-    private static Map<InetSocketAddress, RangeSet<LightweightOppToken>> getTokenMappingForPartitionKeys(
-            CqlMetadata metadata, Namespace namespace, Set<LightweightOppToken> partitionKeyTokens) {
-        Set<Range<LightweightOppToken>> tokenRanges = metadata.getTokenRanges();
-        SortedMap<LightweightOppToken, Range<LightweightOppToken>> tokenRangesByStart = KeyedStream.of(tokenRanges)
-                .mapKeys(LightweightOppToken::getLowerExclusive)
-                .collectTo(TreeMap::new);
-        Set<Range<LightweightOppToken>> ranges = getMinimalSetOfRangesForTokens(partitionKeyTokens, tokenRangesByStart);
-        Multimap<InetSocketAddress, Range<LightweightOppToken>> tokenMapping = ArrayListMultimap.create();
-        ranges.forEach(range -> {
-            List<InetSocketAddress> hosts = ImmutableList.copyOf(metadata.getReplicas(namespace, range));
-            if (hosts.isEmpty()) {
-                throw new SafeIllegalStateException(
-                        "Failed to find any replicas of token range for repair",
-                        SafeArg.of("tokenRange", range.toString()),
-                        SafeArg.of("keyspace", quotedNamespace(namespace)));
-            }
-            hosts.forEach(host -> tokenMapping.put(host, range));
-        });
-        return KeyedStream.stream(tokenMapping.asMap())
-                .map(Collection::stream)
-                .map(stream -> (RangeSet<LightweightOppToken>) stream.collect(toImmutableRangeSet()))
-                .collectToMap();
-    }
-
-    @VisibleForTesting
-    // Needs to be Set<Range<>> as we don't want to merge ranges yet
-    static Set<Range<LightweightOppToken>> getMinimalSetOfRangesForTokens(
-            Set<LightweightOppToken> partitionKeyTokens,
-            SortedMap<LightweightOppToken, Range<LightweightOppToken>> tokenRangesByStart) {
-        Map<LightweightOppToken, Range<LightweightOppToken>> tokenRangesByStartToken = new HashMap<>();
-        for (LightweightOppToken token : partitionKeyTokens) {
-            Range<LightweightOppToken> minimalTokenRange = findTokenRange(token, tokenRangesByStart);
-            tokenRangesByStartToken.merge(
-                    LightweightOppToken.getLowerExclusive(minimalTokenRange),
-                    minimalTokenRange,
-                    ClusterMetadataUtils::findLatestEndingRange);
-
-            if (!minimalTokenRange.hasLowerBound()) {
-                // handle wraparound
-                Optional<Range<LightweightOppToken>> wraparoundRange = tokenRangesByStart.values().stream()
-                        .filter(Predicate.not(Range::hasUpperBound))
-                        .findFirst();
-                wraparoundRange.ifPresent(range -> tokenRangesByStartToken.merge(
-                        LightweightOppToken.getLowerExclusive(range),
-                        range,
-                        ClusterMetadataUtils::findLatestEndingRange));
-            }
-        }
-        return ImmutableSet.copyOf(tokenRangesByStartToken.values());
-    }
-
-    private static Range<LightweightOppToken> findTokenRange(
-            LightweightOppToken token, SortedMap<LightweightOppToken, Range<LightweightOppToken>> tokenRangesByStart) {
-        if (tokenRangesByStart.headMap(token).isEmpty()) {
-            // Shouldn't happen, as tokenRangesByStart should include the whole token ring, including some range
-            // starting with minus infinity.
-            throw new SafeIllegalStateException(
-                    "Unable to find token range for token, as a full token ring was not supplied",
-                    SafeArg.of("token", token),
-                    SafeArg.of("tokenRangesByStart", tokenRangesByStart));
-        }
-
-        LightweightOppToken lowerBound = tokenRangesByStart.headMap(token).lastKey();
-        if (lowerBound.isEmpty()) {
-            return Range.atMost(token);
-        } else {
-            return Range.openClosed(lowerBound, token);
-        }
-    }
-
-    private static String quotedNamespace(Namespace namespace) {
-        return "\"" + namespace.value() + "\"";
-    }
-
-    // VisibleForTesting
-    public static Range<LightweightOppToken> findLatestEndingRange(
-            Range<LightweightOppToken> range1, Range<LightweightOppToken> range2) {
-        Preconditions.checkArgument(
-                LightweightOppToken.getLowerExclusive(range1).equals(LightweightOppToken.getLowerExclusive(range2)),
-                "Expects token ranges to have the same start token",
-                SafeArg.of("range1", range1),
-                SafeArg.of("range2", range2));
-
-        Set<Range<LightweightOppToken>> wrapAroundTokenRanges = Stream.of(range1, range2)
-                .filter(Predicate.not(Range::hasUpperBound))
-                .collect(Collectors.toSet());
-        // If any token ranges are wraparound ranges, the non-wraparound ranges cannot possibly be the longest range
-        if (wrapAroundTokenRanges.size() == 1) {
-            return wrapAroundTokenRanges.iterator().next();
-        }
-
-        if (range1.contains(range2.upperEndpoint())) {
-            return range1;
-        } else if (range2.contains(range1.upperEndpoint())) {
-            return range2;
-        } else {
-            throw new SafeIllegalArgumentException(
-                    "Cannot find max token range",
-                    SafeArg.of("tokenRange1", range1),
-                    SafeArg.of("tokenRange2", range2));
-        }
-    }
-}uh&     }(jt (ef671c609a69c3feb06a91c7236944f03dc5457fju Uatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/CqlCluster.javaju removedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlCluster.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlCluster.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlCluster.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X  @@ -1,127 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import com.datastax.driver.core.Cluster;
-import com.github.rholder.retry.RetryException;
-import com.github.rholder.retry.Retryer;
-import com.github.rholder.retry.StopStrategies;
-import com.github.rholder.retry.WaitStrategies;
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.keyvalue.cassandra.async.client.creation.ClusterFactory;
-import com.palantir.atlasdb.keyvalue.cassandra.async.client.creation.ClusterFactory.CassandraClusterConfig;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import com.palantir.logsafe.exceptions.SafeRuntimeException;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.io.Closeable;
-import java.io.IOException;
-import java.net.InetSocketAddress;
-import java.time.Duration;
-import java.util.List;
-import java.util.Map;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.TimeUnit;
-
-public final class CqlCluster implements Closeable {
-    private static final SafeLogger log = SafeLoggerFactory.get(CqlCluster.class);
-
-    private static final Duration RETRY_DURATION = Duration.ofMinutes(1L);
-    private static final int RETRY_COUNT = 5;
-
-    private final Cluster cluster;
-    private final CassandraServersConfig cassandraServersConfig;
-    private final Namespace namespace;
-    private final Retryer<CqlSession> cqlSessionRetryer;
-
-    // VisibleForTesting
-    public CqlCluster(Cluster cluster, CassandraServersConfig cassandraServersConfig, Namespace namespace) {
-        this(cluster, cassandraServersConfig, namespace, RETRY_DURATION);
-    }
-
-    // VisibleForTesting
-    public CqlCluster(
-            Cluster cluster,
-            CassandraServersConfig cassandraServersConfig,
-            Namespace namespace,
-            Duration retryDuration) {
-        this.cluster = cluster;
-        this.cassandraServersConfig = cassandraServersConfig;
-        this.namespace = namespace;
-        this.cqlSessionRetryer = new Retryer<>(
-                StopStrategies.stopAfterAttempt(RETRY_COUNT),
-                WaitStrategies.fixedWait(retryDuration.toMillis(), TimeUnit.MILLISECONDS),
-                attempt -> !attempt.hasResult());
-    }
-
-    public static CqlCluster create(
-            CassandraClusterConfig cassandraClusterConfig,
-            CassandraServersConfig cassandraServersConfig,
-            Namespace namespace) {
-        Cluster cluster =
-                new ClusterFactory(Cluster::builder).constructCluster(cassandraClusterConfig, cassandraServersConfig);
-        return new CqlCluster(cluster, cassandraServersConfig, namespace, RETRY_DURATION);
-    }
-
-    @Override
-    public void close() throws IOException {
-        log.info(
-                "Closing cql cluster container",
-                SafeArg.of("namespace", namespace),
-                new SafeRuntimeException("I exist to show you the stack trace"));
-        cluster.close();
-    }
-
-    public Map<InetSocketAddress, RangeSet<LightweightOppToken>> getTokenRanges(String tableName) {
-        try (CqlSession session = createSessionWithRetry()) {
-            return new TokenRangeFetcher(session, namespace, cassandraServersConfig).getTokenRange(tableName);
-        }
-    }
-
-    public Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> getTransactionsTableRangesForRepair(
-            List<TransactionsTableInteraction> transactionsTableInteractions) {
-        try (CqlSession session = createSessionWithRetry()) {
-            return new RepairRangeFetcher(session, namespace, cassandraServersConfig)
-                    .getTransactionTableRangesForRepair(transactionsTableInteractions);
-        }
-    }
-
-    public void abortTransactions(long timestamp, List<TransactionsTableInteraction> transactionsTableInteractions) {
-        try (CqlSession session = createSessionWithRetry()) {
-            new TransactionAborter(session, namespace).abortTransactions(timestamp, transactionsTableInteractions);
-        }
-    }
-
-    @VisibleForTesting
-    CqlSession createSessionWithRetry() {
-        try {
-            return cqlSessionRetryer.call(() -> new CqlSession(cluster.connect()));
-        } catch (ExecutionException e) {
-            throw new SafeIllegalStateException(
-                    "Failed to execute CqlSession connect", e, SafeArg.of("namespace", namespace));
-        } catch (RetryException e) {
-            throw new SafeIllegalStateException(
-                    "Failed to execute CqlSession connect even with retry", e, SafeArg.of("namespace", namespace));
-        }
-    }
-}u}(jt (73b08f7b2b5a0f8455602448f16606158d60e1e4ju Uatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/CqlSession.javaju modifiedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlSession.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlSession.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlSession.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -16,18 +16,11 @@
 
 package com.palantir.atlasdb.cassandra.backup;
 
-import com.datastax.driver.core.ConsistencyLevel;
 import com.datastax.driver.core.PreparedStatement;
 import com.datastax.driver.core.ResultSet;
 import com.datastax.driver.core.Session;
 import com.datastax.driver.core.Statement;
-import com.palantir.atlasdb.keyvalue.cassandra.CassandraConstants;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
 import java.io.Closeable;
-import java.util.List;
-import java.util.Set;
-import java.util.stream.Collectors;
-import java.util.stream.StreamSupport;
 
 public class CqlSession implements Closeable {
     private final Session session;
@@ -45,15 +38,6 @@ public CqlMetadata getMetadata() {
         return new CqlMetadata(session.getCluster().getMetadata());
     }
 
-    public Set<LightweightOppToken> retrieveRowKeysAtConsistencyAll(List<Statement> selectStatements) {
-        return selectStatements.stream()
-                .map(statement -> statement.setConsistencyLevel(ConsistencyLevel.ALL))
-                .flatMap(select -> StreamSupport.stream(session.execute(select).spliterator(), false))
-                .map(row -> row.getToken(CassandraConstants.ROW))
-                .map(LightweightOppToken::serialize)
-                .collect(Collectors.toSet());
-    }
-
     public PreparedStatement prepare(Statement statement) {
         return session.prepare(statement.toString());
     }u}(jt (933c52ba0e9a988bbc5050289baf465ee261d363ju Zatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/RangesForRepair.javaju removedju K ju K%j u K%j!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRangesForRepair.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRangesForRepair.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRangesForRepair.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X  @@ -1,37 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import java.net.InetSocketAddress;
-import java.util.Map;
-import org.immutables.value.Value;
-
-@Value.Immutable
-@SuppressWarnings("UnstableApiUsage")
-public abstract class RangesForRepair {
-    public abstract Map<InetSocketAddress, RangeSet<LightweightOppToken>> tokenMap();
-
-    public RangeSet<LightweightOppToken> get(InetSocketAddress address) {
-        return tokenMap().get(address);
-    }
-
-    public static RangesForRepair of(Map<InetSocketAddress, RangeSet<LightweightOppToken>> tokenMap) {
-        return ImmutableRangesForRepair.builder().tokenMap(tokenMap).build();
-    }
-}u}(jt (37f1ac7913a2ee5b0148e690a9bc2b6a483f6f49ju ]atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/RepairRangeFetcher.javaju removedju K ju Kpj u Kpj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRepairRangeFetcher.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRepairRangeFetcher.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRepairRangeFetcher.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X/  @@ -1,112 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import com.datastax.driver.core.Statement;
-import com.datastax.driver.core.TableMetadata;
-import com.google.common.collect.Multimap;
-import com.google.common.collect.Multimaps;
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import com.palantir.timestamp.FullyBoundedTimestampRange;
-import java.net.InetSocketAddress;
-import java.util.Collection;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.stream.Collectors;
-
-final class RepairRangeFetcher {
-    private static final SafeLogger log = SafeLoggerFactory.get(RepairRangeFetcher.class);
-
-    private final CqlSession cqlSession;
-    private final CqlMetadata cqlMetadata;
-    private final Namespace namespace;
-    private final CassandraServersConfig cassandraServersConfig;
-
-    public RepairRangeFetcher(
-            CqlSession cqlSession, Namespace namespace, CassandraServersConfig cassandraServersConfig) {
-        this.cqlSession = cqlSession;
-        this.cqlMetadata = cqlSession.getMetadata();
-        this.namespace = namespace;
-        this.cassandraServersConfig = cassandraServersConfig;
-    }
-
-    public Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> getTransactionTableRangesForRepair(
-            List<TransactionsTableInteraction> transactionsTableInteractions) {
-
-        Map<String, Set<LightweightOppToken>> partitionKeysByTable =
-                getPartitionTokensByTable(transactionsTableInteractions);
-
-        maybeLogTokenRanges(transactionsTableInteractions, partitionKeysByTable);
-
-        Set<InetSocketAddress> hosts = CassandraServersConfigs.getCqlHosts(cassandraServersConfig);
-        return KeyedStream.stream(partitionKeysByTable)
-                .map(ranges -> ClusterMetadataUtils.getTokenMapping(hosts, cqlMetadata, namespace, ranges))
-                .collectToMap();
-    }
-
-    private Map<String, Set<LightweightOppToken>> getPartitionTokensByTable(
-            List<TransactionsTableInteraction> transactionsTableInteractions) {
-        Multimap<String, TransactionsTableInteraction> interactionsByTable =
-                Multimaps.index(transactionsTableInteractions, TransactionsTableInteraction::getTransactionsTableName);
-        return KeyedStream.stream(interactionsByTable.asMap())
-                .map(this::getPartitionsTokenForSingleTransactionsTable)
-                .collectToMap();
-    }
-
-    private Set<LightweightOppToken> getPartitionsTokenForSingleTransactionsTable(
-            Collection<TransactionsTableInteraction> interactions) {
-        return interactions.stream()
-                .map(this::getPartitionTokensForTransactionsTable)
-                .flatMap(Collection::stream)
-                .collect(Collectors.toSet());
-    }
-
-    private Set<LightweightOppToken> getPartitionTokensForTransactionsTable(TransactionsTableInteraction interaction) {
-        TableMetadata transactionsTableMetadata =
-                ClusterMetadataUtils.getTableMetadata(cqlMetadata, namespace, interaction.getTransactionsTableName());
-        List<Statement> selectStatements =
-                interaction.createSelectStatementsForScanningFullTimestampRange(transactionsTableMetadata);
-        return cqlSession.retrieveRowKeysAtConsistencyAll(selectStatements);
-    }
-
-    private static void maybeLogTokenRanges(
-            List<TransactionsTableInteraction> transactionsTableInteractions,
-            Map<String, Set<LightweightOppToken>> partitionKeysByTable) {
-        if (log.isDebugEnabled()) {
-            Multimap<String, TransactionsTableInteraction> indexedInteractions = Multimaps.index(
-                    transactionsTableInteractions, TransactionsTableInteraction::getTransactionsTableName);
-            Multimap<String, FullyBoundedTimestampRange> loggableTableRanges =
-                    Multimaps.transformValues(indexedInteractions, TransactionsTableInteraction::getTimestampRange);
-            Map<String, Integer> numPartitionKeysByTable =
-                    KeyedStream.stream(partitionKeysByTable).map(Set::size).collectToMap();
-            log.debug(
-                    "Identified token ranges requiring repair in the following transactions tables",
-                    SafeArg.of("transactionsTablesWithRanges", loggableTableRanges),
-                    SafeArg.of("numPartitionKeysByTable", numPartitionKeysByTable));
-        }
-    }
-}u}(jt (a28968b7128269ec0ba746fc30513d6c81f27c8aju \atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/TokenRangeFetcher.javaju removedju K ju Koj u Koj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTokenRangeFetcher.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTokenRangeFetcher.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTokenRangeFetcher.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X	  @@ -1,111 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import com.datastax.driver.core.ConsistencyLevel;
-import com.datastax.driver.core.KeyspaceMetadata;
-import com.datastax.driver.core.Statement;
-import com.datastax.driver.core.TableMetadata;
-import com.datastax.driver.core.querybuilder.QueryBuilder;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
-import com.palantir.atlasdb.keyvalue.cassandra.CassandraConstants;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.net.InetSocketAddress;
-import java.util.Map;
-import java.util.Set;
-import java.util.concurrent.TimeUnit;
-
-final class TokenRangeFetcher {
-    private static final SafeLogger log = SafeLoggerFactory.get(TokenRangeFetcher.class);
-
-    private static final int LONG_READ_TIMEOUT_MS = (int) TimeUnit.MINUTES.toMillis(2);
-    // reduce this from default because we run RepairTableTask across N keyspaces at the same time
-    private static final int SELECT_FETCH_SIZE = 1_000;
-
-    private final CqlSession cqlSession;
-    private final CqlMetadata cqlMetadata;
-    private final Namespace namespace;
-    private final CassandraServersConfig cassandraServersConfig;
-
-    public TokenRangeFetcher(
-            CqlSession cqlSession, Namespace namespace, CassandraServersConfig cassandraServersConfig) {
-        this.namespace = namespace;
-        this.cassandraServersConfig = cassandraServersConfig;
-        this.cqlSession = cqlSession;
-        this.cqlMetadata = cqlSession.getMetadata();
-    }
-
-    public Map<InetSocketAddress, RangeSet<LightweightOppToken>> getTokenRange(String tableName) {
-        KeyspaceMetadata keyspaceMetadata = cqlMetadata.getKeyspaceMetadata(namespace);
-        if (keyspaceMetadata == null) {
-            log.error(
-                    "Could not find metadata for a keyspace that is supposed to exist",
-                    SafeArg.of("keyspace", namespace));
-            return ImmutableMap.of();
-        }
-
-        TableMetadata tableMetadata = keyspaceMetadata.getTable(tableName);
-        if (tableMetadata == null) {
-            log.error(
-                    "Could not find metadata for table that is supposed to exist",
-                    SafeArg.of("keyspace", namespace),
-                    SafeArg.of("tableName", tableName));
-            return ImmutableMap.of();
-        }
-
-        Set<LightweightOppToken> partitionTokens = getPartitionTokens(tableMetadata);
-        Map<InetSocketAddress, RangeSet<LightweightOppToken>> tokenRangesByNode = ClusterMetadataUtils.getTokenMapping(
-                CassandraServersConfigs.getCqlHosts(cassandraServersConfig), cqlMetadata, namespace, partitionTokens);
-
-        if (!partitionTokens.isEmpty() && log.isDebugEnabled()) {
-            int numTokenRanges = tokenRangesByNode.values().stream()
-                    .mapToInt(ranges -> ranges.asRanges().size())
-                    .sum();
-
-            log.debug(
-                    "Identified token ranges requiring repair",
-                    SafeArg.of("keyspace", namespace),
-                    SafeArg.of("table", tableName),
-                    SafeArg.of("numPartitionKeys", partitionTokens.size()),
-                    SafeArg.of("numTokenRanges", numTokenRanges));
-        }
-
-        return tokenRangesByNode;
-    }
-
-    private Set<LightweightOppToken> getPartitionTokens(TableMetadata tableMetadata) {
-        return cqlSession.retrieveRowKeysAtConsistencyAll(ImmutableList.of(selectDistinctRowKeys(tableMetadata)));
-    }
-
-    private static Statement selectDistinctRowKeys(TableMetadata table) {
-        return QueryBuilder.select(CassandraConstants.ROW)
-                // only returns the column that we need instead of all of them, otherwise we get a timeout
-                .distinct()
-                .from(table)
-                .setConsistencyLevel(ConsistencyLevel.ALL)
-                .setFetchSize(SELECT_FETCH_SIZE)
-                .setReadTimeoutMillis(LONG_READ_TIMEOUT_MS);
-    }
-}u}(jt (b6a927cdd7751156b605bc6e9520ce10f8bcce23ju ]atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/TransactionAborter.javaju removedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTransactionAborter.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTransactionAborter.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTransactionAborter.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X+  @@ -1,240 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import com.datastax.driver.core.ConsistencyLevel;
-import com.datastax.driver.core.PreparedStatement;
-import com.datastax.driver.core.ResultSet;
-import com.datastax.driver.core.Row;
-import com.datastax.driver.core.Statement;
-import com.datastax.driver.core.TableMetadata;
-import com.github.rholder.retry.RetryException;
-import com.github.rholder.retry.Retryer;
-import com.github.rholder.retry.StopStrategies;
-import com.github.rholder.retry.WaitStrategies;
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.collect.Iterators;
-import com.google.common.collect.Streams;
-import com.palantir.atlasdb.atomic.AtomicValue;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionTableEntries;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionTableEntry;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.logsafe.Preconditions;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.exceptions.SafeIllegalStateException;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.List;
-import java.util.Optional;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.TimeUnit;
-import java.util.stream.Stream;
-
-final class TransactionAborter {
-    private static final SafeLogger log = SafeLoggerFactory.get(TransactionAborter.class);
-
-    private static final int RETRY_COUNT = 3;
-
-    private final CqlSession cqlSession;
-    private final Namespace namespace;
-    private final Retryer<Boolean> abortRetryer;
-
-    public TransactionAborter(CqlSession cqlSession, Namespace namespace) {
-        this.cqlSession = cqlSession;
-        this.namespace = namespace;
-
-        this.abortRetryer = new Retryer<>(
-                StopStrategies.stopAfterAttempt(RETRY_COUNT),
-                WaitStrategies.fixedWait(1L, TimeUnit.SECONDS),
-                attempt -> !attempt.hasResult() || !attempt.getResult());
-    }
-
-    public void abortTransactions(long timestamp, List<TransactionsTableInteraction> transactionsTableInteractions) {
-        CqlMetadata clusterMetadata = cqlSession.getMetadata();
-        transactionsTableInteractions.forEach(
-                txnInteraction -> abortTransactions(clusterMetadata, timestamp, txnInteraction));
-    }
-
-    private void abortTransactions(
-            CqlMetadata clusterMetadata, long timestamp, TransactionsTableInteraction txnInteraction) {
-        log.info(
-                "Aborting transactions after backup timestamp",
-                SafeArg.of("backupTimestamp", timestamp),
-                SafeArg.of("keyspace", namespace),
-                SafeArg.of("table", txnInteraction.getTransactionsTableName()));
-
-        TableMetadata transactionsTable = ClusterMetadataUtils.getTableMetadata(
-                clusterMetadata, namespace, txnInteraction.getTransactionsTableName());
-
-        PreparedStatement preparedAbortStatement = txnInteraction.prepareAbortStatement(transactionsTable, cqlSession);
-        PreparedStatement preparedCheckStatement = txnInteraction.prepareCheckStatement(transactionsTable, cqlSession);
-        Stream<TransactionTableEntry> keysToAbort =
-                getTransactionsToAbort(txnInteraction, transactionsTable, timestamp);
-        executeTransactionAborts(txnInteraction, preparedAbortStatement, preparedCheckStatement, keysToAbort);
-    }
-
-    @VisibleForTesting
-    Stream<TransactionTableEntry> getTransactionsToAbort(
-            TransactionsTableInteraction txnInteraction, TableMetadata transactionsTable, long timestamp) {
-        Stream<Row> rowResults =
-                txnInteraction.createSelectStatementsForScanningFullTimestampRange(transactionsTable).stream()
-                        .map(select -> cqlSession.execute(select).iterator())
-                        .flatMap(Streams::stream);
-
-        return KeyedStream.of(rowResults)
-                .map(txnInteraction::extractTimestamps)
-                .filter(entry -> isInRange(namespace, txnInteraction, entry, timestamp))
-                .values();
-    }
-
-    private static boolean isInRange(
-            Namespace namespace,
-            TransactionsTableInteraction txnInteraction,
-            TransactionTableEntry entry,
-            long timestamp) {
-        Optional<Long> maybeCommitTimestamp = getCommitTimestamp(entry);
-        if (maybeCommitTimestamp.isEmpty()) {
-            return false;
-        }
-
-        long startTimestamp = TransactionTableEntries.getStartTimestamp(entry);
-        long commitTimestamp = maybeCommitTimestamp.get();
-        boolean isInRange = txnInteraction.getTimestampRange().contains(startTimestamp);
-        if (commitTimestamp <= timestamp || !isInRange) {
-            return false;
-        }
-
-        log.debug(
-                "Found transaction to abort",
-                SafeArg.of("startTimestamp", startTimestamp),
-                SafeArg.of("commitTimestamp", commitTimestamp),
-                SafeArg.of("keyspace", namespace),
-                SafeArg.of("table", txnInteraction.getTransactionsTableName()));
-        return true;
-    }
-
-    @VisibleForTesting
-    void executeTransactionAborts(
-            TransactionsTableInteraction txnInteraction,
-            PreparedStatement preparedAbortStatement,
-            PreparedStatement preparedCheckStatement,
-            Stream<TransactionTableEntry> entries) {
-        entries.forEach(entry -> {
-            Statement abortStatement = txnInteraction.bindAbortStatement(preparedAbortStatement, entry);
-            Statement checkStatement = txnInteraction.bindCheckStatement(preparedCheckStatement, entry);
-            executeWithRetry(txnInteraction, abortStatement, checkStatement, entry);
-        });
-    }
-
-    private void executeWithRetry(
-            TransactionsTableInteraction txnInteraction,
-            Statement abortStatement,
-            Statement checkStatement,
-            TransactionTableEntry entry) {
-        long startTs = TransactionTableEntries.getStartTimestamp(entry);
-        long commitTs = getCommitTimestamp(entry).orElseThrow();
-
-        Preconditions.checkArgument(
-                abortStatement.getSerialConsistencyLevel() == ConsistencyLevel.SERIAL,
-                "Abort statement was not at expected consistency level",
-                SafeArg.of("consistencyLevel", abortStatement.getSerialConsistencyLevel()),
-                SafeArg.of("expectedConsistencyLevel", ConsistencyLevel.SERIAL));
-        Preconditions.checkArgument(
-                checkStatement.getSerialConsistencyLevel() == ConsistencyLevel.SERIAL,
-                "Check statement was not at expected consistency level",
-                SafeArg.of("consistencyLevel", checkStatement.getSerialConsistencyLevel()),
-                SafeArg.of("expectedConsistencyLevel", ConsistencyLevel.SERIAL));
-
-        try {
-            abortRetryer.call(
-                    () -> tryAbortTransactions(txnInteraction, abortStatement, checkStatement, startTs, commitTs));
-        } catch (ExecutionException e) {
-            throw new SafeIllegalStateException(
-                    "Failed to execute transaction abort",
-                    e,
-                    SafeArg.of("startTs", startTs),
-                    SafeArg.of("commitTs", commitTs),
-                    SafeArg.of("retryCount", RETRY_COUNT),
-                    SafeArg.of("keyspace", namespace));
-
-        } catch (RetryException e) {
-            throw new SafeIllegalStateException(
-                    "Unable to abort transactions even with retry",
-                    e,
-                    SafeArg.of("startTs", startTs),
-                    SafeArg.of("commitTs", commitTs),
-                    SafeArg.of("retryCount", RETRY_COUNT),
-                    SafeArg.of("keyspace", namespace));
-        }
-    }
-
-    private boolean tryAbortTransactions(
-            TransactionsTableInteraction txnInteraction,
-            Statement abortStatement,
-            Statement checkStatement,
-            long startTs,
-            long commitTs) {
-        log.info(
-                "Aborting transaction",
-                SafeArg.of("startTs", startTs),
-                SafeArg.of("commitTs", commitTs),
-                SafeArg.of("keyspace", namespace));
-        ResultSet abortResultSet = cqlSession.execute(abortStatement);
-        if (abortResultSet.wasApplied()) {
-            return true;
-        }
-
-        log.debug(
-                "Executing check statement",
-                SafeArg.of("startTs", startTs),
-                SafeArg.of("commitTs", commitTs),
-                SafeArg.of("keyspace", namespace));
-        ResultSet checkResultSet = cqlSession.execute(checkStatement);
-        Row result = Iterators.getOnlyElement(checkResultSet.all().iterator());
-
-        TransactionTableEntry transactionTableEntry = txnInteraction.extractTimestamps(result);
-        if (isAborted(transactionTableEntry)) {
-            return true;
-        }
-
-        log.warn(
-                "Retrying abort statement",
-                SafeArg.of("startTs", startTs),
-                SafeArg.of("commitTs", commitTs),
-                SafeArg.of("keyspace", namespace));
-        return false;
-    }
-
-    private static boolean isAborted(TransactionTableEntry transactionTableEntry) {
-        return TransactionTableEntries.caseOf(transactionTableEntry)
-                .explicitlyAborted(_startTs -> true)
-                .otherwise(() -> false);
-    }
-
-    private static Optional<Long> getCommitTimestamp(TransactionTableEntry entry) {
-        return TransactionTableEntries.getCommitTimestamp(entry).or(() -> getCommitValue(entry));
-    }
-
-    private static Optional<Long> getCommitValue(TransactionTableEntry entry) {
-        return TransactionTableEntries.getCommitValue(entry)
-                .map(AtomicValue::value)
-                .flatMap(TransactionStatuses::getCommitTimestamp);
-    }
-}u}(jt (728c30ccb37b7e8e5eb4d85803b92b65d26e741bju qatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/transaction/TransactionTableEntryUtils.javaju modifiedju Kju K	j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactionTableEntryUtils.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactionTableEntryUtils.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactionTableEntryUtils.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -17,20 +17,22 @@
 package com.palantir.atlasdb.cassandra.backup.transaction;
 
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Aborted;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 
 public final class TransactionTableEntryUtils {
     private TransactionTableEntryUtils() {}
 
-    public static TransactionTableEntry fromStatus(long startTimestamp, TransactionStatus commitStatus) {
-        return TransactionStatuses.caseOf(commitStatus)
-                .committed(commitTs -> TransactionTableEntries.committedLegacy(startTimestamp, commitTs))
-                .aborted(() -> TransactionTableEntries.explicitlyAborted(startTimestamp))
-                .otherwise(() -> {
-                    throw new SafeIllegalStateException(
-                            "Illegal transaction status", SafeArg.of("status", commitStatus));
-                });
+    public static TransactionTableEntry fromStatus(long startTimestamp, TransactionStatus status) {
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return TransactionTableEntries.committedLegacy(startTimestamp, committed.commitTimestamp());
+        } else if (status instanceof Aborted) {
+            return TransactionTableEntries.explicitlyAborted(startTimestamp);
+        } else {
+            throw new SafeIllegalStateException("Illegal transaction status", SafeArg.of("status", status));
+        }
     }
 }u}(jt (cfeb9f02aeb926b035c4fcf5695b3b16d519d450ju tatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions1TableInteraction.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteraction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteraction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteraction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -49,7 +49,7 @@ public Transactions1TableInteraction(FullyBoundedTimestampRange timestampRange,
 
     private static final byte[] DUMMY = new byte[] {1};
     private static final byte[] ABORT_COMMIT_TS_ENCODED =
-            V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(0, TransactionConstants.ABORTED);
+            V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(0, TransactionStatus.aborted());
     static final ByteBuffer COLUMN_NAME_BB = ByteBuffer.wrap(TransactionConstants.COMMIT_TS_COLUMN);
 
     @Overrideu}(jt (b151ce954511712c43c8cff621e8d600fc587c56ju tatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions3TableInteraction.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteraction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteraction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteraction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -93,7 +93,7 @@ public TransactionTableEntry extractTimestamps(Row row) {
         AtomicValue<TransactionStatus> commitValue = encodingStrategy.decodeValueAsCommitStatus(
                 startTimestamp, Bytes.getArray(row.getBytes(CassandraConstants.VALUE)));
 
-        if (commitValue.value() == TransactionConstants.ABORTED) {
+        if (commitValue.value() == TransactionStatus.aborted()) {
             return TransactionTableEntries.explicitlyAborted(startTimestamp);
         }
 u}(jt (849885796051302ae2255080efd29ca7c50eddc8ju catlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientFactory.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientFactory.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientFactory.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientFactory.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -303,17 +303,12 @@ public void destroyObject(PooledObject<CassandraClient> client) {
         }
     }
 
-    static class ClientCreationFailedException extends AtlasDbDependencyException {
+    static final class ClientCreationFailedException extends AtlasDbDependencyException {
         private static final long serialVersionUID = 1L;
 
         ClientCreationFailedException(String message, Exception cause) {
             super(message, cause);
         }
-
-        @Override
-        public Exception getCause() {
-            return (Exception) super.getCause();
-        }
     }
 
     private static void setSocketOptions(TSocket thriftSocket, SocketConsumer consumer, InetSocketAddress addr) {u}(jt (45ab8df8c5897569a9513ef70c6303ec9283a96bju datlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u Xk  @@ -48,6 +48,7 @@
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.concurrent.ScheduledFuture;
 import java.util.concurrent.TimeUnit;
+import one.util.streamex.EntryStream;
 
 /**
  * Feature breakdown:
@@ -339,10 +340,12 @@ private synchronized void refreshPool() {
     }
 
     @VisibleForTesting
-    void setServersInPoolTo(ImmutableSet<CassandraServer> desiredServers) {
+    void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> desiredServers) {
         Set<CassandraServer> currentServers = getCachedServers();
-        SetView<CassandraServer> serversToAdd = Sets.difference(desiredServers, currentServers);
-        SetView<CassandraServer> absentServers = Sets.difference(currentServers, desiredServers);
+        Map<CassandraServer, CassandraServerOrigin> serversToAdd = EntryStream.of(desiredServers)
+                .removeKeys(currentServers::contains)
+                .toImmutableMap();
+        SetView<CassandraServer> absentServers = Sets.difference(currentServers, desiredServers.keySet());
 
         absentServers.forEach(cassandraServer -> {
             CassandraClientPoolingContainer container = cassandra.removePool(cassandraServer);
@@ -364,7 +367,7 @@ void setServersInPoolTo(ImmutableSet<CassandraServer> desiredServers) {
                     + " cluster topology, and the client cannot connect as there are no valid hosts. This state should"
                     + " be transient (<5 minutes), and if it is not, indicates that the user may have accidentally"
                     + " configured AltasDB to use two separate Cassandra clusters (i.e., user-led split brain).",
-                SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd)));
+                SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())));
 
         logRefreshedHosts(validatedServersToAdd, serversToShutdown, absentServers);
     }
@@ -380,13 +383,13 @@ void setServersInPoolTo(ImmutableSet<CassandraServer> desiredServers) {
     @VisibleForTesting
     Set<CassandraServer> validateNewHostsTopologiesAndMaybeAddToPool(
             Map<CassandraServer, CassandraClientPoolingContainer> currentContainers,
-            Set<CassandraServer> serversToAdd) {
+            Map<CassandraServer, CassandraServerOrigin> serversToAdd) {
         if (serversToAdd.isEmpty()) {
             return Set.of();
         }
-
+        Set<CassandraServer> serversToAddWithoutOrigin = serversToAdd.keySet();
         Map<CassandraServer, CassandraClientPoolingContainer> serversToAddContainers =
-                getContainerForNewServers(serversToAdd);
+                getContainerForNewServers(serversToAddWithoutOrigin);
 
         Preconditions.checkArgument(
                 Sets.intersection(currentContainers.keySet(), serversToAddContainers.keySet())
@@ -408,7 +411,8 @@ Set<CassandraServer> validateNewHostsTopologiesAndMaybeAddToPool(
                 cassandraTopologyValidator.getNewHostsWithInconsistentTopologiesAndRetry(
                         serversToAdd, allContainers, Duration.ofSeconds(5), Duration.ofMinutes(1));
 
-        Set<CassandraServer> validatedServersToAdd = Sets.difference(serversToAdd, newHostsWithDifferingTopology);
+        Set<CassandraServer> validatedServersToAdd =
+                Sets.difference(serversToAddWithoutOrigin, newHostsWithDifferingTopology);
         validatedServersToAdd.forEach(server -> cassandra.addPool(server, serversToAddContainers.get(server)));
         newHostsWithDifferingTopology.forEach(
                 server -> absentHostTracker.trackAbsentCassandraServer(server, serversToAddContainers.get(server)));u}(jt (69f581236b5f107c22a46408a061b07dd50fd1bcju iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X2  @@ -108,8 +108,6 @@
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
-import com.palantir.tracing.Tracers;
-import com.palantir.tritium.metrics.MetricRegistries;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import com.palantir.util.Pair;
 import com.palantir.util.paging.AbstractPagingIterable;
@@ -485,10 +483,7 @@ private static Supplier<ExecutorService> instrumentedFixedThreadPoolSupplier(
             int numberOfThriftHosts = serversConfig.numberOfThriftHosts();
             int corePoolSize = poolSize * numberOfThriftHosts;
             int maxPoolSize = maxConnectionBurstSize * numberOfThriftHosts;
-            return Tracers.wrap(MetricRegistries.instrument(
-                    registry,
-                    createThreadPoolWihtoutSpans("Atlas Cassandra KVS", corePoolSize, maxPoolSize),
-                    "Atlas Cassandra KVS"));
+            return createThreadPoolWithoutSpans("Atlas Cassandra KVS", corePoolSize, maxPoolSize);
         };
     }
 u}(jt (ceeeeed1ad626f017443a86551facc263dbb0a09ju batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraServerOrigin.javaju addedju K&ju K j u K&j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import com.google.common.collect.ImmutableMap;
+import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
+import java.util.Set;
+import java.util.function.Function;
+import java.util.stream.Stream;
+
+public enum CassandraServerOrigin {
+    CONFIG,
+    LAST_KNOWN,
+    TOKEN_RANGE;
+
+    public static ImmutableMap<CassandraServer, CassandraServerOrigin> mapAllServersToOrigin(
+            Set<CassandraServer> servers, CassandraServerOrigin origin) {
+        return mapAllServersToOrigin(servers.stream(), origin);
+    }
+
+    public static ImmutableMap<CassandraServer, CassandraServerOrigin> mapAllServersToOrigin(
+            Stream<CassandraServer> servers, CassandraServerOrigin origin) {
+        return servers.distinct().collect(ImmutableMap.toImmutableMap(Function.identity(), _v -> origin));
+    }
+}u}(jt (10dccf74f3186a2c4a4b523a206c95ccef82b213ju gatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraTopologyValidator.javaju modifiedju K5ju K!j u KVj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X?)  @@ -98,7 +98,7 @@ public CassandraTopologyValidator(CassandraTopologyValidationMetrics metrics) {
      * the get_host_ids endpoint will never be returned here.
      */
     public Set<CassandraServer> getNewHostsWithInconsistentTopologiesAndRetry(
-            Set<CassandraServer> newlyAddedHosts,
+            Map<CassandraServer, CassandraServerOrigin> newlyAddedHosts,
             Map<CassandraServer, CassandraClientPoolingContainer> allHosts,
             Duration waitTimeBetweenCalls,
             Duration maxWaitTime) {
@@ -128,55 +128,75 @@ public Set<CassandraServer> getNewHostsWithInconsistentTopologiesAndRetry(
 
     @VisibleForTesting
     Set<CassandraServer> getNewHostsWithInconsistentTopologies(
-            Set<CassandraServer> newlyAddedHosts, Map<CassandraServer, CassandraClientPoolingContainer> allHosts) {
+            Map<CassandraServer, CassandraServerOrigin> newlyAddedHosts,
+            Map<CassandraServer, CassandraClientPoolingContainer> allHosts) {
 
+        Set<CassandraServer> newlyAddedHostsWithoutOrigin = newlyAddedHosts.keySet();
         if (newlyAddedHosts.isEmpty()) {
-            return newlyAddedHosts;
+            return newlyAddedHostsWithoutOrigin;
         }
 
         Preconditions.checkArgument(
-                allHosts.keySet().containsAll(newlyAddedHosts),
+                allHosts.keySet().containsAll(newlyAddedHostsWithoutOrigin),
                 "Newly added hosts must be a subset of all hosts, as otherwise we have no way to query them.",
-                SafeArg.of("newlyAddedHosts", CassandraLogHelper.collectionOfHosts(newlyAddedHosts)),
+                SafeArg.of("newlyAddedHosts", CassandraLogHelper.collectionOfHosts(newlyAddedHostsWithoutOrigin)),
                 SafeArg.of("allHosts", CassandraLogHelper.collectionOfHosts(allHosts.keySet())));
 
         Map<CassandraServer, HostIdResult> hostIdsByServerWithoutSoftFailures =
                 fetchHostIdsIgnoringSoftFailures(allHosts);
 
         Map<CassandraServer, HostIdResult> currentServersWithoutSoftFailures = EntryStream.of(
                         hostIdsByServerWithoutSoftFailures)
-                .removeKeys(newlyAddedHosts::contains)
+                .removeKeys(newlyAddedHosts::containsKey)
                 .toMap();
         Map<CassandraServer, HostIdResult> newServersWithoutSoftFailures = EntryStream.of(
                         hostIdsByServerWithoutSoftFailures)
-                .filterKeys(newlyAddedHosts::contains)
+                .filterKeys(newlyAddedHosts::containsKey)
                 .toMap();
 
         // This means currently we've no servers or no server without the get_host_ids endpoint.
         // Therefore, we need to come to a consensus on the new servers.
         if (currentServersWithoutSoftFailures.isEmpty()) {
-            Optional<ConsistentClusterTopology> maybeTopology = maybeGetConsistentClusterTopology(
-                            newServersWithoutSoftFailures)
-                    .agreedTopology();
-            maybeTopology.ifPresent(pastConsistentTopology::set);
-
-            return maybeTopology
-                    .<Set<CassandraServer>>map(topology ->
-                            Sets.difference(newServersWithoutSoftFailures.keySet(), topology.serversInConsensus()))
-                    .orElseGet(newServersWithoutSoftFailures::keySet);
+            ClusterTopologyResult topologyResultFromNewServers =
+                    maybeGetConsistentClusterTopology(newServersWithoutSoftFailures);
+            Map<CassandraServer, HostIdResult> newServersFromConfig = EntryStream.of(newServersWithoutSoftFailures)
+                    .filterKeys(server -> newlyAddedHosts.get(server) == CassandraServerOrigin.CONFIG)
+                    .toMap();
+            return getNewHostsWithInconsistentTopologiesFromTopologyResult(
+                    topologyResultFromNewServers,
+                    newServersWithoutSoftFailures,
+                    newServersFromConfig,
+                    newlyAddedHostsWithoutOrigin,
+                    allHosts.keySet());
         }
 
         // If a consensus can be reached from the current servers, filter all new servers which have the same set of
-        // host ids. Accept dissent as such, but permit
+        // host ids. Accept dissent as such, but permit new servers if they are in quorum _and_ match the previously
+        // accepted set of host IDs
         ClusterTopologyResult topologyFromCurrentServers =
                 maybeGetConsistentClusterTopology(currentServersWithoutSoftFailures);
-        switch (topologyFromCurrentServers.type()) {
+
+        return getNewHostsWithInconsistentTopologiesFromTopologyResult(
+                topologyFromCurrentServers,
+                newServersWithoutSoftFailures,
+                newServersWithoutSoftFailures,
+                newlyAddedHosts.keySet(),
+                allHosts.keySet());
+    }
+
+    private Set<CassandraServer> getNewHostsWithInconsistentTopologiesFromTopologyResult(
+            ClusterTopologyResult topologyResult,
+            Map<CassandraServer, HostIdResult> newServersWithoutSoftFailures,
+            Map<CassandraServer, HostIdResult> serversToConsiderWhenNoQuorumPresent,
+            Set<CassandraServer> newlyAddedHosts,
+            Set<CassandraServer> allHosts) {
+        switch (topologyResult.type()) {
             case CONSENSUS:
                 Preconditions.checkState(
-                        topologyFromCurrentServers.agreedTopology().isPresent(),
+                        topologyResult.agreedTopology().isPresent(),
                         "Expected to have a consistent topology for a CONSENSUS result, but did not.");
                 ConsistentClusterTopology topology =
-                        topologyFromCurrentServers.agreedTopology().get();
+                        topologyResult.agreedTopology().get();
                 pastConsistentTopology.set(topology);
                 return EntryStream.of(newServersWithoutSoftFailures)
                         .removeValues(result -> result.type() == HostIdResult.Type.SUCCESS
@@ -196,43 +216,43 @@ Set<CassandraServer> getNewHostsWithInconsistentTopologies(
                     return newServersWithoutSoftFailures.keySet();
                 }
                 Optional<ConsistentClusterTopology> maybeTopology = maybeGetConsistentClusterTopology(
-                                newServersWithoutSoftFailures)
+                                serversToConsiderWhenNoQuorumPresent)
                         .agreedTopology();
                 if (maybeTopology.isEmpty()) {
                     log.info(
-                            "No quorum was detected among old servers, and new servers were also not in"
-                                    + " agreement. Not adding new servers in this case.",
+                            "No quorum was detected in original set of servers, and the filtered set of servers were"
+                                    + " also not in agreement. Not adding new servers in this case.",
                             SafeArg.of("newServers", CassandraLogHelper.collectionOfHosts(newlyAddedHosts)),
-                            SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts.keySet())));
+                            SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts)));
                     return newServersWithoutSoftFailures.keySet();
                 }
                 ConsistentClusterTopology newNodesAgreedTopology = maybeTopology.get();
                 if (!newNodesAgreedTopology
                         .hostIds()
                         .equals(pastConsistentTopology.get().hostIds())) {
                     log.info(
-                            "No quorum was detected among old servers. While new servers could reach a consensus, this"
-                                + " differed from the last agreed value among the old servers. Not adding new servers"
-                                + " in this case.",
+                            "No quorum was detected among the original set of servers. While a filtered set of"
+                                    + " servers could reach a consensus, this differed from the last agreed value"
+                                    + " among the old servers. Not adding new servers in this case.",
                             SafeArg.of("pastConsistentTopology", pastConsistentTopology.get()),
                             SafeArg.of("newNodesAgreedTopology", newNodesAgreedTopology),
                             SafeArg.of("newServers", CassandraLogHelper.collectionOfHosts(newlyAddedHosts)),
-                            SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts.keySet())));
+                            SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts)));
                     return newServersWithoutSoftFailures.keySet();
                 }
                 log.info(
-                        "No quorum was detected among old servers. New servers reached a consensus that matched the"
-                            + " last agreed value among the old servers. Adding new servers that were in consensus.",
+                        "No quorum was detected among the original set of servers. A filtered set of servers reached"
+                                + " a consensus that matched the last agreed value among the old servers. Adding new"
+                                + " servers that were in consensus.",
                         SafeArg.of("pastConsistentTopology", pastConsistentTopology.get()),
                         SafeArg.of("newNodesAgreedTopology", newNodesAgreedTopology),
                         SafeArg.of("newServers", CassandraLogHelper.collectionOfHosts(newlyAddedHosts)),
-                        SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts.keySet())));
+                        SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts)));
                 return Sets.difference(
                         newServersWithoutSoftFailures.keySet(), newNodesAgreedTopology.serversInConsensus());
             default:
                 throw new SafeIllegalStateException(
-                        "Unexpected cluster topology result type",
-                        SafeArg.of("type", topologyFromCurrentServers.type()));
+                        "Unexpected cluster topology result type", SafeArg.of("type", topologyResult.type()));
         }
     }
 u}(jt (347834e520b6630a9fcfab41ec1f38b07872e94fju `atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/LightweightOppToken.javaju modifiedju K ju K	j u K	j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FLightweightOppToken.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -45,15 +45,6 @@ public static LightweightOppToken serialize(Token token) {
         return new LightweightOppToken(bytes);
     }
 
-    public static LightweightOppToken getLowerExclusive(Range<LightweightOppToken> range) {
-        Preconditions.checkArgument(
-                !range.hasLowerBound() || range.lowerBoundType().equals(BoundType.OPEN),
-                "Token range lower bound should be open",
-                SafeArg.of("range", range));
-
-        return range.hasLowerBound() ? range.lowerEndpoint() : new LightweightOppToken(new byte[0]);
-    }
-
     public static LightweightOppToken getUpperInclusive(Range<LightweightOppToken> range) {
         Preconditions.checkArgument(
                 !range.hasUpperBound() || range.upperBoundType().equals(BoundType.CLOSED),u}(jt (c52d2d055598765a8eaf2152beff312bf3167cddju batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaju modifiedju KBju K'j u Kij!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X'  @@ -24,6 +24,7 @@
 import com.google.common.collect.Interner;
 import com.google.common.collect.Interners;
 import com.google.common.collect.Iterables;
+import com.google.common.collect.Maps;
 import com.google.common.collect.Range;
 import com.google.common.collect.RangeMap;
 import com.google.common.collect.Sets;
@@ -35,14 +36,19 @@
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClient;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraLogHelper;
+import com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraUtils;
 import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.base.FunctionCheckedException;
 import com.palantir.common.base.Throwables;
+import com.palantir.common.exception.AtlasDbDependencyException;
 import com.palantir.common.pooling.PoolingContainer;
 import com.palantir.common.streams.KeyedStream;
+import com.palantir.logsafe.Arg;
+import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.SafeLoggable;
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -59,9 +65,9 @@
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
-import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Optional;
+import java.util.PrimitiveIterator.OfInt;
 import java.util.Random;
 import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
@@ -70,6 +76,7 @@
 import java.util.function.Predicate;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import java.util.stream.Stream;
 import org.apache.cassandra.thrift.EndpointDetails;
 import org.apache.cassandra.thrift.TokenRange;
@@ -117,23 +124,10 @@ public CassandraService(
         this.hostnameByIpSupplier = Suppliers.memoizeWithExpiration(hostnamesByIpSupplier::get, 1, TimeUnit.MINUTES);
     }
 
-    public static CassandraService createInitialized(
-            MetricsManager metricsManager,
-            CassandraKeyValueServiceConfig config,
-            Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig,
-            Blacklist blacklist,
-            CassandraClientPoolMetrics poolMetrics) {
-        CassandraService cassandraService =
-                new CassandraService(metricsManager, config, runtimeConfig, blacklist, poolMetrics);
-        cassandraService.cacheInitialCassandraHosts();
-        cassandraService.refreshTokenRangesAndGetServers();
-        return cassandraService;
-    }
-
     @Override
     public void close() {}
 
-    public ImmutableSet<CassandraServer> refreshTokenRangesAndGetServers() {
+    public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAndGetServers() {
         // explicitly not using immutable builders to deduplicate nodes
         Set<CassandraServer> servers = new HashSet<>();
         Map<CassandraServer, String> hostToDatacentersThisRefresh = new HashMap<>();
@@ -184,7 +178,7 @@ public ImmutableSet<CassandraServer> refreshTokenRangesAndGetServers() {
             tokenMap = tokensInterner.intern(newTokenRing.build());
             hostToDatacenter = ImmutableMap.copyOf(hostToDatacentersThisRefresh);
             logHostToDatacenterMapping(hostToDatacenter);
-            return ImmutableSet.copyOf(servers);
+            return CassandraServerOrigin.mapAllServersToOrigin(servers, CassandraServerOrigin.TOKEN_RANGE);
         } catch (Exception e) {
             log.info(
                     "Couldn't grab new token ranges for token aware cassandra mapping. We will retry in {} seconds.",
@@ -193,24 +187,30 @@ public ImmutableSet<CassandraServer> refreshTokenRangesAndGetServers() {
 
             // Attempt to re-resolve addresses from the configuration; this is important owing to certain race
             // conditions where the entire pool becomes invalid between refreshes.
-            ImmutableSet<CassandraServer> resolvedConfigAddresses = getCurrentServerListFromConfig();
-
-            ImmutableSet<CassandraServer> lastKnownAddresses = tokenMap.asMapOfRanges().values().stream()
-                    .flatMap(Collection::stream)
-                    .collect(ImmutableSet.toImmutableSet());
-
-            return Sets.union(resolvedConfigAddresses, lastKnownAddresses).immutableCopy();
+            ImmutableMap<CassandraServer, CassandraServerOrigin> resolvedConfigAddresses =
+                    getCurrentServerListFromConfig();
+
+            ImmutableMap<CassandraServer, CassandraServerOrigin> lastKnownAddresses =
+                    CassandraServerOrigin.mapAllServersToOrigin(
+                            tokenMap.asMapOfRanges().values().stream().flatMap(Collection::stream),
+                            CassandraServerOrigin.LAST_KNOWN);
+
+            return ImmutableMap.<CassandraServer, CassandraServerOrigin>builder()
+                    .putAll(lastKnownAddresses)
+                    .putAll(resolvedConfigAddresses)
+                    .buildKeepingLast();
         }
     }
 
     /**
      * It is expected that config provides list of servers that are directly reachable and do not require special IP
      * resolution.
      * */
-    public ImmutableSet<CassandraServer> getCurrentServerListFromConfig() {
-        return getServersSocketAddressesFromConfig().stream()
-                .map(cassandraHost -> CassandraServer.of(cassandraHost.getHostString(), cassandraHost))
-                .collect(ImmutableSet.toImmutableSet());
+    public ImmutableMap<CassandraServer, CassandraServerOrigin> getCurrentServerListFromConfig() {
+        return CassandraServerOrigin.mapAllServersToOrigin(
+                getServersSocketAddressesFromConfig().stream()
+                        .map(cassandraHost -> CassandraServer.of(cassandraHost.getHostString(), cassandraHost)),
+                CassandraServerOrigin.CONFIG);
     }
 
     private ImmutableSet<InetSocketAddress> getServersSocketAddressesFromConfig() {
@@ -306,17 +306,26 @@ private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) th
     }
 
     private int getKnownPort() throws UnknownHostException {
-        Set<Integer> allKnownPorts = Stream.concat(
+        // Avoid allocations and intermediate collection as this is on hot path
+        return only(Stream.concat(
                         currentPools.keySet().stream().map(CassandraServer::proxy),
                         getServersSocketAddressesFromConfig().stream())
-                .map(InetSocketAddress::getPort)
-                .collect(Collectors.toSet());
+                .mapToInt(InetSocketAddress::getPort));
+    }
 
-        if (allKnownPorts.size() == 1) { // if everyone is on one port, try and use that
-            return Iterables.getOnlyElement(allKnownPorts);
-        } else {
+    @VisibleForTesting
+    static int only(IntStream intStream) throws UnknownHostException {
+        OfInt iterator = intStream.iterator();
+        if (!iterator.hasNext()) {
             throw new UnknownHostException("No single known port");
         }
+        int port = iterator.next();
+        while (iterator.hasNext()) {
+            if (port != iterator.next()) {
+                throw new UnknownHostException("No single known port");
+            }
+        }
+        return port;
     }
 
     private ImmutableSet<CassandraServer> getHostsFor(byte[] key) {
@@ -381,8 +390,7 @@ public List<PoolingContainer<CassandraClient>> getAllNonBlacklistedHosts() {
     }
 
     public CassandraClientPoolingContainer getRandomGoodHost() {
-        return getRandomGoodHostForPredicate(address -> true)
-                .orElseThrow(() -> new SafeIllegalStateException("No hosts available."));
+        return getRandomGoodHostForPredicate(address -> true).orElseThrow(NoHostsAvailableException::new);
     }
 
     private String getRingViewDescription() {
@@ -412,9 +420,8 @@ Set<CassandraServer> maybeFilterLocalHosts(Set<CassandraServer> hosts) {
     @VisibleForTesting
     Optional<CassandraServer> getRandomHostByActiveConnections(Set<CassandraServer> desiredHosts) {
         Set<CassandraServer> localFilteredHosts = maybeFilterLocalHosts(desiredHosts);
-        ImmutableMap<CassandraServer, CassandraClientPoolingContainer> matchingPools = currentPools.entrySet().stream()
-                .filter(e -> localFilteredHosts.contains(e.getKey()))
-                .collect(ImmutableMap.toImmutableMap(Entry::getKey, Entry::getValue));
+        Map<CassandraServer, CassandraClientPoolingContainer> matchingPools =
+                ImmutableMap.copyOf(Maps.filterKeys(currentPools, localFilteredHosts::contains));
         if (matchingPools.isEmpty()) {
             return Optional.empty();
         }
@@ -504,7 +511,8 @@ public CassandraClientPoolingContainer removePool(CassandraServer removedServerA
     }
 
     public void cacheInitialCassandraHosts() {
-        ImmutableSet<CassandraServer> thriftSocket = getCurrentServerListFromConfig();
+        ImmutableSet<CassandraServer> thriftSocket =
+                getCurrentServerListFromConfig().keySet();
 
         cassandraHosts = thriftSocket.stream()
                 .sorted(Comparator.comparing(CassandraServer::cassandraHostName))
@@ -520,4 +528,23 @@ public void clearInitialCassandraHosts() {
     void overrideHostToDatacenterMapping(ImmutableMap<CassandraServer, String> hostToDatacenterOverride) {
         this.hostToDatacenter = hostToDatacenterOverride;
     }
+
+    private static final class NoHostsAvailableException extends AtlasDbDependencyException implements SafeLoggable {
+
+        private static final String MESSAGE = "No hosts available.";
+
+        NoHostsAvailableException() {
+            super(MESSAGE);
+        }
+
+        @Override
+        public @Safe String getLogMessage() {
+            return MESSAGE;
+        }
+
+        @Override
+        public List<Arg<?>> getArgs() {
+            return List.of();
+        }
+    }
 }uU      }(jt (d1ab0bea195441a4d5d2dd7671b17f9e6980690aju Zatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/BackupTestUtils.javaju modifiedju K ju K>j u K>j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FBackupTestUtils.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FBackupTestUtils.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FBackupTestUtils.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u Xl  @@ -16,50 +16,18 @@
 
 package com.palantir.atlasdb.cassandra.backup;
 
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
-
-import com.datastax.driver.core.KeyspaceMetadata;
-import com.datastax.driver.core.TableMetadata;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Range;
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs;
 import com.palantir.atlasdb.cassandra.ImmutableCqlCapableConfig;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.timelock.api.Namespace;
 import java.net.InetSocketAddress;
-import java.util.Arrays;
 import java.util.List;
 import java.util.stream.Collectors;
 import java.util.stream.Stream;
-import javax.xml.bind.DatatypeConverter;
 
 @SuppressWarnings("DnsLookup")
 public final class BackupTestUtils {
     public static final int TEST_THRIFT_PORT = 44;
     public static final int TEST_CQL_PORT = 45;
 
-    static final InetSocketAddress HOST_1 = new InetSocketAddress("cassandra-1", 9042);
-    static final InetSocketAddress HOST_2 = new InetSocketAddress("cassandra-2", 9042);
-    static final InetSocketAddress HOST_3 = new InetSocketAddress("cassandra-3", 9042);
-    static final ImmutableList<InetSocketAddress> HOSTS = ImmutableList.of(HOST_1, HOST_2, HOST_3);
-    static final Namespace NAMESPACE = Namespace.of("keyspace");
-
-    static final LightweightOppToken TOKEN_1 = BackupTestUtils.lightweightOppToken("1111");
-    static final LightweightOppToken TOKEN_2 = BackupTestUtils.lightweightOppToken("5555");
-    static final LightweightOppToken TOKEN_3 = BackupTestUtils.lightweightOppToken("9999");
-
-    static final Range<LightweightOppToken> RANGE_AT_MOST_1 = Range.atMost(TOKEN_1);
-    static final Range<LightweightOppToken> RANGE_1_TO_2 = Range.openClosed(TOKEN_1, TOKEN_2);
-    static final Range<LightweightOppToken> RANGE_2_TO_3 = Range.openClosed(TOKEN_2, TOKEN_3);
-    static final Range<LightweightOppToken> RANGE_GREATER_THAN_3 = Range.greaterThan(TOKEN_3);
-
-    static final CassandraServersConfigs.CqlCapableConfig CASSANDRA_SERVERS_CONFIG = ImmutableCqlCapableConfig.builder()
-            .addAllCqlHosts(HOSTS)
-            .addAllThriftHosts(HOSTS)
-            .build();
-
     private BackupTestUtils() {
         // utility
     }
@@ -73,36 +41,6 @@ public static CassandraServersConfigs.CqlCapableConfig cqlCapableConfig(String..
                 .build();
     }
 
-    static LightweightOppToken lightweightOppToken(String hexString) {
-        return new LightweightOppToken(DatatypeConverter.parseHexBinary(hexString));
-    }
-
-    static void mockTokenRanges(CqlSession cqlSession, CqlMetadata cqlMetadata) {
-        when(cqlMetadata.getTokenRanges())
-                .thenReturn(ImmutableSet.of(RANGE_AT_MOST_1, RANGE_1_TO_2, RANGE_2_TO_3, RANGE_GREATER_THAN_3));
-        when(cqlSession.getMetadata()).thenReturn(cqlMetadata);
-    }
-
-    static List<TableMetadata> mockTableMetadatas(KeyspaceMetadata keyspaceMetadata, String... tableNames) {
-        return Arrays.stream(tableNames)
-                .map(tableName -> mockTableMetadata(keyspaceMetadata, tableName))
-                .collect(Collectors.toList());
-    }
-
-    static KeyspaceMetadata mockKeyspaceMetadata(CqlMetadata cqlMetadata) {
-        KeyspaceMetadata keyspaceMetadata = mock(KeyspaceMetadata.class);
-        when(keyspaceMetadata.getName()).thenReturn(NAMESPACE.value());
-        when(cqlMetadata.getKeyspaceMetadata(NAMESPACE)).thenReturn(keyspaceMetadata);
-        return keyspaceMetadata;
-    }
-
-    private static TableMetadata mockTableMetadata(KeyspaceMetadata keyspaceMetadata, String tableName) {
-        TableMetadata tableMetadata = mock(TableMetadata.class);
-        when(tableMetadata.getKeyspace()).thenReturn(keyspaceMetadata);
-        when(tableMetadata.getName()).thenReturn(tableName);
-        return tableMetadata;
-    }
-
     private static List<InetSocketAddress> constructHosts(int port, String[] hosts) {
         return Stream.of(hosts)
                 .map(host -> InetSocketAddress.createUnresolved(host, port))u}(jt (763b08ac1b83e32f47a732c9e8110d8d4e87cb42ju catlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/ClusterMetadataUtilsTest.javaju removedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FClusterMetadataUtilsTest.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FClusterMetadataUtilsTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FClusterMetadataUtilsTest.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u Xf"  @@ -1,176 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.Mockito.when;
-
-import com.datastax.driver.core.CassandraTokenRanges;
-import com.datastax.driver.core.Metadata;
-import com.datastax.driver.core.Token;
-import com.datastax.driver.core.TokenRange;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Range;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.common.streams.KeyedStream;
-import java.util.Set;
-import java.util.TreeMap;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.Mock;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@RunWith(MockitoJUnitRunner.class)
-public class ClusterMetadataUtilsTest {
-    private static final String TOKEN_1 = "1df388e2a10c81a4339ab9304497385b";
-    private static final String TOKEN_2 = "974ef05bdfaf14b88cbe12bce50e5023";
-    private static final String TOKEN_3 = "d9ce4afeafac5781fb101e8bef4703f8";
-    private static final TokenRange FIRST_RANGE = CassandraTokenRanges.create(TOKEN_1, TOKEN_2);
-    private static final TokenRange SECOND_RANGE = CassandraTokenRanges.create(TOKEN_2, TOKEN_3);
-    private static final TokenRange WRAPAROUND_RANGE = CassandraTokenRanges.create(TOKEN_3, TOKEN_1);
-    private static final Token SECOND_TOKEN = SECOND_RANGE.getStart();
-    private static final Token THIRD_TOKEN = WRAPAROUND_RANGE.getStart();
-
-    @Mock
-    private Metadata metadata;
-
-    private TreeMap<LightweightOppToken, Range<LightweightOppToken>> tokenRangesByStart;
-
-    @Before
-    public void setUp() {
-        when(metadata.getTokenRanges()).thenReturn(ImmutableSet.of(FIRST_RANGE, SECOND_RANGE, WRAPAROUND_RANGE));
-        CqlMetadata cqlMetadata = new CqlMetadata(metadata);
-
-        tokenRangesByStart = KeyedStream.of(cqlMetadata.getTokenRanges())
-                .mapKeys(LightweightOppToken::getLowerExclusive)
-                .collectTo(TreeMap::new);
-    }
-
-    @Test
-    public void testMinimalSetOfTokenRanges() {
-        LightweightOppToken partitionKeyToken = getToken("9000");
-        LightweightOppToken lastTokenBeforePartitionKey = tokenRangesByStart.lowerKey(partitionKeyToken);
-
-        Set<Range<LightweightOppToken>> tokenRanges = ClusterMetadataUtils.getMinimalSetOfRangesForTokens(
-                ImmutableSet.of(partitionKeyToken), tokenRangesByStart);
-        assertThat(tokenRanges).hasSize(1);
-        Range<LightweightOppToken> onlyRange = tokenRanges.iterator().next();
-        assertThat(onlyRange.lowerEndpoint()).isEqualTo(lastTokenBeforePartitionKey);
-        assertThat(onlyRange.upperEndpoint()).isEqualTo(partitionKeyToken);
-    }
-
-    @Test
-    public void testMinTokenIsStart() {
-        LightweightOppToken nestedEndKey = getToken("0001");
-        LightweightOppToken outerEndKey = getToken("0002");
-        Range<LightweightOppToken> nested = Range.atMost(nestedEndKey);
-        Range<LightweightOppToken> outer = Range.atMost(outerEndKey);
-        assertThat(ClusterMetadataUtils.findLatestEndingRange(nested, outer)).isEqualTo(outer);
-    }
-
-    @Test
-    public void testUnboundedRangeIsLatestEnding() {
-        LightweightOppToken duplicatedStartKey = getToken("0001");
-        LightweightOppToken normalEndKey = getToken("000101");
-        Range<LightweightOppToken> nested = Range.openClosed(duplicatedStartKey, normalEndKey);
-        Range<LightweightOppToken> outer = Range.greaterThan(duplicatedStartKey);
-        assertThat(ClusterMetadataUtils.findLatestEndingRange(nested, outer)).isEqualTo(outer);
-    }
-
-    @Test
-    public void testSmallTokenRangeDedupe() {
-        LightweightOppToken partitionKeyToken1 = getToken("9000");
-        LightweightOppToken partitionKeyToken2 = getToken("9001");
-        Set<Range<LightweightOppToken>> tokenRanges = ClusterMetadataUtils.getMinimalSetOfRangesForTokens(
-                ImmutableSet.of(partitionKeyToken1, partitionKeyToken2), tokenRangesByStart);
-        assertThat(tokenRanges).hasSize(1);
-        Range<LightweightOppToken> onlyRange = tokenRanges.iterator().next();
-        assertThat(onlyRange.lowerEndpoint()).isEqualTo(tokenRangesByStart.lowerKey(partitionKeyToken1));
-        assertThat(onlyRange.upperEndpoint()).isEqualTo(partitionKeyToken2);
-    }
-
-    @Test
-    public void testSmallTokenRangeBeforeFirstVnode() {
-        LightweightOppToken partitionKeyToken = getToken("0010");
-
-        Set<Range<LightweightOppToken>> tokenRanges = ClusterMetadataUtils.getMinimalSetOfRangesForTokens(
-                ImmutableSet.of(partitionKeyToken), tokenRangesByStart);
-        assertThat(tokenRanges).hasSize(2);
-        assertThat(tokenRanges)
-                .containsExactlyInAnyOrder(
-                        Range.atMost(partitionKeyToken), Range.greaterThan(LightweightOppToken.serialize(THIRD_TOKEN)));
-    }
-
-    @Test
-    public void testSmallTokenRangeOnVnode() {
-        LightweightOppToken firstEndToken = tokenRangesByStart.higherKey(tokenRangesByStart.firstKey());
-        LightweightOppToken secondEndToken = tokenRangesByStart.higherKey(firstEndToken);
-        Set<Range<LightweightOppToken>> tokenRanges = ClusterMetadataUtils.getMinimalSetOfRangesForTokens(
-                ImmutableSet.of(secondEndToken), tokenRangesByStart);
-        assertThat(tokenRanges).hasSize(1);
-        Range<LightweightOppToken> onlyRange = tokenRanges.iterator().next();
-        assertThat(onlyRange.lowerEndpoint()).isEqualTo(firstEndToken);
-        assertThat(onlyRange.upperEndpoint()).isEqualTo(secondEndToken);
-    }
-
-    @Test
-    public void testSmallTokenRangeInMiddle() {
-        LightweightOppToken token = getToken("c0ffee");
-        Set<Range<LightweightOppToken>> tokenRanges =
-                ClusterMetadataUtils.getMinimalSetOfRangesForTokens(ImmutableSet.of(token), tokenRangesByStart);
-        assertThat(tokenRanges).hasSize(1);
-        Range<LightweightOppToken> onlyRange = tokenRanges.iterator().next();
-        assertThat(onlyRange.lowerEndpoint()).isEqualTo(LightweightOppToken.serialize(SECOND_TOKEN));
-        assertThat(onlyRange.upperEndpoint()).isEqualTo(token);
-    }
-
-    @Test
-    public void testSmallTokenRangeAfterLastVnode() {
-        LightweightOppToken token = getToken("fefe");
-        Set<Range<LightweightOppToken>> tokenRanges =
-                ClusterMetadataUtils.getMinimalSetOfRangesForTokens(ImmutableSet.of(token), tokenRangesByStart);
-        assertThat(tokenRanges).hasSize(1);
-        Range<LightweightOppToken> onlyRange = tokenRanges.iterator().next();
-        assertThat(onlyRange.lowerEndpoint()).isEqualTo(LightweightOppToken.serialize(THIRD_TOKEN));
-        assertThat(onlyRange.upperEndpoint()).isEqualTo(token);
-    }
-
-    @Test
-    public void testRemoveNestedRanges() {
-        LightweightOppToken duplicatedStartKey = getToken("0001");
-        LightweightOppToken nestedEndKey = getToken("000101");
-        LightweightOppToken outerEndKey = getToken("000102");
-        Range<LightweightOppToken> nested = Range.openClosed(duplicatedStartKey, nestedEndKey);
-        Range<LightweightOppToken> outer = Range.openClosed(duplicatedStartKey, outerEndKey);
-        assertThat(ClusterMetadataUtils.findLatestEndingRange(nested, outer)).isEqualTo(outer);
-    }
-
-    @Test
-    public void testRemoveNestedWraparoundAndNonWrapRanges() {
-        LightweightOppToken duplicatedStartKey = getToken("ff");
-        LightweightOppToken nonWrapAround = getToken("ff01");
-        Range<LightweightOppToken> nonWrapAroundRange = Range.openClosed(duplicatedStartKey, nonWrapAround);
-        Range<LightweightOppToken> wrapAroundRange = Range.greaterThan(duplicatedStartKey);
-        assertThat(ClusterMetadataUtils.findLatestEndingRange(nonWrapAroundRange, wrapAroundRange))
-                .isEqualTo(wrapAroundRange);
-    }
-
-    private LightweightOppToken getToken(String hexBinary) {
-        return LightweightOppToken.serialize(CassandraTokenRanges.getToken(hexBinary));
-    }
-}u}(jt (457cedbcc8cc28b66b15ca9f2b4a448b39a3716dju Yatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/CqlClusterTest.javaju removedju K ju K7j u K7j!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlClusterTest.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlClusterTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FCqlClusterTest.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X  @@ -1,55 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import static org.assertj.core.api.Assertions.assertThatCode;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
-
-import com.datastax.driver.core.Cluster;
-import com.datastax.driver.core.Session;
-import com.datastax.driver.core.exceptions.NoHostAvailableException;
-import com.google.common.collect.ImmutableMap;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import java.time.Duration;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.Mock;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@RunWith(MockitoJUnitRunner.class)
-public class CqlClusterTest {
-    @Mock
-    private Cluster cluster;
-
-    @Test
-    public void retriesSessionFetching() {
-        Session session = mock(Session.class);
-
-        when(cluster.connect())
-                .thenThrow(new NoHostAvailableException(ImmutableMap.of()))
-                .thenReturn(session);
-
-        CqlCluster cqlCluster = new CqlCluster(
-                cluster,
-                BackupTestUtils.cqlCapableConfig("host1", "host2"),
-                Namespace.of("namespace"),
-                Duration.ofMillis(50L));
-
-        assertThatCode(cqlCluster::createSessionWithRetry).doesNotThrowAnyException();
-    }
-}u}(jt (51b7bea153d98dfd850c7a9a0c00003bab51b79dju aatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/RepairRangeFetcherTest.javaju removedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRepairRangeFetcherTest.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRepairRangeFetcherTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FRepairRangeFetcherTest.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X!  @@ -1,176 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.anyList;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.when;
-
-import com.datastax.driver.core.KeyspaceMetadata;
-import com.datastax.driver.core.TableMetadata;
-import com.datastax.driver.core.policies.DefaultRetryPolicy;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Range;
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions1TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions2TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions3TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.timestamp.FullyBoundedTimestampRange;
-import java.net.InetSocketAddress;
-import java.util.List;
-import java.util.Map;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.Mock;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@SuppressWarnings("UnstableApiUsage")
-@RunWith(MockitoJUnitRunner.class)
-public class RepairRangeFetcherTest {
-    static final LightweightOppToken OTHER_TOKEN = BackupTestUtils.lightweightOppToken("7777");
-    static final DefaultRetryPolicy POLICY = DefaultRetryPolicy.INSTANCE;
-    static final String TXN_1 = TransactionConstants.TRANSACTION_TABLE.getTableName();
-    static final String TXN_2 = TransactionConstants.TRANSACTIONS2_TABLE.getTableName();
-
-    @Mock
-    private CqlSession cqlSession;
-
-    @Mock
-    private CqlMetadata cqlMetadata;
-
-    private RepairRangeFetcher repairRangeFetcher;
-
-    @Before
-    public void setUp() {
-        KeyspaceMetadata keyspaceMetadata = BackupTestUtils.mockKeyspaceMetadata(cqlMetadata);
-        List<TableMetadata> tableMetadatas = BackupTestUtils.mockTableMetadatas(keyspaceMetadata, TXN_1, TXN_2);
-        when(keyspaceMetadata.getTables()).thenReturn(tableMetadatas);
-
-        BackupTestUtils.mockTokenRanges(cqlSession, cqlMetadata);
-
-        when(cqlSession.retrieveRowKeysAtConsistencyAll(anyList()))
-                .thenReturn(ImmutableSet.of(BackupTestUtils.TOKEN_1, OTHER_TOKEN));
-        when(cqlMetadata.getReplicas(eq(BackupTestUtils.NAMESPACE), any()))
-                .thenReturn(ImmutableSet.copyOf(BackupTestUtils.HOSTS));
-
-        repairRangeFetcher =
-                new RepairRangeFetcher(cqlSession, BackupTestUtils.NAMESPACE, BackupTestUtils.CASSANDRA_SERVERS_CONFIG);
-    }
-
-    @Test
-    public void testRepairOnlyTxn1() {
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions1TableInteraction(range(1L, 10_000_000L), POLICY));
-
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-        assertThat(rangesForRepair.keySet()).containsExactly(TXN_1);
-    }
-
-    @Test
-    public void testRepairOnlyTxn2() {
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions2TableInteraction(range(1L, 10_000_000L), POLICY));
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-        assertThat(rangesForRepair.keySet()).containsExactly(TXN_2);
-    }
-
-    @Test
-    public void testRepairTxn3() {
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions3TableInteraction(range(1L, 10_000_000L)));
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-
-        // Transactions3 is backed by Transactions2 under the hood, so this is the table that will be repaired.
-        assertThat(rangesForRepair.keySet()).containsExactly(TXN_2);
-    }
-
-    @Test
-    public void testRepairBothTxnTables() {
-        List<TransactionsTableInteraction> interactions = ImmutableList.of(
-                new Transactions1TableInteraction(range(1L, 5L), POLICY),
-                new Transactions2TableInteraction(range(6L, 10L), POLICY));
-
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-        assertThat(rangesForRepair.keySet()).containsExactlyInAnyOrder(TXN_1, TXN_2);
-    }
-
-    @Test
-    public void testRepairsEachTableOnceOnly() {
-        List<TransactionsTableInteraction> interactions = ImmutableList.of(
-                new Transactions1TableInteraction(range(1L, 5L), POLICY),
-                new Transactions2TableInteraction(range(6L, 10L), POLICY),
-                new Transactions1TableInteraction(range(11L, 15L), POLICY),
-                new Transactions2TableInteraction(range(16L, 20L), POLICY));
-
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-        assertThat(rangesForRepair.keySet()).containsExactlyInAnyOrder(TXN_1, TXN_2);
-    }
-
-    @Test
-    public void testRepairGivesCorrectTokenRanges() {
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions2TableInteraction(range(1L, 10_000_000L), POLICY));
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-
-        assertThat(rangesForRepair.get(TXN_2).get(BackupTestUtils.HOST_1).asRanges())
-                .containsExactlyInAnyOrder(
-                        Range.atMost(BackupTestUtils.TOKEN_1),
-                        Range.openClosed(BackupTestUtils.TOKEN_2, OTHER_TOKEN),
-                        Range.greaterThan(BackupTestUtils.TOKEN_3));
-    }
-
-    @Test
-    public void testRepairGivesAllReplicas() {
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions2TableInteraction(range(1L, 10_000_000L), POLICY));
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-
-        assertThat(rangesForRepair.get(TXN_2).keySet())
-                .containsExactlyInAnyOrder(BackupTestUtils.HOST_1, BackupTestUtils.HOST_2, BackupTestUtils.HOST_3);
-    }
-
-    @Test
-    public void testRepairGivesTwoReplicasForRF2() {
-        when(cqlMetadata.getReplicas(eq(BackupTestUtils.NAMESPACE), any()))
-                .thenReturn(ImmutableSet.of(BackupTestUtils.HOST_1, BackupTestUtils.HOST_2));
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions2TableInteraction(range(1L, 10_000_000L), POLICY));
-        Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair =
-                repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
-
-        assertThat(rangesForRepair.get(TXN_2).keySet())
-                .containsExactlyInAnyOrder(BackupTestUtils.HOST_1, BackupTestUtils.HOST_2);
-    }
-
-    private static FullyBoundedTimestampRange range(long lower, long upper) {
-        return FullyBoundedTimestampRange.of(Range.closed(lower, upper));
-    }
-}u}(jt (b84ca130f40836ecd3aa93ca383f785f1f62ce8aju `atlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/TokenRangeFetcherTest.javaju removedju K ju Kgj u Kgj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTokenRangeFetcherTest.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTokenRangeFetcherTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTokenRangeFetcherTest.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X  @@ -1,103 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.anyList;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.when;
-
-import com.datastax.driver.core.KeyspaceMetadata;
-import com.datastax.driver.core.TableMetadata;
-import com.google.common.collect.ImmutableRangeSet;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Iterables;
-import com.google.common.collect.Range;
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import java.net.InetSocketAddress;
-import java.util.List;
-import java.util.Map;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.Mock;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@RunWith(MockitoJUnitRunner.class)
-@SuppressWarnings("UnstableApiUsage")
-public class TokenRangeFetcherTest {
-    private static final String TABLE_NAME = "table";
-
-    @Mock
-    private CqlSession cqlSession;
-
-    @Mock
-    private CqlMetadata cqlMetadata;
-
-    private TokenRangeFetcher tokenRangeFetcher;
-
-    @Before
-    public void setUp() {
-        KeyspaceMetadata keyspaceMetadata = BackupTestUtils.mockKeyspaceMetadata(cqlMetadata);
-        List<TableMetadata> tableMetadatas = BackupTestUtils.mockTableMetadatas(keyspaceMetadata, TABLE_NAME);
-        when(keyspaceMetadata.getTable(TABLE_NAME)).thenReturn(Iterables.getOnlyElement(tableMetadatas));
-
-        BackupTestUtils.mockTokenRanges(cqlSession, cqlMetadata);
-
-        when(cqlSession.retrieveRowKeysAtConsistencyAll(anyList()))
-                .thenReturn(ImmutableSet.of(BackupTestUtils.TOKEN_1, BackupTestUtils.TOKEN_2, BackupTestUtils.TOKEN_3));
-
-        tokenRangeFetcher =
-                new TokenRangeFetcher(cqlSession, BackupTestUtils.NAMESPACE, BackupTestUtils.CASSANDRA_SERVERS_CONFIG);
-    }
-
-    @Test
-    public void allNodesGetAllRangesWithThreeNodesAndRF3() {
-        when(cqlMetadata.getReplicas(eq(BackupTestUtils.NAMESPACE), any()))
-                .thenReturn(ImmutableSet.copyOf(BackupTestUtils.HOSTS));
-
-        Map<InetSocketAddress, RangeSet<LightweightOppToken>> tokenRange = tokenRangeFetcher.getTokenRange(TABLE_NAME);
-        assertThat(tokenRange.keySet())
-                .containsExactlyInAnyOrder(BackupTestUtils.HOST_1, BackupTestUtils.HOST_2, BackupTestUtils.HOST_3);
-        BackupTestUtils.HOSTS.forEach(
-                host -> assertThat(tokenRange.get(host)).isEqualTo(ImmutableRangeSet.of(Range.all())));
-    }
-
-    @Test
-    public void testGetTokenRangesWithRF2() {
-        when(cqlMetadata.getReplicas(BackupTestUtils.NAMESPACE, BackupTestUtils.RANGE_AT_MOST_1))
-                .thenReturn(ImmutableSet.of(BackupTestUtils.HOST_3, BackupTestUtils.HOST_1));
-        when(cqlMetadata.getReplicas(BackupTestUtils.NAMESPACE, BackupTestUtils.RANGE_GREATER_THAN_3))
-                .thenReturn(ImmutableSet.of(BackupTestUtils.HOST_3, BackupTestUtils.HOST_1));
-        when(cqlMetadata.getReplicas(BackupTestUtils.NAMESPACE, BackupTestUtils.RANGE_1_TO_2))
-                .thenReturn(ImmutableSet.of(BackupTestUtils.HOST_1, BackupTestUtils.HOST_2));
-        when(cqlMetadata.getReplicas(BackupTestUtils.NAMESPACE, BackupTestUtils.RANGE_2_TO_3))
-                .thenReturn(ImmutableSet.of(BackupTestUtils.HOST_2, BackupTestUtils.HOST_3));
-
-        Map<InetSocketAddress, RangeSet<LightweightOppToken>> tokenRange = tokenRangeFetcher.getTokenRange(TABLE_NAME);
-        assertThat(tokenRange.keySet())
-                .containsExactlyInAnyOrder(BackupTestUtils.HOST_1, BackupTestUtils.HOST_2, BackupTestUtils.HOST_3);
-        assertThat(tokenRange.get(BackupTestUtils.HOST_1).asRanges())
-                .containsExactly(Range.atMost(BackupTestUtils.TOKEN_2), Range.greaterThan(BackupTestUtils.TOKEN_3));
-        assertThat(tokenRange.get(BackupTestUtils.HOST_2).asRanges())
-                .containsExactly(Range.openClosed(BackupTestUtils.TOKEN_1, BackupTestUtils.TOKEN_3));
-        assertThat(tokenRange.get(BackupTestUtils.HOST_3).asRanges())
-                .containsExactly(Range.atMost(BackupTestUtils.TOKEN_1), Range.greaterThan(BackupTestUtils.TOKEN_2));
-    }
-}u}(jt (6226f82e9f09a64da450666e8729b377a20f5b64ju aatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/TransactionAborterTest.javaju removedju K ju MVj u MVj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTransactionAborterTest.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTransactionAborterTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2FTransactionAborterTest.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X@  @@ -1,342 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.cassandra.backup;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.doReturn;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoMoreInteractions;
-import static org.mockito.Mockito.when;
-
-import com.datastax.driver.core.ConsistencyLevel;
-import com.datastax.driver.core.KeyspaceMetadata;
-import com.datastax.driver.core.PreparedStatement;
-import com.datastax.driver.core.ResultSet;
-import com.datastax.driver.core.Row;
-import com.datastax.driver.core.Statement;
-import com.datastax.driver.core.TableMetadata;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.Range;
-import com.palantir.atlasdb.atomic.AtomicValue;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionTableEntries;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionTableEntry;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
-import com.palantir.timestamp.FullyBoundedTimestampRange;
-import java.util.List;
-import java.util.stream.Collectors;
-import java.util.stream.Stream;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.Mock;
-import org.mockito.junit.MockitoJUnitRunner;
-
-@RunWith(MockitoJUnitRunner.class)
-public class TransactionAborterTest {
-    private static final long BACKUP_TIMESTAMP = 123;
-
-    private static final FullyBoundedTimestampRange TIMESTAMP_RANGE =
-            FullyBoundedTimestampRange.of(Range.closed(TransactionConstants.LOWEST_POSSIBLE_START_TS, 200L));
-
-    private static final String TXN_TABLE_NAME = "txn_table";
-    private static final Namespace NAMESPACE = Namespace.of("keyspace");
-
-    @Mock
-    private CqlSession cqlSession;
-
-    @Mock
-    private TransactionsTableInteraction transactionInteraction;
-
-    @Mock
-    private Statement selectStatement;
-
-    @Mock
-    private PreparedStatement preparedAbortStatement;
-
-    @Mock
-    private Statement abortStatement;
-
-    @Mock
-    private PreparedStatement preparedCheckStatement;
-
-    @Mock
-    private Statement checkStatement;
-
-    @Mock
-    private TableMetadata tableMetadata;
-
-    private TransactionAborter transactionAborter;
-
-    @Before
-    public void before() {
-        when(transactionInteraction.getTransactionsTableName()).thenReturn(TXN_TABLE_NAME);
-
-        when(abortStatement.getSerialConsistencyLevel()).thenReturn(ConsistencyLevel.SERIAL);
-        when(transactionInteraction.bindAbortStatement(eq(preparedAbortStatement), any()))
-                .thenReturn(abortStatement);
-
-        when(checkStatement.getSerialConsistencyLevel()).thenReturn(ConsistencyLevel.SERIAL);
-        when(transactionInteraction.bindCheckStatement(eq(preparedCheckStatement), any()))
-                .thenReturn(checkStatement);
-
-        when(tableMetadata.getName()).thenReturn(TXN_TABLE_NAME);
-        KeyspaceMetadata keyspaceMetadata = mock(KeyspaceMetadata.class);
-        when(keyspaceMetadata.getTables()).thenReturn(ImmutableList.of(tableMetadata));
-        CqlMetadata cqlMetadata = mock(CqlMetadata.class);
-        when(cqlMetadata.getKeyspaceMetadata(NAMESPACE)).thenReturn(keyspaceMetadata);
-        when(cqlSession.getMetadata()).thenReturn(cqlMetadata);
-
-        doReturn(ImmutableList.of(selectStatement))
-                .when(transactionInteraction)
-                .createSelectStatementsForScanningFullTimestampRange(any());
-        ResultSet selectResponse = createSelectResponse(ImmutableList.of());
-        when(cqlSession.execute(selectStatement)).thenReturn(selectResponse);
-
-        doReturn(mock(PreparedStatement.class)).when(transactionInteraction).prepareAbortStatement(any(), any());
-        doReturn(mock(PreparedStatement.class)).when(transactionInteraction).prepareCheckStatement(any(), any());
-
-        transactionAborter = new TransactionAborter(cqlSession, NAMESPACE);
-    }
-
-    @Test
-    public void willNotRunAbortWhenNothingToAbort() {
-        transactionAborter.abortTransactions(BACKUP_TIMESTAMP, List.of(transactionInteraction));
-
-        verify(cqlSession, times(1)).execute(selectStatement);
-        verify(cqlSession, times(1)).getMetadata();
-        verifyNoMoreInteractions(cqlSession);
-    }
-
-    @Test
-    public void willNotAbortTimestampsLowerThanBackupTimestamp() {
-        ImmutableList<TransactionTableEntry> rows = ImmutableList.of(
-                TransactionTableEntries.committedLegacy(10L, 20L),
-                TransactionTableEntries.committedTwoPhase(
-                        20L, AtomicValue.committed(TransactionStatusUtils.fromTimestamp(30L))),
-                TransactionTableEntries.committedLegacy(30L, BACKUP_TIMESTAMP - 1));
-        setupAbortTimestampTask(rows, TIMESTAMP_RANGE);
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isZero();
-    }
-
-    @Test
-    public void willNotAbortTimestampsOutsideRange() {
-        ImmutableList<TransactionTableEntry> rows = ImmutableList.of(
-                TransactionTableEntries.committedLegacy(BACKUP_TIMESTAMP + 10, BACKUP_TIMESTAMP + 12),
-                TransactionTableEntries.committedTwoPhase(
-                        BACKUP_TIMESTAMP + 12,
-                        AtomicValue.committed(TransactionStatusUtils.fromTimestamp(BACKUP_TIMESTAMP + 13))),
-                TransactionTableEntries.committedLegacy(BACKUP_TIMESTAMP + 14, BACKUP_TIMESTAMP + 15));
-        setupAbortTimestampTask(rows, FullyBoundedTimestampRange.of(Range.closed(BACKUP_TIMESTAMP + 16, 1000L)));
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isZero();
-    }
-
-    @Test
-    public void willNotAbortTimestampsAlreadyAborted() {
-        ImmutableList<TransactionTableEntry> rows =
-                ImmutableList.of(TransactionTableEntries.explicitlyAborted(BACKUP_TIMESTAMP + 1));
-        setupAbortTimestampTask(rows, TIMESTAMP_RANGE);
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isZero();
-    }
-
-    @Test
-    public void willAbortTimestampInRange() {
-        ImmutableList<TransactionTableEntry> rows = ImmutableList.of(
-                TransactionTableEntries.committedLegacy(BACKUP_TIMESTAMP + 1, BACKUP_TIMESTAMP + 2),
-                TransactionTableEntries.committedTwoPhase(
-                        BACKUP_TIMESTAMP + 3,
-                        AtomicValue.committed(TransactionStatusUtils.fromTimestamp(BACKUP_TIMESTAMP + 4))));
-        setupAbortTimestampTask(rows, FullyBoundedTimestampRange.of(Range.closed(25L, 1000L)));
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isEqualTo(2L);
-    }
-
-    @Test
-    public void willAbortTimestampsHigherThanBackupTimestamp() {
-        ImmutableList<TransactionTableEntry> rows = ImmutableList.of(
-                TransactionTableEntries.committedLegacy(BACKUP_TIMESTAMP + 1, BACKUP_TIMESTAMP + 2),
-                TransactionTableEntries.committedTwoPhase(
-                        BACKUP_TIMESTAMP + 3,
-                        AtomicValue.committed(TransactionStatusUtils.fromTimestamp(BACKUP_TIMESTAMP + 4))));
-        setupAbortTimestampTask(rows, TIMESTAMP_RANGE);
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isEqualTo(2L);
-    }
-
-    @Test
-    public void willAbortTimestampsThatStartBeforeButEndAfterBackupTimestamp() {
-        ImmutableList<TransactionTableEntry> rows = ImmutableList.of(
-                TransactionTableEntries.committedLegacy(BACKUP_TIMESTAMP - 2, BACKUP_TIMESTAMP + 1),
-                TransactionTableEntries.committedTwoPhase(
-                        BACKUP_TIMESTAMP - 1,
-                        AtomicValue.committed(TransactionStatusUtils.fromTimestamp(BACKUP_TIMESTAMP + 2))));
-        setupAbortTimestampTask(rows, TIMESTAMP_RANGE);
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isEqualTo(2L);
-    }
-
-    @Test
-    public void willAbortTimestampsThatStartAfterBackupTimestampAndEndOutsideRange() {
-        long endOfRange = TIMESTAMP_RANGE.inclusiveUpperBound();
-        ImmutableList<TransactionTableEntry> rows = ImmutableList.of(
-                TransactionTableEntries.committedLegacy(BACKUP_TIMESTAMP + 1, endOfRange + 1),
-                TransactionTableEntries.committedTwoPhase(
-                        BACKUP_TIMESTAMP + 2,
-                        AtomicValue.committed(TransactionStatusUtils.fromTimestamp(endOfRange + 2))));
-        setupAbortTimestampTask(rows, TIMESTAMP_RANGE);
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isEqualTo(2L);
-    }
-
-    @Test
-    public void willNotAbortTimestampsThatStartAfterRange() {
-        long endOfRange = TIMESTAMP_RANGE.inclusiveUpperBound();
-        ImmutableList<TransactionTableEntry> rows = ImmutableList.of(
-                TransactionTableEntries.committedLegacy(endOfRange + 1, endOfRange + 2),
-                TransactionTableEntries.committedTwoPhase(
-                        endOfRange + 3, AtomicValue.committed(TransactionStatusUtils.fromTimestamp(endOfRange + 4))));
-        setupAbortTimestampTask(rows, TIMESTAMP_RANGE);
-
-        Stream<TransactionTableEntry> transactionsToAbort =
-                transactionAborter.getTransactionsToAbort(transactionInteraction, tableMetadata, BACKUP_TIMESTAMP);
-        assertThat(transactionsToAbort.count()).isEqualTo(0L);
-    }
-
-    @Test
-    public void executeWithRetryTriesSingleTimeIfAbortSucceeds() {
-        ResultSet abortResponse = createAbortResponse(true);
-        when(cqlSession.execute(abortStatement)).thenReturn(abortResponse);
-
-        Stream<TransactionTableEntry> entries = Stream.of(TransactionTableEntries.committedLegacy(100L, 101L));
-        transactionAborter.executeTransactionAborts(
-                transactionInteraction, preparedAbortStatement, preparedCheckStatement, entries);
-
-        verify(cqlSession).execute(abortStatement);
-    }
-
-    @Test
-    public void executeWithRetryChecksIfAbortWasNotAppliedAndRetriesIfNoMatch() {
-        ResultSet abortResponse1 = createAbortResponse(false);
-        ResultSet abortResponse2 = createAbortResponse(true);
-
-        when(cqlSession.execute(abortStatement)).thenReturn(abortResponse1).thenReturn(abortResponse2);
-
-        Row row = mock(Row.class);
-        ResultSet checkResponse = createSelectResponse(ImmutableList.of(row));
-        when(cqlSession.execute(checkStatement)).thenReturn(checkResponse);
-
-        Stream<TransactionTableEntry> entries = Stream.of(TransactionTableEntries.committedLegacy(100L, 101L));
-        transactionAborter.executeTransactionAborts(
-                transactionInteraction, preparedAbortStatement, preparedCheckStatement, entries);
-
-        verify(cqlSession, times(2)).execute(abortStatement);
-        verify(cqlSession).execute(checkStatement);
-    }
-
-    @Test
-    public void executeWithRetryChecksIfAbortWasNotAppliedAndDoesNotRetryIfEqualsAbortTimestamp() {
-        ResultSet abortResponse = createAbortResponse(false);
-        when(cqlSession.execute(abortStatement)).thenReturn(abortResponse);
-
-        Row row = mock(Row.class);
-        ResultSet checkResponse = createSelectResponse(ImmutableList.of(row));
-
-        TransactionTableEntry entry = TransactionTableEntries.explicitlyAborted(100L);
-        when(cqlSession.execute(checkStatement)).thenReturn(checkResponse);
-        when(transactionInteraction.extractTimestamps(row)).thenReturn(entry);
-
-        TransactionTableEntry notYetAborted = TransactionTableEntries.committedLegacy(100L, 101L);
-        Stream<TransactionTableEntry> entries = Stream.of(notYetAborted);
-        transactionAborter.executeTransactionAborts(
-                transactionInteraction, preparedAbortStatement, preparedCheckStatement, entries);
-
-        verify(cqlSession, times(1)).execute(abortStatement);
-        verify(cqlSession, times(1)).execute(checkStatement);
-    }
-
-    @Test
-    public void executeWithRetryChecksEventuallyFails() {
-        ResultSet abortResponse = createAbortResponse(false);
-        when(cqlSession.execute(abortStatement)).thenReturn(abortResponse);
-
-        Row row = mock(Row.class);
-        ResultSet checkResponse = createSelectResponse(ImmutableList.of(row));
-        when(cqlSession.execute(checkStatement)).thenReturn(checkResponse);
-
-        Stream<TransactionTableEntry> entries = Stream.of(TransactionTableEntries.committedLegacy(100L, 101L));
-
-        assertThatThrownBy(() -> transactionAborter.executeTransactionAborts(
-                        transactionInteraction, preparedAbortStatement, preparedCheckStatement, entries))
-                .isInstanceOf(IllegalStateException.class);
-
-        verify(cqlSession, times(3)).execute(abortStatement);
-        verify(cqlSession, times(3)).execute(checkStatement);
-    }
-
-    private void setupAbortTimestampTask(
-            ImmutableList<TransactionTableEntry> entries, FullyBoundedTimestampRange range) {
-        when(transactionInteraction.getTimestampRange()).thenReturn(range);
-        List<Row> rows = entries.stream()
-                .map(entry -> {
-                    Row row = mock(Row.class);
-                    when(transactionInteraction.extractTimestamps(row)).thenReturn(entry);
-                    return row;
-                })
-                .collect(Collectors.toList());
-        ResultSet selectResponse = createSelectResponse(rows);
-        when(transactionInteraction.createSelectStatementsForScanningFullTimestampRange(any()))
-                .thenReturn(ImmutableList.of(mock(Statement.class)));
-        when(cqlSession.execute(any(Statement.class))).thenReturn(selectResponse);
-    }
-
-    private static ResultSet createAbortResponse(boolean wasApplied) {
-        ResultSet response = mock(ResultSet.class);
-        when(response.wasApplied()).thenReturn(wasApplied);
-        return response;
-    }
-
-    private static ResultSet createSelectResponse(List<Row> transactions) {
-        ResultSet response = mock(ResultSet.class);
-        when(response.iterator()).thenReturn(transactions.iterator());
-        when(response.all()).thenReturn(transactions);
-        return response;
-    }
-}u}(jt (078fdebb7aa6ebff214d94e219894401b3973ddaju xatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions1TableInteractionTest.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteractionTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteractionTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteractionTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u Xg  @@ -33,6 +33,7 @@
 import com.palantir.atlasdb.transaction.encoding.V1EncodingStrategy;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.timestamp.FullyBoundedTimestampRange;
 import java.nio.ByteBuffer;
 import org.apache.commons.codec.binary.Hex;
@@ -57,7 +58,7 @@ public void cellEncodingTest() {
     public void valueEncodingTest() {
         byte[] actualValue =
                 V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(111L, TransactionStatusUtils.fromTimestamp(222L));
-        byte[] abort = V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(1L, TransactionConstants.ABORTED);
+        byte[] abort = V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(1L, TransactionStatus.aborted());
 
         assertThat(Transactions1TableInteraction.encodeCommitTimestamp(222L)).isEqualTo(ByteBuffer.wrap(actualValue));
         assertThat(Transactions1TableInteraction.encodeCommitTimestamp(TransactionConstants.FAILED_COMMIT_TS))u}(jt (665255398e90af7633b7ed78d422f68bbdb494e2ju xatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions2TableInteractionTest.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions2TableInteractionTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions2TableInteractionTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions2TableInteractionTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -33,7 +33,7 @@
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraConstants;
 import com.palantir.atlasdb.transaction.encoding.TicketsEncodingStrategy;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.timestamp.FullyBoundedTimestampRange;
 import java.nio.ByteBuffer;
 import java.util.ArrayList;
@@ -128,7 +128,7 @@ private static Row createRow(long start, long commit) {
         when(row.getBytes(CassandraConstants.COLUMN)).thenReturn(ByteBuffer.wrap(cell.getColumnName()));
         when(row.getBytes(CassandraConstants.VALUE))
                 .thenReturn(ByteBuffer.wrap(TicketsEncodingStrategy.INSTANCE.encodeCommitStatusAsValue(
-                        start, TransactionStatuses.committed(commit))));
+                        start, TransactionStatus.committed(commit))));
         return row;
     }
 u}(jt (6c8488c0b734a2196aa6268e3b1b4e173ea36688ju xatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions3TableInteractionTest.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteractionTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteractionTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteractionTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -37,7 +37,6 @@
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.timestamp.FullyBoundedTimestampRange;
 import java.nio.ByteBuffer;
 import java.util.ArrayList;
@@ -68,8 +67,7 @@ public void extractCommittedTimestampTest() {
         TransactionTableEntryAssertions.assertTwoPhase(entry, (startTs, commitValue) -> {
             assertThat(startTs).isEqualTo(150L);
             assertThat(commitValue.isCommitted()).isTrue();
-            assertThat(TransactionStatuses.getCommitTimestamp(commitValue.value()))
-                    .hasValue(200L);
+            assertThat(commitValue.value()).isEqualTo(TransactionStatus.committed(200L));
         });
     }
 
@@ -80,8 +78,7 @@ public void extractStagingCommitTimestampTest() {
         TransactionTableEntryAssertions.assertTwoPhase(entry, (startTs, commitValue) -> {
             assertThat(startTs).isEqualTo(150L);
             assertThat(commitValue.isCommitted()).isFalse();
-            assertThat(TransactionStatuses.getCommitTimestamp(commitValue.value()))
-                    .hasValue(200L);
+            assertThat(commitValue.value()).isEqualTo(TransactionStatus.committed(200L));
         });
     }
 u}(jt (81558f1f4edc8bff964c4e8ca571ba37e5f3d881ju datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolTest.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X
  @@ -448,14 +448,15 @@ public void throwsWhenTryingToAddServerPresentInCurrentServers() {
         setCassandraServersTo(CASS_SERVER_1, CASS_SERVER_2);
 
         CassandraClientPoolImpl pool = createClientPool();
-        Set<CassandraServer> serversToAdd = Set.of(CASS_SERVER_1);
+        ImmutableMap<CassandraServer, CassandraServerOrigin> serversToAdd =
+                ImmutableMap.of(CASS_SERVER_1, CassandraServerOrigin.TOKEN_RANGE);
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2);
         assertThatLoggableExceptionThrownBy(
                         () -> pool.validateNewHostsTopologiesAndMaybeAddToPool(poolServers, serversToAdd))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("The current pool of servers should not have any server(s) that are being added.")
                 .hasExactlyArgs(
-                        SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd)),
+                        SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())),
                         SafeArg.of("currentServers", CassandraLogHelper.collectionOfHosts(poolServers.keySet())));
     }
 
@@ -470,9 +471,9 @@ public void shutsDownHostsBeyondAbsenceTolerance() {
         CassandraClientPoolingContainer container1 = currentPoolSnapshot.get(CASS_SERVER_1);
         verifyNoInteractions(container1);
 
-        cassandraClientPool.setServersInPoolTo(ImmutableSet.of(CASS_SERVER_3));
+        cassandraClientPool.setServersInPoolTo(ImmutableMap.of(CASS_SERVER_3, CassandraServerOrigin.TOKEN_RANGE));
         // The refresh will mark absence of host1 beyond limit of tolerance
-        cassandraClientPool.setServersInPoolTo(ImmutableSet.of(CASS_SERVER_3));
+        cassandraClientPool.setServersInPoolTo(ImmutableMap.of(CASS_SERVER_3, CassandraServerOrigin.TOKEN_RANGE));
         assertThat(cassandraClientPool.getCurrentPools()).containsOnlyKeys(CASS_SERVER_3);
         verify(container1).shutdownPooling();
     }
@@ -487,7 +488,9 @@ private CassandraClientPoolingContainer getCassandraContainerFromInvocation(Invo
 
     private void setCassandraServersTo(CassandraServer... servers) {
         when(cassandra.refreshTokenRangesAndGetServers())
-                .thenReturn(Arrays.stream(servers).collect(ImmutableSet.toImmutableSet()));
+                .thenReturn(Arrays.stream(servers)
+                        .collect(ImmutableMap.toImmutableMap(
+                                Function.identity(), _v -> CassandraServerOrigin.TOKEN_RANGE)));
     }
 
     private CassandraClientPoolImpl createClientPool() {
@@ -665,9 +668,10 @@ private void setupThriftServers(Set<InetSocketAddress> servers) {
                 ImmutableDefaultConfig.builder().addAllThriftHosts(servers).build();
         when(runtimeConfig.servers()).thenReturn(config);
         when(cassandra.getCurrentServerListFromConfig())
-                .thenReturn(config.accept(CassandraServersConfigs.ThriftHostsExtractingVisitor.INSTANCE).stream()
-                        .map(CassandraServer::of)
-                        .collect(ImmutableSet.toImmutableSet()));
+                .thenReturn(CassandraServerOrigin.mapAllServersToOrigin(
+                        config.accept(CassandraServersConfigs.ThriftHostsExtractingVisitor.INSTANCE).stream()
+                                .map(CassandraServer::of),
+                        CassandraServerOrigin.CONFIG));
     }
 
     private void setupHostsWithConsistentTopology() {u}(jt (3c2278c182bf5531073adaa0f330188e64592508ju fatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraServerOriginTest.javaju addedju KHju K j u KHj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XU
  @@ -0,0 +1,72 @@
+/*
+ * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
+import java.net.InetSocketAddress;
+import java.util.Map;
+import java.util.Set;
+import java.util.stream.Stream;
+import org.junit.Test;
+
+public final class CassandraServerOriginTest {
+
+    private static final CassandraServer SERVER_1 = createCassandraServer("serverOne");
+    private static final CassandraServer SERVER_2 = createCassandraServer("serverTwo");
+    private static final CassandraServer SERVER_3 = createCassandraServer("serverThree");
+
+    @Test
+    public void mapAllServersToOriginFromServerStreamDeduplicatesInput() {
+        CassandraServer cloneOfServer1 = createCassandraServer(SERVER_1.cassandraHostName());
+        CassandraServerOrigin origin = CassandraServerOrigin.CONFIG;
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(
+                        Stream.of(SERVER_1, SERVER_2, SERVER_3, cloneOfServer1, SERVER_2, SERVER_3, SERVER_2), origin))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(SERVER_1, origin, SERVER_2, origin, SERVER_3, origin));
+    }
+
+    @Test
+    public void mapAllServersToOriginFromServerSetReturnsMapWithAllSetElementsAsKeysAndAUniqueValue() {
+        CassandraServerOrigin origin = CassandraServerOrigin.TOKEN_RANGE;
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Set.of(SERVER_1, SERVER_2, SERVER_3), origin))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(SERVER_1, origin, SERVER_2, origin, SERVER_3, origin));
+    }
+
+    @Test
+    public void mapAllServersToOriginFromServerStreamWithUniqueElementsReturnsMapWithAllElementsAndAUniqueValue() {
+        CassandraServerOrigin origin = CassandraServerOrigin.LAST_KNOWN;
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Stream.of(SERVER_1, SERVER_2, SERVER_3), origin))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(SERVER_1, origin, SERVER_2, origin, SERVER_3, origin));
+    }
+
+    @Test
+    public void mapAllServersToOriginFromServerStreamReturnsEmptyMapOnEmptyStream() {
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Stream.empty(), CassandraServerOrigin.CONFIG))
+                .isEmpty();
+    }
+
+    @Test
+    public void mapAllServersToOriginFromSetStreamReturnsEmptyMapOnEmptySet() {
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Set.of(), CassandraServerOrigin.LAST_KNOWN))
+                .isEmpty();
+    }
+
+    private static CassandraServer createCassandraServer(String hostname) {
+        return CassandraServer.of(hostname, InetSocketAddress.createUnresolved(hostname, 88));
+    }
+}u}(jt (bb81d17f74cc4edfb542819312a2b7f5960f195eju katlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraTopologyValidatorTest.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.java     j#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u Xb  @@ -81,7 +81,10 @@ public void retriesUntilNoNewHostsReturned() {
                         HostIdResult.success(Set.of(uuidIterator.next())),
                         HostIdResult.success(UUIDS)));
         assertThat(validator.getNewHostsWithInconsistentTopologiesAndRetry(
-                        allHosts.keySet(), allHosts, Duration.ofMillis(1), Duration.ofSeconds(20)))
+                        mapToTokenRangeOrigin(allHosts.keySet()),
+                        allHosts,
+                        Duration.ofMillis(1),
+                        Duration.ofSeconds(20)))
                 .isEmpty();
     }
 
@@ -93,7 +96,7 @@ public void retriesMarksFailureWhenNeverResolves() {
                 .values()
                 .forEach(container -> setHostIds(Set.of(container), HostIdResult.success(Set.of(uuidIterator.next()))));
         assertThat(validator.getNewHostsWithInconsistentTopologiesAndRetry(
-                        allHosts.keySet(), allHosts, Duration.ofMillis(1), Duration.ofMillis(1)))
+                        mapToTokenRangeOrigin(allHosts.keySet()), allHosts, Duration.ofMillis(1), Duration.ofMillis(1)))
                 .isNotEmpty();
         assertThat(metrics.validationFailures().getCount()).isEqualTo(1);
         assertThat(metrics.validationLatency().getCount()).isEqualTo(1);
@@ -104,7 +107,10 @@ public void retriesAndReturnsFailingHosts() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(NEW_HOSTS);
         doReturn(allHosts.keySet()).when(validator).getNewHostsWithInconsistentTopologies(any(), any());
         assertThat(validator.getNewHostsWithInconsistentTopologiesAndRetry(
-                        allHosts.keySet(), setupHosts(NEW_HOSTS), Duration.ofMillis(1), Duration.ofMillis(1)))
+                        mapToTokenRangeOrigin(allHosts.keySet()),
+                        setupHosts(NEW_HOSTS),
+                        Duration.ofMillis(1),
+                        Duration.ofMillis(1)))
                 .containsExactlyInAnyOrderElementsOf(allHosts.keySet());
     }
 
@@ -114,29 +120,32 @@ public void retriesAtLeastTwoTimes() {
         doReturn(allHosts.keySet()).when(validator).getNewHostsWithInconsistentTopologies(any(), any());
         when(validator.getNewHostsWithInconsistentTopologies(any(), any())).thenReturn(allHosts.keySet());
         assertThat(validator.getNewHostsWithInconsistentTopologiesAndRetry(
-                        allHosts.keySet(), setupHosts(NEW_HOSTS), Duration.ofMillis(1), Duration.ofMillis(1)))
+                        mapToTokenRangeOrigin(allHosts.keySet()),
+                        setupHosts(NEW_HOSTS),
+                        Duration.ofMillis(1),
+                        Duration.ofMillis(1)))
                 .isNotEmpty();
         verify(validator, atLeast(2)).getNewHostsWithInconsistentTopologies(any(), any());
     }
 
     @Test
     public void returnsEmptyWhenGivenNoServers() {
-        assertThat(validator.getNewHostsWithInconsistentTopologies(ImmutableSet.of(), ImmutableMap.of()))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(ImmutableMap.of(), ImmutableMap.of()))
                 .isEmpty();
     }
 
     @Test
     public void throwsWhenAllHostsDoesNotContainNewHosts() {
         assertThatThrownBy(() -> validator.getNewHostsWithInconsistentTopologies(
-                        ImmutableSet.of(createCassandraServer("foo")), ImmutableMap.of()))
+                        mapToTokenRangeOrigin(ImmutableSet.of(createCassandraServer("foo"))), ImmutableMap.of()))
                 .isInstanceOf(SafeIllegalArgumentException.class);
     }
 
     @Test
     public void returnsEmptyWhenOnlyNewServersAndAllHaveSameHostIds() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(NEW_HOSTS);
         setHostIds(allHosts.values(), DEFAULT_RESULT);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .isEmpty();
     }
 
@@ -149,7 +158,7 @@ public void returnsNewHostsWhenOnlyNewServersAndOneMismatch() {
         setHostIds(
                 filterContainers(allHosts, NEW_HOST_ONE::equals),
                 HostIdResult.success(ImmutableSet.of("uuid3", "uuid2")));
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .containsExactlyElementsOf(allHosts.keySet());
     }
 
@@ -163,7 +172,7 @@ public void returnsNewHostsWhenNewServersMismatchOldServers() {
         setHostIds(
                 filterContainers(allHosts, OLD_HOSTS::contains),
                 HostIdResult.success(ImmutableSet.of("uuid3", "uuid2")));
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newServers, allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(newServers), allHosts))
                 .containsExactlyElementsOf(newServers);
     }
 
@@ -175,15 +184,15 @@ public void validateNewlyAddedHostsReturnsOnlyMismatchingNewHosts() {
         setHostIds(filterContainers(allHosts, badHostFilter), HostIdResult.success(ImmutableSet.of("uuid3", "uuid2")));
         Set<CassandraServer> newServers = filterServers(allHosts, NEW_HOSTS::contains);
         Set<CassandraServer> badNewHosts = filterServers(allHosts, badHostFilter);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newServers, allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(newServers), allHosts))
                 .containsExactlyElementsOf(badNewHosts);
     }
 
     @Test
     public void validateNewlyAddedHostsAddsAllHostsIfNoHostHasEndpoint() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(NEW_HOSTS);
         setHostIds(allHosts.values(), HostIdResult.softFailure());
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .isEmpty();
     }
 
@@ -194,7 +203,7 @@ public void validateNewlyAddedHostsAddsAllHostsIfOneHostHasEndpoint() {
         setHostIds(
                 filterContainers(allHosts, server -> !hostWithEndpoint.contains(server)), HostIdResult.softFailure());
         setHostIds(filterContainers(allHosts, hostWithEndpoint::contains), DEFAULT_RESULT);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .isEmpty();
     }
 
@@ -206,7 +215,7 @@ public void validateNewlyAddedHostsAddsAllHostsIfEndpointExistingHostIdsMatch()
                 filterContainers(allHosts, server -> !hostsWithEndpoints.contains(server)), HostIdResult.softFailure());
         setHostIds(filterContainers(allHosts, hostsWithEndpoints::contains), DEFAULT_RESULT);
         assertThat(validator.getNewHostsWithInconsistentTopologies(
-                        filterServers(allHosts, NEW_HOSTS::contains), allHosts))
+                        mapToTokenRangeOrigin(filterServers(allHosts, NEW_HOSTS::contains)), allHosts))
                 .isEmpty();
     }
 
@@ -219,42 +228,44 @@ public void validateNewlyAddedHostsReturnsNewHostsUnlessEndpointExistAndDoesMatc
         setHostIds(filterContainers(allHosts, NEW_HOST_ONE::equals), HostIdResult.success(Set.of("uuid")));
         setHostIds(filterContainers(allHosts, OLD_HOST_ONE::equals), DEFAULT_RESULT);
         assertThat(validator.getNewHostsWithInconsistentTopologies(
-                        filterServers(allHosts, NEW_HOSTS::contains), allHosts))
+                        mapToTokenRangeOrigin(filterServers(allHosts, NEW_HOSTS::contains)), allHosts))
                 .containsExactlyElementsOf(filterServers(allHosts, NEW_HOST_ONE::equals));
     }
 
     @Test
-    public void validateNewlyAddedHostsNoNewHostsAddedIfOldHostsDoNotHaveQuorum() {
+    public void validateNewlyAddedHostsNoNewHostsAddedIfOldHostsDoNotHaveQuorumAndNoPreviousResultExists() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
         Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
         Set<String> hostsOffline = ImmutableSet.of(OLD_HOST_ONE, OLD_HOST_TWO);
         setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
         setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newCassandraServers, allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
                 .as("no new hosts added if old hosts do not have quorum")
                 .containsExactlyElementsOf(newCassandraServers);
     }
 
     @Test
     public void validateNewlyAddedHostsNewHostsAddedIfTheyAgreeWithOldHostsOnPreviousTopology() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
-        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts = EntryStream.of(allHosts)
-                .filterKeys(key -> OLD_HOSTS.contains(key.cassandraHostName()))
-                .toMap();
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
         Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
         Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
         Set<String> hostsOffline = ImmutableSet.of(OLD_HOST_ONE);
         setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
         setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
 
-        validator.getNewHostsWithInconsistentTopologies(oldCassandraServers, oldHosts);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newCassandraServers, allHosts))
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
                 .as("accepts quorum from new hosts if they have the same host IDs")
                 .isEmpty();
     }
 
     @Test
-    public void validateNewlyAddedHostsNewHostsNotAddedIfTheyDisagreeWithOldHostsOnPreviousTopology() {
+    public void
+            validateNewlyAddedHostsNewHostsNotAddedIfTheyDisagreeWithOldHostsOnPreviousTopologyAndCurrentServersExist() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
         Map<CassandraServer, CassandraClientPoolingContainer> oldHosts = EntryStream.of(allHosts)
                 .filterKeys(key -> OLD_HOSTS.contains(key.cassandraHostName()))
@@ -272,12 +283,165 @@ public void validateNewlyAddedHostsNewHostsNotAddedIfTheyDisagreeWithOldHostsOnP
                 filterContainers(oldHosts, Predicate.not(hostsOffline::contains)),
                 HostIdResult.success(DIFFERENT_UUIDS));
 
-        validator.getNewHostsWithInconsistentTopologies(oldCassandraServers, oldHosts);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newCassandraServers, allHosts))
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
                 .as("does not accept quorum from new hosts if they have different host IDs")
                 .containsExactlyElementsOf(newCassandraServers);
     }
 
+    @Test
+    public void returnsAllNewHostsIfNoConsensusOnNewHostsWhenNoQuorumAndCurrentServersExist() {
+        Iterator<String> uuidIterator = UUIDS.iterator();
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        filterContainers(allHosts, server -> !hostsOffline.contains(server))
+                .forEach(container ->
+                        setHostIds(ImmutableSet.of(container), HostIdResult.success(Set.of(uuidIterator.next()))));
+
+        // This is _not_ supposed to be the standard quorum calculation ((n / 2) + 1), but instead the amount of
+        // hosts that need to be offline to _prevent_ quorum
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
+                .as("rejects all servers when no quorum from all hosts and no quorum on new hosts")
+                .containsExactlyInAnyOrderElementsOf(newCassandraServers);
+    }
+
+    @Test
+    public void returnsAllNewHostsIfConsensusOnNewHostsDiffersFromPreviousWhenNoQuorumAndCurrentServersExist() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        setHostIds(
+                filterContainers(allHosts, server -> !hostsOffline.contains(server)),
+                HostIdResult.success(DIFFERENT_UUIDS));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
+                .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
+                .containsExactlyInAnyOrderElementsOf(newCassandraServers);
+    }
+
+    @Test
+    public void validateNewlyAddedHostsAddedIfAgreedWithOldHostsOnPreviousTopologyWhenNoQuorum() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
+                .as("accepts quorum from new hosts if they have the same host IDs as old topology")
+                .isEmpty();
+    }
+
+    @Test
+    public void validateNewlyAddedHostsAddedIfAgreedWithOldTopologyWhenNoQuorumAndNoCurrentServers() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> allCassandraServers = allHosts.keySet();
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        splitHostOriginBetweenLastKnownAndConfig(
+                                oldCassandraServers, Sets.difference(allCassandraServers, oldCassandraServers)),
+                        allHosts))
+                .as("accepts quorum from config hosts if they have the same host IDs as old topology when no current"
+                        + " servers")
+                .containsExactlyInAnyOrderElementsOf(oldCassandraServers);
+    }
+
+    @Test
+    public void returnsAllNewHostsIfNoConsensusOnConfigHostsWhenNoQuorumAndNoCurrentServers() {
+        Iterator<String> uuidIterator = UUIDS.iterator();
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> allCassandraServers = allHosts.keySet();
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        filterContainers(allHosts, server -> !hostsOffline.contains(server))
+                .forEach(container ->
+                        setHostIds(ImmutableSet.of(container), HostIdResult.success(Set.of(uuidIterator.next()))));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        splitHostOriginBetweenLastKnownAndConfig(
+                                oldCassandraServers, Sets.difference(allCassandraServers, oldCassandraServers)),
+                        allHosts))
+                .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
+                .containsExactlyInAnyOrderElementsOf(allCassandraServers);
+    }
+
+    @Test
+    public void returnsAllNewHostsIfConsensusOnConfigHostsDiffersFromPreviousWhenNoQuorumAndNoCurrentServers() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> allCassandraServers = allHosts.keySet();
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        setHostIds(
+                filterContainers(allHosts, server -> !hostsOffline.contains(server)),
+                HostIdResult.success(DIFFERENT_UUIDS));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        splitHostOriginBetweenLastKnownAndConfig(
+                                oldCassandraServers, Sets.difference(allCassandraServers, oldCassandraServers)),
+                        allHosts))
+                .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
+                .containsExactlyInAnyOrderElementsOf(allCassandraServers);
+    }
+
     @Test
     public void validateNewlyAddedHostsNoNewHostsAddedIfNewHostsDoNotHaveQuorumAndNoCurrentServers() {
         Set<String> hosts = ImmutableSet.<String>builder()
@@ -288,7 +452,7 @@ public void validateNewlyAddedHostsNoNewHostsAddedIfNewHostsDoNotHaveQuorumAndNo
         Set<String> hostsOffline = ImmutableSet.of(NEW_HOST_ONE, NEW_HOST_TWO);
         setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
         setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .containsExactlyElementsOf(allHosts.keySet());
     }
 
@@ -298,7 +462,7 @@ public void validateNewlyAddedHostsAddsAllNewHostsIfCurrentServersDoNotHaveEndpo
         setHostIds(filterContainers(allHosts, NEW_HOSTS::contains), HostIdResult.success(UUIDS));
         setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.softFailure());
         assertThat(validator.getNewHostsWithInconsistentTopologies(
-                        filterServers(allHosts, NEW_HOSTS::contains), allHosts))
+                        mapToTokenRangeOrigin(filterServers(allHosts, NEW_HOSTS::contains)), allHosts))
                 .isEmpty();
     }
 
@@ -338,12 +502,16 @@ public Set<CassandraClientPoolingContainer> filterContainers(
                 .toSet();
     }
 
-    public Set<CassandraServer> filterServers(
+    public Map<CassandraServer, CassandraClientPoolingContainer> filterServerToContainerMap(
             Map<CassandraServer, CassandraClientPoolingContainer> hosts, Predicate<String> filter) {
         return EntryStream.of(hosts)
                 .filterKeys(cassandraServer -> filter.test(cassandraServer.cassandraHostName()))
-                .keys()
-                .toSet();
+                .toMap();
+    }
+
+    public Set<CassandraServer> filterServers(
+            Map<CassandraServer, CassandraClientPoolingContainer> hosts, Predicate<String> filter) {
+        return filterServerToContainerMap(hosts, filter).keySet();
     }
 
     private static CassandraServer createCassandraServer(String hostname) {
@@ -367,4 +535,16 @@ private static Map<CassandraServer, CassandraClientPoolingContainer> setupHosts(
                 .mapToEntry(server -> mock(CassandraClientPoolingContainer.class))
                 .toMap();
     }
+
+    private static Map<CassandraServer, CassandraServerOrigin> splitHostOriginBetweenLastKnownAndConfig(
+            Set<CassandraServer> lastKnownHosts, Set<CassandraServer> configHosts) {
+        return ImmutableMap.<CassandraServer, CassandraServerOrigin>builder()
+                .putAll(CassandraServerOrigin.mapAllServersToOrigin(lastKnownHosts, CassandraServerOrigin.LAST_KNOWN))
+                .putAll(CassandraServerOrigin.mapAllServersToOrigin(configHosts, CassandraServerOrigin.CONFIG))
+                .buildOrThrow();
+    }
+
+    private static Map<CassandraServer, CassandraServerOrigin> mapToTokenRangeOrigin(Set<CassandraServer> servers) {
+        return CassandraServerOrigin.mapAllServersToOrigin(servers, CassandraServerOrigin.TOKEN_RANGE);
+    }
 }u}(jt (ea93d4225293149bfc275c742ea245b6b263274fju fatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraServiceTest.javaju modifiedju K
ju K j u K
j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -269,6 +269,16 @@ public void getRandomHostByActiveConnectionsReturnsDesiredHost() {
         }
     }
 
+    @Test
+    public void ports() throws Exception {
+        assertThat(CassandraService.only(IntStream.of(1, 1, 1))).isEqualTo(1);
+        assertThat(CassandraService.only(IntStream.generate(() -> 4224).limit(15)))
+                .isEqualTo(4224);
+        assertThatThrownBy(() -> CassandraService.only(IntStream.of(1, 2, 1)))
+                .isInstanceOf(UnknownHostException.class)
+                .hasMessageContaining("No single known port");
+    }
+
     private Set<CassandraServer> getRecommendedHostsFromAThousandTrials(
             CassandraService cassandra, Set<CassandraServer> hosts) {
         return IntStream.range(0, 1_000)u}(jt (5504ea3d7692e9bd5feb8a902db77c14b223e48fju atlasdb-cli/build.gradleju modifiedju Kju K j u Kj!u lhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cli%2Fbuild.gradlej#u khttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cli%2Fbuild.gradlej%u ~https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cli%2Fbuild.gradle?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -8,6 +8,7 @@ dependencies {
     api project(':atlasdb-client')
     api project(':atlasdb-config')
     api project(':timestamp-api')
+    testImplementation project(path: ':flake-rule')
 
     compileOnly 'com.google.dagger:dagger'
     implementation 'io.airlift:airline'u}(jt (697bebce05ea5400b3ed453d3cb76e4e2ffc631eju Tatlasdb-cli/src/test/java/com/palantir/atlasdb/cli/command/TestTimestampCommand.javaju modifiedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cli%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcli%2Fcommand%2FTestTimestampCommand.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -37,6 +37,8 @@
 import com.palantir.atlasdb.services.test.DaggerTestAtlasDbServices;
 import com.palantir.atlasdb.services.test.TestAtlasDbServices;
 import com.palantir.common.time.Clock;
+import com.palantir.flake.FlakeRetryingRule;
+import com.palantir.flake.ShouldRetry;
 import com.palantir.lock.LockClient;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;
@@ -60,6 +62,7 @@
 import org.junit.After;
 import org.junit.Before;
 import org.junit.BeforeClass;
+import org.junit.Rule;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
@@ -71,6 +74,9 @@ public class TestTimestampCommand {
     private static AtlasDbServicesFactory moduleFactory;
     private static List<String> cliArgs;
 
+    @Rule
+    public FlakeRetryingRule flakeRetryingRule = new FlakeRetryingRule();
+
     @BeforeClass
     public static void oneTimeSetup() throws Exception {
         lock = StringLockDescriptor.of("lock");
@@ -181,6 +187,7 @@ public void testWithFile() throws Exception {
         runAndVerifyCliForFile(inputFileString);
     }
 
+    @ShouldRetry
     @Test
     public void testWithFileWithDir() throws Exception {
         String inputFileString = "existing-dir/test.timestamp";u}(jt (605212243716ab96bbbde3a8b0fd9ec3aa421b48ju \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/AbstractKeyValueService.javaju modifiedju K	ju K
j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FAbstractKeyValueService.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X^	  @@ -70,38 +70,37 @@ public AbstractKeyValueService(ExecutorService executor) {
     /**
      * Creates a fixed thread pool.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param corePoolSize size of the core pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createFixedThreadPool(String threadNamePrefix, int corePoolSize) {
-        return createThreadPool(threadNamePrefix, corePoolSize, corePoolSize);
+    protected static ExecutorService createFixedThreadPool(String name, int corePoolSize) {
+        return createThreadPool(name, corePoolSize, corePoolSize);
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPool(String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPool(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPool(String name, int _corePoolSize, int maxPoolSize) {
+        return PTExecutors.newFixedThreadPool(maxPoolSize, name);
     }
 
     /**
      * Creates a thread pool with number of threads between {@code _corePoolSize} and {@code maxPoolSize}.
      * It does not create a span.
      *
-     * @param threadNamePrefix thread name prefix
+     * @param name thread name prefix
      * @param _corePoolSize size of the core pool
      * @param maxPoolSize maximum size of the pool
      * @return a new fixed size thread pool with a keep alive time of 1 minute
      */
-    protected static ExecutorService createThreadPoolWihtoutSpans(
-            String threadNamePrefix, int _corePoolSize, int maxPoolSize) {
-        return PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, threadNamePrefix);
+    protected static ExecutorService createThreadPoolWithoutSpans(String name, int _corePoolSize, int maxPoolSize) {
+        return PTExecutors.newFixedThreadPoolWithoutSpan(maxPoolSize, name);
     }
 
     @Overrideu}(jt (71ce22bd41d1b143a3a5f8a99cd5022f60d67d57ju Qatlasdb-client/src/main/java/com/palantir/atlasdb/schema/TargetedSweepTables.javaju modifiedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTargetedSweepTables.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTargetedSweepTables.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTargetedSweepTables.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -16,25 +16,8 @@
 
 package com.palantir.atlasdb.schema;
 
-import com.google.common.collect.ImmutableSet;
 import com.palantir.atlasdb.keyvalue.api.Namespace;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
-import com.palantir.atlasdb.schema.generated.TargetedSweepTableFactory;
 
 public class TargetedSweepTables {
     static final Namespace NAMESPACE = Namespace.create("sweep");
-
-    private static final TargetedSweepTableFactory TABLE_FACTORY = TargetedSweepTableFactory.of();
-
-    private static final TableReference SWEEP_PROGRESS_PER_SHARD_TABLE =
-            TABLE_FACTORY.getSweepShardProgressTable(null).getTableRef();
-    private static final TableReference SWEEP_ID_TO_NAME_TABLE =
-            TABLE_FACTORY.getSweepIdToNameTable(null).getTableRef();
-    private static final TableReference SWEEP_NAME_TO_ID_TABLE =
-            TABLE_FACTORY.getSweepNameToIdTable(null).getTableRef();
-    private static final TableReference TABLE_CLEARS_TABLE =
-            TABLE_FACTORY.getTableClearsTable(null).getTableRef();
-
-    public static final ImmutableSet<TableReference> REPAIR_ON_RESTORE = ImmutableSet.of(
-            SWEEP_PROGRESS_PER_SHARD_TABLE, SWEEP_ID_TO_NAME_TABLE, SWEEP_NAME_TO_ID_TABLE, TABLE_CLEARS_TABLE);
 }u}(jt (37f614609e9364110222b476f105aa43bbb7f628ju batlasdb-client/src/main/java/com/palantir/atlasdb/table/description/ColumnMetadataDescription.javaju modifiedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FColumnMetadataDescription.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -22,11 +22,15 @@
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Set;
+import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 
 @Immutable
 public class ColumnMetadataDescription {
+    @Nullable
     final ImmutableSet<NamedColumnDescription> namedColumns;
+
+    @Nullable
     final DynamicColumnDescription dynamicColumn;
 
     public ColumnMetadataDescription() {
@@ -44,10 +48,12 @@ public ColumnMetadataDescription(DynamicColumnDescription dynamicColumn) {
         this.dynamicColumn = dynamicColumn;
     }
 
+    @Nullable
     public Set<NamedColumnDescription> getNamedColumns() {
         return namedColumns;
     }
 
+    @Nullable
     public DynamicColumnDescription getDynamicColumn() {
         return dynamicColumn;
     }u}(jt (17e6e0aeb1b64c151980df0c777b470289e11f67ju batlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractTransactionManager.javaju modifiedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionManager.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionManager.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionManager.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X&  @@ -81,6 +81,7 @@ protected final <T, E extends Exception> T runTaskThrowOnConflictWithCallback(
             }
         } finally {
             callback.run();
+            txn.reportExpectationsCollectedData();
             txn.runSuccessCallbacksIfDefinitivelyCommitted();
         }
     }u}(jt (312e2352c1ff098b40a0bde4a89d1d06d92a2267ju `atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CallbackAwareTransaction.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCallbackAwareTransaction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCallbackAwareTransaction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCallbackAwareTransaction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X,  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.PreCommitCondition;
-import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionFailedException;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 
@@ -26,7 +25,7 @@
  * are run. This can be used to e.g run {@link PreCommitCondition#cleanup()} <i>before</i> the onSuccess callbacks
  * are run.
  */
-public interface CallbackAwareTransaction extends Transaction {
+public interface CallbackAwareTransaction extends ExpectationsAwareTransaction {
     void commitWithoutCallbacks() throws TransactionFailedException;
 
     void commitWithoutCallbacks(TransactionService transactionService) throws TransactionFailedException;u}(jt (7e87069870a53942641d65bb9f40d143a983e452ju datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ExpectationsAwareTransaction.javaju renamedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FExpectationsAwareTransaction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XU  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,15 +14,15 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.transaction.api.expectations;
+package com.palantir.atlasdb.transaction.impl;
 
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
 
 /**
  * Implementors of this interface provide methods useful for tracking transactional expectations and whether
  * they were breached as well as relevant metrics and alerts. Transactional expectations represent transaction-level
  * limits and rules for proper usage of AtlasDB transactions (e.g. reading too much data overall).
- * Todo(aalouane): move this out of API once part 4 is merged
  */
 public interface ExpectationsAwareTransaction extends Transaction {
     long getAgeMillis();previous_filenamematlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/expectations/ExpectationsAwareTransaction.javau}(jt (71c4c8f8ff1bba49188c7bece8ec3b1fdebf6e66ju jatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingCallbackAwareTransaction.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingCallbackAwareTransaction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingCallbackAwareTransaction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingCallbackAwareTransaction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -19,7 +19,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionFailedException;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 
-public abstract class ForwardingCallbackAwareTransaction extends ForwardingTransaction
+public abstract class ForwardingCallbackAwareTransaction extends ForwardingExpectationsAwareTransaction
         implements CallbackAwareTransaction {
 
     @Overrideu}(jt (b0f9e2b48803d8c98708f77f72b9c6d498e1be5aju natlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingExpectationsAwareTransaction.javaju addedju K)ju K j u K)j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingExpectationsAwareTransaction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X[  @@ -0,0 +1,41 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.transaction.impl;
+
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+
+public abstract class ForwardingExpectationsAwareTransaction extends ForwardingTransaction
+        implements ExpectationsAwareTransaction {
+
+    @Override
+    public abstract ExpectationsAwareTransaction delegate();
+
+    @Override
+    public long getAgeMillis() {
+        return delegate().getAgeMillis();
+    }
+
+    @Override
+    public TransactionReadInfo getReadInfo() {
+        return delegate().getReadInfo();
+    }
+
+    @Override
+    public void reportExpectationsCollectedData() {
+        delegate().reportExpectationsCollectedData();
+    }
+}u}(jt (5f795e54adce9a66821695cbd1b7903855070846ju \atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/TransactionConstants.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X	  @@ -24,7 +24,8 @@
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.table.description.ValueType;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
 
 public final class TransactionConstants {
     private TransactionConstants() {
@@ -44,13 +45,10 @@ private TransactionConstants() {
     public static final byte[] DIRECT_ENCODING_ABORTED_TRANSACTION_VALUE = getValueForTimestamp(FAILED_COMMIT_TS);
     public static final byte[] TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE = PtBytes.EMPTY_BYTE_ARRAY;
 
-    public static final TransactionStatus ABORTED = TransactionStatuses.aborted();
-    public static final TransactionStatus IN_PROGRESS = TransactionStatuses.inProgress();
-    public static final TransactionStatus UNKNOWN = TransactionStatuses.unknown();
     public static final byte[] TTS_IN_PROGRESS_MARKER = getTtsInProgressMarker();
     public static final long LOWEST_POSSIBLE_START_TS = 1L;
     public static long PRE_START_COMMITTED_TS = TransactionConstants.LOWEST_POSSIBLE_START_TS - 1;
-    public static final TransactionStatus PRE_START_COMMITTED = TransactionStatuses.committed(PRE_START_COMMITTED_TS);
+    public static final TransactionStatus PRE_START_COMMITTED = TransactionStatus.committed(PRE_START_COMMITTED_TS);
 
     public static final long WARN_LEVEL_FOR_QUEUED_BYTES = 10 * 1024 * 1024;
 
@@ -101,4 +99,15 @@ public static long getTimestampForValue(byte[] encodedTimestamp) {
             .explicitCompressionBlockSizeKB(64)
             .denselyAccessedWideRows(true)
             .build();
+
+    static {
+        Preconditions.checkState(
+                !SUPPORTED_TRANSACTIONS_SCHEMA_VERSIONS.contains(TTS_TRANSACTIONS_SCHEMA_VERSION),
+                "Supporting Transactions Table Sweep WILL require changes to internal backup and restore workflows;"
+                    + " failure to do so may only be discoverable at restore time in some implementations. This check"
+                    + " MUST NOT be removed without knowledge that suitable changes have been made to these"
+                    + " workflows.",
+                SafeArg.of("supportedTransactionsSchemaVersions", SUPPORTED_TRANSACTIONS_SCHEMA_VERSIONS),
+                SafeArg.of("transactionsTableSweepSchemaVersion", TTS_TRANSACTIONS_SCHEMA_VERSION));
+    }
 }u}(jt (d6ee97d6e0da719997ae5b3ffa7c377ce74a2186ju ^atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/TransactionStatusUtils.javaju modifiedju Kju Kj u K*j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionStatusUtils.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionStatusUtils.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionStatusUtils.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -18,51 +18,61 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Aborted;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.Optional;
 import java.util.function.Function;
 
 public final class TransactionStatusUtils {
+
     private TransactionStatusUtils() {}
 
     public static TransactionStatus fromTimestamp(long timestamp) {
         if (timestamp == TransactionConstants.FAILED_COMMIT_TS) {
-            return TransactionConstants.ABORTED;
+            return TransactionStatus.aborted();
         }
-        return TransactionStatuses.committed(timestamp);
+        return TransactionStatus.committed(timestamp);
     }
 
     /**
      * This helper is only meant to be used for transactions with schema < 4. For schemas >= 4,
      * use {@link #getCommitTsFromStatus(long, TransactionStatus, Function)}
      * */
     public static long getCommitTimestampIfKnown(TransactionStatus status) {
-        return TransactionStatuses.caseOf(status)
-                .committed(Function.identity())
-                .aborted_(TransactionConstants.FAILED_COMMIT_TS)
-                .otherwise(() -> {
-                    throw new SafeIllegalStateException("Illegal transaction status", SafeArg.of("status", status));
-                });
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return committed.commitTimestamp();
+        } else if (status instanceof Aborted) {
+            return TransactionConstants.FAILED_COMMIT_TS;
+        } else {
+            throw new SafeIllegalStateException("Illegal transaction status", SafeArg.of("status", status));
+        }
     }
 
     /**
      * This helper is only meant to be used for transactions with schema < 4. For schemas >= 4,
      * use {@link #getCommitTsFromStatus(long, TransactionStatus, Function)}
      * */
     public static Optional<Long> maybeGetCommitTs(TransactionStatus status) {
-        return TransactionStatuses.caseOf(status)
-                .committed(Function.identity())
-                .aborted_(TransactionConstants.FAILED_COMMIT_TS)
-                .otherwiseEmpty();
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return Optional.of(committed.commitTimestamp());
+        } else if (status instanceof Aborted) {
+            return Optional.of(TransactionConstants.FAILED_COMMIT_TS);
+        } else {
+            return Optional.empty();
+        }
     }
 
     public static Long getCommitTsFromStatus(
             long startTs, TransactionStatus status, Function<Long, Boolean> abortedCheck) {
-        return TransactionStatuses.caseOf(status)
-                .unknown(() -> getCommitTsForConcludedTransaction(startTs, abortedCheck))
-                .otherwise(() -> TransactionStatusUtils.maybeGetCommitTs(status).orElse(null));
+        if (status instanceof TransactionStatus.Unknown) {
+            return getCommitTsForConcludedTransaction(startTs, abortedCheck);
+        } else {
+            return TransactionStatusUtils.maybeGetCommitTs(status).orElse(null);
+        }
     }
 
     public static long getCommitTsForConcludedTransaction(long startTs, Function<Long, Boolean> isAborted) {u}(jt (0d2d4ad98a55ca825efe3a6a9aaedd1b0acd5728ju Ratlasdb-commons/src/main/java/com/palantir/async/initializer/AsyncInitializer.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fasync%2Finitializer%2FAsyncInitializer.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -60,17 +60,28 @@ public final void initialize(boolean initializeAsync) {
 
     private void tryInitializationLoop() {
         if (state.isCancelled()) {
+            log.info(
+                    "Shutting down executor associated with asynchronous initialisation, as it was cancelled",
+                    SafeArg.of("className", getInitializingClassName()),
+                    SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
+                    SafeArg.of("durationBeforeCancellation", getMillisecondsSinceInitialization()));
             singleThreadedExecutor.shutdown();
             return;
         }
 
         try {
+            log.info(
+                    "Attempting to initialize {} on the attempt {}. The amount of time elapsed since we began was {}"
+                            + " milliseconds.",
+                    SafeArg.of("className", getInitializingClassName()),
+                    SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
+                    SafeArg.of("initializationDuration", getMillisecondsSinceInitialization()));
             tryInitializeInternal();
             log.info(
                     "Initialized {} on the attempt {} in {} milliseconds",
                     SafeArg.of("className", getInitializingClassName()),
                     SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
-                    SafeArg.of("initializationDuration", System.currentTimeMillis() - initializationStartTime));
+                    SafeArg.of("initializationDuration", getMillisecondsSinceInitialization()));
         } catch (Throwable throwable) {
             log.info(
                     "Failed to initialize {} on the attempt {}",
@@ -84,19 +95,23 @@ private void tryInitializationLoop() {
                         "Failed to cleanup when initialization of {} failed on attempt {} with {} milliseconds",
                         SafeArg.of("className", getInitializingClassName()),
                         SafeArg.of("numberOfAttempts", numberOfInitializationAttempts),
-                        SafeArg.of("initializationDuration", System.currentTimeMillis() - initializationStartTime),
+                        SafeArg.of("initializationDuration", getMillisecondsSinceInitialization()),
                         cleanupThrowable);
             }
             scheduleInitialization(sleepInterval());
         }
     }
 
+    private long getMillisecondsSinceInitialization() {
+        return System.currentTimeMillis() - initializationStartTime;
+    }
+
     // Not final for tests.
     void scheduleInitialization(Duration delay) {
         singleThreadedExecutor.schedule(this::tryInitializationLoop, delay.toMillis(), TimeUnit.MILLISECONDS);
     }
 
-    // Not final for tests
+    // Not final for tests.
     ScheduledExecutorService createExecutorService() {
         return PTExecutors.newSingleThreadScheduledExecutor(
                 new NamedThreadFactory("AsyncInitializer-" + getInitializingClassName(), true));u}(jt (3f12cc30de4b2565eb5b519d76b28f4a643de42cju Qatlasdb-commons/src/main/java/com/palantir/exception/NotInitializedException.javaju modifiedju Kju Kj u K$j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -16,18 +16,40 @@
 package com.palantir.exception;
 
 import com.palantir.common.exception.AtlasDbDependencyException;
+import com.palantir.logsafe.Arg;
+import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.SafeLoggable;
+import java.util.List;
 
-public class NotInitializedException extends AtlasDbDependencyException {
-    public NotInitializedException(String objectNotInitialized) {
-        super(exceptionMessage(objectNotInitialized));
+public class NotInitializedException extends AtlasDbDependencyException implements SafeLoggable {
+
+    private static final String MESSAGE =
+            "The object is not yet initialized, and as a result, all calls to it will fail. Interactions with this"
+                    + " object should not take place until after initialization has completed. For example, if your"
+                    + " service that handles REST requests relies on this object, it should not service REST requests"
+                    + " until initialization has completed, as otherwise all calls are guaranteed to fail. It is"
+                    + " expected that initialization of some object types do take some time.";
+    private final String objectNotInitialized;
+
+    public NotInitializedException(@Safe String objectNotInitialized) {
+        super(MESSAGE);
+        this.objectNotInitialized = objectNotInitialized;
+    }
+
+    public NotInitializedException(@Safe String objectNotInitialized, Throwable throwable) {
+        super(MESSAGE, throwable);
+        this.objectNotInitialized = objectNotInitialized;
     }
 
-    public NotInitializedException(String objectNotInitialized, Throwable throwable) {
-        super(exceptionMessage(objectNotInitialized), throwable);
+    @Override
+    @Safe
+    public String getLogMessage() {
+        return MESSAGE;
     }
 
-    private static String exceptionMessage(String objectNotInitialized) {
-        return String.format("The %s is not initialized yet", SafeArg.of("objectName", objectNotInitialized));
+    @Override
+    public List<Arg<?>> getArgs() {
+        return List.of(SafeArg.of("objectName", objectNotInitialized));
     }
 }u}(jt (63285014148e1955618c0b9c9c8fa5df70e05e2aju Ratlasdb-commons/src/test/java/com/palantir/common/base/BatchingVisitablesTest.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fbase%2FBatchingVisitablesTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fbase%2FBatchingVisitablesTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fbase%2FBatchingVisitablesTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -41,12 +41,13 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.mockito.Mock;
+import org.mockito.MockMakers;
 import org.mockito.junit.MockitoJUnitRunner;
 
 @RunWith(MockitoJUnitRunner.class)
 @SuppressWarnings("Guava") // BatchingVisitables uses Guava.
 public class BatchingVisitablesTest {
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private AbstractBatchingVisitable<Void> bv;
 
     @Testu}(jt (dfa91458329ff1875fb4ec6215218af5871f6e1fju Uatlasdb-commons/src/test/java/com/palantir/exception/NotInitializedExceptionTest.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedExceptionTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedExceptionTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedExceptionTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,31 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.exception;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.logsafe.SafeArg;
+import org.junit.Test;
+
+public final class NotInitializedExceptionTest {
+    @Test
+    public void getArgsHasObjectNameAsSafe() {
+        String objectName = "foo";
+        NotInitializedException exception = new NotInitializedException(objectName);
+        assertThat(exception.getArgs()).containsExactly(SafeArg.of("objectName", objectName));
+    }
+}u}(jt (c178ffcb42eb70e08392eae222ce570664767ec3ju gatlasdb-config/src/main/java/com/palantir/atlasdb/backup/DialogueAdaptingTimeLockManagementService.javaju removedju K ju KFj u KFj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingTimeLockManagementService.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingTimeLockManagementService.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FDialogueAdaptingTimeLockManagementService.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X  @@ -1,70 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.timelock.api.DisableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.DisableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesRequest;
-import com.palantir.atlasdb.timelock.api.ReenableNamespacesResponse;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementService;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementServiceBlocking;
-import com.palantir.tokens.auth.AuthHeader;
-import java.util.Set;
-import java.util.UUID;
-
-public class DialogueAdaptingTimeLockManagementService implements TimeLockManagementService {
-    private final TimeLockManagementServiceBlocking dialogueDelegate;
-
-    public DialogueAdaptingTimeLockManagementService(TimeLockManagementServiceBlocking dialogueDelegate) {
-        this.dialogueDelegate = dialogueDelegate;
-    }
-
-    @Override
-    public Set<String> getNamespaces(AuthHeader authHeader) {
-        return dialogueDelegate.getNamespaces(authHeader);
-    }
-
-    @Override
-    public void achieveConsensus(AuthHeader authHeader, Set<String> namespaces) {
-        dialogueDelegate.achieveConsensus(authHeader, namespaces);
-    }
-
-    @Override
-    public void invalidateResources(AuthHeader authHeader, Set<String> namespaces) {
-        dialogueDelegate.invalidateResources(authHeader, namespaces);
-    }
-
-    @Override
-    public DisableNamespacesResponse disableTimelock(AuthHeader authHeader, DisableNamespacesRequest request) {
-        return dialogueDelegate.disableTimelock(authHeader, request);
-    }
-
-    @Override
-    public ReenableNamespacesResponse reenableTimelock(AuthHeader authHeader, ReenableNamespacesRequest request) {
-        return dialogueDelegate.reenableTimelock(authHeader, request);
-    }
-
-    @Override
-    public UUID getServerLifecycleId(AuthHeader authHeader) {
-        return dialogueDelegate.getServerLifecycleId(authHeader);
-    }
-
-    @Override
-    public UUID forceKillTimeLockServer(AuthHeader authHeader) {
-        return dialogueDelegate.forceKillTimeLockServer(authHeader);
-    }
-}uK      }(jt (64d654a533a64757ec6801d0c9bbd1a9a91616bbju Oatlasdb-config/src/main/java/com/palantir/atlasdb/config/ServerListConfigs.javaju modifiedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FServerListConfigs.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FServerListConfigs.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FServerListConfigs.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -26,13 +26,6 @@ private ServerListConfigs() {
         // utilities
     }
 
-    public static Refreshable<ServerListConfig> getTimeLockServersFromAtlasDbConfig(
-            AtlasDbConfig config, Optional<AtlasDbRuntimeConfig> atlasDbRuntimeConfig) {
-        Refreshable<Optional<TimeLockRuntimeConfig>> timelockRuntimeConfig =
-                Refreshable.only(atlasDbRuntimeConfig.flatMap(AtlasDbRuntimeConfig::timelockRuntime));
-        return getServerListConfigSupplierForTimeLock(config, timelockRuntimeConfig);
-    }
-
     public static Refreshable<ServerListConfig> getTimeLockServersFromAtlasDbConfig(
             AtlasDbConfig config, Refreshable<AtlasDbRuntimeConfig> runtimeConfigSupplier) {
         Refreshable<Optional<TimeLockRuntimeConfig>> timelockRuntimeConfig =u}(jt (1f8d140f2fcd68b79edcbd2a6f52017316caa266ju ^atlasdb-config/src/main/java/com/palantir/atlasdb/config/ShouldRunBackgroundSweepSupplier.javaju removedju K ju K*j u K*j!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplier.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X  @@ -1,42 +0,0 @@
-/*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.config;
-
-import java.util.function.BooleanSupplier;
-import java.util.function.Supplier;
-
-/**
- * Synthesises provided install and runtime configurations, and uses this to decide whether the background sweeper
- * should run. Specifically:
- *
- * <ul>
- *     <li>if the background sweeper has been explicitly enabled or disabled, use that setting;</li>
- *     <li>otherwise disable background sweep</li>
- * </ul>
- */
-public class ShouldRunBackgroundSweepSupplier implements BooleanSupplier {
-    private final Supplier<SweepConfig> runtimeConfigSupplier;
-
-    public ShouldRunBackgroundSweepSupplier(Supplier<SweepConfig> runtimeConfig) {
-        this.runtimeConfigSupplier = runtimeConfig;
-    }
-
-    @Override
-    public boolean getAsBoolean() {
-        return runtimeConfigSupplier.get().enabled().orElse(false);
-    }
-}u}(jt (8e383ff5530f7a77f005d2ff7e7e17df90fef15bju Iatlasdb-config/src/main/java/com/palantir/atlasdb/config/SweepConfig.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FSweepConfig.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -34,7 +34,10 @@ public abstract class SweepConfig {
      * If unspecified, AtlasDB will decide whether to run the background sweeper or not. This may depend on factors
      * elsewhere in configuration.
      */
-    public abstract Optional<Boolean> enabled();
+    @Value.Default
+    public boolean enabled() {
+        return false;
+    }
 
     // TODO handle live reload
     /**u}(jt (5899f9c92768d98fda10a6e653ad38e7192e48e5ju ]atlasdb-config/src/main/java/com/palantir/atlasdb/factory/AtlasDbDialogueServiceProvider.javaju modifiedju K ju K	j u K	j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAtlasDbDialogueServiceProvider.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAtlasDbDialogueServiceProvider.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FAtlasDbDialogueServiceProvider.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -17,7 +17,6 @@
 package com.palantir.atlasdb.factory;
 
 import com.google.common.collect.ImmutableMap;
-import com.palantir.atlasdb.backup.DialogueAdaptingTimeLockManagementService;
 import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
 import com.palantir.atlasdb.config.ServerListConfig;
 import com.palantir.atlasdb.factory.timelock.ImmutableShortAndLongTimeoutServices;
@@ -36,8 +35,6 @@
 import com.palantir.atlasdb.timelock.api.ConjureTimelockService;
 import com.palantir.atlasdb.timelock.api.ConjureTimelockServiceBlocking;
 import com.palantir.atlasdb.timelock.api.MultiClientConjureTimelockServiceBlocking;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementService;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementServiceBlocking;
 import com.palantir.atlasdb.timelock.lock.watch.ConjureLockWatchingServiceBlocking;
 import com.palantir.atlasdb.util.AtlasDbMetrics;
 import com.palantir.conjure.java.api.config.service.UserAgent;
@@ -175,12 +172,6 @@ ConjureLockWatchingServiceBlocking getConjureLockWatchingService() {
                 wrapInProxy(ConjureLockWatchingServiceBlocking.class, blockingService));
     }
 
-    public TimeLockManagementService getTimeLockManagementService() {
-        TimeLockManagementServiceBlocking blockingService =
-                dialogueClientFactory.get(TimeLockManagementServiceBlocking.class, TIMELOCK_SHORT_TIMEOUT);
-        return new DialogueAdaptingTimeLockManagementService(blockingService);
-    }
-
     private <T> T createDialogueProxyWithShortTimeout(Class<T> type) {
         return createDialogueProxy(type, dialogueClientFactory.getChannel(TIMELOCK_SHORT_TIMEOUT));
     }u}(jt (df57e9fd3c6376b49fd3c1adb77db41b476aeffeju datlasdb-config/src/main/java/com/palantir/atlasdb/factory/DefaultLockAndTimestampServiceFactory.javaju modifiedju K6ju Kj u KIj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X$  @@ -96,6 +96,7 @@
 import java.util.Set;
 import java.util.concurrent.CompletableFuture;
 import java.util.function.Consumer;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import javax.ws.rs.ClientErrorException;
 
@@ -107,7 +108,7 @@ public final class DefaultLockAndTimestampServiceFactory implements LockAndTimes
     private final MetricsManager metricsManager;
     private final AtlasDbConfig config;
     private final Refreshable<AtlasDbRuntimeConfig> runtimeConfig;
-    private final Consumer<Object> env;
+    private final Consumer<Object> registrar;
     private final Supplier<LockService> lock;
     private final Supplier<ManagedTimestampService> time;
     private final TimestampStoreInvalidator invalidator;
@@ -118,11 +119,13 @@ public final class DefaultLockAndTimestampServiceFactory implements LockAndTimes
     private final Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders;
     private final Set<Schema> schemas;
 
+    private final Function<TimelockService, TimeLockClient> timelockClientFactory;
+
     public DefaultLockAndTimestampServiceFactory(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -132,10 +135,42 @@ public DefaultLockAndTimestampServiceFactory(
             Optional<TimeLockFeedbackBackgroundTask> timeLockFeedbackBackgroundTask,
             Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders,
             Set<Schema> schemas) {
+        this(
+                metricsManager,
+                config,
+                runtimeConfig,
+                registrar,
+                lock,
+                time,
+                invalidator,
+                userAgent,
+                lockDiagnosticComponents,
+                reloadingFactory,
+                timeLockFeedbackBackgroundTask,
+                timelockRequestBatcherProviders,
+                schemas,
+                TimeLockClient::createDefault);
+    }
+
+    public DefaultLockAndTimestampServiceFactory(
+            MetricsManager metricsManager,
+            AtlasDbConfig config,
+            Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
+            Consumer<Object> registrar,
+            Supplier<LockService> lock,
+            Supplier<ManagedTimestampService> time,
+            TimestampStoreInvalidator invalidator,
+            UserAgent userAgent,
+            Optional<LockDiagnosticComponents> lockDiagnosticComponents,
+            ReloadingFactory reloadingFactory,
+            Optional<TimeLockFeedbackBackgroundTask> timeLockFeedbackBackgroundTask,
+            Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders,
+            Set<Schema> schemas,
+            Function<TimelockService, TimeLockClient> timelockClientFactory) {
         this.metricsManager = metricsManager;
         this.config = config;
         this.runtimeConfig = runtimeConfig;
-        this.env = env;
+        this.registrar = registrar;
         this.lock = lock;
         this.time = time;
         this.invalidator = invalidator;
@@ -145,6 +180,7 @@ public DefaultLockAndTimestampServiceFactory(
         this.timeLockFeedbackBackgroundTask = timeLockFeedbackBackgroundTask;
         this.timelockRequestBatcherProviders = timelockRequestBatcherProviders;
         this.schemas = schemas;
+        this.timelockClientFactory = timelockClientFactory;
     }
 
     @Override
@@ -153,7 +189,7 @@ public LockAndTimestampServices createLockAndTimestampServices() {
                 metricsManager,
                 config,
                 runtimeConfig,
-                env,
+                registrar,
                 lock,
                 time,
                 invalidator,
@@ -166,9 +202,8 @@ public LockAndTimestampServices createLockAndTimestampServices() {
         return withMetrics(metricsManager, withRefreshingLockService(lockAndTimestampServices));
     }
 
-    private static LockAndTimestampServices withRefreshingLockService(
-            LockAndTimestampServices lockAndTimestampServices) {
-        TimeLockClient timeLockClient = TimeLockClient.createDefault(lockAndTimestampServices.timelock());
+    private LockAndTimestampServices withRefreshingLockService(LockAndTimestampServices lockAndTimestampServices) {
+        TimeLockClient timeLockClient = timelockClientFactory.apply(lockAndTimestampServices.timelock());
         ProfilingTimelockService profilingService = ProfilingTimelockService.create(timeLockClient);
         return ImmutableLockAndTimestampServices.builder()
                 .from(lockAndTimestampServices)
@@ -198,7 +233,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -211,7 +246,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
         AtlasDbRuntimeConfig initialRuntimeConfig = runtimeConfig.get();
         assertNoSpuriousTimeLockBlockInRuntimeConfig(config, initialRuntimeConfig);
         if (config.leader().isPresent()) {
-            return createRawLeaderServices(metricsManager, config.leader().get(), env, lock, time, userAgent);
+            return createRawLeaderServices(metricsManager, config.leader().get(), registrar, lock, time, userAgent);
         } else if (config.timestamp().isPresent() && config.lock().isPresent()) {
             return createRawRemoteServices(metricsManager, config, runtimeConfig, userAgent);
         } else if (TransactionManagers.isUsingTimeLock(config, initialRuntimeConfig)) {
@@ -227,7 +262,7 @@ static LockAndTimestampServices createRawInstrumentedServices(
                     timelockRequestBatcherProviders,
                     knownSchemas);
         } else {
-            return createRawEmbeddedServices(metricsManager, env, lock, time);
+            return createRawEmbeddedServices(metricsManager, registrar, lock, time);
         }
     }
 
@@ -412,13 +447,13 @@ private static Supplier<InternalMultiClientConjureTimelockService> getMultiClien
     private static LockAndTimestampServices createRawLeaderServices(
             MetricsManager metricsManager,
             LeaderConfig leaderConfig,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             UserAgent userAgent) {
         // Create local services, that may or may not end up being registered in an Consumer<Object>.
         LocalPaxosServices localPaxosServices =
-                Leaders.createAndRegisterLocalServices(metricsManager, env, leaderConfig, userAgent);
+                Leaders.createAndRegisterLocalServices(metricsManager, registrar, leaderConfig, userAgent);
 
         LeadershipCoordinator leadershipCoordinator = localPaxosServices.leadershipCoordinator();
         LockService localLock =
@@ -432,9 +467,9 @@ private static LockAndTimestampServices createRawLeaderServices(
         TimestampService localTime = getTimestampFacade(managedTimestampProxy);
         TimestampManagementService localManagement = getTimestampManagementFacade(managedTimestampProxy);
 
-        env.accept(localLock);
-        env.accept(localTime);
-        env.accept(localManagement);
+        registrar.accept(localLock);
+        registrar.accept(localTime);
+        registrar.accept(localManagement);
 
         // Create remote services, that may end up calling our own local services.
         ImmutableServerListConfig serverListConfig = ImmutableServerListConfig.builder()
@@ -586,7 +621,7 @@ private static LockAndTimestampServices createRawRemoteServices(
 
     private static LockAndTimestampServices createRawEmbeddedServices(
             MetricsManager metricsManager,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> managedTimestampServiceSupplier) {
         LockService lockService =
@@ -599,9 +634,9 @@ private static LockAndTimestampServices createRawEmbeddedServices(
         TimestampManagementService timestampManagementService = ServiceCreator.instrumentService(
                 metricsManager.getRegistry(), managedTimestampService, TimestampManagementService.class);
 
-        env.accept(lockService);
-        env.accept(timeService);
-        env.accept(timestampManagementService);
+        registrar.accept(lockService);
+        registrar.accept(timeService);
+        registrar.accept(timestampManagementService);
 
         return ImmutableLockAndTimestampServices.builder()
                 .lock(lockService)u}(jt (92cee3c0379971de0a91702380e2b466da96ff6bju Fatlasdb-config/src/main/java/com/palantir/atlasdb/factory/Leaders.javaju modifiedju Kju Kj u K
j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FLeaders.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -79,13 +79,13 @@ private Leaders() {
      * service.
      */
     public static LocalPaxosServices createAndRegisterLocalServices(
-            MetricsManager metricsManager, Consumer<Object> env, LeaderConfig config, UserAgent userAgent) {
+            MetricsManager metricsManager, Consumer<Object> registrar, LeaderConfig config, UserAgent userAgent) {
         LocalPaxosServices localPaxosServices = createInstrumentedLocalServices(metricsManager, config, userAgent);
 
-        env.accept(localPaxosServices.ourAcceptor());
-        env.accept(localPaxosServices.ourLearner());
-        env.accept(localPaxosServices.localPingableLeader());
-        env.accept(new NotCurrentLeaderExceptionMapper());
+        registrar.accept(localPaxosServices.ourAcceptor());
+        registrar.accept(localPaxosServices.ourLearner());
+        registrar.accept(localPaxosServices.localPingableLeader());
+        registrar.accept(new NotCurrentLeaderExceptionMapper());
         return localPaxosServices;
     }
 u}(jt (37473508e06c194b315e01d89ff08da1a5152705ju Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javaju modifiedju Kju K$j u K6j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XQ  @@ -40,7 +40,6 @@
 import com.palantir.atlasdb.config.AuxiliaryRemotingParameters;
 import com.palantir.atlasdb.config.ImmutableAtlasDbConfig;
 import com.palantir.atlasdb.config.ServerListConfig;
-import com.palantir.atlasdb.config.ShouldRunBackgroundSweepSupplier;
 import com.palantir.atlasdb.config.SweepConfig;
 import com.palantir.atlasdb.config.TimeLockClientConfig;
 import com.palantir.atlasdb.config.TimeLockRequestBatcherProviders;
@@ -79,7 +78,6 @@
 import com.palantir.atlasdb.sweep.SpecificTableSweeper;
 import com.palantir.atlasdb.sweep.SweepBatchConfig;
 import com.palantir.atlasdb.sweep.SweepTaskRunner;
-import com.palantir.atlasdb.sweep.SweeperServiceImpl;
 import com.palantir.atlasdb.sweep.metrics.LegacySweepMetrics;
 import com.palantir.atlasdb.sweep.queue.MultiTableSweepQueueWriter;
 import com.palantir.atlasdb.sweep.queue.TargetedSweeper;
@@ -131,6 +129,7 @@
 import com.palantir.lock.client.TimeLockClient;
 import com.palantir.lock.client.metrics.TimeLockFeedbackBackgroundTask;
 import com.palantir.lock.impl.LockServiceImpl;
+import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -200,6 +199,11 @@ boolean allSafeForLogging() {
         return false;
     }
 
+    @Value.Default
+    Function<TimelockService, TimeLockClient> defaultTimelockClientFactory() {
+        return TimeLockClient::createDefault;
+    }
+
     abstract Optional<LockAndTimestampServiceFactory> lockAndTimestampServiceFactory();
 
     abstract UserAgent userAgent();
@@ -387,7 +391,8 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                         reloadingFactory(),
                         timeLockFeedbackBackgroundTask,
                         timelockRequestBatcherProviders(),
-                        schemas()));
+                        schemas(),
+                        defaultTimelockClientFactory()));
         LockAndTimestampServices lockAndTimestampServices = factory.createLockAndTimestampServices();
         adapter.setTimestampService(lockAndTimestampServices.managedTimestampService());
 
@@ -534,7 +539,7 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
         transactionManager.registerClosingCallback(targetedSweep::close);
 
         initializeCloseable(
-                () -> initializeSweepEndpointAndBackgroundProcess(
+                () -> initializeSweepBackgroundProcess(
                         metricsManager,
                         config(),
                         runtime,
@@ -809,11 +814,11 @@ static boolean timeLockMigrationCompleteIfNeeded(LockAndTimestampServices lockAn
                 .orElse(true);
     }
 
-    private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess(
+    private static BackgroundSweeperImpl initializeSweepBackgroundProcess(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Supplier<AtlasDbRuntimeConfig> runtimeConfigSupplier,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             KeyValueService kvs,
             TransactionService transactionService,
             CleanupFollower follower,
@@ -835,21 +840,19 @@ private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess
                 metricsManager,
                 () -> getSweepBatchConfig(runtimeConfigSupplier.get().sweep()));
 
-        SpecificTableSweeper specificTableSweeper = initializeSweepEndpoint(
-                env,
-                kvs,
+        SpecificTableSweeper specificTableSweeper = SpecificTableSweeper.create(
                 transactionManager,
+                kvs,
                 sweepRunner,
+                SweepTableFactory.of(),
                 sweepPerfLogger,
                 sweepMetrics,
-                config.initializeAsync(),
-                sweepBatchConfigSource);
+                config.initializeAsync());
 
         BackgroundSweeperImpl backgroundSweeper = BackgroundSweeperImpl.create(
                 metricsManager,
                 sweepBatchConfigSource,
-                new ShouldRunBackgroundSweepSupplier(
-                        () -> runtimeConfigSupplier.get().sweep())::getAsBoolean,
+                () -> runtimeConfigSupplier.get().sweep().enabled(),
                 () -> runtimeConfigSupplier.get().sweep().sweepThreads(),
                 () -> runtimeConfigSupplier.get().sweep().pauseMillis(),
                 () -> runtimeConfigSupplier.get().sweep().sweepPriorityOverrides(),
@@ -864,27 +867,6 @@ private static BackgroundSweeperImpl initializeSweepEndpointAndBackgroundProcess
         return backgroundSweeper;
     }
 
-    private static SpecificTableSweeper initializeSweepEndpoint(
-            Consumer<Object> env,
-            KeyValueService kvs,
-            TransactionManager transactionManager,
-            SweepTaskRunner sweepRunner,
-            BackgroundSweeperPerformanceLogger sweepPerfLogger,
-            LegacySweepMetrics sweepMetrics,
-            boolean initializeAsync,
-            AdjustableSweepBatchConfigSource sweepBatchConfigSource) {
-        SpecificTableSweeper specificTableSweeper = SpecificTableSweeper.create(
-                transactionManager,
-                kvs,
-                sweepRunner,
-                SweepTableFactory.of(),
-                sweepPerfLogger,
-                sweepMetrics,
-                initializeAsync);
-        env.accept(new SweeperServiceImpl(specificTableSweeper, sweepBatchConfigSource));
-        return specificTableSweeper;
-    }
-
     private static SweepBatchConfig getSweepBatchConfig(SweepConfig sweepConfig) {
         return ImmutableSweepBatchConfig.builder()
                 .maxCellTsPairsToExamine(sweepConfig.readLimit())
@@ -940,7 +922,7 @@ public static LockAndTimestampServices createLockAndTimestampServicesForCli(
             MetricsManager metricsManager,
             AtlasDbConfig config,
             Refreshable<AtlasDbRuntimeConfig> runtimeConfigSupplier,
-            Consumer<Object> env,
+            Consumer<Object> registrar,
             Supplier<LockService> lock,
             Supplier<ManagedTimestampService> time,
             TimestampStoreInvalidator invalidator,
@@ -950,7 +932,7 @@ public static LockAndTimestampServices createLockAndTimestampServicesForCli(
                         metricsManager,
                         config,
                         runtimeConfigSupplier,
-                        env,
+                        registrar,
                         lock,
                         time,
                         invalidator,u}(jt (5d339f0ca1b1d528743d2246718cc8b977604ba6ju Vatlasdb-config/src/test/java/com/palantir/atlasdb/config/AtlasDbRuntimeConfigTest.javaju modifiedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FAtlasDbRuntimeConfigTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -21,18 +21,6 @@
 import org.junit.Test;
 
 public class AtlasDbRuntimeConfigTest {
-    @Test
-    public void configDoesNotSpecifySweepByDefault() {
-        AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.defaultRuntimeConfig();
-        assertThat(config.sweep().enabled()).isEmpty();
-    }
-
-    @Test
-    public void configWithoutSweepHasSweepDisabled() {
-        AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.withSweepDisabled();
-        assertThat(config.sweep().enabled()).contains(false);
-    }
-
     @Test
     public void configWithoutSpecifyingStreamPersistenceConfigHasDefaultConfig() {
         AtlasDbRuntimeConfig config = AtlasDbRuntimeConfig.defaultRuntimeConfig();u}(jt (99709ed401e5f0d37ebfb9169ea783f5f6e19c95ju batlasdb-config/src/test/java/com/palantir/atlasdb/config/ShouldRunBackgroundSweepSupplierTest.javaju removedju K ju Kfj u Kfj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FShouldRunBackgroundSweepSupplierTest.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X]  @@ -1,102 +0,0 @@
-/*
- * (c) Copyright 2019 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.config;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
-
-import com.palantir.atlasdb.sweep.queue.config.ImmutableTargetedSweepRuntimeConfig;
-import com.palantir.atlasdb.sweep.queue.config.TargetedSweepRuntimeConfig;
-import java.util.function.Supplier;
-import org.junit.Test;
-
-public class ShouldRunBackgroundSweepSupplierTest {
-
-    private static final TargetedSweepRuntimeConfig TARGETED_SWEEP_ENABLED =
-            ImmutableTargetedSweepRuntimeConfig.builder().enabled(true).build();
-    private static final TargetedSweepRuntimeConfig TARGETED_SWEEP_DISABLED =
-            ImmutableTargetedSweepRuntimeConfig.builder().enabled(false).build();
-
-    private static final SweepConfig BACKGROUND_SWEEP_ENABLED =
-            ImmutableSweepConfig.builder().enabled(true).build();
-    private static final SweepConfig BACKGROUND_SWEEP_UNSET = SweepConfig.defaultSweepConfig();
-    private static final SweepConfig BACKGROUND_SWEEP_DISABLED = SweepConfig.disabled();
-
-    @Test
-    public void disableBackgroundSweepIfBackgroundSweepExplicitlyDisabled() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_DISABLED))
-                .isFalse();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_DISABLED))
-                .isFalse();
-    }
-
-    @Test
-    public void enableBackgroundSweepIfBackgroundSweepExplicitlyEnabled() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_ENABLED))
-                .isTrue();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED))
-                .isTrue();
-    }
-
-    @Test
-    public void disableBackgroundSweepIfNotSet() {
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET))
-                .isFalse();
-        assertThat(runBackgroundSweep(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET))
-                .isFalse();
-    }
-
-    // Mock assignment known to be safe
-    // Direct mock invocation is safe here as we're using it as a convenient way to create a supplier
-    @SuppressWarnings({"unchecked", "DirectInvocationOnMock"})
-    @Test
-    public void liveReload() {
-        Supplier<AtlasDbRuntimeConfig> runtimeConfigSupplier = mock(Supplier.class);
-        when(runtimeConfigSupplier.get())
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET))
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET))
-                .thenReturn(createRuntimeConfig(TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED));
-
-        ShouldRunBackgroundSweepSupplier supplier = new ShouldRunBackgroundSweepSupplier(
-                () -> runtimeConfigSupplier.get().sweep());
-
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_UNSET")
-                .isFalse();
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_DISABLED, BACKGROUND_SWEEP_UNSET")
-                .isFalse();
-        assertThat(supplier.getAsBoolean())
-                .as("TARGETED_SWEEP_ENABLED, BACKGROUND_SWEEP_ENABLED")
-                .isTrue();
-    }
-
-    private static boolean runBackgroundSweep(TargetedSweepRuntimeConfig tsRuntime, SweepConfig bgSweepConfig) {
-        return new ShouldRunBackgroundSweepSupplier(
-                        () -> createRuntimeConfig(tsRuntime, bgSweepConfig).sweep())
-                .getAsBoolean();
-    }
-
-    private static AtlasDbRuntimeConfig createRuntimeConfig(
-            TargetedSweepRuntimeConfig targetedSweepRuntimeConfig, SweepConfig backgroundSweepConfig) {
-        return ImmutableAtlasDbRuntimeConfig.builder()
-                .targetedSweep(targetedSweepRuntimeConfig)
-                .sweep(backgroundSweepConfig)
-                .build();
-    }
-}u}(jt (7b553ba97fea29cc28f91d035e5cbe8060e8cae3ju hatlasdb-config/src/test/java/com/palantir/atlasdb/config/TransactionManagersAsyncInitializationTest.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fconfig%2FTransactionManagersAsyncInitializationTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -45,7 +45,7 @@ public class TransactionManagersAsyncInitializationTest {
     private static final String USER_AGENT_VERSION = "3.1415926.5358979";
     private static final UserAgent USER_AGENT = UserAgent.of(UserAgent.Agent.of(USER_AGENT_NAME, USER_AGENT_VERSION));
 
-    private final Consumer<Object> environment = mock(Consumer.class);
+    private final Consumer<Object> registrar = mock(Consumer.class);
 
     @Test
     public void asyncInitializationEventuallySucceeds() {
@@ -59,7 +59,7 @@ public void asyncInitializationEventuallySucceeds() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema())
                 .build()
                 .serializable();
@@ -84,7 +84,7 @@ public void transactionManagersBuilderDoesNotThrowIfAsyncInitialisationFailsRepe
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema());
 
         assertThatCode(() -> build.build().serializable()).doesNotThrowAnyException();u}(jt (9c5d0752d26338a6bd7a12031a481f8b1013f2d0ju \atlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/HikariCPConnectionManager.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FHikariCPConnectionManager.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -246,20 +246,21 @@ private void testDataSource(HikariDataSource dataSourcePool) throws SQLException
      * @throws SQLException if connection is invalid and cannot be used.
      */
     private void testConnection(Connection connection) throws SQLException {
-        if (connConfig.getTestQuery().isEmpty()) {
-            if (!connection.isValid(connConfig.getSocketTimeoutSeconds())) {
-                throw new SQLException(String.format("Connection %s is not valid", connection));
-            }
-        } else {
-            try (PreparedStatement stmt = connection.prepareStatement(connConfig.getTestQuery())) {
+        if (connConfig.getTestQuery().isPresent()) {
+            try (PreparedStatement stmt =
+                    connection.prepareStatement(connConfig.getTestQuery().get())) {
                 stmt.setFetchSize(1); // only need first row result
                 ResultSet rs = stmt.executeQuery();
                 if (!rs.next()) {
                     throw new SQLException(String.format(
                             "Connection %s could not be validated as it did not return any results for test query %s",
-                            connection, connConfig.getTestQuery()));
+                            connection, connConfig.getTestQuery().get()));
                 }
             }
+        } else {
+            if (!connection.isValid(connConfig.getSocketTimeoutSeconds())) {
+                throw new SQLException(String.format("Connection %s is not valid", connection));
+            }
         }
     }
 u}(jt (e1fd2afeb410162c7eb111eb2ed045144d3511afju Zatlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/ConnectionConfig.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FConnectionConfig.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -58,7 +58,7 @@ public MaskedValue getDbPassword() {
 
     public abstract String getDriverClass();
 
-    public abstract String getTestQuery();
+    public abstract Optional<String> getTestQuery();
 
     @JsonIgnore
     @Value.Derived
@@ -132,7 +132,7 @@ public String getConnectionPoolName() {
 
     @Value.Default
     public boolean testConnectionBeforeHandout() {
-        return true;
+        return false;
     }
 
     /**
@@ -182,8 +182,8 @@ public HikariConfig getHikariConfig() {
 
         initializeFailTimeoutMillis().ifPresent(config::setInitializationFailTimeout);
 
-        if (getTestQuery() != null && !getTestQuery().isEmpty()) {
-            config.setConnectionTestQuery(getTestQuery());
+        if (getTestQuery().isPresent()) {
+            config.setConnectionTestQuery(getTestQuery().get());
         }
 
         if (getSqlExceptionOverrideClass().isPresent()) {u}(jt (a2ad768a82efd1e1c312c4709fc4d57be8af1b8eju \atlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/H2ConnectionConfig.javaju modifiedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FH2ConnectionConfig.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FH2ConnectionConfig.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FH2ConnectionConfig.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X!  @@ -50,12 +50,6 @@ public String getDriverClass() {
         return "org.h2.Driver";
     }
 
-    @Override
-    @Value.Default
-    public String getTestQuery() {
-        return "SELECT 1";
-    }
-
     @Override
     public final DBType getDbType() {
         return DBType.H2_MEMORY;u}(jt (41a91b3af333f4beb327239129f2b5db59d5dc2eju `atlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/OracleConnectionConfig.javaju modifiedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FOracleConnectionConfig.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FOracleConnectionConfig.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FOracleConnectionConfig.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XY  @@ -88,12 +88,6 @@ public String getDriverClass() {
         return "oracle.jdbc.driver.OracleDriver";
     }
 
-    @Override
-    @Value.Default
-    public String getTestQuery() {
-        return "";
-    }
-
     public abstract Optional<String> getSid();
 
     public abstract Optional<ServiceNameConfiguration> serviceNameConfiguration();u}(jt (814cb717b3d8c2d5aeb4ff0368d10e7cb32fa81dju batlasdb-dbkvs-hikari/src/main/java/com/palantir/nexus/db/pool/config/PostgresConnectionConfig.javaju modifiedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FPostgresConnectionConfig.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FPostgresConnectionConfig.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs-hikari%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2Fconfig%2FPostgresConnectionConfig.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -66,12 +66,6 @@ public String getDriverClass() {
         return "org.postgresql.Driver";
     }
 
-    @Override
-    @Value.Default
-    public String getTestQuery() {
-        return "SELECT 1";
-    }
-
     public abstract String getDbName();
 
     @Overrideu}(jt (2a91fe0d6e86187e3690c8655b64ea385b2f02faju Satlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/FullQuery.javaju modifiedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FFullQuery.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u Xe  @@ -35,11 +35,6 @@ public Builder append(String query) {
             return this;
         }
 
-        public Builder append(long number) {
-            queryBuilder.append(number);
-            return this;
-        }
-
         public Builder append(String query, Object arg) {
             queryBuilder.append(query);
             argsBuilder.add(arg);u}(jt (ddbe99f94fd632341080a204b08994736d8ac8d1ju gatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleCellTsPageLoader.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleCellTsPageLoader.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -195,8 +195,7 @@ private FullQuery getQuery(boolean singleRow) {
             appendRangePredicates(singleRow, queryBuilder);
             return queryBuilder
                     .append("  ORDER BY row_name, col_name, ts")
-                    .append(") WHERE rownum <= ")
-                    .append(sqlRowLimit)
+                    .append(") WHERE rownum <= ?", sqlRowLimit)
                     .append(" ORDER BY row_name, col_name, ts")
                     .build();
         }u}(jt (16016bac4fb642bd9934fcbdc2a95307afc7979aju _atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTable.javaju modifiedju KBju K	j u KKj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTable.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u Xz  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Stopwatch;
 import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -30,6 +31,9 @@
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyle;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyleCache;
 import com.palantir.atlasdb.logging.LoggingArgs;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.NamedColumnDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.common.base.RunnableCheckedException;
 import com.palantir.common.base.Throwables;
@@ -47,6 +51,7 @@
 import com.palantir.util.VersionStrings;
 import java.sql.SQLException;
 import java.util.Locale;
+import java.util.Set;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.TimeUnit;
 import org.apache.commons.lang3.StringUtils;
@@ -90,7 +95,9 @@ public static OracleDdlTable create(
 
     @Override
     public void create(byte[] tableMetadata) {
-        boolean needsOverflow = needsOverflow(tableMetadata);
+        TableMetadata metadata = TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMetadata);
+        boolean needsOverflow = needsOverflow(metadata);
+        int compressionSetting = getOptimalIndexCompression(metadata);
 
         if (tableExists()) {
             if (needsOverflow) {
@@ -103,7 +110,7 @@ public void create(byte[] tableMetadata) {
             return;
         }
 
-        String shortTableName = createTable(needsOverflow);
+        String shortTableName = createTable(needsOverflow, compressionSetting);
 
         if (needsOverflow && !overflowColumnExists(shortTableName)) {
             throwForMissingOverflowTable();
@@ -146,10 +153,51 @@ private boolean overflowTableHasMigrated() {
         return config.overflowMigrationState() == OverflowMigrationState.FINISHED;
     }
 
-    private boolean needsOverflow(byte[] tableMetadata) {
-        TableMetadata metadata = TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMetadata);
-        return (metadata != null)
-                && (metadata.getColumns().getMaxValueSize() > AtlasDbConstants.ORACLE_OVERFLOW_THRESHOLD);
+    private boolean needsOverflow(TableMetadata metadata) {
+        return metadata.getColumns().getMaxValueSize() > AtlasDbConstants.ORACLE_OVERFLOW_THRESHOLD;
+    }
+
+    /*
+     * Determine the optimal Index Organized Table compression setting.
+     * When enabling compression on an IOT, we can instruct Oracle to compress at most one
+     * fewer columns than the number of columns that make up the PK for the IOT (i.e. the IOT we create have a PK of
+     * {row, col, ts} so we can compress 0, 1 or 2 columns - nothing, row, or row & col. It wouldn't make sense to
+     * compress all three columns, because necessarily there can be multiple rows that share all three values.
+     *
+     * When compression is enabled in an IOT, the block header adds a table the captures the values of the
+     * compressed columns. The actual rows in the blocks then refer back to entries in the header table to capture
+     * their values for the compressed columns. This extra header table and the slot references for data rows consume
+     * space in the block, so misuse of compression results in extra storage being consumed.
+     *
+     * Compression only makes sense when we expect that the { row } or { row, col } values will be reused:
+     * - If the table's sweep strategy is CONSERVATIVE, then every { row, col } will have at least two rows,
+     *   the current value (which may have null val if the value is deleted) and a sentinel row with ts = -1. Clearly
+     *   compression of both { row, col } is valuable.
+     * - If the sweep strategy is not CONSERVATIVE,  there will be reuse of the { row } if there is more than one named
+     *   column, or the table uses dynamic columns, which would be generally be expected to have multiple row values. In
+     *   this case, compression 1 is appropriate so { row } only needs to be stored once.
+     * - Finally, if the sweep strategy is not CONSERVATIVE, there are no sentinels, and if there is only one named
+     *   column then there will be no rows that share { row } so compression should be disabled.
+     */
+    @VisibleForTesting
+    static int getOptimalIndexCompression(TableMetadata metadata) {
+        if (metadata.getSweepStrategy() == SweepStrategy.CONSERVATIVE) {
+            // the table's sweep strategy is CONSERVATIVE, then every { row, col } will have at least two rows
+            return 2;
+        }
+
+        ColumnMetadataDescription columns = metadata.getColumns();
+        // there will be reuse of the { row } if there is more than one named column
+        // or the table uses dynamic columns, which would be generally be expected to have multiple row values
+        if (columns.hasDynamicColumns()) {
+            return 1;
+        }
+        Set<NamedColumnDescription> namedColumns = columns.getNamedColumns();
+        if (namedColumns != null && namedColumns.size() > 1) {
+            return 1;
+        }
+
+        return 0;
     }
 
     private boolean overflowColumnExists(String shortTableName) {
@@ -185,7 +233,7 @@ private void throwForMissingOverflowTable() {
     /**
      * Creates the table for the given reference. If the schema is modified here, please also update it in {@link #alterTableToHaveOverflowColumn}.
      */
-    private String createTable(boolean needsOverflow) {
+    private String createTable(boolean needsOverflow, int compression) {
         String shortTableName = oracleTableNameGetter.generateShortTableName(conns, tableRef);
         executeIgnoringError(
                 "CREATE TABLE " + shortTableName + " ("
@@ -196,7 +244,13 @@ private String createTable(boolean needsOverflow) {
                         + (needsOverflow ? "overflow   NUMBER(38), " : "")
                         + "  CONSTRAINT " + PrimaryKeyConstraintNames.get(shortTableName)
                         + " PRIMARY KEY (row_name, col_name, ts) "
-                        + ") organization index compress overflow",
+                        + ") "
+                        + "organization index "
+                        + (compression == 0 ? "" : "compress " + compression + " ")
+                        // Since append only completely fill blocks - no benefit in leaving space for updates of rows
+                        // PCTUSED N/A to Index Organized Tables
+                        + "PCTFREE 0 "
+                        + "overflow",
                 OracleErrorConstants.ORACLE_ALREADY_EXISTS_ERROR);
         putTableNameMapping(oracleTableNameGetter.getPrefixedTableName(tableRef), shortTableName);
         return shortTableName;
@@ -209,7 +263,10 @@ private void createOverflowTable() {
                         + "  id  NUMBER(38) NOT NULL, "
                         + "  val BLOB NOT NULL,"
                         + "  CONSTRAINT " + PrimaryKeyConstraintNames.get(shortOverflowTableName) + " PRIMARY KEY (id)"
-                        + ")",
+                        + ") "
+                        // Since append only completely fill blocks - no benefit in leaving space for updates of rows
+                        // Assume auto segment space management, so PCTUSED ignored
+                        + "PCTFREE 0",
                 OracleErrorConstants.ORACLE_ALREADY_EXISTS_ERROR);
         putTableNameMapping(oracleTableNameGetter.getPrefixedOverflowTableName(tableRef), shortOverflowTableName);
     }u}(jt (570b443f767b2c7f891051709f1bd68ce081d75cju _atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleGetRange.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleGetRange.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XF  @@ -316,8 +316,7 @@ private FullQuery getRangeQuery(ConnectionSupplier conns) {
                     .append(shortTableName)
                     .append(" v ON ")
                     .append("    sub.row_name = v.row_name and sub.col_name = v.col_name and sub.ts = v.ts")
-                    .append("  WHERE sub.rn <= ")
-                    .append(maxRowsPerPage)
+                    .append("  WHERE sub.rn <= ?", maxRowsPerPage)
                     .append("  ORDER BY sub.row_name ")
                     .append(direction)
                     .append(", sub.col_name ")u}(jt (68c4ca31f6171bb238d98d2e9cfa5f4ad9e2f919ju catlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleQueryFactory.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleQueryFactory.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XW	  @@ -312,8 +312,8 @@ public FullQuery getRangeQuery(RangeRequest range, long ts, int maxRows) {
                 + "     FROM " + tableName + " m "
                 + (bounds.isEmpty() ? "" : " WHERE  " + Joiner.on(" AND ").join(bounds))
                 + "     ORDER BY m.row_name " + (range.isReverse() ? "DESC" : "ASC")
-                + "   ) inner WHERE rownum <= " + maxRows;
-        return new FullQuery(query).withArgs(args);
+                + "   ) inner WHERE rownum <= ?";
+        return new FullQuery(query).withArgs(args).withArg(maxRows);
     }
 
     @Override
@@ -334,10 +334,10 @@ public FullQuery getRowsColumnRangeCountsQuery(
                 + " GROUP BY m.row_name";
         FullQuery fullQuery = new FullQuery(query).withArgs(rowsToOracleArray(rows), ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
         return fullQuery;
     }
@@ -355,14 +355,15 @@ protected FullQuery getRowsColumnRangeSubQuery(
                 + (columnRangeSelection.getStartCol().length > 0 ? " AND m.col_name >= ?" : "")
                 + (columnRangeSelection.getEndCol().length > 0 ? " AND m.col_name < ?" : "")
                 + " GROUP BY m.row_name, m.col_name"
-                + " ORDER BY m.row_name ASC, m.col_name ASC ) s WHERE rownum <= " + columnRangeSelection.getBatchHint();
+                + " ORDER BY m.row_name ASC, m.col_name ASC ) s WHERE rownum <= ?";
         FullQuery fullQuery = new FullQuery(query).withArg(row).withArg(ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
+        fullQuery.withArg(columnRangeSelection.getBatchHint());
         return fullQuery;
     }
 u}(jt (2f1bb8d487f43f4608acaf707e7e6788af473dbdju katlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresCellTsPageLoader.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresCellTsPageLoader.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XR  @@ -154,8 +154,7 @@ private FullQuery getFullQuery() {
                                 token.startRowInclusive(), token.startColInclusive(), token.startTsInclusive());
                 return queryBuilder
                         .append("      ORDER BY row_name, col_name, ts")
-                        .append("      LIMIT ")
-                        .append(sqlRowLimit)
+                        .append("      LIMIT ?", sqlRowLimit)
                         .append("    ) sub")
                         .append("    GROUP BY row_name, col_name")
                         .append("    ORDER BY row_name, col_name")
@@ -183,8 +182,7 @@ private FullQuery getFullQuery() {
                                 token.startRowInclusive(), token.startColInclusive(), token.startTsInclusive());
                 return queryBuilder
                         .append("  ORDER BY row_name, col_name, ts")
-                        .append("  LIMIT ")
-                        .append(sqlRowLimit)
+                        .append("  LIMIT ?", sqlRowLimit)
                         .build();
             }
         }u}(jt (00cafb31e5f67e282a7490f4d2f3b4c4034b0fb5ju catlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresGetRange.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresGetRange.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -288,8 +288,7 @@ private FullQuery getRangeQuery() {
                     .append(direction)
                     .append(", col_name ")
                     .append(direction)
-                    .append("    LIMIT ")
-                    .append(maxCellsPerPage)
+                    .append("    LIMIT ?", maxCellsPerPage)
                     .append("  ) i")
                     .append("  WHERE wrap.row_name = i.row_name")
                     .append("    AND wrap.col_name = i.col_name")u}(jt (09ea7a8a8689d417885286a94aaf8424dfa8b7faju gatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/postgres/PostgresQueryFactory.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Fpostgres%2FPostgresQueryFactory.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -229,8 +229,8 @@ public FullQuery getRangeQuery(RangeRequest range, long ts, int maxRows) {
                 + " FROM " + prefixedTableName() + " m "
                 + (bounds.isEmpty() ? "" : " WHERE  " + Joiner.on(" AND ").join(bounds))
                 + " ORDER BY m.row_name " + (range.isReverse() ? "DESC" : "ASC")
-                + " LIMIT " + maxRows;
-        return new FullQuery(query).withArgs(args);
+                + " LIMIT ?";
+        return new FullQuery(query).withArgs(args).withArg(maxRows);
     }
 
     @Override
@@ -319,16 +319,17 @@ protected FullQuery getRowsColumnRangeSubQuery(
                 + (columnRangeSelection.getStartCol().length > 0 ? " AND m.col_name >= ?" : "")
                 + (columnRangeSelection.getEndCol().length > 0 ? " AND m.col_name < ?" : "")
                 + " GROUP BY m.row_name, m.col_name"
-                + " ORDER BY m.col_name ASC LIMIT " + columnRangeSelection.getBatchHint();
+                + " ORDER BY m.col_name ASC LIMIT ?";
         FullQuery fullQuery = new FullQuery(wrapQueryWithIncludeValue("GET_ROWS_COLUMN_RANGE", query, true))
                 .withArg(row)
                 .withArg(ts);
         if (columnRangeSelection.getStartCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getStartCol());
+            fullQuery.withArg(columnRangeSelection.getStartCol());
         }
         if (columnRangeSelection.getEndCol().length > 0) {
-            fullQuery = fullQuery.withArg(columnRangeSelection.getEndCol());
+            fullQuery.withArg(columnRangeSelection.getEndCol());
         }
+        fullQuery.withArg(columnRangeSelection.getBatchHint());
         return fullQuery;
     }
 u}(jt (a4d7e0bf2840561582e23f5dd2c6582df9f5bdfeju `atlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/OracleTableNameUnmapperTest.java     ju modifiedju Kju Kj u K,j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -46,6 +46,7 @@
 import com.palantir.nexus.db.sql.AgnosticResultSetImpl;
 import com.palantir.nexus.db.sql.SqlConnection;
 import java.sql.Connection;
+import java.util.Arrays;
 import java.util.Collections;
 import java.util.List;
 import java.util.Map;
@@ -55,9 +56,14 @@
 import java.util.stream.IntStream;
 import org.junit.Before;
 import org.junit.Test;
+import org.junit.runner.RunWith;
 import org.mockito.ArgumentCaptor;
+import org.mockito.Mock;
+import org.mockito.Mock.Strictness;
+import org.mockito.junit.MockitoJUnitRunner;
 import org.mockito.stubbing.OngoingStubbing;
 
+@RunWith(MockitoJUnitRunner.class)
 public class OracleTableNameUnmapperTest {
 
     private static final String TEST_PREFIX = "a_";
@@ -68,21 +74,24 @@ public class OracleTableNameUnmapperTest {
     private static final TableReference TABLE_REF = TableReference.create(TEST_NAMESPACE, LONG_TABLE_NAME);
     private static final TableReference TABLE_REF_2 = TableReference.create(TEST_NAMESPACE, LONG_TABLE_NAME + "2");
 
-    private OracleTableNameUnmapper oracleTableNameUnmapper;
-    private AgnosticResultSet shortNameResultSet;
-    private ConnectionSupplier connectionSupplier;
-    private SqlConnection sqlConnection;
+    private final OracleTableNameUnmapper oracleTableNameUnmapper = new OracleTableNameUnmapper();
+
+    @Mock
+    AgnosticResultSet shortNameResultSet;
+
+    @Mock
+    ConnectionSupplier connectionSupplier;
+
+    @Mock(strictness = Strictness.LENIENT)
+    SqlConnection sqlConnection;
+
+    @Mock
+    Connection connection;
 
     @Before
     public void setup() {
-        connectionSupplier = mock(ConnectionSupplier.class);
-        oracleTableNameUnmapper = new OracleTableNameUnmapper();
-        sqlConnection = mock(SqlConnection.class);
-        Connection connection = mock(Connection.class);
         when(sqlConnection.getUnderlyingConnection()).thenReturn(connection);
         when(connectionSupplier.get()).thenReturn(sqlConnection);
-
-        shortNameResultSet = mock(AgnosticResultSet.class);
         when(sqlConnection.selectResultSetUnregisteredQuery(
                         startsWith("SELECT short_table_name FROM atlasdb_table_names WHERE table_name"), any()))
                 .thenReturn(shortNameResultSet);
@@ -135,7 +144,7 @@ public void cacheIsActuallyUsed() throws TableMappingNotFoundException {
 
     @Test
     public void getShortToLongTableNamesFromMappingTableReturnsLongNames() {
-        ArgumentCaptor<Object> tableNameCaptor = ArgumentCaptor.forClass(Object.class);
+        ArgumentCaptor<Object[]> tableNameCaptor = ArgumentCaptor.forClass(Object[].class);
         Map<String, String> shortNamesToLongNames = ImmutableMap.<String, String>builder()
                 .put("shortNameOne", "superLongNameOne")
                 .put("shortNameTwo", "superLongNameTwo")
@@ -153,7 +162,8 @@ public void getShortToLongTableNamesFromMappingTableReturnsLongNames() {
                                 + "(short_table_name) IN (" + generatePlaceholders(3) + ")"),
                         tableNameCaptor.capture());
 
-        assertThat(tableNameCaptor.getAllValues()).containsExactlyInAnyOrderElementsOf(shortNamesToLongNames.keySet());
+        assertThat(tableNameCaptor.getAllValues().stream().flatMap(Arrays::stream))
+                .containsExactlyInAnyOrderElementsOf(shortNamesToLongNames.keySet());
         verifyNoMoreInteractions(sqlConnection);
     }
 
@@ -174,15 +184,15 @@ public void getShortToLongTableNamesFromMappingTableDoesMultipleQueriesIfMoreTab
                         eq("SELECT short_table_name, table_name FROM atlasdb_table_names WHERE LOWER"
                                 + "(short_table_name) IN ("
                                 + generatePlaceholders(AtlasDbConstants.MINIMUM_IN_CLAUSE_EXPRESSION_LIMIT) + ")"),
-                        any());
+                        any(Object[].class));
         verify(sqlConnection)
                 .selectResultSetUnregisteredQuery(
                         eq("SELECT short_table_name, table_name FROM atlasdb_table_names WHERE LOWER"
                                 + "(short_table_name) IN ("
                                 + generatePlaceholders(
                                         numberOfEntries - AtlasDbConstants.MINIMUM_IN_CLAUSE_EXPRESSION_LIMIT)
                                 + ")"),
-                        any());
+                        any(Object[].class));
         verifyNoMoreInteractions(sqlConnection);
     }
 
@@ -221,11 +231,12 @@ public void getShortToLongTableNamesFromMappingReturnsEmptyMapIfMappingTableNotP
                 .isEmpty();
     }
 
-    private void mockShortNamesToLongNamesQuery(Map<String, String> shortTableNamesToLongTableNames) {
+    private OngoingStubbing<AgnosticResultSet> mockShortNamesToLongNamesQuery(
+            Map<String, String> shortTableNamesToLongTableNames) {
         OngoingStubbing<AgnosticResultSet> ongoingStubbing = when(sqlConnection.selectResultSetUnregisteredQuery(
                 startsWith("SELECT short_table_name, table_name FROM " + AtlasDbConstants.ORACLE_NAME_MAPPING_TABLE
                         + " WHERE LOWER(short_table_name)"),
-                any()));
+                any(Object[].class)));
 
         for (List<Entry<String, String>> batch : Iterables.partition(
                 shortTableNamesToLongTableNames.entrySet(), AtlasDbConstants.MINIMUM_IN_CLAUSE_EXPRESSION_LIMIT)) {
@@ -236,6 +247,7 @@ private void mockShortNamesToLongNamesQuery(Map<String, String> shortTableNamesT
                     DBType.ORACLE,
                     Map.of("short_table_name", 0, "SHORT_TABLE_NAME", 0, "table_name", 1, "TABLE_NAME", 1)));
         }
+        return ongoingStubbing;
     }
 
     private String generatePlaceholders(int numberOfPlaceholders) {u}(jt (e22af5a95fd838f0ae5d4de23759495e249828a8ju catlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/oracle/OracleDdlTableTest.javaju modifiedju K7ju K j u K7j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2Foracle%2FOracleDdlTableTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X,  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.keyvalue.dbkvs.impl.oracle;
 
 import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
@@ -41,6 +42,11 @@
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.OverflowMigrationState;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyle;
 import com.palantir.atlasdb.keyvalue.dbkvs.impl.TableValueStyleCache;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.ColumnValueDescription;
+import com.palantir.atlasdb.table.description.NameComponentDescription;
+import com.palantir.atlasdb.table.description.NamedColumnDescription;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.table.description.ValueType;
 import com.palantir.common.concurrent.PTExecutors;
@@ -50,6 +56,8 @@
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.nexus.db.sql.SqlConnection;
+import java.util.ArrayList;
+import java.util.List;
 import java.util.Locale;
 import java.util.Set;
 import java.util.concurrent.ExecutorService;
@@ -348,6 +356,53 @@ public void createDoesNotThrowWhenOverflowColumnAlreadyExistsAndAlterIsRan() thr
         verifyTableAltered();
     }
 
+    @Test
+    public void conservativeSweptTablesHaveIndexCompression2() {
+        for (int numColumns = 0; numColumns <= 2; numColumns++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.CONSERVATIVE);
+            for (int colName = 0; colName < numColumns; colName++) {
+                metadataBuilder.singleNamedColumn("c" + colName, "col" + colName, ValueType.STRING);
+            }
+            TableMetadata metadata = metadataBuilder.build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(2);
+        }
+    }
+
+    @Test
+    public void thoroughSweptTablesWithDynamicColsHaveIndexCompression1() {
+        TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+        TableMetadata metadata = metadataBuilder
+                .dynamicColumns(List.of(NameComponentDescription.of("c", ValueType.STRING)), ValueType.STRING)
+                .build();
+        assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(1);
+    }
+
+    @Test
+    public void thoroughSweptTablesWithMultipleNamedColsHaveIndexCompression1() {
+        for (int numColumns = 2; numColumns <= 3; numColumns++) {
+            TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+            List<NamedColumnDescription> columns = new ArrayList<>();
+            for (int colDesc = 1; colDesc <= numColumns; colDesc++) {
+                columns.add(new NamedColumnDescription(
+                        "c" + colDesc, "col" + colDesc, ColumnValueDescription.forType(ValueType.STRING)));
+            }
+            TableMetadata metadata = metadataBuilder
+                    .columns(new ColumnMetadataDescription(columns))
+                    .build();
+            assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(1);
+        }
+    }
+
+    @Test
+    public void thoroughSweptTablesWithOneNamedColHaveIndexCompressionDisabled() {
+        TableMetadata.Builder metadataBuilder = TableMetadata.builder().sweepStrategy(SweepStrategy.THOROUGH);
+        TableMetadata metadata = metadataBuilder
+                .columns(new ColumnMetadataDescription(List.of(
+                        new NamedColumnDescription("c", "col", ColumnValueDescription.forType(ValueType.STRING)))))
+                .build();
+        assertThat(OracleDdlTable.getOptimalIndexCompression(metadata)).isEqualTo(0);
+    }
+
     private void createTable() throws TableMappingNotFoundException {
         // Not all tests will call OracleDdlTable#createTable, which makes sense as this test "creates" it for them!
         lenient()u}(jt (92430ad0397e159d2c1ea903cea20d5f337d208bju atlasdb-ete-tests/build.gradleju modifiedju K ju Kj u Kj!u rhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-ete-tests%2Fbuild.gradlej#u qhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-ete-tests%2Fbuild.gradlej%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fbuild.gradle?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u Xo  @@ -28,7 +28,6 @@ dependencies {
     implementation 'org.awaitility:awaitility'
     implementation 'org.slf4j:slf4j-api'
     implementation project(':atlasdb-api')
-    implementation project(':atlasdb-backup')
     implementation project(':atlasdb-cassandra')
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-client-protobufs')u}(jt (1d193b8827aecd4f6d245fb465dfbdc647f5e14aju +atlasdb-ete-tests/docker-compose.oracle.ymlju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlj#u ~https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-ete-tests%2Fdocker-compose.oracle.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fdocker-compose.oracle.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -2,7 +2,7 @@ version: '2'
 
 services:
   oracle:
-    image: palantirtechnologies/oracle-atlasdb:19.12.0.0-se
+    image: palantirtechnologies/oracle-atlasdb:19.19.0.0-se
     ports:
       - "1521"
 u}(jt (ec8d637e26567cdc25907c2058ef04bc64f0da6cju Jatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/AtlasDbEteServer.javaju modifiedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbEteServer.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbEteServer.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2FAtlasDbEteServer.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X,  @@ -21,48 +21,26 @@
 import com.google.common.base.Suppliers;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.backup.AtlasBackupResource;
-import com.palantir.atlasdb.backup.AtlasBackupService;
-import com.palantir.atlasdb.backup.AtlasRestoreResource;
-import com.palantir.atlasdb.backup.AtlasRestoreService;
-import com.palantir.atlasdb.backup.AuthHeaderValidator;
-import com.palantir.atlasdb.backup.DelegatingBackupTimeLockServiceView;
-import com.palantir.atlasdb.backup.ExternalBackupPersister;
-import com.palantir.atlasdb.backup.SimpleBackupAndRestoreResource;
-import com.palantir.atlasdb.backup.api.AtlasBackupClient;
-import com.palantir.atlasdb.backup.api.AtlasRestoreClient;
-import com.palantir.atlasdb.backup.api.AtlasService;
 import com.palantir.atlasdb.blob.BlobSchema;
-import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
-import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
 import com.palantir.atlasdb.cleaner.CleanupFollower;
 import com.palantir.atlasdb.cleaner.Follower;
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.config.AtlasDbRuntimeConfig;
-import com.palantir.atlasdb.config.ServerListConfig;
-import com.palantir.atlasdb.config.ServerListConfigs;
 import com.palantir.atlasdb.coordination.CoordinationService;
 import com.palantir.atlasdb.coordination.SimpleCoordinationResource;
-import com.palantir.atlasdb.factory.AtlasDbDialogueServiceProvider;
 import com.palantir.atlasdb.factory.TransactionManagers;
-import com.palantir.atlasdb.http.AtlasDbRemotingConstants;
 import com.palantir.atlasdb.http.NotInitializedExceptionMapper;
-import com.palantir.atlasdb.http.RedirectRetryTargeter;
 import com.palantir.atlasdb.internalschema.InternalSchemaMetadata;
 import com.palantir.atlasdb.internalschema.TransactionSchemaManager;
 import com.palantir.atlasdb.internalschema.persistence.CoordinationServices;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.cassandra.async.client.creation.ClusterFactory.CassandraClusterConfig;
 import com.palantir.atlasdb.lock.SimpleLockResource;
 import com.palantir.atlasdb.sweep.CellsSweeper;
 import com.palantir.atlasdb.sweep.SweepTaskRunner;
 import com.palantir.atlasdb.sweep.queue.SpecialTimestampsSupplier;
 import com.palantir.atlasdb.sweep.queue.TargetedSweepFollower;
 import com.palantir.atlasdb.sweep.queue.TargetedSweeper;
 import com.palantir.atlasdb.table.description.Schema;
-import com.palantir.atlasdb.timelock.BackupTimeLockServiceView;
-import com.palantir.atlasdb.timelock.api.management.TimeLockManagementService;
 import com.palantir.atlasdb.timestamp.SimpleEteTimestampResource;
 import com.palantir.atlasdb.todo.SimpleTodoResource;
 import com.palantir.atlasdb.todo.TodoClient;
@@ -72,18 +50,11 @@
 import com.palantir.atlasdb.transaction.service.TransactionService;
 import com.palantir.atlasdb.transaction.service.TransactionServices;
 import com.palantir.atlasdb.util.MetricsManagers;
-import com.palantir.conjure.java.api.config.service.ServicesConfigBlock;
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.server.jersey.ConjureJerseyFeature;
-import com.palantir.dialogue.clients.DialogueClients;
-import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
-import com.palantir.refreshable.Refreshable;
-import com.palantir.timestamp.TimestampManagementService;
-import com.palantir.tokens.auth.AuthHeader;
-import com.palantir.tokens.auth.BearerToken;
 import com.palantir.tritium.metrics.registry.SharedTaggedMetricRegistries;
 import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
 import io.dropwizard.Application;
@@ -92,14 +63,8 @@
 import io.dropwizard.jersey.optional.EmptyOptionalException;
 import io.dropwizard.setup.Bootstrap;
 import io.dropwizard.setup.Environment;
-import java.io.IOException;
-import java.net.URL;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.Paths;
 import java.util.Optional;
 import java.util.concurrent.TimeUnit;
-import java.util.function.Function;
 import java.util.function.LongSupplier;
 import java.util.function.Supplier;
 import javax.ws.rs.core.Response;
@@ -134,10 +99,6 @@ public void run(AtlasDbEteConfiguration config, final Environment environment) t
         Supplier<TargetedSweeper> sweeperSupplier = Suppliers.memoize(() -> initializeAndGet(sweeper, txManager));
         ensureTransactionSchemaVersionInstalled(config.getAtlasDbConfig(), config.getAtlasDbRuntimeConfig(), txManager);
 
-        if (shouldSetUpBackupAndRestoreResource(config)) {
-            createAndRegisterBackupAndRestoreResource(config, environment, txManager, taggedMetrics);
-        }
-
         environment
                 .jersey()
                 .register(new SimpleTodoResource(new TodoClient(txManager, sweepTaskRunner, sweeperSupplier)));
@@ -149,92 +110,6 @@ public void run(AtlasDbEteConfiguration config, final Environment environment) t
         environment.jersey().register(new EmptyOptionalTo204ExceptionMapper());
     }
 
-    private boolean shouldSetUpBackupAndRestoreResource(AtlasDbEteConfiguration config) {
-        boolean isCassandra = CassandraKeyValueServiceConfig.TYPE.equals(
-                config.getAtlasDbConfig().keyValueService().type());
-        boolean hasTimelock = config.getAtlasDbRuntimeConfig()
-                .flatMap(AtlasDbRuntimeConfig::timelockRuntime)
-                .isPresent();
-        return isCassandra && hasTimelock;
-    }
-
-    private void createAndRegisterBackupAndRestoreResource(
-            AtlasDbEteConfiguration config,
-            Environment environment,
-            TransactionManager txManager,
-            TaggedMetricRegistry taggedMetrics)
-            throws IOException {
-        AuthHeader authHeader = AuthHeader.of(BearerToken.valueOf("test-auth"));
-        URL localServer = new URL("https://localhost:1234");
-
-        Path backupFolder = Paths.get("/var/data/backup");
-        Files.createDirectories(backupFolder);
-        Function<AtlasService, Path> backupFolderFactory = _unused -> backupFolder;
-        ExternalBackupPersister externalBackupPersister = new ExternalBackupPersister(backupFolderFactory);
-
-        Function<String, BackupTimeLockServiceView> timelockServices =
-                _unused -> createBackupTimeLockServiceView(txManager);
-        AuthHeaderValidator authHeaderValidator =
-                new AuthHeaderValidator(() -> Optional.of(authHeader.getBearerToken()));
-        RedirectRetryTargeter redirectRetryTargeter =
-                RedirectRetryTargeter.create(localServer, ImmutableList.of(localServer));
-        AtlasBackupClient atlasBackupClient =
-                AtlasBackupResource.jersey(authHeaderValidator, redirectRetryTargeter, timelockServices);
-        AtlasRestoreClient atlasRestoreClient =
-                AtlasRestoreResource.jersey(authHeaderValidator, redirectRetryTargeter, timelockServices);
-        Refreshable<ServerListConfig> serverListConfig = getServerListConfigForTimeLock(config);
-        TimeLockManagementService timeLockManagementService =
-                getRemoteTimeLockManagementService(serverListConfig, taggedMetrics);
-
-        AtlasBackupService atlasBackupService =
-                AtlasBackupService.createForTests(authHeader, atlasBackupClient, txManager, backupFolderFactory);
-
-        Function<AtlasService, CassandraKeyValueServiceConfig> keyValueServiceConfigFactory = _unused ->
-                (CassandraKeyValueServiceConfig) config.getAtlasDbConfig().keyValueService();
-        Function<AtlasService, CassandraKeyValueServiceRuntimeConfig> runtimeConfigFactory =
-                _unused -> (CassandraKeyValueServiceRuntimeConfig) config.getAtlasDbRuntimeConfig()
-                        .flatMap(AtlasDbRuntimeConfig::keyValueService)
-                        .orElseThrow();
-
-        Function<AtlasService, CassandraClusterConfig> cassandraClusterConfigFactory =
-                atlasService -> CassandraClusterConfig.of(
-                        keyValueServiceConfigFactory.apply(atlasService), runtimeConfigFactory.apply(atlasService));
-
-        Function<AtlasService, Refreshable<CassandraServersConfig>> refreshableCassandraServersConfigFactory =
-                runtimeConfigFactory.andThen(runtimeConfig -> Refreshable.only(runtimeConfig.servers()));
-
-        AtlasRestoreService atlasRestoreService = AtlasRestoreService.createForTests(
-                authHeader,
-                atlasRestoreClient,
-                timeLockManagementService,
-                externalBackupPersister,
-                txManager,
-                cassandraClusterConfigFactory,
-                refreshableCassandraServersConfigFactory);
-
-        environment
-                .jersey()
-                .register(new SimpleBackupAndRestoreResource(
-                        atlasBackupService, atlasRestoreService, externalBackupPersister));
-    }
-
-    private Refreshable<ServerListConfig> getServerListConfigForTimeLock(AtlasDbEteConfiguration eteConfig) {
-        AtlasDbConfig config = eteConfig.getAtlasDbConfig();
-        Optional<AtlasDbRuntimeConfig> atlasDbRuntimeConfig = eteConfig.getAtlasDbRuntimeConfig();
-        return ServerListConfigs.getTimeLockServersFromAtlasDbConfig(config, atlasDbRuntimeConfig);
-    }
-
-    private TimeLockManagementService getRemoteTimeLockManagementService(
-            Refreshable<ServerListConfig> serverListConfig, TaggedMetricRegistry taggedMetrics) {
-        UserAgent userAgent = UserAgent.of(AtlasDbRemotingConstants.ATLASDB_HTTP_CLIENT_AGENT);
-        DialogueClients.ReloadingFactory reloadingFactory = DialogueClients.create(
-                        Refreshable.only(ServicesConfigBlock.builder().build()))
-                .withUserAgent(userAgent);
-        AtlasDbDialogueServiceProvider dialogueServiceProvider =
-                AtlasDbDialogueServiceProvider.create(serverListConfig, reloadingFactory, userAgent, taggedMetrics);
-        return dialogueServiceProvider.getTimeLockManagementService();
-    }
-
     private void ensureTransactionSchemaVersionInstalled(
             AtlasDbConfig config, Optional<AtlasDbRuntimeConfig> runtimeConfig, TransactionManager transactionManager) {
         if (runtimeConfig.isEmpty()
@@ -276,12 +151,6 @@ private TransactionManager tryToCreateTransactionManager(
         }
     }
 
-    private BackupTimeLockServiceView createBackupTimeLockServiceView(TransactionManager txManager) {
-        TimelockService timelockService = txManager.getTimelockService();
-        TimestampManagementService timestampManagementService = txManager.getTimestampManagementService();
-        return new DelegatingBackupTimeLockServiceView(timelockService, timestampManagementService);
-    }
-
     private SweepTaskRunner getSweepTaskRunner(TransactionManager transactionManager) {
         KeyValueService kvs = transactionManager.getKeyValueService();
         LongSupplier ts = transactionManager.getTimestampService()::getFreshTimestamp;u}(jt (02b30e7cc3e9941ea1536ece59a811618af6d538ju Yatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/backup/BackupAndRestoreResource.javaju removedju K ju KDj u KDj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FBackupAndRestoreResource.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FBackupAndRestoreResource.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FBackupAndRestoreResource.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u XO	  @@ -1,68 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.processors.AutoDelegate;
-import java.util.Optional;
-import java.util.Set;
-import javax.ws.rs.Consumes;
-import javax.ws.rs.POST;
-import javax.ws.rs.Path;
-import javax.ws.rs.Produces;
-import javax.ws.rs.core.MediaType;
-
-@AutoDelegate
-@Path("/backup")
-public interface BackupAndRestoreResource {
-    @POST
-    @Path("/prepare-backup")
-    @Produces(MediaType.APPLICATION_JSON)
-    @Consumes(MediaType.APPLICATION_JSON)
-    Set<AtlasService> prepareBackup(Set<AtlasService> atlasServices);
-
-    @POST
-    @Path("/complete-backup")
-    @Produces(MediaType.APPLICATION_JSON)
-    @Consumes(MediaType.APPLICATION_JSON)
-    Set<AtlasService> completeBackup(Set<AtlasService> atlasServices);
-
-    @POST
-    @Path("/prepare-restore")
-    @Produces(MediaType.APPLICATION_JSON)
-    @Consumes(MediaType.APPLICATION_JSON)
-    Set<AtlasService> prepareRestore(Set<RestoreRequestWithId> restoreRequestsWithId);
-
-    @POST
-    @Path("/complete-restore")
-    @Produces(MediaType.APPLICATION_JSON)
-    @Consumes(MediaType.APPLICATION_JSON)
-    Set<AtlasService> completeRestore(Set<RestoreRequestWithId> restoreRequestsWithId);
-
-    @POST
-    @Path("/immutable-ts")
-    @Produces(MediaType.APPLICATION_JSON)
-    @Consumes(MediaType.APPLICATION_JSON)
-    Optional<Long> getStoredImmutableTimestamp(AtlasService atlasService);
-
-    @POST
-    @Path("/ff-ts")
-    @Produces(MediaType.APPLICATION_JSON)
-    @Consumes(MediaType.APPLICATION_JSON)
-    Optional<CompletedBackup> getStoredBackup(AtlasService atlasService);
-}u}(jt (ba7224fb4b8cf4a7db5b1d33e34952dd96d1cb84ju _atlasdb-ete-tests/src/main/java/com/palantir/atlasdb/backup/SimpleBackupAndRestoreResource.javaju removedju K ju KOj u KOj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FSimpleBackupAndRestoreResource.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FSimpleBackupAndRestoreResource.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbackup%2FSimpleBackupAndRestoreResource.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X  @@ -1,79 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.backup;
-
-import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import java.util.Collection;
-import java.util.Optional;
-import java.util.Set;
-import java.util.stream.Collectors;
-
-public class SimpleBackupAndRestoreResource implements BackupAndRestoreResource {
-    private final AtlasBackupService atlasBackupService;
-    private final AtlasRestoreService atlasRestoreService;
-    private final ExternalBackupPersister externalBackupPersister;
-
-    public SimpleBackupAndRestoreResource(
-            AtlasBackupService atlasBackupService,
-            AtlasRestoreService atlasRestoreService,
-            ExternalBackupPersister externalBackupPersister) {
-        this.atlasBackupService = atlasBackupService;
-        this.atlasRestoreService = atlasRestoreService;
-        this.externalBackupPersister = externalBackupPersister;
-    }
-
-    @Override
-    public Set<AtlasService> prepareBackup(Set<AtlasService> atlasServices) {
-        return atlasBackupService.prepareBackup(atlasServices);
-    }
-
-    @Override
-    public Set<AtlasService> completeBackup(Set<AtlasService> atlasServices) {
-        return atlasBackupService.completeBackup(atlasServices);
-    }
-
-    @Override
-    public Set<AtlasService> prepareRestore(Set<RestoreRequestWithId> requests) {
-        // Would be more efficient to group by backup ID, but this is fine for ETE purposes
-        return requests.stream()
-                .map(request -> atlasRestoreService.prepareRestore(
-                        ImmutableSet.of(request.restoreRequest()), request.backupId()))
-                .flatMap(Collection::stream)
-                .collect(Collectors.toSet());
-    }
-
-    @Override
-    public Set<AtlasService> completeRestore(Set<RestoreRequestWithId> requests) {
-        return requests.stream()
-                .map(request -> atlasRestoreService.completeRestore(
-                        ImmutableSet.of(request.restoreRequest()), request.backupId()))
-                .flatMap(Collection::stream)
-                .collect(Collectors.toSet());
-    }
-
-    @Override
-    public Optional<Long> getStoredImmutableTimestamp(AtlasService atlasService) {
-        return externalBackupPersister.getImmutableTimestamp(atlasService);
-    }
-
-    @Override
-    public Optional<CompletedBackup> getStoredBackup(AtlasService atlasService) {
-        return externalBackupPersister.getCompletedBackup(atlasService);
-    }
-}u}(jt (b6bf159dba35ed512d88704b640cfe0860e68873ju Uatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/BackupAndRestoreEteTest.javaju removedju K ju K}j u K}j!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FBackupAndRestoreEteTest.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FBackupAndRestoreEteTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FBackupAndRestoreEteTest.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X  @@ -1,125 +0,0 @@
-/*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.ete;
-
-import static com.palantir.conjure.java.api.testing.Assertions.assertThatRemoteExceptionThrownBy;
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.google.common.collect.ImmutableSet;
-import com.palantir.atlasdb.backup.BackupAndRestoreResource;
-import com.palantir.atlasdb.backup.RestoreRequest;
-import com.palantir.atlasdb.backup.RestoreRequestWithId;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.CompletedBackup;
-import com.palantir.atlasdb.backup.api.ServiceId;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.timestamp.EteTimestampResource;
-import com.palantir.atlasdb.todo.ImmutableTodo;
-import com.palantir.atlasdb.todo.Todo;
-import com.palantir.atlasdb.todo.TodoResource;
-import com.palantir.conjure.java.api.errors.ErrorType;
-import java.time.Duration;
-import java.util.Optional;
-import java.util.Set;
-import java.util.stream.Collectors;
-import org.awaitility.Awaitility;
-import org.junit.Test;
-
-public class BackupAndRestoreEteTest {
-    private static final Todo TODO = ImmutableTodo.of("some stuff to do");
-    private static final Namespace NAMESPACE = Namespace.of("atlasete");
-    private static final AtlasService ATLAS_SERVICE = AtlasService.of(ServiceId.of("a"), NAMESPACE);
-    private static final Namespace NAMESPACE_2 = Namespace.of("atlasete-2");
-    private static final AtlasService ATLAS_SERVICE_2 = AtlasService.of(ServiceId.of("b"), NAMESPACE_2);
-    private static final ImmutableSet<AtlasService> ATLAS_SERVICES = ImmutableSet.of(ATLAS_SERVICE, ATLAS_SERVICE_2);
-    private static final String BACKUP_ID = "backupId";
-
-    private final TodoResource todoClient = EteSetup.createClientToSingleNode(TodoResource.class);
-    private final BackupAndRestoreResource backupResource =
-            EteSetup.createClientToSingleNode(BackupAndRestoreResource.class);
-    private final EteTimestampResource timestampClient = EteSetup.createClientToSingleNode(EteTimestampResource.class);
-
-    @Test
-    public void canPrepareBackup() {
-        addTodo();
-        assertThat(backupResource.getStoredImmutableTimestamp(ATLAS_SERVICE)).isEmpty();
-
-        Set<AtlasService> preparedAtlasServices = backupResource.prepareBackup(ATLAS_SERVICES);
-        assertThat(preparedAtlasServices).containsExactlyInAnyOrder(ATLAS_SERVICE, ATLAS_SERVICE_2);
-
-        // verify we persisted the immutable timestamp to disk
-        assertThat(backupResource.getStoredImmutableTimestamp(ATLAS_SERVICE)).isNotEmpty();
-    }
-
-    @Test
-    public void canCompletePreparedBackup() {
-        addTodo();
-        backupResource.prepareBackup(ATLAS_SERVICES);
-
-        Long immutableTimestamp =
-                backupResource.getStoredImmutableTimestamp(ATLAS_SERVICE).orElseThrow();
-
-        assertThat(backupResource.getStoredBackup(ATLAS_SERVICE)).isEmpty();
-
-        Set<AtlasService> completedAtlasServices = backupResource.completeBackup(ATLAS_SERVICES);
-        assertThat(completedAtlasServices).containsExactlyInAnyOrder(ATLAS_SERVICE, ATLAS_SERVICE_2);
-
-        Optional<CompletedBackup> storedBackup = backupResource.getStoredBackup(ATLAS_SERVICE);
-        assertThat(storedBackup).isNotEmpty();
-        assertThat(storedBackup.get().getImmutableTimestamp()).isEqualTo(immutableTimestamp);
-    }
-
-    @Test
-    public void canPrepareAndCompleteRestore() {
-        addTodo();
-        backupResource.prepareBackup(ATLAS_SERVICES);
-        backupResource.completeBackup(ATLAS_SERVICES);
-
-        assertThat(timestampClient.getFreshTimestamp()).isGreaterThan(0L);
-
-        Set<RestoreRequestWithId> restoreRequests =
-                ATLAS_SERVICES.stream().map(this::getRestoreRequest).collect(Collectors.toSet());
-        Set<AtlasService> preparedAtlasServices = backupResource.prepareRestore(restoreRequests);
-        assertThat(preparedAtlasServices).containsAll(ATLAS_SERVICES);
-
-        // verify TimeLock is disabled
-        assertThatRemoteExceptionThrownBy(timestampClient::getFreshTimestamp)
-                .isGeneratedFromErrorType(ErrorType.INTERNAL);
-
-        Set<AtlasService> completedAtlasServices = backupResource.completeRestore(restoreRequests);
-        assertThat(completedAtlasServices).containsAll(ATLAS_SERVICES);
-
-        // verify TimeLock is re-enabled
-        assertThat(timestampClient.getFreshTimestamp()).isGreaterThan(0L);
-    }
-
-    private RestoreRequestWithId getRestoreRequest(AtlasService atlasService) {
-        RestoreRequest restoreRequest = RestoreRequest.builder()
-                .oldAtlasService(atlasService)
-                .newAtlasService(atlasService)
-                .build();
-        return RestoreRequestWithId.of(restoreRequest, BACKUP_ID);
-    }
-
-    private void addTodo() {
-        Awaitility.await()
-                .atMost(Duration.ofSeconds(60L))
-                .ignoreExceptions()
-                .pollInterval(Duration.ofSeconds(1L))
-                .untilAsserted(() -> todoClient.addTodo(TODO));
-    }
-}u}(jt (b4a93dc6e795f33c33b0390c7e0dc13add5eded6ju Tatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraRepairEteTest.javaju removedju K ju M)j u M)j!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraRepairEteTest.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraRepairEteTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraRepairEteTest.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X<  @@ -1,297 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.ete;
-
-import static com.google.common.collect.ImmutableRangeSet.toImmutableRangeSet;
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.datastax.driver.core.Cluster;
-import com.datastax.driver.core.policies.DefaultRetryPolicy;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Range;
-import com.google.common.collect.RangeMap;
-import com.google.common.collect.RangeSet;
-import com.palantir.atlasdb.AtlasDbConstants;
-import com.palantir.atlasdb.backup.KvsRunner;
-import com.palantir.atlasdb.backup.api.AtlasService;
-import com.palantir.atlasdb.backup.api.ServiceId;
-import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
-import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
-import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
-import com.palantir.atlasdb.cassandra.backup.CassandraRepairHelper;
-import com.palantir.atlasdb.cassandra.backup.CqlCluster;
-import com.palantir.atlasdb.cassandra.backup.CqlMetadata;
-import com.palantir.atlasdb.cassandra.backup.RangesForRepair;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions1TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions2TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.Transactions3TableInteraction;
-import com.palantir.atlasdb.cassandra.backup.transaction.TransactionsTableInteraction;
-import com.palantir.atlasdb.containers.ThreeNodeCassandraCluster;
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.Cell;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
-import com.palantir.atlasdb.keyvalue.cassandra.Blacklist;
-import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueService;
-import com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl;
-import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
-import com.palantir.atlasdb.keyvalue.cassandra.async.client.creation.ClusterFactory;
-import com.palantir.atlasdb.keyvalue.cassandra.async.client.creation.ClusterFactory.CassandraClusterConfig;
-import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraClientPoolMetrics;
-import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
-import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService;
-import com.palantir.atlasdb.timelock.api.Namespace;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.atlasdb.transaction.impl.TransactionTables;
-import com.palantir.atlasdb.util.MetricsManagers;
-import com.palantir.common.streams.KeyedStream;
-import com.palantir.refreshable.Refreshable;
-import com.palantir.timestamp.FullyBoundedTimestampRange;
-import java.net.InetSocketAddress;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.concurrent.atomic.AtomicInteger;
-import java.util.function.BiConsumer;
-import java.util.function.Function;
-import java.util.function.Predicate;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-public final class CassandraRepairEteTest {
-    private static final byte[] FIRST_COLUMN = PtBytes.toBytes("col1");
-    private static final Cell NONEMPTY_CELL = Cell.create(PtBytes.toBytes("nonempty"), FIRST_COLUMN);
-    private static final byte[] CONTENTS = PtBytes.toBytes("default_value");
-    private static final String NAMESPACE_NAME = "atlasdb";
-    private static final Namespace NAMESPACE = Namespace.of(NAMESPACE_NAME);
-    private static final AtlasService ATLAS_SERVICE = AtlasService.of(ServiceId.of("a"), NAMESPACE);
-    private static final String TABLE_1 = "table1";
-    private static final TableReference TABLE_REF =
-            TableReference.create(com.palantir.atlasdb.keyvalue.api.Namespace.create(NAMESPACE_NAME), TABLE_1);
-    private static final DefaultRetryPolicy POLICY = DefaultRetryPolicy.INSTANCE;
-
-    private CassandraRepairHelper cassandraRepairHelper;
-    private CassandraKeyValueService kvs;
-    private CassandraKeyValueServiceConfig config;
-    private Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig;
-    private Cluster cluster;
-    private CqlCluster cqlCluster;
-
-    @Before
-    public void setUp() {
-        int replicationFactor = 2;
-        config = ThreeNodeCassandraCluster.getKvsConfig();
-        runtimeConfig = ThreeNodeCassandraCluster.getRuntimeConfig(replicationFactor);
-        kvs = CassandraKeyValueServiceImpl.createForTesting(config, runtimeConfig);
-        TransactionTables.createTables(kvs);
-
-        kvs.createTable(TABLE_REF, AtlasDbConstants.GENERIC_TABLE_METADATA);
-        kvs.putUnlessExists(TABLE_REF, ImmutableMap.of(NONEMPTY_CELL, CONTENTS));
-
-        KvsRunner kvsRunner = KvsRunner.create(_unused -> kvs);
-        Function<AtlasService, CassandraKeyValueServiceConfig> configFactory = _unused -> config;
-        Function<AtlasService, Refreshable<CassandraKeyValueServiceRuntimeConfig>> runtimeConfigFactory =
-                _unused -> runtimeConfig;
-        Function<AtlasService, CassandraClusterConfig> cassandraClusterConfigFunction =
-                atlasService -> CassandraClusterConfig.of(
-                        configFactory.apply(atlasService),
-                        runtimeConfigFactory.apply(atlasService).get());
-        Function<AtlasService, Refreshable<CassandraServersConfig>> cassandraServersConfigFactory =
-                runtimeConfigFactory.andThen(
-                        runtimeConfig -> runtimeConfig.map(CassandraKeyValueServiceRuntimeConfig::servers));
-
-        cassandraRepairHelper =
-                new CassandraRepairHelper(kvsRunner, cassandraClusterConfigFunction, cassandraServersConfigFactory);
-        cluster = new ClusterFactory(Cluster::builder)
-                .constructCluster(
-                        cassandraClusterConfigFunction.apply(ATLAS_SERVICE),
-                        cassandraServersConfigFactory.apply(ATLAS_SERVICE).get());
-        cqlCluster = new CqlCluster(
-                cluster, cassandraServersConfigFactory.apply(ATLAS_SERVICE).get(), NAMESPACE);
-    }
-
-    @After
-    public void tearDown() {
-        kvs.dropTable(TABLE_REF);
-    }
-
-    @Test
-    public void testTokenRangeCoversFullRing() {
-        CqlMetadata cqlMetadata = new CqlMetadata(cluster.getMetadata());
-        Set<Range<LightweightOppToken>> tokenRanges = cqlMetadata.getTokenRanges();
-
-        // Turning this into a RangeSet should give the complete range (-inf, +inf)
-        RangeSet<LightweightOppToken> fullTokenRing = tokenRanges.stream().collect(toImmutableRangeSet());
-        assertThat(fullTokenRing.asRanges()).containsExactly(Range.all());
-    }
-
-    @Test
-    public void testRepairOnlyTxn1() {
-        List<String> tablesRepaired = new ArrayList<>();
-        BiConsumer<String, RangesForRepair> repairer = (table, _unused) -> tablesRepaired.add(table);
-
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions1TableInteraction(range(1L, 10_000_000L), POLICY));
-        cassandraRepairHelper.repairTransactionsTables(ATLAS_SERVICE, interactions, repairer);
-        assertThat(tablesRepaired).containsExactly(TransactionConstants.TRANSACTION_TABLE.getTableName());
-    }
-
-    @Test
-    public void testRepairOnlyTxn2() {
-        List<String> tablesRepaired = new ArrayList<>();
-        BiConsumer<String, RangesForRepair> repairer = (table, _unused) -> tablesRepaired.add(table);
-
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions2TableInteraction(range(1L, 10_000_000L), POLICY));
-        cassandraRepairHelper.repairTransactionsTables(ATLAS_SERVICE, interactions, repairer);
-        assertThat(tablesRepaired).containsExactly(TransactionConstants.TRANSACTIONS2_TABLE.getTableName());
-    }
-
-    @Test
-    public void testRepairTxn3() {
-        List<String> tablesRepaired = new ArrayList<>();
-        BiConsumer<String, RangesForRepair> repairer = (table, _unused) -> tablesRepaired.add(table);
-
-        List<TransactionsTableInteraction> interactions =
-                ImmutableList.of(new Transactions3TableInteraction(range(1L, 10_000_000L)));
-        cassandraRepairHelper.repairTransactionsTables(ATLAS_SERVICE, interactions, repairer);
-
-        // Transactions3 is backed by Transactions2 under the hood, so this is the table that will be repaired.
-        assertThat(tablesRepaired).containsExactly(TransactionConstants.TRANSACTIONS2_TABLE.getTableName());
-    }
-
-    @Test
-    public void testRepairBothTxnTables() {
-        List<String> tablesRepaired = new ArrayList<>();
-        BiConsumer<String, RangesForRepair> repairer = (table, _unused) -> tablesRepaired.add(table);
-
-        List<TransactionsTableInteraction> interactions = ImmutableList.of(
-                new Transactions1TableInteraction(range(1L, 5L), POLICY),
-                new Transactions2TableInteraction(range(6L, 10L), POLICY));
-
-        cassandraRepairHelper.repairTransactionsTables(ATLAS_SERVICE, interactions, repairer);
-        assertThat(tablesRepaired)
-                .containsExactlyInAnyOrder(
-                        TransactionConstants.TRANSACTION_TABLE.getTableName(),
-                        TransactionConstants.TRANSACTIONS2_TABLE.getTableName());
-    }
-
-    @Test
-    public void testRepairsEachTableOnceOnly() {
-        List<String> tablesRepaired = new ArrayList<>();
-        AtomicInteger numRepairs = new AtomicInteger(0);
-        BiConsumer<String, RangesForRepair> repairer = (table, _unused) -> {
-            numRepairs.incrementAndGet();
-            tablesRepaired.add(table);
-        };
-
-        List<TransactionsTableInteraction> interactions = ImmutableList.of(
-                new Transactions1TableInteraction(range(1L, 5L), POLICY),
-                new Transactions2TableInteraction(range(6L, 10L), POLICY),
-                new Transactions1TableInteraction(range(11L, 15L), POLICY),
-                new Transactions2TableInteraction(range(16L, 20L), POLICY));
-
-        cassandraRepairHelper.repairTransactionsTables(ATLAS_SERVICE, interactions, repairer);
-        assertThat(tablesRepaired)
-                .containsExactlyInAnyOrder(
-                        TransactionConstants.TRANSACTION_TABLE.getTableName(),
-                        TransactionConstants.TRANSACTIONS2_TABLE.getTableName());
-        assertThat(numRepairs).hasValue(2);
-    }
-
-    @Test
-    public void shouldGetRangesForBothReplicas() {
-        RangesForRepair ranges = CassandraRepairHelper.getRangesToRepair(cqlCluster, ATLAS_SERVICE, TABLE_1);
-        assertThat(ranges.tokenMap()).hasSize(2);
-    }
-
-    @Test
-    public void tokenRangesToRepairShouldBeSubsetsOfTokenMap() {
-        Map<CassandraServer, Set<Range<LightweightOppToken>>> fullTokenMap = getFullTokenMap();
-        RangesForRepair rangesToRepair = CassandraRepairHelper.getRangesToRepair(cqlCluster, ATLAS_SERVICE, TABLE_1);
-
-        KeyedStream.stream(rangesToRepair.tokenMap())
-                .forEach((address, cqlRangesForHost) ->
-                        assertRangesToRepairAreSubsetsOfRangesFromTokenMap(fullTokenMap, address, cqlRangesForHost));
-    }
-
-    // The ranges in CQL should be a subset of the Thrift ranges, except that the CQL ranges are also snipped,
-    // such that if the thrift range is [5..9] but we don't have data after 7, then the CQL range will be [5..7]
-    @SuppressWarnings({"DnsLookup", "ReverseDnsLookup", "UnstableApiUsage"})
-    private void assertRangesToRepairAreSubsetsOfRangesFromTokenMap(
-            Map<CassandraServer, Set<Range<LightweightOppToken>>> fullTokenMap,
-            InetSocketAddress address,
-            RangeSet<LightweightOppToken> cqlRangesForHost) {
-        String hostName = address.getHostName();
-        CassandraServer cassandraServer =
-                CassandraServer.of(new InetSocketAddress(hostName, MultiCassandraUtils.CASSANDRA_THRIFT_PORT));
-        assertThat(fullTokenMap.get(cassandraServer)).isNotNull();
-        Set<Range<LightweightOppToken>> thriftRanges = fullTokenMap.get(cassandraServer);
-
-        cqlRangesForHost.asRanges().forEach(range -> assertThat(
-                        thriftRanges.stream().anyMatch(containsEntirely(range)))
-                .isTrue());
-    }
-
-    private Predicate<Range<LightweightOppToken>> containsEntirely(Range<LightweightOppToken> range) {
-        return thriftRange -> safeLowerBound(thriftRange).equals(safeLowerBound(range))
-                && (thriftRange.hasUpperBound()
-                        ? range.hasUpperBound() && thriftRange.upperEndpoint().compareTo(range.upperEndpoint()) >= 0
-                        : !range.hasUpperBound());
-    }
-
-    private Optional<LightweightOppToken> safeLowerBound(Range<LightweightOppToken> range) {
-        return range.hasLowerBound() ? Optional.of(range.lowerEndpoint()) : Optional.empty();
-    }
-
-    // This needs to be Set<Range>, not a RangeSet, because we don't want to merge the token ranges for these tests.
-    private Map<CassandraServer, Set<Range<LightweightOppToken>>> getFullTokenMap() {
-        CassandraService cassandraService = CassandraService.createInitialized(
-                MetricsManagers.createForTests(),
-                config,
-                runtimeConfig,
-                new Blacklist(
-                        config,
-                        runtimeConfig.map(CassandraKeyValueServiceRuntimeConfig::unresponsiveHostBackoffTimeSeconds)),
-                new CassandraClientPoolMetrics(MetricsManagers.createForTests()));
-        return invert(cassandraService.getTokenMap());
-    }
-
-    @SuppressWarnings("UnstableApiUsage")
-    private Map<CassandraServer, Set<Range<LightweightOppToken>>> invert(
-            RangeMap<LightweightOppToken, ImmutableSet<CassandraServer>> tokenMap) {
-        Map<CassandraServer, Set<Range<LightweightOppToken>>> invertedMap = new HashMap<>();
-        tokenMap.asMapOfRanges()
-                .forEach((range, addresses) -> addresses.forEach(address -> {
-                    Set<Range<LightweightOppToken>> existingRanges = invertedMap.getOrDefault(address, new HashSet<>());
-                    existingRanges.add(range);
-                    invertedMap.put(address, existingRanges);
-                }));
-
-        return invertedMap;
-    }
-
-    private static FullyBoundedTimestampRange range(long lower, long upper) {
-        return FullyBoundedTimestampRange.of(Range.closed(lower, upper));
-    }
-}u}(jt (1859fc8d2d57dc2b3a048c08afb963f513a0ac9aju Xatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraTimeLockTestSuite.javaju modifiedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -30,7 +30,6 @@
     TargetedSweepEteTest.class,
     CassandraTimestampsEteTest.class,
     TimestampManagementEteTest.class,
-    BackupAndRestoreEteTest.class,
     CoordinationEteTest.class,
     MultipleSchemaVersionsCoordinationEteTest.class,
     LockWithTimelockEteTest.classu}(jt (109be1b7d642644c9591802edef6b6e873968824ju Uatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/MultiCassandraTestSuite.javaju modifiedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FMultiCassandraTestSuite.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FMultiCassandraTestSuite.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FMultiCassandraTestSuite.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -26,7 +26,6 @@
 
 @RunWith(Suite.class)
 @Suite.SuiteClasses({
-    CassandraRepairEteTest.class,
     TodoEteTest.class,
     ServiceExposureEteTest.class,
     MultiCassandraSingleNodeDownEteTest.class,u}(jt (7ffa2fefee8958ba1a2ce1a90aef690293f911a2ju fatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTable.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X0  @@ -32,7 +32,6 @@
 import com.palantir.atlasdb.transaction.encoding.TwoPhaseEncodingStrategy;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.exception.AtlasDbDependencyException;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.common.time.Clock;
@@ -177,13 +176,10 @@ private FollowUpAction touchAndReturn(CellInfo cellAndValue) {
         } catch (CheckAndSetException e) {
             long startTs = cellAndValue.startTs();
             AtomicValue<TransactionStatus> currentValue = encodingStrategy.decodeValueAsCommitStatus(startTs, actual);
-            TransactionStatus commitStatus = currentValue.value();
             AtomicValue<TransactionStatus> kvsValue =
                     encodingStrategy.decodeValueAsCommitStatus(startTs, Iterables.getOnlyElement(e.getActualValues()));
             Preconditions.checkState(
-                    kvsValue.isCommitted()
-                            && TransactionStatuses.getCommitTimestamp(kvsValue.value())
-                                    .equals(TransactionStatuses.getCommitTimestamp(commitStatus)),
+                    kvsValue.isCommitted() && kvsValue.value().equals(currentValue.value()),
                     "Failed to persist a staging value for commit timestamp because an unexpected value "
                             + "was found in the KVS",
                     SafeArg.of("kvsValue", kvsValue),u}(jt (1240bb172017e3e15ccf95f6e1f3ed08b526e789ju aatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/atomic/TimestampExtractingAtomicTable.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTable.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTable.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTable.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X]  @@ -22,7 +22,6 @@
 import com.palantir.atlasdb.keyvalue.api.KeyAlreadyExistsException;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.Map;
@@ -63,7 +62,7 @@ public ListenableFuture<Map<Long, Long>> get(Iterable<Long> keys) {
         return Futures.transform(
                 delegate.get(keys),
                 statuses -> {
-                    if (statuses.values().stream().anyMatch(TransactionStatuses.unknown()::equals)) {
+                    if (statuses.values().stream().anyMatch(TransactionStatus.unknown()::equals)) {
                         throw new SafeIllegalStateException("There has been a mistake in the wiring as "
                                 + "transactions that do not support transaction table sweep should not be seeing "
                                 + "`unknown` transaction status.");u}(jt (a25afbbd55977ee4a1b82d1a983a012dc886d075ju _atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/cleaner/KeyValueServicePuncherStore.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FKeyValueServicePuncherStore.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FKeyValueServicePuncherStore.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FKeyValueServicePuncherStore.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -41,6 +41,7 @@
 import java.util.Optional;
 import java.util.concurrent.ThreadLocalRandom;
 import java.util.concurrent.TimeUnit;
+import org.checkerframework.checker.nullness.qual.Nullable;
 import org.immutables.value.Value.Check;
 import org.immutables.value.Value.Immutable;
 
@@ -185,7 +186,7 @@ public static long getMillisForTimestamp(KeyValueService kvs, long timestamp) {
      * within the specified bounds.
      */
     public static Optional<MillisAndMaybeTimestamp> getMillisForTimestampWithinBounds(
-            KeyValueService kvs, long timestamp, MillisAndMaybeTimestamp lowerBound, long upperBound) {
+            KeyValueService kvs, long timestamp, @Nullable MillisAndMaybeTimestamp lowerBound, long upperBound) {
         MillisAndMaybeTimestamp lowerBoundToUse =
                 Optional.ofNullable(lowerBound).orElseGet(() -> findOlder(kvs, timestamp, upperBound));
 u}(jt (f73bbbac2af66443ccebcf6a3c7ed2da9b42b493ju fatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/internalschema/InternalSchemaMetadataState.javaju removedju K ju K,j u K,j!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Finternalschema%2FInternalSchemaMetadataState.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Finternalschema%2FInternalSchemaMetadataState.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Finternalschema%2FInternalSchemaMetadataState.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X  @@ -1,44 +0,0 @@
-/*
- * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.palantir.atlasdb.internalschema;
-
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.palantir.atlasdb.coordination.ValueAndBound;
-import java.util.Optional;
-import org.immutables.value.Value;
-
-@Value.Immutable
-@JsonSerialize(as = ImmutableInternalSchemaMetadataState.class)
-@JsonDeserialize(as = ImmutableInternalSchemaMetadataState.class)
-public abstract class InternalSchemaMetadataState {
-    public abstract Optional<ValueAndBound<InternalSchemaMetadata>> value();
-
-    @Override
-    public String toString() {
-        return value().toString();
-    }
-
-    public static InternalSchemaMetadataState of(Optional<ValueAndBound<InternalSchemaMetadata>> value) {
-        return value.map(InternalSchemaMetadataState::of)
-                .orElseGet(() -> ImmutableInternalSchemaMetadataState.builder().build());
-    }
-
-    public static InternalSchemaMetadataState of(ValueAndBound<InternalSchemaMetadata> value) {
-        return ImmutableInternalSchemaMetadataState.builder().value(value).build();
-    }
-}uH&     }(jt (7cec9291798ecfcf36a78c28f59165b6af8b6a10ju ^atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/cache/StructureHolder.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FStructureHolder.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FStructureHolder.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FStructureHolder.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X=  @@ -23,7 +23,7 @@
  * Utility class to make manipulating {@link io.vavr.collection.Map} and {@link io.vavr.collection.Set} less
  * error-prone as all methods that modify state return a *new* instance in vavr.
  */
-final class StructureHolder<V> {
+public final class StructureHolder<V> {
     private final Supplier<V> initialValueSupplier;
     private V structure;
 
@@ -32,23 +32,23 @@ private StructureHolder(Supplier<V> initialValueSupplier) {
         this.structure = initialValueSupplier.get();
     }
 
-    synchronized void with(Function<V, V> mutator) {
+    public synchronized void with(Function<V, V> mutator) {
         structure = mutator.apply(structure);
     }
 
-    synchronized V getSnapshot() {
+    public synchronized V getSnapshot() {
         return structure;
     }
 
-    synchronized <K> K apply(Function<V, K> function) {
+    public synchronized <K> K apply(Function<V, K> function) {
         return function.apply(structure);
     }
 
-    synchronized void resetToInitialValue() {
+    public synchronized void resetToInitialValue() {
         structure = initialValueSupplier.get();
     }
 
-    static <V> StructureHolder<V> create(Supplier<V> initialValue) {
+    public static <V> StructureHolder<V> create(Supplier<V> initialValue) {
         return new StructureHolder<>(initialValue);
     }
 }u}(jt (8998869ed08a7e30d96c016b7470e3e524faa8c5ju Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/BackgroundSweepThread.javaju modifiedju Kju K	j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweepThread.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XB  @@ -39,6 +39,8 @@
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.TimeUnit;
+import java.util.function.BooleanSupplier;
+import java.util.function.LongSupplier;
 import java.util.function.Supplier;
 
 public class BackgroundSweepThread implements Runnable {
@@ -49,8 +51,8 @@ public class BackgroundSweepThread implements Runnable {
     private final SweepOutcomeMetrics sweepOutcomeMetrics;
     private final SpecificTableSweeper specificTableSweeper;
     private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-    private final Supplier<Long> sweepPauseMillis;
-    private final Supplier<Boolean> isSweepEnabled;
+    private final LongSupplier sweepPauseMillis;
+    private final BooleanSupplier isSweepEnabled;
     private final Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig;
     private final NextTableToSweepProvider nextTableToSweepProvider;
     private final CountDownLatch shuttingDown;
@@ -64,8 +66,8 @@ public static BackgroundSweepThread createForTests(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper,
             MetricsManager metricsManager) {
@@ -86,8 +88,8 @@ public static BackgroundSweepThread createForTests(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper,
             SweepOutcomeMetrics sweepOutcomeMetrics,
@@ -190,7 +192,7 @@ private Duration getSleepDuration(Optional<SweepOutcome> maybeOutcome) {
         return maybeOutcome
                 .flatMap(outcome -> {
                     if (outcome == SweepOutcome.SUCCESS) {
-                        return Optional.of(Duration.ofMillis(sweepPauseMillis.get()));
+                        return Optional.of(Duration.ofMillis(sweepPauseMillis.getAsLong()));
                     } else if (outcome == SweepOutcome.NOTHING_TO_SWEEP) {
                         return Optional.of(getBackoffTimeWhenNothingToSweep());
                     } else {
@@ -202,7 +204,7 @@ private Duration getSleepDuration(Optional<SweepOutcome> maybeOutcome) {
 
     @VisibleForTesting
     Optional<SweepOutcome> checkConfigAndRunSweep(SingleLockService locks) throws InterruptedException {
-        if (isSweepEnabled.get()) {
+        if (isSweepEnabled.getAsBoolean()) {
             return Optional.of(grabLocksAndRun(locks));
         }
 
@@ -233,7 +235,7 @@ private SweepOutcome grabLocksAndRun(SingleLockService locks) throws Interrupted
     }
 
     private Duration getBackoffTimeWhenSweepHasNotRun() {
-        return Duration.ofMillis(sweepPauseMillis.get()).plusSeconds(1).multipliedBy(20); // 2 minutes by default
+        return Duration.ofMillis(sweepPauseMillis.getAsLong()).plusSeconds(1).multipliedBy(20); // 2 minutes by default
     }
 
     private Duration getBackoffTimeWhenNothingToSweep() {u}(jt (44bc31882603500ba427d3970ff3730e2b7b3a21ju Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/BackgroundSweeperImpl.javaju modifiedju K
ju K
j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FBackgroundSweeperImpl.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -27,6 +27,9 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.Set;
 import java.util.concurrent.CountDownLatch;
+import java.util.function.BooleanSupplier;
+import java.util.function.IntSupplier;
+import java.util.function.LongSupplier;
 import java.util.function.Supplier;
 
 public final class BackgroundSweeperImpl implements BackgroundSweeper, AutoCloseable {
@@ -35,16 +38,16 @@ public final class BackgroundSweeperImpl implements BackgroundSweeper, AutoClose
     private static final long MAX_DAEMON_CLEAN_SHUTDOWN_TIME_MILLIS = 10_000;
 
     // Thread management
-    private final Supplier<Integer> sweepThreads;
+    private final IntSupplier sweepThreads;
     private Set<Thread> daemons;
     private final CountDownLatch shuttingDown = new CountDownLatch(1);
 
     // Shared between threads
     private final LockService lockService;
     private final NextTableToSweepProvider nextTableToSweepProvider;
     private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-    private final Supplier<Boolean> isSweepEnabled;
-    private final Supplier<Long> sweepPauseMillis;
+    private final BooleanSupplier isSweepEnabled;
+    private final LongSupplier sweepPauseMillis;
     private final Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig;
     private final SpecificTableSweeper specificTableSweeper;
     private final SweepOutcomeMetrics sweepOutcomeMetrics;
@@ -54,9 +57,9 @@ private BackgroundSweeperImpl(
             LockService lockService,
             NextTableToSweepProvider nextTableToSweepProvider,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Integer> sweepThreads,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            IntSupplier sweepThreads,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper) {
         this.sweepOutcomeMetrics = SweepOutcomeMetrics.registerLegacy(metricsManager);
@@ -73,9 +76,9 @@ private BackgroundSweeperImpl(
     public static BackgroundSweeperImpl create(
             MetricsManager metricsManager,
             AdjustableSweepBatchConfigSource sweepBatchConfigSource,
-            Supplier<Boolean> isSweepEnabled,
-            Supplier<Integer> sweepThreads,
-            Supplier<Long> sweepPauseMillis,
+            BooleanSupplier isSweepEnabled,
+            IntSupplier sweepThreads,
+            LongSupplier sweepPauseMillis,
             Supplier<SweepPriorityOverrideConfig> sweepPriorityOverrideConfig,
             SpecificTableSweeper specificTableSweeper) {
         NextTableToSweepProvider nextTableToSweepProvider = NextTableToSweepProvider.create(
@@ -98,7 +101,7 @@ public static BackgroundSweeperImpl create(
     @Override
     public synchronized void runInBackground() {
         Preconditions.checkState(daemons == null);
-        int numThreads = sweepThreads.get();
+        int numThreads = sweepThreads.getAsInt();
         daemons = Sets.newHashSetWithExpectedSize(numThreads);
 
         for (int idx = 1; idx <= numThreads; idx++) {u}(jt (02fd2f3ca2aca4164d40955a1e90f300421e02dcju Patlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweeperService.javaju removedju K ju Kbj u Kbj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperService.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperService.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperService.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X-  @@ -1,98 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import com.palantir.logsafe.Safe;
-import java.util.Optional;
-import javax.ws.rs.Consumes;
-import javax.ws.rs.POST;
-import javax.ws.rs.Path;
-import javax.ws.rs.Produces;
-import javax.ws.rs.QueryParam;
-import javax.ws.rs.core.MediaType;
-
-/**
- * Provides endpoints for sweeping a specific table.
- */
-@Path("/sweep")
-@Produces(MediaType.APPLICATION_JSON)
-@Consumes(MediaType.APPLICATION_JSON)
-public interface SweeperService {
-
-    default SweepTableResponse sweepTableFully(String tableName) {
-        return sweepTable(
-                tableName, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
-    }
-
-    default SweepTableResponse sweepTableFrom(String tableName, String startRow) {
-        return sweepTable(
-                tableName,
-                Optional.of(startRow),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-    }
-
-    /**
-     * Sweeps a particular table.
-     *
-     * @param tableName the table to sweep, in the format namespace.table_name (e.g. myapp.users)
-     * @param startRow (Optional) the row to start from, encoded as a hex string (e.g. 12345abcde)
-     * @param fullSweep (Optional; default true) whether to sweep the full table; if false just runs one batch
-     * @param maxCellTsPairsToExamine (Optional) see {@link SweepBatchConfig#maxCellTsPairsToExamine()}
-     * @param candidateBatchSize (Optional) see {@link SweepBatchConfig#candidateBatchSize()}
-     * @param deleteBatchSize (Optional) see {@link SweepBatchConfig#deleteBatchSize()}
-     */
-    @POST
-    @Path("sweep-table")
-    SweepTableResponse sweepTable(
-            @QueryParam("tablename") String tableName,
-            @QueryParam("startRow") Optional<String> startRow,
-            @Safe @QueryParam("fullSweep") Optional<Boolean> fullSweep,
-            @Safe @QueryParam("maxCellTsPairsToExamine") Optional<Integer> maxCellTsPairsToExamine,
-            @Safe @QueryParam("candidateBatchSize") Optional<Integer> candidateBatchSize,
-            @Safe @QueryParam("deleteBatchSize") Optional<Integer> deleteBatchSize);
-
-    /**
-     * Sweeps a table, but intentionally probabilistically skips a fraction of eligible entries to prevent issues that
-     * might arise from having too many consecutive deletes in the underlying KVS. This is expected to be safe to
-     * invoke at least twice without cleanup at the KVS level, but generally the expected usage is to run once, and
-     * then invoke {@link #sweepTable(String, Optional, Optional, Optional, Optional, Optional)} to clean any
-     * skipped values once KVS cleanup, such as compactions, is done.
-     *
-     * Implementation must respect the usual sweep guarantee: no (possibly in-flight) transaction may as a result of
-     * this operation read a version (or lack of one) of a cell different than it would have read if this operation had
-     * not run, and still succeed. In particular, this means that if any version of a cell is retained, then also the
-     * latest version prior to the sweep timestamp of the same cell must not be removed (even if it is a delete).
-     *
-     * @param tableName the table to sweep, in the format namespace.table_name (e.g. myapp.users)
-     * @param startRow (Optional) the row to start from, encoded as a hex string (e.g. 12345abcde)
-     * @param fullSweep (Optional; default true) whether to sweep the full table; if false just runs one batch
-     * @param maxCellTsPairsToExamine (Optional) see {@link SweepBatchConfig#maxCellTsPairsToExamine()}
-     * @param candidateBatchSize (Optional) see {@link SweepBatchConfig#candidateBatchSize()}
-     * @param deleteBatchSize (Optional) see {@link SweepBatchConfig#deleteBatchSize()}
-     */
-    @POST
-    @Path("sweep-previously-conservative-now-thorough-table")
-    SweepTableResponse sweepPreviouslyConservativeNowThoroughTable(
-            @QueryParam("tablename") String tableName,
-            @QueryParam("startRow") Optional<String> startRow,
-            @Safe @QueryParam("fullSweep") Optional<Boolean> fullSweep,
-            @Safe @QueryParam("maxCellTsPairsToExamine") Optional<Integer> maxCellTsPairsToExamine,
-            @Safe @QueryParam("candidateBatchSize") Optional<Integer> candidateBatchSize,
-            @Safe @QueryParam("deleteBatchSize") Optional<Integer> deleteBatchSize);
-}u}(jt (a043b1f465845d038463867d0cef3a602201da50ju Tatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweeperServiceImpl.javaju removedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImpl.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImpl.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImpl.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X.  @@ -1,169 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.SweepResults;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
-import com.palantir.atlasdb.logging.LoggingArgs;
-import com.palantir.logsafe.Preconditions;
-import com.palantir.logsafe.SafeArg;
-import com.palantir.logsafe.UnsafeArg;
-import com.palantir.logsafe.logger.SafeLogger;
-import com.palantir.logsafe.logger.SafeLoggerFactory;
-import java.util.Optional;
-
-public final class SweeperServiceImpl implements SweeperService {
-    private static final SafeLogger log = SafeLoggerFactory.get(SweeperServiceImpl.class);
-
-    private final SpecificTableSweeper specificTableSweeper;
-    private final AdjustableSweepBatchConfigSource sweepBatchConfigSource;
-
-    public SweeperServiceImpl(
-            SpecificTableSweeper specificTableSweeper, AdjustableSweepBatchConfigSource sweepBatchConfigSource) {
-        this.specificTableSweeper = specificTableSweeper;
-        this.sweepBatchConfigSource = sweepBatchConfigSource;
-    }
-
-    @Override
-    public SweepTableResponse sweepTable(
-            String tableName,
-            Optional<String> startRow,
-            Optional<Boolean> fullSweep,
-            Optional<Integer> maxCellTsPairsToExamine,
-            Optional<Integer> candidateBatchSize,
-            Optional<Integer> deleteBatchSize) {
-        TableReference tableRef = getTableRef(tableName);
-        checkTableExists(tableName, tableRef);
-
-        byte[] decodedStartRow = startRow.map(PtBytes::decodeHexString).orElse(PtBytes.EMPTY_BYTE_ARRAY);
-        SweepBatchConfig config =
-                buildConfigWithOverrides(maxCellTsPairsToExamine, candidateBatchSize, deleteBatchSize);
-
-        return SweepTableResponse.from(
-                runSweep(fullSweep, tableRef, decodedStartRow, config, SweepTaskRunner.RunType.FULL));
-    }
-
-    @Override
-    public SweepTableResponse sweepPreviouslyConservativeNowThoroughTable(
-            String tableName,
-            Optional<String> startRow,
-            Optional<Boolean> fullSweep,
-            Optional<Integer> maxCellTsPairsToExamine,
-            Optional<Integer> candidateBatchSize,
-            Optional<Integer> deleteBatchSize) {
-        TableReference tableRef = getTableRef(tableName);
-        checkTableExists(tableName, tableRef);
-
-        byte[] decodedStartRow = startRow.map(PtBytes::decodeHexString).orElse(PtBytes.EMPTY_BYTE_ARRAY);
-        SweepBatchConfig config =
-                buildConfigWithOverrides(maxCellTsPairsToExamine, candidateBatchSize, deleteBatchSize);
-
-        return SweepTableResponse.from(runSweep(
-                fullSweep, tableRef, decodedStartRow, config, SweepTaskRunner.RunType.WAS_CONSERVATIVE_NOW_THOROUGH));
-    }
-
-    private SweepResults runSweep(
-            Optional<Boolean> fullSweep,
-            TableReference tableRef,
-            byte[] decodedStartRow,
-            SweepBatchConfig config,
-            SweepTaskRunner.RunType runType) {
-        if (!fullSweep.isPresent()) {
-            log.warn("fullSweep parameter was not specified, defaulting to true");
-        }
-
-        if (fullSweep.orElse(true)) {
-            log.info(
-                    "Running sweep of full table {}, "
-                            + "with maxCellTsPairsToExamine: {}, candidateBatchSize: {}, deleteBatchSize: {}, "
-                            + "starting from row {}",
-                    LoggingArgs.tableRef(tableRef),
-                    SafeArg.of("maxCellTsPairsToExamine", config.maxCellTsPairsToExamine()),
-                    SafeArg.of("candidateBatchSize", config.candidateBatchSize()),
-                    SafeArg.of("deleteBatchSize", config.deleteBatchSize()),
-                    UnsafeArg.of("decodedStartRow", decodedStartRow));
-            return runFullSweepWithoutSavingResults(tableRef, decodedStartRow, config, runType);
-        } else {
-            log.info(
-                    "Running sweep of a single batch on table {}, "
-                            + "with maxCellTsPairsToExamine: {}, candidateBatchSize: {}, deleteBatchSize: {}, "
-                            + "starting from row {}",
-                    LoggingArgs.tableRef(tableRef),
-                    SafeArg.of("maxCellTsPairsToExamine", config.maxCellTsPairsToExamine()),
-                    SafeArg.of("candidateBatchSize", config.candidateBatchSize()),
-                    SafeArg.of("deleteBatchSize", config.deleteBatchSize()),
-                    UnsafeArg.of("decodedStartRow", decodedStartRow));
-            return runOneBatchWithoutSavingResults(tableRef, decodedStartRow, config, runType);
-        }
-    }
-
-    private SweepBatchConfig buildConfigWithOverrides(
-            Optional<Integer> maxCellTsPairsToExamine,
-            Optional<Integer> candidateBatchSize,
-            Optional<Integer> deleteBatchSize) {
-        ImmutableSweepBatchConfig.Builder batchConfigBuilder =
-                ImmutableSweepBatchConfig.builder().from(sweepBatchConfigSource.getAdjustedSweepConfig());
-
-        maxCellTsPairsToExamine.ifPresent(batchConfigBuilder::maxCellTsPairsToExamine);
-        candidateBatchSize.ifPresent(batchConfigBuilder::candidateBatchSize);
-        deleteBatchSize.ifPresent(batchConfigBuilder::deleteBatchSize);
-
-        return batchConfigBuilder.build();
-    }
-
-    private TableReference getTableRef(String tableName) {
-        Preconditions.checkArgument(
-                TableReference.isFullyQualifiedName(tableName),
-                "Table name is not fully qualified",
-                LoggingArgs.safeInternalTableName(tableName));
-        return TableReference.createFromFullyQualifiedName(tableName);
-    }
-
-    private void checkTableExists(String tableName, TableReference tableRef) {
-        Preconditions.checkArgument(
-                specificTableSweeper.getKvs().getAllTableNames().contains(tableRef),
-                "Table requested to sweep does not exist",
-                LoggingArgs.safeInternalTableName(tableName));
-    }
-
-    private SweepResults runFullSweepWithoutSavingResults(
-            TableReference tableRef,
-            byte[] startRow,
-            SweepBatchConfig sweepBatchConfig,
-            SweepTaskRunner.RunType runType) {
-        SweepResults cumulativeResults = SweepResults.createEmptySweepResult(Optional.of(startRow));
-
-        while (cumulativeResults.getNextStartRow().isPresent()) {
-            SweepResults results = runOneBatchWithoutSavingResults(
-                    tableRef, cumulativeResults.getNextStartRow().get(), sweepBatchConfig, runType);
-
-            specificTableSweeper.updateTimeMetricsOneIteration(
-                    results.getTimeInMillis(), results.getTimeElapsedSinceStartedSweeping());
-            cumulativeResults = cumulativeResults.accumulateWith(results);
-        }
-
-        return cumulativeResults;
-    }
-
-    private SweepResults runOneBatchWithoutSavingResults(
-            TableReference tableRef,
-            byte[] startRow,
-            SweepBatchConfig sweepBatchConfig,
-            SweepTaskRunner.RunType runType) {
-        return specificTableSweeper.runOneIteration(tableRef, startRow, sweepBatchConfig, runType);
-    }
-}u}(jt (98088205de8d1e7b8472112b1ed3c692920135c1ju hatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/encoding/TicketsEncodingStrategy.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategy.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategy.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategy.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X2
  @@ -20,7 +20,8 @@
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Aborted;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Arrays;
@@ -59,25 +60,26 @@ public long decodeCellAsStartTimestamp(Cell cell) {
     }
 
     @Override
-    public byte[] encodeCommitStatusAsValue(long startTimestamp, TransactionStatus commitStatus) {
-        return TransactionStatuses.caseOf(commitStatus)
-                .committed(ts -> TransactionConstants.getValueForTimestamp(ts - startTimestamp))
-                .aborted_(TransactionConstants.TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE)
-                .otherwise(() -> {
-                    throw new SafeIllegalArgumentException(
-                            "Unexpected transaction status", SafeArg.of("status", commitStatus));
-                });
+    public byte[] encodeCommitStatusAsValue(long startTimestamp, TransactionStatus status) {
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return TransactionConstants.getValueForTimestamp(committed.commitTimestamp() - startTimestamp);
+        } else if (status instanceof Aborted) {
+            return TransactionConstants.TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE;
+        } else {
+            throw new SafeIllegalArgumentException("Unexpected transaction status", SafeArg.of("status", status));
+        }
     }
 
     @Override
     public TransactionStatus decodeValueAsCommitStatus(long startTimestamp, byte[] value) {
         if (value == null) {
-            return TransactionConstants.IN_PROGRESS;
+            return TransactionStatus.inProgress();
         }
         if (Arrays.equals(value, TransactionConstants.TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE)) {
-            return TransactionConstants.ABORTED;
+            return TransactionStatus.aborted();
         }
-        return TransactionStatuses.committed(startTimestamp + TransactionConstants.getTimestampForValue(value));
+        return TransactionStatus.committed(startTimestamp + TransactionConstants.getTimestampForValue(value));
     }
 
     public Stream<byte[]> getRowSetCoveringTimestampRange(long fromInclusive, long toInclusive) {u}(jt (48ed8037c90f16ac56dce747642fb90047ae4127ju iatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/encoding/TwoPhaseEncodingStrategy.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTwoPhaseEncodingStrategy.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTwoPhaseEncodingStrategy.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTwoPhaseEncodingStrategy.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -22,7 +22,6 @@
 import com.palantir.atlasdb.ptobject.EncodingUtils;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
@@ -35,7 +34,7 @@ public final class TwoPhaseEncodingStrategy
     private static final byte[] COMMITTED = new byte[] {1};
 
     private static final AtomicValue<TransactionStatus> IN_PROGRESS_COMMITTED =
-            AtomicValue.committed(TransactionConstants.IN_PROGRESS);
+            AtomicValue.committed(TransactionStatus.inProgress());
     public static final byte[] ABORTED_TRANSACTION_COMMITTED_VALUE =
             EncodingUtils.add(TransactionConstants.TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE, COMMITTED);
     public static final byte[] ABORTED_TRANSACTION_STAGING_VALUE =
@@ -69,7 +68,7 @@ public AtomicValue<TransactionStatus> decodeNullValueAsCommitStatus() {
         }
         // `null` value is the in_progress marker for transaction schema <= 3. For transaction schema > 3, we have an
         // explicit in-progress marker and a null values represents that the table has been swept.
-        return AtomicValue.committed(TransactionStatuses.unknown());
+        return AtomicValue.committed(TransactionStatus.unknown());
     }
 
     @Overrideu}(jt (332546bb3f57de279d692beddd67f9a12bbff65fju catlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/encoding/V1EncodingStrategy.javaju modifiedju Kju K
j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FV1EncodingStrategy.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FV1EncodingStrategy.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FV1EncodingStrategy.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XT  @@ -20,7 +20,8 @@
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Aborted;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 
@@ -39,20 +40,21 @@ public long decodeCellAsStartTimestamp(Cell cell) {
     }
 
     @Override
-    public byte[] encodeCommitStatusAsValue(long _ignoredStartTimestamp, TransactionStatus commitStatus) {
-        return TransactionStatuses.caseOf(commitStatus)
-                .committed(TransactionConstants::getValueForTimestamp)
-                .aborted_(TransactionConstants.DIRECT_ENCODING_ABORTED_TRANSACTION_VALUE)
-                .otherwise(() -> {
-                    throw new SafeIllegalStateException(
-                            "Illegal transaction status", SafeArg.of("status", commitStatus));
-                });
+    public byte[] encodeCommitStatusAsValue(long _ignoredStartTimestamp, TransactionStatus status) {
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return TransactionConstants.getValueForTimestamp(committed.commitTimestamp());
+        } else if (status instanceof Aborted) {
+            return TransactionConstants.DIRECT_ENCODING_ABORTED_TRANSACTION_VALUE;
+        } else {
+            throw new SafeIllegalStateException("Illegal transaction status", SafeArg.of("status", status));
+        }
     }
 
     @Override
     public TransactionStatus decodeValueAsCommitStatus(long _ignoredStartTimestamp, byte[] value) {
         if (value == null) {
-            return TransactionConstants.IN_PROGRESS;
+            return TransactionStatus.inProgress();
         }
 
         return TransactionStatusUtils.fromTimestamp(TransactionConstants.getTimestampForValue(value));u}(jt (873fe01fb2bcd122671ed8446a4741d208fbfa02ju katlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AdvisoryLockConditionSuppliers.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -79,10 +79,13 @@ private static HeldLocksToken acquireLock(LockService lockService, LockRequest l
                     case BLOCK_UNTIL_TIMEOUT:
                     case BLOCK_INDEFINITELY:
                     case BLOCK_INDEFINITELY_THEN_RELEASE:
-                        log.warn("Could not lock successfully", ex);
                         ++failureCount;
+                        log.warn("Could not lock successfully", SafeArg.of("failureCount", failureCount), ex);
                         if (failureCount >= NUM_RETRIES) {
-                            log.warn("Failing after {} tries", SafeArg.of("failureCount", failureCount), ex);
+                            log.warn(
+                                    "Failing after exceeding maximum tries",
+                                    SafeArg.of("failureCount", failureCount),
+                                    ex);
                             throw ex;
                         }
                         break;u}(jt (b360e6e7298b91b238d9122bff9320bf177b827fju batlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoader.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -31,7 +31,6 @@
 import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
 import com.palantir.atlasdb.transaction.service.AsyncTransactionService;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
@@ -141,13 +140,13 @@ private Map<Long, Long> cacheKnownLoadedValuesAndValidate(Map<Long, TransactionS
             long start = entry.getKey();
             TransactionStatus commitStatus = entry.getValue();
 
-            if (commitStatus.equals(TransactionStatuses.inProgress())) {
+            if (commitStatus.equals(TransactionStatus.inProgress())) {
                 continue;
             }
 
             long commitTs = TransactionStatusUtils.getCommitTsFromStatus(
                     start, commitStatus, abortedTransactionsCache::isKnownAbandoned);
-            if (commitStatus.equals(TransactionStatuses.unknown())) {
+            if (commitStatus.equals(TransactionStatus.unknown())) {
                 shouldValidate = true;
             } else {
                 timestampCache.putAlreadyCommittedTransaction(start, commitTs);u}(jt (c21d1aa3124d06afc5fdd1da967841c89f2e7319ju ratlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/ShouldNotDeleteAndRollbackTransaction.javaju removedju K ju Kyj u Kyj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FShouldNotDeleteAndRollbackTransaction.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FShouldNotDeleteAndRollbackTransaction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FShouldNotDeleteAndRollbackTransaction.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X  @@ -1,121 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.transaction.impl;
-
-import com.palantir.atlasdb.cache.TimestampCache;
-import com.palantir.atlasdb.cleaner.NoOpCleaner;
-import com.palantir.atlasdb.debug.ConflictTracer;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.watch.NoOpLockWatchManager;
-import com.palantir.atlasdb.sweep.queue.MultiTableSweepQueueWriter;
-import com.palantir.atlasdb.transaction.TransactionConfig;
-import com.palantir.atlasdb.transaction.api.AtlasDbConstraintCheckingMode;
-import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
-import com.palantir.atlasdb.transaction.impl.metrics.SimpleTableLevelMetricsController;
-import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
-import com.palantir.atlasdb.transaction.service.TransactionService;
-import com.palantir.atlasdb.util.MetricsManager;
-import java.util.List;
-import java.util.Optional;
-import java.util.concurrent.AbstractExecutorService;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.TimeUnit;
-import java.util.function.Supplier;
-
-/**
- * This will read the values of all committed transactions.
- */
-public class ShouldNotDeleteAndRollbackTransaction extends SnapshotTransaction {
-
-    private static final ExecutorService IGNORING_EXECUTOR = new AbstractExecutorService() {
-        @Override
-        public void shutdown() {}
-
-        @Override
-        public List<Runnable> shutdownNow() {
-            return null;
-        }
-
-        @Override
-        public boolean isShutdown() {
-            return false;
-        }
-
-        @Override
-        public boolean isTerminated() {
-            return false;
-        }
-
-        @Override
-        public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException {
-            return false;
-        }
-
-        @Override
-        public void execute(Runnable command) {
-            // Should not be called
-        }
-    };
-
-    public ShouldNotDeleteAndRollbackTransaction(
-            MetricsManager metricsManager,
-            KeyValueService keyValueService,
-            TransactionService transactionService,
-            long startTimeStamp,
-            AtlasDbConstraintCheckingMode constraintCheckingMode,
-            TransactionReadSentinelBehavior readSentinelBehavior,
-            boolean allowHiddenTableAccess,
-            TimestampCache timestampCache,
-            ExecutorService getRangesExecutor,
-            int defaultGetRangesConcurrency,
-            Supplier<TransactionConfig> transactionConfig,
-            TransactionKnowledgeComponents knowledge) {
-        super(
-                metricsManager,
-                keyValueService,
-                null,
-                NoOpLockWatchManager.create(),
-                transactionService,
-                NoOpCleaner.INSTANCE,
-                () -> startTimeStamp,
-                ConflictDetectionManagers.createWithNoConflictDetection(),
-                SweepStrategyManagers.createDefault(keyValueService),
-                startTimeStamp,
-                Optional.empty(),
-                PreCommitConditions.NO_OP,
-                constraintCheckingMode,
-                null,
-                readSentinelBehavior,
-                allowHiddenTableAccess,
-                timestampCache,
-                getRangesExecutor,
-                defaultGetRangesConcurrency,
-                MultiTableSweepQueueWriter.NO_OP,
-                IGNORING_EXECUTOR,
-                true,
-                transactionConfig,
-                ConflictTracer.NO_OP,
-                new SimpleTableLevelMetricsController(metricsManager),
-                knowledge);
-    }
-
-    @Override
-    protected boolean shouldDeleteAndRollback() {
-        // We don't want to delete any data or roll back any transactions because we don't participate in the
-        // transaction protocol.  We just want to skip over anything we find that isn't committed
-        return false;
-    }
-}u}(jt (4d13603f168edbd66a401b0f573473fe144b24a4ju `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaju modifiedju K!ju Kj u K)j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u Xw  @@ -97,6 +97,9 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
+import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueService;
+import com.palantir.atlasdb.transaction.impl.expectations.TrackingKeyValueServiceImpl;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.TransactionOutcomeMetrics;
 import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
@@ -157,6 +160,7 @@
 import java.util.Optional;
 import java.util.Set;
 import java.util.SortedMap;
+import java.util.SortedSet;
 import java.util.TreeMap;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ConcurrentMap;
@@ -218,7 +222,7 @@ private enum State {
 
     protected final TimelockService timelockService;
     protected final LockWatchManagerInternal lockWatchManager;
-    final KeyValueService keyValueService;
+    final TrackingKeyValueService keyValueService;
     final AsyncKeyValueService immediateKeyValueService;
     final TransactionService defaultTransactionService;
     private final AsyncTransactionService immediateTransactionService;
@@ -276,7 +280,7 @@ private enum State {
      */
     /* package */ SnapshotTransaction(
             MetricsManager metricsManager,
-            KeyValueService keyValueService,
+            KeyValueService delegateKeyValueService,
             TimelockService timelockService,
             LockWatchManagerInternal lockWatchManager,
             TransactionService transactionService,
@@ -305,7 +309,7 @@ private enum State {
         this.lockWatchManager = lockWatchManager;
         this.conflictTracer = conflictTracer;
         this.transactionTimerContext = getTimer("transactionMillis").time();
-        this.keyValueService = keyValueService;
+        this.keyValueService = new TrackingKeyValueServiceImpl(delegateKeyValueService);
         this.immediateKeyValueService = KeyValueServices.synchronousAsAsyncKeyValueService(keyValueService);
         this.timelockService = timelockService;
         this.defaultTransactionService = transactionService;
@@ -1160,7 +1164,7 @@ private List<Map.Entry<Cell, byte[]>> getPostFilteredWithLocalWrites(
                 postFiltered.entrySet(),
                 Predicates.compose(Predicates.in(prePostFilterCells.keySet()), MapEntries.getKeyFunction()));
         Collection<Map.Entry<Cell, byte[]>> localWritesInRange = getLocalWritesForRange(
-                        tableRef, rangeRequest.getStartInclusive(), endRowExclusive)
+                        tableRef, rangeRequest.getStartInclusive(), endRowExclusive, rangeRequest.getColumnNames())
                 .entrySet();
         return mergeInLocalWrites(
                 tableRef, postFilteredCells.iterator(), localWritesInRange.iterator(), rangeRequest.isReverse());
@@ -1198,9 +1202,9 @@ private <K extends Exception> boolean getBatchingVisitableFromIterator(
             throws K {
         try (ClosableIterator<RowResult<byte[]>> postFilterIterator =
                 postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
-            Iterator<RowResult<byte[]>> localWritesInRange = Cells.createRowView(
-                    getLocalWritesForRange(tableRef, range.getStartInclusive(), range.getEndExclusive())
-                            .entrySet());
+            Iterator<RowResult<byte[]>> localWritesInRange = Cells.createRowView(getLocalWritesForRange(
+                            tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
+                    .entrySet());
             Iterator<RowResult<byte[]>> mergeIterators =
                     mergeInLocalWritesRows(postFilterIterator, localWritesInRange, range.isReverse(), tableRef);
             return BatchingVisitableFromIterable.create(mergeIterators).batchAccept(userRequestedSize, visitor);
@@ -1316,15 +1320,22 @@ private ConcurrentNavigableMap<Cell, byte[]> getLocalWrites(TableReference table
 
     /**
      * This includes deleted writes as zero length byte arrays, be sure to strip them out.
+     *
+     * For the selectedColumns parameter, empty set means all columns. This is unfortunate, but follows the semantics of
+     * {@link RangeRequest}.
      */
-    private SortedMap<Cell, byte[]> getLocalWritesForRange(TableReference tableRef, byte[] startRow, byte[] endRow) {
+    private SortedMap<Cell, byte[]> getLocalWritesForRange(
+            TableReference tableRef, byte[] startRow, byte[] endRow, SortedSet<byte[]> selectedColumns) {
         SortedMap<Cell, byte[]> writes = getLocalWrites(tableRef);
         if (startRow.length != 0) {
             writes = writes.tailMap(Cells.createSmallestCellForRow(startRow));
         }
         if (endRow.length != 0) {
             writes = writes.headMap(Cells.createSmallestCellForRow(endRow));
         }
+        if (!selectedColumns.isEmpty()) {
+            writes = Maps.filterKeys(writes, cell -> selectedColumns.contains(cell.getColumnName()));
+        }
         return writes;
     }
 
@@ -2575,6 +2586,20 @@ private boolean validationNecessaryForInvolvedTablesOnCommit() {
         return anyTableRequiresImmutableTimestampLocking && needsToValidate;
     }
 
+    @Override
+    public long getAgeMillis() {
+        return System.currentTimeMillis() - timeCreated;
+    }
+
+    @Override
+    public TransactionReadInfo getReadInfo() {
+        return keyValueService.getOverallReadInfo();
+    }
+
+    // TODO(aalouane): implement and call this on transaction exit
+    @Override
+    public void reportExpectationsCollectedData() {}
+
     private long getStartTimestamp() {
         return startTimestamp.get();
     }u}(jt (0936c8842d9f7738cbd5017afd9659293095521dju gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManager.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManager.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManager.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionManager.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -246,7 +246,7 @@ private OpenTransactionImpl(CallbackAwareTransaction delegate, LockToken immutab
         }
 
         @Override
-        public Transaction delegate() {
+        public CallbackAwareTransaction delegate() {
             return delegate;
         }
 u}(jt (6145cc9af0bd5b4fcbcfc599ba7616db926d9a99ju ratlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/KnowledgeableTimestampExtractingAtomicTableTest.javaju modifiedju Kju K
j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FKnowledgeableTimestampExtractingAtomicTableTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FKnowledgeableTimestampExtractingAtomicTableTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FKnowledgeableTimestampExtractingAtomicTableTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X@  @@ -32,7 +32,6 @@
 import com.palantir.atlasdb.transaction.knowledge.KnownConcludedTransactions.Consistency;
 import com.palantir.atlasdb.transaction.knowledge.VerificationModeMetrics;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.util.concurrent.ExecutionException;
 import org.junit.Test;
@@ -79,7 +78,7 @@ public void canGetTsOfNonConcludedTxn() throws ExecutionException, InterruptedEx
         long commitTs = 127L;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.committed(commitTs)));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.committed(commitTs)));
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isEqualTo(commitTs);
     }
@@ -89,7 +88,7 @@ public void canGetTsOfNonConcludedAbortedTxn() throws ExecutionException, Interr
         long startTs = 27l;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.aborted()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.aborted()));
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isEqualTo(TransactionConstants.FAILED_COMMIT_TS);
     }
@@ -99,7 +98,7 @@ public void canGetTsOfNonConcludedInProgressTxn() throws ExecutionException, Int
         long startTs = 27l;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.inProgress()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.inProgress()));
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isNull();
     }
@@ -109,7 +108,7 @@ public void canGetTsOfRemotelyConcludedTxn() throws ExecutionException, Interrup
         long startTs = 27l;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.unknown()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.unknown()));
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(false);
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isEqualTo(startTs);
@@ -120,7 +119,7 @@ public void canGetTsOfRemotelyConcludedAbortedTxn() throws ExecutionException, I
         long startTs = 27l;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.unknown()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.unknown()));
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(true);
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isEqualTo(TransactionConstants.FAILED_COMMIT_TS);
@@ -130,7 +129,7 @@ public void canGetTsOfRemotelyConcludedAbortedTxn() throws ExecutionException, I
     @Test
     public void noVerificationIfTransactionInProgress() {
         long startTs = 27l;
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.inProgress()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.inProgress()));
         tsExtractingTable.get(startTs);
 
         verifyNoInteractions(knownAbandonedTransactions);
@@ -142,7 +141,7 @@ public void noVerificationIfTransactionInProgress() {
     public void noVerificationInBatchedGetIfTransactionInProgress() {
         long startTs = 27l;
         when(delegate.get(ImmutableSet.of(startTs)))
-                .thenReturn(Futures.immediateFuture(ImmutableMap.of(startTs, TransactionStatuses.inProgress())));
+                .thenReturn(Futures.immediateFuture(ImmutableMap.of(startTs, TransactionStatus.inProgress())));
         tsExtractingTable.get(ImmutableSet.of(startTs));
 
         verifyNoInteractions(knownAbandonedTransactions);
@@ -154,7 +153,7 @@ public void noVerificationInBatchedGetIfTransactionInProgress() {
     public void noVerificationIfTransactionNotConcluded() {
         long startTs = 27l;
         long commitTs = 35l;
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.committed(commitTs)));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.committed(commitTs)));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(false);
 
@@ -169,7 +168,7 @@ public void noVerificationIfTransactionNotConcluded() {
     public void verifiesConcludedTransaction() {
         long startTs = 27l;
         long commitTs = 35l;
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.committed(commitTs)));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.committed(commitTs)));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(true);
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(false);
@@ -186,7 +185,7 @@ public void verifiesConcludedTransaction() {
     public void verifiesConcludedAbandonedTransaction() {
         long startTs = 27l;
 
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.aborted()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.aborted()));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(true);
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(true);
@@ -204,7 +203,7 @@ public void catchesInconsistencyIfCommittedTransactionIsMarkedAbandoned() {
         long startTs = 27l;
         long commitTs = 35l;
 
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.committed(commitTs)));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.committed(commitTs)));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(true);
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(true);
@@ -221,7 +220,7 @@ public void catchesInconsistencyIfCommittedTransactionIsMarkedAbandoned() {
     public void catchesInconsistencyIfAbortedTransactionIsNotMarkedAbandoned() {
         long startTs = 27l;
 
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.aborted()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.aborted()));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(true);
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(false);u}(jt (de47f4b61de48b3d358e06301facd8a4098aae44ju uatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTableIntegrationTest.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableIntegrationTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableIntegrationTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableIntegrationTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -25,7 +25,6 @@
 import com.palantir.atlasdb.transaction.encoding.BaseProgressEncodingStrategy;
 import com.palantir.atlasdb.transaction.encoding.TwoPhaseEncodingStrategy;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.time.Duration;
@@ -90,7 +89,7 @@ private void submitWriteTask(
                 writeExecutionLatch.await();
                 Uninterruptibles.sleepUninterruptibly(
                         Duration.ofMillis(ThreadLocalRandom.current().nextInt(10)));
-                pueTable.update(startTimestamp, TransactionStatuses.committed(startTimestamp + writerIndex));
+                pueTable.update(startTimestamp, TransactionStatus.committed(startTimestamp + writerIndex));
             } catch (RuntimeException e) {
                 // Expected - some failures will happen as part of our test.
             }
@@ -154,7 +153,7 @@ private TimestampReader(long startTimestamp, AtomicTable<Long, TransactionStatus
 
         public List<Optional<Long>> getTimestampReads() {
             return timestampReads.stream()
-                    .map(TransactionStatuses::getCommitTimestamp)
+                    .map(TransactionStatus::getCommitTimestamp)
                     .collect(Collectors.toList());
         }
 u}(jt (22a536520a6a833dfdb825d32190bc03183fad7eju jatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTableTest.javaju modifiedju K#ju K7j u KZj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X-  @@ -43,7 +43,6 @@
 import com.palantir.atlasdb.transaction.encoding.TicketsEncodingStrategy;
 import com.palantir.atlasdb.transaction.encoding.TwoPhaseEncodingStrategy;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.time.Clock;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.time.Duration;
@@ -101,67 +100,58 @@ public static Collection<Object[]> data() {
 
     @Test
     public void canPutAndGet() throws ExecutionException, InterruptedException {
-        atomicTable.update(1L, TransactionStatuses.committed(2L));
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(2L);
+        atomicTable.update(1L, TransactionStatus.committed(2L));
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(2L));
         verify(spiedStore).batchAtomicUpdate(anyMap());
         verify(spiedStore, atLeastOnce()).put(anyMap());
         verify(spiedStore).getMultiple(any());
     }
 
     @Test
     public void emptyReturnsInProgress() throws ExecutionException, InterruptedException {
-        assertThat(TransactionStatuses.caseOf(atomicTable.get(3L).get())
-                        .inProgress_(true)
-                        .otherwise_(false))
-                .isTrue();
+        assertThat(atomicTable.get(3L).get()).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Test
     public void canPutAndGetAbortedTransactions() throws ExecutionException, InterruptedException {
-        atomicTable.update(1L, TransactionStatuses.aborted());
-        assertThat(TransactionStatuses.caseOf(atomicTable.get(1L).get())
-                        .aborted_(true)
-                        .otherwise_(false))
-                .isTrue();
+        atomicTable.update(1L, TransactionStatus.aborted());
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.aborted());
     }
 
     @Test
     public void cannotPueTwice() {
-        atomicTable.update(1L, TransactionStatuses.committed(2L));
-        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatuses.committed(2L)))
+        atomicTable.update(1L, TransactionStatus.committed(2L));
+        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatus.committed(2L)))
                 .isInstanceOf(KeyAlreadyExistsException.class);
     }
 
     @Test
     public void canPutAndGetMultiple() throws ExecutionException, InterruptedException {
         ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(
                 1L,
-                TransactionStatuses.committed(2L),
+                TransactionStatus.committed(2L),
                 3L,
-                TransactionStatuses.committed(4L),
+                TransactionStatus.committed(4L),
                 7L,
-                TransactionStatuses.committed(8L));
+                TransactionStatus.committed(8L));
         atomicTable.updateMultiple(inputs);
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 3L, 5L, 7L)).get();
         assertThat(result).hasSize(4);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(3L))).hasValue(4L);
-        assertThat(TransactionStatuses.caseOf(result.get(5L)).inProgress_(true).otherwise_(false))
-                .isTrue();
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(7L))).hasValue(8L);
+        assertThat(result.get(1L)).isEqualTo(TransactionStatus.committed(2L));
+        assertThat(result.get(3L)).isEqualTo(TransactionStatus.committed(4L));
+        assertThat(result.get(5L)).isEqualTo(TransactionStatus.inProgress());
+        assertThat(result.get(7L)).isEqualTo(TransactionStatus.committed(8L));
     }
 
     @Test
     public void pueThatThrowsIsCorrectedOnGet() throws ExecutionException, InterruptedException {
         spiedStore.startFailingPuts();
-        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatuses.committed(2L)))
+        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatus.committed(2L)))
                 .isInstanceOf(RuntimeException.class);
         spiedStore.stopFailingPuts();
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(2L);
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(2L));
         verify(spiedStore, times(2)).put(anyMap());
     }
 
@@ -170,7 +160,7 @@ public void getReturnsStagingValuesThatWereCommittedBySomeoneElse()
             throws ExecutionException, InterruptedException {
 
         long startTimestamp = 1L;
-        TransactionStatus commitStatus = TransactionStatuses.committed(2L);
+        TransactionStatus commitStatus = TransactionStatus.committed(2L);
         Cell timestampAsCell = encodingStrategy.encodeStartTimestampAsCell(startTimestamp);
         byte[] stagingValue =
                 encodingStrategy.encodeCommitStatusAsValue(startTimestamp, AtomicValue.staging(commitStatus));
@@ -184,9 +174,7 @@ public void getReturnsStagingValuesThatWereCommittedBySomeoneElse()
                 .when(spiedStore)
                 .checkAndTouch(timestampAsCell, stagingValue);
 
-        assertThat(TransactionStatuses.getCommitTimestamp(
-                        atomicTable.get(startTimestamp).get()))
-                .isEqualTo(TransactionStatuses.getCommitTimestamp(commitStatus));
+        assertThat(atomicTable.get(startTimestamp).get()).isEqualTo(commitStatus);
     }
 
     @Test
@@ -209,14 +197,14 @@ public void onceNonNullValueIsReturnedItIsAlwaysReturned() {
             for (int i = 0; i < 30; i++) {
                 TransactionStatus valueRead = firstSuccessfulRead(putUnlessExistsTable, startTs);
                 onlyAllowedCommitTs.ifPresentOrElse(
-                        commit -> assertThat(TransactionStatuses.getCommitTimestamp(valueRead))
-                                .hasValue(commit),
-                        () -> assertThat(TransactionStatuses.caseOf(valueRead)
-                                        .inProgress_(true)
-                                        .committed(commitTs -> commitTs >= ts && commitTs <= ts + 2)
-                                        .otherwise_(false))
-                                .isTrue());
-                onlyAllowedCommitTs = TransactionStatuses.getCommitTimestamp(valueRead);
+                        commit -> assertThat(valueRead).isEqualTo(TransactionStatus.committed(commit)),
+                        () -> assertThat(valueRead)
+                                .satisfiesAnyOf(
+                                        status -> assertThat(status).isEqualTo(TransactionStatus.inProgress()),
+                                        status -> assertThat(status).isEqualTo(TransactionStatus.committed(ts)),
+                                        status -> assertThat(status).isEqualTo(TransactionStatus.committed(ts + 1)),
+                                        status -> assertThat(status).isEqualTo(TransactionStatus.committed(ts + 2))));
+                onlyAllowedCommitTs = TransactionStatus.getCommitTimestamp(valueRead);
             }
         }
     }
@@ -242,9 +230,7 @@ public void inAbsenceOfConcurrencyGetRetriesBothTouchAndPut() throws ExecutionEx
 
         spiedStore.stopFailingPuts();
         for (long i = 0; i < 100; i++) {
-            assertThat(TransactionStatuses.getCommitTimestamp(
-                            atomicTable.get(0L).get()))
-                    .hasValue(0L);
+            assertThat(atomicTable.get(0L).get()).isEqualTo(TransactionStatus.committed(0L));
         }
 
         if (validating) {
@@ -343,8 +329,7 @@ public void doNotPutIfAlreadyCommitted() throws ExecutionException, InterruptedE
         setupStagingValues(1);
         spiedStore.enableCommittingUnderUs();
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(0L).get()))
-                .hasValue(0L);
+        assertThat(atomicTable.get(0L).get()).isEqualTo(TransactionStatus.committed(0L));
         verify(spiedKvs, times(1)).checkAndSet(any());
         // only the put from the original PUE was registered
         verify(spiedStore, times(1)).put(anyMap());
@@ -357,18 +342,15 @@ public void acceptStagingAsCommittedWhenCommittingIsSlow() throws ExecutionExcep
         spiedStore.stopFailingPuts();
         spiedStore.startSlowPue();
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(0L).get()))
-                .hasValue(0L);
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(1L);
+        assertThat(atomicTable.get(0L).get()).isEqualTo(TransactionStatus.committed(0L));
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(1L));
 
         verify(spiedKvs, times(1)).checkAndSet(any());
         verify(spiedStore, times(1 + 2)).put(anyMap());
 
         clockLong.accumulateAndGet(Duration.ofSeconds(62).toMillis(), Long::sum);
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(2L).get()))
-                .hasValue(2L);
+        assertThat(atomicTable.get(2L).get()).isEqualTo(TransactionStatus.committed(2L));
         verify(spiedKvs, times(2)).checkAndSet(any());
         verify(spiedStore, times(1 + 3)).put(anyMap());
     }
@@ -384,23 +366,21 @@ public void acceptStagingAsCommittedWhenRetryingTooMuch() throws ExecutionExcept
                 .hasCauseInstanceOf(RetryLimitReachedException.class);
         spiedStore.stopFailingPuts();
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(1L);
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(1L));
         verify(spiedKvs, times(1)).checkAndSet(any());
         verify(spiedStore, times(1 + 2)).put(anyMap());
 
         clockLong.accumulateAndGet(Duration.ofSeconds(62).toMillis(), Long::sum);
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(2L).get()))
-                .hasValue(2L);
+        assertThat(atomicTable.get(2L).get()).isEqualTo(TransactionStatus.committed(2L));
         verify(spiedKvs, times(2)).checkAndSet(any());
         verify(spiedStore, times(1 + 3)).put(anyMap());
     }
 
     private void setupStagingValues(int num) {
         spiedStore.startFailingPuts();
         Map<Long, TransactionStatus> initialWrites =
-                LongStream.range(0, num).boxed().collect(Collectors.toMap(x -> x, TransactionStatuses::committed));
+                LongStream.range(0, num).boxed().collect(Collectors.toMap(x -> x, TransactionStatus::committed));
         assertThatThrownBy(() -> atomicTable.updateMultiple(initialWrites))
                 .isInstanceOf(RuntimeException.class)
                 .hasMessageContaining("Failed to set value");
@@ -409,7 +389,7 @@ private void setupStagingValues(int num) {
     private static Optional<Long> tryPue(
             AtomicTable<Long, TransactionStatus> atomicTable, long startTs, long commitTs) {
         try {
-            atomicTable.update(startTs, TransactionStatuses.committed(commitTs));
+            atomicTable.update(startTs, TransactionStatus.committed(commitTs));
             return Optional.of(commitTs);
         } catch (Exception e) {
             // this is ok, we may have failed because it already exists or randomly. Either way, continue.u      }(jt (09cfb417a9a7f8920f5c480e8b9a3bd3be73fe0cju gatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/SimpleCommitTimestampAtomicTableTest.javaju modifiedju Kju Kj u K+j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FSimpleCommitTimestampAtomicTableTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FSimpleCommitTimestampAtomicTableTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FSimpleCommitTimestampAtomicTableTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -27,9 +27,7 @@
 import com.palantir.atlasdb.transaction.encoding.TicketsEncodingStrategy;
 import com.palantir.atlasdb.transaction.encoding.TransactionStatusEncodingStrategy;
 import com.palantir.atlasdb.transaction.encoding.V1EncodingStrategy;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import java.util.Arrays;
 import java.util.Collection;
 import java.util.Map;
@@ -58,74 +56,75 @@ public void setup() {
 
     @Test
     public void canPutAndGet() throws ExecutionException, InterruptedException {
-        atomicTable.update(1L, TransactionStatuses.committed(2L));
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(2L);
+        atomicTable.update(1L, TransactionStatus.committed(2L));
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(2L));
     }
 
     @Test
     public void emptyReturnsInProgress() throws ExecutionException, InterruptedException {
-        assertThat(atomicTable.get(3L).get()).isEqualTo(TransactionConstants.IN_PROGRESS);
+        assertThat(atomicTable.get(3L).get()).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Test
     public void cannotPueTwice() {
-        atomicTable.update(1L, TransactionStatuses.committed(2L));
-        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatuses.committed(2L)))
+        atomicTable.update(1L, TransactionStatus.committed(2L));
+        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatus.committed(2L)))
                 .isInstanceOf(KeyAlreadyExistsException.class);
     }
 
     @Test
     public void canPutAndGetMultiple() throws ExecutionException, InterruptedException {
         ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(
                 1L,
-                TransactionStatuses.committed(2L),
+                TransactionStatus.committed(2L),
                 3L,
-                TransactionStatuses.committed(4L),
+                TransactionStatus.committed(4L),
                 7L,
-                TransactionStatuses.committed(8L));
+                TransactionStatus.committed(8L));
         atomicTable.updateMultiple(inputs);
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 3L, 5L, 7L)).get();
         assertThat(result).hasSize(4);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(3L))).hasValue(4L);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(7L))).hasValue(8L);
+        assertThat(result.get(1L)).isEqualTo(TransactionStatus.committed(2L));
+        assertThat(result.get(3L)).isEqualTo(TransactionStatus.committed(4L));
+        assertThat(result.get(7L)).isEqualTo(TransactionStatus.committed(8L));
     }
 
     @Test
     public void canPutAndGetAbortedTransactions() throws ExecutionException, InterruptedException {
-        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatuses.aborted());
+        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatus.aborted());
         atomicTable.updateMultiple(inputs);
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L)).get();
         assertThat(result).hasSize(1);
-        assertThat(result.get(1L)).isEqualTo(TransactionConstants.ABORTED);
+        assertThat(result).containsEntry(1L, TransactionStatus.aborted());
     }
 
     @Test
     public void getsAllTimestamps() throws ExecutionException, InterruptedException {
-        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatuses.committed(2L));
+        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatus.committed(2L));
         atomicTable.updateMultiple(inputs);
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 3L)).get();
         assertThat(result).hasSize(2);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(result.get(3L)).isEqualTo(TransactionConstants.IN_PROGRESS);
+        assertThat(result)
+                .containsEntry(1L, TransactionStatus.committed(2L))
+                .containsEntry(3L, TransactionStatus.inProgress());
     }
 
     @Test
     public void doesNotThrowForDuplicateValues() throws ExecutionException, InterruptedException {
-        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatuses.committed(2L));
+        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatus.committed(2L));
         atomicTable.updateMultiple(inputs);
 
         // does not throw any exception
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 1L, 3L)).get();
 
         assertThat(result).hasSize(2);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(result.get(3L)).isEqualTo(TransactionConstants.IN_PROGRESS);
+        assertThat(result)
+                .containsEntry(1L, TransactionStatus.committed(2L))
+                .containsEntry(3L, TransactionStatus.inProgress());
     }
 
     private AtomicTable<Long, TransactionStatus> createPueTable() {u}(jt (17c2d2d99fcc56873eb8e3c9724337a5187746f8ju eatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/TimestampExtractingAtomicTableTest.javaju modifiedju Kju K	j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTableTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTableTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTableTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -26,7 +26,6 @@
 import com.google.common.util.concurrent.Futures;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.Map;
@@ -42,7 +41,7 @@ public class TimestampExtractingAtomicTableTest {
     public void canExtractCommittedTransaction() throws ExecutionException, InterruptedException {
         Iterable<Long> keys = ImmutableList.of(1L, 2L, 3L);
         Map<Long, TransactionStatus> commits = KeyedStream.of(keys)
-                .map(key -> TransactionStatuses.committed(commitTs(key)))
+                .map(key -> TransactionStatus.committed(commitTs(key)))
                 .collectToMap();
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
@@ -54,7 +53,7 @@ public void canExtractCommittedTransaction() throws ExecutionException, Interrup
     public void canExtractAbortedTransaction() throws ExecutionException, InterruptedException {
         Iterable<Long> keys = ImmutableList.of(1L);
         Map<Long, TransactionStatus> commits =
-                KeyedStream.of(keys).map(_key -> TransactionConstants.ABORTED).collectToMap();
+                KeyedStream.of(keys).map(_key -> TransactionStatus.aborted()).collectToMap();
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
         Map<Long, Long> expected = KeyedStream.of(keys)
@@ -70,9 +69,9 @@ public void canExtractCommittedOrAbortedTransaction() throws ExecutionException,
         Iterable<Long> keys = ImmutableList.of(committedTs, abortedTs);
         Map<Long, TransactionStatus> commits = ImmutableMap.of(
                 committedTs,
-                TransactionStatuses.committed(commitTs(committedTs)),
+                TransactionStatus.committed(commitTs(committedTs)),
                 abortedTs,
-                TransactionConstants.ABORTED);
+                TransactionStatus.aborted());
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
         Map<Long, Long> expected =
@@ -83,9 +82,8 @@ public void canExtractCommittedOrAbortedTransaction() throws ExecutionException,
     @Test
     public void ignoresInProgressTransaction() throws ExecutionException, InterruptedException {
         Iterable<Long> keys = ImmutableList.of(1L);
-        Map<Long, TransactionStatus> commits = KeyedStream.of(keys)
-                .map(_key -> TransactionConstants.IN_PROGRESS)
-                .collectToMap();
+        Map<Long, TransactionStatus> commits =
+                KeyedStream.of(keys).map(_key -> TransactionStatus.inProgress()).collectToMap();
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
         assertThat(timestampExtractingAtomicTable.get(keys).get()).isEmpty();
@@ -95,7 +93,7 @@ public void ignoresInProgressTransaction() throws ExecutionException, Interrupte
     public void throwsOnUnknownTransaction() {
         Iterable<Long> keys = ImmutableList.of(1L);
         Map<Long, TransactionStatus> commits =
-                KeyedStream.of(keys).map(_key -> TransactionConstants.UNKNOWN).collectToMap();
+                KeyedStream.of(keys).map(_key -> TransactionStatus.unknown()).collectToMap();
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
         assertThatThrownBy(() -> timestampExtractingAtomicTable.get(keys).get())u}(jt (dccc318b332ffaa971355af06b94dc51f14199e0ju Xatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/SweeperServiceImplTest.javaju removedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplTest.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplTest.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X`!  @@ -1,205 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.never;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoMoreInteractions;
-import static org.mockito.Mockito.when;
-
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.io.BaseEncoding;
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.SweepResults;
-import com.palantir.atlasdb.util.DropwizardClientRule;
-import com.palantir.atlasdb.util.TestJaxRsClientFactory;
-import com.palantir.conjure.java.api.errors.RemoteException;
-import com.palantir.conjure.java.server.jersey.ConjureJerseyFeature;
-import java.util.List;
-import java.util.Optional;
-import javax.ws.rs.core.Response;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Rule;
-import org.junit.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mockito;
-
-public class SweeperServiceImplTest extends SweeperTestSetup {
-
-    private static final String VALID_START_ROW = "0102030A";
-    private static final String LOWERCASE_BUT_VALID_START_ROW = "abadcafe";
-    private static final String MIXED_CASE_START_ROW = "AaAaAaAaAa1111";
-    private static final String INVALID_START_ROW = "xyz";
-    SweeperService sweeperService;
-
-    private static final SweepResults RESULTS_NO_MORE_TO_SWEEP = SweepResults.createEmptySweepResultWithNoMoreToSweep();
-    private static final SweepResults RESULTS_MORE_TO_SWEEP = SweepResults.createEmptySweepResultWithMoreToSweep();
-
-    @Rule
-    public DropwizardClientRule dropwizardClientRule = new DropwizardClientRule(
-            new SweeperServiceImpl(getSpecificTableSweeperService(), sweepBatchConfigSource),
-            ConjureJerseyFeature.INSTANCE);
-
-    @Override
-    @Before
-    public void setup() {
-        super.setup();
-
-        sweeperService = TestJaxRsClientFactory.createJaxRsClientForTest(
-                SweeperService.class,
-                SweeperServiceImplTest.class,
-                dropwizardClientRule.baseUri().toString());
-
-        setupTaskRunner(RESULTS_NO_MORE_TO_SWEEP);
-        when(kvs.getAllTableNames()).thenReturn(ImmutableSet.of(TABLE_REF));
-    }
-
-    @After
-    public void after() {
-        verifyNoSweepResultsSaved();
-    }
-
-    @Test
-    public void sweepingNonFullyTableShouldNotBeSuccessful() {
-        assertThatExceptionOfType(RemoteException.class)
-                .isThrownBy(() -> sweeperService.sweepTableFully("non_fully_qualified_name"))
-                .matches(ex -> ex.getStatus() == Response.Status.BAD_REQUEST.getStatusCode());
-    }
-
-    @Test
-    public void sweepingNonExistingTableShouldNotBeSuccessful() {
-        assertThatExceptionOfType(RemoteException.class)
-                .isThrownBy(() -> sweeperService.sweepTableFully("ns.non_existing_table"))
-                .matches(ex -> ex.getStatus() == Response.Status.BAD_REQUEST.getStatusCode());
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithValidStartRowShouldBeSuccessful() {
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), VALID_START_ROW);
-    }
-
-    @Test
-    public void sweepTableFromStartRowShouldAcceptLowercaseBase16Encodings() {
-        when(kvs.getAllTableNames()).thenReturn(ImmutableSet.of(TABLE_REF));
-
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), LOWERCASE_BUT_VALID_START_ROW);
-    }
-
-    @Test
-    public void sweepTableFromStartRowShouldAcceptMixedCaseBase16Encodings() {
-        when(kvs.getAllTableNames()).thenReturn(ImmutableSet.of(TABLE_REF));
-
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), MIXED_CASE_START_ROW);
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithInValidStartRowShouldThrow() {
-        assertThatExceptionOfType(RemoteException.class)
-                .isThrownBy(() -> sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), INVALID_START_ROW))
-                .matches(ex -> ex.getStatus() == Response.Status.BAD_REQUEST.getStatusCode());
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithBatchConfigWithNullStartRowShouldBeSuccessful() {
-        sweeperService.sweepTable(
-                TABLE_REF.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.of(1000),
-                Optional.of(1000),
-                Optional.of(500));
-    }
-
-    @Test
-    public void sweepTableFromStartRowWithBatchConfigWithExactlyOneNonNullBatchConfigShouldBeSuccessful() {
-        sweeperService.sweepTable(
-                TABLE_REF.getQualifiedName(),
-                Optional.of(encodeStartRow(new byte[] {1, 2, 3})),
-                Optional.empty(),
-                Optional.of(10),
-                Optional.empty(),
-                Optional.empty());
-    }
-
-    @Test
-    public void testWriteProgressAndPriorityNotUpdatedAfterSweepRunsSuccessfully_butMetricsAre() {
-        sweeperService.sweepTableFrom(TABLE_REF.getQualifiedName(), encodeStartRow(new byte[] {1, 2, 3}));
-        ArgumentCaptor<Long> sweepTime = ArgumentCaptor.forClass(Long.class);
-        ArgumentCaptor<Long> totalTimeElapsed = ArgumentCaptor.forClass(Long.class);
-
-        Mockito.verify(sweepMetrics, times(1)).updateSweepTime(sweepTime.capture(), totalTimeElapsed.capture());
-        verifyExpectedArgument(sweepTime.getValue(), totalTimeElapsed.getValue());
-    }
-
-    @Test
-    public void sweepsEntireTableByDefault() {
-        List<byte[]> startRows = ImmutableList.of(PtBytes.EMPTY_BYTE_ARRAY, new byte[] {0x10}, new byte[] {0x50});
-
-        for (int i = 0; i < startRows.size(); i++) {
-            byte[] currentRow = startRows.get(i);
-            Optional<byte[]> nextRow =
-                    (i + 1) == startRows.size() ? Optional.empty() : Optional.of(startRows.get(i + 1));
-
-            SweepResults results = SweepResults.createEmptySweepResult(nextRow);
-            when(sweepTaskRunner.run(any(), any(), eq(currentRow), any())).thenReturn(results);
-        }
-
-        sweeperService.sweepTableFully(TABLE_REF.getQualifiedName());
-
-        startRows.forEach(row -> verify(sweepTaskRunner).run(any(), any(), eq(row), any()));
-        verifyNoMoreInteractions(sweepTaskRunner);
-    }
-
-    @Test
-    public void runsOneIterationIfRequested() {
-        setupTaskRunner(RESULTS_MORE_TO_SWEEP);
-
-        sweeperService.sweepTable(
-                TABLE_REF.getQualifiedName(),
-                Optional.empty(),
-                Optional.of(false),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        verify(sweepTaskRunner, times(1)).run(any(), any(), any(), any());
-        verifyNoMoreInteractions(sweepTaskRunner);
-    }
-
-    private void verifyExpectedArgument(long sweepTime, long totalTimeElapsed) {
-        assertThat(RESULTS_NO_MORE_TO_SWEEP.getTimeInMillis()).isEqualTo(sweepTime);
-        assertThat(totalTimeElapsed)
-                .isBetween(
-                        RESULTS_NO_MORE_TO_SWEEP.getTimeElapsedSinceStartedSweeping() - 1000L,
-                        RESULTS_NO_MORE_TO_SWEEP.getTimeElapsedSinceStartedSweeping());
-    }
-
-    private String encodeStartRow(byte[] rowBytes) {
-        return BaseEncoding.base16().encode(rowBytes);
-    }
-
-    private void verifyNoSweepResultsSaved() {
-        verify(progressStore, never()).saveProgress(any());
-        verify(priorityStore, never()).update(any(), any(), any());
-    }
-}u}(jt (d472c8f932207eb4899afe98ed0ccfe92e678cfdju [atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/TargetedSweeperTest.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FTargetedSweeperTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FTargetedSweeperTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FTargetedSweeperTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -27,6 +27,7 @@
 import static com.palantir.atlasdb.sweep.queue.SweepQueueUtils.tsPartitionFine;
 import static com.palantir.atlasdb.table.description.SweeperStrategy.CONSERVATIVE;
 import static com.palantir.atlasdb.table.description.SweeperStrategy.THOROUGH;
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
@@ -81,6 +82,7 @@
 import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.LockToken;
 import com.palantir.lock.v2.TimelockService;
+import com.palantir.logsafe.SafeArg;
 import java.time.Duration;
 import java.util.ArrayList;
 import java.util.List;
@@ -228,13 +230,15 @@ public void increaseInShardsReflectedOnLastSweptTimestamp() {
 
     @Test
     public void callingEnqueueAndSweepOnUninitializedSweeperThrows() {
+        SafeArg<String> objectNameSafeArg = SafeArg.of("objectName", "Targeted Sweeper");
         TargetedSweeper uninitializedSweeper = TargetedSweeper.createUninitializedForTest(() -> 1);
-        assertThatThrownBy(() -> uninitializedSweeper.enqueue(ImmutableList.of()))
+        assertThatLoggableExceptionThrownBy(() -> uninitializedSweeper.enqueue(ImmutableList.of()))
                 .isInstanceOf(NotInitializedException.class)
-                .hasMessageContaining("Targeted Sweeper");
-        assertThatThrownBy(() -> uninitializedSweeper.sweepNextBatch(ShardAndStrategy.conservative(0), 1L))
+                .hasExactlyArgs(objectNameSafeArg);
+        assertThatLoggableExceptionThrownBy(
+                        () -> uninitializedSweeper.sweepNextBatch(ShardAndStrategy.conservative(0), 1L))
                 .isInstanceOf(NotInitializedException.class)
-                .hasMessageContaining("Targeted Sweeper");
+                .hasExactlyArgs(objectNameSafeArg);
     }
 
     @Testu}(jt (f83731cd3f3f8b3be5c5f506cb85afad40f4ec7bju latlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/encoding/TicketsEncodingStrategyTest.javaju modifiedju Kju Kj u K!j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategyTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategyTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategyTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XN  @@ -24,8 +24,7 @@
 import com.google.protobuf.ByteString;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.Cell;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Arrays;
 import java.util.List;
@@ -87,22 +86,20 @@ public void commitTimestampEncodeAndDecodeAreInverses() {
             long startTimestamp = ThreadLocalRandom.current().nextLong(0, Long.MAX_VALUE - 1);
             long commitTimestamp = ThreadLocalRandom.current().nextLong(startTimestamp, Long.MAX_VALUE);
             byte[] encoded =
-                    STRATEGY.encodeCommitStatusAsValue(startTimestamp, TransactionStatuses.committed(commitTimestamp));
-            assertThat(TransactionStatuses.getCommitTimestamp(
-                            STRATEGY.decodeValueAsCommitStatus(startTimestamp, encoded)))
-                    .hasValue(commitTimestamp);
+                    STRATEGY.encodeCommitStatusAsValue(startTimestamp, TransactionStatus.committed(commitTimestamp));
+            assertThat(STRATEGY.decodeValueAsCommitStatus(startTimestamp, encoded))
+                    .isEqualTo(TransactionStatus.committed(commitTimestamp));
         });
     }
 
     @Test
     public void storesLargeCommitTimestampsCompactly() {
         long highTimestamp = Long.MAX_VALUE - 1;
         byte[] commitTimestampEncoding =
-                STRATEGY.encodeCommitStatusAsValue(highTimestamp, TransactionStatuses.committed(highTimestamp + 1));
+                STRATEGY.encodeCommitStatusAsValue(highTimestamp, TransactionStatus.committed(highTimestamp + 1));
         assertThat(commitTimestampEncoding).hasSize(1);
-        assertThat(TransactionStatuses.getCommitTimestamp(
-                        STRATEGY.decodeValueAsCommitStatus(highTimestamp, commitTimestampEncoding)))
-                .hasValue(highTimestamp + 1);
+        assertThat(STRATEGY.decodeValueAsCommitStatus(highTimestamp, commitTimestampEncoding))
+                .isEqualTo(TransactionStatus.committed(highTimestamp + 1));
     }
 
     @Test
@@ -151,36 +148,36 @@ public void distributesRowsEvenlyAcrossBitSpace() {
 
     @Test
     public void canStoreTransactionsCommittingInstantaneously() {
-        assertThatCode(() -> STRATEGY.encodeCommitStatusAsValue(10, TransactionStatuses.committed(10L)))
+        assertThatCode(() -> STRATEGY.encodeCommitStatusAsValue(10, TransactionStatus.committed(10L)))
                 .doesNotThrowAnyException();
     }
 
     @Test
     public void canStoreAbortedTransactionCompactly() {
-        assertThat(STRATEGY.encodeCommitStatusAsValue(537369, TransactionConstants.ABORTED))
+        assertThat(STRATEGY.encodeCommitStatusAsValue(537369, TransactionStatus.aborted()))
                 .hasSize(0);
     }
 
     @Test
     public void encodingIllegalCommitThrows() {
-        assertThatThrownBy(() -> STRATEGY.encodeCommitStatusAsValue(12327758, TransactionStatuses.inProgress()))
+        assertThatThrownBy(() -> STRATEGY.encodeCommitStatusAsValue(12327758, TransactionStatus.inProgress()))
                 .isInstanceOf(SafeIllegalArgumentException.class);
-        assertThatThrownBy(() -> STRATEGY.encodeCommitStatusAsValue(12327758, TransactionStatuses.unknown()))
+        assertThatThrownBy(() -> STRATEGY.encodeCommitStatusAsValue(12327758, TransactionStatus.unknown()))
                 .isInstanceOf(SafeIllegalArgumentException.class);
     }
 
     @Test
     public void canDecodeEmptyByteArrayAsAbortedTransaction() {
         assertThat(STRATEGY.decodeValueAsCommitStatus(1, PtBytes.EMPTY_BYTE_ARRAY))
-                .isEqualTo(TransactionConstants.ABORTED);
+                .isEqualTo(TransactionStatus.aborted());
         assertThat(STRATEGY.decodeValueAsCommitStatus(862846378267L, PtBytes.EMPTY_BYTE_ARRAY))
-                .isEqualTo(TransactionConstants.ABORTED);
+                .isEqualTo(TransactionStatus.aborted());
     }
 
     @Test
     public void canDecodeNullAsInProgressTransaction() {
-        assertThat(STRATEGY.decodeValueAsCommitStatus(1, null)).isEqualTo(TransactionConstants.IN_PROGRESS);
-        assertThat(STRATEGY.decodeValueAsCommitStatus(862846378267L, null)).isEqualTo(TransactionConstants.IN_PROGRESS);
+        assertThat(STRATEGY.decodeValueAsCommitStatus(1, null)).isEqualTo(TransactionStatus.inProgress());
+        assertThat(STRATEGY.decodeValueAsCommitStatus(862846378267L, null)).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Testu}(jt (f4c51432c4b246954b0fa6a7bcbfe0fa602255ecju fatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoaderTest.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -35,7 +35,6 @@
 import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
 import com.palantir.atlasdb.transaction.service.AsyncTransactionService;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.lock.v2.LockToken;
@@ -59,7 +58,7 @@ public class CommitTimestampLoaderTest {
     private final KnownConcludedTransactions knownConcludedTransactions = mock(KnownConcludedTransactions.class);
 
     private void setup(long startTs, long commitTs) {
-        TransactionStatus commitStatus = TransactionStatuses.committed(commitTs);
+        TransactionStatus commitStatus = TransactionStatus.committed(commitTs);
         setup(startTs, commitStatus, false);
     }
 
@@ -87,7 +86,7 @@ public void readOnlyDoesNotThrowForUnsweptTTSCell() throws ExecutionException, I
     public void throwIfTTSBeyondReadOnlyForSweptTTSCell() {
         long transactionTs = 27l;
         long startTs = 5l;
-        TransactionStatus commitStatus = TransactionStatuses.unknown();
+        TransactionStatus commitStatus = TransactionStatus.unknown();
 
         setup(startTs, commitStatus, true);
 
@@ -160,7 +159,7 @@ public void doesNotCacheUnknownTransactions() throws ExecutionException, Interru
         long commitTsKnown = startTsKnown + 1;
 
         long startTsUnknown = 7l;
-        TransactionStatus commitUnknown = TransactionStatuses.unknown();
+        TransactionStatus commitUnknown = TransactionStatus.unknown();
 
         CommitTimestampLoader commitTimestampLoader =
                 getCommitTsLoader(Optional.empty(), transactionTs, transactionTs - 1);u}(jt (8d3be841271bd5b738aeb04915dfea33129f9ecfju tatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/knowledge/KnownAbandonedTransactionsImplTest.javaju modifiedju Kju Kj u K&j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fknowledge%2FKnownAbandonedTransactionsImplTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fknowledge%2FKnownAbandonedTransactionsImplTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fknowledge%2FKnownAbandonedTransactionsImplTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X{  @@ -18,8 +18,8 @@
 
 import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
 import static org.mockito.ArgumentMatchers.anyLong;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.times;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.atLeastOnce;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
@@ -32,16 +32,30 @@
 import java.util.Set;
 import java.util.stream.Collectors;
 import java.util.stream.LongStream;
+import org.junit.Before;
 import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
 
+@RunWith(MockitoJUnitRunner.class)
 public final class KnownAbandonedTransactionsImplTest {
-    private final AbandonedTimestampStore abandonedTimestampStore = mock(AbandonedTimestampStore.class);
-    private final AbandonedTransactionSoftCache softCache = mock(AbandonedTransactionSoftCache.class);
-    private final KnownAbandonedTransactionsImpl knownAbortedTransactions = new KnownAbandonedTransactionsImpl(
-            abandonedTimestampStore,
-            softCache,
-            new DefaultTaggedMetricRegistry(),
-            KnownAbandonedTransactionsImpl.MAXIMUM_CACHE_WEIGHT);
+    @Mock
+    AbandonedTimestampStore abandonedTimestampStore;
+
+    @Mock
+    AbandonedTransactionSoftCache softCache;
+
+    private KnownAbandonedTransactionsImpl knownAbortedTransactions;
+
+    @Before
+    public void before() {
+        knownAbortedTransactions = new KnownAbandonedTransactionsImpl(
+                abandonedTimestampStore,
+                softCache,
+                new DefaultTaggedMetricRegistry(),
+                KnownAbandonedTransactionsImpl.MAXIMUM_CACHE_WEIGHT);
+    }
 
     @Test
     public void testIsKnownAbortedReturnsTrueIfAbortedInSoftCache() {
@@ -141,7 +155,7 @@ public void testReliableCacheEvictsIfWeightLimitReached() {
         // First query for bucket 1 goes to the store
         knownAbortedTransactions.isKnownAbandoned(rangeForBucket.lowerEndpoint());
         verify(abandonedTimestampStore)
-                .getAbandonedTimestampsInRange(rangeForBucket.lowerEndpoint(), rangeForBucket.upperEndpoint());
+                .getAbandonedTimestampsInRange(eq(rangeForBucket.lowerEndpoint()), eq(rangeForBucket.upperEndpoint()));
 
         // Subsequent queries for bucket 1 are resolved from cache
         knownAbortedTransactions.isKnownAbandoned(rangeForBucket.lowerEndpoint());
@@ -155,8 +169,8 @@ public void testReliableCacheEvictsIfWeightLimitReached() {
 
         // Now the query for bucket 1 will go to the futile store due to cache eviction
         knownAbortedTransactions.isKnownAbandoned(rangeForBucket.lowerEndpoint());
-        verify(abandonedTimestampStore, times(2))
-                .getAbandonedTimestampsInRange(rangeForBucket.lowerEndpoint(), rangeForBucket.upperEndpoint());
+        verify(abandonedTimestampStore, atLeastOnce())
+                .getAbandonedTimestampsInRange(eq(rangeForBucket.lowerEndpoint()), eq(rangeForBucket.upperEndpoint()));
     }
 
     @Testu}(jt (d030dbed17299b5450443775cf43034372a1ca11ju datlasdb-tests-shared/src/main/java/com/palantir/atlasdb/sweep/SweeperServiceImplIntegrationTest.javaju removedju K ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplIntegrationTest.javaj#u https://github.com/palantir/atlasdb/raw/38be8dd461bbf29eb0de222b7f9c713914596c7e/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplIntegrationTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweeperServiceImplIntegrationTest.java?ref=38be8dd461bbf29eb0de222b7f9c713914596c7ej'u X&  @@ -1,235 +0,0 @@
-/*
- * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.palantir.atlasdb.sweep;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.palantir.atlasdb.encoding.PtBytes;
-import com.palantir.atlasdb.keyvalue.api.Cell;
-import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.Value;
-import com.palantir.atlasdb.keyvalue.impl.InMemoryKeyValueService;
-import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
-import com.palantir.common.streams.KeyedStream;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.concurrent.ThreadLocalRandom;
-import java.util.stream.Collectors;
-import java.util.stream.IntStream;
-import org.junit.Before;
-import org.junit.Test;
-
-public class SweeperServiceImplIntegrationTest extends AbstractBackgroundSweeperIntegrationTest {
-    private SweeperService sweeperService;
-
-    @Before
-    @Override
-    public void setup() {
-        super.setup();
-        sweeperService = new SweeperServiceImpl(specificTableSweeper, sweepBatchConfigSource);
-    }
-
-    @Override
-    @Test
-    public void smokeTest() {
-        createTable(TABLE_1, SweepStrategy.CONSERVATIVE);
-        putManyCells(TABLE_1, 100, 110);
-        putManyCells(TABLE_1, 103, 113);
-        putManyCells(TABLE_1, 105, 115);
-        sweeperService.sweepTableFully(TABLE_1.getQualifiedName());
-        verifyTableSwept(TABLE_1, 75, true);
-    }
-
-    @Test
-    public void previouslyConservativeErasesMostExistingSentinelsInThoroughTable() {
-        skipCellVersion.setPeriod(Integer.MAX_VALUE);
-        createTable(TABLE_1, SweepStrategy.THOROUGH);
-
-        Map<Cell, byte[]> sentinelWrites = IntStream.range(0, 100)
-                .mapToObj(PtBytes::toBytes)
-                .map(bytes -> Cell.create(bytes, bytes))
-                .collect(Collectors.toMap(cell -> cell, _ignore -> PtBytes.EMPTY_BYTE_ARRAY));
-        kvs.put(TABLE_1, sentinelWrites, Value.INVALID_VALUE_TIMESTAMP);
-        Map<Cell, Long> readMap = KeyedStream.stream(sentinelWrites)
-                .map(_ignore -> Long.MAX_VALUE)
-                .collectToMap();
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(100);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(1);
-    }
-
-    @Test
-    public void previouslyConservativeRunsFullSweepIfTableIsStillConservativelySwept() {
-        createTable(TABLE_1, SweepStrategy.CONSERVATIVE);
-
-        Map<Cell, byte[]> writes = KeyedStream.of(IntStream.range(0, 100).boxed())
-                .mapKeys(PtBytes::toBytes)
-                .mapKeys(bytes -> Cell.create(bytes, bytes))
-                .map(PtBytes::toBytes)
-                .collectToMap();
-        kvs.put(TABLE_1, writes, 100L);
-        txService.putUnlessExists(100L, 101L);
-        kvs.put(TABLE_1, writes, 103L);
-        txService.putUnlessExists(103L, 104L);
-        Map<Cell, Long> readMap =
-                KeyedStream.stream(writes).map(_ignore -> 102L).collectToMap();
-
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(100);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        Map<Cell, Value> reads = kvs.get(TABLE_1, readMap);
-        // lower ts entries are swept, but we have sentinels
-        assertThat(reads.values().stream().map(Value::getTimestamp).collect(Collectors.toSet()))
-                .containsExactly(Value.INVALID_VALUE_TIMESTAMP);
-        assertThat(reads).hasSize(100);
-        Map<Cell, Long> readsAtMaxTs =
-                KeyedStream.stream(readMap).map(_ignore -> Long.MAX_VALUE).collectToMap();
-        Map<Cell, Value> maxTsReads = kvs.get(TABLE_1, readsAtMaxTs);
-        assertThat(maxTsReads.values().stream().map(Value::getTimestamp).collect(Collectors.toSet()))
-                .containsExactly(103L);
-        assertThat(maxTsReads).hasSize(100);
-    }
-
-    /**
-     * To help understand the test below, refer to the tables.
-     * Before sweep
-     * +----------+--------+-----------+
-     * | START_TS | VALUES | DELETIONS |
-     * +----------+--------+-----------+
-     * |      100 |    500 |       500 |
-     * |      103 |    500 |       500 |
-     * +----------+--------+-----------+
-     *
-     * After sweep
-     * +----------+--------+-----------+
-     * | START_TS | VALUES | DELETIONS |
-     * +----------+--------+-----------+
-     * |      100 |      6 |         5 |
-     * |      103 |    500 |     5 + 5 |
-     * +----------+--------+-----------+
-     */
-    @Test
-    public void previouslyConservativeRespectsSkipPeriodWhenSweepingNormally() {
-        skipCellVersion.setPeriod(9);
-        createTable(TABLE_1, SweepStrategy.THOROUGH);
-
-        Map<Cell, byte[]> writes = KeyedStream.of(IntStream.range(0, 1000).boxed())
-                .mapKeys(PtBytes::toBytes)
-                .mapKeys(bytes -> Cell.create(bytes, bytes))
-                .map(count -> count < 500 ? PtBytes.toBytes(count) : PtBytes.EMPTY_BYTE_ARRAY)
-                .collectToMap();
-        kvs.put(TABLE_1, writes, 100L);
-        txService.putUnlessExists(100L, 101L);
-        kvs.put(TABLE_1, writes, 103L);
-        txService.putUnlessExists(103L, 104L);
-
-        Map<Cell, Long> readMap =
-                KeyedStream.stream(writes).map(_ignore -> 102L).collectToMap();
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(1000);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        assertThat(kvs.get(TABLE_1, readMap))
-                .as("deletes all but 11 entries at lower timestamp ~ 1%")
-                .hasSize(11);
-        Map<Cell, Long> readsAtMaxTs =
-                KeyedStream.stream(readMap).map(_ignore -> Long.MAX_VALUE).collectToMap();
-        Map<Cell, Value> latestVisibleVersions = kvs.get(TABLE_1, readsAtMaxTs);
-        assertThat(latestVisibleVersions.values().stream()
-                        .map(Value::getTimestamp)
-                        .noneMatch(timestamp -> timestamp == 100L))
-                .as("none of the entries at lower ts are naked")
-                .isTrue();
-        assertThat(latestVisibleVersions)
-                .as("500 non-deletes, 5 deletes skipped normally, and 5 skipped to prevent revealing at lower ts")
-                .hasSize(510);
-    }
-
-    @Test
-    public void sweepPreviouslyConservativeNowThoroughTableFuzzTest() {
-        skipCellVersion.makeNonDeterministic();
-        createTable(TABLE_1, SweepStrategy.THOROUGH);
-
-        Set<Cell> cells = IntStream.range(0, 10_000)
-                .boxed()
-                .map(PtBytes::toBytes)
-                .map(bytes -> Cell.create(bytes, bytes))
-                .collect(Collectors.toSet());
-
-        for (int i = 0; i < 10; i++) {
-            Map<Cell, byte[]> writes = KeyedStream.of(cells)
-                    .map(cell ->
-                            ThreadLocalRandom.current().nextBoolean() ? cell.getRowName() : PtBytes.EMPTY_BYTE_ARRAY)
-                    .collectToMap();
-            kvs.put(TABLE_1, writes, 100L + 2L * i);
-            txService.putUnlessExists(100L + 2L * i, 101L + 2L * i);
-        }
-
-        Map<Cell, Long> readMap = KeyedStream.of(cells).map(_ignore -> 102L).collectToMap();
-        assertThat(kvs.get(TABLE_1, readMap)).hasSize(10_000);
-
-        sweeperService.sweepPreviouslyConservativeNowThoroughTable(
-                TABLE_1.getQualifiedName(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty(),
-                Optional.empty());
-
-        assertThat(kvs.get(TABLE_1, readMap).size())
-                .as("expected number of remaining entries is 1%, ~100")
-                .isBetween(50, 200);
-
-        Map<Cell, Long> readsAtMaxTs =
-                KeyedStream.of(cells).map(_ignore -> Long.MAX_VALUE).collectToMap();
-        Map<Cell, Value> latestVisibleVersions = kvs.get(TABLE_1, readsAtMaxTs);
-        assertThat(latestVisibleVersions.values().stream()
-                        .map(Value::getTimestamp)
-                        .allMatch(ts -> ts == 100 + 2 * 9))
-                .as("every visible cell still has the version at greatest timestamp")
-                .isTrue();
-        assertThat(latestVisibleVersions.size())
-                .as("expected number of cells that are fully deleted is ~45.22%, ~5500 remaining")
-                .isBetween(4500, 6500);
-    }
-
-    @Override
-    protected KeyValueService getKeyValueService() {
-        return new InMemoryKeyValueService(true);
-    }
-}u}(jt (66779380c83f5cb8ac2fd50cd7bc8d6f740296feju eatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractTransactionTest.javaju modifiedju KJju K j u KJj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X5  @@ -29,6 +29,7 @@
 import com.google.common.collect.Multimap;
 import com.google.common.collect.Multimaps;
 import com.google.common.collect.Ordering;
+import com.google.common.collect.Streams;
 import com.google.common.io.BaseEncoding;
 import com.google.common.primitives.UnsignedBytes;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -74,6 +75,7 @@
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Random;
 import java.util.Set;
 import java.util.SortedMap;
@@ -688,6 +690,78 @@ public void testRangesTransactionColumnSelection() {
         verifyAllGetRangesImplsRangeSizes(tx, range3, 0);
     }
 
+    @Test
+    public void getRangeRetainsOnlyRelevantColumnsFromLocalWrites() {
+        byte[] row = "row".getBytes(StandardCharsets.UTF_8);
+        byte[] firstColumn = "jakub".getBytes(StandardCharsets.UTF_8);
+        byte[] secondColumn = "james".getBytes(StandardCharsets.UTF_8);
+        byte[] thirdColumn = "jeremy".getBytes(StandardCharsets.UTF_8);
+        byte[] fourthColumn = "jolyon".getBytes(StandardCharsets.UTF_8);
+        Cell firstCell = Cell.create(row, firstColumn);
+        Cell secondCell = Cell.create(row, secondColumn);
+        Cell thirdCell = Cell.create(row, thirdColumn);
+        Cell fourthCell = Cell.create(row, fourthColumn);
+        byte[] value = new byte[1];
+
+        Transaction firstTransaction = startTransaction();
+        firstTransaction.put(TEST_TABLE, ImmutableMap.of(firstCell, value, fourthCell, value));
+        firstTransaction.commit();
+
+        Transaction secondTransaction = startTransaction();
+        secondTransaction.put(TEST_TABLE, ImmutableMap.of(secondCell, value, thirdCell, value));
+
+        BatchingVisitable<RowResult<byte[]>> rowResults = secondTransaction.getRange(
+                TEST_TABLE,
+                RangeRequest.builder()
+                        .retainColumns(ImmutableSet.of(firstColumn, secondColumn))
+                        .build());
+        List<Cell> cellsRead = BatchingVisitables.copyToList(rowResults).stream()
+                .map(RowResult::getCells)
+                .flatMap(Streams::stream)
+                .map(Entry::getKey)
+                .collect(Collectors.toList());
+        assertThat(cellsRead).containsExactly(firstCell, secondCell);
+    }
+
+    @Test
+    public void deprecatedGetRangesRetainsOnlyRelevantColumnsFromLocalWrites() {
+        byte[] row = "row".getBytes(StandardCharsets.UTF_8);
+        byte[] firstColumn = "jack".getBytes(StandardCharsets.UTF_8);
+        byte[] secondColumn = "jill".getBytes(StandardCharsets.UTF_8);
+        byte[] thirdColumn = "joel".getBytes(StandardCharsets.UTF_8);
+        byte[] fourthColumn = "juliet".getBytes(StandardCharsets.UTF_8);
+        Cell firstCell = Cell.create(row, firstColumn);
+        Cell secondCell = Cell.create(row, secondColumn);
+        Cell thirdCell = Cell.create(row, thirdColumn);
+        Cell fourthCell = Cell.create(row, fourthColumn);
+        byte[] value = new byte[1];
+
+        Transaction firstTransaction = startTransaction();
+        firstTransaction.put(TEST_TABLE, ImmutableMap.of(firstCell, value, fourthCell, value));
+        firstTransaction.commit();
+
+        Transaction secondTransaction = startTransaction();
+        secondTransaction.put(TEST_TABLE, ImmutableMap.of(secondCell, value, thirdCell, value));
+
+        Iterable<BatchingVisitable<RowResult<byte[]>>> visitables = secondTransaction.getRanges(
+                TEST_TABLE,
+                ImmutableList.of(
+                        RangeRequest.builder()
+                                .retainColumns(ImmutableSet.of(firstColumn))
+                                .build(),
+                        RangeRequest.builder()
+                                .retainColumns(ImmutableSet.of(secondColumn))
+                                .build()));
+        List<Cell> cellsRead = Streams.stream(visitables)
+                .map(BatchingVisitables::copyToList)
+                .flatMap(List::stream)
+                .map(RowResult::getCells)
+                .flatMap(Streams::stream)
+                .map(Entry::getKey)
+                .collect(Collectors.toList());
+        assertThat(cellsRead).containsExactly(firstCell, secondCell);
+    }
+
     @Test
     public void testRangePaging() {
         int totalPuts = 101;u}(jt (5cdcabaa8268eb540f0ccfc73d1fe1870eb88dadju Xatlasdb-tests-shared/src/main/java/com/palantir/timelock/paxos/InMemoryTimeLockRule.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimeLockRule.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimeLockRule.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimeLockRule.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -17,9 +17,9 @@
 package com.palantir.timelock.paxos;
 
 import com.palantir.atlasdb.keyvalue.api.watch.LockWatchManagerInternal;
-import com.palantir.atlasdb.timelock.AsyncTimelockResource;
 import com.palantir.atlasdb.timelock.AsyncTimelockService;
 import com.palantir.atlasdb.timelock.TimeLockServices;
+import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.lock.LockService;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.timestamp.ManagedTimestampService;
@@ -66,11 +66,6 @@ public LockService getLockService() {
         return services.getLockService();
     }
 
-    @Override
-    public AsyncTimelockResource getTimelockResource() {
-        return services.getTimelockResource();
-    }
-
     @Override
     public AsyncTimelockService getTimelockService() {
         return services.getTimelockService();
@@ -81,6 +76,11 @@ public TimestampManagementService getTimestampManagementService() {
         return services.getTimestampManagementService();
     }
 
+    @Override
+    public LockLog getLockLog() {
+        return services.getLockLog();
+    }
+
     public TimelockService getLegacyTimelockService() {
         return services.getLegacyTimelockService();
     }u}(jt (fd1072fee241e64f646b79a5c47f7f4c01826392ju \atlasdb-tests-shared/src/main/java/com/palantir/timelock/paxos/InMemoryTimelockServices.javaju modifiedju Kju K	j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FInMemoryTimelockServices.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X
  @@ -21,11 +21,11 @@
 import com.palantir.atlasdb.http.RedirectRetryTargeter;
 import com.palantir.atlasdb.keyvalue.api.LockWatchCachingConfig;
 import com.palantir.atlasdb.keyvalue.api.watch.LockWatchManagerInternal;
-import com.palantir.atlasdb.timelock.AsyncTimelockResource;
 import com.palantir.atlasdb.timelock.AsyncTimelockService;
 import com.palantir.atlasdb.timelock.ConjureTimelockResource;
 import com.palantir.atlasdb.timelock.TimeLockServices;
 import com.palantir.atlasdb.timelock.api.ConjureTimelockService;
+import com.palantir.atlasdb.timelock.lock.LockLog;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.conjure.java.api.config.service.PartialServiceConfiguration;
@@ -57,7 +57,6 @@
 import com.palantir.timestamp.ManagedTimestampService;
 import com.palantir.timestamp.TimestampManagementService;
 import com.palantir.timestamp.TimestampService;
-import com.palantir.tokens.auth.BearerToken;
 import java.io.Closeable;
 import java.io.File;
 import java.io.IOException;
@@ -73,7 +72,6 @@ public final class InMemoryTimelockServices extends ExternalResource implements
     private static final String USER_AGENT_NAME = "user-agent";
     private static final String USER_AGENT_VERSION = "3.1415926.5358979";
     private static final UserAgent USER_AGENT = UserAgent.of(UserAgent.Agent.of(USER_AGENT_NAME, USER_AGENT_VERSION));
-    private static final BearerToken BEARER_TOKEN = BearerToken.valueOf("test-token");
     private static final int THREAD_POOL_SIZE = 128;
     private static final int BLOCKING_TIMEOUT_MS = 60 * 800; // 0.8 mins to ms
 
@@ -121,7 +119,6 @@ protected void before() throws IOException {
                 .cluster(PartialServiceConfiguration.of(List.of("local"), Optional.empty()))
                 .build();
         TimeLockRuntimeConfiguration runtime = ImmutableTimeLockRuntimeConfiguration.builder()
-                .permittedBackupToken(BEARER_TOKEN)
                 .clusterSnapshot(clusterConfig)
                 .build();
 
@@ -208,11 +205,6 @@ public LockService getLockService() {
         return delegate.getLockService();
     }
 
-    @Override
-    public AsyncTimelockResource getTimelockResource() {
-        return delegate.getTimelockResource();
-    }
-
     @Override
     public AsyncTimelockService getTimelockService() {
         return delegate.getTimelockService();
@@ -223,6 +215,11 @@ public TimestampManagementService getTimestampManagementService() {
         return delegate.getTimestampManagementService();
     }
 
+    @Override
+    public LockLog getLockLog() {
+        return delegate.getLockLog();
+    }
+
     public ManagedTimestampService getManagedTimestampService() {
         return delegate.getTimelockService();
     }u}(jt (b477ac45a67d3461a2afb8a529c94e3055b5291cju \atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/factory/TransactionManagersTest.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagersTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -165,7 +165,7 @@ public class TransactionManagersTest {
     private AtlasDbConfig config;
     private AtlasDbRuntimeConfig mockAtlasDbRuntimeConfig;
 
-    private Consumer<Object> environment;
+    private Consumer<Object> registrar;
     private TimestampStoreInvalidator invalidator;
     private Consumer<Runnable> originalAsyncMethod;
 
@@ -208,7 +208,7 @@ public void setUp() {
         when(mockAtlasDbRuntimeConfig.timelockRuntime()).thenReturn(Optional.empty());
         when(mockAtlasDbRuntimeConfig.remotingClient()).thenReturn(RemotingClientConfigs.DEFAULT);
 
-        environment = mock(Consumer.class);
+        registrar = mock(Consumer.class);
 
         invalidator = mock(TimestampStoreInvalidator.class);
         when(invalidator.backupAndInvalidate()).thenReturn(EMBEDDED_BOUND);
@@ -236,7 +236,7 @@ public void cannotProvideRuntimeConfigTwice() {
                         .userAgent(USER_AGENT)
                         .globalMetricsRegistry(new MetricRegistry())
                         .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                        .registrar(environment)
+                        .registrar(registrar)
                         .runtimeConfig(Refreshable.only(Optional.empty()))
                         .runtimeConfigSupplier(Optional::empty)
                         .build())
@@ -351,7 +351,7 @@ public void setsGlobalDefaultLockTimeout() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build()
                 .serializable();
 
@@ -412,7 +412,7 @@ public void runsClosingCallbackOnShutdown() throws Exception {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build()
                 .serializable();
         manager.registerClosingCallback(callback);
@@ -432,7 +432,7 @@ public void keyValueServiceMetricsDoNotContainUserAgent() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build()
                 .serializable();
         assertThat(metrics.getNames().stream().anyMatch(metricName -> metricName.contains(USER_AGENT_NAME)))
@@ -453,7 +453,7 @@ public void overriddenServiceNameIsReturned() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .serviceIdentifierOverride("overriden")
                 .build();
 
@@ -473,7 +473,7 @@ public void serviceNameIsFetchedFromAtlasConfig() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build();
         assertThat(transactionManagers.serviceName()).isEqualTo("namespace");
     }
@@ -493,7 +493,7 @@ public void serviceNameIsFetchedFromKvsConfigWhenItIsNotPresentInAtlasConfig() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build();
 
         assertThat(transactionManagers.serviceName()).isEqualTo("namespace");
@@ -510,7 +510,7 @@ public void serviceNameFallsBackToDefaultWhenNamespaceIsNotPresent() {
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(metrics)
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .build();
 
         assertThat(transactionManagers.serviceName()).isEqualTo("UNKNOWN");
@@ -520,7 +520,7 @@ public void serviceNameFallsBackToDefaultWhenNamespaceIsNotPresent() {
     public void interruptingLocalLeaderElectionTerminates() throws IOException {
         Leaders.LocalPaxosServices localPaxosServices = Leaders.createAndRegisterLocalServices(
                 metricsManager,
-                environment,
+                registrar,
                 ImmutableLeaderConfig.builder()
                         .localServer("https://example")
                         .quorumSize(1)
@@ -593,7 +593,7 @@ private TransactionManagers withLockImmutableTsOnReadOnlyTransaction(boolean opt
                 .userAgent(USER_AGENT)
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .lockImmutableTsOnReadOnlyTransactions(option)
                 .build();
     }
@@ -699,7 +699,7 @@ private KeyValueService initializeKeyValueServiceWithSweepSettings(boolean enabl
                 .userAgent(UserAgent.of(UserAgent.Agent.of("test", "0.0.0")))
                 .globalMetricsRegistry(new MetricRegistry())
                 .globalTaggedMetricRegistry(DefaultTaggedMetricRegistry.getDefault())
-                .registrar(environment)
+                .registrar(registrar)
                 .addSchemas(GenericTestSchema.getSchema())
                 .runtimeConfigSupplier(() -> Optional.of(atlasDbRuntimeConfig))
                 .build()
@@ -762,7 +762,7 @@ private void setUpForLocalServices() throws IOException {
                             .withBody(("\"" + localPingableLeader.getUUID() + "\"").getBytes(StandardCharsets.UTF_8))));
                     return null;
                 })
-                .when(environment)
+                .when(registrar)
                 .accept(isA(PingableLeader.class));
         setUpLeaderBlockInConfig();
     }
@@ -807,7 +807,7 @@ private LockAndTimestampServices getLockAndTimestampServices() {
                         metricsManager,
                         config,
                         Refreshable.only(mockAtlasDbRuntimeConfig),
-                        environment,
+                        registrar,
                         LockServiceImpl::create,
                         () -> ts,
                         invalidator,u}(jt (e9b3bf84422527fc3610b1c4f3a66cdf9ea2c8b8ju eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaju modifiedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aV     j'u X  @@ -1388,7 +1388,7 @@ public void getRowsColumnRangeIteratorHandlesLocalWrites() {
                     .toMap();
         });
         assertThat(cells)
-                .isEqualTo(ImmutableMap.of(
+                .containsExactlyInAnyOrderEntriesOf(ImmutableMap.of(
                         row1,
                         ImmutableList.of(firstRowFirstColumn, firstRowSecondColumn),
                         row2,u}(jt (065284f020ede2cc6279444cf58d921a7a7e099fju hatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/service/TransactionServicesTest.javaju modifiedju Kju Kj u K
j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionServicesTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionServicesTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionServicesTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -191,7 +191,7 @@ public void canReadInProgressStatusV4Transaction() {
         initializeTimestamps();
         transactionService.markInProgress(startTs);
         assertThat(transactionService.get(startTs)).isNull();
-        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatuses.inProgress());
+        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Test
@@ -216,8 +216,8 @@ public void canCommitV4Transaction() {
 
         TwoPhaseEncodingStrategy strategy = new TwoPhaseEncodingStrategy(V4ProgressEncodingStrategy.INSTANCE);
         Cell cell = strategy.encodeStartTimestampAsCell(startTs);
-        byte[] update = strategy.encodeCommitStatusAsValue(
-                startTs, AtomicValue.staging(TransactionStatuses.committed(commitTs)));
+        byte[] update =
+                strategy.encodeCommitStatusAsValue(startTs, AtomicValue.staging(TransactionStatus.committed(commitTs)));
 
         MultiCheckAndSetRequest actualMcasRequest = verifyMcasInTableAndReturnArgument();
         assertThat(actualMcasRequest.tableRef()).isEqualTo(TransactionConstants.TRANSACTIONS2_TABLE);
@@ -244,14 +244,14 @@ public void canReadCommittedV4Transaction() {
     public void emptyValueReadsAsInProgressInV3() {
         forceInstallV3();
         initializeTimestamps();
-        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatuses.inProgress());
+        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Test
     public void emptyValueReadsAsUnknownInV4() {
         forceInstallV4();
         initializeTimestamps();
-        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatuses.unknown());
+        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatus.unknown());
     }
 
     private void initializeTimestamps() {u}(jt (d1bf1debf194d0e7d439b60289e1831101bbfa6fju -atlasdb-workload-server-antithesis/Dockerfileju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-antithesis%2FDockerfilej#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-antithesis%2FDockerfilej%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2FDockerfile?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u n@@ -0,0 +1,4 @@
+FROM scratch
+MAINTAINER AtlasDB Team
+
+ADD docker-compose.yml /
\ No newline at end of fileu}(jt (3fe03f84c4a9ef10137f13d2f0bfe773525ba2b7ju /atlasdb-workload-server-antithesis/build.gradleju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-antithesis%2Fbuild.gradlej#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-antithesis%2Fbuild.gradlej%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fbuild.gradle?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,11 @@
+apply plugin: 'com.palantir.docker'
+apply from: "../gradle/shared.gradle"
+apply from: "../gradle/non-client-dist.gradle"
+
+def imageVersion = "${project.version.toString().replaceAll('\\+', '-')}"
+
+docker {
+    name "palantirtechnologies/${project.name}:${imageVersion}"
+    tags 'latest', 'snapshot'
+    files 'var/docker-compose.yml'
+}
\ No newline at end of fileu}(jt (8fc45b8b9ddc37ded24af638207557f822511685ju 1atlasdb-workload-server-antithesis/var/compact.shju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.shj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fcompact.sh?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,19 @@
+#!/bin/bash
+
+##
+# (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool compact'¡
\ No newline at end of fileu}(jt (0d1f2696fe20c1f1abb4c94f88cae6650478d2b8ju 9atlasdb-workload-server-antithesis/var/docker-compose.ymlju addedju K{ju K j u K{j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,123 @@
+version: '2'
+
+services:
+  cassandra1:
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+    ports:
+      - "9160"
+      - "9042"
+      - "7199"
+    environment:
+      - CASSANDRA_SEEDS=cassandra1,cassandra2,cassandra3
+      - CASSANDRA_ENDPOINT_SNITCH=PropertyFileSnitch
+      - MAX_HEAP_SIZE=512m
+      - HEAP_NEWSIZE=64m
+      - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
+    container_name: cassandra1
+    volumes:
+      - /opt/config/volumes/cassandra1:/var/lib/cassandra
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.2
+
+  cassandra2:
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+    ports:
+      - "9160"
+      - "9042"
+      - "7199"
+    environment:
+      - CASSANDRA_SEEDS=cassandra1,cassandra2,cassandra3
+      - CASSANDRA_ENDPOINT_SNITCH=PropertyFileSnitch
+      - MAX_HEAP_SIZE=512m
+      - HEAP_NEWSIZE=64m
+      - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
+    container_name: cassandra2
+    volumes:
+      - /opt/config/volumes/cassandra2:/var/lib/cassandra
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.3
+
+  cassandra3:
+    image: palantirtechnologies/cassandra:2.2.18-1.112.0-rc5
+    ports:
+      - "9160"
+      - "9042"
+      - "7199"
+    environment:
+      - CASSANDRA_SEEDS=cassandra1,cassandra2,cassandra3
+      - CASSANDRA_ENDPOINT_SNITCH=PropertyFileSnitch
+      - MAX_HEAP_SIZE=512m
+      - HEAP_NEWSIZE=64m
+      - LOCAL_JMX=no
+      - CASSANDRA_HINTED_HANDOFF_ENABLED=false
+    container_name: cassandra3
+    volumes:
+      - /opt/config/volumes/cassandra3:/var/lib/cassandra
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.4
+
+  timelock1.palantir.pt:
+    image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [ bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
+    ports:
+      - "8421"
+      - "8422"
+    container_name: timelock1.palantir.pt
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.5
+
+  timelock2.palantir.pt:
+    image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [ bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
+    ports:
+      - "8421"
+      - "8422"
+    container_name: timelock2.palantir.pt
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.6
+
+  timelock3.palantir.pt:
+    image: palantirtechnologies/timelock-server-distribution:unspecified
+    command: [bash, -c, 'cp var/conf/timelock.distributed.yml var/conf/timelock.yml  
+                          && service/bin/init.sh console' ]
+    ports:
+      - "8421"
+      - "8422"
+    container_name: timelock3.palantir.pt
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.7
+
+
+  workload-server:
+    image: palantirtechnologies/atlasdb-workload-server-distribution:unspecified
+    command: [bash, -c, 'cp var/conf/workload-server.timelock.cassandra.yml var/conf/workload-server.yml
+                         && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160
+                         && service/bin/init.sh console']
+    container_name: workload-server
+    depends_on:
+      - cassandra1
+      - cassandra2
+      - cassandra3
+      - timelock1.palantir.pt
+      - timelock2.palantir.pt
+      - timelock3.palantir.pt
+    networks:
+      antithesis-net:
+        ipv4_address: 10.20.20.8
+
+networks:
+  antithesis-net:
+    driver: bridge
+    ipam:
+      config:
+        - subnet: 10.20.20.0/24
\ No newline at end of fileu}(jt (507c4267b553dffafece23d33ad88df6fd5f4bb2ju /atlasdb-workload-server-antithesis/var/flush.shju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-antithesis%2Fvar%2Fflush.shj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fflush.sh?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,19 @@
+#!/bin/bash
+
+##
+# (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+podman exec $1 bash -c 'palantir-cassandra-*/bin/nodetool flush'
\ No newline at end of fileu}(jt (b7485353a77f6bf0cd6c937bff58416577e13b1dju (atlasdb-workload-server-api/build.gradleju addedju Kju K j u Kj!u |https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fbuild.gradlej#u {https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fbuild.gradlej%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fbuild.gradle?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,17 @@
+apply from: "../gradle/shared.gradle"
+
+dependencies {
+    api 'io.vavr:vavr'
+
+    implementation 'com.fasterxml.jackson.core:jackson-annotations'
+    implementation 'com.fasterxml.jackson.core:jackson-core'
+    implementation 'com.fasterxml.jackson.core:jackson-databind'
+    implementation 'com.palantir.safe-logging:preconditions'
+    implementation 'com.google.guava:guava'
+
+    compileOnly 'org.immutables:value::annotations'
+    annotationProcessor 'org.immutables:value'
+
+    testImplementation 'com.palantir.safe-logging:preconditions-assertj'
+    testImplementation 'org.mockito:mockito-core'
+}
\ No newline at end of fileu}(jt (9341ade66f468191734830b7f9339ad48f69d5d1ju `atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/Invariant.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariant.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariant.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariant.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u Xf  @@ -0,0 +1,27 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+
+/**
+ * Check for an invariant given the provided {@link WorkflowHistory},
+ * and call the provided consumer after checking if any violations are detected.
+ */
+public interface Invariant<Violations> extends BiConsumer<WorkflowHistory, Consumer<Violations>> {}u}(jt (e7305ade35c915bb53a9c53289a6a434cfb626dbju hatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/InvariantReporter.javaju addedju K#ju K j u K#j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariantReporter.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariantReporter.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariantReporter.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.function.Consumer;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvariantReporter<ViolationsT> {
+
+    @Value.Parameter
+    Invariant<ViolationsT> invariant();
+
+    @Value.Parameter
+    Consumer<ViolationsT> consumer();
+
+    default void report(WorkflowHistory history) {
+        invariant().accept(history, consumer());
+    }
+}u}(jt (60ba075ecd63d073e9efed58b8eff668e319f9a2ju fatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/MismatchedValue.javaju addedju K,ju K j u K,j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface MismatchedValue {
+    @Value.Parameter
+    Optional<Integer> actual();
+
+    @Value.Parameter
+    Optional<Integer> expected();
+
+    @Value.Check
+    default void actualAndExpectedAreNotEqualToEachOther() {
+        Preconditions.checkArgument(
+                !actual().equals(expected()),
+                "Cannot construct MismatchedValues for two values which are equal.",
+                SafeArg.of("actual", actual()),
+                SafeArg.of("expected", expected()));
+    }
+
+    static MismatchedValue of(Optional<Integer> actual, Optional<Integer> expected) {
+        return ImmutableMismatchedValue.of(actual, expected);
+    }
+}u}(jt (e413798427db97d025ad85b9f49ea4d26c076e02ju natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/resource/CassandraSidecarResource.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FCassandraSidecarResource.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,29 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.resource;
+
+public interface CassandraSidecarResource {
+    /**
+     * Asynchronous method that flushes all keyspaces on a Cassandra host.
+     */
+    void flush(String host);
+
+    /**
+     * Asynchronous method that performs a major compaction for all keyspaces on Cassandra.
+     */
+    void compact(String host);
+}u}(jt (74577176782254379012e1999cadb8c1ea4b8edcju ]atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/IndexTable.javaju addedju K,ju K j u K,j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTable.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTable.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTable.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface IndexTable {
+
+    @Value.Parameter
+    String indexTableName();
+
+    @Value.Parameter
+    String primaryTableName();
+
+    @Value.Check
+    default void checkNameAndPrimaryTableAreNotEqual() {
+        Preconditions.checkArgument(
+                !indexTableName().equalsIgnoreCase(primaryTableName()),
+                "Index table name and primary table name are identical.",
+                SafeArg.of("name", indexTableName()),
+                SafeArg.of("primaryTable", primaryTableName()));
+    }
+
+    static ImmutableIndexTable.Builder builder() {
+        return ImmutableIndexTable.builder();
+    }
+}u}(jt (d9abc2f2c00a1ff33edf1dbcaefbf672fcd91ad1ju natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/InteractiveTransactionStore.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.Optional;
+import java.util.function.Consumer;
+
+public interface InteractiveTransactionStore extends TransactionStore {
+    /**
+     * Provides a convenient interface for interacting with a transaction, and having each action recorded.
+     * @param interactiveTransactionConsumer Consumer which performs gets/puts/deletes
+     * @return The witnessed transaction, if successfully committed.
+     */
+    Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer);
+}u}(jt (360fb590830275fb2bcc053744705e446a7931faju aatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/IsolationLevel.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIsolationLevel.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIsolationLevel.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIsolationLevel.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,23 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+public enum IsolationLevel {
+    SERIALIZABLE,
+    SNAPSHOT,
+    NONE;
+}u}(jt (72396cbd183a5589ac7b3cf6593e07b9c5de2fd0ju katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ReadableTransactionStore.javaju addedju K$ju K j u K$j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XN  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import java.util.Optional;
+
+public interface ReadableTransactionStore {
+    /**
+     * Perform a read for a given row and return a cell if it exists.
+     * Ideally this endpoint is only used for verification purposes, as it does not return a witnessed transaction.
+     *
+     * @param table Table to read from
+     * @param cell Cell to read from
+     * @return The value of the cell for a given table.
+     */
+    Optional<Integer> get(String table, WorkloadCell cell);
+
+    /**
+     * Checks whether the transaction with the provided startTimestamp has committed.
+     */
+    boolean isCommitted(long startTimestamp);
+}u}(jt (e052c88622c80f46ac62138a0ae4f3f6f267d5d7ju gatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TableAndWorkloadCell.javaju addedju K$ju K j u K$j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTableAndWorkloadCell.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTableAndWorkloadCell.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTableAndWorkloadCell.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import org.immutables.value.Value;
+
+/**
+ * Convenient class which combines table name and cell, for convenient usage in {@link java.util.Map} or other similar interfaces.
+ */
+@Value.Immutable
+public interface TableAndWorkloadCell {
+
+    @Value.Parameter
+    String tableName();
+
+    @Value.Parameter
+    WorkloadCell cell();
+
+    static TableAndWorkloadCell of(String tableName, WorkloadCell workloadCell) {
+        return ImmutableTableAndWorkloadCell.of(tableName, workloadCell);
+    }
+}u}(jt (8d96b166fe052e818ea2430f7bd5ae5fbe29f426ju catlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStore.javaju addedju K$ju K j u K$j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStore.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.List;
+import java.util.Optional;
+
+/**
+ * A transactional store for the workload server to read/write from.
+ */
+public interface TransactionStore extends ReadableTransactionStore {
+    /**
+     * Performs a list of transaction actions in order, and returns the transaction executed if it committed
+     * successfully.
+     *
+     * @param actions List of transaction actions (read/write/delete) to be executed in order.
+     * @return The witnessed transaction, if successfully committed.
+     */
+    Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions);
+}u}(jt (9a3b7a7060c8f72d6a97bc2c347571b698b81c47ju jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStoreFactory.javaju renamedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X3  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2020 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,14 +14,14 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.timelock.management;
+package com.palantir.atlasdb.workload.store;
 
-import com.palantir.paxos.Client;
+import java.util.Map;
 import java.util.Set;
 
-public class DatabaseNamespaceLoader implements PersistentNamespaceLoader {
-    @Override
-    public Set<Client> getAllPersistedNamespaces() {
-        throw new UnsupportedOperationException("Loading all namespaces from the database is not supported yet!");
-    }
+/**
+ * Creates transaction stores of a certain type which are bounded to the provided tables/indexes.
+ */
+public interface TransactionStoreFactory<T extends TransactionStore> {
+    T create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
 }jw atimelock-impl/src/main/java/com/palantir/atlasdb/timelock/management/DatabaseNamespaceLoader.javau}(jt (b7286928106b877bf88cb2eb9d1a7c176af42092ju batlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ValidationStore.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X|  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import io.vavr.collection.Map;
+import java.util.Optional;
+
+/**
+ * Store used for replaying witnessed transactions, and ultimately being used as the 'source-of-truth' when validating
+ * our {@link TransactionStore}.
+ */
+public interface ValidationStore {
+
+    /** Return all cells and values for all tables. Value is expected to be empty for deleted cells. */
+    Map<TableAndWorkloadCell, Optional<Integer>> values();
+}u}(jt (2fe787f4f3f865c6ba129185b77dde55ea84f540ju _atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/WorkloadCell.javaju addedju K"ju K j u K"j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FWorkloadCell.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FWorkloadCell.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FWorkloadCell.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X.  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import org.immutables.value.Value;
+
+/**
+ * Cells generated by the workload service.
+ * Columns/values are expected to be random integers.
+ *
+ * Schema: Key[Integer], Column[Integer], Value[Integer].
+ */
+@Value.Immutable
+public interface WorkloadCell {
+    @Value.Parameter
+    Integer key();
+
+    @Value.Parameter
+    Integer column();
+}u}(jt (3bd49661e70b87286ba38152d181bec2a3de5d80ju patlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/DeleteTransactionAction.javaju addedju K'ju K j u K'j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FDeleteTransactionAction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,39 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import org.immutables.value.Value;
+
+@Value.Immutable(builder = false)
+public interface DeleteTransactionAction extends TransactionAction {
+
+    default WitnessedDeleteTransactionAction witness() {
+        return ImmutableWitnessedDeleteTransactionAction.of(table(), cell());
+    }
+
+    @Override
+    default <T> T accept(TransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static DeleteTransactionAction of(String table, WorkloadCell cell) {
+        return ImmutableDeleteTransactionAction.of(table, cell);
+    }
+}u}(jt (4f80972ed51d1ca703c845e6db8af278009a14f3ju oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javaju addedju K#ju K j u K#j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import java.util.List;
+import java.util.Optional;
+
+/**
+ * Allows for convenient interaction with a transactional store.
+ */
+public interface InteractiveTransaction {
+    Optional<Integer> read(String table, WorkloadCell workloadCell);
+
+    void write(String table, WorkloadCell workloadCell, Integer value);
+
+    void delete(String table, WorkloadCell workloadCell);
+
+    List<WitnessedTransactionAction> witness();
+}u}(jt (c0ff0611ee15ce841cb508124e35b5b83caf77d7ju natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/ReadTransactionAction.javaju addedju K(ju K j u K(j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FReadTransactionAction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XD  @@ -0,0 +1,40 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable(builder = false)
+public interface ReadTransactionAction extends TransactionAction {
+
+    default WitnessedReadTransactionAction witness(Optional<Integer> value) {
+        return ImmutableWitnessedReadTransactionAction.of(table(), cell(), value);
+    }
+
+    @Override
+    default <T> T accept(TransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ReadTransactionAction of(String table, WorkloadCell workloadCell) {
+        return ImmutableReadTransactionAction.of(table, workloadCell);
+    }
+}u}(jt (54d5d701f5aa99fcb88cceb476aa934dbf7c0727ju jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionAction.javaju addedju K!ju K j u K!j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionAction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XV  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface TransactionAction {
+
+    /** Table to apply transaction to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) to apply the action to. */
+    @Value.Parameter
+    WorkloadCell cell();
+
+    <T> T accept(TransactionActionVisitor<T> visitor);
+}u}(jt (8328863a731368d08645d8ca56d825728ac5a5beju qatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/TransactionActionVisitor.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FTransactionActionVisitor.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,25 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+public interface TransactionActionVisitor<T> {
+    T visit(ReadTransactionAction readTransactionAction);
+
+    T visit(WriteTransactionAction writeTransactionAction);
+
+    T visit(DeleteTransactionAction deleteTransactionAction);
+}u}(jt (62d581dfef3d567aa32abc5da5108439f0b84808ju oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/WriteTransactionAction.javaju addedju K9ju K j u K9j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWriteTransactionAction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XV  @@ -0,0 +1,57 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WriteTransactionAction extends TransactionAction {
+
+    @Override
+    @Value.Parameter
+    String table();
+
+    @Override
+    @Value.Parameter
+    WorkloadCell cell();
+
+    /**
+     * Value for the given cell.
+     */
+    @Value.Parameter
+    Integer value();
+
+    @Override
+    default <T> T accept(TransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    default WitnessedWriteTransactionAction witness() {
+        return ImmutableWitnessedWriteTransactionAction.builder()
+                .table(table())
+                .cell(cell())
+                .value(value())
+                .build();
+    }
+
+    static WriteTransactionAction of(String table, WorkloadCell cell, Integer value) {
+        return ImmutableWriteTransactionAction.of(table, cell, value);
+    }
+}u}(jt (574a86c53458c2bbb5f43c19c269eb2ee52679c7ju |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/FullyWitnessedTransaction.javaju addedju K"ju K j u K"j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we know for certain we've witnessed.
+ */
+@Value.Immutable
+public interface FullyWitnessedTransaction extends WitnessedTransaction {
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableFullyWitnessedTransaction.Builder builder() {
+        return ImmutableFullyWitnessedTransaction.builder();
+    }
+}u}(jt (f311e643064907dd8eeece7fe8fe0069efe51f4eju ~atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransaction.javaju addedju K"ju K j u K"j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransaction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedTransaction {
+    @Value.Parameter
+    WitnessedTransaction transaction();
+
+    @Value.Parameter
+    List<InvalidWitnessedTransactionAction> invalidActions();
+
+    static InvalidWitnessedTransaction of(
+            WitnessedTransaction witnessedTransaction, List<InvalidWitnessedTransactionAction> invalidActions) {
+        return ImmutableInvalidWitnessedTransaction.of(witnessedTransaction, invalidActions);
+    }
+}u}(jt (13fc2568c111b1ef3b542238490857c5d0b5acb9ju atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/InvalidWitnessedTransactionAction.javaju addedju K!ju K j u K!j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FInvalidWitnessedTransactionAction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.invariant.MismatchedValue;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface InvalidWitnessedTransactionAction {
+    @Value.Parameter
+    WitnessedTransactionAction action();
+
+    @Value.Parameter
+    MismatchedValue mismatchedValue();
+
+    static InvalidWitnessedTransactionAction of(WitnessedTransactionAction action, MismatchedValue mismatchedValue) {
+        return ImmutableInvalidWitnessedTransactionAction.of(action, mismatchedValue);
+    }
+}u}(jt (5a66280426c78d83ed7001fc4ee1aebb894f7578ju |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransaction.javaju addedju K4ju K j u K4j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.logsafe.Preconditions;
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we witnessed, but are in a state which we are
+ * unsure if they have committed or not due to failures.
+ */
+@Value.Immutable
+public interface MaybeWitnessedTransaction extends WitnessedTransaction {
+    @Value.Check
+    default void check() {
+        Preconditions.checkArgument(
+                commitTimestamp().isPresent(),
+                "Given how the transaction protocol works, a transaction for which we haven't retrieved the commit "
+                        + "timestamp has not written anything of significance to the database");
+    }
+
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableMaybeWitnessedTransaction.Builder builder() {
+        return ImmutableMaybeWitnessedTransaction.builder();
+    }
+
+    default FullyWitnessedTransaction toFullyWitnessed() {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(startTimestamp())
+                .commitTimestamp(commitTimestamp())
+                .actions(actions())
+                .build();
+    }
+}u}(jt (e6c4dc4d9b3ad93755335cee582e67faeeaaa372ju atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedDeleteTransactionAction.javaju addedju K!ju K j u K!j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedDeleteTransactionAction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+@Value.Immutable(builder = false)
+public interface WitnessedDeleteTransactionAction extends WitnessedTransactionAction {
+
+    @Override
+    default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static WitnessedDeleteTransactionAction of(String table, WorkloadCell cell) {
+        return ImmutableWitnessedDeleteTransactionAction.of(table, cell);
+    }
+}u     }(jt (b677db617ab276daaecfeeb894a56f50b5b1101cju atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedReadTransactionAction.javaju addedju K.ju K j u K.j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedReadTransactionAction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X   @@ -0,0 +1,46 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable(builder = false)
+public interface WitnessedReadTransactionAction extends WitnessedTransactionAction {
+
+    @Override
+    @Value.Parameter
+    String table();
+
+    @Override
+    @Value.Parameter
+    WorkloadCell cell();
+
+    /** Value of the cell from the row read. Empty if it does not exist. */
+    @Value.Parameter
+    Optional<Integer> value();
+
+    @Override
+    default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static WitnessedReadTransactionAction of(String table, WorkloadCell cell, Optional<Integer> value) {
+        return ImmutableWitnessedReadTransactionAction.of(table, cell, value);
+    }
+}u}(jt (525e82582d3affac4608bebfe366141f3088a716ju watlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransaction.javaju addedju K!ju K j u K!j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import java.util.List;
+import java.util.Optional;
+
+public interface WitnessedTransaction {
+    /** Start timestamp of the transaction. */
+    long startTimestamp();
+
+    /** Commit timestamp of the transaction. */
+    Optional<Long> commitTimestamp();
+
+    /** Provides an in-order list of actions that were performed during the transaction's execution. */
+    List<WitnessedTransactionAction> actions();
+
+    <T> T accept(WitnessedTransactionVisitor<T> visitor);
+}u}(jt (3fba4c9b7f76d429f19c5a8b4ebb5fda5d158855ju }atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionAction.javaju addedju K!ju K j u K!j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionAction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u Xo  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+public interface WitnessedTransactionAction {
+
+    /** Table action was applied to. */
+    @Value.Parameter
+    String table();
+
+    /** Cell (Key, Column) the action applied to. */
+    @Value.Parameter
+    WorkloadCell cell();
+
+    <T> T accept(WitnessedTransactionActionVisitor<T> visitor);
+}u}(jt (0e326dc182a7cde57ab200a3b5937c5f702700ceju atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionActionVisitor.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionActionVisitor.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,25 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+public interface WitnessedTransactionActionVisitor<T> {
+    T visit(WitnessedReadTransactionAction readTransactionAction);
+
+    T visit(WitnessedWriteTransactionAction writeTransactionAction);
+
+    T visit(WitnessedDeleteTransactionAction deleteTransactionAction);
+}u}(jt (33682bf649e7b87408367a7f23d4995c94c96d98ju ~atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionVisitor.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,23 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+public interface WitnessedTransactionVisitor<T> {
+    T visit(FullyWitnessedTransaction witnessedTransaction);
+
+    T visit(MaybeWitnessedTransaction maybeWitnessedTransaction);
+}u}(jt (44dff33558850b4861ebbb4ab161e2dadfaf5816ju atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedWriteTransactionAction.javaju addedju K/ju K j u K/j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedWriteTransactionAction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,47 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WitnessedWriteTransactionAction extends WitnessedTransactionAction {
+
+    @Override
+    @Value.Parameter
+    String table();
+
+    @Override
+    @Value.Parameter
+    WorkloadCell cell();
+
+    /**
+     * Value for the given cell.
+     */
+    @Value.Parameter
+    Integer value();
+
+    @Override
+    default <T> T accept(WitnessedTransactionActionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static WitnessedWriteTransactionAction of(String table, WorkloadCell cell, Integer value) {
+        return ImmutableWitnessedWriteTransactionAction.of(table, cell, value);
+    }
+}u}(jt (0af0f463fb79115401361fa63b2a86fc5fbbe84fju jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/KeyedTransactionTask.javaju addedju K"ju K j u K"j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FKeyedTransactionTask.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X?  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.Optional;
+import java.util.function.BiFunction;
+
+/**
+ * A task that performs some operations on a {@link TransactionStore}, possibly using the index of the task
+ * as an input, and returns an {@link Optional} of {@link WitnessedTransaction}. Here, "index" refers to an integer
+ * between 0 and the {@link WorkflowConfiguration#iterationCount()} - each copy of the task will receive a different
+ * integer.
+ * If the transaction does not succeed, then the task should return an {@link Optional#empty()}. It should not throw
+ * an exception.
+ */
+@FunctionalInterface
+public interface KeyedTransactionTask<T extends TransactionStore>
+        extends BiFunction<T, Integer, Optional<WitnessedTransaction>> {}u}(jt (f3b4e04f4d4358c82e503f82cffa59f41a139357ju hatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/TableConfiguration.javaju renamedju Kju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTableConfiguration.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X/  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,24 +14,18 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.backup;
+package com.palantir.atlasdb.workload.workflow;
 
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.palantir.atlasdb.backup.api.AtlasService;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
 import org.immutables.value.Value;
 
-@JsonDeserialize(as = ImmutableRestoreRequest.class)
-@JsonSerialize(as = ImmutableRestoreRequest.class)
 @Value.Immutable
-public interface RestoreRequest {
-    AtlasService oldAtlasService();
+@JsonSerialize(as = ImmutableTableConfiguration.class)
+@JsonDeserialize(as = ImmutableTableConfiguration.class)
+public interface TableConfiguration {
+    String tableName();
 
-    AtlasService newAtlasService();
-
-    class Builder extends ImmutableRestoreRequest.Builder {}
-
-    static Builder builder() {
-        return new Builder();
-    }
+    IsolationLevel isolationLevel();
 }jw Latlasdb-backup/src/main/java/com/palantir/atlasdb/backup/RestoreRequest.javau}(jt (65d3983ff664082fe5b4995c46765f9b36f47deeju ^atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/Workflow.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflow.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,27 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+public interface Workflow {
+    /**
+     * Runs desired workflow until completion. Returns {@link WorkflowHistory}, that corresponds to transactions that
+     * were known to be completed.
+     * This list is sorted by ascending "timeline timestamp", which is taken to be the commit timestamp in the case
+     * of read-write transactions, and the start timestamp in the case of read-only transactions.
+     */
+    WorkflowHistory run();
+}u}(jt (521eb86ec62e39c42dea4234b11b2f742d9a8e1dju katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowAndInvariants.javaju addedju K-ju K j u K-j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowAndInvariants.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import java.util.Arrays;
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WorkflowAndInvariants<WorkflowTypeT extends Workflow> {
+    @Value.Parameter
+    WorkflowTypeT workflow();
+
+    @Value.Parameter
+    List<InvariantReporter<?>> invariantReporters();
+
+    static <WorkflowTypeT extends Workflow> WorkflowAndInvariants<WorkflowTypeT> of(
+            WorkflowTypeT workflow, List<InvariantReporter<?>> invariants) {
+        return ImmutableWorkflowAndInvariants.of(workflow, invariants);
+    }
+
+    static <WorkflowTypeT extends Workflow> WorkflowAndInvariants<WorkflowTypeT> of(
+            WorkflowTypeT workflow, InvariantReporter<?>... invariants) {
+        return ImmutableWorkflowAndInvariants.of(workflow, Arrays.asList(invariants));
+    }
+
+    static <WorkflowTypeT extends Workflow> ImmutableWorkflowAndInvariants.Builder<WorkflowTypeT> builder() {
+        return ImmutableWorkflowAndInvariants.builder();
+    }
+}u}(jt (47b4109802a3529a585cdba06bb50cbe3fb2a098ju katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowConfiguration.javaju addedju K#ju K j u K#j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X`  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import org.immutables.value.Value;
+
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
+public interface WorkflowConfiguration {
+    int iterationCount();
+
+    @Value.Default
+    default double rateLimit() {
+        return 100;
+    }
+
+    @Value.Default
+    default Integer maxThreadCount() {
+        return 100;
+    }
+}u}(jt (ffbc895344923f90f2a9fbedaca2f32929339b6cju eatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowHistory.javaju addedju K#ju K j u K#j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XA  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WorkflowHistory {
+    // We may want to query the KVS during verification.
+    ReadableTransactionStore transactionStore();
+
+    /**
+     * TODO: This should only be a list of
+     * {@link com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction} rather than the general
+     * purpose type.
+     */
+    List<WitnessedTransaction> history();
+}u}(jt (3b0f830372ef64835a492324722b2b2019546854ju natlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowHistoryValidator.javaju addedju K"ju K j u K"j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistoryValidator.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import java.util.List;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface WorkflowHistoryValidator {
+    @Value.Parameter
+    WorkflowHistory history();
+
+    @Value.Parameter
+    List<InvariantReporter<?>> invariants();
+
+    static WorkflowHistoryValidator of(WorkflowHistory history, List<InvariantReporter<?>> invariants) {
+        return ImmutableWorkflowHistoryValidator.of(history, invariants);
+    }
+}u}(jt (7bda1b5a5ae5fcf4035a9bcb3a8979da682b9deaju matlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowValidatorRunner.javaju addedju K#ju K j u K#j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowValidatorRunner.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X(  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * Run the provided workflow and validate that it is correct with the provided invariants.
+ */
+public interface WorkflowValidatorRunner<WorkflowTypeT extends Workflow> {
+    void run(List<WorkflowAndInvariants<WorkflowTypeT>> workflowAndInvariants);
+
+    default void run(WorkflowAndInvariants<WorkflowTypeT>... workflowAndInvariants) {
+        run(Arrays.asList(workflowAndInvariants));
+    }
+
+    default void run(WorkflowAndInvariants<WorkflowTypeT> workflowAndInvariants) {
+        run(List.of(workflowAndInvariants));
+    }
+}u}(jt (b5081c6bb7f68583aaaa52e1552a694d90b69641ju jatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/invariant/MismatchedValueTest.javaju addedju K2ju K j u K2j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X;  @@ -0,0 +1,50 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.palantir.logsafe.SafeArg;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class MismatchedValueTest {
+
+    private static final Optional<Integer> VALUE_ONE = Optional.of(15);
+    private static final Optional<Integer> VALUE_TWO = Optional.of(25);
+
+    @Test
+    public void canConstructMismatchedValueFromTwoDifferentValues() {
+        assertThatCode(() -> MismatchedValue.of(VALUE_ONE, VALUE_TWO)).doesNotThrowAnyException();
+    }
+
+    @Test
+    public void actualIsFirstArgumentAndExpectedIsSecondArgument() {
+        MismatchedValue mismatchedValue = MismatchedValue.of(VALUE_ONE, VALUE_TWO);
+        assertThat(mismatchedValue.actual()).isEqualTo(VALUE_ONE);
+        assertThat(mismatchedValue.expected()).isEqualTo(VALUE_TWO);
+    }
+
+    @Test
+    public void throwsWhenActualAndExpectedAreTheSame() {
+        assertThatLoggableExceptionThrownBy(() -> MismatchedValue.of(VALUE_ONE, VALUE_ONE))
+                .hasMessageContaining("Cannot construct MismatchedValues for two values which are equal.")
+                .hasExactlyArgs(SafeArg.of("actual", VALUE_ONE), SafeArg.of("expected", VALUE_ONE));
+    }
+}u}(jt (e29feefdc7506942a05d1a7938b0903280f26161ju aatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/store/IndexTableTest.javaju addedju KAju K j u KAj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTableTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTableTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FIndexTableTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X
  @@ -0,0 +1,65 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.palantir.logsafe.SafeArg;
+import java.util.Locale;
+import org.junit.Test;
+
+public final class IndexTableTest {
+
+    private static final String TABLE_1 = "foo";
+    private static final String TABLE_2 = "bar";
+
+    @Test
+    public void doesNotThrowWhenNamesAreDifferent() {
+        assertThatCode(() -> createIndexTable("foo", "bar")).doesNotThrowAnyException();
+    }
+
+    @Test
+    public void indexTableNameIsFirstArgumentAndPrimaryTableIsSecondArgument() {
+        IndexTable indexTable = createIndexTable(TABLE_1, TABLE_2);
+        assertThat(indexTable.indexTableName()).isEqualTo(TABLE_1);
+        assertThat(indexTable.primaryTableName()).isEqualTo(TABLE_2);
+    }
+
+    @Test
+    public void throwsWhenIndexNameIsTheSameAsPrimary() {
+        assertThatLoggableExceptionThrownBy(() -> createIndexTable(TABLE_1, TABLE_1))
+                .hasMessageContaining("Index table name and primary table name are identical.")
+                .hasExactlyArgs(SafeArg.of("name", TABLE_1), SafeArg.of("primaryTable", TABLE_1));
+    }
+
+    @Test
+    public void throwsWhenIndexNameIsTheSameAsPrimaryIgnoresCase() {
+        assertThatLoggableExceptionThrownBy(() -> createIndexTable(TABLE_1, TABLE_1.toUpperCase(Locale.ROOT)))
+                .hasMessageContaining("Index table name and primary table name are identical.")
+                .hasExactlyArgs(
+                        SafeArg.of("name", TABLE_1), SafeArg.of("primaryTable", TABLE_1.toUpperCase(Locale.ROOT)));
+    }
+
+    private IndexTable createIndexTable(String indexTableName, String primaryTableName) {
+        return IndexTable.builder()
+                .primaryTableName(primaryTableName)
+                .indexTableName(indexTableName)
+                .build();
+    }
+}u}(jt (98c826c9208fca80e3a6f1f1efcf8240c030d9ffju atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javaju addedju KDju K j u KDj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X\  @@ -0,0 +1,68 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+import static org.mockito.Mockito.mock;
+
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import org.junit.Test;
+
+public class MaybeWitnessedTransactionTest {
+
+    private static final Long START_TIMESTAMP = 100L;
+    private static final Long COMMIT_TIMESTAMP = 200L;
+
+    @Test
+    public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
+        assertThatLoggableExceptionThrownBy(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining(
+                        "Given how the transaction protocol works, a transaction for which we haven't retrieved the"
+                                + " commit timestamp");
+    }
+
+    @Test
+    public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
+        assertThatCode(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .commitTimestamp(COMMIT_TIMESTAMP)
+                        .build())
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void toFullyWitnessedCopiesArgumentsCorrectly() {
+        WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
+        WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
+        List<WitnessedTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
+        FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
+                .startTimestamp(START_TIMESTAMP)
+                .commitTimestamp(COMMIT_TIMESTAMP)
+                .actions(actions)
+                .build()
+                .toFullyWitnessed();
+        assertThat(fullyWitnessedTransaction.startTimestamp()).isEqualTo(START_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.commitTimestamp()).contains(COMMIT_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.actions()).containsExactlyElementsOf(actions);
+    }
+}u}(jt (121a175146bc6a56997ba38d7f713d850fb50e15ju /atlasdb-workload-server-distribution/Dockerfileju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2FDockerfilej#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2FDockerfilej%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2FDockerfile?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,26 @@
+FROM adoptopenjdk/openjdk11:jdk-11.0.11_9-debian
+MAINTAINER AtlasDB Team
+
+ENV DOCKERIZE_VERSION v0.2.0
+
+# Bash is useful for monitoring; curl is used by our healthchecks.
+RUN apt-get update && apt-get -y install bash curl procps wget \
+    && wget --no-check-certificate http://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
+    && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
+
+# Prefer ADD to COPY because it does the tar handling
+ADD atlasdb-workload-server-*.tgz /
+
+RUN mv /atlasdb-workload-server-* /atlasdb-workload-server
+
+WORKDIR /atlasdb-workload-server
+
+# Needed for Antithesis
+RUN curl -o /usr/bin/yq -kLf https://github.com/mikefarah/yq/releases/download/v4.33.2/yq_linux_amd64 && \
+    chmod +x /usr/bin/yq
+RUN yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-check.yml \
+    && yq '.classpath += "service/lib/instrumentation.jar"' -i service/bin/launcher-static.yml \
+    && yq '.classpath += "service/lib/jna.jar"' -i service/bin/launcher-static.yml
+
+CMD ["service/bin/init.sh", "console"]u}(jt (7f3e9e8f12ab40d4c411f5e94cce359dfef3b112ju 1atlasdb-workload-server-distribution/build.gradleju addedju K*ju K j u K*j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fbuild.gradlej#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fbuild.gradlej%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fbuild.gradle?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XM  @@ -0,0 +1,42 @@
+apply plugin: 'com.palantir.sls-java-service-distribution'
+apply plugin: 'com.palantir.external-publish-dist'
+apply from: "../gradle/docker.gradle"
+apply from: "../gradle/shared.gradle"
+apply from: "../gradle/non-client-dist.gradle"
+
+dependencies {
+    implementation 'com.fasterxml.jackson.core:jackson-annotations'
+    implementation 'com.fasterxml.jackson.core:jackson-core'
+    implementation 'com.fasterxml.jackson.core:jackson-databind'
+    implementation 'io.dropwizard.metrics:metrics-core'
+    implementation 'io.dropwizard:dropwizard-core'
+    implementation 'io.dropwizard:dropwizard-http2'
+    implementation 'io.dropwizard:dropwizard-jackson'
+    implementation 'io.dropwizard:dropwizard-jersey'
+    implementation 'io.dropwizard:dropwizard-lifecycle'
+    implementation 'io.dropwizard:dropwizard-logging'
+    implementation 'io.dropwizard:dropwizard-request-logging'
+    implementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
+    implementation 'com.palantir.conjure.java.runtime:conjure-java-jersey-server'
+    implementation 'com.google.guava:guava'
+
+    implementation project(':atlasdb-buggify')
+    implementation project(':atlasdb-client')
+    implementation project(':atlasdb-cassandra')
+    implementation project(':atlasdb-workload-server')
+    implementation project(':atlasdb-workload-server-api')
+    implementation project(':atlasdb-config')
+
+    testImplementation 'io.dropwizard:dropwizard-testing'
+
+    compileOnly 'org.immutables:value::annotations'
+    annotationProcessor 'org.immutables:value'
+}
+
+
+distribution {
+    serviceName "atlasdb-workload-server"
+    mainClass 'com.palantir.atlasdb.workload.WorkloadServerLauncher'
+    args 'server', 'var/conf/workload-server.yml'
+    defaultJvmOpts "-Xms512m", "-Xmx512m"
+}
\ No newline at end of fileu}(jt (74c7d07fed075804723d8ff542d22d49e1953cb8ju latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u Xn.  @@ -0,0 +1,227 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload;
+
+import com.codahale.metrics.MetricRegistry;
+import com.codahale.metrics.SharedMetricRegistries;
+import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
+import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
+import com.palantir.atlasdb.util.MetricsManager;
+import com.palantir.atlasdb.util.MetricsManagers;
+import com.palantir.atlasdb.workload.background.BackgroundCassandraJob;
+import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
+import com.palantir.atlasdb.workload.invariant.DurableWritesInvariantMetricReporter;
+import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
+import com.palantir.atlasdb.workload.resource.AntithesisCassandraSidecarResource;
+import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflows;
+import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflows;
+import com.palantir.conjure.java.api.config.service.UserAgent;
+import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import com.palantir.refreshable.Refreshable;
+import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
+import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
+import io.dropwizard.Application;
+import io.dropwizard.jackson.DiscoverableSubtypeResolver;
+import io.dropwizard.lifecycle.setup.LifecycleEnvironment;
+import io.dropwizard.setup.Bootstrap;
+import io.dropwizard.setup.Environment;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.TimeUnit;
+
+public class WorkloadServerLauncher extends Application<WorkloadServerConfiguration> {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(WorkloadServerLauncher.class);
+    private static final UserAgent USER_AGENT = UserAgent.of(Agent.of("AtlasDbWorkloadServer", "0.0.0"));
+
+    private final TaggedMetricRegistry taggedMetricRegistry = new DefaultTaggedMetricRegistry();
+    private final CountDownLatch workflowsRanLatch = new CountDownLatch(1);
+
+    public static void main(String[] args) throws Exception {
+        new WorkloadServerLauncher().run(args);
+    }
+
+    @Override
+    public void initialize(Bootstrap<WorkloadServerConfiguration> bootstrap) {
+        MetricRegistry metricRegistry = SharedMetricRegistries.getOrCreate("AtlasDbWorkLoadServer");
+        bootstrap.setMetricRegistry(metricRegistry);
+        bootstrap.setObjectMapper(ObjectMappers.newServerObjectMapper());
+        bootstrap.getObjectMapper().setSubtypeResolver(new DiscoverableSubtypeResolver());
+        bootstrap.getObjectMapper().registerModule(new Jdk8Module());
+        super.initialize(bootstrap);
+    }
+
+    @Override
+    public void run(WorkloadServerConfiguration configuration, Environment environment) {
+        environment.getObjectMapper().registerModule(new Jdk8Module()).registerModule(new JavaTimeModule());
+
+        scheduleBackgroundJobs(environment);
+
+        ExecutorService workflowRunnerExecutor =
+                environment.lifecycle().executorService("workflow-runner").build();
+        workflowRunnerExecutor.execute(() -> runWorkflows(configuration, environment));
+    }
+
+    private void scheduleBackgroundJobs(Environment environment) {
+        ScheduledExecutorService backgroundJobExecutor = environment
+                .lifecycle()
+                .scheduledExecutorService("background-job")
+                .build();
+        backgroundJobExecutor.scheduleAtFixedRate(
+                new BackgroundCassandraJob(
+                        List.of("cassandra1", "cassandra2", "cassandra3"),
+                        AntithesisCassandraSidecarResource.INSTANCE,
+                        DefaultBuggifyFactory.INSTANCE),
+                0,
+                10,
+                TimeUnit.SECONDS);
+    }
+
+    private void runWorkflows(WorkloadServerConfiguration configuration, Environment environment) {
+        ExecutorService antithesisWorkflowRunnerExecutorService = environment
+                .lifecycle()
+                .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
+                .build();
+        MetricsManager metricsManager = MetricsManagers.of(environment.metrics(), taggedMetricRegistry);
+        AtlasDbTransactionStoreFactory transactionStoreFactory = AtlasDbTransactionStoreFactory.createFromConfig(
+                configuration.install().atlas(),
+                Refreshable.only(configuration.runtime().atlas()),
+                USER_AGENT,
+                metricsManager);
+        SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig =
+                configuration.install().singleRowTwoCellsConfig();
+        RingWorkflowConfiguration ringWorkflowConfiguration =
+                configuration.install().ringConfig();
+        SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
+                configuration.install().singleBusyCellConfig();
+
+        new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
+                .run(
+                        createSingleRowTwoCellsWorkflowValidator(
+                                transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
+                        createRingWorkflowValidator(
+                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellWorkflowValidator(
+                                transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()));
+
+        log.info("antithesis: terminate");
+
+        workflowsRanLatch.countDown();
+
+        if (configuration.install().exitAfterRunning()) {
+            System.exit(0);
+        }
+    }
+
+    private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleBusyCellWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService readExecutor = lifecycle
+                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-read")
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        ExecutorService writeExecutor = lifecycle
+                .executorService(SingleBusyCellWorkflowConfiguration.class.getSimpleName() + "-write")
+                .maxThreads(workflowConfig.maxThreadCount() / 2)
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(
+                SingleBusyCellWorkflows.create(
+                        transactionStore,
+                        workflowConfig,
+                        MoreExecutors.listeningDecorator(readExecutor),
+                        MoreExecutors.listeningDecorator(writeExecutor)),
+                new DurableWritesInvariantMetricReporter(
+                        SingleBusyCellWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)),
+                SerializableInvariantLogReporter.INSTANCE);
+    }
+
+    private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            RingWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = lifecycle
+                .executorService(RingWorkflows.class.getSimpleName())
+                .maxThreads(workflowConfig.maxThreadCount())
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(RingWorkflows.create(
+                transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)));
+    }
+
+    private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleRowTwoCellsWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = lifecycle
+                .executorService(RingWorkflows.class.getSimpleName())
+                .maxThreads(workflowConfig.maxThreadCount())
+                .build();
+        TransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
+
+    @VisibleForTesting
+    CountDownLatch workflowsRanLatch() {
+        return workflowsRanLatch;
+    }
+
+    @VisibleForTesting
+    TaggedMetricRegistry getTaggedMetricRegistry() {
+        return taggedMetricRegistry;
+    }
+}u}(jt (655b2984713096f58ef552b3e999b0c467a73c48ju xatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerConfiguration.javaju addedju K)ju K j u K)j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerConfiguration.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerConfiguration.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerConfiguration.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,41 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.config;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.dropwizard.Configuration;
+
+public class WorkloadServerConfiguration extends Configuration {
+
+    private final WorkloadServerRuntimeConfiguration runtime;
+    private final WorkloadServerInstallConfiguration install;
+
+    public WorkloadServerConfiguration(
+            @JsonProperty(value = "install", required = true) WorkloadServerInstallConfiguration install,
+            @JsonProperty(value = "runtime", required = true) WorkloadServerRuntimeConfiguration runtime) {
+        this.install = install;
+        this.runtime = runtime;
+    }
+
+    public WorkloadServerRuntimeConfiguration runtime() {
+        return runtime;
+    }
+
+    public WorkloadServerInstallConfiguration install() {
+        return install;
+    }
+}u}(jt (e066585ffc82825e55fda21d1909dcc38bb9b518ju atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaju addedju K(ju K j u K(j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X|  @@ -0,0 +1,40 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.config;
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.workload.workflow.SingleBusyCellWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
+import org.immutables.value.Value;
+
+@JsonDeserialize(as = ImmutableWorkloadServerInstallConfiguration.class)
+@JsonSerialize(as = ImmutableWorkloadServerInstallConfiguration.class)
+@Value.Immutable
+public interface WorkloadServerInstallConfiguration {
+    AtlasDbConfig atlas();
+
+    SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig();
+
+    RingWorkflowConfiguration ringConfig();
+
+    SingleBusyCellWorkflowConfiguration singleBusyCellConfig();
+
+    boolean exitAfterRunning();
+}u}(jt (2824c644dc8df565316087e7978c2a1b336f0bf9ju atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerRuntimeConfiguration.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerRuntimeConfiguration.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerRuntimeConfiguration.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerRuntimeConfiguration.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.config;
+
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.palantir.atlasdb.config.AtlasDbRuntimeConfig;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@JsonDeserialize(as = ImmutableWorkloadServerRuntimeConfiguration.class)
+@JsonSerialize(as = ImmutableWorkloadServerRuntimeConfiguration.class)
+@Value.Immutable
+public interface WorkloadServerRuntimeConfiguration {
+    Optional<AtlasDbRuntimeConfig> atlas();
+}ud      }(jt (de8ac8137080a18591a69dabb98316ec9897dfa3ju patlasdb-workload-server-distribution/src/test/java/com/palantir/atlasdb/workload/WorkloadServerLauncherTest.javaju addedju K4ju K j u K4j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncherTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncherTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncherTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XM	  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.codahale.metrics.Timer;
+import com.palantir.atlasdb.workload.config.WorkloadServerConfiguration;
+import com.palantir.tritium.metrics.registry.MetricName;
+import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
+import io.dropwizard.testing.ResourceHelpers;
+import io.dropwizard.testing.junit.DropwizardAppRule;
+import java.util.Map;
+import java.util.concurrent.TimeUnit;
+import org.junit.ClassRule;
+import org.junit.Test;
+
+public class WorkloadServerLauncherTest {
+    @ClassRule
+    public static final DropwizardAppRule<WorkloadServerConfiguration> RULE = new DropwizardAppRule<>(
+            WorkloadServerLauncher.class, ResourceHelpers.resourceFilePath("workload-server.yml"));
+
+    @Test
+    public void runsWorkflow() throws InterruptedException {
+        WorkloadServerLauncher workloadServerLauncher = RULE.getApplication();
+        workloadServerLauncher.workflowsRanLatch().await(20, TimeUnit.SECONDS);
+        TaggedMetricRegistry metricRegistry = workloadServerLauncher.getTaggedMetricRegistry();
+        MetricName metricName = MetricName.builder()
+                .safeName("com.palantir.atlasdb.keyvalue.api.KeyValueService.get")
+                .safeTags(Map.of("libraryOrigin", "atlasdb"))
+                .build();
+        Timer kvsGetMetric = (Timer) metricRegistry.getMetrics().get(metricName);
+        assertThat(kvsGetMetric.getCount())
+                .as("Count of KeyValueService get calls should be greater than one,"
+                        + "as a workflow should have been executed")
+                .isGreaterThan(1);
+    }
+}u}(jt (d8121b0b815f2fb3134e788ecc38e1fba194cf2eju Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,26 @@
+runtime: {}
+install:
+  atlas:
+    namespace: test
+    keyValueService:
+      type: memory
+  singleRowTwoCellsConfig:
+    tableConfiguration:
+      tableName: two-cells-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
+  exitAfterRunning: false
\ No newline at end of fileu}(jt (6cf182d6892424ba60d6899cdd9f14024074a62bju Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlju addedju K=ju K j u K=j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X}  @@ -0,0 +1,61 @@
+runtime:
+  atlas:
+    internalSchema:
+      targetTransactionsSchemaVersion: 3
+    sweep:
+      enabled: false
+    targetedSweep:
+      enabled: true
+      shards: 1
+    timelockRuntime:
+      serversList:
+        servers:
+          - 'https://timelock1.palantir.pt:8421'
+          - 'https://timelock2.palantir.pt:8421'
+          - 'https://timelock3.palantir.pt:8421'
+        sslConfiguration:
+          keyStorePath: "var/security/keyStore.jks"
+          keyStorePassword: "keystore"
+          trustStorePath: "var/security/trustStore.jks"
+install:
+  atlas:
+    keyValueService:
+      type: cassandra
+      servers:
+        type: cqlCapable
+        cqlHosts:
+          - cassandra1:9042
+          - cassandra2:9042
+          - cassandra3:9042
+        thriftHosts:
+          - cassandra1:9160
+          - cassandra2:9160
+          - cassandra3:9160
+      credentials:
+        username: cassandra
+        password: cassandra
+      ssl: false
+      replicationFactor: 3
+    targetedSweep:
+      enableSweepQueueWrites: true
+    namespace: workload_server
+  singleRowTwoCellsConfig:
+    tableConfiguration:
+      tableName: two_cells_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
+  exitAfterRunning: trueu}(jt (e7a39b321f9030a001b4fc428fdefbb6eaeb7280ju Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,26 @@
+runtime: {}
+install:
+  atlas:
+    namespace: test
+    keyValueService:
+      type: memory
+  singleRowTwoCellsConfig:
+    tableConfiguration:
+      tableName: two-cells-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
+  singleBusyCellConfig:
+    tableConfiguration:
+      tableName: single-busy-cell-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: single-busy-cell
+    maxThreadCount: 2
+  exitAfterRunning: true
\ No newline at end of fileu}(jt (7d7c58d85db7aec41551dce0fc7be0a3e2d22fb1ju >atlasdb-workload-server-distribution/var/security/keyStore.jksju addedju K ju K j u K j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FkeyStore.jksj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FkeyStore.jksj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FkeyStore.jks?ref=8f84c8e871dab93807b30578351ec19a2ad9f24au}(jt (49dd792296e2678272e6b07df09e286ff5b8879eju @atlasdb-workload-server-distribution/var/security/trustStore.jksju addedju K ju K j u K j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FtrustStore.jksj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FtrustStore.jksj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fsecurity%2FtrustStore.jks?ref=8f84c8e871dab93807b30578351ec19a2ad9f24au}(jt (a1646b6ee093076187da250847d896517a6e93a1ju $atlasdb-workload-server/build.gradleju addedju K$ju K j u K$j!u xhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fbuild.gradlej#u whttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fbuild.gradlej%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,36 @@
+apply from: "../gradle/shared.gradle"
+apply plugin: 'com.palantir.metric-schema'
+
+license {
+    exclude '**/DurableWritesMetrics.java'
+}
+
+dependencies {
+    implementation project(':atlasdb-workload-server-api')
+    implementation project(':atlasdb-api')
+    implementation project(':atlasdb-buggify')
+    implementation project(':atlasdb-client')
+    implementation project(':atlasdb-config')
+    implementation project(':atlasdb-impl-shared')
+    implementation project(':lock-api')
+    implementation project(':lock-impl')
+
+    implementation 'com.fasterxml.jackson.core:jackson-annotations'
+    implementation 'com.fasterxml.jackson.core:jackson-core'
+    implementation 'com.fasterxml.jackson.core:jackson-databind'
+    implementation 'com.palantir.safe-logging:preconditions'
+    implementation 'com.palantir.safe-logging:safe-logging'
+    implementation 'one.util:streamex'
+    implementation 'io.vavr:vavr'
+
+    testImplementation project(':commons-executors')
+    testImplementation 'org.mockito:mockito-core'
+    testImplementation 'com.palantir.conjure.java.runtime:conjure-java-jackson-serialization'
+    testImplementation 'com.palantir.safe-logging:preconditions-assertj'
+    testImplementation('org.jmock:jmock') {
+        exclude group: 'org.hamcrest'
+    }
+
+    annotationProcessor 'org.immutables:value'
+    compileOnly 'org.immutables:value::annotations'
+}u}(jt (8b9834003c52ed4630cb687d233e97192635cc24ju jatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/background/BackgroundCassandraJob.javaju addedju K,ju K j u K,j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJob.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.background;
+
+import com.google.common.collect.Iterators;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.workload.resource.CassandraSidecarResource;
+import java.util.Iterator;
+import java.util.List;
+
+public class BackgroundCassandraJob implements Runnable {
+
+    private final CassandraSidecarResource cassandraSidecarResource;
+    private final Iterator<String> cassandraHosts;
+
+    private final BuggifyFactory buggify;
+
+    public BackgroundCassandraJob(
+            List<String> cassandraHosts, CassandraSidecarResource cassandraSidecarResource, BuggifyFactory buggify) {
+        this.cassandraSidecarResource = cassandraSidecarResource;
+        this.cassandraHosts = Iterators.cycle(cassandraHosts);
+        this.buggify = buggify;
+    }
+
+    @Override
+    public void run() {
+        buggify.maybe(0.20).run(() -> cassandraSidecarResource.flush(cassandraHosts.next()));
+        buggify.maybe(0.20).run(() -> cassandraSidecarResource.compact(cassandraHosts.next()));
+    }
+}u}(jt (6692c7a0ab9dc06ee5a6b9df123917c46c3d2758ju iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariant.javaju addedju K6ju K j u K6j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X	  @@ -0,0 +1,54 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.ValidationStore;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import io.vavr.Tuple;
+import java.util.Map;
+import java.util.Optional;
+import java.util.function.Consumer;
+
+public enum DurableWritesInvariant implements Invariant<Map<TableAndWorkloadCell, MismatchedValue>> {
+    INSTANCE;
+
+    @Override
+    public void accept(
+            WorkflowHistory workflowHistory, Consumer<Map<TableAndWorkloadCell, MismatchedValue>> invariantListener) {
+        ValidationStore expectedState = InMemoryValidationStore.create(workflowHistory.history());
+        ReadableTransactionStore storeToValidate = workflowHistory.transactionStore();
+        Map<TableAndWorkloadCell, MismatchedValue> cellsThatDoNotMatch = expectedState
+                .values()
+                .map((writtenCell, expectedValue) -> {
+                    Optional<MismatchedValue> maybeMismatchedValue = Optional.empty();
+                    Optional<Integer> actualValue = storeToValidate.get(writtenCell.tableName(), writtenCell.cell());
+
+                    if (!actualValue.equals(expectedValue)) {
+                        maybeMismatchedValue = Optional.of(MismatchedValue.of(actualValue, expectedValue));
+                    }
+
+                    return Tuple.of(writtenCell, maybeMismatchedValue);
+                })
+                .filterValues(Optional::isPresent)
+                .mapValues(Optional::get)
+                .toJavaMap();
+        invariantListener.accept(cellsThatDoNotMatch);
+    }
+}u}(jt (79aa8cfd57984c9bdea2aaf3249996fe3fa9f4d7ju watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporter.javaju addedju K=ju K j u K=j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporter.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X	  @@ -0,0 +1,61 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.DurableWritesMetrics;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.Map;
+import java.util.function.Consumer;
+
+public final class DurableWritesInvariantMetricReporter
+        implements InvariantReporter<Map<TableAndWorkloadCell, MismatchedValue>> {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(DurableWritesInvariantMetricReporter.class);
+
+    private final String workflow;
+    private final DurableWritesMetrics durableWritesMetrics;
+
+    public DurableWritesInvariantMetricReporter(String workflow, DurableWritesMetrics durableWritesMetrics) {
+        this.workflow = workflow;
+        this.durableWritesMetrics = durableWritesMetrics;
+    }
+
+    @Override
+    public Invariant<Map<TableAndWorkloadCell, MismatchedValue>> invariant() {
+        return DurableWritesInvariant.INSTANCE;
+    }
+
+    @Override
+    public Consumer<Map<TableAndWorkloadCell, MismatchedValue>> consumer() {
+        return mismatchingValues -> {
+            mismatchingValues.forEach((tableAndWorkloadCell, _mismatchedValue) -> durableWritesMetrics
+                    .numberOfViolations()
+                    .workflow(workflow)
+                    .table(tableAndWorkloadCell.tableName())
+                    .build()
+                    .inc());
+            if (!mismatchingValues.isEmpty()) {
+                log.warn(
+                        "Durable writes invariant violations found: {}",
+                        SafeArg.of("mismatchingValues", mismatchingValues));
+            }
+        };
+    }
+}u}(jt (c6c57e6a8de2b5781bc3377bb37255bb7b0465a7ju hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariant.javaju addedju K\ju K j u K\j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariant.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XC  @@ -0,0 +1,92 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.List;
+import java.util.Optional;
+import java.util.function.Consumer;
+import one.util.streamex.StreamEx;
+
+public enum SerializableInvariant implements Invariant<List<InvalidWitnessedTransaction>> {
+    INSTANCE;
+
+    @Override
+    public void accept(
+            WorkflowHistory workflowHistory, Consumer<List<InvalidWitnessedTransaction>> invalidWitnessedTransactions) {
+        SerializableInvariantVisitor visitor = new SerializableInvariantVisitor();
+        List<InvalidWitnessedTransaction> transactions = StreamEx.of(workflowHistory.history())
+                .mapPartial(witnessedTransaction -> {
+                    List<InvalidWitnessedTransactionAction> invalidTransactions = StreamEx.of(
+                                    witnessedTransaction.actions())
+                            .mapPartial(action -> action.accept(visitor))
+                            .toList();
+
+                    if (invalidTransactions.isEmpty()) {
+                        return Optional.empty();
+                    }
+
+                    return Optional.of(InvalidWitnessedTransaction.of(witnessedTransaction, invalidTransactions));
+                })
+                .toList();
+        invalidWitnessedTransactions.accept(transactions);
+    }
+
+    private static final class SerializableInvariantVisitor
+            implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
+
+        private final InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
+            Optional<Integer> expectedValue = inMemoryTransactionReplayer
+                    .getValues()
+                    .get(TableAndWorkloadCell.of(readTransactionAction.table(), readTransactionAction.cell()))
+                    .toJavaOptional()
+                    .orElseGet(Optional::empty);
+
+            if (!expectedValue.equals(readTransactionAction.value())) {
+                return Optional.of(InvalidWitnessedTransactionAction.of(
+                        readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expectedValue)));
+            }
+
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedWriteTransactionAction writeTransactionAction) {
+            inMemoryTransactionReplayer.visit(writeTransactionAction);
+            return Optional.empty();
+        }
+
+        @Override
+        public Optional<InvalidWitnessedTransactionAction> visit(
+                WitnessedDeleteTransactionAction deleteTransactionAction) {
+            inMemoryTransactionReplayer.visit(deleteTransactionAction);
+            return Optional.empty();
+        }
+    }
+}u}(jt (0f489a908a062dc89f3e2a38f2be28d193d61511ju satlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporter.javaju addedju K-ju K j u K-j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporter.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X>  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.function.Consumer;
+
+public enum SerializableInvariantLogReporter implements InvariantReporter<List<InvalidWitnessedTransaction>> {
+    INSTANCE;
+    private static final SafeLogger log = SafeLoggerFactory.get(SerializableInvariantLogReporter.class);
+
+    @Override
+    public Invariant<List<InvalidWitnessedTransaction>> invariant() {
+        return SerializableInvariant.INSTANCE;
+    }
+
+    @Override
+    public Consumer<List<InvalidWitnessedTransaction>> consumer() {
+        return invalidWitnessedTransactions -> {
+            if (!invalidWitnessedTransactions.isEmpty()) {
+                log.error(
+                        "Detected transactions that violated our serializable isolation invariant {}",
+                        SafeArg.of("invalidWitnessedTransactions", invalidWitnessedTransactions));
+            }
+        };
+    }
+}u}(jt (afc5fd9e1645d1faf8b1f77f62a39f67390b4c87ju tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/resource/AntithesisCassandraSidecarResource.javaju addedju K%ju K j u K%j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fresource%2FAntithesisCassandraSidecarResource.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X>  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.resource;
+
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+
+public enum AntithesisCassandraSidecarResource implements CassandraSidecarResource {
+    INSTANCE;
+
+    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisCassandraSidecarResource.class);
+
+    @Override
+    public void flush(String host) {
+        log.info("antithesis: flush {}", SafeArg.of("host", host));
+    }
+
+    @Override
+    public void compact(String host) {
+        log.info("antithesis: compact {}", SafeArg.of("host", host));
+    }
+}u}(jt (7746b1901d37ab005efb2fedddecc226a6be376dju qatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunner.javaju addedju KNju K j u KNj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunner.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XL  @@ -0,0 +1,78 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.runner;
+
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistoryValidator;
+import com.palantir.atlasdb.workload.workflow.WorkflowValidatorRunner;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.concurrent.ExecutionException;
+import java.util.stream.Collectors;
+
+public final class AntithesisWorkflowValidatorRunner implements WorkflowValidatorRunner<Workflow> {
+    private static final SafeLogger log = SafeLoggerFactory.get(AntithesisWorkflowValidatorRunner.class);
+    private final ListeningExecutorService listeningExecutorService;
+
+    public AntithesisWorkflowValidatorRunner(ListeningExecutorService listeningExecutorService) {
+        this.listeningExecutorService = listeningExecutorService;
+    }
+
+    @Override
+    public void run(List<WorkflowAndInvariants<Workflow>> workflowAndInvariants) {
+        try {
+            log.info("antithesis: start_faults");
+            List<WorkflowHistoryValidator> workflowHistoryValidators = Futures.allAsList(
+                            submitWorkflowValidators(workflowAndInvariants))
+                    .get();
+            log.info("antithesis: stop_faults");
+            workflowHistoryValidators.forEach(this::checkAndReportInvariantViolations);
+        } catch (InterruptedException e) {
+            Thread.currentThread().interrupt();
+            throw new RuntimeException(e);
+        } catch (ExecutionException e) {
+            throw new RuntimeException(e);
+        }
+    }
+
+    private void checkAndReportInvariantViolations(WorkflowHistoryValidator validator) {
+        validator.invariants().forEach(invariantReporter -> {
+            try {
+                invariantReporter.report(validator.history());
+            } catch (RuntimeException e) {
+                log.error("Caught an exception when running and reporting an invariant.", e);
+            }
+        });
+        log.info(
+                "Dumping transaction log {}",
+                SafeArg.of("transactionLog", validator.history().history()));
+    }
+
+    private List<ListenableFuture<WorkflowHistoryValidator>> submitWorkflowValidators(
+            List<WorkflowAndInvariants<Workflow>> workflowAndInvariants) {
+        return workflowAndInvariants.stream()
+                .map(workflowValidator -> listeningExecutorService.submit(() -> WorkflowHistoryValidator.of(
+                        workflowValidator.workflow().run(), workflowValidator.invariantReporters())))
+                .collect(Collectors.toList());
+    }
+}u}(jt (b8129f7ddecb9ee76388afabb2090692f9aa773eju latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaju addedju Ksju K j u Ksj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XT  @@ -0,0 +1,115 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.BiFunction;
+import javax.annotation.concurrent.NotThreadSafe;
+
+@NotThreadSafe
+final class AtlasDbInteractiveTransaction implements InteractiveTransaction {
+
+    private final Transaction transaction;
+
+    private final Map<String, TableReference> tables;
+
+    private final List<WitnessedTransactionAction> witnessedTransactionActions = new ArrayList<>();
+
+    private boolean hasFinished = false;
+
+    public AtlasDbInteractiveTransaction(Transaction transaction, Map<String, TableReference> tables) {
+        this.transaction = transaction;
+        this.tables = tables;
+    }
+
+    @Override
+    public Optional<Integer> read(String table, WorkloadCell workloadCell) {
+        return run(
+                (tableReference, atlasCell) -> {
+                    Map<Cell, byte[]> values = transaction.get(tableReference, Set.of(atlasCell));
+                    Optional<Integer> valueRead =
+                            Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
+                    witnessedTransactionActions.add(WitnessedReadTransactionAction.of(table, workloadCell, valueRead));
+                    return valueRead;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public void write(String table, WorkloadCell workloadCell, Integer value) {
+        run(
+                (tableReference, atlasCell) -> {
+                    transaction.put(tableReference, Map.of(atlasCell, Ints.toByteArray(value)));
+                    witnessedTransactionActions.add(WitnessedWriteTransactionAction.of(table, workloadCell, value));
+                    return null;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public void delete(String table, WorkloadCell workloadCell) {
+        run(
+                (tableReference, atlasCell) -> {
+                    transaction.delete(tableReference, Set.of(atlasCell));
+                    witnessedTransactionActions.add(WitnessedDeleteTransactionAction.of(table, workloadCell));
+                    return null;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public List<WitnessedTransactionAction> witness() {
+        hasFinished = true;
+        return witnessedTransactionActions;
+    }
+
+    private TableReference getTableReferenceOrThrow(String table) {
+        return Optional.ofNullable(tables.get(table))
+                .orElseThrow(() -> new SafeIllegalArgumentException(
+                        "Transaction action has unknown table.",
+                        SafeArg.of("tableName", table),
+                        SafeArg.of("availableTables", tables)));
+    }
+
+    private <T> T run(BiFunction<TableReference, Cell, T> function, String table, WorkloadCell workloadCell) {
+        Preconditions.checkState(
+                !hasFinished, "Transaction has already been witnessed and can no longer perform any actions.");
+        Cell atlasCell = AtlasDbUtils.toAtlasCell(workloadCell);
+        TableReference tableReference = getTableReferenceOrThrow(table);
+        return function.apply(tableReference, atlasCell);
+    }
+}u}(jt (6871e6633db3c7f6293f93c4496e8f449116f688ju fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X#  @@ -0,0 +1,196 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.base.Suppliers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.PreCommitCondition;
+import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.TransactionCommitFailedException;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicReference;
+import java.util.function.Consumer;
+import java.util.function.Function;
+import java.util.function.Supplier;
+import javax.annotation.concurrent.NotThreadSafe;
+import one.util.streamex.EntryStream;
+
+public final class AtlasDbTransactionStore implements InteractiveTransactionStore {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(AtlasDbTransactionStore.class);
+    private final TransactionManager transactionManager;
+
+    private final Map<String, TableReference> tables;
+
+    private AtlasDbTransactionStore(TransactionManager transactionManager, Map<String, TableReference> tables) {
+        this.transactionManager = transactionManager;
+        this.tables = tables;
+    }
+
+    @Override
+    public Optional<Integer> get(String table, WorkloadCell cell) {
+        return transactionManager.runTaskWithRetry(
+                transaction -> new AtlasDbInteractiveTransaction(transaction, tables).read(table, cell));
+    }
+
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return TransactionStatus.getCommitTimestamp(
+                        transactionManager.getTransactionService().getV2(startTimestamp))
+                .isPresent();
+    }
+
+    @Override
+    public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
+        return readWrite(txn -> {
+            AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
+            actions.forEach(action -> action.accept(visitor));
+        });
+    }
+
+    @Override
+    public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer) {
+        AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
+        AtomicReference<Transaction> transactionReference = new AtomicReference<>();
+        Supplier<CommitTimestampProvider> commitTimestampProvider =
+                Suppliers.memoize(() -> new CommitTimestampProvider());
+        try {
+            transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
+                transactionReference.set(txn);
+                AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
+                        new AtlasDbInteractiveTransaction(txn, tables);
+                interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
+                witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
+                return null;
+            });
+
+            Transaction transaction = transactionReference.get();
+
+            if (transaction.isAborted()) {
+                return Optional.empty();
+            }
+
+            return Optional.of(FullyWitnessedTransaction.builder()
+                    .startTimestamp(transaction.getTimestamp())
+                    .commitTimestamp(commitTimestampProvider
+                            .get()
+                            .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
+                    .actions(witnessedActionsReference.get())
+                    .build());
+        } catch (SafeIllegalArgumentException e) {
+            throw e;
+        } catch (TransactionCommitFailedException e) {
+            Transaction transaction = transactionReference.get();
+            return Optional.of(MaybeWitnessedTransaction.builder()
+                    .startTimestamp(transaction.getTimestamp())
+                    .commitTimestamp(commitTimestampProvider
+                            .get()
+                            .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
+                    .actions(witnessedActionsReference.get())
+                    .build());
+        } catch (Exception e) {
+            Optional<Long> startTimestamp =
+                    Optional.ofNullable(transactionReference.get()).map(Transaction::getTimestamp);
+            log.info(
+                    "Failed to record transaction due to an exception for startTimestamp {}",
+                    SafeArg.of("startTimestamp", startTimestamp),
+                    e);
+            return Optional.empty();
+        }
+    }
+
+    private static class AtlasDbTransactionActionVisitor implements TransactionActionVisitor<Void> {
+
+        private final InteractiveTransaction transaction;
+
+        public AtlasDbTransactionActionVisitor(InteractiveTransaction transaction) {
+            this.transaction = transaction;
+        }
+
+        @Override
+        public Void visit(ReadTransactionAction readTransactionAction) {
+            transaction.read(readTransactionAction.table(), readTransactionAction.cell());
+            return null;
+        }
+
+        @Override
+        public Void visit(WriteTransactionAction writeTransactionAction) {
+            transaction.write(
+                    writeTransactionAction.table(), writeTransactionAction.cell(), writeTransactionAction.value());
+            return null;
+        }
+
+        @Override
+        public Void visit(DeleteTransactionAction deleteTransactionAction) {
+            transaction.delete(deleteTransactionAction.table(), deleteTransactionAction.cell());
+            return null;
+        }
+    }
+
+    public static AtlasDbTransactionStore create(
+            TransactionManager transactionManager, Map<TableReference, byte[]> tables) {
+        transactionManager.getKeyValueService().createTables(tables);
+        Map<String, TableReference> tableMapping = EntryStream.of(tables)
+                .keys()
+                .mapToEntry(TableReference::getTableName, Function.identity())
+                .toMap();
+        return new AtlasDbTransactionStore(transactionManager, tableMapping);
+    }
+
+    @VisibleForTesting
+    @NotThreadSafe
+    static final class CommitTimestampProvider implements PreCommitCondition {
+
+        private Optional<Long> maybeCommitOrStartTimestamp = Optional.empty();
+
+        @Override
+        public void throwIfConditionInvalid(long timestamp) {
+            maybeCommitOrStartTimestamp = Optional.of(timestamp);
+        }
+
+        public Optional<Long> getCommitTimestampOrThrowIfMaybeNotCommitted(long startTimestamp) {
+            long commitOrStartTimestamp = maybeCommitOrStartTimestamp.orElseThrow(() -> new SafeIllegalStateException(
+                    "Timestamp has not been set, which means the pre commit condition has never been executed,"
+                            + " thus the transaction never committed."));
+            if (startTimestamp == commitOrStartTimestamp) {
+                return Optional.empty();
+            }
+
+            return Optional.of(commitOrStartTimestamp);
+        }
+    }
+}u}(jt (58de979ef6729009e31e1f6cca6d03970cc101b3ju matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u Xj  @@ -0,0 +1,154 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.Sets;
+import com.palantir.atlasdb.config.AtlasDbConfig;
+import com.palantir.atlasdb.config.AtlasDbRuntimeConfig;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.Namespace;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.util.MetricsManager;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.conjure.java.api.config.service.UserAgent;
+import com.palantir.lock.client.TimeLockClient;
+import com.palantir.lock.client.UnreliableTimeLockService;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.refreshable.Refreshable;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import one.util.streamex.EntryStream;
+import one.util.streamex.StreamEx;
+
+public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory<InteractiveTransactionStore> {
+
+    // Purposefully override the lock refresh interval to increase our chances of losing locks.
+    private static final int LOCK_REFRESH_INTERVAL_MS = 200;
+
+    private final TransactionManager transactionManager;
+    private final Optional<Namespace> maybeNamespace;
+
+    public AtlasDbTransactionStoreFactory(TransactionManager transactionManager, Optional<String> maybeNamespace) {
+        this.transactionManager = transactionManager;
+        this.maybeNamespace = maybeNamespace.map(Namespace::create);
+    }
+
+    @Override
+    public InteractiveTransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
+        return AtlasDbTransactionStore.create(transactionManager, toAtlasTables(tables, indexes));
+    }
+
+    @VisibleForTesting
+    Map<TableReference, byte[]> toAtlasTables(Map<String, IsolationLevel> tables, Set<IndexTable> indexTables) {
+        checkIndexesReferenceExistingPrimaryTable(tables, indexTables);
+        checkIndexAndPrimaryTableNamesDoNotConflict(tables, indexTables);
+        checkIndexesDoNotHaveDuplicateNames(indexTables);
+
+        Map<TableReference, ConflictHandler> atlasPrimaryTables = EntryStream.of(tables)
+                .mapKeys(this::createTableReference)
+                .mapValues(AtlasDbUtils::toConflictHandler)
+                .toMap();
+        Map<TableReference, ConflictHandler> atlasIndexTables = StreamEx.of(indexTables)
+                .mapToEntry(IndexTable::indexTableName, IndexTable::primaryTableName)
+                .mapKeys(this::createTableReference)
+                .mapValues(tables::get)
+                .mapValues(AtlasDbUtils::toConflictHandler)
+                .mapValues(AtlasDbUtils::toIndexConflictHandler)
+                .toMap();
+        return EntryStream.of(atlasPrimaryTables)
+                .append(atlasIndexTables)
+                .mapValues(AtlasDbUtils::tableMetadata)
+                .toMap();
+    }
+
+    @VisibleForTesting
+    TableReference createTableReference(String tableName) {
+        return maybeNamespace
+                .map(namespace -> TableReference.create(namespace, tableName))
+                .orElseGet(() -> TableReference.createWithEmptyNamespace(tableName));
+    }
+
+    private static void checkIndexesDoNotHaveDuplicateNames(Set<IndexTable> indexTables) {
+        Map<String, Long> countOfIndexNames = indexTables.stream()
+                .map(IndexTable::indexTableName)
+                .map(String::toLowerCase)
+                .collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
+        Set<String> duplicateTableIndexNames = EntryStream.of(countOfIndexNames)
+                .removeValues(value -> value <= 1)
+                .keys()
+                .toSet();
+
+        Preconditions.checkArgument(
+                duplicateTableIndexNames.isEmpty(),
+                "Found index tables with the same name",
+                SafeArg.of("duplicateTableIndexNames", duplicateTableIndexNames));
+    }
+
+    private static void checkIndexAndPrimaryTableNamesDoNotConflict(
+            Map<String, IsolationLevel> tables, Set<IndexTable> indexTables) {
+        Set<String> primaryTableNames =
+                tables.keySet().stream().map(String::toLowerCase).collect(Collectors.toSet());
+        Set<String> indexTableNames = indexTables.stream()
+                .map(IndexTable::indexTableName)
+                .map(String::toLowerCase)
+                .collect(Collectors.toSet());
+        Set<String> conflictingTableNames = Sets.intersection(primaryTableNames, indexTableNames);
+        Preconditions.checkArgument(
+                conflictingTableNames.isEmpty(),
+                "Found indexes which have the same name as primary tables",
+                SafeArg.of("conflictingTableNames", conflictingTableNames));
+    }
+
+    private static void checkIndexesReferenceExistingPrimaryTable(
+            Map<String, IsolationLevel> tables, Set<IndexTable> indexTables) {
+        Set<IndexTable> indexesWithUnknownPrimaryTables = StreamEx.of(indexTables)
+                .remove(indexTable -> tables.containsKey(indexTable.primaryTableName()))
+                .toSet();
+
+        Preconditions.checkArgument(
+                indexesWithUnknownPrimaryTables.isEmpty(),
+                "Found indexes which reference an unknown primary table",
+                SafeArg.of("indexesWithUnknownPrimaryTables", indexesWithUnknownPrimaryTables));
+    }
+
+    public static AtlasDbTransactionStoreFactory createFromConfig(
+            AtlasDbConfig installConfig,
+            Refreshable<Optional<AtlasDbRuntimeConfig>> atlasDbRuntimeConfig,
+            UserAgent userAgent,
+            MetricsManager metricsManager) {
+        TransactionManager transactionManager = TransactionManagers.builder()
+                .config(installConfig)
+                .userAgent(userAgent)
+                .globalMetricsRegistry(metricsManager.getRegistry())
+                .globalTaggedMetricRegistry(metricsManager.getTaggedRegistry())
+                .runtimeConfigSupplier(atlasDbRuntimeConfig)
+                .defaultTimelockClientFactory(lockService -> TimeLockClient.createDefault(
+                        UnreliableTimeLockService.create(lockService), LOCK_REFRESH_INTERVAL_MS))
+                .build()
+                .serializable();
+
+        return new AtlasDbTransactionStoreFactory(
+                transactionManager, installConfig.namespace().or(installConfig.keyValueService()::namespace));
+    }
+}u}(jt (f903482687bcb5e66793d816482b51d37342f3f8ju fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/InMemoryValidationStore.javaju addedju K.ju K j u K.j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInMemoryValidationStore.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X2  @@ -0,0 +1,46 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.atlasdb.workload.transaction.InMemoryTransactionReplayer;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.Optional;
+
+public final class InMemoryValidationStore implements ValidationStore {
+
+    private final Map<TableAndWorkloadCell, Optional<Integer>> values;
+
+    private InMemoryValidationStore(Map<TableAndWorkloadCell, Optional<Integer>> values) {
+        this.values = values;
+    }
+
+    public static InMemoryValidationStore create(List<WitnessedTransaction> history) {
+        InMemoryTransactionReplayer replayer = new InMemoryTransactionReplayer();
+        history.stream()
+                .map(WitnessedTransaction::actions)
+                .forEach(witnessedTransactionActions ->
+                        witnessedTransactionActions.forEach(action -> action.accept(replayer)));
+        return new InMemoryValidationStore(replayer.getValues());
+    }
+
+    @Override
+    public Map<TableAndWorkloadCell, Optional<Integer>> values() {
+        return values;
+    }
+}u}(jt (cb6dfce8a01b80d7f3c5368970de60190ce81ddcju gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/ReadOnlyTransactionStore.javaju addedju K)ju K j u K)j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,41 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import java.util.Optional;
+
+/**
+ * Facade around {@link ReadableTransactionStore}, to prevent users from casting to retrieve an underlying store that
+ * may implement more functionality.
+ */
+public final class ReadOnlyTransactionStore implements ReadableTransactionStore {
+    private final ReadableTransactionStore delegate;
+
+    public ReadOnlyTransactionStore(ReadableTransactionStore delegate) {
+        this.delegate = delegate;
+    }
+
+    @Override
+    public Optional<Integer> get(String table, WorkloadCell cell) {
+        return delegate.get(table, cell);
+    }
+
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return delegate.isCommitted(startTimestamp);
+    }
+}u}(jt (dc1ba80c80acc0c1062aac7549f052f600d069cfju patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayer.javaju addedju K=ju K j u K=j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java|
     j#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayer.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X
  @@ -0,0 +1,61 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.Optional;
+
+public final class InMemoryTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
+
+    private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> values =
+            StructureHolder.create(HashMap::empty);
+
+    @Override
+    public Void visit(WitnessedReadTransactionAction _readTransactionAction) {
+        return null;
+    }
+
+    @Override
+    public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
+        TableAndWorkloadCell tableAndWorkloadCell =
+                TableAndWorkloadCell.of(writeTransactionAction.table(), writeTransactionAction.cell());
+        values.with(map -> map.put(tableAndWorkloadCell, Optional.of(writeTransactionAction.value())));
+        return null;
+    }
+
+    /**
+     * Deletes are explicitly tracked to enable invariants that rely on verifying that deleted values stay deleted.
+     */
+    @Override
+    public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+        TableAndWorkloadCell tableAndWorkloadCell =
+                TableAndWorkloadCell.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
+        values.with(map -> map.put(tableAndWorkloadCell, Optional.empty()));
+        return null;
+    }
+
+    public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
+        return values.getSnapshot();
+    }
+}u}(jt (ad8416d0743b9f5983f668d3db1ef9529527a504ju katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitor.javaju addedju K*ju K j u K*j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitor.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+
+public enum WitnessToActionVisitor implements WitnessedTransactionActionVisitor<TransactionAction> {
+    INSTANCE;
+
+    @Override
+    public ReadTransactionAction visit(WitnessedReadTransactionAction readTransactionAction) {
+        return ImmutableReadTransactionAction.of(readTransactionAction.table(), readTransactionAction.cell());
+    }
+
+    @Override
+    public WriteTransactionAction visit(WitnessedWriteTransactionAction writeTransactionAction) {
+        return ImmutableWriteTransactionAction.of(
+                writeTransactionAction.table(), writeTransactionAction.cell(), writeTransactionAction.value());
+    }
+
+    @Override
+    public DeleteTransactionAction visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+        return ImmutableDeleteTransactionAction.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
+    }
+}u}(jt (0ba18e00eabc917a1fd7025d0f9113112c9b8615ju atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitor.javaju addedju K*ju K j u K*j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.Optional;
+
+public final class OnlyCommittedWitnessedTransactionVisitor
+        implements WitnessedTransactionVisitor<Optional<FullyWitnessedTransaction>> {
+
+    private final ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    public OnlyCommittedWitnessedTransactionVisitor(ReadOnlyTransactionStore readOnlyTransactionStore) {
+        this.readOnlyTransactionStore = readOnlyTransactionStore;
+    }
+
+    @Override
+    public Optional<FullyWitnessedTransaction> visit(FullyWitnessedTransaction witnessedTransaction) {
+        return Optional.of(witnessedTransaction);
+    }
+
+    @Override
+    public Optional<FullyWitnessedTransaction> visit(MaybeWitnessedTransaction maybeWitnessedTransaction) {
+        return readOnlyTransactionStore.isCommitted(maybeWitnessedTransaction.startTimestamp())
+                ? Optional.of(maybeWitnessedTransaction.toFullyWitnessed())
+                : Optional.empty();
+    }
+}u}(jt (c0b3881cb15e0ba7b72700e3a80768b2c77a4b32ju tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactions.javaju addedju K-ju K j u K-j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactions.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,45 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.Comparator;
+import java.util.List;
+import one.util.streamex.StreamEx;
+
+public final class WitnessedTransactions {
+    private WitnessedTransactions() {
+        // utility
+    }
+
+    /**
+     * Sorts transactions by their effective timestamp and filters out transactions that are not fully committed.
+     */
+    public static List<FullyWitnessedTransaction> sortAndFilterTransactions(
+            ReadOnlyTransactionStore readOnlyTransactionStore, List<WitnessedTransaction> unorderedTransactions) {
+        OnlyCommittedWitnessedTransactionVisitor visitor =
+                new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
+        return StreamEx.of(unorderedTransactions)
+                .mapPartial(transaction -> transaction.accept(visitor))
+                .sorted(Comparator.comparingLong(WitnessedTransactions::effectiveTimestamp))
+                .toList();
+    }
+
+    private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {
+        return witnessedTransaction.commitTimestamp().orElseGet(witnessedTransaction::startTimestamp);
+    }
+}u}(jt (3346534c0f8b833d132668a0d60c525f4cc3b7fbju Zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/AtlasDbUtils.javaju addedju K`ju K j u K`j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,96 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.util;
+
+import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.AtlasDbConstants;
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
+import com.palantir.atlasdb.table.description.ColumnMetadataDescription;
+import com.palantir.atlasdb.table.description.NameMetadataDescription;
+import com.palantir.atlasdb.table.description.TableMetadata;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+
+public final class AtlasDbUtils {
+
+    private AtlasDbUtils() {}
+
+    public static ConflictHandler toConflictHandler(IsolationLevel isolationLevel) {
+        switch (isolationLevel) {
+            case NONE:
+                return ConflictHandler.IGNORE_ALL;
+            case SNAPSHOT:
+                return ConflictHandler.RETRY_ON_WRITE_WRITE;
+            case SERIALIZABLE:
+                return ConflictHandler.SERIALIZABLE;
+            default:
+                throw new SafeIllegalArgumentException(
+                        "Cannot convert isolation level into a AtlasDb conflict handler due to unknown isolation"
+                                + " level.",
+                        SafeArg.of("isolationLevel", isolationLevel.name()));
+        }
+    }
+
+    public static Cell toAtlasCell(WorkloadCell cell) {
+        return Cell.create(Ints.toByteArray(cell.key()), Ints.toByteArray(cell.column()));
+    }
+
+    public static byte[] tableMetadata(ConflictHandler conflictHandler) {
+        return new TableMetadata.Builder()
+                .rowMetadata(new NameMetadataDescription())
+                .columns(new ColumnMetadataDescription())
+                .conflictHandler(conflictHandler)
+                .cachePriority(TableMetadataPersistence.CachePriority.WARM)
+                .rangeScanAllowed(true)
+                .explicitCompressionBlockSizeKB(AtlasDbConstants.DEFAULT_TABLE_COMPRESSION_BLOCK_SIZE_KB)
+                .negativeLookups(true)
+                .sweepStrategy(TableMetadataPersistence.SweepStrategy.THOROUGH)
+                .appendHeavyAndReadLight(false)
+                .nameLogSafety(TableMetadataPersistence.LogSafety.SAFE)
+                .build()
+                .persistToBytes();
+    }
+
+    public static byte[] tableMetadata(IsolationLevel isolationLevel) {
+        switch (isolationLevel) {
+            case SERIALIZABLE:
+                return tableMetadata(ConflictHandler.SERIALIZABLE);
+            case SNAPSHOT:
+                return tableMetadata(ConflictHandler.RETRY_ON_WRITE_WRITE);
+            case NONE:
+                return tableMetadata(ConflictHandler.IGNORE_ALL);
+            default:
+                throw new SafeIllegalStateException(
+                        "Unknown isolation level", SafeArg.of("isolationLevel", isolationLevel));
+        }
+    }
+
+    public static ConflictHandler toIndexConflictHandler(ConflictHandler baseTableConflictHandler) {
+        return baseTableConflictHandler.checkReadWriteConflicts()
+                ? ConflictHandler.SERIALIZABLE_INDEX
+                : ConflictHandler.IGNORE_ALL;
+    }
+
+    public static byte[] indexMetadata(ConflictHandler baseTableConflictHandler) {
+        return tableMetadata(toIndexConflictHandler(baseTableConflictHandler));
+    }
+}u}(jt (c14cafe2cad0f011ce8b5b31617cf86e0d9736faju matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunner.javaju addedju K9ju K j u K9j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunner.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X
  @@ -0,0 +1,57 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.Future;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+
+public final class ConcurrentTransactionRunner<T extends TransactionStore> {
+    private final T transactionStore;
+    private final ListeningExecutorService listeningExecutorService;
+
+    public ConcurrentTransactionRunner(T transactionStore, ListeningExecutorService listeningExecutorService) {
+        this.transactionStore = transactionStore;
+        this.listeningExecutorService = listeningExecutorService;
+    }
+
+    public Future<List<WitnessedTransaction>> runConcurrentTransactionTask(
+            KeyedTransactionTask<T> transactionTask, int taskMultiplicity) {
+        Preconditions.checkArgument(
+                taskMultiplicity >= 0,
+                "Tasks must be run a non-negative number of times",
+                SafeArg.of("providedTaskMultiplicity", taskMultiplicity));
+        List<ListenableFuture<Optional<WitnessedTransaction>>> taskFutures = IntStream.range(0, taskMultiplicity)
+                .mapToObj(
+                        index -> listeningExecutorService.submit(() -> transactionTask.apply(transactionStore, index)))
+                .collect(Collectors.toList());
+        return Futures.transform(
+                Futures.allAsList(taskFutures),
+                outcome -> outcome.stream().flatMap(Optional::stream).collect(Collectors.toList()),
+                MoreExecutors.directExecutor());
+    }
+}u}(jt (f4ad0b8dddc43f5cd0380760c6cfdc9c58c273e1ju aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javaju addedju KPju K j u KPj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XL  @@ -0,0 +1,80 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import com.palantir.logsafe.exceptions.SafeRuntimeException;
+import java.util.List;
+import java.util.concurrent.ExecutionException;
+import java.util.concurrent.Future;
+
+public final class DefaultWorkflow<T extends TransactionStore> implements Workflow {
+    private final ConcurrentTransactionRunner<T> concurrentTransactionRunner;
+    private final KeyedTransactionTask<T> transactionTask;
+    private final WorkflowConfiguration workflowConfiguration;
+    private final ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    private DefaultWorkflow(
+            ConcurrentTransactionRunner<T> concurrentTransactionRunner,
+            KeyedTransactionTask<T> transactionTask,
+            WorkflowConfiguration workflowConfiguration,
+            ReadOnlyTransactionStore readOnlyTransactionStore) {
+        this.concurrentTransactionRunner = concurrentTransactionRunner;
+        this.transactionTask = transactionTask;
+        this.workflowConfiguration = workflowConfiguration;
+        this.readOnlyTransactionStore = readOnlyTransactionStore;
+    }
+
+    public static <T extends TransactionStore> DefaultWorkflow<T> create(
+            T store,
+            KeyedTransactionTask<T> transactionTask,
+            WorkflowConfiguration configuration,
+            ListeningExecutorService executionExecutor) {
+        return new DefaultWorkflow<>(
+                new ConcurrentTransactionRunner<>(store, executionExecutor),
+                transactionTask,
+                configuration,
+                new ReadOnlyTransactionStore(store));
+    }
+
+    @Override
+    public WorkflowHistory run() {
+        return ImmutableWorkflowHistory.builder()
+                .history(
+                        WitnessedTransactions.sortAndFilterTransactions(readOnlyTransactionStore, runTransactionTask()))
+                .transactionStore(readOnlyTransactionStore)
+                .build();
+    }
+
+    private List<WitnessedTransaction> runTransactionTask() {
+        Future<List<WitnessedTransaction>> transactionsFuture =
+                concurrentTransactionRunner.runConcurrentTransactionTask(
+                        transactionTask, workflowConfiguration.iterationCount());
+        try {
+            return transactionsFuture.get();
+        } catch (InterruptedException e) {
+            Thread.currentThread().interrupt();
+            throw new SafeRuntimeException(e);
+        } catch (ExecutionException e) {
+            throw new SafeRuntimeException("Error when running workflow task", e.getCause());
+        }
+    }
+}u}(jt (4ca9777a60bba46b458d814677435f4e29d93675ju uatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowConfiguration.javaju renamedju K	ju Kj u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowConfiguration.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -1,5 +1,5 @@
 /*
- * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -14,24 +14,19 @@
  * limitations under the License.
  */
 
-package com.palantir.atlasdb.backup;
+package com.palantir.atlasdb.workload.workflow;
 
+import com.fasterxml.jackson.annotation.JsonTypeName;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import org.immutables.value.Value;
 
-@JsonSerialize(as = ImmutableRestoreRequestWithId.class)
-@JsonDeserialize(as = ImmutableRestoreRequestWithId.class)
 @Value.Immutable
-public interface RestoreRequestWithId {
-    RestoreRequest restoreRequest();
+@JsonSerialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleBusyCellWorkflowConfiguration.class)
+@JsonTypeName(SingleBusyCellWorkflowConfiguration.TYPE)
+public interface SingleBusyCellWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "single-busy-cell";
 
-    String backupId();
-
-    static RestoreRequestWithId of(RestoreRequest restoreRequest, String backupId) {
-        return ImmutableRestoreRequestWithId.builder()
-                .restoreRequest(restoreRequest)
-                .backupId(backupId)
-                .build();
-    }
+    TableConfiguration tableConfiguration();
 }jw Uatlasdb-ete-tests/src/main/java/com/palantir/atlasdb/backup/RestoreRequestWithId.javau}(jt (c82f3d3c2182e14e8f2d6630ac1cb719f0cd3c4cju iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflows.javaju addedju Kiju K j u Kij!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflows.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,105 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactions;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import java.util.stream.Stream;
+
+/**
+ * This workflow attempts to manipulate a single cell in a table, scheduling transactions that perform writes and
+ * deletes, along with transactions that simply read. Notice that unlike other workflows, because the load is
+ * considerably heterogeneous, we do not use a {@link DefaultWorkflow} to schedule transactions.
+ */
+public final class SingleBusyCellWorkflows {
+    private SingleBusyCellWorkflows() {
+        // utility
+    }
+
+    @VisibleForTesting
+    static final WorkloadCell BUSY_CELL = ImmutableWorkloadCell.of(1, 1);
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor,
+            ListeningExecutorService writeExecutor) {
+        return () -> {
+            List<ListenableFuture<Optional<WitnessedTransaction>>> reads =
+                    scheduleReadsAndTouches(store, configuration, readExecutor);
+            List<ListenableFuture<Optional<WitnessedTransaction>>> writes =
+                    scheduleWrites(store, configuration, writeExecutor);
+
+            ListenableFuture<List<WitnessedTransaction>> witnessedTransactions = Futures.transform(
+                    Futures.allAsList(
+                            Stream.of(reads, writes).flatMap(Collection::stream).collect(Collectors.toList())),
+                    maybeWitnessedTransactions -> maybeWitnessedTransactions.stream()
+                            .flatMap(Optional::stream)
+                            .collect(Collectors.toList()),
+                    MoreExecutors.directExecutor());
+            ReadOnlyTransactionStore readOnlyTransactionStore = new ReadOnlyTransactionStore(store);
+            return ImmutableWorkflowHistory.builder()
+                    .addAllHistory(WitnessedTransactions.sortAndFilterTransactions(
+                            readOnlyTransactionStore, Futures.getUnchecked(witnessedTransactions)))
+                    .transactionStore(readOnlyTransactionStore)
+                    .build();
+        };
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleReadsAndTouches(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService readExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 2)
+                .mapToObj(idx -> readExecutor.submit(() -> store.readWrite(txn -> {
+                    Optional<Integer> value =
+                            txn.read(configuration.tableConfiguration().tableName(), BUSY_CELL);
+                    txn.write(configuration.tableConfiguration().tableName(), BUSY_CELL, value.orElse(-1));
+                })))
+                .collect(Collectors.toList());
+    }
+
+    private static List<ListenableFuture<Optional<WitnessedTransaction>>> scheduleWrites(
+            InteractiveTransactionStore store,
+            SingleBusyCellWorkflowConfiguration configuration,
+            ListeningExecutorService writeExecutor) {
+        return IntStream.range(0, configuration.iterationCount() / 4)
+                .boxed()
+                .flatMap(index -> Stream.of(
+                        writeExecutor.submit(() -> store.readWrite(List.of(WriteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL, index)))),
+                        writeExecutor.submit(() -> store.readWrite(List.of(DeleteTransactionAction.of(
+                                configuration.tableConfiguration().tableName(), BUSY_CELL))))))
+                .collect(Collectors.toList());
+    }
+}u}(jt (caadf187b4d5e22652f2a830ce77923c1b876143ju xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javaju addedju K&ju K j u K&j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonTypeName(SingleRowTwoCellsWorkflowConfiguration.TYPE)
+public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "singleRowTwoCells";
+
+    TableConfiguration tableConfiguration();
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jt (a051b9750921550bf6cef8e388f821ed91ce81c5ju latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javaju addedju Kgju K j u Kgj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,103 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.Streams;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.TransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+
+/**
+ * Consider a single row in a database that has two cells, which should between them maintain the invariant that
+ * at most one cell has a value (this workflow is extremely common in AtlasDB Proxy). This workflow maintains
+ * concurrent transactions that read the row (both cells), and then sends an update to one of the cells and attempts
+ * to delete the other.
+ */
+public final class SingleRowTwoCellsWorkflows {
+    private static final int SINGLE_ROW = 1;
+    private static final int FIRST_COLUMN = 1;
+    private static final int SECOND_COLUMN = 2;
+
+    @VisibleForTesting
+    static final WorkloadCell FIRST_CELL = ImmutableWorkloadCell.of(SINGLE_ROW, FIRST_COLUMN);
+
+    @VisibleForTesting
+    static final WorkloadCell SECOND_CELL = ImmutableWorkloadCell.of(SINGLE_ROW, SECOND_COLUMN);
+
+    private SingleRowTwoCellsWorkflows() {
+        // static factory
+    }
+
+    public static Workflow createSingleRowTwoCell(
+            TransactionStore store,
+            SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, index) -> run(txnStore, index, singleRowTwoCellsWorkflowConfiguration),
+                singleRowTwoCellsWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    private static Optional<WitnessedTransaction> run(
+            TransactionStore store, int taskIndex, SingleRowTwoCellsWorkflowConfiguration workflowConfiguration) {
+        workflowConfiguration.transactionRateLimiter().acquire();
+
+        List<TransactionAction> transactionActions = createTransactionActions(
+                taskIndex, workflowConfiguration.tableConfiguration().tableName());
+        return store.readWrite(transactionActions);
+    }
+
+    @VisibleForTesting
+    static List<TransactionAction> createTransactionActions(int taskIndex, String tableName) {
+        List<TransactionAction> cellReads = createCellReadActions(tableName);
+        List<TransactionAction> cellUpdates = createCellUpdateActions(taskIndex, tableName);
+        return Streams.concat(cellReads.stream(), cellUpdates.stream(), cellReads.stream())
+                .collect(Collectors.toList());
+    }
+
+    @VisibleForTesting
+    static boolean shouldWriteToFirstCell(int taskIndex) {
+        return taskIndex % 2 == 0;
+    }
+
+    private static List<TransactionAction> createCellUpdateActions(int taskIndex, String tableName) {
+        return shouldWriteToFirstCell(taskIndex)
+                ? ImmutableList.of(
+                        WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
+                        DeleteTransactionAction.of(tableName, SECOND_CELL))
+                : ImmutableList.of(
+                        DeleteTransactionAction.of(tableName, FIRST_CELL),
+                        WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
+    }
+
+    private static List<TransactionAction> createCellReadActions(String tableName) {
+        return ImmutableList.of(
+                ReadTransactionAction.of(tableName, FIRST_CELL), ReadTransactionAction.of(tableName, SECOND_CELL));
+    }
+}u}(jt (17025a595fb12bc4f0fc9cfc02f250dd06064c6aju `atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingGraph.javaju addedju K|ju K j u K|j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X%  @@ -0,0 +1,124 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.google.common.collect.Iterators;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.security.SecureRandom;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import one.util.streamex.EntryStream;
+
+public final class RingGraph {
+    private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+    private final Map<Integer, Integer> ring;
+
+    private RingGraph(Map<Integer, Integer> ring) {
+        this.ring = ring;
+    }
+
+    public static RingGraph from(Map<Integer, Integer> ring) throws RingValidationException {
+        validateGraphIsRing(ring);
+        return new RingGraph(ring);
+    }
+
+    public static RingGraph fromPartial(Map<Integer, Optional<Integer>> ring) throws RingValidationException {
+        if (isEmpty(ring)) {
+            return RingGraph.generateNewRing(ring.keySet());
+        }
+
+        Preconditions.checkArgument(
+                !anyEmpty(ring),
+                "Graph contains missing entries, thus cannot be made into a ring.",
+                SafeArg.of("ring", ring));
+
+        return from(EntryStream.of(ring).mapValues(Optional::get).toMap());
+    }
+
+    public static RingGraph create(int size) {
+        return generateNewRing(IntStream.range(0, size).boxed().collect(Collectors.toSet()));
+    }
+
+    /**
+     * Checks that the ring is correct by verifying:
+     * (1) There are no missing entries
+     * (2) There are no sub-cycles
+     * (3) The ring is connected
+     * <p>
+     * This is simply done by iterating over the length of the ring, and validating that we visited each node.
+     * To ensure that the ring is connected, we do not track our entry into the ring (i.e. the first node we visit),
+     * as we expect to have it be visited again as the last node.
+     */
+    public static void validateGraphIsRing(Map<Integer, Integer> ring) throws RingValidationException {
+        Integer initialNode = ring.keySet().iterator().next();
+        Set<Integer> remainingNodes = new HashSet<>(ring.keySet());
+        int maxIterations = ring.keySet().size();
+        Integer nextNode = ring.get(initialNode);
+        for (int iterations = 0; iterations < maxIterations; iterations++) {
+            // If we reference a node that does not exist in our ring, it means we are missing data
+            if (!ring.containsKey(nextNode)) {
+                RingValidationException.throwMissingEntries(ring);
+            }
+
+            // If the node already has been visited, it means we're in a cycle within our ring
+            if (!remainingNodes.remove(nextNode)) {
+                RingValidationException.throwEarlyCycle(ring);
+            }
+
+            nextNode = ring.get(nextNode);
+        }
+    }
+
+    public RingGraph generateNewRing() {
+        return generateNewRing(ring.keySet());
+    }
+
+    /**
+     * Returns a valid new ring with the same nodes but randomly generated edges.
+     */
+    private static RingGraph generateNewRing(Set<Integer> nodes) {
+        List<Integer> keys = new ArrayList<>(nodes);
+        Collections.shuffle(keys, SECURE_RANDOM);
+        Iterator<Integer> valuesIterator = Iterators.cycle(keys);
+        valuesIterator.next();
+        return new RingGraph(
+                keys.stream().collect(Collectors.toMap(Function.identity(), _node -> valuesIterator.next())));
+    }
+
+    public Map<Integer, Integer> asMap() {
+        return ring;
+    }
+
+    private static boolean isEmpty(Map<Integer, Optional<Integer>> ring) {
+        return ring.values().stream().allMatch(Optional::isEmpty);
+    }
+
+    private static boolean anyEmpty(Map<Integer, Optional<Integer>> ring) {
+        return ring.values().stream().anyMatch(Optional::isEmpty);
+    }
+}u}(jt (109ed2a6c2ef9753e6500d3ea6827a032511da81ju natlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingValidationException.javaju addedju K?ju K j u K?j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingValidationException.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,63 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.palantir.logsafe.Arg;
+import com.palantir.logsafe.Safe;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.SafeLoggable;
+import java.util.List;
+import java.util.Map;
+
+public final class RingValidationException extends IllegalArgumentException implements SafeLoggable {
+
+    private final Map<Integer, Integer> ring;
+    private final Type type;
+
+    private RingValidationException(Map<Integer, Integer> ring, Type type) {
+        this.ring = ring;
+        this.type = type;
+    }
+
+    @Override
+    public @Safe String getLogMessage() {
+        return "Detected an error in the graph when attempting to validate as a ring.";
+    }
+
+    @Override
+    public List<Arg<?>> getArgs() {
+        return List.of(SafeArg.of("ring", ring), SafeArg.of("type", type));
+    }
+
+    public static void throwEarlyCycle(Map<Integer, Integer> ring) throws RingValidationException {
+        throw new RingValidationException(ring, Type.EARLY_CYCLE);
+    }
+
+    public static void throwMissingEntries(Map<Integer, Integer> ring) throws RingValidationException {
+        throw new RingValidationException(ring, Type.MISSING_ENTRIES);
+    }
+
+    enum Type {
+        // Detected a cycle in our ring before visiting all nodes,
+        // indicating the integrity of our ring has been compromised.
+        EARLY_CYCLE,
+
+        // Detected a reference to a node that does not exist,
+        // indicating the integrity of our ring has been compromised.
+        MISSING_ENTRIES;
+    }
+}u}(jt (8db9245638b72b40f73f9ae3c427c4ccb2c69053ju patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowConfiguration.javaju addedju K,ju K j u K,j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.google.common.util.concurrent.RateLimiter;
+import com.palantir.atlasdb.workload.workflow.TableConfiguration;
+import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
+import org.immutables.value.Value;
+
+@Value.Immutable
+@JsonSerialize(as = ImmutableRingWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableRingWorkflowConfiguration.class)
+@JsonTypeName(RingWorkflowConfiguration.TYPE)
+public interface RingWorkflowConfiguration extends WorkflowConfiguration {
+    String TYPE = "ring";
+
+    TableConfiguration tableConfiguration();
+
+    default Integer ringSize() {
+        return 3;
+    }
+
+    @Value.Lazy
+    default RateLimiter transactionRateLimiter() {
+        return RateLimiter.create(rateLimit());
+    }
+}u}(jt (b786a95bef1effb5bd44f53eed786d588b38a9b0ju datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflows.javaju addedju Ktju K j u Ktj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,116 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.Map;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+
+/**
+ * Runs a workflow which creates a representation of a ring using key-value pairs.
+ * The ring is validated and shuffled after every iteration. If the ring ever becomes invalid (cycles, missing data),
+ * this indicates that there is a bug in our underlying storage infrastructure, as snapshot isolation has been violated.
+ * Snapshot isolation would be violated here, as it indicates that we did not detect a write-write conflict,
+ * as every write will be of a correct ring.
+ */
+public final class RingWorkflows {
+
+    private static final SafeLogger log = SafeLoggerFactory.get(RingWorkflows.class);
+
+    private static final int COLUMN = 0;
+
+    private RingWorkflows() {
+        // static factory
+    }
+
+    public static Workflow create(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration ringWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        AtomicBoolean skipRunning = new AtomicBoolean(false);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
+                ringWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration ringWorkflowConfiguration,
+            ListeningExecutorService executionExecutor,
+            AtomicBoolean skipRunning) {
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
+                ringWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    private static Optional<WitnessedTransaction> run(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration workflowConfiguration,
+            AtomicBoolean skipRunning) {
+        if (skipRunning.get()) {
+            return Optional.empty();
+        }
+
+        workflowConfiguration.transactionRateLimiter().acquire();
+        String table = workflowConfiguration.tableConfiguration().tableName();
+        Integer ringSize = workflowConfiguration.ringSize();
+        return store.readWrite(txn -> {
+            Map<Integer, Optional<Integer>> data = fetchData(table, ringSize, txn);
+            try {
+                RingGraph ringGraph = RingGraph.fromPartial(data);
+                ringGraph
+                        .generateNewRing()
+                        .asMap()
+                        .forEach((rootNode, nextNode) -> txn.write(table, cell(rootNode), nextNode));
+            } catch (IllegalArgumentException e) {
+                if (skipRunning.compareAndSet(false, true)) {
+                    log.error("Detected violation with our ring.", e);
+                }
+            }
+        });
+    }
+
+    private static Map<Integer, Optional<Integer>> fetchData(
+            String table, int ringSize, InteractiveTransaction transaction) {
+        return IntStream.range(0, ringSize)
+                .boxed()
+                .collect(Collectors.toMap(Function.identity(), index -> transaction.read(table, cell(index))));
+    }
+
+    @VisibleForTesting
+    static ImmutableWorkloadCell cell(Integer node) {
+        return ImmutableWorkloadCell.of(node, COLUMN);
+    }
+}u}(jt (54dd470d5e4868599f8d83ecf582c00fc31591dcju =atlasdb-workload-server/src/main/metrics/workload-metrics.ymlju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fmetrics%2Fworkload-metrics.ymlj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Fmain%2Fmetrics%2Fworkload-metrics.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fmetrics%2Fworkload-metrics.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X4  @@ -0,0 +1,16 @@
+options:
+  javaPackage: 'com.palantir.atlasdb.workload'
+
+namespaces:
+  com.palantir.atlasdb.workload.invariant:
+    shortName: DurableWrites
+    docs: Metrics for the durable writes invariant.
+    metrics:
+      numberOfViolations:
+        type: counter
+        tags:
+          - workflow
+          - table
+        docs: >-
+          Number of cells that have a mismatching value from what we expect and what is actually there.
+          This includes cells which have been deleted and have re-appeared.
\ No newline at end of fileu}(jt (c89f46a34f99a9fca258b76f8b9fdf692e350760ju natlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/background/BackgroundCassandraJobTest.javaju addedju K2ju K j u K2j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fbackground%2FBackgroundCassandraJobTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,50 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.background;
+
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.verify;
+
+import com.palantir.atlasdb.buggify.AlwaysBuggifyFactory;
+import com.palantir.atlasdb.workload.resource.CassandraSidecarResource;
+import java.util.List;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class BackgroundCassandraJobTest {
+
+    private static final String HOST_ONE = "cassandra1";
+    private static final String HOST_TWO = "cassandra2";
+    private static final String HOST_THREE = "cassandra3";
+
+    private static final List<String> CASSANDRA_HOSTS = List.of(HOST_ONE, HOST_TWO, HOST_THREE);
+
+    @Mock
+    private CassandraSidecarResource cassandraSidecarResource;
+
+    @Test
+    public void runCanExecuteCompactFlushOnAllCassandraHosts() {
+        BackgroundCassandraJob backgroundCassandraJob =
+                new BackgroundCassandraJob(CASSANDRA_HOSTS, cassandraSidecarResource, AlwaysBuggifyFactory.INSTANCE);
+        CASSANDRA_HOSTS.forEach(_ignore -> backgroundCassandraJob.run());
+        CASSANDRA_HOSTS.forEach(host -> verify(cassandraSidecarResource).compact(eq(host)));
+        CASSANDRA_HOSTS.forEach(host -> verify(cassandraSidecarResource).flush(eq(host)));
+    }
+}u}(jt (3d12ec12a07e0b90193451a34a6dccfcfa6f8e76ju {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporterTest.javaju addedju K\ju K j u K\j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,92 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.workload.DurableWritesMetrics;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.store.IndexTable;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
+import com.palantir.tritium.metrics.registry.TaggedMetricRegistry;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import org.junit.Test;
+
+public final class DurableWritesInvariantMetricReporterTest {
+
+    private final TaggedMetricRegistry taggedMetricRegistry = new DefaultTaggedMetricRegistry();
+    private final DurableWritesMetrics metrics = DurableWritesMetrics.of(taggedMetricRegistry);
+
+    @Test
+    public void runIncreasesMetricsIfViolationsFound() {
+        DurableWritesInvariantMetricReporter reporter =
+                new DurableWritesInvariantMetricReporter(WorkloadTestHelpers.WORKFLOW, metrics);
+        AtlasDbTransactionStoreFactory factory = new AtlasDbTransactionStoreFactory(
+                TransactionManagers.createInMemory(Set.of()), Optional.of("keyspace"));
+        TransactionStore store = factory.create(
+                Map.of(
+                        WorkloadTestHelpers.TABLE_1,
+                        IsolationLevel.SERIALIZABLE,
+                        WorkloadTestHelpers.TABLE_2,
+                        IsolationLevel.SERIALIZABLE),
+                Set.of(IndexTable.builder()
+                        .indexTableName(WorkloadTestHelpers.TABLE_1_INDEX_1)
+                        .primaryTableName(WorkloadTestHelpers.TABLE_1)
+                        .build()));
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .transactionStore(store)
+                .history(List.of(FullyWitnessedTransaction.builder()
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .addActions(WitnessedWriteTransactionAction.of(
+                                WorkloadTestHelpers.TABLE_1,
+                                WorkloadTestHelpers.WORKLOAD_CELL_ONE,
+                                WorkloadTestHelpers.VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(
+                                WorkloadTestHelpers.TABLE_2,
+                                WorkloadTestHelpers.WORKLOAD_CELL_ONE,
+                                WorkloadTestHelpers.VALUE_ONE))
+                        .build()))
+                .build();
+        reporter.report(workflowHistory);
+        assertThat(getViolationCount(WorkloadTestHelpers.WORKFLOW, WorkloadTestHelpers.TABLE_1))
+                .isEqualTo(1);
+        assertThat(getViolationCount(WorkloadTestHelpers.WORKFLOW, WorkloadTestHelpers.TABLE_2))
+                .isEqualTo(1);
+        assertThat(getViolationCount(WorkloadTestHelpers.WORKFLOW, WorkloadTestHelpers.TABLE_1_INDEX_1))
+                .isEqualTo(0);
+    }
+
+    private long getViolationCount(String workflow, String table) {
+        return metrics.numberOfViolations()
+                .workflow(workflow)
+                .table(table)
+                .build()
+                .getCount();
+    }
+}u     }(jt (39cc7f77a28bd84fc271bbca23d8e9195abf6fd6ju matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantTest.javaju addedju Kqju K j u Kqj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,113 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.atomic.AtomicReference;
+import org.junit.Before;
+import org.junit.Test;
+
+public final class DurableWritesInvariantTest {
+
+    private AtlasDbTransactionStore store;
+
+    @Before
+    public void before() {
+        store = AtlasDbTransactionStore.create(
+                TransactionManagers.createInMemory(Set.of()),
+                Map.of(TABLE_REFERENCE, AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
+    }
+
+    @Test
+    public void cellsExpectedToBeDeletedAreFound() {
+        AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
+        List<WitnessedTransaction> witnessedTransactions = List.of(
+                FullyWitnessedTransaction.builder()
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .build(),
+                FullyWitnessedTransaction.builder()
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO))
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .build());
+        WorkflowHistory history = ImmutableWorkflowHistory.builder()
+                .history(witnessedTransactions)
+                .transactionStore(store)
+                .build();
+
+        store.readWrite(List.of(WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE)));
+        DurableWritesInvariant.INSTANCE.accept(history, mismatchingCells::set);
+        assertThat(mismatchingCells.get())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO),
+                        MismatchedValue.of(Optional.of(VALUE_ONE), Optional.empty())));
+    }
+
+    @Test
+    public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
+        AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
+        List<WitnessedTransaction> witnessedTransactions = List.of(
+                FullyWitnessedTransaction.builder()
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .build(),
+                FullyWitnessedTransaction.builder()
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .build());
+        WorkflowHistory history = ImmutableWorkflowHistory.builder()
+                .history(witnessedTransactions)
+                .transactionStore(store)
+                .build();
+
+        store.readWrite(List.of(
+                WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
+                WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE)));
+        DurableWritesInvariant.INSTANCE.accept(history, mismatchingCells::set);
+        assertThat(mismatchingCells.get())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO),
+                        MismatchedValue.of(Optional.of(VALUE_ONE), Optional.of(VALUE_TWO))));
+    }
+}u}(jt (398677d5ff242f5cee92de9c2737a0843621c59dju watlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporterTest.javaju addedju K3ju K j u K3j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X;  @@ -0,0 +1,51 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import java.util.List;
+import org.junit.Test;
+
+public class SerializableInvariantLogReporterTest {
+    @Test
+    public void invariantIsSerializable() {
+        assertThat(SerializableInvariantLogReporter.INSTANCE.invariant()).isEqualTo(SerializableInvariant.INSTANCE);
+    }
+
+    @Test
+    public void consumerDoesNotThrowWhenAcceptingViolations() {
+        assertThatCode(() -> SerializableInvariantLogReporter.INSTANCE
+                        .consumer()
+                        .accept(List.of(InvalidWitnessedTransaction.of(
+                                FullyWitnessedTransaction.builder()
+                                        .startTimestamp(1)
+                                        .build(),
+                                List.of()))))
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void consumerDoesNotThrowWhenAcceptingNoViolations() {
+        assertThatCode(() ->
+                        SerializableInvariantLogReporter.INSTANCE.consumer().accept(List.of()))
+                .doesNotThrowAnyException();
+    }
+}u}(jt (90b36432d0c4959d6f029a213c9b14ce813a43a8ju latlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantTest.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X\  @@ -0,0 +1,152 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.Iterables;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.transaction.WitnessedTransactionsBuilder;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class SerializableInvariantTest {
+
+    @Mock
+    private ReadableTransactionStore readableTransactionStore;
+
+    @Test
+    public void handlesLocalWrites() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .read(5, 10)
+                .write(5, 10, 15)
+                .read(5, 10, 15)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void noInvalidTransactionsWhenSerializable() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .write(23, 1, 20)
+                .write(7, 15, 14)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(23, 1, 20)
+                .read(7, 15, 14)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+
+    @Test
+    public void catchesWriteSkew() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(6, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(6, 10, 15)
+                .write(5, 10, 0)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .read(6, 10, 15)
+                .write(6, 10, 0)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        InvalidWitnessedTransaction invalidWitnessedTransaction = Iterables.getOnlyElement(invalidTransactions);
+
+        assertThat(invalidWitnessedTransaction.transaction()).isEqualTo(Iterables.getLast(transactions));
+        InvalidWitnessedTransactionAction invalidWitnessedTransactionAction =
+                Iterables.getOnlyElement(invalidWitnessedTransaction.invalidActions());
+
+        assertThat(invalidWitnessedTransactionAction.action())
+                .isInstanceOfSatisfying(WitnessedReadTransactionAction.class, action -> {
+                    assertThat(action.cell()).isEqualTo(ImmutableWorkloadCell.of(5, 10));
+                    assertThat(action.value()).contains(15);
+                });
+        assertThat(invalidWitnessedTransactionAction.mismatchedValue())
+                .isEqualTo(MismatchedValue.of(Optional.of(15), Optional.of(0)));
+    }
+
+    @Test
+    public void handlesDeletes() {
+        List<InvalidWitnessedTransaction> invalidTransactions = new ArrayList<>();
+        List<WitnessedTransaction> transactions = new WitnessedTransactionsBuilder("table")
+                .startTransaction()
+                .write(5, 10, 15)
+                .write(6, 10, 15)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10, 15)
+                .delete(5, 10)
+                .read(5, 10)
+                .endTransaction()
+                .startTransaction()
+                .read(5, 10)
+                .endTransaction()
+                .build();
+        WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
+                .history(transactions)
+                .transactionStore(readableTransactionStore)
+                .build();
+        SerializableInvariant.INSTANCE.accept(workflowHistory, invalidTransactions::addAll);
+        assertThat(invalidTransactions).isEmpty();
+    }
+}u}(jt (6c7f1d05425e8759d68b71073e9525eaf8f11057ju uatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/runner/AntithesisWorkflowValidatorRunnerTest.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Frunner%2FAntithesisWorkflowValidatorRunnerTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u Xb  @@ -0,0 +1,140 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.runner;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doAnswer;
+import static org.mockito.Mockito.doThrow;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.times;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
+
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.invariant.InvariantReporter;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.Future;
+import java.util.concurrent.atomic.AtomicBoolean;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class AntithesisWorkflowValidatorRunnerTest {
+
+    private static final ListeningExecutorService EXECUTOR_SERVICE =
+            MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(8));
+
+    @Mock
+    private Workflow workflow;
+
+    @Mock
+    private WorkflowHistory workflowHistory;
+
+    @Mock
+    private InvariantReporter<Void> invariantReporterOne;
+
+    @Mock
+    private InvariantReporter<Void> invariantReporterTwo;
+
+    private WorkflowAndInvariants<Workflow> workflowAndInvariants;
+
+    @Before
+    public void before() {
+        when(workflow.run()).thenReturn(workflowHistory);
+        workflowAndInvariants = WorkflowAndInvariants.of(workflow, invariantReporterOne, invariantReporterTwo);
+    }
+
+    @Test
+    public void runExecutesWorkflowAndInvokesInvariantReporters() {
+        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(workflowAndInvariants);
+        verify(workflow, times(1)).run();
+        verify(invariantReporterOne, times(1)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+
+    @Test
+    public void runValidatesAllInvariantsIgnoringExceptions() {
+        doThrow(new RuntimeException()).when(invariantReporterOne).report(any());
+        doThrow(new RuntimeException()).when(invariantReporterTwo).report(any());
+        new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE).run(workflowAndInvariants);
+        verify(workflow, times(1)).run();
+        verify(invariantReporterOne, times(1)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+
+    @Test
+    public void runExecutesMultipleWorkflowsAndWaitsForAllToFinishBeforeInvokingInvariantReporter() {
+        CountDownLatch slowWorkflowCanMakeProgress = new CountDownLatch(1);
+        AtomicBoolean slowWorkflowIsDone = new AtomicBoolean(false);
+
+        Workflow slowWorkflow = mock(Workflow.class);
+        when(slowWorkflow.run()).thenAnswer(_input -> {
+            try {
+                slowWorkflowCanMakeProgress.await();
+                slowWorkflowIsDone.set(true);
+                return workflowHistory;
+            } catch (InterruptedException e) {
+                Thread.currentThread().interrupt();
+                throw new RuntimeException(e);
+            }
+        });
+
+        doAnswer(_invocation -> {
+                    assertThat(slowWorkflowIsDone.get())
+                            .as("the invariant reporter ran, even though the slow workflow was not done yet")
+                            .isTrue();
+                    return null;
+                })
+                .when(invariantReporterOne)
+                .report(any());
+
+        ExecutorService backgroundExecutor = PTExecutors.newSingleThreadExecutor();
+        try {
+            Future<Void> validation = backgroundExecutor.submit(() -> {
+                WorkflowAndInvariants<Workflow> slowWorkflowAndInvariants =
+                        WorkflowAndInvariants.of(slowWorkflow, invariantReporterOne);
+                new AntithesisWorkflowValidatorRunner(EXECUTOR_SERVICE)
+                        .run(slowWorkflowAndInvariants, workflowAndInvariants);
+                return null;
+            });
+
+            assertThat(validation).as("the slow workflow was not actually slow").isNotDone();
+
+            slowWorkflowCanMakeProgress.countDown();
+            Futures.getUnchecked(validation);
+        } finally {
+            backgroundExecutor.shutdown();
+        }
+
+        verify(workflow, times(1)).run();
+        verify(slowWorkflow, times(1)).run();
+        verify(invariantReporterOne, times(2)).report(any());
+        verify(invariantReporterTwo, times(1)).report(any());
+    }
+}u}(jt (b5153a38953e7417f0f9867686cd369359e28c9eju patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X_  @@ -0,0 +1,145 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.NAMES_TO_REFERENCES_TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLES_TO_ATLAS_METADATA;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Consumer;
+import org.junit.Before;
+import org.junit.Test;
+
+public final class AtlasDbInteractiveTransactionTest {
+
+    private TransactionManager manager;
+
+    @Before
+    public void before() {
+        manager = TransactionManagers.createInMemory(Set.of());
+        manager.getKeyValueService().createTables(TABLES_TO_ATLAS_METADATA);
+    }
+
+    @Test
+    public void witnessRecordAllActions() {
+        assertThat(readWrite(transaction -> {
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
+                .containsExactly(
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void readHandlesEmptyAndPresentValue() {
+        assertThat(readWrite(transaction -> {
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
+                .containsExactly(
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+    }
+
+    @Test
+    public void readThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.read(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void writeThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(
+                transaction -> transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE));
+    }
+
+    @Test
+    public void deleteThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void readThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.read(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void writeThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE));
+    }
+
+    @Test
+    public void deleteThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        return manager.runTaskWithRetry(atlasTransaction -> {
+            AtlasDbInteractiveTransaction interactiveTransaction =
+                    new AtlasDbInteractiveTransaction(atlasTransaction, NAMES_TO_REFERENCES_TABLE_1);
+            transactionConsumer.accept(interactiveTransaction);
+            return interactiveTransaction.witness();
+        });
+    }
+
+    private void assertThatThrownWhenUnknownTableReferenced(
+            Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
+                    transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
+                    return null;
+                }))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Transaction action has unknown table.");
+    }
+
+    private void assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+            Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
+                    AtlasDbInteractiveTransaction transaction =
+                            new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
+                    transaction.witness();
+                    transactionConsumer.accept(transaction);
+                    return null;
+                }))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Transaction has already been witnessed and can no longer perform any actions.");
+    }
+}u}(jt (fa2b7e0a76d3a58878ebde01fd053f11ba48b28cju qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactoryTest.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactoryTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactoryTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactoryTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X@#  @@ -0,0 +1,164 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.logsafe.SafeArg;
+import java.util.Locale;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import org.junit.Test;
+
+public final class AtlasDbTransactionStoreFactoryTest {
+
+    private final TransactionManager transactionManager = TransactionManagers.createInMemory(Set.of());
+    private final AtlasDbTransactionStoreFactory defaultFactory =
+            new AtlasDbTransactionStoreFactory(transactionManager, Optional.empty());
+
+    @Test
+    public void createWillCreateProvidedTablesAndIndexes() {
+        AtlasDbTransactionStoreFactory factory = new AtlasDbTransactionStoreFactory(
+                transactionManager,
+                Optional.of(WorkloadTestHelpers.TABLE_REFERENCE.getNamespace().getName()));
+        factory.create(
+                Map.of(WorkloadTestHelpers.TABLE_1, IsolationLevel.SERIALIZABLE),
+                Set.of(createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_1)));
+        assertThat(transactionManager.getKeyValueService().getAllTableNames())
+                .contains(WorkloadTestHelpers.TABLE_REFERENCE, WorkloadTestHelpers.INDEX_REFERENCE);
+    }
+
+    @Test
+    public void createTableReferenceWithEmptyNamespaceIfNoNamespaceProvided() {
+        assertThat(defaultFactory
+                        .createTableReference(WorkloadTestHelpers.TABLE_1)
+                        .getNamespace()
+                        .isEmptyNamespace())
+                .isTrue();
+    }
+
+    @Test
+    public void createTableReferenceHasNamespaceWhenProvided() {
+        AtlasDbTransactionStoreFactory factory = new AtlasDbTransactionStoreFactory(
+                transactionManager, Optional.of(WorkloadTestHelpers.NAMESPACE.getName()));
+        assertThat(factory.createTableReference(WorkloadTestHelpers.TABLE_1).getNamespace())
+                .isEqualTo(WorkloadTestHelpers.NAMESPACE);
+    }
+
+    @Test
+    public void toAtlasTablesConvertsSerializableTablesCorrectly() {
+        assertThat(defaultFactory.toAtlasTables(
+                        Map.of(WorkloadTestHelpers.TABLE_1, IsolationLevel.SERIALIZABLE), Set.of()))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1),
+                        AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
+    }
+
+    @Test
+    public void toAtlasTablesConvertsSerializableIndexTablesCorrectly() {
+        assertThat(defaultFactory.toAtlasTables(
+                        Map.of(WorkloadTestHelpers.TABLE_1, IsolationLevel.SERIALIZABLE),
+                        Set.of(createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_1))))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1),
+                        AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1_INDEX_1),
+                        AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE)));
+    }
+
+    @Test
+    public void toAtlasTablesHandlesMultipleTablesAndIndexesCorrectly() {
+        assertThat(defaultFactory.toAtlasTables(
+                        Map.of(
+                                WorkloadTestHelpers.TABLE_1,
+                                IsolationLevel.SERIALIZABLE,
+                                WorkloadTestHelpers.TABLE_2,
+                                IsolationLevel.SNAPSHOT),
+                        Set.of(
+                                createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_1),
+                                createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_2, WorkloadTestHelpers.TABLE_1),
+                                createIndexTable(WorkloadTestHelpers.TABLE_2_INDEX_1, WorkloadTestHelpers.TABLE_2))))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1),
+                        AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1_INDEX_1),
+                        AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_1_INDEX_2),
+                        AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_2),
+                        AtlasDbUtils.tableMetadata(ConflictHandler.RETRY_ON_WRITE_WRITE),
+                        defaultFactory.createTableReference(WorkloadTestHelpers.TABLE_2_INDEX_1),
+                        AtlasDbUtils.tableMetadata(ConflictHandler.IGNORE_ALL)));
+    }
+
+    @Test
+    public void throwsWhenIndexReferencesUnknownPrimaryTable() {
+        IndexTable goodIndexTable = createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_2, WorkloadTestHelpers.TABLE_1);
+        IndexTable badIndexTable = createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, "blah");
+        assertThatLoggableExceptionThrownBy(() -> defaultFactory.create(
+                        Map.of(WorkloadTestHelpers.TABLE_1, IsolationLevel.SERIALIZABLE),
+                        Set.of(goodIndexTable, badIndexTable)))
+                .hasMessageContaining("Found indexes which reference an unknown primary table")
+                .hasExactlyArgs(SafeArg.of("indexesWithUnknownPrimaryTables", Set.of(badIndexTable)));
+    }
+
+    @Test
+    public void throwsWhenPrimaryAndIndexTableHaveConflictingNames() {
+        assertThatLoggableExceptionThrownBy(() -> defaultFactory.create(
+                        Map.of(
+                                WorkloadTestHelpers.TABLE_1,
+                                IsolationLevel.SERIALIZABLE,
+                                WorkloadTestHelpers.TABLE_1_INDEX_1,
+                                IsolationLevel.SERIALIZABLE),
+                        Set.of(createIndexTable(
+                                WorkloadTestHelpers.TABLE_1.toUpperCase(Locale.ROOT),
+                                WorkloadTestHelpers.TABLE_1_INDEX_1))))
+                .hasMessageContaining("Found indexes which have the same name as primary tables")
+                .hasExactlyArgs(SafeArg.of("conflictingTableNames", Set.of(WorkloadTestHelpers.TABLE_1)));
+    }
+
+    @Test
+    public void throwsWhenIndexTablesHaveDuplicateNames() {
+        assertThatLoggableExceptionThrownBy(() -> defaultFactory.create(
+                        Map.of(
+                                WorkloadTestHelpers.TABLE_1,
+                                IsolationLevel.SERIALIZABLE,
+                                WorkloadTestHelpers.TABLE_2,
+                                IsolationLevel.SERIALIZABLE),
+                        Set.of(
+                                createIndexTable(
+                                        WorkloadTestHelpers.TABLE_1_INDEX_1.toUpperCase(Locale.ROOT),
+                                        WorkloadTestHelpers.TABLE_1),
+                                createIndexTable(WorkloadTestHelpers.TABLE_1_INDEX_1, WorkloadTestHelpers.TABLE_2))))
+                .hasMessageContaining("Found index tables with the same name")
+                .hasExactlyArgs(SafeArg.of("duplicateTableIndexNames", Set.of(WorkloadTestHelpers.TABLE_1_INDEX_1)));
+    }
+
+    private IndexTable createIndexTable(String indexTableName, String primaryTableName) {
+        return IndexTable.builder()
+                .indexTableName(indexTableName)
+                .primaryTableName(primaryTableName)
+                .build();
+    }
+}u}(jt (5ec56f77b39005e45c63e6495f68b817646fecc6ju jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X^0  @@ -0,0 +1,226 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.INDEX_REFERENCE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLES_TO_ATLAS_METADATA;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1_INDEX_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_THREE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doAnswer;
+import static org.mockito.Mockito.doReturn;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.spy;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.Iterables;
+import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.KeyValueService;
+import com.palantir.atlasdb.transaction.api.ConditionAwareTransactionTask;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.encoding.V1EncodingStrategy;
+import com.palantir.atlasdb.transaction.impl.TransactionConstants;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore.CommitTimestampProvider;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+import org.junit.Before;
+import org.junit.Test;
+
+public final class AtlasDbTransactionStoreTest {
+
+    private static final long START_TS = 1;
+    private static final long COMMIT_TS = 2;
+
+    private TransactionManager manager;
+
+    private AtlasDbTransactionStore store;
+
+    @Before
+    public void before() {
+        manager = TransactionManagers.createInMemory(Set.of());
+        store = AtlasDbTransactionStore.create(manager, TABLES_TO_ATLAS_METADATA);
+    }
+
+    @Test
+    public void createsTables() {
+        assertThat(manager.getKeyValueService().getAllTableNames()).contains(TABLE_REFERENCE, INDEX_REFERENCE);
+    }
+
+    @Test
+    public void canWriteDataToStore() {
+        Optional<WitnessedTransaction> witnessedTransactionPrimaryTable =
+                store.readWrite(List.of(WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE)));
+        Optional<WitnessedTransaction> witnessedTransactionIndexTable =
+                store.readWrite(List.of(WriteTransactionAction.of(TABLE_1_INDEX_1, WORKLOAD_CELL_TWO, VALUE_ONE)));
+        assertThat(witnessedTransactionPrimaryTable).isPresent();
+        assertThat(witnessedTransactionIndexTable).isPresent();
+        assertThat(store.get(TABLE_1, WORKLOAD_CELL_ONE)).contains(VALUE_ONE);
+        assertThat(store.get(TABLE_1_INDEX_1, WORKLOAD_CELL_TWO)).contains(VALUE_ONE);
+    }
+
+    @Test
+    public void witnessedTransactionMaintainsOrder() {
+        List<WitnessedTransactionAction> actions = List.of(
+                WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, 100),
+                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, Optional.of(100)),
+                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_THREE, Optional.empty()),
+                WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, 24),
+                WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(24)));
+        Optional<WitnessedTransaction> maybeTransaction = store.readWrite(actions.stream()
+                .map(action -> action.accept(WitnessToActionVisitor.INSTANCE))
+                .collect(Collectors.toList()));
+        assertThat(maybeTransaction).isPresent().hasValueSatisfying(txn -> {
+            assertThat(txn.actions()).containsExactlyElementsOf(actions);
+            assertThat(txn.commitTimestamp()).isNotEmpty();
+        });
+    }
+
+    @Test
+    public void readWriteHandlesAllTransactionTypes() {
+        store.readWrite(List.of(WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE)));
+        assertThat(store.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+                .isPresent()
+                .map(WitnessedTransaction::actions)
+                .map(Iterables::getOnlyElement)
+                .map(WitnessedReadTransactionAction.class::cast)
+                .map(WitnessedReadTransactionAction::value)
+                .contains(Optional.of(VALUE_ONE));
+        store.readWrite(List.of(DeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
+        assertThat(store.get(TABLE_1, WORKLOAD_CELL_ONE)).isEmpty();
+    }
+
+    @Test
+    public void readWriteThrowsWhenTableDoesNotExist() {
+        assertThatThrownBy(() -> store.readWrite(List.of(ReadTransactionAction.of("chocolate", WORKLOAD_CELL_ONE))))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Transaction action has unknown table.");
+    }
+
+    @Test
+    public void readWriteReturnsEmptyWhenExceptionThrown() {
+        TransactionManager transactionManager = mock(TransactionManager.class);
+        KeyValueService keyValueService = mock(KeyValueService.class);
+        when(transactionManager.getKeyValueService()).thenReturn(keyValueService);
+        when(transactionManager.runTaskWithRetry(any())).thenThrow(new RuntimeException());
+        AtlasDbTransactionStore transactionStore = AtlasDbTransactionStore.create(
+                transactionManager, Map.of(TABLE_REFERENCE, AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
+        assertThat(transactionStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+                .isEmpty();
+    }
+
+    @Test
+    public void readWriteHandlesReadOnlyTransaction() {
+        Optional<WitnessedTransaction> witnessedTransaction =
+                store.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE)));
+        assertThat(witnessedTransaction).isPresent();
+        assertThat(witnessedTransaction.get().commitTimestamp()).isEmpty();
+    }
+
+    @Test
+    public void abortedTransactionsReturnEmpty() {
+        TransactionManager onlyAbortsManager = spy(manager);
+        Transaction abortedTransaction = mock(Transaction.class);
+        when(abortedTransaction.isAborted()).thenReturn(true);
+        doReturn(abortedTransaction).when(onlyAbortsManager).runTaskWithConditionWithRetry(any(Supplier.class), any());
+        AtlasDbTransactionStore onlyAbortsStore =
+                AtlasDbTransactionStore.create(onlyAbortsManager, TABLES_TO_ATLAS_METADATA);
+        assertThat(onlyAbortsStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
+                .isEmpty();
+    }
+
+    @Test
+    public void keyAlreadyExistExceptionResultsInMaybeWitnessedTransaction() {
+        WriteTransactionAction writeTransactionAction =
+                WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+        TransactionManager keyAlreadyExistsExceptionThrowingStore = spy(manager);
+        doAnswer(invocation -> {
+                    Supplier<CommitTimestampProvider> commitTimestampFetcher = invocation.getArgument(0);
+                    ConditionAwareTransactionTask<Void, CommitTimestampProvider, Exception> task =
+                            invocation.getArgument(1);
+                    return manager.runTaskWithConditionWithRetry(commitTimestampFetcher, (txn, condition) -> {
+                        manager.getKeyValueService()
+                                .putUnlessExists(
+                                        TransactionConstants.TRANSACTION_TABLE,
+                                        Map.of(
+                                                V1EncodingStrategy.INSTANCE.encodeStartTimestampAsCell(
+                                                        txn.getTimestamp()),
+                                                Ints.toByteArray(-1)));
+                        task.execute(txn, condition);
+                        return null;
+                    });
+                })
+                .when(keyAlreadyExistsExceptionThrowingStore)
+                .runTaskWithConditionWithRetry(any(Supplier.class), any());
+        AtlasDbTransactionStore onlyKeyAlreadyExistsThrowingStore =
+                AtlasDbTransactionStore.create(keyAlreadyExistsExceptionThrowingStore, TABLES_TO_ATLAS_METADATA);
+        assertThat(onlyKeyAlreadyExistsThrowingStore.readWrite(List.of(writeTransactionAction)))
+                .hasValueSatisfying(witnessedTransaction -> {
+                    assertThat(witnessedTransaction).isInstanceOf(MaybeWitnessedTransaction.class);
+                    assertThat(witnessedTransaction.actions()).containsExactly(writeTransactionAction.witness());
+                });
+    }
+
+    @Test
+    public void getCommitTimestampIsEmptyWhenMatchesStartTimestamp() {
+        CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();
+        commitTimestampProvider.throwIfConditionInvalid(START_TS);
+        assertThat(commitTimestampProvider.getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .isEmpty();
+    }
+
+    @Test
+    public void getCommitTimestampThrowsWhenNoTimestampSet() {
+        assertThatThrownBy(() -> new CommitTimestampProvider().getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining(
+                        "Timestamp has not been set, which means the pre commit condition has never been executed");
+    }
+
+    @Test
+    public void getCommitTimestampReturnsPresentWhenCommitAndStartTimestampMismatch() {
+        CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();
+        commitTimestampProvider.throwIfConditionInvalid(COMMIT_TS);
+        assertThat(commitTimestampProvider.getCommitTimestampOrThrowIfMaybeNotCommitted(START_TS))
+                .hasValue(COMMIT_TS);
+    }
+}u}(jt (eb63f7e70bff1527685e728d66979d4f8f1a1f60ju tatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryTransactionReplayerTest.javaju addedju KJju K j u KJj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryTransactionReplayerTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,74 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.Tuple2;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class InMemoryTransactionReplayerTest {
+
+    private static final WitnessedWriteTransactionAction WRITE_TRANSACTION_ACTION_1 =
+            ImmutableWitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+    private static final WitnessedWriteTransactionAction WRITE_TRANSACTION_ACTION_2 =
+            ImmutableWitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO);
+
+    @Test
+    public void readActionsAreIgnored() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        inMemoryTransactionReplayer.visit(
+                ImmutableWitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+        assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
+    }
+
+    @Test
+    public void writesAreRecorded() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_1);
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_2);
+        assertThat(inMemoryTransactionReplayer.getValues())
+                .containsExactlyInAnyOrder(
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)),
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_TWO, Optional.of(VALUE_TWO)));
+    }
+
+    @Test
+    public void deletesAreRecorded() {
+        InMemoryTransactionReplayer inMemoryTransactionReplayer = new InMemoryTransactionReplayer();
+        assertThat(inMemoryTransactionReplayer.getValues()).isEmpty();
+        inMemoryTransactionReplayer.visit(WRITE_TRANSACTION_ACTION_1);
+        inMemoryTransactionReplayer.visit(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
+        inMemoryTransactionReplayer.visit(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO));
+        assertThat(inMemoryTransactionReplayer.getValues())
+                .containsExactlyInAnyOrder(
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_ONE, Optional.empty()),
+                        new Tuple2<>(TABLE_WORKLOAD_CELL_TWO, Optional.empty()));
+    }
+}u}(jt (d2773b68972e300a262ebb1f8c2a24f280280cfdju patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javaju addedju Klju K j u Klj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,108 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
+import com.palantir.atlasdb.workload.store.ValidationStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class InMemoryValidationStoreTest {
+
+    @Test
+    public void writeActionsPersistValues() {
+        InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
+                FullyWitnessedTransaction.builder()
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .build(),
+                FullyWitnessedTransaction.builder()
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
+                        .build()));
+        assertThat(store.values().toJavaMap())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        TABLE_WORKLOAD_CELL_ONE,
+                        Optional.of(VALUE_ONE),
+                        TABLE_WORKLOAD_CELL_TWO,
+                        Optional.of(VALUE_TWO)));
+    }
+
+    @Test
+    public void deleteActionsPutsEmptyOptionalForCell() {
+        InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
+                FullyWitnessedTransaction.builder()
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE))
+                        .build(),
+                FullyWitnessedTransaction.builder()
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
+                        .build()));
+        assertThat(store.values().toJavaMap())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        TABLE_WORKLOAD_CELL_ONE, Optional.empty(), TABLE_WORKLOAD_CELL_TWO, Optional.of(VALUE_ONE)));
+    }
+
+    @Test
+    public void writesDeletesAreProcessedInOrder() {
+        InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
+                FullyWitnessedTransaction.builder()
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .build(),
+                FullyWitnessedTransaction.builder()
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
+                        .build(),
+                FullyWitnessedTransaction.builder()
+                        .startTimestamp(5)
+                        .commitTimestamp(6)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_TWO))
+                        .build()));
+        assertThat(store.values().toJavaMap())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_TWO)));
+    }
+
+    @Test
+    public void valuesCannotBeModified() {
+        ValidationStore validationStore = InMemoryValidationStore.create(List.of());
+        validationStore.values().put(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_TWO));
+        assertThat(validationStore.values()).isEmpty();
+    }
+}u     }(jt (39182042109aa67130bcfe8f623f893918091d21ju oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessToActionVisitorTest.javaju addedju K=ju K j u K=j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessToActionVisitorTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X)  @@ -0,0 +1,61 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class WitnessToActionVisitorTest {
+
+    private static final String TABLE = "table";
+    private static final WorkloadCell WORKLOAD_CELL = ImmutableWorkloadCell.of(523, 2999);
+    private static final Integer VALUE = 912;
+
+    @Test
+    public void convertsReadsCorrectly() {
+        WitnessedReadTransactionAction witnessedRead =
+                WitnessedReadTransactionAction.of(TABLE, WORKLOAD_CELL, Optional.of(VALUE));
+        ReadTransactionAction read = WitnessToActionVisitor.INSTANCE.visit(witnessedRead);
+        assertThat(read.table()).isEqualTo(witnessedRead.table());
+        assertThat(read.cell()).isEqualTo(witnessedRead.cell());
+    }
+
+    @Test
+    public void convertsWritesCorrectly() {
+        WitnessedWriteTransactionAction witnessedWrite =
+                WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL, VALUE);
+        WriteTransactionAction write = WitnessToActionVisitor.INSTANCE.visit(witnessedWrite);
+        assertThat(write.table()).isEqualTo(witnessedWrite.table());
+        assertThat(write.cell()).isEqualTo(witnessedWrite.cell());
+        assertThat(write.value()).isEqualTo(witnessedWrite.value());
+    }
+
+    @Test
+    public void convertsDeletesCorrectly() {
+        WitnessedDeleteTransactionAction witnessedDelete = WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL);
+        DeleteTransactionAction delete = WitnessToActionVisitor.INSTANCE.visit(witnessedDelete);
+        assertThat(delete.table()).isEqualTo(witnessedDelete.table());
+        assertThat(delete.cell()).isEqualTo(witnessedDelete.cell());
+    }
+}u}(jt (2b067a134a06d3e605fca8d36dacf3678a76ffceju qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaju addedju Krju K j u Krj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u Xr  @@ -0,0 +1,114 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.logsafe.Preconditions;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicLong;
+
+public final class WitnessedTransactionsBuilder {
+
+    private final List<WitnessedTransaction> witnessedTransactions = new ArrayList<>();
+
+    private final AtomicLong timestampCounter = new AtomicLong();
+    private final String table;
+
+    public WitnessedTransactionsBuilder(String table) {
+        this.table = table;
+    }
+
+    public WitnessedTransactionBuilder startTransaction() {
+        return new WitnessedTransactionBuilder(timestampCounter.incrementAndGet());
+    }
+
+    public List<WitnessedTransaction> build() {
+        return List.copyOf(witnessedTransactions);
+    }
+
+    public final class WitnessedTransactionBuilder {
+        private final List<WitnessedTransactionAction> actions = new ArrayList<>();
+
+        private boolean needsCommitTimestamp = false;
+
+        private final long startTimestamp;
+
+        public WitnessedTransactionBuilder(long startTimestamp) {
+            this.startTimestamp = startTimestamp;
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column, Optional<Integer> valueRead) {
+            actions.add(WitnessedReadTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), valueRead));
+            return this;
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column, Integer valueRead) {
+            return read(row, column, Optional.of(valueRead));
+        }
+
+        public WitnessedTransactionBuilder read(Integer row, Integer column) {
+            return read(row, column, Optional.empty());
+        }
+
+        public WitnessedTransactionBuilder write(Integer row, Integer column, Integer value) {
+            actions.add(WitnessedWriteTransactionAction.of(table, ImmutableWorkloadCell.of(row, column), value));
+            needsCommitTimestamp = true;
+            return this;
+        }
+
+        public WitnessedTransactionBuilder delete(Integer row, Integer column) {
+            actions.add(WitnessedDeleteTransactionAction.of(table, ImmutableWorkloadCell.of(row, column)));
+            needsCommitTimestamp = true;
+            return this;
+        }
+
+        public WitnessedTransactionsBuilder endTransaction() {
+            Optional<Long> commitTimestamp =
+                    needsCommitTimestamp ? Optional.of(timestampCounter.incrementAndGet()) : Optional.empty();
+            return endTransaction(commitTimestamp);
+        }
+
+        public WitnessedTransactionsBuilder endTransaction(Long commitTimestamp) {
+            return endTransaction(Optional.of(commitTimestamp));
+        }
+
+        public WitnessedTransactionsBuilder endTransaction(Optional<Long> commitTimestamp) {
+            if (needsCommitTimestamp) {
+                Preconditions.checkArgument(
+                        commitTimestamp.isPresent(),
+                        "Commit timestamp must be provided when the transaction has any writes or deletes.");
+                Preconditions.checkArgument(
+                        startTimestamp < commitTimestamp.get(),
+                        "Commit timestamp must be greater than the start timestamp.");
+            }
+            witnessedTransactions.add(FullyWitnessedTransaction.builder()
+                    .startTimestamp(startTimestamp)
+                    .actions(actions)
+                    .commitTimestamp(commitTimestamp)
+                    .build());
+            return WitnessedTransactionsBuilder.this;
+        }
+    }
+}u}(jt (ad2234f0c3aa6c382c76189b72d5534773d719d6ju hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javaju addedju K>ju K j u K>j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X'  @@ -0,0 +1,62 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.keyvalue.api.Namespace;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import java.util.Map;
+
+public final class WorkloadTestHelpers {
+    public static final String TABLE_1 = "foo";
+
+    public static final String TABLE_2 = "bar";
+    public static final String TABLE_1_INDEX_1 = TABLE_1 + "_index";
+
+    public static final String TABLE_1_INDEX_2 = TABLE_1 + "_index_2";
+    public static final String TABLE_2_INDEX_1 = TABLE_2 + "_index";
+    public static final TableReference TABLE_REFERENCE = TableReference.create(Namespace.DEFAULT_NAMESPACE, TABLE_1);
+    public static final TableReference INDEX_REFERENCE =
+            TableReference.create(TABLE_REFERENCE.getNamespace(), TABLE_1_INDEX_1);
+
+    public static final Map<String, TableReference> NAMES_TO_REFERENCES_TABLE_1 = Map.of(
+            TABLE_1, TABLE_REFERENCE,
+            TABLE_1_INDEX_1, INDEX_REFERENCE);
+
+    public static final Map<TableReference, byte[]> TABLES_TO_ATLAS_METADATA = Map.of(
+            TABLE_REFERENCE,
+            AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
+            INDEX_REFERENCE,
+            AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE_INDEX));
+
+    public static final Namespace NAMESPACE = Namespace.create("workload");
+    public static final WorkloadCell WORKLOAD_CELL_ONE = ImmutableWorkloadCell.of(50, 10);
+    public static final WorkloadCell WORKLOAD_CELL_TWO = ImmutableWorkloadCell.of(1257, 521);
+    public static final WorkloadCell WORKLOAD_CELL_THREE =
+            ImmutableWorkloadCell.builder().key(567).column(405234).build();
+    public static final Integer VALUE_ONE = 541;
+    public static final Integer VALUE_TWO = 334;
+    public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_ONE =
+            TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_ONE);
+    public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
+            TableAndWorkloadCell.of(TABLE_1, WORKLOAD_CELL_TWO);
+    public static final String WORKFLOW = "example-workflow";
+}u}(jt (d495a71c18ca7b125092f092c371e0a4a455ad73ju atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitorTest.javaju addedju KAju K j u KAj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javaj%u X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X
  @@ -0,0 +1,65 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyLong;
+import static org.mockito.Mockito.verifyNoInteractions;
+import static org.mockito.Mockito.when;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class OnlyCommittedWitnessedTransactionVisitorTest {
+
+    private static final FullyWitnessedTransaction READ_ONLY_WITNESSED_TRANSACTION =
+            FullyWitnessedTransaction.builder().startTimestamp(100L).build();
+
+    private static final MaybeWitnessedTransaction MAYBE_WITNESSED_TRANSACTION = MaybeWitnessedTransaction.builder()
+            .startTimestamp(100L)
+            .commitTimestamp(101L)
+            .build();
+
+    @Mock
+    private ReadOnlyTransactionStore transactionStore;
+
+    @Test
+    public void fullyCommittedTransactionsAreNeverChecked() {
+        assertThat(READ_ONLY_WITNESSED_TRANSACTION.accept(
+                        new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(READ_ONLY_WITNESSED_TRANSACTION);
+        verifyNoInteractions(transactionStore);
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsEmptyWhenNotCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(false);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .isEmpty();
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsFullyWitnessedWhenCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(true);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(MAYBE_WITNESSED_TRANSACTION.toFullyWitnessed());
+    }
+}u}(jt (c5349645dc81bf0c8bc33bc720961e281110a64fju xatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionsTest.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionsTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,131 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.List;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class WitnessedTransactionsTest {
+    @Mock
+    private ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    @Test
+    public void returnsUnderlyingWitnessedTransactions() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(twoToEight)))
+                .containsExactly(twoToEight);
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(readOnlyAtFive)))
+                .containsExactly(readOnlyAtFive);
+    }
+
+    @Test
+    public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore, ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
+                .containsExactly(fourToSix, threeToSeven, twoToEight);
+    }
+
+    @Test
+    public void sortsReadOnlyTransactionsByStartTimestamp() {
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
+                .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
+    }
+
+    @Test
+    public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
+
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        ImmutableList.of(
+                                twoToEight,
+                                readOnlyAtNine,
+                                fourToSix,
+                                readOnlyAtFive,
+                                readOnlyAtThree,
+                                readOnlyAtSeven)))
+                .containsExactly(
+                        readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
+    }
+
+    @Test
+    public void filterRemovesUncommittedTransactions() {
+        MaybeWitnessedTransaction committedMaybeWitnessedTransaction =
+                createMaybeWitnessedTransactionWithoutActions(1, 3, true);
+        MaybeWitnessedTransaction notCommittedTransaction = createMaybeWitnessedTransactionWithoutActions(2, 8, false);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        assertThat(WitnessedTransactions.sortAndFilterTransactions(
+                        readOnlyTransactionStore,
+                        List.of(
+                                committedMaybeWitnessedTransaction,
+                                notCommittedTransaction,
+                                readOnlyAtFive,
+                                fourToSix)))
+                .containsExactly(committedMaybeWitnessedTransaction.toFullyWitnessed(), readOnlyAtFive, fourToSix);
+    }
+
+    private MaybeWitnessedTransaction createMaybeWitnessedTransactionWithoutActions(
+            long start, long commit, boolean committed) {
+        when(readOnlyTransactionStore.isCommitted(eq(start))).thenReturn(committed);
+        return MaybeWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+
+    private static FullyWitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
+        return FullyWitnessedTransaction.builder().startTimestamp(start).build();
+    }
+
+    private static FullyWitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+}u}(jt (c09467b6d6f4e762d6c4c365ffa0ba54a464e80eju ^atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/util/AtlasDbUtilsTest.javaju addedju K7ju K j u K7j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtilsTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtilsTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtilsTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XF  @@ -0,0 +1,55 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.util;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.protobuf.InvalidProtocolBufferException;
+import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import org.junit.Test;
+
+public class AtlasDbUtilsTest {
+    @Test
+    public void indexMetadataUsesTheCorrectConflictHandler() throws InvalidProtocolBufferException {
+        assertThat(TableMetadataPersistence.TableMetadata.parseFrom(
+                                AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE))
+                        .getConflictHandler())
+                .isEqualTo(TableMetadataPersistence.TableConflictHandler.SERIALIZABLE_INDEX);
+        assertThat(TableMetadataPersistence.TableMetadata.parseFrom(
+                                AtlasDbUtils.indexMetadata(ConflictHandler.RETRY_ON_WRITE_WRITE))
+                        .getConflictHandler())
+                .isEqualTo(TableMetadataPersistence.TableConflictHandler.IGNORE_ALL);
+        assertThat(TableMetadataPersistence.TableMetadata.parseFrom(
+                                AtlasDbUtils.indexMetadata(ConflictHandler.IGNORE_ALL))
+                        .getConflictHandler())
+                .isEqualTo(TableMetadataPersistence.TableConflictHandler.IGNORE_ALL);
+        assertThat(TableMetadataPersistence.TableMetadata.parseFrom(
+                                AtlasDbUtils.indexMetadata(ConflictHandler.RETRY_ON_VALUE_CHANGED))
+                        .getConflictHandler())
+                .isEqualTo(TableMetadataPersistence.TableConflictHandler.IGNORE_ALL);
+    }
+
+    @Test
+    public void toConflictHandlerHandlesAllIsolationLevelCases() {
+        assertThat(AtlasDbUtils.toConflictHandler(IsolationLevel.NONE)).isEqualTo(ConflictHandler.IGNORE_ALL);
+        assertThat(AtlasDbUtils.toConflictHandler(IsolationLevel.SNAPSHOT))
+                .isEqualTo(ConflictHandler.RETRY_ON_WRITE_WRITE);
+        assertThat(AtlasDbUtils.toConflictHandler(IsolationLevel.SERIALIZABLE)).isEqualTo(ConflictHandler.SERIALIZABLE);
+    }
+}u}(jt (c661ec5533851b62afb963d1f472d967b8a67e83ju qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunnerTest.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u Xc  @@ -0,0 +1,133 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.times;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.verifyNoInteractions;
+import static org.mockito.Mockito.when;
+
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.Future;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.jmock.lib.concurrent.DeterministicScheduler;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ConcurrentTransactionRunnerTest {
+    private static final int DEFAULT_TASK_MULTIPLICITY = 100;
+
+    private final KeyedTransactionTask<TransactionStore> task = mock(KeyedTransactionTask.class);
+    private final TransactionStore store = mock(TransactionStore.class);
+    private final DeterministicScheduler scheduler = new DeterministicScheduler();
+    private final ListeningExecutorService executorService = MoreExecutors.listeningDecorator(scheduler);
+    private final ConcurrentTransactionRunner<TransactionStore> runner =
+            new ConcurrentTransactionRunner<>(store, executorService);
+
+    @Before
+    public void setupTask() {
+        when(task.apply(any(), anyInt()))
+                .thenAnswer(invocation ->
+                        Optional.of(createWitnessedTransactionWithStartTimestamp(invocation.getArgument(1))));
+    }
+
+    @Test
+    public void throwsIfRunningTaskNegativeNumberOfTimes() {
+        assertThatThrownBy(() -> runner.runConcurrentTransactionTask(task, -1))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Tasks must be run a non-negative number of times");
+        verifyNoInteractions(task);
+    }
+
+    @Test
+    public void runsTaskAndAggregatesResults() {
+        Future<List<WitnessedTransaction>> witnessedTransactionsFuture =
+                runner.runConcurrentTransactionTask(task, DEFAULT_TASK_MULTIPLICITY);
+        assertThat(witnessedTransactionsFuture).isNotDone();
+        scheduler.runUntilIdle();
+        assertThat(witnessedTransactionsFuture).isDone();
+        List<WitnessedTransaction> witnessedTransactions = Futures.getUnchecked(witnessedTransactionsFuture);
+        assertThat(witnessedTransactions)
+                .containsExactlyElementsOf(IntStream.range(0, DEFAULT_TASK_MULTIPLICITY)
+                        .mapToObj(ConcurrentTransactionRunnerTest::createWitnessedTransactionWithStartTimestamp)
+                        .collect(Collectors.toList()));
+    }
+
+    @Test
+    public void resultFiltersOutTransactionsThatCouldNotBeWitnessed() {
+        Set<Integer> failingTasks = ImmutableSet.of(3, 7, 11, 27, 41);
+        failingTasks.forEach(
+                failingTask -> when(task.apply(any(), eq(failingTask))).thenReturn(Optional.empty()));
+
+        Future<List<WitnessedTransaction>> witnessedTransactionsFuture =
+                runner.runConcurrentTransactionTask(task, DEFAULT_TASK_MULTIPLICITY);
+        scheduler.runUntilIdle();
+        List<WitnessedTransaction> witnessedTransactions = Futures.getUnchecked(witnessedTransactionsFuture);
+        assertThat(witnessedTransactions)
+                .containsExactlyInAnyOrderElementsOf(IntStream.range(0, DEFAULT_TASK_MULTIPLICITY)
+                        .filter(index -> !failingTasks.contains(index))
+                        .mapToObj(ConcurrentTransactionRunnerTest::createWitnessedTransactionWithStartTimestamp)
+                        .collect(Collectors.toList()));
+    }
+
+    @Test
+    public void aggregatedResultWaitsForIndividuallySlowTransactions() {
+        Future<List<WitnessedTransaction>> witnessedTransactionsFuture =
+                runner.runConcurrentTransactionTask(task, DEFAULT_TASK_MULTIPLICITY);
+        for (int iteration = 0; iteration < DEFAULT_TASK_MULTIPLICITY; iteration++) {
+            assertThat(witnessedTransactionsFuture).isNotDone();
+            scheduler.runNextPendingCommand();
+        }
+        assertThat(witnessedTransactionsFuture).isDone();
+    }
+
+    @Test
+    public void storePassedThroughToIndividualTasks() {
+        when(task.apply(any(), anyInt())).thenAnswer(invocation -> {
+            TransactionStore transactionStore = invocation.getArgument(0);
+            transactionStore.readWrite(ImmutableList.of());
+            return Optional.of(createWitnessedTransactionWithStartTimestamp(invocation.getArgument(1)));
+        });
+        runner.runConcurrentTransactionTask(task, DEFAULT_TASK_MULTIPLICITY);
+        scheduler.runUntilIdle();
+        verify(store, times(DEFAULT_TASK_MULTIPLICITY)).readWrite(ImmutableList.of());
+    }
+
+    private static WitnessedTransaction createWitnessedTransactionWithStartTimestamp(int startTimestamp) {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(startTimestamp)
+                .build();
+    }
+}u}(jt (84316bacac0bff7ed7e0091b3a88e14381eec0f0ju eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javaju addedju K<ju K j u K<j!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X
  @@ -0,0 +1,60 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.when;
+
+import com.google.common.util.concurrent.ListeningExecutorService;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.concurrent.ScheduledExecutorService;
+import org.junit.Test;
+
+public class DefaultWorkflowTest {
+    private final TransactionStore store = mock(TransactionStore.class);
+
+    private final KeyedTransactionTask<TransactionStore> transactionTask = mock(KeyedTransactionTask.class);
+
+    private final ScheduledExecutorService scheduler = PTExecutors.newSingleThreadScheduledExecutor();
+    private final ListeningExecutorService executionExecutor = MoreExecutors.listeningDecorator(scheduler);
+
+    private final DefaultWorkflow<TransactionStore> workflow =
+            DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
+
+    @Test
+    public void handlesExceptionsInUnderlyingTasks() {
+        RuntimeException transactionException = new RuntimeException("boo");
+        when(transactionTask.apply(eq(store), anyInt())).thenThrow(transactionException);
+        assertThatThrownBy(workflow::run)
+                .hasMessage("Error when running workflow task")
+                .hasCause(transactionException);
+    }
+
+    private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
+        return new WorkflowConfiguration() {
+            @Override
+            public int iterationCount() {
+                return iterationCount;
+            }
+        };
+    }
+}u}(jt (051afb2dbe0f301ea8ff0ca03da0e8f1a9387a2aju matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleBusyCellWorkflowsTest.javaju addedju Keju K j u Kej!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleBusyCellWorkflowsTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,101 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Collection;
+import java.util.List;
+import java.util.stream.Collectors;
+import org.junit.Test;
+
+public class SingleBusyCellWorkflowsTest {
+    private static final String TABLE_NAME = "busy.cell";
+    private static final int ITERATION_COUNT = 1_000;
+    private static final SingleBusyCellWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleBusyCellWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .iterationCount(ITERATION_COUNT)
+                    .build();
+
+    private final InteractiveTransactionStore transactionStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+    private final Workflow workflow = SingleBusyCellWorkflows.create(
+            transactionStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)),
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(4)));
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore()).isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void transactionsDoNotConflictExcessively() {
+        WorkflowHistory workflowHistory = workflow.run();
+        assertThat(workflowHistory.history()).hasSizeBetween(ITERATION_COUNT / 2, ITERATION_COUNT);
+    }
+
+    @Test
+    public void successfulTransactionsOnlyReadOrModifyTheTargetCell() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.table().equals(TABLE_NAME));
+        assertThat(witnessedTransactionActions)
+                .allMatch(action -> action.cell().equals(SingleBusyCellWorkflows.BUSY_CELL));
+    }
+
+    @Test
+    public void targetCellIsReadModifiedAndDeleted() {
+        WorkflowHistory workflowHistory = workflow.run();
+        List<WitnessedTransactionAction> witnessedTransactionActions = workflowHistory.history().stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(Collection::stream)
+                .collect(Collectors.toList());
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedReadTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedWriteTransactionAction.class::isInstance);
+        assertThat(witnessedTransactionActions).anyMatch(WitnessedDeleteTransactionAction.class::isInstance);
+    }
+}u}(jt (9f49c914b405f0e6c73f59a556f42bf3df6f83c6ju |atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfigurationTest.javaju addedju KHju K j u KHj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfigurationTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfigurationTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfigurationTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,72 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.google.common.util.concurrent.RateLimiter;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import org.junit.Test;
+
+public class SingleRowTwoCellsWorkflowConfigurationTest {
+    private static final TableConfiguration TABLE_CONFIGURATION = ImmutableTableConfiguration.builder()
+            .tableName(WorkloadTestHelpers.TABLE_1)
+            .isolationLevel(IsolationLevel.SERIALIZABLE)
+            .build();
+    private static final ObjectMapper OBJECT_MAPPER = ObjectMappers.newServerObjectMapper();
+
+    static {
+        OBJECT_MAPPER.registerSubtypes(SingleRowTwoCellsWorkflowConfiguration.class);
+    }
+
+    @Test
+    public void rateLimiterCreatedWithConfiguredNumberOfPermits() {
+        SingleRowTwoCellsWorkflowConfiguration configuration = createWithRateLimit(Double.MIN_NORMAL);
+        RateLimiter rateLimiter = configuration.transactionRateLimiter();
+        assertThat(rateLimiter.tryAcquire()).isTrue();
+        assertThat(rateLimiter.tryAcquire())
+                .as("the rate limiter granted two requests, but was not configured to accept more than one every"
+                        + " ~2.2 * 10^308 seconds")
+                .isFalse();
+    }
+
+    @Test
+    public void deserializationIsInverseOfSerialization() throws JsonProcessingException {
+        SingleRowTwoCellsWorkflowConfiguration configuration = createWithRateLimit(5);
+        assertThat(OBJECT_MAPPER.readValue(
+                        OBJECT_MAPPER.writeValueAsString(configuration), WorkflowConfiguration.class))
+                .isEqualTo(configuration);
+    }
+
+    @Test
+    public void rateLimitAccountedForInSerializedForm() throws JsonProcessingException {
+        assertThat(OBJECT_MAPPER.writeValueAsString(createWithRateLimit(10)))
+                .isNotEqualTo(OBJECT_MAPPER.writeValueAsString(createWithRateLimit(20)));
+    }
+
+    private static SingleRowTwoCellsWorkflowConfiguration createWithRateLimit(double rateLimit) {
+        return ImmutableSingleRowTwoCellsWorkflowConfiguration.builder()
+                .tableConfiguration(TABLE_CONFIGURATION)
+                .rateLimit(rateLimit)
+                .iterationCount(10)
+                .build();
+    }
+}u}(jt (4bc5be54fe26532ca6b52d1b18be46aa4b43832dju patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X   @@ -0,0 +1,135 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.Optional;
+import org.junit.Test;
+
+public class SingleRowTwoCellsWorkflowsTest {
+    private static final String TABLE_NAME = "my.coffee";
+    private static final SingleRowTwoCellsWorkflowConfiguration CONFIGURATION =
+            ImmutableSingleRowTwoCellsWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SERIALIZABLE)
+                            .build())
+                    .rateLimit(Double.MAX_VALUE)
+                    .iterationCount(1)
+                    .build();
+
+    @Test
+    public void shouldWriteToFirstCellOnEvenIndices() {
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(0)).isTrue();
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(2)).isTrue();
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(24682468)).isTrue();
+    }
+
+    @Test
+    public void shouldNotWriteToFirstCellOnOddIndices() {
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(1)).isFalse();
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(3)).isFalse();
+        assertThat(SingleRowTwoCellsWorkflows.shouldWriteToFirstCell(35793579)).isFalse();
+    }
+
+    @Test
+    public void createsReadsThenMutationsThenReads() {
+        assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(0, TABLE_NAME))
+                .containsExactly(
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
+                        DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+        assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(1, TABLE_NAME))
+                .containsExactly(
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, 1),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+    }
+
+    @Test
+    public void writesValueCorrespondingToTaskIndexInRelevantCell() {
+        assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(31415926, TABLE_NAME))
+                .containsExactly(
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 31415926),
+                        DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+        assertThat(SingleRowTwoCellsWorkflows.createTransactionActions(6021023, TABLE_NAME))
+                .containsExactly(
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        DeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        WriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, 6021023),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL),
+                        ReadTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL));
+    }
+
+    @Test
+    public void workflowHistoryPreservesStoreAndCapturesWitnessedActions() {
+        TransactionStore memoryStore = AtlasDbTransactionStore.create(
+                TransactionManagers.createInMemory(ImmutableSet.of()),
+                ImmutableMap.of(
+                        TableReference.createWithEmptyNamespace(TABLE_NAME),
+                        AtlasDbUtils.tableMetadata(IsolationLevel.SERIALIZABLE)));
+        WorkflowHistory history = SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
+                        memoryStore, CONFIGURATION, MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)))
+                .run();
+
+        assertThat(history.transactionStore())
+                .as("should return a read only tranasction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+        assertThat(Iterables.getOnlyElement(history.history()).actions())
+                .containsExactly(
+                        WitnessedReadTransactionAction.of(
+                                TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.empty()),
+                        WitnessedReadTransactionAction.of(
+                                TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()),
+                        WitnessedWriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
+                        WitnessedDeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+                        WitnessedReadTransactionAction.of(
+                                TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.of(0)),
+                        WitnessedReadTransactionAction.of(
+                                TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()));
+    }
+}u}(jt (c1f634d4126720aa2ed7f3a586024740f66c9ab0ju datlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingGraphTest.javaju addedju Kjju K j u Kjj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraphTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u XM  @@ -0,0 +1,106 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.google.common.collect.ImmutableMap;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Map;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class RingGraphTest {
+
+    private static final Map<Integer, Integer> VALID_RING = ImmutableMap.of(0, 2, 1, 0, 2, 1);
+
+    @Test
+    public void fromPartialGeneratesRandomRingWhenAllKeysEmpty() {
+        Map<Integer, Optional<Integer>> emptyEdges = ImmutableMap.of(1, Optional.empty(), 2, Optional.empty());
+        assertThatCode(() -> RingGraph.fromPartial(emptyEdges)).doesNotThrowAnyException();
+    }
+
+    @Test
+    public void fromPartialThrowsWhenSomeEntriesAreEmpty() {
+        Map<Integer, Optional<Integer>> partiallyEmptyRing = ImmutableMap.of(0, Optional.of(1), 1, Optional.empty());
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.fromPartial(partiallyEmptyRing))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Graph contains missing entries, thus cannot be made into a ring.")
+                .hasExactlyArgs(SafeArg.of("ring", partiallyEmptyRing));
+    }
+
+    @Test
+    public void fromThrowsMissingEntriesWhenNodeReferencedDoesNotExist() {
+        Map<Integer, Integer> missingNodesRing = ImmutableMap.of(0, 2, 1, 0);
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(missingNodesRing))
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.MISSING_ENTRIES),
+                        SafeArg.of("ring", missingNodesRing));
+    }
+
+    @Test
+    public void fromThrowsCycleExceptionWhenUnableToReachEveryNode() {
+        Map<Integer, Integer> incompleteRing = ImmutableMap.of(0, 1, 1, 1, 2, 0);
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(incompleteRing))
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.EARLY_CYCLE),
+                        SafeArg.of("ring", incompleteRing));
+    }
+
+    @Test
+    public void fromThrowsCycleExceptionWhenEntryNodeNotRevisited() {
+        Map<Integer, Integer> incompleteRing = ImmutableMap.of(0, 1, 1, 1);
+        assertThatLoggableExceptionThrownBy(() -> RingGraph.from(incompleteRing))
+                .isInstanceOf(RingValidationException.class)
+                .hasExactlyArgs(
+                        SafeArg.of("type", RingValidationException.Type.EARLY_CYCLE),
+                        SafeArg.of("ring", incompleteRing));
+    }
+
+    @Test
+    public void generateNewRingCreatesDifferentRing() {
+        RingGraph ringGraph = RingGraph.create(8);
+        boolean uniqueAtLeastOnce = false;
+        for (int iteration = 0; iteration < 10; iteration++) {
+            if (!ringGraph.generateNewRing().asMap().equals(ringGraph.asMap())) {
+                uniqueAtLeastOnce = true;
+                break;
+            }
+        }
+        assertThat(uniqueAtLeastOnce)
+                .as("Check ring generation multiple times as we could randomly generate an identical ring")
+                .isTrue();
+    }
+
+    @Test
+    public void generateNewRingReturnsValidRing() {
+        RingGraph ring = RingGraph.create(8);
+        for (int count = 0; count < 1000; count++) {
+            assertThatCode(() -> RingGraph.from(ring.generateNewRing().asMap())).doesNotThrowAnyException();
+        }
+    }
+
+    @Test
+    public void asMapConvertsCorrectly() {
+        assertThat(RingGraph.from(VALID_RING).asMap()).isEqualTo(VALID_RING);
+    }
+}u}(jt (b76eb98bf9ca3cc3502b229247cd0eb65cd5a3ceju hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowsTest.javaju addedju Kju K j u Kj!u https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj#u https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.javaj%u https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowsTest.java?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X"  @@ -0,0 +1,129 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.ring;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.atlasdb.workload.workflow.ImmutableTableConfiguration;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.Test;
+
+public class RingWorkflowsTest {
+
+    private static final String TABLE_NAME = "ring.ring";
+    private static final RingWorkflowConfiguration CONFIGURATION = ImmutableRingWorkflowConfiguration.builder()
+            .tableConfiguration(ImmutableTableConfiguration.builder()
+                    .tableName(TABLE_NAME)
+                    .isolationLevel(IsolationLevel.SNAPSHOT)
+                    .build())
+            .iterationCount(1)
+            .build();
+
+    private final InteractiveTransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SNAPSHOT)));
+
+    private final AtomicBoolean skipRunning = new AtomicBoolean(false);
+
+    private final Workflow workflow = RingWorkflows.create(
+            memoryStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)),
+            skipRunning);
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore())
+                .as("should return a read only transaction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void ringWorkflowContainsInitialReadsForRing() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.ringSize())
+                .boxed()
+                .map(index ->
+                        WitnessedReadTransactionAction.of(TABLE_NAME, RingWorkflows.cell(index), Optional.empty()))
+                .collect(Collectors.toList());
+        assertThat(actions).containsAll(initialReadActions);
+    }
+
+    @Test
+    public void ringWorkflowContainsInitialWritesForRing() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WorkloadCell> actualWrittenCells = actions.stream()
+                .filter(WitnessedWriteTransactionAction.class::isInstance)
+                .map(WitnessedWriteTransactionAction.class::cast)
+                .map(WitnessedWriteTransactionAction::cell)
+                .collect(Collectors.toList());
+
+        List<WorkloadCell> expectedWrittenCells = IntStream.range(0, CONFIGURATION.ringSize())
+                .boxed()
+                .map(RingWorkflows::cell)
+                .collect(Collectors.toList());
+
+        assertThat(actualWrittenCells).containsAll(expectedWrittenCells);
+    }
+
+    @Test
+    public void ringWorkflowSetsSkipRunningToTrueWhenInvalidRingPresent() {
+        assertThat(skipRunning).isFalse();
+        memoryStore.readWrite(txn -> txn.write(TABLE_NAME, RingWorkflows.cell(0), 99));
+        workflow.run();
+        assertThat(skipRunning).isTrue();
+    }
+
+    @Test
+    public void ringWorkflowDoesNotWitnessTransactionWhenSkipRunningSetToTrue() {
+        skipRunning.set(true);
+        assertThat(workflow.run().history()).isEmpty();
+    }
+}u     }(jt (fd74865ae5dbce637d1193e9c89e5bfa0e17c398ju build.gradleju modifiedju Kju Kj u Kj!u ^https://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/build.gradlej#u ]https://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/build.gradlej%u phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -7,20 +7,20 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.netflix.nebula:gradle-info-plugin:12.0.0'
-        classpath 'com.netflix.nebula:nebula-publishing-plugin:19.0.0'
-        classpath 'com.palantir.baseline:gradle-baseline-java:4.183.0'
-        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.31.0'
-        classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.11.0'
+        classpath 'com.netflix.nebula:gradle-info-plugin:12.1.0'
+        classpath 'com.netflix.nebula:nebula-publishing-plugin:20.2.0'
+        classpath 'com.palantir.baseline:gradle-baseline-java:4.188.0'
+        classpath 'com.palantir.gradle.conjure:gradle-conjure:5.38.0'
+        classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
-        classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.11.0'
-        classpath 'com.palantir.gradle.gitversion:gradle-git-version:0.15.0'
-        classpath 'com.palantir.gradle.jdks:gradle-jdks:0.27.0'
-        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.4.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'
-        classpath 'com.palantir.metricschema:gradle-metric-schema:0.19.0'
+        classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
+        classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
+        classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
+        classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.30.0'
+        classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
-        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.1'
+        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'
         classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
         classpath 'gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1'
         classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'u}(jt (a4ab87ae5dfe5ea58b87630aa98798d3cc44b375ju  changelog/0.794.0/pr-6414.v2.ymlju renamedju K ju K j u K j!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.794.0%2Fpr-6414.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.794.0%2Fpr-6414.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.794.0%2Fpr-6414.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24ajw $changelog/@unreleased/pr-6414.v2.ymlu}(jt (246bf2aaf017b41cf71470bbec554cdb02271aecju  changelog/0.794.0/pr-6434.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.794.0%2Fpr-6434.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.794.0%2Fpr-6434.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.794.0%2Fpr-6434.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Delete unused timelock APIs for backup/restore
+  links:
+  - https://github.com/palantir/atlasdb/pull/6434u}(jt (ea1fa587c4768a0296351fd45b459c4a91e80107ju  changelog/0.796.0/pr-6438.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.796.0%2Fpr-6438.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.796.0%2Fpr-6438.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.796.0%2Fpr-6438.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Delete unused DisabledNamespaces code
+  links:
+  - https://github.com/palantir/atlasdb/pull/6438u}(jt (13dfd77db0f46236b04de3278feb263f5f8427caju  changelog/0.803.0/pr-6450.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.803.0%2Fpr-6450.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.803.0%2Fpr-6450.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.803.0%2Fpr-6450.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Improved NotInitializedException exception message
+  links:
+  - https://github.com/palantir/atlasdb/pull/6450u}(jt (d93664ff214c9077aa41febf718e69648167c087ju  changelog/0.804.0/pr-6451.v2.ymlju addedju K	ju K j u K	j!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.804.0%2Fpr-6451.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.804.0%2Fpr-6451.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.804.0%2Fpr-6451.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,9 @@
+type: improvement
+improvement:
+  description: |-
+    While reviewing JFR from some high volume AtlasDB client services (think mountains), I noticed they spend a significant amount of time verifying that the Cassandra ports are the same in
+    `com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService.getKnownPort():300`.
+
+    We can optimize this for the happy path where the port is known and consistent for a ~10x improvement.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6451u}(jt (2b7ebf3f2002680b8eeae307892324077aef87b8ju  changelog/0.806.0/pr-6455.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.806.0%2Fpr-6455.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.806.0%2Fpr-6455.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.806.0%2Fpr-6455.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -0,0 +1,6 @@
+type: fix
+fix:
+  description: AtlasDB clients can now recover after receiving a dissenting response
+    to a Cassandra Topology check.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6455u}(jt (65ffe362769b62fe351cbc6ceac4acd99f1d9599ju  changelog/0.808.0/pr-6461.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.808.0%2Fpr-6461.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.808.0%2Fpr-6461.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.808.0%2Fpr-6461.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X&  @@ -0,0 +1,7 @@
+type: fix
+fix:
+  description: All versions of `getRange()` and `getRanges()` now correctly no longer
+    include locally written columns that do not match the provided `ColumnSelection`
+    in their `RowResult`s.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6461u}(jt (bc64692f16e707b561a8379f3f0058ed44b4c10aju  changelog/0.809.0/pr-6462.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.809.0%2Fpr-6462.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.809.0%2Fpr-6462.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.809.0%2Fpr-6462.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: mapAllServersToOrigin accounts for duplicates in map construction
+  links:
+  - https://github.com/palantir/atlasdb/pull/6462u}(jt (85ba589854ac34ebd9c8c823c51cf5a3b31cf07dju  changelog/0.811.0/pr-6459.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.811.0%2Fpr-6459.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.811.0%2Fpr-6459.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.811.0%2Fpr-6459.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Adds a durable writes invariant check to the workload server
+  links:
+  - https://github.com/palantir/atlasdb/pull/6459u}(jt (5b0f02dce8a3b1ce70a2ebe8001043a75759ffeaju  changelog/0.812.0/pr-6467.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.812.0%2Fpr-6467.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.812.0%2Fpr-6467.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.812.0%2Fpr-6467.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: Remove slf4j javadocs link
+  links:
+  - https://github.com/palantir/atlasdb/pull/6467u}(jt (146eafaef341f53b563527d249d44fac28f8c6d9ju  changelog/0.813.0/pr-6471.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.813.0%2Fpr-6471.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.813.0%2Fpr-6471.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.813.0%2Fpr-6471.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Adds interfaces to the workload server which makes integration with
+    dropwizard or other server frameworks.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6471u}(jt (910ff9b18328d5969f5dbcc3ae9411d1bcb02878ju  changelog/0.814.0/pr-6473.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.814.0%2Fpr-6473.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.814.0%2Fpr-6473.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.814.0%2Fpr-6473.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: When no Cassandra hosts are available, AtlasDB throws `AtlasDbDependencyException`
+    instead of `SafeIllegalStateException`.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6473u}(jt (3309c1d1cee08ce85d9ae1b7416b9cc06ad14e0fju  changelog/0.816.0/pr-6474.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.816.0%2Fpr-6474.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.816.0%2Fpr-6474.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.816.0%2Fpr-6474.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -0,0 +1,5 @@
+type: feature
+feature:
+  description: Add getActiveNamespaces endpoint
+  links:
+  - https://github.com/palantir/atlasdb/pull/6474u}(jt (7a46efe502264df936f40615fb54393461e5d277ju  changelog/0.820.0/pr-6475.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.820.0%2Fpr-6475.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.820.0%2Fpr-6475.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.820.0%2Fpr-6475.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -0,0 +1,5 @@
+type: feature
+feature:
+  description: '[TEX] Wrap KVS service reads and track bytes read (no metrics)'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6475u}(jt (1982907aadb718672df6cccb587875586f7006c9ju  changelog/0.823.0/pr-6485.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.823.0%2Fpr-6485.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.823.0%2Fpr-6485.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.823.0%2Fpr-6485.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X  @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Asynchronous initialisation now logs when the initialisation an individual
+    object starts, as well as when the executor is shutdown.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6485u}(jt (b6ee9b4dfa1da170c4c398511447a1f49d7e82b7ju  changelog/0.824.0/pr-6489.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.824.0%2Fpr-6489.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.824.0%2Fpr-6489.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.824.0%2Fpr-6489.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Oracle tables (including overflow) will be created with PCTFREE 0.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6489u}(jt (362f242519ecfa9cf598fb9dcff80dc55b91c4b9ju  changelog/0.826.0/pr-6496.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.826.0%2Fpr-6496.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.826.0%2Fpr-6496.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.826.0%2Fpr-6496.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: Upgraded Postgres from 42.4.1 -> 42.4.3 to resolve a CVE.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6496u}(jt (d950412e3468eb3c6435b88c85e31c8234c831c5ju  changelog/0.828.0/pr-6488.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.828.0%2Fpr-6488.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.828.0%2Fpr-6488.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.828.0%2Fpr-6488.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Improve Sqlite namespace loader implementation
+  links:
+  - https://github.com/palantir/atlasdb/pull/6488u}(jt (5f61b2bef5ebfcacc253aaa5cda9840887460417ju  changelog/0.829.0/pr-6499.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.829.0%2Fpr-6499.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.829.0%2Fpr-6499.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.829.0%2Fpr-6499.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Disable AtlasDB DB connection testing by default in favor of relying
+    on Hikari's connection testing.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6499u}(jt (dc8ccab7fb0c3ad8d14f7566ab89d660c8508c47ju  changelog/0.835.0/pr-6498.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.835.0%2Fpr-6498.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.835.0%2Fpr-6498.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.835.0%2Fpr-6498.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Choose optimal IOT compression based on table params
+  links:
+  - https://github.com/palantir/atlasdb/pull/6498u}(jt (fdaa0f14c0403bcf95c1cdd5c0f860c959c67c95ju  changelog/0.835.0/pr-6508.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.835.0%2Fpr-6508.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.835.0%2Fpr-6508.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.835.0%2Fpr-6508.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: DB queries to Oracle/Postgres now use bind variables for rownum/limit
+    terms.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6508u}(jt (1d48df051a7627207eae8887272331c4921a8011ju  changelog/0.836.0/pr-6516.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.836.0%2Fpr-6516.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.836.0%2Fpr-6516.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.836.0%2Fpr-6516.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: AtlasDB no longer registers the `/sweep` endpoints.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6516u}(jt (7cd0781ff20be0bdee6ed7080da226fe65bc85c7ju  changelog/0.837.0/pr-6527.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.837.0%2Fpr-6527.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.837.0%2Fpr-6527.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.837.0%2Fpr-6527.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Use debian images for workload-server and timelock-server for integration
+    tests
+  links:
+  - https://github.com/palantir/atlasdb/pull/6527u}(jt (f78ad2562cc65a8da82f8d8fc92f20368d1a9981ju  changelog/0.838.0/pr-6518.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.838.0%2Fpr-6518.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.838.0%2Fpr-6518.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.838.0%2Fpr-6518.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u X+  @@ -0,0 +1,7 @@
+type: improvement
+improvement:
+  description: We no longer use Jersey sub-resource locators for user-facing timestamp,
+    timestamp management and lock v1 endpoints (except for the asynchronous TimeLock
+    service).
+  links:
+  - https://github.com/palantir/atlasdb/pull/6518u}(jt (c822ef68c4ddbb417971592d568f0a9d209eaa87ju  changelog/0.839.0/pr-6528.v2.ymlju addedju Kju K j u Kj!u vhttps://github.com/palantir/atlasdb/blob/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.839.0%2Fpr-6528.v2.ymlj#u uhttps://github.com/palantir/atlasdb/raw/8f84c8e871dab93807b30578351ec19a2ad9f24a/changelog%2F0.839.0%2Fpr-6528.v2.ymlj%u https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.839.0%2Fpr-6528.v2.yml?ref=8f84c8e871dab93807b30578351ec19a2ad9f24aj'u @@ -0,0 +1,6 @@
+type: fix
+fix:
+  description: The Conjure Undertow handled lock resource now uses Optionals to correctly
+    return 204s with no content.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6528ueu(38bdd18d49c76e8b904b429f62614b2394ca21f4}(sha(38bdd18d49c76e8b904b429f62614b2394ca21f4node_idEC_kwDOAjP5fdoAKDM4YmRkMThkNDljNzZlOGI5MDRiNDI5ZjYyNjE0YjIzOTRjYTIxZjQcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-29T00:17:49Zu	committer}(j~ 
Ahmed Alouanej~ aalouane@palantir.comj~ 2023-04-29T00:17:49Zumessagefailed?tree}(j~ (a1779db8ec8cdf667496b6a7c6f1458cedadbac7url`https://api.github.com/repos/palantir/atlasdb/git/trees/a1779db8ec8cdf667496b6a7c6f1458cedadbac7uj~ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/38bdd18d49c76e8b904b429f62614b2394ca21f4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRMYi0ACgkQPlMHVIT1
yhoJ3Af+NH2RJYM98bkgu1g5OV8lGm0JOnrJUS79Mw5OFw0QGwWsom6svtxtpbSJ
oSFgfqtelfFkDW8341WNUUUdDQ7/GAhCkEe58qLbwPJG4Je5KOVW56Q2pcrDCxia
8ZNrOi21rKwsrxsFkLo6QR6dWLzPTIVSfqV74Plrs317F0EC/cLRQ13sjMoFDJ4D
pcXkuOzc+FjejI0k2xKBudLRbfTuomPTT2vMtcqeSXzschU3hx28TL4+niTH4j6w
uD7Irh5ernP4tG05aPCOK3o2PX1TQkzUi6EahjB7buvsRbhM9/Yi93WBB/tp8RUf
JBuLjZsFtdH20W8axT3YpGMbqEJd2A==
=lqcb
-----END PGP SIGNATURE-----payloadtree a1779db8ec8cdf667496b6a7c6f1458cedadbac7
parent 938e71b1bfa083f258458b0c5c0649f6564863c0
author Ahmed Alouane <aalouane@palantir.com> 1682727469 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682727469 +0100

failed?
uuj~ ^https://api.github.com/repos/palantir/atlasdb/commits/38bdd18d49c76e8b904b429f62614b2394ca21f4html_urlShttps://github.com/palantir/atlasdb/commit/38bdd18d49c76e8b904b429f62614b2394ca21f4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/38bdd18d49c76e8b904b429f62614b2394ca21f4/commentsj~ }(loginergo14idJj~ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j~ #https://api.github.com/users/ergo14j~ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj~ }(j~ ergo14j~ Jj~ MDQ6VXNlcjMwOTAzNzM2j~ 4https://avatars.githubusercontent.com/u/30903736?v=4j~ h5j~ #https://api.github.com/users/ergo14j~ https://github.com/ergo14j~ -https://api.github.com/users/ergo14/followersj~ :https://api.github.com/users/ergo14/following{/other_user}j~ 3https://api.github.com/users/ergo14/gists{/gist_id}j~ :https://api.github.com/users/ergo14/starred{/owner}{/repo}j~ 1https://api.github.com/users/ergo14/subscriptionsj~ (https://api.github.com/users/ergo14/orgsj~ )https://api.github.com/users/ergo14/reposj~ 4https://api.github.com/users/ergo14/events{/privacy}j~ 3https://api.github.com/users/ergo14/received_eventsj~ Userj~ uparents]}(j~ (938e71b1bfa083f258458b0c5c0649f6564863c0j~ ^https://api.github.com/repos/palantir/atlasdb/commits/938e71b1bfa083f258458b0c5c0649f6564863c0j~ Shttps://github.com/palantir/atlasdb/commit/938e71b1bfa083f258458b0c5c0649f6564863c0uastats}(totalK	additionsK	deletionsKufiles]}(j~ (ed19592a81600828b8d67af4cea4a22037204e64filename.circleci/config.ymlstatusmodifiedj~ Kj~ KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/38bdd18d49c76e8b904b429f62614b2394ca21f4/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/38bdd18d49c76e8b904b429f62614b2394ca21f4/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=38bdd18d49c76e8b904b429f62614b2394ca21f4patch@@ -155,7 +155,7 @@ workflows:
               test_suite: [8]
           filters:
             branches:
-              only: develop
+              only: aatest23
             tags:
               only: /.*/
       - trial-publish:uau(4d6cb8483fa936b8e70f91c7db7bdcd58b814fd0}(sha(4d6cb8483fa936b8e70f91c7db7bdcd58b814fd0node_idEC_kwDOAjP5fdoAKDRkNmNiODQ4M2ZhOTM2YjhlNzBmOTFjN2RiN2JkY2Q1OGI4MTRmZDAcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-03-31T13:02:22Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-03-31T13:02:22ZumessageAutorelease 0.826.0

[skip ci]tree}(j~ (624e5c06c8b68494b20b6a7006f63080ea6a54efurl`https://api.github.com/repos/palantir/atlasdb/git/trees/624e5c06c8b68494b20b6a7006f63080ea6a54efuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4d6cb8483fa936b8e70f91c7db7bdcd58b814fd0
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQm2eQACgkQhbrR8ip7mDB0/gEA/KzO/+k8U8QVyPZSA5sy0hIg
lnNBBX0vX1LL6esU20gBAOFU+DdpJ/mO6CvfWV6xJbSn89lU8HNMbGQbp+AfiNGf
=AGpl
-----END PGP SIGNATURE-----
payloadX0  tree 624e5c06c8b68494b20b6a7006f63080ea6a54ef
parent 7362f2f8b3b1b8a6ebb9a9cdd1fe6b80505b9a88
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1680267742 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1680267742 +0000

Autorelease 0.826.0

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/4d6cb8483fa936b8e70f91c7db7bdcd58b814fd0html_urlShttps://github.com/palantir/atlasdb/commit/4d6cb8483fa936b8e70f91c7db7bdcd58b814fd0comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4d6cb8483fa936b8e70f91c7db7bdcd58b814fd0/commentsj }(loginsvc-autoreleaseidJ(j~ MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j ,https://api.github.com/users/svc-autoreleasej" "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj
 }(j' svc-autoreleasej) J(j~ MDQ6VXNlcjUxNzE4MzQ2j+ 4https://avatars.githubusercontent.com/u/51718346?v=4j- h5j ,https://api.github.com/users/svc-autoreleasej" "https://github.com/svc-autoreleasej0 6https://api.github.com/users/svc-autorelease/followersj2 Chttps://api.github.com/users/svc-autorelease/following{/other_user}j4 <https://api.github.com/users/svc-autorelease/gists{/gist_id}j6 Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j8 :https://api.github.com/users/svc-autorelease/subscriptionsj: 1https://api.github.com/users/svc-autorelease/orgsj< 2https://api.github.com/users/svc-autorelease/reposj> =https://api.github.com/users/svc-autorelease/events{/privacy}j@ <https://api.github.com/users/svc-autorelease/received_eventsjB UserjD uparents]}(j~ (7362f2f8b3b1b8a6ebb9a9cdd1fe6b80505b9a88j ^https://api.github.com/repos/palantir/atlasdb/commits/7362f2f8b3b1b8a6ebb9a9cdd1fe6b80505b9a88j" Shttps://github.com/palantir/atlasdb/commit/7362f2f8b3b1b8a6ebb9a9cdd1fe6b80505b9a88uastats}(totalK 	additionsK 	deletionsK ufiles]}(j~ (362f242519ecfa9cf598fb9dcff80dc55b91c4b9filename changelog/0.826.0/pr-6496.v2.ymlstatusrenamedj^ K j_ K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/4d6cb8483fa936b8e70f91c7db7bdcd58b814fd0/changelog%2F0.826.0%2Fpr-6496.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/4d6cb8483fa936b8e70f91c7db7bdcd58b814fd0/changelog%2F0.826.0%2Fpr-6496.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.826.0%2Fpr-6496.v2.yml?ref=4d6cb8483fa936b8e70f91c7db7bdcd58b814fd0previous_filename$changelog/@unreleased/pr-6496.v2.ymluau(f4759f8351fe208942a33e983b847c2e963ae3bf}(sha(f4759f8351fe208942a33e983b847c2e963ae3bfnode_idEC_kwDOAjP5fdoAKGY0NzU5ZjgzNTFmZTIwODk0MmEzM2U5ODNiODQ3YzJlOTYzYWUzYmYcommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-04-13T14:45:39Zu	committer}(j{ GitHubj} noreply@github.comj 2023-04-13T14:45:39ZumessagezInteractive transactions for workload server (#6522)

Allows for interactive transactions with workload server for AtlasDbtree}(js (24a47069e0eaec93f886f7c3104b2ed42e8c6e08url`https://api.github.com/repos/palantir/atlasdb/git/trees/24a47069e0eaec93f886f7c3104b2ed42e8c6e08uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f4759f8351fe208942a33e983b847c2e963ae3bf
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkOBWTCRBK7hj4Ov3rIwAAAVcIADEG990e9/uB1D2yCqQ/M2pm
hcT/qnihRIiWwiAWRRDfR9m5OI5NNYtzm7lD+YZZFTvYyTkizBFLjMnM12lWr2zh
7Gi0D4TmUegDLOx2KEQjxPpTce8SPTcck7x6JGaCSOQoNmPwIYriePQefUxZk4bs
aR/4fprhPqobfe4mKdPzjpVAq6vdorGqvpoDWqykNVuvKgDnWuI6Z2vOgOkxqUZr
XwmtcYeRd/LZpeXaDSHZSFXOO3e8CRWt71zk/FmguX0DrtHlT9s9e6pW7Lo1VXpx
Bq+GQiprlikRjGe0JpNYbXc7J2JDXcVXrHVX5pWG8zbsVZnFIrgFXX/IbG/yZPM=
=s/3U
-----END PGP SIGNATURE-----
payloadXM  tree 24a47069e0eaec93f886f7c3104b2ed42e8c6e08
parent 58299e570b240d99516727b5bcc2b126d3941c21
author Sam-Kramer <sam.c.kramer@gmail.com> 1681397139 +0100
committer GitHub <noreply@github.com> 1681397139 +0000

Interactive transactions for workload server (#6522)

Allows for interactive transactions with workload server for AtlasDb
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/f4759f8351fe208942a33e983b847c2e963ae3bfhtml_urlShttps://github.com/palantir/atlasdb/commit/f4759f8351fe208942a33e983b847c2e963ae3bfcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f4759f8351fe208942a33e983b847c2e963ae3bf/commentsjy }(login
Sam-KrameridJ^2_ ju MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j web-flowj J/ju MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(js (58299e570b240d99516727b5bcc2b126d3941c21j ^https://api.github.com/repos/palantir/atlasdb/commits/58299e570b240d99516727b5bcc2b126d3941c21j Shttps://github.com/palantir/atlasdb/commit/58299e570b240d99516727b5bcc2b126d3941c21uastats}(totalM	additionsMt	deletionsK=ufiles](}(js (d9abc2f2c00a1ff33edf1dbcaefbf672fcd91ad1filenamenatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/InteractiveTransactionStore.javastatusaddedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/f4759f8351fe208942a33e983b847c2e963ae3bf/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.javaraw_urlhttps://github.com/palantir/atlasdb/raw/f4759f8351fe208942a33e983b847c2e963ae3bf/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FInteractiveTransactionStore.java?ref=f4759f8351fe208942a33e983b847c2e963ae3bfpatchX  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.palantir.atlasdb.workload.store;
+
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import java.util.Optional;
+import java.util.function.Consumer;
+
+public interface InteractiveTransactionStore extends TransactionStore {
+    /**
+     * Provides a convenient interface for interacting with a transaction, and having each action recorded.
+     * @param interactiveTransactionConsumer Consumer which performs gets/puts/deletes
+     * @return The witnessed transaction, if successfully committed.
+     */
+    Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer);
+}u}(js (4f80972ed51d1ca703c845e6db8af278009a14f3j oatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javaj addedj K#j K j K#j https://github.com/palantir/atlasdb/blob/f4759f8351fe208942a33e983b847c2e963ae3bf/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj https://github.com/palantir/atlasdb/raw/f4759f8351fe208942a33e983b847c2e963ae3bf/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=f4759f8351fe208942a33e983b847c2e963ae3bfj X  @@ -0,0 +1,35 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import java.util.List;
+import java.util.Optional;
+
+/**
+ * Allows for convenient interaction with a transactional store.
+ */
+public interface InteractiveTransaction {
+    Optional<Integer> read(String table, WorkloadCell workloadCell);
+
+    void write(String table, WorkloadCell workloadCell, Integer value);
+
+    void delete(String table, WorkloadCell workloadCell);
+
+    List<WitnessedTransactionAction> witness();
+}u}(js (b8129f7ddecb9ee76388afabb2090692f9aa773ej latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj addedj Ksj K j Ksj https://github.com/palantir/atlasdb/blob/f4759f8351fe208942a33e983b847c2e963ae3bf/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://github.com/palantir/atlasdb/raw/f4759f8351fe208942a33e983b847c2e963ae3bf/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=f4759f8351fe208942a33e983b847c2e963ae3bfj XT  @@ -0,0 +1,115 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import com.google.common.primitives.Ints;
+import com.palantir.atlasdb.keyvalue.api.Cell;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.BiFunction;
+import javax.annotation.concurrent.NotThreadSafe;
+
+@NotThreadSafe
+final class AtlasDbInteractiveTransaction implements InteractiveTransaction {
+
+    private final Transaction transaction;
+
+    private final Map<String, TableReference> tables;
+
+    private final List<WitnessedTransactionAction> witnessedTransactionActions = new ArrayList<>();
+
+    private boolean hasFinished = false;
+
+    public AtlasDbInteractiveTransaction(Transaction transaction, Map<String, TableReference> tables) {
+        this.transaction = transaction;
+        this.tables = tables;
+    }
+
+    @Override
+    public Optional<Integer> read(String table, WorkloadCell workloadCell) {
+        return run(
+                (tableReference, atlasCell) -> {
+                    Map<Cell, byte[]> values = transaction.get(tableReference, Set.of(atlasCell));
+                    Optional<Integer> valueRead =
+                            Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
+                    witnessedTransactionActions.add(WitnessedReadTransactionAction.of(table, workloadCell, valueRead));
+                    return valueRead;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public void write(String table, WorkloadCell workloadCell, Integer value) {
+        run(
+                (tableReference, atlasCell) -> {
+                    transaction.put(tableReference, Map.of(atlasCell, Ints.toByteArray(value)));
+                    witnessedTransactionActions.add(WitnessedWriteTransactionAction.of(table, workloadCell, value));
+                    return null;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public void delete(String table, WorkloadCell workloadCell) {
+        run(
+                (tableReference, atlasCell) -> {
+                    transaction.delete(tableReference, Set.of(atlasCell));
+                    witnessedTransactionActions.add(WitnessedDeleteTransactionAction.of(table, workloadCell));
+                    return null;
+                },
+                table,
+                workloadCell);
+    }
+
+    @Override
+    public List<WitnessedTransactionAction> witness() {
+        hasFinished = true;
+        return witnessedTransactionActions;
+    }
+
+    private TableReference getTableReferenceOrThrow(String table) {
+        return Optional.ofNullable(tables.get(table))
+                .orElseThrow(() -> new SafeIllegalArgumentException(
+                        "Transaction action has unknown table.",
+                        SafeArg.of("tableName", table),
+                        SafeArg.of("availableTables", tables)));
+    }
+
+    private <T> T run(BiFunction<TableReference, Cell, T> function, String table, WorkloadCell workloadCell) {
+        Preconditions.checkState(
+                !hasFinished, "Transaction has already been witnessed and can no longer perform any actions.");
+        Cell atlasCell = AtlasDbUtils.toAtlasCell(workloadCell);
+        TableReference tableReference = getTableReferenceOrThrow(table);
+        return function.apply(tableReference, atlasCell);
+    }
+}u}(js (5b51481e66557d7e98571bd6013d938c2104c450j fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj modifiedj Kj K4j KRj https://github.com/palantir/atlasdb/blob/f4759f8351fe208942a33e983b847c2e963ae3bf/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://github.com/palantir/atlasdb/raw/f4759f8351fe208942a33e983b847c2e963ae3bf/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=f4759f8351fe208942a33e983b847c2e963ae3bfj Xp  @@ -18,38 +18,34 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
-import com.google.common.primitives.Ints;
-import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.PreCommitCondition;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
-import com.palantir.atlasdb.workload.util.AtlasDbUtils;
-import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
 import java.util.Map;
 import java.util.Optional;
-import java.util.Set;
 import java.util.concurrent.atomic.AtomicReference;
+import java.util.function.Consumer;
 import java.util.function.Function;
 import java.util.function.Supplier;
-import java.util.stream.Collectors;
 import javax.annotation.concurrent.NotThreadSafe;
 import one.util.streamex.EntryStream;
 
-public final class AtlasDbTransactionStore implements TransactionStore {
+public final class AtlasDbTransactionStore implements InteractiveTransactionStore {
 
     private static final SafeLogger log = SafeLoggerFactory.get(AtlasDbTransactionStore.class);
     private final TransactionManager transactionManager;
@@ -63,27 +59,30 @@ private AtlasDbTransactionStore(TransactionManager transactionManager, Map<Strin
 
     @Override
     public Optional<Integer> get(String table, WorkloadCell cell) {
-        Cell atlasCell = AtlasDbUtils.toAtlasCell(cell);
-        TableReference tableReference = getTableReferenceOrThrow(table);
-        return transactionManager.runTaskWithRetry(task -> {
-            Map<Cell, byte[]> values = task.get(tableReference, Set.of(atlasCell));
-            return Optional.ofNullable(values.get(atlasCell)).map(Ints::fromByteArray);
-        });
+        return transactionManager.runTaskWithRetry(
+                transaction -> new AtlasDbInteractiveTransaction(transaction, tables).read(table, cell));
     }
 
     @Override
     public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
+        return readWrite(txn -> {
+            AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
+            actions.forEach(action -> action.accept(visitor));
+        });
+    }
+
+    @Override
+    public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer) {
         AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
         Supplier<CommitTimestampProvider> commitTimestampProvider =
                 Suppliers.memoize(() -> new CommitTimestampProvider());
         try {
             Transaction transaction =
                     transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
-                        AtlasDbTransactionActionVisitor visitor = new AtlasDbTransactionActionVisitor(txn);
-                        witnessedActionsReference.set(actions.stream()
-                                .sequential()
-                                .map(action -> action.accept(visitor))
-                                .collect(Collectors.toList()));
+                        AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
+                                new AtlasDbInteractiveTransaction(txn, tables);
+                        interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
+                        witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
                         return txn;
                     });
 
@@ -107,52 +106,31 @@ public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions)
         }
     }
 
-    private TableReference getTableReferenceOrThrow(TransactionAction action) {
-        return getTableReferenceOrThrow(action.table());
-    }
-
-    private TableReference getTableReferenceOrThrow(String table) {
-        return Optional.ofNullable(tables.get(table))
-                .orElseThrow(() -> new SafeIllegalArgumentException(
-                        "Transaction action has unknown table.",
-                        SafeArg.of("readTransactionTableName", table),
-                        SafeArg.of("availableTables", tables)));
-    }
-
-    private class AtlasDbTransactionActionVisitor implements TransactionActionVisitor<WitnessedTransactionAction> {
+    private static class AtlasDbTransactionActionVisitor implements TransactionActionVisitor<Void> {
 
-        private final Transaction transaction;
+        private final InteractiveTransaction transaction;
 
-        public AtlasDbTransactionActionVisitor(Transaction transaction) {
+        public AtlasDbTransactionActionVisitor(InteractiveTransaction transaction) {
             this.transaction = transaction;
         }
 
         @Override
-        public WitnessedTransactionAction visit(ReadTransactionAction readTransactionAction) {
-            Cell cell = AtlasDbUtils.toAtlasCell(readTransactionAction.cell());
-            TableReference tableReference = getTableReferenceOrThrow(readTransactionAction);
-            Map<Cell, byte[]> cells =
-                    transaction.get(tableReference, Set.of(AtlasDbUtils.toAtlasCell(readTransactionAction.cell())));
-            Optional<Integer> value = Optional.ofNullable(cells.get(cell)).map(Ints::fromByteArray);
-            return readTransactionAction.witness(value);
+        public Void visit(ReadTransactionAction readTransactionAction) {
+            transaction.read(readTransactionAction.table(), readTransactionAction.cell());
+            return null;
         }
 
         @Override
-        public WitnessedTransactionAction visit(WriteTransactionAction writeTransactionAction) {
-            TableReference tableReference = getTableReferenceOrThrow(writeTransactionAction);
-            transaction.put(
-                    tableReference,
-                    Map.of(
-                            AtlasDbUtils.toAtlasCell(writeTransactionAction.cell()),
-                            Ints.toByteArray(writeTransactionAction.value())));
-            return writeTransactionAction.witness();
+        public Void visit(WriteTransactionAction writeTransactionAction) {
+            transaction.write(
+                    writeTransactionAction.table(), writeTransactionAction.cell(), writeTransactionAction.value());
+            return null;
         }
 
         @Override
-        public WitnessedTransactionAction visit(DeleteTransactionAction deleteTransactionAction) {
-            TableReference tableReference = getTableReferenceOrThrow(deleteTransactionAction);
-            transaction.delete(tableReference, Set.of(AtlasDbUtils.toAtlasCell(deleteTransactionAction.cell())));
-            return deleteTransactionAction.witness();
+        public Void visit(DeleteTransactionAction deleteTransactionAction) {
+            transaction.delete(deleteTransactionAction.table(), deleteTransactionAction.cell());
+            return null;
         }
     }
 u}(js (b5153a38953e7417f0f9867686cd369359e28c9ej patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/f4759f8351fe208942a33e983b847c2e963ae3bf/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://github.com/palantir/atlasdb/raw/f4759f8351fe208942a33e983b847c2e963ae3bf/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=f4759f8351fe208942a33e983b847c2e963ae3bfj X_  @@ -0,0 +1,145 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.NAMES_TO_REFERENCES_TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLES_TO_ATLAS_METADATA;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.function.Consumer;
+import org.junit.Before;
+import org.junit.Test;
+
+public final class AtlasDbInteractiveTransactionTest {
+
+    private TransactionManager manager;
+
+    @Before
+    public void before() {
+        manager = TransactionManagers.createInMemory(Set.of());
+        manager.getKeyValueService().createTables(TABLES_TO_ATLAS_METADATA);
+    }
+
+    @Test
+    public void witnessRecordAllActions() {
+        assertThat(readWrite(transaction -> {
+                    transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.delete(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
+                .containsExactly(
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void readHandlesEmptyAndPresentValue() {
+        assertThat(readWrite(transaction -> {
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                    transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+                    transaction.read(TABLE_1, WORKLOAD_CELL_ONE);
+                }))
+                .containsExactly(
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.empty()),
+                        WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE),
+                        WitnessedReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, Optional.of(VALUE_ONE)));
+    }
+
+    @Test
+    public void readThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.read(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void writeThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(
+                transaction -> transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE));
+    }
+
+    @Test
+    public void deleteThrowsWhenTableDoesNotExist() {
+        assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void readThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.read(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    @Test
+    public void writeThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.write(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE));
+    }
+
+    @Test
+    public void deleteThrowsWhenInteractiveTransactionAlreadyWitnessed() {
+        assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+                transaction -> transaction.delete(TABLE_1, WORKLOAD_CELL_ONE));
+    }
+
+    private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        return manager.runTaskWithRetry(atlasTransaction -> {
+            AtlasDbInteractiveTransaction interactiveTransaction =
+                    new AtlasDbInteractiveTransaction(atlasTransaction, NAMES_TO_REFERENCES_TABLE_1);
+            transactionConsumer.accept(interactiveTransaction);
+            return interactiveTransaction.witness();
+        });
+    }
+
+    private void assertThatThrownWhenUnknownTableReferenced(
+            Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
+                    transactionConsumer.accept(new AtlasDbInteractiveTransaction(txn, Map.of()));
+                    return null;
+                }))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Transaction action has unknown table.");
+    }
+
+    private void assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(
+            Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {
+        assertThatThrownBy(() -> manager.runTaskWithRetry(txn -> {
+                    AtlasDbInteractiveTransaction transaction =
+                            new AtlasDbInteractiveTransaction(txn, NAMES_TO_REFERENCES_TABLE_1);
+                    transaction.witness();
+                    transactionConsumer.accept(transaction);
+                    return null;
+                }))
+                .isInstanceOf(SafeIllegalStateException.class)
+                .hasMessageContaining("Transaction has already been witnessed and can no longer perform any actions.");
+    }
+}u}(js (f078b01f9f07ade1c536865d8b2a68a6e10d8d76j jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj modifiedj Kj K	j K
j https://github.com/palantir/atlasdb/blob/f4759f8351fe208942a33e983b847c2e963ae3bf/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj https://github.com/palantir/atlasdb/raw/f4759f8351fe208942a33e983b847c2e963ae3bf/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=f4759f8351fe208942a33e983b847c2e963ae3bfj X	  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.workload.store;
 
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.INDEX_REFERENCE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLES_TO_ATLAS_METADATA;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_1_INDEX_1;
 import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
@@ -35,7 +36,6 @@
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
@@ -65,20 +65,14 @@ public final class AtlasDbTransactionStoreTest {
     private static final long START_TS = 1;
     private static final long COMMIT_TS = 2;
 
-    private static final Map<TableReference, byte[]> TABLES = Map.of(
-            TABLE_REFERENCE,
-            AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
-            INDEX_REFERENCE,
-            AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE));
-
     private TransactionManager manager;
 
     private AtlasDbTransactionStore store;
 
     @Before
     public void before() {
         manager = TransactionManagers.createInMemory(Set.of());
-        store = AtlasDbTransactionStore.create(manager, TABLES);
+        store = AtlasDbTransactionStore.create(manager, TABLES_TO_ATLAS_METADATA);
     }
 
     @Test
@@ -162,7 +156,8 @@ public void abortedTransactionsReturnEmpty() {
         Transaction abortedTransaction = mock(Transaction.class);
         when(abortedTransaction.isAborted()).thenReturn(true);
         doReturn(abortedTransaction).when(onlyAbortsManager).runTaskWithConditionWithRetry(any(Supplier.class), any());
-        AtlasDbTransactionStore onlyAbortsStore = AtlasDbTransactionStore.create(onlyAbortsManager, TABLES);
+        AtlasDbTransactionStore onlyAbortsStore =
+                AtlasDbTransactionStore.create(onlyAbortsManager, TABLES_TO_ATLAS_METADATA);
         assertThat(onlyAbortsStore.readWrite(List.of(ReadTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))))
                 .isEmpty();
     }u}(js (ad2234f0c3aa6c382c76189b72d5534773d719d6j hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javaj modifiedj K
j K j K
j https://github.com/palantir/atlasdb/blob/f4759f8351fe208942a33e983b847c2e963ae3bf/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj https://github.com/palantir/atlasdb/raw/f4759f8351fe208942a33e983b847c2e963ae3bf/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=f4759f8351fe208942a33e983b847c2e963ae3bfj X  @@ -18,9 +18,12 @@
 
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import java.util.Map;
 
 public final class WorkloadTestHelpers {
     public static final String TABLE_1 = "foo";
@@ -34,6 +37,16 @@ public final class WorkloadTestHelpers {
     public static final TableReference INDEX_REFERENCE =
             TableReference.create(TABLE_REFERENCE.getNamespace(), TABLE_1_INDEX_1);
 
+    public static final Map<String, TableReference> NAMES_TO_REFERENCES_TABLE_1 = Map.of(
+            TABLE_1, TABLE_REFERENCE,
+            TABLE_1_INDEX_1, INDEX_REFERENCE);
+
+    public static final Map<TableReference, byte[]> TABLES_TO_ATLAS_METADATA = Map.of(
+            TABLE_REFERENCE,
+            AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE),
+            INDEX_REFERENCE,
+            AtlasDbUtils.indexMetadata(ConflictHandler.SERIALIZABLE_INDEX));
+
     public static final Namespace NAMESPACE = Namespace.create("workload");
     public static final WorkloadCell WORKLOAD_CELL_ONE = ImmutableWorkloadCell.of(50, 10);
     public static final WorkloadCell WORKLOAD_CELL_TWO = ImmutableWorkloadCell.of(1257, 521);ueuI     (ed5f796141bc116d2e604f56de1e79bccbafd415}(sha(ed5f796141bc116d2e604f56de1e79bccbafd415node_idEC_kwDOAjP5fdoAKGVkNWY3OTYxNDFiYzExNmQyZTYwNGY1NmRlMWU3OWJjY2JhZmQ0MTUcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-01T13:48:16Zu	committer}(j" 	Tom Papkej$ tpapke@palantir.comj& 2023-06-01T13:48:16ZumessageAddress review commentstree}(j (51356b8f2c057c51303b2c52ad4531d8a1858a2eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/51356b8f2c057c51303b2c52ad4531d8a1858a2euj2 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ed5f796141bc116d2e604f56de1e79bccbafd415
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmR4oaAACgkQmF9s0kaF
Iw0gbwf+Lb4HU6HAoeZrwoQOTdWRFmCMr364+NTo1PWFpRY2gA3xYlXrc2LmtXZi
RS7VJ6civNjT1Q9a/TQd6R/s8G6ABsEzMl+jnu9xt0Tyjos1qf4U4iJvizWLmYFD
i4qLD5XX7Vtb3V/7lMMOIKYEyA4Ocrmnfp5vyKFBtQxnvN0sTUgpGUsVs/EAEjyy
eubfsRhqY2kY7nrOmxu1S1ZpB3BzHOJonjoFhdvWxZWlkeKdhzFxdmrGZjYxEoZP
FTcwIID2EAgPqZOm+k0zvndCU2krsO+4q+AAH3G0MqCYGkZk0yymdTIgLpkMYNPn
cEGQegofE3rpnPwYDmKd+a1YONaWqA==
=9xAD
-----END PGP SIGNATURE-----payloadtree 51356b8f2c057c51303b2c52ad4531d8a1858a2e
parent 19574d917f826df457f993ce8f74cae8a261b26d
author Tom Papke <tpapke@palantir.com> 1685627296 +0100
committer Tom Papke <tpapke@palantir.com> 1685627296 +0100

Address review comments
uuj2 ^https://api.github.com/repos/palantir/atlasdb/commits/ed5f796141bc116d2e604f56de1e79bccbafd415html_urlShttps://github.com/palantir/atlasdb/commit/ed5f796141bc116d2e604f56de1e79bccbafd415comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ed5f796141bc116d2e604f56de1e79bccbafd415/commentsj  }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j2 &https://api.github.com/users/Toemmschej@ https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj( }(jE 	ToemmschejG Jboj MDQ6VXNlcjQzNjc1NDkwjI 4https://avatars.githubusercontent.com/u/43675490?v=4jK h5j2 &https://api.github.com/users/Toemmschej@ https://github.com/ToemmschejN 0https://api.github.com/users/Toemmsche/followersjP =https://api.github.com/users/Toemmsche/following{/other_user}jR 6https://api.github.com/users/Toemmsche/gists{/gist_id}jT =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jV 4https://api.github.com/users/Toemmsche/subscriptionsjX +https://api.github.com/users/Toemmsche/orgsjZ ,https://api.github.com/users/Toemmsche/reposj\ 7https://api.github.com/users/Toemmsche/events{/privacy}j^ 6https://api.github.com/users/Toemmsche/received_eventsj` Userjb uparents]}(j (19574d917f826df457f993ce8f74cae8a261b26dj2 ^https://api.github.com/repos/palantir/atlasdb/commits/19574d917f826df457f993ce8f74cae8a261b26dj@ Shttps://github.com/palantir/atlasdb/commit/19574d917f826df457f993ce8f74cae8a261b26duastats}(totalK9	additionsK	deletionsKufiles](}(j (3baaaaf51b7360fce9a867bd4f521f4017dceb26filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj| Kj} KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ed5f796141bc116d2e604f56de1e79bccbafd415/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ed5f796141bc116d2e604f56de1e79bccbafd415/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=ed5f796141bc116d2e604f56de1e79bccbafd415patchX;  @@ -2412,7 +2412,7 @@ protected LockToken acquireLocksForCommit() {
                                 lockDescriptors, currentTransactionConfig, stackTraceSnapshot))
                         .build());
         if (!lockResponse.wasSuccessful()) {
-            transactionOutcomeMetrics.markLockAcquisitionFailed();
+            transactionOutcomeMetrics.markCommitLockAcquisitionFailed();
             log.error(
                     "Timed out waiting while acquiring commit locks. Timeout was {} ms. "
                             + "First ten required locks were {}.",u}(j (7a4b02962f2c8fcd57bfd60b8b4b157b2e6ed956j gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcome.javaj modifiedj| Kj} Kj Kj https://github.com/palantir/atlasdb/blob/ed5f796141bc116d2e604f56de1e79bccbafd415/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.javaj https://github.com/palantir/atlasdb/raw/ed5f796141bc116d2e604f56de1e79bccbafd415/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.java?ref=ed5f796141bc116d2e604f56de1e79bccbafd415j Xh  @@ -65,7 +65,7 @@ public enum TransactionOutcome {
     ROLLBACK_OTHER,
 
     /**
-     * The transaction failed to acquire write locks at the beginning of the commit protocol.
+     * The transaction failed to acquire commit locks at the beginning of the AtlasDB commit protocol.
      */
-    LOCK_ACQUISITION_FAILED,
+    COMMIT_LOCK_ACQUISITION_FAILED,
 }u}(j (0cf6b112d9082ed759671aab0086b2bf32ccbedbj natlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetrics.javaj modifiedj| Kj} Kj Kj https://github.com/palantir/atlasdb/blob/ed5f796141bc116d2e604f56de1e79bccbafd415/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.javaj https://github.com/palantir/atlasdb/raw/ed5f796141bc116d2e604f56de1e79bccbafd415/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.java?ref=ed5f796141bc116d2e604f56de1e79bccbafd415j X  @@ -85,8 +85,8 @@ public void markRollbackOtherTransaction() {
         getMeter(TransactionOutcome.ROLLBACK_OTHER).mark();
     }
 
-    public void markLockAcquisitionFailed() {
-        getMeter(TransactionOutcome.LOCK_ACQUISITION_FAILED).mark();
+    public void markCommitLockAcquisitionFailed() {
+        getMeter(TransactionOutcome.COMMIT_LOCK_ACQUISITION_FAILED).mark();
     }
 
     @VisibleForTestingu}(j (8732fe7b76fe6fc4d194ebc3c3c808c8ab2df91ej uatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetricsAssert.javaj modifiedj| Kj} Kj Kj https://github.com/palantir/atlasdb/blob/ed5f796141bc116d2e604f56de1e79bccbafd415/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.javaj https://github.com/palantir/atlasdb/raw/ed5f796141bc116d2e604f56de1e79bccbafd415/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.java?ref=ed5f796141bc116d2e604f56de1e79bccbafd415j X  @@ -59,8 +59,8 @@ public TransactionOutcomeMetricsAssert hasRollbackOther(long count) {
         return this;
     }
 
-    public TransactionOutcomeMetricsAssert hasLockAcquisitionFailures(long count) {
-        checkPresentAndCheckCount(TransactionOutcome.LOCK_ACQUISITION_FAILED, count);
+    public TransactionOutcomeMetricsAssert hasCommitLockAcquisitionFailures(long count) {
+        checkPresentAndCheckCount(TransactionOutcome.COMMIT_LOCK_ACQUISITION_FAILED, count);
         return this;
     }
 u}(j (c66fcac2f74aa5be8cdfd05aebf8029a49d9f883j eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javaj modifiedj| Kj} Kj K'j https://github.com/palantir/atlasdb/blob/ed5f796141bc116d2e604f56de1e79bccbafd415/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://github.com/palantir/atlasdb/raw/ed5f796141bc116d2e604f56de1e79bccbafd415/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=ed5f796141bc116d2e604f56de1e79bccbafd415j X  @@ -324,6 +324,8 @@ public void cleanup() {}
     private static final Cell TEST_CELL = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("column1"));
     private static final Cell TEST_CELL_2 = Cell.create(PtBytes.toBytes("row2"), PtBytes.toBytes("column2"));
 
+    private static final byte[] TEST_VALUE = PtBytes.toBytes("value");
+
     @Override
     @Before
     public void setUp() throws Exception {
@@ -1487,29 +1489,20 @@ public void commitThrowsIfRolledBackAtCommitTime_expiredLocks() {
     }
 
     @Test
-    public void commitThrowsIfLockAcquisitionFails() {
-        final Cell cell = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("column1"));
-
-        TimelockService timelockServiceMock = mock(TimelockService.class);
-        // Let request to acquire commit locks time out
-        when(timelockServiceMock.lock(any(), any())).thenReturn(LockResponse.timedOut());
-
-        ConjureStartTransactionsResponse conjureResponse = startTransactionWithWatches();
-        LockImmutableTimestampResponse res = conjureResponse.getImmutableTimestamp();
-        long transactionTs = conjureResponse.getTimestamps().start();
+    public void commitThrowsIfCommitLockAcquisitionFails() {
+        TimelockService timelockService = mock(TimelockService.class);
+        when(timelockService.lock(any(), any())).thenReturn(LockResponse.timedOut());
+        Transaction txn = getSnapshotTransactionWith(timelockService);
 
-        Transaction snapshot = getSnapshotTransactionWith(timelockServiceMock, () -> transactionTs, res, unused -> {});
-
-        // Need a writer to trigger writer commit protocol
-        snapshot.put(TABLE, ImmutableMap.of(cell, PtBytes.toBytes("value")));
-
-        // Lock acquisition should fail and be marked as time out
-        assertThatExceptionOfType(TransactionLockAcquisitionTimeoutException.class)
-                .isThrownBy(snapshot::commit);
+        // We only request commit locks for transactions that write at least one value
+        txn.put(TABLE, ImmutableMap.of(TEST_CELL, TEST_VALUE));
 
+        assertThatThrownBy(txn::commit)
+                .isInstanceOf(TransactionLockAcquisitionTimeoutException.class)
+                .hasMessage("Timed out while acquiring commit locks.");
         TransactionOutcomeMetricsAssert.assertThat(transactionOutcomeMetrics)
                 .hasFailedCommits(1)
-                .hasLockAcquisitionFailures(1);
+                .hasCommitLockAcquisitionFailures(1);
     }
 
     @Test
@@ -2487,6 +2480,14 @@ private void setTransactionConfig(TransactionConfig config) {
         transactionConfig = config;
     }
 
+    private Transaction getSnapshotTransactionWith(TimelockService timelockService) {
+        ConjureStartTransactionsResponse conjureResponse = startTransactionWithWatches();
+        LockImmutableTimestampResponse lockImmutableTimestampResponse = conjureResponse.getImmutableTimestamp();
+        long transactionTs = conjureResponse.getTimestamps().start();
+        return getSnapshotTransactionWith(
+                timelockService, () -> transactionTs, lockImmutableTimestampResponse, unused -> {});
+    }
+
     private Transaction getSnapshotTransactionWith(
             TimelockService timelockService,
             Supplier<Long> startTs,u}(j (b86c6ab4d0e299588d4d550dff55a4b053fb2870j satlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetricsTest.javaj modifiedj| Kj} Kj Kj https://github.com/palantir/atlasdb/blob/ed5f796141bc116d2e604f56de1e79bccbafd415/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.javaj https://github.com/palantir/atlasdb/raw/ed5f796141bc116d2e604f56de1e79bccbafd415/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.java?ref=ed5f796141bc116d2e604f56de1e79bccbafd415j Xw  @@ -72,7 +72,7 @@ public void canMarkVariousOutcomes() {
                 .put(4, transactionOutcomeMetrics::markPutUnlessExistsFailed)
                 .put(5, transactionOutcomeMetrics::markRollbackOtherTransaction)
                 .put(6, transactionOutcomeMetrics::markPreCommitCheckFailed)
-                .put(7, transactionOutcomeMetrics::markLockAcquisitionFailed)
+                .put(7, transactionOutcomeMetrics::markCommitLockAcquisitionFailed)
                 .buildOrThrow();
 
         tasks.entrySet().forEach(entry -> IntStream.range(0, entry.getKey())
@@ -85,7 +85,7 @@ public void canMarkVariousOutcomes() {
                 .hasPutUnlessExistsFailures(4)
                 .hasRollbackOther(5)
                 .hasPreCommitCheckFailures(6)
-                .hasLockAcquisitionFailures(7);
+                .hasCommitLockAcquisitionFailures(7);
     }
 
     @Testueu(20aafba3ae1c128d2bf261193d04f222471edb05}(sha(20aafba3ae1c128d2bf261193d04f222471edb05node_idEC_kwDOAjP5fdoAKDIwYWFmYmEzYWUxYzEyOGQyYmYyNjExOTNkMDRmMjIyNDcxZWRiMDUcommit}(author}(namePatrick Koenigemailpkoenig10@gmail.comdate2023-03-17T18:23:40Zu	committer}(j GitHubjÀ noreply@github.comjŀ 2023-03-17T18:23:40Zumessage>Use AtlasDbDependencyException when no hosts available (#6473)tree}(j (b172ecced70b828d965d95a62b0496462d6a772durl`https://api.github.com/repos/palantir/atlasdb/git/trees/b172ecced70b828d965d95a62b0496462d6a772dujр bhttps://api.github.com/repos/palantir/atlasdb/git/commits/20aafba3ae1c128d2bf261193d04f222471edb05
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkFLAsCRBK7hj4Ov3rIwAA1lIIAFB/1xM7A69L6Q+0mWr4Q9sY
v2ktLUrR2QzvwrA5jlXP1YX2lSeijOy/eYMXaxlhpXEMH1H+Ef8MEqMPDv3urCK1
8baesNobWhEV8b1FqBjgzD0j4aVG+TwuJl5IH08FRU0eo7Fuu2OSpGj/CMFiwnRc
T6296GfYdFYmDPnRnAmczzEeI9xI9eXS9obFlE2bwNlv4ZTkteBd1zIOZWabb9m1
i7vSkCYzVgD2BWtPV2b4rxsOTNS9s62MtAXXaIflMWDmtVdVZQvS+Kh7LKBowiE9
PNbfmlbHkDz/VdrsNTJ4A/TW1SrViU0r/Y32XARW3ocgCm5+cu6uCvwBEBI/fKU=
=9lkK
-----END PGP SIGNATURE-----
payloadX  tree b172ecced70b828d965d95a62b0496462d6a772d
parent f4a2c0380b8fd39cb61c9b7f2cec7fe205d7fa89
author Patrick Koenig <pkoenig10@gmail.com> 1679077420 -0700
committer GitHub <noreply@github.com> 1679077420 +0000

Use AtlasDbDependencyException when no hosts available (#6473)

 uujр ^https://api.github.com/repos/palantir/atlasdb/commits/20aafba3ae1c128d2bf261193d04f222471edb05html_urlShttps://github.com/palantir/atlasdb/commit/20aafba3ae1c128d2bf261193d04f222471edb05comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/20aafba3ae1c128d2bf261193d04f222471edb05/commentsj }(login	pkoenig10idJLvP j MDQ6VXNlcjUyNzMxNjQ=
avatar_url3https://avatars.githubusercontent.com/u/5273164?v=4gravatar_idh5jр &https://api.github.com/users/pkoenig10j߀ https://github.com/pkoenig10
followers_url0https://api.github.com/users/pkoenig10/followers
following_url=https://api.github.com/users/pkoenig10/following{/other_user}	gists_url6https://api.github.com/users/pkoenig10/gists{/gist_id}starred_url=https://api.github.com/users/pkoenig10/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/pkoenig10/subscriptionsorganizations_url+https://api.github.com/users/pkoenig10/orgs	repos_url,https://api.github.com/users/pkoenig10/repos
events_url7https://api.github.com/users/pkoenig10/events{/privacy}received_events_url6https://api.github.com/users/pkoenig10/received_eventstypeUser
site_adminujǀ }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5jр %https://api.github.com/users/web-flowj߀ https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j (f4a2c0380b8fd39cb61c9b7f2cec7fe205d7fa89jр ^https://api.github.com/repos/palantir/atlasdb/commits/f4a2c0380b8fd39cb61c9b7f2cec7fe205d7fa89j߀ Shttps://github.com/palantir/atlasdb/commit/f4a2c0380b8fd39cb61c9b7f2cec7fe205d7fa89uastats}(totalK6	additionsK'	deletionsKufiles](}(j (3119f655157ee521b742eccfb81bf4fbbda595d2filename[atlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/RetryLimitReachedException.javastatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/20aafba3ae1c128d2bf261193d04f222471edb05/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRetryLimitReachedException.javaraw_urlhttps://github.com/palantir/atlasdb/raw/20aafba3ae1c128d2bf261193d04f222471edb05/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRetryLimitReachedException.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FRetryLimitReachedException.java?ref=20aafba3ae1c128d2bf261193d04f222471edb05patchX   @@ -25,6 +25,7 @@
 import java.util.List;
 
 public class RetryLimitReachedException extends AtlasDbDependencyException implements SafeLoggable {
+
     private static final String MESSAGE = "Request was retried and failed each time for the request.";
 
     private final int numRetries;u}(j (849885796051302ae2255080efd29ca7c50eddc8j! catlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientFactory.javaj# modifiedj Kj Kj% Kj& https://github.com/palantir/atlasdb/blob/20aafba3ae1c128d2bf261193d04f222471edb05/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientFactory.javaj( https://github.com/palantir/atlasdb/raw/20aafba3ae1c128d2bf261193d04f222471edb05/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientFactory.javaj* https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientFactory.java?ref=20aafba3ae1c128d2bf261193d04f222471edb05j, X  @@ -303,17 +303,12 @@ public void destroyObject(PooledObject<CassandraClient> client) {
         }
     }
 
-    static class ClientCreationFailedException extends AtlasDbDependencyException {
+    static final class ClientCreationFailedException extends AtlasDbDependencyException {
         private static final long serialVersionUID = 1L;
 
         ClientCreationFailedException(String message, Exception cause) {
             super(message, cause);
         }
-
-        @Override
-        public Exception getCause() {
-            return (Exception) super.getCause();
-        }
     }
 
     private static void setSocketOptions(TSocket thriftSocket, SocketConsumer consumer, InetSocketAddress addr) {u}(j (8dc5cfb3bdba96fc8c1896859651e04d79218056j! batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaj# modifiedj Kj Kj% Kj& https://github.com/palantir/atlasdb/blob/20aafba3ae1c128d2bf261193d04f222471edb05/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj( https://github.com/palantir/atlasdb/raw/20aafba3ae1c128d2bf261193d04f222471edb05/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj* https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=20aafba3ae1c128d2bf261193d04f222471edb05j, XN  @@ -42,9 +42,13 @@
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.base.FunctionCheckedException;
 import com.palantir.common.base.Throwables;
+import com.palantir.common.exception.AtlasDbDependencyException;
 import com.palantir.common.pooling.PoolingContainer;
 import com.palantir.common.streams.KeyedStream;
+import com.palantir.logsafe.Arg;
+import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.SafeLoggable;
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -386,8 +390,7 @@ public List<PoolingContainer<CassandraClient>> getAllNonBlacklistedHosts() {
     }
 
     public CassandraClientPoolingContainer getRandomGoodHost() {
-        return getRandomGoodHostForPredicate(address -> true)
-                .orElseThrow(() -> new SafeIllegalStateException("No hosts available."));
+        return getRandomGoodHostForPredicate(address -> true).orElseThrow(NoHostsAvailableException::new);
     }
 
     private String getRingViewDescription() {
@@ -526,4 +529,23 @@ public void clearInitialCassandraHosts() {
     void overrideHostToDatacenterMapping(ImmutableMap<CassandraServer, String> hostToDatacenterOverride) {
         this.hostToDatacenter = hostToDatacenterOverride;
     }
+
+    private static final class NoHostsAvailableException extends AtlasDbDependencyException implements SafeLoggable {
+
+        private static final String MESSAGE = "No hosts available.";
+
+        NoHostsAvailableException() {
+            super(MESSAGE);
+        }
+
+        @Override
+        public @Safe String getLogMessage() {
+            return MESSAGE;
+        }
+
+        @Override
+        public List<Arg<?>> getArgs() {
+            return List.of();
+        }
+    }
 }u}(j (3f12cc30de4b2565eb5b519d76b28f4a643de42cj! Qatlasdb-commons/src/main/java/com/palantir/exception/NotInitializedException.javaj# modifiedj Kj Kj% Kj& https://github.com/palantir/atlasdb/blob/20aafba3ae1c128d2bf261193d04f222471edb05/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javaj( https://github.com/palantir/atlasdb/raw/20aafba3ae1c128d2bf261193d04f222471edb05/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.javaj* https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fexception%2FNotInitializedException.java?ref=20aafba3ae1c128d2bf261193d04f222471edb05j, X"  @@ -24,7 +24,7 @@
 
 public class NotInitializedException extends AtlasDbDependencyException implements SafeLoggable {
 
-    private static final String EXCEPTION_MESSAGE =
+    private static final String MESSAGE =
             "The object is not yet initialized, and as a result, all calls to it will fail. Interactions with this"
                     + " object should not take place until after initialization has completed. For example, if your"
                     + " service that handles REST requests relies on this object, it should not service REST requests"
@@ -33,19 +33,19 @@ public class NotInitializedException extends AtlasDbDependencyException implemen
     private final String objectNotInitialized;
 
     public NotInitializedException(@Safe String objectNotInitialized) {
-        super(EXCEPTION_MESSAGE);
+        super(MESSAGE);
         this.objectNotInitialized = objectNotInitialized;
     }
 
     public NotInitializedException(@Safe String objectNotInitialized, Throwable throwable) {
-        super(EXCEPTION_MESSAGE, throwable);
+        super(MESSAGE, throwable);
         this.objectNotInitialized = objectNotInitialized;
     }
 
     @Override
     @Safe
     public String getLogMessage() {
-        return EXCEPTION_MESSAGE;
+        return MESSAGE;
     }
 
     @Overrideu}(j (910ff9b18328d5969f5dbcc3ae9411d1bcb02878j! $changelog/@unreleased/pr-6473.v2.ymlj# addedj Kj K j% Kj& |https://github.com/palantir/atlasdb/blob/20aafba3ae1c128d2bf261193d04f222471edb05/changelog%2F%40unreleased%2Fpr-6473.v2.ymlj( {https://github.com/palantir/atlasdb/raw/20aafba3ae1c128d2bf261193d04f222471edb05/changelog%2F%40unreleased%2Fpr-6473.v2.ymlj* https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6473.v2.yml?ref=20aafba3ae1c128d2bf261193d04f222471edb05j, @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: When no Cassandra hosts are available, AtlasDB throws `AtlasDbDependencyException`
+    instead of `SafeIllegalStateException`.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6473u}(j (e4aeffa4b79ab211ecca045642ba7166133fe5b6j! etimelock-impl/src/main/java/com/palantir/atlasdb/timelock/paxos/InvalidAcceptorCacheKeyException.javaj# modifiedj Kj Kj% Kj& https://github.com/palantir/atlasdb/blob/20aafba3ae1c128d2bf261193d04f222471edb05/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FInvalidAcceptorCacheKeyException.javaj( https://github.com/palantir/atlasdb/raw/20aafba3ae1c128d2bf261193d04f222471edb05/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FInvalidAcceptorCacheKeyException.javaj* https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Fpaxos%2FInvalidAcceptorCacheKeyException.java?ref=20aafba3ae1c128d2bf261193d04f222471edb05j, X  @@ -24,18 +24,18 @@
 
 public class InvalidAcceptorCacheKeyException extends Exception implements SafeLoggable {
 
-    private static final String ERROR_MESSAGE = "Provided acceptor cache key is either invalid/expired.";
+    private static final String MESSAGE = "Provided acceptor cache key is either invalid/expired.";
 
     private final AcceptorCacheKey cacheKey;
 
     public InvalidAcceptorCacheKeyException(AcceptorCacheKey cacheKey) {
-        super(ERROR_MESSAGE);
+        super(MESSAGE);
         this.cacheKey = cacheKey;
     }
 
     @Override
     public String getLogMessage() {
-        return ERROR_MESSAGE;
+        return MESSAGE;
     }
 
     @Overrideueu(9458838f336b95e56aec98b7b6fdeb43d87d966f}(sha(9458838f336b95e56aec98b7b6fdeb43d87d966fnode_idEC_kwDOAjP5fdoAKDk0NTg4MzhmMzM2Yjk1ZTU2YWVjOThiN2I2ZmRlYjQzZDg3ZDk2NmYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-07-24T10:42:55Zu	committer}(j` Jeremy Kongjb jkong@palantir.comjd 2023-07-24T10:42:55Zumessage	einordnentree}(jX (8dc860aba852f0cf956c2e1d3130df3ef5332b74url`https://api.github.com/repos/palantir/atlasdb/git/trees/8dc860aba852f0cf956c2e1d3130df3ef5332b74ujp bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9458838f336b95e56aec98b7b6fdeb43d87d966f
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmS+Va8ACgkQTLdFKain
zjxYKQf/UbmPJMBsZGWjd0aYiyK//i+0knLnjKwrWIOx4+s3p3UGpZFAIf+WbpxL
iHxnhic6MWxRSHVDnoIsLPZIXSIw63tQx6IxKYuZJtDPkcXz2wZpMr9xaqPwCpQn
51tsBWVi0IS9uuOKiia8IhuE/ZU0PPkFF8ZeKMVPNsKvet9IiHXWHCfN7v463L+c
3TDe6ykpcWgc79/7mGCptCgQetHheTdIsiomOFo+ZIdN6FOalV7bTckvK46AQ3e1
TKxHOTVGxX7sFA+f0LPJpuyyT5X9we8m7ykQ3OeDDpCEh1pFjdmy/E8xOz334NdD
yqk9dVmBufJ9262tWSL2Aq1IJ99xIg==
=XClI
-----END PGP SIGNATURE-----payloadtree 8dc860aba852f0cf956c2e1d3130df3ef5332b74
parent 1ff550b17925a18bfe8e13f3abc4cb53731208d5
author Jeremy Kong <jkong@palantir.com> 1690195375 +0100
committer Jeremy Kong <jkong@palantir.com> 1690195375 +0100

einordnen
uujp ^https://api.github.com/repos/palantir/atlasdb/commits/9458838f336b95e56aec98b7b6fdeb43d87d966fhtml_urlShttps://github.com/palantir/atlasdb/commit/9458838f336b95e56aec98b7b6fdeb43d87d966fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9458838f336b95e56aec98b7b6fdeb43d87d966f/commentsj^ }(login
jeremyk-91idJZ jZ MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jp 'https://api.github.com/users/jeremyk-91j~ https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujf }(j 
jeremyk-91j JZ jZ MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5jp 'https://api.github.com/users/jeremyk-91j~ https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(jX (1ff550b17925a18bfe8e13f3abc4cb53731208d5jp ^https://api.github.com/repos/palantir/atlasdb/commits/1ff550b17925a18bfe8e13f3abc4cb53731208d5j~ Shttps://github.com/palantir/atlasdb/commit/1ff550b17925a18bfe8e13f3abc4cb53731208d5uastats}(totalK	additionsK	deletionsKufiles]}(jX (1859fc8d2d57dc2b3a048c08afb963f513a0ac9afilenameXatlasdb-ete-tests/src/test/java/com/palantir/atlasdb/ete/CassandraTimeLockTestSuite.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9458838f336b95e56aec98b7b6fdeb43d87d966f/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9458838f336b95e56aec98b7b6fdeb43d87d966f/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fete%2FCassandraTimeLockTestSuite.java?ref=9458838f336b95e56aec98b7b6fdeb43d87d966fpatchX!  @@ -25,13 +25,14 @@
 import org.junit.runners.Suite;
 
 @RunWith(Suite.class)
-@Suite.SuiteClasses({TodoEteTest.class,
-        TargetedSweepEteTest.class,
-        CassandraTimestampsEteTest.class,
-        TimestampManagementEteTest.class,
-        CoordinationEteTest.class,
-        MultipleSchemaVersionsCoordinationEteTest.class,
-        LockWithTimelockEteTest.class
+@Suite.SuiteClasses({
+    TodoEteTest.class,
+    TargetedSweepEteTest.class,
+    CassandraTimestampsEteTest.class,
+    TimestampManagementEteTest.class,
+    CoordinationEteTest.class,
+    MultipleSchemaVersionsCoordinationEteTest.class,
+    LockWithTimelockEteTest.class
 })
 public class CassandraTimeLockTestSuite extends EteSetup {
     private static final ImmutableList<String> CLIENTS = ImmutableList.of("ete1");uau(cded8fc29da6f6bf2c74a0a4cb2ae3fb16d79a65}(sha(cded8fc29da6f6bf2c74a0a4cb2ae3fb16d79a65node_idEC_kwDOAjP5fdoAKGNkZWQ4ZmMyOWRhNmY2YmYyYzc0YTBhNGNiMmFlM2ZiMTZkNzlhNjUcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-07-12T17:48:48Zu	committer}(jׁ 	Tom Papkejف tpapke@palantir.comjہ 2023-07-12T17:48:48Zumessage.Add trace logging if encountering unknown typetree}(jρ (3cdb401b9767cf743be96b3443301b0e85033ee3url`https://api.github.com/repos/palantir/atlasdb/git/trees/3cdb401b9767cf743be96b3443301b0e85033ee3uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/cded8fc29da6f6bf2c74a0a4cb2ae3fb16d79a65
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSu54AACgkQmF9s0kaF
Iw0I0Af+INqdeUsNqeTyRjathFYN/xMEi6uIKivFZuiq//YD0BO1BoC2jNn1laUM
Nn9JwtNJaT4o3qLadAIqyN0LxyWEPKRYmFfXzk33Mzy0aEg8spJK0h8w8X7J6fLJ
/fMsPAAQIKRX7aSsc/iHaXPM2+RRSRtGn7L42mKPqT7iurBCOOCN6crIpjwV1Pd8
VO6NBluAd3s5u+n0pATZPoDnYgq9tTqQGPoWGFLg+G2pP9jGLlsEj3VHFRUhrr5s
vMNBo9lYqXDjm+kA30nfYQTU7kgg6zJ6uZmv7cVX0LpOkZzjQbD/5N+5KkxVoWwV
lnploV8NNVAp6t+W8oUK6A85xPVx7w==
=01X2
-----END PGP SIGNATURE-----payloadX  tree 3cdb401b9767cf743be96b3443301b0e85033ee3
parent 2633ebf464ef2a799c685ab95d094a8a1d885d2d
author Tom Papke <tpapke@palantir.com> 1689184128 +0100
committer Tom Papke <tpapke@palantir.com> 1689184128 +0100

Add trace logging if encountering unknown type
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/cded8fc29da6f6bf2c74a0a4cb2ae3fb16d79a65html_urlShttps://github.com/palantir/atlasdb/commit/cded8fc29da6f6bf2c74a0a4cb2ae3fb16d79a65comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/cded8fc29da6f6bf2c74a0a4cb2ae3fb16d79a65/commentsjՁ }(login	ToemmscheidJbojс MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj݁ }(j 	Toemmschej Jbojс MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j  h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j	 =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj
 +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(jρ (2633ebf464ef2a799c685ab95d094a8a1d885d2dj ^https://api.github.com/repos/palantir/atlasdb/commits/2633ebf464ef2a799c685ab95d094a8a1d885d2dj Shttps://github.com/palantir/atlasdb/commit/2633ebf464ef2a799c685ab95d094a8a1d885d2duastats}(totalK	additionsK	deletionsK ufiles]}(jρ (4d2e21a4a412c4293c235e0c70b9304aaeeb4161filenameSlock-api/src/main/java/com/palantir/lock/watch/ConjureLockRequestMetadataUtils.javastatusmodifiedj1 Kj2 K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/cded8fc29da6f6bf2c74a0a4cb2ae3fb16d79a65/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtils.javaraw_urlhttps://github.com/palantir/atlasdb/raw/cded8fc29da6f6bf2c74a0a4cb2ae3fb16d79a65/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtils.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fwatch%2FConjureLockRequestMetadataUtils.java?ref=cded8fc29da6f6bf2c74a0a4cb2ae3fb16d79a65patchX  @@ -31,7 +31,10 @@
 import com.palantir.lock.watch.ChangeMetadata.Deleted;
 import com.palantir.lock.watch.ChangeMetadata.Unchanged;
 import com.palantir.lock.watch.ChangeMetadata.Updated;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.Unsafe;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.util.IndexEncodingUtils;
 import com.palantir.util.IndexEncodingUtils.ChecksumType;
 import com.palantir.util.IndexEncodingUtils.IndexEncodingResult;
@@ -48,6 +51,8 @@ private ConjureLockRequestMetadataUtils() {}
     @VisibleForTesting
     static final ChecksumType DEFAULT_CHECKSUM_TYPE = ChecksumType.CRC32_OF_DETERMINISTIC_HASHCODE;
 
+    private static final SafeLogger log = SafeLoggerFactory.get(ConjureLockRequestMetadataUtils.class);
+
     public static ConjureMetadataConversionResult toConjureIndexEncoded(
             Set<LockDescriptor> lockDescriptors, LockRequestMetadata metadata) {
         IndexEncodingResult<LockDescriptor, ConjureChangeMetadata> encoded = IndexEncodingUtils.encode(
@@ -161,6 +166,7 @@ public Optional<ChangeMetadata> visitCreated(ConjureCreatedChangeMetadata create
 
         @Override
         public Optional<ChangeMetadata> visitUnknown(String unknownType) {
+            log.trace("Unknown ConjureChangeMetadata type", SafeArg.of("unknownType", unknownType));
             return Optional.empty();
         }
     }uau(ae98c3a91237673fcc9cfadcc178d8a5f1a77be2}(sha(ae98c3a91237673fcc9cfadcc178d8a5f1a77be2node_idEC_kwDOAjP5fdoAKGFlOThjM2E5MTIzNzY3M2ZjYzljZmFkY2MxNzhkOGE1ZjFhNzdiZTIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-13T10:33:34Zu	committer}(jN 
Sam KramerjP skramer@palantir.comjR 2023-04-13T14:46:41Zumessagefor real this timetree}(jF (a5da35922ab3ba735b06055d8a438d4b3ccee227url`https://api.github.com/repos/palantir/atlasdb/git/trees/a5da35922ab3ba735b06055d8a438d4b3ccee227uj^ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ae98c3a91237673fcc9cfadcc178d8a5f1a77be2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ4FdEACgkQmPPOpKR4
XS1PMAf6A2ub5lKmtP9BvIA2dJefiZDCBPaS/eH7sphgVr+Hn8Dz//rxap3GW/5d
X3TLRQV0FDugXDYGuFqqlf0nNH565g9ssODLT38lNdmLVx1ofdIpxUBOXSbVC4cT
Me9iZIbBlGzHDM4tcEGH89gf+IIl1rz9BRDuOgeux58z9ZpFEwp53n7FFEvlgJer
oCLbtjrPhSKY6JP1HP80JHNSHzSlSWHswBsshy/CPgGTbe/akM6mMWkPWfS9Jjv6
BN5TK3uOAqUzLUKHrDv2qkijIisuUqPV01mNIgQmVBDvEKum/cyk3Xe+hzIA2NBZ
TZidDR+rbchd3UJZDCXKVLcnK1xmtw==
=epOv
-----END PGP SIGNATURE-----payloadtree a5da35922ab3ba735b06055d8a438d4b3ccee227
parent 61d920ed990101244bc01009b1e145c30e01f329
author Sam Kramer <skramer@palantir.com> 1681382014 +0100
committer Sam Kramer <skramer@palantir.com> 1681397201 +0100

for real this time
uuj^ ^https://api.github.com/repos/palantir/atlasdb/commits/ae98c3a91237673fcc9cfadcc178d8a5f1a77be2html_urlShttps://github.com/palantir/atlasdb/commit/ae98c3a91237673fcc9cfadcc178d8a5f1a77be2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ae98c3a91237673fcc9cfadcc178d8a5f1a77be2/commentsjL }(login
Sam-KrameridJ^2_ jH MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j^ 'https://api.github.com/users/Sam-Kramerjl https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujT }(jq 
Sam-Kramerjs J^2_ jH MDQ6VXNlcjYyMzg4MTQ=ju 3https://avatars.githubusercontent.com/u/6238814?v=4jw h5j^ 'https://api.github.com/users/Sam-Kramerjl https://github.com/Sam-Kramerjz 1https://api.github.com/users/Sam-Kramer/followersj| >https://api.github.com/users/Sam-Kramer/following{/other_user}j~ 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(jF (61d920ed990101244bc01009b1e145c30e01f329j^ ^https://api.github.com/repos/palantir/atlasdb/commits/61d920ed990101244bc01009b1e145c30e01f329jl Shttps://github.com/palantir/atlasdb/commit/61d920ed990101244bc01009b1e145c30e01f329uastats}(totalK	additionsK	deletionsKufiles]}(jF (94e2832ea054811d4595b388d8870158036b0453filename`atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingGraph.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/ae98c3a91237673fcc9cfadcc178d8a5f1a77be2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javaraw_urlhttps://github.com/palantir/atlasdb/raw/ae98c3a91237673fcc9cfadcc178d8a5f1a77be2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingGraph.java?ref=ae98c3a91237673fcc9cfadcc178d8a5f1a77be2patchX  @@ -110,7 +110,8 @@ public RingGraph generateNewRing() {
 
     /**
      * Returns the current map of the ring.
-     * @throws com.palantir.logsafe.exceptions.SafeIllegalStateException When one or more edges are missing from the ring.
+     * @throws com.palantir.logsafe.exceptions.SafeIllegalStateException When one or more edges are
+     * missing from the ring.
      */
     public Map<Integer, Integer> asMap() {
         Preconditions.checkState(uau(e3d7d7a8cdd5de278e4a154325e0862f1f5d62f6}(sha(e3d7d7a8cdd5de278e4a154325e0862f1f5d62f6node_idEC_kwDOAjP5fdoAKGUzZDdkN2E4Y2RkNWRlMjc4ZTRhMTU0MzI1ZTA4NjJmMWY1ZDYyZjYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-09T07:43:39Zu	committer}(jł Jeremy Kongjǂ jkong@palantir.comjɂ 2023-04-09T07:43:39Zumessage	timestamptree}(j (e5f49bc909717bb13905fea04c923407a078080burl`https://api.github.com/repos/palantir/atlasdb/git/trees/e5f49bc909717bb13905fea04c923407a078080bujՂ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e3d7d7a8cdd5de278e4a154325e0862f1f5d62f6
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQybKsACgkQTLdFKain
zjywKwf+PIOxdZ7/IwJswL+riKFzr3GuF3YTB6Uf1KUvWZ/zRr24PUxOCniKSDNK
a3XK+8k+HVeErY+LwOwry97o+ur3wcbwi6TPEbfLvsONH71bO1EX/oN+pQumsuA7
Fd268xcxbZjk5shWtlzD0aKSgNoUCx99NDLlF+SioZ44NfEhUBRgOpcQTQdzcOVt
uNVjQxREB+NIKqBjREpaaJHd3txmmRgfkldM0hA6GMzhh3a43W6wYTyTfqxLh4YC
ta/Sd69N5frhLo2cb4hL/cUmTtTk6Wo8VxPPV/IhdHeje2kNET7PWjQegkH/3CKC
uTlPsC5b/sV56l5BsgZhnr49hPtFag==
=TAf5
-----END PGP SIGNATURE-----payloadtree e5f49bc909717bb13905fea04c923407a078080b
parent 9a1e86c20d92e376bdbfdad6e4b3fd34c74a21a0
author Jeremy Kong <jkong@palantir.com> 1681026219 +0800
committer Jeremy Kong <jkong@palantir.com> 1681026219 +0800

timestamp
uujՂ ^https://api.github.com/repos/palantir/atlasdb/commits/e3d7d7a8cdd5de278e4a154325e0862f1f5d62f6html_urlShttps://github.com/palantir/atlasdb/commit/e3d7d7a8cdd5de278e4a154325e0862f1f5d62f6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e3d7d7a8cdd5de278e4a154325e0862f1f5d62f6/commentsjÂ }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jՂ 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj˂ }(j 
jeremyk-91j JZ j MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5jՂ 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j (9a1e86c20d92e376bdbfdad6e4b3fd34c74a21a0jՂ ^https://api.github.com/repos/palantir/atlasdb/commits/9a1e86c20d92e376bdbfdad6e4b3fd34c74a21a0j Shttps://github.com/palantir/atlasdb/commit/9a1e86c20d92e376bdbfdad6e4b3fd34c74a21a0uastats}(totalK-	additionsK!	deletionsKufiles]}(j (e78d99cfbe8376b6b7133325398db53db4092172filename_timelock-impl/src/main/java/com/palantir/atlasdb/timelock/LegacyAggregatedTimelockResource.javastatusmodifiedj K!j  KchangesK-blob_urlhttps://github.com/palantir/atlasdb/blob/e3d7d7a8cdd5de278e4a154325e0862f1f5d62f6/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAggregatedTimelockResource.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e3d7d7a8cdd5de278e4a154325e0862f1f5d62f6/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAggregatedTimelockResource.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLegacyAggregatedTimelockResource.java?ref=e3d7d7a8cdd5de278e4a154325e0862f1f5d62f6patchX-  @@ -16,17 +16,15 @@
 
 package com.palantir.atlasdb.timelock;
 
-import com.palantir.atlasdb.timelock.paxos.PaxosTimeLockConstants;
 import com.palantir.conjure.java.undertow.annotations.Handle;
 import com.palantir.conjure.java.undertow.annotations.HttpMethod;
 import com.palantir.conjure.java.undertow.annotations.SerializerFactory;
-import com.palantir.conjure.java.undertow.lib.BinaryResponseBody;
-import com.palantir.conjure.java.undertow.lib.BodySerDe;
 import com.palantir.conjure.java.undertow.lib.Endpoint;
 import com.palantir.conjure.java.undertow.lib.Serializer;
 import com.palantir.conjure.java.undertow.lib.TypeMarker;
 import com.palantir.conjure.java.undertow.lib.UndertowRuntime;
 import com.palantir.logsafe.Safe;
+import com.palantir.timestamp.TimestampRange;
 import io.undertow.server.HttpServerExchange;
 import io.undertow.util.Headers;
 import java.io.IOException;
@@ -37,6 +35,7 @@
 import javax.ws.rs.GET;
 import javax.ws.rs.POST;
 import javax.ws.rs.Path;
+import javax.ws.rs.PathParam;
 import javax.ws.rs.Produces;
 import javax.ws.rs.QueryParam;
 import javax.ws.rs.core.MediaType;
@@ -66,16 +65,37 @@ public static LegacyAggregatedTimelockResource create(TimelockNamespaces namespa
         return new LegacyAggregatedTimelockResource(namespaces);
     }
 
+    // Legacy timestamp
+    @POST // This has to be POST because we can't allow caching.
+    @Path("/{namespace}/timestamp/fresh-timestamp")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timestamp/fresh-timestamp")
+    public long getFreshTimestamp(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        return namespaces.get(namespace).getTimestampService().getFreshTimestamp();
+    }
+
+    @POST // This has to be POST because we can't allow caching.
+    @Path("fresh-timestamps")
+    @Produces(MediaType.APPLICATION_JSON)
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timestamp/fresh-timestamps")
+    public TimestampRange getFreshTimestamps(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Safe @QueryParam("number") int numTimestampsRequested) {
+        return namespaces.get(namespace).getTimestampService().getFreshTimestamps(numTimestampsRequested);
+    }
+
+    // Timestamp management
     @POST
     @Path("/{namespace}/timestamp-management/fast-forward")
     @Produces(MediaType.APPLICATION_JSON)
-    @Handle(
-            method = HttpMethod.POST,
-            path = "/{namespace}/timestamp-management/fast-forward")
-    void fastForwardTimestamp(
-            @Safe @Handle.PathParam String namespace,
-            @Safe @QueryParam("currentTimestamp") @DefaultValue(SENTINEL_TIMESTAMP_STRING)
-            @Handle.QueryParam(value = "currentTimestamp") Long currentTimestamp) {
+    @Handle(method = HttpMethod.POST, path = "/{namespace}/timestamp-management/fast-forward")
+    public void fastForwardTimestamp(
+            @Safe @PathParam("namespace") @Handle.PathParam String namespace,
+            @Safe
+                    @QueryParam("currentTimestamp")
+                    @DefaultValue(SENTINEL_TIMESTAMP_STRING)
+                    @Handle.QueryParam(value = "currentTimestamp")
+                    Long currentTimestamp) {
         long timestampToUse = currentTimestamp == null ? SENTINEL_TIMESTAMP : currentTimestamp;
         namespaces.get(namespace).getTimestampManagementService().fastForwardTimestamp(timestampToUse);
     }
@@ -88,15 +108,16 @@ void fastForwardTimestamp(
             method = HttpMethod.POST,
             path = "/{namespace}/timestamp-management/fast-forward",
             produces = TextPlainSerializer.class)
-    String ping(@Safe @Handle.PathParam String namespace) {
+    public String ping(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
         return namespaces.get(namespace).getTimestampManagementService().ping();
     }
 
     private enum TextPlainSerializer implements SerializerFactory<String> {
         INSTANCE;
 
         @Override
-        public <T extends String> Serializer<T> serializer(TypeMarker<T> type, UndertowRuntime runtime, Endpoint endpoint) {
+        public <T extends String> Serializer<T> serializer(
+                TypeMarker<T> type, UndertowRuntime runtime, Endpoint endpoint) {
             return this::serialize;
         }
 uau(6139243418009eda57ad73a25eb6715d3ba888cd}(sha(6139243418009eda57ad73a25eb6715d3ba888cdnode_idEC_kwDOAjP5fdoAKDYxMzkyNDM0MTgwMDllZGE1N2FkNzNhMjVlYjY3MTVkM2JhODg4Y2Qcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-20T01:07:27Zu	committer}(j< 
Ahmed Alouanej> aalouane@palantir.comj@ 2023-04-20T01:07:27Zumessageunit test parallelismtree}(j4 (0b2cf457756d46a8047d86983670c6a7fb9601a2url`https://api.github.com/repos/palantir/atlasdb/git/trees/0b2cf457756d46a8047d86983670c6a7fb9601a2ujL bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6139243418009eda57ad73a25eb6715d3ba888cd
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRAkE8ACgkQPlMHVIT1
yhq7iggAt2rXPRdcnR0U+rJUw0ZvN5Y3cHPbHd/I7RsZgQlSIuDeQpQDYEagjeLt
zeVSqlcMRk1kmwGmMPpqC7JF02Iwt+7hY6Ci6OrtDamB6oWl+7PJMHoQtFgrdNaP
klMKLAeHYnIZnm+iO3Dqw+ByBoEwFXJDGveyGY11ahNLW5CHuOzTbi3obEucQ+lP
ksp525cP5ki3FwNTySHlVWtQ87ku0JQnEJOmrfucrhOVt4lEPwicf5PkXoUA/ut8
fWH7pjL3Q4U6USvrIMEp5e0490NGmG6Qe57O+/VsBojnfDXF+UXlggQhcTsRONPS
Xuf7bSRAV1Vws5w8Jt3hcHKCALiG5Q==
=YFaT
-----END PGP SIGNATURE-----payloadtree 0b2cf457756d46a8047d86983670c6a7fb9601a2
parent 40ffcbca6aaaa628af13a2ac8215c9c3e8c7d378
author Ahmed Alouane <aalouane@palantir.com> 1681952847 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1681952847 +0100

unit test parallelism
uujL ^https://api.github.com/repos/palantir/atlasdb/commits/6139243418009eda57ad73a25eb6715d3ba888cdhtml_urlShttps://github.com/palantir/atlasdb/commit/6139243418009eda57ad73a25eb6715d3ba888cdcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6139243418009eda57ad73a25eb6715d3ba888cd/commentsj: }(loginergo14idJj6 MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jL #https://api.github.com/users/ergo14jZ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujB }(j_ ergo14ja Jj6 MDQ6VXNlcjMwOTAzNzM2jc 4https://avatars.githubusercontent.com/u/30903736?v=4je h5jL #https://api.github.com/users/ergo14jZ https://github.com/ergo14jh -https://api.github.com/users/ergo14/followersjj :https://api.github.com/users/ergo14/following{/other_user}jl 3https://api.github.com/users/ergo14/gists{/gist_id}jn :https://api.github.com/users/ergo14/starred{/owner}{/repo}jp 1https://api.github.com/users/ergo14/subscriptionsjr (https://api.github.com/users/ergo14/orgsjt )https://api.github.com/users/ergo14/reposjv 4https://api.github.com/users/ergo14/events{/privacy}jx 3https://api.github.com/users/ergo14/received_eventsjz Userj| uparents]}(j4 (40ffcbca6aaaa628af13a2ac8215c9c3e8c7d378jL ^https://api.github.com/repos/palantir/atlasdb/commits/40ffcbca6aaaa628af13a2ac8215c9c3e8c7d378jZ Shttps://github.com/palantir/atlasdb/commit/40ffcbca6aaaa628af13a2ac8215c9c3e8c7d378uastats}(totalK	additionsK	deletionsKufiles]}(j4 (dda0af0857fd0703298ddd0846c56ff861090186filename.circleci/config.ymlstatusmodifiedj Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/6139243418009eda57ad73a25eb6715d3ba888cd/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/6139243418009eda57ad73a25eb6715d3ba888cd/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=6139243418009eda57ad73a25eb6715d3ba888cdpatchX  @@ -33,15 +33,16 @@ jobs:
 
   test:
     parallelism: 12
-    machine: true
-      # image: ubuntu-2004:202111-02
+    machine:
+      image: ubuntu-2004:202111-02
     resource_class: 2xlarge+
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       JAVA_HOME: /opt/java8
       _JAVA_OPTIONS: "-XX:ActiveProcessorCount=8 -Xmx8g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"
       CIRCLE_TEST_REPORTS: /home/circleci/junit
       CIRCLE_ARTIFACTS: /home/circleci/artifacts
+      UNIT_TEST_PARALLELISM: 3
 
     steps:
       - attach_workspace: { at: . }uau(3f838d5e4b013663b88c520564646969901f72d9}(sha(3f838d5e4b013663b88c520564646969901f72d9node_idEC_kwDOAjP5fdoAKDNmODM4ZDVlNGIwMTM2NjNiODhjNTIwNTY0NjQ2OTY5OTAxZjcyZDkcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-23T13:16:19Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-23T13:16:19Zumessage)Merge branch 'develop' into roomba/formattree}(j (b6ee2cd3be264fd1f5f51f082058144711c969d2url`https://api.github.com/repos/palantir/atlasdb/git/trees/b6ee2cd3be264fd1f5f51f082058144711c969d2ujÃ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3f838d5e4b013663b88c520564646969901f72d9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRsvKUACgkQPlMHVIT1
yhqW+wgAgiR7NZDpauMYu35Oa2EBr7WqmeZ0747cVDMZbKOCbB3hvgbtpX9bompA
evn1e1pKSdDmqM0rK50P7PFK5NzT9CHIKZM9OFvO134xmxk2ZRzzclmESOO80cOT
IdSw5sFvihJuSxWhM4eTAlCviDKyRBDN4YRSQaxTiywGzF1x16t0B+foGwVRpjjC
WYdERSCOSqOircSoq7TUcic4OcSVFd9PAZfqVz2qh+YaEnbc0g9SLLhMqPyX0pzZ
zyuQ2U8t5hIIhNSjGtVkziDT+ETiyx/CUc9qeBbrDONVAlXva4cHFH+Q7CuXPuCa
7/NM0P3XtQQUwPgEaDRLh0rrWOjErw==
=gpHn
-----END PGP SIGNATURE-----payloadX8  tree b6ee2cd3be264fd1f5f51f082058144711c969d2
parent 9b99127f5b606363336c8833f6415435773c3a93
parent 8d9ed7583f3c695e90886a0d303f32c1925fcf1a
author Ahmed Alouane <aalouane@palantir.com> 1684847779 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684847779 +0100

Merge branch 'develop' into roomba/format
uujÃ ^https://api.github.com/repos/palantir/atlasdb/commits/3f838d5e4b013663b88c520564646969901f72d9html_urlShttps://github.com/palantir/atlasdb/commit/3f838d5e4b013663b88c520564646969901f72d9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3f838d5e4b013663b88c520564646969901f72d9/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jÃ #https://api.github.com/users/ergo14jу https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(jփ ergo14j؃ Jj MDQ6VXNlcjMwOTAzNzM2jڃ 4https://avatars.githubusercontent.com/u/30903736?v=4j܃ h5jÃ #https://api.github.com/users/ergo14jу https://github.com/ergo14j߃ -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents](}(j (9b99127f5b606363336c8833f6415435773c3a93jÃ ^https://api.github.com/repos/palantir/atlasdb/commits/9b99127f5b606363336c8833f6415435773c3a93jу Shttps://github.com/palantir/atlasdb/commit/9b99127f5b606363336c8833f6415435773c3a93u}(j (8d9ed7583f3c695e90886a0d303f32c1925fcf1ajÃ ^https://api.github.com/repos/palantir/atlasdb/commits/8d9ed7583f3c695e90886a0d303f32c1925fcf1ajу Shttps://github.com/palantir/atlasdb/commit/8d9ed7583f3c695e90886a0d303f32c1925fcf1auestats}(totalK	additionsKڌ	deletionsK#ufiles](}(j (2dbc24b32d3c1d36a5252a785ef380d28cefa391filename
.java-versionstatusmodifiedj Kj KchangesKblob_url_https://github.com/palantir/atlasdb/blob/3f838d5e4b013663b88c520564646969901f72d9/.java-versionraw_url^https://github.com/palantir/atlasdb/raw/3f838d5e4b013663b88c520564646969901f72d9/.java-versioncontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/.java-version?ref=3f838d5e4b013663b88c520564646969901f72d9patch@@ -1 +1 @@
-11
+11.0u}(j (e01f8f7d37ce43a9eb4672184fb9c3abd935633ej eatlasdb-commons/src/test/java/com/palantir/common/concurrent/CheckedRejectionExecutorServiceTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javaj https://github.com/palantir/atlasdb/raw/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCheckedRejectionExecutorServiceTest.java?ref=3f838d5e4b013663b88c520564646969901f72d9j" X#
  @@ -19,31 +19,38 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.doThrow;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.google.common.util.concurrent.Futures;
 import java.util.concurrent.Callable;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.RejectedExecutionException;
 import org.junit.Test;
+import org.mockito.MockMakers;
 
 public class CheckedRejectionExecutorServiceTest {
     private static final Runnable DO_NOTHING = () -> {};
     private static final Callable<Integer> RETURN_ONE = () -> 1;
-    private static final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION = new RejectedExecutionException();
+    private static final RejectedExecutionException REJECTED_EXECUTION_EXCEPTION =
+            new RejectedExecutionException("test");
 
-    private final ExecutorService delegate = mock(ExecutorService.class);
+    private final ExecutorService delegate =
+            mock(ExecutorService.class, withSettings().mockMaker(MockMakers.SUBCLASS));
     private final CheckedRejectionExecutorService checkedRejectionExecutor =
             new CheckedRejectionExecutorService(delegate);
 
     @Test
     public void passesCallThroughExecute() throws CheckedRejectedExecutionException {
         checkedRejectionExecutor.execute(DO_NOTHING);
         verify(delegate, times(1)).execute(DO_NOTHING);
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
@@ -52,22 +59,27 @@ public void passesCallThroughSubmit() throws CheckedRejectedExecutionException {
         assertThat(Futures.getUnchecked(checkedRejectionExecutor.submit(RETURN_ONE)))
                 .isEqualTo(1);
         verify(delegate, times(1)).submit(RETURN_ONE);
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
     public void propagatesRejectionThroughExecute() {
-        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).execute(any());
+        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).execute(any(Runnable.class));
         assertThatThrownBy(() -> checkedRejectionExecutor.execute(DO_NOTHING))
                 .isInstanceOf(CheckedRejectedExecutionException.class)
                 .hasCause(REJECTED_EXECUTION_EXCEPTION);
+        verify(delegate).execute(eq(DO_NOTHING));
+        verifyNoMoreInteractions(delegate);
     }
 
     @Test
     @SuppressWarnings("unchecked") // Mocks
     public void propagatesRejectionThroughSubmit() {
-        doThrow(REJECTED_EXECUTION_EXCEPTION).when(delegate).submit(any(Callable.class));
+        when(delegate.submit(any(Callable.class))).thenThrow(REJECTED_EXECUTION_EXCEPTION);
         assertThatThrownBy(() -> checkedRejectionExecutor.submit(RETURN_ONE))
                 .isInstanceOf(CheckedRejectedExecutionException.class)
                 .hasCause(REJECTED_EXECUTION_EXCEPTION);
+        verify(delegate).submit(eq(RETURN_ONE));
+        verifyNoMoreInteractions(delegate);
     }
 }uP      }(j (d0f9372cc1f1f0ca2951aae2549e2f3c289903e7j Xatlasdb-commons/src/test/java/com/palantir/common/concurrent/CoalescingSupplierTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.javaj https://github.com/palantir/atlasdb/raw/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fconcurrent%2FCoalescingSupplierTest.java?ref=3f838d5e4b013663b88c520564646969901f72d9j" X  @@ -24,6 +24,7 @@
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
@@ -49,12 +50,14 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
+import org.mockito.MockMakers;
 
 @RunWith(Parameterized.class)
 public class CoalescingSupplierTest {
     private static final int DEFAULT_VALUE = 123;
 
-    private final Supplier<Integer> delegate = mock(Supplier.class);
+    private final Supplier<Integer> delegate =
+            mock(Supplier.class, withSettings().mockMaker(MockMakers.SUBCLASS));
     private final FreezableSupplier freezableDelegate = new FreezableSupplier(delegate);
     private final CoalescingSupplier<Integer> coalescing = new CoalescingSupplier<>(freezableDelegate);
 u}(j (9146e63073d86fe3d770ab7103a6eb65623b8820j Watlasdb-commons/src/test/java/com/palantir/common/proxy/ExperimentRunningProxyTest.javaj modifiedj K	j Kj Kj https://github.com/palantir/atlasdb/blob/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.javaj https://github.com/palantir/atlasdb/raw/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FExperimentRunningProxyTest.java?ref=3f838d5e4b013663b88c520564646969901f72d9j" X-  @@ -21,6 +21,7 @@
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import java.lang.reflect.Proxy;
 import java.time.Clock;
@@ -31,18 +32,21 @@
 import java.util.function.Supplier;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class ExperimentRunningProxyTest {
     private static final int EXPERIMENTAL_RESULT = 123;
     private static final int FALLBACK_RESULT = 1;
     private static final RuntimeException RUNTIME_EXCEPTION = new RuntimeException("foo");
 
-    private final IntSupplier experimentalIntSupplier = mock(IntSupplier.class);
-    private final Supplier<IntSupplier> experimentSupplier = mock(Supplier.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private final IntSupplier experimentalIntSupplier = mock(IntSupplier.class, mockSettings);
+    private final Supplier<IntSupplier> experimentSupplier = mock(Supplier.class, mockSettings);
     private final IntSupplier fallbackIntSupplier = () -> FALLBACK_RESULT;
-    private final BooleanSupplier useExperimental = mock(BooleanSupplier.class);
-    private final BooleanSupplier enableFallback = mock(BooleanSupplier.class);
-    private final Clock clock = mock(Clock.class);
+    private final BooleanSupplier useExperimental = mock(BooleanSupplier.class, mockSettings);
+    private final BooleanSupplier enableFallback = mock(BooleanSupplier.class, mockSettings);
+    private final Clock clock = mock(Clock.class, mockSettings);
     private final AtomicLong errorCounter = new AtomicLong();
 
     private final IntSupplier proxyInstance = intSupplierForProxy(new ExperimentRunningProxy<>(u}(j (b0f2716a61e018a00bbe37c55b0a8985af943d96j Watlasdb-commons/src/test/java/com/palantir/common/proxy/PredicateSwitchedProxyTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.javaj https://github.com/palantir/atlasdb/raw/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FPredicateSwitchedProxyTest.java?ref=3f838d5e4b013663b88c520564646969901f72d9j" X~  @@ -19,14 +19,18 @@
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.withSettings;
 
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.function.IntConsumer;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class PredicateSwitchedProxyTest {
-    private final IntConsumer decorated = mock(IntConsumer.class);
-    private final IntConsumer delegate = mock(IntConsumer.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private final IntConsumer decorated = mock(IntConsumer.class, mockSettings);
+    private final IntConsumer delegate = mock(IntConsumer.class, mockSettings);
 
     private final AtomicBoolean atomicBoolean = new AtomicBoolean(false);
 u}(j (afb4f7f151215eb0eb16fab26719c6f0358957e5j `atlasdb-commons/src/test/java/com/palantir/common/proxy/ReplaceIfExceptionMatchingProxyTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.javaj https://github.com/palantir/atlasdb/raw/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fproxy%2FReplaceIfExceptionMatchingProxyTest.java?ref=3f838d5e4b013663b88c520564646969901f72d9j" Xl  @@ -29,16 +29,17 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.mockito.Mock;
+import org.mockito.MockMakers;
 import org.mockito.junit.MockitoJUnitRunner;
 
 // Mock is used as a convenient supplier, alternatives are rather verbose
 @SuppressWarnings("DirectInvocationOnMock")
 @RunWith(MockitoJUnitRunner.class)
 public class ReplaceIfExceptionMatchingProxyTest {
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private TestInterface delegate;
 
-    @Mock
+    @Mock(mockMaker = MockMakers.SUBCLASS)
     private Supplier<TestInterface> supplier;
 
     interface TestInterface {u}(j (d8fe3c284ed462a646f9db9df6e46865f71c8b7fj Oatlasdb-commons/src/test/java/com/palantir/util/CachedComposedSupplierTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.javaj https://github.com/palantir/atlasdb/raw/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FCachedComposedSupplierTest.java?ref=3f838d5e4b013663b88c520564646969901f72d9j" X  @@ -16,7 +16,9 @@
 package com.palantir.util;
 
 import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.common.concurrent.PTExecutors;
 import java.util.concurrent.ExecutorService;
@@ -25,7 +27,7 @@
 import java.util.function.Supplier;
 import org.junit.Before;
 import org.junit.Test;
-import org.mockito.Mockito;
+import org.mockito.MockMakers;
 
 public class CachedComposedSupplierTest {
     private long counter;
@@ -37,7 +39,7 @@ public class CachedComposedSupplierTest {
     public void setup() {
         counter = 0;
         supplierCounter = 0;
-        mockVersionedSupplier = Mockito.mock(Supplier.class);
+        mockVersionedSupplier = mock(Supplier.class, withSettings().mockMaker(MockMakers.SUBCLASS));
         testSupplier = new CachedComposedSupplier<>(this::countingFunction, mockVersionedSupplier);
     }
 u}(j (21ad962d9f363b09efeaba7f674e27e337cb763aj Katlasdb-commons/src/test/java/com/palantir/util/SafeShutdownRunnerTest.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.javaj https://github.com/palantir/atlasdb/raw/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FSafeShutdownRunnerTest.java?ref=3f838d5e4b013663b88c520564646969901f72d9j" X  @@ -24,6 +24,7 @@
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import java.time.Duration;
@@ -32,14 +33,17 @@
 import java.util.stream.Stream;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public class SafeShutdownRunnerTest {
     private static final RuntimeException EXCEPTION_1 = new RuntimeException("test");
     private static final RuntimeException EXCEPTION_2 = new RuntimeException("bleh");
 
-    private Runnable mockRunnable = mock(Runnable.class);
-    private Runnable throwingRunnable = mock(Runnable.class);
-    private Runnable blockingUninterruptibleRunnable = mock(Runnable.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private Runnable mockRunnable = mock(Runnable.class, mockSettings);
+    private Runnable throwingRunnable = mock(Runnable.class, mockSettings);
+    private Runnable blockingUninterruptibleRunnable = mock(Runnable.class, mockSettings);
 
     @Before
     public void setupMocks() {u}(j (66bef959146e2dc5dd5452e6f9606c9e4120c4f4j Datlasdb-commons/src/test/java/com/palantir/util/TimedRunnerTest.javaj modifiedj K	j Kj Kj https://github.com/palantir/atlasdb/blob/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.javaj https://github.com/palantir/atlasdb/raw/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Futil%2FTimedRunnerTest.java?ref=3f838d5e4b013663b88c520564646969901f72d9j" X	  @@ -23,19 +23,23 @@
 import static org.mockito.Mockito.never;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.withSettings;
 
 import com.palantir.util.TimedRunner.TaskContext;
 import java.time.Duration;
 import java.util.concurrent.Callable;
 import org.junit.Before;
 import org.junit.Test;
+import org.mockito.MockMakers;
+import org.mockito.MockSettings;
 
 public final class TimedRunnerTest {
     private static final RuntimeException EXCEPTION_1 = new RuntimeException("test");
     private static final RuntimeException EXCEPTION_2 = new RuntimeException("bleh");
 
-    private Runnable noOpRunnable = mock(Runnable.class);
-    private Runnable throwingRunnable = mock(Runnable.class);
+    private final MockSettings mockSettings = withSettings().mockMaker(MockMakers.SUBCLASS);
+    private Runnable noOpRunnable = mock(Runnable.class, mockSettings);
+    private Runnable throwingRunnable = mock(Runnable.class, mockSettings);
 
     @Before
     public void setupMocks() {
@@ -46,7 +50,7 @@ public void setupMocks() {
     public void runnerRunsOneTask() throws Exception {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
 
-        Callable<Integer> task = mock(Callable.class);
+        Callable<Integer> task = mock(Callable.class, mockSettings);
         when(task.call()).thenReturn(5);
         int result = runner.run(TaskContext.create(task, noOpRunnable));
 
@@ -58,7 +62,7 @@ public void runnerRunsOneTask() throws Exception {
     @Test
     public void exceptionsAreThrownWhenRunningSingleton() {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
-        Runnable failureHandler = mock(Runnable.class);
+        Runnable failureHandler = mock(Runnable.class, mockSettings);
 
         assertThatThrownBy(() -> runner.run(TaskContext.createRunnable(throwingRunnable, failureHandler)))
                 .isEqualTo(EXCEPTION_1);
@@ -68,7 +72,7 @@ public void exceptionsAreThrownWhenRunningSingleton() {
     @Test
     public void correctSuppressedExceptionsAreThrownIfFailureHandlerThrows() {
         TimedRunner runner = TimedRunner.create(Duration.ofSeconds(1));
-        Runnable failureHandler = mock(Runnable.class);
+        Runnable failureHandler = mock(Runnable.class, mockSettings);
         doThrow(EXCEPTION_2).when(failureHandler).run();
 
         assertThatThrownBy(() -> runner.run(TaskContext.createRunnable(throwingRunnable, failureHandler)))u}(j (c480df0088f6789eb9035ca913cc7cc57d932d70j _atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/watch/TimestampMapping.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.javaj https://github.com/palantir/atlasdb/raw/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMapping.java?ref=3f838d5e4b013663b88c520564646969901f72d9j" X  @@ -16,12 +16,17 @@
 
 package com.palantir.atlasdb.keyvalue.api.watch;
 
-import com.google.common.collect.MoreCollectors;
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.Collections2;
 import com.google.common.collect.Range;
 import com.palantir.lock.watch.LockWatchVersion;
 import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.Iterator;
 import java.util.LongSummaryStatistics;
 import java.util.Map;
+import java.util.Objects;
 import java.util.UUID;
 import org.immutables.value.Value;
 
@@ -44,10 +49,8 @@ default LockWatchVersion lastVersion() {
 
     @Value.Derived
     default UUID leader() {
-        return timestampMapping().values().stream()
-                .map(LockWatchVersion::id)
-                .distinct()
-                .collect(MoreCollectors.onlyElement());
+        // explicitly avoiding stream and distinct collection copy when all IDs should be identical
+        return identicalElement(Collections2.transform(timestampMapping().values(), LockWatchVersion::id));
     }
 
     @Value.Check
@@ -58,4 +61,20 @@ default void nonEmptyMapping() {
     static ImmutableTimestampMapping.Builder builder() {
         return ImmutableTimestampMapping.builder();
     }
+
+    @VisibleForTesting
+    static <T> T identicalElement(Iterable<? extends T> iterable) {
+        Iterator<? extends T> iterator = iterable.iterator();
+        T element = iterator.next();
+        while (iterator.hasNext()) {
+            T next = iterator.next();
+            if (!Objects.equals(element, next)) {
+                throw new SafeIllegalArgumentException(
+                        "Input contains multiple distinct elements",
+                        SafeArg.of("element", element),
+                        SafeArg.of("next", next));
+            }
+        }
+        return element;
+    }
 }u}(j (2de6f288bf092213b4b2345a73a735695f0f3c27j catlasdb-impl-shared/src/test/java/com/palantir/atlasdb/keyvalue/api/watch/TimestampMappingTest.javaj addedj K\j K j K\j https://github.com/palantir/atlasdb/blob/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.javaj https://github.com/palantir/atlasdb/raw/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fwatch%2FTimestampMappingTest.java?ref=3f838d5e4b013663b88c520564646969901f72d9j" X;  @@ -0,0 +1,92 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.api.watch;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+
+import com.google.common.collect.Iterables;
+import com.palantir.lock.watch.LockWatchVersion;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import java.util.NoSuchElementException;
+import java.util.UUID;
+import org.junit.Test;
+
+public class TimestampMappingTest {
+    @Test
+    public void singleLeaderMappingIsValid() {
+        UUID id = UUID.randomUUID();
+        ImmutableTimestampMapping timestampMapping = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(id, 1))
+                .build();
+        assertThat(timestampMapping.leader()).isEqualTo(id);
+    }
+
+    @Test
+    public void singleDistinctLeaderMappingIsValid() {
+        UUID id = UUID.randomUUID();
+        ImmutableTimestampMapping timestampMapping = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(id, 1))
+                .putTimestampMapping(2L, LockWatchVersion.of(id, 1))
+                .build();
+        assertThat(timestampMapping.leader()).isEqualTo(id);
+    }
+
+    @Test
+    public void conflictingLeaderMappingIsInvalid() {
+        ImmutableTimestampMapping.Builder builder = TimestampMapping.builder()
+                .putTimestampMapping(1L, LockWatchVersion.of(UUID.randomUUID(), 1))
+                .putTimestampMapping(2L, LockWatchVersion.of(UUID.randomUUID(), 1));
+
+        assertThatThrownBy(builder::build)
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+    }
+
+    @Test
+    public void emptyMappingIsInvalid() {
+        assertThatThrownBy(() -> TimestampMapping.builder().build())
+                .isInstanceOf(IllegalArgumentException.class)
+                .hasMessageContaining("Invalid range");
+    }
+
+    @Test
+    public void onlyIdenticalElements() {
+        assertThat(TimestampMapping.identicalElement(List.of("test"))).isEqualTo("test");
+        assertThat(TimestampMapping.identicalElement(Iterables.limit(Iterables.cycle("test"), 1000)))
+                .isEqualTo("test");
+        assertThat(TimestampMapping.identicalElement(Iterables.limit(Iterables.cycle(42L), 1000)))
+                .isEqualTo(42L);
+    }
+
+    @Test
+    public void emptyDistinctElements() {
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of()))
+                .isInstanceOf(NoSuchElementException.class);
+    }
+
+    @Test
+    public void multipleDistinctElements() {
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of("a", "b", "a")))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+        assertThatThrownBy(() -> TimestampMapping.identicalElement(List.of("a", "a", "b")))
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining("Input contains multiple distinct elements");
+    }
+}u}(j (b86932b661e3da17f104f58842a6abb1d2486e6fj latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://github.com/palantir/atlasdb/raw/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=3f838d5e4b013663b88c520564646969901f72d9j" XI  @@ -22,6 +22,7 @@
 import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.util.concurrent.MoreExecutors;
+import com.google.common.util.concurrent.Uninterruptibles;
 import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
@@ -45,6 +46,7 @@
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
 import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.refreshable.Refreshable;
@@ -55,6 +57,7 @@
 import io.dropwizard.lifecycle.setup.LifecycleEnvironment;
 import io.dropwizard.setup.Bootstrap;
 import io.dropwizard.setup.Environment;
+import java.time.Instant;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
@@ -129,6 +132,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
 
+        waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
+
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
                 .run(
                         createSingleRowTwoCellsWorkflowValidator(
@@ -147,6 +152,28 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
+    private void waitForTransactionStoreFactoryToBeInitialized(AtlasDbTransactionStoreFactory factory) {
+        // TODO (jkong): This is awful, but sufficient for now.
+        Instant deadline = Instant.now().plusSeconds(TimeUnit.MINUTES.toSeconds(5));
+        while (Instant.now().isBefore(deadline)) {
+            if (factory.isInitialized()) {
+                log.info("AtlasDB transaction store factory initialized.");
+                return;
+            } else {
+                log.info(
+                        "AtlasDB transaction store factory not yet initialized. Waiting for five seconds; we won't"
+                                + " retry after {}.",
+                        SafeArg.of("deadline", deadline));
+                Uninterruptibles.sleepUninterruptibly(5, TimeUnit.SECONDS);
+            }
+        }
+        log.error("AtlasDB transaction store factory not initialized after five minutes, which suggests that there's"
+                + " likely to be some issue with starting up one of our service's dependencies.");
+        log.info("antithesis: terminate");
+        log.error("Workflow will now exit.");
+        System.exit(1);
+    }
+
     private WorkflowAndInvariants<Workflow> createSingleBusyCellWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             SingleBusyCellWorkflowConfiguration workflowConfig,u}(j (d7e657bac4380f77b52abaf6625e5ae6ced4addej Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://github.com/palantir/atlasdb/raw/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=3f838d5e4b013663b88c520564646969901f72d9j" @@ -19,6 +19,7 @@ runtime:
           trustStorePath: "var/security/trustStore.jks"
 install:
   atlas:
+    initializeAsync: true
     keyValueService:
       type: cassandra
       servers:u}(j (e998e111e223273bdb28df2df52768ed59a74d5dj Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=3f838d5e4b013663b88c520564646969901f72d9j" @@ -1,9 +1,10 @@
 runtime: {}
 install:
   atlas:
-    namespace: test
+    initializeAsync: true
     keyValueService:
       type: memory
+    namespace: test
   singleRowTwoCellsConfig:
     tableConfiguration:
       tableName: two-cells-testu}(j (d7dd783c1221e2a93fad625414ea628dac4c9695j matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj https://github.com/palantir/atlasdb/raw/3f838d5e4b013663b88c520564646969901f72d9/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=3f838d5e4b013663b88c520564646969901f72d9j" X  @@ -54,6 +54,10 @@ public AtlasDbTransactionStoreFactory(TransactionManager transactionManager, Opt
         this.maybeNamespace = maybeNamespace.map(Namespace::create);
     }
 
+    public boolean isInitialized() {
+        return transactionManager.isInitialized();
+    }
+
     @Override
     public InteractiveTransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
         return AtlasDbTransactionStore.create(transactionManager, toAtlasTables(tables, indexes));u}(j (16fb8eee169fd963709ea4a7cfbd511308736f08j $changelog/@unreleased/pr-6506.v2.ymlj addedj Kj K j Kj |https://github.com/palantir/atlasdb/blob/3f838d5e4b013663b88c520564646969901f72d9/changelog%2F%40unreleased%2Fpr-6506.v2.ymlj {https://github.com/palantir/atlasdb/raw/3f838d5e4b013663b88c520564646969901f72d9/changelog%2F%40unreleased%2Fpr-6506.v2.ymlj  https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6506.v2.yml?ref=3f838d5e4b013663b88c520564646969901f72d9j" @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Optimize TimestampMapping::leader to avoid stream overhead
+  links:
+  - https://github.com/palantir/atlasdb/pull/6506u}(j (196c276969d650b1d6d0e72c152a4a1d49ef5f6ej 
versions.lockj modifiedj Kj Kj Kj _https://github.com/palantir/atlasdb/blob/3f838d5e4b013663b88c520564646969901f72d9/versions.lockj ^https://github.com/palantir/atlasdb/raw/3f838d5e4b013663b88c520564646969901f72d9/versions.lockj  qhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=3f838d5e4b013663b88c520564646969901f72d9j" X  @@ -200,8 +200,8 @@ jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.5 (6 constraints: 845987f4)
 junit:junit:4.13.2 (8 constraints: 5a9c5baf)
-net.bytebuddy:byte-buddy:1.14.3 (3 constraints: 3d25d791)
-net.bytebuddy:byte-buddy-agent:1.14.1 (1 constraints: 410b3fde)
+net.bytebuddy:byte-buddy:1.14.4 (3 constraints: 4025da91)
+net.bytebuddy:byte-buddy-agent:1.14.4 (1 constraints: 440b42de)
 net.java.dev.jna:jna:4.1.0 (2 constraints: 6e1bbbad)
 net.jpountz.lz4:lz4:1.3.0 (2 constraints: 971453a0)
 net.ltgt.gradle.incap:incap:0.2 (1 constraints: ea0d3b32)
@@ -293,7 +293,7 @@ org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.0 (3 constraints: c125b5a3)
 org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.5.0 (1 constraints: 4b0ea44e)
 org.jvnet:animal-sniffer-annotation:1.0 (1 constraints: f20b95eb)
 org.mindrot:jbcrypt:0.4 (2 constraints: 4714f171)
-org.mockito:mockito-core:5.2.0 (2 constraints: 51165c12)
+org.mockito:mockito-core:5.3.1 (2 constraints: 5316c412)
 org.mpierce.metrics.reservoir:hdrhistogram-metrics-reservoir:1.1.3 (1 constraints: 0d10f991)
 org.objenesis:objenesis:3.3 (2 constraints: c71412ab)
 org.openjdk.jmh:jmh-core:1.36 (2 constraints: f51525d9)u}(j (089fade66d09b3cbc4c42ee07a5dca286262895cj versions.propsj modifiedj Kj Kj Kj `https://github.com/palantir/atlasdb/blob/3f838d5e4b013663b88c520564646969901f72d9/versions.propsj _https://github.com/palantir/atlasdb/raw/3f838d5e4b013663b88c520564646969901f72d9/versions.propsj  rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=3f838d5e4b013663b88c520564646969901f72d9j" X  @@ -72,7 +72,7 @@ org.jboss.threads:jboss-threads = 3.5.0.Final
 org.jdbi:* = 3.30.0
 org.jmock:jmock* = 2.12.0
 org.mindrot:jbcrypt = 0.4
-org.mockito:* = 5.2.0
+org.mockito:* = 5.3.1
 org.openjdk.jmh:* = 1.36
 org.reflections:reflections = 0.10.2
 org.rocksdb:rocksdbjni = 7.9.2ueu(0bd149eff96db83774604084d5f0ef5e8dc0d07d}(sha(0bd149eff96db83774604084d5f0ef5e8dc0d07dnode_idEC_kwDOAjP5fdoAKDBiZDE0OWVmZjk2ZGI4Mzc3NDYwNDA4NGQ1ZjBlZjVlOGRjMGQwN2Qcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-29T13:42:19Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-06-29T16:14:08Zumessage0Add LockRequestMetadata to IdentifiedLockRequesttree}(j (f5adddae07cbdec7152174daf9d5677d6ccabf4eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/f5adddae07cbdec7152174daf9d5677d6ccabf4eujƄ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/0bd149eff96db83774604084d5f0ef5e8dc0d07d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSdrdAACgkQmF9s0kaF
Iw3/EAf8CculDL7uftNwsjUyuLbE1YrDbgUy7IFJxRsTUGv+J+fgSMTL1FvGG0W9
AHtcYNjJ6NDoVDBbjcDDkUzlSeCit0DlkYCwX4nDoJWTNIFY1Q2zydAMtIrdRxFQ
hEjEgoyO9zlnbNPUHvOfGvMQS/kzxVoUZeFhQBGdS4j1TOnt8OmGMI7COYeibSrp
Dm0DDbFN9k1nMDN5Agg0y/y7DYKGOXujA+0Qoxv3gKeSmD8/DGGEvqfZoMlOHwYj
DvR4J3XaFr4pQL5WWuWNFf/o9Tu+SAYCiDwTqVXeXGu+huHNyFLhXpdn4Pb4KhQP
B4sMMCGiMf6SpeifWp3ttWhO9I1OUA==
=qzl7
-----END PGP SIGNATURE-----payloadX  tree f5adddae07cbdec7152174daf9d5677d6ccabf4e
parent 647b44abf9724111ca3d6e4e36be6c61ee82d1af
author Tom Papke <tpapke@palantir.com> 1688046139 +0100
committer Tom Papke <tpapke@palantir.com> 1688055248 +0100

Add LockRequestMetadata to IdentifiedLockRequest
uujƄ ^https://api.github.com/repos/palantir/atlasdb/commits/0bd149eff96db83774604084d5f0ef5e8dc0d07dhtml_urlShttps://github.com/palantir/atlasdb/commit/0bd149eff96db83774604084d5f0ef5e8dc0d07dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/0bd149eff96db83774604084d5f0ef5e8dc0d07d/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jƄ &https://api.github.com/users/ToemmschejԄ https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(jل 	Toemmschejۄ Jboj MDQ6VXNlcjQzNjc1NDkwj݄ 4https://avatars.githubusercontent.com/u/43675490?v=4j߄ h5jƄ &https://api.github.com/users/ToemmschejԄ https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(j (647b44abf9724111ca3d6e4e36be6c61ee82d1afjƄ ^https://api.github.com/repos/palantir/atlasdb/commits/647b44abf9724111ca3d6e4e36be6c61ee82d1afjԄ Shttps://github.com/palantir/atlasdb/commit/647b44abf9724111ca3d6e4e36be6c61ee82d1afuastats}(totalK	additionsK	deletionsKufiles]}(j (6ad04228eeb384671486cf32446155659b4c354efilenameJlock-api/src/main/java/com/palantir/lock/client/IdentifiedLockRequest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/0bd149eff96db83774604084d5f0ef5e8dc0d07d/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/0bd149eff96db83774604084d5f0ef5e8dc0d07d/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FIdentifiedLockRequest.java?ref=0bd149eff96db83774604084d5f0ef5e8dc0d07dpatchX  @@ -15,10 +15,12 @@
  */
 package com.palantir.lock.client;
 
+import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.watch.LockRequestMetadata;
 import com.palantir.logsafe.Unsafe;
 import java.util.Optional;
 import java.util.Set;
@@ -43,15 +45,32 @@ public interface IdentifiedLockRequest {
     @Value.Parameter
     Optional<String> getClientDescription();
 
+    @Value.Parameter
+    @JsonIgnore
+    Optional<LockRequestMetadata> getMetadata();
+
     static IdentifiedLockRequest of(Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs) {
         return ImmutableIdentifiedLockRequest.of(
-                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.empty());
+                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.empty(), Optional.empty());
     }
 
     static IdentifiedLockRequest of(
             Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs, String clientDescription) {
         return ImmutableIdentifiedLockRequest.of(
-                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription));
+                UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.of(clientDescription), Optional.empty());
+    }
+
+    static IdentifiedLockRequest of(
+            Set<LockDescriptor> lockDescriptors,
+            long acquireTimeoutMs,
+            String clientDescription,
+            LockRequestMetadata metadata) {
+        return ImmutableIdentifiedLockRequest.of(
+                UUID.randomUUID(),
+                lockDescriptors,
+                acquireTimeoutMs,
+                Optional.of(clientDescription),
+                Optional.of(metadata));
     }
 
     static IdentifiedLockRequest from(LockRequest lockRequest) {uau(5fa2497822389be4625d7281bdee8dfad618b82d}(sha(5fa2497822389be4625d7281bdee8dfad618b82dnode_idEC_kwDOAjP5fdoAKDVmYTI0OTc4MjIzODliZTQ2MjVkNzI4MWJkZWU4ZGZhZDYxOGI4MmQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-22T10:16:35Zu	committer}(j- 
Sam Kramerj/ skramer@palantir.comj1 2023-05-22T10:43:45Zumessageadd flush and compacttree}(j% (4b62cf443dd10bd3d2a805e4f2dfab38f19b19f7url`https://api.github.com/repos/palantir/atlasdb/git/trees/4b62cf443dd10bd3d2a805e4f2dfab38f19b19f7uj= bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5fa2497822389be4625d7281bdee8dfad618b82d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRrR2EACgkQmPPOpKR4
XS27nAgAnFdg1ymEUkDtvC3HfrwFI5X2qnHjDkI3VwpEEPxDqqYp3jL6lUZoXJOy
CYfnXLU1SBZxKf+BUBrmMHMpRe0MScFDZSHX57XiPCczQnCduSYlpLi5NWCV6vq6
bT/xAQyQKDh11wsfl3wxvnIr0q9ETi6t3sLhsLK7fnOLbrMFjMBwkfS6/38gFJHG
zuVi9RthMn9AldTQ5gf0EHQJ6NOzk898Rei6lPtikPE+SPsKZyS2iVLpvnbIBcBq
uEI3cbMKYDMoRLucXSzpY9O6k0+rPAgoDoO25RyYMPsSVWnZF0rqp83/oxpI7cji
/NakHKkL+STk0NMmcugTk9hFy+i4/Q==
=Se0m
-----END PGP SIGNATURE-----payloadtree 4b62cf443dd10bd3d2a805e4f2dfab38f19b19f7
parent 9976f955b872027d75d6cd35a53599ba3f30fe3c
author Sam Kramer <skramer@palantir.com> 1684750595 +0100
committer Sam Kramer <skramer@palantir.com> 1684752225 +0100

add flush and compact
uuj= ^https://api.github.com/repos/palantir/atlasdb/commits/5fa2497822389be4625d7281bdee8dfad618b82dhtml_urlShttps://github.com/palantir/atlasdb/commit/5fa2497822389be4625d7281bdee8dfad618b82dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5fa2497822389be4625d7281bdee8dfad618b82d/commentsj+ }(login
Sam-KrameridJ^2_ j' MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j= 'https://api.github.com/users/Sam-KramerjK https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj3 }(jP 
Sam-KramerjR J^2_ j' MDQ6VXNlcjYyMzg4MTQ=jT 3https://avatars.githubusercontent.com/u/6238814?v=4jV h5j= 'https://api.github.com/users/Sam-KramerjK https://github.com/Sam-KramerjY 1https://api.github.com/users/Sam-Kramer/followersj[ >https://api.github.com/users/Sam-Kramer/following{/other_user}j] 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j_ >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}ja 5https://api.github.com/users/Sam-Kramer/subscriptionsjc ,https://api.github.com/users/Sam-Kramer/orgsje -https://api.github.com/users/Sam-Kramer/reposjg 8https://api.github.com/users/Sam-Kramer/events{/privacy}ji 7https://api.github.com/users/Sam-Kramer/received_eventsjk Userjm uparents]}(j% (9976f955b872027d75d6cd35a53599ba3f30fe3cj= ^https://api.github.com/repos/palantir/atlasdb/commits/9976f955b872027d75d6cd35a53599ba3f30fe3cjK Shttps://github.com/palantir/atlasdb/commit/9976f955b872027d75d6cd35a53599ba3f30fe3cuastats}(totalK	additionsK	deletionsKufiles]}(j% (9ce74a5cd2c6d02324dae753b39d4472d7e0fcadfilename-atlasdb-workload-server-antithesis/Dockerfilestatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/5fa2497822389be4625d7281bdee8dfad618b82d/atlasdb-workload-server-antithesis%2FDockerfileraw_urlhttps://github.com/palantir/atlasdb/raw/5fa2497822389be4625d7281bdee8dfad618b82d/atlasdb-workload-server-antithesis%2FDockerfilecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2FDockerfile?ref=5fa2497822389be4625d7281bdee8dfad618b82dpatch@@ -1,4 +1,6 @@
 FROM scratch
 MAINTAINER AtlasDB Team
 
-ADD docker-compose.yml /
\ No newline at end of file
+ADD docker-compose.yml /
+ADD compact.sh /
+ADD flush.sh /
\ No newline at end of fileuau(59b537818bafe1f4a24073e1bad60b999805da81}(sha(59b537818bafe1f4a24073e1bad60b999805da81node_idEC_kwDOAjP5fdoAKDU5YjUzNzgxOGJhZmUxZjRhMjQwNzNlMWJhZDYwYjk5OTgwNWRhODEcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-28T14:49:11Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-04-28T14:49:11ZumessageDMerge branch 'aatest23' of github.com:palantir/atlasdb into aatest23tree}(j (734f9e22fe714cec53743a00920211457840f174url`https://api.github.com/repos/palantir/atlasdb/git/trees/734f9e22fe714cec53743a00920211457840f174uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/59b537818bafe1f4a24073e1bad60b999805da81
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRL3acACgkQPlMHVIT1
yhq9wQgAhQRHrM+tMkBXu9WCDxqjUy/wlz+drBCBeLDMvoXOPQxrbXeJ9UH+Zg7y
/KVfPz0MEZTJE3ESMQHS4zsm0sT5Fq515sVpmmlsQDIk/dQpLkbYo2fEpvkQzrtf
fZNUxL9vpOa+XT6TSMAIgFpZjgQIkiQ2c73YWilQmsjn+iubZkGx8X32TAGhEkpT
fP1G30w/WEgElLeSBcJJVlaiFRu2/IlHfNyb55o25/H0U1yWZWMQDketXmBtuItk
UPV+nQDOG49lYwf51DU5FL6fjUIqB6EYYiwh6nHKqL4FmxcVHhVQnVl7jzKZG/iy
7SSslUKuinTlnw73iTKK4p2Sar+fJg==
=APdy
-----END PGP SIGNATURE-----payloadXS  tree 734f9e22fe714cec53743a00920211457840f174
parent e1ea6c2ee0f2f913cbae1f5f15eaac1423f3ec68
parent 08a3f9f8004ef6f319cc35a9497d4b134af8d4d5
author Ahmed Alouane <aalouane@palantir.com> 1682693351 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682693351 +0100

Merge branch 'aatest23' of github.com:palantir/atlasdb into aatest23
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/59b537818bafe1f4a24073e1bad60b999805da81html_urlShttps://github.com/palantir/atlasdb/commit/59b537818bafe1f4a24073e1bad60b999805da81comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/59b537818bafe1f4a24073e1bad60b999805da81/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(jǅ ergo14jɅ Jj MDQ6VXNlcjMwOTAzNzM2j˅ 4https://avatars.githubusercontent.com/u/30903736?v=4jͅ h5j #https://api.github.com/users/ergo14j https://github.com/ergo14jЅ -https://api.github.com/users/ergo14/followersj҅ :https://api.github.com/users/ergo14/following{/other_user}jԅ 3https://api.github.com/users/ergo14/gists{/gist_id}jօ :https://api.github.com/users/ergo14/starred{/owner}{/repo}j؅ 1https://api.github.com/users/ergo14/subscriptionsjڅ (https://api.github.com/users/ergo14/orgsj܅ )https://api.github.com/users/ergo14/reposjޅ 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents](}(j (e1ea6c2ee0f2f913cbae1f5f15eaac1423f3ec68j ^https://api.github.com/repos/palantir/atlasdb/commits/e1ea6c2ee0f2f913cbae1f5f15eaac1423f3ec68j Shttps://github.com/palantir/atlasdb/commit/e1ea6c2ee0f2f913cbae1f5f15eaac1423f3ec68u}(j (08a3f9f8004ef6f319cc35a9497d4b134af8d4d5j ^https://api.github.com/repos/palantir/atlasdb/commits/08a3f9f8004ef6f319cc35a9497d4b134af8d4d5j Shttps://github.com/palantir/atlasdb/commit/08a3f9f8004ef6f319cc35a9497d4b134af8d4d5uestats}(totalK 	additionsK 	deletionsK ufiles]u(ccdd47a65e2c88b87fcd6464a5fec27f710f1146}(sha(ccdd47a65e2c88b87fcd6464a5fec27f710f1146node_idEC_kwDOAjP5fdoAKGNjZGQ0N2E2NWUyYzg4Yjg3ZmNkNjQ2NGE1ZmVjMjdmNzEwZjExNDYcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-07-21T18:44:18Zu	committer}(j GitHubj noreply@github.comj 2023-07-21T18:44:18ZumessageX  Reduce observability overhead cost (#6677)

Reuse notLatestVisibleValueCellFilterCounter 

Avoid expensive metric name computation for each value extraction by
registering the notLatestVisibleValueCellFilterCounter once and reusing
it throughout the lifetime.

Note that this includes several internal API changes; however, these
should not be an issue for any known AtlasDB consumers.

CellLoader.loadWithTs minimizes unobserved tracing overheadtree}(j (46c2b96d3a4111dffec713a23d65b39275230547url`https://api.github.com/repos/palantir/atlasdb/git/trees/46c2b96d3a4111dffec713a23d65b39275230547uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/ccdd47a65e2c88b87fcd6464a5fec27f710f1146
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkutICCRBK7hj4Ov3rIwAANJIIAH8y03I0CwvxMzqizO/Z90L2
CJ5kd1aQP4SJKeteMzJOjxHrIHzPOPjnJ8KhS+j0+WryLyPu+2maKteXJMSYNaeg
1WdIbEeqRwI3jGYOlpGM1oW31EnIyMW2ci4Mbdk3oznQevLbQjBxzS7iRdVptCqA
m6vLx8SMsAs/C5hEXexKgmXRVHCAt3ZJrN+PvsTo0pBC9PMu/9KzXFFkUg0xtlwM
QEK6yCFk+IARgC1zraZCvRryR8LnqUDt7NxqFEFIFzVWsuw2ktf/U87XxsHGMH72
sD3Yv77xQz05WsC1ESOm+GflDSnOYS1Z9L7SbDua6CAqymMe/VNpLMpKv7j9WdU=
=lrg5
-----END PGP SIGNATURE-----
payloadX  tree 46c2b96d3a4111dffec713a23d65b39275230547
parent 502ed024fb8f63feeab621934da160b4b4329884
author David Schlosnagle <davids@palantir.com> 1689965058 -0400
committer GitHub <noreply@github.com> 1689965058 +0000

Reduce observability overhead cost (#6677)

Reuse notLatestVisibleValueCellFilterCounter 

Avoid expensive metric name computation for each value extraction by
registering the notLatestVisibleValueCellFilterCounter once and reusing
it throughout the lifetime.

Note that this includes several internal API changes; however, these
should not be an issue for any known AtlasDB consumers.

CellLoader.loadWithTs minimizes unobserved tracing overhead

uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/ccdd47a65e2c88b87fcd6464a5fec27f710f1146html_urlShttps://github.com/palantir/atlasdb/commit/ccdd47a65e2c88b87fcd6464a5fec27f710f1146comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/ccdd47a65e2c88b87fcd6464a5fec27f710f1146/commentsj }(loginschlosnaidMBj
 MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j  %https://api.github.com/users/schlosnaj. https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj }(j3 web-flowj5 J/j
 MDQ6VXNlcjE5ODY0NDQ3j7 4https://avatars.githubusercontent.com/u/19864447?v=4j9 h5j  %https://api.github.com/users/web-flowj. https://github.com/web-flowj< /https://api.github.com/users/web-flow/followersj> <https://api.github.com/users/web-flow/following{/other_user}j@ 5https://api.github.com/users/web-flow/gists{/gist_id}jB <https://api.github.com/users/web-flow/starred{/owner}{/repo}jD 3https://api.github.com/users/web-flow/subscriptionsjF *https://api.github.com/users/web-flow/orgsjH +https://api.github.com/users/web-flow/reposjJ 6https://api.github.com/users/web-flow/events{/privacy}jL 5https://api.github.com/users/web-flow/received_eventsjN UserjP uparents]}(j (502ed024fb8f63feeab621934da160b4b4329884j  ^https://api.github.com/repos/palantir/atlasdb/commits/502ed024fb8f63feeab621934da160b4b4329884j. Shttps://github.com/palantir/atlasdb/commit/502ed024fb8f63feeab621934da160b4b4329884uastats}(totalKo	additionsKJ	deletionsK%ufiles](}(j (228ee8aa1a73fd41852342e6236b34b85f5feeb6filename.palantir/revapi.ymlstatusmodifiedjj Kjk K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/ccdd47a65e2c88b87fcd6464a5fec27f710f1146/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/ccdd47a65e2c88b87fcd6464a5fec27f710f1146/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=ccdd47a65e2c88b87fcd6464a5fec27f710f1146patchXN
  @@ -129,3 +129,26 @@ acceptedBreaks:
       new: "parameter <T> long com.palantir.atlasdb.keyvalue.cassandra.thrift.ThriftObjectSizeUtils::getCollectionSize(java.util.Collection<T>,\
         \ ===java.util.function.ToLongFunction<T>===)"
       justification: "Avoid autoboxing long to Long"
+  "0.899.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, ===com.palantir.atlasdb.util.MetricsManager===,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider)"
+      new: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, ===com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider===,\
+        \ java.util.function.Function<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
+        \ com.palantir.atlasdb.keyvalue.api.Value>, com.palantir.atlasdb.keyvalue.cassandra.ResultsExtractor<com.palantir.atlasdb.keyvalue.api.Value>>)"
+      justification: "Reuse notLatestVisibleValueCellFilterCounter"
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, com.palantir.atlasdb.util.MetricsManager,\
+        \ ===com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider===)"
+      new: "parameter void com.palantir.atlasdb.keyvalue.cassandra.RangeLoader::<init>(com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPool,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.TracingQueryRunner, com.palantir.atlasdb.keyvalue.cassandra.ReadConsistencyProvider,\
+        \ ===java.util.function.Function<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
+        \ com.palantir.atlasdb.keyvalue.api.Value>, com.palantir.atlasdb.keyvalue.cassandra.ResultsExtractor<com.palantir.atlasdb.keyvalue.api.Value>>===)"
+      justification: "Reuse notLatestVisibleValueCellFilterCounter"
+    - code: "java.method.removed"
+      old: "method com.codahale.metrics.Counter com.palantir.atlasdb.keyvalue.cassandra.ResultsExtractor<T>::getNotLatestVisibleValueCellFilterCounter(java.lang.Class<?>)"
+      justification: "Reuse notLatestVisibleValueCellFilterCounter"u}(j (24eb78c9e781527756585d486a989cfa4d275af1jp iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javajr modifiedjj Kjk Kjt Kju https://github.com/palantir/atlasdb/blob/ccdd47a65e2c88b87fcd6464a5fec27f710f1146/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javajw https://github.com/palantir/atlasdb/raw/ccdd47a65e2c88b87fcd6464a5fec27f710f1146/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javajy https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=ccdd47a65e2c88b87fcd6464a5fec27f710f1146j{ X  @@ -15,6 +15,7 @@
  */
 package com.palantir.atlasdb.keyvalue.cassandra;
 
+import com.codahale.metrics.Counter;
 import com.datastax.driver.core.exceptions.DriverInternalError;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Functions;
@@ -39,6 +40,7 @@
 import com.google.protobuf.ByteString;
 import com.palantir.async.initializer.AsyncInitializer;
 import com.palantir.atlasdb.AtlasDbConstants;
+import com.palantir.atlasdb.AtlasDbMetricNames.CellFilterMetrics;
 import com.palantir.atlasdb.CassandraTopologyValidationMetrics;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig;
 import com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig;
@@ -130,6 +132,7 @@
 import java.util.Set;
 import java.util.concurrent.Callable;
 import java.util.concurrent.ExecutorService;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 import java.util.stream.StreamSupport;
@@ -245,6 +248,7 @@ public void close() {
     private final CassandraMutationTimestampProvider mutationTimestampProvider;
     private final Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig;
     private final CassandraVerifierConfig verifierConfig;
+    private final Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory;
 
     public static CassandraKeyValueService createForTesting(
             CassandraKeyValueServiceConfig config, Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig) {
@@ -412,14 +416,19 @@ private static CassandraKeyValueService createAndInitialize(
             CassandraMutationTimestampProvider mutationTimestampProvider,
             Logger log,
             boolean initializeAsync) {
+        Counter notLatestVisibleValueCellFilterCounter = // register counter once and reuse
+                metricsManager.registerOrGetCounter(ValueExtractor.class, CellFilterMetrics.NOT_LATEST_VISIBLE_VALUE);
+        Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory = cellValueMap ->
+                new ValueExtractor(metricsManager, cellValueMap, notLatestVisibleValueCellFilterCounter);
         CassandraKeyValueServiceImpl keyValueService = new CassandraKeyValueServiceImpl(
                 log,
                 metricsManager,
                 config,
                 asyncKeyValueService,
                 runtimeConfig,
                 clientPool,
-                mutationTimestampProvider);
+                mutationTimestampProvider,
+                extractorFactory);
         keyValueService.wrapper.initialize(initializeAsync);
         return keyValueService.wrapper.isInitialized() ? keyValueService : keyValueService.wrapper;
     }
@@ -431,7 +440,8 @@ private CassandraKeyValueServiceImpl(
             AsyncKeyValueService asyncKeyValueService,
             Refreshable<CassandraKeyValueServiceRuntimeConfig> runtimeConfig,
             CassandraClientPool clientPool,
-            CassandraMutationTimestampProvider mutationTimestampProvider) {
+            CassandraMutationTimestampProvider mutationTimestampProvider,
+            Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory) {
         super(createBlockingThreadpool(config, runtimeConfig.get().servers(), metricsManager));
         this.log = log;
         this.metricsManager = metricsManager;
@@ -444,7 +454,7 @@ private CassandraKeyValueServiceImpl(
         this.cassandraTables = new CassandraTables(clientPool, config);
         this.taskRunner = new TaskRunner(executor);
         this.cellLoader = CellLoader.create(clientPool, wrappingQueryRunner, taskRunner, runtimeConfig);
-        this.rangeLoader = new RangeLoader(clientPool, queryRunner, metricsManager, readConsistencyProvider);
+        this.rangeLoader = new RangeLoader(clientPool, queryRunner, readConsistencyProvider, extractorFactory);
         this.cellValuePutter = new CellValuePutter(
                 runtimeConfig,
                 clientPool,
@@ -459,6 +469,7 @@ private CassandraKeyValueServiceImpl(
                 new CassandraTableDropper(config, clientPool, tableMetadata, cassandraTableTruncator);
         this.runtimeConfig = runtimeConfig;
         this.verifierConfig = CassandraVerifierConfig.of(config, runtimeConfig.get());
+        this.extractorFactory = extractorFactory;
     }
 
     private static ExecutorService createBlockingThreadpool(
@@ -674,7 +685,7 @@ private Map<Cell, Value> getAllCellsForRows(
                     .collect(Collectors.toList());
         }
 
-        ValueExtractor extractor = new ValueExtractor(metricsManager, Maps.newHashMapWithExpectedSize(result.size()));
+        ResultsExtractor<Value> extractor = extractorFactory.apply(Maps.newHashMapWithExpectedSize(result.size()));
         extractor.extractResults(Multimaps.asMap(result), startTs, ColumnSelection.all());
         return extractor.asMap();
     }
@@ -760,7 +771,7 @@ private Map<Cell, Value> getRowsForSpecificColumns(
             }
         }
 
-        StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, startTs);
+        StartTsResultsCollector collector = new StartTsResultsCollector(startTs, extractorFactory);
         cellLoader.loadWithTs(
                 "getRows",
                 tableRef,
@@ -804,7 +815,7 @@ public Map<Cell, Value> get(TableReference tableRef, Map<Cell, Long> timestampBy
                     Multimaps.invertFrom(Multimaps.forMap(timestampByCell), HashMultimap.create());
             ImmutableMap.Builder<Cell, Value> builder = ImmutableMap.builder();
             for (long ts : cellsByTs.keySet()) {
-                StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, ts);
+                StartTsResultsCollector collector = new StartTsResultsCollector(ts, extractorFactory);
                 cellLoader.loadWithTs(
                         "get",
                         tableRef,
@@ -823,7 +834,7 @@ public Map<Cell, Value> get(TableReference tableRef, Map<Cell, Long> timestampBy
 
     private Map<Cell, Value> get(
             String kvsMethodName, TableReference tableRef, Set<Cell> cells, long maxTimestampExclusive) {
-        StartTsResultsCollector collector = new StartTsResultsCollector(metricsManager, maxTimestampExclusive);
+        StartTsResultsCollector collector = new StartTsResultsCollector(maxTimestampExclusive, extractorFactory);
         cellLoader.loadWithTs(
                 kvsMethodName,
                 tableRef,u}(j (0df00981272b5a894f62dbd3c588bdc01a9c6a86jp fatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServices.javajr modifiedjj Kjk Kjt Kju https://github.com/palantir/atlasdb/blob/ccdd47a65e2c88b87fcd6464a5fec27f710f1146/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javajw https://github.com/palantir/atlasdb/raw/ccdd47a65e2c88b87fcd6464a5fec27f710f1146/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.javajy https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServices.java?ref=ccdd47a65e2c88b87fcd6464a5fec27f710f1146j{ X  @@ -28,7 +28,6 @@
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.table.description.TableMetadata;
-import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.base.RunnableCheckedException;
 import com.palantir.common.base.Throwables;
 import com.palantir.common.visitor.Visitor;
@@ -49,6 +48,7 @@
 import java.util.Optional;
 import java.util.UUID;
 import java.util.concurrent.ConcurrentHashMap;
+import java.util.function.Function;
 import java.util.stream.Collectors;
 import org.apache.cassandra.thrift.CfDef;
 import org.apache.cassandra.thrift.Column;
@@ -408,11 +408,11 @@ interface ThreadSafeResultVisitor extends Visitor<Map<ByteBuffer, List<ColumnOrS
 
     static class StartTsResultsCollector implements ThreadSafeResultVisitor {
         private final Map<Cell, Value> collectedResults = new ConcurrentHashMap<>();
-        private final ValueExtractor extractor;
+        private final ResultsExtractor<Value> extractor;
         private final long startTs;
 
-        StartTsResultsCollector(MetricsManager metricsManager, long startTs) {
-            this.extractor = new ValueExtractor(metricsManager, collectedResults);
+        StartTsResultsCollector(long startTs, Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory) {
+            this.extractor = extractorFactory.apply(collectedResults);
             this.startTs = startTs;
         }
 u}(j (ed0533b540582038a030e5a294c22806773961e9jp Watlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CellLoader.java
     jr modifiedjj Kjk Kjt Kju https://github.com/palantir/atlasdb/blob/ccdd47a65e2c88b87fcd6464a5fec27f710f1146/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCellLoader.javajw https://github.com/palantir/atlasdb/raw/ccdd47a65e2c88b87fcd6464a5fec27f710f1146/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCellLoader.javajy https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCellLoader.java?ref=ccdd47a65e2c88b87fcd6464a5fec27f710f1146j{ X  @@ -33,6 +33,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.tracing.CloseableTracer;
+import com.palantir.tracing.Tracer;
 import java.nio.ByteBuffer;
 import java.util.AbstractList;
 import java.util.ArrayList;
@@ -95,17 +96,19 @@ void loadWithTs(
             CassandraKeyValueServices.ThreadSafeResultVisitor visitor,
             ConsistencyLevel consistency) {
         Map<CassandraServer, List<Cell>> hostsAndCells;
-        try (CloseableTracer tracer = CloseableTracer.startSpan(
-                "loadWithTs.partitionByHost",
-                ImmutableMap.of(
+
+        ImmutableMap<String, String> traceContext = Tracer.hasUnobservableTrace()
+                ? ImmutableMap.of()
+                : ImmutableMap.of(
                         "cells",
                         String.valueOf(cells.size()),
                         "tableRef",
                         LoggingArgs.safeInternalTableNameOrPlaceholder(tableRef.toString()),
                         "timestampClause",
                         loadAllTs ? "for all timestamps " : "",
                         "startTs",
-                        String.valueOf(startTs)))) {
+                        String.valueOf(startTs));
+        try (CloseableTracer tracer = CloseableTracer.startSpan("loadWithTs.partitionByHost", traceContext)) {
             hostsAndCells = HostPartitioner.partitionByHost(clientPool, cells, Cell::getRowName);
         }
         int totalPartitions = hostsAndCells.keySet().size();u}(j (ee1124347a96b3aab3852646e5590f8594bf42d5jp Xatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/RangeLoader.javajr modifiedjj K	jk Kjt Kju https://github.com/palantir/atlasdb/blob/ccdd47a65e2c88b87fcd6464a5fec27f710f1146/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRangeLoader.javajw https://github.com/palantir/atlasdb/raw/ccdd47a65e2c88b87fcd6464a5fec27f710f1146/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRangeLoader.javajy https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FRangeLoader.java?ref=ccdd47a65e2c88b87fcd6464a5fec27f710f1146j{ X  @@ -17,6 +17,7 @@
 package com.palantir.atlasdb.keyvalue.cassandra;
 
 import com.google.common.collect.ImmutableList;
+import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.RangeRequest;
 import com.palantir.atlasdb.keyvalue.api.RowResult;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
@@ -26,31 +27,33 @@
 import com.palantir.atlasdb.keyvalue.cassandra.paging.RowGetter;
 import com.palantir.atlasdb.keyvalue.cassandra.paging.ThriftColumnGetter;
 import com.palantir.atlasdb.keyvalue.cassandra.thrift.SlicePredicates;
-import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.common.base.ClosableIterator;
 import com.palantir.common.base.ClosableIterators;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import org.apache.cassandra.thrift.SlicePredicate;
 
 public class RangeLoader {
     private final CassandraClientPool clientPool;
     private final TracingQueryRunner queryRunner;
-    private final MetricsManager metricsManager;
     private final ReadConsistencyProvider readConsistencyProvider;
+    private final Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory;
 
     public RangeLoader(
             CassandraClientPool clientPool,
             TracingQueryRunner queryRunner,
-            MetricsManager metricsManager,
-            ReadConsistencyProvider readConsistencyProvider) {
+            ReadConsistencyProvider readConsistencyProvider,
+            Function<Map<Cell, Value>, ResultsExtractor<Value>> extractorFactory) {
         this.clientPool = clientPool;
         this.queryRunner = queryRunner;
-        this.metricsManager = metricsManager;
         this.readConsistencyProvider = readConsistencyProvider;
+        this.extractorFactory = extractorFactory;
     }
 
     public ClosableIterator<RowResult<Value>> getRange(TableReference tableRef, RangeRequest rangeRequest, long ts) {
-        return getRangeWithPageCreator(tableRef, rangeRequest, ts, () -> ValueExtractor.create(metricsManager));
+        return getRangeWithPageCreator(tableRef, rangeRequest, ts, () -> extractorFactory.apply(new HashMap<>()));
     }
 
     private <T> ClosableIterator<RowResult<T>> getRangeWithPageCreator(u}(j (3f88196e3d17fc4d5eb62f8e206fd5336c9fac30jp ]atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/ResultsExtractor.javajr modifiedjj K jk Kjt Kju https://github.com/palantir/atlasdb/blob/ccdd47a65e2c88b87fcd6464a5fec27f710f1146/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.javajw https://github.com/palantir/atlasdb/raw/ccdd47a65e2c88b87fcd6464a5fec27f710f1146/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.javajy https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FResultsExtractor.java?ref=ccdd47a65e2c88b87fcd6464a5fec27f710f1146j{ X.  @@ -15,8 +15,6 @@
  */
 package com.palantir.atlasdb.keyvalue.cassandra;
 
-import com.codahale.metrics.Counter;
-import com.palantir.atlasdb.AtlasDbMetricNames;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.ColumnSelection;
@@ -109,10 +107,4 @@ public abstract void internalExtractResult(
             long startTs, ColumnSelection selection, byte[] row, byte[] col, byte[] val, long ts);
 
     public abstract Map<Cell, T> asMap();
-
-    protected Counter getNotLatestVisibleValueCellFilterCounter(Class<?> clazz) {
-        // TODO(hsaraogi): add table names as a tag
-        return metricsManager.registerOrGetCounter(
-                clazz, AtlasDbMetricNames.CellFilterMetrics.NOT_LATEST_VISIBLE_VALUE);
-    }
 }u}(j (53f8601baae7bbd4e212d593799a09bac05a2badjp [atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/ValueExtractor.javajr modifiedjj Kjk Kjt Kju https://github.com/palantir/atlasdb/blob/ccdd47a65e2c88b87fcd6464a5fec27f710f1146/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javajw https://github.com/palantir/atlasdb/raw/ccdd47a65e2c88b87fcd6464a5fec27f710f1146/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.javajy https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FValueExtractor.java?ref=ccdd47a65e2c88b87fcd6464a5fec27f710f1146j{ XK  @@ -21,21 +21,17 @@
 import com.palantir.atlasdb.keyvalue.api.Value;
 import com.palantir.atlasdb.tracing.TraceStatistics;
 import com.palantir.atlasdb.util.MetricsManager;
-import java.util.HashMap;
 import java.util.Map;
 
 class ValueExtractor extends ResultsExtractor<Value> {
     private final Map<Cell, Value> collector;
-    private final Counter notLatestVisibleValueCellFilterCounter =
-            getNotLatestVisibleValueCellFilterCounter(ValueExtractor.class);
+    private final Counter notLatestVisibleValueCellFilterCounter;
 
-    ValueExtractor(MetricsManager metricsManager, Map<Cell, Value> collector) {
+    ValueExtractor(
+            MetricsManager metricsManager, Map<Cell, Value> collector, Counter notLatestVisibleValueCellFilterCounter) {
         super(metricsManager);
         this.collector = collector;
-    }
-
-    static ValueExtractor create(MetricsManager metricsManager) {
-        return new ValueExtractor(metricsManager, new HashMap<>());
+        this.notLatestVisibleValueCellFilterCounter = notLatestVisibleValueCellFilterCounter;
     }
 
     @Overrideu}(j (c496eeef07c431ee355d88f1ca7abecdff679476jp $changelog/@unreleased/pr-6677.v2.ymljr addedjj K	jk K jt K	ju |https://github.com/palantir/atlasdb/blob/ccdd47a65e2c88b87fcd6464a5fec27f710f1146/changelog%2F%40unreleased%2Fpr-6677.v2.ymljw {https://github.com/palantir/atlasdb/raw/ccdd47a65e2c88b87fcd6464a5fec27f710f1146/changelog%2F%40unreleased%2Fpr-6677.v2.ymljy https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6677.v2.yml?ref=ccdd47a65e2c88b87fcd6464a5fec27f710f1146j{ X/  @@ -0,0 +1,9 @@
+type: improvement
+improvement:
+  description: "Reuse notLatestVisibleValueCellFilterCounter \n\nAvoid expensive metric
+    name computation for each value extraction by\nregistering the notLatestVisibleValueCellFilterCounter
+    once and reusing\nit throughout the lifetime.\n\nNote that this includes several
+    internal API changes; however, these\nshould not be an issue for any known AtlasDB
+    consumers.\n\nCellLoader.loadWithTs minimizes unobserved tracing overhead"
+  links:
+  - https://github.com/palantir/atlasdb/pull/6677ueu(99065ca04754170aec104142e3b6fdc804f984ef}(sha(99065ca04754170aec104142e3b6fdc804f984efnode_idEC_kwDOAjP5fdoAKDk5MDY1Y2EwNDc1NDE3MGFlYzEwNDE0MmUzYjZmZGM4MDRmOTg0ZWYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-22T10:16:35Zu	committer}(j 
Sam Kramerj skramer@palantir.comjÆ 2023-05-22T10:16:35Zumessageadd flush and compacttree}(j (d118c66ba0ade55b76db8c15775f44d63bf05d8eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/d118c66ba0ade55b76db8c15775f44d63bf05d8eujφ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/99065ca04754170aec104142e3b6fdc804f984ef
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRrQQMACgkQmPPOpKR4
XS0e9Qf/eSj7hE+LnST63yzokrnn06AVRkLPbQu49QfQNTOgeBmMx9gB91YGi9Fd
Lq/EVPTo3VM+DqfY84F8aB/u1DSG7bJfKRiZO1D0Us072OcckGn0HR1W+5ABcthG
dG3UxFtoaFYQCvNOzP0nIxsGoH+0cYEd0deYY+96B4OP6N/f5YhqDrqm56jAM+Fc
MbhEbc98QRZcM2+p3vZrLohZZQ1fYpS5LtOPbulM2Yw/hiExOjeVGTQfLyVi/gEv
vFbepoUsEegRewZ6A9RerVYK+wTKhkSCV1fp6U0wcanNWe0arBIs11PQUy0ZLkzo
nSZ2c8HiYYpA4InbAt30AjecLbhLIw==
=N798
-----END PGP SIGNATURE-----payloadtree d118c66ba0ade55b76db8c15775f44d63bf05d8e
parent 2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30
author Sam Kramer <skramer@palantir.com> 1684750595 +0100
committer Sam Kramer <skramer@palantir.com> 1684750595 +0100

add flush and compact
uujφ ^https://api.github.com/repos/palantir/atlasdb/commits/99065ca04754170aec104142e3b6fdc804f984efhtml_urlShttps://github.com/palantir/atlasdb/commit/99065ca04754170aec104142e3b6fdc804f984efcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/99065ca04754170aec104142e3b6fdc804f984ef/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jφ 'https://api.github.com/users/Sam-Kramerj݆ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujņ }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5jφ 'https://api.github.com/users/Sam-Kramerj݆ https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j (2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30jφ ^https://api.github.com/repos/palantir/atlasdb/commits/2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30j݆ Shttps://github.com/palantir/atlasdb/commit/2ef6ae3af0dc0b0f45eb9a46fe03b9e39ca04d30uastats}(totalK	additionsK	deletionsKufiles]}(j (9ce74a5cd2c6d02324dae753b39d4472d7e0fcadfilename-atlasdb-workload-server-antithesis/Dockerfilestatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/99065ca04754170aec104142e3b6fdc804f984ef/atlasdb-workload-server-antithesis%2FDockerfileraw_urlhttps://github.com/palantir/atlasdb/raw/99065ca04754170aec104142e3b6fdc804f984ef/atlasdb-workload-server-antithesis%2FDockerfilecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2FDockerfile?ref=99065ca04754170aec104142e3b6fdc804f984efpatch@@ -1,4 +1,6 @@
 FROM scratch
 MAINTAINER AtlasDB Team
 
-ADD docker-compose.yml /
\ No newline at end of file
+ADD docker-compose.yml /
+ADD compact.sh /
+ADD flush.sh /
\ No newline at end of fileuau(233ed16c5431fed0a85878f170f3093d2776e1b8}(sha(233ed16c5431fed0a85878f170f3093d2776e1b8node_idEC_kwDOAjP5fdoAKDIzM2VkMTZjNTQzMWZlZDBhODU4NzhmMTcwZjMwOTNkMjc3NmUxYjgcommit}(author}(nameMohammed Daudaliemailmdaudali@palantir.comdate2023-02-28T15:26:05Zu	committer}(j6 Mohammed Daudalij8 mdaudali@palantir.comj: 2023-02-28T15:26:05Zumessage/comment on the weird looking quorum calculationtree}(j. (00668734c9e80ba3c67778ad349710d29a69ae1eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/00668734c9e80ba3c67778ad349710d29a69ae1eujF bhttps://api.github.com/repos/palantir/atlasdb/git/commits/233ed16c5431fed0a85878f170f3093d2776e1b8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE85NpmxiQII63+jWv1DJ7K5YIya0FAmP+HQ0ACgkQ1DJ7K5YI
ya3r2Af9Hrxv+3TaostqCaSV7voytGmAQ5Ns0h2LKF51xtjOkEot9XzOPcMnOpes
40qhuxwJejEAGXWwV9LTsCdOJLQV6T+09y3OBI+umbfUtqLZbPHUHT+b7TZPkL7O
SbFQKTBz8tEh0XC3p23TQeN5hy+dLdub7G+e5vr08YYAWh8nk2lM8mkHM0L2PLPb
eBpzRv+OnNiHXgDQ77tuPN2jPZGPy331p+Lt6pPlDXLXKGYzsTiKDT5RCY3GWnGr
1DyYl3UJl3RYhvt7wL2I7Z8xdBgdsX5hOI3UbNz6shoo8D8zeeuo5zb4kv9Ge+30
x/nM7hlQ5TySHTcVTie2X1OiiC6oPQ==
=EJ6C
-----END PGP SIGNATURE-----payloadX  tree 00668734c9e80ba3c67778ad349710d29a69ae1e
parent 1ee9ae83fb7df9d66b2a3d1afebc2ec7ee470ab3
author Mohammed Daudali <mdaudali@palantir.com> 1677597965 +0000
committer Mohammed Daudali <mdaudali@palantir.com> 1677597965 +0000

comment on the weird looking quorum calculation
uujF ^https://api.github.com/repos/palantir/atlasdb/commits/233ed16c5431fed0a85878f170f3093d2776e1b8html_urlShttps://github.com/palantir/atlasdb/commit/233ed16c5431fed0a85878f170f3093d2776e1b8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/233ed16c5431fed0a85878f170f3093d2776e1b8/commentsj4 }(loginmdaudaliidJ j0 MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5jF %https://api.github.com/users/mdaudalijT https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminuj< }(jY mdaudalij[ J j0 MDQ6VXNlcjE4MTI3NjQ=j] 3https://avatars.githubusercontent.com/u/1812764?v=4j_ h5jF %https://api.github.com/users/mdaudalijT https://github.com/mdaudalijb /https://api.github.com/users/mdaudali/followersjd <https://api.github.com/users/mdaudali/following{/other_user}jf 5https://api.github.com/users/mdaudali/gists{/gist_id}jh <https://api.github.com/users/mdaudali/starred{/owner}{/repo}jj 3https://api.github.com/users/mdaudali/subscriptionsjl *https://api.github.com/users/mdaudali/orgsjn +https://api.github.com/users/mdaudali/reposjp 6https://api.github.com/users/mdaudali/events{/privacy}jr 5https://api.github.com/users/mdaudali/received_eventsjt Userjv uparents]}(j. (1ee9ae83fb7df9d66b2a3d1afebc2ec7ee470ab3jF ^https://api.github.com/repos/palantir/atlasdb/commits/1ee9ae83fb7df9d66b2a3d1afebc2ec7ee470ab3jT Shttps://github.com/palantir/atlasdb/commit/1ee9ae83fb7df9d66b2a3d1afebc2ec7ee470ab3uastats}(totalK	additionsK	deletionsK ufiles]}(j. (31453f3bbd51a1ece47c7af0cac06bdc2495a69dfilenamekatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraTopologyValidatorTest.javastatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/233ed16c5431fed0a85878f170f3093d2776e1b8/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/233ed16c5431fed0a85878f170f3093d2776e1b8/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.java?ref=233ed16c5431fed0a85878f170f3093d2776e1b8patchX  @@ -308,6 +308,8 @@ public void returnsAllNewHostsIfNoConsensusOnNewHostsWhenNoQuorumAndCurrentServe
                 .forEach(container ->
                         setHostIds(ImmutableSet.of(container), HostIdResult.success(Set.of(uuidIterator.next()))));
 
+        // This is _not_ supposed to be the standard quorum calculation ((n / 2) + 1), but instead the amount of
+        // hosts that need to be offline to _prevent_ quorum
         assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
         assertThat(validator.getNewHostsWithInconsistentTopologies(
                         mapToTokenRangeOrigin(newCassandraServers), allHosts))uau(8138029344d66895c92db36b3aab7441f416672c}(sha(8138029344d66895c92db36b3aab7441f416672cnode_idEC_kwDOAjP5fdoAKDgxMzgwMjkzNDRkNjY4OTVjOTJkYjM2YjNhYWI3NDQxZjQxNjY3MmMcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-08-08T17:38:44Zu	committer}(j 
svc-changelogj svc-changelog@palantir.comj 2023-08-08T17:38:44ZumessageAdd generated changelog entriestree}(j (e75be5fd8078b4eeb8cefec8c1e448454130af34url`https://api.github.com/repos/palantir/atlasdb/git/trees/e75be5fd8078b4eeb8cefec8c1e448454130af34uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8138029344d66895c92db36b3aab7441f416672c
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmTSfaQJEHYaJX37fAFQAABW8AD/fVjIUt39S0eXLFAKe6jIvtTt
GdnW6z5R5lRlJCOkVeIA/RxB/F4kHatpBaD9iRmRn/8yd93EO5eV3qweyyiLfyCp
=gAID
-----END PGP SIGNATURE-----payloadX  tree e75be5fd8078b4eeb8cefec8c1e448454130af34
parent 30998248f7179d6ab5e35a45525d8261d5163073
author svc-changelog <svc-changelog@palantir.com> 1691516324 +0000
committer svc-changelog <svc-changelog@palantir.com> 1691516324 +0000

Add generated changelog entriesuuj ^https://api.github.com/repos/palantir/atlasdb/commits/8138029344d66895c92db36b3aab7441f416672chtml_urlShttps://github.com/palantir/atlasdb/commit/8138029344d66895c92db36b3aab7441f416672ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8138029344d66895c92db36b3aab7441f416672c/commentsj }(login
svc-changelogidJ#j MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j *https://api.github.com/users/svc-changelogjˇ  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj }(jЇ 
svc-changelogj҇ J#j MDQ6VXNlcjg0MDc3NjAzjԇ 4https://avatars.githubusercontent.com/u/84077603?v=4jև h5j *https://api.github.com/users/svc-changelogjˇ  https://github.com/svc-changelogjه 4https://api.github.com/users/svc-changelog/followersjۇ Ahttps://api.github.com/users/svc-changelog/following{/other_user}j݇ :https://api.github.com/users/svc-changelog/gists{/gist_id}j߇ Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j 8https://api.github.com/users/svc-changelog/subscriptionsj /https://api.github.com/users/svc-changelog/orgsj 0https://api.github.com/users/svc-changelog/reposj ;https://api.github.com/users/svc-changelog/events{/privacy}j :https://api.github.com/users/svc-changelog/received_eventsj Userj uparents]}(j (30998248f7179d6ab5e35a45525d8261d5163073j ^https://api.github.com/repos/palantir/atlasdb/commits/30998248f7179d6ab5e35a45525d8261d5163073jˇ Shttps://github.com/palantir/atlasdb/commit/30998248f7179d6ab5e35a45525d8261d5163073uastats}(totalK	additionsK	deletionsK ufiles]}(j (465c3ad670a2e06fe778e928a4854e0ba076f445filename$changelog/@unreleased/pr-6674.v2.ymlstatusaddedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/8138029344d66895c92db36b3aab7441f416672c/changelog%2F%40unreleased%2Fpr-6674.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/8138029344d66895c92db36b3aab7441f416672c/changelog%2F%40unreleased%2Fpr-6674.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6674.v2.yml?ref=8138029344d66895c92db36b3aab7441f416672cpatchX^  @@ -0,0 +1,7 @@
+type: improvement
+improvement:
+  description: Multi-node embedded time and lock services are no longer supported.
+    Leader configs with a single node and quorum of 1 will function the same as embedded
+    time and lock, and all other leader configurations will fail.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6674uau(a39068f79dc804bafc968783d0d32ab20cfe813d}(sha(a39068f79dc804bafc968783d0d32ab20cfe813dnode_idEC_kwDOAjP5fdoAKGEzOTA2OGY3OWRjODA0YmFmYzk2ODc4M2QwZDMyYWIyMGNmZTgxM2Qcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-03-13T18:00:42Zu	committer}(j$ Jeremy Kongj& jkong@palantir.comj( 2023-03-13T18:00:42ZumessageUMerge remote-tracking branch 'origin/develop' into jkong/workload-service-row-storiestree}(j (6310eb2ef89dcea7f4ed0e5aebe14791d38927e4url`https://api.github.com/repos/palantir/atlasdb/git/trees/6310eb2ef89dcea7f4ed0e5aebe14791d38927e4uj4 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a39068f79dc804bafc968783d0d32ab20cfe813d
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmQPZM0ACgkQTLdFKain
zjzoZAgAtJV1ZP951QYMIsIxDUj/vLijWphOWo5AUKjZNb3hsRiNHtamkCgekcZG
8yb+guQ5l5JIvQZUTxwbIDTN8LbU5I+rlRLOIQ1n7M4Z+WTcTWQTfJLdQDUwRsgt
LWgNxdQUDpyGN/nBvU9DubetQPhn934myhdpn1bI6MwYp3Nsl0YHboZbcUvcd3Q5
o9tLJHqdD++HLSVjsVNiwXI58O4sPnKXPyBuTNotXKErwEmygyd3IOxKh5sGepCI
A2HNEhNXh0ZYoCv6J59NIqb8zqR3CNgo/W4ojyDoxia6YrD4ONAUEtKxjOByuDNI
j6sVE+CQ3imsgU7qqHwb8i9T/DY2IQ==
=Jeln
-----END PGP SIGNATURE-----payloadXZ  tree 6310eb2ef89dcea7f4ed0e5aebe14791d38927e4
parent bd1f3bf45120c98217d800a2889ff2735d3a53b5
parent f1bba94c8274f7f6320456eff60b71c6b9c3aa7a
author Jeremy Kong <jkong@palantir.com> 1678730442 +0000
committer Jeremy Kong <jkong@palantir.com> 1678730442 +0000

Merge remote-tracking branch 'origin/develop' into jkong/workload-service-row-stories
uuj4 ^https://api.github.com/repos/palantir/atlasdb/commits/a39068f79dc804bafc968783d0d32ab20cfe813dhtml_urlShttps://github.com/palantir/atlasdb/commit/a39068f79dc804bafc968783d0d32ab20cfe813dcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a39068f79dc804bafc968783d0d32ab20cfe813d/commentsj" }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j4 'https://api.github.com/users/jeremyk-91jB https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj* }(jG 
jeremyk-91jI JZ j MDQ6VXNlcjU5NTU1MTA=jK 3https://avatars.githubusercontent.com/u/5955510?v=4jM h5j4 'https://api.github.com/users/jeremyk-91jB https://github.com/jeremyk-91jP 1https://api.github.com/users/jeremyk-91/followersjR >https://api.github.com/users/jeremyk-91/following{/other_user}jT 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jV >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jX 5https://api.github.com/users/jeremyk-91/subscriptionsjZ ,https://api.github.com/users/jeremyk-91/orgsj\ -https://api.github.com/users/jeremyk-91/reposj^ 8https://api.github.com/users/jeremyk-91/events{/privacy}j` 7https://api.github.com/users/jeremyk-91/received_eventsjb Userjd uparents](}(j (bd1f3bf45120c98217d800a2889ff2735d3a53b5j4 ^https://api.github.com/repos/palantir/atlasdb/commits/bd1f3bf45120c98217d800a2889ff2735d3a53b5jB Shttps://github.com/palantir/atlasdb/commit/bd1f3bf45120c98217d800a2889ff2735d3a53b5u}(j (f1bba94c8274f7f6320456eff60b71c6b9c3aa7aj4 ^https://api.github.com/repos/palantir/atlasdb/commits/f1bba94c8274f7f6320456eff60b71c6b9c3aa7ajB Shttps://github.com/palantir/atlasdb/commit/f1bba94c8274f7f6320456eff60b71c6b9c3aa7auestats}(totalM	additionsM	deletionsMrufiles](}(j (bbba7d7df9b785fec01bf20efe6f2553f4e30dbbfilename.palantir/revapi.ymlstatusmodifiedj K)j K changesK)blob_urlhhttps://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=a39068f79dc804bafc968783d0d32ab20cfe813dpatchX  @@ -69,3 +69,44 @@ acceptedBreaks:
         \ com.palantir.atlasdb.cassandra.CassandraKeyValueServiceConfig, com.palantir.refreshable.Refreshable<com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig>,\
         \ com.palantir.atlasdb.keyvalue.cassandra.Blacklist, com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraClientPoolMetrics)"
       justification: "Removing unused ABR code"
+  "0.801.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter java.util.Set<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraTopologyValidator::getNewHostsWithInconsistentTopologiesAndRetry(===java.util.Set<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>===,\
+        \ java.util.Map<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer>,\
+        \ java.time.Duration, java.time.Duration)"
+      new: "parameter java.util.Set<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraTopologyValidator::getNewHostsWithInconsistentTopologiesAndRetry(===java.util.Map<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin>===, java.util.Map<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer>,\
+        \ java.time.Duration, java.time.Duration)"
+      justification: "Internal Cassandra KVS APIs"
+    - code: "java.method.returnTypeChanged"
+      old: "method com.google.common.collect.ImmutableSet<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>\
+        \ com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::getCurrentServerListFromConfig()"
+      new: "method com.google.common.collect.ImmutableMap<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin> com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::getCurrentServerListFromConfig()"
+      justification: "Internal Cassandra KVS APIs"
+    - code: "java.method.returnTypeChanged"
+      old: "method com.google.common.collect.ImmutableSet<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer>\
+        \ com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::refreshTokenRangesAndGetServers()"
+      new: "method com.google.common.collect.ImmutableMap<com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer,\
+        \ com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin> com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraService::refreshTokenRangesAndGetServers()"
+      justification: "Internal Cassandra KVS APIs"
+  "0.808.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.transaction.service.TransactionStatuses"
+      justification: "Internal methods"
+    - code: "java.class.removed"
+      old: "interface com.palantir.atlasdb.transaction.service.TransactionStatus.Cases<R\
+        \ extends java.lang.Object>"
+      justification: "Internal methods"
+    - code: "java.method.removed"
+      old: "method <R> R com.palantir.atlasdb.transaction.service.TransactionStatus::match(com.palantir.atlasdb.transaction.service.TransactionStatus.Cases<R>)"
+      justification: "Internal methods"
+    - code: "java.method.removed"
+      old: "method boolean com.palantir.atlasdb.transaction.service.TransactionStatus::equals(java.lang.Object)"
+      justification: "Internal methods"u}(j (198777a0d5f59dbca9c418c827b918a2ff4645c8j Yatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/service/TransactionStatus.javaj modifiedj K.j K"j KPj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionStatus.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionStatus.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionStatus.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X]  @@ -16,42 +16,54 @@
 
 package com.palantir.atlasdb.transaction.service;
 
-import org.derive4j.Data;
-
-/**
- * Status of a transaction can be one of the following -
- * 1. IN_PROGRESS, if that the transaction with this start timestamp has started but has not committed yet,
- * 2. COMMITTED (with a commit timestamp), if the transaction with this start timestamp has been committed,
- * 3. ABORTED, if the transaction with this start timestamp has been aborted,
- * 4. UNKNOWN, if the transactions table does not have information about the start timestamp. (This may,
- *    for example, be because the transaction is known to have concluded and the transactions table has been swept).
- * */
-@Data
+import com.palantir.common.annotations.ImmutablesStyles.PackageVisibleImmutablesStyle;
+import java.util.Optional;
+import org.immutables.value.Value;
+
 public interface TransactionStatus {
-    interface Cases<R> {
-        /**
-         * For transactions on schema version >= 4, an inProgress state has been introduced. The state will be set in
-         * the transactions table against the start timestamp. The state will be written before writing to the kvs.
-         *
-         * Previously, absence of any state for a transaction would indicate that it is in progress.
-         * */
-        R inProgress();
-
-        R committed(long commitTimestamp);
-
-        R aborted();
-
-        /**
-         * From transaction schema version 4, we have added the ability to truncate the transactions table i.e. it
-         * would be possible that the transactions table is not the source of truth for state of a transaction.
-         *
-         * Note that this state is not expected for transaction schema versions < 4.
-         * */
-        R unknown();
+
+    static TransactionStatus inProgress() {
+        return ImmutableInProgress.of();
+    }
+
+    static TransactionStatus aborted() {
+        return ImmutableAborted.of();
+    }
+
+    static TransactionStatus committed(long commitTimestamp) {
+        return ImmutableCommitted.of(commitTimestamp);
+    }
+
+    static TransactionStatus unknown() {
+        return ImmutableUnknown.of();
+    }
+
+    static Optional<Long> getCommitTimestamp(TransactionStatus status) {
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return Optional.of(committed.commitTimestamp());
+        } else {
+            return Optional.empty();
+        }
     }
 
-    <R> R match(Cases<R> cases);
+    @Value.Immutable(singleton = true)
+    @PackageVisibleImmutablesStyle
+    interface InProgress extends TransactionStatus {}
+
+    @Value.Immutable(singleton = true)
+    @PackageVisibleImmutablesStyle
+    interface Aborted extends TransactionStatus {}
+
+    @Value.Immutable(builder = false)
+    @PackageVisibleImmutablesStyle
+    interface Committed extends TransactionStatus {
+
+        @Value.Parameter
+        long commitTimestamp();
+    }
 
-    @Override
-    boolean equals(Object other);
+    @Value.Immutable(singleton = true)
+    @PackageVisibleImmutablesStyle
+    interface Unknown extends TransactionStatus {}
 }u}(j (617049a9e7ba3c0f72ea61d2d980892baf478d89j zatlasdb-cassandra-integration-tests/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraBackedPueTableTest.javaj modifiedj Kj K
j Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraBackedPueTableTest.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraBackedPueTableTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra-integration-tests%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraBackedPueTableTest.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X  @@ -35,13 +35,12 @@
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
-import java.util.Optional;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.ExecutorService;
 import java.util.stream.Collectors;
@@ -93,16 +92,12 @@ public void getDoesNotLeakExceptionsInRaceConditions() throws ExecutionException
             }
             Futures.allAsList(reads).get().forEach(singleResult -> {
                 for (long ts : singlePartition) {
-                    assertCommitTimestampAbsentOrEqualToStartTimestamp(singleResult, ts);
+                    TransactionStatus status = singleResult.get(ts);
+                    if (status instanceof Committed) {
+                        assertThat(status).isEqualTo(TransactionStatus.committed(ts));
+                    }
                 }
             });
         }
     }
-
-    private static void assertCommitTimestampAbsentOrEqualToStartTimestamp(
-            Map<Long, TransactionStatus> result, long ts) {
-        Optional.ofNullable(result.get(ts))
-                .flatMap(TransactionStatuses::getCommitTimestamp)
-                .ifPresent(commitTs -> assertThat(ts).isEqualTo(commitTs));
-    }
 }u}(j (728c30ccb37b7e8e5eb4d85803b92b65d26e741bj qatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/transaction/TransactionTableEntryUtils.javaj modifiedj Kj K	j Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactionTableEntryUtils.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactionTableEntryUtils.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactionTableEntryUtils.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X  @@ -17,20 +17,22 @@
 package com.palantir.atlasdb.cassandra.backup.transaction;
 
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Aborted;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 
 public final class TransactionTableEntryUtils {
     private TransactionTableEntryUtils() {}
 
-    public static TransactionTableEntry fromStatus(long startTimestamp, TransactionStatus commitStatus) {
-        return TransactionStatuses.caseOf(commitStatus)
-                .committed(commitTs -> TransactionTableEntries.committedLegacy(startTimestamp, commitTs))
-                .aborted(() -> TransactionTableEntries.explicitlyAborted(startTimestamp))
-                .otherwise(() -> {
-                    throw new SafeIllegalStateException(
-                            "Illegal transaction status", SafeArg.of("status", commitStatus));
-                });
+    public static TransactionTableEntry fromStatus(long startTimestamp, TransactionStatus status) {
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return TransactionTableEntries.committedLegacy(startTimestamp, committed.commitTimestamp());
+        } else if (status instanceof Aborted) {
+            return TransactionTableEntries.explicitlyAborted(startTimestamp);
+        } else {
+            throw new SafeIllegalStateException("Illegal transaction status", SafeArg.of("status", status));
+        }
     }
 }u}(j (cfeb9f02aeb926b035c4fcf5695b3b16d519d450j tatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions1TableInteraction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteraction.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteraction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteraction.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X  @@ -49,7 +49,7 @@ public Transactions1TableInteraction(FullyBoundedTimestampRange timestampRange,
 
     private static final byte[] DUMMY = new byte[] {1};
     private static final byte[] ABORT_COMMIT_TS_ENCODED =
-            V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(0, TransactionConstants.ABORTED);
+            V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(0, TransactionStatus.aborted());
     static final ByteBuffer COLUMN_NAME_BB = ByteBuffer.wrap(TransactionConstants.COMMIT_TS_COLUMN);
 
     @Overrideu}(j (b151ce954511712c43c8cff621e8d600fc587c56j tatlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions3TableInteraction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteraction.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteraction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteraction.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X  @@ -93,7 +93,7 @@ public TransactionTableEntry extractTimestamps(Row row) {
         AtomicValue<TransactionStatus> commitValue = encodingStrategy.decodeValueAsCommitStatus(
                 startTimestamp, Bytes.getArray(row.getBytes(CassandraConstants.VALUE)));
 
-        if (commitValue.value() == TransactionConstants.ABORTED) {
+        if (commitValue.value() == TransactionStatus.aborted()) {
             return TransactionTableEntries.explicitlyAborted(startTimestamp);
         }
 u}(j (45ab8df8c5897569a9513ef70c6303ec9283a96bj datlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolImpl.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolImpl.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj Xk  @@ -48,6 +48,7 @@
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.concurrent.ScheduledFuture;
 import java.util.concurrent.TimeUnit;
+import one.util.streamex.EntryStream;
 
 /**
  * Feature breakdown:
@@ -339,10 +340,12 @@ private synchronized void refreshPool() {
     }
 
     @VisibleForTesting
-    void setServersInPoolTo(ImmutableSet<CassandraServer> desiredServers) {
+    void setServersInPoolTo(ImmutableMap<CassandraServer, CassandraServerOrigin> desiredServers) {
         Set<CassandraServer> currentServers = getCachedServers();
-        SetView<CassandraServer> serversToAdd = Sets.difference(desiredServers, currentServers);
-        SetView<CassandraServer> absentServers = Sets.difference(currentServers, desiredServers);
+        Map<CassandraServer, CassandraServerOrigin> serversToAdd = EntryStream.of(desiredServers)
+                .removeKeys(currentServers::contains)
+                .toImmutableMap();
+        SetView<CassandraServer> absentServers = Sets.difference(currentServers, desiredServers.keySet());
 
         absentServers.forEach(cassandraServer -> {
             CassandraClientPoolingContainer container = cassandra.removePool(cassandraServer);
@@ -364,7 +367,7 @@ void setServersInPoolTo(ImmutableSet<CassandraServer> desiredServers) {
                     + " cluster topology, and the client cannot connect as there are no valid hosts. This state should"
                     + " be transient (<5 minutes), and if it is not, indicates that the user may have accidentally"
                     + " configured AltasDB to use two separate Cassandra clusters (i.e., user-led split brain).",
-                SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd)));
+                SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())));
 
         logRefreshedHosts(validatedServersToAdd, serversToShutdown, absentServers);
     }
@@ -380,13 +383,13 @@ void setServersInPoolTo(ImmutableSet<CassandraServer> desiredServers) {
     @VisibleForTesting
     Set<CassandraServer> validateNewHostsTopologiesAndMaybeAddToPool(
             Map<CassandraServer, CassandraClientPoolingContainer> currentContainers,
-            Set<CassandraServer> serversToAdd) {
+            Map<CassandraServer, CassandraServerOrigin> serversToAdd) {
         if (serversToAdd.isEmpty()) {
             return Set.of();
         }
-
+        Set<CassandraServer> serversToAddWithoutOrigin = serversToAdd.keySet();
         Map<CassandraServer, CassandraClientPoolingContainer> serversToAddContainers =
-                getContainerForNewServers(serversToAdd);
+                getContainerForNewServers(serversToAddWithoutOrigin);
 
         Preconditions.checkArgument(
                 Sets.intersection(currentContainers.keySet(), serversToAddContainers.keySet())
@@ -408,7 +411,8 @@ Set<CassandraServer> validateNewHostsTopologiesAndMaybeAddToPool(
                 cassandraTopologyValidator.getNewHostsWithInconsistentTopologiesAndRetry(
                         serversToAdd, allContainers, Duration.ofSeconds(5), Duration.ofMinutes(1));
 
-        Set<CassandraServer> validatedServersToAdd = Sets.difference(serversToAdd, newHostsWithDifferingTopology);
+        Set<CassandraServer> validatedServersToAdd =
+                Sets.difference(serversToAddWithoutOrigin, newHostsWithDifferingTopology);
         validatedServersToAdd.forEach(server -> cassandra.addPool(server, serversToAddContainers.get(server)));
         newHostsWithDifferingTopology.forEach(
                 server -> absentHostTracker.trackAbsentCassandraServer(server, serversToAddContainers.get(server)));u}(j (ceeeeed1ad626f017443a86551facc263dbb0a09j batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraServerOrigin.javaj addedj K&j K j K&j https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOrigin.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X  @@ -0,0 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import com.google.common.collect.ImmutableMap;
+import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
+import java.util.Set;
+import java.util.function.Function;
+import java.util.stream.Stream;
+
+public enum CassandraServerOrigin {
+    CONFIG,
+    LAST_KNOWN,
+    TOKEN_RANGE;
+
+    public static ImmutableMap<CassandraServer, CassandraServerOrigin> mapAllServersToOrigin(
+            Set<CassandraServer> servers, CassandraServerOrigin origin) {
+        return mapAllServersToOrigin(servers.stream(), origin);
+    }
+
+    public static ImmutableMap<CassandraServer, CassandraServerOrigin> mapAllServersToOrigin(
+            Stream<CassandraServer> servers, CassandraServerOrigin origin) {
+        return servers.distinct().collect(ImmutableMap.toImmutableMap(Function.identity(), _v -> origin));
+    }
+}u}(j (10dccf74f3186a2c4a4b523a206c95ccef82b213j gatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraTopologyValidator.javaj modifiedj K5j K!j KVj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidator.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X?)  @@ -98,7 +98,7 @@ public CassandraTopologyValidator(CassandraTopologyValidationMetrics metrics) {
      * the get_host_ids endpoint will never be returned here.
      */
     public Set<CassandraServer> getNewHostsWithInconsistentTopologiesAndRetry(
-            Set<CassandraServer> newlyAddedHosts,
+            Map<CassandraServer, CassandraServerOrigin> newlyAddedHosts,
             Map<CassandraServer, CassandraClientPoolingContainer> allHosts,
             Duration waitTimeBetweenCalls,
             Duration maxWaitTime) {
@@ -128,55 +128,75 @@ public Set<CassandraServer> getNewHostsWithInconsistentTopologiesAndRetry(
 
     @VisibleForTesting
     Set<CassandraServer> getNewHostsWithInconsistentTopologies(
-            Set<CassandraServer> newlyAddedHosts, Map<CassandraServer, CassandraClientPoolingContainer> allHosts) {
+            Map<CassandraServer, CassandraServerOrigin> newlyAddedHosts,
+            Map<CassandraServer, CassandraClientPoolingContainer> allHosts) {
 
+        Set<CassandraServer> newlyAddedHostsWithoutOrigin = newlyAddedHosts.keySet();
         if (newlyAddedHosts.isEmpty()) {
-            return newlyAddedHosts;
+            return newlyAddedHostsWithoutOrigin;
         }
 
         Preconditions.checkArgument(
-                allHosts.keySet().containsAll(newlyAddedHosts),
+                allHosts.keySet().containsAll(newlyAddedHostsWithoutOrigin),
                 "Newly added hosts must be a subset of all hosts, as otherwise we have no way to query them.",
-                SafeArg.of("newlyAddedHosts", CassandraLogHelper.collectionOfHosts(newlyAddedHosts)),
+                SafeArg.of("newlyAddedHosts", CassandraLogHelper.collectionOfHosts(newlyAddedHostsWithoutOrigin)),
                 SafeArg.of("allHosts", CassandraLogHelper.collectionOfHosts(allHosts.keySet())));
 
         Map<CassandraServer, HostIdResult> hostIdsByServerWithoutSoftFailures =
                 fetchHostIdsIgnoringSoftFailures(allHosts);
 
         Map<CassandraServer, HostIdResult> currentServersWithoutSoftFailures = EntryStream.of(
                         hostIdsByServerWithoutSoftFailures)
-                .removeKeys(newlyAddedHosts::contains)
+                .removeKeys(newlyAddedHosts::containsKey)
                 .toMap();
         Map<CassandraServer, HostIdResult> newServersWithoutSoftFailures = EntryStream.of(
                         hostIdsByServerWithoutSoftFailures)
-                .filterKeys(newlyAddedHosts::contains)
+                .filterKeys(newlyAddedHosts::containsKey)
                 .toMap();
 
         // This means currently we've no servers or no server without the get_host_ids endpoint.
         // Therefore, we need to come to a consensus on the new servers.
         if (currentServersWithoutSoftFailures.isEmpty()) {
-            Optional<ConsistentClusterTopology> maybeTopology = maybeGetConsistentClusterTopology(
-                            newServersWithoutSoftFailures)
-                    .agreedTopology();
-            maybeTopology.ifPresent(pastConsistentTopology::set);
-
-            return maybeTopology
-                    .<Set<CassandraServer>>map(topology ->
-                            Sets.difference(newServersWithoutSoftFailures.keySet(), topology.serversInConsensus()))
-                    .orElseGet(newServersWithoutSoftFailures::keySet);
+            ClusterTopologyResult topologyResultFromNewServers =
+                    maybeGetConsistentClusterTopology(newServersWithoutSoftFailures);
+            Map<CassandraServer, HostIdResult> newServersFromConfig = EntryStream.of(newServersWithoutSoftFailures)
+                    .filterKeys(server -> newlyAddedHosts.get(server) == CassandraServerOrigin.CONFIG)
+                    .toMap();
+            return getNewHostsWithInconsistentTopologiesFromTopologyResult(
+                    topologyResultFromNewServers,
+                    newServersWithoutSoftFailures,
+                    newServersFromConfig,
+                    newlyAddedHostsWithoutOrigin,
+                    allHosts.keySet());
         }
 
         // If a consensus can be reached from the current servers, filter all new servers which have the same set of
-        // host ids. Accept dissent as such, but permit
+        // host ids. Accept dissent as such, but permit new servers if they are in quorum _and_ match the previously
+        // accepted set of host IDs
         ClusterTopologyResult topologyFromCurrentServers =
                 maybeGetConsistentClusterTopology(currentServersWithoutSoftFailures);
-        switch (topologyFromCurrentServers.type()) {
+
+        return getNewHostsWithInconsistentTopologiesFromTopologyResult(
+                topologyFromCurrentServers,
+                newServersWithoutSoftFailures,
+                newServersWithoutSoftFailures,
+                newlyAddedHosts.keySet(),
+                allHosts.keySet());
+    }
+
+    private Set<CassandraServer> getNewHostsWithInconsistentTopologiesFromTopologyResult(
+            ClusterTopologyResult topologyResult,
+            Map<CassandraServer, HostIdResult> newServersWithoutSoftFailures,
+            Map<CassandraServer, HostIdResult> serversToConsiderWhenNoQuorumPresent,
+            Set<CassandraServer> newlyAddedHosts,
+            Set<CassandraServer> allHosts) {
+        switch (topologyResult.type()) {
             case CONSENSUS:
                 Preconditions.checkState(
-                        topologyFromCurrentServers.agreedTopology().isPresent(),
+                        topologyResult.agreedTopology().isPresent(),
                         "Expected to have a consistent topology for a CONSENSUS result, but did not.");
                 ConsistentClusterTopology topology =
-                        topologyFromCurrentServers.agreedTopology().get();
+                        topologyResult.agreedTopology().get();
                 pastConsistentTopology.set(topology);
                 return EntryStream.of(newServersWithoutSoftFailures)
                         .removeValues(result -> result.type() == HostIdResult.Type.SUCCESS
@@ -196,43 +216,43 @@ Set<CassandraServer> getNewHostsWithInconsistentTopologies(
                     return newServersWithoutSoftFailures.keySet();
                 }
                 Optional<ConsistentClusterTopology> maybeTopology = maybeGetConsistentClusterTopology(
-                                newServersWithoutSoftFailures)
+                                serversToConsiderWhenNoQuorumPresent)
                         .agreedTopology();
                 if (maybeTopology.isEmpty()) {
                     log.info(
-                            "No quorum was detected among old servers, and new servers were also not in"
-                                    + " agreement. Not adding new servers in this case.",
+                            "No quorum was detected in original set of servers, and the filtered set of servers were"
+                                    + " also not in agreement. Not adding new servers in this case.",
                             SafeArg.of("newServers", CassandraLogHelper.collectionOfHosts(newlyAddedHosts)),
-                            SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts.keySet())));
+                            SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts)));
                     return newServersWithoutSoftFailures.keySet();
                 }
                 ConsistentClusterTopology newNodesAgreedTopology = maybeTopology.get();
                 if (!newNodesAgreedTopology
                         .hostIds()
                         .equals(pastConsistentTopology.get().hostIds())) {
                     log.info(
-                            "No quorum was detected among old servers. While new servers could reach a consensus, this"
-                                + " differed from the last agreed value among the old servers. Not adding new servers"
-                                + " in this case.",
+                            "No quorum was detected among the original set of servers. While a filtered set of"
+                                    + " servers could reach a consensus, this differed from the last agreed value"
+                                    + " among the old servers. Not adding new servers in this case.",
                             SafeArg.of("pastConsistentTopology", pastConsistentTopology.get()),
                             SafeArg.of("newNodesAgreedTopology", newNodesAgreedTopology),
                             SafeArg.of("newServers", CassandraLogHelper.collectionOfHosts(newlyAddedHosts)),
-                            SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts.keySet())));
+                            SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts)));
                     return newServersWithoutSoftFailures.keySet();
                 }
                 log.info(
-                        "No quorum was detected among old servers. New servers reached a consensus that matched the"
-                            + " last agreed value among the old servers. Adding new servers that were in consensus.",
+                        "No quorum was detected among the original set of servers. A filtered set of servers reached"
+                                + " a consensus that matched the last agreed value among the old servers. Adding new"
+                                + " servers that were in consensus.",
                         SafeArg.of("pastConsistentTopology", pastConsistentTopology.get()),
                         SafeArg.of("newNodesAgreedTopology", newNodesAgreedTopology),
                         SafeArg.of("newServers", CassandraLogHelper.collectionOfHosts(newlyAddedHosts)),
-                        SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts.keySet())));
+                        SafeArg.of("allServers", CassandraLogHelper.collectionOfHosts(allHosts)));
                 return Sets.difference(
                         newServersWithoutSoftFailures.keySet(), newNodesAgreedTopology.serversInConsensus());
             default:
                 throw new SafeIllegalStateException(
-                        "Unexpected cluster topology result type",
-                        SafeArg.of("type", topologyFromCurrentServers.type()));
+                        "Unexpected cluster topology result type", SafeArg.of("type", topologyResult.type()));
         }
     }
 u}(j (598882b9fb28577aec86b5619095c1c581ec3a79j batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaj modifiedj Kj Kj K$j https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj Xx  @@ -36,6 +36,7 @@
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClient;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraClientPoolingContainer;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraLogHelper;
+import com.palantir.atlasdb.keyvalue.cassandra.CassandraServerOrigin;
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraUtils;
 import com.palantir.atlasdb.keyvalue.cassandra.LightweightOppToken;
 import com.palantir.atlasdb.util.MetricsManager;
@@ -122,7 +123,7 @@ public CassandraService(
     @Override
     public void close() {}
 
-    public ImmutableSet<CassandraServer> refreshTokenRangesAndGetServers() {
+    public ImmutableMap<CassandraServer, CassandraServerOrigin> refreshTokenRangesAndGetServers() {
         // explicitly not using immutable builders to deduplicate nodes
         Set<CassandraServer> servers = new HashSet<>();
         Map<CassandraServer, String> hostToDatacentersThisRefresh = new HashMap<>();
@@ -173,7 +174,7 @@ public ImmutableSet<CassandraServer> refreshTokenRangesAndGetServers() {
             tokenMap = tokensInterner.intern(newTokenRing.build());
             hostToDatacenter = ImmutableMap.copyOf(hostToDatacentersThisRefresh);
             logHostToDatacenterMapping(hostToDatacenter);
-            return ImmutableSet.copyOf(servers);
+            return CassandraServerOrigin.mapAllServersToOrigin(servers, CassandraServerOrigin.TOKEN_RANGE);
         } catch (Exception e) {
             log.info(
                     "Couldn't grab new token ranges for token aware cassandra mapping. We will retry in {} seconds.",
@@ -182,24 +183,30 @@ public ImmutableSet<CassandraServer> refreshTokenRangesAndGetServers() {
 
             // Attempt to re-resolve addresses from the configuration; this is important owing to certain race
             // conditions where the entire pool becomes invalid between refreshes.
-            ImmutableSet<CassandraServer> resolvedConfigAddresses = getCurrentServerListFromConfig();
-
-            ImmutableSet<CassandraServer> lastKnownAddresses = tokenMap.asMapOfRanges().values().stream()
-                    .flatMap(Collection::stream)
-                    .collect(ImmutableSet.toImmutableSet());
-
-            return Sets.union(resolvedConfigAddresses, lastKnownAddresses).immutableCopy();
+            ImmutableMap<CassandraServer, CassandraServerOrigin> resolvedConfigAddresses =
+                    getCurrentServerListFromConfig();
+
+            ImmutableMap<CassandraServer, CassandraServerOrigin> lastKnownAddresses =
+                    CassandraServerOrigin.mapAllServersToOrigin(
+                            tokenMap.asMapOfRanges().values().stream().flatMap(Collection::stream),
+                            CassandraServerOrigin.LAST_KNOWN);
+
+            return ImmutableMap.<CassandraServer, CassandraServerOrigin>builder()
+                    .putAll(lastKnownAddresses)
+                    .putAll(resolvedConfigAddresses)
+                    .buildKeepingLast();
         }
     }
 
     /**
      * It is expected that config provides list of servers that are directly reachable and do not require special IP
      * resolution.
      * */
-    public ImmutableSet<CassandraServer> getCurrentServerListFromConfig() {
-        return getServersSocketAddressesFromConfig().stream()
-                .map(cassandraHost -> CassandraServer.of(cassandraHost.getHostString(), cassandraHost))
-                .collect(ImmutableSet.toImmutableSet());
+    public ImmutableMap<CassandraServer, CassandraServerOrigin> getCurrentServerListFromConfig() {
+        return CassandraServerOrigin.mapAllServersToOrigin(
+                getServersSocketAddressesFromConfig().stream()
+                        .map(cassandraHost -> CassandraServer.of(cassandraHost.getHostString(), cassandraHost)),
+                CassandraServerOrigin.CONFIG);
     }
 
     private ImmutableSet<InetSocketAddress> getServersSocketAddressesFromConfig() {
@@ -502,7 +509,8 @@ public CassandraClientPoolingContainer removePool(CassandraServer removedServerA
     }
 
     public void cacheInitialCassandraHosts() {
-        ImmutableSet<CassandraServer> thriftSocket = getCurrentServerListFromConfig();
+        ImmutableSet<CassandraServer> thriftSocket =
+                getCurrentServerListFromConfig().keySet();
 
         cassandraHosts = thriftSocket.stream()
                 .sorted(Comparator.comparing(CassandraServer::cassandraHostName))u     }(j (078fdebb7aa6ebff214d94e219894401b3973ddaj xatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions1TableInteractionTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteractionTest.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteractionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions1TableInteractionTest.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj Xg  @@ -33,6 +33,7 @@
 import com.palantir.atlasdb.transaction.encoding.V1EncodingStrategy;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.timestamp.FullyBoundedTimestampRange;
 import java.nio.ByteBuffer;
 import org.apache.commons.codec.binary.Hex;
@@ -57,7 +58,7 @@ public void cellEncodingTest() {
     public void valueEncodingTest() {
         byte[] actualValue =
                 V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(111L, TransactionStatusUtils.fromTimestamp(222L));
-        byte[] abort = V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(1L, TransactionConstants.ABORTED);
+        byte[] abort = V1EncodingStrategy.INSTANCE.encodeCommitStatusAsValue(1L, TransactionStatus.aborted());
 
         assertThat(Transactions1TableInteraction.encodeCommitTimestamp(222L)).isEqualTo(ByteBuffer.wrap(actualValue));
         assertThat(Transactions1TableInteraction.encodeCommitTimestamp(TransactionConstants.FAILED_COMMIT_TS))u}(j (665255398e90af7633b7ed78d422f68bbdb494e2j xatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions2TableInteractionTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions2TableInteractionTest.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions2TableInteractionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions2TableInteractionTest.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X  @@ -33,7 +33,7 @@
 import com.palantir.atlasdb.keyvalue.cassandra.CassandraConstants;
 import com.palantir.atlasdb.transaction.encoding.TicketsEncodingStrategy;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.timestamp.FullyBoundedTimestampRange;
 import java.nio.ByteBuffer;
 import java.util.ArrayList;
@@ -128,7 +128,7 @@ private static Row createRow(long start, long commit) {
         when(row.getBytes(CassandraConstants.COLUMN)).thenReturn(ByteBuffer.wrap(cell.getColumnName()));
         when(row.getBytes(CassandraConstants.VALUE))
                 .thenReturn(ByteBuffer.wrap(TicketsEncodingStrategy.INSTANCE.encodeCommitStatusAsValue(
-                        start, TransactionStatuses.committed(commit))));
+                        start, TransactionStatus.committed(commit))));
         return row;
     }
 u}(j (6c8488c0b734a2196aa6268e3b1b4e173ea36688j xatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/backup/transaction/Transactions3TableInteractionTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteractionTest.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteractionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2Fbackup%2Ftransaction%2FTransactions3TableInteractionTest.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X  @@ -37,7 +37,6 @@
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.timestamp.FullyBoundedTimestampRange;
 import java.nio.ByteBuffer;
 import java.util.ArrayList;
@@ -68,8 +67,7 @@ public void extractCommittedTimestampTest() {
         TransactionTableEntryAssertions.assertTwoPhase(entry, (startTs, commitValue) -> {
             assertThat(startTs).isEqualTo(150L);
             assertThat(commitValue.isCommitted()).isTrue();
-            assertThat(TransactionStatuses.getCommitTimestamp(commitValue.value()))
-                    .hasValue(200L);
+            assertThat(commitValue.value()).isEqualTo(TransactionStatus.committed(200L));
         });
     }
 
@@ -80,8 +78,7 @@ public void extractStagingCommitTimestampTest() {
         TransactionTableEntryAssertions.assertTwoPhase(entry, (startTs, commitValue) -> {
             assertThat(startTs).isEqualTo(150L);
             assertThat(commitValue.isCommitted()).isFalse();
-            assertThat(TransactionStatuses.getCommitTimestamp(commitValue.value()))
-                    .hasValue(200L);
+            assertThat(commitValue.value()).isEqualTo(TransactionStatus.committed(200L));
         });
     }
 u}(j (81558f1f4edc8bff964c4e8ca571ba37e5f3d881j datlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraClientPoolTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraClientPoolTest.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X
  @@ -448,14 +448,15 @@ public void throwsWhenTryingToAddServerPresentInCurrentServers() {
         setCassandraServersTo(CASS_SERVER_1, CASS_SERVER_2);
 
         CassandraClientPoolImpl pool = createClientPool();
-        Set<CassandraServer> serversToAdd = Set.of(CASS_SERVER_1);
+        ImmutableMap<CassandraServer, CassandraServerOrigin> serversToAdd =
+                ImmutableMap.of(CASS_SERVER_1, CassandraServerOrigin.TOKEN_RANGE);
         assertThat(poolServers).containsOnlyKeys(CASS_SERVER_1, CASS_SERVER_2);
         assertThatLoggableExceptionThrownBy(
                         () -> pool.validateNewHostsTopologiesAndMaybeAddToPool(poolServers, serversToAdd))
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining("The current pool of servers should not have any server(s) that are being added.")
                 .hasExactlyArgs(
-                        SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd)),
+                        SafeArg.of("serversToAdd", CassandraLogHelper.collectionOfHosts(serversToAdd.keySet())),
                         SafeArg.of("currentServers", CassandraLogHelper.collectionOfHosts(poolServers.keySet())));
     }
 
@@ -470,9 +471,9 @@ public void shutsDownHostsBeyondAbsenceTolerance() {
         CassandraClientPoolingContainer container1 = currentPoolSnapshot.get(CASS_SERVER_1);
         verifyNoInteractions(container1);
 
-        cassandraClientPool.setServersInPoolTo(ImmutableSet.of(CASS_SERVER_3));
+        cassandraClientPool.setServersInPoolTo(ImmutableMap.of(CASS_SERVER_3, CassandraServerOrigin.TOKEN_RANGE));
         // The refresh will mark absence of host1 beyond limit of tolerance
-        cassandraClientPool.setServersInPoolTo(ImmutableSet.of(CASS_SERVER_3));
+        cassandraClientPool.setServersInPoolTo(ImmutableMap.of(CASS_SERVER_3, CassandraServerOrigin.TOKEN_RANGE));
         assertThat(cassandraClientPool.getCurrentPools()).containsOnlyKeys(CASS_SERVER_3);
         verify(container1).shutdownPooling();
     }
@@ -487,7 +488,9 @@ private CassandraClientPoolingContainer getCassandraContainerFromInvocation(Invo
 
     private void setCassandraServersTo(CassandraServer... servers) {
         when(cassandra.refreshTokenRangesAndGetServers())
-                .thenReturn(Arrays.stream(servers).collect(ImmutableSet.toImmutableSet()));
+                .thenReturn(Arrays.stream(servers)
+                        .collect(ImmutableMap.toImmutableMap(
+                                Function.identity(), _v -> CassandraServerOrigin.TOKEN_RANGE)));
     }
 
     private CassandraClientPoolImpl createClientPool() {
@@ -665,9 +668,10 @@ private void setupThriftServers(Set<InetSocketAddress> servers) {
                 ImmutableDefaultConfig.builder().addAllThriftHosts(servers).build();
         when(runtimeConfig.servers()).thenReturn(config);
         when(cassandra.getCurrentServerListFromConfig())
-                .thenReturn(config.accept(CassandraServersConfigs.ThriftHostsExtractingVisitor.INSTANCE).stream()
-                        .map(CassandraServer::of)
-                        .collect(ImmutableSet.toImmutableSet()));
+                .thenReturn(CassandraServerOrigin.mapAllServersToOrigin(
+                        config.accept(CassandraServersConfigs.ThriftHostsExtractingVisitor.INSTANCE).stream()
+                                .map(CassandraServer::of),
+                        CassandraServerOrigin.CONFIG));
     }
 
     private void setupHostsWithConsistentTopology() {u}(j (3c2278c182bf5531073adaa0f330188e64592508j fatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraServerOriginTest.javaj addedj KHj K j KHj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraServerOriginTest.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj XU
  @@ -0,0 +1,72 @@
+/*
+ * (c) Copyright 2022 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.keyvalue.cassandra;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.keyvalue.cassandra.pool.CassandraServer;
+import java.net.InetSocketAddress;
+import java.util.Map;
+import java.util.Set;
+import java.util.stream.Stream;
+import org.junit.Test;
+
+public final class CassandraServerOriginTest {
+
+    private static final CassandraServer SERVER_1 = createCassandraServer("serverOne");
+    private static final CassandraServer SERVER_2 = createCassandraServer("serverTwo");
+    private static final CassandraServer SERVER_3 = createCassandraServer("serverThree");
+
+    @Test
+    public void mapAllServersToOriginFromServerStreamDeduplicatesInput() {
+        CassandraServer cloneOfServer1 = createCassandraServer(SERVER_1.cassandraHostName());
+        CassandraServerOrigin origin = CassandraServerOrigin.CONFIG;
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(
+                        Stream.of(SERVER_1, SERVER_2, SERVER_3, cloneOfServer1, SERVER_2, SERVER_3, SERVER_2), origin))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(SERVER_1, origin, SERVER_2, origin, SERVER_3, origin));
+    }
+
+    @Test
+    public void mapAllServersToOriginFromServerSetReturnsMapWithAllSetElementsAsKeysAndAUniqueValue() {
+        CassandraServerOrigin origin = CassandraServerOrigin.TOKEN_RANGE;
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Set.of(SERVER_1, SERVER_2, SERVER_3), origin))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(SERVER_1, origin, SERVER_2, origin, SERVER_3, origin));
+    }
+
+    @Test
+    public void mapAllServersToOriginFromServerStreamWithUniqueElementsReturnsMapWithAllElementsAndAUniqueValue() {
+        CassandraServerOrigin origin = CassandraServerOrigin.LAST_KNOWN;
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Stream.of(SERVER_1, SERVER_2, SERVER_3), origin))
+                .containsExactlyInAnyOrderEntriesOf(Map.of(SERVER_1, origin, SERVER_2, origin, SERVER_3, origin));
+    }
+
+    @Test
+    public void mapAllServersToOriginFromServerStreamReturnsEmptyMapOnEmptyStream() {
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Stream.empty(), CassandraServerOrigin.CONFIG))
+                .isEmpty();
+    }
+
+    @Test
+    public void mapAllServersToOriginFromSetStreamReturnsEmptyMapOnEmptySet() {
+        assertThat(CassandraServerOrigin.mapAllServersToOrigin(Set.of(), CassandraServerOrigin.LAST_KNOWN))
+                .isEmpty();
+    }
+
+    private static CassandraServer createCassandraServer(String hostname) {
+        return CassandraServer.of(hostname, InetSocketAddress.createUnresolved(hostname, 88));
+    }
+}u}(j (bb81d17f74cc4edfb542819312a2b7f5960f195ej katlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraTopologyValidatorTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj Xb  @@ -81,7 +81,10 @@ public void retriesUntilNoNewHostsReturned() {
                         HostIdResult.success(Set.of(uuidIterator.next())),
                         HostIdResult.success(UUIDS)));
         assertThat(validator.getNewHostsWithInconsistentTopologiesAndRetry(
-                        allHosts.keySet(), allHosts, Duration.ofMillis(1), Duration.ofSeconds(20)))
+                        mapToTokenRangeOrigin(allHosts.keySet()),
+                        allHosts,
+                        Duration.ofMillis(1),
+                        Duration.ofSeconds(20)))
                 .isEmpty();
     }
 
@@ -93,7 +96,7 @@ public void retriesMarksFailureWhenNeverResolves() {
                 .values()
                 .forEach(container -> setHostIds(Set.of(container), HostIdResult.success(Set.of(uuidIterator.next()))));
         assertThat(validator.getNewHostsWithInconsistentTopologiesAndRetry(
-                        allHosts.keySet(), allHosts, Duration.ofMillis(1), Duration.ofMillis(1)))
+                        mapToTokenRangeOrigin(allHosts.keySet()), allHosts, Duration.ofMillis(1), Duration.ofMillis(1)))
                 .isNotEmpty();
         assertThat(metrics.validationFailures().getCount()).isEqualTo(1);
         assertThat(metrics.validationLatency().getCount()).isEqualTo(1);
@@ -104,7 +107,10 @@ public void retriesAndReturnsFailingHosts() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(NEW_HOSTS);
         doReturn(allHosts.keySet()).when(validator).getNewHostsWithInconsistentTopologies(any(), any());
         assertThat(validator.getNewHostsWithInconsistentTopologiesAndRetry(
-                        allHosts.keySet(), setupHosts(NEW_HOSTS), Duration.ofMillis(1), Duration.ofMillis(1)))
+                        mapToTokenRangeOrigin(allHosts.keySet()),
+                        setupHosts(NEW_HOSTS),
+                        Duration.ofMillis(1),
+                        Duration.ofMillis(1)))
                 .containsExactlyInAnyOrderElementsOf(allHosts.keySet());
     }
 
@@ -114,29 +120,32 @@ public void retriesAtLeastTwoTimes() {
         doReturn(allHosts.keySet()).when(validator).getNewHostsWithInconsistentTopologies(any(), any());
         when(validator.getNewHostsWithInconsistentTopologies(any(), any())).thenReturn(allHosts.keySet());
         assertThat(validator.getNewHostsWithInconsistentTopologiesAndRetry(
-                        allHosts.keySet(), setupHosts(NEW_HOSTS), Duration.ofMillis(1), Duration.ofMillis(1)))
+                        mapToTokenRangeOrigin(allHosts.keySet()),
+                        setupHosts(NEW_HOSTS),
+                        Duration.ofMillis(1),
+                        Duration.ofMillis(1)))
                 .isNotEmpty();
         verify(validator, atLeast(2)).getNewHostsWithInconsistentTopologies(any(), any());
     }
 
     @Test
     public void returnsEmptyWhenGivenNoServers() {
-        assertThat(validator.getNewHostsWithInconsistentTopologies(ImmutableSet.of(), ImmutableMap.of()))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(ImmutableMap.of(), ImmutableMap.of()))
                 .isEmpty();
     }
 
     @Test
     public void throwsWhenAllHostsDoesNotContainNewHosts() {
         assertThatThrownBy(() -> validator.getNewHostsWithInconsistentTopologies(
-                        ImmutableSet.of(createCassandraServer("foo")), ImmutableMap.of()))
+                        mapToTokenRangeOrigin(ImmutableSet.of(createCassandraServer("foo"))), ImmutableMap.of()))
                 .isInstanceOf(SafeIllegalArgumentException.class);
     }
 
     @Test
     public void returnsEmptyWhenOnlyNewServersAndAllHaveSameHostIds() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(NEW_HOSTS);
         setHostIds(allHosts.values(), DEFAULT_RESULT);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .isEmpty();
     }
 
@@ -149,7 +158,7 @@ public void returnsNewHostsWhenOnlyNewServersAndOneMismatch() {
         setHostIds(
                 filterContainers(allHosts, NEW_HOST_ONE::equals),
                 HostIdResult.success(ImmutableSet.of("uuid3", "uuid2")));
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .containsExactlyElementsOf(allHosts.keySet());
     }
 
@@ -163,7 +172,7 @@ public void returnsNewHostsWhenNewServersMismatchOldServers() {
         setHostIds(
                 filterContainers(allHosts, OLD_HOSTS::contains),
                 HostIdResult.success(ImmutableSet.of("uuid3", "uuid2")));
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newServers, allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(newServers), allHosts))
                 .containsExactlyElementsOf(newServers);
     }
 
@@ -175,15 +184,15 @@ public void validateNewlyAddedHostsReturnsOnlyMismatchingNewHosts() {
         setHostIds(filterContainers(allHosts, badHostFilter), HostIdResult.success(ImmutableSet.of("uuid3", "uuid2")));
         Set<CassandraServer> newServers = filterServers(allHosts, NEW_HOSTS::contains);
         Set<CassandraServer> badNewHosts = filterServers(allHosts, badHostFilter);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newServers, allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(newServers), allHosts))
                 .containsExactlyElementsOf(badNewHosts);
     }
 
     @Test
     public void validateNewlyAddedHostsAddsAllHostsIfNoHostHasEndpoint() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(NEW_HOSTS);
         setHostIds(allHosts.values(), HostIdResult.softFailure());
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .isEmpty();
     }
 
@@ -194,7 +203,7 @@ public void validateNewlyAddedHostsAddsAllHostsIfOneHostHasEndpoint() {
         setHostIds(
                 filterContainers(allHosts, server -> !hostWithEndpoint.contains(server)), HostIdResult.softFailure());
         setHostIds(filterContainers(allHosts, hostWithEndpoint::contains), DEFAULT_RESULT);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .isEmpty();
     }
 
@@ -206,7 +215,7 @@ public void validateNewlyAddedHostsAddsAllHostsIfEndpointExistingHostIdsMatch()
                 filterContainers(allHosts, server -> !hostsWithEndpoints.contains(server)), HostIdResult.softFailure());
         setHostIds(filterContainers(allHosts, hostsWithEndpoints::contains), DEFAULT_RESULT);
         assertThat(validator.getNewHostsWithInconsistentTopologies(
-                        filterServers(allHosts, NEW_HOSTS::contains), allHosts))
+                        mapToTokenRangeOrigin(filterServers(allHosts, NEW_HOSTS::contains)), allHosts))
                 .isEmpty();
     }
 
@@ -219,42 +228,44 @@ public void validateNewlyAddedHostsReturnsNewHostsUnlessEndpointExistAndDoesMatc
         setHostIds(filterContainers(allHosts, NEW_HOST_ONE::equals), HostIdResult.success(Set.of("uuid")));
         setHostIds(filterContainers(allHosts, OLD_HOST_ONE::equals), DEFAULT_RESULT);
         assertThat(validator.getNewHostsWithInconsistentTopologies(
-                        filterServers(allHosts, NEW_HOSTS::contains), allHosts))
+                        mapToTokenRangeOrigin(filterServers(allHosts, NEW_HOSTS::contains)), allHosts))
                 .containsExactlyElementsOf(filterServers(allHosts, NEW_HOST_ONE::equals));
     }
 
     @Test
-    public void validateNewlyAddedHostsNoNewHostsAddedIfOldHostsDoNotHaveQuorum() {
+    public void validateNewlyAddedHostsNoNewHostsAddedIfOldHostsDoNotHaveQuorumAndNoPreviousResultExists() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
         Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
         Set<String> hostsOffline = ImmutableSet.of(OLD_HOST_ONE, OLD_HOST_TWO);
         setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
         setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newCassandraServers, allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
                 .as("no new hosts added if old hosts do not have quorum")
                 .containsExactlyElementsOf(newCassandraServers);
     }
 
     @Test
     public void validateNewlyAddedHostsNewHostsAddedIfTheyAgreeWithOldHostsOnPreviousTopology() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
-        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts = EntryStream.of(allHosts)
-                .filterKeys(key -> OLD_HOSTS.contains(key.cassandraHostName()))
-                .toMap();
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
         Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
         Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
         Set<String> hostsOffline = ImmutableSet.of(OLD_HOST_ONE);
         setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
         setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
 
-        validator.getNewHostsWithInconsistentTopologies(oldCassandraServers, oldHosts);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newCassandraServers, allHosts))
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
                 .as("accepts quorum from new hosts if they have the same host IDs")
                 .isEmpty();
     }
 
     @Test
-    public void validateNewlyAddedHostsNewHostsNotAddedIfTheyDisagreeWithOldHostsOnPreviousTopology() {
+    public void
+            validateNewlyAddedHostsNewHostsNotAddedIfTheyDisagreeWithOldHostsOnPreviousTopologyAndCurrentServersExist() {
         Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
         Map<CassandraServer, CassandraClientPoolingContainer> oldHosts = EntryStream.of(allHosts)
                 .filterKeys(key -> OLD_HOSTS.contains(key.cassandraHostName()))
@@ -272,12 +283,165 @@ public void validateNewlyAddedHostsNewHostsNotAddedIfTheyDisagreeWithOldHostsOnP
                 filterContainers(oldHosts, Predicate.not(hostsOffline::contains)),
                 HostIdResult.success(DIFFERENT_UUIDS));
 
-        validator.getNewHostsWithInconsistentTopologies(oldCassandraServers, oldHosts);
-        assertThat(validator.getNewHostsWithInconsistentTopologies(newCassandraServers, allHosts))
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
                 .as("does not accept quorum from new hosts if they have different host IDs")
                 .containsExactlyElementsOf(newCassandraServers);
     }
 
+    @Test
+    public void returnsAllNewHostsIfNoConsensusOnNewHostsWhenNoQuorumAndCurrentServersExist() {
+        Iterator<String> uuidIterator = UUIDS.iterator();
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        filterContainers(allHosts, server -> !hostsOffline.contains(server))
+                .forEach(container ->
+                        setHostIds(ImmutableSet.of(container), HostIdResult.success(Set.of(uuidIterator.next()))));
+
+        // This is _not_ supposed to be the standard quorum calculation ((n / 2) + 1), but instead the amount of
+        // hosts that need to be offline to _prevent_ quorum
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
+                .as("rejects all servers when no quorum from all hosts and no quorum on new hosts")
+                .containsExactlyInAnyOrderElementsOf(newCassandraServers);
+    }
+
+    @Test
+    public void returnsAllNewHostsIfConsensusOnNewHostsDiffersFromPreviousWhenNoQuorumAndCurrentServersExist() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        setHostIds(
+                filterContainers(allHosts, server -> !hostsOffline.contains(server)),
+                HostIdResult.success(DIFFERENT_UUIDS));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
+                .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
+                .containsExactlyInAnyOrderElementsOf(newCassandraServers);
+    }
+
+    @Test
+    public void validateNewlyAddedHostsAddedIfAgreedWithOldHostsOnPreviousTopologyWhenNoQuorum() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> newCassandraServers = filterServers(allHosts, NEW_HOSTS::contains);
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        mapToTokenRangeOrigin(newCassandraServers), allHosts))
+                .as("accepts quorum from new hosts if they have the same host IDs as old topology")
+                .isEmpty();
+    }
+
+    @Test
+    public void validateNewlyAddedHostsAddedIfAgreedWithOldTopologyWhenNoQuorumAndNoCurrentServers() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> allCassandraServers = allHosts.keySet();
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        splitHostOriginBetweenLastKnownAndConfig(
+                                oldCassandraServers, Sets.difference(allCassandraServers, oldCassandraServers)),
+                        allHosts))
+                .as("accepts quorum from config hosts if they have the same host IDs as old topology when no current"
+                        + " servers")
+                .containsExactlyInAnyOrderElementsOf(oldCassandraServers);
+    }
+
+    @Test
+    public void returnsAllNewHostsIfNoConsensusOnConfigHostsWhenNoQuorumAndNoCurrentServers() {
+        Iterator<String> uuidIterator = UUIDS.iterator();
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> allCassandraServers = allHosts.keySet();
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        filterContainers(allHosts, server -> !hostsOffline.contains(server))
+                .forEach(container ->
+                        setHostIds(ImmutableSet.of(container), HostIdResult.success(Set.of(uuidIterator.next()))));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        splitHostOriginBetweenLastKnownAndConfig(
+                                oldCassandraServers, Sets.difference(allCassandraServers, oldCassandraServers)),
+                        allHosts))
+                .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
+                .containsExactlyInAnyOrderElementsOf(allCassandraServers);
+    }
+
+    @Test
+    public void returnsAllNewHostsIfConsensusOnConfigHostsDiffersFromPreviousWhenNoQuorumAndNoCurrentServers() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        Map<CassandraServer, CassandraClientPoolingContainer> oldHosts =
+                filterServerToContainerMap(allHosts, OLD_HOSTS::contains);
+        Set<CassandraServer> oldCassandraServers = oldHosts.keySet();
+        Set<CassandraServer> allCassandraServers = allHosts.keySet();
+
+        setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.success(UUIDS));
+        validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(oldCassandraServers), oldHosts);
+
+        Set<String> hostsOffline = OLD_HOSTS;
+        setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
+        setHostIds(
+                filterContainers(allHosts, server -> !hostsOffline.contains(server)),
+                HostIdResult.success(DIFFERENT_UUIDS));
+
+        assertThat(hostsOffline).hasSizeGreaterThanOrEqualTo((ALL_HOSTS.size() + 1) / 2);
+
+        assertThat(validator.getNewHostsWithInconsistentTopologies(
+                        splitHostOriginBetweenLastKnownAndConfig(
+                                oldCassandraServers, Sets.difference(allCassandraServers, oldCassandraServers)),
+                        allHosts))
+                .as("rejects all servers when no quorum from all hosts and no quorum on available hosts")
+                .containsExactlyInAnyOrderElementsOf(allCassandraServers);
+    }
+
     @Test
     public void validateNewlyAddedHostsNoNewHostsAddedIfNewHostsDoNotHaveQuorumAndNoCurrentServers() {
         Set<String> hosts = ImmutableSet.<String>builder()
@@ -288,7 +452,7 @@ public void validateNewlyAddedHostsNoNewHostsAddedIfNewHostsDoNotHaveQuorumAndNo
         Set<String> hostsOffline = ImmutableSet.of(NEW_HOST_ONE, NEW_HOST_TWO);
         setHostIds(filterContainers(allHosts, hostsOffline::contains), HostIdResult.hardFailure());
         setHostIds(filterContainers(allHosts, server -> !hostsOffline.contains(server)), HostIdResult.success(UUIDS));
-        assertThat(validator.getNewHostsWithInconsistentTopologies(allHosts.keySet(), allHosts))
+        assertThat(validator.getNewHostsWithInconsistentTopologies(mapToTokenRangeOrigin(allHosts.keySet()), allHosts))
                 .containsExactlyElementsOf(allHosts.keySet());
     }
 
@@ -298,7 +462,7 @@ public void validateNewlyAddedHostsAddsAllNewHostsIfCurrentServersDoNotHaveEndpo
         setHostIds(filterContainers(allHosts, NEW_HOSTS::contains), HostIdResult.success(UUIDS));
         setHostIds(filterContainers(allHosts, OLD_HOSTS::contains), HostIdResult.softFailure());
         assertThat(validator.getNewHostsWithInconsistentTopologies(
-                        filterServers(allHosts, NEW_HOSTS::contains), allHosts))
+                        mapToTokenRangeOrigin(filterServers(allHosts, NEW_HOSTS::contains)), allHosts))
                 .isEmpty();
     }
 
@@ -338,12 +502,16 @@ public Set<CassandraClientPoolingContainer> filterContainers(
                 .toSet();
     }
 
-    public Set<CassandraServer> filterServers(
+    public Map<CassandraServer, CassandraClientPoolingContainer> filterServerToContainerMap(
             Map<CassandraServer, CassandraClientPoolingContainer> hosts, Predicate<String> filter) {
         return EntryStream.of(hosts)
                 .filterKeys(cassandraServer -> filter.test(cassandraServer.cassandraHostName()))
-                .keys()
-                .toSet();
+                .toMap();
+    }
+
+    public Set<CassandraServer> filterServers(
+            Map<CassandraServer, CassandraClientPoolingContainer> hosts, Predicate<String> filter) {
+        return filterServerToContainerMap(hosts, filter).keySet();
     }
 
     private static CassandraServer createCassandraServer(String hostname) {
@@ -367,4 +535,16 @@ private static Map<CassandraServer, CassandraClientPoolingContainer> setupHosts(
                 .mapToEntry(server -> mock(CassandraClientPoolingContainer.class))
                 .toMap();
     }
+
+    private static Map<CassandraServer, CassandraServerOrigin> splitHostOriginBetweenLastKnownAndConfig(
+            Set<CassandraServer> lastKnownHosts, Set<CassandraServer> configHosts) {
+        return ImmutableMap.<CassandraServer, CassandraServerOrigin>builder()
+                .putAll(CassandraServerOrigin.mapAllServersToOrigin(lastKnownHosts, CassandraServerOrigin.LAST_KNOWN))
+                .putAll(CassandraServerOrigin.mapAllServersToOrigin(configHosts, CassandraServerOrigin.CONFIG))
+                .buildOrThrow();
+    }
+
+    private static Map<CassandraServer, CassandraServerOrigin> mapToTokenRangeOrigin(Set<CassandraServer> servers) {
+        return CassandraServerOrigin.mapAllServersToOrigin(servers, CassandraServerOrigin.TOKEN_RANGE);
+    }
 }u}(j (5f795e54adce9a66821695cbd1b7903855070846j \atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/TransactionConstants.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X	  @@ -24,7 +24,8 @@
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.table.description.ValueType;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
 
 public final class TransactionConstants {
     private TransactionConstants() {
@@ -44,13 +45,10 @@ private TransactionConstants() {
     public static final byte[] DIRECT_ENCODING_ABORTED_TRANSACTION_VALUE = getValueForTimestamp(FAILED_COMMIT_TS);
     public static final byte[] TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE = PtBytes.EMPTY_BYTE_ARRAY;
 
-    public static final TransactionStatus ABORTED = TransactionStatuses.aborted();
-    public static final TransactionStatus IN_PROGRESS = TransactionStatuses.inProgress();
-    public static final TransactionStatus UNKNOWN = TransactionStatuses.unknown();
     public static final byte[] TTS_IN_PROGRESS_MARKER = getTtsInProgressMarker();
     public static final long LOWEST_POSSIBLE_START_TS = 1L;
     public static long PRE_START_COMMITTED_TS = TransactionConstants.LOWEST_POSSIBLE_START_TS - 1;
-    public static final TransactionStatus PRE_START_COMMITTED = TransactionStatuses.committed(PRE_START_COMMITTED_TS);
+    public static final TransactionStatus PRE_START_COMMITTED = TransactionStatus.committed(PRE_START_COMMITTED_TS);
 
     public static final long WARN_LEVEL_FOR_QUEUED_BYTES = 10 * 1024 * 1024;
 
@@ -101,4 +99,15 @@ public static long getTimestampForValue(byte[] encodedTimestamp) {
             .explicitCompressionBlockSizeKB(64)
             .denselyAccessedWideRows(true)
             .build();
+
+    static {
+        Preconditions.checkState(
+                !SUPPORTED_TRANSACTIONS_SCHEMA_VERSIONS.contains(TTS_TRANSACTIONS_SCHEMA_VERSION),
+                "Supporting Transactions Table Sweep WILL require changes to internal backup and restore workflows;"
+                    + " failure to do so may only be discoverable at restore time in some implementations. This check"
+                    + " MUST NOT be removed without knowledge that suitable changes have been made to these"
+                    + " workflows.",
+                SafeArg.of("supportedTransactionsSchemaVersions", SUPPORTED_TRANSACTIONS_SCHEMA_VERSIONS),
+                SafeArg.of("transactionsTableSweepSchemaVersion", TTS_TRANSACTIONS_SCHEMA_VERSION));
+    }
 }u}(j (d6ee97d6e0da719997ae5b3ffa7c377ce74a2186j ^atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/TransactionStatusUtils.javaj modifiedj Kj Kj K*j https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionStatusUtils.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionStatusUtils.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionStatusUtils.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X  @@ -18,51 +18,61 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Aborted;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.Optional;
 import java.util.function.Function;
 
 public final class TransactionStatusUtils {
+
     private TransactionStatusUtils() {}
 
     public static TransactionStatus fromTimestamp(long timestamp) {
         if (timestamp == TransactionConstants.FAILED_COMMIT_TS) {
-            return TransactionConstants.ABORTED;
+            return TransactionStatus.aborted();
         }
-        return TransactionStatuses.committed(timestamp);
+        return TransactionStatus.committed(timestamp);
     }
 
     /**
      * This helper is only meant to be used for transactions with schema < 4. For schemas >= 4,
      * use {@link #getCommitTsFromStatus(long, TransactionStatus, Function)}
      * */
     public static long getCommitTimestampIfKnown(TransactionStatus status) {
-        return TransactionStatuses.caseOf(status)
-                .committed(Function.identity())
-                .aborted_(TransactionConstants.FAILED_COMMIT_TS)
-                .otherwise(() -> {
-                    throw new SafeIllegalStateException("Illegal transaction status", SafeArg.of("status", status));
-                });
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return committed.commitTimestamp();
+        } else if (status instanceof Aborted) {
+            return TransactionConstants.FAILED_COMMIT_TS;
+        } else {
+            throw new SafeIllegalStateException("Illegal transaction status", SafeArg.of("status", status));
+        }
     }
 
     /**
      * This helper is only meant to be used for transactions with schema < 4. For schemas >= 4,
      * use {@link #getCommitTsFromStatus(long, TransactionStatus, Function)}
      * */
     public static Optional<Long> maybeGetCommitTs(TransactionStatus status) {
-        return TransactionStatuses.caseOf(status)
-                .committed(Function.identity())
-                .aborted_(TransactionConstants.FAILED_COMMIT_TS)
-                .otherwiseEmpty();
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return Optional.of(committed.commitTimestamp());
+        } else if (status instanceof Aborted) {
+            return Optional.of(TransactionConstants.FAILED_COMMIT_TS);
+        } else {
+            return Optional.empty();
+        }
     }
 
     public static Long getCommitTsFromStatus(
             long startTs, TransactionStatus status, Function<Long, Boolean> abortedCheck) {
-        return TransactionStatuses.caseOf(status)
-                .unknown(() -> getCommitTsForConcludedTransaction(startTs, abortedCheck))
-                .otherwise(() -> TransactionStatusUtils.maybeGetCommitTs(status).orElse(null));
+        if (status instanceof TransactionStatus.Unknown) {
+            return getCommitTsForConcludedTransaction(startTs, abortedCheck);
+        } else {
+            return TransactionStatusUtils.maybeGetCommitTs(status).orElse(null);
+        }
     }
 
     public static long getCommitTsForConcludedTransaction(long startTs, Function<Long, Boolean> isAborted) {u}(j (7ffa2fefee8958ba1a2ce1a90aef690293f911a2j fatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTable.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X0  @@ -32,7 +32,6 @@
 import com.palantir.atlasdb.transaction.encoding.TwoPhaseEncodingStrategy;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.exception.AtlasDbDependencyException;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.common.time.Clock;
@@ -177,13 +176,10 @@ private FollowUpAction touchAndReturn(CellInfo cellAndValue) {
         } catch (CheckAndSetException e) {
             long startTs = cellAndValue.startTs();
             AtomicValue<TransactionStatus> currentValue = encodingStrategy.decodeValueAsCommitStatus(startTs, actual);
-            TransactionStatus commitStatus = currentValue.value();
             AtomicValue<TransactionStatus> kvsValue =
                     encodingStrategy.decodeValueAsCommitStatus(startTs, Iterables.getOnlyElement(e.getActualValues()));
             Preconditions.checkState(
-                    kvsValue.isCommitted()
-                            && TransactionStatuses.getCommitTimestamp(kvsValue.value())
-                                    .equals(TransactionStatuses.getCommitTimestamp(commitStatus)),
+                    kvsValue.isCommitted() && kvsValue.value().equals(currentValue.value()),
                     "Failed to persist a staging value for commit timestamp because an unexpected value "
                             + "was found in the KVS",
                     SafeArg.of("kvsValue", kvsValue),u}(j (1240bb172017e3e15ccf95f6e1f3ed08b526e789j aatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/atomic/TimestampExtractingAtomicTable.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTable.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTable.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTable.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X]  @@ -22,7 +22,6 @@
 import com.palantir.atlasdb.keyvalue.api.KeyAlreadyExistsException;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.Map;
@@ -63,7 +62,7 @@ public ListenableFuture<Map<Long, Long>> get(Iterable<Long> keys) {
         return Futures.transform(
                 delegate.get(keys),
                 statuses -> {
-                    if (statuses.values().stream().anyMatch(TransactionStatuses.unknown()::equals)) {
+                    if (statuses.values().stream().anyMatch(TransactionStatus.unknown()::equals)) {
                         throw new SafeIllegalStateException("There has been a mistake in the wiring as "
                                 + "transactions that do not support transaction table sweep should not be seeing "
                                 + "`unknown` transaction status.");u}(j (7cec9291798ecfcf36a78c28f59165b6af8b6a10j ^atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/keyvalue/api/cache/StructureHolder.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FStructureHolder.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FStructureHolder.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2Fcache%2FStructureHolder.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X=  @@ -23,7 +23,7 @@
  * Utility class to make manipulating {@link io.vavr.collection.Map} and {@link io.vavr.collection.Set} less
  * error-prone as all methods that modify state return a *new* instance in vavr.
  */
-final class StructureHolder<V> {
+public final class StructureHolder<V> {
     private final Supplier<V> initialValueSupplier;
     private V structure;
 
@@ -32,23 +32,23 @@ private StructureHolder(Supplier<V> initialValueSupplier) {
         this.structure = initialValueSupplier.get();
     }
 
-    synchronized void with(Function<V, V> mutator) {
+    public synchronized void with(Function<V, V> mutator) {
         structure = mutator.apply(structure);
     }
 
-    synchronized V getSnapshot() {
+    public synchronized V getSnapshot() {
         return structure;
     }
 
-    synchronized <K> K apply(Function<V, K> function) {
+    public synchronized <K> K apply(Function<V, K> function) {
         return function.apply(structure);
     }
 
-    synchronized void resetToInitialValue() {
+    public synchronized void resetToInitialValue() {
         structure = initialValueSupplier.get();
     }
 
-    static <V> StructureHolder<V> create(Supplier<V> initialValue) {
+    public static <V> StructureHolder<V> create(Supplier<V> initialValue) {
         return new StructureHolder<>(initialValue);
     }
 }u}(j (98088205de8d1e7b8472112b1ed3c692920135c1j hatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/encoding/TicketsEncodingStrategy.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategy.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategy.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategy.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X2
  @@ -20,7 +20,8 @@
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Aborted;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Arrays;
@@ -59,25 +60,26 @@ public long decodeCellAsStartTimestamp(Cell cell) {
     }
 
     @Override
-    public byte[] encodeCommitStatusAsValue(long startTimestamp, TransactionStatus commitStatus) {
-        return TransactionStatuses.caseOf(commitStatus)
-                .committed(ts -> TransactionConstants.getValueForTimestamp(ts - startTimestamp))
-                .aborted_(TransactionConstants.TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE)
-                .otherwise(() -> {
-                    throw new SafeIllegalArgumentException(
-                            "Unexpected transaction status", SafeArg.of("status", commitStatus));
-                });
+    public byte[] encodeCommitStatusAsValue(long startTimestamp, TransactionStatus status) {
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return TransactionConstants.getValueForTimestamp(committed.commitTimestamp() - startTimestamp);
+        } else if (status instanceof Aborted) {
+            return TransactionConstants.TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE;
+        } else {
+            throw new SafeIllegalArgumentException("Unexpected transaction status", SafeArg.of("status", status));
+        }
     }
 
     @Override
     public TransactionStatus decodeValueAsCommitStatus(long startTimestamp, byte[] value) {
         if (value == null) {
-            return TransactionConstants.IN_PROGRESS;
+            return TransactionStatus.inProgress();
         }
         if (Arrays.equals(value, TransactionConstants.TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE)) {
-            return TransactionConstants.ABORTED;
+            return TransactionStatus.aborted();
         }
-        return TransactionStatuses.committed(startTimestamp + TransactionConstants.getTimestampForValue(value));
+        return TransactionStatus.committed(startTimestamp + TransactionConstants.getTimestampForValue(value));
     }
 
     public Stream<byte[]> getRowSetCoveringTimestampRange(long fromInclusive, long toInclusive) {u}(j (48ed8037c90f16ac56dce747642fb90047ae4127j iatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/encoding/TwoPhaseEncodingStrategy.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTwoPhaseEncodingStrategy.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTwoPhaseEncodingStrategy.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTwoPhaseEncodingStrategy.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X  @@ -22,7 +22,6 @@
 import com.palantir.atlasdb.ptobject.EncodingUtils;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
@@ -35,7 +34,7 @@ public final class TwoPhaseEncodingStrategy
     private static final byte[] COMMITTED = new byte[] {1};
 
     private static final AtomicValue<TransactionStatus> IN_PROGRESS_COMMITTED =
-            AtomicValue.committed(TransactionConstants.IN_PROGRESS);
+            AtomicValue.committed(TransactionStatus.inProgress());
     public static final byte[] ABORTED_TRANSACTION_COMMITTED_VALUE =
             EncodingUtils.add(TransactionConstants.TICKETS_ENCODING_ABORTED_TRANSACTION_VALUE, COMMITTED);
     public static final byte[] ABORTED_TRANSACTION_STAGING_VALUE =
@@ -69,7 +68,7 @@ public AtomicValue<TransactionStatus> decodeNullValueAsCommitStatus() {
         }
         // `null` value is the in_progress marker for transaction schema <= 3. For transaction schema > 3, we have an
         // explicit in-progress marker and a null values represents that the table has been swept.
-        return AtomicValue.committed(TransactionStatuses.unknown());
+        return AtomicValue.committed(TransactionStatus.unknown());
     }
 
     @Overrideu}(j (332546bb3f57de279d692beddd67f9a12bbff65fj catlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/encoding/V1EncodingStrategy.javaj modifiedj Kj K
j Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FV1EncodingStrategy.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FV1EncodingStrategy.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FV1EncodingStrategy.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj XT  @@ -20,7 +20,8 @@
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.impl.TransactionStatusUtils;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Aborted;
+import com.palantir.atlasdb.transaction.service.TransactionStatus.Committed;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 
@@ -39,20 +40,21 @@ public long decodeCellAsStartTimestamp(Cell cell) {
     }
 
     @Override
-    public byte[] encodeCommitStatusAsValue(long _ignoredStartTimestamp, TransactionStatus commitStatus) {
-        return TransactionStatuses.caseOf(commitStatus)
-                .committed(TransactionConstants::getValueForTimestamp)
-                .aborted_(TransactionConstants.DIRECT_ENCODING_ABORTED_TRANSACTION_VALUE)
-                .otherwise(() -> {
-                    throw new SafeIllegalStateException(
-                            "Illegal transaction status", SafeArg.of("status", commitStatus));
-                });
+    public byte[] encodeCommitStatusAsValue(long _ignoredStartTimestamp, TransactionStatus status) {
+        if (status instanceof Committed) {
+            Committed committed = (Committed) status;
+            return TransactionConstants.getValueForTimestamp(committed.commitTimestamp());
+        } else if (status instanceof Aborted) {
+            return TransactionConstants.DIRECT_ENCODING_ABORTED_TRANSACTION_VALUE;
+        } else {
+            throw new SafeIllegalStateException("Illegal transaction status", SafeArg.of("status", status));
+        }
     }
 
     @Override
     public TransactionStatus decodeValueAsCommitStatus(long _ignoredStartTimestamp, byte[] value) {
         if (value == null) {
-            return TransactionConstants.IN_PROGRESS;
+            return TransactionStatus.inProgress();
         }
 
         return TransactionStatusUtils.fromTimestamp(TransactionConstants.getTimestampForValue(value));u}(j (b360e6e7298b91b238d9122bff9320bf177b827fj batlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoader.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoader.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X  @@ -31,7 +31,6 @@
 import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
 import com.palantir.atlasdb.transaction.service.AsyncTransactionService;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.lock.AtlasRowLockDescriptor;
 import com.palantir.lock.LockDescriptor;
@@ -141,13 +140,13 @@ private Map<Long, Long> cacheKnownLoadedValuesAndValidate(Map<Long, TransactionS
             long start = entry.getKey();
             TransactionStatus commitStatus = entry.getValue();
 
-            if (commitStatus.equals(TransactionStatuses.inProgress())) {
+            if (commitStatus.equals(TransactionStatus.inProgress())) {
                 continue;
             }
 
             long commitTs = TransactionStatusUtils.getCommitTsFromStatus(
                     start, commitStatus, abortedTransactionsCache::isKnownAbandoned);
-            if (commitStatus.equals(TransactionStatuses.unknown())) {
+            if (commitStatus.equals(TransactionStatus.unknown())) {
                 shouldValidate = true;
             } else {
                 timestampCache.putAlreadyCommittedTransaction(start, commitTs);u     }(j (1d726d79fa9f2724d395decf58d13c95485d7677j `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaj modifiedj K
j Kj Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X|  @@ -157,6 +157,7 @@
 import java.util.Optional;
 import java.util.Set;
 import java.util.SortedMap;
+import java.util.SortedSet;
 import java.util.TreeMap;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ConcurrentMap;
@@ -1160,7 +1161,7 @@ private List<Map.Entry<Cell, byte[]>> getPostFilteredWithLocalWrites(
                 postFiltered.entrySet(),
                 Predicates.compose(Predicates.in(prePostFilterCells.keySet()), MapEntries.getKeyFunction()));
         Collection<Map.Entry<Cell, byte[]>> localWritesInRange = getLocalWritesForRange(
-                        tableRef, rangeRequest.getStartInclusive(), endRowExclusive)
+                        tableRef, rangeRequest.getStartInclusive(), endRowExclusive, rangeRequest.getColumnNames())
                 .entrySet();
         return mergeInLocalWrites(
                 tableRef, postFilteredCells.iterator(), localWritesInRange.iterator(), rangeRequest.isReverse());
@@ -1198,9 +1199,9 @@ private <K extends Exception> boolean getBatchingVisitableFromIterator(
             throws K {
         try (ClosableIterator<RowResult<byte[]>> postFilterIterator =
                 postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
-            Iterator<RowResult<byte[]>> localWritesInRange = Cells.createRowView(
-                    getLocalWritesForRange(tableRef, range.getStartInclusive(), range.getEndExclusive())
-                            .entrySet());
+            Iterator<RowResult<byte[]>> localWritesInRange = Cells.createRowView(getLocalWritesForRange(
+                            tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
+                    .entrySet());
             Iterator<RowResult<byte[]>> mergeIterators =
                     mergeInLocalWritesRows(postFilterIterator, localWritesInRange, range.isReverse(), tableRef);
             return BatchingVisitableFromIterable.create(mergeIterators).batchAccept(userRequestedSize, visitor);
@@ -1316,15 +1317,22 @@ private ConcurrentNavigableMap<Cell, byte[]> getLocalWrites(TableReference table
 
     /**
      * This includes deleted writes as zero length byte arrays, be sure to strip them out.
+     *
+     * For the selectedColumns parameter, empty set means all columns. This is unfortunate, but follows the semantics of
+     * {@link RangeRequest}.
      */
-    private SortedMap<Cell, byte[]> getLocalWritesForRange(TableReference tableRef, byte[] startRow, byte[] endRow) {
+    private SortedMap<Cell, byte[]> getLocalWritesForRange(
+            TableReference tableRef, byte[] startRow, byte[] endRow, SortedSet<byte[]> selectedColumns) {
         SortedMap<Cell, byte[]> writes = getLocalWrites(tableRef);
         if (startRow.length != 0) {
             writes = writes.tailMap(Cells.createSmallestCellForRow(startRow));
         }
         if (endRow.length != 0) {
             writes = writes.headMap(Cells.createSmallestCellForRow(endRow));
         }
+        if (!selectedColumns.isEmpty()) {
+            writes = Maps.filterKeys(writes, cell -> selectedColumns.contains(cell.getColumnName()));
+        }
         return writes;
     }
 u}(j (6145cc9af0bd5b4fcbcfc599ba7616db926d9a99j ratlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/KnowledgeableTimestampExtractingAtomicTableTest.javaj modifiedj Kj K
j Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FKnowledgeableTimestampExtractingAtomicTableTest.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FKnowledgeableTimestampExtractingAtomicTableTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FKnowledgeableTimestampExtractingAtomicTableTest.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X@  @@ -32,7 +32,6 @@
 import com.palantir.atlasdb.transaction.knowledge.KnownConcludedTransactions.Consistency;
 import com.palantir.atlasdb.transaction.knowledge.VerificationModeMetrics;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.util.concurrent.ExecutionException;
 import org.junit.Test;
@@ -79,7 +78,7 @@ public void canGetTsOfNonConcludedTxn() throws ExecutionException, InterruptedEx
         long commitTs = 127L;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.committed(commitTs)));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.committed(commitTs)));
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isEqualTo(commitTs);
     }
@@ -89,7 +88,7 @@ public void canGetTsOfNonConcludedAbortedTxn() throws ExecutionException, Interr
         long startTs = 27l;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.aborted()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.aborted()));
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isEqualTo(TransactionConstants.FAILED_COMMIT_TS);
     }
@@ -99,7 +98,7 @@ public void canGetTsOfNonConcludedInProgressTxn() throws ExecutionException, Int
         long startTs = 27l;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.inProgress()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.inProgress()));
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isNull();
     }
@@ -109,7 +108,7 @@ public void canGetTsOfRemotelyConcludedTxn() throws ExecutionException, Interrup
         long startTs = 27l;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.unknown()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.unknown()));
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(false);
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isEqualTo(startTs);
@@ -120,7 +119,7 @@ public void canGetTsOfRemotelyConcludedAbortedTxn() throws ExecutionException, I
         long startTs = 27l;
         when(knownConcludedTransactions.isKnownConcluded(startTs, KnownConcludedTransactions.Consistency.LOCAL_READ))
                 .thenReturn(false);
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.unknown()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.unknown()));
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(true);
 
         assertThat(tsExtractingTable.getInternal(startTs).get()).isEqualTo(TransactionConstants.FAILED_COMMIT_TS);
@@ -130,7 +129,7 @@ public void canGetTsOfRemotelyConcludedAbortedTxn() throws ExecutionException, I
     @Test
     public void noVerificationIfTransactionInProgress() {
         long startTs = 27l;
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.inProgress()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.inProgress()));
         tsExtractingTable.get(startTs);
 
         verifyNoInteractions(knownAbandonedTransactions);
@@ -142,7 +141,7 @@ public void noVerificationIfTransactionInProgress() {
     public void noVerificationInBatchedGetIfTransactionInProgress() {
         long startTs = 27l;
         when(delegate.get(ImmutableSet.of(startTs)))
-                .thenReturn(Futures.immediateFuture(ImmutableMap.of(startTs, TransactionStatuses.inProgress())));
+                .thenReturn(Futures.immediateFuture(ImmutableMap.of(startTs, TransactionStatus.inProgress())));
         tsExtractingTable.get(ImmutableSet.of(startTs));
 
         verifyNoInteractions(knownAbandonedTransactions);
@@ -154,7 +153,7 @@ public void noVerificationInBatchedGetIfTransactionInProgress() {
     public void noVerificationIfTransactionNotConcluded() {
         long startTs = 27l;
         long commitTs = 35l;
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.committed(commitTs)));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.committed(commitTs)));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(false);
 
@@ -169,7 +168,7 @@ public void noVerificationIfTransactionNotConcluded() {
     public void verifiesConcludedTransaction() {
         long startTs = 27l;
         long commitTs = 35l;
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.committed(commitTs)));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.committed(commitTs)));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(true);
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(false);
@@ -186,7 +185,7 @@ public void verifiesConcludedTransaction() {
     public void verifiesConcludedAbandonedTransaction() {
         long startTs = 27l;
 
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.aborted()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.aborted()));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(true);
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(true);
@@ -204,7 +203,7 @@ public void catchesInconsistencyIfCommittedTransactionIsMarkedAbandoned() {
         long startTs = 27l;
         long commitTs = 35l;
 
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.committed(commitTs)));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.committed(commitTs)));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(true);
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(true);
@@ -221,7 +220,7 @@ public void catchesInconsistencyIfCommittedTransactionIsMarkedAbandoned() {
     public void catchesInconsistencyIfAbortedTransactionIsNotMarkedAbandoned() {
         long startTs = 27l;
 
-        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatuses.aborted()));
+        when(delegate.get(startTs)).thenReturn(Futures.immediateFuture(TransactionStatus.aborted()));
         when(knownConcludedTransactions.isKnownConcluded(startTs, Consistency.REMOTE_READ))
                 .thenReturn(true);
         when(knownAbandonedTransactions.isKnownAbandoned(startTs)).thenReturn(false);u}(j (de47f4b61de48b3d358e06301facd8a4098aae44j uatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTableIntegrationTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableIntegrationTest.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableIntegrationTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableIntegrationTest.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X  @@ -25,7 +25,6 @@
 import com.palantir.atlasdb.transaction.encoding.BaseProgressEncodingStrategy;
 import com.palantir.atlasdb.transaction.encoding.TwoPhaseEncodingStrategy;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.time.Duration;
@@ -90,7 +89,7 @@ private void submitWriteTask(
                 writeExecutionLatch.await();
                 Uninterruptibles.sleepUninterruptibly(
                         Duration.ofMillis(ThreadLocalRandom.current().nextInt(10)));
-                pueTable.update(startTimestamp, TransactionStatuses.committed(startTimestamp + writerIndex));
+                pueTable.update(startTimestamp, TransactionStatus.committed(startTimestamp + writerIndex));
             } catch (RuntimeException e) {
                 // Expected - some failures will happen as part of our test.
             }
@@ -154,7 +153,7 @@ private TimestampReader(long startTimestamp, AtomicTable<Long, TransactionStatus
 
         public List<Optional<Long>> getTimestampReads() {
             return timestampReads.stream()
-                    .map(TransactionStatuses::getCommitTimestamp)
+                    .map(TransactionStatus::getCommitTimestamp)
                     .collect(Collectors.toList());
         }
 u}(j (22a536520a6a833dfdb825d32190bc03183fad7ej jatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/ResilientCommitTimestampAtomicTableTest.javaj modifiedj K#j K7j KZj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableTest.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FResilientCommitTimestampAtomicTableTest.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X-  @@ -43,7 +43,6 @@
 import com.palantir.atlasdb.transaction.encoding.TicketsEncodingStrategy;
 import com.palantir.atlasdb.transaction.encoding.TwoPhaseEncodingStrategy;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.time.Clock;
 import com.palantir.tritium.metrics.registry.DefaultTaggedMetricRegistry;
 import java.time.Duration;
@@ -101,67 +100,58 @@ public static Collection<Object[]> data() {
 
     @Test
     public void canPutAndGet() throws ExecutionException, InterruptedException {
-        atomicTable.update(1L, TransactionStatuses.committed(2L));
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(2L);
+        atomicTable.update(1L, TransactionStatus.committed(2L));
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(2L));
         verify(spiedStore).batchAtomicUpdate(anyMap());
         verify(spiedStore, atLeastOnce()).put(anyMap());
         verify(spiedStore).getMultiple(any());
     }
 
     @Test
     public void emptyReturnsInProgress() throws ExecutionException, InterruptedException {
-        assertThat(TransactionStatuses.caseOf(atomicTable.get(3L).get())
-                        .inProgress_(true)
-                        .otherwise_(false))
-                .isTrue();
+        assertThat(atomicTable.get(3L).get()).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Test
     public void canPutAndGetAbortedTransactions() throws ExecutionException, InterruptedException {
-        atomicTable.update(1L, TransactionStatuses.aborted());
-        assertThat(TransactionStatuses.caseOf(atomicTable.get(1L).get())
-                        .aborted_(true)
-                        .otherwise_(false))
-                .isTrue();
+        atomicTable.update(1L, TransactionStatus.aborted());
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.aborted());
     }
 
     @Test
     public void cannotPueTwice() {
-        atomicTable.update(1L, TransactionStatuses.committed(2L));
-        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatuses.committed(2L)))
+        atomicTable.update(1L, TransactionStatus.committed(2L));
+        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatus.committed(2L)))
                 .isInstanceOf(KeyAlreadyExistsException.class);
     }
 
     @Test
     public void canPutAndGetMultiple() throws ExecutionException, InterruptedException {
         ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(
                 1L,
-                TransactionStatuses.committed(2L),
+                TransactionStatus.committed(2L),
                 3L,
-                TransactionStatuses.committed(4L),
+                TransactionStatus.committed(4L),
                 7L,
-                TransactionStatuses.committed(8L));
+                TransactionStatus.committed(8L));
         atomicTable.updateMultiple(inputs);
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 3L, 5L, 7L)).get();
         assertThat(result).hasSize(4);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(3L))).hasValue(4L);
-        assertThat(TransactionStatuses.caseOf(result.get(5L)).inProgress_(true).otherwise_(false))
-                .isTrue();
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(7L))).hasValue(8L);
+        assertThat(result.get(1L)).isEqualTo(TransactionStatus.committed(2L));
+        assertThat(result.get(3L)).isEqualTo(TransactionStatus.committed(4L));
+        assertThat(result.get(5L)).isEqualTo(TransactionStatus.inProgress());
+        assertThat(result.get(7L)).isEqualTo(TransactionStatus.committed(8L));
     }
 
     @Test
     public void pueThatThrowsIsCorrectedOnGet() throws ExecutionException, InterruptedException {
         spiedStore.startFailingPuts();
-        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatuses.committed(2L)))
+        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatus.committed(2L)))
                 .isInstanceOf(RuntimeException.class);
         spiedStore.stopFailingPuts();
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(2L);
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(2L));
         verify(spiedStore, times(2)).put(anyMap());
     }
 
@@ -170,7 +160,7 @@ public void getReturnsStagingValuesThatWereCommittedBySomeoneElse()
             throws ExecutionException, InterruptedException {
 
         long startTimestamp = 1L;
-        TransactionStatus commitStatus = TransactionStatuses.committed(2L);
+        TransactionStatus commitStatus = TransactionStatus.committed(2L);
         Cell timestampAsCell = encodingStrategy.encodeStartTimestampAsCell(startTimestamp);
         byte[] stagingValue =
                 encodingStrategy.encodeCommitStatusAsValue(startTimestamp, AtomicValue.staging(commitStatus));
@@ -184,9 +174,7 @@ public void getReturnsStagingValuesThatWereCommittedBySomeoneElse()
                 .when(spiedStore)
                 .checkAndTouch(timestampAsCell, stagingValue);
 
-        assertThat(TransactionStatuses.getCommitTimestamp(
-                        atomicTable.get(startTimestamp).get()))
-                .isEqualTo(TransactionStatuses.getCommitTimestamp(commitStatus));
+        assertThat(atomicTable.get(startTimestamp).get()).isEqualTo(commitStatus);
     }
 
     @Test
@@ -209,14 +197,14 @@ public void onceNonNullValueIsReturnedItIsAlwaysReturned() {
             for (int i = 0; i < 30; i++) {
                 TransactionStatus valueRead = firstSuccessfulRead(putUnlessExistsTable, startTs);
                 onlyAllowedCommitTs.ifPresentOrElse(
-                        commit -> assertThat(TransactionStatuses.getCommitTimestamp(valueRead))
-                                .hasValue(commit),
-                        () -> assertThat(TransactionStatuses.caseOf(valueRead)
-                                        .inProgress_(true)
-                                        .committed(commitTs -> commitTs >= ts && commitTs <= ts + 2)
-                                        .otherwise_(false))
-                                .isTrue());
-                onlyAllowedCommitTs = TransactionStatuses.getCommitTimestamp(valueRead);
+                        commit -> assertThat(valueRead).isEqualTo(TransactionStatus.committed(commit)),
+                        () -> assertThat(valueRead)
+                                .satisfiesAnyOf(
+                                        status -> assertThat(status).isEqualTo(TransactionStatus.inProgress()),
+                                        status -> assertThat(status).isEqualTo(TransactionStatus.committed(ts)),
+                                        status -> assertThat(status).isEqualTo(TransactionStatus.committed(ts + 1)),
+                                        status -> assertThat(status).isEqualTo(TransactionStatus.committed(ts + 2))));
+                onlyAllowedCommitTs = TransactionStatus.getCommitTimestamp(valueRead);
             }
         }
     }
@@ -242,9 +230,7 @@ public void inAbsenceOfConcurrencyGetRetriesBothTouchAndPut() throws ExecutionEx
 
         spiedStore.stopFailingPuts();
         for (long i = 0; i < 100; i++) {
-            assertThat(TransactionStatuses.getCommitTimestamp(
-                            atomicTable.get(0L).get()))
-                    .hasValue(0L);
+            assertThat(atomicTable.get(0L).get()).isEqualTo(TransactionStatus.committed(0L));
         }
 
         if (validating) {
@@ -343,8 +329,7 @@ public void doNotPutIfAlreadyCommitted() throws ExecutionException, InterruptedE
         setupStagingValues(1);
         spiedStore.enableCommittingUnderUs();
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(0L).get()))
-                .hasValue(0L);
+        assertThat(atomicTable.get(0L).get()).isEqualTo(TransactionStatus.committed(0L));
         verify(spiedKvs, times(1)).checkAndSet(any());
         // only the put from the original PUE was registered
         verify(spiedStore, times(1)).put(anyMap());
@@ -357,18 +342,15 @@ public void acceptStagingAsCommittedWhenCommittingIsSlow() throws ExecutionExcep
         spiedStore.stopFailingPuts();
         spiedStore.startSlowPue();
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(0L).get()))
-                .hasValue(0L);
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(1L);
+        assertThat(atomicTable.get(0L).get()).isEqualTo(TransactionStatus.committed(0L));
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(1L));
 
         verify(spiedKvs, times(1)).checkAndSet(any());
         verify(spiedStore, times(1 + 2)).put(anyMap());
 
         clockLong.accumulateAndGet(Duration.ofSeconds(62).toMillis(), Long::sum);
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(2L).get()))
-                .hasValue(2L);
+        assertThat(atomicTable.get(2L).get()).isEqualTo(TransactionStatus.committed(2L));
         verify(spiedKvs, times(2)).checkAndSet(any());
         verify(spiedStore, times(1 + 3)).put(anyMap());
     }
@@ -384,23 +366,21 @@ public void acceptStagingAsCommittedWhenRetryingTooMuch() throws ExecutionExcept
                 .hasCauseInstanceOf(RetryLimitReachedException.class);
         spiedStore.stopFailingPuts();
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(1L);
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(1L));
         verify(spiedKvs, times(1)).checkAndSet(any());
         verify(spiedStore, times(1 + 2)).put(anyMap());
 
         clockLong.accumulateAndGet(Duration.ofSeconds(62).toMillis(), Long::sum);
 
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(2L).get()))
-                .hasValue(2L);
+        assertThat(atomicTable.get(2L).get()).isEqualTo(TransactionStatus.committed(2L));
         verify(spiedKvs, times(2)).checkAndSet(any());
         verify(spiedStore, times(1 + 3)).put(anyMap());
     }
 
     private void setupStagingValues(int num) {
         spiedStore.startFailingPuts();
         Map<Long, TransactionStatus> initialWrites =
-                LongStream.range(0, num).boxed().collect(Collectors.toMap(x -> x, TransactionStatuses::committed));
+                LongStream.range(0, num).boxed().collect(Collectors.toMap(x -> x, TransactionStatus::committed));
         assertThatThrownBy(() -> atomicTable.updateMultiple(initialWrites))
                 .isInstanceOf(RuntimeException.class)
                 .hasMessageContaining("Failed to set value");
@@ -409,7 +389,7 @@ private void setupStagingValues(int num) {
     private static Optional<Long> tryPue(
             AtomicTable<Long, TransactionStatus> atomicTable, long startTs, long commitTs) {
         try {
-            atomicTable.update(startTs, TransactionStatuses.committed(commitTs));
+            atomicTable.update(startTs, TransactionStatus.committed(commitTs));
             return Optional.of(commitTs);
         } catch (Exception e) {
             // this is ok, we may have failed because it already exists or randomly. Either way, continue.u}(j (09cfb417a9a7f8920f5c480e8b9a3bd3be73fe0cj gatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/SimpleCommitTimestampAtomicTableTest.javaj modifiedj Kj Kj K+j https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FSimpleCommitTimestampAtomicTableTest.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FSimpleCommitTimestampAtomicTableTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FSimpleCommitTimestampAtomicTableTest.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X  @@ -27,9 +27,7 @@
 import com.palantir.atlasdb.transaction.encoding.TicketsEncodingStrategy;
 import com.palantir.atlasdb.transaction.encoding.TransactionStatusEncodingStrategy;
 import com.palantir.atlasdb.transaction.encoding.V1EncodingStrategy;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import java.util.Arrays;
 import java.util.Collection;
 import java.util.Map;
@@ -58,74 +56,75 @@ public void setup() {
 
     @Test
     public void canPutAndGet() throws ExecutionException, InterruptedException {
-        atomicTable.update(1L, TransactionStatuses.committed(2L));
-        assertThat(TransactionStatuses.getCommitTimestamp(atomicTable.get(1L).get()))
-                .hasValue(2L);
+        atomicTable.update(1L, TransactionStatus.committed(2L));
+        assertThat(atomicTable.get(1L).get()).isEqualTo(TransactionStatus.committed(2L));
     }
 
     @Test
     public void emptyReturnsInProgress() throws ExecutionException, InterruptedException {
-        assertThat(atomicTable.get(3L).get()).isEqualTo(TransactionConstants.IN_PROGRESS);
+        assertThat(atomicTable.get(3L).get()).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Test
     public void cannotPueTwice() {
-        atomicTable.update(1L, TransactionStatuses.committed(2L));
-        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatuses.committed(2L)))
+        atomicTable.update(1L, TransactionStatus.committed(2L));
+        assertThatThrownBy(() -> atomicTable.update(1L, TransactionStatus.committed(2L)))
                 .isInstanceOf(KeyAlreadyExistsException.class);
     }
 
     @Test
     public void canPutAndGetMultiple() throws ExecutionException, InterruptedException {
         ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(
                 1L,
-                TransactionStatuses.committed(2L),
+                TransactionStatus.committed(2L),
                 3L,
-                TransactionStatuses.committed(4L),
+                TransactionStatus.committed(4L),
                 7L,
-                TransactionStatuses.committed(8L));
+                TransactionStatus.committed(8L));
         atomicTable.updateMultiple(inputs);
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 3L, 5L, 7L)).get();
         assertThat(result).hasSize(4);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(3L))).hasValue(4L);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(7L))).hasValue(8L);
+        assertThat(result.get(1L)).isEqualTo(TransactionStatus.committed(2L));
+        assertThat(result.get(3L)).isEqualTo(TransactionStatus.committed(4L));
+        assertThat(result.get(7L)).isEqualTo(TransactionStatus.committed(8L));
     }
 
     @Test
     public void canPutAndGetAbortedTransactions() throws ExecutionException, InterruptedException {
-        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatuses.aborted());
+        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatus.aborted());
         atomicTable.updateMultiple(inputs);
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L)).get();
         assertThat(result).hasSize(1);
-        assertThat(result).containsEntry(1L, TransactionConstants.ABORTED);
+        assertThat(result).containsEntry(1L, TransactionStatus.aborted());
     }
 
     @Test
     public void getsAllTimestamps() throws ExecutionException, InterruptedException {
-        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatuses.committed(2L));
+        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatus.committed(2L));
         atomicTable.updateMultiple(inputs);
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 3L)).get();
         assertThat(result).hasSize(2);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(result).containsEntry(3L, TransactionConstants.IN_PROGRESS);
+        assertThat(result)
+                .containsEntry(1L, TransactionStatus.committed(2L))
+                .containsEntry(3L, TransactionStatus.inProgress());
     }
 
     @Test
     public void doesNotThrowForDuplicateValues() throws ExecutionException, InterruptedException {
-        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatuses.committed(2L));
+        ImmutableMap<Long, TransactionStatus> inputs = ImmutableMap.of(1L, TransactionStatus.committed(2L));
         atomicTable.updateMultiple(inputs);
 
         // does not throw any exception
         Map<Long, TransactionStatus> result =
                 atomicTable.get(ImmutableList.of(1L, 1L, 3L)).get();
 
         assertThat(result).hasSize(2);
-        assertThat(TransactionStatuses.getCommitTimestamp(result.get(1L))).hasValue(2L);
-        assertThat(result).containsEntry(3L, TransactionConstants.IN_PROGRESS);
+        assertThat(result)
+                .containsEntry(1L, TransactionStatus.committed(2L))
+                .containsEntry(3L, TransactionStatus.inProgress());
     }
 
     private AtomicTable<Long, TransactionStatus> createPueTable() {u}(j (17c2d2d99fcc56873eb8e3c9724337a5187746f8j eatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/atomic/TimestampExtractingAtomicTableTest.javaj modifiedj Kj K	j Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTableTest.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTableTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fatomic%2FTimestampExtractingAtomicTableTest.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X  @@ -26,7 +26,6 @@
 import com.google.common.util.concurrent.Futures;
 import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.common.streams.KeyedStream;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.Map;
@@ -42,7 +41,7 @@ public class TimestampExtractingAtomicTableTest {
     public void canExtractCommittedTransaction() throws ExecutionException, InterruptedException {
         Iterable<Long> keys = ImmutableList.of(1L, 2L, 3L);
         Map<Long, TransactionStatus> commits = KeyedStream.of(keys)
-                .map(key -> TransactionStatuses.committed(commitTs(key)))
+                .map(key -> TransactionStatus.committed(commitTs(key)))
                 .collectToMap();
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
@@ -54,7 +53,7 @@ public void canExtractCommittedTransaction() throws ExecutionException, Interrup
     public void canExtractAbortedTransaction() throws ExecutionException, InterruptedException {
         Iterable<Long> keys = ImmutableList.of(1L);
         Map<Long, TransactionStatus> commits =
-                KeyedStream.of(keys).map(_key -> TransactionConstants.ABORTED).collectToMap();
+                KeyedStream.of(keys).map(_key -> TransactionStatus.aborted()).collectToMap();
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
         Map<Long, Long> expected = KeyedStream.of(keys)
@@ -70,9 +69,9 @@ public void canExtractCommittedOrAbortedTransaction() throws ExecutionException,
         Iterable<Long> keys = ImmutableList.of(committedTs, abortedTs);
         Map<Long, TransactionStatus> commits = ImmutableMap.of(
                 committedTs,
-                TransactionStatuses.committed(commitTs(committedTs)),
+                TransactionStatus.committed(commitTs(committedTs)),
                 abortedTs,
-                TransactionConstants.ABORTED);
+                TransactionStatus.aborted());
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
         Map<Long, Long> expected =
@@ -83,9 +82,8 @@ public void canExtractCommittedOrAbortedTransaction() throws ExecutionException,
     @Test
     public void ignoresInProgressTransaction() throws ExecutionException, InterruptedException {
         Iterable<Long> keys = ImmutableList.of(1L);
-        Map<Long, TransactionStatus> commits = KeyedStream.of(keys)
-                .map(_key -> TransactionConstants.IN_PROGRESS)
-                .collectToMap();
+        Map<Long, TransactionStatus> commits =
+                KeyedStream.of(keys).map(_key -> TransactionStatus.inProgress()).collectToMap();
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
         assertThat(timestampExtractingAtomicTable.get(keys).get()).isEmpty();
@@ -95,7 +93,7 @@ public void ignoresInProgressTransaction() throws ExecutionException, Interrupte
     public void throwsOnUnknownTransaction() {
         Iterable<Long> keys = ImmutableList.of(1L);
         Map<Long, TransactionStatus> commits =
-                KeyedStream.of(keys).map(_key -> TransactionConstants.UNKNOWN).collectToMap();
+                KeyedStream.of(keys).map(_key -> TransactionStatus.unknown()).collectToMap();
         when(delegate.get(keys)).thenReturn(Futures.immediateFuture(commits));
 
         assertThatThrownBy(() -> timestampExtractingAtomicTable.get(keys).get())u}(j (f83731cd3f3f8b3be5c5f506cb85afad40f4ec7bj latlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/encoding/TicketsEncodingStrategyTest.javaj modifiedj Kj Kj K!j https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategyTest.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategyTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fencoding%2FTicketsEncodingStrategyTest.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj XN  @@ -24,8 +24,7 @@
 import com.google.protobuf.ByteString;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.Cell;
-import com.palantir.atlasdb.transaction.impl.TransactionConstants;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.Arrays;
 import java.util.List;
@@ -87,22 +86,20 @@ public void commitTimestampEncodeAndDecodeAreInverses() {
             long startTimestamp = ThreadLocalRandom.current().nextLong(0, Long.MAX_VALUE - 1);
             long commitTimestamp = ThreadLocalRandom.current().nextLong(startTimestamp, Long.MAX_VALUE);
             byte[] encoded =
-                    STRATEGY.encodeCommitStatusAsValue(startTimestamp, TransactionStatuses.committed(commitTimestamp));
-            assertThat(TransactionStatuses.getCommitTimestamp(
-                            STRATEGY.decodeValueAsCommitStatus(startTimestamp, encoded)))
-                    .hasValue(commitTimestamp);
+                    STRATEGY.encodeCommitStatusAsValue(startTimestamp, TransactionStatus.committed(commitTimestamp));
+            assertThat(STRATEGY.decodeValueAsCommitStatus(startTimestamp, encoded))
+                    .isEqualTo(TransactionStatus.committed(commitTimestamp));
         });
     }
 
     @Test
     public void storesLargeCommitTimestampsCompactly() {
         long highTimestamp = Long.MAX_VALUE - 1;
         byte[] commitTimestampEncoding =
-                STRATEGY.encodeCommitStatusAsValue(highTimestamp, TransactionStatuses.committed(highTimestamp + 1));
+                STRATEGY.encodeCommitStatusAsValue(highTimestamp, TransactionStatus.committed(highTimestamp + 1));
         assertThat(commitTimestampEncoding).hasSize(1);
-        assertThat(TransactionStatuses.getCommitTimestamp(
-                        STRATEGY.decodeValueAsCommitStatus(highTimestamp, commitTimestampEncoding)))
-                .hasValue(highTimestamp + 1);
+        assertThat(STRATEGY.decodeValueAsCommitStatus(highTimestamp, commitTimestampEncoding))
+                .isEqualTo(TransactionStatus.committed(highTimestamp + 1));
     }
 
     @Test
@@ -151,36 +148,36 @@ public void distributesRowsEvenlyAcrossBitSpace() {
 
     @Test
     public void canStoreTransactionsCommittingInstantaneously() {
-        assertThatCode(() -> STRATEGY.encodeCommitStatusAsValue(10, TransactionStatuses.committed(10L)))
+        assertThatCode(() -> STRATEGY.encodeCommitStatusAsValue(10, TransactionStatus.committed(10L)))
                 .doesNotThrowAnyException();
     }
 
     @Test
     public void canStoreAbortedTransactionCompactly() {
-        assertThat(STRATEGY.encodeCommitStatusAsValue(537369, TransactionConstants.ABORTED))
+        assertThat(STRATEGY.encodeCommitStatusAsValue(537369, TransactionStatus.aborted()))
                 .hasSize(0);
     }
 
     @Test
     public void encodingIllegalCommitThrows() {
-        assertThatThrownBy(() -> STRATEGY.encodeCommitStatusAsValue(12327758, TransactionStatuses.inProgress()))
+        assertThatThrownBy(() -> STRATEGY.encodeCommitStatusAsValue(12327758, TransactionStatus.inProgress()))
                 .isInstanceOf(SafeIllegalArgumentException.class);
-        assertThatThrownBy(() -> STRATEGY.encodeCommitStatusAsValue(12327758, TransactionStatuses.unknown()))
+        assertThatThrownBy(() -> STRATEGY.encodeCommitStatusAsValue(12327758, TransactionStatus.unknown()))
                 .isInstanceOf(SafeIllegalArgumentException.class);
     }
 
     @Test
     public void canDecodeEmptyByteArrayAsAbortedTransaction() {
         assertThat(STRATEGY.decodeValueAsCommitStatus(1, PtBytes.EMPTY_BYTE_ARRAY))
-                .isEqualTo(TransactionConstants.ABORTED);
+                .isEqualTo(TransactionStatus.aborted());
         assertThat(STRATEGY.decodeValueAsCommitStatus(862846378267L, PtBytes.EMPTY_BYTE_ARRAY))
-                .isEqualTo(TransactionConstants.ABORTED);
+                .isEqualTo(TransactionStatus.aborted());
     }
 
     @Test
     public void canDecodeNullAsInProgressTransaction() {
-        assertThat(STRATEGY.decodeValueAsCommitStatus(1, null)).isEqualTo(TransactionConstants.IN_PROGRESS);
-        assertThat(STRATEGY.decodeValueAsCommitStatus(862846378267L, null)).isEqualTo(TransactionConstants.IN_PROGRESS);
+        assertThat(STRATEGY.decodeValueAsCommitStatus(1, null)).isEqualTo(TransactionStatus.inProgress());
+        assertThat(STRATEGY.decodeValueAsCommitStatus(862846378267L, null)).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Testu}(j (f4c51432c4b246954b0fa6a7bcbfe0fa602255ecj fatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/CommitTimestampLoaderTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCommitTimestampLoaderTest.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X  @@ -35,7 +35,6 @@
 import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
 import com.palantir.atlasdb.transaction.service.AsyncTransactionService;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.lock.v2.LockToken;
@@ -59,7 +58,7 @@ public class CommitTimestampLoaderTest {
     private final KnownConcludedTransactions knownConcludedTransactions = mock(KnownConcludedTransactions.class);
 
     private void setup(long startTs, long commitTs) {
-        TransactionStatus commitStatus = TransactionStatuses.committed(commitTs);
+        TransactionStatus commitStatus = TransactionStatus.committed(commitTs);
         setup(startTs, commitStatus, false);
     }
 
@@ -87,7 +86,7 @@ public void readOnlyDoesNotThrowForUnsweptTTSCell() throws ExecutionException, I
     public void throwIfTTSBeyondReadOnlyForSweptTTSCell() {
         long transactionTs = 27l;
         long startTs = 5l;
-        TransactionStatus commitStatus = TransactionStatuses.unknown();
+        TransactionStatus commitStatus = TransactionStatus.unknown();
 
         setup(startTs, commitStatus, true);
 
@@ -160,7 +159,7 @@ public void doesNotCacheUnknownTransactions() throws ExecutionException, Interru
         long commitTsKnown = startTsKnown + 1;
 
         long startTsUnknown = 7l;
-        TransactionStatus commitUnknown = TransactionStatuses.unknown();
+        TransactionStatus commitUnknown = TransactionStatus.unknown();
 
         CommitTimestampLoader commitTimestampLoader =
                 getCommitTsLoader(Optional.empty(), transactionTs, transactionTs - 1);u}(j (66779380c83f5cb8ac2fd50cd7bc8d6f740296fej eatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractTransactionTest.javaj modifiedj KJj K j KJj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractTransactionTest.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X5  @@ -29,6 +29,7 @@
 import com.google.common.collect.Multimap;
 import com.google.common.collect.Multimaps;
 import com.google.common.collect.Ordering;
+import com.google.common.collect.Streams;
 import com.google.common.io.BaseEncoding;
 import com.google.common.primitives.UnsignedBytes;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -74,6 +75,7 @@
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
+import java.util.Map.Entry;
 import java.util.Random;
 import java.util.Set;
 import java.util.SortedMap;
@@ -688,6 +690,78 @@ public void testRangesTransactionColumnSelection() {
         verifyAllGetRangesImplsRangeSizes(tx, range3, 0);
     }
 
+    @Test
+    public void getRangeRetainsOnlyRelevantColumnsFromLocalWrites() {
+        byte[] row = "row".getBytes(StandardCharsets.UTF_8);
+        byte[] firstColumn = "jakub".getBytes(StandardCharsets.UTF_8);
+        byte[] secondColumn = "james".getBytes(StandardCharsets.UTF_8);
+        byte[] thirdColumn = "jeremy".getBytes(StandardCharsets.UTF_8);
+        byte[] fourthColumn = "jolyon".getBytes(StandardCharsets.UTF_8);
+        Cell firstCell = Cell.create(row, firstColumn);
+        Cell secondCell = Cell.create(row, secondColumn);
+        Cell thirdCell = Cell.create(row, thirdColumn);
+        Cell fourthCell = Cell.create(row, fourthColumn);
+        byte[] value = new byte[1];
+
+        Transaction firstTransaction = startTransaction();
+        firstTransaction.put(TEST_TABLE, ImmutableMap.of(firstCell, value, fourthCell, value));
+        firstTransaction.commit();
+
+        Transaction secondTransaction = startTransaction();
+        secondTransaction.put(TEST_TABLE, ImmutableMap.of(secondCell, value, thirdCell, value));
+
+        BatchingVisitable<RowResult<byte[]>> rowResults = secondTransaction.getRange(
+                TEST_TABLE,
+                RangeRequest.builder()
+                        .retainColumns(ImmutableSet.of(firstColumn, secondColumn))
+                        .build());
+        List<Cell> cellsRead = BatchingVisitables.copyToList(rowResults).stream()
+                .map(RowResult::getCells)
+                .flatMap(Streams::stream)
+                .map(Entry::getKey)
+                .collect(Collectors.toList());
+        assertThat(cellsRead).containsExactly(firstCell, secondCell);
+    }
+
+    @Test
+    public void deprecatedGetRangesRetainsOnlyRelevantColumnsFromLocalWrites() {
+        byte[] row = "row".getBytes(StandardCharsets.UTF_8);
+        byte[] firstColumn = "jack".getBytes(StandardCharsets.UTF_8);
+        byte[] secondColumn = "jill".getBytes(StandardCharsets.UTF_8);
+        byte[] thirdColumn = "joel".getBytes(StandardCharsets.UTF_8);
+        byte[] fourthColumn = "juliet".getBytes(StandardCharsets.UTF_8);
+        Cell firstCell = Cell.create(row, firstColumn);
+        Cell secondCell = Cell.create(row, secondColumn);
+        Cell thirdCell = Cell.create(row, thirdColumn);
+        Cell fourthCell = Cell.create(row, fourthColumn);
+        byte[] value = new byte[1];
+
+        Transaction firstTransaction = startTransaction();
+        firstTransaction.put(TEST_TABLE, ImmutableMap.of(firstCell, value, fourthCell, value));
+        firstTransaction.commit();
+
+        Transaction secondTransaction = startTransaction();
+        secondTransaction.put(TEST_TABLE, ImmutableMap.of(secondCell, value, thirdCell, value));
+
+        Iterable<BatchingVisitable<RowResult<byte[]>>> visitables = secondTransaction.getRanges(
+                TEST_TABLE,
+                ImmutableList.of(
+                        RangeRequest.builder()
+                                .retainColumns(ImmutableSet.of(firstColumn))
+                                .build(),
+                        RangeRequest.builder()
+                                .retainColumns(ImmutableSet.of(secondColumn))
+                                .build()));
+        List<Cell> cellsRead = Streams.stream(visitables)
+                .map(BatchingVisitables::copyToList)
+                .flatMap(List::stream)
+                .map(RowResult::getCells)
+                .flatMap(Streams::stream)
+                .map(Entry::getKey)
+                .collect(Collectors.toList());
+        assertThat(cellsRead).containsExactly(firstCell, secondCell);
+    }
+
     @Test
     public void testRangePaging() {
         int totalPuts = 101;u}(j (065284f020ede2cc6279444cf58d921a7a7e099fj hatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/service/TransactionServicesTest.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionServicesTest.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionServicesTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fservice%2FTransactionServicesTest.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X  @@ -191,7 +191,7 @@ public void canReadInProgressStatusV4Transaction() {
         initializeTimestamps();
         transactionService.markInProgress(startTs);
         assertThat(transactionService.get(startTs)).isNull();
-        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatuses.inProgress());
+        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Test
@@ -216,8 +216,8 @@ public void canCommitV4Transaction() {
 
         TwoPhaseEncodingStrategy strategy = new TwoPhaseEncodingStrategy(V4ProgressEncodingStrategy.INSTANCE);
         Cell cell = strategy.encodeStartTimestampAsCell(startTs);
-        byte[] update = strategy.encodeCommitStatusAsValue(
-                startTs, AtomicValue.staging(TransactionStatuses.committed(commitTs)));
+        byte[] update =
+                strategy.encodeCommitStatusAsValue(startTs, AtomicValue.staging(TransactionStatus.committed(commitTs)));
 
         MultiCheckAndSetRequest actualMcasRequest = verifyMcasInTableAndReturnArgument();
         assertThat(actualMcasRequest.tableRef()).isEqualTo(TransactionConstants.TRANSACTIONS2_TABLE);
@@ -244,14 +244,14 @@ public void canReadCommittedV4Transaction() {
     public void emptyValueReadsAsInProgressInV3() {
         forceInstallV3();
         initializeTimestamps();
-        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatuses.inProgress());
+        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatus.inProgress());
     }
 
     @Test
     public void emptyValueReadsAsUnknownInV4() {
         forceInstallV4();
         initializeTimestamps();
-        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatuses.unknown());
+        assertThat(transactionService.getV2(startTs)).isEqualTo(TransactionStatus.unknown());
     }
 
     private void initializeTimestamps() {u}(j (1f63a5aabe3670ea91b1274d0ae9a9ec9bf2652bj (atlasdb-workload-server-api/build.gradlej modifiedj Kj K j Kj |https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server-api%2Fbuild.gradlej {https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server-api%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fbuild.gradle?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj Xf  @@ -1,10 +1,16 @@
 apply from: "../gradle/shared.gradle"
 
 dependencies {
+    api 'io.vavr:vavr'
+
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'
     implementation 'com.fasterxml.jackson.core:jackson-databind'
+    implementation 'com.palantir.safe-logging:preconditions'
     implementation 'com.google.guava:guava'
+
     compileOnly 'org.immutables:value::annotations'
     annotationProcessor 'org.immutables:value'
+
+    testImplementation 'com.palantir.safe-logging:preconditions-assertj'
 }
\ No newline at end of fileu}(j (9341ade66f468191734830b7f9339ad48f69d5d1j `atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/Invariant.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariant.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariant.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj Xf  @@ -0,0 +1,27 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
+
+/**
+ * Check for an invariant given the provided {@link WorkflowHistory},
+ * and call the provided consumer after checking if any violations are detected.
+ */
+public interface Invariant<Violations> extends BiConsumer<WorkflowHistory, Consumer<Violations>> {}u}(j (60ba075ecd63d073e9efed58b8eff668e319f9a2j fatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/MismatchedValue.javaj addedj K,j K j K,j https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValue.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.logsafe.Preconditions;
+import com.palantir.logsafe.SafeArg;
+import java.util.Optional;
+import org.immutables.value.Value;
+
+@Value.Immutable
+public interface MismatchedValue {
+    @Value.Parameter
+    Optional<Integer> actual();
+
+    @Value.Parameter
+    Optional<Integer> expected();
+
+    @Value.Check
+    default void actualAndExpectedAreNotEqualToEachOther() {
+        Preconditions.checkArgument(
+                !actual().equals(expected()),
+                "Cannot construct MismatchedValues for two values which are equal.",
+                SafeArg.of("actual", actual()),
+                SafeArg.of("expected", expected()));
+    }
+
+    static MismatchedValue of(Optional<Integer> actual, Optional<Integer> expected) {
+        return ImmutableMismatchedValue.of(actual, expected);
+    }
+}u}(j (e052c88622c80f46ac62138a0ae4f3f6f267d5d7j gatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TableAndWorkloadCell.javaj addedj K$j K j K$j https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTableAndWorkloadCell.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTableAndWorkloadCell.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTableAndWorkloadCell.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X  @@ -0,0 +1,36 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import org.immutables.value.Value;
+
+/**
+ * Convenient class which combines table name and cell, for convenient usage in {@link java.util.Map} or other similar interfaces.
+ */
+@Value.Immutable
+public interface TableAndWorkloadCell {
+
+    @Value.Parameter
+    String tableName();
+
+    @Value.Parameter
+    WorkloadCell cell();
+
+    static TableAndWorkloadCell of(String tableName, WorkloadCell workloadCell) {
+        return ImmutableTableAndWorkloadCell.of(tableName, workloadCell);
+    }
+}u}(j (b7286928106b877bf88cb2eb9d1a7c176af42092j batlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ValidationStore.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FValidationStore.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X|  @@ -0,0 +1,30 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.store;
+
+import io.vavr.collection.Map;
+import java.util.Optional;
+
+/**
+ * Store used for replaying witnessed transactions, and ultimately being used as the 'source-of-truth' when validating
+ * our {@link TransactionStore}.
+ */
+public interface ValidationStore {
+
+    /** Return all cells and values for all tables. Value is expected to be empty for deleted cells. */
+    Map<TableAndWorkloadCell, Optional<Integer>> values();
+}u}(j (b5081c6bb7f68583aaaa52e1552a694d90b69641j jatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/invariant/MismatchedValueTest.javaj addedj K2j K j K2j https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FMismatchedValueTest.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X;  @@ -0,0 +1,50 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+
+import com.palantir.logsafe.SafeArg;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class MismatchedValueTest {
+
+    private static final Optional<Integer> VALUE_ONE = Optional.of(15);
+    private static final Optional<Integer> VALUE_TWO = Optional.of(25);
+
+    @Test
+    public void canConstructMismatchedValueFromTwoDifferentValues() {
+        assertThatCode(() -> MismatchedValue.of(VALUE_ONE, VALUE_TWO)).doesNotThrowAnyException();
+    }
+
+    @Test
+    public void actualIsFirstArgumentAndExpectedIsSecondArgument() {
+        MismatchedValue mismatchedValue = MismatchedValue.of(VALUE_ONE, VALUE_TWO);
+        assertThat(mismatchedValue.actual()).isEqualTo(VALUE_ONE);
+        assertThat(mismatchedValue.expected()).isEqualTo(VALUE_TWO);
+    }
+
+    @Test
+    public void throwsWhenActualAndExpectedAreTheSame() {
+        assertThatLoggableExceptionThrownBy(() -> MismatchedValue.of(VALUE_ONE, VALUE_ONE))
+                .hasMessageContaining("Cannot construct MismatchedValues for two values which are equal.")
+                .hasExactlyArgs(SafeArg.of("actual", VALUE_ONE), SafeArg.of("expected", VALUE_ONE));
+    }
+}u      }(j (79750fff00065612bcb1c8c7aea080ef63c1ed89j $atlasdb-workload-server/build.gradlej modifiedj Kj K j Kj xhttps://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server%2Fbuild.gradlej whttps://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X{  @@ -5,16 +5,19 @@ dependencies {
     implementation project(':atlasdb-api')
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-config')
+    implementation project(':atlasdb-impl-shared')
 
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'
     implementation 'com.fasterxml.jackson.core:jackson-databind'
     implementation 'com.palantir.safe-logging:preconditions'
     implementation 'com.palantir.safe-logging:safe-logging'
     implementation 'one.util:streamex'
+    implementation 'io.vavr:vavr'
 
     testImplementation project(':commons-executors')
     testImplementation 'org.mockito:mockito-core'
+    testImplementation 'com.palantir.safe-logging:preconditions-assertj'
     testImplementation('org.jmock:jmock') {
         exclude group: 'org.hamcrest'
     }u}(j (fb9a37a5c70b18ac637240f0acb3338f8f255e8aj iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariant.javaj addedj K6j K j K6j https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X	  @@ -0,0 +1,54 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.ValidationStore;
+import com.palantir.atlasdb.workload.transaction.InMemoryValidationStore;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import io.vavr.Tuple;
+import java.util.Map;
+import java.util.Optional;
+import java.util.function.Consumer;
+
+public enum DurableWritesInvariant implements Invariant<Map<TableAndWorkloadCell, MismatchedValue>> {
+    INSTANCE;
+
+    @Override
+    public void accept(
+            WorkflowHistory workflowHistory, Consumer<Map<TableAndWorkloadCell, MismatchedValue>> invariantListener) {
+        ValidationStore expectedState = InMemoryValidationStore.create(workflowHistory.history());
+        ReadableTransactionStore storeToValidate = workflowHistory.transactionStore();
+        Map<TableAndWorkloadCell, MismatchedValue> cellsThatDoNotMatch = expectedState
+                .values()
+                .map((writtenCell, expectedValue) -> {
+                    Optional<MismatchedValue> maybeMismatchedValue = Optional.empty();
+                    Optional<Integer> actualValue = storeToValidate.get(writtenCell.tableName(), writtenCell.cell());
+
+                    if (!actualValue.equals(expectedValue)) {
+                        maybeMismatchedValue = Optional.of(MismatchedValue.of(actualValue, expectedValue));
+                    }
+
+                    return Tuple.of(writtenCell, maybeMismatchedValue);
+                })
+                .filterValues(Optional::isPresent)
+                .mapValues(Optional::get)
+                .toJavaMap();
+        invariantListener.accept(cellsThatDoNotMatch);
+    }
+}u}(j (f5325ab250288de7492dba17e669a167978c832aj fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X*  @@ -22,7 +22,6 @@
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.transaction.service.TransactionStatus;
-import com.palantir.atlasdb.transaction.service.TransactionStatuses;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
@@ -85,7 +84,7 @@ public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions)
             TransactionStatus status =
                     transactionManager.getTransactionService().getV2(startTimestampReference.get());
 
-            Optional<Long> commitTimestamp = TransactionStatuses.getCommitTimestamp(status);
+            Optional<Long> commitTimestamp = TransactionStatus.getCommitTimestamp(status);
 
             return Optional.of(ImmutableWitnessedTransaction.builder()
                     .startTimestamp(startTimestampReference.get())u}(j (301fd225038dc758fb5af7d2c0a7b9fd364ca74dj latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStore.javaj addedj KTj K j KTj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStore.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X  @@ -0,0 +1,84 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.ValidationStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionActionVisitor;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import io.vavr.collection.HashMap;
+import io.vavr.collection.Map;
+import java.util.List;
+import java.util.Optional;
+
+public final class InMemoryValidationStore implements ValidationStore {
+
+    private final Map<TableAndWorkloadCell, Optional<Integer>> values;
+
+    private InMemoryValidationStore(Map<TableAndWorkloadCell, Optional<Integer>> values) {
+        this.values = values;
+    }
+
+    public static InMemoryValidationStore create(List<WitnessedTransaction> history) {
+        InMemoryTransactionReplayer replayer = new InMemoryTransactionReplayer();
+        history.stream()
+                .map(WitnessedTransaction::actions)
+                .forEach(witnessedTransactionActions ->
+                        witnessedTransactionActions.forEach(action -> action.accept(replayer)));
+        return new InMemoryValidationStore(replayer.getValues());
+    }
+
+    @Override
+    public Map<TableAndWorkloadCell, Optional<Integer>> values() {
+        return values;
+    }
+
+    private static final class InMemoryTransactionReplayer implements WitnessedTransactionActionVisitor<Void> {
+
+        private final StructureHolder<Map<TableAndWorkloadCell, Optional<Integer>>> values =
+                StructureHolder.create(HashMap::empty);
+
+        @Override
+        public Void visit(WitnessedReadTransactionAction readTransactionAction) {
+            return null;
+        }
+
+        @Override
+        public Void visit(WitnessedWriteTransactionAction writeTransactionAction) {
+            TableAndWorkloadCell tableAndWorkloadCell =
+                    TableAndWorkloadCell.of(writeTransactionAction.table(), writeTransactionAction.cell());
+            values.with(map -> map.put(tableAndWorkloadCell, Optional.of(writeTransactionAction.value())));
+            return null;
+        }
+
+        @Override
+        public Void visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
+            TableAndWorkloadCell tableAndWorkloadCell =
+                    TableAndWorkloadCell.of(deleteTransactionAction.table(), deleteTransactionAction.cell());
+            values.with(map -> map.put(tableAndWorkloadCell, Optional.empty()));
+            return null;
+        }
+
+        public Map<TableAndWorkloadCell, Optional<Integer>> getValues() {
+            return values.getSnapshot();
+        }
+    }
+}u}(j (8b7da5872a1e39ff253467d56f6f09dfacbe6bf3j matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantTest.javaj addedj Kqj K j Kqj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X  @@ -0,0 +1,113 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.invariant;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.transaction.api.ConflictHandler;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.concurrent.atomic.AtomicReference;
+import org.junit.Before;
+import org.junit.Test;
+
+public final class DurableWritesInvariantTest {
+
+    private AtlasDbTransactionStore store;
+
+    @Before
+    public void before() {
+        store = AtlasDbTransactionStore.create(
+                TransactionManagers.createInMemory(Set.of()),
+                Map.of(TABLE_REFERENCE, AtlasDbUtils.tableMetadata(ConflictHandler.SERIALIZABLE)));
+    }
+
+    @Test
+    public void cellsExpectedToBeDeletedAreFound() {
+        AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
+        List<WitnessedTransaction> witnessedTransactions = List.of(
+                ImmutableWitnessedTransaction.builder()
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .build(),
+                ImmutableWitnessedTransaction.builder()
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO))
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .build());
+        WorkflowHistory history = ImmutableWorkflowHistory.builder()
+                .history(witnessedTransactions)
+                .transactionStore(store)
+                .build();
+
+        store.readWrite(List.of(WriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_ONE)));
+        DurableWritesInvariant.INSTANCE.accept(history, mismatchingCells::set);
+        assertThat(mismatchingCells.get())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_TWO),
+                        MismatchedValue.of(Optional.of(VALUE_ONE), Optional.empty())));
+    }
+
+    @Test
+    public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
+        AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
+        List<WitnessedTransaction> witnessedTransactions = List.of(
+                ImmutableWitnessedTransaction.builder()
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .build(),
+                ImmutableWitnessedTransaction.builder()
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_TWO))
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .build());
+        WorkflowHistory history = ImmutableWorkflowHistory.builder()
+                .history(witnessedTransactions)
+                .transactionStore(store)
+                .build();
+
+        store.readWrite(List.of(
+                WriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE),
+                WriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_ONE)));
+        DurableWritesInvariant.INSTANCE.accept(history, mismatchingCells::set);
+        assertThat(mismatchingCells.get())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_TWO),
+                        MismatchedValue.of(Optional.of(VALUE_ONE), Optional.of(VALUE_TWO))));
+    }
+}u}(j (d5a1453ae0ff1289f42895870113a7c420e954f3j jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X	  @@ -16,6 +16,14 @@
 
 package com.palantir.atlasdb.workload.store;
 
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.INDEX_REFERENCE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.INDEX_TABLE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_REFERENCE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_THREE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
@@ -25,8 +33,6 @@
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.Namespace;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
@@ -49,21 +55,6 @@
 
 public final class AtlasDbTransactionStoreTest {
 
-    private static final String TABLE = "foo";
-    private static final String INDEX_TABLE = TABLE + "_index";
-    private static final TableReference TABLE_REFERENCE = TableReference.create(Namespace.DEFAULT_NAMESPACE, TABLE);
-    private static final TableReference INDEX_REFERENCE =
-            TableReference.create(TABLE_REFERENCE.getNamespace(), INDEX_TABLE);
-
-    private static final WorkloadCell WORKLOAD_CELL_ONE =
-            ImmutableWorkloadCell.builder().key(50).column(10).build();
-    private static final WorkloadCell WORKLOAD_CELL_TWO =
-            ImmutableWorkloadCell.builder().key(1257).column(521).build();
-    private static final WorkloadCell WORKLOAD_CELL_THREE =
-            ImmutableWorkloadCell.builder().key(567).column(405234).build();
-
-    private static final Integer VALUE_ONE = 100;
-
     private TransactionManager manager;
 
     private AtlasDbTransactionStore store;u}(j (b5bb3abf60ade20d3f002dfac2663a905ccbef1ej patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javaj addedj Kkj K j Kkj https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X  @@ -0,0 +1,107 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.TABLE_WORKLOAD_CELL_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.VALUE_TWO;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_ONE;
+import static com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers.WORKLOAD_CELL_TWO;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.palantir.atlasdb.workload.store.ValidationStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import java.util.List;
+import java.util.Map;
+import java.util.Optional;
+import org.junit.Test;
+
+public final class InMemoryValidationStoreTest {
+
+    @Test
+    public void writeActionsPersistValues() {
+        InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
+                ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .build(),
+                ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_TWO))
+                        .build()));
+        assertThat(store.values().toJavaMap())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        TABLE_WORKLOAD_CELL_ONE,
+                        Optional.of(VALUE_ONE),
+                        TABLE_WORKLOAD_CELL_TWO,
+                        Optional.of(VALUE_TWO)));
+    }
+
+    @Test
+    public void deleteActionsPutsEmptyOptionalForCell() {
+        InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
+                ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_TWO, VALUE_ONE))
+                        .build(),
+                ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))
+                        .build()));
+        assertThat(store.values().toJavaMap())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(
+                        TABLE_WORKLOAD_CELL_ONE, Optional.empty(), TABLE_WORKLOAD_CELL_TWO, Optional.of(VALUE_ONE)));
+    }
+
+    @Test
+    public void writesDeletesAreProcessedInOrder() {
+        InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
+                ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(1)
+                        .commitTimestamp(2)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_ONE))
+                        .build(),
+                ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(3)
+                        .commitTimestamp(4)
+                        .addActions(WitnessedDeleteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE))
+                        .build(),
+                ImmutableWitnessedTransaction.builder()
+                        .startTimestamp(5)
+                        .commitTimestamp(6)
+                        .addActions(WitnessedWriteTransactionAction.of(TABLE, WORKLOAD_CELL_ONE, VALUE_TWO))
+                        .build()));
+        assertThat(store.values().toJavaMap())
+                .containsExactlyInAnyOrderEntriesOf(Map.of(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_TWO)));
+    }
+
+    @Test
+    public void valuesCannotBeModified() {
+        ValidationStore validationStore = InMemoryValidationStore.create(List.of());
+        validationStore.values().put(TABLE_WORKLOAD_CELL_ONE, Optional.of(VALUE_TWO));
+        assertThat(validationStore.values()).isEmpty();
+    }
+}u}(j (adb90ee8ed821a15d9bca1af099c7be1399c2665j hatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WorkloadTestHelpers.javaj addedj K)j K j K)j https://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj https://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWorkloadTestHelpers.java?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj XW  @@ -0,0 +1,41 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction;
+
+import com.palantir.atlasdb.keyvalue.api.Namespace;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+
+public final class WorkloadTestHelpers {
+    public static final String TABLE = "foo";
+    public static final String INDEX_TABLE = TABLE + "_index";
+    public static final TableReference TABLE_REFERENCE = TableReference.create(Namespace.DEFAULT_NAMESPACE, TABLE);
+    public static final TableReference INDEX_REFERENCE =
+            TableReference.create(TABLE_REFERENCE.getNamespace(), INDEX_TABLE);
+    public static final WorkloadCell WORKLOAD_CELL_ONE = ImmutableWorkloadCell.of(50, 10);
+    public static final WorkloadCell WORKLOAD_CELL_TWO = ImmutableWorkloadCell.of(1257, 521);
+    public static final WorkloadCell WORKLOAD_CELL_THREE =
+            ImmutableWorkloadCell.builder().key(567).column(405234).build();
+    public static final Integer VALUE_ONE = 541;
+    public static final Integer VALUE_TWO = 334;
+    public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_ONE =
+            TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_ONE);
+    public static final TableAndWorkloadCell TABLE_WORKLOAD_CELL_TWO =
+            TableAndWorkloadCell.of(TABLE, WORKLOAD_CELL_TWO);
+}u}(j (2b7ebf3f2002680b8eeae307892324077aef87b8j  changelog/0.806.0/pr-6455.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/changelog%2F0.806.0%2Fpr-6455.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/changelog%2F0.806.0%2Fpr-6455.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.806.0%2Fpr-6455.v2.yml?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj @@ -0,0 +1,6 @@
+type: fix
+fix:
+  description: AtlasDB clients can now recover after receiving a dissenting response
+    to a Cassandra Topology check.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6455u}(j (65ffe362769b62fe351cbc6ceac4acd99f1d9599j  changelog/0.808.0/pr-6461.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/changelog%2F0.808.0%2Fpr-6461.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/changelog%2F0.808.0%2Fpr-6461.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.808.0%2Fpr-6461.v2.yml?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj X&  @@ -0,0 +1,7 @@
+type: fix
+fix:
+  description: All versions of `getRange()` and `getRanges()` now correctly no longer
+    include locally written columns that do not match the provided `ColumnSelection`
+    in their `RowResult`s.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6461u}(j (bc64692f16e707b561a8379f3f0058ed44b4c10aj  changelog/0.809.0/pr-6462.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/changelog%2F0.809.0%2Fpr-6462.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/changelog%2F0.809.0%2Fpr-6462.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.809.0%2Fpr-6462.v2.yml?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj @@ -0,0 +1,5 @@
+type: fix
+fix:
+  description: mapAllServersToOrigin accounts for duplicates in map construction
+  links:
+  - https://github.com/palantir/atlasdb/pull/6462u}(j (85ba589854ac34ebd9c8c823c51cf5a3b31cf07dj  changelog/0.811.0/pr-6459.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/a39068f79dc804bafc968783d0d32ab20cfe813d/changelog%2F0.811.0%2Fpr-6459.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/a39068f79dc804bafc968783d0d32ab20cfe813d/changelog%2F0.811.0%2Fpr-6459.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.811.0%2Fpr-6459.v2.yml?ref=a39068f79dc804bafc968783d0d32ab20cfe813dj @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Adds a durable writes invariant check to the workload server
+  links:
+  - https://github.com/palantir/atlasdb/pull/6459ueu(98a92fc50259e01a7397e90cc6db95c0dd1ff1ad}(sha(98a92fc50259e01a7397e90cc6db95c0dd1ff1adnode_idEC_kwDOAjP5fdoAKDk4YTkyZmM1MDI1OWUwMWE3Mzk3ZTkwY2M2ZGI5NWMwZGQxZmYxYWQcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-04-10T17:32:02Zu	committer}(j? David SchlosnaglejA davids@palantir.comjC 2023-04-10T17:32:02Zumessage7Clarify thread safety and Java memory model correctnesstree}(j7 (694f19df790da5b23b898c07bbfa02d6b30f5d26url`https://api.github.com/repos/palantir/atlasdb/git/trees/694f19df790da5b23b898c07bbfa02d6b30f5d26ujO bhttps://api.github.com/repos/palantir/atlasdb/git/commits/98a92fc50259e01a7397e90cc6db95c0dd1ff1ad
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmQ0SBIACgkQR9hsJ74Q
0l8klgf/f0p4QeDbO3LvWKvN9O6zgKS55Zjeab5rnxa//10RyocuciDeNTDiLRCl
ywfA7P7AzLv31vlf/smVDnnrLgnmssIyu8uyKUpqz9lS5N83L96v43TvLZnTKqDZ
B38mfczOu3OATNSx1c4mBHiONqfep3SXERuTJXLPPpfgRwFmzO+7ORNMs3YubGnT
XNy02j6s3bpFkh7zggl2J3sKYmWzlRguVxU7ReAQ59oQyKLoTyH6wqHiJ0Nzr61x
RFxds+tXufWZRvEJZAZV5x8c1bMv2/blVbpjbLnrwpO1vnaiijggJF72CLUnFJhg
IDCqsgVhLH3fQRaW06+aFhPrtfNXPg==
=oeQc
-----END PGP SIGNATURE-----payloadX  tree 694f19df790da5b23b898c07bbfa02d6b30f5d26
parent d7b2b3f87906fa34282b8c925564001a39f16f09
author David Schlosnagle <davids@palantir.com> 1681147922 -0400
committer David Schlosnagle <davids@palantir.com> 1681147922 -0400

Clarify thread safety and Java memory model correctness
uujO ^https://api.github.com/repos/palantir/atlasdb/commits/98a92fc50259e01a7397e90cc6db95c0dd1ff1adhtml_urlShttps://github.com/palantir/atlasdb/commit/98a92fc50259e01a7397e90cc6db95c0dd1ff1adcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/98a92fc50259e01a7397e90cc6db95c0dd1ff1ad/commentsj= }(loginschlosnaidMBj9 MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jO %https://api.github.com/users/schlosnaj] https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujE }(jb schlosnajd MBj9 MDQ6VXNlcjU0NTk0jf 1https://avatars.githubusercontent.com/u/54594?v=4jh h5jO %https://api.github.com/users/schlosnaj] https://github.com/schlosnajk /https://api.github.com/users/schlosna/followersjm <https://api.github.com/users/schlosna/following{/other_user}jo 5https://api.github.com/users/schlosna/gists{/gist_id}jq <https://api.github.com/users/schlosna/starred{/owner}{/repo}js 3https://api.github.com/users/schlosna/subscriptionsju *https://api.github.com/users/schlosna/orgsjw +https://api.github.com/users/schlosna/reposjy 6https://api.github.com/users/schlosna/events{/privacy}j{ 5https://api.github.com/users/schlosna/received_eventsj} Userj uparents]}(j7 (d7b2b3f87906fa34282b8c925564001a39f16f09jO ^https://api.github.com/repos/palantir/atlasdb/commits/d7b2b3f87906fa34282b8c925564001a39f16f09j] Shttps://github.com/palantir/atlasdb/commit/d7b2b3f87906fa34282b8c925564001a39f16f09uastats}(totalK1	additionsK	deletionsKufiles](}(j7 (23f1737236ae98f88c6c104cabda5b42e978a2adfilenameWtimestamp-impl/src/main/java/com/palantir/timestamp/PersistentTimestampServiceImpl.javastatusmodifiedj K
j K
changesKblob_urlhttps://github.com/palantir/atlasdb/blob/98a92fc50259e01a7397e90cc6db95c0dd1ff1ad/timestamp-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentTimestampServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/98a92fc50259e01a7397e90cc6db95c0dd1ff1ad/timestamp-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentTimestampServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/timestamp-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentTimestampServiceImpl.java?ref=98a92fc50259e01a7397e90cc6db95c0dd1ff1adpatchX  @@ -16,10 +16,11 @@
 package com.palantir.timestamp;
 
 import com.google.common.annotations.VisibleForTesting;
-import com.google.common.base.Preconditions;
 import com.palantir.async.initializer.AsyncInitializer;
 import com.palantir.atlasdb.AtlasDbConstants;
+import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import javax.annotation.concurrent.ThreadSafe;
@@ -48,8 +49,8 @@ protected String getInitializingClassName() {
     private static final SafeLogger log = SafeLoggerFactory.get(PersistentTimestampServiceImpl.class);
     private static final int MAX_TIMESTAMPS_PER_REQUEST = 10_000;
 
-    private ErrorCheckingTimestampBoundStore store;
-    private PersistentTimestamp timestamp;
+    private final ErrorCheckingTimestampBoundStore store;
+    private volatile PersistentTimestamp timestamp;
     private final InitializingWrapper wrapper = new InitializingWrapper();
 
     public static PersistentTimestampService create(TimestampBoundStore store) {
@@ -71,15 +72,16 @@ public static PersistentTimestampService create(ErrorCheckingTimestampBoundStore
     }
 
     @VisibleForTesting
-    PersistentTimestampServiceImpl(PersistentTimestamp timestamp) {
+    PersistentTimestampServiceImpl(ErrorCheckingTimestampBoundStore store, PersistentTimestamp timestamp) {
+        this(store);
         this.timestamp = timestamp;
     }
 
     private PersistentTimestampServiceImpl(ErrorCheckingTimestampBoundStore store) {
         this.store = store;
     }
 
-    private void tryInitialize() {
+    private synchronized void tryInitialize() {
         PersistentUpperLimit upperLimit = new PersistentUpperLimit(store);
         long latestTimestamp = upperLimit.get();
         timestamp = new PersistentTimestamp(upperLimit, latestTimestamp);
@@ -107,7 +109,7 @@ public TimestampRange getFreshTimestamps(int numTimestampsRequested) {
     @Override
     public void fastForwardTimestamp(long newTimestamp) {
         checkFastForwardRequest(newTimestamp);
-        log.info("Fast-forwarding the timestamp service to timestamp {}.", SafeArg.of("timestamp", newTimestamp));
+        log.info("Fast-forwarding the timestamp service to timestamp.", SafeArg.of("timestamp", newTimestamp));
         timestamp.increaseTo(newTimestamp);
     }
 
@@ -119,16 +121,17 @@ public long getUpperLimitTimestampToHandOutInclusive() {
     private void checkFastForwardRequest(long newTimestamp) {
         Preconditions.checkArgument(
                 newTimestamp != TimestampManagementService.SENTINEL_TIMESTAMP,
-                "Cannot fast forward to the sentinel timestamp %s. If you accessed this timestamp service remotely"
+                "Cannot fast forward to the sentinel timestamp. If you accessed this timestamp service remotely"
                         + " this is likely due to specifying an incorrect query parameter.",
-                newTimestamp);
+                SafeArg.of("newTimestamp", newTimestamp));
     }
 
     private static int cleanUpTimestampRequest(int numTimestampsRequested) {
         if (numTimestampsRequested <= 0) {
             // explicitly not using Preconditions to optimize hot success path and avoid allocations
-            throw new IllegalArgumentException(String.format(
-                    "Number of timestamps requested must be greater than zero, was %s", numTimestampsRequested));
+            throw new SafeIllegalArgumentException(
+                    "Number of timestamps requested must be greater than zero",
+                    SafeArg.of("numTimestampsRequested", numTimestampsRequested));
         }
         return Math.min(numTimestampsRequested, MAX_TIMESTAMPS_PER_REQUEST);
     }u}(j7 (6f22d0f7a3106ab3e70af6926b419ad08dd5a895j Mtimestamp-impl/src/main/java/com/palantir/timestamp/PersistentUpperLimit.javaj modifiedj Kj K	j Kj https://github.com/palantir/atlasdb/blob/98a92fc50259e01a7397e90cc6db95c0dd1ff1ad/timestamp-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentUpperLimit.javaj https://github.com/palantir/atlasdb/raw/98a92fc50259e01a7397e90cc6db95c0dd1ff1ad/timestamp-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentUpperLimit.javaj https://api.github.com/repos/palantir/atlasdb/contents/timestamp-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentUpperLimit.java?ref=98a92fc50259e01a7397e90cc6db95c0dd1ff1adj X/  @@ -16,6 +16,7 @@
 package com.palantir.timestamp;
 
 import com.google.common.annotations.VisibleForTesting;
+import javax.annotation.concurrent.GuardedBy;
 
 public class PersistentUpperLimit {
 
@@ -27,6 +28,8 @@ public class PersistentUpperLimit {
     static final long BUFFER = 1_000_000;
 
     private volatile long currentLimit;
+
+    @GuardedBy("this")
     private final TimestampBoundStore store;
 
     public PersistentUpperLimit(TimestampBoundStore boundStore) {
@@ -39,9 +42,12 @@ public long get() {
     }
 
     public void increaseToAtLeast(long newLimit) {
-        if (newLimit > currentLimit) {
-            updateLimit(newLimit);
+        if (currentLimit >= newLimit) {
+            return;
         }
+
+        // double check to avoid contention in cases where limit has been concurrently increased
+        updateLimit(newLimit);
     }
 
     private synchronized void updateLimit(long newLimit) {
@@ -50,13 +56,9 @@ private synchronized void updateLimit(long newLimit) {
         }
 
         long newLimitWithBuffer = Math.addExact(newLimit, BUFFER);
-        storeUpperLimit(newLimitWithBuffer);
+        DebugLogger.willStoreNewUpperLimit(newLimitWithBuffer);
+        store.storeUpperLimit(newLimitWithBuffer);
+        DebugLogger.didStoreNewUpperLimit(newLimitWithBuffer);
         currentLimit = newLimitWithBuffer;
     }
-
-    private void storeUpperLimit(long upperLimit) {
-        DebugLogger.willStoreNewUpperLimit(upperLimit);
-        store.storeUpperLimit(upperLimit);
-        DebugLogger.didStoreNewUpperLimit(upperLimit);
-    }
 }u}(j7 (595c7497b43c38276cf894b49fdb3577f1d4a287j ^timestamp-impl/src/test/java/com/palantir/timestamp/PersistentTimestampServiceMockingTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/98a92fc50259e01a7397e90cc6db95c0dd1ff1ad/timestamp-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentTimestampServiceMockingTest.javaj https://github.com/palantir/atlasdb/raw/98a92fc50259e01a7397e90cc6db95c0dd1ff1ad/timestamp-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentTimestampServiceMockingTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timestamp-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Ftimestamp%2FPersistentTimestampServiceMockingTest.java?ref=98a92fc50259e01a7397e90cc6db95c0dd1ff1adj X  @@ -37,8 +37,10 @@ public class PersistentTimestampServiceMockingTest {
 
     private static final TimestampRange RANGE = TimestampRange.createInclusiveRange(100, 200);
 
-    private PersistentTimestamp timestamp = mock(PersistentTimestamp.class);
-    private PersistentTimestampServiceImpl timestampService = new PersistentTimestampServiceImpl(timestamp);
+    private final PersistentTimestamp timestamp = mock(PersistentTimestamp.class);
+    private final ErrorCheckingTimestampBoundStore store = mock(ErrorCheckingTimestampBoundStore.class);
+    private final PersistentTimestampServiceImpl timestampService =
+            new PersistentTimestampServiceImpl(store, timestamp);
 
     @Test
     public void shouldDelegateFastForwardingToAvailableTimestamps() {ueu(bb6fa9bcc43a766cfe6efd2ab223f991dcc2766a}(sha(bb6fa9bcc43a766cfe6efd2ab223f991dcc2766anode_idEC_kwDOAjP5fdoAKGJiNmZhOWJjYzQzYTc2NmNmZTZlZmQyYWIyMjNmOTkxZGNjMjc2NmEcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-12T08:10:40Zu	committer}(jƊ 	Tom PapkejȊ tpapke@palantir.comjʊ 2023-06-13T14:59:43ZumessageAddress commentstree}(j (b65e2f774855f3a4427ffe8363b0c55e7396e243url`https://api.github.com/repos/palantir/atlasdb/git/trees/b65e2f774855f3a4427ffe8363b0c55e7396e243uj֊ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bb6fa9bcc43a766cfe6efd2ab223f991dcc2766a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSIhF8ACgkQmF9s0kaF
Iw1U1AgAv28I2tYJTXJfQeCrfPs6u/iG26b+86SwFBOYuYnG1A6HtpzWJF1zmXgO
qwLOJLyj/cybhjmbgOraWOMs0ovRQn2jmv2MNFxBmG8SsoNwnRSMyh8KMy879ejK
ZgoU9vF0n9YLpQPIBeiPxZqkP56vGyI7HZFdSoZr0gaSkBEAP7RleJ2ZXU6YF4d3
CdU3vTgjtDHki40wceDjX2NtvenHB5eyrH/kSvI5hM4DMl2Z2z8rT47DbceA2T+9
s3yQtNzNm5CVVF8jfk3LslrPHrad+c6zbXAvNvrRpMbp542oeOLwoM0Zj62G8Tbu
vhfU2IMV8jIO1bx1SXYr/2n0Tm1MJQ==
=fTx2
-----END PGP SIGNATURE-----payloadtree b65e2f774855f3a4427ffe8363b0c55e7396e243
parent ce1772ace6f3a1469283ee7661653cf9284f49cf
author Tom Papke <tpapke@palantir.com> 1686557440 +0100
committer Tom Papke <tpapke@palantir.com> 1686668383 +0100

Address comments
uuj֊ ^https://api.github.com/repos/palantir/atlasdb/commits/bb6fa9bcc43a766cfe6efd2ab223f991dcc2766ahtml_urlShttps://github.com/palantir/atlasdb/commit/bb6fa9bcc43a766cfe6efd2ab223f991dcc2766acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bb6fa9bcc43a766cfe6efd2ab223f991dcc2766a/commentsjĊ }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j֊ &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj̊ }(j 	Toemmschej Jboj MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j֊ &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj  7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(j (ce1772ace6f3a1469283ee7661653cf9284f49cfj֊ ^https://api.github.com/repos/palantir/atlasdb/commits/ce1772ace6f3a1469283ee7661653cf9284f49cfj Shttps://github.com/palantir/atlasdb/commit/ce1772ace6f3a1469283ee7661653cf9284f49cfuastats}(totalKS	additionsK.	deletionsK%ufiles](}(j (b5203c0d88d3c4db097d0059641e82962d5694b4filenameClock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javastatusmodifiedj  Kj! KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/bb6fa9bcc43a766cfe6efd2ab223f991dcc2766a/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/bb6fa9bcc43a766cfe6efd2ab223f991dcc2766a/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=bb6fa9bcc43a766cfe6efd2ab223f991dcc2766apatchXU  @@ -45,7 +45,6 @@
 import com.palantir.lock.BlockingMode;
 import com.palantir.lock.CloseableLockService;
 import com.palantir.lock.CloseableRemoteLockService;
-import com.palantir.lock.DebugThreadInfoConfiguration;
 import com.palantir.lock.ExpiringToken;
 import com.palantir.lock.HeldLocksGrant;
 import com.palantir.lock.HeldLocksToken;
@@ -184,7 +183,8 @@ public String toString() {
     private final SimpleTimeDuration stuckTransactionTimeout;
     private final AtomicBoolean isShutDown = new AtomicBoolean(false);
 
-    private final DebugThreadInfoConfiguration threadInfoConfiguration;
+    /** Configurable background task that periodically collects snapshots about the current lock state */
+    private final LockThreadInfoSnapshotManager threadInfoSnapshotManager;
 
     private final LockClientIndices clientIndices = new LockClientIndices();
 
@@ -259,7 +259,9 @@ private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable
         this.maxNormalLockAge = SimpleTimeDuration.of(options.getMaxNormalLockAge());
         this.stuckTransactionTimeout = SimpleTimeDuration.of(options.getStuckTransactionTimeout());
         this.slowLogTriggerMillis = options.slowLogTriggerMillis();
-        this.threadInfoConfiguration = options.threadInfoConfiguration();
+        this.threadInfoSnapshotManager =
+                new LockThreadInfoSnapshotManager(options.threadInfoConfiguration(), () -> heldLocksTokenMap);
+        threadInfoSnapshotManager.start();
     }
 
     private HeldLocksToken createHeldLocksToken(
@@ -1231,9 +1233,8 @@ public long currentTimeMillis() {
         return System.currentTimeMillis();
     }
 
-    /** Warning: Depending on the configuration, this will start up an asynchronous background task */
-    public LockThreadInfoSnapshotManager createSnapshotManager() {
-        return new LockThreadInfoSnapshotManager(this.threadInfoConfiguration, () -> this.heldLocksTokenMap);
+    public LockThreadInfoSnapshotManager getSnapshotManager() {
+        return this.threadInfoSnapshotManager;
     }
 
     private static String updateThreadName(LockRequest request) {u}(j (3abbb6996fe9f80f2471313760e9ef242f2d369bj& Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javaj( modifiedj  Kj! K	j* Kj+ https://github.com/palantir/atlasdb/blob/bb6fa9bcc43a766cfe6efd2ab223f991dcc2766a/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj- https://github.com/palantir/atlasdb/raw/bb6fa9bcc43a766cfe6efd2ab223f991dcc2766a/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=bb6fa9bcc43a766cfe6efd2ab223f991dcc2766aj1 X  @@ -34,7 +34,7 @@
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 
-public class LockThreadInfoSnapshotManager {
+public class LockThreadInfoSnapshotManager implements AutoCloseable {
     private DebugThreadInfoConfiguration threadInfoConfiguration;
 
     private Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
@@ -49,21 +49,28 @@ public LockThreadInfoSnapshotManager(
         this.threadInfoConfiguration = threadInfoConfiguration;
         this.tokenMapSupplier = mapSupplier;
         this.lastKnownThreadInfoSnapshot = ImmutableMap.of();
+    }
 
+    public void start() {
+        scheduleSnapshotting();
+    }
+
+    private void run() {
+        takeSnapshot();
+
+        // schedule next snapshot so this can be enabled/disabled at runtime
         scheduleSnapshotting();
     }
 
     private void scheduleSnapshotting() {
         if (threadInfoConfiguration.recordThreadInfo()) {
             scheduledExecutorService.schedule(
-                    this::takeSnapshot,
-                    threadInfoConfiguration.threadInfoSnapshotIntervalMillis(),
-                    TimeUnit.MILLISECONDS);
+                    this::run, threadInfoConfiguration.threadInfoSnapshotIntervalMillis(), TimeUnit.MILLISECONDS);
         }
     }
 
     /**
-     * Returns a consistent snapshot of tread information restricted to the given lock descriptors
+     * Returns a consistent snapshot of thread information restricted to the given lock descriptors
      */
     public Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot(
             Set<LockDescriptor> lockDescriptors) {
@@ -77,17 +84,19 @@ public Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot(
     void takeSnapshot() {
         this.lastKnownThreadInfoSnapshot = tokenMapSupplier.get().keySet().stream()
                 .flatMap(token -> {
-                    LockClientAndThread threadAwareLockClient =
+                    LockClientAndThread clientThread =
                             token.getClient() == null || Strings.isNullOrEmpty(token.getRequestingThread())
                                     ? LockClientAndThread.UNKNOWN
                                     : LockClientAndThread.of(token.getClient(), token.getRequestingThread());
                     return token.getLockDescriptors().stream()
-                            .map(lockDescriptor -> Map.entry(lockDescriptor, threadAwareLockClient));
+                            .map(lockDescriptor -> Map.entry(lockDescriptor, clientThread));
                 })
                 // Although a lock can be held by multiple clients/threads, we only remember one to save space
                 .collect(Collectors.toMap(Entry::getKey, Entry::getValue, (existing, replacement) -> existing));
+    }
 
-        // schedule next snapshot so this can be enabled/disabled at runtime
-        scheduleSnapshotting();
+    @Override
+    public void close() {
+        scheduledExecutorService.shutdown();
     }
 }u}(j (187f20ba80d94397414b4559eb961a51aad1ec30j& Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javaj( renamedj  Kj! Kj* K+j+ https://github.com/palantir/atlasdb/blob/bb6fa9bcc43a766cfe6efd2ab223f991dcc2766a/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj- https://github.com/palantir/atlasdb/raw/bb6fa9bcc43a766cfe6efd2ab223f991dcc2766a/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj/ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=bb6fa9bcc43a766cfe6efd2ab223f991dcc2766aj1 X  @@ -35,28 +35,17 @@
 import java.util.Map;
 import java.util.Map.Entry;
 import java.util.Set;
-import java.util.concurrent.CyclicBarrier;
+import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Future;
 import java.util.concurrent.TimeUnit;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
 import org.junit.Test;
 
-public class ThreadAwareLockServiceImplTest {
-
-    // Disable background snapshotting, invoke explicitly instead
-    private final LockServiceImpl lockService = LockServiceImpl.create(LockServerOptions.builder()
-            .isStandaloneServer(false)
-            .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
-                    .recordThreadInfo(false)
-                    .build())
-            .build());
-
-    private final LockThreadInfoSnapshotManager snapshotRunner = lockService.createSnapshotManager();
-
+public class ThreadInfoLockServiceImplTest {
     private final ExecutorService executor =
-            PTExecutors.newCachedThreadPool(ThreadAwareLockServiceImplTest.class.getName());
+            PTExecutors.newCachedThreadPool(ThreadInfoLockServiceImplTest.class.getName());
 
     private static final LockDescriptor TEST_LOCK_1 = StringLockDescriptor.of("lock-1");
     private static final LockDescriptor TEST_LOCK_2 = StringLockDescriptor.of("lock-2");
@@ -71,6 +60,16 @@ public class ThreadAwareLockServiceImplTest {
             .withCreatingThreadName(TEST_THREAD_1)
             .build();
 
+    // Disable background snapshotting, invoke explicitly instead
+    private final LockServiceImpl lockService = LockServiceImpl.create(LockServerOptions.builder()
+            .isStandaloneServer(false)
+            .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
+                    .recordThreadInfo(false)
+                    .build())
+            .build());
+
+    private final LockThreadInfoSnapshotManager snapshotRunner = lockService.getSnapshotManager();
+
     @Test
     public void initialThreadInfoIsEmpty() {
         snapshotRunner.takeSnapshot();
@@ -90,8 +89,8 @@ public void recordsThreadInfo_singleLock() throws InterruptedException {
 
     @Test
     public void recordsThreadInfo_multipleUniqueLocks_fromDifferentThreads() throws InterruptedException {
-        final int numThreads = 10;
-        final int numLocksPerThread = 10;
+        int numThreads = 10;
+        int numLocksPerThread = 10;
 
         List<String> threadNames =
                 IntStream.range(0, numThreads).mapToObj(i -> "test-thread-" + i).collect(Collectors.toList());
@@ -202,7 +201,7 @@ public void recordsUnlockAndFreezeForNonAnonymousClient() throws InterruptedExce
 
     @Test
     public void recordsCorrectStateAfterMultipleOperations() throws Exception {
-        final CyclicBarrier barrier = new CyclicBarrier(2);
+        CountDownLatch latch = new CountDownLatch(1);
 
         // T1 locks 1 exclusively and locks 2 in shared mode
         LockResponse response1 = lockService.lockWithFullLockResponse(
@@ -232,11 +231,12 @@ public void recordsCorrectStateAfterMultipleOperations() throws Exception {
                             .lockAsManyAsPossible()
                             .withCreatingThreadName(TEST_THREAD_3)
                             .build());
-            barrier.await();
+            latch.countDown();
             return response;
         });
         lockService.unlock(response1.getToken());
-        barrier.await();
+        latch.await();
+
         snapshotRunner.takeSnapshot();
 
         // T1 should hold nothing, T2 holds 3 in exclusive mode, T3 holds 1 in exclusive and 2 in shared mode
@@ -279,15 +279,14 @@ public void refreshDoesNotChangeSnapshot() throws InterruptedException {
 
     @Test(timeout = 500L)
     public void backgroundSnapshotRunnerWorks() throws InterruptedException {
-        final LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
+        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
                 .isStandaloneServer(false)
                 .threadInfoConfiguration(ImmutableDebugThreadInfoConfiguration.builder()
                         .recordThreadInfo(true)
                         .threadInfoSnapshotIntervalMillis(10L)
                         .build())
                 .build());
-        LockThreadInfoSnapshotManager backgroundSnapshotRunner =
-                lockServiceWithBackgroundRunner.createSnapshotManager();
+        LockThreadInfoSnapshotManager backgroundSnapshotRunner = lockServiceWithBackgroundRunner.getSnapshotManager();
 
         LockResponse response = lockServiceWithBackgroundRunner.lockWithFullLockResponse(
                 LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);previous_filenameRlock-impl/src/test/java/com/palantir/lock/impl/ThreadAwareLockServiceImplTest.javaueu(fa8e98b17671d5b05d880ca5437ae7e932677321}(sha(fa8e98b17671d5b05d880ca5437ae7e932677321node_idEC_kwDOAjP5fdoAKGZhOGU5OGIxNzY3MWQ1YjA1ZDg4MGNhNTQzN2FlN2U5MzI2NzczMjEcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-03-31T01:38:12Zu	committer}(jO David SchlosnaglejQ davids@palantir.comjS 2023-03-31T01:38:12ZumessageBump tritium 0.64.0tree}(jG (e077023c4d749bb33649a8be5823837dffdf5b73url`https://api.github.com/repos/palantir/atlasdb/git/trees/e077023c4d749bb33649a8be5823837dffdf5b73uj_ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fa8e98b17671d5b05d880ca5437ae7e932677321
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmQmOYUACgkQR9hsJ74Q
0l/WzwgAw348MDNPh/5JNQ06zezpiHvhVS1lOBBP4X84oP/M+b6XmbXbeR4Ns+Ew
mfTGFVXUWVDHuvXBNa5RKK7Ci3PtQsxeYsFelZhTnh0u9L0cMpnO7zoq6G69n4oi
vJqqtSunUrWGUiRBlSbp3eDCL3TIAU+ZC1yuq6EyLiVBX6w/9guR6oyNNsm3PjOE
JcV/3fw8CBNpmbe6lGc96xuT5S0MWEpsmVbwgzO3FpGGGFfDRrHngZ9z4t3WQyor
hRBXAHVtLrMjRbA3gCgJu5fWVRWWPNaFbqkF/mwMuEx/BPQ5/6spxCtoQPFEm0z1
+yF+LK0hs6nz5jX5KhvEjgFrkTsLQg==
=ATJu
-----END PGP SIGNATURE-----payloadtree e077023c4d749bb33649a8be5823837dffdf5b73
parent 44a6930443bb70b40ca00f76d282a73d2681dc7a
author David Schlosnagle <davids@palantir.com> 1680226692 -0400
committer David Schlosnagle <davids@palantir.com> 1680226692 -0400

Bump tritium 0.64.0
uuj_ ^https://api.github.com/repos/palantir/atlasdb/commits/fa8e98b17671d5b05d880ca5437ae7e932677321html_urlShttps://github.com/palantir/atlasdb/commit/fa8e98b17671d5b05d880ca5437ae7e932677321comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fa8e98b17671d5b05d880ca5437ae7e932677321/commentsjM }(loginschlosnaidMBjI MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j_ %https://api.github.com/users/schlosnajm https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujU }(jr schlosnajt MBjI MDQ6VXNlcjU0NTk0jv 1https://avatars.githubusercontent.com/u/54594?v=4jx h5j_ %https://api.github.com/users/schlosnajm https://github.com/schlosnaj{ /https://api.github.com/users/schlosna/followersj} <https://api.github.com/users/schlosna/following{/other_user}      j 5https://api.github.com/users/schlosna/gists{/gist_id}j <https://api.github.com/users/schlosna/starred{/owner}{/repo}j 3https://api.github.com/users/schlosna/subscriptionsj *https://api.github.com/users/schlosna/orgsj +https://api.github.com/users/schlosna/reposj 6https://api.github.com/users/schlosna/events{/privacy}j 5https://api.github.com/users/schlosna/received_eventsj Userj uparents]}(jG (44a6930443bb70b40ca00f76d282a73d2681dc7aj_ ^https://api.github.com/repos/palantir/atlasdb/commits/44a6930443bb70b40ca00f76d282a73d2681dc7ajm Shttps://github.com/palantir/atlasdb/commit/44a6930443bb70b40ca00f76d282a73d2681dc7auastats}(totalK	additionsK@	deletionsK@ufiles](}(jG (18a47ebffed268bb97b128317fa3b4d3cd6b7e83filename
versions.lockstatusmodifiedj K?j K?changesK~blob_url_https://github.com/palantir/atlasdb/blob/fa8e98b17671d5b05d880ca5437ae7e932677321/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/fa8e98b17671d5b05d880ca5437ae7e932677321/versions.lockcontents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=fa8e98b17671d5b05d880ca5437ae7e932677321patchX7?  @@ -8,24 +8,24 @@ com.boundary:high-scale-lib:1.0.6 (2 constraints: 9d14d4a0)
 com.clearspring.analytics:stream:2.5.2 (1 constraints: 970f7788)
 com.datastax.cassandra:cassandra-driver-core:3.8.0 (1 constraints: 0d051236)
 com.fasterxml:classmate:1.5.1 (3 constraints: 8530e55a)
-com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c281d1b7)
-com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: b9b52971)
-com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 68ba1e86)
-com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e233de00)
-com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7f1c9ca4)
+com.fasterxml.jackson.core:jackson-annotations:2.14.2 (24 constraints: c28159b8)
+com.fasterxml.jackson.core:jackson-core:2.14.2 (22 constraints: bab50372)
+com.fasterxml.jackson.core:jackson-databind:2.14.2 (37 constraints: 01ba3a29)
+com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.14.2 (2 constraints: e133df00)
+com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.14.2 (1 constraints: 7e1c9da4)
 com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.2 (4 constraints: 2244332b)
-com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 343f74b0)
-com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6c308f5e)
-com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 322bf5af)
-com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6c308f5e)
+com.fasterxml.jackson.datatype:jackson-datatype-guava:2.14.2 (4 constraints: 333f21b0)
+com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.2 (3 constraints: 6b30665e)
+com.fasterxml.jackson.datatype:jackson-datatype-joda:2.14.2 (2 constraints: 312bccaf)
+com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2 (3 constraints: 6b30665e)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.14.2 (2 constraints: db2e8469)
-com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 411979bb)
+com.fasterxml.jackson.jaxrs:jackson-jaxrs-cbor-provider:2.14.2 (1 constraints: 40197abb)
 com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.14.2 (2 constraints: 251d9309)
-com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9b1c97a6)
+com.fasterxml.jackson.module:jackson-module-afterburner:2.14.2 (1 constraints: 9a1c98a6)
 com.fasterxml.jackson.module:jackson-module-blackbird:2.14.2 (1 constraints: b40e625e)
 com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.14.2 (2 constraints: db2e8469)
 com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.2 (1 constraints: b40e625e)
-com.github.ben-manes.caffeine:caffeine:3.1.1 (13 constraints: 0dce07f2)
+com.github.ben-manes.caffeine:caffeine:3.1.5 (13 constraints: 17cea3fd)
 com.github.jbellis:jamm:0.3.0 (1 constraints: 910f6588)
 com.github.jnr:jffi:1.2.16 (1 constraints: 200ae4bc)
 com.github.jnr:jnr-constants:0.9.9 (1 constraints: f60a26ce)
@@ -45,11 +45,11 @@ com.google.dagger:dagger-compiler:2.44.1 (1 constraints: 3d05483b)
 com.google.dagger:dagger-producers:2.44.1 (2 constraints: f21aef91)
 com.google.dagger:dagger-spi:2.44.1 (1 constraints: 810e365d)
 com.google.devtools.ksp:symbol-processing-api:1.7.0-1.0.6 (3 constraints: 50255029)
-com.google.errorprone:error_prone_annotations:2.10.0 (23 constraints: 8f781fe2)
+com.google.errorprone:error_prone_annotations:2.10.0 (23 constraints: a3788bf6)
 com.google.errorprone:javac-shaded:9-dev-r4023-3 (1 constraints: 151671fc)
 com.google.googlejavaformat:google-java-format:1.5 (1 constraints: ee0d4132)
 com.google.guava:failureaccess:1.0.1 (4 constraints: 563320fd)
-com.google.guava:guava:31.1-jre (48 constraints: ad379dcf)
+com.google.guava:guava:31.1-jre (48 constraints: a337bcb3)
 com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava (1 constraints: bd17c918)
 com.google.j2objc:j2objc-annotations:1.3 (1 constraints: b809eda0)
 com.google.protobuf:protobuf-java:3.21.9 (1 constraints: 4105453b)
@@ -67,28 +67,28 @@ com.palantir.cassandra:cassandra-thrift:2.2.18-1.108.0 (2 constraints: 0f180ff6)
 com.palantir.common:streams:2.1.0 (1 constraints: 0505f835)
 com.palantir.config.crypto:encrypted-config-value:5.1.0 (2 constraints: 881c8ab8)
 com.palantir.config.crypto:encrypted-config-value-module:5.1.0 (1 constraints: 08050736)
-com.palantir.conjure.java:conjure-lib:6.66.0 (5 constraints: a554a26e)
-com.palantir.conjure.java:conjure-undertow-annotations:6.66.0 (1 constraints: 44056d3b)
-com.palantir.conjure.java:conjure-undertow-lib:6.66.0 (2 constraints: 891c6fb0)
-com.palantir.conjure.java.api:errors:2.29.0 (6 constraints: 5169d179)
-com.palantir.conjure.java.api:service-config:2.29.0 (5 constraints: 824d29cf)
-com.palantir.conjure.java.api:ssl-config:2.29.0 (3 constraints: ea2af7a5)
-com.palantir.conjure.java.runtime:client-config:7.39.0 (6 constraints: cc6b4639)
-com.palantir.conjure.java.runtime:conjure-java-annotations:7.39.0 (1 constraints: c918959e)
-com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.39.0 (2 constraints: cd21177b)
-com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.39.0 (6 constraints: 4a6ed294)
-com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.39.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.39.0 (1 constraints: 4505703b)
-com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.39.0 (1 constraints: c918959e)
-com.palantir.conjure.java.runtime:keystores:7.39.0 (3 constraints: 262aec60)
-com.palantir.conjure.java.runtime:refresh-utils:7.39.0 (2 constraints: 0d1e7745)
-com.palantir.dialogue:dialogue-apache-hc5-client:3.71.0 (2 constraints: 7c294702)
-com.palantir.dialogue:dialogue-blocking-channels:3.71.0 (2 constraints: d523fdb2)
-com.palantir.dialogue:dialogue-clients:3.71.0 (1 constraints: 3d05503b)
-com.palantir.dialogue:dialogue-core:3.71.0 (3 constraints: 7a3de7e1)
-com.palantir.dialogue:dialogue-futures:3.71.0 (3 constraints: c833dcbc)
-com.palantir.dialogue:dialogue-serde:3.71.0 (3 constraints: b82e21a2)
-com.palantir.dialogue:dialogue-target:3.71.0 (7 constraints: 7d76f253)
+com.palantir.conjure.java:conjure-lib:6.68.0 (5 constraints: ab549471)
+com.palantir.conjure.java:conjure-undertow-annotations:6.68.0 (1 constraints: 44056d3b)
+com.palantir.conjure.java:conjure-undertow-lib:6.68.0 (2 constraints: 8b1c75b0)
+com.palantir.conjure.java.api:errors:2.34.0 (6 constraints: 41692d74)
+com.palantir.conjure.java.api:service-config:2.34.0 (5 constraints: 724d79ca)
+com.palantir.conjure.java.api:ssl-config:2.34.0 (3 constraints: e22a0da5)
+com.palantir.conjure.java.runtime:client-config:7.40.0 (6 constraints: bc6b702d)
+com.palantir.conjure.java.runtime:conjure-java-annotations:7.40.0 (1 constraints: c1187e9e)
+com.palantir.conjure.java.runtime:conjure-java-jackson-optimizations:7.40.0 (2 constraints: c521007b)
+com.palantir.conjure.java.runtime:conjure-java-jackson-serialization:7.40.0 (6 constraints: 386e9f88)
+com.palantir.conjure.java.runtime:conjure-java-jaxrs-client:7.40.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-jersey-server:7.40.0 (1 constraints: 4505703b)
+com.palantir.conjure.java.runtime:conjure-java-legacy-clients:7.40.0 (1 constraints: c1187e9e)
+com.palantir.conjure.java.runtime:keystores:7.40.0 (3 constraints: 1e2a555f)
+com.palantir.conjure.java.runtime:refresh-utils:7.40.0 (2 constraints: 051e6045)
+com.palantir.dialogue:dialogue-apache-hc5-client:3.74.0 (2 constraints: 7c29b801)
+com.palantir.dialogue:dialogue-blocking-channels:3.74.0 (2 constraints: db2399b3)
+com.palantir.dialogue:dialogue-clients:3.74.0 (1 constraints: 3d05503b)
+com.palantir.dialogue:dialogue-core:3.74.0 (3 constraints: 7d3d43e1)
+com.palantir.dialogue:dialogue-futures:3.74.0 (3 constraints: d13392be)
+com.palantir.dialogue:dialogue-serde:3.74.0 (3 constraints: b82e92a1)
+com.palantir.dialogue:dialogue-target:3.74.0 (7 constraints: 8976a556)
 com.palantir.docker.compose:docker-compose-rule-core:1.8.0 (3 constraints: dc2f1711)
 com.palantir.docker.compose:docker-compose-rule-events-api-objects:1.8.0 (1 constraints: c315c2d2)
 com.palantir.docker.compose:docker-compose-rule-junit4:1.8.0 (2 constraints: 1a1a3b07)
@@ -98,27 +98,27 @@ com.palantir.goethe:goethe:0.9.0 (1 constraints: 0b050636)
 com.palantir.nylon:nylon-threads:0.3.0 (1 constraints: 0505f435)
 com.palantir.refreshable:refreshable:2.2.0 (3 constraints: 69298ff2)
 com.palantir.ri:resource-identifier:2.5.0 (3 constraints: a72f8136)
-com.palantir.safe-logging:logger:3.2.0 (23 constraints: 74886d78)
+com.palantir.safe-logging:logger:3.2.0 (23 constraints: 4e88492a)
 com.palantir.safe-logging:logger-slf4j:3.2.0 (1 constraints: 000e5942)
 com.palantir.safe-logging:logger-spi:3.2.0 (2 constraints: 0f1e997a)
-com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: 191828aa)
-com.palantir.safe-logging:safe-logging:3.2.0 (28 constraints: 34d3cb53)
+com.palantir.safe-logging:preconditions:3.2.0 (31 constraints: f7178aeb)
+com.palantir.safe-logging:safe-logging:3.2.0 (28 constraints: 0cd34fc4)
 com.palantir.safethreadlocalrandom:safe-thread-local-random:0.1.0 (3 constraints: 933225f9)
 com.palantir.sls.versions:sls-versions:1.4.0 (1 constraints: 0705fc35)
-com.palantir.tokens:auth-tokens:3.16.0 (5 constraints: 445c018f)
-com.palantir.tracing:tracing:6.15.0 (8 constraints: eb7d2456)
-com.palantir.tracing:tracing-api:6.15.0 (5 constraints: 0f459cf3)
-com.palantir.tracing:tracing-jersey:6.15.0 (1 constraints: 441994bb)
-com.palantir.tritium:tritium-api:0.57.0 (6 constraints: 5c5223d4)
-com.palantir.tritium:tritium-caffeine:0.57.0 (1 constraints: 3e05483b)
-com.palantir.tritium:tritium-core:0.57.0 (5 constraints: 6743c520)
-com.palantir.tritium:tritium-lib:0.57.0 (1 constraints: 3e05483b)
-com.palantir.tritium:tritium-metrics:0.57.0 (7 constraints: 076c30e5)
-com.palantir.tritium:tritium-proxy:0.57.0 (1 constraints: 840e8859)
-com.palantir.tritium:tritium-registry:0.57.0 (12 constraints: 21d37368)
-com.palantir.tritium:tritium-slf4j:0.57.0 (2 constraints: c113e170)
-com.palantir.tritium:tritium-time:0.57.0 (1 constraints: 840e8859)
-com.palantir.tritium:tritium-tracing:0.57.0 (1 constraints: 840e8859)
+com.palantir.tokens:auth-tokens:3.17.0 (5 constraints: 455c618f)
+com.palantir.tracing:tracing:6.17.0 (8 constraints: f17d5057)
+com.palantir.tracing:tracing-api:6.17.0 (5 constraints: 134502f4)
+com.palantir.tracing:tracing-jersey:6.17.0 (1 constraints: 441994bb)
+com.palantir.tritium:tritium-api:0.64.0 (6 constraints: 5052c7ce)
+com.palantir.tritium:tritium-caffeine:0.64.0 (1 constraints: 3c05433b)
+com.palantir.tritium:tritium-core:0.64.0 (5 constraints: 5d43281d)
+com.palantir.tritium:tritium-lib:0.64.0 (1 constraints: 3c05433b)
+com.palantir.tritium:tritium-metrics:0.64.0 (7 constraints: e96b2dd3)
+com.palantir.tritium:tritium-proxy:0.64.0 (1 constraints: 820e8359)
+com.palantir.tritium:tritium-registry:0.64.0 (12 constraints: ecd2692c)
+com.palantir.tritium:tritium-slf4j:0.64.0 (2 constraints: bd138370)
+com.palantir.tritium:tritium-time:0.64.0 (1 constraints: 820e8359)
+com.palantir.tritium:tritium-tracing:0.64.0 (1 constraints: 820e8359)
 com.squareup:javapoet:1.13.0 (4 constraints: 102cc1ed)
 com.squareup:kotlinpoet:1.11.0 (1 constraints: 6a0c7f0d)
 com.thinkaurelius.thrift:thrift-server:0.3.7 (1 constraints: 980f6c88)
@@ -199,8 +199,8 @@ jakarta.xml.bind:jakarta.xml.bind-api:2.3.3 (4 constraints: dc4625b3)
 jline:jline:2.14.6 (1 constraints: f90f6890)
 joda-time:joda-time:2.12.1 (6 constraints: 8059c3f0)
 junit:junit:4.13.2 (8 constraints: 5a9c5baf)
-net.bytebuddy:byte-buddy:1.12.18 (3 constraints: a325ded3)
-net.bytebuddy:byte-buddy-agent:1.12.16 (1 constraints: 750baee9)
+net.bytebuddy:byte-buddy:1.14.3 (3 constraints: 7225fcb6)
+net.bytebuddy:byte-buddy-agent:1.12.19 (1 constraints: 780bb1e9)
 net.java.dev.jna:jna:4.1.0 (2 constraints: 6e1bbbad)
 net.jpountz.lz4:lz4:1.3.0 (2 constraints: 971453a0)
 net.ltgt.gradle.incap:incap:0.2 (1 constraints: ea0d3b32)
@@ -215,7 +215,7 @@ org.apache.commons:commons-lang3:3.12.0 (8 constraints: 5873a6cf)
 org.apache.commons:commons-math3:3.2 (2 constraints: 90196ff8)
 org.apache.commons:commons-pool2:2.11.1 (1 constraints: 3705333b)
 org.apache.commons:commons-text:1.9 (1 constraints: b5102f9b)
-org.apache.httpcomponents.client5:httpclient5:5.2 (2 constraints: 1718ec73)
+org.apache.httpcomponents.client5:httpclient5:5.2.1 (2 constraints: 7618a7a4)
 org.apache.httpcomponents.core5:httpcore5:5.2 (3 constraints: 40388deb)
 org.apache.httpcomponents.core5:httpcore5-h2:5.2 (1 constraints: dd12c315)
 org.apache.thrift:libthrift:0.17.0 (4 constraints: 00372854)
@@ -224,7 +224,7 @@ org.assertj:assertj-guava:3.4.0 (1 constraints: 09050636)
 org.awaitility:awaitility:4.2.0 (2 constraints: c71a893b)
 org.caffinitas.ohc:ohc-core:0.3.4 (1 constraints: 950f6988)
 org.checkerframework:checker-compat-qual:2.5.5 (2 constraints: 1f1d1717)
-org.checkerframework:checker-qual:3.22.0 (3 constraints: 6b26c1e1)
+org.checkerframework:checker-qual:3.32.0 (3 constraints: 6c2607e2)
 org.clojure:clojure:1.8.0 (1 constraints: 0b050836)
 org.codehaus.groovy:groovy:2.5.14 (23 constraints: b55185ba)
 org.codehaus.groovy:groovy-cli-picocli:2.5.14 (5 constraints: d54e9017)
@@ -283,7 +283,7 @@ org.jboss.xnio:xnio-api:3.8.7.Final (2 constraints: 771a3146)
 org.jboss.xnio:xnio-nio:3.8.7.Final (1 constraints: c80dcb30)
 org.jdbi:jdbi3-core:3.30.0 (2 constraints: 0e10d5bf)
 org.jdbi:jdbi3-sqlobject:3.30.0 (1 constraints: 38053d3b)
-org.jetbrains:annotations:23.0.0 (3 constraints: 45257f15)
+org.jetbrains:annotations:23.0.0 (4 constraints: 0c35f637)
 org.jetbrains.kotlin:kotlin-reflect:1.6.10 (1 constraints: 360b7dd6)
 org.jetbrains.kotlin:kotlin-stdlib:1.7.0 (7 constraints: 07713968)
 org.jetbrains.kotlin:kotlin-stdlib-common:1.7.0 (1 constraints: 110f8b6b)
@@ -292,9 +292,9 @@ org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.0 (3 constraints: c125b5a3)
 org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.5.0 (1 constraints: 4b0ea44e)
 org.jvnet:animal-sniffer-annotation:1.0 (1 constraints: f20b95eb)
 org.mindrot:jbcrypt:0.4 (2 constraints: 4714f171)
-org.mockito:mockito-core:4.8.1 (2 constraints: 2e1643fd)
+org.mockito:mockito-core:4.10.0 (2 constraints: 57169613)
 org.mpierce.metrics.reservoir:hdrhistogram-metrics-reservoir:1.1.3 (1 constraints: 0d10f991)
-org.objenesis:objenesis:3.2 (2 constraints: c61411ab)
+org.objenesis:objenesis:3.3 (2 constraints: c71412ab)
 org.openjdk.jmh:jmh-core:1.36 (2 constraints: f51525d9)
 org.openjdk.jmh:jmh-generator-annprocess:1.36 (1 constraints: de04fb30)
 org.ow2.asm:asm:7.1 (4 constraints: d71f9495)
@@ -308,7 +308,7 @@ org.rocksdb:rocksdbjni:7.7.3 (1 constraints: 13052636)
 org.slf4j:jcl-over-slf4j:1.7.36 (3 constraints: 492febed)
 org.slf4j:jul-to-slf4j:1.7.36 (1 constraints: b90e9c5e)
 org.slf4j:log4j-over-slf4j:1.7.36 (3 constraints: 492febed)
-org.slf4j:slf4j-api:1.7.36 (44 constraints: 79807531)
+org.slf4j:slf4j-api:1.7.36 (44 constraints: 8180995b)
 org.wildfly.client:wildfly-client-config:1.0.1.Final (1 constraints: 940c6308)
 org.wildfly.common:wildfly-common:1.6.0.Final (3 constraints: 94236ea3)
 org.xerial:sqlite-jdbc:3.36.0 (1 constraints: 3e054f3b)
@@ -323,9 +323,9 @@ com.github.peterwippermann.junit4:parameterized-suite:1.1.0 (1 constraints: 0405
 com.github.stefanbirkner:system-rules:1.19.0 (1 constraints: 3d05443b)
 com.github.tomakehurst:wiremock-standalone:2.27.2 (1 constraints: 3f054a3b)
 com.google.code.findbugs:annotations:3.0.1 (1 constraints: 9e0aafc3)
-com.palantir.conjure.java.api:test-utils:2.29.0 (1 constraints: 3f054e3b)
+com.palantir.conjure.java.api:test-utils:2.34.0 (1 constraints: 3f054e3b)
 com.palantir.safe-logging:preconditions-assertj:3.2.0 (1 constraints: 07050036)
-com.palantir.tracing:tracing-test-utils:6.15.0 (1 constraints: 3e05563b)
+com.palantir.tracing:tracing-test-utils:6.17.0 (1 constraints: 3e05563b)
 com.spotify.dataenum:dataenum:1.4.1 (1 constraints: e9105ac1)
 com.thoughtworks.qdox:qdox:1.12.1 (1 constraints: 6d11f7d9)
 io.dropwizard:dropwizard-testing:2.1.2 (1 constraints: 0705fa35)u}(jG (57d234e97be9247a87320ff9576725399a215b77j versions.propsj modifiedj Kj Kj Kj `https://github.com/palantir/atlasdb/blob/fa8e98b17671d5b05d880ca5437ae7e932677321/versions.propsj _https://github.com/palantir/atlasdb/raw/fa8e98b17671d5b05d880ca5437ae7e932677321/versions.propsj rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=fa8e98b17671d5b05d880ca5437ae7e932677321j X?  @@ -36,7 +36,7 @@ com.palantir.refreshable:refreshable = 2.2.0
 com.palantir.safe-logging:* = 3.2.0
 com.palantir.sls.versions:* = 1.4.0
 com.palantir.tracing:* = 6.15.0
-com.palantir.tritium:* = 0.57.0
+com.palantir.tritium:* = 0.64.0
 com.squareup:javapoet = 1.13.0
 com.zaxxer:HikariCP = 5.0.1
 commons-cli:* = 1.5.0ueu(f274e07ff46f1eb2ecd79c56cf4fcc07462ec498}(sha(f274e07ff46f1eb2ecd79c56cf4fcc07462ec498node_idEC_kwDOAjP5fdoAKGYyNzRlMDdmZjQ2ZjFlYjJlY2Q3OWM1NmNmNGZjYzA3NDYyZWM0OTgcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-25T17:01:10Zu	committer}(j΋ Lucas MeirelesjЋ meireles31@msn.comjҋ 2023-07-25T17:01:10Zumessagerev apitree}(jƋ (ae52bbcf7142cab206b2cec3e4d1e1ce419ad8e9url`https://api.github.com/repos/palantir/atlasdb/git/trees/ae52bbcf7142cab206b2cec3e4d1e1ce419ad8e9ujދ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/f274e07ff46f1eb2ecd79c56cf4fcc07462ec498
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS//9YACgkQJd22kJ7J
GixtjQgAj5nqjMJHA+QOYVT3qALkBI2DIn1LPVR4k+uQYGnTgiQHPbQFqMgUOoCl
4i1ggRDfXrB/tcxPDD3/X4InLwXiH0YwdACFSUI2PxI497xOct0sxhzC7B8fFDCF
xkiSr0sPtAIu4xSm1dBh0C53ggSPvLjEfqcP0UaBkJEjE00bzTIcIiQ6CKUii0pW
uroEBvKs06ra+ZrB+Vnko0vTXh2C+qOrKKDog1rHTAvTucBmHIyAzkTxWJ7rd9XN
sxm3HB7hX/AThn3A1e2ooGAik76eLIbYHakJzb16L6MSP7s6ys6EfG4/8/Ger2JQ
mSJ1Dc1/qVuLNsktPy1F+frFUB9eVQ==
=A7iX
-----END PGP SIGNATURE-----payloadtree ae52bbcf7142cab206b2cec3e4d1e1ce419ad8e9
parent 5a6886cac13d4d25a49364b183098e72b583383c
author Lucas Meireles <meireles31@msn.com> 1690304470 +0100
committer Lucas Meireles <meireles31@msn.com> 1690304470 +0100

rev api
uujދ ^https://api.github.com/repos/palantir/atlasdb/commits/f274e07ff46f1eb2ecd79c56cf4fcc07462ec498html_urlShttps://github.com/palantir/atlasdb/commit/f274e07ff46f1eb2ecd79c56cf4fcc07462ec498comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/f274e07ff46f1eb2ecd79c56cf4fcc07462ec498/commentsj̋ }(loginLucasIMEidJg jȋ MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jދ %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujԋ }(j LucasIMEj Jg jȋ MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5jދ %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j  <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j
 5https://api.github.com/users/LucasIME/received_eventsj Userj uparents]}(jƋ (5a6886cac13d4d25a49364b183098e72b583383cjދ ^https://api.github.com/repos/palantir/atlasdb/commits/5a6886cac13d4d25a49364b183098e72b583383cj Shttps://github.com/palantir/atlasdb/commit/5a6886cac13d4d25a49364b183098e72b583383cuastats}(totalK	additionsK	deletionsK ufiles]}(jƋ (3294b61794301cea7c078c093fee524bdbd8f8b2filename.palantir/revapi.ymlstatusmodifiedj( Kj) K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/f274e07ff46f1eb2ecd79c56cf4fcc07462ec498/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/f274e07ff46f1eb2ecd79c56cf4fcc07462ec498/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=f274e07ff46f1eb2ecd79c56cf4fcc07462ec498patchX  @@ -154,3 +154,11 @@ acceptedBreaks:
       new: "method java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell, byte[]> com.palantir.atlasdb.transaction.api.Transaction::getWithExpectedNumberOfCells(com.palantir.atlasdb.keyvalue.api.TableReference,\
         \ java.util.Set<com.palantir.atlasdb.keyvalue.api.Cell>, long)"
       justification: "just adding a new get method"
+  "0.899.0":
+    com.palantir.atlasdb:atlasdb-api:
+    - code: "java.method.addedToInterface"
+      new: "method com.palantir.util.result.Result<java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell,\
+        \ byte[]>, com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException>\
+        \ com.palantir.atlasdb.transaction.api.Transaction::getWithExpectedNumberOfCells(com.palantir.atlasdb.keyvalue.api.TableReference,\
+        \ java.util.Set<com.palantir.atlasdb.keyvalue.api.Cell>, long)"
+      justification: "just adding a new get method"uau(eb34ad7fc022ab45a6646401cb4c082403f9ea1a}(sha(eb34ad7fc022ab45a6646401cb4c082403f9ea1anode_idEC_kwDOAjP5fdoAKGViMzRhZDdmYzAyMmFiNDVhNjY0NjQwMWNiNGMwODI0MDNmOWVhMWEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-23T00:49:48Zu	committer}(jE Jeremy KongjG jkong@palantir.comjI 2023-02-23T00:49:48Zumessagefixestree}(j= (65db051b0678f523c3247eaa98f50757f17d02c2url`https://api.github.com/repos/palantir/atlasdb/git/trees/65db051b0678f523c3247eaa98f50757f17d02c2ujU bhttps://api.github.com/repos/palantir/atlasdb/git/commits/eb34ad7fc022ab45a6646401cb4c082403f9ea1a
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmP2uCwACgkQTLdFKain
zjwghggA0Zm0Qogga+3P3TOwavbapXNABo/VvkEkf8P7vc6Wf1FGsxxt8C8iHM8R
VQoTEwBId9kur5V7xelDDheHdDPhJ5Xm7fNtkAtHBsudFGuChwDcu68QSnZWPY6n
xQD5ylpYCzKJFcuDakVb9zzsPn21grR4tpUlmmyh6U7UIg9Urv4tdqKDc0dnsiIO
ztmlQ9l6xiMn4uBJnx2+kQDE8rrSe96QA9vtTRzz4yFUKU6lixVgY+IYXCnowXJ/
JlN2ejQmTThiHRqqkqGY9nq4/Pl9xJu1Bq+5wBZ+0j8VaEpivnSFGUdYCtpYFNaS
yn9pq5xnVR1LO0uVXcv4SS5u5ubJBQ==
=0+0Q
-----END PGP SIGNATURE-----payloadtree 65db051b0678f523c3247eaa98f50757f17d02c2
parent 89123b8c4e29b0b8096a8fa3463b9beaeb95b0fd
author Jeremy Kong <jkong@palantir.com> 1677113388 +0000
committer Jeremy Kong <jkong@palantir.com> 1677113388 +0000

fixes
uujU ^https://api.github.com/repos/palantir/atlasdb/commits/eb34ad7fc022ab45a6646401cb4c082403f9ea1ahtml_urlShttps://github.com/palantir/atlasdb/commit/eb34ad7fc022ab45a6646401cb4c082403f9ea1acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/eb34ad7fc022ab45a6646401cb4c082403f9ea1a/commentsjC }(login
jeremyk-91idJZ j? MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jU 'https://api.github.com/users/jeremyk-91jc https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujK }(jh 
jeremyk-91jj JZ j? MDQ6VXNlcjU5NTU1MTA=jl 3https://avatars.githubusercontent.com/u/5955510?v=4jn h5jU 'https://api.github.com/users/jeremyk-91jc https://github.com/jeremyk-91jq 1https://api.github.com/users/jeremyk-91/followersjs >https://api.github.com/users/jeremyk-91/following{/other_user}ju 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jw >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jy 5https://api.github.com/users/jeremyk-91/subscriptionsj{ ,https://api.github.com/users/jeremyk-91/orgsj} -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j= (89123b8c4e29b0b8096a8fa3463b9beaeb95b0fdjU ^https://api.github.com/repos/palantir/atlasdb/commits/89123b8c4e29b0b8096a8fa3463b9beaeb95b0fdjc Shttps://github.com/palantir/atlasdb/commit/89123b8c4e29b0b8096a8fa3463b9beaeb95b0fduastats}(totalK	additionsK
	deletionsKufiles](}(j= (3a88ac9f28a5ac17036f4bd80dae5e25b986de18filenamelatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/IndexedTransactionTask.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/eb34ad7fc022ab45a6646401cb4c082403f9ea1a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FIndexedTransactionTask.javaraw_urlhttps://github.com/palantir/atlasdb/raw/eb34ad7fc022ab45a6646401cb4c082403f9ea1a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FIndexedTransactionTask.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FIndexedTransactionTask.java?ref=eb34ad7fc022ab45a6646401cb4c082403f9ea1apatchX  @@ -23,8 +23,9 @@
 
 /**
  * A task that performs some operations on a {@link TransactionStore}, possibly using the index of the task
- * as an input, and returns an {@link Optional<WitnessedTransaction>}. Here, "index" refers to an integer between 0
- * and the {@link WorkflowConfiguration#iterationCount()} - each copy of the task will receive a different integer.
+ * as an input, and returns an {@link Optional} of {@link WitnessedTransaction}. Here, "index" refers to an integer
+ * between 0 and the {@link WorkflowConfiguration#iterationCount()} - each copy of the task will receive a different
+ * integer.
  */
 @FunctionalInterface
 public interface IndexedTransactionTask extends BiFunction<TransactionStore, Integer, Optional<WitnessedTransaction>> {}u}(j= (9ae3b96ab3dfca2b9b6a0f5a5851672831e7cef5j patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/eb34ad7fc022ab45a6646401cb4c082403f9ea1a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj https://github.com/palantir/atlasdb/raw/eb34ad7fc022ab45a6646401cb4c082403f9ea1a/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=eb34ad7fc022ab45a6646401cb4c082403f9ea1aj X  @@ -57,9 +57,12 @@ public void smokeTest() {
         Workflow workflow = SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
                 TRANSACTION_STORE,
                 ImmutableSingleCellWorkflowConfiguration.builder()
-                        .iterationCount(ITERATION_COUNT)
                         .tableName(TEST_TABLE.getTableName())
-                        .executionExecutor(MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(100)))
+                        .genericWorkflowConfiguration(ImmutableWorkflowConfiguration.builder()
+                                .iterationCount(ITERATION_COUNT)
+                                .executionExecutor(
+                                        MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(100)))
+                                .build())
                         .build());
         workflow.onComplete(this::assertWorkflowHistoryConsistent);
         workflow.run();
@@ -82,8 +85,8 @@ private void assertWorkflowHistoryConsistent(WorkflowHistory workflowHistory) {
             WitnessedTransaction successor = transactionsByCommitTime.get(index);
 
             assertThat(predecessor.commitTimestamp().orElseThrow())
-                    .as("given all transactions touch the same cells, they should conflict and so concurrency should "
-                            + "not be allowed")
+                    .as("given all transactions touch the same cells, overlapping transactions should conflict and so "
+                            + "they should not be allowed")
                     .isLessThan(successor.startTimestamp());
 
             validatePredecessorWritesSeenBySuccessor(predecessor, successor);ueu(8bb90e566f28e387965ace0b929cf766ae8d6eb7}(sha(8bb90e566f28e387965ace0b929cf766ae8d6eb7node_idEC_kwDOAjP5fdoAKDhiYjkwZTU2NmYyOGUzODc5NjVhY2UwYjkyOWNmNzY2YWU4ZDZlYjccommit}(author}(nameMohammed Daudaliemailmdaudali@palantir.comdate2023-07-13T14:25:38Zu	committer}(jČ Mohammed Daudalijƌ mdaudali@palantir.comjȌ 2023-07-13T14:25:38Zumessagemetrics metrics metricstree}(j (1694c60b6ad04f104c991233705209185b6166a3url`https://api.github.com/repos/palantir/atlasdb/git/trees/1694c60b6ad04f104c991233705209185b6166a3ujԌ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/8bb90e566f28e387965ace0b929cf766ae8d6eb7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE85NpmxiQII63+jWv1DJ7K5YIya0FAmSwCWMACgkQ1DJ7K5YI
ya2bogf+LGkwTObe5u+eYRJP7+CyUwXZYC7Tpqmx94PPenNYQZZAZxT/foV59dWu
NmScqWviZ0dob0a+iiwUuCoyhb0LXikAXwY/SFMpx94PDNjrt7anxomoeUFXdJb0
DfUXmTUG98oSETyTbw1iivEGj97fchiOdQjjP2mKebjcoRw0ZIcGYqTNAV6fk6M3
G6WNMqbpnXchgX6bZnB8IcDsa+oyQ0ZMOt7ruVUpa6LyXWlmwxX/fxNC/JiC62CT
D6MNEETDL4M16BzTmpWr97RGkgWtUjwePWCab8ML6yIS8FE3Tx31PqsVdS6I7tzH
6o86yiJAWvbZl0dWb2OR/KL9rB0feA==
=uynv
-----END PGP SIGNATURE-----payloadtree 1694c60b6ad04f104c991233705209185b6166a3
parent 43a048fd492f4d9590d0f088f65034d2db7c859e
author Mohammed Daudali <mdaudali@palantir.com> 1689258338 +0100
committer Mohammed Daudali <mdaudali@palantir.com> 1689258338 +0100

metrics metrics metrics
uujԌ ^https://api.github.com/repos/palantir/atlasdb/commits/8bb90e566f28e387965ace0b929cf766ae8d6eb7html_urlShttps://github.com/palantir/atlasdb/commit/8bb90e566f28e387965ace0b929cf766ae8d6eb7comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/8bb90e566f28e387965ace0b929cf766ae8d6eb7/commentsj }(loginmdaudaliidJ j MDQ6VXNlcjE4MTI3NjQ=
avatar_url3https://avatars.githubusercontent.com/u/1812764?v=4gravatar_idh5jԌ %https://api.github.com/users/mdaudalij https://github.com/mdaudali
followers_url/https://api.github.com/users/mdaudali/followers
following_url<https://api.github.com/users/mdaudali/following{/other_user}	gists_url5https://api.github.com/users/mdaudali/gists{/gist_id}starred_url<https://api.github.com/users/mdaudali/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/mdaudali/subscriptionsorganizations_url*https://api.github.com/users/mdaudali/orgs	repos_url+https://api.github.com/users/mdaudali/repos
events_url6https://api.github.com/users/mdaudali/events{/privacy}received_events_url5https://api.github.com/users/mdaudali/received_eventstypeUser
site_adminujʌ }(j mdaudalij J j MDQ6VXNlcjE4MTI3NjQ=j 3https://avatars.githubusercontent.com/u/1812764?v=4j h5jԌ %https://api.github.com/users/mdaudalij https://github.com/mdaudalij /https://api.github.com/users/mdaudali/followersj <https://api.github.com/users/mdaudali/following{/other_user}j 5https://api.github.com/users/mdaudali/gists{/gist_id}j <https://api.github.com/users/mdaudali/starred{/owner}{/repo}j 3https://api.github.com/users/mdaudali/subscriptionsj *https://api.github.com/users/mdaudali/orgsj +https://api.github.com/users/mdaudali/reposj 6https://api.github.com/users/mdaudali/events{/privacy}j  5https://api.github.com/users/mdaudali/received_eventsj Userj uparents]}(j (43a048fd492f4d9590d0f088f65034d2db7c859ejԌ ^https://api.github.com/repos/palantir/atlasdb/commits/43a048fd492f4d9590d0f088f65034d2db7c859ej Shttps://github.com/palantir/atlasdb/commit/43a048fd492f4d9590d0f088f65034d2db7c859euastats}(totalK	additionsK	deletionsKufiles](}(j (17cafaa3909074fa2f7b4b5ade766f10d6ca1d70filename[atlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/CassandraAtlasDbFactory.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/8bb90e566f28e387965ace0b929cf766ae8d6eb7/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraAtlasDbFactory.javaraw_urlhttps://github.com/palantir/atlasdb/raw/8bb90e566f28e387965ace0b929cf766ae8d6eb7/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraAtlasDbFactory.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraAtlasDbFactory.java?ref=8bb90e566f28e387965ace0b929cf766ae8d6eb7patchX  @@ -53,8 +53,8 @@ public KeyValueService createRawKeyValueService(
             LongSupplier freshTimestampSource,
             boolean initializeAsync) {
         AtlasDbVersion.ensureVersionReported();
-        CassandraKeyValueServiceConfigs configs =
-                CassandraKeyValueServiceConfigs.fromKeyValueServiceConfigsOrThrow(config, runtimeConfig);
+        CassandraKeyValueServiceConfigs configs = CassandraKeyValueServiceConfigs.fromKeyValueServiceConfigsOrThrow(
+                config, runtimeConfig, metricsManager);
 
         CassandraKeyValueServiceConfigs configsWithNamespace = configs.copyWithKeyspace(
                 OptionalResolver.resolve(namespace, configs.installConfig().namespace()));u}(j (f97acc9da5a200f16e3ed2b10758be01fabe9ae9j$ catlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/CassandraKeyValueServiceConfigs.javaj& modifiedj Kj K j( Kj) https://github.com/palantir/atlasdb/blob/8bb90e566f28e387965ace0b929cf766ae8d6eb7/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraKeyValueServiceConfigs.javaj+ https://github.com/palantir/atlasdb/raw/8bb90e566f28e387965ace0b929cf766ae8d6eb7/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraKeyValueServiceConfigs.javaj- https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraKeyValueServiceConfigs.java?ref=8bb90e566f28e387965ace0b929cf766ae8d6eb7j/ X'  @@ -18,10 +18,12 @@
 import com.palantir.atlasdb.spi.DerivedSnapshotConfig;
 import com.palantir.atlasdb.spi.KeyValueServiceConfig;
 import com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig;
+import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.refreshable.Refreshable;
 import com.palantir.util.OptionalResolver;
+import java.util.Map;
 import java.util.Optional;
 import org.immutables.value.Value;
 
@@ -77,6 +79,28 @@ static CassandraKeyValueServiceConfigs fromKeyValueServiceConfigsOrThrow(
                         SafeArg.of("configType", install.type())));
     }
 
+    static CassandraKeyValueServiceConfigs fromKeyValueServiceConfigsOrThrow(
+            KeyValueServiceConfig install,
+            Refreshable<Optional<KeyValueServiceRuntimeConfig>> runtimeConfig,
+            MetricsManager metricsManager) {
+        CassandraKeyValueServiceConfigs configs = fromKeyValueServiceConfigs(install, runtimeConfig)
+                .orElseThrow(() -> new SafeIllegalArgumentException(
+                        "Invalid KeyValueServiceConfig. Expected a KeyValueServiceConfig of type"
+                                + " CassandraKeyValueServiceConfig, but found a different type.",
+                        SafeArg.of("configType", install.type())));
+        metricsManager.registerOrGet(
+                CassandraKeyValueServiceConfigs.class,
+                "configDifferences",
+                () -> {
+                    CassandraReloadableKeyValueServiceRuntimeConfig cast =
+                            (CassandraReloadableKeyValueServiceRuntimeConfig)
+                                    configs.runtimeConfig().get();
+                    return cast.doDifferencesExistBetweenInstallAndRuntime() ? 1 : 0;
+                },
+                Map.of());
+        return configs;
+    }
+
     default CassandraKeyValueServiceConfigs copyWithKeyspace(String recommendedKeyspace) {
         return builder()
                 .from(this)u}(j (4482bf379d8f908aa9f0adcf22e370aba1053af3j$ satlasdb-cassandra/src/main/java/com/palantir/atlasdb/cassandra/CassandraReloadableKeyValueServiceRuntimeConfig.javaj& modifiedj Kj K j( Kj) https://github.com/palantir/atlasdb/blob/8bb90e566f28e387965ace0b929cf766ae8d6eb7/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraReloadableKeyValueServiceRuntimeConfig.javaj+ https://github.com/palantir/atlasdb/raw/8bb90e566f28e387965ace0b929cf766ae8d6eb7/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraReloadableKeyValueServiceRuntimeConfig.javaj- https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraReloadableKeyValueServiceRuntimeConfig.java?ref=8bb90e566f28e387965ace0b929cf766ae8d6eb7j/ X  @@ -19,10 +19,13 @@
 
 import com.palantir.atlasdb.cassandra.CassandraServersConfigs.CassandraServersConfig;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.refreshable.Refreshable;
 
 public final class CassandraReloadableKeyValueServiceRuntimeConfig
         extends ForwardingCassandraKeyValueServiceRuntimeConfig {
+    private static final SafeLogger log = SafeLoggerFactory.get(CassandraReloadableKeyValueServiceRuntimeConfig.class);
 
     private final CassandraKeyValueServiceConfig installConfig;
     private final CassandraKeyValueServiceRuntimeConfig runtimeConfig;
@@ -43,6 +46,25 @@ static Refreshable<CassandraReloadableKeyValueServiceRuntimeConfig> fromConfigs(
                 validate(new CassandraReloadableKeyValueServiceRuntimeConfig(installConfig, runtimeConfig)));
     }
 
+    public boolean doDifferencesExistBetweenInstallAndRuntime() {
+        boolean areServersSame =
+                installConfig.servers().map(runtimeConfig.servers()::equals).orElse(false);
+        boolean areReplicationFactorSame = installConfig
+                .replicationFactor()
+                .map(runtimeConfig.replicationFactor()::equals)
+                .orElse(false);
+        if (!areServersSame || !areReplicationFactorSame) {
+            log.warn(
+                    "Servers or replication factor differ",
+                    SafeArg.of("installConfigServers", installConfig.servers()),
+                    SafeArg.of("runtimeConfigServers", runtimeConfig.servers()),
+                    SafeArg.of("installConfigReplicationFactor", installConfig.replicationFactor()),
+                    SafeArg.of("runtimeConfigReplicationFactor", runtimeConfig.replicationFactor()));
+            return true;
+        }
+        return false;
+    }
+
     @Override
     public CassandraKeyValueServiceRuntimeConfig delegate() {
         return runtimeConfig;u}(j (583e62d08258882a6700167e1b57fb91f73a2782j$ gatlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/CassandraKeyValueServiceConfigsTest.javaj& modifiedj K*j K j( K*j) https://github.com/palantir/atlasdb/blob/8bb90e566f28e387965ace0b929cf766ae8d6eb7/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraKeyValueServiceConfigsTest.javaj+ https://github.com/palantir/atlasdb/raw/8bb90e566f28e387965ace0b929cf766ae8d6eb7/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraKeyValueServiceConfigsTest.javaj- https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraKeyValueServiceConfigsTest.java?ref=8bb90e566f28e387965ace0b929cf766ae8d6eb7j/ X  @@ -25,11 +25,15 @@
 import com.palantir.atlasdb.config.AtlasDbConfigs;
 import com.palantir.atlasdb.spi.KeyValueServiceConfigHelper;
 import com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig;
+import com.palantir.atlasdb.util.MetricsManager;
+import com.palantir.atlasdb.util.MetricsManagers;
 import com.palantir.refreshable.Refreshable;
+import com.palantir.refreshable.SettableRefreshable;
 import java.io.File;
 import java.io.IOException;
 import java.net.InetSocketAddress;
 import java.net.URL;
+import java.util.Map;
 import java.util.Optional;
 import org.junit.Test;
 
@@ -66,6 +70,8 @@ public class CassandraKeyValueServiceConfigsTest {
             CassandraKeyValueServiceConfigs.fromKeyValueServiceConfigsOrThrow(
                     CONFIG_WITH_KEYSPACE, Refreshable.only(Optional.empty()));
 
+    private final MetricsManager metricsManager = MetricsManagers.createAlwaysSafeAndFilteringForTests();
+
     @Test
     public void canDeserialize() throws IOException {
         CassandraKeyValueServiceConfig testConfig = ImmutableCassandraKeyValueServiceConfig.builder()
@@ -164,6 +170,35 @@ public void fromKeyValueServiceConfigMergesInstallAndRuntime() {
                 .isEqualTo(configs.installConfig().replicationFactor().orElseThrow());
     }
 
+    @Test
+    public void metricsHappen() {
+        SettableRefreshable<Optional<KeyValueServiceRuntimeConfig>> config =
+                Refreshable.create(Optional.of(ImmutableCassandraKeyValueServiceRuntimeConfig.builder()
+                        .replicationFactor(10)
+                        .servers(SERVERS)
+                        .build()));
+        CassandraKeyValueServiceConfigs.fromKeyValueServiceConfigsOrThrow(
+                CONFIG_WITHOUT_KEYSPACE, config, metricsManager);
+        assertMetric(0);
+        config.update(Optional.of(ImmutableCassandraKeyValueServiceRuntimeConfig.builder()
+                .replicationFactor(2)
+                .servers(SERVERS)
+                .build()));
+        assertMetric(1);
+        config.update(Optional.of(ImmutableCassandraKeyValueServiceRuntimeConfig.builder()
+                .replicationFactor(10)
+                .servers(SERVERS)
+                .build()));
+        assertMetric(0);
+        config.update(Optional.of(ImmutableCassandraKeyValueServiceRuntimeConfig.builder()
+                .replicationFactor(10)
+                .servers(ImmutableDefaultConfig.builder()
+                        .addAllThriftHosts(ImmutableSet.of(InetSocketAddress.createUnresolved("foo", 43)))
+                        .build())
+                .build()));
+        assertMetric(1);
+    }
+
     @Test
     public void emptyRuntimeConfigShouldResolveToDefaultRuntimeConfig() {
         CassandraKeyValueServiceConfigs returnedConfigs =
@@ -225,4 +260,11 @@ public void canDeserializeRuntimeConfig() throws IOException {
 
         assertThat(deserializedConfig).isEqualTo(expectedConfig);
     }
+
+    private void assertMetric(int value) {
+        assertThat(metricsManager
+                        .registerOrGet(CassandraKeyValueServiceConfigs.class, "configDifferences", () -> 2, Map.of())
+                        .getValue())
+                .isEqualTo(value);
+    }
 }u}(j (6ac3b8efa17b089ca9ce68dd2772e3064f3d0342j$ watlasdb-cassandra/src/test/java/com/palantir/atlasdb/cassandra/CassandraReloadableKeyValueServiceRuntimeConfigTest.javaj& modifiedj K-j K j( K-j) https://github.com/palantir/atlasdb/blob/8bb90e566f28e387965ace0b929cf766ae8d6eb7/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraReloadableKeyValueServiceRuntimeConfigTest.javaj+ https://github.com/palantir/atlasdb/raw/8bb90e566f28e387965ace0b929cf766ae8d6eb7/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraReloadableKeyValueServiceRuntimeConfigTest.javaj- https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcassandra%2FCassandraReloadableKeyValueServiceRuntimeConfigTest.java?ref=8bb90e566f28e387965ace0b929cf766ae8d6eb7j/ X	  @@ -321,6 +321,51 @@ public void mergedConfigReplicationFactorNegativeFailsInitialisation() {
                 .hasLogMessage("'replicationFactor' must be non-negative");
     }
 
+    @Test
+    public void differencesDeterminedForServers() {
+        CassandraKeyValueServiceConfig config =
+                configBuilderWithDefaultCredentials().servers(SERVERS_1).build();
+        CassandraKeyValueServiceRuntimeConfig runtimeConfig = runtimeConfigBuilderWithDefaultReplicationFactor()
+                .servers(SERVERS_2)
+                .build();
+        assertThat(CassandraReloadableKeyValueServiceRuntimeConfig.fromConfigs(config, Refreshable.only(runtimeConfig))
+                        .get()
+                        .doDifferencesExistBetweenInstallAndRuntime())
+                .isTrue();
+    }
+
+    @Test
+    public void differencesDeterminedForRf() {
+        CassandraKeyValueServiceConfig config = configBuilderWithDefaultCredentials()
+                .servers(SERVERS_1)
+                .replicationFactor(2)
+                .build();
+        CassandraKeyValueServiceRuntimeConfig runtimeConfig = runtimeConfigBuilderWithDefaultReplicationFactor()
+                .servers(SERVERS_1)
+                .replicationFactor(1)
+                .build();
+        assertThat(CassandraReloadableKeyValueServiceRuntimeConfig.fromConfigs(config, Refreshable.only(runtimeConfig))
+                        .get()
+                        .doDifferencesExistBetweenInstallAndRuntime())
+                .isTrue();
+    }
+
+    @Test
+    public void noDifferencesDetermined() {
+        CassandraKeyValueServiceConfig config = configBuilderWithDefaultCredentials()
+                .servers(SERVERS_1)
+                .replicationFactor(2)
+                .build();
+        CassandraKeyValueServiceRuntimeConfig runtimeConfig = runtimeConfigBuilderWithDefaultReplicationFactor()
+                .servers(SERVERS_1)
+                .replicationFactor(2)
+                .build();
+        assertThat(CassandraReloadableKeyValueServiceRuntimeConfig.fromConfigs(config, Refreshable.only(runtimeConfig))
+                        .get()
+                        .doDifferencesExistBetweenInstallAndRuntime())
+                .isFalse();
+    }
+
     private static ImmutableCassandraKeyValueServiceConfig.Builder configBuilderWithDefaultCredentials() {
         return ImmutableCassandraKeyValueServiceConfig.builder().credentials(CREDENTIALS);
     }ueu(c0372f1a94d62c728b6695ea8090c27d4b81f61c}(sha(c0372f1a94d62c728b6695ea8090c27d4b81f61cnode_idEC_kwDOAjP5fdoAKGMwMzcyZjFhOTRkNjJjNzI4YjY2OTVlYTgwOTBjMjdkNGI4MWY2MWMcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-07-21T00:29:23Zu	committer}(j[ David Schlosnaglej] davids@palantir.comj_ 2023-07-21T00:29:26ZumessageOptimize sweep write partitioning

Reduce allocations when processing large volumes of writes in sweep by
avoiding intermediate collections and performing single passes on
partitioning.tree}(jS (83cd46fcf6279db98bdb6c9d77a42f344b307032url`https://api.github.com/repos/palantir/atlasdb/git/trees/83cd46fcf6279db98bdb6c9d77a42f344b307032ujk bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c0372f1a94d62c728b6695ea8090c27d4b81f61c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE9ns1wCIbnkI4jFGCR9hsJ74Q0l8FAmS50ZoACgkQR9hsJ74Q
0l+PhAf9F1bZFEaop+vcwkDB12QPry1bHzNnZx9Lv8esXD9kCwYaidnIHhR6hx3P
2hYa6tSJ088s0y/4MWILA70xcoc+nlER9zNKqaKnbP8MSJ1jJnRCmiK/tKeiGWPU
nyy6Y5E0YTgvRxSqIzRQ9RX5FcZsPNj/s0r8PGvQ0GBY0G34MgbaoXlhTfnedj3E
4yRBT13x3+cv2H/EVIbALrrzT7TwBiBBRts0S1T9FyOnhvpG7KxtoltY0PKa8ngm
/JoQ+b3wrDoAtw7AImMvayQfEnoFN9EB/Q35V1bgo1GB/JQDMG0EeJMO9bADp/3y
hrzBnfajBh1TDqiQQHmkxQjkYGnklg==
=p38d
-----END PGP SIGNATURE-----payloadX  tree 83cd46fcf6279db98bdb6c9d77a42f344b307032
parent 4e050a9cb4f8f2b45b8b700df082f442d2fec694
author David Schlosnagle <davids@palantir.com> 1689899363 -0400
committer David Schlosnagle <davids@palantir.com> 1689899366 -0400

Optimize sweep write partitioning

Reduce allocations when processing large volumes of writes in sweep by
avoiding intermediate collections and performing single passes on
partitioning.
uujk ^https://api.github.com/repos/palantir/atlasdb/commits/c0372f1a94d62c728b6695ea8090c27d4b81f61chtml_urlShttps://github.com/palantir/atlasdb/commit/c0372f1a94d62c728b6695ea8090c27d4b81f61ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c0372f1a94d62c728b6695ea8090c27d4b81f61c/commentsjY }(loginschlosnaidMBjU MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jk %https://api.github.com/users/schlosnajy https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuja }(j~ schlosnaj MBjU MDQ6VXNlcjU0NTk0j 1https://avatars.githubusercontent.com/u/54594?v=4j h5jk %https://api.github.com/users/schlosnajy https://github.com/schlosnaj /https://api.github.com/users/schlosna/followersj <https://api.github.com/users/schlosna/following{/other_user}j 5https://api.github.com/users/schlosna/gists{/gist_id}j <https://api.github.com/users/schlosna/starred{/owner}{/repo}j 3https://api.github.com/users/schlosna/subscriptionsj *https://api.github.com/users/schlosna/orgsj +https://api.github.com/users/schlosna/reposj 6https://api.github.com/users/schlosna/events{/privacy}j 5https://api.github.com/users/schlosna/received_eventsj Userj uparents]}(jS (4e050a9cb4f8f2b45b8b700df082f442d2fec694jk ^https://api.github.com/repos/palantir/atlasdb/commits/4e050a9cb4f8f2b45b8b700df082f442d2fec694jy Shttps://github.com/palantir/atlasdb/commit/4e050a9cb4f8f2b45b8b700df082f442d2fec694uastats}(totalK[	additionsK:	deletionsK!ufiles](}(jS (2f8a21800d40cf1133b80f1dfeb5d0fe9712c6e4filenameUatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/PartitionInfo.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/c0372f1a94d62c728b6695ea8090c27d4b81f61c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FPartitionInfo.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c0372f1a94d62c728b6695ea8090c27d4b81f61c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FPartitionInfo.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FPartitionInfo.java?ref=c0372f1a94d62c728b6695ea8090c27d4b81f61cpatchX0  @@ -20,14 +20,13 @@
 
 @Value.Immutable
 public interface PartitionInfo {
+    @Value.Parameter
     ShardAndStrategy shardAndStrategy();
 
+    @Value.Parameter
     long timestamp();
 
     static PartitionInfo of(int shard, SweeperStrategy strategy, long timestamp) {
-        return ImmutablePartitionInfo.builder()
-                .shardAndStrategy(ShardAndStrategy.of(shard, strategy))
-                .timestamp(timestamp)
-                .build();
+        return ImmutablePartitionInfo.of(ShardAndStrategy.of(shard, strategy), timestamp);
     }
 }u}(jS (20af9fe9cf3ce8a1c398fa50ae5885df278e98d9j Xatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/ShardAndStrategy.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/c0372f1a94d62c728b6695ea8090c27d4b81f61c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FShardAndStrategy.javaj https://github.com/palantir/atlasdb/raw/c0372f1a94d62c728b6695ea8090c27d4b81f61c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FShardAndStrategy.javajč https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FShardAndStrategy.java?ref=c0372f1a94d62c728b6695ea8090c27d4b81f61cjƍ XU  @@ -22,8 +22,10 @@
 
 @Value.Immutable
 public abstract class ShardAndStrategy {
+    @Value.Parameter
     public abstract int shard();
 
+    @Value.Parameter
     public abstract SweeperStrategy strategy();
 
     public String toText() {
@@ -51,18 +53,15 @@ public boolean isThorough() {
     }
 
     public static ShardAndStrategy of(int shard, SweeperStrategy sweepStrategy) {
-        return ImmutableShardAndStrategy.builder()
-                .shard(shard)
-                .strategy(sweepStrategy)
-                .build();
+        return ImmutableShardAndStrategy.of(shard, sweepStrategy);
     }
 
     public static ShardAndStrategy conservative(int shard) {
-        return ShardAndStrategy.of(shard, SweeperStrategy.CONSERVATIVE);
+        return ImmutableShardAndStrategy.of(shard, SweeperStrategy.CONSERVATIVE);
     }
 
     public static ShardAndStrategy thorough(int shard) {
-        return ShardAndStrategy.of(shard, SweeperStrategy.THOROUGH);
+        return ImmutableShardAndStrategy.of(shard, SweeperStrategy.THOROUGH);
     }
 
     public static ShardAndStrategy nonSweepable() {u}(jS (914d867ae841df30303a097c21539e62c7f411aej Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/SweepQueueTable.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/c0372f1a94d62c728b6695ea8090c27d4b81f61c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepQueueTable.javaj https://github.com/palantir/atlasdb/raw/c0372f1a94d62c728b6695ea8090c27d4b81f61c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepQueueTable.javajč https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FSweepQueueTable.java?ref=c0372f1a94d62c728b6695ea8090c27d4b81f61cjƍ X{  @@ -55,6 +55,10 @@ public void enqueue(List<WriteInfo> allWrites) {
     }
 
     private void enqueueFiltered(Map<PartitionInfo, List<WriteInfo>> partitionedWrites) {
+        if (partitionedWrites.isEmpty()) {
+            return;
+        }
+
         Map<Cell, byte[]> referencesToDedicatedCells = new HashMap<>();
         Map<Cell, byte[]> cellsToWrite = new HashMap<>();
 u}(jS (ac0a8f06091a11835443cd19abb4a3d348a5f781j \atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitioner.javaj modifiedj K.j Kj KEj https://github.com/palantir/atlasdb/blob/c0372f1a94d62c728b6695ea8090c27d4b81f61c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj https://github.com/palantir/atlasdb/raw/c0372f1a94d62c728b6695ea8090c27d4b81f61c/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javajč https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.java?ref=c0372f1a94d62c728b6695ea8090c27d4b81f61cjƍ X  @@ -28,9 +28,12 @@
 import com.palantir.common.base.Throwables;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
-import java.util.Set;
+import java.util.Optional;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 
@@ -54,39 +57,59 @@ public WriteInfoPartitioner(KeyValueService kvs, Supplier<Integer> numShards) {
      * writes according to shard and strategy.
      */
     public Map<PartitionInfo, List<WriteInfo>> filterAndPartition(List<WriteInfo> writes) {
-        return writes.stream().collect(Collectors.groupingBy(WriteInfo::timestamp)).values().stream()
-                .map(this::filterAndPartitionForSingleTimestamp)
-                .map(Map::entrySet)
-                .flatMap(Set::stream)
-                .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
+        if (writes.isEmpty()) {
+            return Map.of();
+        }
+
+        Collection<List<WriteInfo>> partitionedWrites = writes.stream()
+                .collect(Collectors.groupingBy(WriteInfo::timestamp))
+                .values();
+
+        Map<PartitionInfo, List<WriteInfo>> writesPartitionedByTimestamp = new HashMap<>();
+        for (List<WriteInfo> writeInfos : partitionedWrites) {
+            filterAndPartitionForSingleTimestamp(writeInfos)
+                    .forEach((partition, writeInfo) -> writesPartitionedByTimestamp
+                            .computeIfAbsent(partition, _k -> new ArrayList<>())
+                            .addAll(writeInfo));
+        }
+        return writesPartitionedByTimestamp;
     }
 
     private Map<PartitionInfo, List<WriteInfo>> filterAndPartitionForSingleTimestamp(List<WriteInfo> writes) {
-        if (writes.stream().allMatch(writeInfo -> getStrategy(writeInfo) == SweeperStrategy.NON_SWEEPABLE)) {
-            long startTs = writes.stream().findFirst().get().timestamp();
-            return SweepQueueUtils.partitioningForNonSweepable(startTs);
+        if (writes.isEmpty()) {
+            return Map.of();
         }
-        return partitionWritesByShardStrategyTimestamp(writes);
-    }
 
-    private Map<PartitionInfo, List<WriteInfo>> partitionWritesByShardStrategyTimestamp(List<WriteInfo> writes) {
         int shards = numShards.get();
-        return writes.stream()
-                .filter(writeInfo -> getStrategy(writeInfo) != SweeperStrategy.NON_SWEEPABLE)
-                .collect(Collectors.groupingBy(write -> getPartitionInfo(write, shards), Collectors.toList()));
-    }
 
-    private PartitionInfo getPartitionInfo(WriteInfo write, int shards) {
-        return PartitionInfo.of(write.toShard(shards), getStrategy(write), write.timestamp());
+        // Note that we do a single pass over writes to determine their sweep strategy, and only add sweepable write to
+        // sweepablePartitionedWrites map, so when it is empty we consider all writes for that timestamp non-sweepable.
+        Map<PartitionInfo, List<WriteInfo>> sweepablePartitionedWrites = new HashMap<>();
+        for (WriteInfo writeInfo : writes) {
+            SweeperStrategy strategy = getStrategy(writeInfo);
+            if (strategy != SweeperStrategy.NON_SWEEPABLE) {
+                PartitionInfo partition = PartitionInfo.of(writeInfo.toShard(shards), strategy, writeInfo.timestamp());
+                sweepablePartitionedWrites
+                        .computeIfAbsent(partition, _k -> new ArrayList<>())
+                        .add(writeInfo);
+            }
+        }
+
+        if (sweepablePartitionedWrites.isEmpty()) {
+            // All writes for this partition are non-sweepable
+            long startTs = writes.stream().findFirst().orElseThrow().timestamp();
+            return SweepQueueUtils.partitioningForNonSweepable(startTs);
+        }
+        return sweepablePartitionedWrites;
     }
 
     @VisibleForTesting
     SweeperStrategy getStrategy(WriteInfo writeInfo) {
-        return writeInfo
-                .writeRef()
-                .map(WriteReference::tableRef)
-                .map(this::getStrategyForTable)
-                .orElse(SweeperStrategy.NON_SWEEPABLE);
+        Optional<WriteReference> writeReference = writeInfo.writeRef();
+        if (writeReference.isPresent()) {
+            return getStrategyForTable(writeReference.get().tableRef());
+        }
+        return SweeperStrategy.NON_SWEEPABLE;
     }
 
     SweeperStrategy getStrategyForTable(TableReference tableRef) {ueu(6afa0012dcacc15976938c17c83097f8744ab020}(sha(6afa0012dcacc15976938c17c83097f8744ab020node_idEC_kwDOAjP5fdoAKDZhZmEwMDEyZGNhY2MxNTk3NjkzOGMxN2M4MzA5N2Y4NzQ0YWIwMjAcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-07-25T16:18:30Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-07-25T16:18:30Zumessage"changing API to return result typetree}(j (2f437a97453e3817d3fbb2faddd2d68dd41ce8a3url`https://api.github.com/repos/palantir/atlasdb/git/trees/2f437a97453e3817d3fbb2faddd2d68dd41ce8a3uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6afa0012dcacc15976938c17c83097f8744ab020
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmS/9dYACgkQJd22kJ7J
Giy/GAgAp0E9kkPjudGh++VNCbq/tRgvpdC4OA7JW4DJVA+CNbEC3NLJrbV657eC
auV23TrTLZFcsSa9+eUhtxs6m0VDEa3BEplz6ZPI95rKXwYP6pxd79z5zl/mIWRE
GOET+EhXzQBbLK9AtilHG7401JojMJNTbK1Tn545ZDl9dxYc+DqAkZOn4KtYJPTL
Uj0p8mI7EGRrEhPGGgYJidaBGuwzxSrkENRVh9rj9mbAUwmmjNdNHlAoacfrKf0O
GF9qBPEiKpdplqXtKgGVpmqkw8FdsA2nEwLGskeMHSOG3uBtoSrQj5nEtqs8KkyH
PukcuY8BHQ3N27iYkw0CsMoKcRNoBQ==
=dHCU
-----END PGP SIGNATURE-----      payloadtree 2f437a97453e3817d3fbb2faddd2d68dd41ce8a3
parent f46733ead57b7a1fab526658650a4eb3dbecd1ad
author Lucas Meireles <meireles31@msn.com> 1690301910 +0100
committer Lucas Meireles <meireles31@msn.com> 1690301910 +0100

changing API to return result type
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/6afa0012dcacc15976938c17c83097f8744ab020html_urlShttps://github.com/palantir/atlasdb/commit/6afa0012dcacc15976938c17c83097f8744ab020comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6afa0012dcacc15976938c17c83097f8744ab020/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j
 LucasIMEj Jg j MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj  *https://api.github.com/users/LucasIME/orgsj" +https://api.github.com/users/LucasIME/reposj$ 6https://api.github.com/users/LucasIME/events{/privacy}j& 5https://api.github.com/users/LucasIME/received_eventsj( Userj* uparents]}(j (f46733ead57b7a1fab526658650a4eb3dbecd1adj ^https://api.github.com/repos/palantir/atlasdb/commits/f46733ead57b7a1fab526658650a4eb3dbecd1adj Shttps://github.com/palantir/atlasdb/commit/f46733ead57b7a1fab526658650a4eb3dbecd1aduastats}(totalM	additionsKʌ	deletionsK:ufiles](}(j (2dc21a70f02a91479a4ee1d67c291b482cd755c7filenameOatlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/Transaction.javastatusmodifiedjD KjE KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/6afa0012dcacc15976938c17c83097f8744ab020/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6afa0012dcacc15976938c17c83097f8744ab020/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fapi%2FTransaction.java?ref=6afa0012dcacc15976938c17c83097f8744ab020patchXR  @@ -26,9 +26,11 @@
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.spi.KeyValueServiceConfig;
 import com.palantir.atlasdb.transaction.api.annotations.ReviewedRestrictedApiUsage;
+import com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 import com.palantir.common.annotation.Idempotent;
 import com.palantir.common.base.BatchingVisitable;
+import com.palantir.util.result.Result;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
@@ -209,7 +211,7 @@ Iterator<Map.Entry<Cell, byte[]>> getSortedColumns(
             allowedOnPath = ".*/src/test/.*", // Unsafe behavior in tests is ok.
             allowlistAnnotations = {ReviewedRestrictedApiUsage.class})
     @Idempotent
-    Map<Cell, byte[]> getWithExpectedNumberOfCells(
+    Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells);
 
     /**u}(j (cb87fd51b2a8afbb329ae8267c828392eec05da6jJ Zatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CachingTransaction.javajL modifiedjD K jE KjN K(jO https://github.com/palantir/atlasdb/blob/6afa0012dcacc15976938c17c83097f8744ab020/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javajQ https://github.com/palantir/atlasdb/raw/6afa0012dcacc15976938c17c83097f8744ab020/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.java?ref=6afa0012dcacc15976938c17c83097f8744ab020jU XS  @@ -34,12 +34,15 @@
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionFailedException;
 import com.palantir.atlasdb.transaction.api.annotations.ReviewedRestrictedApiUsage;
+import com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 import com.palantir.common.base.Throwables;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.util.Pair;
+import com.palantir.util.result.Result;
+import com.palantir.util.result.Result.Ok;
 import java.util.Arrays;
 import java.util.Collection;
 import java.util.Collections;
@@ -138,10 +141,10 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
 
     @ReviewedRestrictedApiUsage
     @Override
-    public Map<Cell, byte[]> getWithExpectedNumberOfCells(
+    public Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {
         try {
-            return getWithLoader(tableRef, cells, (tableReference, cachedCells, toRead) -> {
+            return getWithResultLoader(tableRef, cells, (tableReference, cachedCells, toRead) -> {
                         long nonEmptyValuesInCache = cachedCells.values().stream()
                                 .filter(value -> !Arrays.equals(value, PtBytes.EMPTY_BYTE_ARRAY))
                                 .count();
@@ -162,10 +165,10 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(TableReference tableRef, Set
         return getWithLoader(tableRef, cells, (table, _cacheCells, cellsToLoad) -> super.getAsync(table, cellsToLoad));
     }
 
-    private ListenableFuture<Map<Cell, byte[]>> getWithLoader(
-            TableReference tableRef, Set<Cell> cells, CellLoader cellLoader) {
+    private ListenableFuture<Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException>> getWithResultLoader(
+            TableReference tableRef, Set<Cell> cells, CellResultLoader cellLoader) {
         if (cells.isEmpty()) {
-            return Futures.immediateFuture(ImmutableMap.of());
+            return Futures.immediateFuture(new Result.Ok<>(ImmutableMap.of()));
         }
 
         Set<Cell> toLoad = new HashSet<>();
@@ -184,13 +187,28 @@ private ListenableFuture<Map<Cell, byte[]>> getWithLoader(
         return Futures.transform(
                 cellLoader.load(tableRef, cacheHit, toLoad),
                 loadedCells -> {
-                    cacheLoadedCells(tableRef, toLoad, loadedCells);
-                    cacheHit.putAll(loadedCells);
-                    return cacheHit;
+                    if (loadedCells.isErr()) {
+                        return loadedCells;
+                    }
+
+                    cacheLoadedCells(tableRef, toLoad, loadedCells.unwrap());
+                    cacheHit.putAll(loadedCells.unwrap());
+                    return new Ok<>(cacheHit);
                 },
                 MoreExecutors.directExecutor());
     }
 
+    private ListenableFuture<Map<Cell, byte[]>> getWithLoader(
+            TableReference tableRef, Set<Cell> cells, CellLoader cellLoader) {
+        CellResultLoader resultLoader = (table, cacheCells, cellsToLoad) -> {
+            ListenableFuture<Map<Cell, byte[]>> future = cellLoader.load(table, cacheCells, cellsToLoad);
+            return Futures.transform(future, response -> new Result.Ok<>(response), MoreExecutors.directExecutor());
+        };
+
+        return Futures.transform(
+                getWithResultLoader(tableRef, cells, resultLoader), Result::unwrap, MoreExecutors.directExecutor());
+    }
+
     @Override
     public final void delete(TableReference tableRef, Set<Cell> cells) {
         super.delete(tableRef, cells);
@@ -300,4 +318,10 @@ private interface CellLoader {
         ListenableFuture<Map<Cell, byte[]>> load(
                 TableReference tableReference, Map<Cell, byte[]> cachedCells, Set<Cell> toRead);
     }
+
+    @FunctionalInterface
+    private interface CellResultLoader {
+        ListenableFuture<Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException>> load(
+                TableReference tableReference, Map<Cell, byte[]> cachedCells, Set<Cell> toRead);
+    }
 }u}(j (4a6f334414362595b4cacd610bdf15c6ee2b0976jJ ]atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ForwardingTransaction.javajL modifiedjD KjE KjN KjO https://github.com/palantir/atlasdb/blob/6afa0012dcacc15976938c17c83097f8744ab020/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.javajQ https://github.com/palantir/atlasdb/raw/6afa0012dcacc15976938c17c83097f8744ab020/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FForwardingTransaction.java?ref=6afa0012dcacc15976938c17c83097f8744ab020jU XQ  @@ -30,8 +30,10 @@
 import com.palantir.atlasdb.transaction.api.TransactionFailedException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.annotations.ReviewedRestrictedApiUsage;
+import com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException;
 import com.palantir.atlasdb.transaction.service.TransactionService;
 import com.palantir.common.base.BatchingVisitable;
+import com.palantir.util.result.Result;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
@@ -86,7 +88,7 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
 
     @ReviewedRestrictedApiUsage
     @Override
-    public Map<Cell, byte[]> getWithExpectedNumberOfCells(
+    public Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {
         return delegate().getWithExpectedNumberOfCells(tableRef, cells, expectedNumberOfPresentCells);
     }u}(j (e941b3dfee2e88588264aa8255d7f1d655ebe74ejJ Watlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ReadTransaction.javajL modifiedjD KjE KjN KjO https://github.com/palantir/atlasdb/blob/6afa0012dcacc15976938c17c83097f8744ab020/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javajQ https://github.com/palantir/atlasdb/raw/6afa0012dcacc15976938c17c83097f8744ab020/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FReadTransaction.java?ref=6afa0012dcacc15976938c17c83097f8744ab020jU X~  @@ -27,9 +27,11 @@
 import com.palantir.atlasdb.table.description.SweeperStrategy;
 import com.palantir.atlasdb.transaction.api.GetRangesQuery;
 import com.palantir.atlasdb.transaction.api.annotations.ReviewedRestrictedApiUsage;
+import com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException;
 import com.palantir.common.base.BatchingVisitable;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import com.palantir.util.result.Result;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NavigableMap;
@@ -67,7 +69,7 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
 
     @ReviewedRestrictedApiUsage
     @Override
-    public Map<Cell, byte[]> getWithExpectedNumberOfCells(
+    public Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {
         checkTableName(tableRef);
         return delegate.getWithExpectedNumberOfCells(tableRef, cells, expectedNumberOfPresentCells);u}(j (0399007afe04f3afcc8dc0bf29f721e87909d34ejJ Batlasdb-commons/src/main/java/com/palantir/util/result/Result.javajL addedjD KHjE K jN KHjO https://github.com/palantir/atlasdb/blob/6afa0012dcacc15976938c17c83097f8744ab020/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FResult.javajQ https://github.com/palantir/atlasdb/raw/6afa0012dcacc15976938c17c83097f8744ab020/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FResult.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FResult.java?ref=6afa0012dcacc15976938c17c83097f8744ab020jU X  @@ -0,0 +1,72 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util.result;
+
+import com.palantir.logsafe.exceptions.SafeRuntimeException;
+
+public abstract class Result<T, E> {
+
+    private Result() {}
+
+    public static final class Ok<T, E> extends Result<T, E> {
+        private final T value;
+
+        public Ok(T value) {
+            this.value = value;
+        }
+
+        public T getValue() {
+            return value;
+        }
+    }
+
+    public static final class Err<T, E> extends Result<T, E> {
+        private final E error;
+
+        public Err(E error) {
+            this.error = error;
+        }
+
+        public E getError() {
+            return error;
+        }
+    }
+
+    public boolean isOk() {
+        return this instanceof Ok;
+    }
+
+    public boolean isErr() {
+        return this instanceof Err;
+    }
+
+    public T unwrap() {
+        if (this instanceof Ok) {
+            return ((Ok<T, E>) this).getValue();
+        } else {
+            throw new SafeRuntimeException("Called unwrap() on an Err value");
+        }
+    }
+
+    public E unwrapErr() {
+        if (this instanceof Err) {
+            return ((Err<T, E>) this).getError();
+        } else {
+            throw new SafeRuntimeException("Called unwrapErr() on an Ok value");
+        }
+    }
+}u}(j (93834e90903afc274d232129ca018dd264bb891bjJ datlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.javajL modifiedjD KjE KjN KjO https://github.com/palantir/atlasdb/blob/6afa0012dcacc15976938c17c83097f8744ab020/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javajQ https://github.com/palantir/atlasdb/raw/6afa0012dcacc15976938c17c83097f8744ab020/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.java?ref=6afa0012dcacc15976938c17c83097f8744ab020jU X
  @@ -64,6 +64,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.TransactionSerializableConflictException;
 import com.palantir.atlasdb.transaction.api.annotations.ReviewedRestrictedApiUsage;
+import com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.knowledge.TransactionKnowledgeComponents;
 import com.palantir.atlasdb.transaction.service.AsyncTransactionService;
@@ -84,6 +85,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.util.Pair;
+import com.palantir.util.result.Result;
 import java.nio.ByteBuffer;
 import java.util.ArrayList;
 import java.util.Collections;
@@ -324,10 +326,10 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
     @ReviewedRestrictedApiUsage
     @Override
     @Idempotent
-    public Map<Cell, byte[]> getWithExpectedNumberOfCells(
+    public Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {
         try {
-            return getWithLoader(
+            return getWithResultLoader(
                             tableRef,
                             cells,
                             (tableReference, toRead) -> Futures.immediateFuture(super.getWithExpectedNumberOfCells(
@@ -351,10 +353,25 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(TableReference tableRef, Set
      */
     private ListenableFuture<Map<Cell, byte[]>> getWithLoader(
             TableReference tableRef, Set<Cell> cells, CellLoader cellLoader) {
+        CellResultLoader resultLoader = (table, toRead) -> {
+            ListenableFuture<Map<Cell, byte[]>> future = cellLoader.load(table, toRead);
+            return Futures.transform(future, response -> new Result.Ok<>(response), MoreExecutors.directExecutor());
+        };
+
+        return Futures.transform(
+                getWithResultLoader(tableRef, cells, resultLoader), Result::unwrap, MoreExecutors.directExecutor());
+    }
+
+    private ListenableFuture<Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException>> getWithResultLoader(
+            TableReference tableRef, Set<Cell> cells, CellResultLoader cellLoader) {
         return Futures.transform(
                 cellLoader.load(tableRef, cells),
                 loadedCells -> {
-                    markCellsRead(tableRef, cells, loadedCells);
+                    if (loadedCells.isErr()) {
+                        return loadedCells;
+                    }
+
+                    markCellsRead(tableRef, cells, loadedCells.unwrap());
                     return loadedCells;
                 },
                 MoreExecutors.directExecutor());
@@ -365,6 +382,12 @@ private interface CellLoader {
         ListenableFuture<Map<Cell, byte[]>> load(TableReference tableReference, Set<Cell> toRead);
     }
 
+    @FunctionalInterface
+    private interface CellResultLoader {
+        ListenableFuture<Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException>> load(
+                TableReference tableReference, Set<Cell> toRead);
+    }
+
     @Override
     @Idempotent
     public BatchingVisitable<RowResult<byte[]>> getRange(TableReference tableRef, RangeRequest rangeRequest) {u}(j (73ad23b0b2719d2d6a57d3b6c7c79a1ce0423f7ajJ `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javajL modifiedjD KjE KjN K"jO https://github.com/palantir/atlasdb/blob/6afa0012dcacc15976938c17c83097f8744ab020/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajQ https://github.com/palantir/atlasdb/raw/6afa0012dcacc15976938c17c83097f8744ab020/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=6afa0012dcacc15976938c17c83097f8744ab020jU X  @@ -97,6 +97,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException;
 import com.palantir.atlasdb.transaction.api.expectations.ImmutableTransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo;
@@ -145,6 +146,7 @@
 import com.palantir.util.AssertUtils;
 import com.palantir.util.RateLimitedLogger;
 import com.palantir.util.paging.TokenBackedBasicResultsPage;
+import com.palantir.util.result.Result;
 import java.nio.ByteBuffer;
 import java.time.Duration;
 import java.time.temporal.ChronoUnit;
@@ -920,21 +922,25 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
     }
 
     @Override
-    public Map<Cell, byte[]> getWithExpectedNumberOfCells(
+    public Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {
-        return getCache().getWithCachedRef(tableRef, cells, cacheLookupResult -> {
-            long cachedCellsWithNonEmptyValue = CellCountValidator.validateCacheAndGetNonEmptyValuesCount(
-                    expectedNumberOfPresentCells, cacheLookupResult.cacheHits());
-            long numberOfCellsExpectingValuePostCache = expectedNumberOfPresentCells - cachedCellsWithNonEmptyValue;
-
-            return getInternal(
-                    "getWithExpectedNumberOfCells",
-                    tableRef,
-                    cacheLookupResult.missedCells(),
-                    numberOfCellsExpectingValuePostCache,
-                    immediateKeyValueService,
-                    immediateTransactionService);
-        });
+        try {
+            return new Result.Ok<>(getCache().getWithCachedRef(tableRef, cells, cacheLookupResult -> {
+                long cachedCellsWithNonEmptyValue = CellCountValidator.validateCacheAndGetNonEmptyValuesCount(
+                        expectedNumberOfPresentCells, cacheLookupResult.cacheHits());
+                long numberOfCellsExpectingValuePostCache = expectedNumberOfPresentCells - cachedCellsWithNonEmptyValue;
+
+                return getInternal(
+                        "getWithExpectedNumberOfCells",
+                        tableRef,
+                        cacheLookupResult.missedCells(),
+                        numberOfCellsExpectingValuePostCache,
+                        immediateKeyValueService,
+                        immediateTransactionService);
+            }));
+        } catch (MoreCellsPresentThanExpectedException e) {
+            return new Result.Err<>(e);
+        }
     }
 
     @Overrideu}(j (ae940a9206eb38e0acb2f3b759f692435ff4c5c8jJ eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javajL modifiedjD K+jE KjN KIjO https://github.com/palantir/atlasdb/blob/6afa0012dcacc15976938c17c83097f8744ab020/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajQ https://github.com/palantir/atlasdb/raw/6afa0012dcacc15976938c17c83097f8744ab020/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajS https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=6afa0012dcacc15976938c17c83097f8744ab020jU X%  @@ -103,8 +103,8 @@
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
+import com.palantir.atlasdb.transaction.api.exceptions.MoreCellsPresentThanExpectedException;
 import com.palantir.atlasdb.transaction.api.expectations.TransactionCommitLockInfo;
-import com.palantir.atlasdb.transaction.impl.expectations.ExpectedCellsContainingValueValidator.MoreCellsPresentThanExpectedException;
 import com.palantir.atlasdb.transaction.impl.metrics.DefaultMetricsFilterEvaluationContext;
 import com.palantir.atlasdb.transaction.impl.metrics.TableLevelMetricsController;
 import com.palantir.atlasdb.transaction.impl.metrics.ToplistDeltaFilteringTableLevelMetricsController;
@@ -134,6 +134,7 @@
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
+import com.palantir.util.result.Result;
 import io.vavr.collection.HashMap;
 import io.vavr.collection.HashSet;
 import java.math.BigInteger;
@@ -1661,7 +1662,11 @@ public void skipImmutableTimestampLockCheckIfReadingEqualsExpectedNumberOfValues
         Transaction transaction = getSnapshotTransactionWith(
                 spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
 
-        transaction.getWithExpectedNumberOfCells(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 1);
+        Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> result =
+                transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 1);
+        assertThat(result.isOk()).isTrue();
+
         transaction.commit();
         spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
 
@@ -1679,8 +1684,10 @@ public void performImmutableTimestampLocksIfReadingLessThanExpectedNumberOfValue
         Transaction transaction = getSnapshotTransactionWith(
                 spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
 
-        transaction.getWithExpectedNumberOfCells(
-                TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2);
+        Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> result =
+                transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2);
+        assertThat(result.isOk()).isTrue();
         transaction.commit();
         spiedTimeLockService.unlock(ImmutableSet.of(res.getLock()));
 
@@ -1698,10 +1705,11 @@ public void throwsIfReadingMoreThanExpectedNumberOfValues() {
         Transaction transaction = getSnapshotTransactionWith(
                 spiedTimeLockService, () -> transactionTs, res, PreCommitConditions.NO_OP, true);
 
-        assertThatThrownBy(() -> transaction.getWithExpectedNumberOfCells(
-                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 1))
-                .isInstanceOf(MoreCellsPresentThanExpectedException.class)
-                .hasMessageContaining("KeyValueService returned more results than Get expected");
+        Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> result =
+                transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 1);
+        assertThat(result.isErr()).isTrue();
+        assertThat(result.unwrapErr().getFetchedCells()).containsKeys(TEST_CELL, TEST_CELL_2);
 
         verify(spiedTimeLockService, never()).refreshLockLeases(any());
     }
@@ -1728,9 +1736,10 @@ public void keepNumberOfExpectedCellsTheSameIfNoneCached() {
         Transaction transaction = transactionWrapper.apply(spiedSnapshotTransaction, pathTypeTracker);
 
         // Fetching 3 cells, but expect only 2 to be present, for example
-        assertThatCode(() -> transaction.getWithExpectedNumberOfCells(
-                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2))
-                .doesNotThrowAnyException();
+        Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> result =
+                transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2);
+        assertThat(result.isOk()).isTrue();
 
         // We shouldn't check for locks even though we haven't fetched all 3 cells, because we fetched 2 and passed
         // that as the expected value
@@ -1766,9 +1775,10 @@ public void reduceCachedCellsFromNumberOfExpectedCells() {
         Transaction transaction = transactionWrapper.apply(spiedSnapshotTransaction, pathTypeTracker);
 
         // Fetching 3 cells, but expect only 2 to be present, for example
-        assertThatCode(() -> transaction.getWithExpectedNumberOfCells(
-                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2))
-                .doesNotThrowAnyException();
+        Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> result =
+                transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2);
+        assertThat(result.isOk()).isTrue();
 
         // We shouldn't check for locks even though we haven't fetched all 3 cells, because we fetched 2 and passed
         // that as the expected value
@@ -1804,9 +1814,10 @@ public void keepNumberOfExpectedCellsIfCachedWithEmptyValue() {
         Transaction transaction = transactionWrapper.apply(spiedSnapshotTransaction, pathTypeTracker);
 
         // Fetching 3 cells, but expect only 2 to be present, for example
-        assertThatCode(() -> transaction.getWithExpectedNumberOfCells(
-                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2))
-                .doesNotThrowAnyException();
+        Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> result =
+                transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2, TEST_CELL_3), 2);
+        assertThat(result.isOk()).isTrue();
 
         // We shouldn't check for locks even though we haven't fetched all 3 cells, because we fetched 2 and passed
         // that as the expected value
@@ -1847,9 +1858,10 @@ public void dontFetchCellsIfAllCachedButPropagateWithEmptyRequest() {
                 spy(getSnapshotTransactionWith(transactionTs, res, mockLockWatchManager, pathTypeTracker));
         Transaction transaction = transactionWrapper.apply(spiedSnapshotTransaction, pathTypeTracker);
 
-        assertThatCode(() -> transaction.getWithExpectedNumberOfCells(
-                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 2))
-                .doesNotThrowAnyException();
+        Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> result =
+                transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 2);
+        assertThat(result.isOk()).isTrue();
 
         verify(spiedTimeLockService, never()).refreshLockLeases(any());
         verify(spiedSnapshotTransaction)
@@ -1870,13 +1882,12 @@ public void throwsIfAllValuesCachedButMoreThanExpectedPresent() {
         long transactionTs = spiedTimeLockService.getFreshTimestamp();
         LockImmutableTimestampResponse res = spiedTimeLockService.lockImmutableTimestamp();
 
-        TransactionScopedCache txnCache = createCacheWithEntries(
-                TABLE_SWEPT_THOROUGH,
-                Map.of(
-                        TEST_CELL,
-                        "someValue".getBytes(StandardCharsets.UTF_8),
-                        TEST_CELL_2,
-                        "someOtherValue".getBytes(StandardCharsets.UTF_8)));
+        Map<Cell, byte[]> cacheContent = Map.of(
+                TEST_CELL,
+                "someValue".getBytes(StandardCharsets.UTF_8),
+                TEST_CELL_2,
+                "someOtherValue".getBytes(StandardCharsets.UTF_8));
+        TransactionScopedCache txnCache = createCacheWithEntries(TABLE_SWEPT_THOROUGH, cacheContent);
 
         LockWatchManagerInternal mockLockWatchManager = mock(LockWatchManagerInternal.class);
         when(mockLockWatchManager.getTransactionScopedCache(anyLong())).thenReturn(txnCache);
@@ -1886,9 +1897,11 @@ public void throwsIfAllValuesCachedButMoreThanExpectedPresent() {
                 spy(getSnapshotTransactionWith(transactionTs, res, mockLockWatchManager, pathTypeTracker));
         Transaction transaction = transactionWrapper.apply(spiedSnapshotTransaction, pathTypeTracker);
 
-        assertThatThrownBy(() -> transaction.getWithExpectedNumberOfCells(
-                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 1))
-                .isInstanceOf(MoreCellsPresentThanExpectedException.class);
+        Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> result =
+                transaction.getWithExpectedNumberOfCells(
+                        TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2), 1);
+        assertThat(result.isErr()).isTrue();
+        assertThat(result.unwrapErr().getFetchedCells()).isEqualTo(cacheContent);
 
         verify(spiedTimeLockService, never()).refreshLockLeases(any());
         verify(spiedSnapshotTransaction, never())ueu(845a23fc863a5289ff186fc6e6a5652496e8e1b4}(sha(845a23fc863a5289ff186fc6e6a5652496e8e1b4node_idEC_kwDOAjP5fdoAKDg0NWEyM2ZjODYzYTUyODlmZjE4NmZjNmU2YTU2NTI0OTZlOGUxYjQcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-12T12:48:55Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-06-12T12:48:55ZumessageMove readonly test uptree}(j (f16650f4fce296051aa253757a21a94660d36b32url`https://api.github.com/repos/palantir/atlasdb/git/trees/f16650f4fce296051aa253757a21a94660d36b32uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/845a23fc863a5289ff186fc6e6a5652496e8e1b4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSHFDcACgkQmF9s0kaF
Iw1IBQgAgDgaR+iY5mfyz7gGLpr6mYGnSaM4LVamFrdlpkhIpZwJzvTP3I8s6dOa
vcYGe/+2c5uVE8VJJfKn66hhnNQt/8m77PxYCfv2EVtyHpB3StwCOG7xdKo9iIk/
loe+WoG8lBnMNLl7BZOgz0a62FbVAToWCDDzmBeZxMnGfQt2T5BJ90ABwCejYuPY
R/Eg1UFS1xP0EVoucORB6Yz2b6Sf/BS+pawaR7HPTky36vPfhlAB8KfDziaAFWiA
uOR9FjeicBqjLkzuP/Ob60Yrp1/ZOmzO8zVpL1KKVzSA1UU2/K3zOPG/SROrnOIt
wx5Xsfw3KwC/Ipw5k5BxbgsBlmpLUg==
=zbIo
-----END PGP SIGNATURE-----payloadtree f16650f4fce296051aa253757a21a94660d36b32
parent 62315ea6575bd563c49c114a39b0516bebc46843
author Tom Papke <tpapke@palantir.com> 1686574135 +0100
committer Tom Papke <tpapke@palantir.com> 1686574135 +0100

Move readonly test up
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/845a23fc863a5289ff186fc6e6a5652496e8e1b4html_urlShttps://github.com/palantir/atlasdb/commit/845a23fc863a5289ff186fc6e6a5652496e8e1b4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/845a23fc863a5289ff186fc6e6a5652496e8e1b4/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jboj MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/ToemmschejŎ 0https://api.github.com/users/Toemmsche/followersjǎ =https://api.github.com/users/Toemmsche/following{/other_user}jɎ 6https://api.github.com/users/Toemmsche/gists{/gist_id}jˎ =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j͎ 4https://api.github.com/users/Toemmsche/subscriptionsjώ +https://api.github.com/users/Toemmsche/orgsjю ,https://api.github.com/users/Toemmsche/reposjӎ 7https://api.github.com/users/Toemmsche/events{/privacy}jՎ 6https://api.github.com/users/Toemmsche/received_eventsj׎ Userjَ uparents]}(j (62315ea6575bd563c49c114a39b0516bebc46843j ^https://api.github.com/repos/palantir/atlasdb/commits/62315ea6575bd563c49c114a39b0516bebc46843j Shttps://github.com/palantir/atlasdb/commit/62315ea6575bd563c49c114a39b0516bebc46843uastats}(totalK
	additionsK
	deletionsK ufiles]}(j (9abedd87ab4bb8cade6bbbd956e355a2b319e5d2filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedj K
j K changesK
blob_urlhttps://github.com/palantir/atlasdb/blob/845a23fc863a5289ff186fc6e6a5652496e8e1b4/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/845a23fc863a5289ff186fc6e6a5652496e8e1b4/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=845a23fc863a5289ff186fc6e6a5652496e8e1b4patchX  @@ -2372,6 +2372,19 @@ public void testConstraintsViolated() {
                         eq(AtlasDbConstraintCheckingMode.FULL_CONSTRAINT_CHECKING_THROWS_EXCEPTIONS));
     }
 
+    @Test
+    public void setsRequestedCommitLocksCountCorrectly_readOnlyTransaction() {
+        SnapshotTransaction txn = unwrapSnapshotTransaction(txManager.createNewTransaction());
+        txn.get(TABLE, ImmutableSet.of(TEST_CELL));
+        txn.commit();
+
+        TransactionCommitLockInfo commitLockInfo = txn.getCommitLockInfo();
+
+        assertThat(commitLockInfo.cellCommitLocksRequested()).isEqualTo(0);
+        // Since this is a read-only transaction, we should not even lock a row in the transaction table itself
+        assertThat(commitLockInfo.rowCommitLocksRequested()).isEqualTo(0);
+    }
+
     @Test
     public void setsRequestedCommitLocksCountCorrectly_serializableCell() {
         // Will request commit locks for cells, but not rowsuau(9a836cf935bb0af10bb1d149cd9073d2a50c5343}(sha(9a836cf935bb0af10bb1d149cd9073d2a50c5343node_idEC_kwDOAjP5fdoAKDlhODM2Y2Y5MzViYjBhZjEwYmIxZDE0OWNkOTA3M2QyYTUwYzUzNDMcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-08-08T09:25:20Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-08-08T09:25:20Zumessage	Fix teststree}(j (a42f4a1ce1c748ff342bc663729e8e4c31816007url`https://api.github.com/repos/palantir/atlasdb/git/trees/a42f4a1ce1c748ff342bc663729e8e4c31816007uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9a836cf935bb0af10bb1d149cd9073d2a50c5343
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmTSCgAACgkQmF9s0kaF
Iw3EvAgAw9emebjm0z5Y7NlQxvZ3ogquD37goXGIbgv+w1kX/744Avg8PKmDJJv7
ZPcxPqMYM9qchZb5OvT9K2HWQZNwwjH9MLRS3tI9d2GbM3fHhwGTY0IUXETWx9y+
J2LFwwnhNaL77MHUEm3PEOk5j9dnBwOzZfiXJU8sLW9r783lwb+wzQk0VsXizp3n
Nib1iJ++E8JkwveuQ/s+hkiFuhhkPX4DUBpSHWy5rEkidzlJe7G52QmJFNNJpqpn
g/omwtISVlaF1Jajd6IRJ85tEU8boJI+odsXS5ki2Y+dSYLz0p/LNT6PQ6+W/5J9
dFQWVgnNsUSkeK7ZPxhi0KxQ2ZDl3w==
=Lnkp
-----END PGP SIGNATURE-----payloadtree a42f4a1ce1c748ff342bc663729e8e4c31816007
parent d6e774d1d20c6a0b20abf9fe74db2fd3c42f4050
author Tom Papke <tpapke@palantir.com> 1691486720 +0100
committer Tom Papke <tpapke@palantir.com> 1691486720 +0100

Fix tests
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/9a836cf935bb0af10bb1d149cd9073d2a50c5343html_urlShttps://github.com/palantir/atlasdb/commit/9a836cf935bb0af10bb1d149cd9073d2a50c5343comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9a836cf935bb0af10bb1d149cd9073d2a50c5343/commentsj }(login	ToemmscheidJboj
 MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j  &https://api.github.com/users/Toemmschej. https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j3 	Toemmschej5 Jboj
 MDQ6VXNlcjQzNjc1NDkwj7 4https://avatars.githubusercontent.com/u/43675490?v=4j9 h5j  &https://api.github.com/users/Toemmschej. https://github.com/Toemmschej< 0https://api.github.com/users/Toemmsche/followersj> =https://api.github.com/users/Toemmsche/following{/other_user}j@ 6https://api.github.com/users/Toemmsche/gists{/gist_id}jB =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jD 4https://api.github.com/users/Toemmsche/subscriptionsjF +https://api.github.com/users/Toemmsche/orgsjH ,https://api.github.com/users/Toemmsche/reposjJ 7https://api.github.com/users/Toemmsche/events{/privacy}jL 6https://api.github.com/users/Toemmsche/received_eventsjN UserjP uparents]}(j (d6e774d1d20c6a0b20abf9fe74db2fd3c42f4050j  ^https://api.github.com/repos/palantir/atlasdb/commits/d6e774d1d20c6a0b20abf9fe74db2fd3c42f4050j. Shttps://github.com/palantir/atlasdb/commit/d6e774d1d20c6a0b20abf9fe74db2fd3c42f4050uastats}(totalK	additionsK
	deletionsK
ufiles](}(j (0d66e962e2749c4258d6225141bf96736fb4d6abfilenameaatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/LocalWriteBufferTest.javastatusmodifiedjj Kjk KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9a836cf935bb0af10bb1d149cd9073d2a50c5343/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9a836cf935bb0af10bb1d149cd9073d2a50c5343/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FLocalWriteBufferTest.java?ref=9a836cf935bb0af10bb1d149cd9073d2a50c5343patchXj  @@ -30,6 +30,7 @@
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.logging.LoggingArgs;
 import com.palantir.common.concurrent.PTExecutors;
 import com.palantir.lock.watch.ChangeMetadata;
 import com.palantir.logsafe.UnsafeArg;
@@ -137,8 +138,7 @@ public void cannotPutMetadataWithoutAssociatedWrite() {
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasLogMessage("Every metadata we put must be associated with a write")
                 .hasExactlyArgs(
-                        UnsafeArg.of("tableRef", TABLE),
-                        UnsafeArg.of("cellsWithOnlyMetadata", ImmutableSet.of(CELL_1)));
+                        LoggingArgs.tableRef(TABLE), UnsafeArg.of("cellsWithOnlyMetadata", ImmutableSet.of(CELL_1)));
     }
 
     /**
@@ -205,9 +205,7 @@ public void writingValueAndMetadataIsAtomicWhenOverwritingWithSameValue()
                             ? ImmutableList.of(task1, task2)
                             : ImmutableList.of(task2, task1))
                     .stream().map(concurrentExecutor::submit).collect(Collectors.toUnmodifiableList());
-            Futures.whenAllSucceed(futures)
-                    .call(() -> null, MoreExecutors.directExecutor())
-                    .get(20, TimeUnit.SECONDS);
+            Futures.whenAllSucceed(futures).call(() -> null, DIRECT_EXECUTOR).get(20, TimeUnit.SECONDS);
 
             byte[] currentValue = buffer.getLocalWritesForTable(TABLE).get(CELL_1);
             ChangeMetadata currentMetadata =u}(j (a61e945b164e1f5ad399c1c8e0b0b672c726a144jp eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javajr modifiedjj Kjk Kjt Kju https://github.com/palantir/atlasdb/blob/9a836cf935bb0af10bb1d149cd9073d2a50c5343/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajw https://github.com/palantir/atlasdb/raw/9a836cf935bb0af10bb1d149cd9073d2a50c5343/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajy https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=9a836cf935bb0af10bb1d149cd9073d2a50c5343j{ X	  @@ -74,6 +74,7 @@
 import com.palantir.atlasdb.keyvalue.api.watch.LocksAndMetadata;
 import com.palantir.atlasdb.keyvalue.api.watch.NoOpLockWatchManager;
 import com.palantir.atlasdb.keyvalue.impl.ForwardingKeyValueService;
+import com.palantir.atlasdb.logging.LoggingArgs;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence.SweepStrategy;
 import com.palantir.atlasdb.ptobject.EncodingUtils;
 import com.palantir.atlasdb.sweep.queue.MultiTableSweepQueueWriter;
@@ -2618,10 +2619,11 @@ public void metadataIsTransferredToRowLocks() {
                         TABLE2,
                         Optional.of(ConflictHandler.SERIALIZABLE)));
 
-        txn.put(
-                TABLE, ImmutableMap.of(Cell.create(ROW_FOO, COL_A), TEST_VALUE));
+        txn.put(TABLE, ImmutableMap.of(Cell.create(ROW_FOO, COL_A), TEST_VALUE));
         txn.putWithMetadata(
-                TABLE, ImmutableMap.of(Cell.create(ROW_FOO, COL_B), ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA)));
+                TABLE,
+                ImmutableMap.of(
+                        Cell.create(ROW_FOO, COL_B), ValueAndChangeMetadata.of(TEST_VALUE, UPDATE_CHANGE_METADATA)));
         txn.putWithMetadata(
                 TABLE2, ImmutableMap.of(TEST_CELL, ValueAndChangeMetadata.of(TEST_VALUE, UNCHANGED_CHANGE_METADATA)));
 
@@ -2633,10 +2635,7 @@ public void metadataIsTransferredToRowLocks() {
                 LocksAndMetadata.of(
                         ImmutableSet.of(rowLock, rowLock2),
                         Optional.of(LockRequestMetadata.of(ImmutableMap.of(
-                                rowLock,
-                                UPDATE_CHANGE_METADATA,
-                                rowLock2,
-                                UNCHANGED_CHANGE_METADATA)))));
+                                rowLock, UPDATE_CHANGE_METADATA, rowLock2, UNCHANGED_CHANGE_METADATA)))));
     }
 
     @Test
@@ -2741,7 +2740,7 @@ public void commitFailsIfMultipleCellsInSameRowHaveMetadataAndUsingRowLocks() {
                 .isInstanceOf(SafeIllegalStateException.class)
                 .hasLogMessage("Two different cells in the same row have metadata and we create locks on row level.")
                 .hasExactlyArgs(
-                        UnsafeArg.of("tableRef", TABLE),
+                        LoggingArgs.tableRef(TABLE),
                         UnsafeArg.of("rowName", cell1.getRowName()),
                         UnsafeArg.of("newMetadata", UPDATE_CHANGE_METADATA));
     }ueu(a6c1d6ca86cc3e88e1e8ca3fc1a90048f3b2624c}(sha(a6c1d6ca86cc3e88e1e8ca3fc1a90048f3b2624cnode_idEC_kwDOAjP5fdoAKGE2YzFkNmNhODZjYzNlODhlMWU4Y2EzZmMxYTkwMDQ4ZjNiMjYyNGMcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-19T14:10:36Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-06-19T14:10:36Zumessage,dont auto delegate, but implement explicitlytree}(j (58efdf79958271368a14424bd5a7d691388c345burl`https://api.github.com/repos/palantir/atlasdb/git/trees/58efdf79958271368a14424bd5a7d691388c345buj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a6c1d6ca86cc3e88e1e8ca3fc1a90048f3b2624c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSQYdwACgkQJd22kJ7J
GiwhsggAxLxYdhARGrGCeoiC4drPdyfGgEOafHbOt1sD8JfIndpzhnhhu9na+/5q
yCBrwdPlPJxhzhJwKSCpiV12yg586gFDak8peZv8kcVPJmELUMMODOvjUqurjOO9
5hDavtZSQk6Ds2WU3KqZ1GTrqNU1wEw3OmFoTf0/aQdaNa+LBch8/luldBek8Y77
Ox6aiibsZOdhpFD/sxN0+FPeARYxZJBz9N25o2gEZg+x1ttwKUtmZ7Y2xgZei56z
wkDCTZBoiZZkiSmrfzlvHgnMxBn1RqEE3oG5oOXurzssohqpGlIoK0kF0G1y5as6
vHcpZ0738QEC1wfeQ9d4NZlGiadgsQ==
=iU2b
-----END PGP SIGNATURE-----payloadX  tree 58efdf79958271368a14424bd5a7d691388c345b
parent 62b719d512fb3e48b558173d42d798be77bdd43d
author Lucas Meireles <meireles31@msn.com> 1687183836 +0100
committer Lucas Meireles <meireles31@msn.com> 1687183836 +0100

dont auto delegate, but implement explicitly
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/a6c1d6ca86cc3e88e1e8ca3fc1a90048f3b2624chtml_urlShttps://github.com/palantir/atlasdb/commit/a6c1d6ca86cc3e88e1e8ca3fc1a90048f3b2624ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a6c1d6ca86cc3e88e1e8ca3fc1a90048f3b2624c/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j LucasIMEj Jg j MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jÏ 3https://api.github.com/users/LucasIME/subscriptionsjŏ *https://api.github.com/users/LucasIME/orgsjǏ +https://api.github.com/users/LucasIME/reposjɏ 6https://api.github.com/users/LucasIME/events{/privacy}jˏ 5https://api.github.com/users/LucasIME/received_eventsj͏ UserjϏ uparents]}(j (62b719d512fb3e48b558173d42d798be77bdd43dj ^https://api.github.com/repos/palantir/atlasdb/commits/62b719d512fb3e48b558173d42d798be77bdd43dj Shttps://github.com/palantir/atlasdb/commit/62b719d512fb3e48b558173d42d798be77bdd43duastats}(totalK	additionsK	deletionsKufiles]}(j (346273be6670a0bc2efe17465550feb97cab88affilename[atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/TracingKeyValueService.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/a6c1d6ca86cc3e88e1e8ca3fc1a90048f3b2624c/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/a6c1d6ca86cc3e88e1e8ca3fc1a90048f3b2624c/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.java?ref=a6c1d6ca86cc3e88e1e8ca3fc1a90048f3b2624cpatchXV  @@ -24,7 +24,6 @@
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.errorprone.annotations.CompileTimeConstant;
 import com.google.errorprone.annotations.MustBeClosed;
-import com.palantir.atlasdb.keyvalue.api.AutoDelegate_KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.BatchColumnRangeSelection;
 import com.palantir.atlasdb.keyvalue.api.CandidateCellForSweeping;
 import com.palantir.atlasdb.keyvalue.api.CandidateCellForSweepingRequest;
@@ -71,7 +70,7 @@
  * Wraps a {@link KeyValueService}'s methods with {@link com.palantir.tracing.Tracer}
  * instrumentation.
  */
-public final class TracingKeyValueService extends ForwardingObject implements AutoDelegate_KeyValueService {
+public final class TracingKeyValueService extends ForwardingObject implements KeyValueService {
 
     private static final String SERVICE_NAME = "atlasdb-kvs";
 
@@ -532,6 +531,11 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
         });
     }
 
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return delegate().sweepsEntriesInStrictlyNonDecreasingFashion();
+    }
+
     @MustBeClosed
     private static CloseableTracer startLocalTrace(@CompileTimeConstant final String operation) {
         TraceStatistic original = TraceStatistics.getCurrentAndClear();uau(a270fe42cd351019057d5897f46b4aa31140ae7b}(sha(a270fe42cd351019057d5897f46b4aa31140ae7bnode_idEC_kwDOAjP5fdoAKGEyNzBmZTQyY2QzNTEwMTkwNTdkNTg5N2Y0NmI0YWEzMTE0MGFlN2Icommit}(author}(name
Sam-Krameremailsam.c.kramer@gmail.comdate2023-03-08T10:27:26Zu	committer}(j 
Sam Kramerj skramer@palantir.comj
 2023-03-14T10:55:30Zumessage"Autorelease 0.809.0-rc1

[skip ci]tree}(j (5e4cd1880500fd0834feb0e801563ab637bb0733url`https://api.github.com/repos/palantir/atlasdb/git/trees/5e4cd1880500fd0834feb0e801563ab637bb0733uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/a270fe42cd351019057d5897f46b4aa31140ae7b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQQUqIACgkQmPPOpKR4
XS27yAgAoRzvIYWJizgzYFJIhnNEyfIiJ8EViX6xqq8GghmFVEECn6qr/GPKUQEs
0mWe0Gal2Nv1vaHLmlycCQX21BhZLYpNDW8UyPW5IKaUr6i1GPoMzJqeEOf28E/y
T41M/dhm7iv84IBXHshw0dfrE7aekLPple6jVWDD7ugULOjQ1dxBW2PCfHhk+veJ
rm7MiGx+pH8YnBLfX8ySu5Vynb6cBst+gv/7y5y8GQDtPmnL83V/XpiuFBPOirDL
Qnz5C6jqMcHd7Fe4Byls39h/EJJVrMuHZNzisVsM0IxMZlOvqUBsYzAOAzck8Eoo
U982Q4asyt0dtCM7uGILvMnRk8wXaw==
=hCmd
-----END PGP SIGNATURE-----payloadtree 5e4cd1880500fd0834feb0e801563ab637bb0733
parent ef1e63807db751f344b2f544547803e17eb7fa69
author Sam-Kramer <sam.c.kramer@gmail.com> 1678271246 +0000
committer Sam Kramer <skramer@palantir.com> 1678791330 +0000

Autorelease 0.809.0-rc1

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/a270fe42cd351019057d5897f46b4aa31140ae7bhtml_urlShttps://github.com/palantir/atlasdb/commit/a270fe42cd351019057d5897f46b4aa31140ae7bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/a270fe42cd351019057d5897f46b4aa31140ae7b/commentsj }(login
Sam-KrameridJ^2_ j  MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj$ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j) 
Sam-Kramerj+ J^2_ j  MDQ6VXNlcjYyMzg4MTQ=j- 3https://avatars.githubusercontent.com/u/6238814?v=4j/ h5j 'https://api.github.com/users/Sam-Kramerj$ https://github.com/Sam-Kramerj2 1https://api.github.com/users/Sam-Kramer/followersj4 >https://api.github.com/users/Sam-Kramer/following{/other_user}j6 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j8 >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j: 5https://api.github.com/users/Sam-Kramer/subscriptionsj< ,https://api.github.com/users/Sam-Kramer/orgsj> -https://api.github.com/users/Sam-Kramer/reposj@ 8https://api.github.com/users/Sam-Kramer/events{/privacy}jB 7https://api.github.com/users/Sam-Kramer/received_eventsjD UserjF uparents]}(j (ef1e63807db751f344b2f544547803e17eb7fa69j ^https://api.github.com/repos/palantir/atlasdb/commits/ef1e63807db751f344b2f544547803e17eb7fa69j$ Shttps://github.com/palantir/atlasdb/commit/ef1e63807db751f344b2f544547803e17eb7fa69uastats}(totalK	additionsK	deletionsK ufiles]}(j (1c40c26a2b7f255ced582014ba59023261e207c9filename$changelog/0.809.0-rc1/pr-6463.v2.ymlstatusaddedj` Kja K changesKblob_urlzhttps://github.com/palantir/atlasdb/blob/a270fe42cd351019057d5897f46b4aa31140ae7b/changelog%2F0.809.0-rc1%2Fpr-6463.v2.ymlraw_urlyhttps://github.com/palantir/atlasdb/raw/a270fe42cd351019057d5897f46b4aa31140ae7b/changelog%2F0.809.0-rc1%2Fpr-6463.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.809.0-rc1%2Fpr-6463.v2.yml?ref=a270fe42cd351019057d5897f46b4aa31140ae7bpatch@@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Never completely empty the Cassandra client pool, even if a new list
+    of hosts are provided.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6463uau(008a3d2275fbfb862f4c2d9c81bfb0059fc8f02c}(sha(008a3d2275fbfb862f4c2d9c81bfb0059fc8f02cnode_idEC_kwDOAjP5fdoAKDAwOGEzZDIyNzVmYmZiODYyZjRjMmQ5YzgxYmZiMDA1OWZjOGYwMmMcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-08-08T15:41:57Zu	committer}(j} svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-08-08T15:41:57ZumessageAutorelease 0.909.0

[skip ci]tree}(ju (ce03e34b53aad337fa73278ddb8a29d3cfa3734eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/ce03e34b53aad337fa73278ddb8a29d3cfa3734euj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/008a3d2275fbfb862f4c2d9c81bfb0059fc8f02c
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmTSYksACgkQhbrR8ip7mDBNIgD/Z6X2e96GD/Z8DVzOi7AVdUHN
NZ+JdaATXd7+rRMBfu0BAPmQtt31E97AaGiWGOJZ7TjWUF7yI1Dq8Ev92BqtCqx0
=qQgm
-----END PGP SIGNATURE-----
payloadX0  tree ce03e34b53aad337fa73278ddb8a29d3cfa3734e
parent e4e28977c0f6884e60d246bbf5b03b80b44bf874
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1691509317 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1691509317 +0000

Autorelease 0.909.0

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/008a3d2275fbfb862f4c2d9c81bfb0059fc8f02chtml_urlShttps://github.com/palantir/atlasdb/commit/008a3d2275fbfb862f4c2d9c81bfb0059fc8f02ccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/008a3d2275fbfb862f4c2d9c81bfb0059fc8f02c/commentsj{ }(loginsvc-autoreleaseidJ(jw MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(jw MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(ju (e4e28977c0f6884e60d246bbf5b03b80b44bf874j ^https://api.github.com/repos/palantir/atlasdb/commits/e4e28977c0f6884e60d246bbf5b03b80b44bf874j Shttps://github.com/palantir/atlasdb/commit/e4e28977c0f6884e60d246bbf5b03b80b44bf874uastats}(totalK 	additionsK 	deletionsK ufiles]}(ju (a75847dcb7447b3c30f6fd1931f06e349bffcdfdfilename changelog/0.909.0/pr-6693.v2.ymlstatusrenamedjא K jؐ K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/008a3d2275fbfb862f4c2d9c81bfb0059fc8f02c/changelog%2F0.909.0%2Fpr-6693.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/008a3d2275fbfb862f4c2d9c81bfb0059fc8f02c/changelog%2F0.909.0%2Fpr-6693.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.909.0%2Fpr-6693.v2.yml?ref=008a3d2275fbfb862f4c2d9c81bfb0059fc8f02cprevious_filename$changelog/@unreleased/pr-6693.v2.ymluau(3f5847c30c2cd0fed823af2a401bc2159a2e2178     }(sha(3f5847c30c2cd0fed823af2a401bc2159a2e2178node_idEC_kwDOAjP5fdoAKDNmNTg0N2MzMGMyY2QwZmVkODIzYWYyYTQwMWJjMjE1OWEyZTIxNzgcommit}(author}(nameLucas Sousa Meirelesemailmeireles31@msn.comdate2023-05-24T15:27:44Zu	committer}(j GitHubj noreply@github.comj 2023-05-24T15:27:44ZumessageEmit duration timer for trasanctions that don't perform writes (#6587)

We now have duration metrics for transactions that don't perform writes.tree}(j (5eb808b65bc1022960125d5919680ff037e41f6durl`https://api.github.com/repos/palantir/atlasdb/git/trees/5eb808b65bc1022960125d5919680ff037e41f6duj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3f5847c30c2cd0fed823af2a401bc2159a2e2178
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkbizwCRBK7hj4Ov3rIwAAHaEIAA144spwdg5JF3sLFgzemMcO
mDdvGLfcmjdt7dX0Mxx2AQZBsul/RvBtZx31ce5rXKgpnq/A8ehPoJUzLpRi1/th
zjOrQk22k4H4lf68u5WY+dpAMcor48+llMNC6ApiCJxDnnAAnuMFH2HZ8d/9Ostn
Ae8QvxDWoAMK9ZCsj7XBa+4bSrgwgwyL1kwrWtsLI3/7/rkd9dMAB6RWw1JVnkyh
TnR1TIWSdu1Jj0HwtST5G6zHHiS/XZrO0wAVSnJzIyB8bmg9+0+JmzC9TSW+/T1u
5Mt7LrMvFHwovUeJvhETwAnhF30tOYu5rVKRelbJ+q0o/4R9sQh39+L+GCYjOXA=
=6uJI
-----END PGP SIGNATURE-----
payloadXi  tree 5eb808b65bc1022960125d5919680ff037e41f6d
parent 8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813
author Lucas Sousa Meireles <meireles31@msn.com> 1684942064 +0100
committer GitHub <noreply@github.com> 1684942064 +0000

Emit duration timer for trasanctions that don't perform writes (#6587)

We now have duration metrics for transactions that don't perform writes.
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/3f5847c30c2cd0fed823af2a401bc2159a2e2178html_urlShttps://github.com/palantir/atlasdb/commit/3f5847c30c2cd0fed823af2a401bc2159a2e2178comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3f5847c30c2cd0fed823af2a401bc2159a2e2178/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j web-flowj J/j MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj" <https://api.github.com/users/web-flow/following{/other_user}j$ 5https://api.github.com/users/web-flow/gists{/gist_id}j& <https://api.github.com/users/web-flow/starred{/owner}{/repo}j( 3https://api.github.com/users/web-flow/subscriptionsj* *https://api.github.com/users/web-flow/orgsj, +https://api.github.com/users/web-flow/reposj. 6https://api.github.com/users/web-flow/events{/privacy}j0 5https://api.github.com/users/web-flow/received_eventsj2 Userj4 uparents]}(j (8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813j ^https://api.github.com/repos/palantir/atlasdb/commits/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813j Shttps://github.com/palantir/atlasdb/commit/8c603eb57bd889f5d8bfc5d48c1c3eb69ed61813uastats}(totalK	additionsK	deletionsKufiles]}(j (0f82e64a27ea34ae828da5d2e85bdc78bc9148d6filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedjN KjO KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/3f5847c30c2cd0fed823af2a401bc2159a2e2178/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/3f5847c30c2cd0fed823af2a401bc2159a2e2178/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=3f5847c30c2cd0fed823af2a401bc2159a2e2178patchX  @@ -1950,8 +1950,9 @@ private void commitWrites(TransactionService transactionService) {
                 if (validationNecessaryForInvolvedTablesOnCommit()) {
                     throwIfImmutableTsOrCommitLocksExpired(null);
                 }
-                return;
             }
+            getTimer("nonWriteCommitTotalTimeSinceTxCreation")
+                    .update(Duration.of(transactionTimerContext.stop(), ChronoUnit.NANOS));
             return;
         }
 uau(518e916f663d7c531cee4db852a92ca77eb96153}(sha(518e916f663d7c531cee4db852a92ca77eb96153node_idEC_kwDOAjP5fdoAKDUxOGU5MTZmNjYzZDdjNTMxY2VlNGRiODUyYTkyY2E3N2ViOTYxNTMcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-19T08:59:37Zu	committer}(jk Lucas Meirelesjm meireles31@msn.comjo 2023-06-19T08:59:37Zumessage&Create sweep strategy according to KVStree}(jc (b793b87755c8614ed4a9771708a15d4f221756dburl`https://api.github.com/repos/palantir/atlasdb/git/trees/b793b87755c8614ed4a9771708a15d4f221756dbuj{ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/518e916f663d7c531cee4db852a92ca77eb96153
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSQGPoACgkQJd22kJ7J
Giz0egf/RxOtbEA8MEx9ykgDlm2vFr4FpEZJPVbur7Yqs/Er/xB/3w/tejtHpEW1
UnWswH8NJz4TyuR2DQTV/Oe2X1dRYAawye7Q6bauhEKcdLNTXT+HBzN4Q0HiVcdH
VruwNbkm8c1XAoNKNlLDkZB3RBFaWBtz8eIdyqsH5dLVJ0Z4UpCZGqKhL65o0Lbu
PgDGFcrRZ2S7RNcv6Q/f0H30dcKc0HqYRH9gec8CEBEz5FJKK93JClvcVD1q0ry2
8YjAzyqdzG7/0EgzPQpFtnZTCinmjzT2w50i5nK4HDkTGlnrqGgl/MZSInH2SYf1
T4lbjFUpnUTyokbqsOMFcpn/LuSjkg==
=rrB6
-----END PGP SIGNATURE-----payloadX  tree b793b87755c8614ed4a9771708a15d4f221756db
parent 184e329381bec290c1eec2b3f1e39ea01c9a3d1b
author Lucas Meireles <meireles31@msn.com> 1687165177 +0100
committer Lucas Meireles <meireles31@msn.com> 1687165177 +0100

Create sweep strategy according to KVS
uuj{ ^https://api.github.com/repos/palantir/atlasdb/commits/518e916f663d7c531cee4db852a92ca77eb96153html_urlShttps://github.com/palantir/atlasdb/commit/518e916f663d7c531cee4db852a92ca77eb96153comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/518e916f663d7c531cee4db852a92ca77eb96153/commentsji }(loginLucasIMEidJg je MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j{ %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujq }(j LucasIMEj Jg je MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5j{ %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsj Userj uparents]}(jc (184e329381bec290c1eec2b3f1e39ea01c9a3d1bj{ ^https://api.github.com/repos/palantir/atlasdb/commits/184e329381bec290c1eec2b3f1e39ea01c9a3d1bj Shttps://github.com/palantir/atlasdb/commit/184e329381bec290c1eec2b3f1e39ea01c9a3d1buastats}(totalKL	additionsK/	deletionsKufiles](}(jc (7e1fc418d0ab8950f7d0a2c8a9ed46fe72c28ab9filenamePatlasdb-api/src/main/java/com/palantir/atlasdb/keyvalue/api/KeyValueService.javastatusmodifiedjő KjƑ K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/518e916f663d7c531cee4db852a92ca77eb96153/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/518e916f663d7c531cee4db852a92ca77eb96153/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fapi%2FKeyValueService.java?ref=518e916f663d7c531cee4db852a92ca77eb96153patchX  @@ -711,4 +711,11 @@ default boolean shouldTriggerCompactions() {
     default boolean isValid() {
         return true;
     }
+
+    @DoDelegate
+    default boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        // This is in general True, but we're setting to false to start rollout only for C* of stopping to check for
+        // immutable timestamp lock on non empty reads on thoroughly swept tables.
+        return false;
+    }
 }u}(jc (d7d2d87671c66d0e3f85762da04755fb7955d5b1jˑ iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javaj͑ modifiedjő KjƑ K jϑ KjБ https://github.com/palantir/atlasdb/blob/518e916f663d7c531cee4db852a92ca77eb96153/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javajґ https://github.com/palantir/atlasdb/raw/518e916f663d7c531cee4db852a92ca77eb96153/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javajԑ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=518e916f663d7c531cee4db852a92ca77eb96153j֑ X  @@ -2033,6 +2033,11 @@ public ClusterAvailabilityStatus getClusterAvailabilityStatus() {
         return clusterStatus;
     }
 
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return true;
+    }
+
     private static boolean isClusterQuorumAvaialble(ClusterAvailabilityStatus clusterStatus) {
         return clusterStatus.equals(ClusterAvailabilityStatus.ALL_AVAILABLE)
                 || clusterStatus.equals(ClusterAvailabilityStatus.QUORUM_AVAILABLE);u}(jc (1ab84302f51e4bad9eef3b306d5f224b087a44d4jˑ \atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/InMemoryKeyValueService.javaj͑ modifiedjő KjƑ K jϑ KjБ https://github.com/palantir/atlasdb/blob/518e916f663d7c531cee4db852a92ca77eb96153/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javajґ https://github.com/palantir/atlasdb/raw/518e916f663d7c531cee4db852a92ca77eb96153/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.javajԑ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FInMemoryKeyValueService.java?ref=518e916f663d7c531cee4db852a92ca77eb96153j֑ X-  @@ -735,6 +735,12 @@ public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<
         return Futures.immediateFuture(get(tableRef, timestampByCell));
     }
 
+    // Marking this as true as it's only used for tests, so we can better replicate Cassandra behaviour.
+    @Override
+    public boolean sweepsEntriesInStrictlyNonDecreasingFashion() {
+        return true;
+    }
+
     /**
      * This takes out a reentrant read lock. It is only exclusive specifically with
      * {@link #multiCheckAndSet(MultiCheckAndSetRequest)}.u}(jc (bf17b7d1ff4b792fe881c5e7a4907db8fe93404ejˑ [atlasdb-client/src/main/java/com/palantir/atlasdb/keyvalue/impl/TracingKeyValueService.javaj͑ modifiedjő KjƑ Kjϑ KjБ https://github.com/palantir/atlasdb/blob/518e916f663d7c531cee4db852a92ca77eb96153/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javajґ https://github.com/palantir/atlasdb/raw/518e916f663d7c531cee4db852a92ca77eb96153/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.javajԑ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fimpl%2FTracingKeyValueService.java?ref=518e916f663d7c531cee4db852a92ca77eb96153j֑ X_  @@ -24,6 +24,7 @@
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.errorprone.annotations.CompileTimeConstant;
 import com.google.errorprone.annotations.MustBeClosed;
+import com.palantir.atlasdb.keyvalue.api.AutoDelegate_KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.BatchColumnRangeSelection;
 import com.palantir.atlasdb.keyvalue.api.CandidateCellForSweeping;
 import com.palantir.atlasdb.keyvalue.api.CandidateCellForSweepingRequest;
@@ -70,7 +71,7 @@
  * Wraps a {@link KeyValueService}'s methods with {@link com.palantir.tracing.Tracer}
  * instrumentation.
  */
-public final class TracingKeyValueService extends ForwardingObject implements KeyValueService {
+public final class TracingKeyValueService extends ForwardingObject implements AutoDelegate_KeyValueService {
 
     private static final String SERVICE_NAME = "atlasdb-kvs";
 
@@ -86,7 +87,7 @@ public static KeyValueService create(KeyValueService keyValueService) {
     }
 
     @Override
-    protected KeyValueService delegate() {
+    public KeyValueService delegate() {
         return delegate;
     }
 u}(jc (59f579ecb6ed9a064456943b34318322930965e3jˑ Vatlasdb-client/src/main/java/com/palantir/atlasdb/table/description/SweepStrategy.javaj͑ modifiedjő K	jƑ Kjϑ KjБ https://github.com/palantir/atlasdb/blob/518e916f663d7c531cee4db852a92ca77eb96153/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javajґ https://github.com/palantir/atlasdb/raw/518e916f663d7c531cee4db852a92ca77eb96153/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.javajԑ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftable%2Fdescription%2FSweepStrategy.java?ref=518e916f663d7c531cee4db852a92ca77eb96153j֑ X  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.table.description;
 
+import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
@@ -55,10 +56,10 @@ public boolean mustCheckImmutableLock(boolean allPossibleCellsReandAndPresent) {
                 : mustCheckImmutableLockIfEmptyCellWasPossiblyRead;
     }
 
-    public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy) {
+    public static SweepStrategy from(TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
         return new SweepStrategy(
                 sweeperBehaviour(strategy),
-                mustCheckImmutableLockAfterNonEmptyReads(strategy),
+                mustCheckImmutableLockAfterNonEmptyReads(strategy, kvs),
                 mustCheckImmutableLockAfterEmptyReads(strategy));
     }
 
@@ -75,7 +76,12 @@ private static Optional<SweeperStrategy> sweeperBehaviour(TableMetadataPersisten
         throw new SafeIllegalStateException("Unknown case", SafeArg.of("strategy", strategy));
     }
 
-    private static boolean mustCheckImmutableLockAfterNonEmptyReads(TableMetadataPersistence.SweepStrategy strategy) {
+    private static boolean mustCheckImmutableLockAfterNonEmptyReads(
+            TableMetadataPersistence.SweepStrategy strategy, KeyValueService kvs) {
+        if (!kvs.sweepsEntriesInStrictlyNonDecreasingFashion()) {
+            return mustCheckImmutableLockAfterEmptyReads(strategy);
+        }
+
         switch (strategy) {
             case CONSERVATIVE:
             case NOTHING:u}(jc (59d37859a318b1646ca6da51436b4720150f7940jˑ ]atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/SweepStrategyManagers.javaj͑ modifiedjő K	jƑ Kjϑ KjБ https://github.com/palantir/atlasdb/blob/518e916f663d7c531cee4db852a92ca77eb96153/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.javajґ https://github.com/palantir/atlasdb/raw/518e916f663d7c531cee4db852a92ca77eb96153/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.javajԑ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSweepStrategyManagers.java?ref=518e916f663d7c531cee4db852a92ca77eb96153j֑ X;  @@ -21,7 +21,6 @@
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
-import com.palantir.atlasdb.table.description.Schema;
 import com.palantir.atlasdb.table.description.SweepStrategy;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.logsafe.Preconditions;
@@ -53,7 +52,7 @@ public static SweepStrategyManager create(KeyValueService kvs, CacheWarming cach
                     // On a cache miss, load metadata only for the relevant table. Helpful when many dynamic tables.
                     LoadingCache<TableReference, SweepStrategy> cache = Caffeine.newBuilder()
                             .expireAfterAccess(Duration.ofDays(1))
-                            .build(tableRef -> getSweepStrategy(kvs.getMetadataForTable(tableRef)));
+                            .build(tableRef -> getSweepStrategy(kvs.getMetadataForTable(tableRef), kvs));
 
                     // Possibly warm the cache.
                     cache.putAll(getSweepStrategiesForWarmingCache(kvs, cacheWarming));
@@ -74,42 +73,34 @@ public void invalidateCaches(Set<TableReference> tableRefs) {
         };
     }
 
-    public static SweepStrategyManager createFromSchema(Schema schema) {
-        return tableRef -> {
-            TableMetadata tableMeta = Preconditions.checkNotNull(
-                    schema.getAllTablesAndIndexMetadata().get(tableRef),
-                    "unknown table",
-                    SafeArg.of("tableRef", tableRef));
-            return SweepStrategy.from(tableMeta.getSweepStrategy());
-        };
-    }
-
     public static SweepStrategyManager fromMap(final Map<TableReference, SweepStrategy> map) {
         return tableRef ->
                 Preconditions.checkNotNull(map.get(tableRef), "unknown table", SafeArg.of("tableRef", tableRef));
     }
 
-    public static SweepStrategyManager completelyConservative() {
-        return tableRef -> SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE);
+    public static SweepStrategyManager completelyConservative(KeyValueService kvs) {
+        return tableRef -> SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE, kvs);
     }
 
     private static Map<TableReference, SweepStrategy> getSweepStrategiesForWarmingCache(
             KeyValueService kvs, CacheWarming cacheWarming) {
         switch (cacheWarming) {
             case FULL:
-                return Maps.transformValues(kvs.getMetadataForTables(), SweepStrategyManagers::getSweepStrategy);
+                return Maps.transformValues(
+                        kvs.getMetadataForTables(),
+                        tableMetadata -> SweepStrategyManagers.getSweepStrategy(tableMetadata, kvs));
             case NONE:
             default:
                 return Collections.emptyMap();
         }
     }
 
-    private static SweepStrategy getSweepStrategy(byte[] tableMeta) {
+    private static SweepStrategy getSweepStrategy(byte[] tableMeta, KeyValueService kvs) {
         if (tableMeta != null && tableMeta.length > 0) {
             return SweepStrategy.from(
-                    TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy());
+                    TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy(), kvs);
         } else {
-            return SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE);
+            return SweepStrategy.from(TableMetadataPersistence.SweepStrategy.CONSERVATIVE, kvs);
         }
     }
 }u}(jc (f4fc16c9cd18f98e0b88191831c6acfff46d8418jˑ Qatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/SweepTaskRunner.javaj͑ modifiedjő KjƑ Kjϑ KjБ https://github.com/palantir/atlasdb/blob/518e916f663d7c531cee4db852a92ca77eb96153/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.javajґ https://github.com/palantir/atlasdb/raw/518e916f663d7c531cee4db852a92ca77eb96153/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.javajԑ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FSweepTaskRunner.java?ref=518e916f663d7c531cee4db852a92ca77eb96153j֑ X  @@ -152,7 +152,7 @@ private SweepResults runInternal(
             return SweepResults.createEmptySweepResultWithNoMoreToSweep();
         }
         SweepStrategy sweepStrategy = SweepStrategy.from(
-                TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy());
+                TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(tableMeta).getSweepStrategy(), keyValueService);
         Optional<Sweeper> maybeSweeper = sweepStrategy.getSweeperStrategy().map(Sweeper::of);
         if (runType == RunType.WAS_CONSERVATIVE_NOW_THOROUGH
                 && sweepStrategy.getSweeperStrategy().equals(Optional.of(SweeperStrategy.CONSERVATIVE))) {u}(jc (8a130c89d1c136ccdceb2117f2543a8cad93b16cjˑ \atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitioner.javaj͑ modifiedjő KjƑ Kjϑ KjБ https://github.com/palantir/atlasdb/blob/518e916f663d7c531cee4db852a92ca77eb96153/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javajґ https://github.com/palantir/atlasdb/raw/518e916f663d7c531cee4db852a92ca77eb96153/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javajԑ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.java?ref=518e916f663d7c531cee4db852a92ca77eb96153j֑ X  @@ -95,9 +95,11 @@ SweeperStrategy getStrategyForTable(TableReference tableRef) {
 
     private SweeperStrategy getStrategyFromKvs(TableReference tableRef) {
         try {
-            return SweepStrategy.from(TableMetadata.BYTES_HYDRATOR
-                            .hydrateFromBytes(kvs.getMetadataForTable(tableRef))
-                            .getSweepStrategy())
+            return SweepStrategy.from(
+                            TableMetadata.BYTES_HYDRATOR
+                                    .hydrateFromBytes(kvs.getMetadataForTable(tableRef))
+                                    .getSweepStrategy(),
+                            kvs)
                     .getSweeperStrategy()
                     .orElse(SweeperStrategy.NON_SWEEPABLE);
         } catch (Exception e) {u}(jc (864d8b372d38e6bbe575244e1b439a23398db117jˑ Uatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/TableMigratorTest.javaj͑ modifiedjő KjƑ Kjϑ KjБ https://github.com/palantir/atlasdb/blob/518e916f663d7c531cee4db852a92ca77eb96153/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.javajґ https://github.com/palantir/atlasdb/raw/518e916f663d7c531cee4db852a92ca77eb96153/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.javajԑ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fschema%2FTableMigratorTest.java?ref=518e916f663d7c531cee4db852a92ca77eb96153j֑ X  @@ -89,7 +89,7 @@ public void testMigrationToDifferentKvs() throws TableMappingNotFoundException {
 
         final InMemoryKeyValueService kvs2 = new InMemoryKeyValueService(false);
         final ConflictDetectionManager cdm2 = ConflictDetectionManagers.createWithNoConflictDetection();
-        final SweepStrategyManager ssm2 = SweepStrategyManagers.completelyConservative();
+        final SweepStrategyManager ssm2 = SweepStrategyManagers.completelyConservative(kvs2);
         final MetricsManager metricsManager = MetricsManagers.createForTests();
         final TestTransactionManagerImpl txManager2 = new TestTransactionManagerImpl(
                 metricsManager,
@@ -128,7 +128,7 @@ public void testMigrationToDifferentKvs() throws TableMappingNotFoundException {
         checkpointer.deleteCheckpoints();
 
         final ConflictDetectionManager verifyCdm = ConflictDetectionManagers.createWithNoConflictDetection();
-        final SweepStrategyManager verifySsm = SweepStrategyManagers.completelyConservative();
+        final SweepStrategyManager verifySsm = SweepStrategyManagers.completelyConservative(kvs2);
         final TestTransactionManagerImpl verifyTxManager = new TestTransactionManagerImpl(
                 metricsManager,
                 kvs2,ueu(23de54946e19ce8cc71cdf53e565bb9b1241a593}(sha(23de54946e19ce8cc71cdf53e565bb9b1241a593node_idEC_kwDOAjP5fdoAKDIzZGU1NDk0NmUxOWNlOGNjNzFjZGY1M2U1NjViYjliMTI0MWE1OTMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-04-18T13:37:55Zu	committer}(j" 
Sam Kramerj$ skramer@palantir.comj& 2023-04-18T13:37:55Zumessage	fix teststree}(j (3647a5820550530e222a0b401834e8706572267burl`https://api.github.com/repos/palantir/atlasdb/git/trees/3647a5820550530e222a0b401834e8706572267buj2 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/23de54946e19ce8cc71cdf53e565bb9b1241a593
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQ+nTMACgkQmPPOpKR4
XS1DDwf+MS4sYNg6lBmseTRAKIP5OSI2jtJ/q//RIVqm95s6hoHnkUKWxlq4Pfeu
y23SUeNPKLFe+vPjOE1ukSsdb/CHD+XbvUCdxtsBXxAnwWKL8JRlGs0j4WgoVVZe
Sy47rx9ymEi1MUPw4Qaa2zt3EbZ/fDPbQ1exrDy/bhBJEYGDWw+2mwibbt/gW5YC
5bCe1fjdT/JkHu0a+LAwmLShlpBY3xcwa8vs/M7kF0hBzDIph/lx9V4mTVAk4bSi
xgefglKBktjWj5XvpR7cmItrirz88bVfSFtX/ffMZIIwdx2tiV2UXYLaTq89DOTR
bQ0kJmMM9nfwwMvgSEPQNvDMb5EniA==
=AwRP
-----END PGP SIGNATURE-----payloadtree 3647a5820550530e222a0b401834e8706572267b
parent 374053bfd4603324814ba15be3120eff4c7955dd
author Sam Kramer <skramer@palantir.com> 1681825075 +0100
committer Sam Kramer <skramer@palantir.com> 1681825075 +0100

fix tests
uuj2 ^https://api.github.com/repos/palantir/atlasdb/commits/23de54946e19ce8cc71cdf53e565bb9b1241a593html_urlShttps://github.com/palantir/atlasdb/commit/23de54946e19ce8cc71cdf53e565bb9b1241a593comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/23de54946e19ce8cc71cdf53e565bb9b1241a593/commentsj  }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j2 'https://api.github.com/users/Sam-Kramerj@ https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj( }(jE 
Sam-KramerjG J^2_ j MDQ6VXNlcjYyMzg4MTQ=jI 3https://avatars.githubusercontent.com/u/6238814?v=4jK h5j2 'https://api.github.com/users/Sam-Kramerj@ https://github.com/Sam-KramerjN 1https://api.github.com/users/Sam-Kramer/followersjP >https://api.github.com/users/Sam-Kramer/following{/other_user}jR 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jT >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jV 5https://api.github.com/users/Sam-Kramer/subscriptionsjX ,https://api.github.com/users/Sam-Kramer/orgsjZ -https://api.github.com/users/Sam-Kramer/reposj\ 8https://api.github.com/users/Sam-Kramer/events{/privacy}j^ 7https://api.github.com/users/Sam-Kramer/received_eventsj` Userjb uparents]}(j (374053bfd4603324814ba15be3120eff4c7955ddj2 ^https://api.github.com/repos/palantir/atlasdb/commits/374053bfd4603324814ba15be3120eff4c7955ddj@ Shttps://github.com/palantir/atlasdb/commit/374053bfd4603324814ba15be3120eff4c7955dduastats}(totalK	additionsK	deletionsKufiles]}(j (2ccb2753ffb58238b33e02110b3054589200c9e9filenameatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitorTest.javastatusmodifiedj| Kj} KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/23de54946e19ce8cc71cdf53e565bb9b1241a593/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/23de54946e19ce8cc71cdf53e565bb9b1241a593/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javacontents_urlX  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.java?ref=23de54946e19ce8cc71cdf53e565bb9b1241a593patchXK  @@ -18,6 +18,7 @@
 
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.mockito.ArgumentMatchers.anyLong;
+import static org.mockito.Mockito.lenient;
 import static org.mockito.Mockito.when;
 
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
@@ -42,7 +43,7 @@ public class OnlyCommittedWitnessedTransactionVisitorTest {
 
     @Test
     public void fullyCommittedTransactionsAreNeverChecked() {
-        when(transactionStore.isCommitted(anyLong())).thenThrow(new RuntimeException());
+        lenient().when(transactionStore.isCommitted(anyLong())).thenThrow(new RuntimeException());
         assertThat(READ_ONLY_WITNESSED_TRANSACTION.accept(
                         new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
                 .contains(READ_ONLY_WITNESSED_TRANSACTION);uau(5591830b0fc60195a1f3e5d0c732a3217922cb27}(sha(5591830b0fc60195a1f3e5d0c732a3217922cb27node_idEC_kwDOAjP5fdoAKDU1OTE4MzBiMGZjNjAxOTVhMWYzZTVkMGM3MzJhMzIxNzkyMmNiMjccommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-24T12:41:33Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-03-24T12:41:33Zumessagedocker compose fixestree}(j (63c540b1117a854fbca1a1232844cc8d41c77dcburl`https://api.github.com/repos/palantir/atlasdb/git/trees/63c540b1117a854fbca1a1232844cc8d41c77dcbuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/5591830b0fc60195a1f3e5d0c732a3217922cb27
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQdmn0ACgkQmPPOpKR4
XS00fwgArxWp5V0gVjHeD5OAOspK0DWRRw2T4FMNAAwlr9qUXjknNY5iekx7UCL6
Lbz7QbL5MzOlHH4AjqfZ1NOdF72bmdwyOgeR5nWG2ToxahyRKQvMjcCpz6iwGcET
ibacyFHDdFdKw3Ah7SLEOvNgHsHVLU5PYQ0T++769pmkewq5ylp+kHzXucV2yNv7
HWV20CaKlPHQnvj7tBZWG/qNZ0u5B0indBy/94Qv+eYpYSb9l60T+tMe12v1KTho
mxHGN7Pq2aoqhBFwmPaFl4q2UFZ1rqd02A9fJpQ1Ai1C0SLpsfZLP4PAk2SHlJP0
bYOtY+hDpuPUwNGK4bclO5pYZKr7vA==
=q6TM
-----END PGP SIGNATURE-----payloadtree 63c540b1117a854fbca1a1232844cc8d41c77dcb
parent 96c269d3191b1f411f0dc575a6e89dc08834da68
author Sam Kramer <skramer@palantir.com> 1679661693 +0000
committer Sam Kramer <skramer@palantir.com> 1679661693 +0000

docker compose fixes
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/5591830b0fc60195a1f3e5d0c732a3217922cb27html_urlShttps://github.com/palantir/atlasdb/commit/5591830b0fc60195a1f3e5d0c732a3217922cb27comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/5591830b0fc60195a1f3e5d0c732a3217922cb27/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5j 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-KramerjŒ 1https://api.github.com/users/Sam-Kramer/followersjǒ >https://api.github.com/users/Sam-Kramer/following{/other_user}jɒ 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j˒ >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j͒ 5https://api.github.com/users/Sam-Kramer/subscriptionsjϒ ,https://api.github.com/users/Sam-Kramer/orgsjђ -https://api.github.com/users/Sam-Kramer/reposjӒ 8https://api.github.com/users/Sam-Kramer/events{/privacy}jՒ 7https://api.github.com/users/Sam-Kramer/received_eventsjג Userjْ uparents]}(j (96c269d3191b1f411f0dc575a6e89dc08834da68j ^https://api.github.com/repos/palantir/atlasdb/commits/96c269d3191b1f411f0dc575a6e89dc08834da68j Shttps://github.com/palantir/atlasdb/commit/96c269d3191b1f411f0dc575a6e89dc08834da68uastats}(totalK	additionsK	deletionsK ufiles]}(j (00359012166e4ba56e683294b97132670a929abdfilename9atlasdb-workload-server-antithesis/var/docker-compose.ymlstatusmodifiedj Kj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/5591830b0fc60195a1f3e5d0c732a3217922cb27/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlraw_urlhttps://github.com/palantir/atlasdb/raw/5591830b0fc60195a1f3e5d0c732a3217922cb27/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-antithesis%2Fvar%2Fdocker-compose.yml?ref=5591830b0fc60195a1f3e5d0c732a3217922cb27patchX  @@ -13,6 +13,7 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+    container_name: cassandra1
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.2
@@ -29,6 +30,7 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+    container_name: cassandra2
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.3
@@ -45,6 +47,7 @@ services:
       - MAX_HEAP_SIZE=512m
       - HEAP_NEWSIZE=64m
       - LOCAL_JMX=no
+    container_name: cassandra3
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.4
@@ -54,6 +57,7 @@ services:
     ports:
       - "8421"
       - "8422"
+    container_name: timelock
     networks:
       antithesis-net:
         ipv4_address: 10.20.20.5
@@ -63,6 +67,7 @@ services:
     command: [bash, -c, 'cp var/conf/workload-server.timelock.cassandra.yml var/conf/workload-server.yml 
                          && dockerize -timeout 120s -wait tcp://cassandra1:9160 -wait tcp://cassandra2:9160 -wait tcp://cassandra3:9160 
                          && service/bin/init.sh console']
+    container_name: workload-server
     depends_on:
       - cassandra1
       - cassandra2uau(210eefb66422b4ed4f5a0ab1044cd64a81ac1837}(sha(210eefb66422b4ed4f5a0ab1044cd64a81ac1837node_idEC_kwDOAjP5fdoAKDIxMGVlZmI2NjQyMmI0ZWQ0ZjVhMGFiMTA0NGNkNjRhODFhYzE4Mzccommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-26T09:08:58Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-04-26T09:08:58Zumessage&Merge branch 'develop' into aacbtreorgtree}(j (f2a30ddc282b8fad73fcdd86a75e19794fdab7b1url`https://api.github.com/repos/palantir/atlasdb/git/trees/f2a30ddc282b8fad73fcdd86a75e19794fdab7b1uj  bhttps://api.github.com/repos/palantir/atlasdb/git/commits/210eefb66422b4ed4f5a0ab1044cd64a81ac1837
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRI6isACgkQPlMHVIT1
yho9HAgAutADIkkFz3CnBdlalWSqz9z1as/2/tMDbz0sl+uN+5vvKFvqHdF3dW8t
gRw4sGf+EsIkO4ru/7iqY5vfnACA9pPMQrhcTdM0S8naE8nQ7DoT071pLH0TwYAB
6p1yQcxGRwRdqhn6lybhwA0IgrJP/2cnLcip2abf+4lkmXrLMtRG+CDuzHiiCK/2
Vl3qiHzh5STmeM87uLWnQLhbPPt3N+Ug9sxsZX+EF4c+gus2H8heyfa8tgdzrGMQ
riSx5k9xH3+sYP9vlWZMcl48AyZic1qpojiCa1WE1bgsY6qq8SHMuCErwg6KuikZ
cHDlN0paMjLZAJAdM+odPePxnOpTbg==
=xTt1
-----END PGP SIGNATURE-----payloadX5  tree f2a30ddc282b8fad73fcdd86a75e19794fdab7b1
parent 58969d9d95212a8b0480473d5db342ee5223ffd9
parent a90667bdbe564afc78d491359b9e12c143b333a6
author Ahmed Alouane <aalouane@palantir.com> 1682500138 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682500138 +0100

Merge branch 'develop' into aacbtreorg
uuj  ^https://api.github.com/repos/palantir/atlasdb/commits/210eefb66422b4ed4f5a0ab1044cd64a81ac1837html_urlShttps://github.com/palantir/atlasdb/commit/210eefb66422b4ed4f5a0ab1044cd64a81ac1837comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/210eefb66422b4ed4f5a0ab1044cd64a81ac1837/commentsj }(loginergo14idJj
 MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j  #https://api.github.com/users/ergo14j. https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(j3 ergo14j5 Jj
 MDQ6VXNlcjMwOTAzNzM2j7 4https://avatars.githubusercontent.com/u/30903736?v=4j9 h5j  #https://api.github.com/users/ergo14j. https://github.com/ergo14j< -https://api.github.com/users/ergo14/followersj> :https://api.github.com/users/ergo14/following{/other_user}j@ 3https://api.github.com/users/ergo14/gists{/gist_id}jB :https://api.github.com/users/ergo14/starred{/owner}{/repo}jD 1https://api.github.com/users/ergo14/subscriptionsjF (https://api.github.com/users/ergo14/orgsjH )https://api.github.com/users/ergo14/reposjJ 4https://api.github.com/users/ergo14/events{/privacy}jL 3https://api.github.com/users/ergo14/received_eventsjN UserjP uparents](}(j (58969d9d95212a8b0480473d5db342ee5223ffd9j  ^https://api.github.com/repos/palantir/atlasdb/commits/58969d9d95212a8b0480473d5db342ee5223ffd9j. Shttps://github.com/palantir/atlasdb/commit/58969d9d95212a8b0480473d5db342ee5223ffd9u}(j (a90667bdbe564afc78d491359b9e12c143b333a6j  ^https://api.github.com/repos/palantir/atlasdb/commits/a90667bdbe564afc78d491359b9e12c143b333a6j. Shttps://github.com/palantir/atlasdb/commit/a90667bdbe564afc78d491359b9e12c143b333a6uestats}(totalK		additionsK	deletionsKufiles](}(j (4afe6cfa22e2263f723e942552446af1d1099428filename.circleci/config.ymlstatusmodifiedjn Kjo KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/210eefb66422b4ed4f5a0ab1044cd64a81ac1837/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/210eefb66422b4ed4f5a0ab1044cd64a81ac1837/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=210eefb66422b4ed4f5a0ab1044cd64a81ac1837patchX}  @@ -4,7 +4,7 @@ jobs:
   build:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: xlarge
+    resource_class: 2xlarge
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"u}(j (fd74865ae5dbce637d1193e9c89e5bfa0e17c398jt build.gradlejv modifiedjn Kjo Kjx Kjy ^https://github.com/palantir/atlasdb/blob/210eefb66422b4ed4f5a0ab1044cd64a81ac1837/build.gradlej{ ]https://github.com/palantir/atlasdb/raw/210eefb66422b4ed4f5a0ab1044cd64a81ac1837/build.gradlej} phttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=210eefb66422b4ed4f5a0ab1044cd64a81ac1837j Xw  @@ -17,7 +17,7 @@ buildscript {
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
-        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'
+        classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.30.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'
         classpath 'com.palantir.sls-packaging:gradle-sls-packaging:7.13.0'
         classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.2'u}(j (9bdb41d8ffed33be231b3497c550f32137ae4e87jt $changelog/@unreleased/pr-6540.v2.ymljv addedjn Kjo K jx Kjy |https://github.com/palantir/atlasdb/blob/210eefb66422b4ed4f5a0ab1044cd64a81ac1837/changelog%2F%40unreleased%2Fpr-6540.v2.ymlj{ {https://github.com/palantir/atlasdb/raw/210eefb66422b4ed4f5a0ab1044cd64a81ac1837/changelog%2F%40unreleased%2Fpr-6540.v2.ymlj} https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6540.v2.yml?ref=210eefb66422b4ed4f5a0ab1044cd64a81ac1837j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: '[CBT] Run build with 2xlarge'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6540ueu(d54e70b4584428a3e3e8ae0d533de82f48a39cb8}(sha(d54e70b4584428a3e3e8ae0d533de82f48a39cb8node_idEC_kwDOAjP5fdoAKGQ1NGU3MGI0NTg0NDI4YTNlM2U4YWUwZDUzM2RlODJmNDhhMzljYjgcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-22T13:07:05Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-06-22T13:07:05Zumessageless variables in testtree}(j (4455623f9f5b36f7f6d245093d747ab31d6c7fe5url`https://api.github.com/repos/palantir/atlasdb/git/trees/4455623f9f5b36f7f6d245093d747ab31d6c7fe5uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/d54e70b4584428a3e3e8ae0d533de82f48a39cb8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSUR3kACgkQJd22kJ7J
Giwgiwf/bIou6fcavJc/rcJ1KQHtShUq3+vr7c/00Dcw00ZbJ2QQ/EoCaTn6yEg+
KT7BQQbxEhb6vMOrHmlwKttWr8PqKXuHuSz6BvCbtHbBVXaaLJNZl21vVrCeVzeb
E/5k64Ugd0EVib5v71nL/UsqbmFVYniFCm9dUWLYkrjfj5hQmXlHwUknllx7/hyP
oC/5dguuKC/u8bTtgxBg7yfxW6Z20bRNcpEaJi3iblFurzYWEIvzvEehivWRFTsq
xHm1D4NlRyNWDeTr7IVquAqw/FURp+qby5XAV3a35Xt5He4GL8P9QKKB+CJ37sBN
v8z/xPSZIAY9EXEx2dgpUZ/ywz221Q==
=tFf2
-----END PGP SIGNATURE-----payloadtree 4455623f9f5b36f7f6d245093d747ab31d6c7fe5
parent 2495868e1b3568aedd3e675b896c2fd73debf449
author Lucas Meireles <meireles31@msn.com> 1687439225 +0100
committer Lucas Meireles <meireles31@msn.com> 1687439225 +0100

less variables in test
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/d54e70b4584428a3e3e8ae0d533de82f48a39cb8html_urlShttps://github.com/palantir/atlasdb/commit/d54e70b4584428a3e3e8ae0d533de82f48a39cb8comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/d54e70b4584428a3e3e8ae0d533de82f48a39cb8/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j LucasIMEj Jg j MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4jē h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEjǓ /https://api.github.com/users/LucasIME/followersjɓ <https://api.github.com/users/LucasIME/following{/other_user}j˓ 5https://api.github.com/users/LucasIME/gists{/gist_id}j͓ <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jϓ 3https://api.github.com/users/LucasIME/subscriptionsjѓ *https://api.github.com/users/LucasIME/orgsjӓ +https://api.github.com/users/LucasIME/reposjՓ 6https://api.github.com/users/LucasIME/events{/privacy}jד 5https://api.github.com/users/LucasIME/received_eventsjٓ Userjۓ uparents]}(j (2495868e1b3568aedd3e675b896c2fd73debf449j ^https://api.github.com/repos/palantir/atlasdb/commits/2495868e1b3568aedd3e675b896c2fd73debf449j Shttps://github.com/palantir/atlasdb/commit/2495868e1b3568aedd3e675b896c2fd73debf449uastats}(totalK 	additionsK
	deletionsKufiles]}(j (95bbd4b26e177ecc27cf810a8a4c0db6dff60aa5filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedj K
j KchangesK blob_urlhttps://github.com/palantir/atlasdb/blob/d54e70b4584428a3e3e8ae0d533de82f48a39cb8/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/d54e70b4584428a3e3e8ae0d533de82f48a39cb8/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=d54e70b4584428a3e3e8ae0d533de82f48a39cb8patchXy  @@ -2438,16 +2438,14 @@ public void emitExhaustiveMetricWhenReadingExistingValue() {
         Transaction transaction =
                 getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
 
-        Counter exhaustiveReadCounter = getExhaustiveReadCounter(true);
-        long exhaustiveReadsBeforeGet = exhaustiveReadCounter.getCount();
-        Counter nonExhaustiveReadCounter = getExhaustiveReadCounter(false);
-        long nonExhaustiveReadsBeforeGet = nonExhaustiveReadCounter.getCount();
+        long exhaustiveReadsBeforeGet = getReadCounter(true).getCount();
+        long nonExhaustiveReadsBeforeGet = getReadCounter(false).getCount();
 
         transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL));
 
-        long exhaustiveReadsCountAfterGet = exhaustiveReadCounter.getCount();
+        long exhaustiveReadsCountAfterGet = getReadCounter(true).getCount();
         assertThat(exhaustiveReadsCountAfterGet).isEqualTo(exhaustiveReadsBeforeGet + 1);
-        long nonExhaustiveReadsCountAfterGet = nonExhaustiveReadCounter.getCount();
+        long nonExhaustiveReadsCountAfterGet = getReadCounter(false).getCount();
         assertThat(nonExhaustiveReadsCountAfterGet).isEqualTo(nonExhaustiveReadsBeforeGet);
     }
 
@@ -2458,16 +2456,14 @@ public void emitNonExhaustiveMetricWhenReadingMissingValue() {
         Transaction transaction =
                 getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
 
-        Counter exhaustiveReadCounter = getExhaustiveReadCounter(true);
-        long exhaustiveReadsBeforeGet = exhaustiveReadCounter.getCount();
-        Counter nonExhaustiveReadCounter = getExhaustiveReadCounter(false);
-        long nonExhaustiveReadsBeforeGet = nonExhaustiveReadCounter.getCount();
+        long exhaustiveReadsBeforeGet = getReadCounter(true).getCount();
+        long nonExhaustiveReadsBeforeGet = getReadCounter(false).getCount();
 
         transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL_2));
 
-        long exhaustiveReadsCountAfterGet = exhaustiveReadCounter.getCount();
+        long exhaustiveReadsCountAfterGet = getReadCounter(true).getCount();
         assertThat(exhaustiveReadsCountAfterGet).isEqualTo(exhaustiveReadsBeforeGet);
-        long nonExhaustiveReadsCountAfterGet = nonExhaustiveReadCounter.getCount();
+        long nonExhaustiveReadsCountAfterGet = getReadCounter(false).getCount();
         assertThat(nonExhaustiveReadsCountAfterGet).isEqualTo(nonExhaustiveReadsBeforeGet + 1);
     }
 
@@ -2480,20 +2476,18 @@ public void emitNonExhaustiveMetricWhenReadingCombinatioOfPresentAndMissingValue
         Transaction transaction =
                 getSnapshotTransactionWith(timelockService, () -> transactionTs, res, PreCommitConditions.NO_OP, false);
 
-        Counter exhaustiveReadCounter = getExhaustiveReadCounter(true);
-        long exhaustiveReadsBeforeGet = exhaustiveReadCounter.getCount();
-        Counter nonExhaustiveReadCounter = getExhaustiveReadCounter(false);
-        long nonExhaustiveReadsBeforeGet = nonExhaustiveReadCounter.getCount();
+        long exhaustiveReadsBeforeGet = getReadCounter(true).getCount();
+        long nonExhaustiveReadsBeforeGet = getReadCounter(false).getCount();
 
         transaction.get(TABLE_SWEPT_THOROUGH, ImmutableSet.of(TEST_CELL, TEST_CELL_2));
 
-        long exhaustiveReadsCountAfterGet = exhaustiveReadCounter.getCount();
+        long exhaustiveReadsCountAfterGet = getReadCounter(true).getCount();
         assertThat(exhaustiveReadsCountAfterGet).isEqualTo(exhaustiveReadsBeforeGet);
-        long nonExhaustiveReadsCountAfterGet = nonExhaustiveReadCounter.getCount();
+        long nonExhaustiveReadsCountAfterGet = getReadCounter(false).getCount();
         assertThat(nonExhaustiveReadsCountAfterGet).isEqualTo(nonExhaustiveReadsBeforeGet + 1);
     }
 
-    private Counter getExhaustiveReadCounter(boolean isExhaustive) {
+    private Counter getReadCounter(boolean isExhaustive) {
         return metricsManager.registerOrGetTaggedCounter(
                 SnapshotTransaction.class,
                 "snapshotTransactionGetInternal",uau(6432b0da64243c512473b2d8e9ff3115d1403c85}(sha(6432b0da64243c512473b2d8e9ff3115d1403c85node_idEC_kwDOAjP5fdoAKDY0MzJiMGRhNjQyNDNjNTEyNDczYjJkOGU5ZmYzMTE1ZDE0MDNjODUcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-05-31T15:24:05Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-05-31T15:27:52ZumessageAdd LOCK_ACQUISITION_FAILURES metric

The metric counter is incremented whenever a transaction fails to acquire the necessary write locks at the beginning of the AtlasDB commit protocol.tree}(j
 (d72a47457d18177819939ddaf53cce4185da05b0url`https://api.github.com/repos/palantir/atlasdb/git/trees/d72a47457d18177819939ddaf53cce4185da05b0uj" bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6432b0da64243c512473b2d8e9ff3115d1403c85
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmR3Z3kACgkQmF9s0kaF
Iw3BlQgAnBAmtoQWF0bCJaTsYO/eqpVpjGouVISWq5j7rNNQYoKa6BMg0s17rV4U
j0hdPV2bQnTom63n0dm3/HgAxtfQQqvkdJIO/6fD9EQ5SqfnY4sEH7uhQNlHfnW0
YXeJlxpbqm1gWKyeqI3iyBaf0SEDyv5Z0FfhA0AqLXKAaxo22iaqv9n1umqutYYx
H747VK9WSWYtWKj35zVfMcBtb/bkNTg8FazL5osAyFWc+XntiCWX7a60ldNaWkNh
49+lB48Ww9DvuC1gri6QheZA1tSfV9ey1jHugCOYM4ZdptZtylLaJeH7ARQB4ASz
vRyleuKj2e+0UPcI/wiukzbRHF7YdA==
=WMXd
-----END PGP SIGNATURE-----payloadX  tree d72a47457d18177819939ddaf53cce4185da05b0
parent bf6890433442e3e1661fb64a5ec87a7ffee50c23
author Tom Papke <tpapke@palantir.com> 1685546645 +0100
committer Tom Papke <tpapke@palantir.com> 1685546872 +0100

Add LOCK_ACQUISITION_FAILURES metric

The metric counter is incremented whenever a transaction fails to acquire the necessary write locks at the beginning of the AtlasDB commit protocol.
uuj" ^https://api.github.com/repos/palantir/atlasdb/commits/6432b0da64243c512473b2d8e9ff3115d1403c85html_urlShttps://github.com/palantir/atlasdb/commit/6432b0da64243c512473b2d8e9ff3115d1403c85comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6432b0da64243c512473b2d8e9ff3115d1403c85/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j" &https://api.github.com/users/Toemmschej0 https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j5 	Toemmschej7 Jboj MDQ6VXNlcjQzNjc1NDkwj9 4https://avatars.githubusercontent.com/u/43675490?v=4j; h5j" &https://api.github.com/users/Toemmschej0 https://github.com/Toemmschej> 0https://api.github.com/users/Toemmsche/followersj@ =https://api.github.com/users/Toemmsche/following{/other_user}jB 6https://api.github.com/users/Toemmsche/gists{/gist_id}jD =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}jF 4https://api.github.com/users/Toemmsche/subscriptionsjH +https://api.github.com/users/Toemmsche/orgsjJ ,https://api.github.com/users/Toemmsche/reposjL 7https://api.github.com/users/Toemmsche/events{/privacy}jN 6https://api.github.com/users/Toemmsche/received_eventsjP UserjR uparents]}(j
 (bf6890433442e3e1661fb64a5ec87a7ffee50c23j" ^https://api.github.com/repos/palantir/atlasdb/commits/bf6890433442e3e1661fb64a5ec87a7ffee50c23j0 Shttps://github.com/palantir/atlasdb/commit/bf6890433442e3e1661fb64a5ec87a7ffee50c23uastats}(totalK1	additionsK/	deletionsKufiles](}(j
 (d4002b4c11785bc5744db7c1f92066dd1a9174cbfilename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedjl Kjm K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/6432b0da64243c512473b2d8e9ff3115d1403c85/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6432b0da64243c512473b2d8e9ff3115d1403c85/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=6432b0da64243c512473b2d8e9ff3115d1403c85patchX  @@ -2412,6 +2412,7 @@ protected LockToken acquireLocksForCommit() {
                                 lockDescriptors, currentTransactionConfig, stackTraceSnapshot))
                         .build());
         if (!lockResponse.wasSuccessful()) {
+            transactionOutcomeMetrics.markLockAcquisitionFailed();
             log.error(
                     "Timed out waiting while acquiring commit locks. Timeout was {} ms. "
                             + "First ten required locks were {}.",u}(j
 (153e474ac57efdb491d9f18e6f84431ca41f9c6ejr gatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcome.javajt modifiedjl Kjm Kjv Kjw https://github.com/palantir/atlasdb/blob/6432b0da64243c512473b2d8e9ff3115d1403c85/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.javajy https://github.com/palantir/atlasdb/raw/6432b0da64243c512473b2d8e9ff3115d1403c85/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.javaj{ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcome.java?ref=6432b0da64243c512473b2d8e9ff3115d1403c85j} X  @@ -62,5 +62,10 @@ public enum TransactionOutcome {
      * that started before our start timestamp and hasn't committed). This will be logged at most once for a given
      * transaction being rolled back, even if multiple transactions aim to rollback the same transaction.
      */
-    ROLLBACK_OTHER
+    ROLLBACK_OTHER,
+
+    /**
+     * The transaction failed to acquire write locks at the beginning of the commit protocol.
+     */
+    LOCK_ACQUISITION_FAILED,
 }u}(j
 (268f40b0b4b78c7ce6d2fc656aafe405ae3c2b26jr natlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetrics.javajt modifiedjl Kjm K jv Kjw https://github.com/palantir/atlasdb/blob/6432b0da64243c512473b2d8e9ff3115d1403c85/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.javajy https://github.com/palantir/atlasdb/raw/6432b0da64243c512473b2d8e9ff3115d1403c85/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.javaj{ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetrics.java?ref=6432b0da64243c512473b2d8e9ff3115d1403c85j} X  @@ -85,6 +85,10 @@ public void markRollbackOtherTransaction() {
         getMeter(TransactionOutcome.ROLLBACK_OTHER).mark();
     }
 
+    public void markLockAcquisitionFailed() {
+        getMeter(TransactionOutcome.LOCK_ACQUISITION_FAILED).mark();
+    }
+
     @VisibleForTesting
     Meter getMeter(TransactionOutcome outcome) {
         return getMeter(outcome, ImmutableMap.of());u}(j
 (7edac4d11b6947aef671b3797324cd3b904daab0jr uatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetricsAssert.javajt modifiedjl Kjm K jv Kjw https://github.com/palantir/atlasdb/blob/6432b0da64243c512473b2d8e9ff3115d1403c85/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.javajy https://github.com/palantir/atlasdb/raw/6432b0da64243c512473b2d8e9ff3115d1403c85/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.javaj{ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsAssert.java?ref=6432b0da64243c512473b2d8e9ff3115d1403c85j} X  @@ -59,6 +59,11 @@ public TransactionOutcomeMetricsAssert hasRollbackOther(long count) {
         return this;
     }
 
+    public TransactionOutcomeMetricsAssert hasLocksAcquisitionFailures(long count) {
+        checkPresentAndCheckCount(TransactionOutcome.LOCK_ACQUISITION_FAILED, count);
+        return this;
+    }
+
     public TransactionOutcomeMetricsAssert hasLocksExpired(long count) {
         checkPresentAndCheckCount(TransactionOutcome.LOCKS_EXPIRED, count);
         return this;u}(j
 (d4233a695d0ac4455d24f916ecd12ff870bdd46ajr eatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javajt modifiedjl Kjm K jv Kjw https://github.com/palantir/atlasdb/blob/6432b0da64243c512473b2d8e9ff3115d1403c85/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javajy https://github.com/palantir/atlasdb/raw/6432b0da64243c512473b2d8e9ff3115d1403c85/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaj{ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=6432b0da64243c512473b2d8e9ff3115d1403c85j} X	  @@ -90,6 +90,7 @@
 import com.palantir.atlasdb.transaction.api.TransactionConflictException;
 import com.palantir.atlasdb.transaction.api.TransactionFailedNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionFailedRetriableException;
+import com.palantir.atlasdb.transaction.api.TransactionLockAcquisitionTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
@@ -118,6 +119,7 @@
 import com.palantir.lock.SimpleTimeDuration;
 import com.palantir.lock.TimeDuration;
 import com.palantir.lock.v2.LockImmutableTimestampResponse;
+import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.math.BigInteger;
@@ -1484,6 +1486,32 @@ public void commitThrowsIfRolledBackAtCommitTime_expiredLocks() {
                 .hasLocksExpired(1);
     }
 
+    @Test
+    public void commitThrowsIfLocksAcquisitionFails() {
+        final Cell cell = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("column1"));
+
+        TimelockService timelockServiceMock = mock(TimelockService.class);
+        // Let request to acquire commit locks time out
+        when(timelockServiceMock.lock(any(), any())).thenReturn(LockResponse.timedOut());
+
+        ConjureStartTransactionsResponse conjureResponse = startTransactionWithWatches();
+        LockImmutableTimestampResponse res = conjureResponse.getImmutableTimestamp();
+        long transactionTs = conjureResponse.getTimestamps().start();
+
+        Transaction snapshot = getSnapshotTransactionWith(timelockServiceMock, () -> transactionTs, res, unused -> {
+        });
+
+        // Need a writer to trigger writer commit protocol
+        snapshot.put(TABLE, ImmutableMap.of(cell, PtBytes.toBytes("value")));
+
+        // Lock acquisition should fail and be marked as time out
+        assertThatExceptionOfType(TransactionLockAcquisitionTimeoutException.class).isThrownBy(snapshot::commit);
+
+        TransactionOutcomeMetricsAssert.assertThat(transactionOutcomeMetrics)
+                .hasFailedCommits(1)
+                .hasLocksAcquisitionFailures(1);
+    }
+
     @Test
     public void commitThrowsIfRolledBackAtCommitTime_alreadyAborted() {
         final Cell cell = Cell.create(PtBytes.toBytes("row1"), PtBytes.toBytes("column1"));uS      }(j
 (2d9f0c9438e48947c26afb2ba5694affd57b5ac6jr satlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/metrics/TransactionOutcomeMetricsTest.javajt modifiedjl Kjm Kjv Kjw https://github.com/palantir/atlasdb/blob/6432b0da64243c512473b2d8e9ff3115d1403c85/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.javajy https://github.com/palantir/atlasdb/raw/6432b0da64243c512473b2d8e9ff3115d1403c85/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.javaj{ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2Fmetrics%2FTransactionOutcomeMetricsTest.java?ref=6432b0da64243c512473b2d8e9ff3115d1403c85j} XA  @@ -72,6 +72,7 @@ public void canMarkVariousOutcomes() {
                 .put(4, transactionOutcomeMetrics::markPutUnlessExistsFailed)
                 .put(5, transactionOutcomeMetrics::markRollbackOtherTransaction)
                 .put(6, transactionOutcomeMetrics::markPreCommitCheckFailed)
+                .put(7, transactionOutcomeMetrics::markLockAcquisitionFailed)
                 .buildOrThrow();
 
         tasks.entrySet().forEach(entry -> IntStream.range(0, entry.getKey())
@@ -83,7 +84,8 @@ public void canMarkVariousOutcomes() {
                 .hasLocksExpired(3)
                 .hasPutUnlessExistsFailures(4)
                 .hasRollbackOther(5)
-                .hasPreCommitCheckFailures(6);
+                .hasPreCommitCheckFailures(6)
+                .hasLocksAcquisitionFailures(7);
     }
 
     @Testueu(e9bce1a21e69b0d3f812783ebb703cc9a4130aa2}(sha(e9bce1a21e69b0d3f812783ebb703cc9a4130aa2node_idEC_kwDOAjP5fdoAKGU5YmNlMWEyMWU2OWIwZDNmODEyNzgzZWJiNzAzY2M5YTQxMzBhYTIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-07T18:30:26Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-06-07T18:30:26ZumessageSpotlesstree}(j (d0b531fff5ef8cd0a792b66a93eb1d65c45fe202url`https://api.github.com/repos/palantir/atlasdb/git/trees/d0b531fff5ef8cd0a792b66a93eb1d65c45fe202uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e9bce1a21e69b0d3f812783ebb703cc9a4130aa2
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSAzMIACgkQTLdFKain
zjzRjQgAjlKTUFY/XNANINObYImwp5/u4qIPg2xl5Qbv7A5eWhmbEVJ0G+PE9QSp
10Npwi+sBYjshF9bgAxckau8PJQkan1aS9xoxGKzhXcbNrZRgIZwA91q6hSOpvS1
mYPfYY4leItJ5gdGvw0IRQI08zEER6Wjas1m9HFVys2k3UoMEi/i5NWeN58Es/C5
8f9ISA13YogfKwG0Kudl1Y+jgbqcZzOZBhkJV9qwczFAunZRpxAvPX5NVCi9INyL
KyCrmqyU+4+kWlwzCpmzqQ58mFXI3IQ09Srto5BZ3c6AJScQZbJHPUbwJ/qn5ggO
tEQOd3XijokduarGCGHzDIvrmPTtQA==
=ux7w
-----END PGP SIGNATURE-----payloadtree d0b531fff5ef8cd0a792b66a93eb1d65c45fe202
parent c312e4cac3c4c9d2233bcc79db4ebd74d9f8590b
author Jeremy Kong <jkong@palantir.com> 1686162626 +0100
committer Jeremy Kong <jkong@palantir.com> 1686162626 +0100

Spotless
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/e9bce1a21e69b0d3f812783ebb703cc9a4130aa2html_urlShttps://github.com/palantir/atlasdb/commit/e9bce1a21e69b0d3f812783ebb703cc9a4130aa2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e9bce1a21e69b0d3f812783ebb703cc9a4130aa2/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91jϔ https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(jԔ 
jeremyk-91j֔ JZ j MDQ6VXNlcjU5NTU1MTA=jؔ 3https://avatars.githubusercontent.com/u/5955510?v=4jڔ h5j 'https://api.github.com/users/jeremyk-91jϔ https://github.com/jeremyk-91jݔ 1https://api.github.com/users/jeremyk-91/followersjߔ >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j (c312e4cac3c4c9d2233bcc79db4ebd74d9f8590bj ^https://api.github.com/repos/palantir/atlasdb/commits/c312e4cac3c4c9d2233bcc79db4ebd74d9f8590bjϔ Shttps://github.com/palantir/atlasdb/commit/c312e4cac3c4c9d2233bcc79db4ebd74d9f8590buastats}(totalK
	additionsK	deletionsKufiles]}(j (98c826c9208fca80e3a6f1f1efcf8240c030d9fffilenameatlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javastatusmodifiedj Kj KchangesK
blob_urlhttps://github.com/palantir/atlasdb/blob/e9bce1a21e69b0d3f812783ebb703cc9a4130aa2/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e9bce1a21e69b0d3f812783ebb703cc9a4130aa2/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=e9bce1a21e69b0d3f812783ebb703cc9a4130aa2patchX  @@ -33,8 +33,8 @@ public class MaybeWitnessedTransactionTest {
     @Test
     public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
         assertThatLoggableExceptionThrownBy(() -> MaybeWitnessedTransaction.builder()
-                .startTimestamp(START_TIMESTAMP)
-                .build())
+                        .startTimestamp(START_TIMESTAMP)
+                        .build())
                 .isInstanceOf(SafeIllegalArgumentException.class)
                 .hasMessageContaining(
                         "Given how the transaction protocol works, a transaction for which we haven't retrieved the"
@@ -44,9 +44,9 @@ public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
     @Test
     public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
         assertThatCode(() -> MaybeWitnessedTransaction.builder()
-                .startTimestamp(START_TIMESTAMP)
-                .commitTimestamp(COMMIT_TIMESTAMP)
-                .build())
+                        .startTimestamp(START_TIMESTAMP)
+                        .commitTimestamp(COMMIT_TIMESTAMP)
+                        .build())
                 .doesNotThrowAnyException();
     }
 uau(e5b4e3e9687709d4aac0b320fb5b34c9d2d7a46f}(sha(e5b4e3e9687709d4aac0b320fb5b34c9d2d7a46fnode_idEC_kwDOAjP5fdoAKGU1YjRlM2U5Njg3NzA5ZDRhYWMwYjMyMGZiNWIzNGM5ZDJkN2E0NmYcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-07-11T13:54:11Zu	committer}(j( GitHubj* noreply@github.comj, 2023-07-11T13:54:11ZumessageOptimize ThriftObjectSizeUtils::getCollectionSize for random access lists (#6650)

Optimize ThriftObjectSizeUtils::getCollectionSize for random access liststree}(j  (50012e65220132a83810fc4d88546dc2537301daurl`https://api.github.com/repos/palantir/atlasdb/git/trees/50012e65220132a83810fc4d88546dc2537301dauj8 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e5b4e3e9687709d4aac0b320fb5b34c9d2d7a46f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkrV8DCRBK7hj4Ov3rIwAAd+4IAGhb0TN15iQGcC/LhrUXBZK2
CVKsOeQmRuHQZXT4qw+9g3v8A6k4nBPEEnxKnT8nY6xZmmVwxT0o05UtCZxaFkEh
G5ptZAx8p8OVUSKm+fOwknzKo97VSKzqsPWcG3T5xp2hKIKV1DJXzGS1pI1U6UBc
nQoB75P5MjQvwez8nZdoXLAXOLHt//O9clZcfn456O++ZBV3uHpg90ZMpxPRm4h1
ktDmyzLRuEBxjUThgi2zGW5RdkC3Wy4NsgjLF3MOkzaQV13hWtnY5y0a3UfuEbB0
XLHF0h2yG4eYciIeHCVzrWH9ILZreEvB2UlGD3R0q2hzqQyiE7/V+qkkJr0OESs=
=zmin
-----END PGP SIGNATURE-----
payloadXs  tree 50012e65220132a83810fc4d88546dc2537301da
parent 9af0e988339a6ae7646624a0b050518a169ec32c
author David Schlosnagle <davids@palantir.com> 1689083651 -0400
committer GitHub <noreply@github.com> 1689083651 +0000

Optimize ThriftObjectSizeUtils::getCollectionSize for random access lists (#6650)

Optimize ThriftObjectSizeUtils::getCollectionSize for random access lists
uuj8 ^https://api.github.com/repos/palantir/atlasdb/commits/e5b4e3e9687709d4aac0b320fb5b34c9d2d7a46fhtml_urlShttps://github.com/palantir/atlasdb/commit/e5b4e3e9687709d4aac0b320fb5b34c9d2d7a46fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e5b4e3e9687709d4aac0b320fb5b34c9d2d7a46f/commentsj& }(loginschlosnaidMBj" MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5j8 %https://api.github.com/users/schlosnajF https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminuj. }(jK web-flowjM J/j" MDQ6VXNlcjE5ODY0NDQ3jO 4https://avatars.githubusercontent.com/u/19864447?v=4jQ h5j8 %https://api.github.com/users/web-flowjF https://github.com/web-flowjT /https://api.github.com/users/web-flow/followersjV <https://api.github.com/users/web-flow/following{/other_user}jX 5https://api.github.com/users/web-flow/gists{/gist_id}jZ <https://api.github.com/users/web-flow/starred{/owner}{/repo}j\ 3https://api.github.com/users/web-flow/subscriptionsj^ *https://api.github.com/users/web-flow/orgsj` +https://api.github.com/users/web-flow/reposjb 6https://api.github.com/users/web-flow/events{/privacy}jd 5https://api.github.com/users/web-flow/received_eventsjf Userjh uparents]}(j  (9af0e988339a6ae7646624a0b050518a169ec32cj8 ^https://api.github.com/repos/palantir/atlasdb/commits/9af0e988339a6ae7646624a0b050518a169ec32cjF Shttps://github.com/palantir/atlasdb/commit/9af0e988339a6ae7646624a0b050518a169ec32cuastats}(totalKM	additionsK<	deletionsKufiles](}(j  (7fa6e573e6b5f2ef697deaef51ce4df058945c7bfilename.palantir/revapi.ymlstatusmodifiedj Kj K changesKblob_urlhhttps://github.com/palantir/atlasdb/blob/e5b4e3e9687709d4aac0b320fb5b34c9d2d7a46f/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/e5b4e3e9687709d4aac0b320fb5b34c9d2d7a46f/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=e5b4e3e9687709d4aac0b320fb5b34c9d2d7a46fpatchX  @@ -121,3 +121,11 @@ acceptedBreaks:
       old: "method java.util.concurrent.ExecutorService com.palantir.atlasdb.keyvalue.impl.AbstractKeyValueService::createThreadPoolWihtoutSpans(java.lang.String,\
         \ int, int) @ com.palantir.atlasdb.keyvalue.cassandra.CassandraKeyValueServiceImpl"
       justification: "Protected method"
+  "0.881.0":
+    com.palantir.atlasdb:atlasdb-cassandra:
+    - code: "java.method.parameterTypeChanged"
+      old: "parameter <T> long com.palantir.atlasdb.keyvalue.cassandra.thrift.ThriftObjectSizeUtils::getCollectionSize(java.util.Collection<T>,\
+        \ ===java.util.function.Function<T, java.lang.Long>===)"
+      new: "parameter <T> long com.palantir.atlasdb.keyvalue.cassandra.thrift.ThriftObjectSizeUtils::getCollectionSize(java.util.Collection<T>,\
+        \ ===java.util.function.ToLongFunction<T>===)"
+      justification: "Avoid autoboxing long to Long"u}(j  (63787d74ad98cccd71313f8155a246a327aa33a3j iatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/thrift/ThriftObjectSizeUtils.javaj modifiedj K.j Kj K?j https://github.com/palantir/atlasdb/blob/e5b4e3e9687709d4aac0b320fb5b34c9d2d7a46f/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fthrift%2FThriftObjectSizeUtils.javaj https://github.com/palantir/atlasdb/raw/e5b4e3e9687709d4aac0b320fb5b34c9d2d7a46f/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fthrift%2FThriftObjectSizeUtils.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fthrift%2FThriftObjectSizeUtils.java?ref=e5b4e3e9687709d4aac0b320fb5b34c9d2d7a46fj X  @@ -21,8 +21,11 @@
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.RandomAccess;
 import java.util.function.Function;
+import java.util.function.ToLongFunction;
 import java.util.stream.Collectors;
+import javax.annotation.Nullable;
 import org.apache.cassandra.thrift.Column;
 import org.apache.cassandra.thrift.ColumnOrSuperColumn;
 import org.apache.cassandra.thrift.CounterColumn;
@@ -52,7 +55,7 @@ public static long getApproximateSizeOfMutationMap(Map<ByteBuffer, Map<String, L
                 currentMap -> getCollectionSize(currentMap.keySet(), ThriftObjectSizeUtils::getStringSize)
                         + getCollectionSize(
                                 currentMap.values(),
-                                mutations -> getCollectionSize(mutations, ThriftObjectSizeUtils::getMutationSize)));
+                                mutations -> getListSize(mutations, ThriftObjectSizeUtils::getMutationSize)));
         return approxBytesForKeys + approxBytesForValues;
     }
 
@@ -64,9 +67,9 @@ public static Map<String, Long> getSizeOfMutationPerTable(
             long keySize = ThriftObjectSizeUtils.getByteBufferSize(key);
 
             tableToMutations.forEach((table, mutations) -> {
-                Long size = tableToSize.getOrDefault(table, 0L);
+                long size = tableToSize.getOrDefault(table, 0L);
                 size += keySize;
-                size += getCollectionSize(mutations, ThriftObjectSizeUtils::getMutationSize);
+                size += getListSize(mutations, ThriftObjectSizeUtils::getMutationSize);
 
                 tableToSize.put(table, size);
             });
@@ -79,7 +82,7 @@ public static long getApproximateSizeOfColsByKey(Map<ByteBuffer, List<ColumnOrSu
         return getCollectionSize(
                 result.entrySet(),
                 rowResult -> ThriftObjectSizeUtils.getByteBufferSize(rowResult.getKey())
-                        + getCollectionSize(rowResult.getValue(), ThriftObjectSizeUtils::getColumnOrSuperColumnSize));
+                        + getListSize(rowResult.getValue(), ThriftObjectSizeUtils::getColumnOrSuperColumnSize));
     }
 
     public static long getApproximateSizeOfColListsByKey(Map<ByteBuffer, List<List<ColumnOrSuperColumn>>> result) {
@@ -89,13 +92,13 @@ public static long getApproximateSizeOfColListsByKey(Map<ByteBuffer, List<List<C
     }
 
     public static long getApproximateSizeOfKeySlices(List<KeySlice> slices) {
-        return getCollectionSize(slices, ThriftObjectSizeUtils::getKeySliceSize);
+        return getListSize(slices, ThriftObjectSizeUtils::getKeySliceSize);
     }
 
     public static long getCasByteCount(List<Column> updates) {
-        // TODO(nziebart): CAS actually writes more bytes than this, because the associated Paxos negotations must
+        // TODO(nziebart): CAS actually writes more bytes than this, because the associated Paxos negotiations must
         // be persisted
-        return getCollectionSize(updates, ThriftObjectSizeUtils::getColumnSize);
+        return getListSize(updates, ThriftObjectSizeUtils::getColumnSize);
     }
 
     public static long getColumnOrSuperColumnSize(ColumnOrSuperColumn columnOrSuperColumn) {
@@ -128,7 +131,7 @@ public static long getCqlResultSize(CqlResult cqlResult) {
             return getNullSize();
         }
         return getThriftEnumSize()
-                + getCollectionSize(cqlResult.getRows(), ThriftObjectSizeUtils::getCqlRowSize)
+                + getListSize(cqlResult.getRows(), ThriftObjectSizeUtils::getCqlRowSize)
                 + Integer.BYTES
                 + getCqlMetadataSize(cqlResult.getSchema());
     }
@@ -138,7 +141,7 @@ public static long getKeySliceSize(KeySlice keySlice) {
             return getNullSize();
         }
         return getBytesSize(keySlice, KeySlice::bufferForKey, KeySlice::getKey)
-                + getCollectionSize(keySlice.getColumns(), ThriftObjectSizeUtils::getColumnOrSuperColumnSize);
+                + getListSize(keySlice.getColumns(), ThriftObjectSizeUtils::getColumnOrSuperColumnSize);
     }
 
     public static long getStringSize(String string) {
@@ -163,7 +166,7 @@ private static long getCounterSuperColumnSize(CounterSuperColumn counterSuperCol
             return getNullSize();
         }
         return getBytesSize(counterSuperColumn, CounterSuperColumn::bufferForName, CounterSuperColumn::getName)
-                + getCollectionSize(counterSuperColumn.getColumns(), ThriftObjectSizeUtils::getCounterColumnSize);
+                + getListSize(counterSuperColumn.getColumns(), ThriftObjectSizeUtils::getCounterColumnSize);
     }
 
     private static long getCounterColumnSize(CounterColumn counterColumn) {
@@ -179,7 +182,7 @@ private static long getSuperColumnSize(SuperColumn superColumn) {
             return getNullSize();
         }
         return getBytesSize(superColumn, SuperColumn::bufferForName, SuperColumn::getName)
-                + getCollectionSize(superColumn.getColumns(), ThriftObjectSizeUtils::getColumnSize);
+                + getListSize(superColumn.getColumns(), ThriftObjectSizeUtils::getColumnSize);
     }
 
     private static long getDeletionSize(Deletion deletion) {
@@ -196,7 +199,7 @@ private static long getSlicePredicateSize(SlicePredicate predicate) {
             return getNullSize();
         }
 
-        return getCollectionSize(predicate.getColumn_names(), ThriftObjectSizeUtils::getByteBufferSize)
+        return getListSize(predicate.getColumn_names(), ThriftObjectSizeUtils::getByteBufferSize)
                 + getSliceRangeSize(predicate.getSlice_range());
     }
 
@@ -233,7 +236,7 @@ private static long getCqlRowSize(CqlRow cqlRow) {
             return getNullSize();
         }
         return getBytesSize(cqlRow, CqlRow::bufferForKey, CqlRow::getKey)
-                + getCollectionSize(cqlRow.getColumns(), ThriftObjectSizeUtils::getColumnSize);
+                + getListSize(cqlRow.getColumns(), ThriftObjectSizeUtils::getColumnSize);
     }
 
     private static long getThriftEnumSize() {
@@ -284,14 +287,40 @@ private static <T> long getBytesSize(T data, Function<T, ByteBuffer> toByteBuffe
         return byteBuffer.remaining();
     }
 
-    public static <T> long getCollectionSize(Collection<T> collection, Function<T, Long> sizeFunction) {
+    public static <T> long getCollectionSize(@Nullable Collection<T> collection, ToLongFunction<T> sizeFunction) {
         if (collection == null) {
             return getNullSize();
         }
+        if (collection instanceof List) {
+            return getListSize((List<T>) collection, sizeFunction);
+        }
+        return sumSizes(collection, sizeFunction);
+    }
+
+    private static <T> long getListSize(@Nullable List<T> list, ToLongFunction<T> sizeFunction) {
+        if (list == null) {
+            return getNullSize();
+        }
+
+        // random access lists can be more efficiently accessed via List::get(int)
+        // as this avoids allocating iterator
+        if (list instanceof RandomAccess) {
+            long sum = 0L;
+            //noinspection ForLoopReplaceableByForEach -- performance sensitive
+            for (int i = 0; i < list.size(); i++) {
+                sum += sizeFunction.applyAsLong(list.get(i));
+            }
+            return sum;
+        }
+
+        return sumSizes(list, sizeFunction);
+    }
 
-        long sum = 0;
-        for (T item : collection) {
-            sum += sizeFunction.apply(item);
+    private static <T> long sumSizes(Collection<T> collection, ToLongFunction<T> sizeFunction) {
+        long sum = 0L;
+        //noinspection ForLoopReplaceableByStream -- performance sensitive, avoiding stream allocations
+        for (T t : collection) {
+            sum += sizeFunction.applyAsLong(t);
         }
         return sum;
     }u}(j  (ba1c3212ee4a0e25e95569fe719b7b61bd3eec15j $changelog/@unreleased/pr-6650.v2.ymlj addedj Kj K j Kj |https://github.com/palantir/atlasdb/blob/e5b4e3e9687709d4aac0b320fb5b34c9d2d7a46f/changelog%2F%40unreleased%2Fpr-6650.v2.ymlj {https://github.com/palantir/atlasdb/raw/e5b4e3e9687709d4aac0b320fb5b34c9d2d7a46f/changelog%2F%40unreleased%2Fpr-6650.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6650.v2.yml?ref=e5b4e3e9687709d4aac0b320fb5b34c9d2d7a46fj @@ -0,0 +1,6 @@
+type: improvement
+improvement:
+  description: Optimize ThriftObjectSizeUtils::getCollectionSize for random access
+    lists
+  links:
+  - https://github.com/palantir/atlasdb/pull/6650ueu(7bace87a6c8ddbb16c554be9c6ae3f22416afc60}(sha(7bace87a6c8ddbb16c554be9c6ae3f22416afc60node_idEC_kwDOAjP5fdoAKDdiYWNlODdhNmM4ZGRiYjE2YzU1NGJlOWM2YWUzZjIyNDE2YWZjNjAcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-12T08:10:40Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-06-13T22:18:45ZumessageTImplement logging
- on timeout
- on failed lock acquisition if enabled
- on slow logtree}(j (cfdc1e74ac72f221c421e9da51fefcf20e5d2c03url`https://api.github.com/repos/palantir/atlasdb/git/trees/cfdc1e74ac72f221c421e9da51fefcf20e5d2c03uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7bace87a6c8ddbb16c554be9c6ae3f22416afc60
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSI60cACgkQmF9s0kaF
Iw2BZgf+LrLJYCTPX79wa4e2ylw0qfXs9Cy9XNIBL6BA5sG6bEQ6lmnvb/XAMaE2
9GItIvb2Bysf/tbDmsVDM/PXnxbNygZjlSkyAGW2XN0uQbgs303eccSYte4XvAuc
1/nkFZzOYUWUcm5Lhda04vv1Zt5SwTdDLK+ImMW7FAGjPfH1ztIRgMKF1CKAV99K
tzai1IYvGUvuA/e+kS2sZoEII+CPhiAzkqpvwQXZERV3Cv4e/CByJdcZDMYje42r
8g/Yfvdkfm/YMucXhZ9cB60nTqA+jDA6U0NNdRlfF/UqjFFlyZk5DfyoSfhelENL
FDA58UFkXG3sFqXftb0g0ud7J9uqKQ==
=U9ge
-----END PGP SIGNATURE-----payloadX'  tree cfdc1e74ac72f221c421e9da51fefcf20e5d2c03
parent 0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7
author Tom Papke <tpapke@palantir.com> 1686557440 +0100
committer Tom Papke <tpapke@palantir.com> 1686694725 +0100

Implement logging
- on timeout
- on failed lock acquisition if enabled
- on slow log
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/7bace87a6c8ddbb16c554be9c6ae3f22416afc60html_urlShttps://github.com/palantir/atlasdb/commit/7bace87a6c8ddbb16c554be9c6ae3f22416afc60comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7bace87a6c8ddbb16c554be9c6ae3f22416afc60/commentsj }(login	ToemmscheidJboj MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej͕ https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(jҕ 	Toemmschejԕ Jboj MDQ6VXNlcjQzNjc1NDkwj֕ 4https://avatars.githubusercontent.com/u/43675490?v=4jؕ h5j &https://api.github.com/users/Toemmschej͕ https://github.com/Toemmschejە 0https://api.github.com/users/Toemmsche/followersjݕ =https://api.github.com/users/Toemmsche/following{/other_user}jߕ 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(j (0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7j ^https://api.github.com/repos/palantir/atlasdb/commits/0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7j͕ Shttps://github.com/palantir/atlasdb/commit/0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7uastats}(totalM(	additionsK	deletionsK=ufiles](}(j (e3aa458d1df650f3c4d58bf990ef47ffd7fcf47efilenameJlock-api/src/main/java/com/palantir/lock/DebugThreadInfoConfiguration.javastatusmodifiedj	 Kj
 K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/7bace87a6c8ddbb16c554be9c6ae3f22416afc60/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7bace87a6c8ddbb16c554be9c6ae3f22416afc60/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FDebugThreadInfoConfiguration.java?ref=7bace87a6c8ddbb16c554be9c6ae3f22416afc60patchX  @@ -26,6 +26,10 @@ default boolean recordThreadInfo() {
         return false;
     }
 
+    /**
+     * Whether we should log thread info when we encounter lock contention.
+     * Obviously, this should only be enabled in conjunction with {@link DebugThreadInfoConfiguration#recordThreadInfo}.
+     */
     @Value.Default
     default long threadInfoSnapshotIntervalMillis() {
         return 5000L;u}(j (37b1eebff92907c8216e64f4b0422fa4af10ff0fj Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj modifiedj	 Kj
 Kj K;j https://github.com/palantir/atlasdb/blob/7bace87a6c8ddbb16c554be9c6ae3f22416afc60/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://github.com/palantir/atlasdb/raw/7bace87a6c8ddbb16c554be9c6ae3f22416afc60/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=7bace87a6c8ddbb16c554be9c6ae3f22416afc60j XG  @@ -72,6 +72,7 @@
 import com.palantir.lock.StringLockDescriptor;
 import com.palantir.lock.TimeDuration;
 import com.palantir.lock.logger.LockServiceStateLogger;
+import com.palantir.logsafe.Arg;
 import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
@@ -88,7 +89,6 @@
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.HashMap;
-import java.util.Iterator;
 import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
@@ -104,6 +104,7 @@
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicInteger;
 import java.util.function.Supplier;
+import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import javax.annotation.concurrent.Immutable;
 import javax.annotation.concurrent.ThreadSafe;
@@ -467,23 +468,25 @@ private void logNullResponse(LockClient client, LockRequest request, @Nullable H
                 token == null ? UnsafeArg.of("lockToken", "null") : UnsafeArg.of("lockToken", token));
     }
 
-    private void logLockAcquisitionFailure(Map<LockDescriptor, LockClient> failedLocks) {
+    @VisibleForTesting
+    void logLockAcquisitionFailure(Map<LockDescriptor, LockClient> failedLocks) {
         final String logMessage = "Current holders of the first {} of {} total failed locks were: {}";
 
-        List<String> lockDescriptions = new ArrayList<>();
-        Iterator<Map.Entry<LockDescriptor, LockClient>> entries =
-                failedLocks.entrySet().iterator();
-        for (int i = 0; i < MAX_FAILED_LOCKS_TO_LOG && entries.hasNext(); i++) {
-            Map.Entry<LockDescriptor, LockClient> entry = entries.next();
-            lockDescriptions.add(String.format(
-                    "Lock: %s, Holder: %s",
-                    entry.getKey().toString(), entry.getValue().toString()));
+        List<String> lockDescriptions = failedLocks.entrySet().stream()
+                .limit(MAX_FAILED_LOCKS_TO_LOG)
+                .map(entry -> String.format("Lock: %s, Holder: %s", entry.getKey(), entry.getValue()))
+                .collect(Collectors.toList());
+
+        List<Arg<?>> logArgs = new ArrayList<>();
+        logArgs.add(SafeArg.of("numLocksLogged", Math.min(MAX_FAILED_LOCKS_TO_LOG, failedLocks.size())));
+        logArgs.add(SafeArg.of("numLocksFailed", failedLocks.size()));
+        logArgs.add(UnsafeArg.of("lockDescriptions", lockDescriptions));
+
+        if (threadInfoSnapshotManager.isRecordingThreadInfo()) {
+            logArgs.add(threadInfoSnapshotManager.getRestrictedSnapshotAsLogArg(
+                    failedLocks.keySet().stream().limit(MAX_FAILED_LOCKS_TO_LOG).collect(Collectors.toSet())));
         }
-        requestLogger.trace(
-                logMessage,
-                SafeArg.of("numLocksLogged", Math.min(MAX_FAILED_LOCKS_TO_LOG, failedLocks.size())),
-                SafeArg.of("numLocksFailed", failedLocks.size()),
-                UnsafeArg.of("lockDescriptions", lockDescriptions));
+        requestLogger.trace(logMessage, logArgs);
     }
 
     private boolean isBlocking(BlockingMode blockingMode) {
@@ -529,7 +532,7 @@ private void tryLocks(
                 LockClient currentHolder = tryLock(lock.get(client, entry.getValue()), blockingMode, deadline);
                 if (log.isDebugEnabled() || isSlowLogEnabled()) {
                     long responseTimeMillis = System.currentTimeMillis() - startTime;
-                    logSlowLockAcquisition(entry.getKey().toString(), currentHolder, responseTimeMillis);
+                    logSlowLockAcquisition(entry.getKey(), currentHolder, responseTimeMillis);
                 }
                 if (currentHolder == null) {
                     locks.put(lock, entry.getValue());
@@ -548,22 +551,22 @@ private void tryLocks(
     }
 
     @VisibleForTesting
-    void logSlowLockAcquisition(String lockId, LockClient currentHolder, long durationMillis) {
+    void logSlowLockAcquisition(LockDescriptor lockDescriptor, LockClient currentHolder, long durationMillis) {
         final String slowLockLogMessage = "Blocked for {} ms to acquire lock {} {}.";
+        final String lockId = lockDescriptor.getLockIdAsString();
 
-        // Note: The construction of params is pushed into the branches, as it may be expensive.
+        List<Arg<?>> logArgs = new ArrayList<Arg<?>>();
+        logArgs.add(SafeArg.of("durationMillis", durationMillis));
+        logArgs.add(UnsafeArg.of("lockId", lockId));
+        logArgs.add(SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"));
+
+        if (threadInfoSnapshotManager.isRecordingThreadInfo()) {
+            logArgs.add(threadInfoSnapshotManager.getRestrictedSnapshotAsLogArg(Set.of(lockDescriptor)));
+        }
         if (isSlowLogEnabled() && durationMillis >= slowLogTriggerMillis) {
-            SlowLockLogger.logger.warn(
-                    slowLockLogMessage,
-                    SafeArg.of("durationMillis", durationMillis),
-                    UnsafeArg.of("lockId", lockId),
-                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"));
+            SlowLockLogger.logger.warn(slowLockLogMessage, logArgs);
         } else if (log.isDebugEnabled() && durationMillis > DEBUG_SLOW_LOG_TRIGGER_MILLIS) {
-            log.debug(
-                    slowLockLogMessage,
-                    SafeArg.of("durationMillis", durationMillis),
-                    UnsafeArg.of("lockId", lockId),
-                    SafeArg.of("outcome", currentHolder == null ? "successfully" : "unsuccessfully"));
+            log.debug(slowLockLogMessage, logArgs);
         }
     }
 u}(j (c38ddec565294aa6e41d011d588e970486238627j Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javaj modifiedj	 Kj
 K j Kj https://github.com/palantir/atlasdb/blob/7bace87a6c8ddbb16c554be9c6ae3f22416afc60/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj https://github.com/palantir/atlasdb/raw/7bace87a6c8ddbb16c554be9c6ae3f22416afc60/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=7bace87a6c8ddbb16c554be9c6ae3f22416afc60j XD  @@ -24,9 +24,12 @@
 import com.palantir.lock.LockClientAndThread;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.impl.LockServiceImpl.HeldLocks;
+import com.palantir.logsafe.UnsafeArg;
+import java.util.HashMap;
 import java.util.Map;
 import java.util.Map.Entry;
 import java.util.Objects;
+import java.util.Set;
 import java.util.concurrent.ConcurrentMap;
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.concurrent.TimeUnit;
@@ -73,6 +76,24 @@ Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot() {
         return this.lastKnownThreadInfoSnapshot;
     }
 
+    /**
+     * Returns a consistent snapshot of thread information restricted to the given lock descriptors wrapped in an
+     * unsafe logging argument.
+     */
+    public UnsafeArg<Map<LockDescriptor, LockClientAndThread>> getRestrictedSnapshotAsLogArg(
+            Set<LockDescriptor> lockDescriptors) {
+        Map<LockDescriptor, LockClientAndThread> latestSnapshot = lastKnownThreadInfoSnapshot;
+        Map<LockDescriptor, LockClientAndThread> restrictedSnapshot = new HashMap<>();
+        for (LockDescriptor lock : lockDescriptors) {
+            restrictedSnapshot.put(lock, latestSnapshot.get(lock));
+        }
+        return UnsafeArg.of("presumedClientThreadHolders", restrictedSnapshot);
+    }
+
+    public boolean isRecordingThreadInfo() {
+        return this.threadInfoConfiguration.recordThreadInfo();
+    }
+
     @VisibleForTesting
     void takeSnapshot() {
         this.lastKnownThreadInfoSnapshot = tokenMapSupplier.get().keySet().stream()u}(j (42c324db89b1c58918ce0069f86ccf77e7a1323ej Glock-impl/src/test/java/com/palantir/lock/impl/LockServiceImplTest.javaj modifiedj	 Kj
 Kj Kj https://github.com/palantir/atlasdb/blob/7bace87a6c8ddbb16c554be9c6ae3f22416afc60/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/7bace87a6c8ddbb16c554be9c6ae3f22416afc60/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImplTest.java?ref=7bace87a6c8ddbb16c554be9c6ae3f22416afc60j X   @@ -22,6 +22,7 @@
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.lock.LockClient;
+import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRefreshToken;
 import com.palantir.lock.LockRequest;
@@ -48,7 +49,7 @@
 
 public final class LockServiceImplTest {
     public static final long SLOW_LOG_TRIGGER_MILLIS = LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS + 10;
-    private static final String TEST_LOCKID = "test_lockId";
+    private static final LockDescriptor TEST_LOCK = StringLockDescriptor.of("test_lockId");
     private static LockServiceImpl lockServiceWithSlowLogEnabled;
     private static LockServiceImpl lockServiceWithSlowLogDisabled;
 
@@ -94,48 +95,60 @@ public void slowLogShouldNotBeEnabledIfSlowLogTriggerMillisIsSetToZero() {
     @Test
     public void slowLogShouldBeLoggedWhenLockResponseIsSlowButShouldNotBeLoggedAtDebug() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS + 5;
-        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertThat(testLockServiceImplLogger.getLoggingEvents()).isEmpty();
 
         assertThat(testSlowLogger.getLoggingEvents()).hasSize(1);
         assertContainsMatchingLoggingEvent(
                 testSlowLogger.getLoggingEvents(),
-                warn("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                warn(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCK.getLockIdAsString(),
+                        "unsuccessfully"));
     }
 
     @Test
     public void debugLogShouldBeLoggedWhenLockResponseIsSlowButSlowLogIsDisabled() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS + 5;
-        lockServiceWithSlowLogDisabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogDisabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertThat(testLockServiceImplLogger.getLoggingEvents()).hasSize(1);
         assertContainsMatchingLoggingEvent(
                 testLockServiceImplLogger.getLoggingEvents(),
-                debug("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                debug(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCK.getLockIdAsString(),
+                        "unsuccessfully"));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }
 
     @Test
     public void debugLogShouldBeLoggedIfLockResponseTimeIsBetweenDebugTriggerTimeAndSlowLogTriggerMillis() {
         long lockDurationMillis = SLOW_LOG_TRIGGER_MILLIS - 5;
-        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCKID, LockClient.ANONYMOUS, lockDurationMillis);
+        lockServiceWithSlowLogEnabled.logSlowLockAcquisition(TEST_LOCK, LockClient.ANONYMOUS, lockDurationMillis);
 
         assertThat(testLockServiceImplLogger.isDebugEnabled()).isTrue();
         assertContainsMatchingLoggingEvent(
                 testLockServiceImplLogger.getLoggingEvents(),
-                debug("Blocked for {} ms to acquire lock {} {}.", lockDurationMillis, TEST_LOCKID, "unsuccessfully"));
+                debug(
+                        "Blocked for {} ms to acquire lock {} {}.",
+                        lockDurationMillis,
+                        TEST_LOCK.getLockIdAsString(),
+                        "unsuccessfully"));
 
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }
 
     @Test
     public void debugOrSlowLogShouldNotBeLoggedWhenLockResponseIsNotSlow() {
         lockServiceWithSlowLogEnabled.logSlowLockAcquisition(
-                TEST_LOCKID, LockClient.ANONYMOUS, LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS - 5);
+                TEST_LOCK, LockClient.ANONYMOUS, LockServiceImpl.DEBUG_SLOW_LOG_TRIGGER_MILLIS - 5);
         assertThat(testLockServiceImplLogger.getLoggingEvents()).isEmpty();
         assertThat(testSlowLogger.getLoggingEvents()).isEmpty();
     }u}(j (f7a0eb86db4453d45c0f6446984396538e442e0bj Itimelock-agent/src/main/java/com/palantir/timelock/paxos/LockCreator.javaj modifiedj	 Kj
 Kj Kj https://github.com/palantir/atlasdb/blob/7bace87a6c8ddbb16c554be9c6ae3f22416afc60/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj https://github.com/palantir/atlasdb/raw/7bace87a6c8ddbb16c554be9c6ae3f22416afc60/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.java?ref=7bace87a6c8ddbb16c554be9c6ae3f22416afc60j XN  @@ -44,7 +44,8 @@ public CloseableLockService createThreadPoolingLockService() {
                 .build();
 
         LockServiceImpl rawLockService = LockServiceImpl.create(lockServerOptions, sharedExecutor);
-        CloseableLockService lockService = BlockingTimeLimitedLockService.create(rawLockService, blockingTimeoutMs);
+        CloseableLockService lockService = BlockingTimeLimitedLockService.create(
+                rawLockService, blockingTimeoutMs, rawLockService.getSnapshotManager());
 
         return new ThreadPooledLockService(lockService, -1, sharedThreadPool);
     }u}(j (1f01122dcd0d8457dfacd2453cbd85b55c42483bj timelock-impl/build.gradlej modifiedj	 Kj
 K j Kj nhttps://github.com/palantir/atlasdb/blob/7bace87a6c8ddbb16c554be9c6ae3f22416afc60/timelock-impl%2Fbuild.gradlej mhttps://github.com/palantir/atlasdb/raw/7bace87a6c8ddbb16c554be9c6ae3f22416afc60/timelock-impl%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fbuild.gradle?ref=7bace87a6c8ddbb16c554be9c6ae3f22416afc60j X  @@ -71,6 +71,7 @@ dependencies {
     testImplementation 'io.dropwizard.metrics:metrics-core'
     testImplementation 'org.awaitility:awaitility'
     testImplementation 'org.jmock:jmock'
+    testImplementation 'uk.org.lidalia:slf4j-test'
     testImplementation project(':atlasdb-api')
     testImplementation project(':atlasdb-autobatch')
     testImplementation project(':atlasdb-client')u}(j (049725ab95bd2d39215fe3dd76bf4a9583e75e44j btimelock-impl/src/main/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockService.javaj modifiedj	 K'j
 Kj K5j https://github.com/palantir/atlasdb/blob/7bace87a6c8ddbb16c554be9c6ae3f22416afc60/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj https://github.com/palantir/atlasdb/raw/7bace87a6c8ddbb16c554be9c6ae3f22416afc60/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockService.java?ref=7bace87a6c8ddbb16c554be9c6ae3f22416afc60j X  @@ -32,43 +32,62 @@
 import com.palantir.lock.LockServerOptions;
 import com.palantir.lock.LockState;
 import com.palantir.lock.SimpleHeldLocksToken;
+import com.palantir.lock.impl.LockThreadInfoSnapshotManager;
 import com.palantir.lock.remoting.BlockingTimeoutException;
+import com.palantir.logsafe.Arg;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.io.IOException;
 import java.math.BigInteger;
+import java.util.ArrayList;
+import java.util.List;
 import java.util.Set;
 import java.util.concurrent.Callable;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.TimeoutException;
+import java.util.stream.Collectors;
 import javax.annotation.Nullable;
 import javax.ws.rs.PathParam;
 import org.immutables.value.Value;
 
 public class BlockingTimeLimitedLockService implements CloseableLockService {
     private static final SafeLogger log = SafeLoggerFactory.get(BlockingTimeLimitedLockService.class);
 
+    @VisibleForTesting
+    static final int MAX_THREADINFO_TO_LOG = 20;
+
     private final CloseableLockService delegate;
     private final TimeLimiter timeLimiter;
     private final long blockingTimeLimitMillis;
 
+    private final LockThreadInfoSnapshotManager threadInfoSnapshotManager;
+
     @VisibleForTesting
     BlockingTimeLimitedLockService(
-            CloseableLockService delegate, TimeLimiter timeLimiter, long blockingTimeLimitMillis) {
+            CloseableLockService delegate,
+            TimeLimiter timeLimiter,
+            long blockingTimeLimitMillis,
+            LockThreadInfoSnapshotManager threadInfoSnapshotManager) {
         this.delegate = delegate;
         this.timeLimiter = timeLimiter;
         this.blockingTimeLimitMillis = blockingTimeLimitMillis;
+        this.threadInfoSnapshotManager = threadInfoSnapshotManager;
     }
 
     public static BlockingTimeLimitedLockService create(
-            CloseableLockService lockService, long blockingTimeLimitMillis) {
+            CloseableLockService lockService,
+            long blockingTimeLimitMillis,
+            LockThreadInfoSnapshotManager threadInfoSnapshotManager) {
         // TODO (jkong): Inject the executor to allow application lifecycle managed executors.
         // Currently maintaining existing behaviour.
         return new BlockingTimeLimitedLockService(
-                lockService, SimpleTimeLimiter.create(PTExecutors.newCachedThreadPool()), blockingTimeLimitMillis);
+                lockService,
+                SimpleTimeLimiter.create(PTExecutors.newCachedThreadPool()),
+                blockingTimeLimitMillis,
+                threadInfoSnapshotManager);
     }
 
     @Nullable
@@ -227,20 +246,26 @@ private static void logInterrupted(LockRequestSpecification specification, Inter
     }
 
     private BlockingTimeoutException logAndHandleTimeout(LockRequestSpecification specification) {
-        final String logMessage =
-                "Lock service timed out after {} milliseconds" + " when servicing {} for client \"{}\"";
-        log.info(
-                logMessage,
-                SafeArg.of("timeoutDurationMillis", blockingTimeLimitMillis),
-                SafeArg.of("method", specification.method()),
-                SafeArg.of("client", specification.client()),
-                UnsafeArg.of("lockRequest", specification.lockRequest()));
+        final String logMessage = "Lock service timed out after {} milliseconds when servicing {} for client \"{}\"";
+
+        List<Arg<?>> logArgs = new ArrayList<>();
+        logArgs.add(SafeArg.of("timeoutDurationMillis", blockingTimeLimitMillis));
+        logArgs.add(SafeArg.of("method", specification.method()));
+        logArgs.add(SafeArg.of("client", specification.client()));
+
+        if (threadInfoSnapshotManager.isRecordingThreadInfo()) {
+            Set<LockDescriptor> locksToLog = specification.lockRequest().getLockDescriptors().stream()
+                    .limit(MAX_THREADINFO_TO_LOG)
+                    .collect(Collectors.toSet());
+            logArgs.add(threadInfoSnapshotManager.getRestrictedSnapshotAsLogArg(locksToLog));
+        }
+        logArgs.add(UnsafeArg.of("lockRequest", specification.lockRequest()));
+        log.info(logMessage, logArgs);
 
         String errorMessage = String.format(
                 logMessage.replace("{}", "%s"),
-                blockingTimeLimitMillis,
-                specification.method(),
-                specification.client());
+                // Arg.toString() just stringifies the contained value
+                logArgs.toArray());
         return new BlockingTimeoutException(errorMessage);
     }
 u}(j (f732f0643d02f5275fe7e508eccf1f30c4eabaf3j ftimelock-impl/src/test/java/com/palantir/atlasdb/timelock/lock/BlockingTimeLimitedLockServiceTest.javaj modifiedj	 Ktj
 K
j K~j https://github.com/palantir/atlasdb/blob/7bace87a6c8ddbb16c554be9c6ae3f22416afc60/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.javaj https://github.com/palantir/atlasdb/raw/7bace87a6c8ddbb16c554be9c6ae3f22416afc60/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2Flock%2FBlockingTimeLimitedLockServiceTest.java?ref=7bace87a6c8ddbb16c554be9c6ae3f22416afc60j X)  @@ -19,34 +19,54 @@
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyLong;
+import static org.mockito.ArgumentMatchers.argThat;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.when;
+import static uk.org.lidalia.slf4jtest.LoggingEvent.info;
 
 import com.google.common.collect.ImmutableSortedMap;
 import com.google.common.util.concurrent.FakeTimeLimiter;
 import com.google.common.util.concurrent.TimeLimiter;
 import com.google.common.util.concurrent.UncheckedExecutionException;
 import com.palantir.lock.CloseableLockService;
 import com.palantir.lock.LockClient;
+import com.palantir.lock.LockClientAndThread;
+import com.palantir.lock.LockDescriptor;
 import com.palantir.lock.LockMode;
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.impl.LockThreadInfoSnapshotManager;
 import com.palantir.lock.remoting.BlockingTimeoutException;
+import com.palantir.logsafe.UnsafeArg;
 import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.SortedMap;
+import java.util.TreeMap;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.TimeoutException;
+import java.util.stream.Collectors;
 import org.junit.Before;
 import org.junit.Test;
+import uk.org.lidalia.slf4jext.Level;
+import uk.org.lidalia.slf4jtest.LoggingEvent;
+import uk.org.lidalia.slf4jtest.TestLogger;
+import uk.org.lidalia.slf4jtest.TestLoggerFactory;
 
 @SuppressWarnings("DoNotMock") // we are just using mocks as proxies that always throw
 public class BlockingTimeLimitedLockServiceTest {
     private static final long BLOCKING_TIME_LIMIT_MILLIS = 10L;
     private static final long TEST_CURRENT_TIME_MILLIS = 42L;
     private static final String CLIENT = "client";
+    private static final String TEST_THREAD = "test-thread";
+
+    private static final LockDescriptor TEST_LOCK = StringLockDescriptor.of("lockId");
     private static final LockRequest LOCK_REQUEST = LockRequest.builder(
-                    ImmutableSortedMap.of(StringLockDescriptor.of("lockId"), LockMode.WRITE))
+                    ImmutableSortedMap.of(TEST_LOCK, LockMode.WRITE))
+            .withCreatingThreadName(TEST_THREAD)
             .build();
 
     private final TimeLimiter acceptingLimiter = new FakeTimeLimiter();
@@ -57,11 +77,27 @@ public class BlockingTimeLimitedLockServiceTest {
 
     private final CloseableLockService delegate = mock(CloseableLockService.class);
 
-    private final BlockingTimeLimitedLockService acceptingService = createService(acceptingLimiter);
-    private final BlockingTimeLimitedLockService timingOutService = createService(timingOutLimiter);
-    private final BlockingTimeLimitedLockService interruptingService = createService(interruptingLimiter);
-    private final BlockingTimeLimitedLockService uncheckedThrowingService = createService(uncheckedThrowingLimiter);
-    private final BlockingTimeLimitedLockService checkedThrowingService = createService(checkedThrowingLimiter);
+    private final LockThreadInfoSnapshotManager recordingThreadInfoSnapshotManager =
+            mock(LockThreadInfoSnapshotManager.class);
+    private final LockThreadInfoSnapshotManager nonRecordingThreadInfoSnapshotManager =
+            mock(LockThreadInfoSnapshotManager.class);
+
+    private final BlockingTimeLimitedLockService acceptingService =
+            createService(acceptingLimiter, nonRecordingThreadInfoSnapshotManager);
+    private final BlockingTimeLimitedLockService timingOutAndNonRecordingService =
+            createService(timingOutLimiter, nonRecordingThreadInfoSnapshotManager);
+    private final BlockingTimeLimitedLockService interruptingService =
+            createService(interruptingLimiter, nonRecordingThreadInfoSnapshotManager);
+    private final BlockingTimeLimitedLockService uncheckedThrowingService =
+            createService(uncheckedThrowingLimiter, nonRecordingThreadInfoSnapshotManager);
+    private final BlockingTimeLimitedLockService checkedThrowingService =
+            createService(checkedThrowingLimiter, nonRecordingThreadInfoSnapshotManager);
+    private final BlockingTimeLimitedLockService timingOutAndRecordingService =
+            createService(timingOutLimiter, recordingThreadInfoSnapshotManager);
+
+    private static final String TIMEOUT_LOG_MESSAGE =
+            "Lock service timed out after {} milliseconds when servicing {}" + " for client \"{}\"";
+    private TestLogger testLogger;
 
     @Before
     public void setUp() throws Exception {
@@ -71,6 +107,10 @@ public void setUp() throws Exception {
                 .thenThrow(new UncheckedExecutionException(new IllegalStateException()));
         when(checkedThrowingLimiter.callWithTimeout(any(), anyLong(), any()))
                 .thenThrow(new ExecutionException(new Exception()));
+        when(recordingThreadInfoSnapshotManager.isRecordingThreadInfo()).thenReturn(true);
+        when(nonRecordingThreadInfoSnapshotManager.isRecordingThreadInfo()).thenReturn(false);
+        testLogger = TestLoggerFactory.getTestLogger(BlockingTimeLimitedLockService.class);
+        testLogger.setEnabledLevelsForAllThreads(Level.INFO);
     }
 
     @Test
@@ -86,7 +126,7 @@ public void delegatesUninterruptibleOperations() {
 
     @Test
     public void timeoutDoesNotApplyToUninterruptibleOperations() {
-        verifyCurrentTimeMillisDelegates(timingOutService);
+        verifyCurrentTimeMillisDelegates(timingOutAndNonRecordingService);
     }
 
     @Test
@@ -96,7 +136,7 @@ public void interruptDoesNotApplyToUninterruptibleOperations() {
 
     @Test
     public void throwsBlockingTimeoutExceptionIfInterruptibleOperationTimesOut() {
-        assertThatThrownBy(() -> timingOutService.lock(CLIENT, LOCK_REQUEST))
+        assertThatThrownBy(() -> timingOutAndNonRecordingService.lock(CLIENT, LOCK_REQUEST))
                 .isInstanceOf(BlockingTimeoutException.class);
     }
 
@@ -115,21 +155,87 @@ public void rethrowsExceptionOccurringFromInterruptibleOperation() {
                 .hasCauseExactlyInstanceOf(Exception.class);
     }
 
+    @Test
+    public void timeoutLogDoesNotIncludeThreadInfoIfNotRecording() {
+        assertThatThrownBy(() -> timingOutAndNonRecordingService.lock(CLIENT, LOCK_REQUEST))
+                .isInstanceOf(BlockingTimeoutException.class);
+        assertContainsMatchingLoggingEvent(
+                testLogger.getLoggingEvents(),
+                info(TIMEOUT_LOG_MESSAGE, BLOCKING_TIME_LIMIT_MILLIS, "lock", CLIENT, LOCK_REQUEST));
+    }
+
+    @Test
+    public void timeoutLogIncludesLastAcquiringThreadIfRecordingThreadInfo() {
+        LockClientAndThread expectedClientThread = LockClientAndThread.of(LockClient.ANONYMOUS, TEST_THREAD);
+        LockDescriptor testLock2 = StringLockDescriptor.of("test-lock-2");
+        LockRequest lockRequest = LockRequest.builder(
+                        ImmutableSortedMap.of(TEST_LOCK, LockMode.WRITE, testLock2, LockMode.WRITE))
+                .withCreatingThreadName(TEST_THREAD)
+                .build();
+
+        Map<LockDescriptor, LockClientAndThread> expected =
+                Map.of(TEST_LOCK, expectedClientThread, testLock2, expectedClientThread);
+        when(recordingThreadInfoSnapshotManager.getRestrictedSnapshotAsLogArg(Set.of(TEST_LOCK, testLock2)))
+                .thenReturn(UnsafeArg.of("presumedClientThreadHolders", expected));
+
+        assertThatThrownBy(() -> timingOutAndRecordingService.lock(CLIENT, lockRequest))
+                .isInstanceOf(BlockingTimeoutException.class);
+        assertContainsMatchingLoggingEvent(
+                testLogger.getLoggingEvents(),
+                info(TIMEOUT_LOG_MESSAGE, BLOCKING_TIME_LIMIT_MILLIS, "lock", CLIENT, expected, lockRequest));
+    }
+
+    @Test
+    public void timeoutLogIncludesAtMostNLocksIfRecordingThreadInfo() {
+        SortedMap<LockDescriptor, LockMode> locks = new TreeMap<>();
+
+        for (int i = 0; i < 2 * BlockingTimeLimitedLockService.MAX_THREADINFO_TO_LOG + 1; i++) {
+            LockDescriptor lock = StringLockDescriptor.of("thread-lock-" + i);
+            locks.put(lock, LockMode.WRITE);
+        }
+
+        LockRequest lockRequest = LockRequest.builder(locks).build();
+
+        assertThatThrownBy(() -> timingOutAndRecordingService.lock(CLIENT, lockRequest))
+                .isInstanceOf(BlockingTimeoutException.class);
+
+        verify(recordingThreadInfoSnapshotManager).getRestrictedSnapshotAsLogArg(argThat(x -> {
+            assertThat(x).hasSize(BlockingTimeLimitedLockService.MAX_THREADINFO_TO_LOG);
+            return true;
+        }));
+    }
+
     @Test
     public void closesDelegate() throws IOException {
         acceptingService.close();
 
         verify(delegate).close();
     }
 
+    private static void assertContainsMatchingLoggingEvent(List<LoggingEvent> actuals, LoggingEvent expected) {
+        List<String> expectedParamStrings = extractArgumentsAsStringList(expected);
+        assertThat(actuals.stream()
+                        .filter(event -> event.getLevel() == expected.getLevel()
+                                && event.getMessage().equals(expected.getMessage())
+                                && expectedParamStrings.equals(extractArgumentsAsStringList(event)))
+                        .collect(Collectors.toSet()))
+                .hasSize(1);
+    }
+
+    private static List<String> extractArgumentsAsStringList(LoggingEvent event) {
+        return event.getArguments().stream().map(Object::toString).collect(Collectors.toList());
+    }
+
     private void verifyCurrentTimeMillisDelegates(BlockingTimeLimitedLockService service) {
         when(delegate.currentTimeMillis()).thenReturn(TEST_CURRENT_TIME_MILLIS);
 
         assertThat(service.currentTimeMillis()).isEqualTo(TEST_CURRENT_TIME_MILLIS);
         verify(delegate, times(1)).currentTimeMillis();
     }
 
-    private BlockingTimeLimitedLockService createService(TimeLimiter limiter) {
-        return new BlockingTimeLimitedLockService(delegate, limiter, BLOCKING_TIME_LIMIT_MILLIS);
+    private BlockingTimeLimitedLockService createService(
+            TimeLimiter limiter, LockThreadInfoSnapshotManager lockThreadInfoSnapshotManager) {
+        return new BlockingTimeLimitedLockService(
+                delegate, limiter, BLOCKING_TIME_LIMIT_MILLIS, lockThreadInfoSnapshotManager);
     }
 }ueu(dd048044e77121a1dad5ecbe7f92767dbf1efab4}(sha(dd048044e77121a1dad5ecbe7f92767dbf1efab4node_idEC_kwDOAjP5fdoAKGRkMDQ4MDQ0ZTc3MTIxYTFkYWQ1ZWNiZTdmOTI3NjdkYmYxZWZhYjQcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-06-15T15:29:31Zu	committer}(j^ GitHubj` noreply@github.comjb 2023-06-15T15:29:31Zumessage+Excavator:  Upgrade Undertow Server (#6627)tree}(jV (525ab5d846216bd0e832e681181556fcfab2ed49url`https://api.github.com/repos/palantir/atlasdb/git/trees/525ab5d846216bd0e832e681181556fcfab2ed49ujn bhttps://api.github.com/repos/palantir/atlasdb/git/commits/dd048044e77121a1dad5ecbe7f92767dbf1efab4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkiy5bCRBK7hj4Ov3rIwAAz4EIAKBU5zNZ7dVRNIdVq/T5EuXM
bLXonTqf9lT3k+kAQA0Ya5NkjaO5XsFbMk96dMq9AGpSQQlU3BQIS4wKSOQ8gcJD
DLbXz5ApILmX83r0UME/e3OI0WedQo6fADK9S/E0IU79IhIaWKHG4iPg5+R8K1zM
iBO4IeQcWmZcH+yXnbMG4jjP3naWiE0pMi9cY5+5buW7tpbSeR+f+nGrHmMdYhFt
z4MDwavasHHpirH80Dev6VrC/uQ/LS3sKO+7BWKpapsht2wGcS+0Oq0elij8NYKf
uYQYn55weq969rkiH3wwCF33JZHBIoiC6gRtQjBzQp2IFhGUWUOKwwVgFH91mU0=
=BbTB
-----END PGP SIGNATURE-----
payloadX  tree 525ab5d846216bd0e832e681181556fcfab2ed49
parent 8543fd2be6850ba6f01a559ec3d9030a27557781
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1686842971 +0100
committer GitHub <noreply@github.com> 1686842971 +0800

Excavator:  Upgrade Undertow Server (#6627)

uujn ^https://api.github.com/repos/palantir/atlasdb/commits/dd048044e77121a1dad5ecbe7f92767dbf1efab4html_urlShttps://github.com/palantir/atlasdb/commit/dd048044e77121a1dad5ecbe7f92767dbf1efab4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/dd048044e77121a1dad5ecbe7f92767dbf1efab4/commentsj\ }(loginsvc-excavator-botidJjX MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5jn .https://api.github.com/users/svc-excavator-botj| $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminujd }(j web-flowj J/jX MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5jn %https://api.github.com/users/web-flowj| https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(jV (8543fd2be6850ba6f01a559ec3d9030a27557781jn ^https://api.github.com/repos/palantir/atlasdb/commits/8543fd2be6850ba6f01a559ec3d9030a27557781j| Shttps://github.com/palantir/atlasdb/commit/8543fd2be6850ba6f01a559ec3d9030a27557781uastats}(totalK	additionsK	deletionsKufiles](}(jV (2564ea500b6338a43400c91cf967575c455c5d84filename
versions.lockstatusmodifiedj Kj KchangesKblob_url_https://github.com/palantir/atlasdb/blob/dd048044e77121a1dad5ecbe7f92767dbf1efab4/versions.lockraw_url^https://github.com/palantir/atlasdb/raw/dd048044e77121a1dad5ecbe7f92767dbf1efab4/versions.lock&     contents_urlqhttps://api.github.com/repos/palantir/atlasdb/contents/versions.lock?ref=dd048044e77121a1dad5ecbe7f92767dbf1efab4patchXT  @@ -186,7 +186,7 @@ io.netty:netty-transport-native-unix-common:4.1.90.Final (7 constraints: 0378ecf
 io.netty:netty-transport-rxtx:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-sctp:4.1.90.Final (1 constraints: fc0a07cf)
 io.netty:netty-transport-udt:4.1.90.Final (1 constraints: fc0a07cf)
-io.undertow:undertow-core:2.2.24.Final (2 constraints: 361dd006)
+io.undertow:undertow-core:2.2.25.Final (2 constraints: 371d1507)
 io.vavr:vavr:0.10.4 (1 constraints: 3705273b)
 io.vavr:vavr-match:0.10.4 (1 constraints: 8b061d57)
 it.unimi.dsi:fastutil:6.5.7 (1 constraints: 6d0e414b)u}(jV (28f72a95c03b5438e26e005f70f18b75aee63554j versions.propsj modifiedj Kj Kj KjÖ `https://github.com/palantir/atlasdb/blob/dd048044e77121a1dad5ecbe7f92767dbf1efab4/versions.propsjŖ _https://github.com/palantir/atlasdb/raw/dd048044e77121a1dad5ecbe7f92767dbf1efab4/versions.propsjǖ rhttps://api.github.com/repos/palantir/atlasdb/contents/versions.props?ref=dd048044e77121a1dad5ecbe7f92767dbf1efab4jɖ X'  @@ -46,7 +46,7 @@ commons-io:* = 2.11.0
 io.airlift:airline = 0.9
 io.dropwizard:* = 2.1.2
 io.netty:* = 4.1.90.Final
-io.undertow:* = 2.2.24.Final
+io.undertow:* = 2.2.25.Final
 io.vavr:* = 0.10.4
 jakarta.xml.bind:jakarta.xml.bind-api = 2.3.3
 jakarta.validation:jakarta.validation-api = 2.0.2ueu(4e050a9cb4f8f2b45b8b700df082f442d2fec694}(sha(4e050a9cb4f8f2b45b8b700df082f442d2fec694node_idEC_kwDOAjP5fdoAKDRlMDUwYTljYjRmOGYyYjQ1YjhiNzAwZGYwODJmNDQyZDJmZWM2OTQcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-07-20T11:38:12Zu	committer}(jݖ svc-autoreleasejߖ -pd-foundry-infrastructure-notify@palantir.comj 2023-07-20T11:38:12ZumessageAutorelease 0.899.0

[skip ci]tree}(jՖ (7eea7faae0dddc05e7b3f85949bc24a076472b67url`https://api.github.com/repos/palantir/atlasdb/git/trees/7eea7faae0dddc05e7b3f85949bc24a076472b67uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/4e050a9cb4f8f2b45b8b700df082f442d2fec694
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF0EABMIAAYFAmS5HKwACgkQhbrR8ip7mDDrNgD4iYw87OyXjZS+Qtg/WL3n5Q8X
w0VFwXr5QtAu8eS5SwD/fKfqlIQ5RFF3+ha2mRzHk6GPnPnbUjm+Xxo4QUH5gN0=
=d+aE
-----END PGP SIGNATURE-----
payloadX0  tree 7eea7faae0dddc05e7b3f85949bc24a076472b67
parent bfe7051211ad42fc0f3f59928e8602f422bf630b
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1689853092 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1689853092 +0000

Autorelease 0.899.0

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/4e050a9cb4f8f2b45b8b700df082f442d2fec694html_urlShttps://github.com/palantir/atlasdb/commit/4e050a9cb4f8f2b45b8b700df082f442d2fec694comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/4e050a9cb4f8f2b45b8b700df082f442d2fec694/commentsjۖ }(loginsvc-autoreleaseidJ(jז MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj }(j  svc-autoreleasej J(jז MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej	 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j
 <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(jՖ (bfe7051211ad42fc0f3f59928e8602f422bf630bj ^https://api.github.com/repos/palantir/atlasdb/commits/bfe7051211ad42fc0f3f59928e8602f422bf630bj Shttps://github.com/palantir/atlasdb/commit/bfe7051211ad42fc0f3f59928e8602f422bf630buastats}(totalK 	additionsK 	deletionsK ufiles]}(jՖ (5f02ea670ebe579e2fc7dbfcda201cb6c125b07efilename changelog/0.899.0/pr-6660.v2.ymlstatusrenamedj7 K j8 K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/4e050a9cb4f8f2b45b8b700df082f442d2fec694/changelog%2F0.899.0%2Fpr-6660.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/4e050a9cb4f8f2b45b8b700df082f442d2fec694/changelog%2F0.899.0%2Fpr-6660.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.899.0%2Fpr-6660.v2.yml?ref=4e050a9cb4f8f2b45b8b700df082f442d2fec694previous_filename$changelog/@unreleased/pr-6660.v2.ymluau(7ce5f97e376225f397a984b99ef89d66858effa4}(sha(7ce5f97e376225f397a984b99ef89d66858effa4node_idEC_kwDOAjP5fdoAKDdjZTVmOTdlMzc2MjI1ZjM5N2E5ODRiOTllZjg5ZDY2ODU4ZWZmYTQcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-12T09:51:10Zu	committer}(jT Lucas MeirelesjV meireles31@msn.comjX 2023-06-12T09:51:10Zumessage3mark table involved doesn't need lock check anymoretree}(jL (cd3aa929aff63d911d884c3294fce1c5d8fe434curl`https://api.github.com/repos/palantir/atlasdb/git/trees/cd3aa929aff63d911d884c3294fce1c5d8fe434cujd bhttps://api.github.com/repos/palantir/atlasdb/git/commits/7ce5f97e376225f397a984b99ef89d66858effa4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSG6o8ACgkQJd22kJ7J
GiwnmAgA67XUiGGHXr46qr9lhcSJ0tBiPMxGB2Dm3kTxRV80/OHu4JxEVnZ3+eCM
rvlfeKXWtEp4qe6Czg6pwJVkXMmoOIIGR1bKZp+yzc/Lu9Z0FrdfSsnCr28mGk4i
fyv9M46v/RhWfSnEzfpUCJ9ERld3eBEs9F6/8EiAyn6/tVJiL81nnxGSzbuBBRGm
4UPdHe0qENVEx2J4NIKcfxVPrqY7LkhwPrpziLqYdsHjggBDONASuMsEkOLpdKFS
35+4S7hkxkFabs+vPX7GWUKKymzPSsxaxB/JckUTi8lk6ukC0W6v9D91PCyE1TkA
mvI2InwqvR2VtxX2qukKxyVZTzxVjA==
=Ad62
-----END PGP SIGNATURE-----payloadX  tree cd3aa929aff63d911d884c3294fce1c5d8fe434c
parent 791ec1326a3ff7b0ca2b6be273b1dbf012b74139
author Lucas Meireles <meireles31@msn.com> 1686563470 +0100
committer Lucas Meireles <meireles31@msn.com> 1686563470 +0100

mark table involved doesn't need lock check anymore
uujd ^https://api.github.com/repos/palantir/atlasdb/commits/7ce5f97e376225f397a984b99ef89d66858effa4html_urlShttps://github.com/palantir/atlasdb/commit/7ce5f97e376225f397a984b99ef89d66858effa4comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/7ce5f97e376225f397a984b99ef89d66858effa4/commentsjR }(loginLucasIMEidJg jN MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jd %https://api.github.com/users/LucasIMEjr https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujZ }(jw LucasIMEjy Jg jN MDQ6VXNlcjY3ODczMTE=j{ 3https://avatars.githubusercontent.com/u/6787311?v=4j} h5jd %https://api.github.com/users/LucasIMEjr https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsj Userj uparents]}(jL (791ec1326a3ff7b0ca2b6be273b1dbf012b74139jd ^https://api.github.com/repos/palantir/atlasdb/commits/791ec1326a3ff7b0ca2b6be273b1dbf012b74139jr Shttps://github.com/palantir/atlasdb/commit/791ec1326a3ff7b0ca2b6be273b1dbf012b74139uastats}(totalK	additionsK	deletionsKufiles]}(jL (bd3856d83f19b66f39c62707e619deca434cda4afilenameqatlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AbstractSerializableTransactionTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/7ce5f97e376225f397a984b99ef89d66858effa4/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/7ce5f97e376225f397a984b99ef89d66858effa4/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAbstractSerializableTransactionTest.java?ref=7ce5f97e376225f397a984b99ef89d66858effa4patchX  @@ -60,7 +60,6 @@
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionFailedNonRetriableException;
 import com.palantir.atlasdb.transaction.api.TransactionFailedRetriableException;
-import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
 import com.palantir.atlasdb.transaction.api.TransactionReadSentinelBehavior;
 import com.palantir.atlasdb.transaction.api.TransactionSerializableConflictException;
@@ -1079,17 +1078,13 @@ public void testNoMarkTableInvolvedSkipsLockChecksOnCommit() {
         t1.commit();
     }
 
-    @Test
-    public void testMarkTableInvolvedChecksLocksForExpiryOnCommitWhenRequired() {
-        // Test table is thorough, therefore we check immutable timestamp lock
-        assertThatThrownBy(() -> testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH))
-                .isExactlyInstanceOf(TransactionLockTimeoutException.class);
-    }
-
     @Test
     public void testMarkTableInvolvedDoesNoCheckLocksForExpiryOnCommitWhenNotRequired() {
         // Test table is not thorough, therefore no immutable timestamp lock checking
         testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE);
+
+        // Test table is thorough, but still no immutable timestamp lock checking
+        testMarkTableInvolvedLockChecksForExpiryOnCommit(TEST_TABLE_THOROUGH);
     }
 
     @Testuau(fa735235b22f333e2e17c949bfe5105c289b31f2}(sha(fa735235b22f333e2e17c949bfe5105c289b31f2node_idEC_kwDOAjP5fdoAKGZhNzM1MjM1YjIyZjMzM2UyZTE3Yzk0OWJmZTUxMDVjMjg5YjMxZjIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-05-16T20:47:38Zu	committer}(j˗ Jeremy Kongj͗ jkong@palantir.comjϗ 2023-05-16T20:47:38Zumessagefixtree}(j× (3c1bed8d201d1c49556d16725bf2e5a3728f849eurl`https://api.github.com/repos/palantir/atlasdb/git/trees/3c1bed8d201d1c49556d16725bf2e5a3728f849eujۗ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/fa735235b22f333e2e17c949bfe5105c289b31f2
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmRj6+oACgkQTLdFKain
zjyV3QgA1kJRDpdzHhPMZFtf30MWTacZT19HJWRMyukE/58a4McZ9zKfuckorkAD
4hGt3xTAlbKNzn3FSUquD2qgu683TNYL38tZV3d2vwMesOzKqNnjkUJjhOtvpIrP
fkHuROd+wiSphvUx8VuTg5OevH9knaZ1ysz1ME5EicV3RYQ1+cTfTDlaa1IRb4OE
0cdDcnLA6pJ+wPw0IrLktQgnrPCDgOrcQ2ThdrrFIpRpTjdjzOgA3NSM5HK2fmtS
okc4ThIXQMPfLa7tiqlpaJ9OMlO+yUUWM/4QVQVEt1AA5+j7RhBboBDSHhUBQetm
y9RCFOzn7RXK6RYcvfXLEqvOuaJhQg==
=C0RH
-----END PGP SIGNATURE-----payloadtree 3c1bed8d201d1c49556d16725bf2e5a3728f849e
parent 08c5bdcb375167dd16cdb1066c8ea38394072b2b
author Jeremy Kong <jkong@palantir.com> 1684270058 +0100
committer Jeremy Kong <jkong@palantir.com> 1684270058 +0100

fix
uujۗ ^https://api.github.com/repos/palantir/atlasdb/commits/fa735235b22f333e2e17c949bfe5105c289b31f2html_urlShttps://github.com/palantir/atlasdb/commit/fa735235b22f333e2e17c949bfe5105c289b31f2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/fa735235b22f333e2e17c949bfe5105c289b31f2/commentsjɗ }(login
jeremyk-91idJZ jŗ MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5jۗ 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujї }(j 
jeremyk-91j JZ jŗ MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5jۗ 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj	 Userj uparents]}(j× (08c5bdcb375167dd16cdb1066c8ea38394072b2bjۗ ^https://api.github.com/repos/palantir/atlasdb/commits/08c5bdcb375167dd16cdb1066c8ea38394072b2bj Shttps://github.com/palantir/atlasdb/commit/08c5bdcb375167dd16cdb1066c8ea38394072b2buastats}(totalK	additionsKj	deletionsKufiles](}(j× (d4fbc32c29d514c2d7a88a64e0fbc48b94b74465filenamematlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/CrossCellInconsistency.javastatusrenamedj% Kj& KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/fa735235b22f333e2e17c949bfe5105c289b31f2/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistency.javaraw_urlhttps://github.com/palantir/atlasdb/raw/fa735235b22f333e2e17c949bfe5105c289b31f2/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistency.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FCrossCellInconsistency.java?ref=fa735235b22f333e2e17c949bfe5105c289b31f2patchXE  @@ -28,18 +28,18 @@
  * to hold across the group of cells.
  */
 @Value.Immutable
-public interface MultiCellViolation {
-    Map<TableAndWorkloadCell, Optional<Integer>> violatingCellValues();
+public interface CrossCellInconsistency {
+    Map<TableAndWorkloadCell, Optional<Integer>> inconsistentValues();
 
     @Value.Check
     default void consistsOfAtLeastTwoCells() {
-        Preconditions.checkState(
-                violatingCellValues().size() >= 2,
-                "A multi-cell violation must consist of at least two cells",
-                SafeArg.of("cells", violatingCellValues()));
+        Preconditions.checkArgument(
+                inconsistentValues().size() >= 2,
+                "A cross-cell inconsistency must consist of at least two cells",
+                SafeArg.of("values", inconsistentValues()));
     }
 
-    static ImmutableMultiCellViolation.Builder builder() {
-        return ImmutableMultiCellViolation.builder();
+    static ImmutableCrossCellInconsistency.Builder builder() {
+        return ImmutableCrossCellInconsistency.builder();
     }
 }previous_filenameiatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/MultiCellViolation.javau}(j× (4cf97110e2ba6e8539b3c8b4542d6e74b332d85dj+ Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj- modifiedj% Kj& Kj/ Kj0 https://github.com/palantir/atlasdb/blob/fa735235b22f333e2e17c949bfe5105c289b31f2/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj2 https://github.com/palantir/atlasdb/raw/fa735235b22f333e2e17c949bfe5105c289b31f2/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj4 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=fa735235b22f333e2e17c949bfe5105c289b31f2j6 X+  @@ -9,11 +9,17 @@ install:
       tableName: two-cells-test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
-    type: singleRowTwoCells
+    type: single-row-two-cells
   ringConfig:
     tableConfiguration:
       tableName: ring-test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: ring
+  transientRowsConfig:
+    tableConfiguration:
+      tableName: transient-rows-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: transient-rows
   exitAfterRunning: false
\ No newline at end of fileu}(j× (653777b265e9f87c64cf45b283893240d4480fa6j+ Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj- modifiedj% Kj& Kj/ Kj0 https://github.com/palantir/atlasdb/blob/fa735235b22f333e2e17c949bfe5105c289b31f2/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj2 https://github.com/palantir/atlasdb/raw/fa735235b22f333e2e17c949bfe5105c289b31f2/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj4 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=fa735235b22f333e2e17c949bfe5105c289b31f2j6 X  @@ -44,11 +44,17 @@ install:
       tableName: two_cells_test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
-    type: singleRowTwoCells
+    type: single-row-two-cells
   ringConfig:
     tableConfiguration:
       tableName: ring_test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: ring
+  transientRowsConfig:
+    tableConfiguration:
+      tableName: transient_rows_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: transient-rows
   exitAfterRunning: trueu}(j× (11bc6105ec8d32f14368d68194938d3299d11c10j+ Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj- modifiedj% Kj& Kj/ Kj0 https://github.com/palantir/atlasdb/blob/fa735235b22f333e2e17c949bfe5105c289b31f2/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj2 https://github.com/palantir/atlasdb/raw/fa735235b22f333e2e17c949bfe5105c289b31f2/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj4 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=fa735235b22f333e2e17c949bfe5105c289b31f2j6 X*  @@ -9,11 +9,17 @@ install:
       tableName: two-cells-test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
-    type: singleRowTwoCells
+    type: single-row-two-cells
   ringConfig:
     tableConfiguration:
       tableName: ring-test
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: ring
+  transientRowsConfig:
+    tableConfiguration:
+      tableName: transient-rows-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: transient-rows
   exitAfterRunning: true
\ No newline at end of fileu}(j× (f101f419a9c4366406e60fd1ca898e4645dbf939j+ xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javaj- modifiedj% Kj& Kj/ Kj0 https://github.com/palantir/atlasdb/blob/fa735235b22f333e2e17c949bfe5105c289b31f2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj2 https://github.com/palantir/atlasdb/raw/fa735235b22f333e2e17c949bfe5105c289b31f2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj4 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=fa735235b22f333e2e17c949bfe5105c289b31f2j6 Xy  @@ -27,7 +27,7 @@
 @JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
 @JsonTypeName(SingleRowTwoCellsWorkflowConfiguration.TYPE)
 public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfiguration {
-    String TYPE = "singleRowTwoCells";
+    String TYPE = "single-row-two-cells";
 
     TableConfiguration tableConfiguration();
 u}(j× (29aca2d2b9576a484649c66a10e452633858dc2cj+ hatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/TransientRowsWorkflows.javaj- modifiedj% KLj& Kj/ K\j0 https://github.com/palantir/atlasdb/blob/fa735235b22f333e2e17c949bfe5105c289b31f2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj2 https://github.com/palantir/atlasdb/raw/fa735235b22f333e2e17c949bfe5105c289b31f2/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.javaj4 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FTransientRowsWorkflows.java?ref=fa735235b22f333e2e17c949bfe5105c289b31f2j6 XS$  @@ -17,31 +17,39 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
+import com.palantir.atlasdb.workload.invariant.CrossCellInconsistency;
 import com.palantir.atlasdb.workload.invariant.ImmutableInvariantReporter;
 import com.palantir.atlasdb.workload.invariant.Invariant;
 import com.palantir.atlasdb.workload.invariant.InvariantReporter;
-import com.palantir.atlasdb.workload.invariant.MultiCellViolation;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.ReadableTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.security.SecureRandom;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
+import java.util.stream.Stream;
 
 public final class TransientRowsWorkflows {
     private static final SafeLogger log = SafeLoggerFactory.get(TransientRowsWorkflows.class);
 
     private static final int SUMMARY_ROW = -1;
     private static final int COLUMN = 1;
+    private static final int VALUE = 0;
+    private static final SecureRandom SECURE_RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
 
     private TransientRowsWorkflows() {}
 
@@ -60,18 +68,22 @@ private static Optional<WitnessedTransaction> run(
             InteractiveTransactionStore store, TransientRowsWorkflowConfiguration configuration, int taskIndex) {
         return store.readWrite(txn -> {
             String tableName = configuration.tableConfiguration().tableName();
-            txn.write(tableName, ImmutableWorkloadCell.of(taskIndex, COLUMN), 1);
-            txn.write(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex), 0);
+            txn.write(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex), VALUE);
+            txn.write(tableName, ImmutableWorkloadCell.of(taskIndex, COLUMN), VALUE);
             if (taskIndex > 0) {
-                txn.delete(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN));
+                int indexToRead = SECURE_RANDOM.nextInt(taskIndex);
+                txn.read(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, indexToRead));
+                txn.read(tableName, ImmutableWorkloadCell.of(indexToRead, COLUMN));
+
                 txn.delete(tableName, ImmutableWorkloadCell.of(SUMMARY_ROW, taskIndex - 1));
+                txn.delete(tableName, ImmutableWorkloadCell.of(taskIndex - 1, COLUMN));
             }
         });
     }
 
-    public static InvariantReporter<List<MultiCellViolation>> getSummaryLogInvariantReporter(
+    public static InvariantReporter<List<CrossCellInconsistency>> getSummaryLogInvariantReporter(
             TransientRowsWorkflowConfiguration configuration) {
-        return ImmutableInvariantReporter.<List<MultiCellViolation>>builder()
+        return ImmutableInvariantReporter.<List<CrossCellInconsistency>>builder()
                 .invariant(createSummaryRowInvariant(configuration))
                 .consumer(violations -> {
                     if (!violations.isEmpty()) {
@@ -83,31 +95,79 @@ public static InvariantReporter<List<MultiCellViolation>> getSummaryLogInvariant
                 .build();
     }
 
-    private static Invariant<List<MultiCellViolation>> createSummaryRowInvariant(
+    private static Invariant<List<CrossCellInconsistency>> createSummaryRowInvariant(
             TransientRowsWorkflowConfiguration configuration) {
         return (workflowHistory, notifier) -> {
-            List<MultiCellViolation> violations = new ArrayList<>();
+            List<CrossCellInconsistency> violations = new ArrayList<>();
             ReadableTransactionStore store = workflowHistory.transactionStore();
 
-            String tableName = configuration.tableConfiguration().tableName();
-            Set<Integer> taskIndices =
-                    IntStream.range(0, configuration.iterationCount()).boxed().collect(Collectors.toSet());
-            taskIndices.forEach(index -> checkSummaryConsistencyForIndex(violations, store, tableName, index));
+            violations.addAll(findInconsistencyInTransactionHistory(workflowHistory.history()));
+            violations.addAll(findInconsistencyInFinalIndexState(configuration, store));
 
             notifier.accept(violations);
         };
     }
 
+    private static List<CrossCellInconsistency> findInconsistencyInTransactionHistory(
+            List<WitnessedTransaction> history) {
+        return history.stream()
+                .map(WitnessedTransaction::actions)
+                .flatMap(TransientRowsWorkflows::findInconsistencyInTransactionActions)
+                .collect(Collectors.toList());
+    }
+
+    private static Stream<CrossCellInconsistency> findInconsistencyInTransactionActions(
+            List<WitnessedTransactionAction> actions) {
+        Set<WitnessedReadTransactionAction> readTransactionActions = actions.stream()
+                .filter(action -> action instanceof WitnessedReadTransactionAction)
+                .map(action -> (WitnessedReadTransactionAction) action)
+                .collect(Collectors.toSet());
+        if (readTransactionActions.size() == 0) {
+            return Stream.empty();
+        }
+        WitnessedReadTransactionAction summaryRowRead = readTransactionActions.stream()
+                .filter(action -> action.cell().key() == SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of the summary row", SafeArg.of("actions", actions)));
+        WitnessedReadTransactionAction normalRowRead = readTransactionActions.stream()
+                .filter(action -> action.cell().key() != SUMMARY_ROW)
+                .findAny()
+                .orElseThrow(() -> new SafeIllegalStateException(
+                        "Expected to find a read of a normal row", SafeArg.of("actions", actions)));
+        if (!summaryRowRead.value().equals(normalRowRead.value())) {
+            return Stream.of(CrossCellInconsistency.builder()
+                    .putInconsistentValues(
+                            TableAndWorkloadCell.of(summaryRowRead.table(), summaryRowRead.cell()),
+                            summaryRowRead.value())
+                    .putInconsistentValues(
+                            TableAndWorkloadCell.of(normalRowRead.table(), normalRowRead.cell()), normalRowRead.value())
+                    .build());
+        } else {
+            return Stream.empty();
+        }
+    }
+
+    private static List<CrossCellInconsistency> findInconsistencyInFinalIndexState(
+            TransientRowsWorkflowConfiguration configuration, ReadableTransactionStore store) {
+        List<CrossCellInconsistency> violations = new ArrayList<>();
+        String tableName = configuration.tableConfiguration().tableName();
+        Set<Integer> taskIndices =
+                IntStream.range(0, configuration.iterationCount()).boxed().collect(Collectors.toSet());
+        taskIndices.forEach(index -> checkSummaryConsistencyForIndex(violations, store, tableName, index));
+        return violations;
+    }
+
     private static void checkSummaryConsistencyForIndex(
-            List<MultiCellViolation> violations, ReadableTransactionStore store, String tableName, Integer index) {
+            List<CrossCellInconsistency> violations, ReadableTransactionStore store, String tableName, Integer index) {
         WorkloadCell primaryCell = ImmutableWorkloadCell.of(index, COLUMN);
         Optional<Integer> valueFromPrimaryRow = store.get(tableName, primaryCell);
         WorkloadCell summaryCell = ImmutableWorkloadCell.of(SUMMARY_ROW, index);
         Optional<Integer> valueFromSummaryRow = store.get(tableName, summaryCell);
         if (valueFromSummaryRow.isPresent() ^ valueFromPrimaryRow.isPresent()) {
-            violations.add(MultiCellViolation.builder()
-                    .putViolatingCellValues(TableAndWorkloadCell.of(tableName, primaryCell), valueFromPrimaryRow)
-                    .putViolatingCellValues(TableAndWorkloadCell.of(tableName, summaryCell), valueFromSummaryRow)
+            violations.add(CrossCellInconsistency.builder()
+                    .putInconsistentValues(TableAndWorkloadCell.of(tableName, primaryCell), valueFromPrimaryRow)
+                    .putInconsistentValues(TableAndWorkloadCell.of(tableName, summaryCell), valueFromSummaryRow)
                     .build());
         }
     }ueu(3b7277fbfdf71f5d403f7195597c58c6ed6a1a59}(sha(3b7277fbfdf71f5d403f7195597c58c6ed6a1a59node_idEC_kwDOAjP5fdoAKDNiNzI3N2ZiZmRmNzFmNWQ0MDNmNzE5NTU5N2M1OGM2ZWQ2YTFhNTkcommit}(author}(nameStephen Freibergemailsafreiberg@gmail.comdate2023-05-19T18:08:54Zu	committer}(jl GitHubjn noreply@github.comjp 2023-05-19T18:08:54Zumessage6held locks is a multimap (multiple read locks) (#6576)tree}(jd (f66b045ea8fb906b1b5b2f1e46c3be47d9f1daa0url`https://api.github.com/repos/palantir/atlasdb/git/trees/f66b045ea8fb906b1b5b2f1e46c3be47d9f1daa0uj| bhttps://api.github.com/repos/palantir/atlasdb/git/commits/3b7277fbfdf71f5d403f7195597c58c6ed6a1a59
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkZ7s2CRBK7hj4Ov3rIwAAxyIIAHlu0uGMw2G+NOpq5QXloYJC
L9gfH6bTAKo/ZpGGXJKbxb0q4U53bsnsGK+XGuY2HSa/HLYR7vhF5QWmH41uI01j
2Ra0yoHmftVs8m0pBOroW5Y3oWVTr86sA6srEwxXH1eUPQ44cLfHuggkIJRUCDF9
9IlLbMIjhVcdY5WcatX4Uv6N2UM31v3fo694207kgtztulzvLcfnkYAa9Z9Pjbrp
jfnTkoHYpkEAh8zSO9zBeqf9SEaOJtWREp47PG1TFieVOcfI1OXfB/friLgP+17Q
HNRr39zubcasRZg5LyiyC3Hp63hxajqEtuK/eWDcvMfekveKhgEv6zfzVOdIta0=
=qkGN
-----END PGP SIGNATURE-----
payloadX  tree f66b045ea8fb906b1b5b2f1e46c3be47d9f1daa0
parent 633429c6d335467092783f920bb5b1221c99b1d7
author Stephen Freiberg <safreiberg@gmail.com> 1684519734 -0400
committer GitHub <noreply@github.com> 1684519734 +0000

held locks is a multimap (multiple read locks) (#6576)

 uuj| ^https://api.github.com/repos/palantir/atlasdb/commits/3b7277fbfdf71f5d403f7195597c58c6ed6a1a59html_urlShttps://github.com/palantir/atlasdb/commit/3b7277fbfdf71f5d403f7195597c58c6ed6a1a59comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/3b7277fbfdf71f5d403f7195597c58c6ed6a1a59/commentsjj }(login
safreibergidJE jf MDQ6VXNlcjEzMjg0MTI=
avatar_url3https://avatars.githubusercontent.com/u/1328412?v=4gravatar_idh5j| 'https://api.github.com/users/safreibergj https://github.com/safreiberg
followers_url1https://api.github.com/users/safreiberg/followers
following_url>https://api.github.com/users/safreiberg/following{/other_user}	gists_url7https://api.github.com/users/safreiberg/gists{/gist_id}starred_url>https://api.github.com/users/safreiberg/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/safreiberg/subscriptionsorganizations_url,https://api.github.com/users/safreiberg/orgs	repos_url-https://api.github.com/users/safreiberg/repos
events_url8https://api.github.com/users/safreiberg/events{/privacy}received_events_url7https://api.github.com/users/safreiberg/received_eventstypeUser
site_adminujr }(j web-flowj J/jf MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j| %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(jd (633429c6d335467092783f920bb5b1221c99b1d7j| ^https://api.github.com/repos/palantir/atlasdb/commits/633429c6d335467092783f920bb5b1221c99b1d7j Shttps://github.com/palantir/atlasdb/commit/633429c6d335467092783f920bb5b1221c99b1d7uastats}(totalK:	additionsK'	deletionsKufiles](}(jd (9fe9d43261f7a9aee7f98c3febb6dfc81ee82d3cfilenameLlock-impl/src/main/java/com/palantir/lock/logger/LockServiceStateLogger.javastatusmodifiedjƘ Kjǘ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/3b7277fbfdf71f5d403f7195597c58c6ed6a1a59/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLogger.javaraw_urlhttps://github.com/palantir/atlasdb/raw/3b7277fbfdf71f5d403f7195597c58c6ed6a1a59/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLogger.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLogger.java?ref=3b7277fbfdf71f5d403f7195597c58c6ed6a1a59patchX.  @@ -16,6 +16,7 @@
 package com.palantir.lock.logger;
 
 import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.ImmutableSetMultimap;
 import com.google.common.collect.Multimap;
 import com.google.common.collect.Multimaps;
 import com.google.common.collect.SetMultimap;
@@ -66,7 +67,7 @@ public LockServiceStateLogger(
     public LogState logLocks() {
         List<SimpleLockRequestsWithSameDescriptor> generatedOutstandingRequests =
                 generateOutstandingLocks(outstandingLockRequests);
-        Map<ObfuscatedLockDescriptor, SimpleTokenInfo> generatedHeldLocks = generateHeldLocks(heldLocks);
+        Multimap<ObfuscatedLockDescriptor, SimpleTokenInfo> generatedHeldLocks = generateHeldLocks(heldLocks);
         Map<ObfuscatedLockDescriptor, String> generatedSyncState = generateSyncState(descriptorToLockMap);
         Map<ClientId, List<SanitizedLockRequestProgress>> synthesizedRequestState =
                 synthesizeRequestState(outstandingLockRequests, descriptorToLockMap);
@@ -130,14 +131,14 @@ private List<SimpleLockRequestsWithSameDescriptor> generateOutstandingLocks(
                 .collect(Collectors.toList());
     }
 
-    private Map<ObfuscatedLockDescriptor, SimpleTokenInfo> generateHeldLocks(
+    private Multimap<ObfuscatedLockDescriptor, SimpleTokenInfo> generateHeldLocks(
             ConcurrentMap<HeldLocksToken, LockServiceImpl.HeldLocks<HeldLocksToken>> heldLocksTokenMap) {
         return heldLocksTokenMap.values().stream()
                 .flatMap(locks -> locks.getRealToken().getLocks().stream()
                         .map(lock -> Map.entry(
                                 this.lockDescriptorMapper.getDescriptorMapping(lock.getLockDescriptor()),
                                 SimpleTokenInfo.of(locks.getRealToken(), lock.getLockMode()))))
-                .collect(Collectors.toMap(Entry::getKey, Entry::getValue));
+                .collect(ImmutableSetMultimap.toImmutableSetMultimap(Entry::getKey, Entry::getValue));
     }
 
     private Map<ObfuscatedLockDescriptor, String> generateSyncState(u}(jd (a5db35d08e52dedc10c9a0db02572d3b809a9531j̘ Jlock-impl/src/main/java/com/palantir/lock/logger/LockServiceTestUtils.javajΘ modifiedjƘ Kjǘ K	jИ Kjј https://github.com/palantir/atlasdb/blob/3b7277fbfdf71f5d403f7195597c58c6ed6a1a59/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceTestUtils.javajӘ https://github.com/palantir/atlasdb/raw/3b7277fbfdf71f5d403f7195597c58c6ed6a1a59/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceTestUtils.javaj՘ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceTestUtils.java?ref=3b7277fbfdf71f5d403f7195597c58c6ed6a1a59jט X)  @@ -24,15 +24,13 @@
 import com.palantir.lock.LockRequest;
 import com.palantir.lock.StringLockDescriptor;
 import java.math.BigInteger;
-import java.util.Arrays;
-import java.util.List;
+import java.util.Map;
 
 public class LockServiceTestUtils {
 
     public static HeldLocksToken getFakeHeldLocksToken(
-            String clientName, String requestingThread, BigInteger tokenId, String... descriptors) {
-        ImmutableSortedMap<LockDescriptor, LockMode> lockDescriptorLockMode =
-                getLockDescriptorLockMode(Arrays.asList(descriptors));
+            String clientName, String requestingThread, BigInteger tokenId, Map<String, LockMode> descriptors) {
+        ImmutableSortedMap<LockDescriptor, LockMode> lockDescriptorLockMode = getLockDescriptorLockMode(descriptors);
 
         return new HeldLocksToken(
                 tokenId,
@@ -45,11 +43,12 @@ public static HeldLocksToken getFakeHeldLocksToken(
                 requestingThread);
     }
 
-    public static ImmutableSortedMap<LockDescriptor, LockMode> getLockDescriptorLockMode(List<String> descriptors) {
+    public static ImmutableSortedMap<LockDescriptor, LockMode> getLockDescriptorLockMode(
+            Map<String, LockMode> descriptors) {
         ImmutableSortedMap.Builder<LockDescriptor, LockMode> builder = ImmutableSortedMap.naturalOrder();
-        for (String descriptor : descriptors) {
-            LockDescriptor descriptor1 = StringLockDescriptor.of(descriptor);
-            builder.put(descriptor1, LockMode.WRITE);
+        for (Map.Entry<String, LockMode> descriptorAndMode : descriptors.entrySet()) {
+            LockDescriptor descriptor1 = StringLockDescriptor.of(descriptorAndMode.getKey());
+            builder.put(descriptor1, descriptorAndMode.getValue());
         }
         return builder.buildOrThrow();
     }u}(jd (296c1bf1d09ef2afae13517b51f18c423208a9e6j̘ >lock-impl/src/main/java/com/palantir/lock/logger/LogState.javajΘ modifiedjƘ Kjǘ KjИ Kjј https://github.com/palantir/atlasdb/blob/3b7277fbfdf71f5d403f7195597c58c6ed6a1a59/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLogState.javajӘ https://github.com/palantir/atlasdb/raw/3b7277fbfdf71f5d403f7195597c58c6ed6a1a59/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLogState.javaj՘ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLogState.java?ref=3b7277fbfdf71f5d403f7195597c58c6ed6a1a59jט X1  @@ -16,6 +16,7 @@
 
 package com.palantir.lock.logger;
 
+import com.google.common.collect.Multimap;
 import com.palantir.lock.LockDescriptor;
 import com.palantir.logsafe.Safe;
 import com.palantir.logsafe.SafeArg;
@@ -33,7 +34,7 @@ public interface LogState {
     List<SimpleLockRequestsWithSameDescriptor> getOutstandingRequests();
 
     @Safe
-    Map<ObfuscatedLockDescriptor, SimpleTokenInfo> getHeldLocks();
+    Multimap<ObfuscatedLockDescriptor, SimpleTokenInfo> getHeldLocks();
 
     @Safe
     Map<ObfuscatedLockDescriptor, String> getSyncState();u}(jd (5b2b8d65d1a16e7b6ff4a49446104efd578d647dj̘ Jlock-impl/src/test/java/com/palantir/lock/logger/LockServiceSerDeTest.javajΘ modifiedjƘ K
jǘ KjИ Kjј https://github.com/palantir/atlasdb/blob/3b7277fbfdf71f5d403f7195597c58c6ed6a1a59/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceSerDeTest.javajӘ https://github.com/palantir/atlasdb/raw/3b7277fbfdf71f5d403f7195597c58c6ed6a1a59/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceSerDeTest.javaj՘ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceSerDeTest.java?ref=3b7277fbfdf71f5d403f7195597c58c6ed6a1a59jט XP	  @@ -18,7 +18,6 @@
 import static org.assertj.core.api.Assertions.assertThat;
 
 import com.fasterxml.jackson.databind.ObjectMapper;
-import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.lock.HeldLocksGrant;
@@ -42,7 +41,10 @@ public class LockServiceSerDeTest {
     @Test
     public void testSerialisationAndDeserialisationOfLockResponse() throws Exception {
         HeldLocksToken token = LockServiceTestUtils.getFakeHeldLocksToken(
-                "client A", "Fake thread", new BigInteger("1"), "held-lock-1", "logger-lock");
+                "client A",
+                "Fake thread",
+                new BigInteger("1"),
+                ImmutableMap.of("held-lock-1", LockMode.WRITE, "logger-lock", LockMode.WRITE));
         LockResponse response = new LockResponse(token);
         ObjectMapper mapper = new ObjectMapper();
         LockResponse deserializedLockResponse =
@@ -53,7 +55,10 @@ public void testSerialisationAndDeserialisationOfLockResponse() throws Exception
     @Test
     public void testSerialisationAndDeserialisationOfLockResponseWithLockHolders() throws Exception {
         HeldLocksToken token = LockServiceTestUtils.getFakeHeldLocksToken(
-                "client A", "Fake thread", new BigInteger("1"), "held-lock-1", "logger-lock");
+                "client A",
+                "Fake thread",
+                new BigInteger("1"),
+                ImmutableMap.of("held-lock-1", LockMode.WRITE, "logger-lock", LockMode.WRITE));
         Map<LockDescriptor, LockClient> lockHolders = ImmutableMap.of(
                 StringLockDescriptor.of("lock_id"),
                 LockClient.ANONYMOUS,
@@ -92,7 +97,8 @@ public void testSerialisationAndDeserialisationOfLockServerOptions() throws Exce
     @Test
     public void testSerialisationAndDeserialisationOfHeldLocksGrant() throws Exception {
         ImmutableSortedMap<LockDescriptor, LockMode> lockDescriptorLockMode =
-                LockServiceTestUtils.getLockDescriptorLockMode(ImmutableList.of("lock1", "lock2"));
+                LockServiceTestUtils.getLockDescriptorLockMode(
+                        ImmutableMap.of("lock1", LockMode.WRITE, "lock2", LockMode.WRITE));
 
         HeldLocksGrant heldLocksGrant = new HeldLocksGrant(
                 BigInteger.ONE,u}(jd (072fb1ef70cfd7dc1f19cb3684f7d835be7c52fej̘ Plock-impl/src/test/java/com/palantir/lock/logger/LockServiceStateLoggerTest.javajΘ modifiedjƘ Kjǘ KjИ Kjј https://github.com/palantir/atlasdb/blob/3b7277fbfdf71f5d403f7195597c58c6ed6a1a59/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLoggerTest.javajӘ https://github.com/palantir/atlasdb/raw/3b7277fbfdf71f5d403f7195597c58c6ed6a1a59/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLoggerTest.javaj՘ https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Flogger%2FLockServiceStateLoggerTest.java?ref=3b7277fbfdf71f5d403f7195597c58c6ed6a1a59jט XL  @@ -19,6 +19,7 @@
 
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.google.common.collect.HashMultimap;
+import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSortedMap;
 import com.google.common.collect.MapMaker;
 import com.google.common.collect.Multimaps;
@@ -82,12 +83,24 @@ public static void setUp() {
         outstandingLockRequestMultimap.put(clientA, request2);
 
         HeldLocksToken token = LockServiceTestUtils.getFakeHeldLocksToken(
-                "client A", "Fake thread", new BigInteger("1"), "held-lock-1", "logger-lock");
+                "client A",
+                "Fake thread",
+                new BigInteger("1"),
+                ImmutableMap.of("held-lock-1", LockMode.WRITE, "logger-lock", LockMode.WRITE));
         HeldLocksToken token2 = LockServiceTestUtils.getFakeHeldLocksToken(
-                "client B", "Fake thread 2", new BigInteger("2"), "held-lock-2", "held-lock-3");
+                "client B",
+                "Fake thread 2",
+                new BigInteger("2"),
+                ImmutableMap.of("held-lock-2", LockMode.WRITE, "held-lock-3", LockMode.WRITE));
+        HeldLocksToken token3 = LockServiceTestUtils.getFakeHeldLocksToken(
+                "client C", "Fake thread 3", new BigInteger("3"), ImmutableMap.of("held-lock-4", LockMode.READ));
+        HeldLocksToken token4 = LockServiceTestUtils.getFakeHeldLocksToken(
+                "client D", "Fake thread 4", new BigInteger("4"), ImmutableMap.of("held-lock-4", LockMode.READ));
 
         heldLocksTokenMap.putIfAbsent(token, LockServiceImpl.HeldLocks.of(token, LockCollections.of()));
         heldLocksTokenMap.putIfAbsent(token2, LockServiceImpl.HeldLocks.of(token2, LockCollections.of()));
+        heldLocksTokenMap.putIfAbsent(token3, LockServiceImpl.HeldLocks.of(token2, LockCollections.of()));
+        heldLocksTokenMap.putIfAbsent(token4, LockServiceImpl.HeldLocks.of(token2, LockCollections.of()));
 
         LockServerLock lock1 = new LockServerLock(DESCRIPTOR_1, new LockClientIndices());
         syncStateMap.put(DESCRIPTOR_1, lock1);ueu(2ea5b83a5b994d779158674aba6d4029f76fc7cb}(sha(2ea5b83a5b994d779158674aba6d4029f76fc7cbnode_idEC_kwDOAjP5fdoAKDJlYTViODNhNWI5OTRkNzc5MTU4Njc0YWJhNmQ0MDI5Zjc2ZmM3Y2Icommit}(author}(nameLucas Sousa Meirelesemailmeireles31@msn.comdate2023-08-04T15:01:03Zu	committer}(j GitHubj noreply@github.comj 2023-08-04T15:01:03ZumessageMResult refactor (#6692)

* implement result on children

* method referencetree}(j (f81e4ca846f9ffa8f7decc5e891176904baeb3e5url`https://api.github.com/repos/palantir/atlasdb/git/trees/f81e4ca846f9ffa8f7decc5e891176904baeb3e5uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/2ea5b83a5b994d779158674aba6d4029f76fc7cb
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkzRKvCRBK7hj4Ov3rIwAAak0IAIU5m1jN7lBC+isdpWZinXwx
tE2N1YvT3hI2arvgCDG6D4ZFb3RbNOohSfd1u2eV76fvLW5B4sYhZGc6KD4Y0PvV
ieXLX1MkF8ZGcHInOQ6+tx0/69RiE/RCZy2Gr1IYu+eVh697xxrbIazEcCpU7Yhc
Bv0+OkS2NHB18CqhJ8GSJSGzDyE6AkLuEgYRHszqaa09nryvrufKfDb0GFk3e2Kk
OLdTU2xFC4H2HtLr+8TTGlIh/GczzjdRF473u1YqVC5vqyFVMKBmvV7M4xY5uWJh
OD4YU3jrHKO9r8EcNt1eTccQ1bmLP3M9URIFLUQCmgo5yBb1P2JLQCanbFfYmIA=
=JAV4
-----END PGP SIGNATURE-----
payloadX%  tree f81e4ca846f9ffa8f7decc5e891176904baeb3e5
parent 01d6635992db36b0e036a0843ec582af011bf489
author Lucas Sousa Meireles <meireles31@msn.com> 1691161263 +0100
committer GitHub <noreply@github.com> 1691161263 +0100

Result refactor (#6692)

* implement result on children

* method referenceuuj ^https://api.github.com/repos/palantir/atlasdb/commits/2ea5b83a5b994d779158674aba6d4029f76fc7cbhtml_urlShttps://github.com/palantir/atlasdb/commit/2ea5b83a5b994d779158674aba6d4029f76fc7cbcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/2ea5b83a5b994d779158674aba6d4029f76fc7cb/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj! https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj	 }(j& web-flowj( J/j MDQ6VXNlcjE5ODY0NDQ3j* 4https://avatars.githubusercontent.com/u/19864447?v=4j, h5j %https://api.github.com/users/web-flowj! https://github.com/web-flowj/ /https://api.github.com/users/web-flow/followersj1 <https://api.github.com/users/web-flow/following{/other_user}j3 5https://api.github.com/users/web-flow/gists{/gist_id}j5 <https://api.github.com/users/web-flow/starred{/owner}{/repo}j7 3https://api.github.com/users/web-flow/subscriptionsj9 *https://api.github.com/users/web-flow/orgsj; +https://api.github.com/users/web-flow/reposj= 6https://api.github.com/users/web-flow/events{/privacy}j? 5https://api.github.com/users/web-flow/received_eventsjA UserjC uparents]}(j (01d6635992db36b0e036a0843ec582af011bf489j ^https://api.github.com/repos/palantir/atlasdb/commits/01d6635992db36b0e036a0843ec582af011bf489j! Shttps://github.com/palantir/atlasdb/commit/01d6635992db36b0e036a0843ec582af011bf489uastats}(totalK	additionsKd	deletionsK3ufiles](}(j (25c0285d42b303d3c644584a374f8bab7df797a3filenameZatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CachingTransaction.javastatusmodifiedj] Kj^ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/2ea5b83a5b994d779158674aba6d4029f76fc7cb/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/2ea5b83a5b994d779158674aba6d4029f76fc7cb/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.java?ref=2ea5b83a5b994d779158674aba6d4029f76fc7cbpatchX5  @@ -42,7 +42,6 @@
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.util.Pair;
 import com.palantir.util.result.Result;
-import com.palantir.util.result.Result.Ok;
 import java.util.Arrays;
 import java.util.Collection;
 import java.util.Collections;
@@ -170,7 +169,7 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(TableReference tableRef, Set
     private ListenableFuture<Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException>> getWithResultLoader(
             TableReference tableRef, Set<Cell> cells, CellResultLoader cellLoader) {
         if (cells.isEmpty()) {
-            return Futures.immediateFuture(new Result.Ok<>(ImmutableMap.of()));
+            return Futures.immediateFuture(Result.ok(ImmutableMap.of()));
         }
 
         Set<Cell> toLoad = new HashSet<>();
@@ -195,7 +194,7 @@ private ListenableFuture<Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedE
 
                     cacheLoadedCells(tableRef, toLoad, loadedCells.unwrap());
                     cacheHit.putAll(loadedCells.unwrap());
-                    return new Ok<>(cacheHit);
+                    return Result.ok(cacheHit);
                 },
                 MoreExecutors.directExecutor());
     }
@@ -204,7 +203,7 @@ private ListenableFuture<Map<Cell, byte[]>> getWithLoader(
             TableReference tableRef, Set<Cell> cells, CellLoader cellLoader) {
         CellResultLoader resultLoader = (table, cacheCells, cellsToLoad) -> {
             ListenableFuture<Map<Cell, byte[]>> future = cellLoader.load(table, cacheCells, cellsToLoad);
-            return Futures.transform(future, response -> new Result.Ok<>(response), MoreExecutors.directExecutor());
+            return Futures.transform(future, Result::ok, MoreExecutors.directExecutor());
         };
 
         return Futures.transform(u}(j (7069616d58d06eb71d5ff0d2c105e02fb674e1f9jc ?atlasdb-commons/src/main/java/com/palantir/util/result/Err.javaje addedj] K*j^ K jg K*jh https://github.com/palantir/atlasdb/blob/2ea5b83a5b994d779158674aba6d4029f76fc7cb/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FErr.javajj https://github.com/palantir/atlasdb/raw/2ea5b83a5b994d779158674aba6d4029f76fc7cb/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FErr.javajl https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FErr.java?ref=2ea5b83a5b994d779158674aba6d4029f76fc7cbjn X  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util.result;
+
+import com.palantir.logsafe.exceptions.SafeRuntimeException;
+
+final class Err<T, E> implements Result<T, E> {
+    private final E error;
+
+    Err(E error) {
+        this.error = error;
+    }
+
+    @Override
+    public boolean isOk() {
+        return false;
+    }
+
+    @Override
+    public T unwrap() {
+        throw new SafeRuntimeException("Called unwrap() on an Err value");
+    }
+
+    @Override
+    public E unwrapErr() {
+        return error;
+    }
+}u}(j (d3a6099713f9f3f5083adbb5f6665fd54b686b0djc >atlasdb-commons/src/main/java/com/palantir/util/result/Ok.javaje addedj] K*j^ K jg K*jh https://github.com/palantir/atlasdb/blob/2ea5b83a5b994d779158674aba6d4029f76fc7cb/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FOk.javajj https://github.com/palantir/atlasdb/raw/2ea5b83a5b994d779158674aba6d4029f76fc7cb/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FOk.javajl https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FOk.java?ref=2ea5b83a5b994d779158674aba6d4029f76fc7cbjn X  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.util.result;
+
+import com.palantir.logsafe.exceptions.SafeRuntimeException;
+
+final class Ok<T, E> implements Result<T, E> {
+    private final T value;
+
+    Ok(T value) {
+        this.value = value;
+    }
+
+    @Override
+    public boolean isOk() {
+        return true;
+    }
+
+    @Override
+    public T unwrap() {
+        return value;
+    }
+
+    @Override
+    public E unwrapErr() {
+        throw new SafeRuntimeException("Called unwrapErr on an Ok value");
+    }
+}u}(j (dd9cc35b63d4d1ffa2befb1e8d37f14c7fb2dccbjc Batlasdb-commons/src/main/java/com/palantir/util/result/Result.javaje modifiedj] K
j^ K,jg K6jh https://github.com/palantir/atlasdb/blob/2ea5b83a5b994d779158674aba6d4029f76fc7cb/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FResult.javajj https://github.com/palantir/atlasdb/raw/2ea5b83a5b994d779158674aba6d4029f76fc7cb/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FResult.javajl https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2Fresult%2FResult.java?ref=2ea5b83a5b994d779158674aba6d4029f76fc7cbjn XB  @@ -16,57 +16,23 @@
 
 package com.palantir.util.result;
 
-import com.palantir.logsafe.exceptions.SafeRuntimeException;
+public interface Result<T, E> {
 
-public abstract class Result<T, E> {
-
-    private Result() {}
-
-    public static final class Ok<T, E> extends Result<T, E> {
-        private final T value;
-
-        public Ok(T value) {
-            this.value = value;
-        }
-
-        public T getValue() {
-            return value;
-        }
+    static <T, E> Result<T, E> ok(T value) {
+        return new Ok<>(value);
     }
 
-    public static final class Err<T, E> extends Result<T, E> {
-        private final E error;
-
-        public Err(E error) {
-            this.error = error;
-        }
-
-        public E getError() {
-            return error;
-        }
+    static <T, E> Result<T, E> err(E error) {
+        return new Err<>(error);
     }
 
-    public final boolean isOk() {
-        return this instanceof Ok;
-    }
+    boolean isOk();
 
-    public final boolean isErr() {
-        return this instanceof Err;
+    default boolean isErr() {
+        return !isOk();
     }
 
-    public T unwrap() {
-        if (isOk()) {
-            return ((Ok<T, E>) this).getValue();
-        } else {
-            throw new SafeRuntimeException("Called unwrap() on an Err value");
-        }
-    }
+    T unwrap();
 
-    public E unwrapErr() {
-        if (isErr()) {
-            return ((Err<T, E>) this).getError();
-        } else {
-            throw new SafeRuntimeException("Called unwrapErr() on an Ok value");
-        }
-    }
+    E unwrapErr();
 }u}(j (6ef8704df2a6d43d19a551285979ccb62e6a46e4jc datlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.javaje modifiedj] Kj^ Kjg Kjh https://github.com/palantir/atlasdb/blob/2ea5b83a5b994d779158674aba6d4029f76fc7cb/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javajj https://github.com/palantir/atlasdb/raw/2ea5b83a5b994d779158674aba6d4029f76fc7cb/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javajl https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.java?ref=2ea5b83a5b994d779158674aba6d4029f76fc7cbjn Xx  @@ -360,7 +360,7 @@ public ListenableFuture<Map<Cell, byte[]>> getAsync(TableReference tableRef, Set
     ListenableFuture<Map<Cell, byte[]>> getWithLoader(TableReference tableRef, Set<Cell> cells, CellLoader cellLoader) {
         CellResultLoader resultLoader = (table, toRead) -> {
             ListenableFuture<Map<Cell, byte[]>> future = cellLoader.load(table, toRead);
-            return Futures.transform(future, response -> new Result.Ok<>(response), MoreExecutors.directExecutor());
+            return Futures.transform(future, Result::ok, MoreExecutors.directExecutor());
         };
 
         return Futures.transform(u}(j (3cbd99afee26eee6b9405c8dea74a945d8940bb2jc `atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javaje modifiedj] Kj^ Kjg Kjh https://github.com/palantir/atlasdb/blob/2ea5b83a5b994d779158674aba6d4029f76fc7cb/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajj https://github.com/palantir/atlasdb/raw/2ea5b83a5b994d779158674aba6d4029f76fc7cb/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javajl https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=2ea5b83a5b994d779158674aba6d4029f76fc7cbjn X  @@ -925,7 +925,7 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
     public Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> getWithExpectedNumberOfCells(
             TableReference tableRef, Set<Cell> cells, long expectedNumberOfPresentCells) {
         try {
-            return new Result.Ok<>(getCache().getWithCachedRef(tableRef, cells, cacheLookupResult -> {
+            return Result.ok(getCache().getWithCachedRef(tableRef, cells, cacheLookupResult -> {
                 long cachedCellsWithNonEmptyValue = CellCountValidator.validateCacheAndGetNonEmptyValuesCount(
                         expectedNumberOfPresentCells, cacheLookupResult.cacheHits());
                 long numberOfCellsExpectingValuePostCache = expectedNumberOfPresentCells - cachedCellsWithNonEmptyValue;
@@ -939,7 +939,7 @@ public Result<Map<Cell, byte[]>, MoreCellsPresentThanExpectedException> getWithE
                         immediateTransactionService);
             }));
         } catch (MoreCellsPresentThanExpectedException e) {
-            return new Result.Err<>(e);
+            return Result.err(e);
         }
     }
 ueu
     (c76292cbc7f6a7a1695db4e75e5604ca45e93b89}(sha(c76292cbc7f6a7a1695db4e75e5604ca45e93b89node_idEC_kwDOAjP5fdoAKGM3NjI5MmNiYzdmNmE3YTE2OTVkYjRlNzVlNTYwNGNhNDVlOTNiODkcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-02-28T11:33:02Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-02-28T11:33:02Zumessage
unintentionaltree}(j (8451234ffd457f7bfaa603533fa68cf4a7be6a86url`https://api.github.com/repos/palantir/atlasdb/git/trees/8451234ffd457f7bfaa603533fa68cf4a7be6a86uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c76292cbc7f6a7a1695db4e75e5604ca45e93b89
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmP95m4ACgkQTLdFKain
zjxrBwf+Nf3RIz2FByWV5rHUIdaYtcd+q69Lq2oa5KRWmxxJwJOms8HkqTkQXlak
WL71tcoLsOS3N5YM/gvt8Yp+xoZb4yxTNeSYkRWX8g0SSdPho6A4MJlKQ+y/ppsV
l9Q+evCEHvy8YqUw2szV5A56+osXiW8LP3Tt2RPbW6/KalNjPaCgBFP4ciKNMKf9
FcIVKbRVWiek61zVJSiK7SgiR3uQpdQPmnghYCS//8UbzwBnYeWIuDLYrTpFEQF5
BgXKvKHCHJwIPG/hukVCqqqSw1Hc22fEG3ogfC5cKpeg71IY5UVnY8Do9urCXSap
vO+fDG9hP5kdu/GxpSMrrOYRMvGhmg==
=eppE
-----END PGP SIGNATURE-----payloadtree 8451234ffd457f7bfaa603533fa68cf4a7be6a86
parent 678f29b7efb9d87bbdeaa6cf096dfb216887f119
author Jeremy Kong <jkong@palantir.com> 1677583982 +0000
committer Jeremy Kong <jkong@palantir.com> 1677583982 +0000

unintentional
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/c76292cbc7f6a7a1695db4e75e5604ca45e93b89html_urlShttps://github.com/palantir/atlasdb/commit/c76292cbc7f6a7a1695db4e75e5604ca45e93b89comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c76292cbc7f6a7a1695db4e75e5604ca45e93b89/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(jř 
jeremyk-91jǙ JZ j MDQ6VXNlcjU5NTU1MTA=jə 3https://avatars.githubusercontent.com/u/5955510?v=4j˙ h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91jΙ 1https://api.github.com/users/jeremyk-91/followersjЙ >https://api.github.com/users/jeremyk-91/following{/other_user}jҙ 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jԙ >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j֙ 5https://api.github.com/users/jeremyk-91/subscriptionsjؙ ,https://api.github.com/users/jeremyk-91/orgsjڙ -https://api.github.com/users/jeremyk-91/reposjܙ 8https://api.github.com/users/jeremyk-91/events{/privacy}jޙ 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j (678f29b7efb9d87bbdeaa6cf096dfb216887f119j ^https://api.github.com/repos/palantir/atlasdb/commits/678f29b7efb9d87bbdeaa6cf096dfb216887f119j Shttps://github.com/palantir/atlasdb/commit/678f29b7efb9d87bbdeaa6cf096dfb216887f119uastats}(totalK	additionsK 	deletionsKufiles]}(j (f731f001f23527f0bc340f51646408b5e3f193f2filename\atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/TransactionConstants.javastatusmodifiedj K j KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/c76292cbc7f6a7a1695db4e75e5604ca45e93b89/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.javaraw_urlhttps://github.com/palantir/atlasdb/raw/c76292cbc7f6a7a1695db4e75e5604ca45e93b89/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConstants.java?ref=c76292cbc7f6a7a1695db4e75e5604ca45e93b89patchX  @@ -64,7 +64,6 @@ private TransactionConstants() {
     public static final int DIRECT_ENCODING_TRANSACTIONS_SCHEMA_VERSION = 1;
     public static final int TICKETS_ENCODING_TRANSACTIONS_SCHEMA_VERSION = 2;
     public static final int TWO_STAGE_ENCODING_TRANSACTIONS_SCHEMA_VERSION = 3;
-
     public static final int TTS_TRANSACTIONS_SCHEMA_VERSION = 4;
     public static final ImmutableSet<Integer> SUPPORTED_TRANSACTIONS_SCHEMA_VERSIONS = ImmutableSet.of(
             DIRECT_ENCODING_TRANSACTIONS_SCHEMA_VERSION,uau(194355dfdea94380f7d7935ed98afb9ed483d374}(sha(194355dfdea94380f7d7935ed98afb9ed483d374node_idEC_kwDOAjP5fdoAKDE5NDM1NWRmZGVhOTQzODBmN2Q3OTM1ZWQ5OGFmYjllZDQ4M2QzNzQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-07-17T16:08:05Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-07-17T16:08:05Zumessageupdate existing teststree}(j (15729c1322087f6e5c49ab1f987d650b181828cdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/15729c1322087f6e5c49ab1f987d650b181828cduj) bhttps://api.github.com/repos/palantir/atlasdb/git/commits/194355dfdea94380f7d7935ed98afb9ed483d374
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmS1Z2YACgkQmPPOpKR4
XS0PCAgAngJEpBy7iiQhNQineptFnDYO9e3TBYkqRPkOTvK68Mjk2rwGfhmslbDH
0Lwxkp4UmRmuB7QKBa0Sw+9xYj8UoTA8Z1nCrOm0njgtCB/r5TtMPKK675s53Awz
pgiJIpEnqYOVR2NjDq3NUELPH2Pij2U+2aZFdLbMkCMBCS8OqR4HA90ImypnM7vu
anU+zpDJvN+W8C0EL1c2N0gUxjkUSxoBz3tfGD1V/m1BoreqEr/TiziGgY192YIi
m6/gcqUezd+132kXsC2iE2Nt1Xf1kf3Xn10UNDJswqO2FKQiwTu+HkPRjHIKaswj
597rGTZxuuJj4fMPVmijaKzg1T/qog==
=02gf
-----END PGP SIGNATURE-----payloadtree 15729c1322087f6e5c49ab1f987d650b181828cd
parent b0e9ca649f711b5c6e022d599d25561b3051a336
author Sam Kramer <skramer@palantir.com> 1689610085 +0100
committer Sam Kramer <skramer@palantir.com> 1689610085 +0100

update existing tests
uuj) ^https://api.github.com/repos/palantir/atlasdb/commits/194355dfdea94380f7d7935ed98afb9ed483d374html_urlShttps://github.com/palantir/atlasdb/commit/194355dfdea94380f7d7935ed98afb9ed483d374comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/194355dfdea94380f7d7935ed98afb9ed483d374/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j) 'https://api.github.com/users/Sam-Kramerj7 https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j< 
Sam-Kramerj> J^2_ j MDQ6VXNlcjYyMzg4MTQ=j@ 3https://avatars.githubusercontent.com/u/6238814?v=4jB h5j) 'https://api.github.com/users/Sam-Kramerj7 https://github.com/Sam-KramerjE 1https://api.github.com/users/Sam-Kramer/followersjG >https://api.github.com/users/Sam-Kramer/following{/other_user}jI 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jK >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jM 5https://api.github.com/users/Sam-Kramer/subscriptionsjO ,https://api.github.com/users/Sam-Kramer/orgsjQ -https://api.github.com/users/Sam-Kramer/reposjS 8https://api.github.com/users/Sam-Kramer/events{/privacy}jU 7https://api.github.com/users/Sam-Kramer/received_eventsjW UserjY uparents]}(j (b0e9ca649f711b5c6e022d599d25561b3051a336j) ^https://api.github.com/repos/palantir/atlasdb/commits/b0e9ca649f711b5c6e022d599d25561b3051a336j7 Shttps://github.com/palantir/atlasdb/commit/b0e9ca649f711b5c6e022d599d25561b3051a336uastats}(totalK	additionsK	deletionsKufiles](}(j (d391fbba92fcb651d5fe1d5c9065f683b0bd7fedfilename^atlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraVerifier.javastatusmodifiedjs Kjt KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/194355dfdea94380f7d7935ed98afb9ed483d374/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.javaraw_urlhttps://github.com/palantir/atlasdb/raw/194355dfdea94380f7d7935ed98afb9ed483d374/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifier.java?ref=194355dfdea94380f7d7935ed98afb9ed483d374patchX  @@ -239,10 +239,10 @@ private static boolean attemptToCreateIfNotExists(InetSocketAddress host, Cassan
         }
     }
 
-    // swallows the expected TException subtype NotFoundException, throws connection problem related ones
-    private static boolean keyspaceAlreadyExists(CassandraServer host, CassandraVerifierConfig verifierConfig)
+    @VisibleForTesting
+    static boolean keyspaceAlreadyExists(CassandraClient client, CassandraVerifierConfig verifierConfig)
             throws TException {
-        try (CassandraClient client = CassandraClientFactory.getClientInternal(host, verifierConfig.clientConfig())) {
+        try {
             client.describe_keyspace(verifierConfig.keyspace());
             CassandraKeyValueServices.waitForSchemaVersions(
                     verifierConfig.schemaMutationTimeoutMillis(),
@@ -255,6 +255,14 @@ private static boolean keyspaceAlreadyExists(CassandraServer host, CassandraVeri
         }
     }
 
+    // swallows the expected TException subtype NotFoundException, throws connection problem related ones
+    private static boolean keyspaceAlreadyExists(CassandraServer host, CassandraVerifierConfig verifierConfig)
+            throws TException {
+        try (CassandraClient client = CassandraClientFactory.getClientInternal(host, verifierConfig.clientConfig())) {
+            return keyspaceAlreadyExists(client, verifierConfig);
+        }
+    }
+
     private static boolean attemptToCreateKeyspaceOnHost(CassandraServer host, CassandraVerifierConfig verifierConfig)
             throws TException {
         try (CassandraClient client = CassandraClientFactory.getClientInternal(host, verifierConfig.clientConfig())) {u}(j (495bf3755f831be17741c6a0717201cdf739f0f7jy yatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServicesSchemaConsensusTest.javaj{ modifiedjs Kjt Kj} Kj~ https://github.com/palantir/atlasdb/blob/194355dfdea94380f7d7935ed98afb9ed483d374/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServicesSchemaConsensusTest.javaj https://github.com/palantir/atlasdb/raw/194355dfdea94380f7d7935ed98afb9ed483d374/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServicesSchemaConsensusTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServicesSchemaConsensusTest.java?ref=194355dfdea94380f7d7935ed98afb9ed483d374j X  @@ -35,7 +35,7 @@ public class CassandraKeyValueServicesSchemaConsensusTest {
     private static final String TABLE = "table";
     private static final String VERSION_1 = "v1";
     private static final String VERSION_2 = "v2";
-    private static final String VERSION_UNREACHABLE = "UNREACHABLE";
+    private static final String VERSION_UNREACHABLE = CassandraKeyValueServices.VERSION_UNREACHABLE;
     private static final ImmutableList<String> QUORUM_OF_NODES = ImmutableList.of("1", "2", "3");
     private static final ImmutableList<String> REST_OF_NODES = ImmutableList.of("4", "5");
     private static final ImmutableList<String> ALL_NODES = ImmutableList.of("1", "2", "3", "4", "5");u}(j (f22c92e240094982ad75ea602ed3e93436f20ce7jy batlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraVerifierTest.javaj{ modifiedjs K
jt K j} K
j~ https://github.com/palantir/atlasdb/blob/194355dfdea94380f7d7935ed98afb9ed483d374/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifierTest.javaj https://github.com/palantir/atlasdb/raw/194355dfdea94380f7d7935ed98afb9ed483d374/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifierTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraVerifierTest.java?ref=194355dfdea94380f7d7935ed98afb9ed483d374j X  @@ -274,6 +274,19 @@ public void differentRfThanConfigThrows() throws TException {
                 .isInstanceOf(IllegalStateException.class);
     }
 
+    @Test
+    public void keyspaceAlreadyExistsOnlyChecksForAnyAvailableNodes() throws TException {
+        CassandraVerifierConfig verifierConfig =
+                getVerifierConfigBuilderWithDefaults(defaultTopology(HOST_1)).build();
+        when(client.describe_schema_versions())
+                .thenReturn(ImmutableMap.of(
+                        "A",
+                        ImmutableList.of(HOST_1),
+                        CassandraKeyValueServices.VERSION_UNREACHABLE,
+                        ImmutableList.of(HOST_1, HOST_2, HOST_3)));
+        CassandraVerifier.keyspaceAlreadyExists(client, verifierConfig);
+    }
+
     private TokenRange mockRangeWithDetails(EndpointDetails... details) {
         TokenRange mockRange = new TokenRange();
         mockRange.setEndpoint_details(Arrays.asList(details));ueu(54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38}(sha(54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38node_idEC_kwDOAjP5fdoAKDU0ZGMzOTQ5YjRhMWI3NGRjYzA2YzViZDc2YzRjODg0YTlhNWRkMzgcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-08T15:32:13Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-06-08T15:32:13ZumessageRow range scantree}(j (144cc446feec736f15900f6621c16bf13a9a6854url`https://api.github.com/repos/palantir/atlasdb/git/trees/144cc446feec736f15900f6621c16bf13a9a6854uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSB9H4ACgkQTLdFKain
zjxEDAf/dd6VI2RvJUkQt9UVh7qZyaPZ48AV6z8Mylqd3YXQfJjhBgPd5Cli1j+t
EhtOUJj5bVhHTdmcAE1xHwPREHpO+tSOxtCKaQO89PtSGPlMD/PoDWi3pLviv4J5
5+plTVe8qCRoFz4PHNeWVehVVCqV111qo8chqg4RRkHZ3LjTpWPK2hrLgBs0JqW+
SkZk8nIcSG9h7Z/kaXmi3N/p2dlIPSwZR+O3QOkJMROW0x1hbjGUG/gvVbIPOXME
llpQm5o8lig5T9yu0aZwbl5++s0ZjUM/ns9sdE/Huquh4bp936VRsCN7zhYG4IQY
BeMZQChWg20dwsSOpTh7LWn9z1LHdA==
=ajNT
-----END PGP SIGNATURE-----payloadtree 144cc446feec736f15900f6621c16bf13a9a6854
parent 6152d7f8f23540af99d23cd5cc53da4c6d927cd0
author Jeremy Kong <jkong@palantir.com> 1686238333 +0100
committer Jeremy Kong <jkong@palantir.com> 1686238333 +0100

Row range scan
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38html_urlShttps://github.com/palantir/atlasdb/commit/54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(jÚ 
jeremyk-91jŚ JZ j MDQ6VXNlcjU5NTU1MTA=jǚ 3https://avatars.githubusercontent.com/u/5955510?v=4jɚ h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j̚ 1https://api.github.com/users/jeremyk-91/followersjΚ >https://api.github.com/users/jeremyk-91/following{/other_user}jК 7https://api.github.com/users/jeremyk-91/gists{/gist_id}jҚ >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}jԚ 5https://api.github.com/users/jeremyk-91/subscriptionsj֚ ,https://api.github.com/users/jeremyk-91/orgsjؚ -https://api.github.com/users/jeremyk-91/reposjښ 8https://api.github.com/users/jeremyk-91/events{/privacy}jܚ 7https://api.github.com/users/jeremyk-91/received_eventsjޚ Userj uparents]}(j (6152d7f8f23540af99d23cd5cc53da4c6d927cd0j ^https://api.github.com/repos/palantir/atlasdb/commits/6152d7f8f23540af99d23cd5cc53da4c6d927cd0j Shttps://github.com/palantir/atlasdb/commit/6152d7f8f23540af99d23cd5cc53da4c6d927cd0uastats}(totalK	additionsK_	deletionsK"ufiles](}(j (a8a69c685b267df051c5b0a91cdab99dce58eb87filenameoatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/InteractiveTransaction.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInteractiveTransaction.java?ref=54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38patchX  @@ -36,7 +36,7 @@ public interface InteractiveTransaction {
 
     List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRangeSelection columnRangeSelection);
 
-    List<RowResult> getRange(String table, RangeSlice rowsToRead, SortedSet<Integer> columns, boolean reverse);
+    List<RowResult> getRange(String table, RangeSlice rowsToRead, SortedSet<Integer> columns);
 
     List<WitnessedTransactionAction> witness();
 }u}(j (2c87068e7ef927b9c40c7469288ee1267f39ca5bj  vatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/RowRangeReadTransactionAction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowRangeReadTransactionAction.javaj https://github.com/palantir/atlasdb/raw/54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowRangeReadTransactionAction.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FRowRangeReadTransactionAction.java?ref=54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38j X^  @@ -25,6 +25,9 @@
  * In the interest of implementation simplicity, one significant simplification is made: values read from getRanges
  * are accessed in batches through a live iterator, while for purposes of gathering a witness, we immediately drain the
  * iterator and use the set of cells read as the witness to this action.
+ * <p>
+ * We also do not currently support reversed ranges: this is also not currently supported in SnapshotTransaction, even
+ * though the API permits it.
  */
 @Value.Immutable
 public interface RowRangeReadTransactionAction extends TransactionAction {
@@ -34,8 +37,6 @@ public interface RowRangeReadTransactionAction extends TransactionAction {
 
     SortedSet<Integer> columns();
 
-    boolean reverse();
-
     @Override
     default <T> T accept(TransactionActionVisitor<T> visitor) {
         return visitor.visit(this);u}(j (d916f38bfd08304177894e99836e3a4e6f6ca8d3j  latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransaction.javaj modifiedj K
j K
j Kj https://github.com/palantir/atlasdb/blob/54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj https://github.com/palantir/atlasdb/raw/54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransaction.java?ref=54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38j X
  @@ -137,29 +137,26 @@ public List<ColumnValue> getRowColumnRange(String table, Integer row, ColumnRang
     }
 
     @Override
-    public List<RowResult> getRange(String table, RangeSlice rowsToRead, SortedSet<Integer> columns, boolean reverse) {
+    public List<RowResult> getRange(String table, RangeSlice rowsToRead, SortedSet<Integer> columns) {
         return run(
                 tableReference -> {
                     List<RowResult> rowResults = BatchingVisitables.copyToList(transaction.getRange(
-                                    tableReference, AtlasDbUtils.toAtlasRangeRequest(rowsToRead, columns, reverse)))
+                                    tableReference, AtlasDbUtils.toAtlasRangeRequest(rowsToRead, columns)))
                             .stream()
-                            .map(atlasRowResult -> {
-                                return RowResult.builder()
-                                        .row(AtlasDbUtils.fromAtlasRow(atlasRowResult.getRowName()))
-                                        .addAllColumns(atlasRowResult.getColumns().entrySet().stream()
-                                                .map(entry -> ColumnValue.of(
-                                                        AtlasDbUtils.fromAtlasColumn(entry.getKey()),
-                                                        AtlasDbUtils.fromAtlasValue(entry.getValue())))
-                                                .collect(Collectors.toList()))
-                                        .build();
-                            })
+                            .map(atlasRowResult -> RowResult.builder()
+                                    .row(AtlasDbUtils.fromAtlasRow(atlasRowResult.getRowName()))
+                                    .addAllColumns(atlasRowResult.getColumns().entrySet().stream()
+                                            .map(entry -> ColumnValue.of(
+                                                    AtlasDbUtils.fromAtlasColumn(entry.getKey()),
+                                                    AtlasDbUtils.fromAtlasValue(entry.getValue())))
+                                            .collect(Collectors.toList()))
+                                    .build())
                             .collect(Collectors.toList());
                     witnessedTransactionActions.add(WitnessedRowRangeReadTransactionAction.builder()
                             .originalQuery(RowRangeReadTransactionAction.builder()
                                     .table(table)
                                     .rowsToRead(rowsToRead)
                                     .columns(columns)
-                                    .reverse(reverse)
                                     .build())
                             .addAllResults(rowResults)
                             .build());u}(j (9a29de5fb96a8aa6331237def42bbc73314ebad9j  fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://github.com/palantir/atlasdb/raw/54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38j X  @@ -176,8 +176,7 @@ public Void visit(RowRangeReadTransactionAction rowRangeReadTransactionAction) {
             transaction.getRange(
                     rowRangeReadTransactionAction.table(),
                     rowRangeReadTransactionAction.rowsToRead(),
-                    rowRangeReadTransactionAction.columns(),
-                    rowRangeReadTransactionAction.reverse());
+                    rowRangeReadTransactionAction.columns());
             return null;
         }
     }u}(j (2bc7b1136304ac393d27526cd8dbdb5a9b4ca5dfj  Zatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/util/AtlasDbUtils.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj https://github.com/palantir/atlasdb/raw/54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Futil%2FAtlasDbUtils.java?ref=54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38j X  @@ -129,8 +129,8 @@ public static com.palantir.atlasdb.keyvalue.api.ColumnRangeSelection toAtlasColu
                         .orElse(null));
     }
 
-    public static RangeRequest toAtlasRangeRequest(RangeSlice rowsToRead, SortedSet<Integer> columns, boolean reverse) {
-        RangeRequest.Builder builder = RangeRequest.builder(reverse)
+    public static RangeRequest toAtlasRangeRequest(RangeSlice rowsToRead, SortedSet<Integer> columns) {
+        RangeRequest.Builder builder = RangeRequest.builder()
                 .retainColumns(ColumnSelection.create(
                         columns.stream().map(AtlasDbUtils::toAtlasKey).collect(Collectors.toSet())))
                 .batchHint(2);u}(j (b4bd22a35008607aa630ea1db37d4f3177143f42j  patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbInteractiveTransactionTest.javaj modifiedj KNj Kj K\j https://github.com/palantir/atlasdb/blob/54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj https://github.com/palantir/atlasdb/raw/54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.javaj	 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbInteractiveTransactionTest.java?ref=54dc3949b4a1b74dcc06c5bd76c4c884a9a5dd38j X  @@ -181,10 +181,7 @@ public void witnessRecordsRowRangeScans() {
         assertThat(readWrite(transaction -> {
                     transaction.write(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE);
                     transaction.getRange(
-                            TABLE_1,
-                            RangeSlice.builder().build(),
-                            ImmutableSortedSet.of(WORKLOAD_CELL_TWO.column()),
-                            false);
+                            TABLE_1, RangeSlice.builder().build(), ImmutableSortedSet.of(WORKLOAD_CELL_TWO.column()));
                 }))
                 .containsExactly(
                         WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE),
@@ -193,7 +190,6 @@ public void witnessRecordsRowRangeScans() {
                                         .table(TABLE_1)
                                         .rowsToRead(RangeSlice.builder().build())
                                         .columns(ImmutableSortedSet.of(WORKLOAD_CELL_TWO.column()))
-                                        .reverse(false)
                                         .build())
                                 .addResults(RowResult.builder()
                                         .row(WORKLOAD_CELL_TWO.key())
@@ -204,22 +200,90 @@ public void witnessRecordsRowRangeScans() {
 
     @Test
     public void emptyRowRangeScansAreRecorded() {
-        // TODO
+        assertThat(readWrite(transaction -> {
+                    transaction.getRange(
+                            TABLE_1, RangeSlice.builder().build(), ImmutableSortedSet.of(WORKLOAD_CELL_TWO.column()));
+                }))
+                .containsExactly(WitnessedRowRangeReadTransactionAction.builder()
+                        .originalQuery(RowRangeReadTransactionAction.builder()
+                                .table(TABLE_1)
+                                .rowsToRead(RangeSlice.builder().build())
+                                .columns(ImmutableSortedSet.of(WORKLOAD_CELL_TWO.column()))
+                                .build())
+                        .build());
     }
 
     @Test
     public void rowRangeScansReturnPreciselyValuesInRange() {
-        // TODO
-    }
+        int numWrites = 10;
+        int column = 5;
+        List<WitnessedTransactionAction> witnessedActions = readWrite(transaction -> {
+            IntStream.range(0, numWrites)
+                    .forEach(index -> transaction.write(
+                            TABLE_1,
+                            ImmutableWorkloadCell.builder()
+                                    .key(index)
+                                    .column(column)
+                                    .build(),
+                            index));
+            transaction.getRange(
+                    TABLE_1,
+                    RangeSlice.builder().startInclusive(3).endExclusive(8).build(),
+                    ImmutableSortedSet.of(column));
+        });
 
-    @Test
-    public void rowRangeScansCanBeReversed() {
-        // TODO
+        assertThat(witnessedActions)
+                .hasSize(numWrites + 1)
+                .endsWith(WitnessedRowRangeReadTransactionAction.builder()
+                        .originalQuery(RowRangeReadTransactionAction.builder()
+                                .table(TABLE_1)
+                                .rowsToRead(RangeSlice.builder()
+                                        .startInclusive(3)
+                                        .endExclusive(8)
+                                        .build())
+                                .columns(ImmutableSortedSet.of(column))
+                                .build())
+                        .addAllResults(IntStream.range(3, 8)
+                                .mapToObj(index -> RowResult.builder()
+                                        .row(index)
+                                        .addColumns(ColumnValue.of(column, index))
+                                        .build())
+                                .collect(Collectors.toList()))
+                        .build());
     }
 
     @Test
     public void rowRangeScansOnlyReturnNecessaryColumns() {
-        // TODO
+        int numRows = 3;
+        List<WitnessedTransactionAction> witnessedActions = readWrite(transaction -> {
+            IntStream.range(0, numRows).forEach(index -> {
+                transaction.write(
+                        TABLE_1,
+                        ImmutableWorkloadCell.builder().key(index).column(1).build(),
+                        index);
+                transaction.write(
+                        TABLE_1,
+                        ImmutableWorkloadCell.builder().key(index).column(2).build(),
+                        index + 1);
+            });
+            transaction.getRange(TABLE_1, RangeSlice.builder().build(), ImmutableSortedSet.of(2));
+        });
+
+        assertThat(witnessedActions)
+                .hasSize(2 * numRows + 1)
+                .endsWith(WitnessedRowRangeReadTransactionAction.builder()
+                        .originalQuery(RowRangeReadTransactionAction.builder()
+                                .table(TABLE_1)
+                                .rowsToRead(RangeSlice.builder().build())
+                                .columns(ImmutableSortedSet.of(2))
+                                .build())
+                        .addAllResults(IntStream.range(0, numRows)
+                                .mapToObj(index -> RowResult.builder()
+                                        .row(index)
+                                        .addColumns(ColumnValue.of(2, index + 1))
+                                        .build())
+                                .collect(Collectors.toList()))
+                        .build());
     }
 
     @Test
@@ -247,7 +311,7 @@ public void getRowsColumnRangeThrowsWhenTableDoesNotExist() {
     @Test
     public void getRangeThrowsWhenTableDoesNotExist() {
         assertThatThrownWhenUnknownTableReferenced(transaction -> transaction.getRange(
-                TABLE_1, RangeSlice.builder().build(), ImmutableSortedSet.of(WORKLOAD_CELL_ONE.column()), false));
+                TABLE_1, RangeSlice.builder().build(), ImmutableSortedSet.of(WORKLOAD_CELL_ONE.column())));
     }
 
     @Test
@@ -277,7 +341,7 @@ public void getRowColumnRangeThrowsWhenInteractiveTransactionAlreadyWitnessed()
     @Test
     public void getRangeThrowsWhenInteractiveTransactionAlreadyWitnessed() {
         assertThatThrownWhenInteractiveTransactionAlreadyWitnessed(transaction -> transaction.getRange(
-                TABLE_1, RangeSlice.builder().build(), ImmutableSortedSet.of(WORKLOAD_CELL_ONE.column()), false));
+                TABLE_1, RangeSlice.builder().build(), ImmutableSortedSet.of(WORKLOAD_CELL_ONE.column())));
     }
 
     private List<WitnessedTransactionAction> readWrite(Consumer<AtlasDbInteractiveTransaction> transactionConsumer) {ueu(84183ae4ade527e842224fdcf7f03be5f86eca58}(sha(84183ae4ade527e842224fdcf7f03be5f86eca58node_idEC_kwDOAjP5fdoAKDg0MTgzYWU0YWRlNTI3ZTg0MjIyNGZkY2Y3ZjAzYmU1Zjg2ZWNhNTgcommit}(author}(nameDavid Schlosnagleemaildavids@palantir.comdate2023-05-22T09:27:02Zu	committer}(j? GitHubjA noreply@github.comjC 2023-05-22T09:27:02ZumessageRUse Caffeine instead of Guava caches (#6410)

Use Caffeine instead of Guava cachestree}(j7 (09394652b256b76e775dcf228c46940a3ac83cd1url`https://api.github.com/repos/palantir/atlasdb/git/trees/09394652b256b76e775dcf228c46940a3ac83cd1ujO bhttps://api.github.com/repos/palantir/atlasdb/git/commits/84183ae4ade527e842224fdcf7f03be5f86eca58
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkazVmCRBK7hj4Ov3rIwAA8eUIAJ9mkx+z9HsuM++znD0MWHyw
KdZr0i11ZwGnuHBYGLv8fjAZQzcFx7wjJ75z9HPruoQ6G4ABeKuByMlHz9jWKlej
1rGCG0BIRtrOJ1cI8NTYW+kSWZNDqOMd10ge5yNBBiGmt83JO2O/YpvmosqEpOtL
8k5VcJksyQgjuAD4+okX4BSNS97Dx/YK2GBGD0VjR8g7uf9u1dNdebpm1fWo+Idw
BIrppwFk49eVvTIzMKzHnqC4HLFqFOL5hksmV6VTEORht2gCZBoMrhgGaC8SW3dt
3Ftch4dKY9lp1QCCPOy9Zz26YKpewZYlHE8e0oYtujxN3pSbd4KAKZz3QkAW9KQ=
=U1gf
-----END PGP SIGNATURE-----
payloadX)  tree 09394652b256b76e775dcf228c46940a3ac83cd1
parent e7df74ecf5fc82df65b0ffe8ebefe0752841f299
author David Schlosnagle <davids@palantir.com> 1684747622 -0400
committer GitHub <noreply@github.com> 1684747622 +0000

Use Caffeine instead of Guava caches (#6410)

Use Caffeine instead of Guava caches
uujO ^https://api.github.com/repos/palantir/atlasdb/commits/84183ae4ade527e842224fdcf7f03be5f86eca58html_urlShttps://github.com/palantir/atlasdb/commit/84183ae4ade527e842224fdcf7f03be5f86eca58comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/84183ae4ade527e842224fdcf7f03be5f86eca58/commentsj= }(loginschlosnaidMBj9 MDQ6VXNlcjU0NTk0
avatar_url1https://avatars.githubusercontent.com/u/54594?v=4gravatar_idh5jO %https://api.github.com/users/schlosnaj] https://github.com/schlosna
followers_url/https://api.github.com/users/schlosna/followers
following_url<https://api.github.com/users/schlosna/following{/other_user}	gists_url5https://api.github.com/users/schlosna/gists{/gist_id}starred_url<https://api.github.com/users/schlosna/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/schlosna/subscriptionsorganizations_url*https://api.github.com/users/schlosna/orgs	repos_url+https://api.github.com/users/schlosna/repos
events_url6https://api.github.com/users/schlosna/events{/privacy}received_events_url5https://api.github.com/users/schlosna/received_eventstypeUser
site_adminujE }(jb web-flowjd J/j9 MDQ6VXNlcjE5ODY0NDQ3jf 4https://avatars.githubusercontent.com/u/19864447?v=4jh h5jO %https://api.github.com/users/web-flowj] https://github.com/web-flowjk /https://api.github.com/users/web-flow/followersjm <https://api.github.com/users/web-flow/following{/other_user}jo 5https://api.github.com/users/web-flow/gists{/gist_id}jq <https://api.github.com/users/web-flow/starred{/owner}{/repo}js 3https://api.github.com/users/web-flow/subscriptionsju *https://api.github.com/users/web-flow/orgsjw +https://api.github.com/users/web-flow/reposjy 6https://api.github.com/users/web-flow/events{/privacy}j{ 5https://api.github.com/users/web-flow/received_eventsj} Userj uparents]}(j7 (e7df74ecf5fc82df65b0ffe8ebefe0752841f299jO ^https://api.github.com/repos/palantir/atlasdb/commits/e7df74ecf5fc82df65b0ffe8ebefe0752841f299j] Shttps://github.com/palantir/atlasdb/commit/e7df74ecf5fc82df65b0ffe8ebefe0752841f299uastats}(totalM	additionsK	deletionsKufiles](}(j7 (869937b7996e6e9b9e16721bba28e199b9d1dd82filename,.baseline/checkstyle/custom-suppressions.xmlstatusmodifiedj K j KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/.baseline%2Fcheckstyle%2Fcustom-suppressions.xmlraw_urlhttps://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/.baseline%2Fcheckstyle%2Fcustom-suppressions.xmlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/.baseline%2Fcheckstyle%2Fcustom-suppressions.xml?ref=84183ae4ade527e842224fdcf7f03be5f86eca58patchXT  @@ -26,7 +26,6 @@
     <suppress files=".*" checks="RedundantModifier"/>
     <suppress files=".*" checks="SummaryJavadocCheck"/>
     <suppress files=".*" checks="VisibilityModifier"/>
-    <suppress files=".*" id="BanGuavaCaches"/>
 
     <!-- Certain AtlasDB projects are ignored. -->
     <suppress files="atlasdb-client/*" checks="."/>u}(j7 (3759f65a37646f6fbe6a02bde98fbb9e88c58ec5j Zatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CachingTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X  @@ -15,8 +15,8 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSortedMap;
 import com.google.common.collect.Iterables;
@@ -63,7 +63,7 @@ public CachingTransaction(Transaction delegate) {
 
     public CachingTransaction(Transaction delegate, long maxCachedCells) {
         this.delegate = delegate;
-        cellCache = CacheBuilder.newBuilder()
+        cellCache = Caffeine.newBuilder()
                 .maximumSize(maxCachedCells)
                 .softValues()
                 .recordStats()u}(j7 (ffcff3662b5f930a1b2f09879755c6fb0014cd88j `atlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ConflictDetectionManager.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManager.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManager.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManager.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X$  @@ -15,9 +15,9 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.CacheLoader;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import java.util.Map;
@@ -39,7 +39,7 @@ public class ConflictDetectionManager {
      *  (This has always been the behavior of this class; I'm simply calling it out)
      */
     public ConflictDetectionManager(CacheLoader<TableReference, Optional<ConflictHandler>> loader) {
-        this.cache = CacheBuilder.newBuilder().maximumSize(100_000).build(loader);
+        this.cache = Caffeine.newBuilder().maximumSize(100_000).build(loader);
     }
 
     public void warmCacheWith(Map<TableReference, Optional<ConflictHandler>> preload) {
@@ -51,6 +51,6 @@ public Map<TableReference, Optional<ConflictHandler>> getCachedValues() {
     }
 
     public Optional<ConflictHandler> get(TableReference tableReference) {
-        return cache.getUnchecked(tableReference);
+        return cache.get(tableReference);
     }
 }u}(j7 (11eda8300ddf8db89380d1fcb74052090f9cf9e9j aatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/ConflictDetectionManagers.javaj modifiedj K
j Kj Kj https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManagers.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManagers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FConflictDetectionManagers.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X3
  @@ -15,10 +15,8 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
-import com.google.common.cache.CacheLoader;
 import com.google.common.collect.Maps;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
-import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.logging.LoggingArgs;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
@@ -32,12 +30,7 @@ public final class ConflictDetectionManagers {
     private ConflictDetectionManagers() {}
 
     public static ConflictDetectionManager createWithNoConflictDetection() {
-        return new ConflictDetectionManager(new CacheLoader<>() {
-            @Override
-            public Optional<ConflictHandler> load(TableReference tableReference) throws Exception {
-                return Optional.of(ConflictHandler.IGNORE_ALL);
-            }
-        });
+        return new ConflictDetectionManager(tableReference -> Optional.of(ConflictHandler.IGNORE_ALL));
     }
 
     /**
@@ -65,18 +58,15 @@ public static ConflictDetectionManager create(KeyValueService kvs) {
     }
 
     private static ConflictDetectionManager create(KeyValueService kvs, boolean warmCache) {
-        ConflictDetectionManager conflictDetectionManager = new ConflictDetectionManager(new CacheLoader<>() {
-            @Override
-            public Optional<ConflictHandler> load(TableReference tableReference) throws Exception {
-                byte[] metadata = kvs.getMetadataForTable(tableReference);
-                if (metadata.length == 0) {
-                    log.error(
-                            "Tried to make a transaction over a table that has no metadata: {}.",
-                            LoggingArgs.tableRef("tableReference", tableReference));
-                    return Optional.empty();
-                } else {
-                    return Optional.of(getConflictHandlerFromMetadata(metadata));
-                }
+        ConflictDetectionManager conflictDetectionManager = new ConflictDetectionManager(tableReference -> {
+            byte[] metadata = kvs.getMetadataForTable(tableReference);
+            if (metadata.length == 0) {
+                log.error(
+                        "Tried to make a transaction over a table that has no metadata: {}.",
+                        LoggingArgs.tableRef("tableReference", tableReference));
+                return Optional.empty();
+            } else {
+                return Optional.of(getConflictHandlerFromMetadata(metadata));
             }
         });
         if (warmCache) {u}(j7 (02903d03f745dbe6781ac51c6ebebc98782ed544j datlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/NoDuplicateWritesTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FNoDuplicateWritesTransaction.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FNoDuplicateWritesTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FNoDuplicateWritesTransaction.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X  @@ -15,9 +15,8 @@
  */
 package com.palantir.atlasdb.transaction.impl;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.io.BaseEncoding;
 import com.palantir.atlasdb.keyvalue.api.Cell;
@@ -31,7 +30,6 @@
 import java.util.HashMap;
 import java.util.Map;
 import java.util.Set;
-import java.util.concurrent.ExecutionException;
 
 /**
  * Disallows the same cell from being written twice with different values within
@@ -43,13 +41,8 @@ public class NoDuplicateWritesTransaction extends ForwardingTransaction {
 
     final Transaction delegate;
     final ImmutableSet<TableReference> noDoubleWritesTables;
-    final LoadingCache<TableReference, Map<Cell, byte[]>> writes = CacheBuilder.newBuilder()
-            .build(new CacheLoader<TableReference, Map<Cell, byte[]>>() {
-                @Override
-                public Map<Cell, byte[]> load(TableReference input) {
-                    return Collections.synchronizedMap(new HashMap<>());
-                }
-            });
+    final LoadingCache<TableReference, Map<Cell, byte[]>> writes =
+            Caffeine.newBuilder().build(input -> Collections.synchronizedMap(new HashMap<>()));
 
     public NoDuplicateWritesTransaction(Transaction delegate, Iterable<TableReference> noDoubleWritesTables) {
         this.delegate = delegate;
@@ -81,12 +74,7 @@ public void delete(TableReference tableRef, Set<Cell> keys) {
 
     private void validateWrites(TableReference tableRef, Map<Cell, byte[]> values) {
         if (noDoubleWritesTables.contains(tableRef)) {
-            Map<Cell, byte[]> table;
-            try {
-                table = writes.get(tableRef);
-            } catch (ExecutionException e) {
-                throw new RuntimeException(e.getCause());
-            }
+            Map<Cell, byte[]> table = writes.get(tableRef);
             for (Map.Entry<Cell, byte[]> value : values.entrySet()) {
                 byte[] newValue = value.getValue();
                 byte[] oldValue = table.get(value.getKey());u}(j7 (fc7b8e44b9e02cbd50722b39931ad66604c4fc42j atlasdb-commons/build.gradlej modifiedj Kj K j Kj phttps://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-commons%2Fbuild.gradlej ohttps://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-commons%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fbuild.gradle?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j XY  @@ -16,6 +16,7 @@ dependencies {
     }
 
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
+    implementation 'com.github.ben-manes.caffeine:caffeine'
     implementation 'com.google.errorprone:error_prone_annotations'
     implementation 'com.google.guava:guava'
     implementation 'com.palantir.safe-logging:safe-logging'u}(j7 (7d30fe4fd283df55958201d1f120806d5611aa18j ^atlasdb-commons/src/main/java/com/palantir/common/exception/TableMappingNotFoundException.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fexception%2FTableMappingNotFoundException.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fexception%2FTableMappingNotFoundException.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fcommon%2Fexception%2FTableMappingNotFoundException.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X  @@ -23,4 +23,8 @@ public TableMappingNotFoundException(String msg) {
     public TableMappingNotFoundException(Throwable cause) {
         super(cause);
     }
+
+    public TableMappingNotFoundException(String msg, Throwable cause) {
+        super(msg, cause);
+    }
 }u}(j7 (e8b18dde40473e321f4bc1e4cfc195d6eef76a8bj Matlasdb-commons/src/main/java/com/palantir/util/MutuallyExclusiveSetLock.javaj modifiedj K
j Kj K$j https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FMutuallyExclusiveSetLock.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FMutuallyExclusiveSetLock.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Futil%2FMutuallyExclusiveSetLock.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X  @@ -15,11 +15,9 @@
  */
 package com.palantir.util;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Sets;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import java.util.ArrayList;
@@ -54,17 +52,9 @@
  * @author carrino
  */
 public class MutuallyExclusiveSetLock<T> {
-    private final boolean fair;
     private final Comparator<? super T> comparator;
-    private final Set<Thread> threadSet = Sets.newSetFromMap(new ConcurrentHashMap<Thread, Boolean>());
-    private final LoadingCache<T, ReentrantLock> syncMap = CacheBuilder.newBuilder()
-            .weakValues()
-            .build(new CacheLoader<T, ReentrantLock>() {
-                @Override
-                public ReentrantLock load(T key) {
-                    return new ReentrantLock(fair);
-                }
-            });
+    private final Set<Thread> threadSet = ConcurrentHashMap.newKeySet();
+    private final LoadingCache<T, ReentrantLock> syncMap;
 
     /**
      * Constructs a new <code>MutuallyExclusiveSetLock</code>
@@ -102,12 +92,12 @@ public MutuallyExclusiveSetLock(boolean fair) {
      */
     @Deprecated
     public MutuallyExclusiveSetLock(boolean fair, Comparator<? super T> comparator) {
-        this.fair = fair;
         this.comparator = comparator;
+        this.syncMap = Caffeine.newBuilder().weakValues().build(key -> new ReentrantLock(fair));
     }
 
     public static <T extends Comparable<? super T>> MutuallyExclusiveSetLock<T> create(boolean fair) {
-        return new MutuallyExclusiveSetLock<T>(fair);
+        return new MutuallyExclusiveSetLock<>(fair);
     }
 
     /**
@@ -119,7 +109,7 @@ public static <T extends Comparable<? super T>> MutuallyExclusiveSetLock<T> crea
      * @param comparator a <code>java.util.Comparator</code> to use in determining lock order.
      */
     public static <T> MutuallyExclusiveSetLock<T> createWithComparator(boolean fair, Comparator<? super T> comparator) {
-        return new MutuallyExclusiveSetLock<T>(fair, comparator);
+        return new MutuallyExclusiveSetLock<>(fair, comparator);
     }
 
     /**
@@ -130,7 +120,7 @@ public static <T> MutuallyExclusiveSetLock<T> createWithComparator(boolean fair,
      */
     public boolean isLocked(Iterable<T> items) {
         for (T t : items) {
-            ReentrantLock lock = syncMap.getUnchecked(t);
+            ReentrantLock lock = syncMap.get(t);
             if (!lock.isHeldByCurrentThread()) {
                 return false;
             }
@@ -157,7 +147,7 @@ public LockState<T> lockOnObjects(Iterable<T> lockObjects) {
             lock.lock();
         }
         threadSet.add(Thread.currentThread());
-        return new LockState<T>(sortedLocks.values(), this);
+        return new LockState<>(sortedLocks.values(), this);
     }
 
     public LockState<T> lockOnObjectsInterruptibly(Iterable<T> lockObjects) throws InterruptedException {
@@ -170,7 +160,7 @@ public LockState<T> lockOnObjectsInterruptibly(Iterable<T> lockObjects) throws I
                 lock.lockInterruptibly();
                 toUnlock.add(lock);
             }
-            LockState<T> ret = new LockState<T>(sortedLocks.values(), this);
+            LockState<T> ret = new LockState<>(sortedLocks.values(), this);
             threadSet.add(Thread.currentThread());
             toUnlock.clear();
             return ret;
@@ -201,7 +191,7 @@ private ImmutableSet<T> validateLockInput(Iterable<T> lockObjects) {
         }
 
         // verify that the compareTo and equals are consistent in that we are always locking on all objects
-        SortedSet<T> treeSet = new TreeSet<T>(comparator);
+        SortedSet<T> treeSet = new TreeSet<>(comparator);
         treeSet.addAll(hashSet);
         if (treeSet.size() != hashSet.size()) {
             throw new SafeIllegalArgumentException("The number of elements using .equals and compareTo differ. "
@@ -242,9 +232,9 @@ public void unlock(LockState<T> lockState) {
     }
 
     private SortedMap<T, ReentrantLock> getSortedLocks(Collection<T> lockObjects) {
-        final TreeMap<T, ReentrantLock> sortedLocks = new TreeMap<T, ReentrantLock>(comparator);
+        final TreeMap<T, ReentrantLock> sortedLocks = new TreeMap<>(comparator);
         for (T t : lockObjects) {
-            sortedLocks.put(t, syncMap.getUnchecked(t));
+            sortedLocks.put(t, syncMap.get(t));
         }
         return sortedLocks;
     }u}(j7 (830982ceb08e4589ac04405c25af4ab7902e61faj )atlasdb-container-test-utils/build.gradlej modifiedj Kj K j Kj }https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-container-test-utils%2Fbuild.gradlej |https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-container-test-utils%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-container-test-utils%2Fbuild.gradle?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X  @@ -7,6 +7,7 @@ dependencies {
     implementation project(':atlasdb-tests-shared')
     implementation project(":flake-rule")
 
+    implementation 'com.github.ben-manes.caffeine:caffeine'
     implementation 'com.google.guava:guava'
     implementation 'com.palantir.docker.compose:docker-compose-rule-core'
     implementation 'com.palantir.docker.compose:docker-compose-rule-junit4'u}(j7 (67f1ebfdab7e84e38c746fafcd1c8d3c0d58bbeej Zatlasdb-container-test-utils/src/main/java/com/palantir/atlasdb/containers/Containers.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FContainers.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FContainers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-container-test-utils%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcontainers%2FContainers.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X	  @@ -15,11 +15,10 @@
  */
 package com.palantir.atlasdb.containers;
 
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Throwables;
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
 import com.google.common.collect.Sets;
 import com.palantir.docker.compose.DockerComposeRule;
 import com.palantir.docker.compose.configuration.DockerComposeFiles;
@@ -56,7 +55,7 @@ public class Containers extends ExternalResource {
     private static final Set<Container> containersToStart = new HashSet<>();
     private static final Set<Container> containersStarted = new HashSet<>();
     private static final LoadingCache<String, String> dockerComposeFilesToTemporaryCopies =
-            CacheBuilder.newBuilder().build(CacheLoader.from(Containers::getDockerComposeFile));
+            Caffeine.newBuilder().build(Containers::getDockerComposeFile);
 
     private static volatile DockerComposeRule dockerComposeRule;
     private static volatile InterruptibleFileLogCollector currentLogCollector;
@@ -132,10 +131,11 @@ private void setupLogCollectorForLogDirectory() {
     }
 
     private void setupDockerComposeRule() throws InterruptedException, IOException {
-        Set<String> containerDockerComposeFiles = containersToStart.stream()
+        DockerComposeFiles files = DockerComposeFiles.from(containersToStart.stream()
                 .map(Container::getDockerComposeFile)
-                .map(dockerComposeFilesToTemporaryCopies::getUnchecked)
-                .collect(Collectors.toSet());
+                .map(dockerComposeFilesToTemporaryCopies::get)
+                .distinct()
+                .toArray(String[]::new));
 
         Map<String, String> environment = containersToStart.stream()
                 .flatMap(container -> container.getEnvironment().entrySet().stream())
@@ -145,7 +145,7 @@ private void setupDockerComposeRule() throws InterruptedException, IOException {
                 DockerMachine.localMachine().withEnvironment(environment).build();
 
         dockerComposeRule = DockerComposeRule.builder()
-                .files(DockerComposeFiles.from(containerDockerComposeFiles.toArray(new String[0])))
+                .files(files)
                 .projectName(PROJECT_NAME)
                 .machine(machine)
                 .logCollector(currentLogCollector)u}(j7 (b93a15e152b0661235eae7311c65e340f0766e0aj atlasdb-dbkvs/build.gradlej modifiedj Kj K j Kj nhttps://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-dbkvs%2Fbuild.gradlej mhttps://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-dbkvs%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fbuild.gradle?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X  @@ -14,6 +14,7 @@ dependencies {
   implementation "com.palantir.nylon:nylon-threads"
   implementation 'com.fasterxml.jackson.core:jackson-annotations'
   implementation 'com.fasterxml.jackson.core:jackson-databind'
+  implementation 'com.github.ben-manes.caffeine:caffeine'
   implementation 'com.google.auto.service:auto-service-annotations'
   implementation 'com.google.errorprone:error_prone_annotations'
   implementation 'com.google.guava:guava'u}(j7 (5ae1b103b3cc86213d6ae94812960a7d892efa6ej \atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/OracleTableNameUnmapper.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapper.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapper.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapper.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X  @@ -15,8 +15,8 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs;
 
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.AtlasDbConstants;
@@ -28,6 +28,7 @@
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.nexus.db.sql.AgnosticResultSet;
@@ -37,17 +38,16 @@
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
-import java.util.concurrent.ExecutionException;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 
 class OracleTableNameUnmapper {
     private static final SafeLogger log = SafeLoggerFactory.get(OracleTableNameUnmapper.class);
 
-    private Cache<String, String> unmappingCache;
+    private final Cache<String, String> unmappingCache;
 
     OracleTableNameUnmapper() {
-        unmappingCache = CacheBuilder.newBuilder().build();
+        unmappingCache = Caffeine.newBuilder().build();
     }
 
     @SuppressWarnings("checkstyle:NestedTryDepth")
@@ -56,22 +56,26 @@ public String getShortTableNameFromMappingTable(
             throws TableMappingNotFoundException {
         String fullTableName = tablePrefix + DbKvs.internalTableName(tableRef);
         try {
-            return unmappingCache.get(fullTableName, () -> {
+            return unmappingCache.get(fullTableName, tableNameKey -> {
                 SqlConnection conn = connectionSupplier.get();
                 AgnosticResultSet results = conn.selectResultSetUnregisteredQuery(
                         "SELECT short_table_name "
                                 + "FROM " + AtlasDbConstants.ORACLE_NAME_MAPPING_TABLE
                                 + " WHERE table_name = ?",
-                        fullTableName);
+                        tableNameKey);
                 if (results.size() == 0) {
-                    throw new TableMappingNotFoundException("The table " + fullTableName + " does not have a mapping."
-                            + "This might be because the table does not exist.");
+                    throw new SafeIllegalStateException(
+                            "The table does not have a mapping. This might be because the table does not exist.",
+                            UnsafeArg.of("tableName", tableNameKey));
                 }
 
                 return Iterables.getOnlyElement(results.rows()).getString("short_table_name");
             });
-        } catch (ExecutionException e) {
-            throw new TableMappingNotFoundException(e.getCause());
+        } catch (SafeIllegalStateException e) {
+            throw new TableMappingNotFoundException(
+                    "The table " + fullTableName
+                            + " does not have a mapping. This might be because the table does not exist.",
+                    e);
         }
     }
 u      }(j7 (dd961f490b5a264afcf9ab9af27ad5f4a20d2264j \atlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/TableMetadataCache.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableMetadataCache.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableMetadataCache.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableMetadataCache.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X:  @@ -15,8 +15,8 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs.impl;
 
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.table.description.TableMetadata;
 import java.time.Duration;
@@ -25,7 +25,7 @@
 public class TableMetadataCache {
     private static final TableMetadata EMPTY = TableMetadata.allDefault();
 
-    private final Cache<TableReference, TableMetadata> cache = CacheBuilder.newBuilder()
+    private final Cache<TableReference, TableMetadata> cache = Caffeine.newBuilder()
             .maximumSize(10000)
             .expireAfterWrite(Duration.ofHours(1))
             .build();u}(j7 (d3a8c60a800e959b3becd43b20e4445fbceefb30j batlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/TableValueStyleCacheImpl.javaj modifiedj Kj K
j Kj https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableValueStyleCacheImpl.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableValueStyleCacheImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FTableValueStyleCacheImpl.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j Xf
  @@ -15,47 +15,45 @@
  */
 package com.palantir.atlasdb.keyvalue.dbkvs.impl;
 
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.google.common.base.Preconditions;
-import com.google.common.base.Throwables;
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
 import com.google.common.collect.Iterables;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.logging.LoggingArgs;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.nexus.db.sql.AgnosticResultSet;
 import com.palantir.nexus.db.sql.SqlConnection;
-import java.util.concurrent.ExecutionException;
 
 public final class TableValueStyleCacheImpl implements TableValueStyleCache {
     private static final SafeLogger log = SafeLoggerFactory.get(TableValueStyleCacheImpl.class);
 
     private final Cache<TableReference, TableValueStyle> valueStyleByTableRef =
-            CacheBuilder.newBuilder().build();
+            Caffeine.newBuilder().build();
 
     @Override
     public TableValueStyle getTableType(
             final ConnectionSupplier connectionSupplier, final TableReference tableRef, TableReference metadataTable) {
         try {
-            return valueStyleByTableRef.get(tableRef, () -> {
+            return valueStyleByTableRef.get(tableRef, tableRefKey -> {
                 SqlConnection conn = connectionSupplier.get();
                 AgnosticResultSet results = conn.selectResultSetUnregisteredQuery(
                         String.format(
                                 "SELECT table_size FROM %s WHERE table_name = ?", metadataTable.getQualifiedName()),
-                        tableRef.getQualifiedName());
+                        tableRefKey.getQualifiedName());
                 Preconditions.checkArgument(
-                        !results.rows().isEmpty(), "table %s not found", tableRef.getQualifiedName());
+                        !results.rows().isEmpty(), "table %s not found", tableRefKey.getQualifiedName());
 
                 return TableValueStyle.byId(
                         Iterables.getOnlyElement(results.rows()).getInteger("table_size"));
             });
-        } catch (ExecutionException e) {
+        } catch (RuntimeException e) {
             log.error(
                     "TableValueStyle for the table {} could not be retrieved.",
                     LoggingArgs.safeInternalTableName(tableRef.getQualifiedName()),
                     e);
-            throw Throwables.propagate(e);
+            throw e;
         }
     }
 u}(j7 (ac33fad35d76f1ceb079128628c94f48a6bb5693j `atlasdb-dbkvs/src/test/java/com/palantir/atlasdb/keyvalue/dbkvs/OracleTableNameUnmapperTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2FOracleTableNameUnmapperTest.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X  @@ -18,6 +18,7 @@
 import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
+import static org.assertj.core.api.InstanceOfAssertFactories.type;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.ArgumentMatchers.startsWith;
@@ -103,7 +104,16 @@ public void shouldThrowIfTableMappingDoesNotExist() {
         assertThatThrownBy(() -> oracleTableNameUnmapper.getShortTableNameFromMappingTable(
                         connectionSupplier, TEST_PREFIX, TABLE_REF))
                 .isInstanceOf(TableMappingNotFoundException.class)
-                .hasMessageContaining("The table a_test_namespace__ThisIsAVeryLongTableNameThatWillExceed");
+                .hasMessageContaining("The table a_test_namespace__ThisIsAVeryLongTableNameThatWillExceed")
+                .hasRootCauseInstanceOf(SafeIllegalStateException.class)
+                .rootCause()
+                .asInstanceOf(type(SafeIllegalStateException.class))
+                .extracting(SafeIllegalStateException::getArgs)
+                .satisfies(args -> assertThat(args)
+                        .hasSize(1)
+                        .first()
+                        .isEqualTo(
+                                UnsafeArg.of("tableName", "a_test_namespace__ThisIsAVeryLongTableNameThatWillExceed")));
     }
 
     @Testu}(j7 (c343ae3edce2f8e4d5a1c928511f569ac571e2d1j Watlasdb-impl-shared/src/main/java/com/palantir/atlasdb/cleaner/CachingPuncherStore.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FCachingPuncherStore.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FCachingPuncherStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fcleaner%2FCachingPuncherStore.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X  @@ -15,9 +15,8 @@
  */
 package com.palantir.atlasdb.cleaner;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 
 /**
  * Wrap another PuncherStore, optimizing the #get() operation to operate on a local cache, only
@@ -31,14 +30,8 @@ public final class CachingPuncherStore implements PuncherStore {
     private static final int CACHE_SIZE = 64000;
 
     public static CachingPuncherStore create(final PuncherStore puncherStore, long granularityMillis) {
-        LoadingCache<Long, Long> timeMillisToTimestamp = CacheBuilder.newBuilder()
-                .maximumSize(CACHE_SIZE)
-                .build(new CacheLoader<Long, Long>() {
-                    @Override
-                    public Long load(Long timeMillis) throws Exception {
-                        return puncherStore.get(timeMillis);
-                    }
-                });
+        LoadingCache<Long, Long> timeMillisToTimestamp =
+                Caffeine.newBuilder().maximumSize(CACHE_SIZE).build(puncherStore::get);
         return new CachingPuncherStore(puncherStore, timeMillisToTimestamp, granularityMillis);
     }
 
@@ -66,7 +59,7 @@ public void put(long timestamp, long timeMillis) {
     @Override
     public Long get(Long timeMillis) {
         long approximateTimeMillis = timeMillis - (timeMillis % granularityMillis);
-        return timeMillisToTimestamp.getUnchecked(approximateTimeMillis);
+        return timeMillisToTimestamp.get(approximateTimeMillis);
     }
 
     @Overrideu}(j7 (473d85d8410eb6afff14e536910bcdc893df9991j Oatlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/CommitTsCache.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FCommitTsCache.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FCommitTsCache.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2FCommitTsCache.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j XK  @@ -25,7 +25,7 @@
 
 public final class CommitTsCache {
     private static final Long ONE_MILLION = 1_000_000L;
-    private LoadingCache<Long, Long> cache;
+    private final LoadingCache<Long, Long> cache;
 
     private CommitTsCache(TransactionService transactionService, long maxSize) {
         cache = Caffeine.newBuilder()u}(j7 (a5aa10990351e2183eaafa2292e37b9821a2373bj \atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitioner.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitioner.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X.  @@ -15,10 +15,9 @@
  */
 package com.palantir.atlasdb.sweep.queue;
 
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.annotations.VisibleForTesting;
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.keyvalue.api.WriteReference;
@@ -41,13 +40,8 @@ public class WriteInfoPartitioner {
     private final KeyValueService kvs;
     private final Supplier<Integer> numShards;
 
-    private final LoadingCache<TableReference, SweeperStrategy> cache = CacheBuilder.newBuilder()
-            .build(new CacheLoader<>() {
-                @Override
-                public SweeperStrategy load(TableReference key) {
-                    return getStrategyFromKvs(key);
-                }
-            });
+    private final LoadingCache<TableReference, SweeperStrategy> cache =
+            Caffeine.newBuilder().build(this::getStrategyFromKvs);
 
     public WriteInfoPartitioner(KeyValueService kvs, Supplier<Integer> numShards) {
         this.kvs = kvs;
@@ -96,7 +90,7 @@ SweeperStrategy getStrategy(WriteInfo writeInfo) {
     }
 
     SweeperStrategy getStrategyForTable(TableReference tableRef) {
-        return cache.getUnchecked(tableRef);
+        return cache.get(tableRef);
     }
 
     private SweeperStrategy getStrategyFromKvs(TableReference tableRef) {u}(j7 (ed0c8b2b67fd881994a89c56448b471760eee7f3j `atlasdb-impl-shared/src/test/java/com/palantir/atlasdb/sweep/queue/WriteInfoPartitionerTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fsweep%2Fqueue%2FWriteInfoPartitionerTest.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X  @@ -30,14 +30,14 @@
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.Iterables;
-import com.google.common.util.concurrent.UncheckedExecutionException;
 import com.palantir.atlasdb.AtlasDbConstants;
 import com.palantir.atlasdb.encoding.PtBytes;
 import com.palantir.atlasdb.keyvalue.api.Cell;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.protos.generated.TableMetadataPersistence;
 import com.palantir.atlasdb.table.description.SweeperStrategy;
+import com.palantir.common.exception.PalantirRuntimeException;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
@@ -74,15 +74,16 @@ public void setup() {
     public void getStrategyThrowsForIllegalMetadata() {
         when(mockKvs.getMetadataForTable(any())).thenReturn(AtlasDbConstants.EMPTY_TABLE_METADATA);
         assertThatThrownBy(() -> partitioner.getStrategy(getWriteInfoWithFixedShard(getTableRef("a"), 0, numShards)))
-                .isInstanceOf(UncheckedExecutionException.class);
+                .isInstanceOf(PalantirRuntimeException.class)
+                .hasMessageContaining("Message missing required fields: rowName, columns, conflictHandler");
     }
 
     @Test
     public void getStrategyThrowsOnUncheckedException() {
         RuntimeException cause = new RuntimeException("cause");
         when(mockKvs.getMetadataForTable(any())).thenThrow(cause);
         assertThatThrownBy(() -> partitioner.getStrategy(getWriteInfoWithFixedShard(getTableRef("a"), 0, numShards)))
-                .isInstanceOf(UncheckedExecutionException.class)
+                .isInstanceOf(RuntimeException.class)
                 .hasCause(cause);
     }
 u}(j7 (cd21ecbc3c68e28c454d5bff8f68991164cec40bj tatlasdb-impl-shared/src/test/java/com/palantir/atlasdb/transaction/impl/TransactionConflictDetectionManagerTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConflictDetectionManagerTest.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConflictDetectionManagerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTransactionConflictDetectionManagerTest.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X  @@ -21,7 +21,7 @@
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.Mockito.when;
 
-import com.google.common.cache.CacheLoader;
+import com.github.benmanes.caffeine.cache.CacheLoader;
 import com.palantir.atlasdb.keyvalue.api.Namespace;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;u}(j7 (026fff67eab8e84d14bad0730080cfefeff0ac7dj atlasdb-service/build.gradlej modifiedj Kj K j Kj phttps://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-service%2Fbuild.gradlej ohttps://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-service%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-service%2Fbuild.gradle?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X  @@ -11,6 +11,7 @@ dependencies {
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'
     implementation 'com.fasterxml.jackson.core:jackson-databind'
+    implementation 'com.github.ben-manes.caffeine:caffeine'
     implementation 'com.google.guava:guava'
     implementation 'com.google.protobuf:protobuf-java'
     implementation 'com.palantir.safe-logging:preconditions'u}(j7 (b79b4dafcc946cf96444ea06a15f80c43c917632j Oatlasdb-service/src/main/java/com/palantir/atlasdb/impl/AtlasDbServiceImpl.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FAtlasDbServiceImpl.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FAtlasDbServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FAtlasDbServiceImpl.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j Xh  @@ -15,8 +15,8 @@
  */
 package com.palantir.atlasdb.impl;
 
-import com.google.common.cache.Cache;
-import com.google.common.cache.CacheBuilder;
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Iterables;
@@ -66,7 +66,7 @@ public class AtlasDbServiceImpl implements AtlasDbService {
     private final KeyValueService kvs;
     private final TransactionManager txManager;
     private final Cache<TransactionToken, OpenTransaction> transactions =
-            CacheBuilder.newBuilder().expireAfterAccess(Duration.ofHours(12)).build();
+            Caffeine.newBuilder().expireAfterAccess(Duration.ofHours(12)).build();
     private final TableMetadataCache metadataCache;
 
     @Injectu}(j7 (0ada116d7372c26c8a0931872702ce8748ea8d09j Oatlasdb-service/src/main/java/com/palantir/atlasdb/impl/TableMetadataCache.javaj modifiedj K	j K
j Kj https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FTableMetadataCache.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FTableMetadataCache.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-service%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fimpl%2FTableMetadataCache.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X  @@ -15,9 +15,8 @@
  */
 package com.palantir.atlasdb.impl;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.table.description.TableMetadata;
@@ -31,24 +30,21 @@ public class TableMetadataCache {
 
     @Inject
     public TableMetadataCache(final KeyValueService kvs) {
-        this.cache = CacheBuilder.newBuilder()
+        this.cache = Caffeine.newBuilder()
                 .expireAfterAccess(Duration.ofMinutes(15))
-                .build(new CacheLoader<String, TableMetadata>() {
-                    @Override
-                    public TableMetadata load(String tableName) throws Exception {
-                        byte[] rawMetadata = kvs.getMetadataForTable(TableReference.createUnsafe(tableName));
-                        if (rawMetadata == null || rawMetadata.length == 0) {
-                            return EMPTY;
-                        }
-                        return TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(rawMetadata);
+                .build(tableName -> {
+                    byte[] rawMetadata = kvs.getMetadataForTable(TableReference.createUnsafe(tableName));
+                    if (rawMetadata == null || rawMetadata.length == 0) {
+                        return EMPTY;
                     }
+                    return TableMetadata.BYTES_HYDRATOR.hydrateFromBytes(rawMetadata);
                 });
     }
 
     @CheckForNull
     @SuppressWarnings("ImmutablesReferenceEquality")
     public TableMetadata getMetadata(String tableName) {
-        TableMetadata ret = cache.getUnchecked(tableName);
+        TableMetadata ret = cache.get(tableName);
         if (ret == EMPTY) {
             return null;
         }u}(j7 (633bf2503dddd056c1d63648ab4b3b33ddae8945j !atlasdb-tests-shared/build.gradlej modifiedj Kj K j Kj uhttps://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-tests-shared%2Fbuild.gradlej thttps://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-tests-shared%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fbuild.gradle?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j Xc  @@ -16,6 +16,7 @@ dependencies {
   implementation 'org.awaitility:awaitility'
 
   implementation 'com.fasterxml.jackson.core:jackson-core'
+  implementation 'com.github.ben-manes.caffeine:caffeine'
   implementation 'com.google.guava:guava'
   implementation 'com.palantir.common:streams'
   implementation 'com.palantir.conjure.java.api:service-config'u}(j7 (495fe1f85525119f02ade86e97c44ed5de897764j katlasdb-tests-shared/src/main/java/com/palantir/atlasdb/transaction/impl/TestConflictDetectionManagers.javaj modifiedj Kj Kj K	j https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTestConflictDetectionManagers.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTestConflictDetectionManagers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FTestConflictDetectionManagers.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X#  @@ -16,7 +16,6 @@
 package com.palantir.atlasdb.transaction.impl;
 
 import com.google.common.annotations.VisibleForTesting;
-import com.google.common.cache.CacheLoader;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import java.util.Map;
@@ -28,11 +27,7 @@ private TestConflictDetectionManagers() {}
     @VisibleForTesting
     static ConflictDetectionManager createWithStaticConflictDetection(
             Map<TableReference, Optional<ConflictHandler>> staticMap) {
-        return new ConflictDetectionManager(new CacheLoader<>() {
-            @Override
-            public Optional<ConflictHandler> load(TableReference tableReference) throws Exception {
-                return staticMap.getOrDefault(tableReference, Optional.of(ConflictHandler.RETRY_ON_WRITE_WRITE));
-            }
-        });
+        return new ConflictDetectionManager(tableReference ->
+                staticMap.getOrDefault(tableReference, Optional.of(ConflictHandler.RETRY_ON_WRITE_WRITE)));
     }
 }u}(j7 (aceed5bc2b1874600ed6c3412972b87ad8b63a51j $changelog/@unreleased/pr-6410.v2.ymlj addedj Kj K j Kj |https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/changelog%2F%40unreleased%2Fpr-6410.v2.ymlj {https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/changelog%2F%40unreleased%2Fpr-6410.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6410.v2.yml?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Use Caffeine instead of Guava caches
+  links:
+  - https://github.com/palantir/atlasdb/pull/6410u}(j7 (708a23de65fd9745cd8136bb140888a0ea0fa2c0j commons-db/build.gradlej modifiedj Kj K j Kj khttps://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/commons-db%2Fbuild.gradlej jhttps://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/commons-db%2Fbuild.gradlej }https://api.github.com/repos/palantir/atlasdb/contents/commons-db%2Fbuild.gradle?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j XO  @@ -17,6 +17,7 @@ dependencies {
   implementation 'com.zaxxer:HikariCP'
   implementation 'joda-time:joda-time'
 
+  implementation 'com.github.ben-manes.caffeine:caffeine'
   implementation 'com.google.guava:guava'
   implementation 'com.palantir.safe-logging:preconditions'
   implementation 'com.palantir.safe-logging:safe-logging'u}(j7 (92790ade1c26cd57450221409fceba6e35172b2bj Ncommons-db/src/main/java/com/palantir/nexus/db/pool/RetriableTransactions.javaj modifiedj Kj K7j KKj https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/commons-db%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FRetriableTransactions.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/commons-db%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FRetriableTransactions.javaj https://api.github.com/repos/palantir/atlasdb/contents/commons-db%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fnexus%2Fdb%2Fpool%2FRetriableTransactions.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X   @@ -15,12 +15,12 @@
  */
 package com.palantir.nexus.db.pool;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.UnsafeArg;
+import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.sql.Connection;
@@ -81,15 +81,15 @@ private TransactionResult(TransactionStatus status, @Nullable T resultValue, Opt
         }
 
         public static <T> TransactionResult<T> success(T resultValue) {
-            return new TransactionResult<T>(TransactionStatus.SUCCESSFUL, resultValue, Optional.<Throwable>empty());
+            return new TransactionResult<>(TransactionStatus.SUCCESSFUL, resultValue, Optional.empty());
         }
 
         public static <T> TransactionResult<T> failure(Throwable error) {
-            return new TransactionResult<T>(TransactionStatus.FAILED, null /* result value */, Optional.of(error));
+            return new TransactionResult<>(TransactionStatus.FAILED, null /* result value */, Optional.of(error));
         }
 
         public static <T> TransactionResult<T> unknown(Throwable error) {
-            return new TransactionResult<T>(TransactionStatus.UNKNOWN, null /* result value */, Optional.of(error));
+            return new TransactionResult<>(TransactionStatus.UNKNOWN, null /* result value */, Optional.of(error));
         }
 
         public TransactionStatus getStatus() {
@@ -130,7 +130,7 @@ public static <T> TransactionResult<T> run(final ConnectionManager cm, final Ret
         }
 
         class LexicalHelper {
-            long startTimeMs = System.currentTimeMillis();
+            final long startTimeMs = System.currentTimeMillis();
             boolean pending = false;
             UUID id = null;
             T result = null;
@@ -205,8 +205,7 @@ public TransactionResult<T> run() {
             private void attemptTx() throws SQLException {
                 boolean ret = false;
                 try {
-                    Connection c = cm.getConnection();
-                    try {
+                    try (Connection c = cm.getConnection()) {
                         // Crash anywhere in here means no commit attempted and we stay in non-pending
                         c.setAutoCommit(false);
                         T newResult = tx.run(c);
@@ -224,10 +223,6 @@ private void attemptTx() throws SQLException {
 
                         cleanTxLog(c, id);
                         c.commit();
-
-                        return;
-                    } finally {
-                        c.close();
                     }
                 } catch (SQLException e) {
                     if (ret) {
@@ -241,15 +236,12 @@ private void attemptTx() throws SQLException {
             private boolean attemptVerify() throws SQLException {
                 boolean ret = false;
                 try {
-                    Connection c = cm.getConnection();
-                    try {
+                    try (Connection c = cm.getConnection()) {
                         ret = checkTxLog(c, id);
                         if (ret) {
                             cleanTxLog(c, id);
                         }
                         return ret;
-                    } finally {
-                        c.close();
                     }
                 } catch (SQLException e) {
                     if (ret) {
@@ -273,22 +265,16 @@ private void squelch(SQLException e) {
         return new LexicalHelper().run();
     }
 
-    private static final LoadingCache<ConnectionManager, AtomicBoolean> createdTxTables = CacheBuilder.newBuilder()
-            .weakKeys()
-            .build(new CacheLoader<ConnectionManager, AtomicBoolean>() {
-                @Override
-                public AtomicBoolean load(ConnectionManager cm) {
-                    return new AtomicBoolean(false);
-                }
-            });
+    private static final LoadingCache<ConnectionManager, AtomicBoolean> createdTxTables =
+            Caffeine.newBuilder().weakKeys().build(cm -> new AtomicBoolean(false));
 
     private static void createTxTable(ConnectionManager cm) throws SQLException {
-        AtomicBoolean createdTxTable = createdTxTables.getUnchecked(cm);
+        AtomicBoolean createdTxTable = createdTxTables.get(cm);
         if (createdTxTable.get()) {
             return;
         }
 
-        String varcharType = null;
+        String varcharType;
         switch (cm.getDbType()) {
             case ORACLE:
                 varcharType = "VARCHAR2";
@@ -300,23 +286,17 @@ private static void createTxTable(ConnectionManager cm) throws SQLException {
                 break;
 
             default:
-                throw new IllegalStateException();
-        }
-        if (varcharType == null) {
-            throw new IllegalStateException();
+                throw new SafeIllegalStateException("Unknown DB type", SafeArg.of("dbType", cm.getDbType()));
         }
 
         // I'd love to CREATE TABLE ... IF NOT EXISTS but Ye Olde Postgres (TM)
         // does not like it so we do something ugly.
         try {
-            Connection c = cm.getConnection();
-            try {
+            try (Connection c = cm.getConnection()) {
                 // Attempt to add to the table, but don't actually commit it.
                 c.setAutoCommit(false);
                 addTxLog(c, UUID.randomUUID());
                 c.rollback();
-            } finally {
-                c.close();
             }
             // Great, that worked, fallthrough to below but don't commit.
         } catch (SQLException e) {
@@ -327,13 +307,10 @@ private static void createTxTable(ConnectionManager cm) throws SQLException {
                     "To check whether the table exists we tried to use it. This caused an exception indicating that it"
                             + " did not exist. The exception was: ",
                     e);
-            Connection c = cm.getConnection();
-            try {
+            try (Connection c = cm.getConnection()) {
                 c.createStatement()
                         .execute("CREATE TABLE " + TABLE_NAME + " (id " + varcharType
                                 + "(36) PRIMARY KEY, created TIMESTAMP DEFAULT CURRENT_TIMESTAMP)");
-            } finally {
-                c.close();
             }
             // Good enough, fallthrough to below.
         }
@@ -343,37 +320,25 @@ private static void createTxTable(ConnectionManager cm) throws SQLException {
     }
 
     private static void addTxLog(Connection c, UUID id) throws SQLException {
-        PreparedStatement ps = c.prepareStatement("INSERT INTO " + TABLE_NAME + " (id) VALUES (?)");
-        try {
+        try (PreparedStatement ps = c.prepareStatement("INSERT INTO " + TABLE_NAME + " (id) VALUES (?)")) {
             ps.setString(1, id.toString());
             ps.executeUpdate();
-        } finally {
-            ps.close();
         }
     }
 
     private static boolean checkTxLog(Connection c, UUID id) throws SQLException {
-        PreparedStatement ps = c.prepareStatement("SELECT 1 FROM " + TABLE_NAME + " WHERE id = ?");
-        try {
+        try (PreparedStatement ps = c.prepareStatement("SELECT 1 FROM " + TABLE_NAME + " WHERE id = ?")) {
             ps.setString(1, id.toString());
-            ResultSet rs = ps.executeQuery();
-            try {
+            try (ResultSet rs = ps.executeQuery()) {
                 return rs.next();
-            } finally {
-                rs.close();
             }
-        } finally {
-            ps.close();
         }
     }
 
     private static void cleanTxLog(Connection c, UUID id) throws SQLException {
-        PreparedStatement ps = c.prepareStatement("DELETE FROM " + TABLE_NAME + " WHERE id = ?");
-        try {
+        try (PreparedStatement ps = c.prepareStatement("DELETE FROM " + TABLE_NAME + " WHERE id = ?")) {
             ps.setString(1, id.toString());
             ps.executeUpdate();
-        } finally {
-            ps.close();
         }
     }
 u}(j7 (ca651f0763ebdabbad8b6ad4375c30af9d4dc3a6j ]leader-election-impl/src/main/java/com/palantir/paxos/CoalescingPaxosLatestRoundVerifier.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FCoalescingPaxosLatestRoundVerifier.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FCoalescingPaxosLatestRoundVerifier.javaj https://api.github.com/repos/palantir/atlasdb/contents/leader-election-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fpaxos%2FCoalescingPaxosLatestRoundVerifier.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X!  @@ -15,9 +15,8 @@
  */
 package com.palantir.paxos;
 
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.palantir.common.concurrent.CoalescingSupplier;
 
@@ -27,29 +26,23 @@
  */
 public class CoalescingPaxosLatestRoundVerifier implements PaxosLatestRoundVerifier {
 
-    private final PaxosLatestRoundVerifier delegate;
     // we only care about keeping the verifier for the latest round; the cache is just here to handle concurrency
     // around creating a new verifier for a newly requested round
-    private final LoadingCache<Long, CoalescingSupplier<PaxosQuorumStatus>> verifiersByRound = CacheBuilder.newBuilder()
-            .maximumSize(1)
-            .build(new CacheLoader<Long, CoalescingSupplier<PaxosQuorumStatus>>() {
-                @Override
-                public CoalescingSupplier<PaxosQuorumStatus> load(Long key) throws Exception {
-                    return new CoalescingSupplier<>(() -> delegate.isLatestRound(key));
-                }
-            });
+    private final LoadingCache<Long, CoalescingSupplier<PaxosQuorumStatus>> verifiersByRound;
 
     public CoalescingPaxosLatestRoundVerifier(PaxosLatestRoundVerifier delegate) {
-        this.delegate = delegate;
+        this.verifiersByRound = Caffeine.newBuilder()
+                .maximumSize(1)
+                .build(key -> new CoalescingSupplier<>(() -> delegate.isLatestRound(key)));
     }
 
     @Override
     public ListenableFuture<PaxosQuorumStatus> isLatestRoundAsync(long round) {
-        return verifiersByRound.getUnchecked(round).getAsync();
+        return verifiersByRound.get(round).getAsync();
     }
 
     @Override
     public PaxosQuorumStatus isLatestRound(long round) {
-        return verifiersByRound.getUnchecked(round).get();
+        return verifiersByRound.get(round).get();
     }
 }u}(j7 (80ad13cf8556efbef4954e0d02f872fe14f7b3a1j lock-impl/build.gradlej modifiedj Kj K j Kj jhttps://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/lock-impl%2Fbuild.gradlej ihttps://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/lock-impl%2Fbuild.gradlej |https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fbuild.gradle?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j X{  @@ -5,6 +5,7 @@ dependencies {
 
   implementation 'com.fasterxml.jackson.core:jackson-annotations'
   implementation 'com.fasterxml.jackson.core:jackson-databind'
+  implementation 'com.github.ben-manes.caffeine:caffeine'
   implementation 'com.google.errorprone:error_prone_annotations'
   implementation 'com.google.guava:guava'
   implementation 'com.palantir.common:streams'u}(j7 (8565bf0549ed767c72914d5e58a5d9f913b6ad64j Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/84183ae4ade527e842224fdcf7f03be5f86eca58/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://github.com/palantir/atlasdb/raw/84183ae4ade527e842224fdcf7f03be5f86eca58/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=84183ae4ade527e842224fdcf7f03be5f86eca58j XH  @@ -21,12 +21,11 @@
 import static com.palantir.lock.LockGroupBehavior.LOCK_ALL_OR_NONE;
 import static com.palantir.lock.LockGroupBehavior.LOCK_AS_MANY_AS_POSSIBLE;
 
+import com.github.benmanes.caffeine.cache.Caffeine;
+import com.github.benmanes.caffeine.cache.LoadingCache;
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.MoreObjects;
 import com.google.common.base.Preconditions;
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
 import com.google.common.collect.Collections2;
 import com.google.common.collect.HashMultimap;
 import com.google.common.collect.ImmutableList;
@@ -98,7 +97,6 @@
 import java.util.concurrent.BlockingQueue;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ConcurrentMap;
-import java.util.concurrent.ExecutionException;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Future;
 import java.util.concurrent.PriorityBlockingQueue;
@@ -188,14 +186,8 @@ public String toString() {
     private final LockClientIndices clientIndices = new LockClientIndices();
 
     /** The backing client-aware read write lock for each lock descriptor. */
-    private final LoadingCache<LockDescriptor, ClientAwareReadWriteLock> descriptorToLockMap = CacheBuilder.newBuilder()
-            .weakValues()
-            .build(new CacheLoader<LockDescriptor, ClientAwareReadWriteLock>() {
-                @Override
-                public ClientAwareReadWriteLock load(LockDescriptor from) {
-                    return new LockServerLock(from, clientIndices);
-                }
-            });
+    private final LoadingCache<LockDescriptor, ClientAwareReadWriteLock> descriptorToLockMap =
+            Caffeine.newBuilder().weakValues().build(from -> new LockServerLock(from, clientIndices));
 
     /** The locks (and canonical token) associated with each HeldLocksToken. */
     private final ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>> heldLocksTokenMap = new MapMaker().makeMap();
@@ -521,12 +513,7 @@ private void tryLocks(
                     continue;
                 }
 
-                ClientAwareReadWriteLock lock;
-                try {
-                    lock = descriptorToLockMap.get(entry.getKey());
-                } catch (ExecutionException e) {
-                    throw new RuntimeException(e.getCause());
-                }
+                ClientAwareReadWriteLock lock = descriptorToLockMap.get(entry.getKey());
                 if (locks.containsKey(lock)) {
                     // This is the 2nd time we are calling tryLocks and we already locked this one.
                     continue;
@@ -1201,7 +1188,7 @@ private String safeLockStats() {
                 + maxAllowedClockDrift
                 + "\n"
                 + "descriptorToLockMap.size = "
-                + descriptorToLockMap.size()
+                + descriptorToLockMap.estimatedSize()
                 + "\n"
                 + "outstandingLockRequestMultimap.size = "
                 + outstandingLockRequestMultimap.size()ueu(9a8f11015988463652e004e8f320e61f66c0a6de}(sha(9a8f11015988463652e004e8f320e61f66c0a6denode_idEC_kwDOAjP5fdoAKDlhOGYxMTAxNTk4ODQ2MzY1MmUwMDRlOGYzMjBlNjFmNjZjMGE2ZGUcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T13:00:14Zu	committer}(j 
Ahmed Alouanej aalouane@palantir.comj 2023-05-15T13:00:14Zumessage	test thistree}(j (457e53a9db790a95888dfee93bc403f75388b1b0url`https://api.github.com/repos/palantir/atlasdb/git/trees/457e53a9db790a95888dfee93bc403f75388b1b0uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9a8f11015988463652e004e8f320e61f66c0a6de
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiLN4ACgkQPlMHVIT1
yhpCJwf/e5Sl1xIQ5Z9yGavD8U0thtd+dl4CppV1EaY24S0lValEAU0sUQ3CUkT0
dSyyrBC6vYa1nPgvO7jeoj4gneZgrTS5H5rG+moy06J03L2111tKv+B84pe00nE9
7kHs9P26eVWYudJpZjLOjBzZMNZjea1O3NpoYNkyrNKShc9wfxpAENwA+TKt4fg0
64p05tZg6tCaadigCVQdD0pV1eyZphlNDn9yfld+9pnLbw8oU84bR5KCVnaluWph
qnChRW7O1Cdxm37peNa2O6SblOQZA4XQ5zjNpeL+e7ptSuBf247xItWMGjDQynGQ
2pyJqqf+MJ5tp3HR1vTP6jt1L/Uy4g==
=2Tkx
-----END PGP SIGNATURE-----payloadX  tree 457e53a9db790a95888dfee93bc403f75388b1b0
parent 4c22d328051f67d72da78e9bbe5ab56a4c60d7ad
parent 174bb726c72d9f909fc125b5f001b253330dd1b7
author Ahmed Alouane <aalouane@palantir.com> 1684155614 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684155614 +0100

test this
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/9a8f11015988463652e004e8f320e61f66c0a6dehtml_urlShttps://github.com/palantir/atlasdb/commit/9a8f11015988463652e004e8f320e61f66c0a6decomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9a8f11015988463652e004e8f320e61f66c0a6de/commentsj }(loginergo14idJj MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14jĜ https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj }(jɜ ergo14j˜ Jj MDQ6VXNlcjMwOTAzNzM2j͜ 4https://avatars.githubusercontent.com/u/30903736?v=4jϜ h5j #https://api.github.com/users/ergo14jĜ https://github.com/ergo14jҜ -https://api.github.com/users/ergo14/followersjԜ :https://api.github.com/users/ergo14/following{/other_user}j֜ 3https://api.github.com/users/ergo14/gists{/gist_id}j؜ :https://api.github.com/users/ergo14/starred{/owner}{/repo}jڜ 1https://api.github.com/users/ergo14/subscriptionsjܜ (https://api.github.com/users/ergo14/orgsjޜ )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents](}(j (4c22d328051f67d72da78e9bbe5ab56a4c60d7adj ^https://api.github.com/repos/palantir/atlasdb/commits/4c22d328051f67d72da78e9bbe5ab56a4c60d7adjĜ Shttps://github.com/palantir/atlasdb/commit/4c22d328051f67d72da78e9bbe5ab56a4c60d7adu}(j (174bb726c72d9f909fc125b5f001b253330dd1b7j ^https://api.github.com/repos/palantir/atlasdb/commits/174bb726c72d9f909fc125b5f001b253330dd1b7jĜ Shttps://github.com/palantir/atlasdb/commit/174bb726c72d9f909fc125b5f001b253330dd1b7uestats}(totalM]	additionsM	deletionsKxufiles](}(j (ba64936f524e339c02f8b51cfa2ca65146a3612cfilename.circleci/config.ymlstatusmodifiedj Kj KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=9a8f11015988463652e004e8f320e61f66c0a6depatchX  @@ -31,7 +31,7 @@ jobs:
           root: .
           paths: [ . ]
 
-  test:
+  test-suite:
     parameters:
       suite:
         type: integer
@@ -99,6 +99,12 @@ jobs:
       - attach_workspace: { at: . }
       - run: ./gradlew --scan --profile --stacktrace --continue publishToMavenLocal
 
+  test:
+    docker: [{ image: 'busybox:1.34.1' }]
+    resource_class: small
+    steps:
+      - run: {command: echo "Ran all required tests successfully"}
+
   deploy:
     docker:
       - image: cimg/openjdk:11.0.10-node
@@ -138,7 +144,7 @@ workflows:
           filters:
             tags:
               only: /.*/
-      - test:
+      - test-suite:
           requires: [build]
           matrix:
             alias: test-no-tl
@@ -148,7 +154,7 @@ workflows:
           filters:
             tags:
               only: /.*/
-      - test:
+      - test-suite:
           requires: [build]
           matrix:
             alias: test-tl
@@ -159,13 +165,18 @@ workflows:
               only: /(tlmete.*|develop)/
             tags:
               only: /.*/
+      - test:
+          requires: [test-tl, test-no-tl]
+          filters:
+            tags:
+              only: /.*/
       - trial-publish:
           requires: [build]
           filters:
             branches:
               ignore: [develop]
       - deploy:
-          requires: [build, test-no-tl, test-tl]
+          requires: [build, test]
           filters:
             branches:
               only: developu}(j (d8f732c3615aaed89bbf22d2dd57bf2198b25723j
 .policy.ymlj modifiedj Kj Kj Kj ]https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/.policy.ymlj \https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/.policy.ymlj ohttps://api.github.com/repos/palantir/atlasdb/contents/.policy.yml?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X(  @@ -20,21 +20,21 @@ approval_rules:
       allow_contributor: false
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: two admins have approved
     options:
       allow_contributor: true
     requires:
       count: 2
-      admins: true
+      permissions: ["admin", "maintain"]
 
   - name: changelog only and contributor approval
     options:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       only_changed_files:
         paths:
@@ -45,7 +45,7 @@ approval_rules:
       allow_contributor: true
     requires:
       count: 1
-      admins: true
+      permissions: ["admin", "maintain"]
     if:
       has_author_in:
         users: [ "svc-excavator-bot" ]u}(j (c8f5ec6d41d45b1db43cb98d871dd8aaff4fbe06j
 atlasdb-buggify/build.gradlej addedj Kj K j Kj phttps://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-buggify%2Fbuild.gradlej ohttps://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-buggify%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fbuild.gradle?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X`  @@ -0,0 +1,12 @@
+
+apply from: "../gradle/shared.gradle"
+
+dependencies {
+    implementation 'com.google.guava:guava'
+    testImplementation 'junit:junit'
+    testImplementation 'org.assertj:assertj-core'
+    testImplementation('org.jmock:jmock') {
+      exclude group: 'org.hamcrest'
+    }
+    testImplementation 'org.mockito:mockito-core'
+}u}(j (8fce620da2473d4f99412b1eafb18c42c9b4a1d2j
 Katlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/Buggify.javaj addedj K'j K j K'j https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggify.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X5  @@ -0,0 +1,39 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+/**
+ * Instances of this class could vary in implementation, such that they may perform no action {@link com.palantir.atlasdb.buggify.impl.NoOpBuggify} or
+ * always perform the action {@link com.palantir.atlasdb.buggify.impl.DefaultBuggify}. The idea here is that a
+ * downstream users of this class can easily swap out their {@link BuggifyFactory} to change the behavior of their
+ * class, without having to change the implementation of their class. This is useful for tests, as we can force the
+ * behavior of never running the provided runnable, or always running the provided runnable.
+ *
+ * See https://apple.github.io/foundationdb/client-testing.html for more information.
+ */
+public interface Buggify {
+    /**
+     * Maybe runs the provided runnable, depending on the instance of the class.
+     */
+    void run(Runnable runnable);
+
+    /**
+     * Returns true if this instance of buggify would perform an action if {@link #run Run} would execute the
+     * provided runnable. This is useful if you wish to produce a boolean that will be skewed towards true or false.
+     */
+    boolean asBoolean();
+}u}(j (0ed48b1c56bc0efc8ac5be656900e3c3a38c67faj
 Ratlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/api/BuggifyFactory.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fapi%2FBuggifyFactory.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej Xy  @@ -0,0 +1,24 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.api;
+
+public interface BuggifyFactory {
+    /**
+     * The probability of returning a buggify instance which performs actions.
+     */
+    Buggify maybe(double probability);
+}u}(j (bf47a2abcceffe92e42715b2377315e57a40f763j
 Satlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggify.javaj addedj K!j K j K!j https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+
+public enum DefaultBuggify implements Buggify {
+    INSTANCE;
+
+    @Override
+    public void run(Runnable runnable) {
+        runnable.run();
+    }
+
+    @Override
+    public boolean asBoolean() {
+        return true;
+    }
+}u}(j (c3bbf92469d211a6ab5bde05cefaaba784549d49j
 Zatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactory.javaj addedj K/j K j K/j https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactory.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -0,0 +1,47 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import java.security.SecureRandom;
+import java.util.function.DoubleSupplier;
+
+public final class DefaultBuggifyFactory implements BuggifyFactory {
+    private static final SecureRandom SECURE_RANDOM = new SecureRandom();
+    public static final BuggifyFactory INSTANCE = new DefaultBuggifyFactory();
+
+    private final DoubleSupplier doubleSupplier;
+
+    @VisibleForTesting
+    DefaultBuggifyFactory(DoubleSupplier doubleSupplier) {
+        this.doubleSupplier = doubleSupplier;
+    }
+
+    private DefaultBuggifyFactory() {
+        this(SECURE_RANDOM::nextDouble);
+    }
+
+    @Override
+    public Buggify maybe(double probability) {
+        if (doubleSupplier.getAsDouble() < probability) {
+            return DefaultBuggify.INSTANCE;
+        }
+        return NoOpBuggify.INSTANCE;
+    }
+}u}(j (7ffdf499b3babaa3d0997abc88e28cb57de2aa01j
 Patlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggify.javaj addedj K!j K j K!j https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -0,0 +1,33 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+
+public enum NoOpBuggify implements Buggify {
+    INSTANCE;
+
+    @Override
+    public void run(Runnable _runnable) {
+        // do nothing
+    }
+
+    @Override
+    public boolean asBoolean() {
+        return false;
+    }
+}u}(j (2f200762a9c587bece4b4f26652a9d0c930bba0ej
 ^atlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyFactoryTest.javaj addedj K,j K j K,j https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyFactoryTest.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X%  @@ -0,0 +1,44 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import org.junit.Test;
+
+public class DefaultBuggifyFactoryTest {
+
+    @Test
+    public void maybeReturnsDefaultWhenMaxProbability() {
+        assertThat(DefaultBuggifyFactory.INSTANCE.maybe(1.0)).isSameAs(DefaultBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsNoOpWhenNeverProbability() {
+        assertThat(DefaultBuggifyFactory.INSTANCE.maybe(0.0)).isSameAs(NoOpBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsNoOpWhenBelowOrEqualToProbability() {
+        assertThat(new DefaultBuggifyFactory(() -> 0.50).maybe(0.50)).isSameAs(NoOpBuggify.INSTANCE);
+    }
+
+    @Test
+    public void maybeReturnsDefaultWhenAboveProbability() {
+        assertThat(new DefaultBuggifyFactory(() -> 0.49).maybe(0.50)).isSameAs(DefaultBuggify.INSTANCE);
+    }
+}u}(j (28a8b18ae59b101e1489b1e086bbac7d63318767j
 Watlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/DefaultBuggifyTest.javaj addedj K%j K j K%j https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggifyTest.java?ref=9a8f11015988463652e004e8f320e61f66c0a6de      j X  @@ -0,0 +1,37 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.verify;
+
+import org.junit.Test;
+
+public class DefaultBuggifyTest {
+    @Test
+    public void runAlwaysExecutes() {
+        Runnable runnable = mock(Runnable.class);
+        DefaultBuggify.INSTANCE.run(runnable);
+        verify(runnable).run();
+    }
+
+    @Test
+    public void asBooleanReturnsTrue() {
+        assertThat(DefaultBuggify.INSTANCE.asBoolean()).isTrue();
+    }
+}u}(j (c6d5d05237311ecd06793772e3b673f5836c8896j
 Tatlasdb-buggify/src/test/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyTest.javaj addedj K&j K j K&j https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyTest.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -0,0 +1,38 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.never;
+import static org.mockito.Mockito.verify;
+
+import org.junit.Test;
+
+public class NoOpBuggifyTest {
+    @Test
+    public void runNeverExecutes() {
+        Runnable runnable = mock(Runnable.class);
+        NoOpBuggify.INSTANCE.run(runnable);
+        verify(runnable, never()).run();
+    }
+
+    @Test
+    public void asBooleanReturnsFalse() {
+        assertThat(NoOpBuggify.INSTANCE.asBoolean()).isFalse();
+    }
+}u}(j (a1974a0a70f2e9dc1483e8b6fcc59cc3a141917bj
 batlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javaj modifiedj K	j K	j Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X	  @@ -17,7 +17,6 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
-import com.google.common.collect.FluentIterable;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableRangeMap;
@@ -62,13 +61,13 @@
 import java.util.Comparator;
 import java.util.HashMap;
 import java.util.HashSet;
-import java.util.Iterator;
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
 import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Optional;
+import java.util.PrimitiveIterator.OfInt;
 import java.util.Random;
 import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
@@ -77,6 +76,7 @@
 import java.util.function.Predicate;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import java.util.stream.Stream;
 import org.apache.cassandra.thrift.EndpointDetails;
 import org.apache.cassandra.thrift.TokenRange;
@@ -306,16 +306,16 @@ private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) th
     }
 
     private int getKnownPort() throws UnknownHostException {
-        // explicitly not using streams due to allocation overhead
-        return onlyPort(FluentIterable.concat(
-                        FluentIterable.from(currentPools.keySet()).transform(CassandraServer::proxy),
-                        getServersSocketAddressesFromConfig())
-                .transform(InetSocketAddress::getPort));
+        // Avoid allocations and intermediate collection as this is on hot path
+        return only(Stream.concat(
+                        currentPools.keySet().stream().map(CassandraServer::proxy),
+                        getServersSocketAddressesFromConfig().stream())
+                .mapToInt(InetSocketAddress::getPort));
     }
 
     @VisibleForTesting
-    static int onlyPort(Iterable<? extends Integer> iterable) throws UnknownHostException {
-        Iterator<? extends Integer> iterator = iterable.iterator();
+    static int only(IntStream intStream) throws UnknownHostException {
+        OfInt iterator = intStream.iterator();
         if (!iterator.hasNext()) {
             throw new UnknownHostException("No single known port");
         }u}(j (ea93d4225293149bfc275c742ea245b6b263274fj
 fatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraServiceTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -33,7 +33,6 @@
 import com.palantir.refreshable.Refreshable;
 import java.net.InetSocketAddress;
 import java.net.UnknownHostException;
-import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.ThreadLocalRandom;
@@ -272,12 +271,10 @@ public void getRandomHostByActiveConnectionsReturnsDesiredHost() {
 
     @Test
     public void ports() throws Exception {
-        assertThat(CassandraService.onlyPort(List.of(1, 1, 1))).isEqualTo(1);
-        assertThat(IntStream.generate(() -> 4224).boxed().limit(15).collect(Collectors.toList()))
-                .hasSize(15)
-                .satisfies(cluster ->
-                        assertThat(CassandraService.onlyPort(cluster)).isEqualTo(4224));
-        assertThatThrownBy(() -> CassandraService.onlyPort(List.of(1, 2, 1)))
+        assertThat(CassandraService.only(IntStream.of(1, 1, 1))).isEqualTo(1);
+        assertThat(CassandraService.only(IntStream.generate(() -> 4224).limit(15)))
+                .isEqualTo(4224);
+        assertThatThrownBy(() -> CassandraService.only(IntStream.of(1, 2, 1)))
                 .isInstanceOf(UnknownHostException.class)
                 .hasMessageContaining("No single known port");
     }u}(j (873fe01fb2bcd122671ed8446a4741d208fbfa02j
 katlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/AdvisoryLockConditionSuppliers.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FAdvisoryLockConditionSuppliers.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -79,10 +79,13 @@ private static HeldLocksToken acquireLock(LockService lockService, LockRequest l
                     case BLOCK_UNTIL_TIMEOUT:
                     case BLOCK_INDEFINITELY:
                     case BLOCK_INDEFINITELY_THEN_RELEASE:
-                        log.warn("Could not lock successfully", ex);
                         ++failureCount;
+                        log.warn("Could not lock successfully", SafeArg.of("failureCount", failureCount), ex);
                         if (failureCount >= NUM_RETRIES) {
-                            log.warn("Failing after {} tries", SafeArg.of("failureCount", failureCount), ex);
+                            log.warn(
+                                    "Failing after exceeding maximum tries",
+                                    SafeArg.of("failureCount", failureCount),
+                                    ex);
                             throw ex;
                         }
                         break;u}(j (b7485353a77f6bf0cd6c937bff58416577e13b1dj
 (atlasdb-workload-server-api/build.gradlej modifiedj Kj K j Kj |https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-api%2Fbuild.gradlej {https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-api%2Fbuild.gradlej https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fbuild.gradle?ref=9a8f11015988463652e004e8f320e61f66c0a6dej @@ -13,4 +13,5 @@ dependencies {
     annotationProcessor 'org.immutables:value'
 
     testImplementation 'com.palantir.safe-logging:preconditions-assertj'
+    testImplementation 'org.mockito:mockito-core'
 }
\ No newline at end of fileu}(j (72396cbd183a5589ac7b3cf6593e07b9c5de2fd0j
 katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/ReadableTransactionStore.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadableTransactionStore.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej XY  @@ -28,4 +28,9 @@ public interface ReadableTransactionStore {
      * @return The value of the cell for a given table.
      */
     Optional<Integer> get(String table, WorkloadCell cell);
+
+    /**
+     * Checks whether the transaction with the provided startTimestamp has committed.
+     */
+    boolean isCommitted(long startTimestamp);
 }u}(j (9a3b7a7060c8f72d6a97bc2c347571b698b81c47j
 jatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TransactionStoreFactory.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTransactionStoreFactory.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -22,6 +22,6 @@
 /**
  * Creates transaction stores of a certain type which are bounded to the provided tables/indexes.
  */
-public interface TransactionStoreFactory {
-    TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
+public interface TransactionStoreFactory<T extends TransactionStore> {
+    T create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes);
 }u}(j (574a86c53458c2bbb5f43c19c269eb2ee52679c7j
 |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/FullyWitnessedTransaction.javaj addedj K"j K j K"j https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FFullyWitnessedTransaction.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we know for certain we've witnessed.
+ */
+@Value.Immutable
+public interface FullyWitnessedTransaction extends WitnessedTransaction {
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableFullyWitnessedTransaction.Builder builder() {
+        return ImmutableFullyWitnessedTransaction.builder();
+    }
+}u}(j (5a66280426c78d83ed7001fc4ee1aebb894f7578j
 |atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransaction.javaj addedj K4j K j K4j https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransaction.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -0,0 +1,52 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.logsafe.Preconditions;
+import org.immutables.value.Value;
+
+/**
+ * For transactions that we witnessed, but are in a state which we are
+ * unsure if they have committed or not due to failures.
+ */
+@Value.Immutable
+public interface MaybeWitnessedTransaction extends WitnessedTransaction {
+    @Value.Check
+    default void check() {
+        Preconditions.checkArgument(
+                commitTimestamp().isPresent(),
+                "Given how the transaction protocol works, a transaction for which we haven't retrieved the commit "
+                        + "timestamp has not written anything of significance to the database");
+    }
+
+    @Override
+    default <T> T accept(WitnessedTransactionVisitor<T> visitor) {
+        return visitor.visit(this);
+    }
+
+    static ImmutableMaybeWitnessedTransaction.Builder builder() {
+        return ImmutableMaybeWitnessedTransaction.builder();
+    }
+
+    default FullyWitnessedTransaction toFullyWitnessed() {
+        return FullyWitnessedTransaction.builder()
+                .startTimestamp(startTimestamp())
+                .commitTimestamp(commitTimestamp())
+                .actions(actions())
+                .build();
+    }
+}u}(j (525e82582d3affac4608bebfe366141f3088a716j
 watlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransaction.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransaction.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X
  @@ -18,9 +18,7 @@
 
 import java.util.List;
 import java.util.Optional;
-import org.immutables.value.Value;
 
-@Value.Immutable
 public interface WitnessedTransaction {
     /** Start timestamp of the transaction. */
     long startTimestamp();
@@ -30,4 +28,6 @@ public interface WitnessedTransaction {
 
     /** Provides an in-order list of actions that were performed during the transaction's execution. */
     List<WitnessedTransactionAction> actions();
+
+    <T> T accept(WitnessedTransactionVisitor<T> visitor);
 }u}(j (33682bf649e7b87408367a7f23d4995c94c96d98j
 ~atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/WitnessedTransactionVisitor.javaj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FWitnessedTransactionVisitor.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -0,0 +1,23 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+public interface WitnessedTransactionVisitor<T> {
+    T visit(FullyWitnessedTransaction witnessedTransaction);
+
+    T visit(MaybeWitnessedTransaction maybeWitnessedTransaction);
+}u}(j (47b4109802a3529a585cdba06bb50cbe3fb2a098j
 katlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowConfiguration.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowConfiguration.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -17,8 +17,19 @@
 package com.palantir.atlasdb.workload.workflow;
 
 import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import org.immutables.value.Value;
 
 @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
 public interface WorkflowConfiguration {
     int iterationCount();
+
+    @Value.Default
+    default double rateLimit() {
+        return 100;
+    }
+
+    @Value.Default
+    default Integer maxThreadCount() {
+        return 100;
+    }
 }u}(j (ffbc895344923f90f2a9fbedaca2f32929339b6cj
 eatlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/workflow/WorkflowHistory.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FWorkflowHistory.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -26,5 +26,10 @@ public interface WorkflowHistory {
     // We may want to query the KVS during verification.
     ReadableTransactionStore transactionStore();
 
+    /**
+     * TODO: This should only be a list of
+     * {@link com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction} rather than the general
+     * purpose type.
+     */
     List<WitnessedTransaction> history();
 }u}(j (98c826c9208fca80e3a6f1f1efcf8240c030d9ffj
 atlasdb-workload-server-api/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/MaybeWitnessedTransactionTest.javaj addedj KDj K j KDj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FMaybeWitnessedTransactionTest.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X\  @@ -0,0 +1,68 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static com.palantir.logsafe.testing.Assertions.assertThatLoggableExceptionThrownBy;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThatCode;
+import static org.mockito.Mockito.mock;
+
+import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
+import java.util.List;
+import org.junit.Test;
+
+public class MaybeWitnessedTransactionTest {
+
+    private static final Long START_TIMESTAMP = 100L;
+    private static final Long COMMIT_TIMESTAMP = 200L;
+
+    @Test
+    public void throwsWhenCommitTimestampIsNotPresentOnCreation() {
+        assertThatLoggableExceptionThrownBy(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .build())
+                .isInstanceOf(SafeIllegalArgumentException.class)
+                .hasMessageContaining(
+                        "Given how the transaction protocol works, a transaction for which we haven't retrieved the"
+                                + " commit timestamp");
+    }
+
+    @Test
+    public void doesNotThrowWhenCommitTimestampPresentOnCreation() {
+        assertThatCode(() -> MaybeWitnessedTransaction.builder()
+                        .startTimestamp(START_TIMESTAMP)
+                        .commitTimestamp(COMMIT_TIMESTAMP)
+                        .build())
+                .doesNotThrowAnyException();
+    }
+
+    @Test
+    public void toFullyWitnessedCopiesArgumentsCorrectly() {
+        WitnessedWriteTransactionAction writeTransactionAction = mock(WitnessedWriteTransactionAction.class);
+        WitnessedReadTransactionAction readTransactionAction = mock(WitnessedReadTransactionAction.class);
+        List<WitnessedTransactionAction> actions = List.of(readTransactionAction, writeTransactionAction);
+        FullyWitnessedTransaction fullyWitnessedTransaction = MaybeWitnessedTransaction.builder()
+                .startTimestamp(START_TIMESTAMP)
+                .commitTimestamp(COMMIT_TIMESTAMP)
+                .actions(actions)
+                .build()
+                .toFullyWitnessed();
+        assertThat(fullyWitnessedTransaction.startTimestamp()).isEqualTo(START_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.commitTimestamp()).contains(COMMIT_TIMESTAMP);
+        assertThat(fullyWitnessedTransaction.actions()).containsExactlyElementsOf(actions);
+    }
+}u}(j (657030222c223cabc3af02a6cfa9a51829ab3112j
 latlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javaj modifiedj K j Kj K(j https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -29,11 +29,14 @@
 import com.palantir.atlasdb.workload.invariant.SerializableInvariantLogReporter;
 import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflows;
 import com.palantir.atlasdb.workload.workflow.Workflow;
 import com.palantir.atlasdb.workload.workflow.WorkflowAndInvariants;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflows;
 import com.palantir.conjure.java.api.config.service.UserAgent;
 import com.palantir.conjure.java.api.config.service.UserAgent.Agent;
 import com.palantir.conjure.java.serialization.ObjectMappers;
@@ -95,12 +98,17 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 Refreshable.only(configuration.runtime().atlas()),
                 USER_AGENT,
                 metricsManager);
-        SingleRowTwoCellsWorkflowConfiguration workflowConfig =
+        SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig =
                 configuration.install().singleRowTwoCellsConfig();
+        RingWorkflowConfiguration ringWorkflowConfiguration =
+                configuration.install().ringConfig();
 
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
-                .run(createSingleRowTwoCellsWorkflowValidator(
-                        transactionStoreFactory, workflowConfig, environment.lifecycle()));
+                .run(
+                        createSingleRowTwoCellsWorkflowValidator(
+                                transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
+                        createRingWorkflowValidator(
+                                transactionStoreFactory, ringWorkflowConfiguration, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -111,12 +119,30 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         }
     }
 
+    private WorkflowAndInvariants<Workflow> createRingWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            RingWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService = lifecycle
+                .executorService(RingWorkflows.class.getSimpleName())
+                .maxThreads(workflowConfig.maxThreadCount())
+                .build();
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.of(RingWorkflows.create(
+                transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)));
+    }
+
     private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator(
             AtlasDbTransactionStoreFactory transactionStoreFactory,
             SingleRowTwoCellsWorkflowConfiguration workflowConfig,
             LifecycleEnvironment lifecycle) {
-        ExecutorService singleRowTwoCellsExecutorService = lifecycle
-                .executorService(SingleRowTwoCellsWorkflows.class.getSimpleName())
+        ExecutorService executorService = lifecycle
+                .executorService(RingWorkflows.class.getSimpleName())
+                .maxThreads(workflowConfig.maxThreadCount())
                 .build();
         TransactionStore transactionStore = transactionStoreFactory.create(
                 Map.of(
@@ -125,9 +151,7 @@ private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator
                 Set.of());
         return WorkflowAndInvariants.builder()
                 .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
-                        transactionStore,
-                        workflowConfig,
-                        MoreExecutors.listeningDecorator(singleRowTwoCellsExecutorService)))
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
                 .addInvariantReporters(new DurableWritesInvariantMetricReporter(
                         SingleRowTwoCellsWorkflows.class.getSimpleName(),
                         DurableWritesMetrics.of(taggedMetricRegistry)))u}(j (899459cdb3b709b73bdaa6f88501e36e980580c8j
 atlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/config/WorkloadServerInstallConfiguration.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fconfig%2FWorkloadServerInstallConfiguration.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -20,6 +20,7 @@
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.palantir.atlasdb.config.AtlasDbConfig;
 import com.palantir.atlasdb.workload.workflow.SingleRowTwoCellsWorkflowConfiguration;
+import com.palantir.atlasdb.workload.workflow.ring.RingWorkflowConfiguration;
 import org.immutables.value.Value;
 
 @JsonDeserialize(as = ImmutableWorkloadServerInstallConfiguration.class)
@@ -30,5 +31,7 @@ public interface WorkloadServerInstallConfiguration {
 
     SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig();
 
+    RingWorkflowConfiguration ringConfig();
+
     boolean exitAfterRunning();
 }u}(j (b92811220a5a77616324333bfc9e02b6ac0ca989j
 Katlasdb-workload-server-distribution/src/test/resources/workload-server.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Ftest%2Fresources%2Fworkload-server.yml?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X=  @@ -10,4 +10,10 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
   exitAfterRunning: false
\ No newline at end of fileu}(j (d30bb12eccd163f3ff27a1f16336e27031b0e847j
 Tatlasdb-workload-server-distribution/var/conf/workload-server.timelock.cassandra.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.timelock.cassandra.yml?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X   @@ -45,4 +45,10 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring_test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
   exitAfterRunning: trueu}(j (f0ef6a7b2a2ff03f260d5e5b1a833d0f4a509161j
 Aatlasdb-workload-server-distribution/var/conf/workload-server.ymlj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.ymlj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fvar%2Fconf%2Fworkload-server.yml?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X<  @@ -10,4 +10,10 @@ install:
       isolationLevel: SERIALIZABLE
     iterationCount: 100
     type: singleRowTwoCells
+  ringConfig:
+    tableConfiguration:
+      tableName: ring-test
+      isolationLevel: SERIALIZABLE
+    iterationCount: 100
+    type: ring
   exitAfterRunning: true
\ No newline at end of fileu}(j (6871e6633db3c7f6293f93c4496e8f449116f688j
 fatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStore.javaj modifiedj K'j Kj K3j https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStore.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X(  @@ -21,16 +21,20 @@
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.transaction.api.PreCommitCondition;
 import com.palantir.atlasdb.transaction.api.Transaction;
+import com.palantir.atlasdb.transaction.api.TransactionCommitFailedException;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.service.TransactionStatus;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -63,6 +67,13 @@ public Optional<Integer> get(String table, WorkloadCell cell) {
                 transaction -> new AtlasDbInteractiveTransaction(transaction, tables).read(table, cell));
     }
 
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return TransactionStatus.getCommitTimestamp(
+                        transactionManager.getTransactionService().getV2(startTimestamp))
+                .isPresent();
+    }
+
     @Override
     public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions) {
         return readWrite(txn -> {
@@ -74,23 +85,26 @@ public Optional<WitnessedTransaction> readWrite(List<TransactionAction> actions)
     @Override
     public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction> interactiveTransactionConsumer) {
         AtomicReference<List<WitnessedTransactionAction>> witnessedActionsReference = new AtomicReference<>();
+        AtomicReference<Transaction> transactionReference = new AtomicReference<>();
         Supplier<CommitTimestampProvider> commitTimestampProvider =
                 Suppliers.memoize(() -> new CommitTimestampProvider());
         try {
-            Transaction transaction =
-                    transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
-                        AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
-                                new AtlasDbInteractiveTransaction(txn, tables);
-                        interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
-                        witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
-                        return txn;
-                    });
+            transactionManager.runTaskWithConditionWithRetry(commitTimestampProvider, (txn, _condition) -> {
+                transactionReference.set(txn);
+                AtlasDbInteractiveTransaction atlasDbInteractiveTransaction =
+                        new AtlasDbInteractiveTransaction(txn, tables);
+                interactiveTransactionConsumer.accept(atlasDbInteractiveTransaction);
+                witnessedActionsReference.set(atlasDbInteractiveTransaction.witness());
+                return null;
+            });
+
+            Transaction transaction = transactionReference.get();
 
             if (transaction.isAborted()) {
                 return Optional.empty();
             }
 
-            return Optional.of(ImmutableWitnessedTransaction.builder()
+            return Optional.of(FullyWitnessedTransaction.builder()
                     .startTimestamp(transaction.getTimestamp())
                     .commitTimestamp(commitTimestampProvider
                             .get()
@@ -99,9 +113,22 @@ public Optional<WitnessedTransaction> readWrite(Consumer<InteractiveTransaction>
                     .build());
         } catch (SafeIllegalArgumentException e) {
             throw e;
+        } catch (TransactionCommitFailedException e) {
+            Transaction transaction = transactionReference.get();
+            return Optional.of(MaybeWitnessedTransaction.builder()
+                    .startTimestamp(transaction.getTimestamp())
+                    .commitTimestamp(commitTimestampProvider
+                            .get()
+                            .getCommitTimestampOrThrowIfMaybeNotCommitted(transaction.getTimestamp()))
+                    .actions(witnessedActionsReference.get())
+                    .build());
         } catch (Exception e) {
-            // TODO: Need to eventually handle PuE exceptions, as they could've succeeded in committing.
-            log.info("Failed to record transaction due to an exception", e);
+            Optional<Long> startTimestamp =
+                    Optional.ofNullable(transactionReference.get()).map(Transaction::getTimestamp);
+            log.info(
+                    "Failed to record transaction due to an exception for startTimestamp {}",
+                    SafeArg.of("startTimestamp", startTimestamp),
+                    e);
             return Optional.empty();
         }
     }u}(j (6c1f4a7a8436891c6ea5ad47054652ed82549811j
 matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej XW  @@ -39,7 +39,7 @@
 import one.util.streamex.EntryStream;
 import one.util.streamex.StreamEx;
 
-public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory {
+public final class AtlasDbTransactionStoreFactory implements TransactionStoreFactory<InteractiveTransactionStore> {
 
     private final TransactionManager transactionManager;
     private final Optional<Namespace> maybeNamespace;
@@ -50,7 +50,7 @@ public AtlasDbTransactionStoreFactory(TransactionManager transactionManager, Opt
     }
 
     @Override
-    public TransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
+    public InteractiveTransactionStore create(Map<String, IsolationLevel> tables, Set<IndexTable> indexes) {
         return AtlasDbTransactionStore.create(transactionManager, toAtlasTables(tables, indexes));
     }
 u}(j (cb6dfce8a01b80d7f3c5368970de60190ce81ddcj
 gatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/ReadOnlyTransactionStore.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FReadOnlyTransactionStore.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej XU  @@ -33,4 +33,9 @@ public ReadOnlyTransactionStore(ReadableTransactionStore delegate) {
     public Optional<Integer> get(String table, WorkloadCell cell) {
         return delegate.get(table, cell);
     }
+
+    @Override
+    public boolean isCommitted(long startTimestamp) {
+        return delegate.isCommitted(startTimestamp);
+    }
 }u}(j (0ba18e00eabc917a1fd7025d0f9113112c9b8615j
 atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitor.javaj addedj K*j K j K*j https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitor.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -0,0 +1,42 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import java.util.Optional;
+
+public final class OnlyCommittedWitnessedTransactionVisitor
+        implements WitnessedTransactionVisitor<Optional<FullyWitnessedTransaction>> {
+
+    private final ReadOnlyTransactionStore readOnlyTransactionStore;
+
+    public OnlyCommittedWitnessedTransactionVisitor(ReadOnlyTransactionStore readOnlyTransactionStore) {
+        this.readOnlyTransactionStore = readOnlyTransactionStore;
+    }
+
+    @Override
+    public Optional<FullyWitnessedTransaction> visit(FullyWitnessedTransaction witnessedTransaction) {
+        return Optional.of(witnessedTransaction);
+    }
+
+    @Override
+    public Optional<FullyWitnessedTransaction> visit(MaybeWitnessedTransaction maybeWitnessedTransaction) {
+        return readOnlyTransactionStore.isCommitted(maybeWitnessedTransaction.startTimestamp())
+                ? Optional.of(maybeWitnessedTransaction.toFullyWitnessed())
+                : Optional.empty();
+    }
+}u}(j (54b290f2339c2518740eb0ba35e08de26406b945j
 aatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflow.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflow.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X
  @@ -20,13 +20,15 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.OnlyCommittedWitnessedTransactionVisitor;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.logsafe.exceptions.SafeRuntimeException;
 import java.util.Comparator;
 import java.util.List;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
-import java.util.stream.Collectors;
+import one.util.streamex.StreamEx;
 
 public final class DefaultWorkflow<T extends TransactionStore> implements Workflow {
     private final ConcurrentTransactionRunner<T> concurrentTransactionRunner;
@@ -45,7 +47,7 @@ private DefaultWorkflow(
         this.readOnlyTransactionStore = readOnlyTransactionStore;
     }
 
-    public static <T extends TransactionStore> Workflow create(
+    public static <T extends TransactionStore> DefaultWorkflow<T> create(
             T store,
             KeyedTransactionTask<T> transactionTask,
             WorkflowConfiguration configuration,
@@ -60,7 +62,7 @@ public static <T extends TransactionStore> Workflow create(
     @Override
     public WorkflowHistory run() {
         return ImmutableWorkflowHistory.builder()
-                .history(sortByEffectiveTimestamp(runTransactionTask()))
+                .history(sortAndFilterTransactions(runTransactionTask()))
                 .transactionStore(readOnlyTransactionStore)
                 .build();
     }
@@ -79,11 +81,17 @@ private List<WitnessedTransaction> runTransactionTask() {
         }
     }
 
+    /**
+     * Sorts transactions by their effective timestamp and filters out transactions that are not fully committed.
+     */
     @VisibleForTesting
-    static List<WitnessedTransaction> sortByEffectiveTimestamp(List<WitnessedTransaction> unorderedTransactions) {
-        return unorderedTransactions.stream()
+    List<FullyWitnessedTransaction> sortAndFilterTransactions(List<WitnessedTransaction> unorderedTransactions) {
+        OnlyCommittedWitnessedTransactionVisitor visitor =
+                new OnlyCommittedWitnessedTransactionVisitor(readOnlyTransactionStore);
+        return StreamEx.of(unorderedTransactions)
+                .mapPartial(transaction -> transaction.accept(visitor))
                 .sorted(Comparator.comparingLong(DefaultWorkflow::effectiveTimestamp))
-                .collect(Collectors.toList());
+                .toList();
     }
 
     private static long effectiveTimestamp(WitnessedTransaction witnessedTransaction) {u}(j (caadf187b4d5e22652f2a830ce77923c1b876143j
 xatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowConfiguration.javaj modifiedj K j Kj Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowConfiguration.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X_  @@ -31,11 +31,6 @@ public interface SingleRowTwoCellsWorkflowConfiguration extends WorkflowConfigur
 
     TableConfiguration tableConfiguration();
 
-    @Value.Default
-    default double rateLimit() {
-        return 100;
-    }
-
     @Value.Lazy
     default RateLimiter transactionRateLimiter() {
         return RateLimiter.create(rateLimit());u}(j (8db9245638b72b40f73f9ae3c427c4ccb2c69053j
 patlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflowConfiguration.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflowConfiguration.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -20,14 +20,13 @@
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.google.common.util.concurrent.RateLimiter;
-import com.palantir.atlasdb.workload.workflow.ImmutableSingleRowTwoCellsWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.TableConfiguration;
 import com.palantir.atlasdb.workload.workflow.WorkflowConfiguration;
 import org.immutables.value.Value;
 
 @Value.Immutable
-@JsonSerialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
-@JsonDeserialize(as = ImmutableSingleRowTwoCellsWorkflowConfiguration.class)
+@JsonSerialize(as = ImmutableRingWorkflowConfiguration.class)
+@JsonDeserialize(as = ImmutableRingWorkflowConfiguration.class)
 @JsonTypeName(RingWorkflowConfiguration.TYPE)
 public interface RingWorkflowConfiguration extends WorkflowConfiguration {
     String TYPE = "ring";
@@ -38,11 +37,6 @@ default Integer ringSize() {
         return 3;
     }
 
-    @Value.Default
-    default double rateLimit() {
-        return 100;
-    }
-
     @Value.Lazy
     default RateLimiter transactionRateLimiter() {
         return RateLimiter.create(rateLimit());u}(j (b786a95bef1effb5bd44f53eed786d588b38a9b0j
 datlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/ring/RingWorkflows.javaj modifiedj K
j K j K
j https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fring%2FRingWorkflows.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -51,6 +51,19 @@ private RingWorkflows() {
     }
 
     public static Workflow create(
+            InteractiveTransactionStore store,
+            RingWorkflowConfiguration ringWorkflowConfiguration,
+            ListeningExecutorService executionExecutor) {
+        AtomicBoolean skipRunning = new AtomicBoolean(false);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> run(txnStore, ringWorkflowConfiguration, skipRunning),
+                ringWorkflowConfiguration,
+                executionExecutor);
+    }
+
+    @VisibleForTesting
+    static Workflow create(
             InteractiveTransactionStore store,
             RingWorkflowConfiguration ringWorkflowConfiguration,
             ListeningExecutorService executionExecutor,u}(j (3d12ec12a07e0b90193451a34a6dccfcfa6f8e76j
 {atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantMetricReporterTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantMetricReporterTest.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -25,7 +25,7 @@
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.transaction.WorkloadTestHelpers;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import com.palantir.atlasdb.workload.workflow.ImmutableWorkflowHistory;
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
@@ -60,7 +60,7 @@ public void runIncreasesMetricsIfViolationsFound() {
                         .build()));
         WorkflowHistory workflowHistory = ImmutableWorkflowHistory.builder()
                 .transactionStore(store)
-                .history(List.of(ImmutableWitnessedTransaction.builder()
+                .history(List.of(FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(u}(j (39cc7f77a28bd84fc271bbca23d8e9195abf6fd6j
 matlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariantTest.javaj modifiedj Kj Kj K
j https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariantTest.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X
  @@ -29,7 +29,7 @@
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
@@ -59,12 +59,12 @@ public void before() {
     public void cellsExpectedToBeDeletedAreFound() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)
@@ -86,12 +86,12 @@ public void cellsExpectedToBeDeletedAreFound() {
     public void cellsThatDoNotMatchAreFoundAndMatchingAreIgnored() {
         AtomicReference<Map<TableAndWorkloadCell, MismatchedValue>> mismatchingCells = new AtomicReference<>();
         List<WitnessedTransaction> witnessedTransactions = List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
                         .startTimestamp(3)
                         .commitTimestamp(4)u]#     }(j (398677d5ff242f5cee92de9c2737a0843621c59dj
 watlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/invariant/SerializableInvariantLogReporterTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSerializableInvariantLogReporterTest.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -19,7 +19,7 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.InvalidWitnessedTransaction;
 import java.util.List;
 import org.junit.Test;
@@ -35,7 +35,7 @@ public void consumerDoesNotThrowWhenAcceptingViolations() {
         assertThatCode(() -> SerializableInvariantLogReporter.INSTANCE
                         .consumer()
                         .accept(List.of(InvalidWitnessedTransaction.of(
-                                ImmutableWitnessedTransaction.builder()
+                                FullyWitnessedTransaction.builder()
                                         .startTimestamp(1)
                                         .build(),
                                 List.of()))))u}(j (5ec56f77b39005e45c63e6495f68b817646fecc6j
 jatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreTest.javaj modifiedj K&j K j K&j https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreTest.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -28,22 +28,28 @@
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
 import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.doAnswer;
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
 
 import com.google.common.collect.Iterables;
+import com.google.common.primitives.Ints;
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.keyvalue.api.KeyValueService;
+import com.palantir.atlasdb.transaction.api.ConditionAwareTransactionTask;
 import com.palantir.atlasdb.transaction.api.ConflictHandler;
 import com.palantir.atlasdb.transaction.api.Transaction;
 import com.palantir.atlasdb.transaction.api.TransactionManager;
+import com.palantir.atlasdb.transaction.encoding.V1EncodingStrategy;
+import com.palantir.atlasdb.transaction.impl.TransactionConstants;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore.CommitTimestampProvider;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.WitnessToActionVisitor;
 import com.palantir.atlasdb.workload.transaction.WriteTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
@@ -162,6 +168,38 @@ public void abortedTransactionsReturnEmpty() {
                 .isEmpty();
     }
 
+    @Test
+    public void keyAlreadyExistExceptionResultsInMaybeWitnessedTransaction() {
+        WriteTransactionAction writeTransactionAction =
+                WriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE);
+        TransactionManager keyAlreadyExistsExceptionThrowingStore = spy(manager);
+        doAnswer(invocation -> {
+                    Supplier<CommitTimestampProvider> commitTimestampFetcher = invocation.getArgument(0);
+                    ConditionAwareTransactionTask<Void, CommitTimestampProvider, Exception> task =
+                            invocation.getArgument(1);
+                    return manager.runTaskWithConditionWithRetry(commitTimestampFetcher, (txn, condition) -> {
+                        manager.getKeyValueService()
+                                .putUnlessExists(
+                                        TransactionConstants.TRANSACTION_TABLE,
+                                        Map.of(
+                                                V1EncodingStrategy.INSTANCE.encodeStartTimestampAsCell(
+                                                        txn.getTimestamp()),
+                                                Ints.toByteArray(-1)));
+                        task.execute(txn, condition);
+                        return null;
+                    });
+                })
+                .when(keyAlreadyExistsExceptionThrowingStore)
+                .runTaskWithConditionWithRetry(any(Supplier.class), any());
+        AtlasDbTransactionStore onlyKeyAlreadyExistsThrowingStore =
+                AtlasDbTransactionStore.create(keyAlreadyExistsExceptionThrowingStore, TABLES_TO_ATLAS_METADATA);
+        assertThat(onlyKeyAlreadyExistsThrowingStore.readWrite(List.of(writeTransactionAction)))
+                .hasValueSatisfying(witnessedTransaction -> {
+                    assertThat(witnessedTransaction).isInstanceOf(MaybeWitnessedTransaction.class);
+                    assertThat(witnessedTransaction.actions()).containsExactly(writeTransactionAction.witness());
+                });
+    }
+
     @Test
     public void getCommitTimestampIsEmptyWhenMatchesStartTimestamp() {
         CommitTimestampProvider commitTimestampProvider = new CommitTimestampProvider();u}(j (d2773b68972e300a262ebb1f8c2a24f280280cfdj
 patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/InMemoryValidationStoreTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FInMemoryValidationStoreTest.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -27,7 +27,7 @@
 
 import com.palantir.atlasdb.workload.store.InMemoryValidationStore;
 import com.palantir.atlasdb.workload.store.ValidationStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
 import java.util.List;
@@ -40,12 +40,12 @@ public final class InMemoryValidationStoreTest {
     @Test
     public void writeActionsPersistValues() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_TWO))
@@ -61,13 +61,13 @@ public void writeActionsPersistValues() {
     @Test
     public void deleteActionsPutsEmptyOptionalForCell() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_TWO, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
@@ -80,17 +80,17 @@ public void deleteActionsPutsEmptyOptionalForCell() {
     @Test
     public void writesDeletesAreProcessedInOrder() {
         InMemoryValidationStore store = InMemoryValidationStore.create(List.of(
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(1)
                         .commitTimestamp(2)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(3)
                         .commitTimestamp(4)
                         .addActions(WitnessedDeleteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE))
                         .build(),
-                ImmutableWitnessedTransaction.builder()
+                FullyWitnessedTransaction.builder()
                         .startTimestamp(5)
                         .commitTimestamp(6)
                         .addActions(WitnessedWriteTransactionAction.of(TABLE_1, WORKLOAD_CELL_ONE, VALUE_TWO))u}(j (2b067a134a06d3e605fca8d36dacf3678a76ffcej
 qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/WitnessedTransactionsBuilder.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2FWitnessedTransactionsBuilder.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -17,7 +17,7 @@
 package com.palantir.atlasdb.workload.transaction;
 
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedDeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
@@ -103,7 +103,7 @@ public WitnessedTransactionsBuilder endTransaction(Optional<Long> commitTimestam
                         startTimestamp < commitTimestamp.get(),
                         "Commit timestamp must be greater than the start timestamp.");
             }
-            witnessedTransactions.add(ImmutableWitnessedTransaction.builder()
+            witnessedTransactions.add(FullyWitnessedTransaction.builder()
                     .startTimestamp(startTimestamp)
                     .actions(actions)
                     .commitTimestamp(commitTimestamp)u}(j (d495a71c18ca7b125092f092c371e0a4a455ad73j
 atlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/transaction/witnessed/OnlyCommittedWitnessedTransactionVisitorTest.javaj addedj KAj K j KAj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.javaj X  https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Ftransaction%2Fwitnessed%2FOnlyCommittedWitnessedTransactionVisitorTest.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X
  @@ -0,0 +1,65 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.transaction.witnessed;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyLong;
+import static org.mockito.Mockito.verifyNoInteractions;
+import static org.mockito.Mockito.when;
+
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class OnlyCommittedWitnessedTransactionVisitorTest {
+
+    private static final FullyWitnessedTransaction READ_ONLY_WITNESSED_TRANSACTION =
+            FullyWitnessedTransaction.builder().startTimestamp(100L).build();
+
+    private static final MaybeWitnessedTransaction MAYBE_WITNESSED_TRANSACTION = MaybeWitnessedTransaction.builder()
+            .startTimestamp(100L)
+            .commitTimestamp(101L)
+            .build();
+
+    @Mock
+    private ReadOnlyTransactionStore transactionStore;
+
+    @Test
+    public void fullyCommittedTransactionsAreNeverChecked() {
+        assertThat(READ_ONLY_WITNESSED_TRANSACTION.accept(
+                        new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(READ_ONLY_WITNESSED_TRANSACTION);
+        verifyNoInteractions(transactionStore);
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsEmptyWhenNotCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(false);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .isEmpty();
+    }
+
+    @Test
+    public void maybeCommittedTransactionReturnsFullyWitnessedWhenCommitted() {
+        when(transactionStore.isCommitted(anyLong())).thenReturn(true);
+        assertThat(MAYBE_WITNESSED_TRANSACTION.accept(new OnlyCommittedWitnessedTransactionVisitor(transactionStore)))
+                .contains(MAYBE_WITNESSED_TRANSACTION.toFullyWitnessed());
+    }
+}u}(j (c661ec5533851b62afb963d1f472d967b8a67e83j
 qatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/ConcurrentTransactionRunnerTest.javaj modifiedj Kj Kj Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FConcurrentTransactionRunnerTest.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -33,7 +33,7 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.logsafe.exceptions.SafeIllegalArgumentException;
 import java.util.List;
@@ -126,7 +126,7 @@ public void storePassedThroughToIndividualTasks() {
     }
 
     private static WitnessedTransaction createWitnessedTransactionWithStartTimestamp(int startTimestamp) {
-        return ImmutableWitnessedTransaction.builder()
+        return FullyWitnessedTransaction.builder()
                 .startTimestamp(startTimestamp)
                 .build();
     }u}(j (f8a19900eee6cf1226affe562f3f1ad73f58040dj
 eatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/DefaultWorkflowTest.javaj modifiedj K2j Kj KNj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FDefaultWorkflowTest.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X!  @@ -27,9 +27,10 @@
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.palantir.atlasdb.workload.store.TransactionStore;
-import com.palantir.atlasdb.workload.transaction.witnessed.ImmutableWitnessedTransaction;
-import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.FullyWitnessedTransaction;
+import com.palantir.atlasdb.workload.transaction.witnessed.MaybeWitnessedTransaction;
 import com.palantir.common.concurrent.PTExecutors;
+import java.util.List;
 import java.util.concurrent.ScheduledExecutorService;
 import org.junit.Test;
 
@@ -41,66 +42,78 @@ public class DefaultWorkflowTest {
     private final ScheduledExecutorService scheduler = PTExecutors.newSingleThreadScheduledExecutor();
     private final ListeningExecutorService executionExecutor = MoreExecutors.listeningDecorator(scheduler);
 
+    private final DefaultWorkflow<TransactionStore> workflow =
+            DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
+
     @Test
     public void handlesExceptionsInUnderlyingTasks() {
         RuntimeException transactionException = new RuntimeException("boo");
         when(transactionTask.apply(eq(store), anyInt())).thenThrow(transactionException);
-
-        Workflow workflow =
-                DefaultWorkflow.create(store, transactionTask, createWorkflowConfiguration(2), executionExecutor);
         assertThatThrownBy(workflow::run)
                 .hasMessage("Error when running workflow task")
                 .hasCause(transactionException);
     }
 
     @Test
     public void returnsUnderlyingWitnessedTransactions() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight)))
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight)))
                 .containsExactly(twoToEight);
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(readOnlyAtFive)))
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(readOnlyAtFive)))
                 .containsExactly(readOnlyAtFive);
     }
 
     @Test
     public void sortsResultsOfWriteTransactionsByCommitTimestamp() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
-        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction threeToSeven = createWitnessedTransactionWithoutActions(3, 7);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(twoToEight, threeToSeven, fourToSix)))
                 .containsExactly(fourToSix, threeToSeven, twoToEight);
     }
 
     @Test
     public void sortsReadOnlyTransactionsByStartTimestamp() {
-        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        WitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtFortyTwo = createReadOnlyWitnessedTransactionWithoutActions(42);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(
+        assertThat(workflow.sortAndFilterTransactions(
                         ImmutableList.of(readOnlyAtSeven, readOnlyAtFortyTwo, readOnlyAtThree)))
                 .containsExactly(readOnlyAtThree, readOnlyAtSeven, readOnlyAtFortyTwo);
     }
 
     @Test
     public void sortsReadAndWriteTransactionsByEffectiveTimestamp() {
-        WitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
-        WitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        FullyWitnessedTransaction twoToEight = createWitnessedTransactionWithoutActions(2, 8);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
 
-        WitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
-        WitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
-        WitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
-        WitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
+        FullyWitnessedTransaction readOnlyAtThree = createReadOnlyWitnessedTransactionWithoutActions(3);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction readOnlyAtSeven = createReadOnlyWitnessedTransactionWithoutActions(7);
+        FullyWitnessedTransaction readOnlyAtNine = createReadOnlyWitnessedTransactionWithoutActions(9);
 
-        assertThat(DefaultWorkflow.sortByEffectiveTimestamp(ImmutableList.of(
+        assertThat(workflow.sortAndFilterTransactions(ImmutableList.of(
                         twoToEight, readOnlyAtNine, fourToSix, readOnlyAtFive, readOnlyAtThree, readOnlyAtSeven)))
                 .containsExactly(
                         readOnlyAtThree, readOnlyAtFive, fourToSix, readOnlyAtSeven, twoToEight, readOnlyAtNine);
     }
 
+    @Test
+    public void filterRemovesUncommittedTransactions() {
+        MaybeWitnessedTransaction committedMaybeWitnessedTransaction =
+                createMaybeWitnessedTransactionWithoutActions(1, 3, true);
+        MaybeWitnessedTransaction notCommittedTransaction = createMaybeWitnessedTransactionWithoutActions(2, 8, false);
+        FullyWitnessedTransaction readOnlyAtFive = createReadOnlyWitnessedTransactionWithoutActions(5);
+        FullyWitnessedTransaction fourToSix = createWitnessedTransactionWithoutActions(4, 6);
+        assertThat(workflow.sortAndFilterTransactions(List.of(
+                        committedMaybeWitnessedTransaction, notCommittedTransaction, readOnlyAtFive, fourToSix)))
+                .containsExactly(committedMaybeWitnessedTransaction.toFullyWitnessed(), readOnlyAtFive, fourToSix);
+    }
+
     private WorkflowConfiguration createWorkflowConfiguration(int iterationCount) {
         return new WorkflowConfiguration() {
             @Override
@@ -110,12 +123,21 @@ public int iterationCount() {
         };
     }
 
-    private static WitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
-        return ImmutableWitnessedTransaction.builder().startTimestamp(start).build();
+    private MaybeWitnessedTransaction createMaybeWitnessedTransactionWithoutActions(
+            long start, long commit, boolean committed) {
+        when(store.isCommitted(eq(start))).thenReturn(committed);
+        return MaybeWitnessedTransaction.builder()
+                .startTimestamp(start)
+                .commitTimestamp(commit)
+                .build();
+    }
+
+    private static FullyWitnessedTransaction createReadOnlyWitnessedTransactionWithoutActions(long start) {
+        return FullyWitnessedTransaction.builder().startTimestamp(start).build();
     }
 
-    private static WitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
-        return ImmutableWitnessedTransaction.builder()
+    private static FullyWitnessedTransaction createWitnessedTransactionWithoutActions(long start, long commit) {
+        return FullyWitnessedTransaction.builder()
                 .startTimestamp(start)
                 .commitTimestamp(commit)
                 .build();u}(j (b4f0f9cfa1631ef560d32a317b1d9e42a3cac71fj
  changelog/0.849.0/pr-6562.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/changelog%2F0.849.0%2Fpr-6562.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/changelog%2F0.849.0%2Fpr-6562.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.849.0%2Fpr-6562.v2.yml?ref=9a8f11015988463652e004e8f320e61f66c0a6dej @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Avoid boxing for Cassandra known port checks
+  links:
+  - https://github.com/palantir/atlasdb/pull/6562u}(j (217d9399bdb068283f3ed607c705739151adc8eaj
  changelog/0.850.0/pr-6563.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/changelog%2F0.850.0%2Fpr-6563.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/changelog%2F0.850.0%2Fpr-6563.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.850.0%2Fpr-6563.v2.yml?ref=9a8f11015988463652e004e8f320e61f66c0a6dej @@ -0,0 +1,6 @@
+type: fix
+fix:
+  description: Fixed a serialization issue for users of `LockServerOptions` and `LockState`
+    endpoints in the legacy lock service.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6563u}(j (23134b9e8533848c590920b5b3a3ff99b19db234j
  changelog/0.851.0/pr-6551.v2.ymlj addedj Kj K j Kj vhttps://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/changelog%2F0.851.0%2Fpr-6551.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/changelog%2F0.851.0%2Fpr-6551.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.851.0%2Fpr-6551.v2.yml?ref=9a8f11015988463652e004e8f320e61f66c0a6dej @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Display as safe arg the failureCount in the "Could not lock successfully"
+  links:
+  - https://github.com/palantir/atlasdb/pull/6551u}(j (7deaaeb752dd206465461e58105cf13d7c7dbeffj
 lock-api/build.gradlej modifiedj Kj K j Kj ihttps://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/lock-api%2Fbuild.gradlej hhttps://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/lock-api%2Fbuild.gradlej {https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fbuild.gradle?ref=9a8f11015988463652e004e8f320e61f66c0a6dej X  @@ -45,6 +45,7 @@ dependencies {
     testImplementation 'com.palantir.common:streams'
     testImplementation 'io.dropwizard.metrics:metrics-core'
     testImplementation 'org.slf4j:slf4j-api'
+    testImplementation project(':lock-api-objects')
     testImplementation project(':lock-conjure-api:lock-conjure-api-objects')
     testImplementation project(':timelock-api:timelock-api-objects')
 u}(j (da3109e146d361ca31d2958b0fc223d0d2334824j
 ?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej @@ -48,6 +48,7 @@ public class LockServerOptions implements Serializable {
      * client accessing it.
      */
     @Value.Default
+    @JsonProperty("isStandaloneServer")
     public boolean isStandaloneServer() {
         return true;
     }u}(j (7cd1c34cf31d800e3d13f665c2f83a2f2153b95ej
 7lock-api/src/main/java/com/palantir/lock/LockState.javaj modifiedj Kj K j Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej XD  @@ -16,6 +16,7 @@
 
 package com.palantir.lock;
 
+import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import java.util.List;
@@ -26,8 +27,10 @@
 @JsonSerialize(as = ImmutableLockState.class)
 @JsonDeserialize(as = ImmutableLockState.class)
 public interface LockState {
+    @JsonProperty("isWriteLocked")
     boolean isWriteLocked();
 
+    @JsonProperty("isFrozen")
     boolean isFrozen();
 
     List<LockClient> exactCurrentLockHolders();u}(j (1926ba4ded622aa9fbfde697ed803a0543ddf1b5j
 Clock-api/src/test/java/com/palantir/lock/LockServerOptionsTest.javaj addedj KSj K j KSj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.javaj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.java?ref=9a8f11015988463652e004e8f320e61f66c0a6dej Xh  @@ -0,0 +1,83 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.lock.v2.IdentifiedTimeLockRequest;
+import java.io.File;
+import java.io.IOException;
+import java.util.concurrent.TimeUnit;
+import org.junit.Test;
+
+public class LockServerOptionsTest {
+    private static final File LOCK_SERVER_OPTIONS_JSON = new File(IdentifiedTimeLockRequest.class
+            .getResource("/lock-server-options.json")
+            .getPath());
+    private static final LockServerOptions NON_STANDALONE_OPTIONS =
+            LockServerOptions.builder().isStandaloneServer(false).build();
+
+    private final ObjectMapper serverMapper = ObjectMappers.newServerObjectMapper();
+    private final ObjectMapper clientMapper = ObjectMappers.newClientObjectMapper();
+
+    @Test
+    public void serializationContainsIsStandaloneServerExplicitly() throws Exception {
+        assertThat(serverMapper.writeValueAsString(NON_STANDALONE_OPTIONS))
+                .isNotEmpty()
+                .contains("\"isStandaloneServer\":false");
+        assertThat(serverMapper.writeValueAsString(LockServerOptions.builder().build()))
+                .isNotEmpty()
+                .contains("\"isStandaloneServer\":true");
+    }
+
+    @Test
+    public void serializationIsInverseOfDeserialization() throws JsonProcessingException {
+        assertSerializationIsInverseOfDeserialization(NON_STANDALONE_OPTIONS);
+        assertSerializationIsInverseOfDeserialization(
+                LockServerOptions.builder().build());
+    }
+
+    @Test
+    @SuppressWarnings("deprecation") // These are actual fields users might set that we still support...
+    public void existingOptionsCanBeDeserialized() throws IOException {
+        LockServerOptions lockServerOptions = LockServerOptions.builder()
+                .maxAllowedLockTimeout(SimpleTimeDuration.of(1, TimeUnit.MILLISECONDS))
+                .maxAllowedClockDrift(SimpleTimeDuration.of(2, TimeUnit.SECONDS))
+                .maxAllowedBlockingDuration(SimpleTimeDuration.of(3, TimeUnit.MINUTES))
+                .maxNormalLockAge(SimpleTimeDuration.of(4, TimeUnit.HOURS))
+                .randomBitCount(32)
+                .stuckTransactionTimeout(SimpleTimeDuration.of(5, TimeUnit.DAYS))
+                .slowLogTriggerMillis(12345)
+                .isStandaloneServer(false)
+                .build();
+
+        assertThat(clientMapper.readValue(LOCK_SERVER_OPTIONS_JSON, LockServerOptions.class))
+                .isEqualTo(lockServerOptions);
+        assertThat(serverMapper.readValue(LOCK_SERVER_OPTIONS_JSON, LockServerOptions.class))
+                .isEqualTo(lockServerOptions);
+    }
+
+    private void assertSerializationIsInverseOfDeserialization(LockServerOptions options)
+            throws JsonProcessingException {
+        String json = serverMapper.writeValueAsString(options);
+        assertThat(clientMapper.readValue(json, LockServerOptions.class)).isEqualTo(options);
+        assertThat(serverMapper.readValue(json, LockServerOptions.class)).isEqualTo(options);
+    }
+}u}(j (efe8f1aaad6365f7c6d18f7a187cf695d298d214j
 4lock-api/src/test/resources/lock-server-options.jsonj addedj Kj K j Kj https://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.jsonj https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.jsonj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.json?ref=9a8f11015988463652e004e8f320e61f66c0a6dej Xa  @@ -0,0 +1 @@
+{"maxAllowedLockTimeout":{"time":1,"unit":"MILLISECONDS"},"maxAllowedClockDrift":{"time":2,"unit":"SECONDS"},"maxAllowedBlockingDuration":{"time":3,"unit":"MINUTES"},"maxNormalLockAge":{"time":4,"unit":"HOURS"},"randomBitCount":32,"stuckTransactionTimeout":{"time":5,"unit":"DAYS"},"slowLogTriggerMillis":12345,"isStandaloneServer":false}u}(j (92b41a4f3220d1bdf849b4024cc98b1a38f996dej
 settings.gradlej modifiedj Kj K j Kj ahttps://github.com/palantir/atlasdb/blob/9a8f11015988463652e004e8f320e61f66c0a6de/settings.gradlej `https://github.com/palantir/atlasdb/raw/9a8f11015988463652e004e8f320e61f66c0a6de/settings.gradlej shttps://api.github.com/repos/palantir/atlasdb/contents/settings.gradle?ref=9a8f11015988463652e004e8f320e61f66c0a6dej @@ -6,6 +6,7 @@ rootProject.name = 'atlasdb'
 
 include ":atlasdb-api"
 include ":atlasdb-autobatch"
+include ":atlasdb-buggify"
 include ":atlasdb-cassandra"
 include ":atlasdb-cassandra-integration-tests"
 include ":atlasdb-cassandra-multinode-tests"ueu(e0d1709b2c33b96f03ad9d57f9c2ef671cc4ac5e}(sha(e0d1709b2c33b96f03ad9d57f9c2ef671cc4ac5enode_idEC_kwDOAjP5fdoAKGUwZDE3MDliMmMzM2I5NmYwM2FkOWQ1N2Y5YzJlZjY3MWNjNGFjNWUcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-07-18T10:28:02Zu	committer}(jў svc-autoreleasejӞ -pd-foundry-infrastructure-notify@palantir.comj՞ 2023-07-18T10:28:02ZumessageAutorelease 0.897.0

[skip ci]tree}(jɞ (f2e69375f6ca3f4cc70944c62b5c91138cd88042url`https://api.github.com/repos/palantir/atlasdb/git/trees/f2e69375f6ca3f4cc70944c62b5c91138cd88042uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e0d1709b2c33b96f03ad9d57f9c2ef671cc4ac5e
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmS2aTkACgkQhbrR8ip7mDBDKgEApIiHiJDvyODHmQyqecAyit9E
BKtb70tvBpMTsg0zEwAA/jpA2RT94qo3lCXwke4BTIMs2/+D/JjCmWP+a5HZMYpK
=Csyf
-----END PGP SIGNATURE-----
payloadX0  tree f2e69375f6ca3f4cc70944c62b5c91138cd88042
parent 45ff8d9532d492d6b9738fd69d0a9cfb67f1a074
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1689676082 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1689676082 +0000

Autorelease 0.897.0

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/e0d1709b2c33b96f03ad9d57f9c2ef671cc4ac5ehtml_urlShttps://github.com/palantir/atlasdb/commit/e0d1709b2c33b96f03ad9d57f9c2ef671cc4ac5ecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e0d1709b2c33b96f03ad9d57f9c2ef671cc4ac5e/commentsjϞ }(loginsvc-autoreleaseidJ(j˞ MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminujמ }(j svc-autoreleasej J(j˞ MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj	 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j
 <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(jɞ (45ff8d9532d492d6b9738fd69d0a9cfb67f1a074j ^https://api.github.com/repos/palantir/atlasdb/commits/45ff8d9532d492d6b9738fd69d0a9cfb67f1a074j Shttps://github.com/palantir/atlasdb/commit/45ff8d9532d492d6b9738fd69d0a9cfb67f1a074uastats}(totalK 	additionsK 	deletionsK ufiles]}(jɞ (240913fc734894a98c05e8c292aa78369a4ece97filename changelog/0.897.0/pr-6667.v2.ymlstatusrenamedj+ K j, K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/e0d1709b2c33b96f03ad9d57f9c2ef671cc4ac5e/changelog%2F0.897.0%2Fpr-6667.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/e0d1709b2c33b96f03ad9d57f9c2ef671cc4ac5e/changelog%2F0.897.0%2Fpr-6667.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.897.0%2Fpr-6667.v2.yml?ref=e0d1709b2c33b96f03ad9d57f9c2ef671cc4ac5eprevious_filename$changelog/@unreleased/pr-6667.v2.ymluau(08a3f9f8004ef6f319cc35a9497d4b134af8d4d5}(sha(08a3f9f8004ef6f319cc35a9497d4b134af8d4d5node_idEC_kwDOAjP5fdoAKDA4YTNmOWY4MDA0ZWY2ZjMxOWNjMzVhOTQ5N2Q0YjEzNGFmOGQ0ZDUcommit}(author}(nameaalouaneemail(30903736+ergo14@users.noreply.github.comdate2023-04-28T14:19:09Zu	committer}(jH svc-autoreleasejJ -pd-foundry-infrastructure-notify@palantir.comjL 2023-04-28T14:19:09Zumessage"Autorelease 0.845.0-rc2

[skip ci]tree}(j@ (fbc2e279f4a84215a7aca9e1d8450b223a49f016url`https://api.github.com/repos/palantir/atlasdb/git/trees/fbc2e279f4a84215a7aca9e1d8450b223a49f016ujX bhttps://api.github.com/repos/palantir/atlasdb/git/commits/08a3f9f8004ef6f319cc35a9497d4b134af8d4d5
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmRL1d4ACgkQhbrR8ip7mDBcdQD+KvaW2Ms9GNExiA/aLnZoo5f8
Li2sp9GxAVpo9EKboAQBAMyQIX4WDV3qv37pzJILMubBc1XCmhG2wqqiOogduVcE
=ixs0
-----END PGP SIGNATURE-----
payloadX(  tree fbc2e279f4a84215a7aca9e1d8450b223a49f016
parent 31396508c229b7d0f3ef77e6b9361e854784ed07
author aalouane <30903736+ergo14@users.noreply.github.com> 1682691549 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1682691549 +0000

Autorelease 0.845.0-rc2

[skip ci]uujX ^https://api.github.com/repos/palantir/atlasdb/commits/08a3f9f8004ef6f319cc35a9497d4b134af8d4d5html_urlShttps://github.com/palantir/atlasdb/commit/08a3f9f8004ef6f319cc35a9497d4b134af8d4d5comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/08a3f9f8004ef6f319cc35a9497d4b134af8d4d5/commentsjF }(loginergo14idJjB MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jX #https://api.github.com/users/ergo14jf https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminujN }(jk svc-autoreleasejm J(jB MDQ6VXNlcjUxNzE4MzQ2jo 4https://avatars.githubusercontent.com/u/51718346?v=4jq h5jX ,https://api.github.com/users/svc-autoreleasejf "https://github.com/svc-autoreleasejt 6https://api.github.com/users/svc-autorelease/followersjv Chttps://api.github.com/users/svc-autorelease/following{/other_user}jx <https://api.github.com/users/svc-autorelease/gists{/gist_id}jz Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j| :https://api.github.com/users/svc-autorelease/subscriptionsj~ 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(j@ (31396508c229b7d0f3ef77e6b9361e854784ed07jX ^https://api.github.com/repos/palantir/atlasdb/commits/31396508c229b7d0f3ef77e6b9361e854784ed07jf Shttps://github.com/palantir/atlasdb/commit/31396508c229b7d0f3ef77e6b9361e854784ed07uastats}(totalK 	additionsK 	deletionsK ufiles]u(9d1a7950cb1cc87060204ddd3985db83bed18cf2}(sha(9d1a7950cb1cc87060204ddd3985db83bed18cf2node_idEC_kwDOAjP5fdoAKDlkMWE3OTUwY2IxY2M4NzA2MDIwNGRkZDM5ODVkYjgzYmVkMThjZjIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-13T17:25:03Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-06-13T17:25:03Zumessagealle alle alletree}(j (61e48c55a923aa2e18b94d6d495d14f97b43f043url`https://api.github.com/repos/palantir/atlasdb/git/trees/61e48c55a923aa2e18b94d6d495d14f97b43f043uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9d1a7950cb1cc87060204ddd3985db83bed18cf2
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSIpnEACgkQTLdFKain
zjw3yQgAvaCaCOQ+MlpeEuXjfwrpuOY6UZ1KHlJ0J0b+H9LdYHw+aYCT3EEfVju6
CEEvyfvKPVSj5oYDG4vEm2X76eEQAWlrvvLP+eLc1Q/7xYXqNesnjcvvKaYmkg6B
d/B673DpJjhMBSXOo320Lz4GeNWXa0nlCmBdWHF1nRzE7EFVn1b0vKGW5020hNaW
HJu0CPyxoUFIbEjkgvtMtycFNiERC2ZfjxivgV2x/vSkerkT6Im8MDG+mWN/SJhj
G3pfuzSruQu8eBt/8/7eMRKUvO0lepFvBAEY/NsggpM2v/zFZYA88+9A29hzyqdy
wKBUPHGl/gwZagRMh5LWxUClcmjnTA==
=fqMh
-----END PGP SIGNATURE-----payloadtree 61e48c55a923aa2e18b94d6d495d14f97b43f043
parent 8d65a011e35cfff9bbdb38ad706cc252b977467b
author Jeremy Kong <jkong@palantir.com> 1686677103 +0800
committer Jeremy Kong <jkong@palantir.com> 1686677103 +0800

alle alle alle
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/9d1a7950cb1cc87060204ddd3985db83bed18cf2html_urlShttps://github.com/palantir/atlasdb/commit/9d1a7950cb1cc87060204ddd3985db83bed18cf2comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9d1a7950cb1cc87060204ddd3985db83bed18cf2/commentsj }(login
jeremyk-91idJZ j MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91jΟ https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(jӟ 
jeremyk-91j՟ JZ j MDQ6VXNlcjU5NTU1MTA=jן 3https://avatars.githubusercontent.com/u/5955510?v=4jٟ h5j 'https://api.github.com/users/jeremyk-91jΟ https://github.com/jeremyk-91jܟ 1https://api.github.com/users/jeremyk-91/followersjޟ >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(j (8d65a011e35cfff9bbdb38ad706cc252b977467bj ^https://api.github.com/repos/palantir/atlasdb/commits/8d65a011e35cfff9bbdb38ad706cc252b977467bjΟ Shttps://github.com/palantir/atlasdb/commit/8d65a011e35cfff9bbdb38ad706cc252b977467buastats}(totalKw	additionsK.	deletionsKIufiles]}(j (6297b7acffbb075928578f8f4ec95fe00a4f4d4ffilenameiatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraKeyValueServiceImpl.javastatusmodifiedj
 K.j KIchangesKwblob_urlhttps://github.com/palantir/atlasdb/blob/9d1a7950cb1cc87060204ddd3985db83bed18cf2/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9d1a7950cb1cc87060204ddd3985db83bed18cf2/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraKeyValueServiceImpl.java?ref=9d1a7950cb1cc87060204ddd3985db83bed18cf2patchXT  @@ -152,11 +152,11 @@
 /**
  * Each service can have one or many C* KVS.
  * For each C* KVS, it maintains a list of active nodes, and the client connections attached to each node:
- *
+ * <p>
  * n1->c1, c2, c3
  * n2->c5, c4, c9
  * n3->[N C* thrift client connections]
- *
+ * <p>
  * Where {n1, n2, n3} are the active nodes in the C* cluster. Also each
  * node contains the clients which are attached to the node.
  * if some nodes are down, and the change can be detected through active hosts,
@@ -215,7 +215,7 @@ public void close() {
     }
 
     static final ConsistencyLevel WRITE_CONSISTENCY = ConsistencyLevel.EACH_QUORUM;
-    static final ConsistencyLevel DELETE_CONSISTENCY = ConsistencyLevel.ALL;
+    static final ConsistencyLevel DELETE_CONSISTENCY = ConsistencyLevel.EACH_QUORUM;
 
     private final Logger log;
 
@@ -594,15 +594,13 @@ private void lowerConsistencyWhenSafe() {
      * @param rows set containing the rows to retrieve values for.
      * @param selection specifies the set of columns to fetch.
      * @param startTs specifies the maximum timestamp (exclusive) at which to
-     *        retrieve each rows's value.
-     *
+     * retrieve each rows's value.
      * @return map of retrieved values. Values which do not exist (either
-     *         because they were deleted or never created in the first place)
-     *         are simply not returned.
-     *
+     * because they were deleted or never created in the first place)
+     * are simply not returned.
      * @throws AtlasDbDependencyException if fewer than a quorum of Cassandra nodes are reachable.
      * @throws IllegalArgumentException if any of the requests were invalid
-     *         (e.g., attempting to retrieve values from a non-existent table).
+     * (e.g., attempting to retrieve values from a non-existent table).
      */
     @Override
     public Map<Cell, Value> getRows(
@@ -777,15 +775,13 @@ private Map<Cell, Value> getRowsForSpecificColumns(
      *
      * @param tableRef the name of the table to retrieve values from.
      * @param timestampByCell specifies, for each row, the maximum timestamp (exclusive) at which to
-     *        retrieve that rows's value.
-     *
+     * retrieve that rows's value.
      * @return map of retrieved values. Values which do not exist (either
-     *         because they were deleted or never created in the first place)
-     *         are simply not returned.
-     *
+     * because they were deleted or never created in the first place)
+     * are simply not returned.
      * @throws AtlasDbDependencyException if fewer than a quorum of Cassandra nodes are reachable.
      * @throws IllegalArgumentException if any of the requests were invalid
-     *         (e.g., attempting to retrieve values from a non-existent table).
+     * (e.g., attempting to retrieve values from a non-existent table).
      */
     @Override
     public Map<Cell, Value> get(TableReference tableRef, Map<Cell, Long> timestampByCell) {
@@ -842,13 +838,11 @@ private Map<Cell, Value> get(
      *
      * @param tableRef the name of the table to retrieve values from.
      * @param rows set containing the rows to retrieve values for. Behavior is undefined if {@code rows}
-     *        contains duplicates (as defined by {@link Arrays#equals(byte[], byte[])}).
+     * contains duplicates (as defined by {@link Arrays#equals(byte[], byte[])}).
      * @param batchColumnRangeSelection specifies the column range and the per-row batchSize to fetch.
      * @param timestamp specifies the maximum timestamp (exclusive) at which to retrieve each rows's value.
-     *
      * @return map of row names to {@link RowColumnRangeIterator}. Each {@link RowColumnRangeIterator} can iterate over
-     *         the values that are spanned by the {@code batchColumnRangeSelection} in increasing order by column name.
-     *
+     * the values that are spanned by the {@code batchColumnRangeSelection} in increasing order by column name.
      * @throws IllegalArgumentException if {@code rows} contains duplicates.
      */
     @Override
@@ -1074,10 +1068,10 @@ private static boolean isEndOfColumnRange(
             boolean completedCell, byte[] lastCol, int numRawResults, BatchColumnRangeSelection columnRangeSelection) {
         return (numRawResults < columnRangeSelection.getBatchHint())
                 || (completedCell
-                        && (RangeRequests.isLastRowName(lastCol)
-                                || Arrays.equals(
-                                        RangeRequests.nextLexicographicName(lastCol),
-                                        columnRangeSelection.getEndCol())));
+                && (RangeRequests.isLastRowName(lastCol)
+                || Arrays.equals(
+                RangeRequests.nextLexicographicName(lastCol),
+                columnRangeSelection.getEndCol())));
     }
 
     private static byte[] getNextColumnRangeColumn(boolean completedCell, byte[] lastCol) {
@@ -1107,7 +1101,6 @@ private static Range createColumnRange(byte[] startColOrEmpty, byte[] endColExlu
      * @param tableRef the name of the table to put values into.
      * @param values map containing the key-value entries to put.
      * @param timestamp must be non-negative and not equal to {@link Long#MAX_VALUE}
-     *
      * @throws AtlasDbDependencyException if fewer than a quorum of Cassandra nodes are reachable.
      */
     @Override
@@ -1129,8 +1122,7 @@ public void put(final TableReference tableRef, final Map<Cell, byte[]> values, f
      *
      * @param tableRef the name of the table to put values into.
      * @param values map containing the key-value entries to put with
-     *               non-negative timestamps less than {@link Long#MAX_VALUE}.
-     *
+     * non-negative timestamps less than {@link Long#MAX_VALUE}.
      * @throws AtlasDbDependencyException if fewer than a quorum of Cassandra nodes are reachable.
      */
     @Override
@@ -1158,7 +1150,6 @@ protected int getMultiPutBatchCount() {
      *
      * @param valuesByTable map containing the key-value entries to put by table.
      * @param timestamp must be non-negative and not equal to {@link Long#MAX_VALUE}
-     *
      * @throws AtlasDbDependencyException if fewer than a quorum of Cassandra nodes are reachable.
      */
     @Override
@@ -1252,7 +1243,6 @@ private static MutationMap convertToMutations(List<TableCellAndValue> batch, lon
      * Requires all Cassandra nodes to be reachable.
      *
      * @param tableRef the name of the table to truncate.
-     *
      * @throws AtlasDbDependencyException if not all Cassandra nodes are reachable.
      * @throws RuntimeException if the table does not exist.
      */
@@ -1269,7 +1259,6 @@ public void truncateTable(final TableReference tableRef) {
      * Requires all Cassandra nodes to be reachable.
      *
      * @param tablesToTruncate set od tables to truncate.
-     *
      * @throws AtlasDbDependencyException if not all Cassandra nodes are reachable.
      * @throws RuntimeException if the table does not exist.
      */
@@ -1285,16 +1274,15 @@ public void truncateTables(final Set<TableReference> tablesToTruncate) {
      *
      * @param tableRef the name of the table to delete values from.
      * @param keys map containing the keys to delete values for.
-     *
      * @throws PalantirRuntimeException if not all hosts respond successfully.
      */
     @Override
     public void delete(TableReference tableRef, Multimap<Cell, Long> keys) {
         new CellDeleter(
-                        clientPool,
-                        wrappingQueryRunner,
-                        DELETE_CONSISTENCY,
-                        mutationTimestampProvider.getDeletionTimestampOperatorForBatchDelete())
+                clientPool,
+                wrappingQueryRunner,
+                DELETE_CONSISTENCY,
+                mutationTimestampProvider.getDeletionTimestampOperatorForBatchDelete())
                 .delete(tableRef, keys);
     }
 
@@ -1315,15 +1303,15 @@ public Map<RangeRequest, TokenBackedBasicResultsPage<RowResult<Value>, byte[]>>
 
     // TODO(unknown): after cassandra change: handle reverse ranges
     // TODO(unknown): after cassandra change: handle column filtering
+
     /**
      * For each row in the specified range, returns the most recent version strictly before timestamp. Requires a
      * quorum of Cassandra nodes to be reachable.
-     *
+     * <p>
      * Remember to close any {@link ClosableIterator}s you get in a finally block.
      *
      * @param rangeRequest the range to load.
      * @param timestamp specifies the maximum timestamp (exclusive) at which to retrieve each row's value.
-     *
      * @throws AtlasDbDependencyException if fewer than a quorum of Cassandra nodes are reachable.
      */
     @Override
@@ -1344,7 +1332,6 @@ public ClosableIterator<RowResult<Value>> getRange(
      * @param tableRef the name of the table to read from.
      * @param rangeRequest the range to load.
      * @param timestamp the maximum timestamp to load.
-     *
      * @throws InsufficientConsistencyException if not all hosts respond successfully.
      */
     @Override
@@ -1389,7 +1376,7 @@ private ClosableIterator<List<CandidateRowForSweeping>> getCandidateRowsForSweep
     /**
      * Returns a sorted list of row keys in the specified range; see
      * {@link CassandraKeyValueService#getRowKeysInRange(TableReference, byte[], byte[], int)}.
-     *
+     * <p>
      * Implementation specific: this method specifically does not read any of the columns and can therefore be used
      * in the presence of wide rows. However, as a side-effect, it may return row where the row only contains Cassandra
      * tombstones.
@@ -1409,12 +1396,10 @@ private CqlExecutor newInstrumentedCqlExecutor() {
      * Drop the table, and also delete its table metadata. Requires a quorum of Cassandra nodes to be reachable.
      *
      * @param tableRef the name of the table to drop.
-     *
      * @throws AtlasDbDependencyException if fewer than a quorum of Cassandra nodes are reachable, or the cluster
      * cannot come to an agreement on schema versions. Note that this method is not atomic: if quorum is lost during
      * its execution or Cassandra nodes fail to settle on a schema version after the Cassandra schema is mutated, we
      * may drop the tables, but fail to to persist the changes to the _metadata table.
-     *
      * @throws UncheckedExecutionException if there are multiple schema mutation lock tables.
      */
     @Override
@@ -1426,13 +1411,12 @@ public void dropTable(final TableReference tableRef) {
      * Drop the tables, and also delete their table metadata. Requires a quorum of Cassandra nodes to be reachable.
      * <p>
      * Main gains here vs. dropTable:
-     *    - problems excepting, we will basically be serializing a rapid series of schema changes
-     *      through a single host checked out from the client pool, so reduced chance of schema disagreement issues
-     *    - client-side in-memory lock to prevent misbehaving callers from shooting themselves in the foot
-     *    - one less round trip
+     * - problems excepting, we will basically be serializing a rapid series of schema changes
+     * through a single host checked out from the client pool, so reduced chance of schema disagreement issues
+     * - client-side in-memory lock to prevent misbehaving callers from shooting themselves in the foot
+     * - one less round trip
      *
      * @param tablesToDrop the set of tables to drop.
-     *
      * @throws AtlasDbDependencyException if fewer than a quorum of Cassandra nodes are reachable, or the cluster
      * cannot come to an agreement on schema versions. Note that this method is not atomic: if quorum is lost during
      * its execution or Cassandra nodes fail to settle on a schema version after the Cassandra schema is mutated, we
@@ -1450,7 +1434,6 @@ public void dropTables(final Set<TableReference> tablesToDrop) {
      *
      * @param tableRef the name of the table to create.
      * @param metadata the metadata of the table to create.
-     *
      * @throws AtlasDbDependencyException if fewer than a quorum of Cassandra nodes are reachable, or the cluster
      * cannot come to an agreement on schema versions. Note that this method is not atomic: if quorum is lost during
      * its execution or Cassandra nodes fail to settle on a schema version after the Cassandra schema is mutated, we
@@ -1469,18 +1452,17 @@ public void createTable(final TableReference tableRef, final byte[] metadata) {
      * Requires a quorum of Cassandra nodes to be up and available.
      * <p>
      * Main gains here vs. createTable:
-     *    - problems excepting, we will basically be serializing a rapid series of schema changes
-     *      through a single host checked out from the client pool, so reduced chance of schema disagreement issues
-     *    - client-side in-memory lock to prevent misbehaving callers from shooting themselves in the foot
-     *    - one less round trip
+     * - problems excepting, we will basically be serializing a rapid series of schema changes
+     * through a single host checked out from the client pool, so reduced chance of schema disagreement issues
+     * - client-side in-memory lock to prevent misbehaving callers from shooting themselves in the foot
+     * - one less round trip
      * <p>
      * createTables(existingTable, newMetadata) can perform a metadata-only update. Additionally, it is possible
      * that this metadata-only update performs a schema mutation by altering the CFDef (e. g., user changes metadata
      * of existing table to have new compression block size). This does not require the schema mutation lock, as it
      * does not alter the CfId
      *
      * @param tablesToMetadata a mapping of names of tables to create to their respective metadata.
-     *
      * @throws AtlasDbDependencyException if fewer than a quorum of Cassandra nodes are reachable, or the cluster
      * cannot come to an agreement on schema versions. Note that this method is not atomic: if quorum is lost during
      * its execution or Cassandra nodes fail to settle on a schema version after the Cassandra schema is mutated, we
@@ -1510,7 +1492,6 @@ public void createTables(final Map<TableReference, byte[]> tablesToMetadata) {
      * This will not contain the names of any hidden tables (e. g., the _metadata table).
      *
      * @return a set of TableReferences (table names) for all the visible tables
-     *
      * @throws AtlasDbDependencyException if fewer than a quorum of Cassandra nodes are reachable, or the cluster
      * cannot come to an agreement on schema versions.
      */
@@ -1527,10 +1508,8 @@ public Set<TableReference> getAllTableNames() {
      * positives. Requires a quorum of Cassandra nodes to be reachable.
      *
      * @param tableRef the name of the table to get metadata for.
-     *
      * @return a byte array representing the metadata for the table. Array is empty if no table
      * with the given name exists. Consider {@link TableMetadata#BYTES_HYDRATOR} for hydrating.
-     *
      * @throws AtlasDbDependencyException if fewer than a quorum of Cassandra nodes are reachable.
      */
     @Override
@@ -1565,7 +1544,6 @@ private static boolean matchingIgnoreCase(@Nullable TableReference t1, TableRefe
      *
      * @return a mapping of table names to their respective metadata in form of a byte array.  Consider
      * {@link TableMetadata#BYTES_HYDRATOR} for hydrating.
-     *
      * @throws AtlasDbDependencyException if fewer than a quorum of Cassandra nodes are available.
      */
     @Override
@@ -1578,7 +1556,6 @@ public Map<TableReference, byte[]> getMetadataForTables() {
      *
      * @param tableRef the name of the table to record metadata for.
      * @param meta a byte array representing the metadata to record.
-     *
      * @throws AtlasDbDependencyException if fewer than a quorum of Cassandra nodes are reachable, or the cluster
      * cannot come to an agreement on schema versions. Note that this method is not atomic: if quorum is lost during
      * its execution or Cassandra nodes fail to settle on a schema version after the Cassandra schema is mutated, we
@@ -1594,7 +1571,6 @@ public void putMetadataForTable(final TableReference tableRef, final byte[] meta
      *
      * @param tableRefToMetadata a mapping from each table's name to the respective byte array representing
      * the metadata to record.
-     *
      * @throws AtlasDbDependencyException if fewer than a quorum of Cassandra nodes are reachable, or the cluster
      * cannot come to an agreement on schema versions. Note that this method is not atomic: if quorum is lost during
      * its execution or Cassandra nodes fail to settle on a schema version after the Cassandra schema is mutated, we
@@ -1776,10 +1752,10 @@ private static Map<String, List<Mutation>> keyMutationMapByColumnFamily(
     @Override
     public void deleteAllTimestamps(TableReference tableRef, Map<Cell, TimestampRangeDelete> deletes) {
         new CellRangeDeleter(
-                        clientPool,
-                        wrappingQueryRunner,
-                        DELETE_CONSISTENCY,
-                        mutationTimestampProvider::getRangeTombstoneTimestamp)
+                clientPool,
+                wrappingQueryRunner,
+                DELETE_CONSISTENCY,
+                mutationTimestampProvider::getRangeTombstoneTimestamp)
                 .deleteAllTimestamps(tableRef, deletes);
     }
 
@@ -1801,7 +1777,6 @@ public void close() {
      *
      * @param tableRef the name of the table to add the value to.
      * @param cells a set of cells to store the values in.
-     *
      * @throws AtlasDbDependencyException if fewer than a quorum of Cassandra nodes are reachable.
      */
     @Override
@@ -1829,7 +1804,6 @@ public void addGarbageCollectionSentinelValues(TableReference tableRef, Iterable
      * @param cells set containg cells to retrieve timestamps for.
      * @param ts maximum timestamp to get (exclusive).
      * @return multimap of timestamps by cell
-     *
      * @throws AtlasDbDependencyException if not all Cassandra nodes are reachable.
      */
     @Override
@@ -1848,7 +1822,6 @@ public Multimap<Cell, Long> getAllTimestamps(TableReference tableRef, Set<Cell>
      *
      * @param tableRef the name of the table to put values into.
      * @param values map containing the key-value entries to put.
-     *
      * @throws AtlasDbDependencyException if fewer than a quorum of Cassandra nodes are reachable.
      * @throws KeyAlreadyExistsException if you are putting a Cell with the same timestamp as one that already exists.
      */
@@ -1918,9 +1891,9 @@ private static CASResult putUnlessExistsSinglePartition(
 
     private static Column prepareColumnForPutUnlessExists(Map.Entry<Cell, byte[]> insertion) {
         return new Column(CassandraKeyValueServices.makeCompositeBuffer(
-                        insertion.getKey().getColumnName(),
-                        // Atlas timestamp
-                        CassandraConstants.CAS_TABLE_TIMESTAMP))
+                insertion.getKey().getColumnName(),
+                // Atlas timestamp
+                CassandraConstants.CAS_TABLE_TIMESTAMP))
                 // Cassandra timestamp
                 .setTimestamp(CassandraConstants.CAS_TABLE_TIMESTAMP)
                 .setValue(insertion.getValue());
@@ -1969,16 +1942,16 @@ public void checkAndSet(final CheckAndSetRequest request) throws CheckAndSetExce
      * Performs a check-and-set for multiple cells in a row into the key-value store.
      * Please see {@link MultiCheckAndSetRequest} for information about how to create this request,
      * and {@link KeyValueService} for more detailed documentation.
-     *
+     * <p>
      * If the call completes successfully, then you know that the old cells initially had the values you expected.
      * In this case, you can be sure that all your cells have been updated to their new values.
      * If the old cells initially did not have the values you expected, none of the cells will be updated and
      * {@link MultiCheckAndSetException} will be thrown.
      * Reads concurrent with this operation will not see a partial update.
-     *
+     * <p>
      * Another thing to note is that the check operation will **only be performed on values of cells that are declared
      * in the set of expected values** i.e. the check operation DOES NOT take updates into account.
-     *
+     * <p>
      * Does not require all Cassandra nodes to be up and available, works as long as quorum is achieved.
      *
      * @param request the request, including table, rowName, old values and new values.
@@ -2114,10 +2087,10 @@ public boolean performanceIsSensitiveToTombstones() {
      *
      * @param tableRef the name of the table to retrieve values from.
      * @param timestampByCell specifies, for each row, the maximum timestamp (exclusive) at which to
-     *        retrieve that rows's value.
+     * retrieve that rows's value.
      * @return listenable future map of retrieved values. Values which do not exist (either
-     *         because they were deleted or never created in the first place)
-     *         are simply not returned.
+     * because they were deleted or never created in the first place)
+     * are simply not returned.
      */
     @Override
     public ListenableFuture<Map<Cell, Value>> getAsync(TableReference tableRef, Map<Cell, Long> timestampByCell) {uau/     (9185e51622876d23398a1f39126c204f1a17a504}(sha(9185e51622876d23398a1f39126c204f1a17a504node_idEC_kwDOAjP5fdoAKDkxODVlNTE2MjI4NzZkMjMzOThhMWYzOTEyNmMyMDRmMWExN2E1MDQcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-07T17:30:44Zu	committer}(j' 
Sam Kramerj) skramer@palantir.comj+ 2023-03-14T10:55:30Zumessagenitstree}(j (deb893bc3406c2d97f578f1152f832eae4b9efefurl`https://api.github.com/repos/palantir/atlasdb/git/trees/deb893bc3406c2d97f578f1152f832eae4b9efefuj7 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/9185e51622876d23398a1f39126c204f1a17a504
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQQUqIACgkQmPPOpKR4
XS3KMwf+LXqWPSumP2lTFL1N4g9X6Pp6X5i45eIpVxSszgoNfAmCjaI8KE8VVJVN
Tmv5kZ39wSDPe99xBC6S1KBpeKOJJvOY3GM9fmnoLS+Um13k2fYpOfs+WdRfIE0U
MIILUz3uTBDbbdpk4Bxn/6Qv0jp53vRgYKO+XVJwCSPc5WuUkZ04sf2Dg9vQgSv+
uLbWhTNRaHvdDYc6Y7Q5mpfdbqfeIk/gPEN5jhD6rdRN3InVS3uPKurWHjFKDzCU
QlD7waYiG+M/3kn/TN/XsRtX8BFuprjO5cQeXSjQFAP/zNPZsFCOSdptqdsdjLXM
ngvR0qsOWwqDaZWDaIHHGRkWpxIQvA==
=moyl
-----END PGP SIGNATURE-----payloadtree deb893bc3406c2d97f578f1152f832eae4b9efef
parent 062ad8aff7a89bd748c1c54aad94541ed4a64a87
author Sam Kramer <skramer@palantir.com> 1678210244 +0000
committer Sam Kramer <skramer@palantir.com> 1678791330 +0000

nits
uuj7 ^https://api.github.com/repos/palantir/atlasdb/commits/9185e51622876d23398a1f39126c204f1a17a504html_urlShttps://github.com/palantir/atlasdb/commit/9185e51622876d23398a1f39126c204f1a17a504comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/9185e51622876d23398a1f39126c204f1a17a504/commentsj% }(login
Sam-KrameridJ^2_ j! MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j7 'https://api.github.com/users/Sam-KramerjE https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj- }(jJ 
Sam-KramerjL J^2_ j! MDQ6VXNlcjYyMzg4MTQ=jN 3https://avatars.githubusercontent.com/u/6238814?v=4jP h5j7 'https://api.github.com/users/Sam-KramerjE https://github.com/Sam-KramerjS 1https://api.github.com/users/Sam-Kramer/followersjU >https://api.github.com/users/Sam-Kramer/following{/other_user}jW 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jY >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j[ 5https://api.github.com/users/Sam-Kramer/subscriptionsj] ,https://api.github.com/users/Sam-Kramer/orgsj_ -https://api.github.com/users/Sam-Kramer/reposja 8https://api.github.com/users/Sam-Kramer/events{/privacy}jc 7https://api.github.com/users/Sam-Kramer/received_eventsje Userjg uparents]}(j (062ad8aff7a89bd748c1c54aad94541ed4a64a87j7 ^https://api.github.com/repos/palantir/atlasdb/commits/062ad8aff7a89bd748c1c54aad94541ed4a64a87jE Shttps://github.com/palantir/atlasdb/commit/062ad8aff7a89bd748c1c54aad94541ed4a64a87uastats}(totalK	additionsK	deletionsKufiles]}(j (88f0f28dbbd95e312ac9e754ff091d54de2bee6dfilenamepatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraClientPoolMetricsTest.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/9185e51622876d23398a1f39126c204f1a17a504/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/9185e51622876d23398a1f39126c204f1a17a504/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraClientPoolMetricsTest.java?ref=9185e51622876d23398a1f39126c204f1a17a504patchXN  @@ -59,7 +59,7 @@ public void metricsAreProducedAndFiltered() {
     }
 
     @Test
-    public void recordPoolSizeCorrectlySetsSize() {
+    public void recordPoolSizeSetsSizeToLastReportedValue() {
         metrics.recordPoolSize(100);
         assertThat(metrics.getPoolSize()).isEqualTo(100);
         metrics.recordPoolSize(-13);uau(720d0e8e70e1633704a6ba93946ce9e78636fc11}(sha(720d0e8e70e1633704a6ba93946ce9e78636fc11node_idEC_kwDOAjP5fdoAKDcyMGQwZThlNzBlMTYzMzcwNGE2YmE5Mzk0NmNlOWU3ODYzNmZjMTEcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-03-23T16:06:31Zu	committer}(j GitHubj noreply@github.comj 2023-03-23T16:06:31Zumessage9Excavator:  Update open-source publishing plugins (#6469)tree}(j (0eacfc6be5ac6049260d71fcdb728fa9f6cc11cfurl`https://api.github.com/repos/palantir/atlasdb/git/trees/0eacfc6be5ac6049260d71fcdb728fa9f6cc11cfuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/720d0e8e70e1633704a6ba93946ce9e78636fc11
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkHHkHCRBK7hj4Ov3rIwAAsJEIAEjoBsuWQMHB+0Nu+EQOowBR
x9BlkGECRXEDoY0kixwf4n+L6ccQmsLe55avQVNaEZBGMdxJYa4Mwy0XblYkqE6c
hHMgEXVsfWzBtV8Ux7hRId9CuV8nVH49EHSZ1+eT0EaiZELzmzQYuKPS3PI4J/cE
AGfewpXI1nqiGRbfgdR23hzOKVD4uRb/djbHa2L/PqiK+uTjG2akvZwmynZB8xoq
+KDMCg/bEmC/MwEHJAkMw+8PbMsFgyYrmQyzguip6PX1L2YWFec5ow25pf3j7Yok
Ihc1m421CvdJI2+spYC3YOI+UGkr2Td0G0ICycMkw0TLZ/TNYpkNaeSp2065N5o=
=LhcG
-----END PGP SIGNATURE-----
payloadX.  tree 0eacfc6be5ac6049260d71fcdb728fa9f6cc11cf
parent 5a07e2462e19aee5b13cc1d65dd3c6871747c97d
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1679587591 +0000
committer GitHub <noreply@github.com> 1679587591 +0000

Excavator:  Update open-source publishing plugins (#6469)

 uuj ^https://api.github.com/repos/palantir/atlasdb/commits/720d0e8e70e1633704a6ba93946ce9e78636fc11html_urlShttps://github.com/palantir/atlasdb/commit/720d0e8e70e1633704a6ba93946ce9e78636fc11comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/720d0e8e70e1633704a6ba93946ce9e78636fc11/commentsj }(loginsvc-excavator-botidJj MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5j .https://api.github.com/users/svc-excavator-botj $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminuj }(j web-flowjà J/j MDQ6VXNlcjE5ODY0NDQ3jŠ 4https://avatars.githubusercontent.com/u/19864447?v=4jǠ h5j %https://api.github.com/users/web-flowj https://github.com/web-flowjʠ /https://api.github.com/users/web-flow/followersj̠ <https://api.github.com/users/web-flow/following{/other_user}jΠ 5https://api.github.com/users/web-flow/gists{/gist_id}jР <https://api.github.com/users/web-flow/starred{/owner}{/repo}jҠ 3https://api.github.com/users/web-flow/subscriptionsjԠ *https://api.github.com/users/web-flow/orgsj֠ +https://api.github.com/users/web-flow/reposjؠ 6https://api.github.com/users/web-flow/events{/privacy}jڠ 5https://api.github.com/users/web-flow/received_eventsjܠ Userjޠ uparents]}(j (5a07e2462e19aee5b13cc1d65dd3c6871747c97dj ^https://api.github.com/repos/palantir/atlasdb/commits/5a07e2462e19aee5b13cc1d65dd3c6871747c97dj Shttps://github.com/palantir/atlasdb/commit/5a07e2462e19aee5b13cc1d65dd3c6871747c97duastats}(totalK	additionsK	deletionsKufiles]}(j (5b6e6ba0effbb79875f5e92ada2781b786bc64d2filenamebuild.gradlestatusmodifiedj Kj KchangesKblob_url^https://github.com/palantir/atlasdb/blob/720d0e8e70e1633704a6ba93946ce9e78636fc11/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/720d0e8e70e1633704a6ba93946ce9e78636fc11/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=720d0e8e70e1633704a6ba93946ce9e78636fc11patchX  @@ -13,7 +13,7 @@ buildscript {
         classpath 'com.palantir.gradle.conjure:gradle-conjure:5.34.0'
         classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
-        classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.11.0'
+        classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:1.0.0'
         classpath 'com.palantir.gradle.jdks:gradle-jdks:0.31.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'uau(e147c1498a20982bf2da68dbde5e6ccdf6d41dc9}(sha(e147c1498a20982bf2da68dbde5e6ccdf6d41dc9node_idEC_kwDOAjP5fdoAKGUxNDdjMTQ5OGEyMDk4MmJmMmRhNjhkYmRlNWU2Y2NkZjZkNDFkYzkcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-08-01T16:16:23Zu	committer}(j Lucas Meirelesj meireles31@msn.comj 2023-08-01T16:16:23Zumessageimporttree}(j
 (eef9524b1c1924ab0cea4414dad668e3d3987abdurl`https://api.github.com/repos/palantir/atlasdb/git/trees/eef9524b1c1924ab0cea4414dad668e3d3987abduj% bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e147c1498a20982bf2da68dbde5e6ccdf6d41dc9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmTJL9cACgkQJd22kJ7J
Gix9bQf/Sa2KeNthxq96TGQtF+1nx+3ADVs4yDONraRePx2dvErr3hV+H7gj/n4A
bHTFl5hvnZqsNheCmO3TLiLbAfOEUvMV0SYyupXqglfn1FDtwTz6OnrM5zXM4ZSn
jYgRGDQBEkyQ+/yNTvjb05PpfMtGEMMTMxYcN1rUXMbPGuNDt+aIyAeIuI9iRyR9
TwMgpP4/zk/UWWcKMMQQtZfybyF/Qyb5q6f46hcQMGCt8OhETl2ee1MiqmOgB15T
3fXRXPQQU2J8cYL60x47hnU9qEk6ONJc5LM1I92Yp8Bk0fSUqVXV3ubMIdRcdnCU
H48IMHnHchGJAwFsOpVip7YOJs/lDA==
=FoF3
-----END PGP SIGNATURE-----payloadtree eef9524b1c1924ab0cea4414dad668e3d3987abd
parent 8f0a05d1f943f7af548232f68a1ca8f5d2c47a40
author Lucas Meireles <meireles31@msn.com> 1690906583 +0100
committer Lucas Meireles <meireles31@msn.com> 1690906583 +0100

import
uuj% ^https://api.github.com/repos/palantir/atlasdb/commits/e147c1498a20982bf2da68dbde5e6ccdf6d41dc9html_urlShttps://github.com/palantir/atlasdb/commit/e147c1498a20982bf2da68dbde5e6ccdf6d41dc9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e147c1498a20982bf2da68dbde5e6ccdf6d41dc9/commentsj }(loginLucasIMEidJg j MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j% %https://api.github.com/users/LucasIMEj3 https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j8 LucasIMEj: Jg j MDQ6VXNlcjY3ODczMTE=j< 3https://avatars.githubusercontent.com/u/6787311?v=4j> h5j% %https://api.github.com/users/LucasIMEj3 https://github.com/LucasIMEjA /https://api.github.com/users/LucasIME/followersjC <https://api.github.com/users/LucasIME/following{/other_user}jE 5https://api.github.com/users/LucasIME/gists{/gist_id}jG <https://api.github.com/users/LucasIME/starred{/owner}{/repo}jI 3https://api.github.com/users/LucasIME/subscriptionsjK *https://api.github.com/users/LucasIME/orgsjM +https://api.github.com/users/LucasIME/reposjO 6https://api.github.com/users/LucasIME/events{/privacy}jQ 5https://api.github.com/users/LucasIME/received_eventsjS UserjU uparents]}(j
 (8f0a05d1f943f7af548232f68a1ca8f5d2c47a40j% ^https://api.github.com/repos/palantir/atlasdb/commits/8f0a05d1f943f7af548232f68a1ca8f5d2c47a40j3 Shttps://github.com/palantir/atlasdb/commit/8f0a05d1f943f7af548232f68a1ca8f5d2c47a40uastats}(totalK	additionsK	deletionsK ufiles]}(j
 (5fca36618f56510fc960afc78b4acb236c6c5389filenameeatlasdb-tests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.javastatusmodifiedjo Kjp K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/e147c1498a20982bf2da68dbde5e6ccdf6d41dc9/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e147c1498a20982bf2da68dbde5e6ccdf6d41dc9/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-tests-shared%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransactionTest.java?ref=e147c1498a20982bf2da68dbde5e6ccdf6d41dc9patchXE  @@ -133,6 +133,7 @@
 import com.palantir.lock.v2.LockResponse;
 import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.UnsafeArg;
 import com.palantir.logsafe.exceptions.SafeIllegalStateException;
 import io.vavr.collection.HashMap;
 import io.vavr.collection.HashSet;uau(da6069d1c463d725ddea27f27ce1503f05e08bee}(sha(da6069d1c463d725ddea27f27ce1503f05e08beenode_idEC_kwDOAjP5fdoAKGRhNjA2OWQxYzQ2M2Q3MjVkZGVhMjdmMjdjZTE1MDNmMDVlMDhiZWUcommit}(author}(name
svc-changelogemailsvc-changelog@palantir.comdate2023-05-25T12:43:17Zu	committer}(j 
svc-changelogj svc-changelog@palantir.comj 2023-05-25T12:43:17ZumessageAdd generated changelog entriestree}(j (d1d6e94b20e2ab08de36ffd599fd644cc9ce2c16url`https://api.github.com/repos/palantir/atlasdb/git/trees/d1d6e94b20e2ab08de36ffd599fd644cc9ce2c16uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/da6069d1c463d725ddea27f27ce1503f05e08bee
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

wl4EABMIABAFAmRvV+UJEHYaJX37fAFQAAC+9gD+NbxT8hQpHdD5MXML+mWR2KmJ
PQDlvueAHNGthTE6oeQA/RVhpBcA2R5O3xcJibUimyy2KH3UXOn5qJmmKtNHr1B9
=qVAn
-----END PGP SIGNATURE-----payloadX  tree d1d6e94b20e2ab08de36ffd599fd644cc9ce2c16
parent fc603e454bd736bdbc4585d62bf87fd90acff87a
author svc-changelog <svc-changelog@palantir.com> 1685018597 +0000
committer svc-changelog <svc-changelog@palantir.com> 1685018597 +0000

Add generated changelog entriesuuj ^https://api.github.com/repos/palantir/atlasdb/commits/da6069d1c463d725ddea27f27ce1503f05e08beehtml_urlShttps://github.com/palantir/atlasdb/commit/da6069d1c463d725ddea27f27ce1503f05e08beecomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/da6069d1c463d725ddea27f27ce1503f05e08bee/commentsj }(login
svc-changelogidJ#j MDQ6VXNlcjg0MDc3NjAz
avatar_url4https://avatars.githubusercontent.com/u/84077603?v=4gravatar_idh5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelog
followers_url4https://api.github.com/users/svc-changelog/followers
following_urlAhttps://api.github.com/users/svc-changelog/following{/other_user}	gists_url:https://api.github.com/users/svc-changelog/gists{/gist_id}starred_urlAhttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}subscriptions_url8https://api.github.com/users/svc-changelog/subscriptionsorganizations_url/https://api.github.com/users/svc-changelog/orgs	repos_url0https://api.github.com/users/svc-changelog/repos
events_url;https://api.github.com/users/svc-changelog/events{/privacy}received_events_url:https://api.github.com/users/svc-changelog/received_eventstypeUser
site_adminuj }(j 
svc-changelogj J#j MDQ6VXNlcjg0MDc3NjAzj 4https://avatars.githubusercontent.com/u/84077603?v=4j h5j *https://api.github.com/users/svc-changelogj  https://github.com/svc-changelogj 4https://api.github.com/users/svc-changelog/followersj Ahttps://api.github.com/users/svc-changelog/following{/other_user}j :https://api.github.com/users/svc-changelog/gists{/gist_id}j Ahttps://api.github.com/users/svc-changelog/starred{/owner}{/repo}j 8https://api.github.com/users/svc-changelog/subscriptionsj¡ /https://api.github.com/users/svc-changelog/orgsjġ 0https://api.github.com/users/svc-changelog/reposjơ ;https://api.github.com/users/svc-changelog/events{/privacy}jȡ :https://api.github.com/users/svc-changelog/received_eventsjʡ Userj̡ uparents]}(j (fc603e454bd736bdbc4585d62bf87fd90acff87aj ^https://api.github.com/repos/palantir/atlasdb/commits/fc603e454bd736bdbc4585d62bf87fd90acff87aj Shttps://github.com/palantir/atlasdb/commit/fc603e454bd736bdbc4585d62bf87fd90acff87auastats}(totalK	additionsK	deletionsK ufiles]}(j (b92e0f6636b00a68d6b900daa1da10ff5cbb9a1efilename$changelog/@unreleased/pr-6595.v2.ymlstatusaddedj Kj K changesKblob_url|https://github.com/palantir/atlasdb/blob/da6069d1c463d725ddea27f27ce1503f05e08bee/changelog%2F%40unreleased%2Fpr-6595.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/da6069d1c463d725ddea27f27ce1503f05e08bee/changelog%2F%40unreleased%2Fpr-6595.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6595.v2.yml?ref=da6069d1c463d725ddea27f27ce1503f05e08beepatch@@ -0,0 +1,5 @@
+type: feature
+feature:
+  description: '[TEX] Report transaction level metrics'
+  links:
+  - https://github.com/palantir/atlasdb/pull/6595uau(e6d52e1c392f3e44373e2200fdce8a27d6369a83}(sha(e6d52e1c392f3e44373e2200fdce8a27d6369a83node_idEC_kwDOAjP5fdoAKGU2ZDUyZTFjMzkyZjNlNDQzNzNlMjIwMGZkY2U4YTI3ZDYzNjlhODMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-16T19:28:09Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-03-16T19:28:09Zumessageanother bug in ccpi!tree}(j (dbe4b04e4fd128c3fa5c990d0ac7ffce78ac1e20url`https://api.github.com/repos/palantir/atlasdb/git/trees/dbe4b04e4fd128c3fa5c990d0ac7ffce78ac1e20uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e6d52e1c392f3e44373e2200fdce8a27d6369a83
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQTbckACgkQmPPOpKR4
XS3iJwgAsr1TDdtSZG89AMZYPSPQRtZ8mUHI0lv18ZY76AX+Asy6ggkTwSYG58GO
5chKq73NGJpWnpN1IZuSTK2bArxF1Mj6TxktLyzaywoYNkGAIaqRFfp1mb8mS4S6
vCArXiGw8Miqdxzu0I2FeKs2fCoFBIRI+QoWSUjw7S23z6+8F1JItLh5qB7Wcs0B
pR3p86j+HS6oSXhPS4vXIihGB0DSGX3d6xFeU3yy34geEzOC3EQ0Y0Z5FxqCIEXN
rUkxetHGEMPCHBJwq/iYgB/06mIvm5D+YyaAr1z5Ils2xlvgVr9crxDWTSyFqeC+
l4fUXHQmkxRqxnV/rDp9RkUSl9B6BA==
=DZa/
-----END PGP SIGNATURE-----payloadtree dbe4b04e4fd128c3fa5c990d0ac7ffce78ac1e20
parent 82c974208a8c9b802173e8cfe1ee01a349c12e2c
author Sam Kramer <skramer@palantir.com> 1678994889 +0000
committer Sam Kramer <skramer@palantir.com> 1678994889 +0000

another bug in ccpi!
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/e6d52e1c392f3e44373e2200fdce8a27d6369a83html_urlShttps://github.com/palantir/atlasdb/commit/e6d52e1c392f3e44373e2200fdce8a27d6369a83comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e6d52e1c392f3e44373e2200fdce8a27d6369a83/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj! https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj	 }(j& 
Sam-Kramerj( J^2_ j MDQ6VXNlcjYyMzg4MTQ=j* 3https://avatars.githubusercontent.com/u/6238814?v=4j, h5j 'https://api.github.com/users/Sam-Kramerj! https://github.com/Sam-Kramerj/ 1https://api.github.com/users/Sam-Kramer/followersj1 >https://api.github.com/users/Sam-Kramer/following{/other_user}j3 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j5 >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j7 5https://api.github.com/users/Sam-Kramer/subscriptionsj9 ,https://api.github.com/users/Sam-Kramer/orgsj; -https://api.github.com/users/Sam-Kramer/reposj= 8https://api.github.com/users/Sam-Kramer/events{/privacy}j? 7https://api.github.com/users/Sam-Kramer/received_eventsjA UserjC uparents]}(j (82c974208a8c9b802173e8cfe1ee01a349c12e2cj ^https://api.github.com/repos/palantir/atlasdb/commits/82c974208a8c9b802173e8cfe1ee01a349c12e2cj! Shttps://github.com/palantir/atlasdb/commit/82c974208a8c9b802173e8cfe1ee01a349c12e2cuastats}(totalK	additionsK	deletionsK ufiles]}(j (ee3712e77682ab7d2d4fd0f90cefcdf4eee278f6filenamekatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/CassandraTopologyValidatorTest.javastatusmodifiedj] Kj^ K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/e6d52e1c392f3e44373e2200fdce8a27d6369a83/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e6d52e1c392f3e44373e2200fdce8a27d6369a83/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2FCassandraTopologyValidatorTest.java?ref=e6d52e1c392f3e44373e2200fdce8a27d6369a83patchX  @@ -442,6 +442,17 @@ public void returnsAllNewHostsIfConsensusOnConfigHostsDiffersFromPreviousWhenNoQ
                 .containsExactlyInAnyOrderElementsOf(allCassandraServers);
     }
 
+    @Test
+    public void anotherBugInCassandraClientPool() {
+        Map<CassandraServer, CassandraClientPoolingContainer> allHosts = setupHosts(ALL_HOSTS);
+        setHostIds(
+                filterContainers(allHosts, Predicate.not(OLD_HOST_ONE::equalsIgnoreCase)), HostIdResult.success(UUIDS));
+        setHostIds(filterContainers(allHosts, OLD_HOST_ONE::equalsIgnoreCase), HostIdResult.hardFailure());
+        Set<CassandraServer> servers = validator.getNewHostsWithInconsistentTopologies(
+                CassandraServerOrigin.mapAllServersToOrigin(allHosts.keySet(), CassandraServerOrigin.CONFIG), allHosts);
+        assertThat(servers.size()).isEqualTo(1);
+    }
+
     @Test
     public void validateNewlyAddedHostsNoNewHostsAddedIfNewHostsDoNotHaveQuorumAndNoCurrentServers() {
         Set<String> hosts = ImmutableSet.<String>builder()uau(6a1426f54f84f94c765aafd53a3c76c09a62aeb6}(sha(6a1426f54f84f94c765aafd53a3c76c09a62aeb6node_idEC_kwDOAjP5fdoAKDZhMTQyNmY1NGY4NGY5NGM3NjVhYWZkNTNhM2M3NmMwOWE2MmFlYjYcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-08-01T12:19:21Zu	committer}(jz Lucas Meirelesj| meireles31@msn.comj~ 2023-08-01T12:19:21Zumessage7Treat interrupted and execution exceptions differently.tree}(jr (9845c52d09bba4c0f79c7e8808c67e03ba7bf3ceurl`https://api.github.com/repos/palantir/atlasdb/git/trees/9845c52d09bba4c0f79c7e8808c67e03ba7bf3ceuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/6a1426f54f84f94c765aafd53a3c76c09a62aeb6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmTI+EoACgkQJd22kJ7J
GizhUgf+LqwCrJOtnB7W1SMPdIV7BIqyVta0gsplB0WTODGftVaEO7AXbUZp/+Jl
TBQIH4509QJSzRJBHzu0TDP/dTNiAErt/O6z5sQqUqaUAINFWuZsOxyiiWTeswTc
Ad+adRX4I7STza63DedyTfufA1e5IESPDLZuc7fp5+XDc5AV/lukAmq6/0auvPEs
RsNSlsEMyxa/5qWaW2GuE5Ud058r+Pu2gFR3KvhB1jmXsQnYhKOLDfrw0hFx76ac
eX8VXNpskmYYCEuAZeIZz64G7VmkFKogx3JYW5vZBJLXoPLFtF+YxYpRg4FgN726
LqWY7iZ7Zy3IxNPdvJ5GRP3xqdUSWg==
=5xYY
-----END PGP SIGNATURE-----payloadX  tree 9845c52d09bba4c0f79c7e8808c67e03ba7bf3ce
parent 918ead8d3ad89496e197ccd0f48752cb2666fc4b
author Lucas Meireles <meireles31@msn.com> 1690892361 +0100
committer Lucas Meireles <meireles31@msn.com> 1690892361 +0100

Treat interrupted and execution exceptions differently.
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/6a1426f54f84f94c765aafd53a3c76c09a62aeb6html_urlShttps://github.com/palantir/atlasdb/commit/6a1426f54f84f94c765aafd53a3c76c09a62aeb6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/6a1426f54f84f94c765aafd53a3c76c09a62aeb6/commentsjx }(loginLucasIMEidJg jt MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminuj }(j LucasIMEj Jg jt MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5j %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsj Userj uparents]}(jr (918ead8d3ad89496e197ccd0f48752cb2666fc4bj ^https://api.github.com/repos/palantir/atlasdb/commits/918ead8d3ad89496e197ccd0f48752cb2666fc4bj Shttps://github.com/palantir/atlasdb/commit/918ead8d3ad89496e197ccd0f48752cb2666fc4buastats}(totalK	additionsK		deletionsKufiles](}(jr (fae192c6d6cd6926eac7cc9fff9d368dc9d00656filenameZatlasdb-client/src/main/java/com/palantir/atlasdb/transaction/impl/CachingTransaction.javastatusmodifiedjԢ Kjբ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/6a1426f54f84f94c765aafd53a3c76c09a62aeb6/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/6a1426f54f84f94c765aafd53a3c76c09a62aeb6/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-client%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FCachingTransaction.java?ref=6a1426f54f84f94c765aafd53a3c76c09a62aeb6patchX  @@ -152,7 +152,9 @@ public Map<Cell, byte[]> getWithExpectedNumberOfCells(
                                 tableReference, toRead, numberOfCellsExpectingValuePostCache));
                     })
                     .get();
-        } catch (InterruptedException | ExecutionException e) {
+        } catch (InterruptedException e) {
+            throw Throwables.rewrapAndThrowUncheckedException(e);
+        } catch (ExecutionException e) {
             throw Throwables.rewrapAndThrowUncheckedException(e.getCause());
         }
     }u}(jr (e303aa43ec9568114cac46d463b3495685db4c70jڢ datlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.javajܢ modifiedjԢ Kjբ Kjޢ Kjߢ https://github.com/palantir/atlasdb/blob/6a1426f54f84f94c765aafd53a3c76c09a62aeb6/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaj https://github.com/palantir/atlasdb/raw/6a1426f54f84f94c765aafd53a3c76c09a62aeb6/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSerializableTransaction.java?ref=6a1426f54f84f94c765aafd53a3c76c09a62aeb6j X  @@ -316,7 +316,9 @@ public Map<Cell, byte[]> get(TableReference tableRef, Set<Cell> cells) {
                             cells,
                             (tableReference, toRead) -> Futures.immediateFuture(super.get(tableRef, toRead)))
                     .get();
-        } catch (InterruptedException | ExecutionException e) {
+        } catch (InterruptedException e) {
+            throw Throwables.rewrapAndThrowUncheckedException(e);
+        } catch (ExecutionException e) {
             throw Throwables.rewrapAndThrowUncheckedException(e.getCause());
         }
     }
@@ -333,7 +335,9 @@ public Map<Cell, byte[]> getWithExpectedNumberOfCells(
                             (tableReference, toRead) -> Futures.immediateFuture(super.getWithExpectedNumberOfCells(
                                     tableReference, toRead, expectedNumberOfPresentCells)))
                     .get();
-        } catch (InterruptedException | ExecutionException e) {
+        } catch (InterruptedException e) {
+            throw Throwables.rewrapAndThrowUncheckedException(e);
+        } catch (ExecutionException e) {
             throw Throwables.rewrapAndThrowUncheckedException(e.getCause());
         }
     }ueu(59b3c30fafe332adb06145bba42343804db0392a}(sha(59b3c30fafe332adb06145bba42343804db0392anode_idEC_kwDOAjP5fdoAKDU5YjNjMzBmYWZlMzMyYWRiMDYxNDViYmE0MjM0MzgwNGRiMDM5MmEcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-03-02T10:23:13Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-03-02T10:23:13Zumessagesome changestree}(j (090cdb94f69a1319b4836d970786cebc56ca6b4burl`https://api.github.com/repos/palantir/atlasdb/git/trees/090cdb94f69a1319b4836d970786cebc56ca6b4buj	 bhttps://api.github.com/repos/palantir/atlasdb/git/commits/59b3c30fafe332adb06145bba42343804db0392a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmQAeRIACgkQmPPOpKR4
XS1w5AgArUCdj9Thd3cV9N4DiCGgnUoQZW8v+tiUM1C1rTa1Xfycv8nA4DMQs+G5
pW5yOECz8VQeg+bv5/Aj0bGM+65xA6L72wLhCm0/ynVnLbul2HUFU3h1LNFIz9GF
JO4LwwiWuv7FVu6JthZ60umsqE0+uA1Yq9l+9jkZTS/EAB7LFfwn+iF0W9PDBwbu
FlRKBzMEqz/IehbEEsf3DTSH74AUcEiACI86mjGm+UlJ3zKsNdUaCRZzvmH2laiN
ou8eGwSYv3ncReS67EtHNCzst4w8YGiETM4+Al5AIxsJAQxmGximd9/OfDAnlnWz
4jg/+mMck9jCxY//RdtaoULfavKjuQ==
=mzCK
-----END PGP SIGNATURE-----payloadtree 090cdb94f69a1319b4836d970786cebc56ca6b4b
parent f918ded5196b553bedc95a076d4871d8f5652047
author Sam Kramer <skramer@palantir.com> 1677752593 +0000
committer Sam Kramer <skramer@palantir.com> 1677752593 +0000

some changes
uuj	 ^https://api.github.com/repos/palantir/atlasdb/commits/59b3c30fafe332adb06145bba42343804db0392ahtml_urlShttps://github.com/palantir/atlasdb/commit/59b3c30fafe332adb06145bba42343804db0392acomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/59b3c30fafe332adb06145bba42343804db0392a/commentsj }(login
Sam-KrameridJ^2_ j MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j	 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j 
Sam-Kramerj J^2_ j MDQ6VXNlcjYyMzg4MTQ=j  3https://avatars.githubusercontent.com/u/6238814?v=4j" h5j	 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj% 1https://api.github.com/users/Sam-Kramer/followersj' >https://api.github.com/users/Sam-Kramer/following{/other_user}j) 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j+ >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j- 5https://api.github.com/users/Sam-Kramer/subscriptionsj/ ,https://api.github.com/users/Sam-Kramer/orgsj1 -https://api.github.com/users/Sam-Kramer/reposj3 8https://api.github.com/users/Sam-Kramer/events{/privacy}j5 7https://api.github.com/users/Sam-Kramer/received_eventsj7 Userj9 uparents]}(j (f918ded5196b553bedc95a076d4871d8f5652047j	 ^https://api.github.com/repos/palantir/atlasdb/commits/f918ded5196b553bedc95a076d4871d8f5652047j Shttps://github.com/palantir/atlasdb/commit/f918ded5196b553bedc95a076d4871d8f5652047uastats}(totalK)	additionsK	deletionsKufiles](}(j (d064e7e00e1621d3afa3e8de9e84d844998a9a76filename`atlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/invariant/Invariant.javastatusmodifiedjS KjT K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/59b3c30fafe332adb06145bba42343804db0392a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariant.javaraw_urlhttps://github.com/palantir/atlasdb/raw/59b3c30fafe332adb06145bba42343804db0392a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariant.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FInvariant.java?ref=59b3c30fafe332adb06145bba42343804db0392apatchX  @@ -19,4 +19,8 @@
 import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
 import java.util.function.Consumer;
 
+/**
+ * Check for an invariant given the provided {@link WorkflowHistory}.
+ * It's up to the implementing class on how-to handle if an invariant is violated, such as logging or firing a metric.
+ */
 public interface Invariant extends Consumer<WorkflowHistory> {}u}(j (dc55272c2c76e1ec6bd23d584c66afa1c3840e26jY datlasdb-workload-server-api/src/main/java/com/palantir/atlasdb/workload/store/TableWorkloadCell.javaj[ modifiedjS KjT K j] Kj^ https://github.com/palantir/atlasdb/blob/59b3c30fafe332adb06145bba42343804db0392a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTableWorkloadCell.javaj` https://github.com/palantir/atlasdb/raw/59b3c30fafe332adb06145bba42343804db0392a/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTableWorkloadCell.javajb https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FTableWorkloadCell.java?ref=59b3c30fafe332adb06145bba42343804db0392ajd X  @@ -18,6 +18,9 @@
 
 import org.immutables.value.Value;
 
+/**
+ * Convenient class which combines table name and cell, for convenient usage in {@link java.util.Map} or other similar interfaces.
+ */
 @Value.Immutable
 public interface TableWorkloadCell {
 u}(j (de574621a6adbbf37ebd8db719a66d175d3ddd70jY iatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/DurableWritesInvariant.javaj[ modifiedjS KjT Kj] K"j^ https://github.com/palantir/atlasdb/blob/59b3c30fafe332adb06145bba42343804db0392a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javaj` https://github.com/palantir/atlasdb/raw/59b3c30fafe332adb06145bba42343804db0392a/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.javajb https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FDurableWritesInvariant.java?ref=59b3c30fafe332adb06145bba42343804db0392ajd X+  @@ -39,17 +39,7 @@ public class DurableWritesInvariant implements Invariant {
     private final Consumer<Map<TableWorkloadCell, Integer>> undeletedCellsConsumer;
 
     public DurableWritesInvariant() {
-        this(
-                mismatchingValues -> mismatchingValues.forEach((cell, mismatchedValue) -> log.error(
-                        "In-memory state does not match external transactional store.",
-                        SafeArg.of("table", cell.tableName()),
-                        SafeArg.of("cell", cell.cell()),
-                        SafeArg.of("mismatchedValue", mismatchedValue))),
-                undeletedCells -> undeletedCells.forEach((cell, value) -> log.error(
-                        "Cell existed when it is expected to be deleted.",
-                        SafeArg.of("tableName", cell.tableName()),
-                        SafeArg.of("cell", cell.cell()),
-                        SafeArg.of("value", value))));
+        this(DurableWritesInvariant::logMismatchingCells, DurableWritesInvariant::logUndeletedCells);
     }
 
     @VisibleForTesting
@@ -69,8 +59,7 @@ public void accept(WorkflowHistory workflowHistory) {
                 findCellsThatAreNotDeleted(expectedState.deletedCells(), workflowHistory.transactionStore()));
     }
 
-    @VisibleForTesting
-    Map<TableWorkloadCell, MismatchedValue> findCellsThatDoNotMatch(
+    private Map<TableWorkloadCell, MismatchedValue> findCellsThatDoNotMatch(
             Map<TableWorkloadCell, Integer> expectedCells, ReadableTransactionStore storeToValidate) {
         return EntryStream.of(expectedCells)
                 .mapToValue((writtenCell, expectedValue) -> {
@@ -85,13 +74,28 @@ Map<TableWorkloadCell, MismatchedValue> findCellsThatDoNotMatch(
                 .toMap();
     }
 
-    @VisibleForTesting
-    Map<TableWorkloadCell, Integer> findCellsThatAreNotDeleted(
+    private Map<TableWorkloadCell, Integer> findCellsThatAreNotDeleted(
             Set<TableWorkloadCell> cells, ReadableTransactionStore storeToValidate) {
         return StreamEx.of(cells)
                 .mapToEntry(cell -> storeToValidate.get(cell.tableName(), cell.cell()))
                 .removeValues(Optional::isEmpty)
                 .mapValues(Optional::get)
                 .toMap();
     }
+
+    private static void logMismatchingCells(Map<TableWorkloadCell, MismatchedValue> mismatchingCells) {
+        mismatchingCells.forEach((cell, mismatchedValue) -> log.error(
+                "In-memory state does not match external transactional store.",
+                SafeArg.of("table", cell.tableName()),
+                SafeArg.of("cell", cell.cell()),
+                SafeArg.of("mismatchedValue", mismatchedValue)));
+    }
+
+    private static void logUndeletedCells(Map<TableWorkloadCell, Integer> undeletedCells) {
+        undeletedCells.forEach((cell, value) -> log.error(
+                "Cell existed when it is expected to be deleted.",
+                SafeArg.of("tableName", cell.tableName()),
+                SafeArg.of("cell", cell.cell()),
+                SafeArg.of("value", value)));
+    }
 }ueu(908e618d03f24423c48d76c1ca2cde542fb4aa99}(sha(908e618d03f24423c48d76c1ca2cde542fb4aa99node_idEC_kwDOAjP5fdoAKDkwOGU2MThkMDNmMjQ0MjNjNDhkNzZjMWNhMmNkZTU0MmZiNGFhOTkcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-14T09:51:49Zu	committer}(j 	Tom Papkej tpapke@palantir.comj 2023-06-14T09:51:49ZumessageAddress small commentstree}(jx (babf62a95a4e4526baaf96a3545c6bd3d542ff3aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/babf62a95a4e4526baaf96a3545c6bd3d542ff3auj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/908e618d03f24423c48d76c1ca2cde542fb4aa99
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSJjbYACgkQmF9s0kaF
Iw2EPQgApU8eMO92ZIw91phVRRf1u1FoKV/T3HQyE6FCA8zAmt54mCbyFCnGXzRO
69ddkWm+R5H8yw8gFTkQhBObfbEeu9TjEVoItP3ZRH5gl0vsTFF6bxj3rNxXd14x
dDe64Gsfw6YqyslTMijwgRIr9ViLaG8pR3HTvfF2k6rpnqWPYWJB3hCBhGbCw9j4
A3iiSqUdYdJ4P9os/3jXcDUNMtxnlKH6+DT8tWkhsSemtWoekdBs1MxBuuhaAvJU
kDVs0hJUo3sP/IphjzFhtKqdlOPPmxEQ7hb4JISU1B6cXDhTM+pIH9WCU6S/8nzl
W8QiHpXOEVlSkxbBlEz3RQo3S4KwZw==
=DjW3
-----END PGP SIGNATURE-----payloadtree babf62a95a4e4526baaf96a3545c6bd3d542ff3a
parent 0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7
author Tom Papke <tpapke@palantir.com> 1686736309 +0100
committer Tom Papke <tpapke@palantir.com> 1686736309 +0100

Address small comments
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/908e618d03f24423c48d76c1ca2cde542fb4aa99html_urlShttps://github.com/palantir/atlasdb/commit/908e618d03f24423c48d76c1ca2cde542fb4aa99comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/908e618d03f24423c48d76c1ca2cde542fb4aa99/commentsj~ }(login	ToemmscheidJbojz MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5j &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminuj }(j 	Toemmschej Jbojz MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5j &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj Userj uparents]}(jx (0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7j ^https://api.github.com/repos/palantir/atlasdb/commits/0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7j Shttps://github.com/palantir/atlasdb/commit/0ec00d2d0a56405e6a7e84d7aba1ac2c79425ec7uastats}(totalK 	additionsK	deletionsKufiles](}(jx (11798108f5011933229198de0ecd0a9b6b828e68filenamelock-impl/build.gradlestatusmodifiedjڣ K jۣ KchangesKblob_urljhttps://github.com/palantir/atlasdb/blob/908e618d03f24423c48d76c1ca2cde542fb4aa99/lock-impl%2Fbuild.gradleraw_urlihttps://github.com/palantir/atlasdb/raw/908e618d03f24423c48d76c1ca2cde542fb4aa99/lock-impl%2Fbuild.gradlecontents_url|https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fbuild.gradle?ref=908e618d03f24423c48d76c1ca2cde542fb4aa99patchX  @@ -13,7 +13,6 @@ dependencies {
   implementation 'com.palantir.safe-logging:preconditions'
   implementation 'com.palantir.safe-logging:safe-logging'
   implementation 'joda-time:joda-time'
-  implementation 'one.util:streamex'
   implementation 'org.eclipse.collections:eclipse-collections'
   implementation 'org.eclipse.collections:eclipse-collections-api'
   implementation 'org.slf4j:slf4j-api'u}(jx (de1728573711fd52c74bd9c4b9da5dac1b845b1aj Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj modifiedjڣ Kjۣ Kj Kj https://github.com/palantir/atlasdb/blob/908e618d03f24423c48d76c1ca2cde542fb4aa99/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://github.com/palantir/atlasdb/raw/908e618d03f24423c48d76c1ca2cde542fb4aa99/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=908e618d03f24423c48d76c1ca2cde542fb4aa99j X(  @@ -1234,7 +1234,7 @@ public long currentTimeMillis() {
     }
 
     public LockThreadInfoSnapshotManager getSnapshotManager() {
-        return this.threadInfoSnapshotManager;
+        return threadInfoSnapshotManager;
     }
 
     private static String updateThreadName(LockRequest request) {u}(jx (809fbe7445ab02562941cd3e5c4b33ac4978e3f5j Qlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javaj modifiedjڣ Kjۣ Kj Kj https://github.com/palantir/atlasdb/blob/908e618d03f24423c48d76c1ca2cde542fb4aa99/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj https://github.com/palantir/atlasdb/raw/908e618d03f24423c48d76c1ca2cde542fb4aa99/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=908e618d03f24423c48d76c1ca2cde542fb4aa99j X  @@ -70,12 +70,12 @@ private void scheduleRun() {
 
     @VisibleForTesting
     Map<LockDescriptor, LockClientAndThread> getLastKnownThreadInfoSnapshot() {
-        return this.lastKnownThreadInfoSnapshot;
+        return lastKnownThreadInfoSnapshot;
     }
 
     @VisibleForTesting
     void takeSnapshot() {
-        this.lastKnownThreadInfoSnapshot = tokenMapSupplier.get().keySet().stream()
+        lastKnownThreadInfoSnapshot = tokenMapSupplier.get().keySet().stream()
                 .flatMap(token -> {
                     LockClientAndThread clientThread = LockClientAndThread.of(
                             Objects.requireNonNullElse(token.getClient(), LockClientAndThread.UNKNOWN.client()),u}(jx (fca47bf826894d27a0227ac74fce26202ab99df7j Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javaj modifiedjڣ Kjۣ K
j Kj https://github.com/palantir/atlasdb/blob/908e618d03f24423c48d76c1ca2cde542fb4aa99/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj https://github.com/palantir/atlasdb/raw/908e618d03f24423c48d76c1ca2cde542fb4aa99/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=908e618d03f24423c48d76c1ca2cde542fb4aa99j Xy  @@ -20,6 +20,7 @@
 
 import com.google.common.collect.ImmutableSortedMap;
 import com.palantir.common.concurrent.PTExecutors;
+import com.palantir.common.streams.KeyedStream;
 import com.palantir.lock.ImmutableDebugThreadInfoConfiguration;
 import com.palantir.lock.LockClient;
 import com.palantir.lock.LockClientAndThread;
@@ -40,8 +41,6 @@
 import java.util.concurrent.TimeUnit;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
-import one.util.streamex.IntStreamEx;
-import one.util.streamex.StreamEx;
 import org.awaitility.Awaitility;
 import org.junit.Test;
 
@@ -111,11 +110,11 @@ public void recordsThreadInfoForMultipleLocks() throws InterruptedException {
         List<String> threadNames =
                 IntStream.range(0, numThreads).mapToObj(i -> "test-thread-" + i).collect(Collectors.toList());
 
-        Map<String, Set<LockDescriptor>> locksPerThread = StreamEx.of(threadNames)
-                .mapToEntry(threadName -> IntStreamEx.range(0, numLocksPerThread)
+        Map<String, Set<LockDescriptor>> locksPerThread = KeyedStream.of(threadNames)
+                .map(threadName -> IntStream.range(0, numLocksPerThread)
                         .mapToObj(i -> StringLockDescriptor.of("test-lock-" + i + "-from-thread-" + threadName))
-                        .toSet())
-                .toMap();
+                        .collect(Collectors.toSet()))
+                .collectToMap();
 
         for (Map.Entry<String, Set<LockDescriptor>> entry : locksPerThread.entrySet()) {
             LockRequest lockRequest = LockRequest.builder(ImmutableSortedMap.copyOf(
@@ -286,19 +285,19 @@ public void backgroundSnapshotRunnerWorks() throws InterruptedException {
         LockResponse response = lockServiceWithBackgroundRunner.lockWithFullLockResponse(
                 LockClient.ANONYMOUS, LOCK_1_THREAD_1_WRITE_REQUEST);
 
-        Awaitility.waitAtMost(200, TimeUnit.MILLISECONDS)
-                .untilAsserted(() -> assertThat(backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
-                        .containsExactly(Map.entry(TEST_LOCK_1, ANONYMOUS_TEST_THREAD_1)));
+        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
+                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
+                .containsExactly(Map.entry(TEST_LOCK_1, ANONYMOUS_TEST_THREAD_1)));
 
         lockServiceWithBackgroundRunner.unlock(response.getToken());
 
-        Awaitility.waitAtMost(200, TimeUnit.MILLISECONDS)
-                .untilAsserted(() -> assertThat(backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
-                        .doesNotContainKey(TEST_LOCK_1));
+        Awaitility.await().atMost(200, TimeUnit.MILLISECONDS).untilAsserted(() -> assertThat(
+                        backgroundSnapshotRunner.getLastKnownThreadInfoSnapshot())
+                .doesNotContainKey(TEST_LOCK_1));
     }
 
     private void forceSnapshot() {
-        this.lockService.getSnapshotManager().takeSnapshot();
+        lockService.getSnapshotManager().takeSnapshot();
     }
 
     private Optional<LockClientAndThread> getLatestThreadInfoForLock(LockDescriptor lock) {ueu(e0090fb57b5fb1574a90d9b35cd98f26841253fc}(sha(e0090fb57b5fb1574a90d9b35cd98f26841253fcnode_idEC_kwDOAjP5fdoAKGUwMDkwZmI1N2I1ZmIxNTc0YTkwZDliMzVjZDk4ZjI2ODQxMjUzZmMcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-02T17:04:31Zu	committer}(j 
Sam Kramerj skramer@palantir.comj 2023-05-03T09:57:22Zumessage"Create imreliable timelock servicetree}(j (6e3a720c75abbbe75fd24ea14ed103676bb850a5url`https://api.github.com/repos/palantir/atlasdb/git/trees/6e3a720c75abbbe75fd24ea14ed103676bb850a5uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e0090fb57b5fb1574a90d9b35cd98f26841253fc
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRSMAMACgkQmPPOpKR4
XS1GsQgAn+WoFcESfvETCNWEYGUhKqACvn0xo4uwFpQoDFX3KtyV3ZTLyo9zxscG
ThX+q8H4x2MaA5C+SwEBK9QFYJuoWPwyRdzHaUVv4PCYxcf8UWKOSd45gEI+lWQ+
/UAe3yOL5/sb4LkJ49rI9mIaPMuCWLxlXJSUH6h9WALOhMLC4LxGDh5wszV7HizG
CPNVViONxfnwQWXUdGr0PapQoD6UBWtMQ4JZZC7SrnetJpiqLjtiFKrDeaP3RPpb
3dHqvJEQdibpglwiCktBli74G+GX+4tN0vnFIINzhVvbAl1zlev7NT23t84LWAR2
YN4FFCfZAFCZ2LewJDr5s/XxWozk6g==
=t/6A
-----END PGP SIGNATURE-----payloadtree 6e3a720c75abbbe75fd24ea14ed103676bb850a5
parent 98e0d627d236ba7d3dc11580076413fde2c88681
author Sam Kramer <skramer@palantir.com> 1683047071 +0100
committer Sam Kramer <skramer@palantir.com> 1683107842 +0100

Create imreliable timelock service
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/e0090fb57b5fb1574a90d9b35cd98f26841253fchtml_urlShttps://github.com/palantir/atlasdb/commit/e0090fb57b5fb1574a90d9b35cd98f26841253fccomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e0090fb57b5fb1574a90d9b35cd98f26841253fc/commentsj
 }(login
Sam-KrameridJ^2_ j	 MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5j 'https://api.github.com/users/Sam-Kramerj- https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminuj }(j2 
Sam-Kramerj4 J^2_ j	 MDQ6VXNlcjYyMzg4MTQ=j6 3https://avatars.githubusercontent.com/u/6238814?v=4j8 h5j 'https://api.github.com/users/Sam-Kramerj- https://github.com/Sam-Kramerj; 1https://api.github.com/users/Sam-Kramer/followersj= >https://api.github.com/users/Sam-Kramer/following{/other_user}j? 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}jA >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}jC 5https://api.github.com/users/Sam-Kramer/subscriptionsjE ,https://api.github.com/users/Sam-Kramer/orgsjG -https://api.github.com/users/Sam-Kramer/reposjI 8https://api.github.com/users/Sam-Kramer/events{/privacy}jK 7https://api.github.com/users/Sam-Kramer/received_eventsjM UserjO uparents]}(j (98e0d627d236ba7d3dc11580076413fde2c88681j ^https://api.github.com/repos/palantir/atlasdb/commits/98e0d627d236ba7d3dc11580076413fde2c88681j- Shttps://github.com/palantir/atlasdb/commit/98e0d627d236ba7d3dc11580076413fde2c88681uastats}(totalM}	additionsMy	deletionsKufiles](}(j (08db6cd65af36a43d44508013de3b5b51a5e50c2filenameSatlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/DefaultBuggify.javastatusmodifiedji Kjj K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/e0090fb57b5fb1574a90d9b35cd98f26841253fc/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e0090fb57b5fb1574a90d9b35cd98f26841253fc/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FDefaultBuggify.java?ref=e0090fb57b5fb1574a90d9b35cd98f26841253fcpatch@@ -30,4 +30,9 @@ public void run(Runnable runnable) {
     public boolean asBoolean() {
         return true;
     }
+
+    @Override
+    public boolean asBoolean() {
+        return true;
+    }
 }u}(j (9e4cc63a49b7cb70966577de228e448cd41e81eajo Patlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggify.javajq modifiedji Kjj K js Kjt https://github.com/palantir/atlasdb/blob/e0090fb57b5fb1574a90d9b35cd98f26841253fc/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javajv https://github.com/palantir/atlasdb/raw/e0090fb57b5fb1574a90d9b35cd98f26841253fc/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.javajx https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggify.java?ref=e0090fb57b5fb1574a90d9b35cd98f26841253fcjz @@ -30,4 +30,9 @@ public void run(Runnable _runnable) {
     public boolean asBoolean() {
         return false;
     }
+
+    @Override
+    public boolean asBoolean() {
+        return false;
+    }
 }u}(j (4d7b1269281ae6d240932735dedfec56625f6723jo Watlasdb-buggify/src/main/java/com/palantir/atlasdb/buggify/impl/NoOpBuggifyFactory.javajq addedji K"jj K js K"jt https://github.com/palantir/atlasdb/blob/e0090fb57b5fb1574a90d9b35cd98f26841253fc/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javajv https://github.com/palantir/atlasdb/raw/e0090fb57b5fb1574a90d9b35cd98f26841253fc/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.javajx https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-buggify%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fbuggify%2Fimpl%2FNoOpBuggifyFactory.java?ref=e0090fb57b5fb1574a90d9b35cd98f26841253fcjz XQ  @@ -0,0 +1,34 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.buggify.impl;
+
+import com.palantir.atlasdb.buggify.api.Buggify;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+
+public enum NoOpBuggifyFactory implements BuggifyFactory {
+    INSTANCE;
+
+    @Override
+    public Buggify maybe(double _probability) {
+        return NoOpBuggify.INSTANCE;
+    }
+
+    @Override
+    public Buggify always() {
+        return NoOpBuggify.INSTANCE;
+    }
+}u}(j (df57e9fd3c6376b49fd3c1adb77db41b476aeffejo datlasdb-config/src/main/java/com/palantir/atlasdb/factory/DefaultLockAndTimestampServiceFactory.javajq modifiedji K&jj Kjs K)jt https://github.com/palantir/atlasdb/blob/e0090fb57b5fb1574a90d9b35cd98f26841253fc/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javajv https://github.com/palantir/atlasdb/raw/e0090fb57b5fb1574a90d9b35cd98f26841253fc/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.javajx https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FDefaultLockAndTimestampServiceFactory.java?ref=e0090fb57b5fb1574a90d9b35cd98f26841253fcjz X4  @@ -96,6 +96,7 @@
 import java.util.Set;
 import java.util.concurrent.CompletableFuture;
 import java.util.function.Consumer;
+import java.util.function.Function;
 import java.util.function.Supplier;
 import javax.ws.rs.ClientErrorException;
 
@@ -118,6 +119,8 @@ public final class DefaultLockAndTimestampServiceFactory implements LockAndTimes
     private final Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders;
     private final Set<Schema> schemas;
 
+    private final Function<TimelockService, TimeLockClient> timelockClientFactory;
+
     public DefaultLockAndTimestampServiceFactory(
             MetricsManager metricsManager,
             AtlasDbConfig config,
@@ -132,6 +135,38 @@ public DefaultLockAndTimestampServiceFactory(
             Optional<TimeLockFeedbackBackgroundTask> timeLockFeedbackBackgroundTask,
             Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders,
             Set<Schema> schemas) {
+        this(
+                metricsManager,
+                config,
+                runtimeConfig,
+                registrar,
+                lock,
+                time,
+                invalidator,
+                userAgent,
+                lockDiagnosticComponents,
+                reloadingFactory,
+                timeLockFeedbackBackgroundTask,
+                timelockRequestBatcherProviders,
+                schemas,
+                TimeLockClient::createDefault);
+    }
+
+    public DefaultLockAndTimestampServiceFactory(
+            MetricsManager metricsManager,
+            AtlasDbConfig config,
+            Refreshable<AtlasDbRuntimeConfig> runtimeConfig,
+            Consumer<Object> registrar,
+            Supplier<LockService> lock,
+            Supplier<ManagedTimestampService> time,
+            TimestampStoreInvalidator invalidator,
+            UserAgent userAgent,
+            Optional<LockDiagnosticComponents> lockDiagnosticComponents,
+            ReloadingFactory reloadingFactory,
+            Optional<TimeLockFeedbackBackgroundTask> timeLockFeedbackBackgroundTask,
+            Optional<TimeLockRequestBatcherProviders> timelockRequestBatcherProviders,
+            Set<Schema> schemas,
+            Function<TimelockService, TimeLockClient> timelockClientFactory) {
         this.metricsManager = metricsManager;
         this.config = config;
         this.runtimeConfig = runtimeConfig;
@@ -145,6 +180,7 @@ public DefaultLockAndTimestampServiceFactory(
         this.timeLockFeedbackBackgroundTask = timeLockFeedbackBackgroundTask;
         this.timelockRequestBatcherProviders = timelockRequestBatcherProviders;
         this.schemas = schemas;
+        this.timelockClientFactory = timelockClientFactory;
     }
 
     @Override
@@ -166,9 +202,8 @@ public LockAndTimestampServices createLockAndTimestampServices() {
         return withMetrics(metricsManager, withRefreshingLockService(lockAndTimestampServices));
     }
 
-    private static LockAndTimestampServices withRefreshingLockService(
-            LockAndTimestampServices lockAndTimestampServices) {
-        TimeLockClient timeLockClient = TimeLockClient.createDefault(lockAndTimestampServices.timelock());
+    private LockAndTimestampServices withRefreshingLockService(LockAndTimestampServices lockAndTimestampServices) {
+        TimeLockClient timeLockClient = timelockClientFactory.apply(lockAndTimestampServices.timelock());
         ProfilingTimelockService profilingService = ProfilingTimelockService.create(timeLockClient);
         return ImmutableLockAndTimestampServices.builder()
                 .from(lockAndTimestampServices)u      }(j (37473508e06c194b315e01d89ff08da1a5152705jo Ratlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.javajq modifiedji Kjj Kjs K	jt https://github.com/palantir/atlasdb/blob/e0090fb57b5fb1574a90d9b35cd98f26841253fc/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajv https://github.com/palantir/atlasdb/raw/e0090fb57b5fb1574a90d9b35cd98f26841253fc/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.javajx https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ffactory%2FTransactionManagers.java?ref=e0090fb57b5fb1574a90d9b35cd98f26841253fcjz X+  @@ -129,6 +129,7 @@
 import com.palantir.lock.client.TimeLockClient;
 import com.palantir.lock.client.metrics.TimeLockFeedbackBackgroundTask;
 import com.palantir.lock.impl.LockServiceImpl;
+import com.palantir.lock.v2.TimelockService;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.logsafe.logger.SafeLogger;
@@ -198,6 +199,11 @@ boolean allSafeForLogging() {
         return false;
     }
 
+    @Value.Default
+    Function<TimelockService, TimeLockClient> defaultTimelockClientFactory() {
+        return TimeLockClient::createDefault;
+    }
+
     abstract Optional<LockAndTimestampServiceFactory> lockAndTimestampServiceFactory();
 
     abstract UserAgent userAgent();
@@ -385,7 +391,8 @@ private TransactionManager serializableInternal(@Output List<AutoCloseable> clos
                         reloadingFactory(),
                         timeLockFeedbackBackgroundTask,
                         timelockRequestBatcherProviders(),
-                        schemas()));
+                        schemas(),
+                        defaultTimelockClientFactory()));
         LockAndTimestampServices lockAndTimestampServices = factory.createLockAndTimestampServices();
         adapter.setTimestampService(lockAndTimestampServices.managedTimestampService());
 u}(j (d9ea2be1085dee3aeee007ec848d0c60b713e0fcjo $atlasdb-workload-server/build.gradlejq modifiedji Kjj K js Kjt xhttps://github.com/palantir/atlasdb/blob/e0090fb57b5fb1574a90d9b35cd98f26841253fc/atlasdb-workload-server%2Fbuild.gradlejv whttps://github.com/palantir/atlasdb/raw/e0090fb57b5fb1574a90d9b35cd98f26841253fc/atlasdb-workload-server%2Fbuild.gradlejx https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fbuild.gradle?ref=e0090fb57b5fb1574a90d9b35cd98f26841253fcjz X  @@ -11,6 +11,8 @@ dependencies {
     implementation project(':atlasdb-client')
     implementation project(':atlasdb-config')
     implementation project(':atlasdb-impl-shared')
+    implementation project(':lock-api')
+    implementation project(':lock-impl')
 
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-core'u}(j (3ff8b80f4df7c5e6a384bd601a2318efe4df7cfcjo matlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/store/AtlasDbTransactionStoreFactory.javajq modifiedji Kjj K js Kjt https://github.com/palantir/atlasdb/blob/e0090fb57b5fb1574a90d9b35cd98f26841253fc/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javajv https://github.com/palantir/atlasdb/raw/e0090fb57b5fb1574a90d9b35cd98f26841253fc/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.javajx https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fstore%2FAtlasDbTransactionStoreFactory.java?ref=e0090fb57b5fb1574a90d9b35cd98f26841253fcjz X  @@ -28,6 +28,8 @@
 import com.palantir.atlasdb.util.MetricsManager;
 import com.palantir.atlasdb.workload.util.AtlasDbUtils;
 import com.palantir.conjure.java.api.config.service.UserAgent;
+import com.palantir.lock.client.TimeLockClient;
+import com.palantir.lock.client.UnreliableTimeLockService;
 import com.palantir.logsafe.Preconditions;
 import com.palantir.logsafe.SafeArg;
 import com.palantir.refreshable.Refreshable;
@@ -138,6 +140,8 @@ public static AtlasDbTransactionStoreFactory createFromConfig(
                 .globalMetricsRegistry(metricsManager.getRegistry())
                 .globalTaggedMetricRegistry(metricsManager.getTaggedRegistry())
                 .runtimeConfigSupplier(atlasDbRuntimeConfig)
+                .defaultTimelockClientFactory(
+                        lockService -> TimeLockClient.createDefault(UnreliableTimeLockService.create(lockService)))
                 .build()
                 .serializable();
 u}(j (af5516bf477692b9272a197b0df9f1328e09c136jo lock-api/build.gradlejq modifiedji Kjj K js Kjt ihttps://github.com/palantir/atlasdb/blob/e0090fb57b5fb1574a90d9b35cd98f26841253fc/lock-api%2Fbuild.gradlejv hhttps://github.com/palantir/atlasdb/raw/e0090fb57b5fb1574a90d9b35cd98f26841253fc/lock-api%2Fbuild.gradlejx {https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fbuild.gradle?ref=e0090fb57b5fb1574a90d9b35cd98f26841253fcjz Xq  @@ -19,6 +19,7 @@ dependencies {
 
     implementation project(":atlasdb-autobatch")
     implementation project(":atlasdb-commons")
+    implementation project(":atlasdb-buggify")
     implementation 'jakarta.ws.rs:jakarta.ws.rs-api'
     implementation 'com.fasterxml.jackson.core:jackson-annotations'
     implementation 'com.fasterxml.jackson.core:jackson-databind'u}(j (fd5b31c1b0e6208a7f9308a03fa062d1b4247527jo Clock-api/src/main/java/com/palantir/lock/client/TimeLockClient.javajq modifiedji Kjj K js Kjt https://github.com/palantir/atlasdb/blob/e0090fb57b5fb1574a90d9b35cd98f26841253fc/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.javajv https://github.com/palantir/atlasdb/raw/e0090fb57b5fb1574a90d9b35cd98f26841253fc/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.javajx https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FTimeLockClient.java?ref=e0090fb57b5fb1574a90d9b35cd98f26841253fcjz XZ  @@ -62,6 +62,17 @@ public static TimeLockClient createDefault(TimelockService timelockService) {
                 timelockService, timestampService, createLockRefresher(timelockService), asyncUnlocker);
     }
 
+    public static TimeLockClient createDefault(TimelockService timelockService, long lockRefreshIntervalMillis) {
+        AsyncTimeLockUnlocker asyncUnlocker = AsyncTimeLockUnlocker.create(timelockService);
+        RequestBatchingTimestampService timestampService =
+                RequestBatchingTimestampService.create(new TimelockServiceErrorDecorator(timelockService));
+        return new TimeLockClient(
+                timelockService,
+                timestampService,
+                createLockRefresher(timelockService, lockRefreshIntervalMillis),
+                asyncUnlocker);
+    }
+
     public static TimeLockClient withSynchronousUnlocker(TimelockService timelockService) {
         CloseableTimestampService timestampService = new TimelockServiceErrorDecorator(timelockService);
         return new TimeLockClient(
@@ -206,6 +217,12 @@ private static LockRefresher<LockToken> createLockRefresher(TimelockService time
         return new LockRefresher<>(refreshExecutor, lockTokenRefresher, REFRESH_INTERVAL_MILLIS);
     }
 
+    private static LockRefresher<LockToken> createLockRefresher(
+            TimelockService timelockService, long lockRefreshIntervalMillis) {
+        LockLeaseRefresher<LockToken> lockTokenRefresher = timelockService::refreshLockLeases;
+        return new LockRefresher<>(refreshExecutor, lockTokenRefresher, lockRefreshIntervalMillis);
+    }
+
     private static ScheduledExecutorService createSingleThreadScheduledExecutor(String operation) {
         return PTExecutors.newSingleThreadScheduledExecutor(
                 new NamedThreadFactory(TimeLockClient.class.getSimpleName() + "-" + operation, true));u}(j (fec0efb9006a1d2a486a9e82e115301c70881d64jo Nlock-api/src/main/java/com/palantir/lock/client/UnreliableTimeLockService.javajq addedji K~jj K js K~jt https://github.com/palantir/atlasdb/blob/e0090fb57b5fb1574a90d9b35cd98f26841253fc/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javajv https://github.com/palantir/atlasdb/raw/e0090fb57b5fb1574a90d9b35cd98f26841253fc/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.javajx https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimeLockService.java?ref=e0090fb57b5fb1574a90d9b35cd98f26841253fcjz X?  @@ -0,0 +1,126 @@
+/*
+ * (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.palantir.lock.client;
+
+import com.google.common.annotations.VisibleForTesting;
+import com.palantir.atlasdb.buggify.api.BuggifyFactory;
+import com.palantir.atlasdb.buggify.impl.DefaultBuggifyFactory;
+import com.palantir.lock.v2.ClientLockingOptions;
+import com.palantir.lock.v2.LockImmutableTimestampResponse;
+import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.v2.LockResponse;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.v2.StartIdentifiedAtlasDbTransactionResponse;
+import com.palantir.lock.v2.TimelockService;
+import com.palantir.lock.v2.WaitForLocksRequest;
+import com.palantir.lock.v2.WaitForLocksResponse;
+import com.palantir.timestamp.TimestampRange;
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+
+public class UnreliableTimeLockService implements TimelockService {
+
+    private final TimelockService delegate;
+    private final BuggifyFactory buggify;
+
+    public static UnreliableTimeLockService create(TimelockService timelockService) {
+        return new UnreliableTimeLockService(timelockService, DefaultBuggifyFactory.INSTANCE);
+    }
+
+    @VisibleForTesting
+    UnreliableTimeLockService(TimelockService delegate, BuggifyFactory buggifyFactory) {
+        this.delegate = delegate;
+        this.buggify = buggifyFactory;
+    }
+
+    @Override
+    public boolean isInitialized() {
+        return delegate.isInitialized();
+    }
+
+    @Override
+    public long getFreshTimestamp() {
+        return delegate.getFreshTimestamp();
+    }
+
+    @Override
+    public long getCommitTimestamp(long startTs, LockToken commitLocksToken) {
+        return delegate.getCommitTimestamp(startTs, commitLocksToken);
+    }
+
+    @Override
+    public TimestampRange getFreshTimestamps(int numTimestampsRequested) {
+        return delegate.getFreshTimestamps(numTimestampsRequested);
+    }
+
+    @Override
+    public LockImmutableTimestampResponse lockImmutableTimestamp() {
+        return delegate.lockImmutableTimestamp();
+    }
+
+    @Override
+    public List<StartIdentifiedAtlasDbTransactionResponse> startIdentifiedAtlasDbTransactionBatch(int count) {
+        return delegate.startIdentifiedAtlasDbTransactionBatch(count);
+    }
+
+    @Override
+    public long getImmutableTimestamp() {
+        return delegate.getImmutableTimestamp();
+    }
+
+    @Override
+    public LockResponse lock(LockRequest request) {
+        LockResponse response = delegate.lock(request);
+        buggify.maybe(0.25).run(() -> delegate.unlock(Set.of(response.getToken())));
+        return response;
+    }
+
+    @Override
+    public LockResponse lock(LockRequest lockRequest, ClientLockingOptions options) {
+        LockResponse response = delegate.lock(lockRequest, options);
+        buggify.maybe(0.25).run(() -> delegate.unlock(Set.of(response.getToken())));
+        return response;
+    }
+
+    @Override
+    public WaitForLocksResponse waitForLocks(WaitForLocksRequest request) {
+        return delegate.waitForLocks(request);
+    }
+
+    @Override
+    public Set<LockToken> refreshLockLeases(Set<LockToken> tokens) {
+        Set<LockToken> tokensToRefresh = tokens.stream()
+                .filter(_token -> !buggify.maybe(0.25).asBoolean())
+                .collect(Collectors.toSet());
+        return delegate.refreshLockLeases(tokensToRefresh);
+    }
+
+    @Override
+    public Set<LockToken> unlock(Set<LockToken> tokens) {
+        return delegate.unlock(tokens);
+    }
+
+    @Override
+    public void tryUnlock(Set<LockToken> tokens) {
+        delegate.tryUnlock(tokens);
+    }
+
+    @Override
+    public long currentTimeMillis() {
+        return delegate.currentTimeMillis();
+    }
+}u}(j (6c72c5854e133d15d7a4707c12042590d55e0695jo Qlock-api/src/test/java/com/palantir/lock/client/UnreliableTimelockClientTest.javajq addedji Kjj K js Kjt https://github.com/palantir/atlasdb/blob/e0090fb57b5fb1574a90d9b35cd98f26841253fc/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimelockClientTest.javajv https://github.com/palantir/atlasdb/raw/e0090fb57b5fb1574a90d9b35cd98f26841253fc/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimelockClientTest.javajx https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fclient%2FUnreliableTimelockClientTest.java?ref=e0090fb57b5fb1574a90d9b35cd98f26841253fcjz XG  @@ -0,0 +1,137 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock.client;
+
+import static org.mockito.Mockito.verify;
+
+import com.palantir.atlasdb.buggify.impl.NoOpBuggifyFactory;
+import com.palantir.lock.LockDescriptor;
+import com.palantir.lock.StringLockDescriptor;
+import com.palantir.lock.v2.ClientLockingOptions;
+import com.palantir.lock.v2.LockRequest;
+import com.palantir.lock.v2.LockToken;
+import com.palantir.lock.v2.WaitForLocksRequest;
+import java.util.Set;
+import java.util.UUID;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class UnreliableTimelockClientTest {
+
+    private static final LockToken LOCK_TOKEN = LockToken.of(UUID.fromString("00000000-0000-0000-0000-000000000000"));
+    private static final LockDescriptor LOCK_DESCRIPTOR = StringLockDescriptor.of("foo");
+    private static final LockRequest LOCK_REQUEST = LockRequest.of(Set.of(LOCK_DESCRIPTOR), 1);
+
+    @Mock
+    private TimeLockClient timeLockClient;
+
+    private UnreliableTimeLockService unreliableTimeLockService;
+
+    @Before
+    public void before() {
+        unreliableTimeLockService = new UnreliableTimeLockService(timeLockClient, NoOpBuggifyFactory.INSTANCE);
+    }
+
+    @Test
+    public void verifyIsInitializedCallsDelegate() {
+        unreliableTimeLockService.isInitialized();
+        verify(timeLockClient).isInitialized();
+    }
+
+    @Test
+    public void verifyGetFreshTimestampCallsDelegate() {
+        unreliableTimeLockService.getFreshTimestamp();
+        verify(timeLockClient).getFreshTimestamp();
+    }
+
+    @Test
+    public void verifyGetCommitTimestampsCallsDelegate() {
+        unreliableTimeLockService.getCommitTimestamp(1, LOCK_TOKEN);
+        verify(timeLockClient).getCommitTimestamp(1, LOCK_TOKEN);
+    }
+
+    @Test
+    public void verifyGetFreshTimestampsCallsDelegate() {
+        unreliableTimeLockService.getFreshTimestamps(1);
+        verify(timeLockClient).getFreshTimestamps(1);
+    }
+
+    @Test
+    public void verifyLockImmutableTimestampCallsDelegate() {
+        unreliableTimeLockService.lockImmutableTimestamp();
+        verify(timeLockClient).lockImmutableTimestamp();
+    }
+
+    @Test
+    public void verifyStartIdentifiedAtlasDbTransactionCallsDelegate() {
+        unreliableTimeLockService.startIdentifiedAtlasDbTransactionBatch(1);
+        verify(timeLockClient).startIdentifiedAtlasDbTransactionBatch(1);
+    }
+
+    @Test
+    public void verifyGetImmutableTimestampCallsDelegate() {
+        unreliableTimeLockService.getImmutableTimestamp();
+        verify(timeLockClient).getImmutableTimestamp();
+    }
+
+    @Test
+    public void verifyLockCallsDelegate() {
+        unreliableTimeLockService.lock(LOCK_REQUEST);
+        verify(timeLockClient).lock(LOCK_REQUEST);
+    }
+
+    @Test
+    public void verifyLockWithOptionsCallsDelegate() {
+        unreliableTimeLockService.lock(LOCK_REQUEST, ClientLockingOptions.getDefault());
+        verify(timeLockClient).lock(LOCK_REQUEST, ClientLockingOptions.getDefault());
+    }
+
+    @Test
+    public void verifyWaitForLocksCallsDelegate() {
+        WaitForLocksRequest waitForLocksRequest = WaitForLocksRequest.of(Set.of(LOCK_DESCRIPTOR), 1);
+        unreliableTimeLockService.waitForLocks(waitForLocksRequest);
+        verify(timeLockClient).waitForLocks(waitForLocksRequest);
+    }
+
+    @Test
+    public void verifyRefreshLockLeasesCallsDelegate() {
+        unreliableTimeLockService.refreshLockLeases(Set.of(LOCK_TOKEN));
+        verify(timeLockClient).refreshLockLeases(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyUnlockCallsDelegate() {
+        unreliableTimeLockService.unlock(Set.of(LOCK_TOKEN));
+        verify(timeLockClient).unlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyTryUnlockCallsDelegate() {
+        unreliableTimeLockService.tryUnlock(Set.of(LOCK_TOKEN));
+        verify(timeLockClient).tryUnlock(Set.of(LOCK_TOKEN));
+    }
+
+    @Test
+    public void verifyCurrentTimeMillisCallsDelegate() {
+        unreliableTimeLockService.currentTimeMillis();
+        verify(timeLockClient).currentTimeMillis();
+    }
+}ueu(54f16e4fa279120733e921a0d8ad18aa955ed242}(sha(54f16e4fa279120733e921a0d8ad18aa955ed242node_idEC_kwDOAjP5fdoAKDU0ZjE2ZTRmYTI3OTEyMDczM2U5MjFhMGQ4YWQxOGFhOTU1ZWQyNDIcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-04-17T10:30:47Zu	committer}(j֤ GitHubjؤ noreply@github.comjڤ 2023-04-17T10:30:47Zumessage[PDS-350703 and Others | i like trains] Part 3: e pluribus nullum (Optionals and Nulls) (#6528)

The Conjure Undertow handled lock resource now uses Optionals to correctly return 204s with no content.tree}(jΤ (f129f1fb7cb03873b825237f7476fe15fa350009url`https://api.github.com/repos/palantir/atlasdb/git/trees/f129f1fb7cb03873b825237f7476fe15fa350009uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/54f16e4fa279120733e921a0d8ad18aa955ed242
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkPR/XCRBK7hj4Ov3rIwAAAMQIAHzpyDu91kGiM9qpNijm0yRA
ph7jP2p2f/kfZPgd9nRK6TS/aIymhbnWmH8F2I7+O8NfKrTcF8OY9qPJYk/oVqJa
HyVhOZqmg2ROZ4IBevn9qEeYLY2EYP45TKopp0dyy2x/nuZxjx8m5GdW6VjjWlQd
SSwio7QXw23FEWKHsvcitozaA2RiwjrDbdTpVdAUqSCMIXf3idRY3tpbOsHITAOK
7G+sQ5XzDId5V31+ExSWjE0WHdpkFNJUGqPDiV2lo0oPJP2wkP/YssyiqVTHi99P
amAAZFvqj2eujgIQEHt0VTemnuQDO6PnLTIOvJtP8K76aFEbEHF+aSffP0lQTFQ=
=zDV2
-----END PGP SIGNATURE-----
payloadX  tree f129f1fb7cb03873b825237f7476fe15fa350009
parent 74dedc02e80c3d2d3c392fa66550adbda1df45ae
author Jeremy Kong <jkong@palantir.com> 1681727447 +0100
committer GitHub <noreply@github.com> 1681727447 +0000

[PDS-350703 and Others | i like trains] Part 3: e pluribus nullum (Optionals and Nulls) (#6528)

The Conjure Undertow handled lock resource now uses Optionals to correctly return 204s with no content.
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/54f16e4fa279120733e921a0d8ad18aa955ed242html_urlShttps://github.com/palantir/atlasdb/commit/54f16e4fa279120733e921a0d8ad18aa955ed242comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/54f16e4fa279120733e921a0d8ad18aa955ed242/commentsjԤ }(login
jeremyk-91idJZ jФ MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminujܤ }(j web-flowj J/jФ MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5j %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j
 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(jΤ (74dedc02e80c3d2d3c392fa66550adbda1df45aej ^https://api.github.com/repos/palantir/atlasdb/commits/74dedc02e80c3d2d3c392fa66550adbda1df45aej Shttps://github.com/palantir/atlasdb/commit/74dedc02e80c3d2d3c392fa66550adbda1df45aeuastats}(totalK1	additionsK	deletionsKufiles](}(jΤ (c822ef68c4ddbb417971592d568f0a9d209eaa87filename$changelog/@unreleased/pr-6528.v2.ymlstatusaddedj0 Kj1 K changesKblob_url|https://github.com/palantir/atlasdb/blob/54f16e4fa279120733e921a0d8ad18aa955ed242/changelog%2F%40unreleased%2Fpr-6528.v2.ymlraw_url{https://github.com/palantir/atlasdb/raw/54f16e4fa279120733e921a0d8ad18aa955ed242/changelog%2F%40unreleased%2Fpr-6528.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F%40unreleased%2Fpr-6528.v2.yml?ref=54f16e4fa279120733e921a0d8ad18aa955ed242patch@@ -0,0 +1,6 @@
+type: fix
+fix:
+  description: The Conjure Undertow handled lock resource now uses Optionals to correctly
+    return 204s with no content.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6528u}(jΤ (d2fa8277c1fe0a5f8523c224153bf2e0743e7df1j6 Mtimelock-impl/src/main/java/com/palantir/atlasdb/timelock/LockV1Resource.javaj8 modifiedj0 Kj1 Kj: K+j; https://github.com/palantir/atlasdb/blob/54f16e4fa279120733e921a0d8ad18aa955ed242/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.javaj= https://github.com/palantir/atlasdb/raw/54f16e4fa279120733e921a0d8ad18aa955ed242/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.javaj? https://api.github.com/repos/palantir/atlasdb/contents/timelock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftimelock%2FLockV1Resource.java?ref=54f16e4fa279120733e921a0d8ad18aa955ed242jA X   @@ -34,6 +34,7 @@
 import com.palantir.lock.SimpleHeldLocksToken;
 import com.palantir.logsafe.Safe;
 import java.math.BigInteger;
+import java.util.Optional;
 import java.util.Set;
 import javax.annotation.Nullable;
 import javax.ws.rs.Consumes;
@@ -59,12 +60,12 @@ public LockV1Resource(TimelockNamespaces namespaces) {
     @CancelableServerCall
     @NonIdempotent
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock-with-full-response/{client}")
-    public LockResponse lockWithFullLockResponse(
+    public Optional<LockResponse> lockWithFullLockResponse(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Safe @PathParam("client") @Handle.PathParam LockClient client,
             @Handle.Body LockRequest request)
             throws InterruptedException {
-        return getLockService(namespace).lockWithFullLockResponse(client, request);
+        return Optional.ofNullable(getLockService(namespace).lockWithFullLockResponse(client, request));
     }
 
     @POST
@@ -74,7 +75,7 @@ public LockResponse lockWithFullLockResponse(
     @CancelableServerCall
     @NonIdempotent
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock-with-full-response")
-    public LockResponse lockWithFullLockResponse(
+    public Optional<LockResponse> lockWithFullLockResponse(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockRequest request)
             throws InterruptedException {
         return lockWithFullLockResponse(namespace, LockClient.ANONYMOUS, request);
@@ -156,9 +157,9 @@ public Set<HeldLocksToken> refreshTokens(
     @Idempotent
     @Nullable
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/refresh-grant")
-    public HeldLocksGrant refreshGrant(
+    public Optional<HeldLocksGrant> refreshGrant(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body HeldLocksGrant grant) {
-        return getLockService(namespace).refreshGrant(grant);
+        return Optional.ofNullable(getLockService(namespace).refreshGrant(grant));
     }
 
     @POST
@@ -168,9 +169,9 @@ public HeldLocksGrant refreshGrant(
     @Idempotent
     @Nullable
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/refresh-grant-id")
-    public HeldLocksGrant refreshGrant(
+    public Optional<HeldLocksGrant> refreshGrant(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body BigInteger grantId) {
-        return getLockService(namespace).refreshGrant(grantId);
+        return Optional.ofNullable(getLockService(namespace).refreshGrant(grantId));
     }
 
     @POST
@@ -240,27 +241,27 @@ public HeldLocksToken useGrant(
     @Idempotent
     @Nullable
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version-id")
-    public Long getMinLockedInVersionId(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
-        return getLockService(namespace).getMinLockedInVersionId();
+    public Optional<Long> getMinLockedInVersionId(@Safe @PathParam("namespace") @Handle.PathParam String namespace) {
+        return Optional.ofNullable(getLockService(namespace).getMinLockedInVersionId());
     }
 
     @POST
     @Path("lock/min-locked-in-version-id-for-client/{client}")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version-id-for-client/{client}")
-    public Long getMinLockedInVersionId(
+    public Optional<Long> getMinLockedInVersionId(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Safe @PathParam("client") @Handle.PathParam LockClient client) {
-        return getLockService(namespace).getMinLockedInVersionId(client);
+        return Optional.ofNullable(getLockService(namespace).getMinLockedInVersionId(client));
     }
 
     @POST
     @Path("lock/min-locked-in-version-id-for-client")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version-id-for-client")
-    public Long getMinLockedInVersionIdForAnonymousClient(
+    public Optional<Long> getMinLockedInVersionIdForAnonymousClient(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace) {
         return getMinLockedInVersionId(namespace, LockClient.ANONYMOUS);
     }
@@ -302,12 +303,12 @@ public void logCurrentState(@Safe @PathParam("namespace") @Handle.PathParam Stri
     @Consumes(MediaType.APPLICATION_JSON)
     @Nullable
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock/{client}")
-    public LockRefreshToken lock(
+    public Optional<LockRefreshToken> lock(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Safe @PathParam("client") @Handle.PathParam String client,
             @Handle.Body LockRequest request)
             throws InterruptedException {
-        return getLockService(namespace).lock(client, request);
+        return Optional.ofNullable(getLockService(namespace).lock(client, request));
     }
 
     @POST
@@ -316,7 +317,7 @@ public LockRefreshToken lock(
     @Consumes(MediaType.APPLICATION_JSON)
     @Nullable
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/lock")
-    public LockRefreshToken lock(
+    public Optional<LockRefreshToken> lock(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockRequest request)
             throws InterruptedException {
         return lock(namespace, LockClient.ANONYMOUS.getClientId(), request);
@@ -327,20 +328,20 @@ public LockRefreshToken lock(
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/try-lock/{client}")
-    public HeldLocksToken lockAndGetHeldLocks(
+    public Optional<HeldLocksToken> lockAndGetHeldLocks(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Safe @PathParam("client") @Handle.PathParam String client,
             @Handle.Body LockRequest request)
             throws InterruptedException {
-        return getLockService(namespace).lockAndGetHeldLocks(client, request);
+        return Optional.ofNullable(getLockService(namespace).lockAndGetHeldLocks(client, request));
     }
 
     @POST
     @Path("lock/try-lock")
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/try-lock")
-    public HeldLocksToken lockAndGetHeldLocks(
+    public Optional<HeldLocksToken> lockAndGetHeldLocks(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace, @Handle.Body LockRequest request)
             throws InterruptedException {
         return lockAndGetHeldLocks(namespace, LockClient.ANONYMOUS.getClientId(), request);
@@ -376,10 +377,10 @@ public Set<LockRefreshToken> refreshLockRefreshTokens(
     @Idempotent
     @Nullable
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version/{client}")
-    public Long getMinLockedInVersionId(
+    public Optional<Long> getMinLockedInVersionId(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace,
             @Safe @PathParam("client") @Handle.PathParam String client) {
-        return getLockService(namespace).getMinLockedInVersionId(client);
+        return Optional.ofNullable(getLockService(namespace).getMinLockedInVersionId(client));
     }
 
     @POST
@@ -389,7 +390,7 @@ public Long getMinLockedInVersionId(
     @Idempotent
     @Nullable
     @Handle(method = HttpMethod.POST, path = "/{namespace}/lock/min-locked-in-version")
-    public Long getMinLockedInVersionIdForAnonymousClientString(
+    public Optional<Long> getMinLockedInVersionIdForAnonymousClientString(
             @Safe @PathParam("namespace") @Handle.PathParam String namespace) {
         return getMinLockedInVersionId(namespace, LockClient.ANONYMOUS.getClientId());
     }ueu(99e2c16fb38f05280b1081eaa6e15da4fca051e9}(sha(99e2c16fb38f05280b1081eaa6e15da4fca051e9node_idEC_kwDOAjP5fdoAKDk5ZTJjMTZmYjM4ZjA1MjgwYjEwODFlYWE2ZTE1ZGE0ZmNhMDUxZTkcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-08-09T21:05:04Zu	committer}(jU svc-autoreleasejW -pd-foundry-infrastructure-notify@palantir.comjY 2023-08-09T21:05:04ZumessageAutorelease 0.912.0

[skip ci]tree}(jM (8b3129259a7f34d6b007c933a651fa35581f3c7aurl`https://api.github.com/repos/palantir/atlasdb/git/trees/8b3129259a7f34d6b007c933a651fa35581f3c7auje bhttps://api.github.com/repos/palantir/atlasdb/git/commits/99e2c16fb38f05280b1081eaa6e15da4fca051e9
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.72

iF4EABMIAAYFAmTT/4cACgkQhbrR8ip7mDA0JQEAj++kmxxro1gFXh+Xy6b7XSh3
EEnHnClpvqiBfDEuURsBAKKmxVt4svo/QHvM29M3MxDrnfWJql6IEsKiD4s703xE
=Jxbp
-----END PGP SIGNATURE-----
payloadX0  tree 8b3129259a7f34d6b007c933a651fa35581f3c7a
parent dba735d6da5f1d784cff684a79928bc41cede084
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1691615104 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1691615104 +0000

Autorelease 0.912.0

[skip ci]uuje ^https://api.github.com/repos/palantir/atlasdb/commits/99e2c16fb38f05280b1081eaa6e15da4fca051e9html_urlShttps://github.com/palantir/atlasdb/commit/99e2c16fb38f05280b1081eaa6e15da4fca051e9comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/99e2c16fb38f05280b1081eaa6e15da4fca051e9/commentsjS }(loginsvc-autoreleaseidJ(jO MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5je ,https://api.github.com/users/svc-autoreleasejs "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj[ }(jx svc-autoreleasejz J(jO MDQ6VXNlcjUxNzE4MzQ2j| 4https://avatars.githubusercontent.com/u/51718346?v=4j~ h5je ,https://api.github.com/users/svc-autoreleasejs "https://github.com/svc-autoreleasej 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj uparents]}(jM (dba735d6da5f1d784cff684a79928bc41cede084je ^https://api.github.com/repos/palantir/atlasdb/commits/dba735d6da5f1d784cff684a79928bc41cede084js Shttps://github.com/palantir/atlasdb/commit/dba735d6da5f1d784cff684a79928bc41cede084uastats}(totalK 	additionsK 	deletionsK ufiles]}(jM (987f0dd762ce39f024afacde8c1b043c791f3bfafilename changelog/0.912.0/pr-6669.v2.ymlstatusrenamedj K j K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/99e2c16fb38f05280b1081eaa6e15da4fca051e9/changelog%2F0.912.0%2Fpr-6669.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/99e2c16fb38f05280b1081eaa6e15da4fca051e9/changelog%2F0.912.0%2Fpr-6669.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.912.0%2Fpr-6669.v2.yml?ref=99e2c16fb38f05280b1081eaa6e15da4fca051e9previous_filename$changelog/@unreleased/pr-6669.v2.ymluau(98ffafa0c98936bf53e37cb67809ada4bdf6c67b}(sha(98ffafa0c98936bf53e37cb67809ada4bdf6c67bnode_idEC_kwDOAjP5fdoAKDk4ZmZhZmEwYzk4OTM2YmY1M2UzN2NiNjc4MDlhZGE0YmRmNmM2N2Icommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-13T15:47:27Zu	committer}(j̥ 	Tom PapkejΥ tpapke@palantir.comjХ 2023-06-13T15:47:27Zumessage+Add volatile to lastKnownThreadInfoSnapshottree}(jĥ (11c23cf42224f26a5a9677aab4e13d053086fde0url`https://api.github.com/repos/palantir/atlasdb/git/trees/11c23cf42224f26a5a9677aab4e13d053086fde0ujܥ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/98ffafa0c98936bf53e37cb67809ada4bdf6c67b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSIj48ACgkQmF9s0kaF
Iw3XIwf/atGBJQJxQt4L2DJ09w45h8BjnL7Y3KLDGNWiK56zVP/a2Ajg0lCm9Ymn
rXp9K9kSFCdL88F7xY6Pzw5GIHc5mdHt3XXglEDWJfngMR+QtFTxrc0i+pganKkF
W4bKQJROOgVt/p+muygSndC0u6tslRrpGDikaxJujn8MVIeMiscv83TSKEIMEbdr
i0KGNIJd0PbL9Jta8uUREVDCYx7z7+Q/xBaZ8LKu59T6PLBo0TQEECJ4Kliwt3lV
zJIENTmNSLDFRhTCIs7J2F7s1IG28d4iOjVHUzuQ2TjTw8t45IQprtGzIQbItYjr
jDNAKQhrwyHru42oqGQmc7Fxu6uJ1A==
=4KMR
-----END PGP SIGNATURE-----payloadtree 11c23cf42224f26a5a9677aab4e13d053086fde0
parent bb6fa9bcc43a766cfe6efd2ab223f991dcc2766a
author Tom Papke <tpapke@palantir.com> 1686671247 +0100
committer Tom Papke <tpapke@palantir.com> 1686671247 +0100

Add volatile to lastKnownThreadInfoSnapshot
uujܥ ^https://api.github.com/repos/palantir/atlasdb/commits/98ffafa0c98936bf53e37cb67809ada4bdf6c67bhtml_urlShttps://github.com/palantir/atlasdb/commit/98ffafa0c98936bf53e37cb67809ada4bdf6c67bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/98ffafa0c98936bf53e37cb67809ada4bdf6c67b/commentsjʥ }(login	ToemmscheidJbojƥ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jܥ &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujҥ }(j 	Toemmschej Jbojƥ MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5jܥ &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j  4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj
 Userj uparents]}(jĥ (bb6fa9bcc43a766cfe6efd2ab223f991dcc2766ajܥ ^https://api.github.com/repos/palantir/atlasdb/commits/bb6fa9bcc43a766cfe6efd2ab223f991dcc2766aj Shttps://github.com/palantir/atlasdb/commit/bb6fa9bcc43a766cfe6efd2ab223f991dcc2766auastats}(totalK	additionsK	deletionsKufiles]}(jĥ (4a204eb906df4dc0d8c7682e1f30feefbf330786filenameQlock-impl/src/main/java/com/palantir/lock/impl/LockThreadInfoSnapshotManager.javastatusmodifiedj& Kj' KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/98ffafa0c98936bf53e37cb67809ada4bdf6c67b/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javaraw_urlhttps://github.com/palantir/atlasdb/raw/98ffafa0c98936bf53e37cb67809ada4bdf6c67b/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockThreadInfoSnapshotManager.java?ref=98ffafa0c98936bf53e37cb67809ada4bdf6c67bpatchX  @@ -39,7 +39,7 @@ public class LockThreadInfoSnapshotManager implements AutoCloseable {
 
     private Supplier<ConcurrentMap<HeldLocksToken, HeldLocks<HeldLocksToken>>> tokenMapSupplier;
 
-    private Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot;
+    private volatile Map<LockDescriptor, LockClientAndThread> lastKnownThreadInfoSnapshot;
 
     private ScheduledExecutorService scheduledExecutorService = PTExecutors.newSingleThreadScheduledExecutor();
 uau(01d30ae36678d2dbc6f45a562ca858969b244b5b}(sha(01d30ae36678d2dbc6f45a562ca858969b244b5bnode_idEC_kwDOAjP5fdoAKDAxZDMwYWUzNjY3OGQyZGJjNmY0NWE1NjJjYTg1ODk2OWIyNDRiNWIcommit}(author}(name
Louis Bembergemaillbemberg@palantir.comdate2023-05-10T16:11:34Zu	committer}(jC 
Louis BembergjE lbemberg@palantir.comjG 2023-05-10T16:11:34ZumessageTMerge branch 'develop' into lb/better-logging-lock-retries
merge develop onto branchtree}(j; (9a38dda4493e7a2b27b1dd364497c931b3baa50curl`https://api.github.com/repos/palantir/atlasdb/git/trees/9a38dda4493e7a2b27b1dd364497c931b3baa50cujS bhttps://api.github.com/repos/palantir/atlasdb/git/commits/01d30ae36678d2dbc6f45a562ca858969b244b5b
comment_countK verification}(verifiedreasonno_user	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEWASyGscg/aE7qfKTryYcV6eKVuAFAmRbwkMACgkQryYcV6eK
VuC5qggAz3ApNFx01Ngjrlm/XYvDiF6e1CyqWp3zaDeKyMnC+3pQW+cc2dBW4VFB
CLiiNcfi2ESDEG3Bzf/yzmXSW6RD1DY1Q7W4MFj6baU2fopOBplm50PqFxrxmDpA
DHWDA+lnYaSdOOd8bbqtvOxfPeoGM0cLLb3MFoH+1moBL2iWDUsTwhVHnxY3uaBq
xfP6MGgDQnPJF/g+BhR1pgelppc3EwI7K4fO1c1MrlUndkxGPaZpsQ5g78aEMAIz
HQIazWt633rpCRtBZxXtsYud2VmV6H2hn8ELBCU9aG9vbqISb1PAlx8Mz7oezgdX
wGnAyVp0vDlv/YES7r5bflob6lnQsQ==
=5fym
-----END PGP SIGNATURE-----payloadXc  tree 9a38dda4493e7a2b27b1dd364497c931b3baa50c
parent d962a53deada302b0533028b2b3cbe6b6fa2ba81
parent e5d54893a7237fa248f1ecf50ea55a8c95ee3a79
author Louis Bemberg <lbemberg@palantir.com> 1683735094 -0400
committer Louis Bemberg <lbemberg@palantir.com> 1683735094 -0400

Merge branch 'develop' into lb/better-logging-lock-retries
merge develop onto branch
uujS ^https://api.github.com/repos/palantir/atlasdb/commits/01d30ae36678d2dbc6f45a562ca858969b244b5bhtml_urlShttps://github.com/palantir/atlasdb/commit/01d30ae36678d2dbc6f45a562ca858969b244b5bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/01d30ae36678d2dbc6f45a562ca858969b244b5b/commentsjA NjI Nparents](}(j; (d962a53deada302b0533028b2b3cbe6b6fa2ba81jS ^https://api.github.com/repos/palantir/atlasdb/commits/d962a53deada302b0533028b2b3cbe6b6fa2ba81ja Shttps://github.com/palantir/atlasdb/commit/d962a53deada302b0533028b2b3cbe6b6fa2ba81u}(j; (e5d54893a7237fa248f1ecf50ea55a8c95ee3a79jS ^https://api.github.com/repos/palantir/atlasdb/commits/e5d54893a7237fa248f1ecf50ea55a8c95ee3a79ja Shttps://github.com/palantir/atlasdb/commit/e5d54893a7237fa248f1ecf50ea55a8c95ee3a79uestats}(totalK	additionsKq	deletionsKufiles](}(j; (a1974a0a70f2e9dc1483e8b6fcc59cc3a141917bfilenamebatlasdb-cassandra/src/main/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraService.javastatusmodifiedjr K	js K	changesKblob_urlhttps://github.com/palantir/atlasdb/blob/01d30ae36678d2dbc6f45a562ca858969b244b5b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javaraw_urlhttps://github.com/palantir/atlasdb/raw/01d30ae36678d2dbc6f45a562ca858969b244b5b/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraService.java?ref=01d30ae36678d2dbc6f45a562ca858969b244b5bpatchX	  @@ -17,7 +17,6 @@
 
 import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Suppliers;
-import com.google.common.collect.FluentIterable;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableRangeMap;
@@ -62,13 +61,13 @@
 import java.util.Comparator;
 import java.util.HashMap;
 import java.util.HashSet;
-import java.util.Iterator;
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
 import java.util.Map.Entry;
 import java.util.Objects;
 import java.util.Optional;
+import java.util.PrimitiveIterator.OfInt;
 import java.util.Random;
 import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
@@ -77,6 +76,7 @@
 import java.util.function.Predicate;
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
+import java.util.stream.IntStream;
 import java.util.stream.Stream;
 import org.apache.cassandra.thrift.EndpointDetails;
 import org.apache.cassandra.thrift.TokenRange;
@@ -306,16 +306,16 @@ private ImmutableSet<InetSocketAddress> getReachableProxies(String inputHost) th
     }
 
     private int getKnownPort() throws UnknownHostException {
-        // explicitly not using streams due to allocation overhead
-        return onlyPort(FluentIterable.concat(
-                        FluentIterable.from(currentPools.keySet()).transform(CassandraServer::proxy),
-                        getServersSocketAddressesFromConfig())
-                .transform(InetSocketAddress::getPort));
+        // Avoid allocations and intermediate collection as this is on hot path
+        return only(Stream.concat(
+                        currentPools.keySet().stream().map(CassandraServer::proxy),
+                        getServersSocketAddressesFromConfig().stream())
+                .mapToInt(InetSocketAddress::getPort));
     }
 
     @VisibleForTesting
-    static int onlyPort(Iterable<? extends Integer> iterable) throws UnknownHostException {
-        Iterator<? extends Integer> iterator = iterable.iterator();
+    static int only(IntStream intStream) throws UnknownHostException {
+        OfInt iterator = intStream.iterator();
         if (!iterator.hasNext()) {
             throw new UnknownHostException("No single known port");
         }u}(j; (ea93d4225293149bfc275c742ea245b6b263274fjx fatlasdb-cassandra/src/test/java/com/palantir/atlasdb/keyvalue/cassandra/pool/CassandraServiceTest.javajz modifiedjr Kjs Kj| Kj} https://github.com/palantir/atlasdb/blob/01d30ae36678d2dbc6f45a562ca858969b244b5b/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javaj https://github.com/palantir/atlasdb/raw/01d30ae36678d2dbc6f45a562ca858969b244b5b/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-cassandra%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fcassandra%2Fpool%2FCassandraServiceTest.java?ref=01d30ae36678d2dbc6f45a562ca858969b244b5bj X  @@ -33,7 +33,6 @@
 import com.palantir.refreshable.Refreshable;
 import java.net.InetSocketAddress;
 import java.net.UnknownHostException;
-import java.util.List;
 import java.util.Optional;
 import java.util.Set;
 import java.util.concurrent.ThreadLocalRandom;
@@ -272,12 +271,10 @@ public void getRandomHostByActiveConnectionsReturnsDesiredHost() {
 
     @Test
     public void ports() throws Exception {
-        assertThat(CassandraService.onlyPort(List.of(1, 1, 1))).isEqualTo(1);
-        assertThat(IntStream.generate(() -> 4224).boxed().limit(15).collect(Collectors.toList()))
-                .hasSize(15)
-                .satisfies(cluster ->
-                        assertThat(CassandraService.onlyPort(cluster)).isEqualTo(4224));
-        assertThatThrownBy(() -> CassandraService.onlyPort(List.of(1, 2, 1)))
+        assertThat(CassandraService.only(IntStream.of(1, 1, 1))).isEqualTo(1);
+        assertThat(CassandraService.only(IntStream.generate(() -> 4224).limit(15)))
+                .isEqualTo(4224);
+        assertThatThrownBy(() -> CassandraService.only(IntStream.of(1, 2, 1)))
                 .isInstanceOf(UnknownHostException.class)
                 .hasMessageContaining("No single known port");
     }u}(j; (b4f0f9cfa1631ef560d32a317b1d9e42a3cac71fjx  changelog/0.849.0/pr-6562.v2.ymljz addedjr Kjs K j| Kj} vhttps://github.com/palantir/atlasdb/blob/01d30ae36678d2dbc6f45a562ca858969b244b5b/changelog%2F0.849.0%2Fpr-6562.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/01d30ae36678d2dbc6f45a562ca858969b244b5b/changelog%2F0.849.0%2Fpr-6562.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.849.0%2Fpr-6562.v2.yml?ref=01d30ae36678d2dbc6f45a562ca858969b244b5bj @@ -0,0 +1,5 @@
+type: improvement
+improvement:
+  description: Avoid boxing for Cassandra known port checks
+  links:
+  - https://github.com/palantir/atlasdb/pull/6562u}(j; (217d9399bdb068283f3ed607c705739151adc8eajx  changelog/0.850.0/pr-6563.v2.ymljz addedjr Kjs K j| Kj} vhttps://github.com/palantir/atlasdb/blob/01d30ae36678d2dbc6f45a562ca858969b244b5b/changelog%2F0.850.0%2Fpr-6563.v2.ymlj uhttps://github.com/palantir/atlasdb/raw/01d30ae36678d2dbc6f45a562ca858969b244b5b/changelog%2F0.850.0%2Fpr-6563.v2.ymlj https://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.850.0%2Fpr-6563.v2.yml?ref=01d30ae36678d2dbc6f45a562ca858969b244b5bj @@ -0,0 +1,6 @@
+type: fix
+fix:
+  description: Fixed a serialization issue for users of `LockServerOptions` and `LockState`
+    endpoints in the legacy lock service.
+  links:
+  - https://github.com/palantir/atlasdb/pull/6563u}(j; (7deaaeb752dd206465461e58105cf13d7c7dbeffjx lock-api/build.gradlejz modifiedjr Kjs K j| Kj} ihttps://github.com/palantir/atlasdb/blob/01d30ae36678d2dbc6f45a562ca858969b244b5b/lock-api%2Fbuild.gradlej hhttps://github.com/palantir/atlasdb/raw/01d30ae36678d2dbc6f45a562ca858969b244b5b/lock-api%2Fbuild.gradlej {https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fbuild.gradle?ref=01d30ae36678d2dbc6f45a562ca858969b244b5bj X  @@ -45,6 +45,7 @@ dependencies {
     testImplementation 'com.palantir.common:streams'
     testImplementation 'io.dropwizard.metrics:metrics-core'
     testImplementation 'org.slf4j:slf4j-api'
+    testImplementation project(':lock-api-objects')
     testImplementation project(':lock-conjure-api:lock-conjure-api-objects')
     testImplementation project(':timelock-api:timelock-api-objects')
 u}(j; (da3109e146d361ca31d2958b0fc223d0d2334824jx ?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javajz modifiedjr Kjs K j| Kj} https://github.com/palantir/atlasdb/blob/01d30ae36678d2dbc6f45a562ca858969b244b5b/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj https://github.com/palantir/atlasdb/raw/01d30ae36678d2dbc6f45a562ca858969b244b5b/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=01d30ae36678d2dbc6f45a562ca858969b244b5bj @@ -48,6 +48,7 @@ public class LockServerOptions implements Serializable {
      * client accessing it.
      */
     @Value.Default
+    @JsonProperty("isStandaloneServer")
     public boolean isStandaloneServer() {
         return true;
     }u}(j; (7cd1c34cf31d800e3d13f665c2f83a2f2153b95ejx 7lock-api/src/main/java/com/palantir/lock/LockState.javajz modifiedjr Kjs K j| Kj} https://github.com/palantir/atlasdb/blob/01d30ae36678d2dbc6f45a562ca858969b244b5b/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.javaj https://github.com/palantir/atlasdb/raw/01d30ae36678d2dbc6f45a562ca858969b244b5b/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockState.java?ref=01d30ae36678d2dbc6f45a562ca858969b244b5bj XD  @@ -16,6 +16,7 @@
 
 package com.palantir.lock;
 
+import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import java.util.List;
@@ -26,8 +27,10 @@
 @JsonSerialize(as = ImmutableLockState.class)
 @JsonDeserialize(as = ImmutableLockState.class)
 public interface LockState {
+    @JsonProperty("isWriteLocked")
     boolean isWriteLocked();
 
+    @JsonProperty("isFrozen")
     boolean isFrozen();
 
     List<LockClient> exactCurrentLockHolders();u}(j; (1926ba4ded622aa9fbfde697ed803a0543ddf1b5jx Clock-api/src/test/java/com/palantir/lock/LockServerOptionsTest.javajz addedjr KSjs K j| KSj} https://github.com/palantir/atlasdb/blob/01d30ae36678d2dbc6f45a562ca858969b244b5b/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.javaj https://github.com/palantir/atlasdb/raw/01d30ae36678d2dbc6f45a562ca858969b244b5b/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.javaj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptionsTest.java?ref=01d30ae36678d2dbc6f45a562ca858969b244b5bj Xh  @@ -0,0 +1,83 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.lock;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.palantir.conjure.java.serialization.ObjectMappers;
+import com.palantir.lock.v2.IdentifiedTimeLockRequest;
+import java.io.File;
+import java.io.IOException;
+import java.util.concurrent.TimeUnit;
+import org.junit.Test;
+
+public class LockServerOptionsTest {
+    private static final File LOCK_SERVER_OPTIONS_JSON = new File(IdentifiedTimeLockRequest.class
+            .getResource("/lock-server-options.json")
+            .getPath());
+    private static final LockServerOptions NON_STANDALONE_OPTIONS =
+            LockServerOptions.builder().isStandaloneServer(false).build();
+
+    private final ObjectMapper serverMapper = ObjectMappers.newServerObjectMapper();
+    private final ObjectMapper clientMapper = ObjectMappers.newClientObjectMapper();
+
+    @Test
+    public void serializationContainsIsStandaloneServerExplicitly() throws Exception {
+        assertThat(serverMapper.writeValueAsString(NON_STANDALONE_OPTIONS))
+                .isNotEmpty()
+                .contains("\"isStandaloneServer\":false");
+        assertThat(serverMapper.writeValueAsString(LockServerOptions.builder().build()))
+                .isNotEmpty()
+                .contains("\"isStandaloneServer\":true");
+    }
+
+    @Test
+    public void serializationIsInverseOfDeserialization() throws JsonProcessingException {
+        assertSerializationIsInverseOfDeserialization(NON_STANDALONE_OPTIONS);
+        assertSerializationIsInverseOfDeserialization(
+                LockServerOptions.builder().build());
+    }
+
+    @Test
+    @SuppressWarnings("deprecation") // These are actual fields users might set that we still support...
+    public void existingOptionsCanBeDeserialized() throws IOException {
+        LockServerOptions lockServerOptions = LockServerOptions.builder()
+                .maxAllowedLockTimeout(SimpleTimeDuration.of(1, TimeUnit.MILLISECONDS))
+                .maxAllowedClockDrift(SimpleTimeDuration.of(2, TimeUnit.SECONDS))
+                .maxAllowedBlockingDuration(SimpleTimeDuration.of(3, TimeUnit.MINUTES))
+                .maxNormalLockAge(SimpleTimeDuration.of(4, TimeUnit.HOURS))
+                .randomBitCount(32)
+                .stuckTransactionTimeout(SimpleTimeDuration.of(5, TimeUnit.DAYS))
+                .slowLogTriggerMillis(12345)
+                .isStandaloneServer(false)
+                .build();
+
+        assertThat(clientMapper.readValue(LOCK_SERVER_OPTIONS_JSON, LockServerOptions.class))
+                .isEqualTo(lockServerOptions);
+        assertThat(serverMapper.readValue(LOCK_SERVER_OPTIONS_JSON, LockServerOptions.class))
+                .isEqualTo(lockServerOptions);
+    }
+
+    private void assertSerializationIsInverseOfDeserialization(LockServerOptions options)
+            throws JsonProcessingException {
+        String json = serverMapper.writeValueAsString(options);
+        assertThat(clientMapper.readValue(json, LockServerOptions.class)).isEqualTo(options);
+        assertThat(serverMapper.readValue(json, LockServerOptions.class)).isEqualTo(options);
+    }
+}u}(j; (efe8f1aaad6365f7c6d18f7a187cf695d298d214jx 4lock-api/src/test/resources/lock-server-options.jsonjz addedjr Kjs K j| Kj} https://github.com/palantir/atlasdb/blob/01d30ae36678d2dbc6f45a562ca858969b244b5b/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.jsonj https://github.com/palantir/atlasdb/raw/01d30ae36678d2dbc6f45a562ca858969b244b5b/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.jsonj https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Ftest%2Fresources%2Flock-server-options.json?ref=01d30ae36678d2dbc6f45a562ca858969b244b5bj Xa  @@ -0,0 +1 @@
+{"maxAllowedLockTimeout":{"time":1,"unit":"MILLISECONDS"},"maxAllowedClockDrift":{"time":2,"unit":"SECONDS"},"maxAllowedBlockingDuration":{"time":3,"unit":"MINUTES"},"maxNormalLockAge":{"time":4,"unit":"HOURS"},"randomBitCount":32,"stuckTransactionTimeout":{"time":5,"unit":"DAYS"},"slowLogTriggerMillis":12345,"isStandaloneServer":false}ueu(968d015713ba1cfb39b461ef4af24a0a05675d94}(sha(968d015713ba1cfb39b461ef4af24a0a05675d94node_idEC_kwDOAjP5fdoAKDk2OGQwMTU3MTNiYTFjZmIzOWI0NjFlZjRhZjI0YTBhMDU2NzVkOTQcommit}(author}(name	Tom Papkeemailtpapke@palantir.comdate2023-06-21T10:25:27Zu	committer}(jϦ 	Tom PapkejѦ tpapke@palantir.comjӦ 2023-06-21T10:25:27ZumessagemPass refreshable thread info configuration separately
Remove thread info configuration from LockServerOptionstree}(jǦ (5bf5545e7f43cf8c45ac7c8aca1c02b1b71f2f30url`https://api.github.com/repos/palantir/atlasdb/git/trees/5bf5545e7f43cf8c45ac7c8aca1c02b1b71f2f30ujߦ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/968d015713ba1cfb39b461ef4af24a0a05675d94
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcUHVMVCLf0Ym9mc2mF9s0kaFIw0FAmSS0BcACgkQmF9s0kaF
Iw0HNgf8DhxlWW5Igp5NPS/cm1IqukuZOBtH8E87e4iI/ZyJRf9IHdbrPJps/dxX
W0hzpIdM8+Zyx0F2vZbNanDZObRHgfR0Hy8+28FDSwCCG6A0bgpuHG7Qes7eA3iX
wg36jjQxWczWhP2luyiz0BqFadozdha3MRPLfRZZ5B1U8KGMgJplzel4m2mUnChI
+gT27MWnSeQ81f8e945XYtiO3HwQD5Uy9BU5FseRqVlVrybDJ6U/QwduH9wq/XVL
wVeaWMAcWoSc6fqmkff4e0qOMtTLFdvqnn4m+EKk5utt/0otfiAvpaOVyrwIBn+P
vb9Qfrav+nYCuGmpt8gePUGXefujxQ==
=10OT
-----END PGP SIGNATURE-----payloadX@  tree 5bf5545e7f43cf8c45ac7c8aca1c02b1b71f2f30
parent 6a5b77cf2be59e34059678835c5f4ce6f8e84a9c
author Tom Papke <tpapke@palantir.com> 1687343127 +0100
committer Tom Papke <tpapke@palantir.com> 1687343127 +0100

Pass refreshable thread info configuration separately
Remove thread info configuration from LockServerOptions
uujߦ ^https://api.github.com/repos/palantir/atlasdb/commits/968d015713ba1cfb39b461ef4af24a0a05675d94html_urlShttps://github.com/palantir/atlasdb/commit/968d015713ba1cfb39b461ef4af24a0a05675d94comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/968d015713ba1cfb39b461ef4af24a0a05675d94/commentsjͦ }(login	ToemmscheidJbojɦ MDQ6VXNlcjQzNjc1NDkw
avatar_url4https://avatars.githubusercontent.com/u/43675490?v=4gravatar_idh5jߦ &https://api.github.com/users/Toemmschej https://github.com/Toemmsche
followers_url0https://api.github.com/users/Toemmsche/followers
following_url=https://api.github.com/users/Toemmsche/following{/other_user}	gists_url6https://api.github.com/users/Toemmsche/gists{/gist_id}starred_url=https://api.github.com/users/Toemmsche/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/Toemmsche/subscriptionsorganizations_url+https://api.github.com/users/Toemmsche/orgs	repos_url,https://api.github.com/users/Toemmsche/repos
events_url7https://api.github.com/users/Toemmsche/events{/privacy}received_events_url6https://api.github.com/users/Toemmsche/received_eventstypeUser
site_adminujզ }(j 	Toemmschej Jbojɦ MDQ6VXNlcjQzNjc1NDkwj 4https://avatars.githubusercontent.com/u/43675490?v=4j h5jߦ &https://api.github.com/users/Toemmschej https://github.com/Toemmschej 0https://api.github.com/users/Toemmsche/followersj =https://api.github.com/users/Toemmsche/following{/other_user}j 6https://api.github.com/users/Toemmsche/gists{/gist_id}j =https://api.github.com/users/Toemmsche/starred{/owner}{/repo}j 4https://api.github.com/users/Toemmsche/subscriptionsj +https://api.github.com/users/Toemmsche/orgsj ,https://api.github.com/users/Toemmsche/reposj	 7https://api.github.com/users/Toemmsche/events{/privacy}j 6https://api.github.com/users/Toemmsche/received_eventsj
 Userj uparents]}(jǦ (6a5b77cf2be59e34059678835c5f4ce6f8e84a9cjߦ ^https://api.github.com/repos/palantir/atlasdb/commits/6a5b77cf2be59e34059678835c5f4ce6f8e84a9cj Shttps://github.com/palantir/atlasdb/commit/6a5b77cf2be59e34059678835c5f4ce6f8e84a9cuastats}(totalKi	additionsK<	deletionsK-ufiles](}(jǦ (24a4a395982dfe44421aaba5d136f4694950815ffilename?lock-api/src/main/java/com/palantir/lock/LockServerConfigs.javastatusmodifiedj) Kj* K changesKblob_urlhttps://github.com/palantir/atlasdb/blob/968d015713ba1cfb39b461ef4af24a0a05675d94/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.javaraw_urlhttps://github.com/palantir/atlasdb/raw/968d015713ba1cfb39b461ef4af24a0a05675d94/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerConfigs.java?ref=968d015713ba1cfb39b461ef4af24a0a05675d94patchXV  @@ -20,4 +20,7 @@ public final class LockServerConfigs {
     private LockServerConfigs() {}
 
     public static final LockServerOptions DEFAULT = LockServerOptions.builder().build();
+
+    public static final DebugThreadInfoConfiguration DEFAULT_THREAD_INFO_CONFIG =
+            ImmutableDebugThreadInfoConfiguration.builder().build();
 }u     }(jǦ (da3109e146d361ca31d2958b0fc223d0d2334824j/ ?lock-api/src/main/java/com/palantir/lock/LockServerOptions.javaj1 modifiedj) Kj* Kj3 Kj4 https://github.com/palantir/atlasdb/blob/968d015713ba1cfb39b461ef4af24a0a05675d94/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj6 https://github.com/palantir/atlasdb/raw/968d015713ba1cfb39b461ef4af24a0a05675d94/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.javaj8 https://api.github.com/repos/palantir/atlasdb/contents/lock-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2FLockServerOptions.java?ref=968d015713ba1cfb39b461ef4af24a0a05675d94j: X	  @@ -16,11 +16,9 @@
 package com.palantir.lock;
 
 import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
 import com.google.common.base.MoreObjects;
-import com.palantir.refreshable.Refreshable;
 import java.io.InvalidObjectException;
 import java.io.ObjectInputStream;
 import java.io.Serializable;
@@ -128,15 +126,6 @@ public long slowLogTriggerMillis() {
         return 10000L;
     }
 
-    /**
-     * Runtime configuration relating to thread info recording (which lock is held by which client-thread).
-     */
-    @JsonIgnore
-    @Value.Default
-    public Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration() {
-        return Refreshable.only(ImmutableDebugThreadInfoConfiguration.builder().build());
-    }
-
     @Override
     public boolean equals(@Nullable Object obj) {
         if (this == obj) {
@@ -153,10 +142,7 @@ && getRandomBitCount() == other.getRandomBitCount()
                 && Objects.equals(getMaxAllowedClockDrift(), other.getMaxAllowedClockDrift())
                 && Objects.equals(getMaxAllowedBlockingDuration(), other.getMaxAllowedBlockingDuration())
                 && Objects.equals(getMaxNormalLockAge(), other.getMaxNormalLockAge())
-                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout())
-                && Objects.equals(
-                        threadInfoConfiguration().current(),
-                        other.threadInfoConfiguration().current());
+                && Objects.equals(getStuckTransactionTimeout(), other.getStuckTransactionTimeout());
     }
 
     @Override
@@ -169,8 +155,7 @@ public int hashCode() {
                 getMaxNormalLockAge(),
                 getRandomBitCount(),
                 getStuckTransactionTimeout(),
-                slowLogTriggerMillis(),
-                threadInfoConfiguration().current());
+                slowLogTriggerMillis());
     }
 
     @Override
@@ -184,7 +169,6 @@ public String toString() {
                 .add("randomBitCount", getRandomBitCount())
                 .add("stuckTransactionTimeout", getStuckTransactionTimeout())
                 .add("slowLogTriggerMillis", slowLogTriggerMillis())
-                .add("threadInfoConfiguration", threadInfoConfiguration().current())
                 .toString();
     }
 u}(jǦ (02b132e753f2855ab2307e6f8ec0d065e233af4bj/ Clock-impl/src/main/java/com/palantir/lock/impl/LockServiceImpl.javaj1 modifiedj) Kj* Kj3 K$j4 https://github.com/palantir/atlasdb/blob/968d015713ba1cfb39b461ef4af24a0a05675d94/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj6 https://github.com/palantir/atlasdb/raw/968d015713ba1cfb39b461ef4af24a0a05675d94/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.javaj8 https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FLockServiceImpl.java?ref=968d015713ba1cfb39b461ef4af24a0a05675d94j: XJ  @@ -45,6 +45,7 @@
 import com.palantir.lock.BlockingMode;
 import com.palantir.lock.CloseableLockService;
 import com.palantir.lock.CloseableRemoteLockService;
+import com.palantir.lock.DebugThreadInfoConfiguration;
 import com.palantir.lock.ExpiringToken;
 import com.palantir.lock.HeldLocksGrant;
 import com.palantir.lock.HeldLocksToken;
@@ -80,6 +81,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import com.palantir.nylon.threads.ThreadNames;
+import com.palantir.refreshable.Refreshable;
 import com.palantir.util.JMXUtils;
 import com.palantir.util.Ownable;
 import java.math.BigInteger;
@@ -233,26 +235,48 @@ public static LockServiceImpl create() {
     public static LockServiceImpl create(LockServerOptions options) {
         com.palantir.logsafe.Preconditions.checkNotNull(options);
         ExecutorService newExecutor = PTExecutors.newCachedThreadPool(LockServiceImpl.class.getName());
-        return create(options, Ownable.owned(newExecutor));
+        return create(
+                options, Ownable.owned(newExecutor), Refreshable.only(LockServerConfigs.DEFAULT_THREAD_INFO_CONFIG));
     }
 
     public static LockServiceImpl create(LockServerOptions options, ExecutorService injectedExecutor) {
         com.palantir.logsafe.Preconditions.checkNotNull(options);
-        return create(options, Ownable.notOwned(injectedExecutor));
+        return create(
+                options,
+                Ownable.notOwned(injectedExecutor),
+                Refreshable.only(LockServerConfigs.DEFAULT_THREAD_INFO_CONFIG));
     }
 
-    private static LockServiceImpl create(LockServerOptions options, Ownable<ExecutorService> executor) {
+    public static LockServiceImpl create(
+            LockServerOptions options,
+            ExecutorService injectedExecutor,
+            Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration) {
+        com.palantir.logsafe.Preconditions.checkNotNull(options);
+        return create(options, Ownable.notOwned(injectedExecutor), threadInfoConfiguration);
+    }
+
+    private static LockServiceImpl create(
+            LockServerOptions options,
+            Ownable<ExecutorService> executor,
+            Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration) {
         if (log.isTraceEnabled()) {
             log.trace("Creating LockService with options={}", SafeArg.of("options", options));
         }
         final String jmxBeanRegistrationName = "com.palantir.lock:type=LockServer_" + instanceCount.getAndIncrement();
         LockServiceImpl lockService = new LockServiceImpl(
-                options, () -> JMXUtils.unregisterMBeanCatchAndLogExceptions(jmxBeanRegistrationName), executor);
+                options,
+                () -> JMXUtils.unregisterMBeanCatchAndLogExceptions(jmxBeanRegistrationName),
+                executor,
+                threadInfoConfiguration);
         JMXUtils.registerMBeanCatchAndLogExceptions(lockService, jmxBeanRegistrationName);
         return lockService;
     }
 
-    private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable<ExecutorService> executor) {
+    private LockServiceImpl(
+            LockServerOptions options,
+            Runnable callOnClose,
+            Ownable<ExecutorService> executor,
+            Refreshable<DebugThreadInfoConfiguration> threadInfoConfiguration) {
         this.lockReapRunner = new LockReapRunner(executor);
         this.callOnClose = callOnClose;
         this.isStandaloneServer = options.isStandaloneServer();
@@ -262,7 +286,7 @@ private LockServiceImpl(LockServerOptions options, Runnable callOnClose, Ownable
         this.stuckTransactionTimeout = SimpleTimeDuration.of(options.getStuckTransactionTimeout());
         this.slowLogTriggerMillis = options.slowLogTriggerMillis();
         this.threadInfoSnapshotManager =
-                new LockThreadInfoSnapshotManager(options.threadInfoConfiguration(), () -> heldLocksTokenMap);
+                new LockThreadInfoSnapshotManager(threadInfoConfiguration, () -> heldLocksTokenMap);
         threadInfoSnapshotManager.start();
     }
 u}(jǦ (2ca88ea4cb2574f058955927cdb1dde901d27b05j/ Qlock-impl/src/test/java/com/palantir/lock/impl/ThreadInfoLockServiceImplTest.javaj1 modifiedj) Kj* Kj3 K*j4 https://github.com/palantir/atlasdb/blob/968d015713ba1cfb39b461ef4af24a0a05675d94/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj6 https://github.com/palantir/atlasdb/raw/968d015713ba1cfb39b461ef4af24a0a05675d94/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.javaj8 https://api.github.com/repos/palantir/atlasdb/contents/lock-impl%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Flock%2Fimpl%2FThreadInfoLockServiceImplTest.java?ref=968d015713ba1cfb39b461ef4af24a0a05675d94j: X  @@ -49,6 +49,10 @@
 import org.junit.Test;
 
 public class ThreadInfoLockServiceImplTest {
+
+    private static final ExecutorService LOCK_SERVICE_IMPL_EXECUTOR =
+            PTExecutors.newCachedThreadPool(LockServiceImpl.class.getName());
+
     private static final LockDescriptor TEST_LOCK_1 = StringLockDescriptor.of("lock-1");
     private static final LockDescriptor TEST_LOCK_2 = StringLockDescriptor.of("lock-2");
     private static final LockDescriptor TEST_LOCK_3 = StringLockDescriptor.of("lock-3");
@@ -69,12 +73,12 @@ public class ThreadInfoLockServiceImplTest {
             PTExecutors.newCachedThreadPool(ThreadInfoLockServiceImplTest.class.getName());
 
     // Disable background snapshotting, invoke explicitly instead
-    private final LockServiceImpl lockService = LockServiceImpl.create(LockServerOptions.builder()
-            .isStandaloneServer(false)
-            .threadInfoConfiguration(Refreshable.only(ImmutableDebugThreadInfoConfiguration.builder()
+    private final LockServiceImpl lockService = LockServiceImpl.create(
+            LockServerOptions.builder().isStandaloneServer(false).build(),
+            LOCK_SERVICE_IMPL_EXECUTOR,
+            Refreshable.only(ImmutableDebugThreadInfoConfiguration.builder()
                     .recordThreadInfo(false)
-                    .build()))
-            .build());
+                    .build()));
 
     @Test
     public void initialThreadInfoIsEmpty() {
@@ -277,13 +281,13 @@ public void refreshDoesNotChangeSnapshot() throws InterruptedException {
 
     @Test
     public void backgroundSnapshotRunnerWorks() throws InterruptedException {
-        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
-                .isStandaloneServer(false)
-                .threadInfoConfiguration(Refreshable.only(ImmutableDebugThreadInfoConfiguration.builder()
+        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(
+                LockServerOptions.builder().isStandaloneServer(false).build(),
+                LOCK_SERVICE_IMPL_EXECUTOR,
+                Refreshable.only(ImmutableDebugThreadInfoConfiguration.builder()
                         .recordThreadInfo(true)
                         .threadInfoSnapshotIntervalMillis(50L)
-                        .build()))
-                .build());
+                        .build()));
         LockThreadInfoSnapshotManager backgroundSnapshotRunner = lockServiceWithBackgroundRunner.getSnapshotManager();
 
         LockResponse response = lockServiceWithBackgroundRunner.lockWithFullLockResponse(
@@ -310,13 +314,13 @@ public void logArgIsUnsafeAndContainsEmptyOptionalIfNotRecordingThreadInfo() thr
 
     @Test
     public void logArgIsUnsafeAndContainsRestrictedSnapshotIfRecordingThreadInfo() throws InterruptedException {
-        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
-                .isStandaloneServer(false)
-                .threadInfoConfiguration(Refreshable.only(ImmutableDebugThreadInfoConfiguration.builder()
+        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(
+                LockServerOptions.builder().isStandaloneServer(false).build(),
+                LOCK_SERVICE_IMPL_EXECUTOR,
+                Refreshable.only(ImmutableDebugThreadInfoConfiguration.builder()
                         .recordThreadInfo(true)
                         .threadInfoSnapshotIntervalMillis(50L)
-                        .build()))
-                .build());
+                        .build()));
         LockRequest lockRequest2 = LockRequest.builder(
                         ImmutableSortedMap.of(TEST_LOCK_1, LockMode.READ, TEST_LOCK_2, LockMode.READ))
                 .doNotBlock()
@@ -343,10 +347,10 @@ public void willRestartWhenConfigIsUpdated() throws InterruptedException {
                         .recordThreadInfo(true)
                         .threadInfoSnapshotIntervalMillis(50L)
                         .build());
-        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(LockServerOptions.builder()
-                .isStandaloneServer(false)
-                .threadInfoConfiguration(refreshableThreadInfoConfiguration)
-                .build());
+        LockServiceImpl lockServiceWithBackgroundRunner = LockServiceImpl.create(
+                LockServerOptions.builder().isStandaloneServer(false).build(),
+                LOCK_SERVICE_IMPL_EXECUTOR,
+                refreshableThreadInfoConfiguration);
         LockThreadInfoSnapshotManager backgroundSnapshotRunner = lockServiceWithBackgroundRunner.getSnapshotManager();
 
         LockResponse lockResponse = lockServiceWithBackgroundRunner.lockWithFullLockResponse(u}(jǦ (83b913c2201b9f02ff2700ce1b4e42ba557d2aeaj/ Itimelock-agent/src/main/java/com/palantir/timelock/paxos/LockCreator.javaj1 modifiedj) Kj* Kj3 Kj4 https://github.com/palantir/atlasdb/blob/968d015713ba1cfb39b461ef4af24a0a05675d94/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj6 https://github.com/palantir/atlasdb/raw/968d015713ba1cfb39b461ef4af24a0a05675d94/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.javaj8 https://api.github.com/repos/palantir/atlasdb/contents/timelock-agent%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Ftimelock%2Fpaxos%2FLockCreator.java?ref=968d015713ba1cfb39b461ef4af24a0a05675d94j: X  @@ -41,10 +41,10 @@ public LockCreator(Refreshable<TimeLockRuntimeConfiguration> runtime, int thread
     public CloseableLockService createThreadPoolingLockService() {
         LockServerOptions lockServerOptions = LockServerOptions.builder()
                 .slowLogTriggerMillis(runtime.get().slowLockLogTriggerMillis())
-                .threadInfoConfiguration(runtime.map(TimeLockRuntimeConfiguration::threadInfoConfiguration))
                 .build();
 
-        LockServiceImpl rawLockService = LockServiceImpl.create(lockServerOptions, sharedExecutor);
+        LockServiceImpl rawLockService = LockServiceImpl.create(
+                lockServerOptions, sharedExecutor, runtime.map(TimeLockRuntimeConfiguration::threadInfoConfiguration));
         CloseableLockService lockService = BlockingTimeLimitedLockService.create(
                 rawLockService, blockingTimeoutMs, rawLockService.getSnapshotManager());
 ueu(034fc13b6a43661438c15e3c443d50ccdd3368a6}(sha(034fc13b6a43661438c15e3c443d50ccdd3368a6node_idEC_kwDOAjP5fdoAKDAzNGZjMTNiNmE0MzY2MTQzOGMxNWUzYzQ0M2Q1MGNjZGQzMzY4YTYcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-23T09:06:48Zu	committer}(jf 
Sam Kramerjh skramer@palantir.comjj 2023-05-23T09:06:48Zumessage[sii] add commentstree}(j^ (a76e1c3d8386f3059fdd89b99c5e564a77b352b9url`https://api.github.com/repos/palantir/atlasdb/git/trees/a76e1c3d8386f3059fdd89b99c5e564a77b352b9ujv bhttps://api.github.com/repos/palantir/atlasdb/git/commits/034fc13b6a43661438c15e3c443d50ccdd3368a6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRsgikACgkQmPPOpKR4
XS2Y0Af8CNCbunWothTsTO+0f5qihuX7CuGf+EiN8DYk+XhDnqdPLPfJ7BdMi8Y6
Zm51t8AlZblII2E8FBmnNr2O+WeCanSMR4kNT72ZDKCS3lhyRpiuWVQX+JX5SCQN
01NTQe8T065EfZXnlPgIEIqR6kI7cbC+MWkuOYPEpUACAO2jyVmeKJGdmuzJqI+T
Ro1wwfzh4DMBs9VHjSh7Jo3lP+X7WmcrEt1X0w+/3gi5W9iBV4sKk/VOf4QaocwD
FyUrDWl2xg7Ifmwi6PnBjYCOrmTZRC9G0/Q2cuysVxJEcgMyyZbsGB9JK7igryiv
WyL/IVxp9J6rQClEgAML//mIMDH7sQ==
=iM+6
-----END PGP SIGNATURE-----payloadtree a76e1c3d8386f3059fdd89b99c5e564a77b352b9
parent 39d196308b09a2f208ec05d1518ac62c9c44b518
author Sam Kramer <skramer@palantir.com> 1684832808 +0100
committer Sam Kramer <skramer@palantir.com> 1684832808 +0100

[sii] add comments
uujv ^https://api.github.com/repos/palantir/atlasdb/commits/034fc13b6a43661438c15e3c443d50ccdd3368a6html_urlShttps://github.com/palantir/atlasdb/commit/034fc13b6a43661438c15e3c443d50ccdd3368a6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/034fc13b6a43661438c15e3c443d50ccdd3368a6/commentsjd }(login
Sam-KrameridJ^2_ j` MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jv 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujl }(j 
Sam-Kramerj J^2_ j` MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5jv 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj Userj uparents]}(j^ (39d196308b09a2f208ec05d1518ac62c9c44b518jv ^https://api.github.com/repos/palantir/atlasdb/commits/39d196308b09a2f208ec05d1518ac62c9c44b518j Shttps://github.com/palantir/atlasdb/commit/39d196308b09a2f208ec05d1518ac62c9c44b518uastats}(totalKS	additionsK:	deletionsKufiles](}(j^ (811906cbfb7ce090c77e1c5c066650305b669435filenamematlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotIsolationInvariant.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/034fc13b6a43661438c15e3c443d50ccdd3368a6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotIsolationInvariant.javaraw_urlhttps://github.com/palantir/atlasdb/raw/034fc13b6a43661438c15e3c443d50ccdd3368a6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotIsolationInvariant.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotIsolationInvariant.java?ref=034fc13b6a43661438c15e3c443d50ccdd3368a6patchXt
  @@ -27,6 +27,23 @@
 import java.util.function.Consumer;
 import one.util.streamex.StreamEx;
 
+/**
+ * This invariant checks that the snapshot isolation property is maintained.
+ * <p>
+ * The way this check works, is by replaying all transactions sorted by their effective timestamp. Transactions are
+ * replayed to an immutable map, allowing us to track each table's state at any given time. These table views are
+ * persisted to a {@link java.util.NavigableMap} by the commit timestamp of each transaction, with the value being
+ * the version of the immutable map at that point-in-time.
+ * <p>
+ * Reads are validated by comparing values from the view of a table at the start timestamp (read view),
+ * and comparing to what we've witnessed. Local writes are replayed onto the read view to ensure we
+ * don't flag false-positives, but is not witnessed by other transactions.
+ * <p>
+ * Writes are validated by first checking that the value we're writing to hasn't changed between the read view and the
+ * latest view. This would indicate a write-write conflict miss, as we should've conflicted with this transaction.
+ * Otherwise, once the transaction is replayed on top of the latest view, we persist this new view at the
+ * commit timestamp.
+ */
 public final class SnapshotIsolationInvariant implements TransactionInvariant {
     @Override
     public void accept(
@@ -35,11 +52,13 @@ public void accept(
         List<InvalidWitnessedTransaction> transactions = StreamEx.of(workflowHistory.history())
                 .mapPartial(witnessedTransaction -> {
                     StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> latestTableView =
-                            StructureHolder.create(tableView::getLatestTableView);
-                    StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> readView =
-                            StructureHolder.create(() -> tableView.getView(witnessedTransaction.startTimestamp()));
+                            tableView.getLatestTableView();
+
                     SnapshotIsolationInvariantVisitor visitor = new SnapshotIsolationInvariantVisitor(
-                            witnessedTransaction.startTimestamp(), latestTableView, readView);
+                            witnessedTransaction.startTimestamp(),
+                            latestTableView,
+                            tableView.getView(witnessedTransaction.startTimestamp()));
+
                     List<InvalidWitnessedTransactionAction> invalidTransactions = StreamEx.of(
                                     witnessedTransaction.actions())
                             .mapPartial(action -> action.accept(visitor))u}(j^ (d2d36d733e7387538493fb9fded3d6ef9244f7c3jƧ tatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/SnapshotIsolationInvariantVisitor.javajȧ modifiedj Kj Kjʧ K*j˧ https://github.com/palantir/atlasdb/blob/034fc13b6a43661438c15e3c443d50ccdd3368a6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotIsolationInvariantVisitor.javajͧ https://github.com/palantir/atlasdb/raw/034fc13b6a43661438c15e3c443d50ccdd3368a6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotIsolationInvariantVisitor.javajϧ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FSnapshotIsolationInvariantVisitor.java?ref=034fc13b6a43661438c15e3c443d50ccdd3368a6jѧ XM  @@ -27,26 +27,34 @@
 import io.vavr.collection.Map;
 import java.util.Optional;
 
+/**
+ * Replays transactions and validates for conflicts on the latest and read view.
+ *
+ * The latest view will be a view of the database at the commit timestamp, while the read view will be the view of
+ * the database at the start timestamp.
+ *
+ * Objects created from this class should only be used within a scope of a single transaction.
+ */
 final class SnapshotIsolationInvariantVisitor
         implements WitnessedTransactionActionVisitor<Optional<InvalidWitnessedTransactionAction>> {
 
     private final Long startTimestamp;
-    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> latestTableView;
+    private final StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> latestView;
     private final StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> readView;
 
     SnapshotIsolationInvariantVisitor(
             Long startTimestamp,
-            StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> latestTableView,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> latestView,
             StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> readView) {
         this.startTimestamp = startTimestamp;
-        this.latestTableView = latestTableView;
+        this.latestView = latestView;
         this.readView = readView;
     }
 
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactionAction readTransactionAction) {
         Optional<Integer> expected =
-                fetchValueFromReadView(readTransactionAction.table(), readTransactionAction.cell());
+                fetchValueFromView(readTransactionAction.table(), readTransactionAction.cell(), readView);
         if (!expected.equals(readTransactionAction.value())) {
             return Optional.of(InvalidWitnessedTransactionAction.of(
                     readTransactionAction, MismatchedValue.of(readTransactionAction.value(), expected)));
@@ -57,9 +65,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedReadTransactio
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransactionAction writeTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
-                        writeTransactionAction.table(),
-                        writeTransactionAction.cell(),
-                        Optional.of(writeTransactionAction.value()))
+                        writeTransactionAction.table(), writeTransactionAction.cell())
                 .map(mismatchedValue -> InvalidWitnessedTransactionAction.of(writeTransactionAction, mismatchedValue));
 
         applyWrites(
@@ -72,7 +78,7 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedWriteTransacti
     @Override
     public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransactionAction deleteTransactionAction) {
         Optional<InvalidWitnessedTransactionAction> invalidAction = checkForWriteWriteConflicts(
-                        deleteTransactionAction.table(), deleteTransactionAction.cell(), Optional.empty())
+                        deleteTransactionAction.table(), deleteTransactionAction.cell())
                 .map(mismatchedValue -> InvalidWitnessedTransactionAction.of(deleteTransactionAction, mismatchedValue));
 
         applyWrites(deleteTransactionAction.table(), deleteTransactionAction.cell(), Optional.empty());
@@ -87,27 +93,31 @@ public Optional<InvalidWitnessedTransactionAction> visit(WitnessedDeleteTransact
     private void applyWrites(String tableName, WorkloadCell cell, Optional<Integer> value) {
         readView.with(table ->
                 table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndTimestamp.of(value, startTimestamp)));
-        latestTableView.with(table ->
+        latestView.with(table ->
                 table.put(TableAndWorkloadCell.of(tableName, cell), ValueAndTimestamp.of(value, startTimestamp)));
     }
 
     /**
      * Checks that the value we are writing has not changed from our read view and the latest view. If it has,
      * that means we have missed a write-write conflict, as it should have conflicted with this transaction.
      */
-    private Optional<MismatchedValue> checkForWriteWriteConflicts(
-            String table, WorkloadCell cell, Optional<Integer> value) {
-        Optional<Integer> expected = fetchValueFromReadView(table, cell);
-        if (!expected.equals(value)) {
-            return Optional.of(MismatchedValue.of(value, expected));
+    private Optional<MismatchedValue> checkForWriteWriteConflicts(String table, WorkloadCell cell) {
+        Optional<Integer> previous = fetchValueFromView(table, cell, readView);
+        Optional<Integer> latest = fetchValueFromView(table, cell, latestView);
+
+        if (!previous.equals(latest)) {
+            return Optional.of(MismatchedValue.of(previous, latest));
         }
 
         return Optional.empty();
     }
 
-    private Optional<Integer> fetchValueFromReadView(String tableName, WorkloadCell workloadCell) {
+    private Optional<Integer> fetchValueFromView(
+            String tableName,
+            WorkloadCell workloadCell,
+            StructureHolder<Map<TableAndWorkloadCell, ValueAndTimestamp>> view) {
         TableAndWorkloadCell tableAndWorkloadCell = TableAndWorkloadCell.of(tableName, workloadCell);
-        return readView.getSnapshot()
+        return view.getSnapshot()
                 .get(tableAndWorkloadCell)
                 .toJavaOptional()
                 .map(ValueAndTimestamp::value)u}(j^ (8f9d9b27f1b8643714a607fc006bbff8fcc2b63fjƧ \atlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/invariant/TableView.javajȧ modifiedj K	j Kjʧ Kj˧ https://github.com/palantir/atlasdb/blob/034fc13b6a43661438c15e3c443d50ccdd3368a6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTableView.javajͧ https://github.com/palantir/atlasdb/raw/034fc13b6a43661438c15e3c443d50ccdd3368a6/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTableView.javajϧ https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Finvariant%2FTableView.java?ref=034fc13b6a43661438c15e3c443d50ccdd3368a6jѧ X	  @@ -16,6 +16,7 @@
 
 package com.palantir.atlasdb.workload.invariant;
 
+import com.palantir.atlasdb.keyvalue.api.cache.StructureHolder;
 import com.palantir.atlasdb.workload.store.TableAndWorkloadCell;
 import io.vavr.collection.Map;
 import java.util.NavigableMap;
@@ -29,12 +30,15 @@ public void put(Long commitTimestamp, Map<TableAndWorkloadCell, ValueAndTimestam
         tableViews.put(commitTimestamp, tableView);
     }
 
-    public io.vavr.collection.Map<TableAndWorkloadCell, ValueAndTimestamp> getView(Long startTimestamp) {
-        return Optional.ofNullable(tableViews.lowerEntry(startTimestamp).getValue())
-                .orElseGet(io.vavr.collection.HashMap::empty);
+    public StructureHolder<io.vavr.collection.Map<TableAndWorkloadCell, ValueAndTimestamp>> getView(
+            Long startTimestamp) {
+        return StructureHolder.create(
+                () -> Optional.ofNullable(tableViews.lowerEntry(startTimestamp).getValue())
+                        .orElseGet(io.vavr.collection.HashMap::empty));
     }
 
-    public io.vavr.collection.Map<TableAndWorkloadCell, ValueAndTimestamp> getLatestTableView() {
-        return Optional.ofNullable(tableViews.lastEntry().getValue()).orElseGet(io.vavr.collection.HashMap::empty);
+    public StructureHolder<io.vavr.collection.Map<TableAndWorkloadCell, ValueAndTimestamp>> getLatestTableView() {
+        return StructureHolder.create(() ->
+                Optional.ofNullable(tableViews.lastEntry().getValue()).orElseGet(io.vavr.collection.HashMap::empty));
     }
 }ueu(bf5f00747916d8f9a1552deb11b1ac7bb0faa053}(sha(bf5f00747916d8f9a1552deb11b1ac7bb0faa053node_idEC_kwDOAjP5fdoAKGJmNWYwMDc0NzkxNmQ4ZjlhMTU1MmRlYjExYjFhYzdiYjBmYWEwNTMcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-08-08T20:20:44Zu	committer}(j Tom Petraccaj tpetracca@palantir.comj 2023-08-08T20:20:56Zumessage$accept intended breaks since 0.909.0tree}(j (59d844c9ad93f3e4e0b48f1593c7c46bbbdd4766url`https://api.github.com/repos/palantir/atlasdb/git/trees/59d844c9ad93f3e4e0b48f1593c7c46bbbdd4766uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/bf5f00747916d8f9a1552deb11b1ac7bb0faa053
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj ^https://api.github.com/repos/palantir/atlasdb/commits/bf5f00747916d8f9a1552deb11b1ac7bb0faa053html_urlShttps://github.com/palantir/atlasdb/commit/bf5f00747916d8f9a1552deb11b1ac7bb0faa053comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/bf5f00747916d8f9a1552deb11b1ac7bb0faa053/commentsj }(login	tpetraccaidJ& j MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5j &https://api.github.com/users/tpetraccaj	 https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminuj }(j 	tpetraccaj J& j MDQ6VXNlcjI1NTQzMjg=j 3https://avatars.githubusercontent.com/u/2554328?v=4j h5j &https://api.github.com/users/tpetraccaj	 https://github.com/tpetraccaj 0https://api.github.com/users/tpetracca/followersj =https://api.github.com/users/tpetracca/following{/other_user}j 6https://api.github.com/users/tpetracca/gists{/gist_id}j =https://api.github.com/users/tpetracca/starred{/owner}{/repo}j 4https://api.github.com/users/tpetracca/subscriptionsj! +https://api.github.com/users/tpetracca/orgsj# ,https://api.github.com/users/tpetracca/reposj% 7https://api.github.com/users/tpetracca/events{/privacy}j' 6https://api.github.com/users/tpetracca/received_eventsj) Userj+ uparents]}(j (29251242d74bc7c29d603bfb7862ab028125de7bj ^https://api.github.com/repos/palantir/atlasdb/commits/29251242d74bc7c29d603bfb7862ab028125de7bj	 Shttps://github.com/palantir/atlasdb/commit/29251242d74bc7c29d603bfb7862ab028125de7buastats}(totalK<	additionsK<	deletionsK ufiles](}(j (3a9b0845d256f702e787162e41056d0c4cc02816filename.palantir/revapi.ymlstatusmodifiedjE K8jF K changesK8blob_urlhhttps://github.com/palantir/atlasdb/blob/bf5f00747916d8f9a1552deb11b1ac7bb0faa053/.palantir%2Frevapi.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/bf5f00747916d8f9a1552deb11b1ac7bb0faa053/.palantir%2Frevapi.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.palantir%2Frevapi.yml?ref=bf5f00747916d8f9a1552deb11b1ac7bb0faa053patchX)  @@ -193,3 +193,59 @@ acceptedBreaks:
       new: "method void com.palantir.atlasdb.transaction.api.Transaction::putWithMetadata(com.palantir.atlasdb.keyvalue.api.TableReference,\
         \ java.util.Map<com.palantir.atlasdb.keyvalue.api.Cell, com.palantir.atlasdb.transaction.api.ValueAndChangeMetadata>)"
       justification: "Adding new metadata interface methods"
+  "0.909.0":
+    com.palantir.atlasdb:atlasdb-config:
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.factory.ImmutableLocalPaxosServices"
+      justification: "None of the impacted classes are used or inherited from any\
+        \ other library or product"
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.factory.ImmutableRemotePaxosServerSpec"
+      justification: "None of the impacted classes are used or inherited from any\
+        \ other library or product"
+    - code: "java.class.removed"
+      old: "class com.palantir.atlasdb.factory.Leaders"
+      justification: "None of the impacted classes are used or inherited from any\
+        \ other library or product"
+    - code: "java.method.numberOfParametersChanged"
+      old: "method void com.palantir.atlasdb.factory.DefaultLockAndTimestampServiceFactory::<init>(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.config.AtlasDbConfig, com.palantir.refreshable.Refreshable<com.palantir.atlasdb.config.AtlasDbRuntimeConfig>,\
+        \ java.util.function.Consumer<java.lang.Object>, java.util.function.Supplier<com.palantir.lock.LockService>,\
+        \ java.util.function.Supplier<com.palantir.timestamp.ManagedTimestampService>,\
+        \ com.palantir.timestamp.TimestampStoreInvalidator, com.palantir.conjure.java.api.config.service.UserAgent,\
+        \ java.util.Optional<com.palantir.atlasdb.debug.LockDiagnosticComponents>,\
+        \ com.palantir.dialogue.clients.DialogueClients.ReloadingFactory, java.util.Optional<com.palantir.lock.client.metrics.TimeLockFeedbackBackgroundTask>,\
+        \ java.util.Optional<com.palantir.atlasdb.config.TimeLockRequestBatcherProviders>,\
+        \ java.util.Set<com.palantir.atlasdb.table.description.Schema>)"
+      new: "method void com.palantir.atlasdb.factory.DefaultLockAndTimestampServiceFactory::<init>(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.config.AtlasDbConfig, com.palantir.refreshable.Refreshable<com.palantir.atlasdb.config.AtlasDbRuntimeConfig>,\
+        \ java.util.function.Supplier<com.palantir.lock.LockService>, java.util.function.Supplier<com.palantir.timestamp.ManagedTimestampService>,\
+        \ com.palantir.timestamp.TimestampStoreInvalidator, com.palantir.conjure.java.api.config.service.UserAgent,\
+        \ java.util.Optional<com.palantir.atlasdb.debug.LockDiagnosticComponents>,\
+        \ com.palantir.dialogue.clients.DialogueClients.ReloadingFactory, java.util.Optional<com.palantir.lock.client.metrics.TimeLockFeedbackBackgroundTask>,\
+        \ java.util.Optional<com.palantir.atlasdb.config.TimeLockRequestBatcherProviders>,\
+        \ java.util.Set<com.palantir.atlasdb.table.description.Schema>)"
+      justification: "None of the impacted classes are used or inherited from any\
+        \ other library or product"
+    - code: "java.method.numberOfParametersChanged"
+      old: "method void com.palantir.atlasdb.factory.DefaultLockAndTimestampServiceFactory::<init>(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.config.AtlasDbConfig, com.palantir.refreshable.Refreshable<com.palantir.atlasdb.config.AtlasDbRuntimeConfig>,\
+        \ java.util.function.Consumer<java.lang.Object>, java.util.function.Supplier<com.palantir.lock.LockService>,\
+        \ java.util.function.Supplier<com.palantir.timestamp.ManagedTimestampService>,\
+        \ com.palantir.timestamp.TimestampStoreInvalidator, com.palantir.conjure.java.api.config.service.UserAgent,\
+        \ java.util.Optional<com.palantir.atlasdb.debug.LockDiagnosticComponents>,\
+        \ com.palantir.dialogue.clients.DialogueClients.ReloadingFactory, java.util.Optional<com.palantir.lock.client.metrics.TimeLockFeedbackBackgroundTask>,\
+        \ java.util.Optional<com.palantir.atlasdb.config.TimeLockRequestBatcherProviders>,\
+        \ java.util.Set<com.palantir.atlasdb.table.description.Schema>, java.util.function.Function<com.palantir.lock.v2.TimelockService,\
+        \ com.palantir.lock.client.TimeLockClient>)"
+      new: "method void com.palantir.atlasdb.factory.DefaultLockAndTimestampServiceFactory::<init>(com.palantir.atlasdb.util.MetricsManager,\
+        \ com.palantir.atlasdb.config.AtlasDbConfig, com.palantir.refreshable.Refreshable<com.palantir.atlasdb.config.AtlasDbRuntimeConfig>,\
+        \ java.util.function.Supplier<com.palantir.lock.LockService>, java.util.function.Supplier<com.palantir.timestamp.ManagedTimestampService>,\
+        \ com.palantir.timestamp.TimestampStoreInvalidator, com.palantir.conjure.java.api.config.service.UserAgent,\
+        \ java.util.Optional<com.palantir.atlasdb.debug.LockDiagnosticComponents>,\
+        \ com.palantir.dialogue.clients.DialogueClients.ReloadingFactory, java.util.Optional<com.palantir.lock.client.metrics.TimeLockFeedbackBackgroundTask>,\
+        \ java.util.Optional<com.palantir.atlasdb.config.TimeLockRequestBatcherProviders>,\
+        \ java.util.Set<com.palantir.atlasdb.table.description.Schema>, java.util.function.Function<com.palantir.lock.v2.TimelockService,\
+        \ com.palantir.lock.client.TimeLockClient>)"
+      justification: "None of the impacted classes are used or inherited from any\
+        \ other library or product"u}(j (c94bff011cdc23b5b61ec7b23ea30e6c9ce1fec0jK atlasdb-config/build.gradlejM modifiedjE KjF K jO KjP ohttps://github.com/palantir/atlasdb/blob/bf5f00747916d8f9a1552deb11b1ac7bb0faa053/atlasdb-config%2Fbuild.gradlejR nhttps://github.com/palantir/atlasdb/raw/bf5f00747916d8f9a1552deb11b1ac7bb0faa053/atlasdb-config%2Fbuild.gradlejT https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-config%2Fbuild.gradle?ref=bf5f00747916d8f9a1552deb11b1ac7bb0faa053jV @@ -87,3 +87,7 @@ dependencies {
     // Needed for Jersey Response-based tests
     testImplementation 'org.glassfish.jersey.core:jersey-common'
 }
+
+revapi {
+    oldVersion = '0.909.0'
+}ueu(343a6d6f324e5cbcabf80e131349695b5505b0a6}(sha(343a6d6f324e5cbcabf80e131349695b5505b0a6node_idEC_kwDOAjP5fdoAKDM0M2E2ZDZmMzI0ZTVjYmNhYmY4MGUxMzEzNDk2OTViNTUwNWIwYTYcommit}(author}(nameLucas Meirelesemailmeireles31@msn.comdate2023-06-07T13:52:06Zu	committer}(jj Lucas Meirelesjl meireles31@msn.comjn 2023-06-07T14:10:48Zumessage8Keep declarations near other existing busy cell workflowtree}(jb (32aa11fdcfdbe8b80a4beaa74d907291c1d59596url`https://api.github.com/repos/palantir/atlasdb/git/trees/32aa11fdcfdbe8b80a4beaa74d907291c1d59596ujz bhttps://api.github.com/repos/palantir/atlasdb/git/commits/343a6d6f324e5cbcabf80e131349695b5505b0a6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEERyigAfSjUgLhm/05Jd22kJ7JGiwFAmSAj+gACgkQJd22kJ7J
GiyDHwgA68DyNscNo4/kIH7ZR3rxHsBBi26Zwtb4kylufhcnGbNbq20Ow1lgFmnp
XSfCmMBd5kp2wof2fUsDqI2aPXhyxtST9kOARd1jofa+40v2NfrY9q1W+BCgXkl/
1OevmPuBYXYKhXXQoKeZ6GW7qzYEitzifoNcbpVYFSLtwPn2OtF1fF89X0qemEz9
mvsw/YBdkUqFuFRD/C8zpJV2GVp+wvdAKHBW85r3zhw3+6d5fL4YBDEz8S5Iuk7B
LT5GaC4ThVp1EeCzstCXEcMjxv3Oks/cOCBe6DSZjwYVxUc+S3RWJ0sutjkzcopn
+oWlrNaeFP8u5D2y5OmUCmH0wTbFzA==
=Tw9s
-----END PGP SIGNATURE-----payloadX  tree 32aa11fdcfdbe8b80a4beaa74d907291c1d59596
parent f8337a9767ab1a80e0cd44804fb49b8f63e5a132
author Lucas Meireles <meireles31@msn.com> 1686145926 +0100
committer Lucas Meireles <meireles31@msn.com> 1686147048 +0100

Keep declarations near other existing busy cell workflow
uujz ^https://api.github.com/repos/palantir/atlasdb/commits/343a6d6f324e5cbcabf80e131349695b5505b0a6html_urlShttps://github.com/palantir/atlasdb/commit/343a6d6f324e5cbcabf80e131349695b5505b0a6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/343a6d6f324e5cbcabf80e131349695b5505b0a6/commentsjh }(loginLucasIMEidJg jd MDQ6VXNlcjY3ODczMTE=
avatar_url3https://avatars.githubusercontent.com/u/6787311?v=4gravatar_idh5jz %https://api.github.com/users/LucasIMEj https://github.com/LucasIME
followers_url/https://api.github.com/users/LucasIME/followers
following_url<https://api.github.com/users/LucasIME/following{/other_user}	gists_url5https://api.github.com/users/LucasIME/gists{/gist_id}starred_url<https://api.github.com/users/LucasIME/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/LucasIME/subscriptionsorganizations_url*https://api.github.com/users/LucasIME/orgs	repos_url+https://api.github.com/users/LucasIME/repos
events_url6https://api.github.com/users/LucasIME/events{/privacy}received_events_url5https://api.github.com/users/LucasIME/received_eventstypeUser
site_adminujp }(j LucasIMEj Jg jd MDQ6VXNlcjY3ODczMTE=j 3https://avatars.githubusercontent.com/u/6787311?v=4j h5jz %https://api.github.com/users/LucasIMEj https://github.com/LucasIMEj /https://api.github.com/users/LucasIME/followersj <https://api.github.com/users/LucasIME/following{/other_user}j 5https://api.github.com/users/LucasIME/gists{/gist_id}j <https://api.github.com/users/LucasIME/starred{/owner}{/repo}j 3https://api.github.com/users/LucasIME/subscriptionsj *https://api.github.com/users/LucasIME/orgsj +https://api.github.com/users/LucasIME/reposj 6https://api.github.com/users/LucasIME/events{/privacy}j 5https://api.github.com/users/LucasIME/received_eventsj Userj uparents]}(jb (f8337a9767ab1a80e0cd44804fb49b8f63e5a132jz ^https://api.github.com/repos/palantir/atlasdb/commits/f8337a9767ab1a80e0cd44804fb49b8f63e5a132j Shttps://github.com/palantir/atlasdb/commit/f8337a9767ab1a80e0cd44804fb49b8f63e5a132uastats}(totalK	additionsK	deletionsKufiles]}(jb (fcd05eca9d1ee8ffa4803efab5f9f915d6e17100filenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedjĨ KjŨ KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/343a6d6f324e5cbcabf80e131349695b5505b0a6/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/343a6d6f324e5cbcabf80e131349695b5505b0a6/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=343a6d6f324e5cbcabf80e131349695b5505b0a6patchX  @@ -136,8 +136,6 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 Refreshable.only(configuration.runtime().atlas()),
                 USER_AGENT,
                 metricsManager);
-        SingleBusyCellReadsNoTouchWorkflowConfiguration singleBusyCellReadNoTouchWorkflowConfiguration =
-                configuration.install().singleBusyCellReadsNoTouchConfig();
         SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsConfig =
                 configuration.install().singleRowTwoCellsConfig();
         RingWorkflowConfiguration ringWorkflowConfiguration =
@@ -146,6 +144,8 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                 configuration.install().transientRowsConfig();
         SingleBusyCellWorkflowConfiguration singleBusyCellWorkflowConfiguration =
                 configuration.install().singleBusyCellConfig();
+        SingleBusyCellReadsNoTouchWorkflowConfiguration singleBusyCellReadNoTouchWorkflowConfiguration =
+                configuration.install().singleBusyCellReadsNoTouchConfig();
         BankBalanceWorkflowConfiguration bankBalanceConfig =
                 configuration.install().bankBalanceConfig();
         RandomWorkflowConfiguration randomWorkflowConfig =
@@ -155,10 +155,6 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
 
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
                 .run(
-                        createSingleBusyCellReadNoTouchWorkflowValidator(
-                                transactionStoreFactory,
-                                singleBusyCellReadNoTouchWorkflowConfiguration,
-                                environment.lifecycle()),
                         createSingleRowTwoCellsWorkflowValidator(
                                 transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()),
                         createRingWorkflowValidator(
@@ -167,6 +163,10 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
                                 transactionStoreFactory, transientRowsWorkflowConfiguration, environment.lifecycle()),
                         createSingleBusyCellWorkflowValidator(
                                 transactionStoreFactory, singleBusyCellWorkflowConfiguration, environment.lifecycle()),
+                        createSingleBusyCellReadNoTouchWorkflowValidator(
+                                transactionStoreFactory,
+                                singleBusyCellReadNoTouchWorkflowConfiguration,
+                                environment.lifecycle()),
                         createBankBalanceWorkflow(transactionStoreFactory, bankBalanceConfig, environment.lifecycle()),
                         createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
 uau(868f3e786068a9f2e93808be26fd7f4f00a75a09}(sha(868f3e786068a9f2e93808be26fd7f4f00a75a09node_idEC_kwDOAjP5fdoAKDg2OGYzZTc4NjA2OGE5ZjJlOTM4MDhiZTI2ZmQ3ZjRmMDBhNzVhMDkcommit}(author}(namesvc-autoreleaseemail-pd-foundry-infrastructure-notify@palantir.comdate2023-03-17T18:23:47Zu	committer}(j svc-autoreleasej -pd-foundry-infrastructure-notify@palantir.comj 2023-03-17T18:23:47ZumessageAutorelease 0.814.0

[skip ci]tree}(j٨ (9cad7f369d86a9c3897111e322499e877687793furl`https://api.github.com/repos/palantir/atlasdb/git/trees/9cad7f369d86a9c3897111e322499e877687793fuj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/868f3e786068a9f2e93808be26fd7f4f00a75a09
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----
Version: BCPG v1.70

iF4EABMIAAYFAmQUsDkACgkQhbrR8ip7mDDa6QEAx8cyH95tUlxIwOSUCvIuubpj
bqIQCMS22FINbyn3ypUA/i6Er3dFK+arOxvQQQWdbzKywvVBVT4RN/4G6giiBF79
=rnkU
-----END PGP SIGNATURE-----
payloadX0  tree 9cad7f369d86a9c3897111e322499e877687793f
parent 20aafba3ae1c128d2bf261193d04f222471edb05
author svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1679077427 +0000
committer svc-autorelease <pd-foundry-infrastructure-notify@palantir.com> 1679077427 +0000

Autorelease 0.814.0

[skip ci]uuj ^https://api.github.com/repos/palantir/atlasdb/commits/868f3e786068a9f2e93808be26fd7f4f00a75a09html_urlShttps://github.com/palantir/atlasdb/commit/868f3e786068a9f2e93808be26fd7f4f00a75a09comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/868f3e786068a9f2e93808be26fd7f4f00a75a09/commentsjߨ }(loginsvc-autoreleaseidJ(jۨ MDQ6VXNlcjUxNzE4MzQ2
avatar_url4https://avatars.githubusercontent.com/u/51718346?v=4gravatar_idh5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autorelease
followers_url6https://api.github.com/users/svc-autorelease/followers
following_urlChttps://api.github.com/users/svc-autorelease/following{/other_user}	gists_url<https://api.github.com/users/svc-autorelease/gists{/gist_id}starred_urlChttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/svc-autorelease/subscriptionsorganizations_url1https://api.github.com/users/svc-autorelease/orgs	repos_url2https://api.github.com/users/svc-autorelease/repos
events_url=https://api.github.com/users/svc-autorelease/events{/privacy}received_events_url<https://api.github.com/users/svc-autorelease/received_eventstypeUser
site_adminuj }(j svc-autoreleasej J(jۨ MDQ6VXNlcjUxNzE4MzQ2j 4https://avatars.githubusercontent.com/u/51718346?v=4j
 h5j ,https://api.github.com/users/svc-autoreleasej "https://github.com/svc-autoreleasej
 6https://api.github.com/users/svc-autorelease/followersj Chttps://api.github.com/users/svc-autorelease/following{/other_user}j <https://api.github.com/users/svc-autorelease/gists{/gist_id}j Chttps://api.github.com/users/svc-autorelease/starred{/owner}{/repo}j :https://api.github.com/users/svc-autorelease/subscriptionsj 1https://api.github.com/users/svc-autorelease/orgsj 2https://api.github.com/users/svc-autorelease/reposj =https://api.github.com/users/svc-autorelease/events{/privacy}j <https://api.github.com/users/svc-autorelease/received_eventsj Userj! uparents]}(j٨ (20aafba3ae1c128d2bf261193d04f222471edb05j ^https://api.github.com/repos/palantir/atlasdb/commits/20aafba3ae1c128d2bf261193d04f222471edb05j Shttps://github.com/palantir/atlasdb/commit/20aafba3ae1c128d2bf261193d04f222471edb05uastats}(totalK 	additionsK 	deletionsK ufiles]}(j٨ (910ff9b18328d5969f5dbcc3ae9411d1bcb02878filename changelog/0.814.0/pr-6473.v2.ymlstatusrenamedj; K j< K changesK blob_urlvhttps://github.com/palantir/atlasdb/blob/868f3e786068a9f2e93808be26fd7f4f00a75a09/changelog%2F0.814.0%2Fpr-6473.v2.ymlraw_urluhttps://github.com/palantir/atlasdb/raw/868f3e786068a9f2e93808be26fd7f4f00a75a09/changelog%2F0.814.0%2Fpr-6473.v2.ymlcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/changelog%2F0.814.0%2Fpr-6473.v2.yml?ref=868f3e786068a9f2e93808be26fd7f4f00a75a09previous_filename$changelog/@unreleased/pr-6473.v2.ymluau(c7554bd8295918017d799e3608f27826ddd6b07f}(sha(c7554bd8295918017d799e3608f27826ddd6b07fnode_idEC_kwDOAjP5fdoAKGM3NTU0YmQ4Mjk1OTE4MDE3ZDc5OWUzNjA4ZjI3ODI2ZGRkNmIwN2Ycommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-04-28T16:13:18Zu	committer}(jX 
Ahmed AlouanejZ aalouane@palantir.comj\ 2023-04-28T16:13:18Zumessagecorrecttree}(jP (838e79e8a1f0bc3c0e06ada58be4274f489360aeurl`https://api.github.com/repos/palantir/atlasdb/git/trees/838e79e8a1f0bc3c0e06ada58be4274f489360aeujh bhttps://api.github.com/repos/palantir/atlasdb/git/commits/c7554bd8295918017d799e3608f27826ddd6b07f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRL8J4ACgkQPlMHVIT1
yhpTcAf/UKpf0bE7nvnhdBZG7mCOBWgGanbA+NSfcJuWBQLqQ/5EULo6U+4rtVlb
vK8CvE0pZ6luN+zclNPcUC8D/yEoRnJ6Dn05dBZAp9vn36Zb5qqUqldkK5Xerh52
cjrbGKy0tabdRQb0neJ/m4jgm0MHYISJodyXBgk6x5MJ/7lZsijIc7ok7s72A/0c
zn73IYaEO2AEnEcMkmk+RcGuZBsrbKCdo4LYnhQGawrVrqWhW0+cSOCeueU1d84A
06w5XHqzWN1k9yyDThhGSleVWq5y3iBG90+j42oBixgs/Cd7kjmOGes3N4lm148a
okvEdfbUuh9abUfbNuEk0AOGXc405g==
=RXex
-----END PGP SIGNATURE-----payloadtree 838e79e8a1f0bc3c0e06ada58be4274f489360ae
parent 76431c54169c9ae9969c8c6de272bfd470d9c848
author Ahmed Alouane <aalouane@palantir.com> 1682698398 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1682698398 +0100

correct
uujh ^https://api.github.com/repos/palantir/atlasdb/commits/c7554bd8295918017d799e3608f27826ddd6b07fhtml_urlShttps://github.com/palantir/atlasdb/commit/c7554bd8295918017d799e3608f27826ddd6b07fcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/c7554bd8295918017d799e3608f27826ddd6b07f/commentsjV }(loginergo14idJjR MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5jh #https://api.github.com/users/ergo14jv https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj^ }(j{ ergo14j} JjR MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5jh #https://api.github.com/users/ergo14jv https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jP (76431c54169c9ae9969c8c6de272bfd470d9c848jh ^https://api.github.com/repos/palantir/atlasdb/commits/76431c54169c9ae9969c8c6de272bfd470d9c848jv Shttps://github.com/palantir/atlasdb/commit/76431c54169c9ae9969c8c6de272bfd470d9c848uastats}(totalK	additionsK	deletionsKufiles]}(jP (1eeed38f3eba3c52e86c0442e608df5e6bbba6f4filename%scripts/circle-ci/run-circle-tests.shstatusmodifiedj Kj KchangesKblob_url{https://github.com/palantir/atlasdb/blob/c7554bd8295918017d799e3608f27826ddd6b07f/scripts%2Fcircle-ci%2Frun-circle-tests.shraw_urlzhttps://github.com/palantir/atlasdb/raw/c7554bd8295918017d799e3608f27826ddd6b07f/scripts%2Fcircle-ci%2Frun-circle-tests.shcontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=c7554bd8295918017d799e3608f27826ddd6b07fpatchX  @@ -89,7 +89,7 @@ case $CIRCLE_NODE_INDEX in
     5) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_5[@]} ;;
     6) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_6[@]} ;;
     7) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_7[@]} ;;
-    8) if [ "$CIRCLE_BRANCH" -eq "develop" ] || [ ! -z "$CIRCLE_TAG" ]; then ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_8[@]}; fi ;;
+    8) if [[ "$CIRCLE_BRANCH" = "develop" || ! -z "$CIRCLE_TAG" ]]; then ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_8[@]}; else echo "Skipping"; fi ;;
     9) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_9[@]} ;;
     10) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_10[@]} ;;
     11) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_11[@]} ;;uau(06a966b6c76e8d7ef54e3831b980a18bfba8565b}(sha(06a966b6c76e8d7ef54e3831b980a18bfba8565bnode_idEC_kwDOAjP5fdoAKDA2YTk2NmI2Yzc2ZThkN2VmNTRlMzgzMWI5ODBhMThiZmJhODU2NWIcommit}(author}(name
Sam Krameremailskramer@palantir.comdate2023-05-24T20:57:08Zu	committer}(jϩ 
Sam Kramerjѩ skramer@palantir.comjө 2023-05-24T21:10:16Zumessageadd bank workflow classestree}(jǩ (c91eaf05775ffcff70b172386b042374f02d52d5url`https://api.github.com/repos/palantir/atlasdb/git/trees/c91eaf05775ffcff70b172386b042374f02d52d5ujߩ bhttps://api.github.com/repos/palantir/atlasdb/git/commits/06a966b6c76e8d7ef54e3831b980a18bfba8565b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEddQAu3MJQIk6YA25mPPOpKR4XS0FAmRufTgACgkQmPPOpKR4
XS1rbAf/WG5zmBeVpYRkT1Bdkbdepjm/nRPsmTle6g6nQgmZeNEYAUy8G1w4U3A7
0n6j90YkyVcCqydMHt5CjRj3B0NSfy8FWsM7KSGz+TP+7BnrZa6MKB11G5tdqu+q
+finE/RhyggWBntrUq6FhD+t/b/EbuQjZgtbyTRXKaYrXyBOByoCGlmnrG/aau4V
wOL0YxiXWZKl+Gyoy0yVB9Io9kx/zId6HTGWiQtKHHOb83vaRJ33BxUUvkbFad3X
vMIs+FK/RESYcFjQCQujajA8XhRWDkLHrPEm6wYkg7S+nQrTY9ZHTzcZezX17XVI
XIjM/JgHXtZtJFln/XohNO1jNuFO3w==
=HYxz
-----END PGP SIGNATURE-----payloadtree c91eaf05775ffcff70b172386b042374f02d52d5
parent ea7038cb6cacea536e3c02c7fcc49b14f53243f7
author Sam Kramer <skramer@palantir.com> 1684961828 +0100
committer Sam Kramer <skramer@palantir.com> 1684962616 +0100

add bank workflow classes
uujߩ ^https://api.github.com/repos/palantir/atlasdb/commits/06a966b6c76e8d7ef54e3831b980a18bfba8565bhtml_urlShttps://github.com/palantir/atlasdb/commit/06a966b6c76e8d7ef54e3831b980a18bfba8565bcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/06a966b6c76e8d7ef54e3831b980a18bfba8565b/commentsjͩ }(login
Sam-KrameridJ^2_ jɩ MDQ6VXNlcjYyMzg4MTQ=
avatar_url3https://avatars.githubusercontent.com/u/6238814?v=4gravatar_idh5jߩ 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramer
followers_url1https://api.github.com/users/Sam-Kramer/followers
following_url>https://api.github.com/users/Sam-Kramer/following{/other_user}	gists_url7https://api.github.com/users/Sam-Kramer/gists{/gist_id}starred_url>https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/Sam-Kramer/subscriptionsorganizations_url,https://api.github.com/users/Sam-Kramer/orgs	repos_url-https://api.github.com/users/Sam-Kramer/repos
events_url8https://api.github.com/users/Sam-Kramer/events{/privacy}received_events_url7https://api.github.com/users/Sam-Kramer/received_eventstypeUser
site_adminujթ }(j 
Sam-Kramerj J^2_ jɩ MDQ6VXNlcjYyMzg4MTQ=j 3https://avatars.githubusercontent.com/u/6238814?v=4j h5jߩ 'https://api.github.com/users/Sam-Kramerj https://github.com/Sam-Kramerj 1https://api.github.com/users/Sam-Kramer/followersj >https://api.github.com/users/Sam-Kramer/following{/other_user}j 7https://api.github.com/users/Sam-Kramer/gists{/gist_id}j >https://api.github.com/users/Sam-Kramer/starred{/owner}{/repo}j 5https://api.github.com/users/Sam-Kramer/subscriptionsj ,https://api.github.com/users/Sam-Kramer/orgsj -https://api.github.com/users/Sam-Kramer/reposj	 8https://api.github.com/users/Sam-Kramer/events{/privacy}j 7https://api.github.com/users/Sam-Kramer/received_eventsj
 Userj uparents]}(jǩ (ea7038cb6cacea536e3c02c7fcc49b14f53243f7jߩ ^https://api.github.com/repos/palantir/atlasdb/commits/ea7038cb6cacea536e3c02c7fcc49b14f53243f7j Shttps://github.com/palantir/atlasdb/commit/ea7038cb6cacea536e3c02c7fcc49b14f53243f7uastats}(totalM	additionsM]	deletionsK8ufiles](}(jǩ (12bc49815b8f9658552d78e55a9c52fdcb81d1c8filenamegatlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtils.javastatusmodifiedj) KFj* KchangesKIblob_urlhttps://github.com/palantir/atlasdb/blob/06a966b6c76e8d7ef54e3831b980a18bfba8565b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.javaraw_urlhttps://github.com/palantir/atlasdb/raw/06a966b6c76e8d7ef54e3831b980a18bfba8565b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtils.java?ref=06a966b6c76e8d7ef54e3831b980a18bfba8565bpatchX
  @@ -16,10 +16,77 @@
 
 package com.palantir.atlasdb.workload.workflow.bank;
 
-import java.util.Set;
+import com.google.common.collect.ImmutableMap;
+import java.security.SecureRandom;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Optional;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import one.util.streamex.EntryStream;
 
 public final class BankBalanceUtils {
-    public static Integer getMissingTotalBalance(Set<Integer> balances, int totalBalanceExpected) {
-        return totalBalanceExpected - balances.stream().reduce(0, Integer::sum);
+
+    private BankBalanceUtils() {}
+
+    /**
+     * Checks the provided balances that all are present, and if so, returns them.
+     * If all balances are empty, it means we need to initialize, so we generate them.
+     *
+     * Otherwise, return an empty map to indicate that we are in a faulty state.
+     */
+    public static Optional<Map<Integer, Integer>> validateOrGenerateBalances(
+            Map<Integer, Optional<Integer>> maybeBalances, Integer numberOfAccounts, Integer balancePerAccount) {
+        if (allValuesPresent(maybeBalances)) {
+            Integer total = numberOfAccounts * balancePerAccount;
+            Map<Integer, Integer> balances =
+                    EntryStream.of(maybeBalances).mapValues(Optional::get).toMap();
+            if (!sumOfBalancesMatchTotal(balances, total)) {
+                return Optional.empty();
+            }
+            return Optional.of(balances);
+        }
+
+        if (allValuesEmpty(maybeBalances)) {
+            return Optional.of(generateBalances(numberOfAccounts, balancePerAccount));
+        }
+
+        return Optional.empty();
+    }
+
+    public static Map<Integer, Integer> performTransfers(
+            Map<Integer, Integer> balances, int numberOfTransfers, int transferAmount, SecureRandom random) {
+        Map<Integer, Integer> newBalances = new HashMap<>(balances);
+        for (int idx = 0; idx < numberOfTransfers; idx++) {
+            int from = random.nextInt(newBalances.size());
+            int to = random.nextInt(newBalances.size());
+
+            if (newBalances.get(from) - transferAmount < 0) {
+                continue;
+            }
+
+            newBalances.compute(from, (k, v) -> v - transferAmount);
+            newBalances.compute(to, (k, v) -> v + transferAmount);
+        }
+        return ImmutableMap.copyOf(newBalances);
+    }
+
+    private static boolean sumOfBalancesMatchTotal(Map<Integer, Integer> balances, Integer totalBalance) {
+        return balances.values().stream().mapToInt(Integer::intValue).sum() == totalBalance;
+    }
+
+    private static boolean allValuesPresent(Map<Integer, Optional<Integer>> balances) {
+        return balances.values().stream().allMatch(Optional::isPresent);
+    }
+
+    private static boolean allValuesEmpty(Map<Integer, Optional<Integer>> balances) {
+        return balances.values().stream().allMatch(Optional::isEmpty);
+    }
+
+    private static Map<Integer, Integer> generateBalances(Integer numberOfAccounts, Integer balancePerAccount) {
+        return IntStream.range(0, numberOfAccounts)
+                .boxed()
+                .collect(Collectors.toMap(Function.identity(), index -> balancePerAccount));
     }
 }uU      }(jǩ (32689efab8507444fccca491b725626796147494j/ watlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowConfiguration.javaj1 modifiedj) Kj* Kj3 Kj4 https://github.com/palantir/atlasdb/blob/06a966b6c76e8d7ef54e3831b980a18bfba8565b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.javaj6 https://github.com/palantir/atlasdb/raw/06a966b6c76e8d7ef54e3831b980a18bfba8565b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.javaj8 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowConfiguration.java?ref=06a966b6c76e8d7ef54e3831b980a18bfba8565bj: XA  @@ -43,9 +43,9 @@ default Integer initialBalancePerAccount() {
         return 100;
     }
 
-    @Value.Derived
-    default Integer totalBalance() {
-        return numberOfAccounts() * initialBalancePerAccount();
+    @Value.Default
+    default Integer transferAmount() {
+        return 75;
     }
 
     @Value.Lazyu}(jǩ (2394a7f410f2773d697a6ff47e5911c814eba351j/ katlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflows.javaj1 modifiedj) KAj* K2j3 Ksj4 https://github.com/palantir/atlasdb/blob/06a966b6c76e8d7ef54e3831b980a18bfba8565b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaj6 https://github.com/palantir/atlasdb/raw/06a966b6c76e8d7ef54e3831b980a18bfba8565b/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.javaj8 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflows.java?ref=06a966b6c76e8d7ef54e3831b980a18bfba8565bj: X  @@ -17,24 +17,41 @@
 package com.palantir.atlasdb.workload.workflow.bank;
 
 import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.buggify.impl.DefaultNativeSamplingSecureRandomFactory;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
 import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
 import com.palantir.atlasdb.workload.transaction.InteractiveTransaction;
 import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransaction;
 import com.palantir.atlasdb.workload.workflow.DefaultWorkflow;
 import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.logsafe.SafeArg;
+import com.palantir.logsafe.logger.SafeLogger;
+import com.palantir.logsafe.logger.SafeLoggerFactory;
+import java.security.SecureRandom;
 import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.function.Function;
 import java.util.stream.Collectors;
 import java.util.stream.IntStream;
-import one.util.streamex.EntryStream;
+import org.jetbrains.annotations.VisibleForTesting;
 
+/**
+ * A workflow which performs a number of account balance transfers between accounts.
+ */
 public final class BankBalanceWorkflows {
 
-    public static Workflow createSingleRowTwoCell(
+    private static final SafeLogger log = SafeLoggerFactory.get(BankBalanceWorkflows.class);
+    private static final SecureRandom RANDOM = DefaultNativeSamplingSecureRandomFactory.INSTANCE.create();
+
+    private static final Integer COLUMN = 0;
+
+    private BankBalanceWorkflows() {
+        // utility
+    }
+
+    public static Workflow create(
             InteractiveTransactionStore store,
             BankBalanceWorkflowConfiguration bankBalanceWorkflowConfiguration,
             ListeningExecutorService executionExecutor) {
@@ -46,14 +63,32 @@ public static Workflow createSingleRowTwoCell(
                 executionExecutor);
     }
 
-    private static class BankBalanceRunTask {
+    @VisibleForTesting
+    static Workflow create(
+            InteractiveTransactionStore store,
+            BankBalanceWorkflowConfiguration bankBalanceWorkflowConfiguration,
+            ListeningExecutorService executionExecutor,
+            AtomicBoolean skipRunning) {
+        BankBalanceRunTask runTask = new BankBalanceRunTask(skipRunning, bankBalanceWorkflowConfiguration);
+        return DefaultWorkflow.create(
+                store,
+                (txnStore, _index) -> runTask.run(txnStore),
+                bankBalanceWorkflowConfiguration,
+                executionExecutor);
+    }
 
-        private static final Integer COLUMN = 0;
-        private final AtomicBoolean skipRunning = new AtomicBoolean(false);
+    private static class BankBalanceRunTask {
+        private final AtomicBoolean skipRunning;
 
         private final BankBalanceWorkflowConfiguration workflowConfiguration;
 
         public BankBalanceRunTask(BankBalanceWorkflowConfiguration workflowConfiguration) {
+            this(new AtomicBoolean(), workflowConfiguration);
+        }
+
+        @VisibleForTesting
+        BankBalanceRunTask(AtomicBoolean skipRunning, BankBalanceWorkflowConfiguration workflowConfiguration) {
+            this.skipRunning = skipRunning;
             this.workflowConfiguration = workflowConfiguration;
         }
 
@@ -63,59 +98,39 @@ public Optional<WitnessedTransaction> run(InteractiveTransactionStore store) {
             }
             workflowConfiguration.transactionRateLimiter().acquire();
             return store.readWrite(txn -> {
-                if (isBalanceValid(txn)) {}
+                Map<Integer, Optional<Integer>> maybeBalances = getAccountBalances(txn);
+                BankBalanceUtils.validateOrGenerateBalances(
+                                maybeBalances,
+                                workflowConfiguration.numberOfAccounts(),
+                                workflowConfiguration.initialBalancePerAccount())
+                        .ifPresentOrElse(balances -> performTransfers(txn, balances), () -> {
+                            if (skipRunning.compareAndSet(false, true)) {
+                                log.error(
+                                        "Balance validation failed, indicating we have violated snapshot isolation.",
+                                        SafeArg.of("maybeBalances", maybeBalances));
+                            }
+                        });
             });
         }
 
-        private Map<Integer, Optional<Integer>> getAccountBalances(InteractiveTransaction transaction) {
-            return IntStream.range(0, workflowConfiguration.numberOfAccounts())
-                    .boxed()
-                    .collect(Collectors.toMap(Function.identity(),
-                            index -> transaction.read(workflowConfiguration.tableConfiguration().tableName(),
-                                    getCellForAccount(index))));
+        private void performTransfers(InteractiveTransaction transaction, Map<Integer, Integer> balances) {
+            Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(
+                    balances, RANDOM.nextInt(balances.size()), workflowConfiguration.transferAmount(), RANDOM);
+            newBalances.forEach((account, balance) -> transaction.write(
+                    workflowConfiguration.tableConfiguration().tableName(), getCellForAccount(account), balance));
         }
 
-        private Map<Integer, Integer> generateBalances() {
+        private Map<Integer, Optional<Integer>> getAccountBalances(InteractiveTransaction transaction) {
             return IntStream.range(0, workflowConfiguration.numberOfAccounts())
                     .boxed()
-                    .collect(Collectors.toMap(Function.identity(),
-                            index -> workflowConfiguration.initialBalancePerAccount()));
-        }
-
-        private Optional<Map<Integer, Integer>> getOrInitializeBalances(InteractiveTransaction transaction) {
-            Map<Integer, Optional<Integer>> balances = getAccountBalances(transaction);
-            if (getAccountBalances(transaction).values().stream().allMatch(Optional::isPresent)) {
-                return Optional.of(EntryStream.of(getAccountBalances(transaction)).mapValues(Optional::get).toMap());
-            }
-
-            if (balances.values().stream().anyMatch(Optional::isEmpty)) {
-                skipRunning.set(true);
-                return Optional.empty();
-            }
-
-            Map<Integer, Integer> balancesToWrite = generateBalances();
-
-
-
-            return Optional.of(balancesToWrite);
-        }
-
-        private boolean isBalanceValid(InteractiveTransaction transaction) {
-            Map<Integer, Integer> accountBalances =
-
-            if (BankBalanceUtils.getMissingTotalBalance(balances.values(), totalBalance) != 0)) {
-                log.error(
-                        "Total balance is not correct. Expected: {}, Actual: {}",
-                        workflowConfiguration.numAccounts() * workflowConfiguration.initialBalance(),
-                        totalBalance);
-                skipRunning.set(true);
-                return false;
-            }
-            return true;
+                    .collect(Collectors.toMap(
+                            Function.identity(),
+                            index -> transaction.read(
+                                    workflowConfiguration.tableConfiguration().tableName(), getCellForAccount(index))));
         }
+    }
 
-        private WorkloadCell getCellForAccount(int accountIndex) {
-            return ImmutableWorkloadCell.of(accountIndex, COLUMN);
-        }
+    public static WorkloadCell getCellForAccount(int accountIndex) {
+        return ImmutableWorkloadCell.of(accountIndex, COLUMN);
     }
 }u}(jǩ (be670ac429d852d3616d81f322aac96b14c7e53cj/ katlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceUtilsTest.javaj1 addedj) KRj* K j3 KRj4 https://github.com/palantir/atlasdb/blob/06a966b6c76e8d7ef54e3831b980a18bfba8565b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj6 https://github.com/palantir/atlasdb/raw/06a966b6c76e8d7ef54e3831b980a18bfba8565b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.javaj8 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceUtilsTest.java?ref=06a966b6c76e8d7ef54e3831b980a18bfba8565bj: X  @@ -0,0 +1,82 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.Mockito.when;
+
+import java.security.SecureRandom;
+import java.util.Map;
+import java.util.Optional;
+import one.util.streamex.EntryStream;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public final class BankBalanceUtilsTest {
+
+    private static final Map<Integer, Optional<Integer>> VALID_BALANCES = Map.of(0, Optional.of(1), 1, Optional.of(1));
+
+    @Mock
+    private SecureRandom random;
+
+    @Test
+    public void validateOrGenerateBalancesReturnsEmptyWhenOnlyOneAccountMissing() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(Map.of(0, Optional.of(1), 1, Optional.empty()), 2, 1))
+                .isEmpty();
+    }
+
+    @Test
+    public void validateOrGenerateBalancesGeneratesWhenAllEmpty() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(Map.of(0, Optional.empty(), 1, Optional.empty()), 2, 1))
+                .contains(Map.of(0, 1, 1, 1));
+    }
+
+    @Test
+    public void validateOrGenerateBalancesEmptyWhenSumOfBalancesDoNotMatchTotal() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(VALID_BALANCES, 2, 3))
+                .isEmpty();
+    }
+
+    @Test
+    public void validateOrGenerateBalancesReturnsBalancesWhenTotalsMatch() {
+        assertThat(BankBalanceUtils.validateOrGenerateBalances(VALID_BALANCES, 2, 1))
+                .contains(
+                        EntryStream.of(VALID_BALANCES).mapValues(Optional::get).toMap());
+    }
+
+    @Test
+    public void performTransfersReturnsBalancesWithCorrectSum() {
+        when(random.nextInt(anyInt())).thenReturn(0, 1);
+        Map<Integer, Integer> balances = Map.of(0, 1, 1, 1);
+        Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
+        assertThat(newBalances).isEqualTo(Map.of(0, 0, 1, 2));
+        assertThat(newBalances.values().stream().mapToInt(Integer::intValue).sum())
+                .isEqualTo(2);
+    }
+
+    @Test
+    public void performsTransfersOnlyIfValueWouldNotBeBelowZero() {
+        when(random.nextInt(anyInt())).thenReturn(0, 1);
+        Map<Integer, Integer> balances = Map.of(0, 0, 1, 2);
+        Map<Integer, Integer> newBalances = BankBalanceUtils.performTransfers(balances, 1, 1, random);
+        assertThat(newBalances).isEqualTo(balances);
+    }
+}u}(jǩ (7585aed466d473c0872a5a293ccb3c2b0eb7bc96j/ oatlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/bank/BankBalanceWorkflowsTest.javaj1 addedj) Kj* K j3 Kj4 https://github.com/palantir/atlasdb/blob/06a966b6c76e8d7ef54e3831b980a18bfba8565b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javaj6 https://github.com/palantir/atlasdb/raw/06a966b6c76e8d7ef54e3831b980a18bfba8565b/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.javaj8 https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2Fbank%2FBankBalanceWorkflowsTest.java?ref=06a966b6c76e8d7ef54e3831b980a18bfba8565bj: X  @@ -0,0 +1,129 @@
+/*
+ * (c) Copyright 2023 Palantir Technologies Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.palantir.atlasdb.workload.workflow.bank;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Iterables;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.palantir.atlasdb.factory.TransactionManagers;
+import com.palantir.atlasdb.keyvalue.api.TableReference;
+import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
+import com.palantir.atlasdb.workload.store.IsolationLevel;
+import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
+import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedReadTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedTransactionAction;
+import com.palantir.atlasdb.workload.transaction.witnessed.WitnessedWriteTransactionAction;
+import com.palantir.atlasdb.workload.util.AtlasDbUtils;
+import com.palantir.atlasdb.workload.workflow.ImmutableTableConfiguration;
+import com.palantir.atlasdb.workload.workflow.Workflow;
+import com.palantir.atlasdb.workload.workflow.WorkflowHistory;
+import com.palantir.common.concurrent.PTExecutors;
+import java.util.List;
+import java.util.Optional;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+import org.junit.Test;
+
+public final class BankBalanceWorkflowsTest {
+    private static final String TABLE_NAME = "ring.ring";
+    private static final BankBalanceWorkflowConfiguration CONFIGURATION =
+            ImmutableBankBalanceWorkflowConfiguration.builder()
+                    .tableConfiguration(ImmutableTableConfiguration.builder()
+                            .tableName(TABLE_NAME)
+                            .isolationLevel(IsolationLevel.SNAPSHOT)
+                            .build())
+                    .iterationCount(1)
+                    .build();
+
+    private final AtomicBoolean skipRunning = new AtomicBoolean();
+
+    private final InteractiveTransactionStore memoryStore = AtlasDbTransactionStore.create(
+            TransactionManagers.createInMemory(ImmutableSet.of()),
+            ImmutableMap.of(
+                    TableReference.createWithEmptyNamespace(TABLE_NAME),
+                    AtlasDbUtils.tableMetadata(IsolationLevel.SNAPSHOT)));
+
+    private final Workflow workflow = BankBalanceWorkflows.create(
+            memoryStore,
+            CONFIGURATION,
+            MoreExecutors.listeningDecorator(PTExecutors.newFixedThreadPool(1)),
+            skipRunning);
+
+    @Test
+    public void workflowHistoryTransactionStoreShouldBeReadOnly() {
+        WorkflowHistory history = workflow.run();
+        assertThat(history.transactionStore())
+                .as("should return a read only transaction store")
+                .isInstanceOf(ReadOnlyTransactionStore.class);
+    }
+
+    @Test
+    public void bankWorkflowContainsInitialReadsForBalances() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WitnessedReadTransactionAction> initialReadActions = IntStream.range(0, CONFIGURATION.numberOfAccounts())
+                .boxed()
+                .map(index -> WitnessedReadTransactionAction.of(
+                        TABLE_NAME, BankBalanceWorkflows.getCellForAccount(index), Optional.empty()))
+                .collect(Collectors.toList());
+        assertThat(actions).containsAll(initialReadActions);
+    }
+
+    @Test
+    public void bankWorkflowContainsInitialWritesForBalances() {
+        WorkflowHistory history = workflow.run();
+
+        List<WitnessedTransactionAction> actions =
+                Iterables.getOnlyElement(history.history()).actions();
+
+        List<WorkloadCell> actualWrittenCells = actions.stream()
+                .filter(WitnessedWriteTransactionAction.class::isInstance)
+                .map(WitnessedWriteTransactionAction.class::cast)
+                .map(WitnessedWriteTransactionAction::cell)
+                .collect(Collectors.toList());
+
+        List<WorkloadCell> expectedWrittenCells = IntStream.range(0, CONFIGURATION.numberOfAccounts())
+                .boxed()
+                .map(BankBalanceWorkflows::getCellForAccount)
+                .collect(Collectors.toList());
+
+        assertThat(actualWrittenCells).containsAll(expectedWrittenCells);
+    }
+
+    @Test
+    public void bankWorkflowSetsSkipRunningToTrueWhenInvalidBalanceSet() {
+        assertThat(skipRunning).isFalse();
+        memoryStore.readWrite(txn -> txn.write(TABLE_NAME, BankBalanceWorkflows.getCellForAccount(0), 1));
+        workflow.run();
+        assertThat(skipRunning).isTrue();
+    }
+
+    @Test
+    public void bankWorkflowDoesNotWitnessTransactionWhenSkipRunningSetToTrue() {
+        skipRunning.set(true);
+        assertThat(workflow.run().history()).isEmpty();
+    }
+}ueu(b38d46f704c08520dfa0a1ca08490060a2f1ba00}(sha(b38d46f704c08520dfa0a1ca08490060a2f1ba00node_idEC_kwDOAjP5fdoAKGIzOGQ0NmY3MDRjMDg1MjBkZmEwYTFjYTA4NDkwMDYwYTJmMWJhMDAcommit}(author}(name
Excavator Botemail333266368+svc-excavator-bot@users.noreply.github.comdate2023-04-04T13:39:43Zu	committer}(jf GitHubjh noreply@github.comjj 2023-04-04T13:39:43Zumessage=Excavator:  Update gradle-jdks infrastructure plugins (#6495)tree}(j^ (dad831518717bc8c00857a12573aba5437257146url`https://api.github.com/repos/palantir/atlasdb/git/trees/dad831518717bc8c00857a12573aba5437257146ujv bhttps://api.github.com/repos/palantir/atlasdb/git/commits/b38d46f704c08520dfa0a1ca08490060a2f1ba00
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkLCifCRBK7hj4Ov3rIwAAYjQIAGTfCpsXmS/BzKGqxyePjMEI
n5AThlYZKrY7lpPM45SSDqexJXw1x6EylvBW0zcXoJpNRgw0nEN+578+XC6EdYk1
aJWDGlh/38FIe02Wn0pQhSxy6I30HOdwFQirhnI79qoytvB6BcIKhsp7181rdNhT
CQWO7ql1ZtX1upOxFj6wL/kR+GHZ2ujmvDU0Ug2RvyEZKn+/Mz8yMWjWuEnHazPF
REpZP9IeZcCblfl6f0sGHNUrqKfFfla/jL7xwmOHTaJbep9vS4weciL2wnee+qOx
EpUcYUiWmTG0EaWCirBRsfuK+kPoj7y+X7LJQJvVM68gKgKiUaeSh9g4UlNMyag=
=/lwo
-----END PGP SIGNATURE-----
payloadX2  tree dad831518717bc8c00857a12573aba5437257146
parent d25115cccad1cc4f0bf08d089d946eba166e892d
author Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> 1680615583 +0100
committer GitHub <noreply@github.com> 1680615583 +0000

Excavator:  Update gradle-jdks infrastructure plugins (#6495)

 uujv ^https://api.github.com/repos/palantir/atlasdb/commits/b38d46f704c08520dfa0a1ca08490060a2f1ba00html_urlShttps://github.com/palantir/atlasdb/commit/b38d46f704c08520dfa0a1ca08490060a2f1ba00comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/b38d46f704c08520dfa0a1ca08490060a2f1ba00/commentsjd }(loginsvc-excavator-botidJj` MDQ6VXNlcjMzMjY2MzY4
avatar_url4https://avatars.githubusercontent.com/u/33266368?v=4gravatar_idh5jv .https://api.github.com/users/svc-excavator-botj $https://github.com/svc-excavator-bot
followers_url8https://api.github.com/users/svc-excavator-bot/followers
following_urlEhttps://api.github.com/users/svc-excavator-bot/following{/other_user}	gists_url>https://api.github.com/users/svc-excavator-bot/gists{/gist_id}starred_urlEhttps://api.github.com/users/svc-excavator-bot/starred{/owner}{/repo}subscriptions_url<https://api.github.com/users/svc-excavator-bot/subscriptionsorganizations_url3https://api.github.com/users/svc-excavator-bot/orgs	repos_url4https://api.github.com/users/svc-excavator-bot/repos
events_url?https://api.github.com/users/svc-excavator-bot/events{/privacy}received_events_url>https://api.github.com/users/svc-excavator-bot/received_eventstypeUser
site_adminujl }(j web-flowj J/j` MDQ6VXNlcjE5ODY0NDQ3j 4https://avatars.githubusercontent.com/u/19864447?v=4j h5jv %https://api.github.com/users/web-flowj https://github.com/web-flowj /https://api.github.com/users/web-flow/followersj <https://api.github.com/users/web-flow/following{/other_user}j 5https://api.github.com/users/web-flow/gists{/gist_id}j <https://api.github.com/users/web-flow/starred{/owner}{/repo}j 3https://api.github.com/users/web-flow/subscriptionsj *https://api.github.com/users/web-flow/orgsj +https://api.github.com/users/web-flow/reposj 6https://api.github.com/users/web-flow/events{/privacy}j 5https://api.github.com/users/web-flow/received_eventsj Userj uparents]}(j^ (d25115cccad1cc4f0bf08d089d946eba166e892djv ^https://api.github.com/repos/palantir/atlasdb/commits/d25115cccad1cc4f0bf08d089d946eba166e892dj Shttps://github.com/palantir/atlasdb/commit/d25115cccad1cc4f0bf08d089d946eba166e892duastats}(totalK	additionsK	deletionsKufiles]}(j^ (2ba6283c07674f48446c8ddfba713981b3636d9efilenamebuild.gradlestatusmodifiedj Kj KchangesKblob_url^https://github.com/palantir/atlasdb/blob/b38d46f704c08520dfa0a1ca08490060a2f1ba00/build.gradleraw_url]https://github.com/palantir/atlasdb/raw/b38d46f704c08520dfa0a1ca08490060a2f1ba00/build.gradlecontents_urlphttps://api.github.com/repos/palantir/atlasdb/contents/build.gradle?ref=b38d46f704c08520dfa0a1ca08490060a2f1ba00patchXz  @@ -15,7 +15,7 @@ buildscript {
         classpath 'com.palantir.gradle.docker:gradle-docker:0.32.0'
         classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
         classpath 'com.palantir.gradle.gitversion:gradle-git-version:2.0.0'
-        classpath 'com.palantir.gradle.jdks:gradle-jdks:0.31.0'
+        classpath 'com.palantir.gradle.jdks:gradle-jdks:0.32.0'
         classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.7.0'
         classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'
         classpath 'com.palantir.metricschema:gradle-metric-schema:0.20.0'uau(e445384a79ff4def130999ef73af7f9cdffbd3a1}(sha(e445384a79ff4def130999ef73af7f9cdffbd3a1node_idEC_kwDOAjP5fdoAKGU0NDUzODRhNzlmZjRkZWYxMzA5OTllZjczYWY3ZjljZGZmYmQzYTEcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-15T18:49:51Zu	committer}(jݪ Jeremy Kongjߪ jkong@palantir.comj 2023-06-15T18:49:51Zumessageoverhaultree}(jժ (c8e37b09936a3c57c8432bc4658735c2ea7b5009url`https://api.github.com/repos/palantir/atlasdb/git/trees/c8e37b09936a3c57c8432bc4658735c2ea7b5009uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e445384a79ff4def130999ef73af7f9cdffbd3a1
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSLXU8ACgkQTLdFKain
zjwwqwgAyZMNN1PbC/CcGleoGsSMp8ORrUHMb0PmemoxRoDSA9rngvVrm7RCK22C
9XAox7PlEpLGcMIPOHLsUSF66AxU/zqh272Mkq1ugz23C0WFCNq1IS8dvE9c5yF4
S90rCgC7haUfC5wgaRbjFuS9C68dtbTNbzgZT5O93N54bD/KrjkR9Nw1384Hag4N
Lo/ywp66woJN7bFTNY9eDLGjuF8zFFZclL3n1zXlzq271pLbpZUDXxNaFCRIYTNG
LlNcxf9P9SpjpxGxUoRAFuM4OWoLV6tvtSKXvwc0TN+bew9iXH6aZ1jfEGc3WUnb
Etv5lcoz4ujJbeHatmXI7JR6VzvX+Q==
=stua
-----END PGP SIGNATURE-----payloadtree c8e37b09936a3c57c8432bc4658735c2ea7b5009
parent 4481513e0871f14a15b853c024d96ebcc4bc20c6
author Jeremy Kong <jkong@palantir.com> 1686854991 +0800
committer Jeremy Kong <jkong@palantir.com> 1686854991 +0800

overhaul
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/e445384a79ff4def130999ef73af7f9cdffbd3a1html_urlShttps://github.com/palantir/atlasdb/commit/e445384a79ff4def130999ef73af7f9cdffbd3a1comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e445384a79ff4def130999ef73af7f9cdffbd3a1/commentsj۪ }(login
jeremyk-91idJZ jת MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j  
jeremyk-91j JZ jת MDQ6VXNlcjU5NTU1MTA=j 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j	 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j
 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj Userj uparents]}(jժ (4481513e0871f14a15b853c024d96ebcc4bc20c6j ^https://api.github.com/repos/palantir/atlasdb/commits/4481513e0871f14a15b853c024d96ebcc4bc20c6j Shttps://github.com/palantir/atlasdb/commit/4481513e0871f14a15b853c024d96ebcc4bc20c6uastats}(totalK	additionsKU	deletionsK:ufiles](}(jժ (d6b0b1f6aca61667b6c797d7bee30ddf83c3fc6cfilenamelatlasdb-workload-server-distribution/src/main/java/com/palantir/atlasdb/workload/WorkloadServerLauncher.javastatusmodifiedj7 K(j8 K'changesKOblob_urlhttps://github.com/palantir/atlasdb/blob/e445384a79ff4def130999ef73af7f9cdffbd3a1/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javaraw_urlhttps://github.com/palantir/atlasdb/raw/e445384a79ff4def130999ef73af7f9cdffbd3a1/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server-distribution%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2FWorkloadServerLauncher.java?ref=e445384a79ff4def130999ef73af7f9cdffbd3a1patchX  @@ -33,6 +33,7 @@
 import com.palantir.atlasdb.workload.resource.AntithesisCassandraSidecarResource;
 import com.palantir.atlasdb.workload.runner.AntithesisWorkflowValidatorRunner;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStoreFactory;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflowConfiguration;
 import com.palantir.atlasdb.workload.workflow.RandomWorkflows;
@@ -145,7 +146,7 @@ private void runWorkflows(WorkloadServerConfiguration configuration, Environment
         waitForTransactionStoreFactoryToBeInitialized(transactionStoreFactory);
 
         new AntithesisWorkflowValidatorRunner(MoreExecutors.listeningDecorator(antithesisWorkflowRunnerExecutorService))
-                .run(createRandomWorkflow(transactionStoreFactory, randomWorkflowConfig, environment.lifecycle()));
+                .run(createSingleRowTwoCellsWorkflowValidator(transactionStoreFactory, singleRowTwoCellsConfig, environment.lifecycle()));
 
         log.info("antithesis: terminate");
 
@@ -245,26 +246,26 @@ private void waitForTransactionStoreFactoryToBeInitialized(AtlasDbTransactionSto
     //                transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)));
     //    }
     //
-    //    private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator(
-    //            AtlasDbTransactionStoreFactory transactionStoreFactory,
-    //            SingleRowTwoCellsWorkflowConfiguration workflowConfig,
-    //            LifecycleEnvironment lifecycle) {
-    //        ExecutorService executorService =
-    //                createExecutorService(workflowConfig, lifecycle, SingleRowTwoCellsWorkflows.class);
-    //        TransactionStore transactionStore = transactionStoreFactory.create(
-    //                Map.of(
-    //                        workflowConfig.tableConfiguration().tableName(),
-    //                        workflowConfig.tableConfiguration().isolationLevel()),
-    //                Set.of());
-    //        return WorkflowAndInvariants.builder()
-    //                .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
-    //                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
-    //                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
-    //                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
-    //                        DurableWritesMetrics.of(taggedMetricRegistry)))
-    //                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
-    //                .build();
-    //    }
+    private WorkflowAndInvariants<Workflow> createSingleRowTwoCellsWorkflowValidator(
+            AtlasDbTransactionStoreFactory transactionStoreFactory,
+            SingleRowTwoCellsWorkflowConfiguration workflowConfig,
+            LifecycleEnvironment lifecycle) {
+        ExecutorService executorService =
+                createExecutorService(workflowConfig, lifecycle, SingleRowTwoCellsWorkflows.class);
+        InteractiveTransactionStore transactionStore = transactionStoreFactory.create(
+                Map.of(
+                        workflowConfig.tableConfiguration().tableName(),
+                        workflowConfig.tableConfiguration().isolationLevel()),
+                Set.of());
+        return WorkflowAndInvariants.builder()
+                .workflow(SingleRowTwoCellsWorkflows.createSingleRowTwoCell(
+                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+                        SingleRowTwoCellsWorkflows.class.getSimpleName(),
+                        DurableWritesMetrics.of(taggedMetricRegistry)))
+                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+                .build();
+    }
     //
     //    private WorkflowAndInvariants<Workflow> createBankBalanceWorkflow(
     //            AtlasDbTransactionStoreFactory transactionStoreFactory,
@@ -286,24 +287,24 @@ private void waitForTransactionStoreFactoryToBeInitialized(AtlasDbTransactionSto
     //                .build();
     //    }
 
-    private WorkflowAndInvariants<Workflow> createRandomWorkflow(
-            AtlasDbTransactionStoreFactory transactionStoreFactory,
-            RandomWorkflowConfiguration workflowConfig,
-            LifecycleEnvironment lifecycle) {
-        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RandomWorkflows.class);
-        TransactionStore transactionStore = transactionStoreFactory.create(
-                Map.of(
-                        workflowConfig.tableConfiguration().tableName(),
-                        workflowConfig.tableConfiguration().isolationLevel()),
-                Set.of());
-        return WorkflowAndInvariants.builder()
-                .workflow(RandomWorkflows.create(
-                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
-                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
-                        RandomWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
-                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
-                .build();
-    }
+//    private WorkflowAndInvariants<Workflow> createRandomWorkflow(
+//            AtlasDbTransactionStoreFactory transactionStoreFactory,
+//            RandomWorkflowConfiguration workflowConfig,
+//            LifecycleEnvironment lifecycle) {
+//        ExecutorService executorService = createExecutorService(workflowConfig, lifecycle, RandomWorkflows.class);
+//        TransactionStore transactionStore = transactionStoreFactory.create(
+//                Map.of(
+//                        workflowConfig.tableConfiguration().tableName(),
+//                        workflowConfig.tableConfiguration().isolationLevel()),
+//                Set.of());
+//        return WorkflowAndInvariants.builder()
+//                .workflow(RandomWorkflows.create(
+//                        transactionStore, workflowConfig, MoreExecutors.listeningDecorator(executorService)))
+//                .addInvariantReporters(new DurableWritesInvariantMetricReporter(
+//                        RandomWorkflows.class.getSimpleName(), DurableWritesMetrics.of(taggedMetricRegistry)))
+//                .addInvariantReporters(SerializableInvariantLogReporter.INSTANCE)
+//                .build();
+//    }
 
     @VisibleForTesting
     CountDownLatch workflowsRanLatch() {u}(jժ (cfcefdbaf036cb39e00ea07926d6824fc65d71c1j= latlasdb-workload-server/src/main/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflows.javaj? modifiedj7 Kj8 KjA K%jB https://github.com/palantir/atlasdb/blob/e445384a79ff4def130999ef73af7f9cdffbd3a1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javajD https://github.com/palantir/atlasdb/raw/e445384a79ff4def130999ef73af7f9cdffbd3a1/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflows.java?ref=e445384a79ff4def130999ef73af7f9cdffbd3a1jH XW  @@ -20,9 +20,12 @@
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Streams;
 import com.google.common.util.concurrent.ListeningExecutorService;
+import com.palantir.atlasdb.workload.store.ColumnValue;
 import com.palantir.atlasdb.workload.store.ImmutableWorkloadCell;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
 import com.palantir.atlasdb.workload.store.WorkloadCell;
+import com.palantir.atlasdb.workload.transaction.ColumnRangeSelection;
 import com.palantir.atlasdb.workload.transaction.DeleteTransactionAction;
 import com.palantir.atlasdb.workload.transaction.ReadTransactionAction;
 import com.palantir.atlasdb.workload.transaction.TransactionAction;
@@ -32,6 +35,7 @@
 import com.palantir.logsafe.logger.SafeLogger;
 import com.palantir.logsafe.logger.SafeLoggerFactory;
 import java.util.List;
+import java.util.Map;
 import java.util.Optional;
 import java.util.stream.Collectors;
 
@@ -58,9 +62,10 @@ private SingleRowTwoCellsWorkflows() {
     }
 
     public static Workflow createSingleRowTwoCell(
-            TransactionStore store,
+            InteractiveTransactionStore store,
             SingleRowTwoCellsWorkflowConfiguration singleRowTwoCellsWorkflowConfiguration,
             ListeningExecutorService executionExecutor) {
+        store.readWrite(txn -> txn.write(singleRowTwoCellsWorkflowConfiguration.tableConfiguration().tableName(), FIRST_CELL, 1));
         return DefaultWorkflow.create(
                 store,
                 (txnStore, index) -> run(txnStore, index, singleRowTwoCellsWorkflowConfiguration),
@@ -69,8 +74,28 @@ public static Workflow createSingleRowTwoCell(
     }
 
     private static Optional<WitnessedTransaction> run(
-            TransactionStore store, int taskIndex, SingleRowTwoCellsWorkflowConfiguration workflowConfiguration) {
+            InteractiveTransactionStore store, int taskIndex, SingleRowTwoCellsWorkflowConfiguration workflowConfiguration) {
         workflowConfiguration.transactionRateLimiter().acquire();
+        store.readWrite(txn -> {
+            List<ColumnValue> values = txn.getRowColumnRange(
+                    workflowConfiguration.tableConfiguration().tableName(),
+                    SINGLE_ROW,
+                    ColumnRangeSelection.builder().build());
+            Map<Integer, Integer> tableState = values.stream()
+                    .collect(Collectors.toMap(ColumnValue::column, ColumnValue::value));
+            if (tableState.size() != 1) {
+                log.error("Wrong number of values found in table state {}",
+                        SafeArg.of("tableState", tableState));
+            }
+
+            if (tableState.containsKey(FIRST_COLUMN)) {
+                txn.delete(workflowConfiguration.tableConfiguration().tableName(), FIRST_CELL);
+                txn.write(workflowConfiguration.tableConfiguration().tableName(), SECOND_CELL, taskIndex);
+            } else {
+                txn.delete(workflowConfiguration.tableConfiguration().tableName(), SECOND_CELL);
+                txn.write(workflowConfiguration.tableConfiguration().tableName(), FIRST_CELL, taskIndex);
+            }
+        });
 
         List<TransactionAction> transactionActions = createTransactionActions(
                 taskIndex, workflowConfiguration.tableConfiguration().tableName());
@@ -97,11 +122,11 @@ static boolean shouldWriteToFirstCell(int taskIndex) {
     private static List<TransactionAction> createCellUpdateActions(int taskIndex, String tableName) {
         return shouldWriteToFirstCell(taskIndex)
                 ? ImmutableList.of(
-                        WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
-                        DeleteTransactionAction.of(tableName, SECOND_CELL))
+                WriteTransactionAction.of(tableName, FIRST_CELL, taskIndex),
+                DeleteTransactionAction.of(tableName, SECOND_CELL))
                 : ImmutableList.of(
-                        DeleteTransactionAction.of(tableName, FIRST_CELL),
-                        WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
+                DeleteTransactionAction.of(tableName, FIRST_CELL),
+                WriteTransactionAction.of(tableName, SECOND_CELL, taskIndex));
     }
 
     private static List<TransactionAction> createCellReadActions(String tableName) {u}(jժ (a284393b649f3fdf6e346b85dd4c7d967e735849j= patlasdb-workload-server/src/test/java/com/palantir/atlasdb/workload/workflow/SingleRowTwoCellsWorkflowsTest.javaj? modifiedj7 Kj8 K
jA KjB https://github.com/palantir/atlasdb/blob/e445384a79ff4def130999ef73af7f9cdffbd3a1/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javajD https://github.com/palantir/atlasdb/raw/e445384a79ff4def130999ef73af7f9cdffbd3a1/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.javajF https://api.github.com/repos/palantir/atlasdb/contents/atlasdb-workload-server%2Fsrc%2Ftest%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fworkload%2Fworkflow%2FSingleRowTwoCellsWorkflowsTest.java?ref=e445384a79ff4def130999ef73af7f9cdffbd3a1jH X  @@ -25,6 +25,7 @@
 import com.palantir.atlasdb.factory.TransactionManagers;
 import com.palantir.atlasdb.keyvalue.api.TableReference;
 import com.palantir.atlasdb.workload.store.AtlasDbTransactionStore;
+import com.palantir.atlasdb.workload.store.InteractiveTransactionStore;
 import com.palantir.atlasdb.workload.store.IsolationLevel;
 import com.palantir.atlasdb.workload.store.ReadOnlyTransactionStore;
 import com.palantir.atlasdb.workload.store.TransactionStore;
@@ -107,7 +108,7 @@ public void writesValueCorrespondingToTaskIndexInRelevantCell() {
 
     @Test
     public void workflowHistoryPreservesStoreAndCapturesWitnessedActions() {
-        TransactionStore memoryStore = AtlasDbTransactionStore.create(
+        InteractiveTransactionStore memoryStore = AtlasDbTransactionStore.create(
                 TransactionManagers.createInMemory(ImmutableSet.of()),
                 ImmutableMap.of(
                         TableReference.createWithEmptyNamespace(TABLE_NAME),
@@ -119,17 +120,17 @@ public void workflowHistoryPreservesStoreAndCapturesWitnessedActions() {
         assertThat(history.transactionStore())
                 .as("should return a read only tranasction store")
                 .isInstanceOf(ReadOnlyTransactionStore.class);
-        assertThat(Iterables.getOnlyElement(history.history()).actions())
-                .containsExactly(
-                        WitnessedReadTransactionAction.of(
-                                TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.empty()),
-                        WitnessedReadTransactionAction.of(
-                                TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()),
-                        WitnessedWriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
-                        WitnessedDeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
-                        WitnessedReadTransactionAction.of(
-                                TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.of(0)),
-                        WitnessedReadTransactionAction.of(
-                                TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()));
+//        assertThat(Iterables.getOnlyElement(history.history()).actions())
+//                .containsExactly(
+//                        WitnessedReadTransactionAction.of(
+//                                TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.empty()),
+//                        WitnessedReadTransactionAction.of(
+//                                TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()),
+//                        WitnessedWriteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, 0),
+//                        WitnessedDeleteTransactionAction.of(TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL),
+//                        WitnessedReadTransactionAction.of(
+//                                TABLE_NAME, SingleRowTwoCellsWorkflows.FIRST_CELL, Optional.of(0)),
+//                        WitnessedReadTransactionAction.of(
+//                                TABLE_NAME, SingleRowTwoCellsWorkflows.SECOND_CELL, Optional.empty()));
     }
 }ueu(e8f5694471613baf7a5c219ee2460dd5e79549fb}(sha(e8f5694471613baf7a5c219ee2460dd5e79549fbnode_idEC_kwDOAjP5fdoAKGU4ZjU2OTQ0NzE2MTNiYWY3YTVjMjE5ZWUyNDYwZGQ1ZTc5NTQ5ZmIcommit}(author}(nameTom Petraccaemailtpetracca@palantir.comdate2023-07-24T20:32:15Zu	committer}(jd Tom Petraccajf tpetracca@palantir.comjh 2023-07-24T20:32:15Zumessagefix names in gradle and scriptstree}(j\ (943023bfbd2e39055bad5c221d914e50365170beurl`https://api.github.com/repos/palantir/atlasdb/git/trees/943023bfbd2e39055bad5c221d914e50365170beujt bhttps://api.github.com/repos/palantir/atlasdb/git/commits/e8f5694471613baf7a5c219ee2460dd5e79549fb
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEHTC5rqjQ6qmsb7sZRnUGJaXvqFMFAmS+388ACgkQRnUGJaXv
qFM2Ngf/YPxWkheUrkWJ1bOhWGO+gdbDNIm2bJiwa+cJpbuLTLVzEc9TmXu/l2SY
Ui2vZBwxITXvM2ACaalMgZDKQZbC5Hu9N/tppOl/Ze9AwbjkSSRV+tAwJE4Yt+L2
DIwionFoncrzUHXAn4AtiGxJKl5XUkWTi7I61D8nbIQx2OiQJvcRdHc+AVQgLoAs
i/2Zrxi6OVxLweSY5KAcPwVupxQN7bkSMI0ltWLfhCsLPcYFYlQLy1MOHtJCfsjp
8xdS0G2PYQZzrI6En1U4csdB3lbJ/0frNDB266p7sH0P4HLJ3ydbDFACYF/Rbv5p
u+4RY1Jt6t9Tr2dXamHJcQ+iaVmyHg==
=/Dvs
-----END PGP SIGNATURE-----payloadtree 943023bfbd2e39055bad5c221d914e50365170be
parent 59fd643f693d4822871d308fd6ef8ce160cfbfd6
author Tom Petracca <tpetracca@palantir.com> 1690230735 -0400
committer Tom Petracca <tpetracca@palantir.com> 1690230735 -0400

fix names in gradle and scripts
uujt ^https://api.github.com/repos/palantir/atlasdb/commits/e8f5694471613baf7a5c219ee2460dd5e79549fbhtml_urlShttps://github.com/palantir/atlasdb/commit/e8f5694471613baf7a5c219ee2460dd5e79549fbcomments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/e8f5694471613baf7a5c219ee2460dd5e79549fb/commentsjb }(login	tpetraccaidJ& j^ MDQ6VXNlcjI1NTQzMjg=
avatar_url3https://avatars.githubusercontent.com/u/2554328?v=4gravatar_idh5jt &https://api.github.com/users/tpetraccaj https://github.com/tpetracca
followers_url0https://api.github.com/users/tpetracca/followers
following_url=https://api.github.com/users/tpetracca/following{/other_user}	gists_url6https://api.github.com/users/tpetracca/gists{/gist_id}starred_url=https://api.github.com/users/tpetracca/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/tpetracca/subscriptionsorganizations_url+https://api.github.com/users/tpetracca/orgs	repos_url,https://api.github.com/users/tpetracca/repos
events_url7https://api.github.com/users/tpetracca/events{/privacy}received_events_url6https://api.github.com/users/tpetracca/received_eventstypeUser
site_adminujj }(j 	tpetraccaj J& j^ MDQ6VXNlcjI1NTQzMjg=j 3https://avatars.githubusercontent.com/u/2554328?v=4j h5jt &https://api.github.com/users/tpetraccaj https://github.com/tpetraccaj 0https://api.github.com/users/tpetracca/followersj =https://api.github.com/users/tpetracca/following{/other_user}j 6https://api.github.com/users/tpetracca/gists{/gist_id}j =https://api.github.com/users/tpetracca/starred{/owner}{/repo}j 4https://api.github.com/users/tpetracca/subscriptionsj +https://api.github.com/users/tpetracca/orgsj ,https://api.github.com/users/tpetracca/reposj 7https://api.github.com/users/tpetracca/events{/privacy}j 6https://api.github.com/users/tpetracca/received_eventsj Userj uparents]}(j\ (59fd643f693d4822871d308fd6ef8ce160cfbfd6jt ^https://api.github.com/repos/palantir/atlasdb/commits/59fd643f693d4822871d308fd6ef8ce160cfbfd6j Shttps://github.com/palantir/atlasdb/commit/59fd643f693d4822871d308fd6ef8ce160cfbfd6uastats}(totalK.	additionsK	deletionsKufiles](}(j\ (9185171a0ec50c6c733f0c8aa3cf1da008954407filenameatlasdb-ete-tests/build.gradlestatusmodifiedj Kj KchangesK&blob_urlrhttps://github.com/palantir/atlasdb/blob/e8f5694471613baf7a5c219ee2460dd5e79549fb/atlasdb-ete-tests%2Fbuild.gradleraw_urlqhttps://github.com/palantir/atlasdb/raw/e8f5694471613baf7a5c219ee2460dd5e79549fb/atlasdb-ete-tests%2Fbuild.gradlecontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-ete-tests%2Fbuild.gradle?ref=e8f5694471613baf7a5c219ee2460dd5e79549fbpatchXk	  @@ -101,11 +101,6 @@ task prepareForEteTests(type: Copy, dependsOn: 'distTar') {
     rename { filename -> 'atlasdb-ete-snapshot.tgz' }
 }
 
-task longTest(type: Test) {
-    dependsOn prepareForEteTests
-    include '**/MultiCassandraTestSuite.class'
-}
-
 task timeLockTest(type: Test) {
     dependsOn prepareForEteTests, ':timelock-server-distribution:dockerTag'
     include '**/*TimeLock*.class'
@@ -117,27 +112,38 @@ task timeLockMigrationTest(type: Test) {
     include '**/*TimeLockMigration*.class'
 }
 
-task dbkvsTest(type: Test) {
+// test suites with their own test tasks
+// not sure why some have it and others do not
+
+task singleClientWithEmbeddedAndThreeNodeCassandraTest(type: Test) {
+    dependsOn prepareForEteTests
+    include '**/SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.class'
+}
+
+task singleClientWithEmbeddedAndPostgresTest(type: Test) {
     dependsOn prepareForEteTests
-    include '**/DbKvsTestSuite.class'
+    include '**/SingleClientWithEmbeddedAndPostgresTestSuite.class'
 }
 
-task oracleTest(type: Test) {
+task singleClientWithEmbeddedAndOracleTest(type: Test) {
     dependsOn prepareForEteTests
-    include '**/OracleDbKvsEteTestSuite.class'
+    include '**/SingleClientWithEmbeddedAndOracleTestSuite.class'
 }
 
 test {
-    dependsOn longTest, prepareForEteTests, timeLockTest, dbkvsTest
-    exclude '**/MultiCassandraTestSuite.class'
+    // this list explicitly doesn't include the timelockMigration or singleClientWithEmbeddedAndOracleTest tasks
+    // not sure why that is
+    dependsOn prepareForEteTests, timeLockTest, singleClientWithEmbeddedAndThreeNodeCassandraTest, singleClientWithEmbeddedAndPostgresTest
 
+    // 1-off ETE tests
     exclude '**/*TimeLock*.class'
-    // Technically covered by previous line, but explicitly avoiding in case of refactor
-    exclude '**/*TimeLockMigration*.class'
-
+    exclude '**/*TimeLockMigration*.class' // Technically covered by previous line, but explicitly avoiding in case of refactor
     exclude '**/*EteTest.class'
-    exclude '**/DbKvsTestSuite.class'
-    exclude '**/OracleDbKvsEteTestSuite.class'
+
+    // test suites with their own test tasks
+    exclude '**/SingleClientWithEmbeddedAndThreeNodeCassandraTestSuite.class'
+    exclude '**/SingleClientWithEmbeddedAndPostgresTestSuite.class'
+    exclude '**/SingleClientWithEmbeddedAndOracleTestSuite.class'
 }
 
 distribution {u}(j\ (c67219f0513d633bc3ac576c3d65b9a65b11f00djī %scripts/circle-ci/run-circle-tests.shjƫ modifiedj Kj Kjȫ Kjɫ {https://github.com/palantir/atlasdb/blob/e8f5694471613baf7a5c219ee2460dd5e79549fb/scripts%2Fcircle-ci%2Frun-circle-tests.shj˫ zhttps://github.com/palantir/atlasdb/raw/e8f5694471613baf7a5c219ee2460dd5e79549fb/scripts%2Fcircle-ci%2Frun-circle-tests.shjͫ https://api.github.com/repos/palantir/atlasdb/contents/scripts%2Fcircle-ci%2Frun-circle-tests.sh?ref=e8f5694471613baf7a5c219ee2460dd5e79549fbjϫ XO  @@ -19,17 +19,17 @@ CONTAINER_2=(':atlasdb-ete-tests:check')
 
 CONTAINER_3=(':timelock-server:integTest')
 
-CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:dbkvsTest')
+CONTAINER_4=(':atlasdb-cassandra-multinode-tests:check' ':atlasdb-tests-shared:check' ':atlasdb-perf:check' ':atlasdb-ete-tests:singleClientWithEmbeddedAndPostgresTest')
 
-CONTAINER_5=(':lock-impl:check' ':atlasdb-dbkvs-tests:postgresTest' ':atlasdb-ete-test-utils:check' ':atlasdb-ete-tests:longTest')
+CONTAINER_5=(':lock-impl:check' ':atlasdb-dbkvs-tests:postgresTest' ':atlasdb-ete-test-utils:check' ':atlasdb-ete-tests:singleClientWithEmbeddedAndThreeNodeCassandraTest')
 
 CONTAINER_6=(':timelock-server:suiteTest')
 
 CONTAINER_7=(':timelock-server:stressTest')
 
 CONTAINER_8=(':atlasdb-cassandra-integration-tests:testSubset2')
 
-CONTAINER_9=(':atlasdb-ete-tests:oracleTest')
+CONTAINER_9=(':atlasdb-ete-tests:singleClientWithEmbeddedAndOracleTest')
 
 CONTAINER_10=('atlasdb-dbkvs-tests:oracleTest')
 
@@ -92,7 +92,7 @@ export CASSANDRA_HEAP_NEWSIZE=64m
 case "$test_suite_index" in
     0) ./gradlew $BASE_GRADLE_ARGS check $CONTAINER_0_EXCLUDE_ARGS -x :atlasdb-jepsen-tests:check;;
     1) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_1[@]} ;;
-    2) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_2[@]} -x :atlasdb-ete-tests:longTest -x atlasdb-ete-tests:dbkvsTest -x :atlasdb-ete-tests:timeLockMigrationTest ;;
+    2) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_2[@]} -x :atlasdb-ete-tests:singleClientWithEmbeddedAndThreeNodeCassandraTest -x atlasdb-ete-tests:singleClientWithEmbeddedAndPostgresTest -x :atlasdb-ete-tests:timeLockMigrationTest ;;
     3) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_3[@]} ;;
     4) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_4[@]} ;;
     5) ./gradlew $BASE_GRADLE_ARGS ${CONTAINER_5[@]} ;;ueu(becbd340e83ac88c06dc75e5634fa70b7fd6b146}(sha(becbd340e83ac88c06dc75e5634fa70b7fd6b146node_idEC_kwDOAjP5fdoAKGJlY2JkMzQwZTgzYWM4OGMwNmRjNzVlNTYzNGZhNzBiN2ZkNmIxNDYcommit}(author}(nameJeremy Kongemailjkong@palantir.comdate2023-06-18T15:08:54Zu	committer}(j Jeremy Kongj jkong@palantir.comj 2023-06-18T15:08:54Zumessageconcasse concussiontree}(j۫ (601cb028b45273977b334d745fac72ec88feff97url`https://api.github.com/repos/palantir/atlasdb/git/trees/601cb028b45273977b334d745fac72ec88feff97uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/becbd340e83ac88c06dc75e5634fa70b7fd6b146
comment_countK verification}(verifiedreasonunknown_key	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEFxHnfqtKRWSjy6AVTLdFKainzjwFAmSPHgYACgkQTLdFKain
zjxkYAgAtdunoSxevRUt/RVvB1NzN9V1xSpNlL4xcZ3WAmv8PbFvEfqoT3V9tLUu
/GA0RilTJmZh3MapjFiGaHc8OVEoiFKAGWUgxqXf/rM0jsW6AIoCWFeH/aBwm0GS
x6X6HWWqghbGnouG5oDIQ0qLFVyrYGqczzMPKN0TrfRlHaNSR9KzaOBUT2//Ufmk
wa0M7RzZD8zOHo5TjG9LNH69Ogdkwg7/CKhQWMp1Hx+W+BmdCZfDNq6AtMw0/sP/
2uf+xUeQju6NdJ3t89YWsh/x9SUS8DprvwzbWJdQM45AIdWJBQv8W7H+uUinGlDj
6/8WzZvDZG50ZCqj5SG7qDctZbJbcw==
=ImrF
-----END PGP SIGNATURE-----payloadtree 601cb028b45273977b334d745fac72ec88feff97
parent d455e35c787d975611982d8d7e422c34f45cae43
author Jeremy Kong <jkong@palantir.com> 1687100934 +0800
committer Jeremy Kong <jkong@palantir.com> 1687100934 +0800

concasse concussion
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/becbd340e83ac88c06dc75e5634fa70b7fd6b146html_urlShttps://github.com/palantir/atlasdb/commit/becbd340e83ac88c06dc75e5634fa70b7fd6b146comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/becbd340e83ac88c06dc75e5634fa70b7fd6b146/commentsj }(login
jeremyk-91idJZ jݫ MDQ6VXNlcjU5NTU1MTA=
avatar_url3https://avatars.githubusercontent.com/u/5955510?v=4gravatar_idh5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91
followers_url1https://api.github.com/users/jeremyk-91/followers
following_url>https://api.github.com/users/jeremyk-91/following{/other_user}	gists_url7https://api.github.com/users/jeremyk-91/gists{/gist_id}starred_url>https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jeremyk-91/subscriptionsorganizations_url,https://api.github.com/users/jeremyk-91/orgs	repos_url-https://api.github.com/users/jeremyk-91/repos
events_url8https://api.github.com/users/jeremyk-91/events{/privacy}received_events_url7https://api.github.com/users/jeremyk-91/received_eventstypeUser
site_adminuj }(j 
jeremyk-91j JZ jݫ MDQ6VXNlcjU5NTU1MTA=j
 3https://avatars.githubusercontent.com/u/5955510?v=4j h5j 'https://api.github.com/users/jeremyk-91j https://github.com/jeremyk-91j 1https://api.github.com/users/jeremyk-91/followersj >https://api.github.com/users/jeremyk-91/following{/other_user}j 7https://api.github.com/users/jeremyk-91/gists{/gist_id}j >https://api.github.com/users/jeremyk-91/starred{/owner}{/repo}j 5https://api.github.com/users/jeremyk-91/subscriptionsj ,https://api.github.com/users/jeremyk-91/orgsj -https://api.github.com/users/jeremyk-91/reposj 8https://api.github.com/users/jeremyk-91/events{/privacy}j 7https://api.github.com/users/jeremyk-91/received_eventsj! Userj# uparents]}(j۫ (d455e35c787d975611982d8d7e422c34f45cae43j ^https://api.github.com/repos/palantir/atlasdb/commits/d455e35c787d975611982d8d7e422c34f45cae43j Shttps://github.com/palantir/atlasdb/commit/d455e35c787d975611982d8d7e422c34f45cae43uastats}(totalK	additionsK	deletionsKufiles]}(j۫ (cbe8be96fc13ee831768937d6d4c3386f176be34filename`atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransaction.javastatusmodifiedj= Kj> KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/becbd340e83ac88c06dc75e5634fa70b7fd6b146/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javaraw_urlhttps://github.com/palantir/atlasdb/raw/becbd340e83ac88c06dc75e5634fa70b7fd6b146/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-impl-shared%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Ftransaction%2Fimpl%2FSnapshotTransaction.java?ref=becbd340e83ac88c06dc75e5634fa70b7fd6b146patchX  @@ -697,9 +697,7 @@ private ClosableIterator<Map.Entry<Cell, byte[]>> getRowColumnRangePostFiltered(
                 rawIterator,
                 columnRangeSelection,
                 () -> {
-                    /*
-                     * Hello. This is a bug.
-                     */
+                    validatePreCommitRequirementsOnReadIfNecessary(tableRef, getStartTimestamp());
                 },
                 raw -> getWithPostFilteringSync(tableRef, raw, Value.GET_VALUE));
     }
@@ -780,7 +778,7 @@ protected Map.Entry<byte[], RowColumnRangeIterator> computeNext() {
                     protected Map.Entry<Cell, Value> computeNext() {
                         if (!peekableRawResults.hasNext()
                                 || !Arrays.equals(
-                                        peekableRawResults.peek().getKey().getRowName(), nextRowName)) {
+                                peekableRawResults.peek().getKey().getRowName(), nextRowName)) {
                             return endOfData();
                         }
                         return peekableRawResults.next();
@@ -1177,7 +1175,7 @@ private List<Map.Entry<Cell, byte[]>> getPostFilteredWithLocalWrites(
                 postFiltered.entrySet(),
                 Predicates.compose(Predicates.in(prePostFilterCells.keySet()), MapEntries.getKeyFunction()));
         Collection<Map.Entry<Cell, byte[]>> localWritesInRange = getLocalWritesForRange(
-                        tableRef, rangeRequest.getStartInclusive(), endRowExclusive, rangeRequest.getColumnNames())
+                tableRef, rangeRequest.getStartInclusive(), endRowExclusive, rangeRequest.getColumnNames())
                 .entrySet();
         return mergeInLocalWrites(
                 tableRef, postFilteredCells.iterator(), localWritesInRange.iterator(), rangeRequest.isReverse());
@@ -1214,9 +1212,9 @@ private <K extends Exception> boolean getBatchingVisitableFromIterator(
             int preFilterBatchSize)
             throws K {
         try (ClosableIterator<RowResult<byte[]>> postFilterIterator =
-                postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
+                     postFilterIterator(tableRef, range, preFilterBatchSize, Value.GET_VALUE)) {
             Iterator<RowResult<byte[]>> localWritesInRange = Cells.createRowView(getLocalWritesForRange(
-                            tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
+                    tableRef, range.getStartInclusive(), range.getEndExclusive(), range.getColumnNames())
                     .entrySet());
             Iterator<RowResult<byte[]>> mergeIterators =
                     mergeInLocalWritesRows(postFilterIterator, localWritesInRange, range.isReverse(), tableRef);
@@ -2069,7 +2067,7 @@ private void timedAndTraced(String timerName, Runnable runnable) {
 
     private <T> T timedAndTraced(String timerName, Supplier<T> supplier) {
         try (Timer.Context timer = getTimer(timerName).time();
-                CloseableTracer tracer = CloseableTracer.startSpan(timerName)) {
+             CloseableTracer tracer = CloseableTracer.startSpan(timerName)) {
             return supplier.get();
         }
     }uau(88c8b1f71998ea5f1375a744b4cc72aff6997364}(sha(88c8b1f71998ea5f1375a744b4cc72aff6997364node_idEC_kwDOAjP5fdoAKDg4YzhiMWY3MTk5OGVhNWYxMzc1YTc0NGI0Y2M3MmFmZjY5OTczNjQcommit}(author}(nameFabian Windheuseremailfwindheuser@palantir.comdate2023-07-06T12:26:19Zu	committer}(jZ Fabian Windheuserj\ fwindheuser@palantir.comj^ 2023-07-06T12:26:19Zumessage#Suppress "CheckReturnValue" insteadtree}(jR (e5b3964731a0e15a4cb2d37ae69261046cd989c3url`https://api.github.com/repos/palantir/atlasdb/git/trees/e5b3964731a0e15a4cb2d37ae69261046cd989c3ujj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/88c8b1f71998ea5f1375a744b4cc72aff6997364
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEAib7yudlmWjYX+B11nJEKx9MErIFAmSmsuwACgkQ1nJEKx9M
ErKhtAf+KhEdJqAihKaSHYw36sey5nQsFhrLf+9uUBuy8m83j74VN8z+1/wXqCk2
K18lC4Qp2FXgJYrdplWh+y9rwpfS8jj5u7uNUkQ15QGiepvnHV10FHCuqzMU7dTU
MY2oS0xKEHjWskPn5/o0ZIBZyYis6Ix8uts2wX94L4v9XeASyHLaaPvLd5d/oGRX
q5gEHoaFWv7+5RNBhgATB71tcUOKkx+sxafWsqP2C6TZno2NAYMRVNlOti6bgGQn
4q7yhAzp9rrXVUwoL5IVAehRz+xbSTUU7+sFV0TYdHl5XA8Wp03uacq0RhsMpMym
3aqZcgZemI5sSKwxyTdUhL24qGsWpA==
=9S+k
-----END PGP SIGNATURE-----"      payloadX  tree e5b3964731a0e15a4cb2d37ae69261046cd989c3
parent b08564b325d48a8d2cc70b105f85f02999cc948c
author Fabian Windheuser <fwindheuser@palantir.com> 1688646379 +0100
committer Fabian Windheuser <fwindheuser@palantir.com> 1688646379 +0100

Suppress "CheckReturnValue" instead
uujj ^https://api.github.com/repos/palantir/atlasdb/commits/88c8b1f71998ea5f1375a744b4cc72aff6997364html_urlShttps://github.com/palantir/atlasdb/commit/88c8b1f71998ea5f1375a744b4cc72aff6997364comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/88c8b1f71998ea5f1375a744b4cc72aff6997364/commentsjX }(loginfawindidJb@q jT MDQ6VXNlcjc0MjIwNTA=
avatar_url3https://avatars.githubusercontent.com/u/7422050?v=4gravatar_idh5jj #https://api.github.com/users/fawindjx https://github.com/fawind
followers_url-https://api.github.com/users/fawind/followers
following_url:https://api.github.com/users/fawind/following{/other_user}	gists_url3https://api.github.com/users/fawind/gists{/gist_id}starred_url:https://api.github.com/users/fawind/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/fawind/subscriptionsorganizations_url(https://api.github.com/users/fawind/orgs	repos_url)https://api.github.com/users/fawind/repos
events_url4https://api.github.com/users/fawind/events{/privacy}received_events_url3https://api.github.com/users/fawind/received_eventstypeUser
site_adminuj` }(j} fawindj Jb@q jT MDQ6VXNlcjc0MjIwNTA=j 3https://avatars.githubusercontent.com/u/7422050?v=4j h5jj #https://api.github.com/users/fawindjx https://github.com/fawindj -https://api.github.com/users/fawind/followersj :https://api.github.com/users/fawind/following{/other_user}j 3https://api.github.com/users/fawind/gists{/gist_id}j :https://api.github.com/users/fawind/starred{/owner}{/repo}j 1https://api.github.com/users/fawind/subscriptionsj (https://api.github.com/users/fawind/orgsj )https://api.github.com/users/fawind/reposj 4https://api.github.com/users/fawind/events{/privacy}j 3https://api.github.com/users/fawind/received_eventsj Userj uparents]}(jR (b08564b325d48a8d2cc70b105f85f02999cc948cjj ^https://api.github.com/repos/palantir/atlasdb/commits/b08564b325d48a8d2cc70b105f85f02999cc948cjx Shttps://github.com/palantir/atlasdb/commit/b08564b325d48a8d2cc70b105f85f02999cc948cuastats}(totalK	additionsK	deletionsKufiles]}(jR (30239d5d4f11f579d2be533da44b54e474102a2dfilenameOatlasdb-dbkvs/src/main/java/com/palantir/atlasdb/keyvalue/dbkvs/impl/DbKvs.javastatusmodifiedj Kj KchangesKblob_urlhttps://github.com/palantir/atlasdb/blob/88c8b1f71998ea5f1375a744b4cc72aff6997364/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FDbKvs.javaraw_urlhttps://github.com/palantir/atlasdb/raw/88c8b1f71998ea5f1375a744b4cc72aff6997364/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FDbKvs.javacontents_urlhttps://api.github.com/repos/palantir/atlasdb/contents/atlasdb-dbkvs%2Fsrc%2Fmain%2Fjava%2Fcom%2Fpalantir%2Fatlasdb%2Fkeyvalue%2Fdbkvs%2Fimpl%2FDbKvs.java?ref=88c8b1f71998ea5f1375a744b4cc72aff6997364patchX  @@ -1369,6 +1369,7 @@ private <T> T runReadWrite(TableReference tableRef, ReadWriteTask<T> runner) {
         }
     }
 
+    @SuppressWarnings("CheckReturnValue")
     private <T> void runWriteForceAutocommit(TableReference tableRef, Function<DbWriteTable, T> runner) {
         try (ConnectionSupplier conns = new ConnectionSupplier(connections)) {
             SqlConnection conn = conns.get();
@@ -1381,7 +1382,8 @@ private <T> void runWriteForceAutocommit(TableReference tableRef, Function<DbWri
             if (!autocommit) {
                 runWriteFreshConnection(conns, tableRef, runner);
             } else {
-                T unused = runner.apply(dbTables.createWrite(tableRef, conns));
+                // The return value can be ignored because the operation does a non-conditional write.
+                runner.apply(dbTables.createWrite(tableRef, conns));
             }
         }
     }uau(49f5016eb75bd377bdb33719271ba2696b576bd6}(sha(49f5016eb75bd377bdb33719271ba2696b576bd6node_idEC_kwDOAjP5fdoAKDQ5ZjUwMTZlYjc1YmQzNzdiZGIzMzcxOTI3MWJhMjY5NmI1NzZiZDYcommit}(author}(name
Ahmed Alouaneemailaalouane@palantir.comdate2023-05-15T16:05:52Zu	committer}(jѬ 
Ahmed AlouanejӬ aalouane@palantir.comjլ 2023-05-15T16:05:52Zumessage2xlarge+tree}(jɬ (54477e92c73677b82bb985a9edd9fc7e2ab4cc73url`https://api.github.com/repos/palantir/atlasdb/git/trees/54477e92c73677b82bb985a9edd9fc7e2ab4cc73uj bhttps://api.github.com/repos/palantir/atlasdb/git/commits/49f5016eb75bd377bdb33719271ba2696b576bd6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEQzRQ8sKKe8+JChdQPlMHVIT1yhoFAmRiWGEACgkQPlMHVIT1
yho6gwgAoah2KXKwUOtjaKtCZnv7ZPLwdPwRbBHtDRMg2HIKrfhg0BkalnM+BBnF
RVTv/B3zqtcH780r80WXj+0xP9vIciFMtGYo1pmY1YR2az2vEg3IVGX3UU2Y3vIS
V14nyQlpb4lL3kawhM7C5SICtnmYI4icOh6OyH/Ijzws0ZX9tuHpM0kgCtGU87pK
O9cSicAVFw79Fodk8nCIBmovPgeDcmIszPXDWRBt3XdEuoLYfPb0DsiJ8VRnXZdD
2EmsjAtatAw8Rmj6WrM2NdsRs9GZ/nH9nRlCfQatTZ3qAMjBwolQ5x0We0GTsIne
9Xfr7Q4oKX/ldL0A/jh1nABEjdwhbA==
=2+Qy
-----END PGP SIGNATURE-----payloadtree 54477e92c73677b82bb985a9edd9fc7e2ab4cc73
parent a684ef6513438aecd84a2ae28ae98d798a0cb04b
author Ahmed Alouane <aalouane@palantir.com> 1684166752 +0100
committer Ahmed Alouane <aalouane@palantir.com> 1684166752 +0100

2xlarge+
uuj ^https://api.github.com/repos/palantir/atlasdb/commits/49f5016eb75bd377bdb33719271ba2696b576bd6html_urlShttps://github.com/palantir/atlasdb/commit/49f5016eb75bd377bdb33719271ba2696b576bd6comments_urlghttps://api.github.com/repos/palantir/atlasdb/commits/49f5016eb75bd377bdb33719271ba2696b576bd6/commentsjϬ }(loginergo14idJjˬ MDQ6VXNlcjMwOTAzNzM2
avatar_url4https://avatars.githubusercontent.com/u/30903736?v=4gravatar_idh5j #https://api.github.com/users/ergo14j https://github.com/ergo14
followers_url-https://api.github.com/users/ergo14/followers
following_url:https://api.github.com/users/ergo14/following{/other_user}	gists_url3https://api.github.com/users/ergo14/gists{/gist_id}starred_url:https://api.github.com/users/ergo14/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/ergo14/subscriptionsorganizations_url(https://api.github.com/users/ergo14/orgs	repos_url)https://api.github.com/users/ergo14/repos
events_url4https://api.github.com/users/ergo14/events{/privacy}received_events_url3https://api.github.com/users/ergo14/received_eventstypeUser
site_adminuj׬ }(j ergo14j Jjˬ MDQ6VXNlcjMwOTAzNzM2j 4https://avatars.githubusercontent.com/u/30903736?v=4j h5j #https://api.github.com/users/ergo14j https://github.com/ergo14j -https://api.github.com/users/ergo14/followersj :https://api.github.com/users/ergo14/following{/other_user}j 3https://api.github.com/users/ergo14/gists{/gist_id}j :https://api.github.com/users/ergo14/starred{/owner}{/repo}j 1https://api.github.com/users/ergo14/subscriptionsj (https://api.github.com/users/ergo14/orgsj	 )https://api.github.com/users/ergo14/reposj 4https://api.github.com/users/ergo14/events{/privacy}j
 3https://api.github.com/users/ergo14/received_eventsj Userj uparents]}(jɬ (a684ef6513438aecd84a2ae28ae98d798a0cb04bj ^https://api.github.com/repos/palantir/atlasdb/commits/a684ef6513438aecd84a2ae28ae98d798a0cb04bj Shttps://github.com/palantir/atlasdb/commit/a684ef6513438aecd84a2ae28ae98d798a0cb04buastats}(totalK	additionsK	deletionsKufiles]}(jɬ (e276b103cbd92542aaa94dcd125f849a794b10b3filename.circleci/config.ymlstatusmodifiedj+ Kj, KchangesKblob_urlhhttps://github.com/palantir/atlasdb/blob/49f5016eb75bd377bdb33719271ba2696b576bd6/.circleci%2Fconfig.ymlraw_urlghttps://github.com/palantir/atlasdb/raw/49f5016eb75bd377bdb33719271ba2696b576bd6/.circleci%2Fconfig.ymlcontents_urlzhttps://api.github.com/repos/palantir/atlasdb/contents/.circleci%2Fconfig.yml?ref=49f5016eb75bd377bdb33719271ba2696b576bd6patchX  @@ -105,7 +105,7 @@ jobs:
   deploy:
     docker:
       - image: cimg/openjdk:11.0.10-node
-    resource_class: xlarge
+    resource_class: 2xlarge+
     environment:
       GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false
       _JAVA_OPTIONS: "-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Xlog:class+unload=off -Xlog:gc:build-%t-%p.gc.log"uauu.